[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:44]OFD Sender: No OFD packet to send [03:21:49]OFD Sender: No OFD packet to send [03:21:54]OFD Sender: No OFD packet to send [03:21:59]OFD Sender: No OFD packet to send [03:22:04]OFD Sender: No OFD packet to send [03:22:09]OFD Sender: No OFD packet to send [03:22:14]OFD Sender: No OFD packet to send [03:22:19]OFD Sender: No OFD packet to send [03:22:24]OFD Sender: No OFD packet to send [03:22:29]OFD Sender: No OFD packet to send [03:22:34]OFD Sender: No OFD packet to send [03:22:39]OFD Sender: No OFD packet to send [03:22:44]OFD Sender: No OFD packet to send [03:22:49]OFD Sender: No OFD packet to send [03:22:54]OFD Sender: No OFD packet to send [03:22:59]OFD Sender: No OFD packet to send [03:23:04]OFD Sender: No OFD packet to send [03:23:09]OFD Sender: No OFD packet to send [03:23:14]OFD Sender: No OFD packet to send [03:23:19]OFD Sender: No OFD packet to send [03:23:24]OFD Sender: No OFD packet to send [03:23: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:15]OFD Sender: No OFD packet to send [03:43:20]OFD Sender: No OFD packet to send [03:43:25]OFD Sender: No OFD packet to send [03:43:30]OFD Sender: No OFD packet to send [03:43:35]OFD Sender: No OFD packet to send [03:43:40]OFD Sender: No OFD packet to send [03:43:45]OFD Sender: No OFD packet to send [03:43: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]accept exits with 9 [03:55:51]New connection [03:55:51]New thread 3067116900 created [03:55:51]Thread 3067260260 joined [03:55:51]Waiting for new connection... [03:55:51] Sock 9.Parse request [03:55:51]Sock 9.Check first char [03:55:51]Sock 9.First char is OK [03:55:51]request: POST /json_proto HTTP/1.0 [03:55:51]Method: POST [03:55:51]URL: /json_proto [03:55:51]Method is POST - this is cgi request [03:55:51]url: /json_proto [03:55:51]query_string will be loaded in cgi processing [03:55:51]execute_cgi json_proto POST (null) [03:55:51]execute_cgi path=json_proto method=POST [03:55:51]POST find Content-Length [03:55:51]Host: 172.17.50.3:8080 [03:55:51]Content-Length: 686 [03:55:51]Content-Type: application/json [03:55:51] [03:55:51]POST finish read [03:55:51]Found Content-Length = 686 [03:55:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 39.150, "sum" : 1522.94, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1522.00, "payments": [ { "type": 0, "sum" : 1522.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:55:51]execute_script... [03:55: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)2884888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 39.150, "sum" : 1522.94, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1522.00, "payments": [ { "type": 0, "sum" : 1522.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:55:51]POST & json_proto [03:55:51]process_json_proto [03:55:51]json parsed OK: [03:55:51]protocol is kg_v1.0 [03:55:51]action value=close_receipt [03:55:51]process_action close_receipt [03:55:51]cmd_close_receipt [03:55:51]MH_GetDate [03:55:51]Write to MH i2c: F0 00 00 EA AA 83 [03:55:51]Write i2c OK [03:55:51]MH_I2C_Read... [03:55:51]Read from MH i2c: F0 [03:55:51]MH_I2C_Read... [03:55:51]Read from MH i2c: F0 09 00 [03:55:51]MH_I2C_Read... [03:55:51]Read from MH i2c: F0 09 00 EA AA 00 4F 7F 14 67 6B 98 1E 66 5C [03:55:51]GetLastDocTimeStamp 1729393554 [03:55:51]current date 1729396559 [03:55:51]FM_GetShiftState [03:55:51]SAM_PROTO_GetShiftState [03:55:51]wFMCommunicate request_size=4 [03:55:51]MH_SAM_APDU [03:55:51]CAPDU: 80 13 01 00 [03:55:51]Write to MH i2c: E2 08 00 EB AA 80 13 01 00 00 00 00 00 12 [03:55:51]Write i2c OK [03:55:51]MH_I2C_Read... [03:55:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:55:51]Read from MH i2c: E2 [03:55:51]MH_I2C_Read... [03:55:51]Read from MH i2c: E2 0E 00 [03:55:51]MH_I2C_Read... [03:55:51]Read from MH i2c: E2 0E 00 EB AA 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 18 [03:55:51]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [03:55:51]wFMCommunicate OK [03:55:51]SAM_PROTO_GetShiftState done [03:55:51]FM_GetShiftState done [03:55:51]opened in 1729383220 [03:55:51]opened+sec_in_day 1729469620 [03:55:51]quantity*price = 152293 [03:55:51]sum+1 = 152295 [03:55:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.94 ИТОГО: 1522.00 Внесено: 3000.00 СДАЧА: 1478.00 НСП 1% : 13.48 НДС 12% : 161.73 Наличными: 1522.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 21 20.10.2024 03:55 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69176 ФПД: 210372341849774 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T035559&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69176&fm=210372341849774&tin=02508201610067®Number=0000000000156251&sum=152200 [03:55:52]StoreToDocumentArchive [03:55:52]shift 193 fd 69176 [03:55:52]save to /storage/0193/doc_00069176 [03:55:52]save last doc name /storage/0193/doc_00069176 to /storage/kkm_last_doc_name [03:55:52]save OK [03:55:52]Clear old archive folders... [03:55:52]ProcessDocumentItem done err = 0, tmpTLVsize=250 [03:55:52]tlvbuf is 005334A0 [03:55:52]SAM_PROTO_ClearQueue [03:55:52]wFMCommunicate request_size=4 [03:55:52]MH_SAM_APDU [03:55:52]CAPDU: 80 09 00 00 [03:55:52]Write to MH i2c: E2 08 00 F8 AA 80 09 00 00 00 00 00 00 14 [03:55:52]Write i2c OK [03:55:52]MH_I2C_Read... [03:55:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:55:52]Read from MH i2c: E2 [03:55:52]MH_I2C_Read... [03:55:52]Read from MH i2c: E2 03 00 [03:55:52]MH_I2C_Read... [03:55:52]Read from MH i2c: E2 03 00 F8 AA 00 90 00 16 [03:55:52]RAPDU: 90 00 [03:55:52]wFMCommunicate OK [03:55:52]SAM_PROTO_ClearQueue done [03:55:52]KKMCreateOFDPacket [03:55:52]OFDProtocolAddRootSTLVToBuf [03:55:52]FM_MakeSignedData [03:55:52]FM_MakeSignedData [03:55:52]SAM_PROTO_SignData [03:55:52]wFMCommunicate request_size=4 [03:55:52]MH_SAM_APDU [03:55:52]CAPDU: 80 0D 01 02 [03:55:52]Write to MH i2c: E2 08 00 F9 AA 80 0D 01 02 00 00 00 00 1C [03:55:52]Write i2c OK [03:55:52]MH_I2C_Read... [03:55:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:55:52]Read from MH i2c: E2 [03:55:52]MH_I2C_Read... [03:55:52]Read from MH i2c: E2 03 00 [03:55:52]MH_I2C_Read... [03:55:52]Read from MH i2c: E2 03 00 F9 AA 00 90 00 17 [03:55:52]RAPDU: 90 00 [03:55:52]wFMCommunicate OK [03:55:52]wFMCommunicate request_size=255 [03:55:52]MH_SAM_APDU [03:55:52]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 EE 98 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 E6 52 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 52 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 3F 00 00 00 00 07 04 06 00 88 52 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 4F 7F 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 38 0E 01 00 35 04 06 00 BF 55 [03:55:52]Write to MH i2c: E2 02 01 FA AA 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 EE 98 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 E6 52 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 52 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 3F 00 00 00 00 07 04 06 00 88 52 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 4F 7F 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 38 0E 01 00 35 04 06 00 BF 55 00 00 B6 [03:55:52]Write i2c OK [03:55:52]MH_I2C_Read... [03:55:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:55:52]Read from MH i2c: E2 [03:55:52]MH_I2C_Read... [03:55:52]Read from MH i2c: E2 03 00 [03:55:52]MH_I2C_Read... [03:55:52]Read from MH i2c: E2 03 00 FA AA 00 90 00 18 [03:55:52]RAPDU: 90 00 [03:55:52]wFMCommunicate OK [03:55:52]wFMCommunicate request_size=9 [03:55:52]MH_SAM_APDU [03:55:52]CAPDU: 80 0D 02 02 04 20 B4 DE AE [03:55:52]Write to MH i2c: E2 0C 00 FB AA 80 0D 02 02 04 00 20 B4 DE AE 00 00 87 [03:55:52]Write i2c OK [03:55:52]MH_I2C_Read... [03:55:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:55:52]Read from MH i2c: E2 [03:55:52]MH_I2C_Read... [03:55:52]Read from MH i2c: E2 03 00 [03:55:52]MH_I2C_Read... [03:55:52]Read from MH i2c: E2 03 00 FB AA 00 90 00 19 [03:55:52]RAPDU: 90 00 [03:55:52]wFMCommunicate OK [03:55:52]wFMCommunicate request_size=4 [03:55:52]MH_SAM_APDU [03:55:52]CAPDU: 80 0D 03 02 [03:55:52]Write to MH i2c: E2 08 00 FC AA 80 0D 03 02 00 00 00 00 21 [03:55:52]Write i2c OK [03:55:52]MH_I2C_Read... [03:55:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:55:52]Read from MH i2c: E2 [03:55:52]MH_I2C_Read... [03:55:52]Read from MH i2c: E2 0B 00 [03:55:52]MH_I2C_Read... [03:55:52]Read from MH i2c: E2 0B 00 FC AA 00 EC 6E 00 4F 3F DF A3 99 90 00 25 [03:55:52]RAPDU: EC 6E 00 4F 3F DF A3 99 90 00 [03:55:52]wFMCommunicate OK [03:55:52]SAM_PROTO_SignData done [03:55:52]FM_MakeSignedData done [03:55:52]CreateOFDProtocolMessage [03:55:52]wFMCommunicate request_size=4 [03:55:52]MH_SAM_APDU [03:55:52]CAPDU: 80 11 00 00 [03:55:52]Write to MH i2c: E2 08 00 FD AA 80 11 00 00 00 00 00 00 21 [03:55:52]Write i2c OK [03:55:52]MH_I2C_Read... [03:55:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:55:52]Read from MH i2c: E2 [03:55:52]MH_I2C_Read... [03:55:52]Read from MH i2c: E2 17 00 [03:55:52]MH_I2C_Read... [03:55:52]Read from MH i2c: E2 17 00 FD AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 73 [03:55:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [03:55:52]wFMCommunicate OK [03:55:52]CreateOFDProtocolMessage done [03:55:52]OFDSenderStorePacket 69176 [03:55:52]StoreOFDPacket docnum=69176 [03:55:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 92 52 06 01 BE 83 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 EE 98 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 E6 52 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 52 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 3F 00 00 00 00 07 04 06 00 88 52 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 4F 7F 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 38 0E 01 00 35 04 06 00 BF 55 20 B4 DE AE EC 6E 00 4F 3F DF A3 99 [03:55:52]CheckFolder [03:55:52]dirname=/storage/ofd_packets [03:55:52]CheckFolder done [03:55:52]ProducePacketName [03:55:52]name=ofd_packets/00069176 [03:55:52]NVStorageSaveData ofd_packets/00069176 [03:55:52]File name is /storage/ofd_packets/00069176 [03:55:52]Write 300 bytes [03:55:52]NVStorageSaveData done [03:55:52]OFDSenderStorePacket done [03:55:52]KKMCreateOFDPacket done [03:55:52]NVStorageSaveData kkm_last_timestamp [03:55:52]File name is /storage/kkm_last_timestamp [03:55:52]Write 4 bytes [03:55:52]NVStorageSaveData done [03:55:52]ExternCall_PrintAddStr [03:55:52]wPrintStart [03:55:52]Write to MH i2c: 01 00 00 FE AA A8 [03:55:52]Write i2c OK [03:55:52]MH_I2C_Read... [03:55:52]Read from MH i2c: 01 [03:55:52]MH_I2C_Read... [03:55:52]Read from MH i2c: 01 07 00 [03:55:52]MH_I2C_Read... [03:55:52]Read from MH i2c: 01 07 00 FE AA 00 00 00 00 00 FF 0F BD [03:55:52]RasterBufferAndPrint [03:55:52]line Счет N : (1)2884888 [03:55:52]line ИНН: 02508201610067 [03:55:52]line Контрольно-Кассовый Чек [03:55:52]line ПРОДАЖА [03:55:52]line ТРК (МРК, ГНК) : 71 [03:55:52]line Товар: 2711129700 [03:55:52]line ГАЗ-К-3 [03:55:52]line 39.150 * 38.90 [03:55:52]line = 1522.94 [03:55:52]line НДС 12% НСП 1% [03:55:52]line > о реализуемом товаре [03:55:52]line ОКРУГЛЕНИЕ: -0.94 [03:55:52]line ИТОГО: 1522.00 [03:55:52]line Внесено: 3000.00 [03:55:52]line СДАЧА: 1478.00 [03:55:52]line НСП 1% : 13.48 [03:55:52]line НДС 12% : 161.73 [03:55:52]line Наличными: 1522.00 [03:55:52]line Безнал.: 0.00 [03:55:52]line Место: АЗС № 85 "Партнер Нефть" [03:55:52]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [03:55:52]line СНО: Общий режим [03:55:52]line Чек 21 20.10.2024 03:55 [03:55:52]line Смена: 193 ФФД: 1.0 [03:55:52]line ЗНМ: 0300000167 [03:55:52]line РНМ: 0000000000156251 [03:55:52]line Версия ККМ: v1.0 [03:55:52]line ФМ: 0000000000963346 [03:55:52]line ФД: 69176 [03:55:52]line ФПД: 210372341849774 [03:55:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T035559&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69176&fm=210372341849774&tin=02508201610067®Number=0000000000156251&sum=152200 [03:55:53]OFD Sender: Processing packet 69176 [packets to send 18, broken 17] [03:55:53]ProducePacketName [03:55:53]name=ofd_packets/00069176 [03:55:53]OFD Sender: To server: pG, [03:55:53]CommunicateWithHost lk.salyk.kg:30040 [03:55:53]ConnectInit lk.salyk.kg [03:55:53]written 0, free lines is 4095 [03:55:53]Connected sock=10 [03:55:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 92 52 06 01 BE 83 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 EE 98 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 E6 52 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 52 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 3F 00 00 00 00 07 04 06 00 88 52 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 4F 7F 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 38 0E 01 00 35 04 06 00 BF 55 20 B4 DE AE EC 6E 00 4F 3F DF A3 99 [03:55:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 9C 89 47 00 6D 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 38 0E 01 00 F4 03 04 00 F7 28 14 67 B6 04 01 00 00 12 72 42 59 E4 7C E9 09 [03:55:53]CommunicateWithHost err = 0 [03:55:53]CheckOFDResponse [03:55:53]1017 (14) - 77093643461234 [03:55:53]1041 (16) - 0000000000963346 [03:55:53]1040 (4) - 69176 [03:55:53]1012 (4) - 19.10.2024 21:47 [03:55:53]1206 (1) - 0 [03:55:53]OFD Sender: Remove packet 69176 [03:55:53]ProducePacketName [03:55:53]name=ofd_packets/00069176 [03:55:53]NVStorageDeleteData [03:55:53]Write to MH i2c: 01 00 00 29 AB D4 [03:55:53]Write i2c OK [03:55:53]MH_I2C_Read... [03:55:53]Read from MH i2c: 01 [03:55:53]MH_I2C_Read... [03:55:53]Read from MH i2c: 01 07 00 [03:55:53]MH_I2C_Read... [03:55:53]Read from MH i2c: 01 07 00 29 AB 00 00 00 00 00 E9 0C D0 [03:55:53]RasterBufferAndPrint [03:55:53]line [03:55:53]line [03:55:53]line [03:55:53]line [03:55:53]line [03:55:53]written 0, free lines is 3311 [03:55:53]MH_Cut [03:55:53]Write to MH i2c: D1 01 00 30 AB 01 AD [03:55:53]Write i2c OK [03:55:53]MH_I2C_Read... [03:55:53]Read from MH i2c: D1 [03:55:53]MH_I2C_Read... [03:55:53]Read from MH i2c: D1 01 00 [03:55:53]MH_I2C_Read... [03:55:53]Read from MH i2c: D1 01 00 30 AB 00 AC [03:55:53]Write to MH i2c: 01 00 00 31 AB DC [03:55:53]Write i2c OK [03:55:53]MH_I2C_Read... [03:55:53]OFD Sender: No OFD packet to send [03:55:54]*** Cut start [03:55:54]*** Partial cut [03:55:54]*** CUTSNS_PIN = 1 [03:55:54]*** CUTSNS_PIN = 0 [03:55:54]*** Brake cut motor [03:55:54]Read from MH i2c: 01 [03:55:54]MH_I2C_Read... [03:55:54]*** Stop cut motor [03:55:54]*** Cut end [03:55:54]Read from MH i2c: 01 07 00 [03:55:54]MH_I2C_Read... [03:55:54]Read from MH i2c: 01 07 00 31 AB 00 00 00 00 00 FF 0F F1 [03:55:54]process_action close_receipt done [03:55:54]requested_data is exist [03:55:54]produce_requested_data [03:55:54]requested_item fm.sn is exist - process it [03:55:54]wFMCommunicate request_size=4 [03:55:54]MH_SAM_APDU [03:55:54]CAPDU: 80 11 00 00 [03:55:54]Write to MH i2c: E2 08 00 32 AB 80 11 00 00 00 00 00 00 57 [03:55:54]Write i2c OK [03:55:54]MH_I2C_Read... [03:55:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:55:54]Read from MH i2c: E2 [03:55:54]MH_I2C_Read... [03:55:54]Read from MH i2c: E2 17 00 [03:55:54]MH_I2C_Read... [03:55:54]Read from MH i2c: E2 17 00 32 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A9 [03:55:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [03:55:54]wFMCommunicate OK [03:55:54]requested_item fd.num is exist - process it [03:55:54]SAM_PROTO_GetFieldsCounters [03:55:54]wFMCommunicate request_size=4 [03:55:54]MH_SAM_APDU [03:55:54]CAPDU: 80 13 00 00 [03:55:54]Write to MH i2c: E2 08 00 33 AB 80 13 00 00 00 00 00 00 5A [03:55:54]Write i2c OK [03:55:54]MH_I2C_Read... [03:55:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:55:55]Read from MH i2c: E2 [03:55:55]MH_I2C_Read... [03:55:55]Read from MH i2c: E2 62 00 [03:55:55]MH_I2C_Read... [03:55:55]Read from MH i2c: E2 62 00 33 AB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 38 0E 01 00 0E 04 04 00 C1 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 BC [03:55:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 38 0E 01 00 0E 04 04 00 C1 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 [03:55:55]wFMCommunicate OK [03:55:55]SAM_PROTO_GetFieldsCounters done [03:55:55]requested_item shift.num is exist - process it [03:55:55]requested_item shift.opened is exist - process it [03:55:55]req_shift_opened [03:55:55]FM_GetShiftState [03:55:55]SAM_PROTO_GetShiftState [03:55:55]wFMCommunicate request_size=4 [03:55:55]MH_SAM_APDU [03:55:55]CAPDU: 80 13 01 00 [03:55:55]Write to MH i2c: E2 08 00 34 AB 80 13 01 00 00 00 00 00 5C [03:55:55]Write i2c OK [03:55:55]MH_I2C_Read... [03:55:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:55:55]Read from MH i2c: E2 [03:55:55]MH_I2C_Read... [03:55:55]Read from MH i2c: E2 0E 00 [03:55:55]MH_I2C_Read... [03:55:55]Read from MH i2c: E2 0E 00 34 AB 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 62 [03:55:55]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [03:55:55]wFMCommunicate OK [03:55:55]SAM_PROTO_GetShiftState done [03:55:55]FM_GetShiftState done [03:55:55]req_shift_opened done [03:55:55]requested_item shift.open_date is exist - process it [03:55:55]req_shift_open_date [03:55:55]req_shift_open_date done [03:55:55]produce_requested_data done [03:55:55]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69176,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [03:55:55]process_action_free close_receipt [03:55:55]json_value_free [03:55:55]json_value_free done [03:55:55]process_json_proto returns [03:55:55]Send response to host [03:55:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69176,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [03:55:55]free response buf [03:55:55]execute_script done [03:55:55]execute_script returns [03:55:55]free content buf [03:55:55]Sock 9.Close socket [03:55:55]Sock 9.Thread stoped [03:55:58]OFD Sender: No OFD packet to send [03:56:03]OFD Sender: No OFD packet to send [03:56:08]OFD Sender: No OFD packet to send [03:56:13]OFD Sender: No OFD packet to send [03:56:18]OFD Sender: No OFD packet to send [03:56:23]OFD Sender: No OFD packet to send [03:56:28]OFD Sender: No OFD packet to send [03:56:33]OFD Sender: No OFD packet to send [03:56:38]OFD Sender: No OFD packet to send [03:56:43]OFD Sender: No OFD packet to send [03:56:48]OFD Sender: No OFD packet to send [03:56:53]OFD Sender: No OFD packet to send [03:56:58]OFD Sender: No OFD packet to send [03:57:03]OFD Sender: No OFD packet to send [03:57:08]OFD Sender: No OFD packet to send [03:57:14]OFD Sender: No OFD packet to send [03:57:19]OFD Sender: No OFD packet to send [03:57:24]OFD Sender: No OFD packet to send [03:57:29]OFD Sender: No OFD packet to send [03:57:34]OFD Sender: No OFD packet to send [03:57:39]OFD Sender: No OFD packet to send [03:57:44]OFD Sender: No OFD packet to send [03:57:49]OFD Sender: No OFD packet to send [03:57:54]OFD Sender: No OFD packet to send [03:57:59]OFD Sender: No OFD packet to send [03:58:04]OFD Sender: No OFD packet to send [03:58:09]OFD Sender: No OFD packet to send [03:58:14]OFD Sender: No OFD packet to send [03:58:19]OFD Sender: No OFD packet to send [03:58:24]OFD Sender: No OFD packet to send [03:58:29]OFD Sender: No OFD packet to send [03:58:34]OFD Sender: No OFD packet to send [03:58:39]OFD Sender: No OFD packet to send [03:58:44]OFD Sender: No OFD packet to send [03:58:49]OFD Sender: No OFD packet to send [03:58:54]OFD Sender: No OFD packet to send [03:58:59]OFD Sender: No OFD packet to send [03:59:04]OFD Sender: No OFD packet to send [03:59:09]OFD Sender: No OFD packet to send [03:59:14]OFD Sender: No OFD packet to send [03:59:19]OFD Sender: No OFD packet to send [03:59:24]OFD Sender: No OFD packet to send [03:59:29]OFD Sender: No OFD packet to send [03:59:34]OFD Sender: No OFD packet to send [03:59:39]OFD Sender: No OFD packet to send [03:59:44]OFD Sender: No OFD packet to send [03:59:49]OFD Sender: No OFD packet to send [03:59:54]OFD Sender: No OFD packet to send [03:59:59]OFD Sender: No OFD packet to send [04:00:04]OFD Sender: No OFD packet to send [04:00:09]OFD Sender: No OFD packet to send [04:00:14]OFD Sender: No OFD packet to send [04:00:19]OFD Sender: No OFD packet to send [04:00:24]OFD Sender: No OFD packet to send [04:00:29]OFD Sender: No OFD packet to send [04:00:34]OFD Sender: No OFD packet to send [04:00:39]OFD Sender: No OFD packet to send [04:00:44]OFD Sender: No OFD packet to send [04:00:49]OFD Sender: No OFD packet to send [04:00:54]OFD Sender: No OFD packet to send [04:00:59]OFD Sender: No OFD packet to send [04:01:04]OFD Sender: No OFD packet to send [04:01:09]OFD Sender: No OFD packet to send [04:01:14]OFD Sender: No OFD packet to send [04:01:19]OFD Sender: No OFD packet to send [04:01:24]OFD Sender: No OFD packet to send [04:01:29]OFD Sender: No OFD packet to send [04:01:34]OFD Sender: No OFD packet to send [04:01:39]OFD Sender: No OFD packet to send [04:01:44]OFD Sender: No OFD packet to send [04:01:49]OFD Sender: No OFD packet to send [04:01:54]OFD Sender: No OFD packet to send [04:01:59]OFD Sender: No OFD packet to send [04:02:04]OFD Sender: No OFD packet to send [04:02:09]OFD Sender: No OFD packet to send [04:02:14]OFD Sender: No OFD packet to send [04:02:19]OFD Sender: No OFD packet to send [04:02:24]OFD Sender: No OFD packet to send [04:02:29]OFD Sender: No OFD packet to send [04:02:34]OFD Sender: No OFD packet to send [04:02:39]OFD Sender: No OFD packet to send [04:02:44]OFD Sender: No OFD packet to send [04:02:49]OFD Sender: No OFD packet to send [04:02:54]OFD Sender: No OFD packet to send [04:02:59]OFD Sender: No OFD packet to send [04:03:04]OFD Sender: No OFD packet to send [04:03:09]OFD Sender: No OFD packet to send [04:03:14]OFD Sender: No OFD packet to send [04:03:19]OFD Sender: No OFD packet to send [04:03:24]OFD Sender: No OFD packet to send [04:03:29]OFD Sender: No OFD packet to send [04:03:34]OFD Sender: No OFD packet to send [04:03:39]OFD Sender: No OFD packet to send [04:03:44]OFD Sender: No OFD packet to send [04:03:49]OFD Sender: No OFD packet to send [04:03:54]OFD Sender: No OFD packet to send [04:03:59]OFD Sender: No OFD packet to send [04:04:04]OFD Sender: No OFD packet to send [04:04:09]OFD Sender: No OFD packet to send [04:04:14]OFD Sender: No OFD packet to send [04:04:19]OFD Sender: No OFD packet to send [04:04:24]OFD Sender: No OFD packet to send [04:04:29]OFD Sender: No OFD packet to send [04:04:34]OFD Sender: No OFD packet to send [04:04:39]OFD Sender: No OFD packet to send [04:04:44]OFD Sender: No OFD packet to send [04:04:49]OFD Sender: No OFD packet to send [04:04:54]OFD Sender: No OFD packet to send [04:04:59]OFD Sender: No OFD packet to send [04:05:04]OFD Sender: No OFD packet to send [04:05:09]OFD Sender: No OFD packet to send [04:05:14]OFD Sender: No OFD packet to send [04:05:19]OFD Sender: No OFD packet to send [04:05:24]OFD Sender: No OFD packet to send [04:05:29]OFD Sender: No OFD packet to send [04:05:34]OFD Sender: No OFD packet to send [04:05:39]OFD Sender: No OFD packet to send [04:05:44]OFD Sender: No OFD packet to send [04:05:49]OFD Sender: No OFD packet to send [04:05:54]OFD Sender: No OFD packet to send [04:05:59]OFD Sender: No OFD packet to send [04:06:04]OFD Sender: No OFD packet to send [04:06:09]OFD Sender: No OFD packet to send [04:06:14]OFD Sender: No OFD packet to send [04:06:19]OFD Sender: No OFD packet to send [04:06:24]OFD Sender: No OFD packet to send [04:06:29]OFD Sender: No OFD packet to send [04:06:34]OFD Sender: No OFD packet to send [04:06:39]OFD Sender: No OFD packet to send [04:06:44]OFD Sender: No OFD packet to send [04:06:49]OFD Sender: No OFD packet to send [04:06:54]OFD Sender: No OFD packet to send [04:06:59]OFD Sender: No OFD packet to send [04:07:04]OFD Sender: No OFD packet to send [04:07:09]OFD Sender: No OFD packet to send [04:07:14]OFD Sender: No OFD packet to send [04:07:19]OFD Sender: No OFD packet to send [04:07:24]OFD Sender: No OFD packet to send [04:07:29]OFD Sender: No OFD packet to send [04:07:34]OFD Sender: No OFD packet to send [04:07:39]OFD Sender: No OFD packet to send [04:07:44]OFD Sender: No OFD packet to send [04:07:49]OFD Sender: No OFD packet to send [04:07:54]OFD Sender: No OFD packet to send [04:07:59]OFD Sender: No OFD packet to send [04:08:04]OFD Sender: No OFD packet to send [04:08:09]OFD Sender: No OFD packet to send [04:08:14]OFD Sender: No OFD packet to send [04:08:19]OFD Sender: No OFD packet to send [04:08:24]OFD Sender: No OFD packet to send [04:08:29]OFD Sender: No OFD packet to send [04:08:34]OFD Sender: No OFD packet to send [04:08:39]OFD Sender: No OFD packet to send [04:08:44]OFD Sender: No OFD packet to send [04:08:49]OFD Sender: No OFD packet to send [04:08:54]OFD Sender: No OFD packet to send [04:08:59]OFD Sender: No OFD packet to send [04:09:04]OFD Sender: No OFD packet to send [04:09:09]OFD Sender: No OFD packet to send [04:09:14]OFD Sender: No OFD packet to send [04:09:19]OFD Sender: No OFD packet to send [04:09:24]OFD Sender: No OFD packet to send [04:09:29]OFD Sender: No OFD packet to send [04:09:34]OFD Sender: No OFD packet to send [04:09:39]OFD Sender: No OFD packet to send [04:09:44]OFD Sender: No OFD packet to send [04:09:49]OFD Sender: No OFD packet to send [04:09:54]OFD Sender: No OFD packet to send [04:09:59]OFD Sender: No OFD packet to send [04:10:04]OFD Sender: No OFD packet to send [04:10:09]OFD Sender: No OFD packet to send [04:10:14]OFD Sender: No OFD packet to send [04:10:19]OFD Sender: No OFD packet to send [04:10:24]OFD Sender: No OFD packet to send [04:10:29]OFD Sender: No OFD packet to send [04:10:34]OFD Sender: No OFD packet to send [04:10:39]OFD Sender: No OFD packet to send [04:10:44]OFD Sender: No OFD packet to send [04:10:49]OFD Sender: No OFD packet to send [04:10:54]OFD Sender: No OFD packet to send [04:10:59]OFD Sender: No OFD packet to send [04:11:04]OFD Sender: No OFD packet to send [04:11:09]OFD Sender: No OFD packet to send [04:11:14]OFD Sender: No OFD packet to send [04:11:19]OFD Sender: No OFD packet to send [04:11:24]OFD Sender: No OFD packet to send [04:11:29]OFD Sender: No OFD packet to send [04:11:34]OFD Sender: No OFD packet to send [04:11:39]OFD Sender: No OFD packet to send [04:11:44]OFD Sender: No OFD packet to send [04:11:49]OFD Sender: No OFD packet to send [04:11:54]OFD Sender: No OFD packet to send [04:11:59]OFD Sender: No OFD packet to send [04:12:04]OFD Sender: No OFD packet to send [04:12:09]OFD Sender: No OFD packet to send [04:12:14]OFD Sender: No OFD packet to send [04:12:19]OFD Sender: No OFD packet to send [04:12:24]OFD Sender: No OFD packet to send [04:12:29]OFD Sender: No OFD packet to send [04:12:34]OFD Sender: No OFD packet to send [04:12:39]OFD Sender: No OFD packet to send [04:12:44]OFD Sender: No OFD packet to send [04:12:49]OFD Sender: No OFD packet to send [04:12:54]OFD Sender: No OFD packet to send [04:12:59]OFD Sender: No OFD packet to send [04:13:04]OFD Sender: No OFD packet to send [04:13:09]OFD Sender: No OFD packet to send [04:13:14]OFD Sender: No OFD packet to send [04:13:19]OFD Sender: No OFD packet to send [04:13:24]OFD Sender: No OFD packet to send [04:13:29]OFD Sender: No OFD packet to send [04:13:34]OFD Sender: No OFD packet to send [04:13:39]OFD Sender: No OFD packet to send [04:13:44]OFD Sender: No OFD packet to send [04:13:49]OFD Sender: No OFD packet to send [04:13:54]OFD Sender: No OFD packet to send [04:13:59]OFD Sender: No OFD packet to send [04:14:04]OFD Sender: No OFD packet to send [04:14:09]OFD Sender: No OFD packet to send [04:14:14]OFD Sender: No OFD packet to send [04:14:19]OFD Sender: No OFD packet to send [04:14:24]OFD Sender: No OFD packet to send [04:14:29]OFD Sender: No OFD packet to send [04:14:34]OFD Sender: No OFD packet to send [04:14:39]OFD Sender: No OFD packet to send [04:14:44]OFD Sender: No OFD packet to send [04:14:49]OFD Sender: No OFD packet to send [04:14:54]OFD Sender: No OFD packet to send [04:14:59]OFD Sender: No OFD packet to send [04:15:04]OFD Sender: No OFD packet to send [04:15:09]OFD Sender: No OFD packet to send [04:15:14]OFD Sender: No OFD packet to send [04:15:19]OFD Sender: No OFD packet to send [04:15:24]OFD Sender: No OFD packet to send [04:15:29]OFD Sender: No OFD packet to send [04:15:34]OFD Sender: No OFD packet to send [04:15:39]OFD Sender: No OFD packet to send [04:15:44]OFD Sender: No OFD packet to send [04:15:49]OFD Sender: No OFD packet to send [04:15:54]OFD Sender: No OFD packet to send [04:15:59]OFD Sender: No OFD packet to send [04:16:04]OFD Sender: No OFD packet to send [04:16:09]OFD Sender: No OFD packet to send [04:16:14]OFD Sender: No OFD packet to send [04:16:19]OFD Sender: No OFD packet to send [04:16:24]OFD Sender: No OFD packet to send [04:16:29]OFD Sender: No OFD packet to send [04:16:34]OFD Sender: No OFD packet to send [04:16:39]OFD Sender: No OFD packet to send [04:16:44]OFD Sender: No OFD packet to send [04:16:49]OFD Sender: No OFD packet to send [04:16:54]OFD Sender: No OFD packet to send [04:16:59]OFD Sender: No OFD packet to send [04:17:04]OFD Sender: No OFD packet to send [04:17:09]OFD Sender: No OFD packet to send [04:17:14]OFD Sender: No OFD packet to send [04:17:19]OFD Sender: No OFD packet to send [04:17:24]OFD Sender: No OFD packet to send [04:17:29]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:00]accept exits with 8 [04:18:00]New connection [04:18:00]New thread 3067260260 created [04:18:00]Thread 3067116900 joined [04:18:00]Waiting for new connection... [04:18:00] Sock 8.Parse request [04:18:00]Sock 8.Check first char [04:18:00]Sock 8.First char is OK [04:18:00]request: POST /json_proto HTTP/1.0 [04:18:00]Method: POST [04:18:00]URL: /json_proto [04:18:00]Method is POST - this is cgi request [04:18:00]url: /json_proto [04:18:00]query_string will be loaded in cgi processing [04:18:00]execute_cgi json_proto POST (null) [04:18:00]execute_cgi path=json_proto method=POST [04:18:00]POST find Content-Length [04:18:00]Host: 172.17.50.3:8080 [04:18:00]Content-Length: 689 [04:18:00]Content-Type: application/json [04:18:00] [04:18:00]POST finish read [04:18:00]Found Content-Length = 689 [04:18:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:18:00]execute_script... [04:18:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:18:00]POST & json_proto [04:18:00]process_json_proto [04:18:00]json parsed OK: [04:18:00]protocol is kg_v1.0 [04:18:00]action value=close_receipt [04:18:00]process_action close_receipt [04:18:00]cmd_close_receipt [04:18:00]MH_GetDate [04:18:00]Write to MH i2c: F0 00 00 35 AB CF [04:18:00]Write i2c OK [04:18:00]MH_I2C_Read... [04:18:00]Read from MH i2c: F0 [04:18:00]MH_I2C_Read... [04:18:00]Read from MH i2c: F0 09 00 [04:18:00]MH_I2C_Read... [04:18:00]Read from MH i2c: F0 09 00 35 AB 00 81 84 14 67 6B 98 1E 66 DF [04:18:00]GetLastDocTimeStamp 1729396559 [04:18:00]current date 1729397889 [04:18:00]FM_GetShiftState [04:18:00]SAM_PROTO_GetShiftState [04:18:00]wFMCommunicate request_size=4 [04:18:00]MH_SAM_APDU [04:18:00]CAPDU: 80 13 01 00 [04:18:00]Write to MH i2c: E2 08 00 36 AB 80 13 01 00 00 00 00 00 5E [04:18:00]Write i2c OK [04:18:00]MH_I2C_Read... [04:18:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:18:00]Read from MH i2c: E2 [04:18:00]MH_I2C_Read... [04:18:00]Read from MH i2c: E2 0E 00 [04:18:00]MH_I2C_Read... [04:18:00]Read from MH i2c: E2 0E 00 36 AB 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 64 [04:18:00]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [04:18:00]wFMCommunicate OK [04:18:00]SAM_PROTO_GetShiftState done [04:18:00]FM_GetShiftState done [04:18:00]opened in 1729383220 [04:18:00]opened+sec_in_day 1729469620 [04:18:00]quantity*price = 300076 [04:18:00]sum+1 = 300077 [04:18:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 22 20.10.2024 04:18 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69177 ФПД: 232563298265658 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T041809&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69177&fm=232563298265658&tin=02508201610067®Number=0000000000156251&sum=300000 [04:18:02]StoreToDocumentArchive [04:18:02]shift 193 fd 69177 [04:18:02]save to /storage/0193/doc_00069177 [04:18:02]save last doc name /storage/0193/doc_00069177 to /storage/kkm_last_doc_name [04:18:02]save OK [04:18:02]Clear old archive folders... [04:18:02]ProcessDocumentItem done err = 0, tmpTLVsize=257 [04:18:02]tlvbuf is 007E13E0 [04:18:02]SAM_PROTO_ClearQueue [04:18:02]wFMCommunicate request_size=4 [04:18:02]MH_SAM_APDU [04:18:02]CAPDU: 80 09 00 00 [04:18:02]Write to MH i2c: E2 08 00 43 AB 80 09 00 00 00 00 00 00 60 [04:18:02]Write i2c OK [04:18:02]MH_I2C_Read... [04:18:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:18:02]Read from MH i2c: E2 [04:18:02]MH_I2C_Read... [04:18:02]Read from MH i2c: E2 03 00 [04:18:02]MH_I2C_Read... [04:18:02]Read from MH i2c: E2 03 00 43 AB 00 90 00 62 [04:18:02]RAPDU: 90 00 [04:18:02]wFMCommunicate OK [04:18:02]SAM_PROTO_ClearQueue done [04:18:02]KKMCreateOFDPacket [04:18:02]OFDProtocolAddRootSTLVToBuf [04:18:02]FM_MakeSignedData [04:18:02]FM_MakeSignedData [04:18:02]SAM_PROTO_SignData [04:18:02]wFMCommunicate request_size=4 [04:18:02]MH_SAM_APDU [04:18:02]CAPDU: 80 0D 01 02 [04:18:02]Write to MH i2c: E2 08 00 44 AB 80 0D 01 02 00 00 00 00 68 [04:18:02]Write i2c OK [04:18:02]MH_I2C_Read... [04:18:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:18:02]Read from MH i2c: E2 [04:18:02]MH_I2C_Read... [04:18:02]Read from MH i2c: E2 03 00 [04:18:02]MH_I2C_Read... [04:18:02]Read from MH i2c: E2 03 00 44 AB 00 90 00 63 [04:18:02]RAPDU: 90 00 [04:18:02]wFMCommunicate OK [04:18:02]wFMCommunicate request_size=255 [04:18:02]MH_SAM_APDU [04:18:02]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 81 84 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 39 0E 01 [04:18:02]Write to MH i2c: E2 02 01 45 AB 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 81 84 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 39 0E 01 00 00 3B [04:18:02]Write i2c OK [04:18:02]MH_I2C_Read... [04:18:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:18:02]Read from MH i2c: E2 [04:18:02]MH_I2C_Read... [04:18:02]Read from MH i2c: E2 03 00 [04:18:02]MH_I2C_Read... [04:18:02]Read from MH i2c: E2 03 00 45 AB 00 90 00 64 [04:18:02]RAPDU: 90 00 [04:18:02]wFMCommunicate OK [04:18:02]wFMCommunicate request_size=16 [04:18:02]MH_SAM_APDU [04:18:02]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 D3 83 DC C7 EA 3A [04:18:02]Write to MH i2c: E2 13 00 46 AB 80 0D 02 02 0B 00 00 35 04 06 00 D3 83 DC C7 EA 3A 00 00 DD [04:18:02]Write i2c OK [04:18:02]MH_I2C_Read... [04:18:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:18:02]Read from MH i2c: E2 [04:18:02]MH_I2C_Read... [04:18:02]Read from MH i2c: E2 03 00 [04:18:02]MH_I2C_Read... [04:18:02]Read from MH i2c: E2 03 00 46 AB 00 90 00 65 [04:18:02]RAPDU: 90 00 [04:18:02]wFMCommunicate OK [04:18:02]wFMCommunicate request_size=4 [04:18:02]MH_SAM_APDU [04:18:02]CAPDU: 80 0D 03 02 [04:18:02]Write to MH i2c: E2 08 00 47 AB 80 0D 03 02 00 00 00 00 6D [04:18:02]Write i2c OK [04:18:02]MH_I2C_Read... [04:18:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:18:02]Read from MH i2c: E2 [04:18:02]MH_I2C_Read... [04:18:02]Read from MH i2c: E2 0B 00 [04:18:02]MH_I2C_Read... [04:18:02]Read from MH i2c: E2 0B 00 47 AB 00 BB 81 2F FE 35 70 BE 39 90 00 73 [04:18:02]RAPDU: BB 81 2F FE 35 70 BE 39 90 00 [04:18:02]wFMCommunicate OK [04:18:02]SAM_PROTO_SignData done [04:18:02]FM_MakeSignedData done [04:18:02]CreateOFDProtocolMessage [04:18:02]wFMCommunicate request_size=4 [04:18:02]MH_SAM_APDU [04:18:02]CAPDU: 80 11 00 00 [04:18:02]Write to MH i2c: E2 08 00 48 AB 80 11 00 00 00 00 00 00 6D [04:18:02]Write i2c OK [04:18:02]MH_I2C_Read... [04:18:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:18:02]Read from MH i2c: E2 [04:18:02]MH_I2C_Read... [04:18:02]Read from MH i2c: E2 17 00 [04:18:02]MH_I2C_Read... [04:18:02]Read from MH i2c: E2 17 00 48 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BF [04:18:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [04:18:02]wFMCommunicate OK [04:18:02]CreateOFDProtocolMessage done [04:18:02]OFDSenderStorePacket 69177 [04:18:02]StoreOFDPacket docnum=69177 [04:18:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 62 1F 0D 01 51 A3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 81 84 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 39 0E 01 00 35 04 06 00 D3 83 DC C7 EA 3A BB 81 2F FE 35 70 BE 39 [04:18:02]CheckFolder [04:18:02]dirname=/storage/ofd_packets [04:18:02]CheckFolder done [04:18:02]ProducePacketName [04:18:02]name=ofd_packets/00069177 [04:18:02]NVStorageSaveData ofd_packets/00069177 [04:18:02]File name is /storage/ofd_packets/00069177 [04:18:02]Write 307 bytes [04:18:02]NVStorageSaveData done [04:18:02]OFDSenderStorePacket done [04:18:02]KKMCreateOFDPacket done [04:18:02]NVStorageSaveData kkm_last_timestamp [04:18:02]File name is /storage/kkm_last_timestamp [04:18:02]Write 4 bytes [04:18:02]NVStorageSaveData done [04:18:02]ExternCall_PrintAddStr [04:18:02]wPrintStart [04:18:02]Write to MH i2c: 01 00 00 49 AB F4 [04:18:02]Write i2c OK [04:18:02]MH_I2C_Read... [04:18:02]Read from MH i2c: 01 [04:18:02]MH_I2C_Read... [04:18:02]Read from MH i2c: 01 07 00 [04:18:02]MH_I2C_Read... [04:18:02]Read from MH i2c: 01 07 00 49 AB 00 00 00 00 00 FF 0F 09 [04:18:02]RasterBufferAndPrint [04:18:02]line Счет N : (1)2884890 [04:18:02]line ИНН: 02508201610067 [04:18:02]line Контрольно-Кассовый Чек [04:18:02]line ПРОДАЖА [04:18:02]line ТРК (МРК, ГНК) : 21 [04:18:02]line Товар: 2710194240 [04:18:02]line D-ENERGY Дт-К-2 [04:18:02]line 38.870 * 77.20 [04:18:02]line = 3000.76 [04:18:02]line НДС 12% НСП 1% [04:18:02]line > о реализуемом товаре [04:18:02]line ОКРУГЛЕНИЕ: -0.76 [04:18:02]line ИТОГО: 3000.00 [04:18:02]line Внесено: 3000.00 [04:18:02]line СДАЧА: 0.00 [04:18:02]line НСП 1% : 26.55 [04:18:02]line НДС 12% : 318.66 [04:18:02]line Наличными: 3000.00 [04:18:02]line Безнал.: 0.00 [04:18:02]line Место: АЗС № 85 "Партнер Нефть" [04:18:02]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [04:18:02]line СНО: Общий режим [04:18:02]line Чек 22 20.10.2024 04:18 [04:18:02]line Смена: 193 ФФД: 1.0 [04:18:02]line ЗНМ: 0300000167 [04:18:02]line РНМ: 0000000000156251 [04:18:02]line Версия ККМ: v1.0 [04:18:02]line ФМ: 0000000000963346 [04:18:02]line ФД: 69177 [04:18:02]line ФПД: 232563298265658 [04:18:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T041809&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69177&fm=232563298265658&tin=02508201610067®Number=0000000000156251&sum=300000 [04:18:02]OFD Sender: Processing packet 69177 [packets to send 18, broken 17] [04:18:02]ProducePacketName [04:18:02]name=ofd_packets/00069177 [04:18:02]OFD Sender: To server: pG, [04:18:02]CommunicateWithHost lk.salyk.kg:30040 [04:18:02]ConnectInit lk.salyk.kg [04:18:02]written 0, free lines is 4095 [04:18:03]Connected sock=11 [04:18:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 62 1F 0D 01 51 A3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 81 84 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 39 0E 01 00 35 04 06 00 D3 83 DC C7 EA 3A BB 81 2F FE 35 70 BE 39 [04:18:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 9B B2 47 00 8A 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 39 0E 01 00 F4 03 04 00 29 2E 14 67 B6 04 01 00 00 2D 67 39 23 48 E0 22 35 [04:18:03]CommunicateWithHost err = 0 [04:18:03]CheckOFDResponse [04:18:03]1017 (14) - 77093643461234 [04:18:03]1041 (16) - 0000000000963346 [04:18:03]1040 (4) - 69177 [04:18:03]1012 (4) - 19.10.2024 22:09 [04:18:03]1206 (1) - 0 [04:18:03]OFD Sender: Remove packet 69177 [04:18:03]ProducePacketName [04:18:03]name=ofd_packets/00069177 [04:18:03]NVStorageDeleteData [04:18:03]Write to MH i2c: 01 00 00 74 AB 1F [04:18:03]Write i2c OK [04:18:03]MH_I2C_Read... [04:18:03]Read from MH i2c: 01 [04:18:03]MH_I2C_Read... [04:18:03]Read from MH i2c: 01 07 00 [04:18:03]MH_I2C_Read... [04:18:03]Read from MH i2c: 01 07 00 74 AB 00 00 00 00 00 F8 0C 2A [04:18:03]RasterBufferAndPrint [04:18:03]line [04:18:03]line [04:18:03]line [04:18:03]line [04:18:03]line [04:18:03]written 0, free lines is 3327 [04:18:03]MH_Cut [04:18:03]Write to MH i2c: D1 01 00 7B AB 01 F8 [04:18:03]Write i2c OK [04:18:03]MH_I2C_Read... [04:18:03]Read from MH i2c: D1 [04:18:03]MH_I2C_Read... [04:18:03]Read from MH i2c: D1 01 00 [04:18:03]MH_I2C_Read... [04:18:03]Read from MH i2c: D1 01 00 7B AB 00 F7 [04:18:03]Write to MH i2c: 01 00 00 7C AB 27 [04:18:03]Write i2c OK [04:18:03]MH_I2C_Read... [04:18:03]OFD Sender: No OFD packet to send [04:18:04]*** Cut start [04:18:04]*** Partial cut [04:18:04]*** CUTSNS_PIN = 1 [04:18:04]*** CUTSNS_PIN = 0 [04:18:04]*** Brake cut motor [04:18:04]Read from MH i2c: 01 [04:18:04]MH_I2C_Read... [04:18:04]*** Stop cut motor [04:18:04]*** Cut end [04:18:04]Read from MH i2c: 01 07 00 [04:18:04]MH_I2C_Read... [04:18:04]Read from MH i2c: 01 07 00 7C AB 00 00 00 00 00 FF 0F 3C [04:18:04]process_action close_receipt done [04:18:04]requested_data is exist [04:18:04]produce_requested_data [04:18:04]requested_item fm.sn is exist - process it [04:18:04]wFMCommunicate request_size=4 [04:18:04]MH_SAM_APDU [04:18:04]CAPDU: 80 11 00 00 [04:18:04]Write to MH i2c: E2 08 00 7D AB 80 11 00 00 00 00 00 00 A2 [04:18:04]Write i2c OK [04:18:04]MH_I2C_Read... [04:18:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:18:04]Read from MH i2c: E2 [04:18:04]MH_I2C_Read... [04:18:04]Read from MH i2c: E2 17 00 [04:18:04]MH_I2C_Read... [04:18:04]Read from MH i2c: E2 17 00 7D AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F4 [04:18:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [04:18:04]wFMCommunicate OK [04:18:04]requested_item fd.num is exist - process it [04:18:04]SAM_PROTO_GetFieldsCounters [04:18:04]wFMCommunicate request_size=4 [04:18:04]MH_SAM_APDU [04:18:04]CAPDU: 80 13 00 00 [04:18:04]Write to MH i2c: E2 08 00 7E AB 80 13 00 00 00 00 00 00 A5 [04:18:04]Write i2c OK [04:18:04]MH_I2C_Read... [04:18:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:18:04]Read from MH i2c: E2 [04:18:04]MH_I2C_Read... [04:18:04]Read from MH i2c: E2 62 00 [04:18:04]MH_I2C_Read... [04:18:04]Read from MH i2c: E2 62 00 7E AB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 39 0E 01 00 0E 04 04 00 C1 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 0B [04:18:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 39 0E 01 00 0E 04 04 00 C1 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 [04:18:04]wFMCommunicate OK [04:18:04]SAM_PROTO_GetFieldsCounters done [04:18:04]requested_item shift.num is exist - process it [04:18:04]requested_item shift.opened is exist - process it [04:18:04]req_shift_opened [04:18:04]FM_GetShiftState [04:18:04]SAM_PROTO_GetShiftState [04:18:04]wFMCommunicate request_size=4 [04:18:04]MH_SAM_APDU [04:18:04]CAPDU: 80 13 01 00 [04:18:04]Write to MH i2c: E2 08 00 7F AB 80 13 01 00 00 00 00 00 A7 [04:18:04]Write i2c OK [04:18:04]MH_I2C_Read... [04:18:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:18:04]Read from MH i2c: E2 [04:18:04]MH_I2C_Read... [04:18:04]Read from MH i2c: E2 0E 00 [04:18:04]MH_I2C_Read... [04:18:04]Read from MH i2c: E2 0E 00 7F AB 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 AD [04:18:04]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [04:18:04]wFMCommunicate OK [04:18:04]SAM_PROTO_GetShiftState done [04:18:04]FM_GetShiftState done [04:18:04]req_shift_opened done [04:18:04]requested_item shift.open_date is exist - process it [04:18:04]req_shift_open_date [04:18:04]req_shift_open_date done [04:18:04]produce_requested_data done [04:18:04]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69177,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [04:18:04]process_action_free close_receipt [04:18:04]json_value_free [04:18:04]json_value_free done [04:18:04]process_json_proto returns [04:18:04]Send response to host [04:18:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69177,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [04:18:04]free response buf [04:18:04]execute_script done [04:18:04]execute_script returns [04:18:04]free content buf [04:18:04]Sock 8.Close socket [04:18:04]Sock 8.Thread stoped [04:18:08]OFD Sender: No OFD packet to send [04:18:13]OFD Sender: No OFD packet to send [04:18:18]OFD Sender: No OFD packet to send [04:18:23]OFD Sender: No OFD packet to send [04:18:28]OFD Sender: No OFD packet to send [04:18:33]OFD Sender: No OFD packet to send [04:18:38]OFD Sender: No OFD packet to send [04:18:43]OFD Sender: No OFD packet to send [04:18:48]OFD Sender: No OFD packet to send [04:18:53]OFD Sender: No OFD packet to send [04:18:58]OFD Sender: No OFD packet to send [04:19:03]OFD Sender: No OFD packet to send [04:19:08]OFD Sender: No OFD packet to send [04:19:13]OFD Sender: No OFD packet to send [04:19:18]OFD Sender: No OFD packet to send [04:19:23]OFD Sender: No OFD packet to send [04:19:28]OFD Sender: No OFD packet to send [04:19:33]OFD Sender: No OFD packet to send [04:19:38]OFD Sender: No OFD packet to send [04:19:43]OFD Sender: No OFD packet to send [04:19:48]OFD Sender: No OFD packet to send [04:19:53]OFD Sender: No OFD packet to send [04:19:58]OFD Sender: No OFD packet to send [04:20:03]OFD Sender: No OFD packet to send [04:20:08]OFD Sender: No OFD packet to send [04:20:13]OFD Sender: No OFD packet to send [04:20:18]OFD Sender: No OFD packet to send [04:20:23]OFD Sender: No OFD packet to send [04:20:28]OFD Sender: No OFD packet to send [04:20:33]OFD Sender: No OFD packet to send [04:20:38]OFD Sender: No OFD packet to send [04:20:43]OFD Sender: No OFD packet to send [04:20:48]OFD Sender: No OFD packet to send [04:20:53]OFD Sender: No OFD packet to send [04:20:58]OFD Sender: No OFD packet to send [04:21:03]OFD Sender: No OFD packet to send [04:21:08]OFD Sender: No OFD packet to send [04:21:13]OFD Sender: No OFD packet to send [04:21:18]OFD Sender: No OFD packet to send [04:21:23]OFD Sender: No OFD packet to send [04:21:28]OFD Sender: No OFD packet to send [04:21:33]OFD Sender: No OFD packet to send [04:21:38]OFD Sender: No OFD packet to send [04:21:43]OFD Sender: No OFD packet to send [04:21:48]OFD Sender: No OFD packet to send [04:21:53]OFD Sender: No OFD packet to send [04:21:58]OFD Sender: No OFD packet to send [04:22:03]OFD Sender: No OFD packet to send [04:22:08]OFD Sender: No OFD packet to send [04:22:13]OFD Sender: No OFD packet to send [04:22:18]OFD Sender: No OFD packet to send [04:22:24]OFD Sender: No OFD packet to send [04:22:29]OFD Sender: No OFD packet to send [04:22:34]OFD Sender: No OFD packet to send [04:22:39]OFD Sender: No OFD packet to send [04:22:44]OFD Sender: No OFD packet to send [04:22:49]OFD Sender: No OFD packet to send [04:22:54]OFD Sender: No OFD packet to send [04:22:59]OFD Sender: No OFD packet to send [04:23:04]OFD Sender: No OFD packet to send [04:23:09]OFD Sender: No OFD packet to send [04:23:14]OFD Sender: No OFD packet to send [04:23:19]OFD Sender: No OFD packet to send [04:23:24]OFD Sender: No OFD packet to send [04:23:29]OFD Sender: No OFD packet to send [04:23:34]OFD Sender: No OFD packet to send [04:23:39]OFD Sender: No OFD packet to send [04:23:44]OFD Sender: No OFD packet to send [04:23:49]OFD Sender: No OFD packet to send [04:23:54]OFD Sender: No OFD packet to send [04:23:59]OFD Sender: No OFD packet to send [04:24:04]OFD Sender: No OFD packet to send [04:24:09]OFD Sender: No OFD packet to send [04:24:14]OFD Sender: No OFD packet to send [04:24:19]OFD Sender: No OFD packet to send [04:24:24]OFD Sender: No OFD packet to send [04:24:29]OFD Sender: No OFD packet to send [04:24:34]OFD Sender: No OFD packet to send [04:24:39]OFD Sender: No OFD packet to send [04:24:44]OFD Sender: No OFD packet to send [04:24:49]OFD Sender: No OFD packet to send [04:24:54]OFD Sender: No OFD packet to send [04:24:59]OFD Sender: No OFD packet to send [04:25:04]OFD Sender: No OFD packet to send [04:25:09]OFD Sender: No OFD packet to send [04:25:14]OFD Sender: No OFD packet to send [04:25:19]OFD Sender: No OFD packet to send [04:25:24]OFD Sender: No OFD packet to send [04:25:29]OFD Sender: No OFD packet to send [04:25:34]OFD Sender: No OFD packet to send [04:25:39]OFD Sender: No OFD packet to send [04:25:44]OFD Sender: No OFD packet to send [04:25:49]OFD Sender: No OFD packet to send [04:25:54]OFD Sender: No OFD packet to send [04:25:59]OFD Sender: No OFD packet to send [04:26:04]OFD Sender: No OFD packet to send [04:26:09]OFD Sender: No OFD packet to send [04:26:14]OFD Sender: No OFD packet to send [04:26:19]OFD Sender: No OFD packet to send [04:26:24]OFD Sender: No OFD packet to send [04:26:29]OFD Sender: No OFD packet to send [04:26:34]OFD Sender: No OFD packet to send [04:26:39]OFD Sender: No OFD packet to send [04:26:44]OFD Sender: No OFD packet to send [04:26:49]OFD Sender: No OFD packet to send [04:26:54]OFD Sender: No OFD packet to send [04:26:59]OFD Sender: No OFD packet to send [04:27:04]OFD Sender: No OFD packet to send [04:27:09]OFD Sender: No OFD packet to send [04:27:14]OFD Sender: No OFD packet to send [04:27:19]OFD Sender: No OFD packet to send [04:27:24]OFD Sender: No OFD packet to send [04:27:29]OFD Sender: No OFD packet to send [04:27:34]OFD Sender: No OFD packet to send [04:27:39]OFD Sender: No OFD packet to send [04:27:44]OFD Sender: No OFD packet to send [04:27:49]OFD Sender: No OFD packet to send [04:27:54]OFD Sender: No OFD packet to send [04:27:59]OFD Sender: No OFD packet to send [04:28:04]OFD Sender: No OFD packet to send [04:28:09]OFD Sender: No OFD packet to send [04:28:14]OFD Sender: No OFD packet to send [04:28:19]OFD Sender: No OFD packet to send [04:28:24]OFD Sender: No OFD packet to send [04:28:29]OFD Sender: No OFD packet to send [04:28:34]OFD Sender: No OFD packet to send [04:28:39]OFD Sender: No OFD packet to send [04:28:44]OFD Sender: No OFD packet to send [04:28:49]OFD Sender: No OFD packet to send [04:28:54]OFD Sender: No OFD packet to send [04:28:59]OFD Sender: No OFD packet to send [04:29:04]OFD Sender: No OFD packet to send [04:29:09]OFD Sender: No OFD packet to send [04:29:14]OFD Sender: No OFD packet to send [04:29:19]OFD Sender: No OFD packet to send [04:29:24]OFD Sender: No OFD packet to send [04:29:29]OFD Sender: No OFD packet to send [04:29:34]OFD Sender: No OFD packet to send [04:29:39]OFD Sender: No OFD packet to send [04:29:44]OFD Sender: No OFD packet to send [04:29:49]OFD Sender: No OFD packet to send [04:29:54]OFD Sender: No OFD packet to send [04:29:59]OFD Sender: No OFD packet to send [04:30:04]OFD Sender: No OFD packet to send [04:30:09]OFD Sender: No OFD packet to send [04:30:14]OFD Sender: No OFD packet to send [04:30:19]OFD Sender: No OFD packet to send [04:30:24]OFD Sender: No OFD packet to send [04:30:29]OFD Sender: No OFD packet to send [04:30:34]OFD Sender: No OFD packet to send [04:30:39]OFD Sender: No OFD packet to send [04:30:44]OFD Sender: No OFD packet to send [04:30:49]OFD Sender: No OFD packet to send [04:30:54]OFD Sender: No OFD packet to send [04:30:59]OFD Sender: No OFD packet to send [04:31:04]OFD Sender: No OFD packet to send [04:31:09]OFD Sender: No OFD packet to send [04:31:14]OFD Sender: No OFD packet to send [04:31:19]OFD Sender: No OFD packet to send [04:31:24]OFD Sender: No OFD packet to send [04:31:29]OFD Sender: No OFD packet to send [04:31:34]OFD Sender: No OFD packet to send [04:31:39]OFD Sender: No OFD packet to send [04:31:44]OFD Sender: No OFD packet to send [04:31:49]OFD Sender: No OFD packet to send [04:31:54]OFD Sender: No OFD packet to send [04:31:59]OFD Sender: No OFD packet to send [04:32:04]OFD Sender: No OFD packet to send [04:32:09]OFD Sender: No OFD packet to send [04:32:14]OFD Sender: No OFD packet to send [04:32:19]OFD Sender: No OFD packet to send [04:32:24]OFD Sender: No OFD packet to send [04:32:29]OFD Sender: No OFD packet to send [04:32:34]OFD Sender: No OFD packet to send [04:32:39]OFD Sender: No OFD packet to send [04:32:44]OFD Sender: No OFD packet to send [04:32:49]OFD Sender: No OFD packet to send [04:32:54]OFD Sender: No OFD packet to send [04:32:59]OFD Sender: No OFD packet to send [04:33:04]OFD Sender: No OFD packet to send [04:33:09]OFD Sender: No OFD packet to send [04:33:14]OFD Sender: No OFD packet to send [04:33:19]OFD Sender: No OFD packet to send [04:33:24]OFD Sender: No OFD packet to send [04:33:29]OFD Sender: No OFD packet to send [04:33:34]OFD Sender: No OFD packet to send [04:33:39]OFD Sender: No OFD packet to send [04:33:44]OFD Sender: No OFD packet to send [04:33:49]OFD Sender: No OFD packet to send [04:33:54]OFD Sender: No OFD packet to send [04:33:59]OFD Sender: No OFD packet to send [04:34:04]OFD Sender: No OFD packet to send [04:34:09]OFD Sender: No OFD packet to send [04:34:14]OFD Sender: No OFD packet to send [04:34:19]OFD Sender: No OFD packet to send [04:34:24]OFD Sender: No OFD packet to send [04:34:29]OFD Sender: No OFD packet to send [04:34:34]OFD Sender: No OFD packet to send [04:34:39]OFD Sender: No OFD packet to send [04:34:44]OFD Sender: No OFD packet to send [04:34:49]OFD Sender: No OFD packet to send [04:34:54]OFD Sender: No OFD packet to send [04:34:59]OFD Sender: No OFD packet to send [04:35:04]OFD Sender: No OFD packet to send [04:35:09]OFD Sender: No OFD packet to send [04:35:14]OFD Sender: No OFD packet to send [04:35:19]OFD Sender: No OFD packet to send [04:35:24]OFD Sender: No OFD packet to send [04:35:29]OFD Sender: No OFD packet to send [04:35:34]OFD Sender: No OFD packet to send [04:35:39]OFD Sender: No OFD packet to send [04:35:44]OFD Sender: No OFD packet to send [04:35:49]OFD Sender: No OFD packet to send [04:35:54]OFD Sender: No OFD packet to send [04:35:59]OFD Sender: No OFD packet to send [04:36:04]OFD Sender: No OFD packet to send [04:36:09]OFD Sender: No OFD packet to send [04:36:14]OFD Sender: No OFD packet to send [04:36:19]OFD Sender: No OFD packet to send [04:36:24]OFD Sender: No OFD packet to send [04:36:29]OFD Sender: No OFD packet to send [04:36:34]OFD Sender: No OFD packet to send [04:36:39]OFD Sender: No OFD packet to send [04:36:44]OFD Sender: No OFD packet to send [04:36:49]OFD Sender: No OFD packet to send [04:36:54]OFD Sender: No OFD packet to send [04:36:59]OFD Sender: No OFD packet to send [04:37:04]OFD Sender: No OFD packet to send [04:37:09]OFD Sender: No OFD packet to send [04:37:14]OFD Sender: No OFD packet to send [04:37:19]OFD Sender: No OFD packet to send [04:37:24]OFD Sender: No OFD packet to send [04:37:29]OFD Sender: No OFD packet to send [04:37:34]OFD Sender: No OFD packet to send [04:37:39]OFD Sender: No OFD packet to send [04:37:44]OFD Sender: No OFD packet to send [04:37:49]OFD Sender: No OFD packet to send [04:37:54]OFD Sender: No OFD packet to send [04:37:59]OFD Sender: No OFD packet to send [04:38:04]OFD Sender: No OFD packet to send [04:38:09]OFD Sender: No OFD packet to send [04:38:14]OFD Sender: No OFD packet to send [04:38:19]OFD Sender: No OFD packet to send [04:38:24]OFD Sender: No OFD packet to send [04:38:29]OFD Sender: No OFD packet to send [04:38:34]OFD Sender: No OFD packet to send [04:38:39]OFD Sender: No OFD packet to send [04:38:44]OFD Sender: No OFD packet to send [04:38:49]OFD Sender: No OFD packet to send [04:38:54]OFD Sender: No OFD packet to send [04:38:59]OFD Sender: No OFD packet to send [04:39:04]OFD Sender: No OFD packet to send [04:39:09]OFD Sender: No OFD packet to send [04:39:14]OFD Sender: No OFD packet to send [04:39:19]OFD Sender: No OFD packet to send [04:39:24]OFD Sender: No OFD packet to send [04:39:29]OFD Sender: No OFD packet to send [04:39:34]OFD Sender: No OFD packet to send [04:39:39]OFD Sender: No OFD packet to send [04:39:44]OFD Sender: No OFD packet to send [04:39:49]OFD Sender: No OFD packet to send [04:39:54]OFD Sender: No OFD packet to send [04:39:59]OFD Sender: No OFD packet to send [04:40:04]OFD Sender: No OFD packet to send [04:40:09]OFD Sender: No OFD packet to send [04:40:14]OFD Sender: No OFD packet to send [04:40:19]OFD Sender: No OFD packet to send [04:40:24]OFD Sender: No OFD packet to send [04:40:29]OFD Sender: No OFD packet to send [04:40:34]OFD Sender: No OFD packet to send [04:40:39]OFD Sender: No OFD packet to send [04:40:44]OFD Sender: No OFD packet to send [04:40:49]OFD Sender: No OFD packet to send [04:40:54]OFD Sender: No OFD packet to send [04:40:59]OFD Sender: No OFD packet to send [04:41:04]OFD Sender: No OFD packet to send [04:41:09]OFD Sender: No OFD packet to send [04:41:14]OFD Sender: No OFD packet to send [04:41:19]OFD Sender: No OFD packet to send [04:41:24]OFD Sender: No OFD packet to send [04:41:29]OFD Sender: No OFD packet to send [04:41:34]OFD Sender: No OFD packet to send [04:41:39]OFD Sender: No OFD packet to send [04:41:44]OFD Sender: No OFD packet to send [04:41:49]OFD Sender: No OFD packet to send [04:41:54]OFD Sender: No OFD packet to send [04:41:59]OFD Sender: No OFD packet to send [04:42:04]OFD Sender: No OFD packet to send [04:42:09]OFD Sender: No OFD packet to send [04:42:14]OFD Sender: No OFD packet to send [04:42:19]OFD Sender: No OFD packet to send [04:42:24]OFD Sender: No OFD packet to send [04:42:29]OFD Sender: No OFD packet to send [04:42:34]OFD Sender: No OFD packet to send [04:42:39]OFD Sender: No OFD packet to send [04:42:45]OFD Sender: No OFD packet to send [04:42:50]OFD Sender: No OFD packet to send [04:42:55]OFD Sender: No OFD packet to send [04:43:00]OFD Sender: No OFD packet to send [04:43:05]OFD Sender: No OFD packet to send [04:43:10]OFD Sender: No OFD packet to send [04:43:15]OFD Sender: No OFD packet to send [04:43:20]OFD Sender: No OFD packet to send [04:43:25]OFD Sender: No OFD packet to send [04:43:30]OFD Sender: No OFD packet to send [04:43:35]OFD Sender: No OFD packet to send [04:43:40]OFD Sender: No OFD packet to send [04:43:45]OFD Sender: No OFD packet to send [04:43:50]OFD Sender: No OFD packet to send [04:43:55]OFD Sender: No OFD packet to send [04:44:00]OFD Sender: No OFD packet to send [04:44:05]OFD Sender: No OFD packet to send [04:44:10]OFD Sender: No OFD packet to send [04:44:15]OFD Sender: No OFD packet to send [04:44:20]OFD Sender: No OFD packet to send [04:44:25]OFD Sender: No OFD packet to send [04:44:30]OFD Sender: No OFD packet to send [04:44:35]OFD Sender: No OFD packet to send [04:44:40]OFD Sender: No OFD packet to send [04:44:45]OFD Sender: No OFD packet to send [04:44:50]OFD Sender: No OFD packet to send [04:44:55]OFD Sender: No OFD packet to send [04:45:00]OFD Sender: No OFD packet to send [04:45:05]OFD Sender: No OFD packet to send [04:45:10]OFD Sender: No OFD packet to send [04:45:15]OFD Sender: No OFD packet to send [04:45:20]OFD Sender: No OFD packet to send [04:45:25]OFD Sender: No OFD packet to send [04:45:30]OFD Sender: No OFD packet to send [04:45:35]OFD Sender: No OFD packet to send [04:45:40]OFD Sender: No OFD packet to send [04:45:45]OFD Sender: No OFD packet to send [04:45:50]OFD Sender: No OFD packet to send [04:45:55]OFD Sender: No OFD packet to send [04:46:00]OFD Sender: No OFD packet to send [04:46:05]OFD Sender: No OFD packet to send [04:46:10]OFD Sender: No OFD packet to send [04:46:15]OFD Sender: No OFD packet to send [04:46:20]OFD Sender: No OFD packet to send [04:46:25]OFD Sender: No OFD packet to send [04:46:30]OFD Sender: No OFD packet to send [04:46:35]OFD Sender: No OFD packet to send [04:46:40]OFD Sender: No OFD packet to send [04:46:45]OFD Sender: No OFD packet to send [04:46:50]OFD Sender: No OFD packet to send [04:46:55]OFD Sender: No OFD packet to send [04:47:00]OFD Sender: No OFD packet to send [04:47:05]OFD Sender: No OFD packet to send [04:47:10]OFD Sender: No OFD packet to send [04:47:15]OFD Sender: No OFD packet to send [04:47:20]OFD Sender: No OFD packet to send [04:47:25]OFD Sender: No OFD packet to send [04:47:30]OFD Sender: No OFD packet to send [04:47:35]OFD Sender: No OFD packet to send [04:47:40]OFD Sender: No OFD packet to send [04:47:45]OFD Sender: No OFD packet to send [04:47:50]OFD Sender: No OFD packet to send [04:47:55]OFD Sender: No OFD packet to send [04:48:00]OFD Sender: No OFD packet to send [04:48:05]OFD Sender: No OFD packet to send [04:48:10]OFD Sender: No OFD packet to send [04:48:15]OFD Sender: No OFD packet to send [04:48:20]OFD Sender: No OFD packet to send [04:48:25]OFD Sender: No OFD packet to send [04:48:30]OFD Sender: No OFD packet to send [04:48:35]OFD Sender: No OFD packet to send [04:48:40]OFD Sender: No OFD packet to send [04:48:45]OFD Sender: No OFD packet to send [04:48:50]OFD Sender: No OFD packet to send [04:48:55]OFD Sender: No OFD packet to send [04:49:00]OFD Sender: No OFD packet to send [04:49:05]OFD Sender: No OFD packet to send [04:49:10]OFD Sender: No OFD packet to send [04:49:15]OFD Sender: No OFD packet to send [04:49:20]OFD Sender: No OFD packet to send [04:49:25]OFD Sender: No OFD packet to send [04:49:30]OFD Sender: No OFD packet to send [04:49:35]OFD Sender: No OFD packet to send [04:49:40]OFD Sender: No OFD packet to send [04:49:45]OFD Sender: No OFD packet to send [04:49:50]OFD Sender: No OFD packet to send [04:49:55]OFD Sender: No OFD packet to send [04:50:00]OFD Sender: No OFD packet to send [04:50:05]OFD Sender: No OFD packet to send [04:50:10]OFD Sender: No OFD packet to send [04:50:15]OFD Sender: No OFD packet to send [04:50:20]OFD Sender: No OFD packet to send [04:50:25]OFD Sender: No OFD packet to send [04:50:30]OFD Sender: No OFD packet to send [04:50:35]OFD Sender: No OFD packet to send [04:50:40]OFD Sender: No OFD packet to send [04:50:45]OFD Sender: No OFD packet to send [04:50:50]OFD Sender: No OFD packet to send [04:50:55]OFD Sender: No OFD packet to send [04:51:00]OFD Sender: No OFD packet to send [04:51:05]OFD Sender: No OFD packet to send [04:51:10]OFD Sender: No OFD packet to send [04:51:15]OFD Sender: No OFD packet to send [04:51:20]OFD Sender: No OFD packet to send [04:51:25]OFD Sender: No OFD packet to send [04:51:30]OFD Sender: No OFD packet to send [04:51:35]OFD Sender: No OFD packet to send [04:51:40]OFD Sender: No OFD packet to send [04:51:45]OFD Sender: No OFD packet to send [04:51:50]OFD Sender: No OFD packet to send [04:51:55]OFD Sender: No OFD packet to send [04:52:00]OFD Sender: No OFD packet to send [04:52:05]OFD Sender: No OFD packet to send [04:52:10]OFD Sender: No OFD packet to send [04:52:15]OFD Sender: No OFD packet to send [04:52:20]OFD Sender: No OFD packet to send [04:52:25]OFD Sender: No OFD packet to send [04:52:30]OFD Sender: No OFD packet to send [04:52:35]OFD Sender: No OFD packet to send [04:52:40]OFD Sender: No OFD packet to send [04:52:45]OFD Sender: No OFD packet to send [04:52:50]OFD Sender: No OFD packet to send [04:52:55]OFD Sender: No OFD packet to send [04:53:00]OFD Sender: No OFD packet to send [04:53:05]OFD Sender: No OFD packet to send [04:53:10]OFD Sender: No OFD packet to send [04:53:15]OFD Sender: No OFD packet to send [04:53:20]OFD Sender: No OFD packet to send [04:53:25]OFD Sender: No OFD packet to send [04:53:30]OFD Sender: No OFD packet to send [04:53:35]OFD Sender: No OFD packet to send [04:53:40]OFD Sender: No OFD packet to send [04:53:45]OFD Sender: No OFD packet to send [04:53:50]OFD Sender: No OFD packet to send [04:53:55]OFD Sender: No OFD packet to send [04:54:00]OFD Sender: No OFD packet to send [04:54:05]OFD Sender: No OFD packet to send [04:54:10]OFD Sender: No OFD packet to send [04:54:15]OFD Sender: No OFD packet to send [04:54:20]OFD Sender: No OFD packet to send [04:54:25]OFD Sender: No OFD packet to send [04:54:30]OFD Sender: No OFD packet to send [04:54:35]OFD Sender: No OFD packet to send [04:54:40]OFD Sender: No OFD packet to send [04:54:45]OFD Sender: No OFD packet to send [04:54:50]OFD Sender: No OFD packet to send [04:54:53]accept exits with 9 [04:54:53]New connection [04:54:53]New thread 3067116900 created [04:54:53]Thread 3067260260 joined [04:54:53]Waiting for new connection... [04:54:53] Sock 9.Parse request [04:54:53]Sock 9.Check first char [04:54:53]Sock 9.First char is OK [04:54:53]request: POST /json_proto HTTP/1.0 [04:54:53]Method: POST [04:54:53]URL: /json_proto [04:54:53]Method is POST - this is cgi request [04:54:53]url: /json_proto [04:54:53]query_string will be loaded in cgi processing [04:54:53]execute_cgi json_proto POST (null) [04:54:53]execute_cgi path=json_proto method=POST [04:54:53]POST find Content-Length [04:54:53]Host: 172.17.50.3:8080 [04:54:53]Content-Length: 684 [04:54:53]Content-Type: application/json [04:54:53] [04:54:53]POST finish read [04:54:53]Found Content-Length = 684 [04:54:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 9.070, "sum" : 700.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:54:53]execute_script... [04:54: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)2884891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 9.070, "sum" : 700.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:54:53]POST & json_proto [04:54:53]process_json_proto [04:54:53]json parsed OK: [04:54:53]protocol is kg_v1.0 [04:54:53]action value=close_receipt [04:54:53]process_action close_receipt [04:54:53]cmd_close_receipt [04:54:53]MH_GetDate [04:54:53]Write to MH i2c: F0 00 00 80 AB 1A [04:54:53]Write i2c OK [04:54:53]MH_I2C_Read... [04:54:53]Read from MH i2c: F0 [04:54:53]MH_I2C_Read... [04:54:53]Read from MH i2c: F0 09 00 [04:54:53]MH_I2C_Read... [04:54:53]Read from MH i2c: F0 09 00 80 AB 00 26 8D 14 67 6B 98 1E 66 D8 [04:54:53]GetLastDocTimeStamp 1729397889 [04:54:53]current date 1729400102 [04:54:53]FM_GetShiftState [04:54:53]SAM_PROTO_GetShiftState [04:54:53]wFMCommunicate request_size=4 [04:54:53]MH_SAM_APDU [04:54:53]CAPDU: 80 13 01 00 [04:54:53]Write to MH i2c: E2 08 00 81 AB 80 13 01 00 00 00 00 00 A9 [04:54:53]Write i2c OK [04:54:53]MH_I2C_Read... [04:54:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:54:53]Read from MH i2c: E2 [04:54:53]MH_I2C_Read... [04:54:53]Read from MH i2c: E2 0E 00 [04:54:53]MH_I2C_Read... [04:54:53]Read from MH i2c: E2 0E 00 81 AB 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 AF [04:54:53]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [04:54:53]wFMCommunicate OK [04:54:53]SAM_PROTO_GetShiftState done [04:54:53]FM_GetShiftState done [04:54:53]opened in 1729383220 [04:54:53]opened+sec_in_day 1729469620 [04:54:53]quantity*price = 70020 [04:54:53]sum+1 = 70021 [04:54:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 23 20.10.2024 04:55 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69178 ФПД: 126935748471932 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T045502&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69178&fm=126935748471932&tin=02508201610067®Number=0000000000156251&sum=70000 [04:54:54]StoreToDocumentArchive [04:54:54]shift 193 fd 69178 [04:54:54]save to /storage/0193/doc_00069178 [04:54:54]save last doc name /storage/0193/doc_00069178 to /storage/kkm_last_doc_name [04:54:54]save OK [04:54:54]Clear old archive folders... [04:54:54]ProcessDocumentItem done err = 0, tmpTLVsize=257 [04:54:54]tlvbuf is 00451550 [04:54:54]SAM_PROTO_ClearQueue [04:54:54]wFMCommunicate request_size=4 [04:54:54]MH_SAM_APDU [04:54:54]CAPDU: 80 09 00 00 [04:54:54]Write to MH i2c: E2 08 00 8E AB 80 09 00 00 00 00 00 00 AB [04:54:54]Write i2c OK [04:54:54]MH_I2C_Read... [04:54:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:54:54]Read from MH i2c: E2 [04:54:54]MH_I2C_Read... [04:54:54]Read from MH i2c: E2 03 00 [04:54:54]MH_I2C_Read... [04:54:54]Read from MH i2c: E2 03 00 8E AB 00 90 00 AD [04:54:54]RAPDU: 90 00 [04:54:54]wFMCommunicate OK [04:54:54]SAM_PROTO_ClearQueue done [04:54:54]KKMCreateOFDPacket [04:54:54]OFDProtocolAddRootSTLVToBuf [04:54:54]FM_MakeSignedData [04:54:54]FM_MakeSignedData [04:54:54]SAM_PROTO_SignData [04:54:54]wFMCommunicate request_size=4 [04:54:54]MH_SAM_APDU [04:54:54]CAPDU: 80 0D 01 02 [04:54:54]Write to MH i2c: E2 08 00 8F AB 80 0D 01 02 00 00 00 00 B3 [04:54:54]Write i2c OK [04:54:54]MH_I2C_Read... [04:54:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:54:54]Read from MH i2c: E2 [04:54:54]MH_I2C_Read... [04:54:54]Read from MH i2c: E2 03 00 [04:54:54]MH_I2C_Read... [04:54:54]Read from MH i2c: E2 03 00 8F AB 00 90 00 AE [04:54:54]RAPDU: 90 00 [04:54:54]wFMCommunicate OK [04:54:54]wFMCommunicate request_size=255 [04:54:54]MH_SAM_APDU [04:54:54]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 26 8D 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3A 0E 01 [04:54:54]Write to MH i2c: E2 02 01 90 AB 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 26 8D 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3A 0E 01 00 00 7A [04:54:54]Write i2c OK [04:54:54]MH_I2C_Read... [04:54:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:54:55]Read from MH i2c: E2 [04:54:55]MH_I2C_Read... [04:54:55]Read from MH i2c: E2 03 00 [04:54:55]MH_I2C_Read... [04:54:55]Read from MH i2c: E2 03 00 90 AB 00 90 00 AF [04:54:55]RAPDU: 90 00 [04:54:55]wFMCommunicate OK [04:54:55]wFMCommunicate request_size=16 [04:54:55]MH_SAM_APDU [04:54:55]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 73 72 88 32 6C 7C [04:54:55]Write to MH i2c: E2 13 00 91 AB 80 0D 02 02 0B 00 00 35 04 06 00 73 72 88 32 6C 7C 00 00 92 [04:54:55]Write i2c OK [04:54:55]MH_I2C_Read... [04:54:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:54:55]Read from MH i2c: E2 [04:54:55]MH_I2C_Read... [04:54:55]Read from MH i2c: E2 03 00 [04:54:55]MH_I2C_Read... [04:54:55]Read from MH i2c: E2 03 00 91 AB 00 90 00 B0 [04:54:55]RAPDU: 90 00 [04:54:55]wFMCommunicate OK [04:54:55]wFMCommunicate request_size=4 [04:54:55]MH_SAM_APDU [04:54:55]CAPDU: 80 0D 03 02 [04:54:55]Write to MH i2c: E2 08 00 92 AB 80 0D 03 02 00 00 00 00 B8 [04:54:55]Write i2c OK [04:54:55]MH_I2C_Read... [04:54:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:54:55]Read from MH i2c: E2 [04:54:55]MH_I2C_Read... [04:54:55]Read from MH i2c: E2 0B 00 [04:54:55]MH_I2C_Read... [04:54:55]Read from MH i2c: E2 0B 00 92 AB 00 60 BE 09 2F BE 18 FE 80 90 00 63 [04:54:55]RAPDU: 60 BE 09 2F BE 18 FE 80 90 00 [04:54:55]wFMCommunicate OK [04:54:55]SAM_PROTO_SignData done [04:54:55]FM_MakeSignedData done [04:54:55]CreateOFDProtocolMessage [04:54:55]wFMCommunicate request_size=4 [04:54:55]MH_SAM_APDU [04:54:55]CAPDU: 80 11 00 00 [04:54:55]Write to MH i2c: E2 08 00 93 AB 80 11 00 00 00 00 00 00 B8 [04:54:55]Write i2c OK [04:54:55]MH_I2C_Read... [04:54:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:54:55]Read from MH i2c: E2 [04:54:55]MH_I2C_Read... [04:54:55]Read from MH i2c: E2 17 00 [04:54:55]MH_I2C_Read... [04:54:55]Read from MH i2c: E2 17 00 93 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0A [04:54:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [04:54:55]wFMCommunicate OK [04:54:55]CreateOFDProtocolMessage done [04:54:55]OFDSenderStorePacket 69178 [04:54:55]StoreOFDPacket docnum=69178 [04:54:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 ED 12 0D 01 BF D3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 26 8D 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3A 0E 01 00 35 04 06 00 73 72 88 32 6C 7C 60 BE 09 2F BE 18 FE 80 [04:54:55]CheckFolder [04:54:55]dirname=/storage/ofd_packets [04:54:55]CheckFolder done [04:54:55]ProducePacketName [04:54:55]name=ofd_packets/00069178 [04:54:55]NVStorageSaveData ofd_packets/00069178 [04:54:55]File name is /storage/ofd_packets/00069178 [04:54:55]Write 307 bytes [04:54:55]NVStorageSaveData done [04:54:55]OFDSenderStorePacket done [04:54:55]KKMCreateOFDPacket done [04:54:55]NVStorageSaveData kkm_last_timestamp [04:54:55]File name is /storage/kkm_last_timestamp [04:54:55]Write 4 bytes [04:54:55]NVStorageSaveData done [04:54:55]ExternCall_PrintAddStr [04:54:55]wPrintStart [04:54:55]Write to MH i2c: 01 00 00 94 AB 3F [04:54:55]Write i2c OK [04:54:55]MH_I2C_Read... [04:54:55]Read from MH i2c: 01 [04:54:55]MH_I2C_Read... [04:54:55]Read from MH i2c: 01 07 00 [04:54:55]MH_I2C_Read... [04:54:55]Read from MH i2c: 01 07 00 94 AB 00 00 00 00 00 FF 0F 54 [04:54:55]RasterBufferAndPrint [04:54:55]line Счет N : (1)2884891 [04:54:55]line ИНН: 02508201610067 [04:54:55]line Контрольно-Кассовый Чек [04:54:55]line ПРОДАЖА [04:54:55]line ТРК (МРК, ГНК) : 11 [04:54:55]line Товар: 2710194240 [04:54:55]line D-ENERGY Дт-К-2 [04:54:55]line 9.070 * 77.20 [04:54:55]line = 700.20 [04:54:55]line НДС 12% НСП 1% [04:54:55]line > о реализуемом товаре [04:54:55]line ОКРУГЛЕНИЕ: -0.20 [04:54:55]line ИТОГО: 700.00 [04:54:55]line Внесено: 700.00 [04:54:55]line СДАЧА: 0.00 [04:54:55]line НСП 1% : 6.20 [04:54:55]line НДС 12% : 74.36 [04:54:55]line Наличными: 700.00 [04:54:55]line Безнал.: 0.00 [04:54:55]line Место: АЗС № 85 "Партнер Нефть" [04:54:55]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [04:54:55]line СНО: Общий режим [04:54:55]line Чек 23 20.10.2024 04:55 [04:54:55]line Смена: 193 ФФД: 1.0 [04:54:55]line ЗНМ: 0300000167 [04:54:55]line РНМ: 0000000000156251 [04:54:55]line Версия ККМ: v1.0 [04:54:55]line ФМ: 0000000000963346 [04:54:55]line ФД: 69178 [04:54:55]line ФПД: 126935748471932 [04:54:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T045502&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69178&fm=126935748471932&tin=02508201610067®Number=0000000000156251&sum=70000 [04:54:55]OFD Sender: Processing packet 69178 [packets to send 18, broken 17] [04:54:55]ProducePacketName [04:54:55]name=ofd_packets/00069178 [04:54:55]OFD Sender: To server: pG, [04:54:55]CommunicateWithHost lk.salyk.kg:30040 [04:54:55]ConnectInit lk.salyk.kg [04:54:55]written 0, free lines is 4095 [04:54:55]Connected sock=10 [04:54:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 ED 12 0D 01 BF D3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 26 8D 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3A 0E 01 00 35 04 06 00 73 72 88 32 6C 7C 60 BE 09 2F BE 18 FE 80 [04:54:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 9F C1 47 00 0D 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3A 0E 01 00 F4 03 04 00 CD 36 14 67 B6 04 01 00 00 A0 72 79 E0 3E 74 E8 C1 [04:54:55]CommunicateWithHost err = 0 [04:54:55]CheckOFDResponse [04:54:55]1017 (14) - 77093643461234 [04:54:55]1041 (16) - 0000000000963346 [04:54:55]1040 (4) - 69178 [04:54:55]1012 (4) - 19.10.2024 22:46 [04:54:55]1206 (1) - 0 [04:54:55]OFD Sender: Remove packet 69178 [04:54:55]ProducePacketName [04:54:55]name=ofd_packets/00069178 [04:54:55]NVStorageDeleteData [04:54:56]Write to MH i2c: 01 00 00 BF AB 6A [04:54:56]Write i2c OK [04:54:56]MH_I2C_Read... [04:54:56]Read from MH i2c: 01 [04:54:56]MH_I2C_Read... [04:54:56]Read from MH i2c: 01 07 00 [04:54:56]MH_I2C_Read... [04:54:56]Read from MH i2c: 01 07 00 BF AB 00 00 00 00 00 E6 0C 63 [04:54:56]RasterBufferAndPrint [04:54:56]line [04:54:56]line [04:54:56]line [04:54:56]line [04:54:56]line [04:54:56]written 0, free lines is 3308 [04:54:56]MH_Cut [04:54:56]Write to MH i2c: D1 01 00 C6 AB 01 43 [04:54:56]Write i2c OK [04:54:56]MH_I2C_Read... [04:54:56]Read from MH i2c: D1 [04:54:56]MH_I2C_Read... [04:54:56]Read from MH i2c: D1 01 00 [04:54:56]MH_I2C_Read... [04:54:56]Read from MH i2c: D1 01 00 C6 AB 00 42 [04:54:56]Write to MH i2c: 01 00 00 C7 AB 72 [04:54:56]Write i2c OK [04:54:56]MH_I2C_Read... [04:54:56]OFD Sender: No OFD packet to send [04:54:56]*** Cut start [04:54:56]*** Partial cut [04:54:56]*** CUTSNS_PIN = 1 [04:54:56]*** CUTSNS_PIN = 0 [04:54:57]*** Brake cut motor [04:54:57]Read from MH i2c: 01 [04:54:57]MH_I2C_Read... [04:54:57]*** Stop cut motor [04:54:57]*** Cut end [04:54:57]Read from MH i2c: 01 07 00 [04:54:57]MH_I2C_Read... [04:54:57]Read from MH i2c: 01 07 00 C7 AB 00 00 00 00 00 FF 0F 87 [04:54:57]process_action close_receipt done [04:54:57]requested_data is exist [04:54:57]produce_requested_data [04:54:57]requested_item fm.sn is exist - process it [04:54:57]wFMCommunicate request_size=4 [04:54:57]MH_SAM_APDU [04:54:57]CAPDU: 80 11 00 00 [04:54:57]Write to MH i2c: E2 08 00 C8 AB 80 11 00 00 00 00 00 00 ED [04:54:57]Write i2c OK [04:54:57]MH_I2C_Read... [04:54:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:54:57]Read from MH i2c: E2 [04:54:57]MH_I2C_Read... [04:54:57]Read from MH i2c: E2 17 00 [04:54:57]MH_I2C_Read... [04:54:57]Read from MH i2c: E2 17 00 C8 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3F [04:54:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [04:54:57]wFMCommunicate OK [04:54:57]requested_item fd.num is exist - process it [04:54:57]SAM_PROTO_GetFieldsCounters [04:54:57]wFMCommunicate request_size=4 [04:54:57]MH_SAM_APDU [04:54:57]CAPDU: 80 13 00 00 [04:54:57]Write to MH i2c: E2 08 00 C9 AB 80 13 00 00 00 00 00 00 F0 [04:54:57]Write i2c OK [04:54:57]MH_I2C_Read... [04:54:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:54:57]Read from MH i2c: E2 [04:54:57]MH_I2C_Read... [04:54:57]Read from MH i2c: E2 62 00 [04:54:57]MH_I2C_Read... [04:54:57]Read from MH i2c: E2 62 00 C9 AB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3A 0E 01 00 0E 04 04 00 C1 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 5A [04:54:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3A 0E 01 00 0E 04 04 00 C1 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 [04:54:57]wFMCommunicate OK [04:54:57]SAM_PROTO_GetFieldsCounters done [04:54:57]requested_item shift.num is exist - process it [04:54:57]requested_item shift.opened is exist - process it [04:54:57]req_shift_opened [04:54:57]FM_GetShiftState [04:54:57]SAM_PROTO_GetShiftState [04:54:57]wFMCommunicate request_size=4 [04:54:57]MH_SAM_APDU [04:54:57]CAPDU: 80 13 01 00 [04:54:57]Write to MH i2c: E2 08 00 CA AB 80 13 01 00 00 00 00 00 F2 [04:54:57]Write i2c OK [04:54:57]MH_I2C_Read... [04:54:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:54:57]Read from MH i2c: E2 [04:54:57]MH_I2C_Read... [04:54:57]Read from MH i2c: E2 0E 00 [04:54:57]MH_I2C_Read... [04:54:57]Read from MH i2c: E2 0E 00 CA AB 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 F8 [04:54:57]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [04:54:57]wFMCommunicate OK [04:54:57]SAM_PROTO_GetShiftState done [04:54:57]FM_GetShiftState done [04:54:57]req_shift_opened done [04:54:57]requested_item shift.open_date is exist - process it [04:54:57]req_shift_open_date [04:54:57]req_shift_open_date done [04:54:57]produce_requested_data done [04:54:57]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69178,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [04:54:57]process_action_free close_receipt [04:54:57]json_value_free [04:54:57]json_value_free done [04:54:57]process_json_proto returns [04:54:57]Send response to host [04:54:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69178,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [04:54:57]free response buf [04:54:57]execute_script done [04:54:57]execute_script returns [04:54:57]free content buf [04:54:57]Sock 9.Close socket [04:54:57]Sock 9.Thread stoped [04:55:01]OFD Sender: No OFD packet to send [04:55:06]OFD Sender: No OFD packet to send [04:55:11]OFD Sender: No OFD packet to send [04:55:16]OFD Sender: No OFD packet to send [04:55:21]OFD Sender: No OFD packet to send [04:55:26]OFD Sender: No OFD packet to send [04:55:31]OFD Sender: No OFD packet to send [04:55:36]OFD Sender: No OFD packet to send [04:55:41]OFD Sender: No OFD packet to send [04:55:46]OFD Sender: No OFD packet to send [04:55:51]OFD Sender: No OFD packet to send [04:55:56]OFD Sender: No OFD packet to send [04:56:01]OFD Sender: No OFD packet to send [04:56:06]OFD Sender: No OFD packet to send [04:56:11]OFD Sender: No OFD packet to send [04:56:16]OFD Sender: No OFD packet to send [04:56:21]OFD Sender: No OFD packet to send [04:56:26]OFD Sender: No OFD packet to send [04:56:31]OFD Sender: No OFD packet to send [04:56:36]OFD Sender: No OFD packet to send [04:56:41]OFD Sender: No OFD packet to send [04:56:46]OFD Sender: No OFD packet to send [04:56:51]OFD Sender: No OFD packet to send [04:56:56]OFD Sender: No OFD packet to send [04:57:01]OFD Sender: No OFD packet to send [04:57:06]OFD Sender: No OFD packet to send [04:57:11]OFD Sender: No OFD packet to send [04:57:16]OFD Sender: No OFD packet to send [04:57:21]OFD Sender: No OFD packet to send [04:57:26]OFD Sender: No OFD packet to send [04:57:31]OFD Sender: No OFD packet to send [04:57:36]OFD Sender: No OFD packet to send [04:57:41]OFD Sender: No OFD packet to send [04:57:46]OFD Sender: No OFD packet to send [04:57:51]OFD Sender: No OFD packet to send [04:57:56]OFD Sender: No OFD packet to send [04:58:01]OFD Sender: No OFD packet to send [04:58:06]OFD Sender: No OFD packet to send [04:58:11]OFD Sender: No OFD packet to send [04:58:16]OFD Sender: No OFD packet to send [04:58:21]OFD Sender: No OFD packet to send [04:58:26]OFD Sender: No OFD packet to send [04:58:31]OFD Sender: No OFD packet to send [04:58:36]OFD Sender: No OFD packet to send [04:58:41]OFD Sender: No OFD packet to send [04:58:46]OFD Sender: No OFD packet to send [04:58:51]OFD Sender: No OFD packet to send [04:58:56]OFD Sender: No OFD packet to send [04:59:01]OFD Sender: No OFD packet to send [04:59:06]OFD Sender: No OFD packet to send [04:59:11]OFD Sender: No OFD packet to send [04:59:16]OFD Sender: No OFD packet to send [04:59:21]OFD Sender: No OFD packet to send [04:59:26]OFD Sender: No OFD packet to send [04:59:31]OFD Sender: No OFD packet to send [04:59:36]OFD Sender: No OFD packet to send [04:59:41]OFD Sender: No OFD packet to send [04:59:46]OFD Sender: No OFD packet to send [04:59:51]OFD Sender: No OFD packet to send [04:59:56]OFD Sender: No OFD packet to send [05:00:01]OFD Sender: No OFD packet to send [05:00:06]OFD Sender: No OFD packet to send [05:00:11]OFD Sender: No OFD packet to send [05:00:16]OFD Sender: No OFD packet to send [05:00:21]OFD Sender: No OFD packet to send [05:00:26]OFD Sender: No OFD packet to send [05:00:31]OFD Sender: No OFD packet to send [05:00:36]OFD Sender: No OFD packet to send [05:00:41]OFD Sender: No OFD packet to send [05:00:46]OFD Sender: No OFD packet to send [05:00:51]OFD Sender: No OFD packet to send [05:00:56]OFD Sender: No OFD packet to send [05:01:01]OFD Sender: No OFD packet to send [05:01:06]OFD Sender: No OFD packet to send [05:01:11]OFD Sender: No OFD packet to send [05:01:16]OFD Sender: No OFD packet to send [05:01:21]OFD Sender: No OFD packet to send [05:01:26]OFD Sender: No OFD packet to send [05:01:31]OFD Sender: No OFD packet to send [05:01:36]OFD Sender: No OFD packet to send [05:01:41]OFD Sender: No OFD packet to send [05:01:46]OFD Sender: No OFD packet to send [05:01:51]OFD Sender: No OFD packet to send [05:01:56]OFD Sender: No OFD packet to send [05:02:01]OFD Sender: No OFD packet to send [05:02:06]OFD Sender: No OFD packet to send [05:02:11]OFD Sender: No OFD packet to send [05:02:16]OFD Sender: No OFD packet to send [05:02:21]OFD Sender: No OFD packet to send [05:02:26]OFD Sender: No OFD packet to send [05:02:31]OFD Sender: No OFD packet to send [05:02:36]OFD Sender: No OFD packet to send [05:02:41]OFD Sender: No OFD packet to send [05:02:46]OFD Sender: No OFD packet to send [05:02:51]OFD Sender: No OFD packet to send [05:02:56]OFD Sender: No OFD packet to send [05:03:01]OFD Sender: No OFD packet to send [05:03:06]OFD Sender: No OFD packet to send [05:03:11]OFD Sender: No OFD packet to send [05:03:16]OFD Sender: No OFD packet to send [05:03:21]OFD Sender: No OFD packet to send [05:03:26]OFD Sender: No OFD packet to send [05:03:31]OFD Sender: No OFD packet to send [05:03:36]OFD Sender: No OFD packet to send [05:03:41]OFD Sender: No OFD packet to send [05:03:46]OFD Sender: No OFD packet to send [05:03:51]OFD Sender: No OFD packet to send [05:03:56]OFD Sender: No OFD packet to send [05:04:01]OFD Sender: No OFD packet to send [05:04:06]OFD Sender: No OFD packet to send [05:04:11]OFD Sender: No OFD packet to send [05:04:16]OFD Sender: No OFD packet to send [05:04:21]OFD Sender: No OFD packet to send [05:04:26]OFD Sender: No OFD packet to send [05:04:31]OFD Sender: No OFD packet to send [05:04:36]OFD Sender: No OFD packet to send [05:04:41]OFD Sender: No OFD packet to send [05:04:46]OFD Sender: No OFD packet to send [05:04:51]OFD Sender: No OFD packet to send [05:04:56]OFD Sender: No OFD packet to send [05:05:01]OFD Sender: No OFD packet to send [05:05:06]OFD Sender: No OFD packet to send [05:05:11]OFD Sender: No OFD packet to send [05:05:16]OFD Sender: No OFD packet to send [05:05:21]OFD Sender: No OFD packet to send [05:05:26]OFD Sender: No OFD packet to send [05:05:31]OFD Sender: No OFD packet to send [05:05:36]OFD Sender: No OFD packet to send [05:05:41]OFD Sender: No OFD packet to send [05:05:46]OFD Sender: No OFD packet to send [05:05:51]OFD Sender: No OFD packet to send [05:05:56]OFD Sender: No OFD packet to send [05:06:02]OFD Sender: No OFD packet to send [05:06:07]OFD Sender: No OFD packet to send [05:06:09]accept exits with 8 [05:06:09]New connection [05:06:09]New thread 3067260260 created [05:06:09]Thread 3067116900 joined [05:06:09]Waiting for new connection... [05:06:09] Sock 8.Parse request [05:06:09]Sock 8.Check first char [05:06:09]Sock 8.First char is OK [05:06:09]request: POST /json_proto HTTP/1.0 [05:06:09]Method: POST [05:06:09]URL: /json_proto [05:06:09]Method is POST - this is cgi request [05:06:09]url: /json_proto [05:06:09]query_string will be loaded in cgi processing [05:06:09]execute_cgi json_proto POST (null) [05:06:09]execute_cgi path=json_proto method=POST [05:06:09]POST find Content-Length [05:06:09]Host: 172.17.50.3:8080 [05:06:09]Content-Length: 683 [05:06:09]Content-Type: application/json [05:06:09] [05:06:09]POST finish read [05:06:09]Found Content-Length = 683 [05:06:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:06:09]execute_script... [05:06:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:06:09]POST & json_proto [05:06:09]process_json_proto [05:06:09]json parsed OK: [05:06:09]protocol is kg_v1.0 [05:06:09]action value=close_receipt [05:06:09]process_action close_receipt [05:06:09]cmd_close_receipt [05:06:09]MH_GetDate [05:06:09]Write to MH i2c: F0 00 00 CB AB 65 [05:06:09]Write i2c OK [05:06:09]MH_I2C_Read... [05:06:09]Read from MH i2c: F0 [05:06:09]MH_I2C_Read... [05:06:09]Read from MH i2c: F0 09 00 [05:06:09]MH_I2C_Read... [05:06:09]Read from MH i2c: F0 09 00 CB AB 00 CA 8F 14 67 6B 98 1E 66 C9 [05:06:09]GetLastDocTimeStamp 1729400102 [05:06:09]current date 1729400778 [05:06:09]FM_GetShiftState [05:06:09]SAM_PROTO_GetShiftState [05:06:09]wFMCommunicate request_size=4 [05:06:09]MH_SAM_APDU [05:06:09]CAPDU: 80 13 01 00 [05:06:09]Write to MH i2c: E2 08 00 CC AB 80 13 01 00 00 00 00 00 F4 [05:06:09]Write i2c OK [05:06:09]MH_I2C_Read... [05:06:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:06:09]Read from MH i2c: E2 [05:06:09]MH_I2C_Read... [05:06:09]Read from MH i2c: E2 0E 00 [05:06:09]MH_I2C_Read... [05:06:09]Read from MH i2c: E2 0E 00 CC AB 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 FA [05:06:09]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [05:06:09]wFMCommunicate OK [05:06:09]SAM_PROTO_GetShiftState done [05:06:09]FM_GetShiftState done [05:06:09]opened in 1729383220 [05:06:09]opened+sec_in_day 1729469620 [05:06:09]quantity*price = 200043 [05:06:09]sum+1 = 200044 [05:06:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 24 20.10.2024 05:06 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69179 ФПД: 46925687288685 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T050618&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69179&fm=46925687288685&tin=02508201610067®Number=0000000000156251&sum=200000 [05:06:10]StoreToDocumentArchive [05:06:10]shift 193 fd 69179 [05:06:10]save to /storage/0193/doc_00069179 [05:06:10]save last doc name /storage/0193/doc_00069179 to /storage/kkm_last_doc_name [05:06:10]save OK [05:06:10]Clear old archive folders... [05:06:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:06:10]tlvbuf is 00476C30 [05:06:10]SAM_PROTO_ClearQueue [05:06:10]wFMCommunicate request_size=4 [05:06:10]MH_SAM_APDU [05:06:10]CAPDU: 80 09 00 00 [05:06:10]Write to MH i2c: E2 08 00 D9 AB 80 09 00 00 00 00 00 00 F6 [05:06:10]Write i2c OK [05:06:10]MH_I2C_Read... [05:06:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:06:10]Read from MH i2c: E2 [05:06:10]MH_I2C_Read... [05:06:10]Read from MH i2c: E2 03 00 [05:06:10]MH_I2C_Read... [05:06:10]Read from MH i2c: E2 03 00 D9 AB 00 90 00 F8 [05:06:10]RAPDU: 90 00 [05:06:10]wFMCommunicate OK [05:06:10]SAM_PROTO_ClearQueue done [05:06:10]KKMCreateOFDPacket [05:06:10]OFDProtocolAddRootSTLVToBuf [05:06:10]FM_MakeSignedData [05:06:10]FM_MakeSignedData [05:06:10]SAM_PROTO_SignData [05:06:10]wFMCommunicate request_size=4 [05:06:10]MH_SAM_APDU [05:06:10]CAPDU: 80 0D 01 02 [05:06:10]Write to MH i2c: E2 08 00 DA AB 80 0D 01 02 00 00 00 00 FE [05:06:10]Write i2c OK [05:06:10]MH_I2C_Read... [05:06:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:06:10]Read from MH i2c: E2 [05:06:10]MH_I2C_Read... [05:06:10]Read from MH i2c: E2 03 00 [05:06:10]MH_I2C_Read... [05:06:10]Read from MH i2c: E2 03 00 DA AB 00 90 00 F9 [05:06:11]RAPDU: 90 00 [05:06:11]wFMCommunicate OK [05:06:11]wFMCommunicate request_size=255 [05:06:11]MH_SAM_APDU [05:06:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 CA 8F 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3B 0E 01 00 35 04 06 00 2A [05:06:11]Write to MH i2c: E2 02 01 DB AB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 CA 8F 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3B 0E 01 00 35 04 06 00 2A 00 00 50 [05:06:11]Write i2c OK [05:06:11]MH_I2C_Read... [05:06:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:06:11]Read from MH i2c: E2 [05:06:11]MH_I2C_Read... [05:06:11]Read from MH i2c: E2 03 00 [05:06:11]MH_I2C_Read... [05:06:11]Read from MH i2c: E2 03 00 DB AB 00 90 00 FA [05:06:11]RAPDU: 90 00 [05:06:11]wFMCommunicate OK [05:06:11]wFMCommunicate request_size=10 [05:06:11]MH_SAM_APDU [05:06:11]CAPDU: 80 0D 02 02 05 AD BC EB F3 6D [05:06:11]Write to MH i2c: E2 0D 00 DC AB 80 0D 02 02 05 00 AD BC EB F3 6D 00 00 BF [05:06:11]Write i2c OK [05:06:11]MH_I2C_Read... [05:06:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:06:11]Read from MH i2c: E2 [05:06:11]MH_I2C_Read... [05:06:11]Read from MH i2c: E2 03 00 [05:06:11]MH_I2C_Read... [05:06:11]Read from MH i2c: E2 03 00 DC AB 00 90 00 FB [05:06:11]RAPDU: 90 00 [05:06:11]wFMCommunicate OK [05:06:11]wFMCommunicate request_size=4 [05:06:11]MH_SAM_APDU [05:06:11]CAPDU: 80 0D 03 02 [05:06:11]Write to MH i2c: E2 08 00 DD AB 80 0D 03 02 00 00 00 00 03 [05:06:11]Write i2c OK [05:06:11]MH_I2C_Read... [05:06:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:06:11]Read from MH i2c: E2 [05:06:11]MH_I2C_Read... [05:06:11]Read from MH i2c: E2 0B 00 [05:06:11]MH_I2C_Read... [05:06:11]Read from MH i2c: E2 0B 00 DD AB 00 C5 AB B2 68 AA 76 17 0C 90 00 D1 [05:06:11]RAPDU: C5 AB B2 68 AA 76 17 0C 90 00 [05:06:11]wFMCommunicate OK [05:06:11]SAM_PROTO_SignData done [05:06:11]FM_MakeSignedData done [05:06:11]CreateOFDProtocolMessage [05:06:11]wFMCommunicate request_size=4 [05:06:11]MH_SAM_APDU [05:06:11]CAPDU: 80 11 00 00 [05:06:11]Write to MH i2c: E2 08 00 DE AB 80 11 00 00 00 00 00 00 03 [05:06:11]Write i2c OK [05:06:11]MH_I2C_Read... [05:06:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:06:11]Read from MH i2c: E2 [05:06:11]MH_I2C_Read... [05:06:11]Read from MH i2c: E2 17 00 [05:06:11]MH_I2C_Read... [05:06:11]Read from MH i2c: E2 17 00 DE AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 55 [05:06:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [05:06:11]wFMCommunicate OK [05:06:11]CreateOFDProtocolMessage done [05:06:11]OFDSenderStorePacket 69179 [05:06:11]StoreOFDPacket docnum=69179 [05:06:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 AD 3C 07 01 D2 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 CA 8F 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3B 0E 01 00 35 04 06 00 2A AD BC EB F3 6D C5 AB B2 68 AA 76 17 0C [05:06:11]CheckFolder [05:06:11]dirname=/storage/ofd_packets [05:06:11]CheckFolder done [05:06:11]ProducePacketName [05:06:11]name=ofd_packets/00069179 [05:06:11]NVStorageSaveData ofd_packets/00069179 [05:06:11]File name is /storage/ofd_packets/00069179 [05:06:11]Write 301 bytes [05:06:11]NVStorageSaveData done [05:06:11]OFDSenderStorePacket done [05:06:11]KKMCreateOFDPacket done [05:06:11]NVStorageSaveData kkm_last_timestamp [05:06:11]File name is /storage/kkm_last_timestamp [05:06:11]Write 4 bytes [05:06:11]NVStorageSaveData done [05:06:11]ExternCall_PrintAddStr [05:06:11]wPrintStart [05:06:11]Write to MH i2c: 01 00 00 DF AB 8A [05:06:11]Write i2c OK [05:06:11]MH_I2C_Read... [05:06:11]Read from MH i2c: 01 [05:06:11]MH_I2C_Read... [05:06:11]Read from MH i2c: 01 07 00 [05:06:11]MH_I2C_Read... [05:06:11]Read from MH i2c: 01 07 00 DF AB 00 00 00 00 00 FF 0F 9F [05:06:11]RasterBufferAndPrint [05:06:11]line Счет N : (1)2884892 [05:06:11]line ИНН: 02508201610067 [05:06:11]line Контрольно-Кассовый Чек [05:06:11]line ПРОДАЖА [05:06:11]line ТРК (МРК, ГНК) : 23 [05:06:11]line Товар: 2710124500 [05:06:11]line Аи-95-К-5 [05:06:11]line 26.960 * 74.20 [05:06:11]line = 2000.43 [05:06:11]line НДС 12% НСП 1% [05:06:11]line > о реализуемом товаре [05:06:11]line ОКРУГЛЕНИЕ: -0.43 [05:06:11]line ИТОГО: 2000.00 [05:06:11]line Внесено: 2000.00 [05:06:11]line СДАЧА: 0.00 [05:06:11]line НСП 1% : 17.70 [05:06:11]line НДС 12% : 212.43 [05:06:11]line Наличными: 2000.00 [05:06:11]line Безнал.: 0.00 [05:06:11]line Место: АЗС № 85 "Партнер Нефть" [05:06:11]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [05:06:11]line СНО: Общий режим [05:06:11]line Чек 24 20.10.2024 05:06 [05:06:11]line Смена: 193 ФФД: 1.0 [05:06:11]line ЗНМ: 0300000167 [05:06:11]line РНМ: 0000000000156251 [05:06:11]line Версия ККМ: v1.0 [05:06:11]line ФМ: 0000000000963346 [05:06:11]line ФД: 69179 [05:06:11]line ФПД: 46925687288685 [05:06:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T050618&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69179&fm=46925687288685&tin=02508201610067®Number=0000000000156251&sum=200000 [05:06:11]OFD Sender: Processing packet 69179 [packets to send 18, broken 17] [05:06:11]ProducePacketName [05:06:11]name=ofd_packets/00069179 [05:06:11]OFD Sender: To server: pG, [05:06:11]CommunicateWithHost lk.salyk.kg:30040 [05:06:11]ConnectInit lk.salyk.kg [05:06:11]written 0, free lines is 4095 [05:06:11]Connected sock=10 [05:06:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 AD 3C 07 01 D2 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 CA 8F 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3B 0E 01 00 35 04 06 00 2A AD BC EB F3 6D C5 AB B2 68 AA 76 17 0C [05:06:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 4A E1 47 00 25 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 30 39 36 33 33 34 36 10 04 04 00 3B 0E 01 00 F4 03 04 00 72 39 14 67 B6 04 01 00 00 5D 7F 33 38 99 9E 57 F7 [05:06:12]CommunicateWithHost err = 0 [05:06:12]CheckOFDResponse [05:06:12]1017 (14) - 77093643461234 [05:06:12]1041 (16) - 0000000000963346 [05:06:12]1040 (4) - 69179 [05:06:12]1012 (4) - 19.10.2024 22:57 [05:06:12]1206 (1) - 0 [05:06:12]OFD Sender: Remove packet 69179 [05:06:12]ProducePacketName [05:06:12]name=ofd_packets/00069179 [05:06:12]NVStorageDeleteData [05:06:12]Write to MH i2c: 01 00 00 0A AC B6 [05:06:12]Write i2c OK [05:06:12]MH_I2C_Read... [05:06:12]Read from MH i2c: 01 [05:06:12]MH_I2C_Read... [05:06:12]Read from MH i2c: 01 07 00 [05:06:12]MH_I2C_Read... [05:06:12]Read from MH i2c: 01 07 00 0A AC 00 00 00 00 00 E4 0C AD [05:06:12]RasterBufferAndPrint [05:06:12]line [05:06:12]line [05:06:12]line [05:06:12]line [05:06:12]line [05:06:12]written 0, free lines is 3306 [05:06:12]MH_Cut [05:06:12]Write to MH i2c: D1 01 00 11 AC 01 8F [05:06:12]Write i2c OK [05:06:12]MH_I2C_Read... [05:06:12]Read from MH i2c: D1 [05:06:12]MH_I2C_Read... [05:06:12]Read from MH i2c: D1 01 00 [05:06:12]MH_I2C_Read... [05:06:12]Read from MH i2c: D1 01 00 11 AC 00 8E [05:06:12]Write to MH i2c: 01 00 00 12 AC BE [05:06:12]Write i2c OK [05:06:12]MH_I2C_Read... [05:06:12]OFD Sender: No OFD packet to send [05:06:12]*** Cut start [05:06:12]*** Partial cut [05:06:12]*** CUTSNS_PIN = 1 [05:06:12]*** CUTSNS_PIN = 0 [05:06:13]*** Brake cut motor [05:06:13]Read from MH i2c: 01 [05:06:13]MH_I2C_Read... [05:06:13]*** Stop cut motor [05:06:13]*** Cut end [05:06:13]Read from MH i2c: 01 07 00 [05:06:13]MH_I2C_Read... [05:06:13]Read from MH i2c: 01 07 00 12 AC 00 00 00 00 00 FF 0F D3 [05:06:13]process_action close_receipt done [05:06:13]requested_data is exist [05:06:13]produce_requested_data [05:06:13]requested_item fm.sn is exist - process it [05:06:13]wFMCommunicate request_size=4 [05:06:13]MH_SAM_APDU [05:06:13]CAPDU: 80 11 00 00 [05:06:13]Write to MH i2c: E2 08 00 13 AC 80 11 00 00 00 00 00 00 39 [05:06:13]Write i2c OK [05:06:13]MH_I2C_Read... [05:06:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:06:13]Read from MH i2c: E2 [05:06:13]MH_I2C_Read... [05:06:13]Read from MH i2c: E2 17 00 [05:06:13]MH_I2C_Read... [05:06:13]Read from MH i2c: E2 17 00 13 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8B [05:06:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [05:06:13]wFMCommunicate OK [05:06:13]requested_item fd.num is exist - process it [05:06:13]SAM_PROTO_GetFieldsCounters [05:06:13]wFMCommunicate request_size=4 [05:06:13]MH_SAM_APDU [05:06:13]CAPDU: 80 13 00 00 [05:06:13]Write to MH i2c: E2 08 00 14 AC 80 13 00 00 00 00 00 00 3C [05:06:13]Write i2c OK [05:06:13]MH_I2C_Read... [05:06:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:06:13]Read from MH i2c: E2 [05:06:13]MH_I2C_Read... [05:06:13]Read from MH i2c: E2 62 00 [05:06:13]MH_I2C_Read... [05:06:13]Read from MH i2c: E2 62 00 14 AC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3B 0E 01 00 0E 04 04 00 C1 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 AA [05:06:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3B 0E 01 00 0E 04 04 00 C1 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 [05:06:13]wFMCommunicate OK [05:06:13]SAM_PROTO_GetFieldsCounters done [05:06:13]requested_item shift.num is exist - process it [05:06:13]requested_item shift.opened is exist - process it [05:06:13]req_shift_opened [05:06:13]FM_GetShiftState [05:06:13]SAM_PROTO_GetShiftState [05:06:13]wFMCommunicate request_size=4 [05:06:13]MH_SAM_APDU [05:06:13]CAPDU: 80 13 01 00 [05:06:13]Write to MH i2c: E2 08 00 15 AC 80 13 01 00 00 00 00 00 3E [05:06:13]Write i2c OK [05:06:13]MH_I2C_Read... [05:06:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:06:13]Read from MH i2c: E2 [05:06:13]MH_I2C_Read... [05:06:13]Read from MH i2c: E2 0E 00 [05:06:13]MH_I2C_Read... [05:06:13]Read from MH i2c: E2 0E 00 15 AC 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 44 [05:06:13]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [05:06:13]wFMCommunicate OK [05:06:13]SAM_PROTO_GetShiftState done [05:06:13]FM_GetShiftState done [05:06:13]req_shift_opened done [05:06:13]requested_item shift.open_date is exist - process it [05:06:13]req_shift_open_date [05:06:13]req_shift_open_date done [05:06:13]produce_requested_data done [05:06:13]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69179,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [05:06:13]process_action_free close_receipt [05:06:13]json_value_free [05:06:13]json_value_free done [05:06:13]process_json_proto returns [05:06:13]Send response to host [05:06:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69179,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [05:06:13]free response buf [05:06:13]execute_script done [05:06:13]execute_script returns [05:06:13]free content buf [05:06:13]Sock 8.Close socket [05:06:13]Sock 8.Thread stoped [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:02]OFD Sender: No OFD packet to send [05:13:07]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:22]accept exits with 9 [05:16:22]New connection [05:16:22]New thread 3067116900 created [05:16:22]Thread 3067260260 joined [05:16:22]Waiting for new connection... [05:16:22] Sock 9.Parse request [05:16:22]Sock 9.Check first char [05:16:22]Sock 9.First char is OK [05:16:22]request: POST /json_proto HTTP/1.0 [05:16:22]Method: POST [05:16:22]URL: /json_proto [05:16:22]Method is POST - this is cgi request [05:16:22]url: /json_proto [05:16:22]query_string will be loaded in cgi processing [05:16:22]execute_cgi json_proto POST (null) [05:16:22]execute_cgi path=json_proto method=POST [05:16:22]POST find Content-Length [05:16:22]Host: 172.17.50.3:8080 [05:16:22]Content-Length: 683 [05:16:22]Content-Type: application/json [05:16:22] [05:16:22]POST finish read [05:16:22]Found Content-Length = 683 [05:16:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:16:22]execute_script... [05:16: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)2884893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:16:22]POST & json_proto [05:16:22]process_json_proto [05:16:22]json parsed OK: [05:16:22]protocol is kg_v1.0 [05:16:22]action value=close_receipt [05:16:22]process_action close_receipt [05:16:22]cmd_close_receipt [05:16:22]MH_GetDate [05:16:22]Write to MH i2c: F0 00 00 16 AC B1 [05:16:22]Write i2c OK [05:16:22]MH_I2C_Read... [05:16:22]Read from MH i2c: F0 [05:16:22]MH_I2C_Read... [05:16:22]Read from MH i2c: F0 09 00 [05:16:22]MH_I2C_Read... [05:16:22]Read from MH i2c: F0 09 00 16 AC 00 2F 92 14 67 6B 98 1E 66 7D [05:16:22]GetLastDocTimeStamp 1729400778 [05:16:22]current date 1729401391 [05:16:22]FM_GetShiftState [05:16:22]SAM_PROTO_GetShiftState [05:16:22]wFMCommunicate request_size=4 [05:16:22]MH_SAM_APDU [05:16:22]CAPDU: 80 13 01 00 [05:16:22]Write to MH i2c: E2 08 00 17 AC 80 13 01 00 00 00 00 00 40 [05:16:22]Write i2c OK [05:16:22]MH_I2C_Read... [05:16:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:16:22]Read from MH i2c: E2 [05:16:22]MH_I2C_Read... [05:16:22]Read from MH i2c: E2 0E 00 [05:16:22]MH_I2C_Read... [05:16:22]Read from MH i2c: E2 0E 00 17 AC 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 46 [05:16:22]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [05:16:22]wFMCommunicate OK [05:16:22]SAM_PROTO_GetShiftState done [05:16:22]FM_GetShiftState done [05:16:22]opened in 1729383220 [05:16:22]opened+sec_in_day 1729469620 [05:16:22]quantity*price = 200043 [05:16:22]sum+1 = 200044 [05:16:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 25 20.10.2024 05:16 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69180 ФПД: 118729880917028 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T051631&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69180&fm=118729880917028&tin=02508201610067®Number=0000000000156251&sum=200000 [05:16:23]StoreToDocumentArchive [05:16:23]shift 193 fd 69180 [05:16:23]save to /storage/0193/doc_00069180 [05:16:23]save last doc name /storage/0193/doc_00069180 to /storage/kkm_last_doc_name [05:16:23]save OK [05:16:23]Clear old archive folders... [05:16:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:16:23]tlvbuf is 0050C900 [05:16:23]SAM_PROTO_ClearQueue [05:16:23]wFMCommunicate request_size=4 [05:16:23]MH_SAM_APDU [05:16:23]CAPDU: 80 09 00 00 [05:16:23]Write to MH i2c: E2 08 00 24 AC 80 09 00 00 00 00 00 00 42 [05:16:23]Write i2c OK [05:16:23]MH_I2C_Read... [05:16:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:16:23]Read from MH i2c: E2 [05:16:23]MH_I2C_Read... [05:16:23]Read from MH i2c: E2 03 00 [05:16:23]MH_I2C_Read... [05:16:23]Read from MH i2c: E2 03 00 24 AC 00 90 00 44 [05:16:23]RAPDU: 90 00 [05:16:23]wFMCommunicate OK [05:16:23]SAM_PROTO_ClearQueue done [05:16:23]KKMCreateOFDPacket [05:16:23]OFDProtocolAddRootSTLVToBuf [05:16:23]FM_MakeSignedData [05:16:23]FM_MakeSignedData [05:16:23]SAM_PROTO_SignData [05:16:23]wFMCommunicate request_size=4 [05:16:23]MH_SAM_APDU [05:16:23]CAPDU: 80 0D 01 02 [05:16:23]Write to MH i2c: E2 08 00 25 AC 80 0D 01 02 00 00 00 00 4A [05:16:23]Write i2c OK [05:16:23]MH_I2C_Read... [05:16:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:16:23]Read from MH i2c: E2 [05:16:23]MH_I2C_Read... [05:16:23]Read from MH i2c: E2 03 00 [05:16:23]MH_I2C_Read... [05:16:23]Read from MH i2c: E2 03 00 25 AC 00 90 00 45 [05:16:23]RAPDU: 90 00 [05:16:23]wFMCommunicate OK [05:16:23]wFMCommunicate request_size=255 [05:16:23]MH_SAM_APDU [05:16: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 2F 92 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3C 0E 01 00 35 04 06 00 6B [05:16:23]Write to MH i2c: E2 02 01 26 AC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 2F 92 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3C 0E 01 00 35 04 06 00 6B 00 00 47 [05:16:23]Write i2c OK [05:16:23]MH_I2C_Read... [05:16:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:16:24]Read from MH i2c: E2 [05:16:24]MH_I2C_Read... [05:16:24]Read from MH i2c: E2 03 00 [05:16:24]MH_I2C_Read... [05:16:24]Read from MH i2c: E2 03 00 26 AC 00 90 00 46 [05:16:24]RAPDU: 90 00 [05:16:24]wFMCommunicate OK [05:16:24]wFMCommunicate request_size=10 [05:16:24]MH_SAM_APDU [05:16:24]CAPDU: 80 0D 02 02 05 FB F4 60 54 24 [05:16:24]Write to MH i2c: E2 0D 00 27 AC 80 0D 02 02 05 00 FB F4 60 54 24 00 00 1E [05:16:24]Write i2c OK [05:16:24]MH_I2C_Read... [05:16:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:16:24]Read from MH i2c: E2 [05:16:24]MH_I2C_Read... [05:16:24]Read from MH i2c: E2 03 00 [05:16:24]MH_I2C_Read... [05:16:24]Read from MH i2c: E2 03 00 27 AC 00 90 00 47 [05:16:24]RAPDU: 90 00 [05:16:24]wFMCommunicate OK [05:16:24]wFMCommunicate request_size=4 [05:16:24]MH_SAM_APDU [05:16:24]CAPDU: 80 0D 03 02 [05:16:24]Write to MH i2c: E2 08 00 28 AC 80 0D 03 02 00 00 00 00 4F [05:16:24]Write i2c OK [05:16:24]MH_I2C_Read... [05:16:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:16:24]Read from MH i2c: E2 [05:16:24]MH_I2C_Read... [05:16:24]Read from MH i2c: E2 0B 00 [05:16:24]MH_I2C_Read... [05:16:24]Read from MH i2c: E2 0B 00 28 AC 00 41 AA 8C 3B A1 F3 00 50 90 00 E6 [05:16:24]RAPDU: 41 AA 8C 3B A1 F3 00 50 90 00 [05:16:24]wFMCommunicate OK [05:16:24]SAM_PROTO_SignData done [05:16:24]FM_MakeSignedData done [05:16:24]CreateOFDProtocolMessage [05:16:24]wFMCommunicate request_size=4 [05:16:24]MH_SAM_APDU [05:16:24]CAPDU: 80 11 00 00 [05:16:24]Write to MH i2c: E2 08 00 29 AC 80 11 00 00 00 00 00 00 4F [05:16:24]Write i2c OK [05:16:24]MH_I2C_Read... [05:16:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:16:24]Read from MH i2c: E2 [05:16:24]MH_I2C_Read... [05:16:24]Read from MH i2c: E2 17 00 [05:16:24]MH_I2C_Read... [05:16:24]Read from MH i2c: E2 17 00 29 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A1 [05:16:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [05:16:24]wFMCommunicate OK [05:16:24]CreateOFDProtocolMessage done [05:16:24]OFDSenderStorePacket 69180 [05:16:24]StoreOFDPacket docnum=69180 [05:16:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 39 15 07 01 0B A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 2F 92 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3C 0E 01 00 35 04 06 00 6B FB F4 60 54 24 41 AA 8C 3B A1 F3 00 50 [05:16:24]CheckFolder [05:16:24]dirname=/storage/ofd_packets [05:16:24]CheckFolder done [05:16:24]ProducePacketName [05:16:24]name=ofd_packets/00069180 [05:16:24]NVStorageSaveData ofd_packets/00069180 [05:16:24]File name is /storage/ofd_packets/00069180 [05:16:24]Write 301 bytes [05:16:24]NVStorageSaveData done [05:16:24]OFDSenderStorePacket done [05:16:24]KKMCreateOFDPacket done [05:16:24]NVStorageSaveData kkm_last_timestamp [05:16:24]File name is /storage/kkm_last_timestamp [05:16:24]Write 4 bytes [05:16:24]NVStorageSaveData done [05:16:24]ExternCall_PrintAddStr [05:16:24]wPrintStart [05:16:24]Write to MH i2c: 01 00 00 2A AC D6 [05:16:24]Write i2c OK [05:16:24]MH_I2C_Read... [05:16:24]Read from MH i2c: 01 [05:16:24]MH_I2C_Read... [05:16:24]Read from MH i2c: 01 07 00 [05:16:24]MH_I2C_Read... [05:16:24]Read from MH i2c: 01 07 00 2A AC 00 00 00 00 00 FF 0F EB [05:16:24]RasterBufferAndPrint [05:16:24]line Счет N : (1)2884893 [05:16:24]line ИНН: 02508201610067 [05:16:24]line Контрольно-Кассовый Чек [05:16:24]line ПРОДАЖА [05:16:24]line ТРК (МРК, ГНК) : 43 [05:16:24]line Товар: 2710124500 [05:16:24]line Аи-95-К-5 [05:16:24]line 26.960 * 74.20 [05:16:24]line = 2000.43 [05:16:24]line НДС 12% НСП 1% [05:16:24]line > о реализуемом товаре [05:16:24]line ОКРУГЛЕНИЕ: -0.43 [05:16:24]line ИТОГО: 2000.00 [05:16:24]line Внесено: 2000.00 [05:16:24]line СДАЧА: 0.00 [05:16:24]line НСП 1% : 17.70 [05:16:24]line НДС 12% : 212.43 [05:16:24]line Наличными: 2000.00 [05:16:24]line Безнал.: 0.00 [05:16:24]line Место: АЗС № 85 "Партнер Нефть" [05:16:24]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [05:16:24]line СНО: Общий режим [05:16:24]line Чек 25 20.10.2024 05:16 [05:16:24]line Смена: 193 ФФД: 1.0 [05:16:24]line ЗНМ: 0300000167 [05:16:24]line РНМ: 0000000000156251 [05:16:24]line Версия ККМ: v1.0 [05:16:24]line ФМ: 0000000000963346 [05:16:24]line ФД: 69180 [05:16:24]line ФПД: 118729880917028 [05:16:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T051631&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69180&fm=118729880917028&tin=02508201610067®Number=0000000000156251&sum=200000 [05:16:24]OFD Sender: Processing packet 69180 [packets to send 18, broken 17] [05:16:24]ProducePacketName [05:16:24]name=ofd_packets/00069180 [05:16:24]OFD Sender: To server: pG, [05:16:24]CommunicateWithHost lk.salyk.kg:30040 [05:16:24]ConnectInit lk.salyk.kg [05:16:24]written 0, free lines is 4095 [05:16:24]Connected sock=10 [05:16:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 39 15 07 01 0B A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 2F 92 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3C 0E 01 00 35 04 06 00 6B FB F4 60 54 24 41 AA 8C 3B A1 F3 00 50 [05:16:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 8C FF 47 00 AD 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3C 0E 01 00 F4 03 04 00 D7 3B 14 67 B6 04 01 00 00 AF 4F FF 2C 40 8F 35 57 [05:16:25]CommunicateWithHost err = 0 [05:16:25]CheckOFDResponse [05:16:25]1017 (14) - 77093643461234 [05:16:25]1041 (16) - 0000000000963346 [05:16:25]1040 (4) - 69180 [05:16:25]1012 (4) - 19.10.2024 23:08 [05:16:25]1206 (1) - 0 [05:16:25]OFD Sender: Remove packet 69180 [05:16:25]ProducePacketName [05:16:25]name=ofd_packets/00069180 [05:16:25]NVStorageDeleteData [05:16:25]Write to MH i2c: 01 00 00 55 AC 01 [05:16:25]Write i2c OK [05:16:25]MH_I2C_Read... [05:16:25]Read from MH i2c: 01 [05:16:25]MH_I2C_Read... [05:16:25]Read from MH i2c: 01 07 00 [05:16:25]MH_I2C_Read... [05:16:25]Read from MH i2c: 01 07 00 55 AC 00 00 00 00 00 F3 0C 07 [05:16:25]RasterBufferAndPrint [05:16:25]line [05:16:25]line [05:16:25]line [05:16:25]line [05:16:25]line [05:16:25]written 0, free lines is 3321 [05:16:25]MH_Cut [05:16:25]Write to MH i2c: D1 01 00 5C AC 01 DA [05:16:25]Write i2c OK [05:16:25]MH_I2C_Read... [05:16:25]Read from MH i2c: D1 [05:16:25]MH_I2C_Read... [05:16:25]Read from MH i2c: D1 01 00 [05:16:25]MH_I2C_Read... [05:16:25]Read from MH i2c: D1 01 00 5C AC 00 D9 [05:16:25]Write to MH i2c: 01 00 00 5D AC 09 [05:16:25]Write i2c OK [05:16:25]MH_I2C_Read... [05:16:25]OFD Sender: No OFD packet to send [05:16:25]*** Cut start [05:16:25]*** Partial cut [05:16:25]*** CUTSNS_PIN = 1 [05:16:25]*** CUTSNS_PIN = 0 [05:16:26]*** Brake cut motor [05:16:26]Read from MH i2c: 01 [05:16:26]MH_I2C_Read... [05:16:26]*** Stop cut motor [05:16:26]*** Cut end [05:16:26]Read from MH i2c: 01 07 00 [05:16:26]MH_I2C_Read... [05:16:26]Read from MH i2c: 01 07 00 5D AC 00 00 00 00 00 FF 0F 1E [05:16:26]process_action close_receipt done [05:16:26]requested_data is exist [05:16:26]produce_requested_data [05:16:26]requested_item fm.sn is exist - process it [05:16:26]wFMCommunicate request_size=4 [05:16:26]MH_SAM_APDU [05:16:26]CAPDU: 80 11 00 00 [05:16:26]Write to MH i2c: E2 08 00 5E AC 80 11 00 00 00 00 00 00 84 [05:16:26]Write i2c OK [05:16:26]MH_I2C_Read... [05:16:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:16:26]Read from MH i2c: E2 [05:16:26]MH_I2C_Read... [05:16:26]Read from MH i2c: E2 17 00 [05:16:26]MH_I2C_Read... [05:16:26]Read from MH i2c: E2 17 00 5E AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D6 [05:16:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [05:16:26]wFMCommunicate OK [05:16:26]requested_item fd.num is exist - process it [05:16:26]SAM_PROTO_GetFieldsCounters [05:16:26]wFMCommunicate request_size=4 [05:16:26]MH_SAM_APDU [05:16:26]CAPDU: 80 13 00 00 [05:16:26]Write to MH i2c: E2 08 00 5F AC 80 13 00 00 00 00 00 00 87 [05:16:26]Write i2c OK [05:16:26]MH_I2C_Read... [05:16:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:16:26]Read from MH i2c: E2 [05:16:26]MH_I2C_Read... [05:16:26]Read from MH i2c: E2 62 00 [05:16:26]MH_I2C_Read... [05:16:26]Read from MH i2c: E2 62 00 5F AC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3C 0E 01 00 0E 04 04 00 C1 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 F9 [05:16:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3C 0E 01 00 0E 04 04 00 C1 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 [05:16:26]wFMCommunicate OK [05:16:26]SAM_PROTO_GetFieldsCounters done [05:16:26]requested_item shift.num is exist - process it [05:16:26]requested_item shift.opened is exist - process it [05:16:26]req_shift_opened [05:16:26]FM_GetShiftState [05:16:26]SAM_PROTO_GetShiftState [05:16:26]wFMCommunicate request_size=4 [05:16:26]MH_SAM_APDU [05:16:26]CAPDU: 80 13 01 00 [05:16:26]Write to MH i2c: E2 08 00 60 AC 80 13 01 00 00 00 00 00 89 [05:16:26]Write i2c OK [05:16:26]MH_I2C_Read... [05:16:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:16:26]Read from MH i2c: E2 [05:16:26]MH_I2C_Read... [05:16:26]Read from MH i2c: E2 0E 00 [05:16:26]MH_I2C_Read... [05:16:26]Read from MH i2c: E2 0E 00 60 AC 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 8F [05:16:26]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [05:16:26]wFMCommunicate OK [05:16:26]SAM_PROTO_GetShiftState done [05:16:26]FM_GetShiftState done [05:16:26]req_shift_opened done [05:16:26]requested_item shift.open_date is exist - process it [05:16:26]req_shift_open_date [05:16:26]req_shift_open_date done [05:16:26]produce_requested_data done [05:16:26]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69180,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [05:16:26]process_action_free close_receipt [05:16:26]json_value_free [05:16:26]json_value_free done [05:16:26]process_json_proto returns [05:16:26]Send response to host [05:16:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69180,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [05:16:26]free response buf [05:16:26]execute_script done [05:16:26]execute_script returns [05:16:26]free content buf [05:16:26]Sock 9.Close socket [05:16:26]Sock 9.Thread stoped [05:16:30]OFD Sender: No OFD packet to send [05:16:35]OFD Sender: No OFD packet to send [05:16:40]OFD Sender: No OFD packet to send [05:16:45]OFD Sender: No OFD packet to send [05:16:50]OFD Sender: No OFD packet to send [05:16:55]OFD Sender: No OFD packet to send [05:17:00]OFD Sender: No OFD packet to send [05:17:05]OFD Sender: No OFD packet to send [05:17:10]OFD Sender: No OFD packet to send [05:17:15]OFD Sender: No OFD packet to send [05:17:20]OFD Sender: No OFD packet to send [05:17:25]OFD Sender: No OFD packet to send [05:17:30]OFD Sender: No OFD packet to send [05:17:35]OFD Sender: No OFD packet to send [05:17:40]OFD Sender: No OFD packet to send [05:17:45]OFD Sender: No OFD packet to send [05:17:50]OFD Sender: No OFD packet to send [05:17:55]OFD Sender: No OFD packet to send [05:18:00]OFD Sender: No OFD packet to send [05:18:05]OFD Sender: No OFD packet to send [05:18:10]OFD Sender: No OFD packet to send [05:18:15]OFD Sender: No OFD packet to send [05:18:20]OFD Sender: No OFD packet to send [05:18:25]OFD Sender: No OFD packet to send [05:18:30]OFD Sender: No OFD packet to send [05:18:35]OFD Sender: No OFD packet to send [05:18:40]OFD Sender: No OFD packet to send [05:18:45]OFD Sender: No OFD packet to send [05:18:50]OFD Sender: No OFD packet to send [05:18:55]OFD Sender: No OFD packet to send [05:19:00]OFD Sender: No OFD packet to send [05:19:05]OFD Sender: No OFD packet to send [05:19:10]OFD Sender: No OFD packet to send [05:19:15]OFD Sender: No OFD packet to send [05:19:20]OFD Sender: No OFD packet to send [05:19:25]OFD Sender: No OFD packet to send [05:19:30]OFD Sender: No OFD packet to send [05:19:35]OFD Sender: No OFD packet to send [05:19:40]OFD Sender: No OFD packet to send [05:19:45]OFD Sender: No OFD packet to send [05:19:50]OFD Sender: No OFD packet to send [05:19:55]OFD Sender: No OFD packet to send [05:20:00]OFD Sender: No OFD packet to send [05:20:05]OFD Sender: No OFD packet to send [05:20:10]OFD Sender: No OFD packet to send [05:20:15]OFD Sender: No OFD packet to send [05:20:20]OFD Sender: No OFD packet to send [05:20:25]OFD Sender: No OFD packet to send [05:20:30]OFD Sender: No OFD packet to send [05:20:35]OFD Sender: No OFD packet to send [05:20:40]OFD Sender: No OFD packet to send [05:20:45]OFD Sender: No OFD packet to send [05:20:50]OFD Sender: No OFD packet to send [05:20:55]OFD Sender: No OFD packet to send [05:21:00]OFD Sender: No OFD packet to send [05:21:05]OFD Sender: No OFD packet to send [05:21:10]OFD Sender: No OFD packet to send [05:21:15]OFD Sender: No OFD packet to send [05:21:20]OFD Sender: No OFD packet to send [05:21:25]OFD Sender: No OFD packet to send [05:21:30]OFD Sender: No OFD packet to send [05:21:35]OFD Sender: No OFD packet to send [05:21:40]OFD Sender: No OFD packet to send [05:21:45]OFD Sender: No OFD packet to send [05:21:50]OFD Sender: No OFD packet to send [05:21:55]OFD Sender: No OFD packet to send [05:22:00]OFD Sender: No OFD packet to send [05:22:05]OFD Sender: No OFD packet to send [05:22:10]OFD Sender: No OFD packet to send [05:22:15]OFD Sender: No OFD packet to send [05:22:20]OFD Sender: No OFD packet to send [05:22:25]OFD Sender: No OFD packet to send [05:22:30]OFD Sender: No OFD packet to send [05:22:35]OFD Sender: No OFD packet to send [05:22:40]OFD Sender: No OFD packet to send [05:22:45]OFD Sender: No OFD packet to send [05:22:50]OFD Sender: No OFD packet to send [05:22:55]OFD Sender: No OFD packet to send [05:23:00]OFD Sender: No OFD packet to send [05:23:05]OFD Sender: No OFD packet to send [05:23:10]OFD Sender: No OFD packet to send [05:23:15]OFD Sender: No OFD packet to send [05:23:20]OFD Sender: No OFD packet to send [05:23:25]OFD Sender: No OFD packet to send [05:23:30]OFD Sender: No OFD packet to send [05:23:35]OFD Sender: No OFD packet to send [05:23:40]OFD Sender: No OFD packet to send [05:23:45]OFD Sender: No OFD packet to send [05:23:50]OFD Sender: No OFD packet to send [05:23:55]OFD Sender: No OFD packet to send [05:24:00]OFD Sender: No OFD packet to send [05:24:05]OFD Sender: No OFD packet to send [05:24:10]OFD Sender: No OFD packet to send [05:24:15]OFD Sender: No OFD packet to send [05:24:20]OFD Sender: No OFD packet to send [05:24:25]OFD Sender: No OFD packet to send [05:24:30]OFD Sender: No OFD packet to send [05:24:35]OFD Sender: No OFD packet to send [05:24:40]OFD Sender: No OFD packet to send [05:24:45]OFD Sender: No OFD packet to send [05:24:50]OFD Sender: No OFD packet to send [05:24:55]OFD Sender: No OFD packet to send [05:25:00]OFD Sender: No OFD packet to send [05:25:05]OFD Sender: No OFD packet to send [05:25:10]OFD Sender: No OFD packet to send [05:25:15]OFD Sender: No OFD packet to send [05:25:20]OFD Sender: No OFD packet to send [05:25:25]OFD Sender: No OFD packet to send [05:25:30]OFD Sender: No OFD packet to send [05:25:35]OFD Sender: No OFD packet to send [05:25:40]OFD Sender: No OFD packet to send [05:25:45]OFD Sender: No OFD packet to send [05:25:50]OFD Sender: No OFD packet to send [05:25:55]OFD Sender: No OFD packet to send [05:26:00]OFD Sender: No OFD packet to send [05:26:05]OFD Sender: No OFD packet to send [05:26:10]OFD Sender: No OFD packet to send [05:26:15]OFD Sender: No OFD packet to send [05:26:20]OFD Sender: No OFD packet to send [05:26:25]OFD Sender: No OFD packet to send [05:26:31]OFD Sender: No OFD packet to send [05:26:36]OFD Sender: No OFD packet to send [05:26:41]OFD Sender: No OFD packet to send [05:26:46]OFD Sender: No OFD packet to send [05:26:51]OFD Sender: No OFD packet to send [05:26:56]OFD Sender: No OFD packet to send [05:27:01]OFD Sender: No OFD packet to send [05:27:06]OFD Sender: No OFD packet to send [05:27:11]OFD Sender: No OFD packet to send [05:27:16]OFD Sender: No OFD packet to send [05:27:21]OFD Sender: No OFD packet to send [05:27:26]OFD Sender: No OFD packet to send [05:27:31]OFD Sender: No OFD packet to send [05:27:36]OFD Sender: No OFD packet to send [05:27:41]OFD Sender: No OFD packet to send [05:27:46]OFD Sender: No OFD packet to send [05:27:51]OFD Sender: No OFD packet to send [05:27:56]OFD Sender: No OFD packet to send [05:28:01]OFD Sender: No OFD packet to send [05:28:06]OFD Sender: No OFD packet to send [05:28:11]OFD Sender: No OFD packet to send [05:28:16]OFD Sender: No OFD packet to send [05:28:21]OFD Sender: No OFD packet to send [05:28:26]OFD Sender: No OFD packet to send [05:28:31]OFD Sender: No OFD packet to send [05:28:36]OFD Sender: No OFD packet to send [05:28:41]OFD Sender: No OFD packet to send [05:28:46]OFD Sender: No OFD packet to send [05:28:51]OFD Sender: No OFD packet to send [05:28:56]OFD Sender: No OFD packet to send [05:29:01]OFD Sender: No OFD packet to send [05:29:06]OFD Sender: No OFD packet to send [05:29:11]OFD Sender: No OFD packet to send [05:29:16]OFD Sender: No OFD packet to send [05:29:21]OFD Sender: No OFD packet to send [05:29:26]OFD Sender: No OFD packet to send [05:29:31]OFD Sender: No OFD packet to send [05:29:36]OFD Sender: No OFD packet to send [05:29:41]OFD Sender: No OFD packet to send [05:29:46]OFD Sender: No OFD packet to send [05:29:51]OFD Sender: No OFD packet to send [05:29:56]OFD Sender: No OFD packet to send [05:30:01]OFD Sender: No OFD packet to send [05:30:06]OFD Sender: No OFD packet to send [05:30:11]OFD Sender: No OFD packet to send [05:30:16]OFD Sender: No OFD packet to send [05:30:21]OFD Sender: No OFD packet to send [05:30:26]OFD Sender: No OFD packet to send [05:30:31]OFD Sender: No OFD packet to send [05:30:36]OFD Sender: No OFD packet to send [05:30:41]OFD Sender: No OFD packet to send [05:30:46]OFD Sender: No OFD packet to send [05:30:51]OFD Sender: No OFD packet to send [05:30:56]OFD Sender: No OFD packet to send [05:31:01]OFD Sender: No OFD packet to send [05:31:06]OFD Sender: No OFD packet to send [05:31:11]OFD Sender: No OFD packet to send [05:31:16]OFD Sender: No OFD packet to send [05:31:21]OFD Sender: No OFD packet to send [05:31:26]OFD Sender: No OFD packet to send [05:31:31]OFD Sender: No OFD packet to send [05:31:36]OFD Sender: No OFD packet to send [05:31:41]OFD Sender: No OFD packet to send [05:31:46]OFD Sender: No OFD packet to send [05:31:51]OFD Sender: No OFD packet to send [05:31:56]OFD Sender: No OFD packet to send [05:32:01]OFD Sender: No OFD packet to send [05:32:06]OFD Sender: No OFD packet to send [05:32:11]OFD Sender: No OFD packet to send [05:32:16]OFD Sender: No OFD packet to send [05:32:21]OFD Sender: No OFD packet to send [05:32:26]OFD Sender: No OFD packet to send [05:32:31]OFD Sender: No OFD packet to send [05:32:36]OFD Sender: No OFD packet to send [05:32:41]OFD Sender: No OFD packet to send [05:32:46]OFD Sender: No OFD packet to send [05:32:51]OFD Sender: No OFD packet to send [05:32:56]OFD Sender: No OFD packet to send [05:33:01]OFD Sender: No OFD packet to send [05:33:06]OFD Sender: No OFD packet to send [05:33:11]OFD Sender: No OFD packet to send [05:33:16]OFD Sender: No OFD packet to send [05:33:21]OFD Sender: No OFD packet to send [05:33:26]OFD Sender: No OFD packet to send [05:33:31]OFD Sender: No OFD packet to send [05:33:36]OFD Sender: No OFD packet to send [05:33:41]OFD Sender: No OFD packet to send [05:33:46]OFD Sender: No OFD packet to send [05:33:51]OFD Sender: No OFD packet to send [05:33:56]OFD Sender: No OFD packet to send [05:34:01]OFD Sender: No OFD packet to send [05:34:06]OFD Sender: No OFD packet to send [05:34:11]OFD Sender: No OFD packet to send [05:34:16]OFD Sender: No OFD packet to send [05:34:21]OFD Sender: No OFD packet to send [05:34:26]OFD Sender: No OFD packet to send [05:34:31]OFD Sender: No OFD packet to send [05:34:36]OFD Sender: No OFD packet to send [05:34:41]OFD Sender: No OFD packet to send [05:34:46]OFD Sender: No OFD packet to send [05:34:51]OFD Sender: No OFD packet to send [05:34:56]OFD Sender: No OFD packet to send [05:35:01]OFD Sender: No OFD packet to send [05:35:06]OFD Sender: No OFD packet to send [05:35:11]OFD Sender: No OFD packet to send [05:35:16]OFD Sender: No OFD packet to send [05:35:21]OFD Sender: No OFD packet to send [05:35:26]OFD Sender: No OFD packet to send [05:35:31]OFD Sender: No OFD packet to send [05:35:36]OFD Sender: No OFD packet to send [05:35:41]OFD Sender: No OFD packet to send [05:35:46]OFD Sender: No OFD packet to send [05:35:51]OFD Sender: No OFD packet to send [05:35:56]OFD Sender: No OFD packet to send [05:36:01]OFD Sender: No OFD packet to send [05:36:06]OFD Sender: No OFD packet to send [05:36:11]OFD Sender: No OFD packet to send [05:36:16]OFD Sender: No OFD packet to send [05:36:21]OFD Sender: No OFD packet to send [05:36:26]OFD Sender: No OFD packet to send [05:36:31]OFD Sender: No OFD packet to send [05:36:36]OFD Sender: No OFD packet to send [05:36:41]OFD Sender: No OFD packet to send [05:36:46]OFD Sender: No OFD packet to send [05:36:51]OFD Sender: No OFD packet to send [05:36:56]OFD Sender: No OFD packet to send [05:37:01]OFD Sender: No OFD packet to send [05:37:06]OFD Sender: No OFD packet to send [05:37:11]OFD Sender: No OFD packet to send [05:37:16]OFD Sender: No OFD packet to send [05:37:21]OFD Sender: No OFD packet to send [05:37:26]OFD Sender: No OFD packet to send [05:37:31]OFD Sender: No OFD packet to send [05:37:36]OFD Sender: No OFD packet to send [05:37:41]OFD Sender: No OFD packet to send [05:37:46]OFD Sender: No OFD packet to send [05:37:51]OFD Sender: No OFD packet to send [05:37:56]OFD Sender: No OFD packet to send [05:38:01]OFD Sender: No OFD packet to send [05:38:06]OFD Sender: No OFD packet to send [05:38:11]OFD Sender: No OFD packet to send [05:38:16]OFD Sender: No OFD packet to send [05:38:21]OFD Sender: No OFD packet to send [05:38:26]OFD Sender: No OFD packet to send [05:38:31]OFD Sender: No OFD packet to send [05:38:36]OFD Sender: No OFD packet to send [05:38:41]OFD Sender: No OFD packet to send [05:38:46]OFD Sender: No OFD packet to send [05:38:51]OFD Sender: No OFD packet to send [05:38:56]OFD Sender: No OFD packet to send [05:39:01]OFD Sender: No OFD packet to send [05:39:06]OFD Sender: No OFD packet to send [05:39:11]OFD Sender: No OFD packet to send [05:39:16]OFD Sender: No OFD packet to send [05:39:21]OFD Sender: No OFD packet to send [05:39:26]OFD Sender: No OFD packet to send [05:39:31]OFD Sender: No OFD packet to send [05:39:36]OFD Sender: No OFD packet to send [05:39:41]OFD Sender: No OFD packet to send [05:39:46]OFD Sender: No OFD packet to send [05:39:51]OFD Sender: No OFD packet to send [05:39:56]OFD Sender: No OFD packet to send [05:40:01]OFD Sender: No OFD packet to send [05:40:06]OFD Sender: No OFD packet to send [05:40:11]OFD Sender: No OFD packet to send [05:40:16]OFD Sender: No OFD packet to send [05:40:21]OFD Sender: No OFD packet to send [05:40:26]OFD Sender: No OFD packet to send [05:40:31]OFD Sender: No OFD packet to send [05:40:36]OFD Sender: No OFD packet to send [05:40:41]OFD Sender: No OFD packet to send [05:40:46]OFD Sender: No OFD packet to send [05:40:51]OFD Sender: No OFD packet to send [05:40:56]OFD Sender: No OFD packet to send [05:41:01]OFD Sender: No OFD packet to send [05:41:06]OFD Sender: No OFD packet to send [05:41:11]OFD Sender: No OFD packet to send [05:41:16]OFD Sender: No OFD packet to send [05:41:21]OFD Sender: No OFD packet to send [05:41:26]OFD Sender: No OFD packet to send [05:41:31]OFD Sender: No OFD packet to send [05:41:36]OFD Sender: No OFD packet to send [05:41:41]OFD Sender: No OFD packet to send [05:41:46]OFD Sender: No OFD packet to send [05:41:51]OFD Sender: No OFD packet to send [05:41:56]OFD Sender: No OFD packet to send [05:42:01]OFD Sender: No OFD packet to send [05:42:06]OFD Sender: No OFD packet to send [05:42:11]OFD Sender: No OFD packet to send [05:42:16]OFD Sender: No OFD packet to send [05:42:21]OFD Sender: No OFD packet to send [05:42:26]OFD Sender: No OFD packet to send [05:42:31]OFD Sender: No OFD packet to send [05:42:36]OFD Sender: No OFD packet to send [05:42:41]OFD Sender: No OFD packet to send [05:42:46]OFD Sender: No OFD packet to send [05:42:51]OFD Sender: No OFD packet to send [05:42:56]OFD Sender: No OFD packet to send [05:43:01]OFD Sender: No OFD packet to send [05:43:06]OFD Sender: No OFD packet to send [05:43:11]OFD Sender: No OFD packet to send [05:43:16]OFD Sender: No OFD packet to send [05:43:21]OFD Sender: No OFD packet to send [05:43:26]OFD Sender: No OFD packet to send [05:43:31]OFD Sender: No OFD packet to send [05:43:36]OFD Sender: No OFD packet to send [05:43:41]OFD Sender: No OFD packet to send [05:43:46]OFD Sender: No OFD packet to send [05:43:51]OFD Sender: No OFD packet to send [05:43:56]OFD Sender: No OFD packet to send [05:44:01]OFD Sender: No OFD packet to send [05:44:06]OFD Sender: No OFD packet to send [05:44:11]OFD Sender: No OFD packet to send [05:44:16]OFD Sender: No OFD packet to send [05:44:21]OFD Sender: No OFD packet to send [05:44:26]OFD Sender: No OFD packet to send [05:44:31]OFD Sender: No OFD packet to send [05:44:36]OFD Sender: No OFD packet to send [05:44:41]OFD Sender: No OFD packet to send [05:44:46]OFD Sender: No OFD packet to send [05:44:51]OFD Sender: No OFD packet to send [05:44:56]OFD Sender: No OFD packet to send [05:45:01]OFD Sender: No OFD packet to send [05:45:06]OFD Sender: No OFD packet to send [05:45:11]OFD Sender: No OFD packet to send [05:45:16]OFD Sender: No OFD packet to send [05:45:21]OFD Sender: No OFD packet to send [05:45:26]OFD Sender: No OFD packet to send [05:45:31]OFD Sender: No OFD packet to send [05:45:36]OFD Sender: No OFD packet to send [05:45:41]OFD Sender: No OFD packet to send [05:45:46]OFD Sender: No OFD packet to send [05:45:51]OFD Sender: No OFD packet to send [05:45:56]OFD Sender: No OFD packet to send [05:46:01]OFD Sender: No OFD packet to send [05:46:06]OFD Sender: No OFD packet to send [05:46:11]OFD Sender: No OFD packet to send [05:46:16]OFD Sender: No OFD packet to send [05:46:21]OFD Sender: No OFD packet to send [05:46:26]OFD Sender: No OFD packet to send [05:46:31]OFD Sender: No OFD packet to send [05:46:36]OFD Sender: No OFD packet to send [05:46:41]OFD Sender: No OFD packet to send [05:46:46]OFD Sender: No OFD packet to send [05:46:51]OFD Sender: No OFD packet to send [05:46:56]OFD Sender: No OFD packet to send [05:47:02]OFD Sender: No OFD packet to send [05:47:07]OFD Sender: No OFD packet to send [05:47:12]OFD Sender: No OFD packet to send [05:47:17]OFD Sender: No OFD packet to send [05:47:22]OFD Sender: No OFD packet to send [05:47:27]OFD Sender: No OFD packet to send [05:47:32]OFD Sender: No OFD packet to send [05:47:37]OFD Sender: No OFD packet to send [05:47:42]OFD Sender: No OFD packet to send [05:47:47]OFD Sender: No OFD packet to send [05:47:52]OFD Sender: No OFD packet to send [05:47:57]OFD Sender: No OFD packet to send [05:48:02]OFD Sender: No OFD packet to send [05:48:07]OFD Sender: No OFD packet to send [05:48:12]OFD Sender: No OFD packet to send [05:48:17]OFD Sender: No OFD packet to send [05:48:22]OFD Sender: No OFD packet to send [05:48:27]OFD Sender: No OFD packet to send [05:48:32]OFD Sender: No OFD packet to send [05:48:37]OFD Sender: No OFD packet to send [05:48:42]OFD Sender: No OFD packet to send [05:48:47]OFD Sender: No OFD packet to send [05:48:52]OFD Sender: No OFD packet to send [05:48:57]OFD Sender: No OFD packet to send [05:49:02]OFD Sender: No OFD packet to send [05:49:07]OFD Sender: No OFD packet to send [05:49:12]OFD Sender: No OFD packet to send [05:49:17]OFD Sender: No OFD packet to send [05:49:22]OFD Sender: No OFD packet to send [05:49:27]OFD Sender: No OFD packet to send [05:49:32]OFD Sender: No OFD packet to send [05:49:37]OFD Sender: No OFD packet to send [05:49:42]OFD Sender: No OFD packet to send [05:49:47]OFD Sender: No OFD packet to send [05:49:52]OFD Sender: No OFD packet to send [05:49:57]OFD Sender: No OFD packet to send [05:50:02]OFD Sender: No OFD packet to send [05:50:07]OFD Sender: No OFD packet to send [05:50:12]OFD Sender: No OFD packet to send [05:50:17]OFD Sender: No OFD packet to send [05:50:22]OFD Sender: No OFD packet to send [05:50:27]OFD Sender: No OFD packet to send [05:50:32]OFD Sender: No OFD packet to send [05:50:37]OFD Sender: No OFD packet to send [05:50:42]OFD Sender: No OFD packet to send [05:50:47]OFD Sender: No OFD packet to send [05:50:52]OFD Sender: No OFD packet to send [05:50:57]OFD Sender: No OFD packet to send [05:51:02]OFD Sender: No OFD packet to send [05:51:07]OFD Sender: No OFD packet to send [05:51:12]OFD Sender: No OFD packet to send [05:51:17]OFD Sender: No OFD packet to send [05:51:22]OFD Sender: No OFD packet to send [05:51:27]OFD Sender: No OFD packet to send [05:51:32]OFD Sender: No OFD packet to send [05:51:37]OFD Sender: No OFD packet to send [05:51:42]OFD Sender: No OFD packet to send [05:51:47]OFD Sender: No OFD packet to send [05:51:52]OFD Sender: No OFD packet to send [05:51:57]OFD Sender: No OFD packet to send [05:52:02]OFD Sender: No OFD packet to send [05:52:07]OFD Sender: No OFD packet to send [05:52:12]OFD Sender: No OFD packet to send [05:52:17]OFD Sender: No OFD packet to send [05:52:22]OFD Sender: No OFD packet to send [05:52:27]OFD Sender: No OFD packet to send [05:52:32]OFD Sender: No OFD packet to send [05:52:37]OFD Sender: No OFD packet to send [05:52:42]OFD Sender: No OFD packet to send [05:52:47]OFD Sender: No OFD packet to send [05:52:52]OFD Sender: No OFD packet to send [05:52:57]OFD Sender: No OFD packet to send [05:53:02]OFD Sender: No OFD packet to send [05:53:07]OFD Sender: No OFD packet to send [05:53:12]OFD Sender: No OFD packet to send [05:53:17]OFD Sender: No OFD packet to send [05:53:22]OFD Sender: No OFD packet to send [05:53:27]OFD Sender: No OFD packet to send [05:53:32]OFD Sender: No OFD packet to send [05:53:37]OFD Sender: No OFD packet to send [05:53:42]OFD Sender: No OFD packet to send [05:53:47]OFD Sender: No OFD packet to send [05:53:52]OFD Sender: No OFD packet to send [05:53:57]OFD Sender: No OFD packet to send [05:54:02]OFD Sender: No OFD packet to send [05:54:07]OFD Sender: No OFD packet to send [05:54:12]OFD Sender: No OFD packet to send [05:54:17]OFD Sender: No OFD packet to send [05:54:22]OFD Sender: No OFD packet to send [05:54:27]OFD Sender: No OFD packet to send [05:54:32]OFD Sender: No OFD packet to send [05:54:37]OFD Sender: No OFD packet to send [05:54:42]OFD Sender: No OFD packet to send [05:54:47]OFD Sender: No OFD packet to send [05:54:52]OFD Sender: No OFD packet to send [05:54:57]OFD Sender: No OFD packet to send [05:55:02]OFD Sender: No OFD packet to send [05:55:07]OFD Sender: No OFD packet to send [05:55:12]OFD Sender: No OFD packet to send [05:55:17]OFD Sender: No OFD packet to send [05:55:22]OFD Sender: No OFD packet to send [05:55:27]OFD Sender: No OFD packet to send [05:55:32]OFD Sender: No OFD packet to send [05:55:37]OFD Sender: No OFD packet to send [05:55:42]OFD Sender: No OFD packet to send [05:55:47]OFD Sender: No OFD packet to send [05:55:52]OFD Sender: No OFD packet to send [05:55:57]OFD Sender: No OFD packet to send [05:56:02]OFD Sender: No OFD packet to send [05:56:07]OFD Sender: No OFD packet to send [05:56:12]OFD Sender: No OFD packet to send [05:56:17]OFD Sender: No OFD packet to send [05:56:22]OFD Sender: No OFD packet to send [05:56:27]OFD Sender: No OFD packet to send [05:56:32]OFD Sender: No OFD packet to send [05:56:37]OFD Sender: No OFD packet to send [05:56:42]OFD Sender: No OFD packet to send [05:56:47]OFD Sender: No OFD packet to send [05:56:52]OFD Sender: No OFD packet to send [05:56:57]OFD Sender: No OFD packet to send [05:57:02]OFD Sender: No OFD packet to send [05:57:07]OFD Sender: No OFD packet to send [05:57:12]OFD Sender: No OFD packet to send [05:57:17]OFD Sender: No OFD packet to send [05:57:22]OFD Sender: No OFD packet to send [05:57:27]OFD Sender: No OFD packet to send [05:57:32]OFD Sender: No OFD packet to send [05:57:37]OFD Sender: No OFD packet to send [05:57:42]OFD Sender: No OFD packet to send [05:57:47]OFD Sender: No OFD packet to send [05:57:52]OFD Sender: No OFD packet to send [05:57:57]OFD Sender: No OFD packet to send [05:58:02]OFD Sender: No OFD packet to send [05:58:07]OFD Sender: No OFD packet to send [05:58:12]OFD Sender: No OFD packet to send [05:58:17]OFD Sender: No OFD packet to send [05:58:22]OFD Sender: No OFD packet to send [05:58:27]OFD Sender: No OFD packet to send [05:58:32]OFD Sender: No OFD packet to send [05:58:37]OFD Sender: No OFD packet to send [05:58:42]OFD Sender: No OFD packet to send [05:58:47]OFD Sender: No OFD packet to send [05:58:52]OFD Sender: No OFD packet to send [05:58:57]OFD Sender: No OFD packet to send [05:59:02]OFD Sender: No OFD packet to send [05:59:07]OFD Sender: No OFD packet to send [05:59:12]OFD Sender: No OFD packet to send [05:59:17]OFD Sender: No OFD packet to send [05:59:22]OFD Sender: No OFD packet to send [05:59:27]OFD Sender: No OFD packet to send [05:59:32]OFD Sender: No OFD packet to send [05:59:37]OFD Sender: No OFD packet to send [05:59:42]OFD Sender: No OFD packet to send [05:59:47]OFD Sender: No OFD packet to send [05:59:52]OFD Sender: No OFD packet to send [05:59:57]OFD Sender: No OFD packet to send [06:00:02]OFD Sender: No OFD packet to send [06:00:07]OFD Sender: No OFD packet to send [06:00:12]OFD Sender: No OFD packet to send [06:00:17]OFD Sender: No OFD packet to send [06:00:22]OFD Sender: No OFD packet to send [06:00:27]OFD Sender: No OFD packet to send [06:00:32]OFD Sender: No OFD packet to send [06:00:37]OFD Sender: No OFD packet to send [06:00:42]OFD Sender: No OFD packet to send [06:00:47]OFD Sender: No OFD packet to send [06:00:52]OFD Sender: No OFD packet to send [06:00:57]OFD Sender: No OFD packet to send [06:01:02]OFD Sender: No OFD packet to send [06:01:07]OFD Sender: No OFD packet to send [06:01:12]OFD Sender: No OFD packet to send [06:01:17]OFD Sender: No OFD packet to send [06:01:22]OFD Sender: No OFD packet to send [06:01:27]OFD Sender: No OFD packet to send [06:01:32]OFD Sender: No OFD packet to send [06:01:37]OFD Sender: No OFD packet to send [06:01:42]OFD Sender: No OFD packet to send [06:01:47]OFD Sender: No OFD packet to send [06:01:52]OFD Sender: No OFD packet to send [06:01:57]OFD Sender: No OFD packet to send [06:02:02]OFD Sender: No OFD packet to send [06:02:07]OFD Sender: No OFD packet to send [06:02:12]OFD Sender: No OFD packet to send [06:02:17]OFD Sender: No OFD packet to send [06:02:22]OFD Sender: No OFD packet to send [06:02:27]OFD Sender: No OFD packet to send [06:02:32]OFD Sender: No OFD packet to send [06:02:37]OFD Sender: No OFD packet to send [06:02:42]OFD Sender: No OFD packet to send [06:02:47]OFD Sender: No OFD packet to send [06:02:52]OFD Sender: No OFD packet to send [06:02:57]OFD Sender: No OFD packet to send [06:03:02]OFD Sender: No OFD packet to send [06:03:07]OFD Sender: No OFD packet to send [06:03:12]OFD Sender: No OFD packet to send [06:03:17]OFD Sender: No OFD packet to send [06:03:22]OFD Sender: No OFD packet to send [06:03:27]OFD Sender: No OFD packet to send [06:03:32]OFD Sender: No OFD packet to send [06:03:37]OFD Sender: No OFD packet to send [06:03:42]OFD Sender: No OFD packet to send [06:03:47]OFD Sender: No OFD packet to send [06:03:52]OFD Sender: No OFD packet to send [06:03:57]OFD Sender: No OFD packet to send [06:04:02]OFD Sender: No OFD packet to send [06:04:07]OFD Sender: No OFD packet to send [06:04:12]OFD Sender: No OFD packet to send [06:04:17]OFD Sender: No OFD packet to send [06:04:22]OFD Sender: No OFD packet to send [06:04:27]OFD Sender: No OFD packet to send [06:04:32]OFD Sender: No OFD packet to send [06:04:37]OFD Sender: No OFD packet to send [06:04:42]OFD Sender: No OFD packet to send [06:04:47]OFD Sender: No OFD packet to send [06:04:52]OFD Sender: No OFD packet to send [06:04:57]OFD Sender: No OFD packet to send [06:05:02]OFD Sender: No OFD packet to send [06:05:07]OFD Sender: No OFD packet to send [06:05:12]OFD Sender: No OFD packet to send [06:05:17]OFD Sender: No OFD packet to send [06:05:22]OFD Sender: No OFD packet to send [06:05:27]OFD Sender: No OFD packet to send [06:05:32]OFD Sender: No OFD packet to send [06:05:37]OFD Sender: No OFD packet to send [06:05:42]OFD Sender: No OFD packet to send [06:05:47]OFD Sender: No OFD packet to send [06:05:52]OFD Sender: No OFD packet to send [06:05:57]OFD Sender: No OFD packet to send [06:06:02]OFD Sender: No OFD packet to send [06:06:07]OFD Sender: No OFD packet to send [06:06:12]OFD Sender: No OFD packet to send [06:06:17]OFD Sender: No OFD packet to send [06:06:22]OFD Sender: No OFD packet to send [06:06:27]OFD Sender: No OFD packet to send [06:06:32]OFD Sender: No OFD packet to send [06:06:37]OFD Sender: No OFD packet to send [06:06:42]OFD Sender: No OFD packet to send [06:06:47]accept exits with 8 [06:06:47]New connection [06:06:47]New thread 3067260260 created [06:06:47]Thread 3067116900 joined [06:06:47]Waiting for new connection... [06:06:47] Sock 8.Parse request [06:06:47]Sock 8.Check first char [06:06:47]Sock 8.First char is OK [06:06:47]request: POST /json_proto HTTP/1.0 [06:06:47]Method: POST [06:06:47]URL: /json_proto [06:06:47]Method is POST - this is cgi request [06:06:47]url: /json_proto [06:06:47]query_string will be loaded in cgi processing [06:06:47]execute_cgi json_proto POST (null) [06:06:47]execute_cgi path=json_proto method=POST [06:06:47]POST find Content-Length [06:06:47]Host: 172.17.50.3:8080 [06:06:47]Content-Length: 684 [06:06:47]Content-Type: application/json [06:06:47] [06:06:47]POST finish read [06:06:47]Found Content-Length = 684 [06:06:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:06:47]execute_script... [06:06:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:06:47]POST & json_proto [06:06:47]process_json_proto [06:06:47]json parsed OK: [06:06:47]protocol is kg_v1.0 [06:06:47]action value=close_receipt [06:06:47]process_action close_receipt [06:06:47]cmd_close_receipt [06:06:47]MH_GetDate [06:06:47]Write to MH i2c: F0 00 00 61 AC FC [06:06:47]Write i2c OK [06:06:47]MH_I2C_Read... [06:06:47]Read from MH i2c: F0 [06:06:47]MH_I2C_Read... [06:06:47]Read from MH i2c: F0 09 00 [06:06:47]MH_I2C_Read... [06:06:47]Read from MH i2c: F0 09 00 61 AC 00 00 9E 14 67 6B 98 1E 66 A5 [06:06:47]GetLastDocTimeStamp 1729401391 [06:06:47]current date 1729404416 [06:06:47]FM_GetShiftState [06:06:47]SAM_PROTO_GetShiftState [06:06:47]wFMCommunicate request_size=4 [06:06:47]MH_SAM_APDU [06:06:47]CAPDU: 80 13 01 00 [06:06:47]Write to MH i2c: E2 08 00 62 AC 80 13 01 00 00 00 00 00 8B [06:06:47]Write i2c OK [06:06:47]MH_I2C_Read... [06:06:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:06:47]Read from MH i2c: E2 [06:06:47]MH_I2C_Read... [06:06:47]Read from MH i2c: E2 0E 00 [06:06:47]MH_I2C_Read... [06:06:47]Read from MH i2c: E2 0E 00 62 AC 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 91 [06:06:47]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [06:06:47]wFMCommunicate OK [06:06:47]SAM_PROTO_GetShiftState done [06:06:47]FM_GetShiftState done [06:06:47]opened in 1729383220 [06:06:47]opened+sec_in_day 1729469620 [06:06:47]quantity*price = 50025 [06:06:47]sum+1 = 50027 [06:06:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 26 20.10.2024 06:06 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69181 ФПД: 49728473444113 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T060656&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69181&fm=49728473444113&tin=02508201610067®Number=0000000000156251&sum=50000 [06:06:48]StoreToDocumentArchive [06:06:48]shift 193 fd 69181 [06:06:48]save to /storage/0193/doc_00069181 [06:06:48]save last doc name /storage/0193/doc_00069181 to /storage/kkm_last_doc_name [06:06:48]save OK [06:06:48]Clear old archive folders... [06:06:48]ProcessDocumentItem done err = 0, tmpTLVsize=257 [06:06:48]tlvbuf is 00451ED0 [06:06:48]SAM_PROTO_ClearQueue [06:06:48]wFMCommunicate request_size=4 [06:06:48]MH_SAM_APDU [06:06:48]CAPDU: 80 09 00 00 [06:06:48]Write to MH i2c: E2 08 00 6F AC 80 09 00 00 00 00 00 00 8D [06:06:48]Write i2c OK [06:06:48]MH_I2C_Read... [06:06:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:06:48]Read from MH i2c: E2 [06:06:48]MH_I2C_Read... [06:06:48]Read from MH i2c: E2 03 00 [06:06:48]MH_I2C_Read... [06:06:48]Read from MH i2c: E2 03 00 6F AC 00 90 00 8F [06:06:48]RAPDU: 90 00 [06:06:48]wFMCommunicate OK [06:06:48]SAM_PROTO_ClearQueue done [06:06:48]KKMCreateOFDPacket [06:06:48]OFDProtocolAddRootSTLVToBuf [06:06:48]FM_MakeSignedData [06:06:48]FM_MakeSignedData [06:06:48]SAM_PROTO_SignData [06:06:48]wFMCommunicate request_size=4 [06:06:48]MH_SAM_APDU [06:06:48]CAPDU: 80 0D 01 02 [06:06:48]Write to MH i2c: E2 08 00 70 AC 80 0D 01 02 00 00 00 00 95 [06:06:48]Write i2c OK [06:06:48]MH_I2C_Read... [06:06:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:06:48]Read from MH i2c: E2 [06:06:48]MH_I2C_Read... [06:06:48]Read from MH i2c: E2 03 00 [06:06:48]MH_I2C_Read... [06:06:48]Read from MH i2c: E2 03 00 70 AC 00 90 00 90 [06:06:48]RAPDU: 90 00 [06:06:48]wFMCommunicate OK [06:06:48]wFMCommunicate request_size=255 [06:06:48]MH_SAM_APDU [06:06:48]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 00 9E 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3D 0E 01 [06:06:48]Write to MH i2c: E2 02 01 71 AC 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 00 9E 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3D 0E 01 00 00 D7 [06:06:48]Write i2c OK [06:06:48]MH_I2C_Read... [06:06:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:06:48]Read from MH i2c: E2 [06:06:48]MH_I2C_Read... [06:06:48]Read from MH i2c: E2 03 00 [06:06:48]MH_I2C_Read... [06:06:48]Read from MH i2c: E2 03 00 71 AC 00 90 00 91 [06:06:48]RAPDU: 90 00 [06:06:48]wFMCommunicate OK [06:06:48]wFMCommunicate request_size=16 [06:06:48]MH_SAM_APDU [06:06:48]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 2D 3A 4F FE AF 11 [06:06:48]Write to MH i2c: E2 13 00 72 AC 80 0D 02 02 0B 00 00 35 04 06 00 2D 3A 4F FE AF 11 00 00 61 [06:06:48]Write i2c OK [06:06:48]MH_I2C_Read... [06:06:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:06:48]Read from MH i2c: E2 [06:06:48]MH_I2C_Read... [06:06:48]Read from MH i2c: E2 03 00 [06:06:48]MH_I2C_Read... [06:06:48]Read from MH i2c: E2 03 00 72 AC 00 90 00 92 [06:06:48]RAPDU: 90 00 [06:06:48]wFMCommunicate OK [06:06:48]wFMCommunicate request_size=4 [06:06:48]MH_SAM_APDU [06:06:48]CAPDU: 80 0D 03 02 [06:06:48]Write to MH i2c: E2 08 00 73 AC 80 0D 03 02 00 00 00 00 9A [06:06:48]Write i2c OK [06:06:48]MH_I2C_Read... [06:06:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:06:48]Read from MH i2c: E2 [06:06:48]MH_I2C_Read... [06:06:48]Read from MH i2c: E2 0B 00 [06:06:48]MH_I2C_Read... [06:06:48]Read from MH i2c: E2 0B 00 73 AC 00 86 01 12 D8 E0 78 36 E1 90 00 7B [06:06:48]RAPDU: 86 01 12 D8 E0 78 36 E1 90 00 [06:06:48]wFMCommunicate OK [06:06:48]SAM_PROTO_SignData done [06:06:48]FM_MakeSignedData done [06:06:48]CreateOFDProtocolMessage [06:06:48]wFMCommunicate request_size=4 [06:06:48]MH_SAM_APDU [06:06:48]CAPDU: 80 11 00 00 [06:06:48]Write to MH i2c: E2 08 00 74 AC 80 11 00 00 00 00 00 00 9A [06:06:48]Write i2c OK [06:06:48]MH_I2C_Read... [06:06:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:06:48]Read from MH i2c: E2 [06:06:48]MH_I2C_Read... [06:06:48]Read from MH i2c: E2 17 00 [06:06:48]MH_I2C_Read... [06:06:48]Read from MH i2c: E2 17 00 74 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EC [06:06:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [06:06:48]wFMCommunicate OK [06:06:48]CreateOFDProtocolMessage done [06:06:48]OFDSenderStorePacket 69181 [06:06:48]StoreOFDPacket docnum=69181 [06:06:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 66 9C 0D 01 6F FB 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 00 9E 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3D 0E 01 00 35 04 06 00 2D 3A 4F FE AF 11 86 01 12 D8 E0 78 36 E1 [06:06:48]CheckFolder [06:06:48]dirname=/storage/ofd_packets [06:06:48]CheckFolder done [06:06:48]ProducePacketName [06:06:48]name=ofd_packets/00069181 [06:06:48]NVStorageSaveData ofd_packets/00069181 [06:06:48]File name is /storage/ofd_packets/00069181 [06:06:48]Write 307 bytes [06:06:48]NVStorageSaveData done [06:06:48]OFDSenderStorePacket done [06:06:48]KKMCreateOFDPacket done [06:06:48]NVStorageSaveData kkm_last_timestamp [06:06:48]File name is /storage/kkm_last_timestamp [06:06:48]Write 4 bytes [06:06:48]NVStorageSaveData done [06:06:48]ExternCall_PrintAddStr [06:06:48]wPrintStart [06:06:48]Write to MH i2c: 01 00 00 75 AC 21 [06:06:48]Write i2c OK [06:06:48]MH_I2C_Read... [06:06:48]Read from MH i2c: 01 [06:06:48]MH_I2C_Read... [06:06:48]Read from MH i2c: 01 07 00 [06:06:48]MH_I2C_Read... [06:06:48]Read from MH i2c: 01 07 00 75 AC 00 00 00 00 00 FF 0F 36 [06:06:48]RasterBufferAndPrint [06:06:48]line Счет N : (1)2884894 [06:06:48]line ИНН: 02508201610067 [06:06:48]line Контрольно-Кассовый Чек [06:06:48]line ПРОДАЖА [06:06:48]line ТРК (МРК, ГНК) : 31 [06:06:48]line Товар: 2710194240 [06:06:48]line D-ENERGY Дт-К-2 [06:06:48]line 6.480 * 77.20 [06:06:48]line = 500.26 [06:06:48]line НДС 12% НСП 1% [06:06:48]line > о реализуемом товаре [06:06:48]line ОКРУГЛЕНИЕ: -0.26 [06:06:48]line ИТОГО: 500.00 [06:06:48]line Внесено: 500.00 [06:06:48]line СДАЧА: 0.00 [06:06:48]line НСП 1% : 4.43 [06:06:48]line НДС 12% : 53.12 [06:06:48]line Наличными: 500.00 [06:06:48]line Безнал.: 0.00 [06:06:48]line Место: АЗС № 85 "Партнер Нефть" [06:06:48]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [06:06:48]line СНО: Общий режим [06:06:48]line Чек 26 20.10.2024 06:06 [06:06:48]line Смена: 193 ФФД: 1.0 [06:06:48]line ЗНМ: 0300000167 [06:06:48]line РНМ: 0000000000156251 [06:06:48]line Версия ККМ: v1.0 [06:06:49]line ФМ: 0000000000963346 [06:06:49]line ФД: 69181 [06:06:49]line ФПД: 49728473444113 [06:06:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T060656&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69181&fm=49728473444113&tin=02508201610067®Number=0000000000156251&sum=50000 [06:06:49]OFD Sender: Processing packet 69181 [packets to send 18, broken 17] [06:06:49]ProducePacketName [06:06:49]name=ofd_packets/00069181 [06:06:49]OFD Sender: To server: pG, [06:06:49]CommunicateWithHost lk.salyk.kg:30040 [06:06:49]ConnectInit lk.salyk.kg [06:06:49]written 0, free lines is 4095 [06:06:49]Connected sock=10 [06:06:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 66 9C 0D 01 6F FB 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 00 9E 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3D 0E 01 00 35 04 06 00 2D 3A 4F FE AF 11 86 01 12 D8 E0 78 36 E1 [06:06:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 7C F6 47 00 EA C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3D 0E 01 00 F4 03 04 00 A7 47 14 67 B6 04 01 00 00 17 70 8A 0D 50 07 76 3C [06:06:49]CommunicateWithHost err = 0 [06:06:49]CheckOFDResponse [06:06:49]1017 (14) - 77093643461234 [06:06:49]1041 (16) - 0000000000963346 [06:06:49]1040 (4) - 69181 [06:06:49]1012 (4) - 19.10.2024 23:58 [06:06:49]1206 (1) - 0 [06:06:49]OFD Sender: Remove packet 69181 [06:06:49]ProducePacketName [06:06:49]name=ofd_packets/00069181 [06:06:49]NVStorageDeleteData [06:06:49]Write to MH i2c: 01 00 00 A0 AC 4C [06:06:49]Write i2c OK [06:06:49]MH_I2C_Read... [06:06:49]Read from MH i2c: 01 [06:06:49]MH_I2C_Read... [06:06:49]Read from MH i2c: 01 07 00 [06:06:49]MH_I2C_Read... [06:06:49]Read from MH i2c: 01 07 00 A0 AC 00 00 00 00 00 E9 0C 48 [06:06:49]RasterBufferAndPrint [06:06:49]line [06:06:49]line [06:06:49]line [06:06:49]line [06:06:49]line [06:06:49]written 0, free lines is 3311 [06:06:49]MH_Cut [06:06:49]Write to MH i2c: D1 01 00 A7 AC 01 25 [06:06:49]Write i2c OK [06:06:49]MH_I2C_Read... [06:06:49]Read from MH i2c: D1 [06:06:49]MH_I2C_Read... [06:06:49]Read from MH i2c: D1 01 00 [06:06:49]MH_I2C_Read... [06:06:49]Read from MH i2c: D1 01 00 A7 AC 00 24 [06:06:49]Write to MH i2c: 01 00 00 A8 AC 54 [06:06:49]Write i2c OK [06:06:49]MH_I2C_Read... [06:06:50]OFD Sender: No OFD packet to send [06:06:50]*** Cut start [06:06:50]*** Partial cut [06:06:50]*** CUTSNS_PIN = 1 [06:06:50]*** CUTSNS_PIN = 0 [06:06:50]*** Brake cut motor [06:06:50]Read from MH i2c: 01 [06:06:50]MH_I2C_Read... [06:06:50]*** Stop cut motor [06:06:50]*** Cut end [06:06:50]Read from MH i2c: 01 07 00 [06:06:50]MH_I2C_Read... [06:06:50]Read from MH i2c: 01 07 00 A8 AC 00 00 00 00 00 FF 0F 69 [06:06:50]process_action close_receipt done [06:06:50]requested_data is exist [06:06:50]produce_requested_data [06:06:50]requested_item fm.sn is exist - process it [06:06:50]wFMCommunicate request_size=4 [06:06:50]MH_SAM_APDU [06:06:50]CAPDU: 80 11 00 00 [06:06:50]Write to MH i2c: E2 08 00 A9 AC 80 11 00 00 00 00 00 00 CF [06:06:50]Write i2c OK [06:06:50]MH_I2C_Read... [06:06:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:06:51]Read from MH i2c: E2 [06:06:51]MH_I2C_Read... [06:06:51]Read from MH i2c: E2 17 00 [06:06:51]MH_I2C_Read... [06:06:51]Read from MH i2c: E2 17 00 A9 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 21 [06:06:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [06:06:51]wFMCommunicate OK [06:06:51]requested_item fd.num is exist - process it [06:06:51]SAM_PROTO_GetFieldsCounters [06:06:51]wFMCommunicate request_size=4 [06:06:51]MH_SAM_APDU [06:06:51]CAPDU: 80 13 00 00 [06:06:51]Write to MH i2c: E2 08 00 AA AC 80 13 00 00 00 00 00 00 D2 [06:06:51]Write i2c OK [06:06:51]MH_I2C_Read... [06:06:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:06:51]Read from MH i2c: E2 [06:06:51]MH_I2C_Read... [06:06:51]Read from MH i2c: E2 62 00 [06:06:51]MH_I2C_Read... [06:06:51]Read from MH i2c: E2 62 00 AA AC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3D 0E 01 00 0E 04 04 00 C1 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 48 [06:06:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3D 0E 01 00 0E 04 04 00 C1 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 [06:06:51]wFMCommunicate OK [06:06:51]SAM_PROTO_GetFieldsCounters done [06:06:51]requested_item shift.num is exist - process it [06:06:51]requested_item shift.opened is exist - process it [06:06:51]req_shift_opened [06:06:51]FM_GetShiftState [06:06:51]SAM_PROTO_GetShiftState [06:06:51]wFMCommunicate request_size=4 [06:06:51]MH_SAM_APDU [06:06:51]CAPDU: 80 13 01 00 [06:06:51]Write to MH i2c: E2 08 00 AB AC 80 13 01 00 00 00 00 00 D4 [06:06:51]Write i2c OK [06:06:51]MH_I2C_Read... [06:06:51]Read from MH i2c: E2 [06:06:51]MH_I2C_Read... [06:06:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:06:51]Read from MH i2c: E2 0E 00 [06:06:51]MH_I2C_Read... [06:06:51]Read from MH i2c: E2 0E 00 AB AC 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 DA [06:06:51]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [06:06:51]wFMCommunicate OK [06:06:51]SAM_PROTO_GetShiftState done [06:06:51]FM_GetShiftState done [06:06:51]req_shift_opened done [06:06:51]requested_item shift.open_date is exist - process it [06:06:51]req_shift_open_date [06:06:51]req_shift_open_date done [06:06:51]produce_requested_data done [06:06:51]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69181,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [06:06:51]process_action_free close_receipt [06:06:51]json_value_free [06:06:51]json_value_free done [06:06:51]process_json_proto returns [06:06:51]Send response to host [06:06:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69181,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [06:06:51]free response buf [06:06:51]execute_script done [06:06:51]execute_script returns [06:06:51]free content buf [06:06:51]Sock 8.Close socket [06:06:51]Sock 8.Thread stoped [06:06:55]OFD Sender: No OFD packet to send [06:07:00]OFD Sender: No OFD packet to send [06:07:05]OFD Sender: No OFD packet to send [06:07:10]OFD Sender: No OFD packet to send [06:07:15]OFD Sender: No OFD packet to send [06:07:20]OFD Sender: No OFD packet to send [06:07:25]OFD Sender: No OFD packet to send [06:07:30]OFD Sender: No OFD packet to send [06:07:35]OFD Sender: No OFD packet to send [06:07:40]OFD Sender: No OFD packet to send [06:07:45]OFD Sender: No OFD packet to send [06:07:50]OFD Sender: No OFD packet to send [06:07:55]OFD Sender: No OFD packet to send [06:08:00]OFD Sender: No OFD packet to send [06:08:05]OFD Sender: No OFD packet to send [06:08:10]OFD Sender: No OFD packet to send [06:08:15]OFD Sender: No OFD packet to send [06:08:20]OFD Sender: No OFD packet to send [06:08:25]OFD Sender: No OFD packet to send [06:08:30]OFD Sender: No OFD packet to send [06:08:35]OFD Sender: No OFD packet to send [06:08:40]OFD Sender: No OFD packet to send [06:08:45]OFD Sender: No OFD packet to send [06:08:50]OFD Sender: No OFD packet to send [06:08:55]OFD Sender: No OFD packet to send [06:09:00]OFD Sender: No OFD packet to send [06:09:05]OFD Sender: No OFD packet to send [06:09:10]OFD Sender: No OFD packet to send [06:09:15]OFD Sender: No OFD packet to send [06:09:20]OFD Sender: No OFD packet to send [06:09:25]OFD Sender: No OFD packet to send [06:09:30]OFD Sender: No OFD packet to send [06:09:35]OFD Sender: No OFD packet to send [06:09:40]OFD Sender: No OFD packet to send [06:09:45]OFD Sender: No OFD packet to send [06:09:50]OFD Sender: No OFD packet to send [06:09:55]OFD Sender: No OFD packet to send [06:10:00]OFD Sender: No OFD packet to send [06:10:05]OFD Sender: No OFD packet to send [06:10:10]OFD Sender: No OFD packet to send [06:10:15]OFD Sender: No OFD packet to send [06:10:20]OFD Sender: No OFD packet to send [06:10:25]OFD Sender: No OFD packet to send [06:10:30]OFD Sender: No OFD packet to send [06:10:35]OFD Sender: No OFD packet to send [06:10:40]OFD Sender: No OFD packet to send [06:10:45]OFD Sender: No OFD packet to send [06:10:50]OFD Sender: No OFD packet to send [06:10:55]OFD Sender: No OFD packet to send [06:11:00]OFD Sender: No OFD packet to send [06:11:05]OFD Sender: No OFD packet to send [06:11:10]OFD Sender: No OFD packet to send [06:11:15]OFD Sender: No OFD packet to send [06:11:20]OFD Sender: No OFD packet to send [06:11:25]OFD Sender: No OFD packet to send [06:11:30]OFD Sender: No OFD packet to send [06:11:35]OFD Sender: No OFD packet to send [06:11:40]OFD Sender: No OFD packet to send [06:11:45]OFD Sender: No OFD packet to send [06:11:50]OFD Sender: No OFD packet to send [06:11:55]OFD Sender: No OFD packet to send [06:12:00]OFD Sender: No OFD packet to send [06:12:05]OFD Sender: No OFD packet to send [06:12:10]OFD Sender: No OFD packet to send [06:12:15]OFD Sender: No OFD packet to send [06:12:20]OFD Sender: No OFD packet to send [06:12:25]OFD Sender: No OFD packet to send [06:12:30]OFD Sender: No OFD packet to send [06:12:35]accept exits with 9 [06:12:35]New connection [06:12:35]New thread 3067116900 created [06:12:35]Thread 3067260260 joined [06:12:35]Waiting for new connection... [06:12:35] Sock 9.Parse request [06:12:35]Sock 9.Check first char [06:12:35]Sock 9.First char is OK [06:12:35]request: POST /json_proto HTTP/1.0 [06:12:35]Method: POST [06:12:35]URL: /json_proto [06:12:35]Method is POST - this is cgi request [06:12:35]url: /json_proto [06:12:35]query_string will be loaded in cgi processing [06:12:35]execute_cgi json_proto POST (null) [06:12:35]execute_cgi path=json_proto method=POST [06:12:35]POST find Content-Length [06:12:35]Host: 172.17.50.3:8080 [06:12:35]Content-Length: 689 [06:12:35]Content-Type: application/json [06:12:35] [06:12:35]POST finish read [06:12:35]Found Content-Length = 689 [06:12:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:12:35]execute_script... [06:12: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)2884895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:12:35]POST & json_proto [06:12:35]process_json_proto [06:12:35]json parsed OK: [06:12:35]protocol is kg_v1.0 [06:12:35]action value=close_receipt [06:12:35]process_action close_receipt [06:12:35]cmd_close_receipt [06:12:35]MH_GetDate [06:12:35]Write to MH i2c: F0 00 00 AC AC 47 [06:12:35]Write i2c OK [06:12:35]MH_I2C_Read... [06:12:35]Read from MH i2c: F0 [06:12:35]MH_I2C_Read... [06:12:35]Read from MH i2c: F0 09 00 [06:12:35]MH_I2C_Read... [06:12:35]Read from MH i2c: F0 09 00 AC AC 00 5B 9F 14 67 6B 98 1E 66 4C [06:12:35]GetLastDocTimeStamp 1729404416 [06:12:35]current date 1729404763 [06:12:35]FM_GetShiftState [06:12:35]SAM_PROTO_GetShiftState [06:12:35]wFMCommunicate request_size=4 [06:12:35]MH_SAM_APDU [06:12:35]CAPDU: 80 13 01 00 [06:12:35]Write to MH i2c: E2 08 00 AD AC 80 13 01 00 00 00 00 00 D6 [06:12:35]Write i2c OK [06:12:35]MH_I2C_Read... [06:12:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:12:35]Read from MH i2c: E2 [06:12:35]MH_I2C_Read... [06:12:35]Read from MH i2c: E2 0E 00 [06:12:35]MH_I2C_Read... [06:12:35]Read from MH i2c: E2 0E 00 AD AC 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 DC [06:12:35]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [06:12:35]wFMCommunicate OK [06:12:35]SAM_PROTO_GetShiftState done [06:12:35]FM_GetShiftState done [06:12:35]opened in 1729383220 [06:12:35]opened+sec_in_day 1729469620 [06:12:35]quantity*price = 100051 [06:12:35]sum+1 = 100052 [06:12:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 27 20.10.2024 06:12 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69182 ФПД: 265648463562093 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T061244&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69182&fm=265648463562093&tin=02508201610067®Number=0000000000156251&sum=100000 [06:12:36]StoreToDocumentArchive [06:12:36]shift 193 fd 69182 [06:12:36]save to /storage/0193/doc_00069182 [06:12:36]save last doc name /storage/0193/doc_00069182 to /storage/kkm_last_doc_name [06:12:36]save OK [06:12:36]Clear old archive folders... [06:12:36]ProcessDocumentItem done err = 0, tmpTLVsize=257 [06:12:36]tlvbuf is 00476950 [06:12:36]SAM_PROTO_ClearQueue [06:12:36]wFMCommunicate request_size=4 [06:12:36]MH_SAM_APDU [06:12:36]CAPDU: 80 09 00 00 [06:12:36]Write to MH i2c: E2 08 00 BA AC 80 09 00 00 00 00 00 00 D8 [06:12:36]Write i2c OK [06:12:36]MH_I2C_Read... [06:12:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:12:36]Read from MH i2c: E2 [06:12:36]MH_I2C_Read... [06:12:36]Read from MH i2c: E2 03 00 [06:12:36]MH_I2C_Read... [06:12:36]Read from MH i2c: E2 03 00 BA AC 00 90 00 DA [06:12:36]RAPDU: 90 00 [06:12:36]wFMCommunicate OK [06:12:36]SAM_PROTO_ClearQueue done [06:12:36]KKMCreateOFDPacket [06:12:36]OFDProtocolAddRootSTLVToBuf [06:12:36]FM_MakeSignedData [06:12:36]FM_MakeSignedData [06:12:36]SAM_PROTO_SignData [06:12:36]wFMCommunicate request_size=4 [06:12:36]MH_SAM_APDU [06:12:36]CAPDU: 80 0D 01 02 [06:12:36]Write to MH i2c: E2 08 00 BB AC 80 0D 01 02 00 00 00 00 E0 [06:12:36]Write i2c OK [06:12:36]MH_I2C_Read... [06:12:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:12:36]Read from MH i2c: E2 [06:12:36]MH_I2C_Read... [06:12:36]Read from MH i2c: E2 03 00 [06:12:36]MH_I2C_Read... [06:12:36]Read from MH i2c: E2 03 00 BB AC 00 90 00 DB [06:12:36]RAPDU: 90 00 [06:12:36]wFMCommunicate OK [06:12:36]wFMCommunicate request_size=255 [06:12:36]MH_SAM_APDU [06:12:36]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 5C 9F 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3E 0E 01 [06:12:36]Write to MH i2c: E2 02 01 BC AC 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 5C 9F 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3E 0E 01 00 00 D1 [06:12:36]Write i2c OK [06:12:36]MH_I2C_Read... [06:12:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:12:36]Read from MH i2c: E2 [06:12:36]MH_I2C_Read... [06:12:36]Read from MH i2c: E2 03 00 [06:12:36]MH_I2C_Read... [06:12:36]Read from MH i2c: E2 03 00 BC AC 00 90 00 DC [06:12:36]RAPDU: 90 00 [06:12:36]wFMCommunicate OK [06:12:36]wFMCommunicate request_size=16 [06:12:36]MH_SAM_APDU [06:12:36]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 F1 9B 1A 4E 45 6D [06:12:36]Write to MH i2c: E2 13 00 BD AC 80 0D 02 02 0B 00 00 35 04 06 00 F1 9B 1A 4E 45 6D 00 00 DE [06:12:36]Write i2c OK [06:12:36]MH_I2C_Read... [06:12:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:12:36]Read from MH i2c: E2 [06:12:36]MH_I2C_Read... [06:12:36]Read from MH i2c: E2 03 00 [06:12:36]MH_I2C_Read... [06:12:36]Read from MH i2c: E2 03 00 BD AC 00 90 00 DD [06:12:36]RAPDU: 90 00 [06:12:36]wFMCommunicate OK [06:12:36]wFMCommunicate request_size=4 [06:12:36]MH_SAM_APDU [06:12:36]CAPDU: 80 0D 03 02 [06:12:36]Write to MH i2c: E2 08 00 BE AC 80 0D 03 02 00 00 00 00 E5 [06:12:36]Write i2c OK [06:12:36]MH_I2C_Read... [06:12:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:12:36]Read from MH i2c: E2 [06:12:36]MH_I2C_Read... [06:12:36]Read from MH i2c: E2 0B 00 [06:12:36]MH_I2C_Read... [06:12:36]Read from MH i2c: E2 0B 00 BE AC 00 48 3B 2A 74 F3 46 3A 44 90 00 BE [06:12:36]RAPDU: 48 3B 2A 74 F3 46 3A 44 90 00 [06:12:36]wFMCommunicate OK [06:12:36]SAM_PROTO_SignData done [06:12:36]FM_MakeSignedData done [06:12:36]CreateOFDProtocolMessage [06:12:36]wFMCommunicate request_size=4 [06:12:36]MH_SAM_APDU [06:12:36]CAPDU: 80 11 00 00 [06:12:36]Write to MH i2c: E2 08 00 BF AC 80 11 00 00 00 00 00 00 E5 [06:12:36]Write i2c OK [06:12:36]MH_I2C_Read... [06:12:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:12:36]Read from MH i2c: E2 [06:12:36]MH_I2C_Read... [06:12:36]Read from MH i2c: E2 17 00 [06:12:36]MH_I2C_Read... [06:12:36]Read from MH i2c: E2 17 00 BF AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 37 [06:12:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [06:12:36]wFMCommunicate OK [06:12:36]CreateOFDProtocolMessage done [06:12:36]OFDSenderStorePacket 69182 [06:12:36]StoreOFDPacket docnum=69182 [06:12:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 79 FB 0D 01 D7 1E 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 5C 9F 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3E 0E 01 00 35 04 06 00 F1 9B 1A 4E 45 6D 48 3B 2A 74 F3 46 3A 44 [06:12:36]CheckFolder [06:12:36]dirname=/storage/ofd_packets [06:12:36]CheckFolder done [06:12:36]ProducePacketName [06:12:36]name=ofd_packets/00069182 [06:12:36]NVStorageSaveData ofd_packets/00069182 [06:12:36]File name is /storage/ofd_packets/00069182 [06:12:36]Write 307 bytes [06:12:36]NVStorageSaveData done [06:12:36]OFDSenderStorePacket done [06:12:36]KKMCreateOFDPacket done [06:12:36]NVStorageSaveData kkm_last_timestamp [06:12:36]File name is /storage/kkm_last_timestamp [06:12:36]Write 4 bytes [06:12:36]NVStorageSaveData done [06:12:36]ExternCall_PrintAddStr [06:12:36]wPrintStart [06:12:36]Write to MH i2c: 01 00 00 C0 AC 6C [06:12:36]Write i2c OK [06:12:36]MH_I2C_Read... [06:12:36]Read from MH i2c: 01 [06:12:36]MH_I2C_Read... [06:12:36]Read from MH i2c: 01 07 00 [06:12:36]MH_I2C_Read... [06:12:36]Read from MH i2c: 01 07 00 C0 AC 00 00 00 00 00 FF 0F 81 [06:12:36]RasterBufferAndPrint [06:12:36]line Счет N : (1)2884895 [06:12:36]line ИНН: 02508201610067 [06:12:36]line Контрольно-Кассовый Чек [06:12:36]line ПРОДАЖА [06:12:36]line ТРК (МРК, ГНК) : 31 [06:12:36]line Товар: 2710194240 [06:12:36]line D-ENERGY Дт-К-2 [06:12:36]line 12.960 * 77.20 [06:12:36]line = 1000.51 [06:12:36]line НДС 12% НСП 1% [06:12:36]line > о реализуемом товаре [06:12:36]line ОКРУГЛЕНИЕ: -0.51 [06:12:36]line ИТОГО: 1000.00 [06:12:36]line Внесено: 1000.00 [06:12:36]line СДАЧА: 0.00 [06:12:36]line НСП 1% : 8.85 [06:12:36]line НДС 12% : 106.25 [06:12:36]line Наличными: 1000.00 [06:12:36]line Безнал.: 0.00 [06:12:36]line Место: АЗС № 85 "Партнер Нефть" [06:12:36]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [06:12:36]line СНО: Общий режим [06:12:36]line Чек 27 20.10.2024 06:12 [06:12:36]line Смена: 193 ФФД: 1.0 [06:12:36]line ЗНМ: 0300000167 [06:12:36]line РНМ: 0000000000156251 [06:12:36]line Версия ККМ: v1.0 [06:12:36]line ФМ: 0000000000963346 [06:12:36]line ФД: 69182 [06:12:36]line ФПД: 265648463562093 [06:12:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T061244&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69182&fm=265648463562093&tin=02508201610067®Number=0000000000156251&sum=100000 [06:12:36]written 0, free lines is 4095 [06:12:36]OFD Sender: Processing packet 69182 [packets to send 18, broken 17] [06:12:36]ProducePacketName [06:12:36]name=ofd_packets/00069182 [06:12:36]OFD Sender: To server: pG, [06:12:36]CommunicateWithHost lk.salyk.kg:30040 [06:12:36]ConnectInit lk.salyk.kg [06:12:36]Connected sock=10 [06:12:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 79 FB 0D 01 D7 1E 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 5C 9F 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3E 0E 01 00 35 04 06 00 F1 9B 1A 4E 45 6D 48 3B 2A 74 F3 46 3A 44 [06:12:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 93 0E 47 00 85 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3E 0E 01 00 F4 03 04 00 03 49 14 67 B6 04 01 00 00 F0 FE 7B CF 2C FD 72 52 [06:12:37]CommunicateWithHost err = 0 [06:12:37]CheckOFDResponse [06:12:37]1017 (14) - 77093643461234 [06:12:37]1041 (16) - 0000000000963346 [06:12:37]1040 (4) - 69182 [06:12:37]1012 (4) - 20.10.2024 00:04 [06:12:37]1206 (1) - 0 [06:12:37]OFD Sender: Remove packet 69182 [06:12:37]ProducePacketName [06:12:37]name=ofd_packets/00069182 [06:12:37]NVStorageDeleteData [06:12:37]Write to MH i2c: 01 00 00 EB AC 97 [06:12:37]Write i2c OK [06:12:37]MH_I2C_Read... [06:12:37]Read from MH i2c: 01 [06:12:37]MH_I2C_Read... [06:12:37]Read from MH i2c: 01 07 00 [06:12:37]MH_I2C_Read... [06:12:37]Read from MH i2c: 01 07 00 EB AC 00 00 00 00 00 F0 0C 9A [06:12:37]RasterBufferAndPrint [06:12:37]line [06:12:37]line [06:12:37]line [06:12:37]line [06:12:37]line [06:12:37]written 0, free lines is 3318 [06:12:37]MH_Cut [06:12:37]Write to MH i2c: D1 01 00 F2 AC 01 70 [06:12:37]Write i2c OK [06:12:37]MH_I2C_Read... [06:12:37]Read from MH i2c: D1 [06:12:37]MH_I2C_Read... [06:12:37]Read from MH i2c: D1 01 00 [06:12:37]MH_I2C_Read... [06:12:37]Read from MH i2c: D1 01 00 F2 AC 00 6F [06:12:37]Write to MH i2c: 01 00 00 F3 AC 9F [06:12:37]Write i2c OK [06:12:37]MH_I2C_Read... [06:12:37]OFD Sender: No OFD packet to send [06:12:37]*** Cut start [06:12:37]*** Partial cut [06:12:37]*** CUTSNS_PIN = 1 [06:12:37]*** CUTSNS_PIN = 0 [06:12:38]*** Brake cut motor [06:12:38]Read from MH i2c: 01 [06:12:38]MH_I2C_Read... [06:12:38]*** Stop cut motor [06:12:38]*** Cut end [06:12:38]Read from MH i2c: 01 07 00 [06:12:38]MH_I2C_Read... [06:12:38]Read from MH i2c: 01 07 00 F3 AC 00 00 00 00 00 FF 0F B4 [06:12:38]process_action close_receipt done [06:12:38]requested_data is exist [06:12:38]produce_requested_data [06:12:38]requested_item fm.sn is exist - process it [06:12:38]wFMCommunicate request_size=4 [06:12:38]MH_SAM_APDU [06:12:38]CAPDU: 80 11 00 00 [06:12:38]Write to MH i2c: E2 08 00 F4 AC 80 11 00 00 00 00 00 00 1A [06:12:38]Write i2c OK [06:12:38]MH_I2C_Read... [06:12:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:12:38]Read from MH i2c: E2 [06:12:38]MH_I2C_Read... [06:12:38]Read from MH i2c: E2 17 00 [06:12:38]MH_I2C_Read... [06:12:38]Read from MH i2c: E2 17 00 F4 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6C [06:12:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [06:12:38]wFMCommunicate OK [06:12:38]requested_item fd.num is exist - process it [06:12:38]SAM_PROTO_GetFieldsCounters [06:12:38]wFMCommunicate request_size=4 [06:12:38]MH_SAM_APDU [06:12:38]CAPDU: 80 13 00 00 [06:12:38]Write to MH i2c: E2 08 00 F5 AC 80 13 00 00 00 00 00 00 1D [06:12:38]Write i2c OK [06:12:38]MH_I2C_Read... [06:12:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:12:38]Read from MH i2c: E2 [06:12:38]MH_I2C_Read... [06:12:38]Read from MH i2c: E2 62 00 [06:12:38]MH_I2C_Read... [06:12:38]Read from MH i2c: E2 62 00 F5 AC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3E 0E 01 00 0E 04 04 00 C1 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 97 [06:12:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3E 0E 01 00 0E 04 04 00 C1 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 [06:12:38]wFMCommunicate OK [06:12:38]SAM_PROTO_GetFieldsCounters done [06:12:38]requested_item shift.num is exist - process it [06:12:38]requested_item shift.opened is exist - process it [06:12:38]req_shift_opened [06:12:38]FM_GetShiftState [06:12:38]SAM_PROTO_GetShiftState [06:12:38]wFMCommunicate request_size=4 [06:12:38]MH_SAM_APDU [06:12:38]CAPDU: 80 13 01 00 [06:12:38]Write to MH i2c: E2 08 00 F6 AC 80 13 01 00 00 00 00 00 1F [06:12:38]Write i2c OK [06:12:38]MH_I2C_Read... [06:12:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:12:38]Read from MH i2c: E2 [06:12:38]MH_I2C_Read... [06:12:38]Read from MH i2c: E2 0E 00 [06:12:38]MH_I2C_Read... [06:12:38]Read from MH i2c: E2 0E 00 F6 AC 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 25 [06:12:38]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [06:12:38]wFMCommunicate OK [06:12:38]SAM_PROTO_GetShiftState done [06:12:38]FM_GetShiftState done [06:12:38]req_shift_opened done [06:12:38]requested_item shift.open_date is exist - process it [06:12:38]req_shift_open_date [06:12:38]req_shift_open_date done [06:12:38]produce_requested_data done [06:12:38]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69182,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [06:12:38]process_action_free close_receipt [06:12:38]json_value_free [06:12:38]json_value_free done [06:12:38]process_json_proto returns [06:12:38]Send response to host [06:12:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69182,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [06:12:38]free response buf [06:12:38]execute_script done [06:12:38]execute_script returns [06:12:38]free content buf [06:12:38]Sock 9.Close socket [06:12:38]Sock 9.Thread stoped [06:12:42]OFD Sender: No OFD packet to send [06:12:47]OFD Sender: No OFD packet to send [06:12:52]OFD Sender: No OFD packet to send [06:12:57]OFD Sender: No OFD packet to send [06:13:02]OFD Sender: No OFD packet to send [06:13:07]OFD Sender: No OFD packet to send [06:13:12]OFD Sender: No OFD packet to send [06:13:17]OFD Sender: No OFD packet to send [06:13:22]OFD Sender: No OFD packet to send [06:13:27]OFD Sender: No OFD packet to send [06:13:32]OFD Sender: No OFD packet to send [06:13:37]OFD Sender: No OFD packet to send [06:13:42]OFD Sender: No OFD packet to send [06:13:47]OFD Sender: No OFD packet to send [06:13:52]OFD Sender: No OFD packet to send [06:13:57]OFD Sender: No OFD packet to send [06:14:02]OFD Sender: No OFD packet to send [06:14:07]OFD Sender: No OFD packet to send [06:14:12]OFD Sender: No OFD packet to send [06:14:17]OFD Sender: No OFD packet to send [06:14:22]OFD Sender: No OFD packet to send [06:14:27]OFD Sender: No OFD packet to send [06:14:32]OFD Sender: No OFD packet to send [06:14:37]OFD Sender: No OFD packet to send [06:14:42]OFD Sender: No OFD packet to send [06:14:47]OFD Sender: No OFD packet to send [06:14:52]OFD Sender: No OFD packet to send [06:14:57]OFD Sender: No OFD packet to send [06:15:02]OFD Sender: No OFD packet to send [06:15:07]OFD Sender: No OFD packet to send [06:15:12]OFD Sender: No OFD packet to send [06:15:17]OFD Sender: No OFD packet to send [06:15:22]OFD Sender: No OFD packet to send [06:15:27]OFD Sender: No OFD packet to send [06:15:32]OFD Sender: No OFD packet to send [06:15:37]OFD Sender: No OFD packet to send [06:15:42]OFD Sender: No OFD packet to send [06:15:47]OFD Sender: No OFD packet to send [06:15:52]OFD Sender: No OFD packet to send [06:15:57]OFD Sender: No OFD packet to send [06:16:02]OFD Sender: No OFD packet to send [06:16:07]OFD Sender: No OFD packet to send [06:16:12]OFD Sender: No OFD packet to send [06:16:17]OFD Sender: No OFD packet to send [06:16:22]OFD Sender: No OFD packet to send [06:16:27]OFD Sender: No OFD packet to send [06:16:32]OFD Sender: No OFD packet to send [06:16:37]OFD Sender: No OFD packet to send [06:16:42]OFD Sender: No OFD packet to send [06:16:47]OFD Sender: No OFD packet to send [06:16:52]OFD Sender: No OFD packet to send [06:16:57]OFD Sender: No OFD packet to send [06:17:02]OFD Sender: No OFD packet to send [06:17:07]OFD Sender: No OFD packet to send [06:17:12]OFD Sender: No OFD packet to send [06:17:17]OFD Sender: No OFD packet to send [06:17:22]OFD Sender: No OFD packet to send [06:17:27]OFD Sender: No OFD packet to send [06:17:32]OFD Sender: No OFD packet to send [06:17:37]OFD Sender: No OFD packet to send [06:17:42]OFD Sender: No OFD packet to send [06:17:47]OFD Sender: No OFD packet to send [06:17:52]OFD Sender: No OFD packet to send [06:17:57]OFD Sender: No OFD packet to send [06:18:02]OFD Sender: No OFD packet to send [06:18:07]OFD Sender: No OFD packet to send [06:18:12]OFD Sender: No OFD packet to send [06:18:17]OFD Sender: No OFD packet to send [06:18:22]OFD Sender: No OFD packet to send [06:18:27]OFD Sender: No OFD packet to send [06:18:32]OFD Sender: No OFD packet to send [06:18:37]OFD Sender: No OFD packet to send [06:18:42]OFD Sender: No OFD packet to send [06:18:47]OFD Sender: No OFD packet to send [06:18:52]OFD Sender: No OFD packet to send [06:18:57]OFD Sender: No OFD packet to send [06:19:02]OFD Sender: No OFD packet to send [06:19:07]OFD Sender: No OFD packet to send [06:19:12]OFD Sender: No OFD packet to send [06:19:17]OFD Sender: No OFD packet to send [06:19:22]OFD Sender: No OFD packet to send [06:19:27]OFD Sender: No OFD packet to send [06:19:32]OFD Sender: No OFD packet to send [06:19:37]OFD Sender: No OFD packet to send [06:19:42]OFD Sender: No OFD packet to send [06:19:47]OFD Sender: No OFD packet to send [06:19:52]OFD Sender: No OFD packet to send [06:19:57]OFD Sender: No OFD packet to send [06:20:02]OFD Sender: No OFD packet to send [06:20:07]OFD Sender: No OFD packet to send [06:20:12]OFD Sender: No OFD packet to send [06:20:17]OFD Sender: No OFD packet to send [06:20:22]OFD Sender: No OFD packet to send [06:20:27]OFD Sender: No OFD packet to send [06:20:32]OFD Sender: No OFD packet to send [06:20:37]OFD Sender: No OFD packet to send [06:20:42]OFD Sender: No OFD packet to send [06:20:48]OFD Sender: No OFD packet to send [06:20:53]OFD Sender: No OFD packet to send [06:20:58]OFD Sender: No OFD packet to send [06:21:03]OFD Sender: No OFD packet to send [06:21:08]OFD Sender: No OFD packet to send [06:21:13]OFD Sender: No OFD packet to send [06:21:18]OFD Sender: No OFD packet to send [06:21:23]OFD Sender: No OFD packet to send [06:21:28]OFD Sender: No OFD packet to send [06:21:33]OFD Sender: No OFD packet to send [06:21:38]OFD Sender: No OFD packet to send [06:21:43]OFD Sender: No OFD packet to send [06:21:48]OFD Sender: No OFD packet to send [06:21:53]OFD Sender: No OFD packet to send [06:21:58]OFD Sender: No OFD packet to send [06:22:03]OFD Sender: No OFD packet to send [06:22:08]OFD Sender: No OFD packet to send [06:22:13]OFD Sender: No OFD packet to send [06:22:18]OFD Sender: No OFD packet to send [06:22:23]OFD Sender: No OFD packet to send [06:22:28]OFD Sender: No OFD packet to send [06:22:33]OFD Sender: No OFD packet to send [06:22:38]OFD Sender: No OFD packet to send [06:22:43]OFD Sender: No OFD packet to send [06:22:48]OFD Sender: No OFD packet to send [06:22:53]OFD Sender: No OFD packet to send [06:22:58]OFD Sender: No OFD packet to send [06:23:03]OFD Sender: No OFD packet to send [06:23:08]OFD Sender: No OFD packet to send [06:23:13]OFD Sender: No OFD packet to send [06:23:18]OFD Sender: No OFD packet to send [06:23:23]OFD Sender: No OFD packet to send [06:23:28]OFD Sender: No OFD packet to send [06:23:33]OFD Sender: No OFD packet to send [06:23:38]OFD Sender: No OFD packet to send [06:23:43]OFD Sender: No OFD packet to send [06:23:48]OFD Sender: No OFD packet to send [06:23:53]OFD Sender: No OFD packet to send [06:23:58]OFD Sender: No OFD packet to send [06:24:03]OFD Sender: No OFD packet to send [06:24:08]OFD Sender: No OFD packet to send [06:24:13]OFD Sender: No OFD packet to send [06:24:18]OFD Sender: No OFD packet to send [06:24:23]OFD Sender: No OFD packet to send [06:24:28]OFD Sender: No OFD packet to send [06:24:33]OFD Sender: No OFD packet to send [06:24:38]OFD Sender: No OFD packet to send [06:24:43]OFD Sender: No OFD packet to send [06:24:48]OFD Sender: No OFD packet to send [06:24:53]OFD Sender: No OFD packet to send [06:24:58]OFD Sender: No OFD packet to send [06:25:03]OFD Sender: No OFD packet to send [06:25:08]OFD Sender: No OFD packet to send [06:25:13]OFD Sender: No OFD packet to send [06:25:18]OFD Sender: No OFD packet to send [06:25:23]OFD Sender: No OFD packet to send [06:25:28]OFD Sender: No OFD packet to send [06:25:33]OFD Sender: No OFD packet to send [06:25:38]OFD Sender: No OFD packet to send [06:25:43]OFD Sender: No OFD packet to send [06:25:48]OFD Sender: No OFD packet to send [06:25:53]OFD Sender: No OFD packet to send [06:25:58]OFD Sender: No OFD packet to send [06:26:03]OFD Sender: No OFD packet to send [06:26:08]OFD Sender: No OFD packet to send [06:26:13]OFD Sender: No OFD packet to send [06:26:18]OFD Sender: No OFD packet to send [06:26:23]OFD Sender: No OFD packet to send [06:26:28]OFD Sender: No OFD packet to send [06:26:33]OFD Sender: No OFD packet to send [06:26:38]OFD Sender: No OFD packet to send [06:26:43]OFD Sender: No OFD packet to send [06:26:48]OFD Sender: No OFD packet to send [06:26:53]OFD Sender: No OFD packet to send [06:26:58]OFD Sender: No OFD packet to send [06:27:03]OFD Sender: No OFD packet to send [06:27:08]OFD Sender: No OFD packet to send [06:27:13]OFD Sender: No OFD packet to send [06:27:18]OFD Sender: No OFD packet to send [06:27:23]OFD Sender: No OFD packet to send [06:27:28]OFD Sender: No OFD packet to send [06:27:33]OFD Sender: No OFD packet to send [06:27:38]OFD Sender: No OFD packet to send [06:27:43]OFD Sender: No OFD packet to send [06:27:48]OFD Sender: No OFD packet to send [06:27:53]OFD Sender: No OFD packet to send [06:27:58]OFD Sender: No OFD packet to send [06:28:03]OFD Sender: No OFD packet to send [06:28:08]OFD Sender: No OFD packet to send [06:28:13]OFD Sender: No OFD packet to send [06:28:18]OFD Sender: No OFD packet to send [06:28:23]OFD Sender: No OFD packet to send [06:28:28]OFD Sender: No OFD packet to send [06:28:33]OFD Sender: No OFD packet to send [06:28:38]OFD Sender: No OFD packet to send [06:28:43]OFD Sender: No OFD packet to send [06:28:48]OFD Sender: No OFD packet to send [06:28:53]OFD Sender: No OFD packet to send [06:28:58]OFD Sender: No OFD packet to send [06:29:03]OFD Sender: No OFD packet to send [06:29:08]OFD Sender: No OFD packet to send [06:29:13]OFD Sender: No OFD packet to send [06:29:18]OFD Sender: No OFD packet to send [06:29:23]OFD Sender: No OFD packet to send [06:29:28]OFD Sender: No OFD packet to send [06:29:33]OFD Sender: No OFD packet to send [06:29:38]OFD Sender: No OFD packet to send [06:29:43]OFD Sender: No OFD packet to send [06:29:48]OFD Sender: No OFD packet to send [06:29:53]OFD Sender: No OFD packet to send [06:29:58]OFD Sender: No OFD packet to send [06:30:03]OFD Sender: No OFD packet to send [06:30:08]OFD Sender: No OFD packet to send [06:30:13]OFD Sender: No OFD packet to send [06:30:18]OFD Sender: No OFD packet to send [06:30:23]OFD Sender: No OFD packet to send [06:30:28]OFD Sender: No OFD packet to send [06:30:33]OFD Sender: No OFD packet to send [06:30:38]OFD Sender: No OFD packet to send [06:30:43]OFD Sender: No OFD packet to send [06:30:48]OFD Sender: No OFD packet to send [06:30:53]OFD Sender: No OFD packet to send [06:30:58]OFD Sender: No OFD packet to send [06:31:03]OFD Sender: No OFD packet to send [06:31:08]OFD Sender: No OFD packet to send [06:31:13]OFD Sender: No OFD packet to send [06:31:18]OFD Sender: No OFD packet to send [06:31:23]OFD Sender: No OFD packet to send [06:31:28]OFD Sender: No OFD packet to send [06:31:33]OFD Sender: No OFD packet to send [06:31:38]OFD Sender: No OFD packet to send [06:31:43]OFD Sender: No OFD packet to send [06:31:48]OFD Sender: No OFD packet to send [06:31:53]OFD Sender: No OFD packet to send [06:31:58]OFD Sender: No OFD packet to send [06:32:03]OFD Sender: No OFD packet to send [06:32:08]OFD Sender: No OFD packet to send [06:32:13]OFD Sender: No OFD packet to send [06:32:18]OFD Sender: No OFD packet to send [06:32:23]OFD Sender: No OFD packet to send [06:32:28]OFD Sender: No OFD packet to send [06:32:33]OFD Sender: No OFD packet to send [06:32:38]OFD Sender: No OFD packet to send [06:32:43]OFD Sender: No OFD packet to send [06:32:48]OFD Sender: No OFD packet to send [06:32:53]OFD Sender: No OFD packet to send [06:32:58]OFD Sender: No OFD packet to send [06:33:03]OFD Sender: No OFD packet to send [06:33:08]OFD Sender: No OFD packet to send [06:33:13]OFD Sender: No OFD packet to send [06:33:18]OFD Sender: No OFD packet to send [06:33:23]OFD Sender: No OFD packet to send [06:33:28]OFD Sender: No OFD packet to send [06:33:33]OFD Sender: No OFD packet to send [06:33:38]OFD Sender: No OFD packet to send [06:33:43]OFD Sender: No OFD packet to send [06:33:48]OFD Sender: No OFD packet to send [06:33:53]OFD Sender: No OFD packet to send [06:33:58]OFD Sender: No OFD packet to send [06:34:03]OFD Sender: No OFD packet to send [06:34:08]OFD Sender: No OFD packet to send [06:34:13]OFD Sender: No OFD packet to send [06:34:18]OFD Sender: No OFD packet to send [06:34:23]OFD Sender: No OFD packet to send [06:34:28]OFD Sender: No OFD packet to send [06:34:33]OFD Sender: No OFD packet to send [06:34:38]OFD Sender: No OFD packet to send [06:34:43]OFD Sender: No OFD packet to send [06:34:48]OFD Sender: No OFD packet to send [06:34:53]OFD Sender: No OFD packet to send [06:34:58]OFD Sender: No OFD packet to send [06:35:03]OFD Sender: No OFD packet to send [06:35:08]OFD Sender: No OFD packet to send [06:35:13]OFD Sender: No OFD packet to send [06:35:18]OFD Sender: No OFD packet to send [06:35:23]OFD Sender: No OFD packet to send [06:35:28]OFD Sender: No OFD packet to send [06:35:33]OFD Sender: No OFD packet to send [06:35:38]OFD Sender: No OFD packet to send [06:35:43]OFD Sender: No OFD packet to send [06:35:48]OFD Sender: No OFD packet to send [06:35:53]OFD Sender: No OFD packet to send [06:35:58]OFD Sender: No OFD packet to send [06:36:03]OFD Sender: No OFD packet to send [06:36:08]OFD Sender: No OFD packet to send [06:36:13]OFD Sender: No OFD packet to send [06:36:18]OFD Sender: No OFD packet to send [06:36:23]OFD Sender: No OFD packet to send [06:36:28]OFD Sender: No OFD packet to send [06:36:33]OFD Sender: No OFD packet to send [06:36:38]OFD Sender: No OFD packet to send [06:36:43]OFD Sender: No OFD packet to send [06:36:48]OFD Sender: No OFD packet to send [06:36:53]OFD Sender: No OFD packet to send [06:36:58]OFD Sender: No OFD packet to send [06:37:03]OFD Sender: No OFD packet to send [06:37:08]OFD Sender: No OFD packet to send [06:37:13]OFD Sender: No OFD packet to send [06:37:18]OFD Sender: No OFD packet to send [06:37:23]OFD Sender: No OFD packet to send [06:37:28]OFD Sender: No OFD packet to send [06:37:33]OFD Sender: No OFD packet to send [06:37:38]OFD Sender: No OFD packet to send [06:37:43]OFD Sender: No OFD packet to send [06:37:48]OFD Sender: No OFD packet to send [06:37:53]OFD Sender: No OFD packet to send [06:37:58]OFD Sender: No OFD packet to send [06:38:03]OFD Sender: No OFD packet to send [06:38:08]OFD Sender: No OFD packet to send [06:38:13]OFD Sender: No OFD packet to send [06:38:18]OFD Sender: No OFD packet to send [06:38:23]OFD Sender: No OFD packet to send [06:38:28]OFD Sender: No OFD packet to send [06:38:33]OFD Sender: No OFD packet to send [06:38:38]OFD Sender: No OFD packet to send [06:38:43]OFD Sender: No OFD packet to send [06:38:48]OFD Sender: No OFD packet to send [06:38:53]OFD Sender: No OFD packet to send [06:38:58]OFD Sender: No OFD packet to send [06:39:03]OFD Sender: No OFD packet to send [06:39:08]OFD Sender: No OFD packet to send [06:39:13]OFD Sender: No OFD packet to send [06:39:18]OFD Sender: No OFD packet to send [06:39:23]OFD Sender: No OFD packet to send [06:39:28]OFD Sender: No OFD packet to send [06:39:33]OFD Sender: No OFD packet to send [06:39:38]OFD Sender: No OFD packet to send [06:39:43]OFD Sender: No OFD packet to send [06:39:48]OFD Sender: No OFD packet to send [06:39:53]OFD Sender: No OFD packet to send [06:39:58]OFD Sender: No OFD packet to send [06:40:03]OFD Sender: No OFD packet to send [06:40:08]OFD Sender: No OFD packet to send [06:40:13]OFD Sender: No OFD packet to send [06:40:18]OFD Sender: No OFD packet to send [06:40:23]OFD Sender: No OFD packet to send [06:40:28]OFD Sender: No OFD packet to send [06:40:33]OFD Sender: No OFD packet to send [06:40:38]OFD Sender: No OFD packet to send [06:40:43]OFD Sender: No OFD packet to send [06:40:48]OFD Sender: No OFD packet to send [06:40:53]OFD Sender: No OFD packet to send [06:40:58]OFD Sender: No OFD packet to send [06:41:03]OFD Sender: No OFD packet to send [06:41:08]OFD Sender: No OFD packet to send [06:41:13]OFD Sender: No OFD packet to send [06:41:19]OFD Sender: No OFD packet to send [06:41:24]OFD Sender: No OFD packet to send [06:41:29]OFD Sender: No OFD packet to send [06:41:34]OFD Sender: No OFD packet to send [06:41:39]OFD Sender: No OFD packet to send [06:41:44]OFD Sender: No OFD packet to send [06:41:49]OFD Sender: No OFD packet to send [06:41:54]OFD Sender: No OFD packet to send [06:41:59]OFD Sender: No OFD packet to send [06:42:04]OFD Sender: No OFD packet to send [06:42:09]OFD Sender: No OFD packet to send [06:42:14]OFD Sender: No OFD packet to send [06:42:19]OFD Sender: No OFD packet to send [06:42:24]OFD Sender: No OFD packet to send [06:42:29]OFD Sender: No OFD packet to send [06:42:34]OFD Sender: No OFD packet to send [06:42:39]OFD Sender: No OFD packet to send [06:42:44]OFD Sender: No OFD packet to send [06:42:49]OFD Sender: No OFD packet to send [06:42:54]OFD Sender: No OFD packet to send [06:42:59]OFD Sender: No OFD packet to send [06:43:04]OFD Sender: No OFD packet to send [06:43:09]OFD Sender: No OFD packet to send [06:43:14]OFD Sender: No OFD packet to send [06:43:19]OFD Sender: No OFD packet to send [06:43:24]OFD Sender: No OFD packet to send [06:43:29]OFD Sender: No OFD packet to send [06:43:34]OFD Sender: No OFD packet to send [06:43:39]OFD Sender: No OFD packet to send [06:43:44]OFD Sender: No OFD packet to send [06:43:49]OFD Sender: No OFD packet to send [06:43:54]OFD Sender: No OFD packet to send [06:43:59]OFD Sender: No OFD packet to send [06:44:04]OFD Sender: No OFD packet to send [06:44:09]OFD Sender: No OFD packet to send [06:44:14]OFD Sender: No OFD packet to send [06:44:19]OFD Sender: No OFD packet to send [06:44:24]OFD Sender: No OFD packet to send [06:44:29]OFD Sender: No OFD packet to send [06:44:34]OFD Sender: No OFD packet to send [06:44:39]OFD Sender: No OFD packet to send [06:44:44]OFD Sender: No OFD packet to send [06:44:49]OFD Sender: No OFD packet to send [06:44:54]OFD Sender: No OFD packet to send [06:44:59]OFD Sender: No OFD packet to send [06:45:04]OFD Sender: No OFD packet to send [06:45:09]OFD Sender: No OFD packet to send [06:45:14]OFD Sender: No OFD packet to send [06:45:19]OFD Sender: No OFD packet to send [06:45:24]OFD Sender: No OFD packet to send [06:45:29]OFD Sender: No OFD packet to send [06:45:34]OFD Sender: No OFD packet to send [06:45:39]OFD Sender: No OFD packet to send [06:45:44]OFD Sender: No OFD packet to send [06:45:49]OFD Sender: No OFD packet to send [06:45:54]OFD Sender: No OFD packet to send [06:45:59]OFD Sender: No OFD packet to send [06:46:04]OFD Sender: No OFD packet to send [06:46:09]OFD Sender: No OFD packet to send [06:46:14]OFD Sender: No OFD packet to send [06:46:19]OFD Sender: No OFD packet to send [06:46:24]OFD Sender: No OFD packet to send [06:46:29]OFD Sender: No OFD packet to send [06:46:34]OFD Sender: No OFD packet to send [06:46:39]OFD Sender: No OFD packet to send [06:46:44]OFD Sender: No OFD packet to send [06:46:49]OFD Sender: No OFD packet to send [06:46:54]OFD Sender: No OFD packet to send [06:46:59]OFD Sender: No OFD packet to send [06:47:04]OFD Sender: No OFD packet to send [06:47:09]OFD Sender: No OFD packet to send [06:47:14]OFD Sender: No OFD packet to send [06:47:19]OFD Sender: No OFD packet to send [06:47:24]OFD Sender: No OFD packet to send [06:47:29]OFD Sender: No OFD packet to send [06:47:34]OFD Sender: No OFD packet to send [06:47:39]OFD Sender: No OFD packet to send [06:47:44]OFD Sender: No OFD packet to send [06:47:49]OFD Sender: No OFD packet to send [06:47:54]OFD Sender: No OFD packet to send [06:47:59]OFD Sender: No OFD packet to send [06:48:04]OFD Sender: No OFD packet to send [06:48:09]OFD Sender: No OFD packet to send [06:48:14]OFD Sender: No OFD packet to send [06:48:19]OFD Sender: No OFD packet to send [06:48:24]OFD Sender: No OFD packet to send [06:48:29]OFD Sender: No OFD packet to send [06:48:34]OFD Sender: No OFD packet to send [06:48:39]OFD Sender: No OFD packet to send [06:48:44]OFD Sender: No OFD packet to send [06:48:49]OFD Sender: No OFD packet to send [06:48:54]OFD Sender: No OFD packet to send [06:48:59]OFD Sender: No OFD packet to send [06:49:04]OFD Sender: No OFD packet to send [06:49:09]OFD Sender: No OFD packet to send [06:49:14]OFD Sender: No OFD packet to send [06:49:19]OFD Sender: No OFD packet to send [06:49:24]OFD Sender: No OFD packet to send [06:49:29]OFD Sender: No OFD packet to send [06:49:34]OFD Sender: No OFD packet to send [06:49:39]OFD Sender: No OFD packet to send [06:49:44]OFD Sender: No OFD packet to send [06:49:49]OFD Sender: No OFD packet to send [06:49:54]OFD Sender: No OFD packet to send [06:49:59]OFD Sender: No OFD packet to send [06:50:04]OFD Sender: No OFD packet to send [06:50:09]OFD Sender: No OFD packet to send [06:50:14]OFD Sender: No OFD packet to send [06:50:19]OFD Sender: No OFD packet to send [06:50:24]OFD Sender: No OFD packet to send [06:50:29]OFD Sender: No OFD packet to send [06:50:34]OFD Sender: No OFD packet to send [06:50:39]OFD Sender: No OFD packet to send [06:50:44]OFD Sender: No OFD packet to send [06:50:49]OFD Sender: No OFD packet to send [06:50:54]OFD Sender: No OFD packet to send [06:50:59]OFD Sender: No OFD packet to send [06:51:04]OFD Sender: No OFD packet to send [06:51:09]OFD Sender: No OFD packet to send [06:51:14]OFD Sender: No OFD packet to send [06:51:19]OFD Sender: No OFD packet to send [06:51:24]OFD Sender: No OFD packet to send [06:51:29]OFD Sender: No OFD packet to send [06:51:34]OFD Sender: No OFD packet to send [06:51:39]OFD Sender: No OFD packet to send [06:51:44]OFD Sender: No OFD packet to send [06:51:49]OFD Sender: No OFD packet to send [06:51:54]OFD Sender: No OFD packet to send [06:51:59]OFD Sender: No OFD packet to send [06:52:04]OFD Sender: No OFD packet to send [06:52:09]OFD Sender: No OFD packet to send [06:52:14]OFD Sender: No OFD packet to send [06:52:19]OFD Sender: No OFD packet to send [06:52:24]OFD Sender: No OFD packet to send [06:52:29]OFD Sender: No OFD packet to send [06:52:34]OFD Sender: No OFD packet to send [06:52:39]OFD Sender: No OFD packet to send [06:52:44]OFD Sender: No OFD packet to send [06:52:49]OFD Sender: No OFD packet to send [06:52:54]OFD Sender: No OFD packet to send [06:52:59]OFD Sender: No OFD packet to send [06:53:04]OFD Sender: No OFD packet to send [06:53:09]OFD Sender: No OFD packet to send [06:53:14]OFD Sender: No OFD packet to send [06:53:19]OFD Sender: No OFD packet to send [06:53:24]OFD Sender: No OFD packet to send [06:53:29]OFD Sender: No OFD packet to send [06:53:34]OFD Sender: No OFD packet to send [06:53:39]OFD Sender: No OFD packet to send [06:53:44]OFD Sender: No OFD packet to send [06:53:49]OFD Sender: No OFD packet to send [06:53:54]OFD Sender: No OFD packet to send [06:53:59]OFD Sender: No OFD packet to send [06:54:04]OFD Sender: No OFD packet to send [06:54:09]OFD Sender: No OFD packet to send [06:54:14]OFD Sender: No OFD packet to send [06:54:19]OFD Sender: No OFD packet to send [06:54:24]OFD Sender: No OFD packet to send [06:54:29]OFD Sender: No OFD packet to send [06:54:34]OFD Sender: No OFD packet to send [06:54:39]OFD Sender: No OFD packet to send [06:54:44]OFD Sender: No OFD packet to send [06:54:49]OFD Sender: No OFD packet to send [06:54:54]OFD Sender: No OFD packet to send [06:54:59]OFD Sender: No OFD packet to send [06:55:04]OFD Sender: No OFD packet to send [06:55:09]OFD Sender: No OFD packet to send [06:55:14]OFD Sender: No OFD packet to send [06:55:19]OFD Sender: No OFD packet to send [06:55:24]OFD Sender: No OFD packet to send [06:55:29]OFD Sender: No OFD packet to send [06:55:34]OFD Sender: No OFD packet to send [06:55:39]OFD Sender: No OFD packet to send [06:55:44]OFD Sender: No OFD packet to send [06:55:49]OFD Sender: No OFD packet to send [06:55:54]OFD Sender: No OFD packet to send [06:55:59]OFD Sender: No OFD packet to send [06:56:04]OFD Sender: No OFD packet to send [06:56:09]OFD Sender: No OFD packet to send [06:56:14]OFD Sender: No OFD packet to send [06:56:19]OFD Sender: No OFD packet to send [06:56:24]OFD Sender: No OFD packet to send [06:56:29]OFD Sender: No OFD packet to send [06:56:34]OFD Sender: No OFD packet to send [06:56:39]OFD Sender: No OFD packet to send [06:56:44]OFD Sender: No OFD packet to send [06:56:49]OFD Sender: No OFD packet to send [06:56:54]OFD Sender: No OFD packet to send [06:56:59]OFD Sender: No OFD packet to send [06:57:04]OFD Sender: No OFD packet to send [06:57:09]OFD Sender: No OFD packet to send [06:57:14]OFD Sender: No OFD packet to send [06:57:19]OFD Sender: No OFD packet to send [06:57:24]OFD Sender: No OFD packet to send [06:57:29]OFD Sender: No OFD packet to send [06:57:34]OFD Sender: No OFD packet to send [06:57:39]OFD Sender: No OFD packet to send [06:57:44]OFD Sender: No OFD packet to send [06:57:49]OFD Sender: No OFD packet to send [06:57:54]OFD Sender: No OFD packet to send [06:57:59]OFD Sender: No OFD packet to send [06:58:04]OFD Sender: No OFD packet to send [06:58:09]OFD Sender: No OFD packet to send [06:58:14]OFD Sender: No OFD packet to send [06:58:19]OFD Sender: No OFD packet to send [06:58:24]OFD Sender: No OFD packet to send [06:58:29]OFD Sender: No OFD packet to send [06:58:34]OFD Sender: No OFD packet to send [06:58:39]OFD Sender: No OFD packet to send [06:58:44]OFD Sender: No OFD packet to send [06:58:49]OFD Sender: No OFD packet to send [06:58:54]OFD Sender: No OFD packet to send [06:58:59]OFD Sender: No OFD packet to send [06:59:04]OFD Sender: No OFD packet to send [06:59:09]OFD Sender: No OFD packet to send [06:59:14]OFD Sender: No OFD packet to send [06:59:19]OFD Sender: No OFD packet to send [06:59:24]OFD Sender: No OFD packet to send [06:59:29]OFD Sender: No OFD packet to send [06:59:34]OFD Sender: No OFD packet to send [06:59:39]OFD Sender: No OFD packet to send [06:59:44]OFD Sender: No OFD packet to send [06:59:49]OFD Sender: No OFD packet to send [06:59:54]OFD Sender: No OFD packet to send [06:59:59]OFD Sender: No OFD packet to send [07:00:04]OFD Sender: No OFD packet to send [07:00:09]OFD Sender: No OFD packet to send [07:00:14]OFD Sender: No OFD packet to send [07:00:19]OFD Sender: No OFD packet to send [07:00:24]OFD Sender: No OFD packet to send [07:00:29]OFD Sender: No OFD packet to send [07:00:34]OFD Sender: No OFD packet to send [07:00:39]OFD Sender: No OFD packet to send [07:00:44]OFD Sender: No OFD packet to send [07:00:49]OFD Sender: No OFD packet to send [07:00:54]OFD Sender: No OFD packet to send [07:00:59]OFD Sender: No OFD packet to send [07:01:04]OFD Sender: No OFD packet to send [07:01:09]OFD Sender: No OFD packet to send [07:01:14]OFD Sender: No OFD packet to send [07:01:19]OFD Sender: No OFD packet to send [07:01:24]OFD Sender: No OFD packet to send [07:01:29]OFD Sender: No OFD packet to send [07:01:34]OFD Sender: No OFD packet to send [07:01:39]OFD Sender: No OFD packet to send [07:01:45]OFD Sender: No OFD packet to send [07:01:50]OFD Sender: No OFD packet to send [07:01:55]OFD Sender: No OFD packet to send [07:02:00]OFD Sender: No OFD packet to send [07:02:05]OFD Sender: No OFD packet to send [07:02:10]OFD Sender: No OFD packet to send [07:02:15]OFD Sender: No OFD packet to send [07:02:20]OFD Sender: No OFD packet to send [07:02:25]OFD Sender: No OFD packet to send [07:02:30]OFD Sender: No OFD packet to send [07:02:35]OFD Sender: No OFD packet to send [07:02:40]OFD Sender: No OFD packet to send [07:02:45]OFD Sender: No OFD packet to send [07:02:50]OFD Sender: No OFD packet to send [07:02:55]OFD Sender: No OFD packet to send [07:03:00]OFD Sender: No OFD packet to send [07:03:05]OFD Sender: No OFD packet to send [07:03:10]OFD Sender: No OFD packet to send [07:03:15]OFD Sender: No OFD packet to send [07:03:20]OFD Sender: No OFD packet to send [07:03:25]OFD Sender: No OFD packet to send [07:03:30]OFD Sender: No OFD packet to send [07:03:35]OFD Sender: No OFD packet to send [07:03:40]OFD Sender: No OFD packet to send [07:03:45]OFD Sender: No OFD packet to send [07:03:50]OFD Sender: No OFD packet to send [07:03:55]OFD Sender: No OFD packet to send [07:04:00]OFD Sender: No OFD packet to send [07:04:05]OFD Sender: No OFD packet to send [07:04:10]OFD Sender: No OFD packet to send [07:04:15]OFD Sender: No OFD packet to send [07:04:20]OFD Sender: No OFD packet to send [07:04:25]OFD Sender: No OFD packet to send [07:04:30]OFD Sender: No OFD packet to send [07:04:35]OFD Sender: No OFD packet to send [07:04:40]OFD Sender: No OFD packet to send [07:04:45]OFD Sender: No OFD packet to send [07:04:50]OFD Sender: No OFD packet to send [07:04:55]OFD Sender: No OFD packet to send [07:05:00]OFD Sender: No OFD packet to send [07:05:05]OFD Sender: No OFD packet to send [07:05:10]OFD Sender: No OFD packet to send [07:05:15]OFD Sender: No OFD packet to send [07:05:20]OFD Sender: No OFD packet to send [07:05:25]OFD Sender: No OFD packet to send [07:05:30]OFD Sender: No OFD packet to send [07:05:35]OFD Sender: No OFD packet to send [07:05:40]OFD Sender: No OFD packet to send [07:05:45]OFD Sender: No OFD packet to send [07:05:50]OFD Sender: No OFD packet to send [07:05:55]OFD Sender: No OFD packet to send [07:06:00]OFD Sender: No OFD packet to send [07:06:05]OFD Sender: No OFD packet to send [07:06:10]OFD Sender: No OFD packet to send [07:06:15]OFD Sender: No OFD packet to send [07:06:20]OFD Sender: No OFD packet to send [07:06:25]OFD Sender: No OFD packet to send [07:06:30]OFD Sender: No OFD packet to send [07:06:35]OFD Sender: No OFD packet to send [07:06:40]OFD Sender: No OFD packet to send [07:06:45]OFD Sender: No OFD packet to send [07:06:50]OFD Sender: No OFD packet to send [07:06:55]OFD Sender: No OFD packet to send [07:07:00]OFD Sender: No OFD packet to send [07:07:05]OFD Sender: No OFD packet to send [07:07:10]OFD Sender: No OFD packet to send [07:07:15]OFD Sender: No OFD packet to send [07:07:20]OFD Sender: No OFD packet to send [07:07:25]OFD Sender: No OFD packet to send [07:07:30]OFD Sender: No OFD packet to send [07:07:35]OFD Sender: No OFD packet to send [07:07:40]OFD Sender: No OFD packet to send [07:07:45]OFD Sender: No OFD packet to send [07:07:50]OFD Sender: No OFD packet to send [07:07:55]OFD Sender: No OFD packet to send [07:08:00]OFD Sender: No OFD packet to send [07:08:05]OFD Sender: No OFD packet to send [07:08:10]OFD Sender: No OFD packet to send [07:08:15]OFD Sender: No OFD packet to send [07:08:20]OFD Sender: No OFD packet to send [07:08:25]OFD Sender: No OFD packet to send [07:08:30]OFD Sender: No OFD packet to send [07:08:35]OFD Sender: No OFD packet to send [07:08:40]OFD Sender: No OFD packet to send [07:08:45]OFD Sender: No OFD packet to send [07:08:50]OFD Sender: No OFD packet to send [07:08:55]OFD Sender: No OFD packet to send [07:09:00]OFD Sender: No OFD packet to send [07:09:05]OFD Sender: No OFD packet to send [07:09:10]OFD Sender: No OFD packet to send [07:09:15]OFD Sender: No OFD packet to send [07:09:20]OFD Sender: No OFD packet to send [07:09:25]OFD Sender: No OFD packet to send [07:09:30]OFD Sender: No OFD packet to send [07:09:35]OFD Sender: No OFD packet to send [07:09:40]OFD Sender: No OFD packet to send [07:09:45]OFD Sender: No OFD packet to send [07:09:50]OFD Sender: No OFD packet to send [07:09:55]OFD Sender: No OFD packet to send [07:10:00]OFD Sender: No OFD packet to send [07:10:05]OFD Sender: No OFD packet to send [07:10:10]OFD Sender: No OFD packet to send [07:10:15]OFD Sender: No OFD packet to send [07:10:20]OFD Sender: No OFD packet to send [07:10:25]OFD Sender: No OFD packet to send [07:10:30]OFD Sender: No OFD packet to send [07:10:35]OFD Sender: No OFD packet to send [07:10:40]OFD Sender: No OFD packet to send [07:10:45]OFD Sender: No OFD packet to send [07:10:50]OFD Sender: No OFD packet to send [07:10:55]OFD Sender: No OFD packet to send [07:11:00]OFD Sender: No OFD packet to send [07:11:05]OFD Sender: No OFD packet to send [07:11:10]OFD Sender: No OFD packet to send [07:11:15]OFD Sender: No OFD packet to send [07:11:20]OFD Sender: No OFD packet to send [07:11:25]OFD Sender: No OFD packet to send [07:11:30]OFD Sender: No OFD packet to send [07:11:35]OFD Sender: No OFD packet to send [07:11:40]OFD Sender: No OFD packet to send [07:11:45]OFD Sender: No OFD packet to send [07:11:50]OFD Sender: No OFD packet to send [07:11:55]OFD Sender: No OFD packet to send [07:12:00]OFD Sender: No OFD packet to send [07:12:05]OFD Sender: No OFD packet to send [07:12:10]OFD Sender: No OFD packet to send [07:12:15]OFD Sender: No OFD packet to send [07:12:20]OFD Sender: No OFD packet to send [07:12:25]OFD Sender: No OFD packet to send [07:12:30]OFD Sender: No OFD packet to send [07:12:35]OFD Sender: No OFD packet to send [07:12:40]OFD Sender: No OFD packet to send [07:12:40]accept exits with 8 [07:12:40]New connection [07:12:40]New thread 3067260260 created [07:12:40]Thread 3067116900 joined [07:12:40]Waiting for new connection... [07:12:40] Sock 8.Parse request [07:12:40]Sock 8.Check first char [07:12:40]Sock 8.First char is OK [07:12:40]request: POST /json_proto HTTP/1.0 [07:12:40]Method: POST [07:12:40]URL: /json_proto [07:12:40]Method is POST - this is cgi request [07:12:40]url: /json_proto [07:12:40]query_string will be loaded in cgi processing [07:12:40]execute_cgi json_proto POST (null) [07:12:40]execute_cgi path=json_proto method=POST [07:12:40]POST find Content-Length [07:12:40]Host: 172.17.50.3:8080 [07:12:40]Content-Length: 675 [07:12:40]Content-Type: application/json [07:12:40] [07:12:40]POST finish read [07:12:40]Found Content-Length = 675 [07:12:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:12:40]execute_script... [07:12:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:12:40]POST & json_proto [07:12:40]process_json_proto [07:12:40]json parsed OK: [07:12:40]protocol is kg_v1.0 [07:12:40]action value=close_receipt [07:12:40]process_action close_receipt [07:12:40]cmd_close_receipt [07:12:40]MH_GetDate [07:12:40]Write to MH i2c: F0 00 00 F7 AC 92 [07:12:40]Write i2c OK [07:12:40]MH_I2C_Read... [07:12:40]Read from MH i2c: F0 [07:12:40]MH_I2C_Read... [07:12:40]Read from MH i2c: F0 09 00 [07:12:40]MH_I2C_Read... [07:12:40]Read from MH i2c: F0 09 00 F7 AC 00 71 AD 14 67 6B 98 1E 66 BB [07:12:40]GetLastDocTimeStamp 1729404764 [07:12:40]current date 1729408369 [07:12:40]FM_GetShiftState [07:12:40]SAM_PROTO_GetShiftState [07:12:40]wFMCommunicate request_size=4 [07:12:40]MH_SAM_APDU [07:12:40]CAPDU: 80 13 01 00 [07:12:40]Write to MH i2c: E2 08 00 F8 AC 80 13 01 00 00 00 00 00 21 [07:12:40]Write i2c OK [07:12:40]MH_I2C_Read... [07:12:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:12:40]Read from MH i2c: E2 [07:12:40]MH_I2C_Read... [07:12:40]Read from MH i2c: E2 0E 00 [07:12:40]MH_I2C_Read... [07:12:40]Read from MH i2c: E2 0E 00 F8 AC 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 27 [07:12:40]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [07:12:40]wFMCommunicate OK [07:12:40]SAM_PROTO_GetShiftState done [07:12:40]FM_GetShiftState done [07:12:40]opened in 1729383220 [07:12:40]opened+sec_in_day 1729469620 [07:12:40]quantity*price = 70027 [07:12:40]sum+1 = 70029 [07:12:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 28 20.10.2024 07:12 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69183 ФПД: 95785810397800 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T071249&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69183&fm=95785810397800&tin=02508201610067®Number=0000000000156251&sum=70000 [07:12:41]StoreToDocumentArchive [07:12:41]shift 193 fd 69183 [07:12:41]save to /storage/0193/doc_00069183 [07:12:41]save last doc name /storage/0193/doc_00069183 to /storage/kkm_last_doc_name [07:12:41]save OK [07:12:41]Clear old archive folders... [07:12:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:12:41]tlvbuf is 007FACC0 [07:12:41]SAM_PROTO_ClearQueue [07:12:41]wFMCommunicate request_size=4 [07:12:41]MH_SAM_APDU [07:12:41]CAPDU: 80 09 00 00 [07:12:41]Write to MH i2c: E2 08 00 05 AD 80 09 00 00 00 00 00 00 24 [07:12:41]Write i2c OK [07:12:41]MH_I2C_Read... [07:12:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:12:41]Read from MH i2c: E2 [07:12:41]MH_I2C_Read... [07:12:41]Read from MH i2c: E2 03 00 [07:12:41]MH_I2C_Read... [07:12:41]Read from MH i2c: E2 03 00 05 AD 00 90 00 26 [07:12:41]RAPDU: 90 00 [07:12:41]wFMCommunicate OK [07:12:41]SAM_PROTO_ClearQueue done [07:12:41]KKMCreateOFDPacket [07:12:41]OFDProtocolAddRootSTLVToBuf [07:12:41]FM_MakeSignedData [07:12:41]FM_MakeSignedData [07:12:41]SAM_PROTO_SignData [07:12:41]wFMCommunicate request_size=4 [07:12:41]MH_SAM_APDU [07:12:41]CAPDU: 80 0D 01 02 [07:12:41]Write to MH i2c: E2 08 00 06 AD 80 0D 01 02 00 00 00 00 2C [07:12:41]Write i2c OK [07:12:41]MH_I2C_Read... [07:12:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:12:41]Read from MH i2c: E2 [07:12:41]MH_I2C_Read... [07:12:41]Read from MH i2c: E2 03 00 [07:12:41]MH_I2C_Read... [07:12:41]Read from MH i2c: E2 03 00 06 AD 00 90 00 27 [07:12:41]RAPDU: 90 00 [07:12:41]wFMCommunicate OK [07:12:41]wFMCommunicate request_size=255 [07:12:41]MH_SAM_APDU [07:12:41]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 71 AD 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3F 0E 01 00 35 04 06 00 57 1D DF 34 [07:12:41]Write to MH i2c: E2 02 01 07 AD 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 71 AD 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3F 0E 01 00 35 04 06 00 57 1D DF 34 00 00 F2 [07:12:41]Write i2c OK [07:12:41]MH_I2C_Read... [07:12:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:12:42]Read from MH i2c: E2 [07:12:42]MH_I2C_Read... [07:12:42]Read from MH i2c: E2 03 00 [07:12:42]MH_I2C_Read... [07:12:42]Read from MH i2c: E2 03 00 07 AD 00 90 00 28 [07:12:42]RAPDU: 90 00 [07:12:42]wFMCommunicate OK [07:12:42]wFMCommunicate request_size=7 [07:12:42]MH_SAM_APDU [07:12:42]CAPDU: 80 0D 02 02 02 0A 68 [07:12:42]Write to MH i2c: E2 0A 00 08 AD 80 0D 02 02 02 00 0A 68 00 00 A5 [07:12:42]Write i2c OK [07:12:42]MH_I2C_Read... [07:12:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:12:42]Read from MH i2c: E2 [07:12:42]MH_I2C_Read... [07:12:42]Read from MH i2c: E2 03 00 [07:12:42]MH_I2C_Read... [07:12:42]Read from MH i2c: E2 03 00 08 AD 00 90 00 29 [07:12:42]RAPDU: 90 00 [07:12:42]wFMCommunicate OK [07:12:42]wFMCommunicate request_size=4 [07:12:42]MH_SAM_APDU [07:12:42]CAPDU: 80 0D 03 02 [07:12:42]Write to MH i2c: E2 08 00 09 AD 80 0D 03 02 00 00 00 00 31 [07:12:42]Write i2c OK [07:12:42]MH_I2C_Read... [07:12:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:12:42]Read from MH i2c: E2 [07:12:42]MH_I2C_Read... [07:12:42]Read from MH i2c: E2 0B 00 [07:12:42]MH_I2C_Read... [07:12:42]Read from MH i2c: E2 0B 00 09 AD 00 D3 5D 8A 4E D8 D7 2F 50 90 00 68 [07:12:42]RAPDU: D3 5D 8A 4E D8 D7 2F 50 90 00 [07:12:42]wFMCommunicate OK [07:12:42]SAM_PROTO_SignData done [07:12:42]FM_MakeSignedData done [07:12:42]CreateOFDProtocolMessage [07:12:42]wFMCommunicate request_size=4 [07:12:42]MH_SAM_APDU [07:12:42]CAPDU: 80 11 00 00 [07:12:42]Write to MH i2c: E2 08 00 0A AD 80 11 00 00 00 00 00 00 31 [07:12:42]Write i2c OK [07:12:42]MH_I2C_Read... [07:12:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:12:42]Read from MH i2c: E2 [07:12:42]MH_I2C_Read... [07:12:42]Read from MH i2c: E2 17 00 [07:12:42]MH_I2C_Read... [07:12:42]Read from MH i2c: E2 17 00 0A AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 83 [07:12:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:12:42]wFMCommunicate OK [07:12:42]CreateOFDProtocolMessage done [07:12:42]OFDSenderStorePacket 69183 [07:12:42]StoreOFDPacket docnum=69183 [07:12:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 9B A6 04 01 0B 42 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 71 AD 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3F 0E 01 00 35 04 06 00 57 1D DF 34 0A 68 D3 5D 8A 4E D8 D7 2F 50 [07:12:42]CheckFolder [07:12:42]dirname=/storage/ofd_packets [07:12:42]CheckFolder done [07:12:42]ProducePacketName [07:12:42]name=ofd_packets/00069183 [07:12:42]NVStorageSaveData ofd_packets/00069183 [07:12:42]File name is /storage/ofd_packets/00069183 [07:12:42]Write 298 bytes [07:12:42]NVStorageSaveData done [07:12:42]OFDSenderStorePacket done [07:12:42]KKMCreateOFDPacket done [07:12:42]NVStorageSaveData kkm_last_timestamp [07:12:42]File name is /storage/kkm_last_timestamp [07:12:42]Write 4 bytes [07:12:42]NVStorageSaveData done [07:12:42]ExternCall_PrintAddStr [07:12:42]wPrintStart [07:12:42]Write to MH i2c: 01 00 00 0B AD B8 [07:12:42]Write i2c OK [07:12:42]MH_I2C_Read... [07:12:42]Read from MH i2c: 01 [07:12:42]MH_I2C_Read... [07:12:42]Read from MH i2c: 01 07 00 [07:12:42]MH_I2C_Read... [07:12:42]Read from MH i2c: 01 07 00 0B AD 00 00 00 00 00 FF 0F CD [07:12:42]RasterBufferAndPrint [07:12:42]line Счет N : (1)2884896 [07:12:42]line ИНН: 02508201610067 [07:12:42]line Контрольно-Кассовый Чек [07:12:42]line ПРОДАЖА [07:12:42]line ТРК (МРК, ГНК) : 51 [07:12:42]line Товар: 2710194210 [07:12:42]line ДТ-К-5 [07:12:42]line 9.190 * 76.20 [07:12:42]line = 700.28 [07:12:42]line НДС 12% НСП 1% [07:12:42]line > о реализуемом товаре [07:12:42]line ОКРУГЛЕНИЕ: -0.28 [07:12:42]line ИТОГО: 700.00 [07:12:42]line Внесено: 700.00 [07:12:42]line СДАЧА: 0.00 [07:12:42]line НСП 1% : 6.20 [07:12:42]line НДС 12% : 74.37 [07:12:42]line Наличными: 700.00 [07:12:42]line Безнал.: 0.00 [07:12:42]line Место: АЗС № 85 "Партнер Нефть" [07:12:42]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [07:12:42]line СНО: Общий режим [07:12:42]line Чек 28 20.10.2024 07:12 [07:12:42]line Смена: 193 ФФД: 1.0 [07:12:42]line ЗНМ: 0300000167 [07:12:42]line РНМ: 0000000000156251 [07:12:42]line Версия ККМ: v1.0 [07:12:42]line ФМ: 0000000000963346 [07:12:42]line ФД: 69183 [07:12:42]line ФПД: 95785810397800 [07:12:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T071249&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69183&fm=95785810397800&tin=02508201610067®Number=0000000000156251&sum=70000 [07:12:42]OFD Sender: Processing packet 69183 [packets to send 18, broken 17] [07:12:42]ProducePacketName [07:12:42]name=ofd_packets/00069183 [07:12:42]OFD Sender: To server: pG, [07:12:42]CommunicateWithHost lk.salyk.kg:30040 [07:12:42]ConnectInit lk.salyk.kg [07:12:42]written 0, free lines is 4095 [07:12:42]Connected sock=10 [07:12:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 9B A6 04 01 0B 42 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 71 AD 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3F 0E 01 00 35 04 06 00 57 1D DF 34 0A 68 D3 5D 8A 4E D8 D7 2F 50 [07:12:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 1F 84 47 00 CD 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3F 0E 01 00 F4 03 04 00 19 57 14 67 B6 04 01 00 00 1C 31 D9 56 0D 45 D3 0D [07:12:42]CommunicateWithHost err = 0 [07:12:42]CheckOFDResponse [07:12:42]1017 (14) - 77093643461234 [07:12:42]1041 (16) - 0000000000963346 [07:12:42]1040 (4) - 69183 [07:12:42]1012 (4) - 20.10.2024 01:04 [07:12:42]1206 (1) - 0 [07:12:42]OFD Sender: Remove packet 69183 [07:12:42]ProducePacketName [07:12:42]name=ofd_packets/00069183 [07:12:42]NVStorageDeleteData [07:12:43]Write to MH i2c: 01 00 00 36 AD E3 [07:12:43]Write i2c OK [07:12:43]MH_I2C_Read... [07:12:43]Read from MH i2c: 01 [07:12:43]MH_I2C_Read... [07:12:43]Read from MH i2c: 01 07 00 [07:12:43]MH_I2C_Read... [07:12:43]Read from MH i2c: 01 07 00 36 AD 00 00 00 00 00 EF 0C E5 [07:12:43]RasterBufferAndPrint [07:12:43]line [07:12:43]line [07:12:43]line [07:12:43]line [07:12:43]line [07:12:43]written 0, free lines is 3317 [07:12:43]MH_Cut [07:12:43]Write to MH i2c: D1 01 00 3D AD 01 BC [07:12:43]Write i2c OK [07:12:43]MH_I2C_Read... [07:12:43]Read from MH i2c: D1 [07:12:43]MH_I2C_Read... [07:12:43]Read from MH i2c: D1 01 00 [07:12:43]MH_I2C_Read... [07:12:43]Read from MH i2c: D1 01 00 3D AD 00 BB [07:12:43]Write to MH i2c: 01 00 00 3E AD EB [07:12:43]Write i2c OK [07:12:43]MH_I2C_Read... [07:12:43]OFD Sender: No OFD packet to send [07:12:43]*** Cut start [07:12:43]*** Partial cut [07:12:43]*** CUTSNS_PIN = 1 [07:12:43]*** CUTSNS_PIN = 0 [07:12:44]*** Brake cut motor [07:12:44]Read from MH i2c: 01 [07:12:44]MH_I2C_Read... [07:12:44]*** Stop cut motor [07:12:44]*** Cut end [07:12:44]Read from MH i2c: 01 07 00 [07:12:44]MH_I2C_Read... [07:12:44]Read from MH i2c: 01 07 00 3E AD 00 00 00 00 00 FF 0F 00 [07:12:44]process_action close_receipt done [07:12:44]requested_data is exist [07:12:44]produce_requested_data [07:12:44]requested_item fm.sn is exist - process it [07:12:44]wFMCommunicate request_size=4 [07:12:44]MH_SAM_APDU [07:12:44]CAPDU: 80 11 00 00 [07:12:44]Write to MH i2c: E2 08 00 3F AD 80 11 00 00 00 00 00 00 66 [07:12:44]Write i2c OK [07:12:44]MH_I2C_Read... [07:12:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:12:44]Read from MH i2c: E2 [07:12:44]MH_I2C_Read... [07:12:44]Read from MH i2c: E2 17 00 [07:12:44]MH_I2C_Read... [07:12:44]Read from MH i2c: E2 17 00 3F AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B8 [07:12:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:12:44]wFMCommunicate OK [07:12:44]requested_item fd.num is exist - process it [07:12:44]SAM_PROTO_GetFieldsCounters [07:12:44]wFMCommunicate request_size=4 [07:12:44]MH_SAM_APDU [07:12:44]CAPDU: 80 13 00 00 [07:12:44]Write to MH i2c: E2 08 00 40 AD 80 13 00 00 00 00 00 00 69 [07:12:44]Write i2c OK [07:12:44]MH_I2C_Read... [07:12:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:12:44]Read from MH i2c: E2 [07:12:44]MH_I2C_Read... [07:12:44]Read from MH i2c: E2 62 00 [07:12:44]MH_I2C_Read... [07:12:44]Read from MH i2c: E2 62 00 40 AD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3F 0E 01 00 0E 04 04 00 C1 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 E7 [07:12:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3F 0E 01 00 0E 04 04 00 C1 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 [07:12:44]wFMCommunicate OK [07:12:44]SAM_PROTO_GetFieldsCounters done [07:12:44]requested_item shift.num is exist - process it [07:12:44]requested_item shift.opened is exist - process it [07:12:44]req_shift_opened [07:12:44]FM_GetShiftState [07:12:44]SAM_PROTO_GetShiftState [07:12:44]wFMCommunicate request_size=4 [07:12:44]MH_SAM_APDU [07:12:44]CAPDU: 80 13 01 00 [07:12:44]Write to MH i2c: E2 08 00 41 AD 80 13 01 00 00 00 00 00 6B [07:12:44]Write i2c OK [07:12:44]MH_I2C_Read... [07:12:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:12:44]Read from MH i2c: E2 [07:12:44]MH_I2C_Read... [07:12:44]Read from MH i2c: E2 0E 00 [07:12:44]MH_I2C_Read... [07:12:44]Read from MH i2c: E2 0E 00 41 AD 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 71 [07:12:44]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [07:12:44]wFMCommunicate OK [07:12:44]SAM_PROTO_GetShiftState done [07:12:44]FM_GetShiftState done [07:12:44]req_shift_opened done [07:12:44]requested_item shift.open_date is exist - process it [07:12:44]req_shift_open_date [07:12:44]req_shift_open_date done [07:12:44]produce_requested_data done [07:12:44]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69183,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [07:12:44]process_action_free close_receipt [07:12:44]json_value_free [07:12:44]json_value_free done [07:12:44]process_json_proto returns [07:12:44]Send response to host [07:12:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69183,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [07:12:44]free response buf [07:12:44]execute_script done [07:12:44]execute_script returns [07:12:44]free content buf [07:12:44]Sock 8.Close socket [07:12:44]Sock 8.Thread stoped [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:15]accept exits with 9 [07:13:15]New connection [07:13:15]New thread 3067116900 created [07:13:15]Thread 3067260260 joined [07:13:15]Waiting for new connection... [07:13:15] Sock 9.Parse request [07:13:15]Sock 9.Check first char [07:13:15]Sock 9.First char is OK [07:13:15]request: POST /json_proto HTTP/1.0 [07:13:15]Method: POST [07:13:15]URL: /json_proto [07:13:15]Method is POST - this is cgi request [07:13:15]url: /json_proto [07:13:15]query_string will be loaded in cgi processing [07:13:15]execute_cgi json_proto POST (null) [07:13:15]execute_cgi path=json_proto method=POST [07:13:15]POST find Content-Length [07:13:15]Host: 172.17.50.3:8080 [07:13:15]Content-Length: 767 [07:13:15]Content-Type: application/json [07:13:15] [07:13:15]POST finish read [07:13:15]Found Content-Length = 767 [07:13:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884897", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:13:15]execute_script... [07:13: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)2884897", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:13:15]POST & json_proto [07:13:15]process_json_proto [07:13:15]json parsed OK: [07:13:15]protocol is kg_v1.0 [07:13:15]action value=close_receipt [07:13:15]process_action close_receipt [07:13:15]cmd_close_receipt [07:13:15]MH_GetDate [07:13:15]Write to MH i2c: F0 00 00 42 AD DE [07:13:15]Write i2c OK [07:13:15]MH_I2C_Read... [07:13:15]Read from MH i2c: F0 [07:13:15]MH_I2C_Read... [07:13:15]Read from MH i2c: F0 09 00 [07:13:15]MH_I2C_Read... [07:13:15]Read from MH i2c: F0 09 00 42 AD 00 94 AD 14 67 6B 98 1E 66 2A [07:13:15]GetLastDocTimeStamp 1729408369 [07:13:15]current date 1729408404 [07:13:15]FM_GetShiftState [07:13:15]SAM_PROTO_GetShiftState [07:13:15]wFMCommunicate request_size=4 [07:13:15]MH_SAM_APDU [07:13:15]CAPDU: 80 13 01 00 [07:13:15]Write to MH i2c: E2 08 00 43 AD 80 13 01 00 00 00 00 00 6D [07:13:15]Write i2c OK [07:13:15]MH_I2C_Read... [07:13:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:13:15]Read from MH i2c: E2 [07:13:15]MH_I2C_Read... [07:13:15]Read from MH i2c: E2 0E 00 [07:13:15]MH_I2C_Read... [07:13:15]Read from MH i2c: E2 0E 00 43 AD 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 73 [07:13:15]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [07:13:15]wFMCommunicate OK [07:13:15]SAM_PROTO_GetShiftState done [07:13:15]FM_GetShiftState done [07:13:15]opened in 1729383220 [07:13:15]opened+sec_in_day 1729469620 [07:13:15]quantity*price = 50041 [07:13:15]sum+1 = 50042 [07:13:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 29 20.10.2024 07:13 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69184 ФПД: 112217956279882 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T071324&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69184&fm=112217956279882&tin=02508201610067®Number=0000000000156251&sum=50041 [07:13:16]StoreToDocumentArchive [07:13:16]shift 193 fd 69184 [07:13:16]save to /storage/0193/doc_00069184 [07:13:16]save last doc name /storage/0193/doc_00069184 to /storage/kkm_last_doc_name [07:13:16]save OK [07:13:16]Clear old archive folders... [07:13:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:13:16]tlvbuf is 00809E00 [07:13:16]SAM_PROTO_ClearQueue [07:13:16]wFMCommunicate request_size=4 [07:13:16]MH_SAM_APDU [07:13:16]CAPDU: 80 09 00 00 [07:13:16]Write to MH i2c: E2 08 00 50 AD 80 09 00 00 00 00 00 00 6F [07:13:16]Write i2c OK [07:13:16]MH_I2C_Read... [07:13:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:13:16]Read from MH i2c: E2 [07:13:16]MH_I2C_Read... [07:13:16]Read from MH i2c: E2 03 00 [07:13:16]MH_I2C_Read... [07:13:16]Read from MH i2c: E2 03 00 50 AD 00 90 00 71 [07:13:16]RAPDU: 90 00 [07:13:16]wFMCommunicate OK [07:13:16]SAM_PROTO_ClearQueue done [07:13:16]KKMCreateOFDPacket [07:13:16]OFDProtocolAddRootSTLVToBuf [07:13:16]FM_MakeSignedData [07:13:16]FM_MakeSignedData [07:13:16]SAM_PROTO_SignData [07:13:16]wFMCommunicate request_size=4 [07:13:16]MH_SAM_APDU [07:13:16]CAPDU: 80 0D 01 02 [07:13:16]Write to MH i2c: E2 08 00 51 AD 80 0D 01 02 00 00 00 00 77 [07:13:16]Write i2c OK [07:13:16]MH_I2C_Read... [07:13:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:13:16]Read from MH i2c: E2 [07:13:16]MH_I2C_Read... [07:13:16]Read from MH i2c: E2 03 00 [07:13:16]MH_I2C_Read... [07:13:16]Read from MH i2c: E2 03 00 51 AD 00 90 00 72 [07:13:16]RAPDU: 90 00 [07:13:16]wFMCommunicate OK [07:13:16]wFMCommunicate request_size=255 [07:13:16]MH_SAM_APDU [07:13:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 94 AD 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 40 0E 01 00 35 04 06 00 66 [07:13:16]Write to MH i2c: E2 02 01 52 AD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 94 AD 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 40 0E 01 00 35 04 06 00 66 00 00 A1 [07:13:16]Write i2c OK [07:13:16]MH_I2C_Read... [07:13:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:13:17]Read from MH i2c: E2 [07:13:17]MH_I2C_Read... [07:13:17]Read from MH i2c: E2 03 00 [07:13:17]MH_I2C_Read... [07:13:17]Read from MH i2c: E2 03 00 52 AD 00 90 00 73 [07:13:17]RAPDU: 90 00 [07:13:17]wFMCommunicate OK [07:13:17]wFMCommunicate request_size=10 [07:13:17]MH_SAM_APDU [07:13:17]CAPDU: 80 0D 02 02 05 0F C7 6B E6 4A [07:13:17]Write to MH i2c: E2 0D 00 53 AD 80 0D 02 02 05 00 0F C7 6B E6 4A 00 00 F5 [07:13:17]Write i2c OK [07:13:17]MH_I2C_Read... [07:13:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:13:17]Read from MH i2c: E2 [07:13:17]MH_I2C_Read... [07:13:17]Read from MH i2c: E2 03 00 [07:13:17]MH_I2C_Read... [07:13:17]Read from MH i2c: E2 03 00 53 AD 00 90 00 74 [07:13:17]RAPDU: 90 00 [07:13:17]wFMCommunicate OK [07:13:17]wFMCommunicate request_size=4 [07:13:17]MH_SAM_APDU [07:13:17]CAPDU: 80 0D 03 02 [07:13:17]Write to MH i2c: E2 08 00 54 AD 80 0D 03 02 00 00 00 00 7C [07:13:17]Write i2c OK [07:13:17]MH_I2C_Read... [07:13:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:13:17]Read from MH i2c: E2 [07:13:17]MH_I2C_Read... [07:13:17]Read from MH i2c: E2 0B 00 [07:13:17]MH_I2C_Read... [07:13:17]Read from MH i2c: E2 0B 00 54 AD 00 7D 09 10 A9 7B 43 6A F3 90 00 D7 [07:13:17]RAPDU: 7D 09 10 A9 7B 43 6A F3 90 00 [07:13:17]wFMCommunicate OK [07:13:17]SAM_PROTO_SignData done [07:13:17]FM_MakeSignedData done [07:13:17]CreateOFDProtocolMessage [07:13:17]wFMCommunicate request_size=4 [07:13:17]MH_SAM_APDU [07:13:17]CAPDU: 80 11 00 00 [07:13:17]Write to MH i2c: E2 08 00 55 AD 80 11 00 00 00 00 00 00 7C [07:13:17]Write i2c OK [07:13:17]MH_I2C_Read... [07:13:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:13:17]Read from MH i2c: E2 [07:13:17]MH_I2C_Read... [07:13:17]Read from MH i2c: E2 17 00 [07:13:17]MH_I2C_Read... [07:13:17]Read from MH i2c: E2 17 00 55 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CE [07:13:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:13:17]wFMCommunicate OK [07:13:17]CreateOFDProtocolMessage done [07:13:17]OFDSenderStorePacket 69184 [07:13:17]StoreOFDPacket docnum=69184 [07:13:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 50 9B 07 01 43 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 94 AD 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 40 0E 01 00 35 04 06 00 66 0F C7 6B E6 4A 7D 09 10 A9 7B 43 6A F3 [07:13:17]CheckFolder [07:13:17]dirname=/storage/ofd_packets [07:13:17]CheckFolder done [07:13:17]ProducePacketName [07:13:17]name=ofd_packets/00069184 [07:13:17]NVStorageSaveData ofd_packets/00069184 [07:13:17]File name is /storage/ofd_packets/00069184 [07:13:17]Write 301 bytes [07:13:17]NVStorageSaveData done [07:13:17]OFDSenderStorePacket done [07:13:17]KKMCreateOFDPacket done [07:13:17]NVStorageSaveData kkm_last_timestamp [07:13:17]File name is /storage/kkm_last_timestamp [07:13:17]Write 4 bytes [07:13:17]NVStorageSaveData done [07:13:17]ExternCall_PrintAddStr [07:13:17]wPrintStart [07:13:17]Write to MH i2c: 01 00 00 56 AD 03 [07:13:17]Write i2c OK [07:13:17]MH_I2C_Read... [07:13:17]Read from MH i2c: 01 [07:13:17]MH_I2C_Read... [07:13:17]Read from MH i2c: 01 07 00 [07:13:17]MH_I2C_Read... [07:13:17]Read from MH i2c: 01 07 00 56 AD 00 00 00 00 00 FF 0F 18 [07:13:17]RasterBufferAndPrint [07:13:17]line Счет N : (1)2884897 [07:13:17]line ИНН: 02508201610067 [07:13:17]line Контрольно-Кассовый Чек [07:13:17]line ПРОДАЖА [07:13:17]line ТРК (МРК, ГНК) : 32 [07:13:17]line Товар: 2710124130 [07:13:17]line Аи-92-К-5 [07:13:17]line 7.480 * 66.90 [07:13:17]line = 500.41 [07:13:17]line НДС 12% НСП 1% [07:13:17]line > о реализуемом товаре [07:13:17]line ИТОГО: 500.41 [07:13:17]line НСП 1% : 4.43 [07:13:17]line НДС 12% : 53.14 [07:13:17]line Наличными: 0.00 [07:13:17]line Безнал.: 500.41 [07:13:17]line Место: АЗС № 85 "Партнер Нефть" [07:13:17]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [07:13:17]line СНО: Общий режим [07:13:17]line Чек 29 20.10.2024 07:13 [07:13:17]line Смена: 193 ФФД: 1.0 [07:13:17]line ЗНМ: 0300000167 [07:13:17]line РНМ: 0000000000156251 [07:13:17]line Версия ККМ: v1.0 [07:13:17]line Платежная система: Mbank [07:13:17]line ФМ: 0000000000963346 [07:13:17]line ФД: 69184 [07:13:17]line ФПД: 112217956279882 [07:13:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T071324&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69184&fm=112217956279882&tin=02508201610067®Number=0000000000156251&sum=50041 [07:13:17]OFD Sender: Processing packet 69184 [packets to send 18, broken 17] [07:13:17]ProducePacketName [07:13:17]name=ofd_packets/00069184 [07:13:17]OFD Sender: To server: pG, [07:13:17]CommunicateWithHost lk.salyk.kg:30040 [07:13:17]ConnectInit lk.salyk.kg [07:13:17]written 0, free lines is 4095 [07:13:17]Connected sock=11 [07:13:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 50 9B 07 01 43 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 94 AD 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 40 0E 01 00 35 04 06 00 66 0F C7 6B E6 4A 7D 09 10 A9 7B 43 6A F3 [07:13:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 8A 81 47 00 C0 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 40 0E 01 00 F4 03 04 00 3C 57 14 67 B6 04 01 00 00 2C AB 30 75 DA A3 C6 0E [07:13:18]CommunicateWithHost err = 0 [07:13:18]CheckOFDResponse [07:13:18]1017 (14) - 77093643461234 [07:13:18]1041 (16) - 0000000000963346 [07:13:18]1040 (4) - 69184 [07:13:18]1012 (4) - 20.10.2024 01:05 [07:13:18]1206 (1) - 0 [07:13:18]OFD Sender: Remove packet 69184 [07:13:18]ProducePacketName [07:13:18]name=ofd_packets/00069184 [07:13:18]NVStorageDeleteData [07:13:18]Write to MH i2c: 01 00 00 7F AD 2C [07:13:18]Write i2c OK [07:13:18]MH_I2C_Read... [07:13:18]Read from MH i2c: 01 [07:13:18]MH_I2C_Read... [07:13:18]Read from MH i2c: 01 07 00 [07:13:18]MH_I2C_Read... [07:13:18]Read from MH i2c: 01 07 00 7F AD 00 00 00 00 00 1D 0D 5D [07:13:18]RasterBufferAndPrint [07:13:18]line [07:13:18]line [07:13:18]line [07:13:18]line [07:13:18]line [07:13:18]written 0, free lines is 3363 [07:13:18]MH_Cut [07:13:18]Write to MH i2c: D1 01 00 86 AD 01 05 [07:13:18]Write i2c OK [07:13:18]MH_I2C_Read... [07:13:18]Read from MH i2c: D1 [07:13:18]MH_I2C_Read... [07:13:18]Read from MH i2c: D1 01 00 [07:13:18]MH_I2C_Read... [07:13:18]Read from MH i2c: D1 01 00 86 AD 00 04 [07:13:18]Write to MH i2c: 01 00 00 87 AD 34 [07:13:18]Write i2c OK [07:13:18]MH_I2C_Read... [07:13:18]OFD Sender: No OFD packet to send [07:13:18]*** Cut start [07:13:18]*** Partial cut [07:13:18]*** CUTSNS_PIN = 1 [07:13:18]*** CUTSNS_PIN = 0 [07:13:19]*** Brake cut motor [07:13:19]Read from MH i2c: 01 [07:13:19]MH_I2C_Read... [07:13:19]*** Stop cut motor [07:13:19]*** Cut end [07:13:19]Read from MH i2c: 01 07 00 [07:13:19]MH_I2C_Read... [07:13:19]Read from MH i2c: 01 07 00 87 AD 00 00 00 00 00 FF 0F 49 [07:13:19]process_action close_receipt done [07:13:19]requested_data is exist [07:13:19]produce_requested_data [07:13:19]requested_item fm.sn is exist - process it [07:13:19]wFMCommunicate request_size=4 [07:13:19]MH_SAM_APDU [07:13:19]CAPDU: 80 11 00 00 [07:13:19]Write to MH i2c: E2 08 00 88 AD 80 11 00 00 00 00 00 00 AF [07:13:19]Write i2c OK [07:13:19]MH_I2C_Read... [07:13:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:13:19]Read from MH i2c: E2 [07:13:19]MH_I2C_Read... [07:13:19]Read from MH i2c: E2 17 00 [07:13:19]MH_I2C_Read... [07:13:19]Read from MH i2c: E2 17 00 88 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 01 [07:13:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:13:19]wFMCommunicate OK [07:13:19]requested_item fd.num is exist - process it [07:13:19]SAM_PROTO_GetFieldsCounters [07:13:19]wFMCommunicate request_size=4 [07:13:19]MH_SAM_APDU [07:13:19]CAPDU: 80 13 00 00 [07:13:19]Write to MH i2c: E2 08 00 89 AD 80 13 00 00 00 00 00 00 B2 [07:13:19]Write i2c OK [07:13:19]MH_I2C_Read... [07:13:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:13:19]Read from MH i2c: E2 [07:13:19]MH_I2C_Read... [07:13:19]Read from MH i2c: E2 62 00 [07:13:19]MH_I2C_Read... [07:13:19]Read from MH i2c: E2 62 00 89 AD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 40 0E 01 00 0E 04 04 00 C1 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 34 [07:13:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 40 0E 01 00 0E 04 04 00 C1 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 [07:13:19]wFMCommunicate OK [07:13:19]SAM_PROTO_GetFieldsCounters done [07:13:19]requested_item shift.num is exist - process it [07:13:19]requested_item shift.opened is exist - process it [07:13:19]req_shift_opened [07:13:19]FM_GetShiftState [07:13:19]SAM_PROTO_GetShiftState [07:13:19]wFMCommunicate request_size=4 [07:13:19]MH_SAM_APDU [07:13:19]CAPDU: 80 13 01 00 [07:13:19]Write to MH i2c: E2 08 00 8A AD 80 13 01 00 00 00 00 00 B4 [07:13:19]Write i2c OK [07:13:19]MH_I2C_Read... [07:13:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:13:19]Read from MH i2c: E2 [07:13:19]MH_I2C_Read... [07:13:19]Read from MH i2c: E2 0E 00 [07:13:19]MH_I2C_Read... [07:13:19]Read from MH i2c: E2 0E 00 8A AD 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 BA [07:13:19]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [07:13:19]wFMCommunicate OK [07:13:19]SAM_PROTO_GetShiftState done [07:13:19]FM_GetShiftState done [07:13:19]req_shift_opened done [07:13:19]requested_item shift.open_date is exist - process it [07:13:19]req_shift_open_date [07:13:19]req_shift_open_date done [07:13:19]produce_requested_data done [07:13:19]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69184,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [07:13:19]process_action_free close_receipt [07:13:19]json_value_free [07:13:19]json_value_free done [07:13:19]process_json_proto returns [07:13:19]Send response to host [07:13:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69184,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [07:13:19]free response buf [07:13:19]execute_script done [07:13:19]execute_script returns [07:13:19]free content buf [07:13:19]Sock 9.Close socket [07:13:19]Sock 9.Thread stoped [07:13:20]int [07:13:20]Write to MH i2c: 01 00 00 8B AD 38 [07:13:20]*** FLAG_PRN_PAP1 set [07:13:20]Write i2c OK [07:13:20]MH_I2C_Read... [07:13:20]Read from MH i2c: 01 [07:13:20]MH_I2C_Read... [07:13:20]Read from MH i2c: 01 07 00 [07:13:20]MH_I2C_Read... [07:13:20]Read from MH i2c: 01 07 00 8B AD 00 01 00 00 00 FF 0F 4E [07:13:20]state=0 [07:13:20]No paper [07:13:21]int [07:13:21]Write to MH i2c: 01 00 00 8C AD 39 [07:13:21]*** FLAG_PRN_PAP2 set [07:13:21]Write i2c OK [07:13:21]MH_I2C_Read... [07:13:21]Read from MH i2c: 01 [07:13:21]MH_I2C_Read... [07:13:21]Read from MH i2c: 01 07 00 [07:13:21]MH_I2C_Read... [07:13:21]Read from MH i2c: 01 07 00 8C AD 00 03 00 00 00 FF 0F 51 [07:13:21]state=0 [07:13:21]No paper [07:13:21]Cover opened [07:13:21]int [07:13:21]Write to MH i2c: 01 00 00 8D AD 3A [07:13:21]*** FLAG_PRN_PAP2 reset [07:13:21]Write i2c OK [07:13:21]MH_I2C_Read... [07:13:21]Read from MH i2c: 01 [07:13:21]MH_I2C_Read... [07:13:21]Read from MH i2c: 01 07 00 [07:13:21]MH_I2C_Read... [07:13:21]Read from MH i2c: 01 07 00 8D AD 00 01 00 00 00 FF 0F 50 [07:13:21]state=3 [07:13:21]No paper [07:13:21]Cover closed [07:13:21]int [07:13:21]Write to MH i2c: 01 00 00 8E AD 3B [07:13:21]*** FLAG_PRN_PAP2 set [07:13:21]Write i2c OK [07:13:21]MH_I2C_Read... [07:13:21]Read from MH i2c: 01 [07:13:21]MH_I2C_Read... [07:13:21]Read from MH i2c: 01 07 00 [07:13:21]MH_I2C_Read... [07:13:21]Read from MH i2c: 01 07 00 8E AD 00 03 00 00 00 FF 0F 53 [07:13:21]state=0 [07:13:21]No paper [07:13:21]Cover opened [07:13:21]int [07:13:21]Write to MH i2c: 01 00 00 8F AD 3C [07:13:21]*** FLAG_PRN_PAP2 reset [07:13:21]Write i2c OK [07:13:21]MH_I2C_Read... [07:13:21]Read from MH i2c: 01 [07:13:21]MH_I2C_Read... [07:13:21]Read from MH i2c: 01 07 00 [07:13:21]MH_I2C_Read... [07:13:21]Read from MH i2c: 01 07 00 8F AD 00 01 00 00 00 FF 0F 52 [07:13:21]state=3 [07:13:21]No paper [07:13:21]Cover closed [07:13:22]int [07:13:22]Write to MH i2c: 01 00 00 90 AD 3D [07:13:22]*** FLAG_PRN_PAP2 set [07:13:22]Write i2c OK [07:13:22]MH_I2C_Read... [07:13:22]Read from MH i2c: 01 [07:13:22]MH_I2C_Read... [07:13:22]Read from MH i2c: 01 07 00 [07:13:22]MH_I2C_Read... [07:13:22]Read from MH i2c: 01 07 00 90 AD 00 03 00 00 00 FF 0F 55 [07:13:22]state=0 [07:13:22]No paper [07:13:22]Cover opened [07:13:23]OFD Sender: No OFD packet to send [07:13:24]int [07:13:24]Write to MH i2c: 01 00 00 91 AD 3E [07:13:24]*** FLAG_PRN_PAP2 reset [07:13:24]Write i2c OK [07:13:24]MH_I2C_Read... [07:13:24]Read from MH i2c: 01 [07:13:24]MH_I2C_Read... [07:13:24]Read from MH i2c: 01 07 00 [07:13:24]MH_I2C_Read... [07:13:24]Read from MH i2c: 01 07 00 91 AD 00 01 00 00 00 FF 0F 54 [07:13:24]state=3 [07:13:24]No paper [07:13:24]Cover closed [07:13:24]int [07:13:24]Write to MH i2c: 01 00 00 92 AD 3F [07:13:24]*** FLAG_PRN_PAP1 reset [07:13:24]Write i2c OK [07:13:24]MH_I2C_Read... [07:13:24]Read from MH i2c: 01 [07:13:24]MH_I2C_Read... [07:13:24]Read from MH i2c: 01 07 00 [07:13:24]MH_I2C_Read... [07:13:24]Read from MH i2c: 01 07 00 92 AD 00 00 00 00 00 FF 0F 54 [07:13:24]state=0 [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:34]accept exits with 8 [07:16:34]New connection [07:16:34]New thread 3067260260 created [07:16:34]Thread 3067116900 joined [07:16:34]Waiting for new connection... [07:16:34] Sock 8.Parse request [07:16:34]Sock 8.Check first char [07:16:34]Sock 8.First char is OK [07:16:34]request: POST /json_proto HTTP/1.0 [07:16:34]Method: POST [07:16:34]URL: /json_proto [07:16:34]Method is POST - this is cgi request [07:16:34]url: /json_proto [07:16:34]query_string will be loaded in cgi processing [07:16:34]execute_cgi json_proto POST (null) [07:16:34]execute_cgi path=json_proto method=POST [07:16:34]POST find Content-Length [07:16:34]Host: 172.17.50.3:8080 [07:16:34]Content-Length: 767 [07:16:34]Content-Type: application/json [07:16:34] [07:16:34]POST finish read [07:16:34]Found Content-Length = 767 [07:16:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884898", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 61.680, "sum" : 4700.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 4700.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:16:34]execute_script... [07:16:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884898", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 61.680, "sum" : 4700.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 4700.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:16:34]POST & json_proto [07:16:34]process_json_proto [07:16:34]json parsed OK: [07:16:34]protocol is kg_v1.0 [07:16:34]action value=close_receipt [07:16:34]process_action close_receipt [07:16:34]cmd_close_receipt [07:16:34]MH_GetDate [07:16:34]Write to MH i2c: F0 00 00 93 AD 2F [07:16:34]Write i2c OK [07:16:34]MH_I2C_Read... [07:16:34]Read from MH i2c: F0 [07:16:34]MH_I2C_Read... [07:16:34]Read from MH i2c: F0 09 00 [07:16:34]MH_I2C_Read... [07:16:34]Read from MH i2c: F0 09 00 93 AD 00 5B AE 14 67 6B 98 1E 66 43 [07:16:34]GetLastDocTimeStamp 1729408404 [07:16:34]current date 1729408603 [07:16:34]FM_GetShiftState [07:16:34]SAM_PROTO_GetShiftState [07:16:34]wFMCommunicate request_size=4 [07:16:34]MH_SAM_APDU [07:16:34]CAPDU: 80 13 01 00 [07:16:34]Write to MH i2c: E2 08 00 94 AD 80 13 01 00 00 00 00 00 BE [07:16:34]Write i2c OK [07:16:34]MH_I2C_Read... [07:16:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:16:34]Read from MH i2c: E2 [07:16:34]MH_I2C_Read... [07:16:34]Read from MH i2c: E2 0E 00 [07:16:34]MH_I2C_Read... [07:16:34]Read from MH i2c: E2 0E 00 94 AD 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 C4 [07:16:34]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [07:16:34]wFMCommunicate OK [07:16:34]SAM_PROTO_GetShiftState done [07:16:34]FM_GetShiftState done [07:16:34]opened in 1729383220 [07:16:34]opened+sec_in_day 1729469620 [07:16:34]quantity*price = 470001 [07:16:34]sum+1 = 470003 [07:16:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4700.02 НСП 1% : 41.59 НДС 12% : 499.12 Наличными: 0.00 Безнал.: 4700.02 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 30 20.10.2024 07:16 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69185 ФПД: 241910112004168 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T071643&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69185&fm=241910112004168&tin=02508201610067®Number=0000000000156251&sum=470002 [07:16:35]StoreToDocumentArchive [07:16:35]shift 193 fd 69185 [07:16:35]save to /storage/0193/doc_00069185 [07:16:35]save last doc name /storage/0193/doc_00069185 to /storage/kkm_last_doc_name [07:16:35]save OK [07:16:35]Clear old archive folders... [07:16:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:16:35]tlvbuf is 007046E0 [07:16:35]SAM_PROTO_ClearQueue [07:16:35]wFMCommunicate request_size=4 [07:16:35]MH_SAM_APDU [07:16:35]CAPDU: 80 09 00 00 [07:16:35]Write to MH i2c: E2 08 00 A1 AD 80 09 00 00 00 00 00 00 C0 [07:16:35]Write i2c OK [07:16:35]MH_I2C_Read... [07:16:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:16:35]Read from MH i2c: E2 [07:16:35]MH_I2C_Read... [07:16:35]Read from MH i2c: E2 03 00 [07:16:35]MH_I2C_Read... [07:16:35]Read from MH i2c: E2 03 00 A1 AD 00 90 00 C2 [07:16:35]RAPDU: 90 00 [07:16:35]wFMCommunicate OK [07:16:35]SAM_PROTO_ClearQueue done [07:16:35]KKMCreateOFDPacket [07:16:35]OFDProtocolAddRootSTLVToBuf [07:16:35]FM_MakeSignedData [07:16:35]FM_MakeSignedData [07:16:35]SAM_PROTO_SignData [07:16:35]wFMCommunicate request_size=4 [07:16:35]MH_SAM_APDU [07:16:35]CAPDU: 80 0D 01 02 [07:16:35]Write to MH i2c: E2 08 00 A2 AD 80 0D 01 02 00 00 00 00 C8 [07:16:35]Write i2c OK [07:16:35]MH_I2C_Read... [07:16:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:16:36]Read from MH i2c: E2 [07:16:36]MH_I2C_Read... [07:16:36]Read from MH i2c: E2 03 00 [07:16:36]MH_I2C_Read... [07:16:36]Read from MH i2c: E2 03 00 A2 AD 00 90 00 C3 [07:16:36]RAPDU: 90 00 [07:16:36]wFMCommunicate OK [07:16:36]wFMCommunicate request_size=255 [07:16:36]MH_SAM_APDU [07:16:36]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 F0 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F2 2B 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F2 2B 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 C2 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F2 2B 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 5B AE 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 41 0E 01 00 35 04 06 00 DC 04 16 4B [07:16:36]Write to MH i2c: E2 02 01 A3 AD 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 F0 F0 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F2 2B 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F2 2B 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 C2 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F2 2B 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 5B AE 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 41 0E 01 00 35 04 06 00 DC 04 16 4B 00 00 49 [07:16:36]Write i2c OK [07:16:36]MH_I2C_Read... [07:16:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:16:36]Read from MH i2c: E2 [07:16:36]MH_I2C_Read... [07:16:36]Read from MH i2c: E2 03 00 [07:16:36]MH_I2C_Read... [07:16:36]Read from MH i2c: E2 03 00 A3 AD 00 90 00 C4 [07:16:36]RAPDU: 90 00 [07:16:36]wFMCommunicate OK [07:16:36]wFMCommunicate request_size=7 [07:16:36]MH_SAM_APDU [07:16:36]CAPDU: 80 0D 02 02 02 28 48 [07:16:36]Write to MH i2c: E2 0A 00 A4 AD 80 0D 02 02 02 00 28 48 00 00 3F [07:16:36]Write i2c OK [07:16:36]MH_I2C_Read... [07:16:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:16:36]Read from MH i2c: E2 [07:16:36]MH_I2C_Read... [07:16:36]Read from MH i2c: E2 03 00 [07:16:36]MH_I2C_Read... [07:16:36]Read from MH i2c: E2 03 00 A4 AD 00 90 00 C5 [07:16:36]RAPDU: 90 00 [07:16:36]wFMCommunicate OK [07:16:36]wFMCommunicate request_size=4 [07:16:36]MH_SAM_APDU [07:16:36]CAPDU: 80 0D 03 02 [07:16:36]Write to MH i2c: E2 08 00 A5 AD 80 0D 03 02 00 00 00 00 CD [07:16:36]Write i2c OK [07:16:36]MH_I2C_Read... [07:16:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:16:36]Read from MH i2c: E2 [07:16:36]MH_I2C_Read... [07:16:36]Read from MH i2c: E2 0B 00 [07:16:36]MH_I2C_Read... [07:16:36]Read from MH i2c: E2 0B 00 A5 AD 00 E9 43 22 36 B0 CC 82 FF 90 00 4F [07:16:36]RAPDU: E9 43 22 36 B0 CC 82 FF 90 00 [07:16:36]wFMCommunicate OK [07:16:36]SAM_PROTO_SignData done [07:16:36]FM_MakeSignedData done [07:16:36]CreateOFDProtocolMessage [07:16:36]wFMCommunicate request_size=4 [07:16:36]MH_SAM_APDU [07:16:36]CAPDU: 80 11 00 00 [07:16:36]Write to MH i2c: E2 08 00 A6 AD 80 11 00 00 00 00 00 00 CD [07:16:36]Write i2c OK [07:16:36]MH_I2C_Read... [07:16:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:16:36]Read from MH i2c: E2 [07:16:36]MH_I2C_Read... [07:16:36]Read from MH i2c: E2 17 00 [07:16:36]MH_I2C_Read... [07:16:36]Read from MH i2c: E2 17 00 A6 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1F [07:16:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:16:36]wFMCommunicate OK [07:16:36]CreateOFDProtocolMessage done [07:16:36]OFDSenderStorePacket 69185 [07:16:36]StoreOFDPacket docnum=69185 [07:16:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 AF 62 04 01 22 2E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 F0 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F2 2B 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F2 2B 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 C2 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F2 2B 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 5B AE 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 41 0E 01 00 35 04 06 00 DC 04 16 4B 28 48 E9 43 22 36 B0 CC 82 FF [07:16:36]CheckFolder [07:16:36]dirname=/storage/ofd_packets [07:16:36]CheckFolder done [07:16:36]ProducePacketName [07:16:36]name=ofd_packets/00069185 [07:16:36]NVStorageSaveData ofd_packets/00069185 [07:16:36]File name is /storage/ofd_packets/00069185 [07:16:36]Write 298 bytes [07:16:36]NVStorageSaveData done [07:16:36]OFDSenderStorePacket done [07:16:36]KKMCreateOFDPacket done [07:16:36]NVStorageSaveData kkm_last_timestamp [07:16:36]File name is /storage/kkm_last_timestamp [07:16:36]Write 4 bytes [07:16:36]NVStorageSaveData done [07:16:36]ExternCall_PrintAddStr [07:16:36]wPrintStart [07:16:36]Write to MH i2c: 01 00 00 A7 AD 54 [07:16:36]OFD Sender: Processing packet 69185 [packets to send 18, broken 17] [07:16:36]ProducePacketName [07:16:36]name=ofd_packets/00069185 [07:16:36]OFD Sender: To server: pG, [07:16:36]CommunicateWithHost lk.salyk.kg:30040 [07:16:36]ConnectInit lk.salyk.kg [07:16:36]Write i2c OK [07:16:36]MH_I2C_Read... [07:16:36]Read from MH i2c: 01 [07:16:36]MH_I2C_Read... [07:16:36]Read from MH i2c: 01 07 00 [07:16:36]MH_I2C_Read... [07:16:36]Read from MH i2c: 01 07 00 A7 AD 00 00 00 00 00 FF 0F 69 [07:16:36]RasterBufferAndPrint [07:16:36]line Счет N : (1)2884898 [07:16:36]line ИНН: 02508201610067 [07:16:36]line Контрольно-Кассовый Чек [07:16:36]line ПРОДАЖА [07:16:36]line ТРК (МРК, ГНК) : 51 [07:16:36]line Товар: 2710194210 [07:16:36]line ДТ-К-5 [07:16:36]line 61.680 * 76.20 [07:16:36]line = 4700.02 [07:16:36]line НДС 12% НСП 1% [07:16:36]line > о реализуемом товаре [07:16:36]line ИТОГО: 4700.02 [07:16:36]line НСП 1% : 41.59 [07:16:36]line НДС 12% : 499.12 [07:16:36]line Наличными: 0.00 [07:16:36]line Безнал.: 4700.02 [07:16:36]line Место: АЗС № 85 "Партнер Нефть" [07:16:36]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [07:16:36]line СНО: Общий режим [07:16:36]line Чек 30 20.10.2024 07:16 [07:16:36]line Смена: 193 ФФД: 1.0 [07:16:36]line ЗНМ: 0300000167 [07:16:36]line РНМ: 0000000000156251 [07:16:36]line Версия ККМ: v1.0 [07:16:36]line Платежная система: Mbank [07:16:36]line ФМ: 0000000000963346 [07:16:36]line ФД: 69185 [07:16:36]line ФПД: 241910112004168 [07:16:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T071643&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69185&fm=241910112004168&tin=02508201610067®Number=0000000000156251&sum=470002 [07:16:36]written 0, free lines is 4095 [07:16:36]Connected sock=10 [07:16:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 AF 62 04 01 22 2E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 F0 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F2 2B 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F2 2B 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 C2 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F2 2B 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 5B AE 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 41 0E 01 00 35 04 06 00 DC 04 16 4B 28 48 E9 43 22 36 B0 CC 82 FF [07:16:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 34 4B 47 00 A2 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 41 0E 01 00 F4 03 04 00 03 58 14 67 B6 04 01 00 00 99 D9 59 9C 35 1C 60 8E [07:16:36]CommunicateWithHost err = 0 [07:16:36]CheckOFDResponse [07:16:36]1017 (14) - 77093643461234 [07:16:36]1041 (16) - 0000000000963346 [07:16:36]1040 (4) - 69185 [07:16:36]1012 (4) - 20.10.2024 01:08 [07:16:36]1206 (1) - 0 [07:16:36]OFD Sender: Remove packet 69185 [07:16:36]ProducePacketName [07:16:36]name=ofd_packets/00069185 [07:16:36]NVStorageDeleteData [07:16:36]Write to MH i2c: 01 00 00 D0 AD 7D [07:16:36]Write i2c OK [07:16:36]MH_I2C_Read... [07:16:36]Read from MH i2c: 01 [07:16:36]MH_I2C_Read... [07:16:36]Read from MH i2c: 01 07 00 [07:16:36]MH_I2C_Read... [07:16:36]Read from MH i2c: 01 07 00 D0 AD 00 00 00 00 00 15 0D A6 [07:16:36]RasterBufferAndPrint [07:16:36]line [07:16:36]line [07:16:36]line [07:16:36]line [07:16:36]line [07:16:36]written 0, free lines is 3356 [07:16:36]MH_Cut [07:16:36]Write to MH i2c: D1 01 00 D7 AD 01 56 [07:16:36]Write i2c OK [07:16:36]MH_I2C_Read... [07:16:36]Read from MH i2c: D1 [07:16:36]MH_I2C_Read... [07:16:36]Read from MH i2c: D1 01 00 [07:16:36]MH_I2C_Read... [07:16:36]Read from MH i2c: D1 01 00 D7 AD 00 55 [07:16:36]Write to MH i2c: 01 00 00 D8 AD 85 [07:16:36]Write i2c OK [07:16:36]MH_I2C_Read... [07:16:37]OFD Sender: No OFD packet to send [07:16:37]*** Cut start [07:16:37]*** Partial cut [07:16:37]*** CUTSNS_PIN = 1 [07:16:37]*** CUTSNS_PIN = 0 [07:16:37]*** Brake cut motor [07:16:38]Read from MH i2c: 01 [07:16:38]MH_I2C_Read... [07:16:38]*** Stop cut motor [07:16:38]*** Cut end [07:16:38]Read from MH i2c: 01 07 00 [07:16:38]MH_I2C_Read... [07:16:38]Read from MH i2c: 01 07 00 D8 AD 00 00 00 00 00 FF 0F 9A [07:16:38]process_action close_receipt done [07:16:38]requested_data is exist [07:16:38]produce_requested_data [07:16:38]requested_item fm.sn is exist - process it [07:16:38]wFMCommunicate request_size=4 [07:16:38]MH_SAM_APDU [07:16:38]CAPDU: 80 11 00 00 [07:16:38]Write to MH i2c: E2 08 00 D9 AD 80 11 00 00 00 00 00 00 00 [07:16:38]Write i2c OK [07:16:38]MH_I2C_Read... [07:16:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:16:38]Read from MH i2c: E2 [07:16:38]MH_I2C_Read... [07:16:38]Read from MH i2c: E2 17 00 [07:16:38]MH_I2C_Read... [07:16:38]Read from MH i2c: E2 17 00 D9 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 52 [07:16:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:16:38]wFMCommunicate OK [07:16:38]requested_item fd.num is exist - process it [07:16:38]SAM_PROTO_GetFieldsCounters [07:16:38]wFMCommunicate request_size=4 [07:16:38]MH_SAM_APDU [07:16:38]CAPDU: 80 13 00 00 [07:16:38]Write to MH i2c: E2 08 00 DA AD 80 13 00 00 00 00 00 00 03 [07:16:38]Write i2c OK [07:16:38]MH_I2C_Read... [07:16:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:16:38]Read from MH i2c: E2 [07:16:38]MH_I2C_Read... [07:16:38]Read from MH i2c: E2 62 00 [07:16:38]MH_I2C_Read... [07:16:38]Read from MH i2c: E2 62 00 DA AD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 41 0E 01 00 0E 04 04 00 C1 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 89 [07:16:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 41 0E 01 00 0E 04 04 00 C1 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 [07:16:38]wFMCommunicate OK [07:16:38]SAM_PROTO_GetFieldsCounters done [07:16:38]requested_item shift.num is exist - process it [07:16:38]requested_item shift.opened is exist - process it [07:16:38]req_shift_opened [07:16:38]FM_GetShiftState [07:16:38]SAM_PROTO_GetShiftState [07:16:38]wFMCommunicate request_size=4 [07:16:38]MH_SAM_APDU [07:16:38]CAPDU: 80 13 01 00 [07:16:38]Write to MH i2c: E2 08 00 DB AD 80 13 01 00 00 00 00 00 05 [07:16:38]Write i2c OK [07:16:38]MH_I2C_Read... [07:16:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:16:38]Read from MH i2c: E2 [07:16:38]MH_I2C_Read... [07:16:38]Read from MH i2c: E2 0E 00 [07:16:38]MH_I2C_Read... [07:16:38]Read from MH i2c: E2 0E 00 DB AD 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 0B [07:16:38]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [07:16:38]wFMCommunicate OK [07:16:38]SAM_PROTO_GetShiftState done [07:16:38]FM_GetShiftState done [07:16:38]req_shift_opened done [07:16:38]requested_item shift.open_date is exist - process it [07:16:38]req_shift_open_date [07:16:38]req_shift_open_date done [07:16:38]produce_requested_data done [07:16:38]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69185,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [07:16:38]process_action_free close_receipt [07:16:38]json_value_free [07:16:38]json_value_free done [07:16:38]process_json_proto returns [07:16:38]Send response to host [07:16:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69185,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [07:16:38]free response buf [07:16:38]execute_script done [07:16:38]execute_script returns [07:16:38]free content buf [07:16:38]Sock 8.Close socket [07:16:38]Sock 8.Thread stoped [07:16:42]OFD Sender: No OFD packet to send [07:16:47]OFD Sender: No OFD packet to send [07:16:52]OFD Sender: No OFD packet to send [07:16:57]OFD Sender: No OFD packet to send [07:17:02]OFD Sender: No OFD packet to send [07:17:07]OFD Sender: No OFD packet to send [07:17:12]OFD Sender: No OFD packet to send [07:17:17]OFD Sender: No OFD packet to send [07:17:22]OFD Sender: No OFD packet to send [07:17:27]OFD Sender: No OFD packet to send [07:17:32]OFD Sender: No OFD packet to send [07:17:37]OFD Sender: No OFD packet to send [07:17:42]OFD Sender: No OFD packet to send [07:17:47]OFD Sender: No OFD packet to send [07:17:52]OFD Sender: No OFD packet to send [07:17:57]OFD Sender: No OFD packet to send [07:18:02]OFD Sender: No OFD packet to send [07:18:07]OFD Sender: No OFD packet to send [07:18:12]OFD Sender: No OFD packet to send [07:18:17]OFD Sender: No OFD packet to send [07:18:22]OFD Sender: No OFD packet to send [07:18:27]OFD Sender: No OFD packet to send [07:18:32]OFD Sender: No OFD packet to send [07:18:37]OFD Sender: No OFD packet to send [07:18:42]OFD Sender: No OFD packet to send [07:18:47]OFD Sender: No OFD packet to send [07:18:52]OFD Sender: No OFD packet to send [07:18:57]OFD Sender: No OFD packet to send [07:19:02]OFD Sender: No OFD packet to send [07:19:07]OFD Sender: No OFD packet to send [07:19:12]OFD Sender: No OFD packet to send [07:19:17]OFD Sender: No OFD packet to send [07:19:22]OFD Sender: No OFD packet to send [07:19:27]OFD Sender: No OFD packet to send [07:19:32]OFD Sender: No OFD packet to send [07:19:37]OFD Sender: No OFD packet to send [07:19:42]OFD Sender: No OFD packet to send [07:19:47]OFD Sender: No OFD packet to send [07:19:52]OFD Sender: No OFD packet to send [07:19:57]OFD Sender: No OFD packet to send [07:20:02]OFD Sender: No OFD packet to send [07:20:07]OFD Sender: No OFD packet to send [07:20:12]OFD Sender: No OFD packet to send [07:20:17]OFD Sender: No OFD packet to send [07:20:22]OFD Sender: No OFD packet to send [07:20:27]OFD Sender: No OFD packet to send [07:20:32]OFD Sender: No OFD packet to send [07:20:37]OFD Sender: No OFD packet to send [07:20:42]OFD Sender: No OFD packet to send [07:20:47]OFD Sender: No OFD packet to send [07:20:52]OFD Sender: No OFD packet to send [07:20:57]OFD Sender: No OFD packet to send [07:21:02]OFD Sender: No OFD packet to send [07:21:07]OFD Sender: No OFD packet to send [07:21:12]OFD Sender: No OFD packet to send [07:21:17]OFD Sender: No OFD packet to send [07:21:22]OFD Sender: No OFD packet to send [07:21:27]OFD Sender: No OFD packet to send [07:21:32]OFD Sender: No OFD packet to send [07:21:37]OFD Sender: No OFD packet to send [07:21:42]OFD Sender: No OFD packet to send [07:21:47]OFD Sender: No OFD packet to send [07:21:52]OFD Sender: No OFD packet to send [07:21:57]OFD Sender: No OFD packet to send [07:22:02]OFD Sender: No OFD packet to send [07:22:07]OFD Sender: No OFD packet to send [07:22:12]OFD Sender: No OFD packet to send [07:22:17]OFD Sender: No OFD packet to send [07:22:22]OFD Sender: No OFD packet to send [07:22:27]OFD Sender: No OFD packet to send [07:22:32]OFD Sender: No OFD packet to send [07:22:37]OFD Sender: No OFD packet to send [07:22:42]OFD Sender: No OFD packet to send [07:22:47]OFD Sender: No OFD packet to send [07:22:52]OFD Sender: No OFD packet to send [07:22:57]OFD Sender: No OFD packet to send [07:23:02]OFD Sender: No OFD packet to send [07:23:07]OFD Sender: No OFD packet to send [07:23:12]OFD Sender: No OFD packet to send [07:23:17]OFD Sender: No OFD packet to send [07:23:22]OFD Sender: No OFD packet to send [07:23:27]OFD Sender: No OFD packet to send [07:23:32]OFD Sender: No OFD packet to send [07:23:37]OFD Sender: No OFD packet to send [07:23:42]OFD Sender: No OFD packet to send [07:23:47]OFD Sender: No OFD packet to send [07:23:52]OFD Sender: No OFD packet to send [07:23:57]OFD Sender: No OFD packet to send [07:24:02]OFD Sender: No OFD packet to send [07:24:07]OFD Sender: No OFD packet to send [07:24:12]OFD Sender: No OFD packet to send [07:24:17]OFD Sender: No OFD packet to send [07:24:22]OFD Sender: No OFD packet to send [07:24:27]OFD Sender: No OFD packet to send [07:24:32]OFD Sender: No OFD packet to send [07:24:37]OFD Sender: No OFD packet to send [07:24:42]OFD Sender: No OFD packet to send [07:24:47]OFD Sender: No OFD packet to send [07:24:52]OFD Sender: No OFD packet to send [07:24:57]OFD Sender: No OFD packet to send [07:25:02]OFD Sender: No OFD packet to send [07:25:07]OFD Sender: No OFD packet to send [07:25:12]OFD Sender: No OFD packet to send [07:25:17]OFD Sender: No OFD packet to send [07:25:22]OFD Sender: No OFD packet to send [07:25:27]OFD Sender: No OFD packet to send [07:25:32]OFD Sender: No OFD packet to send [07:25:37]OFD Sender: No OFD packet to send [07:25:42]OFD Sender: No OFD packet to send [07:25:47]OFD Sender: No OFD packet to send [07:25:52]OFD Sender: No OFD packet to send [07:25:57]OFD Sender: No OFD packet to send [07:26:02]OFD Sender: No OFD packet to send [07:26:07]OFD Sender: No OFD packet to send [07:26:12]OFD Sender: No OFD packet to send [07:26:17]OFD Sender: No OFD packet to send [07:26:22]OFD Sender: No OFD packet to send [07:26:27]OFD Sender: No OFD packet to send [07:26:32]OFD Sender: No OFD packet to send [07:26:37]OFD Sender: No OFD packet to send [07:26:42]OFD Sender: No OFD packet to send [07:26:47]OFD Sender: No OFD packet to send [07:26:52]OFD Sender: No OFD packet to send [07:26:57]OFD Sender: No OFD packet to send [07:27:02]OFD Sender: No OFD packet to send [07:27:07]OFD Sender: No OFD packet to send [07:27:12]OFD Sender: No OFD packet to send [07:27:17]OFD Sender: No OFD packet to send [07:27:22]OFD Sender: No OFD packet to send [07:27:27]OFD Sender: No OFD packet to send [07:27:32]OFD Sender: No OFD packet to send [07:27:37]OFD Sender: No OFD packet to send [07:27:42]OFD Sender: No OFD packet to send [07:27:47]OFD Sender: No OFD packet to send [07:27:52]OFD Sender: No OFD packet to send [07:27:57]OFD Sender: No OFD packet to send [07:28:02]OFD Sender: No OFD packet to send [07:28:07]OFD Sender: No OFD packet to send [07:28:12]OFD Sender: No OFD packet to send [07:28:17]OFD Sender: No OFD packet to send [07:28:22]OFD Sender: No OFD packet to send [07:28:27]OFD Sender: No OFD packet to send [07:28:32]OFD Sender: No OFD packet to send [07:28:37]OFD Sender: No OFD packet to send [07:28:42]OFD Sender: No OFD packet to send [07:28:47]OFD Sender: No OFD packet to send [07:28:52]OFD Sender: No OFD packet to send [07:28:57]OFD Sender: No OFD packet to send [07:29:02]OFD Sender: No OFD packet to send [07:29:07]OFD Sender: No OFD packet to send [07:29:12]OFD Sender: No OFD packet to send [07:29:17]OFD Sender: No OFD packet to send [07:29:22]OFD Sender: No OFD packet to send [07:29:27]OFD Sender: No OFD packet to send [07:29:32]OFD Sender: No OFD packet to send [07:29:37]OFD Sender: No OFD packet to send [07:29:42]OFD Sender: No OFD packet to send [07:29:47]OFD Sender: No OFD packet to send [07:29:52]OFD Sender: No OFD packet to send [07:29:57]OFD Sender: No OFD packet to send [07:30:02]OFD Sender: No OFD packet to send [07:30:07]OFD Sender: No OFD packet to send [07:30:12]OFD Sender: No OFD packet to send [07:30:17]OFD Sender: No OFD packet to send [07:30:22]OFD Sender: No OFD packet to send [07:30:27]OFD Sender: No OFD packet to send [07:30:32]OFD Sender: No OFD packet to send [07:30:37]OFD Sender: No OFD packet to send [07:30:42]OFD Sender: No OFD packet to send [07:30:47]OFD Sender: No OFD packet to send [07:30:52]OFD Sender: No OFD packet to send [07:30:57]OFD Sender: No OFD packet to send [07:31:02]OFD Sender: No OFD packet to send [07:31:07]OFD Sender: No OFD packet to send [07:31:12]OFD Sender: No OFD packet to send [07:31:17]OFD Sender: No OFD packet to send [07:31:22]OFD Sender: No OFD packet to send [07:31:27]OFD Sender: No OFD packet to send [07:31:27]accept exits with 9 [07:31:27]New connection [07:31:27]New thread 3067116900 created [07:31:27]Thread 3067260260 joined [07:31:27]Waiting for new connection... [07:31:27] Sock 9.Parse request [07:31:27]Sock 9.Check first char [07:31:27]Sock 9.First char is OK [07:31:27]request: POST /json_proto HTTP/1.0 [07:31:27]Method: POST [07:31:27]URL: /json_proto [07:31:27]Method is POST - this is cgi request [07:31:27]url: /json_proto [07:31:27]query_string will be loaded in cgi processing [07:31:27]execute_cgi json_proto POST (null) [07:31:27]execute_cgi path=json_proto method=POST [07:31:27]POST find Content-Length [07:31:27]Host: 172.17.50.3:8080 [07:31:27]Content-Length: 679 [07:31:27]Content-Type: application/json [07:31:27] [07:31:27]POST finish read [07:31:27]Found Content-Length = 679 [07:31:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:31:27]execute_script... [07:31: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)2884899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:31:27]POST & json_proto [07:31:27]process_json_proto [07:31:27]json parsed OK: [07:31:27]protocol is kg_v1.0 [07:31:27]action value=close_receipt [07:31:27]process_action close_receipt [07:31:27]cmd_close_receipt [07:31:27]MH_GetDate [07:31:27]Write to MH i2c: F0 00 00 DC AD 78 [07:31:27]Write i2c OK [07:31:27]MH_I2C_Read... [07:31:27]Read from MH i2c: F0 [07:31:27]MH_I2C_Read... [07:31:27]Read from MH i2c: F0 09 00 [07:31:27]MH_I2C_Read... [07:31:27]Read from MH i2c: F0 09 00 DC AD 00 D9 B1 14 67 6B 98 1E 66 0D [07:31:27]GetLastDocTimeStamp 1729408603 [07:31:27]current date 1729409497 [07:31:27]FM_GetShiftState [07:31:27]SAM_PROTO_GetShiftState [07:31:27]wFMCommunicate request_size=4 [07:31:27]MH_SAM_APDU [07:31:27]CAPDU: 80 13 01 00 [07:31:27]Write to MH i2c: E2 08 00 DD AD 80 13 01 00 00 00 00 00 07 [07:31:27]Write i2c OK [07:31:27]MH_I2C_Read... [07:31:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:31:28]Read from MH i2c: E2 [07:31:28]MH_I2C_Read... [07:31:28]Read from MH i2c: E2 0E 00 [07:31:28]MH_I2C_Read... [07:31:28]Read from MH i2c: E2 0E 00 DD AD 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 0D [07:31:28]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [07:31:28]wFMCommunicate OK [07:31:28]SAM_PROTO_GetShiftState done [07:31:28]FM_GetShiftState done [07:31:28]opened in 1729383220 [07:31:28]opened+sec_in_day 1729469620 [07:31:28]quantity*price = 80061 [07:31:28]sum+1 = 80063 [07:31:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 31 20.10.2024 07:31 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69186 ФПД: 173867047012105 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T073137&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69186&fm=173867047012105&tin=02508201610067®Number=0000000000156251&sum=80000 [07:31:29]StoreToDocumentArchive [07:31:29]shift 193 fd 69186 [07:31:29]save to /storage/0193/doc_00069186 [07:31:29]save last doc name /storage/0193/doc_00069186 to /storage/kkm_last_doc_name [07:31:29]save OK [07:31:29]Clear old archive folders... [07:31:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:31:29]tlvbuf is 005717F0 [07:31:29]SAM_PROTO_ClearQueue [07:31:29]wFMCommunicate request_size=4 [07:31:29]MH_SAM_APDU [07:31:29]CAPDU: 80 09 00 00 [07:31:29]Write to MH i2c: E2 08 00 EA AD 80 09 00 00 00 00 00 00 09 [07:31:29]Write i2c OK [07:31:29]MH_I2C_Read... [07:31:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:31:29]Read from MH i2c: E2 [07:31:29]MH_I2C_Read... [07:31:29]Read from MH i2c: E2 03 00 [07:31:29]MH_I2C_Read... [07:31:29]Read from MH i2c: E2 03 00 EA AD 00 90 00 0B [07:31:29]RAPDU: 90 00 [07:31:29]wFMCommunicate OK [07:31:29]SAM_PROTO_ClearQueue done [07:31:29]KKMCreateOFDPacket [07:31:29]OFDProtocolAddRootSTLVToBuf [07:31:29]FM_MakeSignedData [07:31:29]FM_MakeSignedData [07:31:29]SAM_PROTO_SignData [07:31:29]wFMCommunicate request_size=4 [07:31:29]MH_SAM_APDU [07:31:29]CAPDU: 80 0D 01 02 [07:31:29]Write to MH i2c: E2 08 00 EB AD 80 0D 01 02 00 00 00 00 11 [07:31:29]Write i2c OK [07:31:29]MH_I2C_Read... [07:31:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:31:29]Read from MH i2c: E2 [07:31:29]MH_I2C_Read... [07:31:29]Read from MH i2c: E2 03 00 [07:31:29]MH_I2C_Read... [07:31:29]Read from MH i2c: E2 03 00 EB AD 00 90 00 0C [07:31:29]RAPDU: 90 00 [07:31:29]wFMCommunicate OK [07:31:29]wFMCommunicate request_size=255 [07:31:29]MH_SAM_APDU [07:31:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 D9 B1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 42 0E 01 00 35 04 06 00 9E [07:31:29]Write to MH i2c: E2 02 01 EC AD 80 0D 02 02 FA 00 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 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 D9 B1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 42 0E 01 00 35 04 06 00 9E 00 00 DB [07:31:29]Write i2c OK [07:31:29]MH_I2C_Read... [07:31:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:31:29]Read from MH i2c: E2 [07:31:29]MH_I2C_Read... [07:31:29]Read from MH i2c: E2 03 00 [07:31:29]MH_I2C_Read... [07:31:29]Read from MH i2c: E2 03 00 EC AD 00 90 00 0D [07:31:29]RAPDU: 90 00 [07:31:29]wFMCommunicate OK [07:31:29]wFMCommunicate request_size=10 [07:31:29]MH_SAM_APDU [07:31:29]CAPDU: 80 0D 02 02 05 21 93 93 47 09 [07:31:29]Write to MH i2c: E2 0D 00 ED AD 80 0D 02 02 05 00 21 93 93 47 09 00 00 B5 [07:31:29]Write i2c OK [07:31:29]MH_I2C_Read... [07:31:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:31:29]Read from MH i2c: E2 [07:31:29]MH_I2C_Read... [07:31:29]Read from MH i2c: E2 03 00 [07:31:29]MH_I2C_Read... [07:31:29]Read from MH i2c: E2 03 00 ED AD 00 90 00 0E [07:31:29]RAPDU: 90 00 [07:31:29]wFMCommunicate OK [07:31:29]wFMCommunicate request_size=4 [07:31:29]MH_SAM_APDU [07:31:29]CAPDU: 80 0D 03 02 [07:31:29]Write to MH i2c: E2 08 00 EE AD 80 0D 03 02 00 00 00 00 16 [07:31:29]Write i2c OK [07:31:29]MH_I2C_Read... [07:31:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:31:29]Read from MH i2c: E2 [07:31:29]MH_I2C_Read... [07:31:29]Read from MH i2c: E2 0B 00 [07:31:29]MH_I2C_Read... [07:31:29]Read from MH i2c: E2 0B 00 EE AD 00 03 8C FC 5B E8 7B 69 99 90 00 62 [07:31:29]RAPDU: 03 8C FC 5B E8 7B 69 99 90 00 [07:31:29]wFMCommunicate OK [07:31:29]SAM_PROTO_SignData done [07:31:29]FM_MakeSignedData done [07:31:29]CreateOFDProtocolMessage [07:31:29]wFMCommunicate request_size=4 [07:31:29]MH_SAM_APDU [07:31:29]CAPDU: 80 11 00 00 [07:31:29]Write to MH i2c: E2 08 00 EF AD 80 11 00 00 00 00 00 00 16 [07:31:29]Write i2c OK [07:31:29]MH_I2C_Read... [07:31:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:31:29]Read from MH i2c: E2 [07:31:29]MH_I2C_Read... [07:31:29]Read from MH i2c: E2 17 00 [07:31:29]MH_I2C_Read... [07:31:29]Read from MH i2c: E2 17 00 EF AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 68 [07:31:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:31:29]wFMCommunicate OK [07:31:29]CreateOFDProtocolMessage done [07:31:29]OFDSenderStorePacket 69186 [07:31:29]StoreOFDPacket docnum=69186 [07:31:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 1C 90 07 01 0F 78 5A 03 01 00 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 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 D9 B1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 42 0E 01 00 35 04 06 00 9E 21 93 93 47 09 03 8C FC 5B E8 7B 69 99 [07:31:29]CheckFolder [07:31:29]dirname=/storage/ofd_packets [07:31:29]CheckFolder done [07:31:29]ProducePacketName [07:31:29]name=ofd_packets/00069186 [07:31:29]NVStorageSaveData ofd_packets/00069186 [07:31:29]File name is /storage/ofd_packets/00069186 [07:31:29]Write 301 bytes [07:31:29]NVStorageSaveData done [07:31:29]OFDSenderStorePacket done [07:31:29]KKMCreateOFDPacket done [07:31:29]NVStorageSaveData kkm_last_timestamp [07:31:29]File name is /storage/kkm_last_timestamp [07:31:29]Write 4 bytes [07:31:29]NVStorageSaveData done [07:31:29]ExternCall_PrintAddStr [07:31:29]wPrintStart [07:31:29]Write to MH i2c: 01 00 00 F0 AD 9D [07:31:29]Write i2c OK [07:31:29]MH_I2C_Read... [07:31:29]Read from MH i2c: 01 [07:31:29]MH_I2C_Read... [07:31:29]Read from MH i2c: 01 07 00 [07:31:29]MH_I2C_Read... [07:31:29]Read from MH i2c: 01 07 00 F0 AD 00 00 00 00 00 FF 0F B2 [07:31:29]RasterBufferAndPrint [07:31:29]line Счет N : (1)2884899 [07:31:29]line ИНН: 02508201610067 [07:31:29]line Контрольно-Кассовый Чек [07:31:29]line ПРОДАЖА [07:31:29]line ТРК (МРК, ГНК) : 33 [07:31:29]line Товар: 2710124500 [07:31:29]line Аи-95-К-5 [07:31:29]line 10.790 * 74.20 [07:31:29]line = 800.62 [07:31:29]line НДС 12% НСП 1% [07:31:29]line > о реализуемом товаре [07:31:29]line ОКРУГЛЕНИЕ: -0.62 [07:31:29]line ИТОГО: 800.00 [07:31:29]line Внесено: 800.00 [07:31:29]line СДАЧА: 0.00 [07:31:29]line НСП 1% : 7.08 [07:31:29]line НДС 12% : 85.02 [07:31:29]line Наличными: 800.00 [07:31:29]line Безнал.: 0.00 [07:31:29]line Место: АЗС № 85 "Партнер Нефть" [07:31:29]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [07:31:29]line СНО: Общий режим [07:31:29]line Чек 31 20.10.2024 07:31 [07:31:29]line Смена: 193 ФФД: 1.0 [07:31:29]line ЗНМ: 0300000167 [07:31:29]line РНМ: 0000000000156251 [07:31:29]line Версия ККМ: v1.0 [07:31:29]line ФМ: 0000000000963346 [07:31:29]line ФД: 69186 [07:31:29]line ФПД: 173867047012105 [07:31:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T073137&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69186&fm=173867047012105&tin=02508201610067®Number=0000000000156251&sum=80000 [07:31:30]OFD Sender: Processing packet 69186 [packets to send 18, broken 17] [07:31:30]ProducePacketName [07:31:30]name=ofd_packets/00069186 [07:31:30]OFD Sender: To server: pG, [07:31:30]CommunicateWithHost lk.salyk.kg:30040 [07:31:30]ConnectInit lk.salyk.kg [07:31:30]written 0, free lines is 4095 [07:31:30]Connected sock=8 [07:31:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 1C 90 07 01 0F 78 5A 03 01 00 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 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 D9 B1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 42 0E 01 00 35 04 06 00 9E 21 93 93 47 09 03 8C FC 5B E8 7B 69 99 [07:31:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 62 C0 47 00 AA 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 42 0E 01 00 F4 03 04 00 80 5B 14 67 B6 04 01 00 00 8D 55 E4 EC 95 F0 B7 EB [07:31:30]CommunicateWithHost err = 0 [07:31:30]CheckOFDResponse [07:31:30]1017 (14) - 77093643461234 [07:31:30]1041 (16) - 0000000000963346 [07:31:30]1040 (4) - 69186 [07:31:30]1012 (4) - 20.10.2024 01:23 [07:31:30]1206 (1) - 0 [07:31:30]OFD Sender: Remove packet 69186 [07:31:30]ProducePacketName [07:31:30]name=ofd_packets/00069186 [07:31:30]NVStorageDeleteData [07:31:30]Write to MH i2c: 01 00 00 1B AE C9 [07:31:30]Write i2c OK [07:31:30]MH_I2C_Read... [07:31:30]Read from MH i2c: 01 [07:31:30]MH_I2C_Read... [07:31:30]Read from MH i2c: 01 07 00 [07:31:30]MH_I2C_Read... [07:31:30]Read from MH i2c: 01 07 00 1B AE 00 00 00 00 00 F9 0C D5 [07:31:30]RasterBufferAndPrint [07:31:30]line [07:31:30]line [07:31:30]line [07:31:30]line [07:31:30]line [07:31:30]written 0, free lines is 3331 [07:31:30]MH_Cut [07:31:30]Write to MH i2c: D1 01 00 22 AE 01 A2 [07:31:30]Write i2c OK [07:31:30]MH_I2C_Read... [07:31:30]Read from MH i2c: D1 [07:31:30]MH_I2C_Read... [07:31:30]Read from MH i2c: D1 01 00 [07:31:30]MH_I2C_Read... [07:31:30]Read from MH i2c: D1 01 00 22 AE 00 A1 [07:31:30]Write to MH i2c: 01 00 00 23 AE D1 [07:31:30]Write i2c OK [07:31:30]MH_I2C_Read... [07:31:30]OFD Sender: No OFD packet to send [07:31:31]*** Cut start [07:31:31]*** Partial cut [07:31:31]*** CUTSNS_PIN = 1 [07:31:31]*** CUTSNS_PIN = 0 [07:31:31]*** Brake cut motor [07:31:31]Read from MH i2c: 01 [07:31:31]MH_I2C_Read... [07:31:31]*** Stop cut motor [07:31:31]*** Cut end [07:31:31]Read from MH i2c: 01 07 00 [07:31:31]MH_I2C_Read... [07:31:31]Read from MH i2c: 01 07 00 23 AE 00 00 00 00 00 FF 0F E6 [07:31:31]process_action close_receipt done [07:31:31]requested_data is exist [07:31:31]produce_requested_data [07:31:31]requested_item fm.sn is exist - process it [07:31:31]wFMCommunicate request_size=4 [07:31:31]MH_SAM_APDU [07:31:31]CAPDU: 80 11 00 00 [07:31:31]Write to MH i2c: E2 08 00 24 AE 80 11 00 00 00 00 00 00 4C [07:31:31]Write i2c OK [07:31:31]MH_I2C_Read... [07:31:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:31:31]Read from MH i2c: E2 [07:31:31]MH_I2C_Read... [07:31:31]Read from MH i2c: E2 17 00 [07:31:31]MH_I2C_Read... [07:31:31]Read from MH i2c: E2 17 00 24 AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9E [07:31:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:31:31]wFMCommunicate OK [07:31:31]requested_item fd.num is exist - process it [07:31:31]SAM_PROTO_GetFieldsCounters [07:31:31]wFMCommunicate request_size=4 [07:31:31]MH_SAM_APDU [07:31:31]CAPDU: 80 13 00 00 [07:31:31]Write to MH i2c: E2 08 00 25 AE 80 13 00 00 00 00 00 00 4F [07:31:31]Write i2c OK [07:31:31]MH_I2C_Read... [07:31:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:31:32]Read from MH i2c: E2 [07:31:32]MH_I2C_Read... [07:31:32]Read from MH i2c: E2 62 00 [07:31:32]MH_I2C_Read... [07:31:32]Read from MH i2c: E2 62 00 25 AE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 42 0E 01 00 0E 04 04 00 C1 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 D9 [07:31:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 42 0E 01 00 0E 04 04 00 C1 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 [07:31:32]wFMCommunicate OK [07:31:32]SAM_PROTO_GetFieldsCounters done [07:31:32]requested_item shift.num is exist - process it [07:31:32]requested_item shift.opened is exist - process it [07:31:32]req_shift_opened [07:31:32]FM_GetShiftState [07:31:32]SAM_PROTO_GetShiftState [07:31:32]wFMCommunicate request_size=4 [07:31:32]MH_SAM_APDU [07:31:32]CAPDU: 80 13 01 00 [07:31:32]Write to MH i2c: E2 08 00 26 AE 80 13 01 00 00 00 00 00 51 [07:31:32]Write i2c OK [07:31:32]MH_I2C_Read... [07:31:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:31:32]Read from MH i2c: E2 [07:31:32]MH_I2C_Read... [07:31:32]Read from MH i2c: E2 0E 00 [07:31:32]MH_I2C_Read... [07:31:32]Read from MH i2c: E2 0E 00 26 AE 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 57 [07:31:32]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [07:31:32]wFMCommunicate OK [07:31:32]SAM_PROTO_GetShiftState done [07:31:32]FM_GetShiftState done [07:31:32]req_shift_opened done [07:31:32]requested_item shift.open_date is exist - process it [07:31:32]req_shift_open_date [07:31:32]req_shift_open_date done [07:31:32]produce_requested_data done [07:31:32]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69186,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [07:31:32]process_action_free close_receipt [07:31:32]json_value_free [07:31:32]json_value_free done [07:31:32]process_json_proto returns [07:31:32]Send response to host [07:31:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69186,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [07:31:32]free response buf [07:31:32]execute_script done [07:31:32]execute_script returns [07:31:32]free content buf [07:31:32]Sock 9.Close socket [07:31:32]Sock 9.Thread stoped [07:31:35]OFD Sender: No OFD packet to send [07:31:40]OFD Sender: No OFD packet to send [07:31:45]OFD Sender: No OFD packet to send [07:31:50]OFD Sender: No OFD packet to send [07:31:55]OFD Sender: No OFD packet to send [07:32:00]OFD Sender: No OFD packet to send [07:32:05]OFD Sender: No OFD packet to send [07:32:10]OFD Sender: No OFD packet to send [07:32:15]OFD Sender: No OFD packet to send [07:32:20]OFD Sender: No OFD packet to send [07:32:25]OFD Sender: No OFD packet to send [07:32:30]OFD Sender: No OFD packet to send [07:32:35]OFD Sender: No OFD packet to send [07:32:40]OFD Sender: No OFD packet to send [07:32:45]OFD Sender: No OFD packet to send [07:32:50]OFD Sender: No OFD packet to send [07:32:55]OFD Sender: No OFD packet to send [07:33:00]OFD Sender: No OFD packet to send [07:33:05]OFD Sender: No OFD packet to send [07:33:10]OFD Sender: No OFD packet to send [07:33:15]OFD Sender: No OFD packet to send [07:33:20]OFD Sender: No OFD packet to send [07:33:25]OFD Sender: No OFD packet to send [07:33:27]accept exits with 10 [07:33:27]New connection [07:33:27]New thread 3067260260 created [07:33:27]Thread 3067116900 joined [07:33:27]Waiting for new connection... [07:33:27] Sock 10.Parse request [07:33:27]Sock 10.Check first char [07:33:27]Sock 10.First char is OK [07:33:27]request: POST /json_proto HTTP/1.0 [07:33:27]Method: POST [07:33:27]URL: /json_proto [07:33:27]Method is POST - this is cgi request [07:33:27]url: /json_proto [07:33:27]query_string will be loaded in cgi processing [07:33:27]execute_cgi json_proto POST (null) [07:33:27]execute_cgi path=json_proto method=POST [07:33:27]POST find Content-Length [07:33:27]Host: 172.17.50.3:8080 [07:33:27]Content-Length: 678 [07:33:27]Content-Type: application/json [07:33:27] [07:33:27]POST finish read [07:33:27]Found Content-Length = 678 [07:33:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [07:33:27]execute_script... [07:33: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)2884900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [07:33:27]POST & json_proto [07:33:27]process_json_proto [07:33:27]json parsed OK: [07:33:27]protocol is kg_v1.0 [07:33:27]action value=close_receipt [07:33:27]process_action close_receipt [07:33:27]cmd_close_receipt [07:33:27]MH_GetDate [07:33:27]Write to MH i2c: F0 00 00 27 AE C4 [07:33:27]Write i2c OK [07:33:27]MH_I2C_Read... [07:33:27]Read from MH i2c: F0 [07:33:27]MH_I2C_Read... [07:33:27]Read from MH i2c: F0 09 00 [07:33:27]MH_I2C_Read... [07:33:27]Read from MH i2c: F0 09 00 27 AE 00 50 B2 14 67 6B 98 1E 66 D1 [07:33:27]GetLastDocTimeStamp 1729409497 [07:33:27]current date 1729409616 [07:33:27]FM_GetShiftState [07:33:27]SAM_PROTO_GetShiftState [07:33:27]wFMCommunicate request_size=4 [07:33:27]MH_SAM_APDU [07:33:27]CAPDU: 80 13 01 00 [07:33:27]Write to MH i2c: E2 08 00 28 AE 80 13 01 00 00 00 00 00 53 [07:33:27]Write i2c OK [07:33:27]MH_I2C_Read... [07:33:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:33:27]Read from MH i2c: E2 [07:33:27]MH_I2C_Read... [07:33:27]Read from MH i2c: E2 0E 00 [07:33:27]MH_I2C_Read... [07:33:27]Read from MH i2c: E2 0E 00 28 AE 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 59 [07:33:27]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [07:33:27]wFMCommunicate OK [07:33:27]SAM_PROTO_GetShiftState done [07:33:27]FM_GetShiftState done [07:33:27]opened in 1729383220 [07:33:27]opened+sec_in_day 1729469620 [07:33:27]quantity*price = 50010 [07:33:27]sum+1 = 50012 [07:33:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 32 20.10.2024 07:33 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69187 ФПД: 92911740961475 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T073336&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69187&fm=92911740961475&tin=02508201610067®Number=0000000000156251&sum=50000 [07:33:28]StoreToDocumentArchive [07:33:28]shift 193 fd 69187 [07:33:28]save to /storage/0193/doc_00069187 [07:33:28]save last doc name /storage/0193/doc_00069187 to /storage/kkm_last_doc_name [07:33:28]save OK [07:33:28]Clear old archive folders... [07:33:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:33:28]tlvbuf is 0079E770 [07:33:28]SAM_PROTO_ClearQueue [07:33:28]wFMCommunicate request_size=4 [07:33:28]MH_SAM_APDU [07:33:28]CAPDU: 80 09 00 00 [07:33:28]Write to MH i2c: E2 08 00 35 AE 80 09 00 00 00 00 00 00 55 [07:33:28]Write i2c OK [07:33:28]MH_I2C_Read... [07:33:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:33:28]Read from MH i2c: E2 [07:33:28]MH_I2C_Read... [07:33:28]Read from MH i2c: E2 03 00 [07:33:28]MH_I2C_Read... [07:33:28]Read from MH i2c: E2 03 00 35 AE 00 90 00 57 [07:33:28]RAPDU: 90 00 [07:33:28]wFMCommunicate OK [07:33:28]SAM_PROTO_ClearQueue done [07:33:28]KKMCreateOFDPacket [07:33:28]OFDProtocolAddRootSTLVToBuf [07:33:28]FM_MakeSignedData [07:33:28]FM_MakeSignedData [07:33:28]SAM_PROTO_SignData [07:33:28]wFMCommunicate request_size=4 [07:33:28]MH_SAM_APDU [07:33:28]CAPDU: 80 0D 01 02 [07:33:28]Write to MH i2c: E2 08 00 36 AE 80 0D 01 02 00 00 00 00 5D [07:33:28]Write i2c OK [07:33:28]MH_I2C_Read... [07:33:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:33:28]Read from MH i2c: E2 [07:33:28]MH_I2C_Read... [07:33:28]Read from MH i2c: E2 03 00 [07:33:28]MH_I2C_Read... [07:33:28]Read from MH i2c: E2 03 00 36 AE 00 90 00 58 [07:33:28]RAPDU: 90 00 [07:33:28]wFMCommunicate OK [07:33:28]wFMCommunicate request_size=255 [07:33:28]MH_SAM_APDU [07:33: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 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 20 00 00 00 F4 03 04 00 50 B2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 43 0E 01 00 35 04 06 00 54 [07:33:28]Write to MH i2c: E2 02 01 37 AE 80 0D 02 02 FA 00 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 20 00 00 00 F4 03 04 00 50 B2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 43 0E 01 00 35 04 06 00 54 00 00 C2 [07:33:28]Write i2c OK [07:33:28]MH_I2C_Read... [07:33:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:33:28]Read from MH i2c: E2 [07:33:28]MH_I2C_Read... [07:33:28]Read from MH i2c: E2 03 00 [07:33:28]MH_I2C_Read... [07:33:28]Read from MH i2c: E2 03 00 37 AE 00 90 00 59 [07:33:28]RAPDU: 90 00 [07:33:28]wFMCommunicate OK [07:33:28]wFMCommunicate request_size=10 [07:33:28]MH_SAM_APDU [07:33:28]CAPDU: 80 0D 02 02 05 80 B3 50 C2 C3 [07:33:28]Write to MH i2c: E2 0D 00 38 AE 80 0D 02 02 05 00 80 B3 50 C2 C3 00 00 72 [07:33:28]Write i2c OK [07:33:28]MH_I2C_Read... [07:33:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:33:28]Read from MH i2c: E2 [07:33:28]MH_I2C_Read... [07:33:28]Read from MH i2c: E2 03 00 [07:33:28]MH_I2C_Read... [07:33:28]Read from MH i2c: E2 03 00 38 AE 00 90 00 5A [07:33:28]RAPDU: 90 00 [07:33:28]wFMCommunicate OK [07:33:28]wFMCommunicate request_size=4 [07:33:28]MH_SAM_APDU [07:33:28]CAPDU: 80 0D 03 02 [07:33:28]Write to MH i2c: E2 08 00 39 AE 80 0D 03 02 00 00 00 00 62 [07:33:28]Write i2c OK [07:33:28]MH_I2C_Read... [07:33:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:33:28]Read from MH i2c: E2 [07:33:28]MH_I2C_Read... [07:33:28]Read from MH i2c: E2 0B 00 [07:33:28]MH_I2C_Read... [07:33:28]Read from MH i2c: E2 0B 00 39 AE 00 11 C6 51 D2 08 CB D7 2F 90 00 36 [07:33:28]RAPDU: 11 C6 51 D2 08 CB D7 2F 90 00 [07:33:28]wFMCommunicate OK [07:33:28]SAM_PROTO_SignData done [07:33:28]FM_MakeSignedData done [07:33:28]CreateOFDProtocolMessage [07:33:28]wFMCommunicate request_size=4 [07:33:28]MH_SAM_APDU [07:33:28]CAPDU: 80 11 00 00 [07:33:28]Write to MH i2c: E2 08 00 3A AE 80 11 00 00 00 00 00 00 62 [07:33:28]Write i2c OK [07:33:28]MH_I2C_Read... [07:33:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:33:28]Read from MH i2c: E2 [07:33:28]MH_I2C_Read... [07:33:28]Read from MH i2c: E2 17 00 [07:33:28]MH_I2C_Read... [07:33:28]Read from MH i2c: E2 17 00 3A AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B4 [07:33:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:33:28]wFMCommunicate OK [07:33:28]CreateOFDProtocolMessage done [07:33:28]OFDSenderStorePacket 69187 [07:33:28]StoreOFDPacket docnum=69187 [07:33:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 BC 4D 07 01 4C 62 5A 03 01 00 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 20 00 00 00 F4 03 04 00 50 B2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 43 0E 01 00 35 04 06 00 54 80 B3 50 C2 C3 11 C6 51 D2 08 CB D7 2F [07:33:28]CheckFolder [07:33:28]dirname=/storage/ofd_packets [07:33:28]CheckFolder done [07:33:28]ProducePacketName [07:33:28]name=ofd_packets/00069187 [07:33:28]NVStorageSaveData ofd_packets/00069187 [07:33:28]File name is /storage/ofd_packets/00069187 [07:33:28]Write 301 bytes [07:33:28]NVStorageSaveData done [07:33:28]OFDSenderStorePacket done [07:33:28]KKMCreateOFDPacket done [07:33:28]NVStorageSaveData kkm_last_timestamp [07:33:28]File name is /storage/kkm_last_timestamp [07:33:28]Write 4 bytes [07:33:28]NVStorageSaveData done [07:33:28]ExternCall_PrintAddStr [07:33:28]wPrintStart [07:33:28]Write to MH i2c: 01 00 00 3B AE E9 [07:33:28]Write i2c OK [07:33:28]MH_I2C_Read... [07:33:28]Read from MH i2c: 01 [07:33:28]MH_I2C_Read... [07:33:28]Read from MH i2c: 01 07 00 [07:33:28]MH_I2C_Read... [07:33:28]Read from MH i2c: 01 07 00 3B AE 00 00 00 00 00 FF 0F FE [07:33:28]RasterBufferAndPrint [07:33:28]line Счет N : (1)2884900 [07:33:28]line ИНН: 02508201610067 [07:33:28]line Контрольно-Кассовый Чек [07:33:28]line ПРОДАЖА [07:33:28]line ТРК (МРК, ГНК) : 33 [07:33:28]line Товар: 2710124500 [07:33:28]line Аи-95-К-5 [07:33:28]line 6.740 * 74.20 [07:33:28]line = 500.11 [07:33:28]line НДС 12% НСП 1% [07:33:28]line > о реализуемом товаре [07:33:28]line ОКРУГЛЕНИЕ: -0.11 [07:33:28]line ИТОГО: 500.00 [07:33:28]line Внесено: 500.00 [07:33:28]line СДАЧА: 0.00 [07:33:28]line НСП 1% : 4.43 [07:33:28]line НДС 12% : 53.11 [07:33:28]line Наличными: 500.00 [07:33:28]line Безнал.: 0.00 [07:33:28]line Место: АЗС № 85 "Партнер Нефть" [07:33:28]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [07:33:28]line СНО: Общий режим [07:33:28]line Чек 32 20.10.2024 07:33 [07:33:28]line Смена: 193 ФФД: 1.0 [07:33:28]line ЗНМ: 0300000167 [07:33:28]line РНМ: 0000000000156251 [07:33:28]line Версия ККМ: v1.0 [07:33:28]line ФМ: 0000000000963346 [07:33:28]line ФД: 69187 [07:33:28]line ФПД: 92911740961475 [07:33:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T073336&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69187&fm=92911740961475&tin=02508201610067®Number=0000000000156251&sum=50000 [07:33:29]OFD Sender: Processing packet 69187 [packets to send 18, broken 17] [07:33:29]ProducePacketName [07:33:29]name=ofd_packets/00069187 [07:33:29]OFD Sender: To server: pG, [07:33:29]CommunicateWithHost lk.salyk.kg:30040 [07:33:29]ConnectInit lk.salyk.kg [07:33:29]written 0, free lines is 4095 [07:33:29]Connected sock=9 [07:33:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 BC 4D 07 01 4C 62 5A 03 01 00 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 20 00 00 00 F4 03 04 00 50 B2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 43 0E 01 00 35 04 06 00 54 80 B3 50 C2 C3 11 C6 51 D2 08 CB D7 2F [07:33:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 E6 50 47 00 2B 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 43 0E 01 00 F4 03 04 00 F7 5B 14 67 B6 04 01 00 00 85 B6 06 81 F8 8C 7C C3 [07:33:29]CommunicateWithHost err = 0 [07:33:29]CheckOFDResponse [07:33:29]1017 (14) - 77093643461234 [07:33:29]1041 (16) - 0000000000963346 [07:33:29]1040 (4) - 69187 [07:33:29]1012 (4) - 20.10.2024 01:25 [07:33:29]1206 (1) - 0 [07:33:29]OFD Sender: Remove packet 69187 [07:33:29]ProducePacketName [07:33:29]name=ofd_packets/00069187 [07:33:29]NVStorageDeleteData [07:33:29]Write to MH i2c: 01 00 00 66 AE 14 [07:33:29]Write i2c OK [07:33:29]MH_I2C_Read... [07:33:29]Read from MH i2c: 01 [07:33:29]MH_I2C_Read... [07:33:29]Read from MH i2c: 01 07 00 [07:33:29]MH_I2C_Read... [07:33:29]Read from MH i2c: 01 07 00 66 AE 00 00 00 00 00 D7 0C FE [07:33:29]RasterBufferAndPrint [07:33:29]line [07:33:29]line [07:33:29]line [07:33:29]line [07:33:29]line [07:33:29]written 0, free lines is 3294 [07:33:29]MH_Cut [07:33:29]Write to MH i2c: D1 01 00 6D AE 01 ED [07:33:29]Write i2c OK [07:33:29]MH_I2C_Read... [07:33:29]Read from MH i2c: D1 [07:33:29]MH_I2C_Read... [07:33:29]Read from MH i2c: D1 01 00 [07:33:29]MH_I2C_Read... [07:33:29]Read from MH i2c: D1 01 00 6D AE 00 EC [07:33:29]Write to MH i2c: 01 00 00 6E AE 1C [07:33:29]Write i2c OK [07:33:29]MH_I2C_Read... [07:33:29]OFD Sender: No OFD packet to send [07:33:30]*** Cut start [07:33:30]*** Partial cut [07:33:30]*** CUTSNS_PIN = 1 [07:33:30]*** CUTSNS_PIN = 0 [07:33:30]*** Brake cut motor [07:33:30]Read from MH i2c: 01 [07:33:30]MH_I2C_Read... [07:33:30]*** Stop cut motor [07:33:30]*** Cut end [07:33:30]Read from MH i2c: 01 07 00 [07:33:30]MH_I2C_Read... [07:33:30]Read from MH i2c: 01 07 00 6E AE 00 00 00 00 00 FF 0F 31 [07:33:30]process_action close_receipt done [07:33:30]requested_data is exist [07:33:30]produce_requested_data [07:33:30]requested_item fm.sn is exist - process it [07:33:30]wFMCommunicate request_size=4 [07:33:30]MH_SAM_APDU [07:33:30]CAPDU: 80 11 00 00 [07:33:30]Write to MH i2c: E2 08 00 6F AE 80 11 00 00 00 00 00 00 97 [07:33:30]Write i2c OK [07:33:30]MH_I2C_Read... [07:33:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:33:30]Read from MH i2c: E2 [07:33:30]MH_I2C_Read... [07:33:30]Read from MH i2c: E2 17 00 [07:33:30]MH_I2C_Read... [07:33:30]Read from MH i2c: E2 17 00 6F AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E9 [07:33:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:33:30]wFMCommunicate OK [07:33:30]requested_item fd.num is exist - process it [07:33:30]SAM_PROTO_GetFieldsCounters [07:33:30]wFMCommunicate request_size=4 [07:33:30]MH_SAM_APDU [07:33:30]CAPDU: 80 13 00 00 [07:33:30]Write to MH i2c: E2 08 00 70 AE 80 13 00 00 00 00 00 00 9A [07:33:30]Write i2c OK [07:33:30]MH_I2C_Read... [07:33:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:33:31]Read from MH i2c: E2 [07:33:31]MH_I2C_Read... [07:33:31]Read from MH i2c: E2 62 00 [07:33:31]MH_I2C_Read... [07:33:31]Read from MH i2c: E2 62 00 70 AE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 43 0E 01 00 0E 04 04 00 C1 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 28 [07:33:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 43 0E 01 00 0E 04 04 00 C1 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 [07:33:31]wFMCommunicate OK [07:33:31]SAM_PROTO_GetFieldsCounters done [07:33:31]requested_item shift.num is exist - process it [07:33:31]requested_item shift.opened is exist - process it [07:33:31]req_shift_opened [07:33:31]FM_GetShiftState [07:33:31]SAM_PROTO_GetShiftState [07:33:31]wFMCommunicate request_size=4 [07:33:31]MH_SAM_APDU [07:33:31]CAPDU: 80 13 01 00 [07:33:31]Write to MH i2c: E2 08 00 71 AE 80 13 01 00 00 00 00 00 9C [07:33:31]Write i2c OK [07:33:31]MH_I2C_Read... [07:33:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:33:31]Read from MH i2c: E2 [07:33:31]MH_I2C_Read... [07:33:31]Read from MH i2c: E2 0E 00 [07:33:31]MH_I2C_Read... [07:33:31]Read from MH i2c: E2 0E 00 71 AE 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 A2 [07:33:31]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [07:33:31]wFMCommunicate OK [07:33:31]SAM_PROTO_GetShiftState done [07:33:31]FM_GetShiftState done [07:33:31]req_shift_opened done [07:33:31]requested_item shift.open_date is exist - process it [07:33:31]req_shift_open_date [07:33:31]req_shift_open_date done [07:33:31]produce_requested_data done [07:33:31]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69187,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [07:33:31]process_action_free close_receipt [07:33:31]json_value_free [07:33:31]json_value_free done [07:33:31]process_json_proto returns [07:33:31]Send response to host [07:33:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69187,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [07:33:31]free response buf [07:33:31]execute_script done [07:33:31]execute_script returns [07:33:31]free content buf [07:33:31]Sock 10.Close socket [07:33:31]Sock 10.Thread stoped [07:33:34]OFD Sender: No OFD packet to send [07:33:39]OFD Sender: No OFD packet to send [07:33:44]OFD Sender: No OFD packet to send [07:33:49]OFD Sender: No OFD packet to send [07:33:54]OFD Sender: No OFD packet to send [07:33:59]OFD Sender: No OFD packet to send [07:34:04]OFD Sender: No OFD packet to send [07:34:09]OFD Sender: No OFD packet to send [07:34:14]OFD Sender: No OFD packet to send [07:34:19]OFD Sender: No OFD packet to send [07:34:24]OFD Sender: No OFD packet to send [07:34:29]OFD Sender: No OFD packet to send [07:34:34]OFD Sender: No OFD packet to send [07:34:39]OFD Sender: No OFD packet to send [07:34:44]OFD Sender: No OFD packet to send [07:34:49]OFD Sender: No OFD packet to send [07:34:54]OFD Sender: No OFD packet to send [07:34:59]OFD Sender: No OFD packet to send [07:35:05]OFD Sender: No OFD packet to send [07:35:10]OFD Sender: No OFD packet to send [07:35:15]OFD Sender: No OFD packet to send [07:35:20]OFD Sender: No OFD packet to send [07:35:25]OFD Sender: No OFD packet to send [07:35:30]OFD Sender: No OFD packet to send [07:35:35]OFD Sender: No OFD packet to send [07:35:40]OFD Sender: No OFD packet to send [07:35:45]OFD Sender: No OFD packet to send [07:35:50]OFD Sender: No OFD packet to send [07:35:55]OFD Sender: No OFD packet to send [07:36:00]OFD Sender: No OFD packet to send [07:36:05]OFD Sender: No OFD packet to send [07:36:10]OFD Sender: No OFD packet to send [07:36:15]OFD Sender: No OFD packet to send [07:36:20]OFD Sender: No OFD packet to send [07:36:25]OFD Sender: No OFD packet to send [07:36:28]accept exits with 8 [07:36:28]New connection [07:36:28]New thread 3067116900 created [07:36:28]Thread 3067260260 joined [07:36:28]Waiting for new connection... [07:36:28] Sock 8.Parse request [07:36:28]Sock 8.Check first char [07:36:28]Sock 8.First char is OK [07:36:28]request: POST /json_proto HTTP/1.0 [07:36:28]Method: POST [07:36:28]URL: /json_proto [07:36:28]Method is POST - this is cgi request [07:36:28]url: /json_proto [07:36:28]query_string will be loaded in cgi processing [07:36:28]execute_cgi json_proto POST (null) [07:36:28]execute_cgi path=json_proto method=POST [07:36:28]POST find Content-Length [07:36:28]Host: 172.17.50.3:8080 [07:36:28]Content-Length: 689 [07:36:28]Content-Type: application/json [07:36:28] [07:36:28]POST finish read [07:36:28]Found Content-Length = 689 [07:36:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 45.340, "sum" : 3500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:36:28]execute_script... [07:36:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 45.340, "sum" : 3500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:36:28]POST & json_proto [07:36:28]process_json_proto [07:36:28]json parsed OK: [07:36:28]protocol is kg_v1.0 [07:36:28]action value=close_receipt [07:36:28]process_action close_receipt [07:36:28]cmd_close_receipt [07:36:28]MH_GetDate [07:36:28]Write to MH i2c: F0 00 00 72 AE 0F [07:36:28]Write i2c OK [07:36:28]MH_I2C_Read... [07:36:28]Read from MH i2c: F0 [07:36:28]MH_I2C_Read... [07:36:28]Read from MH i2c: F0 09 00 [07:36:28]MH_I2C_Read... [07:36:28]Read from MH i2c: F0 09 00 72 AE 00 05 B3 14 67 6B 98 1E 66 D2 [07:36:28]GetLastDocTimeStamp 1729409616 [07:36:28]current date 1729409797 [07:36:28]FM_GetShiftState [07:36:28]SAM_PROTO_GetShiftState [07:36:28]wFMCommunicate request_size=4 [07:36:28]MH_SAM_APDU [07:36:28]CAPDU: 80 13 01 00 [07:36:28]Write to MH i2c: E2 08 00 73 AE 80 13 01 00 00 00 00 00 9E [07:36:28]Write i2c OK [07:36:28]MH_I2C_Read... [07:36:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:36:28]Read from MH i2c: E2 [07:36:28]MH_I2C_Read... [07:36:28]Read from MH i2c: E2 0E 00 [07:36:28]MH_I2C_Read... [07:36:28]Read from MH i2c: E2 0E 00 73 AE 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 A4 [07:36:28]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [07:36:28]wFMCommunicate OK [07:36:28]SAM_PROTO_GetShiftState done [07:36:28]FM_GetShiftState done [07:36:28]opened in 1729383220 [07:36:28]opened+sec_in_day 1729469620 [07:36:28]quantity*price = 350024 [07:36:28]sum+1 = 350026 [07:36:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 3500.00 Внесено: 3500.00 СДАЧА: 0.00 НСП 1% : 30.98 НДС 12% : 371.71 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 33 20.10.2024 07:36 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69188 ФПД: 128203149236731 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T073637&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69188&fm=128203149236731&tin=02508201610067®Number=0000000000156251&sum=350000 [07:36:29]StoreToDocumentArchive [07:36:29]shift 193 fd 69188 [07:36:29]save to /storage/0193/doc_00069188 [07:36:29]save last doc name /storage/0193/doc_00069188 to /storage/kkm_last_doc_name [07:36:29]save OK [07:36:29]Clear old archive folders... [07:36:29]ProcessDocumentItem done err = 0, tmpTLVsize=257 [07:36:29]tlvbuf is 00495010 [07:36:29]SAM_PROTO_ClearQueue [07:36:29]wFMCommunicate request_size=4 [07:36:29]MH_SAM_APDU [07:36:29]CAPDU: 80 09 00 00 [07:36:29]Write to MH i2c: E2 08 00 80 AE 80 09 00 00 00 00 00 00 A0 [07:36:29]Write i2c OK [07:36:29]MH_I2C_Read... [07:36:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:36:29]Read from MH i2c: E2 [07:36:29]MH_I2C_Read... [07:36:29]Read from MH i2c: E2 03 00 [07:36:29]MH_I2C_Read... [07:36:29]Read from MH i2c: E2 03 00 80 AE 00 90 00 A2 [07:36:29]RAPDU: 90 00 [07:36:29]wFMCommunicate OK [07:36:29]SAM_PROTO_ClearQueue done [07:36:29]KKMCreateOFDPacket [07:36:29]OFDProtocolAddRootSTLVToBuf [07:36:29]FM_MakeSignedData [07:36:29]FM_MakeSignedData [07:36:29]SAM_PROTO_SignData [07:36:29]wFMCommunicate request_size=4 [07:36:29]MH_SAM_APDU [07:36:29]CAPDU: 80 0D 01 02 [07:36:29]Write to MH i2c: E2 08 00 81 AE 80 0D 01 02 00 00 00 00 A8 [07:36:29]Write i2c OK [07:36:29]MH_I2C_Read... [07:36:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:36:29]Read from MH i2c: E2 [07:36:29]MH_I2C_Read... [07:36:29]Read from MH i2c: E2 03 00 [07:36:29]MH_I2C_Read... [07:36:29]Read from MH i2c: E2 03 00 81 AE 00 90 00 A3 [07:36:29]RAPDU: 90 00 [07:36:29]wFMCommunicate OK [07:36:29]wFMCommunicate request_size=255 [07:36:29]MH_SAM_APDU [07:36:29]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 1C B1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 49 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 05 B3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 44 0E 01 [07:36:29]Write to MH i2c: E2 02 01 82 AE 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 1C B1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 49 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 05 B3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 44 0E 01 00 00 3A [07:36:29]Write i2c OK [07:36:29]MH_I2C_Read... [07:36:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:36:29]Read from MH i2c: E2 [07:36:29]MH_I2C_Read... [07:36:29]Read from MH i2c: E2 03 00 [07:36:29]MH_I2C_Read... [07:36:29]Read from MH i2c: E2 03 00 82 AE 00 90 00 A4 [07:36:29]RAPDU: 90 00 [07:36:29]wFMCommunicate OK [07:36:29]wFMCommunicate request_size=16 [07:36:29]MH_SAM_APDU [07:36:29]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 74 99 9F 2B 59 FB [07:36:29]Write to MH i2c: E2 13 00 83 AE 80 0D 02 02 0B 00 00 35 04 06 00 74 99 9F 2B 59 FB 00 00 2B [07:36:29]Write i2c OK [07:36:29]MH_I2C_Read... [07:36:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:36:30]Read from MH i2c: E2 [07:36:30]MH_I2C_Read... [07:36:30]Read from MH i2c: E2 03 00 [07:36:30]MH_I2C_Read... [07:36:30]Read from MH i2c: E2 03 00 83 AE 00 90 00 A5 [07:36:30]RAPDU: 90 00 [07:36:30]wFMCommunicate OK [07:36:30]wFMCommunicate request_size=4 [07:36:30]MH_SAM_APDU [07:36:30]CAPDU: 80 0D 03 02 [07:36:30]Write to MH i2c: E2 08 00 84 AE 80 0D 03 02 00 00 00 00 AD [07:36:30]Write i2c OK [07:36:30]MH_I2C_Read... [07:36:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:36:30]Read from MH i2c: E2 [07:36:30]MH_I2C_Read... [07:36:30]Read from MH i2c: E2 0B 00 [07:36:30]MH_I2C_Read... [07:36:30]Read from MH i2c: E2 0B 00 84 AE 00 C5 19 18 D8 E9 A1 EB D2 90 00 C3 [07:36:30]RAPDU: C5 19 18 D8 E9 A1 EB D2 90 00 [07:36:30]wFMCommunicate OK [07:36:30]SAM_PROTO_SignData done [07:36:30]FM_MakeSignedData done [07:36:30]CreateOFDProtocolMessage [07:36:30]wFMCommunicate request_size=4 [07:36:30]MH_SAM_APDU [07:36:30]CAPDU: 80 11 00 00 [07:36:30]Write to MH i2c: E2 08 00 85 AE 80 11 00 00 00 00 00 00 AD [07:36:30]Write i2c OK [07:36:30]MH_I2C_Read... [07:36:30]OFD Sender: No OFD packet to send [07:36:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:36:30]Read from MH i2c: E2 [07:36:30]MH_I2C_Read... [07:36:30]Read from MH i2c: E2 17 00 [07:36:30]MH_I2C_Read... [07:36:30]Read from MH i2c: E2 17 00 85 AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FF [07:36:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:36:30]wFMCommunicate OK [07:36:30]CreateOFDProtocolMessage done [07:36:30]OFDSenderStorePacket 69188 [07:36:30]StoreOFDPacket docnum=69188 [07:36:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 33 78 0D 01 85 A0 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 1C B1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 49 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 05 B3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 44 0E 01 00 35 04 06 00 74 99 9F 2B 59 FB C5 19 18 D8 E9 A1 EB D2 [07:36:30]CheckFolder [07:36:30]dirname=/storage/ofd_packets [07:36:30]CheckFolder done [07:36:30]ProducePacketName [07:36:30]name=ofd_packets/00069188 [07:36:30]NVStorageSaveData ofd_packets/00069188 [07:36:30]File name is /storage/ofd_packets/00069188 [07:36:30]Write 307 bytes [07:36:30]NVStorageSaveData done [07:36:30]OFDSenderStorePacket done [07:36:30]KKMCreateOFDPacket done [07:36:30]NVStorageSaveData kkm_last_timestamp [07:36:30]File name is /storage/kkm_last_timestamp [07:36:30]Write 4 bytes [07:36:30]NVStorageSaveData done [07:36:30]ExternCall_PrintAddStr [07:36:30]wPrintStart [07:36:30]Write to MH i2c: 01 00 00 86 AE 34 [07:36:30]Write i2c OK [07:36:30]MH_I2C_Read... [07:36:30]Read from MH i2c: 01 [07:36:30]MH_I2C_Read... [07:36:30]Read from MH i2c: 01 07 00 [07:36:30]MH_I2C_Read... [07:36:30]Read from MH i2c: 01 07 00 86 AE 00 00 00 00 00 FF 0F 49 [07:36:30]RasterBufferAndPrint [07:36:30]line Счет N : (1)2884901 [07:36:30]line ИНН: 02508201610067 [07:36:30]line Контрольно-Кассовый Чек [07:36:30]line ПРОДАЖА [07:36:30]line ТРК (МРК, ГНК) : 21 [07:36:30]line Товар: 2710194240 [07:36:30]line D-ENERGY Дт-К-2 [07:36:30]line 45.340 * 77.20 [07:36:30]line = 3500.25 [07:36:30]line НДС 12% НСП 1% [07:36:30]line > о реализуемом товаре [07:36:30]line ОКРУГЛЕНИЕ: -0.25 [07:36:30]line ИТОГО: 3500.00 [07:36:30]line Внесено: 3500.00 [07:36:30]line СДАЧА: 0.00 [07:36:30]line НСП 1% : 30.98 [07:36:30]line НДС 12% : 371.71 [07:36:30]line Наличными: 3500.00 [07:36:30]line Безнал.: 0.00 [07:36:30]line Место: АЗС № 85 "Партнер Нефть" [07:36:30]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [07:36:30]line СНО: Общий режим [07:36:30]line Чек 33 20.10.2024 07:36 [07:36:30]line Смена: 193 ФФД: 1.0 [07:36:30]line ЗНМ: 0300000167 [07:36:30]line РНМ: 0000000000156251 [07:36:30]line Версия ККМ: v1.0 [07:36:30]line ФМ: 0000000000963346 [07:36:30]line ФД: 69188 [07:36:30]line ФПД: 128203149236731 [07:36:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T073637&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69188&fm=128203149236731&tin=02508201610067®Number=0000000000156251&sum=350000 [07:36:30]OFD Sender: Processing packet 69188 [packets to send 18, broken 17] [07:36:30]ProducePacketName [07:36:30]name=ofd_packets/00069188 [07:36:30]OFD Sender: To server: pG, [07:36:30]CommunicateWithHost lk.salyk.kg:30040 [07:36:30]ConnectInit lk.salyk.kg [07:36:30]written 0, free lines is 4095 [07:36:30]Connected sock=10 [07:36:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 33 78 0D 01 85 A0 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 1C B1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 49 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 05 B3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 44 0E 01 00 35 04 06 00 74 99 9F 2B 59 FB C5 19 18 D8 E9 A1 EB D2 [07:36:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 6C 61 47 00 81 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 44 0E 01 00 F4 03 04 00 AD 5C 14 67 B6 04 01 00 00 4F D4 1F 9A C0 31 0D B6 [07:36:30]CommunicateWithHost err = 0 [07:36:30]CheckOFDResponse [07:36:30]1017 (14) - 77093643461234 [07:36:30]1041 (16) - 0000000000963346 [07:36:30]1040 (4) - 69188 [07:36:30]1012 (4) - 20.10.2024 01:28 [07:36:30]1206 (1) - 0 [07:36:30]OFD Sender: Remove packet 69188 [07:36:30]ProducePacketName [07:36:30]name=ofd_packets/00069188 [07:36:30]NVStorageDeleteData [07:36:30]Write to MH i2c: 01 00 00 B1 AE 5F [07:36:30]Write i2c OK [07:36:30]MH_I2C_Read... [07:36:30]Read from MH i2c: 01 [07:36:30]MH_I2C_Read... [07:36:30]Read from MH i2c: 01 07 00 [07:36:30]MH_I2C_Read... [07:36:30]Read from MH i2c: 01 07 00 B1 AE 00 00 00 00 00 F3 0C 65 [07:36:30]RasterBufferAndPrint [07:36:30]line [07:36:30]line [07:36:30]line [07:36:30]line [07:36:30]line [07:36:30]written 0, free lines is 3321 [07:36:30]MH_Cut [07:36:30]Write to MH i2c: D1 01 00 B8 AE 01 38 [07:36:30]Write i2c OK [07:36:30]MH_I2C_Read... [07:36:30]Read from MH i2c: D1 [07:36:30]MH_I2C_Read... [07:36:30]Read from MH i2c: D1 01 00 [07:36:30]MH_I2C_Read... [07:36:30]Read from MH i2c: D1 01 00 B8 AE 00 37 [07:36:30]Write to MH i2c: 01 00 00 B9 AE 67 [07:36:30]Write i2c OK [07:36:30]MH_I2C_Read... [07:36:31]OFD Sender: No OFD packet to send [07:36:31]*** Cut start [07:36:31]*** Partial cut [07:36:31]*** CUTSNS_PIN = 1 [07:36:31]*** CUTSNS_PIN = 0 [07:36:31]*** Brake cut motor [07:36:32]Read from MH i2c: 01 [07:36:32]MH_I2C_Read... [07:36:32]*** Stop cut motor [07:36:32]*** Cut end [07:36:32]Read from MH i2c: 01 07 00 [07:36:32]MH_I2C_Read... [07:36:32]Read from MH i2c: 01 07 00 B9 AE 00 00 00 00 00 FF 0F 7C [07:36:32]process_action close_receipt done [07:36:32]requested_data is exist [07:36:32]produce_requested_data [07:36:32]requested_item fm.sn is exist - process it [07:36:32]wFMCommunicate request_size=4 [07:36:32]MH_SAM_APDU [07:36:32]CAPDU: 80 11 00 00 [07:36:32]Write to MH i2c: E2 08 00 BA AE 80 11 00 00 00 00 00 00 E2 [07:36:32]Write i2c OK [07:36:32]MH_I2C_Read... [07:36:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:36:32]Read from MH i2c: E2 [07:36:32]MH_I2C_Read... [07:36:32]Read from MH i2c: E2 17 00 [07:36:32]MH_I2C_Read... [07:36:32]Read from MH i2c: E2 17 00 BA AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 34 [07:36:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:36:32]wFMCommunicate OK [07:36:32]requested_item fd.num is exist - process it [07:36:32]SAM_PROTO_GetFieldsCounters [07:36:32]wFMCommunicate request_size=4 [07:36:32]MH_SAM_APDU [07:36:32]CAPDU: 80 13 00 00 [07:36:32]Write to MH i2c: E2 08 00 BB AE 80 13 00 00 00 00 00 00 E5 [07:36:32]Write i2c OK [07:36:32]MH_I2C_Read... [07:36:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:36:32]Read from MH i2c: E2 [07:36:32]MH_I2C_Read... [07:36:32]Read from MH i2c: E2 62 00 [07:36:32]MH_I2C_Read... [07:36:32]Read from MH i2c: E2 62 00 BB AE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 44 0E 01 00 0E 04 04 00 C1 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 77 [07:36:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 44 0E 01 00 0E 04 04 00 C1 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 [07:36:32]wFMCommunicate OK [07:36:32]SAM_PROTO_GetFieldsCounters done [07:36:32]requested_item shift.num is exist - process it [07:36:32]requested_item shift.opened is exist - process it [07:36:32]req_shift_opened [07:36:32]FM_GetShiftState [07:36:32]SAM_PROTO_GetShiftState [07:36:32]wFMCommunicate request_size=4 [07:36:32]MH_SAM_APDU [07:36:32]CAPDU: 80 13 01 00 [07:36:32]Write to MH i2c: E2 08 00 BC AE 80 13 01 00 00 00 00 00 E7 [07:36:32]Write i2c OK [07:36:32]MH_I2C_Read... [07:36:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:36:32]Read from MH i2c: E2 [07:36:32]MH_I2C_Read... [07:36:32]Read from MH i2c: E2 0E 00 [07:36:32]MH_I2C_Read... [07:36:32]Read from MH i2c: E2 0E 00 BC AE 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 ED [07:36:32]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [07:36:32]wFMCommunicate OK [07:36:32]SAM_PROTO_GetShiftState done [07:36:32]FM_GetShiftState done [07:36:32]req_shift_opened done [07:36:32]requested_item shift.open_date is exist - process it [07:36:32]req_shift_open_date [07:36:32]req_shift_open_date done [07:36:32]produce_requested_data done [07:36:32]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69188,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [07:36:32]process_action_free close_receipt [07:36:32]json_value_free [07:36:32]json_value_free done [07:36:32]process_json_proto returns [07:36:32]Send response to host [07:36:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69188,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [07:36:32]free response buf [07:36:32]execute_script done [07:36:32]execute_script returns [07:36:32]free content buf [07:36:32]Sock 8.Close socket [07:36:32]Sock 8.Thread stoped [07:36:36]OFD Sender: No OFD packet to send [07:36:41]OFD Sender: No OFD packet to send [07:36:46]OFD Sender: No OFD packet to send [07:36:51]OFD Sender: No OFD packet to send [07:36:56]OFD Sender: No OFD packet to send [07:37:01]OFD Sender: No OFD packet to send [07:37:06]OFD Sender: No OFD packet to send [07:37:11]OFD Sender: No OFD packet to send [07:37:16]OFD Sender: No OFD packet to send [07:37:21]OFD Sender: No OFD packet to send [07:37:26]OFD Sender: No OFD packet to send [07:37:31]OFD Sender: No OFD packet to send [07:37:36]OFD Sender: No OFD packet to send [07:37:41]OFD Sender: No OFD packet to send [07:37:46]OFD Sender: No OFD packet to send [07:37:51]OFD Sender: No OFD packet to send [07:37:56]OFD Sender: No OFD packet to send [07:38:01]OFD Sender: No OFD packet to send [07:38:05]accept exits with 9 [07:38:05]New connection [07:38:05]New thread 3067260260 created [07:38:05]Thread 3067116900 joined [07:38:05]Waiting for new connection... [07:38:05] Sock 9.Parse request [07:38:05]Sock 9.Check first char [07:38:05]Sock 9.First char is OK [07:38:05]request: POST /json_proto HTTP/1.0 [07:38:05]Method: POST [07:38:05]URL: /json_proto [07:38:05]Method is POST - this is cgi request [07:38:05]url: /json_proto [07:38:05]query_string will be loaded in cgi processing [07:38:05]execute_cgi json_proto POST (null) [07:38:05]execute_cgi path=json_proto method=POST [07:38:05]POST find Content-Length [07:38:05]Host: 172.17.50.3:8080 [07:38:05]Content-Length: 678 [07:38:05]Content-Type: application/json [07:38:05] [07:38:05]POST finish read [07:38:05]Found Content-Length = 678 [07:38:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:38:05]execute_script... [07:38: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)2884902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:38:05]POST & json_proto [07:38:05]process_json_proto [07:38:05]json parsed OK: [07:38:05]protocol is kg_v1.0 [07:38:05]action value=close_receipt [07:38:05]process_action close_receipt [07:38:05]cmd_close_receipt [07:38:05]MH_GetDate [07:38:05]Write to MH i2c: F0 00 00 BD AE 5A [07:38:05]Write i2c OK [07:38:05]MH_I2C_Read... [07:38:05]Read from MH i2c: F0 [07:38:05]MH_I2C_Read... [07:38:05]Read from MH i2c: F0 09 00 [07:38:05]MH_I2C_Read... [07:38:05]Read from MH i2c: F0 09 00 BD AE 00 66 B3 14 67 6B 98 1E 66 7E [07:38:05]GetLastDocTimeStamp 1729409797 [07:38:05]current date 1729409894 [07:38:05]FM_GetShiftState [07:38:05]SAM_PROTO_GetShiftState [07:38:05]wFMCommunicate request_size=4 [07:38:05]MH_SAM_APDU [07:38:05]CAPDU: 80 13 01 00 [07:38:05]Write to MH i2c: E2 08 00 BE AE 80 13 01 00 00 00 00 00 E9 [07:38:05]Write i2c OK [07:38:05]MH_I2C_Read... [07:38:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:38:05]Read from MH i2c: E2 [07:38:05]MH_I2C_Read... [07:38:05]Read from MH i2c: E2 0E 00 [07:38:05]MH_I2C_Read... [07:38:05]Read from MH i2c: E2 0E 00 BE AE 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 EF [07:38:05]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [07:38:05]wFMCommunicate OK [07:38:05]SAM_PROTO_GetShiftState done [07:38:05]FM_GetShiftState done [07:38:05]opened in 1729383220 [07:38:05]opened+sec_in_day 1729469620 [07:38:05]quantity*price = 50041 [07:38:05]sum+1 = 50042 [07:38:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 34 20.10.2024 07:38 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69189 ФПД: 226998363837933 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T073814&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69189&fm=226998363837933&tin=02508201610067®Number=0000000000156251&sum=50000 [07:38:06]StoreToDocumentArchive [07:38:06]shift 193 fd 69189 [07:38:06]save to /storage/0193/doc_00069189 [07:38:06]save last doc name /storage/0193/doc_00069189 to /storage/kkm_last_doc_name [07:38:06]save OK [07:38:06]Clear old archive folders... [07:38:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:38:06]tlvbuf is 005E6380 [07:38:06]SAM_PROTO_ClearQueue [07:38:06]wFMCommunicate request_size=4 [07:38:06]MH_SAM_APDU [07:38:06]CAPDU: 80 09 00 00 [07:38:06]Write to MH i2c: E2 08 00 CB AE 80 09 00 00 00 00 00 00 EB [07:38:06]Write i2c OK [07:38:06]MH_I2C_Read... [07:38:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:38:06]Read from MH i2c: E2 [07:38:06]MH_I2C_Read... [07:38:06]Read from MH i2c: E2 03 00 [07:38:06]MH_I2C_Read... [07:38:06]Read from MH i2c: E2 03 00 CB AE 00 90 00 ED [07:38:06]RAPDU: 90 00 [07:38:06]wFMCommunicate OK [07:38:06]SAM_PROTO_ClearQueue done [07:38:06]KKMCreateOFDPacket [07:38:06]OFDProtocolAddRootSTLVToBuf [07:38:06]FM_MakeSignedData [07:38:06]FM_MakeSignedData [07:38:06]SAM_PROTO_SignData [07:38:06]wFMCommunicate request_size=4 [07:38:06]MH_SAM_APDU [07:38:06]CAPDU: 80 0D 01 02 [07:38:06]Write to MH i2c: E2 08 00 CC AE 80 0D 01 02 00 00 00 00 F3 [07:38:06]Write i2c OK [07:38:06]MH_I2C_Read... [07:38:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:38:06]Read from MH i2c: E2 [07:38:06]MH_I2C_Read... [07:38:06]Read from MH i2c: E2 03 00 [07:38:06]MH_I2C_Read... [07:38:06]Read from MH i2c: E2 03 00 CC AE 00 90 00 EE [07:38:06]RAPDU: 90 00 [07:38:06]wFMCommunicate OK [07:38:06]wFMCommunicate request_size=255 [07:38:06]MH_SAM_APDU [07:38:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 66 B3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 45 0E 01 00 35 04 06 00 CE [07:38:06]Write to MH i2c: E2 02 01 CD AE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 66 B3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 45 0E 01 00 35 04 06 00 CE 00 00 15 [07:38:06]Write i2c OK [07:38:06]MH_I2C_Read... [07:38:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:38:07]Read from MH i2c: E2 [07:38:07]MH_I2C_Read... [07:38:07]Read from MH i2c: E2 03 00 [07:38:07]MH_I2C_Read... [07:38:07]Read from MH i2c: E2 03 00 CD AE 00 90 00 EF [07:38:07]RAPDU: 90 00 [07:38:07]wFMCommunicate OK [07:38:07]wFMCommunicate request_size=10 [07:38:07]MH_SAM_APDU [07:38:07]CAPDU: 80 0D 02 02 05 74 2C D7 55 ED [07:38:07]Write to MH i2c: E2 0D 00 CE AE 80 0D 02 02 05 00 74 2C D7 55 ED 00 00 B9 [07:38:07]Write i2c OK [07:38:07]MH_I2C_Read... [07:38:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:38:07]Read from MH i2c: E2 [07:38:07]MH_I2C_Read... [07:38:07]Read from MH i2c: E2 03 00 [07:38:07]MH_I2C_Read... [07:38:07]Read from MH i2c: E2 03 00 CE AE 00 90 00 F0 [07:38:07]RAPDU: 90 00 [07:38:07]wFMCommunicate OK [07:38:07]wFMCommunicate request_size=4 [07:38:07]MH_SAM_APDU [07:38:07]CAPDU: 80 0D 03 02 [07:38:07]Write to MH i2c: E2 08 00 CF AE 80 0D 03 02 00 00 00 00 F8 [07:38:07]Write i2c OK [07:38:07]MH_I2C_Read... [07:38:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:38:07]Read from MH i2c: E2 [07:38:07]MH_I2C_Read... [07:38:07]Read from MH i2c: E2 0B 00 [07:38:07]MH_I2C_Read... [07:38:07]Read from MH i2c: E2 0B 00 CF AE 00 37 CB B3 40 13 72 98 1F 90 00 2A [07:38:07]RAPDU: 37 CB B3 40 13 72 98 1F 90 00 [07:38:07]wFMCommunicate OK [07:38:07]SAM_PROTO_SignData done [07:38:07]FM_MakeSignedData done [07:38:07]CreateOFDProtocolMessage [07:38:07]wFMCommunicate request_size=4 [07:38:07]MH_SAM_APDU [07:38:07]CAPDU: 80 11 00 00 [07:38:07]Write to MH i2c: E2 08 00 D0 AE 80 11 00 00 00 00 00 00 F8 [07:38:07]Write i2c OK [07:38:07]MH_I2C_Read... [07:38:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:38:07]Read from MH i2c: E2 [07:38:07]MH_I2C_Read... [07:38:07]Read from MH i2c: E2 17 00 [07:38:07]MH_I2C_Read... [07:38:07]Read from MH i2c: E2 17 00 D0 AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4A [07:38:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:38:07]wFMCommunicate OK [07:38:07]CreateOFDProtocolMessage done [07:38:07]OFDSenderStorePacket 69189 [07:38:07]StoreOFDPacket docnum=69189 [07:38:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 1A 35 07 01 AF B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 66 B3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 45 0E 01 00 35 04 06 00 CE 74 2C D7 55 ED 37 CB B3 40 13 72 98 1F [07:38:07]CheckFolder [07:38:07]dirname=/storage/ofd_packets [07:38:07]CheckFolder done [07:38:07]ProducePacketName [07:38:07]name=ofd_packets/00069189 [07:38:07]NVStorageSaveData ofd_packets/00069189 [07:38:07]File name is /storage/ofd_packets/00069189 [07:38:07]Write 301 bytes [07:38:07]NVStorageSaveData done [07:38:07]OFDSenderStorePacket done [07:38:07]KKMCreateOFDPacket done [07:38:07]NVStorageSaveData kkm_last_timestamp [07:38:07]File name is /storage/kkm_last_timestamp [07:38:07]Write 4 bytes [07:38:07]NVStorageSaveData done [07:38:07]ExternCall_PrintAddStr [07:38:07]wPrintStart [07:38:07]Write to MH i2c: 01 00 00 D1 AE 7F [07:38:07]Write i2c OK [07:38:07]MH_I2C_Read... [07:38:07]Read from MH i2c: 01 [07:38:07]MH_I2C_Read... [07:38:07]Read from MH i2c: 01 07 00 [07:38:07]MH_I2C_Read... [07:38:07]Read from MH i2c: 01 07 00 D1 AE 00 00 00 00 00 FF 0F 94 [07:38:07]RasterBufferAndPrint [07:38:07]line Счет N : (1)2884902 [07:38:07]line ИНН: 02508201610067 [07:38:07]line Контрольно-Кассовый Чек [07:38:07]line ПРОДАЖА [07:38:07]line ТРК (МРК, ГНК) : 32 [07:38:07]line Товар: 2710124130 [07:38:07]line Аи-92-К-5 [07:38:07]line 7.480 * 66.90 [07:38:07]line = 500.41 [07:38:07]line НДС 12% НСП 1% [07:38:07]line > о реализуемом товаре [07:38:07]line ОКРУГЛЕНИЕ: -0.41 [07:38:07]line ИТОГО: 500.00 [07:38:07]line Внесено: 500.00 [07:38:07]line СДАЧА: 0.00 [07:38:07]line НСП 1% : 4.43 [07:38:07]line НДС 12% : 53.14 [07:38:07]line Наличными: 500.00 [07:38:07]line Безнал.: 0.00 [07:38:07]line Место: АЗС № 85 "Партнер Нефть" [07:38:07]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [07:38:07]line СНО: Общий режим [07:38:07]line Чек 34 20.10.2024 07:38 [07:38:07]line Смена: 193 ФФД: 1.0 [07:38:07]line ЗНМ: 0300000167 [07:38:07]line РНМ: 0000000000156251 [07:38:07]line Версия ККМ: v1.0 [07:38:07]line ФМ: 0000000000963346 [07:38:07]line ФД: 69189 [07:38:07]line ФПД: 226998363837933 [07:38:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T073814&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69189&fm=226998363837933&tin=02508201610067®Number=0000000000156251&sum=50000 [07:38:07]OFD Sender: Processing packet 69189 [packets to send 18, broken 17] [07:38:07]ProducePacketName [07:38:07]name=ofd_packets/00069189 [07:38:07]OFD Sender: To server: pG, [07:38:07]CommunicateWithHost lk.salyk.kg:30040 [07:38:07]ConnectInit lk.salyk.kg [07:38:07]written 0, free lines is 4095 [07:38:07]Connected sock=10 [07:38:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 1A 35 07 01 AF B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 66 B3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 45 0E 01 00 35 04 06 00 CE 74 2C D7 55 ED 37 CB B3 40 13 72 98 1F [07:38:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 1F F0 47 00 7E 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 30 39 36 33 33 34 36 10 04 04 00 45 0E 01 00 F4 03 04 00 0E 5D 14 67 B6 04 01 00 00 32 23 FE A6 05 AD 58 C8 [07:38:07]CommunicateWithHost err = 0 [07:38:07]CheckOFDResponse [07:38:07]1017 (14) - 77093643461234 [07:38:07]1041 (16) - 0000000000963346 [07:38:07]1040 (4) - 69189 [07:38:07]1012 (4) - 20.10.2024 01:29 [07:38:07]1206 (1) - 0 [07:38:07]OFD Sender: Remove packet 69189 [07:38:07]ProducePacketName [07:38:07]name=ofd_packets/00069189 [07:38:07]NVStorageDeleteData [07:38:07]Write to MH i2c: 01 00 00 FC AE AA [07:38:07]Write i2c OK [07:38:07]MH_I2C_Read... [07:38:07]Read from MH i2c: 01 [07:38:07]MH_I2C_Read... [07:38:07]Read from MH i2c: 01 07 00 [07:38:07]MH_I2C_Read... [07:38:07]Read from MH i2c: 01 07 00 FC AE 00 00 00 00 00 E6 0C A3 [07:38:07]RasterBufferAndPrint [07:38:07]line [07:38:07]line [07:38:07]line [07:38:07]line [07:38:07]line [07:38:07]written 0, free lines is 3308 [07:38:08]MH_Cut [07:38:08]Write to MH i2c: D1 01 00 03 AF 01 84 [07:38:08]Write i2c OK [07:38:08]MH_I2C_Read... [07:38:08]Read from MH i2c: D1 [07:38:08]MH_I2C_Read... [07:38:08]Read from MH i2c: D1 01 00 [07:38:08]MH_I2C_Read... [07:38:08]Read from MH i2c: D1 01 00 03 AF 00 83 [07:38:08]Write to MH i2c: 01 00 00 04 AF B3 [07:38:08]Write i2c OK [07:38:08]MH_I2C_Read... [07:38:08]OFD Sender: No OFD packet to send [07:38:08]*** Cut start [07:38:08]*** Partial cut [07:38:08]*** CUTSNS_PIN = 1 [07:38:08]*** CUTSNS_PIN = 0 [07:38:08]*** Brake cut motor [07:38:09]Read from MH i2c: 01 [07:38:09]MH_I2C_Read... [07:38:09]*** Stop cut motor [07:38:09]*** Cut end [07:38:09]Read from MH i2c: 01 07 00 [07:38:09]MH_I2C_Read... [07:38:09]Read from MH i2c: 01 07 00 04 AF 00 00 00 00 00 FF 0F C8 [07:38:09]process_action close_receipt done [07:38:09]requested_data is exist [07:38:09]produce_requested_data [07:38:09]requested_item fm.sn is exist - process it [07:38:09]wFMCommunicate request_size=4 [07:38:09]MH_SAM_APDU [07:38:09]CAPDU: 80 11 00 00 [07:38:09]Write to MH i2c: E2 08 00 05 AF 80 11 00 00 00 00 00 00 2E [07:38:09]Write i2c OK [07:38:09]MH_I2C_Read... [07:38:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:38:09]Read from MH i2c: E2 [07:38:09]MH_I2C_Read... [07:38:09]Read from MH i2c: E2 17 00 [07:38:09]MH_I2C_Read... [07:38:09]Read from MH i2c: E2 17 00 05 AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 80 [07:38:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:38:09]wFMCommunicate OK [07:38:09]requested_item fd.num is exist - process it [07:38:09]SAM_PROTO_GetFieldsCounters [07:38:09]wFMCommunicate request_size=4 [07:38:09]MH_SAM_APDU [07:38:09]CAPDU: 80 13 00 00 [07:38:09]Write to MH i2c: E2 08 00 06 AF 80 13 00 00 00 00 00 00 31 [07:38:09]Write i2c OK [07:38:09]MH_I2C_Read... [07:38:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:38:09]Read from MH i2c: E2 [07:38:09]MH_I2C_Read... [07:38:09]Read from MH i2c: E2 62 00 [07:38:09]MH_I2C_Read... [07:38:09]Read from MH i2c: E2 62 00 06 AF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 45 0E 01 00 0E 04 04 00 C1 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 C7 [07:38:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 45 0E 01 00 0E 04 04 00 C1 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 [07:38:09]wFMCommunicate OK [07:38:09]SAM_PROTO_GetFieldsCounters done [07:38:09]requested_item shift.num is exist - process it [07:38:09]requested_item shift.opened is exist - process it [07:38:09]req_shift_opened [07:38:09]FM_GetShiftState [07:38:09]SAM_PROTO_GetShiftState [07:38:09]wFMCommunicate request_size=4 [07:38:09]MH_SAM_APDU [07:38:09]CAPDU: 80 13 01 00 [07:38:09]Write to MH i2c: E2 08 00 07 AF 80 13 01 00 00 00 00 00 33 [07:38:09]Write i2c OK [07:38:09]MH_I2C_Read... [07:38:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:38:09]Read from MH i2c: E2 [07:38:09]MH_I2C_Read... [07:38:09]Read from MH i2c: E2 0E 00 [07:38:09]MH_I2C_Read... [07:38:09]Read from MH i2c: E2 0E 00 07 AF 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 39 [07:38:09]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [07:38:09]wFMCommunicate OK [07:38:09]SAM_PROTO_GetShiftState done [07:38:09]FM_GetShiftState done [07:38:09]req_shift_opened done [07:38:09]requested_item shift.open_date is exist - process it [07:38:09]req_shift_open_date [07:38:09]req_shift_open_date done [07:38:09]produce_requested_data done [07:38:09]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69189,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [07:38:09]process_action_free close_receipt [07:38:09]json_value_free [07:38:09]json_value_free done [07:38:09]process_json_proto returns [07:38:09]Send response to host [07:38:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69189,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [07:38:09]free response buf [07:38:09]execute_script done [07:38:09]execute_script returns [07:38:09]free content buf [07:38:09]Sock 9.Close socket [07:38:09]Sock 9.Thread stoped [07:38:13]OFD Sender: No OFD packet to send [07:38:18]OFD Sender: No OFD packet to send [07:38:23]OFD Sender: No OFD packet to send [07:38:28]OFD Sender: No OFD packet to send [07:38:33]OFD Sender: No OFD packet to send [07:38:38]OFD Sender: No OFD packet to send [07:38:43]OFD Sender: No OFD packet to send [07:38:48]OFD Sender: No OFD packet to send [07:38:53]OFD Sender: No OFD packet to send [07:38:58]OFD Sender: No OFD packet to send [07:39:03]OFD Sender: No OFD packet to send [07:39:08]OFD Sender: No OFD packet to send [07:39:13]OFD Sender: No OFD packet to send [07:39:18]OFD Sender: No OFD packet to send [07:39:23]OFD Sender: No OFD packet to send [07:39:28]OFD Sender: No OFD packet to send [07:39:33]OFD Sender: No OFD packet to send [07:39:38]OFD Sender: No OFD packet to send [07:39:43]OFD Sender: No OFD packet to send [07:39:48]OFD Sender: No OFD packet to send [07:39:53]OFD Sender: No OFD packet to send [07:39:58]OFD Sender: No OFD packet to send [07:40:03]OFD Sender: No OFD packet to send [07:40:08]OFD Sender: No OFD packet to send [07:40:13]OFD Sender: No OFD packet to send [07:40:18]OFD Sender: No OFD packet to send [07:40:23]OFD Sender: No OFD packet to send [07:40:28]OFD Sender: No OFD packet to send [07:40:33]OFD Sender: No OFD packet to send [07:40:38]OFD Sender: No OFD packet to send [07:40:43]OFD Sender: No OFD packet to send [07:40:48]OFD Sender: No OFD packet to send [07:40:53]OFD Sender: No OFD packet to send [07:40:58]OFD Sender: No OFD packet to send [07:41:03]OFD Sender: No OFD packet to send [07:41:08]OFD Sender: No OFD packet to send [07:41:13]OFD Sender: No OFD packet to send [07:41:18]OFD Sender: No OFD packet to send [07:41:23]OFD Sender: No OFD packet to send [07:41:28]OFD Sender: No OFD packet to send [07:41:33]OFD Sender: No OFD packet to send [07:41:38]OFD Sender: No OFD packet to send [07:41:43]OFD Sender: No OFD packet to send [07:41:48]OFD Sender: No OFD packet to send [07:41:53]OFD Sender: No OFD packet to send [07:41:58]OFD Sender: No OFD packet to send [07:42:03]OFD Sender: No OFD packet to send [07:42:08]OFD Sender: No OFD packet to send [07:42:13]OFD Sender: No OFD packet to send [07:42:18]OFD Sender: No OFD packet to send [07:42:23]OFD Sender: No OFD packet to send [07:42:28]OFD Sender: No OFD packet to send [07:42:33]OFD Sender: No OFD packet to send [07:42:38]OFD Sender: No OFD packet to send [07:42:43]OFD Sender: No OFD packet to send [07:42:48]OFD Sender: No OFD packet to send [07:42:53]OFD Sender: No OFD packet to send [07:42:58]OFD Sender: No OFD packet to send [07:43:03]OFD Sender: No OFD packet to send [07:43:08]OFD Sender: No OFD packet to send [07:43:13]OFD Sender: No OFD packet to send [07:43:18]OFD Sender: No OFD packet to send [07:43:23]OFD Sender: No OFD packet to send [07:43:28]OFD Sender: No OFD packet to send [07:43:33]OFD Sender: No OFD packet to send [07:43:38]OFD Sender: No OFD packet to send [07:43:43]OFD Sender: No OFD packet to send [07:43:48]OFD Sender: No OFD packet to send [07:43:53]OFD Sender: No OFD packet to send [07:43:58]OFD Sender: No OFD packet to send [07:44:03]OFD Sender: No OFD packet to send [07:44:08]OFD Sender: No OFD packet to send [07:44:13]OFD Sender: No OFD packet to send [07:44:18]OFD Sender: No OFD packet to send [07:44:23]OFD Sender: No OFD packet to send [07:44:28]OFD Sender: No OFD packet to send [07:44:33]OFD Sender: No OFD packet to send [07:44:38]OFD Sender: No OFD packet to send [07:44:43]OFD Sender: No OFD packet to send [07:44:48]OFD Sender: No OFD packet to send [07:44:53]OFD Sender: No OFD packet to send [07:44:58]OFD Sender: No OFD packet to send [07:45:03]OFD Sender: No OFD packet to send [07:45:08]OFD Sender: No OFD packet to send [07:45:13]OFD Sender: No OFD packet to send [07:45:18]OFD Sender: No OFD packet to send [07:45:23]OFD Sender: No OFD packet to send [07:45:28]OFD Sender: No OFD packet to send [07:45:33]OFD Sender: No OFD packet to send [07:45:38]OFD Sender: No OFD packet to send [07:45:43]OFD Sender: No OFD packet to send [07:45:48]OFD Sender: No OFD packet to send [07:45:53]OFD Sender: No OFD packet to send [07:45:58]OFD Sender: No OFD packet to send [07:46:03]OFD Sender: No OFD packet to send [07:46:08]OFD Sender: No OFD packet to send [07:46:13]OFD Sender: No OFD packet to send [07:46:18]OFD Sender: No OFD packet to send [07:46:23]OFD Sender: No OFD packet to send [07:46:26]accept exits with 8 [07:46:26]New connection [07:46:26]New thread 3067116900 created [07:46:26]Thread 3067260260 joined [07:46:26]Waiting for new connection... [07:46:26] Sock 8.Parse request [07:46:26]Sock 8.Check first char [07:46:26]Sock 8.First char is OK [07:46:26]request: POST /json_proto HTTP/1.0 [07:46:26]Method: POST [07:46:26]URL: /json_proto [07:46:26]Method is POST - this is cgi request [07:46:26]url: /json_proto [07:46:26]query_string will be loaded in cgi processing [07:46:26]execute_cgi json_proto POST (null) [07:46:26]execute_cgi path=json_proto method=POST [07:46:26]POST find Content-Length [07:46:26]Host: 172.17.50.3:8080 [07:46:26]Content-Length: 682 [07:46:26]Content-Type: application/json [07:46:26] [07:46:26]POST finish read [07:46:26]Found Content-Length = 682 [07:46:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:26]execute_script... [07:46:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:26]POST & json_proto [07:46:26]process_json_proto [07:46:26]json parsed OK: [07:46:26]protocol is kg_v1.0 [07:46:26]action value=close_receipt [07:46:26]process_action close_receipt [07:46:26]cmd_close_receipt [07:46:26]MH_GetDate [07:46:26]Write to MH i2c: F0 00 00 08 AF A6 [07:46:26]Write i2c OK [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: F0 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: F0 09 00 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: F0 09 00 08 AF 00 5B B5 14 67 6B 98 1E 66 C1 [07:46:26]GetLastDocTimeStamp 1729409894 [07:46:26]current date 1729410395 [07:46:26]FM_GetShiftState [07:46:26]SAM_PROTO_GetShiftState [07:46:26]wFMCommunicate request_size=4 [07:46:26]MH_SAM_APDU [07:46:26]CAPDU: 80 13 01 00 [07:46:26]Write to MH i2c: E2 08 00 09 AF 80 13 01 00 00 00 00 00 35 [07:46:26]Write i2c OK [07:46:26]MH_I2C_Read... [07:46:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:26]Read from MH i2c: E2 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: E2 0E 00 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: E2 0E 00 09 AF 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 3B [07:46:26]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [07:46:26]wFMCommunicate OK [07:46:26]SAM_PROTO_GetShiftState done [07:46:26]FM_GetShiftState done [07:46:26]opened in 1729383220 [07:46:26]opened+sec_in_day 1729469620 [07:46:26]quantity*price = 50025 [07:46:26]sum+1 = 50026 [07:46:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 35 20.10.2024 07:46 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69190 ФПД: 228099809735244 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T074635&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69190&fm=228099809735244&tin=02508201610067®Number=0000000000156251&sum=50000 [07:46:27]StoreToDocumentArchive [07:46:27]shift 193 fd 69190 [07:46:27]save to /storage/0193/doc_00069190 [07:46:27]save last doc name /storage/0193/doc_00069190 to /storage/kkm_last_doc_name [07:46:27]save OK [07:46:27]Clear old archive folders... [07:46:27]ProcessDocumentItem done err = 0, tmpTLVsize=250 [07:46:27]tlvbuf is 005B6370 [07:46:27]SAM_PROTO_ClearQueue [07:46:27]wFMCommunicate request_size=4 [07:46:27]MH_SAM_APDU [07:46:27]CAPDU: 80 09 00 00 [07:46:27]Write to MH i2c: E2 08 00 16 AF 80 09 00 00 00 00 00 00 37 [07:46:27]Write i2c OK [07:46:27]MH_I2C_Read... [07:46:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:46:27]Read from MH i2c: E2 [07:46:27]MH_I2C_Read... [07:46:27]Read from MH i2c: E2 03 00 [07:46:27]MH_I2C_Read... [07:46:27]Read from MH i2c: E2 03 00 16 AF 00 90 00 39 [07:46:27]RAPDU: 90 00 [07:46:27]wFMCommunicate OK [07:46:27]SAM_PROTO_ClearQueue done [07:46:27]KKMCreateOFDPacket [07:46:27]OFDProtocolAddRootSTLVToBuf [07:46:27]FM_MakeSignedData [07:46:27]FM_MakeSignedData [07:46:27]SAM_PROTO_SignData [07:46:27]wFMCommunicate request_size=4 [07:46:27]MH_SAM_APDU [07:46:27]CAPDU: 80 0D 01 02 [07:46:27]Write to MH i2c: E2 08 00 17 AF 80 0D 01 02 00 00 00 00 3F [07:46:27]Write i2c OK [07:46:27]MH_I2C_Read... [07:46:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:46:27]Read from MH i2c: E2 [07:46:27]MH_I2C_Read... [07:46:27]Read from MH i2c: E2 03 00 [07:46:27]MH_I2C_Read... [07:46:27]Read from MH i2c: E2 03 00 17 AF 00 90 00 3A [07:46:27]RAPDU: 90 00 [07:46:27]wFMCommunicate OK [07:46:27]wFMCommunicate request_size=255 [07:46:27]MH_SAM_APDU [07:46:27]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 5B B5 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 46 0E 01 00 35 04 06 00 CF 74 [07:46:27]Write to MH i2c: E2 02 01 18 AF 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 5B B5 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 46 0E 01 00 35 04 06 00 CF 74 00 00 89 [07:46:27]Write i2c OK [07:46:27]MH_I2C_Read... [07:46:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:27]Read from MH i2c: E2 [07:46:27]MH_I2C_Read... [07:46:27]Read from MH i2c: E2 03 00 [07:46:27]MH_I2C_Read... [07:46:27]Read from MH i2c: E2 03 00 18 AF 00 90 00 3B [07:46:27]RAPDU: 90 00 [07:46:27]wFMCommunicate OK [07:46:27]wFMCommunicate request_size=9 [07:46:27]MH_SAM_APDU [07:46:27]CAPDU: 80 0D 02 02 04 A0 21 F2 4C [07:46:27]Write to MH i2c: E2 0C 00 19 AF 80 0D 02 02 04 00 A0 21 F2 4C 00 00 49 [07:46:27]Write i2c OK [07:46:27]MH_I2C_Read... [07:46:27]Read from MH i2c: E2 [07:46:27]MH_I2C_Read... [07:46:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:27]Read from MH i2c: E2 03 00 [07:46:27]MH_I2C_Read... [07:46:27]Read from MH i2c: E2 03 00 19 AF 00 90 00 3C [07:46:27]RAPDU: 90 00 [07:46:27]wFMCommunicate OK [07:46:27]wFMCommunicate request_size=4 [07:46:27]MH_SAM_APDU [07:46:27]CAPDU: 80 0D 03 02 [07:46:27]Write to MH i2c: E2 08 00 1A AF 80 0D 03 02 00 00 00 00 44 [07:46:27]Write i2c OK [07:46:27]MH_I2C_Read... [07:46:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:46:27]Read from MH i2c: E2 [07:46:27]MH_I2C_Read... [07:46:27]Read from MH i2c: E2 0B 00 [07:46:27]MH_I2C_Read... [07:46:27]Read from MH i2c: E2 0B 00 1A AF 00 4D E0 FF 03 89 5C E3 A1 90 00 DD [07:46:27]RAPDU: 4D E0 FF 03 89 5C E3 A1 90 00 [07:46:27]wFMCommunicate OK [07:46:27]SAM_PROTO_SignData done [07:46:27]FM_MakeSignedData done [07:46:27]CreateOFDProtocolMessage [07:46:27]wFMCommunicate request_size=4 [07:46:27]MH_SAM_APDU [07:46:27]CAPDU: 80 11 00 00 [07:46:27]Write to MH i2c: E2 08 00 1B AF 80 11 00 00 00 00 00 00 44 [07:46:27]Write i2c OK [07:46:27]MH_I2C_Read... [07:46:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:27]Read from MH i2c: E2 [07:46:27]MH_I2C_Read... [07:46:27]Read from MH i2c: E2 17 00 [07:46:27]MH_I2C_Read... [07:46:27]Read from MH i2c: E2 17 00 1B AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 96 [07:46:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:46:27]wFMCommunicate OK [07:46:27]CreateOFDProtocolMessage done [07:46:27]OFDSenderStorePacket 69190 [07:46:27]StoreOFDPacket docnum=69190 [07:46:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 F3 C9 06 01 B7 30 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 5B B5 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 46 0E 01 00 35 04 06 00 CF 74 A0 21 F2 4C 4D E0 FF 03 89 5C E3 A1 [07:46:27]CheckFolder [07:46:27]dirname=/storage/ofd_packets [07:46:27]CheckFolder done [07:46:27]ProducePacketName [07:46:27]name=ofd_packets/00069190 [07:46:27]NVStorageSaveData ofd_packets/00069190 [07:46:27]File name is /storage/ofd_packets/00069190 [07:46:27]Write 300 bytes [07:46:27]NVStorageSaveData done [07:46:27]OFDSenderStorePacket done [07:46:27]KKMCreateOFDPacket done [07:46:27]NVStorageSaveData kkm_last_timestamp [07:46:27]File name is /storage/kkm_last_timestamp [07:46:27]Write 4 bytes [07:46:27]NVStorageSaveData done [07:46:27]ExternCall_PrintAddStr [07:46:27]wPrintStart [07:46:27]Write to MH i2c: 01 00 00 1C AF CB [07:46:27]Write i2c OK [07:46:27]MH_I2C_Read... [07:46:27]Read from MH i2c: 01 [07:46:27]MH_I2C_Read... [07:46:27]Read from MH i2c: 01 07 00 [07:46:27]MH_I2C_Read... [07:46:27]Read from MH i2c: 01 07 00 1C AF 00 00 00 00 00 FF 0F E0 [07:46:27]RasterBufferAndPrint [07:46:27]line Счет N : (1)2884903 [07:46:27]line ИНН: 02508201610067 [07:46:27]line Контрольно-Кассовый Чек [07:46:27]line ПРОДАЖА [07:46:27]line ТРК (МРК, ГНК) : 71 [07:46:27]line Товар: 2711129700 [07:46:27]line ГАЗ-К-3 [07:46:27]line 12.860 * 38.90 [07:46:27]line = 500.25 [07:46:27]line НДС 12% НСП 1% [07:46:27]line > о реализуемом товаре [07:46:27]line ОКРУГЛЕНИЕ: -0.25 [07:46:27]line ИТОГО: 500.00 [07:46:27]line Внесено: 500.00 [07:46:27]line СДАЧА: 0.00 [07:46:27]line НСП 1% : 4.43 [07:46:27]line НДС 12% : 53.12 [07:46:27]line Наличными: 500.00 [07:46:27]line Безнал.: 0.00 [07:46:27]line Место: АЗС № 85 "Партнер Нефть" [07:46:27]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [07:46:27]line СНО: Общий режим [07:46:27]line Чек 35 20.10.2024 07:46 [07:46:27]line Смена: 193 ФФД: 1.0 [07:46:27]line ЗНМ: 0300000167 [07:46:27]line РНМ: 0000000000156251 [07:46:27]line Версия ККМ: v1.0 [07:46:27]line ФМ: 0000000000963346 [07:46:27]line ФД: 69190 [07:46:27]line ФПД: 228099809735244 [07:46:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T074635&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69190&fm=228099809735244&tin=02508201610067®Number=0000000000156251&sum=50000 [07:46:28]OFD Sender: Processing packet 69190 [packets to send 18, broken 17] [07:46:28]ProducePacketName [07:46:28]name=ofd_packets/00069190 [07:46:28]OFD Sender: To server: pG, [07:46:28]CommunicateWithHost lk.salyk.kg:30040 [07:46:28]ConnectInit lk.salyk.kg [07:46:28]written 0, free lines is 4095 [07:46:28]Connected sock=10 [07:46:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 F3 C9 06 01 B7 30 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 5B B5 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 46 0E 01 00 35 04 06 00 CF 74 A0 21 F2 4C 4D E0 FF 03 89 5C E3 A1 [07:46:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 14 6B 47 00 26 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 46 0E 01 00 F4 03 04 00 03 5F 14 67 B6 04 01 00 00 F5 E4 1F A6 A3 CD 72 B1 [07:46:28]CommunicateWithHost err = 0 [07:46:28]CheckOFDResponse [07:46:28]1017 (14) - 77093643461234 [07:46:28]1041 (16) - 0000000000963346 [07:46:28]1040 (4) - 69190 [07:46:28]1012 (4) - 20.10.2024 01:38 [07:46:28]1206 (1) - 0 [07:46:28]OFD Sender: Remove packet 69190 [07:46:28]ProducePacketName [07:46:28]name=ofd_packets/00069190 [07:46:28]NVStorageDeleteData [07:46:28]Write to MH i2c: 01 00 00 47 AF F6 [07:46:28]Write i2c OK [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: 01 [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: 01 07 00 [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: 01 07 00 47 AF 00 00 00 00 00 F3 0C FC [07:46:28]RasterBufferAndPrint [07:46:28]line [07:46:28]line [07:46:28]line [07:46:28]line [07:46:28]line [07:46:28]written 0, free lines is 3321 [07:46:28]MH_Cut [07:46:28]Write to MH i2c: D1 01 00 4E AF 01 CF [07:46:28]Write i2c OK [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: D1 [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: D1 01 00 [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: D1 01 00 4E AF 00 CE [07:46:28]Write to MH i2c: 01 00 00 4F AF FE [07:46:28]Write i2c OK [07:46:28]MH_I2C_Read... [07:46:29]OFD Sender: No OFD packet to send [07:46:29]*** Cut start [07:46:29]*** Partial cut [07:46:29]*** CUTSNS_PIN = 1 [07:46:29]*** CUTSNS_PIN = 0 [07:46:29]*** Brake cut motor [07:46:30]Read from MH i2c: 01 [07:46:30]MH_I2C_Read... [07:46:30]*** Stop cut motor [07:46:30]*** Cut end [07:46:30]Read from MH i2c: 01 07 00 [07:46:30]MH_I2C_Read... [07:46:30]Read from MH i2c: 01 07 00 4F AF 00 00 00 00 00 FF 0F 13 [07:46:30]process_action close_receipt done [07:46:30]requested_data is exist [07:46:30]produce_requested_data [07:46:30]requested_item fm.sn is exist - process it [07:46:30]wFMCommunicate request_size=4 [07:46:30]MH_SAM_APDU [07:46:30]CAPDU: 80 11 00 00 [07:46:30]Write to MH i2c: E2 08 00 50 AF 80 11 00 00 00 00 00 00 79 [07:46:30]Write i2c OK [07:46:30]MH_I2C_Read... [07:46:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:30]Read from MH i2c: E2 [07:46:30]MH_I2C_Read... [07:46:30]Read from MH i2c: E2 17 00 [07:46:30]MH_I2C_Read... [07:46:30]Read from MH i2c: E2 17 00 50 AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CB [07:46:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:46:30]wFMCommunicate OK [07:46:30]requested_item fd.num is exist - process it [07:46:30]SAM_PROTO_GetFieldsCounters [07:46:30]wFMCommunicate request_size=4 [07:46:30]MH_SAM_APDU [07:46:30]CAPDU: 80 13 00 00 [07:46:30]Write to MH i2c: E2 08 00 51 AF 80 13 00 00 00 00 00 00 7C [07:46:30]Write i2c OK [07:46:30]MH_I2C_Read... [07:46:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:46:30]Read from MH i2c: E2 [07:46:30]MH_I2C_Read... [07:46:30]Read from MH i2c: E2 62 00 [07:46:30]MH_I2C_Read... [07:46:30]Read from MH i2c: E2 62 00 51 AF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 46 0E 01 00 0E 04 04 00 C1 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 16 [07:46:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 46 0E 01 00 0E 04 04 00 C1 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 [07:46:30]wFMCommunicate OK [07:46:30]SAM_PROTO_GetFieldsCounters done [07:46:30]requested_item shift.num is exist - process it [07:46:30]requested_item shift.opened is exist - process it [07:46:30]req_shift_opened [07:46:30]FM_GetShiftState [07:46:30]SAM_PROTO_GetShiftState [07:46:30]wFMCommunicate request_size=4 [07:46:30]MH_SAM_APDU [07:46:30]CAPDU: 80 13 01 00 [07:46:30]Write to MH i2c: E2 08 00 52 AF 80 13 01 00 00 00 00 00 7E [07:46:30]Write i2c OK [07:46:30]MH_I2C_Read... [07:46:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:30]Read from MH i2c: E2 [07:46:30]MH_I2C_Read... [07:46:30]Read from MH i2c: E2 0E 00 [07:46:30]MH_I2C_Read... [07:46:30]Read from MH i2c: E2 0E 00 52 AF 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 84 [07:46:30]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [07:46:30]wFMCommunicate OK [07:46:30]SAM_PROTO_GetShiftState done [07:46:30]FM_GetShiftState done [07:46:30]req_shift_opened done [07:46:30]requested_item shift.open_date is exist - process it [07:46:30]req_shift_open_date [07:46:30]req_shift_open_date done [07:46:30]produce_requested_data done [07:46:30]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69190,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [07:46:30]process_action_free close_receipt [07:46:30]json_value_free [07:46:30]json_value_free done [07:46:30]process_json_proto returns [07:46:30]Send response to host [07:46:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69190,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [07:46:30]free response buf [07:46:30]execute_script done [07:46:30]execute_script returns [07:46:30]free content buf [07:46:30]Sock 8.Close socket [07:46:30]Sock 8.Thread stoped [07:46:34]OFD Sender: No OFD packet to send [07:46:39]OFD Sender: No OFD packet to send [07:46:44]OFD Sender: No OFD packet to send [07:46:49]OFD Sender: No OFD packet to send [07:46:54]OFD Sender: No OFD packet to send [07:46:59]OFD Sender: No OFD packet to send [07:47:02]accept exits with 9 [07:47:02]New connection [07:47:02]New thread 3067260260 created [07:47:02]Thread 3067116900 joined [07:47:02]Waiting for new connection... [07:47:02] Sock 9.Parse request [07:47:02]Sock 9.Check first char [07:47:02]Sock 9.First char is OK [07:47:02]request: POST /json_proto HTTP/1.0 [07:47:02]Method: POST [07:47:02]URL: /json_proto [07:47:02]Method is POST - this is cgi request [07:47:02]url: /json_proto [07:47:02]query_string will be loaded in cgi processing [07:47:02]execute_cgi json_proto POST (null) [07:47:02]execute_cgi path=json_proto method=POST [07:47:02]POST find Content-Length [07:47:02]Host: 172.17.50.3:8080 [07:47:02]Content-Length: 678 [07:47:02]Content-Type: application/json [07:47:02] [07:47:02]POST finish read [07:47:02]Found Content-Length = 678 [07:47:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:47:02]execute_script... [07:47: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)2884904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:47:02]POST & json_proto [07:47:02]process_json_proto [07:47:02]json parsed OK: [07:47:02]protocol is kg_v1.0 [07:47:02]action value=close_receipt [07:47:02]process_action close_receipt [07:47:02]cmd_close_receipt [07:47:02]MH_GetDate [07:47:02]Write to MH i2c: F0 00 00 53 AF F1 [07:47:02]Write i2c OK [07:47:02]MH_I2C_Read... [07:47:02]Read from MH i2c: F0 [07:47:02]MH_I2C_Read... [07:47:02]Read from MH i2c: F0 09 00 [07:47:02]MH_I2C_Read... [07:47:02]Read from MH i2c: F0 09 00 53 AF 00 7F B5 14 67 6B 98 1E 66 30 [07:47:02]GetLastDocTimeStamp 1729410395 [07:47:02]current date 1729410431 [07:47:02]FM_GetShiftState [07:47:02]SAM_PROTO_GetShiftState [07:47:02]wFMCommunicate request_size=4 [07:47:02]MH_SAM_APDU [07:47:02]CAPDU: 80 13 01 00 [07:47:02]Write to MH i2c: E2 08 00 54 AF 80 13 01 00 00 00 00 00 80 [07:47:02]Write i2c OK [07:47:02]MH_I2C_Read... [07:47:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:47:02]Read from MH i2c: E2 [07:47:02]MH_I2C_Read... [07:47:02]Read from MH i2c: E2 0E 00 [07:47:02]MH_I2C_Read... [07:47:02]Read from MH i2c: E2 0E 00 54 AF 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 86 [07:47:02]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [07:47:02]wFMCommunicate OK [07:47:02]SAM_PROTO_GetShiftState done [07:47:02]FM_GetShiftState done [07:47:02]opened in 1729383220 [07:47:02]opened+sec_in_day 1729469620 [07:47:02]quantity*price = 60009 [07:47:02]sum+1 = 60010 [07:47:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 36 20.10.2024 07:47 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69191 ФПД: 2561485999755 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T074711&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69191&fm=2561485999755&tin=02508201610067®Number=0000000000156251&sum=60000 [07:47:03]StoreToDocumentArchive [07:47:03]shift 193 fd 69191 [07:47:03]save to /storage/0193/doc_00069191 [07:47:03]save last doc name /storage/0193/doc_00069191 to /storage/kkm_last_doc_name [07:47:03]save OK [07:47:03]Clear old archive folders... [07:47:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:47:03]tlvbuf is 005D6E80 [07:47:03]SAM_PROTO_ClearQueue [07:47:03]wFMCommunicate request_size=4 [07:47:03]MH_SAM_APDU [07:47:03]CAPDU: 80 09 00 00 [07:47:03]Write to MH i2c: E2 08 00 61 AF 80 09 00 00 00 00 00 00 82 [07:47:03]Write i2c OK [07:47:03]MH_I2C_Read... [07:47:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:47:03]Read from MH i2c: E2 [07:47:03]MH_I2C_Read... [07:47:03]Read from MH i2c: E2 03 00 [07:47:03]MH_I2C_Read... [07:47:03]Read from MH i2c: E2 03 00 61 AF 00 90 00 84 [07:47:03]RAPDU: 90 00 [07:47:03]wFMCommunicate OK [07:47:03]SAM_PROTO_ClearQueue done [07:47:03]KKMCreateOFDPacket [07:47:03]OFDProtocolAddRootSTLVToBuf [07:47:03]FM_MakeSignedData [07:47:03]FM_MakeSignedData [07:47:03]SAM_PROTO_SignData [07:47:03]wFMCommunicate request_size=4 [07:47:03]MH_SAM_APDU [07:47:03]CAPDU: 80 0D 01 02 [07:47:03]Write to MH i2c: E2 08 00 62 AF 80 0D 01 02 00 00 00 00 8A [07:47:03]Write i2c OK [07:47:03]MH_I2C_Read... [07:47:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:47:03]Read from MH i2c: E2 [07:47:03]MH_I2C_Read... [07:47:03]Read from MH i2c: E2 03 00 [07:47:03]MH_I2C_Read... [07:47:03]Read from MH i2c: E2 03 00 62 AF 00 90 00 85 [07:47:03]RAPDU: 90 00 [07:47:03]wFMCommunicate OK [07:47:03]wFMCommunicate request_size=255 [07:47:03]MH_SAM_APDU [07:47: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 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 7F B5 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 47 0E 01 00 35 04 06 00 02 [07:47:03]Write to MH i2c: E2 02 01 63 AF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 7F B5 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 47 0E 01 00 35 04 06 00 02 00 00 DC [07:47:03]Write i2c OK [07:47:03]MH_I2C_Read... [07:47:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:47:03]Read from MH i2c: E2 [07:47:03]MH_I2C_Read... [07:47:03]Read from MH i2c: E2 03 00 [07:47:03]MH_I2C_Read... [07:47:03]Read from MH i2c: E2 03 00 63 AF 00 90 00 86 [07:47:03]RAPDU: 90 00 [07:47:03]wFMCommunicate OK [07:47:03]wFMCommunicate request_size=10 [07:47:03]MH_SAM_APDU [07:47:03]CAPDU: 80 0D 02 02 05 54 64 76 8E 8B [07:47:03]Write to MH i2c: E2 0D 00 64 AF 80 0D 02 02 05 00 54 64 76 8E 8B 00 00 DE [07:47:03]Write i2c OK [07:47:03]MH_I2C_Read... [07:47:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:47:03]Read from MH i2c: E2 [07:47:03]MH_I2C_Read... [07:47:03]Read from MH i2c: E2 03 00 [07:47:03]MH_I2C_Read... [07:47:03]Read from MH i2c: E2 03 00 64 AF 00 90 00 87 [07:47:03]RAPDU: 90 00 [07:47:03]wFMCommunicate OK [07:47:03]wFMCommunicate request_size=4 [07:47:03]MH_SAM_APDU [07:47:03]CAPDU: 80 0D 03 02 [07:47:04]Write to MH i2c: E2 08 00 65 AF 80 0D 03 02 00 00 00 00 8F [07:47:04]Write i2c OK [07:47:04]MH_I2C_Read... [07:47:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:47:04]Read from MH i2c: E2 [07:47:04]MH_I2C_Read... [07:47:04]Read from MH i2c: E2 0B 00 [07:47:04]MH_I2C_Read... [07:47:04]Read from MH i2c: E2 0B 00 65 AF 00 C9 9F 8E 32 8C C8 19 1B 90 00 40 [07:47:04]RAPDU: C9 9F 8E 32 8C C8 19 1B 90 00 [07:47:04]wFMCommunicate OK [07:47:04]SAM_PROTO_SignData done [07:47:04]FM_MakeSignedData done [07:47:04]CreateOFDProtocolMessage [07:47:04]wFMCommunicate request_size=4 [07:47:04]MH_SAM_APDU [07:47:04]CAPDU: 80 11 00 00 [07:47:04]Write to MH i2c: E2 08 00 66 AF 80 11 00 00 00 00 00 00 8F [07:47:04]Write i2c OK [07:47:04]MH_I2C_Read... [07:47:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:47:04]Read from MH i2c: E2 [07:47:04]MH_I2C_Read... [07:47:04]Read from MH i2c: E2 17 00 [07:47:04]MH_I2C_Read... [07:47:04]Read from MH i2c: E2 17 00 66 AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E1 [07:47:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:47:04]wFMCommunicate OK [07:47:04]CreateOFDProtocolMessage done [07:47:04]OFDSenderStorePacket 69191 [07:47:04]StoreOFDPacket docnum=69191 [07:47:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 BD 7F 07 01 9D 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 7F B5 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 47 0E 01 00 35 04 06 00 02 54 64 76 8E 8B C9 9F 8E 32 8C C8 19 1B [07:47:04]CheckFolder [07:47:04]dirname=/storage/ofd_packets [07:47:04]CheckFolder done [07:47:04]ProducePacketName [07:47:04]name=ofd_packets/00069191 [07:47:04]NVStorageSaveData ofd_packets/00069191 [07:47:04]File name is /storage/ofd_packets/00069191 [07:47:04]Write 301 bytes [07:47:04]NVStorageSaveData done [07:47:04]OFDSenderStorePacket done [07:47:04]KKMCreateOFDPacket done [07:47:04]NVStorageSaveData kkm_last_timestamp [07:47:04]File name is /storage/kkm_last_timestamp [07:47:04]Write 4 bytes [07:47:04]NVStorageSaveData done [07:47:04]ExternCall_PrintAddStr [07:47:04]wPrintStart [07:47:04]Write to MH i2c: 01 00 00 67 AF 16 [07:47:04]Write i2c OK [07:47:04]MH_I2C_Read... [07:47:04]Read from MH i2c: 01 [07:47:04]MH_I2C_Read... [07:47:04]Read from MH i2c: 01 07 00 [07:47:04]MH_I2C_Read... [07:47:04]Read from MH i2c: 01 07 00 67 AF 00 00 00 00 00 FF 0F 2B [07:47:04]RasterBufferAndPrint [07:47:04]line Счет N : (1)2884904 [07:47:04]line ИНН: 02508201610067 [07:47:04]line Контрольно-Кассовый Чек [07:47:04]line ПРОДАЖА [07:47:04]line ТРК (МРК, ГНК) : 22 [07:47:04]line Товар: 2710124130 [07:47:04]line Аи-92-К-5 [07:47:04]line 8.970 * 66.90 [07:47:04]line = 600.09 [07:47:04]line НДС 12% НСП 1% [07:47:04]line > о реализуемом товаре [07:47:04]line ОКРУГЛЕНИЕ: -0.09 [07:47:04]line ИТОГО: 600.00 [07:47:04]line Внесено: 600.00 [07:47:04]line СДАЧА: 0.00 [07:47:04]line НСП 1% : 5.31 [07:47:04]line НДС 12% : 63.73 [07:47:04]line Наличными: 600.00 [07:47:04]line Безнал.: 0.00 [07:47:04]line Место: АЗС № 85 "Партнер Нефть" [07:47:04]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [07:47:04]line СНО: Общий режим [07:47:04]line Чек 36 20.10.2024 07:47 [07:47:04]line Смена: 193 ФФД: 1.0 [07:47:04]line ЗНМ: 0300000167 [07:47:04]line РНМ: 0000000000156251 [07:47:04]line Версия ККМ: v1.0 [07:47:04]line ФМ: 0000000000963346 [07:47:04]line ФД: 69191 [07:47:04]line ФПД: 2561485999755 [07:47:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T074711&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69191&fm=2561485999755&tin=02508201610067®Number=0000000000156251&sum=60000 [07:47:04]OFD Sender: Processing packet 69191 [packets to send 18, broken 17] [07:47:04]ProducePacketName [07:47:04]name=ofd_packets/00069191 [07:47:04]OFD Sender: To server: pG, [07:47:04]CommunicateWithHost lk.salyk.kg:30040 [07:47:04]ConnectInit lk.salyk.kg [07:47:04]written 0, free lines is 4095 [07:47:04]Connected sock=11 [07:47:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 BD 7F 07 01 9D 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 7F B5 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 47 0E 01 00 35 04 06 00 02 54 64 76 8E 8B C9 9F 8E 32 8C C8 19 1B [07:47:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 49 BE 47 00 BF 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 47 0E 01 00 F4 03 04 00 27 5F 14 67 B6 04 01 00 00 13 96 34 0B E1 08 76 68 [07:47:04]CommunicateWithHost err = 0 [07:47:04]CheckOFDResponse [07:47:04]1017 (14) - 77093643461234 [07:47:04]1041 (16) - 0000000000963346 [07:47:04]1040 (4) - 69191 [07:47:04]1012 (4) - 20.10.2024 01:38 [07:47:04]1206 (1) - 0 [07:47:04]OFD Sender: Remove packet 69191 [07:47:04]ProducePacketName [07:47:04]name=ofd_packets/00069191 [07:47:04]NVStorageDeleteData [07:47:04]Write to MH i2c: 01 00 00 92 AF 41 [07:47:04]Write i2c OK [07:47:04]MH_I2C_Read... [07:47:04]Read from MH i2c: 01 [07:47:04]MH_I2C_Read... [07:47:04]Read from MH i2c: 01 07 00 [07:47:04]MH_I2C_Read... [07:47:04]Read from MH i2c: 01 07 00 92 AF 00 00 00 00 00 E4 0C 38 [07:47:04]RasterBufferAndPrint [07:47:04]line [07:47:04]line [07:47:04]line [07:47:04]line [07:47:04]line [07:47:04]written 0, free lines is 3306 [07:47:04]MH_Cut [07:47:04]Write to MH i2c: D1 01 00 99 AF 01 1A [07:47:04]Write i2c OK [07:47:04]MH_I2C_Read... [07:47:04]Read from MH i2c: D1 [07:47:04]MH_I2C_Read... [07:47:04]Read from MH i2c: D1 01 00 [07:47:04]MH_I2C_Read... [07:47:04]Read from MH i2c: D1 01 00 99 AF 00 19 [07:47:04]Write to MH i2c: 01 00 00 9A AF 49 [07:47:04]Write i2c OK [07:47:04]MH_I2C_Read... [07:47:05]OFD Sender: No OFD packet to send [07:47:05]*** Cut start [07:47:05]*** Partial cut [07:47:05]*** CUTSNS_PIN = 1 [07:47:05]*** CUTSNS_PIN = 0 [07:47:06]*** Brake cut motor [07:47:06]Read from MH i2c: 01 [07:47:06]MH_I2C_Read... [07:47:06]*** Stop cut motor [07:47:06]*** Cut end [07:47:06]Read from MH i2c: 01 07 00 [07:47:06]MH_I2C_Read... [07:47:06]Read from MH i2c: 01 07 00 9A AF 00 00 00 00 00 FF 0F 5E [07:47:06]process_action close_receipt done [07:47:06]requested_data is exist [07:47:06]produce_requested_data [07:47:06]requested_item fm.sn is exist - process it [07:47:06]wFMCommunicate request_size=4 [07:47:06]MH_SAM_APDU [07:47:06]CAPDU: 80 11 00 00 [07:47:06]Write to MH i2c: E2 08 00 9B AF 80 11 00 00 00 00 00 00 C4 [07:47:06]Write i2c OK [07:47:06]MH_I2C_Read... [07:47:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:47:06]Read from MH i2c: E2 [07:47:06]MH_I2C_Read... [07:47:06]Read from MH i2c: E2 17 00 [07:47:06]MH_I2C_Read... [07:47:06]Read from MH i2c: E2 17 00 9B AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 16 [07:47:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:47:06]wFMCommunicate OK [07:47:06]requested_item fd.num is exist - process it [07:47:06]SAM_PROTO_GetFieldsCounters [07:47:06]wFMCommunicate request_size=4 [07:47:06]MH_SAM_APDU [07:47:06]CAPDU: 80 13 00 00 [07:47:06]Write to MH i2c: E2 08 00 9C AF 80 13 00 00 00 00 00 00 C7 [07:47:06]Write i2c OK [07:47:06]MH_I2C_Read... [07:47:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:47:06]Read from MH i2c: E2 [07:47:06]MH_I2C_Read... [07:47:06]Read from MH i2c: E2 62 00 [07:47:06]MH_I2C_Read... [07:47:06]Read from MH i2c: E2 62 00 9C AF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 47 0E 01 00 0E 04 04 00 C1 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 65 [07:47:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 47 0E 01 00 0E 04 04 00 C1 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 [07:47:06]wFMCommunicate OK [07:47:06]SAM_PROTO_GetFieldsCounters done [07:47:06]requested_item shift.num is exist - process it [07:47:06]requested_item shift.opened is exist - process it [07:47:06]req_shift_opened [07:47:06]FM_GetShiftState [07:47:06]SAM_PROTO_GetShiftState [07:47:06]wFMCommunicate request_size=4 [07:47:06]MH_SAM_APDU [07:47:06]CAPDU: 80 13 01 00 [07:47:06]Write to MH i2c: E2 08 00 9D AF 80 13 01 00 00 00 00 00 C9 [07:47:06]Write i2c OK [07:47:06]MH_I2C_Read... [07:47:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:47:06]Read from MH i2c: E2 [07:47:06]MH_I2C_Read... [07:47:06]Read from MH i2c: E2 0E 00 [07:47:06]MH_I2C_Read... [07:47:06]Read from MH i2c: E2 0E 00 9D AF 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 CF [07:47:06]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [07:47:06]wFMCommunicate OK [07:47:06]SAM_PROTO_GetShiftState done [07:47:06]FM_GetShiftState done [07:47:06]req_shift_opened done [07:47:06]requested_item shift.open_date is exist - process it [07:47:06]req_shift_open_date [07:47:06]req_shift_open_date done [07:47:06]produce_requested_data done [07:47:06]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69191,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [07:47:06]process_action_free close_receipt [07:47:06]json_value_free [07:47:06]json_value_free done [07:47:06]process_json_proto returns [07:47:06]Send response to host [07:47:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69191,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [07:47:06]free response buf [07:47:06]execute_script done [07:47:06]execute_script returns [07:47:06]free content buf [07:47:06]Sock 9.Close socket [07:47:06]Sock 9.Thread stoped [07:47:10]OFD Sender: No OFD packet to send [07:47:15]OFD Sender: No OFD packet to send [07:47:20]OFD Sender: No OFD packet to send [07:47:25]OFD Sender: No OFD packet to send [07:47:30]OFD Sender: No OFD packet to send [07:47:35]OFD Sender: No OFD packet to send [07:47:40]OFD Sender: No OFD packet to send [07:47:45]OFD Sender: No OFD packet to send [07:47:50]OFD Sender: No OFD packet to send [07:47:55]OFD Sender: No OFD packet to send [07:48:00]OFD Sender: No OFD packet to send [07:48:05]OFD Sender: No OFD packet to send [07:48:10]OFD Sender: No OFD packet to send [07:48:15]OFD Sender: No OFD packet to send [07:48:20]OFD Sender: No OFD packet to send [07:48:25]OFD Sender: No OFD packet to send [07:48:30]OFD Sender: No OFD packet to send [07:48:35]OFD Sender: No OFD packet to send [07:48:40]OFD Sender: No OFD packet to send [07:48:41]accept exits with 8 [07:48:41]New connection [07:48:41]New thread 3067116900 created [07:48:41]Thread 3067260260 joined [07:48:41]Waiting for new connection... [07:48:41] Sock 8.Parse request [07:48:41]Sock 8.Check first char [07:48:41]Sock 8.First char is OK [07:48:41]request: POST /json_proto HTTP/1.0 [07:48:41]Method: POST [07:48:41]URL: /json_proto [07:48:41]Method is POST - this is cgi request [07:48:41]url: /json_proto [07:48:41]query_string will be loaded in cgi processing [07:48:41]execute_cgi json_proto POST (null) [07:48:41]execute_cgi path=json_proto method=POST [07:48:41]POST find Content-Length [07:48:41]Host: 172.17.50.3:8080 [07:48:41]Content-Length: 683 [07:48:41]Content-Type: application/json [07:48:41] [07:48:41]POST finish read [07:48:41]Found Content-Length = 683 [07:48:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:41]execute_script... [07:48: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)2884905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:41]POST & json_proto [07:48:41]process_json_proto [07:48:41]json parsed OK: [07:48:41]protocol is kg_v1.0 [07:48:41]action value=close_receipt [07:48:41]process_action close_receipt [07:48:41]cmd_close_receipt [07:48:41]MH_GetDate [07:48:41]Write to MH i2c: F0 00 00 9E AF 3C [07:48:41]Write i2c OK [07:48:41]MH_I2C_Read... [07:48:41]Read from MH i2c: F0 [07:48:41]MH_I2C_Read... [07:48:41]Read from MH i2c: F0 09 00 [07:48:41]MH_I2C_Read... [07:48:41]Read from MH i2c: F0 09 00 9E AF 00 E2 B5 14 67 6B 98 1E 66 DE [07:48:41]GetLastDocTimeStamp 1729410431 [07:48:41]current date 1729410530 [07:48:41]FM_GetShiftState [07:48:41]SAM_PROTO_GetShiftState [07:48:41]wFMCommunicate request_size=4 [07:48:41]MH_SAM_APDU [07:48:41]CAPDU: 80 13 01 00 [07:48:41]Write to MH i2c: E2 08 00 9F AF 80 13 01 00 00 00 00 00 CB [07:48:41]Write i2c OK [07:48:41]MH_I2C_Read... [07:48:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:41]Read from MH i2c: E2 [07:48:41]MH_I2C_Read... [07:48:41]Read from MH i2c: E2 0E 00 [07:48:41]MH_I2C_Read... [07:48:41]Read from MH i2c: E2 0E 00 9F AF 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 D1 [07:48:41]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [07:48:41]wFMCommunicate OK [07:48:41]SAM_PROTO_GetShiftState done [07:48:41]FM_GetShiftState done [07:48:41]opened in 1729383220 [07:48:41]opened+sec_in_day 1729469620 [07:48:41]quantity*price = 150032 [07:48:41]sum+1 = 150033 [07:48:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 37 20.10.2024 07:48 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69192 ФПД: 239040276494223 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T074850&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69192&fm=239040276494223&tin=02508201610067®Number=0000000000156251&sum=150000 [07:48:42]StoreToDocumentArchive [07:48:42]shift 193 fd 69192 [07:48:42]save to /storage/0193/doc_00069192 [07:48:42]save last doc name /storage/0193/doc_00069192 to /storage/kkm_last_doc_name [07:48:42]save OK [07:48:42]Clear old archive folders... [07:48:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:48:42]tlvbuf is 00476970 [07:48:42]SAM_PROTO_ClearQueue [07:48:42]wFMCommunicate request_size=4 [07:48:42]MH_SAM_APDU [07:48:42]CAPDU: 80 09 00 00 [07:48:42]Write to MH i2c: E2 08 00 AC AF 80 09 00 00 00 00 00 00 CD [07:48:42]Write i2c OK [07:48:42]MH_I2C_Read... [07:48:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:48:42]Read from MH i2c: E2 [07:48:42]MH_I2C_Read... [07:48:42]Read from MH i2c: E2 03 00 [07:48:42]MH_I2C_Read... [07:48:42]Read from MH i2c: E2 03 00 AC AF 00 90 00 CF [07:48:42]RAPDU: 90 00 [07:48:42]wFMCommunicate OK [07:48:42]SAM_PROTO_ClearQueue done [07:48:42]KKMCreateOFDPacket [07:48:42]OFDProtocolAddRootSTLVToBuf [07:48:42]FM_MakeSignedData [07:48:42]FM_MakeSignedData [07:48:42]SAM_PROTO_SignData [07:48:42]wFMCommunicate request_size=4 [07:48:42]MH_SAM_APDU [07:48:42]CAPDU: 80 0D 01 02 [07:48:42]Write to MH i2c: E2 08 00 AD AF 80 0D 01 02 00 00 00 00 D5 [07:48:42]Write i2c OK [07:48:42]MH_I2C_Read... [07:48:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:48:42]Read from MH i2c: E2 [07:48:42]MH_I2C_Read... [07:48:42]Read from MH i2c: E2 03 00 [07:48:42]MH_I2C_Read... [07:48:42]Read from MH i2c: E2 03 00 AD AF 00 90 00 D0 [07:48:42]RAPDU: 90 00 [07:48:42]wFMCommunicate OK [07:48:42]wFMCommunicate request_size=255 [07:48:42]MH_SAM_APDU [07:48: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 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 E2 B5 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 48 0E 01 00 35 04 06 00 D9 [07:48:42]Write to MH i2c: E2 02 01 AE AF 80 0D 02 02 FA 00 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 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 E2 B5 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 48 0E 01 00 35 04 06 00 D9 00 00 E9 [07:48:42]Write i2c OK [07:48:42]MH_I2C_Read... [07:48:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:43]Read from MH i2c: E2 [07:48:43]MH_I2C_Read... [07:48:43]Read from MH i2c: E2 03 00 [07:48:43]MH_I2C_Read... [07:48:43]Read from MH i2c: E2 03 00 AE AF 00 90 00 D1 [07:48:43]RAPDU: 90 00 [07:48:43]wFMCommunicate OK [07:48:43]wFMCommunicate request_size=10 [07:48:43]MH_SAM_APDU [07:48:43]CAPDU: 80 0D 02 02 05 67 E6 C4 77 8F [07:48:43]Write to MH i2c: E2 0D 00 AF AF 80 0D 02 02 05 00 67 E6 C4 77 8F 00 00 F9 [07:48:43]Write i2c OK [07:48:43]MH_I2C_Read... [07:48:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:43]Read from MH i2c: E2 [07:48:43]MH_I2C_Read... [07:48:43]Read from MH i2c: E2 03 00 [07:48:43]MH_I2C_Read... [07:48:43]Read from MH i2c: E2 03 00 AF AF 00 90 00 D2 [07:48:43]RAPDU: 90 00 [07:48:43]wFMCommunicate OK [07:48:43]wFMCommunicate request_size=4 [07:48:43]MH_SAM_APDU [07:48:43]CAPDU: 80 0D 03 02 [07:48:43]Write to MH i2c: E2 08 00 B0 AF 80 0D 03 02 00 00 00 00 DA [07:48:43]Write i2c OK [07:48:43]MH_I2C_Read... [07:48:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:48:43]Read from MH i2c: E2 [07:48:43]MH_I2C_Read... [07:48:43]Read from MH i2c: E2 0B 00 [07:48:43]MH_I2C_Read... [07:48:43]Read from MH i2c: E2 0B 00 B0 AF 00 33 71 70 05 1B 2C 53 A0 90 00 2E [07:48:43]RAPDU: 33 71 70 05 1B 2C 53 A0 90 00 [07:48:43]wFMCommunicate OK [07:48:43]SAM_PROTO_SignData done [07:48:43]FM_MakeSignedData done [07:48:43]CreateOFDProtocolMessage [07:48:43]wFMCommunicate request_size=4 [07:48:43]MH_SAM_APDU [07:48:43]CAPDU: 80 11 00 00 [07:48:43]Write to MH i2c: E2 08 00 B1 AF 80 11 00 00 00 00 00 00 DA [07:48:43]Write i2c OK [07:48:43]MH_I2C_Read... [07:48:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:43]Read from MH i2c: E2 [07:48:43]MH_I2C_Read... [07:48:43]Read from MH i2c: E2 17 00 [07:48:43]MH_I2C_Read... [07:48:43]Read from MH i2c: E2 17 00 B1 AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2C [07:48:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:48:43]wFMCommunicate OK [07:48:43]CreateOFDProtocolMessage done [07:48:43]OFDSenderStorePacket 69192 [07:48:43]StoreOFDPacket docnum=69192 [07:48:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 D4 20 07 01 B9 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 E2 B5 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 48 0E 01 00 35 04 06 00 D9 67 E6 C4 77 8F 33 71 70 05 1B 2C 53 A0 [07:48:43]CheckFolder [07:48:43]dirname=/storage/ofd_packets [07:48:43]CheckFolder done [07:48:43]ProducePacketName [07:48:43]name=ofd_packets/00069192 [07:48:43]NVStorageSaveData ofd_packets/00069192 [07:48:43]File name is /storage/ofd_packets/00069192 [07:48:43]Write 301 bytes [07:48:43]NVStorageSaveData done [07:48:43]OFDSenderStorePacket done [07:48:43]KKMCreateOFDPacket done [07:48:43]NVStorageSaveData kkm_last_timestamp [07:48:43]File name is /storage/kkm_last_timestamp [07:48:43]Write 4 bytes [07:48:43]NVStorageSaveData done [07:48:43]ExternCall_PrintAddStr [07:48:43]wPrintStart [07:48:43]Write to MH i2c: 01 00 00 B2 AF 61 [07:48:43]Write i2c OK [07:48:43]MH_I2C_Read... [07:48:43]Read from MH i2c: 01 [07:48:43]MH_I2C_Read... [07:48:43]Read from MH i2c: 01 07 00 [07:48:43]MH_I2C_Read... [07:48:43]Read from MH i2c: 01 07 00 B2 AF 00 00 00 00 00 FF 0F 76 [07:48:43]RasterBufferAndPrint [07:48:43]line Счет N : (1)2884905 [07:48:43]line ИНН: 02508201610067 [07:48:43]line Контрольно-Кассовый Чек [07:48:43]line ПРОДАЖА [07:48:43]line ТРК (МРК, ГНК) : 13 [07:48:43]line Товар: 2710124500 [07:48:43]line Аи-95-К-5 [07:48:43]line 20.220 * 74.20 [07:48:43]line = 1500.32 [07:48:43]line НДС 12% НСП 1% [07:48:43]line > о реализуемом товаре [07:48:43]line ОКРУГЛЕНИЕ: -0.32 [07:48:43]line ИТОГО: 1500.00 [07:48:43]line Внесено: 1500.00 [07:48:43]line СДАЧА: 0.00 [07:48:43]line НСП 1% : 13.28 [07:48:43]line НДС 12% : 159.33 [07:48:43]line Наличными: 1500.00 [07:48:43]line Безнал.: 0.00 [07:48:43]line Место: АЗС № 85 "Партнер Нефть" [07:48:43]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [07:48:43]line СНО: Общий режим [07:48:43]line Чек 37 20.10.2024 07:48 [07:48:43]line Смена: 193 ФФД: 1.0 [07:48:43]line ЗНМ: 0300000167 [07:48:43]line РНМ: 0000000000156251 [07:48:43]line Версия ККМ: v1.0 [07:48:43]line ФМ: 0000000000963346 [07:48:43]line ФД: 69192 [07:48:43]line ФПД: 239040276494223 [07:48:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T074850&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69192&fm=239040276494223&tin=02508201610067®Number=0000000000156251&sum=150000 [07:48:43]OFD Sender: Processing packet 69192 [packets to send 18, broken 17] [07:48:43]ProducePacketName [07:48:43]name=ofd_packets/00069192 [07:48:43]OFD Sender: To server: pG, [07:48:43]CommunicateWithHost lk.salyk.kg:30040 [07:48:43]ConnectInit lk.salyk.kg [07:48:43]written 0, free lines is 4095 [07:48:43]Connected sock=10 [07:48:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 D4 20 07 01 B9 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 E2 B5 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 48 0E 01 00 35 04 06 00 D9 67 E6 C4 77 8F 33 71 70 05 1B 2C 53 A0 [07:48:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 E7 29 47 00 D6 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 48 0E 01 00 F4 03 04 00 8A 5F 14 67 B6 04 01 00 00 86 EE 20 06 FE 88 A1 A9 [07:48:43]CommunicateWithHost err = 0 [07:48:43]CheckOFDResponse [07:48:43]1017 (14) - 77093643461234 [07:48:43]1041 (16) - 0000000000963346 [07:48:43]1040 (4) - 69192 [07:48:43]1012 (4) - 20.10.2024 01:40 [07:48:43]1206 (1) - 0 [07:48:43]OFD Sender: Remove packet 69192 [07:48:43]ProducePacketName [07:48:43]name=ofd_packets/00069192 [07:48:43]NVStorageDeleteData [07:48:44]Write to MH i2c: 01 00 00 DD AF 8C [07:48:44]Write i2c OK [07:48:44]MH_I2C_Read... [07:48:44]Read from MH i2c: 01 [07:48:44]MH_I2C_Read... [07:48:44]Read from MH i2c: 01 07 00 [07:48:44]MH_I2C_Read... [07:48:44]Read from MH i2c: 01 07 00 DD AF 00 00 00 00 00 F4 0C 93 [07:48:44]RasterBufferAndPrint [07:48:44]line [07:48:44]line [07:48:44]line [07:48:44]line [07:48:44]line [07:48:44]written 0, free lines is 3326 [07:48:44]MH_Cut [07:48:44]Write to MH i2c: D1 01 00 E4 AF 01 65 [07:48:44]Write i2c OK [07:48:44]MH_I2C_Read... [07:48:44]Read from MH i2c: D1 [07:48:44]MH_I2C_Read... [07:48:44]Read from MH i2c: D1 01 00 [07:48:44]MH_I2C_Read... [07:48:44]Read from MH i2c: D1 01 00 E4 AF 00 64 [07:48:44]Write to MH i2c: 01 00 00 E5 AF 94 [07:48:44]Write i2c OK [07:48:44]MH_I2C_Read... [07:48:44]OFD Sender: No OFD packet to send [07:48:44]*** Cut start [07:48:44]*** Partial cut [07:48:44]*** CUTSNS_PIN = 1 [07:48:44]*** CUTSNS_PIN = 0 [07:48:45]*** Brake cut motor [07:48:45]Read from MH i2c: 01 [07:48:45]MH_I2C_Read... [07:48:45]*** Stop cut motor [07:48:45]*** Cut end [07:48:45]Read from MH i2c: 01 07 00 [07:48:45]MH_I2C_Read... [07:48:45]Read from MH i2c: 01 07 00 E5 AF 00 00 00 00 00 FF 0F A9 [07:48:45]process_action close_receipt done [07:48:45]requested_data is exist [07:48:45]produce_requested_data [07:48:45]requested_item fm.sn is exist - process it [07:48:45]wFMCommunicate request_size=4 [07:48:45]MH_SAM_APDU [07:48:45]CAPDU: 80 11 00 00 [07:48:45]Write to MH i2c: E2 08 00 E6 AF 80 11 00 00 00 00 00 00 0F [07:48:45]Write i2c OK [07:48:45]MH_I2C_Read... [07:48:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:45]Read from MH i2c: E2 [07:48:45]MH_I2C_Read... [07:48:45]Read from MH i2c: E2 17 00 [07:48:45]MH_I2C_Read... [07:48:45]Read from MH i2c: E2 17 00 E6 AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 61 [07:48:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:48:45]wFMCommunicate OK [07:48:45]requested_item fd.num is exist - process it [07:48:45]SAM_PROTO_GetFieldsCounters [07:48:45]wFMCommunicate request_size=4 [07:48:45]MH_SAM_APDU [07:48:45]CAPDU: 80 13 00 00 [07:48:45]Write to MH i2c: E2 08 00 E7 AF 80 13 00 00 00 00 00 00 12 [07:48:45]Write i2c OK [07:48:45]MH_I2C_Read... [07:48:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:48:45]Read from MH i2c: E2 [07:48:45]MH_I2C_Read... [07:48:45]Read from MH i2c: E2 62 00 [07:48:45]MH_I2C_Read... [07:48:45]Read from MH i2c: E2 62 00 E7 AF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 48 0E 01 00 0E 04 04 00 C1 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 B4 [07:48:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 48 0E 01 00 0E 04 04 00 C1 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 [07:48:45]wFMCommunicate OK [07:48:45]SAM_PROTO_GetFieldsCounters done [07:48:45]requested_item shift.num is exist - process it [07:48:45]requested_item shift.opened is exist - process it [07:48:45]req_shift_opened [07:48:45]FM_GetShiftState [07:48:45]SAM_PROTO_GetShiftState [07:48:45]wFMCommunicate request_size=4 [07:48:45]MH_SAM_APDU [07:48:45]CAPDU: 80 13 01 00 [07:48:45]Write to MH i2c: E2 08 00 E8 AF 80 13 01 00 00 00 00 00 14 [07:48:45]Write i2c OK [07:48:45]MH_I2C_Read... [07:48:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:45]Read from MH i2c: E2 [07:48:45]MH_I2C_Read... [07:48:45]Read from MH i2c: E2 0E 00 [07:48:45]MH_I2C_Read... [07:48:45]Read from MH i2c: E2 0E 00 E8 AF 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 1A [07:48:45]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [07:48:45]wFMCommunicate OK [07:48:45]SAM_PROTO_GetShiftState done [07:48:45]FM_GetShiftState done [07:48:45]req_shift_opened done [07:48:45]requested_item shift.open_date is exist - process it [07:48:45]req_shift_open_date [07:48:45]req_shift_open_date done [07:48:45]produce_requested_data done [07:48:45]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69192,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [07:48:45]process_action_free close_receipt [07:48:45]json_value_free [07:48:45]json_value_free done [07:48:45]process_json_proto returns [07:48:45]Send response to host [07:48:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69192,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [07:48:45]free response buf [07:48:45]execute_script done [07:48:45]execute_script returns [07:48:45]free content buf [07:48:45]Sock 8.Close socket [07:48:45]Sock 8.Thread stoped [07:48:49]OFD Sender: No OFD packet to send [07:48:54]OFD Sender: No OFD packet to send [07:48:59]OFD Sender: No OFD packet to send [07:49:04]OFD Sender: No OFD packet to send [07:49:09]OFD Sender: No OFD packet to send [07:49:14]OFD Sender: No OFD packet to send [07:49:19]OFD Sender: No OFD packet to send [07:49:24]OFD Sender: No OFD packet to send [07:49:29]OFD Sender: No OFD packet to send [07:49:34]OFD Sender: No OFD packet to send [07:49:39]OFD Sender: No OFD packet to send [07:49:39]int [07:49:39]Write to MH i2c: 01 00 00 E9 AF 98 [07:49:39]*** FLAG_PRN_PAP1 set [07:49:39]Write i2c OK [07:49:39]MH_I2C_Read... [07:49:39]Read from MH i2c: 01 [07:49:39]MH_I2C_Read... [07:49:39]Read from MH i2c: 01 07 00 [07:49:39]MH_I2C_Read... [07:49:39]Read from MH i2c: 01 07 00 E9 AF 00 01 00 00 00 FF 0F AE [07:49:39]state=0 [07:49:39]No paper [07:49:39]int [07:49:39]Write to MH i2c: 01 00 00 EA AF 99 [07:49:39]*** FLAG_PRN_PAP2 set [07:49:39]Write i2c OK [07:49:39]MH_I2C_Read... [07:49:39]Read from MH i2c: 01 [07:49:39]MH_I2C_Read... [07:49:39]Read from MH i2c: 01 07 00 [07:49:39]MH_I2C_Read... [07:49:39]Read from MH i2c: 01 07 00 EA AF 00 03 00 00 00 FF 0F B1 [07:49:39]state=0 [07:49:39]No paper [07:49:39]Cover opened [07:49:39]int [07:49:39]Write to MH i2c: 01 00 00 EB AF 9A [07:49:39]*** FLAG_PRN_PAP2 reset [07:49:39]Write i2c OK [07:49:39]MH_I2C_Read... [07:49:39]Read from MH i2c: 01 [07:49:39]MH_I2C_Read... [07:49:39]Read from MH i2c: 01 07 00 [07:49:39]MH_I2C_Read... [07:49:39]Read from MH i2c: 01 07 00 EB AF 00 01 00 00 00 FF 0F B0 [07:49:39]state=3 [07:49:39]No paper [07:49:39]Cover closed [07:49:40]int [07:49:40]Write to MH i2c: 01 00 00 EC AF 9B [07:49:40]*** FLAG_PRN_PAP2 set [07:49:40]Write i2c OK [07:49:40]MH_I2C_Read... [07:49:40]Read from MH i2c: 01 [07:49:40]MH_I2C_Read... [07:49:40]Read from MH i2c: 01 07 00 [07:49:40]MH_I2C_Read... [07:49:40]Read from MH i2c: 01 07 00 EC AF 00 03 00 00 00 FF 0F B3 [07:49:40]state=0 [07:49:40]No paper [07:49:40]Cover opened [07:49:40]int [07:49:40]Write to MH i2c: 01 00 00 ED AF 9C [07:49:40]*** FLAG_PRN_PAP2 reset [07:49:40]Write i2c OK [07:49:40]MH_I2C_Read... [07:49:40]Read from MH i2c: 01 [07:49:40]MH_I2C_Read... [07:49:40]Read from MH i2c: 01 07 00 [07:49:40]MH_I2C_Read... [07:49:40]Read from MH i2c: 01 07 00 ED AF 00 01 00 00 00 FF 0F B2 [07:49:40]state=3 [07:49:40]No paper [07:49:40]Cover closed [07:49:40]int [07:49:40]Write to MH i2c: 01 00 00 EE AF 9D [07:49:40]*** FLAG_PRN_PAP2 set [07:49:40]Write i2c OK [07:49:40]MH_I2C_Read... [07:49:40]Read from MH i2c: 01 [07:49:40]MH_I2C_Read... [07:49:40]Read from MH i2c: 01 07 00 [07:49:40]MH_I2C_Read... [07:49:40]Read from MH i2c: 01 07 00 EE AF 00 03 00 00 00 FF 0F B5 [07:49:40]state=0 [07:49:40]No paper [07:49:40]Cover opened [07:49:44]OFD Sender: No OFD packet to send [07:49:45]Write to MH i2c: 01 00 00 EF AF 9E [07:49:45]Write i2c OK [07:49:45]MH_I2C_Read... [07:49:45]Read from MH i2c: 01 [07:49:45]MH_I2C_Read... [07:49:45]Read from MH i2c: 01 07 00 [07:49:45]MH_I2C_Read... [07:49:45]Read from MH i2c: 01 07 00 EF AF 00 03 00 00 00 FF 0F B6 [07:49:45]state=3 [07:49:45]No paper [07:49:45]Cover opened [07:49:49]int [07:49:49]Write to MH i2c: 01 00 00 F0 AF 9F [07:49:49]*** FLAG_PRN_PAP2 reset [07:49:49]Write i2c OK [07:49:49]MH_I2C_Read... [07:49:49]Read from MH i2c: 01 [07:49:49]MH_I2C_Read... [07:49:49]Read from MH i2c: 01 07 00 [07:49:49]MH_I2C_Read... [07:49:49]Read from MH i2c: 01 07 00 F0 AF 00 01 00 00 00 FF 0F B5 [07:49:49]state=3 [07:49:49]No paper [07:49:49]Cover closed [07:49:49]int [07:49:49]Write to MH i2c: 01 00 00 F1 AF A0 [07:49:49]*** FLAG_PRN_PAP1 reset [07:49:49]Write i2c OK [07:49:49]MH_I2C_Read... [07:49:49]Read from MH i2c: 01 [07:49:49]MH_I2C_Read... [07:49:49]Read from MH i2c: 01 07 00 [07:49:49]MH_I2C_Read... [07:49:49]Read from MH i2c: 01 07 00 F1 AF 00 00 00 00 00 FF 0F B5 [07:49:49]state=0 [07:49:49]OFD Sender: No OFD packet to send [07:49:54]OFD Sender: No OFD packet to send [07:49:59]OFD Sender: No OFD packet to send [07:50:04]OFD Sender: No OFD packet to send [07:50:09]OFD Sender: No OFD packet to send [07:50:14]OFD Sender: No OFD packet to send [07:50:19]OFD Sender: No OFD packet to send [07:50:24]OFD Sender: No OFD packet to send [07:50:29]OFD Sender: No OFD packet to send [07:50:34]OFD Sender: No OFD packet to send [07:50:39]OFD Sender: No OFD packet to send [07:50:44]OFD Sender: No OFD packet to send [07:50:49]OFD Sender: No OFD packet to send [07:50:54]OFD Sender: No OFD packet to send [07:50:59]OFD Sender: No OFD packet to send [07:51:04]OFD Sender: No OFD packet to send [07:51:09]OFD Sender: No OFD packet to send [07:51:14]OFD Sender: No OFD packet to send [07:51:19]OFD Sender: No OFD packet to send [07:51:24]OFD Sender: No OFD packet to send [07:51:29]OFD Sender: No OFD packet to send [07:51:34]OFD Sender: No OFD packet to send [07:51:39]OFD Sender: No OFD packet to send [07:51:44]OFD Sender: No OFD packet to send [07:51:49]OFD Sender: No OFD packet to send [07:51:54]OFD Sender: No OFD packet to send [07:51:59]OFD Sender: No OFD packet to send [07:52:04]OFD Sender: No OFD packet to send [07:52:09]OFD Sender: No OFD packet to send [07:52:14]OFD Sender: No OFD packet to send [07:52:19]OFD Sender: No OFD packet to send [07:52:24]OFD Sender: No OFD packet to send [07:52:29]OFD Sender: No OFD packet to send [07:52:34]OFD Sender: No OFD packet to send [07:52:38]accept exits with 9 [07:52:38]New connection [07:52:38]New thread 3067260260 created [07:52:38]Thread 3067116900 joined [07:52:38]Waiting for new connection... [07:52:38] Sock 9.Parse request [07:52:38]Sock 9.Check first char [07:52:38]Sock 9.First char is OK [07:52:38]request: POST /json_proto HTTP/1.0 [07:52:38]Method: POST [07:52:38]URL: /json_proto [07:52:38]Method is POST - this is cgi request [07:52:38]url: /json_proto [07:52:38]query_string will be loaded in cgi processing [07:52:38]execute_cgi json_proto POST (null) [07:52:38]execute_cgi path=json_proto method=POST [07:52:38]POST find Content-Length [07:52:38]Host: 172.17.50.3:8080 [07:52:38]Content-Length: 683 [07:52:38]Content-Type: application/json [07:52:38] [07:52:38]POST finish read [07:52:38]Found Content-Length = 683 [07:52:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:52:38]execute_script... [07:52: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)2884906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:52:38]POST & json_proto [07:52:38]process_json_proto [07:52:38]json parsed OK: [07:52:38]protocol is kg_v1.0 [07:52:38]action value=close_receipt [07:52:38]process_action close_receipt [07:52:38]cmd_close_receipt [07:52:38]MH_GetDate [07:52:38]Write to MH i2c: F0 00 00 F2 AF 90 [07:52:38]Write i2c OK [07:52:38]MH_I2C_Read... [07:52:38]Read from MH i2c: F0 [07:52:38]MH_I2C_Read... [07:52:38]Read from MH i2c: F0 09 00 [07:52:38]MH_I2C_Read... [07:52:38]Read from MH i2c: F0 09 00 F2 AF 00 CF B6 14 67 6B 98 1E 66 20 [07:52:38]GetLastDocTimeStamp 1729410530 [07:52:38]current date 1729410767 [07:52:38]FM_GetShiftState [07:52:38]SAM_PROTO_GetShiftState [07:52:38]wFMCommunicate request_size=4 [07:52:38]MH_SAM_APDU [07:52:38]CAPDU: 80 13 01 00 [07:52:38]Write to MH i2c: E2 08 00 F3 AF 80 13 01 00 00 00 00 00 1F [07:52:38]Write i2c OK [07:52:38]MH_I2C_Read... [07:52:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:38]Read from MH i2c: E2 [07:52:38]MH_I2C_Read... [07:52:38]Read from MH i2c: E2 0E 00 [07:52:38]MH_I2C_Read... [07:52:38]Read from MH i2c: E2 0E 00 F3 AF 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 25 [07:52:38]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [07:52:38]wFMCommunicate OK [07:52:38]SAM_PROTO_GetShiftState done [07:52:38]FM_GetShiftState done [07:52:38]opened in 1729383220 [07:52:38]opened+sec_in_day 1729469620 [07:52:38]quantity*price = 150056 [07:52:38]sum+1 = 150058 [07:52:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 38 20.10.2024 07:52 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69193 ФПД: 97284238712707 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T075247&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69193&fm=97284238712707&tin=02508201610067®Number=0000000000156251&sum=150000 [07:52:39]StoreToDocumentArchive [07:52:39]shift 193 fd 69193 [07:52:39]save to /storage/0193/doc_00069193 [07:52:39]save last doc name /storage/0193/doc_00069193 to /storage/kkm_last_doc_name [07:52:39]save OK [07:52:39]Clear old archive folders... [07:52:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:52:39]tlvbuf is 0050C820 [07:52:39]SAM_PROTO_ClearQueue [07:52:39]wFMCommunicate request_size=4 [07:52:39]MH_SAM_APDU [07:52:39]CAPDU: 80 09 00 00 [07:52:39]Write to MH i2c: E2 08 00 00 B0 80 09 00 00 00 00 00 00 22 [07:52:39]Write i2c OK [07:52:39]MH_I2C_Read... [07:52:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:52:39]Read from MH i2c: E2 [07:52:39]MH_I2C_Read... [07:52:39]Read from MH i2c: E2 03 00 [07:52:39]MH_I2C_Read... [07:52:39]Read from MH i2c: E2 03 00 00 B0 00 90 00 24 [07:52:39]RAPDU: 90 00 [07:52:39]wFMCommunicate OK [07:52:39]SAM_PROTO_ClearQueue done [07:52:39]KKMCreateOFDPacket [07:52:39]OFDProtocolAddRootSTLVToBuf [07:52:39]FM_MakeSignedData [07:52:39]FM_MakeSignedData [07:52:39]SAM_PROTO_SignData [07:52:39]wFMCommunicate request_size=4 [07:52:39]MH_SAM_APDU [07:52:39]CAPDU: 80 0D 01 02 [07:52:39]Write to MH i2c: E2 08 00 01 B0 80 0D 01 02 00 00 00 00 2A [07:52:39]Write i2c OK [07:52:39]MH_I2C_Read... [07:52:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:52:39]Read from MH i2c: E2 [07:52:39]MH_I2C_Read... [07:52:39]Read from MH i2c: E2 03 00 [07:52:39]MH_I2C_Read... [07:52:39]Read from MH i2c: E2 03 00 01 B0 00 90 00 25 [07:52:39]RAPDU: 90 00 [07:52:39]wFMCommunicate OK [07:52:39]wFMCommunicate request_size=255 [07:52:39]MH_SAM_APDU [07:52:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 CF B6 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 49 0E 01 00 35 04 06 00 58 [07:52:39]Write to MH i2c: E2 02 01 02 B0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 CF B6 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 49 0E 01 00 35 04 06 00 58 00 00 93 [07:52:39]Write i2c OK [07:52:39]MH_I2C_Read... [07:52:39]OFD Sender: No OFD packet to send [07:52:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:39]Read from MH i2c: E2 [07:52:39]MH_I2C_Read... [07:52:39]Read from MH i2c: E2 03 00 [07:52:39]MH_I2C_Read... [07:52:39]Read from MH i2c: E2 03 00 02 B0 00 90 00 26 [07:52:39]RAPDU: 90 00 [07:52:39]wFMCommunicate OK [07:52:39]wFMCommunicate request_size=10 [07:52:39]MH_SAM_APDU [07:52:39]CAPDU: 80 0D 02 02 05 7A C0 7D 9F 83 [07:52:39]Write to MH i2c: E2 0D 00 03 B0 80 0D 02 02 05 00 7A C0 7D 9F 83 00 00 10 [07:52:39]Write i2c OK [07:52:39]MH_I2C_Read... [07:52:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:39]Read from MH i2c: E2 [07:52:39]MH_I2C_Read... [07:52:39]Read from MH i2c: E2 03 00 [07:52:39]MH_I2C_Read... [07:52:39]Read from MH i2c: E2 03 00 03 B0 00 90 00 27 [07:52:39]RAPDU: 90 00 [07:52:39]wFMCommunicate OK [07:52:39]wFMCommunicate request_size=4 [07:52:39]MH_SAM_APDU [07:52:39]CAPDU: 80 0D 03 02 [07:52:39]Write to MH i2c: E2 08 00 04 B0 80 0D 03 02 00 00 00 00 2F [07:52:39]Write i2c OK [07:52:39]MH_I2C_Read... [07:52:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:52:39]Read from MH i2c: E2 [07:52:39]MH_I2C_Read... [07:52:39]Read from MH i2c: E2 0B 00 [07:52:39]MH_I2C_Read... [07:52:39]Read from MH i2c: E2 0B 00 04 B0 00 D2 8B A5 21 42 36 73 C9 90 00 07 [07:52:39]RAPDU: D2 8B A5 21 42 36 73 C9 90 00 [07:52:39]wFMCommunicate OK [07:52:39]SAM_PROTO_SignData done [07:52:39]FM_MakeSignedData done [07:52:39]CreateOFDProtocolMessage [07:52:39]wFMCommunicate request_size=4 [07:52:39]MH_SAM_APDU [07:52:39]CAPDU: 80 11 00 00 [07:52:39]Write to MH i2c: E2 08 00 05 B0 80 11 00 00 00 00 00 00 2F [07:52:39]Write i2c OK [07:52:39]MH_I2C_Read... [07:52:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:39]Read from MH i2c: E2 [07:52:39]MH_I2C_Read... [07:52:39]Read from MH i2c: E2 17 00 [07:52:39]MH_I2C_Read... [07:52:39]Read from MH i2c: E2 17 00 05 B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 81 [07:52:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:52:39]wFMCommunicate OK [07:52:39]CreateOFDProtocolMessage done [07:52:39]OFDSenderStorePacket 69193 [07:52:39]StoreOFDPacket docnum=69193 [07:52:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 84 9B 07 01 9A 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 CF B6 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 49 0E 01 00 35 04 06 00 58 7A C0 7D 9F 83 D2 8B A5 21 42 36 73 C9 [07:52:39]CheckFolder [07:52:39]dirname=/storage/ofd_packets [07:52:39]CheckFolder done [07:52:39]ProducePacketName [07:52:39]name=ofd_packets/00069193 [07:52:39]NVStorageSaveData ofd_packets/00069193 [07:52:39]File name is /storage/ofd_packets/00069193 [07:52:39]Write 301 bytes [07:52:39]NVStorageSaveData done [07:52:39]OFDSenderStorePacket done [07:52:39]KKMCreateOFDPacket done [07:52:39]NVStorageSaveData kkm_last_timestamp [07:52:39]File name is /storage/kkm_last_timestamp [07:52:39]Write 4 bytes [07:52:39]NVStorageSaveData done [07:52:39]ExternCall_PrintAddStr [07:52:39]wPrintStart [07:52:39]Write to MH i2c: 01 00 00 06 B0 B6 [07:52:39]Write i2c OK [07:52:39]MH_I2C_Read... [07:52:39]Read from MH i2c: 01 [07:52:39]MH_I2C_Read... [07:52:39]Read from MH i2c: 01 07 00 [07:52:39]MH_I2C_Read... [07:52:39]Read from MH i2c: 01 07 00 06 B0 00 00 00 00 00 FF 0F CB [07:52:39]RasterBufferAndPrint [07:52:39]line Счет N : (1)2884906 [07:52:39]line ИНН: 02508201610067 [07:52:39]line Контрольно-Кассовый Чек [07:52:39]line ПРОДАЖА [07:52:39]line ТРК (МРК, ГНК) : 32 [07:52:39]line Товар: 2710124130 [07:52:39]line Аи-92-К-5 [07:52:39]line 22.430 * 66.90 [07:52:39]line = 1500.57 [07:52:39]line НДС 12% НСП 1% [07:52:39]line > о реализуемом товаре [07:52:39]line ОКРУГЛЕНИЕ: -0.57 [07:52:39]line ИТОГО: 1500.00 [07:52:39]line Внесено: 1500.00 [07:52:39]line СДАЧА: 0.00 [07:52:39]line НСП 1% : 13.28 [07:52:39]line НДС 12% : 159.35 [07:52:39]line Наличными: 1500.00 [07:52:39]line Безнал.: 0.00 [07:52:39]line Место: АЗС № 85 "Партнер Нефть" [07:52:39]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [07:52:39]line СНО: Общий режим [07:52:39]line Чек 38 20.10.2024 07:52 [07:52:39]line Смена: 193 ФФД: 1.0 [07:52:39]line ЗНМ: 0300000167 [07:52:39]line РНМ: 0000000000156251 [07:52:39]line Версия ККМ: v1.0 [07:52:39]line ФМ: 0000000000963346 [07:52:39]line ФД: 69193 [07:52:39]line ФПД: 97284238712707 [07:52:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T075247&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69193&fm=97284238712707&tin=02508201610067®Number=0000000000156251&sum=150000 [07:52:40]OFD Sender: Processing packet 69193 [packets to send 18, broken 17] [07:52:40]ProducePacketName [07:52:40]name=ofd_packets/00069193 [07:52:40]OFD Sender: To server: pG, [07:52:40]CommunicateWithHost lk.salyk.kg:30040 [07:52:40]ConnectInit lk.salyk.kg [07:52:40]written 0, free lines is 4095 [07:52:40]Connected sock=10 [07:52:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 84 9B 07 01 9A 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 CF B6 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 49 0E 01 00 35 04 06 00 58 7A C0 7D 9F 83 D2 8B A5 21 42 36 73 C9 [07:52:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 56 2C 47 00 FD 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 49 0E 01 00 F4 03 04 00 76 60 14 67 B6 04 01 00 00 F3 E3 7D EC 53 65 1B D9 [07:52:40]CommunicateWithHost err = 0 [07:52:40]CheckOFDResponse [07:52:40]1017 (14) - 77093643461234 [07:52:40]1041 (16) - 0000000000963346 [07:52:40]1040 (4) - 69193 [07:52:40]1012 (4) - 20.10.2024 01:44 [07:52:40]1206 (1) - 0 [07:52:40]OFD Sender: Remove packet 69193 [07:52:40]ProducePacketName [07:52:40]name=ofd_packets/00069193 [07:52:40]NVStorageDeleteData [07:52:40]Write to MH i2c: 01 00 00 31 B0 E1 [07:52:40]Write i2c OK [07:52:40]MH_I2C_Read... [07:52:40]Read from MH i2c: 01 [07:52:40]MH_I2C_Read... [07:52:40]Read from MH i2c: 01 07 00 [07:52:40]MH_I2C_Read... [07:52:40]Read from MH i2c: 01 07 00 31 B0 00 00 00 00 00 E6 0C DA [07:52:40]RasterBufferAndPrint [07:52:40]line [07:52:40]line [07:52:40]line [07:52:40]line [07:52:40]line [07:52:40]written 0, free lines is 3309 [07:52:40]MH_Cut [07:52:40]Write to MH i2c: D1 01 00 38 B0 01 BA [07:52:40]Write i2c OK [07:52:40]MH_I2C_Read... [07:52:40]Read from MH i2c: D1 [07:52:40]MH_I2C_Read... [07:52:40]Read from MH i2c: D1 01 00 [07:52:40]MH_I2C_Read... [07:52:40]Read from MH i2c: D1 01 00 38 B0 00 B9 [07:52:40]Write to MH i2c: 01 00 00 39 B0 E9 [07:52:40]Write i2c OK [07:52:40]MH_I2C_Read... [07:52:41]OFD Sender: No OFD packet to send [07:52:41]*** Cut start [07:52:41]*** Partial cut [07:52:41]*** CUTSNS_PIN = 1 [07:52:41]*** CUTSNS_PIN = 0 [07:52:41]*** Brake cut motor [07:52:41]Read from MH i2c: 01 [07:52:41]MH_I2C_Read... [07:52:41]*** Stop cut motor [07:52:41]*** Cut end [07:52:41]Read from MH i2c: 01 07 00 [07:52:41]MH_I2C_Read... [07:52:41]Read from MH i2c: 01 07 00 39 B0 00 00 00 00 00 FF 0F FE [07:52:41]process_action close_receipt done [07:52:41]requested_data is exist [07:52:41]produce_requested_data [07:52:41]requested_item fm.sn is exist - process it [07:52:41]wFMCommunicate request_size=4 [07:52:41]MH_SAM_APDU [07:52:41]CAPDU: 80 11 00 00 [07:52:41]Write to MH i2c: E2 08 00 3A B0 80 11 00 00 00 00 00 00 64 [07:52:41]Write i2c OK [07:52:41]MH_I2C_Read... [07:52:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:42]Read from MH i2c: E2 [07:52:42]MH_I2C_Read... [07:52:42]Read from MH i2c: E2 17 00 [07:52:42]MH_I2C_Read... [07:52:42]Read from MH i2c: E2 17 00 3A B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B6 [07:52:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:52:42]wFMCommunicate OK [07:52:42]requested_item fd.num is exist - process it [07:52:42]SAM_PROTO_GetFieldsCounters [07:52:42]wFMCommunicate request_size=4 [07:52:42]MH_SAM_APDU [07:52:42]CAPDU: 80 13 00 00 [07:52:42]Write to MH i2c: E2 08 00 3B B0 80 13 00 00 00 00 00 00 67 [07:52:42]Write i2c OK [07:52:42]MH_I2C_Read... [07:52:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:52:42]Read from MH i2c: E2 [07:52:42]MH_I2C_Read... [07:52:42]Read from MH i2c: E2 62 00 [07:52:42]MH_I2C_Read... [07:52:42]Read from MH i2c: E2 62 00 3B B0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 49 0E 01 00 0E 04 04 00 C1 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 0D [07:52:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 49 0E 01 00 0E 04 04 00 C1 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 [07:52:42]wFMCommunicate OK [07:52:42]SAM_PROTO_GetFieldsCounters done [07:52:42]requested_item shift.num is exist - process it [07:52:42]requested_item shift.opened is exist - process it [07:52:42]req_shift_opened [07:52:42]FM_GetShiftState [07:52:42]SAM_PROTO_GetShiftState [07:52:42]wFMCommunicate request_size=4 [07:52:42]MH_SAM_APDU [07:52:42]CAPDU: 80 13 01 00 [07:52:42]Write to MH i2c: E2 08 00 3C B0 80 13 01 00 00 00 00 00 69 [07:52:42]Write i2c OK [07:52:42]MH_I2C_Read... [07:52:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:42]Read from MH i2c: E2 [07:52:42]MH_I2C_Read... [07:52:42]Read from MH i2c: E2 0E 00 [07:52:42]MH_I2C_Read... [07:52:42]Read from MH i2c: E2 0E 00 3C B0 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 6F [07:52:42]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [07:52:42]wFMCommunicate OK [07:52:42]SAM_PROTO_GetShiftState done [07:52:42]FM_GetShiftState done [07:52:42]req_shift_opened done [07:52:42]requested_item shift.open_date is exist - process it [07:52:42]req_shift_open_date [07:52:42]req_shift_open_date done [07:52:42]produce_requested_data done [07:52:42]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69193,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [07:52:42]process_action_free close_receipt [07:52:42]json_value_free [07:52:42]json_value_free done [07:52:42]process_json_proto returns [07:52:42]Send response to host [07:52:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69193,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [07:52:42]free response buf [07:52:42]execute_script done [07:52:42]execute_script returns [07:52:42]free content buf [07:52:42]Sock 9.Close socket [07:52:42]Sock 9.Thread stoped [07:52:46]OFD Sender: No OFD packet to send [07:52:51]OFD Sender: No OFD packet to send [07:52:56]OFD Sender: No OFD packet to send [07:53:01]OFD Sender: No OFD packet to send [07:53:06]OFD Sender: No OFD packet to send [07:53:11]OFD Sender: No OFD packet to send [07:53:16]OFD Sender: No OFD packet to send [07:53:21]OFD Sender: No OFD packet to send [07:53:26]OFD Sender: No OFD packet to send [07:53:31]OFD Sender: No OFD packet to send [07:53:36]OFD Sender: No OFD packet to send [07:53:41]OFD Sender: No OFD packet to send [07:53:41]accept exits with 8 [07:53:41]New connection [07:53:41]New thread 3067116900 created [07:53:41]Thread 3067260260 joined [07:53:41]Waiting for new connection... [07:53:41] Sock 8.Parse request [07:53:41]Sock 8.Check first char [07:53:41]Sock 8.First char is OK [07:53:41]request: POST /json_proto HTTP/1.0 [07:53:41]Method: POST [07:53:41]URL: /json_proto [07:53:41]Method is POST - this is cgi request [07:53:41]url: /json_proto [07:53:41]query_string will be loaded in cgi processing [07:53:41]execute_cgi json_proto POST (null) [07:53:41]execute_cgi path=json_proto method=POST [07:53:41]POST find Content-Length [07:53:41]Host: 172.17.50.3:8080 [07:53:41]Content-Length: 800 [07:53:41]Content-Type: application/json [07:53:41] [07:53:41]POST finish read [07:53:41]Found Content-Length = 800 [07:53:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\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\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4865601", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:53:41]execute_script... [07:53:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\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\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4865601", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:53:41]POST & json_proto [07:53:41]process_json_proto [07:53:41]json parsed OK: [07:53:41]protocol is kg_v1.0 [07:53:41]action value=close_receipt [07:53:41]process_action close_receipt [07:53:41]cmd_close_receipt [07:53:41]MH_GetDate [07:53:41]Write to MH i2c: F0 00 00 3D B0 DC [07:53:41]Write i2c OK [07:53:41]MH_I2C_Read... [07:53:41]Read from MH i2c: F0 [07:53:41]MH_I2C_Read... [07:53:41]Read from MH i2c: F0 09 00 [07:53:41]MH_I2C_Read... [07:53:41]Read from MH i2c: F0 09 00 3D B0 00 0E B7 14 67 6B 98 1E 66 AC [07:53:41]GetLastDocTimeStamp 1729410767 [07:53:41]current date 1729410830 [07:53:41]FM_GetShiftState [07:53:41]SAM_PROTO_GetShiftState [07:53:41]wFMCommunicate request_size=4 [07:53:41]MH_SAM_APDU [07:53:41]CAPDU: 80 13 01 00 [07:53:41]Write to MH i2c: E2 08 00 3E B0 80 13 01 00 00 00 00 00 6B [07:53:41]Write i2c OK [07:53:41]MH_I2C_Read... [07:53:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:53:41]Read from MH i2c: E2 [07:53:41]MH_I2C_Read... [07:53:41]Read from MH i2c: E2 0E 00 [07:53:41]MH_I2C_Read... [07:53:41]Read from MH i2c: E2 0E 00 3E B0 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 71 [07:53:41]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [07:53:41]wFMCommunicate OK [07:53:41]SAM_PROTO_GetShiftState done [07:53:41]FM_GetShiftState done [07:53:41]opened in 1729383220 [07:53:41]opened+sec_in_day 1729469620 [07:53:41]quantity*price = 0 [07:53:41]sum+1 = 1 [07:53:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 39 20.10.2024 07:53 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливные Талоны 4865601 ФМ: 0000000000963346 ФД: 69194 ФПД: 101054065178692 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T075350&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69194&fm=101054065178692&tin=02508201610067®Number=0000000000156251&sum=0 [07:53:42]StoreToDocumentArchive [07:53:42]shift 193 fd 69194 [07:53:42]save to /storage/0193/doc_00069194 [07:53:42]save last doc name /storage/0193/doc_00069194 to /storage/kkm_last_doc_name [07:53:42]save OK [07:53:42]Clear old archive folders... [07:53:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:53:42]tlvbuf is 007E35C0 [07:53:42]SAM_PROTO_ClearQueue [07:53:42]wFMCommunicate request_size=4 [07:53:42]MH_SAM_APDU [07:53:42]CAPDU: 80 09 00 00 [07:53:42]Write to MH i2c: E2 08 00 4B B0 80 09 00 00 00 00 00 00 6D [07:53:42]Write i2c OK [07:53:42]MH_I2C_Read... [07:53:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:53:42]Read from MH i2c: E2 [07:53:42]MH_I2C_Read... [07:53:42]Read from MH i2c: E2 03 00 [07:53:42]MH_I2C_Read... [07:53:42]Read from MH i2c: E2 03 00 4B B0 00 90 00 6F [07:53:42]RAPDU: 90 00 [07:53:42]wFMCommunicate OK [07:53:42]SAM_PROTO_ClearQueue done [07:53:42]KKMCreateOFDPacket [07:53:42]OFDProtocolAddRootSTLVToBuf [07:53:42]FM_MakeSignedData [07:53:42]FM_MakeSignedData [07:53:42]SAM_PROTO_SignData [07:53:42]wFMCommunicate request_size=4 [07:53:42]MH_SAM_APDU [07:53:42]CAPDU: 80 0D 01 02 [07:53:42]Write to MH i2c: E2 08 00 4C B0 80 0D 01 02 00 00 00 00 75 [07:53:42]Write i2c OK [07:53:42]MH_I2C_Read... [07:53:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:53:42]Read from MH i2c: E2 [07:53:42]MH_I2C_Read... [07:53:42]Read from MH i2c: E2 03 00 [07:53:42]MH_I2C_Read... [07:53:42]Read from MH i2c: E2 03 00 4C B0 00 90 00 70 [07:53:42]RAPDU: 90 00 [07:53:42]wFMCommunicate OK [07:53:42]wFMCommunicate request_size=255 [07:53:42]MH_SAM_APDU [07:53:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 27 00 00 00 F4 03 04 00 0E B7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4A 0E 01 00 35 04 06 00 5B [07:53:42]Write to MH i2c: E2 02 01 4D B0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 27 00 00 00 F4 03 04 00 0E B7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4A 0E 01 00 35 04 06 00 5B 00 00 F0 [07:53:42]Write i2c OK [07:53:42]MH_I2C_Read... [07:53:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:53:43]Read from MH i2c: E2 [07:53:43]MH_I2C_Read... [07:53:43]Read from MH i2c: E2 03 00 [07:53:43]MH_I2C_Read... [07:53:43]Read from MH i2c: E2 03 00 4D B0 00 90 00 71 [07:53:43]RAPDU: 90 00 [07:53:43]wFMCommunicate OK [07:53:43]wFMCommunicate request_size=10 [07:53:43]MH_SAM_APDU [07:53:43]CAPDU: 80 0D 02 02 05 E8 7B A8 78 44 [07:53:43]Write to MH i2c: E2 0D 00 4E B0 80 0D 02 02 05 00 E8 7B A8 78 44 00 00 49 [07:53:43]Write i2c OK [07:53:43]MH_I2C_Read... [07:53:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:53:43]Read from MH i2c: E2 [07:53:43]MH_I2C_Read... [07:53:43]Read from MH i2c: E2 03 00 [07:53:43]MH_I2C_Read... [07:53:43]Read from MH i2c: E2 03 00 4E B0 00 90 00 72 [07:53:43]RAPDU: 90 00 [07:53:43]wFMCommunicate OK [07:53:43]wFMCommunicate request_size=4 [07:53:43]MH_SAM_APDU [07:53:43]CAPDU: 80 0D 03 02 [07:53:43]Write to MH i2c: E2 08 00 4F B0 80 0D 03 02 00 00 00 00 7A [07:53:43]Write i2c OK [07:53:43]MH_I2C_Read... [07:53:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:53:43]Read from MH i2c: E2 [07:53:43]MH_I2C_Read... [07:53:43]Read from MH i2c: E2 0B 00 [07:53:43]MH_I2C_Read... [07:53:43]Read from MH i2c: E2 0B 00 4F B0 00 36 89 30 25 57 96 03 BC 90 00 3B [07:53:43]RAPDU: 36 89 30 25 57 96 03 BC 90 00 [07:53:43]wFMCommunicate OK [07:53:43]SAM_PROTO_SignData done [07:53:43]FM_MakeSignedData done [07:53:43]CreateOFDProtocolMessage [07:53:43]wFMCommunicate request_size=4 [07:53:43]MH_SAM_APDU [07:53:43]CAPDU: 80 11 00 00 [07:53:43]Write to MH i2c: E2 08 00 50 B0 80 11 00 00 00 00 00 00 7A [07:53:43]Write i2c OK [07:53:43]MH_I2C_Read... [07:53:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:53:43]Read from MH i2c: E2 [07:53:43]MH_I2C_Read... [07:53:43]Read from MH i2c: E2 17 00 [07:53:43]MH_I2C_Read... [07:53:43]Read from MH i2c: E2 17 00 50 B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CC [07:53:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:53:43]wFMCommunicate OK [07:53:43]CreateOFDProtocolMessage done [07:53:43]OFDSenderStorePacket 69194 [07:53:43]StoreOFDPacket docnum=69194 [07:53:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A1 F9 07 01 3B 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 27 00 00 00 F4 03 04 00 0E B7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4A 0E 01 00 35 04 06 00 5B E8 7B A8 78 44 36 89 30 25 57 96 03 BC [07:53:43]CheckFolder [07:53:43]dirname=/storage/ofd_packets [07:53:43]CheckFolder done [07:53:43]ProducePacketName [07:53:43]name=ofd_packets/00069194 [07:53:43]NVStorageSaveData ofd_packets/00069194 [07:53:43]File name is /storage/ofd_packets/00069194 [07:53:43]Write 301 bytes [07:53:43]NVStorageSaveData done [07:53:43]OFDSenderStorePacket done [07:53:43]KKMCreateOFDPacket done [07:53:43]NVStorageSaveData kkm_last_timestamp [07:53:43]File name is /storage/kkm_last_timestamp [07:53:43]Write 4 bytes [07:53:43]NVStorageSaveData done [07:53:43]ExternCall_PrintAddStr [07:53:43]wPrintStart [07:53:43]Write to MH i2c: 01 00 00 51 B0 01 [07:53:43]Write i2c OK [07:53:43]MH_I2C_Read... [07:53:43]Read from MH i2c: 01 [07:53:43]MH_I2C_Read... [07:53:43]Read from MH i2c: 01 07 00 [07:53:43]MH_I2C_Read... [07:53:43]Read from MH i2c: 01 07 00 51 B0 00 00 00 00 00 FF 0F 16 [07:53:43]RasterBufferAndPrint [07:53:43]line Счет N : (1)2884907 [07:53:43]line ИНН: 02508201610067 [07:53:43]line Контрольно-Кассовый Чек [07:53:43]line ПРОДАЖА [07:53:43]line ТРК (МРК, ГНК) : 12 [07:53:43]line Товар: 2710124130 [07:53:43]line Аи-92-К-5 [07:53:43]line 5.000 * 0.00 [07:53:43]line = 0.00 [07:53:43]line НДС 12% НСП 1% [07:53:43]line > о реализуемом товаре [07:53:43]line ИТОГО: 0.00 [07:53:43]line НСП 1% : 0.00 [07:53:43]line НДС 12% : 0.00 [07:53:43]line Наличными: 0.00 [07:53:43]line Безнал.: 0.00 [07:53:43]line Место: АЗС № 85 "Партнер Нефть" [07:53:43]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [07:53:43]line СНО: Общий режим [07:53:43]line Чек 39 20.10.2024 07:53 [07:53:43]line Смена: 193 ФФД: 1.0 [07:53:43]line ЗНМ: 0300000167 [07:53:43]line РНМ: 0000000000156251 [07:53:43]line Версия ККМ: v1.0 [07:53:43]line Талоны: Топливные Талоны [07:53:43]line 4865601 [07:53:43]line ФМ: 0000000000963346 [07:53:43]line ФД: 69194 [07:53:43]line ФПД: 101054065178692 [07:53:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T075350&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69194&fm=101054065178692&tin=02508201610067®Number=0000000000156251&sum=0 [07:53:43]OFD Sender: Processing packet 69194 [packets to send 18, broken 17] [07:53:43]ProducePacketName [07:53:43]name=ofd_packets/00069194 [07:53:43]OFD Sender: To server: pG, [07:53:43]CommunicateWithHost lk.salyk.kg:30040 [07:53:43]ConnectInit lk.salyk.kg [07:53:43]written 0, free lines is 4095 [07:53:43]Connected sock=9 [07:53:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A1 F9 07 01 3B 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 27 00 00 00 F4 03 04 00 0E B7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4A 0E 01 00 35 04 06 00 5B E8 7B A8 78 44 36 89 30 25 57 96 03 BC [07:53:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 5D 90 47 00 10 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4A 0E 01 00 F4 03 04 00 B6 60 14 67 B6 04 01 00 00 8F 29 F7 4D 0B 80 40 A8 [07:53:43]CommunicateWithHost err = 0 [07:53:43]CheckOFDResponse [07:53:43]1017 (14) - 77093643461234 [07:53:43]1041 (16) - 0000000000963346 [07:53:43]1040 (4) - 69194 [07:53:43]1012 (4) - 20.10.2024 01:45 [07:53:43]1206 (1) - 0 [07:53:43]OFD Sender: Remove packet 69194 [07:53:43]ProducePacketName [07:53:43]name=ofd_packets/00069194 [07:53:43]NVStorageDeleteData [07:53:44]Write to MH i2c: 01 00 00 7B B0 2B [07:53:44]Write i2c OK [07:53:44]MH_I2C_Read... [07:53:44]Read from MH i2c: 01 [07:53:44]MH_I2C_Read... [07:53:44]Read from MH i2c: 01 07 00 [07:53:44]MH_I2C_Read... [07:53:44]Read from MH i2c: 01 07 00 7B B0 00 00 00 00 00 FA 0C 38 [07:53:44]RasterBufferAndPrint [07:53:44]line [07:53:44]line [07:53:44]line [07:53:44]line [07:53:44]line [07:53:44]written 0, free lines is 3328 [07:53:44]MH_Cut [07:53:44]Write to MH i2c: D1 01 00 82 B0 01 04 [07:53:44]Write i2c OK [07:53:44]MH_I2C_Read... [07:53:44]Read from MH i2c: D1 [07:53:44]MH_I2C_Read... [07:53:44]Read from MH i2c: D1 01 00 [07:53:44]MH_I2C_Read... [07:53:44]Read from MH i2c: D1 01 00 82 B0 00 03 [07:53:44]Write to MH i2c: 01 00 00 83 B0 33 [07:53:44]Write i2c OK [07:53:44]MH_I2C_Read... [07:53:44]OFD Sender: No OFD packet to send [07:53:44]*** Cut start [07:53:44]*** Partial cut [07:53:44]*** CUTSNS_PIN = 1 [07:53:44]*** CUTSNS_PIN = 0 [07:53:45]*** Brake cut motor [07:53:45]Read from MH i2c: 01 [07:53:45]MH_I2C_Read... [07:53:45]*** Stop cut motor [07:53:45]*** Cut end [07:53:45]Read from MH i2c: 01 07 00 [07:53:45]MH_I2C_Read... [07:53:45]Read from MH i2c: 01 07 00 83 B0 00 00 00 00 00 FF 0F 48 [07:53:45]process_action close_receipt done [07:53:45]requested_data is exist [07:53:45]produce_requested_data [07:53:45]requested_item fm.sn is exist - process it [07:53:45]wFMCommunicate request_size=4 [07:53:45]MH_SAM_APDU [07:53:45]CAPDU: 80 11 00 00 [07:53:45]Write to MH i2c: E2 08 00 84 B0 80 11 00 00 00 00 00 00 AE [07:53:45]Write i2c OK [07:53:45]MH_I2C_Read... [07:53:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:53:45]Read from MH i2c: E2 [07:53:45]MH_I2C_Read... [07:53:45]Read from MH i2c: E2 17 00 [07:53:45]MH_I2C_Read... [07:53:45]Read from MH i2c: E2 17 00 84 B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 00 [07:53:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:53:45]wFMCommunicate OK [07:53:45]requested_item fd.num is exist - process it [07:53:45]SAM_PROTO_GetFieldsCounters [07:53:45]wFMCommunicate request_size=4 [07:53:45]MH_SAM_APDU [07:53:45]CAPDU: 80 13 00 00 [07:53:45]Write to MH i2c: E2 08 00 85 B0 80 13 00 00 00 00 00 00 B1 [07:53:45]Write i2c OK [07:53:45]MH_I2C_Read... [07:53:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:53:45]Read from MH i2c: E2 [07:53:45]MH_I2C_Read... [07:53:45]Read from MH i2c: E2 62 00 [07:53:45]MH_I2C_Read... [07:53:45]Read from MH i2c: E2 62 00 85 B0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4A 0E 01 00 0E 04 04 00 C1 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 5B [07:53:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4A 0E 01 00 0E 04 04 00 C1 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 [07:53:45]wFMCommunicate OK [07:53:45]SAM_PROTO_GetFieldsCounters done [07:53:45]requested_item shift.num is exist - process it [07:53:45]requested_item shift.opened is exist - process it [07:53:45]req_shift_opened [07:53:45]FM_GetShiftState [07:53:45]SAM_PROTO_GetShiftState [07:53:45]wFMCommunicate request_size=4 [07:53:45]MH_SAM_APDU [07:53:45]CAPDU: 80 13 01 00 [07:53:45]Write to MH i2c: E2 08 00 86 B0 80 13 01 00 00 00 00 00 B3 [07:53:45]Write i2c OK [07:53:45]MH_I2C_Read... [07:53:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:53:45]Read from MH i2c: E2 [07:53:45]MH_I2C_Read... [07:53:45]Read from MH i2c: E2 0E 00 [07:53:45]MH_I2C_Read... [07:53:45]Read from MH i2c: E2 0E 00 86 B0 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 B9 [07:53:45]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [07:53:45]wFMCommunicate OK [07:53:45]SAM_PROTO_GetShiftState done [07:53:45]FM_GetShiftState done [07:53:45]req_shift_opened done [07:53:45]requested_item shift.open_date is exist - process it [07:53:45]req_shift_open_date [07:53:45]req_shift_open_date done [07:53:45]produce_requested_data done [07:53:45]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69194,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [07:53:45]process_action_free close_receipt [07:53:45]json_value_free [07:53:45]json_value_free done [07:53:45]process_json_proto returns [07:53:45]Send response to host [07:53:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69194,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [07:53:45]free response buf [07:53:45]execute_script done [07:53:45]execute_script returns [07:53:45]free content buf [07:53:45]Sock 8.Close socket [07:53:45]Sock 8.Thread stoped [07:53:49]OFD Sender: No OFD packet to send [07:53:54]OFD Sender: No OFD packet to send [07:53:59]OFD Sender: No OFD packet to send [07:54:04]OFD Sender: No OFD packet to send [07:54:09]OFD Sender: No OFD packet to send [07:54:14]OFD Sender: No OFD packet to send [07:54:19]OFD Sender: No OFD packet to send [07:54:24]OFD Sender: No OFD packet to send [07:54:29]OFD Sender: No OFD packet to send [07:54:34]OFD Sender: No OFD packet to send [07:54:39]OFD Sender: No OFD packet to send [07:54:44]OFD Sender: No OFD packet to send [07:54:49]OFD Sender: No OFD packet to send [07:54:54]OFD Sender: No OFD packet to send [07:54:59]OFD Sender: No OFD packet to send [07:55:01]accept exits with 10 [07:55:01]New connection [07:55:01]New thread 3067260260 created [07:55:01]Thread 3067116900 joined [07:55:01]Waiting for new connection... [07:55:01] Sock 10.Parse request [07:55:01]Sock 10.Check first char [07:55:01]Sock 10.First char is OK [07:55:01]request: POST /json_proto HTTP/1.0 [07:55:01]Method: POST [07:55:01]URL: /json_proto [07:55:01]Method is POST - this is cgi request [07:55:01]url: /json_proto [07:55:01]query_string will be loaded in cgi processing [07:55:01]execute_cgi json_proto POST (null) [07:55:01]execute_cgi path=json_proto method=POST [07:55:01]POST find Content-Length [07:55:01]Host: 172.17.50.3:8080 [07:55:01]Content-Length: 754 [07:55:01]Content-Type: application/json [07:55:01] [07:55:01]POST finish read [07:55:01]Found Content-Length = 754 [07:55:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\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\u041A \u0413\u041F\u041D\u0410 Online\u000A30100939", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:55:01]execute_script... [07:55: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)2884909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\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\u041A \u0413\u041F\u041D\u0410 Online\u000A30100939", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:55:01]POST & json_proto [07:55:01]process_json_proto [07:55:01]json parsed OK: [07:55:01]protocol is kg_v1.0 [07:55:01]action value=close_receipt [07:55:01]process_action close_receipt [07:55:01]cmd_close_receipt [07:55:01]MH_GetDate [07:55:01]Write to MH i2c: F0 00 00 87 B0 26 [07:55:01]Write i2c OK [07:55:01]MH_I2C_Read... [07:55:01]Read from MH i2c: F0 [07:55:01]MH_I2C_Read... [07:55:01]Read from MH i2c: F0 09 00 [07:55:01]MH_I2C_Read... [07:55:01]Read from MH i2c: F0 09 00 87 B0 00 5E B7 14 67 6B 98 1E 66 46 [07:55:01]GetLastDocTimeStamp 1729410830 [07:55:01]current date 1729410910 [07:55:01]FM_GetShiftState [07:55:01]SAM_PROTO_GetShiftState [07:55:01]wFMCommunicate request_size=4 [07:55:01]MH_SAM_APDU [07:55:01]CAPDU: 80 13 01 00 [07:55:01]Write to MH i2c: E2 08 00 88 B0 80 13 01 00 00 00 00 00 B5 [07:55:01]Write i2c OK [07:55:01]MH_I2C_Read... [07:55:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:55:01]Read from MH i2c: E2 [07:55:01]MH_I2C_Read... [07:55:01]Read from MH i2c: E2 0E 00 [07:55:01]MH_I2C_Read... [07:55:01]Read from MH i2c: E2 0E 00 88 B0 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 BB [07:55:01]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [07:55:01]wFMCommunicate OK [07:55:01]SAM_PROTO_GetShiftState done [07:55:01]FM_GetShiftState done [07:55:01]opened in 1729383220 [07:55:01]opened+sec_in_day 1729469620 [07:55:01]quantity*price = 0 [07:55:01]sum+1 = 1 [07:55:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 40 20.10.2024 07:55 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30100939 ФМ: 0000000000963346 ФД: 69195 ФПД: 18444638665370 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T075510&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69195&fm=18444638665370&tin=02508201610067®Number=0000000000156251&sum=0 [07:55:02]StoreToDocumentArchive [07:55:02]shift 193 fd 69195 [07:55:02]save to /storage/0193/doc_00069195 [07:55:02]save last doc name /storage/0193/doc_00069195 to /storage/kkm_last_doc_name [07:55:02]save OK [07:55:02]Clear old archive folders... [07:55:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:55:02]tlvbuf is 00476870 [07:55:02]SAM_PROTO_ClearQueue [07:55:02]wFMCommunicate request_size=4 [07:55:02]MH_SAM_APDU [07:55:02]CAPDU: 80 09 00 00 [07:55:02]Write to MH i2c: E2 08 00 95 B0 80 09 00 00 00 00 00 00 B7 [07:55:02]Write i2c OK [07:55:02]MH_I2C_Read... [07:55:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:55:02]Read from MH i2c: E2 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: E2 03 00 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: E2 03 00 95 B0 00 90 00 B9 [07:55:02]RAPDU: 90 00 [07:55:02]wFMCommunicate OK [07:55:02]SAM_PROTO_ClearQueue done [07:55:02]KKMCreateOFDPacket [07:55:02]OFDProtocolAddRootSTLVToBuf [07:55:02]FM_MakeSignedData [07:55:02]FM_MakeSignedData [07:55:02]SAM_PROTO_SignData [07:55:02]wFMCommunicate request_size=4 [07:55:02]MH_SAM_APDU [07:55:02]CAPDU: 80 0D 01 02 [07:55:02]Write to MH i2c: E2 08 00 96 B0 80 0D 01 02 00 00 00 00 BF [07:55:02]Write i2c OK [07:55:02]MH_I2C_Read... [07:55:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:55:02]Read from MH i2c: E2 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: E2 03 00 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: E2 03 00 96 B0 00 90 00 BA [07:55:02]RAPDU: 90 00 [07:55:02]wFMCommunicate OK [07:55:02]wFMCommunicate request_size=255 [07:55:02]MH_SAM_APDU [07:55:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 28 00 00 00 F4 03 04 00 5E B7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4B 0E 01 00 35 04 06 00 10 [07:55:02]Write to MH i2c: E2 02 01 97 B0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 28 00 00 00 F4 03 04 00 5E B7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4B 0E 01 00 35 04 06 00 10 00 00 41 [07:55:02]Write i2c OK [07:55:02]MH_I2C_Read... [07:55:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:55:02]Read from MH i2c: E2 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: E2 03 00 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: E2 03 00 97 B0 00 90 00 BB [07:55:02]RAPDU: 90 00 [07:55:02]wFMCommunicate OK [07:55:02]wFMCommunicate request_size=10 [07:55:02]MH_SAM_APDU [07:55:02]CAPDU: 80 0D 02 02 05 C6 7A 22 BA 9A [07:55:02]Write to MH i2c: E2 0D 00 98 B0 80 0D 02 02 05 00 C6 7A 22 BA 9A 00 00 82 [07:55:02]Write i2c OK [07:55:02]MH_I2C_Read... [07:55:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:55:02]Read from MH i2c: E2 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: E2 03 00 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: E2 03 00 98 B0 00 90 00 BC [07:55:02]RAPDU: 90 00 [07:55:02]wFMCommunicate OK [07:55:02]wFMCommunicate request_size=4 [07:55:02]MH_SAM_APDU [07:55:02]CAPDU: 80 0D 03 02 [07:55:02]Write to MH i2c: E2 08 00 99 B0 80 0D 03 02 00 00 00 00 C4 [07:55:02]Write i2c OK [07:55:02]MH_I2C_Read... [07:55:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:55:02]Read from MH i2c: E2 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: E2 0B 00 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: E2 0B 00 99 B0 00 E5 1D A9 FE 94 A3 8F 88 90 00 BC [07:55:02]RAPDU: E5 1D A9 FE 94 A3 8F 88 90 00 [07:55:02]wFMCommunicate OK [07:55:02]SAM_PROTO_SignData done [07:55:02]FM_MakeSignedData done [07:55:02]CreateOFDProtocolMessage [07:55:02]wFMCommunicate request_size=4 [07:55:02]MH_SAM_APDU [07:55:02]CAPDU: 80 11 00 00 [07:55:02]Write to MH i2c: E2 08 00 9A B0 80 11 00 00 00 00 00 00 C4 [07:55:02]Write i2c OK [07:55:02]MH_I2C_Read... [07:55:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:55:02]Read from MH i2c: E2 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: E2 17 00 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: E2 17 00 9A B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 16 [07:55:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:55:02]wFMCommunicate OK [07:55:02]CreateOFDProtocolMessage done [07:55:02]OFDSenderStorePacket 69195 [07:55:02]StoreOFDPacket docnum=69195 [07:55:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 59 B5 07 01 58 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 28 00 00 00 F4 03 04 00 5E B7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4B 0E 01 00 35 04 06 00 10 C6 7A 22 BA 9A E5 1D A9 FE 94 A3 8F 88 [07:55:02]CheckFolder [07:55:02]dirname=/storage/ofd_packets [07:55:02]CheckFolder done [07:55:02]ProducePacketName [07:55:02]name=ofd_packets/00069195 [07:55:02]NVStorageSaveData ofd_packets/00069195 [07:55:02]File name is /storage/ofd_packets/00069195 [07:55:02]Write 301 bytes [07:55:02]NVStorageSaveData done [07:55:02]OFDSenderStorePacket done [07:55:02]KKMCreateOFDPacket done [07:55:02]NVStorageSaveData kkm_last_timestamp [07:55:02]File name is /storage/kkm_last_timestamp [07:55:02]Write 4 bytes [07:55:02]NVStorageSaveData done [07:55:02]ExternCall_PrintAddStr [07:55:02]wPrintStart [07:55:02]Write to MH i2c: 01 00 00 9B B0 4B [07:55:02]Write i2c OK [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: 01 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: 01 07 00 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: 01 07 00 9B B0 00 00 00 00 00 FF 0F 60 [07:55:02]RasterBufferAndPrint [07:55:02]line Счет N : (1)2884909 [07:55:02]line ИНН: 02508201610067 [07:55:02]line Контрольно-Кассовый Чек [07:55:02]line ПРОДАЖА [07:55:02]line ТРК (МРК, ГНК) : 32 [07:55:02]line Товар: 2710124130 [07:55:02]line Аи-92-К-5 [07:55:02]line 5.000 * 0.00 [07:55:02]line = 0.00 [07:55:02]line НДС 12% НСП 1% [07:55:02]line > о реализуемом товаре [07:55:02]line ИТОГО: 0.00 [07:55:02]line НСП 1% : 0.00 [07:55:02]line НДС 12% : 0.00 [07:55:02]line Наличными: 0.00 [07:55:02]line Безнал.: 0.00 [07:55:02]line Место: АЗС № 85 "Партнер Нефть" [07:55:02]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [07:55:02]line СНО: Общий режим [07:55:02]line Чек 40 20.10.2024 07:55 [07:55:02]line Смена: 193 ФФД: 1.0 [07:55:02]line ЗНМ: 0300000167 [07:55:02]line РНМ: 0000000000156251 [07:55:02]line Версия ККМ: v1.0 [07:55:02]line Талоны: ТК ГПНА Online [07:55:02]line 30100939 [07:55:02]line ФМ: 0000000000963346 [07:55:02]line ФД: 69195 [07:55:02]line ФПД: 18444638665370 [07:55:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T075510&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69195&fm=18444638665370&tin=02508201610067®Number=0000000000156251&sum=0 [07:55:03]OFD Sender: Processing packet 69195 [packets to send 18, broken 17] [07:55:03]ProducePacketName [07:55:03]name=ofd_packets/00069195 [07:55:03]OFD Sender: To server: pG, [07:55:03]CommunicateWithHost lk.salyk.kg:30040 [07:55:03]ConnectInit lk.salyk.kg [07:55:03]written 0, free lines is 4095 [07:55:03]Connected sock=9 [07:55:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 59 B5 07 01 58 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 28 00 00 00 F4 03 04 00 5E B7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4B 0E 01 00 35 04 06 00 10 C6 7A 22 BA 9A E5 1D A9 FE 94 A3 8F 88 [07:55:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 D6 BB 47 00 48 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4B 0E 01 00 F4 03 04 00 05 61 14 67 B6 04 01 00 00 48 55 19 A2 7E 7C 13 63 [07:55:03]CommunicateWithHost err = 0 [07:55:03]CheckOFDResponse [07:55:03]1017 (14) - 77093643461234 [07:55:03]1041 (16) - 0000000000963346 [07:55:03]1040 (4) - 69195 [07:55:03]1012 (4) - 20.10.2024 01:46 [07:55:03]1206 (1) - 0 [07:55:03]OFD Sender: Remove packet 69195 [07:55:03]ProducePacketName [07:55:03]name=ofd_packets/00069195 [07:55:03]NVStorageDeleteData [07:55:03]Write to MH i2c: 01 00 00 C5 B0 75 [07:55:03]Write i2c OK [07:55:03]MH_I2C_Read... [07:55:03]Read from MH i2c: 01 [07:55:03]MH_I2C_Read... [07:55:03]Read from MH i2c: 01 07 00 [07:55:03]MH_I2C_Read... [07:55:03]Read from MH i2c: 01 07 00 C5 B0 00 00 00 00 00 F9 0C 81 [07:55:03]RasterBufferAndPrint [07:55:03]line [07:55:03]line [07:55:03]line [07:55:03]line [07:55:03]line [07:55:03]written 0, free lines is 3330 [07:55:03]MH_Cut [07:55:03]Write to MH i2c: D1 01 00 CC B0 01 4E [07:55:03]Write i2c OK [07:55:03]MH_I2C_Read... [07:55:03]Read from MH i2c: D1 [07:55:03]MH_I2C_Read... [07:55:03]Read from MH i2c: D1 01 00 [07:55:03]MH_I2C_Read... [07:55:03]Read from MH i2c: D1 01 00 CC B0 00 4D [07:55:03]Write to MH i2c: 01 00 00 CD B0 7D [07:55:03]Write i2c OK [07:55:03]MH_I2C_Read... [07:55:04]OFD Sender: No OFD packet to send [07:55:04]*** Cut start [07:55:04]*** Partial cut [07:55:04]*** CUTSNS_PIN = 1 [07:55:04]*** CUTSNS_PIN = 0 [07:55:04]*** Brake cut motor [07:55:04]Read from MH i2c: 01 [07:55:04]MH_I2C_Read... [07:55:04]*** Stop cut motor [07:55:04]*** Cut end [07:55:04]Read from MH i2c: 01 07 00 [07:55:04]MH_I2C_Read... [07:55:04]Read from MH i2c: 01 07 00 CD B0 00 00 00 00 00 FF 0F 92 [07:55:04]process_action close_receipt done [07:55:04]requested_data is exist [07:55:04]produce_requested_data [07:55:04]requested_item fm.sn is exist - process it [07:55:04]wFMCommunicate request_size=4 [07:55:04]MH_SAM_APDU [07:55:04]CAPDU: 80 11 00 00 [07:55:04]Write to MH i2c: E2 08 00 CE B0 80 11 00 00 00 00 00 00 F8 [07:55:04]Write i2c OK [07:55:04]MH_I2C_Read... [07:55:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:55:04]Read from MH i2c: E2 [07:55:04]MH_I2C_Read... [07:55:04]Read from MH i2c: E2 17 00 [07:55:04]MH_I2C_Read... [07:55:04]Read from MH i2c: E2 17 00 CE B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4A [07:55:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:55:04]wFMCommunicate OK [07:55:04]requested_item fd.num is exist - process it [07:55:04]SAM_PROTO_GetFieldsCounters [07:55:04]wFMCommunicate request_size=4 [07:55:04]MH_SAM_APDU [07:55:04]CAPDU: 80 13 00 00 [07:55:04]Write to MH i2c: E2 08 00 CF B0 80 13 00 00 00 00 00 00 FB [07:55:04]Write i2c OK [07:55:04]MH_I2C_Read... [07:55:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:55:05]Read from MH i2c: E2 [07:55:05]MH_I2C_Read... [07:55:05]Read from MH i2c: E2 62 00 [07:55:05]MH_I2C_Read... [07:55:05]Read from MH i2c: E2 62 00 CF B0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4B 0E 01 00 0E 04 04 00 C1 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 A9 [07:55:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4B 0E 01 00 0E 04 04 00 C1 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 [07:55:05]wFMCommunicate OK [07:55:05]SAM_PROTO_GetFieldsCounters done [07:55:05]requested_item shift.num is exist - process it [07:55:05]requested_item shift.opened is exist - process it [07:55:05]req_shift_opened [07:55:05]FM_GetShiftState [07:55:05]SAM_PROTO_GetShiftState [07:55:05]wFMCommunicate request_size=4 [07:55:05]MH_SAM_APDU [07:55:05]CAPDU: 80 13 01 00 [07:55:05]Write to MH i2c: E2 08 00 D0 B0 80 13 01 00 00 00 00 00 FD [07:55:05]Write i2c OK [07:55:05]MH_I2C_Read... [07:55:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:55:05]Read from MH i2c: E2 [07:55:05]MH_I2C_Read... [07:55:05]Read from MH i2c: E2 0E 00 [07:55:05]MH_I2C_Read... [07:55:05]Read from MH i2c: E2 0E 00 D0 B0 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 03 [07:55:05]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [07:55:05]wFMCommunicate OK [07:55:05]SAM_PROTO_GetShiftState done [07:55:05]FM_GetShiftState done [07:55:05]req_shift_opened done [07:55:05]requested_item shift.open_date is exist - process it [07:55:05]req_shift_open_date [07:55:05]req_shift_open_date done [07:55:05]produce_requested_data done [07:55:05]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69195,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [07:55:05]process_action_free close_receipt [07:55:05]json_value_free [07:55:05]json_value_free done [07:55:05]process_json_proto returns [07:55:05]Send response to host [07:55:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69195,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [07:55:05]free response buf [07:55:05]execute_script done [07:55:05]execute_script returns [07:55:05]free content buf [07:55:05]Sock 10.Close socket [07:55:05]Sock 10.Thread stoped [07:55:09]OFD Sender: No OFD packet to send [07:55:14]OFD Sender: No OFD packet to send [07:55:19]OFD Sender: No OFD packet to send [07:55:24]OFD Sender: No OFD packet to send [07:55:29]OFD Sender: No OFD packet to send [07:55:34]OFD Sender: No OFD packet to send [07:55:34]accept exits with 8 [07:55:34]New connection [07:55:34]New thread 3067116900 created [07:55:34]Thread 3067260260 joined [07:55:34]Waiting for new connection... [07:55:34] Sock 8.Parse request [07:55:34]Sock 8.Check first char [07:55:34]Sock 8.First char is OK [07:55:34]request: POST /json_proto HTTP/1.0 [07:55:34]Method: POST [07:55:34]URL: /json_proto [07:55:34]Method is POST - this is cgi request [07:55:34]url: /json_proto [07:55:34]query_string will be loaded in cgi processing [07:55:34]execute_cgi json_proto POST (null) [07:55:34]execute_cgi path=json_proto method=POST [07:55:34]POST find Content-Length [07:55:34]Host: 172.17.50.3:8080 [07:55:34]Content-Length: 770 [07:55:34]Content-Type: application/json [07:55:34] [07:55:34]POST finish read [07:55:34]Found Content-Length = 770 [07:55:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:55:34]execute_script... [07:55:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:55:34]POST & json_proto [07:55:34]process_json_proto [07:55:34]json parsed OK: [07:55:34]protocol is kg_v1.0 [07:55:34]action value=close_receipt [07:55:34]process_action close_receipt [07:55:34]cmd_close_receipt [07:55:34]MH_GetDate [07:55:34]Write to MH i2c: F0 00 00 D1 B0 70 [07:55:34]Write i2c OK [07:55:34]MH_I2C_Read... [07:55:34]Read from MH i2c: F0 [07:55:34]MH_I2C_Read... [07:55:34]Read from MH i2c: F0 09 00 [07:55:34]MH_I2C_Read... [07:55:34]Read from MH i2c: F0 09 00 D1 B0 00 7F B7 14 67 6B 98 1E 66 B1 [07:55:34]GetLastDocTimeStamp 1729410910 [07:55:34]current date 1729410943 [07:55:34]FM_GetShiftState [07:55:34]SAM_PROTO_GetShiftState [07:55:34]wFMCommunicate request_size=4 [07:55:34]MH_SAM_APDU [07:55:34]CAPDU: 80 13 01 00 [07:55:34]Write to MH i2c: E2 08 00 D2 B0 80 13 01 00 00 00 00 00 FF [07:55:34]Write i2c OK [07:55:34]MH_I2C_Read... [07:55:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:55:34]Read from MH i2c: E2 [07:55:34]MH_I2C_Read... [07:55:34]Read from MH i2c: E2 0E 00 [07:55:34]MH_I2C_Read... [07:55:34]Read from MH i2c: E2 0E 00 D2 B0 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 05 [07:55:34]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [07:55:34]wFMCommunicate OK [07:55:34]SAM_PROTO_GetShiftState done [07:55:34]FM_GetShiftState done [07:55:34]opened in 1729383220 [07:55:34]opened+sec_in_day 1729469620 [07:55:34]quantity*price = 100015 [07:55:34]sum+1 = 100017 [07:55:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 41 20.10.2024 07:55 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69196 ФПД: 206266381295793 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T075543&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69196&fm=206266381295793&tin=02508201610067®Number=0000000000156251&sum=100016 [07:55:35]StoreToDocumentArchive [07:55:35]shift 193 fd 69196 [07:55:35]save to /storage/0193/doc_00069196 [07:55:35]save last doc name /storage/0193/doc_00069196 to /storage/kkm_last_doc_name [07:55:35]save OK [07:55:35]Clear old archive folders... [07:55:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:55:35]tlvbuf is 00686CC0 [07:55:35]SAM_PROTO_ClearQueue [07:55:35]wFMCommunicate request_size=4 [07:55:35]MH_SAM_APDU [07:55:35]CAPDU: 80 09 00 00 [07:55:35]Write to MH i2c: E2 08 00 DF B0 80 09 00 00 00 00 00 00 01 [07:55:35]Write i2c OK [07:55:35]MH_I2C_Read... [07:55:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:55:35]Read from MH i2c: E2 [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: E2 03 00 [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: E2 03 00 DF B0 00 90 00 03 [07:55:35]RAPDU: 90 00 [07:55:35]wFMCommunicate OK [07:55:35]SAM_PROTO_ClearQueue done [07:55:35]KKMCreateOFDPacket [07:55:35]OFDProtocolAddRootSTLVToBuf [07:55:35]FM_MakeSignedData [07:55:35]FM_MakeSignedData [07:55:35]SAM_PROTO_SignData [07:55:35]wFMCommunicate request_size=4 [07:55:35]MH_SAM_APDU [07:55:35]CAPDU: 80 0D 01 02 [07:55:35]Write to MH i2c: E2 08 00 E0 B0 80 0D 01 02 00 00 00 00 09 [07:55:35]Write i2c OK [07:55:35]MH_I2C_Read... [07:55:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:55:35]Read from MH i2c: E2 [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: E2 03 00 [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: E2 03 00 E0 B0 00 90 00 04 [07:55:35]RAPDU: 90 00 [07:55:35]wFMCommunicate OK [07:55:35]wFMCommunicate request_size=255 [07:55:35]MH_SAM_APDU [07:55: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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 7F B7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4C 0E 01 00 35 04 06 00 BB [07:55:35]Write to MH i2c: E2 02 01 E1 B0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 7F B7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4C 0E 01 00 35 04 06 00 BB 00 00 5D [07:55:35]Write i2c OK [07:55:35]MH_I2C_Read... [07:55:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:55:35]Read from MH i2c: E2 [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: E2 03 00 [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: E2 03 00 E1 B0 00 90 00 05 [07:55:35]RAPDU: 90 00 [07:55:35]wFMCommunicate OK [07:55:35]wFMCommunicate request_size=10 [07:55:35]MH_SAM_APDU [07:55:35]CAPDU: 80 0D 02 02 05 99 22 62 E0 B1 [07:55:35]Write to MH i2c: E2 0D 00 E2 B0 80 0D 02 02 05 00 99 22 62 E0 B1 00 00 C4 [07:55:35]Write i2c OK [07:55:35]MH_I2C_Read... [07:55:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:55:35]Read from MH i2c: E2 [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: E2 03 00 [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: E2 03 00 E2 B0 00 90 00 06 [07:55:35]RAPDU: 90 00 [07:55:35]wFMCommunicate OK [07:55:35]wFMCommunicate request_size=4 [07:55:35]MH_SAM_APDU [07:55:35]CAPDU: 80 0D 03 02 [07:55:35]Write to MH i2c: E2 08 00 E3 B0 80 0D 03 02 00 00 00 00 0E [07:55:35]Write i2c OK [07:55:35]MH_I2C_Read... [07:55:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:55:35]Read from MH i2c: E2 [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: E2 0B 00 [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: E2 0B 00 E3 B0 00 F5 EA 11 C3 2E 71 72 02 90 00 D5 [07:55:35]RAPDU: F5 EA 11 C3 2E 71 72 02 90 00 [07:55:35]wFMCommunicate OK [07:55:35]SAM_PROTO_SignData done [07:55:35]FM_MakeSignedData done [07:55:35]CreateOFDProtocolMessage [07:55:35]wFMCommunicate request_size=4 [07:55:35]MH_SAM_APDU [07:55:35]CAPDU: 80 11 00 00 [07:55:35]Write to MH i2c: E2 08 00 E4 B0 80 11 00 00 00 00 00 00 0E [07:55:35]Write i2c OK [07:55:35]MH_I2C_Read... [07:55:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:55:35]Read from MH i2c: E2 [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: E2 17 00 [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: E2 17 00 E4 B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 60 [07:55:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:55:35]wFMCommunicate OK [07:55:35]CreateOFDProtocolMessage done [07:55:35]OFDSenderStorePacket 69196 [07:55:35]StoreOFDPacket docnum=69196 [07:55:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 7D 08 07 01 E5 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 7F B7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4C 0E 01 00 35 04 06 00 BB 99 22 62 E0 B1 F5 EA 11 C3 2E 71 72 02 [07:55:35]CheckFolder [07:55:35]dirname=/storage/ofd_packets [07:55:35]CheckFolder done [07:55:35]ProducePacketName [07:55:35]name=ofd_packets/00069196 [07:55:35]NVStorageSaveData ofd_packets/00069196 [07:55:35]File name is /storage/ofd_packets/00069196 [07:55:35]Write 301 bytes [07:55:35]NVStorageSaveData done [07:55:35]OFDSenderStorePacket done [07:55:35]KKMCreateOFDPacket done [07:55:35]NVStorageSaveData kkm_last_timestamp [07:55:35]File name is /storage/kkm_last_timestamp [07:55:35]Write 4 bytes [07:55:35]NVStorageSaveData done [07:55:35]ExternCall_PrintAddStr [07:55:35]wPrintStart [07:55:35]Write to MH i2c: 01 00 00 E5 B0 95 [07:55:35]Write i2c OK [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: 01 [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: 01 07 00 [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: 01 07 00 E5 B0 00 00 00 00 00 FF 0F AA [07:55:35]RasterBufferAndPrint [07:55:35]line Счет N : (1)2884908 [07:55:35]line ИНН: 02508201610067 [07:55:35]line Контрольно-Кассовый Чек [07:55:35]line ПРОДАЖА [07:55:35]line ТРК (МРК, ГНК) : 12 [07:55:35]line Товар: 2710124130 [07:55:35]line Аи-92-К-5 [07:55:35]line 14.950 * 66.90 [07:55:35]line = 1000.16 [07:55:35]line НДС 12% НСП 1% [07:55:35]line > о реализуемом товаре [07:55:35]line ИТОГО: 1000.16 [07:55:35]line НСП 1% : 8.85 [07:55:35]line НДС 12% : 106.21 [07:55:35]line Наличными: 0.00 [07:55:35]line Безнал.: 1000.16 [07:55:35]line Место: АЗС № 85 "Партнер Нефть" [07:55:35]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [07:55:35]line СНО: Общий режим [07:55:35]line Чек 41 20.10.2024 07:55 [07:55:35]line Смена: 193 ФФД: 1.0 [07:55:35]line ЗНМ: 0300000167 [07:55:35]line РНМ: 0000000000156251 [07:55:35]line Версия ККМ: v1.0 [07:55:35]line Платежная система: Mbank [07:55:35]line ФМ: 0000000000963346 [07:55:35]line ФД: 69196 [07:55:35]line ФПД: 206266381295793 [07:55:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T075543&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69196&fm=206266381295793&tin=02508201610067®Number=0000000000156251&sum=100016 [07:55:36]OFD Sender: Processing packet 69196 [packets to send 18, broken 17] [07:55:36]ProducePacketName [07:55:36]name=ofd_packets/00069196 [07:55:36]OFD Sender: To server: pG, [07:55:36]CommunicateWithHost lk.salyk.kg:30040 [07:55:36]ConnectInit lk.salyk.kg [07:55:36]written 0, free lines is 4095 [07:55:36]Connected sock=10 [07:55:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 7D 08 07 01 E5 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 7F B7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4C 0E 01 00 35 04 06 00 BB 99 22 62 E0 B1 F5 EA 11 C3 2E 71 72 02 [07:55:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 B0 DB 47 00 23 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4C 0E 01 00 F4 03 04 00 26 61 14 67 B6 04 01 00 00 38 97 2D 53 8D 72 9D 77 [07:55:36]CommunicateWithHost err = 0 [07:55:36]CheckOFDResponse [07:55:36]1017 (14) - 77093643461234 [07:55:36]1041 (16) - 0000000000963346 [07:55:36]1040 (4) - 69196 [07:55:36]1012 (4) - 20.10.2024 01:47 [07:55:36]1206 (1) - 0 [07:55:36]OFD Sender: Remove packet 69196 [07:55:36]ProducePacketName [07:55:36]name=ofd_packets/00069196 [07:55:36]NVStorageDeleteData [07:55:36]Write to MH i2c: 01 00 00 0E B1 BF [07:55:36]Write i2c OK [07:55:36]MH_I2C_Read... [07:55:36]Read from MH i2c: 01 [07:55:36]MH_I2C_Read... [07:55:36]Read from MH i2c: 01 07 00 [07:55:36]MH_I2C_Read... [07:55:36]Read from MH i2c: 01 07 00 0E B1 00 00 00 00 00 10 0D E3 [07:55:36]RasterBufferAndPrint [07:55:36]line [07:55:36]line [07:55:36]line [07:55:36]line [07:55:36]line [07:55:36]written 0, free lines is 3350 [07:55:36]MH_Cut [07:55:36]Write to MH i2c: D1 01 00 15 B1 01 98 [07:55:36]Write i2c OK [07:55:36]MH_I2C_Read... [07:55:36]Read from MH i2c: D1 [07:55:36]MH_I2C_Read... [07:55:36]Read from MH i2c: D1 01 00 [07:55:36]MH_I2C_Read... [07:55:36]Read from MH i2c: D1 01 00 15 B1 00 97 [07:55:36]Write to MH i2c: 01 00 00 16 B1 C7 [07:55:36]Write i2c OK [07:55:36]MH_I2C_Read... [07:55:36]OFD Sender: No OFD packet to send [07:55:37]*** Cut start [07:55:37]*** Partial cut [07:55:37]*** CUTSNS_PIN = 1 [07:55:37]*** CUTSNS_PIN = 0 [07:55:37]*** Brake cut motor [07:55:37]Read from MH i2c: 01 [07:55:37]MH_I2C_Read... [07:55:37]*** Stop cut motor [07:55:37]*** Cut end [07:55:37]Read from MH i2c: 01 07 00 [07:55:37]MH_I2C_Read... [07:55:37]Read from MH i2c: 01 07 00 16 B1 00 00 00 00 00 FF 0F DC [07:55:37]process_action close_receipt done [07:55:37]requested_data is exist [07:55:37]produce_requested_data [07:55:37]requested_item fm.sn is exist - process it [07:55:37]wFMCommunicate request_size=4 [07:55:37]MH_SAM_APDU [07:55:37]CAPDU: 80 11 00 00 [07:55:37]Write to MH i2c: E2 08 00 17 B1 80 11 00 00 00 00 00 00 42 [07:55:37]Write i2c OK [07:55:37]MH_I2C_Read... [07:55:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:55:37]Read from MH i2c: E2 [07:55:37]MH_I2C_Read... [07:55:37]Read from MH i2c: E2 17 00 [07:55:37]MH_I2C_Read... [07:55:37]Read from MH i2c: E2 17 00 17 B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 94 [07:55:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [07:55:37]wFMCommunicate OK [07:55:37]requested_item fd.num is exist - process it [07:55:37]SAM_PROTO_GetFieldsCounters [07:55:37]wFMCommunicate request_size=4 [07:55:37]MH_SAM_APDU [07:55:37]CAPDU: 80 13 00 00 [07:55:37]Write to MH i2c: E2 08 00 18 B1 80 13 00 00 00 00 00 00 45 [07:55:37]Write i2c OK [07:55:37]MH_I2C_Read... [07:55:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:55:38]Read from MH i2c: E2 [07:55:38]MH_I2C_Read... [07:55:38]Read from MH i2c: E2 62 00 [07:55:38]MH_I2C_Read... [07:55:38]Read from MH i2c: E2 62 00 18 B1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4C 0E 01 00 0E 04 04 00 C1 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 F7 [07:55:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4C 0E 01 00 0E 04 04 00 C1 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 [07:55:38]wFMCommunicate OK [07:55:38]SAM_PROTO_GetFieldsCounters done [07:55:38]requested_item shift.num is exist - process it [07:55:38]requested_item shift.opened is exist - process it [07:55:38]req_shift_opened [07:55:38]FM_GetShiftState [07:55:38]SAM_PROTO_GetShiftState [07:55:38]wFMCommunicate request_size=4 [07:55:38]MH_SAM_APDU [07:55:38]CAPDU: 80 13 01 00 [07:55:38]Write to MH i2c: E2 08 00 19 B1 80 13 01 00 00 00 00 00 47 [07:55:38]Write i2c OK [07:55:38]MH_I2C_Read... [07:55:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:55:38]Read from MH i2c: E2 [07:55:38]MH_I2C_Read... [07:55:38]Read from MH i2c: E2 0E 00 [07:55:38]MH_I2C_Read... [07:55:38]Read from MH i2c: E2 0E 00 19 B1 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 4D [07:55:38]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [07:55:38]wFMCommunicate OK [07:55:38]SAM_PROTO_GetShiftState done [07:55:38]FM_GetShiftState done [07:55:38]req_shift_opened done [07:55:38]requested_item shift.open_date is exist - process it [07:55:38]req_shift_open_date [07:55:38]req_shift_open_date done [07:55:38]produce_requested_data done [07:55:38]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69196,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [07:55:38]process_action_free close_receipt [07:55:38]json_value_free [07:55:38]json_value_free done [07:55:38]process_json_proto returns [07:55:38]Send response to host [07:55:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69196,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [07:55:38]free response buf [07:55:38]execute_script done [07:55:38]execute_script returns [07:55:38]free content buf [07:55:38]Sock 8.Close socket [07:55:38]Sock 8.Thread stoped [07:55:41]OFD Sender: No OFD packet to send [07:55:46]OFD Sender: No OFD packet to send [07:55:51]OFD Sender: No OFD packet to send [07:55: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:12]OFD Sender: No OFD packet to send [08:02:17]OFD Sender: No OFD packet to send [08:02:22]OFD Sender: No OFD packet to send [08:02:27]OFD Sender: No OFD packet to send [08:02:32]OFD Sender: No OFD packet to send [08:02:37]OFD Sender: No OFD packet to send [08:02:42]OFD Sender: No OFD packet to send [08:02:47]OFD Sender: No OFD packet to send [08:02:52]OFD Sender: No OFD packet to send [08:02:57]OFD Sender: No OFD packet to send [08:03:02]OFD Sender: No OFD packet to send [08:03:06]accept exits with 9 [08:03:06]New connection [08:03:06]New thread 3067260260 created [08:03:06]Thread 3067116900 joined [08:03:06]Waiting for new connection... [08:03:06] Sock 9.Parse request [08:03:06]Sock 9.Check first char [08:03:06]Sock 9.First char is OK [08:03:06]request: POST /json_proto HTTP/1.0 [08:03:06]Method: POST [08:03:06]URL: /json_proto [08:03:06]Method is POST - this is cgi request [08:03:06]url: /json_proto [08:03:06]query_string will be loaded in cgi processing [08:03:06]execute_cgi json_proto POST (null) [08:03:06]execute_cgi path=json_proto method=POST [08:03:06]POST find Content-Length [08:03:06]Host: 172.17.50.3:8080 [08:03:06]Content-Length: 767 [08:03:06]Content-Type: application/json [08:03:06] [08:03:06]POST finish read [08:03:06]Found Content-Length = 767 [08:03:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:06]execute_script... [08:03: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)2884910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:06]POST & json_proto [08:03:06]process_json_proto [08:03:06]json parsed OK: [08:03:06]protocol is kg_v1.0 [08:03:06]action value=close_receipt [08:03:06]process_action close_receipt [08:03:06]cmd_close_receipt [08:03:06]MH_GetDate [08:03:06]Write to MH i2c: F0 00 00 1A B1 BA [08:03:06]Write i2c OK [08:03:06]MH_I2C_Read... [08:03:06]Read from MH i2c: F0 [08:03:06]MH_I2C_Read... [08:03:06]Read from MH i2c: F0 09 00 [08:03:06]MH_I2C_Read... [08:03:06]Read from MH i2c: F0 09 00 1A B1 00 43 B9 14 67 6B 98 1E 66 C1 [08:03:06]GetLastDocTimeStamp 1729410943 [08:03:06]current date 1729411395 [08:03:06]FM_GetShiftState [08:03:06]SAM_PROTO_GetShiftState [08:03:06]wFMCommunicate request_size=4 [08:03:06]MH_SAM_APDU [08:03:06]CAPDU: 80 13 01 00 [08:03:06]Write to MH i2c: E2 08 00 1B B1 80 13 01 00 00 00 00 00 49 [08:03:06]Write i2c OK [08:03:06]MH_I2C_Read... [08:03:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:06]Read from MH i2c: E2 [08:03:06]MH_I2C_Read... [08:03:06]Read from MH i2c: E2 0E 00 [08:03:06]MH_I2C_Read... [08:03:06]Read from MH i2c: E2 0E 00 1B B1 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 4F [08:03:06]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [08:03:06]wFMCommunicate OK [08:03:06]SAM_PROTO_GetShiftState done [08:03:06]FM_GetShiftState done [08:03:06]opened in 1729383220 [08:03:06]opened+sec_in_day 1729469620 [08:03:06]quantity*price = 50041 [08:03:06]sum+1 = 50042 [08:03:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 42 20.10.2024 08:03 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69197 ФПД: 39000948519746 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T080315&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69197&fm=39000948519746&tin=02508201610067®Number=0000000000156251&sum=50041 [08:03:07]StoreToDocumentArchive [08:03:07]shift 193 fd 69197 [08:03:07]save to /storage/0193/doc_00069197 [08:03:07]save last doc name /storage/0193/doc_00069197 to /storage/kkm_last_doc_name [08:03:07]save OK [08:03:07]Clear old archive folders... [08:03:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:03:07]tlvbuf is 0045B170 [08:03:07]SAM_PROTO_ClearQueue [08:03:07]wFMCommunicate request_size=4 [08:03:07]MH_SAM_APDU [08:03:07]CAPDU: 80 09 00 00 [08:03:07]Write to MH i2c: E2 08 00 28 B1 80 09 00 00 00 00 00 00 4B [08:03:07]Write i2c OK [08:03:07]MH_I2C_Read... [08:03:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:03:07]Read from MH i2c: E2 [08:03:07]MH_I2C_Read... [08:03:07]Read from MH i2c: E2 03 00 [08:03:07]MH_I2C_Read... [08:03:07]Read from MH i2c: E2 03 00 28 B1 00 90 00 4D [08:03:07]RAPDU: 90 00 [08:03:07]wFMCommunicate OK [08:03:07]SAM_PROTO_ClearQueue done [08:03:07]KKMCreateOFDPacket [08:03:07]OFDProtocolAddRootSTLVToBuf [08:03:07]FM_MakeSignedData [08:03:07]FM_MakeSignedData [08:03:07]SAM_PROTO_SignData [08:03:07]wFMCommunicate request_size=4 [08:03:07]MH_SAM_APDU [08:03:07]CAPDU: 80 0D 01 02 [08:03:07]Write to MH i2c: E2 08 00 29 B1 80 0D 01 02 00 00 00 00 53 [08:03:07]Write i2c OK [08:03:07]MH_I2C_Read... [08:03:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:03:07]Read from MH i2c: E2 [08:03:07]MH_I2C_Read... [08:03:07]Read from MH i2c: E2 03 00 [08:03:07]MH_I2C_Read... [08:03:07]Read from MH i2c: E2 03 00 29 B1 00 90 00 4E [08:03:07]RAPDU: 90 00 [08:03:07]wFMCommunicate OK [08:03:07]wFMCommunicate request_size=255 [08:03:07]MH_SAM_APDU [08:03:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 43 B9 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4D 0E 01 00 35 04 06 00 23 [08:03:07]Write to MH i2c: E2 02 01 2A B1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 43 B9 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4D 0E 01 00 35 04 06 00 23 00 00 0F [08:03:07]Write i2c OK [08:03:07]MH_I2C_Read... [08:03:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:07]Read from MH i2c: E2 [08:03:07]MH_I2C_Read... [08:03:07]Read from MH i2c: E2 03 00 [08:03:07]MH_I2C_Read... [08:03:07]Read from MH i2c: E2 03 00 2A B1 00 90 00 4F [08:03:07]RAPDU: 90 00 [08:03:07]wFMCommunicate OK [08:03:07]wFMCommunicate request_size=10 [08:03:07]MH_SAM_APDU [08:03:07]CAPDU: 80 0D 02 02 05 78 9D AE B3 42 [08:03:07]Write to MH i2c: E2 0D 00 2B B1 80 0D 02 02 05 00 78 9D AE B3 42 00 00 18 [08:03:07]Write i2c OK [08:03:07]MH_I2C_Read... [08:03:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:08]Read from MH i2c: E2 [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: E2 03 00 [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: E2 03 00 2B B1 00 90 00 50 [08:03:08]RAPDU: 90 00 [08:03:08]wFMCommunicate OK [08:03:08]wFMCommunicate request_size=4 [08:03:08]MH_SAM_APDU [08:03:08]CAPDU: 80 0D 03 02 [08:03:08]Write to MH i2c: E2 08 00 2C B1 80 0D 03 02 00 00 00 00 58 [08:03:08]Write i2c OK [08:03:08]MH_I2C_Read... [08:03:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:03:08]Read from MH i2c: E2 [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: E2 0B 00 [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: E2 0B 00 2C B1 00 ED B1 DF 7A FB 53 F7 89 90 00 1E [08:03:08]RAPDU: ED B1 DF 7A FB 53 F7 89 90 00 [08:03:08]wFMCommunicate OK [08:03:08]SAM_PROTO_SignData done [08:03:08]FM_MakeSignedData done [08:03:08]CreateOFDProtocolMessage [08:03:08]wFMCommunicate request_size=4 [08:03:08]MH_SAM_APDU [08:03:08]CAPDU: 80 11 00 00 [08:03:08]Write to MH i2c: E2 08 00 2D B1 80 11 00 00 00 00 00 00 58 [08:03:08]Write i2c OK [08:03:08]MH_I2C_Read... [08:03:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:08]Read from MH i2c: E2 [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: E2 17 00 [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: E2 17 00 2D B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AA [08:03:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:03:08]wFMCommunicate OK [08:03:08]CreateOFDProtocolMessage done [08:03:08]OFDSenderStorePacket 69197 [08:03:08]StoreOFDPacket docnum=69197 [08:03:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 32 C0 07 01 FE 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 43 B9 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4D 0E 01 00 35 04 06 00 23 78 9D AE B3 42 ED B1 DF 7A FB 53 F7 89 [08:03:08]CheckFolder [08:03:08]dirname=/storage/ofd_packets [08:03:08]CheckFolder done [08:03:08]ProducePacketName [08:03:08]name=ofd_packets/00069197 [08:03:08]NVStorageSaveData ofd_packets/00069197 [08:03:08]File name is /storage/ofd_packets/00069197 [08:03:08]Write 301 bytes [08:03:08]NVStorageSaveData done [08:03:08]OFDSenderStorePacket done [08:03:08]KKMCreateOFDPacket done [08:03:08]NVStorageSaveData kkm_last_timestamp [08:03:08]File name is /storage/kkm_last_timestamp [08:03:08]Write 4 bytes [08:03:08]NVStorageSaveData done [08:03:08]ExternCall_PrintAddStr [08:03:08]wPrintStart [08:03:08]Write to MH i2c: 01 00 00 2E B1 DF [08:03:08]Write i2c OK [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: 01 [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: 01 07 00 [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: 01 07 00 2E B1 00 00 00 00 00 FF 0F F4 [08:03:08]RasterBufferAndPrint [08:03:08]line Счет N : (1)2884910 [08:03:08]line ИНН: 02508201610067 [08:03:08]line Контрольно-Кассовый Чек [08:03:08]line ПРОДАЖА [08:03:08]line ТРК (МРК, ГНК) : 32 [08:03:08]line Товар: 2710124130 [08:03:08]line Аи-92-К-5 [08:03:08]line 7.480 * 66.90 [08:03:08]line = 500.41 [08:03:08]line НДС 12% НСП 1% [08:03:08]line > о реализуемом товаре [08:03:08]line ИТОГО: 500.41 [08:03:08]line НСП 1% : 4.43 [08:03:08]line НДС 12% : 53.14 [08:03:08]line Наличными: 0.00 [08:03:08]line Безнал.: 500.41 [08:03:08]line Место: АЗС № 85 "Партнер Нефть" [08:03:08]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:03:08]line СНО: Общий режим [08:03:08]line Чек 42 20.10.2024 08:03 [08:03:08]line Смена: 193 ФФД: 1.0 [08:03:08]line ЗНМ: 0300000167 [08:03:08]line РНМ: 0000000000156251 [08:03:08]line Версия ККМ: v1.0 [08:03:08]line Платежная система: Mbank [08:03:08]line ФМ: 0000000000963346 [08:03:08]line ФД: 69197 [08:03:08]line ФПД: 39000948519746 [08:03:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T080315&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69197&fm=39000948519746&tin=02508201610067®Number=0000000000156251&sum=50041 [08:03:08]OFD Sender: Processing packet 69197 [packets to send 18, broken 17] [08:03:08]ProducePacketName [08:03:08]name=ofd_packets/00069197 [08:03:08]OFD Sender: To server: pG, [08:03:08]CommunicateWithHost lk.salyk.kg:30040 [08:03:08]ConnectInit lk.salyk.kg [08:03:08]written 0, free lines is 4095 [08:03:08]Connected sock=10 [08:03:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 32 C0 07 01 FE 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 43 B9 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4D 0E 01 00 35 04 06 00 23 78 9D AE B3 42 ED B1 DF 7A FB 53 F7 89 [08:03:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 DF 6A 47 00 F2 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4D 0E 01 00 F4 03 04 00 EB 62 14 67 B6 04 01 00 00 0F 06 E5 2F 11 E8 86 4E [08:03:08]CommunicateWithHost err = 0 [08:03:08]CheckOFDResponse [08:03:08]1017 (14) - 77093643461234 [08:03:08]1041 (16) - 0000000000963346 [08:03:08]1040 (4) - 69197 [08:03:08]1012 (4) - 20.10.2024 01:54 [08:03:08]1206 (1) - 0 [08:03:08]OFD Sender: Remove packet 69197 [08:03:08]ProducePacketName [08:03:08]name=ofd_packets/00069197 [08:03:08]NVStorageDeleteData [08:03:08]Write to MH i2c: 01 00 00 57 B1 08 [08:03:08]Write i2c OK [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: 01 [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: 01 07 00 [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: 01 07 00 57 B1 00 00 00 00 00 0E 0D 2A [08:03:08]RasterBufferAndPrint [08:03:08]line [08:03:08]line [08:03:08]line [08:03:08]line [08:03:08]line [08:03:08]written 0, free lines is 3348 [08:03:08]MH_Cut [08:03:08]Write to MH i2c: D1 01 00 5E B1 01 E1 [08:03:08]Write i2c OK [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: D1 [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: D1 01 00 [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: D1 01 00 5E B1 00 E0 [08:03:08]Write to MH i2c: 01 00 00 5F B1 10 [08:03:08]Write i2c OK [08:03:08]MH_I2C_Read... [08:03:09]OFD Sender: No OFD packet to send [08:03:09]*** Cut start [08:03:09]*** Partial cut [08:03:09]*** CUTSNS_PIN = 1 [08:03:09]*** CUTSNS_PIN = 0 [08:03:09]*** Brake cut motor [08:03:10]Read from MH i2c: 01 [08:03:10]MH_I2C_Read... [08:03:10]*** Stop cut motor [08:03:10]*** Cut end [08:03:10]Read from MH i2c: 01 07 00 [08:03:10]MH_I2C_Read... [08:03:10]Read from MH i2c: 01 07 00 5F B1 00 00 00 00 00 FF 0F 25 [08:03:10]process_action close_receipt done [08:03:10]requested_data is exist [08:03:10]produce_requested_data [08:03:10]requested_item fm.sn is exist - process it [08:03:10]wFMCommunicate request_size=4 [08:03:10]MH_SAM_APDU [08:03:10]CAPDU: 80 11 00 00 [08:03:10]Write to MH i2c: E2 08 00 60 B1 80 11 00 00 00 00 00 00 8B [08:03:10]Write i2c OK [08:03:10]MH_I2C_Read... [08:03:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:10]Read from MH i2c: E2 [08:03:10]MH_I2C_Read... [08:03:10]Read from MH i2c: E2 17 00 [08:03:10]MH_I2C_Read... [08:03:10]Read from MH i2c: E2 17 00 60 B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DD [08:03:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:03:10]wFMCommunicate OK [08:03:10]requested_item fd.num is exist - process it [08:03:10]SAM_PROTO_GetFieldsCounters [08:03:10]wFMCommunicate request_size=4 [08:03:10]MH_SAM_APDU [08:03:10]CAPDU: 80 13 00 00 [08:03:10]Write to MH i2c: E2 08 00 61 B1 80 13 00 00 00 00 00 00 8E [08:03:10]Write i2c OK [08:03:10]MH_I2C_Read... [08:03:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:03:10]Read from MH i2c: E2 [08:03:10]MH_I2C_Read... [08:03:10]Read from MH i2c: E2 62 00 [08:03:10]MH_I2C_Read... [08:03:10]Read from MH i2c: E2 62 00 61 B1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4D 0E 01 00 0E 04 04 00 C1 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 44 [08:03:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4D 0E 01 00 0E 04 04 00 C1 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 [08:03:10]wFMCommunicate OK [08:03:10]SAM_PROTO_GetFieldsCounters done [08:03:10]requested_item shift.num is exist - process it [08:03:10]requested_item shift.opened is exist - process it [08:03:10]req_shift_opened [08:03:10]FM_GetShiftState [08:03:10]SAM_PROTO_GetShiftState [08:03:10]wFMCommunicate request_size=4 [08:03:10]MH_SAM_APDU [08:03:10]CAPDU: 80 13 01 00 [08:03:10]Write to MH i2c: E2 08 00 62 B1 80 13 01 00 00 00 00 00 90 [08:03:10]Write i2c OK [08:03:10]MH_I2C_Read... [08:03:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:10]Read from MH i2c: E2 [08:03:10]MH_I2C_Read... [08:03:10]Read from MH i2c: E2 0E 00 [08:03:10]MH_I2C_Read... [08:03:10]Read from MH i2c: E2 0E 00 62 B1 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 96 [08:03:10]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [08:03:10]wFMCommunicate OK [08:03:10]SAM_PROTO_GetShiftState done [08:03:10]FM_GetShiftState done [08:03:10]req_shift_opened done [08:03:10]requested_item shift.open_date is exist - process it [08:03:10]req_shift_open_date [08:03:10]req_shift_open_date done [08:03:10]produce_requested_data done [08:03:10]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69197,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [08:03:10]process_action_free close_receipt [08:03:10]json_value_free [08:03:10]json_value_free done [08:03:10]process_json_proto returns [08:03:10]Send response to host [08:03:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69197,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [08:03:10]free response buf [08:03:10]execute_script done [08:03:10]execute_script returns [08:03:10]free content buf [08:03:10]Sock 9.Close socket [08:03:10]Sock 9.Thread stoped [08:03:14]OFD Sender: No OFD packet to send [08:03:19]OFD Sender: No OFD packet to send [08:03:24]OFD Sender: No OFD packet to send [08:03:29]OFD Sender: No OFD packet to send [08:03:34]OFD Sender: No OFD packet to send [08:03:39]OFD Sender: No OFD packet to send [08:03:44]OFD Sender: No OFD packet to send [08:03:49]OFD Sender: No OFD packet to send [08:03:54]OFD Sender: No OFD packet to send [08:03:59]OFD Sender: No OFD packet to send [08:04:04]OFD Sender: No OFD packet to send [08:04:09]OFD Sender: No OFD packet to send [08:04:14]OFD Sender: No OFD packet to send [08:04:19]OFD Sender: No OFD packet to send [08:04:24]OFD Sender: No OFD packet to send [08:04:29]OFD Sender: No OFD packet to send [08:04:34]OFD Sender: No OFD packet to send [08:04:39]OFD Sender: No OFD packet to send [08:04:44]OFD Sender: No OFD packet to send [08:04:49]OFD Sender: No OFD packet to send [08:04:54]OFD Sender: No OFD packet to send [08:04:59]OFD Sender: No OFD packet to send [08:05:04]OFD Sender: No OFD packet to send [08:05:09]OFD Sender: No OFD packet to send [08:05:14]OFD Sender: No OFD packet to send [08:05:19]OFD Sender: No OFD packet to send [08:05:24]OFD Sender: No OFD packet to send [08:05:29]OFD Sender: No OFD packet to send [08:05:34]OFD Sender: No OFD packet to send [08:05:39]OFD Sender: No OFD packet to send [08:05:44]OFD Sender: No OFD packet to send [08:05:49]OFD Sender: No OFD packet to send [08:05:54]OFD Sender: No OFD packet to send [08:05:59]OFD Sender: No OFD packet to send [08:06:04]OFD Sender: No OFD packet to send [08:06:09]OFD Sender: No OFD packet to send [08:06:14]OFD Sender: No OFD packet to send [08:06:19]OFD Sender: No OFD packet to send [08:06:24]OFD Sender: No OFD packet to send [08:06:29]OFD Sender: No OFD packet to send [08:06:34]OFD Sender: No OFD packet to send [08:06:39]OFD Sender: No OFD packet to send [08:06:44]OFD Sender: No OFD packet to send [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:17]accept exits with 8 [08:07:17]New connection [08:07:17]New thread 3067116900 created [08:07:17]Thread 3067260260 joined [08:07:17]Waiting for new connection... [08:07:17] Sock 8.Parse request [08:07:17]Sock 8.Check first char [08:07:17]Sock 8.First char is OK [08:07:17]request: POST /json_proto HTTP/1.0 [08:07:17]Method: POST [08:07:17]URL: /json_proto [08:07:17]Method is POST - this is cgi request [08:07:17]url: /json_proto [08:07:17]query_string will be loaded in cgi processing [08:07:17]execute_cgi json_proto POST (null) [08:07:17]execute_cgi path=json_proto method=POST [08:07:17]POST find Content-Length [08:07:17]Host: 172.17.50.3:8080 [08:07:17]Content-Length: 686 [08:07:17]Content-Type: application/json [08:07:17] [08:07:17]POST finish read [08:07:17]Found Content-Length = 686 [08:07:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 51.420, "sum" : 2000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:17]execute_script... [08:07:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 51.420, "sum" : 2000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:17]POST & json_proto [08:07:17]process_json_proto [08:07:17]json parsed OK: [08:07:17]protocol is kg_v1.0 [08:07:17]action value=close_receipt [08:07:17]process_action close_receipt [08:07:17]cmd_close_receipt [08:07:17]MH_GetDate [08:07:17]Write to MH i2c: F0 00 00 63 B1 03 [08:07:17]Write i2c OK [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: F0 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: F0 09 00 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: F0 09 00 63 B1 00 3E BA 14 67 6B 98 1E 66 06 [08:07:17]GetLastDocTimeStamp 1729411395 [08:07:17]current date 1729411646 [08:07:17]FM_GetShiftState [08:07:17]SAM_PROTO_GetShiftState [08:07:17]wFMCommunicate request_size=4 [08:07:17]MH_SAM_APDU [08:07:17]CAPDU: 80 13 01 00 [08:07:17]Write to MH i2c: E2 08 00 64 B1 80 13 01 00 00 00 00 00 92 [08:07:17]Write i2c OK [08:07:17]MH_I2C_Read... [08:07:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:17]Read from MH i2c: E2 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 0E 00 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 0E 00 64 B1 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 98 [08:07:17]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [08:07:17]wFMCommunicate OK [08:07:17]SAM_PROTO_GetShiftState done [08:07:17]FM_GetShiftState done [08:07:17]opened in 1729383220 [08:07:17]opened+sec_in_day 1729469620 [08:07:17]quantity*price = 200023 [08:07:17]sum+1 = 200025 [08:07:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.41 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 43 20.10.2024 08:07 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69198 ФПД: 46829618466344 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T080726&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69198&fm=46829618466344&tin=02508201610067®Number=0000000000156251&sum=200000 [08:07:18]StoreToDocumentArchive [08:07:18]shift 193 fd 69198 [08:07:18]save to /storage/0193/doc_00069198 [08:07:18]save last doc name /storage/0193/doc_00069198 to /storage/kkm_last_doc_name [08:07:18]save OK [08:07:18]Clear old archive folders... [08:07:18]ProcessDocumentItem done err = 0, tmpTLVsize=250 [08:07:18]tlvbuf is 0054A330 [08:07:18]SAM_PROTO_ClearQueue [08:07:18]wFMCommunicate request_size=4 [08:07:18]MH_SAM_APDU [08:07:18]CAPDU: 80 09 00 00 [08:07:18]Write to MH i2c: E2 08 00 71 B1 80 09 00 00 00 00 00 00 94 [08:07:18]Write i2c OK [08:07:18]MH_I2C_Read... [08:07:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:07:18]Read from MH i2c: E2 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: E2 03 00 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: E2 03 00 71 B1 00 90 00 96 [08:07:18]RAPDU: 90 00 [08:07:18]wFMCommunicate OK [08:07:18]SAM_PROTO_ClearQueue done [08:07:18]KKMCreateOFDPacket [08:07:18]OFDProtocolAddRootSTLVToBuf [08:07:18]FM_MakeSignedData [08:07:18]FM_MakeSignedData [08:07:18]SAM_PROTO_SignData [08:07:18]wFMCommunicate request_size=4 [08:07:18]MH_SAM_APDU [08:07:18]CAPDU: 80 0D 01 02 [08:07:18]Write to MH i2c: E2 08 00 72 B1 80 0D 01 02 00 00 00 00 9C [08:07:18]Write i2c OK [08:07:18]MH_I2C_Read... [08:07:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:07:18]Read from MH i2c: E2 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: E2 03 00 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: E2 03 00 72 B1 00 90 00 97 [08:07:18]RAPDU: 90 00 [08:07:18]wFMCommunicate OK [08:07:18]wFMCommunicate request_size=255 [08:07:18]MH_SAM_APDU [08:07:18]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 3E BA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4E 0E 01 00 35 04 06 00 2A 97 [08:07:18]Write to MH i2c: E2 02 01 73 B1 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 3E BA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4E 0E 01 00 35 04 06 00 2A 97 00 00 F3 [08:07:18]Write i2c OK [08:07:18]MH_I2C_Read... [08:07:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:18]Read from MH i2c: E2 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: E2 03 00 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: E2 03 00 73 B1 00 90 00 98 [08:07:18]RAPDU: 90 00 [08:07:18]wFMCommunicate OK [08:07:18]wFMCommunicate request_size=9 [08:07:18]MH_SAM_APDU [08:07:18]CAPDU: 80 0D 02 02 04 5E C6 0E 28 [08:07:18]Write to MH i2c: E2 0C 00 74 B1 80 0D 02 02 04 00 5E C6 0E 28 00 00 01 [08:07:18]Write i2c OK [08:07:18]MH_I2C_Read... [08:07:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:18]Read from MH i2c: E2 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: E2 03 00 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: E2 03 00 74 B1 00 90 00 99 [08:07:18]RAPDU: 90 00 [08:07:18]wFMCommunicate OK [08:07:18]wFMCommunicate request_size=4 [08:07:18]MH_SAM_APDU [08:07:18]CAPDU: 80 0D 03 02 [08:07:18]Write to MH i2c: E2 08 00 75 B1 80 0D 03 02 00 00 00 00 A1 [08:07:18]Write i2c OK [08:07:18]MH_I2C_Read... [08:07:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:07:18]Read from MH i2c: E2 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: E2 0B 00 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: E2 0B 00 75 B1 00 E0 1C C7 50 0B 16 89 78 90 00 D7 [08:07:18]RAPDU: E0 1C C7 50 0B 16 89 78 90 00 [08:07:18]wFMCommunicate OK [08:07:18]SAM_PROTO_SignData done [08:07:18]FM_MakeSignedData done [08:07:18]CreateOFDProtocolMessage [08:07:18]wFMCommunicate request_size=4 [08:07:18]MH_SAM_APDU [08:07:18]CAPDU: 80 11 00 00 [08:07:18]Write to MH i2c: E2 08 00 76 B1 80 11 00 00 00 00 00 00 A1 [08:07:18]Write i2c OK [08:07:18]MH_I2C_Read... [08:07:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:19]Read from MH i2c: E2 [08:07:19]MH_I2C_Read... [08:07:19]Read from MH i2c: E2 17 00 [08:07:19]MH_I2C_Read... [08:07:19]Read from MH i2c: E2 17 00 76 B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F3 [08:07:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:07:19]wFMCommunicate OK [08:07:19]CreateOFDProtocolMessage done [08:07:19]OFDSenderStorePacket 69198 [08:07:19]StoreOFDPacket docnum=69198 [08:07:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 0A 4D 06 01 83 BF 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 3E BA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4E 0E 01 00 35 04 06 00 2A 97 5E C6 0E 28 E0 1C C7 50 0B 16 89 78 [08:07:19]CheckFolder [08:07:19]dirname=/storage/ofd_packets [08:07:19]CheckFolder done [08:07:19]ProducePacketName [08:07:19]name=ofd_packets/00069198 [08:07:19]NVStorageSaveData ofd_packets/00069198 [08:07:19]File name is /storage/ofd_packets/00069198 [08:07:19]Write 300 bytes [08:07:19]NVStorageSaveData done [08:07:19]OFDSenderStorePacket done [08:07:19]KKMCreateOFDPacket done [08:07:19]NVStorageSaveData kkm_last_timestamp [08:07:19]File name is /storage/kkm_last_timestamp [08:07:19]Write 4 bytes [08:07:19]NVStorageSaveData done [08:07:19]ExternCall_PrintAddStr [08:07:19]wPrintStart [08:07:19]Write to MH i2c: 01 00 00 77 B1 28 [08:07:19]Write i2c OK [08:07:19]MH_I2C_Read... [08:07:19]Read from MH i2c: 01 [08:07:19]MH_I2C_Read... [08:07:19]Read from MH i2c: 01 07 00 [08:07:19]MH_I2C_Read... [08:07:19]Read from MH i2c: 01 07 00 77 B1 00 00 00 00 00 FF 0F 3D [08:07:19]RasterBufferAndPrint [08:07:19]line Счет N : (1)2884911 [08:07:19]line ИНН: 02508201610067 [08:07:19]line Контрольно-Кассовый Чек [08:07:19]line ПРОДАЖА [08:07:19]line ТРК (МРК, ГНК) : 71 [08:07:19]line Товар: 2711129700 [08:07:19]line ГАЗ-К-3 [08:07:19]line 51.420 * 38.90 [08:07:19]line = 2000.24 [08:07:19]line НДС 12% НСП 1% [08:07:19]line > о реализуемом товаре [08:07:19]line ОКРУГЛЕНИЕ: -0.24 [08:07:19]line ИТОГО: 2000.00 [08:07:19]line Внесено: 2000.00 [08:07:19]line СДАЧА: 0.00 [08:07:19]line НСП 1% : 17.70 [08:07:19]line НДС 12% : 212.41 [08:07:19]line Наличными: 2000.00 [08:07:19]line Безнал.: 0.00 [08:07:19]line Место: АЗС № 85 "Партнер Нефть" [08:07:19]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:07:19]line СНО: Общий режим [08:07:19]line Чек 43 20.10.2024 08:07 [08:07:19]line Смена: 193 ФФД: 1.0 [08:07:19]line ЗНМ: 0300000167 [08:07:19]line РНМ: 0000000000156251 [08:07:19]line Версия ККМ: v1.0 [08:07:19]line ФМ: 0000000000963346 [08:07:19]line ФД: 69198 [08:07:19]line ФПД: 46829618466344 [08:07:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T080726&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69198&fm=46829618466344&tin=02508201610067®Number=0000000000156251&sum=200000 [08:07:19]OFD Sender: Processing packet 69198 [packets to send 18, broken 17] [08:07:19]ProducePacketName [08:07:19]name=ofd_packets/00069198 [08:07:19]OFD Sender: To server: pG, [08:07:19]CommunicateWithHost lk.salyk.kg:30040 [08:07:19]ConnectInit lk.salyk.kg [08:07:19]written 0, free lines is 4095 [08:07:19]Connected sock=10 [08:07:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 0A 4D 06 01 83 BF 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 3E BA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4E 0E 01 00 35 04 06 00 2A 97 5E C6 0E 28 E0 1C C7 50 0B 16 89 78 [08:07:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 19 0C 47 00 F1 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4E 0E 01 00 F4 03 04 00 E6 63 14 67 B6 04 01 00 00 88 F4 52 1C 28 1D 46 DD [08:07:19]CommunicateWithHost err = 0 [08:07:19]CheckOFDResponse [08:07:19]1017 (14) - 77093643461234 [08:07:19]1041 (16) - 0000000000963346 [08:07:19]1040 (4) - 69198 [08:07:19]1012 (4) - 20.10.2024 01:59 [08:07:19]1206 (1) - 0 [08:07:19]OFD Sender: Remove packet 69198 [08:07:19]ProducePacketName [08:07:19]name=ofd_packets/00069198 [08:07:19]NVStorageDeleteData [08:07:19]Write to MH i2c: 01 00 00 A2 B1 53 [08:07:19]Write i2c OK [08:07:19]MH_I2C_Read... [08:07:19]Read from MH i2c: 01 [08:07:19]MH_I2C_Read... [08:07:19]Read from MH i2c: 01 07 00 [08:07:19]MH_I2C_Read... [08:07:19]Read from MH i2c: 01 07 00 A2 B1 00 00 00 00 00 ED 0C 53 [08:07:19]RasterBufferAndPrint [08:07:19]line [08:07:19]line [08:07:19]line [08:07:19]line [08:07:19]line [08:07:19]written 0, free lines is 3318 [08:07:19]MH_Cut [08:07:19]Write to MH i2c: D1 01 00 A9 B1 01 2C [08:07:19]Write i2c OK [08:07:19]MH_I2C_Read... [08:07:19]Read from MH i2c: D1 [08:07:19]MH_I2C_Read... [08:07:19]Read from MH i2c: D1 01 00 [08:07:19]MH_I2C_Read... [08:07:19]Read from MH i2c: D1 01 00 A9 B1 00 2B [08:07:19]Write to MH i2c: 01 00 00 AA B1 5B [08:07:19]Write i2c OK [08:07:19]MH_I2C_Read... [08:07:20]OFD Sender: No OFD packet to send [08:07:20]*** Cut start [08:07:20]*** Partial cut [08:07:20]*** CUTSNS_PIN = 1 [08:07:20]*** CUTSNS_PIN = 0 [08:07:20]*** Brake cut motor [08:07:21]Read from MH i2c: 01 [08:07:21]MH_I2C_Read... [08:07:21]*** Stop cut motor [08:07:21]*** Cut end [08:07:21]Read from MH i2c: 01 07 00 [08:07:21]MH_I2C_Read... [08:07:21]Read from MH i2c: 01 07 00 AA B1 00 00 00 00 00 FF 0F 70 [08:07:21]process_action close_receipt done [08:07:21]requested_data is exist [08:07:21]produce_requested_data [08:07:21]requested_item fm.sn is exist - process it [08:07:21]wFMCommunicate request_size=4 [08:07:21]MH_SAM_APDU [08:07:21]CAPDU: 80 11 00 00 [08:07:21]Write to MH i2c: E2 08 00 AB B1 80 11 00 00 00 00 00 00 D6 [08:07:21]Write i2c OK [08:07:21]MH_I2C_Read... [08:07:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:21]Read from MH i2c: E2 [08:07:21]MH_I2C_Read... [08:07:21]Read from MH i2c: E2 17 00 [08:07:21]MH_I2C_Read... [08:07:21]Read from MH i2c: E2 17 00 AB B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 28 [08:07:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:07:21]wFMCommunicate OK [08:07:21]requested_item fd.num is exist - process it [08:07:21]SAM_PROTO_GetFieldsCounters [08:07:21]wFMCommunicate request_size=4 [08:07:21]MH_SAM_APDU [08:07:21]CAPDU: 80 13 00 00 [08:07:21]Write to MH i2c: E2 08 00 AC B1 80 13 00 00 00 00 00 00 D9 [08:07:21]Write i2c OK [08:07:21]MH_I2C_Read... [08:07:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:07:21]Read from MH i2c: E2 [08:07:21]MH_I2C_Read... [08:07:21]Read from MH i2c: E2 62 00 [08:07:21]MH_I2C_Read... [08:07:21]Read from MH i2c: E2 62 00 AC B1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4E 0E 01 00 0E 04 04 00 C1 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 93 [08:07:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4E 0E 01 00 0E 04 04 00 C1 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 [08:07:21]wFMCommunicate OK [08:07:21]SAM_PROTO_GetFieldsCounters done [08:07:21]requested_item shift.num is exist - process it [08:07:21]requested_item shift.opened is exist - process it [08:07:21]req_shift_opened [08:07:21]FM_GetShiftState [08:07:21]SAM_PROTO_GetShiftState [08:07:21]wFMCommunicate request_size=4 [08:07:21]MH_SAM_APDU [08:07:21]CAPDU: 80 13 01 00 [08:07:21]Write to MH i2c: E2 08 00 AD B1 80 13 01 00 00 00 00 00 DB [08:07:21]Write i2c OK [08:07:21]MH_I2C_Read... [08:07:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:21]Read from MH i2c: E2 [08:07:21]MH_I2C_Read... [08:07:21]Read from MH i2c: E2 0E 00 [08:07:21]MH_I2C_Read... [08:07:21]Read from MH i2c: E2 0E 00 AD B1 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 E1 [08:07:21]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [08:07:21]wFMCommunicate OK [08:07:21]SAM_PROTO_GetShiftState done [08:07:21]FM_GetShiftState done [08:07:21]req_shift_opened done [08:07:21]requested_item shift.open_date is exist - process it [08:07:21]req_shift_open_date [08:07:21]req_shift_open_date done [08:07:21]produce_requested_data done [08:07:21]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69198,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [08:07:21]process_action_free close_receipt [08:07:21]json_value_free [08:07:21]json_value_free done [08:07:21]process_json_proto returns [08:07:21]Send response to host [08:07:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69198,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [08:07:21]free response buf [08:07:21]execute_script done [08:07:21]execute_script returns [08:07:21]free content buf [08:07:21]Sock 8.Close socket [08:07:21]Sock 8.Thread stoped [08:07:25]OFD Sender: No OFD packet to send [08:07:30]OFD Sender: No OFD packet to send [08:07:35]OFD Sender: No OFD packet to send [08:07:40]OFD Sender: No OFD packet to send [08:07:45]OFD Sender: No OFD packet to send [08:07:50]OFD Sender: No OFD packet to send [08:07:55]OFD Sender: No OFD packet to send [08:08:00]OFD Sender: No OFD packet to send [08:08:05]OFD Sender: No OFD packet to send [08:08:10]OFD Sender: No OFD packet to send [08:08:15]OFD Sender: No OFD packet to send [08:08:20]OFD Sender: No OFD packet to send [08:08:25]OFD Sender: No OFD packet to send [08:08:30]OFD Sender: No OFD packet to send [08:08:35]OFD Sender: No OFD packet to send [08:08:40]OFD Sender: No OFD packet to send [08:08:45]OFD Sender: No OFD packet to send [08:08:50]OFD Sender: No OFD packet to send [08:08:50]accept exits with 9 [08:08:50]New connection [08:08:50]New thread 3067260260 created [08:08:50]Thread 3067116900 joined [08:08:50]Waiting for new connection... [08:08:50] Sock 9.Parse request [08:08:50]Sock 9.Check first char [08:08:50]Sock 9.First char is OK [08:08:50]request: POST /json_proto HTTP/1.0 [08:08:50]Method: POST [08:08:50]URL: /json_proto [08:08:50]Method is POST - this is cgi request [08:08:50]url: /json_proto [08:08:50]query_string will be loaded in cgi processing [08:08:50]execute_cgi json_proto POST (null) [08:08:50]execute_cgi path=json_proto method=POST [08:08:50]POST find Content-Length [08:08:50]Host: 172.17.50.3:8080 [08:08:50]Content-Length: 678 [08:08:50]Content-Type: application/json [08:08:50] [08:08:50]POST finish read [08:08:50]Found Content-Length = 678 [08:08:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:08:50]execute_script... [08:08: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)2884912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:08:50]POST & json_proto [08:08:50]process_json_proto [08:08:50]json parsed OK: [08:08:50]protocol is kg_v1.0 [08:08:50]action value=close_receipt [08:08:50]process_action close_receipt [08:08:50]cmd_close_receipt [08:08:50]MH_GetDate [08:08:50]Write to MH i2c: F0 00 00 AE B1 4E [08:08:50]Write i2c OK [08:08:50]MH_I2C_Read... [08:08:50]Read from MH i2c: F0 [08:08:50]MH_I2C_Read... [08:08:50]Read from MH i2c: F0 09 00 [08:08:50]MH_I2C_Read... [08:08:50]Read from MH i2c: F0 09 00 AE B1 00 9C BA 14 67 6B 98 1E 66 AF [08:08:50]GetLastDocTimeStamp 1729411646 [08:08:50]current date 1729411740 [08:08:50]FM_GetShiftState [08:08:50]SAM_PROTO_GetShiftState [08:08:50]wFMCommunicate request_size=4 [08:08:50]MH_SAM_APDU [08:08:50]CAPDU: 80 13 01 00 [08:08:50]Write to MH i2c: E2 08 00 AF B1 80 13 01 00 00 00 00 00 DD [08:08:50]Write i2c OK [08:08:50]MH_I2C_Read... [08:08:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:51]Read from MH i2c: E2 [08:08:51]MH_I2C_Read... [08:08:51]Read from MH i2c: E2 0E 00 [08:08:51]MH_I2C_Read... [08:08:51]Read from MH i2c: E2 0E 00 AF B1 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 E3 [08:08:51]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [08:08:51]wFMCommunicate OK [08:08:51]SAM_PROTO_GetShiftState done [08:08:51]FM_GetShiftState done [08:08:51]opened in 1729383220 [08:08:51]opened+sec_in_day 1729469620 [08:08:51]quantity*price = 70044 [08:08:51]sum+1 = 70046 [08:08:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 44 20.10.2024 08:09 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69199 ФПД: 35976714969215 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T080900&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69199&fm=35976714969215&tin=02508201610067®Number=0000000000156251&sum=70000 [08:08:52]StoreToDocumentArchive [08:08:52]shift 193 fd 69199 [08:08:52]save to /storage/0193/doc_00069199 [08:08:52]save last doc name /storage/0193/doc_00069199 to /storage/kkm_last_doc_name [08:08:52]save OK [08:08:52]Clear old archive folders... [08:08:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:08:52]tlvbuf is 006B3FD0 [08:08:52]SAM_PROTO_ClearQueue [08:08:52]wFMCommunicate request_size=4 [08:08:52]MH_SAM_APDU [08:08:52]CAPDU: 80 09 00 00 [08:08:52]Write to MH i2c: E2 08 00 BC B1 80 09 00 00 00 00 00 00 DF [08:08:52]Write i2c OK [08:08:52]MH_I2C_Read... [08:08:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:08:52]Read from MH i2c: E2 [08:08:52]MH_I2C_Read... [08:08:52]Read from MH i2c: E2 03 00 [08:08:52]MH_I2C_Read... [08:08:52]Read from MH i2c: E2 03 00 BC B1 00 90 00 E1 [08:08:52]RAPDU: 90 00 [08:08:52]wFMCommunicate OK [08:08:52]SAM_PROTO_ClearQueue done [08:08:52]KKMCreateOFDPacket [08:08:52]OFDProtocolAddRootSTLVToBuf [08:08:52]FM_MakeSignedData [08:08:52]FM_MakeSignedData [08:08:52]SAM_PROTO_SignData [08:08:52]wFMCommunicate request_size=4 [08:08:52]MH_SAM_APDU [08:08:52]CAPDU: 80 0D 01 02 [08:08:52]Write to MH i2c: E2 08 00 BD B1 80 0D 01 02 00 00 00 00 E7 [08:08:52]Write i2c OK [08:08:52]MH_I2C_Read... [08:08:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:08:52]Read from MH i2c: E2 [08:08:52]MH_I2C_Read... [08:08:52]Read from MH i2c: E2 03 00 [08:08:52]MH_I2C_Read... [08:08:52]Read from MH i2c: E2 03 00 BD B1 00 90 00 E2 [08:08:52]RAPDU: 90 00 [08:08:52]wFMCommunicate OK [08:08:52]wFMCommunicate request_size=255 [08:08:52]MH_SAM_APDU [08:08: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 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 9C BA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4F 0E 01 00 35 04 06 00 20 [08:08:52]Write to MH i2c: E2 02 01 BE B1 80 0D 02 02 FA 00 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 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 9C BA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4F 0E 01 00 35 04 06 00 20 00 00 93 [08:08:52]Write i2c OK [08:08:52]MH_I2C_Read... [08:08:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:52]Read from MH i2c: E2 [08:08:52]MH_I2C_Read... [08:08:52]Read from MH i2c: E2 03 00 [08:08:52]MH_I2C_Read... [08:08:52]Read from MH i2c: E2 03 00 BE B1 00 90 00 E3 [08:08:52]RAPDU: 90 00 [08:08:52]wFMCommunicate OK [08:08:52]wFMCommunicate request_size=10 [08:08:52]MH_SAM_APDU [08:08:52]CAPDU: 80 0D 02 02 05 B8 7B 50 E0 7F [08:08:52]Write to MH i2c: E2 0D 00 BF B1 80 0D 02 02 05 00 B8 7B 50 E0 7F 00 00 D6 [08:08:52]Write i2c OK [08:08:52]MH_I2C_Read... [08:08:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:52]Read from MH i2c: E2 [08:08:52]MH_I2C_Read... [08:08:52]Read from MH i2c: E2 03 00 [08:08:52]MH_I2C_Read... [08:08:52]Read from MH i2c: E2 03 00 BF B1 00 90 00 E4 [08:08:52]RAPDU: 90 00 [08:08:52]wFMCommunicate OK [08:08:52]wFMCommunicate request_size=4 [08:08:52]MH_SAM_APDU [08:08:52]CAPDU: 80 0D 03 02 [08:08:52]Write to MH i2c: E2 08 00 C0 B1 80 0D 03 02 00 00 00 00 EC [08:08:52]Write i2c OK [08:08:52]MH_I2C_Read... [08:08:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:08:52]Read from MH i2c: E2 [08:08:52]MH_I2C_Read... [08:08:52]Read from MH i2c: E2 0B 00 [08:08:52]MH_I2C_Read... [08:08:52]Read from MH i2c: E2 0B 00 C0 B1 00 AB F3 C2 B9 7C D8 00 3D 90 00 97 [08:08:52]RAPDU: AB F3 C2 B9 7C D8 00 3D 90 00 [08:08:52]wFMCommunicate OK [08:08:52]SAM_PROTO_SignData done [08:08:52]FM_MakeSignedData done [08:08:52]CreateOFDProtocolMessage [08:08:52]wFMCommunicate request_size=4 [08:08:52]MH_SAM_APDU [08:08:52]CAPDU: 80 11 00 00 [08:08:52]Write to MH i2c: E2 08 00 C1 B1 80 11 00 00 00 00 00 00 EC [08:08:52]Write i2c OK [08:08:52]MH_I2C_Read... [08:08:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:52]Read from MH i2c: E2 [08:08:52]MH_I2C_Read... [08:08:52]Read from MH i2c: E2 17 00 [08:08:52]MH_I2C_Read... [08:08:52]Read from MH i2c: E2 17 00 C1 B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3E [08:08:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:08:52]wFMCommunicate OK [08:08:52]CreateOFDProtocolMessage done [08:08:52]OFDSenderStorePacket 69199 [08:08:52]StoreOFDPacket docnum=69199 [08:08:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 10 A5 07 01 26 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 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 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 9C BA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4F 0E 01 00 35 04 06 00 20 B8 7B 50 E0 7F AB F3 C2 B9 7C D8 00 3D [08:08:52]CheckFolder [08:08:52]dirname=/storage/ofd_packets [08:08:52]CheckFolder done [08:08:52]ProducePacketName [08:08:52]name=ofd_packets/00069199 [08:08:52]NVStorageSaveData ofd_packets/00069199 [08:08:52]File name is /storage/ofd_packets/00069199 [08:08:52]Write 301 bytes [08:08:52]NVStorageSaveData done [08:08:52]OFDSenderStorePacket done [08:08:52]KKMCreateOFDPacket done [08:08:52]NVStorageSaveData kkm_last_timestamp [08:08:52]File name is /storage/kkm_last_timestamp [08:08:52]Write 4 bytes [08:08:52]NVStorageSaveData done [08:08:52]ExternCall_PrintAddStr [08:08:52]wPrintStart [08:08:52]Write to MH i2c: 01 00 00 C2 B1 73 [08:08:52]Write i2c OK [08:08:52]MH_I2C_Read... [08:08:52]Read from MH i2c: 01 [08:08:52]MH_I2C_Read... [08:08:52]Read from MH i2c: 01 07 00 [08:08:52]MH_I2C_Read... [08:08:52]Read from MH i2c: 01 07 00 C2 B1 00 00 00 00 00 FF 0F 88 [08:08:52]RasterBufferAndPrint [08:08:52]line Счет N : (1)2884912 [08:08:52]line ИНН: 02508201610067 [08:08:52]line Контрольно-Кассовый Чек [08:08:52]line ПРОДАЖА [08:08:52]line ТРК (МРК, ГНК) : 13 [08:08:52]line Товар: 2710124500 [08:08:52]line Аи-95-К-5 [08:08:52]line 9.440 * 74.20 [08:08:52]line = 700.45 [08:08:52]line НДС 12% НСП 1% [08:08:52]line > о реализуемом товаре [08:08:52]line ОКРУГЛЕНИЕ: -0.45 [08:08:52]line ИТОГО: 700.00 [08:08:52]line Внесено: 700.00 [08:08:52]line СДАЧА: 0.00 [08:08:52]line НСП 1% : 6.20 [08:08:52]line НДС 12% : 74.38 [08:08:52]line Наличными: 700.00 [08:08:52]line Безнал.: 0.00 [08:08:52]line Место: АЗС № 85 "Партнер Нефть" [08:08:52]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:08:52]line СНО: Общий режим [08:08:52]line Чек 44 20.10.2024 08:09 [08:08:52]line Смена: 193 ФФД: 1.0 [08:08:52]line ЗНМ: 0300000167 [08:08:52]line РНМ: 0000000000156251 [08:08:52]line Версия ККМ: v1.0 [08:08:52]line ФМ: 0000000000963346 [08:08:52]line ФД: 69199 [08:08:52]line ФПД: 35976714969215 [08:08:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T080900&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69199&fm=35976714969215&tin=02508201610067®Number=0000000000156251&sum=70000 [08:08:52]OFD Sender: Processing packet 69199 [packets to send 18, broken 17] [08:08:52]ProducePacketName [08:08:52]name=ofd_packets/00069199 [08:08:52]OFD Sender: To server: pG, [08:08:52]CommunicateWithHost lk.salyk.kg:30040 [08:08:52]ConnectInit lk.salyk.kg [08:08:52]written 0, free lines is 4095 [08:08:53]Connected sock=10 [08:08:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 10 A5 07 01 26 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 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 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 9C BA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4F 0E 01 00 35 04 06 00 20 B8 7B 50 E0 7F AB F3 C2 B9 7C D8 00 3D [08:08:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 C8 50 47 00 D4 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4F 0E 01 00 F4 03 04 00 43 64 14 67 B6 04 01 00 00 AA 9F AB 19 C2 E3 50 E5 [08:08:53]CommunicateWithHost err = 0 [08:08:53]CheckOFDResponse [08:08:53]1017 (14) - 77093643461234 [08:08:53]1041 (16) - 0000000000963346 [08:08:53]1040 (4) - 69199 [08:08:53]1012 (4) - 20.10.2024 02:00 [08:08:53]1206 (1) - 0 [08:08:53]OFD Sender: Remove packet 69199 [08:08:53]ProducePacketName [08:08:53]name=ofd_packets/00069199 [08:08:53]NVStorageDeleteData [08:08:53]Write to MH i2c: 01 00 00 ED B1 9E [08:08:53]Write i2c OK [08:08:53]MH_I2C_Read... [08:08:53]Read from MH i2c: 01 [08:08:53]MH_I2C_Read... [08:08:53]Read from MH i2c: 01 07 00 [08:08:53]MH_I2C_Read... [08:08:53]Read from MH i2c: 01 07 00 ED B1 00 00 00 00 00 D9 0C 8A [08:08:53]RasterBufferAndPrint [08:08:53]line [08:08:53]line [08:08:53]line [08:08:53]line [08:08:53]line [08:08:53]written 0, free lines is 3296 [08:08:53]MH_Cut [08:08:53]Write to MH i2c: D1 01 00 F4 B1 01 77 [08:08:53]Write i2c OK [08:08:53]MH_I2C_Read... [08:08:53]Read from MH i2c: D1 [08:08:53]MH_I2C_Read... [08:08:53]Read from MH i2c: D1 01 00 [08:08:53]MH_I2C_Read... [08:08:53]Read from MH i2c: D1 01 00 F4 B1 00 76 [08:08:53]Write to MH i2c: 01 00 00 F5 B1 A6 [08:08:53]Write i2c OK [08:08:53]MH_I2C_Read... [08:08:53]OFD Sender: No OFD packet to send [08:08:54]*** Cut start [08:08:54]*** Partial cut [08:08:54]*** CUTSNS_PIN = 1 [08:08:54]*** CUTSNS_PIN = 0 [08:08:54]*** Brake cut motor [08:08:54]Read from MH i2c: 01 [08:08:54]MH_I2C_Read... [08:08:54]*** Stop cut motor [08:08:54]*** Cut end [08:08:54]Read from MH i2c: 01 07 00 [08:08:54]MH_I2C_Read... [08:08:54]Read from MH i2c: 01 07 00 F5 B1 00 00 00 00 00 FF 0F BB [08:08:54]process_action close_receipt done [08:08:54]requested_data is exist [08:08:54]produce_requested_data [08:08:54]requested_item fm.sn is exist - process it [08:08:54]wFMCommunicate request_size=4 [08:08:54]MH_SAM_APDU [08:08:54]CAPDU: 80 11 00 00 [08:08:54]Write to MH i2c: E2 08 00 F6 B1 80 11 00 00 00 00 00 00 21 [08:08:54]Write i2c OK [08:08:54]MH_I2C_Read... [08:08:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:54]Read from MH i2c: E2 [08:08:54]MH_I2C_Read... [08:08:54]Read from MH i2c: E2 17 00 [08:08:54]MH_I2C_Read... [08:08:54]Read from MH i2c: E2 17 00 F6 B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 73 [08:08:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:08:54]wFMCommunicate OK [08:08:54]requested_item fd.num is exist - process it [08:08:54]SAM_PROTO_GetFieldsCounters [08:08:54]wFMCommunicate request_size=4 [08:08:54]MH_SAM_APDU [08:08:54]CAPDU: 80 13 00 00 [08:08:54]Write to MH i2c: E2 08 00 F7 B1 80 13 00 00 00 00 00 00 24 [08:08:54]Write i2c OK [08:08:54]MH_I2C_Read... [08:08:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:08:54]Read from MH i2c: E2 [08:08:54]MH_I2C_Read... [08:08:54]Read from MH i2c: E2 62 00 [08:08:54]MH_I2C_Read... [08:08:54]Read from MH i2c: E2 62 00 F7 B1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4F 0E 01 00 0E 04 04 00 C1 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 E2 [08:08:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4F 0E 01 00 0E 04 04 00 C1 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 [08:08:54]wFMCommunicate OK [08:08:54]SAM_PROTO_GetFieldsCounters done [08:08:54]requested_item shift.num is exist - process it [08:08:54]requested_item shift.opened is exist - process it [08:08:54]req_shift_opened [08:08:54]FM_GetShiftState [08:08:54]SAM_PROTO_GetShiftState [08:08:54]wFMCommunicate request_size=4 [08:08:54]MH_SAM_APDU [08:08:54]CAPDU: 80 13 01 00 [08:08:54]Write to MH i2c: E2 08 00 F8 B1 80 13 01 00 00 00 00 00 26 [08:08:54]Write i2c OK [08:08:54]MH_I2C_Read... [08:08:55]Read from MH i2c: E2 [08:08:55]MH_I2C_Read... [08:08:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:55]Read from MH i2c: E2 0E 00 [08:08:55]MH_I2C_Read... [08:08:55]Read from MH i2c: E2 0E 00 F8 B1 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 2C [08:08:55]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [08:08:55]wFMCommunicate OK [08:08:55]SAM_PROTO_GetShiftState done [08:08:55]FM_GetShiftState done [08:08:55]req_shift_opened done [08:08:55]requested_item shift.open_date is exist - process it [08:08:55]req_shift_open_date [08:08:55]req_shift_open_date done [08:08:55]produce_requested_data done [08:08:55]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69199,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [08:08:55]process_action_free close_receipt [08:08:55]json_value_free [08:08:55]json_value_free done [08:08:55]process_json_proto returns [08:08:55]Send response to host [08:08:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69199,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [08:08:55]free response buf [08:08:55]execute_script done [08:08:55]execute_script returns [08:08:55]free content buf [08:08:55]Sock 9.Close socket [08:08:55]Sock 9.Thread stoped [08:08:58]OFD Sender: No OFD packet to send [08:09:03]OFD Sender: No OFD packet to send [08:09:08]OFD Sender: No OFD packet to send [08:09:13]OFD Sender: No OFD packet to send [08:09:18]OFD Sender: No OFD packet to send [08:09:23]OFD Sender: No OFD packet to send [08:09:28]OFD Sender: No OFD packet to send [08:09:33]OFD Sender: No OFD packet to send [08:09:38]OFD Sender: No OFD packet to send [08:09:43]OFD Sender: No OFD packet to send [08:09:48]OFD Sender: No OFD packet to send [08:09:53]OFD Sender: No OFD packet to send [08:09:58]OFD Sender: No OFD packet to send [08:10:03]OFD Sender: No OFD packet to send [08:10:08]OFD Sender: No OFD packet to send [08:10:13]OFD Sender: No OFD packet to send [08:10:18]OFD Sender: No OFD packet to send [08:10:23]OFD Sender: No OFD packet to send [08:10:28]OFD Sender: No OFD packet to send [08:10:33]OFD Sender: No OFD packet to send [08:10:38]OFD Sender: No OFD packet to send [08:10:43]OFD Sender: No OFD packet to send [08:10:48]OFD Sender: No OFD packet to send [08:10:53]OFD Sender: No OFD packet to send [08:10:58]OFD Sender: No OFD packet to send [08:11:03]OFD Sender: No OFD packet to send [08:11:08]OFD Sender: No OFD packet to send [08:11:13]OFD Sender: No OFD packet to send [08:11:18]OFD Sender: No OFD packet to send [08:11:23]OFD Sender: No OFD packet to send [08:11:28]OFD Sender: No OFD packet to send [08:11:33]OFD Sender: No OFD packet to send [08:11:38]OFD Sender: No OFD packet to send [08:11:43]OFD Sender: No OFD packet to send [08:11:48]OFD Sender: No OFD packet to send [08:11:53]OFD Sender: No OFD packet to send [08:11:58]OFD Sender: No OFD packet to send [08:12:03]OFD Sender: No OFD packet to send [08:12:08]OFD Sender: No OFD packet to send [08:12:13]OFD Sender: No OFD packet to send [08:12:18]OFD Sender: No OFD packet to send [08:12:23]OFD Sender: No OFD packet to send [08:12:28]OFD Sender: No OFD packet to send [08:12:33]OFD Sender: No OFD packet to send [08:12:38]OFD Sender: No OFD packet to send [08:12:43]OFD Sender: No OFD packet to send [08:12:49]OFD Sender: No OFD packet to send [08:12:54]OFD Sender: No OFD packet to send [08:12:55]accept exits with 8 [08:12:55]New connection [08:12:55]New thread 3067116900 created [08:12:55]Thread 3067260260 joined [08:12:55]Waiting for new connection... [08:12:55] Sock 8.Parse request [08:12:55]Sock 8.Check first char [08:12:55]Sock 8.First char is OK [08:12:55]request: POST /json_proto HTTP/1.0 [08:12:55]Method: POST [08:12:55]URL: /json_proto [08:12:55]Method is POST - this is cgi request [08:12:55]url: /json_proto [08:12:55]query_string will be loaded in cgi processing [08:12:55]execute_cgi json_proto POST (null) [08:12:55]execute_cgi path=json_proto method=POST [08:12:55]POST find Content-Length [08:12:55]Host: 172.17.50.3:8080 [08:12:55]Content-Length: 689 [08:12:55]Content-Type: application/json [08:12:55] [08:12:55]POST finish read [08:12:55]Found Content-Length = 689 [08:12:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:55]execute_script... [08:12:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:55]POST & json_proto [08:12:55]process_json_proto [08:12:55]json parsed OK: [08:12:55]protocol is kg_v1.0 [08:12:55]action value=close_receipt [08:12:55]process_action close_receipt [08:12:55]cmd_close_receipt [08:12:55]MH_GetDate [08:12:55]Write to MH i2c: F0 00 00 F9 B1 99 [08:12:55]Write i2c OK [08:12:55]MH_I2C_Read... [08:12:55]Read from MH i2c: F0 [08:12:55]MH_I2C_Read... [08:12:55]Read from MH i2c: F0 09 00 [08:12:55]MH_I2C_Read... [08:12:55]Read from MH i2c: F0 09 00 F9 B1 00 90 BB 14 67 6B 98 1E 66 EF [08:12:55]GetLastDocTimeStamp 1729411740 [08:12:55]current date 1729411984 [08:12:55]FM_GetShiftState [08:12:55]SAM_PROTO_GetShiftState [08:12:55]wFMCommunicate request_size=4 [08:12:55]MH_SAM_APDU [08:12:55]CAPDU: 80 13 01 00 [08:12:55]Write to MH i2c: E2 08 00 FA B1 80 13 01 00 00 00 00 00 28 [08:12:55]Write i2c OK [08:12:55]MH_I2C_Read... [08:12:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:55]Read from MH i2c: E2 [08:12:55]MH_I2C_Read... [08:12:55]Read from MH i2c: E2 0E 00 [08:12:55]MH_I2C_Read... [08:12:55]Read from MH i2c: E2 0E 00 FA B1 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 2E [08:12:55]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [08:12:55]wFMCommunicate OK [08:12:55]SAM_PROTO_GetShiftState done [08:12:55]FM_GetShiftState done [08:12:55]opened in 1729383220 [08:12:55]opened+sec_in_day 1729469620 [08:12:55]quantity*price = 300076 [08:12:55]sum+1 = 300077 [08:12:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 45 20.10.2024 08:13 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69200 ФПД: 18678880239702 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T081304&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69200&fm=18678880239702&tin=02508201610067®Number=0000000000156251&sum=300000 [08:12:56]StoreToDocumentArchive [08:12:56]shift 193 fd 69200 [08:12:56]save to /storage/0193/doc_00069200 [08:12:56]save last doc name /storage/0193/doc_00069200 to /storage/kkm_last_doc_name [08:12:56]save OK [08:12:56]Clear old archive folders... [08:12:56]ProcessDocumentItem done err = 0, tmpTLVsize=257 [08:12:56]tlvbuf is 004EACF0 [08:12:56]SAM_PROTO_ClearQueue [08:12:56]wFMCommunicate request_size=4 [08:12:56]MH_SAM_APDU [08:12:56]CAPDU: 80 09 00 00 [08:12:56]Write to MH i2c: E2 08 00 07 B2 80 09 00 00 00 00 00 00 2B [08:12:56]Write i2c OK [08:12:56]MH_I2C_Read... [08:12:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:12:56]Read from MH i2c: E2 [08:12:56]MH_I2C_Read... [08:12:56]Read from MH i2c: E2 03 00 [08:12:56]MH_I2C_Read... [08:12:56]Read from MH i2c: E2 03 00 07 B2 00 90 00 2D [08:12:56]RAPDU: 90 00 [08:12:56]wFMCommunicate OK [08:12:56]SAM_PROTO_ClearQueue done [08:12:56]KKMCreateOFDPacket [08:12:56]OFDProtocolAddRootSTLVToBuf [08:12:56]FM_MakeSignedData [08:12:56]FM_MakeSignedData [08:12:56]SAM_PROTO_SignData [08:12:56]wFMCommunicate request_size=4 [08:12:56]MH_SAM_APDU [08:12:56]CAPDU: 80 0D 01 02 [08:12:56]Write to MH i2c: E2 08 00 08 B2 80 0D 01 02 00 00 00 00 33 [08:12:56]Write i2c OK [08:12:56]MH_I2C_Read... [08:12:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:12:56]Read from MH i2c: E2 [08:12:56]MH_I2C_Read... [08:12:56]Read from MH i2c: E2 03 00 [08:12:56]MH_I2C_Read... [08:12:56]Read from MH i2c: E2 03 00 08 B2 00 90 00 2E [08:12:56]RAPDU: 90 00 [08:12:56]wFMCommunicate OK [08:12:56]wFMCommunicate request_size=255 [08:12:56]MH_SAM_APDU [08:12:56]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 90 BB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 50 0E 01 [08:12:56]Write to MH i2c: E2 02 01 09 B2 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 90 BB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 50 0E 01 00 00 7A [08:12:56]Write i2c OK [08:12:56]MH_I2C_Read... [08:12:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:56]Read from MH i2c: E2 [08:12:56]MH_I2C_Read... [08:12:56]Read from MH i2c: E2 03 00 [08:12:56]MH_I2C_Read... [08:12:56]Read from MH i2c: E2 03 00 09 B2 00 90 00 2F [08:12:56]RAPDU: 90 00 [08:12:56]wFMCommunicate OK [08:12:56]wFMCommunicate request_size=16 [08:12:56]MH_SAM_APDU [08:12:56]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 10 FD 04 05 80 56 [08:12:56]Write to MH i2c: E2 13 00 0A B2 80 0D 02 02 0B 00 00 35 04 06 00 10 FD 04 05 80 56 00 00 77 [08:12:56]Write i2c OK [08:12:56]MH_I2C_Read... [08:12:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:56]Read from MH i2c: E2 [08:12:56]MH_I2C_Read... [08:12:56]Read from MH i2c: E2 03 00 [08:12:56]MH_I2C_Read... [08:12:56]Read from MH i2c: E2 03 00 0A B2 00 90 00 30 [08:12:56]RAPDU: 90 00 [08:12:56]wFMCommunicate OK [08:12:56]wFMCommunicate request_size=4 [08:12:56]MH_SAM_APDU [08:12:56]CAPDU: 80 0D 03 02 [08:12:56]Write to MH i2c: E2 08 00 0B B2 80 0D 03 02 00 00 00 00 38 [08:12:56]Write i2c OK [08:12:56]MH_I2C_Read... [08:12:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:12:56]Read from MH i2c: E2 [08:12:56]MH_I2C_Read... [08:12:56]Read from MH i2c: E2 0B 00 [08:12:56]MH_I2C_Read... [08:12:56]Read from MH i2c: E2 0B 00 0B B2 00 68 01 4B 93 AD 4B 61 42 90 00 1B [08:12:56]RAPDU: 68 01 4B 93 AD 4B 61 42 90 00 [08:12:56]wFMCommunicate OK [08:12:56]SAM_PROTO_SignData done [08:12:56]FM_MakeSignedData done [08:12:56]CreateOFDProtocolMessage [08:12:56]wFMCommunicate request_size=4 [08:12:56]MH_SAM_APDU [08:12:56]CAPDU: 80 11 00 00 [08:12:56]Write to MH i2c: E2 08 00 0C B2 80 11 00 00 00 00 00 00 38 [08:12:56]Write i2c OK [08:12:56]MH_I2C_Read... [08:12:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:56]Read from MH i2c: E2 [08:12:56]MH_I2C_Read... [08:12:56]Read from MH i2c: E2 17 00 [08:12:56]MH_I2C_Read... [08:12:56]Read from MH i2c: E2 17 00 0C B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8A [08:12:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:12:56]wFMCommunicate OK [08:12:56]CreateOFDProtocolMessage done [08:12:56]OFDSenderStorePacket 69200 [08:12:56]StoreOFDPacket docnum=69200 [08:12:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 C5 FC 0D 01 8A 67 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 90 BB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 50 0E 01 00 35 04 06 00 10 FD 04 05 80 56 68 01 4B 93 AD 4B 61 42 [08:12:56]CheckFolder [08:12:56]dirname=/storage/ofd_packets [08:12:56]CheckFolder done [08:12:56]ProducePacketName [08:12:56]name=ofd_packets/00069200 [08:12:56]NVStorageSaveData ofd_packets/00069200 [08:12:56]File name is /storage/ofd_packets/00069200 [08:12:56]Write 307 bytes [08:12:56]NVStorageSaveData done [08:12:56]OFDSenderStorePacket done [08:12:56]KKMCreateOFDPacket done [08:12:56]NVStorageSaveData kkm_last_timestamp [08:12:56]File name is /storage/kkm_last_timestamp [08:12:56]Write 4 bytes [08:12:56]NVStorageSaveData done [08:12:56]ExternCall_PrintAddStr [08:12:56]wPrintStart [08:12:56]Write to MH i2c: 01 00 00 0D B2 BF [08:12:56]Write i2c OK [08:12:56]MH_I2C_Read... [08:12:56]Read from MH i2c: 01 [08:12:56]MH_I2C_Read... [08:12:56]Read from MH i2c: 01 07 00 [08:12:56]MH_I2C_Read... [08:12:56]Read from MH i2c: 01 07 00 0D B2 00 00 00 00 00 FF 0F D4 [08:12:56]RasterBufferAndPrint [08:12:56]line Счет N : (1)2884913 [08:12:56]line ИНН: 02508201610067 [08:12:56]line Контрольно-Кассовый Чек [08:12:56]line ПРОДАЖА [08:12:56]line ТРК (МРК, ГНК) : 41 [08:12:56]line Товар: 2710194240 [08:12:56]line D-ENERGY Дт-К-2 [08:12:56]line 38.870 * 77.20 [08:12:56]line = 3000.76 [08:12:56]line НДС 12% НСП 1% [08:12:56]line > о реализуемом товаре [08:12:56]line ОКРУГЛЕНИЕ: -0.76 [08:12:56]line ИТОГО: 3000.00 [08:12:56]line Внесено: 3000.00 [08:12:56]line СДАЧА: 0.00 [08:12:56]line НСП 1% : 26.55 [08:12:56]line НДС 12% : 318.66 [08:12:56]line Наличными: 3000.00 [08:12:56]line Безнал.: 0.00 [08:12:56]line Место: АЗС № 85 "Партнер Нефть" [08:12:56]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:12:56]line СНО: Общий режим [08:12:56]line Чек 45 20.10.2024 08:13 [08:12:56]line Смена: 193 ФФД: 1.0 [08:12:56]line ЗНМ: 0300000167 [08:12:56]line РНМ: 0000000000156251 [08:12:56]line Версия ККМ: v1.0 [08:12:56]line ФМ: 0000000000963346 [08:12:56]line ФД: 69200 [08:12:56]line ФПД: 18678880239702 [08:12:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T081304&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69200&fm=18678880239702&tin=02508201610067®Number=0000000000156251&sum=300000 [08:12:57]OFD Sender: Processing packet 69200 [packets to send 18, broken 17] [08:12:57]ProducePacketName [08:12:57]name=ofd_packets/00069200 [08:12:57]OFD Sender: To server: pG, [08:12:57]CommunicateWithHost lk.salyk.kg:30040 [08:12:57]ConnectInit lk.salyk.kg [08:12:57]written 0, free lines is 4095 [08:12:57]Connected sock=10 [08:12:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 C5 FC 0D 01 8A 67 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 90 BB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 50 0E 01 00 35 04 06 00 10 FD 04 05 80 56 68 01 4B 93 AD 4B 61 42 [08:12:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 13 E1 47 00 BB 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 30 39 36 33 33 34 36 10 04 04 00 50 0E 01 00 F4 03 04 00 37 65 14 67 B6 04 01 00 00 A6 19 22 E6 64 3C EC 6E [08:12:57]CommunicateWithHost err = 0 [08:12:57]CheckOFDResponse [08:12:57]1017 (14) - 77093643461234 [08:12:57]1041 (16) - 0000000000963346 [08:12:57]1040 (4) - 69200 [08:12:57]1012 (4) - 20.10.2024 02:04 [08:12:57]1206 (1) - 0 [08:12:57]OFD Sender: Remove packet 69200 [08:12:57]ProducePacketName [08:12:57]name=ofd_packets/00069200 [08:12:57]NVStorageDeleteData [08:12:57]Write to MH i2c: 01 00 00 38 B2 EA [08:12:57]Write i2c OK [08:12:57]MH_I2C_Read... [08:12:57]Read from MH i2c: 01 [08:12:57]MH_I2C_Read... [08:12:57]Read from MH i2c: 01 07 00 [08:12:57]MH_I2C_Read... [08:12:57]Read from MH i2c: 01 07 00 38 B2 00 00 00 00 00 ED 0C EA [08:12:57]RasterBufferAndPrint [08:12:57]line [08:12:57]line [08:12:57]line [08:12:57]line [08:12:57]line [08:12:57]written 0, free lines is 3318 [08:12:57]MH_Cut [08:12:57]Write to MH i2c: D1 01 00 3F B2 01 C3 [08:12:57]Write i2c OK [08:12:57]MH_I2C_Read... [08:12:57]Read from MH i2c: D1 [08:12:57]MH_I2C_Read... [08:12:57]Read from MH i2c: D1 01 00 [08:12:57]MH_I2C_Read... [08:12:57]Read from MH i2c: D1 01 00 3F B2 00 C2 [08:12:57]Write to MH i2c: 01 00 00 40 B2 F2 [08:12:57]Write i2c OK [08:12:57]MH_I2C_Read... [08:12:58]OFD Sender: No OFD packet to send [08:12:58]*** Cut start [08:12:58]*** Partial cut [08:12:58]*** CUTSNS_PIN = 1 [08:12:58]*** CUTSNS_PIN = 0 [08:12:58]*** Brake cut motor [08:12:59]Read from MH i2c: 01 [08:12:59]MH_I2C_Read... [08:12:59]*** Stop cut motor [08:12:59]*** Cut end [08:12:59]Read from MH i2c: 01 07 00 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: 01 07 00 40 B2 00 00 00 00 00 FF 0F 07 [08:12:59]process_action close_receipt done [08:12:59]requested_data is exist [08:12:59]produce_requested_data [08:12:59]requested_item fm.sn is exist - process it [08:12:59]wFMCommunicate request_size=4 [08:12:59]MH_SAM_APDU [08:12:59]CAPDU: 80 11 00 00 [08:12:59]Write to MH i2c: E2 08 00 41 B2 80 11 00 00 00 00 00 00 6D [08:12:59]Write i2c OK [08:12:59]MH_I2C_Read... [08:12:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:59]Read from MH i2c: E2 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 17 00 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 17 00 41 B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BF [08:12:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:12:59]wFMCommunicate OK [08:12:59]requested_item fd.num is exist - process it [08:12:59]SAM_PROTO_GetFieldsCounters [08:12:59]wFMCommunicate request_size=4 [08:12:59]MH_SAM_APDU [08:12:59]CAPDU: 80 13 00 00 [08:12:59]Write to MH i2c: E2 08 00 42 B2 80 13 00 00 00 00 00 00 70 [08:12:59]Write i2c OK [08:12:59]MH_I2C_Read... [08:12:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:12:59]Read from MH i2c: E2 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 62 00 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 62 00 42 B2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 50 0E 01 00 0E 04 04 00 C1 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 32 [08:12:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 50 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:12:59]wFMCommunicate OK [08:12:59]SAM_PROTO_GetFieldsCounters done [08:12:59]requested_item shift.num is exist - process it [08:12:59]requested_item shift.opened is exist - process it [08:12:59]req_shift_opened [08:12:59]FM_GetShiftState [08:12:59]SAM_PROTO_GetShiftState [08:12:59]wFMCommunicate request_size=4 [08:12:59]MH_SAM_APDU [08:12:59]CAPDU: 80 13 01 00 [08:12:59]Write to MH i2c: E2 08 00 43 B2 80 13 01 00 00 00 00 00 72 [08:12:59]Write i2c OK [08:12:59]MH_I2C_Read... [08:12:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:59]Read from MH i2c: E2 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 0E 00 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 0E 00 43 B2 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 78 [08:12:59]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [08:12:59]wFMCommunicate OK [08:12:59]SAM_PROTO_GetShiftState done [08:12:59]FM_GetShiftState done [08:12:59]req_shift_opened done [08:12:59]requested_item shift.open_date is exist - process it [08:12:59]req_shift_open_date [08:12:59]req_shift_open_date done [08:12:59]produce_requested_data done [08:12:59]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69200,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [08:12:59]process_action_free close_receipt [08:12:59]json_value_free [08:12:59]json_value_free done [08:12:59]process_json_proto returns [08:12:59]Send response to host [08:12:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69200,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [08:12:59]free response buf [08:12:59]execute_script done [08:12:59]execute_script returns [08:12:59]free content buf [08:12:59]Sock 8.Close socket [08:12:59]Sock 8.Thread stoped [08:13:03]OFD Sender: No OFD packet to send [08:13:08]OFD Sender: No OFD packet to send [08:13:13]OFD Sender: No OFD packet to send [08:13:18]OFD Sender: No OFD packet to send [08:13:23]OFD Sender: No OFD packet to send [08:13:28]OFD Sender: No OFD packet to send [08:13:33]OFD Sender: No OFD packet to send [08:13:38]OFD Sender: No OFD packet to send [08:13:43]OFD Sender: No OFD packet to send [08:13:48]OFD Sender: No OFD packet to send [08:13:53]OFD Sender: No OFD packet to send [08:13:58]OFD Sender: No OFD packet to send [08:14:03]OFD Sender: No OFD packet to send [08:14:08]OFD Sender: No OFD packet to send [08:14:13]OFD Sender: No OFD packet to send [08:14:18]OFD Sender: No OFD packet to send [08:14:23]OFD Sender: No OFD packet to send [08:14:28]OFD Sender: No OFD packet to send [08:14:33]OFD Sender: No OFD packet to send [08:14:38]OFD Sender: No OFD packet to send [08:14:43]OFD Sender: No OFD packet to send [08:14:48]OFD Sender: No OFD packet to send [08:14:53]OFD Sender: No OFD packet to send [08:14:58]OFD Sender: No OFD packet to send [08:15:03]OFD Sender: No OFD packet to send [08:15:08]OFD Sender: No OFD packet to send [08:15:13]OFD Sender: No OFD packet to send [08:15:18]OFD Sender: No OFD packet to send [08:15:23]OFD Sender: No OFD packet to send [08:15:28]OFD Sender: No OFD packet to send [08:15:33]OFD Sender: No OFD packet to send [08:15:38]OFD Sender: No OFD packet to send [08:15:43]OFD Sender: No OFD packet to send [08:15:48]OFD Sender: No OFD packet to send [08:15:53]OFD Sender: No OFD packet to send [08:15:58]OFD Sender: No OFD packet to send [08:16:03]OFD Sender: No OFD packet to send [08:16:08]OFD Sender: No OFD packet to send [08:16:13]OFD Sender: No OFD packet to send [08:16:18]OFD Sender: No OFD packet to send [08:16:23]OFD Sender: No OFD packet to send [08:16:28]OFD Sender: No OFD packet to send [08:16:33]OFD Sender: No OFD packet to send [08:16:38]OFD Sender: No OFD packet to send [08:16:43]OFD Sender: No OFD packet to send [08:16:48]OFD Sender: No OFD packet to send [08:16:53]OFD Sender: No OFD packet to send [08:16:58]OFD Sender: No OFD packet to send [08:17:03]OFD Sender: No OFD packet to send [08:17:08]OFD Sender: No OFD packet to send [08:17:13]OFD Sender: No OFD packet to send [08:17:18]OFD Sender: No OFD packet to send [08:17:23]OFD Sender: No OFD packet to send [08:17:28]OFD Sender: No OFD packet to send [08:17:33]OFD Sender: No OFD packet to send [08:17:38]OFD Sender: No OFD packet to send [08:17:43]OFD Sender: No OFD packet to send [08:17:48]OFD Sender: No OFD packet to send [08:17:53]OFD Sender: No OFD packet to send [08:17:58]OFD Sender: No OFD packet to send [08:17:59]accept exits with 9 [08:17:59]New connection [08:17:59]New thread 3067260260 created [08:17:59]Thread 3067116900 joined [08:17:59]Waiting for new connection... [08:17:59] Sock 9.Parse request [08:17:59]Sock 9.Check first char [08:17:59]Sock 9.First char is OK [08:17:59]request: POST /json_proto HTTP/1.0 [08:17:59]Method: POST [08:17:59]URL: /json_proto [08:17:59]Method is POST - this is cgi request [08:17:59]url: /json_proto [08:17:59]query_string will be loaded in cgi processing [08:17:59]execute_cgi json_proto POST (null) [08:17:59]execute_cgi path=json_proto method=POST [08:17:59]POST find Content-Length [08:17:59]Host: 172.17.50.3:8080 [08:17:59]Content-Length: 755 [08:17:59]Content-Type: application/json [08:17:59] [08:17:59]POST finish read [08:17:59]Found Content-Length = 755 [08:17:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30116968", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:17:59]execute_script... [08:17: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)2884914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30116968", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:17:59]POST & json_proto [08:17:59]process_json_proto [08:17:59]json parsed OK: [08:17:59]protocol is kg_v1.0 [08:17:59]action value=close_receipt [08:17:59]process_action close_receipt [08:17:59]cmd_close_receipt [08:17:59]MH_GetDate [08:17:59]Write to MH i2c: F0 00 00 44 B2 E5 [08:17:59]Write i2c OK [08:17:59]MH_I2C_Read... [08:17:59]Read from MH i2c: F0 [08:17:59]MH_I2C_Read... [08:17:59]Read from MH i2c: F0 09 00 [08:17:59]MH_I2C_Read... [08:17:59]Read from MH i2c: F0 09 00 44 B2 00 C0 BC 14 67 6B 98 1E 66 6C [08:17:59]GetLastDocTimeStamp 1729411984 [08:17:59]current date 1729412288 [08:17:59]FM_GetShiftState [08:17:59]SAM_PROTO_GetShiftState [08:17:59]wFMCommunicate request_size=4 [08:17:59]MH_SAM_APDU [08:17:59]CAPDU: 80 13 01 00 [08:17:59]Write to MH i2c: E2 08 00 45 B2 80 13 01 00 00 00 00 00 74 [08:17:59]Write i2c OK [08:17:59]MH_I2C_Read... [08:17:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:59]Read from MH i2c: E2 [08:17:59]MH_I2C_Read... [08:17:59]Read from MH i2c: E2 0E 00 [08:17:59]MH_I2C_Read... [08:17:59]Read from MH i2c: E2 0E 00 45 B2 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 7A [08:17:59]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [08:17:59]wFMCommunicate OK [08:17:59]SAM_PROTO_GetShiftState done [08:17:59]FM_GetShiftState done [08:17:59]opened in 1729383220 [08:17:59]opened+sec_in_day 1729469620 [08:17:59]quantity*price = 0 [08:17:59]sum+1 = 1 [08:17:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 46 20.10.2024 08:18 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30116968 ФМ: 0000000000963346 ФД: 69201 ФПД: 34495414720605 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T081808&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69201&fm=34495414720605&tin=02508201610067®Number=0000000000156251&sum=0 [08:18:00]StoreToDocumentArchive [08:18:00]shift 193 fd 69201 [08:18:00]save to /storage/0193/doc_00069201 [08:18:00]save last doc name /storage/0193/doc_00069201 to /storage/kkm_last_doc_name [08:18:00]save OK [08:18:00]Clear old archive folders... [08:18:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:18:00]tlvbuf is 007E1050 [08:18:00]SAM_PROTO_ClearQueue [08:18:00]wFMCommunicate request_size=4 [08:18:00]MH_SAM_APDU [08:18:00]CAPDU: 80 09 00 00 [08:18:00]Write to MH i2c: E2 08 00 52 B2 80 09 00 00 00 00 00 00 76 [08:18:00]Write i2c OK [08:18:00]MH_I2C_Read... [08:18:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:18:00]Read from MH i2c: E2 [08:18:00]MH_I2C_Read... [08:18:00]Read from MH i2c: E2 03 00 [08:18:00]MH_I2C_Read... [08:18:00]Read from MH i2c: E2 03 00 52 B2 00 90 00 78 [08:18:00]RAPDU: 90 00 [08:18:00]wFMCommunicate OK [08:18:00]SAM_PROTO_ClearQueue done [08:18:00]KKMCreateOFDPacket [08:18:00]OFDProtocolAddRootSTLVToBuf [08:18:00]FM_MakeSignedData [08:18:00]FM_MakeSignedData [08:18:00]SAM_PROTO_SignData [08:18:00]wFMCommunicate request_size=4 [08:18:00]MH_SAM_APDU [08:18:00]CAPDU: 80 0D 01 02 [08:18:00]Write to MH i2c: E2 08 00 53 B2 80 0D 01 02 00 00 00 00 7E [08:18:00]Write i2c OK [08:18:00]MH_I2C_Read... [08:18:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:18:00]Read from MH i2c: E2 [08:18:00]MH_I2C_Read... [08:18:00]Read from MH i2c: E2 03 00 [08:18:00]MH_I2C_Read... [08:18:00]Read from MH i2c: E2 03 00 53 B2 00 90 00 79 [08:18:00]RAPDU: 90 00 [08:18:00]wFMCommunicate OK [08:18:00]wFMCommunicate request_size=255 [08:18:00]MH_SAM_APDU [08:18:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 C0 BC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 51 0E 01 00 35 04 06 00 1F [08:18:00]Write to MH i2c: E2 02 01 54 B2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 C0 BC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 51 0E 01 00 35 04 06 00 1F 00 00 8C [08:18:00]Write i2c OK [08:18:00]MH_I2C_Read... [08:18:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:01]Read from MH i2c: E2 [08:18:01]MH_I2C_Read... [08:18:01]Read from MH i2c: E2 03 00 [08:18:01]MH_I2C_Read... [08:18:01]Read from MH i2c: E2 03 00 54 B2 00 90 00 7A [08:18:01]RAPDU: 90 00 [08:18:01]wFMCommunicate OK [08:18:01]wFMCommunicate request_size=10 [08:18:01]MH_SAM_APDU [08:18:01]CAPDU: 80 0D 02 02 05 5F 96 F0 D8 5D [08:18:01]Write to MH i2c: E2 0D 00 55 B2 80 0D 02 02 05 00 5F 96 F0 D8 5D 00 00 A5 [08:18:01]Write i2c OK [08:18:01]MH_I2C_Read... [08:18:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:01]Read from MH i2c: E2 [08:18:01]MH_I2C_Read... [08:18:01]Read from MH i2c: E2 03 00 [08:18:01]MH_I2C_Read... [08:18:01]Read from MH i2c: E2 03 00 55 B2 00 90 00 7B [08:18:01]RAPDU: 90 00 [08:18:01]wFMCommunicate OK [08:18:01]wFMCommunicate request_size=4 [08:18:01]MH_SAM_APDU [08:18:01]CAPDU: 80 0D 03 02 [08:18:01]Write to MH i2c: E2 08 00 56 B2 80 0D 03 02 00 00 00 00 83 [08:18:01]Write i2c OK [08:18:01]MH_I2C_Read... [08:18:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:18:01]Read from MH i2c: E2 [08:18:01]MH_I2C_Read... [08:18:01]Read from MH i2c: E2 0B 00 [08:18:01]MH_I2C_Read... [08:18:01]Read from MH i2c: E2 0B 00 56 B2 00 AB 9C 43 10 1D 3E 64 60 90 00 3D [08:18:01]RAPDU: AB 9C 43 10 1D 3E 64 60 90 00 [08:18:01]wFMCommunicate OK [08:18:01]SAM_PROTO_SignData done [08:18:01]FM_MakeSignedData done [08:18:01]CreateOFDProtocolMessage [08:18:01]wFMCommunicate request_size=4 [08:18:01]MH_SAM_APDU [08:18:01]CAPDU: 80 11 00 00 [08:18:01]Write to MH i2c: E2 08 00 57 B2 80 11 00 00 00 00 00 00 83 [08:18:01]Write i2c OK [08:18:01]MH_I2C_Read... [08:18:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:01]Read from MH i2c: E2 [08:18:01]MH_I2C_Read... [08:18:01]Read from MH i2c: E2 17 00 [08:18:01]MH_I2C_Read... [08:18:01]Read from MH i2c: E2 17 00 57 B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D5 [08:18:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:18:01]wFMCommunicate OK [08:18:01]CreateOFDProtocolMessage done [08:18:01]OFDSenderStorePacket 69201 [08:18:01]StoreOFDPacket docnum=69201 [08:18:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 0F F7 07 01 B2 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 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 C0 BC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 51 0E 01 00 35 04 06 00 1F 5F 96 F0 D8 5D AB 9C 43 10 1D 3E 64 60 [08:18:01]CheckFolder [08:18:01]dirname=/storage/ofd_packets [08:18:01]CheckFolder done [08:18:01]ProducePacketName [08:18:01]name=ofd_packets/00069201 [08:18:01]NVStorageSaveData ofd_packets/00069201 [08:18:01]File name is /storage/ofd_packets/00069201 [08:18:01]Write 301 bytes [08:18:01]NVStorageSaveData done [08:18:01]OFDSenderStorePacket done [08:18:01]KKMCreateOFDPacket done [08:18:01]NVStorageSaveData kkm_last_timestamp [08:18:01]File name is /storage/kkm_last_timestamp [08:18:01]Write 4 bytes [08:18:01]NVStorageSaveData done [08:18:01]ExternCall_PrintAddStr [08:18:01]wPrintStart [08:18:01]Write to MH i2c: 01 00 00 58 B2 0A [08:18:01]Write i2c OK [08:18:01]MH_I2C_Read... [08:18:01]Read from MH i2c: 01 [08:18:01]MH_I2C_Read... [08:18:01]Read from MH i2c: 01 07 00 [08:18:01]MH_I2C_Read... [08:18:01]Read from MH i2c: 01 07 00 58 B2 00 00 00 00 00 FF 0F 1F [08:18:01]RasterBufferAndPrint [08:18:01]line Счет N : (1)2884914 [08:18:01]line ИНН: 02508201610067 [08:18:01]line Контрольно-Кассовый Чек [08:18:01]line ПРОДАЖА [08:18:01]line ТРК (МРК, ГНК) : 22 [08:18:01]line Товар: 2710124130 [08:18:01]line Аи-92-К-5 [08:18:01]line 30.000 * 0.00 [08:18:01]line = 0.00 [08:18:01]line НДС 12% НСП 1% [08:18:01]line > о реализуемом товаре [08:18:01]line ИТОГО: 0.00 [08:18:01]line НСП 1% : 0.00 [08:18:01]line НДС 12% : 0.00 [08:18:01]line Наличными: 0.00 [08:18:01]line Безнал.: 0.00 [08:18:01]line Место: АЗС № 85 "Партнер Нефть" [08:18:01]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:18:01]line СНО: Общий режим [08:18:01]line Чек 46 20.10.2024 08:18 [08:18:01]line Смена: 193 ФФД: 1.0 [08:18:01]line ЗНМ: 0300000167 [08:18:01]line РНМ: 0000000000156251 [08:18:01]line Версия ККМ: v1.0 [08:18:01]line Талоны: ТК ГПНА Online [08:18:01]line 30116968 [08:18:01]line ФМ: 0000000000963346 [08:18:01]line ФД: 69201 [08:18:01]line ФПД: 34495414720605 [08:18:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T081808&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69201&fm=34495414720605&tin=02508201610067®Number=0000000000156251&sum=0 [08:18:01]written 0, free lines is 4095 [08:18:01]OFD Sender: Processing packet 69201 [packets to send 18, broken 17] [08:18:01]ProducePacketName [08:18:01]name=ofd_packets/00069201 [08:18:01]OFD Sender: To server: pG, [08:18:01]CommunicateWithHost lk.salyk.kg:30040 [08:18:01]ConnectInit lk.salyk.kg [08:18:01]Connected sock=10 [08:18:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 0F F7 07 01 B2 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 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 C0 BC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 51 0E 01 00 35 04 06 00 1F 5F 96 F0 D8 5D AB 9C 43 10 1D 3E 64 60 [08:18:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 40 47 47 00 19 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 51 0E 01 00 F4 03 04 00 67 66 14 67 B6 04 01 00 00 4E C8 55 D8 B3 F1 0B 6A [08:18:01]CommunicateWithHost err = 0 [08:18:01]CheckOFDResponse [08:18:01]1017 (14) - 77093643461234 [08:18:01]1041 (16) - 0000000000963346 [08:18:01]1040 (4) - 69201 [08:18:01]1012 (4) - 20.10.2024 02:09 [08:18:01]1206 (1) - 0 [08:18:01]OFD Sender: Remove packet 69201 [08:18:01]ProducePacketName [08:18:01]name=ofd_packets/00069201 [08:18:01]NVStorageDeleteData [08:18:01]Write to MH i2c: 01 00 00 82 B2 34 [08:18:01]Write i2c OK [08:18:01]MH_I2C_Read... [08:18:01]Read from MH i2c: 01 [08:18:01]MH_I2C_Read... [08:18:01]Read from MH i2c: 01 07 00 [08:18:01]MH_I2C_Read... [08:18:01]Read from MH i2c: 01 07 00 82 B2 00 00 00 00 00 0C 0D 54 [08:18:01]RasterBufferAndPrint [08:18:01]line [08:18:01]line [08:18:01]line [08:18:01]line [08:18:01]line [08:18:01]written 0, free lines is 3363 [08:18:01]MH_Cut [08:18:01]Write to MH i2c: D1 01 00 89 B2 01 0D [08:18:01]Write i2c OK [08:18:01]MH_I2C_Read... [08:18:01]Read from MH i2c: D1 [08:18:01]MH_I2C_Read... [08:18:01]Read from MH i2c: D1 01 00 [08:18:01]MH_I2C_Read... [08:18:01]Read from MH i2c: D1 01 00 89 B2 00 0C [08:18:01]Write to MH i2c: 01 00 00 8A B2 3C [08:18:01]Write i2c OK [08:18:01]MH_I2C_Read... [08:18:02]OFD Sender: No OFD packet to send [08:18:02]*** Cut start [08:18:02]*** Partial cut [08:18:02]*** CUTSNS_PIN = 1 [08:18:02]*** CUTSNS_PIN = 0 [08:18:02]*** Brake cut motor [08:18:02]Read from MH i2c: 01 [08:18:02]MH_I2C_Read... [08:18:02]*** Stop cut motor [08:18:02]*** Cut end [08:18:02]Read from MH i2c: 01 07 00 [08:18:02]MH_I2C_Read... [08:18:02]Read from MH i2c: 01 07 00 8A B2 00 00 00 00 00 FF 0F 51 [08:18:02]process_action close_receipt done [08:18:02]requested_data is exist [08:18:02]produce_requested_data [08:18:02]requested_item fm.sn is exist - process it [08:18:02]wFMCommunicate request_size=4 [08:18:02]MH_SAM_APDU [08:18:02]CAPDU: 80 11 00 00 [08:18:02]Write to MH i2c: E2 08 00 8B B2 80 11 00 00 00 00 00 00 B7 [08:18:02]Write i2c OK [08:18:02]MH_I2C_Read... [08:18:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:03]Read from MH i2c: E2 [08:18:03]MH_I2C_Read... [08:18:03]Read from MH i2c: E2 17 00 [08:18:03]MH_I2C_Read... [08:18:03]Read from MH i2c: E2 17 00 8B B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 09 [08:18:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:18:03]wFMCommunicate OK [08:18:03]requested_item fd.num is exist - process it [08:18:03]SAM_PROTO_GetFieldsCounters [08:18:03]wFMCommunicate request_size=4 [08:18:03]MH_SAM_APDU [08:18:03]CAPDU: 80 13 00 00 [08:18:03]Write to MH i2c: E2 08 00 8C B2 80 13 00 00 00 00 00 00 BA [08:18:03]Write i2c OK [08:18:03]MH_I2C_Read... [08:18:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:18:03]Read from MH i2c: E2 [08:18:03]MH_I2C_Read... [08:18:03]Read from MH i2c: E2 62 00 [08:18:03]MH_I2C_Read... [08:18:03]Read from MH i2c: E2 62 00 8C B2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 51 0E 01 00 0E 04 04 00 C1 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 80 [08:18:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 51 0E 01 00 0E 04 04 00 C1 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 [08:18:03]wFMCommunicate OK [08:18:03]SAM_PROTO_GetFieldsCounters done [08:18:03]requested_item shift.num is exist - process it [08:18:03]requested_item shift.opened is exist - process it [08:18:03]req_shift_opened [08:18:03]FM_GetShiftState [08:18:03]SAM_PROTO_GetShiftState [08:18:03]wFMCommunicate request_size=4 [08:18:03]MH_SAM_APDU [08:18:03]CAPDU: 80 13 01 00 [08:18:03]Write to MH i2c: E2 08 00 8D B2 80 13 01 00 00 00 00 00 BC [08:18:03]Write i2c OK [08:18:03]MH_I2C_Read... [08:18:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:03]Read from MH i2c: E2 [08:18:03]MH_I2C_Read... [08:18:03]Read from MH i2c: E2 0E 00 [08:18:03]MH_I2C_Read... [08:18:03]Read from MH i2c: E2 0E 00 8D B2 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 C2 [08:18:03]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [08:18:03]wFMCommunicate OK [08:18:03]SAM_PROTO_GetShiftState done [08:18:03]FM_GetShiftState done [08:18:03]req_shift_opened done [08:18:03]requested_item shift.open_date is exist - process it [08:18:03]req_shift_open_date [08:18:03]req_shift_open_date done [08:18:03]produce_requested_data done [08:18:03]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69201,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [08:18:03]process_action_free close_receipt [08:18:03]json_value_free [08:18:03]json_value_free done [08:18:03]process_json_proto returns [08:18:03]Send response to host [08:18:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69201,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [08:18:03]free response buf [08:18:03]execute_script done [08:18:03]execute_script returns [08:18:03]free content buf [08:18:03]Sock 9.Close socket [08:18:03]Sock 9.Thread stoped [08:18:07]OFD Sender: No OFD packet to send [08:18:12]OFD Sender: No OFD packet to send [08:18:17]OFD Sender: No OFD packet to send [08:18:22]OFD Sender: No OFD packet to send [08:18:27]OFD Sender: No OFD packet to send [08:18:32]OFD Sender: No OFD packet to send [08:18:37]OFD Sender: No OFD packet to send [08:18:42]OFD Sender: No OFD packet to send [08:18:47]OFD Sender: No OFD packet to send [08:18:52]OFD Sender: No OFD packet to send [08:18:57]OFD Sender: No OFD packet to send [08:19:02]OFD Sender: No OFD packet to send [08:19:07]OFD Sender: No OFD packet to send [08:19:12]OFD Sender: No OFD packet to send [08:19:17]OFD Sender: No OFD packet to send [08:19:22]OFD Sender: No OFD packet to send [08:19:27]OFD Sender: No OFD packet to send [08:19:32]OFD Sender: No OFD packet to send [08:19:37]OFD Sender: No OFD packet to send [08:19:42]OFD Sender: No OFD packet to send [08:19:47]OFD Sender: No OFD packet to send [08:19:52]OFD Sender: No OFD packet to send [08:19:57]OFD Sender: No OFD packet to send [08:20:02]OFD Sender: No OFD packet to send [08:20:07]OFD Sender: No OFD packet to send [08:20:12]OFD Sender: No OFD packet to send [08:20:17]OFD Sender: No OFD packet to send [08:20:22]OFD Sender: No OFD packet to send [08:20:27]OFD Sender: No OFD packet to send [08:20:32]OFD Sender: No OFD packet to send [08:20:37]OFD Sender: No OFD packet to send [08:20:42]OFD Sender: No OFD packet to send [08:20:47]OFD Sender: No OFD packet to send [08:20:52]OFD Sender: No OFD packet to send [08:20:57]OFD Sender: No OFD packet to send [08:21:02]OFD Sender: No OFD packet to send [08:21:07]OFD Sender: No OFD packet to send [08:21:12]OFD Sender: No OFD packet to send [08:21:17]OFD Sender: No OFD packet to send [08:21:22]OFD Sender: No OFD packet to send [08:21:27]OFD Sender: No OFD packet to send [08:21:32]OFD Sender: No OFD packet to send [08:21:37]OFD Sender: No OFD packet to send [08:21:42]OFD Sender: No OFD packet to send [08:21:47]OFD Sender: No OFD packet to send [08:21:52]OFD Sender: No OFD packet to send [08:21:57]OFD Sender: No OFD packet to send [08:22:02]OFD Sender: No OFD packet to send [08:22:07]OFD Sender: No OFD packet to send [08:22:12]OFD Sender: No OFD packet to send [08:22:17]OFD Sender: No OFD packet to send [08:22:22]OFD Sender: No OFD packet to send [08:22:27]OFD Sender: No OFD packet to send [08:22:32]OFD Sender: No OFD packet to send [08:22:37]OFD Sender: No OFD packet to send [08:22:42]OFD Sender: No OFD packet to send [08:22:47]OFD Sender: No OFD packet to send [08:22:52]OFD Sender: No OFD packet to send [08:22:57]OFD Sender: No OFD packet to send [08:23:02]OFD Sender: No OFD packet to send [08:23:07]OFD Sender: No OFD packet to send [08:23:12]OFD Sender: No OFD packet to send [08:23:17]OFD Sender: No OFD packet to send [08:23:22]OFD Sender: No OFD packet to send [08:23:27]OFD Sender: No OFD packet to send [08:23:32]OFD Sender: No OFD packet to send [08:23:37]OFD Sender: No OFD packet to send [08:23:42]OFD Sender: No OFD packet to send [08:23:47]OFD Sender: No OFD packet to send [08:23:52]OFD Sender: No OFD packet to send [08:23:57]OFD Sender: No OFD packet to send [08:24:02]OFD Sender: No OFD packet to send [08:24:07]OFD Sender: No OFD packet to send [08:24:12]OFD Sender: No OFD packet to send [08:24:17]OFD Sender: No OFD packet to send [08:24:22]OFD Sender: No OFD packet to send [08:24:27]OFD Sender: No OFD packet to send [08:24:32]OFD Sender: No OFD packet to send [08:24:37]OFD Sender: No OFD packet to send [08:24:42]OFD Sender: No OFD packet to send [08:24:47]OFD Sender: No OFD packet to send [08:24:52]OFD Sender: No OFD packet to send [08:24:57]OFD Sender: No OFD packet to send [08:25:02]OFD Sender: No OFD packet to send [08:25:07]OFD Sender: No OFD packet to send [08:25:12]OFD Sender: No OFD packet to send [08:25:17]accept exits with 8 [08:25:17]New connection [08:25:17]New thread 3067116900 created [08:25:17]Thread 3067260260 joined [08:25:17]Waiting for new connection... [08:25:17] Sock 8.Parse request [08:25:17]Sock 8.Check first char [08:25:17]Sock 8.First char is OK [08:25:17]request: POST /json_proto HTTP/1.0 [08:25:17]Method: POST [08:25:17]URL: /json_proto [08:25:17]Method is POST - this is cgi request [08:25:17]url: /json_proto [08:25:17]query_string will be loaded in cgi processing [08:25:17]execute_cgi json_proto POST (null) [08:25:17]execute_cgi path=json_proto method=POST [08:25:17]POST find Content-Length [08:25:17]Host: 172.17.50.3:8080 [08:25:17]Content-Length: 689 [08:25:17]Content-Type: application/json [08:25:17] [08:25:17]POST finish read [08:25:17]Found Content-Length = 689 [08:25:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:17]execute_script... [08:25:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:17]POST & json_proto [08:25:17]process_json_proto [08:25:17]json parsed OK: [08:25:17]protocol is kg_v1.0 [08:25:17]action value=close_receipt [08:25:17]process_action close_receipt [08:25:17]cmd_close_receipt [08:25:17]MH_GetDate [08:25:17]Write to MH i2c: F0 00 00 8E B2 2F [08:25:17]Write i2c OK [08:25:17]MH_I2C_Read... [08:25:17]Read from MH i2c: F0 [08:25:17]MH_I2C_Read... [08:25:17]Read from MH i2c: F0 09 00 [08:25:17]MH_I2C_Read... [08:25:17]Read from MH i2c: F0 09 00 8E B2 00 76 BE 14 67 6B 98 1E 66 6E [08:25:17]GetLastDocTimeStamp 1729412288 [08:25:17]current date 1729412726 [08:25:17]FM_GetShiftState [08:25:17]SAM_PROTO_GetShiftState [08:25:17]wFMCommunicate request_size=4 [08:25:17]MH_SAM_APDU [08:25:17]CAPDU: 80 13 01 00 [08:25:17]Write to MH i2c: E2 08 00 8F B2 80 13 01 00 00 00 00 00 BE [08:25:17]Write i2c OK [08:25:17]MH_I2C_Read... [08:25:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:17]Read from MH i2c: E2 [08:25:17]MH_I2C_Read... [08:25:17]Read from MH i2c: E2 0E 00 [08:25:17]MH_I2C_Read... [08:25:17]Read from MH i2c: E2 0E 00 8F B2 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 C4 [08:25:17]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [08:25:17]wFMCommunicate OK [08:25:17]SAM_PROTO_GetShiftState done [08:25:17]FM_GetShiftState done [08:25:17]opened in 1729383220 [08:25:17]opened+sec_in_day 1729469620 [08:25:17]quantity*price = 100051 [08:25:17]sum+1 = 100052 [08:25:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 47 20.10.2024 08:25 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69202 ФПД: 47918355523651 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T082526&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69202&fm=47918355523651&tin=02508201610067®Number=0000000000156251&sum=100000 [08:25:18]StoreToDocumentArchive [08:25:18]shift 193 fd 69202 [08:25:18]save to /storage/0193/doc_00069202 [08:25:18]save last doc name /storage/0193/doc_00069202 to /storage/kkm_last_doc_name [08:25:18]save OK [08:25:18]Clear old archive folders... [08:25:18]ProcessDocumentItem done err = 0, tmpTLVsize=257 [08:25:18]tlvbuf is 0050C7C0 [08:25:18]SAM_PROTO_ClearQueue [08:25:18]wFMCommunicate request_size=4 [08:25:18]MH_SAM_APDU [08:25:18]CAPDU: 80 09 00 00 [08:25:18]Write to MH i2c: E2 08 00 9C B2 80 09 00 00 00 00 00 00 C0 [08:25:18]Write i2c OK [08:25:18]MH_I2C_Read... [08:25:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:25:18]Read from MH i2c: E2 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: E2 03 00 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: E2 03 00 9C B2 00 90 00 C2 [08:25:18]RAPDU: 90 00 [08:25:18]wFMCommunicate OK [08:25:18]SAM_PROTO_ClearQueue done [08:25:18]KKMCreateOFDPacket [08:25:18]OFDProtocolAddRootSTLVToBuf [08:25:18]FM_MakeSignedData [08:25:18]FM_MakeSignedData [08:25:18]SAM_PROTO_SignData [08:25:18]wFMCommunicate request_size=4 [08:25:18]MH_SAM_APDU [08:25:18]CAPDU: 80 0D 01 02 [08:25:18]Write to MH i2c: E2 08 00 9D B2 80 0D 01 02 00 00 00 00 C8 [08:25:18]Write i2c OK [08:25:18]MH_I2C_Read... [08:25:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:25:18]Read from MH i2c: E2 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: E2 03 00 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: E2 03 00 9D B2 00 90 00 C3 [08:25:18]RAPDU: 90 00 [08:25:18]wFMCommunicate OK [08:25:18]wFMCommunicate request_size=255 [08:25:18]MH_SAM_APDU [08:25:18]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 76 BE 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 52 0E 01 [08:25:18]Write to MH i2c: E2 02 01 9E B2 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 76 BE 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 52 0E 01 00 00 1A [08:25:18]Write i2c OK [08:25:18]MH_I2C_Read... [08:25:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:18]Read from MH i2c: E2 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: E2 03 00 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: E2 03 00 9E B2 00 90 00 C4 [08:25:18]RAPDU: 90 00 [08:25:18]wFMCommunicate OK [08:25:18]wFMCommunicate request_size=16 [08:25:18]MH_SAM_APDU [08:25:18]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 2B 94 DC 8F 28 43 [08:25:18]Write to MH i2c: E2 13 00 9F B2 80 0D 02 02 0B 00 00 35 04 06 00 2B 94 DC 8F 28 43 00 00 B5 [08:25:18]Write i2c OK [08:25:18]MH_I2C_Read... [08:25:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:18]Read from MH i2c: E2 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: E2 03 00 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: E2 03 00 9F B2 00 90 00 C5 [08:25:18]RAPDU: 90 00 [08:25:18]wFMCommunicate OK [08:25:18]wFMCommunicate request_size=4 [08:25:18]MH_SAM_APDU [08:25:18]CAPDU: 80 0D 03 02 [08:25:18]Write to MH i2c: E2 08 00 A0 B2 80 0D 03 02 00 00 00 00 CD [08:25:18]Write i2c OK [08:25:18]MH_I2C_Read... [08:25:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:25:18]Read from MH i2c: E2 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: E2 0B 00 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: E2 0B 00 A0 B2 00 46 DC B9 5F 7C C2 C5 4F 90 00 5A [08:25:18]RAPDU: 46 DC B9 5F 7C C2 C5 4F 90 00 [08:25:18]wFMCommunicate OK [08:25:18]SAM_PROTO_SignData done [08:25:18]FM_MakeSignedData done [08:25:18]CreateOFDProtocolMessage [08:25:18]wFMCommunicate request_size=4 [08:25:18]MH_SAM_APDU [08:25:18]CAPDU: 80 11 00 00 [08:25:18]Write to MH i2c: E2 08 00 A1 B2 80 11 00 00 00 00 00 00 CD [08:25:18]Write i2c OK [08:25:18]MH_I2C_Read... [08:25:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:19]Read from MH i2c: E2 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: E2 17 00 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: E2 17 00 A1 B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1F [08:25:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:25:19]wFMCommunicate OK [08:25:19]CreateOFDProtocolMessage done [08:25:19]OFDSenderStorePacket 69202 [08:25:19]StoreOFDPacket docnum=69202 [08:25:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 90 B1 0D 01 D9 4C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 76 BE 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 52 0E 01 00 35 04 06 00 2B 94 DC 8F 28 43 46 DC B9 5F 7C C2 C5 4F [08:25:19]CheckFolder [08:25:19]dirname=/storage/ofd_packets [08:25:19]CheckFolder done [08:25:19]ProducePacketName [08:25:19]name=ofd_packets/00069202 [08:25:19]NVStorageSaveData ofd_packets/00069202 [08:25:19]File name is /storage/ofd_packets/00069202 [08:25:19]Write 307 bytes [08:25:19]NVStorageSaveData done [08:25:19]OFDSenderStorePacket done [08:25:19]KKMCreateOFDPacket done [08:25:19]NVStorageSaveData kkm_last_timestamp [08:25:19]File name is /storage/kkm_last_timestamp [08:25:19]Write 4 bytes [08:25:19]NVStorageSaveData done [08:25:19]ExternCall_PrintAddStr [08:25:19]wPrintStart [08:25:19]Write to MH i2c: 01 00 00 A2 B2 54 [08:25:19]Write i2c OK [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: 01 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: 01 07 00 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: 01 07 00 A2 B2 00 00 00 00 00 FF 0F 69 [08:25:19]RasterBufferAndPrint [08:25:19]line Счет N : (1)2884915 [08:25:19]line ИНН: 02508201610067 [08:25:19]line Контрольно-Кассовый Чек [08:25:19]line ПРОДАЖА [08:25:19]line ТРК (МРК, ГНК) : 31 [08:25:19]line Товар: 2710194240 [08:25:19]line D-ENERGY Дт-К-2 [08:25:19]line 12.960 * 77.20 [08:25:19]line = 1000.51 [08:25:19]line НДС 12% НСП 1% [08:25:19]line > о реализуемом товаре [08:25:19]line ОКРУГЛЕНИЕ: -0.51 [08:25:19]line ИТОГО: 1000.00 [08:25:19]line Внесено: 1000.00 [08:25:19]line СДАЧА: 0.00 [08:25:19]line НСП 1% : 8.85 [08:25:19]line НДС 12% : 106.25 [08:25:19]line Наличными: 1000.00 [08:25:19]line Безнал.: 0.00 [08:25:19]line Место: АЗС № 85 "Партнер Нефть" [08:25:19]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:25:19]line СНО: Общий режим [08:25:19]line Чек 47 20.10.2024 08:25 [08:25:19]line Смена: 193 ФФД: 1.0 [08:25:19]line ЗНМ: 0300000167 [08:25:19]line РНМ: 0000000000156251 [08:25:19]OFD Sender: Processing packet 69202 [packets to send 18, broken 17] [08:25:19]line Версия ККМ: v1.0 [08:25:19]ProducePacketName [08:25:19]line ФМ: 0000000000963346 [08:25:19]name=ofd_packets/00069202 [08:25:19]line ФД: 69202 [08:25:19]OFD Sender: To server: pG, [08:25:19]line ФПД: 47918355523651 [08:25:19]CommunicateWithHost lk.salyk.kg:30040 [08:25:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T082526&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69202&fm=47918355523651&tin=02508201610067®Number=0000000000156251&sum=100000 [08:25:19]ConnectInit lk.salyk.kg [08:25:19]written 0, free lines is 4095 [08:25:19]Connected sock=10 [08:25:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 90 B1 0D 01 D9 4C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 76 BE 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 52 0E 01 00 35 04 06 00 2B 94 DC 8F 28 43 46 DC B9 5F 7C C2 C5 4F [08:25:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 86 90 47 00 60 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 52 0E 01 00 F4 03 04 00 1E 68 14 67 B6 04 01 00 00 B4 81 C1 4A 97 C9 66 DF [08:25:19]CommunicateWithHost err = 0 [08:25:19]CheckOFDResponse [08:25:19]1017 (14) - 77093643461234 [08:25:19]1041 (16) - 0000000000963346 [08:25:19]1040 (4) - 69202 [08:25:19]1012 (4) - 20.10.2024 02:17 [08:25:19]1206 (1) - 0 [08:25:19]OFD Sender: Remove packet 69202 [08:25:19]ProducePacketName [08:25:19]name=ofd_packets/00069202 [08:25:19]NVStorageDeleteData [08:25:19]Write to MH i2c: 01 00 00 CD B2 7F [08:25:19]Write i2c OK [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: 01 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: 01 07 00 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: 01 07 00 CD B2 00 00 00 00 00 0B 0D 9E [08:25:19]RasterBufferAndPrint [08:25:19]line [08:25:19]line [08:25:19]line [08:25:19]line [08:25:19]line [08:25:19]written 0, free lines is 3348 [08:25:19]MH_Cut [08:25:19]Write to MH i2c: D1 01 00 D4 B2 01 58 [08:25:19]Write i2c OK [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: D1 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: D1 01 00 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: D1 01 00 D4 B2 00 57 [08:25:19]Write to MH i2c: 01 00 00 D5 B2 87 [08:25:19]Write i2c OK [08:25:19]MH_I2C_Read... [08:25:20]OFD Sender: No OFD packet to send [08:25:20]*** Cut start [08:25:20]*** Partial cut [08:25:20]*** CUTSNS_PIN = 1 [08:25:20]*** CUTSNS_PIN = 0 [08:25:20]*** Brake cut motor [08:25:21]Read from MH i2c: 01 [08:25:21]MH_I2C_Read... [08:25:21]*** Stop cut motor [08:25:21]*** Cut end [08:25:21]Read from MH i2c: 01 07 00 [08:25:21]MH_I2C_Read... [08:25:21]Read from MH i2c: 01 07 00 D5 B2 00 00 00 00 00 FF 0F 9C [08:25:21]process_action close_receipt done [08:25:21]requested_data is exist [08:25:21]produce_requested_data [08:25:21]requested_item fm.sn is exist - process it [08:25:21]wFMCommunicate request_size=4 [08:25:21]MH_SAM_APDU [08:25:21]CAPDU: 80 11 00 00 [08:25:21]Write to MH i2c: E2 08 00 D6 B2 80 11 00 00 00 00 00 00 02 [08:25:21]Write i2c OK [08:25:21]MH_I2C_Read... [08:25:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:21]Read from MH i2c: E2 [08:25:21]MH_I2C_Read... [08:25:21]Read from MH i2c: E2 17 00 [08:25:21]MH_I2C_Read... [08:25:21]Read from MH i2c: E2 17 00 D6 B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 54 [08:25:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:25:21]wFMCommunicate OK [08:25:21]requested_item fd.num is exist - process it [08:25:21]SAM_PROTO_GetFieldsCounters [08:25:21]wFMCommunicate request_size=4 [08:25:21]MH_SAM_APDU [08:25:21]CAPDU: 80 13 00 00 [08:25:21]Write to MH i2c: E2 08 00 D7 B2 80 13 00 00 00 00 00 00 05 [08:25:21]Write i2c OK [08:25:21]MH_I2C_Read... [08:25:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:25:21]Read from MH i2c: E2 [08:25:21]MH_I2C_Read... [08:25:21]Read from MH i2c: E2 62 00 [08:25:21]MH_I2C_Read... [08:25:21]Read from MH i2c: E2 62 00 D7 B2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 52 0E 01 00 0E 04 04 00 C1 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 CF [08:25:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 52 0E 01 00 0E 04 04 00 C1 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 [08:25:21]wFMCommunicate OK [08:25:21]SAM_PROTO_GetFieldsCounters done [08:25:21]requested_item shift.num is exist - process it [08:25:21]requested_item shift.opened is exist - process it [08:25:21]req_shift_opened [08:25:21]FM_GetShiftState [08:25:21]SAM_PROTO_GetShiftState [08:25:21]wFMCommunicate request_size=4 [08:25:21]MH_SAM_APDU [08:25:21]CAPDU: 80 13 01 00 [08:25:21]Write to MH i2c: E2 08 00 D8 B2 80 13 01 00 00 00 00 00 07 [08:25:21]Write i2c OK [08:25:21]MH_I2C_Read... [08:25:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:21]Read from MH i2c: E2 [08:25:21]MH_I2C_Read... [08:25:21]Read from MH i2c: E2 0E 00 [08:25:21]MH_I2C_Read... [08:25:21]Read from MH i2c: E2 0E 00 D8 B2 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 0D [08:25:21]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [08:25:21]wFMCommunicate OK [08:25:21]SAM_PROTO_GetShiftState done [08:25:21]FM_GetShiftState done [08:25:21]req_shift_opened done [08:25:21]requested_item shift.open_date is exist - process it [08:25:21]req_shift_open_date [08:25:21]req_shift_open_date done [08:25:21]produce_requested_data done [08:25:21]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69202,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [08:25:21]process_action_free close_receipt [08:25:21]json_value_free [08:25:21]json_value_free done [08:25:21]process_json_proto returns [08:25:21]Send response to host [08:25:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69202,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [08:25:21]free response buf [08:25:21]execute_script done [08:25:21]execute_script returns [08:25:21]free content buf [08:25:21]Sock 8.Close socket [08:25:21]Sock 8.Thread stoped [08:25:25]OFD Sender: No OFD packet to send [08:25:30]OFD Sender: No OFD packet to send [08:25:35]OFD Sender: No OFD packet to send [08:25:40]OFD Sender: No OFD packet to send [08:25:45]OFD Sender: No OFD packet to send [08:25:50]OFD Sender: No OFD packet to send [08:25:55]OFD Sender: No OFD packet to send [08:26:00]OFD Sender: No OFD packet to send [08:26:05]OFD Sender: No OFD packet to send [08:26:10]OFD Sender: No OFD packet to send [08:26:15]OFD Sender: No OFD packet to send [08:26:20]OFD Sender: No OFD packet to send [08:26:25]OFD Sender: No OFD packet to send [08:26:30]OFD Sender: No OFD packet to send [08:26:35]OFD Sender: No OFD packet to send [08:26:40]OFD Sender: No OFD packet to send [08:26:45]OFD Sender: No OFD packet to send [08:26:50]OFD Sender: No OFD packet to send [08:26:55]OFD Sender: No OFD packet to send [08:27:00]OFD Sender: No OFD packet to send [08:27:05]OFD Sender: No OFD packet to send [08:27:10]OFD Sender: No OFD packet to send [08:27:15]OFD Sender: No OFD packet to send [08:27:20]OFD Sender: No OFD packet to send [08:27:25]OFD Sender: No OFD packet to send [08:27:30]OFD Sender: No OFD packet to send [08:27:35]OFD Sender: No OFD packet to send [08:27:40]OFD Sender: No OFD packet to send [08:27:45]OFD Sender: No OFD packet to send [08:27:50]OFD Sender: No OFD packet to send [08:27:55]OFD Sender: No OFD packet to send [08:28:00]OFD Sender: No OFD packet to send [08:28:05]OFD Sender: No OFD packet to send [08:28:10]OFD Sender: No OFD packet to send [08:28:15]OFD Sender: No OFD packet to send [08:28:20]OFD Sender: No OFD packet to send [08:28:25]OFD Sender: No OFD packet to send [08:28:30]OFD Sender: No OFD packet to send [08:28:35]OFD Sender: No OFD packet to send [08:28:40]OFD Sender: No OFD packet to send [08:28:45]OFD Sender: No OFD packet to send [08:28:50]OFD Sender: No OFD packet to send [08:28:55]OFD Sender: No OFD packet to send [08:29:00]OFD Sender: No OFD packet to send [08:29:05]OFD Sender: No OFD packet to send [08:29:10]OFD Sender: No OFD packet to send [08:29:15]OFD Sender: No OFD packet to send [08:29:20]OFD Sender: No OFD packet to send [08:29:25]OFD Sender: No OFD packet to send [08:29:30]OFD Sender: No OFD packet to send [08:29:35]OFD Sender: No OFD packet to send [08:29:40]OFD Sender: No OFD packet to send [08:29:45]OFD Sender: No OFD packet to send [08:29:50]OFD Sender: No OFD packet to send [08:29:55]OFD Sender: No OFD packet to send [08:30:00]OFD Sender: No OFD packet to send [08:30:05]OFD Sender: No OFD packet to send [08:30:10]OFD Sender: No OFD packet to send [08:30:15]OFD Sender: No OFD packet to send [08:30:20]OFD Sender: No OFD packet to send [08:30:25]OFD Sender: No OFD packet to send [08:30:30]OFD Sender: No OFD packet to send [08:30:35]OFD Sender: No OFD packet to send [08:30:40]OFD Sender: No OFD packet to send [08:30:45]OFD Sender: No OFD packet to send [08:30:50]OFD Sender: No OFD packet to send [08:30:55]OFD Sender: No OFD packet to send [08:31:00]OFD Sender: No OFD packet to send [08:31:05]OFD Sender: No OFD packet to send [08:31:10]OFD Sender: No OFD packet to send [08:31:15]OFD Sender: No OFD packet to send [08:31:20]OFD Sender: No OFD packet to send [08:31:25]OFD Sender: No OFD packet to send [08:31:30]OFD Sender: No OFD packet to send [08:31:35]OFD Sender: No OFD packet to send [08:31:40]OFD Sender: No OFD packet to send [08:31:45]OFD Sender: No OFD packet to send [08:31:50]OFD Sender: No OFD packet to send [08:31:55]OFD Sender: No OFD packet to send [08:32:00]OFD Sender: No OFD packet to send [08:32:05]OFD Sender: No OFD packet to send [08:32:10]OFD Sender: No OFD packet to send [08:32:15]OFD Sender: No OFD packet to send [08:32:20]OFD Sender: No OFD packet to send [08:32:25]OFD Sender: No OFD packet to send [08:32:30]OFD Sender: No OFD packet to send [08:32:35]OFD Sender: No OFD packet to send [08:32:40]OFD Sender: No OFD packet to send [08:32:45]OFD Sender: No OFD packet to send [08:32:50]OFD Sender: No OFD packet to send [08:32:55]OFD Sender: No OFD packet to send [08:33:00]OFD Sender: No OFD packet to send [08:33:05]OFD Sender: No OFD packet to send [08:33: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:35]OFD Sender: No OFD packet to send [08:35:40]OFD Sender: No OFD packet to send [08:35:45]OFD Sender: No OFD packet to send [08:35:50]OFD Sender: No OFD packet to send [08:35:55]OFD Sender: No OFD packet to send [08:36:00]OFD Sender: No OFD packet to send [08:36:05]OFD Sender: No OFD packet to send [08:36:10]OFD Sender: No OFD packet to send [08:36:15]accept exits with 9 [08:36:15]New connection [08:36:15]New thread 3067260260 created [08:36:15]Thread 3067116900 joined [08:36:15]Waiting for new connection... [08:36:15] Sock 9.Parse request [08:36:15]Sock 9.Check first char [08:36:15]Sock 9.First char is OK [08:36:15]request: POST /json_proto HTTP/1.0 [08:36:15]Method: POST [08:36:15]URL: /json_proto [08:36:15]Method is POST - this is cgi request [08:36:15]url: /json_proto [08:36:15]query_string will be loaded in cgi processing [08:36:15]execute_cgi json_proto POST (null) [08:36:15]execute_cgi path=json_proto method=POST [08:36:15]POST find Content-Length [08:36:15]Host: 172.17.50.3:8080 [08:36:15]Content-Length: 681 [08:36:15]Content-Type: application/json [08:36:15] [08:36:15]POST finish read [08:36:15]Found Content-Length = 681 [08:36:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 7.720, "sum" : 300.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:36:15]execute_script... [08:36: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)2884916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 7.720, "sum" : 300.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:36:15]POST & json_proto [08:36:15]process_json_proto [08:36:15]json parsed OK: [08:36:15]protocol is kg_v1.0 [08:36:15]action value=close_receipt [08:36:15]process_action close_receipt [08:36:15]cmd_close_receipt [08:36:15]MH_GetDate [08:36:15]Write to MH i2c: F0 00 00 D9 B2 7A [08:36:15]Write i2c OK [08:36:15]MH_I2C_Read... [08:36:15]Read from MH i2c: F0 [08:36:15]MH_I2C_Read... [08:36:15]Read from MH i2c: F0 09 00 [08:36:15]MH_I2C_Read... [08:36:15]Read from MH i2c: F0 09 00 D9 B2 00 08 C1 14 67 6B 98 1E 66 4E [08:36:15]GetLastDocTimeStamp 1729412726 [08:36:15]current date 1729413384 [08:36:15]FM_GetShiftState [08:36:15]SAM_PROTO_GetShiftState [08:36:15]wFMCommunicate request_size=4 [08:36:15]MH_SAM_APDU [08:36:15]CAPDU: 80 13 01 00 [08:36:15]Write to MH i2c: E2 08 00 DA B2 80 13 01 00 00 00 00 00 09 [08:36:15]Write i2c OK [08:36:15]MH_I2C_Read... [08:36:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:15]Read from MH i2c: E2 [08:36:15]MH_I2C_Read... [08:36:15]Read from MH i2c: E2 0E 00 [08:36:15]MH_I2C_Read... [08:36:15]Read from MH i2c: E2 0E 00 DA B2 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 0F [08:36:15]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [08:36:15]wFMCommunicate OK [08:36:15]SAM_PROTO_GetShiftState done [08:36:15]FM_GetShiftState done [08:36:15]opened in 1729383220 [08:36:15]opened+sec_in_day 1729469620 [08:36:15]quantity*price = 30030 [08:36:15]sum+1 = 30032 [08:36:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 48 20.10.2024 08:36 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69203 ФПД: 134757911553312 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T083624&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69203&fm=134757911553312&tin=02508201610067®Number=0000000000156251&sum=30000 [08:36:16]StoreToDocumentArchive [08:36:16]shift 193 fd 69203 [08:36:16]save to /storage/0193/doc_00069203 [08:36:16]save last doc name /storage/0193/doc_00069203 to /storage/kkm_last_doc_name [08:36:16]save OK [08:36:16]Clear old archive folders... [08:36:16]ProcessDocumentItem done err = 0, tmpTLVsize=250 [08:36:16]tlvbuf is 00533330 [08:36:16]SAM_PROTO_ClearQueue [08:36:16]wFMCommunicate request_size=4 [08:36:16]MH_SAM_APDU [08:36:16]CAPDU: 80 09 00 00 [08:36:16]Write to MH i2c: E2 08 00 E7 B2 80 09 00 00 00 00 00 00 0B [08:36:16]Write i2c OK [08:36:16]MH_I2C_Read... [08:36:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:36:16]Read from MH i2c: E2 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 03 00 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 03 00 E7 B2 00 90 00 0D [08:36:16]RAPDU: 90 00 [08:36:16]wFMCommunicate OK [08:36:16]SAM_PROTO_ClearQueue done [08:36:16]KKMCreateOFDPacket [08:36:16]OFDProtocolAddRootSTLVToBuf [08:36:16]FM_MakeSignedData [08:36:16]FM_MakeSignedData [08:36:16]SAM_PROTO_SignData [08:36:16]wFMCommunicate request_size=4 [08:36:16]MH_SAM_APDU [08:36:16]CAPDU: 80 0D 01 02 [08:36:16]Write to MH i2c: E2 08 00 E8 B2 80 0D 01 02 00 00 00 00 13 [08:36:16]Write i2c OK [08:36:16]MH_I2C_Read... [08:36:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:36:16]Read from MH i2c: E2 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 03 00 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 03 00 E8 B2 00 90 00 0E [08:36:16]RAPDU: 90 00 [08:36:16]wFMCommunicate OK [08:36:16]wFMCommunicate request_size=255 [08:36:16]MH_SAM_APDU [08:36:16]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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 4F 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 08 C1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 53 0E 01 00 35 04 06 00 7A 8F [08:36:16]Write to MH i2c: E2 02 01 E9 B2 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 4F 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 08 C1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 53 0E 01 00 35 04 06 00 7A 8F 00 00 86 [08:36:16]Write i2c OK [08:36:16]MH_I2C_Read... [08:36:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:16]Read from MH i2c: E2 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 03 00 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 03 00 E9 B2 00 90 00 0F [08:36:16]RAPDU: 90 00 [08:36:16]wFMCommunicate OK [08:36:16]wFMCommunicate request_size=9 [08:36:16]MH_SAM_APDU [08:36:16]CAPDU: 80 0D 02 02 04 C5 72 E5 20 [08:36:16]Write to MH i2c: E2 0C 00 EA B2 80 0D 02 02 04 00 C5 72 E5 20 00 00 5A [08:36:16]Write i2c OK [08:36:16]MH_I2C_Read... [08:36:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:16]Read from MH i2c: E2 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 03 00 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 03 00 EA B2 00 90 00 10 [08:36:16]RAPDU: 90 00 [08:36:16]wFMCommunicate OK [08:36:16]wFMCommunicate request_size=4 [08:36:16]MH_SAM_APDU [08:36:16]CAPDU: 80 0D 03 02 [08:36:16]Write to MH i2c: E2 08 00 EB B2 80 0D 03 02 00 00 00 00 18 [08:36:16]Write i2c OK [08:36:16]MH_I2C_Read... [08:36:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:36:17]Read from MH i2c: E2 [08:36:17]MH_I2C_Read... [08:36:17]Read from MH i2c: E2 0B 00 [08:36:17]MH_I2C_Read... [08:36:17]Read from MH i2c: E2 0B 00 EB B2 00 20 7A F3 F7 DB 90 6C 33 90 00 A7 [08:36:17]RAPDU: 20 7A F3 F7 DB 90 6C 33 90 00 [08:36:17]wFMCommunicate OK [08:36:17]SAM_PROTO_SignData done [08:36:17]FM_MakeSignedData done [08:36:17]CreateOFDProtocolMessage [08:36:17]wFMCommunicate request_size=4 [08:36:17]MH_SAM_APDU [08:36:17]CAPDU: 80 11 00 00 [08:36:17]Write to MH i2c: E2 08 00 EC B2 80 11 00 00 00 00 00 00 18 [08:36:17]Write i2c OK [08:36:17]MH_I2C_Read... [08:36:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:36:17]Read from MH i2c: E2 [08:36:17]MH_I2C_Read... [08:36:17]Read from MH i2c: E2 17 00 [08:36:17]MH_I2C_Read... [08:36:17]Read from MH i2c: E2 17 00 EC B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6A [08:36:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:36:17]wFMCommunicate OK [08:36:17]CreateOFDProtocolMessage done [08:36:17]OFDSenderStorePacket 69203 [08:36:17]StoreOFDPacket docnum=69203 [08:36:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 35 3C 06 01 76 72 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 4F 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 08 C1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 53 0E 01 00 35 04 06 00 7A 8F C5 72 E5 20 20 7A F3 F7 DB 90 6C 33 [08:36:17]CheckFolder [08:36:17]dirname=/storage/ofd_packets [08:36:17]CheckFolder done [08:36:17]ProducePacketName [08:36:17]name=ofd_packets/00069203 [08:36:17]NVStorageSaveData ofd_packets/00069203 [08:36:17]File name is /storage/ofd_packets/00069203 [08:36:17]Write 300 bytes [08:36:17]NVStorageSaveData done [08:36:17]OFDSenderStorePacket done [08:36:17]KKMCreateOFDPacket done [08:36:17]NVStorageSaveData kkm_last_timestamp [08:36:17]File name is /storage/kkm_last_timestamp [08:36:17]Write 4 bytes [08:36:17]NVStorageSaveData done [08:36:17]ExternCall_PrintAddStr [08:36:17]wPrintStart [08:36:17]Write to MH i2c: 01 00 00 ED B2 9F [08:36:17]Write i2c OK [08:36:17]MH_I2C_Read... [08:36:17]Read from MH i2c: 01 [08:36:17]MH_I2C_Read... [08:36:17]Read from MH i2c: 01 07 00 [08:36:17]MH_I2C_Read... [08:36:17]Read from MH i2c: 01 07 00 ED B2 00 00 00 00 00 FF 0F B4 [08:36:17]RasterBufferAndPrint [08:36:17]line Счет N : (1)2884916 [08:36:17]line ИНН: 02508201610067 [08:36:17]line Контрольно-Кассовый Чек [08:36:17]line ПРОДАЖА [08:36:17]line ТРК (МРК, ГНК) : 71 [08:36:17]line Товар: 2711129700 [08:36:17]line ГАЗ-К-3 [08:36:17]line 7.720 * 38.90 [08:36:17]line = 300.31 [08:36:17]line НДС 12% НСП 1% [08:36:17]line > о реализуемом товаре [08:36:17]line ОКРУГЛЕНИЕ: -0.31 [08:36:17]line ИТОГО: 300.00 [08:36:17]line Внесено: 300.00 [08:36:17]line СДАЧА: 0.00 [08:36:17]line НСП 1% : 2.66 [08:36:17]line НДС 12% : 31.89 [08:36:17]line Наличными: 300.00 [08:36:17]line Безнал.: 0.00 [08:36:17]line Место: АЗС № 85 "Партнер Нефть" [08:36:17]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:36:17]line СНО: Общий режим [08:36:17]line Чек 48 20.10.2024 08:36 [08:36:17]line Смена: 193 ФФД: 1.0 [08:36:17]line ЗНМ: 0300000167 [08:36:17]line РНМ: 0000000000156251 [08:36:17]line Версия ККМ: v1.0 [08:36:17]line ФМ: 0000000000963346 [08:36:17]line ФД: 69203 [08:36:17]line ФПД: 134757911553312 [08:36:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T083624&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69203&fm=134757911553312&tin=02508201610067®Number=0000000000156251&sum=30000 [08:36:17]OFD Sender: Processing packet 69203 [packets to send 18, broken 17] [08:36:17]ProducePacketName [08:36:17]name=ofd_packets/00069203 [08:36:17]OFD Sender: To server: pG, [08:36:17]CommunicateWithHost lk.salyk.kg:30040 [08:36:17]ConnectInit lk.salyk.kg [08:36:17]written 0, free lines is 4095 [08:36:17]Connected sock=10 [08:36:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 35 3C 06 01 76 72 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 4F 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 08 C1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 53 0E 01 00 35 04 06 00 7A 8F C5 72 E5 20 20 7A F3 F7 DB 90 6C 33 [08:36:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 64 03 47 00 C3 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 53 0E 01 00 F4 03 04 00 B0 6A 14 67 B6 04 01 00 00 5D B1 2A 88 23 EA 92 BE [08:36:17]CommunicateWithHost err = 0 [08:36:17]CheckOFDResponse [08:36:17]1017 (14) - 77093643461234 [08:36:17]1041 (16) - 0000000000963346 [08:36:17]1040 (4) - 69203 [08:36:17]1012 (4) - 20.10.2024 02:28 [08:36:17]1206 (1) - 0 [08:36:17]OFD Sender: Remove packet 69203 [08:36:17]ProducePacketName [08:36:17]name=ofd_packets/00069203 [08:36:17]NVStorageDeleteData [08:36:17]Write to MH i2c: 01 00 00 18 B3 CB [08:36:17]Write i2c OK [08:36:17]MH_I2C_Read... [08:36:17]Read from MH i2c: 01 [08:36:17]MH_I2C_Read... [08:36:17]Read from MH i2c: 01 07 00 [08:36:17]MH_I2C_Read... [08:36:17]Read from MH i2c: 01 07 00 18 B3 00 00 00 00 00 EF 0C CD [08:36:17]RasterBufferAndPrint [08:36:17]line [08:36:17]line [08:36:17]line [08:36:17]line [08:36:17]line [08:36:17]written 0, free lines is 3317 [08:36:17]MH_Cut [08:36:17]Write to MH i2c: D1 01 00 1F B3 01 A4 [08:36:17]Write i2c OK [08:36:17]MH_I2C_Read... [08:36:17]Read from MH i2c: D1 [08:36:17]MH_I2C_Read... [08:36:17]Read from MH i2c: D1 01 00 [08:36:17]MH_I2C_Read... [08:36:17]Read from MH i2c: D1 01 00 1F B3 00 A3 [08:36:17]Write to MH i2c: 01 00 00 20 B3 D3 [08:36:17]Write i2c OK [08:36:17]MH_I2C_Read... [08:36:18]OFD Sender: No OFD packet to send [08:36:18]*** Cut start [08:36:18]*** Partial cut [08:36:18]*** CUTSNS_PIN = 1 [08:36:18]*** CUTSNS_PIN = 0 [08:36:18]*** Brake cut motor [08:36:19]Read from MH i2c: 01 [08:36:19]MH_I2C_Read... [08:36:19]*** Stop cut motor [08:36:19]*** Cut end [08:36:19]Read from MH i2c: 01 07 00 [08:36:19]MH_I2C_Read... [08:36:19]Read from MH i2c: 01 07 00 20 B3 00 00 00 00 00 FF 0F E8 [08:36:19]process_action close_receipt done [08:36:19]requested_data is exist [08:36:19]produce_requested_data [08:36:19]requested_item fm.sn is exist - process it [08:36:19]wFMCommunicate request_size=4 [08:36:19]MH_SAM_APDU [08:36:19]CAPDU: 80 11 00 00 [08:36:19]Write to MH i2c: E2 08 00 21 B3 80 11 00 00 00 00 00 00 4E [08:36:19]Write i2c OK [08:36:19]MH_I2C_Read... [08:36:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:36:19]Read from MH i2c: E2 [08:36:19]MH_I2C_Read... [08:36:19]Read from MH i2c: E2 17 00 [08:36:19]MH_I2C_Read... [08:36:19]Read from MH i2c: E2 17 00 21 B3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A0 [08:36:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:36:19]wFMCommunicate OK [08:36:19]requested_item fd.num is exist - process it [08:36:19]SAM_PROTO_GetFieldsCounters [08:36:19]wFMCommunicate request_size=4 [08:36:19]MH_SAM_APDU [08:36:19]CAPDU: 80 13 00 00 [08:36:19]Write to MH i2c: E2 08 00 22 B3 80 13 00 00 00 00 00 00 51 [08:36:19]Write i2c OK [08:36:19]MH_I2C_Read... [08:36:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:36:19]Read from MH i2c: E2 [08:36:19]MH_I2C_Read... [08:36:19]Read from MH i2c: E2 62 00 [08:36:19]MH_I2C_Read... [08:36:19]Read from MH i2c: E2 62 00 22 B3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 53 0E 01 00 0E 04 04 00 C1 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 1F [08:36:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 53 0E 01 00 0E 04 04 00 C1 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 [08:36:19]wFMCommunicate OK [08:36:19]SAM_PROTO_GetFieldsCounters done [08:36:19]requested_item shift.num is exist - process it [08:36:19]requested_item shift.opened is exist - process it [08:36:19]req_shift_opened [08:36:19]FM_GetShiftState [08:36:19]SAM_PROTO_GetShiftState [08:36:19]wFMCommunicate request_size=4 [08:36:19]MH_SAM_APDU [08:36:19]CAPDU: 80 13 01 00 [08:36:19]Write to MH i2c: E2 08 00 23 B3 80 13 01 00 00 00 00 00 53 [08:36:19]Write i2c OK [08:36:19]MH_I2C_Read... [08:36:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:19]Read from MH i2c: E2 [08:36:19]MH_I2C_Read... [08:36:19]Read from MH i2c: E2 0E 00 [08:36:19]MH_I2C_Read... [08:36:19]Read from MH i2c: E2 0E 00 23 B3 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 59 [08:36:19]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [08:36:19]wFMCommunicate OK [08:36:19]SAM_PROTO_GetShiftState done [08:36:19]FM_GetShiftState done [08:36:19]req_shift_opened done [08:36:19]requested_item shift.open_date is exist - process it [08:36:19]req_shift_open_date [08:36:19]req_shift_open_date done [08:36:19]produce_requested_data done [08:36:19]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69203,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [08:36:19]process_action_free close_receipt [08:36:19]json_value_free [08:36:19]json_value_free done [08:36:19]process_json_proto returns [08:36:19]Send response to host [08:36:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69203,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [08:36:19]free response buf [08:36:19]execute_script done [08:36:19]execute_script returns [08:36:19]free content buf [08:36:19]Sock 9.Close socket [08:36:19]Sock 9.Thread stoped [08:36:23]OFD Sender: No OFD packet to send [08:36:28]OFD Sender: No OFD packet to send [08:36:33]OFD Sender: No OFD packet to send [08:36:38]OFD Sender: No OFD packet to send [08:36:43]OFD Sender: No OFD packet to send [08:36:48]OFD Sender: No OFD packet to send [08:36:53]OFD Sender: No OFD packet to send [08:36:58]OFD Sender: No OFD packet to send [08:37:03]OFD Sender: No OFD packet to send [08:37:08]OFD Sender: No OFD packet to send [08:37:13]OFD Sender: No OFD packet to send [08:37:18]OFD Sender: No OFD packet to send [08:37:23]OFD Sender: No OFD packet to send [08:37:28]OFD Sender: No OFD packet to send [08:37:33]OFD Sender: No OFD packet to send [08:37:38]OFD Sender: No OFD packet to send [08:37:43]OFD Sender: No OFD packet to send [08:37:48]OFD Sender: No OFD packet to send [08:37:53]OFD Sender: No OFD packet to send [08:37:58]OFD Sender: No OFD packet to send [08:38:03]OFD Sender: No OFD packet to send [08:38:08]OFD Sender: No OFD packet to send [08:38:13]OFD Sender: No OFD packet to send [08:38:18]OFD Sender: No OFD packet to send [08:38:23]OFD Sender: No OFD packet to send [08:38:28]OFD Sender: No OFD packet to send [08:38:33]OFD Sender: No OFD packet to send [08:38:38]OFD Sender: No OFD packet to send [08:38:43]OFD Sender: No OFD packet to send [08:38:48]OFD Sender: No OFD packet to send [08:38:53]OFD Sender: No OFD packet to send [08:38:58]OFD Sender: No OFD packet to send [08:39:03]OFD Sender: No OFD packet to send [08:39:08]OFD Sender: No OFD packet to send [08:39:13]OFD Sender: No OFD packet to send [08:39:18]OFD Sender: No OFD packet to send [08:39:23]OFD Sender: No OFD packet to send [08:39:28]OFD Sender: No OFD packet to send [08:39:33]OFD Sender: No OFD packet to send [08:39:38]OFD Sender: No OFD packet to send [08:39:43]OFD Sender: No OFD packet to send [08:39:48]OFD Sender: No OFD packet to send [08:39:53]OFD Sender: No OFD packet to send [08:39:58]OFD Sender: No OFD packet to send [08:40:03]OFD Sender: No OFD packet to send [08:40:08]OFD Sender: No OFD packet to send [08:40:13]OFD Sender: No OFD packet to send [08:40:18]OFD Sender: No OFD packet to send [08:40:23]OFD Sender: No OFD packet to send [08:40:28]OFD Sender: No OFD packet to send [08:40:33]OFD Sender: No OFD packet to send [08:40:38]OFD Sender: No OFD packet to send [08:40:43]OFD Sender: No OFD packet to send [08:40:48]OFD Sender: No OFD packet to send [08:40:53]OFD Sender: No OFD packet to send [08:40:58]OFD Sender: No OFD packet to send [08:41:03]OFD Sender: No OFD packet to send [08:41:08]OFD Sender: No OFD packet to send [08:41:13]OFD Sender: No OFD packet to send [08:41:18]OFD Sender: No OFD packet to send [08:41:23]OFD Sender: No OFD packet to send [08:41:28]OFD Sender: No OFD packet to send [08:41:33]OFD Sender: No OFD packet to send [08:41:38]OFD Sender: No OFD packet to send [08:41:43]OFD Sender: No OFD packet to send [08:41:48]OFD Sender: No OFD packet to send [08:41:53]OFD Sender: No OFD packet to send [08:41:58]OFD Sender: No OFD packet to send [08:42:03]OFD Sender: No OFD packet to send [08:42:08]OFD Sender: No OFD packet to send [08:42:13]OFD Sender: No OFD packet to send [08:42:18]OFD Sender: No OFD packet to send [08:42:23]OFD Sender: No OFD packet to send [08:42:28]OFD Sender: No OFD packet to send [08:42:33]OFD Sender: No OFD packet to send [08:42:38]OFD Sender: No OFD packet to send [08:42:39]accept exits with 8 [08:42:39]New connection [08:42:39]New thread 3067116900 created [08:42:39]Thread 3067260260 joined [08:42:39]Waiting for new connection... [08:42:39] Sock 8.Parse request [08:42:39]Sock 8.Check first char [08:42:39]Sock 8.First char is OK [08:42:39]request: POST /json_proto HTTP/1.0 [08:42:39]Method: POST [08:42:39]URL: /json_proto [08:42:39]Method is POST - this is cgi request [08:42:39]url: /json_proto [08:42:39]query_string will be loaded in cgi processing [08:42:39]execute_cgi json_proto POST (null) [08:42:39]execute_cgi path=json_proto method=POST [08:42:39]POST find Content-Length [08:42:39]Host: 172.17.50.3:8080 [08:42:39]Content-Length: 689 [08:42:39]Content-Type: application/json [08:42:39] [08:42:39]POST finish read [08:42:39]Found Content-Length = 689 [08:42:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 45.080, "sum" : 3480.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 3480.00, "payments": [ { "type": 0, "sum" : 3480.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:39]execute_script... [08:42:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 45.080, "sum" : 3480.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 3480.00, "payments": [ { "type": 0, "sum" : 3480.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:39]POST & json_proto [08:42:39]process_json_proto [08:42:39]json parsed OK: [08:42:39]protocol is kg_v1.0 [08:42:39]action value=close_receipt [08:42:39]process_action close_receipt [08:42:39]cmd_close_receipt [08:42:39]MH_GetDate [08:42:39]Write to MH i2c: F0 00 00 24 B3 C6 [08:42:39]Write i2c OK [08:42:39]MH_I2C_Read... [08:42:39]Read from MH i2c: F0 [08:42:39]MH_I2C_Read... [08:42:39]Read from MH i2c: F0 09 00 [08:42:39]MH_I2C_Read... [08:42:39]Read from MH i2c: F0 09 00 24 B3 00 88 C2 14 67 6B 98 1E 66 1B [08:42:39]GetLastDocTimeStamp 1729413384 [08:42:39]current date 1729413768 [08:42:39]FM_GetShiftState [08:42:39]SAM_PROTO_GetShiftState [08:42:39]wFMCommunicate request_size=4 [08:42:39]MH_SAM_APDU [08:42:39]CAPDU: 80 13 01 00 [08:42:39]Write to MH i2c: E2 08 00 25 B3 80 13 01 00 00 00 00 00 55 [08:42:39]Write i2c OK [08:42:39]MH_I2C_Read... [08:42:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:39]Read from MH i2c: E2 [08:42:39]MH_I2C_Read... [08:42:39]Read from MH i2c: E2 0E 00 [08:42:39]MH_I2C_Read... [08:42:39]Read from MH i2c: E2 0E 00 25 B3 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 5B [08:42:39]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [08:42:39]wFMCommunicate OK [08:42:39]SAM_PROTO_GetShiftState done [08:42:39]FM_GetShiftState done [08:42:39]opened in 1729383220 [08:42:39]opened+sec_in_day 1729469620 [08:42:39]quantity*price = 348017 [08:42:39]sum+1 = 348019 [08:42:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 3480.00 Внесено: 6000.00 СДАЧА: 2520.00 НСП 1% : 30.80 НДС 12% : 369.58 Наличными: 3480.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 49 20.10.2024 08:42 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69204 ФПД: 246969936531502 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084248&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69204&fm=246969936531502&tin=02508201610067®Number=0000000000156251&sum=348000 [08:42:40]StoreToDocumentArchive [08:42:40]shift 193 fd 69204 [08:42:40]save to /storage/0193/doc_00069204 [08:42:40]save last doc name /storage/0193/doc_00069204 to /storage/kkm_last_doc_name [08:42:40]save OK [08:42:40]Clear old archive folders... [08:42:40]ProcessDocumentItem done err = 0, tmpTLVsize=257 [08:42:40]tlvbuf is 004EB130 [08:42:40]SAM_PROTO_ClearQueue [08:42:40]wFMCommunicate request_size=4 [08:42:40]MH_SAM_APDU [08:42:40]CAPDU: 80 09 00 00 [08:42:40]Write to MH i2c: E2 08 00 32 B3 80 09 00 00 00 00 00 00 57 [08:42:40]Write i2c OK [08:42:40]MH_I2C_Read... [08:42:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:42:40]Read from MH i2c: E2 [08:42:40]MH_I2C_Read... [08:42:40]Read from MH i2c: E2 03 00 [08:42:40]MH_I2C_Read... [08:42:40]Read from MH i2c: E2 03 00 32 B3 00 90 00 59 [08:42:40]RAPDU: 90 00 [08:42:40]wFMCommunicate OK [08:42:40]SAM_PROTO_ClearQueue done [08:42:40]KKMCreateOFDPacket [08:42:40]OFDProtocolAddRootSTLVToBuf [08:42:40]FM_MakeSignedData [08:42:40]FM_MakeSignedData [08:42:40]SAM_PROTO_SignData [08:42:40]wFMCommunicate request_size=4 [08:42:40]MH_SAM_APDU [08:42:40]CAPDU: 80 0D 01 02 [08:42:40]Write to MH i2c: E2 08 00 33 B3 80 0D 01 02 00 00 00 00 5F [08:42:40]Write i2c OK [08:42:40]MH_I2C_Read... [08:42:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:42:40]Read from MH i2c: E2 [08:42:40]MH_I2C_Read... [08:42:40]Read from MH i2c: E2 03 00 [08:42:40]MH_I2C_Read... [08:42:40]Read from MH i2c: E2 03 00 33 B3 00 90 00 5A [08:42:40]RAPDU: 90 00 [08:42:40]wFMCommunicate OK [08:42:40]wFMCommunicate request_size=255 [08:42:40]MH_SAM_APDU [08:42:40]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 18 B0 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 72 4F 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 4F 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 90 00 00 00 00 07 04 06 00 60 4F 05 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 88 C2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 54 0E 01 [08:42:40]Write to MH i2c: E2 02 01 34 B3 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 18 B0 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 72 4F 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 4F 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 90 00 00 00 00 07 04 06 00 60 4F 05 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 88 C2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 54 0E 01 00 00 27 [08:42:40]Write i2c OK [08:42:40]MH_I2C_Read... [08:42:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:40]Read from MH i2c: E2 [08:42:40]MH_I2C_Read... [08:42:40]Read from MH i2c: E2 03 00 [08:42:40]MH_I2C_Read... [08:42:40]Read from MH i2c: E2 03 00 34 B3 00 90 00 5B [08:42:40]RAPDU: 90 00 [08:42:40]wFMCommunicate OK [08:42:40]wFMCommunicate request_size=16 [08:42:40]MH_SAM_APDU [08:42:40]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 E0 9E 2B 56 50 2E [08:42:40]Write to MH i2c: E2 13 00 35 B3 80 0D 02 02 0B 00 00 35 04 06 00 E0 9E 2B 56 50 2E 00 00 34 [08:42:40]Write i2c OK [08:42:40]MH_I2C_Read... [08:42:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:41]Read from MH i2c: E2 [08:42:41]MH_I2C_Read... [08:42:41]Read from MH i2c: E2 03 00 [08:42:41]MH_I2C_Read... [08:42:41]Read from MH i2c: E2 03 00 35 B3 00 90 00 5C [08:42:41]RAPDU: 90 00 [08:42:41]wFMCommunicate OK [08:42:41]wFMCommunicate request_size=4 [08:42:41]MH_SAM_APDU [08:42:41]CAPDU: 80 0D 03 02 [08:42:41]Write to MH i2c: E2 08 00 36 B3 80 0D 03 02 00 00 00 00 64 [08:42:41]Write i2c OK [08:42:41]MH_I2C_Read... [08:42:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:42:41]Read from MH i2c: E2 [08:42:41]MH_I2C_Read... [08:42:41]Read from MH i2c: E2 0B 00 [08:42:41]MH_I2C_Read... [08:42:41]Read from MH i2c: E2 0B 00 36 B3 00 60 5D 32 EF E0 88 F6 F3 90 00 94 [08:42:41]RAPDU: 60 5D 32 EF E0 88 F6 F3 90 00 [08:42:41]wFMCommunicate OK [08:42:41]SAM_PROTO_SignData done [08:42:41]FM_MakeSignedData done [08:42:41]CreateOFDProtocolMessage [08:42:41]wFMCommunicate request_size=4 [08:42:41]MH_SAM_APDU [08:42:41]CAPDU: 80 11 00 00 [08:42:41]Write to MH i2c: E2 08 00 37 B3 80 11 00 00 00 00 00 00 64 [08:42:41]Write i2c OK [08:42:41]MH_I2C_Read... [08:42:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:41]Read from MH i2c: E2 [08:42:41]MH_I2C_Read... [08:42:41]Read from MH i2c: E2 17 00 [08:42:41]MH_I2C_Read... [08:42:41]Read from MH i2c: E2 17 00 37 B3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B6 [08:42:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:42:41]wFMCommunicate OK [08:42:41]CreateOFDProtocolMessage done [08:42:41]OFDSenderStorePacket 69204 [08:42:41]StoreOFDPacket docnum=69204 [08:42:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 A6 60 0D 01 23 A1 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 18 B0 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 72 4F 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 4F 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 90 00 00 00 00 07 04 06 00 60 4F 05 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 88 C2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 54 0E 01 00 35 04 06 00 E0 9E 2B 56 50 2E 60 5D 32 EF E0 88 F6 F3 [08:42:41]CheckFolder [08:42:41]dirname=/storage/ofd_packets [08:42:41]CheckFolder done [08:42:41]ProducePacketName [08:42:41]name=ofd_packets/00069204 [08:42:41]NVStorageSaveData ofd_packets/00069204 [08:42:41]File name is /storage/ofd_packets/00069204 [08:42:41]Write 307 bytes [08:42:41]NVStorageSaveData done [08:42:41]OFDSenderStorePacket done [08:42:41]KKMCreateOFDPacket done [08:42:41]NVStorageSaveData kkm_last_timestamp [08:42:41]File name is /storage/kkm_last_timestamp [08:42:41]Write 4 bytes [08:42:41]NVStorageSaveData done [08:42:41]ExternCall_PrintAddStr [08:42:41]wPrintStart [08:42:41]Write to MH i2c: 01 00 00 38 B3 EB [08:42:41]Write i2c OK [08:42:41]MH_I2C_Read... [08:42:41]Read from MH i2c: 01 [08:42:41]MH_I2C_Read... [08:42:41]Read from MH i2c: 01 07 00 [08:42:41]MH_I2C_Read... [08:42:41]Read from MH i2c: 01 07 00 38 B3 00 00 00 00 00 FF 0F 00 [08:42:41]RasterBufferAndPrint [08:42:41]line Счет N : (1)2884917 [08:42:41]line ИНН: 02508201610067 [08:42:41]line Контрольно-Кассовый Чек [08:42:41]line ПРОДАЖА [08:42:41]line ТРК (МРК, ГНК) : 31 [08:42:41]line Товар: 2710194240 [08:42:41]line D-ENERGY Дт-К-2 [08:42:41]line 45.080 * 77.20 [08:42:41]line = 3480.18 [08:42:41]line НДС 12% НСП 1% [08:42:41]line > о реализуемом товаре [08:42:41]line ОКРУГЛЕНИЕ: -0.18 [08:42:41]line ИТОГО: 3480.00 [08:42:41]line Внесено: 6000.00 [08:42:41]line СДАЧА: 2520.00 [08:42:41]line НСП 1% : 30.80 [08:42:41]line НДС 12% : 369.58 [08:42:41]line Наличными: 3480.00 [08:42:41]line Безнал.: 0.00 [08:42:41]line Место: АЗС № 85 "Партнер Нефть" [08:42:41]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:42:41]line СНО: Общий режим [08:42:41]line Чек 49 20.10.2024 08:42 [08:42:41]line Смена: 193 ФФД: 1.0 [08:42:41]line ЗНМ: 0300000167 [08:42:41]line РНМ: 0000000000156251 [08:42:41]line Версия ККМ: v1.0 [08:42:41]line ФМ: 0000000000963346 [08:42:41]line ФД: 69204 [08:42:41]line ФПД: 246969936531502 [08:42:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084248&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69204&fm=246969936531502&tin=02508201610067®Number=0000000000156251&sum=348000 [08:42:41]OFD Sender: Processing packet 69204 [packets to send 18, broken 17] [08:42:41]ProducePacketName [08:42:41]name=ofd_packets/00069204 [08:42:41]OFD Sender: To server: pG, [08:42:41]CommunicateWithHost lk.salyk.kg:30040 [08:42:41]ConnectInit lk.salyk.kg [08:42:41]written 0, free lines is 4095 [08:42:41]Connected sock=10 [08:42:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 A6 60 0D 01 23 A1 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 18 B0 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 72 4F 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 4F 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 90 00 00 00 00 07 04 06 00 60 4F 05 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 88 C2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 54 0E 01 00 35 04 06 00 E0 9E 2B 56 50 2E 60 5D 32 EF E0 88 F6 F3 [08:42:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 8D AE 47 00 29 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 54 0E 01 00 F4 03 04 00 30 6C 14 67 B6 04 01 00 00 08 19 6B 28 9E 34 28 E7 [08:42:41]CommunicateWithHost err = 0 [08:42:41]CheckOFDResponse [08:42:41]1017 (14) - 77093643461234 [08:42:41]1041 (16) - 0000000000963346 [08:42:41]1040 (4) - 69204 [08:42:41]1012 (4) - 20.10.2024 02:34 [08:42:41]1206 (1) - 0 [08:42:41]OFD Sender: Remove packet 69204 [08:42:41]ProducePacketName [08:42:41]name=ofd_packets/00069204 [08:42:41]NVStorageDeleteData [08:42:41]Write to MH i2c: 01 00 00 63 B3 16 [08:42:41]Write i2c OK [08:42:41]MH_I2C_Read... [08:42:41]Read from MH i2c: 01 [08:42:41]MH_I2C_Read... [08:42:41]Read from MH i2c: 01 07 00 [08:42:41]MH_I2C_Read... [08:42:41]Read from MH i2c: 01 07 00 63 B3 00 00 00 00 00 0A 0D 34 [08:42:41]RasterBufferAndPrint [08:42:41]line [08:42:41]line [08:42:41]line [08:42:41]line [08:42:41]line [08:42:41]written 0, free lines is 3347 [08:42:41]MH_Cut [08:42:41]Write to MH i2c: D1 01 00 6A B3 01 EF [08:42:41]Write i2c OK [08:42:41]MH_I2C_Read... [08:42:41]Read from MH i2c: D1 [08:42:41]MH_I2C_Read... [08:42:41]Read from MH i2c: D1 01 00 [08:42:41]MH_I2C_Read... [08:42:41]Read from MH i2c: D1 01 00 6A B3 00 EE [08:42:41]Write to MH i2c: 01 00 00 6B B3 1E [08:42:41]Write i2c OK [08:42:41]MH_I2C_Read... [08:42:42]OFD Sender: No OFD packet to send [08:42:42]*** Cut start [08:42:42]*** Partial cut [08:42:42]*** CUTSNS_PIN = 1 [08:42:42]*** CUTSNS_PIN = 0 [08:42:42]*** Brake cut motor [08:42:43]Read from MH i2c: 01 [08:42:43]MH_I2C_Read... [08:42:43]*** Stop cut motor [08:42:43]*** Cut end [08:42:43]Read from MH i2c: 01 07 00 [08:42:43]MH_I2C_Read... [08:42:43]Read from MH i2c: 01 07 00 6B B3 00 00 00 00 00 FF 0F 33 [08:42:43]process_action close_receipt done [08:42:43]requested_data is exist [08:42:43]produce_requested_data [08:42:43]requested_item fm.sn is exist - process it [08:42:43]wFMCommunicate request_size=4 [08:42:43]MH_SAM_APDU [08:42:43]CAPDU: 80 11 00 00 [08:42:43]Write to MH i2c: E2 08 00 6C B3 80 11 00 00 00 00 00 00 99 [08:42:43]Write i2c OK [08:42:43]MH_I2C_Read... [08:42:43]Read from MH i2c: E2 [08:42:43]MH_I2C_Read... [08:42:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:43]Read from MH i2c: E2 17 00 [08:42:43]MH_I2C_Read... [08:42:43]Read from MH i2c: E2 17 00 6C B3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EB [08:42:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:42:43]wFMCommunicate OK [08:42:43]requested_item fd.num is exist - process it [08:42:43]SAM_PROTO_GetFieldsCounters [08:42:43]wFMCommunicate request_size=4 [08:42:43]MH_SAM_APDU [08:42:43]CAPDU: 80 13 00 00 [08:42:43]Write to MH i2c: E2 08 00 6D B3 80 13 00 00 00 00 00 00 9C [08:42:43]Write i2c OK [08:42:43]MH_I2C_Read... [08:42:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:42:43]Read from MH i2c: E2 [08:42:43]MH_I2C_Read... [08:42:43]Read from MH i2c: E2 62 00 [08:42:43]MH_I2C_Read... [08:42:43]Read from MH i2c: E2 62 00 6D B3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 54 0E 01 00 0E 04 04 00 C1 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 6E [08:42:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 54 0E 01 00 0E 04 04 00 C1 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 [08:42:43]wFMCommunicate OK [08:42:43]SAM_PROTO_GetFieldsCounters done [08:42:43]requested_item shift.num is exist - process it [08:42:43]requested_item shift.opened is exist - process it [08:42:43]req_shift_opened [08:42:43]FM_GetShiftState [08:42:43]SAM_PROTO_GetShiftState [08:42:43]wFMCommunicate request_size=4 [08:42:43]MH_SAM_APDU [08:42:43]CAPDU: 80 13 01 00 [08:42:43]Write to MH i2c: E2 08 00 6E B3 80 13 01 00 00 00 00 00 9E [08:42:43]Write i2c OK [08:42:43]MH_I2C_Read... [08:42:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:43]Read from MH i2c: E2 [08:42:43]MH_I2C_Read... [08:42:43]Read from MH i2c: E2 0E 00 [08:42:43]MH_I2C_Read... [08:42:43]Read from MH i2c: E2 0E 00 6E B3 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 A4 [08:42:43]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [08:42:43]wFMCommunicate OK [08:42:43]SAM_PROTO_GetShiftState done [08:42:43]FM_GetShiftState done [08:42:43]req_shift_opened done [08:42:43]requested_item shift.open_date is exist - process it [08:42:43]req_shift_open_date [08:42:43]req_shift_open_date done [08:42:43]produce_requested_data done [08:42:43]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69204,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [08:42:43]process_action_free close_receipt [08:42:43]json_value_free [08:42:43]json_value_free done [08:42:43]process_json_proto returns [08:42:43]Send response to host [08:42:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69204,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [08:42:43]free response buf [08:42:43]execute_script done [08:42:43]execute_script returns [08:42:43]free content buf [08:42:43]Sock 8.Close socket [08:42:43]Sock 8.Thread stoped [08:42:47]OFD Sender: No OFD packet to send [08:42:52]OFD Sender: No OFD packet to send [08:42:57]OFD Sender: No OFD packet to send [08:43:02]OFD Sender: No OFD packet to send [08:43:07]OFD Sender: No OFD packet to send [08:43:12]OFD Sender: No OFD packet to send [08:43:17]OFD Sender: No OFD packet to send [08:43:22]OFD Sender: No OFD packet to send [08:43:27]OFD Sender: No OFD packet to send [08:43:32]OFD Sender: No OFD packet to send [08:43:37]OFD Sender: No OFD packet to send [08:43:42]OFD Sender: No OFD packet to send [08:43:47]OFD Sender: No OFD packet to send [08:43:52]OFD Sender: No OFD packet to send [08:43:57]OFD Sender: No OFD packet to send [08:44:02]OFD Sender: No OFD packet to send [08:44:07]OFD Sender: No OFD packet to send [08:44:12]OFD Sender: No OFD packet to send [08:44:17]OFD Sender: No OFD packet to send [08:44:22]OFD Sender: No OFD packet to send [08:44:27]OFD Sender: No OFD packet to send [08:44:32]OFD Sender: No OFD packet to send [08:44:37]OFD Sender: No OFD packet to send [08:44:39]accept exits with 9 [08:44:39]New connection [08:44:39]New thread 3067260260 created [08:44:39]Thread 3067116900 joined [08:44:39]Waiting for new connection... [08:44:39] Sock 9.Parse request [08:44:39]Sock 9.Check first char [08:44:39]Sock 9.First char is OK [08:44:39]request: POST /json_proto HTTP/1.0 [08:44:39]Method: POST [08:44:39]URL: /json_proto [08:44:39]Method is POST - this is cgi request [08:44:39]url: /json_proto [08:44:39]query_string will be loaded in cgi processing [08:44:39]execute_cgi json_proto POST (null) [08:44:39]execute_cgi path=json_proto method=POST [08:44:39]POST find Content-Length [08:44:39]Host: 172.17.50.3:8080 [08:44:39]Content-Length: 689 [08:44:39]Content-Type: application/json [08:44:39] [08:44:39]POST finish read [08:44:39]Found Content-Length = 689 [08:44:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:39]execute_script... [08:44:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:39]POST & json_proto [08:44:39]process_json_proto [08:44:39]json parsed OK: [08:44:39]protocol is kg_v1.0 [08:44:39]action value=close_receipt [08:44:39]process_action close_receipt [08:44:39]cmd_close_receipt [08:44:39]MH_GetDate [08:44:39]Write to MH i2c: F0 00 00 6F B3 11 [08:44:39]Write i2c OK [08:44:39]MH_I2C_Read... [08:44:39]Read from MH i2c: F0 [08:44:39]MH_I2C_Read... [08:44:39]Read from MH i2c: F0 09 00 [08:44:39]MH_I2C_Read... [08:44:39]Read from MH i2c: F0 09 00 6F B3 00 01 C3 14 67 6B 98 1E 66 E0 [08:44:39]GetLastDocTimeStamp 1729413768 [08:44:39]current date 1729413889 [08:44:39]FM_GetShiftState [08:44:39]SAM_PROTO_GetShiftState [08:44:39]wFMCommunicate request_size=4 [08:44:39]MH_SAM_APDU [08:44:39]CAPDU: 80 13 01 00 [08:44:39]Write to MH i2c: E2 08 00 70 B3 80 13 01 00 00 00 00 00 A0 [08:44:39]Write i2c OK [08:44:39]MH_I2C_Read... [08:44:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:39]Read from MH i2c: E2 [08:44:39]MH_I2C_Read... [08:44:39]Read from MH i2c: E2 0E 00 [08:44:39]MH_I2C_Read... [08:44:39]Read from MH i2c: E2 0E 00 70 B3 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 A6 [08:44:39]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [08:44:39]wFMCommunicate OK [08:44:39]SAM_PROTO_GetShiftState done [08:44:39]FM_GetShiftState done [08:44:39]opened in 1729383220 [08:44:39]opened+sec_in_day 1729469620 [08:44:39]quantity*price = 100051 [08:44:39]sum+1 = 100052 [08:44:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 50 20.10.2024 08:44 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69205 ФПД: 156551703001311 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084449&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69205&fm=156551703001311&tin=02508201610067®Number=0000000000156251&sum=100000 [08:44:41]StoreToDocumentArchive [08:44:41]shift 193 fd 69205 [08:44:41]save to /storage/0193/doc_00069205 [08:44:41]save last doc name /storage/0193/doc_00069205 to /storage/kkm_last_doc_name [08:44:41]save OK [08:44:41]Clear old archive folders... [08:44:41]ProcessDocumentItem done err = 0, tmpTLVsize=257 [08:44:41]tlvbuf is 00571240 [08:44:41]SAM_PROTO_ClearQueue [08:44:41]wFMCommunicate request_size=4 [08:44:41]MH_SAM_APDU [08:44:41]CAPDU: 80 09 00 00 [08:44:41]Write to MH i2c: E2 08 00 7D B3 80 09 00 00 00 00 00 00 A2 [08:44:41]Write i2c OK [08:44:41]MH_I2C_Read... [08:44:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:44:41]Read from MH i2c: E2 [08:44:41]MH_I2C_Read... [08:44:41]Read from MH i2c: E2 03 00 [08:44:41]MH_I2C_Read... [08:44:41]Read from MH i2c: E2 03 00 7D B3 00 90 00 A4 [08:44:41]RAPDU: 90 00 [08:44:41]wFMCommunicate OK [08:44:41]SAM_PROTO_ClearQueue done [08:44:41]KKMCreateOFDPacket [08:44:41]OFDProtocolAddRootSTLVToBuf [08:44:41]FM_MakeSignedData [08:44:41]FM_MakeSignedData [08:44:41]SAM_PROTO_SignData [08:44:41]wFMCommunicate request_size=4 [08:44:41]MH_SAM_APDU [08:44:41]CAPDU: 80 0D 01 02 [08:44:41]Write to MH i2c: E2 08 00 7E B3 80 0D 01 02 00 00 00 00 AA [08:44:41]Write i2c OK [08:44:41]MH_I2C_Read... [08:44:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:44:41]Read from MH i2c: E2 [08:44:41]MH_I2C_Read... [08:44:41]Read from MH i2c: E2 03 00 [08:44:41]MH_I2C_Read... [08:44:41]Read from MH i2c: E2 03 00 7E B3 00 90 00 A5 [08:44:41]RAPDU: 90 00 [08:44:41]wFMCommunicate OK [08:44:41]wFMCommunicate request_size=255 [08:44:41]MH_SAM_APDU [08:44:41]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 01 C3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 55 0E 01 [08:44:41]Write to MH i2c: E2 02 01 7F B3 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 01 C3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 55 0E 01 00 00 92 [08:44:41]Write i2c OK [08:44:41]MH_I2C_Read... [08:44:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:41]Read from MH i2c: E2 [08:44:41]MH_I2C_Read... [08:44:41]Read from MH i2c: E2 03 00 [08:44:41]MH_I2C_Read... [08:44:41]Read from MH i2c: E2 03 00 7F B3 00 90 00 A6 [08:44:41]RAPDU: 90 00 [08:44:41]wFMCommunicate OK [08:44:41]wFMCommunicate request_size=16 [08:44:41]MH_SAM_APDU [08:44:41]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 8E 62 08 A5 78 DF [08:44:41]Write to MH i2c: E2 13 00 80 B3 80 0D 02 02 0B 00 00 35 04 06 00 8E 62 08 A5 78 DF 00 00 F6 [08:44:41]Write i2c OK [08:44:41]MH_I2C_Read... [08:44:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:41]Read from MH i2c: E2 [08:44:41]MH_I2C_Read... [08:44:41]Read from MH i2c: E2 03 00 [08:44:41]MH_I2C_Read... [08:44:41]Read from MH i2c: E2 03 00 80 B3 00 90 00 A7 [08:44:41]RAPDU: 90 00 [08:44:41]wFMCommunicate OK [08:44:41]wFMCommunicate request_size=4 [08:44:41]MH_SAM_APDU [08:44:41]CAPDU: 80 0D 03 02 [08:44:41]Write to MH i2c: E2 08 00 81 B3 80 0D 03 02 00 00 00 00 AF [08:44:41]Write i2c OK [08:44:41]MH_I2C_Read... [08:44:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:44:41]Read from MH i2c: E2 [08:44:41]MH_I2C_Read... [08:44:41]Read from MH i2c: E2 0B 00 [08:44:41]MH_I2C_Read... [08:44:41]Read from MH i2c: E2 0B 00 81 B3 00 CF A8 52 1C 3E 8F E1 C3 90 00 06 [08:44:41]RAPDU: CF A8 52 1C 3E 8F E1 C3 90 00 [08:44:41]wFMCommunicate OK [08:44:41]SAM_PROTO_SignData done [08:44:41]FM_MakeSignedData done [08:44:41]CreateOFDProtocolMessage [08:44:41]wFMCommunicate request_size=4 [08:44:41]MH_SAM_APDU [08:44:41]CAPDU: 80 11 00 00 [08:44:41]Write to MH i2c: E2 08 00 82 B3 80 11 00 00 00 00 00 00 AF [08:44:41]Write i2c OK [08:44:41]MH_I2C_Read... [08:44:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:41]Read from MH i2c: E2 [08:44:41]MH_I2C_Read... [08:44:41]Read from MH i2c: E2 17 00 [08:44:41]MH_I2C_Read... [08:44:41]Read from MH i2c: E2 17 00 82 B3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 01 [08:44:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:44:41]wFMCommunicate OK [08:44:41]CreateOFDProtocolMessage done [08:44:41]OFDSenderStorePacket 69205 [08:44:41]StoreOFDPacket docnum=69205 [08:44:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 70 0B 0D 01 98 03 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 01 C3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 55 0E 01 00 35 04 06 00 8E 62 08 A5 78 DF CF A8 52 1C 3E 8F E1 C3 [08:44:41]CheckFolder [08:44:41]dirname=/storage/ofd_packets [08:44:41]CheckFolder done [08:44:41]ProducePacketName [08:44:41]name=ofd_packets/00069205 [08:44:41]NVStorageSaveData ofd_packets/00069205 [08:44:41]File name is /storage/ofd_packets/00069205 [08:44:41]Write 307 bytes [08:44:41]NVStorageSaveData done [08:44:41]OFDSenderStorePacket done [08:44:41]KKMCreateOFDPacket done [08:44:41]NVStorageSaveData kkm_last_timestamp [08:44:41]File name is /storage/kkm_last_timestamp [08:44:41]Write 4 bytes [08:44:41]NVStorageSaveData done [08:44:41]ExternCall_PrintAddStr [08:44:41]wPrintStart [08:44:41]Write to MH i2c: 01 00 00 83 B3 36 [08:44:41]Write i2c OK [08:44:41]MH_I2C_Read... [08:44:41]Read from MH i2c: 01 [08:44:41]MH_I2C_Read... [08:44:41]Read from MH i2c: 01 07 00 [08:44:41]MH_I2C_Read... [08:44:41]Read from MH i2c: 01 07 00 83 B3 00 00 00 00 00 FF 0F 4B [08:44:41]RasterBufferAndPrint [08:44:41]line Счет N : (1)2884918 [08:44:41]line ИНН: 02508201610067 [08:44:41]line Контрольно-Кассовый Чек [08:44:41]line ПРОДАЖА [08:44:41]line ТРК (МРК, ГНК) : 11 [08:44:41]line Товар: 2710194240 [08:44:41]line D-ENERGY Дт-К-2 [08:44:41]line 12.960 * 77.20 [08:44:41]line = 1000.51 [08:44:41]line НДС 12% НСП 1% [08:44:41]line > о реализуемом товаре [08:44:41]line ОКРУГЛЕНИЕ: -0.51 [08:44:41]line ИТОГО: 1000.00 [08:44:41]line Внесено: 1000.00 [08:44:41]line СДАЧА: 0.00 [08:44:41]line НСП 1% : 8.85 [08:44:41]line НДС 12% : 106.25 [08:44:41]line Наличными: 1000.00 [08:44:41]line Безнал.: 0.00 [08:44:41]line Место: АЗС № 85 "Партнер Нефть" [08:44:41]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:44:41]line СНО: Общий режим [08:44:41]line Чек 50 20.10.2024 08:44 [08:44:41]line Смена: 193 ФФД: 1.0 [08:44:41]line ЗНМ: 0300000167 [08:44:41]line РНМ: 0000000000156251 [08:44:41]line Версия ККМ: v1.0 [08:44:41]line ФМ: 0000000000963346 [08:44:41]line ФД: 69205 [08:44:41]line ФПД: 156551703001311 [08:44:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084449&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69205&fm=156551703001311&tin=02508201610067®Number=0000000000156251&sum=100000 [08:44:41]OFD Sender: Processing packet 69205 [packets to send 18, broken 17] [08:44:41]ProducePacketName [08:44:41]name=ofd_packets/00069205 [08:44:41]OFD Sender: To server: pG, [08:44:41]CommunicateWithHost lk.salyk.kg:30040 [08:44:42]ConnectInit lk.salyk.kg [08:44:42]written 0, free lines is 4095 [08:44:42]Connected sock=8 [08:44:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 70 0B 0D 01 98 03 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 01 C3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 55 0E 01 00 35 04 06 00 8E 62 08 A5 78 DF CF A8 52 1C 3E 8F E1 C3 [08:44:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 EA 7D 47 00 FC 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 55 0E 01 00 F4 03 04 00 A8 6C 14 67 B6 04 01 00 00 4E 23 BD 2F 55 B7 CB B3 [08:44:42]CommunicateWithHost err = 0 [08:44:42]CheckOFDResponse [08:44:42]1017 (14) - 77093643461234 [08:44:42]1041 (16) - 0000000000963346 [08:44:42]1040 (4) - 69205 [08:44:42]1012 (4) - 20.10.2024 02:36 [08:44:42]1206 (1) - 0 [08:44:42]OFD Sender: Remove packet 69205 [08:44:42]ProducePacketName [08:44:42]name=ofd_packets/00069205 [08:44:42]NVStorageDeleteData [08:44:42]Write to MH i2c: 01 00 00 AE B3 61 [08:44:42]Write i2c OK [08:44:42]MH_I2C_Read... [08:44:42]Read from MH i2c: 01 [08:44:42]MH_I2C_Read... [08:44:42]Read from MH i2c: 01 07 00 [08:44:42]MH_I2C_Read... [08:44:42]Read from MH i2c: 01 07 00 AE B3 00 00 00 00 00 F2 0C 66 [08:44:42]RasterBufferAndPrint [08:44:42]line [08:44:42]line [08:44:42]line [08:44:42]line [08:44:42]line [08:44:42]written 0, free lines is 3323 [08:44:42]MH_Cut [08:44:42]Write to MH i2c: D1 01 00 B5 B3 01 3A [08:44:42]Write i2c OK [08:44:42]MH_I2C_Read... [08:44:42]Read from MH i2c: D1 [08:44:42]MH_I2C_Read... [08:44:42]Read from MH i2c: D1 01 00 [08:44:42]MH_I2C_Read... [08:44:42]Read from MH i2c: D1 01 00 B5 B3 00 39 [08:44:42]Write to MH i2c: 01 00 00 B6 B3 69 [08:44:42]Write i2c OK [08:44:42]MH_I2C_Read... [08:44:42]OFD Sender: No OFD packet to send [08:44:43]*** Cut start [08:44:43]*** Partial cut [08:44:43]*** CUTSNS_PIN = 1 [08:44:43]*** CUTSNS_PIN = 0 [08:44:43]*** Brake cut motor [08:44:43]Read from MH i2c: 01 [08:44:43]MH_I2C_Read... [08:44:43]*** Stop cut motor [08:44:43]*** Cut end [08:44:43]Read from MH i2c: 01 07 00 [08:44:43]MH_I2C_Read... [08:44:43]Read from MH i2c: 01 07 00 B6 B3 00 00 00 00 00 FF 0F 7E [08:44:43]process_action close_receipt done [08:44:43]requested_data is exist [08:44:43]produce_requested_data [08:44:43]requested_item fm.sn is exist - process it [08:44:43]wFMCommunicate request_size=4 [08:44:43]MH_SAM_APDU [08:44:43]CAPDU: 80 11 00 00 [08:44:43]Write to MH i2c: E2 08 00 B7 B3 80 11 00 00 00 00 00 00 E4 [08:44:43]Write i2c OK [08:44:43]MH_I2C_Read... [08:44:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:43]Read from MH i2c: E2 [08:44:43]MH_I2C_Read... [08:44:43]Read from MH i2c: E2 17 00 [08:44:43]MH_I2C_Read... [08:44:43]Read from MH i2c: E2 17 00 B7 B3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 36 [08:44:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:44:43]wFMCommunicate OK [08:44:43]requested_item fd.num is exist - process it [08:44:43]SAM_PROTO_GetFieldsCounters [08:44:43]wFMCommunicate request_size=4 [08:44:43]MH_SAM_APDU [08:44:43]CAPDU: 80 13 00 00 [08:44:43]Write to MH i2c: E2 08 00 B8 B3 80 13 00 00 00 00 00 00 E7 [08:44:43]Write i2c OK [08:44:43]MH_I2C_Read... [08:44:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:44:43]Read from MH i2c: E2 [08:44:43]MH_I2C_Read... [08:44:43]Read from MH i2c: E2 62 00 [08:44:43]MH_I2C_Read... [08:44:43]Read from MH i2c: E2 62 00 B8 B3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 55 0E 01 00 0E 04 04 00 C1 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 BD [08:44:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 55 0E 01 00 0E 04 04 00 C1 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 [08:44:43]wFMCommunicate OK [08:44:43]SAM_PROTO_GetFieldsCounters done [08:44:43]requested_item shift.num is exist - process it [08:44:43]requested_item shift.opened is exist - process it [08:44:43]req_shift_opened [08:44:43]FM_GetShiftState [08:44:43]SAM_PROTO_GetShiftState [08:44:43]wFMCommunicate request_size=4 [08:44:43]MH_SAM_APDU [08:44:43]CAPDU: 80 13 01 00 [08:44:44]Write to MH i2c: E2 08 00 B9 B3 80 13 01 00 00 00 00 00 E9 [08:44:44]Write i2c OK [08:44:44]MH_I2C_Read... [08:44:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:44]Read from MH i2c: E2 [08:44:44]MH_I2C_Read... [08:44:44]Read from MH i2c: E2 0E 00 [08:44:44]MH_I2C_Read... [08:44:44]Read from MH i2c: E2 0E 00 B9 B3 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 EF [08:44:44]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [08:44:44]wFMCommunicate OK [08:44:44]SAM_PROTO_GetShiftState done [08:44:44]FM_GetShiftState done [08:44:44]req_shift_opened done [08:44:44]requested_item shift.open_date is exist - process it [08:44:44]req_shift_open_date [08:44:44]req_shift_open_date done [08:44:44]produce_requested_data done [08:44:44]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69205,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [08:44:44]process_action_free close_receipt [08:44:44]json_value_free [08:44:44]json_value_free done [08:44:44]process_json_proto returns [08:44:44]Send response to host [08:44:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69205,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [08:44:44]free response buf [08:44:44]execute_script done [08:44:44]execute_script returns [08:44:44]free content buf [08:44:44]Sock 9.Close socket [08:44:44]Sock 9.Thread stoped [08:44:47]OFD Sender: No OFD packet to send [08:44:52]OFD Sender: No OFD packet to send [08:44:57]OFD Sender: No OFD packet to send [08:45:02]OFD Sender: No OFD packet to send [08:45:07]OFD Sender: No OFD packet to send [08:45:12]OFD Sender: No OFD packet to send [08:45:17]OFD Sender: No OFD packet to send [08:45:22]OFD Sender: No OFD packet to send [08:45:27]OFD Sender: No OFD packet to send [08:45:32]OFD Sender: No OFD packet to send [08:45:37]OFD Sender: No OFD packet to send [08:45:42]OFD Sender: No OFD packet to send [08:45:47]OFD Sender: No OFD packet to send [08:45:52]OFD Sender: No OFD packet to send [08:45:54]accept exits with 10 [08:45:54]New connection [08:45:54]New thread 3067116900 created [08:45:54]Thread 3067260260 joined [08:45:54]Waiting for new connection... [08:45:54] Sock 10.Parse request [08:45:54]Sock 10.Check first char [08:45:54]Sock 10.First char is OK [08:45:54]request: POST /json_proto HTTP/1.0 [08:45:54]Method: POST [08:45:54]URL: /json_proto [08:45:54]Method is POST - this is cgi request [08:45:54]url: /json_proto [08:45:54]query_string will be loaded in cgi processing [08:45:54]execute_cgi json_proto POST (null) [08:45:54]execute_cgi path=json_proto method=POST [08:45:54]POST find Content-Length [08:45:54]Host: 172.17.50.3:8080 [08:45:54]Content-Length: 683 [08:45:54]Content-Type: application/json [08:45:54] [08:45:54]POST finish read [08:45:54]Found Content-Length = 683 [08:45:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:54]execute_script... [08:45: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)2884919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:54]POST & json_proto [08:45:54]process_json_proto [08:45:54]json parsed OK: [08:45:54]protocol is kg_v1.0 [08:45:54]action value=close_receipt [08:45:54]process_action close_receipt [08:45:54]cmd_close_receipt [08:45:54]MH_GetDate [08:45:54]Write to MH i2c: F0 00 00 BA B3 5C [08:45:54]Write i2c OK [08:45:54]MH_I2C_Read... [08:45:54]Read from MH i2c: F0 [08:45:54]MH_I2C_Read... [08:45:54]Read from MH i2c: F0 09 00 [08:45:54]MH_I2C_Read... [08:45:54]Read from MH i2c: F0 09 00 BA B3 00 4C C3 14 67 6B 98 1E 66 76 [08:45:54]GetLastDocTimeStamp 1729413889 [08:45:54]current date 1729413964 [08:45:54]FM_GetShiftState [08:45:54]SAM_PROTO_GetShiftState [08:45:54]wFMCommunicate request_size=4 [08:45:54]MH_SAM_APDU [08:45:54]CAPDU: 80 13 01 00 [08:45:54]Write to MH i2c: E2 08 00 BB B3 80 13 01 00 00 00 00 00 EB [08:45:54]Write i2c OK [08:45:54]MH_I2C_Read... [08:45:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:54]Read from MH i2c: E2 [08:45:54]MH_I2C_Read... [08:45:54]Read from MH i2c: E2 0E 00 [08:45:54]MH_I2C_Read... [08:45:54]Read from MH i2c: E2 0E 00 BB B3 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 F1 [08:45:54]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [08:45:54]wFMCommunicate OK [08:45:54]SAM_PROTO_GetShiftState done [08:45:54]FM_GetShiftState done [08:45:54]opened in 1729383220 [08:45:54]opened+sec_in_day 1729469620 [08:45:54]quantity*price = 100015 [08:45:54]sum+1 = 100017 [08:45:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 51 20.10.2024 08:46 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69206 ФПД: 242579815201867 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084604&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69206&fm=242579815201867&tin=02508201610067®Number=0000000000156251&sum=100000 [08:45:55]StoreToDocumentArchive [08:45:55]shift 193 fd 69206 [08:45:55]save to /storage/0193/doc_00069206 [08:45:55]save last doc name /storage/0193/doc_00069206 to /storage/kkm_last_doc_name [08:45:55]save OK [08:45:55]Clear old archive folders... [08:45:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:45:55]tlvbuf is 0050C9F0 [08:45:55]SAM_PROTO_ClearQueue [08:45:55]wFMCommunicate request_size=4 [08:45:55]MH_SAM_APDU [08:45:55]CAPDU: 80 09 00 00 [08:45:55]Write to MH i2c: E2 08 00 C8 B3 80 09 00 00 00 00 00 00 ED [08:45:55]Write i2c OK [08:45:55]MH_I2C_Read... [08:45:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:45:55]Read from MH i2c: E2 [08:45:55]MH_I2C_Read... [08:45:55]Read from MH i2c: E2 03 00 [08:45:55]MH_I2C_Read... [08:45:55]Read from MH i2c: E2 03 00 C8 B3 00 90 00 EF [08:45:55]RAPDU: 90 00 [08:45:55]wFMCommunicate OK [08:45:55]SAM_PROTO_ClearQueue done [08:45:55]KKMCreateOFDPacket [08:45:55]OFDProtocolAddRootSTLVToBuf [08:45:55]FM_MakeSignedData [08:45:55]FM_MakeSignedData [08:45:55]SAM_PROTO_SignData [08:45:55]wFMCommunicate request_size=4 [08:45:55]MH_SAM_APDU [08:45:55]CAPDU: 80 0D 01 02 [08:45:55]Write to MH i2c: E2 08 00 C9 B3 80 0D 01 02 00 00 00 00 F5 [08:45:55]Write i2c OK [08:45:55]MH_I2C_Read... [08:45:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:45:55]Read from MH i2c: E2 [08:45:55]MH_I2C_Read... [08:45:55]Read from MH i2c: E2 03 00 [08:45:55]MH_I2C_Read... [08:45:55]Read from MH i2c: E2 03 00 C9 B3 00 90 00 F0 [08:45:55]RAPDU: 90 00 [08:45:55]wFMCommunicate OK [08:45:55]wFMCommunicate request_size=255 [08:45:55]MH_SAM_APDU [08:45:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 4C C3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 56 0E 01 00 35 04 06 00 DC [08:45:55]Write to MH i2c: E2 02 01 CA B3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 4C C3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 56 0E 01 00 35 04 06 00 DC 00 00 37 [08:45:56]Write i2c OK [08:45:56]MH_I2C_Read... [08:45:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:56]Read from MH i2c: E2 [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: E2 03 00 [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: E2 03 00 CA B3 00 90 00 F1 [08:45:56]RAPDU: 90 00 [08:45:56]wFMCommunicate OK [08:45:56]wFMCommunicate request_size=10 [08:45:56]MH_SAM_APDU [08:45:56]CAPDU: 80 0D 02 02 05 A0 03 B6 FC 4B [08:45:56]Write to MH i2c: E2 0D 00 CB B3 80 0D 02 02 05 00 A0 03 B6 FC 4B 00 00 A2 [08:45:56]Write i2c OK [08:45:56]MH_I2C_Read... [08:45:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:56]Read from MH i2c: E2 [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: E2 03 00 [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: E2 03 00 CB B3 00 90 00 F2 [08:45:56]RAPDU: 90 00 [08:45:56]wFMCommunicate OK [08:45:56]wFMCommunicate request_size=4 [08:45:56]MH_SAM_APDU [08:45:56]CAPDU: 80 0D 03 02 [08:45:56]Write to MH i2c: E2 08 00 CC B3 80 0D 03 02 00 00 00 00 FA [08:45:56]Write i2c OK [08:45:56]MH_I2C_Read... [08:45:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:45:56]Read from MH i2c: E2 [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: E2 0B 00 [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: E2 0B 00 CC B3 00 D5 1B FC 13 E3 7F E2 65 90 00 A3 [08:45:56]RAPDU: D5 1B FC 13 E3 7F E2 65 90 00 [08:45:56]wFMCommunicate OK [08:45:56]SAM_PROTO_SignData done [08:45:56]FM_MakeSignedData done [08:45:56]CreateOFDProtocolMessage [08:45:56]wFMCommunicate request_size=4 [08:45:56]MH_SAM_APDU [08:45:56]CAPDU: 80 11 00 00 [08:45:56]Write to MH i2c: E2 08 00 CD B3 80 11 00 00 00 00 00 00 FA [08:45:56]Write i2c OK [08:45:56]MH_I2C_Read... [08:45:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:56]Read from MH i2c: E2 [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: E2 17 00 [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: E2 17 00 CD B3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4C [08:45:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:45:56]wFMCommunicate OK [08:45:56]CreateOFDProtocolMessage done [08:45:56]OFDSenderStorePacket 69206 [08:45:56]StoreOFDPacket docnum=69206 [08:45:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 9B 1E 07 01 5E 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 4C C3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 56 0E 01 00 35 04 06 00 DC A0 03 B6 FC 4B D5 1B FC 13 E3 7F E2 65 [08:45:56]CheckFolder [08:45:56]dirname=/storage/ofd_packets [08:45:56]CheckFolder done [08:45:56]ProducePacketName [08:45:56]name=ofd_packets/00069206 [08:45:56]NVStorageSaveData ofd_packets/00069206 [08:45:56]File name is /storage/ofd_packets/00069206 [08:45:56]Write 301 bytes [08:45:56]NVStorageSaveData done [08:45:56]OFDSenderStorePacket done [08:45:56]KKMCreateOFDPacket done [08:45:56]NVStorageSaveData kkm_last_timestamp [08:45:56]File name is /storage/kkm_last_timestamp [08:45:56]Write 4 bytes [08:45:56]NVStorageSaveData done [08:45:56]ExternCall_PrintAddStr [08:45:56]wPrintStart [08:45:56]Write to MH i2c: 01 00 00 CE B3 81 [08:45:56]Write i2c OK [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: 01 [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: 01 07 00 [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: 01 07 00 CE B3 00 00 00 00 00 FF 0F 96 [08:45:56]RasterBufferAndPrint [08:45:56]line Счет N : (1)2884919 [08:45:56]line ИНН: 02508201610067 [08:45:56]line Контрольно-Кассовый Чек [08:45:56]line ПРОДАЖА [08:45:56]line ТРК (МРК, ГНК) : 32 [08:45:56]line Товар: 2710124130 [08:45:56]line Аи-92-К-5 [08:45:56]line 14.950 * 66.90 [08:45:56]line = 1000.16 [08:45:56]line НДС 12% НСП 1% [08:45:56]line > о реализуемом товаре [08:45:56]line ОКРУГЛЕНИЕ: -0.16 [08:45:56]line ИТОГО: 1000.00 [08:45:56]line Внесено: 1000.00 [08:45:56]line СДАЧА: 0.00 [08:45:56]line НСП 1% : 8.85 [08:45:56]line НДС 12% : 106.21 [08:45:56]line Наличными: 1000.00 [08:45:56]line Безнал.: 0.00 [08:45:56]line Место: АЗС № 85 "Партнер Нефть" [08:45:56]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:45:56]line СНО: Общий режим [08:45:56]line Чек 51 20.10.2024 08:46 [08:45:56]line Смена: 193 ФФД: 1.0 [08:45:56]line ЗНМ: 0300000167 [08:45:56]line РНМ: 0000000000156251 [08:45:56]line Версия ККМ: v1.0 [08:45:56]line ФМ: 0000000000963346 [08:45:56]line ФД: 69206 [08:45:56]line ФПД: 242579815201867 [08:45:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084604&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69206&fm=242579815201867&tin=02508201610067®Number=0000000000156251&sum=100000 [08:45:56]OFD Sender: Processing packet 69206 [packets to send 18, broken 17] [08:45:56]ProducePacketName [08:45:56]name=ofd_packets/00069206 [08:45:56]OFD Sender: To server: pG, [08:45:56]CommunicateWithHost lk.salyk.kg:30040 [08:45:56]ConnectInit lk.salyk.kg [08:45:56]written 0, free lines is 4095 [08:45:56]Connected sock=9 [08:45:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 9B 1E 07 01 5E 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 4C C3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 56 0E 01 00 35 04 06 00 DC A0 03 B6 FC 4B D5 1B FC 13 E3 7F E2 65 [08:45:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 CA 83 47 00 50 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 56 0E 01 00 F4 03 04 00 F3 6C 14 67 B6 04 01 00 00 54 28 BD FE E2 BF 02 F1 [08:45:57]CommunicateWithHost err = 0 [08:45:57]CheckOFDResponse [08:45:57]1017 (14) - 77093643461234 [08:45:57]1041 (16) - 0000000000963346 [08:45:57]1040 (4) - 69206 [08:45:57]1012 (4) - 20.10.2024 02:37 [08:45:57]1206 (1) - 0 [08:45:57]OFD Sender: Remove packet 69206 [08:45:57]ProducePacketName [08:45:57]name=ofd_packets/00069206 [08:45:57]NVStorageDeleteData [08:45:57]Write to MH i2c: 01 00 00 F9 B3 AC [08:45:57]Write i2c OK [08:45:57]MH_I2C_Read... [08:45:57]Read from MH i2c: 01 [08:45:57]MH_I2C_Read... [08:45:57]Read from MH i2c: 01 07 00 [08:45:57]MH_I2C_Read... [08:45:57]Read from MH i2c: 01 07 00 F9 B3 00 00 00 00 00 F8 0C B7 [08:45:57]RasterBufferAndPrint [08:45:57]line [08:45:57]line [08:45:57]line [08:45:57]line [08:45:57]line [08:45:57]written 0, free lines is 3330 [08:45:57]MH_Cut [08:45:57]Write to MH i2c: D1 01 00 00 B4 01 86 [08:45:57]Write i2c OK [08:45:57]MH_I2C_Read... [08:45:57]Read from MH i2c: D1 [08:45:57]MH_I2C_Read... [08:45:57]Read from MH i2c: D1 01 00 [08:45:57]MH_I2C_Read... [08:45:57]Read from MH i2c: D1 01 00 00 B4 00 85 [08:45:57]Write to MH i2c: 01 00 00 01 B4 B5 [08:45:57]Write i2c OK [08:45:57]MH_I2C_Read... [08:45:57]OFD Sender: No OFD packet to send [08:45:57]*** Cut start [08:45:57]*** Partial cut [08:45:57]*** CUTSNS_PIN = 1 [08:45:57]*** CUTSNS_PIN = 0 [08:45:58]*** Brake cut motor [08:45:58]Read from MH i2c: 01 [08:45:58]MH_I2C_Read... [08:45:58]*** Stop cut motor [08:45:58]*** Cut end [08:45:58]Read from MH i2c: 01 07 00 [08:45:58]MH_I2C_Read... [08:45:58]Read from MH i2c: 01 07 00 01 B4 00 00 00 00 00 FF 0F CA [08:45:58]process_action close_receipt done [08:45:58]requested_data is exist [08:45:58]produce_requested_data [08:45:58]requested_item fm.sn is exist - process it [08:45:58]wFMCommunicate request_size=4 [08:45:58]MH_SAM_APDU [08:45:58]CAPDU: 80 11 00 00 [08:45:58]Write to MH i2c: E2 08 00 02 B4 80 11 00 00 00 00 00 00 30 [08:45:58]Write i2c OK [08:45:58]MH_I2C_Read... [08:45:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:58]Read from MH i2c: E2 [08:45:58]MH_I2C_Read... [08:45:58]Read from MH i2c: E2 17 00 [08:45:58]MH_I2C_Read... [08:45:58]Read from MH i2c: E2 17 00 02 B4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 82 [08:45:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:45:58]wFMCommunicate OK [08:45:58]requested_item fd.num is exist - process it [08:45:58]SAM_PROTO_GetFieldsCounters [08:45:58]wFMCommunicate request_size=4 [08:45:58]MH_SAM_APDU [08:45:58]CAPDU: 80 13 00 00 [08:45:58]Write to MH i2c: E2 08 00 03 B4 80 13 00 00 00 00 00 00 33 [08:45:58]Write i2c OK [08:45:58]MH_I2C_Read... [08:45:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:45:58]Read from MH i2c: E2 [08:45:58]MH_I2C_Read... [08:45:58]Read from MH i2c: E2 62 00 [08:45:58]MH_I2C_Read... [08:45:58]Read from MH i2c: E2 62 00 03 B4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 56 0E 01 00 0E 04 04 00 C1 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 0D [08:45:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 56 0E 01 00 0E 04 04 00 C1 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 [08:45:58]wFMCommunicate OK [08:45:58]SAM_PROTO_GetFieldsCounters done [08:45:58]requested_item shift.num is exist - process it [08:45:58]requested_item shift.opened is exist - process it [08:45:58]req_shift_opened [08:45:58]FM_GetShiftState [08:45:58]SAM_PROTO_GetShiftState [08:45:58]wFMCommunicate request_size=4 [08:45:58]MH_SAM_APDU [08:45:58]CAPDU: 80 13 01 00 [08:45:58]Write to MH i2c: E2 08 00 04 B4 80 13 01 00 00 00 00 00 35 [08:45:58]Write i2c OK [08:45:58]MH_I2C_Read... [08:45:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:58]Read from MH i2c: E2 [08:45:58]MH_I2C_Read... [08:45:58]Read from MH i2c: E2 0E 00 [08:45:58]MH_I2C_Read... [08:45:58]Read from MH i2c: E2 0E 00 04 B4 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 3B [08:45:58]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [08:45:58]wFMCommunicate OK [08:45:58]SAM_PROTO_GetShiftState done [08:45:58]FM_GetShiftState done [08:45:58]req_shift_opened done [08:45:58]requested_item shift.open_date is exist - process it [08:45:58]req_shift_open_date [08:45:58]req_shift_open_date done [08:45:58]produce_requested_data done [08:45:58]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69206,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [08:45:58]process_action_free close_receipt [08:45:58]json_value_free [08:45:58]json_value_free done [08:45:58]process_json_proto returns [08:45:58]Send response to host [08:45:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69206,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [08:45:58]free response buf [08:45:58]execute_script done [08:45:58]execute_script returns [08:45:58]free content buf [08:45:58]Sock 10.Close socket [08:45:58]Sock 10.Thread stoped [08:46:02]OFD Sender: No OFD packet to send [08:46:07]OFD Sender: No OFD packet to send [08:46:12]OFD Sender: No OFD packet to send [08:46:17]OFD Sender: No OFD packet to send [08:46:22]OFD Sender: No OFD packet to send [08:46:27]OFD Sender: No OFD packet to send [08:46:32]OFD Sender: No OFD packet to send [08:46:37]OFD Sender: No OFD packet to send [08:46:42]OFD Sender: No OFD packet to send [08:46:47]OFD Sender: No OFD packet to send [08:46:52]OFD Sender: No OFD packet to send [08:46:57]OFD Sender: No OFD packet to send [08:46:58]accept exits with 8 [08:46:58]New connection [08:46:58]New thread 3067260260 created [08:46:58]Thread 3067116900 joined [08:46:58]Waiting for new connection... [08:46:58] Sock 8.Parse request [08:46:58]Sock 8.Check first char [08:46:58]Sock 8.First char is OK [08:46:58]request: POST /json_proto HTTP/1.0 [08:46:58]Method: POST [08:46:58]URL: /json_proto [08:46:58]Method is POST - this is cgi request [08:46:58]url: /json_proto [08:46:58]query_string will be loaded in cgi processing [08:46:58]execute_cgi json_proto POST (null) [08:46:58]execute_cgi path=json_proto method=POST [08:46:58]POST find Content-Length [08:46:58]Host: 172.17.50.3:8080 [08:46:58]Content-Length: 684 [08:46:58]Content-Type: application/json [08:46:58] [08:46:58]POST finish read [08:46:58]Found Content-Length = 684 [08:46:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 5.190, "sum" : 400.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:58]execute_script... [08:46: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)2884920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 5.190, "sum" : 400.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:58]POST & json_proto [08:46:58]process_json_proto [08:46:58]json parsed OK: [08:46:58]protocol is kg_v1.0 [08:46:58]action value=close_receipt [08:46:58]process_action close_receipt [08:46:58]cmd_close_receipt [08:46:58]MH_GetDate [08:46:58]Write to MH i2c: F0 00 00 05 B4 A8 [08:46:58]Write i2c OK [08:46:58]MH_I2C_Read... [08:46:58]Read from MH i2c: F0 [08:46:58]MH_I2C_Read... [08:46:58]Read from MH i2c: F0 09 00 [08:46:58]MH_I2C_Read... [08:46:58]Read from MH i2c: F0 09 00 05 B4 00 8C C3 14 67 6B 98 1E 66 02 [08:46:58]GetLastDocTimeStamp 1729413964 [08:46:58]current date 1729414028 [08:46:58]FM_GetShiftState [08:46:58]SAM_PROTO_GetShiftState [08:46:58]wFMCommunicate request_size=4 [08:46:58]MH_SAM_APDU [08:46:58]CAPDU: 80 13 01 00 [08:46:58]Write to MH i2c: E2 08 00 06 B4 80 13 01 00 00 00 00 00 37 [08:46:58]Write i2c OK [08:46:58]MH_I2C_Read... [08:46:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:58]Read from MH i2c: E2 [08:46:58]MH_I2C_Read... [08:46:58]Read from MH i2c: E2 0E 00 [08:46:58]MH_I2C_Read... [08:46:58]Read from MH i2c: E2 0E 00 06 B4 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 3D [08:46:58]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [08:46:58]wFMCommunicate OK [08:46:58]SAM_PROTO_GetShiftState done [08:46:58]FM_GetShiftState done [08:46:58]opened in 1729383220 [08:46:58]opened+sec_in_day 1729469620 [08:46:58]quantity*price = 40066 [08:46:58]sum+1 = 40068 [08:46:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 52 20.10.2024 08:47 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69207 ФПД: 5330518325067 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084708&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69207&fm=5330518325067&tin=02508201610067®Number=0000000000156251&sum=40000 [08:46:59]StoreToDocumentArchive [08:46:59]shift 193 fd 69207 [08:46:59]save to /storage/0193/doc_00069207 [08:46:59]save last doc name /storage/0193/doc_00069207 to /storage/kkm_last_doc_name [08:46:59]save OK [08:46:59]Clear old archive folders... [08:46:59]ProcessDocumentItem done err = 0, tmpTLVsize=257 [08:46:59]tlvbuf is 00478E60 [08:46:59]SAM_PROTO_ClearQueue [08:46:59]wFMCommunicate request_size=4 [08:46:59]MH_SAM_APDU [08:46:59]CAPDU: 80 09 00 00 [08:46:59]Write to MH i2c: E2 08 00 13 B4 80 09 00 00 00 00 00 00 39 [08:46:59]Write i2c OK [08:46:59]MH_I2C_Read... [08:46:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:46:59]Read from MH i2c: E2 [08:46:59]MH_I2C_Read... [08:46:59]Read from MH i2c: E2 03 00 [08:46:59]MH_I2C_Read... [08:46:59]Read from MH i2c: E2 03 00 13 B4 00 90 00 3B [08:46:59]RAPDU: 90 00 [08:46:59]wFMCommunicate OK [08:46:59]SAM_PROTO_ClearQueue done [08:46:59]KKMCreateOFDPacket [08:46:59]OFDProtocolAddRootSTLVToBuf [08:46:59]FM_MakeSignedData [08:46:59]FM_MakeSignedData [08:46:59]SAM_PROTO_SignData [08:46:59]wFMCommunicate request_size=4 [08:46:59]MH_SAM_APDU [08:46:59]CAPDU: 80 0D 01 02 [08:46:59]Write to MH i2c: E2 08 00 14 B4 80 0D 01 02 00 00 00 00 41 [08:46:59]Write i2c OK [08:46:59]MH_I2C_Read... [08:46:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:47:00]Read from MH i2c: E2 [08:47:00]MH_I2C_Read... [08:47:00]Read from MH i2c: E2 03 00 [08:47:00]MH_I2C_Read... [08:47:00]Read from MH i2c: E2 03 00 14 B4 00 90 00 3C [08:47:00]RAPDU: 90 00 [08:47:00]wFMCommunicate OK [08:47:00]wFMCommunicate request_size=255 [08:47:00]MH_SAM_APDU [08:47:00]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 8C C3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 57 0E 01 [08:47:00]Write to MH i2c: E2 02 01 15 B4 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 8C C3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 57 0E 01 00 00 60 [08:47:00]Write i2c OK [08:47:00]MH_I2C_Read... [08:47:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:00]Read from MH i2c: E2 [08:47:00]MH_I2C_Read... [08:47:00]Read from MH i2c: E2 03 00 [08:47:00]MH_I2C_Read... [08:47:00]Read from MH i2c: E2 03 00 15 B4 00 90 00 3D [08:47:00]RAPDU: 90 00 [08:47:00]wFMCommunicate OK [08:47:00]wFMCommunicate request_size=16 [08:47:00]MH_SAM_APDU [08:47:00]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 04 D9 1B A6 B7 4B [08:47:00]Write to MH i2c: E2 13 00 16 B4 80 0D 02 02 0B 00 00 35 04 06 00 04 D9 1B A6 B7 4B 00 00 39 [08:47:00]Write i2c OK [08:47:00]MH_I2C_Read... [08:47:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:00]Read from MH i2c: E2 [08:47:00]MH_I2C_Read... [08:47:00]Read from MH i2c: E2 03 00 [08:47:00]MH_I2C_Read... [08:47:00]Read from MH i2c: E2 03 00 16 B4 00 90 00 3E [08:47:00]RAPDU: 90 00 [08:47:00]wFMCommunicate OK [08:47:00]wFMCommunicate request_size=4 [08:47:00]MH_SAM_APDU [08:47:00]CAPDU: 80 0D 03 02 [08:47:00]Write to MH i2c: E2 08 00 17 B4 80 0D 03 02 00 00 00 00 46 [08:47:00]Write i2c OK [08:47:00]MH_I2C_Read... [08:47:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:47:00]Read from MH i2c: E2 [08:47:00]MH_I2C_Read... [08:47:00]Read from MH i2c: E2 0B 00 [08:47:00]MH_I2C_Read... [08:47:00]Read from MH i2c: E2 0B 00 17 B4 00 80 32 9D 35 7D 05 40 61 90 00 EE [08:47:00]RAPDU: 80 32 9D 35 7D 05 40 61 90 00 [08:47:00]wFMCommunicate OK [08:47:00]SAM_PROTO_SignData done [08:47:00]FM_MakeSignedData done [08:47:00]CreateOFDProtocolMessage [08:47:00]wFMCommunicate request_size=4 [08:47:00]MH_SAM_APDU [08:47:00]CAPDU: 80 11 00 00 [08:47:00]Write to MH i2c: E2 08 00 18 B4 80 11 00 00 00 00 00 00 46 [08:47:00]Write i2c OK [08:47:00]MH_I2C_Read... [08:47:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:00]Read from MH i2c: E2 [08:47:00]MH_I2C_Read... [08:47:00]Read from MH i2c: E2 17 00 [08:47:00]MH_I2C_Read... [08:47:00]Read from MH i2c: E2 17 00 18 B4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 98 [08:47:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:47:00]wFMCommunicate OK [08:47:00]CreateOFDProtocolMessage done [08:47:00]OFDSenderStorePacket 69207 [08:47:00]StoreOFDPacket docnum=69207 [08:47:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 96 0F 0D 01 AB 2E 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 8C C3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 57 0E 01 00 35 04 06 00 04 D9 1B A6 B7 4B 80 32 9D 35 7D 05 40 61 [08:47:00]CheckFolder [08:47:00]dirname=/storage/ofd_packets [08:47:00]CheckFolder done [08:47:00]ProducePacketName [08:47:00]name=ofd_packets/00069207 [08:47:00]NVStorageSaveData ofd_packets/00069207 [08:47:00]File name is /storage/ofd_packets/00069207 [08:47:00]Write 307 bytes [08:47:00]NVStorageSaveData done [08:47:00]OFDSenderStorePacket done [08:47:00]KKMCreateOFDPacket done [08:47:00]NVStorageSaveData kkm_last_timestamp [08:47:00]File name is /storage/kkm_last_timestamp [08:47:00]Write 4 bytes [08:47:00]NVStorageSaveData done [08:47:00]ExternCall_PrintAddStr [08:47:00]wPrintStart [08:47:00]Write to MH i2c: 01 00 00 19 B4 CD [08:47:00]Write i2c OK [08:47:00]MH_I2C_Read... [08:47:00]Read from MH i2c: 01 [08:47:00]MH_I2C_Read... [08:47:00]Read from MH i2c: 01 07 00 [08:47:00]MH_I2C_Read... [08:47:00]Read from MH i2c: 01 07 00 19 B4 00 00 00 00 00 FF 0F E2 [08:47:00]RasterBufferAndPrint [08:47:00]line Счет N : (1)2884920 [08:47:00]line ИНН: 02508201610067 [08:47:00]line Контрольно-Кассовый Чек [08:47:00]line ПРОДАЖА [08:47:00]line ТРК (МРК, ГНК) : 21 [08:47:00]line Товар: 2710194240 [08:47:00]line D-ENERGY Дт-К-2 [08:47:00]line 5.190 * 77.20 [08:47:00]line = 400.67 [08:47:00]line НДС 12% НСП 1% [08:47:00]line > о реализуемом товаре [08:47:00]line ОКРУГЛЕНИЕ: -0.67 [08:47:00]line ИТОГО: 400.00 [08:47:00]line Внесено: 400.00 [08:47:00]line СДАЧА: 0.00 [08:47:00]line НСП 1% : 3.55 [08:47:00]line НДС 12% : 42.55 [08:47:00]line Наличными: 400.00 [08:47:00]line Безнал.: 0.00 [08:47:00]line Место: АЗС № 85 "Партнер Нефть" [08:47:00]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:47:00]line СНО: Общий режим [08:47:00]line Чек 52 20.10.2024 08:47 [08:47:00]line Смена: 193 ФФД: 1.0 [08:47:00]line ЗНМ: 0300000167 [08:47:00]line РНМ: 0000000000156251 [08:47:00]line Версия ККМ: v1.0 [08:47:00]line ФМ: 0000000000963346 [08:47:00]line ФД: 69207 [08:47:00]line ФПД: 5330518325067 [08:47:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084708&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69207&fm=5330518325067&tin=02508201610067®Number=0000000000156251&sum=40000 [08:47:00]OFD Sender: Processing packet 69207 [packets to send 18, broken 17] [08:47:00]ProducePacketName [08:47:00]name=ofd_packets/00069207 [08:47:00]OFD Sender: To server: pG, [08:47:00]CommunicateWithHost lk.salyk.kg:30040 [08:47:00]ConnectInit lk.salyk.kg [08:47:00]written 0, free lines is 4095 [08:47:00]Connected sock=10 [08:47:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 96 0F 0D 01 AB 2E 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 8C C3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 57 0E 01 00 35 04 06 00 04 D9 1B A6 B7 4B 80 32 9D 35 7D 05 40 61 [08:47:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 41 AB 47 00 BA 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 57 0E 01 00 F4 03 04 00 33 6D 14 67 B6 04 01 00 00 57 A7 D1 6F AD D2 42 A3 [08:47:01]CommunicateWithHost err = 0 [08:47:01]CheckOFDResponse [08:47:01]1017 (14) - 77093643461234 [08:47:01]1041 (16) - 0000000000963346 [08:47:01]1040 (4) - 69207 [08:47:01]1012 (4) - 20.10.2024 02:38 [08:47:01]1206 (1) - 0 [08:47:01]OFD Sender: Remove packet 69207 [08:47:01]ProducePacketName [08:47:01]name=ofd_packets/00069207 [08:47:01]NVStorageDeleteData [08:47:01]Write to MH i2c: 01 00 00 44 B4 F8 [08:47:01]Write i2c OK [08:47:01]MH_I2C_Read... [08:47:01]Read from MH i2c: 01 [08:47:01]MH_I2C_Read... [08:47:01]Read from MH i2c: 01 07 00 [08:47:01]MH_I2C_Read... [08:47:01]Read from MH i2c: 01 07 00 44 B4 00 00 00 00 00 EB 0C F6 [08:47:01]RasterBufferAndPrint [08:47:01]line [08:47:01]line [08:47:01]line [08:47:01]line [08:47:01]line [08:47:01]written 0, free lines is 3316 [08:47:01]MH_Cut [08:47:01]Write to MH i2c: D1 01 00 4B B4 01 D1 [08:47:01]Write i2c OK [08:47:01]MH_I2C_Read... [08:47:01]Read from MH i2c: D1 [08:47:01]MH_I2C_Read... [08:47:01]Read from MH i2c: D1 01 00 [08:47:01]MH_I2C_Read... [08:47:01]Read from MH i2c: D1 01 00 4B B4 00 D0 [08:47:01]Write to MH i2c: 01 00 00 4C B4 00 [08:47:01]Write i2c OK [08:47:01]MH_I2C_Read... [08:47:01]OFD Sender: No OFD packet to send [08:47:01]*** Cut start [08:47:01]*** Partial cut [08:47:01]*** CUTSNS_PIN = 1 [08:47:01]*** CUTSNS_PIN = 0 [08:47:02]*** Brake cut motor [08:47:02]Read from MH i2c: 01 [08:47:02]MH_I2C_Read... [08:47:02]*** Stop cut motor [08:47:02]*** Cut end [08:47:02]Read from MH i2c: 01 07 00 [08:47:02]MH_I2C_Read... [08:47:02]Read from MH i2c: 01 07 00 4C B4 00 00 00 00 00 FF 0F 15 [08:47:02]process_action close_receipt done [08:47:02]requested_data is exist [08:47:02]produce_requested_data [08:47:02]requested_item fm.sn is exist - process it [08:47:02]wFMCommunicate request_size=4 [08:47:02]MH_SAM_APDU [08:47:02]CAPDU: 80 11 00 00 [08:47:02]Write to MH i2c: E2 08 00 4D B4 80 11 00 00 00 00 00 00 7B [08:47:02]Write i2c OK [08:47:02]MH_I2C_Read... [08:47:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:02]Read from MH i2c: E2 [08:47:02]MH_I2C_Read... [08:47:02]Read from MH i2c: E2 17 00 [08:47:02]MH_I2C_Read... [08:47:02]Read from MH i2c: E2 17 00 4D B4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CD [08:47:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:47:02]wFMCommunicate OK [08:47:02]requested_item fd.num is exist - process it [08:47:02]SAM_PROTO_GetFieldsCounters [08:47:02]wFMCommunicate request_size=4 [08:47:02]MH_SAM_APDU [08:47:02]CAPDU: 80 13 00 00 [08:47:02]Write to MH i2c: E2 08 00 4E B4 80 13 00 00 00 00 00 00 7E [08:47:02]Write i2c OK [08:47:02]MH_I2C_Read... [08:47:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:47:02]Read from MH i2c: E2 [08:47:02]MH_I2C_Read... [08:47:02]Read from MH i2c: E2 62 00 [08:47:02]MH_I2C_Read... [08:47:02]Read from MH i2c: E2 62 00 4E B4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 57 0E 01 00 0E 04 04 00 C1 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 5C [08:47:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 57 0E 01 00 0E 04 04 00 C1 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 [08:47:02]wFMCommunicate OK [08:47:02]SAM_PROTO_GetFieldsCounters done [08:47:02]requested_item shift.num is exist - process it [08:47:02]requested_item shift.opened is exist - process it [08:47:02]req_shift_opened [08:47:02]FM_GetShiftState [08:47:02]SAM_PROTO_GetShiftState [08:47:02]wFMCommunicate request_size=4 [08:47:02]MH_SAM_APDU [08:47:02]CAPDU: 80 13 01 00 [08:47:02]Write to MH i2c: E2 08 00 4F B4 80 13 01 00 00 00 00 00 80 [08:47:02]Write i2c OK [08:47:02]MH_I2C_Read... [08:47:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:02]Read from MH i2c: E2 [08:47:02]MH_I2C_Read... [08:47:02]Read from MH i2c: E2 0E 00 [08:47:02]MH_I2C_Read... [08:47:02]Read from MH i2c: E2 0E 00 4F B4 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 86 [08:47:02]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [08:47:02]wFMCommunicate OK [08:47:02]SAM_PROTO_GetShiftState done [08:47:02]FM_GetShiftState done [08:47:02]req_shift_opened done [08:47:02]requested_item shift.open_date is exist - process it [08:47:02]req_shift_open_date [08:47:02]req_shift_open_date done [08:47:02]produce_requested_data done [08:47:02]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69207,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [08:47:02]process_action_free close_receipt [08:47:02]json_value_free [08:47:02]json_value_free done [08:47:02]process_json_proto returns [08:47:02]Send response to host [08:47:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69207,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [08:47:02]free response buf [08:47:02]execute_script done [08:47:02]execute_script returns [08:47:02]free content buf [08:47:02]Sock 8.Close socket [08:47:02]Sock 8.Thread stoped [08:47:06]OFD Sender: No OFD packet to send [08:47:11]OFD Sender: No OFD packet to send [08:47:16]OFD Sender: No OFD packet to send [08:47:21]OFD Sender: No OFD packet to send [08:47:26]OFD Sender: No OFD packet to send [08:47:31]OFD Sender: No OFD packet to send [08:47:36]OFD Sender: No OFD packet to send [08:47:41]OFD Sender: No OFD packet to send [08:47:46]OFD Sender: No OFD packet to send [08:47:51]OFD Sender: No OFD packet to send [08:47:56]OFD Sender: No OFD packet to send [08:48:01]OFD Sender: No OFD packet to send [08:48:06]OFD Sender: No OFD packet to send [08:48:11]OFD Sender: No OFD packet to send [08:48:16]OFD Sender: No OFD packet to send [08:48:21]OFD Sender: No OFD packet to send [08:48:26]OFD Sender: No OFD packet to send [08:48:31]OFD Sender: No OFD packet to send [08:48:36]OFD Sender: No OFD packet to send [08:48:41]OFD Sender: No OFD packet to send [08:48:46]OFD Sender: No OFD packet to send [08:48:51]OFD Sender: No OFD packet to send [08:48:56]OFD Sender: No OFD packet to send [08:49:01]OFD Sender: No OFD packet to send [08:49:06]OFD Sender: No OFD packet to send [08:49:11]OFD Sender: No OFD packet to send [08:49:16]OFD Sender: No OFD packet to send [08:49:21]OFD Sender: No OFD packet to send [08:49:26]OFD Sender: No OFD packet to send [08:49:31]OFD Sender: No OFD packet to send [08:49:36]OFD Sender: No OFD packet to send [08:49:41]OFD Sender: No OFD packet to send [08:49:46]OFD Sender: No OFD packet to send [08:49:51]OFD Sender: No OFD packet to send [08:49:56]OFD Sender: No OFD packet to send [08:50:01]OFD Sender: No OFD packet to send [08:50:06]OFD Sender: No OFD packet to send [08:50:11]OFD Sender: No OFD packet to send [08:50:16]OFD Sender: No OFD packet to send [08:50:21]OFD Sender: No OFD packet to send [08:50:26]OFD Sender: No OFD packet to send [08:50:31]OFD Sender: No OFD packet to send [08:50:36]OFD Sender: No OFD packet to send [08:50:41]OFD Sender: No OFD packet to send [08:50:46]OFD Sender: No OFD packet to send [08:50:51]OFD Sender: No OFD packet to send [08:50:56]OFD Sender: No OFD packet to send [08:51:01]OFD Sender: No OFD packet to send [08:51:06]OFD Sender: No OFD packet to send [08:51:11]OFD Sender: No OFD packet to send [08:51:16]OFD Sender: No OFD packet to send [08:51:21]OFD Sender: No OFD packet to send [08:51:26]OFD Sender: No OFD packet to send [08:51:31]OFD Sender: No OFD packet to send [08:51:36]OFD Sender: No OFD packet to send [08:51:41]OFD Sender: No OFD packet to send [08:51:46]OFD Sender: No OFD packet to send [08:51:51]OFD Sender: No OFD packet to send [08:51:56]OFD Sender: No OFD packet to send [08:52:01]OFD Sender: No OFD packet to send [08:52:06]OFD Sender: No OFD packet to send [08:52:11]OFD Sender: No OFD packet to send [08:52:16]OFD Sender: No OFD packet to send [08:52:21]OFD Sender: No OFD packet to send [08:52:26]OFD Sender: No OFD packet to send [08:52:31]OFD Sender: No OFD packet to send [08:52:32]accept exits with 9 [08:52:32]New connection [08:52:32]New thread 3067116900 created [08:52:32]Thread 3067260260 joined [08:52:32]Waiting for new connection... [08:52:32] Sock 9.Parse request [08:52:32]Sock 9.Check first char [08:52:32]Sock 9.First char is OK [08:52:32]request: POST /json_proto HTTP/1.0 [08:52:32]Method: POST [08:52:32]URL: /json_proto [08:52:32]Method is POST - this is cgi request [08:52:32]url: /json_proto [08:52:32]query_string will be loaded in cgi processing [08:52:32]execute_cgi json_proto POST (null) [08:52:32]execute_cgi path=json_proto method=POST [08:52:32]POST find Content-Length [08:52:32]Host: 172.17.50.3:8080 [08:52:32]Content-Length: 689 [08:52:32]Content-Type: application/json [08:52:32] [08:52:32]POST finish read [08:52:32]Found Content-Length = 689 [08:52:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 45.400, "sum" : 3504.88, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 3504.00, "payments": [ { "type": 0, "sum" : 3504.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:32]execute_script... [08:52: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)2884921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 45.400, "sum" : 3504.88, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 3504.00, "payments": [ { "type": 0, "sum" : 3504.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:32]POST & json_proto [08:52:32]process_json_proto [08:52:32]json parsed OK: [08:52:32]protocol is kg_v1.0 [08:52:32]action value=close_receipt [08:52:32]process_action close_receipt [08:52:32]cmd_close_receipt [08:52:32]MH_GetDate [08:52:32]Write to MH i2c: F0 00 00 50 B4 F3 [08:52:32]Write i2c OK [08:52:32]MH_I2C_Read... [08:52:32]Read from MH i2c: F0 [08:52:32]MH_I2C_Read... [08:52:32]Read from MH i2c: F0 09 00 [08:52:32]MH_I2C_Read... [08:52:32]Read from MH i2c: F0 09 00 50 B4 00 DA C4 14 67 6B 98 1E 66 9C [08:52:32]GetLastDocTimeStamp 1729414028 [08:52:32]current date 1729414362 [08:52:32]FM_GetShiftState [08:52:32]SAM_PROTO_GetShiftState [08:52:32]wFMCommunicate request_size=4 [08:52:32]MH_SAM_APDU [08:52:32]CAPDU: 80 13 01 00 [08:52:32]Write to MH i2c: E2 08 00 51 B4 80 13 01 00 00 00 00 00 82 [08:52:32]Write i2c OK [08:52:32]MH_I2C_Read... [08:52:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:32]Read from MH i2c: E2 [08:52:32]MH_I2C_Read... [08:52:32]Read from MH i2c: E2 0E 00 [08:52:32]MH_I2C_Read... [08:52:32]Read from MH i2c: E2 0E 00 51 B4 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 88 [08:52:32]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [08:52:32]wFMCommunicate OK [08:52:32]SAM_PROTO_GetShiftState done [08:52:32]FM_GetShiftState done [08:52:32]opened in 1729383220 [08:52:32]opened+sec_in_day 1729469620 [08:52:32]quantity*price = 350488 [08:52:32]sum+1 = 350489 [08:52:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.88 ИТОГО: 3504.00 Внесено: 4000.00 СДАЧА: 496.00 НСП 1% : 31.02 НДС 12% : 372.20 Наличными: 3504.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 53 20.10.2024 08:52 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69208 ФПД: 271424177569107 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T085242&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69208&fm=271424177569107&tin=02508201610067®Number=0000000000156251&sum=350400 [08:52:33]StoreToDocumentArchive [08:52:33]shift 193 fd 69208 [08:52:33]save to /storage/0193/doc_00069208 [08:52:33]save last doc name /storage/0193/doc_00069208 to /storage/kkm_last_doc_name [08:52:33]save OK [08:52:33]Clear old archive folders... [08:52:33]ProcessDocumentItem done err = 0, tmpTLVsize=257 [08:52:33]tlvbuf is 004EB250 [08:52:33]SAM_PROTO_ClearQueue [08:52:33]wFMCommunicate request_size=4 [08:52:33]MH_SAM_APDU [08:52:33]CAPDU: 80 09 00 00 [08:52:33]Write to MH i2c: E2 08 00 5E B4 80 09 00 00 00 00 00 00 84 [08:52:33]Write i2c OK [08:52:33]MH_I2C_Read... [08:52:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:52:33]Read from MH i2c: E2 [08:52:33]MH_I2C_Read... [08:52:33]Read from MH i2c: E2 03 00 [08:52:33]MH_I2C_Read... [08:52:33]Read from MH i2c: E2 03 00 5E B4 00 90 00 86 [08:52:33]RAPDU: 90 00 [08:52:33]wFMCommunicate OK [08:52:33]SAM_PROTO_ClearQueue done [08:52:33]KKMCreateOFDPacket [08:52:33]OFDProtocolAddRootSTLVToBuf [08:52:33]FM_MakeSignedData [08:52:33]FM_MakeSignedData [08:52:33]SAM_PROTO_SignData [08:52:33]wFMCommunicate request_size=4 [08:52:33]MH_SAM_APDU [08:52:33]CAPDU: 80 0D 01 02 [08:52:33]Write to MH i2c: E2 08 00 5F B4 80 0D 01 02 00 00 00 00 8C [08:52:33]Write i2c OK [08:52:33]MH_I2C_Read... [08:52:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:52:33]Read from MH i2c: E2 [08:52:33]MH_I2C_Read... [08:52:33]Read from MH i2c: E2 03 00 [08:52:33]MH_I2C_Read... [08:52:33]Read from MH i2c: E2 03 00 5F B4 00 90 00 87 [08:52:33]RAPDU: 90 00 [08:52:33]wFMCommunicate OK [08:52:33]wFMCommunicate request_size=255 [08:52:33]MH_SAM_APDU [08:52:33]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 58 B1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 18 59 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 58 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 91 00 00 00 00 07 04 06 00 C0 58 05 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 DA C4 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 58 0E 01 [08:52:33]Write to MH i2c: E2 02 01 60 B4 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 58 B1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 18 59 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 58 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 91 00 00 00 00 07 04 06 00 C0 58 05 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 DA C4 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 58 0E 01 00 00 90 [08:52:33]Write i2c OK [08:52:33]MH_I2C_Read... [08:52:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:34]Read from MH i2c: E2 [08:52:34]MH_I2C_Read... [08:52:34]Read from MH i2c: E2 03 00 [08:52:34]MH_I2C_Read... [08:52:34]Read from MH i2c: E2 03 00 60 B4 00 90 00 88 [08:52:34]RAPDU: 90 00 [08:52:34]wFMCommunicate OK [08:52:34]wFMCommunicate request_size=16 [08:52:34]MH_SAM_APDU [08:52:34]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 F6 DB DD AF FD 53 [08:52:34]Write to MH i2c: E2 13 00 61 B4 80 0D 02 02 0B 00 00 35 04 06 00 F6 DB DD AF FD 53 00 00 91 [08:52:34]Write i2c OK [08:52:34]MH_I2C_Read... [08:52:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:34]Read from MH i2c: E2 [08:52:34]MH_I2C_Read... [08:52:34]Read from MH i2c: E2 03 00 [08:52:34]MH_I2C_Read... [08:52:34]Read from MH i2c: E2 03 00 61 B4 00 90 00 89 [08:52:34]RAPDU: 90 00 [08:52:34]wFMCommunicate OK [08:52:34]wFMCommunicate request_size=4 [08:52:34]MH_SAM_APDU [08:52:34]CAPDU: 80 0D 03 02 [08:52:34]Write to MH i2c: E2 08 00 62 B4 80 0D 03 02 00 00 00 00 91 [08:52:34]Write i2c OK [08:52:34]MH_I2C_Read... [08:52:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:52:34]Read from MH i2c: E2 [08:52:34]MH_I2C_Read... [08:52:34]Read from MH i2c: E2 0B 00 [08:52:34]MH_I2C_Read... [08:52:34]Read from MH i2c: E2 0B 00 62 B4 00 AE 2D F4 DB 60 55 EA 40 90 00 1B [08:52:34]RAPDU: AE 2D F4 DB 60 55 EA 40 90 00 [08:52:34]wFMCommunicate OK [08:52:34]SAM_PROTO_SignData done [08:52:34]FM_MakeSignedData done [08:52:34]CreateOFDProtocolMessage [08:52:34]wFMCommunicate request_size=4 [08:52:34]MH_SAM_APDU [08:52:34]CAPDU: 80 11 00 00 [08:52:34]Write to MH i2c: E2 08 00 63 B4 80 11 00 00 00 00 00 00 91 [08:52:34]Write i2c OK [08:52:34]MH_I2C_Read... [08:52:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:34]Read from MH i2c: E2 [08:52:34]MH_I2C_Read... [08:52:34]Read from MH i2c: E2 17 00 [08:52:34]MH_I2C_Read... [08:52:34]Read from MH i2c: E2 17 00 63 B4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E3 [08:52:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:52:34]wFMCommunicate OK [08:52:34]CreateOFDProtocolMessage done [08:52:34]OFDSenderStorePacket 69208 [08:52:34]StoreOFDPacket docnum=69208 [08:52:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 02 86 0D 01 DF 23 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 58 B1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 18 59 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 58 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 91 00 00 00 00 07 04 06 00 C0 58 05 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 DA C4 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 58 0E 01 00 35 04 06 00 F6 DB DD AF FD 53 AE 2D F4 DB 60 55 EA 40 [08:52:34]CheckFolder [08:52:34]dirname=/storage/ofd_packets [08:52:34]CheckFolder done [08:52:34]ProducePacketName [08:52:34]name=ofd_packets/00069208 [08:52:34]NVStorageSaveData ofd_packets/00069208 [08:52:34]File name is /storage/ofd_packets/00069208 [08:52:34]Write 307 bytes [08:52:34]NVStorageSaveData done [08:52:34]OFDSenderStorePacket done [08:52:34]KKMCreateOFDPacket done [08:52:34]NVStorageSaveData kkm_last_timestamp [08:52:34]File name is /storage/kkm_last_timestamp [08:52:34]Write 4 bytes [08:52:34]NVStorageSaveData done [08:52:34]ExternCall_PrintAddStr [08:52:34]wPrintStart [08:52:34]Write to MH i2c: 01 00 00 64 B4 18 [08:52:34]Write i2c OK [08:52:34]MH_I2C_Read... [08:52:34]Read from MH i2c: 01 [08:52:34]MH_I2C_Read... [08:52:34]Read from MH i2c: 01 07 00 [08:52:34]MH_I2C_Read... [08:52:34]Read from MH i2c: 01 07 00 64 B4 00 00 00 00 00 FF 0F 2D [08:52:34]RasterBufferAndPrint [08:52:34]line Счет N : (1)2884921 [08:52:34]line ИНН: 02508201610067 [08:52:34]line Контрольно-Кассовый Чек [08:52:34]line ПРОДАЖА [08:52:34]line ТРК (МРК, ГНК) : 21 [08:52:34]line Товар: 2710194240 [08:52:34]line D-ENERGY Дт-К-2 [08:52:34]line 45.400 * 77.20 [08:52:34]line = 3504.88 [08:52:34]line НДС 12% НСП 1% [08:52:34]line > о реализуемом товаре [08:52:34]line ОКРУГЛЕНИЕ: -0.88 [08:52:34]line ИТОГО: 3504.00 [08:52:34]line Внесено: 4000.00 [08:52:34]line СДАЧА: 496.00 [08:52:34]line НСП 1% : 31.02 [08:52:34]line НДС 12% : 372.20 [08:52:34]line Наличными: 3504.00 [08:52:34]line Безнал.: 0.00 [08:52:34]line Место: АЗС № 85 "Партнер Нефть" [08:52:34]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:52:34]line СНО: Общий режим [08:52:34]line Чек 53 20.10.2024 08:52 [08:52:34]line Смена: 193 ФФД: 1.0 [08:52:34]line ЗНМ: 0300000167 [08:52:34]line РНМ: 0000000000156251 [08:52:34]line Версия ККМ: v1.0 [08:52:34]line ФМ: 0000000000963346 [08:52:34]line ФД: 69208 [08:52:34]line ФПД: 271424177569107 [08:52:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T085242&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69208&fm=271424177569107&tin=02508201610067®Number=0000000000156251&sum=350400 [08:52:34]OFD Sender: Processing packet 69208 [packets to send 18, broken 17] [08:52:34]ProducePacketName [08:52:34]name=ofd_packets/00069208 [08:52:34]OFD Sender: To server: pG, [08:52:34]CommunicateWithHost lk.salyk.kg:30040 [08:52:34]ConnectInit lk.salyk.kg [08:52:34]written 0, free lines is 4095 [08:52:34]Connected sock=10 [08:52:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 02 86 0D 01 DF 23 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 58 B1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 18 59 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 58 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 91 00 00 00 00 07 04 06 00 C0 58 05 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 DA C4 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 58 0E 01 00 35 04 06 00 F6 DB DD AF FD 53 AE 2D F4 DB 60 55 EA 40 [08:52:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 C8 0F 47 00 EA 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 58 0E 01 00 F4 03 04 00 81 6E 14 67 B6 04 01 00 00 F0 19 34 7B 86 F0 70 7B [08:52:34]CommunicateWithHost err = 0 [08:52:34]CheckOFDResponse [08:52:34]1017 (14) - 77093643461234 [08:52:34]1041 (16) - 0000000000963346 [08:52:34]1040 (4) - 69208 [08:52:34]1012 (4) - 20.10.2024 02:44 [08:52:34]1206 (1) - 0 [08:52:34]OFD Sender: Remove packet 69208 [08:52:34]ProducePacketName [08:52:34]name=ofd_packets/00069208 [08:52:34]NVStorageDeleteData [08:52:35]Write to MH i2c: 01 00 00 8F B4 43 [08:52:35]Write i2c OK [08:52:35]MH_I2C_Read... [08:52:35]Read from MH i2c: 01 [08:52:35]MH_I2C_Read... [08:52:35]Read from MH i2c: 01 07 00 [08:52:35]MH_I2C_Read... [08:52:35]Read from MH i2c: 01 07 00 8F B4 00 00 00 00 00 02 0D 59 [08:52:35]RasterBufferAndPrint [08:52:35]line [08:52:35]line [08:52:35]line [08:52:35]line [08:52:35]line [08:52:35]written 0, free lines is 3337 [08:52:35]MH_Cut [08:52:35]Write to MH i2c: D1 01 00 96 B4 01 1C [08:52:35]Write i2c OK [08:52:35]MH_I2C_Read... [08:52:35]Read from MH i2c: D1 [08:52:35]MH_I2C_Read... [08:52:35]Read from MH i2c: D1 01 00 [08:52:35]MH_I2C_Read... [08:52:35]Read from MH i2c: D1 01 00 96 B4 00 1B [08:52:35]Write to MH i2c: 01 00 00 97 B4 4B [08:52:35]Write i2c OK [08:52:35]MH_I2C_Read... [08:52:35]OFD Sender: No OFD packet to send [08:52:35]*** Cut start [08:52:35]*** Partial cut [08:52:35]*** CUTSNS_PIN = 1 [08:52:35]*** CUTSNS_PIN = 0 [08:52:36]*** Brake cut motor [08:52:36]Read from MH i2c: 01 [08:52:36]MH_I2C_Read... [08:52:36]*** Stop cut motor [08:52:36]*** Cut end [08:52:36]Read from MH i2c: 01 07 00 [08:52:36]MH_I2C_Read... [08:52:36]Read from MH i2c: 01 07 00 97 B4 00 00 00 00 00 FF 0F 60 [08:52:36]process_action close_receipt done [08:52:36]requested_data is exist [08:52:36]produce_requested_data [08:52:36]requested_item fm.sn is exist - process it [08:52:36]wFMCommunicate request_size=4 [08:52:36]MH_SAM_APDU [08:52:36]CAPDU: 80 11 00 00 [08:52:36]Write to MH i2c: E2 08 00 98 B4 80 11 00 00 00 00 00 00 C6 [08:52:36]Write i2c OK [08:52:36]MH_I2C_Read... [08:52:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:36]Read from MH i2c: E2 [08:52:36]MH_I2C_Read... [08:52:36]Read from MH i2c: E2 17 00 [08:52:36]MH_I2C_Read... [08:52:36]Read from MH i2c: E2 17 00 98 B4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 18 [08:52:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:52:36]wFMCommunicate OK [08:52:36]requested_item fd.num is exist - process it [08:52:36]SAM_PROTO_GetFieldsCounters [08:52:36]wFMCommunicate request_size=4 [08:52:36]MH_SAM_APDU [08:52:36]CAPDU: 80 13 00 00 [08:52:36]Write to MH i2c: E2 08 00 99 B4 80 13 00 00 00 00 00 00 C9 [08:52:36]Write i2c OK [08:52:36]MH_I2C_Read... [08:52:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:52:36]Read from MH i2c: E2 [08:52:36]MH_I2C_Read... [08:52:36]Read from MH i2c: E2 62 00 [08:52:36]MH_I2C_Read... [08:52:36]Read from MH i2c: E2 62 00 99 B4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 58 0E 01 00 0E 04 04 00 C1 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 AB [08:52:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 58 0E 01 00 0E 04 04 00 C1 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 [08:52:36]wFMCommunicate OK [08:52:36]SAM_PROTO_GetFieldsCounters done [08:52:36]requested_item shift.num is exist - process it [08:52:36]requested_item shift.opened is exist - process it [08:52:36]req_shift_opened [08:52:36]FM_GetShiftState [08:52:36]SAM_PROTO_GetShiftState [08:52:36]wFMCommunicate request_size=4 [08:52:36]MH_SAM_APDU [08:52:36]CAPDU: 80 13 01 00 [08:52:36]Write to MH i2c: E2 08 00 9A B4 80 13 01 00 00 00 00 00 CB [08:52:36]Write i2c OK [08:52:36]MH_I2C_Read... [08:52:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:36]Read from MH i2c: E2 [08:52:36]MH_I2C_Read... [08:52:36]Read from MH i2c: E2 0E 00 [08:52:36]MH_I2C_Read... [08:52:36]Read from MH i2c: E2 0E 00 9A B4 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 D1 [08:52:36]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [08:52:36]wFMCommunicate OK [08:52:36]SAM_PROTO_GetShiftState done [08:52:36]FM_GetShiftState done [08:52:36]req_shift_opened done [08:52:36]requested_item shift.open_date is exist - process it [08:52:36]req_shift_open_date [08:52:36]req_shift_open_date done [08:52:36]produce_requested_data done [08:52:36]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69208,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [08:52:36]process_action_free close_receipt [08:52:36]json_value_free [08:52:36]json_value_free done [08:52:36]process_json_proto returns [08:52:36]Send response to host [08:52:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69208,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [08:52:36]free response buf [08:52:36]execute_script done [08:52:36]execute_script returns [08:52:36]free content buf [08:52:36]Sock 9.Close socket [08:52:36]Sock 9.Thread stoped [08:52:37]accept exits with 8 [08:52:37]New connection [08:52:37]New thread 3067260260 created [08:52:37]Thread 3067116900 joined [08:52:37]Waiting for new connection... [08:52:37] Sock 8.Parse request [08:52:37]Sock 8.Check first char [08:52:37]Sock 8.First char is OK [08:52:37]request: POST /json_proto HTTP/1.0 [08:52:37]Method: POST [08:52:37]URL: /json_proto [08:52:37]Method is POST - this is cgi request [08:52:37]url: /json_proto [08:52:37]query_string will be loaded in cgi processing [08:52:37]execute_cgi json_proto POST (null) [08:52:37]execute_cgi path=json_proto method=POST [08:52:37]POST find Content-Length [08:52:37]Host: 172.17.50.3:8080 [08:52:37]Content-Length: 689 [08:52:37]Content-Type: application/json [08:52:37] [08:52:37]POST finish read [08:52:37]Found Content-Length = 689 [08:52:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:37]execute_script... [08:52:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:37]POST & json_proto [08:52:37]process_json_proto [08:52:37]json parsed OK: [08:52:37]protocol is kg_v1.0 [08:52:37]action value=close_receipt [08:52:37]process_action close_receipt [08:52:37]cmd_close_receipt [08:52:37]MH_GetDate [08:52:37]Write to MH i2c: F0 00 00 9B B4 3E [08:52:37]Write i2c OK [08:52:37]MH_I2C_Read... [08:52:37]Read from MH i2c: F0 [08:52:37]MH_I2C_Read... [08:52:37]Read from MH i2c: F0 09 00 [08:52:37]MH_I2C_Read... [08:52:37]Read from MH i2c: F0 09 00 9B B4 00 DE C4 14 67 6B 98 1E 66 EB [08:52:37]GetLastDocTimeStamp 1729414362 [08:52:37]current date 1729414366 [08:52:37]FM_GetShiftState [08:52:37]SAM_PROTO_GetShiftState [08:52:37]wFMCommunicate request_size=4 [08:52:37]MH_SAM_APDU [08:52:37]CAPDU: 80 13 01 00 [08:52:37]Write to MH i2c: E2 08 00 9C B4 80 13 01 00 00 00 00 00 CD [08:52:37]Write i2c OK [08:52:37]MH_I2C_Read... [08:52:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:37]Read from MH i2c: E2 [08:52:37]MH_I2C_Read... [08:52:37]Read from MH i2c: E2 0E 00 [08:52:37]MH_I2C_Read... [08:52:37]Read from MH i2c: E2 0E 00 9C B4 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 D3 [08:52:37]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [08:52:37]wFMCommunicate OK [08:52:37]SAM_PROTO_GetShiftState done [08:52:37]FM_GetShiftState done [08:52:37]opened in 1729383220 [08:52:37]opened+sec_in_day 1729469620 [08:52:37]quantity*price = 200025 [08:52:37]sum+1 = 200026 [08:52:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 54 20.10.2024 08:52 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69209 ФПД: 161161686620242 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T085246&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69209&fm=161161686620242&tin=02508201610067®Number=0000000000156251&sum=200000 [08:52:38]StoreToDocumentArchive [08:52:38]shift 193 fd 69209 [08:52:38]save to /storage/0193/doc_00069209 [08:52:38]save last doc name /storage/0193/doc_00069209 to /storage/kkm_last_doc_name [08:52:38]save OK [08:52:38]Clear old archive folders... [08:52:38]ProcessDocumentItem done err = 0, tmpTLVsize=257 [08:52:38]tlvbuf is 004FA0A0 [08:52:38]SAM_PROTO_ClearQueue [08:52:38]wFMCommunicate request_size=4 [08:52:38]MH_SAM_APDU [08:52:38]CAPDU: 80 09 00 00 [08:52:38]Write to MH i2c: E2 08 00 A9 B4 80 09 00 00 00 00 00 00 CF [08:52:38]Write i2c OK [08:52:38]MH_I2C_Read... [08:52:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:52:38]Read from MH i2c: E2 [08:52:38]MH_I2C_Read... [08:52:38]Read from MH i2c: E2 03 00 [08:52:38]MH_I2C_Read... [08:52:38]Read from MH i2c: E2 03 00 A9 B4 00 90 00 D1 [08:52:38]RAPDU: 90 00 [08:52:38]wFMCommunicate OK [08:52:38]SAM_PROTO_ClearQueue done [08:52:38]KKMCreateOFDPacket [08:52:38]OFDProtocolAddRootSTLVToBuf [08:52:38]FM_MakeSignedData [08:52:38]FM_MakeSignedData [08:52:38]SAM_PROTO_SignData [08:52:38]wFMCommunicate request_size=4 [08:52:38]MH_SAM_APDU [08:52:38]CAPDU: 80 0D 01 02 [08:52:38]Write to MH i2c: E2 08 00 AA B4 80 0D 01 02 00 00 00 00 D7 [08:52:38]Write i2c OK [08:52:38]MH_I2C_Read... [08:52:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:52:38]Read from MH i2c: E2 [08:52:38]MH_I2C_Read... [08:52:38]Read from MH i2c: E2 03 00 [08:52:38]MH_I2C_Read... [08:52:38]Read from MH i2c: E2 03 00 AA B4 00 90 00 D2 [08:52:38]RAPDU: 90 00 [08:52:38]wFMCommunicate OK [08:52:38]wFMCommunicate request_size=255 [08:52:38]MH_SAM_APDU [08:52:38]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 DE C4 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 59 0E 01 [08:52:38]Write to MH i2c: E2 02 01 AB B4 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 DE C4 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 59 0E 01 00 00 E9 [08:52:38]Write i2c OK [08:52:38]MH_I2C_Read... [08:52:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:38]Read from MH i2c: E2 [08:52:38]MH_I2C_Read... [08:52:38]Read from MH i2c: E2 03 00 [08:52:38]MH_I2C_Read... [08:52:38]Read from MH i2c: E2 03 00 AB B4 00 90 00 D3 [08:52:38]RAPDU: 90 00 [08:52:39]wFMCommunicate OK [08:52:39]wFMCommunicate request_size=16 [08:52:39]MH_SAM_APDU [08:52:39]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 92 93 61 15 18 52 [08:52:39]Write to MH i2c: E2 13 00 AC B4 80 0D 02 02 0B 00 00 35 04 06 00 92 93 61 15 18 52 00 00 34 [08:52:39]Write i2c OK [08:52:39]MH_I2C_Read... [08:52:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:39]Read from MH i2c: E2 [08:52:39]MH_I2C_Read... [08:52:39]Read from MH i2c: E2 03 00 [08:52:39]MH_I2C_Read... [08:52:39]Read from MH i2c: E2 03 00 AC B4 00 90 00 D4 [08:52:39]RAPDU: 90 00 [08:52:39]wFMCommunicate OK [08:52:39]wFMCommunicate request_size=4 [08:52:39]MH_SAM_APDU [08:52:39]CAPDU: 80 0D 03 02 [08:52:39]Write to MH i2c: E2 08 00 AD B4 80 0D 03 02 00 00 00 00 DC [08:52:39]Write i2c OK [08:52:39]MH_I2C_Read... [08:52:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:52:39]Read from MH i2c: E2 [08:52:39]MH_I2C_Read... [08:52:39]Read from MH i2c: E2 0B 00 [08:52:39]MH_I2C_Read... [08:52:39]Read from MH i2c: E2 0B 00 AD B4 00 0C 79 F5 82 8A 00 CD D4 90 00 04 [08:52:39]RAPDU: 0C 79 F5 82 8A 00 CD D4 90 00 [08:52:39]wFMCommunicate OK [08:52:39]SAM_PROTO_SignData done [08:52:39]FM_MakeSignedData done [08:52:39]CreateOFDProtocolMessage [08:52:39]wFMCommunicate request_size=4 [08:52:39]MH_SAM_APDU [08:52:39]CAPDU: 80 11 00 00 [08:52:39]Write to MH i2c: E2 08 00 AE B4 80 11 00 00 00 00 00 00 DC [08:52:39]Write i2c OK [08:52:39]MH_I2C_Read... [08:52:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:39]Read from MH i2c: E2 [08:52:39]MH_I2C_Read... [08:52:39]Read from MH i2c: E2 17 00 [08:52:39]MH_I2C_Read... [08:52:39]Read from MH i2c: E2 17 00 AE B4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2E [08:52:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:52:39]wFMCommunicate OK [08:52:39]CreateOFDProtocolMessage done [08:52:39]OFDSenderStorePacket 69209 [08:52:39]StoreOFDPacket docnum=69209 [08:52:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 1B B4 0D 01 B8 6F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 DE C4 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 59 0E 01 00 35 04 06 00 92 93 61 15 18 52 0C 79 F5 82 8A 00 CD D4 [08:52:39]CheckFolder [08:52:39]dirname=/storage/ofd_packets [08:52:39]CheckFolder done [08:52:39]ProducePacketName [08:52:39]name=ofd_packets/00069209 [08:52:39]NVStorageSaveData ofd_packets/00069209 [08:52:39]File name is /storage/ofd_packets/00069209 [08:52:39]Write 307 bytes [08:52:39]NVStorageSaveData done [08:52:39]OFDSenderStorePacket done [08:52:39]KKMCreateOFDPacket done [08:52:39]NVStorageSaveData kkm_last_timestamp [08:52:39]File name is /storage/kkm_last_timestamp [08:52:39]Write 4 bytes [08:52:39]NVStorageSaveData done [08:52:39]ExternCall_PrintAddStr [08:52:39]wPrintStart [08:52:39]Write to MH i2c: 01 00 00 AF B4 63 [08:52:39]Write i2c OK [08:52:39]MH_I2C_Read... [08:52:39]Read from MH i2c: 01 [08:52:39]MH_I2C_Read... [08:52:39]Read from MH i2c: 01 07 00 [08:52:39]MH_I2C_Read... [08:52:39]Read from MH i2c: 01 07 00 AF B4 00 00 00 00 00 FF 0F 78 [08:52:39]RasterBufferAndPrint [08:52:39]line Счет N : (1)2884922 [08:52:39]line ИНН: 02508201610067 [08:52:39]line Контрольно-Кассовый Чек [08:52:39]line ПРОДАЖА [08:52:39]line ТРК (МРК, ГНК) : 31 [08:52:39]line Товар: 2710194240 [08:52:39]line D-ENERGY Дт-К-2 [08:52:39]line 25.910 * 77.20 [08:52:39]line = 2000.25 [08:52:39]line НДС 12% НСП 1% [08:52:39]line > о реализуемом товаре [08:52:39]line ОКРУГЛЕНИЕ: -0.25 [08:52:39]line ИТОГО: 2000.00 [08:52:39]line Внесено: 2000.00 [08:52:39]line СДАЧА: 0.00 [08:52:39]line НСП 1% : 17.70 [08:52:39]line НДС 12% : 212.42 [08:52:39]line Наличными: 2000.00 [08:52:39]line Безнал.: 0.00 [08:52:39]line Место: АЗС № 85 "Партнер Нефть" [08:52:39]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:52:39]line СНО: Общий режим [08:52:39]line Чек 54 20.10.2024 08:52 [08:52:39]line Смена: 193 ФФД: 1.0 [08:52:39]line ЗНМ: 0300000167 [08:52:39]line РНМ: 0000000000156251 [08:52:39]line Версия ККМ: v1.0 [08:52:39]line ФМ: 0000000000963346 [08:52:39]line ФД: 69209 [08:52:39]line ФПД: 161161686620242 [08:52:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T085246&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69209&fm=161161686620242&tin=02508201610067®Number=0000000000156251&sum=200000 [08:52:39]OFD Sender: Processing packet 69209 [packets to send 18, broken 17] [08:52:39]ProducePacketName [08:52:39]name=ofd_packets/00069209 [08:52:39]OFD Sender: To server: pG, [08:52:39]CommunicateWithHost lk.salyk.kg:30040 [08:52:39]ConnectInit lk.salyk.kg [08:52:39]written 0, free lines is 4095 [08:52:39]Connected sock=10 [08:52:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 1B B4 0D 01 B8 6F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 DE C4 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 59 0E 01 00 35 04 06 00 92 93 61 15 18 52 0C 79 F5 82 8A 00 CD D4 [08:52:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 A0 6B 47 00 BB 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 59 0E 01 00 F4 03 04 00 86 6E 14 67 B6 04 01 00 00 46 30 27 FB 41 1B 06 3A [08:52:40]CommunicateWithHost err = 0 [08:52:40]CheckOFDResponse [08:52:40]1017 (14) - 77093643461234 [08:52:40]1041 (16) - 0000000000963346 [08:52:40]1040 (4) - 69209 [08:52:40]1012 (4) - 20.10.2024 02:44 [08:52:40]1206 (1) - 0 [08:52:40]OFD Sender: Remove packet 69209 [08:52:40]ProducePacketName [08:52:40]name=ofd_packets/00069209 [08:52:40]NVStorageDeleteData [08:52:40]Write to MH i2c: 01 00 00 DA B4 8E [08:52:40]Write i2c OK [08:52:40]MH_I2C_Read... [08:52:40]Read from MH i2c: 01 [08:52:40]MH_I2C_Read... [08:52:40]Read from MH i2c: 01 07 00 [08:52:40]MH_I2C_Read... [08:52:40]Read from MH i2c: 01 07 00 DA B4 00 00 00 00 00 09 0D AB [08:52:40]RasterBufferAndPrint [08:52:40]line [08:52:40]line [08:52:40]line [08:52:40]line [08:52:40]line [08:52:40]written 0, free lines is 3352 [08:52:40]MH_Cut [08:52:40]Write to MH i2c: D1 01 00 E1 B4 01 67 [08:52:40]Write i2c OK [08:52:40]MH_I2C_Read... [08:52:40]Read from MH i2c: D1 [08:52:40]MH_I2C_Read... [08:52:40]Read from MH i2c: D1 01 00 [08:52:40]MH_I2C_Read... [08:52:40]Read from MH i2c: D1 01 00 E1 B4 00 66 [08:52:40]Write to MH i2c: 01 00 00 E2 B4 96 [08:52:40]Write i2c OK [08:52:40]MH_I2C_Read... [08:52:40]OFD Sender: No OFD packet to send [08:52:40]*** Cut start [08:52:40]*** Partial cut [08:52:40]*** CUTSNS_PIN = 1 [08:52:40]*** CUTSNS_PIN = 0 [08:52:41]*** Brake cut motor [08:52:41]Read from MH i2c: 01 [08:52:41]MH_I2C_Read... [08:52:41]*** Stop cut motor [08:52:41]*** Cut end [08:52:41]Read from MH i2c: 01 07 00 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: 01 07 00 E2 B4 00 00 00 00 00 FF 0F AB [08:52:41]process_action close_receipt done [08:52:41]requested_data is exist [08:52:41]produce_requested_data [08:52:41]requested_item fm.sn is exist - process it [08:52:41]wFMCommunicate request_size=4 [08:52:41]MH_SAM_APDU [08:52:41]CAPDU: 80 11 00 00 [08:52:41]Write to MH i2c: E2 08 00 E3 B4 80 11 00 00 00 00 00 00 11 [08:52:41]Write i2c OK [08:52:41]MH_I2C_Read... [08:52:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:41]Read from MH i2c: E2 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 17 00 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 17 00 E3 B4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 63 [08:52:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:52:41]wFMCommunicate OK [08:52:41]requested_item fd.num is exist - process it [08:52:41]SAM_PROTO_GetFieldsCounters [08:52:41]wFMCommunicate request_size=4 [08:52:41]MH_SAM_APDU [08:52:41]CAPDU: 80 13 00 00 [08:52:41]Write to MH i2c: E2 08 00 E4 B4 80 13 00 00 00 00 00 00 14 [08:52:41]Write i2c OK [08:52:41]MH_I2C_Read... [08:52:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:52:41]Read from MH i2c: E2 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 62 00 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 62 00 E4 B4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 59 0E 01 00 0E 04 04 00 C1 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 FA [08:52:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 59 0E 01 00 0E 04 04 00 C1 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 [08:52:41]wFMCommunicate OK [08:52:41]SAM_PROTO_GetFieldsCounters done [08:52:41]requested_item shift.num is exist - process it [08:52:41]requested_item shift.opened is exist - process it [08:52:41]req_shift_opened [08:52:41]FM_GetShiftState [08:52:41]SAM_PROTO_GetShiftState [08:52:41]wFMCommunicate request_size=4 [08:52:41]MH_SAM_APDU [08:52:41]CAPDU: 80 13 01 00 [08:52:41]Write to MH i2c: E2 08 00 E5 B4 80 13 01 00 00 00 00 00 16 [08:52:41]Write i2c OK [08:52:41]MH_I2C_Read... [08:52:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:41]Read from MH i2c: E2 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 0E 00 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 0E 00 E5 B4 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 1C [08:52:41]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [08:52:41]wFMCommunicate OK [08:52:41]SAM_PROTO_GetShiftState done [08:52:41]FM_GetShiftState done [08:52:41]req_shift_opened done [08:52:41]requested_item shift.open_date is exist - process it [08:52:41]req_shift_open_date [08:52:41]req_shift_open_date done [08:52:41]produce_requested_data done [08:52:41]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69209,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [08:52:41]process_action_free close_receipt [08:52:41]json_value_free [08:52:41]json_value_free done [08:52:41]process_json_proto returns [08:52:41]Send response to host [08:52:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69209,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [08:52:41]free response buf [08:52:41]execute_script done [08:52:41]execute_script returns [08:52:41]free content buf [08:52:41]Sock 8.Close socket [08:52:41]Sock 8.Thread stoped [08:52:45]OFD Sender: No OFD packet to send [08:52:50]OFD Sender: No OFD packet to send [08:52:55]OFD Sender: No OFD packet to send [08:53:00]OFD Sender: No OFD packet to send [08:53:05]OFD Sender: No OFD packet to send [08:53:10]OFD Sender: No OFD packet to send [08:53:15]OFD Sender: No OFD packet to send [08:53:19]accept exits with 9 [08:53:19]New connection [08:53:19]New thread 3067116900 created [08:53:19]Thread 3067260260 joined [08:53:19]Waiting for new connection... [08:53:19] Sock 9.Parse request [08:53:19]Sock 9.Check first char [08:53:19]Sock 9.First char is OK [08:53:19]request: POST /json_proto HTTP/1.0 [08:53:19]Method: POST [08:53:19]URL: /json_proto [08:53:19]Method is POST - this is cgi request [08:53:19]url: /json_proto [08:53:19]query_string will be loaded in cgi processing [08:53:19]execute_cgi json_proto POST (null) [08:53:19]execute_cgi path=json_proto method=POST [08:53:19]POST find Content-Length [08:53:19]Host: 172.17.50.3:8080 [08:53:19]Content-Length: 683 [08:53:19]Content-Type: application/json [08:53:19] [08:53:19]POST finish read [08:53:19]Found Content-Length = 683 [08:53:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:19]execute_script... [08:53:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:19]POST & json_proto [08:53:19]process_json_proto [08:53:19]json parsed OK: [08:53:19]protocol is kg_v1.0 [08:53:19]action value=close_receipt [08:53:19]process_action close_receipt [08:53:19]cmd_close_receipt [08:53:19]MH_GetDate [08:53:19]Write to MH i2c: F0 00 00 E6 B4 89 [08:53:19]Write i2c OK [08:53:19]MH_I2C_Read... [08:53:19]Read from MH i2c: F0 [08:53:19]MH_I2C_Read... [08:53:19]Read from MH i2c: F0 09 00 [08:53:19]MH_I2C_Read... [08:53:19]Read from MH i2c: F0 09 00 E6 B4 00 09 C5 14 67 6B 98 1E 66 62 [08:53:19]GetLastDocTimeStamp 1729414366 [08:53:19]current date 1729414409 [08:53:19]FM_GetShiftState [08:53:19]SAM_PROTO_GetShiftState [08:53:19]wFMCommunicate request_size=4 [08:53:19]MH_SAM_APDU [08:53:19]CAPDU: 80 13 01 00 [08:53:19]Write to MH i2c: E2 08 00 E7 B4 80 13 01 00 00 00 00 00 18 [08:53:19]Write i2c OK [08:53:19]MH_I2C_Read... [08:53:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:19]Read from MH i2c: E2 [08:53:19]MH_I2C_Read... [08:53:19]Read from MH i2c: E2 0E 00 [08:53:19]MH_I2C_Read... [08:53:19]Read from MH i2c: E2 0E 00 E7 B4 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 1E [08:53:19]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [08:53:19]wFMCommunicate OK [08:53:19]SAM_PROTO_GetShiftState done [08:53:19]FM_GetShiftState done [08:53:19]opened in 1729383220 [08:53:19]opened+sec_in_day 1729469620 [08:53:19]quantity*price = 100015 [08:53:19]sum+1 = 100017 [08:53:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 55 20.10.2024 08:53 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69210 ФПД: 246006345745015 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T085329&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69210&fm=246006345745015&tin=02508201610067®Number=0000000000156251&sum=100000 [08:53:20]StoreToDocumentArchive [08:53:20]shift 193 fd 69210 [08:53:20]save to /storage/0193/doc_00069210 [08:53:20]save last doc name /storage/0193/doc_00069210 to /storage/kkm_last_doc_name [08:53:20]save OK [08:53:20]Clear old archive folders... [08:53:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:53:20]tlvbuf is 00687270 [08:53:20]SAM_PROTO_ClearQueue [08:53:20]wFMCommunicate request_size=4 [08:53:20]MH_SAM_APDU [08:53:20]CAPDU: 80 09 00 00 [08:53:20]Write to MH i2c: E2 08 00 F4 B4 80 09 00 00 00 00 00 00 1A [08:53:20]Write i2c OK [08:53:20]MH_I2C_Read... [08:53:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:53:20]Read from MH i2c: E2 [08:53:20]MH_I2C_Read... [08:53:20]Read from MH i2c: E2 03 00 [08:53:20]MH_I2C_Read... [08:53:20]Read from MH i2c: E2 03 00 F4 B4 00 90 00 1C [08:53:20]RAPDU: 90 00 [08:53:20]wFMCommunicate OK [08:53:20]SAM_PROTO_ClearQueue done [08:53:20]KKMCreateOFDPacket [08:53:20]OFDProtocolAddRootSTLVToBuf [08:53:20]FM_MakeSignedData [08:53:20]FM_MakeSignedData [08:53:20]SAM_PROTO_SignData [08:53:20]wFMCommunicate request_size=4 [08:53:20]MH_SAM_APDU [08:53:20]CAPDU: 80 0D 01 02 [08:53:20]Write to MH i2c: E2 08 00 F5 B4 80 0D 01 02 00 00 00 00 22 [08:53:20]Write i2c OK [08:53:20]MH_I2C_Read... [08:53:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:53:20]Read from MH i2c: E2 [08:53:20]MH_I2C_Read... [08:53:20]Read from MH i2c: E2 03 00 [08:53:20]MH_I2C_Read... [08:53:20]Read from MH i2c: E2 03 00 F5 B4 00 90 00 1D [08:53:20]RAPDU: 90 00 [08:53:20]wFMCommunicate OK [08:53:20]wFMCommunicate request_size=255 [08:53:20]MH_SAM_APDU [08:53:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 09 C5 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5A 0E 01 00 35 04 06 00 DF [08:53:20]Write to MH i2c: E2 02 01 F6 B4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 09 C5 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5A 0E 01 00 35 04 06 00 DF 00 00 2E [08:53:20]Write i2c OK [08:53:20]MH_I2C_Read... [08:53:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:21]Read from MH i2c: E2 [08:53:21]MH_I2C_Read... [08:53:21]Read from MH i2c: E2 03 00 [08:53:21]MH_I2C_Read... [08:53:21]Read from MH i2c: E2 03 00 F6 B4 00 90 00 1E [08:53:21]RAPDU: 90 00 [08:53:21]wFMCommunicate OK [08:53:21]wFMCommunicate request_size=10 [08:53:21]MH_SAM_APDU [08:53:21]CAPDU: 80 0D 02 02 05 BD D0 D9 C2 77 [08:53:21]Write to MH i2c: E2 0D 00 F7 B4 80 0D 02 02 05 00 BD D0 D9 C2 77 00 00 CE [08:53:21]Write i2c OK [08:53:21]MH_I2C_Read... [08:53:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:21]Read from MH i2c: E2 [08:53:21]MH_I2C_Read... [08:53:21]Read from MH i2c: E2 03 00 [08:53:21]MH_I2C_Read... [08:53:21]Read from MH i2c: E2 03 00 F7 B4 00 90 00 1F [08:53:21]RAPDU: 90 00 [08:53:21]wFMCommunicate OK [08:53:21]wFMCommunicate request_size=4 [08:53:21]MH_SAM_APDU [08:53:21]CAPDU: 80 0D 03 02 [08:53:21]Write to MH i2c: E2 08 00 F8 B4 80 0D 03 02 00 00 00 00 27 [08:53:21]Write i2c OK [08:53:21]MH_I2C_Read... [08:53:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:53:21]Read from MH i2c: E2 [08:53:21]MH_I2C_Read... [08:53:21]Read from MH i2c: E2 0B 00 [08:53:21]MH_I2C_Read... [08:53:21]Read from MH i2c: E2 0B 00 F8 B4 00 EA 22 42 A8 2C 1F 06 2E 90 00 9D [08:53:21]RAPDU: EA 22 42 A8 2C 1F 06 2E 90 00 [08:53:21]wFMCommunicate OK [08:53:21]SAM_PROTO_SignData done [08:53:21]FM_MakeSignedData done [08:53:21]CreateOFDProtocolMessage [08:53:21]wFMCommunicate request_size=4 [08:53:21]MH_SAM_APDU [08:53:21]CAPDU: 80 11 00 00 [08:53:21]Write to MH i2c: E2 08 00 F9 B4 80 11 00 00 00 00 00 00 27 [08:53:21]Write i2c OK [08:53:21]MH_I2C_Read... [08:53:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:21]Read from MH i2c: E2 [08:53:21]MH_I2C_Read... [08:53:21]Read from MH i2c: E2 17 00 [08:53:21]MH_I2C_Read... [08:53:21]Read from MH i2c: E2 17 00 F9 B4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 79 [08:53:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:53:21]wFMCommunicate OK [08:53:21]CreateOFDProtocolMessage done [08:53:21]OFDSenderStorePacket 69210 [08:53:21]StoreOFDPacket docnum=69210 [08:53:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 7C B8 07 01 FC 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 09 C5 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5A 0E 01 00 35 04 06 00 DF BD D0 D9 C2 77 EA 22 42 A8 2C 1F 06 2E [08:53:21]CheckFolder [08:53:21]dirname=/storage/ofd_packets [08:53:21]CheckFolder done [08:53:21]ProducePacketName [08:53:21]name=ofd_packets/00069210 [08:53:21]NVStorageSaveData ofd_packets/00069210 [08:53:21]File name is /storage/ofd_packets/00069210 [08:53:21]Write 301 bytes [08:53:21]NVStorageSaveData done [08:53:21]OFDSenderStorePacket done [08:53:21]KKMCreateOFDPacket done [08:53:21]NVStorageSaveData kkm_last_timestamp [08:53:21]File name is /storage/kkm_last_timestamp [08:53:21]Write 4 bytes [08:53:21]NVStorageSaveData done [08:53:21]ExternCall_PrintAddStr [08:53:21]wPrintStart [08:53:21]Write to MH i2c: 01 00 00 FA B4 AE [08:53:21]Write i2c OK [08:53:21]MH_I2C_Read... [08:53:21]Read from MH i2c: 01 [08:53:21]MH_I2C_Read... [08:53:21]Read from MH i2c: 01 07 00 [08:53:21]MH_I2C_Read... [08:53:21]Read from MH i2c: 01 07 00 FA B4 00 00 00 00 00 FF 0F C3 [08:53:21]RasterBufferAndPrint [08:53:21]line Счет N : (1)2884923 [08:53:21]line ИНН: 02508201610067 [08:53:21]line Контрольно-Кассовый Чек [08:53:21]line ПРОДАЖА [08:53:21]line ТРК (МРК, ГНК) : 12 [08:53:21]line Товар: 2710124130 [08:53:21]line Аи-92-К-5 [08:53:21]line 14.950 * 66.90 [08:53:21]line = 1000.16 [08:53:21]line НДС 12% НСП 1% [08:53:21]line > о реализуемом товаре [08:53:21]line ОКРУГЛЕНИЕ: -0.16 [08:53:21]line ИТОГО: 1000.00 [08:53:21]line Внесено: 1000.00 [08:53:21]line СДАЧА: 0.00 [08:53:21]line НСП 1% : 8.85 [08:53:21]line НДС 12% : 106.21 [08:53:21]line Наличными: 1000.00 [08:53:21]line Безнал.: 0.00 [08:53:21]line Место: АЗС № 85 "Партнер Нефть" [08:53:21]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:53:21]line СНО: Общий режим [08:53:21]line Чек 55 20.10.2024 08:53 [08:53:21]line Смена: 193 ФФД: 1.0 [08:53:21]line ЗНМ: 0300000167 [08:53:21]line РНМ: 0000000000156251 [08:53:21]line Версия ККМ: v1.0 [08:53:21]line ФМ: 0000000000963346 [08:53:21]line ФД: 69210 [08:53:21]line ФПД: 246006345745015 [08:53:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T085329&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69210&fm=246006345745015&tin=02508201610067®Number=0000000000156251&sum=100000 [08:53:21]OFD Sender: Processing packet 69210 [packets to send 18, broken 17] [08:53:21]ProducePacketName [08:53:21]name=ofd_packets/00069210 [08:53:21]OFD Sender: To server: pG, [08:53:21]CommunicateWithHost lk.salyk.kg:30040 [08:53:21]ConnectInit lk.salyk.kg [08:53:21]written 0, free lines is 4095 [08:53:21]Connected sock=10 [08:53:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 7C B8 07 01 FC 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 09 C5 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5A 0E 01 00 35 04 06 00 DF BD D0 D9 C2 77 EA 22 42 A8 2C 1F 06 2E [08:53:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 C0 B3 47 00 E5 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5A 0E 01 00 F4 03 04 00 B0 6E 14 67 B6 04 01 00 00 9E AA 06 D3 48 A4 5E 90 [08:53:22]CommunicateWithHost err = 0 [08:53:22]CheckOFDResponse [08:53:22]1017 (14) - 77093643461234 [08:53:22]1041 (16) - 0000000000963346 [08:53:22]1040 (4) - 69210 [08:53:22]1012 (4) - 20.10.2024 02:45 [08:53:22]1206 (1) - 0 [08:53:22]OFD Sender: Remove packet 69210 [08:53:22]ProducePacketName [08:53:22]name=ofd_packets/00069210 [08:53:22]NVStorageDeleteData [08:53:22]Write to MH i2c: 01 00 00 25 B5 DA [08:53:22]Write i2c OK [08:53:22]MH_I2C_Read... [08:53:22]Read from MH i2c: 01 [08:53:22]MH_I2C_Read... [08:53:22]Read from MH i2c: 01 07 00 [08:53:22]MH_I2C_Read... [08:53:22]Read from MH i2c: 01 07 00 25 B5 00 00 00 00 00 00 0D EE [08:53:22]RasterBufferAndPrint [08:53:22]line [08:53:22]line [08:53:22]line [08:53:22]line [08:53:22]line [08:53:22]written 0, free lines is 3337 [08:53:22]MH_Cut [08:53:22]Write to MH i2c: D1 01 00 2C B5 01 B3 [08:53:22]Write i2c OK [08:53:22]MH_I2C_Read... [08:53:22]Read from MH i2c: D1 [08:53:22]MH_I2C_Read... [08:53:22]Read from MH i2c: D1 01 00 [08:53:22]MH_I2C_Read... [08:53:22]Read from MH i2c: D1 01 00 2C B5 00 B2 [08:53:22]Write to MH i2c: 01 00 00 2D B5 E2 [08:53:22]Write i2c OK [08:53:22]MH_I2C_Read... [08:53:22]OFD Sender: No OFD packet to send [08:53:22]*** Cut start [08:53:22]*** Partial cut [08:53:22]*** CUTSNS_PIN = 1 [08:53:22]*** CUTSNS_PIN = 0 [08:53:23]*** Brake cut motor [08:53:23]Read from MH i2c: 01 [08:53:23]MH_I2C_Read... [08:53:23]*** Stop cut motor [08:53:23]*** Cut end [08:53:23]Read from MH i2c: 01 07 00 [08:53:23]MH_I2C_Read... [08:53:23]Read from MH i2c: 01 07 00 2D B5 00 00 00 00 00 FF 0F F7 [08:53:23]process_action close_receipt done [08:53:23]requested_data is exist [08:53:23]produce_requested_data [08:53:23]requested_item fm.sn is exist - process it [08:53:23]wFMCommunicate request_size=4 [08:53:23]MH_SAM_APDU [08:53:23]CAPDU: 80 11 00 00 [08:53:23]Write to MH i2c: E2 08 00 2E B5 80 11 00 00 00 00 00 00 5D [08:53:23]Write i2c OK [08:53:23]MH_I2C_Read... [08:53:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:23]Read from MH i2c: E2 [08:53:23]MH_I2C_Read... [08:53:23]Read from MH i2c: E2 17 00 [08:53:23]MH_I2C_Read... [08:53:23]Read from MH i2c: E2 17 00 2E B5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AF [08:53:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:53:23]wFMCommunicate OK [08:53:23]requested_item fd.num is exist - process it [08:53:23]SAM_PROTO_GetFieldsCounters [08:53:23]wFMCommunicate request_size=4 [08:53:23]MH_SAM_APDU [08:53:23]CAPDU: 80 13 00 00 [08:53:23]Write to MH i2c: E2 08 00 2F B5 80 13 00 00 00 00 00 00 60 [08:53:23]Write i2c OK [08:53:23]MH_I2C_Read... [08:53:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:53:23]Read from MH i2c: E2 [08:53:23]MH_I2C_Read... [08:53:23]Read from MH i2c: E2 62 00 [08:53:23]MH_I2C_Read... [08:53:23]Read from MH i2c: E2 62 00 2F B5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5A 0E 01 00 0E 04 04 00 C1 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 4A [08:53:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5A 0E 01 00 0E 04 04 00 C1 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 [08:53:23]wFMCommunicate OK [08:53:23]SAM_PROTO_GetFieldsCounters done [08:53:23]requested_item shift.num is exist - process it [08:53:23]requested_item shift.opened is exist - process it [08:53:23]req_shift_opened [08:53:23]FM_GetShiftState [08:53:23]SAM_PROTO_GetShiftState [08:53:23]wFMCommunicate request_size=4 [08:53:23]MH_SAM_APDU [08:53:23]CAPDU: 80 13 01 00 [08:53:23]Write to MH i2c: E2 08 00 30 B5 80 13 01 00 00 00 00 00 62 [08:53:23]Write i2c OK [08:53:23]MH_I2C_Read... [08:53:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:23]Read from MH i2c: E2 [08:53:23]MH_I2C_Read... [08:53:23]Read from MH i2c: E2 0E 00 [08:53:23]MH_I2C_Read... [08:53:23]Read from MH i2c: E2 0E 00 30 B5 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 68 [08:53:23]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [08:53:23]wFMCommunicate OK [08:53:23]SAM_PROTO_GetShiftState done [08:53:23]FM_GetShiftState done [08:53:23]req_shift_opened done [08:53:23]requested_item shift.open_date is exist - process it [08:53:23]req_shift_open_date [08:53:23]req_shift_open_date done [08:53:23]produce_requested_data done [08:53:23]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69210,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [08:53:23]process_action_free close_receipt [08:53:23]json_value_free [08:53:23]json_value_free done [08:53:23]process_json_proto returns [08:53:23]Send response to host [08:53:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69210,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [08:53:23]free response buf [08:53:23]execute_script done [08:53:23]execute_script returns [08:53:23]free content buf [08:53:23]Sock 9.Close socket [08:53:23]Sock 9.Thread stoped [08:53:27]OFD Sender: No OFD packet to send [08:53:32]OFD Sender: No OFD packet to send [08:53:37]OFD Sender: No OFD packet to send [08:53:42]OFD Sender: No OFD packet to send [08:53:47]OFD Sender: No OFD packet to send [08:53:52]OFD Sender: No OFD packet to send [08:53:57]OFD Sender: No OFD packet to send [08:54:02]OFD Sender: No OFD packet to send [08:54:07]OFD Sender: No OFD packet to send [08:54:12]OFD Sender: No OFD packet to send [08:54:17]OFD Sender: No OFD packet to send [08:54:22]OFD Sender: No OFD packet to send [08:54:27]OFD Sender: No OFD packet to send [08:54:32]OFD Sender: No OFD packet to send [08:54:37]OFD Sender: No OFD packet to send [08:54:42]OFD Sender: No OFD packet to send [08:54:47]OFD Sender: No OFD packet to send [08:54:52]OFD Sender: No OFD packet to send [08:54:57]OFD Sender: No OFD packet to send [08:55:02]OFD Sender: No OFD packet to send [08:55:07]OFD Sender: No OFD packet to send [08:55:12]OFD Sender: No OFD packet to send [08:55:17]OFD Sender: No OFD packet to send [08:55:22]OFD Sender: No OFD packet to send [08:55:26]accept exits with 8 [08:55:26]New connection [08:55:26]New thread 3067260260 created [08:55:26]Thread 3067116900 joined [08:55:26]Waiting for new connection... [08:55:26] Sock 8.Parse request [08:55:26]Sock 8.Check first char [08:55:26]Sock 8.First char is OK [08:55:26]request: POST /json_proto HTTP/1.0 [08:55:26]Method: POST [08:55:26]URL: /json_proto [08:55:26]Method is POST - this is cgi request [08:55:26]url: /json_proto [08:55:26]query_string will be loaded in cgi processing [08:55:26]execute_cgi json_proto POST (null) [08:55:26]execute_cgi path=json_proto method=POST [08:55:26]POST find Content-Length [08:55:26]Host: 172.17.50.3:8080 [08:55:26]Content-Length: 678 [08:55:26]Content-Type: application/json [08:55:26] [08:55:26]POST finish read [08:55:26]Found Content-Length = 678 [08:55:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:26]execute_script... [08:55:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:26]POST & json_proto [08:55:26]process_json_proto [08:55:26]json parsed OK: [08:55:26]protocol is kg_v1.0 [08:55:26]action value=close_receipt [08:55:26]process_action close_receipt [08:55:26]cmd_close_receipt [08:55:26]MH_GetDate [08:55:26]Write to MH i2c: F0 00 00 31 B5 D5 [08:55:26]Write i2c OK [08:55:26]MH_I2C_Read... [08:55:26]Read from MH i2c: F0 [08:55:26]MH_I2C_Read... [08:55:26]Read from MH i2c: F0 09 00 [08:55:26]MH_I2C_Read... [08:55:26]Read from MH i2c: F0 09 00 31 B5 00 87 C5 14 67 6B 98 1E 66 2C [08:55:26]GetLastDocTimeStamp 1729414409 [08:55:26]current date 1729414535 [08:55:26]FM_GetShiftState [08:55:26]SAM_PROTO_GetShiftState [08:55:26]wFMCommunicate request_size=4 [08:55:26]MH_SAM_APDU [08:55:26]CAPDU: 80 13 01 00 [08:55:26]Write to MH i2c: E2 08 00 32 B5 80 13 01 00 00 00 00 00 64 [08:55:26]Write i2c OK [08:55:26]MH_I2C_Read... [08:55:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:26]Read from MH i2c: E2 [08:55:26]MH_I2C_Read... [08:55:26]Read from MH i2c: E2 0E 00 [08:55:26]MH_I2C_Read... [08:55:26]Read from MH i2c: E2 0E 00 32 B5 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 6A [08:55:26]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [08:55:26]wFMCommunicate OK [08:55:26]SAM_PROTO_GetShiftState done [08:55:26]FM_GetShiftState done [08:55:26]opened in 1729383220 [08:55:26]opened+sec_in_day 1729469620 [08:55:26]quantity*price = 50041 [08:55:26]sum+1 = 50042 [08:55:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 56 20.10.2024 08:55 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69211 ФПД: 169337676043845 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T085536&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69211&fm=169337676043845&tin=02508201610067®Number=0000000000156251&sum=50000 [08:55:27]StoreToDocumentArchive [08:55:27]shift 193 fd 69211 [08:55:27]save to /storage/0193/doc_00069211 [08:55:27]save last doc name /storage/0193/doc_00069211 to /storage/kkm_last_doc_name [08:55:27]save OK [08:55:27]Clear old archive folders... [08:55:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:55:27]tlvbuf is 00533390 [08:55:27]SAM_PROTO_ClearQueue [08:55:27]wFMCommunicate request_size=4 [08:55:27]MH_SAM_APDU [08:55:27]CAPDU: 80 09 00 00 [08:55:27]Write to MH i2c: E2 08 00 3F B5 80 09 00 00 00 00 00 00 66 [08:55:27]Write i2c OK [08:55:27]MH_I2C_Read... [08:55:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:55:27]Read from MH i2c: E2 [08:55:27]MH_I2C_Read... [08:55:27]Read from MH i2c: E2 03 00 [08:55:27]MH_I2C_Read... [08:55:27]Read from MH i2c: E2 03 00 3F B5 00 90 00 68 [08:55:27]RAPDU: 90 00 [08:55:27]wFMCommunicate OK [08:55:27]SAM_PROTO_ClearQueue done [08:55:27]KKMCreateOFDPacket [08:55:27]OFDProtocolAddRootSTLVToBuf [08:55:27]FM_MakeSignedData [08:55:27]FM_MakeSignedData [08:55:27]SAM_PROTO_SignData [08:55:27]wFMCommunicate request_size=4 [08:55:27]MH_SAM_APDU [08:55:27]CAPDU: 80 0D 01 02 [08:55:27]Write to MH i2c: E2 08 00 40 B5 80 0D 01 02 00 00 00 00 6E [08:55:27]Write i2c OK [08:55:27]MH_I2C_Read... [08:55:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:55:27]Read from MH i2c: E2 [08:55:27]MH_I2C_Read... [08:55:27]OFD Sender: No OFD packet to send [08:55:27]Read from MH i2c: E2 03 00 [08:55:27]MH_I2C_Read... [08:55:27]Read from MH i2c: E2 03 00 40 B5 00 90 00 69 [08:55:27]RAPDU: 90 00 [08:55:27]wFMCommunicate OK [08:55:27]wFMCommunicate request_size=255 [08:55:27]MH_SAM_APDU [08:55:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 88 C5 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5B 0E 01 00 35 04 06 00 9A [08:55:27]Write to MH i2c: E2 02 01 41 B5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 88 C5 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5B 0E 01 00 35 04 06 00 9A 00 00 BC [08:55:27]Write i2c OK [08:55:27]MH_I2C_Read... [08:55:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:28]Read from MH i2c: E2 [08:55:28]MH_I2C_Read... [08:55:28]Read from MH i2c: E2 03 00 [08:55:28]MH_I2C_Read... [08:55:28]Read from MH i2c: E2 03 00 41 B5 00 90 00 6A [08:55:28]RAPDU: 90 00 [08:55:28]wFMCommunicate OK [08:55:28]wFMCommunicate request_size=10 [08:55:28]MH_SAM_APDU [08:55:28]CAPDU: 80 0D 02 02 05 03 00 07 16 45 [08:55:28]Write to MH i2c: E2 0D 00 42 B5 80 0D 02 02 05 00 03 00 07 16 45 00 00 E0 [08:55:28]Write i2c OK [08:55:28]MH_I2C_Read... [08:55:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:28]Read from MH i2c: E2 [08:55:28]MH_I2C_Read... [08:55:28]Read from MH i2c: E2 03 00 [08:55:28]MH_I2C_Read... [08:55:28]Read from MH i2c: E2 03 00 42 B5 00 90 00 6B [08:55:28]RAPDU: 90 00 [08:55:28]wFMCommunicate OK [08:55:28]wFMCommunicate request_size=4 [08:55:28]MH_SAM_APDU [08:55:28]CAPDU: 80 0D 03 02 [08:55:28]Write to MH i2c: E2 08 00 43 B5 80 0D 03 02 00 00 00 00 73 [08:55:28]Write i2c OK [08:55:28]MH_I2C_Read... [08:55:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:55:28]Read from MH i2c: E2 [08:55:28]MH_I2C_Read... [08:55:28]Read from MH i2c: E2 0B 00 [08:55:28]MH_I2C_Read... [08:55:28]Read from MH i2c: E2 0B 00 43 B5 00 5F D6 38 68 C7 7C 97 7C 90 00 9F [08:55:28]RAPDU: 5F D6 38 68 C7 7C 97 7C 90 00 [08:55:28]wFMCommunicate OK [08:55:28]SAM_PROTO_SignData done [08:55:28]FM_MakeSignedData done [08:55:28]CreateOFDProtocolMessage [08:55:28]wFMCommunicate request_size=4 [08:55:28]MH_SAM_APDU [08:55:28]CAPDU: 80 11 00 00 [08:55:28]Write to MH i2c: E2 08 00 44 B5 80 11 00 00 00 00 00 00 73 [08:55:28]Write i2c OK [08:55:28]MH_I2C_Read... [08:55:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:28]Read from MH i2c: E2 [08:55:28]MH_I2C_Read... [08:55:28]Read from MH i2c: E2 17 00 [08:55:28]MH_I2C_Read... [08:55:28]Read from MH i2c: E2 17 00 44 B5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C5 [08:55:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:55:28]wFMCommunicate OK [08:55:28]CreateOFDProtocolMessage done [08:55:28]OFDSenderStorePacket 69211 [08:55:28]StoreOFDPacket docnum=69211 [08:55:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 77 E5 07 01 2E A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 88 C5 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5B 0E 01 00 35 04 06 00 9A 03 00 07 16 45 5F D6 38 68 C7 7C 97 7C [08:55:28]CheckFolder [08:55:28]dirname=/storage/ofd_packets [08:55:28]CheckFolder done [08:55:28]ProducePacketName [08:55:28]name=ofd_packets/00069211 [08:55:28]NVStorageSaveData ofd_packets/00069211 [08:55:28]File name is /storage/ofd_packets/00069211 [08:55:28]Write 301 bytes [08:55:28]NVStorageSaveData done [08:55:28]OFDSenderStorePacket done [08:55:28]KKMCreateOFDPacket done [08:55:28]NVStorageSaveData kkm_last_timestamp [08:55:28]File name is /storage/kkm_last_timestamp [08:55:28]Write 4 bytes [08:55:28]NVStorageSaveData done [08:55:28]ExternCall_PrintAddStr [08:55:28]wPrintStart [08:55:28]Write to MH i2c: 01 00 00 45 B5 FA [08:55:28]Write i2c OK [08:55:28]MH_I2C_Read... [08:55:28]Read from MH i2c: 01 [08:55:28]MH_I2C_Read... [08:55:28]Read from MH i2c: 01 07 00 [08:55:28]MH_I2C_Read... [08:55:28]Read from MH i2c: 01 07 00 45 B5 00 00 00 00 00 FF 0F 0F [08:55:28]RasterBufferAndPrint [08:55:28]line Счет N : (1)2884924 [08:55:28]line ИНН: 02508201610067 [08:55:28]line Контрольно-Кассовый Чек [08:55:28]line ПРОДАЖА [08:55:28]line ТРК (МРК, ГНК) : 42 [08:55:28]line Товар: 2710124130 [08:55:28]line Аи-92-К-5 [08:55:28]line 7.480 * 66.90 [08:55:28]line = 500.41 [08:55:28]line НДС 12% НСП 1% [08:55:28]line > о реализуемом товаре [08:55:28]line ОКРУГЛЕНИЕ: -0.41 [08:55:28]line ИТОГО: 500.00 [08:55:28]line Внесено: 500.00 [08:55:28]line СДАЧА: 0.00 [08:55:28]line НСП 1% : 4.43 [08:55:28]line НДС 12% : 53.14 [08:55:28]line Наличными: 500.00 [08:55:28]line Безнал.: 0.00 [08:55:28]line Место: АЗС № 85 "Партнер Нефть" [08:55:28]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [08:55:28]line СНО: Общий режим [08:55:28]line Чек 56 20.10.2024 08:55 [08:55:28]line Смена: 193 ФФД: 1.0 [08:55:28]line ЗНМ: 0300000167 [08:55:28]line РНМ: 0000000000156251 [08:55:28]line Версия ККМ: v1.0 [08:55:28]line ФМ: 0000000000963346 [08:55:28]line ФД: 69211 [08:55:28]line ФПД: 169337676043845 [08:55:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T085536&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69211&fm=169337676043845&tin=02508201610067®Number=0000000000156251&sum=50000 [08:55:28]OFD Sender: Processing packet 69211 [packets to send 18, broken 17] [08:55:28]ProducePacketName [08:55:28]name=ofd_packets/00069211 [08:55:28]OFD Sender: To server: pG, [08:55:28]CommunicateWithHost lk.salyk.kg:30040 [08:55:28]ConnectInit lk.salyk.kg [08:55:28]written 0, free lines is 4095 [08:55:28]Connected sock=10 [08:55:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 77 E5 07 01 2E A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 88 C5 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5B 0E 01 00 35 04 06 00 9A 03 00 07 16 45 5F D6 38 68 C7 7C 97 7C [08:55:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 82 4A 47 00 AB F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5B 0E 01 00 F4 03 04 00 2F 6F 14 67 B6 04 01 00 00 74 1C 47 CD 69 C9 77 3B [08:55:28]CommunicateWithHost err = 0 [08:55:28]CheckOFDResponse [08:55:28]1017 (14) - 77093643461234 [08:55:28]1041 (16) - 0000000000963346 [08:55:28]1040 (4) - 69211 [08:55:28]1012 (4) - 20.10.2024 02:47 [08:55:28]1206 (1) - 0 [08:55:28]OFD Sender: Remove packet 69211 [08:55:28]ProducePacketName [08:55:28]name=ofd_packets/00069211 [08:55:28]NVStorageDeleteData [08:55:28]Write to MH i2c: 01 00 00 70 B5 25 [08:55:28]Write i2c OK [08:55:28]MH_I2C_Read... [08:55:28]Read from MH i2c: 01 [08:55:28]MH_I2C_Read... [08:55:28]Read from MH i2c: 01 07 00 [08:55:28]MH_I2C_Read... [08:55:29]Read from MH i2c: 01 07 00 70 B5 00 00 00 00 00 01 0D 3A [08:55:29]RasterBufferAndPrint [08:55:29]line [08:55:29]line [08:55:29]line [08:55:29]line [08:55:29]line [08:55:29]written 0, free lines is 3338 [08:55:29]MH_Cut [08:55:29]Write to MH i2c: D1 01 00 77 B5 01 FE [08:55:29]Write i2c OK [08:55:29]MH_I2C_Read... [08:55:29]Read from MH i2c: D1 [08:55:29]MH_I2C_Read... [08:55:29]Read from MH i2c: D1 01 00 [08:55:29]MH_I2C_Read... [08:55:29]Read from MH i2c: D1 01 00 77 B5 00 FD [08:55:29]Write to MH i2c: 01 00 00 78 B5 2D [08:55:29]Write i2c OK [08:55:29]MH_I2C_Read... [08:55:29]OFD Sender: No OFD packet to send [08:55:29]*** Cut start [08:55:29]*** Partial cut [08:55:29]*** CUTSNS_PIN = 1 [08:55:29]*** CUTSNS_PIN = 0 [08:55:29]*** Brake cut motor [08:55:30]Read from MH i2c: 01 [08:55:30]MH_I2C_Read... [08:55:30]*** Stop cut motor [08:55:30]*** Cut end [08:55:30]Read from MH i2c: 01 07 00 [08:55:30]MH_I2C_Read... [08:55:30]Read from MH i2c: 01 07 00 78 B5 00 00 00 00 00 FF 0F 42 [08:55:30]process_action close_receipt done [08:55:30]requested_data is exist [08:55:30]produce_requested_data [08:55:30]requested_item fm.sn is exist - process it [08:55:30]wFMCommunicate request_size=4 [08:55:30]MH_SAM_APDU [08:55:30]CAPDU: 80 11 00 00 [08:55:30]Write to MH i2c: E2 08 00 79 B5 80 11 00 00 00 00 00 00 A8 [08:55:30]Write i2c OK [08:55:30]MH_I2C_Read... [08:55:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:30]Read from MH i2c: E2 [08:55:30]MH_I2C_Read... [08:55:30]Read from MH i2c: E2 17 00 [08:55:30]MH_I2C_Read... [08:55:30]Read from MH i2c: E2 17 00 79 B5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FA [08:55:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [08:55:30]wFMCommunicate OK [08:55:30]requested_item fd.num is exist - process it [08:55:30]SAM_PROTO_GetFieldsCounters [08:55:30]wFMCommunicate request_size=4 [08:55:30]MH_SAM_APDU [08:55:30]CAPDU: 80 13 00 00 [08:55:30]Write to MH i2c: E2 08 00 7A B5 80 13 00 00 00 00 00 00 AB [08:55:30]Write i2c OK [08:55:30]MH_I2C_Read... [08:55:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:55:30]Read from MH i2c: E2 [08:55:30]MH_I2C_Read... [08:55:30]Read from MH i2c: E2 62 00 [08:55:30]MH_I2C_Read... [08:55:30]Read from MH i2c: E2 62 00 7A B5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5B 0E 01 00 0E 04 04 00 C1 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 99 [08:55:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5B 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:55:30]wFMCommunicate OK [08:55:30]SAM_PROTO_GetFieldsCounters done [08:55:30]requested_item shift.num is exist - process it [08:55:30]requested_item shift.opened is exist - process it [08:55:30]req_shift_opened [08:55:30]FM_GetShiftState [08:55:30]SAM_PROTO_GetShiftState [08:55:30]wFMCommunicate request_size=4 [08:55:30]MH_SAM_APDU [08:55:30]CAPDU: 80 13 01 00 [08:55:30]Write to MH i2c: E2 08 00 7B B5 80 13 01 00 00 00 00 00 AD [08:55:30]Write i2c OK [08:55:30]MH_I2C_Read... [08:55:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:30]Read from MH i2c: E2 [08:55:30]MH_I2C_Read... [08:55:30]Read from MH i2c: E2 0E 00 [08:55:30]MH_I2C_Read... [08:55:30]Read from MH i2c: E2 0E 00 7B B5 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 B3 [08:55:30]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [08:55:30]wFMCommunicate OK [08:55:30]SAM_PROTO_GetShiftState done [08:55:30]FM_GetShiftState done [08:55:30]req_shift_opened done [08:55:30]requested_item shift.open_date is exist - process it [08:55:30]req_shift_open_date [08:55:30]req_shift_open_date done [08:55:30]produce_requested_data done [08:55:30]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69211,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [08:55:30]process_action_free close_receipt [08:55:30]json_value_free [08:55:30]json_value_free done [08:55:30]process_json_proto returns [08:55:30]Send response to host [08:55:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69211,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [08:55:30]free response buf [08:55:30]execute_script done [08:55:30]execute_script returns [08:55:30]free content buf [08:55:30]Sock 8.Close socket [08:55:30]Sock 8.Thread stoped [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:54]OFD Sender: No OFD packet to send [08:55:59]OFD Sender: No OFD packet to send [08:56:04]OFD Sender: No OFD packet to send [08:56:09]OFD Sender: No OFD packet to send [08:56:14]OFD Sender: No OFD packet to send [08:56:19]OFD Sender: No OFD packet to send [08:56:24]OFD Sender: No OFD packet to send [08:56:29]OFD Sender: No OFD packet to send [08:56:34]OFD Sender: No OFD packet to send [08:56:39]OFD Sender: No OFD packet to send [08:56:44]OFD Sender: No OFD packet to send [08:56:49]OFD Sender: No OFD packet to send [08:56:54]OFD Sender: No OFD packet to send [08:56:59]OFD Sender: No OFD packet to send [08:57:04]OFD Sender: No OFD packet to send [08:57:09]OFD Sender: No OFD packet to send [08:57:14]OFD Sender: No OFD packet to send [08:57:19]OFD Sender: No OFD packet to send [08:57:24]OFD Sender: No OFD packet to send [08:57:29]OFD Sender: No OFD packet to send [08:57:34]OFD Sender: No OFD packet to send [08:57:39]OFD Sender: No OFD packet to send [08:57:44]OFD Sender: No OFD packet to send [08:57:49]OFD Sender: No OFD packet to send [08:57:54]OFD Sender: No OFD packet to send [08:57:59]OFD Sender: No OFD packet to send [08:58:04]OFD Sender: No OFD packet to send [08:58:09]OFD Sender: No OFD packet to send [08:58:14]OFD Sender: No OFD packet to send [08:58:19]OFD Sender: No OFD packet to send [08:58:24]OFD Sender: No OFD packet to send [08:58:29]OFD Sender: No OFD packet to send [08:58:34]OFD Sender: No OFD packet to send [08:58:39]OFD Sender: No OFD packet to send [08:58:44]OFD Sender: No OFD packet to send [08:58:49]OFD Sender: No OFD packet to send [08:58:54]OFD Sender: No OFD packet to send [08:58:59]OFD Sender: No OFD packet to send [08:59:04]OFD Sender: No OFD packet to send [08:59:09]OFD Sender: No OFD packet to send [08:59:14]OFD Sender: No OFD packet to send [08:59:19]OFD Sender: No OFD packet to send [08:59:24]OFD Sender: No OFD packet to send [08:59:29]OFD Sender: No OFD packet to send [08:59:34]OFD Sender: No OFD packet to send [08:59:39]OFD Sender: No OFD packet to send [08:59:44]OFD Sender: No OFD packet to send [08:59:49]OFD Sender: No OFD packet to send [08:59:54]OFD Sender: No OFD packet to send [08:59:59]OFD Sender: No OFD packet to send [09:00:04]OFD Sender: No OFD packet to send [09:00:09]OFD Sender: No OFD packet to send [09:00:14]OFD Sender: No OFD packet to send [09:00:19]OFD Sender: No OFD packet to send [09:00:24]OFD Sender: No OFD packet to send [09:00:29]OFD Sender: No OFD packet to send [09:00:34]OFD Sender: No OFD packet to send [09:00:39]OFD Sender: No OFD packet to send [09:00:44]OFD Sender: No OFD packet to send [09:00:49]OFD Sender: No OFD packet to send [09:00:54]OFD Sender: No OFD packet to send [09:00:59]OFD Sender: No OFD packet to send [09:01:04]OFD Sender: No OFD packet to send [09:01:09]OFD Sender: No OFD packet to send [09:01:14]OFD Sender: No OFD packet to send [09:01:19]OFD Sender: No OFD packet to send [09:01:24]OFD Sender: No OFD packet to send [09:01:29]OFD Sender: No OFD packet to send [09:01:34]OFD Sender: No OFD packet to send [09:01:39]OFD Sender: No OFD packet to send [09:01:44]OFD Sender: No OFD packet to send [09:01:49]OFD Sender: No OFD packet to send [09:01:54]OFD Sender: No OFD packet to send [09:01:59]OFD Sender: No OFD packet to send [09:02:04]OFD Sender: No OFD packet to send [09:02:09]OFD Sender: No OFD packet to send [09:02:14]OFD Sender: No OFD packet to send [09:02:18]accept exits with 9 [09:02:18]New connection [09:02:18]New thread 3067116900 created [09:02:18]Thread 3067260260 joined [09:02:18]Waiting for new connection... [09:02:18] Sock 9.Parse request [09:02:18]Sock 9.Check first char [09:02:18]Sock 9.First char is OK [09:02:18]request: POST /json_proto HTTP/1.0 [09:02:18]Method: POST [09:02:18]URL: /json_proto [09:02:18]Method is POST - this is cgi request [09:02:18]url: /json_proto [09:02:18]query_string will be loaded in cgi processing [09:02:18]execute_cgi json_proto POST (null) [09:02:18]execute_cgi path=json_proto method=POST [09:02:18]POST find Content-Length [09:02:18]Host: 172.17.50.3:8080 [09:02:18]Content-Length: 682 [09:02:18]Content-Type: application/json [09:02:18] [09:02:18]POST finish read [09:02:18]Found Content-Length = 682 [09:02:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 18.000, "sum" : 700.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:18]execute_script... [09:02:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 18.000, "sum" : 700.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:18]POST & json_proto [09:02:18]process_json_proto [09:02:18]json parsed OK: [09:02:18]protocol is kg_v1.0 [09:02:18]action value=close_receipt [09:02:18]process_action close_receipt [09:02:18]cmd_close_receipt [09:02:18]MH_GetDate [09:02:18]Write to MH i2c: F0 00 00 7C B5 20 [09:02:18]Write i2c OK [09:02:18]MH_I2C_Read... [09:02:18]Read from MH i2c: F0 [09:02:18]MH_I2C_Read... [09:02:18]Read from MH i2c: F0 09 00 [09:02:18]MH_I2C_Read... [09:02:18]Read from MH i2c: F0 09 00 7C B5 00 23 C7 14 67 6B 98 1E 66 15 [09:02:18]GetLastDocTimeStamp 1729414536 [09:02:18]current date 1729414947 [09:02:18]FM_GetShiftState [09:02:18]SAM_PROTO_GetShiftState [09:02:18]wFMCommunicate request_size=4 [09:02:18]MH_SAM_APDU [09:02:18]CAPDU: 80 13 01 00 [09:02:18]Write to MH i2c: E2 08 00 7D B5 80 13 01 00 00 00 00 00 AF [09:02:18]Write i2c OK [09:02:18]MH_I2C_Read... [09:02:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:18]Read from MH i2c: E2 [09:02:18]MH_I2C_Read... [09:02:18]Read from MH i2c: E2 0E 00 [09:02:18]MH_I2C_Read... [09:02:18]Read from MH i2c: E2 0E 00 7D B5 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 B5 [09:02:18]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:02:18]wFMCommunicate OK [09:02:18]SAM_PROTO_GetShiftState done [09:02:18]FM_GetShiftState done [09:02:18]opened in 1729383220 [09:02:18]opened+sec_in_day 1729469620 [09:02:18]quantity*price = 70020 [09:02:18]sum+1 = 70021 [09:02:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 57 20.10.2024 09:02 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69212 ФПД: 258116586169662 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090228&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69212&fm=258116586169662&tin=02508201610067®Number=0000000000156251&sum=70000 [09:02:19]StoreToDocumentArchive [09:02:19]shift 193 fd 69212 [09:02:19]save to /storage/0193/doc_00069212 [09:02:19]save last doc name /storage/0193/doc_00069212 to /storage/kkm_last_doc_name [09:02:19]save OK [09:02:19]Clear old archive folders... [09:02:19]ProcessDocumentItem done err = 0, tmpTLVsize=250 [09:02:19]tlvbuf is 005D7070 [09:02:19]SAM_PROTO_ClearQueue [09:02:19]wFMCommunicate request_size=4 [09:02:19]MH_SAM_APDU [09:02:19]CAPDU: 80 09 00 00 [09:02:19]Write to MH i2c: E2 08 00 8A B5 80 09 00 00 00 00 00 00 B1 [09:02:19]Write i2c OK [09:02:19]MH_I2C_Read... [09:02:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:02:19]Read from MH i2c: E2 [09:02:19]MH_I2C_Read... [09:02:19]Read from MH i2c: E2 03 00 [09:02:19]MH_I2C_Read... [09:02:19]Read from MH i2c: E2 03 00 8A B5 00 90 00 B3 [09:02:19]RAPDU: 90 00 [09:02:19]wFMCommunicate OK [09:02:19]SAM_PROTO_ClearQueue done [09:02:19]KKMCreateOFDPacket [09:02:19]OFDProtocolAddRootSTLVToBuf [09:02:19]FM_MakeSignedData [09:02:19]FM_MakeSignedData [09:02:19]SAM_PROTO_SignData [09:02:19]wFMCommunicate request_size=4 [09:02:19]MH_SAM_APDU [09:02:19]CAPDU: 80 0D 01 02 [09:02:19]Write to MH i2c: E2 08 00 8B B5 80 0D 01 02 00 00 00 00 B9 [09:02:19]Write i2c OK [09:02:19]MH_I2C_Read... [09:02:19]OFD Sender: No OFD packet to send [09:02:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:02:19]Read from MH i2c: E2 [09:02:19]MH_I2C_Read... [09:02:19]Read from MH i2c: E2 03 00 [09:02:19]MH_I2C_Read... [09:02:19]Read from MH i2c: E2 03 00 8B B5 00 90 00 B4 [09:02:19]RAPDU: 90 00 [09:02:19]wFMCommunicate OK [09:02:19]wFMCommunicate request_size=255 [09:02:19]MH_SAM_APDU [09:02:19]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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 24 C7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5C 0E 01 00 35 04 06 00 EA C1 [09:02:19]Write to MH i2c: E2 02 01 8C B5 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 24 C7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5C 0E 01 00 35 04 06 00 EA C1 00 00 E9 [09:02:19]Write i2c OK [09:02:19]MH_I2C_Read... [09:02:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:20]Read from MH i2c: E2 [09:02:20]MH_I2C_Read... [09:02:20]Read from MH i2c: E2 03 00 [09:02:20]MH_I2C_Read... [09:02:20]Read from MH i2c: E2 03 00 8C B5 00 90 00 B5 [09:02:20]RAPDU: 90 00 [09:02:20]wFMCommunicate OK [09:02:20]wFMCommunicate request_size=9 [09:02:20]MH_SAM_APDU [09:02:20]CAPDU: 80 0D 02 02 04 73 6D E5 3E [09:02:20]Write to MH i2c: E2 0C 00 8D B5 80 0D 02 02 04 00 73 6D E5 3E 00 00 C7 [09:02:20]Write i2c OK [09:02:20]MH_I2C_Read... [09:02:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:20]Read from MH i2c: E2 [09:02:20]MH_I2C_Read... [09:02:20]Read from MH i2c: E2 03 00 [09:02:20]MH_I2C_Read... [09:02:20]Read from MH i2c: E2 03 00 8D B5 00 90 00 B6 [09:02:20]RAPDU: 90 00 [09:02:20]wFMCommunicate OK [09:02:20]wFMCommunicate request_size=4 [09:02:20]MH_SAM_APDU [09:02:20]CAPDU: 80 0D 03 02 [09:02:20]Write to MH i2c: E2 08 00 8E B5 80 0D 03 02 00 00 00 00 BE [09:02:20]Write i2c OK [09:02:20]MH_I2C_Read... [09:02:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:02:20]Read from MH i2c: E2 [09:02:20]MH_I2C_Read... [09:02:20]Read from MH i2c: E2 0B 00 [09:02:20]MH_I2C_Read... [09:02:20]Read from MH i2c: E2 0B 00 8E B5 00 48 11 2C 9A 98 B5 70 72 90 00 0D [09:02:20]RAPDU: 48 11 2C 9A 98 B5 70 72 90 00 [09:02:20]wFMCommunicate OK [09:02:20]SAM_PROTO_SignData done [09:02:20]FM_MakeSignedData done [09:02:20]CreateOFDProtocolMessage [09:02:20]wFMCommunicate request_size=4 [09:02:20]MH_SAM_APDU [09:02:20]CAPDU: 80 11 00 00 [09:02:20]Write to MH i2c: E2 08 00 8F B5 80 11 00 00 00 00 00 00 BE [09:02:20]Write i2c OK [09:02:20]MH_I2C_Read... [09:02:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:20]Read from MH i2c: E2 [09:02:20]MH_I2C_Read... [09:02:20]Read from MH i2c: E2 17 00 [09:02:20]MH_I2C_Read... [09:02:20]Read from MH i2c: E2 17 00 8F B5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 10 [09:02:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:02:20]wFMCommunicate OK [09:02:20]CreateOFDProtocolMessage done [09:02:20]OFDSenderStorePacket 69212 [09:02:20]StoreOFDPacket docnum=69212 [09:02:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 A9 14 06 01 E2 41 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 24 C7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5C 0E 01 00 35 04 06 00 EA C1 73 6D E5 3E 48 11 2C 9A 98 B5 70 72 [09:02:20]CheckFolder [09:02:20]dirname=/storage/ofd_packets [09:02:20]CheckFolder done [09:02:20]ProducePacketName [09:02:20]name=ofd_packets/00069212 [09:02:20]NVStorageSaveData ofd_packets/00069212 [09:02:20]File name is /storage/ofd_packets/00069212 [09:02:20]Write 300 bytes [09:02:20]NVStorageSaveData done [09:02:20]OFDSenderStorePacket done [09:02:20]KKMCreateOFDPacket done [09:02:20]NVStorageSaveData kkm_last_timestamp [09:02:20]File name is /storage/kkm_last_timestamp [09:02:20]Write 4 bytes [09:02:20]NVStorageSaveData done [09:02:20]ExternCall_PrintAddStr [09:02:20]wPrintStart [09:02:20]Write to MH i2c: 01 00 00 90 B5 45 [09:02:20]Write i2c OK [09:02:20]MH_I2C_Read... [09:02:20]Read from MH i2c: 01 [09:02:20]MH_I2C_Read... [09:02:20]Read from MH i2c: 01 07 00 [09:02:20]MH_I2C_Read... [09:02:20]Read from MH i2c: 01 07 00 90 B5 00 00 00 00 00 FF 0F 5A [09:02:20]RasterBufferAndPrint [09:02:20]line Счет N : (1)2884925 [09:02:20]line ИНН: 02508201610067 [09:02:20]line Контрольно-Кассовый Чек [09:02:20]line ПРОДАЖА [09:02:20]line ТРК (МРК, ГНК) : 71 [09:02:20]line Товар: 2711129700 [09:02:20]line ГАЗ-К-3 [09:02:20]line 18.000 * 38.90 [09:02:20]line = 700.20 [09:02:20]line НДС 12% НСП 1% [09:02:20]line > о реализуемом товаре [09:02:20]line ОКРУГЛЕНИЕ: -0.20 [09:02:20]line ИТОГО: 700.00 [09:02:20]line Внесено: 700.00 [09:02:20]line СДАЧА: 0.00 [09:02:20]line НСП 1% : 6.20 [09:02:20]line НДС 12% : 74.36 [09:02:20]line Наличными: 700.00 [09:02:20]line Безнал.: 0.00 [09:02:20]line Место: АЗС № 85 "Партнер Нефть" [09:02:20]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:02:20]line СНО: Общий режим [09:02:20]line Чек 57 20.10.2024 09:02 [09:02:20]line Смена: 193 ФФД: 1.0 [09:02:20]line ЗНМ: 0300000167 [09:02:20]line РНМ: 0000000000156251 [09:02:20]line Версия ККМ: v1.0 [09:02:20]line ФМ: 0000000000963346 [09:02:20]line ФД: 69212 [09:02:20]line ФПД: 258116586169662 [09:02:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090228&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69212&fm=258116586169662&tin=02508201610067®Number=0000000000156251&sum=70000 [09:02:20]OFD Sender: Processing packet 69212 [packets to send 18, broken 17] [09:02:20]ProducePacketName [09:02:20]name=ofd_packets/00069212 [09:02:20]OFD Sender: To server: pG, [09:02:20]CommunicateWithHost lk.salyk.kg:30040 [09:02:20]ConnectInit lk.salyk.kg [09:02:20]written 0, free lines is 4095 [09:02:20]Connected sock=8 [09:02:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 A9 14 06 01 E2 41 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 24 C7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5C 0E 01 00 35 04 06 00 EA C1 73 6D E5 3E 48 11 2C 9A 98 B5 70 72 [09:02:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 45 7D 47 00 2C 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5C 0E 01 00 F4 03 04 00 CB 70 14 67 B6 04 01 00 00 5D F3 A4 93 35 07 8D D5 [09:02:20]CommunicateWithHost err = 0 [09:02:20]CheckOFDResponse [09:02:20]1017 (14) - 77093643461234 [09:02:20]1041 (16) - 0000000000963346 [09:02:20]1040 (4) - 69212 [09:02:20]1012 (4) - 20.10.2024 02:54 [09:02:20]1206 (1) - 0 [09:02:20]OFD Sender: Remove packet 69212 [09:02:20]ProducePacketName [09:02:20]name=ofd_packets/00069212 [09:02:20]NVStorageDeleteData [09:02:20]Write to MH i2c: 01 00 00 BB B5 70 [09:02:20]Write i2c OK [09:02:20]MH_I2C_Read... [09:02:20]Read from MH i2c: 01 [09:02:20]MH_I2C_Read... [09:02:20]Read from MH i2c: 01 07 00 [09:02:20]MH_I2C_Read... [09:02:20]Read from MH i2c: 01 07 00 BB B5 00 00 00 00 00 04 0D 88 [09:02:20]RasterBufferAndPrint [09:02:20]line [09:02:20]line [09:02:20]line [09:02:20]line [09:02:20]line [09:02:20]written 0, free lines is 3341 [09:02:20]MH_Cut [09:02:20]Write to MH i2c: D1 01 00 C2 B5 01 49 [09:02:21]Write i2c OK [09:02:21]MH_I2C_Read... [09:02:21]Read from MH i2c: D1 [09:02:21]MH_I2C_Read... [09:02:21]Read from MH i2c: D1 01 00 [09:02:21]MH_I2C_Read... [09:02:21]Read from MH i2c: D1 01 00 C2 B5 00 48 [09:02:21]Write to MH i2c: 01 00 00 C3 B5 78 [09:02:21]Write i2c OK [09:02:21]MH_I2C_Read... [09:02:21]OFD Sender: No OFD packet to send [09:02:21]*** Cut start [09:02:21]*** Partial cut [09:02:21]*** CUTSNS_PIN = 1 [09:02:21]*** CUTSNS_PIN = 0 [09:02:21]*** Brake cut motor [09:02:22]Read from MH i2c: 01 [09:02:22]MH_I2C_Read... [09:02:22]*** Stop cut motor [09:02:22]*** Cut end [09:02:22]Read from MH i2c: 01 07 00 [09:02:22]MH_I2C_Read... [09:02:22]Read from MH i2c: 01 07 00 C3 B5 00 00 00 00 00 FF 0F 8D [09:02:22]process_action close_receipt done [09:02:22]requested_data is exist [09:02:22]produce_requested_data [09:02:22]requested_item fm.sn is exist - process it [09:02:22]wFMCommunicate request_size=4 [09:02:22]MH_SAM_APDU [09:02:22]CAPDU: 80 11 00 00 [09:02:22]Write to MH i2c: E2 08 00 C4 B5 80 11 00 00 00 00 00 00 F3 [09:02:22]Write i2c OK [09:02:22]MH_I2C_Read... [09:02:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:22]Read from MH i2c: E2 [09:02:22]MH_I2C_Read... [09:02:22]Read from MH i2c: E2 17 00 [09:02:22]MH_I2C_Read... [09:02:22]Read from MH i2c: E2 17 00 C4 B5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 45 [09:02:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:02:22]wFMCommunicate OK [09:02:22]requested_item fd.num is exist - process it [09:02:22]SAM_PROTO_GetFieldsCounters [09:02:22]wFMCommunicate request_size=4 [09:02:22]MH_SAM_APDU [09:02:22]CAPDU: 80 13 00 00 [09:02:22]Write to MH i2c: E2 08 00 C5 B5 80 13 00 00 00 00 00 00 F6 [09:02:22]Write i2c OK [09:02:22]MH_I2C_Read... [09:02:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:02:22]Read from MH i2c: E2 [09:02:22]MH_I2C_Read... [09:02:22]Read from MH i2c: E2 62 00 [09:02:22]MH_I2C_Read... [09:02:22]Read from MH i2c: E2 62 00 C5 B5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5C 0E 01 00 0E 04 04 00 C1 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 E8 [09:02:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5C 0E 01 00 0E 04 04 00 C1 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 [09:02:22]wFMCommunicate OK [09:02:22]SAM_PROTO_GetFieldsCounters done [09:02:22]requested_item shift.num is exist - process it [09:02:22]requested_item shift.opened is exist - process it [09:02:22]req_shift_opened [09:02:22]FM_GetShiftState [09:02:22]SAM_PROTO_GetShiftState [09:02:22]wFMCommunicate request_size=4 [09:02:22]MH_SAM_APDU [09:02:22]CAPDU: 80 13 01 00 [09:02:22]Write to MH i2c: E2 08 00 C6 B5 80 13 01 00 00 00 00 00 F8 [09:02:22]Write i2c OK [09:02:22]MH_I2C_Read... [09:02:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:22]Read from MH i2c: E2 [09:02:22]MH_I2C_Read... [09:02:22]Read from MH i2c: E2 0E 00 [09:02:22]MH_I2C_Read... [09:02:22]Read from MH i2c: E2 0E 00 C6 B5 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 FE [09:02:22]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:02:22]wFMCommunicate OK [09:02:22]SAM_PROTO_GetShiftState done [09:02:22]FM_GetShiftState done [09:02:22]req_shift_opened done [09:02:22]requested_item shift.open_date is exist - process it [09:02:22]req_shift_open_date [09:02:22]req_shift_open_date done [09:02:22]produce_requested_data done [09:02:22]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69212,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [09:02:22]process_action_free close_receipt [09:02:22]json_value_free [09:02:22]json_value_free done [09:02:22]process_json_proto returns [09:02:22]Send response to host [09:02:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69212,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [09:02:22]free response buf [09:02:22]execute_script done [09:02:22]execute_script returns [09:02:22]free content buf [09:02:22]Sock 9.Close socket [09:02:22]Sock 9.Thread stoped [09:02:26]OFD Sender: No OFD packet to send [09:02:31]OFD Sender: No OFD packet to send [09:02:36]OFD Sender: No OFD packet to send [09:02:41]OFD Sender: No OFD packet to send [09:02:46]OFD Sender: No OFD packet to send [09:02:51]OFD Sender: No OFD packet to send [09:02:56]OFD Sender: No OFD packet to send [09:03:01]OFD Sender: No OFD packet to send [09:03:06]OFD Sender: No OFD packet to send [09:03:11]OFD Sender: No OFD packet to send [09:03:16]OFD Sender: No OFD packet to send [09:03:21]OFD Sender: No OFD packet to send [09:03:26]OFD Sender: No OFD packet to send [09:03:31]OFD Sender: No OFD packet to send [09:03:36]OFD Sender: No OFD packet to send [09:03:38]accept exits with 10 [09:03:38]New connection [09:03:38]New thread 3067260260 created [09:03:38]Thread 3067116900 joined [09:03:38]Waiting for new connection... [09:03:38] Sock 10.Parse request [09:03:38]Sock 10.Check first char [09:03:38]Sock 10.First char is OK [09:03:38]request: POST /json_proto HTTP/1.0 [09:03:38]Method: POST [09:03:38]URL: /json_proto [09:03:38]Method is POST - this is cgi request [09:03:38]url: /json_proto [09:03:38]query_string will be loaded in cgi processing [09:03:38]execute_cgi json_proto POST (null) [09:03:38]execute_cgi path=json_proto method=POST [09:03:38]POST find Content-Length [09:03:38]Host: 172.17.50.3:8080 [09:03:38]Content-Length: 768 [09:03:38]Content-Type: application/json [09:03:38] [09:03:38]POST finish read [09:03:38]Found Content-Length = 768 [09:03:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 800.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:38]execute_script... [09:03: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)2884926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 800.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:38]POST & json_proto [09:03:38]process_json_proto [09:03:38]json parsed OK: [09:03:38]protocol is kg_v1.0 [09:03:38]action value=close_receipt [09:03:38]process_action close_receipt [09:03:38]cmd_close_receipt [09:03:38]MH_GetDate [09:03:38]Write to MH i2c: F0 00 00 C7 B5 6B [09:03:38]Write i2c OK [09:03:38]MH_I2C_Read... [09:03:38]Read from MH i2c: F0 [09:03:38]MH_I2C_Read... [09:03:38]Read from MH i2c: F0 09 00 [09:03:38]MH_I2C_Read... [09:03:38]Read from MH i2c: F0 09 00 C7 B5 00 74 C7 14 67 6B 98 1E 66 B1 [09:03:38]GetLastDocTimeStamp 1729414948 [09:03:38]current date 1729415028 [09:03:38]FM_GetShiftState [09:03:38]SAM_PROTO_GetShiftState [09:03:38]wFMCommunicate request_size=4 [09:03:38]MH_SAM_APDU [09:03:38]CAPDU: 80 13 01 00 [09:03:38]Write to MH i2c: E2 08 00 C8 B5 80 13 01 00 00 00 00 00 FA [09:03:38]Write i2c OK [09:03:38]MH_I2C_Read... [09:03:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:38]Read from MH i2c: E2 [09:03:38]MH_I2C_Read... [09:03:38]Read from MH i2c: E2 0E 00 [09:03:38]MH_I2C_Read... [09:03:38]Read from MH i2c: E2 0E 00 C8 B5 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 00 [09:03:38]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:03:38]wFMCommunicate OK [09:03:38]SAM_PROTO_GetShiftState done [09:03:38]FM_GetShiftState done [09:03:38]opened in 1729383220 [09:03:38]opened+sec_in_day 1729469620 [09:03:38]quantity*price = 80012 [09:03:38]sum+1 = 80013 [09:03:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.12 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 0.00 Безнал.: 800.12 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 58 20.10.2024 09:03 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69213 ФПД: 196096726137775 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090348&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69213&fm=196096726137775&tin=02508201610067®Number=0000000000156251&sum=80012 [09:03:39]StoreToDocumentArchive [09:03:39]shift 193 fd 69213 [09:03:39]save to /storage/0193/doc_00069213 [09:03:39]save last doc name /storage/0193/doc_00069213 to /storage/kkm_last_doc_name [09:03:39]save OK [09:03:39]Clear old archive folders... [09:03:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:03:39]tlvbuf is 00533400 [09:03:39]SAM_PROTO_ClearQueue [09:03:39]wFMCommunicate request_size=4 [09:03:39]MH_SAM_APDU [09:03:39]CAPDU: 80 09 00 00 [09:03:39]Write to MH i2c: E2 08 00 D5 B5 80 09 00 00 00 00 00 00 FC [09:03:39]Write i2c OK [09:03:39]MH_I2C_Read... [09:03:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:03:39]Read from MH i2c: E2 [09:03:39]MH_I2C_Read... [09:03:39]Read from MH i2c: E2 03 00 [09:03:39]MH_I2C_Read... [09:03:39]Read from MH i2c: E2 03 00 D5 B5 00 90 00 FE [09:03:39]RAPDU: 90 00 [09:03:39]wFMCommunicate OK [09:03:39]SAM_PROTO_ClearQueue done [09:03:39]KKMCreateOFDPacket [09:03:39]OFDProtocolAddRootSTLVToBuf [09:03:39]FM_MakeSignedData [09:03:39]FM_MakeSignedData [09:03:39]SAM_PROTO_SignData [09:03:39]wFMCommunicate request_size=4 [09:03:39]MH_SAM_APDU [09:03:39]CAPDU: 80 0D 01 02 [09:03:39]Write to MH i2c: E2 08 00 D6 B5 80 0D 01 02 00 00 00 00 04 [09:03:39]Write i2c OK [09:03:39]MH_I2C_Read... [09:03:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:03:39]Read from MH i2c: E2 [09:03:39]MH_I2C_Read... [09:03:39]Read from MH i2c: E2 03 00 [09:03:39]MH_I2C_Read... [09:03:39]Read from MH i2c: E2 03 00 D6 B5 00 90 00 FF [09:03:39]RAPDU: 90 00 [09:03:39]wFMCommunicate OK [09:03:39]wFMCommunicate request_size=255 [09:03:39]MH_SAM_APDU [09:03:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 74 C7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5D 0E 01 00 35 04 06 00 B2 [09:03:39]Write to MH i2c: E2 02 01 D7 B5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 74 C7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5D 0E 01 00 35 04 06 00 B2 00 00 60 [09:03:39]Write i2c OK [09:03:39]MH_I2C_Read... [09:03:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:40]Read from MH i2c: E2 [09:03:40]MH_I2C_Read... [09:03:40]Read from MH i2c: E2 03 00 [09:03:40]MH_I2C_Read... [09:03:40]Read from MH i2c: E2 03 00 D7 B5 00 90 00 00 [09:03:40]RAPDU: 90 00 [09:03:40]wFMCommunicate OK [09:03:40]wFMCommunicate request_size=10 [09:03:40]MH_SAM_APDU [09:03:40]CAPDU: 80 0D 02 02 05 59 53 B3 FB AF [09:03:40]Write to MH i2c: E2 0D 00 D8 B5 80 0D 02 02 05 00 59 53 B3 FB AF 00 00 1A [09:03:40]Write i2c OK [09:03:40]MH_I2C_Read... [09:03:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:40]Read from MH i2c: E2 [09:03:40]MH_I2C_Read... [09:03:40]Read from MH i2c: E2 03 00 [09:03:40]MH_I2C_Read... [09:03:40]Read from MH i2c: E2 03 00 D8 B5 00 90 00 01 [09:03:40]RAPDU: 90 00 [09:03:40]wFMCommunicate OK [09:03:40]wFMCommunicate request_size=4 [09:03:40]MH_SAM_APDU [09:03:40]CAPDU: 80 0D 03 02 [09:03:40]Write to MH i2c: E2 08 00 D9 B5 80 0D 03 02 00 00 00 00 09 [09:03:40]Write i2c OK [09:03:40]MH_I2C_Read... [09:03:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:03:40]Read from MH i2c: E2 [09:03:40]MH_I2C_Read... [09:03:40]Read from MH i2c: E2 0B 00 [09:03:40]MH_I2C_Read... [09:03:40]Read from MH i2c: E2 0B 00 D9 B5 00 B6 43 76 F6 5A 56 50 B7 90 00 26 [09:03:40]RAPDU: B6 43 76 F6 5A 56 50 B7 90 00 [09:03:40]wFMCommunicate OK [09:03:40]SAM_PROTO_SignData done [09:03:40]FM_MakeSignedData done [09:03:40]CreateOFDProtocolMessage [09:03:40]wFMCommunicate request_size=4 [09:03:40]MH_SAM_APDU [09:03:40]CAPDU: 80 11 00 00 [09:03:40]Write to MH i2c: E2 08 00 DA B5 80 11 00 00 00 00 00 00 09 [09:03:40]Write i2c OK [09:03:40]MH_I2C_Read... [09:03:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:40]Read from MH i2c: E2 [09:03:40]MH_I2C_Read... [09:03:40]Read from MH i2c: E2 17 00 [09:03:40]MH_I2C_Read... [09:03:40]Read from MH i2c: E2 17 00 DA B5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5B [09:03:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:03:40]wFMCommunicate OK [09:03:40]CreateOFDProtocolMessage done [09:03:40]OFDSenderStorePacket 69213 [09:03:40]StoreOFDPacket docnum=69213 [09:03:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 7F 2B 07 01 96 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 74 C7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5D 0E 01 00 35 04 06 00 B2 59 53 B3 FB AF B6 43 76 F6 5A 56 50 B7 [09:03:40]CheckFolder [09:03:40]dirname=/storage/ofd_packets [09:03:40]CheckFolder done [09:03:40]ProducePacketName [09:03:40]name=ofd_packets/00069213 [09:03:40]NVStorageSaveData ofd_packets/00069213 [09:03:40]File name is /storage/ofd_packets/00069213 [09:03:40]Write 301 bytes [09:03:40]NVStorageSaveData done [09:03:40]OFDSenderStorePacket done [09:03:40]KKMCreateOFDPacket done [09:03:40]NVStorageSaveData kkm_last_timestamp [09:03:40]File name is /storage/kkm_last_timestamp [09:03:40]Write 4 bytes [09:03:40]NVStorageSaveData done [09:03:40]ExternCall_PrintAddStr [09:03:40]wPrintStart [09:03:40]Write to MH i2c: 01 00 00 DB B5 90 [09:03:40]Write i2c OK [09:03:40]MH_I2C_Read... [09:03:40]Read from MH i2c: 01 [09:03:40]MH_I2C_Read... [09:03:40]Read from MH i2c: 01 07 00 [09:03:40]MH_I2C_Read... [09:03:40]Read from MH i2c: 01 07 00 DB B5 00 00 00 00 00 FF 0F A5 [09:03:40]RasterBufferAndPrint [09:03:40]line Счет N : (1)2884926 [09:03:40]line ИНН: 02508201610067 [09:03:40]line Контрольно-Кассовый Чек [09:03:40]line ПРОДАЖА [09:03:40]line ТРК (МРК, ГНК) : 32 [09:03:40]line Товар: 2710124130 [09:03:40]line Аи-92-К-5 [09:03:40]line 11.960 * 66.90 [09:03:40]line = 800.12 [09:03:40]line НДС 12% НСП 1% [09:03:40]line > о реализуемом товаре [09:03:40]line ИТОГО: 800.12 [09:03:40]line НСП 1% : 7.08 [09:03:40]line НДС 12% : 84.97 [09:03:40]line Наличными: 0.00 [09:03:40]line Безнал.: 800.12 [09:03:40]line Место: АЗС № 85 "Партнер Нефть" [09:03:40]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:03:40]line СНО: Общий режим [09:03:40]line Чек 58 20.10.2024 09:03 [09:03:40]line Смена: 193 ФФД: 1.0 [09:03:40]line ЗНМ: 0300000167 [09:03:40]line РНМ: 0000000000156251 [09:03:40]line Версия ККМ: v1.0 [09:03:40]line Платежная система: Mbank [09:03:40]line ФМ: 0000000000963346 [09:03:40]line ФД: 69213 [09:03:40]line ФПД: 196096726137775 [09:03:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090348&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69213&fm=196096726137775&tin=02508201610067®Number=0000000000156251&sum=80012 [09:03:40]OFD Sender: Processing packet 69213 [packets to send 18, broken 17] [09:03:40]ProducePacketName [09:03:40]name=ofd_packets/00069213 [09:03:40]OFD Sender: To server: pG, [09:03:40]CommunicateWithHost lk.salyk.kg:30040 [09:03:40]ConnectInit lk.salyk.kg [09:03:40]written 0, free lines is 4095 [09:03:40]Connected sock=9 [09:03:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 7F 2B 07 01 96 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 74 C7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5D 0E 01 00 35 04 06 00 B2 59 53 B3 FB AF B6 43 76 F6 5A 56 50 B7 [09:03:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 E7 94 47 00 B7 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5D 0E 01 00 F4 03 04 00 1B 71 14 67 B6 04 01 00 00 9F 1A C9 F3 89 10 3C 0D [09:03:41]CommunicateWithHost err = 0 [09:03:41]CheckOFDResponse [09:03:41]1017 (14) - 77093643461234 [09:03:41]1041 (16) - 0000000000963346 [09:03:41]1040 (4) - 69213 [09:03:41]1012 (4) - 20.10.2024 02:55 [09:03:41]1206 (1) - 0 [09:03:41]OFD Sender: Remove packet 69213 [09:03:41]ProducePacketName [09:03:41]name=ofd_packets/00069213 [09:03:41]NVStorageDeleteData [09:03:41]Write to MH i2c: 01 00 00 04 B6 BA [09:03:41]Write i2c OK [09:03:41]MH_I2C_Read... [09:03:41]Read from MH i2c: 01 [09:03:41]MH_I2C_Read... [09:03:41]Read from MH i2c: 01 07 00 [09:03:41]MH_I2C_Read... [09:03:41]Read from MH i2c: 01 07 00 04 B6 00 00 00 00 00 20 0D EE [09:03:41]RasterBufferAndPrint [09:03:41]line [09:03:41]line [09:03:41]line [09:03:41]line [09:03:41]line [09:03:41]written 0, free lines is 3369 [09:03:41]MH_Cut [09:03:41]Write to MH i2c: D1 01 00 0B B6 01 93 [09:03:41]Write i2c OK [09:03:41]MH_I2C_Read... [09:03:41]Read from MH i2c: D1 [09:03:41]MH_I2C_Read... [09:03:41]Read from MH i2c: D1 01 00 [09:03:41]MH_I2C_Read... [09:03:41]Read from MH i2c: D1 01 00 0B B6 00 92 [09:03:41]Write to MH i2c: 01 00 00 0C B6 C2 [09:03:41]Write i2c OK [09:03:41]MH_I2C_Read... [09:03:41]OFD Sender: No OFD packet to send [09:03:41]*** Cut start [09:03:41]*** Partial cut [09:03:41]*** CUTSNS_PIN = 1 [09:03:41]*** CUTSNS_PIN = 0 [09:03:42]*** Brake cut motor [09:03:42]Read from MH i2c: 01 [09:03:42]MH_I2C_Read... [09:03:42]*** Stop cut motor [09:03:42]*** Cut end [09:03:42]Read from MH i2c: 01 07 00 [09:03:42]MH_I2C_Read... [09:03:42]Read from MH i2c: 01 07 00 0C B6 00 00 00 00 00 FF 0F D7 [09:03:42]process_action close_receipt done [09:03:42]requested_data is exist [09:03:42]produce_requested_data [09:03:42]requested_item fm.sn is exist - process it [09:03:42]wFMCommunicate request_size=4 [09:03:42]MH_SAM_APDU [09:03:42]CAPDU: 80 11 00 00 [09:03:42]Write to MH i2c: E2 08 00 0D B6 80 11 00 00 00 00 00 00 3D [09:03:42]Write i2c OK [09:03:42]MH_I2C_Read... [09:03:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:42]Read from MH i2c: E2 [09:03:42]MH_I2C_Read... [09:03:42]Read from MH i2c: E2 17 00 [09:03:42]MH_I2C_Read... [09:03:42]Read from MH i2c: E2 17 00 0D B6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8F [09:03:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:03:42]wFMCommunicate OK [09:03:42]requested_item fd.num is exist - process it [09:03:42]SAM_PROTO_GetFieldsCounters [09:03:42]wFMCommunicate request_size=4 [09:03:42]MH_SAM_APDU [09:03:42]CAPDU: 80 13 00 00 [09:03:42]Write to MH i2c: E2 08 00 0E B6 80 13 00 00 00 00 00 00 40 [09:03:42]Write i2c OK [09:03:42]MH_I2C_Read... [09:03:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:42]Read from MH i2c: E2 [09:03:42]MH_I2C_Read... [09:03:42]Read from MH i2c: E2 62 00 [09:03:42]MH_I2C_Read... [09:03:42]Read from MH i2c: E2 62 00 0E B6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5D 0E 01 00 0E 04 04 00 C1 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 36 [09:03:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5D 0E 01 00 0E 04 04 00 C1 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 [09:03:42]wFMCommunicate OK [09:03:42]SAM_PROTO_GetFieldsCounters done [09:03:42]requested_item shift.num is exist - process it [09:03:42]requested_item shift.opened is exist - process it [09:03:42]req_shift_opened [09:03:42]FM_GetShiftState [09:03:42]SAM_PROTO_GetShiftState [09:03:42]wFMCommunicate request_size=4 [09:03:42]MH_SAM_APDU [09:03:42]CAPDU: 80 13 01 00 [09:03:42]Write to MH i2c: E2 08 00 0F B6 80 13 01 00 00 00 00 00 42 [09:03:42]Write i2c OK [09:03:42]MH_I2C_Read... [09:03:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:42]Read from MH i2c: E2 [09:03:42]MH_I2C_Read... [09:03:42]Read from MH i2c: E2 0E 00 [09:03:42]MH_I2C_Read... [09:03:42]Read from MH i2c: E2 0E 00 0F B6 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 48 [09:03:42]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:03:42]wFMCommunicate OK [09:03:42]SAM_PROTO_GetShiftState done [09:03:42]FM_GetShiftState done [09:03:42]req_shift_opened done [09:03:42]requested_item shift.open_date is exist - process it [09:03:42]req_shift_open_date [09:03:42]req_shift_open_date done [09:03:42]produce_requested_data done [09:03:42]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69213,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [09:03:42]process_action_free close_receipt [09:03:42]json_value_free [09:03:42]json_value_free done [09:03:42]process_json_proto returns [09:03:42]Send response to host [09:03:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69213,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [09:03:42]free response buf [09:03:42]execute_script done [09:03:42]execute_script returns [09:03:42]free content buf [09:03:42]Sock 10.Close socket [09:03:42]Sock 10.Thread stoped [09:03:46]OFD Sender: No OFD packet to send [09:03:51]OFD Sender: No OFD packet to send [09:03:56]OFD Sender: No OFD packet to send [09:04:01]OFD Sender: No OFD packet to send [09:04:06]OFD Sender: No OFD packet to send [09:04:11]OFD Sender: No OFD packet to send [09:04:16]OFD Sender: No OFD packet to send [09:04:21]OFD Sender: No OFD packet to send [09:04:26]OFD Sender: No OFD packet to send [09:04:31]OFD Sender: No OFD packet to send [09:04:36]OFD Sender: No OFD packet to send [09:04:41]OFD Sender: No OFD packet to send [09:04:46]OFD Sender: No OFD packet to send [09:04:51]OFD Sender: No OFD packet to send [09:04:56]OFD Sender: No OFD packet to send [09:05:01]OFD Sender: No OFD packet to send [09:05:06]OFD Sender: No OFD packet to send [09:05:11]OFD Sender: No OFD packet to send [09:05:16]OFD Sender: No OFD packet to send [09:05:21]OFD Sender: No OFD packet to send [09:05:26]OFD Sender: No OFD packet to send [09:05:31]OFD Sender: No OFD packet to send [09:05:36]OFD Sender: No OFD packet to send [09:05:41]OFD Sender: No OFD packet to send [09:05:46]OFD Sender: No OFD packet to send [09:05:51]OFD Sender: No OFD packet to send [09:05:55]accept exits with 8 [09:05:55]New connection [09:05:55]New thread 3067116900 created [09:05:55]Thread 3067260260 joined [09:05:55]Waiting for new connection... [09:05:55] Sock 8.Parse request [09:05:55]Sock 8.Check first char [09:05:55]Sock 8.First char is OK [09:05:55]request: POST /json_proto HTTP/1.0 [09:05:55]Method: POST [09:05:55]URL: /json_proto [09:05:55]Method is POST - this is cgi request [09:05:55]url: /json_proto [09:05:55]query_string will be loaded in cgi processing [09:05:55]execute_cgi json_proto POST (null) [09:05:55]execute_cgi path=json_proto method=POST [09:05:55]POST find Content-Length [09:05:55]Host: 172.17.50.3:8080 [09:05:55]Content-Length: 683 [09:05:55]Content-Type: application/json [09:05:55] [09:05:55]POST finish read [09:05:55]Found Content-Length = 683 [09:05:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:55]execute_script... [09:05:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:55]POST & json_proto [09:05:55]process_json_proto [09:05:55]json parsed OK: [09:05:55]protocol is kg_v1.0 [09:05:55]action value=close_receipt [09:05:55]process_action close_receipt [09:05:55]cmd_close_receipt [09:05:55]MH_GetDate [09:05:55]Write to MH i2c: F0 00 00 10 B6 B5 [09:05:55]Write i2c OK [09:05:55]MH_I2C_Read... [09:05:55]Read from MH i2c: F0 [09:05:55]MH_I2C_Read... [09:05:55]Read from MH i2c: F0 09 00 [09:05:55]MH_I2C_Read... [09:05:55]Read from MH i2c: F0 09 00 10 B6 00 FC C7 14 67 6B 98 1E 66 83 [09:05:55]GetLastDocTimeStamp 1729415028 [09:05:55]current date 1729415164 [09:05:55]FM_GetShiftState [09:05:55]SAM_PROTO_GetShiftState [09:05:55]wFMCommunicate request_size=4 [09:05:55]MH_SAM_APDU [09:05:55]CAPDU: 80 13 01 00 [09:05:55]Write to MH i2c: E2 08 00 11 B6 80 13 01 00 00 00 00 00 44 [09:05:55]Write i2c OK [09:05:55]MH_I2C_Read... [09:05:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:55]Read from MH i2c: E2 [09:05:55]MH_I2C_Read... [09:05:55]Read from MH i2c: E2 0E 00 [09:05:55]MH_I2C_Read... [09:05:55]Read from MH i2c: E2 0E 00 11 B6 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 4A [09:05:55]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:05:55]wFMCommunicate OK [09:05:55]SAM_PROTO_GetShiftState done [09:05:55]FM_GetShiftState done [09:05:55]opened in 1729383220 [09:05:55]opened+sec_in_day 1729469620 [09:05:55]quantity*price = 150056 [09:05:55]sum+1 = 150058 [09:05:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 59 20.10.2024 09:06 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69214 ФПД: 257054482516895 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090604&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69214&fm=257054482516895&tin=02508201610067®Number=0000000000156251&sum=150000 [09:05:56]StoreToDocumentArchive [09:05:56]shift 193 fd 69214 [09:05:56]save to /storage/0193/doc_00069214 [09:05:56]save last doc name /storage/0193/doc_00069214 to /storage/kkm_last_doc_name [09:05:56]save OK [09:05:56]Clear old archive folders... [09:05:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:05:56]tlvbuf is 0082E950 [09:05:56]SAM_PROTO_ClearQueue [09:05:56]wFMCommunicate request_size=4 [09:05:56]MH_SAM_APDU [09:05:56]CAPDU: 80 09 00 00 [09:05:56]Write to MH i2c: E2 08 00 1E B6 80 09 00 00 00 00 00 00 46 [09:05:56]Write i2c OK [09:05:56]MH_I2C_Read... [09:05:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:05:56]Read from MH i2c: E2 [09:05:56]MH_I2C_Read... [09:05:56]Read from MH i2c: E2 03 00 [09:05:56]MH_I2C_Read... [09:05:56]Read from MH i2c: E2 03 00 1E B6 00 90 00 48 [09:05:56]RAPDU: 90 00 [09:05:56]wFMCommunicate OK [09:05:56]SAM_PROTO_ClearQueue done [09:05:56]KKMCreateOFDPacket [09:05:56]OFDProtocolAddRootSTLVToBuf [09:05:56]FM_MakeSignedData [09:05:56]FM_MakeSignedData [09:05:56]SAM_PROTO_SignData [09:05:56]wFMCommunicate request_size=4 [09:05:56]MH_SAM_APDU [09:05:56]CAPDU: 80 0D 01 02 [09:05:56]Write to MH i2c: E2 08 00 1F B6 80 0D 01 02 00 00 00 00 4E [09:05:56]Write i2c OK [09:05:56]MH_I2C_Read... [09:05:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:05:56]Read from MH i2c: E2 [09:05:56]MH_I2C_Read... [09:05:56]Read from MH i2c: E2 03 00 [09:05:56]MH_I2C_Read... [09:05:56]Read from MH i2c: E2 03 00 1F B6 00 90 00 49 [09:05:56]RAPDU: 90 00 [09:05:56]wFMCommunicate OK [09:05:56]wFMCommunicate request_size=255 [09:05:56]MH_SAM_APDU [09:05:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 FC C7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5E 0E 01 00 35 04 06 00 E9 [09:05:56]Write to MH i2c: E2 02 01 20 B6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 FC C7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5E 0E 01 00 35 04 06 00 E9 00 00 B0 [09:05:56]Write i2c OK [09:05:56]MH_I2C_Read... [09:05:56]OFD Sender: No OFD packet to send [09:05:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:56]Read from MH i2c: E2 [09:05:56]MH_I2C_Read... [09:05:56]Read from MH i2c: E2 03 00 [09:05:56]MH_I2C_Read... [09:05:56]Read from MH i2c: E2 03 00 20 B6 00 90 00 4A [09:05:56]RAPDU: 90 00 [09:05:56]wFMCommunicate OK [09:05:56]wFMCommunicate request_size=10 [09:05:56]MH_SAM_APDU [09:05:56]CAPDU: 80 0D 02 02 05 CA 29 1E 4B 9F [09:05:56]Write to MH i2c: E2 0D 00 21 B6 80 0D 02 02 05 00 CA 29 1E 4B 9F 00 00 56 [09:05:56]Write i2c OK [09:05:56]MH_I2C_Read... [09:05:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:56]Read from MH i2c: E2 [09:05:56]MH_I2C_Read... [09:05:56]Read from MH i2c: E2 03 00 [09:05:56]MH_I2C_Read... [09:05:56]Read from MH i2c: E2 03 00 21 B6 00 90 00 4B [09:05:56]RAPDU: 90 00 [09:05:56]wFMCommunicate OK [09:05:56]wFMCommunicate request_size=4 [09:05:56]MH_SAM_APDU [09:05:56]CAPDU: 80 0D 03 02 [09:05:56]Write to MH i2c: E2 08 00 22 B6 80 0D 03 02 00 00 00 00 53 [09:05:56]Write i2c OK [09:05:56]MH_I2C_Read... [09:05:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:05:57]Read from MH i2c: E2 [09:05:57]MH_I2C_Read... [09:05:57]Read from MH i2c: E2 0B 00 [09:05:57]MH_I2C_Read... [09:05:57]Read from MH i2c: E2 0B 00 22 B6 00 3D 39 33 21 09 2A E9 4C 90 00 86 [09:05:57]RAPDU: 3D 39 33 21 09 2A E9 4C 90 00 [09:05:57]wFMCommunicate OK [09:05:57]SAM_PROTO_SignData done [09:05:57]FM_MakeSignedData done [09:05:57]CreateOFDProtocolMessage [09:05:57]wFMCommunicate request_size=4 [09:05:57]MH_SAM_APDU [09:05:57]CAPDU: 80 11 00 00 [09:05:57]Write to MH i2c: E2 08 00 23 B6 80 11 00 00 00 00 00 00 53 [09:05:57]Write i2c OK [09:05:57]MH_I2C_Read... [09:05:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:57]Read from MH i2c: E2 [09:05:57]MH_I2C_Read... [09:05:57]Read from MH i2c: E2 17 00 [09:05:57]MH_I2C_Read... [09:05:57]Read from MH i2c: E2 17 00 23 B6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A5 [09:05:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:05:57]wFMCommunicate OK [09:05:57]CreateOFDProtocolMessage done [09:05:57]OFDSenderStorePacket 69214 [09:05:57]StoreOFDPacket docnum=69214 [09:05:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 67 2D 07 01 58 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 FC C7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5E 0E 01 00 35 04 06 00 E9 CA 29 1E 4B 9F 3D 39 33 21 09 2A E9 4C [09:05:57]CheckFolder [09:05:57]dirname=/storage/ofd_packets [09:05:57]CheckFolder done [09:05:57]ProducePacketName [09:05:57]name=ofd_packets/00069214 [09:05:57]NVStorageSaveData ofd_packets/00069214 [09:05:57]File name is /storage/ofd_packets/00069214 [09:05:57]Write 301 bytes [09:05:57]NVStorageSaveData done [09:05:57]OFDSenderStorePacket done [09:05:57]KKMCreateOFDPacket done [09:05:57]NVStorageSaveData kkm_last_timestamp [09:05:57]File name is /storage/kkm_last_timestamp [09:05:57]Write 4 bytes [09:05:57]NVStorageSaveData done [09:05:57]ExternCall_PrintAddStr [09:05:57]wPrintStart [09:05:57]Write to MH i2c: 01 00 00 24 B6 DA [09:05:57]Write i2c OK [09:05:57]MH_I2C_Read... [09:05:57]Read from MH i2c: 01 [09:05:57]MH_I2C_Read... [09:05:57]Read from MH i2c: 01 07 00 [09:05:57]MH_I2C_Read... [09:05:57]Read from MH i2c: 01 07 00 24 B6 00 00 00 00 00 FF 0F EF [09:05:57]RasterBufferAndPrint [09:05:57]line Счет N : (1)2884928 [09:05:57]line ИНН: 02508201610067 [09:05:57]line Контрольно-Кассовый Чек [09:05:57]line ПРОДАЖА [09:05:57]line ТРК (МРК, ГНК) : 42 [09:05:57]line Товар: 2710124130 [09:05:57]line Аи-92-К-5 [09:05:57]line 22.430 * 66.90 [09:05:57]line = 1500.57 [09:05:57]line НДС 12% НСП 1% [09:05:57]line > о реализуемом товаре [09:05:57]line ОКРУГЛЕНИЕ: -0.57 [09:05:57]line ИТОГО: 1500.00 [09:05:57]line Внесено: 1500.00 [09:05:57]line СДАЧА: 0.00 [09:05:57]line НСП 1% : 13.28 [09:05:57]line НДС 12% : 159.35 [09:05:57]line Наличными: 1500.00 [09:05:57]line Безнал.: 0.00 [09:05:57]line Место: АЗС № 85 "Партнер Нефть" [09:05:57]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:05:57]line СНО: Общий режим [09:05:57]line Чек 59 20.10.2024 09:06 [09:05:57]line Смена: 193 ФФД: 1.0 [09:05:57]line ЗНМ: 0300000167 [09:05:57]line РНМ: 0000000000156251 [09:05:57]line Версия ККМ: v1.0 [09:05:57]line ФМ: 0000000000963346 [09:05:57]line ФД: 69214 [09:05:57]line ФПД: 257054482516895 [09:05:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090604&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69214&fm=257054482516895&tin=02508201610067®Number=0000000000156251&sum=150000 [09:05:57]OFD Sender: Processing packet 69214 [packets to send 18, broken 17] [09:05:57]ProducePacketName [09:05:57]name=ofd_packets/00069214 [09:05:57]OFD Sender: To server: pG, [09:05:57]CommunicateWithHost lk.salyk.kg:30040 [09:05:57]ConnectInit lk.salyk.kg [09:05:57]written 0, free lines is 4095 [09:05:57]Connected sock=9 [09:05:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 67 2D 07 01 58 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 FC C7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5E 0E 01 00 35 04 06 00 E9 CA 29 1E 4B 9F 3D 39 33 21 09 2A E9 4C [09:05:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 11 C4 47 00 28 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5E 0E 01 00 F4 03 04 00 A4 71 14 67 B6 04 01 00 00 15 D6 94 99 A4 13 21 82 [09:05:57]CommunicateWithHost err = 0 [09:05:57]CheckOFDResponse [09:05:57]1017 (14) - 77093643461234 [09:05:57]1041 (16) - 0000000000963346 [09:05:57]1040 (4) - 69214 [09:05:57]1012 (4) - 20.10.2024 02:57 [09:05:57]1206 (1) - 0 [09:05:57]OFD Sender: Remove packet 69214 [09:05:57]ProducePacketName [09:05:57]name=ofd_packets/00069214 [09:05:57]NVStorageDeleteData [09:05:57]Write to MH i2c: 01 00 00 4F B6 05 [09:05:57]Write i2c OK [09:05:57]MH_I2C_Read... [09:05:57]Read from MH i2c: 01 [09:05:57]MH_I2C_Read... [09:05:57]Read from MH i2c: 01 07 00 [09:05:57]MH_I2C_Read... [09:05:57]Read from MH i2c: 01 07 00 4F B6 00 00 00 00 00 F9 0C 11 [09:05:57]RasterBufferAndPrint [09:05:57]line [09:05:57]line [09:05:57]line [09:05:57]line [09:05:57]line [09:05:57]written 0, free lines is 3330 [09:05:57]MH_Cut [09:05:57]Write to MH i2c: D1 01 00 56 B6 01 DE [09:05:57]Write i2c OK [09:05:57]MH_I2C_Read... [09:05:57]Read from MH i2c: D1 [09:05:57]MH_I2C_Read... [09:05:57]Read from MH i2c: D1 01 00 [09:05:57]MH_I2C_Read... [09:05:57]Read from MH i2c: D1 01 00 56 B6 00 DD [09:05:57]Write to MH i2c: 01 00 00 57 B6 0D [09:05:57]Write i2c OK [09:05:57]MH_I2C_Read... [09:05:58]OFD Sender: No OFD packet to send [09:05:58]*** Cut start [09:05:58]*** Partial cut [09:05:58]*** CUTSNS_PIN = 1 [09:05:58]*** CUTSNS_PIN = 0 [09:05:58]*** Brake cut motor [09:05:59]Read from MH i2c: 01 [09:05:59]MH_I2C_Read... [09:05:59]*** Stop cut motor [09:05:59]*** Cut end [09:05:59]Read from MH i2c: 01 07 00 [09:05:59]MH_I2C_Read... [09:05:59]Read from MH i2c: 01 07 00 57 B6 00 00 00 00 00 FF 0F 22 [09:05:59]process_action close_receipt done [09:05:59]requested_data is exist [09:05:59]produce_requested_data [09:05:59]requested_item fm.sn is exist - process it [09:05:59]wFMCommunicate request_size=4 [09:05:59]MH_SAM_APDU [09:05:59]CAPDU: 80 11 00 00 [09:05:59]Write to MH i2c: E2 08 00 58 B6 80 11 00 00 00 00 00 00 88 [09:05:59]Write i2c OK [09:05:59]MH_I2C_Read... [09:05:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:59]Read from MH i2c: E2 [09:05:59]MH_I2C_Read... [09:05:59]Read from MH i2c: E2 17 00 [09:05:59]MH_I2C_Read... [09:05:59]Read from MH i2c: E2 17 00 58 B6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DA [09:05:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:05:59]wFMCommunicate OK [09:05:59]requested_item fd.num is exist - process it [09:05:59]SAM_PROTO_GetFieldsCounters [09:05:59]wFMCommunicate request_size=4 [09:05:59]MH_SAM_APDU [09:05:59]CAPDU: 80 13 00 00 [09:05:59]Write to MH i2c: E2 08 00 59 B6 80 13 00 00 00 00 00 00 8B [09:05:59]Write i2c OK [09:05:59]MH_I2C_Read... [09:05:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:05:59]Read from MH i2c: E2 [09:05:59]MH_I2C_Read... [09:05:59]Read from MH i2c: E2 62 00 [09:05:59]MH_I2C_Read... [09:05:59]Read from MH i2c: E2 62 00 59 B6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5E 0E 01 00 0E 04 04 00 C1 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 85 [09:05:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5E 0E 01 00 0E 04 04 00 C1 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 [09:05:59]wFMCommunicate OK [09:05:59]SAM_PROTO_GetFieldsCounters done [09:05:59]requested_item shift.num is exist - process it [09:05:59]requested_item shift.opened is exist - process it [09:05:59]req_shift_opened [09:05:59]FM_GetShiftState [09:05:59]SAM_PROTO_GetShiftState [09:05:59]wFMCommunicate request_size=4 [09:05:59]MH_SAM_APDU [09:05:59]CAPDU: 80 13 01 00 [09:05:59]Write to MH i2c: E2 08 00 5A B6 80 13 01 00 00 00 00 00 8D [09:05:59]Write i2c OK [09:05:59]MH_I2C_Read... [09:05:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:59]Read from MH i2c: E2 [09:05:59]MH_I2C_Read... [09:05:59]Read from MH i2c: E2 0E 00 [09:05:59]MH_I2C_Read... [09:05:59]Read from MH i2c: E2 0E 00 5A B6 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 93 [09:05:59]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:05:59]wFMCommunicate OK [09:05:59]SAM_PROTO_GetShiftState done [09:05:59]FM_GetShiftState done [09:05:59]req_shift_opened done [09:05:59]requested_item shift.open_date is exist - process it [09:05:59]req_shift_open_date [09:05:59]req_shift_open_date done [09:05:59]produce_requested_data done [09:05:59]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69214,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [09:05:59]process_action_free close_receipt [09:05:59]json_value_free [09:05:59]json_value_free done [09:05:59]process_json_proto returns [09:05:59]Send response to host [09:05:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69214,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [09:05:59]free response buf [09:05:59]execute_script done [09:05:59]execute_script returns [09:05:59]free content buf [09:05:59]Sock 8.Close socket [09:05:59]Sock 8.Thread stoped [09:06:03]OFD Sender: No OFD packet to send [09:06:08]OFD Sender: No OFD packet to send [09:06:12]accept exits with 10 [09:06:12]New connection [09:06:12]New thread 3067260260 created [09:06:12]Thread 3067116900 joined [09:06:12]Waiting for new connection... [09:06:12] Sock 10.Parse request [09:06:12]Sock 10.Check first char [09:06:12]Sock 10.First char is OK [09:06:12]request: POST /json_proto HTTP/1.0 [09:06:12]Method: POST [09:06:12]URL: /json_proto [09:06:12]Method is POST - this is cgi request [09:06:12]url: /json_proto [09:06:12]query_string will be loaded in cgi processing [09:06:12]execute_cgi json_proto POST (null) [09:06:12]execute_cgi path=json_proto method=POST [09:06:12]POST find Content-Length [09:06:12]Host: 172.17.50.3:8080 [09:06:12]Content-Length: 678 [09:06:12]Content-Type: application/json [09:06:12] [09:06:12]POST finish read [09:06:12]Found Content-Length = 678 [09:06:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:12]execute_script... [09:06: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)2884929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:12]POST & json_proto [09:06:12]process_json_proto [09:06:12]json parsed OK: [09:06:12]protocol is kg_v1.0 [09:06:12]action value=close_receipt [09:06:12]process_action close_receipt [09:06:12]cmd_close_receipt [09:06:12]MH_GetDate [09:06:12]Write to MH i2c: F0 00 00 5B B6 00 [09:06:12]Write i2c OK [09:06:12]MH_I2C_Read... [09:06:12]Read from MH i2c: F0 [09:06:12]MH_I2C_Read... [09:06:12]Read from MH i2c: F0 09 00 [09:06:12]MH_I2C_Read... [09:06:12]Read from MH i2c: F0 09 00 5B B6 00 0D C8 14 67 6B 98 1E 66 E0 [09:06:12]GetLastDocTimeStamp 1729415164 [09:06:12]current date 1729415181 [09:06:12]FM_GetShiftState [09:06:12]SAM_PROTO_GetShiftState [09:06:12]wFMCommunicate request_size=4 [09:06:12]MH_SAM_APDU [09:06:12]CAPDU: 80 13 01 00 [09:06:12]Write to MH i2c: E2 08 00 5C B6 80 13 01 00 00 00 00 00 8F [09:06:12]Write i2c OK [09:06:12]MH_I2C_Read... [09:06:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:12]Read from MH i2c: E2 [09:06:12]MH_I2C_Read... [09:06:12]Read from MH i2c: E2 0E 00 [09:06:12]MH_I2C_Read... [09:06:12]Read from MH i2c: E2 0E 00 5C B6 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 95 [09:06:12]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:06:12]wFMCommunicate OK [09:06:12]SAM_PROTO_GetShiftState done [09:06:12]FM_GetShiftState done [09:06:12]opened in 1729383220 [09:06:12]opened+sec_in_day 1729469620 [09:06:12]quantity*price = 60009 [09:06:12]sum+1 = 60010 [09:06:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 60 20.10.2024 09:06 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69215 ФПД: 242728207997769 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090621&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69215&fm=242728207997769&tin=02508201610067®Number=0000000000156251&sum=60000 [09:06:13]StoreToDocumentArchive [09:06:13]shift 193 fd 69215 [09:06:13]save to /storage/0193/doc_00069215 [09:06:13]save last doc name /storage/0193/doc_00069215 to /storage/kkm_last_doc_name [09:06:13]save OK [09:06:13]Clear old archive folders... [09:06:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:06:13]tlvbuf is 007E1A70 [09:06:13]SAM_PROTO_ClearQueue [09:06:13]wFMCommunicate request_size=4 [09:06:13]MH_SAM_APDU [09:06:13]CAPDU: 80 09 00 00 [09:06:13]Write to MH i2c: E2 08 00 69 B6 80 09 00 00 00 00 00 00 91 [09:06:13]Write i2c OK [09:06:13]MH_I2C_Read... [09:06:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:06:13]OFD Sender: No OFD packet to send [09:06:13]Read from MH i2c: E2 [09:06:13]MH_I2C_Read... [09:06:13]Read from MH i2c: E2 03 00 [09:06:13]MH_I2C_Read... [09:06:13]Read from MH i2c: E2 03 00 69 B6 00 90 00 93 [09:06:13]RAPDU: 90 00 [09:06:13]wFMCommunicate OK [09:06:13]SAM_PROTO_ClearQueue done [09:06:13]KKMCreateOFDPacket [09:06:13]OFDProtocolAddRootSTLVToBuf [09:06:13]FM_MakeSignedData [09:06:13]FM_MakeSignedData [09:06:13]SAM_PROTO_SignData [09:06:13]wFMCommunicate request_size=4 [09:06:13]MH_SAM_APDU [09:06:13]CAPDU: 80 0D 01 02 [09:06:13]Write to MH i2c: E2 08 00 6A B6 80 0D 01 02 00 00 00 00 99 [09:06:13]Write i2c OK [09:06:13]MH_I2C_Read... [09:06:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:06:13]Read from MH i2c: E2 [09:06:13]MH_I2C_Read... [09:06:13]Read from MH i2c: E2 03 00 [09:06:13]MH_I2C_Read... [09:06:13]Read from MH i2c: E2 03 00 6A B6 00 90 00 94 [09:06:13]RAPDU: 90 00 [09:06:13]wFMCommunicate OK [09:06:13]wFMCommunicate request_size=255 [09:06:13]MH_SAM_APDU [09:06:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 0D C8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5F 0E 01 00 35 04 06 00 DC [09:06:13]Write to MH i2c: E2 02 01 6B B6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 0D C8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5F 0E 01 00 35 04 06 00 DC 00 00 96 [09:06:13]Write i2c OK [09:06:13]MH_I2C_Read... [09:06:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:13]Read from MH i2c: E2 [09:06:13]MH_I2C_Read... [09:06:13]Read from MH i2c: E2 03 00 [09:06:13]MH_I2C_Read... [09:06:13]Read from MH i2c: E2 03 00 6B B6 00 90 00 95 [09:06:13]RAPDU: 90 00 [09:06:13]wFMCommunicate OK [09:06:13]wFMCommunicate request_size=10 [09:06:13]MH_SAM_APDU [09:06:13]CAPDU: 80 0D 02 02 05 C2 90 9D 5B 49 [09:06:13]Write to MH i2c: E2 0D 00 6C B6 80 0D 02 02 05 00 C2 90 9D 5B 49 00 00 39 [09:06:13]Write i2c OK [09:06:13]MH_I2C_Read... [09:06:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:13]Read from MH i2c: E2 [09:06:13]MH_I2C_Read... [09:06:13]Read from MH i2c: E2 03 00 [09:06:13]MH_I2C_Read... [09:06:13]Read from MH i2c: E2 03 00 6C B6 00 90 00 96 [09:06:13]RAPDU: 90 00 [09:06:13]wFMCommunicate OK [09:06:13]wFMCommunicate request_size=4 [09:06:13]MH_SAM_APDU [09:06:13]CAPDU: 80 0D 03 02 [09:06:13]Write to MH i2c: E2 08 00 6D B6 80 0D 03 02 00 00 00 00 9E [09:06:13]Write i2c OK [09:06:13]MH_I2C_Read... [09:06:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:06:13]Read from MH i2c: E2 [09:06:13]MH_I2C_Read... [09:06:13]Read from MH i2c: E2 0B 00 [09:06:13]MH_I2C_Read... [09:06:13]Read from MH i2c: E2 0B 00 6D B6 00 24 49 5F D9 40 C1 42 19 90 00 A0 [09:06:13]RAPDU: 24 49 5F D9 40 C1 42 19 90 00 [09:06:13]wFMCommunicate OK [09:06:13]SAM_PROTO_SignData done [09:06:13]FM_MakeSignedData done [09:06:13]CreateOFDProtocolMessage [09:06:13]wFMCommunicate request_size=4 [09:06:13]MH_SAM_APDU [09:06:13]CAPDU: 80 11 00 00 [09:06:13]Write to MH i2c: E2 08 00 6E B6 80 11 00 00 00 00 00 00 9E [09:06:13]Write i2c OK [09:06:13]MH_I2C_Read... [09:06:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:13]Read from MH i2c: E2 [09:06:13]MH_I2C_Read... [09:06:13]Read from MH i2c: E2 17 00 [09:06:13]MH_I2C_Read... [09:06:13]Read from MH i2c: E2 17 00 6E B6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F0 [09:06:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:06:13]wFMCommunicate OK [09:06:13]CreateOFDProtocolMessage done [09:06:13]OFDSenderStorePacket 69215 [09:06:13]StoreOFDPacket docnum=69215 [09:06:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 2D 08 07 01 8D 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 0D C8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5F 0E 01 00 35 04 06 00 DC C2 90 9D 5B 49 24 49 5F D9 40 C1 42 19 [09:06:13]CheckFolder [09:06:13]dirname=/storage/ofd_packets [09:06:13]CheckFolder done [09:06:13]ProducePacketName [09:06:13]name=ofd_packets/00069215 [09:06:13]NVStorageSaveData ofd_packets/00069215 [09:06:13]File name is /storage/ofd_packets/00069215 [09:06:13]Write 301 bytes [09:06:13]NVStorageSaveData done [09:06:13]OFDSenderStorePacket done [09:06:13]KKMCreateOFDPacket done [09:06:13]NVStorageSaveData kkm_last_timestamp [09:06:13]File name is /storage/kkm_last_timestamp [09:06:13]Write 4 bytes [09:06:13]NVStorageSaveData done [09:06:13]ExternCall_PrintAddStr [09:06:13]wPrintStart [09:06:13]Write to MH i2c: 01 00 00 6F B6 25 [09:06:13]Write i2c OK [09:06:13]MH_I2C_Read... [09:06:13]Read from MH i2c: 01 [09:06:13]MH_I2C_Read... [09:06:13]Read from MH i2c: 01 07 00 [09:06:13]MH_I2C_Read... [09:06:13]Read from MH i2c: 01 07 00 6F B6 00 00 00 00 00 FF 0F 3A [09:06:13]RasterBufferAndPrint [09:06:13]line Счет N : (1)2884929 [09:06:13]line ИНН: 02508201610067 [09:06:13]line Контрольно-Кассовый Чек [09:06:13]line ПРОДАЖА [09:06:13]line ТРК (МРК, ГНК) : 22 [09:06:13]line Товар: 2710124130 [09:06:13]line Аи-92-К-5 [09:06:13]line 8.970 * 66.90 [09:06:13]line = 600.09 [09:06:13]line НДС 12% НСП 1% [09:06:13]line > о реализуемом товаре [09:06:13]line ОКРУГЛЕНИЕ: -0.09 [09:06:13]line ИТОГО: 600.00 [09:06:13]line Внесено: 600.00 [09:06:13]line СДАЧА: 0.00 [09:06:13]line НСП 1% : 5.31 [09:06:13]line НДС 12% : 63.73 [09:06:13]line Наличными: 600.00 [09:06:13]line Безнал.: 0.00 [09:06:13]line Место: АЗС № 85 "Партнер Нефть" [09:06:13]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:06:13]line СНО: Общий режим [09:06:13]line Чек 60 20.10.2024 09:06 [09:06:13]line Смена: 193 ФФД: 1.0 [09:06:13]line ЗНМ: 0300000167 [09:06:13]line РНМ: 0000000000156251 [09:06:13]line Версия ККМ: v1.0 [09:06:13]line ФМ: 0000000000963346 [09:06:13]line ФД: 69215 [09:06:13]line ФПД: 242728207997769 [09:06:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090621&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69215&fm=242728207997769&tin=02508201610067®Number=0000000000156251&sum=60000 [09:06:14]OFD Sender: Processing packet 69215 [packets to send 18, broken 17] [09:06:14]ProducePacketName [09:06:14]name=ofd_packets/00069215 [09:06:14]OFD Sender: To server: pG, [09:06:14]CommunicateWithHost lk.salyk.kg:30040 [09:06:14]ConnectInit lk.salyk.kg [09:06:14]written 0, free lines is 4095 [09:06:14]Connected sock=9 [09:06:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 2D 08 07 01 8D 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 0D C8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5F 0E 01 00 35 04 06 00 DC C2 90 9D 5B 49 24 49 5F D9 40 C1 42 19 [09:06:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 68 56 47 00 BC 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 30 39 36 33 33 34 36 10 04 04 00 5F 0E 01 00 F4 03 04 00 B4 71 14 67 B6 04 01 00 00 7C 4F F4 03 26 BF A8 27 [09:06:14]CommunicateWithHost err = 0 [09:06:14]CheckOFDResponse [09:06:14]1017 (14) - 77093643461234 [09:06:14]1041 (16) - 0000000000963346 [09:06:14]1040 (4) - 69215 [09:06:14]1012 (4) - 20.10.2024 02:57 [09:06:14]1206 (1) - 0 [09:06:14]OFD Sender: Remove packet 69215 [09:06:14]ProducePacketName [09:06:14]name=ofd_packets/00069215 [09:06:14]NVStorageDeleteData [09:06:14]Write to MH i2c: 01 00 00 9A B6 50 [09:06:14]Write i2c OK [09:06:14]MH_I2C_Read... [09:06:14]Read from MH i2c: 01 [09:06:14]MH_I2C_Read... [09:06:14]Read from MH i2c: 01 07 00 [09:06:14]MH_I2C_Read... [09:06:14]Read from MH i2c: 01 07 00 9A B6 00 00 00 00 00 F6 0C 59 [09:06:14]RasterBufferAndPrint [09:06:14]line [09:06:14]line [09:06:14]line [09:06:14]line [09:06:14]line [09:06:14]written 0, free lines is 3328 [09:06:14]MH_Cut [09:06:14]Write to MH i2c: D1 01 00 A1 B6 01 29 [09:06:14]Write i2c OK [09:06:14]MH_I2C_Read... [09:06:14]Read from MH i2c: D1 [09:06:14]MH_I2C_Read... [09:06:14]Read from MH i2c: D1 01 00 [09:06:14]MH_I2C_Read... [09:06:14]Read from MH i2c: D1 01 00 A1 B6 00 28 [09:06:14]Write to MH i2c: 01 00 00 A2 B6 58 [09:06:14]Write i2c OK [09:06:14]MH_I2C_Read... [09:06:15]OFD Sender: No OFD packet to send [09:06:15]*** Cut start [09:06:15]*** Partial cut [09:06:15]*** CUTSNS_PIN = 1 [09:06:15]*** CUTSNS_PIN = 0 [09:06:15]*** Brake cut motor [09:06:15]Read from MH i2c: 01 [09:06:15]MH_I2C_Read... [09:06:15]*** Stop cut motor [09:06:15]*** Cut end [09:06:15]Read from MH i2c: 01 07 00 [09:06:15]MH_I2C_Read... [09:06:15]Read from MH i2c: 01 07 00 A2 B6 00 00 00 00 00 FF 0F 6D [09:06:15]process_action close_receipt done [09:06:15]requested_data is exist [09:06:15]produce_requested_data [09:06:15]requested_item fm.sn is exist - process it [09:06:15]wFMCommunicate request_size=4 [09:06:15]MH_SAM_APDU [09:06:15]CAPDU: 80 11 00 00 [09:06:15]Write to MH i2c: E2 08 00 A3 B6 80 11 00 00 00 00 00 00 D3 [09:06:15]Write i2c OK [09:06:15]MH_I2C_Read... [09:06:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:16]Read from MH i2c: E2 [09:06:16]MH_I2C_Read... [09:06:16]Read from MH i2c: E2 17 00 [09:06:16]MH_I2C_Read... [09:06:16]Read from MH i2c: E2 17 00 A3 B6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 25 [09:06:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:06:16]wFMCommunicate OK [09:06:16]requested_item fd.num is exist - process it [09:06:16]SAM_PROTO_GetFieldsCounters [09:06:16]wFMCommunicate request_size=4 [09:06:16]MH_SAM_APDU [09:06:16]CAPDU: 80 13 00 00 [09:06:16]Write to MH i2c: E2 08 00 A4 B6 80 13 00 00 00 00 00 00 D6 [09:06:16]Write i2c OK [09:06:16]MH_I2C_Read... [09:06:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:16]Read from MH i2c: E2 [09:06:16]MH_I2C_Read... [09:06:16]Read from MH i2c: E2 62 00 [09:06:16]MH_I2C_Read... [09:06:16]Read from MH i2c: E2 62 00 A4 B6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5F 0E 01 00 0E 04 04 00 C1 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 D4 [09:06:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5F 0E 01 00 0E 04 04 00 C1 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 [09:06:16]wFMCommunicate OK [09:06:16]SAM_PROTO_GetFieldsCounters done [09:06:16]requested_item shift.num is exist - process it [09:06:16]requested_item shift.opened is exist - process it [09:06:16]req_shift_opened [09:06:16]FM_GetShiftState [09:06:16]SAM_PROTO_GetShiftState [09:06:16]wFMCommunicate request_size=4 [09:06:16]MH_SAM_APDU [09:06:16]CAPDU: 80 13 01 00 [09:06:16]Write to MH i2c: E2 08 00 A5 B6 80 13 01 00 00 00 00 00 D8 [09:06:16]Write i2c OK [09:06:16]MH_I2C_Read... [09:06:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:16]Read from MH i2c: E2 [09:06:16]MH_I2C_Read... [09:06:16]Read from MH i2c: E2 0E 00 [09:06:16]MH_I2C_Read... [09:06:16]Read from MH i2c: E2 0E 00 A5 B6 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 DE [09:06:16]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:06:16]wFMCommunicate OK [09:06:16]SAM_PROTO_GetShiftState done [09:06:16]FM_GetShiftState done [09:06:16]req_shift_opened done [09:06:16]requested_item shift.open_date is exist - process it [09:06:16]req_shift_open_date [09:06:16]req_shift_open_date done [09:06:16]produce_requested_data done [09:06:16]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69215,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [09:06:16]process_action_free close_receipt [09:06:16]json_value_free [09:06:16]json_value_free done [09:06:16]process_json_proto returns [09:06:16]Send response to host [09:06:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69215,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [09:06:16]free response buf [09:06:16]execute_script done [09:06:16]execute_script returns [09:06:16]free content buf [09:06:16]Sock 10.Close socket [09:06:16]Sock 10.Thread stoped [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:06:55]accept exits with 8 [09:06:55]New connection [09:06:55]New thread 3067116900 created [09:06:55]Thread 3067260260 joined [09:06:55]Waiting for new connection... [09:06:55] Sock 8.Parse request [09:06:55]Sock 8.Check first char [09:06:55]Sock 8.First char is OK [09:06:55]request: POST /json_proto HTTP/1.0 [09:06:55]Method: POST [09:06:55]URL: /json_proto [09:06:55]Method is POST - this is cgi request [09:06:55]url: /json_proto [09:06:55]query_string will be loaded in cgi processing [09:06:55]execute_cgi json_proto POST (null) [09:06:55]execute_cgi path=json_proto method=POST [09:06:55]POST find Content-Length [09:06:55]Host: 172.17.50.3:8080 [09:06:55]Content-Length: 683 [09:06:55]Content-Type: application/json [09:06:55] [09:06:55]POST finish read [09:06:55]Found Content-Length = 683 [09:06:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:55]execute_script... [09:06:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:55]POST & json_proto [09:06:55]process_json_proto [09:06:55]json parsed OK: [09:06:55]protocol is kg_v1.0 [09:06:55]action value=close_receipt [09:06:55]process_action close_receipt [09:06:55]cmd_close_receipt [09:06:55]MH_GetDate [09:06:55]Write to MH i2c: F0 00 00 A6 B6 4B [09:06:55]Write i2c OK [09:06:55]MH_I2C_Read... [09:06:55]Read from MH i2c: F0 [09:06:55]MH_I2C_Read... [09:06:55]Read from MH i2c: F0 09 00 [09:06:55]MH_I2C_Read... [09:06:55]Read from MH i2c: F0 09 00 A6 B6 00 39 C8 14 67 6B 98 1E 66 57 [09:06:55]GetLastDocTimeStamp 1729415181 [09:06:55]current date 1729415225 [09:06:55]FM_GetShiftState [09:06:55]SAM_PROTO_GetShiftState [09:06:55]wFMCommunicate request_size=4 [09:06:55]MH_SAM_APDU [09:06:55]CAPDU: 80 13 01 00 [09:06:55]Write to MH i2c: E2 08 00 A7 B6 80 13 01 00 00 00 00 00 DA [09:06:55]Write i2c OK [09:06:55]MH_I2C_Read... [09:06:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:55]Read from MH i2c: E2 [09:06:55]MH_I2C_Read... [09:06:55]Read from MH i2c: E2 0E 00 [09:06:55]MH_I2C_Read... [09:06:55]Read from MH i2c: E2 0E 00 A7 B6 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 E0 [09:06:55]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:06:55]wFMCommunicate OK [09:06:55]SAM_PROTO_GetShiftState done [09:06:55]FM_GetShiftState done [09:06:55]opened in 1729383220 [09:06:55]opened+sec_in_day 1729469620 [09:06:55]quantity*price = 100015 [09:06:55]sum+1 = 100017 [09:06:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 61 20.10.2024 09:07 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69216 ФПД: 35874390254762 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090705&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69216&fm=35874390254762&tin=02508201610067®Number=0000000000156251&sum=100000 [09:06:56]StoreToDocumentArchive [09:06:56]shift 193 fd 69216 [09:06:56]save to /storage/0193/doc_00069216 [09:06:56]save last doc name /storage/0193/doc_00069216 to /storage/kkm_last_doc_name [09:06:56]save OK [09:06:56]Clear old archive folders... [09:06:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:06:56]tlvbuf is 004768C0 [09:06:56]SAM_PROTO_ClearQueue [09:06:56]wFMCommunicate request_size=4 [09:06:56]MH_SAM_APDU [09:06:56]CAPDU: 80 09 00 00 [09:06:56]Write to MH i2c: E2 08 00 B4 B6 80 09 00 00 00 00 00 00 DC [09:06:56]Write i2c OK [09:06:56]MH_I2C_Read... [09:06:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:06:56]Read from MH i2c: E2 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: E2 03 00 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: E2 03 00 B4 B6 00 90 00 DE [09:06:56]RAPDU: 90 00 [09:06:56]wFMCommunicate OK [09:06:56]SAM_PROTO_ClearQueue done [09:06:56]KKMCreateOFDPacket [09:06:56]OFDProtocolAddRootSTLVToBuf [09:06:56]FM_MakeSignedData [09:06:56]FM_MakeSignedData [09:06:56]SAM_PROTO_SignData [09:06:56]wFMCommunicate request_size=4 [09:06:56]MH_SAM_APDU [09:06:56]CAPDU: 80 0D 01 02 [09:06:56]Write to MH i2c: E2 08 00 B5 B6 80 0D 01 02 00 00 00 00 E4 [09:06:56]Write i2c OK [09:06:56]MH_I2C_Read... [09:06:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:06:56]Read from MH i2c: E2 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: E2 03 00 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: E2 03 00 B5 B6 00 90 00 DF [09:06:56]RAPDU: 90 00 [09:06:56]wFMCommunicate OK [09:06:56]wFMCommunicate request_size=255 [09:06:56]MH_SAM_APDU [09:06:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 39 C8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 60 0E 01 00 35 04 06 00 20 [09:06:56]Write to MH i2c: E2 02 01 B6 B6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 39 C8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 60 0E 01 00 35 04 06 00 20 00 00 70 [09:06:56]Write i2c OK [09:06:56]MH_I2C_Read... [09:06:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:57]Read from MH i2c: E2 [09:06:57]MH_I2C_Read... [09:06:57]Read from MH i2c: E2 03 00 [09:06:57]MH_I2C_Read... [09:06:57]Read from MH i2c: E2 03 00 B6 B6 00 90 00 E0 [09:06:57]RAPDU: 90 00 [09:06:57]wFMCommunicate OK [09:06:57]wFMCommunicate request_size=10 [09:06:57]MH_SAM_APDU [09:06:57]CAPDU: 80 0D 02 02 05 A0 A8 49 A4 AA [09:06:57]Write to MH i2c: E2 0D 00 B7 B6 80 0D 02 02 05 00 A0 A8 49 A4 AA 00 00 D0 [09:06:57]Write i2c OK [09:06:57]MH_I2C_Read... [09:06:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:57]Read from MH i2c: E2 [09:06:57]MH_I2C_Read... [09:06:57]Read from MH i2c: E2 03 00 [09:06:57]MH_I2C_Read... [09:06:57]Read from MH i2c: E2 03 00 B7 B6 00 90 00 E1 [09:06:57]RAPDU: 90 00 [09:06:57]wFMCommunicate OK [09:06:57]wFMCommunicate request_size=4 [09:06:57]MH_SAM_APDU [09:06:57]CAPDU: 80 0D 03 02 [09:06:57]Write to MH i2c: E2 08 00 B8 B6 80 0D 03 02 00 00 00 00 E9 [09:06:57]Write i2c OK [09:06:57]MH_I2C_Read... [09:06:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:06:57]Read from MH i2c: E2 [09:06:57]MH_I2C_Read... [09:06:57]Read from MH i2c: E2 0B 00 [09:06:57]MH_I2C_Read... [09:06:57]Read from MH i2c: E2 0B 00 B8 B6 00 FF 41 12 24 A8 1A AC 37 90 00 05 [09:06:57]RAPDU: FF 41 12 24 A8 1A AC 37 90 00 [09:06:57]wFMCommunicate OK [09:06:57]SAM_PROTO_SignData done [09:06:57]FM_MakeSignedData done [09:06:57]CreateOFDProtocolMessage [09:06:57]wFMCommunicate request_size=4 [09:06:57]MH_SAM_APDU [09:06:57]CAPDU: 80 11 00 00 [09:06:57]Write to MH i2c: E2 08 00 B9 B6 80 11 00 00 00 00 00 00 E9 [09:06:57]Write i2c OK [09:06:57]MH_I2C_Read... [09:06:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:57]Read from MH i2c: E2 [09:06:57]MH_I2C_Read... [09:06:57]Read from MH i2c: E2 17 00 [09:06:57]MH_I2C_Read... [09:06:57]Read from MH i2c: E2 17 00 B9 B6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3B [09:06:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:06:57]wFMCommunicate OK [09:06:57]CreateOFDProtocolMessage done [09:06:57]OFDSenderStorePacket 69216 [09:06:57]StoreOFDPacket docnum=69216 [09:06:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 92 17 07 01 D5 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 39 C8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 60 0E 01 00 35 04 06 00 20 A0 A8 49 A4 AA FF 41 12 24 A8 1A AC 37 [09:06:57]CheckFolder [09:06:57]dirname=/storage/ofd_packets [09:06:57]CheckFolder done [09:06:57]ProducePacketName [09:06:57]name=ofd_packets/00069216 [09:06:57]NVStorageSaveData ofd_packets/00069216 [09:06:57]File name is /storage/ofd_packets/00069216 [09:06:57]Write 301 bytes [09:06:57]NVStorageSaveData done [09:06:57]OFDSenderStorePacket done [09:06:57]KKMCreateOFDPacket done [09:06:57]NVStorageSaveData kkm_last_timestamp [09:06:57]File name is /storage/kkm_last_timestamp [09:06:57]Write 4 bytes [09:06:57]NVStorageSaveData done [09:06:57]ExternCall_PrintAddStr [09:06:57]wPrintStart [09:06:57]Write to MH i2c: 01 00 00 BA B6 70 [09:06:57]Write i2c OK [09:06:57]MH_I2C_Read... [09:06:57]Read from MH i2c: 01 [09:06:57]MH_I2C_Read... [09:06:57]Read from MH i2c: 01 07 00 [09:06:57]MH_I2C_Read... [09:06:57]Read from MH i2c: 01 07 00 BA B6 00 00 00 00 00 FF 0F 85 [09:06:57]RasterBufferAndPrint [09:06:57]line Счет N : (1)2884930 [09:06:57]line ИНН: 02508201610067 [09:06:57]line Контрольно-Кассовый Чек [09:06:57]line ПРОДАЖА [09:06:57]line ТРК (МРК, ГНК) : 32 [09:06:57]line Товар: 2710124130 [09:06:57]line Аи-92-К-5 [09:06:57]line 14.950 * 66.90 [09:06:57]line = 1000.16 [09:06:57]line НДС 12% НСП 1% [09:06:57]line > о реализуемом товаре [09:06:57]line ОКРУГЛЕНИЕ: -0.16 [09:06:57]line ИТОГО: 1000.00 [09:06:57]line Внесено: 1000.00 [09:06:57]line СДАЧА: 0.00 [09:06:57]line НСП 1% : 8.85 [09:06:57]line НДС 12% : 106.21 [09:06:57]line Наличными: 1000.00 [09:06:57]line Безнал.: 0.00 [09:06:57]line Место: АЗС № 85 "Партнер Нефть" [09:06:57]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:06:57]line СНО: Общий режим [09:06:57]line Чек 61 20.10.2024 09:07 [09:06:57]line Смена: 193 ФФД: 1.0 [09:06:57]line ЗНМ: 0300000167 [09:06:57]line РНМ: 0000000000156251 [09:06:57]line Версия ККМ: v1.0 [09:06:57]line ФМ: 0000000000963346 [09:06:57]line ФД: 69216 [09:06:57]line ФПД: 35874390254762 [09:06:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090705&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69216&fm=35874390254762&tin=02508201610067®Number=0000000000156251&sum=100000 [09:06:57]OFD Sender: Processing packet 69216 [packets to send 18, broken 17] [09:06:57]ProducePacketName [09:06:57]name=ofd_packets/00069216 [09:06:57]OFD Sender: To server: pG, [09:06:57]CommunicateWithHost lk.salyk.kg:30040 [09:06:57]ConnectInit lk.salyk.kg [09:06:57]written 0, free lines is 4095 [09:06:57]Connected sock=10 [09:06:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 92 17 07 01 D5 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 39 C8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 60 0E 01 00 35 04 06 00 20 A0 A8 49 A4 AA FF 41 12 24 A8 1A AC 37 [09:06:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 39 34 47 00 05 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 30 39 36 33 33 34 36 10 04 04 00 60 0E 01 00 F4 03 04 00 E0 71 14 67 B6 04 01 00 00 AA F8 40 68 42 A5 D0 12 [09:06:58]CommunicateWithHost err = 0 [09:06:58]CheckOFDResponse [09:06:58]1017 (14) - 77093643461234 [09:06:58]1041 (16) - 0000000000963346 [09:06:58]1040 (4) - 69216 [09:06:58]1012 (4) - 20.10.2024 02:58 [09:06:58]1206 (1) - 0 [09:06:58]OFD Sender: Remove packet 69216 [09:06:58]ProducePacketName [09:06:58]name=ofd_packets/00069216 [09:06:58]NVStorageDeleteData [09:06:58]Write to MH i2c: 01 00 00 E5 B6 9B [09:06:58]Write i2c OK [09:06:58]MH_I2C_Read... [09:06:58]Read from MH i2c: 01 [09:06:58]MH_I2C_Read... [09:06:58]Read from MH i2c: 01 07 00 [09:06:58]MH_I2C_Read... [09:06:58]Read from MH i2c: 01 07 00 E5 B6 00 00 00 00 00 FC 0C AA [09:06:58]RasterBufferAndPrint [09:06:58]line [09:06:58]line [09:06:58]line [09:06:58]line [09:06:58]line [09:06:58]written 0, free lines is 3333 [09:06:58]MH_Cut [09:06:58]Write to MH i2c: D1 01 00 EC B6 01 74 [09:06:58]Write i2c OK [09:06:58]MH_I2C_Read... [09:06:58]Read from MH i2c: D1 [09:06:58]MH_I2C_Read... [09:06:58]Read from MH i2c: D1 01 00 [09:06:58]MH_I2C_Read... [09:06:58]Read from MH i2c: D1 01 00 EC B6 00 73 [09:06:58]Write to MH i2c: 01 00 00 ED B6 A3 [09:06:58]Write i2c OK [09:06:58]MH_I2C_Read... [09:06:58]OFD Sender: No OFD packet to send [09:06:58]*** Cut start [09:06:58]*** Partial cut [09:06:58]*** CUTSNS_PIN = 1 [09:06:58]*** CUTSNS_PIN = 0 [09:06:59]*** Brake cut motor [09:06:59]Read from MH i2c: 01 [09:06:59]MH_I2C_Read... [09:06:59]*** Stop cut motor [09:06:59]*** Cut end [09:06:59]Read from MH i2c: 01 07 00 [09:06:59]MH_I2C_Read... [09:06:59]Read from MH i2c: 01 07 00 ED B6 00 00 00 00 00 FF 0F B8 [09:06:59]process_action close_receipt done [09:06:59]requested_data is exist [09:06:59]produce_requested_data [09:06:59]requested_item fm.sn is exist - process it [09:06:59]wFMCommunicate request_size=4 [09:06:59]MH_SAM_APDU [09:06:59]CAPDU: 80 11 00 00 [09:06:59]Write to MH i2c: E2 08 00 EE B6 80 11 00 00 00 00 00 00 1E [09:06:59]Write i2c OK [09:06:59]MH_I2C_Read... [09:06:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:59]Read from MH i2c: E2 [09:06:59]MH_I2C_Read... [09:06:59]Read from MH i2c: E2 17 00 [09:06:59]MH_I2C_Read... [09:06:59]Read from MH i2c: E2 17 00 EE B6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 70 [09:06:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:06:59]wFMCommunicate OK [09:06:59]requested_item fd.num is exist - process it [09:06:59]SAM_PROTO_GetFieldsCounters [09:06:59]wFMCommunicate request_size=4 [09:06:59]MH_SAM_APDU [09:06:59]CAPDU: 80 13 00 00 [09:06:59]Write to MH i2c: E2 08 00 EF B6 80 13 00 00 00 00 00 00 21 [09:06:59]Write i2c OK [09:06:59]MH_I2C_Read... [09:06:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:59]Read from MH i2c: E2 [09:06:59]MH_I2C_Read... [09:06:59]Read from MH i2c: E2 62 00 [09:06:59]MH_I2C_Read... [09:06:59]Read from MH i2c: E2 62 00 EF B6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 60 0E 01 00 0E 04 04 00 C1 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 23 [09:06:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 60 0E 01 00 0E 04 04 00 C1 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 [09:06:59]wFMCommunicate OK [09:06:59]SAM_PROTO_GetFieldsCounters done [09:06:59]requested_item shift.num is exist - process it [09:06:59]requested_item shift.opened is exist - process it [09:06:59]req_shift_opened [09:06:59]FM_GetShiftState [09:06:59]SAM_PROTO_GetShiftState [09:06:59]wFMCommunicate request_size=4 [09:06:59]MH_SAM_APDU [09:06:59]CAPDU: 80 13 01 00 [09:06:59]Write to MH i2c: E2 08 00 F0 B6 80 13 01 00 00 00 00 00 23 [09:06:59]Write i2c OK [09:06:59]MH_I2C_Read... [09:06:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:59]Read from MH i2c: E2 [09:06:59]MH_I2C_Read... [09:06:59]Read from MH i2c: E2 0E 00 [09:06:59]MH_I2C_Read... [09:06:59]Read from MH i2c: E2 0E 00 F0 B6 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 29 [09:06:59]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:06:59]wFMCommunicate OK [09:06:59]SAM_PROTO_GetShiftState done [09:06:59]FM_GetShiftState done [09:06:59]req_shift_opened done [09:06:59]requested_item shift.open_date is exist - process it [09:06:59]req_shift_open_date [09:06:59]req_shift_open_date done [09:06:59]produce_requested_data done [09:06:59]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69216,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [09:06:59]process_action_free close_receipt [09:06:59]json_value_free [09:06:59]json_value_free done [09:06:59]process_json_proto returns [09:06:59]Send response to host [09:06:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69216,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [09:06:59]free response buf [09:06:59]execute_script done [09:06:59]execute_script returns [09:06:59]free content buf [09:06:59]Sock 8.Close socket [09:06:59]Sock 8.Thread stoped [09:07:03]OFD Sender: No OFD packet to send [09:07:08]OFD Sender: No OFD packet to send [09:07:13]OFD Sender: No OFD packet to send [09:07:18]OFD Sender: No OFD packet to send [09:07:23]OFD Sender: No OFD packet to send [09:07:28]OFD Sender: No OFD packet to send [09:07:33]OFD Sender: No OFD packet to send [09:07:34]accept exits with 9 [09:07:34]New connection [09:07:34]New thread 3067260260 created [09:07:34]Thread 3067116900 joined [09:07:34]Waiting for new connection... [09:07:34] Sock 9.Parse request [09:07:34]Sock 9.Check first char [09:07:34]Sock 9.First char is OK [09:07:34]request: POST /json_proto HTTP/1.0 [09:07:34]Method: POST [09:07:34]URL: /json_proto [09:07:34]Method is POST - this is cgi request [09:07:34]url: /json_proto [09:07:34]query_string will be loaded in cgi processing [09:07:34]execute_cgi json_proto POST (null) [09:07:34]execute_cgi path=json_proto method=POST [09:07:34]POST find Content-Length [09:07:34]Host: 172.17.50.3:8080 [09:07:34]Content-Length: 791 [09:07:34]Content-Type: application/json [09:07:34] [09:07:34]POST finish read [09:07:34]Found Content-Length = 791 [09:07:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A31095", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:34]execute_script... [09:07:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A31095", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:34]POST & json_proto [09:07:34]process_json_proto [09:07:34]json parsed OK: [09:07:34]protocol is kg_v1.0 [09:07:34]action value=close_receipt [09:07:34]process_action close_receipt [09:07:34]cmd_close_receipt [09:07:34]MH_GetDate [09:07:34]Write to MH i2c: F0 00 00 F1 B6 96 [09:07:34]Write i2c OK [09:07:34]MH_I2C_Read... [09:07:34]Read from MH i2c: F0 [09:07:34]MH_I2C_Read... [09:07:34]Read from MH i2c: F0 09 00 [09:07:34]MH_I2C_Read... [09:07:34]Read from MH i2c: F0 09 00 F1 B6 00 60 C8 14 67 6B 98 1E 66 C9 [09:07:34]GetLastDocTimeStamp 1729415225 [09:07:34]current date 1729415264 [09:07:34]FM_GetShiftState [09:07:34]SAM_PROTO_GetShiftState [09:07:34]wFMCommunicate request_size=4 [09:07:34]MH_SAM_APDU [09:07:34]CAPDU: 80 13 01 00 [09:07:34]Write to MH i2c: E2 08 00 F2 B6 80 13 01 00 00 00 00 00 25 [09:07:34]Write i2c OK [09:07:34]MH_I2C_Read... [09:07:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:34]Read from MH i2c: E2 [09:07:34]MH_I2C_Read... [09:07:34]Read from MH i2c: E2 0E 00 [09:07:34]MH_I2C_Read... [09:07:34]Read from MH i2c: E2 0E 00 F2 B6 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 2B [09:07:34]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:07:34]wFMCommunicate OK [09:07:34]SAM_PROTO_GetShiftState done [09:07:34]FM_GetShiftState done [09:07:34]opened in 1729383220 [09:07:34]opened+sec_in_day 1729469620 [09:07:34]quantity*price = 0 [09:07:34]sum+1 = 1 [09:07:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 62 20.10.2024 09:07 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 31095 ФМ: 0000000000963346 ФД: 69217 ФПД: 99079949489619 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090744&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69217&fm=99079949489619&tin=02508201610067®Number=0000000000156251&sum=0 [09:07:36]StoreToDocumentArchive [09:07:36]shift 193 fd 69217 [09:07:36]save to /storage/0193/doc_00069217 [09:07:36]save last doc name /storage/0193/doc_00069217 to /storage/kkm_last_doc_name [09:07:36]save OK [09:07:36]Clear old archive folders... [09:07:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:07:36]tlvbuf is 0048E1D0 [09:07:36]SAM_PROTO_ClearQueue [09:07:36]wFMCommunicate request_size=4 [09:07:36]MH_SAM_APDU [09:07:36]CAPDU: 80 09 00 00 [09:07:36]Write to MH i2c: E2 08 00 FF B6 80 09 00 00 00 00 00 00 27 [09:07:36]Write i2c OK [09:07:36]MH_I2C_Read... [09:07:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:07:36]Read from MH i2c: E2 [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: E2 03 00 [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: E2 03 00 FF B6 00 90 00 29 [09:07:36]RAPDU: 90 00 [09:07:36]wFMCommunicate OK [09:07:36]SAM_PROTO_ClearQueue done [09:07:36]KKMCreateOFDPacket [09:07:36]OFDProtocolAddRootSTLVToBuf [09:07:36]FM_MakeSignedData [09:07:36]FM_MakeSignedData [09:07:36]SAM_PROTO_SignData [09:07:36]wFMCommunicate request_size=4 [09:07:36]MH_SAM_APDU [09:07:36]CAPDU: 80 0D 01 02 [09:07:36]Write to MH i2c: E2 08 00 00 B7 80 0D 01 02 00 00 00 00 30 [09:07:36]Write i2c OK [09:07:36]MH_I2C_Read... [09:07:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:07:36]Read from MH i2c: E2 [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: E2 03 00 [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: E2 03 00 00 B7 00 90 00 2B [09:07:36]RAPDU: 90 00 [09:07:36]wFMCommunicate OK [09:07:36]wFMCommunicate request_size=255 [09:07:36]MH_SAM_APDU [09:07:36]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 60 C8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 61 0E 01 00 35 04 06 00 5A 1C D9 31 [09:07:36]Write to MH i2c: E2 02 01 01 B7 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 60 C8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 61 0E 01 00 35 04 06 00 5A 1C D9 31 00 00 40 [09:07:36]Write i2c OK [09:07:36]MH_I2C_Read... [09:07:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:36]Read from MH i2c: E2 [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: E2 03 00 [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: E2 03 00 01 B7 00 90 00 2C [09:07:36]RAPDU: 90 00 [09:07:36]wFMCommunicate OK [09:07:36]wFMCommunicate request_size=7 [09:07:36]MH_SAM_APDU [09:07:36]CAPDU: 80 0D 02 02 02 95 D3 [09:07:36]Write to MH i2c: E2 0A 00 02 B7 80 0D 02 02 02 00 95 D3 00 00 9F [09:07:36]Write i2c OK [09:07:36]MH_I2C_Read... [09:07:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:36]Read from MH i2c: E2 [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: E2 03 00 [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: E2 03 00 02 B7 00 90 00 2D [09:07:36]RAPDU: 90 00 [09:07:36]wFMCommunicate OK [09:07:36]wFMCommunicate request_size=4 [09:07:36]MH_SAM_APDU [09:07:36]CAPDU: 80 0D 03 02 [09:07:36]Write to MH i2c: E2 08 00 03 B7 80 0D 03 02 00 00 00 00 35 [09:07:36]Write i2c OK [09:07:36]MH_I2C_Read... [09:07:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:07:36]Read from MH i2c: E2 [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: E2 0B 00 [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: E2 0B 00 03 B7 00 CC DE 33 86 BD A7 5A AC 90 00 03 [09:07:36]RAPDU: CC DE 33 86 BD A7 5A AC 90 00 [09:07:36]wFMCommunicate OK [09:07:36]SAM_PROTO_SignData done [09:07:36]FM_MakeSignedData done [09:07:36]CreateOFDProtocolMessage [09:07:36]wFMCommunicate request_size=4 [09:07:36]MH_SAM_APDU [09:07:36]CAPDU: 80 11 00 00 [09:07:36]Write to MH i2c: E2 08 00 04 B7 80 11 00 00 00 00 00 00 35 [09:07:36]Write i2c OK [09:07:36]MH_I2C_Read... [09:07:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:36]Read from MH i2c: E2 [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: E2 17 00 [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: E2 17 00 04 B7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 87 [09:07:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:07:36]wFMCommunicate OK [09:07:36]CreateOFDProtocolMessage done [09:07:36]OFDSenderStorePacket 69217 [09:07:36]StoreOFDPacket docnum=69217 [09:07:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 F0 7F 04 01 87 85 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 60 C8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 61 0E 01 00 35 04 06 00 5A 1C D9 31 95 D3 CC DE 33 86 BD A7 5A AC [09:07:36]CheckFolder [09:07:36]dirname=/storage/ofd_packets [09:07:36]CheckFolder done [09:07:36]ProducePacketName [09:07:36]name=ofd_packets/00069217 [09:07:36]NVStorageSaveData ofd_packets/00069217 [09:07:36]File name is /storage/ofd_packets/00069217 [09:07:36]Write 298 bytes [09:07:36]NVStorageSaveData done [09:07:36]OFDSenderStorePacket done [09:07:36]KKMCreateOFDPacket done [09:07:36]NVStorageSaveData kkm_last_timestamp [09:07:36]File name is /storage/kkm_last_timestamp [09:07:36]Write 4 bytes [09:07:36]NVStorageSaveData done [09:07:36]ExternCall_PrintAddStr [09:07:36]wPrintStart [09:07:36]Write to MH i2c: 01 00 00 05 B7 BC [09:07:36]Write i2c OK [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: 01 [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: 01 07 00 [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: 01 07 00 05 B7 00 00 00 00 00 FF 0F D1 [09:07:36]RasterBufferAndPrint [09:07:36]line Счет N : (1)2884927 [09:07:36]line ИНН: 02508201610067 [09:07:36]line Контрольно-Кассовый Чек [09:07:36]line ПРОДАЖА [09:07:36]line ТРК (МРК, ГНК) : 61 [09:07:36]line Товар: 2710194210 [09:07:36]line ДТ-К-5 [09:07:36]line 100.000 * 0.00 [09:07:36]line = 0.00 [09:07:36]line НДС 12% НСП 1% [09:07:36]line > о реализуемом товаре [09:07:36]line ИТОГО: 0.00 [09:07:36]line НСП 1% : 0.00 [09:07:36]line НДС 12% : 0.00 [09:07:36]line Наличными: 0.00 [09:07:36]line Безнал.: 0.00 [09:07:36]line Место: АЗС № 85 "Партнер Нефть" [09:07:36]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:07:36]line СНО: Общий режим [09:07:36]line Чек 62 20.10.2024 09:07 [09:07:36]line Смена: 193 ФФД: 1.0 [09:07:36]line ЗНМ: 0300000167 [09:07:36]line РНМ: 0000000000156251 [09:07:36]line Версия ККМ: v1.0 [09:07:36]line Талоны: Топливная Карта [09:07:36]line 31095 [09:07:36]line ФМ: 0000000000963346 [09:07:36]line ФД: 69217 [09:07:36]line ФПД: 99079949489619 [09:07:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090744&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69217&fm=99079949489619&tin=02508201610067®Number=0000000000156251&sum=0 [09:07:36]OFD Sender: Processing packet 69217 [packets to send 18, broken 17] [09:07:36]ProducePacketName [09:07:36]name=ofd_packets/00069217 [09:07:36]OFD Sender: To server: pG, [09:07:36]CommunicateWithHost lk.salyk.kg:30040 [09:07:36]ConnectInit lk.salyk.kg [09:07:36]written 0, free lines is 4095 [09:07:36]Connected sock=10 [09:07:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 F0 7F 04 01 87 85 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 60 C8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 61 0E 01 00 35 04 06 00 5A 1C D9 31 95 D3 CC DE 33 86 BD A7 5A AC [09:07:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 AD 17 47 00 CB 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 61 0E 01 00 F4 03 04 00 07 72 14 67 B6 04 01 00 00 FE D1 AE 6D 2B 42 84 EA [09:07:37]CommunicateWithHost err = 0 [09:07:37]CheckOFDResponse [09:07:37]1017 (14) - 77093643461234 [09:07:37]1041 (16) - 0000000000963346 [09:07:37]1040 (4) - 69217 [09:07:37]1012 (4) - 20.10.2024 02:59 [09:07:37]1206 (1) - 0 [09:07:37]OFD Sender: Remove packet 69217 [09:07:37]ProducePacketName [09:07:37]name=ofd_packets/00069217 [09:07:37]NVStorageDeleteData [09:07:37]Write to MH i2c: 01 00 00 2F B7 E6 [09:07:37]Write i2c OK [09:07:37]MH_I2C_Read... [09:07:37]Read from MH i2c: 01 [09:07:37]MH_I2C_Read... [09:07:37]Read from MH i2c: 01 07 00 [09:07:37]MH_I2C_Read... [09:07:37]Read from MH i2c: 01 07 00 2F B7 00 00 00 00 00 FE 0C F7 [09:07:37]RasterBufferAndPrint [09:07:37]line [09:07:37]line [09:07:37]line [09:07:37]line [09:07:37]line [09:07:37]written 0, free lines is 3332 [09:07:37]MH_Cut [09:07:37]Write to MH i2c: D1 01 00 36 B7 01 BF [09:07:37]Write i2c OK [09:07:37]MH_I2C_Read... [09:07:37]Read from MH i2c: D1 [09:07:37]MH_I2C_Read... [09:07:37]Read from MH i2c: D1 01 00 [09:07:37]MH_I2C_Read... [09:07:37]Read from MH i2c: D1 01 00 36 B7 00 BE [09:07:37]Write to MH i2c: 01 00 00 37 B7 EE [09:07:37]Write i2c OK [09:07:37]MH_I2C_Read... [09:07:37]OFD Sender: No OFD packet to send [09:07:37]*** Cut start [09:07:37]*** Partial cut [09:07:37]*** CUTSNS_PIN = 1 [09:07:37]*** CUTSNS_PIN = 0 [09:07:38]*** Brake cut motor [09:07:38]Read from MH i2c: 01 [09:07:38]MH_I2C_Read... [09:07:38]*** Stop cut motor [09:07:38]*** Cut end [09:07:38]Read from MH i2c: 01 07 00 [09:07:38]MH_I2C_Read... [09:07:38]Read from MH i2c: 01 07 00 37 B7 00 00 00 00 00 FF 0F 03 [09:07:38]process_action close_receipt done [09:07:38]requested_data is exist [09:07:38]produce_requested_data [09:07:38]requested_item fm.sn is exist - process it [09:07:38]wFMCommunicate request_size=4 [09:07:38]MH_SAM_APDU [09:07:38]CAPDU: 80 11 00 00 [09:07:38]Write to MH i2c: E2 08 00 38 B7 80 11 00 00 00 00 00 00 69 [09:07:38]Write i2c OK [09:07:38]MH_I2C_Read... [09:07:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:38]Read from MH i2c: E2 [09:07:38]MH_I2C_Read... [09:07:38]Read from MH i2c: E2 17 00 [09:07:38]MH_I2C_Read... [09:07:38]Read from MH i2c: E2 17 00 38 B7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BB [09:07:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:07:38]wFMCommunicate OK [09:07:38]requested_item fd.num is exist - process it [09:07:38]SAM_PROTO_GetFieldsCounters [09:07:38]wFMCommunicate request_size=4 [09:07:38]MH_SAM_APDU [09:07:38]CAPDU: 80 13 00 00 [09:07:38]Write to MH i2c: E2 08 00 39 B7 80 13 00 00 00 00 00 00 6C [09:07:38]Write i2c OK [09:07:38]MH_I2C_Read... [09:07:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:07:38]Read from MH i2c: E2 [09:07:38]MH_I2C_Read... [09:07:38]Read from MH i2c: E2 62 00 [09:07:38]MH_I2C_Read... [09:07:38]Read from MH i2c: E2 62 00 39 B7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 61 0E 01 00 0E 04 04 00 C1 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 72 [09:07:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 61 0E 01 00 0E 04 04 00 C1 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 [09:07:38]wFMCommunicate OK [09:07:38]SAM_PROTO_GetFieldsCounters done [09:07:38]requested_item shift.num is exist - process it [09:07:38]requested_item shift.opened is exist - process it [09:07:38]req_shift_opened [09:07:38]FM_GetShiftState [09:07:38]SAM_PROTO_GetShiftState [09:07:38]wFMCommunicate request_size=4 [09:07:38]MH_SAM_APDU [09:07:38]CAPDU: 80 13 01 00 [09:07:38]Write to MH i2c: E2 08 00 3A B7 80 13 01 00 00 00 00 00 6E [09:07:38]Write i2c OK [09:07:38]MH_I2C_Read... [09:07:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:38]Read from MH i2c: E2 [09:07:38]MH_I2C_Read... [09:07:38]Read from MH i2c: E2 0E 00 [09:07:38]MH_I2C_Read... [09:07:38]Read from MH i2c: E2 0E 00 3A B7 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 74 [09:07:38]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:07:38]wFMCommunicate OK [09:07:38]SAM_PROTO_GetShiftState done [09:07:38]FM_GetShiftState done [09:07:38]req_shift_opened done [09:07:38]requested_item shift.open_date is exist - process it [09:07:38]req_shift_open_date [09:07:38]req_shift_open_date done [09:07:38]produce_requested_data done [09:07:38]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69217,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [09:07:38]process_action_free close_receipt [09:07:38]json_value_free [09:07:38]json_value_free done [09:07:38]process_json_proto returns [09:07:38]Send response to host [09:07:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69217,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [09:07:38]free response buf [09:07:38]execute_script done [09:07:38]execute_script returns [09:07:38]free content buf [09:07:38]Sock 9.Close socket [09:07:38]Sock 9.Thread stoped [09:07:42]OFD Sender: No OFD packet to send [09:07:47]OFD Sender: No OFD packet to send [09:07:52]OFD Sender: No OFD packet to send [09:07:57]OFD Sender: No OFD packet to send [09:08:02]OFD Sender: No OFD packet to send [09:08:07]OFD Sender: No OFD packet to send [09:08:12]OFD Sender: No OFD packet to send [09:08:17]OFD Sender: No OFD packet to send [09:08:22]OFD Sender: No OFD packet to send [09:08:27]OFD Sender: No OFD packet to send [09:08:32]OFD Sender: No OFD packet to send [09:08:37]accept exits with 8 [09:08:37]New connection [09:08:37]New thread 3067116900 created [09:08:37]Thread 3067260260 joined [09:08:37]Waiting for new connection... [09:08:37] Sock 8.Parse request [09:08:37]Sock 8.Check first char [09:08:37]Sock 8.First char is OK [09:08:37]request: POST /json_proto HTTP/1.0 [09:08:37]Method: POST [09:08:37]URL: /json_proto [09:08:37]Method is POST - this is cgi request [09:08:37]url: /json_proto [09:08:37]query_string will be loaded in cgi processing [09:08:37]execute_cgi json_proto POST (null) [09:08:37]execute_cgi path=json_proto method=POST [09:08:37]POST find Content-Length [09:08:37]Host: 172.17.50.3:8080 [09:08:37]Content-Length: 680 [09:08:37]Content-Type: application/json [09:08:37] [09:08:37]POST finish read [09:08:37]Found Content-Length = 680 [09:08:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 21.000, "sum" : 1600.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:37]execute_script... [09:08:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 21.000, "sum" : 1600.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:37]POST & json_proto [09:08:37]process_json_proto [09:08:37]json parsed OK: [09:08:37]protocol is kg_v1.0 [09:08:37]action value=close_receipt [09:08:37]process_action close_receipt [09:08:37]cmd_close_receipt [09:08:37]MH_GetDate [09:08:37]Write to MH i2c: F0 00 00 3B B7 E1 [09:08:37]Write i2c OK [09:08:37]MH_I2C_Read... [09:08:37]Read from MH i2c: F0 [09:08:37]MH_I2C_Read... [09:08:37]Read from MH i2c: F0 09 00 [09:08:37]MH_I2C_Read... [09:08:37]Read from MH i2c: F0 09 00 3B B7 00 9F C8 14 67 6B 98 1E 66 53 [09:08:37]GetLastDocTimeStamp 1729415264 [09:08:37]current date 1729415327 [09:08:37]FM_GetShiftState [09:08:37]SAM_PROTO_GetShiftState [09:08:37]wFMCommunicate request_size=4 [09:08:37]MH_SAM_APDU [09:08:37]CAPDU: 80 13 01 00 [09:08:37]Write to MH i2c: E2 08 00 3C B7 80 13 01 00 00 00 00 00 70 [09:08:37]Write i2c OK [09:08:37]MH_I2C_Read... [09:08:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:37]Read from MH i2c: E2 [09:08:37]MH_I2C_Read... [09:08:37]Read from MH i2c: E2 0E 00 [09:08:37]MH_I2C_Read... [09:08:37]Read from MH i2c: E2 0E 00 3C B7 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 76 [09:08:37]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:08:37]wFMCommunicate OK [09:08:37]SAM_PROTO_GetShiftState done [09:08:37]FM_GetShiftState done [09:08:37]opened in 1729383220 [09:08:37]opened+sec_in_day 1729469620 [09:08:37]quantity*price = 160020 [09:08:37]sum+1 = 160021 [09:08:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.93 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 63 20.10.2024 09:08 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69218 ФПД: 236232612047525 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090847&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69218&fm=236232612047525&tin=02508201610067®Number=0000000000156251&sum=160000 [09:08:38]StoreToDocumentArchive [09:08:38]shift 193 fd 69218 [09:08:38]save to /storage/0193/doc_00069218 [09:08:38]save last doc name /storage/0193/doc_00069218 to /storage/kkm_last_doc_name [09:08:38]save OK [09:08:38]Clear old archive folders... [09:08:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:08:38]tlvbuf is 0082EAC0 [09:08:38]SAM_PROTO_ClearQueue [09:08:38]wFMCommunicate request_size=4 [09:08:38]MH_SAM_APDU [09:08:38]CAPDU: 80 09 00 00 [09:08:38]Write to MH i2c: E2 08 00 49 B7 80 09 00 00 00 00 00 00 72 [09:08:38]Write i2c OK [09:08:38]MH_I2C_Read... [09:08:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:38]Read from MH i2c: E2 [09:08:38]MH_I2C_Read... [09:08:38]Read from MH i2c: E2 03 00 [09:08:38]MH_I2C_Read... [09:08:38]Read from MH i2c: E2 03 00 49 B7 00 90 00 74 [09:08:38]RAPDU: 90 00 [09:08:38]wFMCommunicate OK [09:08:38]SAM_PROTO_ClearQueue done [09:08:38]KKMCreateOFDPacket [09:08:38]OFDProtocolAddRootSTLVToBuf [09:08:38]FM_MakeSignedData [09:08:38]FM_MakeSignedData [09:08:38]SAM_PROTO_SignData [09:08:38]wFMCommunicate request_size=4 [09:08:38]MH_SAM_APDU [09:08:38]CAPDU: 80 0D 01 02 [09:08:38]Write to MH i2c: E2 08 00 4A B7 80 0D 01 02 00 00 00 00 7A [09:08:38]Write i2c OK [09:08:38]MH_I2C_Read... [09:08:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:38]Read from MH i2c: E2 [09:08:38]MH_I2C_Read... [09:08:38]Read from MH i2c: E2 03 00 [09:08:38]MH_I2C_Read... [09:08:38]Read from MH i2c: E2 03 00 4A B7 00 90 00 75 [09:08:38]RAPDU: 90 00 [09:08:38]wFMCommunicate OK [09:08:38]wFMCommunicate request_size=255 [09:08:38]MH_SAM_APDU [09:08:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 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 9F C8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 62 0E 01 00 35 04 06 00 D6 DA 30 EC [09:08:38]Write to MH i2c: E2 02 01 4B B7 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 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 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 9F C8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 62 0E 01 00 35 04 06 00 D6 DA 30 EC 00 00 C8 [09:08:38]Write i2c OK [09:08:38]MH_I2C_Read... [09:08:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:39]Read from MH i2c: E2 [09:08:39]MH_I2C_Read... [09:08:39]Read from MH i2c: E2 03 00 [09:08:39]MH_I2C_Read... [09:08:39]Read from MH i2c: E2 03 00 4B B7 00 90 00 76 [09:08:39]RAPDU: 90 00 [09:08:39]wFMCommunicate OK [09:08:39]wFMCommunicate request_size=7 [09:08:39]MH_SAM_APDU [09:08:39]CAPDU: 80 0D 02 02 02 EA A5 [09:08:39]Write to MH i2c: E2 0A 00 4C B7 80 0D 02 02 02 00 EA A5 00 00 10 [09:08:39]Write i2c OK [09:08:39]MH_I2C_Read... [09:08:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:39]Read from MH i2c: E2 [09:08:39]MH_I2C_Read... [09:08:39]Read from MH i2c: E2 03 00 [09:08:39]MH_I2C_Read... [09:08:39]Read from MH i2c: E2 03 00 4C B7 00 90 00 77 [09:08:39]RAPDU: 90 00 [09:08:39]wFMCommunicate OK [09:08:39]wFMCommunicate request_size=4 [09:08:39]MH_SAM_APDU [09:08:39]CAPDU: 80 0D 03 02 [09:08:39]Write to MH i2c: E2 08 00 4D B7 80 0D 03 02 00 00 00 00 7F [09:08:39]Write i2c OK [09:08:39]MH_I2C_Read... [09:08:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:39]Read from MH i2c: E2 [09:08:39]MH_I2C_Read... [09:08:39]Read from MH i2c: E2 0B 00 [09:08:39]MH_I2C_Read... [09:08:39]Read from MH i2c: E2 0B 00 4D B7 00 DC 91 7F B3 FE 48 F6 56 90 00 B1 [09:08:39]RAPDU: DC 91 7F B3 FE 48 F6 56 90 00 [09:08:39]wFMCommunicate OK [09:08:39]SAM_PROTO_SignData done [09:08:39]FM_MakeSignedData done [09:08:39]CreateOFDProtocolMessage [09:08:39]wFMCommunicate request_size=4 [09:08:39]MH_SAM_APDU [09:08:39]CAPDU: 80 11 00 00 [09:08:39]Write to MH i2c: E2 08 00 4E B7 80 11 00 00 00 00 00 00 7F [09:08:39]Write i2c OK [09:08:39]MH_I2C_Read... [09:08:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:39]Read from MH i2c: E2 [09:08:39]MH_I2C_Read... [09:08:39]Read from MH i2c: E2 17 00 [09:08:39]MH_I2C_Read... [09:08:39]Read from MH i2c: E2 17 00 4E B7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D1 [09:08:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:08:39]wFMCommunicate OK [09:08:39]CreateOFDProtocolMessage done [09:08:39]OFDSenderStorePacket 69218 [09:08:39]StoreOFDPacket docnum=69218 [09:08:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 31 6F 04 01 A9 EE 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 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 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 9F C8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 62 0E 01 00 35 04 06 00 D6 DA 30 EC EA A5 DC 91 7F B3 FE 48 F6 56 [09:08:39]CheckFolder [09:08:39]dirname=/storage/ofd_packets [09:08:39]CheckFolder done [09:08:39]ProducePacketName [09:08:39]name=ofd_packets/00069218 [09:08:39]NVStorageSaveData ofd_packets/00069218 [09:08:39]File name is /storage/ofd_packets/00069218 [09:08:39]Write 298 bytes [09:08:39]NVStorageSaveData done [09:08:39]OFDSenderStorePacket done [09:08:39]KKMCreateOFDPacket done [09:08:39]NVStorageSaveData kkm_last_timestamp [09:08:39]File name is /storage/kkm_last_timestamp [09:08:39]Write 4 bytes [09:08:39]NVStorageSaveData done [09:08:39]ExternCall_PrintAddStr [09:08:39]wPrintStart [09:08:39]Write to MH i2c: 01 00 00 4F B7 06 [09:08:39]Write i2c OK [09:08:39]MH_I2C_Read... [09:08:39]Read from MH i2c: 01 [09:08:39]MH_I2C_Read... [09:08:39]Read from MH i2c: 01 07 00 [09:08:39]MH_I2C_Read... [09:08:39]Read from MH i2c: 01 07 00 4F B7 00 00 00 00 00 FF 0F 1B [09:08:39]RasterBufferAndPrint [09:08:39]line Счет N : (1)2884931 [09:08:39]line ИНН: 02508201610067 [09:08:39]line Контрольно-Кассовый Чек [09:08:39]line ПРОДАЖА [09:08:39]line ТРК (МРК, ГНК) : 51 [09:08:39]line Товар: 2710194210 [09:08:39]line ДТ-К-5 [09:08:39]line 21.000 * 76.20 [09:08:39]line = 1600.20 [09:08:39]line НДС 12% НСП 1% [09:08:39]line > о реализуемом товаре [09:08:39]line ОКРУГЛЕНИЕ: -0.20 [09:08:39]line ИТОГО: 1600.00 [09:08:39]line Внесено: 1600.00 [09:08:39]line СДАЧА: 0.00 [09:08:39]line НСП 1% : 14.16 [09:08:39]line НДС 12% : 169.93 [09:08:39]line Наличными: 1600.00 [09:08:39]line Безнал.: 0.00 [09:08:39]line Место: АЗС № 85 "Партнер Нефть" [09:08:39]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:08:39]line СНО: Общий режим [09:08:39]line Чек 63 20.10.2024 09:08 [09:08:39]line Смена: 193 ФФД: 1.0 [09:08:39]line ЗНМ: 0300000167 [09:08:39]line РНМ: 0000000000156251 [09:08:39]line Версия ККМ: v1.0 [09:08:39]line ФМ: 0000000000963346 [09:08:39]line ФД: 69218 [09:08:39]line ФПД: 236232612047525 [09:08:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090847&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69218&fm=236232612047525&tin=02508201610067®Number=0000000000156251&sum=160000 [09:08:39]OFD Sender: Processing packet 69218 [packets to send 18, broken 17] [09:08:39]ProducePacketName [09:08:39]name=ofd_packets/00069218 [09:08:39]OFD Sender: To server: pG, [09:08:39]CommunicateWithHost lk.salyk.kg:30040 [09:08:39]ConnectInit lk.salyk.kg [09:08:39]written 0, free lines is 4095 [09:08:39]Connected sock=11 [09:08:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 31 6F 04 01 A9 EE 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 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 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 9F C8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 62 0E 01 00 35 04 06 00 D6 DA 30 EC EA A5 DC 91 7F B3 FE 48 F6 56 [09:08:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 5E 6A 47 00 FE FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 62 0E 01 00 F4 03 04 00 46 72 14 67 B6 04 01 00 00 5C 24 1A 9D E5 50 29 78 [09:08:39]CommunicateWithHost err = 0 [09:08:39]CheckOFDResponse [09:08:39]1017 (14) - 77093643461234 [09:08:39]1041 (16) - 0000000000963346 [09:08:39]1040 (4) - 69218 [09:08:39]1012 (4) - 20.10.2024 03:00 [09:08:39]1206 (1) - 0 [09:08:39]OFD Sender: Remove packet 69218 [09:08:39]ProducePacketName [09:08:39]name=ofd_packets/00069218 [09:08:39]NVStorageDeleteData [09:08:39]Write to MH i2c: 01 00 00 7A B7 31 [09:08:39]Write i2c OK [09:08:39]MH_I2C_Read... [09:08:39]Read from MH i2c: 01 [09:08:39]MH_I2C_Read... [09:08:39]Read from MH i2c: 01 07 00 [09:08:39]MH_I2C_Read... [09:08:39]Read from MH i2c: 01 07 00 7A B7 00 00 00 00 00 F8 0C 3C [09:08:39]RasterBufferAndPrint [09:08:39]line [09:08:39]line [09:08:39]line [09:08:39]line [09:08:39]line [09:08:39]written 0, free lines is 3326 [09:08:39]MH_Cut [09:08:39]Write to MH i2c: D1 01 00 81 B7 01 0A [09:08:39]Write i2c OK [09:08:39]MH_I2C_Read... [09:08:39]Read from MH i2c: D1 [09:08:39]MH_I2C_Read... [09:08:39]Read from MH i2c: D1 01 00 [09:08:39]MH_I2C_Read... [09:08:39]Read from MH i2c: D1 01 00 81 B7 00 09 [09:08:39]Write to MH i2c: 01 00 00 82 B7 39 [09:08:39]Write i2c OK [09:08:39]MH_I2C_Read... [09:08:40]OFD Sender: No OFD packet to send [09:08:40]*** Cut start [09:08:40]*** Partial cut [09:08:40]*** CUTSNS_PIN = 1 [09:08:40]*** CUTSNS_PIN = 0 [09:08:40]*** Brake cut motor [09:08:41]Read from MH i2c: 01 [09:08:41]MH_I2C_Read... [09:08:41]*** Stop cut motor [09:08:41]*** Cut end [09:08:41]Read from MH i2c: 01 07 00 [09:08:41]MH_I2C_Read... [09:08:41]Read from MH i2c: 01 07 00 82 B7 00 00 00 00 00 FF 0F 4E [09:08:41]process_action close_receipt done [09:08:41]requested_data is exist [09:08:41]produce_requested_data [09:08:41]requested_item fm.sn is exist - process it [09:08:41]wFMCommunicate request_size=4 [09:08:41]MH_SAM_APDU [09:08:41]CAPDU: 80 11 00 00 [09:08:41]Write to MH i2c: E2 08 00 83 B7 80 11 00 00 00 00 00 00 B4 [09:08:41]Write i2c OK [09:08:41]MH_I2C_Read... [09:08:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:41]Read from MH i2c: E2 [09:08:41]MH_I2C_Read... [09:08:41]Read from MH i2c: E2 17 00 [09:08:41]MH_I2C_Read... [09:08:41]Read from MH i2c: E2 17 00 83 B7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 06 [09:08:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:08:41]wFMCommunicate OK [09:08:41]requested_item fd.num is exist - process it [09:08:41]SAM_PROTO_GetFieldsCounters [09:08:41]wFMCommunicate request_size=4 [09:08:41]MH_SAM_APDU [09:08:41]CAPDU: 80 13 00 00 [09:08:41]Write to MH i2c: E2 08 00 84 B7 80 13 00 00 00 00 00 00 B7 [09:08:41]Write i2c OK [09:08:41]MH_I2C_Read... [09:08:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:41]Read from MH i2c: E2 [09:08:41]MH_I2C_Read... [09:08:41]Read from MH i2c: E2 62 00 [09:08:41]MH_I2C_Read... [09:08:41]Read from MH i2c: E2 62 00 84 B7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 62 0E 01 00 0E 04 04 00 C1 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 C1 [09:08:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 62 0E 01 00 0E 04 04 00 C1 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 [09:08:41]wFMCommunicate OK [09:08:41]SAM_PROTO_GetFieldsCounters done [09:08:41]requested_item shift.num is exist - process it [09:08:41]requested_item shift.opened is exist - process it [09:08:41]req_shift_opened [09:08:41]FM_GetShiftState [09:08:41]SAM_PROTO_GetShiftState [09:08:41]wFMCommunicate request_size=4 [09:08:41]MH_SAM_APDU [09:08:41]CAPDU: 80 13 01 00 [09:08:41]Write to MH i2c: E2 08 00 85 B7 80 13 01 00 00 00 00 00 B9 [09:08:41]Write i2c OK [09:08:41]MH_I2C_Read... [09:08:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:41]Read from MH i2c: E2 [09:08:41]MH_I2C_Read... [09:08:41]Read from MH i2c: E2 0E 00 [09:08:41]MH_I2C_Read... [09:08:41]Read from MH i2c: E2 0E 00 85 B7 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 BF [09:08:41]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:08:41]wFMCommunicate OK [09:08:41]SAM_PROTO_GetShiftState done [09:08:41]FM_GetShiftState done [09:08:41]req_shift_opened done [09:08:41]requested_item shift.open_date is exist - process it [09:08:41]req_shift_open_date [09:08:41]req_shift_open_date done [09:08:41]produce_requested_data done [09:08:41]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69218,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [09:08:41]process_action_free close_receipt [09:08:41]json_value_free [09:08:41]json_value_free done [09:08:41]process_json_proto returns [09:08:41]Send response to host [09:08:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69218,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [09:08:41]free response buf [09:08:41]execute_script done [09:08:41]execute_script returns [09:08:41]free content buf [09:08:41]Sock 8.Close socket [09:08:41]Sock 8.Thread stoped [09:08:45]OFD Sender: No OFD packet to send [09:08:50]OFD Sender: No OFD packet to send [09:08:55]OFD Sender: No OFD packet to send [09:09:00]OFD Sender: No OFD packet to send [09:09:05]OFD Sender: No OFD packet to send [09:09:10]OFD Sender: No OFD packet to send [09:09:15]OFD Sender: No OFD packet to send [09:09:20]OFD Sender: No OFD packet to send [09:09:25]OFD Sender: No OFD packet to send [09:09:27]accept exits with 9 [09:09:27]New connection [09:09:27]New thread 3067260260 created [09:09:27]Thread 3067116900 joined [09:09:27]Waiting for new connection... [09:09:27] Sock 9.Parse request [09:09:27]Sock 9.Check first char [09:09:27]Sock 9.First char is OK [09:09:27]request: POST /json_proto HTTP/1.0 [09:09:27]Method: POST [09:09:27]URL: /json_proto [09:09:27]Method is POST - this is cgi request [09:09:27]url: /json_proto [09:09:27]query_string will be loaded in cgi processing [09:09:27]execute_cgi json_proto POST (null) [09:09:27]execute_cgi path=json_proto method=POST [09:09:27]POST find Content-Length [09:09:27]Host: 172.17.50.3:8080 [09:09:27]Content-Length: 790 [09:09:27]Content-Type: application/json [09:09:27] [09:09:27]POST finish read [09:09:27]Found Content-Length = 790 [09:09:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A31095", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:27]execute_script... [09:09: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)2884932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A31095", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:27]POST & json_proto [09:09:27]process_json_proto [09:09:27]json parsed OK: [09:09:27]protocol is kg_v1.0 [09:09:27]action value=close_receipt [09:09:27]process_action close_receipt [09:09:27]cmd_close_receipt [09:09:27]MH_GetDate [09:09:27]Write to MH i2c: F0 00 00 86 B7 2C [09:09:27]Write i2c OK [09:09:27]MH_I2C_Read... [09:09:27]Read from MH i2c: F0 [09:09:27]MH_I2C_Read... [09:09:27]Read from MH i2c: F0 09 00 [09:09:27]MH_I2C_Read... [09:09:27]Read from MH i2c: F0 09 00 86 B7 00 D0 C8 14 67 6B 98 1E 66 CF [09:09:27]GetLastDocTimeStamp 1729415327 [09:09:27]current date 1729415376 [09:09:27]FM_GetShiftState [09:09:27]SAM_PROTO_GetShiftState [09:09:27]wFMCommunicate request_size=4 [09:09:27]MH_SAM_APDU [09:09:27]CAPDU: 80 13 01 00 [09:09:27]Write to MH i2c: E2 08 00 87 B7 80 13 01 00 00 00 00 00 BB [09:09:27]Write i2c OK [09:09:27]MH_I2C_Read... [09:09:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:27]Read from MH i2c: E2 [09:09:27]MH_I2C_Read... [09:09:27]Read from MH i2c: E2 0E 00 [09:09:27]MH_I2C_Read... [09:09:27]Read from MH i2c: E2 0E 00 87 B7 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 C1 [09:09:27]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:09:27]wFMCommunicate OK [09:09:27]SAM_PROTO_GetShiftState done [09:09:27]FM_GetShiftState done [09:09:27]opened in 1729383220 [09:09:27]opened+sec_in_day 1729469620 [09:09:27]quantity*price = 0 [09:09:27]sum+1 = 1 [09:09:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 64 20.10.2024 09:09 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 31095 ФМ: 0000000000963346 ФД: 69219 ФПД: 171392177890676 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090936&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69219&fm=171392177890676&tin=02508201610067®Number=0000000000156251&sum=0 [09:09:28]StoreToDocumentArchive [09:09:28]shift 193 fd 69219 [09:09:28]save to /storage/0193/doc_00069219 [09:09:28]save last doc name /storage/0193/doc_00069219 to /storage/kkm_last_doc_name [09:09:28]save OK [09:09:28]Clear old archive folders... [09:09:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:09:28]tlvbuf is 007FA750 [09:09:28]SAM_PROTO_ClearQueue [09:09:28]wFMCommunicate request_size=4 [09:09:28]MH_SAM_APDU [09:09:28]CAPDU: 80 09 00 00 [09:09:28]Write to MH i2c: E2 08 00 94 B7 80 09 00 00 00 00 00 00 BD [09:09:28]Write i2c OK [09:09:28]MH_I2C_Read... [09:09:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:09:28]Read from MH i2c: E2 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: E2 03 00 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: E2 03 00 94 B7 00 90 00 BF [09:09:28]RAPDU: 90 00 [09:09:28]wFMCommunicate OK [09:09:28]SAM_PROTO_ClearQueue done [09:09:28]KKMCreateOFDPacket [09:09:28]OFDProtocolAddRootSTLVToBuf [09:09:28]FM_MakeSignedData [09:09:28]FM_MakeSignedData [09:09:28]SAM_PROTO_SignData [09:09:28]wFMCommunicate request_size=4 [09:09:28]MH_SAM_APDU [09:09:28]CAPDU: 80 0D 01 02 [09:09:28]Write to MH i2c: E2 08 00 95 B7 80 0D 01 02 00 00 00 00 C5 [09:09:28]Write i2c OK [09:09:28]MH_I2C_Read... [09:09:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:09:28]Read from MH i2c: E2 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: E2 03 00 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: E2 03 00 95 B7 00 90 00 C0 [09:09:28]RAPDU: 90 00 [09:09:28]wFMCommunicate OK [09:09:28]wFMCommunicate request_size=255 [09:09:28]MH_SAM_APDU [09:09:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 40 00 00 00 F4 03 04 00 D0 C8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 63 0E 01 00 35 04 06 00 9B E1 59 E1 [09:09:28]Write to MH i2c: E2 02 01 96 B7 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 40 00 00 00 F4 03 04 00 D0 C8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 63 0E 01 00 35 04 06 00 9B E1 59 E1 00 00 6B [09:09:28]Write i2c OK [09:09:28]MH_I2C_Read... [09:09:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:28]Read from MH i2c: E2 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: E2 03 00 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: E2 03 00 96 B7 00 90 00 C1 [09:09:28]RAPDU: 90 00 [09:09:28]wFMCommunicate OK [09:09:28]wFMCommunicate request_size=7 [09:09:28]MH_SAM_APDU [09:09:28]CAPDU: 80 0D 02 02 02 65 74 [09:09:28]Write to MH i2c: E2 0A 00 97 B7 80 0D 02 02 02 00 65 74 00 00 A5 [09:09:28]Write i2c OK [09:09:28]MH_I2C_Read... [09:09:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:28]Read from MH i2c: E2 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: E2 03 00 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: E2 03 00 97 B7 00 90 00 C2 [09:09:28]RAPDU: 90 00 [09:09:28]wFMCommunicate OK [09:09:28]wFMCommunicate request_size=4 [09:09:28]MH_SAM_APDU [09:09:28]CAPDU: 80 0D 03 02 [09:09:28]Write to MH i2c: E2 08 00 98 B7 80 0D 03 02 00 00 00 00 CA [09:09:28]Write i2c OK [09:09:28]MH_I2C_Read... [09:09:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:09:28]Read from MH i2c: E2 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: E2 0B 00 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: E2 0B 00 98 B7 00 6D 59 95 33 90 82 E1 4F 90 00 9B [09:09:28]RAPDU: 6D 59 95 33 90 82 E1 4F 90 00 [09:09:28]wFMCommunicate OK [09:09:28]SAM_PROTO_SignData done [09:09:28]FM_MakeSignedData done [09:09:28]CreateOFDProtocolMessage [09:09:28]wFMCommunicate request_size=4 [09:09:28]MH_SAM_APDU [09:09:28]CAPDU: 80 11 00 00 [09:09:28]Write to MH i2c: E2 08 00 99 B7 80 11 00 00 00 00 00 00 CA [09:09:28]Write i2c OK [09:09:28]MH_I2C_Read... [09:09:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:28]Read from MH i2c: E2 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: E2 17 00 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: E2 17 00 99 B7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1C [09:09:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:09:28]wFMCommunicate OK [09:09:28]CreateOFDProtocolMessage done [09:09:28]OFDSenderStorePacket 69219 [09:09:28]StoreOFDPacket docnum=69219 [09:09:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 77 46 04 01 56 3F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 40 00 00 00 F4 03 04 00 D0 C8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 63 0E 01 00 35 04 06 00 9B E1 59 E1 65 74 6D 59 95 33 90 82 E1 4F [09:09:28]CheckFolder [09:09:28]dirname=/storage/ofd_packets [09:09:28]CheckFolder done [09:09:28]ProducePacketName [09:09:28]name=ofd_packets/00069219 [09:09:28]NVStorageSaveData ofd_packets/00069219 [09:09:28]File name is /storage/ofd_packets/00069219 [09:09:28]Write 298 bytes [09:09:28]NVStorageSaveData done [09:09:28]OFDSenderStorePacket done [09:09:28]KKMCreateOFDPacket done [09:09:28]NVStorageSaveData kkm_last_timestamp [09:09:28]File name is /storage/kkm_last_timestamp [09:09:28]Write 4 bytes [09:09:28]NVStorageSaveData done [09:09:28]ExternCall_PrintAddStr [09:09:28]wPrintStart [09:09:28]Write to MH i2c: 01 00 00 9A B7 51 [09:09:28]Write i2c OK [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: 01 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: 01 07 00 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: 01 07 00 9A B7 00 00 00 00 00 FF 0F 66 [09:09:28]RasterBufferAndPrint [09:09:28]line Счет N : (1)2884932 [09:09:28]line ИНН: 02508201610067 [09:09:28]line Контрольно-Кассовый Чек [09:09:28]line ПРОДАЖА [09:09:28]line ТРК (МРК, ГНК) : 61 [09:09:28]line Товар: 2710194210 [09:09:28]line ДТ-К-5 [09:09:28]line 50.000 * 0.00 [09:09:28]line = 0.00 [09:09:28]line НДС 12% НСП 1% [09:09:28]line > о реализуемом товаре [09:09:28]line ИТОГО: 0.00 [09:09:28]line НСП 1% : 0.00 [09:09:28]line НДС 12% : 0.00 [09:09:28]line Наличными: 0.00 [09:09:28]line Безнал.: 0.00 [09:09:28]line Место: АЗС № 85 "Партнер Нефть" [09:09:28]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:09:28]line СНО: Общий режим [09:09:28]line Чек 64 20.10.2024 09:09 [09:09:28]line Смена: 193 ФФД: 1.0 [09:09:28]line ЗНМ: 0300000167 [09:09:28]line РНМ: 0000000000156251 [09:09:28]line Версия ККМ: v1.0 [09:09:28]line Талоны: Топливная Карта [09:09:28]line 31095 [09:09:28]line ФМ: 0000000000963346 [09:09:28]line ФД: 69219 [09:09:28]line ФПД: 171392177890676 [09:09:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090936&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69219&fm=171392177890676&tin=02508201610067®Number=0000000000156251&sum=0 [09:09:29]OFD Sender: Processing packet 69219 [packets to send 18, broken 17] [09:09:29]ProducePacketName [09:09:29]name=ofd_packets/00069219 [09:09:29]OFD Sender: To server: pG, [09:09:29]CommunicateWithHost lk.salyk.kg:30040 [09:09:29]ConnectInit lk.salyk.kg [09:09:29]written 0, free lines is 4095 [09:09:29]Connected sock=8 [09:09:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 77 46 04 01 56 3F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 40 00 00 00 F4 03 04 00 D0 C8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 63 0E 01 00 35 04 06 00 9B E1 59 E1 65 74 6D 59 95 33 90 82 E1 4F [09:09:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 6E 78 47 00 23 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 63 0E 01 00 F4 03 04 00 77 72 14 67 B6 04 01 00 00 96 FD A1 17 74 10 89 11 [09:09:29]CommunicateWithHost err = 0 [09:09:29]CheckOFDResponse [09:09:29]1017 (14) - 77093643461234 [09:09:29]1041 (16) - 0000000000963346 [09:09:29]1040 (4) - 69219 [09:09:29]1012 (4) - 20.10.2024 03:01 [09:09:29]1206 (1) - 0 [09:09:29]OFD Sender: Remove packet 69219 [09:09:29]ProducePacketName [09:09:29]name=ofd_packets/00069219 [09:09:29]NVStorageDeleteData [09:09:29]Write to MH i2c: 01 00 00 C4 B7 7B [09:09:29]Write i2c OK [09:09:29]MH_I2C_Read... [09:09:29]Read from MH i2c: 01 [09:09:29]MH_I2C_Read... [09:09:29]Read from MH i2c: 01 07 00 [09:09:29]MH_I2C_Read... [09:09:29]Read from MH i2c: 01 07 00 C4 B7 00 00 00 00 00 FD 0C 8B [09:09:29]RasterBufferAndPrint [09:09:29]line [09:09:29]line [09:09:29]line [09:09:29]line [09:09:29]line [09:09:29]written 0, free lines is 3334 [09:09:29]MH_Cut [09:09:29]Write to MH i2c: D1 01 00 CB B7 01 54 [09:09:29]Write i2c OK [09:09:29]MH_I2C_Read... [09:09:29]Read from MH i2c: D1 [09:09:29]MH_I2C_Read... [09:09:29]Read from MH i2c: D1 01 00 [09:09:29]MH_I2C_Read... [09:09:29]Read from MH i2c: D1 01 00 CB B7 00 53 [09:09:29]Write to MH i2c: 01 00 00 CC B7 83 [09:09:29]Write i2c OK [09:09:29]MH_I2C_Read... [09:09:29]OFD Sender: No OFD packet to send [09:09:30]*** Cut start [09:09:30]*** Partial cut [09:09:30]*** CUTSNS_PIN = 1 [09:09:30]*** CUTSNS_PIN = 0 [09:09:30]*** Brake cut motor [09:09:30]Read from MH i2c: 01 [09:09:30]MH_I2C_Read... [09:09:30]*** Stop cut motor [09:09:30]*** Cut end [09:09:30]Read from MH i2c: 01 07 00 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: 01 07 00 CC B7 00 00 00 00 00 FF 0F 98 [09:09:30]process_action close_receipt done [09:09:30]requested_data is exist [09:09:30]produce_requested_data [09:09:30]requested_item fm.sn is exist - process it [09:09:30]wFMCommunicate request_size=4 [09:09:30]MH_SAM_APDU [09:09:30]CAPDU: 80 11 00 00 [09:09:30]Write to MH i2c: E2 08 00 CD B7 80 11 00 00 00 00 00 00 FE [09:09:30]Write i2c OK [09:09:30]MH_I2C_Read... [09:09:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:30]Read from MH i2c: E2 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: E2 17 00 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: E2 17 00 CD B7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 50 [09:09:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:09:30]wFMCommunicate OK [09:09:30]requested_item fd.num is exist - process it [09:09:30]SAM_PROTO_GetFieldsCounters [09:09:30]wFMCommunicate request_size=4 [09:09:30]MH_SAM_APDU [09:09:30]CAPDU: 80 13 00 00 [09:09:30]Write to MH i2c: E2 08 00 CE B7 80 13 00 00 00 00 00 00 01 [09:09:30]Write i2c OK [09:09:30]MH_I2C_Read... [09:09:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:30]Read from MH i2c: E2 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: E2 62 00 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: E2 62 00 CE B7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 63 0E 01 00 0E 04 04 00 C1 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 0F [09:09:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 63 0E 01 00 0E 04 04 00 C1 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 [09:09:30]wFMCommunicate OK [09:09:30]SAM_PROTO_GetFieldsCounters done [09:09:30]requested_item shift.num is exist - process it [09:09:30]requested_item shift.opened is exist - process it [09:09:30]req_shift_opened [09:09:30]FM_GetShiftState [09:09:30]SAM_PROTO_GetShiftState [09:09:30]wFMCommunicate request_size=4 [09:09:30]MH_SAM_APDU [09:09:30]CAPDU: 80 13 01 00 [09:09:30]Write to MH i2c: E2 08 00 CF B7 80 13 01 00 00 00 00 00 03 [09:09:30]Write i2c OK [09:09:30]MH_I2C_Read... [09:09:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:31]Read from MH i2c: E2 [09:09:31]MH_I2C_Read... [09:09:31]Read from MH i2c: E2 0E 00 [09:09:31]MH_I2C_Read... [09:09:31]Read from MH i2c: E2 0E 00 CF B7 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 09 [09:09:31]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:09:31]wFMCommunicate OK [09:09:31]SAM_PROTO_GetShiftState done [09:09:31]FM_GetShiftState done [09:09:31]req_shift_opened done [09:09:31]requested_item shift.open_date is exist - process it [09:09:31]req_shift_open_date [09:09:31]req_shift_open_date done [09:09:31]produce_requested_data done [09:09:31]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69219,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [09:09:31]process_action_free close_receipt [09:09:31]json_value_free [09:09:31]json_value_free done [09:09:31]process_json_proto returns [09:09:31]Send response to host [09:09:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69219,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [09:09:31]free response buf [09:09:31]execute_script done [09:09:31]execute_script returns [09:09:31]free content buf [09:09:31]Sock 9.Close socket [09:09:31]Sock 9.Thread stoped [09:09:34]OFD Sender: No OFD packet to send [09:09:39]OFD Sender: No OFD packet to send [09:09:44]OFD Sender: No OFD packet to send [09:09:49]OFD Sender: No OFD packet to send [09:09:54]OFD Sender: No OFD packet to send [09:09:59]OFD Sender: No OFD packet to send [09:10:04]OFD Sender: No OFD packet to send [09:10:09]OFD Sender: No OFD packet to send [09:10:14]OFD Sender: No OFD packet to send [09:10:19]OFD Sender: No OFD packet to send [09:10:24]OFD Sender: No OFD packet to send [09:10:29]OFD Sender: No OFD packet to send [09:10:31]accept exits with 10 [09:10:31]New connection [09:10:31]New thread 3067116900 created [09:10:31]Thread 3067260260 joined [09:10:31]Waiting for new connection... [09:10:31] Sock 10.Parse request [09:10:31]Sock 10.Check first char [09:10:31]Sock 10.First char is OK [09:10:31]request: POST /json_proto HTTP/1.0 [09:10:31]Method: POST [09:10:31]URL: /json_proto [09:10:31]Method is POST - this is cgi request [09:10:31]url: /json_proto [09:10:31]query_string will be loaded in cgi processing [09:10:31]execute_cgi json_proto POST (null) [09:10:31]execute_cgi path=json_proto method=POST [09:10:31]POST find Content-Length [09:10:31]Host: 172.17.50.3:8080 [09:10:31]Content-Length: 689 [09:10:31]Content-Type: application/json [09:10:31] [09:10:31]POST finish read [09:10:31]Found Content-Length = 689 [09:10:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:31]execute_script... [09:10: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)2884933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:31]POST & json_proto [09:10:31]process_json_proto [09:10:31]json parsed OK: [09:10:31]protocol is kg_v1.0 [09:10:31]action value=close_receipt [09:10:31]process_action close_receipt [09:10:31]cmd_close_receipt [09:10:31]MH_GetDate [09:10:31]Write to MH i2c: F0 00 00 D0 B7 76 [09:10:31]Write i2c OK [09:10:31]MH_I2C_Read... [09:10:31]Read from MH i2c: F0 [09:10:31]MH_I2C_Read... [09:10:31]Read from MH i2c: F0 09 00 [09:10:31]MH_I2C_Read... [09:10:31]Read from MH i2c: F0 09 00 D0 B7 00 10 C9 14 67 6B 98 1E 66 5A [09:10:31]GetLastDocTimeStamp 1729415376 [09:10:31]current date 1729415440 [09:10:31]FM_GetShiftState [09:10:31]SAM_PROTO_GetShiftState [09:10:31]wFMCommunicate request_size=4 [09:10:31]MH_SAM_APDU [09:10:31]CAPDU: 80 13 01 00 [09:10:31]Write to MH i2c: E2 08 00 D1 B7 80 13 01 00 00 00 00 00 05 [09:10:31]Write i2c OK [09:10:31]MH_I2C_Read... [09:10:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:31]Read from MH i2c: E2 [09:10:31]MH_I2C_Read... [09:10:31]Read from MH i2c: E2 0E 00 [09:10:31]MH_I2C_Read... [09:10:31]Read from MH i2c: E2 0E 00 D1 B7 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 0B [09:10:31]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:10:31]wFMCommunicate OK [09:10:31]SAM_PROTO_GetShiftState done [09:10:31]FM_GetShiftState done [09:10:31]opened in 1729383220 [09:10:31]opened+sec_in_day 1729469620 [09:10:31]quantity*price = 100051 [09:10:31]sum+1 = 100052 [09:10:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 65 20.10.2024 09:10 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69220 ФПД: 139961929164068 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091040&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69220&fm=139961929164068&tin=02508201610067®Number=0000000000156251&sum=100000 [09:10:32]StoreToDocumentArchive [09:10:32]shift 193 fd 69220 [09:10:32]save to /storage/0193/doc_00069220 [09:10:32]save last doc name /storage/0193/doc_00069220 to /storage/kkm_last_doc_name [09:10:32]save OK [09:10:32]Clear old archive folders... [09:10:32]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:10:32]tlvbuf is 00584260 [09:10:32]SAM_PROTO_ClearQueue [09:10:32]wFMCommunicate request_size=4 [09:10:32]MH_SAM_APDU [09:10:32]CAPDU: 80 09 00 00 [09:10:32]Write to MH i2c: E2 08 00 DE B7 80 09 00 00 00 00 00 00 07 [09:10:32]Write i2c OK [09:10:32]MH_I2C_Read... [09:10:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:10:32]Read from MH i2c: E2 [09:10:32]MH_I2C_Read... [09:10:32]Read from MH i2c: E2 03 00 [09:10:32]MH_I2C_Read... [09:10:32]Read from MH i2c: E2 03 00 DE B7 00 90 00 09 [09:10:32]RAPDU: 90 00 [09:10:32]wFMCommunicate OK [09:10:32]SAM_PROTO_ClearQueue done [09:10:32]KKMCreateOFDPacket [09:10:32]OFDProtocolAddRootSTLVToBuf [09:10:32]FM_MakeSignedData [09:10:32]FM_MakeSignedData [09:10:32]SAM_PROTO_SignData [09:10:32]wFMCommunicate request_size=4 [09:10:32]MH_SAM_APDU [09:10:32]CAPDU: 80 0D 01 02 [09:10:32]Write to MH i2c: E2 08 00 DF B7 80 0D 01 02 00 00 00 00 0F [09:10:32]Write i2c OK [09:10:32]MH_I2C_Read... [09:10:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:10:32]Read from MH i2c: E2 [09:10:32]MH_I2C_Read... [09:10:32]Read from MH i2c: E2 03 00 [09:10:32]MH_I2C_Read... [09:10:32]Read from MH i2c: E2 03 00 DF B7 00 90 00 0A [09:10:32]RAPDU: 90 00 [09:10:32]wFMCommunicate OK [09:10:32]wFMCommunicate request_size=255 [09:10:32]MH_SAM_APDU [09:10:32]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 10 C9 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 64 0E 01 [09:10:32]Write to MH i2c: E2 02 01 E0 B7 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 10 C9 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 64 0E 01 00 00 2A [09:10:32]Write i2c OK [09:10:32]MH_I2C_Read... [09:10:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:32]Read from MH i2c: E2 [09:10:32]MH_I2C_Read... [09:10:32]Read from MH i2c: E2 03 00 [09:10:32]MH_I2C_Read... [09:10:32]Read from MH i2c: E2 03 00 E0 B7 00 90 00 0B [09:10:32]RAPDU: 90 00 [09:10:32]wFMCommunicate OK [09:10:32]wFMCommunicate request_size=16 [09:10:32]MH_SAM_APDU [09:10:32]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 7F 4B 6D 11 E5 24 [09:10:32]Write to MH i2c: E2 13 00 E1 B7 80 0D 02 02 0B 00 00 35 04 06 00 7F 4B 6D 11 E5 24 00 00 B8 [09:10:32]Write i2c OK [09:10:32]MH_I2C_Read... [09:10:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:32]Read from MH i2c: E2 [09:10:32]MH_I2C_Read... [09:10:32]Read from MH i2c: E2 03 00 [09:10:32]MH_I2C_Read... [09:10:32]Read from MH i2c: E2 03 00 E1 B7 00 90 00 0C [09:10:32]RAPDU: 90 00 [09:10:32]wFMCommunicate OK [09:10:32]wFMCommunicate request_size=4 [09:10:32]MH_SAM_APDU [09:10:32]CAPDU: 80 0D 03 02 [09:10:32]Write to MH i2c: E2 08 00 E2 B7 80 0D 03 02 00 00 00 00 14 [09:10:32]Write i2c OK [09:10:32]MH_I2C_Read... [09:10:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:10:32]Read from MH i2c: E2 [09:10:32]MH_I2C_Read... [09:10:32]Read from MH i2c: E2 0B 00 [09:10:32]MH_I2C_Read... [09:10:32]Read from MH i2c: E2 0B 00 E2 B7 00 BC 61 0E 8C 42 CF 20 AB 90 00 A8 [09:10:32]RAPDU: BC 61 0E 8C 42 CF 20 AB 90 00 [09:10:32]wFMCommunicate OK [09:10:32]SAM_PROTO_SignData done [09:10:32]FM_MakeSignedData done [09:10:32]CreateOFDProtocolMessage [09:10:32]wFMCommunicate request_size=4 [09:10:32]MH_SAM_APDU [09:10:32]CAPDU: 80 11 00 00 [09:10:32]Write to MH i2c: E2 08 00 E3 B7 80 11 00 00 00 00 00 00 14 [09:10:32]Write i2c OK [09:10:32]MH_I2C_Read... [09:10:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:32]Read from MH i2c: E2 [09:10:32]MH_I2C_Read... [09:10:32]Read from MH i2c: E2 17 00 [09:10:32]MH_I2C_Read... [09:10:32]Read from MH i2c: E2 17 00 E3 B7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 66 [09:10:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:10:32]wFMCommunicate OK [09:10:32]CreateOFDProtocolMessage done [09:10:32]OFDSenderStorePacket 69220 [09:10:32]StoreOFDPacket docnum=69220 [09:10:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 C8 57 0D 01 DE 6A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 10 C9 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 64 0E 01 00 35 04 06 00 7F 4B 6D 11 E5 24 BC 61 0E 8C 42 CF 20 AB [09:10:32]CheckFolder [09:10:32]dirname=/storage/ofd_packets [09:10:32]CheckFolder done [09:10:32]ProducePacketName [09:10:32]name=ofd_packets/00069220 [09:10:32]NVStorageSaveData ofd_packets/00069220 [09:10:32]File name is /storage/ofd_packets/00069220 [09:10:32]Write 307 bytes [09:10:32]NVStorageSaveData done [09:10:32]OFDSenderStorePacket done [09:10:32]KKMCreateOFDPacket done [09:10:32]NVStorageSaveData kkm_last_timestamp [09:10:32]File name is /storage/kkm_last_timestamp [09:10:32]Write 4 bytes [09:10:32]NVStorageSaveData done [09:10:32]ExternCall_PrintAddStr [09:10:32]wPrintStart [09:10:32]Write to MH i2c: 01 00 00 E4 B7 9B [09:10:32]Write i2c OK [09:10:32]MH_I2C_Read... [09:10:32]Read from MH i2c: 01 [09:10:32]MH_I2C_Read... [09:10:32]Read from MH i2c: 01 07 00 [09:10:32]MH_I2C_Read... [09:10:32]Read from MH i2c: 01 07 00 E4 B7 00 00 00 00 00 FF 0F B0 [09:10:32]RasterBufferAndPrint [09:10:32]line Счет N : (1)2884933 [09:10:32]line ИНН: 02508201610067 [09:10:32]line Контрольно-Кассовый Чек [09:10:32]line ПРОДАЖА [09:10:32]line ТРК (МРК, ГНК) : 41 [09:10:32]line Товар: 2710194240 [09:10:32]line D-ENERGY Дт-К-2 [09:10:32]line 12.960 * 77.20 [09:10:32]line = 1000.51 [09:10:32]line НДС 12% НСП 1% [09:10:32]line > о реализуемом товаре [09:10:32]line ОКРУГЛЕНИЕ: -0.51 [09:10:32]line ИТОГО: 1000.00 [09:10:32]line Внесено: 1000.00 [09:10:32]line СДАЧА: 0.00 [09:10:32]line НСП 1% : 8.85 [09:10:32]line НДС 12% : 106.25 [09:10:32]line Наличными: 1000.00 [09:10:32]line Безнал.: 0.00 [09:10:32]line Место: АЗС № 85 "Партнер Нефть" [09:10:32]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:10:32]line СНО: Общий режим [09:10:32]line Чек 65 20.10.2024 09:10 [09:10:32]line Смена: 193 ФФД: 1.0 [09:10:32]line ЗНМ: 0300000167 [09:10:32]line РНМ: 0000000000156251 [09:10:32]line Версия ККМ: v1.0 [09:10:32]line ФМ: 0000000000963346 [09:10:32]line ФД: 69220 [09:10:32]line ФПД: 139961929164068 [09:10:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091040&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69220&fm=139961929164068&tin=02508201610067®Number=0000000000156251&sum=100000 [09:10:33]OFD Sender: Processing packet 69220 [packets to send 18, broken 17] [09:10:33]ProducePacketName [09:10:33]name=ofd_packets/00069220 [09:10:33]OFD Sender: To server: pG, [09:10:33]CommunicateWithHost lk.salyk.kg:30040 [09:10:33]ConnectInit lk.salyk.kg [09:10:33]written 0, free lines is 4095 [09:10:33]Connected sock=9 [09:10:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 C8 57 0D 01 DE 6A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 10 C9 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 64 0E 01 00 35 04 06 00 7F 4B 6D 11 E5 24 BC 61 0E 8C 42 CF 20 AB [09:10:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 52 8E 47 00 BD 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 64 0E 01 00 F4 03 04 00 B8 72 14 67 B6 04 01 00 00 16 2A AF 02 F4 87 A3 A2 [09:10:33]CommunicateWithHost err = 0 [09:10:33]CheckOFDResponse [09:10:33]1017 (14) - 77093643461234 [09:10:33]1041 (16) - 0000000000963346 [09:10:33]1040 (4) - 69220 [09:10:33]1012 (4) - 20.10.2024 03:02 [09:10:33]1206 (1) - 0 [09:10:33]OFD Sender: Remove packet 69220 [09:10:33]ProducePacketName [09:10:33]name=ofd_packets/00069220 [09:10:33]NVStorageDeleteData [09:10:33]Write to MH i2c: 01 00 00 0F B8 C7 [09:10:33]Write i2c OK [09:10:33]MH_I2C_Read... [09:10:33]Read from MH i2c: 01 [09:10:33]MH_I2C_Read... [09:10:33]Read from MH i2c: 01 07 00 [09:10:33]MH_I2C_Read... [09:10:33]Read from MH i2c: 01 07 00 0F B8 00 00 00 00 00 FB 0C D5 [09:10:33]RasterBufferAndPrint [09:10:33]line [09:10:33]line [09:10:33]line [09:10:33]line [09:10:33]line [09:10:33]written 0, free lines is 3332 [09:10:33]MH_Cut [09:10:33]Write to MH i2c: D1 01 00 16 B8 01 A0 [09:10:33]Write i2c OK [09:10:33]MH_I2C_Read... [09:10:33]Read from MH i2c: D1 [09:10:33]MH_I2C_Read... [09:10:33]Read from MH i2c: D1 01 00 [09:10:33]MH_I2C_Read... [09:10:33]Read from MH i2c: D1 01 00 16 B8 00 9F [09:10:33]Write to MH i2c: 01 00 00 17 B8 CF [09:10:33]Write i2c OK [09:10:33]MH_I2C_Read... [09:10:34]OFD Sender: No OFD packet to send [09:10:34]*** Cut start [09:10:34]*** Partial cut [09:10:34]*** CUTSNS_PIN = 1 [09:10:34]*** CUTSNS_PIN = 0 [09:10:34]*** Brake cut motor [09:10:35]Read from MH i2c: 01 [09:10:35]MH_I2C_Read... [09:10:35]*** Stop cut motor [09:10:35]*** Cut end [09:10:35]Read from MH i2c: 01 07 00 [09:10:35]MH_I2C_Read... [09:10:35]Read from MH i2c: 01 07 00 17 B8 00 00 00 00 00 FF 0F E4 [09:10:35]process_action close_receipt done [09:10:35]requested_data is exist [09:10:35]produce_requested_data [09:10:35]requested_item fm.sn is exist - process it [09:10:35]wFMCommunicate request_size=4 [09:10:35]MH_SAM_APDU [09:10:35]CAPDU: 80 11 00 00 [09:10:35]Write to MH i2c: E2 08 00 18 B8 80 11 00 00 00 00 00 00 4A [09:10:35]Write i2c OK [09:10:35]MH_I2C_Read... [09:10:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:35]Read from MH i2c: E2 [09:10:35]MH_I2C_Read... [09:10:35]Read from MH i2c: E2 17 00 [09:10:35]MH_I2C_Read... [09:10:35]Read from MH i2c: E2 17 00 18 B8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9C [09:10:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:10:35]wFMCommunicate OK [09:10:35]requested_item fd.num is exist - process it [09:10:35]SAM_PROTO_GetFieldsCounters [09:10:35]wFMCommunicate request_size=4 [09:10:35]MH_SAM_APDU [09:10:35]CAPDU: 80 13 00 00 [09:10:35]Write to MH i2c: E2 08 00 19 B8 80 13 00 00 00 00 00 00 4D [09:10:35]Write i2c OK [09:10:35]MH_I2C_Read... [09:10:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:10:35]Read from MH i2c: E2 [09:10:35]MH_I2C_Read... [09:10:35]Read from MH i2c: E2 62 00 [09:10:35]MH_I2C_Read... [09:10:35]Read from MH i2c: E2 62 00 19 B8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 64 0E 01 00 0E 04 04 00 C1 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 5F [09:10:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 64 0E 01 00 0E 04 04 00 C1 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 [09:10:35]wFMCommunicate OK [09:10:35]SAM_PROTO_GetFieldsCounters done [09:10:35]requested_item shift.num is exist - process it [09:10:35]requested_item shift.opened is exist - process it [09:10:35]req_shift_opened [09:10:35]FM_GetShiftState [09:10:35]SAM_PROTO_GetShiftState [09:10:35]wFMCommunicate request_size=4 [09:10:35]MH_SAM_APDU [09:10:35]CAPDU: 80 13 01 00 [09:10:35]Write to MH i2c: E2 08 00 1A B8 80 13 01 00 00 00 00 00 4F [09:10:35]Write i2c OK [09:10:35]MH_I2C_Read... [09:10:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:35]Read from MH i2c: E2 [09:10:35]MH_I2C_Read... [09:10:35]Read from MH i2c: E2 0E 00 [09:10:35]MH_I2C_Read... [09:10:35]Read from MH i2c: E2 0E 00 1A B8 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 55 [09:10:35]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:10:35]wFMCommunicate OK [09:10:35]SAM_PROTO_GetShiftState done [09:10:35]FM_GetShiftState done [09:10:35]req_shift_opened done [09:10:35]requested_item shift.open_date is exist - process it [09:10:35]req_shift_open_date [09:10:35]req_shift_open_date done [09:10:35]produce_requested_data done [09:10:35]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69220,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [09:10:35]process_action_free close_receipt [09:10:35]json_value_free [09:10:35]json_value_free done [09:10:35]process_json_proto returns [09:10:35]Send response to host [09:10:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69220,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [09:10:35]free response buf [09:10:35]execute_script done [09:10:35]execute_script returns [09:10:35]free content buf [09:10:35]Sock 10.Close socket [09:10:35]Sock 10.Thread stoped [09:10:39]OFD Sender: No OFD packet to send [09:10:44]OFD Sender: No OFD packet to send [09:10:49]OFD Sender: No OFD packet to send [09:10:54]OFD Sender: No OFD packet to send [09:10:59]OFD Sender: No OFD packet to send [09:11:04]OFD Sender: No OFD packet to send [09:11:09]OFD Sender: No OFD packet to send [09:11:14]OFD Sender: No OFD packet to send [09:11:19]OFD Sender: No OFD packet to send [09:11:24]OFD Sender: No OFD packet to send [09:11:29]OFD Sender: No OFD packet to send [09:11:34]OFD Sender: No OFD packet to send [09:11:39]OFD Sender: No OFD packet to send [09:11:44]OFD Sender: No OFD packet to send [09:11:49]OFD Sender: No OFD packet to send [09:11:54]OFD Sender: No OFD packet to send [09:11:56]accept exits with 8 [09:11:56]New connection [09:11:56]New thread 3067260260 created [09:11:56]Thread 3067116900 joined [09:11:56]Waiting for new connection... [09:11:56] Sock 8.Parse request [09:11:56]Sock 8.Check first char [09:11:56]Sock 8.First char is OK [09:11:56]request: POST /json_proto HTTP/1.0 [09:11:56]Method: POST [09:11:56]URL: /json_proto [09:11:56]Method is POST - this is cgi request [09:11:56]url: /json_proto [09:11:56]query_string will be loaded in cgi processing [09:11:56]execute_cgi json_proto POST (null) [09:11:56]execute_cgi path=json_proto method=POST [09:11:56]POST find Content-Length [09:11:56]Host: 172.17.50.3:8080 [09:11:56]Content-Length: 676 [09:11:56]Content-Type: application/json [09:11:56] [09:11:56]POST finish read [09:11:56]Found Content-Length = 676 [09:11:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:56]execute_script... [09:11: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)2884934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:56]POST & json_proto [09:11:56]process_json_proto [09:11:56]json parsed OK: [09:11:56]protocol is kg_v1.0 [09:11:56]action value=close_receipt [09:11:56]process_action close_receipt [09:11:56]cmd_close_receipt [09:11:56]MH_GetDate [09:11:56]Write to MH i2c: F0 00 00 1B B8 C2 [09:11:56]Write i2c OK [09:11:56]MH_I2C_Read... [09:11:56]Read from MH i2c: F0 [09:11:56]MH_I2C_Read... [09:11:56]Read from MH i2c: F0 09 00 [09:11:56]MH_I2C_Read... [09:11:56]Read from MH i2c: F0 09 00 1B B8 00 66 C9 14 67 6B 98 1E 66 FC [09:11:56]GetLastDocTimeStamp 1729415440 [09:11:56]current date 1729415526 [09:11:56]FM_GetShiftState [09:11:56]SAM_PROTO_GetShiftState [09:11:56]wFMCommunicate request_size=4 [09:11:56]MH_SAM_APDU [09:11:56]CAPDU: 80 13 01 00 [09:11:56]Write to MH i2c: E2 08 00 1C B8 80 13 01 00 00 00 00 00 51 [09:11:56]Write i2c OK [09:11:56]MH_I2C_Read... [09:11:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:56]Read from MH i2c: E2 [09:11:56]MH_I2C_Read... [09:11:56]Read from MH i2c: E2 0E 00 [09:11:56]MH_I2C_Read... [09:11:56]Read from MH i2c: E2 0E 00 1C B8 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 57 [09:11:56]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:11:56]wFMCommunicate OK [09:11:56]SAM_PROTO_GetShiftState done [09:11:56]FM_GetShiftState done [09:11:56]opened in 1729383220 [09:11:56]opened+sec_in_day 1729469620 [09:11:56]quantity*price = 80010 [09:11:56]sum+1 = 80011 [09:11:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 66 20.10.2024 09:12 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69221 ФПД: 253842073961520 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091206&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69221&fm=253842073961520&tin=02508201610067®Number=0000000000156251&sum=80000 [09:11:58]StoreToDocumentArchive [09:11:58]shift 193 fd 69221 [09:11:58]save to /storage/0193/doc_00069221 [09:11:58]save last doc name /storage/0193/doc_00069221 to /storage/kkm_last_doc_name [09:11:58]save OK [09:11:58]Clear old archive folders... [09:11:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:11:58]tlvbuf is 0050C7D0 [09:11:58]SAM_PROTO_ClearQueue [09:11:58]wFMCommunicate request_size=4 [09:11:58]MH_SAM_APDU [09:11:58]CAPDU: 80 09 00 00 [09:11:58]Write to MH i2c: E2 08 00 29 B8 80 09 00 00 00 00 00 00 53 [09:11:58]Write i2c OK [09:11:58]MH_I2C_Read... [09:11:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:58]Read from MH i2c: E2 [09:11:58]MH_I2C_Read... [09:11:58]Read from MH i2c: E2 03 00 [09:11:58]MH_I2C_Read... [09:11:58]Read from MH i2c: E2 03 00 29 B8 00 90 00 55 [09:11:58]RAPDU: 90 00 [09:11:58]wFMCommunicate OK [09:11:58]SAM_PROTO_ClearQueue done [09:11:58]KKMCreateOFDPacket [09:11:58]OFDProtocolAddRootSTLVToBuf [09:11:58]FM_MakeSignedData [09:11:58]FM_MakeSignedData [09:11:58]SAM_PROTO_SignData [09:11:58]wFMCommunicate request_size=4 [09:11:58]MH_SAM_APDU [09:11:58]CAPDU: 80 0D 01 02 [09:11:58]Write to MH i2c: E2 08 00 2A B8 80 0D 01 02 00 00 00 00 5B [09:11:58]Write i2c OK [09:11:58]MH_I2C_Read... [09:11:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:58]Read from MH i2c: E2 [09:11:58]MH_I2C_Read... [09:11:58]Read from MH i2c: E2 03 00 [09:11:58]MH_I2C_Read... [09:11:58]Read from MH i2c: E2 03 00 2A B8 00 90 00 56 [09:11:58]RAPDU: 90 00 [09:11:58]wFMCommunicate OK [09:11:58]wFMCommunicate request_size=255 [09:11:58]MH_SAM_APDU [09:11:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 66 C9 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 65 0E 01 00 35 04 06 00 E6 DE 36 A5 [09:11:58]Write to MH i2c: E2 02 01 2B B8 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 66 C9 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 65 0E 01 00 35 04 06 00 E6 DE 36 A5 00 00 CD [09:11:58]Write i2c OK [09:11:58]MH_I2C_Read... [09:11:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:58]Read from MH i2c: E2 [09:11:58]MH_I2C_Read... [09:11:58]Read from MH i2c: E2 03 00 [09:11:58]MH_I2C_Read... [09:11:58]Read from MH i2c: E2 03 00 2B B8 00 90 00 57 [09:11:58]RAPDU: 90 00 [09:11:58]wFMCommunicate OK [09:11:58]wFMCommunicate request_size=7 [09:11:58]MH_SAM_APDU [09:11:58]CAPDU: 80 0D 02 02 02 C4 30 [09:11:58]Write to MH i2c: E2 0A 00 2C B8 80 0D 02 02 02 00 C4 30 00 00 56 [09:11:58]Write i2c OK [09:11:58]MH_I2C_Read... [09:11:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:58]Read from MH i2c: E2 [09:11:58]MH_I2C_Read... [09:11:58]Read from MH i2c: E2 03 00 [09:11:58]MH_I2C_Read... [09:11:58]Read from MH i2c: E2 03 00 2C B8 00 90 00 58 [09:11:58]RAPDU: 90 00 [09:11:58]wFMCommunicate OK [09:11:58]wFMCommunicate request_size=4 [09:11:58]MH_SAM_APDU [09:11:58]CAPDU: 80 0D 03 02 [09:11:58]Write to MH i2c: E2 08 00 2D B8 80 0D 03 02 00 00 00 00 60 [09:11:58]Write i2c OK [09:11:58]MH_I2C_Read... [09:11:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:58]Read from MH i2c: E2 [09:11:58]MH_I2C_Read... [09:11:58]Read from MH i2c: E2 0B 00 [09:11:58]MH_I2C_Read... [09:11:58]Read from MH i2c: E2 0B 00 2D B8 00 16 43 CE FE E9 CB 67 E0 90 00 81 [09:11:58]RAPDU: 16 43 CE FE E9 CB 67 E0 90 00 [09:11:58]wFMCommunicate OK [09:11:58]SAM_PROTO_SignData done [09:11:58]FM_MakeSignedData done [09:11:58]CreateOFDProtocolMessage [09:11:58]wFMCommunicate request_size=4 [09:11:58]MH_SAM_APDU [09:11:58]CAPDU: 80 11 00 00 [09:11:58]Write to MH i2c: E2 08 00 2E B8 80 11 00 00 00 00 00 00 60 [09:11:58]Write i2c OK [09:11:58]MH_I2C_Read... [09:11:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:58]Read from MH i2c: E2 [09:11:58]MH_I2C_Read... [09:11:58]Read from MH i2c: E2 17 00 [09:11:58]MH_I2C_Read... [09:11:58]Read from MH i2c: E2 17 00 2E B8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B2 [09:11:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:11:58]wFMCommunicate OK [09:11:58]CreateOFDProtocolMessage done [09:11:58]OFDSenderStorePacket 69221 [09:11:58]StoreOFDPacket docnum=69221 [09:11:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 11 5D 04 01 23 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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 66 C9 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 65 0E 01 00 35 04 06 00 E6 DE 36 A5 C4 30 16 43 CE FE E9 CB 67 E0 [09:11:58]CheckFolder [09:11:58]dirname=/storage/ofd_packets [09:11:58]CheckFolder done [09:11:58]ProducePacketName [09:11:58]name=ofd_packets/00069221 [09:11:58]NVStorageSaveData ofd_packets/00069221 [09:11:58]File name is /storage/ofd_packets/00069221 [09:11:58]Write 298 bytes [09:11:58]NVStorageSaveData done [09:11:58]OFDSenderStorePacket done [09:11:58]KKMCreateOFDPacket done [09:11:58]NVStorageSaveData kkm_last_timestamp [09:11:58]File name is /storage/kkm_last_timestamp [09:11:58]Write 4 bytes [09:11:58]NVStorageSaveData done [09:11:58]ExternCall_PrintAddStr [09:11:58]wPrintStart [09:11:58]Write to MH i2c: 01 00 00 2F B8 E7 [09:11:58]Write i2c OK [09:11:58]MH_I2C_Read... [09:11:58]Read from MH i2c: 01 [09:11:58]MH_I2C_Read... [09:11:58]Read from MH i2c: 01 07 00 [09:11:58]MH_I2C_Read... [09:11:58]Read from MH i2c: 01 07 00 2F B8 00 00 00 00 00 FF 0F FC [09:11:58]RasterBufferAndPrint [09:11:58]line Счет N : (1)2884934 [09:11:58]line ИНН: 02508201610067 [09:11:58]line Контрольно-Кассовый Чек [09:11:58]line ПРОДАЖА [09:11:58]line ТРК (МРК, ГНК) : 51 [09:11:58]line Товар: 2710194210 [09:11:58]line ДТ-К-5 [09:11:58]line 10.500 * 76.20 [09:11:58]line = 800.10 [09:11:58]line НДС 12% НСП 1% [09:11:58]line > о реализуемом товаре [09:11:58]line ОКРУГЛЕНИЕ: -0.10 [09:11:58]line ИТОГО: 800.00 [09:11:58]line Внесено: 800.00 [09:11:58]line СДАЧА: 0.00 [09:11:58]line НСП 1% : 7.08 [09:11:58]line НДС 12% : 84.97 [09:11:58]line Наличными: 800.00 [09:11:58]line Безнал.: 0.00 [09:11:58]line Место: АЗС № 85 "Партнер Нефть" [09:11:58]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:11:58]line СНО: Общий режим [09:11:58]line Чек 66 20.10.2024 09:12 [09:11:58]line Смена: 193 ФФД: 1.0 [09:11:58]line ЗНМ: 0300000167 [09:11:58]line РНМ: 0000000000156251 [09:11:58]line Версия ККМ: v1.0 [09:11:58]line ФМ: 0000000000963346 [09:11:58]line ФД: 69221 [09:11:58]line ФПД: 253842073961520 [09:11:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091206&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69221&fm=253842073961520&tin=02508201610067®Number=0000000000156251&sum=80000 [09:11:58]OFD Sender: Processing packet 69221 [packets to send 18, broken 17] [09:11:58]ProducePacketName [09:11:58]name=ofd_packets/00069221 [09:11:58]OFD Sender: To server: pG, [09:11:58]CommunicateWithHost lk.salyk.kg:30040 [09:11:58]ConnectInit lk.salyk.kg [09:11:58]written 0, free lines is 4095 [09:11:59]Connected sock=10 [09:11:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 11 5D 04 01 23 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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 66 C9 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 65 0E 01 00 35 04 06 00 E6 DE 36 A5 C4 30 16 43 CE FE E9 CB 67 E0 [09:11:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 64 60 47 00 CC 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 65 0E 01 00 F4 03 04 00 0D 73 14 67 B6 04 01 00 00 81 D8 7A 33 0E 00 BD AE [09:11:59]CommunicateWithHost err = 0 [09:11:59]CheckOFDResponse [09:11:59]1017 (14) - 77093643461234 [09:11:59]1041 (16) - 0000000000963346 [09:11:59]1040 (4) - 69221 [09:11:59]1012 (4) - 20.10.2024 03:03 [09:11:59]1206 (1) - 0 [09:11:59]OFD Sender: Remove packet 69221 [09:11:59]ProducePacketName [09:11:59]name=ofd_packets/00069221 [09:11:59]NVStorageDeleteData [09:11:59]Write to MH i2c: 01 00 00 5A B8 12 [09:11:59]Write i2c OK [09:11:59]MH_I2C_Read... [09:11:59]Read from MH i2c: 01 [09:11:59]MH_I2C_Read... [09:11:59]Read from MH i2c: 01 07 00 [09:11:59]MH_I2C_Read... [09:11:59]Read from MH i2c: 01 07 00 5A B8 00 00 00 00 00 F5 0C 1A [09:11:59]RasterBufferAndPrint [09:11:59]line [09:11:59]line [09:11:59]line [09:11:59]line [09:11:59]line [09:11:59]written 0, free lines is 3327 [09:11:59]MH_Cut [09:11:59]Write to MH i2c: D1 01 00 61 B8 01 EB [09:11:59]Write i2c OK [09:11:59]MH_I2C_Read... [09:11:59]Read from MH i2c: D1 [09:11:59]MH_I2C_Read... [09:11:59]Read from MH i2c: D1 01 00 [09:11:59]MH_I2C_Read... [09:11:59]Read from MH i2c: D1 01 00 61 B8 00 EA [09:11:59]Write to MH i2c: 01 00 00 62 B8 1A [09:11:59]Write i2c OK [09:11:59]MH_I2C_Read... [09:11:59]OFD Sender: No OFD packet to send [09:12:00]*** Cut start [09:12:00]*** Partial cut [09:12:00]*** CUTSNS_PIN = 1 [09:12:00]*** CUTSNS_PIN = 0 [09:12:00]*** Brake cut motor [09:12:00]Read from MH i2c: 01 [09:12:00]MH_I2C_Read... [09:12:00]*** Stop cut motor [09:12:00]*** Cut end [09:12:00]Read from MH i2c: 01 07 00 [09:12:00]MH_I2C_Read... [09:12:00]Read from MH i2c: 01 07 00 62 B8 00 00 00 00 00 FF 0F 2F [09:12:00]process_action close_receipt done [09:12:00]requested_data is exist [09:12:00]produce_requested_data [09:12:00]requested_item fm.sn is exist - process it [09:12:00]wFMCommunicate request_size=4 [09:12:00]MH_SAM_APDU [09:12:00]CAPDU: 80 11 00 00 [09:12:00]Write to MH i2c: E2 08 00 63 B8 80 11 00 00 00 00 00 00 95 [09:12:00]Write i2c OK [09:12:00]MH_I2C_Read... [09:12:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:00]Read from MH i2c: E2 [09:12:00]MH_I2C_Read... [09:12:00]Read from MH i2c: E2 17 00 [09:12:00]MH_I2C_Read... [09:12:00]Read from MH i2c: E2 17 00 63 B8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E7 [09:12:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:12:00]wFMCommunicate OK [09:12:00]requested_item fd.num is exist - process it [09:12:00]SAM_PROTO_GetFieldsCounters [09:12:00]wFMCommunicate request_size=4 [09:12:00]MH_SAM_APDU [09:12:00]CAPDU: 80 13 00 00 [09:12:00]Write to MH i2c: E2 08 00 64 B8 80 13 00 00 00 00 00 00 98 [09:12:00]Write i2c OK [09:12:00]MH_I2C_Read... [09:12:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:12:00]Read from MH i2c: E2 [09:12:00]MH_I2C_Read... [09:12:00]Read from MH i2c: E2 62 00 [09:12:00]MH_I2C_Read... [09:12:00]Read from MH i2c: E2 62 00 64 B8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 65 0E 01 00 0E 04 04 00 C1 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 AE [09:12:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 65 0E 01 00 0E 04 04 00 C1 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 [09:12:00]wFMCommunicate OK [09:12:00]SAM_PROTO_GetFieldsCounters done [09:12:00]requested_item shift.num is exist - process it [09:12:00]requested_item shift.opened is exist - process it [09:12:00]req_shift_opened [09:12:00]FM_GetShiftState [09:12:00]SAM_PROTO_GetShiftState [09:12:00]wFMCommunicate request_size=4 [09:12:00]MH_SAM_APDU [09:12:00]CAPDU: 80 13 01 00 [09:12:00]Write to MH i2c: E2 08 00 65 B8 80 13 01 00 00 00 00 00 9A [09:12:00]Write i2c OK [09:12:00]MH_I2C_Read... [09:12:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:01]Read from MH i2c: E2 [09:12:01]MH_I2C_Read... [09:12:01]Read from MH i2c: E2 0E 00 [09:12:01]MH_I2C_Read... [09:12:01]Read from MH i2c: E2 0E 00 65 B8 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 A0 [09:12:01]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:12:01]wFMCommunicate OK [09:12:01]SAM_PROTO_GetShiftState done [09:12:01]FM_GetShiftState done [09:12:01]req_shift_opened done [09:12:01]requested_item shift.open_date is exist - process it [09:12:01]req_shift_open_date [09:12:01]req_shift_open_date done [09:12:01]produce_requested_data done [09:12:01]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69221,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [09:12:01]process_action_free close_receipt [09:12:01]json_value_free [09:12:01]json_value_free done [09:12:01]process_json_proto returns [09:12:01]Send response to host [09:12:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69221,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [09:12:01]free response buf [09:12:01]execute_script done [09:12:01]execute_script returns [09:12:01]free content buf [09:12:01]Sock 8.Close socket [09:12:01]Sock 8.Thread stoped [09:12:04]OFD Sender: No OFD packet to send [09:12:09]OFD Sender: No OFD packet to send [09:12:14]OFD Sender: No OFD packet to send [09:12:18]accept exits with 9 [09:12:18]New connection [09:12:18]New thread 3067116900 created [09:12:18]Thread 3067260260 joined [09:12:18]Waiting for new connection... [09:12:18] Sock 9.Parse request [09:12:18]Sock 9.Check first char [09:12:18]Sock 9.First char is OK [09:12:18]request: POST /json_proto HTTP/1.0 [09:12:18]Method: POST [09:12:18]URL: /json_proto [09:12:18]Method is POST - this is cgi request [09:12:18]url: /json_proto [09:12:18]query_string will be loaded in cgi processing [09:12:18]execute_cgi json_proto POST (null) [09:12:18]execute_cgi path=json_proto method=POST [09:12:18]POST find Content-Length [09:12:18]Host: 172.17.50.3:8080 [09:12:18]Content-Length: 767 [09:12:18]Content-Type: application/json [09:12:18] [09:12:18]POST finish read [09:12:18]Found Content-Length = 767 [09:12:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:18]execute_script... [09:12:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:18]POST & json_proto [09:12:18]process_json_proto [09:12:18]json parsed OK: [09:12:18]protocol is kg_v1.0 [09:12:18]action value=close_receipt [09:12:18]process_action close_receipt [09:12:18]cmd_close_receipt [09:12:18]MH_GetDate [09:12:18]Write to MH i2c: F0 00 00 66 B8 0D [09:12:18]Write i2c OK [09:12:18]MH_I2C_Read... [09:12:18]Read from MH i2c: F0 [09:12:18]MH_I2C_Read... [09:12:18]Read from MH i2c: F0 09 00 [09:12:18]MH_I2C_Read... [09:12:18]Read from MH i2c: F0 09 00 66 B8 00 7C C9 14 67 6B 98 1E 66 5D [09:12:18]GetLastDocTimeStamp 1729415526 [09:12:18]current date 1729415548 [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 67 B8 80 13 01 00 00 00 00 00 9C [09:12:18]Write i2c OK [09:12:18]MH_I2C_Read... [09:12:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:19]Read from MH i2c: E2 [09:12:19]MH_I2C_Read... [09:12:19]Read from MH i2c: E2 0E 00 [09:12:19]MH_I2C_Read... [09:12:19]Read from MH i2c: E2 0E 00 67 B8 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 A2 [09:12:19]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:12:19]wFMCommunicate OK [09:12:19]SAM_PROTO_GetShiftState done [09:12:19]FM_GetShiftState done [09:12:19]opened in 1729383220 [09:12:19]opened+sec_in_day 1729469620 [09:12:19]quantity*price = 30038 [09:12:19]sum+1 = 30039 [09:12:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 67 20.10.2024 09:12 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69222 ФПД: 176189412954067 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091228&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69222&fm=176189412954067&tin=02508201610067®Number=0000000000156251&sum=30038 [09:12:20]StoreToDocumentArchive [09:12:20]shift 193 fd 69222 [09:12:20]save to /storage/0193/doc_00069222 [09:12:20]save last doc name /storage/0193/doc_00069222 to /storage/kkm_last_doc_name [09:12:20]save OK [09:12:20]Clear old archive folders... [09:12:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:12:20]tlvbuf is 00890DB0 [09:12:20]SAM_PROTO_ClearQueue [09:12:20]wFMCommunicate request_size=4 [09:12:20]MH_SAM_APDU [09:12:20]CAPDU: 80 09 00 00 [09:12:20]Write to MH i2c: E2 08 00 74 B8 80 09 00 00 00 00 00 00 9E [09:12:20]Write i2c OK [09:12:20]MH_I2C_Read... [09:12:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:12:20]Read from MH i2c: E2 [09:12:20]MH_I2C_Read... [09:12:20]Read from MH i2c: E2 03 00 [09:12:20]MH_I2C_Read... [09:12:20]Read from MH i2c: E2 03 00 74 B8 00 90 00 A0 [09:12:20]RAPDU: 90 00 [09:12:20]wFMCommunicate OK [09:12:20]SAM_PROTO_ClearQueue done [09:12:20]KKMCreateOFDPacket [09:12:20]OFDProtocolAddRootSTLVToBuf [09:12:20]FM_MakeSignedData [09:12:20]FM_MakeSignedData [09:12:20]SAM_PROTO_SignData [09:12:20]wFMCommunicate request_size=4 [09:12:20]MH_SAM_APDU [09:12:20]CAPDU: 80 0D 01 02 [09:12:20]Write to MH i2c: E2 08 00 75 B8 80 0D 01 02 00 00 00 00 A6 [09:12:20]Write i2c OK [09:12:20]MH_I2C_Read... [09:12:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:12:20]Read from MH i2c: E2 [09:12:20]MH_I2C_Read... [09:12:20]Read from MH i2c: E2 03 00 [09:12:20]MH_I2C_Read... [09:12:20]Read from MH i2c: E2 03 00 75 B8 00 90 00 A1 [09:12:20]RAPDU: 90 00 [09:12:20]wFMCommunicate OK [09:12:20]wFMCommunicate request_size=255 [09:12:20]MH_SAM_APDU [09:12:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 7C C9 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 66 0E 01 00 35 04 06 00 A0 [09:12:20]Write to MH i2c: E2 02 01 76 B8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 7C C9 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 66 0E 01 00 35 04 06 00 A0 00 00 48 [09:12:20]Write i2c OK [09:12:20]MH_I2C_Read... [09:12:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:20]Read from MH i2c: E2 [09:12:20]MH_I2C_Read... [09:12:20]Read from MH i2c: E2 03 00 [09:12:20]MH_I2C_Read... [09:12:20]Read from MH i2c: E2 03 00 76 B8 00 90 00 A2 [09:12:20]RAPDU: 90 00 [09:12:20]wFMCommunicate OK [09:12:20]wFMCommunicate request_size=10 [09:12:20]MH_SAM_APDU [09:12:20]CAPDU: 80 0D 02 02 05 3E 4B 5F 4F D3 [09:12:20]Write to MH i2c: E2 0D 00 77 B8 80 0D 02 02 05 00 3E 4B 5F 4F D3 00 00 BD [09:12:20]Write i2c OK [09:12:20]MH_I2C_Read... [09:12:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:20]Read from MH i2c: E2 [09:12:20]MH_I2C_Read... [09:12:20]Read from MH i2c: E2 03 00 [09:12:20]MH_I2C_Read... [09:12:20]Read from MH i2c: E2 03 00 77 B8 00 90 00 A3 [09:12:20]RAPDU: 90 00 [09:12:20]wFMCommunicate OK [09:12:20]wFMCommunicate request_size=4 [09:12:20]MH_SAM_APDU [09:12:20]CAPDU: 80 0D 03 02 [09:12:20]Write to MH i2c: E2 08 00 78 B8 80 0D 03 02 00 00 00 00 AB [09:12:20]Write i2c OK [09:12:20]MH_I2C_Read... [09:12:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:12:20]Read from MH i2c: E2 [09:12:20]MH_I2C_Read... [09:12:20]Read from MH i2c: E2 0B 00 [09:12:20]MH_I2C_Read... [09:12:20]Read from MH i2c: E2 0B 00 78 B8 00 EF 7A B6 16 C6 FF 90 F0 90 00 26 [09:12:20]RAPDU: EF 7A B6 16 C6 FF 90 F0 90 00 [09:12:20]wFMCommunicate OK [09:12:20]SAM_PROTO_SignData done [09:12:20]FM_MakeSignedData done [09:12:20]CreateOFDProtocolMessage [09:12:20]wFMCommunicate request_size=4 [09:12:20]MH_SAM_APDU [09:12:20]CAPDU: 80 11 00 00 [09:12:20]Write to MH i2c: E2 08 00 79 B8 80 11 00 00 00 00 00 00 AB [09:12:20]Write i2c OK [09:12:20]MH_I2C_Read... [09:12:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:20]Read from MH i2c: E2 [09:12:20]MH_I2C_Read... [09:12:20]Read from MH i2c: E2 17 00 [09:12:20]MH_I2C_Read... [09:12:20]Read from MH i2c: E2 17 00 79 B8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FD [09:12:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:12:20]wFMCommunicate OK [09:12:20]CreateOFDProtocolMessage done [09:12:20]OFDSenderStorePacket 69222 [09:12:20]StoreOFDPacket docnum=69222 [09:12:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 E6 69 07 01 AC 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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 7C C9 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 66 0E 01 00 35 04 06 00 A0 3E 4B 5F 4F D3 EF 7A B6 16 C6 FF 90 F0 [09:12:20]CheckFolder [09:12:20]dirname=/storage/ofd_packets [09:12:20]CheckFolder done [09:12:20]ProducePacketName [09:12:20]name=ofd_packets/00069222 [09:12:20]NVStorageSaveData ofd_packets/00069222 [09:12:20]File name is /storage/ofd_packets/00069222 [09:12:20]Write 301 bytes [09:12:20]NVStorageSaveData done [09:12:20]OFDSenderStorePacket done [09:12:20]KKMCreateOFDPacket done [09:12:20]NVStorageSaveData kkm_last_timestamp [09:12:20]File name is /storage/kkm_last_timestamp [09:12:20]Write 4 bytes [09:12:20]NVStorageSaveData done [09:12:20]ExternCall_PrintAddStr [09:12:20]wPrintStart [09:12:20]Write to MH i2c: 01 00 00 7A B8 32 [09:12:20]Write i2c OK [09:12:20]MH_I2C_Read... [09:12:20]Read from MH i2c: 01 [09:12:20]MH_I2C_Read... [09:12:20]Read from MH i2c: 01 07 00 [09:12:20]MH_I2C_Read... [09:12:20]Read from MH i2c: 01 07 00 7A B8 00 00 00 00 00 FF 0F 47 [09:12:20]RasterBufferAndPrint [09:12:20]line Счет N : (1)2884935 [09:12:20]line ИНН: 02508201610067 [09:12:20]line Контрольно-Кассовый Чек [09:12:20]line ПРОДАЖА [09:12:20]line ТРК (МРК, ГНК) : 32 [09:12:20]line Товар: 2710124130 [09:12:20]line Аи-92-К-5 [09:12:20]line 4.490 * 66.90 [09:12:20]line = 300.38 [09:12:20]line НДС 12% НСП 1% [09:12:20]line > о реализуемом товаре [09:12:20]line ИТОГО: 300.38 [09:12:20]line НСП 1% : 2.66 [09:12:20]line НДС 12% : 31.90 [09:12:20]line Наличными: 0.00 [09:12:20]line Безнал.: 300.38 [09:12:20]line Место: АЗС № 85 "Партнер Нефть" [09:12:20]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:12:20]line СНО: Общий режим [09:12:20]line Чек 67 20.10.2024 09:12 [09:12:20]line Смена: 193 ФФД: 1.0 [09:12:20]line ЗНМ: 0300000167 [09:12:20]line РНМ: 0000000000156251 [09:12:20]line Версия ККМ: v1.0 [09:12:20]line Платежная система: Mbank [09:12:20]line ФМ: 0000000000963346 [09:12:20]line ФД: 69222 [09:12:20]line ФПД: 176189412954067 [09:12:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091228&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69222&fm=176189412954067&tin=02508201610067®Number=0000000000156251&sum=30038 [09:12:21]OFD Sender: Processing packet 69222 [packets to send 18, broken 17] [09:12:21]ProducePacketName [09:12:21]name=ofd_packets/00069222 [09:12:21]OFD Sender: To server: pG, [09:12:21]CommunicateWithHost lk.salyk.kg:30040 [09:12:21]ConnectInit lk.salyk.kg [09:12:21]written 0, free lines is 4095 [09:12:21]Connected sock=10 [09:12:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 E6 69 07 01 AC 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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 7C C9 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 66 0E 01 00 35 04 06 00 A0 3E 4B 5F 4F D3 EF 7A B6 16 C6 FF 90 F0 [09:12:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 DA 7B 47 00 0C 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 66 0E 01 00 F4 03 04 00 23 73 14 67 B6 04 01 00 00 A9 AE 94 B7 07 D3 5B 39 [09:12:21]CommunicateWithHost err = 0 [09:12:21]CheckOFDResponse [09:12:21]1017 (14) - 77093643461234 [09:12:21]1041 (16) - 0000000000963346 [09:12:21]1040 (4) - 69222 [09:12:21]1012 (4) - 20.10.2024 03:04 [09:12:21]1206 (1) - 0 [09:12:21]OFD Sender: Remove packet 69222 [09:12:21]ProducePacketName [09:12:21]name=ofd_packets/00069222 [09:12:21]NVStorageDeleteData [09:12:21]Write to MH i2c: 01 00 00 A3 B8 5B [09:12:21]Write i2c OK [09:12:21]MH_I2C_Read... [09:12:21]Read from MH i2c: 01 [09:12:21]MH_I2C_Read... [09:12:21]Read from MH i2c: 01 07 00 [09:12:21]MH_I2C_Read... [09:12:21]Read from MH i2c: 01 07 00 A3 B8 00 00 00 00 00 23 0D 92 [09:12:21]RasterBufferAndPrint [09:12:21]line [09:12:21]line [09:12:21]line [09:12:21]line [09:12:21]line [09:12:21]written 0, free lines is 3370 [09:12:21]MH_Cut [09:12:21]Write to MH i2c: D1 01 00 AA B8 01 34 [09:12:21]Write i2c OK [09:12:21]MH_I2C_Read... [09:12:21]Read from MH i2c: D1 [09:12:21]MH_I2C_Read... [09:12:21]Read from MH i2c: D1 01 00 [09:12:21]MH_I2C_Read... [09:12:21]Read from MH i2c: D1 01 00 AA B8 00 33 [09:12:21]Write to MH i2c: 01 00 00 AB B8 63 [09:12:21]Write i2c OK [09:12:21]MH_I2C_Read... [09:12:21]OFD Sender: No OFD packet to send [09:12:22]*** Cut start [09:12:22]*** Partial cut [09:12:22]*** CUTSNS_PIN = 1 [09:12:22]*** CUTSNS_PIN = 0 [09:12:22]*** Brake cut motor [09:12:22]Read from MH i2c: 01 [09:12:22]MH_I2C_Read... [09:12:22]*** Stop cut motor [09:12:22]*** Cut end [09:12:22]Read from MH i2c: 01 07 00 [09:12:22]MH_I2C_Read... [09:12:22]Read from MH i2c: 01 07 00 AB B8 00 00 00 00 00 FF 0F 78 [09:12:22]process_action close_receipt done [09:12:22]requested_data is exist [09:12:22]produce_requested_data [09:12:22]requested_item fm.sn is exist - process it [09:12:22]wFMCommunicate request_size=4 [09:12:22]MH_SAM_APDU [09:12:22]CAPDU: 80 11 00 00 [09:12:22]Write to MH i2c: E2 08 00 AC B8 80 11 00 00 00 00 00 00 DE [09:12:22]Write i2c OK [09:12:22]MH_I2C_Read... [09:12:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:22]Read from MH i2c: E2 [09:12:22]MH_I2C_Read... [09:12:22]Read from MH i2c: E2 17 00 [09:12:22]MH_I2C_Read... [09:12:22]Read from MH i2c: E2 17 00 AC B8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 30 [09:12:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:12:22]wFMCommunicate OK [09:12:22]requested_item fd.num is exist - process it [09:12:22]SAM_PROTO_GetFieldsCounters [09:12:22]wFMCommunicate request_size=4 [09:12:22]MH_SAM_APDU [09:12:22]CAPDU: 80 13 00 00 [09:12:22]Write to MH i2c: E2 08 00 AD B8 80 13 00 00 00 00 00 00 E1 [09:12:22]Write i2c OK [09:12:22]MH_I2C_Read... [09:12:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:12:22]Read from MH i2c: E2 [09:12:22]MH_I2C_Read... [09:12:22]Read from MH i2c: E2 62 00 [09:12:22]MH_I2C_Read... [09:12:22]Read from MH i2c: E2 62 00 AD B8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 66 0E 01 00 0E 04 04 00 C1 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 FB [09:12:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 66 0E 01 00 0E 04 04 00 C1 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 [09:12:22]wFMCommunicate OK [09:12:22]SAM_PROTO_GetFieldsCounters done [09:12:22]requested_item shift.num is exist - process it [09:12:22]requested_item shift.opened is exist - process it [09:12:22]req_shift_opened [09:12:22]FM_GetShiftState [09:12:22]SAM_PROTO_GetShiftState [09:12:22]wFMCommunicate request_size=4 [09:12:22]MH_SAM_APDU [09:12:22]CAPDU: 80 13 01 00 [09:12:22]Write to MH i2c: E2 08 00 AE B8 80 13 01 00 00 00 00 00 E3 [09:12:22]Write i2c OK [09:12:22]MH_I2C_Read... [09:12:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:23]Read from MH i2c: E2 [09:12:23]MH_I2C_Read... [09:12:23]Read from MH i2c: E2 0E 00 [09:12:23]MH_I2C_Read... [09:12:23]Read from MH i2c: E2 0E 00 AE B8 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 E9 [09:12:23]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:12:23]wFMCommunicate OK [09:12:23]SAM_PROTO_GetShiftState done [09:12:23]FM_GetShiftState done [09:12:23]req_shift_opened done [09:12:23]requested_item shift.open_date is exist - process it [09:12:23]req_shift_open_date [09:12:23]req_shift_open_date done [09:12:23]produce_requested_data done [09:12:23]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69222,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [09:12:23]process_action_free close_receipt [09:12:23]json_value_free [09:12:23]json_value_free done [09:12:23]process_json_proto returns [09:12:23]Send response to host [09:12:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69222,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [09:12:23]free response buf [09:12:23]execute_script done [09:12:23]execute_script returns [09:12:23]free content buf [09:12:23]Sock 9.Close socket [09:12:23]Sock 9.Thread stoped [09:12:26]OFD Sender: No OFD packet to send [09:12:31]OFD Sender: No OFD packet to send [09:12:36]OFD Sender: No OFD packet to send [09:12:41]OFD Sender: No OFD packet to send [09:12:46]OFD Sender: No OFD packet to send [09:12:51]OFD Sender: No OFD packet to send [09:12:56]OFD Sender: No OFD packet to send [09:13:01]OFD Sender: No OFD packet to send [09:13:06]OFD Sender: No OFD packet to send [09:13:11]OFD Sender: No OFD packet to send [09:13:16]OFD Sender: No OFD packet to send [09:13:21]OFD Sender: No OFD packet to send [09:13:26]OFD Sender: No OFD packet to send [09:13:31]OFD Sender: No OFD packet to send [09:13:36]OFD Sender: No OFD packet to send [09:13:41]OFD Sender: No OFD packet to send [09:13:46]OFD Sender: No OFD packet to send [09:13:51]OFD Sender: No OFD packet to send [09:13:56]OFD Sender: No OFD packet to send [09:14:01]OFD Sender: No OFD packet to send [09:14:06]OFD Sender: No OFD packet to send [09:14:11]OFD Sender: No OFD packet to send [09:14:16]OFD Sender: No OFD packet to send [09:14:21]OFD Sender: No OFD packet to send [09:14:26]OFD Sender: No OFD packet to send [09:14:27]accept exits with 8 [09:14:27]New connection [09:14:27]New thread 3067260260 created [09:14:27]Thread 3067116900 joined [09:14:27]Waiting for new connection... [09:14:27] Sock 8.Parse request [09:14:27]Sock 8.Check first char [09:14:27]Sock 8.First char is OK [09:14:27]request: POST /json_proto HTTP/1.0 [09:14:27]Method: POST [09:14:27]URL: /json_proto [09:14:27]Method is POST - this is cgi request [09:14:27]url: /json_proto [09:14:27]query_string will be loaded in cgi processing [09:14:27]execute_cgi json_proto POST (null) [09:14:27]execute_cgi path=json_proto method=POST [09:14:27]POST find Content-Length [09:14:27]Host: 172.17.50.3:8080 [09:14:27]Content-Length: 679 [09:14:27]Content-Type: application/json [09:14:27] [09:14:27]POST finish read [09:14:27]Found Content-Length = 679 [09:14:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:27]execute_script... [09:14: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)2884937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:27]POST & json_proto [09:14:27]process_json_proto [09:14:27]json parsed OK: [09:14:27]protocol is kg_v1.0 [09:14:27]action value=close_receipt [09:14:27]process_action close_receipt [09:14:27]cmd_close_receipt [09:14:27]MH_GetDate [09:14:27]Write to MH i2c: F0 00 00 AF B8 56 [09:14:27]Write i2c OK [09:14:27]MH_I2C_Read... [09:14:27]Read from MH i2c: F0 [09:14:27]MH_I2C_Read... [09:14:27]Read from MH i2c: F0 09 00 [09:14:27]MH_I2C_Read... [09:14:27]Read from MH i2c: F0 09 00 AF B8 00 FC C9 14 67 6B 98 1E 66 26 [09:14:27]GetLastDocTimeStamp 1729415548 [09:14:27]current date 1729415676 [09:14:27]FM_GetShiftState [09:14:27]SAM_PROTO_GetShiftState [09:14:27]wFMCommunicate request_size=4 [09:14:27]MH_SAM_APDU [09:14:27]CAPDU: 80 13 01 00 [09:14:27]Write to MH i2c: E2 08 00 B0 B8 80 13 01 00 00 00 00 00 E5 [09:14:27]Write i2c OK [09:14:27]MH_I2C_Read... [09:14:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:27]Read from MH i2c: E2 [09:14:27]MH_I2C_Read... [09:14:27]Read from MH i2c: E2 0E 00 [09:14:27]MH_I2C_Read... [09:14:27]Read from MH i2c: E2 0E 00 B0 B8 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 EB [09:14:27]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:14:27]wFMCommunicate OK [09:14:27]SAM_PROTO_GetShiftState done [09:14:27]FM_GetShiftState done [09:14:27]opened in 1729383220 [09:14:27]opened+sec_in_day 1729469620 [09:14:27]quantity*price = 70044 [09:14:27]sum+1 = 70045 [09:14:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 68 20.10.2024 09:14 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69223 ФПД: 254254543309365 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091436&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69223&fm=254254543309365&tin=02508201610067®Number=0000000000156251&sum=70000 [09:14:28]StoreToDocumentArchive [09:14:28]shift 193 fd 69223 [09:14:28]save to /storage/0193/doc_00069223 [09:14:28]save last doc name /storage/0193/doc_00069223 to /storage/kkm_last_doc_name [09:14:28]save OK [09:14:28]Clear old archive folders... [09:14:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:14:28]tlvbuf is 0050C7C0 [09:14:28]SAM_PROTO_ClearQueue [09:14:28]wFMCommunicate request_size=4 [09:14:28]MH_SAM_APDU [09:14:28]CAPDU: 80 09 00 00 [09:14:28]Write to MH i2c: E2 08 00 BD B8 80 09 00 00 00 00 00 00 E7 [09:14:28]Write i2c OK [09:14:28]MH_I2C_Read... [09:14:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:14:28]Read from MH i2c: E2 [09:14:28]MH_I2C_Read... [09:14:28]Read from MH i2c: E2 03 00 [09:14:28]MH_I2C_Read... [09:14:28]Read from MH i2c: E2 03 00 BD B8 00 90 00 E9 [09:14:28]RAPDU: 90 00 [09:14:28]wFMCommunicate OK [09:14:28]SAM_PROTO_ClearQueue done [09:14:28]KKMCreateOFDPacket [09:14:28]OFDProtocolAddRootSTLVToBuf [09:14:28]FM_MakeSignedData [09:14:28]FM_MakeSignedData [09:14:28]SAM_PROTO_SignData [09:14:28]wFMCommunicate request_size=4 [09:14:28]MH_SAM_APDU [09:14:28]CAPDU: 80 0D 01 02 [09:14:28]Write to MH i2c: E2 08 00 BE B8 80 0D 01 02 00 00 00 00 EF [09:14:28]Write i2c OK [09:14:28]MH_I2C_Read... [09:14:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:14:28]Read from MH i2c: E2 [09:14:28]MH_I2C_Read... [09:14:28]Read from MH i2c: E2 03 00 [09:14:28]MH_I2C_Read... [09:14:28]Read from MH i2c: E2 03 00 BE B8 00 90 00 EA [09:14:28]RAPDU: 90 00 [09:14:28]wFMCommunicate OK [09:14:28]wFMCommunicate request_size=255 [09:14:28]MH_SAM_APDU [09:14:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 FC C9 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 67 0E 01 00 35 04 06 00 E7 [09:14:28]Write to MH i2c: E2 02 01 BF B8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 FC C9 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 67 0E 01 00 35 04 06 00 E7 00 00 2A [09:14:28]Write i2c OK [09:14:28]MH_I2C_Read... [09:14:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:28]Read from MH i2c: E2 [09:14:28]MH_I2C_Read... [09:14:28]Read from MH i2c: E2 03 00 [09:14:28]MH_I2C_Read... [09:14:28]Read from MH i2c: E2 03 00 BF B8 00 90 00 EB [09:14:28]RAPDU: 90 00 [09:14:28]wFMCommunicate OK [09:14:28]wFMCommunicate request_size=10 [09:14:28]MH_SAM_APDU [09:14:28]CAPDU: 80 0D 02 02 05 3E 3F BC 8A 35 [09:14:28]Write to MH i2c: E2 0D 00 C0 B8 80 0D 02 02 05 00 3E 3F BC 8A 35 00 00 F4 [09:14:28]Write i2c OK [09:14:28]MH_I2C_Read... [09:14:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:28]Read from MH i2c: E2 [09:14:28]MH_I2C_Read... [09:14:28]Read from MH i2c: E2 03 00 [09:14:28]MH_I2C_Read... [09:14:28]Read from MH i2c: E2 03 00 C0 B8 00 90 00 EC [09:14:28]RAPDU: 90 00 [09:14:28]wFMCommunicate OK [09:14:28]wFMCommunicate request_size=4 [09:14:28]MH_SAM_APDU [09:14:28]CAPDU: 80 0D 03 02 [09:14:28]Write to MH i2c: E2 08 00 C1 B8 80 0D 03 02 00 00 00 00 F4 [09:14:28]Write i2c OK [09:14:28]MH_I2C_Read... [09:14:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:14:28]Read from MH i2c: E2 [09:14:28]MH_I2C_Read... [09:14:28]Read from MH i2c: E2 0B 00 [09:14:28]MH_I2C_Read... [09:14:28]Read from MH i2c: E2 0B 00 C1 B8 00 C0 C0 BE 83 F1 A7 BA E4 90 00 EC [09:14:28]RAPDU: C0 C0 BE 83 F1 A7 BA E4 90 00 [09:14:28]wFMCommunicate OK [09:14:28]SAM_PROTO_SignData done [09:14:28]FM_MakeSignedData done [09:14:28]CreateOFDProtocolMessage [09:14:28]wFMCommunicate request_size=4 [09:14:28]MH_SAM_APDU [09:14:28]CAPDU: 80 11 00 00 [09:14:28]Write to MH i2c: E2 08 00 C2 B8 80 11 00 00 00 00 00 00 F4 [09:14:28]Write i2c OK [09:14:28]MH_I2C_Read... [09:14:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:28]Read from MH i2c: E2 [09:14:28]MH_I2C_Read... [09:14:28]Read from MH i2c: E2 17 00 [09:14:28]MH_I2C_Read... [09:14:28]Read from MH i2c: E2 17 00 C2 B8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 46 [09:14:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:14:28]wFMCommunicate OK [09:14:28]CreateOFDProtocolMessage done [09:14:28]OFDSenderStorePacket 69223 [09:14:28]StoreOFDPacket docnum=69223 [09:14:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 66 D9 07 01 80 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 FC C9 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 67 0E 01 00 35 04 06 00 E7 3E 3F BC 8A 35 C0 C0 BE 83 F1 A7 BA E4 [09:14:28]CheckFolder [09:14:28]dirname=/storage/ofd_packets [09:14:28]CheckFolder done [09:14:28]ProducePacketName [09:14:28]name=ofd_packets/00069223 [09:14:28]NVStorageSaveData ofd_packets/00069223 [09:14:28]File name is /storage/ofd_packets/00069223 [09:14:28]Write 301 bytes [09:14:28]NVStorageSaveData done [09:14:28]OFDSenderStorePacket done [09:14:28]KKMCreateOFDPacket done [09:14:28]NVStorageSaveData kkm_last_timestamp [09:14:28]File name is /storage/kkm_last_timestamp [09:14:28]Write 4 bytes [09:14:28]NVStorageSaveData done [09:14:28]ExternCall_PrintAddStr [09:14:28]wPrintStart [09:14:28]Write to MH i2c: 01 00 00 C3 B8 7B [09:14:28]Write i2c OK [09:14:28]MH_I2C_Read... [09:14:28]Read from MH i2c: 01 [09:14:28]MH_I2C_Read... [09:14:28]Read from MH i2c: 01 07 00 [09:14:28]MH_I2C_Read... [09:14:28]Read from MH i2c: 01 07 00 C3 B8 00 00 00 00 00 FF 0F 90 [09:14:28]RasterBufferAndPrint [09:14:28]line Счет N : (1)2884937 [09:14:28]line ИНН: 02508201610067 [09:14:28]line Контрольно-Кассовый Чек [09:14:28]line ПРОДАЖА [09:14:28]line ТРК (МРК, ГНК) : 32 [09:14:28]line Товар: 2710124130 [09:14:28]line Аи-92-К-5 [09:14:28]line 10.470 * 66.90 [09:14:28]line = 700.44 [09:14:28]line НДС 12% НСП 1% [09:14:28]line > о реализуемом товаре [09:14:28]line ОКРУГЛЕНИЕ: -0.44 [09:14:28]line ИТОГО: 700.00 [09:14:28]line Внесено: 700.00 [09:14:28]line СДАЧА: 0.00 [09:14:28]line НСП 1% : 6.20 [09:14:28]line НДС 12% : 74.38 [09:14:28]line Наличными: 700.00 [09:14:28]line Безнал.: 0.00 [09:14:28]line Место: АЗС № 85 "Партнер Нефть" [09:14:28]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:14:28]line СНО: Общий режим [09:14:28]line Чек 68 20.10.2024 09:14 [09:14:28]line Смена: 193 ФФД: 1.0 [09:14:28]line ЗНМ: 0300000167 [09:14:28]line РНМ: 0000000000156251 [09:14:28]line Версия ККМ: v1.0 [09:14:28]line ФМ: 0000000000963346 [09:14:28]line ФД: 69223 [09:14:28]line ФПД: 254254543309365 [09:14:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091436&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69223&fm=254254543309365&tin=02508201610067®Number=0000000000156251&sum=70000 [09:14:29]OFD Sender: Processing packet 69223 [packets to send 18, broken 17] [09:14:29]ProducePacketName [09:14:29]name=ofd_packets/00069223 [09:14:29]OFD Sender: To server: pG, [09:14:29]CommunicateWithHost lk.salyk.kg:30040 [09:14:29]ConnectInit lk.salyk.kg [09:14:29]written 0, free lines is 4095 [09:14:29]Connected sock=10 [09:14:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 66 D9 07 01 80 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 FC C9 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 67 0E 01 00 35 04 06 00 E7 3E 3F BC 8A 35 C0 C0 BE 83 F1 A7 BA E4 [09:14:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 52 F6 47 00 15 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 67 0E 01 00 F4 03 04 00 A4 73 14 67 B6 04 01 00 00 6B A7 EB 8D 28 9C E0 97 [09:14:29]CommunicateWithHost err = 0 [09:14:29]CheckOFDResponse [09:14:29]1017 (14) - 77093643461234 [09:14:29]1041 (16) - 0000000000963346 [09:14:29]1040 (4) - 69223 [09:14:29]1012 (4) - 20.10.2024 03:06 [09:14:29]1206 (1) - 0 [09:14:29]OFD Sender: Remove packet 69223 [09:14:29]ProducePacketName [09:14:29]name=ofd_packets/00069223 [09:14:29]NVStorageDeleteData [09:14:29]Write to MH i2c: 01 00 00 EE B8 A6 [09:14:29]Write i2c OK [09:14:29]MH_I2C_Read... [09:14:29]Read from MH i2c: 01 [09:14:29]MH_I2C_Read... [09:14:29]Read from MH i2c: 01 07 00 [09:14:29]MH_I2C_Read... [09:14:29]Read from MH i2c: 01 07 00 EE B8 00 00 00 00 00 F6 0C AF [09:14:29]RasterBufferAndPrint [09:14:29]line [09:14:29]line [09:14:29]line [09:14:29]line [09:14:29]line [09:14:29]written 0, free lines is 3324 [09:14:29]MH_Cut [09:14:29]Write to MH i2c: D1 01 00 F5 B8 01 7F [09:14:29]Write i2c OK [09:14:29]MH_I2C_Read... [09:14:29]Read from MH i2c: D1 [09:14:29]MH_I2C_Read... [09:14:29]Read from MH i2c: D1 01 00 [09:14:29]MH_I2C_Read... [09:14:29]Read from MH i2c: D1 01 00 F5 B8 00 7E [09:14:29]Write to MH i2c: 01 00 00 F6 B8 AE [09:14:29]Write i2c OK [09:14:29]MH_I2C_Read... [09:14:30]OFD Sender: No OFD packet to send [09:14:30]*** Cut start [09:14:30]*** Partial cut [09:14:30]*** CUTSNS_PIN = 1 [09:14:30]*** CUTSNS_PIN = 0 [09:14:30]*** Brake cut motor [09:14:31]Read from MH i2c: 01 [09:14:31]MH_I2C_Read... [09:14:31]*** Stop cut motor [09:14:31]*** Cut end [09:14:31]Read from MH i2c: 01 07 00 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: 01 07 00 F6 B8 00 00 00 00 00 FF 0F C3 [09:14:31]process_action close_receipt done [09:14:31]requested_data is exist [09:14:31]produce_requested_data [09:14:31]requested_item fm.sn is exist - process it [09:14:31]wFMCommunicate request_size=4 [09:14:31]MH_SAM_APDU [09:14:31]CAPDU: 80 11 00 00 [09:14:31]Write to MH i2c: E2 08 00 F7 B8 80 11 00 00 00 00 00 00 29 [09:14:31]Write i2c OK [09:14:31]MH_I2C_Read... [09:14:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:31]Read from MH i2c: E2 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: E2 17 00 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: E2 17 00 F7 B8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7B [09:14:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:14:31]wFMCommunicate OK [09:14:31]requested_item fd.num is exist - process it [09:14:31]SAM_PROTO_GetFieldsCounters [09:14:31]wFMCommunicate request_size=4 [09:14:31]MH_SAM_APDU [09:14:31]CAPDU: 80 13 00 00 [09:14:31]Write to MH i2c: E2 08 00 F8 B8 80 13 00 00 00 00 00 00 2C [09:14:31]Write i2c OK [09:14:31]MH_I2C_Read... [09:14:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:14:31]Read from MH i2c: E2 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: E2 62 00 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: E2 62 00 F8 B8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 67 0E 01 00 0E 04 04 00 C1 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 4A [09:14:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 67 0E 01 00 0E 04 04 00 C1 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 [09:14:31]wFMCommunicate OK [09:14:31]SAM_PROTO_GetFieldsCounters done [09:14:31]requested_item shift.num is exist - process it [09:14:31]requested_item shift.opened is exist - process it [09:14:31]req_shift_opened [09:14:31]FM_GetShiftState [09:14:31]SAM_PROTO_GetShiftState [09:14:31]wFMCommunicate request_size=4 [09:14:31]MH_SAM_APDU [09:14:31]CAPDU: 80 13 01 00 [09:14:31]Write to MH i2c: E2 08 00 F9 B8 80 13 01 00 00 00 00 00 2E [09:14:31]Write i2c OK [09:14:31]MH_I2C_Read... [09:14:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:31]Read from MH i2c: E2 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: E2 0E 00 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: E2 0E 00 F9 B8 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 34 [09:14:31]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:14:31]wFMCommunicate OK [09:14:31]SAM_PROTO_GetShiftState done [09:14:31]FM_GetShiftState done [09:14:31]req_shift_opened done [09:14:31]requested_item shift.open_date is exist - process it [09:14:31]req_shift_open_date [09:14:31]req_shift_open_date done [09:14:31]produce_requested_data done [09:14:31]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69223,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [09:14:31]process_action_free close_receipt [09:14:31]json_value_free [09:14:31]json_value_free done [09:14:31]process_json_proto returns [09:14:31]Send response to host [09:14:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69223,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [09:14:31]free response buf [09:14:31]execute_script done [09:14:31]execute_script returns [09:14:31]free content buf [09:14:31]Sock 8.Close socket [09:14:31]Sock 8.Thread stoped [09:14:35]OFD Sender: No OFD packet to send [09:14:40]OFD Sender: No OFD packet to send [09:14:45]OFD Sender: No OFD packet to send [09:14:50]OFD Sender: No OFD packet to send [09:14:55]OFD Sender: No OFD packet to send [09:15:00]OFD Sender: No OFD packet to send [09:15:05]OFD Sender: No OFD packet to send [09:15:10]OFD Sender: No OFD packet to send [09:15:15]OFD Sender: No OFD packet to send [09:15:20]OFD Sender: No OFD packet to send [09:15:23]accept exits with 9 [09:15:23]New connection [09:15:23]New thread 3067116900 created [09:15:23]Thread 3067260260 joined [09:15:23]Waiting for new connection... [09:15:23] Sock 9.Parse request [09:15:23]Sock 9.Check first char [09:15:23]Sock 9.First char is OK [09:15:23]request: POST /json_proto HTTP/1.0 [09:15:23]Method: POST [09:15:23]URL: /json_proto [09:15:23]Method is POST - this is cgi request [09:15:23]url: /json_proto [09:15:23]query_string will be loaded in cgi processing [09:15:23]execute_cgi json_proto POST (null) [09:15:23]execute_cgi path=json_proto method=POST [09:15:23]POST find Content-Length [09:15:23]Host: 172.17.50.3:8080 [09:15:23]Content-Length: 689 [09:15:23]Content-Type: application/json [09:15:23] [09:15:23]POST finish read [09:15:23]Found Content-Length = 689 [09:15:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 15.550, "sum" : 1200.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:23]execute_script... [09:15:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 15.550, "sum" : 1200.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:23]POST & json_proto [09:15:23]process_json_proto [09:15:23]json parsed OK: [09:15:23]protocol is kg_v1.0 [09:15:23]action value=close_receipt [09:15:23]process_action close_receipt [09:15:23]cmd_close_receipt [09:15:23]MH_GetDate [09:15:23]Write to MH i2c: F0 00 00 FA B8 A1 [09:15:23]Write i2c OK [09:15:23]MH_I2C_Read... [09:15:23]Read from MH i2c: F0 [09:15:23]MH_I2C_Read... [09:15:23]Read from MH i2c: F0 09 00 [09:15:23]MH_I2C_Read... [09:15:23]Read from MH i2c: F0 09 00 FA B8 00 35 CA 14 67 6B 98 1E 66 AB [09:15:23]GetLastDocTimeStamp 1729415676 [09:15:23]current date 1729415733 [09:15:23]FM_GetShiftState [09:15:23]SAM_PROTO_GetShiftState [09:15:23]wFMCommunicate request_size=4 [09:15:23]MH_SAM_APDU [09:15:23]CAPDU: 80 13 01 00 [09:15:23]Write to MH i2c: E2 08 00 FB B8 80 13 01 00 00 00 00 00 30 [09:15:23]Write i2c OK [09:15:23]MH_I2C_Read... [09:15:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:23]Read from MH i2c: E2 [09:15:23]MH_I2C_Read... [09:15:23]Read from MH i2c: E2 0E 00 [09:15:23]MH_I2C_Read... [09:15:23]Read from MH i2c: E2 0E 00 FB B8 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 36 [09:15:23]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:15:23]wFMCommunicate OK [09:15:23]SAM_PROTO_GetShiftState done [09:15:23]FM_GetShiftState done [09:15:23]opened in 1729383220 [09:15:23]opened+sec_in_day 1729469620 [09:15:23]quantity*price = 120046 [09:15:23]sum+1 = 120047 [09:15:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.48 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 69 20.10.2024 09:15 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69224 ФПД: 84020629549591 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091533&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69224&fm=84020629549591&tin=02508201610067®Number=0000000000156251&sum=120000 [09:15:24]StoreToDocumentArchive [09:15:24]shift 193 fd 69224 [09:15:24]save to /storage/0193/doc_00069224 [09:15:24]save last doc name /storage/0193/doc_00069224 to /storage/kkm_last_doc_name [09:15:24]save OK [09:15:24]Clear old archive folders... [09:15:24]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:15:24]tlvbuf is 00451EF0 [09:15:24]SAM_PROTO_ClearQueue [09:15:24]wFMCommunicate request_size=4 [09:15:24]MH_SAM_APDU [09:15:24]CAPDU: 80 09 00 00 [09:15:24]Write to MH i2c: E2 08 00 08 B9 80 09 00 00 00 00 00 00 33 [09:15:24]Write i2c OK [09:15:24]MH_I2C_Read... [09:15:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:15:24]Read from MH i2c: E2 [09:15:24]MH_I2C_Read... [09:15:24]Read from MH i2c: E2 03 00 [09:15:24]MH_I2C_Read... [09:15:24]Read from MH i2c: E2 03 00 08 B9 00 90 00 35 [09:15:24]RAPDU: 90 00 [09:15:24]wFMCommunicate OK [09:15:24]SAM_PROTO_ClearQueue done [09:15:24]KKMCreateOFDPacket [09:15:24]OFDProtocolAddRootSTLVToBuf [09:15:24]FM_MakeSignedData [09:15:24]FM_MakeSignedData [09:15:24]SAM_PROTO_SignData [09:15:24]wFMCommunicate request_size=4 [09:15:24]MH_SAM_APDU [09:15:24]CAPDU: 80 0D 01 02 [09:15:24]Write to MH i2c: E2 08 00 09 B9 80 0D 01 02 00 00 00 00 3B [09:15:24]Write i2c OK [09:15:24]MH_I2C_Read... [09:15:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:15:25]Read from MH i2c: E2 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: E2 03 00 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: E2 03 00 09 B9 00 90 00 36 [09:15:25]RAPDU: 90 00 [09:15:25]wFMCommunicate OK [09:15:25]wFMCommunicate request_size=255 [09:15:25]MH_SAM_APDU [09:15:25]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 35 CA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 68 0E 01 [09:15:25]Write to MH i2c: E2 02 01 0A B9 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 35 CA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 68 0E 01 00 00 F6 [09:15:25]Write i2c OK [09:15:25]MH_I2C_Read... [09:15:25]OFD Sender: No OFD packet to send [09:15:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:25]Read from MH i2c: E2 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: E2 03 00 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: E2 03 00 0A B9 00 90 00 37 [09:15:25]RAPDU: 90 00 [09:15:25]wFMCommunicate OK [09:15:25]wFMCommunicate request_size=16 [09:15:25]MH_SAM_APDU [09:15:25]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 4C 6A 93 C7 32 17 [09:15:25]Write to MH i2c: E2 13 00 0B B9 80 0D 02 02 0B 00 00 35 04 06 00 4C 6A 93 C7 32 17 00 00 EC [09:15:25]Write i2c OK [09:15:25]MH_I2C_Read... [09:15:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:25]Read from MH i2c: E2 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: E2 03 00 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: E2 03 00 0B B9 00 90 00 38 [09:15:25]RAPDU: 90 00 [09:15:25]wFMCommunicate OK [09:15:25]wFMCommunicate request_size=4 [09:15:25]MH_SAM_APDU [09:15:25]CAPDU: 80 0D 03 02 [09:15:25]Write to MH i2c: E2 08 00 0C B9 80 0D 03 02 00 00 00 00 40 [09:15:25]Write i2c OK [09:15:25]MH_I2C_Read... [09:15:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:15:25]Read from MH i2c: E2 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: E2 0B 00 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: E2 0B 00 0C B9 00 E0 A0 12 FE ED E3 41 C6 90 00 A8 [09:15:25]RAPDU: E0 A0 12 FE ED E3 41 C6 90 00 [09:15:25]wFMCommunicate OK [09:15:25]SAM_PROTO_SignData done [09:15:25]FM_MakeSignedData done [09:15:25]CreateOFDProtocolMessage [09:15:25]wFMCommunicate request_size=4 [09:15:25]MH_SAM_APDU [09:15:25]CAPDU: 80 11 00 00 [09:15:25]Write to MH i2c: E2 08 00 0D B9 80 11 00 00 00 00 00 00 40 [09:15:25]Write i2c OK [09:15:25]MH_I2C_Read... [09:15:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:25]Read from MH i2c: E2 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: E2 17 00 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: E2 17 00 0D B9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 92 [09:15:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:15:25]wFMCommunicate OK [09:15:25]CreateOFDProtocolMessage done [09:15:25]OFDSenderStorePacket 69224 [09:15:25]StoreOFDPacket docnum=69224 [09:15:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 BB FC 0D 01 F1 4B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 35 CA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 68 0E 01 00 35 04 06 00 4C 6A 93 C7 32 17 E0 A0 12 FE ED E3 41 C6 [09:15:25]CheckFolder [09:15:25]dirname=/storage/ofd_packets [09:15:25]CheckFolder done [09:15:25]ProducePacketName [09:15:25]name=ofd_packets/00069224 [09:15:25]NVStorageSaveData ofd_packets/00069224 [09:15:25]File name is /storage/ofd_packets/00069224 [09:15:25]Write 307 bytes [09:15:25]NVStorageSaveData done [09:15:25]OFDSenderStorePacket done [09:15:25]KKMCreateOFDPacket done [09:15:25]NVStorageSaveData kkm_last_timestamp [09:15:25]File name is /storage/kkm_last_timestamp [09:15:25]Write 4 bytes [09:15:25]NVStorageSaveData done [09:15:25]ExternCall_PrintAddStr [09:15:25]wPrintStart [09:15:25]Write to MH i2c: 01 00 00 0E B9 C7 [09:15:25]Write i2c OK [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: 01 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: 01 07 00 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: 01 07 00 0E B9 00 00 00 00 00 FF 0F DC [09:15:25]RasterBufferAndPrint [09:15:25]line Счет N : (1)2884938 [09:15:25]line ИНН: 02508201610067 [09:15:25]line Контрольно-Кассовый Чек [09:15:25]line ПРОДАЖА [09:15:25]line ТРК (МРК, ГНК) : 11 [09:15:25]line Товар: 2710194240 [09:15:25]line D-ENERGY Дт-К-2 [09:15:25]line 15.550 * 77.20 [09:15:25]line = 1200.46 [09:15:25]line НДС 12% НСП 1% [09:15:25]line > о реализуемом товаре [09:15:25]line ОКРУГЛЕНИЕ: -0.46 [09:15:25]line ИТОГО: 1200.00 [09:15:25]line Внесено: 1200.00 [09:15:25]line СДАЧА: 0.00 [09:15:25]line НСП 1% : 10.62 [09:15:25]line НДС 12% : 127.48 [09:15:25]line Наличными: 1200.00 [09:15:25]line Безнал.: 0.00 [09:15:25]line Место: АЗС № 85 "Партнер Нефть" [09:15:25]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:15:25]line СНО: Общий режим [09:15:25]line Чек 69 20.10.2024 09:15 [09:15:25]line Смена: 193 ФФД: 1.0 [09:15:25]line ЗНМ: 0300000167 [09:15:25]line РНМ: 0000000000156251 [09:15:25]line Версия ККМ: v1.0 [09:15:25]line ФМ: 0000000000963346 [09:15:25]line ФД: 69224 [09:15:25]line ФПД: 84020629549591 [09:15:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091533&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69224&fm=84020629549591&tin=02508201610067®Number=0000000000156251&sum=120000 [09:15:25]OFD Sender: Processing packet 69224 [packets to send 18, broken 17] [09:15:25]ProducePacketName [09:15:25]name=ofd_packets/00069224 [09:15:25]OFD Sender: To server: pG, [09:15:25]CommunicateWithHost lk.salyk.kg:30040 [09:15:25]written 0, free lines is 4095 [09:15:25]ConnectInit lk.salyk.kg [09:15:25]Connected sock=10 [09:15:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 BB FC 0D 01 F1 4B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 35 CA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 68 0E 01 00 35 04 06 00 4C 6A 93 C7 32 17 E0 A0 12 FE ED E3 41 C6 [09:15:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 4C D8 47 00 40 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 68 0E 01 00 F4 03 04 00 DC 73 14 67 B6 04 01 00 00 E1 E7 46 F2 90 6A 22 00 [09:15:26]CommunicateWithHost err = 0 [09:15:26]CheckOFDResponse [09:15:26]1017 (14) - 77093643461234 [09:15:26]1041 (16) - 0000000000963346 [09:15:26]1040 (4) - 69224 [09:15:26]1012 (4) - 20.10.2024 03:07 [09:15:26]1206 (1) - 0 [09:15:26]OFD Sender: Remove packet 69224 [09:15:26]ProducePacketName [09:15:26]name=ofd_packets/00069224 [09:15:26]NVStorageDeleteData [09:15:26]Write to MH i2c: 01 00 00 39 B9 F2 [09:15:26]Write i2c OK [09:15:26]MH_I2C_Read... [09:15:26]Read from MH i2c: 01 [09:15:26]MH_I2C_Read... [09:15:26]Read from MH i2c: 01 07 00 [09:15:26]MH_I2C_Read... [09:15:26]Read from MH i2c: 01 07 00 39 B9 00 00 00 00 00 FD 0C 02 [09:15:26]RasterBufferAndPrint [09:15:26]line [09:15:26]line [09:15:26]line [09:15:26]line [09:15:26]line [09:15:26]written 0, free lines is 3334 [09:15:26]MH_Cut [09:15:26]Write to MH i2c: D1 01 00 40 B9 01 CB [09:15:26]Write i2c OK [09:15:26]MH_I2C_Read... [09:15:26]Read from MH i2c: D1 [09:15:26]MH_I2C_Read... [09:15:26]Read from MH i2c: D1 01 00 [09:15:26]MH_I2C_Read... [09:15:26]Read from MH i2c: D1 01 00 40 B9 00 CA [09:15:26]Write to MH i2c: 01 00 00 41 B9 FA [09:15:26]Write i2c OK [09:15:26]MH_I2C_Read... [09:15:26]OFD Sender: No OFD packet to send [09:15:26]*** Cut start [09:15:26]*** Partial cut [09:15:26]*** CUTSNS_PIN = 1 [09:15:27]*** CUTSNS_PIN = 0 [09:15:27]*** Brake cut motor [09:15:27]Read from MH i2c: 01 [09:15:27]MH_I2C_Read... [09:15:27]*** Stop cut motor [09:15:27]*** Cut end [09:15:27]Read from MH i2c: 01 07 00 [09:15:27]MH_I2C_Read... [09:15:27]Read from MH i2c: 01 07 00 41 B9 00 00 00 00 00 FF 0F 0F [09:15:27]process_action close_receipt done [09:15:27]requested_data is exist [09:15:27]produce_requested_data [09:15:27]requested_item fm.sn is exist - process it [09:15:27]wFMCommunicate request_size=4 [09:15:27]MH_SAM_APDU [09:15:27]CAPDU: 80 11 00 00 [09:15:27]Write to MH i2c: E2 08 00 42 B9 80 11 00 00 00 00 00 00 75 [09:15:27]Write i2c OK [09:15:27]MH_I2C_Read... [09:15:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:27]Read from MH i2c: E2 [09:15:27]MH_I2C_Read... [09:15:27]Read from MH i2c: E2 17 00 [09:15:27]MH_I2C_Read... [09:15:27]Read from MH i2c: E2 17 00 42 B9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C7 [09:15:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:15:27]wFMCommunicate OK [09:15:27]requested_item fd.num is exist - process it [09:15:27]SAM_PROTO_GetFieldsCounters [09:15:27]wFMCommunicate request_size=4 [09:15:27]MH_SAM_APDU [09:15:27]CAPDU: 80 13 00 00 [09:15:27]Write to MH i2c: E2 08 00 43 B9 80 13 00 00 00 00 00 00 78 [09:15:27]Write i2c OK [09:15:27]MH_I2C_Read... [09:15:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:15:27]Read from MH i2c: E2 [09:15:27]MH_I2C_Read... [09:15:27]Read from MH i2c: E2 62 00 [09:15:27]MH_I2C_Read... [09:15:27]Read from MH i2c: E2 62 00 43 B9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 68 0E 01 00 0E 04 04 00 C1 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 9A [09:15:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 68 0E 01 00 0E 04 04 00 C1 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 [09:15:27]wFMCommunicate OK [09:15:27]SAM_PROTO_GetFieldsCounters done [09:15:27]requested_item shift.num is exist - process it [09:15:27]requested_item shift.opened is exist - process it [09:15:27]req_shift_opened [09:15:27]FM_GetShiftState [09:15:27]SAM_PROTO_GetShiftState [09:15:27]wFMCommunicate request_size=4 [09:15:27]MH_SAM_APDU [09:15:27]CAPDU: 80 13 01 00 [09:15:27]Write to MH i2c: E2 08 00 44 B9 80 13 01 00 00 00 00 00 7A [09:15:27]Write i2c OK [09:15:27]MH_I2C_Read... [09:15:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:27]Read from MH i2c: E2 [09:15:27]MH_I2C_Read... [09:15:27]Read from MH i2c: E2 0E 00 [09:15:27]MH_I2C_Read... [09:15:27]Read from MH i2c: E2 0E 00 44 B9 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 80 [09:15:27]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:15:27]wFMCommunicate OK [09:15:27]SAM_PROTO_GetShiftState done [09:15:27]FM_GetShiftState done [09:15:27]req_shift_opened done [09:15:27]requested_item shift.open_date is exist - process it [09:15:27]req_shift_open_date [09:15:27]req_shift_open_date done [09:15:27]produce_requested_data done [09:15:27]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69224,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [09:15:27]process_action_free close_receipt [09:15:27]json_value_free [09:15:27]json_value_free done [09:15:27]process_json_proto returns [09:15:27]Send response to host [09:15:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69224,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [09:15:27]free response buf [09:15:27]execute_script done [09:15:27]execute_script returns [09:15:27]free content buf [09:15:27]Sock 9.Close socket [09:15:27]Sock 9.Thread stoped [09:15:31]OFD Sender: No OFD packet to send [09:15:36]OFD Sender: No OFD packet to send [09:15:41]OFD Sender: No OFD packet to send [09:15:46]OFD Sender: No OFD packet to send [09:15:51]OFD Sender: No OFD packet to send [09:15:56]OFD Sender: No OFD packet to send [09:16:01]OFD Sender: No OFD packet to send [09:16:06]OFD Sender: No OFD packet to send [09:16:11]OFD Sender: No OFD packet to send [09:16:16]OFD Sender: No OFD packet to send [09:16:21]OFD Sender: No OFD packet to send [09:16:26]OFD Sender: No OFD packet to send [09:16:31]OFD Sender: No OFD packet to send [09:16:36]OFD Sender: No OFD packet to send [09:16:41]OFD Sender: No OFD packet to send [09:16:46]OFD Sender: No OFD packet to send [09:16:51]OFD Sender: No OFD packet to send [09:16:56]OFD Sender: No OFD packet to send [09:17:01]OFD Sender: No OFD packet to send [09:17:06]OFD Sender: No OFD packet to send [09:17:11]OFD Sender: No OFD packet to send [09:17:16]OFD Sender: No OFD packet to send [09:17:21]OFD Sender: No OFD packet to send [09:17:26]OFD Sender: No OFD packet to send [09:17:31]OFD Sender: No OFD packet to send [09:17:36]OFD Sender: No OFD packet to send [09:17:41]OFD Sender: No OFD packet to send [09:17:46]OFD Sender: No OFD packet to send [09:17:51]OFD Sender: No OFD packet to send [09:17:56]OFD Sender: No OFD packet to send [09:18:01]OFD Sender: No OFD packet to send [09:18:06]OFD Sender: No OFD packet to send [09:18:11]OFD Sender: No OFD packet to send [09:18:14]accept exits with 8 [09:18:14]New connection [09:18:14]New thread 3067260260 created [09:18:14]Thread 3067116900 joined [09:18:14]Waiting for new connection... [09:18:14] Sock 8.Parse request [09:18:14]Sock 8.Check first char [09:18:14]Sock 8.First char is OK [09:18:14]request: POST /json_proto HTTP/1.0 [09:18:14]Method: POST [09:18:14]URL: /json_proto [09:18:14]Method is POST - this is cgi request [09:18:14]url: /json_proto [09:18:14]query_string will be loaded in cgi processing [09:18:14]execute_cgi json_proto POST (null) [09:18:14]execute_cgi path=json_proto method=POST [09:18:14]POST find Content-Length [09:18:14]Host: 172.17.50.3:8080 [09:18:14]Content-Length: 689 [09:18:14]Content-Type: application/json [09:18:14] [09:18:14]POST finish read [09:18:14]Found Content-Length = 689 [09:18:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:14]execute_script... [09:18:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:14]POST & json_proto [09:18:14]process_json_proto [09:18:14]json parsed OK: [09:18:14]protocol is kg_v1.0 [09:18:14]action value=close_receipt [09:18:14]process_action close_receipt [09:18:14]cmd_close_receipt [09:18:14]MH_GetDate [09:18:14]Write to MH i2c: F0 00 00 45 B9 ED [09:18:14]Write i2c OK [09:18:14]MH_I2C_Read... [09:18:14]Read from MH i2c: F0 [09:18:14]MH_I2C_Read... [09:18:14]Read from MH i2c: F0 09 00 [09:18:14]MH_I2C_Read... [09:18:14]Read from MH i2c: F0 09 00 45 B9 00 E0 CA 14 67 6B 98 1E 66 A2 [09:18:14]GetLastDocTimeStamp 1729415733 [09:18:14]current date 1729415904 [09:18:14]FM_GetShiftState [09:18:14]SAM_PROTO_GetShiftState [09:18:14]wFMCommunicate request_size=4 [09:18:14]MH_SAM_APDU [09:18:14]CAPDU: 80 13 01 00 [09:18:14]Write to MH i2c: E2 08 00 46 B9 80 13 01 00 00 00 00 00 7C [09:18:14]Write i2c OK [09:18:14]MH_I2C_Read... [09:18:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:14]Read from MH i2c: E2 [09:18:14]MH_I2C_Read... [09:18:14]Read from MH i2c: E2 0E 00 [09:18:14]MH_I2C_Read... [09:18:14]Read from MH i2c: E2 0E 00 46 B9 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 82 [09:18:14]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:18:14]wFMCommunicate OK [09:18:14]SAM_PROTO_GetShiftState done [09:18:14]FM_GetShiftState done [09:18:14]opened in 1729383220 [09:18:14]opened+sec_in_day 1729469620 [09:18:14]quantity*price = 100051 [09:18:14]sum+1 = 100052 [09:18:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 70 20.10.2024 09:18 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69225 ФПД: 196622105608682 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091824&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69225&fm=196622105608682&tin=02508201610067®Number=0000000000156251&sum=100000 [09:18:16]StoreToDocumentArchive [09:18:16]shift 193 fd 69225 [09:18:16]save to /storage/0193/doc_00069225 [09:18:16]save last doc name /storage/0193/doc_00069225 to /storage/kkm_last_doc_name [09:18:16]save OK [09:18:16]Clear old archive folders... [09:18:16]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:18:16]tlvbuf is 00571C10 [09:18:16]SAM_PROTO_ClearQueue [09:18:16]wFMCommunicate request_size=4 [09:18:16]MH_SAM_APDU [09:18:16]CAPDU: 80 09 00 00 [09:18:16]Write to MH i2c: E2 08 00 53 B9 80 09 00 00 00 00 00 00 7E [09:18:16]Write i2c OK [09:18:16]MH_I2C_Read... [09:18:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:18:16]Read from MH i2c: E2 [09:18:16]MH_I2C_Read... [09:18:16]Read from MH i2c: E2 03 00 [09:18:16]MH_I2C_Read... [09:18:16]Read from MH i2c: E2 03 00 53 B9 00 90 00 80 [09:18:16]RAPDU: 90 00 [09:18:16]wFMCommunicate OK [09:18:16]SAM_PROTO_ClearQueue done [09:18:16]KKMCreateOFDPacket [09:18:16]OFDProtocolAddRootSTLVToBuf [09:18:16]FM_MakeSignedData [09:18:16]FM_MakeSignedData [09:18:16]SAM_PROTO_SignData [09:18:16]wFMCommunicate request_size=4 [09:18:16]MH_SAM_APDU [09:18:16]CAPDU: 80 0D 01 02 [09:18:16]Write to MH i2c: E2 08 00 54 B9 80 0D 01 02 00 00 00 00 86 [09:18:16]Write i2c OK [09:18:16]MH_I2C_Read... [09:18:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:18:16]Read from MH i2c: E2 [09:18:16]MH_I2C_Read... [09:18:16]Read from MH i2c: E2 03 00 [09:18:16]MH_I2C_Read... [09:18:16]Read from MH i2c: E2 03 00 54 B9 00 90 00 81 [09:18:16]RAPDU: 90 00 [09:18:16]wFMCommunicate OK [09:18:16]wFMCommunicate request_size=255 [09:18:16]MH_SAM_APDU [09:18:16]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 E0 CA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 69 0E 01 [09:18:16]Write to MH i2c: E2 02 01 55 B9 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 E0 CA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 69 0E 01 00 00 7C [09:18:16]Write i2c OK [09:18:16]MH_I2C_Read... [09:18:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:16]Read from MH i2c: E2 [09:18:16]MH_I2C_Read... [09:18:16]Read from MH i2c: E2 03 00 [09:18:16]MH_I2C_Read... [09:18:16]Read from MH i2c: E2 03 00 55 B9 00 90 00 82 [09:18:16]RAPDU: 90 00 [09:18:16]wFMCommunicate OK [09:18:16]wFMCommunicate request_size=16 [09:18:16]MH_SAM_APDU [09:18:16]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 B2 D3 A6 C2 81 EA [09:18:16]Write to MH i2c: E2 13 00 56 B9 80 0D 02 02 0B 00 00 35 04 06 00 B2 D3 A6 C2 81 EA 00 00 36 [09:18:16]Write i2c OK [09:18:16]MH_I2C_Read... [09:18:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:16]Read from MH i2c: E2 [09:18:16]MH_I2C_Read... [09:18:16]Read from MH i2c: E2 03 00 [09:18:16]MH_I2C_Read... [09:18:16]Read from MH i2c: E2 03 00 56 B9 00 90 00 83 [09:18:16]RAPDU: 90 00 [09:18:16]wFMCommunicate OK [09:18:16]wFMCommunicate request_size=4 [09:18:16]MH_SAM_APDU [09:18:16]CAPDU: 80 0D 03 02 [09:18:16]Write to MH i2c: E2 08 00 57 B9 80 0D 03 02 00 00 00 00 8B [09:18:16]Write i2c OK [09:18:16]MH_I2C_Read... [09:18:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:18:16]Read from MH i2c: E2 [09:18:16]MH_I2C_Read... [09:18:16]Read from MH i2c: E2 0B 00 [09:18:16]MH_I2C_Read... [09:18:16]Read from MH i2c: E2 0B 00 57 B9 00 8C A7 B0 9E AD A8 CC 5D 90 00 8B [09:18:16]RAPDU: 8C A7 B0 9E AD A8 CC 5D 90 00 [09:18:16]wFMCommunicate OK [09:18:16]SAM_PROTO_SignData done [09:18:16]FM_MakeSignedData done [09:18:16]CreateOFDProtocolMessage [09:18:16]wFMCommunicate request_size=4 [09:18:16]MH_SAM_APDU [09:18:16]CAPDU: 80 11 00 00 [09:18:16]Write to MH i2c: E2 08 00 58 B9 80 11 00 00 00 00 00 00 8B [09:18:16]Write i2c OK [09:18:16]MH_I2C_Read... [09:18:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:16]Read from MH i2c: E2 [09:18:16]MH_I2C_Read... [09:18:16]Read from MH i2c: E2 17 00 [09:18:16]MH_I2C_Read... [09:18:16]Read from MH i2c: E2 17 00 58 B9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DD [09:18:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:18:16]wFMCommunicate OK [09:18:16]CreateOFDProtocolMessage done [09:18:16]OFDSenderStorePacket 69225 [09:18:16]StoreOFDPacket docnum=69225 [09:18:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 C9 F5 0D 01 84 E5 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 E0 CA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 69 0E 01 00 35 04 06 00 B2 D3 A6 C2 81 EA 8C A7 B0 9E AD A8 CC 5D [09:18:16]CheckFolder [09:18:16]dirname=/storage/ofd_packets [09:18:16]CheckFolder done [09:18:16]ProducePacketName [09:18:16]name=ofd_packets/00069225 [09:18:16]NVStorageSaveData ofd_packets/00069225 [09:18:16]File name is /storage/ofd_packets/00069225 [09:18:16]Write 307 bytes [09:18:16]NVStorageSaveData done [09:18:16]OFDSenderStorePacket done [09:18:16]KKMCreateOFDPacket done [09:18:16]NVStorageSaveData kkm_last_timestamp [09:18:16]File name is /storage/kkm_last_timestamp [09:18:16]Write 4 bytes [09:18:16]NVStorageSaveData done [09:18:16]ExternCall_PrintAddStr [09:18:16]wPrintStart [09:18:16]Write to MH i2c: 01 00 00 59 B9 12 [09:18:16]Write i2c OK [09:18:16]MH_I2C_Read... [09:18:16]Read from MH i2c: 01 [09:18:16]MH_I2C_Read... [09:18:16]Read from MH i2c: 01 07 00 [09:18:16]MH_I2C_Read... [09:18:16]Read from MH i2c: 01 07 00 59 B9 00 00 00 00 00 FF 0F 27 [09:18:16]RasterBufferAndPrint [09:18:16]line Счет N : (1)2884939 [09:18:16]line ИНН: 02508201610067 [09:18:16]line Контрольно-Кассовый Чек [09:18:16]line ПРОДАЖА [09:18:16]line ТРК (МРК, ГНК) : 41 [09:18:16]line Товар: 2710194240 [09:18:16]line D-ENERGY Дт-К-2 [09:18:16]line 12.960 * 77.20 [09:18:16]line = 1000.51 [09:18:16]line НДС 12% НСП 1% [09:18:16]line > о реализуемом товаре [09:18:16]line ОКРУГЛЕНИЕ: -0.51 [09:18:16]line ИТОГО: 1000.00 [09:18:16]line Внесено: 1000.00 [09:18:16]line СДАЧА: 0.00 [09:18:16]line НСП 1% : 8.85 [09:18:16]line НДС 12% : 106.25 [09:18:16]line Наличными: 1000.00 [09:18:16]line Безнал.: 0.00 [09:18:16]line Место: АЗС № 85 "Партнер Нефть" [09:18:16]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:18:16]line СНО: Общий режим [09:18:16]line Чек 70 20.10.2024 09:18 [09:18:16]line Смена: 193 ФФД: 1.0 [09:18:16]line ЗНМ: 0300000167 [09:18:16]line РНМ: 0000000000156251 [09:18:16]line Версия ККМ: v1.0 [09:18:16]line ФМ: 0000000000963346 [09:18:16]line ФД: 69225 [09:18:16]line ФПД: 196622105608682 [09:18:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091824&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69225&fm=196622105608682&tin=02508201610067®Number=0000000000156251&sum=100000 [09:18:16]OFD Sender: Processing packet 69225 [packets to send 18, broken 17] [09:18:16]ProducePacketName [09:18:16]name=ofd_packets/00069225 [09:18:16]OFD Sender: To server: pG, [09:18:16]CommunicateWithHost lk.salyk.kg:30040 [09:18:16]ConnectInit lk.salyk.kg [09:18:16]written 0, free lines is 4095 [09:18:17]Connected sock=10 [09:18:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 C9 F5 0D 01 84 E5 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 E0 CA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 69 0E 01 00 35 04 06 00 B2 D3 A6 C2 81 EA 8C A7 B0 9E AD A8 CC 5D [09:18:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 9A 75 47 00 E2 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 69 0E 01 00 F4 03 04 00 87 74 14 67 B6 04 01 00 00 2F 95 DA 57 3E BE A9 DB [09:18:17]CommunicateWithHost err = 0 [09:18:17]CheckOFDResponse [09:18:17]1017 (14) - 77093643461234 [09:18:17]1041 (16) - 0000000000963346 [09:18:17]1040 (4) - 69225 [09:18:17]1012 (4) - 20.10.2024 03:09 [09:18:17]1206 (1) - 0 [09:18:17]OFD Sender: Remove packet 69225 [09:18:17]ProducePacketName [09:18:17]name=ofd_packets/00069225 [09:18:17]NVStorageDeleteData [09:18:17]Write to MH i2c: 01 00 00 84 B9 3D [09:18:17]Write i2c OK [09:18:17]MH_I2C_Read... [09:18:17]Read from MH i2c: 01 [09:18:17]MH_I2C_Read... [09:18:17]Read from MH i2c: 01 07 00 [09:18:17]MH_I2C_Read... [09:18:17]Read from MH i2c: 01 07 00 84 B9 00 00 00 00 00 ED 0C 3D [09:18:17]RasterBufferAndPrint [09:18:17]line [09:18:17]line [09:18:17]line [09:18:17]line [09:18:17]line [09:18:17]written 0, free lines is 3315 [09:18:17]MH_Cut [09:18:17]Write to MH i2c: D1 01 00 8B B9 01 16 [09:18:17]Write i2c OK [09:18:17]MH_I2C_Read... [09:18:17]Read from MH i2c: D1 [09:18:17]MH_I2C_Read... [09:18:17]Read from MH i2c: D1 01 00 [09:18:17]MH_I2C_Read... [09:18:17]Read from MH i2c: D1 01 00 8B B9 00 15 [09:18:17]Write to MH i2c: 01 00 00 8C B9 45 [09:18:17]Write i2c OK [09:18:17]MH_I2C_Read... [09:18:17]OFD Sender: No OFD packet to send [09:18:18]*** Cut start [09:18:18]*** Partial cut [09:18:18]*** CUTSNS_PIN = 1 [09:18:18]*** CUTSNS_PIN = 0 [09:18:18]*** Brake cut motor [09:18:18]Read from MH i2c: 01 [09:18:18]MH_I2C_Read... [09:18:18]*** Stop cut motor [09:18:18]*** Cut end [09:18:18]Read from MH i2c: 01 07 00 [09:18:18]MH_I2C_Read... [09:18:18]Read from MH i2c: 01 07 00 8C B9 00 00 00 00 00 FF 0F 5A [09:18:18]process_action close_receipt done [09:18:18]requested_data is exist [09:18:18]produce_requested_data [09:18:18]requested_item fm.sn is exist - process it [09:18:18]wFMCommunicate request_size=4 [09:18:18]MH_SAM_APDU [09:18:18]CAPDU: 80 11 00 00 [09:18:18]Write to MH i2c: E2 08 00 8D B9 80 11 00 00 00 00 00 00 C0 [09:18:18]Write i2c OK [09:18:18]MH_I2C_Read... [09:18:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:18]Read from MH i2c: E2 [09:18:18]MH_I2C_Read... [09:18:18]Read from MH i2c: E2 17 00 [09:18:18]MH_I2C_Read... [09:18:18]Read from MH i2c: E2 17 00 8D B9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 12 [09:18:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:18:18]wFMCommunicate OK [09:18:18]requested_item fd.num is exist - process it [09:18:18]SAM_PROTO_GetFieldsCounters [09:18:18]wFMCommunicate request_size=4 [09:18:18]MH_SAM_APDU [09:18:18]CAPDU: 80 13 00 00 [09:18:18]Write to MH i2c: E2 08 00 8E B9 80 13 00 00 00 00 00 00 C3 [09:18:18]Write i2c OK [09:18:18]MH_I2C_Read... [09:18:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:18:18]Read from MH i2c: E2 [09:18:18]MH_I2C_Read... [09:18:18]Read from MH i2c: E2 62 00 [09:18:18]MH_I2C_Read... [09:18:18]Read from MH i2c: E2 62 00 8E B9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 69 0E 01 00 0E 04 04 00 C1 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 E9 [09:18:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 69 0E 01 00 0E 04 04 00 C1 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 [09:18:18]wFMCommunicate OK [09:18:18]SAM_PROTO_GetFieldsCounters done [09:18:18]requested_item shift.num is exist - process it [09:18:18]requested_item shift.opened is exist - process it [09:18:18]req_shift_opened [09:18:18]FM_GetShiftState [09:18:18]SAM_PROTO_GetShiftState [09:18:18]wFMCommunicate request_size=4 [09:18:18]MH_SAM_APDU [09:18:18]CAPDU: 80 13 01 00 [09:18:18]Write to MH i2c: E2 08 00 8F B9 80 13 01 00 00 00 00 00 C5 [09:18:18]Write i2c OK [09:18:18]MH_I2C_Read... [09:18:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:18]Read from MH i2c: E2 [09:18:18]MH_I2C_Read... [09:18:18]Read from MH i2c: E2 0E 00 [09:18:18]MH_I2C_Read... [09:18:18]Read from MH i2c: E2 0E 00 8F B9 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 CB [09:18:18]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:18:18]wFMCommunicate OK [09:18:18]SAM_PROTO_GetShiftState done [09:18:18]FM_GetShiftState done [09:18:18]req_shift_opened done [09:18:18]requested_item shift.open_date is exist - process it [09:18:18]req_shift_open_date [09:18:18]req_shift_open_date done [09:18:18]produce_requested_data done [09:18:18]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69225,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [09:18:18]process_action_free close_receipt [09:18:18]json_value_free [09:18:18]json_value_free done [09:18:18]process_json_proto returns [09:18:18]Send response to host [09:18:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69225,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [09:18:18]free response buf [09:18:18]execute_script done [09:18:18]execute_script returns [09:18:18]free content buf [09:18:18]Sock 8.Close socket [09:18:18]Sock 8.Thread stoped [09:18:22]OFD Sender: No OFD packet to send [09:18:27]OFD Sender: No OFD packet to send [09:18:32]OFD Sender: No OFD packet to send [09:18:37]OFD Sender: No OFD packet to send [09:18:42]OFD Sender: No OFD packet to send [09:18:47]OFD Sender: No OFD packet to send [09:18:48]accept exits with 9 [09:18:48]New connection [09:18:48]New thread 3067116900 created [09:18:48]Thread 3067260260 joined [09:18:48]Waiting for new connection... [09:18:48] Sock 9.Parse request [09:18:48]Sock 9.Check first char [09:18:48]Sock 9.First char is OK [09:18:48]request: POST /json_proto HTTP/1.0 [09:18:48]Method: POST [09:18:48]URL: /json_proto [09:18:48]Method is POST - this is cgi request [09:18:48]url: /json_proto [09:18:48]query_string will be loaded in cgi processing [09:18:48]execute_cgi json_proto POST (null) [09:18:48]execute_cgi path=json_proto method=POST [09:18:48]POST find Content-Length [09:18:48]Host: 172.17.50.3:8080 [09:18:48]Content-Length: 680 [09:18:48]Content-Type: application/json [09:18:48] [09:18:48]POST finish read [09:18:48]Found Content-Length = 680 [09:18:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:48]execute_script... [09:18:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:48]POST & json_proto [09:18:48]process_json_proto [09:18:48]json parsed OK: [09:18:48]protocol is kg_v1.0 [09:18:48]action value=close_receipt [09:18:48]process_action close_receipt [09:18:48]cmd_close_receipt [09:18:48]MH_GetDate [09:18:48]Write to MH i2c: F0 00 00 90 B9 38 [09:18:48]Write i2c OK [09:18:48]MH_I2C_Read... [09:18:48]Read from MH i2c: F0 [09:18:48]MH_I2C_Read... [09:18:48]Read from MH i2c: F0 09 00 [09:18:48]MH_I2C_Read... [09:18:48]Read from MH i2c: F0 09 00 90 B9 00 02 CB 14 67 6B 98 1E 66 10 [09:18:48]GetLastDocTimeStamp 1729415904 [09:18:48]current date 1729415938 [09:18:48]FM_GetShiftState [09:18:48]SAM_PROTO_GetShiftState [09:18:48]wFMCommunicate request_size=4 [09:18:48]MH_SAM_APDU [09:18:48]CAPDU: 80 13 01 00 [09:18:48]Write to MH i2c: E2 08 00 91 B9 80 13 01 00 00 00 00 00 C7 [09:18:48]Write i2c OK [09:18:48]MH_I2C_Read... [09:18:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:48]Read from MH i2c: E2 [09:18:48]MH_I2C_Read... [09:18:48]Read from MH i2c: E2 0E 00 [09:18:48]MH_I2C_Read... [09:18:48]Read from MH i2c: E2 0E 00 91 B9 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 CD [09:18:48]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:18:48]wFMCommunicate OK [09:18:48]SAM_PROTO_GetShiftState done [09:18:48]FM_GetShiftState done [09:18:48]opened in 1729383220 [09:18:48]opened+sec_in_day 1729469620 [09:18:48]quantity*price = 250012 [09:18:48]sum+1 = 250013 [09:18:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 71 20.10.2024 09:18 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69226 ФПД: 54737690829643 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091858&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69226&fm=54737690829643&tin=02508201610067®Number=0000000000156251&sum=250000 [09:18:50]StoreToDocumentArchive [09:18:50]shift 193 fd 69226 [09:18:50]save to /storage/0193/doc_00069226 [09:18:50]save last doc name /storage/0193/doc_00069226 to /storage/kkm_last_doc_name [09:18:50]save OK [09:18:50]Clear old archive folders... [09:18:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:18:50]tlvbuf is 00533420 [09:18:50]SAM_PROTO_ClearQueue [09:18:50]wFMCommunicate request_size=4 [09:18:50]MH_SAM_APDU [09:18:50]CAPDU: 80 09 00 00 [09:18:50]Write to MH i2c: E2 08 00 9E B9 80 09 00 00 00 00 00 00 C9 [09:18:50]Write i2c OK [09:18:50]MH_I2C_Read... [09:18:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:18:50]Read from MH i2c: E2 [09:18:50]MH_I2C_Read... [09:18:50]Read from MH i2c: E2 03 00 [09:18:50]MH_I2C_Read... [09:18:50]Read from MH i2c: E2 03 00 9E B9 00 90 00 CB [09:18:50]RAPDU: 90 00 [09:18:50]wFMCommunicate OK [09:18:50]SAM_PROTO_ClearQueue done [09:18:50]KKMCreateOFDPacket [09:18:50]OFDProtocolAddRootSTLVToBuf [09:18:50]FM_MakeSignedData [09:18:50]FM_MakeSignedData [09:18:50]SAM_PROTO_SignData [09:18:50]wFMCommunicate request_size=4 [09:18:50]MH_SAM_APDU [09:18:50]CAPDU: 80 0D 01 02 [09:18:50]Write to MH i2c: E2 08 00 9F B9 80 0D 01 02 00 00 00 00 D1 [09:18:50]Write i2c OK [09:18:50]MH_I2C_Read... [09:18:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:18:50]Read from MH i2c: E2 [09:18:50]MH_I2C_Read... [09:18:50]Read from MH i2c: E2 03 00 [09:18:50]MH_I2C_Read... [09:18:50]Read from MH i2c: E2 03 00 9F B9 00 90 00 CC [09:18:50]RAPDU: 90 00 [09:18:50]wFMCommunicate OK [09:18:50]wFMCommunicate request_size=255 [09:18:50]MH_SAM_APDU [09:18:50]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 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 02 CB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6A 0E 01 00 35 04 06 00 31 C8 9C 9E [09:18:50]Write to MH i2c: E2 02 01 A0 B9 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 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 02 CB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6A 0E 01 00 35 04 06 00 31 C8 9C 9E 00 00 AD [09:18:50]Write i2c OK [09:18:50]MH_I2C_Read... [09:18:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:50]Read from MH i2c: E2 [09:18:50]MH_I2C_Read... [09:18:50]Read from MH i2c: E2 03 00 [09:18:50]MH_I2C_Read... [09:18:50]Read from MH i2c: E2 03 00 A0 B9 00 90 00 CD [09:18:50]RAPDU: 90 00 [09:18:50]wFMCommunicate OK [09:18:50]wFMCommunicate request_size=7 [09:18:50]MH_SAM_APDU [09:18:50]CAPDU: 80 0D 02 02 02 23 4B [09:18:50]Write to MH i2c: E2 0A 00 A1 B9 80 0D 02 02 02 00 23 4B 00 00 46 [09:18:50]Write i2c OK [09:18:50]MH_I2C_Read... [09:18:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:50]Read from MH i2c: E2 [09:18:50]MH_I2C_Read... [09:18:50]Read from MH i2c: E2 03 00 [09:18:50]MH_I2C_Read... [09:18:50]Read from MH i2c: E2 03 00 A1 B9 00 90 00 CE [09:18:50]RAPDU: 90 00 [09:18:50]wFMCommunicate OK [09:18:50]wFMCommunicate request_size=4 [09:18:50]MH_SAM_APDU [09:18:50]CAPDU: 80 0D 03 02 [09:18:50]Write to MH i2c: E2 08 00 A2 B9 80 0D 03 02 00 00 00 00 D6 [09:18:50]Write i2c OK [09:18:50]MH_I2C_Read... [09:18:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:18:50]Read from MH i2c: E2 [09:18:50]MH_I2C_Read... [09:18:50]Read from MH i2c: E2 0B 00 [09:18:50]MH_I2C_Read... [09:18:50]Read from MH i2c: E2 0B 00 A2 B9 00 D6 6A AF 8B 03 94 EE B3 90 00 89 [09:18:50]RAPDU: D6 6A AF 8B 03 94 EE B3 90 00 [09:18:50]wFMCommunicate OK [09:18:50]SAM_PROTO_SignData done [09:18:50]FM_MakeSignedData done [09:18:50]CreateOFDProtocolMessage [09:18:50]wFMCommunicate request_size=4 [09:18:50]MH_SAM_APDU [09:18:50]CAPDU: 80 11 00 00 [09:18:50]Write to MH i2c: E2 08 00 A3 B9 80 11 00 00 00 00 00 00 D6 [09:18:50]Write i2c OK [09:18:50]MH_I2C_Read... [09:18:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:50]Read from MH i2c: E2 [09:18:50]MH_I2C_Read... [09:18:50]Read from MH i2c: E2 17 00 [09:18:50]MH_I2C_Read... [09:18:50]Read from MH i2c: E2 17 00 A3 B9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 28 [09:18:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:18:50]wFMCommunicate OK [09:18:50]CreateOFDProtocolMessage done [09:18:50]OFDSenderStorePacket 69226 [09:18:50]StoreOFDPacket docnum=69226 [09:18:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 8B C8 04 01 36 0D 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 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 02 CB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6A 0E 01 00 35 04 06 00 31 C8 9C 9E 23 4B D6 6A AF 8B 03 94 EE B3 [09:18:50]CheckFolder [09:18:50]dirname=/storage/ofd_packets [09:18:50]CheckFolder done [09:18:50]ProducePacketName [09:18:50]name=ofd_packets/00069226 [09:18:50]NVStorageSaveData ofd_packets/00069226 [09:18:50]File name is /storage/ofd_packets/00069226 [09:18:50]Write 298 bytes [09:18:50]NVStorageSaveData done [09:18:50]OFDSenderStorePacket done [09:18:50]KKMCreateOFDPacket done [09:18:50]NVStorageSaveData kkm_last_timestamp [09:18:50]File name is /storage/kkm_last_timestamp [09:18:50]Write 4 bytes [09:18:50]NVStorageSaveData done [09:18:50]ExternCall_PrintAddStr [09:18:50]wPrintStart [09:18:50]Write to MH i2c: 01 00 00 A4 B9 5D [09:18:50]Write i2c OK [09:18:50]MH_I2C_Read... [09:18:50]Read from MH i2c: 01 [09:18:50]MH_I2C_Read... [09:18:50]Read from MH i2c: 01 07 00 [09:18:50]MH_I2C_Read... [09:18:50]Read from MH i2c: 01 07 00 A4 B9 00 00 00 00 00 FF 0F 72 [09:18:50]RasterBufferAndPrint [09:18:50]line Счет N : (1)2884940 [09:18:50]line ИНН: 02508201610067 [09:18:50]line Контрольно-Кассовый Чек [09:18:50]line ПРОДАЖА [09:18:50]line ТРК (МРК, ГНК) : 51 [09:18:50]line Товар: 2710194210 [09:18:50]line ДТ-К-5 [09:18:50]line 32.810 * 76.20 [09:18:50]line = 2500.12 [09:18:50]line НДС 12% НСП 1% [09:18:50]line > о реализуемом товаре [09:18:50]line ОКРУГЛЕНИЕ: -0.12 [09:18:50]line ИТОГО: 2500.00 [09:18:50]line Внесено: 2500.00 [09:18:50]line СДАЧА: 0.00 [09:18:50]line НСП 1% : 22.12 [09:18:50]line НДС 12% : 265.50 [09:18:50]line Наличными: 2500.00 [09:18:50]line Безнал.: 0.00 [09:18:50]line Место: АЗС № 85 "Партнер Нефть" [09:18:50]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:18:50]line СНО: Общий режим [09:18:50]line Чек 71 20.10.2024 09:18 [09:18:50]line Смена: 193 ФФД: 1.0 [09:18:50]line ЗНМ: 0300000167 [09:18:50]line РНМ: 0000000000156251 [09:18:50]line Версия ККМ: v1.0 [09:18:50]line ФМ: 0000000000963346 [09:18:50]line ФД: 69226 [09:18:50]line ФПД: 54737690829643 [09:18:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091858&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69226&fm=54737690829643&tin=02508201610067®Number=0000000000156251&sum=250000 [09:18:50]OFD Sender: Processing packet 69226 [packets to send 18, broken 17] [09:18:50]ProducePacketName [09:18:50]name=ofd_packets/00069226 [09:18:50]OFD Sender: To server: pG, [09:18:50]CommunicateWithHost lk.salyk.kg:30040 [09:18:50]ConnectInit lk.salyk.kg [09:18:50]written 0, free lines is 4095 [09:18:51]Connected sock=10 [09:18:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 8B C8 04 01 36 0D 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 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 02 CB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6A 0E 01 00 35 04 06 00 31 C8 9C 9E 23 4B D6 6A AF 8B 03 94 EE B3 [09:18:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 1D D6 47 00 5F 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 30 39 36 33 33 34 36 10 04 04 00 6A 0E 01 00 F4 03 04 00 A9 74 14 67 B6 04 01 00 00 74 3E 98 75 D3 B3 4A 5C [09:18:51]CommunicateWithHost err = 0 [09:18:51]CheckOFDResponse [09:18:51]1017 (14) - 77093643461234 [09:18:51]1041 (16) - 0000000000963346 [09:18:51]1040 (4) - 69226 [09:18:51]1012 (4) - 20.10.2024 03:10 [09:18:51]1206 (1) - 0 [09:18:51]OFD Sender: Remove packet 69226 [09:18:51]ProducePacketName [09:18:51]name=ofd_packets/00069226 [09:18:51]NVStorageDeleteData [09:18:51]Write to MH i2c: 01 00 00 CF B9 88 [09:18:51]Write i2c OK [09:18:51]MH_I2C_Read... [09:18:51]Read from MH i2c: 01 [09:18:51]MH_I2C_Read... [09:18:51]Read from MH i2c: 01 07 00 [09:18:51]MH_I2C_Read... [09:18:51]Read from MH i2c: 01 07 00 CF B9 00 00 00 00 00 F8 0C 93 [09:18:51]RasterBufferAndPrint [09:18:51]line [09:18:51]line [09:18:51]line [09:18:51]line [09:18:51]line [09:18:51]written 0, free lines is 3330 [09:18:51]MH_Cut [09:18:51]Write to MH i2c: D1 01 00 D6 B9 01 61 [09:18:51]Write i2c OK [09:18:51]MH_I2C_Read... [09:18:51]Read from MH i2c: D1 [09:18:51]MH_I2C_Read... [09:18:51]Read from MH i2c: D1 01 00 [09:18:51]MH_I2C_Read... [09:18:51]Read from MH i2c: D1 01 00 D6 B9 00 60 [09:18:51]Write to MH i2c: 01 00 00 D7 B9 90 [09:18:51]Write i2c OK [09:18:51]MH_I2C_Read... [09:18:51]OFD Sender: No OFD packet to send [09:18:52]*** Cut start [09:18:52]*** Partial cut [09:18:52]*** CUTSNS_PIN = 1 [09:18:52]*** CUTSNS_PIN = 0 [09:18:52]*** Brake cut motor [09:18:52]Read from MH i2c: 01 [09:18:52]MH_I2C_Read... [09:18:52]*** Stop cut motor [09:18:52]*** Cut end [09:18:52]Read from MH i2c: 01 07 00 [09:18:52]MH_I2C_Read... [09:18:52]Read from MH i2c: 01 07 00 D7 B9 00 00 00 00 00 FF 0F A5 [09:18:52]process_action close_receipt done [09:18:52]requested_data is exist [09:18:52]produce_requested_data [09:18:52]requested_item fm.sn is exist - process it [09:18:52]wFMCommunicate request_size=4 [09:18:52]MH_SAM_APDU [09:18:52]CAPDU: 80 11 00 00 [09:18:52]Write to MH i2c: E2 08 00 D8 B9 80 11 00 00 00 00 00 00 0B [09:18:52]Write i2c OK [09:18:52]MH_I2C_Read... [09:18:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:52]Read from MH i2c: E2 [09:18:52]MH_I2C_Read... [09:18:52]Read from MH i2c: E2 17 00 [09:18:52]MH_I2C_Read... [09:18:52]Read from MH i2c: E2 17 00 D8 B9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5D [09:18:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:18:52]wFMCommunicate OK [09:18:52]requested_item fd.num is exist - process it [09:18:52]SAM_PROTO_GetFieldsCounters [09:18:52]wFMCommunicate request_size=4 [09:18:52]MH_SAM_APDU [09:18:52]CAPDU: 80 13 00 00 [09:18:52]Write to MH i2c: E2 08 00 D9 B9 80 13 00 00 00 00 00 00 0E [09:18:52]Write i2c OK [09:18:52]MH_I2C_Read... [09:18:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:18:52]Read from MH i2c: E2 [09:18:52]MH_I2C_Read... [09:18:52]Read from MH i2c: E2 62 00 [09:18:52]MH_I2C_Read... [09:18:52]Read from MH i2c: E2 62 00 D9 B9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6A 0E 01 00 0E 04 04 00 C1 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 38 [09:18:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6A 0E 01 00 0E 04 04 00 C1 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 [09:18:52]wFMCommunicate OK [09:18:52]SAM_PROTO_GetFieldsCounters done [09:18:52]requested_item shift.num is exist - process it [09:18:52]requested_item shift.opened is exist - process it [09:18:52]req_shift_opened [09:18:52]FM_GetShiftState [09:18:52]SAM_PROTO_GetShiftState [09:18:52]wFMCommunicate request_size=4 [09:18:52]MH_SAM_APDU [09:18:52]CAPDU: 80 13 01 00 [09:18:52]Write to MH i2c: E2 08 00 DA B9 80 13 01 00 00 00 00 00 10 [09:18:52]Write i2c OK [09:18:52]MH_I2C_Read... [09:18:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:52]Read from MH i2c: E2 [09:18:52]MH_I2C_Read... [09:18:52]Read from MH i2c: E2 0E 00 [09:18:52]MH_I2C_Read... [09:18:52]Read from MH i2c: E2 0E 00 DA B9 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 16 [09:18:52]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:18:52]wFMCommunicate OK [09:18:52]SAM_PROTO_GetShiftState done [09:18:52]FM_GetShiftState done [09:18:52]req_shift_opened done [09:18:52]requested_item shift.open_date is exist - process it [09:18:52]req_shift_open_date [09:18:52]req_shift_open_date done [09:18:52]produce_requested_data done [09:18:52]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69226,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [09:18:52]process_action_free close_receipt [09:18:52]json_value_free [09:18:52]json_value_free done [09:18:52]process_json_proto returns [09:18:52]Send response to host [09:18:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69226,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [09:18:52]free response buf [09:18:52]execute_script done [09:18:52]execute_script returns [09:18:52]free content buf [09:18:52]Sock 9.Close socket [09:18:52]Sock 9.Thread stoped [09:18:56]OFD Sender: No OFD packet to send [09:19:01]OFD Sender: No OFD packet to send [09:19:06]OFD Sender: No OFD packet to send [09:19:11]OFD Sender: No OFD packet to send [09:19:16]OFD Sender: No OFD packet to send [09:19:21]OFD Sender: No OFD packet to send [09:19:26]OFD Sender: No OFD packet to send [09:19:31]OFD Sender: No OFD packet to send [09:19:36]OFD Sender: No OFD packet to send [09:19:41]OFD Sender: No OFD packet to send [09:19:46]OFD Sender: No OFD packet to send [09:19:51]OFD Sender: No OFD packet to send [09:19:56]OFD Sender: No OFD packet to send [09:20:01]OFD Sender: No OFD packet to send [09:20:06]OFD Sender: No OFD packet to send [09:20:11]OFD Sender: No OFD packet to send [09:20:16]OFD Sender: No OFD packet to send [09:20:21]OFD Sender: No OFD packet to send [09:20:26]OFD Sender: No OFD packet to send [09:20:31]OFD Sender: No OFD packet to send [09:20:36]OFD Sender: No OFD packet to send [09:20:41]OFD Sender: No OFD packet to send [09:20:46]OFD Sender: No OFD packet to send [09:20:49]accept exits with 8 [09:20:49]New connection [09:20:49]New thread 3067260260 created [09:20:49]Thread 3067116900 joined [09:20:49]Waiting for new connection... [09:20:49] Sock 8.Parse request [09:20:49]Sock 8.Check first char [09:20:49]Sock 8.First char is OK [09:20:49]request: POST /json_proto HTTP/1.0 [09:20:49]Method: POST [09:20:49]URL: /json_proto [09:20:49]Method is POST - this is cgi request [09:20:49]url: /json_proto [09:20:49]query_string will be loaded in cgi processing [09:20:49]execute_cgi json_proto POST (null) [09:20:49]execute_cgi path=json_proto method=POST [09:20:49]POST find Content-Length [09:20:49]Host: 172.17.50.3:8080 [09:20:49]Content-Length: 689 [09:20:49]Content-Type: application/json [09:20:49] [09:20:49]POST finish read [09:20:49]Found Content-Length = 689 [09:20:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:49]execute_script... [09:20: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)2884941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:49]POST & json_proto [09:20:49]process_json_proto [09:20:49]json parsed OK: [09:20:49]protocol is kg_v1.0 [09:20:49]action value=close_receipt [09:20:49]process_action close_receipt [09:20:49]cmd_close_receipt [09:20:49]MH_GetDate [09:20:49]Write to MH i2c: F0 00 00 DB B9 83 [09:20:49]Write i2c OK [09:20:49]MH_I2C_Read... [09:20:49]Read from MH i2c: F0 [09:20:49]MH_I2C_Read... [09:20:49]Read from MH i2c: F0 09 00 [09:20:49]MH_I2C_Read... [09:20:49]Read from MH i2c: F0 09 00 DB B9 00 7B CB 14 67 6B 98 1E 66 D4 [09:20:49]GetLastDocTimeStamp 1729415938 [09:20:49]current date 1729416059 [09:20:49]FM_GetShiftState [09:20:49]SAM_PROTO_GetShiftState [09:20:49]wFMCommunicate request_size=4 [09:20:49]MH_SAM_APDU [09:20:49]CAPDU: 80 13 01 00 [09:20:49]Write to MH i2c: E2 08 00 DC B9 80 13 01 00 00 00 00 00 12 [09:20:49]Write i2c OK [09:20:49]MH_I2C_Read... [09:20:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:49]Read from MH i2c: E2 [09:20:49]MH_I2C_Read... [09:20:49]Read from MH i2c: E2 0E 00 [09:20:49]MH_I2C_Read... [09:20:49]Read from MH i2c: E2 0E 00 DC B9 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 18 [09:20:49]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:20:49]wFMCommunicate OK [09:20:49]SAM_PROTO_GetShiftState done [09:20:49]FM_GetShiftState done [09:20:49]opened in 1729383220 [09:20:49]opened+sec_in_day 1729469620 [09:20:49]quantity*price = 100051 [09:20:49]sum+1 = 100052 [09:20:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 72 20.10.2024 09:20 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69227 ФПД: 100365432114719 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092059&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69227&fm=100365432114719&tin=02508201610067®Number=0000000000156251&sum=100000 [09:20:50]StoreToDocumentArchive [09:20:50]shift 193 fd 69227 [09:20:50]save to /storage/0193/doc_00069227 [09:20:50]save last doc name /storage/0193/doc_00069227 to /storage/kkm_last_doc_name [09:20:50]save OK [09:20:50]Clear old archive folders... [09:20:50]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:20:50]tlvbuf is 007FA960 [09:20:50]SAM_PROTO_ClearQueue [09:20:50]wFMCommunicate request_size=4 [09:20:50]MH_SAM_APDU [09:20:50]CAPDU: 80 09 00 00 [09:20:50]Write to MH i2c: E2 08 00 E9 B9 80 09 00 00 00 00 00 00 14 [09:20:50]Write i2c OK [09:20:50]MH_I2C_Read... [09:20:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:20:50]Read from MH i2c: E2 [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: E2 03 00 [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: E2 03 00 E9 B9 00 90 00 16 [09:20:50]RAPDU: 90 00 [09:20:50]wFMCommunicate OK [09:20:50]SAM_PROTO_ClearQueue done [09:20:50]KKMCreateOFDPacket [09:20:50]OFDProtocolAddRootSTLVToBuf [09:20:50]FM_MakeSignedData [09:20:50]FM_MakeSignedData [09:20:50]SAM_PROTO_SignData [09:20:50]wFMCommunicate request_size=4 [09:20:50]MH_SAM_APDU [09:20:50]CAPDU: 80 0D 01 02 [09:20:50]Write to MH i2c: E2 08 00 EA B9 80 0D 01 02 00 00 00 00 1C [09:20:50]Write i2c OK [09:20:50]MH_I2C_Read... [09:20:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:20:50]Read from MH i2c: E2 [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: E2 03 00 [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: E2 03 00 EA B9 00 90 00 17 [09:20:50]RAPDU: 90 00 [09:20:50]wFMCommunicate OK [09:20:50]wFMCommunicate request_size=255 [09:20:50]MH_SAM_APDU [09:20:50]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 7B CB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6B 0E 01 [09:20:50]Write to MH i2c: E2 02 01 EB B9 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 7B CB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6B 0E 01 00 00 B2 [09:20:50]Write i2c OK [09:20:50]MH_I2C_Read... [09:20:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:50]Read from MH i2c: E2 [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: E2 03 00 [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: E2 03 00 EB B9 00 90 00 18 [09:20:50]RAPDU: 90 00 [09:20:50]wFMCommunicate OK [09:20:50]wFMCommunicate request_size=16 [09:20:50]MH_SAM_APDU [09:20:50]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 5B 48 25 ED CE 1F [09:20:50]Write to MH i2c: E2 13 00 EC B9 80 0D 02 02 0B 00 00 35 04 06 00 5B 48 25 ED CE 1F 00 00 16 [09:20:50]Write i2c OK [09:20:50]MH_I2C_Read... [09:20:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:51]Read from MH i2c: E2 [09:20:51]MH_I2C_Read... [09:20:51]Read from MH i2c: E2 03 00 [09:20:51]MH_I2C_Read... [09:20:51]Read from MH i2c: E2 03 00 EC B9 00 90 00 19 [09:20:51]RAPDU: 90 00 [09:20:51]wFMCommunicate OK [09:20:51]wFMCommunicate request_size=4 [09:20:51]MH_SAM_APDU [09:20:51]CAPDU: 80 0D 03 02 [09:20:51]Write to MH i2c: E2 08 00 ED B9 80 0D 03 02 00 00 00 00 21 [09:20:51]Write i2c OK [09:20:51]MH_I2C_Read... [09:20:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:20:51]Read from MH i2c: E2 [09:20:51]MH_I2C_Read... [09:20:51]Read from MH i2c: E2 0B 00 [09:20:51]MH_I2C_Read... [09:20:51]Read from MH i2c: E2 0B 00 ED B9 00 4A C3 2A FB 40 7F 84 62 90 00 F9 [09:20:51]RAPDU: 4A C3 2A FB 40 7F 84 62 90 00 [09:20:51]wFMCommunicate OK [09:20:51]SAM_PROTO_SignData done [09:20:51]FM_MakeSignedData done [09:20:51]CreateOFDProtocolMessage [09:20:51]wFMCommunicate request_size=4 [09:20:51]MH_SAM_APDU [09:20:51]CAPDU: 80 11 00 00 [09:20:51]Write to MH i2c: E2 08 00 EE B9 80 11 00 00 00 00 00 00 21 [09:20:51]Write i2c OK [09:20:51]MH_I2C_Read... [09:20:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:51]Read from MH i2c: E2 [09:20:51]MH_I2C_Read... [09:20:51]Read from MH i2c: E2 17 00 [09:20:51]MH_I2C_Read... [09:20:51]Read from MH i2c: E2 17 00 EE B9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 73 [09:20:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:20:51]wFMCommunicate OK [09:20:51]CreateOFDProtocolMessage done [09:20:51]OFDSenderStorePacket 69227 [09:20:51]StoreOFDPacket docnum=69227 [09:20:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 69 5F 0D 01 E7 C2 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 7B CB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6B 0E 01 00 35 04 06 00 5B 48 25 ED CE 1F 4A C3 2A FB 40 7F 84 62 [09:20:51]CheckFolder [09:20:51]dirname=/storage/ofd_packets [09:20:51]CheckFolder done [09:20:51]ProducePacketName [09:20:51]name=ofd_packets/00069227 [09:20:51]NVStorageSaveData ofd_packets/00069227 [09:20:51]File name is /storage/ofd_packets/00069227 [09:20:51]Write 307 bytes [09:20:51]NVStorageSaveData done [09:20:51]OFDSenderStorePacket done [09:20:51]KKMCreateOFDPacket done [09:20:51]NVStorageSaveData kkm_last_timestamp [09:20:51]File name is /storage/kkm_last_timestamp [09:20:51]Write 4 bytes [09:20:51]NVStorageSaveData done [09:20:51]ExternCall_PrintAddStr [09:20:51]wPrintStart [09:20:51]Write to MH i2c: 01 00 00 EF B9 A8 [09:20:51]Write i2c OK [09:20:51]MH_I2C_Read... [09:20:51]Read from MH i2c: 01 [09:20:51]MH_I2C_Read... [09:20:51]Read from MH i2c: 01 07 00 [09:20:51]MH_I2C_Read... [09:20:51]Read from MH i2c: 01 07 00 EF B9 00 00 00 00 00 FF 0F BD [09:20:51]RasterBufferAndPrint [09:20:51]line Счет N : (1)2884941 [09:20:51]line ИНН: 02508201610067 [09:20:51]line Контрольно-Кассовый Чек [09:20:51]line ПРОДАЖА [09:20:51]line ТРК (МРК, ГНК) : 31 [09:20:51]line Товар: 2710194240 [09:20:51]line D-ENERGY Дт-К-2 [09:20:51]line 12.960 * 77.20 [09:20:51]line = 1000.51 [09:20:51]line НДС 12% НСП 1% [09:20:51]line > о реализуемом товаре [09:20:51]line ОКРУГЛЕНИЕ: -0.51 [09:20:51]line ИТОГО: 1000.00 [09:20:51]line Внесено: 1000.00 [09:20:51]line СДАЧА: 0.00 [09:20:51]line НСП 1% : 8.85 [09:20:51]line НДС 12% : 106.25 [09:20:51]line Наличными: 1000.00 [09:20:51]line Безнал.: 0.00 [09:20:51]line Место: АЗС № 85 "Партнер Нефть" [09:20:51]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:20:51]line СНО: Общий режим [09:20:51]line Чек 72 20.10.2024 09:20 [09:20:51]line Смена: 193 ФФД: 1.0 [09:20:51]line ЗНМ: 0300000167 [09:20:51]line РНМ: 0000000000156251 [09:20:51]line Версия ККМ: v1.0 [09:20:51]line ФМ: 0000000000963346 [09:20:51]line ФД: 69227 [09:20:51]line ФПД: 100365432114719 [09:20:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092059&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69227&fm=100365432114719&tin=02508201610067®Number=0000000000156251&sum=100000 [09:20:51]OFD Sender: Processing packet 69227 [packets to send 18, broken 17] [09:20:51]ProducePacketName [09:20:51]name=ofd_packets/00069227 [09:20:51]OFD Sender: To server: pG, [09:20:51]CommunicateWithHost lk.salyk.kg:30040 [09:20:51]ConnectInit lk.salyk.kg [09:20:51]written 0, free lines is 4095 [09:20:51]Connected sock=10 [09:20:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 69 5F 0D 01 E7 C2 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 7B CB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6B 0E 01 00 35 04 06 00 5B 48 25 ED CE 1F 4A C3 2A FB 40 7F 84 62 [09:20:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 72 38 47 00 D5 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6B 0E 01 00 F4 03 04 00 22 75 14 67 B6 04 01 00 00 49 02 86 92 FE 58 B7 4D [09:20:51]CommunicateWithHost err = 0 [09:20:51]CheckOFDResponse [09:20:51]1017 (14) - 77093643461234 [09:20:51]1041 (16) - 0000000000963346 [09:20:51]1040 (4) - 69227 [09:20:51]1012 (4) - 20.10.2024 03:12 [09:20:51]1206 (1) - 0 [09:20:51]OFD Sender: Remove packet 69227 [09:20:51]ProducePacketName [09:20:51]name=ofd_packets/00069227 [09:20:51]NVStorageDeleteData [09:20:51]Write to MH i2c: 01 00 00 1A BA D4 [09:20:51]Write i2c OK [09:20:51]MH_I2C_Read... [09:20:51]Read from MH i2c: 01 [09:20:51]MH_I2C_Read... [09:20:51]Read from MH i2c: 01 07 00 [09:20:51]MH_I2C_Read... [09:20:51]Read from MH i2c: 01 07 00 1A BA 00 00 00 00 00 F3 0C DA [09:20:51]RasterBufferAndPrint [09:20:51]line [09:20:51]line [09:20:51]line [09:20:51]line [09:20:51]line [09:20:51]written 0, free lines is 3321 [09:20:51]MH_Cut [09:20:51]Write to MH i2c: D1 01 00 21 BA 01 AD [09:20:51]Write i2c OK [09:20:51]MH_I2C_Read... [09:20:51]Read from MH i2c: D1 [09:20:51]MH_I2C_Read... [09:20:51]Read from MH i2c: D1 01 00 [09:20:51]MH_I2C_Read... [09:20:51]Read from MH i2c: D1 01 00 21 BA 00 AC [09:20:51]Write to MH i2c: 01 00 00 22 BA DC [09:20:51]Write i2c OK [09:20:51]MH_I2C_Read... [09:20:52]OFD Sender: No OFD packet to send [09:20:52]*** Cut start [09:20:52]*** Partial cut [09:20:52]*** CUTSNS_PIN = 1 [09:20:52]*** CUTSNS_PIN = 0 [09:20:52]*** Brake cut motor [09:20:53]Read from MH i2c: 01 [09:20:53]MH_I2C_Read... [09:20:53]*** Stop cut motor [09:20:53]*** Cut end [09:20:53]Read from MH i2c: 01 07 00 [09:20:53]MH_I2C_Read... [09:20:53]Read from MH i2c: 01 07 00 22 BA 00 00 00 00 00 FF 0F F1 [09:20:53]process_action close_receipt done [09:20:53]requested_data is exist [09:20:53]produce_requested_data [09:20:53]requested_item fm.sn is exist - process it [09:20:53]wFMCommunicate request_size=4 [09:20:53]MH_SAM_APDU [09:20:53]CAPDU: 80 11 00 00 [09:20:53]Write to MH i2c: E2 08 00 23 BA 80 11 00 00 00 00 00 00 57 [09:20:53]Write i2c OK [09:20:53]MH_I2C_Read... [09:20:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:53]Read from MH i2c: E2 [09:20:53]MH_I2C_Read... [09:20:53]Read from MH i2c: E2 17 00 [09:20:53]MH_I2C_Read... [09:20:53]Read from MH i2c: E2 17 00 23 BA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A9 [09:20:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:20:53]wFMCommunicate OK [09:20:53]requested_item fd.num is exist - process it [09:20:53]SAM_PROTO_GetFieldsCounters [09:20:53]wFMCommunicate request_size=4 [09:20:53]MH_SAM_APDU [09:20:53]CAPDU: 80 13 00 00 [09:20:53]Write to MH i2c: E2 08 00 24 BA 80 13 00 00 00 00 00 00 5A [09:20:53]Write i2c OK [09:20:53]MH_I2C_Read... [09:20:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:20:53]Read from MH i2c: E2 [09:20:53]MH_I2C_Read... [09:20:53]Read from MH i2c: E2 62 00 [09:20:53]MH_I2C_Read... [09:20:53]Read from MH i2c: E2 62 00 24 BA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6B 0E 01 00 0E 04 04 00 C1 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 88 [09:20:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6B 0E 01 00 0E 04 04 00 C1 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 [09:20:53]wFMCommunicate OK [09:20:53]SAM_PROTO_GetFieldsCounters done [09:20:53]requested_item shift.num is exist - process it [09:20:53]requested_item shift.opened is exist - process it [09:20:53]req_shift_opened [09:20:53]FM_GetShiftState [09:20:53]SAM_PROTO_GetShiftState [09:20:53]wFMCommunicate request_size=4 [09:20:53]MH_SAM_APDU [09:20:53]CAPDU: 80 13 01 00 [09:20:53]Write to MH i2c: E2 08 00 25 BA 80 13 01 00 00 00 00 00 5C [09:20:53]Write i2c OK [09:20:53]MH_I2C_Read... [09:20:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:53]Read from MH i2c: E2 [09:20:53]MH_I2C_Read... [09:20:53]Read from MH i2c: E2 0E 00 [09:20:53]MH_I2C_Read... [09:20:53]Read from MH i2c: E2 0E 00 25 BA 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 62 [09:20:53]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:20:53]wFMCommunicate OK [09:20:53]SAM_PROTO_GetShiftState done [09:20:53]FM_GetShiftState done [09:20:53]req_shift_opened done [09:20:53]requested_item shift.open_date is exist - process it [09:20:53]req_shift_open_date [09:20:53]req_shift_open_date done [09:20:53]produce_requested_data done [09:20:53]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69227,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [09:20:53]process_action_free close_receipt [09:20:53]json_value_free [09:20:53]json_value_free done [09:20:53]process_json_proto returns [09:20:53]Send response to host [09:20:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69227,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [09:20:53]free response buf [09:20:53]execute_script done [09:20:53]execute_script returns [09:20:53]free content buf [09:20:53]Sock 8.Close socket [09:20:53]Sock 8.Thread stoped [09:20:57]OFD Sender: No OFD packet to send [09:21:02]OFD Sender: No OFD packet to send [09:21:07]OFD Sender: No OFD packet to send [09:21:12]OFD Sender: No OFD packet to send [09:21:17]OFD Sender: No OFD packet to send [09:21:22]OFD Sender: No OFD packet to send [09:21:27]OFD Sender: No OFD packet to send [09:21:32]OFD Sender: No OFD packet to send [09:21:37]OFD Sender: No OFD packet to send [09:21:38]accept exits with 9 [09:21:38]New connection [09:21:38]New thread 3067116900 created [09:21:38]Thread 3067260260 joined [09:21:38]Waiting for new connection... [09:21:38] Sock 9.Parse request [09:21:38]Sock 9.Check first char [09:21:38]Sock 9.First char is OK [09:21:38]request: POST /json_proto HTTP/1.0 [09:21:38]Method: POST [09:21:38]URL: /json_proto [09:21:38]Method is POST - this is cgi request [09:21:38]url: /json_proto [09:21:38]query_string will be loaded in cgi processing [09:21:38]execute_cgi json_proto POST (null) [09:21:38]execute_cgi path=json_proto method=POST [09:21:38]POST find Content-Length [09:21:38]Host: 172.17.50.3:8080 [09:21:38]Content-Length: 683 [09:21:38]Content-Type: application/json [09:21:38] [09:21:38]POST finish read [09:21:38]Found Content-Length = 683 [09:21:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:38]execute_script... [09:21: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)2884942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:38]POST & json_proto [09:21:38]process_json_proto [09:21:38]json parsed OK: [09:21:38]protocol is kg_v1.0 [09:21:38]action value=close_receipt [09:21:38]process_action close_receipt [09:21:38]cmd_close_receipt [09:21:38]MH_GetDate [09:21:38]Write to MH i2c: F0 00 00 26 BA CF [09:21:38]Write i2c OK [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: F0 [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: F0 09 00 [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: F0 09 00 26 BA 00 AC CB 14 67 6B 98 1E 66 51 [09:21:38]GetLastDocTimeStamp 1729416059 [09:21:38]current date 1729416108 [09:21:38]FM_GetShiftState [09:21:38]SAM_PROTO_GetShiftState [09:21:38]wFMCommunicate request_size=4 [09:21:38]MH_SAM_APDU [09:21:38]CAPDU: 80 13 01 00 [09:21:38]Write to MH i2c: E2 08 00 27 BA 80 13 01 00 00 00 00 00 5E [09:21:38]Write i2c OK [09:21:38]MH_I2C_Read... [09:21:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:38]Read from MH i2c: E2 [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: E2 0E 00 [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: E2 0E 00 27 BA 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 64 [09:21:38]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:21:38]wFMCommunicate OK [09:21:38]SAM_PROTO_GetShiftState done [09:21:38]FM_GetShiftState done [09:21:38]opened in 1729383220 [09:21:38]opened+sec_in_day 1729469620 [09:21:38]quantity*price = 100015 [09:21:38]sum+1 = 100017 [09:21:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 73 20.10.2024 09:21 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69228 ФПД: 209746368275419 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092148&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69228&fm=209746368275419&tin=02508201610067®Number=0000000000156251&sum=100000 [09:21:39]StoreToDocumentArchive [09:21:39]shift 193 fd 69228 [09:21:39]save to /storage/0193/doc_00069228 [09:21:39]save last doc name /storage/0193/doc_00069228 to /storage/kkm_last_doc_name [09:21:39]save OK [09:21:39]Clear old archive folders... [09:21:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:21:39]tlvbuf is 00478CD0 [09:21:39]SAM_PROTO_ClearQueue [09:21:39]wFMCommunicate request_size=4 [09:21:39]MH_SAM_APDU [09:21:39]CAPDU: 80 09 00 00 [09:21:39]Write to MH i2c: E2 08 00 34 BA 80 09 00 00 00 00 00 00 60 [09:21:39]Write i2c OK [09:21:39]MH_I2C_Read... [09:21:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:21:39]Read from MH i2c: E2 [09:21:39]MH_I2C_Read... [09:21:39]Read from MH i2c: E2 03 00 [09:21:39]MH_I2C_Read... [09:21:39]Read from MH i2c: E2 03 00 34 BA 00 90 00 62 [09:21:39]RAPDU: 90 00 [09:21:39]wFMCommunicate OK [09:21:39]SAM_PROTO_ClearQueue done [09:21:39]KKMCreateOFDPacket [09:21:39]OFDProtocolAddRootSTLVToBuf [09:21:39]FM_MakeSignedData [09:21:39]FM_MakeSignedData [09:21:39]SAM_PROTO_SignData [09:21:39]wFMCommunicate request_size=4 [09:21:39]MH_SAM_APDU [09:21:39]CAPDU: 80 0D 01 02 [09:21:39]Write to MH i2c: E2 08 00 35 BA 80 0D 01 02 00 00 00 00 68 [09:21:39]Write i2c OK [09:21:39]MH_I2C_Read... [09:21:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:21:39]Read from MH i2c: E2 [09:21:39]MH_I2C_Read... [09:21:39]Read from MH i2c: E2 03 00 [09:21:39]MH_I2C_Read... [09:21:39]Read from MH i2c: E2 03 00 35 BA 00 90 00 63 [09:21:39]RAPDU: 90 00 [09:21:39]wFMCommunicate OK [09:21:39]wFMCommunicate request_size=255 [09:21:39]MH_SAM_APDU [09:21:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 AC CB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6C 0E 01 00 35 04 06 00 BE [09:21:39]Write to MH i2c: E2 02 01 36 BA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 AC CB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6C 0E 01 00 35 04 06 00 BE 00 00 20 [09:21:39]Write i2c OK [09:21:39]MH_I2C_Read... [09:21:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:40]Read from MH i2c: E2 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: E2 03 00 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: E2 03 00 36 BA 00 90 00 64 [09:21:40]RAPDU: 90 00 [09:21:40]wFMCommunicate OK [09:21:40]wFMCommunicate request_size=10 [09:21:40]MH_SAM_APDU [09:21:40]CAPDU: 80 0D 02 02 05 C3 61 C6 23 DB [09:21:40]Write to MH i2c: E2 0D 00 37 BA 80 0D 02 02 05 00 C3 61 C6 23 DB 00 00 5D [09:21:40]Write i2c OK [09:21:40]MH_I2C_Read... [09:21:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:40]Read from MH i2c: E2 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: E2 03 00 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: E2 03 00 37 BA 00 90 00 65 [09:21:40]RAPDU: 90 00 [09:21:40]wFMCommunicate OK [09:21:40]wFMCommunicate request_size=4 [09:21:40]MH_SAM_APDU [09:21:40]CAPDU: 80 0D 03 02 [09:21:40]Write to MH i2c: E2 08 00 38 BA 80 0D 03 02 00 00 00 00 6D [09:21:40]Write i2c OK [09:21:40]MH_I2C_Read... [09:21:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:21:40]Read from MH i2c: E2 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: E2 0B 00 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: E2 0B 00 38 BA 00 F9 70 F8 A3 96 8E 73 1C 90 00 25 [09:21:40]RAPDU: F9 70 F8 A3 96 8E 73 1C 90 00 [09:21:40]wFMCommunicate OK [09:21:40]SAM_PROTO_SignData done [09:21:40]FM_MakeSignedData done [09:21:40]CreateOFDProtocolMessage [09:21:40]wFMCommunicate request_size=4 [09:21:40]MH_SAM_APDU [09:21:40]CAPDU: 80 11 00 00 [09:21:40]Write to MH i2c: E2 08 00 39 BA 80 11 00 00 00 00 00 00 6D [09:21:40]Write i2c OK [09:21:40]MH_I2C_Read... [09:21:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:40]Read from MH i2c: E2 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: E2 17 00 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: E2 17 00 39 BA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BF [09:21:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:21:40]wFMCommunicate OK [09:21:40]CreateOFDProtocolMessage done [09:21:40]OFDSenderStorePacket 69228 [09:21:40]StoreOFDPacket docnum=69228 [09:21:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 4E 19 07 01 81 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 AC CB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6C 0E 01 00 35 04 06 00 BE C3 61 C6 23 DB F9 70 F8 A3 96 8E 73 1C [09:21:40]CheckFolder [09:21:40]dirname=/storage/ofd_packets [09:21:40]CheckFolder done [09:21:40]ProducePacketName [09:21:40]name=ofd_packets/00069228 [09:21:40]NVStorageSaveData ofd_packets/00069228 [09:21:40]File name is /storage/ofd_packets/00069228 [09:21:40]Write 301 bytes [09:21:40]NVStorageSaveData done [09:21:40]OFDSenderStorePacket done [09:21:40]KKMCreateOFDPacket done [09:21:40]NVStorageSaveData kkm_last_timestamp [09:21:40]File name is /storage/kkm_last_timestamp [09:21:40]Write 4 bytes [09:21:40]NVStorageSaveData done [09:21:40]ExternCall_PrintAddStr [09:21:40]wPrintStart [09:21:40]Write to MH i2c: 01 00 00 3A BA F4 [09:21:40]Write i2c OK [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: 01 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: 01 07 00 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: 01 07 00 3A BA 00 00 00 00 00 FF 0F 09 [09:21:40]RasterBufferAndPrint [09:21:40]line Счет N : (1)2884942 [09:21:40]line ИНН: 02508201610067 [09:21:40]line Контрольно-Кассовый Чек [09:21:40]line ПРОДАЖА [09:21:40]line ТРК (МРК, ГНК) : 12 [09:21:40]line Товар: 2710124130 [09:21:40]line Аи-92-К-5 [09:21:40]line 14.950 * 66.90 [09:21:40]line = 1000.16 [09:21:40]line НДС 12% НСП 1% [09:21:40]line > о реализуемом товаре [09:21:40]line ОКРУГЛЕНИЕ: -0.16 [09:21:40]line ИТОГО: 1000.00 [09:21:40]line Внесено: 1000.00 [09:21:40]line СДАЧА: 0.00 [09:21:40]line НСП 1% : 8.85 [09:21:40]line НДС 12% : 106.21 [09:21:40]line Наличными: 1000.00 [09:21:40]line Безнал.: 0.00 [09:21:40]line Место: АЗС № 85 "Партнер Нефть" [09:21:40]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:21:40]line СНО: Общий режим [09:21:40]line Чек 73 20.10.2024 09:21 [09:21:40]line Смена: 193 ФФД: 1.0 [09:21:40]line ЗНМ: 0300000167 [09:21:40]line РНМ: 0000000000156251 [09:21:40]line Версия ККМ: v1.0 [09:21:40]line ФМ: 0000000000963346 [09:21:40]line ФД: 69228 [09:21:40]line ФПД: 209746368275419 [09:21:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092148&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69228&fm=209746368275419&tin=02508201610067®Number=0000000000156251&sum=100000 [09:21:40]OFD Sender: Processing packet 69228 [packets to send 18, broken 17] [09:21:40]ProducePacketName [09:21:40]name=ofd_packets/00069228 [09:21:40]OFD Sender: To server: pG, [09:21:40]CommunicateWithHost lk.salyk.kg:30040 [09:21:40]ConnectInit lk.salyk.kg [09:21:40]written 0, free lines is 4095 [09:21:40]Connected sock=10 [09:21:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 4E 19 07 01 81 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 AC CB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6C 0E 01 00 35 04 06 00 BE C3 61 C6 23 DB F9 70 F8 A3 96 8E 73 1C [09:21:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 5A C4 47 00 E3 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6C 0E 01 00 F4 03 04 00 53 75 14 67 B6 04 01 00 00 A9 FC 44 6C 45 18 A3 62 [09:21:41]CommunicateWithHost err = 0 [09:21:41]CheckOFDResponse [09:21:41]1017 (14) - 77093643461234 [09:21:41]1041 (16) - 0000000000963346 [09:21:41]1040 (4) - 69228 [09:21:41]1012 (4) - 20.10.2024 03:13 [09:21:41]1206 (1) - 0 [09:21:41]OFD Sender: Remove packet 69228 [09:21:41]ProducePacketName [09:21:41]name=ofd_packets/00069228 [09:21:41]NVStorageDeleteData [09:21:41]Write to MH i2c: 01 00 00 65 BA 1F [09:21:41]Write i2c OK [09:21:41]MH_I2C_Read... [09:21:41]Read from MH i2c: 01 [09:21:41]MH_I2C_Read... [09:21:41]Read from MH i2c: 01 07 00 [09:21:41]MH_I2C_Read... [09:21:41]Read from MH i2c: 01 07 00 65 BA 00 00 00 00 00 F2 0C 24 [09:21:41]RasterBufferAndPrint [09:21:41]line [09:21:41]line [09:21:41]line [09:21:41]line [09:21:41]line [09:21:41]written 0, free lines is 3320 [09:21:41]MH_Cut [09:21:41]Write to MH i2c: D1 01 00 6C BA 01 F8 [09:21:41]Write i2c OK [09:21:41]MH_I2C_Read... [09:21:41]Read from MH i2c: D1 [09:21:41]MH_I2C_Read... [09:21:41]Read from MH i2c: D1 01 00 [09:21:41]MH_I2C_Read... [09:21:41]Read from MH i2c: D1 01 00 6C BA 00 F7 [09:21:41]Write to MH i2c: 01 00 00 6D BA 27 [09:21:41]Write i2c OK [09:21:41]MH_I2C_Read... [09:21:41]OFD Sender: No OFD packet to send [09:21:41]*** Cut start [09:21:41]*** Partial cut [09:21:41]*** CUTSNS_PIN = 1 [09:21:41]*** CUTSNS_PIN = 0 [09:21:42]*** Brake cut motor [09:21:42]Read from MH i2c: 01 [09:21:42]MH_I2C_Read... [09:21:42]*** Stop cut motor [09:21:42]*** Cut end [09:21:42]Read from MH i2c: 01 07 00 [09:21:42]MH_I2C_Read... [09:21:42]Read from MH i2c: 01 07 00 6D BA 00 00 00 00 00 FF 0F 3C [09:21:42]process_action close_receipt done [09:21:42]requested_data is exist [09:21:42]produce_requested_data [09:21:42]requested_item fm.sn is exist - process it [09:21:42]wFMCommunicate request_size=4 [09:21:42]MH_SAM_APDU [09:21:42]CAPDU: 80 11 00 00 [09:21:42]Write to MH i2c: E2 08 00 6E BA 80 11 00 00 00 00 00 00 A2 [09:21:42]Write i2c OK [09:21:42]MH_I2C_Read... [09:21:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:42]Read from MH i2c: E2 [09:21:42]MH_I2C_Read... [09:21:42]Read from MH i2c: E2 17 00 [09:21:42]MH_I2C_Read... [09:21:42]Read from MH i2c: E2 17 00 6E BA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F4 [09:21:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:21:42]wFMCommunicate OK [09:21:42]requested_item fd.num is exist - process it [09:21:42]SAM_PROTO_GetFieldsCounters [09:21:42]wFMCommunicate request_size=4 [09:21:42]MH_SAM_APDU [09:21:42]CAPDU: 80 13 00 00 [09:21:42]Write to MH i2c: E2 08 00 6F BA 80 13 00 00 00 00 00 00 A5 [09:21:42]Write i2c OK [09:21:42]MH_I2C_Read... [09:21:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:21:42]Read from MH i2c: E2 [09:21:42]MH_I2C_Read... [09:21:42]Read from MH i2c: E2 62 00 [09:21:42]MH_I2C_Read... [09:21:42]Read from MH i2c: E2 62 00 6F BA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6C 0E 01 00 0E 04 04 00 C1 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 D7 [09:21:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6C 0E 01 00 0E 04 04 00 C1 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 [09:21:42]wFMCommunicate OK [09:21:42]SAM_PROTO_GetFieldsCounters done [09:21:42]requested_item shift.num is exist - process it [09:21:42]requested_item shift.opened is exist - process it [09:21:42]req_shift_opened [09:21:42]FM_GetShiftState [09:21:42]SAM_PROTO_GetShiftState [09:21:42]wFMCommunicate request_size=4 [09:21:42]MH_SAM_APDU [09:21:42]CAPDU: 80 13 01 00 [09:21:42]Write to MH i2c: E2 08 00 70 BA 80 13 01 00 00 00 00 00 A7 [09:21:42]Write i2c OK [09:21:42]MH_I2C_Read... [09:21:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:42]Read from MH i2c: E2 [09:21:42]MH_I2C_Read... [09:21:42]Read from MH i2c: E2 0E 00 [09:21:42]MH_I2C_Read... [09:21:42]Read from MH i2c: E2 0E 00 70 BA 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 AD [09:21:42]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:21:42]wFMCommunicate OK [09:21:42]SAM_PROTO_GetShiftState done [09:21:42]FM_GetShiftState done [09:21:42]req_shift_opened done [09:21:42]requested_item shift.open_date is exist - process it [09:21:42]req_shift_open_date [09:21:42]req_shift_open_date done [09:21:42]produce_requested_data done [09:21:42]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69228,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [09:21:42]process_action_free close_receipt [09:21:42]json_value_free [09:21:42]json_value_free done [09:21:42]process_json_proto returns [09:21:42]Send response to host [09:21:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69228,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [09:21:42]free response buf [09:21:42]execute_script done [09:21:42]execute_script returns [09:21:42]free content buf [09:21:42]Sock 9.Close socket [09:21:42]Sock 9.Thread stoped [09:21:46]OFD Sender: No OFD packet to send [09:21:51]OFD Sender: No OFD packet to send [09:21:56]OFD Sender: No OFD packet to send [09:22:01]OFD Sender: No OFD packet to send [09:22:06]OFD Sender: No OFD packet to send [09:22:11]OFD Sender: No OFD packet to send [09:22:16]OFD Sender: No OFD packet to send [09:22:21]OFD Sender: No OFD packet to send [09:22:26]OFD Sender: No OFD packet to send [09:22:31]OFD Sender: No OFD packet to send [09:22:36]OFD Sender: No OFD packet to send [09:22:41]OFD Sender: No OFD packet to send [09:22:46]OFD Sender: No OFD packet to send [09:22:51]OFD Sender: No OFD packet to send [09:22:56]OFD Sender: No OFD packet to send [09:23:01]OFD Sender: No OFD packet to send [09:23:06]OFD Sender: No OFD packet to send [09:23:11]OFD Sender: No OFD packet to send [09:23:16]OFD Sender: No OFD packet to send [09:23:21]OFD Sender: No OFD packet to send [09:23:26]OFD Sender: No OFD packet to send [09:23:31]OFD Sender: No OFD packet to send [09:23:36]OFD Sender: No OFD packet to send [09:23:41]OFD Sender: No OFD packet to send [09:23:46]OFD Sender: No OFD packet to send [09:23:51]OFD Sender: No OFD packet to send [09:23:56]OFD Sender: No OFD packet to send [09:24:01]OFD Sender: No OFD packet to send [09:24:06]OFD Sender: No OFD packet to send [09:24:11]OFD Sender: No OFD packet to send [09:24:16]OFD Sender: No OFD packet to send [09:24:21]accept exits with 8 [09:24:21]New connection [09:24:21]New thread 3067260260 created [09:24:21]Thread 3067116900 joined [09:24:21]Waiting for new connection... [09:24:21] Sock 8.Parse request [09:24:21]Sock 8.Check first char [09:24:21]Sock 8.First char is OK [09:24:21]request: POST /json_proto HTTP/1.0 [09:24:21]Method: POST [09:24:21]URL: /json_proto [09:24:21]Method is POST - this is cgi request [09:24:21]url: /json_proto [09:24:21]query_string will be loaded in cgi processing [09:24:21]execute_cgi json_proto POST (null) [09:24:21]execute_cgi path=json_proto method=POST [09:24:21]POST find Content-Length [09:24:21]Host: 172.17.50.3:8080 [09:24:21]Content-Length: 678 [09:24:21]Content-Type: application/json [09:24:21] [09:24:21]POST finish read [09:24:21]Found Content-Length = 678 [09:24:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:21]execute_script... [09:24:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:21]POST & json_proto [09:24:21]process_json_proto [09:24:21]json parsed OK: [09:24:21]protocol is kg_v1.0 [09:24:21]action value=close_receipt [09:24:21]process_action close_receipt [09:24:21]cmd_close_receipt [09:24:21]MH_GetDate [09:24:21]Write to MH i2c: F0 00 00 71 BA 1A [09:24:21]Write i2c OK [09:24:21]MH_I2C_Read... [09:24:21]Read from MH i2c: F0 [09:24:21]MH_I2C_Read... [09:24:21]Read from MH i2c: F0 09 00 [09:24:21]MH_I2C_Read... [09:24:21]Read from MH i2c: F0 09 00 71 BA 00 4E CC 14 67 6B 98 1E 66 3F [09:24:21]GetLastDocTimeStamp 1729416108 [09:24:21]current date 1729416270 [09:24:21]FM_GetShiftState [09:24:21]SAM_PROTO_GetShiftState [09:24:21]wFMCommunicate request_size=4 [09:24:21]MH_SAM_APDU [09:24:21]CAPDU: 80 13 01 00 [09:24:21]Write to MH i2c: E2 08 00 72 BA 80 13 01 00 00 00 00 00 A9 [09:24:21]Write i2c OK [09:24:21]MH_I2C_Read... [09:24:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:21]Read from MH i2c: E2 [09:24:21]MH_I2C_Read... [09:24:21]Read from MH i2c: E2 0E 00 [09:24:21]MH_I2C_Read... [09:24:21]Read from MH i2c: E2 0E 00 72 BA 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 AF [09:24:21]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:24:21]wFMCommunicate OK [09:24:21]SAM_PROTO_GetShiftState done [09:24:21]FM_GetShiftState done [09:24:21]opened in 1729383220 [09:24:21]opened+sec_in_day 1729469620 [09:24:21]quantity*price = 30038 [09:24:21]sum+1 = 30039 [09:24:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 74 20.10.2024 09:24 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69229 ФПД: 124634935806988 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092430&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69229&fm=124634935806988&tin=02508201610067®Number=0000000000156251&sum=30000 [09:24:22]StoreToDocumentArchive [09:24:22]shift 193 fd 69229 [09:24:22]save to /storage/0193/doc_00069229 [09:24:22]save last doc name /storage/0193/doc_00069229 to /storage/kkm_last_doc_name [09:24:22]save OK [09:24:22]Clear old archive folders... [09:24:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:24:22]tlvbuf is 0079E840 [09:24:22]SAM_PROTO_ClearQueue [09:24:22]wFMCommunicate request_size=4 [09:24:22]MH_SAM_APDU [09:24:22]CAPDU: 80 09 00 00 [09:24:22]Write to MH i2c: E2 08 00 7F BA 80 09 00 00 00 00 00 00 AB [09:24:22]Write i2c OK [09:24:22]MH_I2C_Read... [09:24:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:24:22]Read from MH i2c: E2 [09:24:22]MH_I2C_Read... [09:24:22]Read from MH i2c: E2 03 00 [09:24:22]MH_I2C_Read... [09:24:22]Read from MH i2c: E2 03 00 7F BA 00 90 00 AD [09:24:22]RAPDU: 90 00 [09:24:22]wFMCommunicate OK [09:24:22]SAM_PROTO_ClearQueue done [09:24:22]KKMCreateOFDPacket [09:24:22]OFDProtocolAddRootSTLVToBuf [09:24:22]FM_MakeSignedData [09:24:22]FM_MakeSignedData [09:24:22]SAM_PROTO_SignData [09:24:22]wFMCommunicate request_size=4 [09:24:22]MH_SAM_APDU [09:24:22]CAPDU: 80 0D 01 02 [09:24:22]Write to MH i2c: E2 08 00 80 BA 80 0D 01 02 00 00 00 00 B3 [09:24:22]Write i2c OK [09:24:22]MH_I2C_Read... [09:24:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:24:22]Read from MH i2c: E2 [09:24:22]MH_I2C_Read... [09:24:22]Read from MH i2c: E2 03 00 [09:24:22]MH_I2C_Read... [09:24:22]Read from MH i2c: E2 03 00 80 BA 00 90 00 AE [09:24:22]RAPDU: 90 00 [09:24:22]wFMCommunicate OK [09:24:22]wFMCommunicate request_size=255 [09:24:22]MH_SAM_APDU [09:24:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 4E CC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6D 0E 01 00 35 04 06 00 71 [09:24:22]Write to MH i2c: E2 02 01 81 BA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 4E CC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6D 0E 01 00 35 04 06 00 71 00 00 BD [09:24:22]Write i2c OK [09:24:22]MH_I2C_Read... [09:24:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:22]Read from MH i2c: E2 [09:24:22]MH_I2C_Read... [09:24:22]Read from MH i2c: E2 03 00 [09:24:22]MH_I2C_Read... [09:24:22]Read from MH i2c: E2 03 00 81 BA 00 90 00 AF [09:24:22]RAPDU: 90 00 [09:24:22]wFMCommunicate OK [09:24:22]wFMCommunicate request_size=10 [09:24:22]MH_SAM_APDU [09:24:22]CAPDU: 80 0D 02 02 05 5A D5 13 4C 0C [09:24:22]Write to MH i2c: E2 0D 00 82 BA 80 0D 02 02 05 00 5A D5 13 4C 0C 00 00 5A [09:24:22]Write i2c OK [09:24:22]MH_I2C_Read... [09:24:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:22]Read from MH i2c: E2 [09:24:22]MH_I2C_Read... [09:24:22]Read from MH i2c: E2 03 00 [09:24:22]MH_I2C_Read... [09:24:22]Read from MH i2c: E2 03 00 82 BA 00 90 00 B0 [09:24:22]RAPDU: 90 00 [09:24:22]wFMCommunicate OK [09:24:22]wFMCommunicate request_size=4 [09:24:22]MH_SAM_APDU [09:24:22]CAPDU: 80 0D 03 02 [09:24:22]Write to MH i2c: E2 08 00 83 BA 80 0D 03 02 00 00 00 00 B8 [09:24:22]Write i2c OK [09:24:22]MH_I2C_Read... [09:24:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:24:22]Read from MH i2c: E2 [09:24:22]MH_I2C_Read... [09:24:22]Read from MH i2c: E2 0B 00 [09:24:22]MH_I2C_Read... [09:24:22]Read from MH i2c: E2 0B 00 83 BA 00 AA 96 6A F8 B6 57 8C 71 90 00 65 [09:24:22]RAPDU: AA 96 6A F8 B6 57 8C 71 90 00 [09:24:22]wFMCommunicate OK [09:24:22]SAM_PROTO_SignData done [09:24:22]FM_MakeSignedData done [09:24:22]CreateOFDProtocolMessage [09:24:22]wFMCommunicate request_size=4 [09:24:22]MH_SAM_APDU [09:24:22]CAPDU: 80 11 00 00 [09:24:22]Write to MH i2c: E2 08 00 84 BA 80 11 00 00 00 00 00 00 B8 [09:24:22]Write i2c OK [09:24:22]MH_I2C_Read... [09:24:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:23]Read from MH i2c: E2 [09:24:23]MH_I2C_Read... [09:24:23]Read from MH i2c: E2 17 00 [09:24:23]MH_I2C_Read... [09:24:23]Read from MH i2c: E2 17 00 84 BA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0A [09:24:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:24:23]wFMCommunicate OK [09:24:23]CreateOFDProtocolMessage done [09:24:23]OFDSenderStorePacket 69229 [09:24:23]StoreOFDPacket docnum=69229 [09:24:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 87 16 07 01 E3 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 4E CC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6D 0E 01 00 35 04 06 00 71 5A D5 13 4C 0C AA 96 6A F8 B6 57 8C 71 [09:24:23]CheckFolder [09:24:23]dirname=/storage/ofd_packets [09:24:23]CheckFolder done [09:24:23]ProducePacketName [09:24:23]name=ofd_packets/00069229 [09:24:23]NVStorageSaveData ofd_packets/00069229 [09:24:23]File name is /storage/ofd_packets/00069229 [09:24:23]Write 301 bytes [09:24:23]NVStorageSaveData done [09:24:23]OFDSenderStorePacket done [09:24:23]KKMCreateOFDPacket done [09:24:23]NVStorageSaveData kkm_last_timestamp [09:24:23]File name is /storage/kkm_last_timestamp [09:24:23]Write 4 bytes [09:24:23]NVStorageSaveData done [09:24:23]ExternCall_PrintAddStr [09:24:23]wPrintStart [09:24:23]Write to MH i2c: 01 00 00 85 BA 3F [09:24:23]Write i2c OK [09:24:23]MH_I2C_Read... [09:24:23]Read from MH i2c: 01 [09:24:23]MH_I2C_Read... [09:24:23]Read from MH i2c: 01 07 00 [09:24:23]MH_I2C_Read... [09:24:23]Read from MH i2c: 01 07 00 85 BA 00 00 00 00 00 FF 0F 54 [09:24:23]RasterBufferAndPrint [09:24:23]line Счет N : (1)2884943 [09:24:23]line ИНН: 02508201610067 [09:24:23]line Контрольно-Кассовый Чек [09:24:23]line ПРОДАЖА [09:24:23]line ТРК (МРК, ГНК) : 22 [09:24:23]line Товар: 2710124130 [09:24:23]line Аи-92-К-5 [09:24:23]line 4.490 * 66.90 [09:24:23]line = 300.38 [09:24:23]line НДС 12% НСП 1% [09:24:23]line > о реализуемом товаре [09:24:23]line ОКРУГЛЕНИЕ: -0.38 [09:24:23]line ИТОГО: 300.00 [09:24:23]line Внесено: 300.00 [09:24:23]line СДАЧА: 0.00 [09:24:23]line НСП 1% : 2.66 [09:24:23]line НДС 12% : 31.90 [09:24:23]line Наличными: 300.00 [09:24:23]line Безнал.: 0.00 [09:24:23]line Место: АЗС № 85 "Партнер Нефть" [09:24:23]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:24:23]line СНО: Общий режим [09:24:23]line Чек 74 20.10.2024 09:24 [09:24:23]line Смена: 193 ФФД: 1.0 [09:24:23]line ЗНМ: 0300000167 [09:24:23]line РНМ: 0000000000156251 [09:24:23]line Версия ККМ: v1.0 [09:24:23]line ФМ: 0000000000963346 [09:24:23]line ФД: 69229 [09:24:23]line ФПД: 124634935806988 [09:24:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092430&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69229&fm=124634935806988&tin=02508201610067®Number=0000000000156251&sum=30000 [09:24:23]OFD Sender: Processing packet 69229 [packets to send 18, broken 17] [09:24:23]ProducePacketName [09:24:23]name=ofd_packets/00069229 [09:24:23]OFD Sender: To server: pG, [09:24:23]CommunicateWithHost lk.salyk.kg:30040 [09:24:23]ConnectInit lk.salyk.kg [09:24:23]written 0, free lines is 4095 [09:24:23]Connected sock=9 [09:24:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 87 16 07 01 E3 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 4E CC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6D 0E 01 00 35 04 06 00 71 5A D5 13 4C 0C AA 96 6A F8 B6 57 8C 71 [09:24:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 49 0F 47 00 83 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6D 0E 01 00 F4 03 04 00 F6 75 14 67 B6 04 01 00 00 C0 A0 42 BC 61 A4 00 57 [09:24:23]CommunicateWithHost err = 0 [09:24:23]CheckOFDResponse [09:24:23]1017 (14) - 77093643461234 [09:24:23]1041 (16) - 0000000000963346 [09:24:23]1040 (4) - 69229 [09:24:23]1012 (4) - 20.10.2024 03:16 [09:24:23]1206 (1) - 0 [09:24:23]OFD Sender: Remove packet 69229 [09:24:23]ProducePacketName [09:24:23]name=ofd_packets/00069229 [09:24:23]NVStorageDeleteData [09:24:23]Write to MH i2c: 01 00 00 B0 BA 6A [09:24:23]Write i2c OK [09:24:23]MH_I2C_Read... [09:24:23]Read from MH i2c: 01 [09:24:23]MH_I2C_Read... [09:24:23]Read from MH i2c: 01 07 00 [09:24:23]MH_I2C_Read... [09:24:23]Read from MH i2c: 01 07 00 B0 BA 00 00 00 00 00 08 0D 86 [09:24:23]RasterBufferAndPrint [09:24:23]line [09:24:23]line [09:24:23]line [09:24:23]line [09:24:23]line [09:24:23]written 0, free lines is 3342 [09:24:23]MH_Cut [09:24:23]Write to MH i2c: D1 01 00 B7 BA 01 43 [09:24:23]Write i2c OK [09:24:23]MH_I2C_Read... [09:24:23]Read from MH i2c: D1 [09:24:23]MH_I2C_Read... [09:24:23]Read from MH i2c: D1 01 00 [09:24:23]MH_I2C_Read... [09:24:23]Read from MH i2c: D1 01 00 B7 BA 00 42 [09:24:23]Write to MH i2c: 01 00 00 B8 BA 72 [09:24:23]Write i2c OK [09:24:23]MH_I2C_Read... [09:24:24]OFD Sender: No OFD packet to send [09:24:24]*** Cut start [09:24:24]*** Partial cut [09:24:24]*** CUTSNS_PIN = 1 [09:24:24]*** CUTSNS_PIN = 0 [09:24:24]*** Brake cut motor [09:24:25]Read from MH i2c: 01 [09:24:25]MH_I2C_Read... [09:24:25]*** Stop cut motor [09:24:25]*** Cut end [09:24:25]Read from MH i2c: 01 07 00 [09:24:25]MH_I2C_Read... [09:24:25]Read from MH i2c: 01 07 00 B8 BA 00 00 00 00 00 FF 0F 87 [09:24:25]process_action close_receipt done [09:24:25]requested_data is exist [09:24:25]produce_requested_data [09:24:25]requested_item fm.sn is exist - process it [09:24:25]wFMCommunicate request_size=4 [09:24:25]MH_SAM_APDU [09:24:25]CAPDU: 80 11 00 00 [09:24:25]Write to MH i2c: E2 08 00 B9 BA 80 11 00 00 00 00 00 00 ED [09:24:25]Write i2c OK [09:24:25]MH_I2C_Read... [09:24:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:25]Read from MH i2c: E2 [09:24:25]MH_I2C_Read... [09:24:25]Read from MH i2c: E2 17 00 [09:24:25]MH_I2C_Read... [09:24:25]Read from MH i2c: E2 17 00 B9 BA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3F [09:24:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:24:25]wFMCommunicate OK [09:24:25]requested_item fd.num is exist - process it [09:24:25]SAM_PROTO_GetFieldsCounters [09:24:25]wFMCommunicate request_size=4 [09:24:25]MH_SAM_APDU [09:24:25]CAPDU: 80 13 00 00 [09:24:25]Write to MH i2c: E2 08 00 BA BA 80 13 00 00 00 00 00 00 F0 [09:24:25]Write i2c OK [09:24:25]MH_I2C_Read... [09:24:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:24:25]Read from MH i2c: E2 [09:24:25]MH_I2C_Read... [09:24:25]Read from MH i2c: E2 62 00 [09:24:25]MH_I2C_Read... [09:24:25]Read from MH i2c: E2 62 00 BA BA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6D 0E 01 00 0E 04 04 00 C1 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 26 [09:24:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6D 0E 01 00 0E 04 04 00 C1 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 [09:24:25]wFMCommunicate OK [09:24:25]SAM_PROTO_GetFieldsCounters done [09:24:25]requested_item shift.num is exist - process it [09:24:25]requested_item shift.opened is exist - process it [09:24:25]req_shift_opened [09:24:25]FM_GetShiftState [09:24:25]SAM_PROTO_GetShiftState [09:24:25]wFMCommunicate request_size=4 [09:24:25]MH_SAM_APDU [09:24:25]CAPDU: 80 13 01 00 [09:24:25]Write to MH i2c: E2 08 00 BB BA 80 13 01 00 00 00 00 00 F2 [09:24:25]Write i2c OK [09:24:25]MH_I2C_Read... [09:24:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:25]Read from MH i2c: E2 [09:24:25]MH_I2C_Read... [09:24:25]Read from MH i2c: E2 0E 00 [09:24:25]MH_I2C_Read... [09:24:25]Read from MH i2c: E2 0E 00 BB BA 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 F8 [09:24:25]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:24:25]wFMCommunicate OK [09:24:25]SAM_PROTO_GetShiftState done [09:24:25]FM_GetShiftState done [09:24:25]req_shift_opened done [09:24:25]requested_item shift.open_date is exist - process it [09:24:25]req_shift_open_date [09:24:25]req_shift_open_date done [09:24:25]produce_requested_data done [09:24:25]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69229,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [09:24:25]process_action_free close_receipt [09:24:25]json_value_free [09:24:25]json_value_free done [09:24:25]process_json_proto returns [09:24:25]Send response to host [09:24:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69229,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [09:24:25]free response buf [09:24:25]execute_script done [09:24:25]execute_script returns [09:24:25]free content buf [09:24:25]Sock 8.Close socket [09:24:25]Sock 8.Thread stoped [09:24:29]OFD Sender: No OFD packet to send [09:24:34]OFD Sender: No OFD packet to send [09:24:39]OFD Sender: No OFD packet to send [09:24:44]OFD Sender: No OFD packet to send [09:24:49]OFD Sender: No OFD packet to send [09:24:54]OFD Sender: No OFD packet to send [09:24:59]OFD Sender: No OFD packet to send [09:25:04]OFD Sender: No OFD packet to send [09:25:09]OFD Sender: No OFD packet to send [09:25:14]OFD Sender: No OFD packet to send [09:25:19]OFD Sender: No OFD packet to send [09:25:24]OFD Sender: No OFD packet to send [09:25:29]OFD Sender: No OFD packet to send [09:25:34]OFD Sender: No OFD packet to send [09:25:39]OFD Sender: No OFD packet to send [09:25:44]OFD Sender: No OFD packet to send [09:25:49]OFD Sender: No OFD packet to send [09:25:54]OFD Sender: No OFD packet to send [09:25:59]OFD Sender: No OFD packet to send [09:26:04]OFD Sender: No OFD packet to send [09:26:09]OFD Sender: No OFD packet to send [09:26:14]OFD Sender: No OFD packet to send [09:26:19]OFD Sender: No OFD packet to send [09:26:24]OFD Sender: No OFD packet to send [09:26:29]OFD Sender: No OFD packet to send [09:26:34]OFD Sender: No OFD packet to send [09:26:39]OFD Sender: No OFD packet to send [09:26:44]OFD Sender: No OFD packet to send [09:26:49]OFD Sender: No OFD packet to send [09:26:54]OFD Sender: No OFD packet to send [09:26:59]OFD Sender: No OFD packet to send [09:27:04]OFD Sender: No OFD packet to send [09:27:07]accept exits with 10 [09:27:07]New connection [09:27:07]New thread 3067116900 created [09:27:07]Thread 3067260260 joined [09:27:07]Waiting for new connection... [09:27:07] Sock 10.Parse request [09:27:07]Sock 10.Check first char [09:27:07]Sock 10.First char is OK [09:27:07]request: POST /json_proto HTTP/1.0 [09:27:07]Method: POST [09:27:07]URL: /json_proto [09:27:07]Method is POST - this is cgi request [09:27:07]url: /json_proto [09:27:07]query_string will be loaded in cgi processing [09:27:07]execute_cgi json_proto POST (null) [09:27:07]execute_cgi path=json_proto method=POST [09:27:07]POST find Content-Length [09:27:07]Host: 172.17.50.3:8080 [09:27:07]Content-Length: 683 [09:27:07]Content-Type: application/json [09:27:07] [09:27:07]POST finish read [09:27:07]Found Content-Length = 683 [09:27:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:07]execute_script... [09:27:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:07]POST & json_proto [09:27:07]process_json_proto [09:27:07]json parsed OK: [09:27:07]protocol is kg_v1.0 [09:27:07]action value=close_receipt [09:27:07]process_action close_receipt [09:27:07]cmd_close_receipt [09:27:07]MH_GetDate [09:27:07]Write to MH i2c: F0 00 00 BC BA 65 [09:27:07]Write i2c OK [09:27:07]MH_I2C_Read... [09:27:07]Read from MH i2c: F0 [09:27:07]MH_I2C_Read... [09:27:07]Read from MH i2c: F0 09 00 [09:27:07]MH_I2C_Read... [09:27:07]Read from MH i2c: F0 09 00 BC BA 00 F4 CC 14 67 6B 98 1E 66 30 [09:27:07]GetLastDocTimeStamp 1729416270 [09:27:07]current date 1729416436 [09:27:07]FM_GetShiftState [09:27:07]SAM_PROTO_GetShiftState [09:27:07]wFMCommunicate request_size=4 [09:27:07]MH_SAM_APDU [09:27:07]CAPDU: 80 13 01 00 [09:27:07]Write to MH i2c: E2 08 00 BD BA 80 13 01 00 00 00 00 00 F4 [09:27:07]Write i2c OK [09:27:07]MH_I2C_Read... [09:27:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:07]Read from MH i2c: E2 [09:27:07]MH_I2C_Read... [09:27:07]Read from MH i2c: E2 0E 00 [09:27:07]MH_I2C_Read... [09:27:07]Read from MH i2c: E2 0E 00 BD BA 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 FA [09:27:07]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:27:07]wFMCommunicate OK [09:27:07]SAM_PROTO_GetShiftState done [09:27:07]FM_GetShiftState done [09:27:07]opened in 1729383220 [09:27:07]opened+sec_in_day 1729469620 [09:27:07]quantity*price = 200031 [09:27:07]sum+1 = 200032 [09:27:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 75 20.10.2024 09:27 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69230 ФПД: 269770087447839 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092716&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69230&fm=269770087447839&tin=02508201610067®Number=0000000000156251&sum=200000 [09:27:08]StoreToDocumentArchive [09:27:08]shift 193 fd 69230 [09:27:08]save to /storage/0193/doc_00069230 [09:27:08]save last doc name /storage/0193/doc_00069230 to /storage/kkm_last_doc_name [09:27:08]save OK [09:27:08]Clear old archive folders... [09:27:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:27:08]tlvbuf is 00704BF0 [09:27:08]SAM_PROTO_ClearQueue [09:27:08]wFMCommunicate request_size=4 [09:27:08]MH_SAM_APDU [09:27:08]CAPDU: 80 09 00 00 [09:27:08]Write to MH i2c: E2 08 00 CA BA 80 09 00 00 00 00 00 00 F6 [09:27:08]Write i2c OK [09:27:08]MH_I2C_Read... [09:27:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:27:08]Read from MH i2c: E2 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 03 00 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 03 00 CA BA 00 90 00 F8 [09:27:08]RAPDU: 90 00 [09:27:08]wFMCommunicate OK [09:27:08]SAM_PROTO_ClearQueue done [09:27:08]KKMCreateOFDPacket [09:27:08]OFDProtocolAddRootSTLVToBuf [09:27:08]FM_MakeSignedData [09:27:08]FM_MakeSignedData [09:27:08]SAM_PROTO_SignData [09:27:08]wFMCommunicate request_size=4 [09:27:08]MH_SAM_APDU [09:27:08]CAPDU: 80 0D 01 02 [09:27:08]Write to MH i2c: E2 08 00 CB BA 80 0D 01 02 00 00 00 00 FE [09:27:08]Write i2c OK [09:27:08]MH_I2C_Read... [09:27:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:27:08]Read from MH i2c: E2 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 03 00 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 03 00 CB BA 00 90 00 F9 [09:27:08]RAPDU: 90 00 [09:27:08]wFMCommunicate OK [09:27:08]wFMCommunicate request_size=255 [09:27:08]MH_SAM_APDU [09:27:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F4 CC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6E 0E 01 00 35 04 06 00 F5 [09:27:08]Write to MH i2c: E2 02 01 CC BA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F4 CC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6E 0E 01 00 35 04 06 00 F5 00 00 82 [09:27:08]Write i2c OK [09:27:08]MH_I2C_Read... [09:27:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:08]Read from MH i2c: E2 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 03 00 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 03 00 CC BA 00 90 00 FA [09:27:08]RAPDU: 90 00 [09:27:08]wFMCommunicate OK [09:27:08]wFMCommunicate request_size=10 [09:27:08]MH_SAM_APDU [09:27:08]CAPDU: 80 0D 02 02 05 5A BE 3B BD 1F [09:27:08]Write to MH i2c: E2 0D 00 CD BA 80 0D 02 02 05 00 5A BE 3B BD 1F 00 00 3A [09:27:08]Write i2c OK [09:27:08]MH_I2C_Read... [09:27:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:08]Read from MH i2c: E2 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 03 00 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 03 00 CD BA 00 90 00 FB [09:27:08]RAPDU: 90 00 [09:27:08]wFMCommunicate OK [09:27:08]wFMCommunicate request_size=4 [09:27:08]MH_SAM_APDU [09:27:08]CAPDU: 80 0D 03 02 [09:27:08]Write to MH i2c: E2 08 00 CE BA 80 0D 03 02 00 00 00 00 03 [09:27:08]Write i2c OK [09:27:08]MH_I2C_Read... [09:27:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:27:08]Read from MH i2c: E2 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 0B 00 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 0B 00 CE BA 00 AB F6 FB F2 FE 74 B6 3C 90 00 F6 [09:27:08]RAPDU: AB F6 FB F2 FE 74 B6 3C 90 00 [09:27:08]wFMCommunicate OK [09:27:08]SAM_PROTO_SignData done [09:27:08]FM_MakeSignedData done [09:27:08]CreateOFDProtocolMessage [09:27:08]wFMCommunicate request_size=4 [09:27:08]MH_SAM_APDU [09:27:08]CAPDU: 80 11 00 00 [09:27:08]Write to MH i2c: E2 08 00 CF BA 80 11 00 00 00 00 00 00 03 [09:27:08]Write i2c OK [09:27:08]MH_I2C_Read... [09:27:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:08]Read from MH i2c: E2 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 17 00 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 17 00 CF BA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 55 [09:27:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:27:08]wFMCommunicate OK [09:27:08]CreateOFDProtocolMessage done [09:27:08]OFDSenderStorePacket 69230 [09:27:08]StoreOFDPacket docnum=69230 [09:27:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 58 74 07 01 57 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F4 CC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6E 0E 01 00 35 04 06 00 F5 5A BE 3B BD 1F AB F6 FB F2 FE 74 B6 3C [09:27:08]CheckFolder [09:27:08]dirname=/storage/ofd_packets [09:27:08]CheckFolder done [09:27:08]ProducePacketName [09:27:08]name=ofd_packets/00069230 [09:27:08]NVStorageSaveData ofd_packets/00069230 [09:27:08]File name is /storage/ofd_packets/00069230 [09:27:08]Write 301 bytes [09:27:08]NVStorageSaveData done [09:27:08]OFDSenderStorePacket done [09:27:08]KKMCreateOFDPacket done [09:27:08]NVStorageSaveData kkm_last_timestamp [09:27:08]File name is /storage/kkm_last_timestamp [09:27:08]Write 4 bytes [09:27:08]NVStorageSaveData done [09:27:08]ExternCall_PrintAddStr [09:27:08]wPrintStart [09:27:08]Write to MH i2c: 01 00 00 D0 BA 8A [09:27:08]Write i2c OK [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: 01 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: 01 07 00 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: 01 07 00 D0 BA 00 00 00 00 00 FF 0F 9F [09:27:08]RasterBufferAndPrint [09:27:08]line Счет N : (1)2884944 [09:27:08]line ИНН: 02508201610067 [09:27:08]line Контрольно-Кассовый Чек [09:27:08]line ПРОДАЖА [09:27:08]line ТРК (МРК, ГНК) : 32 [09:27:08]line Товар: 2710124130 [09:27:08]line Аи-92-К-5 [09:27:08]line 29.900 * 66.90 [09:27:08]line = 2000.31 [09:27:08]line НДС 12% НСП 1% [09:27:08]line > о реализуемом товаре [09:27:08]line ОКРУГЛЕНИЕ: -0.31 [09:27:08]line ИТОГО: 2000.00 [09:27:08]line Внесено: 2000.00 [09:27:08]line СДАЧА: 0.00 [09:27:08]line НСП 1% : 17.70 [09:27:08]line НДС 12% : 212.42 [09:27:08]line Наличными: 2000.00 [09:27:08]line Безнал.: 0.00 [09:27:08]line Место: АЗС № 85 "Партнер Нефть" [09:27:08]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:27:08]line СНО: Общий режим [09:27:08]line Чек 75 20.10.2024 09:27 [09:27:08]line Смена: 193 ФФД: 1.0 [09:27:08]line ЗНМ: 0300000167 [09:27:08]line РНМ: 0000000000156251 [09:27:08]line Версия ККМ: v1.0 [09:27:08]line ФМ: 0000000000963346 [09:27:08]line ФД: 69230 [09:27:08]line ФПД: 269770087447839 [09:27:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092716&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69230&fm=269770087447839&tin=02508201610067®Number=0000000000156251&sum=200000 [09:27:09]OFD Sender: Processing packet 69230 [packets to send 18, broken 17] [09:27:09]ProducePacketName [09:27:09]name=ofd_packets/00069230 [09:27:09]OFD Sender: To server: pG, [09:27:09]CommunicateWithHost lk.salyk.kg:30040 [09:27:09]ConnectInit lk.salyk.kg [09:27:09]written 0, free lines is 4095 [09:27:09]Connected sock=9 [09:27:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 58 74 07 01 57 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F4 CC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6E 0E 01 00 35 04 06 00 F5 5A BE 3B BD 1F AB F6 FB F2 FE 74 B6 3C [09:27:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 53 6E 47 00 60 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6E 0E 01 00 F4 03 04 00 9C 76 14 67 B6 04 01 00 00 CD 10 8D 69 A3 CE D6 A9 [09:27:09]CommunicateWithHost err = 0 [09:27:09]CheckOFDResponse [09:27:09]1017 (14) - 77093643461234 [09:27:09]1041 (16) - 0000000000963346 [09:27:09]1040 (4) - 69230 [09:27:09]1012 (4) - 20.10.2024 03:18 [09:27:09]1206 (1) - 0 [09:27:09]OFD Sender: Remove packet 69230 [09:27:09]ProducePacketName [09:27:09]name=ofd_packets/00069230 [09:27:09]NVStorageDeleteData [09:27:09]Write to MH i2c: 01 00 00 FB BA B5 [09:27:09]Write i2c OK [09:27:09]MH_I2C_Read... [09:27:09]Read from MH i2c: 01 [09:27:09]MH_I2C_Read... [09:27:09]Read from MH i2c: 01 07 00 [09:27:09]MH_I2C_Read... [09:27:09]Read from MH i2c: 01 07 00 FB BA 00 00 00 00 00 F0 0C B8 [09:27:09]RasterBufferAndPrint [09:27:09]line [09:27:09]line [09:27:09]line [09:27:09]line [09:27:09]line [09:27:09]written 0, free lines is 3321 [09:27:09]MH_Cut [09:27:09]Write to MH i2c: D1 01 00 02 BB 01 8F [09:27:09]Write i2c OK [09:27:09]MH_I2C_Read... [09:27:09]Read from MH i2c: D1 [09:27:09]MH_I2C_Read... [09:27:09]Read from MH i2c: D1 01 00 [09:27:09]MH_I2C_Read... [09:27:09]Read from MH i2c: D1 01 00 02 BB 00 8E [09:27:09]Write to MH i2c: 01 00 00 03 BB BE [09:27:09]Write i2c OK [09:27:09]MH_I2C_Read... [09:27:10]OFD Sender: No OFD packet to send [09:27:10]*** Cut start [09:27:10]*** Partial cut [09:27:10]*** CUTSNS_PIN = 1 [09:27:10]*** CUTSNS_PIN = 0 [09:27:10]*** Brake cut motor [09:27:11]Read from MH i2c: 01 [09:27:11]MH_I2C_Read... [09:27:11]*** Stop cut motor [09:27:11]*** Cut end [09:27:11]Read from MH i2c: 01 07 00 [09:27:11]MH_I2C_Read... [09:27:11]Read from MH i2c: 01 07 00 03 BB 00 00 00 00 00 FF 0F D3 [09:27:11]process_action close_receipt done [09:27:11]requested_data is exist [09:27:11]produce_requested_data [09:27:11]requested_item fm.sn is exist - process it [09:27:11]wFMCommunicate request_size=4 [09:27:11]MH_SAM_APDU [09:27:11]CAPDU: 80 11 00 00 [09:27:11]Write to MH i2c: E2 08 00 04 BB 80 11 00 00 00 00 00 00 39 [09:27:11]Write i2c OK [09:27:11]MH_I2C_Read... [09:27:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:11]Read from MH i2c: E2 [09:27:11]MH_I2C_Read... [09:27:11]Read from MH i2c: E2 17 00 [09:27:11]MH_I2C_Read... [09:27:11]Read from MH i2c: E2 17 00 04 BB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8B [09:27:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:27:11]wFMCommunicate OK [09:27:11]requested_item fd.num is exist - process it [09:27:11]SAM_PROTO_GetFieldsCounters [09:27:11]wFMCommunicate request_size=4 [09:27:11]MH_SAM_APDU [09:27:11]CAPDU: 80 13 00 00 [09:27:11]Write to MH i2c: E2 08 00 05 BB 80 13 00 00 00 00 00 00 3C [09:27:11]Write i2c OK [09:27:11]MH_I2C_Read... [09:27:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:27:11]Read from MH i2c: E2 [09:27:11]MH_I2C_Read... [09:27:11]Read from MH i2c: E2 62 00 [09:27:11]MH_I2C_Read... [09:27:11]Read from MH i2c: E2 62 00 05 BB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6E 0E 01 00 0E 04 04 00 C1 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 76 [09:27:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6E 0E 01 00 0E 04 04 00 C1 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 [09:27:11]wFMCommunicate OK [09:27:11]SAM_PROTO_GetFieldsCounters done [09:27:11]requested_item shift.num is exist - process it [09:27:11]requested_item shift.opened is exist - process it [09:27:11]req_shift_opened [09:27:11]FM_GetShiftState [09:27:11]SAM_PROTO_GetShiftState [09:27:11]wFMCommunicate request_size=4 [09:27:11]MH_SAM_APDU [09:27:11]CAPDU: 80 13 01 00 [09:27:11]Write to MH i2c: E2 08 00 06 BB 80 13 01 00 00 00 00 00 3E [09:27:11]Write i2c OK [09:27:11]MH_I2C_Read... [09:27:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:11]Read from MH i2c: E2 [09:27:11]MH_I2C_Read... [09:27:11]Read from MH i2c: E2 0E 00 [09:27:11]MH_I2C_Read... [09:27:11]Read from MH i2c: E2 0E 00 06 BB 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 44 [09:27:11]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:27:11]wFMCommunicate OK [09:27:11]SAM_PROTO_GetShiftState done [09:27:11]FM_GetShiftState done [09:27:11]req_shift_opened done [09:27:11]requested_item shift.open_date is exist - process it [09:27:11]req_shift_open_date [09:27:11]req_shift_open_date done [09:27:11]produce_requested_data done [09:27:11]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69230,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [09:27:11]process_action_free close_receipt [09:27:11]json_value_free [09:27:11]json_value_free done [09:27:11]process_json_proto returns [09:27:11]Send response to host [09:27:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69230,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [09:27:11]free response buf [09:27:11]execute_script done [09:27:11]execute_script returns [09:27:11]free content buf [09:27:11]Sock 10.Close socket [09:27:11]Sock 10.Thread stoped [09:27:15]OFD Sender: No OFD packet to send [09:27:20]OFD Sender: No OFD packet to send [09:27:25]OFD Sender: No OFD packet to send [09:27:30]OFD Sender: No OFD packet to send [09:27:35]OFD Sender: No OFD packet to send [09:27:40]OFD Sender: No OFD packet to send [09:27:45]OFD Sender: No OFD packet to send [09:27:50]OFD Sender: No OFD packet to send [09:27:55]OFD Sender: No OFD packet to send [09:28:00]OFD Sender: No OFD packet to send [09:28:05]OFD Sender: No OFD packet to send [09:28: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:50]OFD Sender: No OFD packet to send [09:28:55]OFD Sender: No OFD packet to send [09:29:00]OFD Sender: No OFD packet to send [09:29:05]OFD Sender: No OFD packet to send [09:29:10]OFD Sender: No OFD packet to send [09:29:15]OFD Sender: No OFD packet to send [09:29:20]OFD Sender: No OFD packet to send [09:29:25]OFD Sender: No OFD packet to send [09:29:30]OFD Sender: No OFD packet to send [09:29:35]OFD Sender: No OFD packet to send [09:29:40]OFD Sender: No OFD packet to send [09:29:45]OFD Sender: No OFD packet to send [09:29:50]OFD Sender: No OFD packet to send [09:29:55]OFD Sender: No OFD packet to send [09:30:00]OFD Sender: No OFD packet to send [09:30:05]OFD Sender: No OFD packet to send [09:30:10]OFD Sender: No OFD packet to send [09:30:15]OFD Sender: No OFD packet to send [09:30:20]OFD Sender: No OFD packet to send [09:30:25]OFD Sender: No OFD packet to send [09:30:30]OFD Sender: No OFD packet to send [09:30:35]OFD Sender: No OFD packet to send [09:30:40]OFD Sender: No OFD packet to send [09:30:45]OFD Sender: No OFD packet to send [09:30:50]OFD Sender: No OFD packet to send [09:30:55]OFD Sender: No OFD packet to send [09:31:00]OFD Sender: No OFD packet to send [09:31:05]OFD Sender: No OFD packet to send [09:31:10]OFD Sender: No OFD packet to send [09:31:15]OFD Sender: No OFD packet to send [09:31:20]OFD Sender: No OFD packet to send [09:31:25]OFD Sender: No OFD packet to send [09:31:30]OFD Sender: No OFD packet to send [09:31:35]OFD Sender: No OFD packet to send [09:31:37]accept exits with 8 [09:31:37]New connection [09:31:37]New thread 3067260260 created [09:31:37]Thread 3067116900 joined [09:31:37]Waiting for new connection... [09:31:37] Sock 8.Parse request [09:31:37]Sock 8.Check first char [09:31:37]Sock 8.First char is OK [09:31:37]request: POST /json_proto HTTP/1.0 [09:31:37]Method: POST [09:31:37]URL: /json_proto [09:31:37]Method is POST - this is cgi request [09:31:37]url: /json_proto [09:31:37]query_string will be loaded in cgi processing [09:31:37]execute_cgi json_proto POST (null) [09:31:37]execute_cgi path=json_proto method=POST [09:31:37]POST find Content-Length [09:31:37]Host: 172.17.50.3:8080 [09:31:37]Content-Length: 675 [09:31:37]Content-Type: application/json [09:31:37] [09:31:37]POST finish read [09:31:37]Found Content-Length = 675 [09:31:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:37]execute_script... [09:31:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:37]POST & json_proto [09:31:37]process_json_proto [09:31:37]json parsed OK: [09:31:37]protocol is kg_v1.0 [09:31:37]action value=close_receipt [09:31:37]process_action close_receipt [09:31:37]cmd_close_receipt [09:31:37]MH_GetDate [09:31:37]Write to MH i2c: F0 00 00 07 BB B1 [09:31:37]Write i2c OK [09:31:37]MH_I2C_Read... [09:31:37]Read from MH i2c: F0 [09:31:37]MH_I2C_Read... [09:31:37]Read from MH i2c: F0 09 00 [09:31:37]MH_I2C_Read... [09:31:37]Read from MH i2c: F0 09 00 07 BB 00 03 CE 14 67 6B 98 1E 66 8D [09:31:37]GetLastDocTimeStamp 1729416436 [09:31:37]current date 1729416707 [09:31:37]FM_GetShiftState [09:31:37]SAM_PROTO_GetShiftState [09:31:37]wFMCommunicate request_size=4 [09:31:37]MH_SAM_APDU [09:31:37]CAPDU: 80 13 01 00 [09:31:37]Write to MH i2c: E2 08 00 08 BB 80 13 01 00 00 00 00 00 40 [09:31:37]Write i2c OK [09:31:37]MH_I2C_Read... [09:31:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:37]Read from MH i2c: E2 [09:31:37]MH_I2C_Read... [09:31:37]Read from MH i2c: E2 0E 00 [09:31:37]MH_I2C_Read... [09:31:37]Read from MH i2c: E2 0E 00 08 BB 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 46 [09:31:37]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:31:37]wFMCommunicate OK [09:31:37]SAM_PROTO_GetShiftState done [09:31:37]FM_GetShiftState done [09:31:37]opened in 1729383220 [09:31:37]opened+sec_in_day 1729469620 [09:31:37]quantity*price = 50063 [09:31:37]sum+1 = 50064 [09:31:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 76 20.10.2024 09:31 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69231 ФПД: 208568529256366 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093147&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69231&fm=208568529256366&tin=02508201610067®Number=0000000000156251&sum=50000 [09:31:39]StoreToDocumentArchive [09:31:39]shift 193 fd 69231 [09:31:39]save to /storage/0193/doc_00069231 [09:31:39]save last doc name /storage/0193/doc_00069231 to /storage/kkm_last_doc_name [09:31:39]save OK [09:31:39]Clear old archive folders... [09:31:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:31:39]tlvbuf is 006B3C30 [09:31:39]SAM_PROTO_ClearQueue [09:31:39]wFMCommunicate request_size=4 [09:31:39]MH_SAM_APDU [09:31:39]CAPDU: 80 09 00 00 [09:31:39]Write to MH i2c: E2 08 00 15 BB 80 09 00 00 00 00 00 00 42 [09:31:39]Write i2c OK [09:31:39]MH_I2C_Read... [09:31:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:31:39]Read from MH i2c: E2 [09:31:39]MH_I2C_Read... [09:31:39]Read from MH i2c: E2 03 00 [09:31:39]MH_I2C_Read... [09:31:39]Read from MH i2c: E2 03 00 15 BB 00 90 00 44 [09:31:39]RAPDU: 90 00 [09:31:39]wFMCommunicate OK [09:31:39]SAM_PROTO_ClearQueue done [09:31:39]KKMCreateOFDPacket [09:31:39]OFDProtocolAddRootSTLVToBuf [09:31:39]FM_MakeSignedData [09:31:39]FM_MakeSignedData [09:31:39]SAM_PROTO_SignData [09:31:39]wFMCommunicate request_size=4 [09:31:39]MH_SAM_APDU [09:31:39]CAPDU: 80 0D 01 02 [09:31:39]Write to MH i2c: E2 08 00 16 BB 80 0D 01 02 00 00 00 00 4A [09:31:39]Write i2c OK [09:31:39]MH_I2C_Read... [09:31:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:31:39]Read from MH i2c: E2 [09:31:39]MH_I2C_Read... [09:31:39]Read from MH i2c: E2 03 00 [09:31:39]MH_I2C_Read... [09:31:39]Read from MH i2c: E2 03 00 16 BB 00 90 00 45 [09:31:39]RAPDU: 90 00 [09:31:39]wFMCommunicate OK [09:31:39]wFMCommunicate request_size=255 [09:31:39]MH_SAM_APDU [09:31:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 03 CE 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6F 0E 01 00 35 04 06 00 BD B1 25 18 [09:31:39]Write to MH i2c: E2 02 01 17 BB 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 03 CE 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6F 0E 01 00 35 04 06 00 BD B1 25 18 00 00 D3 [09:31:39]Write i2c OK [09:31:39]MH_I2C_Read... [09:31:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:39]Read from MH i2c: E2 [09:31:39]MH_I2C_Read... [09:31:39]Read from MH i2c: E2 03 00 [09:31:39]MH_I2C_Read... [09:31:39]Read from MH i2c: E2 03 00 17 BB 00 90 00 46 [09:31:39]RAPDU: 90 00 [09:31:39]wFMCommunicate OK [09:31:39]wFMCommunicate request_size=7 [09:31:39]MH_SAM_APDU [09:31:39]CAPDU: 80 0D 02 02 02 FF AE [09:31:39]Write to MH i2c: E2 0A 00 18 BB 80 0D 02 02 02 00 FF AE 00 00 FE [09:31:39]Write i2c OK [09:31:39]MH_I2C_Read... [09:31:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:39]Read from MH i2c: E2 [09:31:39]MH_I2C_Read... [09:31:39]Read from MH i2c: E2 03 00 [09:31:39]MH_I2C_Read... [09:31:39]Read from MH i2c: E2 03 00 18 BB 00 90 00 47 [09:31:39]RAPDU: 90 00 [09:31:39]wFMCommunicate OK [09:31:39]wFMCommunicate request_size=4 [09:31:39]MH_SAM_APDU [09:31:39]CAPDU: 80 0D 03 02 [09:31:39]Write to MH i2c: E2 08 00 19 BB 80 0D 03 02 00 00 00 00 4F [09:31:39]Write i2c OK [09:31:39]MH_I2C_Read... [09:31:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:31:39]Read from MH i2c: E2 [09:31:39]MH_I2C_Read... [09:31:39]Read from MH i2c: E2 0B 00 [09:31:39]MH_I2C_Read... [09:31:39]Read from MH i2c: E2 0B 00 19 BB 00 48 86 F1 67 7B 1B 91 B9 90 00 56 [09:31:39]RAPDU: 48 86 F1 67 7B 1B 91 B9 90 00 [09:31:39]wFMCommunicate OK [09:31:39]SAM_PROTO_SignData done [09:31:39]FM_MakeSignedData done [09:31:39]CreateOFDProtocolMessage [09:31:39]wFMCommunicate request_size=4 [09:31:39]MH_SAM_APDU [09:31:39]CAPDU: 80 11 00 00 [09:31:39]Write to MH i2c: E2 08 00 1A BB 80 11 00 00 00 00 00 00 4F [09:31:39]Write i2c OK [09:31:39]MH_I2C_Read... [09:31:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:39]Read from MH i2c: E2 [09:31:39]MH_I2C_Read... [09:31:39]Read from MH i2c: E2 17 00 [09:31:39]MH_I2C_Read... [09:31:39]Read from MH i2c: E2 17 00 1A BB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A1 [09:31:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:31:39]wFMCommunicate OK [09:31:39]CreateOFDProtocolMessage done [09:31:39]OFDSenderStorePacket 69231 [09:31:39]StoreOFDPacket docnum=69231 [09:31:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 5C DC 04 01 4D 55 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 03 CE 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6F 0E 01 00 35 04 06 00 BD B1 25 18 FF AE 48 86 F1 67 7B 1B 91 B9 [09:31:39]CheckFolder [09:31:39]dirname=/storage/ofd_packets [09:31:39]CheckFolder done [09:31:39]ProducePacketName [09:31:39]name=ofd_packets/00069231 [09:31:39]NVStorageSaveData ofd_packets/00069231 [09:31:39]File name is /storage/ofd_packets/00069231 [09:31:39]Write 298 bytes [09:31:39]NVStorageSaveData done [09:31:39]OFDSenderStorePacket done [09:31:39]KKMCreateOFDPacket done [09:31:39]NVStorageSaveData kkm_last_timestamp [09:31:39]File name is /storage/kkm_last_timestamp [09:31:39]Write 4 bytes [09:31:39]NVStorageSaveData done [09:31:39]ExternCall_PrintAddStr [09:31:39]wPrintStart [09:31:39]Write to MH i2c: 01 00 00 1B BB D6 [09:31:39]Write i2c OK [09:31:39]MH_I2C_Read... [09:31:39]Read from MH i2c: 01 [09:31:39]MH_I2C_Read... [09:31:39]Read from MH i2c: 01 07 00 [09:31:39]MH_I2C_Read... [09:31:39]Read from MH i2c: 01 07 00 1B BB 00 00 00 00 00 FF 0F EB [09:31:39]RasterBufferAndPrint [09:31:39]line Счет N : (1)2884946 [09:31:39]line ИНН: 02508201610067 [09:31:39]line Контрольно-Кассовый Чек [09:31:39]line ПРОДАЖА [09:31:39]line ТРК (МРК, ГНК) : 61 [09:31:39]line Товар: 2710194210 [09:31:39]line ДТ-К-5 [09:31:39]line 6.570 * 76.20 [09:31:39]line = 500.63 [09:31:39]line НДС 12% НСП 1% [09:31:39]line > о реализуемом товаре [09:31:39]line ОКРУГЛЕНИЕ: -0.63 [09:31:39]line ИТОГО: 500.00 [09:31:39]line Внесено: 500.00 [09:31:39]line СДАЧА: 0.00 [09:31:39]line НСП 1% : 4.43 [09:31:39]line НДС 12% : 53.16 [09:31:39]line Наличными: 500.00 [09:31:39]line Безнал.: 0.00 [09:31:39]line Место: АЗС № 85 "Партнер Нефть" [09:31:39]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:31:39]line СНО: Общий режим [09:31:39]line Чек 76 20.10.2024 09:31 [09:31:39]line Смена: 193 ФФД: 1.0 [09:31:39]line ЗНМ: 0300000167 [09:31:39]line РНМ: 0000000000156251 [09:31:39]line Версия ККМ: v1.0 [09:31:39]line ФМ: 0000000000963346 [09:31:39]line ФД: 69231 [09:31:39]line ФПД: 208568529256366 [09:31:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093147&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69231&fm=208568529256366&tin=02508201610067®Number=0000000000156251&sum=50000 [09:31:39]OFD Sender: Processing packet 69231 [packets to send 18, broken 17] [09:31:39]ProducePacketName [09:31:39]name=ofd_packets/00069231 [09:31:39]OFD Sender: To server: pG, [09:31:39]CommunicateWithHost lk.salyk.kg:30040 [09:31:39]ConnectInit lk.salyk.kg [09:31:39]written 0, free lines is 4095 [09:31:39]Connected sock=10 [09:31:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 5C DC 04 01 4D 55 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 03 CE 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6F 0E 01 00 35 04 06 00 BD B1 25 18 FF AE 48 86 F1 67 7B 1B 91 B9 [09:31:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 B6 8E 47 00 A6 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6F 0E 01 00 F4 03 04 00 AA 77 14 67 B6 04 01 00 00 44 FB 32 96 E0 05 FD 40 [09:31:40]CommunicateWithHost err = 0 [09:31:40]CheckOFDResponse [09:31:40]1017 (14) - 77093643461234 [09:31:40]1041 (16) - 0000000000963346 [09:31:40]1040 (4) - 69231 [09:31:40]1012 (4) - 20.10.2024 03:23 [09:31:40]1206 (1) - 0 [09:31:40]OFD Sender: Remove packet 69231 [09:31:40]ProducePacketName [09:31:40]name=ofd_packets/00069231 [09:31:40]NVStorageDeleteData [09:31:40]Write to MH i2c: 01 00 00 46 BB 01 [09:31:40]Write i2c OK [09:31:40]MH_I2C_Read... [09:31:40]Read from MH i2c: 01 [09:31:40]MH_I2C_Read... [09:31:40]Read from MH i2c: 01 07 00 [09:31:40]MH_I2C_Read... [09:31:40]Read from MH i2c: 01 07 00 46 BB 00 00 00 00 00 E7 0C FB [09:31:40]RasterBufferAndPrint [09:31:40]line [09:31:40]line [09:31:40]line [09:31:40]line [09:31:40]line [09:31:40]written 0, free lines is 3309 [09:31:40]MH_Cut [09:31:40]Write to MH i2c: D1 01 00 4D BB 01 DA [09:31:40]Write i2c OK [09:31:40]MH_I2C_Read... [09:31:40]Read from MH i2c: D1 [09:31:40]MH_I2C_Read... [09:31:40]Read from MH i2c: D1 01 00 [09:31:40]MH_I2C_Read... [09:31:40]Read from MH i2c: D1 01 00 4D BB 00 D9 [09:31:40]Write to MH i2c: 01 00 00 4E BB 09 [09:31:40]Write i2c OK [09:31:40]MH_I2C_Read... [09:31:40]OFD Sender: No OFD packet to send [09:31:41]*** Cut start [09:31:41]*** Partial cut [09:31:41]*** CUTSNS_PIN = 1 [09:31:41]*** CUTSNS_PIN = 0 [09:31:41]*** Brake cut motor [09:31:41]Read from MH i2c: 01 [09:31:41]MH_I2C_Read... [09:31:41]*** Stop cut motor [09:31:41]*** Cut end [09:31:41]Read from MH i2c: 01 07 00 [09:31:41]MH_I2C_Read... [09:31:41]Read from MH i2c: 01 07 00 4E BB 00 00 00 00 00 FF 0F 1E [09:31:41]process_action close_receipt done [09:31:41]requested_data is exist [09:31:41]produce_requested_data [09:31:41]requested_item fm.sn is exist - process it [09:31:41]wFMCommunicate request_size=4 [09:31:41]MH_SAM_APDU [09:31:41]CAPDU: 80 11 00 00 [09:31:41]Write to MH i2c: E2 08 00 4F BB 80 11 00 00 00 00 00 00 84 [09:31:41]Write i2c OK [09:31:41]MH_I2C_Read... [09:31:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:41]Read from MH i2c: E2 [09:31:41]MH_I2C_Read... [09:31:41]Read from MH i2c: E2 17 00 [09:31:41]MH_I2C_Read... [09:31:41]Read from MH i2c: E2 17 00 4F BB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D6 [09:31:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:31:41]wFMCommunicate OK [09:31:41]requested_item fd.num is exist - process it [09:31:41]SAM_PROTO_GetFieldsCounters [09:31:41]wFMCommunicate request_size=4 [09:31:41]MH_SAM_APDU [09:31:41]CAPDU: 80 13 00 00 [09:31:41]Write to MH i2c: E2 08 00 50 BB 80 13 00 00 00 00 00 00 87 [09:31:41]Write i2c OK [09:31:41]MH_I2C_Read... [09:31:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:41]Read from MH i2c: E2 [09:31:41]MH_I2C_Read... [09:31:41]Read from MH i2c: E2 62 00 [09:31:41]MH_I2C_Read... [09:31:41]Read from MH i2c: E2 62 00 50 BB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6F 0E 01 00 0E 04 04 00 C1 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 C5 [09:31:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6F 0E 01 00 0E 04 04 00 C1 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 [09:31:41]wFMCommunicate OK [09:31:41]SAM_PROTO_GetFieldsCounters done [09:31:41]requested_item shift.num is exist - process it [09:31:41]requested_item shift.opened is exist - process it [09:31:41]req_shift_opened [09:31:41]FM_GetShiftState [09:31:41]SAM_PROTO_GetShiftState [09:31:41]wFMCommunicate request_size=4 [09:31:41]MH_SAM_APDU [09:31:41]CAPDU: 80 13 01 00 [09:31:41]Write to MH i2c: E2 08 00 51 BB 80 13 01 00 00 00 00 00 89 [09:31:41]Write i2c OK [09:31:41]MH_I2C_Read... [09:31:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:41]Read from MH i2c: E2 [09:31:41]MH_I2C_Read... [09:31:41]Read from MH i2c: E2 0E 00 [09:31:41]MH_I2C_Read... [09:31:41]Read from MH i2c: E2 0E 00 51 BB 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 8F [09:31:41]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:31:41]wFMCommunicate OK [09:31:41]SAM_PROTO_GetShiftState done [09:31:41]FM_GetShiftState done [09:31:41]req_shift_opened done [09:31:41]requested_item shift.open_date is exist - process it [09:31:41]req_shift_open_date [09:31:41]req_shift_open_date done [09:31:41]produce_requested_data done [09:31:41]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69231,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [09:31:41]process_action_free close_receipt [09:31:41]json_value_free [09:31:41]json_value_free done [09:31:41]process_json_proto returns [09:31:41]Send response to host [09:31:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69231,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [09:31:41]free response buf [09:31:41]execute_script done [09:31:41]execute_script returns [09:31:41]free content buf [09:31:41]Sock 8.Close socket [09:31:41]Sock 8.Thread stoped [09:31:45]OFD Sender: No OFD packet to send [09:31:50]OFD Sender: No OFD packet to send [09:31:55]accept exits with 9 [09:31:55]New connection [09:31:55]New thread 3067116900 created [09:31:55]Thread 3067260260 joined [09:31:55]Waiting for new connection... [09:31:55] Sock 9.Parse request [09:31:55]Sock 9.Check first char [09:31:55]Sock 9.First char is OK [09:31:55]request: POST /json_proto HTTP/1.0 [09:31:55]Method: POST [09:31:55]URL: /json_proto [09:31:55]Method is POST - this is cgi request [09:31:55]url: /json_proto [09:31:55]query_string will be loaded in cgi processing [09:31:55]execute_cgi json_proto POST (null) [09:31:55]execute_cgi path=json_proto method=POST [09:31:55]POST find Content-Length [09:31:55]Host: 172.17.50.3:8080 [09:31:55]Content-Length: 683 [09:31:55]Content-Type: application/json [09:31:55] [09:31:55]POST finish read [09:31:55]Found Content-Length = 683 [09:31:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:55]execute_script... [09:31:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:55]POST & json_proto [09:31:55]process_json_proto [09:31:55]json parsed OK: [09:31:55]protocol is kg_v1.0 [09:31:55]action value=close_receipt [09:31:55]process_action close_receipt [09:31:55]cmd_close_receipt [09:31:55]MH_GetDate [09:31:55]Write to MH i2c: F0 00 00 52 BB FC [09:31:55]Write i2c OK [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: F0 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: F0 09 00 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: F0 09 00 52 BB 00 14 CE 14 67 6B 98 1E 66 E9 [09:31:55]GetLastDocTimeStamp 1729416707 [09:31:55]current date 1729416724 [09:31:55]FM_GetShiftState [09:31:55]SAM_PROTO_GetShiftState [09:31:55]wFMCommunicate request_size=4 [09:31:55]MH_SAM_APDU [09:31:55]CAPDU: 80 13 01 00 [09:31:55]Write to MH i2c: E2 08 00 53 BB 80 13 01 00 00 00 00 00 8B [09:31:55]Write i2c OK [09:31:55]MH_I2C_Read... [09:31:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:55]Read from MH i2c: E2 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: E2 0E 00 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: E2 0E 00 53 BB 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 91 [09:31:55]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:31:55]wFMCommunicate OK [09:31:55]SAM_PROTO_GetShiftState done [09:31:55]FM_GetShiftState done [09:31:55]opened in 1729383220 [09:31:55]opened+sec_in_day 1729469620 [09:31:55]quantity*price = 200043 [09:31:55]sum+1 = 200044 [09:31:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 77 20.10.2024 09:32 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69232 ФПД: 74855572960864 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093204&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69232&fm=74855572960864&tin=02508201610067®Number=0000000000156251&sum=200000 [09:31:56]StoreToDocumentArchive [09:31:56]shift 193 fd 69232 [09:31:56]save to /storage/0193/doc_00069232 [09:31:56]save last doc name /storage/0193/doc_00069232 to /storage/kkm_last_doc_name [09:31:56]save OK [09:31:56]Clear old archive folders... [09:31:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:31:56]tlvbuf is 0044D940 [09:31:56]SAM_PROTO_ClearQueue [09:31:56]wFMCommunicate request_size=4 [09:31:56]MH_SAM_APDU [09:31:56]CAPDU: 80 09 00 00 [09:31:56]Write to MH i2c: E2 08 00 60 BB 80 09 00 00 00 00 00 00 8D [09:31:56]Write i2c OK [09:31:56]MH_I2C_Read... [09:31:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:31:56]Read from MH i2c: E2 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: E2 03 00 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: E2 03 00 60 BB 00 90 00 8F [09:31:56]RAPDU: 90 00 [09:31:56]wFMCommunicate OK [09:31:56]SAM_PROTO_ClearQueue done [09:31:56]KKMCreateOFDPacket [09:31:56]OFDProtocolAddRootSTLVToBuf [09:31:56]FM_MakeSignedData [09:31:56]FM_MakeSignedData [09:31:56]SAM_PROTO_SignData [09:31:56]wFMCommunicate request_size=4 [09:31:56]MH_SAM_APDU [09:31:56]CAPDU: 80 0D 01 02 [09:31:56]Write to MH i2c: E2 08 00 61 BB 80 0D 01 02 00 00 00 00 95 [09:31:56]Write i2c OK [09:31:56]MH_I2C_Read... [09:31:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:31:56]Read from MH i2c: E2 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: E2 03 00 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: E2 03 00 61 BB 00 90 00 90 [09:31:56]RAPDU: 90 00 [09:31:56]wFMCommunicate OK [09:31:56]wFMCommunicate request_size=255 [09:31:56]MH_SAM_APDU [09:31:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 14 CE 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 70 0E 01 00 35 04 06 00 44 [09:31:56]Write to MH i2c: E2 02 01 62 BB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 14 CE 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 70 0E 01 00 35 04 06 00 44 00 00 F4 [09:31:56]Write i2c OK [09:31:56]MH_I2C_Read... [09:31:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:56]Read from MH i2c: E2 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: E2 03 00 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: E2 03 00 62 BB 00 90 00 91 [09:31:56]RAPDU: 90 00 [09:31:56]wFMCommunicate OK [09:31:56]wFMCommunicate request_size=10 [09:31:56]MH_SAM_APDU [09:31:56]CAPDU: 80 0D 02 02 05 14 AB D5 F6 60 [09:31:56]Write to MH i2c: E2 0D 00 63 BB 80 0D 02 02 05 00 14 AB D5 F6 60 00 00 8C [09:31:56]Write i2c OK [09:31:56]MH_I2C_Read... [09:31:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:56]Read from MH i2c: E2 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: E2 03 00 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: E2 03 00 63 BB 00 90 00 92 [09:31:56]RAPDU: 90 00 [09:31:56]wFMCommunicate OK [09:31:56]wFMCommunicate request_size=4 [09:31:56]MH_SAM_APDU [09:31:56]CAPDU: 80 0D 03 02 [09:31:56]Write to MH i2c: E2 08 00 64 BB 80 0D 03 02 00 00 00 00 9A [09:31:56]Write i2c OK [09:31:56]MH_I2C_Read... [09:31:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:31:56]Read from MH i2c: E2 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: E2 0B 00 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: E2 0B 00 64 BB 00 46 20 2E 3C 42 7B 10 64 90 00 9C [09:31:56]RAPDU: 46 20 2E 3C 42 7B 10 64 90 00 [09:31:56]wFMCommunicate OK [09:31:56]SAM_PROTO_SignData done [09:31:56]FM_MakeSignedData done [09:31:56]CreateOFDProtocolMessage [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 65 BB 80 11 00 00 00 00 00 00 9A [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 65 BB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EC [09:31:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:31:56]wFMCommunicate OK [09:31:56]CreateOFDProtocolMessage done [09:31:56]OFDSenderStorePacket 69232 [09:31:56]StoreOFDPacket docnum=69232 [09:31:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 5F 38 07 01 22 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 14 CE 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 70 0E 01 00 35 04 06 00 44 14 AB D5 F6 60 46 20 2E 3C 42 7B 10 64 [09:31:56]CheckFolder [09:31:56]dirname=/storage/ofd_packets [09:31:56]CheckFolder done [09:31:56]ProducePacketName [09:31:56]name=ofd_packets/00069232 [09:31:56]NVStorageSaveData ofd_packets/00069232 [09:31:56]File name is /storage/ofd_packets/00069232 [09:31:56]Write 301 bytes [09:31:56]NVStorageSaveData done [09:31:56]OFDSenderStorePacket done [09:31:56]KKMCreateOFDPacket done [09:31:56]NVStorageSaveData kkm_last_timestamp [09:31:56]File name is /storage/kkm_last_timestamp [09:31:56]Write 4 bytes [09:31:56]NVStorageSaveData done [09:31:56]ExternCall_PrintAddStr [09:31:56]wPrintStart [09:31:56]Write to MH i2c: 01 00 00 66 BB 21 [09:31:56]Write i2c OK [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: 01 [09:31:56]MH_I2C_Read... [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 66 BB 00 00 00 00 00 FF 0F 36 [09:31:56]RasterBufferAndPrint [09:31:56]line Счет N : (1)2884945 [09:31:56]line ИНН: 02508201610067 [09:31:56]line Контрольно-Кассовый Чек [09:31:56]line ПРОДАЖА [09:31:56]line ТРК (МРК, ГНК) : 43 [09:31:56]line Товар: 2710124500 [09:31:56]line Аи-95-К-5 [09:31:56]line 26.960 * 74.20 [09:31:56]line = 2000.43 [09:31:56]line НДС 12% НСП 1% [09:31:56]line > о реализуемом товаре [09:31:56]line ОКРУГЛЕНИЕ: -0.43 [09:31:56]line ИТОГО: 2000.00 [09:31:56]line Внесено: 2000.00 [09:31:56]line СДАЧА: 0.00 [09:31:56]line НСП 1% : 17.70 [09:31:56]line НДС 12% : 212.43 [09:31:56]line Наличными: 2000.00 [09:31:56]line Безнал.: 0.00 [09:31:56]line Место: АЗС № 85 "Партнер Нефть" [09:31:56]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:31:56]line СНО: Общий режим [09:31:56]line Чек 77 20.10.2024 09:32 [09:31:56]line Смена: 193 ФФД: 1.0 [09:31:56]line ЗНМ: 0300000167 [09:31:56]line РНМ: 0000000000156251 [09:31:56]line Версия ККМ: v1.0 [09:31:56]line ФМ: 0000000000963346 [09:31:56]line ФД: 69232 [09:31:56]line ФПД: 74855572960864 [09:31:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093204&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69232&fm=74855572960864&tin=02508201610067®Number=0000000000156251&sum=200000 [09:31:57]OFD Sender: Processing packet 69232 [packets to send 18, broken 17] [09:31:57]ProducePacketName [09:31:57]name=ofd_packets/00069232 [09:31:57]OFD Sender: To server: pG, [09:31:57]CommunicateWithHost lk.salyk.kg:30040 [09:31:57]ConnectInit lk.salyk.kg [09:31:57]written 0, free lines is 4095 [09:31:57]Connected sock=10 [09:31:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 5F 38 07 01 22 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 14 CE 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 70 0E 01 00 35 04 06 00 44 14 AB D5 F6 60 46 20 2E 3C 42 7B 10 64 [09:31:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 9C 13 47 00 B9 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 70 0E 01 00 F4 03 04 00 BC 77 14 67 B6 04 01 00 00 5C E9 6D 96 D2 A5 D7 48 [09:31:57]CommunicateWithHost err = 0 [09:31:57]CheckOFDResponse [09:31:57]1017 (14) - 77093643461234 [09:31:57]1041 (16) - 0000000000963346 [09:31:57]1040 (4) - 69232 [09:31:57]1012 (4) - 20.10.2024 03:23 [09:31:57]1206 (1) - 0 [09:31:57]OFD Sender: Remove packet 69232 [09:31:57]ProducePacketName [09:31:57]name=ofd_packets/00069232 [09:31:57]NVStorageDeleteData [09:31:57]Write to MH i2c: 01 00 00 91 BB 4C [09:31:57]Write i2c OK [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: 01 [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: 01 07 00 [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: 01 07 00 91 BB 00 00 00 00 00 F0 0C 4F [09:31:57]RasterBufferAndPrint [09:31:57]line [09:31:57]line [09:31:57]line [09:31:57]line [09:31:57]line [09:31:57]written 0, free lines is 3319 [09:31:57]MH_Cut [09:31:57]Write to MH i2c: D1 01 00 98 BB 01 25 [09:31:57]Write i2c OK [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: D1 [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: D1 01 00 [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: D1 01 00 98 BB 00 24 [09:31:57]Write to MH i2c: 01 00 00 99 BB 54 [09:31:57]Write i2c OK [09:31:57]MH_I2C_Read... [09:31:58]OFD Sender: No OFD packet to send [09:31:58]*** Cut start [09:31:58]*** Partial cut [09:31:58]*** CUTSNS_PIN = 1 [09:31:58]*** CUTSNS_PIN = 0 [09:31:58]*** Brake cut motor [09:31:59]Read from MH i2c: 01 [09:31:59]MH_I2C_Read... [09:31:59]*** Stop cut motor [09:31:59]*** Cut end [09:31:59]Read from MH i2c: 01 07 00 [09:31:59]MH_I2C_Read... [09:31:59]Read from MH i2c: 01 07 00 99 BB 00 00 00 00 00 FF 0F 69 [09:31:59]process_action close_receipt done [09:31:59]requested_data is exist [09:31:59]produce_requested_data [09:31:59]requested_item fm.sn is exist - process it [09:31:59]wFMCommunicate request_size=4 [09:31:59]MH_SAM_APDU [09:31:59]CAPDU: 80 11 00 00 [09:31:59]Write to MH i2c: E2 08 00 9A BB 80 11 00 00 00 00 00 00 CF [09:31:59]Write i2c OK [09:31:59]MH_I2C_Read... [09:31:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:59]Read from MH i2c: E2 [09:31:59]MH_I2C_Read... [09:31:59]Read from MH i2c: E2 17 00 [09:31:59]MH_I2C_Read... [09:31:59]Read from MH i2c: E2 17 00 9A BB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 21 [09:31:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:31:59]wFMCommunicate OK [09:31:59]requested_item fd.num is exist - process it [09:31:59]SAM_PROTO_GetFieldsCounters [09:31:59]wFMCommunicate request_size=4 [09:31:59]MH_SAM_APDU [09:31:59]CAPDU: 80 13 00 00 [09:31:59]Write to MH i2c: E2 08 00 9B BB 80 13 00 00 00 00 00 00 D2 [09:31:59]Write i2c OK [09:31:59]MH_I2C_Read... [09:31:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:59]Read from MH i2c: E2 [09:31:59]MH_I2C_Read... [09:31:59]Read from MH i2c: E2 62 00 [09:31:59]MH_I2C_Read... [09:31:59]Read from MH i2c: E2 62 00 9B BB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 70 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [09:31:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 70 0E 01 00 0E 04 04 00 C1 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 [09:31:59]wFMCommunicate OK [09:31:59]SAM_PROTO_GetFieldsCounters done [09:31:59]requested_item shift.num is exist - process it [09:31:59]requested_item shift.opened is exist - process it [09:31:59]req_shift_opened [09:31:59]FM_GetShiftState [09:31:59]SAM_PROTO_GetShiftState [09:31:59]wFMCommunicate request_size=4 [09:31:59]MH_SAM_APDU [09:31:59]CAPDU: 80 13 01 00 [09:31:59]Write to MH i2c: E2 08 00 9C BB 80 13 01 00 00 00 00 00 D4 [09:31:59]Write i2c OK [09:31:59]MH_I2C_Read... [09:31:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:59]Read from MH i2c: E2 [09:31:59]MH_I2C_Read... [09:31:59]Read from MH i2c: E2 0E 00 [09:31:59]MH_I2C_Read... [09:31:59]Read from MH i2c: E2 0E 00 9C BB 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 DA [09:31:59]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:31:59]wFMCommunicate OK [09:31:59]SAM_PROTO_GetShiftState done [09:31:59]FM_GetShiftState done [09:31:59]req_shift_opened done [09:31:59]requested_item shift.open_date is exist - process it [09:31:59]req_shift_open_date [09:31:59]req_shift_open_date done [09:31:59]produce_requested_data done [09:31:59]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69232,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [09:31:59]process_action_free close_receipt [09:31:59]json_value_free [09:31:59]json_value_free done [09:31:59]process_json_proto returns [09:31:59]Send response to host [09:31:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69232,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [09:31:59]free response buf [09:31:59]execute_script done [09:31:59]execute_script returns [09:31:59]free content buf [09:31:59]Sock 9.Close socket [09:31:59]Sock 9.Thread stoped [09:32:03]OFD Sender: No OFD packet to send [09:32:08]OFD Sender: No OFD packet to send [09:32:13]OFD Sender: No OFD packet to send [09:32:18]OFD Sender: No OFD packet to send [09:32:23]OFD Sender: No OFD packet to send [09:32:28]OFD Sender: No OFD packet to send [09:32:33]OFD Sender: No OFD packet to send [09:32:38]OFD Sender: No OFD packet to send [09:32:43]OFD Sender: No OFD packet to send [09:32:48]OFD Sender: No OFD packet to send [09:32:53]OFD Sender: No OFD packet to send [09:32:58]OFD Sender: No OFD packet to send [09:33:03]OFD Sender: No OFD packet to send [09:33:08]OFD Sender: No OFD packet to send [09:33:13]OFD Sender: No OFD packet to send [09:33:14]accept exits with 8 [09:33:14]New connection [09:33:14]New thread 3067260260 created [09:33:14]Thread 3067116900 joined [09:33:14]Waiting for new connection... [09:33:14] Sock 8.Parse request [09:33:14]Sock 8.Check first char [09:33:14]Sock 8.First char is OK [09:33:14]request: POST /json_proto HTTP/1.0 [09:33:14]Method: POST [09:33:14]URL: /json_proto [09:33:14]Method is POST - this is cgi request [09:33:14]url: /json_proto [09:33:14]query_string will be loaded in cgi processing [09:33:14]execute_cgi json_proto POST (null) [09:33:14]execute_cgi path=json_proto method=POST [09:33:14]POST find Content-Length [09:33:14]Host: 172.17.50.3:8080 [09:33:14]Content-Length: 684 [09:33:14]Content-Type: application/json [09:33:14] [09:33:14]POST finish read [09:33:14]Found Content-Length = 684 [09:33:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 9.070, "sum" : 700.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:14]execute_script... [09:33:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 9.070, "sum" : 700.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:14]POST & json_proto [09:33:14]process_json_proto [09:33:14]json parsed OK: [09:33:14]protocol is kg_v1.0 [09:33:14]action value=close_receipt [09:33:14]process_action close_receipt [09:33:14]cmd_close_receipt [09:33:14]MH_GetDate [09:33:14]Write to MH i2c: F0 00 00 9D BB 47 [09:33:14]Write i2c OK [09:33:14]MH_I2C_Read... [09:33:14]Read from MH i2c: F0 [09:33:14]MH_I2C_Read... [09:33:14]Read from MH i2c: F0 09 00 [09:33:14]MH_I2C_Read... [09:33:14]Read from MH i2c: F0 09 00 9D BB 00 64 CE 14 67 6B 98 1E 66 84 [09:33:14]GetLastDocTimeStamp 1729416724 [09:33:14]current date 1729416804 [09:33:14]FM_GetShiftState [09:33:14]SAM_PROTO_GetShiftState [09:33:14]wFMCommunicate request_size=4 [09:33:14]MH_SAM_APDU [09:33:14]CAPDU: 80 13 01 00 [09:33:14]Write to MH i2c: E2 08 00 9E BB 80 13 01 00 00 00 00 00 D6 [09:33:14]Write i2c OK [09:33:14]MH_I2C_Read... [09:33:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:14]Read from MH i2c: E2 [09:33:14]MH_I2C_Read... [09:33:14]Read from MH i2c: E2 0E 00 [09:33:14]MH_I2C_Read... [09:33:14]Read from MH i2c: E2 0E 00 9E BB 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 DC [09:33:14]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:33:14]wFMCommunicate OK [09:33:14]SAM_PROTO_GetShiftState done [09:33:14]FM_GetShiftState done [09:33:14]opened in 1729383220 [09:33:14]opened+sec_in_day 1729469620 [09:33:14]quantity*price = 70020 [09:33:14]sum+1 = 70021 [09:33:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 78 20.10.2024 09:33 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69233 ФПД: 106785497150332 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093324&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69233&fm=106785497150332&tin=02508201610067®Number=0000000000156251&sum=70000 [09:33:15]StoreToDocumentArchive [09:33:15]shift 193 fd 69233 [09:33:15]save to /storage/0193/doc_00069233 [09:33:15]save last doc name /storage/0193/doc_00069233 to /storage/kkm_last_doc_name [09:33:15]save OK [09:33:15]Clear old archive folders... [09:33:15]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:33:15]tlvbuf is 0044D7E0 [09:33:15]SAM_PROTO_ClearQueue [09:33:15]wFMCommunicate request_size=4 [09:33:15]MH_SAM_APDU [09:33:15]CAPDU: 80 09 00 00 [09:33:15]Write to MH i2c: E2 08 00 AB BB 80 09 00 00 00 00 00 00 D8 [09:33:15]Write i2c OK [09:33:15]MH_I2C_Read... [09:33:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:15]Read from MH i2c: E2 [09:33:15]MH_I2C_Read... [09:33:15]Read from MH i2c: E2 03 00 [09:33:15]MH_I2C_Read... [09:33:15]Read from MH i2c: E2 03 00 AB BB 00 90 00 DA [09:33:15]RAPDU: 90 00 [09:33:15]wFMCommunicate OK [09:33:15]SAM_PROTO_ClearQueue done [09:33:15]KKMCreateOFDPacket [09:33:15]OFDProtocolAddRootSTLVToBuf [09:33:15]FM_MakeSignedData [09:33:15]FM_MakeSignedData [09:33:15]SAM_PROTO_SignData [09:33:15]wFMCommunicate request_size=4 [09:33:15]MH_SAM_APDU [09:33:15]CAPDU: 80 0D 01 02 [09:33:15]Write to MH i2c: E2 08 00 AC BB 80 0D 01 02 00 00 00 00 E0 [09:33:15]Write i2c OK [09:33:15]MH_I2C_Read... [09:33:15]Read from MH i2c: E2 [09:33:15]MH_I2C_Read... [09:33:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:15]Read from MH i2c: E2 03 00 [09:33:15]MH_I2C_Read... [09:33:15]Read from MH i2c: E2 03 00 AC BB 00 90 00 DB [09:33:15]RAPDU: 90 00 [09:33:15]wFMCommunicate OK [09:33:15]wFMCommunicate request_size=255 [09:33:15]MH_SAM_APDU [09:33:15]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 64 CE 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 71 0E 01 [09:33:15]Write to MH i2c: E2 02 01 AD BB 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 64 CE 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 71 0E 01 00 00 94 [09:33:15]Write i2c OK [09:33:15]MH_I2C_Read... [09:33:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:16]Read from MH i2c: E2 [09:33:16]MH_I2C_Read... [09:33:16]Read from MH i2c: E2 03 00 [09:33:16]MH_I2C_Read... [09:33:16]Read from MH i2c: E2 03 00 AD BB 00 90 00 DC [09:33:16]RAPDU: 90 00 [09:33:16]wFMCommunicate OK [09:33:16]wFMCommunicate request_size=16 [09:33:16]MH_SAM_APDU [09:33:16]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 61 1E EF 9F F3 7C [09:33:16]Write to MH i2c: E2 13 00 AE BB 80 0D 02 02 0B 00 00 35 04 06 00 61 1E EF 9F F3 7C 00 00 B4 [09:33:16]Write i2c OK [09:33:16]MH_I2C_Read... [09:33:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:16]Read from MH i2c: E2 [09:33:16]MH_I2C_Read... [09:33:16]Read from MH i2c: E2 03 00 [09:33:16]MH_I2C_Read... [09:33:16]Read from MH i2c: E2 03 00 AE BB 00 90 00 DD [09:33:16]RAPDU: 90 00 [09:33:16]wFMCommunicate OK [09:33:16]wFMCommunicate request_size=4 [09:33:16]MH_SAM_APDU [09:33:16]CAPDU: 80 0D 03 02 [09:33:16]Write to MH i2c: E2 08 00 AF BB 80 0D 03 02 00 00 00 00 E5 [09:33:16]Write i2c OK [09:33:16]MH_I2C_Read... [09:33:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:16]Read from MH i2c: E2 [09:33:16]MH_I2C_Read... [09:33:16]Read from MH i2c: E2 0B 00 [09:33:16]MH_I2C_Read... [09:33:16]Read from MH i2c: E2 0B 00 AF BB 00 E3 13 13 73 E1 28 9F 4E 90 00 58 [09:33:16]RAPDU: E3 13 13 73 E1 28 9F 4E 90 00 [09:33:16]wFMCommunicate OK [09:33:16]SAM_PROTO_SignData done [09:33:16]FM_MakeSignedData done [09:33:16]CreateOFDProtocolMessage [09:33:16]wFMCommunicate request_size=4 [09:33:16]MH_SAM_APDU [09:33:16]CAPDU: 80 11 00 00 [09:33:16]Write to MH i2c: E2 08 00 B0 BB 80 11 00 00 00 00 00 00 E5 [09:33:16]Write i2c OK [09:33:16]MH_I2C_Read... [09:33:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:16]Read from MH i2c: E2 [09:33:16]MH_I2C_Read... [09:33:16]Read from MH i2c: E2 17 00 [09:33:16]MH_I2C_Read... [09:33:16]Read from MH i2c: E2 17 00 B0 BB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 37 [09:33:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:33:16]wFMCommunicate OK [09:33:16]CreateOFDProtocolMessage done [09:33:16]OFDSenderStorePacket 69233 [09:33:16]StoreOFDPacket docnum=69233 [09:33:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 BE F0 0D 01 13 9E 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 64 CE 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 71 0E 01 00 35 04 06 00 61 1E EF 9F F3 7C E3 13 13 73 E1 28 9F 4E [09:33:16]CheckFolder [09:33:16]dirname=/storage/ofd_packets [09:33:16]CheckFolder done [09:33:16]ProducePacketName [09:33:16]name=ofd_packets/00069233 [09:33:16]NVStorageSaveData ofd_packets/00069233 [09:33:16]File name is /storage/ofd_packets/00069233 [09:33:16]Write 307 bytes [09:33:16]NVStorageSaveData done [09:33:16]OFDSenderStorePacket done [09:33:16]KKMCreateOFDPacket done [09:33:16]NVStorageSaveData kkm_last_timestamp [09:33:16]File name is /storage/kkm_last_timestamp [09:33:16]Write 4 bytes [09:33:16]NVStorageSaveData done [09:33:16]ExternCall_PrintAddStr [09:33:16]wPrintStart [09:33:16]Write to MH i2c: 01 00 00 B1 BB 6C [09:33:16]Write i2c OK [09:33:16]MH_I2C_Read... [09:33:16]Read from MH i2c: 01 [09:33:16]MH_I2C_Read... [09:33:16]Read from MH i2c: 01 07 00 [09:33:16]MH_I2C_Read... [09:33:16]Read from MH i2c: 01 07 00 B1 BB 00 00 00 00 00 FF 0F 81 [09:33:16]RasterBufferAndPrint [09:33:16]line Счет N : (1)2884947 [09:33:16]line ИНН: 02508201610067 [09:33:16]line Контрольно-Кассовый Чек [09:33:16]line ПРОДАЖА [09:33:16]line ТРК (МРК, ГНК) : 21 [09:33:16]line Товар: 2710194240 [09:33:16]line D-ENERGY Дт-К-2 [09:33:16]line 9.070 * 77.20 [09:33:16]line = 700.20 [09:33:16]line НДС 12% НСП 1% [09:33:16]line > о реализуемом товаре [09:33:16]line ОКРУГЛЕНИЕ: -0.20 [09:33:16]line ИТОГО: 700.00 [09:33:16]line Внесено: 700.00 [09:33:16]line СДАЧА: 0.00 [09:33:16]line НСП 1% : 6.20 [09:33:16]line НДС 12% : 74.36 [09:33:16]line Наличными: 700.00 [09:33:16]line Безнал.: 0.00 [09:33:16]line Место: АЗС № 85 "Партнер Нефть" [09:33:16]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:33:16]line СНО: Общий режим [09:33:16]line Чек 78 20.10.2024 09:33 [09:33:16]line Смена: 193 ФФД: 1.0 [09:33:16]line ЗНМ: 0300000167 [09:33:16]line РНМ: 0000000000156251 [09:33:16]line Версия ККМ: v1.0 [09:33:16]line ФМ: 0000000000963346 [09:33:16]line ФД: 69233 [09:33:16]line ФПД: 106785497150332 [09:33:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093324&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69233&fm=106785497150332&tin=02508201610067®Number=0000000000156251&sum=70000 [09:33:16]OFD Sender: Processing packet 69233 [packets to send 18, broken 17] [09:33:16]ProducePacketName [09:33:16]name=ofd_packets/00069233 [09:33:16]OFD Sender: To server: pG, [09:33:16]CommunicateWithHost lk.salyk.kg:30040 [09:33:16]ConnectInit lk.salyk.kg [09:33:16]written 0, free lines is 4095 [09:33:16]Connected sock=10 [09:33:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 BE F0 0D 01 13 9E 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 64 CE 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 71 0E 01 00 35 04 06 00 61 1E EF 9F F3 7C E3 13 13 73 E1 28 9F 4E [09:33:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 37 A6 47 00 F0 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 71 0E 01 00 F4 03 04 00 0B 78 14 67 B6 04 01 00 00 7D C6 94 49 98 45 F8 98 [09:33:16]CommunicateWithHost err = 0 [09:33:16]CheckOFDResponse [09:33:16]1017 (14) - 77093643461234 [09:33:16]1041 (16) - 0000000000963346 [09:33:16]1040 (4) - 69233 [09:33:16]1012 (4) - 20.10.2024 03:24 [09:33:16]1206 (1) - 0 [09:33:16]OFD Sender: Remove packet 69233 [09:33:16]ProducePacketName [09:33:16]name=ofd_packets/00069233 [09:33:16]NVStorageDeleteData [09:33:17]Write to MH i2c: 01 00 00 DC BB 97 [09:33:17]Write i2c OK [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: 01 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: 01 07 00 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: 01 07 00 DC BB 00 00 00 00 00 E4 0C 8E [09:33:17]RasterBufferAndPrint [09:33:17]line [09:33:17]line [09:33:17]line [09:33:17]line [09:33:17]line [09:33:17]written 0, free lines is 3306 [09:33:17]MH_Cut [09:33:17]Write to MH i2c: D1 01 00 E3 BB 01 70 [09:33:17]Write i2c OK [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: D1 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: D1 01 00 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: D1 01 00 E3 BB 00 6F [09:33:17]Write to MH i2c: 01 00 00 E4 BB 9F [09:33:17]Write i2c OK [09:33:17]MH_I2C_Read... [09:33:17]OFD Sender: No OFD packet to send [09:33:17]*** Cut start [09:33:17]*** Partial cut [09:33:17]*** CUTSNS_PIN = 1 [09:33:17]*** CUTSNS_PIN = 0 [09:33:18]*** Brake cut motor [09:33:18]Read from MH i2c: 01 [09:33:18]*** Stop cut motor [09:33:18]*** Cut end [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: 01 07 00 [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: 01 07 00 E4 BB 00 00 00 00 00 FF 0F B4 [09:33:18]process_action close_receipt done [09:33:18]requested_data is exist [09:33:18]produce_requested_data [09:33:18]requested_item fm.sn is exist - process it [09:33:18]wFMCommunicate request_size=4 [09:33:18]MH_SAM_APDU [09:33:18]CAPDU: 80 11 00 00 [09:33:18]Write to MH i2c: E2 08 00 E5 BB 80 11 00 00 00 00 00 00 1A [09:33:18]Write i2c OK [09:33:18]MH_I2C_Read... [09:33:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:18]Read from MH i2c: E2 [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: E2 17 00 [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: E2 17 00 E5 BB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6C [09:33:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:33:18]wFMCommunicate OK [09:33:18]requested_item fd.num is exist - process it [09:33:18]SAM_PROTO_GetFieldsCounters [09:33:18]wFMCommunicate request_size=4 [09:33:18]MH_SAM_APDU [09:33:18]CAPDU: 80 13 00 00 [09:33:18]Write to MH i2c: E2 08 00 E6 BB 80 13 00 00 00 00 00 00 1D [09:33:18]Write i2c OK [09:33:18]MH_I2C_Read... [09:33:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:18]Read from MH i2c: E2 [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: E2 62 00 [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: E2 62 00 E6 BB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 71 0E 01 00 0E 04 04 00 C1 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 63 [09:33:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 71 0E 01 00 0E 04 04 00 C1 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 [09:33:18]wFMCommunicate OK [09:33:18]SAM_PROTO_GetFieldsCounters done [09:33:18]requested_item shift.num is exist - process it [09:33:18]requested_item shift.opened is exist - process it [09:33:18]req_shift_opened [09:33:18]FM_GetShiftState [09:33:18]SAM_PROTO_GetShiftState [09:33:18]wFMCommunicate request_size=4 [09:33:18]MH_SAM_APDU [09:33:18]CAPDU: 80 13 01 00 [09:33:18]Write to MH i2c: E2 08 00 E7 BB 80 13 01 00 00 00 00 00 1F [09:33:18]Write i2c OK [09:33:18]MH_I2C_Read... [09:33:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:18]Read from MH i2c: E2 [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: E2 0E 00 [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: E2 0E 00 E7 BB 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 25 [09:33:18]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:33:18]wFMCommunicate OK [09:33:18]SAM_PROTO_GetShiftState done [09:33:18]FM_GetShiftState done [09:33:18]req_shift_opened done [09:33:18]requested_item shift.open_date is exist - process it [09:33:18]req_shift_open_date [09:33:18]req_shift_open_date done [09:33:18]produce_requested_data done [09:33:18]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69233,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [09:33:18]process_action_free close_receipt [09:33:18]json_value_free [09:33:18]json_value_free done [09:33:18]process_json_proto returns [09:33:18]Send response to host [09:33:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69233,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [09:33:18]free response buf [09:33:18]execute_script done [09:33:18]execute_script returns [09:33:18]free content buf [09:33:18]Sock 8.Close socket [09:33:18]Sock 8.Thread stoped [09:33:22]OFD Sender: No OFD packet to send [09:33:27]OFD Sender: No OFD packet to send [09:33:32]OFD Sender: No OFD packet to send [09:33:37]OFD Sender: No OFD packet to send [09:33:42]OFD Sender: No OFD packet to send [09:33:47]OFD Sender: No OFD packet to send [09:33:52]OFD Sender: No OFD packet to send [09:33:57]OFD Sender: No OFD packet to send [09:34:02]OFD Sender: No OFD packet to send [09:34:07]OFD Sender: No OFD packet to send [09:34:12]OFD Sender: No OFD packet to send [09:34:17]OFD Sender: No OFD packet to send [09:34:22]OFD Sender: No OFD packet to send [09:34:27]OFD Sender: No OFD packet to send [09:34:32]OFD Sender: No OFD packet to send [09:34:37]OFD Sender: No OFD packet to send [09:34:42]OFD Sender: No OFD packet to send [09:34:47]OFD Sender: No OFD packet to send [09:34:52]OFD Sender: No OFD packet to send [09:34:57]OFD Sender: No OFD packet to send [09:35:02]OFD Sender: No OFD packet to send [09:35:07]OFD Sender: No OFD packet to send [09:35:12]OFD Sender: No OFD packet to send [09:35:17]OFD Sender: No OFD packet to send [09:35:22]OFD Sender: No OFD packet to send [09:35:27]OFD Sender: No OFD packet to send [09:35:32]OFD Sender: No OFD packet to send [09:35:37]OFD Sender: No OFD packet to send [09:35:42]OFD Sender: No OFD packet to send [09:35:47]OFD Sender: No OFD packet to send [09:35:52]OFD Sender: No OFD packet to send [09:35:57]OFD Sender: No OFD packet to send [09:36:02]OFD Sender: No OFD packet to send [09:36:07]OFD Sender: No OFD packet to send [09:36:12]OFD Sender: No OFD packet to send [09:36:17]OFD Sender: No OFD packet to send [09:36:22]OFD Sender: No OFD packet to send [09:36:27]OFD Sender: No OFD packet to send [09:36:32]OFD Sender: No OFD packet to send [09:36:37]OFD Sender: No OFD packet to send [09:36:42]OFD Sender: No OFD packet to send [09:36:47]OFD Sender: No OFD packet to send [09:36:52]OFD Sender: No OFD packet to send [09:36:57]OFD Sender: No OFD packet to send [09:37:02]OFD Sender: No OFD packet to send [09:37:07]OFD Sender: No OFD packet to send [09:37:12]OFD Sender: No OFD packet to send [09:37:17]OFD Sender: No OFD packet to send [09:37:22]OFD Sender: No OFD packet to send [09:37:27]OFD Sender: No OFD packet to send [09:37:32]OFD Sender: No OFD packet to send [09:37:37]OFD Sender: No OFD packet to send [09:37:42]OFD Sender: No OFD packet to send [09:37:47]OFD Sender: No OFD packet to send [09:37:52]OFD Sender: No OFD packet to send [09:37:57]OFD Sender: No OFD packet to send [09:38:02]OFD Sender: No OFD packet to send [09:38:07]OFD Sender: No OFD packet to send [09:38:12]OFD Sender: No OFD packet to send [09:38:17]OFD Sender: No OFD packet to send [09:38:19]accept exits with 9 [09:38:19]New connection [09:38:19]New thread 3067116900 created [09:38:19]Thread 3067260260 joined [09:38:19]Waiting for new connection... [09:38:19] Sock 9.Parse request [09:38:19]Sock 9.Check first char [09:38:19]Sock 9.First char is OK [09:38:19]request: POST /json_proto HTTP/1.0 [09:38:19]Method: POST [09:38:19]URL: /json_proto [09:38:19]Method is POST - this is cgi request [09:38:19]url: /json_proto [09:38:19]query_string will be loaded in cgi processing [09:38:19]execute_cgi json_proto POST (null) [09:38:19]execute_cgi path=json_proto method=POST [09:38:19]POST find Content-Length [09:38:19]Host: 172.17.50.3:8080 [09:38:19]Content-Length: 682 [09:38:19]Content-Type: application/json [09:38:19] [09:38:19]POST finish read [09:38:19]Found Content-Length = 682 [09:38:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 15.430, "sum" : 600.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:19]execute_script... [09:38: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)2884948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 15.430, "sum" : 600.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:19]POST & json_proto [09:38:19]process_json_proto [09:38:19]json parsed OK: [09:38:19]protocol is kg_v1.0 [09:38:19]action value=close_receipt [09:38:19]process_action close_receipt [09:38:19]cmd_close_receipt [09:38:19]MH_GetDate [09:38:19]Write to MH i2c: F0 00 00 E8 BB 92 [09:38:19]Write i2c OK [09:38:19]MH_I2C_Read... [09:38:19]Read from MH i2c: F0 [09:38:19]MH_I2C_Read... [09:38:19]Read from MH i2c: F0 09 00 [09:38:19]MH_I2C_Read... [09:38:19]Read from MH i2c: F0 09 00 E8 BB 00 95 CF 14 67 6B 98 1E 66 01 [09:38:19]GetLastDocTimeStamp 1729416804 [09:38:19]current date 1729417109 [09:38:19]FM_GetShiftState [09:38:19]SAM_PROTO_GetShiftState [09:38:19]wFMCommunicate request_size=4 [09:38:19]MH_SAM_APDU [09:38:19]CAPDU: 80 13 01 00 [09:38:19]Write to MH i2c: E2 08 00 E9 BB 80 13 01 00 00 00 00 00 21 [09:38:19]Write i2c OK [09:38:19]MH_I2C_Read... [09:38:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:19]Read from MH i2c: E2 [09:38:19]MH_I2C_Read... [09:38:19]Read from MH i2c: E2 0E 00 [09:38:19]MH_I2C_Read... [09:38:19]Read from MH i2c: E2 0E 00 E9 BB 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 27 [09:38:19]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:38:19]wFMCommunicate OK [09:38:19]SAM_PROTO_GetShiftState done [09:38:19]FM_GetShiftState done [09:38:19]opened in 1729383220 [09:38:19]opened+sec_in_day 1729469620 [09:38:19]quantity*price = 60022 [09:38:19]sum+1 = 60024 [09:38:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 79 20.10.2024 09:38 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69234 ФПД: 97994670515903 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093829&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69234&fm=97994670515903&tin=02508201610067®Number=0000000000156251&sum=60000 [09:38:20]StoreToDocumentArchive [09:38:20]shift 193 fd 69234 [09:38:20]save to /storage/0193/doc_00069234 [09:38:20]save last doc name /storage/0193/doc_00069234 to /storage/kkm_last_doc_name [09:38:20]save OK [09:38:20]Clear old archive folders... [09:38:20]ProcessDocumentItem done err = 0, tmpTLVsize=250 [09:38:20]tlvbuf is 007E1AA0 [09:38:20]SAM_PROTO_ClearQueue [09:38:20]wFMCommunicate request_size=4 [09:38:20]MH_SAM_APDU [09:38:20]CAPDU: 80 09 00 00 [09:38:20]Write to MH i2c: E2 08 00 F6 BB 80 09 00 00 00 00 00 00 23 [09:38:20]Write i2c OK [09:38:20]MH_I2C_Read... [09:38:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:38:20]Read from MH i2c: E2 [09:38:20]MH_I2C_Read... [09:38:20]Read from MH i2c: E2 03 00 [09:38:20]MH_I2C_Read... [09:38:20]Read from MH i2c: E2 03 00 F6 BB 00 90 00 25 [09:38:20]RAPDU: 90 00 [09:38:20]wFMCommunicate OK [09:38:20]SAM_PROTO_ClearQueue done [09:38:20]KKMCreateOFDPacket [09:38:20]OFDProtocolAddRootSTLVToBuf [09:38:20]FM_MakeSignedData [09:38:20]FM_MakeSignedData [09:38:20]SAM_PROTO_SignData [09:38:20]wFMCommunicate request_size=4 [09:38:20]MH_SAM_APDU [09:38:20]CAPDU: 80 0D 01 02 [09:38:20]Write to MH i2c: E2 08 00 F7 BB 80 0D 01 02 00 00 00 00 2B [09:38:20]Write i2c OK [09:38:20]MH_I2C_Read... [09:38:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:38:21]Read from MH i2c: E2 [09:38:21]MH_I2C_Read... [09:38:21]Read from MH i2c: E2 03 00 [09:38:21]MH_I2C_Read... [09:38:21]Read from MH i2c: E2 03 00 F7 BB 00 90 00 26 [09:38:21]RAPDU: 90 00 [09:38:21]wFMCommunicate OK [09:38:21]wFMCommunicate request_size=255 [09:38:21]MH_SAM_APDU [09:38:21]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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 77 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 95 CF 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 72 0E 01 00 35 04 06 00 59 20 [09:38:21]Write to MH i2c: E2 02 01 F8 BB 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 77 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 95 CF 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 72 0E 01 00 35 04 06 00 59 20 00 00 91 [09:38:21]Write i2c OK [09:38:21]MH_I2C_Read... [09:38:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:21]Read from MH i2c: E2 [09:38:21]MH_I2C_Read... [09:38:21]Read from MH i2c: E2 03 00 [09:38:21]MH_I2C_Read... [09:38:21]Read from MH i2c: E2 03 00 F8 BB 00 90 00 27 [09:38:21]RAPDU: 90 00 [09:38:21]wFMCommunicate OK [09:38:21]wFMCommunicate request_size=9 [09:38:21]MH_SAM_APDU [09:38:21]CAPDU: 80 0D 02 02 04 29 86 A6 BF [09:38:21]Write to MH i2c: E2 0C 00 F9 BB 80 0D 02 02 04 00 29 86 A6 BF 00 00 4A [09:38:21]Write i2c OK [09:38:21]MH_I2C_Read... [09:38:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:21]Read from MH i2c: E2 [09:38:21]MH_I2C_Read... [09:38:21]Read from MH i2c: E2 03 00 [09:38:21]MH_I2C_Read... [09:38:21]Read from MH i2c: E2 03 00 F9 BB 00 90 00 28 [09:38:21]RAPDU: 90 00 [09:38:21]wFMCommunicate OK [09:38:21]wFMCommunicate request_size=4 [09:38:21]MH_SAM_APDU [09:38:21]CAPDU: 80 0D 03 02 [09:38:21]Write to MH i2c: E2 08 00 FA BB 80 0D 03 02 00 00 00 00 30 [09:38:21]Write i2c OK [09:38:21]MH_I2C_Read... [09:38:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:38:21]Read from MH i2c: E2 [09:38:21]MH_I2C_Read... [09:38:21]Read from MH i2c: E2 0B 00 [09:38:21]MH_I2C_Read... [09:38:21]Read from MH i2c: E2 0B 00 FA BB 00 BB 7A E8 B1 D9 24 02 10 90 00 0E [09:38:21]RAPDU: BB 7A E8 B1 D9 24 02 10 90 00 [09:38:21]wFMCommunicate OK [09:38:21]SAM_PROTO_SignData done [09:38:21]FM_MakeSignedData done [09:38:21]CreateOFDProtocolMessage [09:38:21]wFMCommunicate request_size=4 [09:38:21]MH_SAM_APDU [09:38:21]CAPDU: 80 11 00 00 [09:38:21]Write to MH i2c: E2 08 00 FB BB 80 11 00 00 00 00 00 00 30 [09:38:21]Write i2c OK [09:38:21]MH_I2C_Read... [09:38:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:21]Read from MH i2c: E2 [09:38:21]MH_I2C_Read... [09:38:21]Read from MH i2c: E2 17 00 [09:38:21]MH_I2C_Read... [09:38:21]Read from MH i2c: E2 17 00 FB BB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 82 [09:38:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:38:21]wFMCommunicate OK [09:38:21]CreateOFDProtocolMessage done [09:38:21]OFDSenderStorePacket 69234 [09:38:21]StoreOFDPacket docnum=69234 [09:38:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 CC 81 06 01 DB 87 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 77 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 95 CF 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 72 0E 01 00 35 04 06 00 59 20 29 86 A6 BF BB 7A E8 B1 D9 24 02 10 [09:38:21]CheckFolder [09:38:21]dirname=/storage/ofd_packets [09:38:21]CheckFolder done [09:38:21]ProducePacketName [09:38:21]name=ofd_packets/00069234 [09:38:21]NVStorageSaveData ofd_packets/00069234 [09:38:21]File name is /storage/ofd_packets/00069234 [09:38:21]Write 300 bytes [09:38:21]NVStorageSaveData done [09:38:21]OFDSenderStorePacket done [09:38:21]KKMCreateOFDPacket done [09:38:21]NVStorageSaveData kkm_last_timestamp [09:38:21]File name is /storage/kkm_last_timestamp [09:38:21]Write 4 bytes [09:38:21]NVStorageSaveData done [09:38:21]ExternCall_PrintAddStr [09:38:21]wPrintStart [09:38:21]Write to MH i2c: 01 00 00 FC BB B7 [09:38:21]Write i2c OK [09:38:21]MH_I2C_Read... [09:38:21]Read from MH i2c: 01 [09:38:21]MH_I2C_Read... [09:38:21]Read from MH i2c: 01 07 00 [09:38:21]MH_I2C_Read... [09:38:21]Read from MH i2c: 01 07 00 FC BB 00 00 00 00 00 FF 0F CC [09:38:21]RasterBufferAndPrint [09:38:21]line Счет N : (1)2884948 [09:38:21]line ИНН: 02508201610067 [09:38:21]line Контрольно-Кассовый Чек [09:38:21]line ПРОДАЖА [09:38:21]line ТРК (МРК, ГНК) : 71 [09:38:21]line Товар: 2711129700 [09:38:21]line ГАЗ-К-3 [09:38:21]line 15.430 * 38.90 [09:38:21]line = 600.23 [09:38:21]line НДС 12% НСП 1% [09:38:21]line > о реализуемом товаре [09:38:21]line ОКРУГЛЕНИЕ: -0.23 [09:38:21]line ИТОГО: 600.00 [09:38:21]line Внесено: 600.00 [09:38:21]line СДАЧА: 0.00 [09:38:21]line НСП 1% : 5.31 [09:38:21]line НДС 12% : 63.74 [09:38:21]line Наличными: 600.00 [09:38:21]line Безнал.: 0.00 [09:38:21]line Место: АЗС № 85 "Партнер Нефть" [09:38:21]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:38:21]line СНО: Общий режим [09:38:21]line Чек 79 20.10.2024 09:38 [09:38:21]line Смена: 193 ФФД: 1.0 [09:38:21]line ЗНМ: 0300000167 [09:38:21]line РНМ: 0000000000156251 [09:38:21]line Версия ККМ: v1.0 [09:38:21]line ФМ: 0000000000963346 [09:38:21]line ФД: 69234 [09:38:21]line ФПД: 97994670515903 [09:38:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093829&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69234&fm=97994670515903&tin=02508201610067®Number=0000000000156251&sum=60000 [09:38:21]OFD Sender: Processing packet 69234 [packets to send 18, broken 17] [09:38:21]ProducePacketName [09:38:21]name=ofd_packets/00069234 [09:38:21]OFD Sender: To server: pG, [09:38:21]CommunicateWithHost lk.salyk.kg:30040 [09:38:21]ConnectInit lk.salyk.kg [09:38:21]written 0, free lines is 4095 [09:38:21]Connected sock=10 [09:38:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 CC 81 06 01 DB 87 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 77 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 95 CF 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 72 0E 01 00 35 04 06 00 59 20 29 86 A6 BF BB 7A E8 B1 D9 24 02 10 [09:38:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 6F 26 47 00 2D 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 72 0E 01 00 F4 03 04 00 3C 79 14 67 B6 04 01 00 00 C1 BE 2D 0C 2B 89 D7 85 [09:38:22]CommunicateWithHost err = 0 [09:38:22]CheckOFDResponse [09:38:22]1017 (14) - 77093643461234 [09:38:22]1041 (16) - 0000000000963346 [09:38:22]1040 (4) - 69234 [09:38:22]1012 (4) - 20.10.2024 03:30 [09:38:22]1206 (1) - 0 [09:38:22]OFD Sender: Remove packet 69234 [09:38:22]ProducePacketName [09:38:22]name=ofd_packets/00069234 [09:38:22]NVStorageDeleteData [09:38:22]Write to MH i2c: 01 00 00 27 BC E3 [09:38:22]Write i2c OK [09:38:22]MH_I2C_Read... [09:38:22]Read from MH i2c: 01 [09:38:22]MH_I2C_Read... [09:38:22]Read from MH i2c: 01 07 00 [09:38:22]MH_I2C_Read... [09:38:22]Read from MH i2c: 01 07 00 27 BC 00 00 00 00 00 F3 0C E9 [09:38:22]RasterBufferAndPrint [09:38:22]line [09:38:22]line [09:38:22]line [09:38:22]line [09:38:22]line [09:38:22]written 0, free lines is 3321 [09:38:22]MH_Cut [09:38:22]Write to MH i2c: D1 01 00 2E BC 01 BC [09:38:22]Write i2c OK [09:38:22]MH_I2C_Read... [09:38:22]Read from MH i2c: D1 [09:38:22]MH_I2C_Read... [09:38:22]Read from MH i2c: D1 01 00 [09:38:22]MH_I2C_Read... [09:38:22]Read from MH i2c: D1 01 00 2E BC 00 BB [09:38:22]Write to MH i2c: 01 00 00 2F BC EB [09:38:22]Write i2c OK [09:38:22]MH_I2C_Read... [09:38:22]OFD Sender: No OFD packet to send [09:38:22]*** Cut start [09:38:22]*** Partial cut [09:38:22]*** CUTSNS_PIN = 1 [09:38:22]*** CUTSNS_PIN = 0 [09:38:23]*** Brake cut motor [09:38:23]Read from MH i2c: 01 [09:38:23]MH_I2C_Read... [09:38:23]*** Stop cut motor [09:38:23]*** Cut end [09:38:23]Read from MH i2c: 01 07 00 [09:38:23]MH_I2C_Read... [09:38:23]Read from MH i2c: 01 07 00 2F BC 00 00 00 00 00 FF 0F 00 [09:38:23]process_action close_receipt done [09:38:23]requested_data is exist [09:38:23]produce_requested_data [09:38:23]requested_item fm.sn is exist - process it [09:38:23]wFMCommunicate request_size=4 [09:38:23]MH_SAM_APDU [09:38:23]CAPDU: 80 11 00 00 [09:38:23]Write to MH i2c: E2 08 00 30 BC 80 11 00 00 00 00 00 00 66 [09:38:23]Write i2c OK [09:38:23]MH_I2C_Read... [09:38:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:23]Read from MH i2c: E2 [09:38:23]MH_I2C_Read... [09:38:23]Read from MH i2c: E2 17 00 [09:38:23]MH_I2C_Read... [09:38:23]Read from MH i2c: E2 17 00 30 BC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B8 [09:38:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:38:23]wFMCommunicate OK [09:38:23]requested_item fd.num is exist - process it [09:38:23]SAM_PROTO_GetFieldsCounters [09:38:23]wFMCommunicate request_size=4 [09:38:23]MH_SAM_APDU [09:38:23]CAPDU: 80 13 00 00 [09:38:23]Write to MH i2c: E2 08 00 31 BC 80 13 00 00 00 00 00 00 69 [09:38:23]Write i2c OK [09:38:23]MH_I2C_Read... [09:38:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:38:23]Read from MH i2c: E2 [09:38:23]MH_I2C_Read... [09:38:23]Read from MH i2c: E2 62 00 [09:38:23]MH_I2C_Read... [09:38:23]Read from MH i2c: E2 62 00 31 BC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 72 0E 01 00 0E 04 04 00 C1 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 B3 [09:38:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 72 0E 01 00 0E 04 04 00 C1 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 [09:38:23]wFMCommunicate OK [09:38:23]SAM_PROTO_GetFieldsCounters done [09:38:23]requested_item shift.num is exist - process it [09:38:23]requested_item shift.opened is exist - process it [09:38:23]req_shift_opened [09:38:23]FM_GetShiftState [09:38:23]SAM_PROTO_GetShiftState [09:38:23]wFMCommunicate request_size=4 [09:38:23]MH_SAM_APDU [09:38:23]CAPDU: 80 13 01 00 [09:38:23]Write to MH i2c: E2 08 00 32 BC 80 13 01 00 00 00 00 00 6B [09:38:23]Write i2c OK [09:38:23]MH_I2C_Read... [09:38:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:23]Read from MH i2c: E2 [09:38:23]MH_I2C_Read... [09:38:23]Read from MH i2c: E2 0E 00 [09:38:23]MH_I2C_Read... [09:38:23]Read from MH i2c: E2 0E 00 32 BC 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 71 [09:38:23]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:38:23]wFMCommunicate OK [09:38:23]SAM_PROTO_GetShiftState done [09:38:23]FM_GetShiftState done [09:38:23]req_shift_opened done [09:38:23]requested_item shift.open_date is exist - process it [09:38:23]req_shift_open_date [09:38:23]req_shift_open_date done [09:38:23]produce_requested_data done [09:38:23]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69234,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [09:38:23]process_action_free close_receipt [09:38:23]json_value_free [09:38:23]json_value_free done [09:38:23]process_json_proto returns [09:38:23]Send response to host [09:38:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69234,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [09:38:23]free response buf [09:38:23]execute_script done [09:38:23]execute_script returns [09:38:23]free content buf [09:38:23]Sock 9.Close socket [09:38:23]Sock 9.Thread stoped [09:38:27]OFD Sender: No OFD packet to send [09:38:28]accept exits with 8 [09:38:28]New connection [09:38:28]New thread 3067260260 created [09:38:28]Thread 3067116900 joined [09:38:28]Waiting for new connection... [09:38:28] Sock 8.Parse request [09:38:28]Sock 8.Check first char [09:38:28]Sock 8.First char is OK [09:38:28]request: POST /json_proto HTTP/1.0 [09:38:28]Method: POST [09:38:28]URL: /json_proto [09:38:28]Method is POST - this is cgi request [09:38:28]url: /json_proto [09:38:28]query_string will be loaded in cgi processing [09:38:28]execute_cgi json_proto POST (null) [09:38:28]execute_cgi path=json_proto method=POST [09:38:28]POST find Content-Length [09:38:28]Host: 172.17.50.3:8080 [09:38:28]Content-Length: 684 [09:38:28]Content-Type: application/json [09:38:28] [09:38:28]POST finish read [09:38:28]Found Content-Length = 684 [09:38:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:28]execute_script... [09:38:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:28]POST & json_proto [09:38:28]process_json_proto [09:38:28]json parsed OK: [09:38:28]protocol is kg_v1.0 [09:38:28]action value=close_receipt [09:38:28]process_action close_receipt [09:38:28]cmd_close_receipt [09:38:28]MH_GetDate [09:38:28]Write to MH i2c: F0 00 00 33 BC DE [09:38:28]Write i2c OK [09:38:28]MH_I2C_Read... [09:38:28]Read from MH i2c: F0 [09:38:28]MH_I2C_Read... [09:38:28]Read from MH i2c: F0 09 00 [09:38:28]MH_I2C_Read... [09:38:28]Read from MH i2c: F0 09 00 33 BC 00 9E CF 14 67 6B 98 1E 66 56 [09:38:28]GetLastDocTimeStamp 1729417109 [09:38:28]current date 1729417118 [09:38:28]FM_GetShiftState [09:38:28]SAM_PROTO_GetShiftState [09:38:28]wFMCommunicate request_size=4 [09:38:28]MH_SAM_APDU [09:38:28]CAPDU: 80 13 01 00 [09:38:28]Write to MH i2c: E2 08 00 34 BC 80 13 01 00 00 00 00 00 6D [09:38:28]Write i2c OK [09:38:28]MH_I2C_Read... [09:38:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:28]Read from MH i2c: E2 [09:38:28]MH_I2C_Read... [09:38:28]Read from MH i2c: E2 0E 00 [09:38:28]MH_I2C_Read... [09:38:28]Read from MH i2c: E2 0E 00 34 BC 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 73 [09:38:28]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:38:28]wFMCommunicate OK [09:38:28]SAM_PROTO_GetShiftState done [09:38:28]FM_GetShiftState done [09:38:28]opened in 1729383220 [09:38:28]opened+sec_in_day 1729469620 [09:38:28]quantity*price = 50025 [09:38:28]sum+1 = 50027 [09:38:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 80 20.10.2024 09:38 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69235 ФПД: 203880358076935 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093838&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69235&fm=203880358076935&tin=02508201610067®Number=0000000000156251&sum=50000 [09:38:29]StoreToDocumentArchive [09:38:29]shift 193 fd 69235 [09:38:29]save to /storage/0193/doc_00069235 [09:38:29]save last doc name /storage/0193/doc_00069235 to /storage/kkm_last_doc_name [09:38:29]save OK [09:38:29]Clear old archive folders... [09:38:29]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:38:29]tlvbuf is 00686D90 [09:38:29]SAM_PROTO_ClearQueue [09:38:29]wFMCommunicate request_size=4 [09:38:29]MH_SAM_APDU [09:38:29]CAPDU: 80 09 00 00 [09:38:29]Write to MH i2c: E2 08 00 41 BC 80 09 00 00 00 00 00 00 6F [09:38:29]Write i2c OK [09:38:29]MH_I2C_Read... [09:38:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:38:30]Read from MH i2c: E2 [09:38:30]MH_I2C_Read... [09:38:30]Read from MH i2c: E2 03 00 [09:38:30]MH_I2C_Read... [09:38:30]Read from MH i2c: E2 03 00 41 BC 00 90 00 71 [09:38:30]RAPDU: 90 00 [09:38:30]wFMCommunicate OK [09:38:30]SAM_PROTO_ClearQueue done [09:38:30]KKMCreateOFDPacket [09:38:30]OFDProtocolAddRootSTLVToBuf [09:38:30]FM_MakeSignedData [09:38:30]FM_MakeSignedData [09:38:30]SAM_PROTO_SignData [09:38:30]wFMCommunicate request_size=4 [09:38:30]MH_SAM_APDU [09:38:30]CAPDU: 80 0D 01 02 [09:38:30]Write to MH i2c: E2 08 00 42 BC 80 0D 01 02 00 00 00 00 77 [09:38:30]Write i2c OK [09:38:30]MH_I2C_Read... [09:38:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:38:30]Read from MH i2c: E2 [09:38:30]MH_I2C_Read... [09:38:30]Read from MH i2c: E2 03 00 [09:38:30]MH_I2C_Read... [09:38:30]Read from MH i2c: E2 03 00 42 BC 00 90 00 72 [09:38:30]RAPDU: 90 00 [09:38:30]wFMCommunicate OK [09:38:30]wFMCommunicate request_size=255 [09:38:30]MH_SAM_APDU [09:38:30]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 9E CF 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 73 0E 01 [09:38:30]Write to MH i2c: E2 02 01 43 BC 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 9E CF 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 73 0E 01 00 00 F4 [09:38:30]Write i2c OK [09:38:30]MH_I2C_Read... [09:38:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:30]Read from MH i2c: E2 [09:38:30]MH_I2C_Read... [09:38:30]Read from MH i2c: E2 03 00 [09:38:30]MH_I2C_Read... [09:38:30]Read from MH i2c: E2 03 00 43 BC 00 90 00 73 [09:38:30]RAPDU: 90 00 [09:38:30]wFMCommunicate OK [09:38:30]wFMCommunicate request_size=16 [09:38:30]MH_SAM_APDU [09:38:30]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 B9 6D 98 51 E2 07 [09:38:30]Write to MH i2c: E2 13 00 44 BC 80 0D 02 02 0B 00 00 35 04 06 00 B9 6D 98 51 E2 07 00 00 C7 [09:38:30]Write i2c OK [09:38:30]MH_I2C_Read... [09:38:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:30]Read from MH i2c: E2 [09:38:30]MH_I2C_Read... [09:38:30]Read from MH i2c: E2 03 00 [09:38:30]MH_I2C_Read... [09:38:30]Read from MH i2c: E2 03 00 44 BC 00 90 00 74 [09:38:30]RAPDU: 90 00 [09:38:30]wFMCommunicate OK [09:38:30]wFMCommunicate request_size=4 [09:38:30]MH_SAM_APDU [09:38:30]CAPDU: 80 0D 03 02 [09:38:30]Write to MH i2c: E2 08 00 45 BC 80 0D 03 02 00 00 00 00 7C [09:38:30]Write i2c OK [09:38:30]MH_I2C_Read... [09:38:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:38:30]Read from MH i2c: E2 [09:38:30]MH_I2C_Read... [09:38:30]Read from MH i2c: E2 0B 00 [09:38:30]MH_I2C_Read... [09:38:30]Read from MH i2c: E2 0B 00 45 BC 00 73 FD B7 A9 77 C6 75 84 90 00 83 [09:38:30]RAPDU: 73 FD B7 A9 77 C6 75 84 90 00 [09:38:30]wFMCommunicate OK [09:38:30]SAM_PROTO_SignData done [09:38:30]FM_MakeSignedData done [09:38:30]CreateOFDProtocolMessage [09:38:30]wFMCommunicate request_size=4 [09:38:30]MH_SAM_APDU [09:38:30]CAPDU: 80 11 00 00 [09:38:30]Write to MH i2c: E2 08 00 46 BC 80 11 00 00 00 00 00 00 7C [09:38:30]Write i2c OK [09:38:30]MH_I2C_Read... [09:38:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:30]Read from MH i2c: E2 [09:38:30]MH_I2C_Read... [09:38:30]Read from MH i2c: E2 17 00 [09:38:30]MH_I2C_Read... [09:38:30]Read from MH i2c: E2 17 00 46 BC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CE [09:38:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:38:30]wFMCommunicate OK [09:38:30]CreateOFDProtocolMessage done [09:38:30]OFDSenderStorePacket 69235 [09:38:30]StoreOFDPacket docnum=69235 [09:38:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 CD 91 0D 01 12 10 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 9E CF 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 73 0E 01 00 35 04 06 00 B9 6D 98 51 E2 07 73 FD B7 A9 77 C6 75 84 [09:38:30]CheckFolder [09:38:30]dirname=/storage/ofd_packets [09:38:30]CheckFolder done [09:38:30]ProducePacketName [09:38:30]name=ofd_packets/00069235 [09:38:30]NVStorageSaveData ofd_packets/00069235 [09:38:30]File name is /storage/ofd_packets/00069235 [09:38:30]Write 307 bytes [09:38:30]NVStorageSaveData done [09:38:30]OFDSenderStorePacket done [09:38:30]KKMCreateOFDPacket done [09:38:30]NVStorageSaveData kkm_last_timestamp [09:38:30]File name is /storage/kkm_last_timestamp [09:38:30]Write 4 bytes [09:38:30]NVStorageSaveData done [09:38:30]ExternCall_PrintAddStr [09:38:30]wPrintStart [09:38:30]Write to MH i2c: 01 00 00 47 BC 03 [09:38:30]Write i2c OK [09:38:30]MH_I2C_Read... [09:38:30]Read from MH i2c: 01 [09:38:30]MH_I2C_Read... [09:38:30]Read from MH i2c: 01 07 00 [09:38:30]MH_I2C_Read... [09:38:30]Read from MH i2c: 01 07 00 47 BC 00 00 00 00 00 FF 0F 18 [09:38:30]RasterBufferAndPrint [09:38:30]line Счет N : (1)2884949 [09:38:30]line ИНН: 02508201610067 [09:38:30]line Контрольно-Кассовый Чек [09:38:30]line ПРОДАЖА [09:38:30]line ТРК (МРК, ГНК) : 31 [09:38:30]line Товар: 2710194240 [09:38:30]line D-ENERGY Дт-К-2 [09:38:30]line 6.480 * 77.20 [09:38:30]line = 500.26 [09:38:30]line НДС 12% НСП 1% [09:38:30]line > о реализуемом товаре [09:38:30]line ОКРУГЛЕНИЕ: -0.26 [09:38:30]line ИТОГО: 500.00 [09:38:30]line Внесено: 500.00 [09:38:30]line СДАЧА: 0.00 [09:38:30]line НСП 1% : 4.43 [09:38:30]line НДС 12% : 53.12 [09:38:30]line Наличными: 500.00 [09:38:30]line Безнал.: 0.00 [09:38:30]line Место: АЗС № 85 "Партнер Нефть" [09:38:30]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:38:30]line СНО: Общий режим [09:38:30]line Чек 80 20.10.2024 09:38 [09:38:30]line Смена: 193 ФФД: 1.0 [09:38:30]line ЗНМ: 0300000167 [09:38:30]line РНМ: 0000000000156251 [09:38:30]line Версия ККМ: v1.0 [09:38:30]line ФМ: 0000000000963346 [09:38:30]line ФД: 69235 [09:38:30]line ФПД: 203880358076935 [09:38:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093838&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69235&fm=203880358076935&tin=02508201610067®Number=0000000000156251&sum=50000 [09:38:30]written 0, free lines is 4095 [09:38:30]OFD Sender: Processing packet 69235 [packets to send 18, broken 17] [09:38:30]ProducePacketName [09:38:30]name=ofd_packets/00069235 [09:38:30]OFD Sender: To server: pG, [09:38:30]CommunicateWithHost lk.salyk.kg:30040 [09:38:30]ConnectInit lk.salyk.kg [09:38:30]Connected sock=10 [09:38:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 CD 91 0D 01 12 10 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 9E CF 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 73 0E 01 00 35 04 06 00 B9 6D 98 51 E2 07 73 FD B7 A9 77 C6 75 84 [09:38:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 C5 4F 47 00 ED 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 73 0E 01 00 F4 03 04 00 45 79 14 67 B6 04 01 00 00 BF E6 0A B2 8A 83 05 57 [09:38:30]CommunicateWithHost err = 0 [09:38:30]CheckOFDResponse [09:38:30]1017 (14) - 77093643461234 [09:38:30]1041 (16) - 0000000000963346 [09:38:30]1040 (4) - 69235 [09:38:30]1012 (4) - 20.10.2024 03:30 [09:38:30]1206 (1) - 0 [09:38:30]OFD Sender: Remove packet 69235 [09:38:30]ProducePacketName [09:38:30]name=ofd_packets/00069235 [09:38:30]NVStorageDeleteData [09:38:30]Write to MH i2c: 01 00 00 72 BC 2E [09:38:30]Write i2c OK [09:38:30]MH_I2C_Read... [09:38:30]Read from MH i2c: 01 [09:38:30]MH_I2C_Read... [09:38:30]Read from MH i2c: 01 07 00 [09:38:30]MH_I2C_Read... [09:38:30]Read from MH i2c: 01 07 00 72 BC 00 00 00 00 00 F3 0C 34 [09:38:30]RasterBufferAndPrint [09:38:30]line [09:38:30]line [09:38:30]line [09:38:30]line [09:38:30]line [09:38:30]written 0, free lines is 3327 [09:38:31]MH_Cut [09:38:31]Write to MH i2c: D1 01 00 79 BC 01 07 [09:38:31]Write i2c OK [09:38:31]MH_I2C_Read... [09:38:31]Read from MH i2c: D1 [09:38:31]MH_I2C_Read... [09:38:31]Read from MH i2c: D1 01 00 [09:38:31]MH_I2C_Read... [09:38:31]Read from MH i2c: D1 01 00 79 BC 00 06 [09:38:31]Write to MH i2c: 01 00 00 7A BC 36 [09:38:31]Write i2c OK [09:38:31]MH_I2C_Read... [09:38:31]OFD Sender: No OFD packet to send [09:38:31]*** Cut start [09:38:31]*** Partial cut [09:38:31]*** CUTSNS_PIN = 1 [09:38:31]*** CUTSNS_PIN = 0 [09:38:31]*** Brake cut motor [09:38:32]Read from MH i2c: 01 [09:38:32]MH_I2C_Read... [09:38:32]*** Stop cut motor [09:38:32]*** Cut end [09:38:32]Read from MH i2c: 01 07 00 [09:38:32]MH_I2C_Read... [09:38:32]Read from MH i2c: 01 07 00 7A BC 00 00 00 00 00 FF 0F 4B [09:38:32]process_action close_receipt done [09:38:32]requested_data is exist [09:38:32]produce_requested_data [09:38:32]requested_item fm.sn is exist - process it [09:38:32]wFMCommunicate request_size=4 [09:38:32]MH_SAM_APDU [09:38:32]CAPDU: 80 11 00 00 [09:38:32]Write to MH i2c: E2 08 00 7B BC 80 11 00 00 00 00 00 00 B1 [09:38:32]Write i2c OK [09:38:32]MH_I2C_Read... [09:38:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:32]Read from MH i2c: E2 [09:38:32]MH_I2C_Read... [09:38:32]Read from MH i2c: E2 17 00 [09:38:32]MH_I2C_Read... [09:38:32]Read from MH i2c: E2 17 00 7B BC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 03 [09:38:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:38:32]wFMCommunicate OK [09:38:32]requested_item fd.num is exist - process it [09:38:32]SAM_PROTO_GetFieldsCounters [09:38:32]wFMCommunicate request_size=4 [09:38:32]MH_SAM_APDU [09:38:32]CAPDU: 80 13 00 00 [09:38:32]Write to MH i2c: E2 08 00 7C BC 80 13 00 00 00 00 00 00 B4 [09:38:32]Write i2c OK [09:38:32]MH_I2C_Read... [09:38:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:38:32]Read from MH i2c: E2 [09:38:32]MH_I2C_Read... [09:38:32]Read from MH i2c: E2 62 00 [09:38:32]MH_I2C_Read... [09:38:32]Read from MH i2c: E2 62 00 7C BC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 73 0E 01 00 0E 04 04 00 C1 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 02 [09:38:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 73 0E 01 00 0E 04 04 00 C1 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 [09:38:32]wFMCommunicate OK [09:38:32]SAM_PROTO_GetFieldsCounters done [09:38:32]requested_item shift.num is exist - process it [09:38:32]requested_item shift.opened is exist - process it [09:38:32]req_shift_opened [09:38:32]FM_GetShiftState [09:38:32]SAM_PROTO_GetShiftState [09:38:32]wFMCommunicate request_size=4 [09:38:32]MH_SAM_APDU [09:38:32]CAPDU: 80 13 01 00 [09:38:32]Write to MH i2c: E2 08 00 7D BC 80 13 01 00 00 00 00 00 B6 [09:38:32]Write i2c OK [09:38:32]MH_I2C_Read... [09:38:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:32]Read from MH i2c: E2 [09:38:32]MH_I2C_Read... [09:38:32]Read from MH i2c: E2 0E 00 [09:38:32]MH_I2C_Read... [09:38:32]Read from MH i2c: E2 0E 00 7D BC 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 BC [09:38:32]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:38:32]wFMCommunicate OK [09:38:32]SAM_PROTO_GetShiftState done [09:38:32]FM_GetShiftState done [09:38:32]req_shift_opened done [09:38:32]requested_item shift.open_date is exist - process it [09:38:32]req_shift_open_date [09:38:32]req_shift_open_date done [09:38:32]produce_requested_data done [09:38:32]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69235,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [09:38:32]process_action_free close_receipt [09:38:32]json_value_free [09:38:32]json_value_free done [09:38:32]process_json_proto returns [09:38:32]Send response to host [09:38:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69235,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [09:38:32]free response buf [09:38:32]execute_script done [09:38:32]execute_script returns [09:38:32]free content buf [09:38:32]Sock 8.Close socket [09:38:32]Sock 8.Thread stoped [09:38:36]OFD Sender: No OFD packet to send [09:38:41]OFD Sender: No OFD packet to send [09:38:46]OFD Sender: No OFD packet to send [09:38:51]OFD Sender: No OFD packet to send [09:38:56]OFD Sender: No OFD packet to send [09:39:01]OFD Sender: No OFD packet to send [09:39:06]OFD Sender: No OFD packet to send [09:39:11]OFD Sender: No OFD packet to send [09:39:16]OFD Sender: No OFD packet to send [09:39:21]OFD Sender: No OFD packet to send [09:39:26]OFD Sender: No OFD packet to send [09:39:31]OFD Sender: No OFD packet to send [09:39:36]OFD Sender: No OFD packet to send [09:39:41]OFD Sender: No OFD packet to send [09:39:46]OFD Sender: No OFD packet to send [09:39:51]OFD Sender: No OFD packet to send [09:39:56]OFD Sender: No OFD packet to send [09:40:01]OFD Sender: No OFD packet to send [09:40:06]OFD Sender: No OFD packet to send [09:40:11]OFD Sender: No OFD packet to send [09:40:16]OFD Sender: No OFD packet to send [09:40:21]OFD Sender: No OFD packet to send [09:40:26]OFD Sender: No OFD packet to send [09:40:31]OFD Sender: No OFD packet to send [09:40:36]OFD Sender: No OFD packet to send [09:40:41]OFD Sender: No OFD packet to send [09:40:46]OFD Sender: No OFD packet to send [09:40:51]OFD Sender: No OFD packet to send [09:40:56]OFD Sender: No OFD packet to send [09:41:01]OFD Sender: No OFD packet to send [09:41:06]OFD Sender: No OFD packet to send [09:41:11]OFD Sender: No OFD packet to send [09:41:16]OFD Sender: No OFD packet to send [09:41:21]OFD Sender: No OFD packet to send [09:41:26]OFD Sender: No OFD packet to send [09:41:31]OFD Sender: No OFD packet to send [09:41:36]OFD Sender: No OFD packet to send [09:41:41]OFD Sender: No OFD packet to send [09:41:46]OFD Sender: No OFD packet to send [09:41:51]OFD Sender: No OFD packet to send [09:41:56]OFD Sender: No OFD packet to send [09:42:01]OFD Sender: No OFD packet to send [09:42:04]accept exits with 9 [09:42:04]New connection [09:42:04]New thread 3067116900 created [09:42:04]Thread 3067260260 joined [09:42:04]Waiting for new connection... [09:42:04] Sock 9.Parse request [09:42:04]Sock 9.Check first char [09:42:04]Sock 9.First char is OK [09:42:04]request: POST /json_proto HTTP/1.0 [09:42:04]Method: POST [09:42:04]URL: /json_proto [09:42:04]Method is POST - this is cgi request [09:42:04]url: /json_proto [09:42:04]query_string will be loaded in cgi processing [09:42:04]execute_cgi json_proto POST (null) [09:42:04]execute_cgi path=json_proto method=POST [09:42:04]POST find Content-Length [09:42:04]Host: 172.17.50.3:8080 [09:42:04]Content-Length: 689 [09:42:04]Content-Type: application/json [09:42:04] [09:42:04]POST finish read [09:42:04]Found Content-Length = 689 [09:42:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:04]execute_script... [09:42: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)2884950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:04]POST & json_proto [09:42:04]process_json_proto [09:42:04]json parsed OK: [09:42:04]protocol is kg_v1.0 [09:42:04]action value=close_receipt [09:42:04]process_action close_receipt [09:42:04]cmd_close_receipt [09:42:04]MH_GetDate [09:42:04]Write to MH i2c: F0 00 00 7E BC 29 [09:42:04]Write i2c OK [09:42:04]MH_I2C_Read... [09:42:04]Read from MH i2c: F0 [09:42:04]MH_I2C_Read... [09:42:04]Read from MH i2c: F0 09 00 [09:42:04]MH_I2C_Read... [09:42:04]Read from MH i2c: F0 09 00 7E BC 00 76 D0 14 67 6B 98 1E 66 7A [09:42:04]GetLastDocTimeStamp 1729417118 [09:42:04]current date 1729417334 [09:42:04]FM_GetShiftState [09:42:04]SAM_PROTO_GetShiftState [09:42:04]wFMCommunicate request_size=4 [09:42:04]MH_SAM_APDU [09:42:04]CAPDU: 80 13 01 00 [09:42:04]Write to MH i2c: E2 08 00 7F BC 80 13 01 00 00 00 00 00 B8 [09:42:04]Write i2c OK [09:42:04]MH_I2C_Read... [09:42:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:04]Read from MH i2c: E2 [09:42:04]MH_I2C_Read... [09:42:04]Read from MH i2c: E2 0E 00 [09:42:04]MH_I2C_Read... [09:42:04]Read from MH i2c: E2 0E 00 7F BC 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 BE [09:42:04]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:42:04]wFMCommunicate OK [09:42:04]SAM_PROTO_GetShiftState done [09:42:04]FM_GetShiftState done [09:42:04]opened in 1729383220 [09:42:04]opened+sec_in_day 1729469620 [09:42:04]quantity*price = 100051 [09:42:04]sum+1 = 100052 [09:42:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 81 20.10.2024 09:42 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69236 ФПД: 181077181037065 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094214&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69236&fm=181077181037065&tin=02508201610067®Number=0000000000156251&sum=100000 [09:42:06]StoreToDocumentArchive [09:42:06]shift 193 fd 69236 [09:42:06]save to /storage/0193/doc_00069236 [09:42:06]save last doc name /storage/0193/doc_00069236 to /storage/kkm_last_doc_name [09:42:06]save OK [09:42:06]Clear old archive folders... [09:42:06]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:42:06]tlvbuf is 00495350 [09:42:06]SAM_PROTO_ClearQueue [09:42:06]wFMCommunicate request_size=4 [09:42:06]MH_SAM_APDU [09:42:06]CAPDU: 80 09 00 00 [09:42:06]Write to MH i2c: E2 08 00 8C BC 80 09 00 00 00 00 00 00 BA [09:42:06]Write i2c OK [09:42:06]MH_I2C_Read... [09:42:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:06]Read from MH i2c: E2 [09:42:06]MH_I2C_Read... [09:42:06]Read from MH i2c: E2 03 00 [09:42:06]MH_I2C_Read... [09:42:06]Read from MH i2c: E2 03 00 8C BC 00 90 00 BC [09:42:06]RAPDU: 90 00 [09:42:06]wFMCommunicate OK [09:42:06]SAM_PROTO_ClearQueue done [09:42:06]KKMCreateOFDPacket [09:42:06]OFDProtocolAddRootSTLVToBuf [09:42:06]FM_MakeSignedData [09:42:06]FM_MakeSignedData [09:42:06]SAM_PROTO_SignData [09:42:06]wFMCommunicate request_size=4 [09:42:06]MH_SAM_APDU [09:42:06]CAPDU: 80 0D 01 02 [09:42:06]Write to MH i2c: E2 08 00 8D BC 80 0D 01 02 00 00 00 00 C2 [09:42:06]Write i2c OK [09:42:06]MH_I2C_Read... [09:42:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:06]Read from MH i2c: E2 [09:42:06]MH_I2C_Read... [09:42:06]Read from MH i2c: E2 03 00 [09:42:06]MH_I2C_Read... [09:42:06]Read from MH i2c: E2 03 00 8D BC 00 90 00 BD [09:42:06]RAPDU: 90 00 [09:42:06]wFMCommunicate OK [09:42:06]wFMCommunicate request_size=255 [09:42:06]MH_SAM_APDU [09:42:06]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 76 D0 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 74 0E 01 [09:42:06]Write to MH i2c: E2 02 01 8E BC 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 76 D0 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 74 0E 01 00 00 6A [09:42:06]Write i2c OK [09:42:06]MH_I2C_Read... [09:42:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:06]Read from MH i2c: E2 [09:42:06]MH_I2C_Read... [09:42:06]Read from MH i2c: E2 03 00 [09:42:06]MH_I2C_Read... [09:42:06]Read from MH i2c: E2 03 00 8E BC 00 90 00 BE [09:42:06]RAPDU: 90 00 [09:42:06]wFMCommunicate OK [09:42:06]wFMCommunicate request_size=16 [09:42:06]MH_SAM_APDU [09:42:06]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 A4 B0 51 0D 7A 09 [09:42:06]Write to MH i2c: E2 13 00 8F BC 80 0D 02 02 0B 00 00 35 04 06 00 A4 B0 51 0D 7A 09 00 00 4F [09:42:06]Write i2c OK [09:42:06]MH_I2C_Read... [09:42:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:06]Read from MH i2c: E2 [09:42:06]MH_I2C_Read... [09:42:06]Read from MH i2c: E2 03 00 [09:42:06]MH_I2C_Read... [09:42:06]Read from MH i2c: E2 03 00 8F BC 00 90 00 BF [09:42:06]RAPDU: 90 00 [09:42:06]wFMCommunicate OK [09:42:06]wFMCommunicate request_size=4 [09:42:06]MH_SAM_APDU [09:42:06]CAPDU: 80 0D 03 02 [09:42:06]Write to MH i2c: E2 08 00 90 BC 80 0D 03 02 00 00 00 00 C7 [09:42:06]Write i2c OK [09:42:06]MH_I2C_Read... [09:42:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:06]Read from MH i2c: E2 [09:42:06]MH_I2C_Read... [09:42:06]Read from MH i2c: E2 0B 00 [09:42:06]MH_I2C_Read... [09:42:06]Read from MH i2c: E2 0B 00 90 BC 00 A2 5D 38 82 CE 5A F8 C4 90 00 65 [09:42:06]RAPDU: A2 5D 38 82 CE 5A F8 C4 90 00 [09:42:06]wFMCommunicate OK [09:42:06]SAM_PROTO_SignData done [09:42:06]FM_MakeSignedData done [09:42:06]CreateOFDProtocolMessage [09:42:06]wFMCommunicate request_size=4 [09:42:06]MH_SAM_APDU [09:42:06]CAPDU: 80 11 00 00 [09:42:06]Write to MH i2c: E2 08 00 91 BC 80 11 00 00 00 00 00 00 C7 [09:42:06]Write i2c OK [09:42:06]MH_I2C_Read... [09:42:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:06]Read from MH i2c: E2 [09:42:06]MH_I2C_Read... [09:42:06]Read from MH i2c: E2 17 00 [09:42:06]MH_I2C_Read... [09:42:06]Read from MH i2c: E2 17 00 91 BC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 19 [09:42:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:42:06]wFMCommunicate OK [09:42:06]CreateOFDProtocolMessage done [09:42:06]OFDSenderStorePacket 69236 [09:42:06]StoreOFDPacket docnum=69236 [09:42:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 F8 25 0D 01 D3 7B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 76 D0 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 74 0E 01 00 35 04 06 00 A4 B0 51 0D 7A 09 A2 5D 38 82 CE 5A F8 C4 [09:42:06]CheckFolder [09:42:06]dirname=/storage/ofd_packets [09:42:06]CheckFolder done [09:42:06]ProducePacketName [09:42:06]name=ofd_packets/00069236 [09:42:06]NVStorageSaveData ofd_packets/00069236 [09:42:06]File name is /storage/ofd_packets/00069236 [09:42:06]Write 307 bytes [09:42:06]NVStorageSaveData done [09:42:06]OFDSenderStorePacket done [09:42:06]KKMCreateOFDPacket done [09:42:06]NVStorageSaveData kkm_last_timestamp [09:42:06]File name is /storage/kkm_last_timestamp [09:42:06]Write 4 bytes [09:42:06]NVStorageSaveData done [09:42:06]ExternCall_PrintAddStr [09:42:06]wPrintStart [09:42:06]Write to MH i2c: 01 00 00 92 BC 4E [09:42:06]Write i2c OK [09:42:06]MH_I2C_Read... [09:42:06]Read from MH i2c: 01 [09:42:06]MH_I2C_Read... [09:42:06]Read from MH i2c: 01 07 00 [09:42:06]MH_I2C_Read... [09:42:06]Read from MH i2c: 01 07 00 92 BC 00 00 00 00 00 FF 0F 63 [09:42:06]RasterBufferAndPrint [09:42:06]line Счет N : (1)2884950 [09:42:06]line ИНН: 02508201610067 [09:42:06]line Контрольно-Кассовый Чек [09:42:06]line ПРОДАЖА [09:42:06]line ТРК (МРК, ГНК) : 31 [09:42:06]line Товар: 2710194240 [09:42:06]line D-ENERGY Дт-К-2 [09:42:06]line 12.960 * 77.20 [09:42:06]line = 1000.51 [09:42:06]line НДС 12% НСП 1% [09:42:06]line > о реализуемом товаре [09:42:06]line ОКРУГЛЕНИЕ: -0.51 [09:42:06]line ИТОГО: 1000.00 [09:42:06]line Внесено: 1000.00 [09:42:06]line СДАЧА: 0.00 [09:42:06]line НСП 1% : 8.85 [09:42:06]line НДС 12% : 106.25 [09:42:06]line Наличными: 1000.00 [09:42:06]line Безнал.: 0.00 [09:42:06]line Место: АЗС № 85 "Партнер Нефть" [09:42:06]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:42:06]line СНО: Общий режим [09:42:06]line Чек 81 20.10.2024 09:42 [09:42:06]line Смена: 193 ФФД: 1.0 [09:42:06]line ЗНМ: 0300000167 [09:42:06]line РНМ: 0000000000156251 [09:42:06]line Версия ККМ: v1.0 [09:42:06]line ФМ: 0000000000963346 [09:42:06]line ФД: 69236 [09:42:06]line ФПД: 181077181037065 [09:42:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094214&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69236&fm=181077181037065&tin=02508201610067®Number=0000000000156251&sum=100000 [09:42:06]OFD Sender: Processing packet 69236 [packets to send 18, broken 17] [09:42:06]ProducePacketName [09:42:06]name=ofd_packets/00069236 [09:42:06]OFD Sender: To server: pG, [09:42:06]CommunicateWithHost lk.salyk.kg:30040 [09:42:06]ConnectInit lk.salyk.kg [09:42:06]written 0, free lines is 4095 [09:42:06]Connected sock=10 [09:42:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 F8 25 0D 01 D3 7B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 76 D0 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 74 0E 01 00 35 04 06 00 A4 B0 51 0D 7A 09 A2 5D 38 82 CE 5A F8 C4 [09:42:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 4C 1D 47 00 89 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 74 0E 01 00 F4 03 04 00 1D 7A 14 67 B6 04 01 00 00 DF CF F5 AD 57 E4 2C 3E [09:42:07]CommunicateWithHost err = 0 [09:42:07]CheckOFDResponse [09:42:07]1017 (14) - 77093643461234 [09:42:07]1041 (16) - 0000000000963346 [09:42:07]1040 (4) - 69236 [09:42:07]1012 (4) - 20.10.2024 03:33 [09:42:07]1206 (1) - 0 [09:42:07]OFD Sender: Remove packet 69236 [09:42:07]ProducePacketName [09:42:07]name=ofd_packets/00069236 [09:42:07]NVStorageDeleteData [09:42:07]Write to MH i2c: 01 00 00 BD BC 79 [09:42:07]Write i2c OK [09:42:07]MH_I2C_Read... [09:42:07]Read from MH i2c: 01 [09:42:07]MH_I2C_Read... [09:42:07]Read from MH i2c: 01 07 00 [09:42:07]MH_I2C_Read... [09:42:07]Read from MH i2c: 01 07 00 BD BC 00 00 00 00 00 F2 0C 7E [09:42:07]RasterBufferAndPrint [09:42:07]line [09:42:07]line [09:42:07]line [09:42:07]line [09:42:07]line [09:42:07]written 0, free lines is 3320 [09:42:07]MH_Cut [09:42:07]Write to MH i2c: D1 01 00 C4 BC 01 52 [09:42:07]Write i2c OK [09:42:07]MH_I2C_Read... [09:42:07]Read from MH i2c: D1 [09:42:07]MH_I2C_Read... [09:42:07]Read from MH i2c: D1 01 00 [09:42:07]MH_I2C_Read... [09:42:07]Read from MH i2c: D1 01 00 C4 BC 00 51 [09:42:07]Write to MH i2c: 01 00 00 C5 BC 81 [09:42:07]Write i2c OK [09:42:07]MH_I2C_Read... [09:42:07]OFD Sender: No OFD packet to send [09:42:08]*** Cut start [09:42:08]*** Partial cut [09:42:08]*** CUTSNS_PIN = 1 [09:42:08]*** CUTSNS_PIN = 0 [09:42:08]*** Brake cut motor [09:42:08]Read from MH i2c: 01 [09:42:08]MH_I2C_Read... [09:42:08]*** Stop cut motor [09:42:08]*** Cut end [09:42:08]Read from MH i2c: 01 07 00 [09:42:08]MH_I2C_Read... [09:42:08]Read from MH i2c: 01 07 00 C5 BC 00 00 00 00 00 FF 0F 96 [09:42:08]process_action close_receipt done [09:42:08]requested_data is exist [09:42:08]produce_requested_data [09:42:08]requested_item fm.sn is exist - process it [09:42:08]wFMCommunicate request_size=4 [09:42:08]MH_SAM_APDU [09:42:08]CAPDU: 80 11 00 00 [09:42:08]Write to MH i2c: E2 08 00 C6 BC 80 11 00 00 00 00 00 00 FC [09:42:08]Write i2c OK [09:42:08]MH_I2C_Read... [09:42:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:08]Read from MH i2c: E2 [09:42:08]MH_I2C_Read... [09:42:08]Read from MH i2c: E2 17 00 [09:42:08]MH_I2C_Read... [09:42:08]Read from MH i2c: E2 17 00 C6 BC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4E [09:42:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:42:08]wFMCommunicate OK [09:42:08]requested_item fd.num is exist - process it [09:42:08]SAM_PROTO_GetFieldsCounters [09:42:08]wFMCommunicate request_size=4 [09:42:08]MH_SAM_APDU [09:42:08]CAPDU: 80 13 00 00 [09:42:08]Write to MH i2c: E2 08 00 C7 BC 80 13 00 00 00 00 00 00 FF [09:42:08]Write i2c OK [09:42:08]MH_I2C_Read... [09:42:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:08]Read from MH i2c: E2 [09:42:08]MH_I2C_Read... [09:42:08]Read from MH i2c: E2 62 00 [09:42:08]MH_I2C_Read... [09:42:08]Read from MH i2c: E2 62 00 C7 BC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 74 0E 01 00 0E 04 04 00 C1 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 51 [09:42:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 74 0E 01 00 0E 04 04 00 C1 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 [09:42:08]wFMCommunicate OK [09:42:08]SAM_PROTO_GetFieldsCounters done [09:42:08]requested_item shift.num is exist - process it [09:42:08]requested_item shift.opened is exist - process it [09:42:08]req_shift_opened [09:42:08]FM_GetShiftState [09:42:08]SAM_PROTO_GetShiftState [09:42:08]wFMCommunicate request_size=4 [09:42:08]MH_SAM_APDU [09:42:08]CAPDU: 80 13 01 00 [09:42:08]Write to MH i2c: E2 08 00 C8 BC 80 13 01 00 00 00 00 00 01 [09:42:08]Write i2c OK [09:42:08]MH_I2C_Read... [09:42:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:08]Read from MH i2c: E2 [09:42:08]MH_I2C_Read... [09:42:08]Read from MH i2c: E2 0E 00 [09:42:08]MH_I2C_Read... [09:42:08]Read from MH i2c: E2 0E 00 C8 BC 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 07 [09:42:08]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:42:08]wFMCommunicate OK [09:42:08]SAM_PROTO_GetShiftState done [09:42:08]FM_GetShiftState done [09:42:08]req_shift_opened done [09:42:08]requested_item shift.open_date is exist - process it [09:42:08]req_shift_open_date [09:42:08]req_shift_open_date done [09:42:08]produce_requested_data done [09:42:08]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69236,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [09:42:08]process_action_free close_receipt [09:42:08]json_value_free [09:42:08]json_value_free done [09:42:08]process_json_proto returns [09:42:08]Send response to host [09:42:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69236,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [09:42:08]free response buf [09:42:08]execute_script done [09:42:08]execute_script returns [09:42:08]free content buf [09:42:08]Sock 9.Close socket [09:42:08]Sock 9.Thread stoped [09:42:12]OFD Sender: No OFD packet to send [09:42:17]OFD Sender: No OFD packet to send [09:42:22]OFD Sender: No OFD packet to send [09:42:27]OFD Sender: No OFD packet to send [09:42:32]OFD Sender: No OFD packet to send [09:42:37]OFD Sender: No OFD packet to send [09:42:42]OFD Sender: No OFD packet to send [09:42:47]OFD Sender: No OFD packet to send [09:42:52]OFD Sender: No OFD packet to send [09:42:57]OFD Sender: No OFD packet to send [09:43:02]OFD Sender: No OFD packet to send [09:43:07]OFD Sender: No OFD packet to send [09:43:12]OFD Sender: No OFD packet to send [09:43:17]OFD Sender: No OFD packet to send [09:43:20]accept exits with 8 [09:43:20]New connection [09:43:20]New thread 3067260260 created [09:43:20]Thread 3067116900 joined [09:43:20]Waiting for new connection... [09:43:20] Sock 8.Parse request [09:43:20]Sock 8.Check first char [09:43:20]Sock 8.First char is OK [09:43:20]request: POST /json_proto HTTP/1.0 [09:43:20]Method: POST [09:43:20]URL: /json_proto [09:43:20]Method is POST - this is cgi request [09:43:20]url: /json_proto [09:43:20]query_string will be loaded in cgi processing [09:43:20]execute_cgi json_proto POST (null) [09:43:20]execute_cgi path=json_proto method=POST [09:43:20]POST find Content-Length [09:43:20]Host: 172.17.50.3:8080 [09:43:20]Content-Length: 678 [09:43:20]Content-Type: application/json [09:43:20] [09:43:20]POST finish read [09:43:20]Found Content-Length = 678 [09:43:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:20]execute_script... [09:43:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:20]POST & json_proto [09:43:20]process_json_proto [09:43:20]json parsed OK: [09:43:20]protocol is kg_v1.0 [09:43:20]action value=close_receipt [09:43:20]process_action close_receipt [09:43:20]cmd_close_receipt [09:43:20]MH_GetDate [09:43:20]Write to MH i2c: F0 00 00 C9 BC 74 [09:43:20]Write i2c OK [09:43:20]MH_I2C_Read... [09:43:20]Read from MH i2c: F0 [09:43:20]MH_I2C_Read... [09:43:20]Read from MH i2c: F0 09 00 [09:43:20]MH_I2C_Read... [09:43:20]Read from MH i2c: F0 09 00 C9 BC 00 C1 D0 14 67 6B 98 1E 66 10 [09:43:20]GetLastDocTimeStamp 1729417334 [09:43:20]current date 1729417409 [09:43:20]FM_GetShiftState [09:43:20]SAM_PROTO_GetShiftState [09:43:20]wFMCommunicate request_size=4 [09:43:20]MH_SAM_APDU [09:43:20]CAPDU: 80 13 01 00 [09:43:20]Write to MH i2c: E2 08 00 CA BC 80 13 01 00 00 00 00 00 03 [09:43:20]Write i2c OK [09:43:20]MH_I2C_Read... [09:43:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:20]Read from MH i2c: E2 [09:43:20]MH_I2C_Read... [09:43:20]Read from MH i2c: E2 0E 00 [09:43:20]MH_I2C_Read... [09:43:20]Read from MH i2c: E2 0E 00 CA BC 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 09 [09:43:20]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:43:20]wFMCommunicate OK [09:43:20]SAM_PROTO_GetShiftState done [09:43:20]FM_GetShiftState done [09:43:20]opened in 1729383220 [09:43:20]opened+sec_in_day 1729469620 [09:43:20]quantity*price = 50041 [09:43:20]sum+1 = 50042 [09:43:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 82 20.10.2024 09:43 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69237 ФПД: 238850229558807 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094329&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69237&fm=238850229558807&tin=02508201610067®Number=0000000000156251&sum=50000 [09:43:21]StoreToDocumentArchive [09:43:21]shift 193 fd 69237 [09:43:21]save to /storage/0193/doc_00069237 [09:43:21]save last doc name /storage/0193/doc_00069237 to /storage/kkm_last_doc_name [09:43:21]save OK [09:43:21]Clear old archive folders... [09:43:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:43:21]tlvbuf is 005499C0 [09:43:21]SAM_PROTO_ClearQueue [09:43:21]wFMCommunicate request_size=4 [09:43:21]MH_SAM_APDU [09:43:21]CAPDU: 80 09 00 00 [09:43:21]Write to MH i2c: E2 08 00 D7 BC 80 09 00 00 00 00 00 00 05 [09:43:21]Write i2c OK [09:43:21]MH_I2C_Read... [09:43:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:21]Read from MH i2c: E2 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: E2 03 00 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: E2 03 00 D7 BC 00 90 00 07 [09:43:21]RAPDU: 90 00 [09:43:21]wFMCommunicate OK [09:43:21]SAM_PROTO_ClearQueue done [09:43:21]KKMCreateOFDPacket [09:43:21]OFDProtocolAddRootSTLVToBuf [09:43:21]FM_MakeSignedData [09:43:21]FM_MakeSignedData [09:43:21]SAM_PROTO_SignData [09:43:21]wFMCommunicate request_size=4 [09:43:21]MH_SAM_APDU [09:43:21]CAPDU: 80 0D 01 02 [09:43:21]Write to MH i2c: E2 08 00 D8 BC 80 0D 01 02 00 00 00 00 0D [09:43:21]Write i2c OK [09:43:21]MH_I2C_Read... [09:43:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:21]Read from MH i2c: E2 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: E2 03 00 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: E2 03 00 D8 BC 00 90 00 08 [09:43:21]RAPDU: 90 00 [09:43:21]wFMCommunicate OK [09:43:21]wFMCommunicate request_size=255 [09:43:21]MH_SAM_APDU [09:43:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 C1 D0 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 75 0E 01 00 35 04 06 00 D9 [09:43:21]Write to MH i2c: E2 02 01 D9 BC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 C1 D0 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 75 0E 01 00 35 04 06 00 D9 00 00 12 [09:43:21]Write i2c OK [09:43:21]MH_I2C_Read... [09:43:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:21]Read from MH i2c: E2 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: E2 03 00 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: E2 03 00 D9 BC 00 90 00 09 [09:43:21]RAPDU: 90 00 [09:43:21]wFMCommunicate OK [09:43:21]wFMCommunicate request_size=10 [09:43:21]MH_SAM_APDU [09:43:21]CAPDU: 80 0D 02 02 05 3B A7 16 5E 17 [09:43:21]Write to MH i2c: E2 0D 00 DA BC 80 0D 02 02 05 00 3B A7 16 5E 17 00 00 87 [09:43:21]Write i2c OK [09:43:21]MH_I2C_Read... [09:43:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:21]Read from MH i2c: E2 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: E2 03 00 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: E2 03 00 DA BC 00 90 00 0A [09:43:21]RAPDU: 90 00 [09:43:21]wFMCommunicate OK [09:43:21]wFMCommunicate request_size=4 [09:43:21]MH_SAM_APDU [09:43:21]CAPDU: 80 0D 03 02 [09:43:21]Write to MH i2c: E2 08 00 DB BC 80 0D 03 02 00 00 00 00 12 [09:43:21]Write i2c OK [09:43:21]MH_I2C_Read... [09:43:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:21]Read from MH i2c: E2 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: E2 0B 00 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: E2 0B 00 DB BC 00 12 90 0A 5A 2F C7 07 3D 90 00 53 [09:43:21]RAPDU: 12 90 0A 5A 2F C7 07 3D 90 00 [09:43:21]wFMCommunicate OK [09:43:21]SAM_PROTO_SignData done [09:43:21]FM_MakeSignedData done [09:43:21]CreateOFDProtocolMessage [09:43:21]wFMCommunicate request_size=4 [09:43:21]MH_SAM_APDU [09:43:21]CAPDU: 80 11 00 00 [09:43:21]Write to MH i2c: E2 08 00 DC BC 80 11 00 00 00 00 00 00 12 [09:43:21]Write i2c OK [09:43:21]MH_I2C_Read... [09:43:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:21]Read from MH i2c: E2 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: E2 17 00 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: E2 17 00 DC BC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 64 [09:43:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:43:21]wFMCommunicate OK [09:43:21]CreateOFDProtocolMessage done [09:43:21]OFDSenderStorePacket 69237 [09:43:21]StoreOFDPacket docnum=69237 [09:43:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 E5 87 07 01 84 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 C1 D0 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 75 0E 01 00 35 04 06 00 D9 3B A7 16 5E 17 12 90 0A 5A 2F C7 07 3D [09:43:21]CheckFolder [09:43:21]dirname=/storage/ofd_packets [09:43:21]CheckFolder done [09:43:21]ProducePacketName [09:43:21]name=ofd_packets/00069237 [09:43:21]NVStorageSaveData ofd_packets/00069237 [09:43:21]File name is /storage/ofd_packets/00069237 [09:43:21]Write 301 bytes [09:43:21]NVStorageSaveData done [09:43:21]OFDSenderStorePacket done [09:43:21]KKMCreateOFDPacket done [09:43:21]NVStorageSaveData kkm_last_timestamp [09:43:21]File name is /storage/kkm_last_timestamp [09:43:21]Write 4 bytes [09:43:21]NVStorageSaveData done [09:43:21]ExternCall_PrintAddStr [09:43:21]wPrintStart [09:43:21]Write to MH i2c: 01 00 00 DD BC 99 [09:43:21]Write i2c OK [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: 01 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: 01 07 00 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: 01 07 00 DD BC 00 00 00 00 00 FF 0F AE [09:43:21]RasterBufferAndPrint [09:43:21]line Счет N : (1)2884951 [09:43:21]line ИНН: 02508201610067 [09:43:21]line Контрольно-Кассовый Чек [09:43:21]line ПРОДАЖА [09:43:21]line ТРК (МРК, ГНК) : 12 [09:43:21]line Товар: 2710124130 [09:43:21]line Аи-92-К-5 [09:43:21]line 7.480 * 66.90 [09:43:21]line = 500.41 [09:43:21]line НДС 12% НСП 1% [09:43:21]line > о реализуемом товаре [09:43:21]line ОКРУГЛЕНИЕ: -0.41 [09:43:21]line ИТОГО: 500.00 [09:43:21]line Внесено: 500.00 [09:43:21]line СДАЧА: 0.00 [09:43:21]line НСП 1% : 4.43 [09:43:21]line НДС 12% : 53.14 [09:43:21]line Наличными: 500.00 [09:43:21]line Безнал.: 0.00 [09:43:21]line Место: АЗС № 85 "Партнер Нефть" [09:43:21]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:43:21]line СНО: Общий режим [09:43:21]line Чек 82 20.10.2024 09:43 [09:43:21]line Смена: 193 ФФД: 1.0 [09:43:21]line ЗНМ: 0300000167 [09:43:21]line РНМ: 0000000000156251 [09:43:21]line Версия ККМ: v1.0 [09:43:21]line ФМ: 0000000000963346 [09:43:21]line ФД: 69237 [09:43:21]line ФПД: 238850229558807 [09:43:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094329&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69237&fm=238850229558807&tin=02508201610067®Number=0000000000156251&sum=50000 [09:43:22]OFD Sender: Processing packet 69237 [packets to send 18, broken 17] [09:43:22]ProducePacketName [09:43:22]name=ofd_packets/00069237 [09:43:22]OFD Sender: To server: pG, [09:43:22]CommunicateWithHost lk.salyk.kg:30040 [09:43:22]ConnectInit lk.salyk.kg [09:43:22]written 0, free lines is 4095 [09:43:22]Connected sock=9 [09:43:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 E5 87 07 01 84 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 C1 D0 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 75 0E 01 00 35 04 06 00 D9 3B A7 16 5E 17 12 90 0A 5A 2F C7 07 3D [09:43:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 14 BA 47 00 A7 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 75 0E 01 00 F4 03 04 00 68 7A 14 67 B6 04 01 00 00 01 77 73 AC 00 87 9B 66 [09:43:22]CommunicateWithHost err = 0 [09:43:22]CheckOFDResponse [09:43:22]1017 (14) - 77093643461234 [09:43:22]1041 (16) - 0000000000963346 [09:43:22]1040 (4) - 69237 [09:43:22]1012 (4) - 20.10.2024 03:35 [09:43:22]1206 (1) - 0 [09:43:22]OFD Sender: Remove packet 69237 [09:43:22]ProducePacketName [09:43:22]name=ofd_packets/00069237 [09:43:22]NVStorageDeleteData [09:43:22]Write to MH i2c: 01 00 00 08 BD C5 [09:43:22]Write i2c OK [09:43:22]MH_I2C_Read... [09:43:22]Read from MH i2c: 01 [09:43:22]MH_I2C_Read... [09:43:22]Read from MH i2c: 01 07 00 [09:43:22]MH_I2C_Read... [09:43:22]Read from MH i2c: 01 07 00 08 BD 00 00 00 00 00 E7 0C BF [09:43:22]RasterBufferAndPrint [09:43:22]line [09:43:22]line [09:43:22]line [09:43:22]line [09:43:22]line [09:43:22]written 0, free lines is 3310 [09:43:22]MH_Cut [09:43:22]Write to MH i2c: D1 01 00 0F BD 01 9E [09:43:22]Write i2c OK [09:43:22]MH_I2C_Read... [09:43:22]Read from MH i2c: D1 [09:43:22]MH_I2C_Read... [09:43:22]Read from MH i2c: D1 01 00 [09:43:22]MH_I2C_Read... [09:43:22]Read from MH i2c: D1 01 00 0F BD 00 9D [09:43:22]Write to MH i2c: 01 00 00 10 BD CD [09:43:22]Write i2c OK [09:43:22]MH_I2C_Read... [09:43:22]OFD Sender: No OFD packet to send [09:43:23]*** Cut start [09:43:23]*** Partial cut [09:43:23]*** CUTSNS_PIN = 1 [09:43:23]*** CUTSNS_PIN = 0 [09:43:23]*** Brake cut motor [09:43:23]Read from MH i2c: 01 [09:43:23]MH_I2C_Read... [09:43:23]*** Stop cut motor [09:43:23]*** Cut end [09:43:23]Read from MH i2c: 01 07 00 [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: 01 07 00 10 BD 00 00 00 00 00 FF 0F E2 [09:43:23]process_action close_receipt done [09:43:23]requested_data is exist [09:43:23]produce_requested_data [09:43:23]requested_item fm.sn is exist - process it [09:43:23]wFMCommunicate request_size=4 [09:43:23]MH_SAM_APDU [09:43:23]CAPDU: 80 11 00 00 [09:43:23]Write to MH i2c: E2 08 00 11 BD 80 11 00 00 00 00 00 00 48 [09:43:23]Write i2c OK [09:43:23]MH_I2C_Read... [09:43:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:23]Read from MH i2c: E2 [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: E2 17 00 [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: E2 17 00 11 BD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9A [09:43:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:43:23]wFMCommunicate OK [09:43:23]requested_item fd.num is exist - process it [09:43:23]SAM_PROTO_GetFieldsCounters [09:43:23]wFMCommunicate request_size=4 [09:43:23]MH_SAM_APDU [09:43:23]CAPDU: 80 13 00 00 [09:43:23]Write to MH i2c: E2 08 00 12 BD 80 13 00 00 00 00 00 00 4B [09:43:23]Write i2c OK [09:43:23]MH_I2C_Read... [09:43:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:24]Read from MH i2c: E2 [09:43:24]MH_I2C_Read... [09:43:24]Read from MH i2c: E2 62 00 [09:43:24]MH_I2C_Read... [09:43:24]Read from MH i2c: E2 62 00 12 BD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 75 0E 01 00 0E 04 04 00 C1 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 A1 [09:43:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 75 0E 01 00 0E 04 04 00 C1 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 [09:43:24]wFMCommunicate OK [09:43:24]SAM_PROTO_GetFieldsCounters done [09:43:24]requested_item shift.num is exist - process it [09:43:24]requested_item shift.opened is exist - process it [09:43:24]req_shift_opened [09:43:24]FM_GetShiftState [09:43:24]SAM_PROTO_GetShiftState [09:43:24]wFMCommunicate request_size=4 [09:43:24]MH_SAM_APDU [09:43:24]CAPDU: 80 13 01 00 [09:43:24]Write to MH i2c: E2 08 00 13 BD 80 13 01 00 00 00 00 00 4D [09:43:24]Write i2c OK [09:43:24]MH_I2C_Read... [09:43:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:24]Read from MH i2c: E2 [09:43:24]MH_I2C_Read... [09:43:24]Read from MH i2c: E2 0E 00 [09:43:24]MH_I2C_Read... [09:43:24]Read from MH i2c: E2 0E 00 13 BD 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 53 [09:43:24]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:43:24]wFMCommunicate OK [09:43:24]SAM_PROTO_GetShiftState done [09:43:24]FM_GetShiftState done [09:43:24]req_shift_opened done [09:43:24]requested_item shift.open_date is exist - process it [09:43:24]req_shift_open_date [09:43:24]req_shift_open_date done [09:43:24]produce_requested_data done [09:43:24]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69237,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [09:43:24]process_action_free close_receipt [09:43:24]json_value_free [09:43:24]json_value_free done [09:43:24]process_json_proto returns [09:43:24]Send response to host [09:43:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69237,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [09:43:24]free response buf [09:43:24]execute_script done [09:43:24]execute_script returns [09:43:24]free content buf [09:43:24]Sock 8.Close socket [09:43:24]Sock 8.Thread stoped [09:43:27]OFD Sender: No OFD packet to send [09:43:32]OFD Sender: No OFD packet to send [09:43:37]OFD Sender: No OFD packet to send [09:43:42]OFD Sender: No OFD packet to send [09:43:47]OFD Sender: No OFD packet to send [09:43:52]OFD Sender: No OFD packet to send [09:43:57]OFD Sender: No OFD packet to send [09:44:02]OFD Sender: No OFD packet to send [09:44:07]OFD Sender: No OFD packet to send [09:44:12]OFD Sender: No OFD packet to send [09:44:17]OFD Sender: No OFD packet to send [09:44:22]OFD Sender: No OFD packet to send [09:44:27]OFD Sender: No OFD packet to send [09:44:32]OFD Sender: No OFD packet to send [09:44:37]OFD Sender: No OFD packet to send [09:44:42]OFD Sender: No OFD packet to send [09:44:47]OFD Sender: No OFD packet to send [09:44:52]OFD Sender: No OFD packet to send [09:44:57]OFD Sender: No OFD packet to send [09:45:02]OFD Sender: No OFD packet to send [09:45:07]OFD Sender: No OFD packet to send [09:45:12]OFD Sender: No OFD packet to send [09:45:17]OFD Sender: No OFD packet to send [09:45:22]OFD Sender: No OFD packet to send [09:45:27]OFD Sender: No OFD packet to send [09:45:32]OFD Sender: No OFD packet to send [09:45:33]accept exits with 10 [09:45:33]New connection [09:45:33]New thread 3067116900 created [09:45:33]Thread 3067260260 joined [09:45:33]Waiting for new connection... [09:45:33] Sock 10.Parse request [09:45:33]Sock 10.Check first char [09:45:33]Sock 10.First char is OK [09:45:33]request: POST /json_proto HTTP/1.0 [09:45:33]Method: POST [09:45:33]URL: /json_proto [09:45:33]Method is POST - this is cgi request [09:45:33]url: /json_proto [09:45:33]query_string will be loaded in cgi processing [09:45:33]execute_cgi json_proto POST (null) [09:45:33]execute_cgi path=json_proto method=POST [09:45:33]POST find Content-Length [09:45:33]Host: 172.17.50.3:8080 [09:45:33]Content-Length: 675 [09:45:33]Content-Type: application/json [09:45:33] [09:45:33]POST finish read [09:45:33]Found Content-Length = 675 [09:45:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 8.540, "sum" : 650.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:33]execute_script... [09:45: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)2884952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 8.540, "sum" : 650.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:33]POST & json_proto [09:45:33]process_json_proto [09:45:33]json parsed OK: [09:45:33]protocol is kg_v1.0 [09:45:33]action value=close_receipt [09:45:33]process_action close_receipt [09:45:33]cmd_close_receipt [09:45:33]MH_GetDate [09:45:33]Write to MH i2c: F0 00 00 14 BD C0 [09:45:33]Write i2c OK [09:45:33]MH_I2C_Read... [09:45:33]Read from MH i2c: F0 [09:45:33]MH_I2C_Read... [09:45:33]Read from MH i2c: F0 09 00 [09:45:33]MH_I2C_Read... [09:45:33]Read from MH i2c: F0 09 00 14 BD 00 47 D1 14 67 6B 98 1E 66 E3 [09:45:33]GetLastDocTimeStamp 1729417409 [09:45:33]current date 1729417543 [09:45:33]FM_GetShiftState [09:45:33]SAM_PROTO_GetShiftState [09:45:33]wFMCommunicate request_size=4 [09:45:33]MH_SAM_APDU [09:45:33]CAPDU: 80 13 01 00 [09:45:33]Write to MH i2c: E2 08 00 15 BD 80 13 01 00 00 00 00 00 4F [09:45:33]Write i2c OK [09:45:33]MH_I2C_Read... [09:45:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:34]Read from MH i2c: E2 [09:45:34]MH_I2C_Read... [09:45:34]Read from MH i2c: E2 0E 00 [09:45:34]MH_I2C_Read... [09:45:34]Read from MH i2c: E2 0E 00 15 BD 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 55 [09:45:34]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:45:34]wFMCommunicate OK [09:45:34]SAM_PROTO_GetShiftState done [09:45:34]FM_GetShiftState done [09:45:34]opened in 1729383220 [09:45:34]opened+sec_in_day 1729469620 [09:45:34]quantity*price = 65074 [09:45:34]sum+1 = 65076 [09:45:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.75 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.76 НДС 12% : 69.11 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 83 20.10.2024 09:45 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69238 ФПД: 214659052815963 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094543&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69238&fm=214659052815963&tin=02508201610067®Number=0000000000156251&sum=65000 [09:45:35]StoreToDocumentArchive [09:45:35]shift 193 fd 69238 [09:45:35]save to /storage/0193/doc_00069238 [09:45:35]save last doc name /storage/0193/doc_00069238 to /storage/kkm_last_doc_name [09:45:35]save OK [09:45:35]Clear old archive folders... [09:45:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:45:35]tlvbuf is 00478D30 [09:45:35]SAM_PROTO_ClearQueue [09:45:35]wFMCommunicate request_size=4 [09:45:35]MH_SAM_APDU [09:45:35]CAPDU: 80 09 00 00 [09:45:35]Write to MH i2c: E2 08 00 22 BD 80 09 00 00 00 00 00 00 51 [09:45:35]Write i2c OK [09:45:35]MH_I2C_Read... [09:45:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:45:35]Read from MH i2c: E2 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 03 00 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 03 00 22 BD 00 90 00 53 [09:45:35]RAPDU: 90 00 [09:45:35]wFMCommunicate OK [09:45:35]SAM_PROTO_ClearQueue done [09:45:35]KKMCreateOFDPacket [09:45:35]OFDProtocolAddRootSTLVToBuf [09:45:35]FM_MakeSignedData [09:45:35]FM_MakeSignedData [09:45:35]SAM_PROTO_SignData [09:45:35]wFMCommunicate request_size=4 [09:45:35]MH_SAM_APDU [09:45:35]CAPDU: 80 0D 01 02 [09:45:35]Write to MH i2c: E2 08 00 23 BD 80 0D 01 02 00 00 00 00 59 [09:45:35]Write i2c OK [09:45:35]MH_I2C_Read... [09:45:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:45:35]Read from MH i2c: E2 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 03 00 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 03 00 23 BD 00 90 00 54 [09:45:35]RAPDU: 90 00 [09:45:35]wFMCommunicate OK [09:45:35]wFMCommunicate request_size=255 [09:45:35]MH_SAM_APDU [09:45:35]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 5C 21 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 33 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 47 D1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 76 0E 01 00 35 04 06 00 C3 3B 34 97 [09:45:35]Write to MH i2c: E2 02 01 24 BD 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 5C 21 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 33 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 47 D1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 76 0E 01 00 35 04 06 00 C3 3B 34 97 00 00 59 [09:45:35]Write i2c OK [09:45:35]MH_I2C_Read... [09:45:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:35]Read from MH i2c: E2 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 03 00 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 03 00 24 BD 00 90 00 55 [09:45:35]RAPDU: 90 00 [09:45:35]wFMCommunicate OK [09:45:35]wFMCommunicate request_size=7 [09:45:35]MH_SAM_APDU [09:45:35]CAPDU: 80 0D 02 02 02 46 5B [09:45:35]Write to MH i2c: E2 0A 00 25 BD 80 0D 02 02 02 00 46 5B 00 00 01 [09:45:35]Write i2c OK [09:45:35]MH_I2C_Read... [09:45:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:35]Read from MH i2c: E2 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 03 00 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 03 00 25 BD 00 90 00 56 [09:45:35]RAPDU: 90 00 [09:45:35]wFMCommunicate OK [09:45:35]wFMCommunicate request_size=4 [09:45:35]MH_SAM_APDU [09:45:35]CAPDU: 80 0D 03 02 [09:45:35]Write to MH i2c: E2 08 00 26 BD 80 0D 03 02 00 00 00 00 5E [09:45:35]Write i2c OK [09:45:35]MH_I2C_Read... [09:45:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:45:35]Read from MH i2c: E2 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 0B 00 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 0B 00 26 BD 00 99 F8 81 C4 A2 A9 7B E4 90 00 DF [09:45:35]RAPDU: 99 F8 81 C4 A2 A9 7B E4 90 00 [09:45:35]wFMCommunicate OK [09:45:35]SAM_PROTO_SignData done [09:45:35]FM_MakeSignedData done [09:45:35]CreateOFDProtocolMessage [09:45:35]wFMCommunicate request_size=4 [09:45:35]MH_SAM_APDU [09:45:35]CAPDU: 80 11 00 00 [09:45:35]Write to MH i2c: E2 08 00 27 BD 80 11 00 00 00 00 00 00 5E [09:45:35]Write i2c OK [09:45:35]MH_I2C_Read... [09:45:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:35]Read from MH i2c: E2 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 17 00 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 17 00 27 BD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B0 [09:45:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:45:35]wFMCommunicate OK [09:45:35]CreateOFDProtocolMessage done [09:45:35]OFDSenderStorePacket 69238 [09:45:35]StoreOFDPacket docnum=69238 [09:45:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 3B 69 04 01 17 1D 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 5C 21 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 33 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 47 D1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 76 0E 01 00 35 04 06 00 C3 3B 34 97 46 5B 99 F8 81 C4 A2 A9 7B E4 [09:45:35]CheckFolder [09:45:35]dirname=/storage/ofd_packets [09:45:35]CheckFolder done [09:45:35]ProducePacketName [09:45:35]name=ofd_packets/00069238 [09:45:35]NVStorageSaveData ofd_packets/00069238 [09:45:35]File name is /storage/ofd_packets/00069238 [09:45:35]Write 298 bytes [09:45:35]NVStorageSaveData done [09:45:35]OFDSenderStorePacket done [09:45:35]KKMCreateOFDPacket done [09:45:35]NVStorageSaveData kkm_last_timestamp [09:45:35]File name is /storage/kkm_last_timestamp [09:45:35]Write 4 bytes [09:45:35]NVStorageSaveData done [09:45:35]ExternCall_PrintAddStr [09:45:35]wPrintStart [09:45:35]Write to MH i2c: 01 00 00 28 BD E5 [09:45:35]Write i2c OK [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: 01 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: 01 07 00 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: 01 07 00 28 BD 00 00 00 00 00 FF 0F FA [09:45:35]RasterBufferAndPrint [09:45:35]line Счет N : (1)2884952 [09:45:35]line ИНН: 02508201610067 [09:45:35]line Контрольно-Кассовый Чек [09:45:35]line ПРОДАЖА [09:45:35]line ТРК (МРК, ГНК) : 51 [09:45:35]line Товар: 2710194210 [09:45:35]line ДТ-К-5 [09:45:35]line 8.540 * 76.20 [09:45:35]line = 650.75 [09:45:35]line НДС 12% НСП 1% [09:45:35]line > о реализуемом товаре [09:45:35]line ОКРУГЛЕНИЕ: -0.75 [09:45:35]line ИТОГО: 650.00 [09:45:35]line Внесено: 650.00 [09:45:35]line СДАЧА: 0.00 [09:45:35]line НСП 1% : 5.76 [09:45:35]line НДС 12% : 69.11 [09:45:35]line Наличными: 650.00 [09:45:35]line Безнал.: 0.00 [09:45:35]line Место: АЗС № 85 "Партнер Нефть" [09:45:35]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:45:35]line СНО: Общий режим [09:45:35]line Чек 83 20.10.2024 09:45 [09:45:35]line Смена: 193 ФФД: 1.0 [09:45:35]line ЗНМ: 0300000167 [09:45:35]line РНМ: 0000000000156251 [09:45:35]line Версия ККМ: v1.0 [09:45:35]line ФМ: 0000000000963346 [09:45:35]line ФД: 69238 [09:45:35]line ФПД: 214659052815963 [09:45:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094543&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69238&fm=214659052815963&tin=02508201610067®Number=0000000000156251&sum=65000 [09:45:36]OFD Sender: Processing packet 69238 [packets to send 18, broken 17] [09:45:36]ProducePacketName [09:45:36]name=ofd_packets/00069238 [09:45:36]OFD Sender: To server: pG, [09:45:36]CommunicateWithHost lk.salyk.kg:30040 [09:45:36]ConnectInit lk.salyk.kg [09:45:36]written 0, free lines is 4095 [09:45:36]Connected sock=9 [09:45:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 3B 69 04 01 17 1D 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 5C 21 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 33 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 47 D1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 76 0E 01 00 35 04 06 00 C3 3B 34 97 46 5B 99 F8 81 C4 A2 A9 7B E4 [09:45:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 06 43 47 00 0A 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 76 0E 01 00 F4 03 04 00 EE 7A 14 67 B6 04 01 00 00 3D 8F 01 E6 21 5C 16 0A [09:45:36]CommunicateWithHost err = 0 [09:45:36]CheckOFDResponse [09:45:36]1017 (14) - 77093643461234 [09:45:36]1041 (16) - 0000000000963346 [09:45:36]1040 (4) - 69238 [09:45:36]1012 (4) - 20.10.2024 03:37 [09:45:36]1206 (1) - 0 [09:45:36]OFD Sender: Remove packet 69238 [09:45:36]ProducePacketName [09:45:36]name=ofd_packets/00069238 [09:45:36]NVStorageDeleteData [09:45:36]Write to MH i2c: 01 00 00 53 BD 10 [09:45:36]Write i2c OK [09:45:36]MH_I2C_Read... [09:45:36]Read from MH i2c: 01 [09:45:36]MH_I2C_Read... [09:45:36]Read from MH i2c: 01 07 00 [09:45:36]MH_I2C_Read... [09:45:36]Read from MH i2c: 01 07 00 53 BD 00 00 00 00 00 E4 0C 07 [09:45:36]RasterBufferAndPrint [09:45:36]line [09:45:36]line [09:45:36]line [09:45:36]line [09:45:36]line [09:45:36]written 0, free lines is 3306 [09:45:36]MH_Cut [09:45:36]Write to MH i2c: D1 01 00 5A BD 01 E9 [09:45:36]Write i2c OK [09:45:36]MH_I2C_Read... [09:45:36]Read from MH i2c: D1 [09:45:36]MH_I2C_Read... [09:45:36]Read from MH i2c: D1 01 00 [09:45:36]MH_I2C_Read... [09:45:36]Read from MH i2c: D1 01 00 5A BD 00 E8 [09:45:36]Write to MH i2c: 01 00 00 5B BD 18 [09:45:36]Write i2c OK [09:45:36]MH_I2C_Read... [09:45:36]OFD Sender: No OFD packet to send [09:45:37]*** Cut start [09:45:37]*** Partial cut [09:45:37]*** CUTSNS_PIN = 1 [09:45:37]*** CUTSNS_PIN = 0 [09:45:37]*** Brake cut motor [09:45:37]Read from MH i2c: 01 [09:45:37]MH_I2C_Read... [09:45:37]*** Stop cut motor [09:45:37]*** Cut end [09:45:37]Read from MH i2c: 01 07 00 [09:45:37]MH_I2C_Read... [09:45:37]Read from MH i2c: 01 07 00 5B BD 00 00 00 00 00 FF 0F 2D [09:45:37]process_action close_receipt done [09:45:37]requested_data is exist [09:45:37]produce_requested_data [09:45:37]requested_item fm.sn is exist - process it [09:45:37]wFMCommunicate request_size=4 [09:45:37]MH_SAM_APDU [09:45:37]CAPDU: 80 11 00 00 [09:45:37]Write to MH i2c: E2 08 00 5C BD 80 11 00 00 00 00 00 00 93 [09:45:37]Write i2c OK [09:45:37]MH_I2C_Read... [09:45:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:37]Read from MH i2c: E2 [09:45:37]MH_I2C_Read... [09:45:37]Read from MH i2c: E2 17 00 [09:45:37]MH_I2C_Read... [09:45:37]Read from MH i2c: E2 17 00 5C BD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E5 [09:45:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:45:37]wFMCommunicate OK [09:45:37]requested_item fd.num is exist - process it [09:45:37]SAM_PROTO_GetFieldsCounters [09:45:37]wFMCommunicate request_size=4 [09:45:37]MH_SAM_APDU [09:45:37]CAPDU: 80 13 00 00 [09:45:37]Write to MH i2c: E2 08 00 5D BD 80 13 00 00 00 00 00 00 96 [09:45:37]Write i2c OK [09:45:37]MH_I2C_Read... [09:45:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:45:37]Read from MH i2c: E2 [09:45:37]MH_I2C_Read... [09:45:37]Read from MH i2c: E2 62 00 [09:45:37]MH_I2C_Read... [09:45:37]Read from MH i2c: E2 62 00 5D BD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 76 0E 01 00 0E 04 04 00 C1 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 F0 [09:45:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 76 0E 01 00 0E 04 04 00 C1 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 [09:45:37]wFMCommunicate OK [09:45:37]SAM_PROTO_GetFieldsCounters done [09:45:37]requested_item shift.num is exist - process it [09:45:37]requested_item shift.opened is exist - process it [09:45:37]req_shift_opened [09:45:37]FM_GetShiftState [09:45:37]SAM_PROTO_GetShiftState [09:45:37]wFMCommunicate request_size=4 [09:45:37]MH_SAM_APDU [09:45:37]CAPDU: 80 13 01 00 [09:45:37]Write to MH i2c: E2 08 00 5E BD 80 13 01 00 00 00 00 00 98 [09:45:37]Write i2c OK [09:45:37]MH_I2C_Read... [09:45:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:38]Read from MH i2c: E2 [09:45:38]MH_I2C_Read... [09:45:38]Read from MH i2c: E2 0E 00 [09:45:38]MH_I2C_Read... [09:45:38]Read from MH i2c: E2 0E 00 5E BD 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 9E [09:45:38]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:45:38]wFMCommunicate OK [09:45:38]SAM_PROTO_GetShiftState done [09:45:38]FM_GetShiftState done [09:45:38]req_shift_opened done [09:45:38]requested_item shift.open_date is exist - process it [09:45:38]req_shift_open_date [09:45:38]req_shift_open_date done [09:45:38]produce_requested_data done [09:45:38]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69238,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [09:45:38]process_action_free close_receipt [09:45:38]json_value_free [09:45:38]json_value_free done [09:45:38]process_json_proto returns [09:45:38]Send response to host [09:45:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69238,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [09:45:38]free response buf [09:45:38]execute_script done [09:45:38]execute_script returns [09:45:38]free content buf [09:45:38]Sock 10.Close socket [09:45:38]Sock 10.Thread stoped [09:45:41]OFD Sender: No OFD packet to send [09:45:46]accept exits with 8 [09:45:46]New connection [09:45:46]New thread 3067260260 created [09:45:46]Thread 3067116900 joined [09:45:46]Waiting for new connection... [09:45:46] Sock 8.Parse request [09:45:46]Sock 8.Check first char [09:45:46]Sock 8.First char is OK [09:45:46]request: POST /json_proto HTTP/1.0 [09:45:46]Method: POST [09:45:46]URL: /json_proto [09:45:46]Method is POST - this is cgi request [09:45:46]url: /json_proto [09:45:46]query_string will be loaded in cgi processing [09:45:46]execute_cgi json_proto POST (null) [09:45:46]execute_cgi path=json_proto method=POST [09:45:46]POST find Content-Length [09:45:46]Host: 172.17.50.3:8080 [09:45:46]Content-Length: 643 [09:45:46]Content-Type: application/json [09:45:46] [09:45:46]POST finish read [09:45:46]Found Content-Length = 643 [09:45:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.000, "sum" : 1338.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1338.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:46]execute_script... [09:45: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)2884953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.000, "sum" : 1338.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1338.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:46]POST & json_proto [09:45:46]process_json_proto [09:45:46]json parsed OK: [09:45:46]protocol is kg_v1.0 [09:45:46]action value=close_receipt [09:45:46]process_action close_receipt [09:45:46]cmd_close_receipt [09:45:46]MH_GetDate [09:45:46]Write to MH i2c: F0 00 00 5F BD 0B [09:45:46]Write i2c OK [09:45:46]MH_I2C_Read... [09:45:46]Read from MH i2c: F0 [09:45:46]MH_I2C_Read... [09:45:46]Read from MH i2c: F0 09 00 [09:45:46]MH_I2C_Read... [09:45:46]Read from MH i2c: F0 09 00 5F BD 00 54 D1 14 67 6B 98 1E 66 3B [09:45:46]GetLastDocTimeStamp 1729417543 [09:45:46]current date 1729417556 [09:45:46]FM_GetShiftState [09:45:46]SAM_PROTO_GetShiftState [09:45:46]wFMCommunicate request_size=4 [09:45:46]MH_SAM_APDU [09:45:46]CAPDU: 80 13 01 00 [09:45:46]Write to MH i2c: E2 08 00 60 BD 80 13 01 00 00 00 00 00 9A [09:45:46]Write i2c OK [09:45:46]MH_I2C_Read... [09:45:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:46]Read from MH i2c: E2 [09:45:46]MH_I2C_Read... [09:45:46]Read from MH i2c: E2 0E 00 [09:45:46]MH_I2C_Read... [09:45:46]Read from MH i2c: E2 0E 00 60 BD 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 A0 [09:45:46]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:45:46]wFMCommunicate OK [09:45:46]SAM_PROTO_GetShiftState done [09:45:46]FM_GetShiftState done [09:45:46]opened in 1729383220 [09:45:46]opened+sec_in_day 1729469620 [09:45:46]quantity*price = 133800 [09:45:46]sum+1 = 133801 [09:45:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1338.00 НСП 1% : 11.84 НДС 12% : 142.09 Наличными: 1338.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 84 20.10.2024 09:45 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69239 ФПД: 132433646979193 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094556&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69239&fm=132433646979193&tin=02508201610067®Number=0000000000156251&sum=133800 [09:45:47]StoreToDocumentArchive [09:45:47]shift 193 fd 69239 [09:45:47]save to /storage/0193/doc_00069239 [09:45:47]save last doc name /storage/0193/doc_00069239 to /storage/kkm_last_doc_name [09:45:47]save OK [09:45:47]Clear old archive folders... [09:45:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:45:47]tlvbuf is B6F25350 [09:45:47]SAM_PROTO_ClearQueue [09:45:47]wFMCommunicate request_size=4 [09:45:47]MH_SAM_APDU [09:45:47]CAPDU: 80 09 00 00 [09:45:47]Write to MH i2c: E2 08 00 6D BD 80 09 00 00 00 00 00 00 9C [09:45:47]Write i2c OK [09:45:47]MH_I2C_Read... [09:45:47]Read from MH i2c: E2 [09:45:47]MH_I2C_Read... [09:45:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:45:47]Read from MH i2c: E2 03 00 [09:45:47]MH_I2C_Read... [09:45:47]Read from MH i2c: E2 03 00 6D BD 00 90 00 9E [09:45:47]RAPDU: 90 00 [09:45:47]wFMCommunicate OK [09:45:47]SAM_PROTO_ClearQueue done [09:45:47]KKMCreateOFDPacket [09:45:47]OFDProtocolAddRootSTLVToBuf [09:45:47]FM_MakeSignedData [09:45:47]FM_MakeSignedData [09:45:47]SAM_PROTO_SignData [09:45:47]wFMCommunicate request_size=4 [09:45:47]MH_SAM_APDU [09:45:47]CAPDU: 80 0D 01 02 [09:45:47]Write to MH i2c: E2 08 00 6E BD 80 0D 01 02 00 00 00 00 A4 [09:45:47]Write i2c OK [09:45:47]MH_I2C_Read... [09:45:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:45:47]Read from MH i2c: E2 [09:45:47]MH_I2C_Read... [09:45:47]Read from MH i2c: E2 03 00 [09:45:47]MH_I2C_Read... [09:45:47]Read from MH i2c: E2 03 00 6E BD 00 90 00 9F [09:45:47]RAPDU: 90 00 [09:45:47]wFMCommunicate OK [09:45:47]wFMCommunicate request_size=255 [09:45:47]MH_SAM_APDU [09:45:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 02 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 54 D1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 77 0E 01 00 35 04 06 00 78 [09:45:47]Write to MH i2c: E2 02 01 6F BD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 02 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 54 D1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 77 0E 01 00 35 04 06 00 78 00 00 7D [09:45:47]Write i2c OK [09:45:47]MH_I2C_Read... [09:45:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:47]Read from MH i2c: E2 [09:45:47]MH_I2C_Read... [09:45:47]Read from MH i2c: E2 03 00 [09:45:47]MH_I2C_Read... [09:45:47]Read from MH i2c: E2 03 00 6F BD 00 90 00 A0 [09:45:47]RAPDU: 90 00 [09:45:47]wFMCommunicate OK [09:45:47]wFMCommunicate request_size=10 [09:45:47]MH_SAM_APDU [09:45:47]CAPDU: 80 0D 02 02 05 72 9C 7C 08 79 [09:45:47]Write to MH i2c: E2 0D 00 70 BD 80 0D 02 02 05 00 72 9C 7C 08 79 00 00 BC [09:45:47]Write i2c OK [09:45:47]MH_I2C_Read... [09:45:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:47]Read from MH i2c: E2 [09:45:47]MH_I2C_Read... [09:45:47]Read from MH i2c: E2 03 00 [09:45:47]MH_I2C_Read... [09:45:47]Read from MH i2c: E2 03 00 70 BD 00 90 00 A1 [09:45:47]RAPDU: 90 00 [09:45:47]wFMCommunicate OK [09:45:47]wFMCommunicate request_size=4 [09:45:47]MH_SAM_APDU [09:45:47]CAPDU: 80 0D 03 02 [09:45:47]Write to MH i2c: E2 08 00 71 BD 80 0D 03 02 00 00 00 00 A9 [09:45:47]Write i2c OK [09:45:47]MH_I2C_Read... [09:45:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:45:48]Read from MH i2c: E2 [09:45:48]MH_I2C_Read... [09:45:48]Read from MH i2c: E2 0B 00 [09:45:48]MH_I2C_Read... [09:45:48]Read from MH i2c: E2 0B 00 71 BD 00 9F 1E 2C 3C 62 09 FB C7 90 00 FC [09:45:48]RAPDU: 9F 1E 2C 3C 62 09 FB C7 90 00 [09:45:48]wFMCommunicate OK [09:45:48]SAM_PROTO_SignData done [09:45:48]FM_MakeSignedData done [09:45:48]CreateOFDProtocolMessage [09:45:48]wFMCommunicate request_size=4 [09:45:48]MH_SAM_APDU [09:45:48]CAPDU: 80 11 00 00 [09:45:48]Write to MH i2c: E2 08 00 72 BD 80 11 00 00 00 00 00 00 A9 [09:45:48]Write i2c OK [09:45:48]MH_I2C_Read... [09:45:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:48]Read from MH i2c: E2 [09:45:48]MH_I2C_Read... [09:45:48]Read from MH i2c: E2 17 00 [09:45:48]MH_I2C_Read... [09:45:48]Read from MH i2c: E2 17 00 72 BD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FB [09:45:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:45:48]wFMCommunicate OK [09:45:48]CreateOFDProtocolMessage done [09:45:48]OFDSenderStorePacket 69239 [09:45:48]StoreOFDPacket docnum=69239 [09:45:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 95 01 07 01 F5 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 02 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 54 D1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 77 0E 01 00 35 04 06 00 78 72 9C 7C 08 79 9F 1E 2C 3C 62 09 FB C7 [09:45:48]CheckFolder [09:45:48]dirname=/storage/ofd_packets [09:45:48]CheckFolder done [09:45:48]ProducePacketName [09:45:48]name=ofd_packets/00069239 [09:45:48]NVStorageSaveData ofd_packets/00069239 [09:45:48]File name is /storage/ofd_packets/00069239 [09:45:48]Write 301 bytes [09:45:48]NVStorageSaveData done [09:45:48]OFDSenderStorePacket done [09:45:48]KKMCreateOFDPacket done [09:45:48]NVStorageSaveData kkm_last_timestamp [09:45:48]File name is /storage/kkm_last_timestamp [09:45:48]Write 4 bytes [09:45:48]NVStorageSaveData done [09:45:48]ExternCall_PrintAddStr [09:45:48]wPrintStart [09:45:48]Write to MH i2c: 01 00 00 73 BD 30 [09:45:48]Write i2c OK [09:45:48]MH_I2C_Read... [09:45:48]Read from MH i2c: 01 [09:45:48]MH_I2C_Read... [09:45:48]Read from MH i2c: 01 07 00 [09:45:48]MH_I2C_Read... [09:45:48]Read from MH i2c: 01 07 00 73 BD 00 00 00 00 00 FF 0F 45 [09:45:48]RasterBufferAndPrint [09:45:48]line Счет N : (1)2884953 [09:45:48]line ИНН: 02508201610067 [09:45:48]line Контрольно-Кассовый Чек [09:45:48]line ПРОДАЖА [09:45:48]line ТРК (МРК, ГНК) : 42 [09:45:48]line Товар: 2710124130 [09:45:48]line Аи-92-К-5 [09:45:48]line 20.000 * 66.90 [09:45:48]line = 1338.00 [09:45:48]line НДС 12% НСП 1% [09:45:48]line > о реализуемом товаре [09:45:48]line ИТОГО: 1338.00 [09:45:48]line НСП 1% : 11.84 [09:45:48]line НДС 12% : 142.09 [09:45:48]line Наличными: 1338.00 [09:45:48]line Безнал.: 0.00 [09:45:48]line Место: АЗС № 85 "Партнер Нефть" [09:45:48]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:45:48]line СНО: Общий режим [09:45:48]line Чек 84 20.10.2024 09:45 [09:45:48]line Смена: 193 ФФД: 1.0 [09:45:48]line ЗНМ: 0300000167 [09:45:48]line РНМ: 0000000000156251 [09:45:48]line Версия ККМ: v1.0 [09:45:48]line ФМ: 0000000000963346 [09:45:48]line ФД: 69239 [09:45:48]line ФПД: 132433646979193 [09:45:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094556&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69239&fm=132433646979193&tin=02508201610067®Number=0000000000156251&sum=133800 [09:45:48]written 0, free lines is 4095 [09:45:48]OFD Sender: Processing packet 69239 [packets to send 18, broken 17] [09:45:48]ProducePacketName [09:45:48]name=ofd_packets/00069239 [09:45:48]OFD Sender: To server: pG, [09:45:48]CommunicateWithHost lk.salyk.kg:30040 [09:45:48]ConnectInit lk.salyk.kg [09:45:48]Connected sock=10 [09:45:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 95 01 07 01 F5 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 02 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 54 D1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 77 0E 01 00 35 04 06 00 78 72 9C 7C 08 79 9F 1E 2C 3C 62 09 FB C7 [09:45:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 BA 2E 47 00 3A C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 77 0E 01 00 F4 03 04 00 FA 7A 14 67 B6 04 01 00 00 AD DC 0C 60 03 4A 22 63 [09:45:48]CommunicateWithHost err = 0 [09:45:48]CheckOFDResponse [09:45:48]1017 (14) - 77093643461234 [09:45:48]1041 (16) - 0000000000963346 [09:45:48]1040 (4) - 69239 [09:45:48]1012 (4) - 20.10.2024 03:37 [09:45:48]1206 (1) - 0 [09:45:48]OFD Sender: Remove packet 69239 [09:45:48]ProducePacketName [09:45:48]name=ofd_packets/00069239 [09:45:48]NVStorageDeleteData [09:45:48]Write to MH i2c: 01 00 00 9B BD 58 [09:45:48]Write i2c OK [09:45:48]MH_I2C_Read... [09:45:48]Read from MH i2c: 01 [09:45:48]MH_I2C_Read... [09:45:48]Read from MH i2c: 01 07 00 [09:45:48]MH_I2C_Read... [09:45:48]Read from MH i2c: 01 07 00 9B BD 00 00 00 00 00 20 0D 8C [09:45:48]RasterBufferAndPrint [09:45:48]line [09:45:48]line [09:45:48]line [09:45:48]line [09:45:48]line [09:45:48]written 0, free lines is 3367 [09:45:48]MH_Cut [09:45:48]Write to MH i2c: D1 01 00 A2 BD 01 31 [09:45:48]Write i2c OK [09:45:48]MH_I2C_Read... [09:45:48]Read from MH i2c: D1 [09:45:48]MH_I2C_Read... [09:45:48]Read from MH i2c: D1 01 00 [09:45:48]MH_I2C_Read... [09:45:48]Read from MH i2c: D1 01 00 A2 BD 00 30 [09:45:48]Write to MH i2c: 01 00 00 A3 BD 60 [09:45:48]Write i2c OK [09:45:48]MH_I2C_Read... [09:45:48]OFD Sender: No OFD packet to send [09:45:49]*** Cut start [09:45:49]*** Partial cut [09:45:49]*** CUTSNS_PIN = 1 [09:45:49]*** CUTSNS_PIN = 0 [09:45:49]*** Brake cut motor [09:45:49]Read from MH i2c: 01 [09:45:49]MH_I2C_Read... [09:45:49]*** Stop cut motor [09:45:49]*** Cut end [09:45:49]Read from MH i2c: 01 07 00 [09:45:49]MH_I2C_Read... [09:45:49]Read from MH i2c: 01 07 00 A3 BD 00 00 00 00 00 FF 0F 75 [09:45:49]process_action close_receipt done [09:45:49]requested_data is exist [09:45:49]produce_requested_data [09:45:49]requested_item fm.sn is exist - process it [09:45:49]wFMCommunicate request_size=4 [09:45:49]MH_SAM_APDU [09:45:49]CAPDU: 80 11 00 00 [09:45:49]Write to MH i2c: E2 08 00 A4 BD 80 11 00 00 00 00 00 00 DB [09:45:49]Write i2c OK [09:45:49]MH_I2C_Read... [09:45:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:49]Read from MH i2c: E2 [09:45:49]MH_I2C_Read... [09:45:49]Read from MH i2c: E2 17 00 [09:45:49]MH_I2C_Read... [09:45:49]Read from MH i2c: E2 17 00 A4 BD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2D [09:45:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:45:49]wFMCommunicate OK [09:45:49]requested_item fd.num is exist - process it [09:45:49]SAM_PROTO_GetFieldsCounters [09:45:49]wFMCommunicate request_size=4 [09:45:49]MH_SAM_APDU [09:45:49]CAPDU: 80 13 00 00 [09:45:49]Write to MH i2c: E2 08 00 A5 BD 80 13 00 00 00 00 00 00 DE [09:45:49]Write i2c OK [09:45:49]MH_I2C_Read... [09:45:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:45:49]Read from MH i2c: E2 [09:45:49]MH_I2C_Read... [09:45:49]Read from MH i2c: E2 62 00 [09:45:49]MH_I2C_Read... [09:45:49]Read from MH i2c: E2 62 00 A5 BD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 77 0E 01 00 0E 04 04 00 C1 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 3C [09:45:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 77 0E 01 00 0E 04 04 00 C1 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 [09:45:50]wFMCommunicate OK [09:45:50]SAM_PROTO_GetFieldsCounters done [09:45:50]requested_item shift.num is exist - process it [09:45:50]requested_item shift.opened is exist - process it [09:45:50]req_shift_opened [09:45:50]FM_GetShiftState [09:45:50]SAM_PROTO_GetShiftState [09:45:50]wFMCommunicate request_size=4 [09:45:50]MH_SAM_APDU [09:45:50]CAPDU: 80 13 01 00 [09:45:50]Write to MH i2c: E2 08 00 A6 BD 80 13 01 00 00 00 00 00 E0 [09:45:50]Write i2c OK [09:45:50]MH_I2C_Read... [09:45:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:50]Read from MH i2c: E2 [09:45:50]MH_I2C_Read... [09:45:50]Read from MH i2c: E2 0E 00 [09:45:50]MH_I2C_Read... [09:45:50]Read from MH i2c: E2 0E 00 A6 BD 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 E6 [09:45:50]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:45:50]wFMCommunicate OK [09:45:50]SAM_PROTO_GetShiftState done [09:45:50]FM_GetShiftState done [09:45:50]req_shift_opened done [09:45:50]requested_item shift.open_date is exist - process it [09:45:50]req_shift_open_date [09:45:50]req_shift_open_date done [09:45:50]produce_requested_data done [09:45:50]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69239,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [09:45:50]process_action_free close_receipt [09:45:50]json_value_free [09:45:50]json_value_free done [09:45:50]process_json_proto returns [09:45:50]Send response to host [09:45:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69239,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [09:45:50]free response buf [09:45:50]execute_script done [09:45:50]execute_script returns [09:45:50]free content buf [09:45:50]Sock 8.Close socket [09:45:50]Sock 8.Thread stoped [09:45:53]OFD Sender: No OFD packet to send [09:45:58]OFD Sender: No OFD packet to send [09:46:03]OFD Sender: No OFD packet to send [09:46:08]OFD Sender: No OFD packet to send [09:46:13]OFD Sender: No OFD packet to send [09:46:18]OFD Sender: No OFD packet to send [09:46:23]OFD Sender: No OFD packet to send [09:46:28]OFD Sender: No OFD packet to send [09:46:33]OFD Sender: No OFD packet to send [09:46:38]OFD Sender: No OFD packet to send [09:46:43]OFD Sender: No OFD packet to send [09:46:48]OFD Sender: No OFD packet to send [09:46:53]OFD Sender: No OFD packet to send [09:46:58]OFD Sender: No OFD packet to send [09:47:03]OFD Sender: No OFD packet to send [09:47:08]OFD Sender: No OFD packet to send [09:47:13]OFD Sender: No OFD packet to send [09:47:18]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:48:04]OFD Sender: No OFD packet to send [09:48:09]OFD Sender: No OFD packet to send [09:48:14]OFD Sender: No OFD packet to send [09:48:19]OFD Sender: No OFD packet to send [09:48:24]OFD Sender: No OFD packet to send [09:48:29]OFD Sender: No OFD packet to send [09:48:34]OFD Sender: No OFD packet to send [09:48:39]OFD Sender: No OFD packet to send [09:48:44]OFD Sender: No OFD packet to send [09:48:49]OFD Sender: No OFD packet to send [09:48:54]OFD Sender: No OFD packet to send [09:48:59]OFD Sender: No OFD packet to send [09:49:04]OFD Sender: No OFD packet to send [09:49:09]OFD Sender: No OFD packet to send [09:49:14]OFD Sender: No OFD packet to send [09:49:19]OFD Sender: No OFD packet to send [09:49:24]OFD Sender: No OFD packet to send [09:49:29]OFD Sender: No OFD packet to send [09:49:34]OFD Sender: No OFD packet to send [09:49:39]OFD Sender: No OFD packet to send [09:49:44]OFD Sender: No OFD packet to send [09:49:49]OFD Sender: No OFD packet to send [09:49:51]accept exits with 9 [09:49:51]New connection [09:49:51]New thread 3067116900 created [09:49:51]Thread 3067260260 joined [09:49:51]Waiting for new connection... [09:49:51] Sock 9.Parse request [09:49:51]Sock 9.Check first char [09:49:51]Sock 9.First char is OK [09:49:51]request: POST /json_proto HTTP/1.0 [09:49:51]Method: POST [09:49:51]URL: /json_proto [09:49:51]Method is POST - this is cgi request [09:49:51]url: /json_proto [09:49:51]query_string will be loaded in cgi processing [09:49:51]execute_cgi json_proto POST (null) [09:49:51]execute_cgi path=json_proto method=POST [09:49:51]POST find Content-Length [09:49:51]Host: 172.17.50.3:8080 [09:49:51]Content-Length: 680 [09:49:51]Content-Type: application/json [09:49:51] [09:49:51]POST finish read [09:49:51]Found Content-Length = 680 [09:49:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:51]execute_script... [09:49: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)2884954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:51]POST & json_proto [09:49:51]process_json_proto [09:49:51]json parsed OK: [09:49:51]protocol is kg_v1.0 [09:49:51]action value=close_receipt [09:49:51]process_action close_receipt [09:49:51]cmd_close_receipt [09:49:51]MH_GetDate [09:49:51]Write to MH i2c: F0 00 00 A7 BD 53 [09:49:51]Write i2c OK [09:49:51]MH_I2C_Read... [09:49:51]Read from MH i2c: F0 [09:49:51]MH_I2C_Read... [09:49:51]Read from MH i2c: F0 09 00 [09:49:51]MH_I2C_Read... [09:49:51]Read from MH i2c: F0 09 00 A7 BD 00 49 D2 14 67 6B 98 1E 66 79 [09:49:51]GetLastDocTimeStamp 1729417556 [09:49:51]current date 1729417801 [09:49:51]FM_GetShiftState [09:49:51]SAM_PROTO_GetShiftState [09:49:51]wFMCommunicate request_size=4 [09:49:51]MH_SAM_APDU [09:49:51]CAPDU: 80 13 01 00 [09:49:51]Write to MH i2c: E2 08 00 A8 BD 80 13 01 00 00 00 00 00 E2 [09:49:51]Write i2c OK [09:49:51]MH_I2C_Read... [09:49:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:51]Read from MH i2c: E2 [09:49:51]MH_I2C_Read... [09:49:51]Read from MH i2c: E2 0E 00 [09:49:51]MH_I2C_Read... [09:49:51]Read from MH i2c: E2 0E 00 A8 BD 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 E8 [09:49:51]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:49:51]wFMCommunicate OK [09:49:51]SAM_PROTO_GetShiftState done [09:49:51]FM_GetShiftState done [09:49:51]opened in 1729383220 [09:49:51]opened+sec_in_day 1729469620 [09:49:51]quantity*price = 120015 [09:49:51]sum+1 = 120016 [09:49:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 85 20.10.2024 09:50 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69240 ФПД: 169140078921469 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095001&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69240&fm=169140078921469&tin=02508201610067®Number=0000000000156251&sum=120000 [09:49:52]StoreToDocumentArchive [09:49:52]shift 193 fd 69240 [09:49:52]save to /storage/0193/doc_00069240 [09:49:52]save last doc name /storage/0193/doc_00069240 to /storage/kkm_last_doc_name [09:49:52]save OK [09:49:52]Clear old archive folders... [09:49:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:49:52]tlvbuf is 004514E0 [09:49:52]SAM_PROTO_ClearQueue [09:49:52]wFMCommunicate request_size=4 [09:49:52]MH_SAM_APDU [09:49:52]CAPDU: 80 09 00 00 [09:49:52]Write to MH i2c: E2 08 00 B5 BD 80 09 00 00 00 00 00 00 E4 [09:49:52]Write i2c OK [09:49:52]MH_I2C_Read... [09:49:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:49:52]Read from MH i2c: E2 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 03 00 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 03 00 B5 BD 00 90 00 E6 [09:49:52]RAPDU: 90 00 [09:49:52]wFMCommunicate OK [09:49:52]SAM_PROTO_ClearQueue done [09:49:52]KKMCreateOFDPacket [09:49:52]OFDProtocolAddRootSTLVToBuf [09:49:52]FM_MakeSignedData [09:49:52]FM_MakeSignedData [09:49:52]SAM_PROTO_SignData [09:49:52]wFMCommunicate request_size=4 [09:49:52]MH_SAM_APDU [09:49:52]CAPDU: 80 0D 01 02 [09:49:52]Write to MH i2c: E2 08 00 B6 BD 80 0D 01 02 00 00 00 00 EC [09:49:52]Write i2c OK [09:49:52]MH_I2C_Read... [09:49:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:49:52]Read from MH i2c: E2 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 03 00 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 03 00 B6 BD 00 90 00 E7 [09:49:52]RAPDU: 90 00 [09:49:52]wFMCommunicate OK [09:49:52]wFMCommunicate request_size=255 [09:49:52]MH_SAM_APDU [09:49:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 49 D2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 78 0E 01 00 35 04 06 00 99 D4 FE 52 [09:49:52]Write to MH i2c: E2 02 01 B7 BD 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 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 49 D2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 78 0E 01 00 35 04 06 00 99 D4 FE 52 00 00 C9 [09:49:52]Write i2c OK [09:49:52]MH_I2C_Read... [09:49:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:52]Read from MH i2c: E2 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 03 00 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 03 00 B7 BD 00 90 00 E8 [09:49:52]RAPDU: 90 00 [09:49:52]wFMCommunicate OK [09:49:52]wFMCommunicate request_size=7 [09:49:52]MH_SAM_APDU [09:49:52]CAPDU: 80 0D 02 02 02 46 FD [09:49:52]Write to MH i2c: E2 0A 00 B8 BD 80 0D 02 02 02 00 46 FD 00 00 36 [09:49:52]Write i2c OK [09:49:52]MH_I2C_Read... [09:49:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:52]Read from MH i2c: E2 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 03 00 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 03 00 B8 BD 00 90 00 E9 [09:49:52]RAPDU: 90 00 [09:49:52]wFMCommunicate OK [09:49:52]wFMCommunicate request_size=4 [09:49:52]MH_SAM_APDU [09:49:52]CAPDU: 80 0D 03 02 [09:49:52]Write to MH i2c: E2 08 00 B9 BD 80 0D 03 02 00 00 00 00 F1 [09:49:52]Write i2c OK [09:49:52]MH_I2C_Read... [09:49:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:49:53]Read from MH i2c: E2 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 0B 00 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 0B 00 B9 BD 00 65 D5 FD D5 B7 3C A9 C4 90 00 5E [09:49:53]RAPDU: 65 D5 FD D5 B7 3C A9 C4 90 00 [09:49:53]wFMCommunicate OK [09:49:53]SAM_PROTO_SignData done [09:49:53]FM_MakeSignedData done [09:49:53]CreateOFDProtocolMessage [09:49:53]wFMCommunicate request_size=4 [09:49:53]MH_SAM_APDU [09:49:53]CAPDU: 80 11 00 00 [09:49:53]Write to MH i2c: E2 08 00 BA BD 80 11 00 00 00 00 00 00 F1 [09:49:53]Write i2c OK [09:49:53]MH_I2C_Read... [09:49:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:53]Read from MH i2c: E2 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 17 00 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 17 00 BA BD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 43 [09:49:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:49:53]wFMCommunicate OK [09:49:53]CreateOFDProtocolMessage done [09:49:53]OFDSenderStorePacket 69240 [09:49:53]StoreOFDPacket docnum=69240 [09:49:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 FF 76 04 01 E9 34 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 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 49 D2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 78 0E 01 00 35 04 06 00 99 D4 FE 52 46 FD 65 D5 FD D5 B7 3C A9 C4 [09:49:53]CheckFolder [09:49:53]dirname=/storage/ofd_packets [09:49:53]CheckFolder done [09:49:53]ProducePacketName [09:49:53]name=ofd_packets/00069240 [09:49:53]NVStorageSaveData ofd_packets/00069240 [09:49:53]File name is /storage/ofd_packets/00069240 [09:49:53]Write 298 bytes [09:49:53]NVStorageSaveData done [09:49:53]OFDSenderStorePacket done [09:49:53]KKMCreateOFDPacket done [09:49:53]NVStorageSaveData kkm_last_timestamp [09:49:53]File name is /storage/kkm_last_timestamp [09:49:53]Write 4 bytes [09:49:53]NVStorageSaveData done [09:49:53]ExternCall_PrintAddStr [09:49:53]wPrintStart [09:49:53]Write to MH i2c: 01 00 00 BB BD 78 [09:49:53]Write i2c OK [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: 01 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: 01 07 00 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: 01 07 00 BB BD 00 00 00 00 00 FF 0F 8D [09:49:53]RasterBufferAndPrint [09:49:53]line Счет N : (1)2884954 [09:49:53]line ИНН: 02508201610067 [09:49:53]line Контрольно-Кассовый Чек [09:49:53]line ПРОДАЖА [09:49:53]line ТРК (МРК, ГНК) : 61 [09:49:53]line Товар: 2710194210 [09:49:53]line ДТ-К-5 [09:49:53]line 15.750 * 76.20 [09:49:53]line = 1200.15 [09:49:53]line НДС 12% НСП 1% [09:49:53]line > о реализуемом товаре [09:49:53]line ОКРУГЛЕНИЕ: -0.15 [09:49:53]line ИТОГО: 1200.00 [09:49:53]line Внесено: 1200.00 [09:49:53]line СДАЧА: 0.00 [09:49:53]line НСП 1% : 10.62 [09:49:53]line НДС 12% : 127.45 [09:49:53]line Наличными: 1200.00 [09:49:53]line Безнал.: 0.00 [09:49:53]line Место: АЗС № 85 "Партнер Нефть" [09:49:53]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:49:53]line СНО: Общий режим [09:49:53]line Чек 85 20.10.2024 09:50 [09:49:53]line Смена: 193 ФФД: 1.0 [09:49:53]line ЗНМ: 0300000167 [09:49:53]line РНМ: 0000000000156251 [09:49:53]line Версия ККМ: v1.0 [09:49:53]line ФМ: 0000000000963346 [09:49:53]line ФД: 69240 [09:49:53]line ФПД: 169140078921469 [09:49:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095001&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69240&fm=169140078921469&tin=02508201610067®Number=0000000000156251&sum=120000 [09:49:53]OFD Sender: Processing packet 69240 [packets to send 18, broken 17] [09:49:53]ProducePacketName [09:49:53]name=ofd_packets/00069240 [09:49:53]OFD Sender: To server: pG, [09:49:53]CommunicateWithHost lk.salyk.kg:30040 [09:49:53]ConnectInit lk.salyk.kg [09:49:53]written 0, free lines is 4095 [09:49:53]Connected sock=8 [09:49:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 FF 76 04 01 E9 34 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 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 49 D2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 78 0E 01 00 35 04 06 00 99 D4 FE 52 46 FD 65 D5 FD D5 B7 3C A9 C4 [09:49:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 17 23 47 00 65 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 78 0E 01 00 F4 03 04 00 F0 7B 14 67 B6 04 01 00 00 8F 7F DB 59 F0 C4 C9 65 [09:49:53]CommunicateWithHost err = 0 [09:49:53]CheckOFDResponse [09:49:53]1017 (14) - 77093643461234 [09:49:53]1041 (16) - 0000000000963346 [09:49:53]1040 (4) - 69240 [09:49:53]1012 (4) - 20.10.2024 03:41 [09:49:53]1206 (1) - 0 [09:49:53]OFD Sender: Remove packet 69240 [09:49:53]ProducePacketName [09:49:53]name=ofd_packets/00069240 [09:49:53]NVStorageDeleteData [09:49:53]Write to MH i2c: 01 00 00 E6 BD A3 [09:49:53]Write i2c OK [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: 01 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: 01 07 00 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: 01 07 00 E6 BD 00 00 00 00 00 E1 0C 97 [09:49:53]RasterBufferAndPrint [09:49:53]line [09:49:53]line [09:49:53]line [09:49:53]line [09:49:53]line [09:49:53]written 0, free lines is 3306 [09:49:53]MH_Cut [09:49:53]Write to MH i2c: D1 01 00 ED BD 01 7C [09:49:53]Write i2c OK [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: D1 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: D1 01 00 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: D1 01 00 ED BD 00 7B [09:49:53]Write to MH i2c: 01 00 00 EE BD AB [09:49:53]Write i2c OK [09:49:53]MH_I2C_Read... [09:49:54]OFD Sender: No OFD packet to send [09:49:54]*** Cut start [09:49:54]*** Partial cut [09:49:54]*** CUTSNS_PIN = 1 [09:49:54]*** CUTSNS_PIN = 0 [09:49:54]*** Brake cut motor [09:49:55]Read from MH i2c: 01 [09:49:55]MH_I2C_Read... [09:49:55]*** Stop cut motor [09:49:55]*** Cut end [09:49:55]Read from MH i2c: 01 07 00 [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: 01 07 00 EE BD 00 00 00 00 00 FF 0F C0 [09:49:55]process_action close_receipt done [09:49:55]requested_data is exist [09:49:55]produce_requested_data [09:49:55]requested_item fm.sn is exist - process it [09:49:55]wFMCommunicate request_size=4 [09:49:55]MH_SAM_APDU [09:49:55]CAPDU: 80 11 00 00 [09:49:55]Write to MH i2c: E2 08 00 EF BD 80 11 00 00 00 00 00 00 26 [09:49:55]Write i2c OK [09:49:55]MH_I2C_Read... [09:49:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:55]Read from MH i2c: E2 [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: E2 17 00 [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: E2 17 00 EF BD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 78 [09:49:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:49:55]wFMCommunicate OK [09:49:55]requested_item fd.num is exist - process it [09:49:55]SAM_PROTO_GetFieldsCounters [09:49:55]wFMCommunicate request_size=4 [09:49:55]MH_SAM_APDU [09:49:55]CAPDU: 80 13 00 00 [09:49:55]Write to MH i2c: E2 08 00 F0 BD 80 13 00 00 00 00 00 00 29 [09:49:55]Write i2c OK [09:49:55]MH_I2C_Read... [09:49:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:49:55]Read from MH i2c: E2 [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: E2 62 00 [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: E2 62 00 F0 BD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 78 0E 01 00 0E 04 04 00 C1 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 8B [09:49:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 78 0E 01 00 0E 04 04 00 C1 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 [09:49:55]wFMCommunicate OK [09:49:55]SAM_PROTO_GetFieldsCounters done [09:49:55]requested_item shift.num is exist - process it [09:49:55]requested_item shift.opened is exist - process it [09:49:55]req_shift_opened [09:49:55]FM_GetShiftState [09:49:55]SAM_PROTO_GetShiftState [09:49:55]wFMCommunicate request_size=4 [09:49:55]MH_SAM_APDU [09:49:55]CAPDU: 80 13 01 00 [09:49:55]Write to MH i2c: E2 08 00 F1 BD 80 13 01 00 00 00 00 00 2B [09:49:55]Write i2c OK [09:49:55]MH_I2C_Read... [09:49:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:55]Read from MH i2c: E2 [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: E2 0E 00 [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: E2 0E 00 F1 BD 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 31 [09:49:55]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:49:55]wFMCommunicate OK [09:49:55]SAM_PROTO_GetShiftState done [09:49:55]FM_GetShiftState done [09:49:55]req_shift_opened done [09:49:55]requested_item shift.open_date is exist - process it [09:49:55]req_shift_open_date [09:49:55]req_shift_open_date done [09:49:55]produce_requested_data done [09:49:55]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69240,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [09:49:55]process_action_free close_receipt [09:49:55]json_value_free [09:49:55]json_value_free done [09:49:55]process_json_proto returns [09:49:55]Send response to host [09:49:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69240,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [09:49:55]free response buf [09:49:55]execute_script done [09:49:55]execute_script returns [09:49:55]free content buf [09:49:55]Sock 9.Close socket [09:49:55]Sock 9.Thread stoped [09:49:59]OFD Sender: No OFD packet to send [09:50:04]OFD Sender: No OFD packet to send [09:50:09]OFD Sender: No OFD packet to send [09:50:14]OFD Sender: No OFD packet to send [09:50:19]OFD Sender: No OFD packet to send [09:50:24]OFD Sender: No OFD packet to send [09:50:29]OFD Sender: No OFD packet to send [09:50:34]OFD Sender: No OFD packet to send [09:50:39]OFD Sender: No OFD packet to send [09:50:44]OFD Sender: No OFD packet to send [09:50:49]OFD Sender: No OFD packet to send [09:50:51]accept exits with 10 [09:50:51]New connection [09:50:51]New thread 3067260260 created [09:50:51]Thread 3067116900 joined [09:50:51]Waiting for new connection... [09:50:51] Sock 10.Parse request [09:50:51]Sock 10.Check first char [09:50:51]Sock 10.First char is OK [09:50:51]request: POST /json_proto HTTP/1.0 [09:50:51]Method: POST [09:50:51]URL: /json_proto [09:50:51]Method is POST - this is cgi request [09:50:51]url: /json_proto [09:50:51]query_string will be loaded in cgi processing [09:50:51]execute_cgi json_proto POST (null) [09:50:51]execute_cgi path=json_proto method=POST [09:50:51]POST find Content-Length [09:50:51]Host: 172.17.50.3:8080 [09:50:51]Content-Length: 678 [09:50:51]Content-Type: application/json [09:50:51] [09:50:51]POST finish read [09:50:51]Found Content-Length = 678 [09:50:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:51]execute_script... [09:50: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)2884955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:51]POST & json_proto [09:50:51]process_json_proto [09:50:51]json parsed OK: [09:50:51]protocol is kg_v1.0 [09:50:51]action value=close_receipt [09:50:51]process_action close_receipt [09:50:51]cmd_close_receipt [09:50:51]MH_GetDate [09:50:51]Write to MH i2c: F0 00 00 F2 BD 9E [09:50:51]Write i2c OK [09:50:51]MH_I2C_Read... [09:50:51]Read from MH i2c: F0 [09:50:51]MH_I2C_Read... [09:50:51]Read from MH i2c: F0 09 00 [09:50:51]MH_I2C_Read... [09:50:51]Read from MH i2c: F0 09 00 F2 BD 00 84 D2 14 67 6B 98 1E 66 FF [09:50:51]GetLastDocTimeStamp 1729417801 [09:50:51]current date 1729417860 [09:50:51]FM_GetShiftState [09:50:51]SAM_PROTO_GetShiftState [09:50:51]wFMCommunicate request_size=4 [09:50:51]MH_SAM_APDU [09:50:51]CAPDU: 80 13 01 00 [09:50:51]Write to MH i2c: E2 08 00 F3 BD 80 13 01 00 00 00 00 00 2D [09:50:51]Write i2c OK [09:50:51]MH_I2C_Read... [09:50:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:51]Read from MH i2c: E2 [09:50:51]MH_I2C_Read... [09:50:51]Read from MH i2c: E2 0E 00 [09:50:51]MH_I2C_Read... [09:50:51]Read from MH i2c: E2 0E 00 F3 BD 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 33 [09:50:51]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:50:51]wFMCommunicate OK [09:50:51]SAM_PROTO_GetShiftState done [09:50:51]FM_GetShiftState done [09:50:51]opened in 1729383220 [09:50:51]opened+sec_in_day 1729469620 [09:50:51]quantity*price = 30038 [09:50:51]sum+1 = 30039 [09:50:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 86 20.10.2024 09:51 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69241 ФПД: 38029293191290 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095100&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69241&fm=38029293191290&tin=02508201610067®Number=0000000000156251&sum=30000 [09:50:52]StoreToDocumentArchive [09:50:52]shift 193 fd 69241 [09:50:52]save to /storage/0193/doc_00069241 [09:50:52]save last doc name /storage/0193/doc_00069241 to /storage/kkm_last_doc_name [09:50:52]save OK [09:50:52]Clear old archive folders... [09:50:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:50:52]tlvbuf is 006B3D00 [09:50:52]SAM_PROTO_ClearQueue [09:50:52]wFMCommunicate request_size=4 [09:50:52]MH_SAM_APDU [09:50:52]CAPDU: 80 09 00 00 [09:50:52]Write to MH i2c: E2 08 00 00 BE 80 09 00 00 00 00 00 00 30 [09:50:52]Write i2c OK [09:50:52]MH_I2C_Read... [09:50:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:50:52]Read from MH i2c: E2 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: E2 03 00 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: E2 03 00 00 BE 00 90 00 32 [09:50:52]RAPDU: 90 00 [09:50:52]wFMCommunicate OK [09:50:52]SAM_PROTO_ClearQueue done [09:50:52]KKMCreateOFDPacket [09:50:52]OFDProtocolAddRootSTLVToBuf [09:50:52]FM_MakeSignedData [09:50:52]FM_MakeSignedData [09:50:52]SAM_PROTO_SignData [09:50:52]wFMCommunicate request_size=4 [09:50:52]MH_SAM_APDU [09:50:52]CAPDU: 80 0D 01 02 [09:50:52]Write to MH i2c: E2 08 00 01 BE 80 0D 01 02 00 00 00 00 38 [09:50:52]Write i2c OK [09:50:52]MH_I2C_Read... [09:50:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:50:52]Read from MH i2c: E2 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: E2 03 00 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: E2 03 00 01 BE 00 90 00 33 [09:50:52]RAPDU: 90 00 [09:50:52]wFMCommunicate OK [09:50:52]wFMCommunicate request_size=255 [09:50:52]MH_SAM_APDU [09:50:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 84 D2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 79 0E 01 00 35 04 06 00 22 [09:50:52]Write to MH i2c: E2 02 01 02 BE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 84 D2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 79 0E 01 00 35 04 06 00 22 00 00 47 [09:50:52]Write i2c OK [09:50:52]MH_I2C_Read... [09:50:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:52]Read from MH i2c: E2 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: E2 03 00 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: E2 03 00 02 BE 00 90 00 34 [09:50:52]RAPDU: 90 00 [09:50:52]wFMCommunicate OK [09:50:52]wFMCommunicate request_size=10 [09:50:52]MH_SAM_APDU [09:50:52]CAPDU: 80 0D 02 02 05 96 62 83 00 7A [09:50:52]Write to MH i2c: E2 0D 00 03 BE 80 0D 02 02 05 00 96 62 83 00 7A 00 00 3A [09:50:52]Write i2c OK [09:50:52]MH_I2C_Read... [09:50:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:52]Read from MH i2c: E2 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: E2 03 00 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: E2 03 00 03 BE 00 90 00 35 [09:50:52]RAPDU: 90 00 [09:50:52]wFMCommunicate OK [09:50:52]wFMCommunicate request_size=4 [09:50:52]MH_SAM_APDU [09:50:52]CAPDU: 80 0D 03 02 [09:50:52]Write to MH i2c: E2 08 00 04 BE 80 0D 03 02 00 00 00 00 3D [09:50:52]Write i2c OK [09:50:52]MH_I2C_Read... [09:50:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:50:52]Read from MH i2c: E2 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: E2 0B 00 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: E2 0B 00 04 BE 00 1A E2 6F E4 D4 5F D6 D9 90 00 6F [09:50:52]RAPDU: 1A E2 6F E4 D4 5F D6 D9 90 00 [09:50:52]wFMCommunicate OK [09:50:52]SAM_PROTO_SignData done [09:50:52]FM_MakeSignedData done [09:50:52]CreateOFDProtocolMessage [09:50:52]wFMCommunicate request_size=4 [09:50:52]MH_SAM_APDU [09:50:52]CAPDU: 80 11 00 00 [09:50:52]Write to MH i2c: E2 08 00 05 BE 80 11 00 00 00 00 00 00 3D [09:50:52]Write i2c OK [09:50:52]MH_I2C_Read... [09:50:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:52]Read from MH i2c: E2 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: E2 17 00 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: E2 17 00 05 BE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8F [09:50:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:50:52]wFMCommunicate OK [09:50:52]CreateOFDProtocolMessage done [09:50:52]OFDSenderStorePacket 69241 [09:50:52]StoreOFDPacket docnum=69241 [09:50:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 5B 1D 07 01 12 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 84 D2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 79 0E 01 00 35 04 06 00 22 96 62 83 00 7A 1A E2 6F E4 D4 5F D6 D9 [09:50:52]CheckFolder [09:50:52]dirname=/storage/ofd_packets [09:50:52]CheckFolder done [09:50:52]ProducePacketName [09:50:52]name=ofd_packets/00069241 [09:50:52]NVStorageSaveData ofd_packets/00069241 [09:50:52]File name is /storage/ofd_packets/00069241 [09:50:52]Write 301 bytes [09:50:52]NVStorageSaveData done [09:50:52]OFDSenderStorePacket done [09:50:52]KKMCreateOFDPacket done [09:50:52]NVStorageSaveData kkm_last_timestamp [09:50:52]File name is /storage/kkm_last_timestamp [09:50:52]Write 4 bytes [09:50:52]NVStorageSaveData done [09:50:52]ExternCall_PrintAddStr [09:50:52]wPrintStart [09:50:52]Write to MH i2c: 01 00 00 06 BE C4 [09:50:52]Write i2c OK [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: 01 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: 01 07 00 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: 01 07 00 06 BE 00 00 00 00 00 FF 0F D9 [09:50:52]RasterBufferAndPrint [09:50:52]line Счет N : (1)2884955 [09:50:52]line ИНН: 02508201610067 [09:50:52]line Контрольно-Кассовый Чек [09:50:52]line ПРОДАЖА [09:50:52]line ТРК (МРК, ГНК) : 42 [09:50:52]line Товар: 2710124130 [09:50:52]line Аи-92-К-5 [09:50:52]line 4.490 * 66.90 [09:50:52]line = 300.38 [09:50:52]line НДС 12% НСП 1% [09:50:52]line > о реализуемом товаре [09:50:52]line ОКРУГЛЕНИЕ: -0.38 [09:50:52]line ИТОГО: 300.00 [09:50:52]line Внесено: 300.00 [09:50:52]line СДАЧА: 0.00 [09:50:52]line НСП 1% : 2.66 [09:50:52]line НДС 12% : 31.90 [09:50:52]line Наличными: 300.00 [09:50:52]line Безнал.: 0.00 [09:50:52]line Место: АЗС № 85 "Партнер Нефть" [09:50:52]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:50:52]line СНО: Общий режим [09:50:52]line Чек 86 20.10.2024 09:51 [09:50:52]line Смена: 193 ФФД: 1.0 [09:50:52]line ЗНМ: 0300000167 [09:50:52]line РНМ: 0000000000156251 [09:50:52]line Версия ККМ: v1.0 [09:50:52]line ФМ: 0000000000963346 [09:50:52]line ФД: 69241 [09:50:52]line ФПД: 38029293191290 [09:50:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095100&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69241&fm=38029293191290&tin=02508201610067®Number=0000000000156251&sum=30000 [09:50:53]OFD Sender: Processing packet 69241 [packets to send 18, broken 17] [09:50:53]ProducePacketName [09:50:53]name=ofd_packets/00069241 [09:50:53]OFD Sender: To server: pG, [09:50:53]CommunicateWithHost lk.salyk.kg:30040 [09:50:53]ConnectInit lk.salyk.kg [09:50:53]written 0, free lines is 4095 [09:50:53]Connected sock=9 [09:50:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 5B 1D 07 01 12 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 84 D2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 79 0E 01 00 35 04 06 00 22 96 62 83 00 7A 1A E2 6F E4 D4 5F D6 D9 [09:50:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 DC 39 47 00 50 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 79 0E 01 00 F4 03 04 00 2B 7C 14 67 B6 04 01 00 00 AE B1 6A BF 4A AB 8A 7D [09:50:53]CommunicateWithHost err = 0 [09:50:53]CheckOFDResponse [09:50:53]1017 (14) - 77093643461234 [09:50:53]1041 (16) - 0000000000963346 [09:50:53]1040 (4) - 69241 [09:50:53]1012 (4) - 20.10.2024 03:42 [09:50:53]1206 (1) - 0 [09:50:53]OFD Sender: Remove packet 69241 [09:50:53]ProducePacketName [09:50:53]name=ofd_packets/00069241 [09:50:53]NVStorageDeleteData [09:50:53]Write to MH i2c: 01 00 00 31 BE EF [09:50:53]Write i2c OK [09:50:53]MH_I2C_Read... [09:50:53]Read from MH i2c: 01 [09:50:53]MH_I2C_Read... [09:50:53]Read from MH i2c: 01 07 00 [09:50:53]MH_I2C_Read... [09:50:53]Read from MH i2c: 01 07 00 31 BE 00 00 00 00 00 E4 0C E6 [09:50:53]RasterBufferAndPrint [09:50:53]line [09:50:53]line [09:50:53]line [09:50:53]line [09:50:53]line [09:50:53]written 0, free lines is 3306 [09:50:53]MH_Cut [09:50:53]Write to MH i2c: D1 01 00 38 BE 01 C8 [09:50:53]Write i2c OK [09:50:53]MH_I2C_Read... [09:50:53]Read from MH i2c: D1 [09:50:53]MH_I2C_Read... [09:50:53]Read from MH i2c: D1 01 00 [09:50:53]MH_I2C_Read... [09:50:53]Read from MH i2c: D1 01 00 38 BE 00 C7 [09:50:53]Write to MH i2c: 01 00 00 39 BE F7 [09:50:53]Write i2c OK [09:50:53]MH_I2C_Read... [09:50:53]OFD Sender: No OFD packet to send [09:50:54]*** Cut start [09:50:54]*** Partial cut [09:50:54]*** CUTSNS_PIN = 1 [09:50:54]*** CUTSNS_PIN = 0 [09:50:54]*** Brake cut motor [09:50:54]Read from MH i2c: 01 [09:50:54]MH_I2C_Read... [09:50:54]*** Stop cut motor [09:50:54]*** Cut end [09:50:54]Read from MH i2c: 01 07 00 [09:50:54]MH_I2C_Read... [09:50:54]Read from MH i2c: 01 07 00 39 BE 00 00 00 00 00 FF 0F 0C [09:50:54]process_action close_receipt done [09:50:54]requested_data is exist [09:50:54]produce_requested_data [09:50:54]requested_item fm.sn is exist - process it [09:50:54]wFMCommunicate request_size=4 [09:50:54]MH_SAM_APDU [09:50:54]CAPDU: 80 11 00 00 [09:50:54]Write to MH i2c: E2 08 00 3A BE 80 11 00 00 00 00 00 00 72 [09:50:54]Write i2c OK [09:50:54]MH_I2C_Read... [09:50:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:54]Read from MH i2c: E2 [09:50:54]MH_I2C_Read... [09:50:54]Read from MH i2c: E2 17 00 [09:50:54]MH_I2C_Read... [09:50:54]Read from MH i2c: E2 17 00 3A BE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C4 [09:50:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:50:54]wFMCommunicate OK [09:50:54]requested_item fd.num is exist - process it [09:50:54]SAM_PROTO_GetFieldsCounters [09:50:54]wFMCommunicate request_size=4 [09:50:54]MH_SAM_APDU [09:50:54]CAPDU: 80 13 00 00 [09:50:54]Write to MH i2c: E2 08 00 3B BE 80 13 00 00 00 00 00 00 75 [09:50:54]Write i2c OK [09:50:54]MH_I2C_Read... [09:50:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:50:55]Read from MH i2c: E2 [09:50:55]MH_I2C_Read... [09:50:55]Read from MH i2c: E2 62 00 [09:50:55]MH_I2C_Read... [09:50:55]Read from MH i2c: E2 62 00 3B BE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 79 0E 01 00 0E 04 04 00 C1 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 DB [09:50:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 79 0E 01 00 0E 04 04 00 C1 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 [09:50:55]wFMCommunicate OK [09:50:55]SAM_PROTO_GetFieldsCounters done [09:50:55]requested_item shift.num is exist - process it [09:50:55]requested_item shift.opened is exist - process it [09:50:55]req_shift_opened [09:50:55]FM_GetShiftState [09:50:55]SAM_PROTO_GetShiftState [09:50:55]wFMCommunicate request_size=4 [09:50:55]MH_SAM_APDU [09:50:55]CAPDU: 80 13 01 00 [09:50:55]Write to MH i2c: E2 08 00 3C BE 80 13 01 00 00 00 00 00 77 [09:50:55]Write i2c OK [09:50:55]MH_I2C_Read... [09:50:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:55]Read from MH i2c: E2 [09:50:55]MH_I2C_Read... [09:50:55]Read from MH i2c: E2 0E 00 [09:50:55]MH_I2C_Read... [09:50:55]Read from MH i2c: E2 0E 00 3C BE 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 7D [09:50:55]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:50:55]wFMCommunicate OK [09:50:55]SAM_PROTO_GetShiftState done [09:50:55]FM_GetShiftState done [09:50:55]req_shift_opened done [09:50:55]requested_item shift.open_date is exist - process it [09:50:55]req_shift_open_date [09:50:55]req_shift_open_date done [09:50:55]produce_requested_data done [09:50:55]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69241,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [09:50:55]process_action_free close_receipt [09:50:55]json_value_free [09:50:55]json_value_free done [09:50:55]process_json_proto returns [09:50:55]Send response to host [09:50:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69241,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [09:50:55]free response buf [09:50:55]execute_script done [09:50:55]execute_script returns [09:50:55]free content buf [09:50:55]Sock 10.Close socket [09:50:55]Sock 10.Thread stoped [09:50:58]OFD Sender: No OFD packet to send [09:51:03]OFD Sender: No OFD packet to send [09:51:08]OFD Sender: No OFD packet to send [09:51:13]OFD Sender: No OFD packet to send [09:51:18]OFD Sender: No OFD packet to send [09:51:23]OFD Sender: No OFD packet to send [09:51:28]OFD Sender: No OFD packet to send [09:51:33]OFD Sender: No OFD packet to send [09:51:38]OFD Sender: No OFD packet to send [09:51:43]OFD Sender: No OFD packet to send [09:51:48]OFD Sender: No OFD packet to send [09:51:53]OFD Sender: No OFD packet to send [09:51:58]OFD Sender: No OFD packet to send [09:52:03]OFD Sender: No OFD packet to send [09:52:08]OFD Sender: No OFD packet to send [09:52:13]OFD Sender: No OFD packet to send [09:52:18]OFD Sender: No OFD packet to send [09:52:23]OFD Sender: No OFD packet to send [09:52:28]OFD Sender: No OFD packet to send [09:52:33]OFD Sender: No OFD packet to send [09:52:38]OFD Sender: No OFD packet to send [09:52:44]OFD Sender: No OFD packet to send [09:52:49]OFD Sender: No OFD packet to send [09:52:54]OFD Sender: No OFD packet to send [09:52:59]OFD Sender: No OFD packet to send [09:53:04]OFD Sender: No OFD packet to send [09:53:09]OFD Sender: No OFD packet to send [09:53:14]OFD Sender: No OFD packet to send [09:53:19]OFD Sender: No OFD packet to send [09:53:24]OFD Sender: No OFD packet to send [09:53:29]OFD Sender: No OFD packet to send [09:53:34]OFD Sender: No OFD packet to send [09:53:39]OFD Sender: No OFD packet to send [09:53:44]OFD Sender: No OFD packet to send [09:53:49]OFD Sender: No OFD packet to send [09:53:54]OFD Sender: No OFD packet to send [09:53:59]OFD Sender: No OFD packet to send [09:54:04]OFD Sender: No OFD packet to send [09:54:09]OFD Sender: No OFD packet to send [09:54:14]OFD Sender: No OFD packet to send [09:54:19]OFD Sender: No OFD packet to send [09:54:24]OFD Sender: No OFD packet to send [09:54:29]OFD Sender: No OFD packet to send [09:54:34]OFD Sender: No OFD packet to send [09:54:39]OFD Sender: No OFD packet to send [09:54:44]OFD Sender: No OFD packet to send [09:54:46]accept exits with 8 [09:54:46]New connection [09:54:46]New thread 3067116900 created [09:54:46]Thread 3067260260 joined [09:54:46]Waiting for new connection... [09:54:46] Sock 8.Parse request [09:54:46]Sock 8.Check first char [09:54:46]Sock 8.First char is OK [09:54:46]request: POST /json_proto HTTP/1.0 [09:54:46]Method: POST [09:54:46]URL: /json_proto [09:54:46]Method is POST - this is cgi request [09:54:46]url: /json_proto [09:54:46]query_string will be loaded in cgi processing [09:54:46]execute_cgi json_proto POST (null) [09:54:46]execute_cgi path=json_proto method=POST [09:54:46]POST find Content-Length [09:54:46]Host: 172.17.50.3:8080 [09:54:46]Content-Length: 680 [09:54:46]Content-Type: application/json [09:54:46] [09:54:46]POST finish read [09:54:46]Found Content-Length = 680 [09:54:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:46]execute_script... [09:54: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)2884956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:46]POST & json_proto [09:54:46]process_json_proto [09:54:46]json parsed OK: [09:54:46]protocol is kg_v1.0 [09:54:46]action value=close_receipt [09:54:46]process_action close_receipt [09:54:46]cmd_close_receipt [09:54:46]MH_GetDate [09:54:46]Write to MH i2c: F0 00 00 3D BE EA [09:54:46]Write i2c OK [09:54:46]MH_I2C_Read... [09:54:46]Read from MH i2c: F0 [09:54:46]MH_I2C_Read... [09:54:46]Read from MH i2c: F0 09 00 [09:54:46]MH_I2C_Read... [09:54:46]Read from MH i2c: F0 09 00 3D BE 00 6F D3 14 67 6B 98 1E 66 37 [09:54:46]GetLastDocTimeStamp 1729417860 [09:54:46]current date 1729418095 [09:54:46]FM_GetShiftState [09:54:46]SAM_PROTO_GetShiftState [09:54:46]wFMCommunicate request_size=4 [09:54:46]MH_SAM_APDU [09:54:46]CAPDU: 80 13 01 00 [09:54:46]Write to MH i2c: E2 08 00 3E BE 80 13 01 00 00 00 00 00 79 [09:54:46]Write i2c OK [09:54:46]MH_I2C_Read... [09:54:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:46]Read from MH i2c: E2 [09:54:46]MH_I2C_Read... [09:54:46]Read from MH i2c: E2 0E 00 [09:54:46]MH_I2C_Read... [09:54:46]Read from MH i2c: E2 0E 00 3E BE 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 7F [09:54:46]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:54:46]wFMCommunicate OK [09:54:46]SAM_PROTO_GetShiftState done [09:54:46]FM_GetShiftState done [09:54:46]opened in 1729383220 [09:54:46]opened+sec_in_day 1729469620 [09:54:46]quantity*price = 100050 [09:54:46]sum+1 = 100052 [09:54:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 87 20.10.2024 09:54 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69242 ФПД: 139747914423717 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095455&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69242&fm=139747914423717&tin=02508201610067®Number=0000000000156251&sum=100000 [09:54:47]StoreToDocumentArchive [09:54:47]shift 193 fd 69242 [09:54:47]save to /storage/0193/doc_00069242 [09:54:47]save last doc name /storage/0193/doc_00069242 to /storage/kkm_last_doc_name [09:54:47]save OK [09:54:47]Clear old archive folders... [09:54:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:54:47]tlvbuf is 007E3700 [09:54:47]SAM_PROTO_ClearQueue [09:54:47]wFMCommunicate request_size=4 [09:54:47]MH_SAM_APDU [09:54:47]CAPDU: 80 09 00 00 [09:54:47]Write to MH i2c: E2 08 00 4B BE 80 09 00 00 00 00 00 00 7B [09:54:47]Write i2c OK [09:54:47]MH_I2C_Read... [09:54:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:54:47]Read from MH i2c: E2 [09:54:47]MH_I2C_Read... [09:54:47]Read from MH i2c: E2 03 00 [09:54:47]MH_I2C_Read... [09:54:47]Read from MH i2c: E2 03 00 4B BE 00 90 00 7D [09:54:47]RAPDU: 90 00 [09:54:47]wFMCommunicate OK [09:54:47]SAM_PROTO_ClearQueue done [09:54:47]KKMCreateOFDPacket [09:54:47]OFDProtocolAddRootSTLVToBuf [09:54:47]FM_MakeSignedData [09:54:47]FM_MakeSignedData [09:54:47]SAM_PROTO_SignData [09:54:47]wFMCommunicate request_size=4 [09:54:47]MH_SAM_APDU [09:54:47]CAPDU: 80 0D 01 02 [09:54:47]Write to MH i2c: E2 08 00 4C BE 80 0D 01 02 00 00 00 00 83 [09:54:47]Write i2c OK [09:54:47]MH_I2C_Read... [09:54:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:54:47]Read from MH i2c: E2 [09:54:47]MH_I2C_Read... [09:54:47]Read from MH i2c: E2 03 00 [09:54:47]MH_I2C_Read... [09:54:47]Read from MH i2c: E2 03 00 4C BE 00 90 00 7E [09:54:47]RAPDU: 90 00 [09:54:47]wFMCommunicate OK [09:54:47]wFMCommunicate request_size=255 [09:54:47]MH_SAM_APDU [09:54: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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 6F D3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7A 0E 01 00 35 04 06 00 7F 19 98 CC [09:54:47]Write to MH i2c: E2 02 01 4D BE 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 6F D3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7A 0E 01 00 35 04 06 00 7F 19 98 CC 00 00 5C [09:54:47]Write i2c OK [09:54:47]MH_I2C_Read... [09:54:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:47]Read from MH i2c: E2 [09:54:47]MH_I2C_Read... [09:54:47]Read from MH i2c: E2 03 00 [09:54:47]MH_I2C_Read... [09:54:47]Read from MH i2c: E2 03 00 4D BE 00 90 00 7F [09:54:47]RAPDU: 90 00 [09:54:47]wFMCommunicate OK [09:54:47]wFMCommunicate request_size=7 [09:54:47]MH_SAM_APDU [09:54:47]CAPDU: 80 0D 02 02 02 1D A5 [09:54:47]Write to MH i2c: E2 0A 00 4E BE 80 0D 02 02 02 00 1D A5 00 00 4C [09:54:47]Write i2c OK [09:54:47]MH_I2C_Read... [09:54:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:47]Read from MH i2c: E2 [09:54:47]MH_I2C_Read... [09:54:47]Read from MH i2c: E2 03 00 [09:54:47]MH_I2C_Read... [09:54:47]Read from MH i2c: E2 03 00 4E BE 00 90 00 80 [09:54:47]RAPDU: 90 00 [09:54:47]wFMCommunicate OK [09:54:47]wFMCommunicate request_size=4 [09:54:47]MH_SAM_APDU [09:54:47]CAPDU: 80 0D 03 02 [09:54:47]Write to MH i2c: E2 08 00 4F BE 80 0D 03 02 00 00 00 00 88 [09:54:47]Write i2c OK [09:54:47]MH_I2C_Read... [09:54:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:54:47]Read from MH i2c: E2 [09:54:47]MH_I2C_Read... [09:54:47]Read from MH i2c: E2 0B 00 [09:54:47]MH_I2C_Read... [09:54:47]Read from MH i2c: E2 0B 00 4F BE 00 B6 7F 6E 85 4E C5 27 34 90 00 1F [09:54:47]RAPDU: B6 7F 6E 85 4E C5 27 34 90 00 [09:54:47]wFMCommunicate OK [09:54:47]SAM_PROTO_SignData done [09:54:47]FM_MakeSignedData done [09:54:47]CreateOFDProtocolMessage [09:54:47]wFMCommunicate request_size=4 [09:54:47]MH_SAM_APDU [09:54:47]CAPDU: 80 11 00 00 [09:54:47]Write to MH i2c: E2 08 00 50 BE 80 11 00 00 00 00 00 00 88 [09:54:47]Write i2c OK [09:54:47]MH_I2C_Read... [09:54:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:47]Read from MH i2c: E2 [09:54:47]MH_I2C_Read... [09:54:47]Read from MH i2c: E2 17 00 [09:54:47]MH_I2C_Read... [09:54:47]Read from MH i2c: E2 17 00 50 BE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DA [09:54:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:54:47]wFMCommunicate OK [09:54:47]CreateOFDProtocolMessage done [09:54:47]OFDSenderStorePacket 69242 [09:54:47]StoreOFDPacket docnum=69242 [09:54:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 B7 40 04 01 51 85 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 6F D3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7A 0E 01 00 35 04 06 00 7F 19 98 CC 1D A5 B6 7F 6E 85 4E C5 27 34 [09:54:47]CheckFolder [09:54:47]dirname=/storage/ofd_packets [09:54:47]CheckFolder done [09:54:47]ProducePacketName [09:54:47]name=ofd_packets/00069242 [09:54:47]NVStorageSaveData ofd_packets/00069242 [09:54:47]File name is /storage/ofd_packets/00069242 [09:54:47]Write 298 bytes [09:54:47]NVStorageSaveData done [09:54:47]OFDSenderStorePacket done [09:54:47]KKMCreateOFDPacket done [09:54:47]NVStorageSaveData kkm_last_timestamp [09:54:47]File name is /storage/kkm_last_timestamp [09:54:47]Write 4 bytes [09:54:47]NVStorageSaveData done [09:54:47]ExternCall_PrintAddStr [09:54:47]wPrintStart [09:54:47]Write to MH i2c: 01 00 00 51 BE 0F [09:54:47]Write i2c OK [09:54:47]MH_I2C_Read... [09:54:47]Read from MH i2c: 01 [09:54:47]MH_I2C_Read... [09:54:47]Read from MH i2c: 01 07 00 [09:54:47]MH_I2C_Read... [09:54:47]Read from MH i2c: 01 07 00 51 BE 00 00 00 00 00 FF 0F 24 [09:54:47]RasterBufferAndPrint [09:54:47]line Счет N : (1)2884956 [09:54:47]line ИНН: 02508201610067 [09:54:47]line Контрольно-Кассовый Чек [09:54:47]line ПРОДАЖА [09:54:47]line ТРК (МРК, ГНК) : 51 [09:54:47]line Товар: 2710194210 [09:54:47]line ДТ-К-5 [09:54:47]line 13.130 * 76.20 [09:54:47]line = 1000.51 [09:54:47]line НДС 12% НСП 1% [09:54:47]line > о реализуемом товаре [09:54:47]line ОКРУГЛЕНИЕ: -0.51 [09:54:47]line ИТОГО: 1000.00 [09:54:47]line Внесено: 1000.00 [09:54:47]line СДАЧА: 0.00 [09:54:47]line НСП 1% : 8.85 [09:54:47]line НДС 12% : 106.25 [09:54:47]line Наличными: 1000.00 [09:54:47]line Безнал.: 0.00 [09:54:47]line Место: АЗС № 85 "Партнер Нефть" [09:54:47]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [09:54:47]line СНО: Общий режим [09:54:47]line Чек 87 20.10.2024 09:54 [09:54:47]line Смена: 193 ФФД: 1.0 [09:54:47]line ЗНМ: 0300000167 [09:54:47]line РНМ: 0000000000156251 [09:54:47]line Версия ККМ: v1.0 [09:54:47]line ФМ: 0000000000963346 [09:54:47]line ФД: 69242 [09:54:47]line ФПД: 139747914423717 [09:54:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095455&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69242&fm=139747914423717&tin=02508201610067®Number=0000000000156251&sum=100000 [09:54:48]OFD Sender: Processing packet 69242 [packets to send 18, broken 17] [09:54:48]ProducePacketName [09:54:48]name=ofd_packets/00069242 [09:54:48]OFD Sender: To server: pG, [09:54:48]CommunicateWithHost lk.salyk.kg:30040 [09:54:48]ConnectInit lk.salyk.kg [09:54:48]written 0, free lines is 4095 [09:54:48]Connected sock=11 [09:54:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 B7 40 04 01 51 85 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 6F D3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7A 0E 01 00 35 04 06 00 7F 19 98 CC 1D A5 B6 7F 6E 85 4E C5 27 34 [09:54:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 2C 7B 47 00 61 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7A 0E 01 00 F4 03 04 00 16 7D 14 67 B6 04 01 00 00 EC C8 18 2B 80 8A 8E B7 [09:54:48]CommunicateWithHost err = 0 [09:54:48]CheckOFDResponse [09:54:48]1017 (14) - 77093643461234 [09:54:48]1041 (16) - 0000000000963346 [09:54:48]1040 (4) - 69242 [09:54:48]1012 (4) - 20.10.2024 03:46 [09:54:48]1206 (1) - 0 [09:54:48]OFD Sender: Remove packet 69242 [09:54:48]ProducePacketName [09:54:48]name=ofd_packets/00069242 [09:54:48]NVStorageDeleteData [09:54:48]Write to MH i2c: 01 00 00 7C BE 3A [09:54:48]Write i2c OK [09:54:48]MH_I2C_Read... [09:54:48]Read from MH i2c: 01 [09:54:48]MH_I2C_Read... [09:54:48]Read from MH i2c: 01 07 00 [09:54:48]MH_I2C_Read... [09:54:48]Read from MH i2c: 01 07 00 7C BE 00 00 00 00 00 EA 0C 37 [09:54:48]RasterBufferAndPrint [09:54:48]line [09:54:48]line [09:54:48]line [09:54:48]line [09:54:48]line [09:54:48]written 0, free lines is 3312 [09:54:48]MH_Cut [09:54:48]Write to MH i2c: D1 01 00 83 BE 01 13 [09:54:48]Write i2c OK [09:54:48]MH_I2C_Read... [09:54:48]Read from MH i2c: D1 [09:54:48]MH_I2C_Read... [09:54:48]Read from MH i2c: D1 01 00 [09:54:48]MH_I2C_Read... [09:54:48]Read from MH i2c: D1 01 00 83 BE 00 12 [09:54:48]Write to MH i2c: 01 00 00 84 BE 42 [09:54:48]Write i2c OK [09:54:48]MH_I2C_Read... [09:54:48]OFD Sender: No OFD packet to send [09:54:49]*** Cut start [09:54:49]*** Partial cut [09:54:49]*** CUTSNS_PIN = 1 [09:54:49]*** CUTSNS_PIN = 0 [09:54:49]*** Brake cut motor [09:54:49]Read from MH i2c: 01 [09:54:49]MH_I2C_Read... [09:54:49]*** Stop cut motor [09:54:49]*** Cut end [09:54:49]Read from MH i2c: 01 07 00 [09:54:49]MH_I2C_Read... [09:54:49]Read from MH i2c: 01 07 00 84 BE 00 00 00 00 00 FF 0F 57 [09:54:49]process_action close_receipt done [09:54:49]requested_data is exist [09:54:49]produce_requested_data [09:54:49]requested_item fm.sn is exist - process it [09:54:49]wFMCommunicate request_size=4 [09:54:49]MH_SAM_APDU [09:54:49]CAPDU: 80 11 00 00 [09:54:49]Write to MH i2c: E2 08 00 85 BE 80 11 00 00 00 00 00 00 BD [09:54:49]Write i2c OK [09:54:49]MH_I2C_Read... [09:54:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:49]Read from MH i2c: E2 [09:54:49]MH_I2C_Read... [09:54:49]Read from MH i2c: E2 17 00 [09:54:49]MH_I2C_Read... [09:54:49]Read from MH i2c: E2 17 00 85 BE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0F [09:54:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [09:54:49]wFMCommunicate OK [09:54:49]requested_item fd.num is exist - process it [09:54:49]SAM_PROTO_GetFieldsCounters [09:54:49]wFMCommunicate request_size=4 [09:54:49]MH_SAM_APDU [09:54:49]CAPDU: 80 13 00 00 [09:54:49]Write to MH i2c: E2 08 00 86 BE 80 13 00 00 00 00 00 00 C0 [09:54:49]Write i2c OK [09:54:49]MH_I2C_Read... [09:54:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:54:50]Read from MH i2c: E2 [09:54:50]MH_I2C_Read... [09:54:50]Read from MH i2c: E2 62 00 [09:54:50]MH_I2C_Read... [09:54:50]Read from MH i2c: E2 62 00 86 BE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7A 0E 01 00 0E 04 04 00 C1 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 2A [09:54:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7A 0E 01 00 0E 04 04 00 C1 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 [09:54:50]wFMCommunicate OK [09:54:50]SAM_PROTO_GetFieldsCounters done [09:54:50]requested_item shift.num is exist - process it [09:54:50]requested_item shift.opened is exist - process it [09:54:50]req_shift_opened [09:54:50]FM_GetShiftState [09:54:50]SAM_PROTO_GetShiftState [09:54:50]wFMCommunicate request_size=4 [09:54:50]MH_SAM_APDU [09:54:50]CAPDU: 80 13 01 00 [09:54:50]Write to MH i2c: E2 08 00 87 BE 80 13 01 00 00 00 00 00 C2 [09:54:50]Write i2c OK [09:54:50]MH_I2C_Read... [09:54:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:50]Read from MH i2c: E2 [09:54:50]MH_I2C_Read... [09:54:50]Read from MH i2c: E2 0E 00 [09:54:50]MH_I2C_Read... [09:54:50]Read from MH i2c: E2 0E 00 87 BE 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 C8 [09:54:50]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [09:54:50]wFMCommunicate OK [09:54:50]SAM_PROTO_GetShiftState done [09:54:50]FM_GetShiftState done [09:54:50]req_shift_opened done [09:54:50]requested_item shift.open_date is exist - process it [09:54:50]req_shift_open_date [09:54:50]req_shift_open_date done [09:54:50]produce_requested_data done [09:54:50]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69242,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [09:54:50]process_action_free close_receipt [09:54:50]json_value_free [09:54:50]json_value_free done [09:54:50]process_json_proto returns [09:54:50]Send response to host [09:54:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69242,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [09:54:50]free response buf [09:54:50]execute_script done [09:54:50]execute_script returns [09:54:50]free content buf [09:54:50]Sock 8.Close socket [09:54:50]Sock 8.Thread stoped [09:54:53]OFD Sender: No OFD packet to send [09:54:58]OFD Sender: No OFD packet to send [09:55:03]OFD Sender: No OFD packet to send [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:33]OFD Sender: No OFD packet to send [09:57:38]OFD Sender: No OFD packet to send [09:57:43]OFD Sender: No OFD packet to send [09:57:48]OFD Sender: No OFD packet to send [09:57:53]OFD Sender: No OFD packet to send [09:57:59]OFD Sender: No OFD packet to send [09:58:04]OFD Sender: No OFD packet to send [09:58:09]OFD Sender: No OFD packet to send [09:58:14]OFD Sender: No OFD packet to send [09:58:19]OFD Sender: No OFD packet to send [09:58:24]OFD Sender: No OFD packet to send [09:58:29]OFD Sender: No OFD packet to send [09:58:34]OFD Sender: No OFD packet to send [09:58:39]OFD Sender: No OFD packet to send [09:58:44]OFD Sender: No OFD packet to send [09:58:49]OFD Sender: No OFD packet to send [09:58:54]OFD Sender: No OFD packet to send [09:58:59]OFD Sender: No OFD packet to send [09:59:04]OFD Sender: No OFD packet to send [09:59:09]OFD Sender: No OFD packet to send [09:59:14]OFD Sender: No OFD packet to send [09:59:19]OFD Sender: No OFD packet to send [09:59:24]OFD Sender: No OFD packet to send [09:59:29]OFD Sender: No OFD packet to send [09:59:34]OFD Sender: No OFD packet to send [09:59:39]OFD Sender: No OFD packet to send [09:59:44]OFD Sender: No OFD packet to send [09:59:49]OFD Sender: No OFD packet to send [09:59:54]OFD Sender: No OFD packet to send [09:59:59]OFD Sender: No OFD packet to send [10:00:04]OFD Sender: No OFD packet to send [10:00:09]OFD Sender: No OFD packet to send [10:00:14]OFD Sender: No OFD packet to send [10:00:19]OFD Sender: No OFD packet to send [10:00:24]OFD Sender: No OFD packet to send [10:00:29]OFD Sender: No OFD packet to send [10:00:34]OFD Sender: No OFD packet to send [10:00:39]OFD Sender: No OFD packet to send [10:00:44]OFD Sender: No OFD packet to send [10:00:49]OFD Sender: No OFD packet to send [10:00:54]OFD Sender: No OFD packet to send [10:00:59]OFD Sender: No OFD packet to send [10:01:04]OFD Sender: No OFD packet to send [10:01:09]OFD Sender: No OFD packet to send [10:01:14]OFD Sender: No OFD packet to send [10:01:19]OFD Sender: No OFD packet to send [10:01:24]OFD Sender: No OFD packet to send [10:01:29]OFD Sender: No OFD packet to send [10:01:34]OFD Sender: No OFD packet to send [10:01:39]OFD Sender: No OFD packet to send [10:01:44]OFD Sender: No OFD packet to send [10:01:49]OFD Sender: No OFD packet to send [10:01:54]OFD Sender: No OFD packet to send [10:01:59]OFD Sender: No OFD packet to send [10:02:04]OFD Sender: No OFD packet to send [10:02:09]OFD Sender: No OFD packet to send [10:02:14]OFD Sender: No OFD packet to send [10:02:19]OFD Sender: No OFD packet to send [10:02:24]OFD Sender: No OFD packet to send [10:02:29]OFD Sender: No OFD packet to send [10:02:34]OFD Sender: No OFD packet to send [10:02:39]OFD Sender: No OFD packet to send [10:02:44]OFD Sender: No OFD packet to send [10:02:49]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:44]accept exits with 9 [10:03:44]New connection [10:03:44]New thread 3067260260 created [10:03:44]Thread 3067116900 joined [10:03:44]Waiting for new connection... [10:03:44] Sock 9.Parse request [10:03:44]Sock 9.Check first char [10:03:44]Sock 9.First char is OK [10:03:44]request: POST /json_proto HTTP/1.0 [10:03:44]Method: POST [10:03:44]URL: /json_proto [10:03:44]Method is POST - this is cgi request [10:03:44]url: /json_proto [10:03:44]query_string will be loaded in cgi processing [10:03:44]execute_cgi json_proto POST (null) [10:03:44]execute_cgi path=json_proto method=POST [10:03:44]POST find Content-Length [10:03:44]Host: 172.17.50.3:8080 [10:03:44]Content-Length: 678 [10:03:44]Content-Type: application/json [10:03:44] [10:03:44]POST finish read [10:03:44]Found Content-Length = 678 [10:03:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.950, "sum" : 130.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 130.00, "total" : 130.00, "payments": [ { "type": 0, "sum" : 130.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:44]execute_script... [10:03:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.950, "sum" : 130.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 130.00, "total" : 130.00, "payments": [ { "type": 0, "sum" : 130.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:44]POST & json_proto [10:03:44]process_json_proto [10:03:44]json parsed OK: [10:03:44]protocol is kg_v1.0 [10:03:44]action value=close_receipt [10:03:44]process_action close_receipt [10:03:44]cmd_close_receipt [10:03:44]MH_GetDate [10:03:44]Write to MH i2c: F0 00 00 88 BE 35 [10:03:44]Write i2c OK [10:03:44]MH_I2C_Read... [10:03:44]Read from MH i2c: F0 [10:03:44]MH_I2C_Read... [10:03:44]Read from MH i2c: F0 09 00 [10:03:44]MH_I2C_Read... [10:03:44]Read from MH i2c: F0 09 00 88 BE 00 8A D5 14 67 6B 98 1E 66 9F [10:03:44]GetLastDocTimeStamp 1729418095 [10:03:44]current date 1729418634 [10:03:44]FM_GetShiftState [10:03:44]SAM_PROTO_GetShiftState [10:03:44]wFMCommunicate request_size=4 [10:03:44]MH_SAM_APDU [10:03:44]CAPDU: 80 13 01 00 [10:03:44]Write to MH i2c: E2 08 00 89 BE 80 13 01 00 00 00 00 00 C4 [10:03:44]Write i2c OK [10:03:44]MH_I2C_Read... [10:03:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:44]Read from MH i2c: E2 [10:03:44]MH_I2C_Read... [10:03:44]Read from MH i2c: E2 0E 00 [10:03:44]MH_I2C_Read... [10:03:44]Read from MH i2c: E2 0E 00 89 BE 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 CA [10:03:44]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:03:44]wFMCommunicate OK [10:03:44]SAM_PROTO_GetShiftState done [10:03:44]FM_GetShiftState done [10:03:44]opened in 1729383220 [10:03:44]opened+sec_in_day 1729469620 [10:03:44]quantity*price = 13045 [10:03:44]sum+1 = 13047 [10:03:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 130.00 Внесено: 130.00 СДАЧА: 0.00 НСП 1% : 1.15 НДС 12% : 13.85 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 88 20.10.2024 10:03 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69243 ФПД: 221719300452089 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100354&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69243&fm=221719300452089&tin=02508201610067®Number=0000000000156251&sum=13000 [10:03:45]StoreToDocumentArchive [10:03:45]shift 193 fd 69243 [10:03:45]save to /storage/0193/doc_00069243 [10:03:45]save last doc name /storage/0193/doc_00069243 to /storage/kkm_last_doc_name [10:03:45]save OK [10:03:45]Clear old archive folders... [10:03:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:03:45]tlvbuf is 005D7370 [10:03:45]SAM_PROTO_ClearQueue [10:03:45]wFMCommunicate request_size=4 [10:03:45]MH_SAM_APDU [10:03:45]CAPDU: 80 09 00 00 [10:03:45]Write to MH i2c: E2 08 00 96 BE 80 09 00 00 00 00 00 00 C6 [10:03:45]Write i2c OK [10:03:45]MH_I2C_Read... [10:03:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:03:46]Read from MH i2c: E2 [10:03:46]MH_I2C_Read... [10:03:46]Read from MH i2c: E2 03 00 [10:03:46]MH_I2C_Read... [10:03:46]Read from MH i2c: E2 03 00 96 BE 00 90 00 C8 [10:03:46]RAPDU: 90 00 [10:03:46]wFMCommunicate OK [10:03:46]SAM_PROTO_ClearQueue done [10:03:46]KKMCreateOFDPacket [10:03:46]OFDProtocolAddRootSTLVToBuf [10:03:46]FM_MakeSignedData [10:03:46]FM_MakeSignedData [10:03:46]SAM_PROTO_SignData [10:03:46]wFMCommunicate request_size=4 [10:03:46]MH_SAM_APDU [10:03:46]CAPDU: 80 0D 01 02 [10:03:46]Write to MH i2c: E2 08 00 97 BE 80 0D 01 02 00 00 00 00 CE [10:03:46]Write i2c OK [10:03:46]MH_I2C_Read... [10:03:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:03:46]Read from MH i2c: E2 [10:03:46]MH_I2C_Read... [10:03:46]Read from MH i2c: E2 03 00 [10:03:46]MH_I2C_Read... [10:03:46]Read from MH i2c: E2 03 00 97 BE 00 90 00 C9 [10:03:46]RAPDU: 90 00 [10:03:46]wFMCommunicate OK [10:03:46]wFMCommunicate request_size=255 [10:03:46]MH_SAM_APDU [10:03:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 8A D5 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7B 0E 01 00 35 04 06 00 C9 [10:03:46]Write to MH i2c: E2 02 01 98 BE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 8A D5 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7B 0E 01 00 35 04 06 00 C9 00 00 F6 [10:03:46]Write i2c OK [10:03:46]MH_I2C_Read... [10:03:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:46]Read from MH i2c: E2 [10:03:46]MH_I2C_Read... [10:03:46]Read from MH i2c: E2 03 00 [10:03:46]MH_I2C_Read... [10:03:46]Read from MH i2c: E2 03 00 98 BE 00 90 00 CA [10:03:46]RAPDU: 90 00 [10:03:46]wFMCommunicate OK [10:03:46]wFMCommunicate request_size=10 [10:03:46]MH_SAM_APDU [10:03:46]CAPDU: 80 0D 02 02 05 A7 0C 24 AE F9 [10:03:46]Write to MH i2c: E2 0D 00 99 BE 80 0D 02 02 05 00 A7 0C 24 AE F9 00 00 59 [10:03:46]Write i2c OK [10:03:46]MH_I2C_Read... [10:03:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:46]Read from MH i2c: E2 [10:03:46]MH_I2C_Read... [10:03:46]Read from MH i2c: E2 03 00 [10:03:46]MH_I2C_Read... [10:03:46]Read from MH i2c: E2 03 00 99 BE 00 90 00 CB [10:03:46]RAPDU: 90 00 [10:03:46]wFMCommunicate OK [10:03:46]wFMCommunicate request_size=4 [10:03:46]MH_SAM_APDU [10:03:46]CAPDU: 80 0D 03 02 [10:03:46]Write to MH i2c: E2 08 00 9A BE 80 0D 03 02 00 00 00 00 D3 [10:03:46]Write i2c OK [10:03:46]MH_I2C_Read... [10:03:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:03:46]Read from MH i2c: E2 [10:03:46]MH_I2C_Read... [10:03:46]Read from MH i2c: E2 0B 00 [10:03:46]MH_I2C_Read... [10:03:46]Read from MH i2c: E2 0B 00 9A BE 00 58 1F DB E7 83 EA 70 FF 90 00 E9 [10:03:46]RAPDU: 58 1F DB E7 83 EA 70 FF 90 00 [10:03:46]wFMCommunicate OK [10:03:46]SAM_PROTO_SignData done [10:03:46]FM_MakeSignedData done [10:03:46]CreateOFDProtocolMessage [10:03:46]wFMCommunicate request_size=4 [10:03:46]MH_SAM_APDU [10:03:46]CAPDU: 80 11 00 00 [10:03:46]Write to MH i2c: E2 08 00 9B BE 80 11 00 00 00 00 00 00 D3 [10:03:46]Write i2c OK [10:03:46]MH_I2C_Read... [10:03:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:46]Read from MH i2c: E2 [10:03:46]MH_I2C_Read... [10:03:46]Read from MH i2c: E2 17 00 [10:03:46]MH_I2C_Read... [10:03:46]Read from MH i2c: E2 17 00 9B BE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 25 [10:03:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:03:46]wFMCommunicate OK [10:03:46]CreateOFDProtocolMessage done [10:03:46]OFDSenderStorePacket 69243 [10:03:46]StoreOFDPacket docnum=69243 [10:03:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 5E 0C 07 01 CF A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 8A D5 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7B 0E 01 00 35 04 06 00 C9 A7 0C 24 AE F9 58 1F DB E7 83 EA 70 FF [10:03:46]CheckFolder [10:03:46]dirname=/storage/ofd_packets [10:03:46]CheckFolder done [10:03:46]ProducePacketName [10:03:46]name=ofd_packets/00069243 [10:03:46]NVStorageSaveData ofd_packets/00069243 [10:03:46]File name is /storage/ofd_packets/00069243 [10:03:46]Write 301 bytes [10:03:46]NVStorageSaveData done [10:03:46]OFDSenderStorePacket done [10:03:46]KKMCreateOFDPacket done [10:03:46]NVStorageSaveData kkm_last_timestamp [10:03:46]File name is /storage/kkm_last_timestamp [10:03:46]Write 4 bytes [10:03:46]NVStorageSaveData done [10:03:46]ExternCall_PrintAddStr [10:03:46]wPrintStart [10:03:46]Write to MH i2c: 01 00 00 9C BE 5A [10:03:46]Write i2c OK [10:03:46]MH_I2C_Read... [10:03:46]Read from MH i2c: 01 [10:03:46]MH_I2C_Read... [10:03:46]Read from MH i2c: 01 07 00 [10:03:46]MH_I2C_Read... [10:03:46]Read from MH i2c: 01 07 00 9C BE 00 00 00 00 00 FF 0F 6F [10:03:46]RasterBufferAndPrint [10:03:46]line Счет N : (1)2884957 [10:03:46]line ИНН: 02508201610067 [10:03:46]line Контрольно-Кассовый Чек [10:03:46]line ПРОДАЖА [10:03:46]line ТРК (МРК, ГНК) : 32 [10:03:46]line Товар: 2710124130 [10:03:46]line Аи-92-К-5 [10:03:46]line 1.950 * 66.90 [10:03:46]line = 130.46 [10:03:46]line НДС 12% НСП 1% [10:03:46]line > о реализуемом товаре [10:03:46]line ОКРУГЛЕНИЕ: -0.46 [10:03:46]line ИТОГО: 130.00 [10:03:46]line Внесено: 130.00 [10:03:46]line СДАЧА: 0.00 [10:03:46]line НСП 1% : 1.15 [10:03:46]line НДС 12% : 13.85 [10:03:46]line Наличными: 130.00 [10:03:46]line Безнал.: 0.00 [10:03:46]line Место: АЗС № 85 "Партнер Нефть" [10:03:46]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:03:46]line СНО: Общий режим [10:03:46]line Чек 88 20.10.2024 10:03 [10:03:46]line Смена: 193 ФФД: 1.0 [10:03:46]line ЗНМ: 0300000167 [10:03:46]line РНМ: 0000000000156251 [10:03:46]line Версия ККМ: v1.0 [10:03:46]line ФМ: 0000000000963346 [10:03:46]line ФД: 69243 [10:03:46]line ФПД: 221719300452089 [10:03:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100354&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69243&fm=221719300452089&tin=02508201610067®Number=0000000000156251&sum=13000 [10:03:46]OFD Sender: Processing packet 69243 [packets to send 18, broken 17] [10:03:46]ProducePacketName [10:03:46]name=ofd_packets/00069243 [10:03:46]OFD Sender: To server: pG, [10:03:46]CommunicateWithHost lk.salyk.kg:30040 [10:03:46]ConnectInit lk.salyk.kg [10:03:46]written 0, free lines is 4095 [10:03:46]Connected sock=10 [10:03:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 5E 0C 07 01 CF A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 8A D5 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7B 0E 01 00 35 04 06 00 C9 A7 0C 24 AE F9 58 1F DB E7 83 EA 70 FF [10:03:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 8C 5A 47 00 D9 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7B 0E 01 00 F4 03 04 00 31 7F 14 67 B6 04 01 00 00 EC 8D 4F AA 3F 35 78 F3 [10:03:47]CommunicateWithHost err = 0 [10:03:47]CheckOFDResponse [10:03:47]1017 (14) - 77093643461234 [10:03:47]1041 (16) - 0000000000963346 [10:03:47]1040 (4) - 69243 [10:03:47]1012 (4) - 20.10.2024 03:55 [10:03:47]1206 (1) - 0 [10:03:47]OFD Sender: Remove packet 69243 [10:03:47]ProducePacketName [10:03:47]name=ofd_packets/00069243 [10:03:47]NVStorageDeleteData [10:03:47]Write to MH i2c: 01 00 00 C7 BE 85 [10:03:47]Write i2c OK [10:03:47]MH_I2C_Read... [10:03:47]Read from MH i2c: 01 [10:03:47]MH_I2C_Read... [10:03:47]Read from MH i2c: 01 07 00 [10:03:47]MH_I2C_Read... [10:03:47]Read from MH i2c: 01 07 00 C7 BE 00 00 00 00 00 DD 0C 75 [10:03:47]RasterBufferAndPrint [10:03:47]line [10:03:47]line [10:03:47]line [10:03:47]line [10:03:47]line [10:03:47]written 0, free lines is 3299 [10:03:47]MH_Cut [10:03:47]Write to MH i2c: D1 01 00 CE BE 01 5E [10:03:47]Write i2c OK [10:03:47]MH_I2C_Read... [10:03:47]Read from MH i2c: D1 [10:03:47]MH_I2C_Read... [10:03:47]Read from MH i2c: D1 01 00 [10:03:47]MH_I2C_Read... [10:03:47]Read from MH i2c: D1 01 00 CE BE 00 5D [10:03:47]Write to MH i2c: 01 00 00 CF BE 8D [10:03:47]Write i2c OK [10:03:47]MH_I2C_Read... [10:03:47]OFD Sender: No OFD packet to send [10:03:48]*** Cut start [10:03:48]*** Partial cut [10:03:48]*** CUTSNS_PIN = 1 [10:03:48]*** CUTSNS_PIN = 0 [10:03:48]*** Brake cut motor [10:03:48]Read from MH i2c: 01 [10:03:48]MH_I2C_Read... [10:03:48]*** Stop cut motor [10:03:48]*** Cut end [10:03:48]Read from MH i2c: 01 07 00 [10:03:48]MH_I2C_Read... [10:03:48]Read from MH i2c: 01 07 00 CF BE 00 00 00 00 00 FF 0F A2 [10:03:48]process_action close_receipt done [10:03:48]requested_data is exist [10:03:48]produce_requested_data [10:03:48]requested_item fm.sn is exist - process it [10:03:48]wFMCommunicate request_size=4 [10:03:48]MH_SAM_APDU [10:03:48]CAPDU: 80 11 00 00 [10:03:48]Write to MH i2c: E2 08 00 D0 BE 80 11 00 00 00 00 00 00 08 [10:03:48]Write i2c OK [10:03:48]MH_I2C_Read... [10:03:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:48]Read from MH i2c: E2 [10:03:48]MH_I2C_Read... [10:03:48]Read from MH i2c: E2 17 00 [10:03:48]MH_I2C_Read... [10:03:48]Read from MH i2c: E2 17 00 D0 BE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5A [10:03:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:03:48]wFMCommunicate OK [10:03:48]requested_item fd.num is exist - process it [10:03:48]SAM_PROTO_GetFieldsCounters [10:03:48]wFMCommunicate request_size=4 [10:03:48]MH_SAM_APDU [10:03:48]CAPDU: 80 13 00 00 [10:03:48]Write to MH i2c: E2 08 00 D1 BE 80 13 00 00 00 00 00 00 0B [10:03:48]Write i2c OK [10:03:48]MH_I2C_Read... [10:03:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:03:48]Read from MH i2c: E2 [10:03:48]MH_I2C_Read... [10:03:48]Read from MH i2c: E2 62 00 [10:03:48]MH_I2C_Read... [10:03:48]Read from MH i2c: E2 62 00 D1 BE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7B 0E 01 00 0E 04 04 00 C1 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 79 [10:03:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7B 0E 01 00 0E 04 04 00 C1 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 [10:03:48]wFMCommunicate OK [10:03:48]SAM_PROTO_GetFieldsCounters done [10:03:48]requested_item shift.num is exist - process it [10:03:48]requested_item shift.opened is exist - process it [10:03:48]req_shift_opened [10:03:48]FM_GetShiftState [10:03:48]SAM_PROTO_GetShiftState [10:03:48]wFMCommunicate request_size=4 [10:03:48]MH_SAM_APDU [10:03:48]CAPDU: 80 13 01 00 [10:03:48]Write to MH i2c: E2 08 00 D2 BE 80 13 01 00 00 00 00 00 0D [10:03:48]Write i2c OK [10:03:48]MH_I2C_Read... [10:03:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:48]Read from MH i2c: E2 [10:03:48]MH_I2C_Read... [10:03:48]Read from MH i2c: E2 0E 00 [10:03:48]MH_I2C_Read... [10:03:48]Read from MH i2c: E2 0E 00 D2 BE 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 13 [10:03:48]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:03:48]wFMCommunicate OK [10:03:48]SAM_PROTO_GetShiftState done [10:03:48]FM_GetShiftState done [10:03:48]req_shift_opened done [10:03:48]requested_item shift.open_date is exist - process it [10:03:48]req_shift_open_date [10:03:48]req_shift_open_date done [10:03:48]produce_requested_data done [10:03:48]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69243,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [10:03:48]process_action_free close_receipt [10:03:48]json_value_free [10:03:48]json_value_free done [10:03:48]process_json_proto returns [10:03:48]Send response to host [10:03:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69243,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [10:03:48]free response buf [10:03:48]execute_script done [10:03:48]execute_script returns [10:03:48]free content buf [10:03:48]Sock 9.Close socket [10:03:48]Sock 9.Thread stoped [10:03:52]OFD Sender: No OFD packet to send [10:03:57]OFD Sender: No OFD packet to send [10:04:02]OFD Sender: No OFD packet to send [10:04:07]OFD Sender: No OFD packet to send [10:04:12]OFD Sender: No OFD packet to send [10:04:17]OFD Sender: No OFD packet to send [10:04:22]OFD Sender: No OFD packet to send [10:04:27]OFD Sender: No OFD packet to send [10:04:32]OFD Sender: No OFD packet to send [10:04:37]OFD Sender: No OFD packet to send [10:04:42]OFD Sender: No OFD packet to send [10:04:47]OFD Sender: No OFD packet to send [10:04:52]OFD Sender: No OFD packet to send [10:04:57]OFD Sender: No OFD packet to send [10:04:57]accept exits with 8 [10:04:57]New connection [10:04:57]New thread 3067116900 created [10:04:57]Thread 3067260260 joined [10:04:57]Waiting for new connection... [10:04:57] Sock 8.Parse request [10:04:57]Sock 8.Check first char [10:04:57]Sock 8.First char is OK [10:04:57]request: POST /json_proto HTTP/1.0 [10:04:57]Method: POST [10:04:57]URL: /json_proto [10:04:57]Method is POST - this is cgi request [10:04:57]url: /json_proto [10:04:57]query_string will be loaded in cgi processing [10:04:57]execute_cgi json_proto POST (null) [10:04:57]execute_cgi path=json_proto method=POST [10:04:57]POST find Content-Length [10:04:57]Host: 172.17.50.3:8080 [10:04:57]Content-Length: 978 [10:04:57]Content-Type: application/json [10:04:57] [10:04:57]POST finish read [10:04:57]Found Content-Length = 978 [10:04:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 53.200, "sum" : 4000.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 53.20 \u0441\u043E\u043C", "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:57]execute_script... [10:04: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)2884958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 53.200, "sum" : 4000.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 53.20 \u0441\u043E\u043C", "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:57]POST & json_proto [10:04:57]process_json_proto [10:04:57]json parsed OK: [10:04:57]protocol is kg_v1.0 [10:04:57]action value=close_receipt [10:04:57]process_action close_receipt [10:04:57]cmd_close_receipt [10:04:57]MH_GetDate [10:04:57]Write to MH i2c: F0 00 00 D3 BE 80 [10:04:57]Write i2c OK [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: F0 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: F0 09 00 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: F0 09 00 D3 BE 00 D3 D5 14 67 6B 98 1E 66 33 [10:04:57]GetLastDocTimeStamp 1729418634 [10:04:57]current date 1729418707 [10:04:57]FM_GetShiftState [10:04:57]SAM_PROTO_GetShiftState [10:04:57]wFMCommunicate request_size=4 [10:04:57]MH_SAM_APDU [10:04:57]CAPDU: 80 13 01 00 [10:04:57]Write to MH i2c: E2 08 00 D4 BE 80 13 01 00 00 00 00 00 0F [10:04:57]Write i2c OK [10:04:57]MH_I2C_Read... [10:04:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:57]Read from MH i2c: E2 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: E2 0E 00 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: E2 0E 00 D4 BE 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 15 [10:04:57]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:04:57]wFMCommunicate OK [10:04:57]SAM_PROTO_GetShiftState done [10:04:57]FM_GetShiftState done [10:04:57]opened in 1729383220 [10:04:57]opened+sec_in_day 1729469620 [10:04:57]quantity*price = 400064 [10:04:57]sum+1 = 400065 [10:04:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.85 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 89 20.10.2024 10:05 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Дисконтная программа ДТ номер 85 сэкономлено 53.20 сом ФМ: 0000000000963346 ФД: 69244 ФПД: 48764196801772 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100507&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69244&fm=48764196801772&tin=02508201610067®Number=0000000000156251&sum=400000 [10:04:59]StoreToDocumentArchive [10:04:59]shift 193 fd 69244 [10:04:59]save to /storage/0193/doc_00069244 [10:04:59]save last doc name /storage/0193/doc_00069244 to /storage/kkm_last_doc_name [10:04:59]save OK [10:04:59]Clear old archive folders... [10:04:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:04:59]tlvbuf is 0079EDE0 [10:04:59]SAM_PROTO_ClearQueue [10:04:59]wFMCommunicate request_size=4 [10:04:59]MH_SAM_APDU [10:04:59]CAPDU: 80 09 00 00 [10:04:59]Write to MH i2c: E2 08 00 E1 BE 80 09 00 00 00 00 00 00 11 [10:04:59]Write i2c OK [10:04:59]MH_I2C_Read... [10:04:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:59]Read from MH i2c: E2 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: E2 03 00 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: E2 03 00 E1 BE 00 90 00 13 [10:04:59]RAPDU: 90 00 [10:04:59]wFMCommunicate OK [10:04:59]SAM_PROTO_ClearQueue done [10:04:59]KKMCreateOFDPacket [10:04:59]OFDProtocolAddRootSTLVToBuf [10:04:59]FM_MakeSignedData [10:04:59]FM_MakeSignedData [10:04:59]SAM_PROTO_SignData [10:04:59]wFMCommunicate request_size=4 [10:04:59]MH_SAM_APDU [10:04:59]CAPDU: 80 0D 01 02 [10:04:59]Write to MH i2c: E2 08 00 E2 BE 80 0D 01 02 00 00 00 00 19 [10:04:59]Write i2c OK [10:04:59]MH_I2C_Read... [10:04:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:59]Read from MH i2c: E2 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: E2 03 00 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: E2 03 00 E2 BE 00 90 00 14 [10:04:59]RAPDU: 90 00 [10:04:59]wFMCommunicate OK [10:04:59]wFMCommunicate request_size=255 [10:04:59]MH_SAM_APDU [10:04: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 D0 CF 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C0 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 D3 D5 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7C 0E 01 00 35 04 06 00 2C 59 CC A0 [10:04:59]Write to MH i2c: E2 02 01 E3 BE 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D0 CF 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C0 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 D3 D5 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7C 0E 01 00 35 04 06 00 2C 59 CC A0 00 00 E0 [10:04:59]Write i2c OK [10:04:59]MH_I2C_Read... [10:04:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:59]Read from MH i2c: E2 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: E2 03 00 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: E2 03 00 E3 BE 00 90 00 15 [10:04:59]RAPDU: 90 00 [10:04:59]wFMCommunicate OK [10:04:59]wFMCommunicate request_size=7 [10:04:59]MH_SAM_APDU [10:04:59]CAPDU: 80 0D 02 02 02 CC EC [10:04:59]Write to MH i2c: E2 0A 00 E4 BE 80 0D 02 02 02 00 CC EC 00 00 D8 [10:04:59]Write i2c OK [10:04:59]MH_I2C_Read... [10:04:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:59]Read from MH i2c: E2 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: E2 03 00 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: E2 03 00 E4 BE 00 90 00 16 [10:04:59]RAPDU: 90 00 [10:04:59]wFMCommunicate OK [10:04:59]wFMCommunicate request_size=4 [10:04:59]MH_SAM_APDU [10:04:59]CAPDU: 80 0D 03 02 [10:04:59]Write to MH i2c: E2 08 00 E5 BE 80 0D 03 02 00 00 00 00 1E [10:04:59]Write i2c OK [10:04:59]MH_I2C_Read... [10:04:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:59]Read from MH i2c: E2 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: E2 0B 00 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: E2 0B 00 E5 BE 00 17 E2 C3 64 16 BE 25 26 90 00 5E [10:04:59]RAPDU: 17 E2 C3 64 16 BE 25 26 90 00 [10:04:59]wFMCommunicate OK [10:04:59]SAM_PROTO_SignData done [10:04:59]FM_MakeSignedData done [10:04:59]CreateOFDProtocolMessage [10:04:59]wFMCommunicate request_size=4 [10:04:59]MH_SAM_APDU [10:04:59]CAPDU: 80 11 00 00 [10:04:59]Write to MH i2c: E2 08 00 E6 BE 80 11 00 00 00 00 00 00 1E [10:04:59]Write i2c OK [10:04:59]MH_I2C_Read... [10:04:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:59]Read from MH i2c: E2 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: E2 17 00 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: E2 17 00 E6 BE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 70 [10:04:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:04:59]wFMCommunicate OK [10:04:59]CreateOFDProtocolMessage done [10:04:59]OFDSenderStorePacket 69244 [10:04:59]StoreOFDPacket docnum=69244 [10:04:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 84 FB 04 01 82 A5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D0 CF 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C0 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 D3 D5 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7C 0E 01 00 35 04 06 00 2C 59 CC A0 CC EC 17 E2 C3 64 16 BE 25 26 [10:04:59]CheckFolder [10:04:59]dirname=/storage/ofd_packets [10:04:59]CheckFolder done [10:04:59]ProducePacketName [10:04:59]name=ofd_packets/00069244 [10:04:59]NVStorageSaveData ofd_packets/00069244 [10:04:59]File name is /storage/ofd_packets/00069244 [10:04:59]Write 298 bytes [10:04:59]NVStorageSaveData done [10:04:59]OFDSenderStorePacket done [10:04:59]KKMCreateOFDPacket done [10:04:59]NVStorageSaveData kkm_last_timestamp [10:04:59]File name is /storage/kkm_last_timestamp [10:04:59]Write 4 bytes [10:04:59]NVStorageSaveData done [10:04:59]ExternCall_PrintAddStr [10:04:59]wPrintStart [10:04:59]Write to MH i2c: 01 00 00 E7 BE A5 [10:04:59]Write i2c OK [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: 01 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: 01 07 00 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: 01 07 00 E7 BE 00 00 00 00 00 FF 0F BA [10:04:59]RasterBufferAndPrint [10:04:59]line Счет N : (1)2884958 [10:04:59]line ИНН: 02508201610067 [10:04:59]line Контрольно-Кассовый Чек [10:04:59]line ПРОДАЖА [10:04:59]line ТРК (МРК, ГНК) : 51 [10:04:59]line Товар: 2710194210 [10:04:59]line ДТ-К-5 [10:04:59]line 53.200 * 75.20 [10:04:59]line = 4000.64 [10:04:59]line НДС 12% НСП 1% [10:04:59]line > о реализуемом товаре [10:04:59]line ОКРУГЛЕНИЕ: -0.64 [10:04:59]line ИТОГО: 4000.00 [10:04:59]line Внесено: 4000.00 [10:04:59]line СДАЧА: 0.00 [10:04:59]line НСП 1% : 35.40 [10:04:59]line НДС 12% : 424.85 [10:04:59]line Наличными: 4000.00 [10:04:59]line Безнал.: 0.00 [10:04:59]line Место: АЗС № 85 "Партнер Нефть" [10:04:59]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:04:59]line СНО: Общий режим [10:04:59]line Чек 89 20.10.2024 10:05 [10:04:59]line Смена: 193 ФФД: 1.0 [10:04:59]line ЗНМ: 0300000167 [10:04:59]line РНМ: 0000000000156251 [10:04:59]line Версия ККМ: v1.0 [10:04:59]line [10:04:59]line Дисконтная программа [10:04:59]line ДТ [10:04:59]line номер 85 [10:04:59]line сэкономлено 53.20 сом [10:04:59]line ФМ: 0000000000963346 [10:04:59]line ФД: 69244 [10:04:59]line ФПД: 48764196801772 [10:04:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100507&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69244&fm=48764196801772&tin=02508201610067®Number=0000000000156251&sum=400000 [10:04:59]OFD Sender: Processing packet 69244 [packets to send 18, broken 17] [10:04:59]ProducePacketName [10:04:59]name=ofd_packets/00069244 [10:04:59]OFD Sender: To server: pG, [10:04:59]CommunicateWithHost lk.salyk.kg:30040 [10:04:59]ConnectInit lk.salyk.kg [10:04:59]written 0, free lines is 4095 [10:04:59]Connected sock=10 [10:04:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 84 FB 04 01 82 A5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D0 CF 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C0 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 D3 D5 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7C 0E 01 00 35 04 06 00 2C 59 CC A0 CC EC 17 E2 C3 64 16 BE 25 26 [10:05:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 00 61 47 00 C8 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7C 0E 01 00 F4 03 04 00 7A 7F 14 67 B6 04 01 00 00 42 DE AF 31 FB 0F A9 50 [10:05:00]CommunicateWithHost err = 0 [10:05:00]CheckOFDResponse [10:05:00]1017 (14) - 77093643461234 [10:05:00]1041 (16) - 0000000000963346 [10:05:00]1040 (4) - 69244 [10:05:00]1012 (4) - 20.10.2024 03:56 [10:05:00]1206 (1) - 0 [10:05:00]OFD Sender: Remove packet 69244 [10:05:00]ProducePacketName [10:05:00]name=ofd_packets/00069244 [10:05:00]NVStorageDeleteData [10:05:00]Write to MH i2c: 01 00 00 17 BF D6 [10:05:00]Write i2c OK [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: 01 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: 01 07 00 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: 01 07 00 17 BF 00 00 00 00 00 92 0C 7B [10:05:00]RasterBufferAndPrint [10:05:00]line [10:05:00]line [10:05:00]line [10:05:00]line [10:05:00]line [10:05:00]written 0, free lines is 3224 [10:05:00]MH_Cut [10:05:00]Write to MH i2c: D1 01 00 1E BF 01 AF [10:05:00]Write i2c OK [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: D1 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: D1 01 00 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: D1 01 00 1E BF 00 AE [10:05:00]Write to MH i2c: 01 00 00 1F BF DE [10:05:00]Write i2c OK [10:05:00]MH_I2C_Read... [10:05:00]OFD Sender: No OFD packet to send [10:05:01]*** Cut start [10:05:01]*** Partial cut [10:05:01]*** CUTSNS_PIN = 1 [10:05:01]*** CUTSNS_PIN = 0 [10:05:01]*** Brake cut motor [10:05:01]Read from MH i2c: 01 [10:05:01]MH_I2C_Read... [10:05:01]*** Stop cut motor [10:05:01]*** Cut end [10:05:01]Read from MH i2c: 01 07 00 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: 01 07 00 1F BF 00 00 00 00 00 FF 0F F3 [10:05:01]process_action close_receipt done [10:05:01]requested_data is exist [10:05:01]produce_requested_data [10:05:01]requested_item fm.sn is exist - process it [10:05:01]wFMCommunicate request_size=4 [10:05:01]MH_SAM_APDU [10:05:01]CAPDU: 80 11 00 00 [10:05:01]Write to MH i2c: E2 08 00 20 BF 80 11 00 00 00 00 00 00 59 [10:05:01]Write i2c OK [10:05:01]MH_I2C_Read... [10:05:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:01]Read from MH i2c: E2 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 17 00 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 17 00 20 BF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AB [10:05:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:05:01]wFMCommunicate OK [10:05:01]requested_item fd.num is exist - process it [10:05:01]SAM_PROTO_GetFieldsCounters [10:05:01]wFMCommunicate request_size=4 [10:05:01]MH_SAM_APDU [10:05:01]CAPDU: 80 13 00 00 [10:05:01]Write to MH i2c: E2 08 00 21 BF 80 13 00 00 00 00 00 00 5C [10:05:01]Write i2c OK [10:05:01]MH_I2C_Read... [10:05:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:01]Read from MH i2c: E2 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 62 00 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 62 00 21 BF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7C 0E 01 00 0E 04 04 00 C1 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 CE [10:05:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7C 0E 01 00 0E 04 04 00 C1 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 [10:05:01]wFMCommunicate OK [10:05:01]SAM_PROTO_GetFieldsCounters done [10:05:01]requested_item shift.num is exist - process it [10:05:01]requested_item shift.opened is exist - process it [10:05:01]req_shift_opened [10:05:01]FM_GetShiftState [10:05:01]SAM_PROTO_GetShiftState [10:05:01]wFMCommunicate request_size=4 [10:05:01]MH_SAM_APDU [10:05:01]CAPDU: 80 13 01 00 [10:05:01]Write to MH i2c: E2 08 00 22 BF 80 13 01 00 00 00 00 00 5E [10:05:01]Write i2c OK [10:05:01]MH_I2C_Read... [10:05:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:02]Read from MH i2c: E2 [10:05:02]MH_I2C_Read... [10:05:02]Read from MH i2c: E2 0E 00 [10:05:02]MH_I2C_Read... [10:05:02]Read from MH i2c: E2 0E 00 22 BF 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 64 [10:05:02]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:05:02]wFMCommunicate OK [10:05:02]SAM_PROTO_GetShiftState done [10:05:02]FM_GetShiftState done [10:05:02]req_shift_opened done [10:05:02]requested_item shift.open_date is exist - process it [10:05:02]req_shift_open_date [10:05:02]req_shift_open_date done [10:05:02]produce_requested_data done [10:05:02]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69244,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [10:05:02]process_action_free close_receipt [10:05:02]json_value_free [10:05:02]json_value_free done [10:05:02]process_json_proto returns [10:05:02]Send response to host [10:05:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69244,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [10:05:02]free response buf [10:05:02]execute_script done [10:05:02]execute_script returns [10:05:02]free content buf [10:05:02]Sock 8.Close socket [10:05:02]Sock 8.Thread stoped [10:05:05]OFD Sender: No OFD packet to send [10:05:10]OFD Sender: No OFD packet to send [10:05:15]OFD Sender: No OFD packet to send [10:05:20]OFD Sender: No OFD packet to send [10:05:25]OFD Sender: No OFD packet to send [10:05:30]OFD Sender: No OFD packet to send [10:05:35]OFD Sender: No OFD packet to send [10:05:40]OFD Sender: No OFD packet to send [10:05:44]accept exits with 9 [10:05:44]New connection [10:05:44]New thread 3067260260 created [10:05:44]Thread 3067116900 joined [10:05:44]Waiting for new connection... [10:05:44] Sock 9.Parse request [10:05:44]Sock 9.Check first char [10:05:44]Sock 9.First char is OK [10:05:44]request: POST /json_proto HTTP/1.0 [10:05:44]Method: POST [10:05:44]URL: /json_proto [10:05:44]Method is POST - this is cgi request [10:05:44]url: /json_proto [10:05:44]query_string will be loaded in cgi processing [10:05:44]execute_cgi json_proto POST (null) [10:05:44]execute_cgi path=json_proto method=POST [10:05:44]POST find Content-Length [10:05:44]Host: 172.17.50.3:8080 [10:05:44]Content-Length: 675 [10:05:44]Content-Type: application/json [10:05:44] [10:05:44]POST finish read [10:05:44]Found Content-Length = 675 [10:05:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:44]execute_script... [10:05:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:44]POST & json_proto [10:05:44]process_json_proto [10:05:44]json parsed OK: [10:05:44]protocol is kg_v1.0 [10:05:44]action value=close_receipt [10:05:44]process_action close_receipt [10:05:44]cmd_close_receipt [10:05:44]MH_GetDate [10:05:44]Write to MH i2c: F0 00 00 23 BF D1 [10:05:44]Write i2c OK [10:05:44]MH_I2C_Read... [10:05:44]Read from MH i2c: F0 [10:05:44]MH_I2C_Read... [10:05:44]Read from MH i2c: F0 09 00 [10:05:44]MH_I2C_Read... [10:05:44]Read from MH i2c: F0 09 00 23 BF 00 02 D6 14 67 6B 98 1E 66 B4 [10:05:44]GetLastDocTimeStamp 1729418707 [10:05:44]current date 1729418754 [10:05:44]FM_GetShiftState [10:05:44]SAM_PROTO_GetShiftState [10:05:44]wFMCommunicate request_size=4 [10:05:44]MH_SAM_APDU [10:05:44]CAPDU: 80 13 01 00 [10:05:44]Write to MH i2c: E2 08 00 24 BF 80 13 01 00 00 00 00 00 60 [10:05:44]Write i2c OK [10:05:44]MH_I2C_Read... [10:05:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:44]Read from MH i2c: E2 [10:05:44]MH_I2C_Read... [10:05:44]Read from MH i2c: E2 0E 00 [10:05:44]MH_I2C_Read... [10:05:44]Read from MH i2c: E2 0E 00 24 BF 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 66 [10:05:44]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:05:44]wFMCommunicate OK [10:05:44]SAM_PROTO_GetShiftState done [10:05:44]FM_GetShiftState done [10:05:44]opened in 1729383220 [10:05:44]opened+sec_in_day 1729469620 [10:05:44]quantity*price = 50063 [10:05:44]sum+1 = 50064 [10:05:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 90 20.10.2024 10:05 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69245 ФПД: 144172636258054 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100554&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69245&fm=144172636258054&tin=02508201610067®Number=0000000000156251&sum=50000 [10:05:45]StoreToDocumentArchive [10:05:45]shift 193 fd 69245 [10:05:45]save to /storage/0193/doc_00069245 [10:05:45]save last doc name /storage/0193/doc_00069245 to /storage/kkm_last_doc_name [10:05:45]save OK [10:05:45]Clear old archive folders... [10:05:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:05:45]tlvbuf is 00584280 [10:05:45]SAM_PROTO_ClearQueue [10:05:45]wFMCommunicate request_size=4 [10:05:45]MH_SAM_APDU [10:05:45]CAPDU: 80 09 00 00 [10:05:45]Write to MH i2c: E2 08 00 31 BF 80 09 00 00 00 00 00 00 62 [10:05:45]Write i2c OK [10:05:45]MH_I2C_Read... [10:05:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:45]Read from MH i2c: E2 [10:05:45]MH_I2C_Read... [10:05:45]Read from MH i2c: E2 03 00 [10:05:45]MH_I2C_Read... [10:05:45]Read from MH i2c: E2 03 00 31 BF 00 90 00 64 [10:05:45]RAPDU: 90 00 [10:05:45]wFMCommunicate OK [10:05:45]SAM_PROTO_ClearQueue done [10:05:45]KKMCreateOFDPacket [10:05:45]OFDProtocolAddRootSTLVToBuf [10:05:45]FM_MakeSignedData [10:05:45]FM_MakeSignedData [10:05:45]SAM_PROTO_SignData [10:05:45]wFMCommunicate request_size=4 [10:05:45]MH_SAM_APDU [10:05:45]CAPDU: 80 0D 01 02 [10:05:45]Write to MH i2c: E2 08 00 32 BF 80 0D 01 02 00 00 00 00 6A [10:05:45]Write i2c OK [10:05:45]MH_I2C_Read... [10:05:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:45]Read from MH i2c: E2 [10:05:45]MH_I2C_Read... [10:05:45]Read from MH i2c: E2 03 00 [10:05:45]MH_I2C_Read... [10:05:45]Read from MH i2c: E2 03 00 32 BF 00 90 00 65 [10:05:45]RAPDU: 90 00 [10:05:45]wFMCommunicate OK [10:05:45]wFMCommunicate request_size=255 [10:05:45]MH_SAM_APDU [10:05: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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 02 D6 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7D 0E 01 00 35 04 06 00 83 1F CE C5 [10:05:45]Write to MH i2c: E2 02 01 33 BF 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 02 D6 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7D 0E 01 00 35 04 06 00 83 1F CE C5 00 00 A0 [10:05:45]Write i2c OK [10:05:45]MH_I2C_Read... [10:05:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:46]Read from MH i2c: E2 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: E2 03 00 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: E2 03 00 33 BF 00 90 00 66 [10:05:46]RAPDU: 90 00 [10:05:46]wFMCommunicate OK [10:05:46]wFMCommunicate request_size=7 [10:05:46]MH_SAM_APDU [10:05:46]CAPDU: 80 0D 02 02 02 3F 06 [10:05:46]Write to MH i2c: E2 0A 00 34 BF 80 0D 02 02 02 00 3F 06 00 00 B6 [10:05:46]Write i2c OK [10:05:46]MH_I2C_Read... [10:05:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:46]Read from MH i2c: E2 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: E2 03 00 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: E2 03 00 34 BF 00 90 00 67 [10:05:46]RAPDU: 90 00 [10:05:46]wFMCommunicate OK [10:05:46]wFMCommunicate request_size=4 [10:05:46]MH_SAM_APDU [10:05:46]CAPDU: 80 0D 03 02 [10:05:46]Write to MH i2c: E2 08 00 35 BF 80 0D 03 02 00 00 00 00 6F [10:05:46]Write i2c OK [10:05:46]MH_I2C_Read... [10:05:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:46]Read from MH i2c: E2 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: E2 0B 00 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: E2 0B 00 35 BF 00 2C C3 44 38 D3 92 B5 C8 90 00 BD [10:05:46]RAPDU: 2C C3 44 38 D3 92 B5 C8 90 00 [10:05:46]wFMCommunicate OK [10:05:46]SAM_PROTO_SignData done [10:05:46]FM_MakeSignedData done [10:05:46]CreateOFDProtocolMessage [10:05:46]wFMCommunicate request_size=4 [10:05:46]MH_SAM_APDU [10:05:46]CAPDU: 80 11 00 00 [10:05:46]Write to MH i2c: E2 08 00 36 BF 80 11 00 00 00 00 00 00 6F [10:05:46]Write i2c OK [10:05:46]MH_I2C_Read... [10:05:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:46]Read from MH i2c: E2 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: E2 17 00 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: E2 17 00 36 BF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C1 [10:05:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:05:46]wFMCommunicate OK [10:05:46]CreateOFDProtocolMessage done [10:05:46]OFDSenderStorePacket 69245 [10:05:46]StoreOFDPacket docnum=69245 [10:05:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 02 28 04 01 D3 B9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 02 D6 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7D 0E 01 00 35 04 06 00 83 1F CE C5 3F 06 2C C3 44 38 D3 92 B5 C8 [10:05:46]CheckFolder [10:05:46]dirname=/storage/ofd_packets [10:05:46]CheckFolder done [10:05:46]ProducePacketName [10:05:46]name=ofd_packets/00069245 [10:05:46]NVStorageSaveData ofd_packets/00069245 [10:05:46]File name is /storage/ofd_packets/00069245 [10:05:46]Write 298 bytes [10:05:46]NVStorageSaveData done [10:05:46]OFDSenderStorePacket done [10:05:46]KKMCreateOFDPacket done [10:05:46]NVStorageSaveData kkm_last_timestamp [10:05:46]File name is /storage/kkm_last_timestamp [10:05:46]Write 4 bytes [10:05:46]NVStorageSaveData done [10:05:46]ExternCall_PrintAddStr [10:05:46]wPrintStart [10:05:46]Write to MH i2c: 01 00 00 37 BF F6 [10:05:46]Write i2c OK [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: 01 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: 01 07 00 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: 01 07 00 37 BF 00 00 00 00 00 FF 0F 0B [10:05:46]RasterBufferAndPrint [10:05:46]line Счет N : (1)2884959 [10:05:46]line ИНН: 02508201610067 [10:05:46]line Контрольно-Кассовый Чек [10:05:46]line ПРОДАЖА [10:05:46]line ТРК (МРК, ГНК) : 61 [10:05:46]line Товар: 2710194210 [10:05:46]line ДТ-К-5 [10:05:46]line 6.570 * 76.20 [10:05:46]line = 500.63 [10:05:46]line НДС 12% НСП 1% [10:05:46]line > о реализуемом товаре [10:05:46]line ОКРУГЛЕНИЕ: -0.63 [10:05:46]line ИТОГО: 500.00 [10:05:46]line Внесено: 500.00 [10:05:46]line СДАЧА: 0.00 [10:05:46]line НСП 1% : 4.43 [10:05:46]line НДС 12% : 53.16 [10:05:46]line Наличными: 500.00 [10:05:46]line Безнал.: 0.00 [10:05:46]line Место: АЗС № 85 "Партнер Нефть" [10:05:46]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:05:46]line СНО: Общий режим [10:05:46]line Чек 90 20.10.2024 10:05 [10:05:46]line Смена: 193 ФФД: 1.0 [10:05:46]line ЗНМ: 0300000167 [10:05:46]line РНМ: 0000000000156251 [10:05:46]line Версия ККМ: v1.0 [10:05:46]line ФМ: 0000000000963346 [10:05:46]line ФД: 69245 [10:05:46]line ФПД: 144172636258054 [10:05:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100554&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69245&fm=144172636258054&tin=02508201610067®Number=0000000000156251&sum=50000 [10:05:46]OFD Sender: Processing packet 69245 [packets to send 18, broken 17] [10:05:46]ProducePacketName [10:05:46]name=ofd_packets/00069245 [10:05:46]OFD Sender: To server: pG, [10:05:46]CommunicateWithHost lk.salyk.kg:30040 [10:05:46]ConnectInit lk.salyk.kg [10:05:46]written 0, free lines is 4095 [10:05:46]Connected sock=10 [10:05:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 02 28 04 01 D3 B9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 02 D6 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7D 0E 01 00 35 04 06 00 83 1F CE C5 3F 06 2C C3 44 38 D3 92 B5 C8 [10:05:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 4F A3 47 00 DD C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7D 0E 01 00 F4 03 04 00 A9 7F 14 67 B6 04 01 00 00 F7 C8 4B 8F 5A 97 85 95 [10:05:47]CommunicateWithHost err = 0 [10:05:47]CheckOFDResponse [10:05:47]1017 (14) - 77093643461234 [10:05:47]1041 (16) - 0000000000963346 [10:05:47]1040 (4) - 69245 [10:05:47]1012 (4) - 20.10.2024 03:57 [10:05:47]1206 (1) - 0 [10:05:47]OFD Sender: Remove packet 69245 [10:05:47]ProducePacketName [10:05:47]name=ofd_packets/00069245 [10:05:47]NVStorageDeleteData [10:05:47]Write to MH i2c: 01 00 00 62 BF 21 [10:05:47]Write i2c OK [10:05:47]MH_I2C_Read... [10:05:47]Read from MH i2c: 01 [10:05:47]MH_I2C_Read... [10:05:47]Read from MH i2c: 01 07 00 [10:05:47]MH_I2C_Read... [10:05:47]Read from MH i2c: 01 07 00 62 BF 00 00 00 00 00 E7 0C 1B [10:05:47]RasterBufferAndPrint [10:05:47]line [10:05:47]line [10:05:47]line [10:05:47]line [10:05:47]line [10:05:47]written 0, free lines is 3312 [10:05:47]MH_Cut [10:05:47]Write to MH i2c: D1 01 00 69 BF 01 FA [10:05:47]Write i2c OK [10:05:47]MH_I2C_Read... [10:05:47]Read from MH i2c: D1 [10:05:47]MH_I2C_Read... [10:05:47]Read from MH i2c: D1 01 00 [10:05:47]MH_I2C_Read... [10:05:47]Read from MH i2c: D1 01 00 69 BF 00 F9 [10:05:47]Write to MH i2c: 01 00 00 6A BF 29 [10:05:47]Write i2c OK [10:05:47]MH_I2C_Read... [10:05:47]OFD Sender: No OFD packet to send [10:05:47]*** Cut start [10:05:47]*** Partial cut [10:05:47]*** CUTSNS_PIN = 1 [10:05:47]*** CUTSNS_PIN = 0 [10:05:48]*** Brake cut motor [10:05:48]Read from MH i2c: 01 [10:05:48]MH_I2C_Read... [10:05:48]*** Stop cut motor [10:05:48]*** Cut end [10:05:48]Read from MH i2c: 01 07 00 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: 01 07 00 6A BF 00 00 00 00 00 FF 0F 3E [10:05:48]process_action close_receipt done [10:05:48]requested_data is exist [10:05:48]produce_requested_data [10:05:48]requested_item fm.sn is exist - process it [10:05:48]wFMCommunicate request_size=4 [10:05:48]MH_SAM_APDU [10:05:48]CAPDU: 80 11 00 00 [10:05:48]Write to MH i2c: E2 08 00 6B BF 80 11 00 00 00 00 00 00 A4 [10:05:48]Write i2c OK [10:05:48]MH_I2C_Read... [10:05:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:48]Read from MH i2c: E2 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 17 00 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 17 00 6B BF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F6 [10:05:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:05:48]wFMCommunicate OK [10:05:48]requested_item fd.num is exist - process it [10:05:48]SAM_PROTO_GetFieldsCounters [10:05:48]wFMCommunicate request_size=4 [10:05:48]MH_SAM_APDU [10:05:48]CAPDU: 80 13 00 00 [10:05:48]Write to MH i2c: E2 08 00 6C BF 80 13 00 00 00 00 00 00 A7 [10:05:48]Write i2c OK [10:05:48]MH_I2C_Read... [10:05:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:48]Read from MH i2c: E2 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 62 00 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 62 00 6C BF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7D 0E 01 00 0E 04 04 00 C1 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 1D [10:05:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7D 0E 01 00 0E 04 04 00 C1 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 [10:05:48]wFMCommunicate OK [10:05:48]SAM_PROTO_GetFieldsCounters done [10:05:48]requested_item shift.num is exist - process it [10:05:48]requested_item shift.opened is exist - process it [10:05:48]req_shift_opened [10:05:48]FM_GetShiftState [10:05:48]SAM_PROTO_GetShiftState [10:05:48]wFMCommunicate request_size=4 [10:05:48]MH_SAM_APDU [10:05:48]CAPDU: 80 13 01 00 [10:05:48]Write to MH i2c: E2 08 00 6D BF 80 13 01 00 00 00 00 00 A9 [10:05:48]Write i2c OK [10:05:48]MH_I2C_Read... [10:05:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:48]Read from MH i2c: E2 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 0E 00 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 0E 00 6D BF 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 AF [10:05:48]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:05:48]wFMCommunicate OK [10:05:48]SAM_PROTO_GetShiftState done [10:05:48]FM_GetShiftState done [10:05:48]req_shift_opened done [10:05:48]requested_item shift.open_date is exist - process it [10:05:48]req_shift_open_date [10:05:48]req_shift_open_date done [10:05:48]produce_requested_data done [10:05:48]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69245,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [10:05:48]process_action_free close_receipt [10:05:48]json_value_free [10:05:48]json_value_free done [10:05:48]process_json_proto returns [10:05:48]Send response to host [10:05:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69245,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [10:05:48]free response buf [10:05:48]execute_script done [10:05:48]execute_script returns [10:05:48]free content buf [10:05:48]Sock 9.Close socket [10:05:48]Sock 9.Thread stoped [10:05:52]OFD Sender: No OFD packet to send [10:05:57]OFD Sender: No OFD packet to send [10:06:02]OFD Sender: No OFD packet to send [10:06:07]OFD Sender: No OFD packet to send [10:06:12]OFD Sender: No OFD packet to send [10:06:17]OFD Sender: No OFD packet to send [10:06:22]OFD Sender: No OFD packet to send [10:06:27]OFD Sender: No OFD packet to send [10:06:32]OFD Sender: No OFD packet to send [10:06:37]OFD Sender: No OFD packet to send [10:06:42]OFD Sender: No OFD packet to send [10:06:47]OFD Sender: No OFD packet to send [10:06:52]OFD Sender: No OFD packet to send [10:06:57]OFD Sender: No OFD packet to send [10:07:02]OFD Sender: No OFD packet to send [10:07:07]OFD Sender: No OFD packet to send [10:07:12]OFD Sender: No OFD packet to send [10:07:17]OFD Sender: No OFD packet to send [10:07:22]OFD Sender: No OFD packet to send [10:07:27]OFD Sender: No OFD packet to send [10:07:32]OFD Sender: No OFD packet to send [10:07:37]OFD Sender: No OFD packet to send [10:07:42]OFD Sender: No OFD packet to send [10:07:45]accept exits with 8 [10:07:45]New connection [10:07:45]New thread 3067116900 created [10:07:45]Thread 3067260260 joined [10:07:45]Waiting for new connection... [10:07:45] Sock 8.Parse request [10:07:45]Sock 8.Check first char [10:07:45]Sock 8.First char is OK [10:07:45]request: POST /json_proto HTTP/1.0 [10:07:45]Method: POST [10:07:45]URL: /json_proto [10:07:45]Method is POST - this is cgi request [10:07:45]url: /json_proto [10:07:45]query_string will be loaded in cgi processing [10:07:45]execute_cgi json_proto POST (null) [10:07:45]execute_cgi path=json_proto method=POST [10:07:45]POST find Content-Length [10:07:45]Host: 172.17.50.3:8080 [10:07:45]Content-Length: 771 [10:07:45]Content-Type: application/json [10:07:45] [10:07:45]POST finish read [10:07:45]Found Content-Length = 771 [10:07:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 15.430, "sum" : 600.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 600.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:45]execute_script... [10:07: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)2884960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 15.430, "sum" : 600.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 600.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:45]POST & json_proto [10:07:45]process_json_proto [10:07:45]json parsed OK: [10:07:45]protocol is kg_v1.0 [10:07:45]action value=close_receipt [10:07:45]process_action close_receipt [10:07:45]cmd_close_receipt [10:07:45]MH_GetDate [10:07:45]Write to MH i2c: F0 00 00 6E BF 1C [10:07:45]Write i2c OK [10:07:45]MH_I2C_Read... [10:07:45]Read from MH i2c: F0 [10:07:45]MH_I2C_Read... [10:07:45]Read from MH i2c: F0 09 00 [10:07:45]MH_I2C_Read... [10:07:45]Read from MH i2c: F0 09 00 6E BF 00 7A D6 14 67 6B 98 1E 66 77 [10:07:45]GetLastDocTimeStamp 1729418754 [10:07:45]current date 1729418874 [10:07:45]FM_GetShiftState [10:07:45]SAM_PROTO_GetShiftState [10:07:45]wFMCommunicate request_size=4 [10:07:45]MH_SAM_APDU [10:07:45]CAPDU: 80 13 01 00 [10:07:45]Write to MH i2c: E2 08 00 6F BF 80 13 01 00 00 00 00 00 AB [10:07:45]Write i2c OK [10:07:45]MH_I2C_Read... [10:07:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:45]Read from MH i2c: E2 [10:07:45]MH_I2C_Read... [10:07:45]Read from MH i2c: E2 0E 00 [10:07:45]MH_I2C_Read... [10:07:45]Read from MH i2c: E2 0E 00 6F BF 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 B1 [10:07:45]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:07:45]wFMCommunicate OK [10:07:45]SAM_PROTO_GetShiftState done [10:07:45]FM_GetShiftState done [10:07:45]opened in 1729383220 [10:07:45]opened+sec_in_day 1729469620 [10:07:45]quantity*price = 60022 [10:07:45]sum+1 = 60024 [10:07:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.23 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 0.00 Безнал.: 600.23 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 91 20.10.2024 10:07 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69246 ФПД: 230582866306957 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100754&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69246&fm=230582866306957&tin=02508201610067®Number=0000000000156251&sum=60023 [10:07:46]StoreToDocumentArchive [10:07:46]shift 193 fd 69246 [10:07:46]save to /storage/0193/doc_00069246 [10:07:46]save last doc name /storage/0193/doc_00069246 to /storage/kkm_last_doc_name [10:07:46]save OK [10:07:46]Clear old archive folders... [10:07:46]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:07:46]tlvbuf is 0059B2B0 [10:07:46]SAM_PROTO_ClearQueue [10:07:46]wFMCommunicate request_size=4 [10:07:46]MH_SAM_APDU [10:07:46]CAPDU: 80 09 00 00 [10:07:46]Write to MH i2c: E2 08 00 7C BF 80 09 00 00 00 00 00 00 AD [10:07:46]Write i2c OK [10:07:46]MH_I2C_Read... [10:07:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:07:46]Read from MH i2c: E2 [10:07:46]MH_I2C_Read... [10:07:46]Read from MH i2c: E2 03 00 [10:07:46]MH_I2C_Read... [10:07:46]Read from MH i2c: E2 03 00 7C BF 00 90 00 AF [10:07:46]RAPDU: 90 00 [10:07:46]wFMCommunicate OK [10:07:46]SAM_PROTO_ClearQueue done [10:07:46]KKMCreateOFDPacket [10:07:46]OFDProtocolAddRootSTLVToBuf [10:07:46]FM_MakeSignedData [10:07:46]FM_MakeSignedData [10:07:46]SAM_PROTO_SignData [10:07:46]wFMCommunicate request_size=4 [10:07:46]MH_SAM_APDU [10:07:46]CAPDU: 80 0D 01 02 [10:07:46]Write to MH i2c: E2 08 00 7D BF 80 0D 01 02 00 00 00 00 B5 [10:07:46]Write i2c OK [10:07:46]MH_I2C_Read... [10:07:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:07:46]Read from MH i2c: E2 [10:07:46]MH_I2C_Read... [10:07:46]Read from MH i2c: E2 03 00 [10:07:46]MH_I2C_Read... [10:07:46]Read from MH i2c: E2 03 00 7D BF 00 90 00 B0 [10:07:46]RAPDU: 90 00 [10:07:46]wFMCommunicate OK [10:07:46]wFMCommunicate request_size=255 [10:07:46]MH_SAM_APDU [10:07:46]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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 77 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 77 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 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 77 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 7A D6 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7E 0E 01 00 35 04 06 00 D1 B6 [10:07:46]Write to MH i2c: E2 02 01 7E BF 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 77 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 77 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 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 77 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 7A D6 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7E 0E 01 00 35 04 06 00 D1 B6 00 00 5B [10:07:46]Write i2c OK [10:07:46]MH_I2C_Read... [10:07:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:46]Read from MH i2c: E2 [10:07:46]MH_I2C_Read... [10:07:46]Read from MH i2c: E2 03 00 [10:07:46]MH_I2C_Read... [10:07:46]Read from MH i2c: E2 03 00 7E BF 00 90 00 B1 [10:07:46]RAPDU: 90 00 [10:07:46]wFMCommunicate OK [10:07:46]wFMCommunicate request_size=9 [10:07:46]MH_SAM_APDU [10:07:46]CAPDU: 80 0D 02 02 04 C1 D6 67 8D [10:07:46]Write to MH i2c: E2 0C 00 7F BF 80 0D 02 02 04 00 C1 D6 67 8D 00 00 4B [10:07:46]Write i2c OK [10:07:46]MH_I2C_Read... [10:07:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:46]Read from MH i2c: E2 [10:07:46]MH_I2C_Read... [10:07:46]Read from MH i2c: E2 03 00 [10:07:46]MH_I2C_Read... [10:07:46]Read from MH i2c: E2 03 00 7F BF 00 90 00 B2 [10:07:46]RAPDU: 90 00 [10:07:46]wFMCommunicate OK [10:07:46]wFMCommunicate request_size=4 [10:07:46]MH_SAM_APDU [10:07:46]CAPDU: 80 0D 03 02 [10:07:46]Write to MH i2c: E2 08 00 80 BF 80 0D 03 02 00 00 00 00 BA [10:07:46]Write i2c OK [10:07:46]MH_I2C_Read... [10:07:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:07:46]Read from MH i2c: E2 [10:07:46]MH_I2C_Read... [10:07:46]Read from MH i2c: E2 0B 00 [10:07:46]MH_I2C_Read... [10:07:46]Read from MH i2c: E2 0B 00 80 BF 00 C1 F5 BB C4 6E B1 53 5C 90 00 BE [10:07:46]RAPDU: C1 F5 BB C4 6E B1 53 5C 90 00 [10:07:46]wFMCommunicate OK [10:07:46]SAM_PROTO_SignData done [10:07:46]FM_MakeSignedData done [10:07:46]CreateOFDProtocolMessage [10:07:46]wFMCommunicate request_size=4 [10:07:46]MH_SAM_APDU [10:07:46]CAPDU: 80 11 00 00 [10:07:46]Write to MH i2c: E2 08 00 81 BF 80 11 00 00 00 00 00 00 BA [10:07:46]Write i2c OK [10:07:46]MH_I2C_Read... [10:07:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:46]Read from MH i2c: E2 [10:07:46]MH_I2C_Read... [10:07:46]Read from MH i2c: E2 17 00 [10:07:46]MH_I2C_Read... [10:07:46]Read from MH i2c: E2 17 00 81 BF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0C [10:07:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:07:46]wFMCommunicate OK [10:07:46]CreateOFDProtocolMessage done [10:07:46]OFDSenderStorePacket 69246 [10:07:46]StoreOFDPacket docnum=69246 [10:07:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 1D 90 06 01 AC C1 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 77 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 77 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 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 77 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 7A D6 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7E 0E 01 00 35 04 06 00 D1 B6 C1 D6 67 8D C1 F5 BB C4 6E B1 53 5C [10:07:46]CheckFolder [10:07:46]dirname=/storage/ofd_packets [10:07:46]CheckFolder done [10:07:46]ProducePacketName [10:07:46]name=ofd_packets/00069246 [10:07:46]NVStorageSaveData ofd_packets/00069246 [10:07:46]File name is /storage/ofd_packets/00069246 [10:07:46]Write 300 bytes [10:07:46]NVStorageSaveData done [10:07:46]OFDSenderStorePacket done [10:07:46]KKMCreateOFDPacket done [10:07:46]NVStorageSaveData kkm_last_timestamp [10:07:46]File name is /storage/kkm_last_timestamp [10:07:46]Write 4 bytes [10:07:46]NVStorageSaveData done [10:07:46]ExternCall_PrintAddStr [10:07:46]wPrintStart [10:07:46]Write to MH i2c: 01 00 00 82 BF 41 [10:07:46]Write i2c OK [10:07:46]MH_I2C_Read... [10:07:46]Read from MH i2c: 01 [10:07:46]MH_I2C_Read... [10:07:46]Read from MH i2c: 01 07 00 [10:07:46]MH_I2C_Read... [10:07:46]Read from MH i2c: 01 07 00 82 BF 00 00 00 00 00 FF 0F 56 [10:07:46]RasterBufferAndPrint [10:07:46]line Счет N : (1)2884960 [10:07:46]line ИНН: 02508201610067 [10:07:46]line Контрольно-Кассовый Чек [10:07:46]line ПРОДАЖА [10:07:46]line ТРК (МРК, ГНК) : 71 [10:07:46]line Товар: 2711129700 [10:07:46]line ГАЗ-К-3 [10:07:46]line 15.430 * 38.90 [10:07:46]line = 600.23 [10:07:46]line НДС 12% НСП 1% [10:07:46]line > о реализуемом товаре [10:07:46]line ИТОГО: 600.23 [10:07:46]line НСП 1% : 5.31 [10:07:46]line НДС 12% : 63.74 [10:07:46]line Наличными: 0.00 [10:07:46]line Безнал.: 600.23 [10:07:46]line Место: АЗС № 85 "Партнер Нефть" [10:07:46]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:07:46]line СНО: Общий режим [10:07:46]line Чек 91 20.10.2024 10:07 [10:07:46]line Смена: 193 ФФД: 1.0 [10:07:46]line ЗНМ: 0300000167 [10:07:46]line РНМ: 0000000000156251 [10:07:46]line Версия ККМ: v1.0 [10:07:47]line Платежная система: Mbank [10:07:47]line ФМ: 0000000000963346 [10:07:47]line ФД: 69246 [10:07:47]line ФПД: 230582866306957 [10:07:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100754&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69246&fm=230582866306957&tin=02508201610067®Number=0000000000156251&sum=60023 [10:07:47]OFD Sender: Processing packet 69246 [packets to send 18, broken 17] [10:07:47]ProducePacketName [10:07:47]name=ofd_packets/00069246 [10:07:47]OFD Sender: To server: pG, [10:07:47]CommunicateWithHost lk.salyk.kg:30040 [10:07:47]ConnectInit lk.salyk.kg [10:07:47]written 0, free lines is 4095 [10:07:47]Connected sock=10 [10:07:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 1D 90 06 01 AC C1 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 77 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 77 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 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 77 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 7A D6 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7E 0E 01 00 35 04 06 00 D1 B6 C1 D6 67 8D C1 F5 BB C4 6E B1 53 5C [10:07:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 00 52 47 00 16 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7E 0E 01 00 F4 03 04 00 21 80 14 67 B6 04 01 00 00 9F 51 FB 47 07 F1 8B 64 [10:07:47]CommunicateWithHost err = 0 [10:07:47]CheckOFDResponse [10:07:47]1017 (14) - 77093643461234 [10:07:47]1041 (16) - 0000000000963346 [10:07:47]1040 (4) - 69246 [10:07:47]1012 (4) - 20.10.2024 03:59 [10:07:47]1206 (1) - 0 [10:07:47]OFD Sender: Remove packet 69246 [10:07:47]ProducePacketName [10:07:47]name=ofd_packets/00069246 [10:07:47]NVStorageDeleteData [10:07:47]Write to MH i2c: 01 00 00 AB BF 6A [10:07:47]Write i2c OK [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: 01 [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: 01 07 00 [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: 01 07 00 AB BF 00 00 00 00 00 1D 0D 9B [10:07:47]RasterBufferAndPrint [10:07:47]line [10:07:47]line [10:07:47]line [10:07:47]line [10:07:47]line [10:07:47]written 0, free lines is 3362 [10:07:47]MH_Cut [10:07:47]Write to MH i2c: D1 01 00 B2 BF 01 43 [10:07:47]Write i2c OK [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: D1 [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: D1 01 00 [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: D1 01 00 B2 BF 00 42 [10:07:47]Write to MH i2c: 01 00 00 B3 BF 72 [10:07:47]Write i2c OK [10:07:47]MH_I2C_Read... [10:07:47]OFD Sender: No OFD packet to send [10:07:48]*** Cut start [10:07:48]*** Partial cut [10:07:48]*** CUTSNS_PIN = 1 [10:07:48]*** CUTSNS_PIN = 0 [10:07:48]*** Brake cut motor [10:07:48]Read from MH i2c: 01 [10:07:48]MH_I2C_Read... [10:07:48]*** Stop cut motor [10:07:48]*** Cut end [10:07:48]Read from MH i2c: 01 07 00 [10:07:48]MH_I2C_Read... [10:07:48]Read from MH i2c: 01 07 00 B3 BF 00 00 00 00 00 FF 0F 87 [10:07:48]process_action close_receipt done [10:07:48]requested_data is exist [10:07:48]produce_requested_data [10:07:48]requested_item fm.sn is exist - process it [10:07:48]wFMCommunicate request_size=4 [10:07:48]MH_SAM_APDU [10:07:48]CAPDU: 80 11 00 00 [10:07:48]Write to MH i2c: E2 08 00 B4 BF 80 11 00 00 00 00 00 00 ED [10:07:48]Write i2c OK [10:07:48]MH_I2C_Read... [10:07:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:48]Read from MH i2c: E2 [10:07:48]MH_I2C_Read... [10:07:48]Read from MH i2c: E2 17 00 [10:07:48]MH_I2C_Read... [10:07:48]Read from MH i2c: E2 17 00 B4 BF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3F [10:07:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:07:48]wFMCommunicate OK [10:07:48]requested_item fd.num is exist - process it [10:07:48]SAM_PROTO_GetFieldsCounters [10:07:48]wFMCommunicate request_size=4 [10:07:48]MH_SAM_APDU [10:07:48]CAPDU: 80 13 00 00 [10:07:48]Write to MH i2c: E2 08 00 B5 BF 80 13 00 00 00 00 00 00 F0 [10:07:48]Write i2c OK [10:07:48]MH_I2C_Read... [10:07:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:07:49]Read from MH i2c: E2 [10:07:49]MH_I2C_Read... [10:07:49]Read from MH i2c: E2 62 00 [10:07:49]MH_I2C_Read... [10:07:49]Read from MH i2c: E2 62 00 B5 BF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7E 0E 01 00 0E 04 04 00 C1 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 6A [10:07:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7E 0E 01 00 0E 04 04 00 C1 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 [10:07:49]wFMCommunicate OK [10:07:49]SAM_PROTO_GetFieldsCounters done [10:07:49]requested_item shift.num is exist - process it [10:07:49]requested_item shift.opened is exist - process it [10:07:49]req_shift_opened [10:07:49]FM_GetShiftState [10:07:49]SAM_PROTO_GetShiftState [10:07:49]wFMCommunicate request_size=4 [10:07:49]MH_SAM_APDU [10:07:49]CAPDU: 80 13 01 00 [10:07:49]Write to MH i2c: E2 08 00 B6 BF 80 13 01 00 00 00 00 00 F2 [10:07:49]Write i2c OK [10:07:49]MH_I2C_Read... [10:07:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:49]Read from MH i2c: E2 [10:07:49]MH_I2C_Read... [10:07:49]Read from MH i2c: E2 0E 00 [10:07:49]MH_I2C_Read... [10:07:49]Read from MH i2c: E2 0E 00 B6 BF 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 F8 [10:07:49]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:07:49]wFMCommunicate OK [10:07:49]SAM_PROTO_GetShiftState done [10:07:49]FM_GetShiftState done [10:07:49]req_shift_opened done [10:07:49]requested_item shift.open_date is exist - process it [10:07:49]req_shift_open_date [10:07:49]req_shift_open_date done [10:07:49]produce_requested_data done [10:07:49]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69246,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [10:07:49]process_action_free close_receipt [10:07:49]json_value_free [10:07:49]json_value_free done [10:07:49]process_json_proto returns [10:07:49]Send response to host [10:07:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69246,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [10:07:49]free response buf [10:07:49]execute_script done [10:07:49]execute_script returns [10:07:49]free content buf [10:07:49]Sock 8.Close socket [10:07:49]Sock 8.Thread stoped [10:07:52]OFD Sender: No OFD packet to send [10:07:57]OFD Sender: No OFD packet to send [10:08:02]OFD Sender: No OFD packet to send [10:08:07]OFD Sender: No OFD packet to send [10:08:12]OFD Sender: No OFD packet to send [10:08:17]OFD Sender: No OFD packet to send [10:08:22]OFD Sender: No OFD packet to send [10:08:25]accept exits with 9 [10:08:25]New connection [10:08:25]New thread 3067260260 created [10:08:25]Thread 3067116900 joined [10:08:25]Waiting for new connection... [10:08:25] Sock 9.Parse request [10:08:25]Sock 9.Check first char [10:08:25]Sock 9.First char is OK [10:08:25]request: POST /json_proto HTTP/1.0 [10:08:25]Method: POST [10:08:25]URL: /json_proto [10:08:25]Method is POST - this is cgi request [10:08:25]url: /json_proto [10:08:25]query_string will be loaded in cgi processing [10:08:25]execute_cgi json_proto POST (null) [10:08:25]execute_cgi path=json_proto method=POST [10:08:25]POST find Content-Length [10:08:25]Host: 172.17.50.3:8080 [10:08:25]Content-Length: 680 [10:08:25]Content-Type: application/json [10:08:25] [10:08:25]POST finish read [10:08:25]Found Content-Length = 680 [10:08:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:25]execute_script... [10:08:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:25]POST & json_proto [10:08:25]process_json_proto [10:08:25]json parsed OK: [10:08:25]protocol is kg_v1.0 [10:08:25]action value=close_receipt [10:08:25]process_action close_receipt [10:08:25]cmd_close_receipt [10:08:25]MH_GetDate [10:08:25]Write to MH i2c: F0 00 00 B7 BF 65 [10:08:25]Write i2c OK [10:08:25]MH_I2C_Read... [10:08:25]Read from MH i2c: F0 [10:08:25]MH_I2C_Read... [10:08:25]Read from MH i2c: F0 09 00 [10:08:25]MH_I2C_Read... [10:08:25]Read from MH i2c: F0 09 00 B7 BF 00 A2 D6 14 67 6B 98 1E 66 E8 [10:08:25]GetLastDocTimeStamp 1729418874 [10:08:25]current date 1729418914 [10:08:25]FM_GetShiftState [10:08:25]SAM_PROTO_GetShiftState [10:08:25]wFMCommunicate request_size=4 [10:08:25]MH_SAM_APDU [10:08:25]CAPDU: 80 13 01 00 [10:08:25]Write to MH i2c: E2 08 00 B8 BF 80 13 01 00 00 00 00 00 F4 [10:08:25]Write i2c OK [10:08:25]MH_I2C_Read... [10:08:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:25]Read from MH i2c: E2 [10:08:25]MH_I2C_Read... [10:08:25]Read from MH i2c: E2 0E 00 [10:08:25]MH_I2C_Read... [10:08:25]Read from MH i2c: E2 0E 00 B8 BF 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 FA [10:08:25]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:08:25]wFMCommunicate OK [10:08:25]SAM_PROTO_GetShiftState done [10:08:25]FM_GetShiftState done [10:08:25]opened in 1729383220 [10:08:25]opened+sec_in_day 1729469620 [10:08:25]quantity*price = 100050 [10:08:25]sum+1 = 100052 [10:08:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 92 20.10.2024 10:08 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69247 ФПД: 156473390090372 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100834&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69247&fm=156473390090372&tin=02508201610067®Number=0000000000156251&sum=100000 [10:08:26]StoreToDocumentArchive [10:08:26]shift 193 fd 69247 [10:08:26]save to /storage/0193/doc_00069247 [10:08:26]save last doc name /storage/0193/doc_00069247 to /storage/kkm_last_doc_name [10:08:26]save OK [10:08:26]Clear old archive folders... [10:08:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:08:26]tlvbuf is 0082EAD0 [10:08:26]SAM_PROTO_ClearQueue [10:08:26]wFMCommunicate request_size=4 [10:08:26]MH_SAM_APDU [10:08:26]CAPDU: 80 09 00 00 [10:08:26]Write to MH i2c: E2 08 00 C5 BF 80 09 00 00 00 00 00 00 F6 [10:08:26]Write i2c OK [10:08:26]MH_I2C_Read... [10:08:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:26]Read from MH i2c: E2 [10:08:26]MH_I2C_Read... [10:08:26]Read from MH i2c: E2 03 00 [10:08:26]MH_I2C_Read... [10:08:26]Read from MH i2c: E2 03 00 C5 BF 00 90 00 F8 [10:08:26]RAPDU: 90 00 [10:08:26]wFMCommunicate OK [10:08:26]SAM_PROTO_ClearQueue done [10:08:26]KKMCreateOFDPacket [10:08:26]OFDProtocolAddRootSTLVToBuf [10:08:26]FM_MakeSignedData [10:08:26]FM_MakeSignedData [10:08:26]SAM_PROTO_SignData [10:08:26]wFMCommunicate request_size=4 [10:08:26]MH_SAM_APDU [10:08:26]CAPDU: 80 0D 01 02 [10:08:26]Write to MH i2c: E2 08 00 C6 BF 80 0D 01 02 00 00 00 00 FE [10:08:26]Write i2c OK [10:08:26]MH_I2C_Read... [10:08:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:26]Read from MH i2c: E2 [10:08:26]MH_I2C_Read... [10:08:26]Read from MH i2c: E2 03 00 [10:08:26]MH_I2C_Read... [10:08:26]Read from MH i2c: E2 03 00 C6 BF 00 90 00 F9 [10:08:26]RAPDU: 90 00 [10:08:26]wFMCommunicate OK [10:08:26]wFMCommunicate request_size=255 [10:08:26]MH_SAM_APDU [10:08:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 A2 D6 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7F 0E 01 00 35 04 06 00 8E 4F CC D5 [10:08:26]Write to MH i2c: E2 02 01 C7 BF 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 A2 D6 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7F 0E 01 00 35 04 06 00 8E 4F CC D5 00 00 99 [10:08:26]Write i2c OK [10:08:26]MH_I2C_Read... [10:08:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:26]Read from MH i2c: E2 [10:08:26]MH_I2C_Read... [10:08:26]Read from MH i2c: E2 03 00 [10:08:26]MH_I2C_Read... [10:08:26]Read from MH i2c: E2 03 00 C7 BF 00 90 00 FA [10:08:26]RAPDU: 90 00 [10:08:26]wFMCommunicate OK [10:08:26]wFMCommunicate request_size=7 [10:08:26]MH_SAM_APDU [10:08:26]CAPDU: 80 0D 02 02 02 48 84 [10:08:26]Write to MH i2c: E2 0A 00 C8 BF 80 0D 02 02 02 00 48 84 00 00 D1 [10:08:26]Write i2c OK [10:08:26]MH_I2C_Read... [10:08:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:26]Read from MH i2c: E2 [10:08:26]MH_I2C_Read... [10:08:26]Read from MH i2c: E2 03 00 [10:08:26]MH_I2C_Read... [10:08:26]Read from MH i2c: E2 03 00 C8 BF 00 90 00 FB [10:08:26]RAPDU: 90 00 [10:08:26]wFMCommunicate OK [10:08:26]wFMCommunicate request_size=4 [10:08:26]MH_SAM_APDU [10:08:26]CAPDU: 80 0D 03 02 [10:08:26]Write to MH i2c: E2 08 00 C9 BF 80 0D 03 02 00 00 00 00 03 [10:08:26]Write i2c OK [10:08:26]MH_I2C_Read... [10:08:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:26]Read from MH i2c: E2 [10:08:26]MH_I2C_Read... [10:08:26]Read from MH i2c: E2 0B 00 [10:08:26]MH_I2C_Read... [10:08:26]Read from MH i2c: E2 0B 00 C9 BF 00 71 40 9D D9 B9 49 36 D9 90 00 3C [10:08:26]RAPDU: 71 40 9D D9 B9 49 36 D9 90 00 [10:08:26]wFMCommunicate OK [10:08:26]SAM_PROTO_SignData done [10:08:26]FM_MakeSignedData done [10:08:26]CreateOFDProtocolMessage [10:08:26]wFMCommunicate request_size=4 [10:08:26]MH_SAM_APDU [10:08:26]CAPDU: 80 11 00 00 [10:08:26]Write to MH i2c: E2 08 00 CA BF 80 11 00 00 00 00 00 00 03 [10:08:26]Write i2c OK [10:08:26]MH_I2C_Read... [10:08:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:26]Read from MH i2c: E2 [10:08:26]MH_I2C_Read... [10:08:26]Read from MH i2c: E2 17 00 [10:08:26]MH_I2C_Read... [10:08:26]Read from MH i2c: E2 17 00 CA BF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 55 [10:08:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:08:26]wFMCommunicate OK [10:08:26]CreateOFDProtocolMessage done [10:08:26]OFDSenderStorePacket 69247 [10:08:26]StoreOFDPacket docnum=69247 [10:08:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 70 6C 04 01 A2 01 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 A2 D6 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7F 0E 01 00 35 04 06 00 8E 4F CC D5 48 84 71 40 9D D9 B9 49 36 D9 [10:08:26]CheckFolder [10:08:26]dirname=/storage/ofd_packets [10:08:26]CheckFolder done [10:08:26]ProducePacketName [10:08:26]name=ofd_packets/00069247 [10:08:26]NVStorageSaveData ofd_packets/00069247 [10:08:26]File name is /storage/ofd_packets/00069247 [10:08:26]Write 298 bytes [10:08:26]NVStorageSaveData done [10:08:26]OFDSenderStorePacket done [10:08:26]KKMCreateOFDPacket done [10:08:26]NVStorageSaveData kkm_last_timestamp [10:08:26]File name is /storage/kkm_last_timestamp [10:08:26]Write 4 bytes [10:08:26]NVStorageSaveData done [10:08:26]ExternCall_PrintAddStr [10:08:26]wPrintStart [10:08:26]Write to MH i2c: 01 00 00 CB BF 8A [10:08:26]Write i2c OK [10:08:26]MH_I2C_Read... [10:08:26]Read from MH i2c: 01 [10:08:26]MH_I2C_Read... [10:08:26]Read from MH i2c: 01 07 00 [10:08:26]MH_I2C_Read... [10:08:26]Read from MH i2c: 01 07 00 CB BF 00 00 00 00 00 FF 0F 9F [10:08:26]RasterBufferAndPrint [10:08:26]line Счет N : (1)2884961 [10:08:26]line ИНН: 02508201610067 [10:08:26]line Контрольно-Кассовый Чек [10:08:26]line ПРОДАЖА [10:08:26]line ТРК (МРК, ГНК) : 51 [10:08:26]line Товар: 2710194210 [10:08:26]line ДТ-К-5 [10:08:26]line 13.130 * 76.20 [10:08:26]line = 1000.51 [10:08:26]line НДС 12% НСП 1% [10:08:26]line > о реализуемом товаре [10:08:26]line ОКРУГЛЕНИЕ: -0.51 [10:08:26]line ИТОГО: 1000.00 [10:08:26]line Внесено: 1000.00 [10:08:26]line СДАЧА: 0.00 [10:08:26]line НСП 1% : 8.85 [10:08:26]line НДС 12% : 106.25 [10:08:26]line Наличными: 1000.00 [10:08:26]line Безнал.: 0.00 [10:08:26]line Место: АЗС № 85 "Партнер Нефть" [10:08:26]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:08:26]line СНО: Общий режим [10:08:26]line Чек 92 20.10.2024 10:08 [10:08:26]line Смена: 193 ФФД: 1.0 [10:08:26]line ЗНМ: 0300000167 [10:08:26]line РНМ: 0000000000156251 [10:08:26]line Версия ККМ: v1.0 [10:08:26]line ФМ: 0000000000963346 [10:08:26]line ФД: 69247 [10:08:26]line ФПД: 156473390090372 [10:08:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100834&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69247&fm=156473390090372&tin=02508201610067®Number=0000000000156251&sum=100000 [10:08:27]OFD Sender: Processing packet 69247 [packets to send 18, broken 17] [10:08:27]ProducePacketName [10:08:27]name=ofd_packets/00069247 [10:08:27]OFD Sender: To server: pG, [10:08:27]CommunicateWithHost lk.salyk.kg:30040 [10:08:27]ConnectInit lk.salyk.kg [10:08:27]written 0, free lines is 4095 [10:08:27]Connected sock=10 [10:08:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 70 6C 04 01 A2 01 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 A2 D6 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7F 0E 01 00 35 04 06 00 8E 4F CC D5 48 84 71 40 9D D9 B9 49 36 D9 [10:08:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 60 70 47 00 67 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7F 0E 01 00 F4 03 04 00 4A 80 14 67 B6 04 01 00 00 DE F3 C4 FC BC 1E 89 93 [10:08:27]CommunicateWithHost err = 0 [10:08:27]CheckOFDResponse [10:08:27]1017 (14) - 77093643461234 [10:08:27]1041 (16) - 0000000000963346 [10:08:27]1040 (4) - 69247 [10:08:27]1012 (4) - 20.10.2024 04:00 [10:08:27]1206 (1) - 0 [10:08:27]OFD Sender: Remove packet 69247 [10:08:27]ProducePacketName [10:08:27]name=ofd_packets/00069247 [10:08:27]NVStorageDeleteData [10:08:27]Write to MH i2c: 01 00 00 F6 BF B5 [10:08:27]Write i2c OK [10:08:27]MH_I2C_Read... [10:08:27]Read from MH i2c: 01 [10:08:27]MH_I2C_Read... [10:08:27]Read from MH i2c: 01 07 00 [10:08:27]MH_I2C_Read... [10:08:27]Read from MH i2c: 01 07 00 F6 BF 00 00 00 00 00 E3 0C AB [10:08:27]RasterBufferAndPrint [10:08:27]line [10:08:27]line [10:08:27]line [10:08:27]line [10:08:27]line [10:08:27]written 0, free lines is 3308 [10:08:27]MH_Cut [10:08:27]Write to MH i2c: D1 01 00 FD BF 01 8E [10:08:27]Write i2c OK [10:08:27]MH_I2C_Read... [10:08:27]Read from MH i2c: D1 [10:08:27]MH_I2C_Read... [10:08:27]Read from MH i2c: D1 01 00 [10:08:27]MH_I2C_Read... [10:08:27]Read from MH i2c: D1 01 00 FD BF 00 8D [10:08:27]Write to MH i2c: 01 00 00 FE BF BD [10:08:27]Write i2c OK [10:08:27]MH_I2C_Read... [10:08:27]OFD Sender: No OFD packet to send [10:08:28]*** Cut start [10:08:28]*** Partial cut [10:08:28]*** CUTSNS_PIN = 1 [10:08:28]*** CUTSNS_PIN = 0 [10:08:28]*** Brake cut motor [10:08:28]Read from MH i2c: 01 [10:08:28]MH_I2C_Read... [10:08:28]*** Stop cut motor [10:08:28]*** Cut end [10:08:28]Read from MH i2c: 01 07 00 [10:08:28]MH_I2C_Read... [10:08:28]Read from MH i2c: 01 07 00 FE BF 00 00 00 00 00 FF 0F D2 [10:08:28]process_action close_receipt done [10:08:28]requested_data is exist [10:08:28]produce_requested_data [10:08:28]requested_item fm.sn is exist - process it [10:08:28]wFMCommunicate request_size=4 [10:08:28]MH_SAM_APDU [10:08:28]CAPDU: 80 11 00 00 [10:08:28]Write to MH i2c: E2 08 00 FF BF 80 11 00 00 00 00 00 00 38 [10:08:28]Write i2c OK [10:08:28]MH_I2C_Read... [10:08:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:28]Read from MH i2c: E2 [10:08:28]MH_I2C_Read... [10:08:28]Read from MH i2c: E2 17 00 [10:08:28]MH_I2C_Read... [10:08:28]Read from MH i2c: E2 17 00 FF BF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8A [10:08:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:08:28]wFMCommunicate OK [10:08:28]requested_item fd.num is exist - process it [10:08:28]SAM_PROTO_GetFieldsCounters [10:08:28]wFMCommunicate request_size=4 [10:08:28]MH_SAM_APDU [10:08:28]CAPDU: 80 13 00 00 [10:08:28]Write to MH i2c: E2 08 00 00 C0 80 13 00 00 00 00 00 00 3C [10:08:28]Write i2c OK [10:08:28]MH_I2C_Read... [10:08:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:29]Read from MH i2c: E2 [10:08:29]MH_I2C_Read... [10:08:29]Read from MH i2c: E2 62 00 [10:08:29]MH_I2C_Read... [10:08:29]Read from MH i2c: E2 62 00 00 C0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7F 0E 01 00 0E 04 04 00 C1 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 BA [10:08:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7F 0E 01 00 0E 04 04 00 C1 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 [10:08:29]wFMCommunicate OK [10:08:29]SAM_PROTO_GetFieldsCounters done [10:08:29]requested_item shift.num is exist - process it [10:08:29]requested_item shift.opened is exist - process it [10:08:29]req_shift_opened [10:08:29]FM_GetShiftState [10:08:29]SAM_PROTO_GetShiftState [10:08:29]wFMCommunicate request_size=4 [10:08:29]MH_SAM_APDU [10:08:29]CAPDU: 80 13 01 00 [10:08:29]Write to MH i2c: E2 08 00 01 C0 80 13 01 00 00 00 00 00 3E [10:08:29]Write i2c OK [10:08:29]MH_I2C_Read... [10:08:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:29]Read from MH i2c: E2 [10:08:29]MH_I2C_Read... [10:08:29]Read from MH i2c: E2 0E 00 [10:08:29]MH_I2C_Read... [10:08:29]Read from MH i2c: E2 0E 00 01 C0 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 44 [10:08:29]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:08:29]wFMCommunicate OK [10:08:29]SAM_PROTO_GetShiftState done [10:08:29]FM_GetShiftState done [10:08:29]req_shift_opened done [10:08:29]requested_item shift.open_date is exist - process it [10:08:29]req_shift_open_date [10:08:29]req_shift_open_date done [10:08:29]produce_requested_data done [10:08:29]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69247,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [10:08:29]process_action_free close_receipt [10:08:29]json_value_free [10:08:29]json_value_free done [10:08:29]process_json_proto returns [10:08:29]Send response to host [10:08:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69247,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [10:08:29]free response buf [10:08:29]execute_script done [10:08:29]execute_script returns [10:08:29]free content buf [10:08:29]Sock 9.Close socket [10:08:29]Sock 9.Thread stoped [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:08]OFD Sender: No OFD packet to send [10:09:13]OFD Sender: No OFD packet to send [10:09:18]OFD Sender: No OFD packet to send [10:09:23]OFD Sender: No OFD packet to send [10:09:28]OFD Sender: No OFD packet to send [10:09:33]OFD Sender: No OFD packet to send [10:09:38]OFD Sender: No OFD packet to send [10:09:43]OFD Sender: No OFD packet to send [10:09:48]OFD Sender: No OFD packet to send [10:09:53]OFD Sender: No OFD packet to send [10:09:58]OFD Sender: No OFD packet to send [10:10:03]OFD Sender: No OFD packet to send [10:10:08]OFD Sender: No OFD packet to send [10:10:13]OFD Sender: No OFD packet to send [10:10:18]OFD Sender: No OFD packet to send [10:10:23]OFD Sender: No OFD packet to send [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:18]accept exits with 8 [10:11:18]New connection [10:11:18]New thread 3067116900 created [10:11:18]Thread 3067260260 joined [10:11:18]Waiting for new connection... [10:11:18] Sock 8.Parse request [10:11:18]Sock 8.Check first char [10:11:18]Sock 8.First char is OK [10:11:18]request: POST /json_proto HTTP/1.0 [10:11:18]Method: POST [10:11:18]URL: /json_proto [10:11:18]Method is POST - this is cgi request [10:11:18]url: /json_proto [10:11:18]query_string will be loaded in cgi processing [10:11:18]execute_cgi json_proto POST (null) [10:11:18]execute_cgi path=json_proto method=POST [10:11:18]POST find Content-Length [10:11:18]Host: 172.17.50.3:8080 [10:11:18]Content-Length: 676 [10:11:18]Content-Type: application/json [10:11:18] [10:11:18]POST finish read [10:11:18]Found Content-Length = 676 [10:11:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:18]execute_script... [10:11:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:18]POST & json_proto [10:11:18]process_json_proto [10:11:18]json parsed OK: [10:11:18]protocol is kg_v1.0 [10:11:18]action value=close_receipt [10:11:18]process_action close_receipt [10:11:18]cmd_close_receipt [10:11:18]MH_GetDate [10:11:18]Write to MH i2c: F0 00 00 02 C0 B1 [10:11:18]Write i2c OK [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: F0 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: F0 09 00 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: F0 09 00 02 C0 00 4F D7 14 67 6B 98 1E 66 E2 [10:11:18]GetLastDocTimeStamp 1729418914 [10:11:18]current date 1729419087 [10:11:18]FM_GetShiftState [10:11:18]SAM_PROTO_GetShiftState [10:11:18]wFMCommunicate request_size=4 [10:11:18]MH_SAM_APDU [10:11:18]CAPDU: 80 13 01 00 [10:11:18]Write to MH i2c: E2 08 00 03 C0 80 13 01 00 00 00 00 00 40 [10:11:18]Write i2c OK [10:11:18]MH_I2C_Read... [10:11:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:18]Read from MH i2c: E2 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: E2 0E 00 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: E2 0E 00 03 C0 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 46 [10:11:18]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:11:18]wFMCommunicate OK [10:11:18]SAM_PROTO_GetShiftState done [10:11:18]FM_GetShiftState done [10:11:18]opened in 1729383220 [10:11:18]opened+sec_in_day 1729469620 [10:11:18]quantity*price = 80010 [10:11:18]sum+1 = 80011 [10:11:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 93 20.10.2024 10:11 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69248 ФПД: 77983961968951 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101128&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69248&fm=77983961968951&tin=02508201610067®Number=0000000000156251&sum=80000 [10:11:19]StoreToDocumentArchive [10:11:19]shift 193 fd 69248 [10:11:19]save to /storage/0193/doc_00069248 [10:11:19]save last doc name /storage/0193/doc_00069248 to /storage/kkm_last_doc_name [10:11:19]save OK [10:11:19]Clear old archive folders... [10:11:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:11:19]tlvbuf is 00478E10 [10:11:19]SAM_PROTO_ClearQueue [10:11:19]wFMCommunicate request_size=4 [10:11:19]MH_SAM_APDU [10:11:19]CAPDU: 80 09 00 00 [10:11:19]Write to MH i2c: E2 08 00 10 C0 80 09 00 00 00 00 00 00 42 [10:11:19]Write i2c OK [10:11:19]MH_I2C_Read... [10:11:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:11:19]Read from MH i2c: E2 [10:11:19]MH_I2C_Read... [10:11:19]Read from MH i2c: E2 03 00 [10:11:19]MH_I2C_Read... [10:11:19]Read from MH i2c: E2 03 00 10 C0 00 90 00 44 [10:11:19]RAPDU: 90 00 [10:11:19]wFMCommunicate OK [10:11:19]SAM_PROTO_ClearQueue done [10:11:19]KKMCreateOFDPacket [10:11:19]OFDProtocolAddRootSTLVToBuf [10:11:19]FM_MakeSignedData [10:11:19]FM_MakeSignedData [10:11:19]SAM_PROTO_SignData [10:11:19]wFMCommunicate request_size=4 [10:11:19]MH_SAM_APDU [10:11:19]CAPDU: 80 0D 01 02 [10:11:19]Write to MH i2c: E2 08 00 11 C0 80 0D 01 02 00 00 00 00 4A [10:11:19]Write i2c OK [10:11:19]MH_I2C_Read... [10:11:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:11:19]Read from MH i2c: E2 [10:11:19]MH_I2C_Read... [10:11:19]Read from MH i2c: E2 03 00 [10:11:19]MH_I2C_Read... [10:11:19]Read from MH i2c: E2 03 00 11 C0 00 90 00 45 [10:11:19]RAPDU: 90 00 [10:11:19]wFMCommunicate OK [10:11:19]wFMCommunicate request_size=255 [10:11:19]MH_SAM_APDU [10:11:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 50 D7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 80 0E 01 00 35 04 06 00 46 ED 0E 59 [10:11:19]Write to MH i2c: E2 02 01 12 C0 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 50 D7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 80 0E 01 00 35 04 06 00 46 ED 0E 59 00 00 E5 [10:11:19]Write i2c OK [10:11:19]MH_I2C_Read... [10:11:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:19]Read from MH i2c: E2 [10:11:19]MH_I2C_Read... [10:11:19]Read from MH i2c: E2 03 00 [10:11:19]MH_I2C_Read... [10:11:19]Read from MH i2c: E2 03 00 12 C0 00 90 00 46 [10:11:19]RAPDU: 90 00 [10:11:19]wFMCommunicate OK [10:11:19]wFMCommunicate request_size=7 [10:11:19]MH_SAM_APDU [10:11:19]CAPDU: 80 0D 02 02 02 F1 37 [10:11:19]Write to MH i2c: E2 0A 00 13 C0 80 0D 02 02 02 00 F1 37 00 00 79 [10:11:19]Write i2c OK [10:11:19]MH_I2C_Read... [10:11:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:19]Read from MH i2c: E2 [10:11:19]MH_I2C_Read... [10:11:19]Read from MH i2c: E2 03 00 [10:11:19]MH_I2C_Read... [10:11:19]Read from MH i2c: E2 03 00 13 C0 00 90 00 47 [10:11:19]RAPDU: 90 00 [10:11:19]wFMCommunicate OK [10:11:19]wFMCommunicate request_size=4 [10:11:19]MH_SAM_APDU [10:11:19]CAPDU: 80 0D 03 02 [10:11:19]Write to MH i2c: E2 08 00 14 C0 80 0D 03 02 00 00 00 00 4F [10:11:19]Write i2c OK [10:11:19]MH_I2C_Read... [10:11:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:11:19]Read from MH i2c: E2 [10:11:19]MH_I2C_Read... [10:11:19]Read from MH i2c: E2 0B 00 [10:11:19]MH_I2C_Read... [10:11:19]Read from MH i2c: E2 0B 00 14 C0 00 2A 0B 76 52 9E 1F A3 E3 90 00 90 [10:11:19]RAPDU: 2A 0B 76 52 9E 1F A3 E3 90 00 [10:11:19]wFMCommunicate OK [10:11:19]SAM_PROTO_SignData done [10:11:19]FM_MakeSignedData done [10:11:19]CreateOFDProtocolMessage [10:11:19]wFMCommunicate request_size=4 [10:11:19]MH_SAM_APDU [10:11:19]CAPDU: 80 11 00 00 [10:11:19]Write to MH i2c: E2 08 00 15 C0 80 11 00 00 00 00 00 00 4F [10:11:19]Write i2c OK [10:11:19]MH_I2C_Read... [10:11:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:19]Read from MH i2c: E2 [10:11:19]MH_I2C_Read... [10:11:19]Read from MH i2c: E2 17 00 [10:11:19]MH_I2C_Read... [10:11:19]Read from MH i2c: E2 17 00 15 C0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A1 [10:11:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:11:19]wFMCommunicate OK [10:11:19]CreateOFDProtocolMessage done [10:11:19]OFDSenderStorePacket 69248 [10:11:19]StoreOFDPacket docnum=69248 [10:11:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 AE 63 04 01 56 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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 50 D7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 80 0E 01 00 35 04 06 00 46 ED 0E 59 F1 37 2A 0B 76 52 9E 1F A3 E3 [10:11:19]CheckFolder [10:11:19]dirname=/storage/ofd_packets [10:11:19]CheckFolder done [10:11:19]ProducePacketName [10:11:19]name=ofd_packets/00069248 [10:11:19]NVStorageSaveData ofd_packets/00069248 [10:11:19]File name is /storage/ofd_packets/00069248 [10:11:19]Write 298 bytes [10:11:19]NVStorageSaveData done [10:11:19]OFDSenderStorePacket done [10:11:19]KKMCreateOFDPacket done [10:11:19]NVStorageSaveData kkm_last_timestamp [10:11:19]File name is /storage/kkm_last_timestamp [10:11:19]Write 4 bytes [10:11:19]NVStorageSaveData done [10:11:19]ExternCall_PrintAddStr [10:11:19]wPrintStart [10:11:19]Write to MH i2c: 01 00 00 16 C0 D6 [10:11:19]Write i2c OK [10:11:19]MH_I2C_Read... [10:11:19]Read from MH i2c: 01 [10:11:19]MH_I2C_Read... [10:11:19]Read from MH i2c: 01 07 00 [10:11:19]MH_I2C_Read... [10:11:19]Read from MH i2c: 01 07 00 16 C0 00 00 00 00 00 FF 0F EB [10:11:19]RasterBufferAndPrint [10:11:19]line Счет N : (1)2884962 [10:11:19]line ИНН: 02508201610067 [10:11:19]line Контрольно-Кассовый Чек [10:11:19]line ПРОДАЖА [10:11:19]line ТРК (МРК, ГНК) : 61 [10:11:19]line Товар: 2710194210 [10:11:19]line ДТ-К-5 [10:11:19]line 10.500 * 76.20 [10:11:19]line = 800.10 [10:11:19]line НДС 12% НСП 1% [10:11:19]line > о реализуемом товаре [10:11:19]line ОКРУГЛЕНИЕ: -0.10 [10:11:19]line ИТОГО: 800.00 [10:11:19]line Внесено: 800.00 [10:11:19]line СДАЧА: 0.00 [10:11:19]line НСП 1% : 7.08 [10:11:19]line НДС 12% : 84.97 [10:11:19]line Наличными: 800.00 [10:11:19]line Безнал.: 0.00 [10:11:19]line Место: АЗС № 85 "Партнер Нефть" [10:11:19]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:11:19]line СНО: Общий режим [10:11:19]line Чек 93 20.10.2024 10:11 [10:11:19]line Смена: 193 ФФД: 1.0 [10:11:19]line ЗНМ: 0300000167 [10:11:19]line РНМ: 0000000000156251 [10:11:19]line Версия ККМ: v1.0 [10:11:19]line ФМ: 0000000000963346 [10:11:19]line ФД: 69248 [10:11:19]line ФПД: 77983961968951 [10:11:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101128&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69248&fm=77983961968951&tin=02508201610067®Number=0000000000156251&sum=80000 [10:11:20]OFD Sender: Processing packet 69248 [packets to send 18, broken 17] [10:11:20]ProducePacketName [10:11:20]name=ofd_packets/00069248 [10:11:20]OFD Sender: To server: pG, [10:11:20]CommunicateWithHost lk.salyk.kg:30040 [10:11:20]ConnectInit lk.salyk.kg [10:11:20]written 0, free lines is 4095 [10:11:20]Connected sock=10 [10:11:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 AE 63 04 01 56 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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 50 D7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 80 0E 01 00 35 04 06 00 46 ED 0E 59 F1 37 2A 0B 76 52 9E 1F A3 E3 [10:11:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 FD 9A 47 00 40 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 80 0E 01 00 F4 03 04 00 F7 80 14 67 B6 04 01 00 00 8B 60 51 32 92 F8 FF 6C [10:11:20]CommunicateWithHost err = 0 [10:11:20]CheckOFDResponse [10:11:20]1017 (14) - 77093643461234 [10:11:20]1041 (16) - 0000000000963346 [10:11:20]1040 (4) - 69248 [10:11:20]1012 (4) - 20.10.2024 04:03 [10:11:20]1206 (1) - 0 [10:11:20]OFD Sender: Remove packet 69248 [10:11:20]ProducePacketName [10:11:20]name=ofd_packets/00069248 [10:11:20]NVStorageDeleteData [10:11:20]Write to MH i2c: 01 00 00 41 C0 01 [10:11:20]Write i2c OK [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: 01 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: 01 07 00 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: 01 07 00 41 C0 00 00 00 00 00 E6 0C FA [10:11:20]RasterBufferAndPrint [10:11:20]line [10:11:20]line [10:11:20]line [10:11:20]line [10:11:20]line [10:11:20]written 0, free lines is 3308 [10:11:20]MH_Cut [10:11:20]Write to MH i2c: D1 01 00 48 C0 01 DA [10:11:20]Write i2c OK [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: D1 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: D1 01 00 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: D1 01 00 48 C0 00 D9 [10:11:20]Write to MH i2c: 01 00 00 49 C0 09 [10:11:20]Write i2c OK [10:11:20]MH_I2C_Read... [10:11:21]OFD Sender: No OFD packet to send [10:11:21]*** Cut start [10:11:21]*** Partial cut [10:11:21]*** CUTSNS_PIN = 1 [10:11:21]*** CUTSNS_PIN = 0 [10:11:21]*** Brake cut motor [10:11:21]Read from MH i2c: 01 [10:11:21]MH_I2C_Read... [10:11:21]*** Stop cut motor [10:11:21]*** Cut end [10:11:21]Read from MH i2c: 01 07 00 [10:11:21]MH_I2C_Read... [10:11:21]Read from MH i2c: 01 07 00 49 C0 00 00 00 00 00 FF 0F 1E [10:11:21]process_action close_receipt done [10:11:21]requested_data is exist [10:11:21]produce_requested_data [10:11:21]requested_item fm.sn is exist - process it [10:11:21]wFMCommunicate request_size=4 [10:11:21]MH_SAM_APDU [10:11:21]CAPDU: 80 11 00 00 [10:11:21]Write to MH i2c: E2 08 00 4A C0 80 11 00 00 00 00 00 00 84 [10:11:21]Write i2c OK [10:11:21]MH_I2C_Read... [10:11:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:22]Read from MH i2c: E2 [10:11:22]MH_I2C_Read... [10:11:22]Read from MH i2c: E2 17 00 [10:11:22]MH_I2C_Read... [10:11:22]Read from MH i2c: E2 17 00 4A C0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D6 [10:11:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:11:22]wFMCommunicate OK [10:11:22]requested_item fd.num is exist - process it [10:11:22]SAM_PROTO_GetFieldsCounters [10:11:22]wFMCommunicate request_size=4 [10:11:22]MH_SAM_APDU [10:11:22]CAPDU: 80 13 00 00 [10:11:22]Write to MH i2c: E2 08 00 4B C0 80 13 00 00 00 00 00 00 87 [10:11:22]Write i2c OK [10:11:22]MH_I2C_Read... [10:11:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:22]Read from MH i2c: E2 [10:11:22]MH_I2C_Read... [10:11:22]Read from MH i2c: E2 62 00 [10:11:22]MH_I2C_Read... [10:11:22]Read from MH i2c: E2 62 00 4B C0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 80 0E 01 00 0E 04 04 00 C1 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 09 [10:11:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 80 0E 01 00 0E 04 04 00 C1 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 [10:11:22]wFMCommunicate OK [10:11:22]SAM_PROTO_GetFieldsCounters done [10:11:22]requested_item shift.num is exist - process it [10:11:22]requested_item shift.opened is exist - process it [10:11:22]req_shift_opened [10:11:22]FM_GetShiftState [10:11:22]SAM_PROTO_GetShiftState [10:11:22]wFMCommunicate request_size=4 [10:11:22]MH_SAM_APDU [10:11:22]CAPDU: 80 13 01 00 [10:11:22]Write to MH i2c: E2 08 00 4C C0 80 13 01 00 00 00 00 00 89 [10:11:22]Write i2c OK [10:11:22]MH_I2C_Read... [10:11:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:22]Read from MH i2c: E2 [10:11:22]MH_I2C_Read... [10:11:22]Read from MH i2c: E2 0E 00 [10:11:22]MH_I2C_Read... [10:11:22]Read from MH i2c: E2 0E 00 4C C0 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 8F [10:11:22]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:11:22]wFMCommunicate OK [10:11:22]SAM_PROTO_GetShiftState done [10:11:22]FM_GetShiftState done [10:11:22]req_shift_opened done [10:11:22]requested_item shift.open_date is exist - process it [10:11:22]req_shift_open_date [10:11:22]req_shift_open_date done [10:11:22]produce_requested_data done [10:11:22]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69248,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [10:11:22]process_action_free close_receipt [10:11:22]json_value_free [10:11:22]json_value_free done [10:11:22]process_json_proto returns [10:11:22]Send response to host [10:11:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69248,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [10:11:22]free response buf [10:11:22]execute_script done [10:11:22]execute_script returns [10:11:22]free content buf [10:11:22]Sock 8.Close socket [10:11:22]Sock 8.Thread stoped [10:11:26]OFD Sender: No OFD packet to send [10:11:31]OFD Sender: No OFD packet to send [10:11:36]OFD Sender: No OFD packet to send [10:11:41]OFD Sender: No OFD packet to send [10:11:46]OFD Sender: No OFD packet to send [10:11:51]OFD Sender: No OFD packet to send [10:11:56]OFD Sender: No OFD packet to send [10:12:01]OFD Sender: No OFD packet to send [10:12:06]OFD Sender: No OFD packet to send [10:12:11]OFD Sender: No OFD packet to send [10:12:16]OFD Sender: No OFD packet to send [10:12:21]OFD Sender: No OFD packet to send [10:12:26]OFD Sender: No OFD packet to send [10:12:29]accept exits with 9 [10:12:29]New connection [10:12:29]New thread 3067260260 created [10:12:29]Thread 3067116900 joined [10:12:29]Waiting for new connection... [10:12:29] Sock 9.Parse request [10:12:29]Sock 9.Check first char [10:12:29]Sock 9.First char is OK [10:12:29]request: POST /json_proto HTTP/1.0 [10:12:29]Method: POST [10:12:29]URL: /json_proto [10:12:29]Method is POST - this is cgi request [10:12:29]url: /json_proto [10:12:29]query_string will be loaded in cgi processing [10:12:29]execute_cgi json_proto POST (null) [10:12:29]execute_cgi path=json_proto method=POST [10:12:29]POST find Content-Length [10:12:29]Host: 172.17.50.3:8080 [10:12:29]Content-Length: 683 [10:12:29]Content-Type: application/json [10:12:29] [10:12:29]POST finish read [10:12:29]Found Content-Length = 683 [10:12:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:29]execute_script... [10:12:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:29]POST & json_proto [10:12:29]process_json_proto [10:12:29]json parsed OK: [10:12:29]protocol is kg_v1.0 [10:12:29]action value=close_receipt [10:12:29]process_action close_receipt [10:12:29]cmd_close_receipt [10:12:29]MH_GetDate [10:12:29]Write to MH i2c: F0 00 00 4D C0 FC [10:12:29]Write i2c OK [10:12:29]MH_I2C_Read... [10:12:29]Read from MH i2c: F0 [10:12:29]MH_I2C_Read... [10:12:29]Read from MH i2c: F0 09 00 [10:12:29]MH_I2C_Read... [10:12:29]Read from MH i2c: F0 09 00 4D C0 00 97 D7 14 67 6B 98 1E 66 75 [10:12:29]GetLastDocTimeStamp 1729419088 [10:12:29]current date 1729419159 [10:12:29]FM_GetShiftState [10:12:29]SAM_PROTO_GetShiftState [10:12:29]wFMCommunicate request_size=4 [10:12:29]MH_SAM_APDU [10:12:29]CAPDU: 80 13 01 00 [10:12:29]Write to MH i2c: E2 08 00 4E C0 80 13 01 00 00 00 00 00 8B [10:12:29]Write i2c OK [10:12:29]MH_I2C_Read... [10:12:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:30]Read from MH i2c: E2 [10:12:30]MH_I2C_Read... [10:12:30]Read from MH i2c: E2 0E 00 [10:12:30]MH_I2C_Read... [10:12:30]Read from MH i2c: E2 0E 00 4E C0 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 91 [10:12:30]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:12:30]wFMCommunicate OK [10:12:30]SAM_PROTO_GetShiftState done [10:12:30]FM_GetShiftState done [10:12:30]opened in 1729383220 [10:12:30]opened+sec_in_day 1729469620 [10:12:30]quantity*price = 100015 [10:12:30]sum+1 = 100017 [10:12:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 94 20.10.2024 10:12 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69249 ФПД: 233102841019157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101239&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69249&fm=233102841019157&tin=02508201610067®Number=0000000000156251&sum=100000 [10:12:31]StoreToDocumentArchive [10:12:31]shift 193 fd 69249 [10:12:31]save to /storage/0193/doc_00069249 [10:12:31]save last doc name /storage/0193/doc_00069249 to /storage/kkm_last_doc_name [10:12:31]save OK [10:12:31]Clear old archive folders... [10:12:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:12:31]tlvbuf is 00704A70 [10:12:31]SAM_PROTO_ClearQueue [10:12:31]wFMCommunicate request_size=4 [10:12:31]MH_SAM_APDU [10:12:31]CAPDU: 80 09 00 00 [10:12:31]Write to MH i2c: E2 08 00 5B C0 80 09 00 00 00 00 00 00 8D [10:12:31]Write i2c OK [10:12:31]MH_I2C_Read... [10:12:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:31]Read from MH i2c: E2 [10:12:31]MH_I2C_Read... [10:12:31]Read from MH i2c: E2 03 00 [10:12:31]MH_I2C_Read... [10:12:31]Read from MH i2c: E2 03 00 5B C0 00 90 00 8F [10:12:31]RAPDU: 90 00 [10:12:31]wFMCommunicate OK [10:12:31]SAM_PROTO_ClearQueue done [10:12:31]KKMCreateOFDPacket [10:12:31]OFDProtocolAddRootSTLVToBuf [10:12:31]FM_MakeSignedData [10:12:31]FM_MakeSignedData [10:12:31]SAM_PROTO_SignData [10:12:31]wFMCommunicate request_size=4 [10:12:31]MH_SAM_APDU [10:12:31]CAPDU: 80 0D 01 02 [10:12:31]Write to MH i2c: E2 08 00 5C C0 80 0D 01 02 00 00 00 00 95 [10:12:31]Write i2c OK [10:12:31]MH_I2C_Read... [10:12:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:31]Read from MH i2c: E2 [10:12:31]MH_I2C_Read... [10:12:31]Read from MH i2c: E2 03 00 [10:12:31]MH_I2C_Read... [10:12:31]Read from MH i2c: E2 03 00 5C C0 00 90 00 90 [10:12:31]RAPDU: 90 00 [10:12:31]wFMCommunicate OK [10:12:31]wFMCommunicate request_size=255 [10:12:31]MH_SAM_APDU [10:12:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 97 D7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 81 0E 01 00 35 04 06 00 D4 [10:12:31]Write to MH i2c: E2 02 01 5D C0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 97 D7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 81 0E 01 00 35 04 06 00 D4 00 00 84 [10:12:31]Write i2c OK [10:12:31]MH_I2C_Read... [10:12:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:31]Read from MH i2c: E2 [10:12:31]MH_I2C_Read... [10:12:31]Read from MH i2c: E2 03 00 [10:12:31]MH_I2C_Read... [10:12:31]Read from MH i2c: E2 03 00 5D C0 00 90 00 91 [10:12:31]RAPDU: 90 00 [10:12:31]wFMCommunicate OK [10:12:31]wFMCommunicate request_size=10 [10:12:31]MH_SAM_APDU [10:12:31]CAPDU: 80 0D 02 02 05 01 7C 08 FB 15 [10:12:31]Write to MH i2c: E2 0D 00 5E C0 80 0D 02 02 05 00 01 7C 08 FB 15 00 00 37 [10:12:31]Write i2c OK [10:12:31]MH_I2C_Read... [10:12:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:31]Read from MH i2c: E2 [10:12:31]MH_I2C_Read... [10:12:31]Read from MH i2c: E2 03 00 [10:12:31]MH_I2C_Read... [10:12:31]Read from MH i2c: E2 03 00 5E C0 00 90 00 92 [10:12:31]RAPDU: 90 00 [10:12:31]wFMCommunicate OK [10:12:31]wFMCommunicate request_size=4 [10:12:31]MH_SAM_APDU [10:12:31]CAPDU: 80 0D 03 02 [10:12:31]Write to MH i2c: E2 08 00 5F C0 80 0D 03 02 00 00 00 00 9A [10:12:31]Write i2c OK [10:12:31]MH_I2C_Read... [10:12:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:31]Read from MH i2c: E2 [10:12:31]MH_I2C_Read... [10:12:31]Read from MH i2c: E2 0B 00 [10:12:31]MH_I2C_Read... [10:12:31]Read from MH i2c: E2 0B 00 5F C0 00 45 0E 6B 55 89 F3 34 66 90 00 C4 [10:12:31]RAPDU: 45 0E 6B 55 89 F3 34 66 90 00 [10:12:31]wFMCommunicate OK [10:12:31]SAM_PROTO_SignData done [10:12:31]FM_MakeSignedData done [10:12:31]CreateOFDProtocolMessage [10:12:31]wFMCommunicate request_size=4 [10:12:31]MH_SAM_APDU [10:12:31]CAPDU: 80 11 00 00 [10:12:31]Write to MH i2c: E2 08 00 60 C0 80 11 00 00 00 00 00 00 9A [10:12:31]Write i2c OK [10:12:31]MH_I2C_Read... [10:12:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:31]Read from MH i2c: E2 [10:12:31]MH_I2C_Read... [10:12:31]Read from MH i2c: E2 17 00 [10:12:31]MH_I2C_Read... [10:12:31]Read from MH i2c: E2 17 00 60 C0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EC [10:12:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:12:31]wFMCommunicate OK [10:12:31]CreateOFDProtocolMessage done [10:12:31]OFDSenderStorePacket 69249 [10:12:31]StoreOFDPacket docnum=69249 [10:12:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 1D 54 07 01 22 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 97 D7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 81 0E 01 00 35 04 06 00 D4 01 7C 08 FB 15 45 0E 6B 55 89 F3 34 66 [10:12:31]CheckFolder [10:12:31]dirname=/storage/ofd_packets [10:12:31]CheckFolder done [10:12:31]ProducePacketName [10:12:31]name=ofd_packets/00069249 [10:12:31]NVStorageSaveData ofd_packets/00069249 [10:12:31]File name is /storage/ofd_packets/00069249 [10:12:31]Write 301 bytes [10:12:31]NVStorageSaveData done [10:12:31]OFDSenderStorePacket done [10:12:31]KKMCreateOFDPacket done [10:12:31]NVStorageSaveData kkm_last_timestamp [10:12:31]File name is /storage/kkm_last_timestamp [10:12:31]Write 4 bytes [10:12:31]NVStorageSaveData done [10:12:31]ExternCall_PrintAddStr [10:12:31]wPrintStart [10:12:31]Write to MH i2c: 01 00 00 61 C0 21 [10:12:31]Write i2c OK [10:12:31]MH_I2C_Read... [10:12:31]Read from MH i2c: 01 [10:12:31]MH_I2C_Read... [10:12:31]Read from MH i2c: 01 07 00 [10:12:31]MH_I2C_Read... [10:12:31]Read from MH i2c: 01 07 00 61 C0 00 00 00 00 00 FF 0F 36 [10:12:31]RasterBufferAndPrint [10:12:31]line Счет N : (1)2884963 [10:12:31]line ИНН: 02508201610067 [10:12:31]line Контрольно-Кассовый Чек [10:12:31]line ПРОДАЖА [10:12:31]line ТРК (МРК, ГНК) : 42 [10:12:31]line Товар: 2710124130 [10:12:31]line Аи-92-К-5 [10:12:31]line 14.950 * 66.90 [10:12:31]line = 1000.16 [10:12:31]line НДС 12% НСП 1% [10:12:31]line > о реализуемом товаре [10:12:31]line ОКРУГЛЕНИЕ: -0.16 [10:12:31]line ИТОГО: 1000.00 [10:12:31]line Внесено: 1000.00 [10:12:31]line СДАЧА: 0.00 [10:12:31]line НСП 1% : 8.85 [10:12:31]line НДС 12% : 106.21 [10:12:31]line Наличными: 1000.00 [10:12:31]line Безнал.: 0.00 [10:12:31]line Место: АЗС № 85 "Партнер Нефть" [10:12:31]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:12:31]line СНО: Общий режим [10:12:31]line Чек 94 20.10.2024 10:12 [10:12:31]line Смена: 193 ФФД: 1.0 [10:12:31]line ЗНМ: 0300000167 [10:12:31]line РНМ: 0000000000156251 [10:12:31]line Версия ККМ: v1.0 [10:12:31]line ФМ: 0000000000963346 [10:12:31]line ФД: 69249 [10:12:31]line ФПД: 233102841019157 [10:12:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101239&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69249&fm=233102841019157&tin=02508201610067®Number=0000000000156251&sum=100000 [10:12:32]OFD Sender: Processing packet 69249 [packets to send 18, broken 17] [10:12:32]ProducePacketName [10:12:32]name=ofd_packets/00069249 [10:12:32]OFD Sender: To server: pG, [10:12:32]CommunicateWithHost lk.salyk.kg:30040 [10:12:32]ConnectInit lk.salyk.kg [10:12:32]written 0, free lines is 4095 [10:12:32]Connected sock=10 [10:12:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 1D 54 07 01 22 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 97 D7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 81 0E 01 00 35 04 06 00 D4 01 7C 08 FB 15 45 0E 6B 55 89 F3 34 66 [10:12:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 99 49 47 00 77 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 81 0E 01 00 F4 03 04 00 3E 81 14 67 B6 04 01 00 00 E9 14 F4 2A E1 DC 7C FF [10:12:32]CommunicateWithHost err = 0 [10:12:32]CheckOFDResponse [10:12:32]1017 (14) - 77093643461234 [10:12:32]1041 (16) - 0000000000963346 [10:12:32]1040 (4) - 69249 [10:12:32]1012 (4) - 20.10.2024 04:04 [10:12:32]1206 (1) - 0 [10:12:32]OFD Sender: Remove packet 69249 [10:12:32]ProducePacketName [10:12:32]name=ofd_packets/00069249 [10:12:32]NVStorageDeleteData [10:12:32]Write to MH i2c: 01 00 00 8C C0 4C [10:12:32]Write i2c OK [10:12:32]MH_I2C_Read... [10:12:32]Read from MH i2c: 01 [10:12:32]MH_I2C_Read... [10:12:32]Read from MH i2c: 01 07 00 [10:12:32]MH_I2C_Read... [10:12:32]Read from MH i2c: 01 07 00 8C C0 00 00 00 00 00 F3 0C 52 [10:12:32]RasterBufferAndPrint [10:12:32]line [10:12:32]line [10:12:32]line [10:12:32]line [10:12:32]line [10:12:32]written 0, free lines is 3321 [10:12:32]MH_Cut [10:12:32]Write to MH i2c: D1 01 00 93 C0 01 25 [10:12:32]Write i2c OK [10:12:32]MH_I2C_Read... [10:12:32]Read from MH i2c: D1 [10:12:32]MH_I2C_Read... [10:12:32]Read from MH i2c: D1 01 00 [10:12:32]MH_I2C_Read... [10:12:32]Read from MH i2c: D1 01 00 93 C0 00 24 [10:12:32]Write to MH i2c: 01 00 00 94 C0 54 [10:12:32]Write i2c OK [10:12:32]MH_I2C_Read... [10:12:32]OFD Sender: No OFD packet to send [10:12:33]*** Cut start [10:12:33]*** Partial cut [10:12:33]*** CUTSNS_PIN = 1 [10:12:33]*** CUTSNS_PIN = 0 [10:12:33]*** Brake cut motor [10:12:33]Read from MH i2c: 01 [10:12:33]MH_I2C_Read... [10:12:33]*** Stop cut motor [10:12:33]*** Cut end [10:12:33]Read from MH i2c: 01 07 00 [10:12:33]MH_I2C_Read... [10:12:33]Read from MH i2c: 01 07 00 94 C0 00 00 00 00 00 FF 0F 69 [10:12:33]process_action close_receipt done [10:12:33]requested_data is exist [10:12:33]produce_requested_data [10:12:33]requested_item fm.sn is exist - process it [10:12:33]wFMCommunicate request_size=4 [10:12:33]MH_SAM_APDU [10:12:33]CAPDU: 80 11 00 00 [10:12:33]Write to MH i2c: E2 08 00 95 C0 80 11 00 00 00 00 00 00 CF [10:12:33]Write i2c OK [10:12:33]MH_I2C_Read... [10:12:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:33]Read from MH i2c: E2 [10:12:33]MH_I2C_Read... [10:12:33]Read from MH i2c: E2 17 00 [10:12:33]MH_I2C_Read... [10:12:33]Read from MH i2c: E2 17 00 95 C0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 21 [10:12:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:12:33]wFMCommunicate OK [10:12:33]requested_item fd.num is exist - process it [10:12:33]SAM_PROTO_GetFieldsCounters [10:12:33]wFMCommunicate request_size=4 [10:12:33]MH_SAM_APDU [10:12:33]CAPDU: 80 13 00 00 [10:12:33]Write to MH i2c: E2 08 00 96 C0 80 13 00 00 00 00 00 00 D2 [10:12:33]Write i2c OK [10:12:33]MH_I2C_Read... [10:12:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:33]Read from MH i2c: E2 [10:12:33]MH_I2C_Read... [10:12:33]Read from MH i2c: E2 62 00 [10:12:33]MH_I2C_Read... [10:12:33]Read from MH i2c: E2 62 00 96 C0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 81 0E 01 00 0E 04 04 00 C1 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 58 [10:12:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 81 0E 01 00 0E 04 04 00 C1 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 [10:12:33]wFMCommunicate OK [10:12:33]SAM_PROTO_GetFieldsCounters done [10:12:33]requested_item shift.num is exist - process it [10:12:33]requested_item shift.opened is exist - process it [10:12:33]req_shift_opened [10:12:33]FM_GetShiftState [10:12:33]SAM_PROTO_GetShiftState [10:12:33]wFMCommunicate request_size=4 [10:12:33]MH_SAM_APDU [10:12:33]CAPDU: 80 13 01 00 [10:12:33]Write to MH i2c: E2 08 00 97 C0 80 13 01 00 00 00 00 00 D4 [10:12:33]Write i2c OK [10:12:33]MH_I2C_Read... [10:12:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:34]Read from MH i2c: E2 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: E2 0E 00 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: E2 0E 00 97 C0 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 DA [10:12:34]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:12:34]wFMCommunicate OK [10:12:34]SAM_PROTO_GetShiftState done [10:12:34]FM_GetShiftState done [10:12:34]req_shift_opened done [10:12:34]requested_item shift.open_date is exist - process it [10:12:34]req_shift_open_date [10:12:34]req_shift_open_date done [10:12:34]produce_requested_data done [10:12:34]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69249,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [10:12:34]process_action_free close_receipt [10:12:34]json_value_free [10:12:34]json_value_free done [10:12:34]process_json_proto returns [10:12:34]Send response to host [10:12:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69249,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [10:12:34]free response buf [10:12:34]execute_script done [10:12:34]execute_script returns [10:12:34]free content buf [10:12:34]Sock 9.Close socket [10:12:34]Sock 9.Thread stoped [10:12:37]OFD Sender: No OFD packet to send [10:12:42]OFD Sender: No OFD packet to send [10:12:47]OFD Sender: No OFD packet to send [10:12:52]OFD Sender: No OFD packet to send [10:12:57]OFD Sender: No OFD packet to send [10:13:02]OFD Sender: No OFD packet to send [10:13:07]OFD Sender: No OFD packet to send [10:13:12]OFD Sender: No OFD packet to send [10:13:17]OFD Sender: No OFD packet to send [10:13:22]OFD Sender: No OFD packet to send [10:13:27]OFD Sender: No OFD packet to send [10:13:32]OFD Sender: No OFD packet to send [10:13:37]OFD Sender: No OFD packet to send [10:13:42]OFD Sender: No OFD packet to send [10:13:47]OFD Sender: No OFD packet to send [10:13:52]OFD Sender: No OFD packet to send [10:13:57]OFD Sender: No OFD packet to send [10:14:02]OFD Sender: No OFD packet to send [10:14:07]OFD Sender: No OFD packet to send [10:14:12]OFD Sender: No OFD packet to send [10:14:17]OFD Sender: No OFD packet to send [10:14:22]OFD Sender: No OFD packet to send [10:14:27]OFD Sender: No OFD packet to send [10:14:28]accept exits with 8 [10:14:28]New connection [10:14:28]New thread 3067116900 created [10:14:28]Thread 3067260260 joined [10:14:28]Waiting for new connection... [10:14:28] Sock 8.Parse request [10:14:28]Sock 8.Check first char [10:14:28]Sock 8.First char is OK [10:14:28]request: POST /json_proto HTTP/1.0 [10:14:28]Method: POST [10:14:28]URL: /json_proto [10:14:28]Method is POST - this is cgi request [10:14:28]url: /json_proto [10:14:28]query_string will be loaded in cgi processing [10:14:28]execute_cgi json_proto POST (null) [10:14:28]execute_cgi path=json_proto method=POST [10:14:28]POST find Content-Length [10:14:28]Host: 172.17.50.3:8080 [10:14:28]Content-Length: 683 [10:14:28]Content-Type: application/json [10:14:28] [10:14:28]POST finish read [10:14:28]Found Content-Length = 683 [10:14:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 36.390, "sum" : 2700.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2700.00, "total" : 2700.00, "payments": [ { "type": 0, "sum" : 2700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:28]execute_script... [10:14:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 36.390, "sum" : 2700.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2700.00, "total" : 2700.00, "payments": [ { "type": 0, "sum" : 2700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:28]POST & json_proto [10:14:28]process_json_proto [10:14:28]json parsed OK: [10:14:28]protocol is kg_v1.0 [10:14:28]action value=close_receipt [10:14:28]process_action close_receipt [10:14:28]cmd_close_receipt [10:14:28]MH_GetDate [10:14:28]Write to MH i2c: F0 00 00 98 C0 47 [10:14:28]Write i2c OK [10:14:28]MH_I2C_Read... [10:14:28]Read from MH i2c: F0 [10:14:28]MH_I2C_Read... [10:14:28]Read from MH i2c: F0 09 00 [10:14:28]MH_I2C_Read... [10:14:28]Read from MH i2c: F0 09 00 98 C0 00 0E D8 14 67 6B 98 1E 66 38 [10:14:28]GetLastDocTimeStamp 1729419159 [10:14:28]current date 1729419278 [10:14:28]FM_GetShiftState [10:14:28]SAM_PROTO_GetShiftState [10:14:28]wFMCommunicate request_size=4 [10:14:28]MH_SAM_APDU [10:14:28]CAPDU: 80 13 01 00 [10:14:28]Write to MH i2c: E2 08 00 99 C0 80 13 01 00 00 00 00 00 D6 [10:14:28]Write i2c OK [10:14:28]MH_I2C_Read... [10:14:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:28]Read from MH i2c: E2 [10:14:28]MH_I2C_Read... [10:14:28]Read from MH i2c: E2 0E 00 [10:14:28]MH_I2C_Read... [10:14:28]Read from MH i2c: E2 0E 00 99 C0 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 DC [10:14:28]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:14:28]wFMCommunicate OK [10:14:28]SAM_PROTO_GetShiftState done [10:14:28]FM_GetShiftState done [10:14:28]opened in 1729383220 [10:14:28]opened+sec_in_day 1729469620 [10:14:28]quantity*price = 270013 [10:14:28]sum+1 = 270015 [10:14:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 2700.00 Внесено: 2700.00 СДАЧА: 0.00 НСП 1% : 23.89 НДС 12% : 286.74 Наличными: 2700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 95 20.10.2024 10:14 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69250 ФПД: 158385316735188 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101438&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69250&fm=158385316735188&tin=02508201610067®Number=0000000000156251&sum=270000 [10:14:29]StoreToDocumentArchive [10:14:29]shift 193 fd 69250 [10:14:29]save to /storage/0193/doc_00069250 [10:14:29]save last doc name /storage/0193/doc_00069250 to /storage/kkm_last_doc_name [10:14:29]save OK [10:14:29]Clear old archive folders... [10:14:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:14:29]tlvbuf is 00890600 [10:14:29]SAM_PROTO_ClearQueue [10:14:29]wFMCommunicate request_size=4 [10:14:29]MH_SAM_APDU [10:14:29]CAPDU: 80 09 00 00 [10:14:29]Write to MH i2c: E2 08 00 A6 C0 80 09 00 00 00 00 00 00 D8 [10:14:29]Write i2c OK [10:14:29]MH_I2C_Read... [10:14:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:29]Read from MH i2c: E2 [10:14:29]MH_I2C_Read... [10:14:29]Read from MH i2c: E2 03 00 [10:14:29]MH_I2C_Read... [10:14:29]Read from MH i2c: E2 03 00 A6 C0 00 90 00 DA [10:14:29]RAPDU: 90 00 [10:14:29]wFMCommunicate OK [10:14:29]SAM_PROTO_ClearQueue done [10:14:29]KKMCreateOFDPacket [10:14:29]OFDProtocolAddRootSTLVToBuf [10:14:29]FM_MakeSignedData [10:14:29]FM_MakeSignedData [10:14:29]SAM_PROTO_SignData [10:14:29]wFMCommunicate request_size=4 [10:14:29]MH_SAM_APDU [10:14:29]CAPDU: 80 0D 01 02 [10:14:29]Write to MH i2c: E2 08 00 A7 C0 80 0D 01 02 00 00 00 00 E0 [10:14:29]Write i2c OK [10:14:29]MH_I2C_Read... [10:14:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:29]Read from MH i2c: E2 [10:14:29]MH_I2C_Read... [10:14:29]Read from MH i2c: E2 03 00 [10:14:29]MH_I2C_Read... [10:14:29]Read from MH i2c: E2 03 00 A7 C0 00 90 00 DB [10:14:29]RAPDU: 90 00 [10:14:29]wFMCommunicate OK [10:14:29]wFMCommunicate request_size=255 [10:14:29]MH_SAM_APDU [10:14:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 8E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 70 00 00 00 00 07 04 06 00 B0 1E 04 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 0E D8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 82 0E 01 00 35 04 06 00 90 [10:14:29]Write to MH i2c: E2 02 01 A8 C0 80 0D 02 02 FA 00 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 26 8E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 70 00 00 00 00 07 04 06 00 B0 1E 04 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 0E D8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 82 0E 01 00 35 04 06 00 90 00 00 AA [10:14:29]Write i2c OK [10:14:29]MH_I2C_Read... [10:14:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:29]Read from MH i2c: E2 [10:14:29]MH_I2C_Read... [10:14:29]Read from MH i2c: E2 03 00 [10:14:29]MH_I2C_Read... [10:14:29]Read from MH i2c: E2 03 00 A8 C0 00 90 00 DC [10:14:29]RAPDU: 90 00 [10:14:29]wFMCommunicate OK [10:14:29]wFMCommunicate request_size=10 [10:14:29]MH_SAM_APDU [10:14:29]CAPDU: 80 0D 02 02 05 0C F4 8A A8 D4 [10:14:29]Write to MH i2c: E2 0D 00 A9 C0 80 0D 02 02 05 00 0C F4 8A A8 D4 00 00 F3 [10:14:29]Write i2c OK [10:14:29]MH_I2C_Read... [10:14:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:29]Read from MH i2c: E2 [10:14:29]MH_I2C_Read... [10:14:29]Read from MH i2c: E2 03 00 [10:14:29]MH_I2C_Read... [10:14:29]Read from MH i2c: E2 03 00 A9 C0 00 90 00 DD [10:14:29]RAPDU: 90 00 [10:14:29]wFMCommunicate OK [10:14:29]wFMCommunicate request_size=4 [10:14:29]MH_SAM_APDU [10:14:29]CAPDU: 80 0D 03 02 [10:14:29]Write to MH i2c: E2 08 00 AA C0 80 0D 03 02 00 00 00 00 E5 [10:14:30]Write i2c OK [10:14:30]MH_I2C_Read... [10:14:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:30]Read from MH i2c: E2 [10:14:30]MH_I2C_Read... [10:14:30]Read from MH i2c: E2 0B 00 [10:14:30]MH_I2C_Read... [10:14:30]Read from MH i2c: E2 0B 00 AA C0 00 8D 88 55 4C FF 68 65 6E 90 00 D6 [10:14:30]RAPDU: 8D 88 55 4C FF 68 65 6E 90 00 [10:14:30]wFMCommunicate OK [10:14:30]SAM_PROTO_SignData done [10:14:30]FM_MakeSignedData done [10:14:30]CreateOFDProtocolMessage [10:14:30]wFMCommunicate request_size=4 [10:14:30]MH_SAM_APDU [10:14:30]CAPDU: 80 11 00 00 [10:14:30]Write to MH i2c: E2 08 00 AB C0 80 11 00 00 00 00 00 00 E5 [10:14:30]Write i2c OK [10:14:30]MH_I2C_Read... [10:14:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:30]Read from MH i2c: E2 [10:14:30]MH_I2C_Read... [10:14:30]Read from MH i2c: E2 17 00 [10:14:30]MH_I2C_Read... [10:14:30]Read from MH i2c: E2 17 00 AB C0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 37 [10:14:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:14:30]wFMCommunicate OK [10:14:30]CreateOFDProtocolMessage done [10:14:30]OFDSenderStorePacket 69250 [10:14:30]StoreOFDPacket docnum=69250 [10:14:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 97 36 07 01 7A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 8E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 70 00 00 00 00 07 04 06 00 B0 1E 04 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 0E D8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 82 0E 01 00 35 04 06 00 90 0C F4 8A A8 D4 8D 88 55 4C FF 68 65 6E [10:14:30]CheckFolder [10:14:30]dirname=/storage/ofd_packets [10:14:30]CheckFolder done [10:14:30]ProducePacketName [10:14:30]name=ofd_packets/00069250 [10:14:30]NVStorageSaveData ofd_packets/00069250 [10:14:30]File name is /storage/ofd_packets/00069250 [10:14:30]Write 301 bytes [10:14:30]NVStorageSaveData done [10:14:30]OFDSenderStorePacket done [10:14:30]KKMCreateOFDPacket done [10:14:30]NVStorageSaveData kkm_last_timestamp [10:14:30]File name is /storage/kkm_last_timestamp [10:14:30]Write 4 bytes [10:14:30]NVStorageSaveData done [10:14:30]ExternCall_PrintAddStr [10:14:30]wPrintStart [10:14:30]Write to MH i2c: 01 00 00 AC C0 6C [10:14:30]Write i2c OK [10:14:30]MH_I2C_Read... [10:14:30]Read from MH i2c: 01 [10:14:30]MH_I2C_Read... [10:14:30]Read from MH i2c: 01 07 00 [10:14:30]MH_I2C_Read... [10:14:30]Read from MH i2c: 01 07 00 AC C0 00 00 00 00 00 FF 0F 81 [10:14:30]RasterBufferAndPrint [10:14:30]line Счет N : (1)2884964 [10:14:30]line ИНН: 02508201610067 [10:14:30]line Контрольно-Кассовый Чек [10:14:30]line ПРОДАЖА [10:14:30]line ТРК (МРК, ГНК) : 33 [10:14:30]line Товар: 2710124500 [10:14:30]line Аи-95-К-5 [10:14:30]line 36.390 * 74.20 [10:14:30]line = 2700.14 [10:14:30]line НДС 12% НСП 1% [10:14:30]line > о реализуемом товаре [10:14:30]line ОКРУГЛЕНИЕ: -0.14 [10:14:30]line ИТОГО: 2700.00 [10:14:30]line Внесено: 2700.00 [10:14:30]line СДАЧА: 0.00 [10:14:30]line НСП 1% : 23.89 [10:14:30]line НДС 12% : 286.74 [10:14:30]line Наличными: 2700.00 [10:14:30]line Безнал.: 0.00 [10:14:30]line Место: АЗС № 85 "Партнер Нефть" [10:14:30]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:14:30]line СНО: Общий режим [10:14:30]line Чек 95 20.10.2024 10:14 [10:14:30]line Смена: 193 ФФД: 1.0 [10:14:30]line ЗНМ: 0300000167 [10:14:30]line РНМ: 0000000000156251 [10:14:30]line Версия ККМ: v1.0 [10:14:30]line ФМ: 0000000000963346 [10:14:30]line ФД: 69250 [10:14:30]line ФПД: 158385316735188 [10:14:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101438&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69250&fm=158385316735188&tin=02508201610067®Number=0000000000156251&sum=270000 [10:14:30]OFD Sender: Processing packet 69250 [packets to send 18, broken 17] [10:14:30]ProducePacketName [10:14:30]name=ofd_packets/00069250 [10:14:30]OFD Sender: To server: pG, [10:14:30]CommunicateWithHost lk.salyk.kg:30040 [10:14:30]ConnectInit lk.salyk.kg [10:14:30]written 0, free lines is 4095 [10:14:30]Connected sock=9 [10:14:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 97 36 07 01 7A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 8E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 70 00 00 00 00 07 04 06 00 B0 1E 04 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 0E D8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 82 0E 01 00 35 04 06 00 90 0C F4 8A A8 D4 8D 88 55 4C FF 68 65 6E [10:14:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 21 EA 47 00 E7 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 82 0E 01 00 F4 03 04 00 B5 81 14 67 B6 04 01 00 00 F7 6D C4 BF 3E C9 31 9C [10:14:30]CommunicateWithHost err = 0 [10:14:30]CheckOFDResponse [10:14:30]1017 (14) - 77093643461234 [10:14:30]1041 (16) - 0000000000963346 [10:14:30]1040 (4) - 69250 [10:14:30]1012 (4) - 20.10.2024 04:06 [10:14:30]1206 (1) - 0 [10:14:30]OFD Sender: Remove packet 69250 [10:14:30]ProducePacketName [10:14:30]name=ofd_packets/00069250 [10:14:30]NVStorageDeleteData [10:14:30]Write to MH i2c: 01 00 00 D7 C0 97 [10:14:30]Write i2c OK [10:14:30]MH_I2C_Read... [10:14:30]Read from MH i2c: 01 [10:14:30]MH_I2C_Read... [10:14:30]Read from MH i2c: 01 07 00 [10:14:30]MH_I2C_Read... [10:14:30]Read from MH i2c: 01 07 00 D7 C0 00 00 00 00 00 EA 0C 94 [10:14:30]RasterBufferAndPrint [10:14:30]line [10:14:30]line [10:14:30]line [10:14:30]line [10:14:30]line [10:14:30]written 0, free lines is 3312 [10:14:30]MH_Cut [10:14:30]Write to MH i2c: D1 01 00 DE C0 01 70 [10:14:30]Write i2c OK [10:14:30]MH_I2C_Read... [10:14:30]Read from MH i2c: D1 [10:14:30]MH_I2C_Read... [10:14:30]Read from MH i2c: D1 01 00 [10:14:30]MH_I2C_Read... [10:14:30]Read from MH i2c: D1 01 00 DE C0 00 6F [10:14:30]Write to MH i2c: 01 00 00 DF C0 9F [10:14:30]Write i2c OK [10:14:30]MH_I2C_Read... [10:14:31]OFD Sender: No OFD packet to send [10:14:31]*** Cut start [10:14:31]*** Partial cut [10:14:31]*** CUTSNS_PIN = 1 [10:14:31]*** CUTSNS_PIN = 0 [10:14:31]*** Brake cut motor [10:14:32]Read from MH i2c: 01 [10:14:32]MH_I2C_Read... [10:14:32]*** Stop cut motor [10:14:32]*** Cut end [10:14:32]Read from MH i2c: 01 07 00 [10:14:32]MH_I2C_Read... [10:14:32]Read from MH i2c: 01 07 00 DF C0 00 00 00 00 00 FF 0F B4 [10:14:32]process_action close_receipt done [10:14:32]requested_data is exist [10:14:32]produce_requested_data [10:14:32]requested_item fm.sn is exist - process it [10:14:32]wFMCommunicate request_size=4 [10:14:32]MH_SAM_APDU [10:14:32]CAPDU: 80 11 00 00 [10:14:32]Write to MH i2c: E2 08 00 E0 C0 80 11 00 00 00 00 00 00 1A [10:14:32]Write i2c OK [10:14:32]MH_I2C_Read... [10:14:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:32]Read from MH i2c: E2 [10:14:32]MH_I2C_Read... [10:14:32]Read from MH i2c: E2 17 00 [10:14:32]MH_I2C_Read... [10:14:32]Read from MH i2c: E2 17 00 E0 C0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6C [10:14:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:14:32]wFMCommunicate OK [10:14:32]requested_item fd.num is exist - process it [10:14:32]SAM_PROTO_GetFieldsCounters [10:14:32]wFMCommunicate request_size=4 [10:14:32]MH_SAM_APDU [10:14:32]CAPDU: 80 13 00 00 [10:14:32]Write to MH i2c: E2 08 00 E1 C0 80 13 00 00 00 00 00 00 1D [10:14:32]Write i2c OK [10:14:32]MH_I2C_Read... [10:14:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:32]Read from MH i2c: E2 [10:14:32]MH_I2C_Read... [10:14:32]Read from MH i2c: E2 62 00 [10:14:32]MH_I2C_Read... [10:14:32]Read from MH i2c: E2 62 00 E1 C0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 82 0E 01 00 0E 04 04 00 C1 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 A7 [10:14:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 82 0E 01 00 0E 04 04 00 C1 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 [10:14:32]wFMCommunicate OK [10:14:32]SAM_PROTO_GetFieldsCounters done [10:14:32]requested_item shift.num is exist - process it [10:14:32]requested_item shift.opened is exist - process it [10:14:32]req_shift_opened [10:14:32]FM_GetShiftState [10:14:32]SAM_PROTO_GetShiftState [10:14:32]wFMCommunicate request_size=4 [10:14:32]MH_SAM_APDU [10:14:32]CAPDU: 80 13 01 00 [10:14:32]Write to MH i2c: E2 08 00 E2 C0 80 13 01 00 00 00 00 00 1F [10:14:32]Write i2c OK [10:14:32]MH_I2C_Read... [10:14:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:32]Read from MH i2c: E2 [10:14:32]MH_I2C_Read... [10:14:32]Read from MH i2c: E2 0E 00 [10:14:32]MH_I2C_Read... [10:14:32]Read from MH i2c: E2 0E 00 E2 C0 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 25 [10:14:32]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:14:32]wFMCommunicate OK [10:14:32]SAM_PROTO_GetShiftState done [10:14:32]FM_GetShiftState done [10:14:32]req_shift_opened done [10:14:32]requested_item shift.open_date is exist - process it [10:14:32]req_shift_open_date [10:14:32]req_shift_open_date done [10:14:32]produce_requested_data done [10:14:32]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69250,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [10:14:32]process_action_free close_receipt [10:14:32]json_value_free [10:14:32]json_value_free done [10:14:32]process_json_proto returns [10:14:32]Send response to host [10:14:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69250,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [10:14:32]free response buf [10:14:32]execute_script done [10:14:32]execute_script returns [10:14:32]free content buf [10:14:32]Sock 8.Close socket [10:14:32]Sock 8.Thread stoped [10:14:36]OFD Sender: No OFD packet to send [10:14:41]OFD Sender: No OFD packet to send [10:14:46]OFD Sender: No OFD packet to send [10:14:51]OFD Sender: No OFD packet to send [10:14:56]OFD Sender: No OFD packet to send [10:15:01]OFD Sender: No OFD packet to send [10:15:06]OFD Sender: No OFD packet to send [10:15:11]OFD Sender: No OFD packet to send [10:15:16]OFD Sender: No OFD packet to send [10:15:21]OFD Sender: No OFD packet to send [10:15:26]OFD Sender: No OFD packet to send [10:15:31]OFD Sender: No OFD packet to send [10:15:31]accept exits with 10 [10:15:31]New connection [10:15:31]New thread 3067260260 created [10:15:31]Thread 3067116900 joined [10:15:31]Waiting for new connection... [10:15:31] Sock 10.Parse request [10:15:31]Sock 10.Check first char [10:15:31]Sock 10.First char is OK [10:15:31]request: POST /json_proto HTTP/1.0 [10:15:31]Method: POST [10:15:31]URL: /json_proto [10:15:31]Method is POST - this is cgi request [10:15:31]url: /json_proto [10:15:31]query_string will be loaded in cgi processing [10:15:31]execute_cgi json_proto POST (null) [10:15:31]execute_cgi path=json_proto method=POST [10:15:31]POST find Content-Length [10:15:31]Host: 172.17.50.3:8080 [10:15:31]Content-Length: 678 [10:15:31]Content-Type: application/json [10:15:31] [10:15:31]POST finish read [10:15:31]Found Content-Length = 678 [10:15:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:31]execute_script... [10:15: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)2884966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:31]POST & json_proto [10:15:31]process_json_proto [10:15:31]json parsed OK: [10:15:31]protocol is kg_v1.0 [10:15:31]action value=close_receipt [10:15:31]process_action close_receipt [10:15:31]cmd_close_receipt [10:15:31]MH_GetDate [10:15:31]Write to MH i2c: F0 00 00 E3 C0 92 [10:15:31]Write i2c OK [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: F0 [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: F0 09 00 [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: F0 09 00 E3 C0 00 4D D8 14 67 6B 98 1E 66 C2 [10:15:31]GetLastDocTimeStamp 1729419278 [10:15:31]current date 1729419341 [10:15:31]FM_GetShiftState [10:15:31]SAM_PROTO_GetShiftState [10:15:31]wFMCommunicate request_size=4 [10:15:31]MH_SAM_APDU [10:15:31]CAPDU: 80 13 01 00 [10:15:31]Write to MH i2c: E2 08 00 E4 C0 80 13 01 00 00 00 00 00 21 [10:15:31]Write i2c OK [10:15:31]MH_I2C_Read... [10:15:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:31]Read from MH i2c: E2 [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: E2 0E 00 [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: E2 0E 00 E4 C0 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 27 [10:15:31]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:15:31]wFMCommunicate OK [10:15:31]SAM_PROTO_GetShiftState done [10:15:31]FM_GetShiftState done [10:15:31]opened in 1729383220 [10:15:31]opened+sec_in_day 1729469620 [10:15:31]quantity*price = 50041 [10:15:31]sum+1 = 50042 [10:15:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 96 20.10.2024 10:15 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69251 ФПД: 4178727862552 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101541&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69251&fm=4178727862552&tin=02508201610067®Number=0000000000156251&sum=50000 [10:15:32]StoreToDocumentArchive [10:15:32]shift 193 fd 69251 [10:15:32]save to /storage/0193/doc_00069251 [10:15:32]save last doc name /storage/0193/doc_00069251 to /storage/kkm_last_doc_name [10:15:32]save OK [10:15:32]Clear old archive folders... [10:15:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:15:32]tlvbuf is 00890610 [10:15:32]SAM_PROTO_ClearQueue [10:15:32]wFMCommunicate request_size=4 [10:15:32]MH_SAM_APDU [10:15:32]CAPDU: 80 09 00 00 [10:15:32]Write to MH i2c: E2 08 00 F1 C0 80 09 00 00 00 00 00 00 23 [10:15:32]Write i2c OK [10:15:32]MH_I2C_Read... [10:15:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:33]Read from MH i2c: E2 [10:15:33]MH_I2C_Read... [10:15:33]Read from MH i2c: E2 03 00 [10:15:33]MH_I2C_Read... [10:15:33]Read from MH i2c: E2 03 00 F1 C0 00 90 00 25 [10:15:33]RAPDU: 90 00 [10:15:33]wFMCommunicate OK [10:15:33]SAM_PROTO_ClearQueue done [10:15:33]KKMCreateOFDPacket [10:15:33]OFDProtocolAddRootSTLVToBuf [10:15:33]FM_MakeSignedData [10:15:33]FM_MakeSignedData [10:15:33]SAM_PROTO_SignData [10:15:33]wFMCommunicate request_size=4 [10:15:33]MH_SAM_APDU [10:15:33]CAPDU: 80 0D 01 02 [10:15:33]Write to MH i2c: E2 08 00 F2 C0 80 0D 01 02 00 00 00 00 2B [10:15:33]Write i2c OK [10:15:33]MH_I2C_Read... [10:15:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:33]Read from MH i2c: E2 [10:15:33]MH_I2C_Read... [10:15:33]Read from MH i2c: E2 03 00 [10:15:33]MH_I2C_Read... [10:15:33]Read from MH i2c: E2 03 00 F2 C0 00 90 00 26 [10:15:33]RAPDU: 90 00 [10:15:33]wFMCommunicate OK [10:15:33]wFMCommunicate request_size=255 [10:15:33]MH_SAM_APDU [10:15:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 4D D8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 83 0E 01 00 35 04 06 00 03 [10:15:33]Write to MH i2c: E2 02 01 F3 C0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 4D D8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 83 0E 01 00 35 04 06 00 03 00 00 0A [10:15:33]Write i2c OK [10:15:33]MH_I2C_Read... [10:15:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:33]Read from MH i2c: E2 [10:15:33]MH_I2C_Read... [10:15:33]Read from MH i2c: E2 03 00 [10:15:33]MH_I2C_Read... [10:15:33]Read from MH i2c: E2 03 00 F3 C0 00 90 00 27 [10:15:33]RAPDU: 90 00 [10:15:33]wFMCommunicate OK [10:15:33]wFMCommunicate request_size=10 [10:15:33]MH_SAM_APDU [10:15:33]CAPDU: 80 0D 02 02 05 CC EF 97 01 18 [10:15:33]Write to MH i2c: E2 0D 00 F4 C0 80 0D 02 02 05 00 CC EF 97 01 18 00 00 A3 [10:15:33]Write i2c OK [10:15:33]MH_I2C_Read... [10:15:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:33]Read from MH i2c: E2 [10:15:33]MH_I2C_Read... [10:15:33]Read from MH i2c: E2 03 00 [10:15:33]MH_I2C_Read... [10:15:33]Read from MH i2c: E2 03 00 F4 C0 00 90 00 28 [10:15:33]RAPDU: 90 00 [10:15:33]wFMCommunicate OK [10:15:33]wFMCommunicate request_size=4 [10:15:33]MH_SAM_APDU [10:15:33]CAPDU: 80 0D 03 02 [10:15:33]Write to MH i2c: E2 08 00 F5 C0 80 0D 03 02 00 00 00 00 30 [10:15:33]Write i2c OK [10:15:33]MH_I2C_Read... [10:15:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:33]Read from MH i2c: E2 [10:15:33]MH_I2C_Read... [10:15:33]Read from MH i2c: E2 0B 00 [10:15:33]MH_I2C_Read... [10:15:33]Read from MH i2c: E2 0B 00 F5 C0 00 D5 A1 1D 3C 09 D5 AE B3 90 00 3F [10:15:33]RAPDU: D5 A1 1D 3C 09 D5 AE B3 90 00 [10:15:33]wFMCommunicate OK [10:15:33]SAM_PROTO_SignData done [10:15:33]FM_MakeSignedData done [10:15:33]CreateOFDProtocolMessage [10:15:33]wFMCommunicate request_size=4 [10:15:33]MH_SAM_APDU [10:15:33]CAPDU: 80 11 00 00 [10:15:33]Write to MH i2c: E2 08 00 F6 C0 80 11 00 00 00 00 00 00 30 [10:15:33]Write i2c OK [10:15:33]MH_I2C_Read... [10:15:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:33]Read from MH i2c: E2 [10:15:33]MH_I2C_Read... [10:15:33]Read from MH i2c: E2 17 00 [10:15:33]MH_I2C_Read... [10:15:33]Read from MH i2c: E2 17 00 F6 C0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 82 [10:15:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:15:33]wFMCommunicate OK [10:15:33]CreateOFDProtocolMessage done [10:15:33]OFDSenderStorePacket 69251 [10:15:33]StoreOFDPacket docnum=69251 [10:15:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 30 8A 07 01 B4 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 4D D8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 83 0E 01 00 35 04 06 00 03 CC EF 97 01 18 D5 A1 1D 3C 09 D5 AE B3 [10:15:33]CheckFolder [10:15:33]dirname=/storage/ofd_packets [10:15:33]CheckFolder done [10:15:33]ProducePacketName [10:15:33]name=ofd_packets/00069251 [10:15:33]NVStorageSaveData ofd_packets/00069251 [10:15:33]File name is /storage/ofd_packets/00069251 [10:15:33]Write 301 bytes [10:15:33]NVStorageSaveData done [10:15:33]OFDSenderStorePacket done [10:15:33]KKMCreateOFDPacket done [10:15:33]NVStorageSaveData kkm_last_timestamp [10:15:33]File name is /storage/kkm_last_timestamp [10:15:33]Write 4 bytes [10:15:33]NVStorageSaveData done [10:15:33]ExternCall_PrintAddStr [10:15:33]wPrintStart [10:15:33]Write to MH i2c: 01 00 00 F7 C0 B7 [10:15:33]Write i2c OK [10:15:33]MH_I2C_Read... [10:15:33]Read from MH i2c: 01 [10:15:33]MH_I2C_Read... [10:15:33]Read from MH i2c: 01 07 00 [10:15:33]MH_I2C_Read... [10:15:33]Read from MH i2c: 01 07 00 F7 C0 00 00 00 00 00 FF 0F CC [10:15:33]RasterBufferAndPrint [10:15:33]line Счет N : (1)2884966 [10:15:33]line ИНН: 02508201610067 [10:15:33]line Контрольно-Кассовый Чек [10:15:33]line ПРОДАЖА [10:15:33]line ТРК (МРК, ГНК) : 42 [10:15:33]line Товар: 2710124130 [10:15:33]line Аи-92-К-5 [10:15:33]line 7.480 * 66.90 [10:15:33]line = 500.41 [10:15:33]line НДС 12% НСП 1% [10:15:33]line > о реализуемом товаре [10:15:33]line ОКРУГЛЕНИЕ: -0.41 [10:15:33]line ИТОГО: 500.00 [10:15:33]line Внесено: 500.00 [10:15:33]line СДАЧА: 0.00 [10:15:33]line НСП 1% : 4.43 [10:15:33]line НДС 12% : 53.14 [10:15:33]line Наличными: 500.00 [10:15:33]line Безнал.: 0.00 [10:15:33]line Место: АЗС № 85 "Партнер Нефть" [10:15:33]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:15:33]line СНО: Общий режим [10:15:33]line Чек 96 20.10.2024 10:15 [10:15:33]line Смена: 193 ФФД: 1.0 [10:15:33]line ЗНМ: 0300000167 [10:15:33]line РНМ: 0000000000156251 [10:15:33]line Версия ККМ: v1.0 [10:15:33]line ФМ: 0000000000963346 [10:15:33]line ФД: 69251 [10:15:33]line ФПД: 4178727862552 [10:15:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101541&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69251&fm=4178727862552&tin=02508201610067®Number=0000000000156251&sum=50000 [10:15:33]OFD Sender: Processing packet 69251 [packets to send 18, broken 17] [10:15:33]ProducePacketName [10:15:33]name=ofd_packets/00069251 [10:15:33]OFD Sender: To server: pG, [10:15:33]CommunicateWithHost lk.salyk.kg:30040 [10:15:33]ConnectInit lk.salyk.kg [10:15:33]written 0, free lines is 4095 [10:15:33]Connected sock=8 [10:15:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 30 8A 07 01 B4 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 4D D8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 83 0E 01 00 35 04 06 00 03 CC EF 97 01 18 D5 A1 1D 3C 09 D5 AE B3 [10:15:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 08 81 47 00 2E 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 83 0E 01 00 F4 03 04 00 F4 81 14 67 B6 04 01 00 00 51 75 42 D1 10 68 96 79 [10:15:34]CommunicateWithHost err = 0 [10:15:34]CheckOFDResponse [10:15:34]1017 (14) - 77093643461234 [10:15:34]1041 (16) - 0000000000963346 [10:15:34]1040 (4) - 69251 [10:15:34]1012 (4) - 20.10.2024 04:07 [10:15:34]1206 (1) - 0 [10:15:34]OFD Sender: Remove packet 69251 [10:15:34]ProducePacketName [10:15:34]name=ofd_packets/00069251 [10:15:34]NVStorageDeleteData [10:15:34]Write to MH i2c: 01 00 00 22 C1 E3 [10:15:34]Write i2c OK [10:15:34]MH_I2C_Read... [10:15:34]Read from MH i2c: 01 [10:15:34]MH_I2C_Read... [10:15:34]Read from MH i2c: 01 07 00 [10:15:34]MH_I2C_Read... [10:15:34]Read from MH i2c: 01 07 00 22 C1 00 00 00 00 00 DA 0C D0 [10:15:34]RasterBufferAndPrint [10:15:34]line [10:15:34]line [10:15:34]line [10:15:34]line [10:15:34]line [10:15:34]written 0, free lines is 3297 [10:15:34]MH_Cut [10:15:34]Write to MH i2c: D1 01 00 29 C1 01 BC [10:15:34]Write i2c OK [10:15:34]MH_I2C_Read... [10:15:34]Read from MH i2c: D1 [10:15:34]MH_I2C_Read... [10:15:34]Read from MH i2c: D1 01 00 [10:15:34]MH_I2C_Read... [10:15:34]Read from MH i2c: D1 01 00 29 C1 00 BB [10:15:34]Write to MH i2c: 01 00 00 2A C1 EB [10:15:34]Write i2c OK [10:15:34]MH_I2C_Read... [10:15:34]OFD Sender: No OFD packet to send [10:15:34]*** Cut start [10:15:34]*** Partial cut [10:15:34]*** CUTSNS_PIN = 1 [10:15:35]*** CUTSNS_PIN = 0 [10:15:35]*** Brake cut motor [10:15:35]Read from MH i2c: 01 [10:15:35]MH_I2C_Read... [10:15:35]*** Stop cut motor [10:15:35]*** Cut end [10:15:35]Read from MH i2c: 01 07 00 [10:15:35]MH_I2C_Read... [10:15:35]Read from MH i2c: 01 07 00 2A C1 00 00 00 00 00 FF 0F 00 [10:15:35]process_action close_receipt done [10:15:35]requested_data is exist [10:15:35]produce_requested_data [10:15:35]requested_item fm.sn is exist - process it [10:15:35]wFMCommunicate request_size=4 [10:15:35]MH_SAM_APDU [10:15:35]CAPDU: 80 11 00 00 [10:15:35]Write to MH i2c: E2 08 00 2B C1 80 11 00 00 00 00 00 00 66 [10:15:35]Write i2c OK [10:15:35]MH_I2C_Read... [10:15:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:35]Read from MH i2c: E2 [10:15:35]MH_I2C_Read... [10:15:35]Read from MH i2c: E2 17 00 [10:15:35]MH_I2C_Read... [10:15:35]Read from MH i2c: E2 17 00 2B C1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B8 [10:15:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:15:35]wFMCommunicate OK [10:15:35]requested_item fd.num is exist - process it [10:15:35]SAM_PROTO_GetFieldsCounters [10:15:35]wFMCommunicate request_size=4 [10:15:35]MH_SAM_APDU [10:15:35]CAPDU: 80 13 00 00 [10:15:35]Write to MH i2c: E2 08 00 2C C1 80 13 00 00 00 00 00 00 69 [10:15:35]Write i2c OK [10:15:35]MH_I2C_Read... [10:15:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:35]Read from MH i2c: E2 [10:15:35]MH_I2C_Read... [10:15:35]Read from MH i2c: E2 62 00 [10:15:35]MH_I2C_Read... [10:15:35]Read from MH i2c: E2 62 00 2C C1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 83 0E 01 00 0E 04 04 00 C1 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 F7 [10:15:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 83 0E 01 00 0E 04 04 00 C1 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 [10:15:35]wFMCommunicate OK [10:15:35]SAM_PROTO_GetFieldsCounters done [10:15:35]requested_item shift.num is exist - process it [10:15:35]requested_item shift.opened is exist - process it [10:15:35]req_shift_opened [10:15:35]FM_GetShiftState [10:15:35]SAM_PROTO_GetShiftState [10:15:35]wFMCommunicate request_size=4 [10:15:35]MH_SAM_APDU [10:15:35]CAPDU: 80 13 01 00 [10:15:35]Write to MH i2c: E2 08 00 2D C1 80 13 01 00 00 00 00 00 6B [10:15:35]Write i2c OK [10:15:35]MH_I2C_Read... [10:15:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:35]Read from MH i2c: E2 [10:15:35]MH_I2C_Read... [10:15:35]Read from MH i2c: E2 0E 00 [10:15:35]MH_I2C_Read... [10:15:35]Read from MH i2c: E2 0E 00 2D C1 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 71 [10:15:35]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:15:35]wFMCommunicate OK [10:15:35]SAM_PROTO_GetShiftState done [10:15:35]FM_GetShiftState done [10:15:35]req_shift_opened done [10:15:35]requested_item shift.open_date is exist - process it [10:15:35]req_shift_open_date [10:15:35]req_shift_open_date done [10:15:35]produce_requested_data done [10:15:35]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69251,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [10:15:35]process_action_free close_receipt [10:15:35]json_value_free [10:15:35]json_value_free done [10:15:35]process_json_proto returns [10:15:35]Send response to host [10:15:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69251,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [10:15:35]free response buf [10:15:35]execute_script done [10:15:35]execute_script returns [10:15:35]free content buf [10:15:35]Sock 10.Close socket [10:15:35]Sock 10.Thread stoped [10:15:36]accept exits with 9 [10:15:36]New connection [10:15:36]New thread 3067116900 created [10:15:36]Thread 3067260260 joined [10:15:36]Waiting for new connection... [10:15:36] Sock 9.Parse request [10:15:36]Sock 9.Check first char [10:15:36]Sock 9.First char is OK [10:15:36]request: POST /json_proto HTTP/1.0 [10:15:36]Method: POST [10:15:36]URL: /json_proto [10:15:36]Method is POST - this is cgi request [10:15:36]url: /json_proto [10:15:36]query_string will be loaded in cgi processing [10:15:36]execute_cgi json_proto POST (null) [10:15:36]execute_cgi path=json_proto method=POST [10:15:36]POST find Content-Length [10:15:36]Host: 172.17.50.3:8080 [10:15:36]Content-Length: 764 [10:15:36]Content-Type: application/json [10:15:36] [10:15:36]POST finish read [10:15:36]Found Content-Length = 764 [10:15:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:36]execute_script... [10:15: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)2884965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:36]POST & json_proto [10:15:36]process_json_proto [10:15:36]json parsed OK: [10:15:36]protocol is kg_v1.0 [10:15:36]action value=close_receipt [10:15:36]process_action close_receipt [10:15:36]cmd_close_receipt [10:15:36]MH_GetDate [10:15:36]Write to MH i2c: F0 00 00 2E C1 DE [10:15:36]Write i2c OK [10:15:36]MH_I2C_Read... [10:15:36]Read from MH i2c: F0 [10:15:36]MH_I2C_Read... [10:15:36]Read from MH i2c: F0 09 00 [10:15:36]MH_I2C_Read... [10:15:36]Read from MH i2c: F0 09 00 2E C1 00 52 D8 14 67 6B 98 1E 66 13 [10:15:36]GetLastDocTimeStamp 1729419341 [10:15:36]current date 1729419346 [10:15:36]FM_GetShiftState [10:15:36]SAM_PROTO_GetShiftState [10:15:36]wFMCommunicate request_size=4 [10:15:36]MH_SAM_APDU [10:15:36]CAPDU: 80 13 01 00 [10:15:36]Write to MH i2c: E2 08 00 2F C1 80 13 01 00 00 00 00 00 6D [10:15:36]Write i2c OK [10:15:36]MH_I2C_Read... [10:15:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:36]Read from MH i2c: E2 [10:15:36]MH_I2C_Read... [10:15:36]Read from MH i2c: E2 0E 00 [10:15:36]MH_I2C_Read... [10:15:36]Read from MH i2c: E2 0E 00 2F C1 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 73 [10:15:36]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:15:36]wFMCommunicate OK [10:15:36]SAM_PROTO_GetShiftState done [10:15:36]FM_GetShiftState done [10:15:36]opened in 1729383220 [10:15:36]opened+sec_in_day 1729469620 [10:15:36]quantity*price = 50063 [10:15:36]sum+1 = 50064 [10:15:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.63 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 0.00 Безнал.: 500.63 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 97 20.10.2024 10:15 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69252 ФПД: 106937576200372 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101546&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69252&fm=106937576200372&tin=02508201610067®Number=0000000000156251&sum=50063 [10:15:38]StoreToDocumentArchive [10:15:38]shift 193 fd 69252 [10:15:38]save to /storage/0193/doc_00069252 [10:15:38]save last doc name /storage/0193/doc_00069252 to /storage/kkm_last_doc_name [10:15:38]save OK [10:15:38]Clear old archive folders... [10:15:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:15:38]tlvbuf is 005DC150 [10:15:38]SAM_PROTO_ClearQueue [10:15:38]wFMCommunicate request_size=4 [10:15:38]MH_SAM_APDU [10:15:38]CAPDU: 80 09 00 00 [10:15:38]Write to MH i2c: E2 08 00 3C C1 80 09 00 00 00 00 00 00 6F [10:15:38]Write i2c OK [10:15:38]MH_I2C_Read... [10:15:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:38]Read from MH i2c: E2 [10:15:38]MH_I2C_Read... [10:15:38]Read from MH i2c: E2 03 00 [10:15:38]MH_I2C_Read... [10:15:38]Read from MH i2c: E2 03 00 3C C1 00 90 00 71 [10:15:38]RAPDU: 90 00 [10:15:38]wFMCommunicate OK [10:15:38]SAM_PROTO_ClearQueue done [10:15:38]KKMCreateOFDPacket [10:15:38]OFDProtocolAddRootSTLVToBuf [10:15:38]FM_MakeSignedData [10:15:38]FM_MakeSignedData [10:15:38]SAM_PROTO_SignData [10:15:38]wFMCommunicate request_size=4 [10:15:38]MH_SAM_APDU [10:15:38]CAPDU: 80 0D 01 02 [10:15:38]Write to MH i2c: E2 08 00 3D C1 80 0D 01 02 00 00 00 00 77 [10:15:38]Write i2c OK [10:15:38]MH_I2C_Read... [10:15:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:38]Read from MH i2c: E2 [10:15:38]MH_I2C_Read... [10:15:38]Read from MH i2c: E2 03 00 [10:15:38]MH_I2C_Read... [10:15:38]Read from MH i2c: E2 03 00 3D C1 00 90 00 72 [10:15:38]RAPDU: 90 00 [10:15:38]wFMCommunicate OK [10:15:38]wFMCommunicate request_size=255 [10:15:38]MH_SAM_APDU [10:15:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 61 00 00 00 F4 03 04 00 52 D8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 84 0E 01 00 35 04 06 00 61 42 58 3E [10:15:38]Write to MH i2c: E2 02 01 3E C1 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 61 00 00 00 F4 03 04 00 52 D8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 84 0E 01 00 35 04 06 00 61 42 58 3E 00 00 8F [10:15:38]Write i2c OK [10:15:38]MH_I2C_Read... [10:15:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:38]Read from MH i2c: E2 [10:15:38]MH_I2C_Read... [10:15:38]Read from MH i2c: E2 03 00 [10:15:38]MH_I2C_Read... [10:15:38]Read from MH i2c: E2 03 00 3E C1 00 90 00 73 [10:15:38]RAPDU: 90 00 [10:15:38]wFMCommunicate OK [10:15:38]wFMCommunicate request_size=7 [10:15:38]MH_SAM_APDU [10:15:38]CAPDU: 80 0D 02 02 02 18 B4 [10:15:38]Write to MH i2c: E2 0A 00 3F C1 80 0D 02 02 02 00 18 B4 00 00 4A [10:15:38]Write i2c OK [10:15:38]MH_I2C_Read... [10:15:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:38]Read from MH i2c: E2 [10:15:38]MH_I2C_Read... [10:15:38]Read from MH i2c: E2 03 00 [10:15:38]MH_I2C_Read... [10:15:38]Read from MH i2c: E2 03 00 3F C1 00 90 00 74 [10:15:38]RAPDU: 90 00 [10:15:38]wFMCommunicate OK [10:15:38]wFMCommunicate request_size=4 [10:15:38]MH_SAM_APDU [10:15:38]CAPDU: 80 0D 03 02 [10:15:38]Write to MH i2c: E2 08 00 40 C1 80 0D 03 02 00 00 00 00 7C [10:15:38]Write i2c OK [10:15:38]MH_I2C_Read... [10:15:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:38]Read from MH i2c: E2 [10:15:38]MH_I2C_Read... [10:15:38]Read from MH i2c: E2 0B 00 [10:15:38]MH_I2C_Read... [10:15:38]Read from MH i2c: E2 0B 00 40 C1 00 73 5B 9F 00 F5 A6 02 BA 90 00 41 [10:15:38]RAPDU: 73 5B 9F 00 F5 A6 02 BA 90 00 [10:15:38]wFMCommunicate OK [10:15:38]SAM_PROTO_SignData done [10:15:38]FM_MakeSignedData done [10:15:38]CreateOFDProtocolMessage [10:15:38]wFMCommunicate request_size=4 [10:15:38]MH_SAM_APDU [10:15:38]CAPDU: 80 11 00 00 [10:15:38]Write to MH i2c: E2 08 00 41 C1 80 11 00 00 00 00 00 00 7C [10:15:38]Write i2c OK [10:15:38]MH_I2C_Read... [10:15:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:38]Read from MH i2c: E2 [10:15:38]MH_I2C_Read... [10:15:38]Read from MH i2c: E2 17 00 [10:15:38]MH_I2C_Read... [10:15:38]Read from MH i2c: E2 17 00 41 C1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CE [10:15:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:15:38]wFMCommunicate OK [10:15:38]CreateOFDProtocolMessage done [10:15:38]OFDSenderStorePacket 69252 [10:15:38]StoreOFDPacket docnum=69252 [10:15:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 86 B7 04 01 8E EE 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 61 00 00 00 F4 03 04 00 52 D8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 84 0E 01 00 35 04 06 00 61 42 58 3E 18 B4 73 5B 9F 00 F5 A6 02 BA [10:15:38]CheckFolder [10:15:38]dirname=/storage/ofd_packets [10:15:38]CheckFolder done [10:15:38]ProducePacketName [10:15:38]name=ofd_packets/00069252 [10:15:38]NVStorageSaveData ofd_packets/00069252 [10:15:38]File name is /storage/ofd_packets/00069252 [10:15:38]Write 298 bytes [10:15:38]NVStorageSaveData done [10:15:38]OFDSenderStorePacket done [10:15:38]KKMCreateOFDPacket done [10:15:38]NVStorageSaveData kkm_last_timestamp [10:15:38]File name is /storage/kkm_last_timestamp [10:15:38]Write 4 bytes [10:15:38]NVStorageSaveData done [10:15:38]ExternCall_PrintAddStr [10:15:38]wPrintStart [10:15:38]Write to MH i2c: 01 00 00 42 C1 03 [10:15:38]OFD Sender: Processing packet 69252 [packets to send 18, broken 17] [10:15:38]ProducePacketName [10:15:38]name=ofd_packets/00069252 [10:15:38]OFD Sender: To server: pG, [10:15:38]CommunicateWithHost lk.salyk.kg:30040 [10:15:38]ConnectInit lk.salyk.kg [10:15:38]Write i2c OK [10:15:38]MH_I2C_Read... [10:15:38]Read from MH i2c: 01 [10:15:38]MH_I2C_Read... [10:15:38]Read from MH i2c: 01 07 00 [10:15:38]MH_I2C_Read... [10:15:38]Read from MH i2c: 01 07 00 42 C1 00 00 00 00 00 FF 0F 18 [10:15:38]RasterBufferAndPrint [10:15:38]line Счет N : (1)2884965 [10:15:38]line ИНН: 02508201610067 [10:15:38]line Контрольно-Кассовый Чек [10:15:38]line ПРОДАЖА [10:15:38]line ТРК (МРК, ГНК) : 51 [10:15:38]line Товар: 2710194210 [10:15:38]line ДТ-К-5 [10:15:38]line 6.570 * 76.20 [10:15:38]line = 500.63 [10:15:38]line НДС 12% НСП 1% [10:15:38]line > о реализуемом товаре [10:15:38]line ИТОГО: 500.63 [10:15:38]line НСП 1% : 4.43 [10:15:38]line НДС 12% : 53.16 [10:15:38]line Наличными: 0.00 [10:15:38]line Безнал.: 500.63 [10:15:38]line Место: АЗС № 85 "Партнер Нефть" [10:15:38]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:15:38]line СНО: Общий режим [10:15:38]line Чек 97 20.10.2024 10:15 [10:15:38]line Смена: 193 ФФД: 1.0 [10:15:38]line ЗНМ: 0300000167 [10:15:38]line РНМ: 0000000000156251 [10:15:38]line Версия ККМ: v1.0 [10:15:38]line Платежная система: Mbank [10:15:38]line ФМ: 0000000000963346 [10:15:38]line ФД: 69252 [10:15:38]line ФПД: 106937576200372 [10:15:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101546&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69252&fm=106937576200372&tin=02508201610067®Number=0000000000156251&sum=50063 [10:15:38]Connected sock=10 [10:15:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 86 B7 04 01 8E EE 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 61 00 00 00 F4 written 0, free lines is 4095 [10:15:39]03 04 00 52 D8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 84 0E 01 00 35 04 06 00 61 42 58 3E 18 B4 73 5B 9F 00 F5 A6 02 BA [10:15:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 FD 99 47 00 97 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 84 0E 01 00 F4 03 04 00 F9 81 14 67 B6 04 01 00 00 C5 0D 7E BE 82 65 18 5A [10:15:39]CommunicateWithHost err = 0 [10:15:39]CheckOFDResponse [10:15:39]1017 (14) - 77093643461234 [10:15:39]1041 (16) - 0000000000963346 [10:15:39]1040 (4) - 69252 [10:15:39]1012 (4) - 20.10.2024 04:07 [10:15:39]1206 (1) - 0 [10:15:39]OFD Sender: Remove packet 69252 [10:15:39]ProducePacketName [10:15:39]name=ofd_packets/00069252 [10:15:39]NVStorageDeleteData [10:15:39]Write to MH i2c: 01 00 00 6B C1 2C [10:15:39]Write i2c OK [10:15:39]MH_I2C_Read... [10:15:39]Read from MH i2c: 01 [10:15:39]MH_I2C_Read... [10:15:39]Read from MH i2c: 01 07 00 [10:15:39]MH_I2C_Read... [10:15:39]Read from MH i2c: 01 07 00 6B C1 00 00 00 00 00 11 0D 51 [10:15:39]RasterBufferAndPrint [10:15:39]line [10:15:39]line [10:15:39]line [10:15:39]line [10:15:39]line [10:15:39]written 0, free lines is 3360 [10:15:39]MH_Cut [10:15:39]Write to MH i2c: D1 01 00 72 C1 01 05 [10:15:39]Write i2c OK [10:15:39]MH_I2C_Read... [10:15:39]Read from MH i2c: D1 [10:15:39]MH_I2C_Read... [10:15:39]Read from MH i2c: D1 01 00 [10:15:39]MH_I2C_Read... [10:15:39]Read from MH i2c: D1 01 00 72 C1 00 04 [10:15:39]Write to MH i2c: 01 00 00 73 C1 34 [10:15:39]Write i2c OK [10:15:39]MH_I2C_Read... [10:15:39]OFD Sender: No OFD packet to send [10:15:40]*** Cut start [10:15:40]*** Partial cut [10:15:40]*** CUTSNS_PIN = 1 [10:15:40]*** CUTSNS_PIN = 0 [10:15:40]*** Brake cut motor [10:15:40]Read from MH i2c: 01 [10:15:40]MH_I2C_Read... [10:15:40]*** Stop cut motor [10:15:40]*** Cut end [10:15:40]Read from MH i2c: 01 07 00 [10:15:40]MH_I2C_Read... [10:15:40]Read from MH i2c: 01 07 00 73 C1 00 00 00 00 00 FF 0F 49 [10:15:40]process_action close_receipt done [10:15:40]requested_data is exist [10:15:40]produce_requested_data [10:15:40]requested_item fm.sn is exist - process it [10:15:40]wFMCommunicate request_size=4 [10:15:40]MH_SAM_APDU [10:15:40]CAPDU: 80 11 00 00 [10:15:40]Write to MH i2c: E2 08 00 74 C1 80 11 00 00 00 00 00 00 AF [10:15:40]Write i2c OK [10:15:40]MH_I2C_Read... [10:15:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:40]Read from MH i2c: E2 [10:15:40]MH_I2C_Read... [10:15:40]Read from MH i2c: E2 17 00 [10:15:40]MH_I2C_Read... [10:15:40]Read from MH i2c: E2 17 00 74 C1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 01 [10:15:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:15:40]wFMCommunicate OK [10:15:40]requested_item fd.num is exist - process it [10:15:40]SAM_PROTO_GetFieldsCounters [10:15:40]wFMCommunicate request_size=4 [10:15:40]MH_SAM_APDU [10:15:40]CAPDU: 80 13 00 00 [10:15:40]Write to MH i2c: E2 08 00 75 C1 80 13 00 00 00 00 00 00 B2 [10:15:40]Write i2c OK [10:15:40]MH_I2C_Read... [10:15:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:40]Read from MH i2c: E2 [10:15:40]MH_I2C_Read... [10:15:40]Read from MH i2c: E2 62 00 [10:15:41]MH_I2C_Read... [10:15:41]Read from MH i2c: E2 62 00 75 C1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 84 0E 01 00 0E 04 04 00 C1 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 44 [10:15:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 84 0E 01 00 0E 04 04 00 C1 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 [10:15:41]wFMCommunicate OK [10:15:41]SAM_PROTO_GetFieldsCounters done [10:15:41]requested_item shift.num is exist - process it [10:15:41]requested_item shift.opened is exist - process it [10:15:41]req_shift_opened [10:15:41]FM_GetShiftState [10:15:41]SAM_PROTO_GetShiftState [10:15:41]wFMCommunicate request_size=4 [10:15:41]MH_SAM_APDU [10:15:41]CAPDU: 80 13 01 00 [10:15:41]Write to MH i2c: E2 08 00 76 C1 80 13 01 00 00 00 00 00 B4 [10:15:41]Write i2c OK [10:15:41]MH_I2C_Read... [10:15:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:41]Read from MH i2c: E2 [10:15:41]MH_I2C_Read... [10:15:41]Read from MH i2c: E2 0E 00 [10:15:41]MH_I2C_Read... [10:15:41]Read from MH i2c: E2 0E 00 76 C1 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 BA [10:15:41]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:15:41]wFMCommunicate OK [10:15:41]SAM_PROTO_GetShiftState done [10:15:41]FM_GetShiftState done [10:15:41]req_shift_opened done [10:15:41]requested_item shift.open_date is exist - process it [10:15:41]req_shift_open_date [10:15:41]req_shift_open_date done [10:15:41]produce_requested_data done [10:15:41]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69252,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [10:15:41]process_action_free close_receipt [10:15:41]json_value_free [10:15:41]json_value_free done [10:15:41]process_json_proto returns [10:15:41]Send response to host [10:15:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69252,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [10:15:41]free response buf [10:15:41]execute_script done [10:15:41]execute_script returns [10:15:41]free content buf [10:15:41]Sock 9.Close socket [10:15:41]Sock 9.Thread stoped [10:15:44]OFD Sender: No OFD packet to send [10:15:49]OFD Sender: No OFD packet to send [10:15:54]OFD Sender: No OFD packet to send [10:15:59]OFD Sender: No OFD packet to send [10:16:04]OFD Sender: No OFD packet to send [10:16:09]OFD Sender: No OFD packet to send [10:16:14]OFD Sender: No OFD packet to send [10:16:19]OFD Sender: No OFD packet to send [10:16:24]OFD Sender: No OFD packet to send [10:16:27]accept exits with 8 [10:16:27]New connection [10:16:27]New thread 3067260260 created [10:16:27]Thread 3067116900 joined [10:16:27]Waiting for new connection... [10:16:27] Sock 8.Parse request [10:16:27]Sock 8.Check first char [10:16:27]Sock 8.First char is OK [10:16:27]request: POST /json_proto HTTP/1.0 [10:16:27]Method: POST [10:16:27]URL: /json_proto [10:16:27]Method is POST - this is cgi request [10:16:27]url: /json_proto [10:16:27]query_string will be loaded in cgi processing [10:16:27]execute_cgi json_proto POST (null) [10:16:27]execute_cgi path=json_proto method=POST [10:16:27]POST find Content-Length [10:16:27]Host: 172.17.50.3:8080 [10:16:27]Content-Length: 678 [10:16:27]Content-Type: application/json [10:16:27] [10:16:27]POST finish read [10:16:27]Found Content-Length = 678 [10:16:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:27]execute_script... [10:16: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)2884967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:27]POST & json_proto [10:16:27]process_json_proto [10:16:27]json parsed OK: [10:16:27]protocol is kg_v1.0 [10:16:27]action value=close_receipt [10:16:27]process_action close_receipt [10:16:27]cmd_close_receipt [10:16:27]MH_GetDate [10:16:27]Write to MH i2c: F0 00 00 77 C1 27 [10:16:27]Write i2c OK [10:16:27]MH_I2C_Read... [10:16:27]Read from MH i2c: F0 [10:16:27]MH_I2C_Read... [10:16:27]Read from MH i2c: F0 09 00 [10:16:27]MH_I2C_Read... [10:16:27]Read from MH i2c: F0 09 00 77 C1 00 85 D8 14 67 6B 98 1E 66 8F [10:16:27]GetLastDocTimeStamp 1729419346 [10:16:27]current date 1729419397 [10:16:27]FM_GetShiftState [10:16:27]SAM_PROTO_GetShiftState [10:16:27]wFMCommunicate request_size=4 [10:16:27]MH_SAM_APDU [10:16:27]CAPDU: 80 13 01 00 [10:16:27]Write to MH i2c: E2 08 00 78 C1 80 13 01 00 00 00 00 00 B6 [10:16:27]Write i2c OK [10:16:27]MH_I2C_Read... [10:16:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:27]Read from MH i2c: E2 [10:16:27]MH_I2C_Read... [10:16:27]Read from MH i2c: E2 0E 00 [10:16:27]MH_I2C_Read... [10:16:27]Read from MH i2c: E2 0E 00 78 C1 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 BC [10:16:27]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:16:27]wFMCommunicate OK [10:16:27]SAM_PROTO_GetShiftState done [10:16:27]FM_GetShiftState done [10:16:27]opened in 1729383220 [10:16:27]opened+sec_in_day 1729469620 [10:16:27]quantity*price = 50041 [10:16:27]sum+1 = 50042 [10:16:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 98 20.10.2024 10:16 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69253 ФПД: 274950319008594 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101637&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69253&fm=274950319008594&tin=02508201610067®Number=0000000000156251&sum=50000 [10:16:28]StoreToDocumentArchive [10:16:28]shift 193 fd 69253 [10:16:28]save to /storage/0193/doc_00069253 [10:16:28]save last doc name /storage/0193/doc_00069253 to /storage/kkm_last_doc_name [10:16:28]save OK [10:16:28]Clear old archive folders... [10:16:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:16:28]tlvbuf is 00549B50 [10:16:28]SAM_PROTO_ClearQueue [10:16:28]wFMCommunicate request_size=4 [10:16:28]MH_SAM_APDU [10:16:28]CAPDU: 80 09 00 00 [10:16:28]Write to MH i2c: E2 08 00 85 C1 80 09 00 00 00 00 00 00 B8 [10:16:28]Write i2c OK [10:16:28]MH_I2C_Read... [10:16:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:16:28]Read from MH i2c: E2 [10:16:28]MH_I2C_Read... [10:16:28]Read from MH i2c: E2 03 00 [10:16:28]MH_I2C_Read... [10:16:28]Read from MH i2c: E2 03 00 85 C1 00 90 00 BA [10:16:28]RAPDU: 90 00 [10:16:28]wFMCommunicate OK [10:16:28]SAM_PROTO_ClearQueue done [10:16:28]KKMCreateOFDPacket [10:16:28]OFDProtocolAddRootSTLVToBuf [10:16:28]FM_MakeSignedData [10:16:28]FM_MakeSignedData [10:16:28]SAM_PROTO_SignData [10:16:28]wFMCommunicate request_size=4 [10:16:28]MH_SAM_APDU [10:16:28]CAPDU: 80 0D 01 02 [10:16:28]Write to MH i2c: E2 08 00 86 C1 80 0D 01 02 00 00 00 00 C0 [10:16:28]Write i2c OK [10:16:28]MH_I2C_Read... [10:16:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:16:28]Read from MH i2c: E2 [10:16:28]MH_I2C_Read... [10:16:28]Read from MH i2c: E2 03 00 [10:16:28]MH_I2C_Read... [10:16:28]Read from MH i2c: E2 03 00 86 C1 00 90 00 BB [10:16:28]RAPDU: 90 00 [10:16:28]wFMCommunicate OK [10:16:28]wFMCommunicate request_size=255 [10:16:28]MH_SAM_APDU [10:16:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 85 D8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 85 0E 01 00 35 04 06 00 FA [10:16:28]Write to MH i2c: E2 02 01 87 C1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 85 D8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 85 0E 01 00 35 04 06 00 FA 00 00 D2 [10:16:28]Write i2c OK [10:16:28]MH_I2C_Read... [10:16:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:29]Read from MH i2c: E2 [10:16:29]MH_I2C_Read... [10:16:29]Read from MH i2c: E2 03 00 [10:16:29]MH_I2C_Read... [10:16:29]Read from MH i2c: E2 03 00 87 C1 00 90 00 BC [10:16:29]RAPDU: 90 00 [10:16:29]wFMCommunicate OK [10:16:29]wFMCommunicate request_size=10 [10:16:29]MH_SAM_APDU [10:16:29]CAPDU: 80 0D 02 02 05 10 DC 18 6B 52 [10:16:29]Write to MH i2c: E2 0D 00 88 C1 80 0D 02 02 05 00 10 DC 18 6B 52 00 00 8E [10:16:29]Write i2c OK [10:16:29]MH_I2C_Read... [10:16:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:29]Read from MH i2c: E2 [10:16:29]MH_I2C_Read... [10:16:29]Read from MH i2c: E2 03 00 [10:16:29]MH_I2C_Read... [10:16:29]Read from MH i2c: E2 03 00 88 C1 00 90 00 BD [10:16:29]RAPDU: 90 00 [10:16:29]wFMCommunicate OK [10:16:29]wFMCommunicate request_size=4 [10:16:29]MH_SAM_APDU [10:16:29]CAPDU: 80 0D 03 02 [10:16:29]Write to MH i2c: E2 08 00 89 C1 80 0D 03 02 00 00 00 00 C5 [10:16:29]Write i2c OK [10:16:29]MH_I2C_Read... [10:16:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:16:29]Read from MH i2c: E2 [10:16:29]MH_I2C_Read... [10:16:29]Read from MH i2c: E2 0B 00 [10:16:29]MH_I2C_Read... [10:16:29]Read from MH i2c: E2 0B 00 89 C1 00 26 09 4F 6F AC 0C 3C 12 90 00 B9 [10:16:29]RAPDU: 26 09 4F 6F AC 0C 3C 12 90 00 [10:16:29]wFMCommunicate OK [10:16:29]SAM_PROTO_SignData done [10:16:29]FM_MakeSignedData done [10:16:29]CreateOFDProtocolMessage [10:16:29]wFMCommunicate request_size=4 [10:16:29]MH_SAM_APDU [10:16:29]CAPDU: 80 11 00 00 [10:16:29]Write to MH i2c: E2 08 00 8A C1 80 11 00 00 00 00 00 00 C5 [10:16:29]Write i2c OK [10:16:29]MH_I2C_Read... [10:16:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:29]Read from MH i2c: E2 [10:16:29]MH_I2C_Read... [10:16:29]Read from MH i2c: E2 17 00 [10:16:29]MH_I2C_Read... [10:16:29]Read from MH i2c: E2 17 00 8A C1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 17 [10:16:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:16:29]wFMCommunicate OK [10:16:29]CreateOFDProtocolMessage done [10:16:29]OFDSenderStorePacket 69253 [10:16:29]StoreOFDPacket docnum=69253 [10:16:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 98 E4 07 01 0D A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 85 D8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 85 0E 01 00 35 04 06 00 FA 10 DC 18 6B 52 26 09 4F 6F AC 0C 3C 12 [10:16:29]CheckFolder [10:16:29]dirname=/storage/ofd_packets [10:16:29]CheckFolder done [10:16:29]ProducePacketName [10:16:29]name=ofd_packets/00069253 [10:16:29]NVStorageSaveData ofd_packets/00069253 [10:16:29]File name is /storage/ofd_packets/00069253 [10:16:29]Write 301 bytes [10:16:29]NVStorageSaveData done [10:16:29]OFDSenderStorePacket done [10:16:29]KKMCreateOFDPacket done [10:16:29]NVStorageSaveData kkm_last_timestamp [10:16:29]File name is /storage/kkm_last_timestamp [10:16:29]Write 4 bytes [10:16:29]NVStorageSaveData done [10:16:29]ExternCall_PrintAddStr [10:16:29]wPrintStart [10:16:29]Write to MH i2c: 01 00 00 8B C1 4C [10:16:29]Write i2c OK [10:16:29]MH_I2C_Read... [10:16:29]Read from MH i2c: 01 [10:16:29]MH_I2C_Read... [10:16:29]Read from MH i2c: 01 07 00 [10:16:29]MH_I2C_Read... [10:16:29]Read from MH i2c: 01 07 00 8B C1 00 00 00 00 00 FF 0F 61 [10:16:29]RasterBufferAndPrint [10:16:29]line Счет N : (1)2884967 [10:16:29]line ИНН: 02508201610067 [10:16:29]line Контрольно-Кассовый Чек [10:16:29]line ПРОДАЖА [10:16:29]line ТРК (МРК, ГНК) : 22 [10:16:29]line Товар: 2710124130 [10:16:29]line Аи-92-К-5 [10:16:29]line 7.480 * 66.90 [10:16:29]line = 500.41 [10:16:29]line НДС 12% НСП 1% [10:16:29]line > о реализуемом товаре [10:16:29]line ОКРУГЛЕНИЕ: -0.41 [10:16:29]line ИТОГО: 500.00 [10:16:29]line Внесено: 500.00 [10:16:29]line СДАЧА: 0.00 [10:16:29]line НСП 1% : 4.43 [10:16:29]line НДС 12% : 53.14 [10:16:29]line Наличными: 500.00 [10:16:29]line Безнал.: 0.00 [10:16:29]line Место: АЗС № 85 "Партнер Нефть" [10:16:29]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:16:29]line СНО: Общий режим [10:16:29]line Чек 98 20.10.2024 10:16 [10:16:29]line Смена: 193 ФФД: 1.0 [10:16:29]line ЗНМ: 0300000167 [10:16:29]line РНМ: 0000000000156251 [10:16:29]line Версия ККМ: v1.0 [10:16:29]line ФМ: 0000000000963346 [10:16:29]line ФД: 69253 [10:16:29]line ФПД: 274950319008594 [10:16:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101637&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69253&fm=274950319008594&tin=02508201610067®Number=0000000000156251&sum=50000 [10:16:29]OFD Sender: Processing packet 69253 [packets to send 18, broken 17] [10:16:29]ProducePacketName [10:16:29]name=ofd_packets/00069253 [10:16:29]OFD Sender: To server: pG, [10:16:29]CommunicateWithHost lk.salyk.kg:30040 [10:16:29]ConnectInit lk.salyk.kg [10:16:29]written 0, free lines is 4095 [10:16:29]Connected sock=10 [10:16:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 98 E4 07 01 0D A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 85 D8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 85 0E 01 00 35 04 06 00 FA 10 DC 18 6B 52 26 09 4F 6F AC 0C 3C 12 [10:16:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 FB FF 47 00 CC 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 85 0E 01 00 F4 03 04 00 2C 82 14 67 B6 04 01 00 00 DF B2 F7 CC A8 53 F6 14 [10:16:29]CommunicateWithHost err = 0 [10:16:29]CheckOFDResponse [10:16:29]1017 (14) - 77093643461234 [10:16:29]1041 (16) - 0000000000963346 [10:16:29]1040 (4) - 69253 [10:16:29]1012 (4) - 20.10.2024 04:08 [10:16:29]1206 (1) - 0 [10:16:29]OFD Sender: Remove packet 69253 [10:16:29]ProducePacketName [10:16:29]name=ofd_packets/00069253 [10:16:29]NVStorageDeleteData [10:16:29]Write to MH i2c: 01 00 00 B6 C1 77 [10:16:29]Write i2c OK [10:16:29]MH_I2C_Read... [10:16:29]Read from MH i2c: 01 [10:16:29]MH_I2C_Read... [10:16:29]Read from MH i2c: 01 07 00 [10:16:29]MH_I2C_Read... [10:16:29]Read from MH i2c: 01 07 00 B6 C1 00 00 00 00 00 F9 0C 83 [10:16:29]RasterBufferAndPrint [10:16:29]line [10:16:29]line [10:16:29]line [10:16:29]line [10:16:29]line [10:16:29]written 0, free lines is 3327 [10:16:29]MH_Cut [10:16:29]Write to MH i2c: D1 01 00 BD C1 01 50 [10:16:29]Write i2c OK [10:16:29]MH_I2C_Read... [10:16:29]Read from MH i2c: D1 [10:16:29]MH_I2C_Read... [10:16:29]Read from MH i2c: D1 01 00 [10:16:29]MH_I2C_Read... [10:16:29]Read from MH i2c: D1 01 00 BD C1 00 4F [10:16:29]Write to MH i2c: 01 00 00 BE C1 7F [10:16:29]Write i2c OK [10:16:29]MH_I2C_Read... [10:16:30]OFD Sender: No OFD packet to send [10:16:30]*** Cut start [10:16:30]*** Partial cut [10:16:30]*** CUTSNS_PIN = 1 [10:16:30]*** CUTSNS_PIN = 0 [10:16:30]*** Brake cut motor [10:16:31]Read from MH i2c: 01 [10:16:31]MH_I2C_Read... [10:16:31]*** Stop cut motor [10:16:31]*** Cut end [10:16:31]Read from MH i2c: 01 07 00 [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: 01 07 00 BE C1 00 00 00 00 00 FF 0F 94 [10:16:31]process_action close_receipt done [10:16:31]requested_data is exist [10:16:31]produce_requested_data [10:16:31]requested_item fm.sn is exist - process it [10:16:31]wFMCommunicate request_size=4 [10:16:31]MH_SAM_APDU [10:16:31]CAPDU: 80 11 00 00 [10:16:31]Write to MH i2c: E2 08 00 BF C1 80 11 00 00 00 00 00 00 FA [10:16:31]Write i2c OK [10:16:31]MH_I2C_Read... [10:16:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:31]Read from MH i2c: E2 [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: E2 17 00 [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: E2 17 00 BF C1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4C [10:16:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:16:31]wFMCommunicate OK [10:16:31]requested_item fd.num is exist - process it [10:16:31]SAM_PROTO_GetFieldsCounters [10:16:31]wFMCommunicate request_size=4 [10:16:31]MH_SAM_APDU [10:16:31]CAPDU: 80 13 00 00 [10:16:31]Write to MH i2c: E2 08 00 C0 C1 80 13 00 00 00 00 00 00 FD [10:16:31]Write i2c OK [10:16:31]MH_I2C_Read... [10:16:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:31]Read from MH i2c: E2 [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: E2 62 00 [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: E2 62 00 C0 C1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 85 0E 01 00 0E 04 04 00 C1 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 93 [10:16:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 85 0E 01 00 0E 04 04 00 C1 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 [10:16:31]wFMCommunicate OK [10:16:31]SAM_PROTO_GetFieldsCounters done [10:16:31]requested_item shift.num is exist - process it [10:16:31]requested_item shift.opened is exist - process it [10:16:31]req_shift_opened [10:16:31]FM_GetShiftState [10:16:31]SAM_PROTO_GetShiftState [10:16:31]wFMCommunicate request_size=4 [10:16:31]MH_SAM_APDU [10:16:31]CAPDU: 80 13 01 00 [10:16:31]Write to MH i2c: E2 08 00 C1 C1 80 13 01 00 00 00 00 00 FF [10:16:31]Write i2c OK [10:16:31]MH_I2C_Read... [10:16:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:31]Read from MH i2c: E2 [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: E2 0E 00 [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: E2 0E 00 C1 C1 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 05 [10:16:31]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:16:31]wFMCommunicate OK [10:16:31]SAM_PROTO_GetShiftState done [10:16:31]FM_GetShiftState done [10:16:31]req_shift_opened done [10:16:31]requested_item shift.open_date is exist - process it [10:16:31]req_shift_open_date [10:16:31]req_shift_open_date done [10:16:31]produce_requested_data done [10:16:31]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69253,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [10:16:31]process_action_free close_receipt [10:16:31]json_value_free [10:16:31]json_value_free done [10:16:31]process_json_proto returns [10:16:31]Send response to host [10:16:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69253,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [10:16:31]free response buf [10:16:31]execute_script done [10:16:31]execute_script returns [10:16:31]free content buf [10:16:31]Sock 8.Close socket [10:16:31]Sock 8.Thread stoped [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:45]OFD Sender: No OFD packet to send [10:17:50]OFD Sender: No OFD packet to send [10:17:55]OFD Sender: No OFD packet to send [10:18:00]OFD Sender: No OFD packet to send [10:18:05]OFD Sender: No OFD packet to send [10:18:10]OFD Sender: No OFD packet to send [10:18:15]OFD Sender: No OFD packet to send [10:18:20]OFD Sender: No OFD packet to send [10:18:25]OFD Sender: No OFD packet to send [10:18:27]accept exits with 9 [10:18:27]New connection [10:18:27]New thread 3067116900 created [10:18:27]Thread 3067260260 joined [10:18:27]Waiting for new connection... [10:18:27] Sock 9.Parse request [10:18:27]Sock 9.Check first char [10:18:27]Sock 9.First char is OK [10:18:27]request: POST /json_proto HTTP/1.0 [10:18:27]Method: POST [10:18:27]URL: /json_proto [10:18:27]Method is POST - this is cgi request [10:18:27]url: /json_proto [10:18:27]query_string will be loaded in cgi processing [10:18:27]execute_cgi json_proto POST (null) [10:18:27]execute_cgi path=json_proto method=POST [10:18:27]POST find Content-Length [10:18:27]Host: 172.17.50.3:8080 [10:18:27]Content-Length: 682 [10:18:27]Content-Type: application/json [10:18:27] [10:18:27]POST finish read [10:18:27]Found Content-Length = 682 [10:18:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:27]execute_script... [10:18: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)2884968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:27]POST & json_proto [10:18:27]process_json_proto [10:18:27]json parsed OK: [10:18:27]protocol is kg_v1.0 [10:18:27]action value=close_receipt [10:18:27]process_action close_receipt [10:18:27]cmd_close_receipt [10:18:27]MH_GetDate [10:18:27]Write to MH i2c: F0 00 00 C2 C1 72 [10:18:27]Write i2c OK [10:18:27]MH_I2C_Read... [10:18:27]Read from MH i2c: F0 [10:18:27]MH_I2C_Read... [10:18:27]Read from MH i2c: F0 09 00 [10:18:27]MH_I2C_Read... [10:18:27]Read from MH i2c: F0 09 00 C2 C1 00 FD D8 14 67 6B 98 1E 66 52 [10:18:27]GetLastDocTimeStamp 1729419397 [10:18:27]current date 1729419517 [10:18:27]FM_GetShiftState [10:18:27]SAM_PROTO_GetShiftState [10:18:27]wFMCommunicate request_size=4 [10:18:27]MH_SAM_APDU [10:18:27]CAPDU: 80 13 01 00 [10:18:27]Write to MH i2c: E2 08 00 C3 C1 80 13 01 00 00 00 00 00 01 [10:18:27]Write i2c OK [10:18:27]MH_I2C_Read... [10:18:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:27]Read from MH i2c: E2 [10:18:27]MH_I2C_Read... [10:18:27]Read from MH i2c: E2 0E 00 [10:18:27]MH_I2C_Read... [10:18:27]Read from MH i2c: E2 0E 00 C3 C1 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 07 [10:18:27]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:18:27]wFMCommunicate OK [10:18:27]SAM_PROTO_GetShiftState done [10:18:27]FM_GetShiftState done [10:18:27]opened in 1729383220 [10:18:27]opened+sec_in_day 1729469620 [10:18:27]quantity*price = 50025 [10:18:27]sum+1 = 50026 [10:18:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 99 20.10.2024 10:18 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69254 ФПД: 130426494380485 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101837&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69254&fm=130426494380485&tin=02508201610067®Number=0000000000156251&sum=50000 [10:18:28]StoreToDocumentArchive [10:18:28]shift 193 fd 69254 [10:18:28]save to /storage/0193/doc_00069254 [10:18:28]save last doc name /storage/0193/doc_00069254 to /storage/kkm_last_doc_name [10:18:28]save OK [10:18:28]Clear old archive folders... [10:18:28]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:18:28]tlvbuf is 007FAA80 [10:18:28]SAM_PROTO_ClearQueue [10:18:28]wFMCommunicate request_size=4 [10:18:28]MH_SAM_APDU [10:18:28]CAPDU: 80 09 00 00 [10:18:28]Write to MH i2c: E2 08 00 D0 C1 80 09 00 00 00 00 00 00 03 [10:18:28]Write i2c OK [10:18:28]MH_I2C_Read... [10:18:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:18:28]Read from MH i2c: E2 [10:18:28]MH_I2C_Read... [10:18:28]Read from MH i2c: E2 03 00 [10:18:28]MH_I2C_Read... [10:18:28]Read from MH i2c: E2 03 00 D0 C1 00 90 00 05 [10:18:28]RAPDU: 90 00 [10:18:28]wFMCommunicate OK [10:18:28]SAM_PROTO_ClearQueue done [10:18:28]KKMCreateOFDPacket [10:18:28]OFDProtocolAddRootSTLVToBuf [10:18:28]FM_MakeSignedData [10:18:28]FM_MakeSignedData [10:18:28]SAM_PROTO_SignData [10:18:28]wFMCommunicate request_size=4 [10:18:28]MH_SAM_APDU [10:18:28]CAPDU: 80 0D 01 02 [10:18:28]Write to MH i2c: E2 08 00 D1 C1 80 0D 01 02 00 00 00 00 0B [10:18:28]Write i2c OK [10:18:28]MH_I2C_Read... [10:18:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:18:28]Read from MH i2c: E2 [10:18:28]MH_I2C_Read... [10:18:28]Read from MH i2c: E2 03 00 [10:18:28]MH_I2C_Read... [10:18:28]Read from MH i2c: E2 03 00 D1 C1 00 90 00 06 [10:18:28]RAPDU: 90 00 [10:18:28]wFMCommunicate OK [10:18:28]wFMCommunicate request_size=255 [10:18:28]MH_SAM_APDU [10:18:28]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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 FD D8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 86 0E 01 00 35 04 06 00 76 9F [10:18:28]Write to MH i2c: E2 02 01 D2 C1 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 FD D8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 86 0E 01 00 35 04 06 00 76 9F 00 00 6C [10:18:28]Write i2c OK [10:18:28]MH_I2C_Read... [10:18:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:29]Read from MH i2c: E2 [10:18:29]MH_I2C_Read... [10:18:29]Read from MH i2c: E2 03 00 [10:18:29]MH_I2C_Read... [10:18:29]Read from MH i2c: E2 03 00 D2 C1 00 90 00 07 [10:18:29]RAPDU: 90 00 [10:18:29]wFMCommunicate OK [10:18:29]wFMCommunicate request_size=9 [10:18:29]MH_SAM_APDU [10:18:29]CAPDU: 80 0D 02 02 04 48 DD E9 C5 [10:18:29]Write to MH i2c: E2 0C 00 D3 C1 80 0D 02 02 04 00 48 DD E9 C5 00 00 E9 [10:18:29]Write i2c OK [10:18:29]MH_I2C_Read... [10:18:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:29]Read from MH i2c: E2 [10:18:29]MH_I2C_Read... [10:18:29]Read from MH i2c: E2 03 00 [10:18:29]MH_I2C_Read... [10:18:29]Read from MH i2c: E2 03 00 D3 C1 00 90 00 08 [10:18:29]RAPDU: 90 00 [10:18:29]wFMCommunicate OK [10:18:29]wFMCommunicate request_size=4 [10:18:29]MH_SAM_APDU [10:18:29]CAPDU: 80 0D 03 02 [10:18:29]Write to MH i2c: E2 08 00 D4 C1 80 0D 03 02 00 00 00 00 10 [10:18:29]Write i2c OK [10:18:29]MH_I2C_Read... [10:18:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:18:29]Read from MH i2c: E2 [10:18:29]MH_I2C_Read... [10:18:29]Read from MH i2c: E2 0B 00 [10:18:29]MH_I2C_Read... [10:18:29]Read from MH i2c: E2 0B 00 D4 C1 00 0D 33 8D 90 0F 7C 2B E0 90 00 04 [10:18:29]RAPDU: 0D 33 8D 90 0F 7C 2B E0 90 00 [10:18:29]wFMCommunicate OK [10:18:29]SAM_PROTO_SignData done [10:18:29]FM_MakeSignedData done [10:18:29]CreateOFDProtocolMessage [10:18:29]wFMCommunicate request_size=4 [10:18:29]MH_SAM_APDU [10:18:29]CAPDU: 80 11 00 00 [10:18:29]Write to MH i2c: E2 08 00 D5 C1 80 11 00 00 00 00 00 00 10 [10:18:29]Write i2c OK [10:18:29]MH_I2C_Read... [10:18:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:29]Read from MH i2c: E2 [10:18:29]MH_I2C_Read... [10:18:29]Read from MH i2c: E2 17 00 [10:18:29]MH_I2C_Read... [10:18:29]Read from MH i2c: E2 17 00 D5 C1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 62 [10:18:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:18:29]wFMCommunicate OK [10:18:29]CreateOFDProtocolMessage done [10:18:29]OFDSenderStorePacket 69254 [10:18:29]StoreOFDPacket docnum=69254 [10:18:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 A7 15 06 01 6C A2 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 FD D8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 86 0E 01 00 35 04 06 00 76 9F 48 DD E9 C5 0D 33 8D 90 0F 7C 2B E0 [10:18:29]CheckFolder [10:18:29]dirname=/storage/ofd_packets [10:18:29]CheckFolder done [10:18:29]ProducePacketName [10:18:29]name=ofd_packets/00069254 [10:18:29]NVStorageSaveData ofd_packets/00069254 [10:18:29]File name is /storage/ofd_packets/00069254 [10:18:29]Write 300 bytes [10:18:29]NVStorageSaveData done [10:18:29]OFDSenderStorePacket done [10:18:29]KKMCreateOFDPacket done [10:18:29]NVStorageSaveData kkm_last_timestamp [10:18:29]File name is /storage/kkm_last_timestamp [10:18:29]Write 4 bytes [10:18:29]NVStorageSaveData done [10:18:29]ExternCall_PrintAddStr [10:18:29]wPrintStart [10:18:29]Write to MH i2c: 01 00 00 D6 C1 97 [10:18:29]Write i2c OK [10:18:29]MH_I2C_Read... [10:18:29]Read from MH i2c: 01 [10:18:29]MH_I2C_Read... [10:18:29]Read from MH i2c: 01 07 00 [10:18:29]MH_I2C_Read... [10:18:29]Read from MH i2c: 01 07 00 D6 C1 00 00 00 00 00 FF 0F AC [10:18:29]RasterBufferAndPrint [10:18:29]line Счет N : (1)2884968 [10:18:29]line ИНН: 02508201610067 [10:18:29]line Контрольно-Кассовый Чек [10:18:29]line ПРОДАЖА [10:18:29]line ТРК (МРК, ГНК) : 71 [10:18:29]line Товар: 2711129700 [10:18:29]line ГАЗ-К-3 [10:18:29]line 12.860 * 38.90 [10:18:29]line = 500.25 [10:18:29]line НДС 12% НСП 1% [10:18:29]line > о реализуемом товаре [10:18:29]line ОКРУГЛЕНИЕ: -0.25 [10:18:29]line ИТОГО: 500.00 [10:18:29]line Внесено: 500.00 [10:18:29]line СДАЧА: 0.00 [10:18:29]line НСП 1% : 4.43 [10:18:29]line НДС 12% : 53.12 [10:18:29]line Наличными: 500.00 [10:18:29]line Безнал.: 0.00 [10:18:29]line Место: АЗС № 85 "Партнер Нефть" [10:18:29]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:18:29]line СНО: Общий режим [10:18:29]line Чек 99 20.10.2024 10:18 [10:18:29]line Смена: 193 ФФД: 1.0 [10:18:29]line ЗНМ: 0300000167 [10:18:29]line РНМ: 0000000000156251 [10:18:29]line Версия ККМ: v1.0 [10:18:29]line ФМ: 0000000000963346 [10:18:29]line ФД: 69254 [10:18:29]line ФПД: 130426494380485 [10:18:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T101837&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69254&fm=130426494380485&tin=02508201610067®Number=0000000000156251&sum=50000 [10:18:29]OFD Sender: Processing packet 69254 [packets to send 18, broken 17] [10:18:29]ProducePacketName [10:18:29]name=ofd_packets/00069254 [10:18:29]OFD Sender: To server: pG, [10:18:29]CommunicateWithHost lk.salyk.kg:30040 [10:18:29]ConnectInit lk.salyk.kg [10:18:29]written 0, free lines is 4095 [10:18:29]Connected sock=10 [10:18:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 A7 15 06 01 6C A2 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 FD D8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 86 0E 01 00 35 04 06 00 76 9F 48 DD E9 C5 0D 33 8D 90 0F 7C 2B E0 [10:18:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 97 59 47 00 60 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 86 0E 01 00 F4 03 04 00 A4 82 14 67 B6 04 01 00 00 4F 77 28 93 75 0B BC A1 [10:18:29]CommunicateWithHost err = 0 [10:18:29]CheckOFDResponse [10:18:29]1017 (14) - 77093643461234 [10:18:29]1041 (16) - 0000000000963346 [10:18:29]1040 (4) - 69254 [10:18:29]1012 (4) - 20.10.2024 04:10 [10:18:29]1206 (1) - 0 [10:18:29]OFD Sender: Remove packet 69254 [10:18:29]ProducePacketName [10:18:29]name=ofd_packets/00069254 [10:18:29]NVStorageDeleteData [10:18:30]Write to MH i2c: 01 00 00 01 C2 C3 [10:18:30]Write i2c OK [10:18:30]MH_I2C_Read... [10:18:30]Read from MH i2c: 01 [10:18:30]MH_I2C_Read... [10:18:30]Read from MH i2c: 01 07 00 [10:18:30]MH_I2C_Read... [10:18:30]Read from MH i2c: 01 07 00 01 C2 00 00 00 00 00 F1 0C C7 [10:18:30]RasterBufferAndPrint [10:18:30]line [10:18:30]line [10:18:30]line [10:18:30]line [10:18:30]line [10:18:30]written 0, free lines is 3319 [10:18:30]MH_Cut [10:18:30]Write to MH i2c: D1 01 00 08 C2 01 9C [10:18:30]Write i2c OK [10:18:30]MH_I2C_Read... [10:18:30]Read from MH i2c: D1 [10:18:30]MH_I2C_Read... [10:18:30]Read from MH i2c: D1 01 00 [10:18:30]MH_I2C_Read... [10:18:30]Read from MH i2c: D1 01 00 08 C2 00 9B [10:18:30]Write to MH i2c: 01 00 00 09 C2 CB [10:18:30]Write i2c OK [10:18:30]MH_I2C_Read... [10:18:30]OFD Sender: No OFD packet to send [10:18:30]*** Cut start [10:18:30]*** Partial cut [10:18:30]*** CUTSNS_PIN = 1 [10:18:30]*** CUTSNS_PIN = 0 [10:18:31]*** Brake cut motor [10:18:31]Read from MH i2c: 01 [10:18:31]MH_I2C_Read... [10:18:31]*** Stop cut motor [10:18:31]*** Cut end [10:18:31]Read from MH i2c: 01 07 00 [10:18:31]MH_I2C_Read... [10:18:31]Read from MH i2c: 01 07 00 09 C2 00 00 00 00 00 FF 0F E0 [10:18:31]process_action close_receipt done [10:18:31]requested_data is exist [10:18:31]produce_requested_data [10:18:31]requested_item fm.sn is exist - process it [10:18:31]wFMCommunicate request_size=4 [10:18:31]MH_SAM_APDU [10:18:31]CAPDU: 80 11 00 00 [10:18:31]Write to MH i2c: E2 08 00 0A C2 80 11 00 00 00 00 00 00 46 [10:18:31]Write i2c OK [10:18:31]MH_I2C_Read... [10:18:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:31]Read from MH i2c: E2 [10:18:31]MH_I2C_Read... [10:18:31]Read from MH i2c: E2 17 00 [10:18:31]MH_I2C_Read... [10:18:31]Read from MH i2c: E2 17 00 0A C2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 98 [10:18:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:18:31]wFMCommunicate OK [10:18:31]requested_item fd.num is exist - process it [10:18:31]SAM_PROTO_GetFieldsCounters [10:18:31]wFMCommunicate request_size=4 [10:18:31]MH_SAM_APDU [10:18:31]CAPDU: 80 13 00 00 [10:18:31]Write to MH i2c: E2 08 00 0B C2 80 13 00 00 00 00 00 00 49 [10:18:31]Write i2c OK [10:18:31]MH_I2C_Read... [10:18:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:18:31]Read from MH i2c: E2 [10:18:31]MH_I2C_Read... [10:18:31]Read from MH i2c: E2 62 00 [10:18:31]MH_I2C_Read... [10:18:31]Read from MH i2c: E2 62 00 0B C2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 86 0E 01 00 0E 04 04 00 C1 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 E3 [10:18:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 86 0E 01 00 0E 04 04 00 C1 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 [10:18:31]wFMCommunicate OK [10:18:31]SAM_PROTO_GetFieldsCounters done [10:18:31]requested_item shift.num is exist - process it [10:18:31]requested_item shift.opened is exist - process it [10:18:31]req_shift_opened [10:18:31]FM_GetShiftState [10:18:31]SAM_PROTO_GetShiftState [10:18:31]wFMCommunicate request_size=4 [10:18:31]MH_SAM_APDU [10:18:31]CAPDU: 80 13 01 00 [10:18:31]Write to MH i2c: E2 08 00 0C C2 80 13 01 00 00 00 00 00 4B [10:18:31]Write i2c OK [10:18:31]MH_I2C_Read... [10:18:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:31]Read from MH i2c: E2 [10:18:31]MH_I2C_Read... [10:18:31]Read from MH i2c: E2 0E 00 [10:18:31]MH_I2C_Read... [10:18:31]Read from MH i2c: E2 0E 00 0C C2 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 51 [10:18:31]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:18:31]wFMCommunicate OK [10:18:31]SAM_PROTO_GetShiftState done [10:18:31]FM_GetShiftState done [10:18:31]req_shift_opened done [10:18:31]requested_item shift.open_date is exist - process it [10:18:31]req_shift_open_date [10:18:31]req_shift_open_date done [10:18:31]produce_requested_data done [10:18:31]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69254,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [10:18:31]process_action_free close_receipt [10:18:31]json_value_free [10:18:31]json_value_free done [10:18:31]process_json_proto returns [10:18:31]Send response to host [10:18:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69254,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [10:18:31]free response buf [10:18:31]execute_script done [10:18:31]execute_script returns [10:18:31]free content buf [10:18:31]Sock 9.Close socket [10:18:31]Sock 9.Thread stoped [10:18:35]OFD Sender: No OFD packet to send [10:18:40]OFD Sender: No OFD packet to send [10:18:45]OFD Sender: No OFD packet to send [10:18:50]OFD Sender: No OFD packet to send [10:18:55]OFD Sender: No OFD packet to send [10:19:00]OFD Sender: No OFD packet to send [10:19:05]OFD Sender: No OFD packet to send [10:19:10]OFD Sender: No OFD packet to send [10:19:15]OFD Sender: No OFD packet to send [10:19:20]OFD Sender: No OFD packet to send [10:19:25]OFD Sender: No OFD packet to send [10:19:30]OFD Sender: No OFD packet to send [10:19:35]OFD Sender: No OFD packet to send [10:19:40]OFD Sender: No OFD packet to send [10:19:45]OFD Sender: No OFD packet to send [10:19:50]OFD Sender: No OFD packet to send [10:19:55]OFD Sender: No OFD packet to send [10:20:00]OFD Sender: No OFD packet to send [10:20:05]OFD Sender: No OFD packet to send [10:20:10]OFD Sender: No OFD packet to send [10:20:15]OFD Sender: No OFD packet to send [10:20:20]OFD Sender: No OFD packet to send [10:20:25]OFD Sender: No OFD packet to send [10:20:30]OFD Sender: No OFD packet to send [10:20:35]OFD Sender: No OFD packet to send [10:20:40]OFD Sender: No OFD packet to send [10:20:45]OFD Sender: No OFD packet to send [10:20:50]OFD Sender: No OFD packet to send [10:20:55]OFD Sender: No OFD packet to send [10:21:00]OFD Sender: No OFD packet to send [10:21:05]OFD Sender: No OFD packet to send [10:21:10]OFD Sender: No OFD packet to send [10:21:15]OFD Sender: No OFD packet to send [10:21:20]OFD Sender: No OFD packet to send [10:21:25]OFD Sender: No OFD packet to send [10:21:30]OFD Sender: No OFD packet to send [10:21:35]OFD Sender: No OFD packet to send [10:21:40]OFD Sender: No OFD packet to send [10:21:45]OFD Sender: No OFD packet to send [10:21:50]OFD Sender: No OFD packet to send [10:21:55]OFD Sender: No OFD packet to send [10:22:00]OFD Sender: No OFD packet to send [10:22:05]OFD Sender: No OFD packet to send [10:22:10]OFD Sender: No OFD packet to send [10:22:15]OFD Sender: No OFD packet to send [10:22:20]OFD Sender: No OFD packet to send [10:22:25]OFD Sender: No OFD packet to send [10:22:30]OFD Sender: No OFD packet to send [10:22:35]OFD Sender: No OFD packet to send [10:22:40]OFD Sender: No OFD packet to send [10:22:45]OFD Sender: No OFD packet to send [10:22:50]OFD Sender: No OFD packet to send [10:22:55]OFD Sender: No OFD packet to send [10:23:00]OFD Sender: No OFD packet to send [10:23:05]OFD Sender: No OFD packet to send [10:23:10]OFD Sender: No OFD packet to send [10:23:15]OFD Sender: No OFD packet to send [10:23:20]OFD Sender: No OFD packet to send [10:23:25]OFD Sender: No OFD packet to send [10:23:30]OFD Sender: No OFD packet to send [10:23:35]OFD Sender: No OFD packet to send [10:23:40]OFD Sender: No OFD packet to send [10:23:45]OFD Sender: No OFD packet to send [10:23:50]OFD Sender: No OFD packet to send [10:23:55]OFD Sender: No OFD packet to send [10:24:00]OFD Sender: No OFD packet to send [10:24:05]accept exits with 8 [10:24:05]New connection [10:24:05]New thread 3067260260 created [10:24:05]Thread 3067116900 joined [10:24:05]Waiting for new connection... [10:24:05] Sock 8.Parse request [10:24:05]Sock 8.Check first char [10:24:05]Sock 8.First char is OK [10:24:05]request: POST /json_proto HTTP/1.0 [10:24:05]Method: POST [10:24:05]URL: /json_proto [10:24:05]Method is POST - this is cgi request [10:24:05]url: /json_proto [10:24:05]query_string will be loaded in cgi processing [10:24:05]execute_cgi json_proto POST (null) [10:24:05]execute_cgi path=json_proto method=POST [10:24:05]POST find Content-Length [10:24:05]Host: 172.17.50.3:8080 [10:24:05]Content-Length: 678 [10:24:05]Content-Type: application/json [10:24:05] [10:24:05]POST finish read [10:24:05]Found Content-Length = 678 [10:24:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "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" ] } } [10:24:05]execute_script... [10:24: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)2884970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "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" ] } } [10:24:05]POST & json_proto [10:24:05]process_json_proto [10:24:05]json parsed OK: [10:24:05]protocol is kg_v1.0 [10:24:05]action value=close_receipt [10:24:05]process_action close_receipt [10:24:05]cmd_close_receipt [10:24:05]MH_GetDate [10:24:05]Write to MH i2c: F0 00 00 0D C2 BE [10:24:05]Write i2c OK [10:24:05]MH_I2C_Read... [10:24:05]Read from MH i2c: F0 [10:24:05]MH_I2C_Read... [10:24:05]Read from MH i2c: F0 09 00 [10:24:05]MH_I2C_Read... [10:24:05]Read from MH i2c: F0 09 00 0D C2 00 4F DA 14 67 6B 98 1E 66 F2 [10:24:05]GetLastDocTimeStamp 1729419517 [10:24:05]current date 1729419855 [10:24:05]FM_GetShiftState [10:24:05]SAM_PROTO_GetShiftState [10:24:05]wFMCommunicate request_size=4 [10:24:05]MH_SAM_APDU [10:24:05]CAPDU: 80 13 01 00 [10:24:05]Write to MH i2c: E2 08 00 0E C2 80 13 01 00 00 00 00 00 4D [10:24:05]Write i2c OK [10:24:05]MH_I2C_Read... [10:24:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:05]Read from MH i2c: E2 [10:24:05]MH_I2C_Read... [10:24:05]Read from MH i2c: E2 0E 00 [10:24:05]MH_I2C_Read... [10:24:05]Read from MH i2c: E2 0E 00 0E C2 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 53 [10:24:05]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:24:05]wFMCommunicate OK [10:24:05]SAM_PROTO_GetShiftState done [10:24:05]FM_GetShiftState done [10:24:05]opened in 1729383220 [10:24:05]opened+sec_in_day 1729469620 [10:24:05]quantity*price = 50010 [10:24:05]sum+1 = 50012 [10:24:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 100 20.10.2024 10:24 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69255 ФПД: 239583983137296 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102415&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69255&fm=239583983137296&tin=02508201610067®Number=0000000000156251&sum=50000 [10:24:06]StoreToDocumentArchive [10:24:06]shift 193 fd 69255 [10:24:06]save to /storage/0193/doc_00069255 [10:24:06]save last doc name /storage/0193/doc_00069255 to /storage/kkm_last_doc_name [10:24:06]save OK [10:24:06]Clear old archive folders... [10:24:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:24:06]tlvbuf is 005D71E0 [10:24:06]SAM_PROTO_ClearQueue [10:24:06]wFMCommunicate request_size=4 [10:24:06]MH_SAM_APDU [10:24:06]CAPDU: 80 09 00 00 [10:24:06]Write to MH i2c: E2 08 00 1B C2 80 09 00 00 00 00 00 00 4F [10:24:06]Write i2c OK [10:24:06]MH_I2C_Read... [10:24:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:06]Read from MH i2c: E2 [10:24:06]MH_I2C_Read... [10:24:06]Read from MH i2c: E2 03 00 [10:24:06]MH_I2C_Read... [10:24:06]Read from MH i2c: E2 03 00 1B C2 00 90 00 51 [10:24:06]RAPDU: 90 00 [10:24:06]wFMCommunicate OK [10:24:06]SAM_PROTO_ClearQueue done [10:24:06]KKMCreateOFDPacket [10:24:06]OFDProtocolAddRootSTLVToBuf [10:24:06]FM_MakeSignedData [10:24:06]FM_MakeSignedData [10:24:06]SAM_PROTO_SignData [10:24:06]wFMCommunicate request_size=4 [10:24:06]MH_SAM_APDU [10:24:06]CAPDU: 80 0D 01 02 [10:24:06]Write to MH i2c: E2 08 00 1C C2 80 0D 01 02 00 00 00 00 57 [10:24:06]Write i2c OK [10:24:06]MH_I2C_Read... [10:24:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:06]Read from MH i2c: E2 [10:24:06]MH_I2C_Read... [10:24:06]Read from MH i2c: E2 03 00 [10:24:06]MH_I2C_Read... [10:24:06]Read from MH i2c: E2 03 00 1C C2 00 90 00 52 [10:24:06]RAPDU: 90 00 [10:24:06]wFMCommunicate OK [10:24:06]wFMCommunicate request_size=255 [10:24:06]MH_SAM_APDU [10:24: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 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 64 00 00 00 F4 03 04 00 4F DA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 87 0E 01 00 35 04 06 00 D9 [10:24:06]Write to MH i2c: E2 02 01 1D C2 80 0D 02 02 FA 00 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 64 00 00 00 F4 03 04 00 4F DA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 87 0E 01 00 35 04 06 00 D9 00 00 F0 [10:24:06]Write i2c OK [10:24:06]MH_I2C_Read... [10:24:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:06]Read from MH i2c: E2 [10:24:06]MH_I2C_Read... [10:24:06]Read from MH i2c: E2 03 00 [10:24:06]MH_I2C_Read... [10:24:06]Read from MH i2c: E2 03 00 1D C2 00 90 00 53 [10:24:06]RAPDU: 90 00 [10:24:06]wFMCommunicate OK [10:24:06]wFMCommunicate request_size=10 [10:24:06]MH_SAM_APDU [10:24:06]CAPDU: 80 0D 02 02 05 E6 7E 35 72 10 [10:24:06]Write to MH i2c: E2 0D 00 1E C2 80 0D 02 02 05 00 E6 7E 35 72 10 00 00 7F [10:24:06]Write i2c OK [10:24:06]MH_I2C_Read... [10:24:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:06]Read from MH i2c: E2 [10:24:06]MH_I2C_Read... [10:24:06]Read from MH i2c: E2 03 00 [10:24:06]MH_I2C_Read... [10:24:06]Read from MH i2c: E2 03 00 1E C2 00 90 00 54 [10:24:06]RAPDU: 90 00 [10:24:06]wFMCommunicate OK [10:24:06]wFMCommunicate request_size=4 [10:24:06]MH_SAM_APDU [10:24:06]CAPDU: 80 0D 03 02 [10:24:06]Write to MH i2c: E2 08 00 1F C2 80 0D 03 02 00 00 00 00 5C [10:24:06]Write i2c OK [10:24:06]MH_I2C_Read... [10:24:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:06]Read from MH i2c: E2 [10:24:06]MH_I2C_Read... [10:24:06]Read from MH i2c: E2 0B 00 [10:24:06]MH_I2C_Read... [10:24:06]Read from MH i2c: E2 0B 00 1F C2 00 5B 2F FB 3C D5 79 0A 9F 90 00 15 [10:24:06]RAPDU: 5B 2F FB 3C D5 79 0A 9F 90 00 [10:24:06]wFMCommunicate OK [10:24:06]SAM_PROTO_SignData done [10:24:06]FM_MakeSignedData done [10:24:06]CreateOFDProtocolMessage [10:24:06]wFMCommunicate request_size=4 [10:24:06]MH_SAM_APDU [10:24:06]CAPDU: 80 11 00 00 [10:24:06]Write to MH i2c: E2 08 00 20 C2 80 11 00 00 00 00 00 00 5C [10:24:06]Write i2c OK [10:24:06]MH_I2C_Read... [10:24:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:06]Read from MH i2c: E2 [10:24:06]MH_I2C_Read... [10:24:06]Read from MH i2c: E2 17 00 [10:24:06]MH_I2C_Read... [10:24:06]Read from MH i2c: E2 17 00 20 C2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AE [10:24:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:24:06]wFMCommunicate OK [10:24:06]CreateOFDProtocolMessage done [10:24:06]OFDSenderStorePacket 69255 [10:24:06]StoreOFDPacket docnum=69255 [10:24:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 DC 56 07 01 54 D1 5A 03 01 00 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 64 00 00 00 F4 03 04 00 4F DA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 87 0E 01 00 35 04 06 00 D9 E6 7E 35 72 10 5B 2F FB 3C D5 79 0A 9F [10:24:06]CheckFolder [10:24:06]dirname=/storage/ofd_packets [10:24:06]CheckFolder done [10:24:06]ProducePacketName [10:24:06]name=ofd_packets/00069255 [10:24:06]NVStorageSaveData ofd_packets/00069255 [10:24:06]File name is /storage/ofd_packets/00069255 [10:24:06]Write 301 bytes [10:24:06]NVStorageSaveData done [10:24:06]OFDSenderStorePacket done [10:24:06]KKMCreateOFDPacket done [10:24:06]NVStorageSaveData kkm_last_timestamp [10:24:06]File name is /storage/kkm_last_timestamp [10:24:06]Write 4 bytes [10:24:06]NVStorageSaveData done [10:24:06]ExternCall_PrintAddStr [10:24:06]wPrintStart [10:24:06]Write to MH i2c: 01 00 00 21 C2 E3 [10:24:06]Write i2c OK [10:24:06]MH_I2C_Read... [10:24:06]Read from MH i2c: 01 [10:24:06]MH_I2C_Read... [10:24:06]Read from MH i2c: 01 07 00 [10:24:06]MH_I2C_Read... [10:24:06]Read from MH i2c: 01 07 00 21 C2 00 00 00 00 00 FF 0F F8 [10:24:06]RasterBufferAndPrint [10:24:06]line Счет N : (1)2884970 [10:24:06]line ИНН: 02508201610067 [10:24:06]line Контрольно-Кассовый Чек [10:24:06]line ПРОДАЖА [10:24:06]line ТРК (МРК, ГНК) : 43 [10:24:06]line Товар: 2710124500 [10:24:06]line Аи-95-К-5 [10:24:06]line 6.740 * 74.20 [10:24:06]line = 500.11 [10:24:06]line НДС 12% НСП 1% [10:24:06]line > о реализуемом товаре [10:24:06]line ОКРУГЛЕНИЕ: -0.11 [10:24:06]line ИТОГО: 500.00 [10:24:06]line Внесено: 500.00 [10:24:06]line СДАЧА: 0.00 [10:24:06]line НСП 1% : 4.43 [10:24:06]line НДС 12% : 53.11 [10:24:06]line Наличными: 500.00 [10:24:06]line Безнал.: 0.00 [10:24:06]line Место: АЗС № 85 "Партнер Нефть" [10:24:06]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:24:06]line СНО: Общий режим [10:24:06]line Чек 100 20.10.2024 10:24 [10:24:06]line Смена: 193 ФФД: 1.0 [10:24:06]line ЗНМ: 0300000167 [10:24:06]line РНМ: 0000000000156251 [10:24:06]line Версия ККМ: v1.0 [10:24:06]line ФМ: 0000000000963346 [10:24:06]line ФД: 69255 [10:24:06]line ФПД: 239583983137296 [10:24:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102415&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69255&fm=239583983137296&tin=02508201610067®Number=0000000000156251&sum=50000 [10:24:07]OFD Sender: Processing packet 69255 [packets to send 18, broken 17] [10:24:07]ProducePacketName [10:24:07]name=ofd_packets/00069255 [10:24:07]OFD Sender: To server: pG, [10:24:07]CommunicateWithHost lk.salyk.kg:30040 [10:24:07]ConnectInit lk.salyk.kg [10:24:07]written 0, free lines is 4095 [10:24:07]Connected sock=10 [10:24:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 DC 56 07 01 54 D1 5A 03 01 00 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 64 00 00 00 F4 03 04 00 4F DA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 87 0E 01 00 35 04 06 00 D9 E6 7E 35 72 10 5B 2F FB 3C D5 79 0A 9F [10:24:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 7C CA 47 00 9D 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 87 0E 01 00 F4 03 04 00 F6 83 14 67 B6 04 01 00 00 8E 52 17 2A 20 FB 49 45 [10:24:07]CommunicateWithHost err = 0 [10:24:07]CheckOFDResponse [10:24:07]1017 (14) - 77093643461234 [10:24:07]1041 (16) - 0000000000963346 [10:24:07]1040 (4) - 69255 [10:24:07]1012 (4) - 20.10.2024 04:15 [10:24:07]1206 (1) - 0 [10:24:07]OFD Sender: Remove packet 69255 [10:24:07]ProducePacketName [10:24:07]name=ofd_packets/00069255 [10:24:07]NVStorageDeleteData [10:24:07]Write to MH i2c: 01 00 00 4C C2 0E [10:24:07]Write i2c OK [10:24:07]MH_I2C_Read... [10:24:07]Read from MH i2c: 01 [10:24:07]MH_I2C_Read... [10:24:07]Read from MH i2c: 01 07 00 [10:24:07]MH_I2C_Read... [10:24:07]Read from MH i2c: 01 07 00 4C C2 00 00 00 00 00 F7 0C 18 [10:24:07]RasterBufferAndPrint [10:24:07]line [10:24:07]line [10:24:07]line [10:24:07]line [10:24:07]line [10:24:07]written 0, free lines is 3325 [10:24:07]MH_Cut [10:24:07]Write to MH i2c: D1 01 00 53 C2 01 E7 [10:24:07]Write i2c OK [10:24:07]MH_I2C_Read... [10:24:07]Read from MH i2c: D1 [10:24:07]MH_I2C_Read... [10:24:07]Read from MH i2c: D1 01 00 [10:24:07]MH_I2C_Read... [10:24:07]Read from MH i2c: D1 01 00 53 C2 00 E6 [10:24:07]Write to MH i2c: 01 00 00 54 C2 16 [10:24:07]Write i2c OK [10:24:07]MH_I2C_Read... [10:24:08]OFD Sender: No OFD packet to send [10:24:08]*** Cut start [10:24:08]*** Partial cut [10:24:08]*** CUTSNS_PIN = 1 [10:24:08]*** CUTSNS_PIN = 0 [10:24:08]*** Brake cut motor [10:24:09]Read from MH i2c: 01 [10:24:09]MH_I2C_Read... [10:24:09]*** Stop cut motor [10:24:09]*** Cut end [10:24:09]Read from MH i2c: 01 07 00 [10:24:09]MH_I2C_Read... [10:24:09]Read from MH i2c: 01 07 00 54 C2 00 00 00 00 00 FF 0F 2B [10:24:09]process_action close_receipt done [10:24:09]requested_data is exist [10:24:09]produce_requested_data [10:24:09]requested_item fm.sn is exist - process it [10:24:09]wFMCommunicate request_size=4 [10:24:09]MH_SAM_APDU [10:24:09]CAPDU: 80 11 00 00 [10:24:09]Write to MH i2c: E2 08 00 55 C2 80 11 00 00 00 00 00 00 91 [10:24:09]Write i2c OK [10:24:09]MH_I2C_Read... [10:24:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:09]Read from MH i2c: E2 [10:24:09]MH_I2C_Read... [10:24:09]Read from MH i2c: E2 17 00 [10:24:09]MH_I2C_Read... [10:24:09]Read from MH i2c: E2 17 00 55 C2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E3 [10:24:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:24:09]wFMCommunicate OK [10:24:09]requested_item fd.num is exist - process it [10:24:09]SAM_PROTO_GetFieldsCounters [10:24:09]wFMCommunicate request_size=4 [10:24:09]MH_SAM_APDU [10:24:09]CAPDU: 80 13 00 00 [10:24:09]Write to MH i2c: E2 08 00 56 C2 80 13 00 00 00 00 00 00 94 [10:24:09]Write i2c OK [10:24:09]MH_I2C_Read... [10:24:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:09]Read from MH i2c: E2 [10:24:09]MH_I2C_Read... [10:24:09]Read from MH i2c: E2 62 00 [10:24:09]MH_I2C_Read... [10:24:09]Read from MH i2c: E2 62 00 56 C2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 87 0E 01 00 0E 04 04 00 C1 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 32 [10:24:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 87 0E 01 00 0E 04 04 00 C1 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 [10:24:09]wFMCommunicate OK [10:24:09]SAM_PROTO_GetFieldsCounters done [10:24:09]requested_item shift.num is exist - process it [10:24:09]requested_item shift.opened is exist - process it [10:24:09]req_shift_opened [10:24:09]FM_GetShiftState [10:24:09]SAM_PROTO_GetShiftState [10:24:09]wFMCommunicate request_size=4 [10:24:09]MH_SAM_APDU [10:24:09]CAPDU: 80 13 01 00 [10:24:09]Write to MH i2c: E2 08 00 57 C2 80 13 01 00 00 00 00 00 96 [10:24:09]Write i2c OK [10:24:09]MH_I2C_Read... [10:24:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:09]Read from MH i2c: E2 [10:24:09]MH_I2C_Read... [10:24:09]Read from MH i2c: E2 0E 00 [10:24:09]MH_I2C_Read... [10:24:09]Read from MH i2c: E2 0E 00 57 C2 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 9C [10:24:09]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:24:09]wFMCommunicate OK [10:24:09]SAM_PROTO_GetShiftState done [10:24:09]FM_GetShiftState done [10:24:09]req_shift_opened done [10:24:09]requested_item shift.open_date is exist - process it [10:24:09]req_shift_open_date [10:24:09]req_shift_open_date done [10:24:09]produce_requested_data done [10:24:09]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69255,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [10:24:09]process_action_free close_receipt [10:24:09]json_value_free [10:24:09]json_value_free done [10:24:09]process_json_proto returns [10:24:09]Send response to host [10:24:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69255,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [10:24:09]free response buf [10:24:09]execute_script done [10:24:09]execute_script returns [10:24:09]free content buf [10:24:09]Sock 8.Close socket [10:24:09]Sock 8.Thread stoped [10:24:10]accept exits with 9 [10:24:10]New connection [10:24:10]New thread 3067116900 created [10:24:10]Thread 3067260260 joined [10:24:10]Waiting for new connection... [10:24:10] Sock 9.Parse request [10:24:10]Sock 9.Check first char [10:24:10]Sock 9.First char is OK [10:24:10]request: POST /json_proto HTTP/1.0 [10:24:10]Method: POST [10:24:10]URL: /json_proto [10:24:10]Method is POST - this is cgi request [10:24:10]url: /json_proto [10:24:10]query_string will be loaded in cgi processing [10:24:10]execute_cgi json_proto POST (null) [10:24:10]execute_cgi path=json_proto method=POST [10:24:10]POST find Content-Length [10:24:10]Host: 172.17.50.3:8080 [10:24:10]Content-Length: 734 [10:24:10]Content-Type: application/json [10:24:10] [10:24:10]POST finish read [10:24:10]Found Content-Length = 734 [10:24:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 69255, "base_FM": "0000000000963346", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "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" ] } } [10:24:10]execute_script... [10:24:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 69255, "base_FM": "0000000000963346", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "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" ] } } [10:24:10]POST & json_proto [10:24:10]process_json_proto [10:24:10]json parsed OK: [10:24:10]protocol is kg_v1.0 [10:24:10]action value=close_receipt [10:24:10]process_action close_receipt [10:24:10]cmd_close_receipt [10:24:10]MH_GetDate [10:24:10]Write to MH i2c: F0 00 00 58 C2 09 [10:24:10]Write i2c OK [10:24:10]MH_I2C_Read... [10:24:10]Read from MH i2c: F0 [10:24:10]MH_I2C_Read... [10:24:10]Read from MH i2c: F0 09 00 [10:24:10]MH_I2C_Read... [10:24:10]Read from MH i2c: F0 09 00 58 C2 00 54 DA 14 67 6B 98 1E 66 42 [10:24:10]GetLastDocTimeStamp 1729419855 [10:24:10]current date 1729419860 [10:24:10]FM_GetShiftState [10:24:10]SAM_PROTO_GetShiftState [10:24:10]wFMCommunicate request_size=4 [10:24:10]MH_SAM_APDU [10:24:10]CAPDU: 80 13 01 00 [10:24:10]Write to MH i2c: E2 08 00 59 C2 80 13 01 00 00 00 00 00 98 [10:24:10]Write i2c OK [10:24:10]MH_I2C_Read... [10:24:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:10]Read from MH i2c: E2 [10:24:10]MH_I2C_Read... [10:24:10]Read from MH i2c: E2 0E 00 [10:24:10]MH_I2C_Read... [10:24:10]Read from MH i2c: E2 0E 00 59 C2 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 9E [10:24:10]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:24:10]wFMCommunicate OK [10:24:10]SAM_PROTO_GetShiftState done [10:24:10]FM_GetShiftState done [10:24:10]opened in 1729383220 [10:24:10]opened+sec_in_day 1729469620 [10:24:10]quantity*price = 50010 [10:24:10]sum+1 = 50012 [10:24:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 101 20.10.2024 10:24 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФД осн.: 69255 ФМ осн.: 0000000000963346 ФМ: 0000000000963346 ФД: 69256 ФПД: 267882964098099 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102420&type=2&operation_type=1&fn_number=0000000000963346&fd_number=69256&fm=267882964098099&tin=02508201610067®Number=0000000000156251&sum=50000 [10:24:12]StoreToDocumentArchive [10:24:12]shift 193 fd 69256 [10:24:12]save to /storage/0193/doc_00069256 [10:24:12]save last doc name /storage/0193/doc_00069256 to /storage/kkm_last_doc_name [10:24:12]save OK [10:24:12]Clear old archive folders... [10:24:12]ProcessDocumentItem done err = 0, tmpTLVsize=279 [10:24:12]tlvbuf is 007E0FF0 [10:24:12]SAM_PROTO_ClearQueue [10:24:12]wFMCommunicate request_size=4 [10:24:12]MH_SAM_APDU [10:24:12]CAPDU: 80 09 00 00 [10:24:12]Write to MH i2c: E2 08 00 68 C2 80 09 00 00 00 00 00 00 9C [10:24:12]Write i2c OK [10:24:12]MH_I2C_Read... [10:24:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:12]Read from MH i2c: E2 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: E2 03 00 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: E2 03 00 68 C2 00 90 00 9E [10:24:12]RAPDU: 90 00 [10:24:12]wFMCommunicate OK [10:24:12]SAM_PROTO_ClearQueue done [10:24:12]KKMCreateOFDPacket [10:24:12]OFDProtocolAddRootSTLVToBuf [10:24:12]FM_MakeSignedData [10:24:12]FM_MakeSignedData [10:24:12]SAM_PROTO_SignData [10:24:12]wFMCommunicate request_size=4 [10:24:12]MH_SAM_APDU [10:24:12]CAPDU: 80 0D 01 02 [10:24:12]Write to MH i2c: E2 08 00 69 C2 80 0D 01 02 00 00 00 00 A4 [10:24:12]Write i2c OK [10:24:12]MH_I2C_Read... [10:24:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:12]Read from MH i2c: E2 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: E2 03 00 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: E2 03 00 69 C2 00 90 00 9F [10:24:12]RAPDU: 90 00 [10:24:12]wFMCommunicate OK [10:24:12]wFMCommunicate request_size=255 [10:24:12]MH_SAM_APDU [10:24:12]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 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 65 00 00 00 F4 03 04 00 54 DA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 87 0E 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 [10:24:12]Write to MH i2c: E2 02 01 6A C2 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 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 65 00 00 00 F4 03 04 00 54 DA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 87 0E 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 00 00 CC [10:24:12]Write i2c OK [10:24:12]MH_I2C_Read... [10:24:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:12]Read from MH i2c: E2 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: E2 03 00 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: E2 03 00 6A C2 00 90 00 A0 [10:24:12]RAPDU: 90 00 [10:24:12]wFMCommunicate OK [10:24:12]wFMCommunicate request_size=38 [10:24:12]MH_SAM_APDU [10:24:12]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 88 0E 01 00 35 04 06 00 F3 A3 5C EA 9C 33 [10:24:12]Write to MH i2c: E2 29 00 6B C2 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 88 0E 01 00 35 04 06 00 F3 A3 5C EA 9C 33 00 00 71 [10:24:12]Write i2c OK [10:24:12]MH_I2C_Read... [10:24:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:12]Read from MH i2c: E2 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: E2 03 00 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: E2 03 00 6B C2 00 90 00 A1 [10:24:12]RAPDU: 90 00 [10:24:12]wFMCommunicate OK [10:24:12]wFMCommunicate request_size=4 [10:24:12]MH_SAM_APDU [10:24:12]CAPDU: 80 0D 03 02 [10:24:12]Write to MH i2c: E2 08 00 6C C2 80 0D 03 02 00 00 00 00 A9 [10:24:12]Write i2c OK [10:24:12]MH_I2C_Read... [10:24:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:12]Read from MH i2c: E2 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: E2 0B 00 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: E2 0B 00 6C C2 00 5A AD 6A 79 F7 53 42 E8 90 00 08 [10:24:12]RAPDU: 5A AD 6A 79 F7 53 42 E8 90 00 [10:24:12]wFMCommunicate OK [10:24:12]SAM_PROTO_SignData done [10:24:12]FM_MakeSignedData done [10:24:12]CreateOFDProtocolMessage [10:24:12]wFMCommunicate request_size=4 [10:24:12]MH_SAM_APDU [10:24:12]CAPDU: 80 11 00 00 [10:24:12]Write to MH i2c: E2 08 00 6D C2 80 11 00 00 00 00 00 00 A9 [10:24:12]Write i2c OK [10:24:12]MH_I2C_Read... [10:24:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:13]Read from MH i2c: E2 [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: E2 17 00 [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: E2 17 00 6D C2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FB [10:24:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:24:13]wFMCommunicate OK [10:24:13]CreateOFDProtocolMessage done [10:24:13]OFDSenderStorePacket 69256 [10:24:13]StoreOFDPacket docnum=69256 [10:24:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 2B 01 00 00 37 8E 23 01 5E 3F 5A 03 01 00 03 00 17 01 1E 04 01 00 02 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 65 00 00 00 F4 03 04 00 54 DA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 87 0E 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 88 0E 01 00 35 04 06 00 F3 A3 5C EA 9C 33 5A AD 6A 79 F7 53 42 E8 [10:24:13]CheckFolder [10:24:13]dirname=/storage/ofd_packets [10:24:13]CheckFolder done [10:24:13]ProducePacketName [10:24:13]name=ofd_packets/00069256 [10:24:13]NVStorageSaveData ofd_packets/00069256 [10:24:13]File name is /storage/ofd_packets/00069256 [10:24:13]Write 329 bytes [10:24:13]NVStorageSaveData done [10:24:13]OFDSenderStorePacket done [10:24:13]KKMCreateOFDPacket done [10:24:13]NVStorageSaveData kkm_last_timestamp [10:24:13]File name is /storage/kkm_last_timestamp [10:24:13]Write 4 bytes [10:24:13]NVStorageSaveData done [10:24:13]ExternCall_PrintAddStr [10:24:13]wPrintStart [10:24:13]Write to MH i2c: 01 00 00 6E C2 30 [10:24:13]Write i2c OK [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: 01 [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: 01 07 00 [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: 01 07 00 6E C2 00 00 00 00 00 FF 0F 45 [10:24:13]RasterBufferAndPrint [10:24:13]line Счет N : (1)2884970 [10:24:13]line ИНН: 02508201610067 [10:24:13]line Контрольно-Кассовый Чек [10:24:13]line ВОЗВРАТ ПРОДАЖИ [10:24:13]line ТРК (МРК, ГНК) : 43 [10:24:13]line Товар: 2710124500 [10:24:13]line Аи-95-К-5 [10:24:13]line 6.740 * 74.20 [10:24:13]line = 500.11 [10:24:13]line НДС 12% НСП 1% [10:24:13]line > о реализуемом товаре [10:24:13]line ОКРУГЛЕНИЕ: -0.11 [10:24:13]line ИТОГО: 500.00 [10:24:13]line НСП 1% : 4.43 [10:24:13]line НДС 12% : 53.11 [10:24:13]line Наличными: 500.00 [10:24:13]line Безнал.: 0.00 [10:24:13]line Место: АЗС № 85 "Партнер Нефть" [10:24:13]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:24:13]line СНО: Общий режим [10:24:13]line Чек 101 20.10.2024 10:24 [10:24:13]line Смена: 193 ФФД: 1.0 [10:24:13]line ЗНМ: 0300000167 [10:24:13]line РНМ: 0000000000156251 [10:24:13]line Версия ККМ: v1.0 [10:24:13]line ФД осн.: 69255 [10:24:13]line ФМ осн.: 0000000000963346 [10:24:13]line ФМ: 0000000000963346 [10:24:13]line ФД: 69256 [10:24:13]line ФПД: 267882964098099 [10:24:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102420&type=2&operation_type=1&fn_number=0000000000963346&fd_number=69256&fm=267882964098099&tin=02508201610067®Number=0000000000156251&sum=50000 [10:24:13]OFD Sender: Processing packet 69256 [packets to send 18, broken 17] [10:24:13]ProducePacketName [10:24:13]name=ofd_packets/00069256 [10:24:13]OFD Sender: To server: pG, [10:24:13]CommunicateWithHost lk.salyk.kg:30040 [10:24:13]ConnectInit lk.salyk.kg [10:24:13]written 0, free lines is 4095 [10:24:13]Connected sock=8 [10:24:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 2B 01 00 00 37 8E 23 01 5E 3F 5A 03 01 00 03 00 17 01 1E 04 01 00 02 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 65 00 00 00 F4 03 04 00 54 DA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 87 0E 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 88 0E 01 00 35 04 06 00 F3 A3 5C EA 9C 33 5A AD 6A 79 F7 53 42 E8 [10:24:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 4F 55 47 00 CA BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 88 0E 01 00 F4 03 04 00 FC 83 14 67 B6 04 01 00 00 D1 88 6E D6 2F B6 53 46 [10:24:13]CommunicateWithHost err = 0 [10:24:13]CheckOFDResponse [10:24:13]1017 (14) - 77093643461234 [10:24:13]1041 (16) - 0000000000963346 [10:24:13]1040 (4) - 69256 [10:24:13]1012 (4) - 20.10.2024 04:15 [10:24:13]1206 (1) - 0 [10:24:13]OFD Sender: Remove packet 69256 [10:24:13]ProducePacketName [10:24:13]name=ofd_packets/00069256 [10:24:13]NVStorageDeleteData [10:24:13]Write to MH i2c: 01 00 00 99 C2 5B [10:24:13]Write i2c OK [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: 01 [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: 01 07 00 [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: 01 07 00 99 C2 00 00 00 00 00 05 0D 74 [10:24:13]RasterBufferAndPrint [10:24:13]line [10:24:13]line [10:24:13]line [10:24:13]line [10:24:13]line [10:24:13]written 0, free lines is 3348 [10:24:13]MH_Cut [10:24:13]Write to MH i2c: D1 01 00 A0 C2 01 34 [10:24:13]Write i2c OK [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: D1 [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: D1 01 00 [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: D1 01 00 A0 C2 00 33 [10:24:13]Write to MH i2c: 01 00 00 A1 C2 63 [10:24:13]Write i2c OK [10:24:13]MH_I2C_Read... [10:24:14]OFD Sender: No OFD packet to send [10:24:14]*** Cut start [10:24:14]*** Partial cut [10:24:14]*** CUTSNS_PIN = 1 [10:24:14]*** CUTSNS_PIN = 0 [10:24:14]*** Brake cut motor [10:24:15]Read from MH i2c: 01 [10:24:15]MH_I2C_Read... [10:24:15]*** Stop cut motor [10:24:15]*** Cut end [10:24:15]Read from MH i2c: 01 07 00 [10:24:15]MH_I2C_Read... [10:24:15]Read from MH i2c: 01 07 00 A1 C2 00 00 00 00 00 FF 0F 78 [10:24:15]process_action close_receipt done [10:24:15]requested_data is exist [10:24:15]produce_requested_data [10:24:15]requested_item fm.sn is exist - process it [10:24:15]wFMCommunicate request_size=4 [10:24:15]MH_SAM_APDU [10:24:15]CAPDU: 80 11 00 00 [10:24:15]Write to MH i2c: E2 08 00 A2 C2 80 11 00 00 00 00 00 00 DE [10:24:15]Write i2c OK [10:24:15]MH_I2C_Read... [10:24:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:15]Read from MH i2c: E2 [10:24:15]MH_I2C_Read... [10:24:15]Read from MH i2c: E2 17 00 [10:24:15]MH_I2C_Read... [10:24:15]Read from MH i2c: E2 17 00 A2 C2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 30 [10:24:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:24:15]wFMCommunicate OK [10:24:15]requested_item fd.num is exist - process it [10:24:15]SAM_PROTO_GetFieldsCounters [10:24:15]wFMCommunicate request_size=4 [10:24:15]MH_SAM_APDU [10:24:15]CAPDU: 80 13 00 00 [10:24:15]Write to MH i2c: E2 08 00 A3 C2 80 13 00 00 00 00 00 00 E1 [10:24:15]Write i2c OK [10:24:15]MH_I2C_Read... [10:24:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:15]Read from MH i2c: E2 [10:24:15]MH_I2C_Read... [10:24:15]Read from MH i2c: E2 62 00 [10:24:15]MH_I2C_Read... [10:24:15]Read from MH i2c: E2 62 00 A3 C2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 88 0E 01 00 0E 04 04 00 C1 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 83 [10:24:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 88 0E 01 00 0E 04 04 00 C1 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 [10:24:15]wFMCommunicate OK [10:24:15]SAM_PROTO_GetFieldsCounters done [10:24:15]requested_item shift.num is exist - process it [10:24:15]requested_item shift.opened is exist - process it [10:24:15]req_shift_opened [10:24:15]FM_GetShiftState [10:24:15]SAM_PROTO_GetShiftState [10:24:15]wFMCommunicate request_size=4 [10:24:15]MH_SAM_APDU [10:24:15]CAPDU: 80 13 01 00 [10:24:15]Write to MH i2c: E2 08 00 A4 C2 80 13 01 00 00 00 00 00 E3 [10:24:15]Write i2c OK [10:24:15]MH_I2C_Read... [10:24:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:15]Read from MH i2c: E2 [10:24:15]MH_I2C_Read... [10:24:15]Read from MH i2c: E2 0E 00 [10:24:15]MH_I2C_Read... [10:24:15]Read from MH i2c: E2 0E 00 A4 C2 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 E9 [10:24:15]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:24:15]wFMCommunicate OK [10:24:15]SAM_PROTO_GetShiftState done [10:24:15]FM_GetShiftState done [10:24:15]req_shift_opened done [10:24:15]requested_item shift.open_date is exist - process it [10:24:15]req_shift_open_date [10:24:15]req_shift_open_date done [10:24:15]produce_requested_data done [10:24:15]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69256,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [10:24:15]process_action_free close_receipt [10:24:15]json_value_free [10:24:15]json_value_free done [10:24:15]process_json_proto returns [10:24:15]Send response to host [10:24:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69256,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [10:24:15]free response buf [10:24:15]execute_script done [10:24:15]execute_script returns [10:24:15]free content buf [10:24:15]Sock 9.Close socket [10:24:15]Sock 9.Thread stoped [10:24:19]OFD Sender: No OFD packet to send [10:24:24]OFD Sender: No OFD packet to send [10:24:27]accept exits with 10 [10:24:27]New connection [10:24:27]New thread 3067260260 created [10:24:27]Thread 3067116900 joined [10:24:27]Waiting for new connection... [10:24:27] Sock 10.Parse request [10:24:27]Sock 10.Check first char [10:24:27]Sock 10.First char is OK [10:24:27]request: POST /json_proto HTTP/1.0 [10:24:27]Method: POST [10:24:27]URL: /json_proto [10:24:27]Method is POST - this is cgi request [10:24:27]url: /json_proto [10:24:27]query_string will be loaded in cgi processing [10:24:27]execute_cgi json_proto POST (null) [10:24:27]execute_cgi path=json_proto method=POST [10:24:27]POST find Content-Length [10:24:27]Host: 172.17.50.3:8080 [10:24:27]Content-Length: 678 [10:24:27]Content-Type: application/json [10:24:27] [10:24:27]POST finish read [10:24:27]Found Content-Length = 678 [10:24:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [10:24:27]execute_script... [10:24: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)2884969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [10:24:27]POST & json_proto [10:24:27]process_json_proto [10:24:27]json parsed OK: [10:24:27]protocol is kg_v1.0 [10:24:27]action value=close_receipt [10:24:27]process_action close_receipt [10:24:27]cmd_close_receipt [10:24:27]MH_GetDate [10:24:27]Write to MH i2c: F0 00 00 A5 C2 56 [10:24:27]Write i2c OK [10:24:27]MH_I2C_Read... [10:24:27]Read from MH i2c: F0 [10:24:27]MH_I2C_Read... [10:24:27]Read from MH i2c: F0 09 00 [10:24:27]MH_I2C_Read... [10:24:27]Read from MH i2c: F0 09 00 A5 C2 00 64 DA 14 67 6B 98 1E 66 9F [10:24:27]GetLastDocTimeStamp 1729419860 [10:24:27]current date 1729419876 [10:24:27]FM_GetShiftState [10:24:27]SAM_PROTO_GetShiftState [10:24:27]wFMCommunicate request_size=4 [10:24:27]MH_SAM_APDU [10:24:27]CAPDU: 80 13 01 00 [10:24:27]Write to MH i2c: E2 08 00 A6 C2 80 13 01 00 00 00 00 00 E5 [10:24:27]Write i2c OK [10:24:27]MH_I2C_Read... [10:24:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:27]Read from MH i2c: E2 [10:24:27]MH_I2C_Read... [10:24:27]Read from MH i2c: E2 0E 00 [10:24:27]MH_I2C_Read... [10:24:27]Read from MH i2c: E2 0E 00 A6 C2 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 EB [10:24:27]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:24:27]wFMCommunicate OK [10:24:27]SAM_PROTO_GetShiftState done [10:24:27]FM_GetShiftState done [10:24:27]opened in 1729383220 [10:24:27]opened+sec_in_day 1729469620 [10:24:27]quantity*price = 50010 [10:24:27]sum+1 = 50012 [10:24:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 102 20.10.2024 10:24 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69257 ФПД: 56764321687232 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102436&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69257&fm=56764321687232&tin=02508201610067®Number=0000000000156251&sum=50000 [10:24:28]StoreToDocumentArchive [10:24:28]shift 193 fd 69257 [10:24:28]save to /storage/0193/doc_00069257 [10:24:28]save last doc name /storage/0193/doc_00069257 to /storage/kkm_last_doc_name [10:24:28]save OK [10:24:28]Clear old archive folders... [10:24:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:24:28]tlvbuf is 0079ECD0 [10:24:28]SAM_PROTO_ClearQueue [10:24:28]wFMCommunicate request_size=4 [10:24:28]MH_SAM_APDU [10:24:28]CAPDU: 80 09 00 00 [10:24:28]Write to MH i2c: E2 08 00 B3 C2 80 09 00 00 00 00 00 00 E7 [10:24:28]Write i2c OK [10:24:28]MH_I2C_Read... [10:24:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:28]Read from MH i2c: E2 [10:24:28]MH_I2C_Read... [10:24:28]Read from MH i2c: E2 03 00 [10:24:28]MH_I2C_Read... [10:24:28]Read from MH i2c: E2 03 00 B3 C2 00 90 00 E9 [10:24:28]RAPDU: 90 00 [10:24:28]wFMCommunicate OK [10:24:28]SAM_PROTO_ClearQueue done [10:24:28]KKMCreateOFDPacket [10:24:28]OFDProtocolAddRootSTLVToBuf [10:24:28]FM_MakeSignedData [10:24:28]FM_MakeSignedData [10:24:28]SAM_PROTO_SignData [10:24:28]wFMCommunicate request_size=4 [10:24:28]MH_SAM_APDU [10:24:28]CAPDU: 80 0D 01 02 [10:24:28]Write to MH i2c: E2 08 00 B4 C2 80 0D 01 02 00 00 00 00 EF [10:24:28]Write i2c OK [10:24:28]MH_I2C_Read... [10:24:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:28]Read from MH i2c: E2 [10:24:28]MH_I2C_Read... [10:24:28]Read from MH i2c: E2 03 00 [10:24:28]MH_I2C_Read... [10:24:28]Read from MH i2c: E2 03 00 B4 C2 00 90 00 EA [10:24:28]RAPDU: 90 00 [10:24:28]wFMCommunicate OK [10:24:28]wFMCommunicate request_size=255 [10:24:28]MH_SAM_APDU [10:24: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 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 66 00 00 00 F4 03 04 00 64 DA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 89 0E 01 00 35 04 06 00 33 [10:24:28]Write to MH i2c: E2 02 01 B5 C2 80 0D 02 02 FA 00 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 66 00 00 00 F4 03 04 00 64 DA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 89 0E 01 00 35 04 06 00 33 00 00 FB [10:24:28]Write i2c OK [10:24:28]MH_I2C_Read... [10:24:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:28]Read from MH i2c: E2 [10:24:28]MH_I2C_Read... [10:24:28]Read from MH i2c: E2 03 00 [10:24:28]MH_I2C_Read... [10:24:28]Read from MH i2c: E2 03 00 B5 C2 00 90 00 EB [10:24:28]RAPDU: 90 00 [10:24:28]wFMCommunicate OK [10:24:28]wFMCommunicate request_size=10 [10:24:28]MH_SAM_APDU [10:24:28]CAPDU: 80 0D 02 02 05 A0 79 3A E6 C0 [10:24:28]Write to MH i2c: E2 0D 00 B6 C2 80 0D 02 02 05 00 A0 79 3A E6 C0 00 00 F5 [10:24:28]Write i2c OK [10:24:28]MH_I2C_Read... [10:24:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:28]Read from MH i2c: E2 [10:24:28]MH_I2C_Read... [10:24:28]Read from MH i2c: E2 03 00 [10:24:28]MH_I2C_Read... [10:24:28]Read from MH i2c: E2 03 00 B6 C2 00 90 00 EC [10:24:28]RAPDU: 90 00 [10:24:28]wFMCommunicate OK [10:24:28]wFMCommunicate request_size=4 [10:24:28]MH_SAM_APDU [10:24:28]CAPDU: 80 0D 03 02 [10:24:28]Write to MH i2c: E2 08 00 B7 C2 80 0D 03 02 00 00 00 00 F4 [10:24:28]Write i2c OK [10:24:28]MH_I2C_Read... [10:24:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:28]Read from MH i2c: E2 [10:24:28]MH_I2C_Read... [10:24:28]Read from MH i2c: E2 0B 00 [10:24:28]MH_I2C_Read... [10:24:28]Read from MH i2c: E2 0B 00 B7 C2 00 0B 2F 53 28 E7 AF 6F 4A 90 00 F9 [10:24:28]RAPDU: 0B 2F 53 28 E7 AF 6F 4A 90 00 [10:24:28]wFMCommunicate OK [10:24:28]SAM_PROTO_SignData done [10:24:28]FM_MakeSignedData done [10:24:28]CreateOFDProtocolMessage [10:24:28]wFMCommunicate request_size=4 [10:24:28]MH_SAM_APDU [10:24:28]CAPDU: 80 11 00 00 [10:24:28]Write to MH i2c: E2 08 00 B8 C2 80 11 00 00 00 00 00 00 F4 [10:24:28]Write i2c OK [10:24:28]MH_I2C_Read... [10:24:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:28]Read from MH i2c: E2 [10:24:28]MH_I2C_Read... [10:24:28]Read from MH i2c: E2 17 00 [10:24:28]MH_I2C_Read... [10:24:28]Read from MH i2c: E2 17 00 B8 C2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 46 [10:24:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:24:28]wFMCommunicate OK [10:24:28]CreateOFDProtocolMessage done [10:24:28]OFDSenderStorePacket 69257 [10:24:28]StoreOFDPacket docnum=69257 [10:24:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 18 46 07 01 E1 8B 5A 03 01 00 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 66 00 00 00 F4 03 04 00 64 DA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 89 0E 01 00 35 04 06 00 33 A0 79 3A E6 C0 0B 2F 53 28 E7 AF 6F 4A [10:24:28]CheckFolder [10:24:28]dirname=/storage/ofd_packets [10:24:28]CheckFolder done [10:24:28]ProducePacketName [10:24:28]name=ofd_packets/00069257 [10:24:28]NVStorageSaveData ofd_packets/00069257 [10:24:28]File name is /storage/ofd_packets/00069257 [10:24:28]Write 301 bytes [10:24:28]NVStorageSaveData done [10:24:28]OFDSenderStorePacket done [10:24:28]KKMCreateOFDPacket done [10:24:28]NVStorageSaveData kkm_last_timestamp [10:24:28]File name is /storage/kkm_last_timestamp [10:24:28]Write 4 bytes [10:24:28]NVStorageSaveData done [10:24:28]ExternCall_PrintAddStr [10:24:28]wPrintStart [10:24:28]Write to MH i2c: 01 00 00 B9 C2 7B [10:24:28]Write i2c OK [10:24:28]MH_I2C_Read... [10:24:28]Read from MH i2c: 01 [10:24:28]MH_I2C_Read... [10:24:28]Read from MH i2c: 01 07 00 [10:24:28]MH_I2C_Read... [10:24:28]Read from MH i2c: 01 07 00 B9 C2 00 00 00 00 00 FF 0F 90 [10:24:28]RasterBufferAndPrint [10:24:28]line Счет N : (1)2884969 [10:24:28]line ИНН: 02508201610067 [10:24:28]line Контрольно-Кассовый Чек [10:24:28]line ПРОДАЖА [10:24:28]line ТРК (МРК, ГНК) : 33 [10:24:28]line Товар: 2710124500 [10:24:28]line Аи-95-К-5 [10:24:28]line 6.740 * 74.20 [10:24:28]line = 500.11 [10:24:28]line НДС 12% НСП 1% [10:24:28]line > о реализуемом товаре [10:24:28]line ОКРУГЛЕНИЕ: -0.11 [10:24:28]line ИТОГО: 500.00 [10:24:28]line Внесено: 500.00 [10:24:28]line СДАЧА: 0.00 [10:24:28]line НСП 1% : 4.43 [10:24:28]line НДС 12% : 53.11 [10:24:28]line Наличными: 500.00 [10:24:28]line Безнал.: 0.00 [10:24:28]line Место: АЗС № 85 "Партнер Нефть" [10:24:28]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:24:28]line СНО: Общий режим [10:24:28]line Чек 102 20.10.2024 10:24 [10:24:28]line Смена: 193 ФФД: 1.0 [10:24:28]line ЗНМ: 0300000167 [10:24:28]line РНМ: 0000000000156251 [10:24:28]line Версия ККМ: v1.0 [10:24:28]line ФМ: 0000000000963346 [10:24:28]line ФД: 69257 [10:24:28]line ФПД: 56764321687232 [10:24:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102436&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69257&fm=56764321687232&tin=02508201610067®Number=0000000000156251&sum=50000 [10:24:28]written 0, free lines is 4095 [10:24:28]OFD Sender: Processing packet 69257 [packets to send 18, broken 17] [10:24:28]ProducePacketName [10:24:28]name=ofd_packets/00069257 [10:24:28]OFD Sender: To server: pG, [10:24:28]CommunicateWithHost lk.salyk.kg:30040 [10:24:28]ConnectInit lk.salyk.kg [10:24:29]Connected sock=9 [10:24:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 18 46 07 01 E1 8B 5A 03 01 00 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 66 00 00 00 F4 03 04 00 64 DA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 89 0E 01 00 35 04 06 00 33 A0 79 3A E6 C0 0B 2F 53 28 E7 AF 6F 4A [10:24:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 6C 98 47 00 79 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 89 0E 01 00 F4 03 04 00 0B 84 14 67 B6 04 01 00 00 99 D5 64 E0 C5 AF A6 02 [10:24:29]CommunicateWithHost err = 0 [10:24:29]CheckOFDResponse [10:24:29]1017 (14) - 77093643461234 [10:24:29]1041 (16) - 0000000000963346 [10:24:29]1040 (4) - 69257 [10:24:29]1012 (4) - 20.10.2024 04:16 [10:24:29]1206 (1) - 0 [10:24:29]OFD Sender: Remove packet 69257 [10:24:29]ProducePacketName [10:24:29]name=ofd_packets/00069257 [10:24:29]NVStorageDeleteData [10:24:29]Write to MH i2c: 01 00 00 E4 C2 A6 [10:24:29]Write i2c OK [10:24:29]MH_I2C_Read... [10:24:29]Read from MH i2c: 01 [10:24:29]MH_I2C_Read... [10:24:29]Read from MH i2c: 01 07 00 [10:24:29]MH_I2C_Read... [10:24:29]Read from MH i2c: 01 07 00 E4 C2 00 00 00 00 00 03 0D BD [10:24:29]RasterBufferAndPrint [10:24:29]line [10:24:29]line [10:24:29]line [10:24:29]line [10:24:29]line [10:24:29]written 0, free lines is 3346 [10:24:29]MH_Cut [10:24:29]Write to MH i2c: D1 01 00 EB C2 01 7F [10:24:29]Write i2c OK [10:24:29]MH_I2C_Read... [10:24:29]Read from MH i2c: D1 [10:24:29]MH_I2C_Read... [10:24:29]Read from MH i2c: D1 01 00 [10:24:29]MH_I2C_Read... [10:24:29]Read from MH i2c: D1 01 00 EB C2 00 7E [10:24:29]Write to MH i2c: 01 00 00 EC C2 AE [10:24:29]Write i2c OK [10:24:29]MH_I2C_Read... [10:24:29]OFD Sender: No OFD packet to send [10:24:30]*** Cut start [10:24:30]*** Partial cut [10:24:30]*** CUTSNS_PIN = 1 [10:24:30]*** CUTSNS_PIN = 0 [10:24:30]*** Brake cut motor [10:24:30]Read from MH i2c: 01 [10:24:30]MH_I2C_Read... [10:24:30]*** Stop cut motor [10:24:30]*** Cut end [10:24:30]Read from MH i2c: 01 07 00 [10:24:30]MH_I2C_Read... [10:24:30]Read from MH i2c: 01 07 00 EC C2 00 00 00 00 00 FF 0F C3 [10:24:30]process_action close_receipt done [10:24:30]requested_data is exist [10:24:30]produce_requested_data [10:24:30]requested_item fm.sn is exist - process it [10:24:30]wFMCommunicate request_size=4 [10:24:30]MH_SAM_APDU [10:24:30]CAPDU: 80 11 00 00 [10:24:30]Write to MH i2c: E2 08 00 ED C2 80 11 00 00 00 00 00 00 29 [10:24:30]Write i2c OK [10:24:30]MH_I2C_Read... [10:24:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:30]Read from MH i2c: E2 [10:24:30]MH_I2C_Read... [10:24:30]Read from MH i2c: E2 17 00 [10:24:30]MH_I2C_Read... [10:24:30]Read from MH i2c: E2 17 00 ED C2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7B [10:24:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:24:30]wFMCommunicate OK [10:24:30]requested_item fd.num is exist - process it [10:24:30]SAM_PROTO_GetFieldsCounters [10:24:30]wFMCommunicate request_size=4 [10:24:30]MH_SAM_APDU [10:24:30]CAPDU: 80 13 00 00 [10:24:30]Write to MH i2c: E2 08 00 EE C2 80 13 00 00 00 00 00 00 2C [10:24:30]Write i2c OK [10:24:30]MH_I2C_Read... [10:24:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:30]Read from MH i2c: E2 [10:24:30]MH_I2C_Read... [10:24:30]Read from MH i2c: E2 62 00 [10:24:30]MH_I2C_Read... [10:24:30]Read from MH i2c: E2 62 00 EE C2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 89 0E 01 00 0E 04 04 00 C1 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 D2 [10:24:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 89 0E 01 00 0E 04 04 00 C1 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 [10:24:30]wFMCommunicate OK [10:24:30]SAM_PROTO_GetFieldsCounters done [10:24:30]requested_item shift.num is exist - process it [10:24:30]requested_item shift.opened is exist - process it [10:24:30]req_shift_opened [10:24:30]FM_GetShiftState [10:24:30]SAM_PROTO_GetShiftState [10:24:30]wFMCommunicate request_size=4 [10:24:30]MH_SAM_APDU [10:24:30]CAPDU: 80 13 01 00 [10:24:30]Write to MH i2c: E2 08 00 EF C2 80 13 01 00 00 00 00 00 2E [10:24:30]Write i2c OK [10:24:30]MH_I2C_Read... [10:24:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:30]Read from MH i2c: E2 [10:24:30]MH_I2C_Read... [10:24:30]Read from MH i2c: E2 0E 00 [10:24:30]MH_I2C_Read... [10:24:30]Read from MH i2c: E2 0E 00 EF C2 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 34 [10:24:30]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:24:30]wFMCommunicate OK [10:24:30]SAM_PROTO_GetShiftState done [10:24:30]FM_GetShiftState done [10:24:30]req_shift_opened done [10:24:30]requested_item shift.open_date is exist - process it [10:24:30]req_shift_open_date [10:24:30]req_shift_open_date done [10:24:30]produce_requested_data done [10:24:30]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69257,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [10:24:30]process_action_free close_receipt [10:24:30]json_value_free [10:24:30]json_value_free done [10:24:30]process_json_proto returns [10:24:30]Send response to host [10:24:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69257,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [10:24:30]free response buf [10:24:30]execute_script done [10:24:30]execute_script returns [10:24:30]free content buf [10:24:30]Sock 10.Close socket [10:24:30]Sock 10.Thread stoped [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:54]OFD Sender: No OFD packet to send [10:24:59]OFD Sender: No OFD packet to send [10:25:04]OFD Sender: No OFD packet to send [10:25:09]OFD Sender: No OFD packet to send [10:25:14]OFD Sender: No OFD packet to send [10:25:19]OFD Sender: No OFD packet to send [10:25:24]OFD Sender: No OFD packet to send [10:25:29]OFD Sender: No OFD packet to send [10:25:34]OFD Sender: No OFD packet to send [10:25:39]OFD Sender: No OFD packet to send [10:25:44]OFD Sender: No OFD packet to send [10:25:49]OFD Sender: No OFD packet to send [10:25:54]OFD Sender: No OFD packet to send [10:25:59]OFD Sender: No OFD packet to send [10:26:04]OFD Sender: No OFD packet to send [10:26:09]OFD Sender: No OFD packet to send [10:26:10]accept exits with 8 [10:26:10]New connection [10:26:10]New thread 3067116900 created [10:26:10]Thread 3067260260 joined [10:26:10]Waiting for new connection... [10:26:10] Sock 8.Parse request [10:26:10]Sock 8.Check first char [10:26:10]Sock 8.First char is OK [10:26:10]request: POST /json_proto HTTP/1.0 [10:26:10]Method: POST [10:26:10]URL: /json_proto [10:26:10]Method is POST - this is cgi request [10:26:10]url: /json_proto [10:26:10]query_string will be loaded in cgi processing [10:26:10]execute_cgi json_proto POST (null) [10:26:10]execute_cgi path=json_proto method=POST [10:26:10]POST find Content-Length [10:26:10]Host: 172.17.50.3:8080 [10:26:10]Content-Length: 678 [10:26:10]Content-Type: application/json [10:26:10] [10:26:10]POST finish read [10:26:10]Found Content-Length = 678 [10:26:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:10]execute_script... [10:26:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:10]POST & json_proto [10:26:10]process_json_proto [10:26:10]json parsed OK: [10:26:10]protocol is kg_v1.0 [10:26:10]action value=close_receipt [10:26:10]process_action close_receipt [10:26:10]cmd_close_receipt [10:26:10]MH_GetDate [10:26:10]Write to MH i2c: F0 00 00 F0 C2 A1 [10:26:10]Write i2c OK [10:26:10]MH_I2C_Read... [10:26:10]Read from MH i2c: F0 [10:26:10]MH_I2C_Read... [10:26:10]Read from MH i2c: F0 09 00 [10:26:10]MH_I2C_Read... [10:26:10]Read from MH i2c: F0 09 00 F0 C2 00 CC DA 14 67 6B 98 1E 66 52 [10:26:10]GetLastDocTimeStamp 1729419876 [10:26:10]current date 1729419980 [10:26:10]FM_GetShiftState [10:26:10]SAM_PROTO_GetShiftState [10:26:10]wFMCommunicate request_size=4 [10:26:10]MH_SAM_APDU [10:26:10]CAPDU: 80 13 01 00 [10:26:10]Write to MH i2c: E2 08 00 F1 C2 80 13 01 00 00 00 00 00 30 [10:26:10]Write i2c OK [10:26:10]MH_I2C_Read... [10:26:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:10]Read from MH i2c: E2 [10:26:10]MH_I2C_Read... [10:26:10]Read from MH i2c: E2 0E 00 [10:26:10]MH_I2C_Read... [10:26:10]Read from MH i2c: E2 0E 00 F1 C2 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 36 [10:26:10]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:26:10]wFMCommunicate OK [10:26:10]SAM_PROTO_GetShiftState done [10:26:10]FM_GetShiftState done [10:26:10]opened in 1729383220 [10:26:10]opened+sec_in_day 1729469620 [10:26:10]quantity*price = 40006 [10:26:10]sum+1 = 40007 [10:26:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 103 20.10.2024 10:26 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69258 ФПД: 78496820986171 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102620&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69258&fm=78496820986171&tin=02508201610067®Number=0000000000156251&sum=40000 [10:26:11]StoreToDocumentArchive [10:26:11]shift 193 fd 69258 [10:26:11]save to /storage/0193/doc_00069258 [10:26:11]save last doc name /storage/0193/doc_00069258 to /storage/kkm_last_doc_name [10:26:11]save OK [10:26:11]Clear old archive folders... [10:26:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:26:11]tlvbuf is 00686DF0 [10:26:11]SAM_PROTO_ClearQueue [10:26:11]wFMCommunicate request_size=4 [10:26:11]MH_SAM_APDU [10:26:11]CAPDU: 80 09 00 00 [10:26:11]Write to MH i2c: E2 08 00 FE C2 80 09 00 00 00 00 00 00 32 [10:26:11]Write i2c OK [10:26:11]MH_I2C_Read... [10:26:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:11]Read from MH i2c: E2 [10:26:11]MH_I2C_Read... [10:26:11]Read from MH i2c: E2 03 00 [10:26:11]MH_I2C_Read... [10:26:11]Read from MH i2c: E2 03 00 FE C2 00 90 00 34 [10:26:11]RAPDU: 90 00 [10:26:11]wFMCommunicate OK [10:26:11]SAM_PROTO_ClearQueue done [10:26:11]KKMCreateOFDPacket [10:26:11]OFDProtocolAddRootSTLVToBuf [10:26:11]FM_MakeSignedData [10:26:11]FM_MakeSignedData [10:26:11]SAM_PROTO_SignData [10:26:11]wFMCommunicate request_size=4 [10:26:11]MH_SAM_APDU [10:26:11]CAPDU: 80 0D 01 02 [10:26:11]Write to MH i2c: E2 08 00 FF C2 80 0D 01 02 00 00 00 00 3A [10:26:11]Write i2c OK [10:26:11]MH_I2C_Read... [10:26:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:11]Read from MH i2c: E2 [10:26:11]MH_I2C_Read... [10:26:11]Read from MH i2c: E2 03 00 [10:26:11]MH_I2C_Read... [10:26:11]Read from MH i2c: E2 03 00 FF C2 00 90 00 35 [10:26:11]RAPDU: 90 00 [10:26:11]wFMCommunicate OK [10:26:11]wFMCommunicate request_size=255 [10:26:11]MH_SAM_APDU [10:26:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 CC DA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8A 0E 01 00 35 04 06 00 47 [10:26:11]Write to MH i2c: E2 02 01 00 C3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 CC DA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8A 0E 01 00 35 04 06 00 47 00 00 BC [10:26:11]Write i2c OK [10:26:11]MH_I2C_Read... [10:26:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:12]Read from MH i2c: E2 [10:26:12]MH_I2C_Read... [10:26:12]Read from MH i2c: E2 03 00 [10:26:12]MH_I2C_Read... [10:26:12]Read from MH i2c: E2 03 00 00 C3 00 90 00 37 [10:26:12]RAPDU: 90 00 [10:26:12]wFMCommunicate OK [10:26:12]wFMCommunicate request_size=10 [10:26:12]MH_SAM_APDU [10:26:12]CAPDU: 80 0D 02 02 05 64 77 21 81 3B [10:26:12]Write to MH i2c: E2 0D 00 01 C3 80 0D 02 02 05 00 64 77 21 81 3B 00 00 00 [10:26:12]Write i2c OK [10:26:12]MH_I2C_Read... [10:26:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:12]Read from MH i2c: E2 [10:26:12]MH_I2C_Read... [10:26:12]Read from MH i2c: E2 03 00 [10:26:12]MH_I2C_Read... [10:26:12]Read from MH i2c: E2 03 00 01 C3 00 90 00 38 [10:26:12]RAPDU: 90 00 [10:26:12]wFMCommunicate OK [10:26:12]wFMCommunicate request_size=4 [10:26:12]MH_SAM_APDU [10:26:12]CAPDU: 80 0D 03 02 [10:26:12]Write to MH i2c: E2 08 00 02 C3 80 0D 03 02 00 00 00 00 40 [10:26:12]Write i2c OK [10:26:12]MH_I2C_Read... [10:26:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:12]Read from MH i2c: E2 [10:26:12]MH_I2C_Read... [10:26:12]Read from MH i2c: E2 0B 00 [10:26:12]MH_I2C_Read... [10:26:12]Read from MH i2c: E2 0B 00 02 C3 00 B5 AA B4 68 76 4B 95 CA 90 00 DC [10:26:12]RAPDU: B5 AA B4 68 76 4B 95 CA 90 00 [10:26:12]wFMCommunicate OK [10:26:12]SAM_PROTO_SignData done [10:26:12]FM_MakeSignedData done [10:26:12]CreateOFDProtocolMessage [10:26:12]wFMCommunicate request_size=4 [10:26:12]MH_SAM_APDU [10:26:12]CAPDU: 80 11 00 00 [10:26:12]Write to MH i2c: E2 08 00 03 C3 80 11 00 00 00 00 00 00 40 [10:26:12]Write i2c OK [10:26:12]MH_I2C_Read... [10:26:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:12]Read from MH i2c: E2 [10:26:12]MH_I2C_Read... [10:26:12]Read from MH i2c: E2 17 00 [10:26:12]MH_I2C_Read... [10:26:12]Read from MH i2c: E2 17 00 03 C3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 92 [10:26:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:26:12]wFMCommunicate OK [10:26:12]CreateOFDProtocolMessage done [10:26:12]OFDSenderStorePacket 69258 [10:26:12]StoreOFDPacket docnum=69258 [10:26:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 10 D7 07 01 2E B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 CC DA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8A 0E 01 00 35 04 06 00 47 64 77 21 81 3B B5 AA B4 68 76 4B 95 CA [10:26:12]CheckFolder [10:26:12]dirname=/storage/ofd_packets [10:26:12]CheckFolder done [10:26:12]ProducePacketName [10:26:12]name=ofd_packets/00069258 [10:26:12]NVStorageSaveData ofd_packets/00069258 [10:26:12]File name is /storage/ofd_packets/00069258 [10:26:12]Write 301 bytes [10:26:12]NVStorageSaveData done [10:26:12]OFDSenderStorePacket done [10:26:12]KKMCreateOFDPacket done [10:26:12]NVStorageSaveData kkm_last_timestamp [10:26:12]File name is /storage/kkm_last_timestamp [10:26:12]Write 4 bytes [10:26:12]NVStorageSaveData done [10:26:12]ExternCall_PrintAddStr [10:26:12]wPrintStart [10:26:12]Write to MH i2c: 01 00 00 04 C3 C7 [10:26:12]Write i2c OK [10:26:12]MH_I2C_Read... [10:26:12]Read from MH i2c: 01 [10:26:12]MH_I2C_Read... [10:26:12]Read from MH i2c: 01 07 00 [10:26:12]MH_I2C_Read... [10:26:12]Read from MH i2c: 01 07 00 04 C3 00 00 00 00 00 FF 0F DC [10:26:12]RasterBufferAndPrint [10:26:12]line Счет N : (1)2884971 [10:26:12]line ИНН: 02508201610067 [10:26:12]line Контрольно-Кассовый Чек [10:26:12]line ПРОДАЖА [10:26:12]line ТРК (МРК, ГНК) : 42 [10:26:12]line Товар: 2710124130 [10:26:12]line Аи-92-К-5 [10:26:12]line 5.980 * 66.90 [10:26:12]line = 400.06 [10:26:12]line НДС 12% НСП 1% [10:26:12]line > о реализуемом товаре [10:26:12]line ОКРУГЛЕНИЕ: -0.06 [10:26:12]line ИТОГО: 400.00 [10:26:12]line Внесено: 400.00 [10:26:12]line СДАЧА: 0.00 [10:26:12]line НСП 1% : 3.54 [10:26:12]line НДС 12% : 42.48 [10:26:12]line Наличными: 400.00 [10:26:12]line Безнал.: 0.00 [10:26:12]line Место: АЗС № 85 "Партнер Нефть" [10:26:12]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:26:12]line СНО: Общий режим [10:26:12]line Чек 103 20.10.2024 10:26 [10:26:12]line Смена: 193 ФФД: 1.0 [10:26:12]line ЗНМ: 0300000167 [10:26:12]line РНМ: 0000000000156251 [10:26:12]line Версия ККМ: v1.0 [10:26:12]line ФМ: 0000000000963346 [10:26:12]line ФД: 69258 [10:26:12]line ФПД: 78496820986171 [10:26:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102620&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69258&fm=78496820986171&tin=02508201610067®Number=0000000000156251&sum=40000 [10:26:12]OFD Sender: Processing packet 69258 [packets to send 18, broken 17] [10:26:12]ProducePacketName [10:26:12]name=ofd_packets/00069258 [10:26:12]OFD Sender: To server: pG, [10:26:12]CommunicateWithHost lk.salyk.kg:30040 [10:26:12]ConnectInit lk.salyk.kg [10:26:12]written 0, free lines is 4095 [10:26:12]Connected sock=10 [10:26:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 10 D7 07 01 2E B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 CC DA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8A 0E 01 00 35 04 06 00 47 64 77 21 81 3B B5 AA B4 68 76 4B 95 CA [10:26:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 F9 FE 47 00 58 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8A 0E 01 00 F4 03 04 00 73 84 14 67 B6 04 01 00 00 A4 BF B9 32 D1 DA 2B B3 [10:26:12]CommunicateWithHost err = 0 [10:26:12]CheckOFDResponse [10:26:12]1017 (14) - 77093643461234 [10:26:12]1041 (16) - 0000000000963346 [10:26:12]1040 (4) - 69258 [10:26:12]1012 (4) - 20.10.2024 04:17 [10:26:12]1206 (1) - 0 [10:26:12]OFD Sender: Remove packet 69258 [10:26:12]ProducePacketName [10:26:12]name=ofd_packets/00069258 [10:26:12]NVStorageDeleteData [10:26:13]Write to MH i2c: 01 00 00 2F C3 F2 [10:26:13]Write i2c OK [10:26:13]MH_I2C_Read... [10:26:13]Read from MH i2c: 01 [10:26:13]MH_I2C_Read... [10:26:13]Read from MH i2c: 01 07 00 [10:26:13]MH_I2C_Read... [10:26:13]Read from MH i2c: 01 07 00 2F C3 00 00 00 00 00 02 0D 08 [10:26:13]RasterBufferAndPrint [10:26:13]line [10:26:13]line [10:26:13]line [10:26:13]line [10:26:13]line [10:26:13]written 0, free lines is 3336 [10:26:13]MH_Cut [10:26:13]Write to MH i2c: D1 01 00 36 C3 01 CB [10:26:13]Write i2c OK [10:26:13]MH_I2C_Read... [10:26:13]Read from MH i2c: D1 [10:26:13]MH_I2C_Read... [10:26:13]Read from MH i2c: D1 01 00 [10:26:13]MH_I2C_Read... [10:26:13]Read from MH i2c: D1 01 00 36 C3 00 CA [10:26:13]Write to MH i2c: 01 00 00 37 C3 FA [10:26:13]Write i2c OK [10:26:13]MH_I2C_Read... [10:26:13]OFD Sender: No OFD packet to send [10:26:13]*** Cut start [10:26:13]*** Partial cut [10:26:13]*** CUTSNS_PIN = 1 [10:26:13]*** CUTSNS_PIN = 0 [10:26:14]*** Brake cut motor [10:26:14]Read from MH i2c: 01 [10:26:14]MH_I2C_Read... [10:26:14]*** Stop cut motor [10:26:14]*** Cut end [10:26:14]Read from MH i2c: 01 07 00 [10:26:14]MH_I2C_Read... [10:26:14]Read from MH i2c: 01 07 00 37 C3 00 00 00 00 00 FF 0F 0F [10:26:14]process_action close_receipt done [10:26:14]requested_data is exist [10:26:14]produce_requested_data [10:26:14]requested_item fm.sn is exist - process it [10:26:14]wFMCommunicate request_size=4 [10:26:14]MH_SAM_APDU [10:26:14]CAPDU: 80 11 00 00 [10:26:14]Write to MH i2c: E2 08 00 38 C3 80 11 00 00 00 00 00 00 75 [10:26:14]Write i2c OK [10:26:14]MH_I2C_Read... [10:26:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:14]Read from MH i2c: E2 [10:26:14]MH_I2C_Read... [10:26:14]Read from MH i2c: E2 17 00 [10:26:14]MH_I2C_Read... [10:26:14]Read from MH i2c: E2 17 00 38 C3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C7 [10:26:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:26:14]wFMCommunicate OK [10:26:14]requested_item fd.num is exist - process it [10:26:14]SAM_PROTO_GetFieldsCounters [10:26:14]wFMCommunicate request_size=4 [10:26:14]MH_SAM_APDU [10:26:14]CAPDU: 80 13 00 00 [10:26:14]Write to MH i2c: E2 08 00 39 C3 80 13 00 00 00 00 00 00 78 [10:26:14]Write i2c OK [10:26:14]MH_I2C_Read... [10:26:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:14]Read from MH i2c: E2 [10:26:14]MH_I2C_Read... [10:26:14]Read from MH i2c: E2 62 00 [10:26:14]MH_I2C_Read... [10:26:14]Read from MH i2c: E2 62 00 39 C3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8A 0E 01 00 0E 04 04 00 C1 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 22 [10:26:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8A 0E 01 00 0E 04 04 00 C1 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 [10:26:14]wFMCommunicate OK [10:26:14]SAM_PROTO_GetFieldsCounters done [10:26:14]requested_item shift.num is exist - process it [10:26:14]requested_item shift.opened is exist - process it [10:26:14]req_shift_opened [10:26:14]FM_GetShiftState [10:26:14]SAM_PROTO_GetShiftState [10:26:14]wFMCommunicate request_size=4 [10:26:14]MH_SAM_APDU [10:26:14]CAPDU: 80 13 01 00 [10:26:14]Write to MH i2c: E2 08 00 3A C3 80 13 01 00 00 00 00 00 7A [10:26:14]Write i2c OK [10:26:14]MH_I2C_Read... [10:26:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:14]Read from MH i2c: E2 [10:26:14]MH_I2C_Read... [10:26:14]Read from MH i2c: E2 0E 00 [10:26:14]MH_I2C_Read... [10:26:14]Read from MH i2c: E2 0E 00 3A C3 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 80 [10:26:14]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:26:14]wFMCommunicate OK [10:26:14]SAM_PROTO_GetShiftState done [10:26:14]FM_GetShiftState done [10:26:14]req_shift_opened done [10:26:14]requested_item shift.open_date is exist - process it [10:26:14]req_shift_open_date [10:26:14]req_shift_open_date done [10:26:14]produce_requested_data done [10:26:14]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69258,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [10:26:14]process_action_free close_receipt [10:26:14]json_value_free [10:26:14]json_value_free done [10:26:14]process_json_proto returns [10:26:14]Send response to host [10:26:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69258,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [10:26:14]free response buf [10:26:14]execute_script done [10:26:14]execute_script returns [10:26:14]free content buf [10:26:14]Sock 8.Close socket [10:26:14]Sock 8.Thread stoped [10:26:18]OFD Sender: No OFD packet to send [10:26:23]OFD Sender: No OFD packet to send [10:26:28]OFD Sender: No OFD packet to send [10:26:33]OFD Sender: No OFD packet to send [10:26:38]OFD Sender: No OFD packet to send [10:26:43]OFD Sender: No OFD packet to send [10:26:48]OFD Sender: No OFD packet to send [10:26:53]OFD Sender: No OFD packet to send [10:26:58]OFD Sender: No OFD packet to send [10:27:03]OFD Sender: No OFD packet to send [10:27:08]OFD Sender: No OFD packet to send [10:27:13]OFD Sender: No OFD packet to send [10:27:18]OFD Sender: No OFD packet to send [10:27:23]OFD Sender: No OFD packet to send [10:27:28]OFD Sender: No OFD packet to send [10:27:33]OFD Sender: No OFD packet to send [10:27:38]OFD Sender: No OFD packet to send [10:27:43]OFD Sender: No OFD packet to send [10:27:48]OFD Sender: No OFD packet to send [10:27:53]OFD Sender: No OFD packet to send [10:27:58]OFD Sender: No OFD packet to send [10:28:03]OFD Sender: No OFD packet to send [10:28:08]OFD Sender: No OFD packet to send [10:28:13]OFD Sender: No OFD packet to send [10:28:14]accept exits with 9 [10:28:14]New connection [10:28:14]New thread 3067260260 created [10:28:14]Thread 3067116900 joined [10:28:14]Waiting for new connection... [10:28:14] Sock 9.Parse request [10:28:14]Sock 9.Check first char [10:28:14]Sock 9.First char is OK [10:28:14]request: POST /json_proto HTTP/1.0 [10:28:14]Method: POST [10:28:14]URL: /json_proto [10:28:14]Method is POST - this is cgi request [10:28:14]url: /json_proto [10:28:14]query_string will be loaded in cgi processing [10:28:14]execute_cgi json_proto POST (null) [10:28:14]execute_cgi path=json_proto method=POST [10:28:14]POST find Content-Length [10:28:14]Host: 172.17.50.3:8080 [10:28:14]Content-Length: 684 [10:28:14]Content-Type: application/json [10:28:14] [10:28:14]POST finish read [10:28:14]Found Content-Length = 684 [10:28:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 3.890, "sum" : 300.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:14]execute_script... [10:28:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 3.890, "sum" : 300.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:14]POST & json_proto [10:28:14]process_json_proto [10:28:14]json parsed OK: [10:28:14]protocol is kg_v1.0 [10:28:14]action value=close_receipt [10:28:14]process_action close_receipt [10:28:14]cmd_close_receipt [10:28:14]MH_GetDate [10:28:14]Write to MH i2c: F0 00 00 3B C3 ED [10:28:14]Write i2c OK [10:28:14]MH_I2C_Read... [10:28:14]Read from MH i2c: F0 [10:28:14]MH_I2C_Read... [10:28:14]Read from MH i2c: F0 09 00 [10:28:14]MH_I2C_Read... [10:28:14]Read from MH i2c: F0 09 00 3B C3 00 48 DB 14 67 6B 98 1E 66 1B [10:28:14]GetLastDocTimeStamp 1729419980 [10:28:14]current date 1729420104 [10:28:14]FM_GetShiftState [10:28:14]SAM_PROTO_GetShiftState [10:28:14]wFMCommunicate request_size=4 [10:28:14]MH_SAM_APDU [10:28:14]CAPDU: 80 13 01 00 [10:28:14]Write to MH i2c: E2 08 00 3C C3 80 13 01 00 00 00 00 00 7C [10:28:14]Write i2c OK [10:28:14]MH_I2C_Read... [10:28:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:14]Read from MH i2c: E2 [10:28:14]MH_I2C_Read... [10:28:14]Read from MH i2c: E2 0E 00 [10:28:14]MH_I2C_Read... [10:28:14]Read from MH i2c: E2 0E 00 3C C3 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 82 [10:28:14]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:28:14]wFMCommunicate OK [10:28:14]SAM_PROTO_GetShiftState done [10:28:14]FM_GetShiftState done [10:28:14]opened in 1729383220 [10:28:14]opened+sec_in_day 1729469620 [10:28:14]quantity*price = 30030 [10:28:14]sum+1 = 30032 [10:28:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 104 20.10.2024 10:28 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69259 ФПД: 2046227359384 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102824&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69259&fm=2046227359384&tin=02508201610067®Number=0000000000156251&sum=30000 [10:28:16]StoreToDocumentArchive [10:28:16]shift 193 fd 69259 [10:28:16]save to /storage/0193/doc_00069259 [10:28:16]save last doc name /storage/0193/doc_00069259 to /storage/kkm_last_doc_name [10:28:16]save OK [10:28:16]Clear old archive folders... [10:28:16]ProcessDocumentItem done err = 0, tmpTLVsize=257 [10:28:16]tlvbuf is 00809FE0 [10:28:16]SAM_PROTO_ClearQueue [10:28:16]wFMCommunicate request_size=4 [10:28:16]MH_SAM_APDU [10:28:16]CAPDU: 80 09 00 00 [10:28:16]Write to MH i2c: E2 08 00 49 C3 80 09 00 00 00 00 00 00 7E [10:28:16]Write i2c OK [10:28:16]MH_I2C_Read... [10:28:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:16]Read from MH i2c: E2 [10:28:16]MH_I2C_Read... [10:28:16]Read from MH i2c: E2 03 00 [10:28:16]MH_I2C_Read... [10:28:16]Read from MH i2c: E2 03 00 49 C3 00 90 00 80 [10:28:16]RAPDU: 90 00 [10:28:16]wFMCommunicate OK [10:28:16]SAM_PROTO_ClearQueue done [10:28:16]KKMCreateOFDPacket [10:28:16]OFDProtocolAddRootSTLVToBuf [10:28:16]FM_MakeSignedData [10:28:16]FM_MakeSignedData [10:28:16]SAM_PROTO_SignData [10:28:16]wFMCommunicate request_size=4 [10:28:16]MH_SAM_APDU [10:28:16]CAPDU: 80 0D 01 02 [10:28:16]Write to MH i2c: E2 08 00 4A C3 80 0D 01 02 00 00 00 00 86 [10:28:16]Write i2c OK [10:28:16]MH_I2C_Read... [10:28:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:16]Read from MH i2c: E2 [10:28:16]MH_I2C_Read... [10:28:16]Read from MH i2c: E2 03 00 [10:28:16]MH_I2C_Read... [10:28:16]Read from MH i2c: E2 03 00 4A C3 00 90 00 81 [10:28:16]RAPDU: 90 00 [10:28:16]wFMCommunicate OK [10:28:16]wFMCommunicate request_size=255 [10:28:16]MH_SAM_APDU [10:28:16]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 4F 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 48 DB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8B 0E 01 [10:28:16]Write to MH i2c: E2 02 01 4B C3 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 4F 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 48 DB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8B 0E 01 00 00 78 [10:28:16]Write i2c OK [10:28:16]MH_I2C_Read... [10:28:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:16]Read from MH i2c: E2 [10:28:16]MH_I2C_Read... [10:28:16]Read from MH i2c: E2 03 00 [10:28:16]MH_I2C_Read... [10:28:16]Read from MH i2c: E2 03 00 4B C3 00 90 00 82 [10:28:16]RAPDU: 90 00 [10:28:16]wFMCommunicate OK [10:28:16]wFMCommunicate request_size=16 [10:28:16]MH_SAM_APDU [10:28:16]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 01 DC 6C A7 A6 98 [10:28:16]Write to MH i2c: E2 13 00 4C C3 80 0D 02 02 0B 00 00 35 04 06 00 01 DC 6C A7 A6 98 00 00 0C [10:28:16]Write i2c OK [10:28:16]MH_I2C_Read... [10:28:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:16]Read from MH i2c: E2 [10:28:16]MH_I2C_Read... [10:28:16]Read from MH i2c: E2 03 00 [10:28:16]MH_I2C_Read... [10:28:16]Read from MH i2c: E2 03 00 4C C3 00 90 00 83 [10:28:16]RAPDU: 90 00 [10:28:16]wFMCommunicate OK [10:28:16]wFMCommunicate request_size=4 [10:28:16]MH_SAM_APDU [10:28:16]CAPDU: 80 0D 03 02 [10:28:16]Write to MH i2c: E2 08 00 4D C3 80 0D 03 02 00 00 00 00 8B [10:28:16]Write i2c OK [10:28:16]MH_I2C_Read... [10:28:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:16]Read from MH i2c: E2 [10:28:16]MH_I2C_Read... [10:28:16]Read from MH i2c: E2 0B 00 [10:28:16]MH_I2C_Read... [10:28:16]Read from MH i2c: E2 0B 00 4D C3 00 A8 63 80 03 3A DA 38 E3 90 00 49 [10:28:16]RAPDU: A8 63 80 03 3A DA 38 E3 90 00 [10:28:16]wFMCommunicate OK [10:28:16]SAM_PROTO_SignData done [10:28:16]FM_MakeSignedData done [10:28:16]CreateOFDProtocolMessage [10:28:16]wFMCommunicate request_size=4 [10:28:16]MH_SAM_APDU [10:28:16]CAPDU: 80 11 00 00 [10:28:16]Write to MH i2c: E2 08 00 4E C3 80 11 00 00 00 00 00 00 8B [10:28:16]Write i2c OK [10:28:16]MH_I2C_Read... [10:28:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:16]Read from MH i2c: E2 [10:28:16]MH_I2C_Read... [10:28:16]Read from MH i2c: E2 17 00 [10:28:16]MH_I2C_Read... [10:28:16]Read from MH i2c: E2 17 00 4E C3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DD [10:28:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:28:16]wFMCommunicate OK [10:28:16]CreateOFDProtocolMessage done [10:28:16]OFDSenderStorePacket 69259 [10:28:16]StoreOFDPacket docnum=69259 [10:28:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 2B 8B 0D 01 2F BC 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 4F 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 48 DB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8B 0E 01 00 35 04 06 00 01 DC 6C A7 A6 98 A8 63 80 03 3A DA 38 E3 [10:28:16]CheckFolder [10:28:16]dirname=/storage/ofd_packets [10:28:16]CheckFolder done [10:28:16]ProducePacketName [10:28:16]name=ofd_packets/00069259 [10:28:16]NVStorageSaveData ofd_packets/00069259 [10:28:16]File name is /storage/ofd_packets/00069259 [10:28:16]Write 307 bytes [10:28:16]NVStorageSaveData done [10:28:16]OFDSenderStorePacket done [10:28:16]KKMCreateOFDPacket done [10:28:16]NVStorageSaveData kkm_last_timestamp [10:28:16]File name is /storage/kkm_last_timestamp [10:28:16]Write 4 bytes [10:28:16]NVStorageSaveData done [10:28:16]ExternCall_PrintAddStr [10:28:16]wPrintStart [10:28:16]Write to MH i2c: 01 00 00 4F C3 12 [10:28:16]Write i2c OK [10:28:16]MH_I2C_Read... [10:28:16]Read from MH i2c: 01 [10:28:16]MH_I2C_Read... [10:28:16]Read from MH i2c: 01 07 00 [10:28:16]MH_I2C_Read... [10:28:16]Read from MH i2c: 01 07 00 4F C3 00 00 00 00 00 FF 0F 27 [10:28:16]RasterBufferAndPrint [10:28:16]line Счет N : (1)2884972 [10:28:16]line ИНН: 02508201610067 [10:28:16]line Контрольно-Кассовый Чек [10:28:16]line ПРОДАЖА [10:28:16]line ТРК (МРК, ГНК) : 21 [10:28:16]line Товар: 2710194240 [10:28:16]line D-ENERGY Дт-К-2 [10:28:16]line 3.890 * 77.20 [10:28:16]line = 300.31 [10:28:16]line НДС 12% НСП 1% [10:28:16]line > о реализуемом товаре [10:28:16]line ОКРУГЛЕНИЕ: -0.31 [10:28:16]line ИТОГО: 300.00 [10:28:16]line Внесено: 300.00 [10:28:16]line СДАЧА: 0.00 [10:28:16]line НСП 1% : 2.66 [10:28:16]line НДС 12% : 31.89 [10:28:16]line Наличными: 300.00 [10:28:16]line Безнал.: 0.00 [10:28:16]line Место: АЗС № 85 "Партнер Нефть" [10:28:16]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:28:16]line СНО: Общий режим [10:28:16]line Чек 104 20.10.2024 10:28 [10:28:16]line Смена: 193 ФФД: 1.0 [10:28:16]line ЗНМ: 0300000167 [10:28:16]line РНМ: 0000000000156251 [10:28:16]line Версия ККМ: v1.0 [10:28:16]line ФМ: 0000000000963346 [10:28:16]line ФД: 69259 [10:28:16]line ФПД: 2046227359384 [10:28:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102824&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69259&fm=2046227359384&tin=02508201610067®Number=0000000000156251&sum=30000 [10:28:16]OFD Sender: Processing packet 69259 [packets to send 18, broken 17] [10:28:16]ProducePacketName [10:28:16]name=ofd_packets/00069259 [10:28:16]OFD Sender: To server: pG, [10:28:16]CommunicateWithHost lk.salyk.kg:30040 [10:28:16]ConnectInit lk.salyk.kg [10:28:16]written 0, free lines is 4095 [10:28:17]Connected sock=10 [10:28:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 2B 8B 0D 01 2F BC 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 4F 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 48 DB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8B 0E 01 00 35 04 06 00 01 DC 6C A7 A6 98 A8 63 80 03 3A DA 38 E3 [10:28:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 E7 B0 47 00 B0 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8B 0E 01 00 F4 03 04 00 EF 84 14 67 B6 04 01 00 00 84 97 F2 D2 F4 55 9C 46 [10:28:17]CommunicateWithHost err = 0 [10:28:17]CheckOFDResponse [10:28:17]1017 (14) - 77093643461234 [10:28:17]1041 (16) - 0000000000963346 [10:28:17]1040 (4) - 69259 [10:28:17]1012 (4) - 20.10.2024 04:19 [10:28:17]1206 (1) - 0 [10:28:17]OFD Sender: Remove packet 69259 [10:28:17]ProducePacketName [10:28:17]name=ofd_packets/00069259 [10:28:17]NVStorageDeleteData [10:28:17]Write to MH i2c: 01 00 00 7A C3 3D [10:28:17]Write i2c OK [10:28:17]MH_I2C_Read... [10:28:17]Read from MH i2c: 01 [10:28:17]MH_I2C_Read... [10:28:17]Read from MH i2c: 01 07 00 [10:28:17]MH_I2C_Read... [10:28:17]Read from MH i2c: 01 07 00 7A C3 00 00 00 00 00 F4 0C 44 [10:28:17]RasterBufferAndPrint [10:28:17]line [10:28:17]line [10:28:17]line [10:28:17]line [10:28:17]line [10:28:17]written 0, free lines is 3322 [10:28:17]MH_Cut [10:28:17]Write to MH i2c: D1 01 00 81 C3 01 16 [10:28:17]Write i2c OK [10:28:17]MH_I2C_Read... [10:28:17]Read from MH i2c: D1 [10:28:17]MH_I2C_Read... [10:28:17]Read from MH i2c: D1 01 00 [10:28:17]MH_I2C_Read... [10:28:17]Read from MH i2c: D1 01 00 81 C3 00 15 [10:28:17]Write to MH i2c: 01 00 00 82 C3 45 [10:28:17]Write i2c OK [10:28:17]MH_I2C_Read... [10:28:17]OFD Sender: No OFD packet to send [10:28:18]*** Cut start [10:28:18]*** Partial cut [10:28:18]*** CUTSNS_PIN = 1 [10:28:18]*** CUTSNS_PIN = 0 [10:28:18]*** Brake cut motor [10:28:18]Read from MH i2c: 01 [10:28:18]MH_I2C_Read... [10:28:18]*** Stop cut motor [10:28:18]*** Cut end [10:28:18]Read from MH i2c: 01 07 00 [10:28:18]MH_I2C_Read... [10:28:18]Read from MH i2c: 01 07 00 82 C3 00 00 00 00 00 FF 0F 5A [10:28:18]process_action close_receipt done [10:28:18]requested_data is exist [10:28:18]produce_requested_data [10:28:18]requested_item fm.sn is exist - process it [10:28:18]wFMCommunicate request_size=4 [10:28:18]MH_SAM_APDU [10:28:18]CAPDU: 80 11 00 00 [10:28:18]Write to MH i2c: E2 08 00 83 C3 80 11 00 00 00 00 00 00 C0 [10:28:18]Write i2c OK [10:28:18]MH_I2C_Read... [10:28:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:18]Read from MH i2c: E2 [10:28:18]MH_I2C_Read... [10:28:18]Read from MH i2c: E2 17 00 [10:28:18]MH_I2C_Read... [10:28:18]Read from MH i2c: E2 17 00 83 C3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 12 [10:28:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:28:18]wFMCommunicate OK [10:28:18]requested_item fd.num is exist - process it [10:28:18]SAM_PROTO_GetFieldsCounters [10:28:18]wFMCommunicate request_size=4 [10:28:18]MH_SAM_APDU [10:28:18]CAPDU: 80 13 00 00 [10:28:18]Write to MH i2c: E2 08 00 84 C3 80 13 00 00 00 00 00 00 C3 [10:28:18]Write i2c OK [10:28:18]MH_I2C_Read... [10:28:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:18]Read from MH i2c: E2 [10:28:18]MH_I2C_Read... [10:28:18]Read from MH i2c: E2 62 00 [10:28:18]MH_I2C_Read... [10:28:18]Read from MH i2c: E2 62 00 84 C3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8B 0E 01 00 0E 04 04 00 C1 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 71 [10:28:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8B 0E 01 00 0E 04 04 00 C1 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 [10:28:18]wFMCommunicate OK [10:28:18]SAM_PROTO_GetFieldsCounters done [10:28:18]requested_item shift.num is exist - process it [10:28:18]requested_item shift.opened is exist - process it [10:28:18]req_shift_opened [10:28:18]FM_GetShiftState [10:28:18]SAM_PROTO_GetShiftState [10:28:18]wFMCommunicate request_size=4 [10:28:18]MH_SAM_APDU [10:28:18]CAPDU: 80 13 01 00 [10:28:18]Write to MH i2c: E2 08 00 85 C3 80 13 01 00 00 00 00 00 C5 [10:28:18]Write i2c OK [10:28:18]MH_I2C_Read... [10:28:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:18]Read from MH i2c: E2 [10:28:18]MH_I2C_Read... [10:28:18]Read from MH i2c: E2 0E 00 [10:28:18]MH_I2C_Read... [10:28:18]Read from MH i2c: E2 0E 00 85 C3 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 CB [10:28:18]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:28:18]wFMCommunicate OK [10:28:18]SAM_PROTO_GetShiftState done [10:28:18]FM_GetShiftState done [10:28:18]req_shift_opened done [10:28:18]requested_item shift.open_date is exist - process it [10:28:18]req_shift_open_date [10:28:18]req_shift_open_date done [10:28:18]produce_requested_data done [10:28:18]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69259,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [10:28:18]process_action_free close_receipt [10:28:18]json_value_free [10:28:18]json_value_free done [10:28:18]process_json_proto returns [10:28:18]Send response to host [10:28:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69259,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [10:28:18]free response buf [10:28:18]execute_script done [10:28:18]execute_script returns [10:28:18]free content buf [10:28:18]Sock 9.Close socket [10:28:18]Sock 9.Thread stoped [10:28:22]OFD Sender: No OFD packet to send [10:28:24]accept exits with 8 [10:28:24]New connection [10:28:24]New thread 3067116900 created [10:28:24]Thread 3067260260 joined [10:28:24]Waiting for new connection... [10:28:24] Sock 8.Parse request [10:28:24]Sock 8.Check first char [10:28:24]Sock 8.First char is OK [10:28:24]request: POST /json_proto HTTP/1.0 [10:28:24]Method: POST [10:28:24]URL: /json_proto [10:28:24]Method is POST - this is cgi request [10:28:24]url: /json_proto [10:28:24]query_string will be loaded in cgi processing [10:28:24]execute_cgi json_proto POST (null) [10:28:24]execute_cgi path=json_proto method=POST [10:28:24]POST find Content-Length [10:28:24]Host: 172.17.50.3:8080 [10:28:24]Content-Length: 678 [10:28:24]Content-Type: application/json [10:28:24] [10:28:24]POST finish read [10:28:24]Found Content-Length = 678 [10:28:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:24]execute_script... [10:28: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)2884973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:24]POST & json_proto [10:28:24]process_json_proto [10:28:24]json parsed OK: [10:28:24]protocol is kg_v1.0 [10:28:24]action value=close_receipt [10:28:24]process_action close_receipt [10:28:24]cmd_close_receipt [10:28:24]MH_GetDate [10:28:24]Write to MH i2c: F0 00 00 86 C3 38 [10:28:24]Write i2c OK [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: F0 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: F0 09 00 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: F0 09 00 86 C3 00 51 DB 14 67 6B 98 1E 66 6F [10:28:24]GetLastDocTimeStamp 1729420104 [10:28:24]current date 1729420113 [10:28:24]FM_GetShiftState [10:28:24]SAM_PROTO_GetShiftState [10:28:24]wFMCommunicate request_size=4 [10:28:24]MH_SAM_APDU [10:28:24]CAPDU: 80 13 01 00 [10:28:24]Write to MH i2c: E2 08 00 87 C3 80 13 01 00 00 00 00 00 C7 [10:28:24]Write i2c OK [10:28:24]MH_I2C_Read... [10:28:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:24]Read from MH i2c: E2 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: E2 0E 00 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: E2 0E 00 87 C3 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 CD [10:28:24]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:28:24]wFMCommunicate OK [10:28:24]SAM_PROTO_GetShiftState done [10:28:24]FM_GetShiftState done [10:28:24]opened in 1729383220 [10:28:24]opened+sec_in_day 1729469620 [10:28:24]quantity*price = 40006 [10:28:24]sum+1 = 40007 [10:28:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 105 20.10.2024 10:28 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69260 ФПД: 134494916883575 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102834&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69260&fm=134494916883575&tin=02508201610067®Number=0000000000156251&sum=40000 [10:28:25]StoreToDocumentArchive [10:28:25]shift 193 fd 69260 [10:28:25]save to /storage/0193/doc_00069260 [10:28:25]save last doc name /storage/0193/doc_00069260 to /storage/kkm_last_doc_name [10:28:25]save OK [10:28:25]Clear old archive folders... [10:28:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:28:25]tlvbuf is 005D6F30 [10:28:25]SAM_PROTO_ClearQueue [10:28:25]wFMCommunicate request_size=4 [10:28:25]MH_SAM_APDU [10:28:25]CAPDU: 80 09 00 00 [10:28:25]Write to MH i2c: E2 08 00 94 C3 80 09 00 00 00 00 00 00 C9 [10:28:25]Write i2c OK [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 [10:28:25]MH_I2C_Read... [10:28:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:25]Read from MH i2c: E2 03 00 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 03 00 94 C3 00 90 00 CB [10:28:25]RAPDU: 90 00 [10:28:25]wFMCommunicate OK [10:28:25]SAM_PROTO_ClearQueue done [10:28:25]KKMCreateOFDPacket [10:28:25]OFDProtocolAddRootSTLVToBuf [10:28:25]FM_MakeSignedData [10:28:25]FM_MakeSignedData [10:28:25]SAM_PROTO_SignData [10:28:25]wFMCommunicate request_size=4 [10:28:25]MH_SAM_APDU [10:28:25]CAPDU: 80 0D 01 02 [10:28:25]Write to MH i2c: E2 08 00 95 C3 80 0D 01 02 00 00 00 00 D1 [10:28:25]Write i2c OK [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 [10:28:25]MH_I2C_Read... [10:28:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:25]Read from MH i2c: E2 03 00 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 03 00 95 C3 00 90 00 CC [10:28:25]RAPDU: 90 00 [10:28:25]wFMCommunicate OK [10:28:25]wFMCommunicate request_size=255 [10:28:25]MH_SAM_APDU [10:28:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 52 DB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8C 0E 01 00 35 04 06 00 7A [10:28:25]Write to MH i2c: E2 02 01 96 C3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 52 DB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8C 0E 01 00 35 04 06 00 7A 00 00 10 [10:28:25]Write i2c OK [10:28:25]MH_I2C_Read... [10:28:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:25]Read from MH i2c: E2 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 03 00 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 03 00 96 C3 00 90 00 CD [10:28:25]RAPDU: 90 00 [10:28:25]wFMCommunicate OK [10:28:25]wFMCommunicate request_size=10 [10:28:25]MH_SAM_APDU [10:28:25]CAPDU: 80 0D 02 02 05 52 89 BE B4 77 [10:28:25]Write to MH i2c: E2 0D 00 97 C3 80 0D 02 02 05 00 52 89 BE B4 77 00 00 A2 [10:28:25]Write i2c OK [10:28:25]MH_I2C_Read... [10:28:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:25]Read from MH i2c: E2 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 03 00 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 03 00 97 C3 00 90 00 CE [10:28:25]RAPDU: 90 00 [10:28:25]wFMCommunicate OK [10:28:25]wFMCommunicate request_size=4 [10:28:25]MH_SAM_APDU [10:28:25]CAPDU: 80 0D 03 02 [10:28:25]Write to MH i2c: E2 08 00 98 C3 80 0D 03 02 00 00 00 00 D6 [10:28:25]Write i2c OK [10:28:25]MH_I2C_Read... [10:28:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:25]Read from MH i2c: E2 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 0B 00 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 0B 00 98 C3 00 91 69 5D 94 FE 42 F4 03 90 00 F9 [10:28:25]RAPDU: 91 69 5D 94 FE 42 F4 03 90 00 [10:28:25]wFMCommunicate OK [10:28:25]SAM_PROTO_SignData done [10:28:25]FM_MakeSignedData done [10:28:25]CreateOFDProtocolMessage [10:28:25]wFMCommunicate request_size=4 [10:28:25]MH_SAM_APDU [10:28:25]CAPDU: 80 11 00 00 [10:28:25]Write to MH i2c: E2 08 00 99 C3 80 11 00 00 00 00 00 00 D6 [10:28:25]Write i2c OK [10:28:25]MH_I2C_Read... [10:28:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:25]Read from MH i2c: E2 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 17 00 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 17 00 99 C3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 28 [10:28:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:28:25]wFMCommunicate OK [10:28:25]CreateOFDProtocolMessage done [10:28:25]OFDSenderStorePacket 69260 [10:28:25]StoreOFDPacket docnum=69260 [10:28:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 4D CE 07 01 2A 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 52 DB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8C 0E 01 00 35 04 06 00 7A 52 89 BE B4 77 91 69 5D 94 FE 42 F4 03 [10:28:25]CheckFolder [10:28:25]dirname=/storage/ofd_packets [10:28:25]CheckFolder done [10:28:25]ProducePacketName [10:28:25]name=ofd_packets/00069260 [10:28:25]NVStorageSaveData ofd_packets/00069260 [10:28:25]File name is /storage/ofd_packets/00069260 [10:28:25]Write 301 bytes [10:28:25]NVStorageSaveData done [10:28:25]OFDSenderStorePacket done [10:28:25]KKMCreateOFDPacket done [10:28:25]NVStorageSaveData kkm_last_timestamp [10:28:25]File name is /storage/kkm_last_timestamp [10:28:25]Write 4 bytes [10:28:25]NVStorageSaveData done [10:28:25]ExternCall_PrintAddStr [10:28:25]wPrintStart [10:28:25]Write to MH i2c: 01 00 00 9A C3 5D [10:28:25]Write i2c OK [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: 01 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: 01 07 00 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: 01 07 00 9A C3 00 00 00 00 00 FF 0F 72 [10:28:25]RasterBufferAndPrint [10:28:25]line Счет N : (1)2884973 [10:28:25]line ИНН: 02508201610067 [10:28:25]line Контрольно-Кассовый Чек [10:28:25]line ПРОДАЖА [10:28:25]line ТРК (МРК, ГНК) : 42 [10:28:25]line Товар: 2710124130 [10:28:25]line Аи-92-К-5 [10:28:25]line 5.980 * 66.90 [10:28:25]line = 400.06 [10:28:25]line НДС 12% НСП 1% [10:28:25]line > о реализуемом товаре [10:28:25]line ОКРУГЛЕНИЕ: -0.06 [10:28:25]line ИТОГО: 400.00 [10:28:25]line Внесено: 400.00 [10:28:25]line СДАЧА: 0.00 [10:28:25]line НСП 1% : 3.54 [10:28:25]line НДС 12% : 42.48 [10:28:25]line Наличными: 400.00 [10:28:25]line Безнал.: 0.00 [10:28:25]line Место: АЗС № 85 "Партнер Нефть" [10:28:25]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:28:25]line СНО: Общий режим [10:28:25]line Чек 105 20.10.2024 10:28 [10:28:25]line Смена: 193 ФФД: 1.0 [10:28:25]line ЗНМ: 0300000167 [10:28:25]line РНМ: 0000000000156251 [10:28:25]line Версия ККМ: v1.0 [10:28:25]line ФМ: 0000000000963346 [10:28:25]line ФД: 69260 [10:28:25]line ФПД: 134494916883575 [10:28:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102834&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69260&fm=134494916883575&tin=02508201610067®Number=0000000000156251&sum=40000 [10:28:25]written 0, free lines is 4095 [10:28:25]OFD Sender: Processing packet 69260 [packets to send 18, broken 17] [10:28:25]ProducePacketName [10:28:25]name=ofd_packets/00069260 [10:28:25]OFD Sender: To server: pG, [10:28:25]CommunicateWithHost lk.salyk.kg:30040 [10:28:25]ConnectInit lk.salyk.kg [10:28:26]Connected sock=10 [10:28:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 4D CE 07 01 2A 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 52 DB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8C 0E 01 00 35 04 06 00 7A 52 89 BE B4 77 91 69 5D 94 FE 42 F4 03 [10:28:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 49 44 47 00 B3 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8C 0E 01 00 F4 03 04 00 F8 84 14 67 B6 04 01 00 00 83 EA 36 0B D8 F2 5B C0 [10:28:26]CommunicateWithHost err = 0 [10:28:26]CheckOFDResponse [10:28:26]1017 (14) - 77093643461234 [10:28:26]1041 (16) - 0000000000963346 [10:28:26]1040 (4) - 69260 [10:28:26]1012 (4) - 20.10.2024 04:20 [10:28:26]1206 (1) - 0 [10:28:26]OFD Sender: Remove packet 69260 [10:28:26]ProducePacketName [10:28:26]name=ofd_packets/00069260 [10:28:26]NVStorageDeleteData [10:28:26]Write to MH i2c: 01 00 00 C5 C3 88 [10:28:26]Write i2c OK [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: 01 [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: 01 07 00 [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: 01 07 00 C5 C3 00 00 00 00 00 06 0D A2 [10:28:26]RasterBufferAndPrint [10:28:26]line [10:28:26]line [10:28:26]line [10:28:26]line [10:28:26]line [10:28:26]written 0, free lines is 3346 [10:28:26]MH_Cut [10:28:26]Write to MH i2c: D1 01 00 CC C3 01 61 [10:28:26]Write i2c OK [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: D1 [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: D1 01 00 [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: D1 01 00 CC C3 00 60 [10:28:26]Write to MH i2c: 01 00 00 CD C3 90 [10:28:26]Write i2c OK [10:28:26]MH_I2C_Read... [10:28:26]OFD Sender: No OFD packet to send [10:28:27]*** Cut start [10:28:27]*** Partial cut [10:28:27]*** CUTSNS_PIN = 1 [10:28:27]*** CUTSNS_PIN = 0 [10:28:27]*** Brake cut motor [10:28:27]Read from MH i2c: 01 [10:28:27]MH_I2C_Read... [10:28:27]*** Stop cut motor [10:28:27]*** Cut end [10:28:27]Read from MH i2c: 01 07 00 [10:28:27]MH_I2C_Read... [10:28:27]Read from MH i2c: 01 07 00 CD C3 00 00 00 00 00 FF 0F A5 [10:28:27]process_action close_receipt done [10:28:27]requested_data is exist [10:28:27]produce_requested_data [10:28:27]requested_item fm.sn is exist - process it [10:28:27]wFMCommunicate request_size=4 [10:28:27]MH_SAM_APDU [10:28:27]CAPDU: 80 11 00 00 [10:28:27]Write to MH i2c: E2 08 00 CE C3 80 11 00 00 00 00 00 00 0B [10:28:27]Write i2c OK [10:28:27]MH_I2C_Read... [10:28:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:27]Read from MH i2c: E2 [10:28:27]MH_I2C_Read... [10:28:27]Read from MH i2c: E2 17 00 [10:28:27]MH_I2C_Read... [10:28:27]Read from MH i2c: E2 17 00 CE C3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5D [10:28:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:28:27]wFMCommunicate OK [10:28:27]requested_item fd.num is exist - process it [10:28:27]SAM_PROTO_GetFieldsCounters [10:28:27]wFMCommunicate request_size=4 [10:28:27]MH_SAM_APDU [10:28:27]CAPDU: 80 13 00 00 [10:28:27]Write to MH i2c: E2 08 00 CF C3 80 13 00 00 00 00 00 00 0E [10:28:27]Write i2c OK [10:28:27]MH_I2C_Read... [10:28:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:27]Read from MH i2c: E2 [10:28:27]MH_I2C_Read... [10:28:27]Read from MH i2c: E2 62 00 [10:28:27]MH_I2C_Read... [10:28:27]Read from MH i2c: E2 62 00 CF C3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8C 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [10:28:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8C 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:28:27]wFMCommunicate OK [10:28:27]SAM_PROTO_GetFieldsCounters done [10:28:27]requested_item shift.num is exist - process it [10:28:27]requested_item shift.opened is exist - process it [10:28:27]req_shift_opened [10:28:27]FM_GetShiftState [10:28:27]SAM_PROTO_GetShiftState [10:28:27]wFMCommunicate request_size=4 [10:28:27]MH_SAM_APDU [10:28:27]CAPDU: 80 13 01 00 [10:28:27]Write to MH i2c: E2 08 00 D0 C3 80 13 01 00 00 00 00 00 10 [10:28:27]Write i2c OK [10:28:27]MH_I2C_Read... [10:28:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:27]Read from MH i2c: E2 [10:28:27]MH_I2C_Read... [10:28:27]Read from MH i2c: E2 0E 00 [10:28:27]MH_I2C_Read... [10:28:27]Read from MH i2c: E2 0E 00 D0 C3 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 16 [10:28:27]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:28:27]wFMCommunicate OK [10:28:27]SAM_PROTO_GetShiftState done [10:28:27]FM_GetShiftState done [10:28:27]req_shift_opened done [10:28:27]requested_item shift.open_date is exist - process it [10:28:27]req_shift_open_date [10:28:27]req_shift_open_date done [10:28:27]produce_requested_data done [10:28:27]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69260,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [10:28:27]process_action_free close_receipt [10:28:27]json_value_free [10:28:27]json_value_free done [10:28:27]process_json_proto returns [10:28:27]Send response to host [10:28:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69260,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [10:28:27]free response buf [10:28:27]execute_script done [10:28:27]execute_script returns [10:28:27]free content buf [10:28:27]Sock 8.Close socket [10:28:27]Sock 8.Thread stoped [10:28:31]OFD Sender: No OFD packet to send [10:28:36]OFD Sender: No OFD packet to send [10:28:41]OFD Sender: No OFD packet to send [10:28:41]accept exits with 9 [10:28:41]New connection [10:28:41]New thread 3067260260 created [10:28:41]Thread 3067116900 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.50.3:8080 [10:28:41]Content-Length: 678 [10:28:41]Content-Type: application/json [10:28:41] [10:28:41]POST finish read [10:28:41]Found Content-Length = 678 [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)2884974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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)2884974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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 D1 C3 83 [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 D1 C3 00 63 DB 14 67 6B 98 1E 66 CC [10:28:41]GetLastDocTimeStamp 1729420114 [10:28:41]current date 1729420131 [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 D2 C3 80 13 01 00 00 00 00 00 12 [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 D2 C3 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 18 [10:28:41]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:28:41]wFMCommunicate OK [10:28:41]SAM_PROTO_GetShiftState done [10:28:41]FM_GetShiftState done [10:28:41]opened in 1729383220 [10:28:41]opened+sec_in_day 1729469620 [10:28:41]quantity*price = 60009 [10:28:41]sum+1 = 60010 [10:28:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 106 20.10.2024 10:28 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69261 ФПД: 141134215932087 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102851&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69261&fm=141134215932087&tin=02508201610067®Number=0000000000156251&sum=60000 [10:28:43]StoreToDocumentArchive [10:28:43]shift 193 fd 69261 [10:28:43]save to /storage/0193/doc_00069261 [10:28:43]save last doc name /storage/0193/doc_00069261 to /storage/kkm_last_doc_name [10:28:43]save OK [10:28:43]Clear old archive folders... [10:28:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:28:43]tlvbuf is 006B4510 [10:28:43]SAM_PROTO_ClearQueue [10:28:43]wFMCommunicate request_size=4 [10:28:43]MH_SAM_APDU [10:28:43]CAPDU: 80 09 00 00 [10:28:43]Write to MH i2c: E2 08 00 DF C3 80 09 00 00 00 00 00 00 14 [10:28:43]Write i2c OK [10:28:43]MH_I2C_Read... [10:28:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:43]Read from MH i2c: E2 [10:28:43]MH_I2C_Read... [10:28:43]Read from MH i2c: E2 03 00 [10:28:43]MH_I2C_Read... [10:28:43]Read from MH i2c: E2 03 00 DF C3 00 90 00 16 [10:28:43]RAPDU: 90 00 [10:28:43]wFMCommunicate OK [10:28:43]SAM_PROTO_ClearQueue done [10:28:43]KKMCreateOFDPacket [10:28:43]OFDProtocolAddRootSTLVToBuf [10:28:43]FM_MakeSignedData [10:28:43]FM_MakeSignedData [10:28:43]SAM_PROTO_SignData [10:28:43]wFMCommunicate request_size=4 [10:28:43]MH_SAM_APDU [10:28:43]CAPDU: 80 0D 01 02 [10:28:43]Write to MH i2c: E2 08 00 E0 C3 80 0D 01 02 00 00 00 00 1C [10:28:43]Write i2c OK [10:28:43]MH_I2C_Read... [10:28:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:43]Read from MH i2c: E2 [10:28:43]MH_I2C_Read... [10:28:43]Read from MH i2c: E2 03 00 [10:28:43]MH_I2C_Read... [10:28:43]Read from MH i2c: E2 03 00 E0 C3 00 90 00 17 [10:28:43]RAPDU: 90 00 [10:28:43]wFMCommunicate OK [10:28:43]wFMCommunicate request_size=255 [10:28:43]MH_SAM_APDU [10:28:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 63 DB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8D 0E 01 00 35 04 06 00 80 [10:28:43]Write to MH i2c: E2 02 01 E1 C3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 63 DB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8D 0E 01 00 35 04 06 00 80 00 00 82 [10:28:43]Write i2c OK [10:28:43]MH_I2C_Read... [10:28:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:43]Read from MH i2c: E2 [10:28:43]MH_I2C_Read... [10:28:43]Read from MH i2c: E2 03 00 [10:28:43]MH_I2C_Read... [10:28:43]Read from MH i2c: E2 03 00 E1 C3 00 90 00 18 [10:28:43]RAPDU: 90 00 [10:28:43]wFMCommunicate OK [10:28:43]wFMCommunicate request_size=10 [10:28:43]MH_SAM_APDU [10:28:43]CAPDU: 80 0D 02 02 05 5C 5E CE 68 B7 [10:28:43]Write to MH i2c: E2 0D 00 E2 C3 80 0D 02 02 05 00 5C 5E CE 68 B7 00 00 D0 [10:28:43]Write i2c OK [10:28:43]MH_I2C_Read... [10:28:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:43]Read from MH i2c: E2 [10:28:43]MH_I2C_Read... [10:28:43]Read from MH i2c: E2 03 00 [10:28:43]MH_I2C_Read... [10:28:43]Read from MH i2c: E2 03 00 E2 C3 00 90 00 19 [10:28:43]RAPDU: 90 00 [10:28:43]wFMCommunicate OK [10:28:43]wFMCommunicate request_size=4 [10:28:43]MH_SAM_APDU [10:28:43]CAPDU: 80 0D 03 02 [10:28:43]Write to MH i2c: E2 08 00 E3 C3 80 0D 03 02 00 00 00 00 21 [10:28:43]Write i2c OK [10:28:43]MH_I2C_Read... [10:28:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:43]Read from MH i2c: E2 [10:28:43]MH_I2C_Read... [10:28:43]Read from MH i2c: E2 0B 00 [10:28:43]MH_I2C_Read... [10:28:43]Read from MH i2c: E2 0B 00 E3 C3 00 49 62 3B FF B3 24 10 CC 90 00 BA [10:28:43]RAPDU: 49 62 3B FF B3 24 10 CC 90 00 [10:28:43]wFMCommunicate OK [10:28:43]SAM_PROTO_SignData done [10:28:43]FM_MakeSignedData done [10:28:43]CreateOFDProtocolMessage [10:28:43]wFMCommunicate request_size=4 [10:28:43]MH_SAM_APDU [10:28:43]CAPDU: 80 11 00 00 [10:28:43]Write to MH i2c: E2 08 00 E4 C3 80 11 00 00 00 00 00 00 21 [10:28:43]Write i2c OK [10:28:43]MH_I2C_Read... [10:28:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:43]Read from MH i2c: E2 [10:28:43]MH_I2C_Read... [10:28:43]Read from MH i2c: E2 17 00 [10:28:43]MH_I2C_Read... [10:28:43]Read from MH i2c: E2 17 00 E4 C3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 73 [10:28:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:28:43]wFMCommunicate OK [10:28:43]CreateOFDProtocolMessage done [10:28:43]OFDSenderStorePacket 69261 [10:28:43]StoreOFDPacket docnum=69261 [10:28:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 DA 0C 07 01 F9 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 63 DB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8D 0E 01 00 35 04 06 00 80 5C 5E CE 68 B7 49 62 3B FF B3 24 10 CC [10:28:43]CheckFolder [10:28:43]dirname=/storage/ofd_packets [10:28:43]CheckFolder done [10:28:43]ProducePacketName [10:28:43]name=ofd_packets/00069261 [10:28:43]NVStorageSaveData ofd_packets/00069261 [10:28:43]File name is /storage/ofd_packets/00069261 [10:28:43]Write 301 bytes [10:28:43]NVStorageSaveData done [10:28:43]OFDSenderStorePacket done [10:28:43]KKMCreateOFDPacket done [10:28:43]NVStorageSaveData kkm_last_timestamp [10:28:43]File name is /storage/kkm_last_timestamp [10:28:43]Write 4 bytes [10:28:43]NVStorageSaveData done [10:28:43]ExternCall_PrintAddStr [10:28:43]wPrintStart [10:28:43]Write to MH i2c: 01 00 00 E5 C3 A8 [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 E5 C3 00 00 00 00 00 FF 0F BD [10:28:43]RasterBufferAndPrint [10:28:43]line Счет N : (1)2884974 [10:28:43]line ИНН: 02508201610067 [10:28:43]line Контрольно-Кассовый Чек [10:28:43]line ПРОДАЖА [10:28:43]line ТРК (МРК, ГНК) : 32 [10:28:43]line Товар: 2710124130 [10:28:43]line Аи-92-К-5 [10:28:43]line 8.970 * 66.90 [10:28:43]line = 600.09 [10:28:43]line НДС 12% НСП 1% [10:28:43]line > о реализуемом товаре [10:28:43]line ОКРУГЛЕНИЕ: -0.09 [10:28:43]line ИТОГО: 600.00 [10:28:43]line Внесено: 600.00 [10:28:43]line СДАЧА: 0.00 [10:28:43]line НСП 1% : 5.31 [10:28:43]line НДС 12% : 63.73 [10:28:43]line Наличными: 600.00 [10:28:43]line Безнал.: 0.00 [10:28:43]line Место: АЗС № 85 "Партнер Нефть" [10:28:43]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:28:43]line СНО: Общий режим [10:28:43]line Чек 106 20.10.2024 10:28 [10:28:43]line Смена: 193 ФФД: 1.0 [10:28:43]line ЗНМ: 0300000167 [10:28:43]line РНМ: 0000000000156251 [10:28:43]line Версия ККМ: v1.0 [10:28:43]line ФМ: 0000000000963346 [10:28:43]line ФД: 69261 [10:28:43]line ФПД: 141134215932087 [10:28:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102851&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69261&fm=141134215932087&tin=02508201610067®Number=0000000000156251&sum=60000 [10:28:43]written 0, free lines is 4095 [10:28:43]OFD Sender: Processing packet 69261 [packets to send 18, broken 17] [10:28:43]ProducePacketName [10:28:43]name=ofd_packets/00069261 [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]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 30 39 36 33 33 34 36 0F 01 00 00 DA 0C 07 01 F9 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 63 DB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8D 0E 01 00 35 04 06 00 80 5C 5E CE 68 B7 49 62 3B FF B3 24 10 CC [10:28:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 5E B8 47 00 A8 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8D 0E 01 00 F4 03 04 00 0A 85 14 67 B6 04 01 00 00 AE C9 BC 84 2C 01 89 04 [10:28:44]CommunicateWithHost err = 0 [10:28:44]CheckOFDResponse [10:28:44]1017 (14) - 77093643461234 [10:28:44]1041 (16) - 0000000000963346 [10:28:44]1040 (4) - 69261 [10:28:44]1012 (4) - 20.10.2024 04:20 [10:28:44]1206 (1) - 0 [10:28:44]OFD Sender: Remove packet 69261 [10:28:44]ProducePacketName [10:28:44]name=ofd_packets/00069261 [10:28:44]NVStorageDeleteData [10:28:44]Write to MH i2c: 01 00 00 10 C4 D4 [10:28:44]Write i2c OK [10:28:44]MH_I2C_Read... [10:28:44]Read from MH i2c: 01 [10:28:44]MH_I2C_Read... [10:28:44]Read from MH i2c: 01 07 00 [10:28:44]MH_I2C_Read... [10:28:44]Read from MH i2c: 01 07 00 10 C4 00 00 00 00 00 05 0D ED [10:28:44]RasterBufferAndPrint [10:28:44]line [10:28:44]line [10:28:44]line [10:28:44]line [10:28:44]line [10:28:44]written 0, free lines is 3345 [10:28:44]MH_Cut [10:28:44]Write to MH i2c: D1 01 00 17 C4 01 AD [10:28:44]Write i2c OK [10:28:44]MH_I2C_Read... [10:28:44]Read from MH i2c: D1 [10:28:44]MH_I2C_Read... [10:28:44]Read from MH i2c: D1 01 00 [10:28:44]MH_I2C_Read... [10:28:44]Read from MH i2c: D1 01 00 17 C4 00 AC [10:28:44]Write to MH i2c: 01 00 00 18 C4 DC [10:28:44]Write i2c OK [10:28:44]MH_I2C_Read... [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:45]*** 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 18 C4 00 00 00 00 00 FF 0F F1 [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 19 C4 80 11 00 00 00 00 00 00 57 [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 19 C4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A9 [10:28:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 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 1A C4 80 13 00 00 00 00 00 00 5A [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 1A C4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8D 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [10:28:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8D 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [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 1B C4 80 13 01 00 00 00 00 00 5C [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 1B C4 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 62 [10:28:45]RAPDU: 09 00 01 34 4B 14 67 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":"0000000000963346","fd.num":69261,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [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":"0000000000963346","fd.num":69261,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [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:23]accept exits with 8 [10:29:23]New connection [10:29:23]New thread 3067116900 created [10:29:23]Thread 3067260260 joined [10:29:23]Waiting for new connection... [10:29:23] Sock 8.Parse request [10:29:23]Sock 8.Check first char [10:29:23]Sock 8.First char is OK [10:29:23]request: POST /json_proto HTTP/1.0 [10:29:23]Method: POST [10:29:23]URL: /json_proto [10:29:23]Method is POST - this is cgi request [10:29:23]url: /json_proto [10:29:23]query_string will be loaded in cgi processing [10:29:23]execute_cgi json_proto POST (null) [10:29:23]execute_cgi path=json_proto method=POST [10:29:23]POST find Content-Length [10:29:23]Host: 172.17.50.3:8080 [10:29:23]Content-Length: 678 [10:29:23]Content-Type: application/json [10:29:23] [10:29:23]POST finish read [10:29:23]Found Content-Length = 678 [10:29:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:23]execute_script... [10:29:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:23]POST & json_proto [10:29:23]process_json_proto [10:29:23]json parsed OK: [10:29:23]protocol is kg_v1.0 [10:29:23]action value=close_receipt [10:29:23]process_action close_receipt [10:29:23]cmd_close_receipt [10:29:23]MH_GetDate [10:29:23]Write to MH i2c: F0 00 00 1C C4 CF [10:29:23]Write i2c OK [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: F0 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: F0 09 00 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: F0 09 00 1C C4 00 8D DB 14 67 6B 98 1E 66 42 [10:29:23]GetLastDocTimeStamp 1729420131 [10:29:23]current date 1729420173 [10:29:23]FM_GetShiftState [10:29:23]SAM_PROTO_GetShiftState [10:29:23]wFMCommunicate request_size=4 [10:29:23]MH_SAM_APDU [10:29:23]CAPDU: 80 13 01 00 [10:29:23]Write to MH i2c: E2 08 00 1D C4 80 13 01 00 00 00 00 00 5E [10:29:23]Write i2c OK [10:29:23]MH_I2C_Read... [10:29:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:23]Read from MH i2c: E2 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: E2 0E 00 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: E2 0E 00 1D C4 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 64 [10:29:23]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:29:23]wFMCommunicate OK [10:29:23]SAM_PROTO_GetShiftState done [10:29:23]FM_GetShiftState done [10:29:23]opened in 1729383220 [10:29:23]opened+sec_in_day 1729469620 [10:29:23]quantity*price = 30038 [10:29:23]sum+1 = 30039 [10:29:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 107 20.10.2024 10:29 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69262 ФПД: 279606356379816 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102933&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69262&fm=279606356379816&tin=02508201610067®Number=0000000000156251&sum=30000 [10:29:24]StoreToDocumentArchive [10:29:24]shift 193 fd 69262 [10:29:24]save to /storage/0193/doc_00069262 [10:29:24]save last doc name /storage/0193/doc_00069262 to /storage/kkm_last_doc_name [10:29:24]save OK [10:29:24]Clear old archive folders... [10:29:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:29:24]tlvbuf is 0082EBA0 [10:29:24]SAM_PROTO_ClearQueue [10:29:24]wFMCommunicate request_size=4 [10:29:24]MH_SAM_APDU [10:29:24]CAPDU: 80 09 00 00 [10:29:24]Write to MH i2c: E2 08 00 2A C4 80 09 00 00 00 00 00 00 60 [10:29:24]Write i2c OK [10:29:24]MH_I2C_Read... [10:29:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:24]Read from MH i2c: E2 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: E2 03 00 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: E2 03 00 2A C4 00 90 00 62 [10:29:24]RAPDU: 90 00 [10:29:24]wFMCommunicate OK [10:29:24]SAM_PROTO_ClearQueue done [10:29:24]KKMCreateOFDPacket [10:29:24]OFDProtocolAddRootSTLVToBuf [10:29:24]FM_MakeSignedData [10:29:24]FM_MakeSignedData [10:29:24]SAM_PROTO_SignData [10:29:24]wFMCommunicate request_size=4 [10:29:24]MH_SAM_APDU [10:29:24]CAPDU: 80 0D 01 02 [10:29:24]Write to MH i2c: E2 08 00 2B C4 80 0D 01 02 00 00 00 00 68 [10:29:24]Write i2c OK [10:29:24]MH_I2C_Read... [10:29:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:24]Read from MH i2c: E2 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: E2 03 00 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: E2 03 00 2B C4 00 90 00 63 [10:29:24]RAPDU: 90 00 [10:29:24]wFMCommunicate OK [10:29:24]wFMCommunicate request_size=255 [10:29:24]MH_SAM_APDU [10:29:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 8D DB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8E 0E 01 00 35 04 06 00 FE [10:29:24]Write to MH i2c: E2 02 01 2C C4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 8D DB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8E 0E 01 00 35 04 06 00 FE 00 00 8F [10:29:24]Write i2c OK [10:29:24]MH_I2C_Read... [10:29:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:25]Read from MH i2c: E2 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 03 00 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 03 00 2C C4 00 90 00 64 [10:29:25]RAPDU: 90 00 [10:29:25]wFMCommunicate OK [10:29:25]wFMCommunicate request_size=10 [10:29:25]MH_SAM_APDU [10:29:25]CAPDU: 80 0D 02 02 05 4C ED 8C 88 A8 [10:29:25]Write to MH i2c: E2 0D 00 2D C4 80 0D 02 02 05 00 4C ED 8C 88 A8 00 00 6A [10:29:25]Write i2c OK [10:29:25]MH_I2C_Read... [10:29:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:25]Read from MH i2c: E2 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 03 00 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 03 00 2D C4 00 90 00 65 [10:29:25]RAPDU: 90 00 [10:29:25]wFMCommunicate OK [10:29:25]wFMCommunicate request_size=4 [10:29:25]MH_SAM_APDU [10:29:25]CAPDU: 80 0D 03 02 [10:29:25]Write to MH i2c: E2 08 00 2E C4 80 0D 03 02 00 00 00 00 6D [10:29:25]Write i2c OK [10:29:25]MH_I2C_Read... [10:29:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:25]Read from MH i2c: E2 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 0B 00 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 0B 00 2E C4 00 9B 0F 44 3F D4 F8 8B 5A 90 00 4C [10:29:25]RAPDU: 9B 0F 44 3F D4 F8 8B 5A 90 00 [10:29:25]wFMCommunicate OK [10:29:25]SAM_PROTO_SignData done [10:29:25]FM_MakeSignedData done [10:29:25]CreateOFDProtocolMessage [10:29:25]wFMCommunicate request_size=4 [10:29:25]MH_SAM_APDU [10:29:25]CAPDU: 80 11 00 00 [10:29:25]Write to MH i2c: E2 08 00 2F C4 80 11 00 00 00 00 00 00 6D [10:29:25]Write i2c OK [10:29:25]MH_I2C_Read... [10:29:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:25]Read from MH i2c: E2 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 17 00 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 17 00 2F C4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BF [10:29:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:29:25]wFMCommunicate OK [10:29:25]CreateOFDProtocolMessage done [10:29:25]OFDSenderStorePacket 69262 [10:29:25]StoreOFDPacket docnum=69262 [10:29:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 41 5D 07 01 C2 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 8D DB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8E 0E 01 00 35 04 06 00 FE 4C ED 8C 88 A8 9B 0F 44 3F D4 F8 8B 5A [10:29:25]CheckFolder [10:29:25]dirname=/storage/ofd_packets [10:29:25]CheckFolder done [10:29:25]ProducePacketName [10:29:25]name=ofd_packets/00069262 [10:29:25]NVStorageSaveData ofd_packets/00069262 [10:29:25]File name is /storage/ofd_packets/00069262 [10:29:25]Write 301 bytes [10:29:25]NVStorageSaveData done [10:29:25]OFDSenderStorePacket done [10:29:25]KKMCreateOFDPacket done [10:29:25]NVStorageSaveData kkm_last_timestamp [10:29:25]File name is /storage/kkm_last_timestamp [10:29:25]Write 4 bytes [10:29:25]NVStorageSaveData done [10:29:25]ExternCall_PrintAddStr [10:29:25]wPrintStart [10:29:25]Write to MH i2c: 01 00 00 30 C4 F4 [10:29:25]Write i2c OK [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: 01 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: 01 07 00 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: 01 07 00 30 C4 00 00 00 00 00 FF 0F 09 [10:29:25]RasterBufferAndPrint [10:29:25]line Счет N : (1)2884975 [10:29:25]line ИНН: 02508201610067 [10:29:25]line Контрольно-Кассовый Чек [10:29:25]line ПРОДАЖА [10:29:25]line ТРК (МРК, ГНК) : 12 [10:29:25]line Товар: 2710124130 [10:29:25]line Аи-92-К-5 [10:29:25]line 4.490 * 66.90 [10:29:25]line = 300.38 [10:29:25]line НДС 12% НСП 1% [10:29:25]line > о реализуемом товаре [10:29:25]line ОКРУГЛЕНИЕ: -0.38 [10:29:25]line ИТОГО: 300.00 [10:29:25]line Внесено: 300.00 [10:29:25]line СДАЧА: 0.00 [10:29:25]line НСП 1% : 2.66 [10:29:25]line НДС 12% : 31.90 [10:29:25]line Наличными: 300.00 [10:29:25]line Безнал.: 0.00 [10:29:25]line Место: АЗС № 85 "Партнер Нефть" [10:29:25]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:29:25]line СНО: Общий режим [10:29:25]line Чек 107 20.10.2024 10:29 [10:29:25]line Смена: 193 ФФД: 1.0 [10:29:25]line ЗНМ: 0300000167 [10:29:25]line РНМ: 0000000000156251 [10:29:25]line Версия ККМ: v1.0 [10:29:25]line ФМ: 0000000000963346 [10:29:25]line ФД: 69262 [10:29:25]line ФПД: 279606356379816 [10:29:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102933&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69262&fm=279606356379816&tin=02508201610067®Number=0000000000156251&sum=30000 [10:29:25]OFD Sender: Processing packet 69262 [packets to send 18, broken 17] [10:29:25]ProducePacketName [10:29:25]name=ofd_packets/00069262 [10:29:25]OFD Sender: To server: pG, [10:29:25]CommunicateWithHost lk.salyk.kg:30040 [10:29:25]ConnectInit lk.salyk.kg [10:29:25]written 0, free lines is 4095 [10:29:25]Connected sock=10 [10:29:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 41 5D 07 01 C2 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 8D DB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8E 0E 01 00 35 04 06 00 FE 4C ED 8C 88 A8 9B 0F 44 3F D4 F8 8B 5A [10:29:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 B6 ED 47 00 8A 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8E 0E 01 00 F4 03 04 00 34 85 14 67 B6 04 01 00 00 A0 71 34 2F 3E 2D FD CD [10:29:25]CommunicateWithHost err = 0 [10:29:25]CheckOFDResponse [10:29:25]1017 (14) - 77093643461234 [10:29:25]1041 (16) - 0000000000963346 [10:29:25]1040 (4) - 69262 [10:29:25]1012 (4) - 20.10.2024 04:21 [10:29:25]1206 (1) - 0 [10:29:25]OFD Sender: Remove packet 69262 [10:29:25]ProducePacketName [10:29:25]name=ofd_packets/00069262 [10:29:25]NVStorageDeleteData [10:29:26]Write to MH i2c: 01 00 00 5B C4 1F [10:29:26]Write i2c OK [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: 01 [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: 01 07 00 [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: 01 07 00 5B C4 00 00 00 00 00 00 0D 33 [10:29:26]RasterBufferAndPrint [10:29:26]line [10:29:26]line [10:29:26]line [10:29:26]line [10:29:26]line [10:29:26]written 0, free lines is 3337 [10:29:26]MH_Cut [10:29:26]Write to MH i2c: D1 01 00 62 C4 01 F8 [10:29:26]Write i2c OK [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: D1 [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: D1 01 00 [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: D1 01 00 62 C4 00 F7 [10:29:26]Write to MH i2c: 01 00 00 63 C4 27 [10:29:26]Write i2c OK [10:29:26]MH_I2C_Read... [10:29:26]OFD Sender: No OFD packet to send [10:29:26]*** Cut start [10:29:26]*** Partial cut [10:29:26]*** CUTSNS_PIN = 1 [10:29:26]*** CUTSNS_PIN = 0 [10:29:27]*** Brake cut motor [10:29:27]Read from MH i2c: 01 [10:29:27]MH_I2C_Read... [10:29:27]*** Stop cut motor [10:29:27]*** Cut end [10:29:27]Read from MH i2c: 01 07 00 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: 01 07 00 63 C4 00 00 00 00 00 FF 0F 3C [10:29:27]process_action close_receipt done [10:29:27]requested_data is exist [10:29:27]produce_requested_data [10:29:27]requested_item fm.sn is exist - process it [10:29:27]wFMCommunicate request_size=4 [10:29:27]MH_SAM_APDU [10:29:27]CAPDU: 80 11 00 00 [10:29:27]Write to MH i2c: E2 08 00 64 C4 80 11 00 00 00 00 00 00 A2 [10:29:27]Write i2c OK [10:29:27]MH_I2C_Read... [10:29:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:27]Read from MH i2c: E2 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: E2 17 00 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: E2 17 00 64 C4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F4 [10:29:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:29:27]wFMCommunicate OK [10:29:27]requested_item fd.num is exist - process it [10:29:27]SAM_PROTO_GetFieldsCounters [10:29:27]wFMCommunicate request_size=4 [10:29:27]MH_SAM_APDU [10:29:27]CAPDU: 80 13 00 00 [10:29:27]Write to MH i2c: E2 08 00 65 C4 80 13 00 00 00 00 00 00 A5 [10:29:27]Write i2c OK [10:29:27]MH_I2C_Read... [10:29:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:27]Read from MH i2c: E2 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: E2 62 00 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: E2 62 00 65 C4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8E 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [10:29:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8E 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:29:27]wFMCommunicate OK [10:29:27]SAM_PROTO_GetFieldsCounters done [10:29:27]requested_item shift.num is exist - process it [10:29:27]requested_item shift.opened is exist - process it [10:29:27]req_shift_opened [10:29:27]FM_GetShiftState [10:29:27]SAM_PROTO_GetShiftState [10:29:27]wFMCommunicate request_size=4 [10:29:27]MH_SAM_APDU [10:29:27]CAPDU: 80 13 01 00 [10:29:27]Write to MH i2c: E2 08 00 66 C4 80 13 01 00 00 00 00 00 A7 [10:29:27]Write i2c OK [10:29:27]MH_I2C_Read... [10:29:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:27]Read from MH i2c: E2 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: E2 0E 00 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: E2 0E 00 66 C4 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 AD [10:29:27]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:29:27]wFMCommunicate OK [10:29:27]SAM_PROTO_GetShiftState done [10:29:27]FM_GetShiftState done [10:29:27]req_shift_opened done [10:29:27]requested_item shift.open_date is exist - process it [10:29:27]req_shift_open_date [10:29:27]req_shift_open_date done [10:29:27]produce_requested_data done [10:29:27]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69262,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [10:29:27]process_action_free close_receipt [10:29:27]json_value_free [10:29:27]json_value_free done [10:29:27]process_json_proto returns [10:29:27]Send response to host [10:29:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69262,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [10:29:27]free response buf [10:29:27]execute_script done [10:29:27]execute_script returns [10:29:27]free content buf [10:29:27]Sock 8.Close socket [10:29:27]Sock 8.Thread stoped [10:29:31]OFD Sender: No OFD packet to send [10:29:36]OFD Sender: No OFD packet to send [10:29:41]OFD Sender: No OFD packet to send [10:29:46]OFD Sender: No OFD packet to send [10:29:51]OFD Sender: No OFD packet to send [10:29:56]OFD Sender: No OFD packet to send [10:30:01]OFD Sender: No OFD packet to send [10:30:06]OFD Sender: No OFD packet to send [10:30:11]OFD Sender: No OFD packet to send [10:30:16]OFD Sender: No OFD packet to send [10:30:21]OFD Sender: No OFD packet to send [10:30:26]OFD Sender: No OFD packet to send [10:30:31]OFD Sender: No OFD packet to send [10:30:36]OFD Sender: No OFD packet to send [10:30:41]OFD Sender: No OFD packet to send [10:30:46]OFD Sender: No OFD packet to send [10:30:51]OFD Sender: No OFD packet to send [10:30:53]accept exits with 9 [10:30:53]New connection [10:30:53]New thread 3067260260 created [10:30:53]Thread 3067116900 joined [10:30:53]Waiting for new connection... [10:30:53] Sock 9.Parse request [10:30:53]Sock 9.Check first char [10:30:53]Sock 9.First char is OK [10:30:53]request: POST /json_proto HTTP/1.0 [10:30:53]Method: POST [10:30:53]URL: /json_proto [10:30:53]Method is POST - this is cgi request [10:30:53]url: /json_proto [10:30:53]query_string will be loaded in cgi processing [10:30:53]execute_cgi json_proto POST (null) [10:30:53]execute_cgi path=json_proto method=POST [10:30:53]POST find Content-Length [10:30:53]Host: 172.17.50.3:8080 [10:30:53]Content-Length: 678 [10:30:53]Content-Type: application/json [10:30:53] [10:30:53]POST finish read [10:30:53]Found Content-Length = 678 [10:30:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:53]execute_script... [10:30: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)2884976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:53]POST & json_proto [10:30:53]process_json_proto [10:30:53]json parsed OK: [10:30:53]protocol is kg_v1.0 [10:30:53]action value=close_receipt [10:30:53]process_action close_receipt [10:30:53]cmd_close_receipt [10:30:53]MH_GetDate [10:30:53]Write to MH i2c: F0 00 00 67 C4 1A [10:30:53]Write i2c OK [10:30:53]MH_I2C_Read... [10:30:53]Read from MH i2c: F0 [10:30:53]MH_I2C_Read... [10:30:53]Read from MH i2c: F0 09 00 [10:30:53]MH_I2C_Read... [10:30:53]Read from MH i2c: F0 09 00 67 C4 00 E7 DB 14 67 6B 98 1E 66 E7 [10:30:53]GetLastDocTimeStamp 1729420173 [10:30:53]current date 1729420263 [10:30:53]FM_GetShiftState [10:30:53]SAM_PROTO_GetShiftState [10:30:53]wFMCommunicate request_size=4 [10:30:53]MH_SAM_APDU [10:30:53]CAPDU: 80 13 01 00 [10:30:53]Write to MH i2c: E2 08 00 68 C4 80 13 01 00 00 00 00 00 A9 [10:30:53]Write i2c OK [10:30:53]MH_I2C_Read... [10:30:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:53]Read from MH i2c: E2 [10:30:53]MH_I2C_Read... [10:30:53]Read from MH i2c: E2 0E 00 [10:30:53]MH_I2C_Read... [10:30:53]Read from MH i2c: E2 0E 00 68 C4 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 AF [10:30:53]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:30:53]wFMCommunicate OK [10:30:53]SAM_PROTO_GetShiftState done [10:30:53]FM_GetShiftState done [10:30:53]opened in 1729383220 [10:30:53]opened+sec_in_day 1729469620 [10:30:53]quantity*price = 50041 [10:30:53]sum+1 = 50042 [10:30:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 108 20.10.2024 10:31 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69263 ФПД: 189448213455052 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T103103&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69263&fm=189448213455052&tin=02508201610067®Number=0000000000156251&sum=50000 [10:30:54]StoreToDocumentArchive [10:30:54]shift 193 fd 69263 [10:30:54]save to /storage/0193/doc_00069263 [10:30:54]save last doc name /storage/0193/doc_00069263 to /storage/kkm_last_doc_name [10:30:54]save OK [10:30:54]Clear old archive folders... [10:30:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:30:54]tlvbuf is 00571730 [10:30:54]SAM_PROTO_ClearQueue [10:30:54]wFMCommunicate request_size=4 [10:30:54]MH_SAM_APDU [10:30:54]CAPDU: 80 09 00 00 [10:30:54]Write to MH i2c: E2 08 00 75 C4 80 09 00 00 00 00 00 00 AB [10:30:54]Write i2c OK [10:30:54]MH_I2C_Read... [10:30:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:30:54]Read from MH i2c: E2 [10:30:54]MH_I2C_Read... [10:30:54]Read from MH i2c: E2 03 00 [10:30:54]MH_I2C_Read... [10:30:54]Read from MH i2c: E2 03 00 75 C4 00 90 00 AD [10:30:54]RAPDU: 90 00 [10:30:54]wFMCommunicate OK [10:30:54]SAM_PROTO_ClearQueue done [10:30:54]KKMCreateOFDPacket [10:30:54]OFDProtocolAddRootSTLVToBuf [10:30:54]FM_MakeSignedData [10:30:54]FM_MakeSignedData [10:30:54]SAM_PROTO_SignData [10:30:54]wFMCommunicate request_size=4 [10:30:54]MH_SAM_APDU [10:30:54]CAPDU: 80 0D 01 02 [10:30:54]Write to MH i2c: E2 08 00 76 C4 80 0D 01 02 00 00 00 00 B3 [10:30:54]Write i2c OK [10:30:54]MH_I2C_Read... [10:30:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:30:54]Read from MH i2c: E2 [10:30:54]MH_I2C_Read... [10:30:54]Read from MH i2c: E2 03 00 [10:30:54]MH_I2C_Read... [10:30:54]Read from MH i2c: E2 03 00 76 C4 00 90 00 AE [10:30:54]RAPDU: 90 00 [10:30:54]wFMCommunicate OK [10:30:54]wFMCommunicate request_size=255 [10:30:54]MH_SAM_APDU [10:30: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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 E7 DB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8F 0E 01 00 35 04 06 00 AC [10:30:54]Write to MH i2c: E2 02 01 77 C4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 E7 DB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8F 0E 01 00 35 04 06 00 AC 00 00 F0 [10:30:54]Write i2c OK [10:30:54]MH_I2C_Read... [10:30:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:54]Read from MH i2c: E2 [10:30:54]MH_I2C_Read... [10:30:54]Read from MH i2c: E2 03 00 [10:30:54]MH_I2C_Read... [10:30:54]Read from MH i2c: E2 03 00 77 C4 00 90 00 AF [10:30:54]RAPDU: 90 00 [10:30:54]wFMCommunicate OK [10:30:54]wFMCommunicate request_size=10 [10:30:54]MH_SAM_APDU [10:30:54]CAPDU: 80 0D 02 02 05 4D 59 77 60 CC [10:30:54]Write to MH i2c: E2 0D 00 78 C4 80 0D 02 02 05 00 4D 59 77 60 CC 00 00 09 [10:30:54]Write i2c OK [10:30:54]MH_I2C_Read... [10:30:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:54]Read from MH i2c: E2 [10:30:54]MH_I2C_Read... [10:30:54]Read from MH i2c: E2 03 00 [10:30:54]MH_I2C_Read... [10:30:54]Read from MH i2c: E2 03 00 78 C4 00 90 00 B0 [10:30:54]RAPDU: 90 00 [10:30:54]wFMCommunicate OK [10:30:54]wFMCommunicate request_size=4 [10:30:54]MH_SAM_APDU [10:30:54]CAPDU: 80 0D 03 02 [10:30:54]Write to MH i2c: E2 08 00 79 C4 80 0D 03 02 00 00 00 00 B8 [10:30:54]Write i2c OK [10:30:54]MH_I2C_Read... [10:30:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:30:54]Read from MH i2c: E2 [10:30:54]MH_I2C_Read... [10:30:54]Read from MH i2c: E2 0B 00 [10:30:54]MH_I2C_Read... [10:30:54]Read from MH i2c: E2 0B 00 79 C4 00 B9 31 E3 65 24 B2 B4 C7 90 00 3C [10:30:54]RAPDU: B9 31 E3 65 24 B2 B4 C7 90 00 [10:30:54]wFMCommunicate OK [10:30:54]SAM_PROTO_SignData done [10:30:54]FM_MakeSignedData done [10:30:54]CreateOFDProtocolMessage [10:30:54]wFMCommunicate request_size=4 [10:30:54]MH_SAM_APDU [10:30:54]CAPDU: 80 11 00 00 [10:30:54]Write to MH i2c: E2 08 00 7A C4 80 11 00 00 00 00 00 00 B8 [10:30:54]Write i2c OK [10:30:54]MH_I2C_Read... [10:30:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:54]Read from MH i2c: E2 [10:30:54]MH_I2C_Read... [10:30:54]Read from MH i2c: E2 17 00 [10:30:54]MH_I2C_Read... [10:30:54]Read from MH i2c: E2 17 00 7A C4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0A [10:30:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:30:54]wFMCommunicate OK [10:30:54]CreateOFDProtocolMessage done [10:30:54]OFDSenderStorePacket 69263 [10:30:54]StoreOFDPacket docnum=69263 [10:30:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 96 B6 07 01 11 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 E7 DB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8F 0E 01 00 35 04 06 00 AC 4D 59 77 60 CC B9 31 E3 65 24 B2 B4 C7 [10:30:54]CheckFolder [10:30:54]dirname=/storage/ofd_packets [10:30:54]CheckFolder done [10:30:54]ProducePacketName [10:30:54]name=ofd_packets/00069263 [10:30:54]NVStorageSaveData ofd_packets/00069263 [10:30:54]File name is /storage/ofd_packets/00069263 [10:30:54]Write 301 bytes [10:30:54]NVStorageSaveData done [10:30:54]OFDSenderStorePacket done [10:30:54]KKMCreateOFDPacket done [10:30:54]NVStorageSaveData kkm_last_timestamp [10:30:54]File name is /storage/kkm_last_timestamp [10:30:54]Write 4 bytes [10:30:54]NVStorageSaveData done [10:30:54]ExternCall_PrintAddStr [10:30:54]wPrintStart [10:30:54]Write to MH i2c: 01 00 00 7B C4 3F [10:30:54]Write i2c OK [10:30:54]MH_I2C_Read... [10:30:54]Read from MH i2c: 01 [10:30:54]MH_I2C_Read... [10:30:54]Read from MH i2c: 01 07 00 [10:30:54]MH_I2C_Read... [10:30:54]Read from MH i2c: 01 07 00 7B C4 00 00 00 00 00 FF 0F 54 [10:30:54]RasterBufferAndPrint [10:30:54]line Счет N : (1)2884976 [10:30:54]line ИНН: 02508201610067 [10:30:54]line Контрольно-Кассовый Чек [10:30:54]line ПРОДАЖА [10:30:54]line ТРК (МРК, ГНК) : 32 [10:30:54]line Товар: 2710124130 [10:30:54]line Аи-92-К-5 [10:30:54]line 7.480 * 66.90 [10:30:54]line = 500.41 [10:30:54]line НДС 12% НСП 1% [10:30:54]line > о реализуемом товаре [10:30:54]line ОКРУГЛЕНИЕ: -0.41 [10:30:54]line ИТОГО: 500.00 [10:30:54]line Внесено: 500.00 [10:30:54]line СДАЧА: 0.00 [10:30:54]line НСП 1% : 4.43 [10:30:54]line НДС 12% : 53.14 [10:30:54]line Наличными: 500.00 [10:30:54]line Безнал.: 0.00 [10:30:54]line Место: АЗС № 85 "Партнер Нефть" [10:30:54]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:30:54]line СНО: Общий режим [10:30:54]line Чек 108 20.10.2024 10:31 [10:30:54]line Смена: 193 ФФД: 1.0 [10:30:54]line ЗНМ: 0300000167 [10:30:54]line РНМ: 0000000000156251 [10:30:54]line Версия ККМ: v1.0 [10:30:54]line ФМ: 0000000000963346 [10:30:54]line ФД: 69263 [10:30:54]line ФПД: 189448213455052 [10:30:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T103103&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69263&fm=189448213455052&tin=02508201610067®Number=0000000000156251&sum=50000 [10:30:55]OFD Sender: Processing packet 69263 [packets to send 18, broken 17] [10:30:55]ProducePacketName [10:30:55]name=ofd_packets/00069263 [10:30:55]OFD Sender: To server: pG, [10:30:55]CommunicateWithHost lk.salyk.kg:30040 [10:30:55]ConnectInit lk.salyk.kg [10:30:55]written 0, free lines is 4095 [10:30:55]Connected sock=10 [10:30:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 96 B6 07 01 11 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 E7 DB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8F 0E 01 00 35 04 06 00 AC 4D 59 77 60 CC B9 31 E3 65 24 B2 B4 C7 [10:30:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 00 6E 47 00 61 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8F 0E 01 00 F4 03 04 00 8E 85 14 67 B6 04 01 00 00 0D 3E 2E 35 16 F3 02 F3 [10:30:55]CommunicateWithHost err = 0 [10:30:55]CheckOFDResponse [10:30:55]1017 (14) - 77093643461234 [10:30:55]1041 (16) - 0000000000963346 [10:30:55]1040 (4) - 69263 [10:30:55]1012 (4) - 20.10.2024 04:22 [10:30:55]1206 (1) - 0 [10:30:55]OFD Sender: Remove packet 69263 [10:30:55]ProducePacketName [10:30:55]name=ofd_packets/00069263 [10:30:55]NVStorageDeleteData [10:30:55]Write to MH i2c: 01 00 00 A6 C4 6A [10:30:55]Write i2c OK [10:30:55]MH_I2C_Read... [10:30:55]Read from MH i2c: 01 [10:30:55]MH_I2C_Read... [10:30:55]Read from MH i2c: 01 07 00 [10:30:55]MH_I2C_Read... [10:30:55]Read from MH i2c: 01 07 00 A6 C4 00 00 00 00 00 F6 0C 73 [10:30:55]RasterBufferAndPrint [10:30:55]line [10:30:55]line [10:30:55]line [10:30:55]line [10:30:55]line [10:30:55]written 0, free lines is 3328 [10:30:55]MH_Cut [10:30:55]Write to MH i2c: D1 01 00 AD C4 01 43 [10:30:55]Write i2c OK [10:30:55]MH_I2C_Read... [10:30:55]Read from MH i2c: D1 [10:30:55]MH_I2C_Read... [10:30:55]Read from MH i2c: D1 01 00 [10:30:55]MH_I2C_Read... [10:30:55]Read from MH i2c: D1 01 00 AD C4 00 42 [10:30:55]Write to MH i2c: 01 00 00 AE C4 72 [10:30:55]Write i2c OK [10:30:55]MH_I2C_Read... [10:30:56]OFD Sender: No OFD packet to send [10:30:56]*** Cut start [10:30:56]*** Partial cut [10:30:56]*** CUTSNS_PIN = 1 [10:30:56]*** CUTSNS_PIN = 0 [10:30:56]*** Brake cut motor [10:30:57]Read from MH i2c: 01 [10:30:57]MH_I2C_Read... [10:30:57]*** Stop cut motor [10:30:57]*** Cut end [10:30:57]Read from MH i2c: 01 07 00 [10:30:57]MH_I2C_Read... [10:30:57]Read from MH i2c: 01 07 00 AE C4 00 00 00 00 00 FF 0F 87 [10:30:57]process_action close_receipt done [10:30:57]requested_data is exist [10:30:57]produce_requested_data [10:30:57]requested_item fm.sn is exist - process it [10:30:57]wFMCommunicate request_size=4 [10:30:57]MH_SAM_APDU [10:30:57]CAPDU: 80 11 00 00 [10:30:57]Write to MH i2c: E2 08 00 AF C4 80 11 00 00 00 00 00 00 ED [10:30:57]Write i2c OK [10:30:57]MH_I2C_Read... [10:30:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:57]Read from MH i2c: E2 [10:30:57]MH_I2C_Read... [10:30:57]Read from MH i2c: E2 17 00 [10:30:57]MH_I2C_Read... [10:30:57]Read from MH i2c: E2 17 00 AF C4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3F [10:30:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:30:57]wFMCommunicate OK [10:30:57]requested_item fd.num is exist - process it [10:30:57]SAM_PROTO_GetFieldsCounters [10:30:57]wFMCommunicate request_size=4 [10:30:57]MH_SAM_APDU [10:30:57]CAPDU: 80 13 00 00 [10:30:57]Write to MH i2c: E2 08 00 B0 C4 80 13 00 00 00 00 00 00 F0 [10:30:57]Write i2c OK [10:30:57]MH_I2C_Read... [10:30:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:57]Read from MH i2c: E2 [10:30:57]MH_I2C_Read... [10:30:57]Read from MH i2c: E2 62 00 [10:30:57]MH_I2C_Read... [10:30:57]Read from MH i2c: E2 62 00 B0 C4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8F 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [10:30:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8F 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:30:57]wFMCommunicate OK [10:30:57]SAM_PROTO_GetFieldsCounters done [10:30:57]requested_item shift.num is exist - process it [10:30:57]requested_item shift.opened is exist - process it [10:30:57]req_shift_opened [10:30:57]FM_GetShiftState [10:30:57]SAM_PROTO_GetShiftState [10:30:57]wFMCommunicate request_size=4 [10:30:57]MH_SAM_APDU [10:30:57]CAPDU: 80 13 01 00 [10:30:57]Write to MH i2c: E2 08 00 B1 C4 80 13 01 00 00 00 00 00 F2 [10:30:57]Write i2c OK [10:30:57]MH_I2C_Read... [10:30:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:57]Read from MH i2c: E2 [10:30:57]MH_I2C_Read... [10:30:57]Read from MH i2c: E2 0E 00 [10:30:57]MH_I2C_Read... [10:30:57]Read from MH i2c: E2 0E 00 B1 C4 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 F8 [10:30:57]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:30:57]wFMCommunicate OK [10:30:57]SAM_PROTO_GetShiftState done [10:30:57]FM_GetShiftState done [10:30:57]req_shift_opened done [10:30:57]requested_item shift.open_date is exist - process it [10:30:57]req_shift_open_date [10:30:57]req_shift_open_date done [10:30:57]produce_requested_data done [10:30:57]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69263,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [10:30:57]process_action_free close_receipt [10:30:57]json_value_free [10:30:57]json_value_free done [10:30:57]process_json_proto returns [10:30:57]Send response to host [10:30:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69263,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [10:30:57]free response buf [10:30:57]execute_script done [10:30:57]execute_script returns [10:30:57]free content buf [10:30:57]Sock 9.Close socket [10:30:57]Sock 9.Thread stoped [10:31:01]OFD Sender: No OFD packet to send [10:31:06]OFD Sender: No OFD packet to send [10:31:11]OFD Sender: No OFD packet to send [10:31:16]OFD Sender: No OFD packet to send [10:31:21]OFD Sender: No OFD packet to send [10:31:26]OFD Sender: No OFD packet to send [10:31:31]OFD Sender: No OFD packet to send [10:31:36]OFD Sender: No OFD packet to send [10:31:41]OFD Sender: No OFD packet to send [10:31:46]OFD Sender: No OFD packet to send [10:31:51]OFD Sender: No OFD packet to send [10:31:56]OFD Sender: No OFD packet to send [10:32:01]OFD Sender: No OFD packet to send [10:32:05]accept exits with 8 [10:32:05]New connection [10:32:05]New thread 3067116900 created [10:32:05]Thread 3067260260 joined [10:32:05]Waiting for new connection... [10:32:05] Sock 8.Parse request [10:32:05]Sock 8.Check first char [10:32:05]Sock 8.First char is OK [10:32:05]request: POST /json_proto HTTP/1.0 [10:32:05]Method: POST [10:32:05]URL: /json_proto [10:32:05]Method is POST - this is cgi request [10:32:05]url: /json_proto [10:32:05]query_string will be loaded in cgi processing [10:32:05]execute_cgi json_proto POST (null) [10:32:05]execute_cgi path=json_proto method=POST [10:32:05]POST find Content-Length [10:32:05]Host: 172.17.50.3:8080 [10:32:05]Content-Length: 679 [10:32:05]Content-Type: application/json [10:32:05] [10:32:05]POST finish read [10:32:05]Found Content-Length = 679 [10:32:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:05]execute_script... [10:32: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)2884977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:05]POST & json_proto [10:32:05]process_json_proto [10:32:05]json parsed OK: [10:32:05]protocol is kg_v1.0 [10:32:05]action value=close_receipt [10:32:05]process_action close_receipt [10:32:05]cmd_close_receipt [10:32:05]MH_GetDate [10:32:05]Write to MH i2c: F0 00 00 B2 C4 65 [10:32:05]Write i2c OK [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: F0 [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: F0 09 00 [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: F0 09 00 B2 C4 00 2F DC 14 67 6B 98 1E 66 7B [10:32:05]GetLastDocTimeStamp 1729420263 [10:32:05]current date 1729420335 [10:32:05]FM_GetShiftState [10:32:05]SAM_PROTO_GetShiftState [10:32:05]wFMCommunicate request_size=4 [10:32:05]MH_SAM_APDU [10:32:05]CAPDU: 80 13 01 00 [10:32:05]Write to MH i2c: E2 08 00 B3 C4 80 13 01 00 00 00 00 00 F4 [10:32:05]Write i2c OK [10:32:05]MH_I2C_Read... [10:32:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:05]Read from MH i2c: E2 [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: E2 0E 00 [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: E2 0E 00 B3 C4 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 FA [10:32:05]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:32:05]wFMCommunicate OK [10:32:05]SAM_PROTO_GetShiftState done [10:32:05]FM_GetShiftState done [10:32:05]opened in 1729383220 [10:32:05]opened+sec_in_day 1729469620 [10:32:05]quantity*price = 80061 [10:32:05]sum+1 = 80063 [10:32:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 109 20.10.2024 10:32 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69264 ФПД: 101431631278297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T103215&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69264&fm=101431631278297&tin=02508201610067®Number=0000000000156251&sum=80000 [10:32:07]StoreToDocumentArchive [10:32:07]shift 193 fd 69264 [10:32:07]save to /storage/0193/doc_00069264 [10:32:07]save last doc name /storage/0193/doc_00069264 to /storage/kkm_last_doc_name [10:32:07]save OK [10:32:07]Clear old archive folders... [10:32:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:32:07]tlvbuf is 00495160 [10:32:07]SAM_PROTO_ClearQueue [10:32:07]wFMCommunicate request_size=4 [10:32:07]MH_SAM_APDU [10:32:07]CAPDU: 80 09 00 00 [10:32:07]Write to MH i2c: E2 08 00 C0 C4 80 09 00 00 00 00 00 00 F6 [10:32:07]Write i2c OK [10:32:07]MH_I2C_Read... [10:32:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:07]Read from MH i2c: E2 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: E2 03 00 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: E2 03 00 C0 C4 00 90 00 F8 [10:32:07]RAPDU: 90 00 [10:32:07]wFMCommunicate OK [10:32:07]SAM_PROTO_ClearQueue done [10:32:07]KKMCreateOFDPacket [10:32:07]OFDProtocolAddRootSTLVToBuf [10:32:07]FM_MakeSignedData [10:32:07]FM_MakeSignedData [10:32:07]SAM_PROTO_SignData [10:32:07]wFMCommunicate request_size=4 [10:32:07]MH_SAM_APDU [10:32:07]CAPDU: 80 0D 01 02 [10:32:07]Write to MH i2c: E2 08 00 C1 C4 80 0D 01 02 00 00 00 00 FE [10:32:07]Write i2c OK [10:32:07]MH_I2C_Read... [10:32:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:07]Read from MH i2c: E2 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: E2 03 00 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: E2 03 00 C1 C4 00 90 00 F9 [10:32:07]RAPDU: 90 00 [10:32:07]wFMCommunicate OK [10:32:07]wFMCommunicate request_size=255 [10:32:07]MH_SAM_APDU [10:32: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 2F DC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 90 0E 01 00 35 04 06 00 5C [10:32:07]Write to MH i2c: E2 02 01 C2 C4 80 0D 02 02 FA 00 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 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 2F DC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 90 0E 01 00 35 04 06 00 5C 00 00 A3 [10:32:07]Write i2c OK [10:32:07]MH_I2C_Read... [10:32:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:07]Read from MH i2c: E2 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: E2 03 00 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: E2 03 00 C2 C4 00 90 00 FA [10:32:07]RAPDU: 90 00 [10:32:07]wFMCommunicate OK [10:32:07]wFMCommunicate request_size=10 [10:32:07]MH_SAM_APDU [10:32:07]CAPDU: 80 0D 02 02 05 40 64 59 F0 D9 [10:32:07]Write to MH i2c: E2 0D 00 C3 C4 80 0D 02 02 05 00 40 64 59 F0 D9 00 00 D1 [10:32:07]Write i2c OK [10:32:07]MH_I2C_Read... [10:32:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:07]Read from MH i2c: E2 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: E2 03 00 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: E2 03 00 C3 C4 00 90 00 FB [10:32:07]RAPDU: 90 00 [10:32:07]wFMCommunicate OK [10:32:07]wFMCommunicate request_size=4 [10:32:07]MH_SAM_APDU [10:32:07]CAPDU: 80 0D 03 02 [10:32:07]Write to MH i2c: E2 08 00 C4 C4 80 0D 03 02 00 00 00 00 03 [10:32:07]Write i2c OK [10:32:07]MH_I2C_Read... [10:32:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:07]Read from MH i2c: E2 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: E2 0B 00 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: E2 0B 00 C4 C4 00 A5 E4 59 08 0C 84 48 DA 90 00 A0 [10:32:07]RAPDU: A5 E4 59 08 0C 84 48 DA 90 00 [10:32:07]wFMCommunicate OK [10:32:07]SAM_PROTO_SignData done [10:32:07]FM_MakeSignedData done [10:32:07]CreateOFDProtocolMessage [10:32:07]wFMCommunicate request_size=4 [10:32:07]MH_SAM_APDU [10:32:07]CAPDU: 80 11 00 00 [10:32:07]Write to MH i2c: E2 08 00 C5 C4 80 11 00 00 00 00 00 00 03 [10:32:07]Write i2c OK [10:32:07]MH_I2C_Read... [10:32:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:07]Read from MH i2c: E2 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: E2 17 00 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: E2 17 00 C5 C4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 55 [10:32:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:32:07]wFMCommunicate OK [10:32:07]CreateOFDProtocolMessage done [10:32:07]OFDSenderStorePacket 69264 [10:32:07]StoreOFDPacket docnum=69264 [10:32:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 60 C7 07 01 6B CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 2F DC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 90 0E 01 00 35 04 06 00 5C 40 64 59 F0 D9 A5 E4 59 08 0C 84 48 DA [10:32:07]CheckFolder [10:32:07]dirname=/storage/ofd_packets [10:32:07]CheckFolder done [10:32:07]ProducePacketName [10:32:07]name=ofd_packets/00069264 [10:32:07]NVStorageSaveData ofd_packets/00069264 [10:32:07]File name is /storage/ofd_packets/00069264 [10:32:07]Write 301 bytes [10:32:07]NVStorageSaveData done [10:32:07]OFDSenderStorePacket done [10:32:07]KKMCreateOFDPacket done [10:32:07]NVStorageSaveData kkm_last_timestamp [10:32:07]File name is /storage/kkm_last_timestamp [10:32:07]Write 4 bytes [10:32:07]NVStorageSaveData done [10:32:07]ExternCall_PrintAddStr [10:32:07]wPrintStart [10:32:07]Write to MH i2c: 01 00 00 C6 C4 8A [10:32:07]Write i2c OK [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: 01 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: 01 07 00 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: 01 07 00 C6 C4 00 00 00 00 00 FF 0F 9F [10:32:07]RasterBufferAndPrint [10:32:07]line Счет N : (1)2884977 [10:32:07]line ИНН: 02508201610067 [10:32:07]line Контрольно-Кассовый Чек [10:32:07]line ПРОДАЖА [10:32:07]line ТРК (МРК, ГНК) : 13 [10:32:07]line Товар: 2710124500 [10:32:07]line Аи-95-К-5 [10:32:07]line 10.790 * 74.20 [10:32:07]line = 800.62 [10:32:07]line НДС 12% НСП 1% [10:32:07]line > о реализуемом товаре [10:32:07]line ОКРУГЛЕНИЕ: -0.62 [10:32:07]line ИТОГО: 800.00 [10:32:07]line Внесено: 800.00 [10:32:07]line СДАЧА: 0.00 [10:32:07]line НСП 1% : 7.08 [10:32:07]line НДС 12% : 85.02 [10:32:07]line Наличными: 800.00 [10:32:07]line Безнал.: 0.00 [10:32:07]line Место: АЗС № 85 "Партнер Нефть" [10:32:07]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:32:07]line СНО: Общий режим [10:32:07]line Чек 109 20.10.2024 10:32 [10:32:07]line Смена: 193 ФФД: 1.0 [10:32:07]line ЗНМ: 0300000167 [10:32:07]line РНМ: 0000000000156251 [10:32:07]line Версия ККМ: v1.0 [10:32:07]line ФМ: 0000000000963346 [10:32:07]line ФД: 69264 [10:32:07]line ФПД: 101431631278297 [10:32:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T103215&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69264&fm=101431631278297&tin=02508201610067®Number=0000000000156251&sum=80000 [10:32:07]OFD Sender: Processing packet 69264 [packets to send 18, broken 17] [10:32:07]ProducePacketName [10:32:07]name=ofd_packets/00069264 [10:32:07]OFD Sender: To server: pG, [10:32:07]CommunicateWithHost lk.salyk.kg:30040 [10:32:07]ConnectInit lk.salyk.kg [10:32:07]written 0, free lines is 4095 [10:32:08]Connected sock=10 [10:32:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 60 C7 07 01 6B CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 2F DC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 90 0E 01 00 35 04 06 00 5C 40 64 59 F0 D9 A5 E4 59 08 0C 84 48 DA [10:32:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 41 9B 47 00 F5 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 90 0E 01 00 F4 03 04 00 D6 85 14 67 B6 04 01 00 00 F8 BB 10 6F 53 DF BD C9 [10:32:08]CommunicateWithHost err = 0 [10:32:08]CheckOFDResponse [10:32:08]1017 (14) - 77093643461234 [10:32:08]1041 (16) - 0000000000963346 [10:32:08]1040 (4) - 69264 [10:32:08]1012 (4) - 20.10.2024 04:23 [10:32:08]1206 (1) - 0 [10:32:08]OFD Sender: Remove packet 69264 [10:32:08]ProducePacketName [10:32:08]name=ofd_packets/00069264 [10:32:08]NVStorageDeleteData [10:32:08]Write to MH i2c: 01 00 00 F1 C4 B5 [10:32:08]Write i2c OK [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: 01 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: 01 07 00 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: 01 07 00 F1 C4 00 00 00 00 00 F8 0C C0 [10:32:08]RasterBufferAndPrint [10:32:08]line [10:32:08]line [10:32:08]line [10:32:08]line [10:32:08]line [10:32:08]written 0, free lines is 3327 [10:32:08]MH_Cut [10:32:08]Write to MH i2c: D1 01 00 F8 C4 01 8E [10:32:08]Write i2c OK [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: D1 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: D1 01 00 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: D1 01 00 F8 C4 00 8D [10:32:08]Write to MH i2c: 01 00 00 F9 C4 BD [10:32:08]Write i2c OK [10:32:08]MH_I2C_Read... [10:32:08]OFD Sender: No OFD packet to send [10:32:09]*** Cut start [10:32:09]*** Partial cut [10:32:09]*** CUTSNS_PIN = 1 [10:32:09]*** CUTSNS_PIN = 0 [10:32:09]*** Brake cut motor [10:32:09]Read from MH i2c: 01 [10:32:09]MH_I2C_Read... [10:32:09]*** Stop cut motor [10:32:09]*** Cut end [10:32:09]Read from MH i2c: 01 07 00 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: 01 07 00 F9 C4 00 00 00 00 00 FF 0F D2 [10:32:09]process_action close_receipt done [10:32:09]requested_data is exist [10:32:09]produce_requested_data [10:32:09]requested_item fm.sn is exist - process it [10:32:09]wFMCommunicate request_size=4 [10:32:09]MH_SAM_APDU [10:32:09]CAPDU: 80 11 00 00 [10:32:09]Write to MH i2c: E2 08 00 FA C4 80 11 00 00 00 00 00 00 38 [10:32:09]Write i2c OK [10:32:09]MH_I2C_Read... [10:32:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:09]Read from MH i2c: E2 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: E2 17 00 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: E2 17 00 FA C4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8A [10:32:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:32:09]wFMCommunicate OK [10:32:09]requested_item fd.num is exist - process it [10:32:09]SAM_PROTO_GetFieldsCounters [10:32:09]wFMCommunicate request_size=4 [10:32:09]MH_SAM_APDU [10:32:09]CAPDU: 80 13 00 00 [10:32:09]Write to MH i2c: E2 08 00 FB C4 80 13 00 00 00 00 00 00 3B [10:32:09]Write i2c OK [10:32:09]MH_I2C_Read... [10:32:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:09]Read from MH i2c: E2 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: E2 62 00 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: E2 62 00 FB C4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 90 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [10:32:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 90 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:32:09]wFMCommunicate OK [10:32:09]SAM_PROTO_GetFieldsCounters done [10:32:09]requested_item shift.num is exist - process it [10:32:09]requested_item shift.opened is exist - process it [10:32:09]req_shift_opened [10:32:09]FM_GetShiftState [10:32:09]SAM_PROTO_GetShiftState [10:32:09]wFMCommunicate request_size=4 [10:32:09]MH_SAM_APDU [10:32:09]CAPDU: 80 13 01 00 [10:32:09]Write to MH i2c: E2 08 00 FC C4 80 13 01 00 00 00 00 00 3D [10:32:09]Write i2c OK [10:32:09]MH_I2C_Read... [10:32:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:09]Read from MH i2c: E2 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: E2 0E 00 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: E2 0E 00 FC C4 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 43 [10:32:09]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:32:09]wFMCommunicate OK [10:32:09]SAM_PROTO_GetShiftState done [10:32:09]FM_GetShiftState done [10:32:09]req_shift_opened done [10:32:09]requested_item shift.open_date is exist - process it [10:32:09]req_shift_open_date [10:32:09]req_shift_open_date done [10:32:09]produce_requested_data done [10:32:09]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69264,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [10:32:09]process_action_free close_receipt [10:32:09]json_value_free [10:32:09]json_value_free done [10:32:09]process_json_proto returns [10:32:09]Send response to host [10:32:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69264,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [10:32:09]free response buf [10:32:09]execute_script done [10:32:09]execute_script returns [10:32:09]free content buf [10:32:09]Sock 8.Close socket [10:32:09]Sock 8.Thread stoped [10:32:13]OFD Sender: No OFD packet to send [10:32:18]OFD Sender: No OFD packet to send [10:32:23]OFD Sender: No OFD packet to send [10:32:28]OFD Sender: No OFD packet to send [10:32:33]OFD Sender: No OFD packet to send [10:32:38]OFD Sender: No OFD packet to send [10:32:43]OFD Sender: No OFD packet to send [10:32:44]accept exits with 9 [10:32:44]New connection [10:32:44]New thread 3067260260 created [10:32:44]Thread 3067116900 joined [10:32:44]Waiting for new connection... [10:32:44] Sock 9.Parse request [10:32:44]Sock 9.Check first char [10:32:44]Sock 9.First char is OK [10:32:44]request: POST /json_proto HTTP/1.0 [10:32:44]Method: POST [10:32:44]URL: /json_proto [10:32:44]Method is POST - this is cgi request [10:32:44]url: /json_proto [10:32:44]query_string will be loaded in cgi processing [10:32:44]execute_cgi json_proto POST (null) [10:32:44]execute_cgi path=json_proto method=POST [10:32:44]POST find Content-Length [10:32:44]Host: 172.17.50.3:8080 [10:32:44]Content-Length: 678 [10:32:44]Content-Type: application/json [10:32:44] [10:32:44]POST finish read [10:32:44]Found Content-Length = 678 [10:32:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:44]execute_script... [10:32:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:44]POST & json_proto [10:32:44]process_json_proto [10:32:44]json parsed OK: [10:32:44]protocol is kg_v1.0 [10:32:44]action value=close_receipt [10:32:44]process_action close_receipt [10:32:44]cmd_close_receipt [10:32:44]MH_GetDate [10:32:44]Write to MH i2c: F0 00 00 FD C4 B0 [10:32:44]Write i2c OK [10:32:44]MH_I2C_Read... [10:32:44]Read from MH i2c: F0 [10:32:44]MH_I2C_Read... [10:32:44]Read from MH i2c: F0 09 00 [10:32:44]MH_I2C_Read... [10:32:44]Read from MH i2c: F0 09 00 FD C4 00 56 DC 14 67 6B 98 1E 66 ED [10:32:44]GetLastDocTimeStamp 1729420335 [10:32:44]current date 1729420374 [10:32:44]FM_GetShiftState [10:32:44]SAM_PROTO_GetShiftState [10:32:44]wFMCommunicate request_size=4 [10:32:44]MH_SAM_APDU [10:32:44]CAPDU: 80 13 01 00 [10:32:44]Write to MH i2c: E2 08 00 FE C4 80 13 01 00 00 00 00 00 3F [10:32:44]Write i2c OK [10:32:44]MH_I2C_Read... [10:32:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:44]Read from MH i2c: E2 [10:32:44]MH_I2C_Read... [10:32:44]Read from MH i2c: E2 0E 00 [10:32:44]MH_I2C_Read... [10:32:44]Read from MH i2c: E2 0E 00 FE C4 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 45 [10:32:44]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:32:44]wFMCommunicate OK [10:32:44]SAM_PROTO_GetShiftState done [10:32:44]FM_GetShiftState done [10:32:44]opened in 1729383220 [10:32:44]opened+sec_in_day 1729469620 [10:32:44]quantity*price = 30038 [10:32:44]sum+1 = 30039 [10:32:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 110 20.10.2024 10:32 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69265 ФПД: 75581918249540 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T103254&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69265&fm=75581918249540&tin=02508201610067®Number=0000000000156251&sum=30000 [10:32:46]StoreToDocumentArchive [10:32:46]shift 193 fd 69265 [10:32:46]save to /storage/0193/doc_00069265 [10:32:46]save last doc name /storage/0193/doc_00069265 to /storage/kkm_last_doc_name [10:32:46]save OK [10:32:46]Clear old archive folders... [10:32:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:32:46]tlvbuf is 006B4580 [10:32:46]SAM_PROTO_ClearQueue [10:32:46]wFMCommunicate request_size=4 [10:32:46]MH_SAM_APDU [10:32:46]CAPDU: 80 09 00 00 [10:32:46]Write to MH i2c: E2 08 00 0B C5 80 09 00 00 00 00 00 00 42 [10:32:46]Write i2c OK [10:32:46]MH_I2C_Read... [10:32:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:46]Read from MH i2c: E2 [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: E2 03 00 [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: E2 03 00 0B C5 00 90 00 44 [10:32:46]RAPDU: 90 00 [10:32:46]wFMCommunicate OK [10:32:46]SAM_PROTO_ClearQueue done [10:32:46]KKMCreateOFDPacket [10:32:46]OFDProtocolAddRootSTLVToBuf [10:32:46]FM_MakeSignedData [10:32:46]FM_MakeSignedData [10:32:46]SAM_PROTO_SignData [10:32:46]wFMCommunicate request_size=4 [10:32:46]MH_SAM_APDU [10:32:46]CAPDU: 80 0D 01 02 [10:32:46]Write to MH i2c: E2 08 00 0C C5 80 0D 01 02 00 00 00 00 4A [10:32:46]Write i2c OK [10:32:46]MH_I2C_Read... [10:32:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:46]Read from MH i2c: E2 [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: E2 03 00 [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: E2 03 00 0C C5 00 90 00 45 [10:32:46]RAPDU: 90 00 [10:32:46]wFMCommunicate OK [10:32:46]wFMCommunicate request_size=255 [10:32:46]MH_SAM_APDU [10:32:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 56 DC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 91 0E 01 00 35 04 06 00 44 [10:32:46]Write to MH i2c: E2 02 01 0D C5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 56 DC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 91 0E 01 00 35 04 06 00 44 00 00 87 [10:32:46]Write i2c OK [10:32:46]MH_I2C_Read... [10:32:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:46]Read from MH i2c: E2 [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: E2 03 00 [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: E2 03 00 0D C5 00 90 00 46 [10:32:46]RAPDU: 90 00 [10:32:46]wFMCommunicate OK [10:32:46]wFMCommunicate request_size=10 [10:32:46]MH_SAM_APDU [10:32:46]CAPDU: 80 0D 02 02 05 BD C9 63 82 44 [10:32:46]Write to MH i2c: E2 0D 00 0E C5 80 0D 02 02 05 00 BD C9 63 82 44 00 00 06 [10:32:46]Write i2c OK [10:32:46]MH_I2C_Read... [10:32:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:46]Read from MH i2c: E2 [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: E2 03 00 [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: E2 03 00 0E C5 00 90 00 47 [10:32:46]RAPDU: 90 00 [10:32:46]wFMCommunicate OK [10:32:46]wFMCommunicate request_size=4 [10:32:46]MH_SAM_APDU [10:32:46]CAPDU: 80 0D 03 02 [10:32:46]Write to MH i2c: E2 08 00 0F C5 80 0D 03 02 00 00 00 00 4F [10:32:46]Write i2c OK [10:32:46]MH_I2C_Read... [10:32:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:46]Read from MH i2c: E2 [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: E2 0B 00 [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: E2 0B 00 0F C5 00 E2 80 94 7E 67 8D B7 0C 90 00 7B [10:32:46]RAPDU: E2 80 94 7E 67 8D B7 0C 90 00 [10:32:46]wFMCommunicate OK [10:32:46]SAM_PROTO_SignData done [10:32:46]FM_MakeSignedData done [10:32:46]CreateOFDProtocolMessage [10:32:46]wFMCommunicate request_size=4 [10:32:46]MH_SAM_APDU [10:32:46]CAPDU: 80 11 00 00 [10:32:46]Write to MH i2c: E2 08 00 10 C5 80 11 00 00 00 00 00 00 4F [10:32:46]Write i2c OK [10:32:46]MH_I2C_Read... [10:32:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:46]Read from MH i2c: E2 [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: E2 17 00 [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: E2 17 00 10 C5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A1 [10:32:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:32:46]wFMCommunicate OK [10:32:46]CreateOFDProtocolMessage done [10:32:46]OFDSenderStorePacket 69265 [10:32:46]StoreOFDPacket docnum=69265 [10:32:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 8D 58 07 01 CB 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 56 DC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 91 0E 01 00 35 04 06 00 44 BD C9 63 82 44 E2 80 94 7E 67 8D B7 0C [10:32:46]CheckFolder [10:32:46]dirname=/storage/ofd_packets [10:32:46]CheckFolder done [10:32:46]ProducePacketName [10:32:46]name=ofd_packets/00069265 [10:32:46]NVStorageSaveData ofd_packets/00069265 [10:32:46]File name is /storage/ofd_packets/00069265 [10:32:46]Write 301 bytes [10:32:46]NVStorageSaveData done [10:32:46]OFDSenderStorePacket done [10:32:46]KKMCreateOFDPacket done [10:32:46]NVStorageSaveData kkm_last_timestamp [10:32:46]File name is /storage/kkm_last_timestamp [10:32:46]Write 4 bytes [10:32:46]NVStorageSaveData done [10:32:46]ExternCall_PrintAddStr [10:32:46]wPrintStart [10:32:46]Write to MH i2c: 01 00 00 11 C5 D6 [10:32:46]Write i2c OK [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: 01 [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: 01 07 00 [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: 01 07 00 11 C5 00 00 00 00 00 FF 0F EB [10:32:46]RasterBufferAndPrint [10:32:46]line Счет N : (1)2884978 [10:32:46]line ИНН: 02508201610067 [10:32:46]line Контрольно-Кассовый Чек [10:32:46]line ПРОДАЖА [10:32:46]line ТРК (МРК, ГНК) : 22 [10:32:46]line Товар: 2710124130 [10:32:46]line Аи-92-К-5 [10:32:46]line 4.490 * 66.90 [10:32:46]line = 300.38 [10:32:46]line НДС 12% НСП 1% [10:32:46]line > о реализуемом товаре [10:32:46]line ОКРУГЛЕНИЕ: -0.38 [10:32:46]line ИТОГО: 300.00 [10:32:46]line Внесено: 300.00 [10:32:46]line СДАЧА: 0.00 [10:32:46]line НСП 1% : 2.66 [10:32:46]line НДС 12% : 31.90 [10:32:46]line Наличными: 300.00 [10:32:46]line Безнал.: 0.00 [10:32:46]line Место: АЗС № 85 "Партнер Нефть" [10:32:46]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:32:46]line СНО: Общий режим [10:32:46]line Чек 110 20.10.2024 10:32 [10:32:46]line Смена: 193 ФФД: 1.0 [10:32:46]line ЗНМ: 0300000167 [10:32:46]line РНМ: 0000000000156251 [10:32:46]line Версия ККМ: v1.0 [10:32:46]line ФМ: 0000000000963346 [10:32:46]line ФД: 69265 [10:32:46]line ФПД: 75581918249540 [10:32:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T103254&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69265&fm=75581918249540&tin=02508201610067®Number=0000000000156251&sum=30000 [10:32:46]OFD Sender: Processing packet 69265 [packets to send 18, broken 17] [10:32:46]ProducePacketName [10:32:46]name=ofd_packets/00069265 [10:32:46]OFD Sender: To server: pG, [10:32:46]CommunicateWithHost lk.salyk.kg:30040 [10:32:46]ConnectInit lk.salyk.kg [10:32:46]written 0, free lines is 4095 [10:32:47]Connected sock=10 [10:32:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 8D 58 07 01 CB 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 56 DC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 91 0E 01 00 35 04 06 00 44 BD C9 63 82 44 E2 80 94 7E 67 8D B7 0C [10:32:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 43 F5 47 00 33 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 91 0E 01 00 F4 03 04 00 FD 85 14 67 B6 04 01 00 00 61 78 44 1C BE 56 4B 09 [10:32:47]CommunicateWithHost err = 0 [10:32:47]CheckOFDResponse [10:32:47]1017 (14) - 77093643461234 [10:32:47]1041 (16) - 0000000000963346 [10:32:47]1040 (4) - 69265 [10:32:47]1012 (4) - 20.10.2024 04:24 [10:32:47]1206 (1) - 0 [10:32:47]OFD Sender: Remove packet 69265 [10:32:47]ProducePacketName [10:32:47]name=ofd_packets/00069265 [10:32:47]NVStorageDeleteData [10:32:47]Write to MH i2c: 01 00 00 3C C5 01 [10:32:47]Write i2c OK [10:32:47]MH_I2C_Read... [10:32:47]Read from MH i2c: 01 [10:32:47]MH_I2C_Read... [10:32:47]Read from MH i2c: 01 07 00 [10:32:47]MH_I2C_Read... [10:32:47]Read from MH i2c: 01 07 00 3C C5 00 00 00 00 00 F4 0C 08 [10:32:47]RasterBufferAndPrint [10:32:47]line [10:32:47]line [10:32:47]line [10:32:47]line [10:32:47]line [10:32:47]written 0, free lines is 3322 [10:32:47]MH_Cut [10:32:47]Write to MH i2c: D1 01 00 43 C5 01 DA [10:32:47]Write i2c OK [10:32:47]MH_I2C_Read... [10:32:47]Read from MH i2c: D1 [10:32:47]MH_I2C_Read... [10:32:47]Read from MH i2c: D1 01 00 [10:32:47]MH_I2C_Read... [10:32:47]Read from MH i2c: D1 01 00 43 C5 00 D9 [10:32:47]Write to MH i2c: 01 00 00 44 C5 09 [10:32:47]Write i2c OK [10:32:47]MH_I2C_Read... [10:32:47]OFD Sender: No OFD packet to send [10:32:48]*** Cut start [10:32:48]*** Partial cut [10:32:48]*** CUTSNS_PIN = 1 [10:32:48]*** CUTSNS_PIN = 0 [10:32:48]*** Brake cut motor [10:32:48]Read from MH i2c: 01 [10:32:48]MH_I2C_Read... [10:32:48]*** Stop cut motor [10:32:48]*** Cut end [10:32:48]Read from MH i2c: 01 07 00 [10:32:48]MH_I2C_Read... [10:32:48]Read from MH i2c: 01 07 00 44 C5 00 00 00 00 00 FF 0F 1E [10:32:48]process_action close_receipt done [10:32:48]requested_data is exist [10:32:48]produce_requested_data [10:32:48]requested_item fm.sn is exist - process it [10:32:48]wFMCommunicate request_size=4 [10:32:48]MH_SAM_APDU [10:32:48]CAPDU: 80 11 00 00 [10:32:48]Write to MH i2c: E2 08 00 45 C5 80 11 00 00 00 00 00 00 84 [10:32:48]Write i2c OK [10:32:48]MH_I2C_Read... [10:32:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:48]Read from MH i2c: E2 [10:32:48]MH_I2C_Read... [10:32:48]Read from MH i2c: E2 17 00 [10:32:48]MH_I2C_Read... [10:32:48]Read from MH i2c: E2 17 00 45 C5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D6 [10:32:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:32:48]wFMCommunicate OK [10:32:48]requested_item fd.num is exist - process it [10:32:48]SAM_PROTO_GetFieldsCounters [10:32:48]wFMCommunicate request_size=4 [10:32:48]MH_SAM_APDU [10:32:48]CAPDU: 80 13 00 00 [10:32:48]Write to MH i2c: E2 08 00 46 C5 80 13 00 00 00 00 00 00 87 [10:32:48]Write i2c OK [10:32:48]MH_I2C_Read... [10:32:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:48]Read from MH i2c: E2 [10:32:48]MH_I2C_Read... [10:32:48]Read from MH i2c: E2 62 00 [10:32:48]MH_I2C_Read... [10:32:48]Read from MH i2c: E2 62 00 46 C5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 91 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [10:32:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 91 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:32:48]wFMCommunicate OK [10:32:48]SAM_PROTO_GetFieldsCounters done [10:32:48]requested_item shift.num is exist - process it [10:32:48]requested_item shift.opened is exist - process it [10:32:48]req_shift_opened [10:32:48]FM_GetShiftState [10:32:48]SAM_PROTO_GetShiftState [10:32:48]wFMCommunicate request_size=4 [10:32:48]MH_SAM_APDU [10:32:48]CAPDU: 80 13 01 00 [10:32:48]Write to MH i2c: E2 08 00 47 C5 80 13 01 00 00 00 00 00 89 [10:32:48]Write i2c OK [10:32:48]MH_I2C_Read... [10:32:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:49]Read from MH i2c: E2 [10:32:49]MH_I2C_Read... [10:32:49]Read from MH i2c: E2 0E 00 [10:32:49]MH_I2C_Read... [10:32:49]Read from MH i2c: E2 0E 00 47 C5 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 8F [10:32:49]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:32:49]wFMCommunicate OK [10:32:49]SAM_PROTO_GetShiftState done [10:32:49]FM_GetShiftState done [10:32:49]req_shift_opened done [10:32:49]requested_item shift.open_date is exist - process it [10:32:49]req_shift_open_date [10:32:49]req_shift_open_date done [10:32:49]produce_requested_data done [10:32:49]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69265,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [10:32:49]process_action_free close_receipt [10:32:49]json_value_free [10:32:49]json_value_free done [10:32:49]process_json_proto returns [10:32:49]Send response to host [10:32:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69265,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [10:32:49]free response buf [10:32:49]execute_script done [10:32:49]execute_script returns [10:32:49]free content buf [10:32:49]Sock 9.Close socket [10:32:49]Sock 9.Thread stoped [10:32:52]OFD Sender: No OFD packet to send [10:32:57]OFD Sender: No OFD packet to send [10:33:02]OFD Sender: No OFD packet to send [10:33:07]OFD Sender: No OFD packet to send [10:33:12]OFD Sender: No OFD packet to send [10:33:17]OFD Sender: No OFD packet to send [10:33:22]OFD Sender: No OFD packet to send [10:33:27]OFD Sender: No OFD packet to send [10:33:32]OFD Sender: No OFD packet to send [10:33:37]OFD Sender: No OFD packet to send [10:33:42]OFD Sender: No OFD packet to send [10:33:47]OFD Sender: No OFD packet to send [10:33:52]OFD Sender: No OFD packet to send [10:33:57]OFD Sender: No OFD packet to send [10:34:02]OFD Sender: No OFD packet to send [10:34:07]OFD Sender: No OFD packet to send [10:34:12]OFD Sender: No OFD packet to send [10:34:17]OFD Sender: No OFD packet to send [10:34:22]OFD Sender: No OFD packet to send [10:34:27]OFD Sender: No OFD packet to send [10:34:32]OFD Sender: No OFD packet to send [10:34:37]OFD Sender: No OFD packet to send [10:34:42]OFD Sender: No OFD packet to send [10:34:47]OFD Sender: No OFD packet to send [10:34:52]OFD Sender: No OFD packet to send [10:34:57]OFD Sender: No OFD packet to send [10:34:58]accept exits with 8 [10:34:58]New connection [10:34:58]New thread 3067116900 created [10:34:58]Thread 3067260260 joined [10:34:58]Waiting for new connection... [10:34:58] Sock 8.Parse request [10:34:58]Sock 8.Check first char [10:34:58]Sock 8.First char is OK [10:34:58]request: POST /json_proto HTTP/1.0 [10:34:58]Method: POST [10:34:58]URL: /json_proto [10:34:58]Method is POST - this is cgi request [10:34:58]url: /json_proto [10:34:58]query_string will be loaded in cgi processing [10:34:58]execute_cgi json_proto POST (null) [10:34:58]execute_cgi path=json_proto method=POST [10:34:58]POST find Content-Length [10:34:58]Host: 172.17.50.3:8080 [10:34:58]Content-Length: 793 [10:34:58]Content-Type: application/json [10:34:58] [10:34:58]POST finish read [10:34:58]Found Content-Length = 793 [10:34:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\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\u000A03526", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:58]execute_script... [10:34: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)2884979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\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\u000A03526", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:58]POST & json_proto [10:34:58]process_json_proto [10:34:58]json parsed OK: [10:34:58]protocol is kg_v1.0 [10:34:58]action value=close_receipt [10:34:58]process_action close_receipt [10:34:58]cmd_close_receipt [10:34:58]MH_GetDate [10:34:58]Write to MH i2c: F0 00 00 48 C5 FC [10:34:58]Write i2c OK [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: F0 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: F0 09 00 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: F0 09 00 48 C5 00 DC DC 14 67 6B 98 1E 66 BF [10:34:58]GetLastDocTimeStamp 1729420374 [10:34:58]current date 1729420508 [10:34:58]FM_GetShiftState [10:34:58]SAM_PROTO_GetShiftState [10:34:58]wFMCommunicate request_size=4 [10:34:58]MH_SAM_APDU [10:34:58]CAPDU: 80 13 01 00 [10:34:58]Write to MH i2c: E2 08 00 49 C5 80 13 01 00 00 00 00 00 8B [10:34:58]Write i2c OK [10:34:58]MH_I2C_Read... [10:34:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:58]Read from MH i2c: E2 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: E2 0E 00 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: E2 0E 00 49 C5 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 91 [10:34:58]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:34:58]wFMCommunicate OK [10:34:58]SAM_PROTO_GetShiftState done [10:34:58]FM_GetShiftState done [10:34:58]opened in 1729383220 [10:34:58]opened+sec_in_day 1729469620 [10:34:58]quantity*price = 0 [10:34:58]sum+1 = 1 [10:34:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 111 20.10.2024 10:35 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 03526 ФМ: 0000000000963346 ФД: 69266 ФПД: 111198045309276 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T103508&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69266&fm=111198045309276&tin=02508201610067®Number=0000000000156251&sum=0 [10:34:59]StoreToDocumentArchive [10:34:59]shift 193 fd 69266 [10:34:59]save to /storage/0193/doc_00069266 [10:34:59]save last doc name /storage/0193/doc_00069266 to /storage/kkm_last_doc_name [10:34:59]save OK [10:34:59]Clear old archive folders... [10:34:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:34:59]tlvbuf is 006B41C0 [10:34:59]SAM_PROTO_ClearQueue [10:34:59]wFMCommunicate request_size=4 [10:34:59]MH_SAM_APDU [10:34:59]CAPDU: 80 09 00 00 [10:34:59]Write to MH i2c: E2 08 00 56 C5 80 09 00 00 00 00 00 00 8D [10:34:59]Write i2c OK [10:34:59]MH_I2C_Read... [10:34:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:59]Read from MH i2c: E2 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: E2 03 00 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: E2 03 00 56 C5 00 90 00 8F [10:34:59]RAPDU: 90 00 [10:34:59]wFMCommunicate OK [10:34:59]SAM_PROTO_ClearQueue done [10:34:59]KKMCreateOFDPacket [10:34:59]OFDProtocolAddRootSTLVToBuf [10:34:59]FM_MakeSignedData [10:34:59]FM_MakeSignedData [10:34:59]SAM_PROTO_SignData [10:34:59]wFMCommunicate request_size=4 [10:34:59]MH_SAM_APDU [10:34:59]CAPDU: 80 0D 01 02 [10:34:59]Write to MH i2c: E2 08 00 57 C5 80 0D 01 02 00 00 00 00 95 [10:34:59]Write i2c OK [10:34:59]MH_I2C_Read... [10:34:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:59]Read from MH i2c: E2 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: E2 03 00 [10:34:59]MH_I2C_Read... [10:34:59]Read from MH i2c: E2 03 00 57 C5 00 90 00 90 [10:34:59]RAPDU: 90 00 [10:34:59]wFMCommunicate OK [10:34:59]wFMCommunicate request_size=255 [10:34:59]MH_SAM_APDU [10:34:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 6F 00 00 00 F4 03 04 00 DC DC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 92 0E 01 00 35 04 06 00 65 [10:34:59]Write to MH i2c: E2 02 01 58 C5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 6F 00 00 00 F4 03 04 00 DC DC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 92 0E 01 00 35 04 06 00 65 00 00 DE [10:34:59]Write i2c OK [10:34:59]MH_I2C_Read... [10:35:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:00]Read from MH i2c: E2 [10:35:00]MH_I2C_Read... [10:35:00]Read from MH i2c: E2 03 00 [10:35:00]MH_I2C_Read... [10:35:00]Read from MH i2c: E2 03 00 58 C5 00 90 00 91 [10:35:00]RAPDU: 90 00 [10:35:00]wFMCommunicate OK [10:35:00]wFMCommunicate request_size=10 [10:35:00]MH_SAM_APDU [10:35:00]CAPDU: 80 0D 02 02 05 22 4F FD 89 5C [10:35:00]Write to MH i2c: E2 0D 00 59 C5 80 0D 02 02 05 00 22 4F FD 89 5C 00 00 F5 [10:35:00]Write i2c OK [10:35:00]MH_I2C_Read... [10:35:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:00]Read from MH i2c: E2 [10:35:00]MH_I2C_Read... [10:35:00]Read from MH i2c: E2 03 00 [10:35:00]MH_I2C_Read... [10:35:00]Read from MH i2c: E2 03 00 59 C5 00 90 00 92 [10:35:00]RAPDU: 90 00 [10:35:00]wFMCommunicate OK [10:35:00]wFMCommunicate request_size=4 [10:35:00]MH_SAM_APDU [10:35:00]CAPDU: 80 0D 03 02 [10:35:00]Write to MH i2c: E2 08 00 5A C5 80 0D 03 02 00 00 00 00 9A [10:35:00]Write i2c OK [10:35:00]MH_I2C_Read... [10:35:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:35:00]Read from MH i2c: E2 [10:35:00]MH_I2C_Read... [10:35:00]Read from MH i2c: E2 0B 00 [10:35:00]MH_I2C_Read... [10:35:00]Read from MH i2c: E2 0B 00 5A C5 00 A4 15 BD 24 B7 19 8D 5C 90 00 EE [10:35:00]RAPDU: A4 15 BD 24 B7 19 8D 5C 90 00 [10:35:00]wFMCommunicate OK [10:35:00]SAM_PROTO_SignData done [10:35:00]FM_MakeSignedData done [10:35:00]CreateOFDProtocolMessage [10:35:00]wFMCommunicate request_size=4 [10:35:00]MH_SAM_APDU [10:35:00]CAPDU: 80 11 00 00 [10:35:00]Write to MH i2c: E2 08 00 5B C5 80 11 00 00 00 00 00 00 9A [10:35:00]Write i2c OK [10:35:00]MH_I2C_Read... [10:35:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:00]Read from MH i2c: E2 [10:35:00]MH_I2C_Read... [10:35:00]Read from MH i2c: E2 17 00 [10:35:00]MH_I2C_Read... [10:35:00]Read from MH i2c: E2 17 00 5B C5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EC [10:35:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:35:00]wFMCommunicate OK [10:35:00]CreateOFDProtocolMessage done [10:35:00]OFDSenderStorePacket 69266 [10:35:00]StoreOFDPacket docnum=69266 [10:35:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 4C F6 07 01 93 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 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 6F 00 00 00 F4 03 04 00 DC DC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 92 0E 01 00 35 04 06 00 65 22 4F FD 89 5C A4 15 BD 24 B7 19 8D 5C [10:35:00]CheckFolder [10:35:00]dirname=/storage/ofd_packets [10:35:00]CheckFolder done [10:35:00]ProducePacketName [10:35:00]name=ofd_packets/00069266 [10:35:00]NVStorageSaveData ofd_packets/00069266 [10:35:00]File name is /storage/ofd_packets/00069266 [10:35:00]Write 301 bytes [10:35:00]NVStorageSaveData done [10:35:00]OFDSenderStorePacket done [10:35:00]KKMCreateOFDPacket done [10:35:00]NVStorageSaveData kkm_last_timestamp [10:35:00]File name is /storage/kkm_last_timestamp [10:35:00]Write 4 bytes [10:35:00]NVStorageSaveData done [10:35:00]ExternCall_PrintAddStr [10:35:00]wPrintStart [10:35:00]Write to MH i2c: 01 00 00 5C C5 21 [10:35:00]Write i2c OK [10:35:00]MH_I2C_Read... [10:35:00]Read from MH i2c: 01 [10:35:00]MH_I2C_Read... [10:35:00]Read from MH i2c: 01 07 00 [10:35:00]MH_I2C_Read... [10:35:00]Read from MH i2c: 01 07 00 5C C5 00 00 00 00 00 FF 0F 36 [10:35:00]RasterBufferAndPrint [10:35:00]line Счет N : (1)2884979 [10:35:00]line ИНН: 02508201610067 [10:35:00]line Контрольно-Кассовый Чек [10:35:00]line ПРОДАЖА [10:35:00]line ТРК (МРК, ГНК) : 32 [10:35:00]line Товар: 2710124130 [10:35:00]line Аи-92-К-5 [10:35:00]line 40.000 * 0.00 [10:35:00]line = 0.00 [10:35:00]line НДС 12% НСП 1% [10:35:00]line > о реализуемом товаре [10:35:00]line ИТОГО: 0.00 [10:35:00]line НСП 1% : 0.00 [10:35:00]line НДС 12% : 0.00 [10:35:00]line Наличными: 0.00 [10:35:00]line Безнал.: 0.00 [10:35:00]line Место: АЗС № 85 "Партнер Нефть" [10:35:00]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:35:00]line СНО: Общий режим [10:35:00]line Чек 111 20.10.2024 10:35 [10:35:00]line Смена: 193 ФФД: 1.0 [10:35:00]line ЗНМ: 0300000167 [10:35:00]line РНМ: 0000000000156251 [10:35:00]line Версия ККМ: v1.0 [10:35:00]line Талоны: Топливная Карта [10:35:00]line 03526 [10:35:00]line ФМ: 0000000000963346 [10:35:00]line ФД: 69266 [10:35:00]line ФПД: 111198045309276 [10:35:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T103508&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69266&fm=111198045309276&tin=02508201610067®Number=0000000000156251&sum=0 [10:35:00]OFD Sender: Processing packet 69266 [packets to send 18, broken 17] [10:35:00]ProducePacketName [10:35:00]name=ofd_packets/00069266 [10:35:00]OFD Sender: To server: pG, [10:35:00]CommunicateWithHost lk.salyk.kg:30040 [10:35:00]ConnectInit lk.salyk.kg [10:35:00]written 0, free lines is 4095 [10:35:00]Connected sock=10 [10:35:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 4C F6 07 01 93 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 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 6F 00 00 00 F4 03 04 00 DC DC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 92 0E 01 00 35 04 06 00 65 22 4F FD 89 5C A4 15 BD 24 B7 19 8D 5C [10:35:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 FD C6 47 00 A9 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 92 0E 01 00 F4 03 04 00 83 86 14 67 B6 04 01 00 00 0F 24 65 9A DA 4C 78 53 [10:35:00]CommunicateWithHost err = 0 [10:35:00]CheckOFDResponse [10:35:00]1017 (14) - 77093643461234 [10:35:00]1041 (16) - 0000000000963346 [10:35:00]1040 (4) - 69266 [10:35:00]1012 (4) - 20.10.2024 04:26 [10:35:00]1206 (1) - 0 [10:35:00]OFD Sender: Remove packet 69266 [10:35:00]ProducePacketName [10:35:00]name=ofd_packets/00069266 [10:35:00]NVStorageDeleteData [10:35:01]Write to MH i2c: 01 00 00 86 C5 4B [10:35:01]Write i2c OK [10:35:01]MH_I2C_Read... [10:35:01]Read from MH i2c: 01 [10:35:01]MH_I2C_Read... [10:35:01]Read from MH i2c: 01 07 00 [10:35:01]MH_I2C_Read... [10:35:01]Read from MH i2c: 01 07 00 86 C5 00 00 00 00 00 04 0D 63 [10:35:01]RasterBufferAndPrint [10:35:01]line [10:35:01]line [10:35:01]line [10:35:01]line [10:35:01]line [10:35:01]written 0, free lines is 3340 [10:35:01]MH_Cut [10:35:01]Write to MH i2c: D1 01 00 8D C5 01 24 [10:35:01]Write i2c OK [10:35:01]MH_I2C_Read... [10:35:01]Read from MH i2c: D1 [10:35:01]MH_I2C_Read... [10:35:01]Read from MH i2c: D1 01 00 [10:35:01]MH_I2C_Read... [10:35:01]Read from MH i2c: D1 01 00 8D C5 00 23 [10:35:01]Write to MH i2c: 01 00 00 8E C5 53 [10:35:01]Write i2c OK [10:35:01]MH_I2C_Read... [10:35:01]OFD Sender: No OFD packet to send [10:35:01]*** Cut start [10:35:01]*** Partial cut [10:35:01]*** CUTSNS_PIN = 1 [10:35:01]*** CUTSNS_PIN = 0 [10:35:02]*** Brake cut motor [10:35:02]Read from MH i2c: 01 [10:35:02]MH_I2C_Read... [10:35:02]*** Stop cut motor [10:35:02]*** Cut end [10:35:02]Read from MH i2c: 01 07 00 [10:35:02]MH_I2C_Read... [10:35:02]Read from MH i2c: 01 07 00 8E C5 00 00 00 00 00 FF 0F 68 [10:35:02]process_action close_receipt done [10:35:02]requested_data is exist [10:35:02]produce_requested_data [10:35:02]requested_item fm.sn is exist - process it [10:35:02]wFMCommunicate request_size=4 [10:35:02]MH_SAM_APDU [10:35:02]CAPDU: 80 11 00 00 [10:35:02]Write to MH i2c: E2 08 00 8F C5 80 11 00 00 00 00 00 00 CE [10:35:02]Write i2c OK [10:35:02]MH_I2C_Read... [10:35:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:02]Read from MH i2c: E2 [10:35:02]MH_I2C_Read... [10:35:02]Read from MH i2c: E2 17 00 [10:35:02]MH_I2C_Read... [10:35:02]Read from MH i2c: E2 17 00 8F C5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 20 [10:35:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:35:02]wFMCommunicate OK [10:35:02]requested_item fd.num is exist - process it [10:35:02]SAM_PROTO_GetFieldsCounters [10:35:02]wFMCommunicate request_size=4 [10:35:02]MH_SAM_APDU [10:35:02]CAPDU: 80 13 00 00 [10:35:02]Write to MH i2c: E2 08 00 90 C5 80 13 00 00 00 00 00 00 D1 [10:35:02]Write i2c OK [10:35:02]MH_I2C_Read... [10:35:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:02]Read from MH i2c: E2 [10:35:02]MH_I2C_Read... [10:35:02]Read from MH i2c: E2 62 00 [10:35:02]MH_I2C_Read... [10:35:02]Read from MH i2c: E2 62 00 90 C5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 92 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [10:35:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 92 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:35:02]wFMCommunicate OK [10:35:02]SAM_PROTO_GetFieldsCounters done [10:35:02]requested_item shift.num is exist - process it [10:35:02]requested_item shift.opened is exist - process it [10:35:02]req_shift_opened [10:35:02]FM_GetShiftState [10:35:02]SAM_PROTO_GetShiftState [10:35:02]wFMCommunicate request_size=4 [10:35:02]MH_SAM_APDU [10:35:02]CAPDU: 80 13 01 00 [10:35:02]Write to MH i2c: E2 08 00 91 C5 80 13 01 00 00 00 00 00 D3 [10:35:02]Write i2c OK [10:35:02]MH_I2C_Read... [10:35:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:02]Read from MH i2c: E2 [10:35:02]MH_I2C_Read... [10:35:02]Read from MH i2c: E2 0E 00 [10:35:02]MH_I2C_Read... [10:35:02]Read from MH i2c: E2 0E 00 91 C5 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 D9 [10:35:02]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:35:02]wFMCommunicate OK [10:35:02]SAM_PROTO_GetShiftState done [10:35:02]FM_GetShiftState done [10:35:02]req_shift_opened done [10:35:02]requested_item shift.open_date is exist - process it [10:35:02]req_shift_open_date [10:35:02]req_shift_open_date done [10:35:02]produce_requested_data done [10:35:02]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69266,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [10:35:02]process_action_free close_receipt [10:35:02]json_value_free [10:35:02]json_value_free done [10:35:02]process_json_proto returns [10:35:02]Send response to host [10:35:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69266,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [10:35:02]free response buf [10:35:02]execute_script done [10:35:02]execute_script returns [10:35:02]free content buf [10:35:02]Sock 8.Close socket [10:35:02]Sock 8.Thread stoped [10:35:06]OFD Sender: No OFD packet to send [10:35:11]OFD Sender: No OFD packet to send [10:35:16]OFD Sender: No OFD packet to send [10:35:21]OFD Sender: No OFD packet to send [10:35:21]accept exits with 9 [10:35:21]New connection [10:35:21]New thread 3067260260 created [10:35:21]Thread 3067116900 joined [10:35:21]Waiting for new connection... [10:35:21] Sock 9.Parse request [10:35:21]Sock 9.Check first char [10:35:21]Sock 9.First char is OK [10:35:21]request: POST /json_proto HTTP/1.0 [10:35:21]Method: POST [10:35:21]URL: /json_proto [10:35:21]Method is POST - this is cgi request [10:35:21]url: /json_proto [10:35:21]query_string will be loaded in cgi processing [10:35:21]execute_cgi json_proto POST (null) [10:35:21]execute_cgi path=json_proto method=POST [10:35:21]POST find Content-Length [10:35:21]Host: 172.17.50.3:8080 [10:35:21]Content-Length: 680 [10:35:21]Content-Type: application/json [10:35:21] [10:35:21]POST finish read [10:35:21]Found Content-Length = 680 [10:35:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:21]execute_script... [10:35:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:21]POST & json_proto [10:35:21]process_json_proto [10:35:21]json parsed OK: [10:35:21]protocol is kg_v1.0 [10:35:21]action value=close_receipt [10:35:21]process_action close_receipt [10:35:21]cmd_close_receipt [10:35:21]MH_GetDate [10:35:21]Write to MH i2c: F0 00 00 92 C5 46 [10:35:21]Write i2c OK [10:35:21]MH_I2C_Read... [10:35:21]Read from MH i2c: F0 [10:35:21]MH_I2C_Read... [10:35:21]Read from MH i2c: F0 09 00 [10:35:21]MH_I2C_Read... [10:35:21]Read from MH i2c: F0 09 00 92 C5 00 F3 DC 14 67 6B 98 1E 66 20 [10:35:21]GetLastDocTimeStamp 1729420508 [10:35:21]current date 1729420531 [10:35:21]FM_GetShiftState [10:35:21]SAM_PROTO_GetShiftState [10:35:21]wFMCommunicate request_size=4 [10:35:21]MH_SAM_APDU [10:35:21]CAPDU: 80 13 01 00 [10:35:21]Write to MH i2c: E2 08 00 93 C5 80 13 01 00 00 00 00 00 D5 [10:35:21]Write i2c OK [10:35:21]MH_I2C_Read... [10:35:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:21]Read from MH i2c: E2 [10:35:21]MH_I2C_Read... [10:35:21]Read from MH i2c: E2 0E 00 [10:35:21]MH_I2C_Read... [10:35:21]Read from MH i2c: E2 0E 00 93 C5 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 DB [10:35:21]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:35:21]wFMCommunicate OK [10:35:21]SAM_PROTO_GetShiftState done [10:35:21]FM_GetShiftState done [10:35:21]opened in 1729383220 [10:35:21]opened+sec_in_day 1729469620 [10:35:21]quantity*price = 100050 [10:35:21]sum+1 = 100052 [10:35:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 112 20.10.2024 10:35 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69267 ФПД: 18214092761855 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T103531&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69267&fm=18214092761855&tin=02508201610067®Number=0000000000156251&sum=100000 [10:35:22]StoreToDocumentArchive [10:35:22]shift 193 fd 69267 [10:35:22]save to /storage/0193/doc_00069267 [10:35:22]save last doc name /storage/0193/doc_00069267 to /storage/kkm_last_doc_name [10:35:22]save OK [10:35:22]Clear old archive folders... [10:35:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:35:22]tlvbuf is 0081AA80 [10:35:22]SAM_PROTO_ClearQueue [10:35:22]wFMCommunicate request_size=4 [10:35:22]MH_SAM_APDU [10:35:22]CAPDU: 80 09 00 00 [10:35:22]Write to MH i2c: E2 08 00 A0 C5 80 09 00 00 00 00 00 00 D7 [10:35:22]Write i2c OK [10:35:22]MH_I2C_Read... [10:35:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:35:23]Read from MH i2c: E2 [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: E2 03 00 [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: E2 03 00 A0 C5 00 90 00 D9 [10:35:23]RAPDU: 90 00 [10:35:23]wFMCommunicate OK [10:35:23]SAM_PROTO_ClearQueue done [10:35:23]KKMCreateOFDPacket [10:35:23]OFDProtocolAddRootSTLVToBuf [10:35:23]FM_MakeSignedData [10:35:23]FM_MakeSignedData [10:35:23]SAM_PROTO_SignData [10:35:23]wFMCommunicate request_size=4 [10:35:23]MH_SAM_APDU [10:35:23]CAPDU: 80 0D 01 02 [10:35:23]Write to MH i2c: E2 08 00 A1 C5 80 0D 01 02 00 00 00 00 DF [10:35:23]Write i2c OK [10:35:23]MH_I2C_Read... [10:35:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:35:23]Read from MH i2c: E2 [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: E2 03 00 [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: E2 03 00 A1 C5 00 90 00 DA [10:35:23]RAPDU: 90 00 [10:35:23]wFMCommunicate OK [10:35:23]wFMCommunicate request_size=255 [10:35:23]MH_SAM_APDU [10:35:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 F3 DC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 93 0E 01 00 35 04 06 00 10 90 CC 87 [10:35:23]Write to MH i2c: E2 02 01 A2 C5 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 F3 DC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 93 0E 01 00 35 04 06 00 10 90 CC 87 00 00 6E [10:35:23]Write i2c OK [10:35:23]MH_I2C_Read... [10:35:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:23]Read from MH i2c: E2 [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: E2 03 00 [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: E2 03 00 A2 C5 00 90 00 DB [10:35:23]RAPDU: 90 00 [10:35:23]wFMCommunicate OK [10:35:23]wFMCommunicate request_size=7 [10:35:23]MH_SAM_APDU [10:35:23]CAPDU: 80 0D 02 02 02 6A FF [10:35:23]Write to MH i2c: E2 0A 00 A3 C5 80 0D 02 02 02 00 6A FF 00 00 4F [10:35:23]Write i2c OK [10:35:23]MH_I2C_Read... [10:35:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:23]Read from MH i2c: E2 [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: E2 03 00 [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: E2 03 00 A3 C5 00 90 00 DC [10:35:23]RAPDU: 90 00 [10:35:23]wFMCommunicate OK [10:35:23]wFMCommunicate request_size=4 [10:35:23]MH_SAM_APDU [10:35:23]CAPDU: 80 0D 03 02 [10:35:23]Write to MH i2c: E2 08 00 A4 C5 80 0D 03 02 00 00 00 00 E4 [10:35:23]Write i2c OK [10:35:23]MH_I2C_Read... [10:35:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:35:23]Read from MH i2c: E2 [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: E2 0B 00 [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: E2 0B 00 A4 C5 00 62 06 84 AD 6D 35 D7 38 90 00 2F [10:35:23]RAPDU: 62 06 84 AD 6D 35 D7 38 90 00 [10:35:23]wFMCommunicate OK [10:35:23]SAM_PROTO_SignData done [10:35:23]FM_MakeSignedData done [10:35:23]CreateOFDProtocolMessage [10:35:23]wFMCommunicate request_size=4 [10:35:23]MH_SAM_APDU [10:35:23]CAPDU: 80 11 00 00 [10:35:23]Write to MH i2c: E2 08 00 A5 C5 80 11 00 00 00 00 00 00 E4 [10:35:23]Write i2c OK [10:35:23]MH_I2C_Read... [10:35:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:23]Read from MH i2c: E2 [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: E2 17 00 [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: E2 17 00 A5 C5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 36 [10:35:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:35:23]wFMCommunicate OK [10:35:23]CreateOFDProtocolMessage done [10:35:23]OFDSenderStorePacket 69267 [10:35:23]StoreOFDPacket docnum=69267 [10:35:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 98 47 04 01 93 4E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 F3 DC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 93 0E 01 00 35 04 06 00 10 90 CC 87 6A FF 62 06 84 AD 6D 35 D7 38 [10:35:23]CheckFolder [10:35:23]dirname=/storage/ofd_packets [10:35:23]CheckFolder done [10:35:23]ProducePacketName [10:35:23]name=ofd_packets/00069267 [10:35:23]NVStorageSaveData ofd_packets/00069267 [10:35:23]File name is /storage/ofd_packets/00069267 [10:35:23]Write 298 bytes [10:35:23]NVStorageSaveData done [10:35:23]OFDSenderStorePacket done [10:35:23]KKMCreateOFDPacket done [10:35:23]NVStorageSaveData kkm_last_timestamp [10:35:23]File name is /storage/kkm_last_timestamp [10:35:23]Write 4 bytes [10:35:23]NVStorageSaveData done [10:35:23]ExternCall_PrintAddStr [10:35:23]wPrintStart [10:35:23]Write to MH i2c: 01 00 00 A6 C5 6B [10:35:23]Write i2c OK [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: 01 [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: 01 07 00 [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: 01 07 00 A6 C5 00 00 00 00 00 FF 0F 80 [10:35:23]RasterBufferAndPrint [10:35:23]line Счет N : (1)2884980 [10:35:23]line ИНН: 02508201610067 [10:35:23]line Контрольно-Кассовый Чек [10:35:23]line ПРОДАЖА [10:35:23]line ТРК (МРК, ГНК) : 51 [10:35:23]line Товар: 2710194210 [10:35:23]line ДТ-К-5 [10:35:23]line 13.130 * 76.20 [10:35:23]line = 1000.51 [10:35:23]line НДС 12% НСП 1% [10:35:23]line > о реализуемом товаре [10:35:23]line ОКРУГЛЕНИЕ: -0.51 [10:35:23]line ИТОГО: 1000.00 [10:35:23]line Внесено: 1000.00 [10:35:23]line СДАЧА: 0.00 [10:35:23]line НСП 1% : 8.85 [10:35:23]line НДС 12% : 106.25 [10:35:23]line Наличными: 1000.00 [10:35:23]line Безнал.: 0.00 [10:35:23]line Место: АЗС № 85 "Партнер Нефть" [10:35:23]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:35:23]line СНО: Общий режим [10:35:23]line Чек 112 20.10.2024 10:35 [10:35:23]line Смена: 193 ФФД: 1.0 [10:35:23]line ЗНМ: 0300000167 [10:35:23]line РНМ: 0000000000156251 [10:35:23]line Версия ККМ: v1.0 [10:35:23]line ФМ: 0000000000963346 [10:35:23]line ФД: 69267 [10:35:23]line ФПД: 18214092761855 [10:35:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T103531&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69267&fm=18214092761855&tin=02508201610067®Number=0000000000156251&sum=100000 [10:35:23]OFD Sender: Processing packet 69267 [packets to send 18, broken 17] [10:35:23]ProducePacketName [10:35:23]name=ofd_packets/00069267 [10:35:23]OFD Sender: To server: pG, [10:35:23]CommunicateWithHost lk.salyk.kg:30040 [10:35:23]ConnectInit lk.salyk.kg [10:35:23]written 0, free lines is 4095 [10:35:23]Connected sock=10 [10:35:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 98 47 04 01 93 4E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 F3 DC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 93 0E 01 00 35 04 06 00 10 90 CC 87 6A FF 62 06 84 AD 6D 35 D7 38 [10:35:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 F7 96 47 00 A1 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 93 0E 01 00 F4 03 04 00 9A 86 14 67 B6 04 01 00 00 AF 8A 23 D6 15 A4 0F 32 [10:35:24]CommunicateWithHost err = 0 [10:35:24]CheckOFDResponse [10:35:24]1017 (14) - 77093643461234 [10:35:24]1041 (16) - 0000000000963346 [10:35:24]1040 (4) - 69267 [10:35:24]1012 (4) - 20.10.2024 04:27 [10:35:24]1206 (1) - 0 [10:35:24]OFD Sender: Remove packet 69267 [10:35:24]ProducePacketName [10:35:24]name=ofd_packets/00069267 [10:35:24]NVStorageDeleteData [10:35:24]Write to MH i2c: 01 00 00 D1 C5 96 [10:35:24]Write i2c OK [10:35:24]MH_I2C_Read... [10:35:24]Read from MH i2c: 01 [10:35:24]MH_I2C_Read... [10:35:24]Read from MH i2c: 01 07 00 [10:35:24]MH_I2C_Read... [10:35:24]Read from MH i2c: 01 07 00 D1 C5 00 00 00 00 00 F0 0C 99 [10:35:24]RasterBufferAndPrint [10:35:24]line [10:35:24]line [10:35:24]line [10:35:24]line [10:35:24]line [10:35:24]written 0, free lines is 3318 [10:35:24]MH_Cut [10:35:24]Write to MH i2c: D1 01 00 D8 C5 01 6F [10:35:24]Write i2c OK [10:35:24]MH_I2C_Read... [10:35:24]Read from MH i2c: D1 [10:35:24]MH_I2C_Read... [10:35:24]Read from MH i2c: D1 01 00 [10:35:24]MH_I2C_Read... [10:35:24]Read from MH i2c: D1 01 00 D8 C5 00 6E [10:35:24]Write to MH i2c: 01 00 00 D9 C5 9E [10:35:24]Write i2c OK [10:35:24]MH_I2C_Read... [10:35:24]OFD Sender: No OFD packet to send [10:35:24]*** Cut start [10:35:24]*** Partial cut [10:35:24]*** CUTSNS_PIN = 1 [10:35:25]*** CUTSNS_PIN = 0 [10:35:25]*** Brake cut motor [10:35:25]Read from MH i2c: 01 [10:35:25]MH_I2C_Read... [10:35:25]*** Stop cut motor [10:35:25]*** Cut end [10:35:25]Read from MH i2c: 01 07 00 [10:35:25]MH_I2C_Read... [10:35:25]Read from MH i2c: 01 07 00 D9 C5 00 00 00 00 00 FF 0F B3 [10:35:25]process_action close_receipt done [10:35:25]requested_data is exist [10:35:25]produce_requested_data [10:35:25]requested_item fm.sn is exist - process it [10:35:25]wFMCommunicate request_size=4 [10:35:25]MH_SAM_APDU [10:35:25]CAPDU: 80 11 00 00 [10:35:25]Write to MH i2c: E2 08 00 DA C5 80 11 00 00 00 00 00 00 19 [10:35:25]Write i2c OK [10:35:25]MH_I2C_Read... [10:35:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:25]Read from MH i2c: E2 [10:35:25]MH_I2C_Read... [10:35:25]Read from MH i2c: E2 17 00 [10:35:25]MH_I2C_Read... [10:35:25]Read from MH i2c: E2 17 00 DA C5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6B [10:35:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:35:25]wFMCommunicate OK [10:35:25]requested_item fd.num is exist - process it [10:35:25]SAM_PROTO_GetFieldsCounters [10:35:25]wFMCommunicate request_size=4 [10:35:25]MH_SAM_APDU [10:35:25]CAPDU: 80 13 00 00 [10:35:25]Write to MH i2c: E2 08 00 DB C5 80 13 00 00 00 00 00 00 1C [10:35:25]Write i2c OK [10:35:25]MH_I2C_Read... [10:35:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:25]Read from MH i2c: E2 [10:35:25]MH_I2C_Read... [10:35:25]Read from MH i2c: E2 62 00 [10:35:25]MH_I2C_Read... [10:35:25]Read from MH i2c: E2 62 00 DB C5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 93 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [10:35:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 93 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:35:25]wFMCommunicate OK [10:35:25]SAM_PROTO_GetFieldsCounters done [10:35:25]requested_item shift.num is exist - process it [10:35:25]requested_item shift.opened is exist - process it [10:35:25]req_shift_opened [10:35:25]FM_GetShiftState [10:35:25]SAM_PROTO_GetShiftState [10:35:25]wFMCommunicate request_size=4 [10:35:25]MH_SAM_APDU [10:35:25]CAPDU: 80 13 01 00 [10:35:25]Write to MH i2c: E2 08 00 DC C5 80 13 01 00 00 00 00 00 1E [10:35:25]Write i2c OK [10:35:25]MH_I2C_Read... [10:35:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:25]Read from MH i2c: E2 [10:35:25]MH_I2C_Read... [10:35:25]Read from MH i2c: E2 0E 00 [10:35:25]MH_I2C_Read... [10:35:25]Read from MH i2c: E2 0E 00 DC C5 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 24 [10:35:25]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:35:25]wFMCommunicate OK [10:35:25]SAM_PROTO_GetShiftState done [10:35:25]FM_GetShiftState done [10:35:25]req_shift_opened done [10:35:25]requested_item shift.open_date is exist - process it [10:35:25]req_shift_open_date [10:35:25]req_shift_open_date done [10:35:25]produce_requested_data done [10:35:25]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69267,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [10:35:25]process_action_free close_receipt [10:35:25]json_value_free [10:35:25]json_value_free done [10:35:25]process_json_proto returns [10:35:25]Send response to host [10:35:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69267,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [10:35:25]free response buf [10:35:25]execute_script done [10:35:25]execute_script returns [10:35:25]free content buf [10:35:25]Sock 9.Close socket [10:35:25]Sock 9.Thread stoped [10:35:29]OFD Sender: No OFD packet to send [10:35:34]OFD Sender: No OFD packet to send [10:35:39]OFD Sender: No OFD packet to send [10:35:44]OFD Sender: No OFD packet to send [10:35:49]OFD Sender: No OFD packet to send [10:35:54]OFD Sender: No OFD packet to send [10:35:59]accept exits with 8 [10:35:59]New connection [10:35:59]New thread 3067116900 created [10:35:59]Thread 3067260260 joined [10:35:59]Waiting for new connection... [10:35:59] Sock 8.Parse request [10:35:59]Sock 8.Check first char [10:35:59]Sock 8.First char is OK [10:35:59]request: POST /json_proto HTTP/1.0 [10:35:59]Method: POST [10:35:59]URL: /json_proto [10:35:59]Method is POST - this is cgi request [10:35:59]url: /json_proto [10:35:59]query_string will be loaded in cgi processing [10:35:59]execute_cgi json_proto POST (null) [10:35:59]execute_cgi path=json_proto method=POST [10:35:59]POST find Content-Length [10:35:59]Host: 172.17.50.3:8080 [10:35:59]Content-Length: 767 [10:35:59]Content-Type: application/json [10:35:59] [10:35:59]POST finish read [10:35:59]Found Content-Length = 767 [10:35:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 30.190, "sum" : 2300.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2300.48 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:59]execute_script... [10:35: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)2884981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 30.190, "sum" : 2300.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2300.48 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:59]POST & json_proto [10:35:59]process_json_proto [10:35:59]json parsed OK: [10:35:59]protocol is kg_v1.0 [10:35:59]action value=close_receipt [10:35:59]process_action close_receipt [10:35:59]cmd_close_receipt [10:35:59]MH_GetDate [10:35:59]Write to MH i2c: F0 00 00 DD C5 91 [10:35:59]Write i2c OK [10:35:59]MH_I2C_Read... [10:35:59]Read from MH i2c: F0 [10:35:59]MH_I2C_Read... [10:35:59]Read from MH i2c: F0 09 00 [10:35:59]MH_I2C_Read... [10:35:59]Read from MH i2c: F0 09 00 DD C5 00 19 DD 14 67 6B 98 1E 66 92 [10:35:59]GetLastDocTimeStamp 1729420531 [10:35:59]current date 1729420569 [10:35:59]FM_GetShiftState [10:35:59]SAM_PROTO_GetShiftState [10:35:59]wFMCommunicate request_size=4 [10:35:59]MH_SAM_APDU [10:35:59]CAPDU: 80 13 01 00 [10:35:59]Write to MH i2c: E2 08 00 DE C5 80 13 01 00 00 00 00 00 20 [10:35:59]Write i2c OK [10:35:59]MH_I2C_Read... [10:35:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:59]Read from MH i2c: E2 [10:35:59]MH_I2C_Read... [10:35:59]Read from MH i2c: E2 0E 00 [10:35:59]MH_I2C_Read... [10:35:59]Read from MH i2c: E2 0E 00 DE C5 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 26 [10:35:59]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:35:59]wFMCommunicate OK [10:35:59]SAM_PROTO_GetShiftState done [10:35:59]FM_GetShiftState done [10:35:59]opened in 1729383220 [10:35:59]opened+sec_in_day 1729469620 [10:35:59]quantity*price = 230047 [10:35:59]sum+1 = 230049 [10:35:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2300.48 НСП 1% : 20.36 НДС 12% : 244.30 Наличными: 0.00 Безнал.: 2300.48 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 113 20.10.2024 10:36 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69268 ФПД: 206665815519547 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T103609&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69268&fm=206665815519547&tin=02508201610067®Number=0000000000156251&sum=230048 [10:36:00]StoreToDocumentArchive [10:36:00]shift 193 fd 69268 [10:36:00]save to /storage/0193/doc_00069268 [10:36:00]save last doc name /storage/0193/doc_00069268 to /storage/kkm_last_doc_name [10:36:00]save OK [10:36:00]Clear old archive folders... [10:36:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:36:00]tlvbuf is 005D7620 [10:36:00]SAM_PROTO_ClearQueue [10:36:00]wFMCommunicate request_size=4 [10:36:00]MH_SAM_APDU [10:36:00]CAPDU: 80 09 00 00 [10:36:00]Write to MH i2c: E2 08 00 EB C5 80 09 00 00 00 00 00 00 22 [10:36:00]Write i2c OK [10:36:00]MH_I2C_Read... [10:36:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:00]Read from MH i2c: E2 [10:36:00]MH_I2C_Read... [10:36:00]Read from MH i2c: E2 03 00 [10:36:00]MH_I2C_Read... [10:36:00]Read from MH i2c: E2 03 00 EB C5 00 90 00 24 [10:36:00]RAPDU: 90 00 [10:36:00]wFMCommunicate OK [10:36:00]SAM_PROTO_ClearQueue done [10:36:00]KKMCreateOFDPacket [10:36:00]OFDProtocolAddRootSTLVToBuf [10:36:00]FM_MakeSignedData [10:36:00]FM_MakeSignedData [10:36:00]SAM_PROTO_SignData [10:36:00]wFMCommunicate request_size=4 [10:36:00]MH_SAM_APDU [10:36:00]CAPDU: 80 0D 01 02 [10:36:00]Write to MH i2c: E2 08 00 EC C5 80 0D 01 02 00 00 00 00 2A [10:36:00]Write i2c OK [10:36:00]MH_I2C_Read... [10:36:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:00]Read from MH i2c: E2 [10:36:00]MH_I2C_Read... [10:36:00]Read from MH i2c: E2 03 00 [10:36:00]MH_I2C_Read... [10:36:00]Read from MH i2c: E2 03 00 EC C5 00 90 00 25 [10:36:00]RAPDU: 90 00 [10:36:00]wFMCommunicate OK [10:36:00]wFMCommunicate request_size=255 [10:36:00]MH_SAM_APDU [10:36: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 EE 75 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 5F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 82 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 19 DD 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 94 0E 01 00 35 04 06 00 BB F6 22 85 [10:36:00]Write to MH i2c: E2 02 01 ED C5 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 EE 75 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 5F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 82 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 19 DD 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 94 0E 01 00 35 04 06 00 BB F6 22 85 00 00 9A [10:36:00]Write i2c OK [10:36:00]MH_I2C_Read... [10:36:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:00]Read from MH i2c: E2 [10:36:00]MH_I2C_Read... [10:36:00]Read from MH i2c: E2 03 00 [10:36:00]MH_I2C_Read... [10:36:00]Read from MH i2c: E2 03 00 ED C5 00 90 00 26 [10:36:00]RAPDU: 90 00 [10:36:00]wFMCommunicate OK [10:36:00]wFMCommunicate request_size=7 [10:36:00]MH_SAM_APDU [10:36:00]CAPDU: 80 0D 02 02 02 71 3B [10:36:00]Write to MH i2c: E2 0A 00 EE C5 80 0D 02 02 02 00 71 3B 00 00 DD [10:36:00]Write i2c OK [10:36:00]MH_I2C_Read... [10:36:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:00]Read from MH i2c: E2 [10:36:00]MH_I2C_Read... [10:36:00]Read from MH i2c: E2 03 00 [10:36:00]MH_I2C_Read... [10:36:00]Read from MH i2c: E2 03 00 EE C5 00 90 00 27 [10:36:00]RAPDU: 90 00 [10:36:00]wFMCommunicate OK [10:36:00]wFMCommunicate request_size=4 [10:36:00]MH_SAM_APDU [10:36:00]CAPDU: 80 0D 03 02 [10:36:00]Write to MH i2c: E2 08 00 EF C5 80 0D 03 02 00 00 00 00 2F [10:36:00]Write i2c OK [10:36:00]MH_I2C_Read... [10:36:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:01]Read from MH i2c: E2 [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: E2 0B 00 [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: E2 0B 00 EF C5 00 79 02 9B BB 9F 2C 0A AA 90 00 80 [10:36:01]RAPDU: 79 02 9B BB 9F 2C 0A AA 90 00 [10:36:01]wFMCommunicate OK [10:36:01]SAM_PROTO_SignData done [10:36:01]FM_MakeSignedData done [10:36:01]CreateOFDProtocolMessage [10:36:01]wFMCommunicate request_size=4 [10:36:01]MH_SAM_APDU [10:36:01]CAPDU: 80 11 00 00 [10:36:01]Write to MH i2c: E2 08 00 F0 C5 80 11 00 00 00 00 00 00 2F [10:36:01]Write i2c OK [10:36:01]MH_I2C_Read... [10:36:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:01]Read from MH i2c: E2 [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: E2 17 00 [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: E2 17 00 F0 C5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 81 [10:36:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:36:01]wFMCommunicate OK [10:36:01]CreateOFDProtocolMessage done [10:36:01]OFDSenderStorePacket 69268 [10:36:01]StoreOFDPacket docnum=69268 [10:36:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 06 19 04 01 2F 6F 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 EE 75 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 5F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 82 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 19 DD 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 94 0E 01 00 35 04 06 00 BB F6 22 85 71 3B 79 02 9B BB 9F 2C 0A AA [10:36:01]CheckFolder [10:36:01]dirname=/storage/ofd_packets [10:36:01]CheckFolder done [10:36:01]ProducePacketName [10:36:01]name=ofd_packets/00069268 [10:36:01]NVStorageSaveData ofd_packets/00069268 [10:36:01]File name is /storage/ofd_packets/00069268 [10:36:01]Write 298 bytes [10:36:01]NVStorageSaveData done [10:36:01]OFDSenderStorePacket done [10:36:01]KKMCreateOFDPacket done [10:36:01]NVStorageSaveData kkm_last_timestamp [10:36:01]File name is /storage/kkm_last_timestamp [10:36:01]Write 4 bytes [10:36:01]NVStorageSaveData done [10:36:01]ExternCall_PrintAddStr [10:36:01]wPrintStart [10:36:01]Write to MH i2c: 01 00 00 F1 C5 B6 [10:36:01]Write i2c OK [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: 01 [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: 01 07 00 [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: 01 07 00 F1 C5 00 00 00 00 00 FF 0F CB [10:36:01]RasterBufferAndPrint [10:36:01]line Счет N : (1)2884981 [10:36:01]line ИНН: 02508201610067 [10:36:01]line Контрольно-Кассовый Чек [10:36:01]line ПРОДАЖА [10:36:01]line ТРК (МРК, ГНК) : 61 [10:36:01]line Товар: 2710194210 [10:36:01]line ДТ-К-5 [10:36:01]line 30.190 * 76.20 [10:36:01]line = 2300.48 [10:36:01]line НДС 12% НСП 1% [10:36:01]line > о реализуемом товаре [10:36:01]line ИТОГО: 2300.48 [10:36:01]line НСП 1% : 20.36 [10:36:01]line НДС 12% : 244.30 [10:36:01]line Наличными: 0.00 [10:36:01]line Безнал.: 2300.48 [10:36:01]line Место: АЗС № 85 "Партнер Нефть" [10:36:01]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:36:01]line СНО: Общий режим [10:36:01]line Чек 113 20.10.2024 10:36 [10:36:01]line Смена: 193 ФФД: 1.0 [10:36:01]line ЗНМ: 0300000167 [10:36:01]line РНМ: 0000000000156251 [10:36:01]line Версия ККМ: v1.0 [10:36:01]line Платежная система: Mbank [10:36:01]line ФМ: 0000000000963346 [10:36:01]line ФД: 69268 [10:36:01]line ФПД: 206665815519547 [10:36:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T103609&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69268&fm=206665815519547&tin=02508201610067®Number=0000000000156251&sum=230048 [10:36:01]OFD Sender: Processing packet 69268 [packets to send 18, broken 17] [10:36:01]ProducePacketName [10:36:01]name=ofd_packets/00069268 [10:36:01]OFD Sender: To server: pG, [10:36:01]CommunicateWithHost lk.salyk.kg:30040 [10:36:01]ConnectInit lk.salyk.kg [10:36:01]written 0, free lines is 4095 [10:36:01]Connected sock=10 [10:36:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 06 19 04 01 2F 6F 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 EE 75 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 5F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 82 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 19 DD 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 94 0E 01 00 35 04 06 00 BB F6 22 85 71 3B 79 02 9B BB 9F 2C 0A AA [10:36:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 49 44 47 00 B3 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 94 0E 01 00 F4 03 04 00 C0 86 14 67 B6 04 01 00 00 91 67 DE 64 C2 C3 9F 43 [10:36:01]CommunicateWithHost err = 0 [10:36:01]CheckOFDResponse [10:36:01]1017 (14) - 77093643461234 [10:36:01]1041 (16) - 0000000000963346 [10:36:01]1040 (4) - 69268 [10:36:01]1012 (4) - 20.10.2024 04:27 [10:36:01]1206 (1) - 0 [10:36:01]OFD Sender: Remove packet 69268 [10:36:01]ProducePacketName [10:36:01]name=ofd_packets/00069268 [10:36:01]NVStorageDeleteData [10:36:01]Write to MH i2c: 01 00 00 1A C6 E0 [10:36:01]Write i2c OK [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: 01 [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: 01 07 00 [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: 01 07 00 1A C6 00 00 00 00 00 21 0D 15 [10:36:01]RasterBufferAndPrint [10:36:01]line [10:36:01]line [10:36:01]line [10:36:01]line [10:36:01]line [10:36:01]written 0, free lines is 3367 [10:36:01]MH_Cut [10:36:01]Write to MH i2c: D1 01 00 21 C6 01 B9 [10:36:01]Write i2c OK [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: D1 [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: D1 01 00 [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: D1 01 00 21 C6 00 B8 [10:36:01]Write to MH i2c: 01 00 00 22 C6 E8 [10:36:01]Write i2c OK [10:36:01]MH_I2C_Read... [10:36:02]OFD Sender: No OFD packet to send [10:36:02]*** Cut start [10:36:02]*** Partial cut [10:36:02]*** CUTSNS_PIN = 1 [10:36:02]*** CUTSNS_PIN = 0 [10:36:02]*** Brake cut motor [10:36:03]Read from MH i2c: 01 [10:36:03]MH_I2C_Read... [10:36:03]*** Stop cut motor [10:36:03]*** Cut end [10:36:03]Read from MH i2c: 01 07 00 [10:36:03]MH_I2C_Read... [10:36:03]Read from MH i2c: 01 07 00 22 C6 00 00 00 00 00 FF 0F FD [10:36:03]process_action close_receipt done [10:36:03]requested_data is exist [10:36:03]produce_requested_data [10:36:03]requested_item fm.sn is exist - process it [10:36:03]wFMCommunicate request_size=4 [10:36:03]MH_SAM_APDU [10:36:03]CAPDU: 80 11 00 00 [10:36:03]Write to MH i2c: E2 08 00 23 C6 80 11 00 00 00 00 00 00 63 [10:36:03]Write i2c OK [10:36:03]MH_I2C_Read... [10:36:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:03]Read from MH i2c: E2 [10:36:03]MH_I2C_Read... [10:36:03]Read from MH i2c: E2 17 00 [10:36:03]MH_I2C_Read... [10:36:03]Read from MH i2c: E2 17 00 23 C6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B5 [10:36:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:36:03]wFMCommunicate OK [10:36:03]requested_item fd.num is exist - process it [10:36:03]SAM_PROTO_GetFieldsCounters [10:36:03]wFMCommunicate request_size=4 [10:36:03]MH_SAM_APDU [10:36:03]CAPDU: 80 13 00 00 [10:36:03]Write to MH i2c: E2 08 00 24 C6 80 13 00 00 00 00 00 00 66 [10:36:03]Write i2c OK [10:36:03]MH_I2C_Read... [10:36:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:03]Read from MH i2c: E2 [10:36:03]MH_I2C_Read... [10:36:03]Read from MH i2c: E2 62 00 [10:36:03]MH_I2C_Read... [10:36:03]Read from MH i2c: E2 62 00 24 C6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 94 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [10:36:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 94 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:36:03]wFMCommunicate OK [10:36:03]SAM_PROTO_GetFieldsCounters done [10:36:03]requested_item shift.num is exist - process it [10:36:03]requested_item shift.opened is exist - process it [10:36:03]req_shift_opened [10:36:03]FM_GetShiftState [10:36:03]SAM_PROTO_GetShiftState [10:36:03]wFMCommunicate request_size=4 [10:36:03]MH_SAM_APDU [10:36:03]CAPDU: 80 13 01 00 [10:36:03]Write to MH i2c: E2 08 00 25 C6 80 13 01 00 00 00 00 00 68 [10:36:03]Write i2c OK [10:36:03]MH_I2C_Read... [10:36:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:03]Read from MH i2c: E2 [10:36:03]MH_I2C_Read... [10:36:03]Read from MH i2c: E2 0E 00 [10:36:03]MH_I2C_Read... [10:36:03]Read from MH i2c: E2 0E 00 25 C6 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 6E [10:36:03]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:36:03]wFMCommunicate OK [10:36:03]SAM_PROTO_GetShiftState done [10:36:03]FM_GetShiftState done [10:36:03]req_shift_opened done [10:36:03]requested_item shift.open_date is exist - process it [10:36:03]req_shift_open_date [10:36:03]req_shift_open_date done [10:36:03]produce_requested_data done [10:36:03]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69268,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [10:36:03]process_action_free close_receipt [10:36:03]json_value_free [10:36:03]json_value_free done [10:36:03]process_json_proto returns [10:36:03]Send response to host [10:36:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69268,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [10:36:03]free response buf [10:36:03]execute_script done [10:36:03]execute_script returns [10:36:03]free content buf [10:36:03]Sock 8.Close socket [10:36:03]Sock 8.Thread stoped [10:36:07]OFD Sender: No OFD packet to send [10:36:12]OFD Sender: No OFD packet to send [10:36:17]OFD Sender: No OFD packet to send [10:36:22]OFD Sender: No OFD packet to send [10:36:27]OFD Sender: No OFD packet to send [10:36:32]OFD Sender: No OFD packet to send [10:36:37]OFD Sender: No OFD packet to send [10:36:42]OFD Sender: No OFD packet to send [10:36:47]OFD Sender: No OFD packet to send [10:36:52]OFD Sender: No OFD packet to send [10:36:57]OFD Sender: No OFD packet to send [10:37:02]OFD Sender: No OFD packet to send [10:37:07]OFD Sender: No OFD packet to send [10:37:12]OFD Sender: No OFD packet to send [10:37:17]OFD Sender: No OFD packet to send [10:37:22]OFD Sender: No OFD packet to send [10:37:27]OFD Sender: No OFD packet to send [10:37:32]OFD Sender: No OFD packet to send [10:37:37]OFD Sender: No OFD packet to send [10:37:42]OFD Sender: No OFD packet to send [10:37:47]OFD Sender: No OFD packet to send [10:37:52]OFD Sender: No OFD packet to send [10:37:57]OFD Sender: No OFD packet to send [10:38:02]OFD Sender: No OFD packet to send [10:38:07]OFD Sender: No OFD packet to send [10:38:12]OFD Sender: No OFD packet to send [10:38:17]OFD Sender: No OFD packet to send [10:38:22]OFD Sender: No OFD packet to send [10:38:27]OFD Sender: No OFD packet to send [10:38:32]OFD Sender: No OFD packet to send [10:38:37]OFD Sender: No OFD packet to send [10:38:42]OFD Sender: No OFD packet to send [10:38:47]OFD Sender: No OFD packet to send [10:38:52]OFD Sender: No OFD packet to send [10:38:57]OFD Sender: No OFD packet to send [10:39:02]OFD Sender: No OFD packet to send [10:39:07]OFD Sender: No OFD packet to send [10:39:12]OFD Sender: No OFD packet to send [10:39:17]OFD Sender: No OFD packet to send [10:39:22]OFD Sender: No OFD packet to send [10:39:26]accept exits with 9 [10:39:26]New connection [10:39:26]New thread 3067260260 created [10:39:26]Thread 3067116900 joined [10:39:26]Waiting for new connection... [10:39:26] Sock 9.Parse request [10:39:26]Sock 9.Check first char [10:39:26]Sock 9.First char is OK [10:39:26]request: POST /json_proto HTTP/1.0 [10:39:26]Method: POST [10:39:26]URL: /json_proto [10:39:26]Method is POST - this is cgi request [10:39:26]url: /json_proto [10:39:26]query_string will be loaded in cgi processing [10:39:26]execute_cgi json_proto POST (null) [10:39:26]execute_cgi path=json_proto method=POST [10:39:26]POST find Content-Length [10:39:26]Host: 172.17.50.3:8080 [10:39:26]Content-Length: 686 [10:39:26]Content-Type: application/json [10:39:26] [10:39:26]POST finish read [10:39:26]Found Content-Length = 686 [10:39:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 63.400, "sum" : 2466.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2466.00, "payments": [ { "type": 0, "sum" : 2466.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:26]execute_script... [10:39:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 63.400, "sum" : 2466.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2466.00, "payments": [ { "type": 0, "sum" : 2466.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:26]POST & json_proto [10:39:26]process_json_proto [10:39:26]json parsed OK: [10:39:26]protocol is kg_v1.0 [10:39:26]action value=close_receipt [10:39:26]process_action close_receipt [10:39:26]cmd_close_receipt [10:39:26]MH_GetDate [10:39:26]Write to MH i2c: F0 00 00 26 C6 DB [10:39:26]Write i2c OK [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: F0 [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: F0 09 00 [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: F0 09 00 26 C6 00 E8 DD 14 67 6B 98 1E 66 AB [10:39:26]GetLastDocTimeStamp 1729420569 [10:39:26]current date 1729420776 [10:39:26]FM_GetShiftState [10:39:26]SAM_PROTO_GetShiftState [10:39:26]wFMCommunicate request_size=4 [10:39:26]MH_SAM_APDU [10:39:26]CAPDU: 80 13 01 00 [10:39:26]Write to MH i2c: E2 08 00 27 C6 80 13 01 00 00 00 00 00 6A [10:39:26]Write i2c OK [10:39:26]MH_I2C_Read... [10:39:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:26]Read from MH i2c: E2 [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: E2 0E 00 [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: E2 0E 00 27 C6 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 70 [10:39:26]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:39:26]wFMCommunicate OK [10:39:26]SAM_PROTO_GetShiftState done [10:39:26]FM_GetShiftState done [10:39:26]opened in 1729383220 [10:39:26]opened+sec_in_day 1729469620 [10:39:26]quantity*price = 246626 [10:39:26]sum+1 = 246627 [10:39:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2466.00 Внесено: 3000.00 СДАЧА: 534.00 НСП 1% : 21.82 НДС 12% : 261.90 Наличными: 2466.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 114 20.10.2024 10:39 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69269 ФПД: 166137978470086 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T103936&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69269&fm=166137978470086&tin=02508201610067®Number=0000000000156251&sum=246600 [10:39:28]StoreToDocumentArchive [10:39:28]shift 193 fd 69269 [10:39:28]save to /storage/0193/doc_00069269 [10:39:28]save last doc name /storage/0193/doc_00069269 to /storage/kkm_last_doc_name [10:39:28]save OK [10:39:28]Clear old archive folders... [10:39:28]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:39:28]tlvbuf is 007E3AA0 [10:39:28]SAM_PROTO_ClearQueue [10:39:28]wFMCommunicate request_size=4 [10:39:28]MH_SAM_APDU [10:39:28]CAPDU: 80 09 00 00 [10:39:28]Write to MH i2c: E2 08 00 34 C6 80 09 00 00 00 00 00 00 6C [10:39:28]Write i2c OK [10:39:28]MH_I2C_Read... [10:39:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:39:28]Read from MH i2c: E2 [10:39:28]MH_I2C_Read... [10:39:28]Read from MH i2c: E2 03 00 [10:39:28]MH_I2C_Read... [10:39:28]Read from MH i2c: E2 03 00 34 C6 00 90 00 6E [10:39:28]RAPDU: 90 00 [10:39:28]wFMCommunicate OK [10:39:28]SAM_PROTO_ClearQueue done [10:39:28]KKMCreateOFDPacket [10:39:28]OFDProtocolAddRootSTLVToBuf [10:39:28]FM_MakeSignedData [10:39:28]FM_MakeSignedData [10:39:28]SAM_PROTO_SignData [10:39:28]wFMCommunicate request_size=4 [10:39:28]MH_SAM_APDU [10:39:28]CAPDU: 80 0D 01 02 [10:39:28]Write to MH i2c: E2 08 00 35 C6 80 0D 01 02 00 00 00 00 74 [10:39:28]Write i2c OK [10:39:28]MH_I2C_Read... [10:39:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:39:28]Read from MH i2c: E2 [10:39:28]MH_I2C_Read... [10:39:28]Read from MH i2c: E2 03 00 [10:39:28]MH_I2C_Read... [10:39:28]Read from MH i2c: E2 03 00 35 C6 00 90 00 6F [10:39:28]RAPDU: 90 00 [10:39:28]wFMCommunicate OK [10:39:28]wFMCommunicate request_size=255 [10:39:28]MH_SAM_APDU [10:39:28]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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 A8 F7 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 62 C3 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 C3 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 66 00 00 00 00 07 04 06 00 48 C3 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 E8 DD 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 95 0E 01 00 35 04 06 00 97 1A [10:39:28]Write to MH i2c: E2 02 01 36 C6 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 A8 F7 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 62 C3 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 C3 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 66 00 00 00 00 07 04 06 00 48 C3 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 E8 DD 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 95 0E 01 00 35 04 06 00 97 1A 00 00 54 [10:39:28]Write i2c OK [10:39:28]MH_I2C_Read... [10:39:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:28]Read from MH i2c: E2 [10:39:28]MH_I2C_Read... [10:39:28]Read from MH i2c: E2 03 00 [10:39:28]MH_I2C_Read... [10:39:28]Read from MH i2c: E2 03 00 36 C6 00 90 00 70 [10:39:28]RAPDU: 90 00 [10:39:28]wFMCommunicate OK [10:39:28]wFMCommunicate request_size=9 [10:39:28]MH_SAM_APDU [10:39:28]CAPDU: 80 0D 02 02 04 03 30 BE C6 [10:39:28]Write to MH i2c: E2 0C 00 37 C6 80 0D 02 02 04 00 03 30 BE C6 00 00 36 [10:39:28]Write i2c OK [10:39:28]MH_I2C_Read... [10:39:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:28]Read from MH i2c: E2 [10:39:28]MH_I2C_Read... [10:39:28]Read from MH i2c: E2 03 00 [10:39:28]MH_I2C_Read... [10:39:28]Read from MH i2c: E2 03 00 37 C6 00 90 00 71 [10:39:28]RAPDU: 90 00 [10:39:28]wFMCommunicate OK [10:39:28]wFMCommunicate request_size=4 [10:39:28]MH_SAM_APDU [10:39:28]CAPDU: 80 0D 03 02 [10:39:28]Write to MH i2c: E2 08 00 38 C6 80 0D 03 02 00 00 00 00 79 [10:39:28]Write i2c OK [10:39:28]MH_I2C_Read... [10:39:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:39:28]Read from MH i2c: E2 [10:39:28]MH_I2C_Read... [10:39:28]Read from MH i2c: E2 0B 00 [10:39:28]MH_I2C_Read... [10:39:28]Read from MH i2c: E2 0B 00 38 C6 00 83 F2 62 D6 F3 BF F2 68 90 00 33 [10:39:28]RAPDU: 83 F2 62 D6 F3 BF F2 68 90 00 [10:39:28]wFMCommunicate OK [10:39:28]SAM_PROTO_SignData done [10:39:28]FM_MakeSignedData done [10:39:28]CreateOFDProtocolMessage [10:39:28]wFMCommunicate request_size=4 [10:39:28]MH_SAM_APDU [10:39:28]CAPDU: 80 11 00 00 [10:39:28]Write to MH i2c: E2 08 00 39 C6 80 11 00 00 00 00 00 00 79 [10:39:28]Write i2c OK [10:39:28]MH_I2C_Read... [10:39:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:28]Read from MH i2c: E2 [10:39:28]MH_I2C_Read... [10:39:28]Read from MH i2c: E2 17 00 [10:39:28]MH_I2C_Read... [10:39:28]Read from MH i2c: E2 17 00 39 C6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CB [10:39:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:39:28]wFMCommunicate OK [10:39:28]CreateOFDProtocolMessage done [10:39:28]OFDSenderStorePacket 69269 [10:39:28]StoreOFDPacket docnum=69269 [10:39:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 79 2C 06 01 0C D8 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 A8 F7 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 62 C3 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 C3 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 66 00 00 00 00 07 04 06 00 48 C3 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 E8 DD 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 95 0E 01 00 35 04 06 00 97 1A 03 30 BE C6 83 F2 62 D6 F3 BF F2 68 [10:39:28]CheckFolder [10:39:28]dirname=/storage/ofd_packets [10:39:28]CheckFolder done [10:39:28]ProducePacketName [10:39:28]name=ofd_packets/00069269 [10:39:28]NVStorageSaveData ofd_packets/00069269 [10:39:28]File name is /storage/ofd_packets/00069269 [10:39:28]Write 300 bytes [10:39:28]NVStorageSaveData done [10:39:28]OFDSenderStorePacket done [10:39:28]KKMCreateOFDPacket done [10:39:28]NVStorageSaveData kkm_last_timestamp [10:39:28]File name is /storage/kkm_last_timestamp [10:39:28]Write 4 bytes [10:39:28]NVStorageSaveData done [10:39:28]ExternCall_PrintAddStr [10:39:28]wPrintStart [10:39:28]Write to MH i2c: 01 00 00 3A C6 00 [10:39:28]Write i2c OK [10:39:28]MH_I2C_Read... [10:39:28]Read from MH i2c: 01 [10:39:28]MH_I2C_Read... [10:39:28]Read from MH i2c: 01 07 00 [10:39:28]MH_I2C_Read... [10:39:28]Read from MH i2c: 01 07 00 3A C6 00 00 00 00 00 FF 0F 15 [10:39:28]RasterBufferAndPrint [10:39:28]line Счет N : (1)2884982 [10:39:28]line ИНН: 02508201610067 [10:39:28]line Контрольно-Кассовый Чек [10:39:28]line ПРОДАЖА [10:39:28]line ТРК (МРК, ГНК) : 71 [10:39:28]line Товар: 2711129700 [10:39:28]line ГАЗ-К-3 [10:39:28]line 63.400 * 38.90 [10:39:28]line = 2466.26 [10:39:28]line НДС 12% НСП 1% [10:39:28]line > о реализуемом товаре [10:39:28]line ОКРУГЛЕНИЕ: -0.26 [10:39:28]line ИТОГО: 2466.00 [10:39:28]line Внесено: 3000.00 [10:39:28]line СДАЧА: 534.00 [10:39:28]line НСП 1% : 21.82 [10:39:28]line НДС 12% : 261.90 [10:39:28]line Наличными: 2466.00 [10:39:28]line Безнал.: 0.00 [10:39:28]line Место: АЗС № 85 "Партнер Нефть" [10:39:28]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:39:28]line СНО: Общий режим [10:39:28]line Чек 114 20.10.2024 10:39 [10:39:28]line Смена: 193 ФФД: 1.0 [10:39:28]line ЗНМ: 0300000167 [10:39:28]line РНМ: 0000000000156251 [10:39:28]line Версия ККМ: v1.0 [10:39:28]line ФМ: 0000000000963346 [10:39:28]line ФД: 69269 [10:39:28]line ФПД: 166137978470086 [10:39:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T103936&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69269&fm=166137978470086&tin=02508201610067®Number=0000000000156251&sum=246600 [10:39:28]OFD Sender: Processing packet 69269 [packets to send 18, broken 17] [10:39:28]ProducePacketName [10:39:28]name=ofd_packets/00069269 [10:39:28]OFD Sender: To server: pG, [10:39:28]CommunicateWithHost lk.salyk.kg:30040 [10:39:28]ConnectInit lk.salyk.kg [10:39:28]written 0, free lines is 4095 [10:39:28]Connected sock=10 [10:39:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 79 2C 06 01 0C D8 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 A8 F7 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 62 C3 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 C3 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 66 00 00 00 00 07 04 06 00 48 C3 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 E8 DD 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 95 0E 01 00 35 04 06 00 97 1A 03 30 BE C6 83 F2 62 D6 F3 BF F2 68 [10:39:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 38 84 47 00 4F F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 95 0E 01 00 F4 03 04 00 8F 87 14 67 B6 04 01 00 00 DE 55 44 D5 10 64 4F 04 [10:39:29]CommunicateWithHost err = 0 [10:39:29]CheckOFDResponse [10:39:29]1017 (14) - 77093643461234 [10:39:29]1041 (16) - 0000000000963346 [10:39:29]1040 (4) - 69269 [10:39:29]1012 (4) - 20.10.2024 04:31 [10:39:29]1206 (1) - 0 [10:39:29]OFD Sender: Remove packet 69269 [10:39:29]ProducePacketName [10:39:29]name=ofd_packets/00069269 [10:39:29]NVStorageDeleteData [10:39:29]Write to MH i2c: 01 00 00 65 C6 2B [10:39:29]Write i2c OK [10:39:29]MH_I2C_Read... [10:39:29]Read from MH i2c: 01 [10:39:29]MH_I2C_Read... [10:39:29]Read from MH i2c: 01 07 00 [10:39:29]MH_I2C_Read... [10:39:29]Read from MH i2c: 01 07 00 65 C6 00 00 00 00 00 08 0D 47 [10:39:29]RasterBufferAndPrint [10:39:29]line [10:39:29]line [10:39:29]line [10:39:29]line [10:39:29]line [10:39:29]written 0, free lines is 3342 [10:39:29]MH_Cut [10:39:29]Write to MH i2c: D1 01 00 6C C6 01 04 [10:39:29]Write i2c OK [10:39:29]MH_I2C_Read... [10:39:29]Read from MH i2c: D1 [10:39:29]MH_I2C_Read... [10:39:29]Read from MH i2c: D1 01 00 [10:39:29]MH_I2C_Read... [10:39:29]Read from MH i2c: D1 01 00 6C C6 00 03 [10:39:29]Write to MH i2c: 01 00 00 6D C6 33 [10:39:29]Write i2c OK [10:39:29]MH_I2C_Read... [10:39:29]OFD Sender: No OFD packet to send [10:39:30]*** Cut start [10:39:30]*** Partial cut [10:39:30]*** CUTSNS_PIN = 1 [10:39:30]*** CUTSNS_PIN = 0 [10:39:30]*** Brake cut motor [10:39:30]Read from MH i2c: 01 [10:39:30]MH_I2C_Read... [10:39:30]*** Stop cut motor [10:39:30]*** Cut end [10:39:30]Read from MH i2c: 01 07 00 [10:39:30]MH_I2C_Read... [10:39:30]Read from MH i2c: 01 07 00 6D C6 00 00 00 00 00 FF 0F 48 [10:39:30]process_action close_receipt done [10:39:30]requested_data is exist [10:39:30]produce_requested_data [10:39:30]requested_item fm.sn is exist - process it [10:39:30]wFMCommunicate request_size=4 [10:39:30]MH_SAM_APDU [10:39:30]CAPDU: 80 11 00 00 [10:39:30]Write to MH i2c: E2 08 00 6E C6 80 11 00 00 00 00 00 00 AE [10:39:30]Write i2c OK [10:39:30]MH_I2C_Read... [10:39:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:30]Read from MH i2c: E2 [10:39:30]MH_I2C_Read... [10:39:30]Read from MH i2c: E2 17 00 [10:39:30]MH_I2C_Read... [10:39:30]Read from MH i2c: E2 17 00 6E C6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 00 [10:39:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:39:30]wFMCommunicate OK [10:39:30]requested_item fd.num is exist - process it [10:39:30]SAM_PROTO_GetFieldsCounters [10:39:30]wFMCommunicate request_size=4 [10:39:30]MH_SAM_APDU [10:39:30]CAPDU: 80 13 00 00 [10:39:30]Write to MH i2c: E2 08 00 6F C6 80 13 00 00 00 00 00 00 B1 [10:39:30]Write i2c OK [10:39:30]MH_I2C_Read... [10:39:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:30]Read from MH i2c: E2 [10:39:30]MH_I2C_Read... [10:39:30]Read from MH i2c: E2 62 00 [10:39:30]MH_I2C_Read... [10:39:30]Read from MH i2c: E2 62 00 6F C6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 95 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [10:39:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 95 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:39:30]wFMCommunicate OK [10:39:30]SAM_PROTO_GetFieldsCounters done [10:39:30]requested_item shift.num is exist - process it [10:39:30]requested_item shift.opened is exist - process it [10:39:30]req_shift_opened [10:39:30]FM_GetShiftState [10:39:30]SAM_PROTO_GetShiftState [10:39:30]wFMCommunicate request_size=4 [10:39:30]MH_SAM_APDU [10:39:30]CAPDU: 80 13 01 00 [10:39:30]Write to MH i2c: E2 08 00 70 C6 80 13 01 00 00 00 00 00 B3 [10:39:30]Write i2c OK [10:39:30]MH_I2C_Read... [10:39:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:30]Read from MH i2c: E2 [10:39:30]MH_I2C_Read... [10:39:30]Read from MH i2c: E2 0E 00 [10:39:30]MH_I2C_Read... [10:39:30]Read from MH i2c: E2 0E 00 70 C6 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 B9 [10:39:30]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:39:30]wFMCommunicate OK [10:39:30]SAM_PROTO_GetShiftState done [10:39:30]FM_GetShiftState done [10:39:30]req_shift_opened done [10:39:30]requested_item shift.open_date is exist - process it [10:39:30]req_shift_open_date [10:39:30]req_shift_open_date done [10:39:30]produce_requested_data done [10:39:30]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69269,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [10:39:30]process_action_free close_receipt [10:39:30]json_value_free [10:39:30]json_value_free done [10:39:30]process_json_proto returns [10:39:30]Send response to host [10:39:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69269,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [10:39:30]free response buf [10:39:30]execute_script done [10:39:30]execute_script returns [10:39:30]free content buf [10:39:30]Sock 9.Close socket [10:39:30]Sock 9.Thread stoped [10:39:34]OFD Sender: No OFD packet to send [10:39:39]OFD Sender: No OFD packet to send [10:39:44]OFD Sender: No OFD packet to send [10:39:49]OFD Sender: No OFD packet to send [10:39:54]OFD Sender: No OFD packet to send [10:39:59]OFD Sender: No OFD packet to send [10:40:04]OFD Sender: No OFD packet to send [10:40:09]OFD Sender: No OFD packet to send [10:40:14]OFD Sender: No OFD packet to send [10:40:19]OFD Sender: No OFD packet to send [10:40:24]OFD Sender: No OFD packet to send [10:40:29]OFD Sender: No OFD packet to send [10:40:34]OFD Sender: No OFD packet to send [10:40:39]OFD Sender: No OFD packet to send [10:40:44]OFD Sender: No OFD packet to send [10:40:49]OFD Sender: No OFD packet to send [10:40:54]OFD Sender: No OFD packet to send [10:40:59]OFD Sender: No OFD packet to send [10:41:04]OFD Sender: No OFD packet to send [10:41:09]OFD Sender: No OFD packet to send [10:41:14]OFD Sender: No OFD packet to send [10:41:19]OFD Sender: No OFD packet to send [10:41:24]OFD Sender: No OFD packet to send [10:41:29]OFD Sender: No OFD packet to send [10:41:34]OFD Sender: No OFD packet to send [10:41:39]OFD Sender: No OFD packet to send [10:41:44]OFD Sender: No OFD packet to send [10:41:49]OFD Sender: No OFD packet to send [10:41:54]OFD Sender: No OFD packet to send [10:41:59]OFD Sender: No OFD packet to send [10:42:03]accept exits with 8 [10:42:03]New connection [10:42:03]New thread 3067116900 created [10:42:03]Thread 3067260260 joined [10:42:03]Waiting for new connection... [10:42:03] Sock 8.Parse request [10:42:03]Sock 8.Check first char [10:42:03]Sock 8.First char is OK [10:42:03]request: POST /json_proto HTTP/1.0 [10:42:03]Method: POST [10:42:03]URL: /json_proto [10:42:03]Method is POST - this is cgi request [10:42:03]url: /json_proto [10:42:03]query_string will be loaded in cgi processing [10:42:03]execute_cgi json_proto POST (null) [10:42:03]execute_cgi path=json_proto method=POST [10:42:03]POST find Content-Length [10:42:03]Host: 172.17.50.3:8080 [10:42:03]Content-Length: 770 [10:42:03]Content-Type: application/json [10:42:03] [10:42:03]POST finish read [10:42:03]Found Content-Length = 770 [10:42:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:03]execute_script... [10:42: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)2884983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:03]POST & json_proto [10:42:03]process_json_proto [10:42:03]json parsed OK: [10:42:03]protocol is kg_v1.0 [10:42:03]action value=close_receipt [10:42:03]process_action close_receipt [10:42:03]cmd_close_receipt [10:42:03]MH_GetDate [10:42:03]Write to MH i2c: F0 00 00 71 C6 26 [10:42:03]Write i2c OK [10:42:03]MH_I2C_Read... [10:42:03]Read from MH i2c: F0 [10:42:03]MH_I2C_Read... [10:42:03]Read from MH i2c: F0 09 00 [10:42:03]MH_I2C_Read... [10:42:03]Read from MH i2c: F0 09 00 71 C6 00 85 DE 14 67 6B 98 1E 66 94 [10:42:03]GetLastDocTimeStamp 1729420776 [10:42:03]current date 1729420933 [10:42:03]FM_GetShiftState [10:42:03]SAM_PROTO_GetShiftState [10:42:03]wFMCommunicate request_size=4 [10:42:03]MH_SAM_APDU [10:42:03]CAPDU: 80 13 01 00 [10:42:03]Write to MH i2c: E2 08 00 72 C6 80 13 01 00 00 00 00 00 B5 [10:42:03]Write i2c OK [10:42:03]MH_I2C_Read... [10:42:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:03]Read from MH i2c: E2 [10:42:03]MH_I2C_Read... [10:42:03]Read from MH i2c: E2 0E 00 [10:42:03]MH_I2C_Read... [10:42:03]Read from MH i2c: E2 0E 00 72 C6 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 BB [10:42:03]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:42:03]wFMCommunicate OK [10:42:03]SAM_PROTO_GetShiftState done [10:42:03]FM_GetShiftState done [10:42:03]opened in 1729383220 [10:42:03]opened+sec_in_day 1729469620 [10:42:03]quantity*price = 100015 [10:42:03]sum+1 = 100017 [10:42:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 115 20.10.2024 10:42 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69270 ФПД: 261406251340951 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104213&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69270&fm=261406251340951&tin=02508201610067®Number=0000000000156251&sum=100016 [10:42:04]StoreToDocumentArchive [10:42:04]shift 193 fd 69270 [10:42:04]save to /storage/0193/doc_00069270 [10:42:04]save last doc name /storage/0193/doc_00069270 to /storage/kkm_last_doc_name [10:42:04]save OK [10:42:04]Clear old archive folders... [10:42:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:42:04]tlvbuf is 005075C0 [10:42:04]SAM_PROTO_ClearQueue [10:42:04]wFMCommunicate request_size=4 [10:42:04]MH_SAM_APDU [10:42:04]CAPDU: 80 09 00 00 [10:42:04]Write to MH i2c: E2 08 00 7F C6 80 09 00 00 00 00 00 00 B7 [10:42:04]Write i2c OK [10:42:04]MH_I2C_Read... [10:42:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:42:04]Read from MH i2c: E2 [10:42:04]MH_I2C_Read... [10:42:04]Read from MH i2c: E2 03 00 [10:42:04]MH_I2C_Read... [10:42:04]Read from MH i2c: E2 03 00 7F C6 00 90 00 B9 [10:42:04]RAPDU: 90 00 [10:42:04]wFMCommunicate OK [10:42:04]SAM_PROTO_ClearQueue done [10:42:04]KKMCreateOFDPacket [10:42:04]OFDProtocolAddRootSTLVToBuf [10:42:04]FM_MakeSignedData [10:42:04]FM_MakeSignedData [10:42:04]SAM_PROTO_SignData [10:42:04]wFMCommunicate request_size=4 [10:42:04]MH_SAM_APDU [10:42:04]CAPDU: 80 0D 01 02 [10:42:04]Write to MH i2c: E2 08 00 80 C6 80 0D 01 02 00 00 00 00 BF [10:42:04]Write i2c OK [10:42:04]MH_I2C_Read... [10:42:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:42:04]Read from MH i2c: E2 [10:42:04]MH_I2C_Read... [10:42:04]Read from MH i2c: E2 03 00 [10:42:04]MH_I2C_Read... [10:42:04]Read from MH i2c: E2 03 00 80 C6 00 90 00 BA [10:42:04]RAPDU: 90 00 [10:42:04]wFMCommunicate OK [10:42:04]wFMCommunicate request_size=255 [10:42:04]MH_SAM_APDU [10:42:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 85 DE 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 96 0E 01 00 35 04 06 00 ED [10:42:04]Write to MH i2c: E2 02 01 81 C6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 85 DE 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 96 0E 01 00 35 04 06 00 ED 00 00 06 [10:42:04]Write i2c OK [10:42:04]MH_I2C_Read... [10:42:04]OFD Sender: No OFD packet to send [10:42:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:05]Read from MH i2c: E2 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: E2 03 00 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: E2 03 00 81 C6 00 90 00 BB [10:42:05]RAPDU: 90 00 [10:42:05]wFMCommunicate OK [10:42:05]wFMCommunicate request_size=10 [10:42:05]MH_SAM_APDU [10:42:05]CAPDU: 80 0D 02 02 05 BF 62 C0 D4 97 [10:42:05]Write to MH i2c: E2 0D 00 82 C6 80 0D 02 02 05 00 BF 62 C0 D4 97 00 00 18 [10:42:05]Write i2c OK [10:42:05]MH_I2C_Read... [10:42:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:05]Read from MH i2c: E2 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: E2 03 00 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: E2 03 00 82 C6 00 90 00 BC [10:42:05]RAPDU: 90 00 [10:42:05]wFMCommunicate OK [10:42:05]wFMCommunicate request_size=4 [10:42:05]MH_SAM_APDU [10:42:05]CAPDU: 80 0D 03 02 [10:42:05]Write to MH i2c: E2 08 00 83 C6 80 0D 03 02 00 00 00 00 C4 [10:42:05]Write i2c OK [10:42:05]MH_I2C_Read... [10:42:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:42:05]Read from MH i2c: E2 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: E2 0B 00 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: E2 0B 00 83 C6 00 88 52 72 63 A6 EF 61 34 90 00 9E [10:42:05]RAPDU: 88 52 72 63 A6 EF 61 34 90 00 [10:42:05]wFMCommunicate OK [10:42:05]SAM_PROTO_SignData done [10:42:05]FM_MakeSignedData done [10:42:05]CreateOFDProtocolMessage [10:42:05]wFMCommunicate request_size=4 [10:42:05]MH_SAM_APDU [10:42:05]CAPDU: 80 11 00 00 [10:42:05]Write to MH i2c: E2 08 00 84 C6 80 11 00 00 00 00 00 00 C4 [10:42:05]Write i2c OK [10:42:05]MH_I2C_Read... [10:42:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:05]Read from MH i2c: E2 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: E2 17 00 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: E2 17 00 84 C6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 16 [10:42:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:42:05]wFMCommunicate OK [10:42:05]CreateOFDProtocolMessage done [10:42:05]OFDSenderStorePacket 69270 [10:42:05]StoreOFDPacket docnum=69270 [10:42:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 6D 6A 07 01 81 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 85 DE 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 96 0E 01 00 35 04 06 00 ED BF 62 C0 D4 97 88 52 72 63 A6 EF 61 34 [10:42:05]CheckFolder [10:42:05]dirname=/storage/ofd_packets [10:42:05]CheckFolder done [10:42:05]ProducePacketName [10:42:05]name=ofd_packets/00069270 [10:42:05]NVStorageSaveData ofd_packets/00069270 [10:42:05]File name is /storage/ofd_packets/00069270 [10:42:05]Write 301 bytes [10:42:05]NVStorageSaveData done [10:42:05]OFDSenderStorePacket done [10:42:05]KKMCreateOFDPacket done [10:42:05]NVStorageSaveData kkm_last_timestamp [10:42:05]File name is /storage/kkm_last_timestamp [10:42:05]Write 4 bytes [10:42:05]NVStorageSaveData done [10:42:05]OFD Sender: Processing packet 69270 [packets to send 18, broken 17] [10:42:05]ProducePacketName [10:42:05]name=ofd_packets/00069270 [10:42:05]OFD Sender: To server: pG, [10:42:05]CommunicateWithHost lk.salyk.kg:30040 [10:42:05]ConnectInit lk.salyk.kg [10:42:05]ExternCall_PrintAddStr [10:42:05]wPrintStart [10:42:05]Write to MH i2c: 01 00 00 85 C6 4B [10:42:05]Write i2c OK [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: 01 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: 01 07 00 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: 01 07 00 85 C6 00 00 00 00 00 FF 0F 60 [10:42:05]RasterBufferAndPrint [10:42:05]line Счет N : (1)2884983 [10:42:05]line ИНН: 02508201610067 [10:42:05]line Контрольно-Кассовый Чек [10:42:05]line ПРОДАЖА [10:42:05]line ТРК (МРК, ГНК) : 42 [10:42:05]line Товар: 2710124130 [10:42:05]line Аи-92-К-5 [10:42:05]line 14.950 * 66.90 [10:42:05]line = 1000.16 [10:42:05]line НДС 12% НСП 1% [10:42:05]line > о реализуемом товаре [10:42:05]line ИТОГО: 1000.16 [10:42:05]line НСП 1% : 8.85 [10:42:05]line НДС 12% : 106.21 [10:42:05]line Наличными: 0.00 [10:42:05]line Безнал.: 1000.16 [10:42:05]line Место: АЗС № 85 "Партнер Нефть" [10:42:05]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:42:05]line СНО: Общий режим [10:42:05]line Чек 115 20.10.2024 10:42 [10:42:05]line Смена: 193 ФФД: 1.0 [10:42:05]line ЗНМ: 0300000167 [10:42:05]line РНМ: 0000000000156251 [10:42:05]line Версия ККМ: v1.0 [10:42:05]line Платежная система: Mbank [10:42:05]line ФМ: 0000000000963346 [10:42:05]line ФД: 69270 [10:42:05]line ФПД: 261406251340951 [10:42:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104213&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69270&fm=261406251340951&tin=02508201610067®Number=0000000000156251&sum=100016 [10:42:05]Connected sock=11 [10:42:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 6D 6A 07 01 81 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 85 DE 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 96 0E 01 00 35 04 06 00 ED BF 62 C0 D4 97 88 52 72 63 A6 EF 61 34 [10:42:05]written 0, free lines is 4095 [10:42:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 8D 23 47 00 07 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 96 0E 01 00 F4 03 04 00 2C 88 14 67 B6 04 01 00 00 5E 8B 00 58 8A 38 08 D7 [10:42:05]CommunicateWithHost err = 0 [10:42:05]CheckOFDResponse [10:42:05]1017 (14) - 77093643461234 [10:42:05]1041 (16) - 0000000000963346 [10:42:05]1040 (4) - 69270 [10:42:05]1012 (4) - 20.10.2024 04:33 [10:42:05]1206 (1) - 0 [10:42:05]OFD Sender: Remove packet 69270 [10:42:05]ProducePacketName [10:42:05]name=ofd_packets/00069270 [10:42:05]NVStorageDeleteData [10:42:05]Write to MH i2c: 01 00 00 AE C6 74 [10:42:05]Write i2c OK [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: 01 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: 01 07 00 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: 01 07 00 AE C6 00 00 00 00 00 14 0D 9C [10:42:05]RasterBufferAndPrint [10:42:05]line [10:42:05]line [10:42:05]line [10:42:05]line [10:42:05]line [10:42:05]written 0, free lines is 3354 [10:42:06]MH_Cut [10:42:06]Write to MH i2c: D1 01 00 B5 C6 01 4D [10:42:06]Write i2c OK [10:42:06]MH_I2C_Read... [10:42:06]Read from MH i2c: D1 [10:42:06]MH_I2C_Read... [10:42:06]Read from MH i2c: D1 01 00 [10:42:06]MH_I2C_Read... [10:42:06]Read from MH i2c: D1 01 00 B5 C6 00 4C [10:42:06]Write to MH i2c: 01 00 00 B6 C6 7C [10:42:06]Write i2c OK [10:42:06]MH_I2C_Read... [10:42:06]OFD Sender: No OFD packet to send [10:42:06]*** Cut start [10:42:06]*** Partial cut [10:42:06]*** CUTSNS_PIN = 1 [10:42:06]*** CUTSNS_PIN = 0 [10:42:06]*** Brake cut motor [10:42:07]Read from MH i2c: 01 [10:42:07]MH_I2C_Read... [10:42:07]*** Stop cut motor [10:42:07]*** Cut end [10:42:07]Read from MH i2c: 01 07 00 [10:42:07]MH_I2C_Read... [10:42:07]Read from MH i2c: 01 07 00 B6 C6 00 00 00 00 00 FF 0F 91 [10:42:07]process_action close_receipt done [10:42:07]requested_data is exist [10:42:07]produce_requested_data [10:42:07]requested_item fm.sn is exist - process it [10:42:07]wFMCommunicate request_size=4 [10:42:07]MH_SAM_APDU [10:42:07]CAPDU: 80 11 00 00 [10:42:07]Write to MH i2c: E2 08 00 B7 C6 80 11 00 00 00 00 00 00 F7 [10:42:07]Write i2c OK [10:42:07]MH_I2C_Read... [10:42:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:07]Read from MH i2c: E2 [10:42:07]MH_I2C_Read... [10:42:07]Read from MH i2c: E2 17 00 [10:42:07]MH_I2C_Read... [10:42:07]Read from MH i2c: E2 17 00 B7 C6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 49 [10:42:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:42:07]wFMCommunicate OK [10:42:07]requested_item fd.num is exist - process it [10:42:07]SAM_PROTO_GetFieldsCounters [10:42:07]wFMCommunicate request_size=4 [10:42:07]MH_SAM_APDU [10:42:07]CAPDU: 80 13 00 00 [10:42:07]Write to MH i2c: E2 08 00 B8 C6 80 13 00 00 00 00 00 00 FA [10:42:07]Write i2c OK [10:42:07]MH_I2C_Read... [10:42:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:07]Read from MH i2c: E2 [10:42:07]MH_I2C_Read... [10:42:07]Read from MH i2c: E2 62 00 [10:42:07]MH_I2C_Read... [10:42:07]Read from MH i2c: E2 62 00 B8 C6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 96 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [10:42:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 96 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:42:07]wFMCommunicate OK [10:42:07]SAM_PROTO_GetFieldsCounters done [10:42:07]requested_item shift.num is exist - process it [10:42:07]requested_item shift.opened is exist - process it [10:42:07]req_shift_opened [10:42:07]FM_GetShiftState [10:42:07]SAM_PROTO_GetShiftState [10:42:07]wFMCommunicate request_size=4 [10:42:07]MH_SAM_APDU [10:42:07]CAPDU: 80 13 01 00 [10:42:07]Write to MH i2c: E2 08 00 B9 C6 80 13 01 00 00 00 00 00 FC [10:42:07]Write i2c OK [10:42:07]MH_I2C_Read... [10:42:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:07]Read from MH i2c: E2 [10:42:07]MH_I2C_Read... [10:42:07]Read from MH i2c: E2 0E 00 [10:42:07]MH_I2C_Read... [10:42:07]Read from MH i2c: E2 0E 00 B9 C6 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 02 [10:42:07]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:42:07]wFMCommunicate OK [10:42:07]SAM_PROTO_GetShiftState done [10:42:07]FM_GetShiftState done [10:42:07]req_shift_opened done [10:42:07]requested_item shift.open_date is exist - process it [10:42:07]req_shift_open_date [10:42:07]req_shift_open_date done [10:42:07]produce_requested_data done [10:42:07]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69270,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [10:42:07]process_action_free close_receipt [10:42:07]json_value_free [10:42:07]json_value_free done [10:42:07]process_json_proto returns [10:42:07]Send response to host [10:42:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69270,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [10:42:07]free response buf [10:42:07]execute_script done [10:42:07]execute_script returns [10:42:07]free content buf [10:42:07]Sock 8.Close socket [10:42:07]Sock 8.Thread stoped [10:42:11]OFD Sender: No OFD packet to send [10:42:16]OFD Sender: No OFD packet to send [10:42:21]OFD Sender: No OFD packet to send [10:42:26]OFD Sender: No OFD packet to send [10:42:31]OFD Sender: No OFD packet to send [10:42:36]OFD Sender: No OFD packet to send [10:42:41]OFD Sender: No OFD packet to send [10:42:46]OFD Sender: No OFD packet to send [10:42:51]OFD Sender: No OFD packet to send [10:42:56]OFD Sender: No OFD packet to send [10:43:01]OFD Sender: No OFD packet to send [10:43:06]OFD Sender: No OFD packet to send [10:43:11]OFD Sender: No OFD packet to send [10:43:16]OFD Sender: No OFD packet to send [10:43:21]OFD Sender: No OFD packet to send [10:43:26]OFD Sender: No OFD packet to send [10:43:31]OFD Sender: No OFD packet to send [10:43:36]OFD Sender: No OFD packet to send [10:43:41]OFD Sender: No OFD packet to send [10:43:46]OFD Sender: No OFD packet to send [10:43:51]OFD Sender: No OFD packet to send [10:43:56]OFD Sender: No OFD packet to send [10:44:01]OFD Sender: No OFD packet to send [10:44:06]OFD Sender: No OFD packet to send [10:44:11]OFD Sender: No OFD packet to send [10:44:16]OFD Sender: No OFD packet to send [10:44:21]OFD Sender: No OFD packet to send [10:44:26]OFD Sender: No OFD packet to send [10:44:31]OFD Sender: No OFD packet to send [10:44:36]OFD Sender: No OFD packet to send [10:44:41]OFD Sender: No OFD packet to send [10:44:46]OFD Sender: No OFD packet to send [10:44:51]OFD Sender: No OFD packet to send [10:44:56]OFD Sender: No OFD packet to send [10:45:01]OFD Sender: No OFD packet to send [10:45:06]OFD Sender: No OFD packet to send [10:45:11]OFD Sender: No OFD packet to send [10:45:16]OFD Sender: No OFD packet to send [10:45:21]OFD Sender: No OFD packet to send [10:45:26]OFD Sender: No OFD packet to send [10:45:31]OFD Sender: No OFD packet to send [10:45:36]OFD Sender: No OFD packet to send [10:45:41]OFD Sender: No OFD packet to send [10:45:46]OFD Sender: No OFD packet to send [10:45:51]OFD Sender: No OFD packet to send [10:45:56]OFD Sender: No OFD packet to send [10:46:01]OFD Sender: No OFD packet to send [10:46:06]OFD Sender: No OFD packet to send [10:46:11]OFD Sender: No OFD packet to send [10:46:16]OFD Sender: No OFD packet to send [10:46:21]OFD Sender: No OFD packet to send [10:46:26]OFD Sender: No OFD packet to send [10:46:31]OFD Sender: No OFD packet to send [10:46:36]OFD Sender: No OFD packet to send [10:46:39]accept exits with 9 [10:46:39]New connection [10:46:39]New thread 3067260260 created [10:46:39]Thread 3067116900 joined [10:46:39]Waiting for new connection... [10:46:39] Sock 9.Parse request [10:46:39]Sock 9.Check first char [10:46:39]Sock 9.First char is OK [10:46:39]request: POST /json_proto HTTP/1.0 [10:46:39]Method: POST [10:46:39]URL: /json_proto [10:46:39]Method is POST - this is cgi request [10:46:39]url: /json_proto [10:46:39]query_string will be loaded in cgi processing [10:46:39]execute_cgi json_proto POST (null) [10:46:39]execute_cgi path=json_proto method=POST [10:46:39]POST find Content-Length [10:46:39]Host: 172.17.50.3:8080 [10:46:39]Content-Length: 678 [10:46:39]Content-Type: application/json [10:46:39] [10:46:39]POST finish read [10:46:39]Found Content-Length = 678 [10:46:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:39]execute_script... [10:46:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:39]POST & json_proto [10:46:39]process_json_proto [10:46:39]json parsed OK: [10:46:39]protocol is kg_v1.0 [10:46:39]action value=close_receipt [10:46:39]process_action close_receipt [10:46:39]cmd_close_receipt [10:46:39]MH_GetDate [10:46:39]Write to MH i2c: F0 00 00 BA C6 6F [10:46:39]Write i2c OK [10:46:39]MH_I2C_Read... [10:46:39]Read from MH i2c: F0 [10:46:39]MH_I2C_Read... [10:46:39]Read from MH i2c: F0 09 00 [10:46:39]MH_I2C_Read... [10:46:39]Read from MH i2c: F0 09 00 BA C6 00 99 DF 14 67 6B 98 1E 66 F2 [10:46:39]GetLastDocTimeStamp 1729420933 [10:46:39]current date 1729421209 [10:46:39]FM_GetShiftState [10:46:39]SAM_PROTO_GetShiftState [10:46:39]wFMCommunicate request_size=4 [10:46:39]MH_SAM_APDU [10:46:39]CAPDU: 80 13 01 00 [10:46:39]Write to MH i2c: E2 08 00 BB C6 80 13 01 00 00 00 00 00 FE [10:46:39]Write i2c OK [10:46:39]MH_I2C_Read... [10:46:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:39]Read from MH i2c: E2 [10:46:39]MH_I2C_Read... [10:46:39]Read from MH i2c: E2 0E 00 [10:46:39]MH_I2C_Read... [10:46:39]Read from MH i2c: E2 0E 00 BB C6 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 04 [10:46:39]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:46:39]wFMCommunicate OK [10:46:39]SAM_PROTO_GetShiftState done [10:46:39]FM_GetShiftState done [10:46:39]opened in 1729383220 [10:46:39]opened+sec_in_day 1729469620 [10:46:39]quantity*price = 50041 [10:46:39]sum+1 = 50042 [10:46:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 116 20.10.2024 10:46 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69271 ФПД: 63887173904559 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104649&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69271&fm=63887173904559&tin=02508201610067®Number=0000000000156251&sum=50000 [10:46:40]StoreToDocumentArchive [10:46:40]shift 193 fd 69271 [10:46:40]save to /storage/0193/doc_00069271 [10:46:40]save last doc name /storage/0193/doc_00069271 to /storage/kkm_last_doc_name [10:46:40]save OK [10:46:40]Clear old archive folders... [10:46:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:46:40]tlvbuf is 004EAFC0 [10:46:40]SAM_PROTO_ClearQueue [10:46:40]wFMCommunicate request_size=4 [10:46:40]MH_SAM_APDU [10:46:40]CAPDU: 80 09 00 00 [10:46:40]Write to MH i2c: E2 08 00 C8 C6 80 09 00 00 00 00 00 00 00 [10:46:40]Write i2c OK [10:46:40]MH_I2C_Read... [10:46:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:41]Read from MH i2c: E2 [10:46:41]MH_I2C_Read... [10:46:41]Read from MH i2c: E2 03 00 [10:46:41]MH_I2C_Read... [10:46:41]Read from MH i2c: E2 03 00 C8 C6 00 90 00 02 [10:46:41]RAPDU: 90 00 [10:46:41]wFMCommunicate OK [10:46:41]SAM_PROTO_ClearQueue done [10:46:41]KKMCreateOFDPacket [10:46:41]OFDProtocolAddRootSTLVToBuf [10:46:41]FM_MakeSignedData [10:46:41]FM_MakeSignedData [10:46:41]SAM_PROTO_SignData [10:46:41]wFMCommunicate request_size=4 [10:46:41]MH_SAM_APDU [10:46:41]CAPDU: 80 0D 01 02 [10:46:41]Write to MH i2c: E2 08 00 C9 C6 80 0D 01 02 00 00 00 00 08 [10:46:41]Write i2c OK [10:46:41]MH_I2C_Read... [10:46:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:41]Read from MH i2c: E2 [10:46:41]MH_I2C_Read... [10:46:41]Read from MH i2c: E2 03 00 [10:46:41]MH_I2C_Read... [10:46:41]Read from MH i2c: E2 03 00 C9 C6 00 90 00 03 [10:46:41]RAPDU: 90 00 [10:46:41]wFMCommunicate OK [10:46:41]wFMCommunicate request_size=255 [10:46:41]MH_SAM_APDU [10:46:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 99 DF 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 97 0E 01 00 35 04 06 00 3A [10:46:41]Write to MH i2c: E2 02 01 CA C6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 99 DF 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 97 0E 01 00 35 04 06 00 3A 00 00 99 [10:46:41]Write i2c OK [10:46:41]MH_I2C_Read... [10:46:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:41]Read from MH i2c: E2 [10:46:41]MH_I2C_Read... [10:46:41]Read from MH i2c: E2 03 00 [10:46:41]MH_I2C_Read... [10:46:41]Read from MH i2c: E2 03 00 CA C6 00 90 00 04 [10:46:41]RAPDU: 90 00 [10:46:41]wFMCommunicate OK [10:46:41]wFMCommunicate request_size=10 [10:46:41]MH_SAM_APDU [10:46:41]CAPDU: 80 0D 02 02 05 1A E4 4E 68 AF [10:46:41]Write to MH i2c: E2 0D 00 CB C6 80 0D 02 02 05 00 1A E4 4E 68 AF 00 00 78 [10:46:41]Write i2c OK [10:46:41]MH_I2C_Read... [10:46:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:41]Read from MH i2c: E2 [10:46:41]MH_I2C_Read... [10:46:41]Read from MH i2c: E2 03 00 [10:46:41]MH_I2C_Read... [10:46:41]Read from MH i2c: E2 03 00 CB C6 00 90 00 05 [10:46:41]RAPDU: 90 00 [10:46:41]wFMCommunicate OK [10:46:41]wFMCommunicate request_size=4 [10:46:41]MH_SAM_APDU [10:46:41]CAPDU: 80 0D 03 02 [10:46:41]Write to MH i2c: E2 08 00 CC C6 80 0D 03 02 00 00 00 00 0D [10:46:41]Write i2c OK [10:46:41]MH_I2C_Read... [10:46:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:41]Read from MH i2c: E2 [10:46:41]MH_I2C_Read... [10:46:41]Read from MH i2c: E2 0B 00 [10:46:41]MH_I2C_Read... [10:46:41]Read from MH i2c: E2 0B 00 CC C6 00 92 65 E3 84 1C 2D 1F 02 90 00 D6 [10:46:41]RAPDU: 92 65 E3 84 1C 2D 1F 02 90 00 [10:46:41]wFMCommunicate OK [10:46:41]SAM_PROTO_SignData done [10:46:41]FM_MakeSignedData done [10:46:41]CreateOFDProtocolMessage [10:46:41]wFMCommunicate request_size=4 [10:46:41]MH_SAM_APDU [10:46:41]CAPDU: 80 11 00 00 [10:46:41]Write to MH i2c: E2 08 00 CD C6 80 11 00 00 00 00 00 00 0D [10:46:41]Write i2c OK [10:46:41]MH_I2C_Read... [10:46:41]OFD Sender: No OFD packet to send [10:46:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:41]Read from MH i2c: E2 [10:46:41]MH_I2C_Read... [10:46:41]Read from MH i2c: E2 17 00 [10:46:41]MH_I2C_Read... [10:46:41]Read from MH i2c: E2 17 00 CD C6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5F [10:46:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:46:41]wFMCommunicate OK [10:46:41]CreateOFDProtocolMessage done [10:46:41]OFDSenderStorePacket 69271 [10:46:41]StoreOFDPacket docnum=69271 [10:46:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 36 1C 07 01 FF 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 99 DF 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 97 0E 01 00 35 04 06 00 3A 1A E4 4E 68 AF 92 65 E3 84 1C 2D 1F 02 [10:46:41]CheckFolder [10:46:41]dirname=/storage/ofd_packets [10:46:41]CheckFolder done [10:46:41]ProducePacketName [10:46:41]name=ofd_packets/00069271 [10:46:41]NVStorageSaveData ofd_packets/00069271 [10:46:41]File name is /storage/ofd_packets/00069271 [10:46:41]Write 301 bytes [10:46:41]NVStorageSaveData done [10:46:41]OFDSenderStorePacket done [10:46:41]KKMCreateOFDPacket done [10:46:41]NVStorageSaveData kkm_last_timestamp [10:46:41]File name is /storage/kkm_last_timestamp [10:46:41]Write 4 bytes [10:46:41]NVStorageSaveData done [10:46:41]ExternCall_PrintAddStr [10:46:41]wPrintStart [10:46:41]Write to MH i2c: 01 00 00 CE C6 94 [10:46:41]Write i2c OK [10:46:41]MH_I2C_Read... [10:46:41]Read from MH i2c: 01 [10:46:41]MH_I2C_Read... [10:46:41]Read from MH i2c: 01 07 00 [10:46:41]MH_I2C_Read... [10:46:41]Read from MH i2c: 01 07 00 CE C6 00 00 00 00 00 FF 0F A9 [10:46:41]RasterBufferAndPrint [10:46:41]line Счет N : (1)2884984 [10:46:41]line ИНН: 02508201610067 [10:46:41]line Контрольно-Кассовый Чек [10:46:41]line ПРОДАЖА [10:46:41]line ТРК (МРК, ГНК) : 42 [10:46:41]line Товар: 2710124130 [10:46:41]line Аи-92-К-5 [10:46:41]line 7.480 * 66.90 [10:46:41]line = 500.41 [10:46:41]line НДС 12% НСП 1% [10:46:41]line > о реализуемом товаре [10:46:41]line ОКРУГЛЕНИЕ: -0.41 [10:46:41]line ИТОГО: 500.00 [10:46:41]line Внесено: 500.00 [10:46:41]line СДАЧА: 0.00 [10:46:41]line НСП 1% : 4.43 [10:46:41]line НДС 12% : 53.14 [10:46:41]line Наличными: 500.00 [10:46:41]line Безнал.: 0.00 [10:46:41]line Место: АЗС № 85 "Партнер Нефть" [10:46:41]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:46:41]line СНО: Общий режим [10:46:41]line Чек 116 20.10.2024 10:46 [10:46:41]line Смена: 193 ФФД: 1.0 [10:46:41]line ЗНМ: 0300000167 [10:46:41]line РНМ: 0000000000156251 [10:46:41]line Версия ККМ: v1.0 [10:46:41]line ФМ: 0000000000963346 [10:46:41]line ФД: 69271 [10:46:41]line ФПД: 63887173904559 [10:46:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104649&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69271&fm=63887173904559&tin=02508201610067®Number=0000000000156251&sum=50000 [10:46:41]OFD Sender: Processing packet 69271 [packets to send 18, broken 17] [10:46:41]ProducePacketName [10:46:41]name=ofd_packets/00069271 [10:46:41]OFD Sender: To server: pG, [10:46:41]CommunicateWithHost lk.salyk.kg:30040 [10:46:41]ConnectInit lk.salyk.kg [10:46:41]written 0, free lines is 4095 [10:46:41]Connected sock=8 [10:46:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 36 1C 07 01 FF 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 99 DF 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 97 0E 01 00 35 04 06 00 3A 1A E4 4E 68 AF 92 65 E3 84 1C 2D 1F 02 [10:46:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 06 CE 47 00 62 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 97 0E 01 00 F4 03 04 00 40 89 14 67 B6 04 01 00 00 63 DF F7 C3 0F 96 20 D2 [10:46:42]CommunicateWithHost err = 0 [10:46:42]CheckOFDResponse [10:46:42]1017 (14) - 77093643461234 [10:46:42]1041 (16) - 0000000000963346 [10:46:42]1040 (4) - 69271 [10:46:42]1012 (4) - 20.10.2024 04:38 [10:46:42]1206 (1) - 0 [10:46:42]OFD Sender: Remove packet 69271 [10:46:42]ProducePacketName [10:46:42]name=ofd_packets/00069271 [10:46:42]NVStorageDeleteData [10:46:42]Write to MH i2c: 01 00 00 F9 C6 BF [10:46:42]Write i2c OK [10:46:42]MH_I2C_Read... [10:46:42]Read from MH i2c: 01 [10:46:42]MH_I2C_Read... [10:46:42]Read from MH i2c: 01 07 00 [10:46:42]MH_I2C_Read... [10:46:42]Read from MH i2c: 01 07 00 F9 C6 00 00 00 00 00 F4 0C C6 [10:46:42]RasterBufferAndPrint [10:46:42]line [10:46:42]line [10:46:42]line [10:46:42]line [10:46:42]line [10:46:42]written 0, free lines is 3322 [10:46:42]MH_Cut [10:46:42]Write to MH i2c: D1 01 00 00 C7 01 99 [10:46:42]Write i2c OK [10:46:42]MH_I2C_Read... [10:46:42]Read from MH i2c: D1 [10:46:42]MH_I2C_Read... [10:46:42]Read from MH i2c: D1 01 00 [10:46:42]MH_I2C_Read... [10:46:42]Read from MH i2c: D1 01 00 00 C7 00 98 [10:46:42]Write to MH i2c: 01 00 00 01 C7 C8 [10:46:42]Write i2c OK [10:46:42]MH_I2C_Read... [10:46:42]OFD Sender: No OFD packet to send [10:46:43]*** Cut start [10:46:43]*** Partial cut [10:46:43]*** CUTSNS_PIN = 1 [10:46:43]*** CUTSNS_PIN = 0 [10:46:43]*** Brake cut motor [10:46:43]Read from MH i2c: 01 [10:46:43]MH_I2C_Read... [10:46:43]*** Stop cut motor [10:46:43]*** Cut end [10:46:43]Read from MH i2c: 01 07 00 [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: 01 07 00 01 C7 00 00 00 00 00 FF 0F DD [10:46:43]process_action close_receipt done [10:46:43]requested_data is exist [10:46:43]produce_requested_data [10:46:43]requested_item fm.sn is exist - process it [10:46:43]wFMCommunicate request_size=4 [10:46:43]MH_SAM_APDU [10:46:43]CAPDU: 80 11 00 00 [10:46:43]Write to MH i2c: E2 08 00 02 C7 80 11 00 00 00 00 00 00 43 [10:46:43]Write i2c OK [10:46:43]MH_I2C_Read... [10:46:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:43]Read from MH i2c: E2 [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: E2 17 00 [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: E2 17 00 02 C7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 95 [10:46:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:46:43]wFMCommunicate OK [10:46:43]requested_item fd.num is exist - process it [10:46:43]SAM_PROTO_GetFieldsCounters [10:46:43]wFMCommunicate request_size=4 [10:46:43]MH_SAM_APDU [10:46:43]CAPDU: 80 13 00 00 [10:46:43]Write to MH i2c: E2 08 00 03 C7 80 13 00 00 00 00 00 00 46 [10:46:43]Write i2c OK [10:46:43]MH_I2C_Read... [10:46:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:43]Read from MH i2c: E2 [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: E2 62 00 [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: E2 62 00 03 C7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 97 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [10:46:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 97 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:46:43]wFMCommunicate OK [10:46:43]SAM_PROTO_GetFieldsCounters done [10:46:43]requested_item shift.num is exist - process it [10:46:43]requested_item shift.opened is exist - process it [10:46:43]req_shift_opened [10:46:43]FM_GetShiftState [10:46:43]SAM_PROTO_GetShiftState [10:46:43]wFMCommunicate request_size=4 [10:46:43]MH_SAM_APDU [10:46:43]CAPDU: 80 13 01 00 [10:46:43]Write to MH i2c: E2 08 00 04 C7 80 13 01 00 00 00 00 00 48 [10:46:43]Write i2c OK [10:46:43]MH_I2C_Read... [10:46:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:43]Read from MH i2c: E2 [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: E2 0E 00 [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: E2 0E 00 04 C7 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 4E [10:46:43]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:46:43]wFMCommunicate OK [10:46:43]SAM_PROTO_GetShiftState done [10:46:43]FM_GetShiftState done [10:46:43]req_shift_opened done [10:46:43]requested_item shift.open_date is exist - process it [10:46:43]req_shift_open_date [10:46:43]req_shift_open_date done [10:46:43]produce_requested_data done [10:46:43]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69271,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [10:46:43]process_action_free close_receipt [10:46:43]json_value_free [10:46:43]json_value_free done [10:46:43]process_json_proto returns [10:46:43]Send response to host [10:46:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69271,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [10:46:43]free response buf [10:46:43]execute_script done [10:46:43]execute_script returns [10:46:43]free content buf [10:46:43]Sock 9.Close socket [10:46:43]Sock 9.Thread stoped [10:46:47]OFD Sender: No OFD packet to send [10:46:52]OFD Sender: No OFD packet to send [10:46:57]OFD Sender: No OFD packet to send [10:47:02]OFD Sender: No OFD packet to send [10:47:07]OFD Sender: No OFD packet to send [10:47:12]OFD Sender: No OFD packet to send [10:47:17]OFD Sender: No OFD packet to send [10:47:22]OFD Sender: No OFD packet to send [10:47:27]OFD Sender: No OFD packet to send [10:47:32]OFD Sender: No OFD packet to send [10:47:37]OFD Sender: No OFD packet to send [10:47:42]OFD Sender: No OFD packet to send [10:47:47]OFD Sender: No OFD packet to send [10:47:52]OFD Sender: No OFD packet to send [10:47:57]OFD Sender: No OFD packet to send [10:48:02]OFD Sender: No OFD packet to send [10:48:07]OFD Sender: No OFD packet to send [10:48:12]OFD Sender: No OFD packet to send [10:48:17]OFD Sender: No OFD packet to send [10:48:22]OFD Sender: No OFD packet to send [10:48:27]OFD Sender: No OFD packet to send [10:48:32]OFD Sender: No OFD packet to send [10:48:37]OFD Sender: No OFD packet to send [10:48:42]OFD Sender: No OFD packet to send [10:48:47]OFD Sender: No OFD packet to send [10:48:52]OFD Sender: No OFD packet to send [10:48:57]OFD Sender: No OFD packet to send [10:49:02]OFD Sender: No OFD packet to send [10:49:07]OFD Sender: No OFD packet to send [10:49:12]OFD Sender: No OFD packet to send [10:49:17]OFD Sender: No OFD packet to send [10:49:22]OFD Sender: No OFD packet to send [10:49:27]OFD Sender: No OFD packet to send [10:49:32]OFD Sender: No OFD packet to send [10:49:37]OFD Sender: No OFD packet to send [10:49:42]OFD Sender: No OFD packet to send [10:49:47]OFD Sender: No OFD packet to send [10:49:50]accept exits with 10 [10:49:50]New connection [10:49:50]New thread 3067116900 created [10:49:50]Thread 3067260260 joined [10:49:50]Waiting for new connection... [10:49:50] Sock 10.Parse request [10:49:50]Sock 10.Check first char [10:49:50]Sock 10.First char is OK [10:49:50]request: POST /json_proto HTTP/1.0 [10:49:50]Method: POST [10:49:50]URL: /json_proto [10:49:50]Method is POST - this is cgi request [10:49:50]url: /json_proto [10:49:50]query_string will be loaded in cgi processing [10:49:50]execute_cgi json_proto POST (null) [10:49:50]execute_cgi path=json_proto method=POST [10:49:50]POST find Content-Length [10:49:50]Host: 172.17.50.3:8080 [10:49:50]Content-Length: 689 [10:49:50]Content-Type: application/json [10:49:50] [10:49:50]POST finish read [10:49:50]Found Content-Length = 689 [10:49:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:50]execute_script... [10:49:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:50]POST & json_proto [10:49:50]process_json_proto [10:49:50]json parsed OK: [10:49:50]protocol is kg_v1.0 [10:49:50]action value=close_receipt [10:49:50]process_action close_receipt [10:49:50]cmd_close_receipt [10:49:50]MH_GetDate [10:49:50]Write to MH i2c: F0 00 00 05 C7 BB [10:49:50]Write i2c OK [10:49:50]MH_I2C_Read... [10:49:50]Read from MH i2c: F0 [10:49:50]MH_I2C_Read... [10:49:50]Read from MH i2c: F0 09 00 [10:49:50]MH_I2C_Read... [10:49:50]Read from MH i2c: F0 09 00 05 C7 00 58 E0 14 67 6B 98 1E 66 FE [10:49:50]GetLastDocTimeStamp 1729421209 [10:49:50]current date 1729421400 [10:49:50]FM_GetShiftState [10:49:50]SAM_PROTO_GetShiftState [10:49:50]wFMCommunicate request_size=4 [10:49:50]MH_SAM_APDU [10:49:50]CAPDU: 80 13 01 00 [10:49:50]Write to MH i2c: E2 08 00 06 C7 80 13 01 00 00 00 00 00 4A [10:49:50]Write i2c OK [10:49:50]MH_I2C_Read... [10:49:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:50]Read from MH i2c: E2 [10:49:50]MH_I2C_Read... [10:49:50]Read from MH i2c: E2 0E 00 [10:49:50]MH_I2C_Read... [10:49:50]Read from MH i2c: E2 0E 00 06 C7 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 50 [10:49:50]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:49:50]wFMCommunicate OK [10:49:50]SAM_PROTO_GetShiftState done [10:49:50]FM_GetShiftState done [10:49:50]opened in 1729383220 [10:49:50]opened+sec_in_day 1729469620 [10:49:50]quantity*price = 100051 [10:49:50]sum+1 = 100052 [10:49:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 117 20.10.2024 10:50 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69272 ФПД: 153673039912792 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105000&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69272&fm=153673039912792&tin=02508201610067®Number=0000000000156251&sum=100000 [10:49:52]StoreToDocumentArchive [10:49:52]shift 193 fd 69272 [10:49:52]save to /storage/0193/doc_00069272 [10:49:52]save last doc name /storage/0193/doc_00069272 to /storage/kkm_last_doc_name [10:49:52]save OK [10:49:52]Clear old archive folders... [10:49:52]ProcessDocumentItem done err = 0, tmpTLVsize=257 [10:49:52]tlvbuf is 00549E70 [10:49:52]SAM_PROTO_ClearQueue [10:49:52]wFMCommunicate request_size=4 [10:49:52]MH_SAM_APDU [10:49:52]CAPDU: 80 09 00 00 [10:49:52]Write to MH i2c: E2 08 00 13 C7 80 09 00 00 00 00 00 00 4C [10:49:52]Write i2c OK [10:49:52]MH_I2C_Read... [10:49:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:52]Read from MH i2c: E2 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 03 00 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 03 00 13 C7 00 90 00 4E [10:49:52]RAPDU: 90 00 [10:49:52]wFMCommunicate OK [10:49:52]SAM_PROTO_ClearQueue done [10:49:52]KKMCreateOFDPacket [10:49:52]OFDProtocolAddRootSTLVToBuf [10:49:52]FM_MakeSignedData [10:49:52]FM_MakeSignedData [10:49:52]SAM_PROTO_SignData [10:49:52]wFMCommunicate request_size=4 [10:49:52]MH_SAM_APDU [10:49:52]CAPDU: 80 0D 01 02 [10:49:52]Write to MH i2c: E2 08 00 14 C7 80 0D 01 02 00 00 00 00 54 [10:49:52]Write i2c OK [10:49:52]MH_I2C_Read... [10:49:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:52]Read from MH i2c: E2 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 03 00 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 03 00 14 C7 00 90 00 4F [10:49:52]RAPDU: 90 00 [10:49:52]wFMCommunicate OK [10:49:52]wFMCommunicate request_size=255 [10:49:52]MH_SAM_APDU [10:49:52]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 58 E0 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 98 0E 01 [10:49:52]Write to MH i2c: E2 02 01 15 C7 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 58 E0 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 98 0E 01 00 00 36 [10:49:52]Write i2c OK [10:49:52]MH_I2C_Read... [10:49:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:52]Read from MH i2c: E2 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 03 00 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 03 00 15 C7 00 90 00 50 [10:49:52]RAPDU: 90 00 [10:49:52]wFMCommunicate OK [10:49:52]wFMCommunicate request_size=16 [10:49:52]MH_SAM_APDU [10:49:52]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 8B C3 CA F4 9F 58 [10:49:52]Write to MH i2c: E2 13 00 16 C7 80 0D 02 02 0B 00 00 35 04 06 00 8B C3 CA F4 9F 58 00 00 AF [10:49:52]Write i2c OK [10:49:52]MH_I2C_Read... [10:49:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:52]Read from MH i2c: E2 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 03 00 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 03 00 16 C7 00 90 00 51 [10:49:52]RAPDU: 90 00 [10:49:52]wFMCommunicate OK [10:49:52]wFMCommunicate request_size=4 [10:49:52]MH_SAM_APDU [10:49:52]CAPDU: 80 0D 03 02 [10:49:52]Write to MH i2c: E2 08 00 17 C7 80 0D 03 02 00 00 00 00 59 [10:49:52]Write i2c OK [10:49:52]MH_I2C_Read... [10:49:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:52]Read from MH i2c: E2 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 0B 00 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 0B 00 17 C7 00 07 6F CE EF 04 0B DA E7 90 00 5D [10:49:52]RAPDU: 07 6F CE EF 04 0B DA E7 90 00 [10:49:52]wFMCommunicate OK [10:49:52]SAM_PROTO_SignData done [10:49:52]FM_MakeSignedData done [10:49:52]CreateOFDProtocolMessage [10:49:52]wFMCommunicate request_size=4 [10:49:52]MH_SAM_APDU [10:49:52]CAPDU: 80 11 00 00 [10:49:52]Write to MH i2c: E2 08 00 18 C7 80 11 00 00 00 00 00 00 59 [10:49:52]Write i2c OK [10:49:52]MH_I2C_Read... [10:49:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:52]Read from MH i2c: E2 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 17 00 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 17 00 18 C7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AB [10:49:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:49:52]wFMCommunicate OK [10:49:52]CreateOFDProtocolMessage done [10:49:52]OFDSenderStorePacket 69272 [10:49:52]StoreOFDPacket docnum=69272 [10:49:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 CC 0A 0D 01 CC CB 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 58 E0 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 98 0E 01 00 35 04 06 00 8B C3 CA F4 9F 58 07 6F CE EF 04 0B DA E7 [10:49:52]CheckFolder [10:49:52]dirname=/storage/ofd_packets [10:49:52]CheckFolder done [10:49:52]ProducePacketName [10:49:52]name=ofd_packets/00069272 [10:49:52]NVStorageSaveData ofd_packets/00069272 [10:49:52]File name is /storage/ofd_packets/00069272 [10:49:52]Write 307 bytes [10:49:52]NVStorageSaveData done [10:49:52]OFDSenderStorePacket done [10:49:52]KKMCreateOFDPacket done [10:49:52]NVStorageSaveData kkm_last_timestamp [10:49:52]File name is /storage/kkm_last_timestamp [10:49:52]Write 4 bytes [10:49:52]NVStorageSaveData done [10:49:52]ExternCall_PrintAddStr [10:49:52]wPrintStart [10:49:52]Write to MH i2c: 01 00 00 19 C7 E0 [10:49:52]Write i2c OK [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: 01 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: 01 07 00 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: 01 07 00 19 C7 00 00 00 00 00 FF 0F F5 [10:49:52]RasterBufferAndPrint [10:49:52]line Счет N : (1)2884986 [10:49:52]line ИНН: 02508201610067 [10:49:52]line Контрольно-Кассовый Чек [10:49:52]line ПРОДАЖА [10:49:52]line ТРК (МРК, ГНК) : 31 [10:49:52]line Товар: 2710194240 [10:49:52]line D-ENERGY Дт-К-2 [10:49:52]line 12.960 * 77.20 [10:49:52]line = 1000.51 [10:49:52]line НДС 12% НСП 1% [10:49:52]line > о реализуемом товаре [10:49:52]line ОКРУГЛЕНИЕ: -0.51 [10:49:52]line ИТОГО: 1000.00 [10:49:52]line Внесено: 1000.00 [10:49:52]line СДАЧА: 0.00 [10:49:52]line НСП 1% : 8.85 [10:49:52]line НДС 12% : 106.25 [10:49:52]line Наличными: 1000.00 [10:49:52]line Безнал.: 0.00 [10:49:52]line Место: АЗС № 85 "Партнер Нефть" [10:49:52]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:49:52]line СНО: Общий режим [10:49:52]line Чек 117 20.10.2024 10:50 [10:49:52]line Смена: 193 ФФД: 1.0 [10:49:52]line ЗНМ: 0300000167 [10:49:52]line РНМ: 0000000000156251 [10:49:52]line Версия ККМ: v1.0 [10:49:52]line ФМ: 0000000000963346 [10:49:52]line ФД: 69272 [10:49:52]line ФПД: 153673039912792 [10:49:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105000&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69272&fm=153673039912792&tin=02508201610067®Number=0000000000156251&sum=100000 [10:49:52]OFD Sender: Processing packet 69272 [packets to send 18, broken 17] [10:49:52]ProducePacketName [10:49:52]name=ofd_packets/00069272 [10:49:52]OFD Sender: To server: pG, [10:49:52]CommunicateWithHost lk.salyk.kg:30040 [10:49:52]ConnectInit lk.salyk.kg [10:49:52]written 0, free lines is 4095 [10:49:53]Connected sock=9 [10:49:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 CC 0A 0D 01 CC CB 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 58 E0 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 98 0E 01 00 35 04 06 00 8B C3 CA F4 9F 58 07 6F CE EF 04 0B DA E7 [10:49:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 01 C5 47 00 8C C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 98 0E 01 00 F4 03 04 00 FF 89 14 67 B6 04 01 00 00 0C 97 31 62 53 7A C8 F9 [10:49:53]CommunicateWithHost err = 0 [10:49:53]CheckOFDResponse [10:49:53]1017 (14) - 77093643461234 [10:49:53]1041 (16) - 0000000000963346 [10:49:53]1040 (4) - 69272 [10:49:53]1012 (4) - 20.10.2024 04:41 [10:49:53]1206 (1) - 0 [10:49:53]OFD Sender: Remove packet 69272 [10:49:53]ProducePacketName [10:49:53]name=ofd_packets/00069272 [10:49:53]NVStorageDeleteData [10:49:53]Write to MH i2c: 01 00 00 44 C7 0B [10:49:53]Write i2c OK [10:49:53]MH_I2C_Read... [10:49:53]Read from MH i2c: 01 [10:49:53]MH_I2C_Read... [10:49:53]Read from MH i2c: 01 07 00 [10:49:53]MH_I2C_Read... [10:49:53]Read from MH i2c: 01 07 00 44 C7 00 00 00 00 00 FB 0C 19 [10:49:53]RasterBufferAndPrint [10:49:53]line [10:49:53]line [10:49:53]line [10:49:53]line [10:49:53]line [10:49:53]written 0, free lines is 3332 [10:49:53]MH_Cut [10:49:53]Write to MH i2c: D1 01 00 4B C7 01 E4 [10:49:53]Write i2c OK [10:49:53]MH_I2C_Read... [10:49:53]Read from MH i2c: D1 [10:49:53]MH_I2C_Read... [10:49:53]Read from MH i2c: D1 01 00 [10:49:53]MH_I2C_Read... [10:49:53]Read from MH i2c: D1 01 00 4B C7 00 E3 [10:49:53]Write to MH i2c: 01 00 00 4C C7 13 [10:49:53]Write i2c OK [10:49:53]MH_I2C_Read... [10:49:53]OFD Sender: No OFD packet to send [10:49:54]*** Cut start [10:49:54]*** Partial cut [10:49:54]*** CUTSNS_PIN = 1 [10:49:54]*** CUTSNS_PIN = 0 [10:49:54]*** Brake cut motor [10:49:54]Read from MH i2c: 01 [10:49:54]MH_I2C_Read... [10:49:54]*** Stop cut motor [10:49:54]*** Cut end [10:49:54]Read from MH i2c: 01 07 00 [10:49:54]MH_I2C_Read... [10:49:54]Read from MH i2c: 01 07 00 4C C7 00 00 00 00 00 FF 0F 28 [10:49:54]process_action close_receipt done [10:49:54]requested_data is exist [10:49:54]produce_requested_data [10:49:54]requested_item fm.sn is exist - process it [10:49:54]wFMCommunicate request_size=4 [10:49:54]MH_SAM_APDU [10:49:54]CAPDU: 80 11 00 00 [10:49:54]Write to MH i2c: E2 08 00 4D C7 80 11 00 00 00 00 00 00 8E [10:49:54]Write i2c OK [10:49:54]MH_I2C_Read... [10:49:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:54]Read from MH i2c: E2 [10:49:54]MH_I2C_Read... [10:49:54]Read from MH i2c: E2 17 00 [10:49:54]MH_I2C_Read... [10:49:54]Read from MH i2c: E2 17 00 4D C7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E0 [10:49:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:49:54]wFMCommunicate OK [10:49:54]requested_item fd.num is exist - process it [10:49:54]SAM_PROTO_GetFieldsCounters [10:49:54]wFMCommunicate request_size=4 [10:49:54]MH_SAM_APDU [10:49:54]CAPDU: 80 13 00 00 [10:49:54]Write to MH i2c: E2 08 00 4E C7 80 13 00 00 00 00 00 00 91 [10:49:54]Write i2c OK [10:49:54]MH_I2C_Read... [10:49:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:54]Read from MH i2c: E2 [10:49:54]MH_I2C_Read... [10:49:54]Read from MH i2c: E2 62 00 [10:49:54]MH_I2C_Read... [10:49:54]Read from MH i2c: E2 62 00 4E C7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 98 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [10:49:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 98 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:49:54]wFMCommunicate OK [10:49:54]SAM_PROTO_GetFieldsCounters done [10:49:54]requested_item shift.num is exist - process it [10:49:54]requested_item shift.opened is exist - process it [10:49:54]req_shift_opened [10:49:54]FM_GetShiftState [10:49:54]SAM_PROTO_GetShiftState [10:49:54]wFMCommunicate request_size=4 [10:49:54]MH_SAM_APDU [10:49:54]CAPDU: 80 13 01 00 [10:49:54]Write to MH i2c: E2 08 00 4F C7 80 13 01 00 00 00 00 00 93 [10:49:54]Write i2c OK [10:49:54]MH_I2C_Read... [10:49:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:55]Read from MH i2c: E2 [10:49:55]MH_I2C_Read... [10:49:55]Read from MH i2c: E2 0E 00 [10:49:55]MH_I2C_Read... [10:49:55]Read from MH i2c: E2 0E 00 4F C7 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 99 [10:49:55]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:49:55]wFMCommunicate OK [10:49:55]SAM_PROTO_GetShiftState done [10:49:55]FM_GetShiftState done [10:49:55]req_shift_opened done [10:49:55]requested_item shift.open_date is exist - process it [10:49:55]req_shift_open_date [10:49:55]req_shift_open_date done [10:49:55]produce_requested_data done [10:49:55]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69272,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [10:49:55]process_action_free close_receipt [10:49:55]json_value_free [10:49:55]json_value_free done [10:49:55]process_json_proto returns [10:49:55]Send response to host [10:49:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69272,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [10:49:55]free response buf [10:49:55]execute_script done [10:49:55]execute_script returns [10:49:55]free content buf [10:49:55]Sock 10.Close socket [10:49:55]Sock 10.Thread stoped [10:49:58]OFD Sender: No OFD packet to send [10:49:59]accept exits with 8 [10:49:59]New connection [10:49:59]New thread 3067260260 created [10:49:59]Thread 3067116900 joined [10:49:59]Waiting for new connection... [10:49:59] Sock 8.Parse request [10:49:59]Sock 8.Check first char [10:49:59]Sock 8.First char is OK [10:49:59]request: POST /json_proto HTTP/1.0 [10:49:59]Method: POST [10:49:59]URL: /json_proto [10:49:59]Method is POST - this is cgi request [10:49:59]url: /json_proto [10:49:59]query_string will be loaded in cgi processing [10:49:59]execute_cgi json_proto POST (null) [10:49:59]execute_cgi path=json_proto method=POST [10:49:59]POST find Content-Length [10:49:59]Host: 172.17.50.3:8080 [10:49:59]Content-Length: 675 [10:49:59]Content-Type: application/json [10:49:59] [10:49:59]POST finish read [10:49:59]Found Content-Length = 675 [10:49:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:59]execute_script... [10:49: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)2884987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:59]POST & json_proto [10:49:59]process_json_proto [10:49:59]json parsed OK: [10:49:59]protocol is kg_v1.0 [10:49:59]action value=close_receipt [10:49:59]process_action close_receipt [10:49:59]cmd_close_receipt [10:49:59]MH_GetDate [10:49:59]Write to MH i2c: F0 00 00 50 C7 06 [10:49:59]Write i2c OK [10:49:59]MH_I2C_Read... [10:49:59]Read from MH i2c: F0 [10:49:59]MH_I2C_Read... [10:49:59]Read from MH i2c: F0 09 00 [10:49:59]MH_I2C_Read... [10:49:59]Read from MH i2c: F0 09 00 50 C7 00 61 E0 14 67 6B 98 1E 66 52 [10:49:59]GetLastDocTimeStamp 1729421400 [10:49:59]current date 1729421409 [10:49:59]FM_GetShiftState [10:49:59]SAM_PROTO_GetShiftState [10:49:59]wFMCommunicate request_size=4 [10:49:59]MH_SAM_APDU [10:49:59]CAPDU: 80 13 01 00 [10:49:59]Write to MH i2c: E2 08 00 51 C7 80 13 01 00 00 00 00 00 95 [10:49:59]Write i2c OK [10:49:59]MH_I2C_Read... [10:49:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:59]Read from MH i2c: E2 [10:49:59]MH_I2C_Read... [10:49:59]Read from MH i2c: E2 0E 00 [10:49:59]MH_I2C_Read... [10:49:59]Read from MH i2c: E2 0E 00 51 C7 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 9B [10:49:59]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:49:59]wFMCommunicate OK [10:49:59]SAM_PROTO_GetShiftState done [10:49:59]FM_GetShiftState done [10:49:59]opened in 1729383220 [10:49:59]opened+sec_in_day 1729469620 [10:49:59]quantity*price = 50063 [10:49:59]sum+1 = 50064 [10:49:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 118 20.10.2024 10:50 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69273 ФПД: 43046962311448 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105009&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69273&fm=43046962311448&tin=02508201610067®Number=0000000000156251&sum=50000 [10:50:00]StoreToDocumentArchive [10:50:00]shift 193 fd 69273 [10:50:00]save to /storage/0193/doc_00069273 [10:50:00]save last doc name /storage/0193/doc_00069273 to /storage/kkm_last_doc_name [10:50:00]save OK [10:50:00]Clear old archive folders... [10:50:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:50:00]tlvbuf is 00669A00 [10:50:00]SAM_PROTO_ClearQueue [10:50:00]wFMCommunicate request_size=4 [10:50:00]MH_SAM_APDU [10:50:00]CAPDU: 80 09 00 00 [10:50:00]Write to MH i2c: E2 08 00 5E C7 80 09 00 00 00 00 00 00 97 [10:50:00]Write i2c OK [10:50:00]MH_I2C_Read... [10:50:00]Read from MH i2c: E2 [10:50:00]MH_I2C_Read... [10:50:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:00]Read from MH i2c: E2 03 00 [10:50:00]MH_I2C_Read... [10:50:00]Read from MH i2c: E2 03 00 5E C7 00 90 00 99 [10:50:00]RAPDU: 90 00 [10:50:00]wFMCommunicate OK [10:50:00]SAM_PROTO_ClearQueue done [10:50:00]KKMCreateOFDPacket [10:50:00]OFDProtocolAddRootSTLVToBuf [10:50:00]FM_MakeSignedData [10:50:00]FM_MakeSignedData [10:50:00]SAM_PROTO_SignData [10:50:00]wFMCommunicate request_size=4 [10:50:00]MH_SAM_APDU [10:50:00]CAPDU: 80 0D 01 02 [10:50:00]Write to MH i2c: E2 08 00 5F C7 80 0D 01 02 00 00 00 00 9F [10:50:00]Write i2c OK [10:50:00]MH_I2C_Read... [10:50:00]Read from MH i2c: E2 [10:50:00]MH_I2C_Read... [10:50:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:00]Read from MH i2c: E2 03 00 [10:50:00]MH_I2C_Read... [10:50:00]Read from MH i2c: E2 03 00 5F C7 00 90 00 9A [10:50:00]RAPDU: 90 00 [10:50:00]wFMCommunicate OK [10:50:00]wFMCommunicate request_size=255 [10:50:00]MH_SAM_APDU [10:50: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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 61 E0 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 99 0E 01 00 35 04 06 00 27 26 A6 E5 [10:50:00]Write to MH i2c: E2 02 01 60 C7 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 61 E0 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 99 0E 01 00 35 04 06 00 27 26 A6 E5 00 00 19 [10:50:01]Write i2c OK [10:50:01]MH_I2C_Read... [10:50:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:01]Read from MH i2c: E2 [10:50:01]MH_I2C_Read... [10:50:01]Read from MH i2c: E2 03 00 [10:50:01]MH_I2C_Read... [10:50:01]Read from MH i2c: E2 03 00 60 C7 00 90 00 9B [10:50:01]RAPDU: 90 00 [10:50:01]wFMCommunicate OK [10:50:01]wFMCommunicate request_size=7 [10:50:01]MH_SAM_APDU [10:50:01]CAPDU: 80 0D 02 02 02 B1 18 [10:50:01]Write to MH i2c: E2 0A 00 61 C7 80 0D 02 02 02 00 B1 18 00 00 6F [10:50:01]Write i2c OK [10:50:01]MH_I2C_Read... [10:50:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:01]Read from MH i2c: E2 [10:50:01]MH_I2C_Read... [10:50:01]Read from MH i2c: E2 03 00 [10:50:01]MH_I2C_Read... [10:50:01]Read from MH i2c: E2 03 00 61 C7 00 90 00 9C [10:50:01]RAPDU: 90 00 [10:50:01]wFMCommunicate OK [10:50:01]wFMCommunicate request_size=4 [10:50:01]MH_SAM_APDU [10:50:01]CAPDU: 80 0D 03 02 [10:50:01]Write to MH i2c: E2 08 00 62 C7 80 0D 03 02 00 00 00 00 A4 [10:50:01]Write i2c OK [10:50:01]MH_I2C_Read... [10:50:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:01]Read from MH i2c: E2 [10:50:01]MH_I2C_Read... [10:50:01]Read from MH i2c: E2 0B 00 [10:50:01]MH_I2C_Read... [10:50:01]Read from MH i2c: E2 0B 00 62 C7 00 75 25 D8 81 E7 60 6D 04 90 00 50 [10:50:01]RAPDU: 75 25 D8 81 E7 60 6D 04 90 00 [10:50:01]wFMCommunicate OK [10:50:01]SAM_PROTO_SignData done [10:50:01]FM_MakeSignedData done [10:50:01]CreateOFDProtocolMessage [10:50:01]wFMCommunicate request_size=4 [10:50:01]MH_SAM_APDU [10:50:01]CAPDU: 80 11 00 00 [10:50:01]Write to MH i2c: E2 08 00 63 C7 80 11 00 00 00 00 00 00 A4 [10:50:01]Write i2c OK [10:50:01]MH_I2C_Read... [10:50:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:01]Read from MH i2c: E2 [10:50:01]MH_I2C_Read... [10:50:01]Read from MH i2c: E2 17 00 [10:50:01]MH_I2C_Read... [10:50:01]Read from MH i2c: E2 17 00 63 C7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F6 [10:50:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:50:01]wFMCommunicate OK [10:50:01]CreateOFDProtocolMessage done [10:50:01]OFDSenderStorePacket 69273 [10:50:01]StoreOFDPacket docnum=69273 [10:50:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 32 A5 04 01 8F 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 61 E0 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 99 0E 01 00 35 04 06 00 27 26 A6 E5 B1 18 75 25 D8 81 E7 60 6D 04 [10:50:01]CheckFolder [10:50:01]dirname=/storage/ofd_packets [10:50:01]CheckFolder done [10:50:01]ProducePacketName [10:50:01]name=ofd_packets/00069273 [10:50:01]NVStorageSaveData ofd_packets/00069273 [10:50:01]File name is /storage/ofd_packets/00069273 [10:50:01]Write 298 bytes [10:50:01]NVStorageSaveData done [10:50:01]OFDSenderStorePacket done [10:50:01]KKMCreateOFDPacket done [10:50:01]NVStorageSaveData kkm_last_timestamp [10:50:01]File name is /storage/kkm_last_timestamp [10:50:01]Write 4 bytes [10:50:01]NVStorageSaveData done [10:50:01]ExternCall_PrintAddStr [10:50:01]wPrintStart [10:50:01]Write to MH i2c: 01 00 00 64 C7 2B [10:50:01]Write i2c OK [10:50:01]MH_I2C_Read... [10:50:01]Read from MH i2c: 01 [10:50:01]MH_I2C_Read... [10:50:01]Read from MH i2c: 01 07 00 [10:50:01]MH_I2C_Read... [10:50:01]Read from MH i2c: 01 07 00 64 C7 00 00 00 00 00 FF 0F 40 [10:50:01]RasterBufferAndPrint [10:50:01]line Счет N : (1)2884987 [10:50:01]line ИНН: 02508201610067 [10:50:01]line Контрольно-Кассовый Чек [10:50:01]line ПРОДАЖА [10:50:01]line ТРК (МРК, ГНК) : 51 [10:50:01]line Товар: 2710194210 [10:50:01]line ДТ-К-5 [10:50:01]line 6.570 * 76.20 [10:50:01]line = 500.63 [10:50:01]line НДС 12% НСП 1% [10:50:01]line > о реализуемом товаре [10:50:01]line ОКРУГЛЕНИЕ: -0.63 [10:50:01]line ИТОГО: 500.00 [10:50:01]line Внесено: 500.00 [10:50:01]line СДАЧА: 0.00 [10:50:01]line НСП 1% : 4.43 [10:50:01]line НДС 12% : 53.16 [10:50:01]line Наличными: 500.00 [10:50:01]line Безнал.: 0.00 [10:50:01]line Место: АЗС № 85 "Партнер Нефть" [10:50:01]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:50:01]line СНО: Общий режим [10:50:01]line Чек 118 20.10.2024 10:50 [10:50:01]line Смена: 193 ФФД: 1.0 [10:50:01]line ЗНМ: 0300000167 [10:50:01]line РНМ: 0000000000156251 [10:50:01]line Версия ККМ: v1.0 [10:50:01]line ФМ: 0000000000963346 [10:50:01]line ФД: 69273 [10:50:01]line ФПД: 43046962311448 [10:50:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105009&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69273&fm=43046962311448&tin=02508201610067®Number=0000000000156251&sum=50000 [10:50:01]written 0, free lines is 4095 [10:50:01]OFD Sender: Processing packet 69273 [packets to send 18, broken 17] [10:50:01]ProducePacketName [10:50:01]name=ofd_packets/00069273 [10:50:01]OFD Sender: To server: pG, [10:50:01]CommunicateWithHost lk.salyk.kg:30040 [10:50:01]ConnectInit lk.salyk.kg [10:50:01]Connected sock=10 [10:50:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 32 A5 04 01 8F 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 61 E0 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 99 0E 01 00 35 04 06 00 27 26 A6 E5 B1 18 75 25 D8 81 E7 60 6D 04 [10:50:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 B6 8D 47 00 37 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 99 0E 01 00 F4 03 04 00 08 8A 14 67 B6 04 01 00 00 1E F7 11 86 3E 1A 39 11 [10:50:01]CommunicateWithHost err = 0 [10:50:01]CheckOFDResponse [10:50:01]1017 (14) - 77093643461234 [10:50:01]1041 (16) - 0000000000963346 [10:50:01]1040 (4) - 69273 [10:50:01]1012 (4) - 20.10.2024 04:41 [10:50:01]1206 (1) - 0 [10:50:01]OFD Sender: Remove packet 69273 [10:50:01]ProducePacketName [10:50:01]name=ofd_packets/00069273 [10:50:01]NVStorageDeleteData [10:50:01]Write to MH i2c: 01 00 00 8F C7 56 [10:50:01]Write i2c OK [10:50:01]MH_I2C_Read... [10:50:01]Read from MH i2c: 01 [10:50:01]MH_I2C_Read... [10:50:01]Read from MH i2c: 01 07 00 [10:50:01]MH_I2C_Read... [10:50:01]Read from MH i2c: 01 07 00 8F C7 00 00 00 00 00 01 0D 6B [10:50:01]RasterBufferAndPrint [10:50:01]line [10:50:01]line [10:50:01]line [10:50:01]line [10:50:01]line [10:50:01]written 0, free lines is 3341 [10:50:01]MH_Cut [10:50:01]Write to MH i2c: D1 01 00 96 C7 01 2F [10:50:01]Write i2c OK [10:50:01]MH_I2C_Read... [10:50:01]Read from MH i2c: D1 [10:50:01]MH_I2C_Read... [10:50:01]Read from MH i2c: D1 01 00 [10:50:01]MH_I2C_Read... [10:50:01]Read from MH i2c: D1 01 00 96 C7 00 2E [10:50:01]Write to MH i2c: 01 00 00 97 C7 5E [10:50:01]Write i2c OK [10:50:01]MH_I2C_Read... [10:50:02]OFD Sender: No OFD packet to send [10:50:02]*** Cut start [10:50:02]*** Partial cut [10:50:02]*** CUTSNS_PIN = 1 [10:50:02]*** CUTSNS_PIN = 0 [10:50:02]*** Brake cut motor [10:50:03]Read from MH i2c: 01 [10:50:03]MH_I2C_Read... [10:50:03]*** Stop cut motor [10:50:03]*** Cut end [10:50:03]Read from MH i2c: 01 07 00 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: 01 07 00 97 C7 00 00 00 00 00 FF 0F 73 [10:50:03]process_action close_receipt done [10:50:03]requested_data is exist [10:50:03]produce_requested_data [10:50:03]requested_item fm.sn is exist - process it [10:50:03]wFMCommunicate request_size=4 [10:50:03]MH_SAM_APDU [10:50:03]CAPDU: 80 11 00 00 [10:50:03]Write to MH i2c: E2 08 00 98 C7 80 11 00 00 00 00 00 00 D9 [10:50:03]Write i2c OK [10:50:03]MH_I2C_Read... [10:50:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:03]Read from MH i2c: E2 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: E2 17 00 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: E2 17 00 98 C7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2B [10:50:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:50:03]wFMCommunicate OK [10:50:03]requested_item fd.num is exist - process it [10:50:03]SAM_PROTO_GetFieldsCounters [10:50:03]wFMCommunicate request_size=4 [10:50:03]MH_SAM_APDU [10:50:03]CAPDU: 80 13 00 00 [10:50:03]Write to MH i2c: E2 08 00 99 C7 80 13 00 00 00 00 00 00 DC [10:50:03]Write i2c OK [10:50:03]MH_I2C_Read... [10:50:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:03]Read from MH i2c: E2 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: E2 62 00 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: E2 62 00 99 C7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 99 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [10:50:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 99 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:50:03]wFMCommunicate OK [10:50:03]SAM_PROTO_GetFieldsCounters done [10:50:03]requested_item shift.num is exist - process it [10:50:03]requested_item shift.opened is exist - process it [10:50:03]req_shift_opened [10:50:03]FM_GetShiftState [10:50:03]SAM_PROTO_GetShiftState [10:50:03]wFMCommunicate request_size=4 [10:50:03]MH_SAM_APDU [10:50:03]CAPDU: 80 13 01 00 [10:50:03]Write to MH i2c: E2 08 00 9A C7 80 13 01 00 00 00 00 00 DE [10:50:03]Write i2c OK [10:50:03]MH_I2C_Read... [10:50:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:03]Read from MH i2c: E2 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: E2 0E 00 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: E2 0E 00 9A C7 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 E4 [10:50:03]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:50:03]wFMCommunicate OK [10:50:03]SAM_PROTO_GetShiftState done [10:50:03]FM_GetShiftState done [10:50:03]req_shift_opened done [10:50:03]requested_item shift.open_date is exist - process it [10:50:03]req_shift_open_date [10:50:03]req_shift_open_date done [10:50:03]produce_requested_data done [10:50:03]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69273,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [10:50:03]process_action_free close_receipt [10:50:03]json_value_free [10:50:03]json_value_free done [10:50:03]process_json_proto returns [10:50:03]Send response to host [10:50:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69273,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [10:50:03]free response buf [10:50:03]execute_script done [10:50:03]execute_script returns [10:50:03]free content buf [10:50:03]Sock 8.Close socket [10:50:03]Sock 8.Thread stoped [10:50:07]OFD Sender: No OFD packet to send [10:50:12]OFD Sender: No OFD packet to send [10:50:17]OFD Sender: No OFD packet to send [10:50:22]OFD Sender: No OFD packet to send [10:50:27]OFD Sender: No OFD packet to send [10:50:32]OFD Sender: No OFD packet to send [10:50:37]OFD Sender: No OFD packet to send [10:50:42]OFD Sender: No OFD packet to send [10:50:47]OFD Sender: No OFD packet to send [10:50:52]OFD Sender: No OFD packet to send [10:50:57]OFD Sender: No OFD packet to send [10:51:02]OFD Sender: No OFD packet to send [10:51:07]OFD Sender: No OFD packet to send [10:51:12]OFD Sender: No OFD packet to send [10:51:17]OFD Sender: No OFD packet to send [10:51:22]OFD Sender: No OFD packet to send [10:51:27]OFD Sender: No OFD packet to send [10:51:32]OFD Sender: No OFD packet to send [10:51:37]OFD Sender: No OFD packet to send [10:51:42]OFD Sender: No OFD packet to send [10:51:47]OFD Sender: No OFD packet to send [10:51:52]OFD Sender: No OFD packet to send [10:51:57]OFD Sender: No OFD packet to send [10:52:02]OFD Sender: No OFD packet to send [10:52:07]OFD Sender: No OFD packet to send [10:52:12]OFD Sender: No OFD packet to send [10:52:17]OFD Sender: No OFD packet to send [10:52:22]OFD Sender: No OFD packet to send [10:52:27]OFD Sender: No OFD packet to send [10:52:32]OFD Sender: No OFD packet to send [10:52:37]OFD Sender: No OFD packet to send [10:52:42]OFD Sender: No OFD packet to send [10:52:47]OFD Sender: No OFD packet to send [10:52:50]accept exits with 9 [10:52:50]New connection [10:52:50]New thread 3067116900 created [10:52:50]Thread 3067260260 joined [10:52:50]Waiting for new connection... [10:52:50] Sock 9.Parse request [10:52:50]Sock 9.Check first char [10:52:50]Sock 9.First char is OK [10:52:50]request: POST /json_proto HTTP/1.0 [10:52:50]Method: POST [10:52:50]URL: /json_proto [10:52:50]Method is POST - this is cgi request [10:52:50]url: /json_proto [10:52:50]query_string will be loaded in cgi processing [10:52:50]execute_cgi json_proto POST (null) [10:52:50]execute_cgi path=json_proto method=POST [10:52:50]POST find Content-Length [10:52:50]Host: 172.17.50.3:8080 [10:52:50]Content-Length: 689 [10:52:50]Content-Type: application/json [10:52:50] [10:52:50]POST finish read [10:52:50]Found Content-Length = 689 [10:52:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 18.140, "sum" : 1400.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:50]execute_script... [10:52: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)2884988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 18.140, "sum" : 1400.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:50]POST & json_proto [10:52:50]process_json_proto [10:52:50]json parsed OK: [10:52:50]protocol is kg_v1.0 [10:52:50]action value=close_receipt [10:52:50]process_action close_receipt [10:52:50]cmd_close_receipt [10:52:50]MH_GetDate [10:52:50]Write to MH i2c: F0 00 00 9B C7 51 [10:52:50]Write i2c OK [10:52:50]MH_I2C_Read... [10:52:50]Read from MH i2c: F0 [10:52:50]MH_I2C_Read... [10:52:50]Read from MH i2c: F0 09 00 [10:52:50]MH_I2C_Read... [10:52:50]Read from MH i2c: F0 09 00 9B C7 00 0C E1 14 67 6B 98 1E 66 49 [10:52:50]GetLastDocTimeStamp 1729421409 [10:52:50]current date 1729421580 [10:52:50]FM_GetShiftState [10:52:50]SAM_PROTO_GetShiftState [10:52:50]wFMCommunicate request_size=4 [10:52:50]MH_SAM_APDU [10:52:50]CAPDU: 80 13 01 00 [10:52:50]Write to MH i2c: E2 08 00 9C C7 80 13 01 00 00 00 00 00 E0 [10:52:50]Write i2c OK [10:52:50]MH_I2C_Read... [10:52:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:50]Read from MH i2c: E2 [10:52:50]MH_I2C_Read... [10:52:50]Read from MH i2c: E2 0E 00 [10:52:50]MH_I2C_Read... [10:52:50]Read from MH i2c: E2 0E 00 9C C7 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 E6 [10:52:50]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:52:50]wFMCommunicate OK [10:52:50]SAM_PROTO_GetShiftState done [10:52:50]FM_GetShiftState done [10:52:50]opened in 1729383220 [10:52:50]opened+sec_in_day 1729469620 [10:52:50]quantity*price = 140040 [10:52:50]sum+1 = 140042 [10:52:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.72 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 119 20.10.2024 10:53 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69274 ФПД: 241237532326595 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105300&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69274&fm=241237532326595&tin=02508201610067®Number=0000000000156251&sum=140000 [10:52:51]StoreToDocumentArchive [10:52:51]shift 193 fd 69274 [10:52:51]save to /storage/0193/doc_00069274 [10:52:51]save last doc name /storage/0193/doc_00069274 to /storage/kkm_last_doc_name [10:52:51]save OK [10:52:51]Clear old archive folders... [10:52:51]ProcessDocumentItem done err = 0, tmpTLVsize=257 [10:52:51]tlvbuf is 00451A20 [10:52:51]SAM_PROTO_ClearQueue [10:52:51]wFMCommunicate request_size=4 [10:52:51]MH_SAM_APDU [10:52:51]CAPDU: 80 09 00 00 [10:52:51]Write to MH i2c: E2 08 00 A9 C7 80 09 00 00 00 00 00 00 E2 [10:52:51]Write i2c OK [10:52:51]MH_I2C_Read... [10:52:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:51]Read from MH i2c: E2 [10:52:51]MH_I2C_Read... [10:52:51]Read from MH i2c: E2 03 00 [10:52:51]MH_I2C_Read... [10:52:51]Read from MH i2c: E2 03 00 A9 C7 00 90 00 E4 [10:52:51]RAPDU: 90 00 [10:52:51]wFMCommunicate OK [10:52:51]SAM_PROTO_ClearQueue done [10:52:51]KKMCreateOFDPacket [10:52:51]OFDProtocolAddRootSTLVToBuf [10:52:51]FM_MakeSignedData [10:52:51]FM_MakeSignedData [10:52:51]SAM_PROTO_SignData [10:52:51]wFMCommunicate request_size=4 [10:52:51]MH_SAM_APDU [10:52:51]CAPDU: 80 0D 01 02 [10:52:51]Write to MH i2c: E2 08 00 AA C7 80 0D 01 02 00 00 00 00 EA [10:52:51]Write i2c OK [10:52:51]MH_I2C_Read... [10:52:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:51]Read from MH i2c: E2 [10:52:51]MH_I2C_Read... [10:52:51]Read from MH i2c: E2 03 00 [10:52:51]MH_I2C_Read... [10:52:51]Read from MH i2c: E2 03 00 AA C7 00 90 00 E5 [10:52:51]RAPDU: 90 00 [10:52:51]wFMCommunicate OK [10:52:51]wFMCommunicate request_size=255 [10:52:51]MH_SAM_APDU [10:52:51]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 DC 46 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 09 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 0C E1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9A 0E 01 [10:52:51]Write to MH i2c: E2 02 01 AB C7 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 DC 46 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 09 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 0C E1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9A 0E 01 00 00 6E [10:52:51]Write i2c OK [10:52:51]MH_I2C_Read... [10:52:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:51]Read from MH i2c: E2 [10:52:51]MH_I2C_Read... [10:52:51]Read from MH i2c: E2 03 00 [10:52:51]MH_I2C_Read... [10:52:51]Read from MH i2c: E2 03 00 AB C7 00 90 00 E6 [10:52:51]RAPDU: 90 00 [10:52:51]wFMCommunicate OK [10:52:51]wFMCommunicate request_size=16 [10:52:51]MH_SAM_APDU [10:52:51]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 DB 67 7D 6B BA C3 [10:52:51]Write to MH i2c: E2 13 00 AC C7 80 0D 02 02 0B 00 00 35 04 06 00 DB 67 7D 6B BA C3 00 00 E9 [10:52:51]Write i2c OK [10:52:51]MH_I2C_Read... [10:52:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:52]Read from MH i2c: E2 [10:52:52]MH_I2C_Read... [10:52:52]Read from MH i2c: E2 03 00 [10:52:52]MH_I2C_Read... [10:52:52]Read from MH i2c: E2 03 00 AC C7 00 90 00 E7 [10:52:52]RAPDU: 90 00 [10:52:52]wFMCommunicate OK [10:52:52]wFMCommunicate request_size=4 [10:52:52]MH_SAM_APDU [10:52:52]CAPDU: 80 0D 03 02 [10:52:52]Write to MH i2c: E2 08 00 AD C7 80 0D 03 02 00 00 00 00 EF [10:52:52]Write i2c OK [10:52:52]MH_I2C_Read... [10:52:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:52]Read from MH i2c: E2 [10:52:52]MH_I2C_Read... [10:52:52]Read from MH i2c: E2 0B 00 [10:52:52]MH_I2C_Read... [10:52:52]Read from MH i2c: E2 0B 00 AD C7 00 1E C2 57 17 0B 51 07 FB 90 00 9C [10:52:52]RAPDU: 1E C2 57 17 0B 51 07 FB 90 00 [10:52:52]wFMCommunicate OK [10:52:52]SAM_PROTO_SignData done [10:52:52]FM_MakeSignedData done [10:52:52]CreateOFDProtocolMessage [10:52:52]wFMCommunicate request_size=4 [10:52:52]MH_SAM_APDU [10:52:52]CAPDU: 80 11 00 00 [10:52:52]Write to MH i2c: E2 08 00 AE C7 80 11 00 00 00 00 00 00 EF [10:52:52]Write i2c OK [10:52:52]MH_I2C_Read... [10:52:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:52]Read from MH i2c: E2 [10:52:52]MH_I2C_Read... [10:52:52]Read from MH i2c: E2 17 00 [10:52:52]MH_I2C_Read... [10:52:52]Read from MH i2c: E2 17 00 AE C7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 41 [10:52:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:52:52]wFMCommunicate OK [10:52:52]CreateOFDProtocolMessage done [10:52:52]OFDSenderStorePacket 69274 [10:52:52]StoreOFDPacket docnum=69274 [10:52:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 3B 91 0D 01 2F 59 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 DC 46 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 09 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 0C E1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9A 0E 01 00 35 04 06 00 DB 67 7D 6B BA C3 1E C2 57 17 0B 51 07 FB [10:52:52]CheckFolder [10:52:52]dirname=/storage/ofd_packets [10:52:52]CheckFolder done [10:52:52]ProducePacketName [10:52:52]name=ofd_packets/00069274 [10:52:52]NVStorageSaveData ofd_packets/00069274 [10:52:52]File name is /storage/ofd_packets/00069274 [10:52:52]Write 307 bytes [10:52:52]NVStorageSaveData done [10:52:52]OFDSenderStorePacket done [10:52:52]KKMCreateOFDPacket done [10:52:52]NVStorageSaveData kkm_last_timestamp [10:52:52]File name is /storage/kkm_last_timestamp [10:52:52]Write 4 bytes [10:52:52]NVStorageSaveData done [10:52:52]ExternCall_PrintAddStr [10:52:52]wPrintStart [10:52:52]Write to MH i2c: 01 00 00 AF C7 76 [10:52:52]Write i2c OK [10:52:52]MH_I2C_Read... [10:52:52]Read from MH i2c: 01 [10:52:52]MH_I2C_Read... [10:52:52]Read from MH i2c: 01 07 00 [10:52:52]MH_I2C_Read... [10:52:52]Read from MH i2c: 01 07 00 AF C7 00 00 00 00 00 FF 0F 8B [10:52:52]RasterBufferAndPrint [10:52:52]line Счет N : (1)2884988 [10:52:52]line ИНН: 02508201610067 [10:52:52]line Контрольно-Кассовый Чек [10:52:52]line ПРОДАЖА [10:52:52]line ТРК (МРК, ГНК) : 31 [10:52:52]line Товар: 2710194240 [10:52:52]line D-ENERGY Дт-К-2 [10:52:52]line 18.140 * 77.20 [10:52:52]line = 1400.41 [10:52:52]line НДС 12% НСП 1% [10:52:52]line > о реализуемом товаре [10:52:52]line ОКРУГЛЕНИЕ: -0.41 [10:52:52]line ИТОГО: 1400.00 [10:52:52]line Внесено: 1400.00 [10:52:52]line СДАЧА: 0.00 [10:52:52]line НСП 1% : 12.39 [10:52:52]line НДС 12% : 148.72 [10:52:52]line Наличными: 1400.00 [10:52:52]line Безнал.: 0.00 [10:52:52]line Место: АЗС № 85 "Партнер Нефть" [10:52:52]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:52:52]line СНО: Общий режим [10:52:52]line Чек 119 20.10.2024 10:53 [10:52:52]line Смена: 193 ФФД: 1.0 [10:52:52]line ЗНМ: 0300000167 [10:52:52]line РНМ: 0000000000156251 [10:52:52]line Версия ККМ: v1.0 [10:52:52]line ФМ: 0000000000963346 [10:52:52]line ФД: 69274 [10:52:52]line ФПД: 241237532326595 [10:52:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105300&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69274&fm=241237532326595&tin=02508201610067®Number=0000000000156251&sum=140000 [10:52:52]OFD Sender: Processing packet 69274 [packets to send 18, broken 17] [10:52:52]ProducePacketName [10:52:52]name=ofd_packets/00069274 [10:52:52]OFD Sender: To server: pG, [10:52:52]CommunicateWithHost lk.salyk.kg:30040 [10:52:52]ConnectInit lk.salyk.kg [10:52:52]written 0, free lines is 4095 [10:52:52]Connected sock=10 [10:52:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 3B 91 0D 01 2F 59 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 DC 46 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 09 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 0C E1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9A 0E 01 00 35 04 06 00 DB 67 7D 6B BA C3 1E C2 57 17 0B 51 07 FB [10:52:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 75 B1 47 00 D9 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9A 0E 01 00 F4 03 04 00 B3 8A 14 67 B6 04 01 00 00 37 FA EB A9 DE A7 5A F5 [10:52:52]CommunicateWithHost err = 0 [10:52:52]CheckOFDResponse [10:52:52]1017 (14) - 77093643461234 [10:52:52]1041 (16) - 0000000000963346 [10:52:52]1040 (4) - 69274 [10:52:52]1012 (4) - 20.10.2024 04:44 [10:52:52]1206 (1) - 0 [10:52:52]OFD Sender: Remove packet 69274 [10:52:52]ProducePacketName [10:52:52]name=ofd_packets/00069274 [10:52:52]NVStorageDeleteData [10:52:52]Write to MH i2c: 01 00 00 DA C7 A1 [10:52:52]Write i2c OK [10:52:52]MH_I2C_Read... [10:52:52]Read from MH i2c: 01 [10:52:52]MH_I2C_Read... [10:52:52]Read from MH i2c: 01 07 00 [10:52:52]MH_I2C_Read... [10:52:52]Read from MH i2c: 01 07 00 DA C7 00 00 00 00 00 F6 0C AA [10:52:52]RasterBufferAndPrint [10:52:52]line [10:52:52]line [10:52:52]line [10:52:52]line [10:52:52]line [10:52:52]written 0, free lines is 3324 [10:52:52]MH_Cut [10:52:52]Write to MH i2c: D1 01 00 E1 C7 01 7A [10:52:52]Write i2c OK [10:52:52]MH_I2C_Read... [10:52:52]Read from MH i2c: D1 [10:52:52]MH_I2C_Read... [10:52:52]Read from MH i2c: D1 01 00 [10:52:52]MH_I2C_Read... [10:52:52]Read from MH i2c: D1 01 00 E1 C7 00 79 [10:52:52]Write to MH i2c: 01 00 00 E2 C7 A9 [10:52:52]Write i2c OK [10:52:52]MH_I2C_Read... [10:52:53]OFD Sender: No OFD packet to send [10:52:53]*** Cut start [10:52:53]*** Partial cut [10:52:53]*** CUTSNS_PIN = 1 [10:52:53]*** CUTSNS_PIN = 0 [10:52:53]*** Brake cut motor [10:52:54]Read from MH i2c: 01 [10:52:54]MH_I2C_Read... [10:52:54]*** Stop cut motor [10:52:54]*** Cut end [10:52:54]Read from MH i2c: 01 07 00 [10:52:54]MH_I2C_Read... [10:52:54]Read from MH i2c: 01 07 00 E2 C7 00 00 00 00 00 FF 0F BE [10:52:54]process_action close_receipt done [10:52:54]requested_data is exist [10:52:54]produce_requested_data [10:52:54]requested_item fm.sn is exist - process it [10:52:54]wFMCommunicate request_size=4 [10:52:54]MH_SAM_APDU [10:52:54]CAPDU: 80 11 00 00 [10:52:54]Write to MH i2c: E2 08 00 E3 C7 80 11 00 00 00 00 00 00 24 [10:52:54]Write i2c OK [10:52:54]MH_I2C_Read... [10:52:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:54]Read from MH i2c: E2 [10:52:54]MH_I2C_Read... [10:52:54]Read from MH i2c: E2 17 00 [10:52:54]MH_I2C_Read... [10:52:54]Read from MH i2c: E2 17 00 E3 C7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 76 [10:52:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:52:54]wFMCommunicate OK [10:52:54]requested_item fd.num is exist - process it [10:52:54]SAM_PROTO_GetFieldsCounters [10:52:54]wFMCommunicate request_size=4 [10:52:54]MH_SAM_APDU [10:52:54]CAPDU: 80 13 00 00 [10:52:54]Write to MH i2c: E2 08 00 E4 C7 80 13 00 00 00 00 00 00 27 [10:52:54]Write i2c OK [10:52:54]MH_I2C_Read... [10:52:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:54]Read from MH i2c: E2 [10:52:54]MH_I2C_Read... [10:52:54]Read from MH i2c: E2 62 00 [10:52:54]MH_I2C_Read... [10:52:54]Read from MH i2c: E2 62 00 E4 C7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9A 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [10:52:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9A 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:52:54]wFMCommunicate OK [10:52:54]SAM_PROTO_GetFieldsCounters done [10:52:54]requested_item shift.num is exist - process it [10:52:54]requested_item shift.opened is exist - process it [10:52:54]req_shift_opened [10:52:54]FM_GetShiftState [10:52:54]SAM_PROTO_GetShiftState [10:52:54]wFMCommunicate request_size=4 [10:52:54]MH_SAM_APDU [10:52:54]CAPDU: 80 13 01 00 [10:52:54]Write to MH i2c: E2 08 00 E5 C7 80 13 01 00 00 00 00 00 29 [10:52:54]Write i2c OK [10:52:54]MH_I2C_Read... [10:52:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:54]Read from MH i2c: E2 [10:52:54]MH_I2C_Read... [10:52:54]Read from MH i2c: E2 0E 00 [10:52:54]MH_I2C_Read... [10:52:54]Read from MH i2c: E2 0E 00 E5 C7 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 2F [10:52:54]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:52:54]wFMCommunicate OK [10:52:54]SAM_PROTO_GetShiftState done [10:52:54]FM_GetShiftState done [10:52:54]req_shift_opened done [10:52:54]requested_item shift.open_date is exist - process it [10:52:54]req_shift_open_date [10:52:54]req_shift_open_date done [10:52:54]produce_requested_data done [10:52:54]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69274,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [10:52:54]process_action_free close_receipt [10:52:54]json_value_free [10:52:54]json_value_free done [10:52:54]process_json_proto returns [10:52:54]Send response to host [10:52:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69274,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [10:52:54]free response buf [10:52:54]execute_script done [10:52:54]execute_script returns [10:52:54]free content buf [10:52:54]Sock 9.Close socket [10:52:54]Sock 9.Thread stoped [10:52:58]OFD Sender: No OFD packet to send [10:53:03]OFD Sender: No OFD packet to send [10:53:08]OFD Sender: No OFD packet to send [10:53:13]OFD Sender: No OFD packet to send [10:53:18]OFD Sender: No OFD packet to send [10:53:23]OFD Sender: No OFD packet to send [10:53:28]OFD Sender: No OFD packet to send [10:53:33]OFD Sender: No OFD packet to send [10:53:38]OFD Sender: No OFD packet to send [10:53:43]OFD Sender: No OFD packet to send [10:53:48]OFD Sender: No OFD packet to send [10:53:53]OFD Sender: No OFD packet to send [10:53:58]OFD Sender: No OFD packet to send [10:54:03]OFD Sender: No OFD packet to send [10:54:08]OFD Sender: No OFD packet to send [10:54:13]OFD Sender: No OFD packet to send [10:54:18]OFD Sender: No OFD packet to send [10:54:23]OFD Sender: No OFD packet to send [10:54:27]accept exits with 8 [10:54:27]New connection [10:54:27]New thread 3067260260 created [10:54:27]Thread 3067116900 joined [10:54:27]Waiting for new connection... [10:54:27] Sock 8.Parse request [10:54:27]Sock 8.Check first char [10:54:27]Sock 8.First char is OK [10:54:27]request: POST /json_proto HTTP/1.0 [10:54:27]Method: POST [10:54:27]URL: /json_proto [10:54:27]Method is POST - this is cgi request [10:54:27]url: /json_proto [10:54:27]query_string will be loaded in cgi processing [10:54:27]execute_cgi json_proto POST (null) [10:54:27]execute_cgi path=json_proto method=POST [10:54:27]POST find Content-Length [10:54:27]Host: 172.17.50.3:8080 [10:54:27]Content-Length: 767 [10:54:27]Content-Type: application/json [10:54:27] [10:54:27]POST finish read [10:54:27]Found Content-Length = 767 [10:54:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:27]execute_script... [10:54: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)2884989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:27]POST & json_proto [10:54:27]process_json_proto [10:54:27]json parsed OK: [10:54:27]protocol is kg_v1.0 [10:54:27]action value=close_receipt [10:54:27]process_action close_receipt [10:54:27]cmd_close_receipt [10:54:27]MH_GetDate [10:54:27]Write to MH i2c: F0 00 00 E6 C7 9C [10:54:27]Write i2c OK [10:54:27]MH_I2C_Read... [10:54:27]Read from MH i2c: F0 [10:54:27]MH_I2C_Read... [10:54:27]Read from MH i2c: F0 09 00 [10:54:27]MH_I2C_Read... [10:54:27]Read from MH i2c: F0 09 00 E6 C7 00 6D E1 14 67 6B 98 1E 66 F5 [10:54:27]GetLastDocTimeStamp 1729421580 [10:54:27]current date 1729421677 [10:54:27]FM_GetShiftState [10:54:27]SAM_PROTO_GetShiftState [10:54:27]wFMCommunicate request_size=4 [10:54:27]MH_SAM_APDU [10:54:27]CAPDU: 80 13 01 00 [10:54:27]Write to MH i2c: E2 08 00 E7 C7 80 13 01 00 00 00 00 00 2B [10:54:27]Write i2c OK [10:54:27]MH_I2C_Read... [10:54:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:27]Read from MH i2c: E2 [10:54:27]MH_I2C_Read... [10:54:27]Read from MH i2c: E2 0E 00 [10:54:27]MH_I2C_Read... [10:54:27]Read from MH i2c: E2 0E 00 E7 C7 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 31 [10:54:27]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:54:27]wFMCommunicate OK [10:54:27]SAM_PROTO_GetShiftState done [10:54:27]FM_GetShiftState done [10:54:27]opened in 1729383220 [10:54:27]opened+sec_in_day 1729469620 [10:54:27]quantity*price = 150037 [10:54:27]sum+1 = 150039 [10:54:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.38 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.38 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 120 20.10.2024 10:54 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69275 ФПД: 131359500803566 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105437&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69275&fm=131359500803566&tin=02508201610067®Number=0000000000156251&sum=150038 [10:54:28]StoreToDocumentArchive [10:54:28]shift 193 fd 69275 [10:54:28]save to /storage/0193/doc_00069275 [10:54:28]save last doc name /storage/0193/doc_00069275 to /storage/kkm_last_doc_name [10:54:28]save OK [10:54:28]Clear old archive folders... [10:54:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:54:28]tlvbuf is 005B6240 [10:54:28]SAM_PROTO_ClearQueue [10:54:28]wFMCommunicate request_size=4 [10:54:28]MH_SAM_APDU [10:54:28]CAPDU: 80 09 00 00 [10:54:28]Write to MH i2c: E2 08 00 F4 C7 80 09 00 00 00 00 00 00 2D [10:54:28]Write i2c OK [10:54:28]MH_I2C_Read... [10:54:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:28]Read from MH i2c: E2 [10:54:28]MH_I2C_Read... [10:54:28]Read from MH i2c: E2 03 00 [10:54:28]MH_I2C_Read... [10:54:28]Read from MH i2c: E2 03 00 F4 C7 00 90 00 2F [10:54:28]RAPDU: 90 00 [10:54:28]wFMCommunicate OK [10:54:28]SAM_PROTO_ClearQueue done [10:54:28]KKMCreateOFDPacket [10:54:28]OFDProtocolAddRootSTLVToBuf [10:54:28]FM_MakeSignedData [10:54:28]FM_MakeSignedData [10:54:28]SAM_PROTO_SignData [10:54:28]wFMCommunicate request_size=4 [10:54:28]MH_SAM_APDU [10:54:28]CAPDU: 80 0D 01 02 [10:54:28]Write to MH i2c: E2 08 00 F5 C7 80 0D 01 02 00 00 00 00 35 [10:54:28]Write i2c OK [10:54:28]MH_I2C_Read... [10:54:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:28]Read from MH i2c: E2 [10:54:28]MH_I2C_Read... [10:54:28]Read from MH i2c: E2 03 00 [10:54:28]MH_I2C_Read... [10:54:28]Read from MH i2c: E2 03 00 F5 C7 00 90 00 30 [10:54:28]RAPDU: 90 00 [10:54:28]wFMCommunicate OK [10:54:28]wFMCommunicate request_size=255 [10:54:28]MH_SAM_APDU [10:54:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 6D E1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9B 0E 01 00 35 04 06 00 77 78 84 62 [10:54:28]Write to MH i2c: E2 02 01 F6 C7 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 6D E1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9B 0E 01 00 35 04 06 00 77 78 84 62 00 00 FA [10:54:28]Write i2c OK [10:54:28]MH_I2C_Read... [10:54:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:29]Read from MH i2c: E2 [10:54:29]MH_I2C_Read... [10:54:29]Read from MH i2c: E2 03 00 [10:54:29]MH_I2C_Read... [10:54:29]Read from MH i2c: E2 03 00 F6 C7 00 90 00 31 [10:54:29]RAPDU: 90 00 [10:54:29]wFMCommunicate OK [10:54:29]wFMCommunicate request_size=7 [10:54:29]MH_SAM_APDU [10:54:29]CAPDU: 80 0D 02 02 02 1D EE [10:54:29]Write to MH i2c: E2 0A 00 F7 C7 80 0D 02 02 02 00 1D EE 00 00 47 [10:54:29]Write i2c OK [10:54:29]MH_I2C_Read... [10:54:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:29]Read from MH i2c: E2 [10:54:29]MH_I2C_Read... [10:54:29]Read from MH i2c: E2 03 00 [10:54:29]MH_I2C_Read... [10:54:29]Read from MH i2c: E2 03 00 F7 C7 00 90 00 32 [10:54:29]RAPDU: 90 00 [10:54:29]wFMCommunicate OK [10:54:29]wFMCommunicate request_size=4 [10:54:29]MH_SAM_APDU [10:54:29]CAPDU: 80 0D 03 02 [10:54:29]Write to MH i2c: E2 08 00 F8 C7 80 0D 03 02 00 00 00 00 3A [10:54:29]Write i2c OK [10:54:29]MH_I2C_Read... [10:54:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:29]Read from MH i2c: E2 [10:54:29]MH_I2C_Read... [10:54:29]Read from MH i2c: E2 0B 00 [10:54:29]MH_I2C_Read... [10:54:29]Read from MH i2c: E2 0B 00 F8 C7 00 21 83 6C AD 29 4A 17 4A 90 00 CC [10:54:29]RAPDU: 21 83 6C AD 29 4A 17 4A 90 00 [10:54:29]wFMCommunicate OK [10:54:29]SAM_PROTO_SignData done [10:54:29]FM_MakeSignedData done [10:54:29]CreateOFDProtocolMessage [10:54:29]wFMCommunicate request_size=4 [10:54:29]MH_SAM_APDU [10:54:29]CAPDU: 80 11 00 00 [10:54:29]Write to MH i2c: E2 08 00 F9 C7 80 11 00 00 00 00 00 00 3A [10:54:29]Write i2c OK [10:54:29]MH_I2C_Read... [10:54:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:29]Read from MH i2c: E2 [10:54:29]MH_I2C_Read... [10:54:29]Read from MH i2c: E2 17 00 [10:54:29]MH_I2C_Read... [10:54:29]Read from MH i2c: E2 17 00 F9 C7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8C [10:54:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:54:29]wFMCommunicate OK [10:54:29]CreateOFDProtocolMessage done [10:54:29]OFDSenderStorePacket 69275 [10:54:29]StoreOFDPacket docnum=69275 [10:54:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 7C 82 04 01 EB A5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 6D E1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9B 0E 01 00 35 04 06 00 77 78 84 62 1D EE 21 83 6C AD 29 4A 17 4A [10:54:29]CheckFolder [10:54:29]dirname=/storage/ofd_packets [10:54:29]CheckFolder done [10:54:29]ProducePacketName [10:54:29]name=ofd_packets/00069275 [10:54:29]NVStorageSaveData ofd_packets/00069275 [10:54:29]File name is /storage/ofd_packets/00069275 [10:54:29]Write 298 bytes [10:54:29]NVStorageSaveData done [10:54:29]OFDSenderStorePacket done [10:54:29]KKMCreateOFDPacket done [10:54:29]NVStorageSaveData kkm_last_timestamp [10:54:29]File name is /storage/kkm_last_timestamp [10:54:29]Write 4 bytes [10:54:29]NVStorageSaveData done [10:54:29]ExternCall_PrintAddStr [10:54:29]wPrintStart [10:54:29]Write to MH i2c: 01 00 00 FA C7 C1 [10:54:29]Write i2c OK [10:54:29]MH_I2C_Read... [10:54:29]Read from MH i2c: 01 [10:54:29]MH_I2C_Read... [10:54:29]Read from MH i2c: 01 07 00 [10:54:29]MH_I2C_Read... [10:54:29]Read from MH i2c: 01 07 00 FA C7 00 00 00 00 00 FF 0F D6 [10:54:29]RasterBufferAndPrint [10:54:29]line Счет N : (1)2884989 [10:54:29]line ИНН: 02508201610067 [10:54:29]line Контрольно-Кассовый Чек [10:54:29]line ПРОДАЖА [10:54:29]line ТРК (МРК, ГНК) : 51 [10:54:29]line Товар: 2710194210 [10:54:29]line ДТ-К-5 [10:54:29]line 19.690 * 76.20 [10:54:29]line = 1500.38 [10:54:29]line НДС 12% НСП 1% [10:54:29]line > о реализуемом товаре [10:54:29]line ИТОГО: 1500.38 [10:54:29]line НСП 1% : 13.28 [10:54:29]line НДС 12% : 159.33 [10:54:29]line Наличными: 0.00 [10:54:29]line Безнал.: 1500.38 [10:54:29]line Место: АЗС № 85 "Партнер Нефть" [10:54:29]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:54:29]line СНО: Общий режим [10:54:29]line Чек 120 20.10.2024 10:54 [10:54:29]line Смена: 193 ФФД: 1.0 [10:54:29]line ЗНМ: 0300000167 [10:54:29]line РНМ: 0000000000156251 [10:54:29]line Версия ККМ: v1.0 [10:54:29]line Платежная система: Mbank [10:54:29]line ФМ: 0000000000963346 [10:54:29]line ФД: 69275 [10:54:29]line ФПД: 131359500803566 [10:54:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105437&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69275&fm=131359500803566&tin=02508201610067®Number=0000000000156251&sum=150038 [10:54:29]OFD Sender: Processing packet 69275 [packets to send 18, broken 17] [10:54:29]ProducePacketName [10:54:29]name=ofd_packets/00069275 [10:54:29]OFD Sender: To server: pG, [10:54:29]CommunicateWithHost lk.salyk.kg:30040 [10:54:29]ConnectInit lk.salyk.kg [10:54:29]written 0, free lines is 4095 [10:54:29]Connected sock=10 [10:54:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 7C 82 04 01 EB A5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 6D E1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9B 0E 01 00 35 04 06 00 77 78 84 62 1D EE 21 83 6C AD 29 4A 17 4A [10:54:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 43 F9 47 00 4D DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9B 0E 01 00 F4 03 04 00 14 8B 14 67 B6 04 01 00 00 56 CA 69 B0 7A A7 1B CC [10:54:29]CommunicateWithHost err = 0 [10:54:29]CheckOFDResponse [10:54:29]1017 (14) - 77093643461234 [10:54:29]1041 (16) - 0000000000963346 [10:54:29]1040 (4) - 69275 [10:54:29]1012 (4) - 20.10.2024 04:46 [10:54:29]1206 (1) - 0 [10:54:29]OFD Sender: Remove packet 69275 [10:54:29]ProducePacketName [10:54:29]name=ofd_packets/00069275 [10:54:29]NVStorageDeleteData [10:54:30]Write to MH i2c: 01 00 00 23 C8 EB [10:54:30]Write i2c OK [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: 01 [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: 01 07 00 [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: 01 07 00 23 C8 00 00 00 00 00 20 0D 1F [10:54:30]RasterBufferAndPrint [10:54:30]line [10:54:30]line [10:54:30]line [10:54:30]line [10:54:30]line [10:54:30]written 0, free lines is 3366 [10:54:30]MH_Cut [10:54:30]Write to MH i2c: D1 01 00 2A C8 01 C4 [10:54:30]Write i2c OK [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: D1 [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: D1 01 00 [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: D1 01 00 2A C8 00 C3 [10:54:30]Write to MH i2c: 01 00 00 2B C8 F3 [10:54:30]Write i2c OK [10:54:30]MH_I2C_Read... [10:54:30]OFD Sender: No OFD packet to send [10:54:30]*** Cut start [10:54:30]*** Partial cut [10:54:30]*** CUTSNS_PIN = 1 [10:54:30]*** CUTSNS_PIN = 0 [10:54:31]*** Brake cut motor [10:54:31]Read from MH i2c: 01 [10:54:31]MH_I2C_Read... [10:54:31]*** Stop cut motor [10:54:31]*** Cut end [10:54:31]Read from MH i2c: 01 07 00 [10:54:31]MH_I2C_Read... [10:54:31]Read from MH i2c: 01 07 00 2B C8 00 00 00 00 00 FF 0F 08 [10:54:31]process_action close_receipt done [10:54:31]requested_data is exist [10:54:31]produce_requested_data [10:54:31]requested_item fm.sn is exist - process it [10:54:31]wFMCommunicate request_size=4 [10:54:31]MH_SAM_APDU [10:54:31]CAPDU: 80 11 00 00 [10:54:31]Write to MH i2c: E2 08 00 2C C8 80 11 00 00 00 00 00 00 6E [10:54:31]Write i2c OK [10:54:31]MH_I2C_Read... [10:54:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:31]Read from MH i2c: E2 [10:54:31]MH_I2C_Read... [10:54:31]Read from MH i2c: E2 17 00 [10:54:31]MH_I2C_Read... [10:54:31]Read from MH i2c: E2 17 00 2C C8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C0 [10:54:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:54:31]wFMCommunicate OK [10:54:31]requested_item fd.num is exist - process it [10:54:31]SAM_PROTO_GetFieldsCounters [10:54:31]wFMCommunicate request_size=4 [10:54:31]MH_SAM_APDU [10:54:31]CAPDU: 80 13 00 00 [10:54:31]Write to MH i2c: E2 08 00 2D C8 80 13 00 00 00 00 00 00 71 [10:54:31]Write i2c OK [10:54:31]MH_I2C_Read... [10:54:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:31]Read from MH i2c: E2 [10:54:31]MH_I2C_Read... [10:54:31]Read from MH i2c: E2 62 00 [10:54:31]MH_I2C_Read... [10:54:31]Read from MH i2c: E2 62 00 2D C8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9B 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [10:54:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9B 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:54:31]wFMCommunicate OK [10:54:31]SAM_PROTO_GetFieldsCounters done [10:54:31]requested_item shift.num is exist - process it [10:54:31]requested_item shift.opened is exist - process it [10:54:31]req_shift_opened [10:54:31]FM_GetShiftState [10:54:31]SAM_PROTO_GetShiftState [10:54:31]wFMCommunicate request_size=4 [10:54:31]MH_SAM_APDU [10:54:31]CAPDU: 80 13 01 00 [10:54:31]Write to MH i2c: E2 08 00 2E C8 80 13 01 00 00 00 00 00 73 [10:54:31]Write i2c OK [10:54:31]MH_I2C_Read... [10:54:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:31]Read from MH i2c: E2 [10:54:31]MH_I2C_Read... [10:54:31]Read from MH i2c: E2 0E 00 [10:54:31]MH_I2C_Read... [10:54:31]Read from MH i2c: E2 0E 00 2E C8 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 79 [10:54:31]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:54:31]wFMCommunicate OK [10:54:31]SAM_PROTO_GetShiftState done [10:54:31]FM_GetShiftState done [10:54:31]req_shift_opened done [10:54:31]requested_item shift.open_date is exist - process it [10:54:31]req_shift_open_date [10:54:31]req_shift_open_date done [10:54:31]produce_requested_data done [10:54:31]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69275,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [10:54:31]process_action_free close_receipt [10:54:31]json_value_free [10:54:31]json_value_free done [10:54:31]process_json_proto returns [10:54:31]Send response to host [10:54:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69275,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [10:54:31]free response buf [10:54:31]execute_script done [10:54:31]execute_script returns [10:54:31]free content buf [10:54:31]Sock 8.Close socket [10:54:31]Sock 8.Thread stoped [10:54:35]OFD Sender: No OFD packet to send [10:54:40]OFD Sender: No OFD packet to send [10:54:45]OFD Sender: No OFD packet to send [10:54:50]OFD Sender: No OFD packet to send [10:54:55]OFD Sender: No OFD packet to send [10:55:00]OFD Sender: No OFD packet to send [10:55:05]OFD Sender: No OFD packet to send [10:55:10]OFD Sender: No OFD packet to send [10:55:15]OFD Sender: No OFD packet to send [10:55:16]accept exits with 9 [10:55:16]New connection [10:55:16]New thread 3067116900 created [10:55:16]Thread 3067260260 joined [10:55:16]Waiting for new connection... [10:55:16] Sock 9.Parse request [10:55:16]Sock 9.Check first char [10:55:16]Sock 9.First char is OK [10:55:16]request: POST /json_proto HTTP/1.0 [10:55:16]Method: POST [10:55:16]URL: /json_proto [10:55:16]Method is POST - this is cgi request [10:55:16]url: /json_proto [10:55:16]query_string will be loaded in cgi processing [10:55:16]execute_cgi json_proto POST (null) [10:55:16]execute_cgi path=json_proto method=POST [10:55:16]POST find Content-Length [10:55:16]Host: 172.17.50.3:8080 [10:55:16]Content-Length: 683 [10:55:16]Content-Type: application/json [10:55:16] [10:55:16]POST finish read [10:55:16]Found Content-Length = 683 [10:55:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:16]execute_script... [10:55: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)2884990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:16]POST & json_proto [10:55:16]process_json_proto [10:55:16]json parsed OK: [10:55:16]protocol is kg_v1.0 [10:55:16]action value=close_receipt [10:55:16]process_action close_receipt [10:55:16]cmd_close_receipt [10:55:16]MH_GetDate [10:55:16]Write to MH i2c: F0 00 00 2F C8 E6 [10:55:16]Write i2c OK [10:55:16]MH_I2C_Read... [10:55:16]Read from MH i2c: F0 [10:55:16]MH_I2C_Read... [10:55:16]Read from MH i2c: F0 09 00 [10:55:16]MH_I2C_Read... [10:55:16]Read from MH i2c: F0 09 00 2F C8 00 9E E1 14 67 6B 98 1E 66 70 [10:55:16]GetLastDocTimeStamp 1729421677 [10:55:16]current date 1729421726 [10:55:16]FM_GetShiftState [10:55:16]SAM_PROTO_GetShiftState [10:55:16]wFMCommunicate request_size=4 [10:55:16]MH_SAM_APDU [10:55:16]CAPDU: 80 13 01 00 [10:55:16]Write to MH i2c: E2 08 00 30 C8 80 13 01 00 00 00 00 00 75 [10:55:16]Write i2c OK [10:55:16]MH_I2C_Read... [10:55:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:17]Read from MH i2c: E2 [10:55:17]MH_I2C_Read... [10:55:17]Read from MH i2c: E2 0E 00 [10:55:17]MH_I2C_Read... [10:55:17]Read from MH i2c: E2 0E 00 30 C8 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 7B [10:55:17]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:55:17]wFMCommunicate OK [10:55:17]SAM_PROTO_GetShiftState done [10:55:17]FM_GetShiftState done [10:55:17]opened in 1729383220 [10:55:17]opened+sec_in_day 1729469620 [10:55:17]quantity*price = 100021 [10:55:17]sum+1 = 100023 [10:55:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 121 20.10.2024 10:55 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69276 ФПД: 211803224839590 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105526&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69276&fm=211803224839590&tin=02508201610067®Number=0000000000156251&sum=100000 [10:55:18]StoreToDocumentArchive [10:55:18]shift 193 fd 69276 [10:55:18]save to /storage/0193/doc_00069276 [10:55:18]save last doc name /storage/0193/doc_00069276 to /storage/kkm_last_doc_name [10:55:18]save OK [10:55:18]Clear old archive folders... [10:55:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:55:18]tlvbuf is 005717A0 [10:55:18]SAM_PROTO_ClearQueue [10:55:18]wFMCommunicate request_size=4 [10:55:18]MH_SAM_APDU [10:55:18]CAPDU: 80 09 00 00 [10:55:18]Write to MH i2c: E2 08 00 3D C8 80 09 00 00 00 00 00 00 77 [10:55:18]Write i2c OK [10:55:18]MH_I2C_Read... [10:55:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:55:18]Read from MH i2c: E2 [10:55:18]MH_I2C_Read... [10:55:18]Read from MH i2c: E2 03 00 [10:55:18]MH_I2C_Read... [10:55:18]Read from MH i2c: E2 03 00 3D C8 00 90 00 79 [10:55:18]RAPDU: 90 00 [10:55:18]wFMCommunicate OK [10:55:18]SAM_PROTO_ClearQueue done [10:55:18]KKMCreateOFDPacket [10:55:18]OFDProtocolAddRootSTLVToBuf [10:55:18]FM_MakeSignedData [10:55:18]FM_MakeSignedData [10:55:18]SAM_PROTO_SignData [10:55:18]wFMCommunicate request_size=4 [10:55:18]MH_SAM_APDU [10:55:18]CAPDU: 80 0D 01 02 [10:55:18]Write to MH i2c: E2 08 00 3E C8 80 0D 01 02 00 00 00 00 7F [10:55:18]Write i2c OK [10:55:18]MH_I2C_Read... [10:55:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:55:18]Read from MH i2c: E2 [10:55:18]MH_I2C_Read... [10:55:18]Read from MH i2c: E2 03 00 [10:55:18]MH_I2C_Read... [10:55:18]Read from MH i2c: E2 03 00 3E C8 00 90 00 7A [10:55:18]RAPDU: 90 00 [10:55:18]wFMCommunicate OK [10:55:18]wFMCommunicate request_size=255 [10:55:18]MH_SAM_APDU [10:55:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 9E E1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9C 0E 01 00 35 04 06 00 C0 [10:55:18]Write to MH i2c: E2 02 01 3F C8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 9E E1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9C 0E 01 00 35 04 06 00 C0 00 00 C4 [10:55:18]Write i2c OK [10:55:18]MH_I2C_Read... [10:55:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:18]Read from MH i2c: E2 [10:55:18]MH_I2C_Read... [10:55:18]Read from MH i2c: E2 03 00 [10:55:18]MH_I2C_Read... [10:55:18]Read from MH i2c: E2 03 00 3F C8 00 90 00 7B [10:55:18]RAPDU: 90 00 [10:55:18]wFMCommunicate OK [10:55:18]wFMCommunicate request_size=10 [10:55:18]MH_SAM_APDU [10:55:18]CAPDU: 80 0D 02 02 05 A2 47 FA 95 A6 [10:55:18]Write to MH i2c: E2 0D 00 40 C8 80 0D 02 02 05 00 A2 47 FA 95 A6 00 00 AA [10:55:18]Write i2c OK [10:55:18]MH_I2C_Read... [10:55:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:18]Read from MH i2c: E2 [10:55:18]MH_I2C_Read... [10:55:18]Read from MH i2c: E2 03 00 [10:55:18]MH_I2C_Read... [10:55:18]Read from MH i2c: E2 03 00 40 C8 00 90 00 7C [10:55:18]RAPDU: 90 00 [10:55:18]wFMCommunicate OK [10:55:18]wFMCommunicate request_size=4 [10:55:18]MH_SAM_APDU [10:55:18]CAPDU: 80 0D 03 02 [10:55:18]Write to MH i2c: E2 08 00 41 C8 80 0D 03 02 00 00 00 00 84 [10:55:18]Write i2c OK [10:55:18]MH_I2C_Read... [10:55:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:55:18]Read from MH i2c: E2 [10:55:18]MH_I2C_Read... [10:55:18]Read from MH i2c: E2 0B 00 [10:55:18]MH_I2C_Read... [10:55:18]Read from MH i2c: E2 0B 00 41 C8 00 E7 9F 73 E1 92 C0 68 BC 90 00 D5 [10:55:18]RAPDU: E7 9F 73 E1 92 C0 68 BC 90 00 [10:55:18]wFMCommunicate OK [10:55:18]SAM_PROTO_SignData done [10:55:18]FM_MakeSignedData done [10:55:18]CreateOFDProtocolMessage [10:55:18]wFMCommunicate request_size=4 [10:55:18]MH_SAM_APDU [10:55:18]CAPDU: 80 11 00 00 [10:55:18]Write to MH i2c: E2 08 00 42 C8 80 11 00 00 00 00 00 00 84 [10:55:18]Write i2c OK [10:55:18]MH_I2C_Read... [10:55:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:18]Read from MH i2c: E2 [10:55:18]MH_I2C_Read... [10:55:18]Read from MH i2c: E2 17 00 [10:55:18]MH_I2C_Read... [10:55:18]Read from MH i2c: E2 17 00 42 C8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D6 [10:55:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:55:18]wFMCommunicate OK [10:55:18]CreateOFDProtocolMessage done [10:55:18]OFDSenderStorePacket 69276 [10:55:18]StoreOFDPacket docnum=69276 [10:55:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 50 F7 07 01 DF E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 9E E1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9C 0E 01 00 35 04 06 00 C0 A2 47 FA 95 A6 E7 9F 73 E1 92 C0 68 BC [10:55:18]CheckFolder [10:55:18]dirname=/storage/ofd_packets [10:55:18]CheckFolder done [10:55:18]ProducePacketName [10:55:18]name=ofd_packets/00069276 [10:55:18]NVStorageSaveData ofd_packets/00069276 [10:55:18]File name is /storage/ofd_packets/00069276 [10:55:18]Write 301 bytes [10:55:18]NVStorageSaveData done [10:55:18]OFDSenderStorePacket done [10:55:18]KKMCreateOFDPacket done [10:55:18]NVStorageSaveData kkm_last_timestamp [10:55:18]File name is /storage/kkm_last_timestamp [10:55:18]Write 4 bytes [10:55:18]NVStorageSaveData done [10:55:18]ExternCall_PrintAddStr [10:55:18]wPrintStart [10:55:18]Write to MH i2c: 01 00 00 43 C8 0B [10:55:18]Write i2c OK [10:55:18]MH_I2C_Read... [10:55:18]Read from MH i2c: 01 [10:55:18]MH_I2C_Read... [10:55:18]Read from MH i2c: 01 07 00 [10:55:18]MH_I2C_Read... [10:55:18]Read from MH i2c: 01 07 00 43 C8 00 00 00 00 00 FF 0F 20 [10:55:18]RasterBufferAndPrint [10:55:18]line Счет N : (1)2884990 [10:55:18]line ИНН: 02508201610067 [10:55:18]line Контрольно-Кассовый Чек [10:55:18]line ПРОДАЖА [10:55:18]line ТРК (МРК, ГНК) : 33 [10:55:18]line Товар: 2710124500 [10:55:18]line Аи-95-К-5 [10:55:18]line 13.480 * 74.20 [10:55:18]line = 1000.22 [10:55:18]line НДС 12% НСП 1% [10:55:18]line > о реализуемом товаре [10:55:18]line ОКРУГЛЕНИЕ: -0.22 [10:55:18]line ИТОГО: 1000.00 [10:55:18]line Внесено: 1000.00 [10:55:18]line СДАЧА: 0.00 [10:55:18]line НСП 1% : 8.85 [10:55:18]line НДС 12% : 106.22 [10:55:18]line Наличными: 1000.00 [10:55:18]line Безнал.: 0.00 [10:55:18]line Место: АЗС № 85 "Партнер Нефть" [10:55:18]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:55:18]line СНО: Общий режим [10:55:18]line Чек 121 20.10.2024 10:55 [10:55:18]line Смена: 193 ФФД: 1.0 [10:55:18]line ЗНМ: 0300000167 [10:55:18]line РНМ: 0000000000156251 [10:55:18]line Версия ККМ: v1.0 [10:55:18]line ФМ: 0000000000963346 [10:55:18]line ФД: 69276 [10:55:18]line ФПД: 211803224839590 [10:55:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105526&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69276&fm=211803224839590&tin=02508201610067®Number=0000000000156251&sum=100000 [10:55:19]OFD Sender: Processing packet 69276 [packets to send 18, broken 17] [10:55:19]ProducePacketName [10:55:19]name=ofd_packets/00069276 [10:55:19]OFD Sender: To server: pG, [10:55:19]CommunicateWithHost lk.salyk.kg:30040 [10:55:19]ConnectInit lk.salyk.kg [10:55:19]written 0, free lines is 4095 [10:55:19]Connected sock=10 [10:55:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 50 F7 07 01 DF E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 9E E1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9C 0E 01 00 35 04 06 00 C0 A2 47 FA 95 A6 E7 9F 73 E1 92 C0 68 BC [10:55:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 66 EF 47 00 E7 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9C 0E 01 00 F4 03 04 00 45 8B 14 67 B6 04 01 00 00 4F B1 95 8D 53 5D 6C 7B [10:55:19]CommunicateWithHost err = 0 [10:55:19]CheckOFDResponse [10:55:19]1017 (14) - 77093643461234 [10:55:19]1041 (16) - 0000000000963346 [10:55:19]1040 (4) - 69276 [10:55:19]1012 (4) - 20.10.2024 04:47 [10:55:19]1206 (1) - 0 [10:55:19]OFD Sender: Remove packet 69276 [10:55:19]ProducePacketName [10:55:19]name=ofd_packets/00069276 [10:55:19]NVStorageDeleteData [10:55:19]Write to MH i2c: 01 00 00 6E C8 36 [10:55:19]Write i2c OK [10:55:19]MH_I2C_Read... [10:55:19]Read from MH i2c: 01 [10:55:19]MH_I2C_Read... [10:55:19]Read from MH i2c: 01 07 00 [10:55:19]MH_I2C_Read... [10:55:19]Read from MH i2c: 01 07 00 6E C8 00 00 00 00 00 E9 0C 32 [10:55:19]RasterBufferAndPrint [10:55:19]line [10:55:19]line [10:55:19]line [10:55:19]line [10:55:19]line [10:55:19]written 0, free lines is 3314 [10:55:19]MH_Cut [10:55:19]Write to MH i2c: D1 01 00 75 C8 01 0F [10:55:19]Write i2c OK [10:55:19]MH_I2C_Read... [10:55:19]Read from MH i2c: D1 [10:55:19]MH_I2C_Read... [10:55:19]Read from MH i2c: D1 01 00 [10:55:19]MH_I2C_Read... [10:55:19]Read from MH i2c: D1 01 00 75 C8 00 0E [10:55:19]Write to MH i2c: 01 00 00 76 C8 3E [10:55:19]Write i2c OK [10:55:19]MH_I2C_Read... [10:55:19]OFD Sender: No OFD packet to send [10:55:20]*** Cut start [10:55:20]*** Partial cut [10:55:20]*** CUTSNS_PIN = 1 [10:55:20]*** CUTSNS_PIN = 0 [10:55:20]*** Brake cut motor [10:55:20]Read from MH i2c: 01 [10:55:20]MH_I2C_Read... [10:55:20]*** Stop cut motor [10:55:20]*** Cut end [10:55:20]Read from MH i2c: 01 07 00 [10:55:20]MH_I2C_Read... [10:55:20]Read from MH i2c: 01 07 00 76 C8 00 00 00 00 00 FF 0F 53 [10:55:20]process_action close_receipt done [10:55:20]requested_data is exist [10:55:20]produce_requested_data [10:55:20]requested_item fm.sn is exist - process it [10:55:20]wFMCommunicate request_size=4 [10:55:20]MH_SAM_APDU [10:55:20]CAPDU: 80 11 00 00 [10:55:20]Write to MH i2c: E2 08 00 77 C8 80 11 00 00 00 00 00 00 B9 [10:55:20]Write i2c OK [10:55:20]MH_I2C_Read... [10:55:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:20]Read from MH i2c: E2 [10:55:20]MH_I2C_Read... [10:55:20]Read from MH i2c: E2 17 00 [10:55:20]MH_I2C_Read... [10:55:20]Read from MH i2c: E2 17 00 77 C8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0B [10:55:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:55:20]wFMCommunicate OK [10:55:20]requested_item fd.num is exist - process it [10:55:20]SAM_PROTO_GetFieldsCounters [10:55:20]wFMCommunicate request_size=4 [10:55:20]MH_SAM_APDU [10:55:20]CAPDU: 80 13 00 00 [10:55:20]Write to MH i2c: E2 08 00 78 C8 80 13 00 00 00 00 00 00 BC [10:55:20]Write i2c OK [10:55:20]MH_I2C_Read... [10:55:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:21]Read from MH i2c: E2 [10:55:21]MH_I2C_Read... [10:55:21]Read from MH i2c: E2 62 00 [10:55:21]MH_I2C_Read... [10:55:21]Read from MH i2c: E2 62 00 78 C8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9C 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [10:55:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9C 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:55:21]wFMCommunicate OK [10:55:21]SAM_PROTO_GetFieldsCounters done [10:55:21]requested_item shift.num is exist - process it [10:55:21]requested_item shift.opened is exist - process it [10:55:21]req_shift_opened [10:55:21]FM_GetShiftState [10:55:21]SAM_PROTO_GetShiftState [10:55:21]wFMCommunicate request_size=4 [10:55:21]MH_SAM_APDU [10:55:21]CAPDU: 80 13 01 00 [10:55:21]Write to MH i2c: E2 08 00 79 C8 80 13 01 00 00 00 00 00 BE [10:55:21]Write i2c OK [10:55:21]MH_I2C_Read... [10:55:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:21]Read from MH i2c: E2 [10:55:21]MH_I2C_Read... [10:55:21]Read from MH i2c: E2 0E 00 [10:55:21]MH_I2C_Read... [10:55:21]Read from MH i2c: E2 0E 00 79 C8 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 C4 [10:55:21]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:55:21]wFMCommunicate OK [10:55:21]SAM_PROTO_GetShiftState done [10:55:21]FM_GetShiftState done [10:55:21]req_shift_opened done [10:55:21]requested_item shift.open_date is exist - process it [10:55:21]req_shift_open_date [10:55:21]req_shift_open_date done [10:55:21]produce_requested_data done [10:55:21]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69276,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [10:55:21]process_action_free close_receipt [10:55:21]json_value_free [10:55:21]json_value_free done [10:55:21]process_json_proto returns [10:55:21]Send response to host [10:55:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69276,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [10:55:21]free response buf [10:55:21]execute_script done [10:55:21]execute_script returns [10:55:21]free content buf [10:55:21]Sock 9.Close socket [10:55:21]Sock 9.Thread stoped [10:55:22]accept exits with 8 [10:55:22]New connection [10:55:22]New thread 3067260260 created [10:55:22]Thread 3067116900 joined [10:55:22]Waiting for new connection... [10:55:22] Sock 8.Parse request [10:55:22]Sock 8.Check first char [10:55:22]Sock 8.First char is OK [10:55:22]request: POST /json_proto HTTP/1.0 [10:55:22]Method: POST [10:55:22]URL: /json_proto [10:55:22]Method is POST - this is cgi request [10:55:22]url: /json_proto [10:55:22]query_string will be loaded in cgi processing [10:55:22]execute_cgi json_proto POST (null) [10:55:22]execute_cgi path=json_proto method=POST [10:55:22]POST find Content-Length [10:55:22]Host: 172.17.50.3:8080 [10:55:22]Content-Length: 678 [10:55:22]Content-Type: application/json [10:55:22] [10:55:22]POST finish read [10:55:22]Found Content-Length = 678 [10:55:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:22]execute_script... [10:55: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)2884991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:22]POST & json_proto [10:55:22]process_json_proto [10:55:22]json parsed OK: [10:55:22]protocol is kg_v1.0 [10:55:22]action value=close_receipt [10:55:22]process_action close_receipt [10:55:22]cmd_close_receipt [10:55:22]MH_GetDate [10:55:22]Write to MH i2c: F0 00 00 7A C8 31 [10:55:22]Write i2c OK [10:55:22]MH_I2C_Read... [10:55:22]Read from MH i2c: F0 [10:55:22]MH_I2C_Read... [10:55:22]Read from MH i2c: F0 09 00 [10:55:22]MH_I2C_Read... [10:55:22]Read from MH i2c: F0 09 00 7A C8 00 A4 E1 14 67 6B 98 1E 66 C1 [10:55:22]GetLastDocTimeStamp 1729421726 [10:55:22]current date 1729421732 [10:55:22]FM_GetShiftState [10:55:22]SAM_PROTO_GetShiftState [10:55:22]wFMCommunicate request_size=4 [10:55:22]MH_SAM_APDU [10:55:22]CAPDU: 80 13 01 00 [10:55:22]Write to MH i2c: E2 08 00 7B C8 80 13 01 00 00 00 00 00 C0 [10:55:22]Write i2c OK [10:55:22]MH_I2C_Read... [10:55:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:22]Read from MH i2c: E2 [10:55:22]MH_I2C_Read... [10:55:22]Read from MH i2c: E2 0E 00 [10:55:22]MH_I2C_Read... [10:55:22]Read from MH i2c: E2 0E 00 7B C8 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 C6 [10:55:22]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:55:22]wFMCommunicate OK [10:55:22]SAM_PROTO_GetShiftState done [10:55:22]FM_GetShiftState done [10:55:22]opened in 1729383220 [10:55:22]opened+sec_in_day 1729469620 [10:55:22]quantity*price = 50041 [10:55:22]sum+1 = 50042 [10:55:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 122 20.10.2024 10:55 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69277 ФПД: 186174043295621 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105532&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69277&fm=186174043295621&tin=02508201610067®Number=0000000000156251&sum=50000 [10:55:24]StoreToDocumentArchive [10:55:24]shift 193 fd 69277 [10:55:24]save to /storage/0193/doc_00069277 [10:55:24]save last doc name /storage/0193/doc_00069277 to /storage/kkm_last_doc_name [10:55:24]save OK [10:55:24]Clear old archive folders... [10:55:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:55:24]tlvbuf is 0084F590 [10:55:24]SAM_PROTO_ClearQueue [10:55:24]wFMCommunicate request_size=4 [10:55:24]MH_SAM_APDU [10:55:24]CAPDU: 80 09 00 00 [10:55:24]Write to MH i2c: E2 08 00 88 C8 80 09 00 00 00 00 00 00 C2 [10:55:24]Write i2c OK [10:55:24]MH_I2C_Read... [10:55:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:55:24]Read from MH i2c: E2 [10:55:24]MH_I2C_Read... [10:55:24]Read from MH i2c: E2 03 00 [10:55:24]MH_I2C_Read... [10:55:24]Read from MH i2c: E2 03 00 88 C8 00 90 00 C4 [10:55:24]RAPDU: 90 00 [10:55:24]wFMCommunicate OK [10:55:24]SAM_PROTO_ClearQueue done [10:55:24]KKMCreateOFDPacket [10:55:24]OFDProtocolAddRootSTLVToBuf [10:55:24]FM_MakeSignedData [10:55:24]FM_MakeSignedData [10:55:24]SAM_PROTO_SignData [10:55:24]wFMCommunicate request_size=4 [10:55:24]MH_SAM_APDU [10:55:24]CAPDU: 80 0D 01 02 [10:55:24]Write to MH i2c: E2 08 00 89 C8 80 0D 01 02 00 00 00 00 CA [10:55:24]Write i2c OK [10:55:24]MH_I2C_Read... [10:55:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:55:24]Read from MH i2c: E2 [10:55:24]MH_I2C_Read... [10:55:24]Read from MH i2c: E2 03 00 [10:55:24]MH_I2C_Read... [10:55:24]Read from MH i2c: E2 03 00 89 C8 00 90 00 C5 [10:55:24]RAPDU: 90 00 [10:55:24]wFMCommunicate OK [10:55:24]wFMCommunicate request_size=255 [10:55:24]MH_SAM_APDU [10:55:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 A4 E1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9D 0E 01 00 35 04 06 00 A9 [10:55:24]Write to MH i2c: E2 02 01 8A C8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 A4 E1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9D 0E 01 00 35 04 06 00 A9 00 00 E3 [10:55:24]Write i2c OK [10:55:24]MH_I2C_Read... [10:55:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:24]Read from MH i2c: E2 [10:55:24]MH_I2C_Read... [10:55:24]Read from MH i2c: E2 03 00 [10:55:24]MH_I2C_Read... [10:55:24]Read from MH i2c: E2 03 00 8A C8 00 90 00 C6 [10:55:24]RAPDU: 90 00 [10:55:24]wFMCommunicate OK [10:55:24]wFMCommunicate request_size=10 [10:55:24]MH_SAM_APDU [10:55:24]CAPDU: 80 0D 02 02 05 53 05 B7 8F 85 [10:55:24]Write to MH i2c: E2 0D 00 8B C8 80 0D 02 02 05 00 53 05 B7 8F 85 00 00 FA [10:55:24]Write i2c OK [10:55:24]MH_I2C_Read... [10:55:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:24]Read from MH i2c: E2 [10:55:24]MH_I2C_Read... [10:55:24]Read from MH i2c: E2 03 00 [10:55:24]MH_I2C_Read... [10:55:24]Read from MH i2c: E2 03 00 8B C8 00 90 00 C7 [10:55:24]RAPDU: 90 00 [10:55:24]wFMCommunicate OK [10:55:24]wFMCommunicate request_size=4 [10:55:24]MH_SAM_APDU [10:55:24]CAPDU: 80 0D 03 02 [10:55:24]Write to MH i2c: E2 08 00 8C C8 80 0D 03 02 00 00 00 00 CF [10:55:24]Write i2c OK [10:55:24]MH_I2C_Read... [10:55:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:55:24]Read from MH i2c: E2 [10:55:24]MH_I2C_Read... [10:55:24]Read from MH i2c: E2 0B 00 [10:55:24]MH_I2C_Read... [10:55:24]Read from MH i2c: E2 0B 00 8C C8 00 44 5B B9 6F 1E 3E 5C 4B 90 00 9A [10:55:24]RAPDU: 44 5B B9 6F 1E 3E 5C 4B 90 00 [10:55:24]wFMCommunicate OK [10:55:24]SAM_PROTO_SignData done [10:55:24]FM_MakeSignedData done [10:55:24]CreateOFDProtocolMessage [10:55:24]wFMCommunicate request_size=4 [10:55:24]MH_SAM_APDU [10:55:24]CAPDU: 80 11 00 00 [10:55:24]Write to MH i2c: E2 08 00 8D C8 80 11 00 00 00 00 00 00 CF [10:55:24]Write i2c OK [10:55:24]MH_I2C_Read... [10:55:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:24]Read from MH i2c: E2 [10:55:24]MH_I2C_Read... [10:55:24]Read from MH i2c: E2 17 00 [10:55:24]MH_I2C_Read... [10:55:24]Read from MH i2c: E2 17 00 8D C8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 21 [10:55:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:55:24]wFMCommunicate OK [10:55:24]CreateOFDProtocolMessage done [10:55:24]OFDSenderStorePacket 69277 [10:55:24]StoreOFDPacket docnum=69277 [10:55:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A1 5A 07 01 5F 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 A4 E1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9D 0E 01 00 35 04 06 00 A9 53 05 B7 8F 85 44 5B B9 6F 1E 3E 5C 4B [10:55:24]CheckFolder [10:55:24]dirname=/storage/ofd_packets [10:55:24]CheckFolder done [10:55:24]ProducePacketName [10:55:24]name=ofd_packets/00069277 [10:55:24]NVStorageSaveData ofd_packets/00069277 [10:55:24]File name is /storage/ofd_packets/00069277 [10:55:24]Write 301 bytes [10:55:24]NVStorageSaveData done [10:55:24]OFDSenderStorePacket done [10:55:24]KKMCreateOFDPacket done [10:55:24]NVStorageSaveData kkm_last_timestamp [10:55:24]File name is /storage/kkm_last_timestamp [10:55:24]Write 4 bytes [10:55:24]NVStorageSaveData done [10:55:24]ExternCall_PrintAddStr [10:55:24]wPrintStart [10:55:24]Write to MH i2c: 01 00 00 8E C8 56 [10:55:24]Write i2c OK [10:55:24]MH_I2C_Read... [10:55:24]Read from MH i2c: 01 [10:55:24]MH_I2C_Read... [10:55:24]Read from MH i2c: 01 07 00 [10:55:24]MH_I2C_Read... [10:55:24]Read from MH i2c: 01 07 00 8E C8 00 00 00 00 00 FF 0F 6B [10:55:24]RasterBufferAndPrint [10:55:24]line Счет N : (1)2884991 [10:55:24]line ИНН: 02508201610067 [10:55:24]line Контрольно-Кассовый Чек [10:55:24]line ПРОДАЖА [10:55:24]line ТРК (МРК, ГНК) : 42 [10:55:24]line Товар: 2710124130 [10:55:24]line Аи-92-К-5 [10:55:24]line 7.480 * 66.90 [10:55:24]line = 500.41 [10:55:24]line НДС 12% НСП 1% [10:55:24]line > о реализуемом товаре [10:55:24]line ОКРУГЛЕНИЕ: -0.41 [10:55:24]line ИТОГО: 500.00 [10:55:24]line Внесено: 500.00 [10:55:24]line СДАЧА: 0.00 [10:55:24]line НСП 1% : 4.43 [10:55:24]line НДС 12% : 53.14 [10:55:24]line Наличными: 500.00 [10:55:24]line Безнал.: 0.00 [10:55:24]line Место: АЗС № 85 "Партнер Нефть" [10:55:24]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:55:24]line СНО: Общий режим [10:55:24]line Чек 122 20.10.2024 10:55 [10:55:24]line Смена: 193 ФФД: 1.0 [10:55:24]line ЗНМ: 0300000167 [10:55:24]line РНМ: 0000000000156251 [10:55:24]line Версия ККМ: v1.0 [10:55:24]line ФМ: 0000000000963346 [10:55:24]line ФД: 69277 [10:55:24]line ФПД: 186174043295621 [10:55:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105532&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69277&fm=186174043295621&tin=02508201610067®Number=0000000000156251&sum=50000 [10:55:24]OFD Sender: Processing packet 69277 [packets to send 18, broken 17] [10:55:24]ProducePacketName [10:55:24]name=ofd_packets/00069277 [10:55:24]OFD Sender: To server: pG, [10:55:24]CommunicateWithHost lk.salyk.kg:30040 [10:55:24]ConnectInit lk.salyk.kg [10:55:24]written 0, free lines is 4095 [10:55:24]Connected sock=10 [10:55:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A1 5A 07 01 5F 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 A4 E1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9D 0E 01 00 35 04 06 00 A9 53 05 B7 8F 85 44 5B B9 6F 1E 3E 5C 4B [10:55:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 79 87 47 00 8A DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9D 0E 01 00 F4 03 04 00 4B 8B 14 67 B6 04 01 00 00 B6 AA D5 93 7E FE 27 5C [10:55:25]CommunicateWithHost err = 0 [10:55:25]CheckOFDResponse [10:55:25]1017 (14) - 77093643461234 [10:55:25]1041 (16) - 0000000000963346 [10:55:25]1040 (4) - 69277 [10:55:25]1012 (4) - 20.10.2024 04:47 [10:55:25]1206 (1) - 0 [10:55:25]OFD Sender: Remove packet 69277 [10:55:25]ProducePacketName [10:55:25]name=ofd_packets/00069277 [10:55:25]NVStorageDeleteData [10:55:25]Write to MH i2c: 01 00 00 B9 C8 81 [10:55:25]Write i2c OK [10:55:25]MH_I2C_Read... [10:55:25]Read from MH i2c: 01 [10:55:25]MH_I2C_Read... [10:55:25]Read from MH i2c: 01 07 00 [10:55:25]MH_I2C_Read... [10:55:25]Read from MH i2c: 01 07 00 B9 C8 00 00 00 00 00 02 0D 97 [10:55:25]RasterBufferAndPrint [10:55:25]line [10:55:25]line [10:55:25]line [10:55:25]line [10:55:25]line [10:55:25]written 0, free lines is 3345 [10:55:25]MH_Cut [10:55:25]Write to MH i2c: D1 01 00 C0 C8 01 5A [10:55:25]Write i2c OK [10:55:25]MH_I2C_Read... [10:55:25]Read from MH i2c: D1 [10:55:25]MH_I2C_Read... [10:55:25]Read from MH i2c: D1 01 00 [10:55:25]MH_I2C_Read... [10:55:25]Read from MH i2c: D1 01 00 C0 C8 00 59 [10:55:25]Write to MH i2c: 01 00 00 C1 C8 89 [10:55:25]Write i2c OK [10:55:25]MH_I2C_Read... [10:55:25]OFD Sender: No OFD packet to send [10:55:25]*** Cut start [10:55:25]*** Partial cut [10:55:25]*** CUTSNS_PIN = 1 [10:55:25]*** CUTSNS_PIN = 0 [10:55:26]*** Brake cut motor [10:55:26]Read from MH i2c: 01 [10:55:26]MH_I2C_Read... [10:55:26]*** Stop cut motor [10:55:26]*** Cut end [10:55:26]Read from MH i2c: 01 07 00 [10:55:26]MH_I2C_Read... [10:55:26]Read from MH i2c: 01 07 00 C1 C8 00 00 00 00 00 FF 0F 9E [10:55:26]process_action close_receipt done [10:55:26]requested_data is exist [10:55:26]produce_requested_data [10:55:26]requested_item fm.sn is exist - process it [10:55:26]wFMCommunicate request_size=4 [10:55:26]MH_SAM_APDU [10:55:26]CAPDU: 80 11 00 00 [10:55:26]Write to MH i2c: E2 08 00 C2 C8 80 11 00 00 00 00 00 00 04 [10:55:26]Write i2c OK [10:55:26]MH_I2C_Read... [10:55:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:26]Read from MH i2c: E2 [10:55:26]MH_I2C_Read... [10:55:26]Read from MH i2c: E2 17 00 [10:55:26]MH_I2C_Read... [10:55:26]Read from MH i2c: E2 17 00 C2 C8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 56 [10:55:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:55:26]wFMCommunicate OK [10:55:26]requested_item fd.num is exist - process it [10:55:26]SAM_PROTO_GetFieldsCounters [10:55:26]wFMCommunicate request_size=4 [10:55:26]MH_SAM_APDU [10:55:26]CAPDU: 80 13 00 00 [10:55:26]Write to MH i2c: E2 08 00 C3 C8 80 13 00 00 00 00 00 00 07 [10:55:26]Write i2c OK [10:55:26]MH_I2C_Read... [10:55:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:26]Read from MH i2c: E2 [10:55:26]MH_I2C_Read... [10:55:26]Read from MH i2c: E2 62 00 [10:55:26]MH_I2C_Read... [10:55:26]Read from MH i2c: E2 62 00 C3 C8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9D 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [10:55:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9D 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:55:26]wFMCommunicate OK [10:55:26]SAM_PROTO_GetFieldsCounters done [10:55:26]requested_item shift.num is exist - process it [10:55:26]requested_item shift.opened is exist - process it [10:55:26]req_shift_opened [10:55:26]FM_GetShiftState [10:55:26]SAM_PROTO_GetShiftState [10:55:26]wFMCommunicate request_size=4 [10:55:26]MH_SAM_APDU [10:55:26]CAPDU: 80 13 01 00 [10:55:26]Write to MH i2c: E2 08 00 C4 C8 80 13 01 00 00 00 00 00 09 [10:55:26]Write i2c OK [10:55:26]MH_I2C_Read... [10:55:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:26]Read from MH i2c: E2 [10:55:26]MH_I2C_Read... [10:55:26]Read from MH i2c: E2 0E 00 [10:55:26]MH_I2C_Read... [10:55:26]Read from MH i2c: E2 0E 00 C4 C8 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 0F [10:55:26]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:55:26]wFMCommunicate OK [10:55:26]SAM_PROTO_GetShiftState done [10:55:26]FM_GetShiftState done [10:55:26]req_shift_opened done [10:55:26]requested_item shift.open_date is exist - process it [10:55:26]req_shift_open_date [10:55:26]req_shift_open_date done [10:55:26]produce_requested_data done [10:55:26]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69277,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [10:55:26]process_action_free close_receipt [10:55:26]json_value_free [10:55:26]json_value_free done [10:55:26]process_json_proto returns [10:55:26]Send response to host [10:55:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69277,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [10:55:26]free response buf [10:55:26]execute_script done [10:55:26]execute_script returns [10:55:26]free content buf [10:55:26]Sock 8.Close socket [10:55:26]Sock 8.Thread stoped [10:55:30]OFD Sender: No OFD packet to send [10:55:35]OFD Sender: No OFD packet to send [10:55:40]OFD Sender: No OFD packet to send [10:55:45]OFD Sender: No OFD packet to send [10:55:50]OFD Sender: No OFD packet to send [10:55:55]OFD Sender: No OFD packet to send [10:56:00]OFD Sender: No OFD packet to send [10:56:05]OFD Sender: No OFD packet to send [10:56:10]OFD Sender: No OFD packet to send [10:56:15]OFD Sender: No OFD packet to send [10:56:20]OFD Sender: No OFD packet to send [10:56:25]OFD Sender: No OFD packet to send [10:56:30]OFD Sender: No OFD packet to send [10:56:35]OFD Sender: No OFD packet to send [10:56:40]OFD Sender: No OFD packet to send [10:56:45]OFD Sender: No OFD packet to send [10:56:50]OFD Sender: No OFD packet to send [10:56:55]OFD Sender: No OFD packet to send [10:57:00]OFD Sender: No OFD packet to send [10:57:05]OFD Sender: No OFD packet to send [10:57:10]OFD Sender: No OFD packet to send [10:57:15]OFD Sender: No OFD packet to send [10:57:20]OFD Sender: No OFD packet to send [10:57:25]OFD Sender: No OFD packet to send [10:57:30]OFD Sender: No OFD packet to send [10:57:31]accept exits with 9 [10:57:31]New connection [10:57:31]New thread 3067116900 created [10:57:31]Thread 3067260260 joined [10:57:31]Waiting for new connection... [10:57:31] Sock 9.Parse request [10:57:31]Sock 9.Check first char [10:57:31]Sock 9.First char is OK [10:57:31]request: POST /json_proto HTTP/1.0 [10:57:31]Method: POST [10:57:31]URL: /json_proto [10:57:31]Method is POST - this is cgi request [10:57:31]url: /json_proto [10:57:31]query_string will be loaded in cgi processing [10:57:31]execute_cgi json_proto POST (null) [10:57:31]execute_cgi path=json_proto method=POST [10:57:31]POST find Content-Length [10:57:31]Host: 172.17.50.3:8080 [10:57:31]Content-Length: 771 [10:57:31]Content-Type: application/json [10:57:31] [10:57:31]POST finish read [10:57:31]Found Content-Length = 771 [10:57:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:31]execute_script... [10: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)2884993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:31]POST & json_proto [10:57:31]process_json_proto [10:57:31]json parsed OK: [10:57:31]protocol is kg_v1.0 [10:57:31]action value=close_receipt [10:57:31]process_action close_receipt [10:57:31]cmd_close_receipt [10:57:31]MH_GetDate [10:57:31]Write to MH i2c: F0 00 00 C5 C8 7C [10:57:31]Write i2c OK [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: F0 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: F0 09 00 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: F0 09 00 C5 C8 00 25 E2 14 67 6B 98 1E 66 8E [10:57:31]GetLastDocTimeStamp 1729421732 [10:57:31]current date 1729421861 [10:57:31]FM_GetShiftState [10:57:31]SAM_PROTO_GetShiftState [10:57:31]wFMCommunicate request_size=4 [10:57:31]MH_SAM_APDU [10:57:31]CAPDU: 80 13 01 00 [10:57:31]Write to MH i2c: E2 08 00 C6 C8 80 13 01 00 00 00 00 00 0B [10:57:31]Write i2c OK [10:57:31]MH_I2C_Read... [10:57:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:31]Read from MH i2c: E2 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: E2 0E 00 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: E2 0E 00 C6 C8 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 11 [10:57:31]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:57:31]wFMCommunicate OK [10:57:31]SAM_PROTO_GetShiftState done [10:57:31]FM_GetShiftState done [10:57:31]opened in 1729383220 [10:57:31]opened+sec_in_day 1729469620 [10:57:31]quantity*price = 50025 [10:57:31]sum+1 = 50026 [10:57:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.25 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.25 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 123 20.10.2024 10:57 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69278 ФПД: 123591276766190 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105741&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69278&fm=123591276766190&tin=02508201610067®Number=0000000000156251&sum=50025 [10:57:32]StoreToDocumentArchive [10:57:32]shift 193 fd 69278 [10:57:32]save to /storage/0193/doc_00069278 [10:57:32]save last doc name /storage/0193/doc_00069278 to /storage/kkm_last_doc_name [10:57:32]save OK [10:57:32]Clear old archive folders... [10:57:32]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:57:32]tlvbuf is 0077C090 [10:57:32]SAM_PROTO_ClearQueue [10:57:32]wFMCommunicate request_size=4 [10:57:32]MH_SAM_APDU [10:57:32]CAPDU: 80 09 00 00 [10:57:32]Write to MH i2c: E2 08 00 D3 C8 80 09 00 00 00 00 00 00 0D [10:57:32]Write i2c OK [10:57:32]MH_I2C_Read... [10:57:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:57:32]Read from MH i2c: E2 [10:57:32]MH_I2C_Read... [10:57:32]Read from MH i2c: E2 03 00 [10:57:32]MH_I2C_Read... [10:57:32]Read from MH i2c: E2 03 00 D3 C8 00 90 00 0F [10:57:32]RAPDU: 90 00 [10:57:32]wFMCommunicate OK [10:57:32]SAM_PROTO_ClearQueue done [10:57:32]KKMCreateOFDPacket [10:57:32]OFDProtocolAddRootSTLVToBuf [10:57:32]FM_MakeSignedData [10:57:32]FM_MakeSignedData [10:57:32]SAM_PROTO_SignData [10:57:32]wFMCommunicate request_size=4 [10:57:32]MH_SAM_APDU [10:57:32]CAPDU: 80 0D 01 02 [10:57:32]Write to MH i2c: E2 08 00 D4 C8 80 0D 01 02 00 00 00 00 15 [10:57:32]Write i2c OK [10:57:32]MH_I2C_Read... [10:57:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:57:32]Read from MH i2c: E2 [10:57:32]MH_I2C_Read... [10:57:32]Read from MH i2c: E2 03 00 [10:57:32]MH_I2C_Read... [10:57:32]Read from MH i2c: E2 03 00 D4 C8 00 90 00 10 [10:57:32]RAPDU: 90 00 [10:57:32]wFMCommunicate OK [10:57:32]wFMCommunicate request_size=255 [10:57:32]MH_SAM_APDU [10:57:32]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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 25 E2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9E 0E 01 00 35 04 06 00 70 67 [10:57:32]Write to MH i2c: E2 02 01 D5 C8 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 25 E2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9E 0E 01 00 35 04 06 00 70 67 00 00 CC [10:57:32]Write i2c OK [10:57:32]MH_I2C_Read... [10:57:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:32]Read from MH i2c: E2 [10:57:32]MH_I2C_Read... [10:57:32]Read from MH i2c: E2 03 00 [10:57:32]MH_I2C_Read... [10:57:32]Read from MH i2c: E2 03 00 D5 C8 00 90 00 11 [10:57:32]RAPDU: 90 00 [10:57:32]wFMCommunicate OK [10:57:32]wFMCommunicate request_size=9 [10:57:32]MH_SAM_APDU [10:57:32]CAPDU: 80 0D 02 02 04 D6 26 23 EE [10:57:32]Write to MH i2c: E2 0C 00 D6 C8 80 0D 02 02 04 00 D6 26 23 EE 00 00 2D [10:57:32]Write i2c OK [10:57:32]MH_I2C_Read... [10:57:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:32]Read from MH i2c: E2 [10:57:32]MH_I2C_Read... [10:57:32]Read from MH i2c: E2 03 00 [10:57:32]MH_I2C_Read... [10:57:32]Read from MH i2c: E2 03 00 D6 C8 00 90 00 12 [10:57:32]RAPDU: 90 00 [10:57:32]wFMCommunicate OK [10:57:32]wFMCommunicate request_size=4 [10:57:32]MH_SAM_APDU [10:57:32]CAPDU: 80 0D 03 02 [10:57:32]Write to MH i2c: E2 08 00 D7 C8 80 0D 03 02 00 00 00 00 1A [10:57:32]Write i2c OK [10:57:32]MH_I2C_Read... [10:57:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:57:32]Read from MH i2c: E2 [10:57:32]MH_I2C_Read... [10:57:32]Read from MH i2c: E2 0B 00 [10:57:32]MH_I2C_Read... [10:57:32]Read from MH i2c: E2 0B 00 D7 C8 00 04 B2 74 E1 78 E5 5B 5E 90 00 3C [10:57:32]RAPDU: 04 B2 74 E1 78 E5 5B 5E 90 00 [10:57:32]wFMCommunicate OK [10:57:32]SAM_PROTO_SignData done [10:57:32]FM_MakeSignedData done [10:57:32]CreateOFDProtocolMessage [10:57:32]wFMCommunicate request_size=4 [10:57:32]MH_SAM_APDU [10:57:32]CAPDU: 80 11 00 00 [10:57:32]Write to MH i2c: E2 08 00 D8 C8 80 11 00 00 00 00 00 00 1A [10:57:32]Write i2c OK [10:57:32]MH_I2C_Read... [10:57:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:32]Read from MH i2c: E2 [10:57:32]MH_I2C_Read... [10:57:32]Read from MH i2c: E2 17 00 [10:57:32]MH_I2C_Read... [10:57:32]Read from MH i2c: E2 17 00 D8 C8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6C [10:57:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:57:32]wFMCommunicate OK [10:57:32]CreateOFDProtocolMessage done [10:57:32]OFDSenderStorePacket 69278 [10:57:32]StoreOFDPacket docnum=69278 [10:57:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 C7 7F 06 01 0B 77 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 25 E2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9E 0E 01 00 35 04 06 00 70 67 D6 26 23 EE 04 B2 74 E1 78 E5 5B 5E [10:57:32]CheckFolder [10:57:32]dirname=/storage/ofd_packets [10:57:32]CheckFolder done [10:57:32]ProducePacketName [10:57:32]name=ofd_packets/00069278 [10:57:32]NVStorageSaveData ofd_packets/00069278 [10:57:32]File name is /storage/ofd_packets/00069278 [10:57:32]Write 300 bytes [10:57:32]NVStorageSaveData done [10:57:32]OFDSenderStorePacket done [10:57:32]KKMCreateOFDPacket done [10:57:32]NVStorageSaveData kkm_last_timestamp [10:57:32]File name is /storage/kkm_last_timestamp [10:57:32]Write 4 bytes [10:57:32]NVStorageSaveData done [10:57:32]ExternCall_PrintAddStr [10:57:32]wPrintStart [10:57:32]Write to MH i2c: 01 00 00 D9 C8 A1 [10:57:32]Write i2c OK [10:57:32]MH_I2C_Read... [10:57:32]Read from MH i2c: 01 [10:57:32]MH_I2C_Read... [10:57:32]Read from MH i2c: 01 07 00 [10:57:32]MH_I2C_Read... [10:57:32]Read from MH i2c: 01 07 00 D9 C8 00 00 00 00 00 FF 0F B6 [10:57:32]RasterBufferAndPrint [10:57:32]line Счет N : (1)2884993 [10:57:32]line ИНН: 02508201610067 [10:57:32]line Контрольно-Кассовый Чек [10:57:32]line ПРОДАЖА [10:57:32]line ТРК (МРК, ГНК) : 71 [10:57:32]line Товар: 2711129700 [10:57:32]line ГАЗ-К-3 [10:57:32]line 12.860 * 38.90 [10:57:32]line = 500.25 [10:57:32]line НДС 12% НСП 1% [10:57:32]line > о реализуемом товаре [10:57:32]line ИТОГО: 500.25 [10:57:32]line НСП 1% : 4.43 [10:57:32]line НДС 12% : 53.12 [10:57:32]line Наличными: 0.00 [10:57:32]line Безнал.: 500.25 [10:57:32]line Место: АЗС № 85 "Партнер Нефть" [10:57:32]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:57:32]line СНО: Общий режим [10:57:32]line Чек 123 20.10.2024 10:57 [10:57:32]line Смена: 193 ФФД: 1.0 [10:57:32]line ЗНМ: 0300000167 [10:57:32]line РНМ: 0000000000156251 [10:57:32]line Версия ККМ: v1.0 [10:57:32]line Платежная система: Mbank [10:57:32]line ФМ: 0000000000963346 [10:57:32]line ФД: 69278 [10:57:32]line ФПД: 123591276766190 [10:57:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105741&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69278&fm=123591276766190&tin=02508201610067®Number=0000000000156251&sum=50025 [10:57:33]OFD Sender: Processing packet 69278 [packets to send 18, broken 17] [10:57:33]ProducePacketName [10:57:33]name=ofd_packets/00069278 [10:57:33]OFD Sender: To server: pG, [10:57:33]CommunicateWithHost lk.salyk.kg:30040 [10:57:33]ConnectInit lk.salyk.kg [10:57:33]written 0, free lines is 4095 [10:57:33]Connected sock=10 [10:57:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 C7 7F 06 01 0B 77 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 25 E2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9E 0E 01 00 35 04 06 00 70 67 D6 26 23 EE 04 B2 74 E1 78 E5 5B 5E [10:57:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 88 F7 47 00 76 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9E 0E 01 00 F4 03 04 00 CC 8B 14 67 B6 04 01 00 00 E7 A5 19 13 FB B0 23 52 [10:57:33]CommunicateWithHost err = 0 [10:57:33]CheckOFDResponse [10:57:33]1017 (14) - 77093643461234 [10:57:33]1041 (16) - 0000000000963346 [10:57:33]1040 (4) - 69278 [10:57:33]1012 (4) - 20.10.2024 04:49 [10:57:33]1206 (1) - 0 [10:57:33]OFD Sender: Remove packet 69278 [10:57:33]ProducePacketName [10:57:33]name=ofd_packets/00069278 [10:57:33]NVStorageDeleteData [10:57:33]Write to MH i2c: 01 00 00 02 C9 CB [10:57:33]Write i2c OK [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: 01 [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: 01 07 00 [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: 01 07 00 02 C9 00 00 00 00 00 20 0D FF [10:57:33]RasterBufferAndPrint [10:57:33]line [10:57:33]line [10:57:33]line [10:57:33]line [10:57:33]line [10:57:33]written 0, free lines is 3366 [10:57:33]MH_Cut [10:57:33]Write to MH i2c: D1 01 00 09 C9 01 A4 [10:57:33]Write i2c OK [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: D1 [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: D1 01 00 [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: D1 01 00 09 C9 00 A3 [10:57:33]Write to MH i2c: 01 00 00 0A C9 D3 [10:57:33]Write i2c OK [10:57:33]MH_I2C_Read... [10:57:34]OFD Sender: No OFD packet to send [10:57:34]*** Cut start [10:57:34]*** Partial cut [10:57:34]*** CUTSNS_PIN = 1 [10:57:34]*** CUTSNS_PIN = 0 [10:57:34]*** Brake cut motor [10:57:34]Read from MH i2c: 01 [10:57:34]MH_I2C_Read... [10:57:34]*** Stop cut motor [10:57:34]*** Cut end [10:57:34]Read from MH i2c: 01 07 00 [10:57:34]MH_I2C_Read... [10:57:34]Read from MH i2c: 01 07 00 0A C9 00 00 00 00 00 FF 0F E8 [10:57:34]process_action close_receipt done [10:57:34]requested_data is exist [10:57:34]produce_requested_data [10:57:34]requested_item fm.sn is exist - process it [10:57:34]wFMCommunicate request_size=4 [10:57:34]MH_SAM_APDU [10:57:34]CAPDU: 80 11 00 00 [10:57:34]Write to MH i2c: E2 08 00 0B C9 80 11 00 00 00 00 00 00 4E [10:57:34]Write i2c OK [10:57:34]MH_I2C_Read... [10:57:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:35]Read from MH i2c: E2 [10:57:35]MH_I2C_Read... [10:57:35]Read from MH i2c: E2 17 00 [10:57:35]MH_I2C_Read... [10:57:35]Read from MH i2c: E2 17 00 0B C9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A0 [10:57:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:57:35]wFMCommunicate OK [10:57:35]requested_item fd.num is exist - process it [10:57:35]SAM_PROTO_GetFieldsCounters [10:57:35]wFMCommunicate request_size=4 [10:57:35]MH_SAM_APDU [10:57:35]CAPDU: 80 13 00 00 [10:57:35]Write to MH i2c: E2 08 00 0C C9 80 13 00 00 00 00 00 00 51 [10:57:35]Write i2c OK [10:57:35]MH_I2C_Read... [10:57:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:57:35]Read from MH i2c: E2 [10:57:35]MH_I2C_Read... [10:57:35]Read from MH i2c: E2 62 00 [10:57:35]MH_I2C_Read... [10:57:35]Read from MH i2c: E2 62 00 0C C9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9E 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [10:57:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9E 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:57:35]wFMCommunicate OK [10:57:35]SAM_PROTO_GetFieldsCounters done [10:57:35]requested_item shift.num is exist - process it [10:57:35]requested_item shift.opened is exist - process it [10:57:35]req_shift_opened [10:57:35]FM_GetShiftState [10:57:35]SAM_PROTO_GetShiftState [10:57:35]wFMCommunicate request_size=4 [10:57:35]MH_SAM_APDU [10:57:35]CAPDU: 80 13 01 00 [10:57:35]Write to MH i2c: E2 08 00 0D C9 80 13 01 00 00 00 00 00 53 [10:57:35]Write i2c OK [10:57:35]MH_I2C_Read... [10:57:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:35]Read from MH i2c: E2 [10:57:35]MH_I2C_Read... [10:57:35]Read from MH i2c: E2 0E 00 [10:57:35]MH_I2C_Read... [10:57:35]Read from MH i2c: E2 0E 00 0D C9 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 59 [10:57:35]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:57:35]wFMCommunicate OK [10:57:35]SAM_PROTO_GetShiftState done [10:57:35]FM_GetShiftState done [10:57:35]req_shift_opened done [10:57:35]requested_item shift.open_date is exist - process it [10:57:35]req_shift_open_date [10:57:35]req_shift_open_date done [10:57:35]produce_requested_data done [10:57:35]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69278,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [10:57:35]process_action_free close_receipt [10:57:35]json_value_free [10:57:35]json_value_free done [10:57:35]process_json_proto returns [10:57:35]Send response to host [10:57:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69278,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [10:57:35]free response buf [10:57:35]execute_script done [10:57:35]execute_script returns [10:57:35]free content buf [10:57:35]Sock 9.Close socket [10:57:35]Sock 9.Thread stoped [10:57:39]OFD Sender: No OFD packet to send [10:57:44]OFD Sender: No OFD packet to send [10:57:49]OFD Sender: No OFD packet to send [10:57:54]OFD Sender: No OFD packet to send [10:57:59]OFD Sender: No OFD packet to send [10:58:04]OFD Sender: No OFD packet to send [10:58:09]OFD Sender: No OFD packet to send [10:58:14]OFD Sender: No OFD packet to send [10:58:19]OFD Sender: No OFD packet to send [10:58:24]OFD Sender: No OFD packet to send [10:58:29]OFD Sender: No OFD packet to send [10:58:34]OFD Sender: No OFD packet to send [10:58:39]OFD Sender: No OFD packet to send [10:58:44]OFD Sender: No OFD packet to send [10:58:49]OFD Sender: No OFD packet to send [10:58:54]OFD Sender: No OFD packet to send [10:58:59]OFD Sender: No OFD packet to send [10:59:04]OFD Sender: No OFD packet to send [10:59:09]OFD Sender: No OFD packet to send [10:59:11]accept exits with 8 [10:59:11]New connection [10:59:11]New thread 3067260260 created [10:59:11]Thread 3067116900 joined [10:59:11]Waiting for new connection... [10:59:11] Sock 8.Parse request [10:59:11]Sock 8.Check first char [10:59:11]Sock 8.First char is OK [10:59:11]request: POST /json_proto HTTP/1.0 [10:59:11]Method: POST [10:59:11]URL: /json_proto [10:59:11]Method is POST - this is cgi request [10:59:11]url: /json_proto [10:59:11]query_string will be loaded in cgi processing [10:59:11]execute_cgi json_proto POST (null) [10:59:11]execute_cgi path=json_proto method=POST [10:59:11]POST find Content-Length [10:59:11]Host: 172.17.50.3:8080 [10:59:11]Content-Length: 678 [10:59:11]Content-Type: application/json [10:59:11] [10:59:11]POST finish read [10:59:11]Found Content-Length = 678 [10:59:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:11]execute_script... [10:59: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)2884994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:11]POST & json_proto [10:59:11]process_json_proto [10:59:11]json parsed OK: [10:59:11]protocol is kg_v1.0 [10:59:11]action value=close_receipt [10:59:11]process_action close_receipt [10:59:11]cmd_close_receipt [10:59:11]MH_GetDate [10:59:11]Write to MH i2c: F0 00 00 0E C9 C6 [10:59:11]Write i2c OK [10:59:11]MH_I2C_Read... [10:59:11]Read from MH i2c: F0 [10:59:11]MH_I2C_Read... [10:59:11]Read from MH i2c: F0 09 00 [10:59:11]MH_I2C_Read... [10:59:11]Read from MH i2c: F0 09 00 0E C9 00 89 E2 14 67 6B 98 1E 66 3C [10:59:11]GetLastDocTimeStamp 1729421861 [10:59:11]current date 1729421961 [10:59:11]FM_GetShiftState [10:59:11]SAM_PROTO_GetShiftState [10:59:11]wFMCommunicate request_size=4 [10:59:11]MH_SAM_APDU [10:59:11]CAPDU: 80 13 01 00 [10:59:11]Write to MH i2c: E2 08 00 0F C9 80 13 01 00 00 00 00 00 55 [10:59:11]Write i2c OK [10:59:11]MH_I2C_Read... [10:59:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:11]Read from MH i2c: E2 [10:59:11]MH_I2C_Read... [10:59:11]Read from MH i2c: E2 0E 00 [10:59:11]MH_I2C_Read... [10:59:11]Read from MH i2c: E2 0E 00 0F C9 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 5B [10:59:11]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:59:11]wFMCommunicate OK [10:59:11]SAM_PROTO_GetShiftState done [10:59:11]FM_GetShiftState done [10:59:11]opened in 1729383220 [10:59:11]opened+sec_in_day 1729469620 [10:59:11]quantity*price = 50041 [10:59:11]sum+1 = 50042 [10:59:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 124 20.10.2024 10:59 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69279 ФПД: 125300980602058 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105921&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69279&fm=125300980602058&tin=02508201610067®Number=0000000000156251&sum=50000 [10:59:13]StoreToDocumentArchive [10:59:13]shift 193 fd 69279 [10:59:13]save to /storage/0193/doc_00069279 [10:59:13]save last doc name /storage/0193/doc_00069279 to /storage/kkm_last_doc_name [10:59:13]save OK [10:59:13]Clear old archive folders... [10:59:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:59:13]tlvbuf is 004EAFD0 [10:59:13]SAM_PROTO_ClearQueue [10:59:13]wFMCommunicate request_size=4 [10:59:13]MH_SAM_APDU [10:59:13]CAPDU: 80 09 00 00 [10:59:13]Write to MH i2c: E2 08 00 1C C9 80 09 00 00 00 00 00 00 57 [10:59:13]Write i2c OK [10:59:13]MH_I2C_Read... [10:59:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:13]Read from MH i2c: E2 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 03 00 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 03 00 1C C9 00 90 00 59 [10:59:13]RAPDU: 90 00 [10:59:13]wFMCommunicate OK [10:59:13]SAM_PROTO_ClearQueue done [10:59:13]KKMCreateOFDPacket [10:59:13]OFDProtocolAddRootSTLVToBuf [10:59:13]FM_MakeSignedData [10:59:13]FM_MakeSignedData [10:59:13]SAM_PROTO_SignData [10:59:13]wFMCommunicate request_size=4 [10:59:13]MH_SAM_APDU [10:59:13]CAPDU: 80 0D 01 02 [10:59:13]Write to MH i2c: E2 08 00 1D C9 80 0D 01 02 00 00 00 00 5F [10:59:13]Write i2c OK [10:59:13]MH_I2C_Read... [10:59:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:13]Read from MH i2c: E2 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 03 00 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 03 00 1D C9 00 90 00 5A [10:59:13]RAPDU: 90 00 [10:59:13]wFMCommunicate OK [10:59:13]wFMCommunicate request_size=255 [10:59:13]MH_SAM_APDU [10:59:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 89 E2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9F 0E 01 00 35 04 06 00 71 [10:59:13]Write to MH i2c: E2 02 01 1E C9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 89 E2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9F 0E 01 00 35 04 06 00 71 00 00 2A [10:59:13]Write i2c OK [10:59:13]MH_I2C_Read... [10:59:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:13]Read from MH i2c: E2 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 03 00 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 03 00 1E C9 00 90 00 5B [10:59:13]RAPDU: 90 00 [10:59:13]wFMCommunicate OK [10:59:13]wFMCommunicate request_size=10 [10:59:13]MH_SAM_APDU [10:59:13]CAPDU: 80 0D 02 02 05 F5 E8 70 54 CA [10:59:13]Write to MH i2c: E2 0D 00 1F C9 80 0D 02 02 05 00 F5 E8 70 54 CA 00 00 D7 [10:59:13]Write i2c OK [10:59:13]MH_I2C_Read... [10:59:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:13]Read from MH i2c: E2 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 03 00 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 03 00 1F C9 00 90 00 5C [10:59:13]RAPDU: 90 00 [10:59:13]wFMCommunicate OK [10:59:13]wFMCommunicate request_size=4 [10:59:13]MH_SAM_APDU [10:59:13]CAPDU: 80 0D 03 02 [10:59:13]Write to MH i2c: E2 08 00 20 C9 80 0D 03 02 00 00 00 00 64 [10:59:13]Write i2c OK [10:59:13]MH_I2C_Read... [10:59:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:13]Read from MH i2c: E2 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 0B 00 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 0B 00 20 C9 00 B1 67 86 40 13 59 E5 93 90 00 27 [10:59:13]RAPDU: B1 67 86 40 13 59 E5 93 90 00 [10:59:13]wFMCommunicate OK [10:59:13]SAM_PROTO_SignData done [10:59:13]FM_MakeSignedData done [10:59:13]CreateOFDProtocolMessage [10:59:13]wFMCommunicate request_size=4 [10:59:13]MH_SAM_APDU [10:59:13]CAPDU: 80 11 00 00 [10:59:13]Write to MH i2c: E2 08 00 21 C9 80 11 00 00 00 00 00 00 64 [10:59:13]Write i2c OK [10:59:13]MH_I2C_Read... [10:59:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:13]Read from MH i2c: E2 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 17 00 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 17 00 21 C9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B6 [10:59:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:59:13]wFMCommunicate OK [10:59:13]CreateOFDProtocolMessage done [10:59:13]OFDSenderStorePacket 69279 [10:59:13]StoreOFDPacket docnum=69279 [10:59:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 0C 73 07 01 3A 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 89 E2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9F 0E 01 00 35 04 06 00 71 F5 E8 70 54 CA B1 67 86 40 13 59 E5 93 [10:59:13]CheckFolder [10:59:13]dirname=/storage/ofd_packets [10:59:13]CheckFolder done [10:59:13]ProducePacketName [10:59:13]name=ofd_packets/00069279 [10:59:13]NVStorageSaveData ofd_packets/00069279 [10:59:13]File name is /storage/ofd_packets/00069279 [10:59:13]Write 301 bytes [10:59:13]NVStorageSaveData done [10:59:13]OFDSenderStorePacket done [10:59:13]KKMCreateOFDPacket done [10:59:13]NVStorageSaveData kkm_last_timestamp [10:59:13]File name is /storage/kkm_last_timestamp [10:59:13]Write 4 bytes [10:59:13]NVStorageSaveData done [10:59:13]ExternCall_PrintAddStr [10:59:13]wPrintStart [10:59:13]Write to MH i2c: 01 00 00 22 C9 EB [10:59:13]Write i2c OK [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: 01 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: 01 07 00 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: 01 07 00 22 C9 00 00 00 00 00 FF 0F 00 [10:59:13]RasterBufferAndPrint [10:59:13]line Счет N : (1)2884994 [10:59:13]line ИНН: 02508201610067 [10:59:13]line Контрольно-Кассовый Чек [10:59:13]line ПРОДАЖА [10:59:13]line ТРК (МРК, ГНК) : 42 [10:59:13]line Товар: 2710124130 [10:59:13]line Аи-92-К-5 [10:59:13]line 7.480 * 66.90 [10:59:13]line = 500.41 [10:59:13]line НДС 12% НСП 1% [10:59:13]line > о реализуемом товаре [10:59:13]line ОКРУГЛЕНИЕ: -0.41 [10:59:13]line ИТОГО: 500.00 [10:59:13]line Внесено: 500.00 [10:59:13]line СДАЧА: 0.00 [10:59:13]line НСП 1% : 4.43 [10:59:13]line НДС 12% : 53.14 [10:59:13]line Наличными: 500.00 [10:59:13]line Безнал.: 0.00 [10:59:13]line Место: АЗС № 85 "Партнер Нефть" [10:59:13]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [10:59:13]line СНО: Общий режим [10:59:13]line Чек 124 20.10.2024 10:59 [10:59:13]line Смена: 193 ФФД: 1.0 [10:59:13]line ЗНМ: 0300000167 [10:59:13]line РНМ: 0000000000156251 [10:59:13]line Версия ККМ: v1.0 [10:59:13]line ФМ: 0000000000963346 [10:59:13]line ФД: 69279 [10:59:13]line ФПД: 125300980602058 [10:59:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T105921&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69279&fm=125300980602058&tin=02508201610067®Number=0000000000156251&sum=50000 [10:59:13]OFD Sender: Processing packet 69279 [packets to send 18, broken 17] [10:59:13]ProducePacketName [10:59:13]name=ofd_packets/00069279 [10:59:13]OFD Sender: To server: pG, [10:59:13]CommunicateWithHost lk.salyk.kg:30040 [10:59:13]ConnectInit lk.salyk.kg [10:59:13]written 0, free lines is 4095 [10:59:14]Connected sock=11 [10:59:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 0C 73 07 01 3A 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 89 E2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9F 0E 01 00 35 04 06 00 71 F5 E8 70 54 CA B1 67 86 40 13 59 E5 93 [10:59:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 F7 B2 47 00 C3 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9F 0E 01 00 F4 03 04 00 30 8C 14 67 B6 04 01 00 00 D0 E7 67 42 D1 ED 9F 56 [10:59:14]CommunicateWithHost err = 0 [10:59:14]CheckOFDResponse [10:59:14]1017 (14) - 77093643461234 [10:59:14]1041 (16) - 0000000000963346 [10:59:14]1040 (4) - 69279 [10:59:14]1012 (4) - 20.10.2024 04:50 [10:59:14]1206 (1) - 0 [10:59:14]OFD Sender: Remove packet 69279 [10:59:14]ProducePacketName [10:59:14]name=ofd_packets/00069279 [10:59:14]NVStorageDeleteData [10:59:14]Write to MH i2c: 01 00 00 4D C9 16 [10:59:14]Write i2c OK [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: 01 [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: 01 07 00 [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: 01 07 00 4D C9 00 00 00 00 00 F4 0C 1D [10:59:14]RasterBufferAndPrint [10:59:14]line [10:59:14]line [10:59:14]line [10:59:14]line [10:59:14]line [10:59:14]written 0, free lines is 3322 [10:59:14]MH_Cut [10:59:14]Write to MH i2c: D1 01 00 54 C9 01 EF [10:59:14]Write i2c OK [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: D1 [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: D1 01 00 [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: D1 01 00 54 C9 00 EE [10:59:14]Write to MH i2c: 01 00 00 55 C9 1E [10:59:14]Write i2c OK [10:59:14]MH_I2C_Read... [10:59:14]OFD Sender: No OFD packet to send [10:59:15]*** Cut start [10:59:15]*** Partial cut [10:59:15]*** CUTSNS_PIN = 1 [10:59:15]*** CUTSNS_PIN = 0 [10:59:15]*** Brake cut motor [10:59:15]Read from MH i2c: 01 [10:59:15]MH_I2C_Read... [10:59:15]*** Stop cut motor [10:59:15]*** Cut end [10:59:15]Read from MH i2c: 01 07 00 [10:59:15]MH_I2C_Read... [10:59:15]Read from MH i2c: 01 07 00 55 C9 00 00 00 00 00 FF 0F 33 [10:59:15]process_action close_receipt done [10:59:15]requested_data is exist [10:59:15]produce_requested_data [10:59:15]requested_item fm.sn is exist - process it [10:59:15]wFMCommunicate request_size=4 [10:59:15]MH_SAM_APDU [10:59:15]CAPDU: 80 11 00 00 [10:59:15]Write to MH i2c: E2 08 00 56 C9 80 11 00 00 00 00 00 00 99 [10:59:15]Write i2c OK [10:59:15]MH_I2C_Read... [10:59:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:15]Read from MH i2c: E2 [10:59:15]MH_I2C_Read... [10:59:15]Read from MH i2c: E2 17 00 [10:59:15]MH_I2C_Read... [10:59:15]Read from MH i2c: E2 17 00 56 C9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EB [10:59:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [10:59:15]wFMCommunicate OK [10:59:15]requested_item fd.num is exist - process it [10:59:15]SAM_PROTO_GetFieldsCounters [10:59:15]wFMCommunicate request_size=4 [10:59:15]MH_SAM_APDU [10:59:15]CAPDU: 80 13 00 00 [10:59:15]Write to MH i2c: E2 08 00 57 C9 80 13 00 00 00 00 00 00 9C [10:59:15]Write i2c OK [10:59:15]MH_I2C_Read... [10:59:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:15]Read from MH i2c: E2 [10:59:15]MH_I2C_Read... [10:59:15]Read from MH i2c: E2 62 00 [10:59:15]MH_I2C_Read... [10:59:15]Read from MH i2c: E2 62 00 57 C9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9F 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [10:59:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9F 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:59:15]wFMCommunicate OK [10:59:15]SAM_PROTO_GetFieldsCounters done [10:59:15]requested_item shift.num is exist - process it [10:59:15]requested_item shift.opened is exist - process it [10:59:15]req_shift_opened [10:59:15]FM_GetShiftState [10:59:15]SAM_PROTO_GetShiftState [10:59:15]wFMCommunicate request_size=4 [10:59:15]MH_SAM_APDU [10:59:15]CAPDU: 80 13 01 00 [10:59:15]Write to MH i2c: E2 08 00 58 C9 80 13 01 00 00 00 00 00 9E [10:59:15]Write i2c OK [10:59:15]MH_I2C_Read... [10:59:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:16]Read from MH i2c: E2 [10:59:16]MH_I2C_Read... [10:59:16]Read from MH i2c: E2 0E 00 [10:59:16]MH_I2C_Read... [10:59:16]Read from MH i2c: E2 0E 00 58 C9 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 A4 [10:59:16]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [10:59:16]wFMCommunicate OK [10:59:16]SAM_PROTO_GetShiftState done [10:59:16]FM_GetShiftState done [10:59:16]req_shift_opened done [10:59:16]requested_item shift.open_date is exist - process it [10:59:16]req_shift_open_date [10:59:16]req_shift_open_date done [10:59:16]produce_requested_data done [10:59:16]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69279,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [10:59:16]process_action_free close_receipt [10:59:16]json_value_free [10:59:16]json_value_free done [10:59:16]process_json_proto returns [10:59:16]Send response to host [10:59:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69279,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [10:59:16]free response buf [10:59:16]execute_script done [10:59:16]execute_script returns [10:59:16]free content buf [10:59:16]Sock 8.Close socket [10:59:16]Sock 8.Thread stoped [10:59:19]OFD Sender: No OFD packet to send [10:59:24]OFD Sender: No OFD packet to send [10:59:29]OFD Sender: No OFD packet to send [10:59:34]OFD Sender: No OFD packet to send [10:59:39]OFD Sender: No OFD packet to send [10:59:44]OFD Sender: No OFD packet to send [10:59:49]OFD Sender: No OFD packet to send [10:59:54]OFD Sender: No OFD packet to send [10:59:59]OFD Sender: No OFD packet to send [11:00:04]OFD Sender: No OFD packet to send [11:00:09]OFD Sender: No OFD packet to send [11:00:14]OFD Sender: No OFD packet to send [11:00:19]OFD Sender: No OFD packet to send [11:00:24]OFD Sender: No OFD packet to send [11:00:29]OFD Sender: No OFD packet to send [11:00:34]OFD Sender: No OFD packet to send [11:00:39]OFD Sender: No OFD packet to send [11:00:44]OFD Sender: No OFD packet to send [11:00:49]OFD Sender: No OFD packet to send [11:00:54]OFD Sender: No OFD packet to send [11:00:59]OFD Sender: No OFD packet to send [11:01:04]OFD Sender: No OFD packet to send [11:01:09]OFD Sender: No OFD packet to send [11:01:14]OFD Sender: No OFD packet to send [11:01:19]OFD Sender: No OFD packet to send [11:01:24]OFD Sender: No OFD packet to send [11:01:29]OFD Sender: No OFD packet to send [11:01:34]OFD Sender: No OFD packet to send [11:01:39]OFD Sender: No OFD packet to send [11:01:44]OFD Sender: No OFD packet to send [11:01:49]OFD Sender: No OFD packet to send [11:01:54]OFD Sender: No OFD packet to send [11:01:59]OFD Sender: No OFD packet to send [11:02:04]OFD Sender: No OFD packet to send [11:02:09]OFD Sender: No OFD packet to send [11:02:14]OFD Sender: No OFD packet to send [11:02:19]OFD Sender: No OFD packet to send [11:02:24]OFD Sender: No OFD packet to send [11:02:29]OFD Sender: No OFD packet to send [11:02:34]OFD Sender: No OFD packet to send [11:02:39]accept exits with 9 [11:02:39]New connection [11:02:39]New thread 3067116900 created [11:02:39]Thread 3067260260 joined [11:02:39]Waiting for new connection... [11:02:39] Sock 9.Parse request [11:02:39]Sock 9.Check first char [11:02:39]Sock 9.First char is OK [11:02:39]request: POST /json_proto HTTP/1.0 [11:02:39]Method: POST [11:02:39]URL: /json_proto [11:02:39]Method is POST - this is cgi request [11:02:39]url: /json_proto [11:02:39]query_string will be loaded in cgi processing [11:02:39]execute_cgi json_proto POST (null) [11:02:39]execute_cgi path=json_proto method=POST [11:02:39]POST find Content-Length [11:02:39]Host: 172.17.50.3:8080 [11:02:39]Content-Length: 755 [11:02:39]Content-Type: application/json [11:02:39] [11:02:39]POST finish read [11:02:39]Found Content-Length = 755 [11:02:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30021879", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:39]execute_script... [11:02:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30021879", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:39]POST & json_proto [11:02:39]process_json_proto [11:02:39]json parsed OK: [11:02:39]protocol is kg_v1.0 [11:02:39]action value=close_receipt [11:02:39]process_action close_receipt [11:02:39]cmd_close_receipt [11:02:39]MH_GetDate [11:02:39]Write to MH i2c: F0 00 00 59 C9 11 [11:02:39]Write i2c OK [11:02:39]MH_I2C_Read... [11:02:39]Read from MH i2c: F0 [11:02:39]MH_I2C_Read... [11:02:39]Read from MH i2c: F0 09 00 [11:02:39]MH_I2C_Read... [11:02:39]Read from MH i2c: F0 09 00 59 C9 00 59 E3 14 67 6B 98 1E 66 58 [11:02:39]GetLastDocTimeStamp 1729421961 [11:02:39]current date 1729422169 [11:02:39]FM_GetShiftState [11:02:39]SAM_PROTO_GetShiftState [11:02:39]wFMCommunicate request_size=4 [11:02:39]MH_SAM_APDU [11:02:39]CAPDU: 80 13 01 00 [11:02:39]Write to MH i2c: E2 08 00 5A C9 80 13 01 00 00 00 00 00 A0 [11:02:39]Write i2c OK [11:02:39]MH_I2C_Read... [11:02:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:39]Read from MH i2c: E2 [11:02:39]MH_I2C_Read... [11:02:39]Read from MH i2c: E2 0E 00 [11:02:39]MH_I2C_Read... [11:02:39]Read from MH i2c: E2 0E 00 5A C9 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 A6 [11:02:39]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:02:39]wFMCommunicate OK [11:02:39]SAM_PROTO_GetShiftState done [11:02:39]FM_GetShiftState done [11:02:39]opened in 1729383220 [11:02:39]opened+sec_in_day 1729469620 [11:02:39]quantity*price = 0 [11:02:39]sum+1 = 1 [11:02:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 125 20.10.2024 11:02 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30021879 ФМ: 0000000000963346 ФД: 69280 ФПД: 79813733777731 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T110249&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69280&fm=79813733777731&tin=02508201610067®Number=0000000000156251&sum=0 [11:02:40]StoreToDocumentArchive [11:02:40]shift 193 fd 69280 [11:02:40]save to /storage/0193/doc_00069280 [11:02:40]save last doc name /storage/0193/doc_00069280 to /storage/kkm_last_doc_name [11:02:40]save OK [11:02:40]Clear old archive folders... [11:02:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:02:40]tlvbuf is 007E3A90 [11:02:40]SAM_PROTO_ClearQueue [11:02:40]wFMCommunicate request_size=4 [11:02:40]MH_SAM_APDU [11:02:40]CAPDU: 80 09 00 00 [11:02:40]Write to MH i2c: E2 08 00 67 C9 80 09 00 00 00 00 00 00 A2 [11:02:40]Write i2c OK [11:02:40]MH_I2C_Read... [11:02:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:40]Read from MH i2c: E2 [11:02:40]MH_I2C_Read... [11:02:40]Read from MH i2c: E2 03 00 [11:02:40]MH_I2C_Read... [11:02:40]Read from MH i2c: E2 03 00 67 C9 00 90 00 A4 [11:02:40]RAPDU: 90 00 [11:02:40]wFMCommunicate OK [11:02:40]SAM_PROTO_ClearQueue done [11:02:40]KKMCreateOFDPacket [11:02:40]OFDProtocolAddRootSTLVToBuf [11:02:40]FM_MakeSignedData [11:02:40]FM_MakeSignedData [11:02:40]SAM_PROTO_SignData [11:02:40]wFMCommunicate request_size=4 [11:02:40]MH_SAM_APDU [11:02:40]CAPDU: 80 0D 01 02 [11:02:40]Write to MH i2c: E2 08 00 68 C9 80 0D 01 02 00 00 00 00 AA [11:02:40]Write i2c OK [11:02:40]MH_I2C_Read... [11:02:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:40]Read from MH i2c: E2 [11:02:40]MH_I2C_Read... [11:02:40]Read from MH i2c: E2 03 00 [11:02:40]MH_I2C_Read... [11:02:40]Read from MH i2c: E2 03 00 68 C9 00 90 00 A5 [11:02:40]RAPDU: 90 00 [11:02:40]wFMCommunicate OK [11:02:40]wFMCommunicate request_size=255 [11:02:40]MH_SAM_APDU [11:02:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7D 00 00 00 F4 03 04 00 59 E3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A0 0E 01 00 35 04 06 00 48 [11:02:40]Write to MH i2c: E2 02 01 69 C9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 59 E3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A0 0E 01 00 35 04 06 00 48 00 00 08 [11:02:40]Write i2c OK [11:02:40]MH_I2C_Read... [11:02:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:40]Read from MH i2c: E2 [11:02:40]MH_I2C_Read... [11:02:40]Read from MH i2c: E2 03 00 [11:02:40]MH_I2C_Read... [11:02:40]Read from MH i2c: E2 03 00 69 C9 00 90 00 A6 [11:02:40]RAPDU: 90 00 [11:02:40]wFMCommunicate OK [11:02:40]wFMCommunicate request_size=10 [11:02:40]MH_SAM_APDU [11:02:40]CAPDU: 80 0D 02 02 05 97 15 40 01 43 [11:02:40]Write to MH i2c: E2 0D 00 6A C9 80 0D 02 02 05 00 97 15 40 01 43 00 00 E7 [11:02:40]Write i2c OK [11:02:40]MH_I2C_Read... [11:02:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:40]Read from MH i2c: E2 [11:02:40]MH_I2C_Read... [11:02:40]Read from MH i2c: E2 03 00 [11:02:40]MH_I2C_Read... [11:02:40]Read from MH i2c: E2 03 00 6A C9 00 90 00 A7 [11:02:40]RAPDU: 90 00 [11:02:40]wFMCommunicate OK [11:02:40]wFMCommunicate request_size=4 [11:02:40]MH_SAM_APDU [11:02:40]CAPDU: 80 0D 03 02 [11:02:40]Write to MH i2c: E2 08 00 6B C9 80 0D 03 02 00 00 00 00 AF [11:02:40]Write i2c OK [11:02:40]MH_I2C_Read... [11:02:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:41]Read from MH i2c: E2 [11:02:41]MH_I2C_Read... [11:02:41]Read from MH i2c: E2 0B 00 [11:02:41]MH_I2C_Read... [11:02:41]Read from MH i2c: E2 0B 00 6B C9 00 02 7F D2 5A 15 16 1A 60 90 00 02 [11:02:41]RAPDU: 02 7F D2 5A 15 16 1A 60 90 00 [11:02:41]wFMCommunicate OK [11:02:41]SAM_PROTO_SignData done [11:02:41]FM_MakeSignedData done [11:02:41]CreateOFDProtocolMessage [11:02:41]wFMCommunicate request_size=4 [11:02:41]MH_SAM_APDU [11:02:41]CAPDU: 80 11 00 00 [11:02:41]Write to MH i2c: E2 08 00 6C C9 80 11 00 00 00 00 00 00 AF [11:02:41]Write i2c OK [11:02:41]MH_I2C_Read... [11:02:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:41]Read from MH i2c: E2 [11:02:41]MH_I2C_Read... [11:02:41]Read from MH i2c: E2 17 00 [11:02:41]MH_I2C_Read... [11:02:41]Read from MH i2c: E2 17 00 6C C9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 01 [11:02:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:02:41]wFMCommunicate OK [11:02:41]CreateOFDProtocolMessage done [11:02:41]OFDSenderStorePacket 69280 [11:02:41]StoreOFDPacket docnum=69280 [11:02:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 0E 3A 07 01 6E 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 59 E3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A0 0E 01 00 35 04 06 00 48 97 15 40 01 43 02 7F D2 5A 15 16 1A 60 [11:02:41]CheckFolder [11:02:41]dirname=/storage/ofd_packets [11:02:41]CheckFolder done [11:02:41]ProducePacketName [11:02:41]name=ofd_packets/00069280 [11:02:41]NVStorageSaveData ofd_packets/00069280 [11:02:41]File name is /storage/ofd_packets/00069280 [11:02:41]Write 301 bytes [11:02:41]NVStorageSaveData done [11:02:41]OFDSenderStorePacket done [11:02:41]KKMCreateOFDPacket done [11:02:41]NVStorageSaveData kkm_last_timestamp [11:02:41]File name is /storage/kkm_last_timestamp [11:02:41]Write 4 bytes [11:02:41]NVStorageSaveData done [11:02:41]ExternCall_PrintAddStr [11:02:41]wPrintStart [11:02:41]Write to MH i2c: 01 00 00 6D C9 36 [11:02:41]Write i2c OK [11:02:41]MH_I2C_Read... [11:02:41]Read from MH i2c: 01 [11:02:41]MH_I2C_Read... [11:02:41]Read from MH i2c: 01 07 00 [11:02:41]MH_I2C_Read... [11:02:41]Read from MH i2c: 01 07 00 6D C9 00 00 00 00 00 FF 0F 4B [11:02:41]RasterBufferAndPrint [11:02:41]line Счет N : (1)2884995 [11:02:41]line ИНН: 02508201610067 [11:02:41]line Контрольно-Кассовый Чек [11:02:41]line ПРОДАЖА [11:02:41]line ТРК (МРК, ГНК) : 12 [11:02:41]line Товар: 2710124130 [11:02:41]line Аи-92-К-5 [11:02:41]line 20.000 * 0.00 [11:02:41]line = 0.00 [11:02:41]line НДС 12% НСП 1% [11:02:41]line > о реализуемом товаре [11:02:41]line ИТОГО: 0.00 [11:02:41]line НСП 1% : 0.00 [11:02:41]line НДС 12% : 0.00 [11:02:41]line Наличными: 0.00 [11:02:41]line Безнал.: 0.00 [11:02:41]line Место: АЗС № 85 "Партнер Нефть" [11:02:41]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:02:41]line СНО: Общий режим [11:02:41]line Чек 125 20.10.2024 11:02 [11:02:41]line Смена: 193 ФФД: 1.0 [11:02:41]line ЗНМ: 0300000167 [11:02:41]line РНМ: 0000000000156251 [11:02:41]line Версия ККМ: v1.0 [11:02:41]line Талоны: ТК ГПНА Online [11:02:41]line 30021879 [11:02:41]line ФМ: 0000000000963346 [11:02:41]line ФД: 69280 [11:02:41]line ФПД: 79813733777731 [11:02:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T110249&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69280&fm=79813733777731&tin=02508201610067®Number=0000000000156251&sum=0 [11:02:41]OFD Sender: Processing packet 69280 [packets to send 18, broken 17] [11:02:41]ProducePacketName [11:02:41]name=ofd_packets/00069280 [11:02:41]OFD Sender: To server: pG, [11:02:41]CommunicateWithHost lk.salyk.kg:30040 [11:02:41]ConnectInit lk.salyk.kg [11:02:41]written 0, free lines is 4095 [11:02:41]Connected sock=10 [11:02:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 0E 3A 07 01 6E 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 59 E3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A0 0E 01 00 35 04 06 00 48 97 15 40 01 43 02 7F D2 5A 15 16 1A 60 [11:02:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 85 C0 47 00 70 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A0 0E 01 00 F4 03 04 00 00 8D 14 67 B6 04 01 00 00 8E 37 0C A8 CF 41 B3 2E [11:02:41]CommunicateWithHost err = 0 [11:02:41]CheckOFDResponse [11:02:41]1017 (14) - 77093643461234 [11:02:41]1041 (16) - 0000000000963346 [11:02:41]1040 (4) - 69280 [11:02:41]1012 (4) - 20.10.2024 04:54 [11:02:41]1206 (1) - 0 [11:02:41]OFD Sender: Remove packet 69280 [11:02:41]ProducePacketName [11:02:41]name=ofd_packets/00069280 [11:02:41]NVStorageDeleteData [11:02:41]Write to MH i2c: 01 00 00 97 C9 60 [11:02:41]Write i2c OK [11:02:41]MH_I2C_Read... [11:02:41]Read from MH i2c: 01 [11:02:41]MH_I2C_Read... [11:02:41]Read from MH i2c: 01 07 00 [11:02:41]MH_I2C_Read... [11:02:41]Read from MH i2c: 01 07 00 97 C9 00 00 00 00 00 0B 0D 7F [11:02:41]RasterBufferAndPrint [11:02:41]line [11:02:41]line [11:02:41]line [11:02:41]line [11:02:41]line [11:02:41]written 0, free lines is 3345 [11:02:41]MH_Cut [11:02:41]Write to MH i2c: D1 01 00 9E C9 01 39 [11:02:41]Write i2c OK [11:02:41]MH_I2C_Read... [11:02:41]Read from MH i2c: D1 [11:02:41]MH_I2C_Read... [11:02:41]Read from MH i2c: D1 01 00 [11:02:41]MH_I2C_Read... [11:02:41]Read from MH i2c: D1 01 00 9E C9 00 38 [11:02:41]Write to MH i2c: 01 00 00 9F C9 68 [11:02:41]Write i2c OK [11:02:41]MH_I2C_Read... [11:02:42]OFD Sender: No OFD packet to send [11:02:42]*** Cut start [11:02:42]*** Partial cut [11:02:42]*** CUTSNS_PIN = 1 [11:02:42]*** CUTSNS_PIN = 0 [11:02:42]*** Brake cut motor [11:02:43]Read from MH i2c: 01 [11:02:43]MH_I2C_Read... [11:02:43]*** Stop cut motor [11:02:43]*** Cut end [11:02:43]Read from MH i2c: 01 07 00 [11:02:43]MH_I2C_Read... [11:02:43]Read from MH i2c: 01 07 00 9F C9 00 00 00 00 00 FF 0F 7D [11:02:43]process_action close_receipt done [11:02:43]requested_data is exist [11:02:43]produce_requested_data [11:02:43]requested_item fm.sn is exist - process it [11:02:43]wFMCommunicate request_size=4 [11:02:43]MH_SAM_APDU [11:02:43]CAPDU: 80 11 00 00 [11:02:43]Write to MH i2c: E2 08 00 A0 C9 80 11 00 00 00 00 00 00 E3 [11:02:43]Write i2c OK [11:02:43]MH_I2C_Read... [11:02:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:43]Read from MH i2c: E2 [11:02:43]MH_I2C_Read... [11:02:43]Read from MH i2c: E2 17 00 [11:02:43]MH_I2C_Read... [11:02:43]Read from MH i2c: E2 17 00 A0 C9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 35 [11:02:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:02:43]wFMCommunicate OK [11:02:43]requested_item fd.num is exist - process it [11:02:43]SAM_PROTO_GetFieldsCounters [11:02:43]wFMCommunicate request_size=4 [11:02:43]MH_SAM_APDU [11:02:43]CAPDU: 80 13 00 00 [11:02:43]Write to MH i2c: E2 08 00 A1 C9 80 13 00 00 00 00 00 00 E6 [11:02:43]Write i2c OK [11:02:43]MH_I2C_Read... [11:02:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:43]Read from MH i2c: E2 [11:02:43]MH_I2C_Read... [11:02:43]Read from MH i2c: E2 62 00 [11:02:43]MH_I2C_Read... [11:02:43]Read from MH i2c: E2 62 00 A1 C9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A0 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [11:02:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A0 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:02:43]wFMCommunicate OK [11:02:43]SAM_PROTO_GetFieldsCounters done [11:02:43]requested_item shift.num is exist - process it [11:02:43]requested_item shift.opened is exist - process it [11:02:43]req_shift_opened [11:02:43]FM_GetShiftState [11:02:43]SAM_PROTO_GetShiftState [11:02:43]wFMCommunicate request_size=4 [11:02:43]MH_SAM_APDU [11:02:43]CAPDU: 80 13 01 00 [11:02:43]Write to MH i2c: E2 08 00 A2 C9 80 13 01 00 00 00 00 00 E8 [11:02:43]Write i2c OK [11:02:43]MH_I2C_Read... [11:02:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:43]Read from MH i2c: E2 [11:02:43]MH_I2C_Read... [11:02:43]Read from MH i2c: E2 0E 00 [11:02:43]MH_I2C_Read... [11:02:43]Read from MH i2c: E2 0E 00 A2 C9 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 EE [11:02:43]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:02:43]wFMCommunicate OK [11:02:43]SAM_PROTO_GetShiftState done [11:02:43]FM_GetShiftState done [11:02:43]req_shift_opened done [11:02:43]requested_item shift.open_date is exist - process it [11:02:43]req_shift_open_date [11:02:43]req_shift_open_date done [11:02:43]produce_requested_data done [11:02:43]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69280,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [11:02:43]process_action_free close_receipt [11:02:43]json_value_free [11:02:43]json_value_free done [11:02:43]process_json_proto returns [11:02:43]Send response to host [11:02:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69280,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [11:02:43]free response buf [11:02:43]execute_script done [11:02:43]execute_script returns [11:02:43]free content buf [11:02:43]Sock 9.Close socket [11:02:43]Sock 9.Thread stoped [11:02:43]accept exits with 8 [11:02:43]New connection [11:02:43]New thread 3067260260 created [11:02:43]Thread 3067116900 joined [11:02:43]Waiting for new connection... [11:02:43] Sock 8.Parse request [11:02:43]Sock 8.Check first char [11:02:43]Sock 8.First char is OK [11:02:43]request: POST /json_proto HTTP/1.0 [11:02:43]Method: POST [11:02:43]URL: /json_proto [11:02:43]Method is POST - this is cgi request [11:02:43]url: /json_proto [11:02:43]query_string will be loaded in cgi processing [11:02:43]execute_cgi json_proto POST (null) [11:02:43]execute_cgi path=json_proto method=POST [11:02:43]POST find Content-Length [11:02:43]Host: 172.17.50.3:8080 [11:02:43]Content-Length: 680 [11:02:43]Content-Type: application/json [11:02:43] [11:02:43]POST finish read [11:02:43]Found Content-Length = 680 [11:02:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:43]execute_script... [11:02: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)2884996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:43]POST & json_proto [11:02:43]process_json_proto [11:02:43]json parsed OK: [11:02:43]protocol is kg_v1.0 [11:02:43]action value=close_receipt [11:02:43]process_action close_receipt [11:02:43]cmd_close_receipt [11:02:43]MH_GetDate [11:02:43]Write to MH i2c: F0 00 00 A3 C9 5B [11:02:43]Write i2c OK [11:02:43]MH_I2C_Read... [11:02:43]Read from MH i2c: F0 [11:02:43]MH_I2C_Read... [11:02:43]Read from MH i2c: F0 09 00 [11:02:43]MH_I2C_Read... [11:02:43]Read from MH i2c: F0 09 00 A3 C9 00 5D E3 14 67 6B 98 1E 66 A6 [11:02:43]GetLastDocTimeStamp 1729422169 [11:02:43]current date 1729422173 [11:02:43]FM_GetShiftState [11:02:43]SAM_PROTO_GetShiftState [11:02:43]wFMCommunicate request_size=4 [11:02:43]MH_SAM_APDU [11:02:43]CAPDU: 80 13 01 00 [11:02:43]Write to MH i2c: E2 08 00 A4 C9 80 13 01 00 00 00 00 00 EA [11:02:43]Write i2c OK [11:02:43]MH_I2C_Read... [11:02:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:43]Read from MH i2c: E2 [11:02:43]MH_I2C_Read... [11:02:43]Read from MH i2c: E2 0E 00 [11:02:43]MH_I2C_Read... [11:02:43]Read from MH i2c: E2 0E 00 A4 C9 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 F0 [11:02:43]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:02:43]wFMCommunicate OK [11:02:43]SAM_PROTO_GetShiftState done [11:02:43]FM_GetShiftState done [11:02:43]opened in 1729383220 [11:02:43]opened+sec_in_day 1729469620 [11:02:43]quantity*price = 100050 [11:02:43]sum+1 = 100052 [11:02:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 126 20.10.2024 11:02 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69281 ФПД: 278007052994129 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T110253&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69281&fm=278007052994129&tin=02508201610067®Number=0000000000156251&sum=100000 [11:02:45]StoreToDocumentArchive [11:02:45]shift 193 fd 69281 [11:02:45]save to /storage/0193/doc_00069281 [11:02:45]save last doc name /storage/0193/doc_00069281 to /storage/kkm_last_doc_name [11:02:45]save OK [11:02:45]Clear old archive folders... [11:02:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:02:45]tlvbuf is 007E3E20 [11:02:45]SAM_PROTO_ClearQueue [11:02:45]wFMCommunicate request_size=4 [11:02:45]MH_SAM_APDU [11:02:45]CAPDU: 80 09 00 00 [11:02:45]Write to MH i2c: E2 08 00 B1 C9 80 09 00 00 00 00 00 00 EC [11:02:45]Write i2c OK [11:02:45]MH_I2C_Read... [11:02:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:45]Read from MH i2c: E2 [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: E2 03 00 [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: E2 03 00 B1 C9 00 90 00 EE [11:02:45]RAPDU: 90 00 [11:02:45]wFMCommunicate OK [11:02:45]SAM_PROTO_ClearQueue done [11:02:45]KKMCreateOFDPacket [11:02:45]OFDProtocolAddRootSTLVToBuf [11:02:45]FM_MakeSignedData [11:02:45]FM_MakeSignedData [11:02:45]SAM_PROTO_SignData [11:02:45]wFMCommunicate request_size=4 [11:02:45]MH_SAM_APDU [11:02:45]CAPDU: 80 0D 01 02 [11:02:45]Write to MH i2c: E2 08 00 B2 C9 80 0D 01 02 00 00 00 00 F4 [11:02:45]Write i2c OK [11:02:45]MH_I2C_Read... [11:02:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:45]Read from MH i2c: E2 [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: E2 03 00 [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: E2 03 00 B2 C9 00 90 00 EF [11:02:45]RAPDU: 90 00 [11:02:45]wFMCommunicate OK [11:02:45]wFMCommunicate request_size=255 [11:02:45]MH_SAM_APDU [11:02: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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 5D E3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A1 0E 01 00 35 04 06 00 FC D8 8F A3 [11:02:45]Write to MH i2c: E2 02 01 B3 C9 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 5D E3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A1 0E 01 00 35 04 06 00 FC D8 8F A3 00 00 23 [11:02:45]Write i2c OK [11:02:45]MH_I2C_Read... [11:02:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:45]Read from MH i2c: E2 [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: E2 03 00 [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: E2 03 00 B3 C9 00 90 00 F0 [11:02:45]RAPDU: 90 00 [11:02:45]wFMCommunicate OK [11:02:45]wFMCommunicate request_size=7 [11:02:45]MH_SAM_APDU [11:02:45]CAPDU: 80 0D 02 02 02 86 51 [11:02:45]Write to MH i2c: E2 0A 00 B4 C9 80 0D 02 02 02 00 86 51 00 00 D2 [11:02:45]Write i2c OK [11:02:45]MH_I2C_Read... [11:02:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:45]Read from MH i2c: E2 [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: E2 03 00 [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: E2 03 00 B4 C9 00 90 00 F1 [11:02:45]RAPDU: 90 00 [11:02:45]wFMCommunicate OK [11:02:45]wFMCommunicate request_size=4 [11:02:45]MH_SAM_APDU [11:02:45]CAPDU: 80 0D 03 02 [11:02:45]Write to MH i2c: E2 08 00 B5 C9 80 0D 03 02 00 00 00 00 F9 [11:02:45]Write i2c OK [11:02:45]MH_I2C_Read... [11:02:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:45]Read from MH i2c: E2 [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: E2 0B 00 [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: E2 0B 00 B5 C9 00 D5 D4 07 60 E4 D8 4B F7 90 00 08 [11:02:45]RAPDU: D5 D4 07 60 E4 D8 4B F7 90 00 [11:02:45]wFMCommunicate OK [11:02:45]SAM_PROTO_SignData done [11:02:45]FM_MakeSignedData done [11:02:45]CreateOFDProtocolMessage [11:02:45]wFMCommunicate request_size=4 [11:02:45]MH_SAM_APDU [11:02:45]CAPDU: 80 11 00 00 [11:02:45]Write to MH i2c: E2 08 00 B6 C9 80 11 00 00 00 00 00 00 F9 [11:02:45]Write i2c OK [11:02:45]MH_I2C_Read... [11:02:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:45]Read from MH i2c: E2 [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: E2 17 00 [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: E2 17 00 B6 C9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4B [11:02:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:02:45]wFMCommunicate OK [11:02:45]CreateOFDProtocolMessage done [11:02:45]OFDSenderStorePacket 69281 [11:02:45]StoreOFDPacket docnum=69281 [11:02:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 89 2D 04 01 58 8C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 5D E3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A1 0E 01 00 35 04 06 00 FC D8 8F A3 86 51 D5 D4 07 60 E4 D8 4B F7 [11:02:45]CheckFolder [11:02:45]dirname=/storage/ofd_packets [11:02:45]CheckFolder done [11:02:45]ProducePacketName [11:02:45]name=ofd_packets/00069281 [11:02:45]NVStorageSaveData ofd_packets/00069281 [11:02:45]File name is /storage/ofd_packets/00069281 [11:02:45]Write 298 bytes [11:02:45]NVStorageSaveData done [11:02:45]OFDSenderStorePacket done [11:02:45]KKMCreateOFDPacket done [11:02:45]NVStorageSaveData kkm_last_timestamp [11:02:45]File name is /storage/kkm_last_timestamp [11:02:45]Write 4 bytes [11:02:45]NVStorageSaveData done [11:02:45]ExternCall_PrintAddStr [11:02:45]wPrintStart [11:02:45]Write to MH i2c: 01 00 00 B7 C9 80 [11:02:45]Write i2c OK [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: 01 [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: 01 07 00 [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: 01 07 00 B7 C9 00 00 00 00 00 FF 0F 95 [11:02:45]RasterBufferAndPrint [11:02:45]line Счет N : (1)2884996 [11:02:45]line ИНН: 02508201610067 [11:02:45]line Контрольно-Кассовый Чек [11:02:45]line ПРОДАЖА [11:02:45]line ТРК (МРК, ГНК) : 51 [11:02:45]line Товар: 2710194210 [11:02:45]line ДТ-К-5 [11:02:45]line 13.130 * 76.20 [11:02:45]line = 1000.51 [11:02:45]line НДС 12% НСП 1% [11:02:45]line > о реализуемом товаре [11:02:45]line ОКРУГЛЕНИЕ: -0.51 [11:02:45]line ИТОГО: 1000.00 [11:02:45]line Внесено: 1000.00 [11:02:45]line СДАЧА: 0.00 [11:02:45]line НСП 1% : 8.85 [11:02:45]line НДС 12% : 106.25 [11:02:45]line Наличными: 1000.00 [11:02:45]line Безнал.: 0.00 [11:02:46]line Место: АЗС № 85 "Партнер Нефть" [11:02:46]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:02:46]line СНО: Общий режим [11:02:46]line Чек 126 20.10.2024 11:02 [11:02:46]line Смена: 193 ФФД: 1.0 [11:02:46]line ЗНМ: 0300000167 [11:02:46]line РНМ: 0000000000156251 [11:02:46]line Версия ККМ: v1.0 [11:02:46]line ФМ: 0000000000963346 [11:02:46]line ФД: 69281 [11:02:46]line ФПД: 278007052994129 [11:02:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T110253&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69281&fm=278007052994129&tin=02508201610067®Number=0000000000156251&sum=100000 [11:02:46]OFD Sender: Processing packet 69281 [packets to send 18, broken 17] [11:02:46]ProducePacketName [11:02:46]name=ofd_packets/00069281 [11:02:46]OFD Sender: To server: pG, [11:02:46]CommunicateWithHost lk.salyk.kg:30040 [11:02:46]ConnectInit lk.salyk.kg [11:02:46]written 0, free lines is 4095 [11:02:46]Connected sock=10 [11:02:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 89 2D 04 01 58 8C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 5D E3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A1 0E 01 00 35 04 06 00 FC D8 8F A3 86 51 D5 D4 07 60 E4 D8 4B F7 [11:02:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 B3 C3 47 00 D4 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A1 0E 01 00 F4 03 04 00 05 8D 14 67 B6 04 01 00 00 BB B2 B2 B2 99 A8 6A 2E [11:02:46]CommunicateWithHost err = 0 [11:02:46]CheckOFDResponse [11:02:46]1017 (14) - 77093643461234 [11:02:46]1041 (16) - 0000000000963346 [11:02:46]1040 (4) - 69281 [11:02:46]1012 (4) - 20.10.2024 04:54 [11:02:46]1206 (1) - 0 [11:02:46]OFD Sender: Remove packet 69281 [11:02:46]ProducePacketName [11:02:46]name=ofd_packets/00069281 [11:02:46]NVStorageDeleteData [11:02:46]Write to MH i2c: 01 00 00 E2 C9 AB [11:02:46]Write i2c OK [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: 01 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: 01 07 00 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: 01 07 00 E2 C9 00 00 00 00 00 FC 0C BA [11:02:46]RasterBufferAndPrint [11:02:46]line [11:02:46]line [11:02:46]line [11:02:46]line [11:02:46]line [11:02:46]written 0, free lines is 3339 [11:02:46]MH_Cut [11:02:46]Write to MH i2c: D1 01 00 E9 C9 01 84 [11:02:46]Write i2c OK [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: D1 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: D1 01 00 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: D1 01 00 E9 C9 00 83 [11:02:46]Write to MH i2c: 01 00 00 EA C9 B3 [11:02:46]Write i2c OK [11:02:46]MH_I2C_Read... [11:02:47]OFD Sender: No OFD packet to send [11:02:47]*** Cut start [11:02:47]*** Partial cut [11:02:47]*** CUTSNS_PIN = 1 [11:02:47]*** CUTSNS_PIN = 0 [11:02:47]*** Brake cut motor [11:02:48]Read from MH i2c: 01 [11:02:48]MH_I2C_Read... [11:02:48]*** Stop cut motor [11:02:48]*** Cut end [11:02:48]Read from MH i2c: 01 07 00 [11:02:48]MH_I2C_Read... [11:02:48]Read from MH i2c: 01 07 00 EA C9 00 00 00 00 00 FF 0F C8 [11:02:48]process_action close_receipt done [11:02:48]requested_data is exist [11:02:48]produce_requested_data [11:02:48]requested_item fm.sn is exist - process it [11:02:48]wFMCommunicate request_size=4 [11:02:48]MH_SAM_APDU [11:02:48]CAPDU: 80 11 00 00 [11:02:48]Write to MH i2c: E2 08 00 EB C9 80 11 00 00 00 00 00 00 2E [11:02:48]Write i2c OK [11:02:48]MH_I2C_Read... [11:02:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:48]Read from MH i2c: E2 [11:02:48]MH_I2C_Read... [11:02:48]Read from MH i2c: E2 17 00 [11:02:48]MH_I2C_Read... [11:02:48]Read from MH i2c: E2 17 00 EB C9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 80 [11:02:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:02:48]wFMCommunicate OK [11:02:48]requested_item fd.num is exist - process it [11:02:48]SAM_PROTO_GetFieldsCounters [11:02:48]wFMCommunicate request_size=4 [11:02:48]MH_SAM_APDU [11:02:48]CAPDU: 80 13 00 00 [11:02:48]Write to MH i2c: E2 08 00 EC C9 80 13 00 00 00 00 00 00 31 [11:02:48]Write i2c OK [11:02:48]MH_I2C_Read... [11:02:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:48]Read from MH i2c: E2 [11:02:48]MH_I2C_Read... [11:02:48]Read from MH i2c: E2 62 00 [11:02:48]MH_I2C_Read... [11:02:48]Read from MH i2c: E2 62 00 EC C9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A1 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [11:02:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A1 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:02:48]wFMCommunicate OK [11:02:48]SAM_PROTO_GetFieldsCounters done [11:02:48]requested_item shift.num is exist - process it [11:02:48]requested_item shift.opened is exist - process it [11:02:48]req_shift_opened [11:02:48]FM_GetShiftState [11:02:48]SAM_PROTO_GetShiftState [11:02:48]wFMCommunicate request_size=4 [11:02:48]MH_SAM_APDU [11:02:48]CAPDU: 80 13 01 00 [11:02:48]Write to MH i2c: E2 08 00 ED C9 80 13 01 00 00 00 00 00 33 [11:02:48]Write i2c OK [11:02:48]MH_I2C_Read... [11:02:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:48]Read from MH i2c: E2 [11:02:48]MH_I2C_Read... [11:02:48]Read from MH i2c: E2 0E 00 [11:02:48]MH_I2C_Read... [11:02:48]Read from MH i2c: E2 0E 00 ED C9 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 39 [11:02:48]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:02:48]wFMCommunicate OK [11:02:48]SAM_PROTO_GetShiftState done [11:02:48]FM_GetShiftState done [11:02:48]req_shift_opened done [11:02:48]requested_item shift.open_date is exist - process it [11:02:48]req_shift_open_date [11:02:48]req_shift_open_date done [11:02:48]produce_requested_data done [11:02:48]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69281,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [11:02:48]process_action_free close_receipt [11:02:48]json_value_free [11:02:48]json_value_free done [11:02:48]process_json_proto returns [11:02:48]Send response to host [11:02:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69281,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [11:02:48]free response buf [11:02:48]execute_script done [11:02:48]execute_script returns [11:02:48]free content buf [11:02:48]Sock 8.Close socket [11:02:48]Sock 8.Thread stoped [11:02:52]OFD Sender: No OFD packet to send [11:02:57]OFD Sender: No OFD packet to send [11:03:01]int [11:03:01]Write to MH i2c: 01 00 00 EE C9 B7 [11:03:01]*** FLAG_PRN_PAP1 set [11:03:01]Write i2c OK [11:03:01]MH_I2C_Read... [11:03:01]Read from MH i2c: 01 [11:03:01]MH_I2C_Read... [11:03:01]Read from MH i2c: 01 07 00 [11:03:01]MH_I2C_Read... [11:03:01]Read from MH i2c: 01 07 00 EE C9 00 01 00 00 00 FF 0F CD [11:03:01]state=0 [11:03:01]No paper [11:03:02]int [11:03:02]Write to MH i2c: 01 00 00 EF C9 B8 [11:03:02]*** FLAG_PRN_PAP2 set [11:03:02]Write i2c OK [11:03:02]MH_I2C_Read... [11:03:02]Read from MH i2c: 01 [11:03:02]MH_I2C_Read... [11:03:02]Read from MH i2c: 01 07 00 [11:03:02]MH_I2C_Read... [11:03:02]Read from MH i2c: 01 07 00 EF C9 00 03 00 00 00 FF 0F D0 [11:03:02]state=0 [11:03:02]No paper [11:03:02]Cover opened [11:03:02]OFD Sender: No OFD packet to send [11:03:02]int [11:03:02]Write to MH i2c: 01 00 00 F0 C9 B9 [11:03:02]*** FLAG_PRN_PAP2 reset [11:03:02]Write i2c OK [11:03:02]MH_I2C_Read... [11:03:02]Read from MH i2c: 01 [11:03:02]MH_I2C_Read... [11:03:02]Read from MH i2c: 01 07 00 [11:03:02]MH_I2C_Read... [11:03:02]Read from MH i2c: 01 07 00 F0 C9 00 01 00 00 00 FF 0F CF [11:03:02]state=3 [11:03:02]No paper [11:03:02]Cover closed [11:03:02]int [11:03:02]Write to MH i2c: 01 00 00 F1 C9 BA [11:03:02]*** FLAG_PRN_PAP2 set [11:03:02]Write i2c OK [11:03:02]MH_I2C_Read... [11:03:02]Read from MH i2c: 01 [11:03:02]MH_I2C_Read... [11:03:02]Read from MH i2c: 01 07 00 [11:03:02]MH_I2C_Read... [11:03:02]Read from MH i2c: 01 07 00 F1 C9 00 03 00 00 00 FF 0F D2 [11:03:02]state=0 [11:03:02]No paper [11:03:02]Cover opened [11:03:07]OFD Sender: No OFD packet to send [11:03:07]Write to MH i2c: 01 00 00 F2 C9 BB [11:03:07]Write i2c OK [11:03:07]MH_I2C_Read... [11:03:07]Read from MH i2c: 01 [11:03:07]MH_I2C_Read... [11:03:07]Read from MH i2c: 01 07 00 [11:03:07]MH_I2C_Read... [11:03:07]Read from MH i2c: 01 07 00 F2 C9 00 03 00 00 00 FF 0F D3 [11:03:07]state=3 [11:03:07]No paper [11:03:07]Cover opened [11:03:12]OFD Sender: No OFD packet to send [11:03:12]Write to MH i2c: 01 00 00 F3 C9 BC [11:03:12]Write i2c OK [11:03:12]MH_I2C_Read... [11:03:12]Read from MH i2c: 01 [11:03:12]MH_I2C_Read... [11:03:12]Read from MH i2c: 01 07 00 [11:03:12]MH_I2C_Read... [11:03:12]Read from MH i2c: 01 07 00 F3 C9 00 03 00 00 00 FF 0F D4 [11:03:12]state=3 [11:03:12]No paper [11:03:12]Cover opened [11:03:16]int [11:03:16]Write to MH i2c: 01 00 00 F4 C9 BD [11:03:16]*** FLAG_PRN_PAP2 reset [11:03:16]Write i2c OK [11:03:16]MH_I2C_Read... [11:03:16]Read from MH i2c: 01 [11:03:16]MH_I2C_Read... [11:03:16]Read from MH i2c: 01 07 00 [11:03:16]MH_I2C_Read... [11:03:16]Read from MH i2c: 01 07 00 F4 C9 00 01 00 00 00 FF 0F D3 [11:03:16]state=3 [11:03:16]No paper [11:03:16]Cover closed [11:03:16]int [11:03:16]Write to MH i2c: 01 00 00 F5 C9 BE [11:03:16]*** FLAG_PRN_PAP2 set [11:03:16]Write i2c OK [11:03:16]MH_I2C_Read... [11:03:16]Read from MH i2c: 01 [11:03:16]MH_I2C_Read... [11:03:16]Read from MH i2c: 01 07 00 [11:03:16]MH_I2C_Read... [11:03:16]Read from MH i2c: 01 07 00 F5 C9 00 03 00 00 00 FF 0F D6 [11:03:16]state=0 [11:03:16]No paper [11:03:16]Cover opened [11:03:17]OFD Sender: No OFD packet to send [11:03:19]int [11:03:19]Write to MH i2c: 01 00 00 F6 C9 BF [11:03:19]*** FLAG_PRN_PAP2 reset [11:03:19]Write i2c OK [11:03:19]MH_I2C_Read... [11:03:19]Read from MH i2c: 01 [11:03:19]MH_I2C_Read... [11:03:19]Read from MH i2c: 01 07 00 [11:03:19]MH_I2C_Read... [11:03:19]Read from MH i2c: 01 07 00 F6 C9 00 01 00 00 00 FF 0F D5 [11:03:19]state=3 [11:03:19]No paper [11:03:19]Cover closed [11:03:19]int [11:03:19]Write to MH i2c: 01 00 00 F7 C9 C0 [11:03:19]*** FLAG_PRN_PAP2 set [11:03:19]Write i2c OK [11:03:19]MH_I2C_Read... [11:03:19]Read from MH i2c: 01 [11:03:19]MH_I2C_Read... [11:03:19]Read from MH i2c: 01 07 00 [11:03:19]MH_I2C_Read... [11:03:19]Read from MH i2c: 01 07 00 F7 C9 00 03 00 00 00 FF 0F D8 [11:03:19]state=0 [11:03:19]No paper [11:03:19]Cover opened [11:03:20]int [11:03:20]Write to MH i2c: 01 00 00 F8 C9 C1 [11:03:20]*** FLAG_PRN_PAP2 reset [11:03:20]Write i2c OK [11:03:20]MH_I2C_Read... [11:03:20]Read from MH i2c: 01 [11:03:20]MH_I2C_Read... [11:03:20]Read from MH i2c: 01 07 00 [11:03:20]MH_I2C_Read... [11:03:20]Read from MH i2c: 01 07 00 F8 C9 00 01 00 00 00 FF 0F D7 [11:03:20]state=3 [11:03:20]No paper [11:03:20]Cover closed [11:03:20]int [11:03:20]Write to MH i2c: 01 00 00 F9 C9 C2 [11:03:20]*** FLAG_PRN_PAP1 reset [11:03:20]Write i2c OK [11:03:20]MH_I2C_Read... [11:03:20]Read from MH i2c: 01 [11:03:20]MH_I2C_Read... [11:03:20]Read from MH i2c: 01 07 00 [11:03:20]MH_I2C_Read... [11:03:20]Read from MH i2c: 01 07 00 F9 C9 00 00 00 00 00 FF 0F D7 [11:03:20]state=0 [11:03:22]OFD Sender: No OFD packet to send [11:03:27]OFD Sender: No OFD packet to send [11:03:32]OFD Sender: No OFD packet to send [11:03:37]OFD Sender: No OFD packet to send [11:03:42]OFD Sender: No OFD packet to send [11:03:47]OFD Sender: No OFD packet to send [11:03:52]OFD Sender: No OFD packet to send [11:03:57]OFD Sender: No OFD packet to send [11:04:02]OFD Sender: No OFD packet to send [11:04:07]OFD Sender: No OFD packet to send [11:04:12]OFD Sender: No OFD packet to send [11:04:17]OFD Sender: No OFD packet to send [11:04:22]OFD Sender: No OFD packet to send [11:04:27]OFD Sender: No OFD packet to send [11:04:32]OFD Sender: No OFD packet to send [11:04:37]OFD Sender: No OFD packet to send [11:04:42]OFD Sender: No OFD packet to send [11:04:47]OFD Sender: No OFD packet to send [11:04:52]OFD Sender: No OFD packet to send [11:04:57]OFD Sender: No OFD packet to send [11:05:02]OFD Sender: No OFD packet to send [11:05:07]OFD Sender: No OFD packet to send [11:05:12]OFD Sender: No OFD packet to send [11:05:17]OFD Sender: No OFD packet to send [11:05:22]OFD Sender: No OFD packet to send [11:05:27]OFD Sender: No OFD packet to send [11:05:32]OFD Sender: No OFD packet to send [11:05:37]OFD Sender: No OFD packet to send [11:05:42]OFD Sender: No OFD packet to send [11:05:47]OFD Sender: No OFD packet to send [11:05:52]OFD Sender: No OFD packet to send [11:05:57]OFD Sender: No OFD packet to send [11:05:57]accept exits with 9 [11:05:57]New connection [11:05:57]New thread 3067116900 created [11:05:57]Thread 3067260260 joined [11:05:57]Waiting for new connection... [11:05:57] Sock 9.Parse request [11:05:57]Sock 9.Check first char [11:05:57]Sock 9.First char is OK [11:05:57]request: POST /json_proto HTTP/1.0 [11:05:57]Method: POST [11:05:57]URL: /json_proto [11:05:57]Method is POST - this is cgi request [11:05:57]url: /json_proto [11:05:57]query_string will be loaded in cgi processing [11:05:57]execute_cgi json_proto POST (null) [11:05:57]execute_cgi path=json_proto method=POST [11:05:57]POST find Content-Length [11:05:57]Host: 172.17.50.3:8080 [11:05:57]Content-Length: 680 [11:05:57]Content-Type: application/json [11:05:57] [11:05:57]POST finish read [11:05:57]Found Content-Length = 680 [11:05:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 45.940, "sum" : 3500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:57]execute_script... [11:05: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)2884997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 45.940, "sum" : 3500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:57]POST & json_proto [11:05:57]process_json_proto [11:05:57]json parsed OK: [11:05:57]protocol is kg_v1.0 [11:05:57]action value=close_receipt [11:05:57]process_action close_receipt [11:05:57]cmd_close_receipt [11:05:57]MH_GetDate [11:05:57]Write to MH i2c: F0 00 00 FA C9 B2 [11:05:57]Write i2c OK [11:05:57]MH_I2C_Read... [11:05:57]Read from MH i2c: F0 [11:05:57]MH_I2C_Read... [11:05:57]Read from MH i2c: F0 09 00 [11:05:57]MH_I2C_Read... [11:05:57]Read from MH i2c: F0 09 00 FA C9 00 1F E4 14 67 6B 98 1E 66 C0 [11:05:57]GetLastDocTimeStamp 1729422173 [11:05:57]current date 1729422367 [11:05:57]FM_GetShiftState [11:05:57]SAM_PROTO_GetShiftState [11:05:57]wFMCommunicate request_size=4 [11:05:57]MH_SAM_APDU [11:05:57]CAPDU: 80 13 01 00 [11:05:57]Write to MH i2c: E2 08 00 FB C9 80 13 01 00 00 00 00 00 41 [11:05:57]Write i2c OK [11:05:57]MH_I2C_Read... [11:05:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:57]Read from MH i2c: E2 [11:05:57]MH_I2C_Read... [11:05:57]Read from MH i2c: E2 0E 00 [11:05:57]MH_I2C_Read... [11:05:57]Read from MH i2c: E2 0E 00 FB C9 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 47 [11:05:57]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:05:57]wFMCommunicate OK [11:05:57]SAM_PROTO_GetShiftState done [11:05:57]FM_GetShiftState done [11:05:57]opened in 1729383220 [11:05:57]opened+sec_in_day 1729469620 [11:05:57]quantity*price = 350062 [11:05:57]sum+1 = 350064 [11:05:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 3500.00 Внесено: 3500.00 СДАЧА: 0.00 НСП 1% : 30.98 НДС 12% : 371.75 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 127 20.10.2024 11:06 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69282 ФПД: 218643357057287 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T110607&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69282&fm=218643357057287&tin=02508201610067®Number=0000000000156251&sum=350000 [11:05:58]StoreToDocumentArchive [11:05:58]shift 193 fd 69282 [11:05:58]save to /storage/0193/doc_00069282 [11:05:58]save last doc name /storage/0193/doc_00069282 to /storage/kkm_last_doc_name [11:05:58]save OK [11:05:58]Clear old archive folders... [11:05:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:05:58]tlvbuf is 00704F00 [11:05:58]SAM_PROTO_ClearQueue [11:05:58]wFMCommunicate request_size=4 [11:05:58]MH_SAM_APDU [11:05:58]CAPDU: 80 09 00 00 [11:05:58]Write to MH i2c: E2 08 00 08 CA 80 09 00 00 00 00 00 00 44 [11:05:58]Write i2c OK [11:05:58]MH_I2C_Read... [11:05:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:58]Read from MH i2c: E2 [11:05:58]MH_I2C_Read... [11:05:58]Read from MH i2c: E2 03 00 [11:05:58]MH_I2C_Read... [11:05:58]Read from MH i2c: E2 03 00 08 CA 00 90 00 46 [11:05:58]RAPDU: 90 00 [11:05:58]wFMCommunicate OK [11:05:58]SAM_PROTO_ClearQueue done [11:05:58]KKMCreateOFDPacket [11:05:58]OFDProtocolAddRootSTLVToBuf [11:05:58]FM_MakeSignedData [11:05:58]FM_MakeSignedData [11:05:58]SAM_PROTO_SignData [11:05:58]wFMCommunicate request_size=4 [11:05:58]MH_SAM_APDU [11:05:58]CAPDU: 80 0D 01 02 [11:05:58]Write to MH i2c: E2 08 00 09 CA 80 0D 01 02 00 00 00 00 4C [11:05:58]Write i2c OK [11:05:58]MH_I2C_Read... [11:05:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:58]Read from MH i2c: E2 [11:05:58]MH_I2C_Read... [11:05:58]Read from MH i2c: E2 03 00 [11:05:58]MH_I2C_Read... [11:05:58]Read from MH i2c: E2 03 00 09 CA 00 90 00 47 [11:05:58]RAPDU: 90 00 [11:05:58]wFMCommunicate OK [11:05:58]wFMCommunicate request_size=255 [11:05:58]MH_SAM_APDU [11:05:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 1F E4 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A2 0E 01 00 35 04 06 00 C6 DA DF A1 [11:05:58]Write to MH i2c: E2 02 01 0A CA 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 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 1F E4 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A2 0E 01 00 35 04 06 00 C6 DA DF A1 00 00 0B [11:05:58]Write i2c OK [11:05:58]MH_I2C_Read... [11:05:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:58]Read from MH i2c: E2 [11:05:58]MH_I2C_Read... [11:05:58]Read from MH i2c: E2 03 00 [11:05:58]MH_I2C_Read... [11:05:58]Read from MH i2c: E2 03 00 0A CA 00 90 00 48 [11:05:58]RAPDU: 90 00 [11:05:58]wFMCommunicate OK [11:05:58]wFMCommunicate request_size=7 [11:05:58]MH_SAM_APDU [11:05:58]CAPDU: 80 0D 02 02 02 41 07 [11:05:58]Write to MH i2c: E2 0A 00 0B CA 80 0D 02 02 02 00 41 07 00 00 9B [11:05:58]Write i2c OK [11:05:58]MH_I2C_Read... [11:05:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:58]Read from MH i2c: E2 [11:05:58]MH_I2C_Read... [11:05:58]Read from MH i2c: E2 03 00 [11:05:58]MH_I2C_Read... [11:05:58]Read from MH i2c: E2 03 00 0B CA 00 90 00 49 [11:05:58]RAPDU: 90 00 [11:05:58]wFMCommunicate OK [11:05:58]wFMCommunicate request_size=4 [11:05:58]MH_SAM_APDU [11:05:58]CAPDU: 80 0D 03 02 [11:05:58]Write to MH i2c: E2 08 00 0C CA 80 0D 03 02 00 00 00 00 51 [11:05:58]Write i2c OK [11:05:58]MH_I2C_Read... [11:05:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:59]Read from MH i2c: E2 [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: E2 0B 00 [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: E2 0B 00 0C CA 00 23 35 0A B8 18 A3 E2 82 90 00 8B [11:05:59]RAPDU: 23 35 0A B8 18 A3 E2 82 90 00 [11:05:59]wFMCommunicate OK [11:05:59]SAM_PROTO_SignData done [11:05:59]FM_MakeSignedData done [11:05:59]CreateOFDProtocolMessage [11:05:59]wFMCommunicate request_size=4 [11:05:59]MH_SAM_APDU [11:05:59]CAPDU: 80 11 00 00 [11:05:59]Write to MH i2c: E2 08 00 0D CA 80 11 00 00 00 00 00 00 51 [11:05:59]Write i2c OK [11:05:59]MH_I2C_Read... [11:05:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:59]Read from MH i2c: E2 [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: E2 17 00 [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: E2 17 00 0D CA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A3 [11:05:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:05:59]wFMCommunicate OK [11:05:59]CreateOFDProtocolMessage done [11:05:59]OFDSenderStorePacket 69282 [11:05:59]StoreOFDPacket docnum=69282 [11:05:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 04 C3 04 01 5A C0 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 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 1F E4 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A2 0E 01 00 35 04 06 00 C6 DA DF A1 41 07 23 35 0A B8 18 A3 E2 82 [11:05:59]CheckFolder [11:05:59]dirname=/storage/ofd_packets [11:05:59]CheckFolder done [11:05:59]ProducePacketName [11:05:59]name=ofd_packets/00069282 [11:05:59]NVStorageSaveData ofd_packets/00069282 [11:05:59]File name is /storage/ofd_packets/00069282 [11:05:59]Write 298 bytes [11:05:59]NVStorageSaveData done [11:05:59]OFDSenderStorePacket done [11:05:59]KKMCreateOFDPacket done [11:05:59]NVStorageSaveData kkm_last_timestamp [11:05:59]File name is /storage/kkm_last_timestamp [11:05:59]Write 4 bytes [11:05:59]NVStorageSaveData done [11:05:59]ExternCall_PrintAddStr [11:05:59]wPrintStart [11:05:59]Write to MH i2c: 01 00 00 0E CA D8 [11:05:59]Write i2c OK [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: 01 [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: 01 07 00 [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: 01 07 00 0E CA 00 00 00 00 00 FF 0F ED [11:05:59]RasterBufferAndPrint [11:05:59]line Счет N : (1)2884997 [11:05:59]line ИНН: 02508201610067 [11:05:59]line Контрольно-Кассовый Чек [11:05:59]line ПРОДАЖА [11:05:59]line ТРК (МРК, ГНК) : 51 [11:05:59]line Товар: 2710194210 [11:05:59]line ДТ-К-5 [11:05:59]line 45.940 * 76.20 [11:05:59]line = 3500.63 [11:05:59]line НДС 12% НСП 1% [11:05:59]line > о реализуемом товаре [11:05:59]line ОКРУГЛЕНИЕ: -0.63 [11:05:59]line ИТОГО: 3500.00 [11:05:59]line Внесено: 3500.00 [11:05:59]line СДАЧА: 0.00 [11:05:59]line НСП 1% : 30.98 [11:05:59]line НДС 12% : 371.75 [11:05:59]line Наличными: 3500.00 [11:05:59]line Безнал.: 0.00 [11:05:59]line Место: АЗС № 85 "Партнер Нефть" [11:05:59]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:05:59]line СНО: Общий режим [11:05:59]line Чек 127 20.10.2024 11:06 [11:05:59]line Смена: 193 ФФД: 1.0 [11:05:59]line ЗНМ: 0300000167 [11:05:59]line РНМ: 0000000000156251 [11:05:59]line Версия ККМ: v1.0 [11:05:59]line ФМ: 0000000000963346 [11:05:59]line ФД: 69282 [11:05:59]line ФПД: 218643357057287 [11:05:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T110607&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69282&fm=218643357057287&tin=02508201610067®Number=0000000000156251&sum=350000 [11:05:59]OFD Sender: Processing packet 69282 [packets to send 18, broken 17] [11:05:59]ProducePacketName [11:05:59]name=ofd_packets/00069282 [11:05:59]OFD Sender: To server: pG, [11:05:59]CommunicateWithHost lk.salyk.kg:30040 [11:05:59]ConnectInit lk.salyk.kg [11:05:59]written 0, free lines is 4095 [11:05:59]Connected sock=10 [11:05:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 04 C3 04 01 5A C0 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 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 1F E4 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A2 0E 01 00 35 04 06 00 C6 DA DF A1 41 07 23 35 0A B8 18 A3 E2 82 [11:05:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 D2 8C 47 00 10 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A2 0E 01 00 F4 03 04 00 C6 8D 14 67 B6 04 01 00 00 14 B4 F1 85 B6 23 4F 02 [11:05:59]CommunicateWithHost err = 0 [11:05:59]CheckOFDResponse [11:05:59]1017 (14) - 77093643461234 [11:05:59]1041 (16) - 0000000000963346 [11:05:59]1040 (4) - 69282 [11:05:59]1012 (4) - 20.10.2024 04:57 [11:05:59]1206 (1) - 0 [11:05:59]OFD Sender: Remove packet 69282 [11:05:59]ProducePacketName [11:05:59]name=ofd_packets/00069282 [11:05:59]NVStorageDeleteData [11:05:59]Write to MH i2c: 01 00 00 39 CA 03 [11:05:59]Write i2c OK [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: 01 [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: 01 07 00 [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: 01 07 00 39 CA 00 00 00 00 00 F7 0C 0D [11:05:59]RasterBufferAndPrint [11:05:59]line [11:05:59]line [11:05:59]line [11:05:59]line [11:05:59]line [11:05:59]written 0, free lines is 3328 [11:05:59]MH_Cut [11:05:59]Write to MH i2c: D1 01 00 40 CA 01 DC [11:05:59]Write i2c OK [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: D1 [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: D1 01 00 [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: D1 01 00 40 CA 00 DB [11:05:59]Write to MH i2c: 01 00 00 41 CA 0B [11:05:59]Write i2c OK [11:05:59]MH_I2C_Read... [11:06:00]OFD Sender: No OFD packet to send [11:06:00]*** Cut start [11:06:00]*** Partial cut [11:06:00]*** CUTSNS_PIN = 1 [11:06:00]*** CUTSNS_PIN = 0 [11:06:00]*** Brake cut motor [11:06:01]Read from MH i2c: 01 [11:06:01]MH_I2C_Read... [11:06:01]*** Stop cut motor [11:06:01]*** Cut end [11:06:01]Read from MH i2c: 01 07 00 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: 01 07 00 41 CA 00 00 00 00 00 FF 0F 20 [11:06:01]process_action close_receipt done [11:06:01]requested_data is exist [11:06:01]produce_requested_data [11:06:01]requested_item fm.sn is exist - process it [11:06:01]wFMCommunicate request_size=4 [11:06:01]MH_SAM_APDU [11:06:01]CAPDU: 80 11 00 00 [11:06:01]Write to MH i2c: E2 08 00 42 CA 80 11 00 00 00 00 00 00 86 [11:06:01]Write i2c OK [11:06:01]MH_I2C_Read... [11:06:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:01]Read from MH i2c: E2 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: E2 17 00 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: E2 17 00 42 CA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D8 [11:06:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:06:01]wFMCommunicate OK [11:06:01]requested_item fd.num is exist - process it [11:06:01]SAM_PROTO_GetFieldsCounters [11:06:01]wFMCommunicate request_size=4 [11:06:01]MH_SAM_APDU [11:06:01]CAPDU: 80 13 00 00 [11:06:01]Write to MH i2c: E2 08 00 43 CA 80 13 00 00 00 00 00 00 89 [11:06:01]Write i2c OK [11:06:01]MH_I2C_Read... [11:06:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:01]Read from MH i2c: E2 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: E2 62 00 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: E2 62 00 43 CA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A2 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [11:06:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A2 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:06:01]wFMCommunicate OK [11:06:01]SAM_PROTO_GetFieldsCounters done [11:06:01]requested_item shift.num is exist - process it [11:06:01]requested_item shift.opened is exist - process it [11:06:01]req_shift_opened [11:06:01]FM_GetShiftState [11:06:01]SAM_PROTO_GetShiftState [11:06:01]wFMCommunicate request_size=4 [11:06:01]MH_SAM_APDU [11:06:01]CAPDU: 80 13 01 00 [11:06:01]Write to MH i2c: E2 08 00 44 CA 80 13 01 00 00 00 00 00 8B [11:06:01]Write i2c OK [11:06:01]MH_I2C_Read... [11:06:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:01]Read from MH i2c: E2 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: E2 0E 00 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: E2 0E 00 44 CA 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 91 [11:06:01]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:06:01]wFMCommunicate OK [11:06:01]SAM_PROTO_GetShiftState done [11:06:01]FM_GetShiftState done [11:06:01]req_shift_opened done [11:06:01]requested_item shift.open_date is exist - process it [11:06:01]req_shift_open_date [11:06:01]req_shift_open_date done [11:06:01]produce_requested_data done [11:06:01]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69282,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [11:06:01]process_action_free close_receipt [11:06:01]json_value_free [11:06:01]json_value_free done [11:06:01]process_json_proto returns [11:06:01]Send response to host [11:06:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69282,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [11:06:01]free response buf [11:06:01]execute_script done [11:06:01]execute_script returns [11:06:01]free content buf [11:06:01]Sock 9.Close socket [11:06:01]Sock 9.Thread stoped [11:06:05]OFD Sender: No OFD packet to send [11:06:10]OFD Sender: No OFD packet to send [11:06:15]OFD Sender: No OFD packet to send [11:06:20]OFD Sender: No OFD packet to send [11:06:25]OFD Sender: No OFD packet to send [11:06:30]OFD Sender: No OFD packet to send [11:06:35]OFD Sender: No OFD packet to send [11:06:40]OFD Sender: No OFD packet to send [11:06:45]OFD Sender: No OFD packet to send [11:06:49]accept exits with 8 [11:06:49]New connection [11:06:49]New thread 3067260260 created [11:06:49]Thread 3067116900 joined [11:06:49]Waiting for new connection... [11:06:49] Sock 8.Parse request [11:06:49]Sock 8.Check first char [11:06:49]Sock 8.First char is OK [11:06:49]request: POST /json_proto HTTP/1.0 [11:06:49]Method: POST [11:06:49]URL: /json_proto [11:06:49]Method is POST - this is cgi request [11:06:49]url: /json_proto [11:06:49]query_string will be loaded in cgi processing [11:06:49]execute_cgi json_proto POST (null) [11:06:49]execute_cgi path=json_proto method=POST [11:06:49]POST find Content-Length [11:06:49]Host: 172.17.50.3:8080 [11:06:49]Content-Length: 689 [11:06:49]Content-Type: application/json [11:06:49] [11:06:49]POST finish read [11:06:49]Found Content-Length = 689 [11:06:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 23.320, "sum" : 1800.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:49]execute_script... [11:06: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)2884998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 23.320, "sum" : 1800.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:49]POST & json_proto [11:06:49]process_json_proto [11:06:49]json parsed OK: [11:06:49]protocol is kg_v1.0 [11:06:49]action value=close_receipt [11:06:49]process_action close_receipt [11:06:49]cmd_close_receipt [11:06:49]MH_GetDate [11:06:49]Write to MH i2c: F0 00 00 45 CA FE [11:06:49]Write i2c OK [11:06:49]MH_I2C_Read... [11:06:49]Read from MH i2c: F0 [11:06:49]MH_I2C_Read... [11:06:49]Read from MH i2c: F0 09 00 [11:06:49]MH_I2C_Read... [11:06:49]Read from MH i2c: F0 09 00 45 CA 00 53 E4 14 67 6B 98 1E 66 40 [11:06:49]GetLastDocTimeStamp 1729422367 [11:06:49]current date 1729422419 [11:06:49]FM_GetShiftState [11:06:49]SAM_PROTO_GetShiftState [11:06:49]wFMCommunicate request_size=4 [11:06:49]MH_SAM_APDU [11:06:49]CAPDU: 80 13 01 00 [11:06:49]Write to MH i2c: E2 08 00 46 CA 80 13 01 00 00 00 00 00 8D [11:06:49]Write i2c OK [11:06:49]MH_I2C_Read... [11:06:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:49]Read from MH i2c: E2 [11:06:49]MH_I2C_Read... [11:06:49]Read from MH i2c: E2 0E 00 [11:06:49]MH_I2C_Read... [11:06:49]Read from MH i2c: E2 0E 00 46 CA 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 93 [11:06:49]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:06:49]wFMCommunicate OK [11:06:49]SAM_PROTO_GetShiftState done [11:06:49]FM_GetShiftState done [11:06:49]opened in 1729383220 [11:06:49]opened+sec_in_day 1729469620 [11:06:49]quantity*price = 180030 [11:06:49]sum+1 = 180031 [11:06:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1800.00 Внесено: 1800.00 СДАЧА: 0.00 НСП 1% : 15.93 НДС 12% : 191.18 Наличными: 1800.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 128 20.10.2024 11:06 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69283 ФПД: 251496579523313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T110659&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69283&fm=251496579523313&tin=02508201610067®Number=0000000000156251&sum=180000 [11:06:51]StoreToDocumentArchive [11:06:51]shift 193 fd 69283 [11:06:51]save to /storage/0193/doc_00069283 [11:06:51]save last doc name /storage/0193/doc_00069283 to /storage/kkm_last_doc_name [11:06:51]save OK [11:06:51]Clear old archive folders... [11:06:51]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:06:51]tlvbuf is 00890A10 [11:06:51]SAM_PROTO_ClearQueue [11:06:51]wFMCommunicate request_size=4 [11:06:51]MH_SAM_APDU [11:06:51]CAPDU: 80 09 00 00 [11:06:51]Write to MH i2c: E2 08 00 53 CA 80 09 00 00 00 00 00 00 8F [11:06:51]Write i2c OK [11:06:51]MH_I2C_Read... [11:06:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:06:51]Read from MH i2c: E2 [11:06:51]MH_I2C_Read... [11:06:51]Read from MH i2c: E2 03 00 [11:06:51]MH_I2C_Read... [11:06:51]Read from MH i2c: E2 03 00 53 CA 00 90 00 91 [11:06:51]RAPDU: 90 00 [11:06:51]wFMCommunicate OK [11:06:51]SAM_PROTO_ClearQueue done [11:06:51]KKMCreateOFDPacket [11:06:51]OFDProtocolAddRootSTLVToBuf [11:06:51]FM_MakeSignedData [11:06:51]FM_MakeSignedData [11:06:51]SAM_PROTO_SignData [11:06:51]wFMCommunicate request_size=4 [11:06:51]MH_SAM_APDU [11:06:51]CAPDU: 80 0D 01 02 [11:06:51]Write to MH i2c: E2 08 00 54 CA 80 0D 01 02 00 00 00 00 97 [11:06:51]Write i2c OK [11:06:51]MH_I2C_Read... [11:06:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:06:51]Read from MH i2c: E2 [11:06:51]MH_I2C_Read... [11:06:51]Read from MH i2c: E2 03 00 [11:06:51]MH_I2C_Read... [11:06:51]Read from MH i2c: E2 03 00 54 CA 00 90 00 92 [11:06:51]RAPDU: 90 00 [11:06:51]wFMCommunicate OK [11:06:51]wFMCommunicate request_size=255 [11:06:51]MH_SAM_APDU [11:06:51]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 18 5B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3E BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 53 E4 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A3 0E 01 [11:06:51]Write to MH i2c: E2 02 01 55 CA 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 18 5B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3E BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 53 E4 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A3 0E 01 00 00 5D [11:06:51]Write i2c OK [11:06:51]MH_I2C_Read... [11:06:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:51]Read from MH i2c: E2 [11:06:51]MH_I2C_Read... [11:06:51]Read from MH i2c: E2 03 00 [11:06:51]MH_I2C_Read... [11:06:51]Read from MH i2c: E2 03 00 55 CA 00 90 00 93 [11:06:51]RAPDU: 90 00 [11:06:51]wFMCommunicate OK [11:06:51]wFMCommunicate request_size=16 [11:06:51]MH_SAM_APDU [11:06:51]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 E4 BC 1C 48 E2 F1 [11:06:51]Write to MH i2c: E2 13 00 56 CA 80 0D 02 02 0B 00 00 35 04 06 00 E4 BC 1C 48 E2 F1 00 00 C6 [11:06:51]Write i2c OK [11:06:51]MH_I2C_Read... [11:06:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:51]Read from MH i2c: E2 [11:06:51]MH_I2C_Read... [11:06:51]Read from MH i2c: E2 03 00 [11:06:51]MH_I2C_Read... [11:06:51]Read from MH i2c: E2 03 00 56 CA 00 90 00 94 [11:06:51]RAPDU: 90 00 [11:06:51]wFMCommunicate OK [11:06:51]wFMCommunicate request_size=4 [11:06:51]MH_SAM_APDU [11:06:51]CAPDU: 80 0D 03 02 [11:06:51]Write to MH i2c: E2 08 00 57 CA 80 0D 03 02 00 00 00 00 9C [11:06:51]Write i2c OK [11:06:51]MH_I2C_Read... [11:06:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:06:51]Read from MH i2c: E2 [11:06:51]MH_I2C_Read... [11:06:51]Read from MH i2c: E2 0B 00 [11:06:51]MH_I2C_Read... [11:06:51]Read from MH i2c: E2 0B 00 57 CA 00 DC CA 7E 18 93 FC A5 4B 90 00 58 [11:06:51]RAPDU: DC CA 7E 18 93 FC A5 4B 90 00 [11:06:51]wFMCommunicate OK [11:06:51]SAM_PROTO_SignData done [11:06:51]FM_MakeSignedData done [11:06:51]CreateOFDProtocolMessage [11:06:51]wFMCommunicate request_size=4 [11:06:51]MH_SAM_APDU [11:06:51]CAPDU: 80 11 00 00 [11:06:51]Write to MH i2c: E2 08 00 58 CA 80 11 00 00 00 00 00 00 9C [11:06:51]Write i2c OK [11:06:51]MH_I2C_Read... [11:06:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:51]Read from MH i2c: E2 [11:06:51]MH_I2C_Read... [11:06:51]Read from MH i2c: E2 17 00 [11:06:51]MH_I2C_Read... [11:06:51]Read from MH i2c: E2 17 00 58 CA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EE [11:06:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:06:51]wFMCommunicate OK [11:06:51]CreateOFDProtocolMessage done [11:06:51]OFDSenderStorePacket 69283 [11:06:51]StoreOFDPacket docnum=69283 [11:06:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 89 C2 0D 01 2C 58 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 18 5B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3E BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 53 E4 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A3 0E 01 00 35 04 06 00 E4 BC 1C 48 E2 F1 DC CA 7E 18 93 FC A5 4B [11:06:51]CheckFolder [11:06:51]dirname=/storage/ofd_packets [11:06:51]CheckFolder done [11:06:51]ProducePacketName [11:06:51]name=ofd_packets/00069283 [11:06:51]NVStorageSaveData ofd_packets/00069283 [11:06:51]File name is /storage/ofd_packets/00069283 [11:06:51]Write 307 bytes [11:06:51]NVStorageSaveData done [11:06:51]OFDSenderStorePacket done [11:06:51]KKMCreateOFDPacket done [11:06:51]NVStorageSaveData kkm_last_timestamp [11:06:51]File name is /storage/kkm_last_timestamp [11:06:51]Write 4 bytes [11:06:51]NVStorageSaveData done [11:06:51]ExternCall_PrintAddStr [11:06:51]wPrintStart [11:06:51]Write to MH i2c: 01 00 00 59 CA 23 [11:06:51]Write i2c OK [11:06:51]MH_I2C_Read... [11:06:51]Read from MH i2c: 01 [11:06:51]MH_I2C_Read... [11:06:51]Read from MH i2c: 01 07 00 [11:06:51]MH_I2C_Read... [11:06:51]Read from MH i2c: 01 07 00 59 CA 00 00 00 00 00 FF 0F 38 [11:06:51]RasterBufferAndPrint [11:06:51]line Счет N : (1)2884998 [11:06:51]line ИНН: 02508201610067 [11:06:51]line Контрольно-Кассовый Чек [11:06:51]line ПРОДАЖА [11:06:51]line ТРК (МРК, ГНК) : 31 [11:06:51]line Товар: 2710194240 [11:06:51]line D-ENERGY Дт-К-2 [11:06:51]line 23.320 * 77.20 [11:06:51]line = 1800.30 [11:06:51]line НДС 12% НСП 1% [11:06:51]line > о реализуемом товаре [11:06:51]line ОКРУГЛЕНИЕ: -0.30 [11:06:51]line ИТОГО: 1800.00 [11:06:51]line Внесено: 1800.00 [11:06:51]line СДАЧА: 0.00 [11:06:51]line НСП 1% : 15.93 [11:06:51]line НДС 12% : 191.18 [11:06:51]line Наличными: 1800.00 [11:06:51]line Безнал.: 0.00 [11:06:51]line Место: АЗС № 85 "Партнер Нефть" [11:06:51]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:06:51]line СНО: Общий режим [11:06:51]line Чек 128 20.10.2024 11:06 [11:06:51]line Смена: 193 ФФД: 1.0 [11:06:51]line ЗНМ: 0300000167 [11:06:51]line РНМ: 0000000000156251 [11:06:51]line Версия ККМ: v1.0 [11:06:51]line ФМ: 0000000000963346 [11:06:51]line ФД: 69283 [11:06:51]line ФПД: 251496579523313 [11:06:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T110659&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69283&fm=251496579523313&tin=02508201610067®Number=0000000000156251&sum=180000 [11:06:51]OFD Sender: Processing packet 69283 [packets to send 18, broken 17] [11:06:51]ProducePacketName [11:06:51]name=ofd_packets/00069283 [11:06:51]OFD Sender: To server: pG, [11:06:51]CommunicateWithHost lk.salyk.kg:30040 [11:06:51]ConnectInit lk.salyk.kg [11:06:51]written 0, free lines is 4095 [11:06:52]Connected sock=10 [11:06:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 89 C2 0D 01 2C 58 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 18 5B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3E BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 53 E4 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A3 0E 01 00 35 04 06 00 E4 BC 1C 48 E2 F1 DC CA 7E 18 93 FC A5 4B [11:06:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 D6 1E 47 00 1F D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A3 0E 01 00 F4 03 04 00 FA 8D 14 67 B6 04 01 00 00 A3 2D 1D 34 DF 4A 09 E6 [11:06:52]CommunicateWithHost err = 0 [11:06:52]CheckOFDResponse [11:06:52]1017 (14) - 77093643461234 [11:06:52]1041 (16) - 0000000000963346 [11:06:52]1040 (4) - 69283 [11:06:52]1012 (4) - 20.10.2024 04:58 [11:06:52]1206 (1) - 0 [11:06:52]OFD Sender: Remove packet 69283 [11:06:52]ProducePacketName [11:06:52]name=ofd_packets/00069283 [11:06:52]NVStorageDeleteData [11:06:52]Write to MH i2c: 01 00 00 84 CA 4E [11:06:52]Write i2c OK [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: 01 [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: 01 07 00 [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: 01 07 00 84 CA 00 00 00 00 00 F6 0C 57 [11:06:52]RasterBufferAndPrint [11:06:52]line [11:06:52]line [11:06:52]line [11:06:52]line [11:06:52]line [11:06:52]written 0, free lines is 3328 [11:06:52]MH_Cut [11:06:52]Write to MH i2c: D1 01 00 8B CA 01 27 [11:06:52]Write i2c OK [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: D1 [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: D1 01 00 [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: D1 01 00 8B CA 00 26 [11:06:52]Write to MH i2c: 01 00 00 8C CA 56 [11:06:52]Write i2c OK [11:06:52]MH_I2C_Read... [11:06:52]OFD Sender: No OFD packet to send [11:06:53]*** Cut start [11:06:53]*** Partial cut [11:06:53]*** CUTSNS_PIN = 1 [11:06:53]*** CUTSNS_PIN = 0 [11:06:53]*** Brake cut motor [11:06:53]Read from MH i2c: 01 [11:06:53]MH_I2C_Read... [11:06:53]*** Stop cut motor [11:06:53]*** Cut end [11:06:53]Read from MH i2c: 01 07 00 [11:06:53]MH_I2C_Read... [11:06:53]Read from MH i2c: 01 07 00 8C CA 00 00 00 00 00 FF 0F 6B [11:06:53]process_action close_receipt done [11:06:53]requested_data is exist [11:06:53]produce_requested_data [11:06:53]requested_item fm.sn is exist - process it [11:06:53]wFMCommunicate request_size=4 [11:06:53]MH_SAM_APDU [11:06:53]CAPDU: 80 11 00 00 [11:06:53]Write to MH i2c: E2 08 00 8D CA 80 11 00 00 00 00 00 00 D1 [11:06:53]Write i2c OK [11:06:53]MH_I2C_Read... [11:06:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:53]Read from MH i2c: E2 [11:06:53]MH_I2C_Read... [11:06:53]Read from MH i2c: E2 17 00 [11:06:53]MH_I2C_Read... [11:06:53]Read from MH i2c: E2 17 00 8D CA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 23 [11:06:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:06:53]wFMCommunicate OK [11:06:53]requested_item fd.num is exist - process it [11:06:53]SAM_PROTO_GetFieldsCounters [11:06:53]wFMCommunicate request_size=4 [11:06:53]MH_SAM_APDU [11:06:53]CAPDU: 80 13 00 00 [11:06:53]Write to MH i2c: E2 08 00 8E CA 80 13 00 00 00 00 00 00 D4 [11:06:53]Write i2c OK [11:06:53]MH_I2C_Read... [11:06:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:53]Read from MH i2c: E2 [11:06:53]MH_I2C_Read... [11:06:53]Read from MH i2c: E2 62 00 [11:06:53]MH_I2C_Read... [11:06:53]Read from MH i2c: E2 62 00 8E CA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A3 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [11:06:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A3 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:06:53]wFMCommunicate OK [11:06:53]SAM_PROTO_GetFieldsCounters done [11:06:53]requested_item shift.num is exist - process it [11:06:53]requested_item shift.opened is exist - process it [11:06:53]req_shift_opened [11:06:53]FM_GetShiftState [11:06:53]SAM_PROTO_GetShiftState [11:06:53]wFMCommunicate request_size=4 [11:06:53]MH_SAM_APDU [11:06:53]CAPDU: 80 13 01 00 [11:06:53]Write to MH i2c: E2 08 00 8F CA 80 13 01 00 00 00 00 00 D6 [11:06:53]Write i2c OK [11:06:53]MH_I2C_Read... [11:06:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:53]Read from MH i2c: E2 [11:06:53]MH_I2C_Read... [11:06:53]Read from MH i2c: E2 0E 00 [11:06:53]MH_I2C_Read... [11:06:53]Read from MH i2c: E2 0E 00 8F CA 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 DC [11:06:53]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:06:53]wFMCommunicate OK [11:06:53]SAM_PROTO_GetShiftState done [11:06:53]FM_GetShiftState done [11:06:53]req_shift_opened done [11:06:53]requested_item shift.open_date is exist - process it [11:06:53]req_shift_open_date [11:06:53]req_shift_open_date done [11:06:53]produce_requested_data done [11:06:53]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69283,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [11:06:53]process_action_free close_receipt [11:06:53]json_value_free [11:06:53]json_value_free done [11:06:53]process_json_proto returns [11:06:53]Send response to host [11:06:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69283,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [11:06:53]free response buf [11:06:53]execute_script done [11:06:53]execute_script returns [11:06:53]free content buf [11:06:53]Sock 8.Close socket [11:06:53]Sock 8.Thread stoped [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]OFD Sender: No OFD packet to send [11:08:17]OFD Sender: No OFD packet to send [11:08:22]OFD Sender: No OFD packet to send [11:08:27]OFD Sender: No OFD packet to send [11:08:32]OFD Sender: No OFD packet to send [11:08:37]OFD Sender: No OFD packet to send [11:08:42]OFD Sender: No OFD packet to send [11:08:47]OFD Sender: No OFD packet to send [11:08:52]OFD Sender: No OFD packet to send [11:08:57]OFD Sender: No OFD packet to send [11:09:02]OFD Sender: No OFD packet to send [11:09:07]OFD Sender: No OFD packet to send [11:09:12]OFD Sender: No OFD packet to send [11:09:17]OFD Sender: No OFD packet to send [11:09:22]OFD Sender: No OFD packet to send [11:09:27]OFD Sender: No OFD packet to send [11:09:32]OFD Sender: No OFD packet to send [11:09:37]OFD Sender: No OFD packet to send [11:09:42]OFD Sender: No OFD packet to send [11:09:47]OFD Sender: No OFD packet to send [11:09:52]OFD Sender: No OFD packet to send [11:09:57]OFD Sender: No OFD packet to send [11:10:02]OFD Sender: No OFD packet to send [11:10:07]OFD Sender: No OFD packet to send [11:10:12]OFD Sender: No OFD packet to send [11:10:17]OFD Sender: No OFD packet to send [11:10:22]OFD Sender: No OFD packet to send [11:10:27]OFD Sender: No OFD packet to send [11:10:32]OFD Sender: No OFD packet to send [11:10:37]OFD Sender: No OFD packet to send [11:10:42]OFD Sender: No OFD packet to send [11:10:47]OFD Sender: No OFD packet to send [11:10:52]OFD Sender: No OFD packet to send [11:10:57]OFD Sender: No OFD packet to send [11:11:02]OFD Sender: No OFD packet to send [11:11:07]OFD Sender: No OFD packet to send [11:11:12]OFD Sender: No OFD packet to send [11:11:17]OFD Sender: No OFD packet to send [11:11:22]OFD Sender: No OFD packet to send [11:11:28]OFD Sender: No OFD packet to send [11:11:33]OFD Sender: No OFD packet to send [11:11:38]OFD Sender: No OFD packet to send [11:11:43]OFD Sender: No OFD packet to send [11:11:48]OFD Sender: No OFD packet to send [11:11:53]OFD Sender: No OFD packet to send [11:11:58]OFD Sender: No OFD packet to send [11:12:03]OFD Sender: No OFD packet to send [11:12:08]OFD Sender: No OFD packet to send [11:12:13]OFD Sender: No OFD packet to send [11:12:18]OFD Sender: No OFD packet to send [11:12:23]OFD Sender: No OFD packet to send [11:12:28]OFD Sender: No OFD packet to send [11:12:33]OFD Sender: No OFD packet to send [11:12:38]OFD Sender: No OFD packet to send [11:12:43]OFD Sender: No OFD packet to send [11:12:48]OFD Sender: No OFD packet to send [11:12:53]OFD Sender: No OFD packet to send [11:12:58]OFD Sender: No OFD packet to send [11:13:03]OFD Sender: No OFD packet to send [11:13:08]OFD Sender: No OFD packet to send [11:13:13]OFD Sender: No OFD packet to send [11:13:16]accept exits with 9 [11:13:16]New connection [11:13:16]New thread 3067116900 created [11:13:16]Thread 3067260260 joined [11:13:16]Waiting for new connection... [11:13:16] Sock 9.Parse request [11:13:16]Sock 9.Check first char [11:13:16]Sock 9.First char is OK [11:13:16]request: POST /json_proto HTTP/1.0 [11:13:16]Method: POST [11:13:16]URL: /json_proto [11:13:16]Method is POST - this is cgi request [11:13:16]url: /json_proto [11:13:16]query_string will be loaded in cgi processing [11:13:16]execute_cgi json_proto POST (null) [11:13:16]execute_cgi path=json_proto method=POST [11:13:16]POST find Content-Length [11:13:16]Host: 172.17.50.3:8080 [11:13:16]Content-Length: 798 [11:13:16]Content-Type: application/json [11:13:16] [11:13:16]POST finish read [11:13:16]Found Content-Length = 798 [11:13:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2884999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "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\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4296249", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:16]execute_script... [11:13: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)2884999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "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\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4296249", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:16]POST & json_proto [11:13:16]process_json_proto [11:13:16]json parsed OK: [11:13:16]protocol is kg_v1.0 [11:13:16]action value=close_receipt [11:13:16]process_action close_receipt [11:13:16]cmd_close_receipt [11:13:16]MH_GetDate [11:13:16]Write to MH i2c: F0 00 00 90 CA 49 [11:13:16]Write i2c OK [11:13:16]MH_I2C_Read... [11:13:16]Read from MH i2c: F0 [11:13:16]MH_I2C_Read... [11:13:16]Read from MH i2c: F0 09 00 [11:13:16]MH_I2C_Read... [11:13:16]Read from MH i2c: F0 09 00 90 CA 00 D6 E5 14 67 6B 98 1E 66 0F [11:13:16]GetLastDocTimeStamp 1729422419 [11:13:16]current date 1729422806 [11:13:16]FM_GetShiftState [11:13:16]SAM_PROTO_GetShiftState [11:13:16]wFMCommunicate request_size=4 [11:13:16]MH_SAM_APDU [11:13:16]CAPDU: 80 13 01 00 [11:13:16]Write to MH i2c: E2 08 00 91 CA 80 13 01 00 00 00 00 00 D8 [11:13:16]Write i2c OK [11:13:16]MH_I2C_Read... [11:13:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:16]Read from MH i2c: E2 [11:13:16]MH_I2C_Read... [11:13:16]Read from MH i2c: E2 0E 00 [11:13:16]MH_I2C_Read... [11:13:16]Read from MH i2c: E2 0E 00 91 CA 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 DE [11:13:16]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:13:16]wFMCommunicate OK [11:13:16]SAM_PROTO_GetShiftState done [11:13:16]FM_GetShiftState done [11:13:16]opened in 1729383220 [11:13:16]opened+sec_in_day 1729469620 [11:13:16]quantity*price = 0 [11:13:16]sum+1 = 1 [11:13:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 129 20.10.2024 11:13 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливные Талоны 4296249 ФМ: 0000000000963346 ФД: 69284 ФПД: 115384011592378 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111326&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69284&fm=115384011592378&tin=02508201610067®Number=0000000000156251&sum=0 [11:13:17]StoreToDocumentArchive [11:13:17]shift 193 fd 69284 [11:13:17]save to /storage/0193/doc_00069284 [11:13:17]save last doc name /storage/0193/doc_00069284 to /storage/kkm_last_doc_name [11:13:17]save OK [11:13:17]Clear old archive folders... [11:13:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:13:17]tlvbuf is 0050CB80 [11:13:17]SAM_PROTO_ClearQueue [11:13:17]wFMCommunicate request_size=4 [11:13:17]MH_SAM_APDU [11:13:17]CAPDU: 80 09 00 00 [11:13:17]Write to MH i2c: E2 08 00 9E CA 80 09 00 00 00 00 00 00 DA [11:13:17]Write i2c OK [11:13:17]MH_I2C_Read... [11:13:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:17]Read from MH i2c: E2 [11:13:17]MH_I2C_Read... [11:13:17]Read from MH i2c: E2 03 00 [11:13:17]MH_I2C_Read... [11:13:17]Read from MH i2c: E2 03 00 9E CA 00 90 00 DC [11:13:17]RAPDU: 90 00 [11:13:17]wFMCommunicate OK [11:13:17]SAM_PROTO_ClearQueue done [11:13:17]KKMCreateOFDPacket [11:13:17]OFDProtocolAddRootSTLVToBuf [11:13:17]FM_MakeSignedData [11:13:17]FM_MakeSignedData [11:13:17]SAM_PROTO_SignData [11:13:17]wFMCommunicate request_size=4 [11:13:17]MH_SAM_APDU [11:13:17]CAPDU: 80 0D 01 02 [11:13:17]Write to MH i2c: E2 08 00 9F CA 80 0D 01 02 00 00 00 00 E2 [11:13:17]Write i2c OK [11:13:17]MH_I2C_Read... [11:13:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:17]Read from MH i2c: E2 [11:13:17]MH_I2C_Read... [11:13:17]Read from MH i2c: E2 03 00 [11:13:17]MH_I2C_Read... [11:13:17]Read from MH i2c: E2 03 00 9F CA 00 90 00 DD [11:13:17]RAPDU: 90 00 [11:13:17]wFMCommunicate OK [11:13:17]wFMCommunicate request_size=255 [11:13:17]MH_SAM_APDU [11:13: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 81 00 00 00 F4 03 04 00 D6 E5 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A4 0E 01 00 35 04 06 00 68 F0 EF 06 [11:13:17]Write to MH i2c: E2 02 01 A0 CA 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 81 00 00 00 F4 03 04 00 D6 E5 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A4 0E 01 00 35 04 06 00 68 F0 EF 06 00 00 E8 [11:13:17]Write i2c OK [11:13:17]MH_I2C_Read... [11:13:18]OFD Sender: No OFD packet to send [11:13:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:18]Read from MH i2c: E2 [11:13:18]MH_I2C_Read... [11:13:18]Read from MH i2c: E2 03 00 [11:13:18]MH_I2C_Read... [11:13:18]Read from MH i2c: E2 03 00 A0 CA 00 90 00 DE [11:13:18]RAPDU: 90 00 [11:13:18]wFMCommunicate OK [11:13:18]wFMCommunicate request_size=7 [11:13:18]MH_SAM_APDU [11:13:18]CAPDU: 80 0D 02 02 02 12 BA [11:13:18]Write to MH i2c: E2 0A 00 A1 CA 80 0D 02 02 02 00 12 BA 00 00 B5 [11:13:18]Write i2c OK [11:13:18]MH_I2C_Read... [11:13:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:18]Read from MH i2c: E2 [11:13:18]MH_I2C_Read... [11:13:18]Read from MH i2c: E2 03 00 [11:13:18]MH_I2C_Read... [11:13:18]Read from MH i2c: E2 03 00 A1 CA 00 90 00 DF [11:13:18]RAPDU: 90 00 [11:13:18]wFMCommunicate OK [11:13:18]wFMCommunicate request_size=4 [11:13:18]MH_SAM_APDU [11:13:18]CAPDU: 80 0D 03 02 [11:13:18]Write to MH i2c: E2 08 00 A2 CA 80 0D 03 02 00 00 00 00 E7 [11:13:18]Write i2c OK [11:13:18]MH_I2C_Read... [11:13:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:18]Read from MH i2c: E2 [11:13:18]MH_I2C_Read... [11:13:18]Read from MH i2c: E2 0B 00 [11:13:18]MH_I2C_Read... [11:13:18]Read from MH i2c: E2 0B 00 A2 CA 00 AE CF E7 51 1B E2 C9 D4 90 00 37 [11:13:18]RAPDU: AE CF E7 51 1B E2 C9 D4 90 00 [11:13:18]wFMCommunicate OK [11:13:18]SAM_PROTO_SignData done [11:13:18]FM_MakeSignedData done [11:13:18]CreateOFDProtocolMessage [11:13:18]wFMCommunicate request_size=4 [11:13:18]MH_SAM_APDU [11:13:18]CAPDU: 80 11 00 00 [11:13:18]Write to MH i2c: E2 08 00 A3 CA 80 11 00 00 00 00 00 00 E7 [11:13:18]Write i2c OK [11:13:18]MH_I2C_Read... [11:13:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:18]Read from MH i2c: E2 [11:13:18]MH_I2C_Read... [11:13:18]Read from MH i2c: E2 17 00 [11:13:18]MH_I2C_Read... [11:13:18]Read from MH i2c: E2 17 00 A3 CA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 39 [11:13:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:13:18]wFMCommunicate OK [11:13:18]CreateOFDProtocolMessage done [11:13:18]OFDSenderStorePacket 69284 [11:13:18]StoreOFDPacket docnum=69284 [11:13:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 1F FF 04 01 E0 B4 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 81 00 00 00 F4 03 04 00 D6 E5 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A4 0E 01 00 35 04 06 00 68 F0 EF 06 12 BA AE CF E7 51 1B E2 C9 D4 [11:13:18]CheckFolder [11:13:18]dirname=/storage/ofd_packets [11:13:18]CheckFolder done [11:13:18]ProducePacketName [11:13:18]name=ofd_packets/00069284 [11:13:18]NVStorageSaveData ofd_packets/00069284 [11:13:18]File name is /storage/ofd_packets/00069284 [11:13:18]Write 298 bytes [11:13:18]NVStorageSaveData done [11:13:18]OFDSenderStorePacket done [11:13:18]KKMCreateOFDPacket done [11:13:18]NVStorageSaveData kkm_last_timestamp [11:13:18]File name is /storage/kkm_last_timestamp [11:13:18]Write 4 bytes [11:13:18]NVStorageSaveData done [11:13:18]ExternCall_PrintAddStr [11:13:18]wPrintStart [11:13:18]Write to MH i2c: 01 00 00 A4 CA 6E [11:13:18]Write i2c OK [11:13:18]MH_I2C_Read... [11:13:18]Read from MH i2c: 01 [11:13:18]MH_I2C_Read... [11:13:18]Read from MH i2c: 01 07 00 [11:13:18]MH_I2C_Read... [11:13:18]Read from MH i2c: 01 07 00 A4 CA 00 00 00 00 00 FF 0F 83 [11:13:18]RasterBufferAndPrint [11:13:18]line Счет N : (1)2884999 [11:13:18]line ИНН: 02508201610067 [11:13:18]line Контрольно-Кассовый Чек [11:13:18]line ПРОДАЖА [11:13:18]line ТРК (МРК, ГНК) : 51 [11:13:18]line Товар: 2710194210 [11:13:18]line ДТ-К-5 [11:13:18]line 10.000 * 0.00 [11:13:18]line = 0.00 [11:13:18]line НДС 12% НСП 1% [11:13:18]line > о реализуемом товаре [11:13:18]line ИТОГО: 0.00 [11:13:18]line НСП 1% : 0.00 [11:13:18]line НДС 12% : 0.00 [11:13:18]line Наличными: 0.00 [11:13:18]line Безнал.: 0.00 [11:13:18]line Место: АЗС № 85 "Партнер Нефть" [11:13:18]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:13:18]line СНО: Общий режим [11:13:18]line Чек 129 20.10.2024 11:13 [11:13:18]line Смена: 193 ФФД: 1.0 [11:13:18]line ЗНМ: 0300000167 [11:13:18]line РНМ: 0000000000156251 [11:13:18]line Версия ККМ: v1.0 [11:13:18]line Талоны: Топливные Талоны [11:13:18]line 4296249 [11:13:18]line ФМ: 0000000000963346 [11:13:18]line ФД: 69284 [11:13:18]line ФПД: 115384011592378 [11:13:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111326&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69284&fm=115384011592378&tin=02508201610067®Number=0000000000156251&sum=0 [11:13:18]OFD Sender: Processing packet 69284 [packets to send 18, broken 17] [11:13:18]ProducePacketName [11:13:18]name=ofd_packets/00069284 [11:13:18]OFD Sender: To server: pG, [11:13:18]CommunicateWithHost lk.salyk.kg:30040 [11:13:18]ConnectInit lk.salyk.kg [11:13:18]written 0, free lines is 4095 [11:13:18]Connected sock=10 [11:13:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 1F FF 04 01 E0 B4 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 81 00 00 00 F4 03 04 00 D6 E5 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A4 0E 01 00 35 04 06 00 68 F0 EF 06 12 BA AE CF E7 51 1B E2 C9 D4 [11:13:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 56 73 47 00 A6 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A4 0E 01 00 F4 03 04 00 7D 8F 14 67 B6 04 01 00 00 E7 58 21 60 58 74 3F 32 [11:13:19]CommunicateWithHost err = 0 [11:13:19]CheckOFDResponse [11:13:19]1017 (14) - 77093643461234 [11:13:19]1041 (16) - 0000000000963346 [11:13:19]1040 (4) - 69284 [11:13:19]1012 (4) - 20.10.2024 05:05 [11:13:19]1206 (1) - 0 [11:13:19]OFD Sender: Remove packet 69284 [11:13:19]ProducePacketName [11:13:19]name=ofd_packets/00069284 [11:13:19]NVStorageDeleteData [11:13:19]Write to MH i2c: 01 00 00 CE CA 98 [11:13:19]Write i2c OK [11:13:19]MH_I2C_Read... [11:13:19]Read from MH i2c: 01 [11:13:19]MH_I2C_Read... [11:13:19]Read from MH i2c: 01 07 00 [11:13:19]MH_I2C_Read... [11:13:19]Read from MH i2c: 01 07 00 CE CA 00 00 00 00 00 F0 0C 9B [11:13:19]RasterBufferAndPrint [11:13:19]line [11:13:19]line [11:13:19]line [11:13:19]line [11:13:19]line [11:13:19]written 0, free lines is 3318 [11:13:19]MH_Cut [11:13:19]Write to MH i2c: D1 01 00 D5 CA 01 71 [11:13:19]Write i2c OK [11:13:19]MH_I2C_Read... [11:13:19]Read from MH i2c: D1 [11:13:19]MH_I2C_Read... [11:13:19]Read from MH i2c: D1 01 00 [11:13:19]MH_I2C_Read... [11:13:19]Read from MH i2c: D1 01 00 D5 CA 00 70 [11:13:19]Write to MH i2c: 01 00 00 D6 CA A0 [11:13:19]Write i2c OK [11:13:19]MH_I2C_Read... [11:13:19]OFD Sender: No OFD packet to send [11:13:19]*** Cut start [11:13:19]*** Partial cut [11:13:19]*** CUTSNS_PIN = 1 [11:13:19]*** CUTSNS_PIN = 0 [11:13:20]*** Brake cut motor [11:13:20]Read from MH i2c: 01 [11:13:20]MH_I2C_Read... [11:13:20]*** Stop cut motor [11:13:20]*** Cut end [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 D6 CA 00 00 00 00 00 FF 0F B5 [11:13:20]process_action close_receipt done [11:13:20]requested_data is exist [11:13:20]produce_requested_data [11:13:20]requested_item fm.sn is exist - process it [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 D7 CA 80 11 00 00 00 00 00 00 1B [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 D7 CA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6D [11:13:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:13:20]wFMCommunicate OK [11:13:20]requested_item fd.num is exist - process it [11:13:20]SAM_PROTO_GetFieldsCounters [11:13:20]wFMCommunicate request_size=4 [11:13:20]MH_SAM_APDU [11:13:20]CAPDU: 80 13 00 00 [11:13:20]Write to MH i2c: E2 08 00 D8 CA 80 13 00 00 00 00 00 00 1E [11:13:20]Write i2c OK [11:13:20]MH_I2C_Read... [11:13:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:20]Read from MH i2c: E2 [11:13:20]MH_I2C_Read... [11:13:20]Read from MH i2c: E2 62 00 [11:13:20]MH_I2C_Read... [11:13:20]Read from MH i2c: E2 62 00 D8 CA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A4 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [11:13:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A4 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:13:20]wFMCommunicate OK [11:13:20]SAM_PROTO_GetFieldsCounters done [11:13:20]requested_item shift.num is exist - process it [11:13:20]requested_item shift.opened is exist - process it [11:13:20]req_shift_opened [11:13:20]FM_GetShiftState [11:13:20]SAM_PROTO_GetShiftState [11:13:20]wFMCommunicate request_size=4 [11:13:20]MH_SAM_APDU [11:13:20]CAPDU: 80 13 01 00 [11:13:20]Write to MH i2c: E2 08 00 D9 CA 80 13 01 00 00 00 00 00 20 [11:13:20]Write i2c OK [11:13:20]MH_I2C_Read... [11:13:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:20]Read from MH i2c: E2 [11:13:20]MH_I2C_Read... [11:13:20]Read from MH i2c: E2 0E 00 [11:13:20]MH_I2C_Read... [11:13:20]Read from MH i2c: E2 0E 00 D9 CA 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 26 [11:13:20]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:13:20]wFMCommunicate OK [11:13:20]SAM_PROTO_GetShiftState done [11:13:20]FM_GetShiftState done [11:13:20]req_shift_opened done [11:13:20]requested_item shift.open_date is exist - process it [11:13:20]req_shift_open_date [11:13:20]req_shift_open_date done [11:13:20]produce_requested_data done [11:13:20]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69284,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [11:13:20]process_action_free close_receipt [11:13:20]json_value_free [11:13:20]json_value_free done [11:13:20]process_json_proto returns [11:13:20]Send response to host [11:13:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69284,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [11:13:20]free response buf [11:13:20]execute_script done [11:13:20]execute_script returns [11:13:20]free content buf [11:13:20]Sock 9.Close socket [11:13:20]Sock 9.Thread stoped [11:13:24]OFD Sender: No OFD packet to send [11:13:29]OFD Sender: No OFD packet to send [11:13:34]OFD Sender: No OFD packet to send [11:13:39]OFD Sender: No OFD packet to send [11:13:44]OFD Sender: No OFD packet to send [11:13:49]OFD Sender: No OFD packet to send [11:13:54]OFD Sender: No OFD packet to send [11:13:59]OFD Sender: No OFD packet to send [11:14:04]OFD Sender: No OFD packet to send [11:14:09]OFD Sender: No OFD packet to send [11:14:14]OFD Sender: No OFD packet to send [11:14:19]OFD Sender: No OFD packet to send [11:14:24]OFD Sender: No OFD packet to send [11:14:29]OFD Sender: No OFD packet to send [11:14:34]OFD Sender: No OFD packet to send [11:14:39]OFD Sender: No OFD packet to send [11:14:44]OFD Sender: No OFD packet to send [11:14:49]OFD Sender: No OFD packet to send [11:14:50]accept exits with 8 [11:14:50]New connection [11:14:50]New thread 3067260260 created [11:14:50]Thread 3067116900 joined [11:14:50]Waiting for new connection... [11:14:50] Sock 8.Parse request [11:14:50]Sock 8.Check first char [11:14:50]Sock 8.First char is OK [11:14:50]request: POST /json_proto HTTP/1.0 [11:14:50]Method: POST [11:14:50]URL: /json_proto [11:14:50]Method is POST - this is cgi request [11:14:50]url: /json_proto [11:14:50]query_string will be loaded in cgi processing [11:14:50]execute_cgi json_proto POST (null) [11:14:50]execute_cgi path=json_proto method=POST [11:14:50]POST find Content-Length [11:14:50]Host: 172.17.50.3:8080 [11:14:50]Content-Length: 678 [11:14:50]Content-Type: application/json [11:14:50] [11:14:50]POST finish read [11:14:50]Found Content-Length = 678 [11:14:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:50]execute_script... [11:14:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:50]POST & json_proto [11:14:50]process_json_proto [11:14:50]json parsed OK: [11:14:50]protocol is kg_v1.0 [11:14:50]action value=close_receipt [11:14:50]process_action close_receipt [11:14:50]cmd_close_receipt [11:14:50]MH_GetDate [11:14:50]Write to MH i2c: F0 00 00 DA CA 93 [11:14:50]Write i2c OK [11:14:50]MH_I2C_Read... [11:14:50]Read from MH i2c: F0 [11:14:50]MH_I2C_Read... [11:14:50]Read from MH i2c: F0 09 00 [11:14:50]MH_I2C_Read... [11:14:50]Read from MH i2c: F0 09 00 DA CA 00 34 E6 14 67 6B 98 1E 66 B8 [11:14:50]GetLastDocTimeStamp 1729422806 [11:14:50]current date 1729422900 [11:14:50]FM_GetShiftState [11:14:50]SAM_PROTO_GetShiftState [11:14:50]wFMCommunicate request_size=4 [11:14:50]MH_SAM_APDU [11:14:50]CAPDU: 80 13 01 00 [11:14:50]Write to MH i2c: E2 08 00 DB CA 80 13 01 00 00 00 00 00 22 [11:14:50]Write i2c OK [11:14:50]MH_I2C_Read... [11:14:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:50]Read from MH i2c: E2 [11:14:50]MH_I2C_Read... [11:14:50]Read from MH i2c: E2 0E 00 [11:14:50]MH_I2C_Read... [11:14:50]Read from MH i2c: E2 0E 00 DB CA 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 28 [11:14:50]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:14:50]wFMCommunicate OK [11:14:50]SAM_PROTO_GetShiftState done [11:14:50]FM_GetShiftState done [11:14:50]opened in 1729383220 [11:14:50]opened+sec_in_day 1729469620 [11:14:50]quantity*price = 50041 [11:14:50]sum+1 = 50042 [11:14:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 130 20.10.2024 11:15 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69285 ФПД: 35722108543531 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111500&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69285&fm=35722108543531&tin=02508201610067®Number=0000000000156251&sum=50000 [11:14:51]StoreToDocumentArchive [11:14:51]shift 193 fd 69285 [11:14:51]save to /storage/0193/doc_00069285 [11:14:51]save last doc name /storage/0193/doc_00069285 to /storage/kkm_last_doc_name [11:14:51]save OK [11:14:51]Clear old archive folders... [11:14:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:14:51]tlvbuf is 008E6830 [11:14:51]SAM_PROTO_ClearQueue [11:14:51]wFMCommunicate request_size=4 [11:14:51]MH_SAM_APDU [11:14:51]CAPDU: 80 09 00 00 [11:14:51]Write to MH i2c: E2 08 00 E8 CA 80 09 00 00 00 00 00 00 24 [11:14:51]Write i2c OK [11:14:51]MH_I2C_Read... [11:14:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:51]Read from MH i2c: E2 [11:14:51]MH_I2C_Read... [11:14:51]Read from MH i2c: E2 03 00 [11:14:51]MH_I2C_Read... [11:14:51]Read from MH i2c: E2 03 00 E8 CA 00 90 00 26 [11:14:51]RAPDU: 90 00 [11:14:51]wFMCommunicate OK [11:14:51]SAM_PROTO_ClearQueue done [11:14:51]KKMCreateOFDPacket [11:14:51]OFDProtocolAddRootSTLVToBuf [11:14:51]FM_MakeSignedData [11:14:51]FM_MakeSignedData [11:14:51]SAM_PROTO_SignData [11:14:51]wFMCommunicate request_size=4 [11:14:51]MH_SAM_APDU [11:14:51]CAPDU: 80 0D 01 02 [11:14:51]Write to MH i2c: E2 08 00 E9 CA 80 0D 01 02 00 00 00 00 2C [11:14:51]Write i2c OK [11:14:51]MH_I2C_Read... [11:14:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:51]Read from MH i2c: E2 [11:14:51]MH_I2C_Read... [11:14:51]Read from MH i2c: E2 03 00 [11:14:51]MH_I2C_Read... [11:14:51]Read from MH i2c: E2 03 00 E9 CA 00 90 00 27 [11:14:51]RAPDU: 90 00 [11:14:51]wFMCommunicate OK [11:14:51]wFMCommunicate request_size=255 [11:14:51]MH_SAM_APDU [11:14:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 34 E6 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A5 0E 01 00 35 04 06 00 20 [11:14:51]Write to MH i2c: E2 02 01 EA CA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 34 E6 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A5 0E 01 00 35 04 06 00 20 00 00 61 [11:14:51]Write i2c OK [11:14:51]MH_I2C_Read... [11:14:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:51]Read from MH i2c: E2 [11:14:51]MH_I2C_Read... [11:14:51]Read from MH i2c: E2 03 00 [11:14:51]MH_I2C_Read... [11:14:51]Read from MH i2c: E2 03 00 EA CA 00 90 00 28 [11:14:51]RAPDU: 90 00 [11:14:51]wFMCommunicate OK [11:14:51]wFMCommunicate request_size=10 [11:14:51]MH_SAM_APDU [11:14:51]CAPDU: 80 0D 02 02 05 7D 33 97 22 2B [11:14:51]Write to MH i2c: E2 0D 00 EB CA 80 0D 02 02 05 00 7D 33 97 22 2B 00 00 CD [11:14:51]Write i2c OK [11:14:51]MH_I2C_Read... [11:14:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:51]Read from MH i2c: E2 [11:14:51]MH_I2C_Read... [11:14:51]Read from MH i2c: E2 03 00 [11:14:51]MH_I2C_Read... [11:14:51]Read from MH i2c: E2 03 00 EB CA 00 90 00 29 [11:14:51]RAPDU: 90 00 [11:14:51]wFMCommunicate OK [11:14:51]wFMCommunicate request_size=4 [11:14:51]MH_SAM_APDU [11:14:51]CAPDU: 80 0D 03 02 [11:14:51]Write to MH i2c: E2 08 00 EC CA 80 0D 03 02 00 00 00 00 31 [11:14:51]Write i2c OK [11:14:51]MH_I2C_Read... [11:14:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:51]Read from MH i2c: E2 [11:14:51]MH_I2C_Read... [11:14:51]Read from MH i2c: E2 0B 00 [11:14:51]MH_I2C_Read... [11:14:51]Read from MH i2c: E2 0B 00 EC CA 00 8C 96 02 FC 25 C8 79 71 90 00 29 [11:14:51]RAPDU: 8C 96 02 FC 25 C8 79 71 90 00 [11:14:51]wFMCommunicate OK [11:14:51]SAM_PROTO_SignData done [11:14:51]FM_MakeSignedData done [11:14:51]CreateOFDProtocolMessage [11:14:51]wFMCommunicate request_size=4 [11:14:51]MH_SAM_APDU [11:14:51]CAPDU: 80 11 00 00 [11:14:51]Write to MH i2c: E2 08 00 ED CA 80 11 00 00 00 00 00 00 31 [11:14:51]Write i2c OK [11:14:51]MH_I2C_Read... [11:14:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:52]Read from MH i2c: E2 [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: E2 17 00 [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: E2 17 00 ED CA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 83 [11:14:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:14:52]wFMCommunicate OK [11:14:52]CreateOFDProtocolMessage done [11:14:52]OFDSenderStorePacket 69285 [11:14:52]StoreOFDPacket docnum=69285 [11:14:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 73 8B 07 01 95 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 34 E6 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A5 0E 01 00 35 04 06 00 20 7D 33 97 22 2B 8C 96 02 FC 25 C8 79 71 [11:14:52]CheckFolder [11:14:52]dirname=/storage/ofd_packets [11:14:52]CheckFolder done [11:14:52]ProducePacketName [11:14:52]name=ofd_packets/00069285 [11:14:52]NVStorageSaveData ofd_packets/00069285 [11:14:52]File name is /storage/ofd_packets/00069285 [11:14:52]Write 301 bytes [11:14:52]NVStorageSaveData done [11:14:52]OFDSenderStorePacket done [11:14:52]KKMCreateOFDPacket done [11:14:52]NVStorageSaveData kkm_last_timestamp [11:14:52]File name is /storage/kkm_last_timestamp [11:14:52]Write 4 bytes [11:14:52]NVStorageSaveData done [11:14:52]ExternCall_PrintAddStr [11:14:52]wPrintStart [11:14:52]Write to MH i2c: 01 00 00 EE CA B8 [11:14:52]Write i2c OK [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: 01 [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: 01 07 00 [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: 01 07 00 EE CA 00 00 00 00 00 FF 0F CD [11:14:52]RasterBufferAndPrint [11:14:52]line Счет N : (1)2885000 [11:14:52]line ИНН: 02508201610067 [11:14:52]line Контрольно-Кассовый Чек [11:14:52]line ПРОДАЖА [11:14:52]line ТРК (МРК, ГНК) : 42 [11:14:52]line Товар: 2710124130 [11:14:52]line Аи-92-К-5 [11:14:52]line 7.480 * 66.90 [11:14:52]line = 500.41 [11:14:52]line НДС 12% НСП 1% [11:14:52]line > о реализуемом товаре [11:14:52]line ОКРУГЛЕНИЕ: -0.41 [11:14:52]line ИТОГО: 500.00 [11:14:52]line Внесено: 500.00 [11:14:52]line СДАЧА: 0.00 [11:14:52]line НСП 1% : 4.43 [11:14:52]line НДС 12% : 53.14 [11:14:52]line Наличными: 500.00 [11:14:52]line Безнал.: 0.00 [11:14:52]line Место: АЗС № 85 "Партнер Нефть" [11:14:52]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:14:52]line СНО: Общий режим [11:14:52]line Чек 130 20.10.2024 11:15 [11:14:52]line Смена: 193 ФФД: 1.0 [11:14:52]line ЗНМ: 0300000167 [11:14:52]line РНМ: 0000000000156251 [11:14:52]line Версия ККМ: v1.0 [11:14:52]line ФМ: 0000000000963346 [11:14:52]line ФД: 69285 [11:14:52]line ФПД: 35722108543531 [11:14:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111500&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69285&fm=35722108543531&tin=02508201610067®Number=0000000000156251&sum=50000 [11:14:52]OFD Sender: Processing packet 69285 [packets to send 18, broken 17] [11:14:52]ProducePacketName [11:14:52]name=ofd_packets/00069285 [11:14:52]OFD Sender: To server: pG, [11:14:52]CommunicateWithHost lk.salyk.kg:30040 [11:14:52]ConnectInit lk.salyk.kg [11:14:52]written 0, free lines is 4095 [11:14:52]Connected sock=10 [11:14:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 73 8B 07 01 95 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 34 E6 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A5 0E 01 00 35 04 06 00 20 7D 33 97 22 2B 8C 96 02 FC 25 C8 79 71 [11:14:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 0E DB 47 00 02 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A5 0E 01 00 F4 03 04 00 DB 8F 14 67 B6 04 01 00 00 E4 69 BD 77 EF 7A 5E DC [11:14:52]CommunicateWithHost err = 0 [11:14:52]CheckOFDResponse [11:14:52]1017 (14) - 77093643461234 [11:14:52]1041 (16) - 0000000000963346 [11:14:52]1040 (4) - 69285 [11:14:52]1012 (4) - 20.10.2024 05:06 [11:14:52]1206 (1) - 0 [11:14:52]OFD Sender: Remove packet 69285 [11:14:52]ProducePacketName [11:14:52]name=ofd_packets/00069285 [11:14:52]NVStorageDeleteData [11:14:52]Write to MH i2c: 01 00 00 19 CB E4 [11:14:52]Write i2c OK [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: 01 [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: 01 07 00 [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: 01 07 00 19 CB 00 00 00 00 00 EF 0C E6 [11:14:52]RasterBufferAndPrint [11:14:52]line [11:14:52]line [11:14:52]line [11:14:52]line [11:14:52]line [11:14:52]written 0, free lines is 3320 [11:14:52]MH_Cut [11:14:52]Write to MH i2c: D1 01 00 20 CB 01 BD [11:14:52]Write i2c OK [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: D1 [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: D1 01 00 [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: D1 01 00 20 CB 00 BC [11:14:52]Write to MH i2c: 01 00 00 21 CB EC [11:14:52]Write i2c OK [11:14:52]MH_I2C_Read... [11:14:53]OFD Sender: No OFD packet to send [11:14:53]*** Cut start [11:14:53]*** Partial cut [11:14:53]*** CUTSNS_PIN = 1 [11:14:53]*** CUTSNS_PIN = 0 [11:14:53]*** Brake cut motor [11:14:54]Read from MH i2c: 01 [11:14:54]MH_I2C_Read... [11:14:54]*** Stop cut motor [11:14:54]*** Cut end [11:14:54]Read from MH i2c: 01 07 00 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: 01 07 00 21 CB 00 00 00 00 00 FF 0F 01 [11:14:54]process_action close_receipt done [11:14:54]requested_data is exist [11:14:54]produce_requested_data [11:14:54]requested_item fm.sn is exist - process it [11:14:54]wFMCommunicate request_size=4 [11:14:54]MH_SAM_APDU [11:14:54]CAPDU: 80 11 00 00 [11:14:54]Write to MH i2c: E2 08 00 22 CB 80 11 00 00 00 00 00 00 67 [11:14:54]Write i2c OK [11:14:54]MH_I2C_Read... [11:14:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:54]Read from MH i2c: E2 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: E2 17 00 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: E2 17 00 22 CB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B9 [11:14:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:14:54]wFMCommunicate OK [11:14:54]requested_item fd.num is exist - process it [11:14:54]SAM_PROTO_GetFieldsCounters [11:14:54]wFMCommunicate request_size=4 [11:14:54]MH_SAM_APDU [11:14:54]CAPDU: 80 13 00 00 [11:14:54]Write to MH i2c: E2 08 00 23 CB 80 13 00 00 00 00 00 00 6A [11:14:54]Write i2c OK [11:14:54]MH_I2C_Read... [11:14:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:54]Read from MH i2c: E2 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: E2 62 00 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: E2 62 00 23 CB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A5 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [11:14:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A5 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:14:54]wFMCommunicate OK [11:14:54]SAM_PROTO_GetFieldsCounters done [11:14:54]requested_item shift.num is exist - process it [11:14:54]requested_item shift.opened is exist - process it [11:14:54]req_shift_opened [11:14:54]FM_GetShiftState [11:14:54]SAM_PROTO_GetShiftState [11:14:54]wFMCommunicate request_size=4 [11:14:54]MH_SAM_APDU [11:14:54]CAPDU: 80 13 01 00 [11:14:54]Write to MH i2c: E2 08 00 24 CB 80 13 01 00 00 00 00 00 6C [11:14:54]Write i2c OK [11:14:54]MH_I2C_Read... [11:14:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:54]Read from MH i2c: E2 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: E2 0E 00 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: E2 0E 00 24 CB 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 72 [11:14:54]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:14:54]wFMCommunicate OK [11:14:54]SAM_PROTO_GetShiftState done [11:14:54]FM_GetShiftState done [11:14:54]req_shift_opened done [11:14:54]requested_item shift.open_date is exist - process it [11:14:54]req_shift_open_date [11:14:54]req_shift_open_date done [11:14:54]produce_requested_data done [11:14:54]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69285,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [11:14:54]process_action_free close_receipt [11:14:54]json_value_free [11:14:54]json_value_free done [11:14:54]process_json_proto returns [11:14:54]Send response to host [11:14:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69285,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [11:14:54]free response buf [11:14:54]execute_script done [11:14:54]execute_script returns [11:14:54]free content buf [11:14:54]Sock 8.Close socket [11:14:54]Sock 8.Thread stoped [11:14:58]OFD Sender: No OFD packet to send [11:15:03]OFD Sender: No OFD packet to send [11:15:08]OFD Sender: No OFD packet to send [11:15:13]OFD Sender: No OFD packet to send [11:15:18]OFD Sender: No OFD packet to send [11:15:23]OFD Sender: No OFD packet to send [11:15:28]OFD Sender: No OFD packet to send [11:15:33]OFD Sender: No OFD packet to send [11:15:38]OFD Sender: No OFD packet to send [11:15:43]OFD Sender: No OFD packet to send [11:15:48]OFD Sender: No OFD packet to send [11:15:53]OFD Sender: No OFD packet to send [11:15:58]OFD Sender: No OFD packet to send [11:16:03]OFD Sender: No OFD packet to send [11:16:08]OFD Sender: No OFD packet to send [11:16:13]OFD Sender: No OFD packet to send [11:16:18]OFD Sender: No OFD packet to send [11:16:23]OFD Sender: No OFD packet to send [11:16:28]OFD Sender: No OFD packet to send [11:16:30]accept exits with 9 [11:16:30]New connection [11:16:30]New thread 3067116900 created [11:16:30]Thread 3067260260 joined [11:16:30]Waiting for new connection... [11:16:30] Sock 9.Parse request [11:16:30]Sock 9.Check first char [11:16:30]Sock 9.First char is OK [11:16:30]request: POST /json_proto HTTP/1.0 [11:16:30]Method: POST [11:16:30]URL: /json_proto [11:16:30]Method is POST - this is cgi request [11:16:30]url: /json_proto [11:16:30]query_string will be loaded in cgi processing [11:16:30]execute_cgi json_proto POST (null) [11:16:30]execute_cgi path=json_proto method=POST [11:16:30]POST find Content-Length [11:16:30]Host: 172.17.50.3:8080 [11:16:30]Content-Length: 798 [11:16:30]Content-Type: application/json [11:16:30] [11:16:30]POST finish read [11:16:30]Found Content-Length = 798 [11:16:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4002279", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:30]execute_script... [11:16:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4002279", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:30]POST & json_proto [11:16:30]process_json_proto [11:16:30]json parsed OK: [11:16:30]protocol is kg_v1.0 [11:16:30]action value=close_receipt [11:16:30]process_action close_receipt [11:16:30]cmd_close_receipt [11:16:30]MH_GetDate [11:16:30]Write to MH i2c: F0 00 00 25 CB DF [11:16:30]Write i2c OK [11:16:30]MH_I2C_Read... [11:16:30]Read from MH i2c: F0 [11:16:30]MH_I2C_Read... [11:16:30]Read from MH i2c: F0 09 00 [11:16:30]MH_I2C_Read... [11:16:30]Read from MH i2c: F0 09 00 25 CB 00 98 E6 14 67 6B 98 1E 66 68 [11:16:30]GetLastDocTimeStamp 1729422900 [11:16:30]current date 1729423000 [11:16:30]FM_GetShiftState [11:16:30]SAM_PROTO_GetShiftState [11:16:30]wFMCommunicate request_size=4 [11:16:30]MH_SAM_APDU [11:16:30]CAPDU: 80 13 01 00 [11:16:30]Write to MH i2c: E2 08 00 26 CB 80 13 01 00 00 00 00 00 6E [11:16:30]Write i2c OK [11:16:30]MH_I2C_Read... [11:16:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:30]Read from MH i2c: E2 [11:16:30]MH_I2C_Read... [11:16:30]Read from MH i2c: E2 0E 00 [11:16:30]MH_I2C_Read... [11:16:30]Read from MH i2c: E2 0E 00 26 CB 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 74 [11:16:30]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:16:30]wFMCommunicate OK [11:16:30]SAM_PROTO_GetShiftState done [11:16:30]FM_GetShiftState done [11:16:30]opened in 1729383220 [11:16:30]opened+sec_in_day 1729469620 [11:16:30]quantity*price = 0 [11:16:30]sum+1 = 1 [11:16:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 131 20.10.2024 11:16 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливные Талоны 4002279 ФМ: 0000000000963346 ФД: 69286 ФПД: 48395092590270 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111641&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69286&fm=48395092590270&tin=02508201610067®Number=0000000000156251&sum=0 [11:16:32]StoreToDocumentArchive [11:16:32]shift 193 fd 69286 [11:16:32]save to /storage/0193/doc_00069286 [11:16:32]save last doc name /storage/0193/doc_00069286 to /storage/kkm_last_doc_name [11:16:32]save OK [11:16:32]Clear old archive folders... [11:16:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:16:32]tlvbuf is 0080A1B0 [11:16:32]SAM_PROTO_ClearQueue [11:16:32]wFMCommunicate request_size=4 [11:16:32]MH_SAM_APDU [11:16:32]CAPDU: 80 09 00 00 [11:16:32]Write to MH i2c: E2 08 00 33 CB 80 09 00 00 00 00 00 00 70 [11:16:32]Write i2c OK [11:16:32]MH_I2C_Read... [11:16:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:32]Read from MH i2c: E2 [11:16:32]MH_I2C_Read... [11:16:32]Read from MH i2c: E2 03 00 [11:16:32]MH_I2C_Read... [11:16:32]Read from MH i2c: E2 03 00 33 CB 00 90 00 72 [11:16:32]RAPDU: 90 00 [11:16:32]wFMCommunicate OK [11:16:32]SAM_PROTO_ClearQueue done [11:16:32]KKMCreateOFDPacket [11:16:32]OFDProtocolAddRootSTLVToBuf [11:16:32]FM_MakeSignedData [11:16:32]FM_MakeSignedData [11:16:32]SAM_PROTO_SignData [11:16:32]wFMCommunicate request_size=4 [11:16:32]MH_SAM_APDU [11:16:32]CAPDU: 80 0D 01 02 [11:16:32]Write to MH i2c: E2 08 00 34 CB 80 0D 01 02 00 00 00 00 78 [11:16:32]Write i2c OK [11:16:32]MH_I2C_Read... [11:16:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:32]Read from MH i2c: E2 [11:16:32]MH_I2C_Read... [11:16:32]Read from MH i2c: E2 03 00 [11:16:32]MH_I2C_Read... [11:16:32]Read from MH i2c: E2 03 00 34 CB 00 90 00 73 [11:16:32]RAPDU: 90 00 [11:16:32]wFMCommunicate OK [11:16:32]wFMCommunicate request_size=255 [11:16:32]MH_SAM_APDU [11:16:32]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 83 00 00 00 F4 03 04 00 99 E6 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A6 0E 01 00 35 04 06 00 2C 03 DC 4D [11:16:32]Write to MH i2c: E2 02 01 35 CB 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 83 00 00 00 F4 03 04 00 99 E6 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A6 0E 01 00 35 04 06 00 2C 03 DC 4D 00 00 51 [11:16:32]Write i2c OK [11:16:32]MH_I2C_Read... [11:16:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:32]Read from MH i2c: E2 [11:16:32]MH_I2C_Read... [11:16:32]Read from MH i2c: E2 03 00 [11:16:32]MH_I2C_Read... [11:16:32]Read from MH i2c: E2 03 00 35 CB 00 90 00 74 [11:16:32]RAPDU: 90 00 [11:16:32]wFMCommunicate OK [11:16:32]wFMCommunicate request_size=7 [11:16:32]MH_SAM_APDU [11:16:32]CAPDU: 80 0D 02 02 02 7E BE [11:16:32]Write to MH i2c: E2 0A 00 36 CB 80 0D 02 02 02 00 7E BE 00 00 BB [11:16:32]Write i2c OK [11:16:32]MH_I2C_Read... [11:16:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:32]Read from MH i2c: E2 [11:16:32]MH_I2C_Read... [11:16:32]Read from MH i2c: E2 03 00 [11:16:32]MH_I2C_Read... [11:16:32]Read from MH i2c: E2 03 00 36 CB 00 90 00 75 [11:16:32]RAPDU: 90 00 [11:16:32]wFMCommunicate OK [11:16:32]wFMCommunicate request_size=4 [11:16:32]MH_SAM_APDU [11:16:32]CAPDU: 80 0D 03 02 [11:16:32]Write to MH i2c: E2 08 00 37 CB 80 0D 03 02 00 00 00 00 7D [11:16:32]Write i2c OK [11:16:32]MH_I2C_Read... [11:16:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:32]Read from MH i2c: E2 [11:16:32]MH_I2C_Read... [11:16:32]Read from MH i2c: E2 0B 00 [11:16:32]MH_I2C_Read... [11:16:32]Read from MH i2c: E2 0B 00 37 CB 00 3E FD E8 8F 00 FC 04 C1 90 00 F1 [11:16:32]RAPDU: 3E FD E8 8F 00 FC 04 C1 90 00 [11:16:32]wFMCommunicate OK [11:16:32]SAM_PROTO_SignData done [11:16:32]FM_MakeSignedData done [11:16:32]CreateOFDProtocolMessage [11:16:32]wFMCommunicate request_size=4 [11:16:32]MH_SAM_APDU [11:16:32]CAPDU: 80 11 00 00 [11:16:32]Write to MH i2c: E2 08 00 38 CB 80 11 00 00 00 00 00 00 7D [11:16:32]Write i2c OK [11:16:32]MH_I2C_Read... [11:16:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:32]Read from MH i2c: E2 [11:16:32]MH_I2C_Read... [11:16:32]Read from MH i2c: E2 17 00 [11:16:32]MH_I2C_Read... [11:16:32]Read from MH i2c: E2 17 00 38 CB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CF [11:16:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:16:32]wFMCommunicate OK [11:16:32]CreateOFDProtocolMessage done [11:16:32]OFDSenderStorePacket 69286 [11:16:32]StoreOFDPacket docnum=69286 [11:16:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 EB 83 04 01 B2 C3 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 83 00 00 00 F4 03 04 00 99 E6 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A6 0E 01 00 35 04 06 00 2C 03 DC 4D 7E BE 3E FD E8 8F 00 FC 04 C1 [11:16:32]CheckFolder [11:16:32]dirname=/storage/ofd_packets [11:16:32]CheckFolder done [11:16:32]ProducePacketName [11:16:32]name=ofd_packets/00069286 [11:16:32]NVStorageSaveData ofd_packets/00069286 [11:16:32]File name is /storage/ofd_packets/00069286 [11:16:32]Write 298 bytes [11:16:32]NVStorageSaveData done [11:16:32]OFDSenderStorePacket done [11:16:32]KKMCreateOFDPacket done [11:16:32]NVStorageSaveData kkm_last_timestamp [11:16:32]File name is /storage/kkm_last_timestamp [11:16:32]Write 4 bytes [11:16:32]NVStorageSaveData done [11:16:32]ExternCall_PrintAddStr [11:16:32]wPrintStart [11:16:32]Write to MH i2c: 01 00 00 39 CB 04 [11:16:32]Write i2c OK [11:16:32]MH_I2C_Read... [11:16:32]Read from MH i2c: 01 [11:16:32]MH_I2C_Read... [11:16:32]Read from MH i2c: 01 07 00 [11:16:32]MH_I2C_Read... [11:16:32]Read from MH i2c: 01 07 00 39 CB 00 00 00 00 00 FF 0F 19 [11:16:32]RasterBufferAndPrint [11:16:32]line Счет N : (1)2885001 [11:16:32]line ИНН: 02508201610067 [11:16:32]line Контрольно-Кассовый Чек [11:16:32]line ПРОДАЖА [11:16:32]line ТРК (МРК, ГНК) : 61 [11:16:32]line Товар: 2710194210 [11:16:32]line ДТ-К-5 [11:16:32]line 10.000 * 0.00 [11:16:32]line = 0.00 [11:16:32]line НДС 12% НСП 1% [11:16:32]line > о реализуемом товаре [11:16:32]line ИТОГО: 0.00 [11:16:32]line НСП 1% : 0.00 [11:16:32]line НДС 12% : 0.00 [11:16:32]line Наличными: 0.00 [11:16:32]line Безнал.: 0.00 [11:16:32]line Место: АЗС № 85 "Партнер Нефть" [11:16:32]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:16:32]line СНО: Общий режим [11:16:32]line Чек 131 20.10.2024 11:16 [11:16:32]line Смена: 193 ФФД: 1.0 [11:16:32]line ЗНМ: 0300000167 [11:16:32]line РНМ: 0000000000156251 [11:16:32]line Версия ККМ: v1.0 [11:16:32]line Талоны: Топливные Талоны [11:16:32]line 4002279 [11:16:32]line ФМ: 0000000000963346 [11:16:32]line ФД: 69286 [11:16:32]line ФПД: 48395092590270 [11:16:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111641&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69286&fm=48395092590270&tin=02508201610067®Number=0000000000156251&sum=0 [11:16:32]OFD Sender: Processing packet 69286 [packets to send 18, broken 17] [11:16:32]ProducePacketName [11:16:32]name=ofd_packets/00069286 [11:16:32]OFD Sender: To server: pG, [11:16:32]CommunicateWithHost lk.salyk.kg:30040 [11:16:32]ConnectInit lk.salyk.kg [11:16:32]written 0, free lines is 4095 [11:16:33]Connected sock=10 [11:16:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 EB 83 04 01 B2 C3 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 83 00 00 00 F4 03 04 00 99 E6 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A6 0E 01 00 35 04 06 00 2C 03 DC 4D 7E BE 3E FD E8 8F 00 FC 04 C1 [11:16:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 B4 26 47 00 38 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A6 0E 01 00 F4 03 04 00 3F 90 14 67 B6 04 01 00 00 0C 3E D1 B3 E5 38 19 E7 [11:16:33]CommunicateWithHost err = 0 [11:16:33]CheckOFDResponse [11:16:33]1017 (14) - 77093643461234 [11:16:33]1041 (16) - 0000000000963346 [11:16:33]1040 (4) - 69286 [11:16:33]1012 (4) - 20.10.2024 05:08 [11:16:33]1206 (1) - 0 [11:16:33]OFD Sender: Remove packet 69286 [11:16:33]ProducePacketName [11:16:33]name=ofd_packets/00069286 [11:16:33]NVStorageDeleteData [11:16:33]Write to MH i2c: 01 00 00 63 CB 2E [11:16:33]Write i2c OK [11:16:33]MH_I2C_Read... [11:16:33]Read from MH i2c: 01 [11:16:33]MH_I2C_Read... [11:16:33]Read from MH i2c: 01 07 00 [11:16:33]MH_I2C_Read... [11:16:33]Read from MH i2c: 01 07 00 63 CB 00 00 00 00 00 06 0D 48 [11:16:33]RasterBufferAndPrint [11:16:33]line [11:16:33]line [11:16:33]line [11:16:33]line [11:16:33]line [11:16:33]written 0, free lines is 3344 [11:16:33]MH_Cut [11:16:33]Write to MH i2c: D1 01 00 6A CB 01 07 [11:16:33]Write i2c OK [11:16:33]MH_I2C_Read... [11:16:33]Read from MH i2c: D1 [11:16:33]MH_I2C_Read... [11:16:33]Read from MH i2c: D1 01 00 [11:16:33]MH_I2C_Read... [11:16:33]Read from MH i2c: D1 01 00 6A CB 00 06 [11:16:33]Write to MH i2c: 01 00 00 6B CB 36 [11:16:33]Write i2c OK [11:16:33]MH_I2C_Read... [11:16:33]OFD Sender: No OFD packet to send [11:16:34]*** Cut start [11:16:34]*** Partial cut [11:16:34]*** CUTSNS_PIN = 1 [11:16:34]*** CUTSNS_PIN = 0 [11:16:34]*** Brake cut motor [11:16:34]Read from MH i2c: 01 [11:16:34]MH_I2C_Read... [11:16:34]*** Stop cut motor [11:16:34]*** Cut end [11:16:34]Read from MH i2c: 01 07 00 [11:16:34]MH_I2C_Read... [11:16:34]Read from MH i2c: 01 07 00 6B CB 00 00 00 00 00 FF 0F 4B [11:16:34]process_action close_receipt done [11:16:34]requested_data is exist [11:16:34]produce_requested_data [11:16:34]requested_item fm.sn is exist - process it [11:16:34]wFMCommunicate request_size=4 [11:16:34]MH_SAM_APDU [11:16:34]CAPDU: 80 11 00 00 [11:16:34]Write to MH i2c: E2 08 00 6C CB 80 11 00 00 00 00 00 00 B1 [11:16:34]Write i2c OK [11:16:34]MH_I2C_Read... [11:16:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:34]Read from MH i2c: E2 [11:16:34]MH_I2C_Read... [11:16:34]Read from MH i2c: E2 17 00 [11:16:34]MH_I2C_Read... [11:16:34]Read from MH i2c: E2 17 00 6C CB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 03 [11:16:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:16:34]wFMCommunicate OK [11:16:34]requested_item fd.num is exist - process it [11:16:34]SAM_PROTO_GetFieldsCounters [11:16:34]wFMCommunicate request_size=4 [11:16:34]MH_SAM_APDU [11:16:34]CAPDU: 80 13 00 00 [11:16:34]Write to MH i2c: E2 08 00 6D CB 80 13 00 00 00 00 00 00 B4 [11:16:34]Write i2c OK [11:16:34]MH_I2C_Read... [11:16:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:34]Read from MH i2c: E2 [11:16:34]MH_I2C_Read... [11:16:34]Read from MH i2c: E2 62 00 [11:16:34]MH_I2C_Read... [11:16:34]Read from MH i2c: E2 62 00 6D CB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A6 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [11:16:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A6 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:16:34]wFMCommunicate OK [11:16:34]SAM_PROTO_GetFieldsCounters done [11:16:34]requested_item shift.num is exist - process it [11:16:34]requested_item shift.opened is exist - process it [11:16:34]req_shift_opened [11:16:34]FM_GetShiftState [11:16:34]SAM_PROTO_GetShiftState [11:16:34]wFMCommunicate request_size=4 [11:16:34]MH_SAM_APDU [11:16:34]CAPDU: 80 13 01 00 [11:16:34]Write to MH i2c: E2 08 00 6E CB 80 13 01 00 00 00 00 00 B6 [11:16:34]Write i2c OK [11:16:34]MH_I2C_Read... [11:16:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:34]Read from MH i2c: E2 [11:16:34]MH_I2C_Read... [11:16:34]Read from MH i2c: E2 0E 00 [11:16:34]MH_I2C_Read... [11:16:34]Read from MH i2c: E2 0E 00 6E CB 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 BC [11:16:34]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:16:34]wFMCommunicate OK [11:16:34]SAM_PROTO_GetShiftState done [11:16:34]FM_GetShiftState done [11:16:34]req_shift_opened done [11:16:34]requested_item shift.open_date is exist - process it [11:16:34]req_shift_open_date [11:16:34]req_shift_open_date done [11:16:34]produce_requested_data done [11:16:34]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69286,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [11:16:34]process_action_free close_receipt [11:16:34]json_value_free [11:16:34]json_value_free done [11:16:34]process_json_proto returns [11:16:34]Send response to host [11:16:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69286,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [11:16:34]free response buf [11:16:34]execute_script done [11:16:34]execute_script returns [11:16:34]free content buf [11:16:34]Sock 9.Close socket [11:16:34]Sock 9.Thread stoped [11:16:38]OFD Sender: No OFD packet to send [11:16:43]OFD Sender: No OFD packet to send [11:16:48]OFD Sender: No OFD packet to send [11:16:53]OFD Sender: No OFD packet to send [11:16:58]OFD Sender: No OFD packet to send [11:17:03]OFD Sender: No OFD packet to send [11:17:08]OFD Sender: No OFD packet to send [11:17:13]OFD Sender: No OFD packet to send [11:17:18]OFD Sender: No OFD packet to send [11:17:23]OFD Sender: No OFD packet to send [11:17:28]OFD Sender: No OFD packet to send [11:17:33]OFD Sender: No OFD packet to send [11:17:38]OFD Sender: No OFD packet to send [11:17:43]OFD Sender: No OFD packet to send [11:17:48]OFD Sender: No OFD packet to send [11:17:53]OFD Sender: No OFD packet to send [11:17:58]OFD Sender: No OFD packet to send [11:18:03]OFD Sender: No OFD packet to send [11:18:04]accept exits with 8 [11:18:04]New connection [11:18:04]New thread 3067260260 created [11:18:04]Thread 3067116900 joined [11:18:04]Waiting for new connection... [11:18:04] Sock 8.Parse request [11:18:04]Sock 8.Check first char [11:18:04]Sock 8.First char is OK [11:18:04]request: POST /json_proto HTTP/1.0 [11:18:04]Method: POST [11:18:04]URL: /json_proto [11:18:04]Method is POST - this is cgi request [11:18:04]url: /json_proto [11:18:04]query_string will be loaded in cgi processing [11:18:04]execute_cgi json_proto POST (null) [11:18:04]execute_cgi path=json_proto method=POST [11:18:04]POST find Content-Length [11:18:04]Host: 172.17.50.3:8080 [11:18:04]Content-Length: 754 [11:18:04]Content-Type: application/json [11:18:04] [11:18:04]POST finish read [11:18:04]Found Content-Length = 754 [11:18:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\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\u041A \u0413\u041F\u041D\u0410 Online\u000A30100939", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:04]execute_script... [11:18: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)2885002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\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\u041A \u0413\u041F\u041D\u0410 Online\u000A30100939", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:04]POST & json_proto [11:18:04]process_json_proto [11:18:04]json parsed OK: [11:18:04]protocol is kg_v1.0 [11:18:04]action value=close_receipt [11:18:04]process_action close_receipt [11:18:04]cmd_close_receipt [11:18:04]MH_GetDate [11:18:04]Write to MH i2c: F0 00 00 6F CB 29 [11:18:04]Write i2c OK [11:18:04]MH_I2C_Read... [11:18:04]Read from MH i2c: F0 [11:18:04]MH_I2C_Read... [11:18:04]Read from MH i2c: F0 09 00 [11:18:04]MH_I2C_Read... [11:18:04]Read from MH i2c: F0 09 00 6F CB 00 F7 E6 14 67 6B 98 1E 66 11 [11:18:04]GetLastDocTimeStamp 1729423001 [11:18:04]current date 1729423095 [11:18:04]FM_GetShiftState [11:18:04]SAM_PROTO_GetShiftState [11:18:04]wFMCommunicate request_size=4 [11:18:04]MH_SAM_APDU [11:18:04]CAPDU: 80 13 01 00 [11:18:04]Write to MH i2c: E2 08 00 70 CB 80 13 01 00 00 00 00 00 B8 [11:18:04]Write i2c OK [11:18:04]MH_I2C_Read... [11:18:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:05]Read from MH i2c: E2 [11:18:05]MH_I2C_Read... [11:18:05]Read from MH i2c: E2 0E 00 [11:18:05]MH_I2C_Read... [11:18:05]Read from MH i2c: E2 0E 00 70 CB 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 BE [11:18:05]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:18:05]wFMCommunicate OK [11:18:05]SAM_PROTO_GetShiftState done [11:18:05]FM_GetShiftState done [11:18:05]opened in 1729383220 [11:18:05]opened+sec_in_day 1729469620 [11:18:05]quantity*price = 0 [11:18:05]sum+1 = 1 [11:18:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 132 20.10.2024 11:18 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30100939 ФМ: 0000000000963346 ФД: 69287 ФПД: 192452420937764 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111815&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69287&fm=192452420937764&tin=02508201610067®Number=0000000000156251&sum=0 [11:18:06]StoreToDocumentArchive [11:18:06]shift 193 fd 69287 [11:18:06]save to /storage/0193/doc_00069287 [11:18:06]save last doc name /storage/0193/doc_00069287 to /storage/kkm_last_doc_name [11:18:06]save OK [11:18:06]Clear old archive folders... [11:18:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:18:06]tlvbuf is 00890510 [11:18:06]SAM_PROTO_ClearQueue [11:18:06]wFMCommunicate request_size=4 [11:18:06]MH_SAM_APDU [11:18:06]CAPDU: 80 09 00 00 [11:18:06]Write to MH i2c: E2 08 00 7D CB 80 09 00 00 00 00 00 00 BA [11:18:06]Write i2c OK [11:18:06]MH_I2C_Read... [11:18:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:06]Read from MH i2c: E2 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: E2 03 00 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: E2 03 00 7D CB 00 90 00 BC [11:18:06]RAPDU: 90 00 [11:18:06]wFMCommunicate OK [11:18:06]SAM_PROTO_ClearQueue done [11:18:06]KKMCreateOFDPacket [11:18:06]OFDProtocolAddRootSTLVToBuf [11:18:06]FM_MakeSignedData [11:18:06]FM_MakeSignedData [11:18:06]SAM_PROTO_SignData [11:18:06]wFMCommunicate request_size=4 [11:18:06]MH_SAM_APDU [11:18:06]CAPDU: 80 0D 01 02 [11:18:06]Write to MH i2c: E2 08 00 7E CB 80 0D 01 02 00 00 00 00 C2 [11:18:06]Write i2c OK [11:18:06]MH_I2C_Read... [11:18:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:06]Read from MH i2c: E2 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: E2 03 00 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: E2 03 00 7E CB 00 90 00 BD [11:18:06]RAPDU: 90 00 [11:18:06]wFMCommunicate OK [11:18:06]wFMCommunicate request_size=255 [11:18:06]MH_SAM_APDU [11:18:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 84 00 00 00 F4 03 04 00 F7 E6 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A7 0E 01 00 35 04 06 00 AF [11:18:06]Write to MH i2c: E2 02 01 7F CB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 84 00 00 00 F4 03 04 00 F7 E6 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A7 0E 01 00 35 04 06 00 AF 00 00 63 [11:18:06]Write i2c OK [11:18:06]MH_I2C_Read... [11:18:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:06]Read from MH i2c: E2 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: E2 03 00 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: E2 03 00 7F CB 00 90 00 BE [11:18:06]RAPDU: 90 00 [11:18:06]wFMCommunicate OK [11:18:06]wFMCommunicate request_size=10 [11:18:06]MH_SAM_APDU [11:18:06]CAPDU: 80 0D 02 02 05 08 D2 2F A8 24 [11:18:06]Write to MH i2c: E2 0D 00 80 CB 80 0D 02 02 05 00 08 D2 2F A8 24 00 00 A4 [11:18:06]Write i2c OK [11:18:06]MH_I2C_Read... [11:18:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:06]Read from MH i2c: E2 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: E2 03 00 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: E2 03 00 80 CB 00 90 00 BF [11:18:06]RAPDU: 90 00 [11:18:06]wFMCommunicate OK [11:18:06]wFMCommunicate request_size=4 [11:18:06]MH_SAM_APDU [11:18:06]CAPDU: 80 0D 03 02 [11:18:06]Write to MH i2c: E2 08 00 81 CB 80 0D 03 02 00 00 00 00 C7 [11:18:06]Write i2c OK [11:18:06]MH_I2C_Read... [11:18:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:06]Read from MH i2c: E2 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: E2 0B 00 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: E2 0B 00 81 CB 00 49 31 62 70 B7 70 5C 38 90 00 CF [11:18:06]RAPDU: 49 31 62 70 B7 70 5C 38 90 00 [11:18:06]wFMCommunicate OK [11:18:06]SAM_PROTO_SignData done [11:18:06]FM_MakeSignedData done [11:18:06]CreateOFDProtocolMessage [11:18:06]wFMCommunicate request_size=4 [11:18:06]MH_SAM_APDU [11:18:06]CAPDU: 80 11 00 00 [11:18:06]Write to MH i2c: E2 08 00 82 CB 80 11 00 00 00 00 00 00 C7 [11:18:06]Write i2c OK [11:18:06]MH_I2C_Read... [11:18:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:06]Read from MH i2c: E2 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: E2 17 00 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: E2 17 00 82 CB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 19 [11:18:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:18:06]wFMCommunicate OK [11:18:06]CreateOFDProtocolMessage done [11:18:06]OFDSenderStorePacket 69287 [11:18:06]StoreOFDPacket docnum=69287 [11:18:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 DB DF 07 01 B1 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 84 00 00 00 F4 03 04 00 F7 E6 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A7 0E 01 00 35 04 06 00 AF 08 D2 2F A8 24 49 31 62 70 B7 70 5C 38 [11:18:06]CheckFolder [11:18:06]dirname=/storage/ofd_packets [11:18:06]CheckFolder done [11:18:06]ProducePacketName [11:18:06]name=ofd_packets/00069287 [11:18:06]NVStorageSaveData ofd_packets/00069287 [11:18:06]File name is /storage/ofd_packets/00069287 [11:18:06]Write 301 bytes [11:18:06]NVStorageSaveData done [11:18:06]OFDSenderStorePacket done [11:18:06]KKMCreateOFDPacket done [11:18:06]NVStorageSaveData kkm_last_timestamp [11:18:06]File name is /storage/kkm_last_timestamp [11:18:06]Write 4 bytes [11:18:06]NVStorageSaveData done [11:18:06]ExternCall_PrintAddStr [11:18:06]wPrintStart [11:18:06]Write to MH i2c: 01 00 00 83 CB 4E [11:18:06]Write i2c OK [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: 01 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: 01 07 00 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: 01 07 00 83 CB 00 00 00 00 00 FF 0F 63 [11:18:06]RasterBufferAndPrint [11:18:06]line Счет N : (1)2885002 [11:18:06]line ИНН: 02508201610067 [11:18:06]line Контрольно-Кассовый Чек [11:18:06]line ПРОДАЖА [11:18:06]line ТРК (МРК, ГНК) : 12 [11:18:06]line Товар: 2710124130 [11:18:06]line Аи-92-К-5 [11:18:06]line 5.000 * 0.00 [11:18:06]line = 0.00 [11:18:06]line НДС 12% НСП 1% [11:18:06]line > о реализуемом товаре [11:18:06]line ИТОГО: 0.00 [11:18:06]line НСП 1% : 0.00 [11:18:06]line НДС 12% : 0.00 [11:18:06]line Наличными: 0.00 [11:18:06]line Безнал.: 0.00 [11:18:06]line Место: АЗС № 85 "Партнер Нефть" [11:18:06]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:18:06]line СНО: Общий режим [11:18:06]line Чек 132 20.10.2024 11:18 [11:18:06]line Смена: 193 ФФД: 1.0 [11:18:06]line ЗНМ: 0300000167 [11:18:06]line РНМ: 0000000000156251 [11:18:06]line Версия ККМ: v1.0 [11:18:06]line Талоны: ТК ГПНА Online [11:18:06]line 30100939 [11:18:06]line ФМ: 0000000000963346 [11:18:06]line ФД: 69287 [11:18:06]line ФПД: 192452420937764 [11:18:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111815&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69287&fm=192452420937764&tin=02508201610067®Number=0000000000156251&sum=0 [11:18:07]OFD Sender: Processing packet 69287 [packets to send 18, broken 17] [11:18:07]ProducePacketName [11:18:07]name=ofd_packets/00069287 [11:18:07]OFD Sender: To server: pG, [11:18:07]CommunicateWithHost lk.salyk.kg:30040 [11:18:07]ConnectInit lk.salyk.kg [11:18:07]written 0, free lines is 4095 [11:18:07]Connected sock=9 [11:18:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 DB DF 07 01 B1 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 84 00 00 00 F4 03 04 00 F7 E6 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A7 0E 01 00 35 04 06 00 AF 08 D2 2F A8 24 49 31 62 70 B7 70 5C 38 [11:18:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 9F 54 47 00 36 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A7 0E 01 00 F4 03 04 00 9E 90 14 67 B6 04 01 00 00 05 98 57 89 9A 9C 32 A8 [11:18:07]CommunicateWithHost err = 0 [11:18:07]CheckOFDResponse [11:18:07]1017 (14) - 77093643461234 [11:18:07]1041 (16) - 0000000000963346 [11:18:07]1040 (4) - 69287 [11:18:07]1012 (4) - 20.10.2024 05:09 [11:18:07]1206 (1) - 0 [11:18:07]OFD Sender: Remove packet 69287 [11:18:07]ProducePacketName [11:18:07]name=ofd_packets/00069287 [11:18:07]NVStorageDeleteData [11:18:07]Write to MH i2c: 01 00 00 AD CB 78 [11:18:07]Write i2c OK [11:18:07]MH_I2C_Read... [11:18:07]Read from MH i2c: 01 [11:18:07]MH_I2C_Read... [11:18:07]Read from MH i2c: 01 07 00 [11:18:07]MH_I2C_Read... [11:18:07]Read from MH i2c: 01 07 00 AD CB 00 00 00 00 00 08 0D 94 [11:18:07]RasterBufferAndPrint [11:18:07]line [11:18:07]line [11:18:07]line [11:18:07]line [11:18:07]line [11:18:07]written 0, free lines is 3343 [11:18:07]MH_Cut [11:18:07]Write to MH i2c: D1 01 00 B4 CB 01 51 [11:18:07]Write i2c OK [11:18:07]MH_I2C_Read... [11:18:07]Read from MH i2c: D1 [11:18:07]MH_I2C_Read... [11:18:07]Read from MH i2c: D1 01 00 [11:18:07]MH_I2C_Read... [11:18:07]Read from MH i2c: D1 01 00 B4 CB 00 50 [11:18:07]Write to MH i2c: 01 00 00 B5 CB 80 [11:18:07]Write i2c OK [11:18:07]MH_I2C_Read... [11:18:07]OFD Sender: No OFD packet to send [11:18:08]*** Cut start [11:18:08]*** Partial cut [11:18:08]*** CUTSNS_PIN = 1 [11:18:08]*** CUTSNS_PIN = 0 [11:18:08]*** Brake cut motor [11:18:08]Read from MH i2c: 01 [11:18:08]MH_I2C_Read... [11:18:08]*** Stop cut motor [11:18:08]*** Cut end [11:18:08]Read from MH i2c: 01 07 00 [11:18:08]MH_I2C_Read... [11:18:08]Read from MH i2c: 01 07 00 B5 CB 00 00 00 00 00 FF 0F 95 [11:18:08]process_action close_receipt done [11:18:08]requested_data is exist [11:18:08]produce_requested_data [11:18:08]requested_item fm.sn is exist - process it [11:18:08]wFMCommunicate request_size=4 [11:18:08]MH_SAM_APDU [11:18:08]CAPDU: 80 11 00 00 [11:18:08]Write to MH i2c: E2 08 00 B6 CB 80 11 00 00 00 00 00 00 FB [11:18:08]Write i2c OK [11:18:08]MH_I2C_Read... [11:18:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:08]Read from MH i2c: E2 [11:18:08]MH_I2C_Read... [11:18:08]Read from MH i2c: E2 17 00 [11:18:08]MH_I2C_Read... [11:18:08]Read from MH i2c: E2 17 00 B6 CB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4D [11:18:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:18:08]wFMCommunicate OK [11:18:08]requested_item fd.num is exist - process it [11:18:08]SAM_PROTO_GetFieldsCounters [11:18:08]wFMCommunicate request_size=4 [11:18:08]MH_SAM_APDU [11:18:08]CAPDU: 80 13 00 00 [11:18:08]Write to MH i2c: E2 08 00 B7 CB 80 13 00 00 00 00 00 00 FE [11:18:08]Write i2c OK [11:18:08]MH_I2C_Read... [11:18:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:08]Read from MH i2c: E2 [11:18:08]MH_I2C_Read... [11:18:08]Read from MH i2c: E2 62 00 [11:18:08]MH_I2C_Read... [11:18:08]Read from MH i2c: E2 62 00 B7 CB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A7 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [11:18:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A7 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:18:08]wFMCommunicate OK [11:18:08]SAM_PROTO_GetFieldsCounters done [11:18:08]requested_item shift.num is exist - process it [11:18:08]requested_item shift.opened is exist - process it [11:18:08]req_shift_opened [11:18:08]FM_GetShiftState [11:18:08]SAM_PROTO_GetShiftState [11:18:08]wFMCommunicate request_size=4 [11:18:08]MH_SAM_APDU [11:18:08]CAPDU: 80 13 01 00 [11:18:08]Write to MH i2c: E2 08 00 B8 CB 80 13 01 00 00 00 00 00 00 [11:18:08]Write i2c OK [11:18:08]MH_I2C_Read... [11:18:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:09]Read from MH i2c: E2 [11:18:09]MH_I2C_Read... [11:18:09]Read from MH i2c: E2 0E 00 [11:18:09]MH_I2C_Read... [11:18:09]Read from MH i2c: E2 0E 00 B8 CB 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 06 [11:18:09]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:18:09]wFMCommunicate OK [11:18:09]SAM_PROTO_GetShiftState done [11:18:09]FM_GetShiftState done [11:18:09]req_shift_opened done [11:18:09]requested_item shift.open_date is exist - process it [11:18:09]req_shift_open_date [11:18:09]req_shift_open_date done [11:18:09]produce_requested_data done [11:18:09]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69287,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [11:18:09]process_action_free close_receipt [11:18:09]json_value_free [11:18:09]json_value_free done [11:18:09]process_json_proto returns [11:18:09]Send response to host [11:18:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69287,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [11:18:09]free response buf [11:18:09]execute_script done [11:18:09]execute_script returns [11:18:09]free content buf [11:18:09]Sock 8.Close socket [11:18:09]Sock 8.Thread stoped [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:35]accept exits with 10 [11:18:35]New connection [11:18:35]New thread 3067116900 created [11:18:35]Thread 3067260260 joined [11:18:35]Waiting for new connection... [11:18:35] Sock 10.Parse request [11:18:35]Sock 10.Check first char [11:18:35]Sock 10.First char is OK [11:18:35]request: POST /json_proto HTTP/1.0 [11:18:35]Method: POST [11:18:35]URL: /json_proto [11:18:35]Method is POST - this is cgi request [11:18:35]url: /json_proto [11:18:35]query_string will be loaded in cgi processing [11:18:35]execute_cgi json_proto POST (null) [11:18:35]execute_cgi path=json_proto method=POST [11:18:35]POST find Content-Length [11:18:35]Host: 172.17.50.3:8080 [11:18:35]Content-Length: 678 [11:18:35]Content-Type: application/json [11:18:35] [11:18:35]POST finish read [11:18:35]Found Content-Length = 678 [11:18:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:35]execute_script... [11:18:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:35]POST & json_proto [11:18:35]process_json_proto [11:18:35]json parsed OK: [11:18:35]protocol is kg_v1.0 [11:18:35]action value=close_receipt [11:18:35]process_action close_receipt [11:18:35]cmd_close_receipt [11:18:35]MH_GetDate [11:18:35]Write to MH i2c: F0 00 00 B9 CB 73 [11:18:35]Write i2c OK [11:18:35]MH_I2C_Read... [11:18:35]Read from MH i2c: F0 [11:18:35]MH_I2C_Read... [11:18:35]Read from MH i2c: F0 09 00 [11:18:35]MH_I2C_Read... [11:18:35]Read from MH i2c: F0 09 00 B9 CB 00 15 E7 14 67 6B 98 1E 66 7A [11:18:35]GetLastDocTimeStamp 1729423095 [11:18:35]current date 1729423125 [11:18:35]FM_GetShiftState [11:18:35]SAM_PROTO_GetShiftState [11:18:35]wFMCommunicate request_size=4 [11:18:35]MH_SAM_APDU [11:18:35]CAPDU: 80 13 01 00 [11:18:35]Write to MH i2c: E2 08 00 BA CB 80 13 01 00 00 00 00 00 02 [11:18:35]Write i2c OK [11:18:35]MH_I2C_Read... [11:18:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:35]Read from MH i2c: E2 [11:18:35]MH_I2C_Read... [11:18:35]Read from MH i2c: E2 0E 00 [11:18:35]MH_I2C_Read... [11:18:35]Read from MH i2c: E2 0E 00 BA CB 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 08 [11:18:35]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:18:35]wFMCommunicate OK [11:18:35]SAM_PROTO_GetShiftState done [11:18:35]FM_GetShiftState done [11:18:35]opened in 1729383220 [11:18:35]opened+sec_in_day 1729469620 [11:18:35]quantity*price = 50041 [11:18:35]sum+1 = 50042 [11:18:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 133 20.10.2024 11:18 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69288 ФПД: 126157676368059 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111845&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69288&fm=126157676368059&tin=02508201610067®Number=0000000000156251&sum=50000 [11:18:36]StoreToDocumentArchive [11:18:36]shift 193 fd 69288 [11:18:36]save to /storage/0193/doc_00069288 [11:18:36]save last doc name /storage/0193/doc_00069288 to /storage/kkm_last_doc_name [11:18:36]save OK [11:18:36]Clear old archive folders... [11:18:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:18:36]tlvbuf is 0048E030 [11:18:36]SAM_PROTO_ClearQueue [11:18:36]wFMCommunicate request_size=4 [11:18:36]MH_SAM_APDU [11:18:36]CAPDU: 80 09 00 00 [11:18:36]Write to MH i2c: E2 08 00 C7 CB 80 09 00 00 00 00 00 00 04 [11:18:36]Write i2c OK [11:18:36]MH_I2C_Read... [11:18:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:36]Read from MH i2c: E2 [11:18:36]MH_I2C_Read... [11:18:36]Read from MH i2c: E2 03 00 [11:18:36]MH_I2C_Read... [11:18:36]Read from MH i2c: E2 03 00 C7 CB 00 90 00 06 [11:18:36]RAPDU: 90 00 [11:18:36]wFMCommunicate OK [11:18:36]SAM_PROTO_ClearQueue done [11:18:36]KKMCreateOFDPacket [11:18:36]OFDProtocolAddRootSTLVToBuf [11:18:36]FM_MakeSignedData [11:18:36]FM_MakeSignedData [11:18:36]SAM_PROTO_SignData [11:18:36]wFMCommunicate request_size=4 [11:18:36]MH_SAM_APDU [11:18:36]CAPDU: 80 0D 01 02 [11:18:36]Write to MH i2c: E2 08 00 C8 CB 80 0D 01 02 00 00 00 00 0C [11:18:36]Write i2c OK [11:18:36]MH_I2C_Read... [11:18:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:36]Read from MH i2c: E2 [11:18:36]MH_I2C_Read... [11:18:36]Read from MH i2c: E2 03 00 [11:18:36]MH_I2C_Read... [11:18:36]Read from MH i2c: E2 03 00 C8 CB 00 90 00 07 [11:18:36]RAPDU: 90 00 [11:18:36]wFMCommunicate OK [11:18:36]wFMCommunicate request_size=255 [11:18:36]MH_SAM_APDU [11:18: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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 15 E7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A8 0E 01 00 35 04 06 00 72 [11:18:36]Write to MH i2c: E2 02 01 C9 CB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 15 E7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A8 0E 01 00 35 04 06 00 72 00 00 7B [11:18:36]Write i2c OK [11:18:36]MH_I2C_Read... [11:18:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:37]Read from MH i2c: E2 [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: E2 03 00 [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: E2 03 00 C9 CB 00 90 00 08 [11:18:37]RAPDU: 90 00 [11:18:37]wFMCommunicate OK [11:18:37]wFMCommunicate request_size=10 [11:18:37]MH_SAM_APDU [11:18:37]CAPDU: 80 0D 02 02 05 BD 5F 7C 50 BB [11:18:37]Write to MH i2c: E2 0D 00 CA CB 80 0D 02 02 05 00 BD 5F 7C 50 BB 00 00 BC [11:18:37]Write i2c OK [11:18:37]MH_I2C_Read... [11:18:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:37]Read from MH i2c: E2 [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: E2 03 00 [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: E2 03 00 CA CB 00 90 00 09 [11:18:37]RAPDU: 90 00 [11:18:37]wFMCommunicate OK [11:18:37]wFMCommunicate request_size=4 [11:18:37]MH_SAM_APDU [11:18:37]CAPDU: 80 0D 03 02 [11:18:37]Write to MH i2c: E2 08 00 CB CB 80 0D 03 02 00 00 00 00 11 [11:18:37]Write i2c OK [11:18:37]MH_I2C_Read... [11:18:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:37]Read from MH i2c: E2 [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: E2 0B 00 [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: E2 0B 00 CB CB 00 6B 1E A7 79 BC 3C 25 53 90 00 2B [11:18:37]RAPDU: 6B 1E A7 79 BC 3C 25 53 90 00 [11:18:37]wFMCommunicate OK [11:18:37]SAM_PROTO_SignData done [11:18:37]FM_MakeSignedData done [11:18:37]CreateOFDProtocolMessage [11:18:37]wFMCommunicate request_size=4 [11:18:37]MH_SAM_APDU [11:18:37]CAPDU: 80 11 00 00 [11:18:37]Write to MH i2c: E2 08 00 CC CB 80 11 00 00 00 00 00 00 11 [11:18:37]Write i2c OK [11:18:37]MH_I2C_Read... [11:18:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:37]Read from MH i2c: E2 [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: E2 17 00 [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: E2 17 00 CC CB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 63 [11:18:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:18:37]wFMCommunicate OK [11:18:37]CreateOFDProtocolMessage done [11:18:37]OFDSenderStorePacket 69288 [11:18:37]StoreOFDPacket docnum=69288 [11:18:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 44 80 07 01 7E 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 15 E7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A8 0E 01 00 35 04 06 00 72 BD 5F 7C 50 BB 6B 1E A7 79 BC 3C 25 53 [11:18:37]CheckFolder [11:18:37]dirname=/storage/ofd_packets [11:18:37]CheckFolder done [11:18:37]ProducePacketName [11:18:37]name=ofd_packets/00069288 [11:18:37]NVStorageSaveData ofd_packets/00069288 [11:18:37]File name is /storage/ofd_packets/00069288 [11:18:37]Write 301 bytes [11:18:37]NVStorageSaveData done [11:18:37]OFDSenderStorePacket done [11:18:37]KKMCreateOFDPacket done [11:18:37]NVStorageSaveData kkm_last_timestamp [11:18:37]File name is /storage/kkm_last_timestamp [11:18:37]Write 4 bytes [11:18:37]NVStorageSaveData done [11:18:37]ExternCall_PrintAddStr [11:18:37]wPrintStart [11:18:37]Write to MH i2c: 01 00 00 CD CB 98 [11:18:37]Write i2c OK [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: 01 [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: 01 07 00 [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: 01 07 00 CD CB 00 00 00 00 00 FF 0F AD [11:18:37]RasterBufferAndPrint [11:18:37]line Счет N : (1)2885003 [11:18:37]line ИНН: 02508201610067 [11:18:37]line Контрольно-Кассовый Чек [11:18:37]line ПРОДАЖА [11:18:37]line ТРК (МРК, ГНК) : 42 [11:18:37]line Товар: 2710124130 [11:18:37]line Аи-92-К-5 [11:18:37]line 7.480 * 66.90 [11:18:37]line = 500.41 [11:18:37]line НДС 12% НСП 1% [11:18:37]line > о реализуемом товаре [11:18:37]line ОКРУГЛЕНИЕ: -0.41 [11:18:37]line ИТОГО: 500.00 [11:18:37]line Внесено: 500.00 [11:18:37]line СДАЧА: 0.00 [11:18:37]line НСП 1% : 4.43 [11:18:37]line НДС 12% : 53.14 [11:18:37]line Наличными: 500.00 [11:18:37]line Безнал.: 0.00 [11:18:37]line Место: АЗС № 85 "Партнер Нефть" [11:18:37]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:18:37]line СНО: Общий режим [11:18:37]line Чек 133 20.10.2024 11:18 [11:18:37]line Смена: 193 ФФД: 1.0 [11:18:37]line ЗНМ: 0300000167 [11:18:37]line РНМ: 0000000000156251 [11:18:37]line Версия ККМ: v1.0 [11:18:37]line ФМ: 0000000000963346 [11:18:37]line ФД: 69288 [11:18:37]line ФПД: 126157676368059 [11:18:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111845&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69288&fm=126157676368059&tin=02508201610067®Number=0000000000156251&sum=50000 [11:18:37]written 0, free lines is 4095 [11:18:37]OFD Sender: Processing packet 69288 [packets to send 18, broken 17] [11:18:37]ProducePacketName [11:18:37]name=ofd_packets/00069288 [11:18:37]OFD Sender: To server: pG, [11:18:37]CommunicateWithHost lk.salyk.kg:30040 [11:18:37]ConnectInit lk.salyk.kg [11:18:37]Connected sock=9 [11:18:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 44 80 07 01 7E 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 15 E7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A8 0E 01 00 35 04 06 00 72 BD 5F 7C 50 BB 6B 1E A7 79 BC 3C 25 53 [11:18:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 AF CB 47 00 C5 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A8 0E 01 00 F4 03 04 00 BC 90 14 67 B6 04 01 00 00 EC 70 07 20 CA 99 14 45 [11:18:37]CommunicateWithHost err = 0 [11:18:37]CheckOFDResponse [11:18:37]1017 (14) - 77093643461234 [11:18:37]1041 (16) - 0000000000963346 [11:18:37]1040 (4) - 69288 [11:18:37]1012 (4) - 20.10.2024 05:10 [11:18:37]1206 (1) - 0 [11:18:37]OFD Sender: Remove packet 69288 [11:18:37]ProducePacketName [11:18:37]name=ofd_packets/00069288 [11:18:37]NVStorageDeleteData [11:18:37]Write to MH i2c: 01 00 00 F8 CB C3 [11:18:37]Write i2c OK [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: 01 [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: 01 07 00 [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: 01 07 00 F8 CB 00 00 00 00 00 F6 0C CC [11:18:37]RasterBufferAndPrint [11:18:37]line [11:18:37]line [11:18:37]line [11:18:37]line [11:18:37]line [11:18:37]written 0, free lines is 3324 [11:18:37]MH_Cut [11:18:37]Write to MH i2c: D1 01 00 FF CB 01 9C [11:18:37]Write i2c OK [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: D1 [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: D1 01 00 [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: D1 01 00 FF CB 00 9B [11:18:37]Write to MH i2c: 01 00 00 00 CC CC [11:18:37]Write i2c OK [11:18:37]MH_I2C_Read... [11:18:38]OFD Sender: No OFD packet to send [11:18:38]*** Cut start [11:18:38]*** Partial cut [11:18:38]*** CUTSNS_PIN = 1 [11:18:38]*** CUTSNS_PIN = 0 [11:18:38]*** Brake cut motor [11:18:39]Read from MH i2c: 01 [11:18:39]MH_I2C_Read... [11:18:39]*** Stop cut motor [11:18:39]*** Cut end [11:18:39]Read from MH i2c: 01 07 00 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: 01 07 00 00 CC 00 00 00 00 00 FF 0F E1 [11:18:39]process_action close_receipt done [11:18:39]requested_data is exist [11:18:39]produce_requested_data [11:18:39]requested_item fm.sn is exist - process it [11:18:39]wFMCommunicate request_size=4 [11:18:39]MH_SAM_APDU [11:18:39]CAPDU: 80 11 00 00 [11:18:39]Write to MH i2c: E2 08 00 01 CC 80 11 00 00 00 00 00 00 47 [11:18:39]Write i2c OK [11:18:39]MH_I2C_Read... [11:18:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:39]Read from MH i2c: E2 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: E2 17 00 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: E2 17 00 01 CC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 99 [11:18:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:18:39]wFMCommunicate OK [11:18:39]requested_item fd.num is exist - process it [11:18:39]SAM_PROTO_GetFieldsCounters [11:18:39]wFMCommunicate request_size=4 [11:18:39]MH_SAM_APDU [11:18:39]CAPDU: 80 13 00 00 [11:18:39]Write to MH i2c: E2 08 00 02 CC 80 13 00 00 00 00 00 00 4A [11:18:39]Write i2c OK [11:18:39]MH_I2C_Read... [11:18:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:39]Read from MH i2c: E2 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: E2 62 00 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: E2 62 00 02 CC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A8 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [11:18:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A8 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:18:39]wFMCommunicate OK [11:18:39]SAM_PROTO_GetFieldsCounters done [11:18:39]requested_item shift.num is exist - process it [11:18:39]requested_item shift.opened is exist - process it [11:18:39]req_shift_opened [11:18:39]FM_GetShiftState [11:18:39]SAM_PROTO_GetShiftState [11:18:39]wFMCommunicate request_size=4 [11:18:39]MH_SAM_APDU [11:18:39]CAPDU: 80 13 01 00 [11:18:39]Write to MH i2c: E2 08 00 03 CC 80 13 01 00 00 00 00 00 4C [11:18:39]Write i2c OK [11:18:39]MH_I2C_Read... [11:18:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:39]Read from MH i2c: E2 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: E2 0E 00 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: E2 0E 00 03 CC 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 52 [11:18:39]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:18:39]wFMCommunicate OK [11:18:39]SAM_PROTO_GetShiftState done [11:18:39]FM_GetShiftState done [11:18:39]req_shift_opened done [11:18:39]requested_item shift.open_date is exist - process it [11:18:39]req_shift_open_date [11:18:39]req_shift_open_date done [11:18:39]produce_requested_data done [11:18:39]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69288,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [11:18:39]process_action_free close_receipt [11:18:39]json_value_free [11:18:39]json_value_free done [11:18:39]process_json_proto returns [11:18:39]Send response to host [11:18:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69288,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [11:18:39]free response buf [11:18:39]execute_script done [11:18:39]execute_script returns [11:18:39]free content buf [11:18:39]Sock 10.Close socket [11:18:39]Sock 10.Thread stoped [11:18:43]OFD Sender: No OFD packet to send [11:18:48]OFD Sender: No OFD packet to send [11:18:53]OFD Sender: No OFD packet to send [11:18:58]OFD Sender: No OFD packet to send [11:19:03]OFD Sender: No OFD packet to send [11:19:08]OFD Sender: No OFD packet to send [11:19:13]OFD Sender: No OFD packet to send [11:19:18]OFD Sender: No OFD packet to send [11:19:23]OFD Sender: No OFD packet to send [11:19:28]OFD Sender: No OFD packet to send [11:19:33]OFD Sender: No OFD packet to send [11:19:38]OFD Sender: No OFD packet to send [11:19:43]OFD Sender: No OFD packet to send [11:19:48]OFD Sender: No OFD packet to send [11:19:53]OFD Sender: No OFD packet to send [11:19:58]OFD Sender: No OFD packet to send [11:20:03]OFD Sender: No OFD packet to send [11:20:08]OFD Sender: No OFD packet to send [11:20:13]OFD Sender: No OFD packet to send [11:20:18]OFD Sender: No OFD packet to send [11:20:23]OFD Sender: No OFD packet to send [11:20:28]OFD Sender: No OFD packet to send [11:20:33]OFD Sender: No OFD packet to send [11:20:38]OFD Sender: No OFD packet to send [11:20:43]OFD Sender: No OFD packet to send [11:20:48]OFD Sender: No OFD packet to send [11:20:53]OFD Sender: No OFD packet to send [11:20:58]OFD Sender: No OFD packet to send [11:21:03]OFD Sender: No OFD packet to send [11:21:04]accept exits with 8 [11:21:04]New connection [11:21:04]New thread 3067260260 created [11:21:04]Thread 3067116900 joined [11:21:04]Waiting for new connection... [11:21:04] Sock 8.Parse request [11:21:04]Sock 8.Check first char [11:21:04]Sock 8.First char is OK [11:21:04]request: POST /json_proto HTTP/1.0 [11:21:04]Method: POST [11:21:04]URL: /json_proto [11:21:04]Method is POST - this is cgi request [11:21:04]url: /json_proto [11:21:04]query_string will be loaded in cgi processing [11:21:04]execute_cgi json_proto POST (null) [11:21:04]execute_cgi path=json_proto method=POST [11:21:04]POST find Content-Length [11:21:04]Host: 172.17.50.3:8080 [11:21:04]Content-Length: 680 [11:21:04]Content-Type: application/json [11:21:04] [11:21:04]POST finish read [11:21:04]Found Content-Length = 680 [11:21:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 30.190, "sum" : 2300.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2300.00, "total" : 2300.00, "payments": [ { "type": 0, "sum" : 2300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:04]execute_script... [11:21: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)2885004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 30.190, "sum" : 2300.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2300.00, "total" : 2300.00, "payments": [ { "type": 0, "sum" : 2300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:04]POST & json_proto [11:21:04]process_json_proto [11:21:04]json parsed OK: [11:21:04]protocol is kg_v1.0 [11:21:04]action value=close_receipt [11:21:04]process_action close_receipt [11:21:04]cmd_close_receipt [11:21:04]MH_GetDate [11:21:04]Write to MH i2c: F0 00 00 04 CC BF [11:21:04]Write i2c OK [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: F0 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: F0 09 00 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: F0 09 00 04 CC 00 AA E7 14 67 6B 98 1E 66 5B [11:21:04]GetLastDocTimeStamp 1729423125 [11:21:04]current date 1729423274 [11:21:04]FM_GetShiftState [11:21:04]SAM_PROTO_GetShiftState [11:21:04]wFMCommunicate request_size=4 [11:21:04]MH_SAM_APDU [11:21:04]CAPDU: 80 13 01 00 [11:21:04]Write to MH i2c: E2 08 00 05 CC 80 13 01 00 00 00 00 00 4E [11:21:04]Write i2c OK [11:21:04]MH_I2C_Read... [11:21:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:04]Read from MH i2c: E2 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: E2 0E 00 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: E2 0E 00 05 CC 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 54 [11:21:04]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:21:04]wFMCommunicate OK [11:21:04]SAM_PROTO_GetShiftState done [11:21:04]FM_GetShiftState done [11:21:04]opened in 1729383220 [11:21:04]opened+sec_in_day 1729469620 [11:21:04]quantity*price = 230047 [11:21:04]sum+1 = 230049 [11:21:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 2300.00 Внесено: 2300.00 СДАЧА: 0.00 НСП 1% : 20.36 НДС 12% : 244.30 Наличными: 2300.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 134 20.10.2024 11:21 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69289 ФПД: 217542122285428 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112115&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69289&fm=217542122285428&tin=02508201610067®Number=0000000000156251&sum=230000 [11:21:06]StoreToDocumentArchive [11:21:06]shift 193 fd 69289 [11:21:06]save to /storage/0193/doc_00069289 [11:21:06]save last doc name /storage/0193/doc_00069289 to /storage/kkm_last_doc_name [11:21:06]save OK [11:21:06]Clear old archive folders... [11:21:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:21:06]tlvbuf is 007E38A0 [11:21:06]SAM_PROTO_ClearQueue [11:21:06]wFMCommunicate request_size=4 [11:21:06]MH_SAM_APDU [11:21:06]CAPDU: 80 09 00 00 [11:21:06]Write to MH i2c: E2 08 00 12 CC 80 09 00 00 00 00 00 00 50 [11:21:06]Write i2c OK [11:21:06]MH_I2C_Read... [11:21:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:21:06]Read from MH i2c: E2 [11:21:06]MH_I2C_Read... [11:21:06]Read from MH i2c: E2 03 00 [11:21:06]MH_I2C_Read... [11:21:06]Read from MH i2c: E2 03 00 12 CC 00 90 00 52 [11:21:06]RAPDU: 90 00 [11:21:06]wFMCommunicate OK [11:21:06]SAM_PROTO_ClearQueue done [11:21:06]KKMCreateOFDPacket [11:21:06]OFDProtocolAddRootSTLVToBuf [11:21:06]FM_MakeSignedData [11:21:06]FM_MakeSignedData [11:21:06]SAM_PROTO_SignData [11:21:06]wFMCommunicate request_size=4 [11:21:06]MH_SAM_APDU [11:21:06]CAPDU: 80 0D 01 02 [11:21:06]Write to MH i2c: E2 08 00 13 CC 80 0D 01 02 00 00 00 00 58 [11:21:06]Write i2c OK [11:21:06]MH_I2C_Read... [11:21:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:21:06]Read from MH i2c: E2 [11:21:06]MH_I2C_Read... [11:21:06]Read from MH i2c: E2 03 00 [11:21:06]MH_I2C_Read... [11:21:06]Read from MH i2c: E2 03 00 13 CC 00 90 00 53 [11:21:06]RAPDU: 90 00 [11:21:06]wFMCommunicate OK [11:21:06]wFMCommunicate request_size=255 [11:21:06]MH_SAM_APDU [11:21:06]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 75 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 5F 00 00 00 00 07 04 06 00 70 82 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 AB E7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A9 0E 01 00 35 04 06 00 C5 DA 78 EC [11:21:06]Write to MH i2c: E2 02 01 14 CC 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 EE 75 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 5F 00 00 00 00 07 04 06 00 70 82 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 AB E7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A9 0E 01 00 35 04 06 00 C5 DA 78 EC 00 00 D9 [11:21:06]Write i2c OK [11:21:06]MH_I2C_Read... [11:21:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:06]Read from MH i2c: E2 [11:21:06]MH_I2C_Read... [11:21:06]Read from MH i2c: E2 03 00 [11:21:06]MH_I2C_Read... [11:21:06]Read from MH i2c: E2 03 00 14 CC 00 90 00 54 [11:21:06]RAPDU: 90 00 [11:21:06]wFMCommunicate OK [11:21:06]wFMCommunicate request_size=7 [11:21:06]MH_SAM_APDU [11:21:06]CAPDU: 80 0D 02 02 02 29 74 [11:21:06]Write to MH i2c: E2 0A 00 15 CC 80 0D 02 02 02 00 29 74 00 00 FC [11:21:06]Write i2c OK [11:21:06]MH_I2C_Read... [11:21:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:06]Read from MH i2c: E2 [11:21:06]MH_I2C_Read... [11:21:06]Read from MH i2c: E2 03 00 [11:21:06]MH_I2C_Read... [11:21:06]Read from MH i2c: E2 03 00 15 CC 00 90 00 55 [11:21:06]RAPDU: 90 00 [11:21:06]wFMCommunicate OK [11:21:06]wFMCommunicate request_size=4 [11:21:06]MH_SAM_APDU [11:21:06]CAPDU: 80 0D 03 02 [11:21:06]Write to MH i2c: E2 08 00 16 CC 80 0D 03 02 00 00 00 00 5D [11:21:06]Write i2c OK [11:21:06]MH_I2C_Read... [11:21:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:21:06]Read from MH i2c: E2 [11:21:06]MH_I2C_Read... [11:21:06]Read from MH i2c: E2 0B 00 [11:21:06]MH_I2C_Read... [11:21:06]Read from MH i2c: E2 0B 00 16 CC 00 17 23 97 8C 2C D9 59 3F 90 00 58 [11:21:06]RAPDU: 17 23 97 8C 2C D9 59 3F 90 00 [11:21:06]wFMCommunicate OK [11:21:06]SAM_PROTO_SignData done [11:21:06]FM_MakeSignedData done [11:21:06]CreateOFDProtocolMessage [11:21:06]wFMCommunicate request_size=4 [11:21:06]MH_SAM_APDU [11:21:06]CAPDU: 80 11 00 00 [11:21:06]Write to MH i2c: E2 08 00 17 CC 80 11 00 00 00 00 00 00 5D [11:21:06]Write i2c OK [11:21:06]MH_I2C_Read... [11:21:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:06]Read from MH i2c: E2 [11:21:06]MH_I2C_Read... [11:21:06]Read from MH i2c: E2 17 00 [11:21:06]MH_I2C_Read... [11:21:06]Read from MH i2c: E2 17 00 17 CC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AF [11:21:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:21:06]wFMCommunicate OK [11:21:06]CreateOFDProtocolMessage done [11:21:06]OFDSenderStorePacket 69289 [11:21:06]StoreOFDPacket docnum=69289 [11:21:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 94 BD 04 01 F9 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 EE 75 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 5F 00 00 00 00 07 04 06 00 70 82 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 AB E7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A9 0E 01 00 35 04 06 00 C5 DA 78 EC 29 74 17 23 97 8C 2C D9 59 3F [11:21:06]CheckFolder [11:21:06]dirname=/storage/ofd_packets [11:21:06]CheckFolder done [11:21:06]ProducePacketName [11:21:06]name=ofd_packets/00069289 [11:21:06]NVStorageSaveData ofd_packets/00069289 [11:21:06]File name is /storage/ofd_packets/00069289 [11:21:06]Write 298 bytes [11:21:06]NVStorageSaveData done [11:21:06]OFDSenderStorePacket done [11:21:06]KKMCreateOFDPacket done [11:21:06]NVStorageSaveData kkm_last_timestamp [11:21:06]File name is /storage/kkm_last_timestamp [11:21:06]Write 4 bytes [11:21:06]NVStorageSaveData done [11:21:06]ExternCall_PrintAddStr [11:21:06]wPrintStart [11:21:06]Write to MH i2c: 01 00 00 18 CC E4 [11:21:06]Write i2c OK [11:21:06]MH_I2C_Read... [11:21:06]Read from MH i2c: 01 [11:21:06]MH_I2C_Read... [11:21:06]Read from MH i2c: 01 07 00 [11:21:06]MH_I2C_Read... [11:21:06]Read from MH i2c: 01 07 00 18 CC 00 00 00 00 00 FF 0F F9 [11:21:06]RasterBufferAndPrint [11:21:06]line Счет N : (1)2885004 [11:21:06]line ИНН: 02508201610067 [11:21:06]line Контрольно-Кассовый Чек [11:21:06]line ПРОДАЖА [11:21:06]line ТРК (МРК, ГНК) : 61 [11:21:06]line Товар: 2710194210 [11:21:06]line ДТ-К-5 [11:21:06]line 30.190 * 76.20 [11:21:06]line = 2300.48 [11:21:06]line НДС 12% НСП 1% [11:21:06]line > о реализуемом товаре [11:21:06]line ОКРУГЛЕНИЕ: -0.48 [11:21:06]line ИТОГО: 2300.00 [11:21:06]line Внесено: 2300.00 [11:21:06]line СДАЧА: 0.00 [11:21:06]line НСП 1% : 20.36 [11:21:06]line НДС 12% : 244.30 [11:21:06]line Наличными: 2300.00 [11:21:06]line Безнал.: 0.00 [11:21:06]line Место: АЗС № 85 "Партнер Нефть" [11:21:06]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:21:06]line СНО: Общий режим [11:21:06]line Чек 134 20.10.2024 11:21 [11:21:06]line Смена: 193 ФФД: 1.0 [11:21:06]line ЗНМ: 0300000167 [11:21:06]line РНМ: 0000000000156251 [11:21:06]line Версия ККМ: v1.0 [11:21:06]line ФМ: 0000000000963346 [11:21:06]line ФД: 69289 [11:21:06]line ФПД: 217542122285428 [11:21:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112115&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69289&fm=217542122285428&tin=02508201610067®Number=0000000000156251&sum=230000 [11:21:06]OFD Sender: Processing packet 69289 [packets to send 18, broken 17] [11:21:06]ProducePacketName [11:21:06]name=ofd_packets/00069289 [11:21:06]OFD Sender: To server: pG, [11:21:06]CommunicateWithHost lk.salyk.kg:30040 [11:21:06]ConnectInit lk.salyk.kg [11:21:06]written 0, free lines is 4095 [11:21:07]Connected sock=10 [11:21:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 94 BD 04 01 F9 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 EE 75 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 5F 00 00 00 00 07 04 06 00 70 82 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 AB E7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A9 0E 01 00 35 04 06 00 C5 DA 78 EC 29 74 17 23 97 8C 2C D9 59 3F [11:21:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 D7 37 47 00 75 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A9 0E 01 00 F4 03 04 00 51 91 14 67 B6 04 01 00 00 37 3C 17 7E D4 04 EF 4C [11:21:07]CommunicateWithHost err = 0 [11:21:07]CheckOFDResponse [11:21:07]1017 (14) - 77093643461234 [11:21:07]1041 (16) - 0000000000963346 [11:21:07]1040 (4) - 69289 [11:21:07]1012 (4) - 20.10.2024 05:12 [11:21:07]1206 (1) - 0 [11:21:07]OFD Sender: Remove packet 69289 [11:21:07]ProducePacketName [11:21:07]name=ofd_packets/00069289 [11:21:07]NVStorageDeleteData [11:21:07]Write to MH i2c: 01 00 00 43 CC 0F [11:21:07]Write i2c OK [11:21:07]MH_I2C_Read... [11:21:07]Read from MH i2c: 01 [11:21:07]MH_I2C_Read... [11:21:07]Read from MH i2c: 01 07 00 [11:21:07]MH_I2C_Read... [11:21:07]Read from MH i2c: 01 07 00 43 CC 00 00 00 00 00 FD 0C 1F [11:21:07]RasterBufferAndPrint [11:21:07]line [11:21:07]line [11:21:07]line [11:21:07]line [11:21:07]line [11:21:07]written 0, free lines is 3334 [11:21:07]MH_Cut [11:21:07]Write to MH i2c: D1 01 00 4A CC 01 E8 [11:21:07]Write i2c OK [11:21:07]MH_I2C_Read... [11:21:07]Read from MH i2c: D1 [11:21:07]MH_I2C_Read... [11:21:07]Read from MH i2c: D1 01 00 [11:21:07]MH_I2C_Read... [11:21:07]Read from MH i2c: D1 01 00 4A CC 00 E7 [11:21:07]Write to MH i2c: 01 00 00 4B CC 17 [11:21:07]Write i2c OK [11:21:07]MH_I2C_Read... [11:21:07]OFD Sender: No OFD packet to send [11:21:08]*** Cut start [11:21:08]*** Partial cut [11:21:08]*** CUTSNS_PIN = 1 [11:21:08]*** CUTSNS_PIN = 0 [11:21:08]*** Brake cut motor [11:21:08]Read from MH i2c: 01 [11:21:08]MH_I2C_Read... [11:21:08]*** Stop cut motor [11:21:08]*** Cut end [11:21:08]Read from MH i2c: 01 07 00 [11:21:08]MH_I2C_Read... [11:21:08]Read from MH i2c: 01 07 00 4B CC 00 00 00 00 00 FF 0F 2C [11:21:08]process_action close_receipt done [11:21:08]requested_data is exist [11:21:08]produce_requested_data [11:21:08]requested_item fm.sn is exist - process it [11:21:08]wFMCommunicate request_size=4 [11:21:08]MH_SAM_APDU [11:21:08]CAPDU: 80 11 00 00 [11:21:08]Write to MH i2c: E2 08 00 4C CC 80 11 00 00 00 00 00 00 92 [11:21:08]Write i2c OK [11:21:08]MH_I2C_Read... [11:21:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:08]Read from MH i2c: E2 [11:21:08]MH_I2C_Read... [11:21:08]Read from MH i2c: E2 17 00 [11:21:08]MH_I2C_Read... [11:21:08]Read from MH i2c: E2 17 00 4C CC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E4 [11:21:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:21:08]wFMCommunicate OK [11:21:08]requested_item fd.num is exist - process it [11:21:08]SAM_PROTO_GetFieldsCounters [11:21:08]wFMCommunicate request_size=4 [11:21:08]MH_SAM_APDU [11:21:08]CAPDU: 80 13 00 00 [11:21:08]Write to MH i2c: E2 08 00 4D CC 80 13 00 00 00 00 00 00 95 [11:21:08]Write i2c OK [11:21:08]MH_I2C_Read... [11:21:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:21:08]Read from MH i2c: E2 [11:21:08]MH_I2C_Read... [11:21:08]Read from MH i2c: E2 62 00 [11:21:08]MH_I2C_Read... [11:21:08]Read from MH i2c: E2 62 00 4D CC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A9 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [11:21:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A9 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:21:08]wFMCommunicate OK [11:21:08]SAM_PROTO_GetFieldsCounters done [11:21:08]requested_item shift.num is exist - process it [11:21:08]requested_item shift.opened is exist - process it [11:21:08]req_shift_opened [11:21:08]FM_GetShiftState [11:21:08]SAM_PROTO_GetShiftState [11:21:08]wFMCommunicate request_size=4 [11:21:08]MH_SAM_APDU [11:21:08]CAPDU: 80 13 01 00 [11:21:08]Write to MH i2c: E2 08 00 4E CC 80 13 01 00 00 00 00 00 97 [11:21:08]Write i2c OK [11:21:08]MH_I2C_Read... [11:21:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:09]Read from MH i2c: E2 [11:21:09]MH_I2C_Read... [11:21:09]Read from MH i2c: E2 0E 00 [11:21:09]MH_I2C_Read... [11:21:09]Read from MH i2c: E2 0E 00 4E CC 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 9D [11:21:09]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:21:09]wFMCommunicate OK [11:21:09]SAM_PROTO_GetShiftState done [11:21:09]FM_GetShiftState done [11:21:09]req_shift_opened done [11:21:09]requested_item shift.open_date is exist - process it [11:21:09]req_shift_open_date [11:21:09]req_shift_open_date done [11:21:09]produce_requested_data done [11:21:09]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69289,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [11:21:09]process_action_free close_receipt [11:21:09]json_value_free [11:21:09]json_value_free done [11:21:09]process_json_proto returns [11:21:09]Send response to host [11:21:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69289,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [11:21:09]free response buf [11:21:09]execute_script done [11:21:09]execute_script returns [11:21:09]free content buf [11:21:09]Sock 8.Close socket [11:21:09]Sock 8.Thread stoped [11:21:12]OFD Sender: No OFD packet to send [11:21:17]OFD Sender: No OFD packet to send [11:21:22]OFD Sender: No OFD packet to send [11:21:27]OFD Sender: No OFD packet to send [11:21:32]OFD Sender: No OFD packet to send [11:21:37]OFD Sender: No OFD packet to send [11:21:42]OFD Sender: No OFD packet to send [11:21:47]OFD Sender: No OFD packet to send [11:21:52]OFD Sender: No OFD packet to send [11:21:57]OFD Sender: No OFD packet to send [11:22:02]OFD Sender: No OFD packet to send [11:22:07]OFD Sender: No OFD packet to send [11:22:12]OFD Sender: No OFD packet to send [11:22:17]OFD Sender: No OFD packet to send [11:22:22]OFD Sender: No OFD packet to send [11:22:27]OFD Sender: No OFD packet to send [11:22:32]OFD Sender: No OFD packet to send [11:22:37]OFD Sender: No OFD packet to send [11:22:42]OFD Sender: No OFD packet to send [11:22:47]OFD Sender: No OFD packet to send [11:22:52]OFD Sender: No OFD packet to send [11:22:57]OFD Sender: No OFD packet to send [11:23:02]OFD Sender: No OFD packet to send [11:23:07]OFD Sender: No OFD packet to send [11:23:12]OFD Sender: No OFD packet to send [11:23:17]OFD Sender: No OFD packet to send [11:23:22]OFD Sender: No OFD packet to send [11:23:27]OFD Sender: No OFD packet to send [11:23:30]accept exits with 9 [11:23:30]New connection [11:23:30]New thread 3067116900 created [11:23:30]Thread 3067260260 joined [11:23:30]Waiting for new connection... [11:23:30] Sock 9.Parse request [11:23:30]Sock 9.Check first char [11:23:30]Sock 9.First char is OK [11:23:30]request: POST /json_proto HTTP/1.0 [11:23:30]Method: POST [11:23:30]URL: /json_proto [11:23:30]Method is POST - this is cgi request [11:23:30]url: /json_proto [11:23:30]query_string will be loaded in cgi processing [11:23:30]execute_cgi json_proto POST (null) [11:23:30]execute_cgi path=json_proto method=POST [11:23:30]POST find Content-Length [11:23:30]Host: 172.17.50.3:8080 [11:23:30]Content-Length: 684 [11:23:30]Content-Type: application/json [11:23:30] [11:23:30]POST finish read [11:23:30]Found Content-Length = 684 [11:23:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 5.190, "sum" : 400.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:30]execute_script... [11:23:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 5.190, "sum" : 400.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:30]POST & json_proto [11:23:30]process_json_proto [11:23:30]json parsed OK: [11:23:30]protocol is kg_v1.0 [11:23:30]action value=close_receipt [11:23:30]process_action close_receipt [11:23:30]cmd_close_receipt [11:23:30]MH_GetDate [11:23:30]Write to MH i2c: F0 00 00 4F CC 0A [11:23:30]Write i2c OK [11:23:30]MH_I2C_Read... [11:23:30]Read from MH i2c: F0 [11:23:30]MH_I2C_Read... [11:23:30]Read from MH i2c: F0 09 00 [11:23:30]MH_I2C_Read... [11:23:30]Read from MH i2c: F0 09 00 4F CC 00 3C E8 14 67 6B 98 1E 66 39 [11:23:30]GetLastDocTimeStamp 1729423275 [11:23:30]current date 1729423420 [11:23:30]FM_GetShiftState [11:23:30]SAM_PROTO_GetShiftState [11:23:30]wFMCommunicate request_size=4 [11:23:30]MH_SAM_APDU [11:23:30]CAPDU: 80 13 01 00 [11:23:30]Write to MH i2c: E2 08 00 50 CC 80 13 01 00 00 00 00 00 99 [11:23:30]Write i2c OK [11:23:30]MH_I2C_Read... [11:23:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:30]Read from MH i2c: E2 [11:23:30]MH_I2C_Read... [11:23:30]Read from MH i2c: E2 0E 00 [11:23:30]MH_I2C_Read... [11:23:30]Read from MH i2c: E2 0E 00 50 CC 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 9F [11:23:30]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:23:30]wFMCommunicate OK [11:23:30]SAM_PROTO_GetShiftState done [11:23:30]FM_GetShiftState done [11:23:30]opened in 1729383220 [11:23:30]opened+sec_in_day 1729469620 [11:23:30]quantity*price = 40066 [11:23:30]sum+1 = 40068 [11:23:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 135 20.10.2024 11:23 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69290 ФПД: 211765958751848 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112340&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69290&fm=211765958751848&tin=02508201610067®Number=0000000000156251&sum=40000 [11:23:31]StoreToDocumentArchive [11:23:31]shift 193 fd 69290 [11:23:31]save to /storage/0193/doc_00069290 [11:23:31]save last doc name /storage/0193/doc_00069290 to /storage/kkm_last_doc_name [11:23:31]save OK [11:23:31]Clear old archive folders... [11:23:31]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:23:31]tlvbuf is 007F1F80 [11:23:31]SAM_PROTO_ClearQueue [11:23:31]wFMCommunicate request_size=4 [11:23:31]MH_SAM_APDU [11:23:31]CAPDU: 80 09 00 00 [11:23:31]Write to MH i2c: E2 08 00 5D CC 80 09 00 00 00 00 00 00 9B [11:23:31]Write i2c OK [11:23:31]MH_I2C_Read... [11:23:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:31]Read from MH i2c: E2 [11:23:31]MH_I2C_Read... [11:23:31]Read from MH i2c: E2 03 00 [11:23:31]MH_I2C_Read... [11:23:31]Read from MH i2c: E2 03 00 5D CC 00 90 00 9D [11:23:31]RAPDU: 90 00 [11:23:31]wFMCommunicate OK [11:23:31]SAM_PROTO_ClearQueue done [11:23:31]KKMCreateOFDPacket [11:23:31]OFDProtocolAddRootSTLVToBuf [11:23:31]FM_MakeSignedData [11:23:31]FM_MakeSignedData [11:23:31]SAM_PROTO_SignData [11:23:31]wFMCommunicate request_size=4 [11:23:31]MH_SAM_APDU [11:23:31]CAPDU: 80 0D 01 02 [11:23:31]Write to MH i2c: E2 08 00 5E CC 80 0D 01 02 00 00 00 00 A3 [11:23:31]Write i2c OK [11:23:31]MH_I2C_Read... [11:23:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:31]Read from MH i2c: E2 [11:23:31]MH_I2C_Read... [11:23:31]Read from MH i2c: E2 03 00 [11:23:31]MH_I2C_Read... [11:23:31]Read from MH i2c: E2 03 00 5E CC 00 90 00 9E [11:23:31]RAPDU: 90 00 [11:23:31]wFMCommunicate OK [11:23:31]wFMCommunicate request_size=255 [11:23:31]MH_SAM_APDU [11:23:31]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 3C E8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AA 0E 01 [11:23:31]Write to MH i2c: E2 02 01 5F CC 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 3C E8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AA 0E 01 00 00 3D [11:23:31]Write i2c OK [11:23:31]MH_I2C_Read... [11:23:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:32]Read from MH i2c: E2 [11:23:32]MH_I2C_Read... [11:23:32]Read from MH i2c: E2 03 00 [11:23:32]MH_I2C_Read... [11:23:32]Read from MH i2c: E2 03 00 5F CC 00 90 00 9F [11:23:32]RAPDU: 90 00 [11:23:32]wFMCommunicate OK [11:23:32]wFMCommunicate request_size=16 [11:23:32]MH_SAM_APDU [11:23:32]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 C0 99 9A BF 36 68 [11:23:32]Write to MH i2c: E2 13 00 60 CC 80 0D 02 02 0B 00 00 35 04 06 00 C0 99 9A BF 36 68 00 00 4B [11:23:32]Write i2c OK [11:23:32]MH_I2C_Read... [11:23:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:32]Read from MH i2c: E2 [11:23:32]MH_I2C_Read... [11:23:32]Read from MH i2c: E2 03 00 [11:23:32]MH_I2C_Read... [11:23:32]Read from MH i2c: E2 03 00 60 CC 00 90 00 A0 [11:23:32]RAPDU: 90 00 [11:23:32]wFMCommunicate OK [11:23:32]wFMCommunicate request_size=4 [11:23:32]MH_SAM_APDU [11:23:32]CAPDU: 80 0D 03 02 [11:23:32]Write to MH i2c: E2 08 00 61 CC 80 0D 03 02 00 00 00 00 A8 [11:23:32]Write i2c OK [11:23:32]MH_I2C_Read... [11:23:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:32]Read from MH i2c: E2 [11:23:32]MH_I2C_Read... [11:23:32]Read from MH i2c: E2 0B 00 [11:23:32]MH_I2C_Read... [11:23:32]Read from MH i2c: E2 0B 00 61 CC 00 77 5E 43 EA 43 E3 3C 45 90 00 52 [11:23:32]RAPDU: 77 5E 43 EA 43 E3 3C 45 90 00 [11:23:32]wFMCommunicate OK [11:23:32]SAM_PROTO_SignData done [11:23:32]FM_MakeSignedData done [11:23:32]CreateOFDProtocolMessage [11:23:32]wFMCommunicate request_size=4 [11:23:32]MH_SAM_APDU [11:23:32]CAPDU: 80 11 00 00 [11:23:32]Write to MH i2c: E2 08 00 62 CC 80 11 00 00 00 00 00 00 A8 [11:23:32]Write i2c OK [11:23:32]MH_I2C_Read... [11:23:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:32]Read from MH i2c: E2 [11:23:32]MH_I2C_Read... [11:23:32]Read from MH i2c: E2 17 00 [11:23:32]MH_I2C_Read... [11:23:32]Read from MH i2c: E2 17 00 62 CC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FA [11:23:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:23:32]wFMCommunicate OK [11:23:32]CreateOFDProtocolMessage done [11:23:32]OFDSenderStorePacket 69290 [11:23:32]StoreOFDPacket docnum=69290 [11:23:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 33 5F 0D 01 0F 75 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 3C E8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AA 0E 01 00 35 04 06 00 C0 99 9A BF 36 68 77 5E 43 EA 43 E3 3C 45 [11:23:32]CheckFolder [11:23:32]dirname=/storage/ofd_packets [11:23:32]CheckFolder done [11:23:32]ProducePacketName [11:23:32]name=ofd_packets/00069290 [11:23:32]NVStorageSaveData ofd_packets/00069290 [11:23:32]File name is /storage/ofd_packets/00069290 [11:23:32]Write 307 bytes [11:23:32]NVStorageSaveData done [11:23:32]OFDSenderStorePacket done [11:23:32]KKMCreateOFDPacket done [11:23:32]NVStorageSaveData kkm_last_timestamp [11:23:32]File name is /storage/kkm_last_timestamp [11:23:32]Write 4 bytes [11:23:32]NVStorageSaveData done [11:23:32]ExternCall_PrintAddStr [11:23:32]wPrintStart [11:23:32]Write to MH i2c: 01 00 00 63 CC 2F [11:23:32]Write i2c OK [11:23:32]MH_I2C_Read... [11:23:32]Read from MH i2c: 01 [11:23:32]MH_I2C_Read... [11:23:32]Read from MH i2c: 01 07 00 [11:23:32]MH_I2C_Read... [11:23:32]Read from MH i2c: 01 07 00 63 CC 00 00 00 00 00 FF 0F 44 [11:23:32]RasterBufferAndPrint [11:23:32]line Счет N : (1)2885006 [11:23:32]line ИНН: 02508201610067 [11:23:32]line Контрольно-Кассовый Чек [11:23:32]line ПРОДАЖА [11:23:32]line ТРК (МРК, ГНК) : 11 [11:23:32]line Товар: 2710194240 [11:23:32]line D-ENERGY Дт-К-2 [11:23:32]line 5.190 * 77.20 [11:23:32]line = 400.67 [11:23:32]line НДС 12% НСП 1% [11:23:32]line > о реализуемом товаре [11:23:32]line ОКРУГЛЕНИЕ: -0.67 [11:23:32]line ИТОГО: 400.00 [11:23:32]line Внесено: 400.00 [11:23:32]line СДАЧА: 0.00 [11:23:32]line НСП 1% : 3.55 [11:23:32]line НДС 12% : 42.55 [11:23:32]line Наличными: 400.00 [11:23:32]line Безнал.: 0.00 [11:23:32]line Место: АЗС № 85 "Партнер Нефть" [11:23:32]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:23:32]line СНО: Общий режим [11:23:32]line Чек 135 20.10.2024 11:23 [11:23:32]line Смена: 193 ФФД: 1.0 [11:23:32]line ЗНМ: 0300000167 [11:23:32]line РНМ: 0000000000156251 [11:23:32]line Версия ККМ: v1.0 [11:23:32]line ФМ: 0000000000963346 [11:23:32]line ФД: 69290 [11:23:32]line ФПД: 211765958751848 [11:23:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112340&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69290&fm=211765958751848&tin=02508201610067®Number=0000000000156251&sum=40000 [11:23:32]OFD Sender: Processing packet 69290 [packets to send 18, broken 17] [11:23:32]ProducePacketName [11:23:32]name=ofd_packets/00069290 [11:23:32]OFD Sender: To server: pG, [11:23:32]CommunicateWithHost lk.salyk.kg:30040 [11:23:32]ConnectInit lk.salyk.kg [11:23:32]written 0, free lines is 4095 [11:23:32]Connected sock=11 [11:23:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 33 5F 0D 01 0F 75 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 3C E8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AA 0E 01 00 35 04 06 00 C0 99 9A BF 36 68 77 5E 43 EA 43 E3 3C 45 [11:23:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 7D 5D 47 00 41 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AA 0E 01 00 F4 03 04 00 E3 91 14 67 B6 04 01 00 00 87 5C 22 40 06 83 81 8F [11:23:32]CommunicateWithHost err = 0 [11:23:32]CheckOFDResponse [11:23:32]1017 (14) - 77093643461234 [11:23:32]1041 (16) - 0000000000963346 [11:23:32]1040 (4) - 69290 [11:23:32]1012 (4) - 20.10.2024 05:15 [11:23:32]1206 (1) - 0 [11:23:32]OFD Sender: Remove packet 69290 [11:23:32]ProducePacketName [11:23:32]name=ofd_packets/00069290 [11:23:32]NVStorageDeleteData [11:23:32]Write to MH i2c: 01 00 00 8E CC 5A [11:23:32]Write i2c OK [11:23:32]MH_I2C_Read... [11:23:32]Read from MH i2c: 01 [11:23:32]MH_I2C_Read... [11:23:32]Read from MH i2c: 01 07 00 [11:23:32]MH_I2C_Read... [11:23:32]Read from MH i2c: 01 07 00 8E CC 00 00 00 00 00 F4 0C 61 [11:23:32]RasterBufferAndPrint [11:23:32]line [11:23:32]line [11:23:32]line [11:23:32]line [11:23:32]line [11:23:32]written 0, free lines is 3322 [11:23:32]MH_Cut [11:23:32]Write to MH i2c: D1 01 00 95 CC 01 33 [11:23:32]Write i2c OK [11:23:32]MH_I2C_Read... [11:23:32]Read from MH i2c: D1 [11:23:32]MH_I2C_Read... [11:23:32]Read from MH i2c: D1 01 00 [11:23:32]MH_I2C_Read... [11:23:32]Read from MH i2c: D1 01 00 95 CC 00 32 [11:23:32]Write to MH i2c: 01 00 00 96 CC 62 [11:23:33]Write i2c OK [11:23:33]MH_I2C_Read... [11:23:33]OFD Sender: No OFD packet to send [11:23:33]*** Cut start [11:23:33]*** Partial cut [11:23:33]*** CUTSNS_PIN = 1 [11:23:33]*** CUTSNS_PIN = 0 [11:23:33]*** Brake cut motor [11:23:34]Read from MH i2c: 01 [11:23:34]MH_I2C_Read... [11:23:34]*** Stop cut motor [11:23:34]*** Cut end [11:23:34]Read from MH i2c: 01 07 00 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: 01 07 00 96 CC 00 00 00 00 00 FF 0F 77 [11:23:34]process_action close_receipt done [11:23:34]requested_data is exist [11:23:34]produce_requested_data [11:23:34]requested_item fm.sn is exist - process it [11:23:34]wFMCommunicate request_size=4 [11:23:34]MH_SAM_APDU [11:23:34]CAPDU: 80 11 00 00 [11:23:34]Write to MH i2c: E2 08 00 97 CC 80 11 00 00 00 00 00 00 DD [11:23:34]Write i2c OK [11:23:34]MH_I2C_Read... [11:23:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:34]Read from MH i2c: E2 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: E2 17 00 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: E2 17 00 97 CC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2F [11:23:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:23:34]wFMCommunicate OK [11:23:34]requested_item fd.num is exist - process it [11:23:34]SAM_PROTO_GetFieldsCounters [11:23:34]wFMCommunicate request_size=4 [11:23:34]MH_SAM_APDU [11:23:34]CAPDU: 80 13 00 00 [11:23:34]Write to MH i2c: E2 08 00 98 CC 80 13 00 00 00 00 00 00 E0 [11:23:34]Write i2c OK [11:23:34]MH_I2C_Read... [11:23:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:34]Read from MH i2c: E2 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: E2 62 00 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: E2 62 00 98 CC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AA 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [11:23:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AA 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:23:34]wFMCommunicate OK [11:23:34]SAM_PROTO_GetFieldsCounters done [11:23:34]requested_item shift.num is exist - process it [11:23:34]requested_item shift.opened is exist - process it [11:23:34]req_shift_opened [11:23:34]FM_GetShiftState [11:23:34]SAM_PROTO_GetShiftState [11:23:34]wFMCommunicate request_size=4 [11:23:34]MH_SAM_APDU [11:23:34]CAPDU: 80 13 01 00 [11:23:34]Write to MH i2c: E2 08 00 99 CC 80 13 01 00 00 00 00 00 E2 [11:23:34]Write i2c OK [11:23:34]MH_I2C_Read... [11:23:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:34]Read from MH i2c: E2 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: E2 0E 00 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: E2 0E 00 99 CC 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 E8 [11:23:34]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:23:34]wFMCommunicate OK [11:23:34]SAM_PROTO_GetShiftState done [11:23:34]FM_GetShiftState done [11:23:34]req_shift_opened done [11:23:34]requested_item shift.open_date is exist - process it [11:23:34]req_shift_open_date [11:23:34]req_shift_open_date done [11:23:34]produce_requested_data done [11:23:34]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69290,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [11:23:34]process_action_free close_receipt [11:23:34]json_value_free [11:23:34]json_value_free done [11:23:34]process_json_proto returns [11:23:34]Send response to host [11:23:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69290,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [11:23:34]free response buf [11:23:34]execute_script done [11:23:34]execute_script returns [11:23:34]free content buf [11:23:34]Sock 9.Close socket [11:23:34]Sock 9.Thread stoped [11:23:34]accept exits with 8 [11:23:34]New connection [11:23:34]New thread 3067260260 created [11:23:34]Thread 3067116900 joined [11:23:34]Waiting for new connection... [11:23:34] Sock 8.Parse request [11:23:34]Sock 8.Check first char [11:23:34]Sock 8.First char is OK [11:23:34]request: POST /json_proto HTTP/1.0 [11:23:34]Method: POST [11:23:34]URL: /json_proto [11:23:34]Method is POST - this is cgi request [11:23:34]url: /json_proto [11:23:34]query_string will be loaded in cgi processing [11:23:34]execute_cgi json_proto POST (null) [11:23:34]execute_cgi path=json_proto method=POST [11:23:34]POST find Content-Length [11:23:34]Host: 172.17.50.3:8080 [11:23:34]Content-Length: 680 [11:23:34]Content-Type: application/json [11:23:34] [11:23:34]POST finish read [11:23:34]Found Content-Length = 680 [11:23:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:34]execute_script... [11:23:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:34]POST & json_proto [11:23:34]process_json_proto [11:23:34]json parsed OK: [11:23:34]protocol is kg_v1.0 [11:23:34]action value=close_receipt [11:23:34]process_action close_receipt [11:23:34]cmd_close_receipt [11:23:34]MH_GetDate [11:23:34]Write to MH i2c: F0 00 00 9A CC 55 [11:23:34]Write i2c OK [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: F0 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: F0 09 00 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: F0 09 00 9A CC 00 40 E8 14 67 6B 98 1E 66 88 [11:23:34]GetLastDocTimeStamp 1729423420 [11:23:34]current date 1729423424 [11:23:34]FM_GetShiftState [11:23:34]SAM_PROTO_GetShiftState [11:23:34]wFMCommunicate request_size=4 [11:23:34]MH_SAM_APDU [11:23:34]CAPDU: 80 13 01 00 [11:23:34]Write to MH i2c: E2 08 00 9B CC 80 13 01 00 00 00 00 00 E4 [11:23:34]Write i2c OK [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: E2 [11:23:34]MH_I2C_Read... [11:23:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:34]Read from MH i2c: E2 0E 00 [11:23:34]MH_I2C_Read... [11:23:34]Read from MH i2c: E2 0E 00 9B CC 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 EA [11:23:34]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:23:34]wFMCommunicate OK [11:23:34]SAM_PROTO_GetShiftState done [11:23:34]FM_GetShiftState done [11:23:34]opened in 1729383220 [11:23:34]opened+sec_in_day 1729469620 [11:23:34]quantity*price = 100050 [11:23:34]sum+1 = 100052 [11:23:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 136 20.10.2024 11:23 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69291 ФПД: 5781083402638 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112345&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69291&fm=5781083402638&tin=02508201610067®Number=0000000000156251&sum=100000 [11:23:36]StoreToDocumentArchive [11:23:36]shift 193 fd 69291 [11:23:36]save to /storage/0193/doc_00069291 [11:23:36]save last doc name /storage/0193/doc_00069291 to /storage/kkm_last_doc_name [11:23:36]save OK [11:23:36]Clear old archive folders... [11:23:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:23:36]tlvbuf is 004A27B0 [11:23:36]SAM_PROTO_ClearQueue [11:23:36]wFMCommunicate request_size=4 [11:23:36]MH_SAM_APDU [11:23:36]CAPDU: 80 09 00 00 [11:23:36]Write to MH i2c: E2 08 00 A8 CC 80 09 00 00 00 00 00 00 E6 [11:23:36]Write i2c OK [11:23:36]MH_I2C_Read... [11:23:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:36]Read from MH i2c: E2 [11:23:36]MH_I2C_Read... [11:23:36]Read from MH i2c: E2 03 00 [11:23:36]MH_I2C_Read... [11:23:36]Read from MH i2c: E2 03 00 A8 CC 00 90 00 E8 [11:23:36]RAPDU: 90 00 [11:23:36]wFMCommunicate OK [11:23:36]SAM_PROTO_ClearQueue done [11:23:36]KKMCreateOFDPacket [11:23:36]OFDProtocolAddRootSTLVToBuf [11:23:36]FM_MakeSignedData [11:23:36]FM_MakeSignedData [11:23:36]SAM_PROTO_SignData [11:23:36]wFMCommunicate request_size=4 [11:23:36]MH_SAM_APDU [11:23:36]CAPDU: 80 0D 01 02 [11:23:36]Write to MH i2c: E2 08 00 A9 CC 80 0D 01 02 00 00 00 00 EE [11:23:36]Write i2c OK [11:23:36]MH_I2C_Read... [11:23:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:36]Read from MH i2c: E2 [11:23:36]MH_I2C_Read... [11:23:36]Read from MH i2c: E2 03 00 [11:23:36]MH_I2C_Read... [11:23:36]Read from MH i2c: E2 03 00 A9 CC 00 90 00 E9 [11:23:36]RAPDU: 90 00 [11:23:36]wFMCommunicate OK [11:23:36]wFMCommunicate request_size=255 [11:23:36]MH_SAM_APDU [11:23:36]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 41 E8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AB 0E 01 00 35 04 06 00 05 42 03 6C [11:23:36]Write to MH i2c: E2 02 01 AA CC 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 41 E8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AB 0E 01 00 35 04 06 00 05 42 03 6C 00 00 CA [11:23:36]Write i2c OK [11:23:36]MH_I2C_Read... [11:23:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:36]Read from MH i2c: E2 [11:23:36]MH_I2C_Read... [11:23:36]Read from MH i2c: E2 03 00 [11:23:36]MH_I2C_Read... [11:23:36]Read from MH i2c: E2 03 00 AA CC 00 90 00 EA [11:23:36]RAPDU: 90 00 [11:23:36]wFMCommunicate OK [11:23:36]wFMCommunicate request_size=7 [11:23:36]MH_SAM_APDU [11:23:36]CAPDU: 80 0D 02 02 02 31 8E [11:23:36]Write to MH i2c: E2 0A 00 AB CC 80 0D 02 02 02 00 31 8E 00 00 B4 [11:23:36]Write i2c OK [11:23:36]MH_I2C_Read... [11:23:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:36]Read from MH i2c: E2 [11:23:36]MH_I2C_Read... [11:23:36]Read from MH i2c: E2 03 00 [11:23:36]MH_I2C_Read... [11:23:36]Read from MH i2c: E2 03 00 AB CC 00 90 00 EB [11:23:36]RAPDU: 90 00 [11:23:36]wFMCommunicate OK [11:23:36]wFMCommunicate request_size=4 [11:23:36]MH_SAM_APDU [11:23:36]CAPDU: 80 0D 03 02 [11:23:36]Write to MH i2c: E2 08 00 AC CC 80 0D 03 02 00 00 00 00 F3 [11:23:36]Write i2c OK [11:23:36]MH_I2C_Read... [11:23:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:36]Read from MH i2c: E2 [11:23:36]MH_I2C_Read... [11:23:36]Read from MH i2c: E2 0B 00 [11:23:36]MH_I2C_Read... [11:23:36]Read from MH i2c: E2 0B 00 AC CC 00 99 7D 98 CA 6B 46 9D 41 90 00 FB [11:23:36]RAPDU: 99 7D 98 CA 6B 46 9D 41 90 00 [11:23:36]wFMCommunicate OK [11:23:36]SAM_PROTO_SignData done [11:23:36]FM_MakeSignedData done [11:23:36]CreateOFDProtocolMessage [11:23:36]wFMCommunicate request_size=4 [11:23:36]MH_SAM_APDU [11:23:36]CAPDU: 80 11 00 00 [11:23:36]Write to MH i2c: E2 08 00 AD CC 80 11 00 00 00 00 00 00 F3 [11:23:36]Write i2c OK [11:23:36]MH_I2C_Read... [11:23:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:36]Read from MH i2c: E2 [11:23:36]MH_I2C_Read... [11:23:36]Read from MH i2c: E2 17 00 [11:23:36]MH_I2C_Read... [11:23:36]Read from MH i2c: E2 17 00 AD CC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 45 [11:23:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:23:36]wFMCommunicate OK [11:23:36]CreateOFDProtocolMessage done [11:23:36]OFDSenderStorePacket 69291 [11:23:36]StoreOFDPacket docnum=69291 [11:23:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 38 F3 04 01 78 7A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 41 E8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AB 0E 01 00 35 04 06 00 05 42 03 6C 31 8E 99 7D 98 CA 6B 46 9D 41 [11:23:36]CheckFolder [11:23:36]dirname=/storage/ofd_packets [11:23:36]CheckFolder done [11:23:36]ProducePacketName [11:23:36]name=ofd_packets/00069291 [11:23:36]NVStorageSaveData ofd_packets/00069291 [11:23:36]File name is /storage/ofd_packets/00069291 [11:23:36]Write 298 bytes [11:23:36]NVStorageSaveData done [11:23:36]OFDSenderStorePacket done [11:23:36]KKMCreateOFDPacket done [11:23:36]NVStorageSaveData kkm_last_timestamp [11:23:36]File name is /storage/kkm_last_timestamp [11:23:36]Write 4 bytes [11:23:36]NVStorageSaveData done [11:23:36]ExternCall_PrintAddStr [11:23:36]wPrintStart [11:23:36]Write to MH i2c: 01 00 00 AE CC 7A [11:23:36]Write i2c OK [11:23:36]MH_I2C_Read... [11:23:36]Read from MH i2c: 01 [11:23:36]MH_I2C_Read... [11:23:36]Read from MH i2c: 01 07 00 [11:23:36]MH_I2C_Read... [11:23:36]Read from MH i2c: 01 07 00 AE CC 00 00 00 00 00 FF 0F 8F [11:23:36]RasterBufferAndPrint [11:23:36]line Счет N : (1)2885005 [11:23:36]line ИНН: 02508201610067 [11:23:36]line Контрольно-Кассовый Чек [11:23:36]line ПРОДАЖА [11:23:36]line ТРК (МРК, ГНК) : 51 [11:23:36]line Товар: 2710194210 [11:23:36]line ДТ-К-5 [11:23:36]line 13.130 * 76.20 [11:23:36]line = 1000.51 [11:23:36]line НДС 12% НСП 1% [11:23:36]line > о реализуемом товаре [11:23:36]line ОКРУГЛЕНИЕ: -0.51 [11:23:36]line ИТОГО: 1000.00 [11:23:36]line Внесено: 1000.00 [11:23:36]line СДАЧА: 0.00 [11:23:36]line НСП 1% : 8.85 [11:23:36]line НДС 12% : 106.25 [11:23:36]line Наличными: 1000.00 [11:23:36]line Безнал.: 0.00 [11:23:36]line Место: АЗС № 85 "Партнер Нефть" [11:23:36]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:23:36]line СНО: Общий режим [11:23:36]line Чек 136 20.10.2024 11:23 [11:23:36]line Смена: 193 ФФД: 1.0 [11:23:36]line ЗНМ: 0300000167 [11:23:36]line РНМ: 0000000000156251 [11:23:36]line Версия ККМ: v1.0 [11:23:36]line ФМ: 0000000000963346 [11:23:37]line ФД: 69291 [11:23:37]line ФПД: 5781083402638 [11:23:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112345&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69291&fm=5781083402638&tin=02508201610067®Number=0000000000156251&sum=100000 [11:23:37]OFD Sender: Processing packet 69291 [packets to send 18, broken 17] [11:23:37]ProducePacketName [11:23:37]name=ofd_packets/00069291 [11:23:37]OFD Sender: To server: pG, [11:23:37]CommunicateWithHost lk.salyk.kg:30040 [11:23:37]ConnectInit lk.salyk.kg [11:23:37]written 0, free lines is 4095 [11:23:37]Connected sock=10 [11:23:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 38 F3 04 01 78 7A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 41 E8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AB 0E 01 00 35 04 06 00 05 42 03 6C 31 8E 99 7D 98 CA 6B 46 9D 41 [11:23:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 64 4B 47 00 07 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AB 0E 01 00 F4 03 04 00 E8 91 14 67 B6 04 01 00 00 56 7D 96 85 8A 0D 34 6F [11:23:37]CommunicateWithHost err = 0 [11:23:37]CheckOFDResponse [11:23:37]1017 (14) - 77093643461234 [11:23:37]1041 (16) - 0000000000963346 [11:23:37]1040 (4) - 69291 [11:23:37]1012 (4) - 20.10.2024 05:15 [11:23:37]1206 (1) - 0 [11:23:37]OFD Sender: Remove packet 69291 [11:23:37]ProducePacketName [11:23:37]name=ofd_packets/00069291 [11:23:37]NVStorageDeleteData [11:23:37]Write to MH i2c: 01 00 00 D9 CC A5 [11:23:37]Write i2c OK [11:23:37]MH_I2C_Read... [11:23:37]Read from MH i2c: 01 [11:23:37]MH_I2C_Read... [11:23:37]Read from MH i2c: 01 07 00 [11:23:37]MH_I2C_Read... [11:23:37]Read from MH i2c: 01 07 00 D9 CC 00 00 00 00 00 00 0D B9 [11:23:37]RasterBufferAndPrint [11:23:37]line [11:23:37]line [11:23:37]line [11:23:37]line [11:23:37]line [11:23:37]written 0, free lines is 3346 [11:23:37]MH_Cut [11:23:37]Write to MH i2c: D1 01 00 E0 CC 01 7E [11:23:37]Write i2c OK [11:23:37]MH_I2C_Read... [11:23:37]Read from MH i2c: D1 [11:23:37]MH_I2C_Read... [11:23:37]Read from MH i2c: D1 01 00 [11:23:37]MH_I2C_Read... [11:23:37]Read from MH i2c: D1 01 00 E0 CC 00 7D [11:23:37]Write to MH i2c: 01 00 00 E1 CC AD [11:23:37]Write i2c OK [11:23:37]MH_I2C_Read... [11:23:38]OFD Sender: No OFD packet to send [11:23:38]*** Cut start [11:23:38]*** Partial cut [11:23:38]*** CUTSNS_PIN = 1 [11:23:38]*** CUTSNS_PIN = 0 [11:23:38]*** Brake cut motor [11:23:39]Read from MH i2c: 01 [11:23:39]MH_I2C_Read... [11:23:39]*** Stop cut motor [11:23:39]Read from MH i2c: 01 07 00 [11:23:39]MH_I2C_Read... [11:23:39]*** Cut end [11:23:39]Read from MH i2c: 01 07 00 E1 CC 00 00 00 00 00 FF 0F C2 [11:23:39]process_action close_receipt done [11:23:39]requested_data is exist [11:23:39]produce_requested_data [11:23:39]requested_item fm.sn is exist - process it [11:23:39]wFMCommunicate request_size=4 [11:23:39]MH_SAM_APDU [11:23:39]CAPDU: 80 11 00 00 [11:23:39]Write to MH i2c: E2 08 00 E2 CC 80 11 00 00 00 00 00 00 28 [11:23:39]Write i2c OK [11:23:39]MH_I2C_Read... [11:23:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:39]Read from MH i2c: E2 [11:23:39]MH_I2C_Read... [11:23:39]Read from MH i2c: E2 17 00 [11:23:39]MH_I2C_Read... [11:23:39]Read from MH i2c: E2 17 00 E2 CC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7A [11:23:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:23:39]wFMCommunicate OK [11:23:39]requested_item fd.num is exist - process it [11:23:39]SAM_PROTO_GetFieldsCounters [11:23:39]wFMCommunicate request_size=4 [11:23:39]MH_SAM_APDU [11:23:39]CAPDU: 80 13 00 00 [11:23:39]Write to MH i2c: E2 08 00 E3 CC 80 13 00 00 00 00 00 00 2B [11:23:39]Write i2c OK [11:23:39]MH_I2C_Read... [11:23:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:39]Read from MH i2c: E2 [11:23:39]MH_I2C_Read... [11:23:39]Read from MH i2c: E2 62 00 [11:23:39]MH_I2C_Read... [11:23:39]Read from MH i2c: E2 62 00 E3 CC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AB 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [11:23:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AB 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:23:39]wFMCommunicate OK [11:23:39]SAM_PROTO_GetFieldsCounters done [11:23:39]requested_item shift.num is exist - process it [11:23:39]requested_item shift.opened is exist - process it [11:23:39]req_shift_opened [11:23:39]FM_GetShiftState [11:23:39]SAM_PROTO_GetShiftState [11:23:39]wFMCommunicate request_size=4 [11:23:39]MH_SAM_APDU [11:23:39]CAPDU: 80 13 01 00 [11:23:39]Write to MH i2c: E2 08 00 E4 CC 80 13 01 00 00 00 00 00 2D [11:23:39]Write i2c OK [11:23:39]MH_I2C_Read... [11:23:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:39]Read from MH i2c: E2 [11:23:39]MH_I2C_Read... [11:23:39]Read from MH i2c: E2 0E 00 [11:23:39]MH_I2C_Read... [11:23:39]Read from MH i2c: E2 0E 00 E4 CC 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 33 [11:23:39]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:23:39]wFMCommunicate OK [11:23:39]SAM_PROTO_GetShiftState done [11:23:39]FM_GetShiftState done [11:23:39]req_shift_opened done [11:23:39]requested_item shift.open_date is exist - process it [11:23:39]req_shift_open_date [11:23:39]req_shift_open_date done [11:23:39]produce_requested_data done [11:23:39]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69291,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [11:23:39]process_action_free close_receipt [11:23:39]json_value_free [11:23:39]json_value_free done [11:23:39]process_json_proto returns [11:23:39]Send response to host [11:23:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69291,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [11:23:39]free response buf [11:23:39]execute_script done [11:23:39]execute_script returns [11:23:39]free content buf [11:23:39]Sock 8.Close socket [11:23:39]Sock 8.Thread stoped [11:23:43]OFD Sender: No OFD packet to send [11:23:48]OFD Sender: No OFD packet to send [11:23:53]OFD Sender: No OFD packet to send [11:23:58]OFD Sender: No OFD packet to send [11:24:03]OFD Sender: No OFD packet to send [11:24:08]OFD Sender: No OFD packet to send [11:24:13]OFD Sender: No OFD packet to send [11:24:18]OFD Sender: No OFD packet to send [11:24:23]OFD Sender: No OFD packet to send [11:24:28]OFD Sender: No OFD packet to send [11:24:33]OFD Sender: No OFD packet to send [11:24:38]OFD Sender: No OFD packet to send [11:24:43]OFD Sender: No OFD packet to send [11:24:48]OFD Sender: No OFD packet to send [11:24:53]OFD Sender: No OFD packet to send [11:24:58]OFD Sender: No OFD packet to send [11:24:59]accept exits with 9 [11:24:59]New connection [11:24:59]New thread 3067116900 created [11:24:59]Thread 3067260260 joined [11:24:59]Waiting for new connection... [11:24:59] Sock 9.Parse request [11:24:59]Sock 9.Check first char [11:24:59]Sock 9.First char is OK [11:24:59]request: POST /json_proto HTTP/1.0 [11:24:59]Method: POST [11:24:59]URL: /json_proto [11:24:59]Method is POST - this is cgi request [11:24:59]url: /json_proto [11:24:59]query_string will be loaded in cgi processing [11:24:59]execute_cgi json_proto POST (null) [11:24:59]execute_cgi path=json_proto method=POST [11:24:59]POST find Content-Length [11:24:59]Host: 172.17.50.3:8080 [11:24:59]Content-Length: 801 [11:24:59]Content-Type: application/json [11:24:59] [11:24:59]POST finish read [11:24:59]Found Content-Length = 801 [11:24:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\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\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4194539", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:59]execute_script... [11:24: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)2885008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\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\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4194539", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:59]POST & json_proto [11:24:59]process_json_proto [11:24:59]json parsed OK: [11:24:59]protocol is kg_v1.0 [11:24:59]action value=close_receipt [11:24:59]process_action close_receipt [11:24:59]cmd_close_receipt [11:24:59]MH_GetDate [11:24:59]Write to MH i2c: F0 00 00 E5 CC A0 [11:24:59]Write i2c OK [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: F0 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: F0 09 00 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: F0 09 00 E5 CC 00 95 E8 14 67 6B 98 1E 66 28 [11:24:59]GetLastDocTimeStamp 1729423425 [11:24:59]current date 1729423509 [11:24:59]FM_GetShiftState [11:24:59]SAM_PROTO_GetShiftState [11:24:59]wFMCommunicate request_size=4 [11:24:59]MH_SAM_APDU [11:24:59]CAPDU: 80 13 01 00 [11:24:59]Write to MH i2c: E2 08 00 E6 CC 80 13 01 00 00 00 00 00 2F [11:24:59]Write i2c OK [11:24:59]MH_I2C_Read... [11:24:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:59]Read from MH i2c: E2 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: E2 0E 00 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: E2 0E 00 E6 CC 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 35 [11:24:59]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:24:59]wFMCommunicate OK [11:24:59]SAM_PROTO_GetShiftState done [11:24:59]FM_GetShiftState done [11:24:59]opened in 1729383220 [11:24:59]opened+sec_in_day 1729469620 [11:24:59]quantity*price = 0 [11:24:59]sum+1 = 1 [11:24:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 137 20.10.2024 11:25 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливные Талоны 4194539 ФМ: 0000000000963346 ФД: 69292 ФПД: 44390901796595 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112509&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69292&fm=44390901796595&tin=02508201610067®Number=0000000000156251&sum=0 [11:25:00]StoreToDocumentArchive [11:25:00]shift 193 fd 69292 [11:25:00]save to /storage/0193/doc_00069292 [11:25:00]save last doc name /storage/0193/doc_00069292 to /storage/kkm_last_doc_name [11:25:00]save OK [11:25:00]Clear old archive folders... [11:25:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:25:00]tlvbuf is B6FA0570 [11:25:00]SAM_PROTO_ClearQueue [11:25:00]wFMCommunicate request_size=4 [11:25:00]MH_SAM_APDU [11:25:00]CAPDU: 80 09 00 00 [11:25:00]Write to MH i2c: E2 08 00 F3 CC 80 09 00 00 00 00 00 00 31 [11:25:00]Write i2c OK [11:25:00]MH_I2C_Read... [11:25:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:00]Read from MH i2c: E2 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: E2 03 00 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: E2 03 00 F3 CC 00 90 00 33 [11:25:00]RAPDU: 90 00 [11:25:00]wFMCommunicate OK [11:25:00]SAM_PROTO_ClearQueue done [11:25:00]KKMCreateOFDPacket [11:25:00]OFDProtocolAddRootSTLVToBuf [11:25:00]FM_MakeSignedData [11:25:00]FM_MakeSignedData [11:25:00]SAM_PROTO_SignData [11:25:00]wFMCommunicate request_size=4 [11:25:00]MH_SAM_APDU [11:25:00]CAPDU: 80 0D 01 02 [11:25:00]Write to MH i2c: E2 08 00 F4 CC 80 0D 01 02 00 00 00 00 39 [11:25:00]Write i2c OK [11:25:00]MH_I2C_Read... [11:25:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:00]Read from MH i2c: E2 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: E2 03 00 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: E2 03 00 F4 CC 00 90 00 34 [11:25:00]RAPDU: 90 00 [11:25:00]wFMCommunicate OK [11:25:00]wFMCommunicate request_size=255 [11:25:00]MH_SAM_APDU [11:25:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 89 00 00 00 F4 03 04 00 95 E8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AC 0E 01 00 35 04 06 00 28 [11:25:00]Write to MH i2c: E2 02 01 F5 CC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 95 E8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AC 0E 01 00 35 04 06 00 28 00 00 99 [11:25:00]Write i2c OK [11:25:00]MH_I2C_Read... [11:25:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:00]Read from MH i2c: E2 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: E2 03 00 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: E2 03 00 F5 CC 00 90 00 35 [11:25:00]RAPDU: 90 00 [11:25:00]wFMCommunicate OK [11:25:00]wFMCommunicate request_size=10 [11:25:00]MH_SAM_APDU [11:25:00]CAPDU: 80 0D 02 02 05 5F 8F EE CE F3 [11:25:00]Write to MH i2c: E2 0D 00 F6 CC 80 0D 02 02 05 00 5F 8F EE CE F3 00 00 E3 [11:25:00]Write i2c OK [11:25:00]MH_I2C_Read... [11:25:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:00]Read from MH i2c: E2 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: E2 03 00 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: E2 03 00 F6 CC 00 90 00 36 [11:25:00]RAPDU: 90 00 [11:25:00]wFMCommunicate OK [11:25:00]wFMCommunicate request_size=4 [11:25:00]MH_SAM_APDU [11:25:00]CAPDU: 80 0D 03 02 [11:25:00]Write to MH i2c: E2 08 00 F7 CC 80 0D 03 02 00 00 00 00 3E [11:25:00]Write i2c OK [11:25:00]MH_I2C_Read... [11:25:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:00]Read from MH i2c: E2 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: E2 0B 00 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: E2 0B 00 F7 CC 00 9D C6 38 CB 68 B5 93 D6 90 00 2B [11:25:00]RAPDU: 9D C6 38 CB 68 B5 93 D6 90 00 [11:25:00]wFMCommunicate OK [11:25:00]SAM_PROTO_SignData done [11:25:00]FM_MakeSignedData done [11:25:00]CreateOFDProtocolMessage [11:25:00]wFMCommunicate request_size=4 [11:25:00]MH_SAM_APDU [11:25:00]CAPDU: 80 11 00 00 [11:25:00]Write to MH i2c: E2 08 00 F8 CC 80 11 00 00 00 00 00 00 3E [11:25:00]Write i2c OK [11:25:00]MH_I2C_Read... [11:25:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:00]Read from MH i2c: E2 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: E2 17 00 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: E2 17 00 F8 CC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 90 [11:25:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:25:00]wFMCommunicate OK [11:25:00]CreateOFDProtocolMessage done [11:25:00]OFDSenderStorePacket 69292 [11:25:00]StoreOFDPacket docnum=69292 [11:25:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 9D BB 07 01 79 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 89 00 00 00 F4 03 04 00 95 E8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AC 0E 01 00 35 04 06 00 28 5F 8F EE CE F3 9D C6 38 CB 68 B5 93 D6 [11:25:00]CheckFolder [11:25:00]dirname=/storage/ofd_packets [11:25:00]CheckFolder done [11:25:00]ProducePacketName [11:25:00]name=ofd_packets/00069292 [11:25:00]NVStorageSaveData ofd_packets/00069292 [11:25:00]File name is /storage/ofd_packets/00069292 [11:25:00]Write 301 bytes [11:25:00]NVStorageSaveData done [11:25:00]OFDSenderStorePacket done [11:25:00]KKMCreateOFDPacket done [11:25:00]NVStorageSaveData kkm_last_timestamp [11:25:00]File name is /storage/kkm_last_timestamp [11:25:00]Write 4 bytes [11:25:00]NVStorageSaveData done [11:25:00]ExternCall_PrintAddStr [11:25:00]wPrintStart [11:25:00]Write to MH i2c: 01 00 00 F9 CC C5 [11:25:00]Write i2c OK [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: 01 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: 01 07 00 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: 01 07 00 F9 CC 00 00 00 00 00 FF 0F DA [11:25:00]RasterBufferAndPrint [11:25:00]line Счет N : (1)2885008 [11:25:00]line ИНН: 02508201610067 [11:25:00]line Контрольно-Кассовый Чек [11:25:00]line ПРОДАЖА [11:25:00]line ТРК (МРК, ГНК) : 22 [11:25:00]line Товар: 2710124130 [11:25:00]line Аи-92-К-5 [11:25:00]line 10.000 * 0.00 [11:25:00]line = 0.00 [11:25:00]line НДС 12% НСП 1% [11:25:00]line > о реализуемом товаре [11:25:00]line ИТОГО: 0.00 [11:25:00]line НСП 1% : 0.00 [11:25:00]line НДС 12% : 0.00 [11:25:00]line Наличными: 0.00 [11:25:00]line Безнал.: 0.00 [11:25:00]line Место: АЗС № 85 "Партнер Нефть" [11:25:00]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:25:00]line СНО: Общий режим [11:25:00]line Чек 137 20.10.2024 11:25 [11:25:00]line Смена: 193 ФФД: 1.0 [11:25:00]line ЗНМ: 0300000167 [11:25:00]line РНМ: 0000000000156251 [11:25:00]line Версия ККМ: v1.0 [11:25:00]line Талоны: Топливные Талоны [11:25:00]line 4194539 [11:25:00]line ФМ: 0000000000963346 [11:25:00]line ФД: 69292 [11:25:00]line ФПД: 44390901796595 [11:25:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112509&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69292&fm=44390901796595&tin=02508201610067®Number=0000000000156251&sum=0 [11:25:01]OFD Sender: Processing packet 69292 [packets to send 18, broken 17] [11:25:01]ProducePacketName [11:25:01]name=ofd_packets/00069292 [11:25:01]OFD Sender: To server: pG, [11:25:01]CommunicateWithHost lk.salyk.kg:30040 [11:25:01]ConnectInit lk.salyk.kg [11:25:01]written 0, free lines is 4095 [11:25:01]Connected sock=10 [11:25:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 9D BB 07 01 79 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 89 00 00 00 F4 03 04 00 95 E8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AC 0E 01 00 35 04 06 00 28 5F 8F EE CE F3 9D C6 38 CB 68 B5 93 D6 [11:25:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 DC E7 47 00 78 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AC 0E 01 00 F4 03 04 00 3C 92 14 67 B6 04 01 00 00 21 B7 F5 D8 A2 AE D7 0C [11:25:01]CommunicateWithHost err = 0 [11:25:01]CheckOFDResponse [11:25:01]1017 (14) - 77093643461234 [11:25:01]1041 (16) - 0000000000963346 [11:25:01]1040 (4) - 69292 [11:25:01]1012 (4) - 20.10.2024 05:16 [11:25:01]1206 (1) - 0 [11:25:01]OFD Sender: Remove packet 69292 [11:25:01]ProducePacketName [11:25:01]name=ofd_packets/00069292 [11:25:01]NVStorageDeleteData [11:25:01]Write to MH i2c: 01 00 00 23 CD F0 [11:25:01]Write i2c OK [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: 01 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: 01 07 00 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: 01 07 00 23 CD 00 00 00 00 00 08 0D 0C [11:25:01]RasterBufferAndPrint [11:25:01]line [11:25:01]line [11:25:01]line [11:25:01]line [11:25:01]line [11:25:01]written 0, free lines is 3346 [11:25:01]MH_Cut [11:25:01]Write to MH i2c: D1 01 00 2A CD 01 C9 [11:25:01]Write i2c OK [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: D1 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: D1 01 00 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: D1 01 00 2A CD 00 C8 [11:25:01]Write to MH i2c: 01 00 00 2B CD F8 [11:25:01]Write i2c OK [11:25:01]MH_I2C_Read... [11:25:02]OFD Sender: No OFD packet to send [11:25:02]*** Cut start [11:25:02]*** Partial cut [11:25:02]*** CUTSNS_PIN = 1 [11:25:02]*** CUTSNS_PIN = 0 [11:25:02]*** Brake cut motor [11:25:03]Read from MH i2c: 01 [11:25:03]MH_I2C_Read... [11:25:03]*** Stop cut motor [11:25:03]*** Cut end [11:25:03]Read from MH i2c: 01 07 00 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: 01 07 00 2B CD 00 00 00 00 00 FF 0F 0D [11:25:03]process_action close_receipt done [11:25:03]requested_data is exist [11:25:03]produce_requested_data [11:25:03]requested_item fm.sn is exist - process it [11:25:03]wFMCommunicate request_size=4 [11:25:03]MH_SAM_APDU [11:25:03]CAPDU: 80 11 00 00 [11:25:03]Write to MH i2c: E2 08 00 2C CD 80 11 00 00 00 00 00 00 73 [11:25:03]Write i2c OK [11:25:03]MH_I2C_Read... [11:25:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:03]Read from MH i2c: E2 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: E2 17 00 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: E2 17 00 2C CD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C5 [11:25:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:25:03]wFMCommunicate OK [11:25:03]requested_item fd.num is exist - process it [11:25:03]SAM_PROTO_GetFieldsCounters [11:25:03]wFMCommunicate request_size=4 [11:25:03]MH_SAM_APDU [11:25:03]CAPDU: 80 13 00 00 [11:25:03]Write to MH i2c: E2 08 00 2D CD 80 13 00 00 00 00 00 00 76 [11:25:03]Write i2c OK [11:25:03]MH_I2C_Read... [11:25:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:03]Read from MH i2c: E2 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: E2 62 00 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: E2 62 00 2D CD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AC 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [11:25:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AC 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:25:03]wFMCommunicate OK [11:25:03]SAM_PROTO_GetFieldsCounters done [11:25:03]requested_item shift.num is exist - process it [11:25:03]requested_item shift.opened is exist - process it [11:25:03]req_shift_opened [11:25:03]FM_GetShiftState [11:25:03]SAM_PROTO_GetShiftState [11:25:03]wFMCommunicate request_size=4 [11:25:03]MH_SAM_APDU [11:25:03]CAPDU: 80 13 01 00 [11:25:03]Write to MH i2c: E2 08 00 2E CD 80 13 01 00 00 00 00 00 78 [11:25:03]Write i2c OK [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: E2 [11:25:03]MH_I2C_Read... [11:25:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:03]Read from MH i2c: E2 0E 00 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: E2 0E 00 2E CD 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 7E [11:25:03]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:25:03]wFMCommunicate OK [11:25:03]SAM_PROTO_GetShiftState done [11:25:03]FM_GetShiftState done [11:25:03]req_shift_opened done [11:25:03]requested_item shift.open_date is exist - process it [11:25:03]req_shift_open_date [11:25:03]req_shift_open_date done [11:25:03]produce_requested_data done [11:25:03]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69292,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [11:25:03]process_action_free close_receipt [11:25:03]json_value_free [11:25:03]json_value_free done [11:25:03]process_json_proto returns [11:25:03]Send response to host [11:25:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69292,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [11:25:03]free response buf [11:25:03]execute_script done [11:25:03]execute_script returns [11:25:03]free content buf [11:25:03]Sock 9.Close socket [11:25:03]Sock 9.Thread stoped [11:25:03]accept exits with 8 [11:25:03]New connection [11:25:03]New thread 3067260260 created [11:25:03]Thread 3067116900 joined [11:25:03]Waiting for new connection... [11:25:03] Sock 8.Parse request [11:25:03]Sock 8.Check first char [11:25:03]Sock 8.First char is OK [11:25:03]request: POST /json_proto HTTP/1.0 [11:25:03]Method: POST [11:25:03]URL: /json_proto [11:25:03]Method is POST - this is cgi request [11:25:03]url: /json_proto [11:25:03]query_string will be loaded in cgi processing [11:25:03]execute_cgi json_proto POST (null) [11:25:03]execute_cgi path=json_proto method=POST [11:25:03]POST find Content-Length [11:25:03]Host: 172.17.50.3:8080 [11:25:03]Content-Length: 683 [11:25:03]Content-Type: application/json [11:25:03] [11:25:03]POST finish read [11:25:03]Found Content-Length = 683 [11:25:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:03]execute_script... [11:25: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)2885007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:03]POST & json_proto [11:25:03]process_json_proto [11:25:03]json parsed OK: [11:25:03]protocol is kg_v1.0 [11:25:03]action value=close_receipt [11:25:03]process_action close_receipt [11:25:03]cmd_close_receipt [11:25:03]MH_GetDate [11:25:03]Write to MH i2c: F0 00 00 2F CD EB [11:25:03]Write i2c OK [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: F0 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: F0 09 00 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: F0 09 00 2F CD 00 99 E8 14 67 6B 98 1E 66 77 [11:25:03]GetLastDocTimeStamp 1729423509 [11:25:03]current date 1729423513 [11:25:03]FM_GetShiftState [11:25:03]SAM_PROTO_GetShiftState [11:25:03]wFMCommunicate request_size=4 [11:25:03]MH_SAM_APDU [11:25:03]CAPDU: 80 13 01 00 [11:25:03]Write to MH i2c: E2 08 00 30 CD 80 13 01 00 00 00 00 00 7A [11:25:03]Write i2c OK [11:25:03]MH_I2C_Read... [11:25:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:03]Read from MH i2c: E2 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: E2 0E 00 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: E2 0E 00 30 CD 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 80 [11:25:03]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:25:03]wFMCommunicate OK [11:25:03]SAM_PROTO_GetShiftState done [11:25:03]FM_GetShiftState done [11:25:03]opened in 1729383220 [11:25:03]opened+sec_in_day 1729469620 [11:25:03]quantity*price = 100015 [11:25:03]sum+1 = 100017 [11:25:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 138 20.10.2024 11:25 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69293 ФПД: 237271771007572 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112513&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69293&fm=237271771007572&tin=02508201610067®Number=0000000000156251&sum=100000 [11:25:04]StoreToDocumentArchive [11:25:04]shift 193 fd 69293 [11:25:04]save to /storage/0193/doc_00069293 [11:25:04]save last doc name /storage/0193/doc_00069293 to /storage/kkm_last_doc_name [11:25:04]save OK [11:25:04]Clear old archive folders... [11:25:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:25:04]tlvbuf is 0091FCB0 [11:25:04]SAM_PROTO_ClearQueue [11:25:04]wFMCommunicate request_size=4 [11:25:04]MH_SAM_APDU [11:25:04]CAPDU: 80 09 00 00 [11:25:04]Write to MH i2c: E2 08 00 3D CD 80 09 00 00 00 00 00 00 7C [11:25:04]Write i2c OK [11:25:04]MH_I2C_Read... [11:25:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:04]Read from MH i2c: E2 [11:25:04]MH_I2C_Read... [11:25:04]Read from MH i2c: E2 03 00 [11:25:04]MH_I2C_Read... [11:25:04]Read from MH i2c: E2 03 00 3D CD 00 90 00 7E [11:25:04]RAPDU: 90 00 [11:25:04]wFMCommunicate OK [11:25:04]SAM_PROTO_ClearQueue done [11:25:04]KKMCreateOFDPacket [11:25:04]OFDProtocolAddRootSTLVToBuf [11:25:04]FM_MakeSignedData [11:25:04]FM_MakeSignedData [11:25:04]SAM_PROTO_SignData [11:25:04]wFMCommunicate request_size=4 [11:25:04]MH_SAM_APDU [11:25:04]CAPDU: 80 0D 01 02 [11:25:04]Write to MH i2c: E2 08 00 3E CD 80 0D 01 02 00 00 00 00 84 [11:25:04]Write i2c OK [11:25:04]MH_I2C_Read... [11:25:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:05]Read from MH i2c: E2 [11:25:05]MH_I2C_Read... [11:25:05]Read from MH i2c: E2 03 00 [11:25:05]MH_I2C_Read... [11:25:05]Read from MH i2c: E2 03 00 3E CD 00 90 00 7F [11:25:05]RAPDU: 90 00 [11:25:05]wFMCommunicate OK [11:25:05]wFMCommunicate request_size=255 [11:25:05]MH_SAM_APDU [11:25:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 99 E8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AD 0E 01 00 35 04 06 00 D7 [11:25:05]Write to MH i2c: E2 02 01 3F CD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 99 E8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AD 0E 01 00 35 04 06 00 D7 00 00 E1 [11:25:05]Write i2c OK [11:25:05]MH_I2C_Read... [11:25:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:05]Read from MH i2c: E2 [11:25:05]MH_I2C_Read... [11:25:05]Read from MH i2c: E2 03 00 [11:25:05]MH_I2C_Read... [11:25:05]Read from MH i2c: E2 03 00 3F CD 00 90 00 80 [11:25:05]RAPDU: 90 00 [11:25:05]wFMCommunicate OK [11:25:05]wFMCommunicate request_size=10 [11:25:05]MH_SAM_APDU [11:25:05]CAPDU: 80 0D 02 02 05 CC 23 A0 4A 54 [11:25:05]Write to MH i2c: E2 0D 00 40 CD 80 0D 02 02 05 00 CC 23 A0 4A 54 00 00 BE [11:25:05]Write i2c OK [11:25:05]MH_I2C_Read... [11:25:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:05]Read from MH i2c: E2 [11:25:05]MH_I2C_Read... [11:25:05]Read from MH i2c: E2 03 00 [11:25:05]MH_I2C_Read... [11:25:05]Read from MH i2c: E2 03 00 40 CD 00 90 00 81 [11:25:05]RAPDU: 90 00 [11:25:05]wFMCommunicate OK [11:25:05]wFMCommunicate request_size=4 [11:25:05]MH_SAM_APDU [11:25:05]CAPDU: 80 0D 03 02 [11:25:05]Write to MH i2c: E2 08 00 41 CD 80 0D 03 02 00 00 00 00 89 [11:25:05]Write i2c OK [11:25:05]MH_I2C_Read... [11:25:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:05]Read from MH i2c: E2 [11:25:05]MH_I2C_Read... [11:25:05]Read from MH i2c: E2 0B 00 [11:25:05]MH_I2C_Read... [11:25:05]Read from MH i2c: E2 0B 00 41 CD 00 7F ED C3 DC 48 FE 09 54 90 00 38 [11:25:05]RAPDU: 7F ED C3 DC 48 FE 09 54 90 00 [11:25:05]wFMCommunicate OK [11:25:05]SAM_PROTO_SignData done [11:25:05]FM_MakeSignedData done [11:25:05]CreateOFDProtocolMessage [11:25:05]wFMCommunicate request_size=4 [11:25:05]MH_SAM_APDU [11:25:05]CAPDU: 80 11 00 00 [11:25:05]Write to MH i2c: E2 08 00 42 CD 80 11 00 00 00 00 00 00 89 [11:25:05]Write i2c OK [11:25:05]MH_I2C_Read... [11:25:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:05]Read from MH i2c: E2 [11:25:05]MH_I2C_Read... [11:25:05]Read from MH i2c: E2 17 00 [11:25:05]MH_I2C_Read... [11:25:05]Read from MH i2c: E2 17 00 42 CD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DB [11:25:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:25:05]wFMCommunicate OK [11:25:05]CreateOFDProtocolMessage done [11:25:05]OFDSenderStorePacket 69293 [11:25:05]StoreOFDPacket docnum=69293 [11:25:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 DC 22 07 01 60 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 99 E8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AD 0E 01 00 35 04 06 00 D7 CC 23 A0 4A 54 7F ED C3 DC 48 FE 09 54 [11:25:05]CheckFolder [11:25:05]dirname=/storage/ofd_packets [11:25:05]CheckFolder done [11:25:05]ProducePacketName [11:25:05]name=ofd_packets/00069293 [11:25:05]NVStorageSaveData ofd_packets/00069293 [11:25:05]File name is /storage/ofd_packets/00069293 [11:25:05]Write 301 bytes [11:25:05]NVStorageSaveData done [11:25:05]OFDSenderStorePacket done [11:25:05]KKMCreateOFDPacket done [11:25:05]NVStorageSaveData kkm_last_timestamp [11:25:05]File name is /storage/kkm_last_timestamp [11:25:05]Write 4 bytes [11:25:05]NVStorageSaveData done [11:25:05]ExternCall_PrintAddStr [11:25:05]wPrintStart [11:25:05]Write to MH i2c: 01 00 00 43 CD 10 [11:25:05]Write i2c OK [11:25:05]MH_I2C_Read... [11:25:05]Read from MH i2c: 01 [11:25:05]MH_I2C_Read... [11:25:05]Read from MH i2c: 01 07 00 [11:25:05]MH_I2C_Read... [11:25:05]Read from MH i2c: 01 07 00 43 CD 00 00 00 00 00 FF 0F 25 [11:25:05]RasterBufferAndPrint [11:25:05]line Счет N : (1)2885007 [11:25:05]line ИНН: 02508201610067 [11:25:05]line Контрольно-Кассовый Чек [11:25:05]line ПРОДАЖА [11:25:05]line ТРК (МРК, ГНК) : 42 [11:25:05]line Товар: 2710124130 [11:25:05]line Аи-92-К-5 [11:25:05]line 14.950 * 66.90 [11:25:05]line = 1000.16 [11:25:05]line НДС 12% НСП 1% [11:25:05]line > о реализуемом товаре [11:25:05]line ОКРУГЛЕНИЕ: -0.16 [11:25:05]line ИТОГО: 1000.00 [11:25:05]line Внесено: 1000.00 [11:25:05]line СДАЧА: 0.00 [11:25:05]line НСП 1% : 8.85 [11:25:05]line НДС 12% : 106.21 [11:25:05]line Наличными: 1000.00 [11:25:05]line Безнал.: 0.00 [11:25:05]line Место: АЗС № 85 "Партнер Нефть" [11:25:05]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:25:05]line СНО: Общий режим [11:25:05]line Чек 138 20.10.2024 11:25 [11:25:05]line Смена: 193 ФФД: 1.0 [11:25:05]line ЗНМ: 0300000167 [11:25:05]line РНМ: 0000000000156251 [11:25:05]line Версия ККМ: v1.0 [11:25:05]line ФМ: 0000000000963346 [11:25:05]line ФД: 69293 [11:25:05]line ФПД: 237271771007572 [11:25:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112513&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69293&fm=237271771007572&tin=02508201610067®Number=0000000000156251&sum=100000 [11:25:06]OFD Sender: Processing packet 69293 [packets to send 18, broken 17] [11:25:06]ProducePacketName [11:25:06]name=ofd_packets/00069293 [11:25:06]OFD Sender: To server: pG, [11:25:06]CommunicateWithHost lk.salyk.kg:30040 [11:25:06]ConnectInit lk.salyk.kg [11:25:06]written 0, free lines is 4095 [11:25:06]Connected sock=10 [11:25:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 DC 22 07 01 60 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 99 E8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AD 0E 01 00 35 04 06 00 D7 CC 23 A0 4A 54 7F ED C3 DC 48 FE 09 54 [11:25:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 7D DC 47 00 11 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AD 0E 01 00 F4 03 04 00 41 92 14 67 B6 04 01 00 00 4C 51 E9 23 EE 60 FA 5F [11:25:06]CommunicateWithHost err = 0 [11:25:06]CheckOFDResponse [11:25:06]1017 (14) - 77093643461234 [11:25:06]1041 (16) - 0000000000963346 [11:25:06]1040 (4) - 69293 [11:25:06]1012 (4) - 20.10.2024 05:16 [11:25:06]1206 (1) - 0 [11:25:06]OFD Sender: Remove packet 69293 [11:25:06]ProducePacketName [11:25:06]name=ofd_packets/00069293 [11:25:06]NVStorageDeleteData [11:25:06]Write to MH i2c: 01 00 00 6E CD 3B [11:25:06]Write i2c OK [11:25:06]MH_I2C_Read... [11:25:06]Read from MH i2c: 01 [11:25:06]MH_I2C_Read... [11:25:06]Read from MH i2c: 01 07 00 [11:25:06]MH_I2C_Read... [11:25:06]Read from MH i2c: 01 07 00 6E CD 00 00 00 00 00 F6 0C 44 [11:25:06]RasterBufferAndPrint [11:25:06]line [11:25:06]line [11:25:06]line [11:25:06]line [11:25:06]line [11:25:06]written 0, free lines is 3333 [11:25:06]MH_Cut [11:25:06]Write to MH i2c: D1 01 00 75 CD 01 14 [11:25:06]Write i2c OK [11:25:06]MH_I2C_Read... [11:25:06]Read from MH i2c: D1 [11:25:06]MH_I2C_Read... [11:25:06]Read from MH i2c: D1 01 00 [11:25:06]MH_I2C_Read... [11:25:06]Read from MH i2c: D1 01 00 75 CD 00 13 [11:25:06]Write to MH i2c: 01 00 00 76 CD 43 [11:25:06]Write i2c OK [11:25:06]MH_I2C_Read... [11:25:07]OFD Sender: No OFD packet to send [11:25:07]*** Cut start [11:25:07]*** Partial cut [11:25:07]*** CUTSNS_PIN = 1 [11:25:07]*** CUTSNS_PIN = 0 [11:25:07]*** Brake cut motor [11:25:07]Read from MH i2c: 01 [11:25:07]MH_I2C_Read... [11:25:07]*** Stop cut motor [11:25:07]*** Cut end [11:25:07]Read from MH i2c: 01 07 00 [11:25:07]MH_I2C_Read... [11:25:07]Read from MH i2c: 01 07 00 76 CD 00 00 00 00 00 FF 0F 58 [11:25:07]process_action close_receipt done [11:25:07]requested_data is exist [11:25:07]produce_requested_data [11:25:07]requested_item fm.sn is exist - process it [11:25:07]wFMCommunicate request_size=4 [11:25:07]MH_SAM_APDU [11:25:07]CAPDU: 80 11 00 00 [11:25:07]Write to MH i2c: E2 08 00 77 CD 80 11 00 00 00 00 00 00 BE [11:25:07]Write i2c OK [11:25:07]MH_I2C_Read... [11:25:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:08]Read from MH i2c: E2 [11:25:08]MH_I2C_Read... [11:25:08]Read from MH i2c: E2 17 00 [11:25:08]MH_I2C_Read... [11:25:08]Read from MH i2c: E2 17 00 77 CD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 10 [11:25:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:25:08]wFMCommunicate OK [11:25:08]requested_item fd.num is exist - process it [11:25:08]SAM_PROTO_GetFieldsCounters [11:25:08]wFMCommunicate request_size=4 [11:25:08]MH_SAM_APDU [11:25:08]CAPDU: 80 13 00 00 [11:25:08]Write to MH i2c: E2 08 00 78 CD 80 13 00 00 00 00 00 00 C1 [11:25:08]Write i2c OK [11:25:08]MH_I2C_Read... [11:25:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:08]Read from MH i2c: E2 [11:25:08]MH_I2C_Read... [11:25:08]Read from MH i2c: E2 62 00 [11:25:08]MH_I2C_Read... [11:25:08]Read from MH i2c: E2 62 00 78 CD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AD 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [11:25:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AD 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:25:08]wFMCommunicate OK [11:25:08]SAM_PROTO_GetFieldsCounters done [11:25:08]requested_item shift.num is exist - process it [11:25:08]requested_item shift.opened is exist - process it [11:25:08]req_shift_opened [11:25:08]FM_GetShiftState [11:25:08]SAM_PROTO_GetShiftState [11:25:08]wFMCommunicate request_size=4 [11:25:08]MH_SAM_APDU [11:25:08]CAPDU: 80 13 01 00 [11:25:08]Write to MH i2c: E2 08 00 79 CD 80 13 01 00 00 00 00 00 C3 [11:25:08]Write i2c OK [11:25:08]MH_I2C_Read... [11:25:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:08]Read from MH i2c: E2 [11:25:08]MH_I2C_Read... [11:25:08]Read from MH i2c: E2 0E 00 [11:25:08]MH_I2C_Read... [11:25:08]Read from MH i2c: E2 0E 00 79 CD 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 C9 [11:25:08]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:25:08]wFMCommunicate OK [11:25:08]SAM_PROTO_GetShiftState done [11:25:08]FM_GetShiftState done [11:25:08]req_shift_opened done [11:25:08]requested_item shift.open_date is exist - process it [11:25:08]req_shift_open_date [11:25:08]req_shift_open_date done [11:25:08]produce_requested_data done [11:25:08]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69293,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [11:25:08]process_action_free close_receipt [11:25:08]json_value_free [11:25:08]json_value_free done [11:25:08]process_json_proto returns [11:25:08]Send response to host [11:25:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69293,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [11:25:08]free response buf [11:25:08]execute_script done [11:25:08]execute_script returns [11:25:08]free content buf [11:25:08]Sock 8.Close socket [11:25:08]Sock 8.Thread stoped [11:25:12]OFD Sender: No OFD packet to send [11:25:15]accept exits with 9 [11:25:15]New connection [11:25:15]New thread 3067116900 created [11:25:15]Thread 3067260260 joined [11:25:15]Waiting for new connection... [11:25:15] Sock 9.Parse request [11:25:15]Sock 9.Check first char [11:25:15]Sock 9.First char is OK [11:25:15]request: POST /json_proto HTTP/1.0 [11:25:15]Method: POST [11:25:15]URL: /json_proto [11:25:15]Method is POST - this is cgi request [11:25:15]url: /json_proto [11:25:15]query_string will be loaded in cgi processing [11:25:15]execute_cgi json_proto POST (null) [11:25:15]execute_cgi path=json_proto method=POST [11:25:15]POST find Content-Length [11:25:15]Host: 172.17.50.3:8080 [11:25:15]Content-Length: 680 [11:25:15]Content-Type: application/json [11:25:15] [11:25:15]POST finish read [11:25:15]Found Content-Length = 680 [11:25:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:15]execute_script... [11:25: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)2885009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:15]POST & json_proto [11:25:15]process_json_proto [11:25:15]json parsed OK: [11:25:15]protocol is kg_v1.0 [11:25:15]action value=close_receipt [11:25:15]process_action close_receipt [11:25:15]cmd_close_receipt [11:25:15]MH_GetDate [11:25:15]Write to MH i2c: F0 00 00 7A CD 36 [11:25:15]Write i2c OK [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: F0 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: F0 09 00 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: F0 09 00 7A CD 00 A5 E8 14 67 6B 98 1E 66 CE [11:25:15]GetLastDocTimeStamp 1729423513 [11:25:15]current date 1729423525 [11:25:15]FM_GetShiftState [11:25:15]SAM_PROTO_GetShiftState [11:25:15]wFMCommunicate request_size=4 [11:25:15]MH_SAM_APDU [11:25:15]CAPDU: 80 13 01 00 [11:25:15]Write to MH i2c: E2 08 00 7B CD 80 13 01 00 00 00 00 00 C5 [11:25:15]Write i2c OK [11:25:15]MH_I2C_Read... [11:25:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:15]Read from MH i2c: E2 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: E2 0E 00 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: E2 0E 00 7B CD 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 CB [11:25:15]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:25:15]wFMCommunicate OK [11:25:15]SAM_PROTO_GetShiftState done [11:25:15]FM_GetShiftState done [11:25:15]opened in 1729383220 [11:25:15]opened+sec_in_day 1729469620 [11:25:15]quantity*price = 100050 [11:25:15]sum+1 = 100052 [11:25:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 139 20.10.2024 11:25 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69294 ФПД: 165042835258137 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112526&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69294&fm=165042835258137&tin=02508201610067®Number=0000000000156251&sum=100000 [11:25:16]StoreToDocumentArchive [11:25:16]shift 193 fd 69294 [11:25:16]save to /storage/0193/doc_00069294 [11:25:16]save last doc name /storage/0193/doc_00069294 to /storage/kkm_last_doc_name [11:25:16]save OK [11:25:16]Clear old archive folders... [11:25:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:25:16]tlvbuf is 008DC0B0 [11:25:16]SAM_PROTO_ClearQueue [11:25:16]wFMCommunicate request_size=4 [11:25:16]MH_SAM_APDU [11:25:16]CAPDU: 80 09 00 00 [11:25:16]Write to MH i2c: E2 08 00 88 CD 80 09 00 00 00 00 00 00 C7 [11:25:16]Write i2c OK [11:25:16]MH_I2C_Read... [11:25:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:16]Read from MH i2c: E2 [11:25:16]MH_I2C_Read... [11:25:16]Read from MH i2c: E2 03 00 [11:25:16]MH_I2C_Read... [11:25:16]Read from MH i2c: E2 03 00 88 CD 00 90 00 C9 [11:25:16]RAPDU: 90 00 [11:25:16]wFMCommunicate OK [11:25:16]SAM_PROTO_ClearQueue done [11:25:16]KKMCreateOFDPacket [11:25:16]OFDProtocolAddRootSTLVToBuf [11:25:16]FM_MakeSignedData [11:25:16]FM_MakeSignedData [11:25:16]SAM_PROTO_SignData [11:25:16]wFMCommunicate request_size=4 [11:25:16]MH_SAM_APDU [11:25:16]CAPDU: 80 0D 01 02 [11:25:16]Write to MH i2c: E2 08 00 89 CD 80 0D 01 02 00 00 00 00 CF [11:25:16]Write i2c OK [11:25:16]MH_I2C_Read... [11:25:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:16]Read from MH i2c: E2 [11:25:16]MH_I2C_Read... [11:25:16]Read from MH i2c: E2 03 00 [11:25:16]MH_I2C_Read... [11:25:16]Read from MH i2c: E2 03 00 89 CD 00 90 00 CA [11:25:16]RAPDU: 90 00 [11:25:16]wFMCommunicate OK [11:25:16]wFMCommunicate request_size=255 [11:25:16]MH_SAM_APDU [11:25:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 A6 E8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AE 0E 01 00 35 04 06 00 96 1B 07 91 [11:25:16]Write to MH i2c: E2 02 01 8A CD 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 A6 E8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AE 0E 01 00 35 04 06 00 96 1B 07 91 00 00 A9 [11:25:17]Write i2c OK [11:25:17]MH_I2C_Read... [11:25:17]OFD Sender: No OFD packet to send [11:25:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:17]Read from MH i2c: E2 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: E2 03 00 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: E2 03 00 8A CD 00 90 00 CB [11:25:17]RAPDU: 90 00 [11:25:17]wFMCommunicate OK [11:25:17]wFMCommunicate request_size=7 [11:25:17]MH_SAM_APDU [11:25:17]CAPDU: 80 0D 02 02 02 7B 19 [11:25:17]Write to MH i2c: E2 0A 00 8B CD 80 0D 02 02 02 00 7B 19 00 00 6A [11:25:17]Write i2c OK [11:25:17]MH_I2C_Read... [11:25:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:17]Read from MH i2c: E2 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: E2 03 00 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: E2 03 00 8B CD 00 90 00 CC [11:25:17]RAPDU: 90 00 [11:25:17]wFMCommunicate OK [11:25:17]wFMCommunicate request_size=4 [11:25:17]MH_SAM_APDU [11:25:17]CAPDU: 80 0D 03 02 [11:25:17]Write to MH i2c: E2 08 00 8C CD 80 0D 03 02 00 00 00 00 D4 [11:25:17]Write i2c OK [11:25:17]MH_I2C_Read... [11:25:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:17]Read from MH i2c: E2 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: E2 0B 00 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: E2 0B 00 8C CD 00 84 DB 88 30 C0 36 B9 97 90 00 32 [11:25:17]RAPDU: 84 DB 88 30 C0 36 B9 97 90 00 [11:25:17]wFMCommunicate OK [11:25:17]SAM_PROTO_SignData done [11:25:17]FM_MakeSignedData done [11:25:17]CreateOFDProtocolMessage [11:25:17]wFMCommunicate request_size=4 [11:25:17]MH_SAM_APDU [11:25:17]CAPDU: 80 11 00 00 [11:25:17]Write to MH i2c: E2 08 00 8D CD 80 11 00 00 00 00 00 00 D4 [11:25:17]Write i2c OK [11:25:17]MH_I2C_Read... [11:25:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:17]Read from MH i2c: E2 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: E2 17 00 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: E2 17 00 8D CD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 26 [11:25:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:25:17]wFMCommunicate OK [11:25:17]CreateOFDProtocolMessage done [11:25:17]OFDSenderStorePacket 69294 [11:25:17]StoreOFDPacket docnum=69294 [11:25:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 3B 78 04 01 73 A0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 A6 E8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AE 0E 01 00 35 04 06 00 96 1B 07 91 7B 19 84 DB 88 30 C0 36 B9 97 [11:25:17]CheckFolder [11:25:17]dirname=/storage/ofd_packets [11:25:17]CheckFolder done [11:25:17]ProducePacketName [11:25:17]name=ofd_packets/00069294 [11:25:17]NVStorageSaveData ofd_packets/00069294 [11:25:17]File name is /storage/ofd_packets/00069294 [11:25:17]Write 298 bytes [11:25:17]NVStorageSaveData done [11:25:17]OFDSenderStorePacket done [11:25:17]KKMCreateOFDPacket done [11:25:17]NVStorageSaveData kkm_last_timestamp [11:25:17]File name is /storage/kkm_last_timestamp [11:25:17]Write 4 bytes [11:25:17]NVStorageSaveData done [11:25:17]ExternCall_PrintAddStr [11:25:17]wPrintStart [11:25:17]Write to MH i2c: 01 00 00 8E CD 5B [11:25:17]Write i2c OK [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: 01 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: 01 07 00 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: 01 07 00 8E CD 00 00 00 00 00 FF 0F 70 [11:25:17]RasterBufferAndPrint [11:25:17]line Счет N : (1)2885009 [11:25:17]line ИНН: 02508201610067 [11:25:17]line Контрольно-Кассовый Чек [11:25:17]line ПРОДАЖА [11:25:17]line ТРК (МРК, ГНК) : 61 [11:25:17]line Товар: 2710194210 [11:25:17]line ДТ-К-5 [11:25:17]line 13.130 * 76.20 [11:25:17]line = 1000.51 [11:25:17]line НДС 12% НСП 1% [11:25:17]line > о реализуемом товаре [11:25:17]line ОКРУГЛЕНИЕ: -0.51 [11:25:17]line ИТОГО: 1000.00 [11:25:17]line Внесено: 1000.00 [11:25:17]line СДАЧА: 0.00 [11:25:17]line НСП 1% : 8.85 [11:25:17]line НДС 12% : 106.25 [11:25:17]line Наличными: 1000.00 [11:25:17]line Безнал.: 0.00 [11:25:17]line Место: АЗС № 85 "Партнер Нефть" [11:25:17]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:25:17]line СНО: Общий режим [11:25:17]line Чек 139 20.10.2024 11:25 [11:25:17]line Смена: 193 ФФД: 1.0 [11:25:17]line ЗНМ: 0300000167 [11:25:17]line РНМ: 0000000000156251 [11:25:17]line Версия ККМ: v1.0 [11:25:17]line ФМ: 0000000000963346 [11:25:17]line ФД: 69294 [11:25:17]line ФПД: 165042835258137 [11:25:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112526&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69294&fm=165042835258137&tin=02508201610067®Number=0000000000156251&sum=100000 [11:25:17]OFD Sender: Processing packet 69294 [packets to send 18, broken 17] [11:25:17]ProducePacketName [11:25:17]name=ofd_packets/00069294 [11:25:17]OFD Sender: To server: pG, [11:25:17]CommunicateWithHost lk.salyk.kg:30040 [11:25:17]ConnectInit lk.salyk.kg [11:25:17]written 0, free lines is 4095 [11:25:17]Connected sock=10 [11:25:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 3B 78 04 01 73 A0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 A6 E8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AE 0E 01 00 35 04 06 00 96 1B 07 91 7B 19 84 DB 88 30 C0 36 B9 97 [11:25:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 EE 79 47 00 7A 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AE 0E 01 00 F4 03 04 00 4C 92 14 67 B6 04 01 00 00 8D 49 F0 24 85 96 19 0F [11:25:18]CommunicateWithHost err = 0 [11:25:18]CheckOFDResponse [11:25:18]1017 (14) - 77093643461234 [11:25:18]1041 (16) - 0000000000963346 [11:25:18]1040 (4) - 69294 [11:25:18]1012 (4) - 20.10.2024 05:17 [11:25:18]1206 (1) - 0 [11:25:18]OFD Sender: Remove packet 69294 [11:25:18]ProducePacketName [11:25:18]name=ofd_packets/00069294 [11:25:18]NVStorageDeleteData [11:25:18]Write to MH i2c: 01 00 00 B9 CD 86 [11:25:18]Write i2c OK [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: 01 [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: 01 07 00 [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: 01 07 00 B9 CD 00 00 00 00 00 10 0D AA [11:25:18]RasterBufferAndPrint [11:25:18]line [11:25:18]line [11:25:18]line [11:25:18]line [11:25:18]line [11:25:18]written 0, free lines is 3362 [11:25:18]MH_Cut [11:25:18]Write to MH i2c: D1 01 00 C0 CD 01 5F [11:25:18]Write i2c OK [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: D1 [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: D1 01 00 [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: D1 01 00 C0 CD 00 5E [11:25:18]Write to MH i2c: 01 00 00 C1 CD 8E [11:25:18]Write i2c OK [11:25:18]MH_I2C_Read... [11:25:18]OFD Sender: No OFD packet to send [11:25:18]*** Cut start [11:25:18]*** Partial cut [11:25:18]*** CUTSNS_PIN = 1 [11:25:19]*** CUTSNS_PIN = 0 [11:25:19]*** Brake cut motor [11:25:19]Read from MH i2c: 01 [11:25:19]MH_I2C_Read... [11:25:19]*** Stop cut motor [11:25:19]*** Cut end [11:25:19]Read from MH i2c: 01 07 00 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: 01 07 00 C1 CD 00 00 00 00 00 FF 0F A3 [11:25:19]process_action close_receipt done [11:25:19]requested_data is exist [11:25:19]produce_requested_data [11:25:19]requested_item fm.sn is exist - process it [11:25:19]wFMCommunicate request_size=4 [11:25:19]MH_SAM_APDU [11:25:19]CAPDU: 80 11 00 00 [11:25:19]Write to MH i2c: E2 08 00 C2 CD 80 11 00 00 00 00 00 00 09 [11:25:19]Write i2c OK [11:25:19]MH_I2C_Read... [11:25:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:19]Read from MH i2c: E2 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: E2 17 00 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: E2 17 00 C2 CD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5B [11:25:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:25:19]wFMCommunicate OK [11:25:19]requested_item fd.num is exist - process it [11:25:19]SAM_PROTO_GetFieldsCounters [11:25:19]wFMCommunicate request_size=4 [11:25:19]MH_SAM_APDU [11:25:19]CAPDU: 80 13 00 00 [11:25:19]Write to MH i2c: E2 08 00 C3 CD 80 13 00 00 00 00 00 00 0C [11:25:19]Write i2c OK [11:25:19]MH_I2C_Read... [11:25:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:19]Read from MH i2c: E2 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: E2 62 00 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: E2 62 00 C3 CD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AE 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [11:25:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AE 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:25:19]wFMCommunicate OK [11:25:19]SAM_PROTO_GetFieldsCounters done [11:25:19]requested_item shift.num is exist - process it [11:25:19]requested_item shift.opened is exist - process it [11:25:19]req_shift_opened [11:25:19]FM_GetShiftState [11:25:19]SAM_PROTO_GetShiftState [11:25:19]wFMCommunicate request_size=4 [11:25:19]MH_SAM_APDU [11:25:19]CAPDU: 80 13 01 00 [11:25:19]Write to MH i2c: E2 08 00 C4 CD 80 13 01 00 00 00 00 00 0E [11:25:19]Write i2c OK [11:25:19]MH_I2C_Read... [11:25:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:19]Read from MH i2c: E2 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: E2 0E 00 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: E2 0E 00 C4 CD 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 14 [11:25:19]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:25:19]wFMCommunicate OK [11:25:19]SAM_PROTO_GetShiftState done [11:25:19]FM_GetShiftState done [11:25:19]req_shift_opened done [11:25:19]requested_item shift.open_date is exist - process it [11:25:19]req_shift_open_date [11:25:19]req_shift_open_date done [11:25:19]produce_requested_data done [11:25:19]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69294,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [11:25:19]process_action_free close_receipt [11:25:19]json_value_free [11:25:19]json_value_free done [11:25:19]process_json_proto returns [11:25:19]Send response to host [11:25:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69294,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [11:25:19]free response buf [11:25:19]execute_script done [11:25:19]execute_script returns [11:25:19]free content buf [11:25:19]Sock 9.Close socket [11:25:19]Sock 9.Thread stoped [11:25:23]OFD Sender: No OFD packet to send [11:25:28]OFD Sender: No OFD packet to send [11:25:33]OFD Sender: No OFD packet to send [11:25:38]OFD Sender: No OFD packet to send [11:25:43]OFD Sender: No OFD packet to send [11:25:48]OFD Sender: No OFD packet to send [11:25:53]OFD Sender: No OFD packet to send [11:25:58]OFD Sender: No OFD packet to send [11:26:03]OFD Sender: No OFD packet to send [11:26:08]OFD Sender: No OFD packet to send [11:26:13]OFD Sender: No OFD packet to send [11:26:18]OFD Sender: No OFD packet to send [11:26:23]OFD Sender: No OFD packet to send [11:26:28]OFD Sender: No OFD packet to send [11:26:33]OFD Sender: No OFD packet to send [11:26:38]OFD Sender: No OFD packet to send [11:26:43]OFD Sender: No OFD packet to send [11:26:48]OFD Sender: No OFD packet to send [11:26:53]OFD Sender: No OFD packet to send [11:26:58]OFD Sender: No OFD packet to send [11:27:03]OFD Sender: No OFD packet to send [11:27:08]OFD Sender: No OFD packet to send [11:27:13]OFD Sender: No OFD packet to send [11:27:18]OFD Sender: No OFD packet to send [11:27:23]OFD Sender: No OFD packet to send [11:27:28]OFD Sender: No OFD packet to send [11:27:33]OFD Sender: No OFD packet to send [11:27:38]OFD Sender: No OFD packet to send [11:27:43]OFD Sender: No OFD packet to send [11:27:48]OFD Sender: No OFD packet to send [11:27:53]OFD Sender: No OFD packet to send [11:27:58]OFD Sender: No OFD packet to send [11:28:03]OFD Sender: No OFD packet to send [11:28:08]OFD Sender: No OFD packet to send [11:28:13]OFD Sender: No OFD packet to send [11:28:18]OFD Sender: No OFD packet to send [11:28:23]OFD Sender: No OFD packet to send [11:28:28]OFD Sender: No OFD packet to send [11:28:33]OFD Sender: No OFD packet to send [11:28:38]OFD Sender: No OFD packet to send [11:28:43]OFD Sender: No OFD packet to send [11:28:48]OFD Sender: No OFD packet to send [11:28:53]OFD Sender: No OFD packet to send [11:28:58]OFD Sender: No OFD packet to send [11:29:03]OFD Sender: No OFD packet to send [11:29:08]OFD Sender: No OFD packet to send [11:29:13]OFD Sender: No OFD packet to send [11:29:18]OFD Sender: No OFD packet to send [11:29:23]OFD Sender: No OFD packet to send [11:29:28]OFD Sender: No OFD packet to send [11:29:33]OFD Sender: No OFD packet to send [11:29:38]OFD Sender: No OFD packet to send [11:29:43]OFD Sender: No OFD packet to send [11:29:48]OFD Sender: No OFD packet to send [11:29:53]OFD Sender: No OFD packet to send [11:29:58]OFD Sender: No OFD packet to send [11:30:03]OFD Sender: No OFD packet to send [11:30:09]OFD Sender: No OFD packet to send [11:30:14]OFD Sender: No OFD packet to send [11:30:19]OFD Sender: No OFD packet to send [11:30:24]OFD Sender: No OFD packet to send [11:30:29]OFD Sender: No OFD packet to send [11:30:34]OFD Sender: No OFD packet to send [11:30:39]OFD Sender: No OFD packet to send [11:30:44]OFD Sender: No OFD packet to send [11:30:49]OFD Sender: No OFD packet to send [11:30:54]OFD Sender: No OFD packet to send [11:30:59]OFD Sender: No OFD packet to send [11:31:04]OFD Sender: No OFD packet to send [11:31:05]accept exits with 8 [11:31:05]New connection [11:31:05]New thread 3067260260 created [11:31:05]Thread 3067116900 joined [11:31:05]Waiting for new connection... [11:31:05] Sock 8.Parse request [11:31:05]Sock 8.Check first char [11:31:05]Sock 8.First char is OK [11:31:05]request: POST /json_proto HTTP/1.0 [11:31:05]Method: POST [11:31:05]URL: /json_proto [11:31:05]Method is POST - this is cgi request [11:31:05]url: /json_proto [11:31:05]query_string will be loaded in cgi processing [11:31:05]execute_cgi json_proto POST (null) [11:31:05]execute_cgi path=json_proto method=POST [11:31:05]POST find Content-Length [11:31:05]Host: 172.17.50.3:8080 [11:31:05]Content-Length: 773 [11:31:05]Content-Type: application/json [11:31:05] [11:31:05]POST finish read [11:31:05]Found Content-Length = 773 [11:31:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:05]execute_script... [11:31: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)2885010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:05]POST & json_proto [11:31:05]process_json_proto [11:31:05]json parsed OK: [11:31:05]protocol is kg_v1.0 [11:31:05]action value=close_receipt [11:31:05]process_action close_receipt [11:31:05]cmd_close_receipt [11:31:05]MH_GetDate [11:31:05]Write to MH i2c: F0 00 00 C5 CD 81 [11:31:05]Write i2c OK [11:31:05]MH_I2C_Read... [11:31:05]Read from MH i2c: F0 [11:31:05]MH_I2C_Read... [11:31:05]Read from MH i2c: F0 09 00 [11:31:05]MH_I2C_Read... [11:31:05]Read from MH i2c: F0 09 00 C5 CD 00 03 EA 14 67 6B 98 1E 66 79 [11:31:05]GetLastDocTimeStamp 1729423526 [11:31:05]current date 1729423875 [11:31:05]FM_GetShiftState [11:31:05]SAM_PROTO_GetShiftState [11:31:05]wFMCommunicate request_size=4 [11:31:05]MH_SAM_APDU [11:31:05]CAPDU: 80 13 01 00 [11:31:05]Write to MH i2c: E2 08 00 C6 CD 80 13 01 00 00 00 00 00 10 [11:31:05]Write i2c OK [11:31:05]MH_I2C_Read... [11:31:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:05]Read from MH i2c: E2 [11:31:05]MH_I2C_Read... [11:31:05]Read from MH i2c: E2 0E 00 [11:31:05]MH_I2C_Read... [11:31:05]Read from MH i2c: E2 0E 00 C6 CD 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 16 [11:31:05]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:31:05]wFMCommunicate OK [11:31:05]SAM_PROTO_GetShiftState done [11:31:05]FM_GetShiftState done [11:31:05]opened in 1729383220 [11:31:05]opened+sec_in_day 1729469620 [11:31:05]quantity*price = 100011 [11:31:05]sum+1 = 100013 [11:31:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.12 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.12 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 140 20.10.2024 11:31 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69295 ФПД: 155636091067665 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113115&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69295&fm=155636091067665&tin=02508201610067®Number=0000000000156251&sum=100012 [11:31:06]StoreToDocumentArchive [11:31:06]shift 193 fd 69295 [11:31:06]save to /storage/0193/doc_00069295 [11:31:06]save last doc name /storage/0193/doc_00069295 to /storage/kkm_last_doc_name [11:31:06]save OK [11:31:06]Clear old archive folders... [11:31:06]ProcessDocumentItem done err = 0, tmpTLVsize=250 [11:31:06]tlvbuf is 00549B00 [11:31:06]SAM_PROTO_ClearQueue [11:31:06]wFMCommunicate request_size=4 [11:31:06]MH_SAM_APDU [11:31:06]CAPDU: 80 09 00 00 [11:31:06]Write to MH i2c: E2 08 00 D3 CD 80 09 00 00 00 00 00 00 12 [11:31:06]Write i2c OK [11:31:06]MH_I2C_Read... [11:31:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:31:06]Read from MH i2c: E2 [11:31:06]MH_I2C_Read... [11:31:06]Read from MH i2c: E2 03 00 [11:31:06]MH_I2C_Read... [11:31:06]Read from MH i2c: E2 03 00 D3 CD 00 90 00 14 [11:31:06]RAPDU: 90 00 [11:31:06]wFMCommunicate OK [11:31:06]SAM_PROTO_ClearQueue done [11:31:06]KKMCreateOFDPacket [11:31:06]OFDProtocolAddRootSTLVToBuf [11:31:06]FM_MakeSignedData [11:31:06]FM_MakeSignedData [11:31:06]SAM_PROTO_SignData [11:31:06]wFMCommunicate request_size=4 [11:31:06]MH_SAM_APDU [11:31:06]CAPDU: 80 0D 01 02 [11:31:06]Write to MH i2c: E2 08 00 D4 CD 80 0D 01 02 00 00 00 00 1A [11:31:06]Write i2c OK [11:31:06]MH_I2C_Read... [11:31:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:31:06]Read from MH i2c: E2 [11:31:06]MH_I2C_Read... [11:31:06]Read from MH i2c: E2 03 00 [11:31:06]MH_I2C_Read... [11:31:06]Read from MH i2c: E2 03 00 D4 CD 00 90 00 15 [11:31:06]RAPDU: 90 00 [11:31:06]wFMCommunicate OK [11:31:06]wFMCommunicate request_size=255 [11:31:06]MH_SAM_APDU [11:31:06]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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 03 EA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AF 0E 01 00 35 04 06 00 8D 8C [11:31:06]Write to MH i2c: E2 02 01 D5 CD 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 03 EA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AF 0E 01 00 35 04 06 00 8D 8C 00 00 22 [11:31:06]Write i2c OK [11:31:06]MH_I2C_Read... [11:31:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:06]Read from MH i2c: E2 [11:31:06]MH_I2C_Read... [11:31:06]Read from MH i2c: E2 03 00 [11:31:06]MH_I2C_Read... [11:31:06]Read from MH i2c: E2 03 00 D5 CD 00 90 00 16 [11:31:06]RAPDU: 90 00 [11:31:06]wFMCommunicate OK [11:31:06]wFMCommunicate request_size=9 [11:31:06]MH_SAM_APDU [11:31:06]CAPDU: 80 0D 02 02 04 D9 EC 1D 11 [11:31:06]Write to MH i2c: E2 0C 00 D6 CD 80 0D 02 02 04 00 D9 EC 1D 11 00 00 18 [11:31:06]Write i2c OK [11:31:06]MH_I2C_Read... [11:31:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:06]Read from MH i2c: E2 [11:31:06]MH_I2C_Read... [11:31:06]Read from MH i2c: E2 03 00 [11:31:06]MH_I2C_Read... [11:31:06]Read from MH i2c: E2 03 00 D6 CD 00 90 00 17 [11:31:06]RAPDU: 90 00 [11:31:06]wFMCommunicate OK [11:31:06]wFMCommunicate request_size=4 [11:31:06]MH_SAM_APDU [11:31:06]CAPDU: 80 0D 03 02 [11:31:06]Write to MH i2c: E2 08 00 D7 CD 80 0D 03 02 00 00 00 00 1F [11:31:06]Write i2c OK [11:31:06]MH_I2C_Read... [11:31:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:31:06]Read from MH i2c: E2 [11:31:06]MH_I2C_Read... [11:31:06]Read from MH i2c: E2 0B 00 [11:31:06]MH_I2C_Read... [11:31:06]Read from MH i2c: E2 0B 00 D7 CD 00 C0 AB FE 64 38 34 A8 4D 90 00 4E [11:31:06]RAPDU: C0 AB FE 64 38 34 A8 4D 90 00 [11:31:06]wFMCommunicate OK [11:31:06]SAM_PROTO_SignData done [11:31:06]FM_MakeSignedData done [11:31:06]CreateOFDProtocolMessage [11:31:06]wFMCommunicate request_size=4 [11:31:06]MH_SAM_APDU [11:31:06]CAPDU: 80 11 00 00 [11:31:06]Write to MH i2c: E2 08 00 D8 CD 80 11 00 00 00 00 00 00 1F [11:31:06]Write i2c OK [11:31:06]MH_I2C_Read... [11:31:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:06]Read from MH i2c: E2 [11:31:06]MH_I2C_Read... [11:31:06]Read from MH i2c: E2 17 00 [11:31:06]MH_I2C_Read... [11:31:06]Read from MH i2c: E2 17 00 D8 CD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 71 [11:31:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:31:06]wFMCommunicate OK [11:31:06]CreateOFDProtocolMessage done [11:31:06]OFDSenderStorePacket 69295 [11:31:06]StoreOFDPacket docnum=69295 [11:31:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 FF BB 06 01 E8 25 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 03 EA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AF 0E 01 00 35 04 06 00 8D 8C D9 EC 1D 11 C0 AB FE 64 38 34 A8 4D [11:31:06]CheckFolder [11:31:06]dirname=/storage/ofd_packets [11:31:06]CheckFolder done [11:31:06]ProducePacketName [11:31:06]name=ofd_packets/00069295 [11:31:06]NVStorageSaveData ofd_packets/00069295 [11:31:06]File name is /storage/ofd_packets/00069295 [11:31:06]Write 300 bytes [11:31:06]NVStorageSaveData done [11:31:06]OFDSenderStorePacket done [11:31:06]KKMCreateOFDPacket done [11:31:06]NVStorageSaveData kkm_last_timestamp [11:31:06]File name is /storage/kkm_last_timestamp [11:31:06]Write 4 bytes [11:31:06]NVStorageSaveData done [11:31:06]ExternCall_PrintAddStr [11:31:06]wPrintStart [11:31:06]Write to MH i2c: 01 00 00 D9 CD A6 [11:31:06]Write i2c OK [11:31:06]MH_I2C_Read... [11:31:06]Read from MH i2c: 01 [11:31:06]MH_I2C_Read... [11:31:06]Read from MH i2c: 01 07 00 [11:31:06]MH_I2C_Read... [11:31:06]Read from MH i2c: 01 07 00 D9 CD 00 00 00 00 00 FF 0F BB [11:31:06]RasterBufferAndPrint [11:31:06]line Счет N : (1)2885010 [11:31:06]line ИНН: 02508201610067 [11:31:06]line Контрольно-Кассовый Чек [11:31:06]line ПРОДАЖА [11:31:06]line ТРК (МРК, ГНК) : 71 [11:31:06]line Товар: 2711129700 [11:31:06]line ГАЗ-К-3 [11:31:06]line 25.710 * 38.90 [11:31:06]line = 1000.12 [11:31:06]line НДС 12% НСП 1% [11:31:06]line > о реализуемом товаре [11:31:06]line ИТОГО: 1000.12 [11:31:06]line НСП 1% : 8.85 [11:31:06]line НДС 12% : 106.21 [11:31:06]line Наличными: 0.00 [11:31:06]line Безнал.: 1000.12 [11:31:06]line Место: АЗС № 85 "Партнер Нефть" [11:31:06]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:31:06]line СНО: Общий режим [11:31:06]line Чек 140 20.10.2024 11:31 [11:31:06]line Смена: 193 ФФД: 1.0 [11:31:06]line ЗНМ: 0300000167 [11:31:06]line РНМ: 0000000000156251 [11:31:06]line Версия ККМ: v1.0 [11:31:07]line Платежная система: Mbank [11:31:07]line ФМ: 0000000000963346 [11:31:07]line ФД: 69295 [11:31:07]line ФПД: 155636091067665 [11:31:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113115&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69295&fm=155636091067665&tin=02508201610067®Number=0000000000156251&sum=100012 [11:31:07]OFD Sender: Processing packet 69295 [packets to send 18, broken 17] [11:31:07]ProducePacketName [11:31:07]name=ofd_packets/00069295 [11:31:07]OFD Sender: To server: pG, [11:31:07]CommunicateWithHost lk.salyk.kg:30040 [11:31:07]ConnectInit lk.salyk.kg [11:31:07]written 0, free lines is 4095 [11:31:07]Connected sock=10 [11:31:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 FF BB 06 01 E8 25 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 03 EA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AF 0E 01 00 35 04 06 00 8D 8C D9 EC 1D 11 C0 AB FE 64 38 34 A8 4D [11:31:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 D4 BA 47 00 9A 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AF 0E 01 00 F4 03 04 00 AA 93 14 67 B6 04 01 00 00 AE 9F 72 70 FA FD B2 1B [11:31:07]CommunicateWithHost err = 0 [11:31:07]CheckOFDResponse [11:31:07]1017 (14) - 77093643461234 [11:31:07]1041 (16) - 0000000000963346 [11:31:07]1040 (4) - 69295 [11:31:07]1012 (4) - 20.10.2024 05:22 [11:31:07]1206 (1) - 0 [11:31:07]OFD Sender: Remove packet 69295 [11:31:07]ProducePacketName [11:31:07]name=ofd_packets/00069295 [11:31:07]NVStorageDeleteData [11:31:07]Write to MH i2c: 01 00 00 02 CE D0 [11:31:07]Write i2c OK [11:31:07]MH_I2C_Read... [11:31:07]Read from MH i2c: 01 [11:31:07]MH_I2C_Read... [11:31:07]Read from MH i2c: 01 07 00 [11:31:07]MH_I2C_Read... [11:31:07]Read from MH i2c: 01 07 00 02 CE 00 00 00 00 00 19 0D FD [11:31:07]RasterBufferAndPrint [11:31:07]line [11:31:07]line [11:31:07]line [11:31:07]line [11:31:07]line [11:31:07]written 0, free lines is 3360 [11:31:07]MH_Cut [11:31:07]Write to MH i2c: D1 01 00 09 CE 01 A9 [11:31:07]Write i2c OK [11:31:07]MH_I2C_Read... [11:31:07]Read from MH i2c: D1 [11:31:07]MH_I2C_Read... [11:31:07]Read from MH i2c: D1 01 00 [11:31:07]MH_I2C_Read... [11:31:07]Read from MH i2c: D1 01 00 09 CE 00 A8 [11:31:07]Write to MH i2c: 01 00 00 0A CE D8 [11:31:07]Write i2c OK [11:31:07]MH_I2C_Read... [11:31:07]OFD Sender: No OFD packet to send [11:31:08]*** Cut start [11:31:08]*** Partial cut [11:31:08]*** CUTSNS_PIN = 1 [11:31:08]*** CUTSNS_PIN = 0 [11:31:08]*** Brake cut motor [11:31:08]Read from MH i2c: 01 [11:31:08]MH_I2C_Read... [11:31:08]*** Stop cut motor [11:31:08]*** Cut end [11:31:08]Read from MH i2c: 01 07 00 [11:31:08]MH_I2C_Read... [11:31:08]Read from MH i2c: 01 07 00 0A CE 00 00 00 00 00 FF 0F ED [11:31:08]process_action close_receipt done [11:31:08]requested_data is exist [11:31:08]produce_requested_data [11:31:08]requested_item fm.sn is exist - process it [11:31:08]wFMCommunicate request_size=4 [11:31:08]MH_SAM_APDU [11:31:08]CAPDU: 80 11 00 00 [11:31:08]Write to MH i2c: E2 08 00 0B CE 80 11 00 00 00 00 00 00 53 [11:31:08]Write i2c OK [11:31:08]MH_I2C_Read... [11:31:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:08]Read from MH i2c: E2 [11:31:08]MH_I2C_Read... [11:31:08]Read from MH i2c: E2 17 00 [11:31:08]MH_I2C_Read... [11:31:08]Read from MH i2c: E2 17 00 0B CE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A5 [11:31:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:31:08]wFMCommunicate OK [11:31:08]requested_item fd.num is exist - process it [11:31:08]SAM_PROTO_GetFieldsCounters [11:31:08]wFMCommunicate request_size=4 [11:31:08]MH_SAM_APDU [11:31:08]CAPDU: 80 13 00 00 [11:31:08]Write to MH i2c: E2 08 00 0C CE 80 13 00 00 00 00 00 00 56 [11:31:08]Write i2c OK [11:31:08]MH_I2C_Read... [11:31:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:31:09]Read from MH i2c: E2 [11:31:09]MH_I2C_Read... [11:31:09]Read from MH i2c: E2 62 00 [11:31:09]MH_I2C_Read... [11:31:09]Read from MH i2c: E2 62 00 0C CE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AF 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [11:31:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AF 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:31:09]wFMCommunicate OK [11:31:09]SAM_PROTO_GetFieldsCounters done [11:31:09]requested_item shift.num is exist - process it [11:31:09]requested_item shift.opened is exist - process it [11:31:09]req_shift_opened [11:31:09]FM_GetShiftState [11:31:09]SAM_PROTO_GetShiftState [11:31:09]wFMCommunicate request_size=4 [11:31:09]MH_SAM_APDU [11:31:09]CAPDU: 80 13 01 00 [11:31:09]Write to MH i2c: E2 08 00 0D CE 80 13 01 00 00 00 00 00 58 [11:31:09]Write i2c OK [11:31:09]MH_I2C_Read... [11:31:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:09]Read from MH i2c: E2 [11:31:09]MH_I2C_Read... [11:31:09]Read from MH i2c: E2 0E 00 [11:31:09]MH_I2C_Read... [11:31:09]Read from MH i2c: E2 0E 00 0D CE 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 5E [11:31:09]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:31:09]wFMCommunicate OK [11:31:09]SAM_PROTO_GetShiftState done [11:31:09]FM_GetShiftState done [11:31:09]req_shift_opened done [11:31:09]requested_item shift.open_date is exist - process it [11:31:09]req_shift_open_date [11:31:09]req_shift_open_date done [11:31:09]produce_requested_data done [11:31:09]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69295,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [11:31:09]process_action_free close_receipt [11:31:09]json_value_free [11:31:09]json_value_free done [11:31:09]process_json_proto returns [11:31:09]Send response to host [11:31:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69295,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [11:31:09]free response buf [11:31:09]execute_script done [11:31:09]execute_script returns [11:31:09]free content buf [11:31:09]Sock 8.Close socket [11:31:09]Sock 8.Thread stoped [11:31:09]accept exits with 9 [11:31:09]New connection [11:31:09]New thread 3067116900 created [11:31:09]Thread 3067260260 joined [11:31:09]Waiting for new connection... [11:31:09] Sock 9.Parse request [11:31:09]Sock 9.Check first char [11:31:09]Sock 9.First char is OK [11:31:09]request: POST /json_proto HTTP/1.0 [11:31:09]Method: POST [11:31:09]URL: /json_proto [11:31:09]Method is POST - this is cgi request [11:31:09]url: /json_proto [11:31:09]query_string will be loaded in cgi processing [11:31:09]execute_cgi json_proto POST (null) [11:31:09]execute_cgi path=json_proto method=POST [11:31:09]POST find Content-Length [11:31:09]Host: 172.17.50.3:8080 [11:31:09]Content-Length: 683 [11:31:09]Content-Type: application/json [11:31:09] [11:31:09]POST finish read [11:31:09]Found Content-Length = 683 [11:31:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:09]execute_script... [11:31:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:09]POST & json_proto [11:31:09]process_json_proto [11:31:09]json parsed OK: [11:31:09]protocol is kg_v1.0 [11:31:09]action value=close_receipt [11:31:09]process_action close_receipt [11:31:09]cmd_close_receipt [11:31:09]MH_GetDate [11:31:09]Write to MH i2c: F0 00 00 0E CE CB [11:31:09]Write i2c OK [11:31:09]MH_I2C_Read... [11:31:09]Read from MH i2c: F0 [11:31:09]MH_I2C_Read... [11:31:09]Read from MH i2c: F0 09 00 [11:31:09]MH_I2C_Read... [11:31:09]Read from MH i2c: F0 09 00 0E CE 00 07 EA 14 67 6B 98 1E 66 C7 [11:31:09]GetLastDocTimeStamp 1729423875 [11:31:09]current date 1729423879 [11:31:09]FM_GetShiftState [11:31:09]SAM_PROTO_GetShiftState [11:31:09]wFMCommunicate request_size=4 [11:31:09]MH_SAM_APDU [11:31:09]CAPDU: 80 13 01 00 [11:31:09]Write to MH i2c: E2 08 00 0F CE 80 13 01 00 00 00 00 00 5A [11:31:09]Write i2c OK [11:31:09]MH_I2C_Read... [11:31:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:09]Read from MH i2c: E2 [11:31:09]MH_I2C_Read... [11:31:09]Read from MH i2c: E2 0E 00 [11:31:09]MH_I2C_Read... [11:31:09]Read from MH i2c: E2 0E 00 0F CE 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 60 [11:31:09]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:31:09]wFMCommunicate OK [11:31:09]SAM_PROTO_GetShiftState done [11:31:09]FM_GetShiftState done [11:31:09]opened in 1729383220 [11:31:09]opened+sec_in_day 1729469620 [11:31:09]quantity*price = 100015 [11:31:09]sum+1 = 100017 [11:31:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 141 20.10.2024 11:31 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69296 ФПД: 73476186034666 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113119&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69296&fm=73476186034666&tin=02508201610067®Number=0000000000156251&sum=100000 [11:31:11]StoreToDocumentArchive [11:31:11]shift 193 fd 69296 [11:31:11]save to /storage/0193/doc_00069296 [11:31:11]save last doc name /storage/0193/doc_00069296 to /storage/kkm_last_doc_name [11:31:11]save OK [11:31:11]Clear old archive folders... [11:31:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:31:11]tlvbuf is 00669420 [11:31:11]SAM_PROTO_ClearQueue [11:31:11]wFMCommunicate request_size=4 [11:31:11]MH_SAM_APDU [11:31:11]CAPDU: 80 09 00 00 [11:31:11]Write to MH i2c: E2 08 00 1C CE 80 09 00 00 00 00 00 00 5C [11:31:11]Write i2c OK [11:31:11]MH_I2C_Read... [11:31:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:31:11]Read from MH i2c: E2 [11:31:11]MH_I2C_Read... [11:31:11]Read from MH i2c: E2 03 00 [11:31:11]MH_I2C_Read... [11:31:11]Read from MH i2c: E2 03 00 1C CE 00 90 00 5E [11:31:11]RAPDU: 90 00 [11:31:11]wFMCommunicate OK [11:31:11]SAM_PROTO_ClearQueue done [11:31:11]KKMCreateOFDPacket [11:31:11]OFDProtocolAddRootSTLVToBuf [11:31:11]FM_MakeSignedData [11:31:11]FM_MakeSignedData [11:31:11]SAM_PROTO_SignData [11:31:11]wFMCommunicate request_size=4 [11:31:11]MH_SAM_APDU [11:31:11]CAPDU: 80 0D 01 02 [11:31:11]Write to MH i2c: E2 08 00 1D CE 80 0D 01 02 00 00 00 00 64 [11:31:11]Write i2c OK [11:31:11]MH_I2C_Read... [11:31:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:31:11]Read from MH i2c: E2 [11:31:11]MH_I2C_Read... [11:31:11]Read from MH i2c: E2 03 00 [11:31:11]MH_I2C_Read... [11:31:11]Read from MH i2c: E2 03 00 1D CE 00 90 00 5F [11:31:11]RAPDU: 90 00 [11:31:11]wFMCommunicate OK [11:31:11]wFMCommunicate request_size=255 [11:31:11]MH_SAM_APDU [11:31:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 07 EA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B0 0E 01 00 35 04 06 00 42 [11:31:11]Write to MH i2c: E2 02 01 1E CE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 07 EA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B0 0E 01 00 35 04 06 00 42 00 00 A2 [11:31:11]Write i2c OK [11:31:11]MH_I2C_Read... [11:31:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:11]Read from MH i2c: E2 [11:31:11]MH_I2C_Read... [11:31:11]Read from MH i2c: E2 03 00 [11:31:11]MH_I2C_Read... [11:31:11]Read from MH i2c: E2 03 00 1E CE 00 90 00 60 [11:31:11]RAPDU: 90 00 [11:31:11]wFMCommunicate OK [11:31:11]wFMCommunicate request_size=10 [11:31:11]MH_SAM_APDU [11:31:11]CAPDU: 80 0D 02 02 05 D3 81 F7 D1 EA [11:31:11]Write to MH i2c: E2 0D 00 1F CE 80 0D 02 02 05 00 D3 81 F7 D1 EA 00 00 77 [11:31:11]Write i2c OK [11:31:11]MH_I2C_Read... [11:31:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:11]Read from MH i2c: E2 [11:31:11]MH_I2C_Read... [11:31:11]Read from MH i2c: E2 03 00 [11:31:11]MH_I2C_Read... [11:31:11]Read from MH i2c: E2 03 00 1F CE 00 90 00 61 [11:31:11]RAPDU: 90 00 [11:31:11]wFMCommunicate OK [11:31:11]wFMCommunicate request_size=4 [11:31:11]MH_SAM_APDU [11:31:11]CAPDU: 80 0D 03 02 [11:31:11]Write to MH i2c: E2 08 00 20 CE 80 0D 03 02 00 00 00 00 69 [11:31:11]Write i2c OK [11:31:11]MH_I2C_Read... [11:31:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:31:11]Read from MH i2c: E2 [11:31:11]MH_I2C_Read... [11:31:11]Read from MH i2c: E2 0B 00 [11:31:11]MH_I2C_Read... [11:31:11]Read from MH i2c: E2 0B 00 20 CE 00 BB E8 80 FD E6 EE D5 92 90 00 C5 [11:31:11]RAPDU: BB E8 80 FD E6 EE D5 92 90 00 [11:31:11]wFMCommunicate OK [11:31:11]SAM_PROTO_SignData done [11:31:11]FM_MakeSignedData done [11:31:11]CreateOFDProtocolMessage [11:31:11]wFMCommunicate request_size=4 [11:31:11]MH_SAM_APDU [11:31:11]CAPDU: 80 11 00 00 [11:31:11]Write to MH i2c: E2 08 00 21 CE 80 11 00 00 00 00 00 00 69 [11:31:11]Write i2c OK [11:31:11]MH_I2C_Read... [11:31:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:11]Read from MH i2c: E2 [11:31:11]MH_I2C_Read... [11:31:11]Read from MH i2c: E2 17 00 [11:31:11]MH_I2C_Read... [11:31:11]Read from MH i2c: E2 17 00 21 CE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BB [11:31:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:31:11]wFMCommunicate OK [11:31:11]CreateOFDProtocolMessage done [11:31:11]OFDSenderStorePacket 69296 [11:31:11]StoreOFDPacket docnum=69296 [11:31:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 16 24 07 01 08 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 07 EA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B0 0E 01 00 35 04 06 00 42 D3 81 F7 D1 EA BB E8 80 FD E6 EE D5 92 [11:31:11]CheckFolder [11:31:11]dirname=/storage/ofd_packets [11:31:11]CheckFolder done [11:31:11]ProducePacketName [11:31:11]name=ofd_packets/00069296 [11:31:11]NVStorageSaveData ofd_packets/00069296 [11:31:11]File name is /storage/ofd_packets/00069296 [11:31:11]Write 301 bytes [11:31:11]NVStorageSaveData done [11:31:11]OFDSenderStorePacket done [11:31:11]KKMCreateOFDPacket done [11:31:11]NVStorageSaveData kkm_last_timestamp [11:31:11]File name is /storage/kkm_last_timestamp [11:31:11]Write 4 bytes [11:31:11]NVStorageSaveData done [11:31:11]ExternCall_PrintAddStr [11:31:11]wPrintStart [11:31:11]Write to MH i2c: 01 00 00 22 CE F0 [11:31:11]Write i2c OK [11:31:11]MH_I2C_Read... [11:31:11]Read from MH i2c: 01 [11:31:11]MH_I2C_Read... [11:31:11]Read from MH i2c: 01 07 00 [11:31:11]MH_I2C_Read... [11:31:11]Read from MH i2c: 01 07 00 22 CE 00 00 00 00 00 FF 0F 05 [11:31:11]RasterBufferAndPrint [11:31:11]line Счет N : (1)2885011 [11:31:11]line ИНН: 02508201610067 [11:31:11]line Контрольно-Кассовый Чек [11:31:11]line ПРОДАЖА [11:31:11]line ТРК (МРК, ГНК) : 42 [11:31:11]line Товар: 2710124130 [11:31:11]line Аи-92-К-5 [11:31:11]line 14.950 * 66.90 [11:31:11]line = 1000.16 [11:31:11]line НДС 12% НСП 1% [11:31:11]line > о реализуемом товаре [11:31:11]line ОКРУГЛЕНИЕ: -0.16 [11:31:11]line ИТОГО: 1000.00 [11:31:11]line Внесено: 1000.00 [11:31:11]line СДАЧА: 0.00 [11:31:11]line НСП 1% : 8.85 [11:31:11]line НДС 12% : 106.21 [11:31:11]line Наличными: 1000.00 [11:31:11]line Безнал.: 0.00 [11:31:11]line Место: АЗС № 85 "Партнер Нефть" [11:31:11]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:31:11]line СНО: Общий режим [11:31:11]line Чек 141 20.10.2024 11:31 [11:31:11]line Смена: 193 ФФД: 1.0 [11:31:11]line ЗНМ: 0300000167 [11:31:11]line РНМ: 0000000000156251 [11:31:11]line Версия ККМ: v1.0 [11:31:11]line ФМ: 0000000000963346 [11:31:11]line ФД: 69296 [11:31:11]line ФПД: 73476186034666 [11:31:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113119&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69296&fm=73476186034666&tin=02508201610067®Number=0000000000156251&sum=100000 [11:31:11]OFD Sender: Processing packet 69296 [packets to send 18, broken 17] [11:31:11]ProducePacketName [11:31:11]name=ofd_packets/00069296 [11:31:11]OFD Sender: To server: pG, [11:31:11]CommunicateWithHost lk.salyk.kg:30040 [11:31:11]ConnectInit lk.salyk.kg [11:31:11]written 0, free lines is 4095 [11:31:12]Connected sock=10 [11:31:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 16 24 07 01 08 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 07 EA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B0 0E 01 00 35 04 06 00 42 D3 81 F7 D1 EA BB E8 80 FD E6 EE D5 92 [11:31:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 5C 08 47 00 00 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B0 0E 01 00 F4 03 04 00 AE 93 14 67 B6 04 01 00 00 31 63 C8 04 6A EA 7F A7 [11:31:12]CommunicateWithHost err = 0 [11:31:12]CheckOFDResponse [11:31:12]1017 (14) - 77093643461234 [11:31:12]1041 (16) - 0000000000963346 [11:31:12]1040 (4) - 69296 [11:31:12]1012 (4) - 20.10.2024 05:22 [11:31:12]1206 (1) - 0 [11:31:12]OFD Sender: Remove packet 69296 [11:31:12]ProducePacketName [11:31:12]name=ofd_packets/00069296 [11:31:12]NVStorageDeleteData [11:31:12]Write to MH i2c: 01 00 00 4D CE 1B [11:31:12]Write i2c OK [11:31:12]MH_I2C_Read... [11:31:12]Read from MH i2c: 01 [11:31:12]MH_I2C_Read... [11:31:12]Read from MH i2c: 01 07 00 [11:31:12]MH_I2C_Read... [11:31:12]Read from MH i2c: 01 07 00 4D CE 00 00 00 00 00 FA 0C 28 [11:31:12]RasterBufferAndPrint [11:31:12]line [11:31:12]line [11:31:12]line [11:31:12]line [11:31:12]line [11:31:12]written 0, free lines is 3334 [11:31:12]MH_Cut [11:31:12]Write to MH i2c: D1 01 00 54 CE 01 F4 [11:31:12]Write i2c OK [11:31:12]MH_I2C_Read... [11:31:12]Read from MH i2c: D1 [11:31:12]MH_I2C_Read... [11:31:12]Read from MH i2c: D1 01 00 [11:31:12]MH_I2C_Read... [11:31:12]Read from MH i2c: D1 01 00 54 CE 00 F3 [11:31:12]Write to MH i2c: 01 00 00 55 CE 23 [11:31:12]Write i2c OK [11:31:12]MH_I2C_Read... [11:31:12]OFD Sender: No OFD packet to send [11:31:13]*** Cut start [11:31:13]*** Partial cut [11:31:13]*** CUTSNS_PIN = 1 [11:31:13]*** CUTSNS_PIN = 0 [11:31:13]*** Brake cut motor [11:31:13]Read from MH i2c: 01 [11:31:13]MH_I2C_Read... [11:31:13]*** Stop cut motor [11:31:13]*** Cut end [11:31:13]Read from MH i2c: 01 07 00 [11:31:13]MH_I2C_Read... [11:31:13]Read from MH i2c: 01 07 00 55 CE 00 00 00 00 00 FF 0F 38 [11:31:13]process_action close_receipt done [11:31:13]requested_data is exist [11:31:13]produce_requested_data [11:31:13]requested_item fm.sn is exist - process it [11:31:13]wFMCommunicate request_size=4 [11:31:13]MH_SAM_APDU [11:31:13]CAPDU: 80 11 00 00 [11:31:13]Write to MH i2c: E2 08 00 56 CE 80 11 00 00 00 00 00 00 9E [11:31:13]Write i2c OK [11:31:13]MH_I2C_Read... [11:31:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:13]Read from MH i2c: E2 [11:31:13]MH_I2C_Read... [11:31:13]Read from MH i2c: E2 17 00 [11:31:13]MH_I2C_Read... [11:31:13]Read from MH i2c: E2 17 00 56 CE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F0 [11:31:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:31:13]wFMCommunicate OK [11:31:13]requested_item fd.num is exist - process it [11:31:13]SAM_PROTO_GetFieldsCounters [11:31:13]wFMCommunicate request_size=4 [11:31:13]MH_SAM_APDU [11:31:13]CAPDU: 80 13 00 00 [11:31:13]Write to MH i2c: E2 08 00 57 CE 80 13 00 00 00 00 00 00 A1 [11:31:13]Write i2c OK [11:31:13]MH_I2C_Read... [11:31:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:31:13]Read from MH i2c: E2 [11:31:13]MH_I2C_Read... [11:31:13]Read from MH i2c: E2 62 00 [11:31:13]MH_I2C_Read... [11:31:13]Read from MH i2c: E2 62 00 57 CE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B0 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [11:31:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B0 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:31:13]wFMCommunicate OK [11:31:13]SAM_PROTO_GetFieldsCounters done [11:31:13]requested_item shift.num is exist - process it [11:31:13]requested_item shift.opened is exist - process it [11:31:13]req_shift_opened [11:31:13]FM_GetShiftState [11:31:13]SAM_PROTO_GetShiftState [11:31:13]wFMCommunicate request_size=4 [11:31:13]MH_SAM_APDU [11:31:13]CAPDU: 80 13 01 00 [11:31:13]Write to MH i2c: E2 08 00 58 CE 80 13 01 00 00 00 00 00 A3 [11:31:13]Write i2c OK [11:31:13]MH_I2C_Read... [11:31:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:14]Read from MH i2c: E2 [11:31:14]MH_I2C_Read... [11:31:14]Read from MH i2c: E2 0E 00 [11:31:14]MH_I2C_Read... [11:31:14]Read from MH i2c: E2 0E 00 58 CE 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 A9 [11:31:14]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:31:14]wFMCommunicate OK [11:31:14]SAM_PROTO_GetShiftState done [11:31:14]FM_GetShiftState done [11:31:14]req_shift_opened done [11:31:14]requested_item shift.open_date is exist - process it [11:31:14]req_shift_open_date [11:31:14]req_shift_open_date done [11:31:14]produce_requested_data done [11:31:14]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69296,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [11:31:14]process_action_free close_receipt [11:31:14]json_value_free [11:31:14]json_value_free done [11:31:14]process_json_proto returns [11:31:14]Send response to host [11:31:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69296,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [11:31:14]free response buf [11:31:14]execute_script done [11:31:14]execute_script returns [11:31:14]free content buf [11:31:14]Sock 9.Close socket [11:31:14]Sock 9.Thread stoped [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:14]accept exits with 8 [11:32:14]New connection [11:32:14]New thread 3067260260 created [11:32:14]Thread 3067116900 joined [11:32:14]Waiting for new connection... [11:32:14] Sock 8.Parse request [11:32:14]Sock 8.Check first char [11:32:14]Sock 8.First char is OK [11:32:14]request: POST /json_proto HTTP/1.0 [11:32:14]Method: POST [11:32:14]URL: /json_proto [11:32:14]Method is POST - this is cgi request [11:32:14]url: /json_proto [11:32:14]query_string will be loaded in cgi processing [11:32:14]execute_cgi json_proto POST (null) [11:32:14]execute_cgi path=json_proto method=POST [11:32:14]POST find Content-Length [11:32:14]Host: 172.17.50.3:8080 [11:32:14]Content-Length: 679 [11:32:14]Content-Type: application/json [11:32:14] [11:32:14]POST finish read [11:32:14]Found Content-Length = 679 [11:32:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:14]execute_script... [11:32:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:14]POST & json_proto [11:32:14]process_json_proto [11:32:14]json parsed OK: [11:32:14]protocol is kg_v1.0 [11:32:14]action value=close_receipt [11:32:14]process_action close_receipt [11:32:14]cmd_close_receipt [11:32:14]MH_GetDate [11:32:14]Write to MH i2c: F0 00 00 59 CE 16 [11:32:14]Write i2c OK [11:32:14]MH_I2C_Read... [11:32:14]Read from MH i2c: F0 [11:32:14]MH_I2C_Read... [11:32:14]Read from MH i2c: F0 09 00 [11:32:14]MH_I2C_Read... [11:32:14]Read from MH i2c: F0 09 00 59 CE 00 48 EA 14 67 6B 98 1E 66 53 [11:32:14]GetLastDocTimeStamp 1729423879 [11:32:14]current date 1729423944 [11:32:14]FM_GetShiftState [11:32:14]SAM_PROTO_GetShiftState [11:32:14]wFMCommunicate request_size=4 [11:32:14]MH_SAM_APDU [11:32:14]CAPDU: 80 13 01 00 [11:32:14]Write to MH i2c: E2 08 00 5A CE 80 13 01 00 00 00 00 00 A5 [11:32:14]Write i2c OK [11:32:14]MH_I2C_Read... [11:32:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:14]Read from MH i2c: E2 [11:32:14]MH_I2C_Read... [11:32:14]Read from MH i2c: E2 0E 00 [11:32:14]MH_I2C_Read... [11:32:14]Read from MH i2c: E2 0E 00 5A CE 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 AB [11:32:14]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:32:14]wFMCommunicate OK [11:32:14]SAM_PROTO_GetShiftState done [11:32:14]FM_GetShiftState done [11:32:14]opened in 1729383220 [11:32:14]opened+sec_in_day 1729469620 [11:32:14]quantity*price = 80012 [11:32:14]sum+1 = 80013 [11:32:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 142 20.10.2024 11:32 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69297 ФПД: 51341309756283 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113224&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69297&fm=51341309756283&tin=02508201610067®Number=0000000000156251&sum=80000 [11:32:15]StoreToDocumentArchive [11:32:15]shift 193 fd 69297 [11:32:15]save to /storage/0193/doc_00069297 [11:32:15]save last doc name /storage/0193/doc_00069297 to /storage/kkm_last_doc_name [11:32:15]save OK [11:32:15]Clear old archive folders... [11:32:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:32:15]tlvbuf is 005CAEF0 [11:32:15]SAM_PROTO_ClearQueue [11:32:15]wFMCommunicate request_size=4 [11:32:15]MH_SAM_APDU [11:32:15]CAPDU: 80 09 00 00 [11:32:15]Write to MH i2c: E2 08 00 67 CE 80 09 00 00 00 00 00 00 A7 [11:32:15]Write i2c OK [11:32:15]MH_I2C_Read... [11:32:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:32:16]Read from MH i2c: E2 [11:32:16]MH_I2C_Read... [11:32:16]Read from MH i2c: E2 03 00 [11:32:16]MH_I2C_Read... [11:32:16]Read from MH i2c: E2 03 00 67 CE 00 90 00 A9 [11:32:16]RAPDU: 90 00 [11:32:16]wFMCommunicate OK [11:32:16]SAM_PROTO_ClearQueue done [11:32:16]KKMCreateOFDPacket [11:32:16]OFDProtocolAddRootSTLVToBuf [11:32:16]FM_MakeSignedData [11:32:16]FM_MakeSignedData [11:32:16]SAM_PROTO_SignData [11:32:16]wFMCommunicate request_size=4 [11:32:16]MH_SAM_APDU [11:32:16]CAPDU: 80 0D 01 02 [11:32:16]Write to MH i2c: E2 08 00 68 CE 80 0D 01 02 00 00 00 00 AF [11:32:16]Write i2c OK [11:32:16]MH_I2C_Read... [11:32:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:32:16]Read from MH i2c: E2 [11:32:16]MH_I2C_Read... [11:32:16]Read from MH i2c: E2 03 00 [11:32:16]MH_I2C_Read... [11:32:16]Read from MH i2c: E2 03 00 68 CE 00 90 00 AA [11:32:16]RAPDU: 90 00 [11:32:16]wFMCommunicate OK [11:32:16]wFMCommunicate request_size=255 [11:32:16]MH_SAM_APDU [11:32:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 48 EA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B1 0E 01 00 35 04 06 00 2E [11:32:16]Write to MH i2c: E2 02 01 69 CE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 48 EA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B1 0E 01 00 35 04 06 00 2E 00 00 0E [11:32:16]Write i2c OK [11:32:16]MH_I2C_Read... [11:32:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:16]Read from MH i2c: E2 [11:32:16]MH_I2C_Read... [11:32:16]Read from MH i2c: E2 03 00 [11:32:16]MH_I2C_Read... [11:32:16]Read from MH i2c: E2 03 00 69 CE 00 90 00 AB [11:32:16]RAPDU: 90 00 [11:32:16]wFMCommunicate OK [11:32:16]wFMCommunicate request_size=10 [11:32:16]MH_SAM_APDU [11:32:16]CAPDU: 80 0D 02 02 05 B1 D4 87 C3 7B [11:32:16]Write to MH i2c: E2 0D 00 6A CE 80 0D 02 02 05 00 B1 D4 87 C3 7B 00 00 06 [11:32:16]Write i2c OK [11:32:16]MH_I2C_Read... [11:32:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:16]Read from MH i2c: E2 [11:32:16]MH_I2C_Read... [11:32:16]Read from MH i2c: E2 03 00 [11:32:16]MH_I2C_Read... [11:32:16]Read from MH i2c: E2 03 00 6A CE 00 90 00 AC [11:32:16]RAPDU: 90 00 [11:32:16]wFMCommunicate OK [11:32:16]wFMCommunicate request_size=4 [11:32:16]MH_SAM_APDU [11:32:16]CAPDU: 80 0D 03 02 [11:32:16]Write to MH i2c: E2 08 00 6B CE 80 0D 03 02 00 00 00 00 B4 [11:32:16]Write i2c OK [11:32:16]MH_I2C_Read... [11:32:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:32:16]Read from MH i2c: E2 [11:32:16]MH_I2C_Read... [11:32:16]Read from MH i2c: E2 0B 00 [11:32:16]MH_I2C_Read... [11:32:16]Read from MH i2c: E2 0B 00 6B CE 00 71 EC 94 10 DE 72 62 35 90 00 9D [11:32:16]RAPDU: 71 EC 94 10 DE 72 62 35 90 00 [11:32:16]wFMCommunicate OK [11:32:16]SAM_PROTO_SignData done [11:32:16]FM_MakeSignedData done [11:32:16]CreateOFDProtocolMessage [11:32:16]wFMCommunicate request_size=4 [11:32:16]MH_SAM_APDU [11:32:16]CAPDU: 80 11 00 00 [11:32:16]Write to MH i2c: E2 08 00 6C CE 80 11 00 00 00 00 00 00 B4 [11:32:16]Write i2c OK [11:32:16]MH_I2C_Read... [11:32:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:16]Read from MH i2c: E2 [11:32:16]MH_I2C_Read... [11:32:16]Read from MH i2c: E2 17 00 [11:32:16]MH_I2C_Read... [11:32:16]Read from MH i2c: E2 17 00 6C CE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 06 [11:32:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:32:16]wFMCommunicate OK [11:32:16]CreateOFDProtocolMessage done [11:32:16]OFDSenderStorePacket 69297 [11:32:16]StoreOFDPacket docnum=69297 [11:32:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 3A 15 07 01 F0 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 48 EA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B1 0E 01 00 35 04 06 00 2E B1 D4 87 C3 7B 71 EC 94 10 DE 72 62 35 [11:32:16]CheckFolder [11:32:16]dirname=/storage/ofd_packets [11:32:16]CheckFolder done [11:32:16]ProducePacketName [11:32:16]name=ofd_packets/00069297 [11:32:16]NVStorageSaveData ofd_packets/00069297 [11:32:16]File name is /storage/ofd_packets/00069297 [11:32:16]Write 301 bytes [11:32:16]NVStorageSaveData done [11:32:16]OFDSenderStorePacket done [11:32:16]KKMCreateOFDPacket done [11:32:16]NVStorageSaveData kkm_last_timestamp [11:32:16]File name is /storage/kkm_last_timestamp [11:32:16]Write 4 bytes [11:32:16]NVStorageSaveData done [11:32:16]ExternCall_PrintAddStr [11:32:16]wPrintStart [11:32:16]Write to MH i2c: 01 00 00 6D CE 3B [11:32:16]Write i2c OK [11:32:16]MH_I2C_Read... [11:32:16]Read from MH i2c: 01 [11:32:16]MH_I2C_Read... [11:32:16]Read from MH i2c: 01 07 00 [11:32:16]MH_I2C_Read... [11:32:16]Read from MH i2c: 01 07 00 6D CE 00 00 00 00 00 FF 0F 50 [11:32:16]RasterBufferAndPrint [11:32:16]line Счет N : (1)2885013 [11:32:16]line ИНН: 02508201610067 [11:32:16]line Контрольно-Кассовый Чек [11:32:16]line ПРОДАЖА [11:32:16]line ТРК (МРК, ГНК) : 32 [11:32:16]line Товар: 2710124130 [11:32:16]line Аи-92-К-5 [11:32:16]line 11.960 * 66.90 [11:32:16]line = 800.12 [11:32:16]line НДС 12% НСП 1% [11:32:16]line > о реализуемом товаре [11:32:16]line ОКРУГЛЕНИЕ: -0.12 [11:32:16]line ИТОГО: 800.00 [11:32:16]line Внесено: 800.00 [11:32:16]line СДАЧА: 0.00 [11:32:16]line НСП 1% : 7.08 [11:32:16]line НДС 12% : 84.97 [11:32:16]line Наличными: 800.00 [11:32:16]line Безнал.: 0.00 [11:32:16]line Место: АЗС № 85 "Партнер Нефть" [11:32:16]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:32:16]line СНО: Общий режим [11:32:16]line Чек 142 20.10.2024 11:32 [11:32:16]line Смена: 193 ФФД: 1.0 [11:32:16]line ЗНМ: 0300000167 [11:32:16]line РНМ: 0000000000156251 [11:32:16]line Версия ККМ: v1.0 [11:32:16]line ФМ: 0000000000963346 [11:32:16]line ФД: 69297 [11:32:16]line ФПД: 51341309756283 [11:32:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113224&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69297&fm=51341309756283&tin=02508201610067®Number=0000000000156251&sum=80000 [11:32:16]OFD Sender: Processing packet 69297 [packets to send 18, broken 17] [11:32:16]ProducePacketName [11:32:16]name=ofd_packets/00069297 [11:32:16]OFD Sender: To server: pG, [11:32:16]CommunicateWithHost lk.salyk.kg:30040 [11:32:16]ConnectInit lk.salyk.kg [11:32:16]written 0, free lines is 4095 [11:32:16]Connected sock=10 [11:32:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 3A 15 07 01 F0 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 48 EA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B1 0E 01 00 35 04 06 00 2E B1 D4 87 C3 7B 71 EC 94 10 DE 72 62 35 [11:32:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 ED 31 47 00 39 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B1 0E 01 00 F4 03 04 00 EF 93 14 67 B6 04 01 00 00 BB 5C 64 AE A5 D5 A6 78 [11:32:17]CommunicateWithHost err = 0 [11:32:17]CheckOFDResponse [11:32:17]1017 (14) - 77093643461234 [11:32:17]1041 (16) - 0000000000963346 [11:32:17]1040 (4) - 69297 [11:32:17]1012 (4) - 20.10.2024 05:23 [11:32:17]1206 (1) - 0 [11:32:17]OFD Sender: Remove packet 69297 [11:32:17]ProducePacketName [11:32:17]name=ofd_packets/00069297 [11:32:17]NVStorageDeleteData [11:32:17]Write to MH i2c: 01 00 00 98 CE 66 [11:32:17]Write i2c OK [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: 01 [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: 01 07 00 [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: 01 07 00 98 CE 00 00 00 00 00 F5 0C 6E [11:32:17]RasterBufferAndPrint [11:32:17]line [11:32:17]line [11:32:17]line [11:32:17]line [11:32:17]line [11:32:17]written 0, free lines is 3324 [11:32:17]MH_Cut [11:32:17]Write to MH i2c: D1 01 00 9F CE 01 3F [11:32:17]Write i2c OK [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: D1 [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: D1 01 00 [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: D1 01 00 9F CE 00 3E [11:32:17]Write to MH i2c: 01 00 00 A0 CE 6E [11:32:17]Write i2c OK [11:32:17]MH_I2C_Read... [11:32:17]OFD Sender: No OFD packet to send [11:32:17]*** Cut start [11:32:17]*** Partial cut [11:32:17]*** CUTSNS_PIN = 1 [11:32:18]*** CUTSNS_PIN = 0 [11:32:18]*** Brake cut motor [11:32:18]Read from MH i2c: 01 [11:32:18]MH_I2C_Read... [11:32:18]*** Stop cut motor [11:32:18]*** Cut end [11:32:18]Read from MH i2c: 01 07 00 [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: 01 07 00 A0 CE 00 00 00 00 00 FF 0F 83 [11:32:18]process_action close_receipt done [11:32:18]requested_data is exist [11:32:18]produce_requested_data [11:32:18]requested_item fm.sn is exist - process it [11:32:18]wFMCommunicate request_size=4 [11:32:18]MH_SAM_APDU [11:32:18]CAPDU: 80 11 00 00 [11:32:18]Write to MH i2c: E2 08 00 A1 CE 80 11 00 00 00 00 00 00 E9 [11:32:18]Write i2c OK [11:32:18]MH_I2C_Read... [11:32:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:18]Read from MH i2c: E2 [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: E2 17 00 [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: E2 17 00 A1 CE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3B [11:32:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:32:18]wFMCommunicate OK [11:32:18]requested_item fd.num is exist - process it [11:32:18]SAM_PROTO_GetFieldsCounters [11:32:18]wFMCommunicate request_size=4 [11:32:18]MH_SAM_APDU [11:32:18]CAPDU: 80 13 00 00 [11:32:18]Write to MH i2c: E2 08 00 A2 CE 80 13 00 00 00 00 00 00 EC [11:32:18]Write i2c OK [11:32:18]MH_I2C_Read... [11:32:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:32:18]Read from MH i2c: E2 [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: E2 62 00 [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: E2 62 00 A2 CE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B1 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [11:32:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B1 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:32:18]wFMCommunicate OK [11:32:18]SAM_PROTO_GetFieldsCounters done [11:32:18]requested_item shift.num is exist - process it [11:32:18]requested_item shift.opened is exist - process it [11:32:18]req_shift_opened [11:32:18]FM_GetShiftState [11:32:18]SAM_PROTO_GetShiftState [11:32:18]wFMCommunicate request_size=4 [11:32:18]MH_SAM_APDU [11:32:18]CAPDU: 80 13 01 00 [11:32:18]Write to MH i2c: E2 08 00 A3 CE 80 13 01 00 00 00 00 00 EE [11:32:18]Write i2c OK [11:32:18]MH_I2C_Read... [11:32:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:18]Read from MH i2c: E2 [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: E2 0E 00 [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: E2 0E 00 A3 CE 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 F4 [11:32:18]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:32:18]wFMCommunicate OK [11:32:18]SAM_PROTO_GetShiftState done [11:32:18]FM_GetShiftState done [11:32:18]req_shift_opened done [11:32:18]requested_item shift.open_date is exist - process it [11:32:18]req_shift_open_date [11:32:18]req_shift_open_date done [11:32:18]produce_requested_data done [11:32:18]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69297,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [11:32:18]process_action_free close_receipt [11:32:18]json_value_free [11:32:18]json_value_free done [11:32:18]process_json_proto returns [11:32:18]Send response to host [11:32:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69297,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [11:32:18]free response buf [11:32:18]execute_script done [11:32:18]execute_script returns [11:32:18]free content buf [11:32:18]Sock 8.Close socket [11:32:18]Sock 8.Thread stoped [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:46]accept exits with 9 [11:32:46]New connection [11:32:46]New thread 3067116900 created [11:32:46]Thread 3067260260 joined [11:32:46]Waiting for new connection... [11:32:46] Sock 9.Parse request [11:32:46]Sock 9.Check first char [11:32:46]Sock 9.First char is OK [11:32:46]request: POST /json_proto HTTP/1.0 [11:32:46]Method: POST [11:32:46]URL: /json_proto [11:32:46]Method is POST - this is cgi request [11:32:46]url: /json_proto [11:32:46]query_string will be loaded in cgi processing [11:32:46]execute_cgi json_proto POST (null) [11:32:46]execute_cgi path=json_proto method=POST [11:32:46]POST find Content-Length [11:32:46]Host: 172.17.50.3:8080 [11:32:46]Content-Length: 755 [11:32:46]Content-Type: application/json [11:32:46] [11:32:46]POST finish read [11:32:46]Found Content-Length = 755 [11:32:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30086203", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:46]execute_script... [11:32: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)2885014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30086203", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:46]POST & json_proto [11:32:46]process_json_proto [11:32:46]json parsed OK: [11:32:46]protocol is kg_v1.0 [11:32:46]action value=close_receipt [11:32:46]process_action close_receipt [11:32:46]cmd_close_receipt [11:32:46]MH_GetDate [11:32:46]Write to MH i2c: F0 00 00 A4 CE 61 [11:32:46]Write i2c OK [11:32:46]MH_I2C_Read... [11:32:46]Read from MH i2c: F0 [11:32:46]MH_I2C_Read... [11:32:46]Read from MH i2c: F0 09 00 [11:32:46]MH_I2C_Read... [11:32:46]Read from MH i2c: F0 09 00 A4 CE 00 68 EA 14 67 6B 98 1E 66 BE [11:32:46]GetLastDocTimeStamp 1729423944 [11:32:46]current date 1729423976 [11:32:46]FM_GetShiftState [11:32:46]SAM_PROTO_GetShiftState [11:32:46]wFMCommunicate request_size=4 [11:32:46]MH_SAM_APDU [11:32:46]CAPDU: 80 13 01 00 [11:32:46]Write to MH i2c: E2 08 00 A5 CE 80 13 01 00 00 00 00 00 F0 [11:32:46]Write i2c OK [11:32:46]MH_I2C_Read... [11:32:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:46]Read from MH i2c: E2 [11:32:46]MH_I2C_Read... [11:32:46]Read from MH i2c: E2 0E 00 [11:32:46]MH_I2C_Read... [11:32:46]Read from MH i2c: E2 0E 00 A5 CE 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 F6 [11:32:46]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:32:46]wFMCommunicate OK [11:32:46]SAM_PROTO_GetShiftState done [11:32:46]FM_GetShiftState done [11:32:46]opened in 1729383220 [11:32:46]opened+sec_in_day 1729469620 [11:32:46]quantity*price = 0 [11:32:46]sum+1 = 1 [11:32:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 143 20.10.2024 11:32 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30086203 ФМ: 0000000000963346 ФД: 69298 ФПД: 64433529639422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113256&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69298&fm=64433529639422&tin=02508201610067®Number=0000000000156251&sum=0 [11:32:47]StoreToDocumentArchive [11:32:47]shift 193 fd 69298 [11:32:47]save to /storage/0193/doc_00069298 [11:32:47]save last doc name /storage/0193/doc_00069298 to /storage/kkm_last_doc_name [11:32:47]save OK [11:32:47]Clear old archive folders... [11:32:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:32:47]tlvbuf is 005840C0 [11:32:47]SAM_PROTO_ClearQueue [11:32:47]wFMCommunicate request_size=4 [11:32:47]MH_SAM_APDU [11:32:47]CAPDU: 80 09 00 00 [11:32:47]Write to MH i2c: E2 08 00 B2 CE 80 09 00 00 00 00 00 00 F2 [11:32:47]Write i2c OK [11:32:47]MH_I2C_Read... [11:32:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:32:47]Read from MH i2c: E2 [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: E2 03 00 [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: E2 03 00 B2 CE 00 90 00 F4 [11:32:47]RAPDU: 90 00 [11:32:47]wFMCommunicate OK [11:32:47]SAM_PROTO_ClearQueue done [11:32:47]KKMCreateOFDPacket [11:32:47]OFDProtocolAddRootSTLVToBuf [11:32:47]FM_MakeSignedData [11:32:47]FM_MakeSignedData [11:32:47]SAM_PROTO_SignData [11:32:47]wFMCommunicate request_size=4 [11:32:47]MH_SAM_APDU [11:32:47]CAPDU: 80 0D 01 02 [11:32:47]Write to MH i2c: E2 08 00 B3 CE 80 0D 01 02 00 00 00 00 FA [11:32:47]Write i2c OK [11:32:47]MH_I2C_Read... [11:32:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:32:47]Read from MH i2c: E2 [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: E2 03 00 [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: E2 03 00 B3 CE 00 90 00 F5 [11:32:47]RAPDU: 90 00 [11:32:47]wFMCommunicate OK [11:32:47]wFMCommunicate request_size=255 [11:32:47]MH_SAM_APDU [11:32:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 8F 00 00 00 F4 03 04 00 68 EA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B2 0E 01 00 35 04 06 00 3A [11:32:47]Write to MH i2c: E2 02 01 B4 CE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 68 EA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B2 0E 01 00 35 04 06 00 3A 00 00 84 [11:32:47]Write i2c OK [11:32:47]MH_I2C_Read... [11:32:47]OFD Sender: No OFD packet to send [11:32:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:47]Read from MH i2c: E2 [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: E2 03 00 [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: E2 03 00 B4 CE 00 90 00 F6 [11:32:47]RAPDU: 90 00 [11:32:47]wFMCommunicate OK [11:32:47]wFMCommunicate request_size=10 [11:32:47]MH_SAM_APDU [11:32:47]CAPDU: 80 0D 02 02 05 9A 19 A5 51 FE [11:32:47]Write to MH i2c: E2 0D 00 B5 CE 80 0D 02 02 05 00 9A 19 A5 51 FE 00 00 AE [11:32:47]Write i2c OK [11:32:47]MH_I2C_Read... [11:32:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:47]Read from MH i2c: E2 [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: E2 03 00 [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: E2 03 00 B5 CE 00 90 00 F7 [11:32:47]RAPDU: 90 00 [11:32:47]wFMCommunicate OK [11:32:47]wFMCommunicate request_size=4 [11:32:47]MH_SAM_APDU [11:32:47]CAPDU: 80 0D 03 02 [11:32:47]Write to MH i2c: E2 08 00 B6 CE 80 0D 03 02 00 00 00 00 FF [11:32:47]Write i2c OK [11:32:47]MH_I2C_Read... [11:32:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:32:47]Read from MH i2c: E2 [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: E2 0B 00 [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: E2 0B 00 B6 CE 00 18 9F 45 8C 65 C2 EA A2 90 00 3B [11:32:47]RAPDU: 18 9F 45 8C 65 C2 EA A2 90 00 [11:32:47]wFMCommunicate OK [11:32:47]SAM_PROTO_SignData done [11:32:47]FM_MakeSignedData done [11:32:47]CreateOFDProtocolMessage [11:32:47]wFMCommunicate request_size=4 [11:32:47]MH_SAM_APDU [11:32:47]CAPDU: 80 11 00 00 [11:32:47]Write to MH i2c: E2 08 00 B7 CE 80 11 00 00 00 00 00 00 FF [11:32:47]Write i2c OK [11:32:47]MH_I2C_Read... [11:32:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:47]Read from MH i2c: E2 [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: E2 17 00 [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: E2 17 00 B7 CE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 51 [11:32:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:32:47]wFMCommunicate OK [11:32:47]CreateOFDProtocolMessage done [11:32:47]OFDSenderStorePacket 69298 [11:32:47]StoreOFDPacket docnum=69298 [11:32:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 41 5E 07 01 5B A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 68 EA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B2 0E 01 00 35 04 06 00 3A 9A 19 A5 51 FE 18 9F 45 8C 65 C2 EA A2 [11:32:47]CheckFolder [11:32:47]dirname=/storage/ofd_packets [11:32:47]CheckFolder done [11:32:47]ProducePacketName [11:32:47]name=ofd_packets/00069298 [11:32:47]NVStorageSaveData ofd_packets/00069298 [11:32:47]File name is /storage/ofd_packets/00069298 [11:32:47]Write 301 bytes [11:32:47]NVStorageSaveData done [11:32:47]OFDSenderStorePacket done [11:32:47]KKMCreateOFDPacket done [11:32:47]NVStorageSaveData kkm_last_timestamp [11:32:47]File name is /storage/kkm_last_timestamp [11:32:47]Write 4 bytes [11:32:47]NVStorageSaveData done [11:32:47]ExternCall_PrintAddStr [11:32:47]wPrintStart [11:32:47]Write to MH i2c: 01 00 00 B8 CE 86 [11:32:47]Write i2c OK [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: 01 [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: 01 07 00 [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: 01 07 00 B8 CE 00 00 00 00 00 FF 0F 9B [11:32:47]RasterBufferAndPrint [11:32:47]line Счет N : (1)2885014 [11:32:47]line ИНН: 02508201610067 [11:32:47]line Контрольно-Кассовый Чек [11:32:47]line ПРОДАЖА [11:32:47]line ТРК (МРК, ГНК) : 22 [11:32:47]line Товар: 2710124130 [11:32:47]line Аи-92-К-5 [11:32:47]line 20.000 * 0.00 [11:32:47]line = 0.00 [11:32:47]line НДС 12% НСП 1% [11:32:47]line > о реализуемом товаре [11:32:47]line ИТОГО: 0.00 [11:32:47]line НСП 1% : 0.00 [11:32:47]line НДС 12% : 0.00 [11:32:47]line Наличными: 0.00 [11:32:47]line Безнал.: 0.00 [11:32:47]line Место: АЗС № 85 "Партнер Нефть" [11:32:47]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:32:47]line СНО: Общий режим [11:32:47]line Чек 143 20.10.2024 11:32 [11:32:47]line Смена: 193 ФФД: 1.0 [11:32:47]line ЗНМ: 0300000167 [11:32:47]line РНМ: 0000000000156251 [11:32:47]line Версия ККМ: v1.0 [11:32:47]line Талоны: ТК ГПНА Online [11:32:47]line 30086203 [11:32:47]line ФМ: 0000000000963346 [11:32:47]line ФД: 69298 [11:32:47]line ФПД: 64433529639422 [11:32:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113256&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69298&fm=64433529639422&tin=02508201610067®Number=0000000000156251&sum=0 [11:32:48]OFD Sender: Processing packet 69298 [packets to send 18, broken 17] [11:32:48]ProducePacketName [11:32:48]name=ofd_packets/00069298 [11:32:48]OFD Sender: To server: pG, [11:32:48]CommunicateWithHost lk.salyk.kg:30040 [11:32:48]ConnectInit lk.salyk.kg [11:32:48]written 0, free lines is 4095 [11:32:48]Connected sock=10 [11:32:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 41 5E 07 01 5B A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 68 EA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B2 0E 01 00 35 04 06 00 3A 9A 19 A5 51 FE 18 9F 45 8C 65 C2 EA A2 [11:32:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 11 79 47 00 6A 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B2 0E 01 00 F4 03 04 00 0F 94 14 67 B6 04 01 00 00 14 8F 17 FF 78 19 E5 72 [11:32:48]CommunicateWithHost err = 0 [11:32:48]CheckOFDResponse [11:32:48]1017 (14) - 77093643461234 [11:32:48]1041 (16) - 0000000000963346 [11:32:48]1040 (4) - 69298 [11:32:48]1012 (4) - 20.10.2024 05:24 [11:32:48]1206 (1) - 0 [11:32:48]OFD Sender: Remove packet 69298 [11:32:48]ProducePacketName [11:32:48]name=ofd_packets/00069298 [11:32:48]NVStorageDeleteData [11:32:48]Write to MH i2c: 01 00 00 E2 CE B0 [11:32:48]Write i2c OK [11:32:48]MH_I2C_Read... [11:32:48]Read from MH i2c: 01 [11:32:48]MH_I2C_Read... [11:32:48]Read from MH i2c: 01 07 00 [11:32:48]MH_I2C_Read... [11:32:48]Read from MH i2c: 01 07 00 E2 CE 00 00 00 00 00 FD 0C C0 [11:32:48]RasterBufferAndPrint [11:32:48]line [11:32:48]line [11:32:48]line [11:32:48]line [11:32:48]line [11:32:48]written 0, free lines is 3331 [11:32:48]MH_Cut [11:32:48]Write to MH i2c: D1 01 00 E9 CE 01 89 [11:32:48]Write i2c OK [11:32:48]MH_I2C_Read... [11:32:48]Read from MH i2c: D1 [11:32:48]MH_I2C_Read... [11:32:48]Read from MH i2c: D1 01 00 [11:32:48]MH_I2C_Read... [11:32:48]Read from MH i2c: D1 01 00 E9 CE 00 88 [11:32:48]Write to MH i2c: 01 00 00 EA CE B8 [11:32:48]Write i2c OK [11:32:48]MH_I2C_Read... [11:32:49]OFD Sender: No OFD packet to send [11:32:49]*** Cut start [11:32:49]*** Partial cut [11:32:49]*** CUTSNS_PIN = 1 [11:32:49]*** CUTSNS_PIN = 0 [11:32:49]*** Brake cut motor [11:32:50]Read from MH i2c: 01 [11:32:50]MH_I2C_Read... [11:32:50]*** Stop cut motor [11:32:50]*** Cut end [11:32:50]Read from MH i2c: 01 07 00 [11:32:50]MH_I2C_Read... [11:32:50]Read from MH i2c: 01 07 00 EA CE 00 00 00 00 00 FF 0F CD [11:32:50]process_action close_receipt done [11:32:50]requested_data is exist [11:32:50]produce_requested_data [11:32:50]requested_item fm.sn is exist - process it [11:32:50]wFMCommunicate request_size=4 [11:32:50]MH_SAM_APDU [11:32:50]CAPDU: 80 11 00 00 [11:32:50]Write to MH i2c: E2 08 00 EB CE 80 11 00 00 00 00 00 00 33 [11:32:50]Write i2c OK [11:32:50]MH_I2C_Read... [11:32:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:50]Read from MH i2c: E2 [11:32:50]MH_I2C_Read... [11:32:50]Read from MH i2c: E2 17 00 [11:32:50]MH_I2C_Read... [11:32:50]Read from MH i2c: E2 17 00 EB CE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 85 [11:32:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:32:50]wFMCommunicate OK [11:32:50]requested_item fd.num is exist - process it [11:32:50]SAM_PROTO_GetFieldsCounters [11:32:50]wFMCommunicate request_size=4 [11:32:50]MH_SAM_APDU [11:32:50]CAPDU: 80 13 00 00 [11:32:50]Write to MH i2c: E2 08 00 EC CE 80 13 00 00 00 00 00 00 36 [11:32:50]Write i2c OK [11:32:50]MH_I2C_Read... [11:32:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:32:50]Read from MH i2c: E2 [11:32:50]MH_I2C_Read... [11:32:50]Read from MH i2c: E2 62 00 [11:32:50]MH_I2C_Read... [11:32:50]Read from MH i2c: E2 62 00 EC CE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B2 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [11:32:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B2 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:32:50]wFMCommunicate OK [11:32:50]SAM_PROTO_GetFieldsCounters done [11:32:50]requested_item shift.num is exist - process it [11:32:50]requested_item shift.opened is exist - process it [11:32:50]req_shift_opened [11:32:50]FM_GetShiftState [11:32:50]SAM_PROTO_GetShiftState [11:32:50]wFMCommunicate request_size=4 [11:32:50]MH_SAM_APDU [11:32:50]CAPDU: 80 13 01 00 [11:32:50]Write to MH i2c: E2 08 00 ED CE 80 13 01 00 00 00 00 00 38 [11:32:50]Write i2c OK [11:32:50]MH_I2C_Read... [11:32:50]Read from MH i2c: E2 [11:32:50]MH_I2C_Read... [11:32:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:50]Read from MH i2c: E2 0E 00 [11:32:50]MH_I2C_Read... [11:32:50]Read from MH i2c: E2 0E 00 ED CE 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 3E [11:32:50]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:32:50]wFMCommunicate OK [11:32:50]SAM_PROTO_GetShiftState done [11:32:50]FM_GetShiftState done [11:32:50]req_shift_opened done [11:32:50]requested_item shift.open_date is exist - process it [11:32:50]req_shift_open_date [11:32:50]req_shift_open_date done [11:32:50]produce_requested_data done [11:32:50]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69298,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [11:32:50]process_action_free close_receipt [11:32:50]json_value_free [11:32:50]json_value_free done [11:32:50]process_json_proto returns [11:32:50]Send response to host [11:32:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69298,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [11:32:50]free response buf [11:32:50]execute_script done [11:32:50]execute_script returns [11:32:50]free content buf [11:32:50]Sock 9.Close socket [11:32:50]Sock 9.Thread stoped [11:32:54]OFD Sender: No OFD packet to send [11:32:59]OFD Sender: No OFD packet to send [11:33:04]OFD Sender: No OFD packet to send [11:33:09]OFD Sender: No OFD packet to send [11:33:14]OFD Sender: No OFD packet to send [11:33:19]OFD Sender: No OFD packet to send [11:33:24]OFD Sender: No OFD packet to send [11:33:29]OFD Sender: No OFD packet to send [11:33:34]OFD Sender: No OFD packet to send [11:33:39]OFD Sender: No OFD packet to send [11:33:44]OFD Sender: No OFD packet to send [11:33:49]OFD Sender: No OFD packet to send [11:33:54]OFD Sender: No OFD packet to send [11:33:59]OFD Sender: No OFD packet to send [11:34:04]OFD Sender: No OFD packet to send [11:34:09]OFD Sender: No OFD packet to send [11:34:14]OFD Sender: No OFD packet to send [11:34:19]OFD Sender: No OFD packet to send [11:34:24]OFD Sender: No OFD packet to send [11:34:29]OFD Sender: No OFD packet to send [11:34:34]OFD Sender: No OFD packet to send [11:34:39]OFD Sender: No OFD packet to send [11:34:44]OFD Sender: No OFD packet to send [11:34:49]OFD Sender: No OFD packet to send [11:34:54]OFD Sender: No OFD packet to send [11:34:57]accept exits with 8 [11:34:57]New connection [11:34:57]New thread 3067260260 created [11:34:57]Thread 3067116900 joined [11:34:57]Waiting for new connection... [11:34:57] Sock 8.Parse request [11:34:57]Sock 8.Check first char [11:34:57]Sock 8.First char is OK [11:34:57]request: POST /json_proto HTTP/1.0 [11:34:57]Method: POST [11:34:57]URL: /json_proto [11:34:57]Method is POST - this is cgi request [11:34:57]url: /json_proto [11:34:57]query_string will be loaded in cgi processing [11:34:57]execute_cgi json_proto POST (null) [11:34:57]execute_cgi path=json_proto method=POST [11:34:57]POST find Content-Length [11:34:57]Host: 172.17.50.3:8080 [11:34:57]Content-Length: 678 [11:34:57]Content-Type: application/json [11:34:57] [11:34:57]POST finish read [11:34:57]Found Content-Length = 678 [11:34:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.950, "sum" : 130.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 130.00, "total" : 130.00, "payments": [ { "type": 0, "sum" : 130.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:57]execute_script... [11:34: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)2885016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.950, "sum" : 130.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 130.00, "total" : 130.00, "payments": [ { "type": 0, "sum" : 130.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:57]POST & json_proto [11:34:57]process_json_proto [11:34:57]json parsed OK: [11:34:57]protocol is kg_v1.0 [11:34:57]action value=close_receipt [11:34:57]process_action close_receipt [11:34:57]cmd_close_receipt [11:34:57]MH_GetDate [11:34:57]Write to MH i2c: F0 00 00 EE CE AB [11:34:57]Write i2c OK [11:34:57]MH_I2C_Read... [11:34:57]Read from MH i2c: F0 [11:34:57]MH_I2C_Read... [11:34:57]Read from MH i2c: F0 09 00 [11:34:57]MH_I2C_Read... [11:34:57]Read from MH i2c: F0 09 00 EE CE 00 EB EA 14 67 6B 98 1E 66 8B [11:34:57]GetLastDocTimeStamp 1729423976 [11:34:57]current date 1729424107 [11:34:57]FM_GetShiftState [11:34:57]SAM_PROTO_GetShiftState [11:34:57]wFMCommunicate request_size=4 [11:34:57]MH_SAM_APDU [11:34:57]CAPDU: 80 13 01 00 [11:34:57]Write to MH i2c: E2 08 00 EF CE 80 13 01 00 00 00 00 00 3A [11:34:57]Write i2c OK [11:34:57]MH_I2C_Read... [11:34:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:57]Read from MH i2c: E2 [11:34:57]MH_I2C_Read... [11:34:57]Read from MH i2c: E2 0E 00 [11:34:57]MH_I2C_Read... [11:34:57]Read from MH i2c: E2 0E 00 EF CE 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 40 [11:34:57]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:34:57]wFMCommunicate OK [11:34:57]SAM_PROTO_GetShiftState done [11:34:57]FM_GetShiftState done [11:34:57]opened in 1729383220 [11:34:57]opened+sec_in_day 1729469620 [11:34:57]quantity*price = 13045 [11:34:57]sum+1 = 13047 [11:34:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 130.00 Внесено: 130.00 СДАЧА: 0.00 НСП 1% : 1.15 НДС 12% : 13.85 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 144 20.10.2024 11:35 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69299 ФПД: 118836276686905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113507&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69299&fm=118836276686905&tin=02508201610067®Number=0000000000156251&sum=13000 [11:34:58]StoreToDocumentArchive [11:34:58]shift 193 fd 69299 [11:34:58]save to /storage/0193/doc_00069299 [11:34:58]save last doc name /storage/0193/doc_00069299 to /storage/kkm_last_doc_name [11:34:58]save OK [11:34:58]Clear old archive folders... [11:34:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:34:58]tlvbuf is 005D73A0 [11:34:58]SAM_PROTO_ClearQueue [11:34:58]wFMCommunicate request_size=4 [11:34:58]MH_SAM_APDU [11:34:58]CAPDU: 80 09 00 00 [11:34:58]Write to MH i2c: E2 08 00 FC CE 80 09 00 00 00 00 00 00 3C [11:34:58]Write i2c OK [11:34:58]MH_I2C_Read... [11:34:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:34:58]Read from MH i2c: E2 [11:34:58]MH_I2C_Read... [11:34:58]Read from MH i2c: E2 03 00 [11:34:58]MH_I2C_Read... [11:34:58]Read from MH i2c: E2 03 00 FC CE 00 90 00 3E [11:34:58]RAPDU: 90 00 [11:34:58]wFMCommunicate OK [11:34:58]SAM_PROTO_ClearQueue done [11:34:58]KKMCreateOFDPacket [11:34:58]OFDProtocolAddRootSTLVToBuf [11:34:58]FM_MakeSignedData [11:34:58]FM_MakeSignedData [11:34:58]SAM_PROTO_SignData [11:34:58]wFMCommunicate request_size=4 [11:34:58]MH_SAM_APDU [11:34:58]CAPDU: 80 0D 01 02 [11:34:58]Write to MH i2c: E2 08 00 FD CE 80 0D 01 02 00 00 00 00 44 [11:34:58]Write i2c OK [11:34:58]MH_I2C_Read... [11:34:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:34:58]Read from MH i2c: E2 [11:34:58]MH_I2C_Read... [11:34:58]Read from MH i2c: E2 03 00 [11:34:58]MH_I2C_Read... [11:34:58]Read from MH i2c: E2 03 00 FD CE 00 90 00 3F [11:34:58]RAPDU: 90 00 [11:34:58]wFMCommunicate OK [11:34:58]wFMCommunicate request_size=255 [11:34:58]MH_SAM_APDU [11:34:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 EB EA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B3 0E 01 00 35 04 06 00 6C [11:34:58]Write to MH i2c: E2 02 01 FE CE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 EB EA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B3 0E 01 00 35 04 06 00 6C 00 00 F5 [11:34:58]Write i2c OK [11:34:58]MH_I2C_Read... [11:34:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:58]Read from MH i2c: E2 [11:34:58]MH_I2C_Read... [11:34:58]Read from MH i2c: E2 03 00 [11:34:58]MH_I2C_Read... [11:34:58]Read from MH i2c: E2 03 00 FE CE 00 90 00 40 [11:34:58]RAPDU: 90 00 [11:34:58]wFMCommunicate OK [11:34:58]wFMCommunicate request_size=10 [11:34:58]MH_SAM_APDU [11:34:58]CAPDU: 80 0D 02 02 05 14 BA 0E F0 39 [11:34:58]Write to MH i2c: E2 0D 00 FF CE 80 0D 02 02 05 00 14 BA 0E F0 39 00 00 56 [11:34:58]Write i2c OK [11:34:58]MH_I2C_Read... [11:34:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:58]Read from MH i2c: E2 [11:34:58]MH_I2C_Read... [11:34:58]Read from MH i2c: E2 03 00 [11:34:58]MH_I2C_Read... [11:34:58]Read from MH i2c: E2 03 00 FF CE 00 90 00 41 [11:34:58]RAPDU: 90 00 [11:34:58]wFMCommunicate OK [11:34:58]wFMCommunicate request_size=4 [11:34:58]MH_SAM_APDU [11:34:58]CAPDU: 80 0D 03 02 [11:34:58]Write to MH i2c: E2 08 00 00 CF 80 0D 03 02 00 00 00 00 4A [11:34:58]Write i2c OK [11:34:58]MH_I2C_Read... [11:34:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:34:58]Read from MH i2c: E2 [11:34:58]MH_I2C_Read... [11:34:58]Read from MH i2c: E2 0B 00 [11:34:58]MH_I2C_Read... [11:34:58]Read from MH i2c: E2 0B 00 00 CF 00 D6 1C B6 1F 9F AA DC D9 90 00 10 [11:34:58]RAPDU: D6 1C B6 1F 9F AA DC D9 90 00 [11:34:58]wFMCommunicate OK [11:34:58]SAM_PROTO_SignData done [11:34:58]FM_MakeSignedData done [11:34:58]CreateOFDProtocolMessage [11:34:58]wFMCommunicate request_size=4 [11:34:58]MH_SAM_APDU [11:34:58]CAPDU: 80 11 00 00 [11:34:58]Write to MH i2c: E2 08 00 01 CF 80 11 00 00 00 00 00 00 4A [11:34:58]Write i2c OK [11:34:58]MH_I2C_Read... [11:34:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:58]Read from MH i2c: E2 [11:34:58]MH_I2C_Read... [11:34:58]Read from MH i2c: E2 17 00 [11:34:58]MH_I2C_Read... [11:34:58]Read from MH i2c: E2 17 00 01 CF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9C [11:34:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:34:58]wFMCommunicate OK [11:34:58]CreateOFDProtocolMessage done [11:34:58]OFDSenderStorePacket 69299 [11:34:58]StoreOFDPacket docnum=69299 [11:34:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 B5 9A 07 01 E1 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 EB EA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B3 0E 01 00 35 04 06 00 6C 14 BA 0E F0 39 D6 1C B6 1F 9F AA DC D9 [11:34:58]CheckFolder [11:34:58]dirname=/storage/ofd_packets [11:34:58]CheckFolder done [11:34:58]ProducePacketName [11:34:58]name=ofd_packets/00069299 [11:34:58]NVStorageSaveData ofd_packets/00069299 [11:34:58]File name is /storage/ofd_packets/00069299 [11:34:58]Write 301 bytes [11:34:58]NVStorageSaveData done [11:34:58]OFDSenderStorePacket done [11:34:58]KKMCreateOFDPacket done [11:34:58]NVStorageSaveData kkm_last_timestamp [11:34:58]File name is /storage/kkm_last_timestamp [11:34:58]Write 4 bytes [11:34:58]NVStorageSaveData done [11:34:58]ExternCall_PrintAddStr [11:34:58]wPrintStart [11:34:58]Write to MH i2c: 01 00 00 02 CF D1 [11:34:58]Write i2c OK [11:34:58]MH_I2C_Read... [11:34:58]Read from MH i2c: 01 [11:34:58]MH_I2C_Read... [11:34:58]Read from MH i2c: 01 07 00 [11:34:58]MH_I2C_Read... [11:34:58]Read from MH i2c: 01 07 00 02 CF 00 00 00 00 00 FF 0F E6 [11:34:58]RasterBufferAndPrint [11:34:58]line Счет N : (1)2885016 [11:34:58]line ИНН: 02508201610067 [11:34:58]line Контрольно-Кассовый Чек [11:34:58]line ПРОДАЖА [11:34:58]line ТРК (МРК, ГНК) : 12 [11:34:58]line Товар: 2710124130 [11:34:58]line Аи-92-К-5 [11:34:58]line 1.950 * 66.90 [11:34:58]line = 130.46 [11:34:58]line НДС 12% НСП 1% [11:34:58]line > о реализуемом товаре [11:34:58]line ОКРУГЛЕНИЕ: -0.46 [11:34:58]line ИТОГО: 130.00 [11:34:58]line Внесено: 130.00 [11:34:58]line СДАЧА: 0.00 [11:34:58]line НСП 1% : 1.15 [11:34:58]line НДС 12% : 13.85 [11:34:58]line Наличными: 130.00 [11:34:58]line Безнал.: 0.00 [11:34:58]line Место: АЗС № 85 "Партнер Нефть" [11:34:58]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:34:58]line СНО: Общий режим [11:34:58]line Чек 144 20.10.2024 11:35 [11:34:58]line Смена: 193 ФФД: 1.0 [11:34:58]line ЗНМ: 0300000167 [11:34:58]line РНМ: 0000000000156251 [11:34:58]line Версия ККМ: v1.0 [11:34:58]line ФМ: 0000000000963346 [11:34:58]line ФД: 69299 [11:34:58]line ФПД: 118836276686905 [11:34:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113507&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69299&fm=118836276686905&tin=02508201610067®Number=0000000000156251&sum=13000 [11:34:59]OFD Sender: Processing packet 69299 [packets to send 18, broken 17] [11:34:59]ProducePacketName [11:34:59]name=ofd_packets/00069299 [11:34:59]OFD Sender: To server: pG, [11:34:59]CommunicateWithHost lk.salyk.kg:30040 [11:34:59]ConnectInit lk.salyk.kg [11:34:59]written 0, free lines is 4095 [11:34:59]Connected sock=10 [11:34:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 B5 9A 07 01 E1 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 EB EA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B3 0E 01 00 35 04 06 00 6C 14 BA 0E F0 39 D6 1C B6 1F 9F AA DC D9 [11:34:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 BE 61 47 00 AF DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B3 0E 01 00 F4 03 04 00 92 94 14 67 B6 04 01 00 00 CA 55 4C 6F FE 7E 8C BC [11:34:59]CommunicateWithHost err = 0 [11:34:59]CheckOFDResponse [11:34:59]1017 (14) - 77093643461234 [11:34:59]1041 (16) - 0000000000963346 [11:34:59]1040 (4) - 69299 [11:34:59]1012 (4) - 20.10.2024 05:26 [11:34:59]1206 (1) - 0 [11:34:59]OFD Sender: Remove packet 69299 [11:34:59]ProducePacketName [11:34:59]name=ofd_packets/00069299 [11:34:59]NVStorageDeleteData [11:34:59]Write to MH i2c: 01 00 00 2D CF FC [11:34:59]Write i2c OK [11:34:59]MH_I2C_Read... [11:34:59]Read from MH i2c: 01 [11:34:59]MH_I2C_Read... [11:34:59]Read from MH i2c: 01 07 00 [11:34:59]MH_I2C_Read... [11:34:59]Read from MH i2c: 01 07 00 2D CF 00 00 00 00 00 EC 0C FB [11:34:59]RasterBufferAndPrint [11:34:59]line [11:34:59]line [11:34:59]line [11:34:59]line [11:34:59]line [11:34:59]written 0, free lines is 3314 [11:34:59]MH_Cut [11:34:59]Write to MH i2c: D1 01 00 34 CF 01 D5 [11:34:59]Write i2c OK [11:34:59]MH_I2C_Read... [11:34:59]Read from MH i2c: D1 [11:34:59]MH_I2C_Read... [11:34:59]Read from MH i2c: D1 01 00 [11:34:59]MH_I2C_Read... [11:34:59]Read from MH i2c: D1 01 00 34 CF 00 D4 [11:34:59]Write to MH i2c: 01 00 00 35 CF 04 [11:34:59]Write i2c OK [11:34:59]MH_I2C_Read... [11:34:59]OFD Sender: No OFD packet to send [11:35:00]*** Cut start [11:35:00]*** Partial cut [11:35:00]*** CUTSNS_PIN = 1 [11:35:00]*** CUTSNS_PIN = 0 [11:35:00]*** Brake cut motor [11:35:00]Read from MH i2c: 01 [11:35:00]MH_I2C_Read... [11:35:00]*** Stop cut motor [11:35:00]*** Cut end [11:35:00]Read from MH i2c: 01 07 00 [11:35:00]MH_I2C_Read... [11:35:00]Read from MH i2c: 01 07 00 35 CF 00 00 00 00 00 FF 0F 19 [11:35:00]process_action close_receipt done [11:35:00]requested_data is exist [11:35:00]produce_requested_data [11:35:00]requested_item fm.sn is exist - process it [11:35:00]wFMCommunicate request_size=4 [11:35:00]MH_SAM_APDU [11:35:00]CAPDU: 80 11 00 00 [11:35:00]Write to MH i2c: E2 08 00 36 CF 80 11 00 00 00 00 00 00 7F [11:35:00]Write i2c OK [11:35:00]MH_I2C_Read... [11:35:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:00]Read from MH i2c: E2 [11:35:00]MH_I2C_Read... [11:35:00]Read from MH i2c: E2 17 00 [11:35:00]MH_I2C_Read... [11:35:00]Read from MH i2c: E2 17 00 36 CF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D1 [11:35:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:35:00]wFMCommunicate OK [11:35:00]requested_item fd.num is exist - process it [11:35:00]SAM_PROTO_GetFieldsCounters [11:35:00]wFMCommunicate request_size=4 [11:35:00]MH_SAM_APDU [11:35:00]CAPDU: 80 13 00 00 [11:35:00]Write to MH i2c: E2 08 00 37 CF 80 13 00 00 00 00 00 00 82 [11:35:00]Write i2c OK [11:35:00]MH_I2C_Read... [11:35:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:01]Read from MH i2c: E2 [11:35:01]MH_I2C_Read... [11:35:01]Read from MH i2c: E2 62 00 [11:35:01]MH_I2C_Read... [11:35:01]Read from MH i2c: E2 62 00 37 CF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B3 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [11:35:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B3 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:35:01]wFMCommunicate OK [11:35:01]SAM_PROTO_GetFieldsCounters done [11:35:01]requested_item shift.num is exist - process it [11:35:01]requested_item shift.opened is exist - process it [11:35:01]req_shift_opened [11:35:01]FM_GetShiftState [11:35:01]SAM_PROTO_GetShiftState [11:35:01]wFMCommunicate request_size=4 [11:35:01]MH_SAM_APDU [11:35:01]CAPDU: 80 13 01 00 [11:35:01]Write to MH i2c: E2 08 00 38 CF 80 13 01 00 00 00 00 00 84 [11:35:01]Write i2c OK [11:35:01]MH_I2C_Read... [11:35:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:01]Read from MH i2c: E2 [11:35:01]MH_I2C_Read... [11:35:01]Read from MH i2c: E2 0E 00 [11:35:01]MH_I2C_Read... [11:35:01]Read from MH i2c: E2 0E 00 38 CF 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 8A [11:35:01]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:35:01]wFMCommunicate OK [11:35:01]SAM_PROTO_GetShiftState done [11:35:01]FM_GetShiftState done [11:35:01]req_shift_opened done [11:35:01]requested_item shift.open_date is exist - process it [11:35:01]req_shift_open_date [11:35:01]req_shift_open_date done [11:35:01]produce_requested_data done [11:35:01]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69299,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [11:35:01]process_action_free close_receipt [11:35:01]json_value_free [11:35:01]json_value_free done [11:35:01]process_json_proto returns [11:35:01]Send response to host [11:35:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69299,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [11:35:01]free response buf [11:35:01]execute_script done [11:35:01]execute_script returns [11:35:01]free content buf [11:35:01]Sock 8.Close socket [11:35:01]Sock 8.Thread stoped [11:35:01]accept exits with 9 [11:35:01]New connection [11:35:01]New thread 3067116900 created [11:35:01]Thread 3067260260 joined [11:35:01]Waiting for new connection... [11:35:01] Sock 9.Parse request [11:35:01]Sock 9.Check first char [11:35:01]Sock 9.First char is OK [11:35:01]request: POST /json_proto HTTP/1.0 [11:35:01]Method: POST [11:35:01]URL: /json_proto [11:35:01]Method is POST - this is cgi request [11:35:01]url: /json_proto [11:35:01]query_string will be loaded in cgi processing [11:35:01]execute_cgi json_proto POST (null) [11:35:01]execute_cgi path=json_proto method=POST [11:35:01]POST find Content-Length [11:35:01]Host: 172.17.50.3:8080 [11:35:01]Content-Length: 683 [11:35:01]Content-Type: application/json [11:35:01] [11:35:01]POST finish read [11:35:01]Found Content-Length = 683 [11:35:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:01]execute_script... [11:35: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)2885015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:01]POST & json_proto [11:35:01]process_json_proto [11:35:01]json parsed OK: [11:35:01]protocol is kg_v1.0 [11:35:01]action value=close_receipt [11:35:01]process_action close_receipt [11:35:01]cmd_close_receipt [11:35:01]MH_GetDate [11:35:01]Write to MH i2c: F0 00 00 39 CF F7 [11:35:01]Write i2c OK [11:35:01]MH_I2C_Read... [11:35:01]Read from MH i2c: F0 [11:35:01]MH_I2C_Read... [11:35:01]Read from MH i2c: F0 09 00 [11:35:01]MH_I2C_Read... [11:35:01]Read from MH i2c: F0 09 00 39 CF 00 EF EA 14 67 6B 98 1E 66 DB [11:35:01]GetLastDocTimeStamp 1729424107 [11:35:01]current date 1729424111 [11:35:01]FM_GetShiftState [11:35:01]SAM_PROTO_GetShiftState [11:35:01]wFMCommunicate request_size=4 [11:35:01]MH_SAM_APDU [11:35:01]CAPDU: 80 13 01 00 [11:35:01]Write to MH i2c: E2 08 00 3A CF 80 13 01 00 00 00 00 00 86 [11:35:01]Write i2c OK [11:35:01]MH_I2C_Read... [11:35:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:01]Read from MH i2c: E2 [11:35:01]MH_I2C_Read... [11:35:01]Read from MH i2c: E2 0E 00 [11:35:01]MH_I2C_Read... [11:35:01]Read from MH i2c: E2 0E 00 3A CF 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 8C [11:35:01]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:35:01]wFMCommunicate OK [11:35:01]SAM_PROTO_GetShiftState done [11:35:01]FM_GetShiftState done [11:35:01]opened in 1729383220 [11:35:01]opened+sec_in_day 1729469620 [11:35:01]quantity*price = 100015 [11:35:01]sum+1 = 100017 [11:35:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 145 20.10.2024 11:35 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69300 ФПД: 104011767603063 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113511&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69300&fm=104011767603063&tin=02508201610067®Number=0000000000156251&sum=100000 [11:35:02]StoreToDocumentArchive [11:35:02]shift 193 fd 69300 [11:35:02]save to /storage/0193/doc_00069300 [11:35:02]save last doc name /storage/0193/doc_00069300 to /storage/kkm_last_doc_name [11:35:02]save OK [11:35:02]Clear old archive folders... [11:35:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:35:02]tlvbuf is 006A3CF0 [11:35:02]SAM_PROTO_ClearQueue [11:35:02]wFMCommunicate request_size=4 [11:35:02]MH_SAM_APDU [11:35:02]CAPDU: 80 09 00 00 [11:35:02]Write to MH i2c: E2 08 00 47 CF 80 09 00 00 00 00 00 00 88 [11:35:02]Write i2c OK [11:35:02]MH_I2C_Read... [11:35:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:02]Read from MH i2c: E2 [11:35:02]MH_I2C_Read... [11:35:02]Read from MH i2c: E2 03 00 [11:35:02]MH_I2C_Read... [11:35:02]Read from MH i2c: E2 03 00 47 CF 00 90 00 8A [11:35:02]RAPDU: 90 00 [11:35:02]wFMCommunicate OK [11:35:02]SAM_PROTO_ClearQueue done [11:35:02]KKMCreateOFDPacket [11:35:02]OFDProtocolAddRootSTLVToBuf [11:35:02]FM_MakeSignedData [11:35:02]FM_MakeSignedData [11:35:02]SAM_PROTO_SignData [11:35:02]wFMCommunicate request_size=4 [11:35:02]MH_SAM_APDU [11:35:02]CAPDU: 80 0D 01 02 [11:35:02]Write to MH i2c: E2 08 00 48 CF 80 0D 01 02 00 00 00 00 90 [11:35:02]Write i2c OK [11:35:02]MH_I2C_Read... [11:35:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:02]Read from MH i2c: E2 [11:35:02]MH_I2C_Read... [11:35:02]Read from MH i2c: E2 03 00 [11:35:02]MH_I2C_Read... [11:35:02]Read from MH i2c: E2 03 00 48 CF 00 90 00 8B [11:35:02]RAPDU: 90 00 [11:35:02]wFMCommunicate OK [11:35:02]wFMCommunicate request_size=255 [11:35:02]MH_SAM_APDU [11:35:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 EF EA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B4 0E 01 00 35 04 06 00 5E [11:35:02]Write to MH i2c: E2 02 01 49 CF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 EF EA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B4 0E 01 00 35 04 06 00 5E 00 00 DA [11:35:02]Write i2c OK [11:35:02]MH_I2C_Read... [11:35:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:03]Read from MH i2c: E2 [11:35:03]MH_I2C_Read... [11:35:03]Read from MH i2c: E2 03 00 [11:35:03]MH_I2C_Read... [11:35:03]Read from MH i2c: E2 03 00 49 CF 00 90 00 8C [11:35:03]RAPDU: 90 00 [11:35:03]wFMCommunicate OK [11:35:03]wFMCommunicate request_size=10 [11:35:03]MH_SAM_APDU [11:35:03]CAPDU: 80 0D 02 02 05 99 20 75 DF 77 [11:35:03]Write to MH i2c: E2 0D 00 4A CF 80 0D 02 02 05 00 99 20 75 DF 77 00 00 21 [11:35:03]Write i2c OK [11:35:03]MH_I2C_Read... [11:35:03]Read from MH i2c: E2 [11:35:03]MH_I2C_Read... [11:35:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:03]Read from MH i2c: E2 03 00 [11:35:03]MH_I2C_Read... [11:35:03]Read from MH i2c: E2 03 00 4A CF 00 90 00 8D [11:35:03]RAPDU: 90 00 [11:35:03]wFMCommunicate OK [11:35:03]wFMCommunicate request_size=4 [11:35:03]MH_SAM_APDU [11:35:03]CAPDU: 80 0D 03 02 [11:35:03]Write to MH i2c: E2 08 00 4B CF 80 0D 03 02 00 00 00 00 95 [11:35:03]Write i2c OK [11:35:03]MH_I2C_Read... [11:35:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:03]Read from MH i2c: E2 [11:35:03]MH_I2C_Read... [11:35:03]Read from MH i2c: E2 0B 00 [11:35:03]MH_I2C_Read... [11:35:03]Read from MH i2c: E2 0B 00 4B CF 00 DB 6F FB 4F C9 A4 77 E3 90 00 F1 [11:35:03]RAPDU: DB 6F FB 4F C9 A4 77 E3 90 00 [11:35:03]wFMCommunicate OK [11:35:03]SAM_PROTO_SignData done [11:35:03]FM_MakeSignedData done [11:35:03]CreateOFDProtocolMessage [11:35:03]wFMCommunicate request_size=4 [11:35:03]MH_SAM_APDU [11:35:03]CAPDU: 80 11 00 00 [11:35:03]Write to MH i2c: E2 08 00 4C CF 80 11 00 00 00 00 00 00 95 [11:35:03]Write i2c OK [11:35:03]MH_I2C_Read... [11:35:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:03]Read from MH i2c: E2 [11:35:03]MH_I2C_Read... [11:35:03]Read from MH i2c: E2 17 00 [11:35:03]MH_I2C_Read... [11:35:03]Read from MH i2c: E2 17 00 4C CF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E7 [11:35:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:35:03]wFMCommunicate OK [11:35:03]CreateOFDProtocolMessage done [11:35:03]OFDSenderStorePacket 69300 [11:35:03]StoreOFDPacket docnum=69300 [11:35:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 2C 06 07 01 7A E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 EF EA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B4 0E 01 00 35 04 06 00 5E 99 20 75 DF 77 DB 6F FB 4F C9 A4 77 E3 [11:35:03]CheckFolder [11:35:03]dirname=/storage/ofd_packets [11:35:03]CheckFolder done [11:35:03]ProducePacketName [11:35:03]name=ofd_packets/00069300 [11:35:03]NVStorageSaveData ofd_packets/00069300 [11:35:03]File name is /storage/ofd_packets/00069300 [11:35:03]Write 301 bytes [11:35:03]NVStorageSaveData done [11:35:03]OFDSenderStorePacket done [11:35:03]KKMCreateOFDPacket done [11:35:03]NVStorageSaveData kkm_last_timestamp [11:35:03]File name is /storage/kkm_last_timestamp [11:35:03]Write 4 bytes [11:35:03]NVStorageSaveData done [11:35:03]ExternCall_PrintAddStr [11:35:03]wPrintStart [11:35:03]Write to MH i2c: 01 00 00 4D CF 1C [11:35:03]Write i2c OK [11:35:03]MH_I2C_Read... [11:35:03]Read from MH i2c: 01 [11:35:03]MH_I2C_Read... [11:35:03]Read from MH i2c: 01 07 00 [11:35:03]MH_I2C_Read... [11:35:03]Read from MH i2c: 01 07 00 4D CF 00 00 00 00 00 FF 0F 31 [11:35:03]RasterBufferAndPrint [11:35:03]line Счет N : (1)2885015 [11:35:03]line ИНН: 02508201610067 [11:35:03]line Контрольно-Кассовый Чек [11:35:03]line ПРОДАЖА [11:35:03]line ТРК (МРК, ГНК) : 42 [11:35:03]line Товар: 2710124130 [11:35:03]line Аи-92-К-5 [11:35:03]line 14.950 * 66.90 [11:35:03]line = 1000.16 [11:35:03]line НДС 12% НСП 1% [11:35:03]line > о реализуемом товаре [11:35:03]line ОКРУГЛЕНИЕ: -0.16 [11:35:03]line ИТОГО: 1000.00 [11:35:03]line Внесено: 1000.00 [11:35:03]line СДАЧА: 0.00 [11:35:03]line НСП 1% : 8.85 [11:35:03]line НДС 12% : 106.21 [11:35:03]line Наличными: 1000.00 [11:35:03]line Безнал.: 0.00 [11:35:03]line Место: АЗС № 85 "Партнер Нефть" [11:35:03]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:35:03]line СНО: Общий режим [11:35:03]line Чек 145 20.10.2024 11:35 [11:35:03]line Смена: 193 ФФД: 1.0 [11:35:03]line ЗНМ: 0300000167 [11:35:03]line РНМ: 0000000000156251 [11:35:03]line Версия ККМ: v1.0 [11:35:03]line ФМ: 0000000000963346 [11:35:03]line ФД: 69300 [11:35:03]line ФПД: 104011767603063 [11:35:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113511&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69300&fm=104011767603063&tin=02508201610067®Number=0000000000156251&sum=100000 [11:35:03]OFD Sender: Processing packet 69300 [packets to send 18, broken 17] [11:35:03]ProducePacketName [11:35:03]name=ofd_packets/00069300 [11:35:03]OFD Sender: To server: pG, [11:35:03]CommunicateWithHost lk.salyk.kg:30040 [11:35:03]ConnectInit lk.salyk.kg [11:35:03]written 0, free lines is 4095 [11:35:04]Connected sock=10 [11:35:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 2C 06 07 01 7A E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 EF EA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B4 0E 01 00 35 04 06 00 5E 99 20 75 DF 77 DB 6F FB 4F C9 A4 77 E3 [11:35:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 A0 B5 47 00 F6 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B4 0E 01 00 F4 03 04 00 97 94 14 67 B6 04 01 00 00 E1 3D 16 34 74 54 D1 BE [11:35:04]CommunicateWithHost err = 0 [11:35:04]CheckOFDResponse [11:35:04]1017 (14) - 77093643461234 [11:35:04]1041 (16) - 0000000000963346 [11:35:04]1040 (4) - 69300 [11:35:04]1012 (4) - 20.10.2024 05:26 [11:35:04]1206 (1) - 0 [11:35:04]OFD Sender: Remove packet 69300 [11:35:04]ProducePacketName [11:35:04]name=ofd_packets/00069300 [11:35:04]NVStorageDeleteData [11:35:04]Write to MH i2c: 01 00 00 78 CF 47 [11:35:04]Write i2c OK [11:35:04]MH_I2C_Read... [11:35:04]Read from MH i2c: 01 [11:35:04]MH_I2C_Read... [11:35:04]Read from MH i2c: 01 07 00 [11:35:04]MH_I2C_Read... [11:35:04]Read from MH i2c: 01 07 00 78 CF 00 00 00 00 00 F6 0C 50 [11:35:04]RasterBufferAndPrint [11:35:04]line [11:35:04]line [11:35:04]line [11:35:04]line [11:35:04]line [11:35:04]written 0, free lines is 3331 [11:35:04]MH_Cut [11:35:04]Write to MH i2c: D1 01 00 7F CF 01 20 [11:35:04]Write i2c OK [11:35:04]MH_I2C_Read... [11:35:04]Read from MH i2c: D1 [11:35:04]MH_I2C_Read... [11:35:04]Read from MH i2c: D1 01 00 [11:35:04]MH_I2C_Read... [11:35:04]Read from MH i2c: D1 01 00 7F CF 00 1F [11:35:04]Write to MH i2c: 01 00 00 80 CF 4F [11:35:04]Write i2c OK [11:35:04]MH_I2C_Read... [11:35:04]OFD Sender: No OFD packet to send [11:35:05]*** Cut start [11:35:05]*** Partial cut [11:35:05]*** CUTSNS_PIN = 1 [11:35:05]*** CUTSNS_PIN = 0 [11:35:05]*** Brake cut motor [11:35:05]Read from MH i2c: 01 [11:35:05]MH_I2C_Read... [11:35:05]*** Stop cut motor [11:35:05]*** Cut end [11:35:05]Read from MH i2c: 01 07 00 [11:35:05]MH_I2C_Read... [11:35:05]Read from MH i2c: 01 07 00 80 CF 00 00 00 00 00 FF 0F 64 [11:35:05]process_action close_receipt done [11:35:05]requested_data is exist [11:35:05]produce_requested_data [11:35:05]requested_item fm.sn is exist - process it [11:35:05]wFMCommunicate request_size=4 [11:35:05]MH_SAM_APDU [11:35:05]CAPDU: 80 11 00 00 [11:35:05]Write to MH i2c: E2 08 00 81 CF 80 11 00 00 00 00 00 00 CA [11:35:05]Write i2c OK [11:35:05]MH_I2C_Read... [11:35:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:05]Read from MH i2c: E2 [11:35:05]MH_I2C_Read... [11:35:05]Read from MH i2c: E2 17 00 [11:35:05]MH_I2C_Read... [11:35:05]Read from MH i2c: E2 17 00 81 CF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1C [11:35:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:35:05]wFMCommunicate OK [11:35:05]requested_item fd.num is exist - process it [11:35:05]SAM_PROTO_GetFieldsCounters [11:35:05]wFMCommunicate request_size=4 [11:35:05]MH_SAM_APDU [11:35:05]CAPDU: 80 13 00 00 [11:35:05]Write to MH i2c: E2 08 00 82 CF 80 13 00 00 00 00 00 00 CD [11:35:05]Write i2c OK [11:35:05]MH_I2C_Read... [11:35:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:05]Read from MH i2c: E2 [11:35:05]MH_I2C_Read... [11:35:05]Read from MH i2c: E2 62 00 [11:35:05]MH_I2C_Read... [11:35:05]Read from MH i2c: E2 62 00 82 CF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B4 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [11:35:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B4 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:35:05]wFMCommunicate OK [11:35:05]SAM_PROTO_GetFieldsCounters done [11:35:05]requested_item shift.num is exist - process it [11:35:05]requested_item shift.opened is exist - process it [11:35:05]req_shift_opened [11:35:05]FM_GetShiftState [11:35:05]SAM_PROTO_GetShiftState [11:35:05]wFMCommunicate request_size=4 [11:35:05]MH_SAM_APDU [11:35:05]CAPDU: 80 13 01 00 [11:35:05]Write to MH i2c: E2 08 00 83 CF 80 13 01 00 00 00 00 00 CF [11:35:05]Write i2c OK [11:35:05]MH_I2C_Read... [11:35:06]Read from MH i2c: E2 [11:35:06]MH_I2C_Read... [11:35:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:06]Read from MH i2c: E2 0E 00 [11:35:06]MH_I2C_Read... [11:35:06]Read from MH i2c: E2 0E 00 83 CF 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 D5 [11:35:06]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:35:06]wFMCommunicate OK [11:35:06]SAM_PROTO_GetShiftState done [11:35:06]FM_GetShiftState done [11:35:06]req_shift_opened done [11:35:06]requested_item shift.open_date is exist - process it [11:35:06]req_shift_open_date [11:35:06]req_shift_open_date done [11:35:06]produce_requested_data done [11:35:06]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69300,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [11:35:06]process_action_free close_receipt [11:35:06]json_value_free [11:35:06]json_value_free done [11:35:06]process_json_proto returns [11:35:06]Send response to host [11:35:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69300,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [11:35:06]free response buf [11:35:06]execute_script done [11:35:06]execute_script returns [11:35:06]free content buf [11:35:06]Sock 9.Close socket [11:35:06]Sock 9.Thread stoped [11:35:09]OFD Sender: No OFD packet to send [11:35:14]OFD Sender: No OFD packet to send [11:35:19]OFD Sender: No OFD packet to send [11:35:24]OFD Sender: No OFD packet to send [11:35:29]OFD Sender: No OFD packet to send [11:35:33]accept exits with 8 [11:35:33]New connection [11:35:33]New thread 3067260260 created [11:35:33]Thread 3067116900 joined [11:35:33]Waiting for new connection... [11:35:33] Sock 8.Parse request [11:35:33]Sock 8.Check first char [11:35:33]Sock 8.First char is OK [11:35:33]request: POST /json_proto HTTP/1.0 [11:35:33]Method: POST [11:35:33]URL: /json_proto [11:35:33]Method is POST - this is cgi request [11:35:33]url: /json_proto [11:35:33]query_string will be loaded in cgi processing [11:35:33]execute_cgi json_proto POST (null) [11:35:33]execute_cgi path=json_proto method=POST [11:35:33]POST find Content-Length [11:35:33]Host: 172.17.50.3:8080 [11:35:33]Content-Length: 678 [11:35:33]Content-Type: application/json [11:35:33] [11:35:33]POST finish read [11:35:33]Found Content-Length = 678 [11:35:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:33]execute_script... [11:35: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)2885018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:33]POST & json_proto [11:35:33]process_json_proto [11:35:33]json parsed OK: [11:35:33]protocol is kg_v1.0 [11:35:33]action value=close_receipt [11:35:33]process_action close_receipt [11:35:33]cmd_close_receipt [11:35:33]MH_GetDate [11:35:33]Write to MH i2c: F0 00 00 84 CF 42 [11:35:33]Write i2c OK [11:35:33]MH_I2C_Read... [11:35:33]Read from MH i2c: F0 [11:35:33]MH_I2C_Read... [11:35:33]Read from MH i2c: F0 09 00 [11:35:33]MH_I2C_Read... [11:35:33]Read from MH i2c: F0 09 00 84 CF 00 0F EB 14 67 6B 98 1E 66 47 [11:35:33]GetLastDocTimeStamp 1729424111 [11:35:33]current date 1729424143 [11:35:33]FM_GetShiftState [11:35:33]SAM_PROTO_GetShiftState [11:35:33]wFMCommunicate request_size=4 [11:35:33]MH_SAM_APDU [11:35:33]CAPDU: 80 13 01 00 [11:35:33]Write to MH i2c: E2 08 00 85 CF 80 13 01 00 00 00 00 00 D1 [11:35:33]Write i2c OK [11:35:33]MH_I2C_Read... [11:35:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:33]Read from MH i2c: E2 [11:35:33]MH_I2C_Read... [11:35:33]Read from MH i2c: E2 0E 00 [11:35:33]MH_I2C_Read... [11:35:33]Read from MH i2c: E2 0E 00 85 CF 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 D7 [11:35:33]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:35:33]wFMCommunicate OK [11:35:33]SAM_PROTO_GetShiftState done [11:35:33]FM_GetShiftState done [11:35:33]opened in 1729383220 [11:35:33]opened+sec_in_day 1729469620 [11:35:33]quantity*price = 50041 [11:35:33]sum+1 = 50042 [11:35:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 146 20.10.2024 11:35 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69301 ФПД: 237703373192275 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113543&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69301&fm=237703373192275&tin=02508201610067®Number=0000000000156251&sum=50000 [11:35:34]StoreToDocumentArchive [11:35:34]shift 193 fd 69301 [11:35:34]save to /storage/0193/doc_00069301 [11:35:34]save last doc name /storage/0193/doc_00069301 to /storage/kkm_last_doc_name [11:35:34]save OK [11:35:34]Clear old archive folders... [11:35:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:35:34]tlvbuf is 00583D40 [11:35:34]SAM_PROTO_ClearQueue [11:35:34]wFMCommunicate request_size=4 [11:35:34]MH_SAM_APDU [11:35:34]CAPDU: 80 09 00 00 [11:35:34]Write to MH i2c: E2 08 00 92 CF 80 09 00 00 00 00 00 00 D3 [11:35:34]Write i2c OK [11:35:34]MH_I2C_Read... [11:35:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:34]Read from MH i2c: E2 [11:35:34]MH_I2C_Read... [11:35:34]Read from MH i2c: E2 03 00 [11:35:34]MH_I2C_Read... [11:35:34]Read from MH i2c: E2 03 00 92 CF 00 90 00 D5 [11:35:34]RAPDU: 90 00 [11:35:34]wFMCommunicate OK [11:35:34]SAM_PROTO_ClearQueue done [11:35:34]KKMCreateOFDPacket [11:35:34]OFDProtocolAddRootSTLVToBuf [11:35:34]FM_MakeSignedData [11:35:34]FM_MakeSignedData [11:35:34]SAM_PROTO_SignData [11:35:34]wFMCommunicate request_size=4 [11:35:34]MH_SAM_APDU [11:35:34]CAPDU: 80 0D 01 02 [11:35:34]Write to MH i2c: E2 08 00 93 CF 80 0D 01 02 00 00 00 00 DB [11:35:34]Write i2c OK [11:35:34]MH_I2C_Read... [11:35:34]OFD Sender: No OFD packet to send [11:35:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:34]Read from MH i2c: E2 [11:35:34]MH_I2C_Read... [11:35:34]Read from MH i2c: E2 03 00 [11:35:34]MH_I2C_Read... [11:35:34]Read from MH i2c: E2 03 00 93 CF 00 90 00 D6 [11:35:34]RAPDU: 90 00 [11:35:34]wFMCommunicate OK [11:35:34]wFMCommunicate request_size=255 [11:35:34]MH_SAM_APDU [11:35:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 0F EB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B5 0E 01 00 35 04 06 00 D8 [11:35:34]Write to MH i2c: E2 02 01 94 CF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 0F EB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B5 0E 01 00 35 04 06 00 D8 00 00 C8 [11:35:34]Write i2c OK [11:35:34]MH_I2C_Read... [11:35:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:35]Read from MH i2c: E2 [11:35:35]MH_I2C_Read... [11:35:35]Read from MH i2c: E2 03 00 [11:35:35]MH_I2C_Read... [11:35:35]Read from MH i2c: E2 03 00 94 CF 00 90 00 D7 [11:35:35]RAPDU: 90 00 [11:35:35]wFMCommunicate OK [11:35:35]wFMCommunicate request_size=10 [11:35:35]MH_SAM_APDU [11:35:35]CAPDU: 80 0D 02 02 05 30 A1 1E FC 53 [11:35:35]Write to MH i2c: E2 0D 00 95 CF 80 0D 02 02 05 00 30 A1 1E FC 53 00 00 26 [11:35:35]Write i2c OK [11:35:35]MH_I2C_Read... [11:35:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:35]Read from MH i2c: E2 [11:35:35]MH_I2C_Read... [11:35:35]Read from MH i2c: E2 03 00 [11:35:35]MH_I2C_Read... [11:35:35]Read from MH i2c: E2 03 00 95 CF 00 90 00 D8 [11:35:35]RAPDU: 90 00 [11:35:35]wFMCommunicate OK [11:35:35]wFMCommunicate request_size=4 [11:35:35]MH_SAM_APDU [11:35:35]CAPDU: 80 0D 03 02 [11:35:35]Write to MH i2c: E2 08 00 96 CF 80 0D 03 02 00 00 00 00 E0 [11:35:35]Write i2c OK [11:35:35]MH_I2C_Read... [11:35:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:35]Read from MH i2c: E2 [11:35:35]MH_I2C_Read... [11:35:35]Read from MH i2c: E2 0B 00 [11:35:35]MH_I2C_Read... [11:35:35]Read from MH i2c: E2 0B 00 96 CF 00 C3 85 8B 30 8A EA 9A 36 90 00 28 [11:35:35]RAPDU: C3 85 8B 30 8A EA 9A 36 90 00 [11:35:35]wFMCommunicate OK [11:35:35]SAM_PROTO_SignData done [11:35:35]FM_MakeSignedData done [11:35:35]CreateOFDProtocolMessage [11:35:35]wFMCommunicate request_size=4 [11:35:35]MH_SAM_APDU [11:35:35]CAPDU: 80 11 00 00 [11:35:35]Write to MH i2c: E2 08 00 97 CF 80 11 00 00 00 00 00 00 E0 [11:35:35]Write i2c OK [11:35:35]MH_I2C_Read... [11:35:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:35]Read from MH i2c: E2 [11:35:35]MH_I2C_Read... [11:35:35]Read from MH i2c: E2 17 00 [11:35:35]MH_I2C_Read... [11:35:35]Read from MH i2c: E2 17 00 97 CF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 32 [11:35:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:35:35]wFMCommunicate OK [11:35:35]CreateOFDProtocolMessage done [11:35:35]OFDSenderStorePacket 69301 [11:35:35]StoreOFDPacket docnum=69301 [11:35:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 B3 78 07 01 9E 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 0F EB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B5 0E 01 00 35 04 06 00 D8 30 A1 1E FC 53 C3 85 8B 30 8A EA 9A 36 [11:35:35]CheckFolder [11:35:35]dirname=/storage/ofd_packets [11:35:35]CheckFolder done [11:35:35]ProducePacketName [11:35:35]name=ofd_packets/00069301 [11:35:35]NVStorageSaveData ofd_packets/00069301 [11:35:35]File name is /storage/ofd_packets/00069301 [11:35:35]Write 301 bytes [11:35:35]NVStorageSaveData done [11:35:35]OFDSenderStorePacket done [11:35:35]KKMCreateOFDPacket done [11:35:35]NVStorageSaveData kkm_last_timestamp [11:35:35]File name is /storage/kkm_last_timestamp [11:35:35]Write 4 bytes [11:35:35]NVStorageSaveData done [11:35:35]ExternCall_PrintAddStr [11:35:35]wPrintStart [11:35:35]Write to MH i2c: 01 00 00 98 CF 67 [11:35:35]Write i2c OK [11:35:35]MH_I2C_Read... [11:35:35]Read from MH i2c: 01 [11:35:35]MH_I2C_Read... [11:35:35]Read from MH i2c: 01 07 00 [11:35:35]MH_I2C_Read... [11:35:35]Read from MH i2c: 01 07 00 98 CF 00 00 00 00 00 FF 0F 7C [11:35:35]RasterBufferAndPrint [11:35:35]line Счет N : (1)2885018 [11:35:35]line ИНН: 02508201610067 [11:35:35]line Контрольно-Кассовый Чек [11:35:35]line ПРОДАЖА [11:35:35]line ТРК (МРК, ГНК) : 22 [11:35:35]line Товар: 2710124130 [11:35:35]line Аи-92-К-5 [11:35:35]line 7.480 * 66.90 [11:35:35]line = 500.41 [11:35:35]line НДС 12% НСП 1% [11:35:35]line > о реализуемом товаре [11:35:35]line ОКРУГЛЕНИЕ: -0.41 [11:35:35]line ИТОГО: 500.00 [11:35:35]line Внесено: 500.00 [11:35:35]line СДАЧА: 0.00 [11:35:35]line НСП 1% : 4.43 [11:35:35]line НДС 12% : 53.14 [11:35:35]line Наличными: 500.00 [11:35:35]line Безнал.: 0.00 [11:35:35]line Место: АЗС № 85 "Партнер Нефть" [11:35:35]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:35:35]line СНО: Общий режим [11:35:35]line Чек 146 20.10.2024 11:35 [11:35:35]line Смена: 193 ФФД: 1.0 [11:35:35]line ЗНМ: 0300000167 [11:35:35]line РНМ: 0000000000156251 [11:35:35]line Версия ККМ: v1.0 [11:35:35]line ФМ: 0000000000963346 [11:35:35]line ФД: 69301 [11:35:35]line ФПД: 237703373192275 [11:35:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113543&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69301&fm=237703373192275&tin=02508201610067®Number=0000000000156251&sum=50000 [11:35:35]OFD Sender: Processing packet 69301 [packets to send 18, broken 17] [11:35:35]ProducePacketName [11:35:35]name=ofd_packets/00069301 [11:35:35]OFD Sender: To server: pG, [11:35:35]CommunicateWithHost lk.salyk.kg:30040 [11:35:35]ConnectInit lk.salyk.kg [11:35:35]written 0, free lines is 4095 [11:35:35]Connected sock=10 [11:35:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 B3 78 07 01 9E 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 0F EB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B5 0E 01 00 35 04 06 00 D8 30 A1 1E FC 53 C3 85 8B 30 8A EA 9A 36 [11:35:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 BC 99 47 00 A6 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B5 0E 01 00 F4 03 04 00 B6 94 14 67 B6 04 01 00 00 20 B5 6B 49 CC 6D 20 75 [11:35:35]CommunicateWithHost err = 0 [11:35:35]CheckOFDResponse [11:35:35]1017 (14) - 77093643461234 [11:35:35]1041 (16) - 0000000000963346 [11:35:35]1040 (4) - 69301 [11:35:35]1012 (4) - 20.10.2024 05:27 [11:35:35]1206 (1) - 0 [11:35:35]OFD Sender: Remove packet 69301 [11:35:35]ProducePacketName [11:35:35]name=ofd_packets/00069301 [11:35:35]NVStorageDeleteData [11:35:36]Write to MH i2c: 01 00 00 C3 CF 92 [11:35:36]Write i2c OK [11:35:36]MH_I2C_Read... [11:35:36]Read from MH i2c: 01 [11:35:36]MH_I2C_Read... [11:35:36]Read from MH i2c: 01 07 00 [11:35:36]MH_I2C_Read... [11:35:36]Read from MH i2c: 01 07 00 C3 CF 00 00 00 00 00 F9 0C 9E [11:35:36]RasterBufferAndPrint [11:35:36]line [11:35:36]line [11:35:36]line [11:35:36]line [11:35:36]line [11:35:36]written 0, free lines is 3328 [11:35:36]MH_Cut [11:35:36]Write to MH i2c: D1 01 00 CA CF 01 6B [11:35:36]Write i2c OK [11:35:36]MH_I2C_Read... [11:35:36]Read from MH i2c: D1 [11:35:36]MH_I2C_Read... [11:35:36]Read from MH i2c: D1 01 00 [11:35:36]MH_I2C_Read... [11:35:36]Read from MH i2c: D1 01 00 CA CF 00 6A [11:35:36]Write to MH i2c: 01 00 00 CB CF 9A [11:35:36]Write i2c OK [11:35:36]MH_I2C_Read... [11:35:36]OFD Sender: No OFD packet to send [11:35:36]*** Cut start [11:35:36]*** Partial cut [11:35:36]*** CUTSNS_PIN = 1 [11:35:36]*** CUTSNS_PIN = 0 [11:35:37]*** Brake cut motor [11:35:37]Read from MH i2c: 01 [11:35:37]MH_I2C_Read... [11:35:37]*** Stop cut motor [11:35:37]*** Cut end [11:35:37]Read from MH i2c: 01 07 00 [11:35:37]MH_I2C_Read... [11:35:37]Read from MH i2c: 01 07 00 CB CF 00 00 00 00 00 FF 0F AF [11:35:37]process_action close_receipt done [11:35:37]requested_data is exist [11:35:37]produce_requested_data [11:35:37]requested_item fm.sn is exist - process it [11:35:37]wFMCommunicate request_size=4 [11:35:37]MH_SAM_APDU [11:35:37]CAPDU: 80 11 00 00 [11:35:37]Write to MH i2c: E2 08 00 CC CF 80 11 00 00 00 00 00 00 15 [11:35:37]Write i2c OK [11:35:37]MH_I2C_Read... [11:35:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:37]Read from MH i2c: E2 [11:35:37]MH_I2C_Read... [11:35:37]Read from MH i2c: E2 17 00 [11:35:37]MH_I2C_Read... [11:35:37]Read from MH i2c: E2 17 00 CC CF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 67 [11:35:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:35:37]wFMCommunicate OK [11:35:37]requested_item fd.num is exist - process it [11:35:37]SAM_PROTO_GetFieldsCounters [11:35:37]wFMCommunicate request_size=4 [11:35:37]MH_SAM_APDU [11:35:37]CAPDU: 80 13 00 00 [11:35:37]Write to MH i2c: E2 08 00 CD CF 80 13 00 00 00 00 00 00 18 [11:35:37]Write i2c OK [11:35:37]MH_I2C_Read... [11:35:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:37]Read from MH i2c: E2 [11:35:37]MH_I2C_Read... [11:35:37]Read from MH i2c: E2 62 00 [11:35:37]MH_I2C_Read... [11:35:37]Read from MH i2c: E2 62 00 CD CF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B5 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [11:35:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B5 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:35:37]wFMCommunicate OK [11:35:37]SAM_PROTO_GetFieldsCounters done [11:35:37]requested_item shift.num is exist - process it [11:35:37]requested_item shift.opened is exist - process it [11:35:37]req_shift_opened [11:35:37]FM_GetShiftState [11:35:37]SAM_PROTO_GetShiftState [11:35:37]wFMCommunicate request_size=4 [11:35:37]MH_SAM_APDU [11:35:37]CAPDU: 80 13 01 00 [11:35:37]Write to MH i2c: E2 08 00 CE CF 80 13 01 00 00 00 00 00 1A [11:35:37]Write i2c OK [11:35:37]MH_I2C_Read... [11:35:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:37]Read from MH i2c: E2 [11:35:37]MH_I2C_Read... [11:35:37]Read from MH i2c: E2 0E 00 [11:35:37]MH_I2C_Read... [11:35:37]Read from MH i2c: E2 0E 00 CE CF 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 20 [11:35:37]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:35:37]wFMCommunicate OK [11:35:37]SAM_PROTO_GetShiftState done [11:35:37]FM_GetShiftState done [11:35:37]req_shift_opened done [11:35:37]requested_item shift.open_date is exist - process it [11:35:37]req_shift_open_date [11:35:37]req_shift_open_date done [11:35:37]produce_requested_data done [11:35:37]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69301,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [11:35:37]process_action_free close_receipt [11:35:37]json_value_free [11:35:37]json_value_free done [11:35:37]process_json_proto returns [11:35:37]Send response to host [11:35:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69301,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [11:35:37]free response buf [11:35:37]execute_script done [11:35:37]execute_script returns [11:35:37]free content buf [11:35:37]Sock 8.Close socket [11:35:37]Sock 8.Thread stoped [11:35:41]OFD Sender: No OFD packet to send [11:35:46]OFD Sender: No OFD packet to send [11:35:51]OFD Sender: No OFD packet to send [11:35:56]OFD Sender: No OFD packet to send [11:36:01]OFD Sender: No OFD packet to send [11:36:06]OFD Sender: No OFD packet to send [11:36:11]OFD Sender: No OFD packet to send [11:36:16]OFD Sender: No OFD packet to send [11:36:21]OFD Sender: No OFD packet to send [11:36:26]OFD Sender: No OFD packet to send [11:36:31]OFD Sender: No OFD packet to send [11:36:36]OFD Sender: No OFD packet to send [11:36:41]OFD Sender: No OFD packet to send [11:36:46]OFD Sender: No OFD packet to send [11:36:51]OFD Sender: No OFD packet to send [11:36:56]OFD Sender: No OFD packet to send [11:37:01]OFD Sender: No OFD packet to send [11:37:06]OFD Sender: No OFD packet to send [11:37:11]OFD Sender: No OFD packet to send [11:37:16]OFD Sender: No OFD packet to send [11:37:21]accept exits with 9 [11:37:21]New connection [11:37:21]New thread 3067116900 created [11:37:21]Thread 3067260260 joined [11:37:21]Waiting for new connection... [11:37:21] Sock 9.Parse request [11:37:21]Sock 9.Check first char [11:37:21]Sock 9.First char is OK [11:37:21]request: POST /json_proto HTTP/1.0 [11:37:21]Method: POST [11:37:21]URL: /json_proto [11:37:21]Method is POST - this is cgi request [11:37:21]url: /json_proto [11:37:21]query_string will be loaded in cgi processing [11:37:21]execute_cgi json_proto POST (null) [11:37:21]execute_cgi path=json_proto method=POST [11:37:21]POST find Content-Length [11:37:21]Host: 172.17.50.3:8080 [11:37:21]Content-Length: 678 [11:37:21]Content-Type: application/json [11:37:21] [11:37:21]POST finish read [11:37:21]Found Content-Length = 678 [11:37:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:21]execute_script... [11:37:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:21]POST & json_proto [11:37:21]process_json_proto [11:37:21]json parsed OK: [11:37:21]protocol is kg_v1.0 [11:37:21]action value=close_receipt [11:37:21]process_action close_receipt [11:37:21]cmd_close_receipt [11:37:21]MH_GetDate [11:37:21]Write to MH i2c: F0 00 00 CF CF 8D [11:37:21]Write i2c OK [11:37:21]MH_I2C_Read... [11:37:21]Read from MH i2c: F0 [11:37:21]MH_I2C_Read... [11:37:21]Read from MH i2c: F0 09 00 [11:37:21]MH_I2C_Read... [11:37:21]Read from MH i2c: F0 09 00 CF CF 00 7B EB 14 67 6B 98 1E 66 FE [11:37:21]GetLastDocTimeStamp 1729424143 [11:37:21]current date 1729424251 [11:37:21]FM_GetShiftState [11:37:21]SAM_PROTO_GetShiftState [11:37:21]wFMCommunicate request_size=4 [11:37:21]MH_SAM_APDU [11:37:21]CAPDU: 80 13 01 00 [11:37:21]Write to MH i2c: E2 08 00 D0 CF 80 13 01 00 00 00 00 00 1C [11:37:21]Write i2c OK [11:37:21]MH_I2C_Read... [11:37:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:21]Read from MH i2c: E2 [11:37:21]MH_I2C_Read... [11:37:21]Read from MH i2c: E2 0E 00 [11:37:21]MH_I2C_Read... [11:37:21]Read from MH i2c: E2 0E 00 D0 CF 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 22 [11:37:21]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:37:21]wFMCommunicate OK [11:37:21]SAM_PROTO_GetShiftState done [11:37:21]FM_GetShiftState done [11:37:21]opened in 1729383220 [11:37:21]opened+sec_in_day 1729469620 [11:37:21]quantity*price = 40006 [11:37:21]sum+1 = 40007 [11:37:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 147 20.10.2024 11:37 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69302 ФПД: 159793000254509 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113731&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69302&fm=159793000254509&tin=02508201610067®Number=0000000000156251&sum=40000 [11:37:22]StoreToDocumentArchive [11:37:22]shift 193 fd 69302 [11:37:22]save to /storage/0193/doc_00069302 [11:37:22]save last doc name /storage/0193/doc_00069302 to /storage/kkm_last_doc_name [11:37:22]save OK [11:37:22]Clear old archive folders... [11:37:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:37:22]tlvbuf is 007F2110 [11:37:22]SAM_PROTO_ClearQueue [11:37:22]wFMCommunicate request_size=4 [11:37:22]MH_SAM_APDU [11:37:22]CAPDU: 80 09 00 00 [11:37:22]Write to MH i2c: E2 08 00 DD CF 80 09 00 00 00 00 00 00 1E [11:37:22]Write i2c OK [11:37:22]MH_I2C_Read... [11:37:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:37:22]Read from MH i2c: E2 [11:37:22]MH_I2C_Read... [11:37:22]Read from MH i2c: E2 03 00 [11:37:22]MH_I2C_Read... [11:37:22]Read from MH i2c: E2 03 00 DD CF 00 90 00 20 [11:37:22]RAPDU: 90 00 [11:37:22]wFMCommunicate OK [11:37:22]SAM_PROTO_ClearQueue done [11:37:22]KKMCreateOFDPacket [11:37:22]OFDProtocolAddRootSTLVToBuf [11:37:22]FM_MakeSignedData [11:37:22]FM_MakeSignedData [11:37:22]SAM_PROTO_SignData [11:37:22]wFMCommunicate request_size=4 [11:37:22]MH_SAM_APDU [11:37:22]CAPDU: 80 0D 01 02 [11:37:22]Write to MH i2c: E2 08 00 DE CF 80 0D 01 02 00 00 00 00 26 [11:37:22]Write i2c OK [11:37:22]MH_I2C_Read... [11:37:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:37:22]Read from MH i2c: E2 [11:37:22]MH_I2C_Read... [11:37:22]Read from MH i2c: E2 03 00 [11:37:22]MH_I2C_Read... [11:37:22]Read from MH i2c: E2 03 00 DE CF 00 90 00 21 [11:37:22]RAPDU: 90 00 [11:37:22]wFMCommunicate OK [11:37:22]wFMCommunicate request_size=255 [11:37:22]MH_SAM_APDU [11:37:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 7B EB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B6 0E 01 00 35 04 06 00 91 [11:37:22]Write to MH i2c: E2 02 01 DF CF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 7B EB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B6 0E 01 00 35 04 06 00 91 00 00 09 [11:37:22]Write i2c OK [11:37:22]MH_I2C_Read... [11:37:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:22]Read from MH i2c: E2 [11:37:22]MH_I2C_Read... [11:37:22]Read from MH i2c: E2 03 00 [11:37:22]MH_I2C_Read... [11:37:22]Read from MH i2c: E2 03 00 DF CF 00 90 00 22 [11:37:22]RAPDU: 90 00 [11:37:22]wFMCommunicate OK [11:37:22]wFMCommunicate request_size=10 [11:37:22]MH_SAM_APDU [11:37:22]CAPDU: 80 0D 02 02 05 54 B5 04 8C 2D [11:37:22]Write to MH i2c: E2 0D 00 E0 CF 80 0D 02 02 05 00 54 B5 04 8C 2D 00 00 F9 [11:37:22]Write i2c OK [11:37:22]MH_I2C_Read... [11:37:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:22]Read from MH i2c: E2 [11:37:22]MH_I2C_Read... [11:37:22]Read from MH i2c: E2 03 00 [11:37:22]MH_I2C_Read... [11:37:22]Read from MH i2c: E2 03 00 E0 CF 00 90 00 23 [11:37:22]RAPDU: 90 00 [11:37:22]wFMCommunicate OK [11:37:22]wFMCommunicate request_size=4 [11:37:22]MH_SAM_APDU [11:37:22]CAPDU: 80 0D 03 02 [11:37:22]Write to MH i2c: E2 08 00 E1 CF 80 0D 03 02 00 00 00 00 2B [11:37:22]Write i2c OK [11:37:22]MH_I2C_Read... [11:37:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:37:23]Read from MH i2c: E2 [11:37:23]MH_I2C_Read... [11:37:23]Read from MH i2c: E2 0B 00 [11:37:23]MH_I2C_Read... [11:37:23]Read from MH i2c: E2 0B 00 E1 CF 00 C7 5B 67 75 11 CC 99 65 90 00 05 [11:37:23]RAPDU: C7 5B 67 75 11 CC 99 65 90 00 [11:37:23]wFMCommunicate OK [11:37:23]SAM_PROTO_SignData done [11:37:23]FM_MakeSignedData done [11:37:23]CreateOFDProtocolMessage [11:37:23]wFMCommunicate request_size=4 [11:37:23]MH_SAM_APDU [11:37:23]CAPDU: 80 11 00 00 [11:37:23]Write to MH i2c: E2 08 00 E2 CF 80 11 00 00 00 00 00 00 2B [11:37:23]Write i2c OK [11:37:23]MH_I2C_Read... [11:37:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:23]Read from MH i2c: E2 [11:37:23]MH_I2C_Read... [11:37:23]Read from MH i2c: E2 17 00 [11:37:23]MH_I2C_Read... [11:37:23]Read from MH i2c: E2 17 00 E2 CF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7D [11:37:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:37:23]wFMCommunicate OK [11:37:23]CreateOFDProtocolMessage done [11:37:23]OFDSenderStorePacket 69302 [11:37:23]StoreOFDPacket docnum=69302 [11:37:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C0 04 07 01 3B A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 7B EB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B6 0E 01 00 35 04 06 00 91 54 B5 04 8C 2D C7 5B 67 75 11 CC 99 65 [11:37:23]CheckFolder [11:37:23]dirname=/storage/ofd_packets [11:37:23]CheckFolder done [11:37:23]ProducePacketName [11:37:23]name=ofd_packets/00069302 [11:37:23]NVStorageSaveData ofd_packets/00069302 [11:37:23]File name is /storage/ofd_packets/00069302 [11:37:23]Write 301 bytes [11:37:23]NVStorageSaveData done [11:37:23]OFDSenderStorePacket done [11:37:23]KKMCreateOFDPacket done [11:37:23]NVStorageSaveData kkm_last_timestamp [11:37:23]File name is /storage/kkm_last_timestamp [11:37:23]Write 4 bytes [11:37:23]NVStorageSaveData done [11:37:23]ExternCall_PrintAddStr [11:37:23]wPrintStart [11:37:23]Write to MH i2c: 01 00 00 E3 CF B2 [11:37:23]Write i2c OK [11:37:23]MH_I2C_Read... [11:37:23]Read from MH i2c: 01 [11:37:23]MH_I2C_Read... [11:37:23]Read from MH i2c: 01 07 00 [11:37:23]MH_I2C_Read... [11:37:23]Read from MH i2c: 01 07 00 E3 CF 00 00 00 00 00 FF 0F C7 [11:37:23]RasterBufferAndPrint [11:37:23]line Счет N : (1)2885019 [11:37:23]line ИНН: 02508201610067 [11:37:23]line Контрольно-Кассовый Чек [11:37:23]line ПРОДАЖА [11:37:23]line ТРК (МРК, ГНК) : 22 [11:37:23]line Товар: 2710124130 [11:37:23]line Аи-92-К-5 [11:37:23]line 5.980 * 66.90 [11:37:23]line = 400.06 [11:37:23]line НДС 12% НСП 1% [11:37:23]line > о реализуемом товаре [11:37:23]line ОКРУГЛЕНИЕ: -0.06 [11:37:23]line ИТОГО: 400.00 [11:37:23]line Внесено: 400.00 [11:37:23]line СДАЧА: 0.00 [11:37:23]line НСП 1% : 3.54 [11:37:23]line НДС 12% : 42.48 [11:37:23]line Наличными: 400.00 [11:37:23]line Безнал.: 0.00 [11:37:23]line Место: АЗС № 85 "Партнер Нефть" [11:37:23]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:37:23]line СНО: Общий режим [11:37:23]line Чек 147 20.10.2024 11:37 [11:37:23]line Смена: 193 ФФД: 1.0 [11:37:23]line ЗНМ: 0300000167 [11:37:23]line РНМ: 0000000000156251 [11:37:23]line Версия ККМ: v1.0 [11:37:23]line ФМ: 0000000000963346 [11:37:23]line ФД: 69302 [11:37:23]line ФПД: 159793000254509 [11:37:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113731&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69302&fm=159793000254509&tin=02508201610067®Number=0000000000156251&sum=40000 [11:37:23]OFD Sender: Processing packet 69302 [packets to send 18, broken 17] [11:37:23]ProducePacketName [11:37:23]name=ofd_packets/00069302 [11:37:23]OFD Sender: To server: pG, [11:37:23]CommunicateWithHost lk.salyk.kg:30040 [11:37:23]ConnectInit lk.salyk.kg [11:37:23]written 0, free lines is 4095 [11:37:23]Connected sock=8 [11:37:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C0 04 07 01 3B A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 7B EB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B6 0E 01 00 35 04 06 00 91 54 B5 04 8C 2D C7 5B 67 75 11 CC 99 65 [11:37:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 4F 84 47 00 0D 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B6 0E 01 00 F4 03 04 00 22 95 14 67 B6 04 01 00 00 D3 E2 16 50 4B 83 F5 63 [11:37:23]CommunicateWithHost err = 0 [11:37:23]CheckOFDResponse [11:37:23]1017 (14) - 77093643461234 [11:37:23]1041 (16) - 0000000000963346 [11:37:23]1040 (4) - 69302 [11:37:23]1012 (4) - 20.10.2024 05:29 [11:37:23]1206 (1) - 0 [11:37:23]OFD Sender: Remove packet 69302 [11:37:23]ProducePacketName [11:37:23]name=ofd_packets/00069302 [11:37:23]NVStorageDeleteData [11:37:23]Write to MH i2c: 01 00 00 0E D0 DE [11:37:23]Write i2c OK [11:37:23]MH_I2C_Read... [11:37:23]Read from MH i2c: 01 [11:37:23]MH_I2C_Read... [11:37:23]Read from MH i2c: 01 07 00 [11:37:23]MH_I2C_Read... [11:37:23]Read from MH i2c: 01 07 00 0E D0 00 00 00 00 00 F8 0C E9 [11:37:23]RasterBufferAndPrint [11:37:23]line [11:37:23]line [11:37:23]line [11:37:23]line [11:37:23]line [11:37:23]written 0, free lines is 3329 [11:37:23]MH_Cut [11:37:23]Write to MH i2c: D1 01 00 15 D0 01 B7 [11:37:23]Write i2c OK [11:37:23]MH_I2C_Read... [11:37:23]Read from MH i2c: D1 [11:37:23]MH_I2C_Read... [11:37:23]Read from MH i2c: D1 01 00 [11:37:23]MH_I2C_Read... [11:37:23]Read from MH i2c: D1 01 00 15 D0 00 B6 [11:37:23]Write to MH i2c: 01 00 00 16 D0 E6 [11:37:23]Write i2c OK [11:37:23]MH_I2C_Read... [11:37:24]OFD Sender: No OFD packet to send [11:37:24]*** Cut start [11:37:24]*** Partial cut [11:37:24]*** CUTSNS_PIN = 1 [11:37:24]*** CUTSNS_PIN = 0 [11:37:24]*** Brake cut motor [11:37:25]Read from MH i2c: 01 [11:37:25]MH_I2C_Read... [11:37:25]*** Stop cut motor [11:37:25]*** Cut end [11:37:25]Read from MH i2c: 01 07 00 [11:37:25]MH_I2C_Read... [11:37:25]Read from MH i2c: 01 07 00 16 D0 00 00 00 00 00 FF 0F FB [11:37:25]process_action close_receipt done [11:37:25]requested_data is exist [11:37:25]produce_requested_data [11:37:25]requested_item fm.sn is exist - process it [11:37:25]wFMCommunicate request_size=4 [11:37:25]MH_SAM_APDU [11:37:25]CAPDU: 80 11 00 00 [11:37:25]Write to MH i2c: E2 08 00 17 D0 80 11 00 00 00 00 00 00 61 [11:37:25]Write i2c OK [11:37:25]MH_I2C_Read... [11:37:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:25]Read from MH i2c: E2 [11:37:25]MH_I2C_Read... [11:37:25]Read from MH i2c: E2 17 00 [11:37:25]MH_I2C_Read... [11:37:25]Read from MH i2c: E2 17 00 17 D0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B3 [11:37:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:37:25]wFMCommunicate OK [11:37:25]requested_item fd.num is exist - process it [11:37:25]SAM_PROTO_GetFieldsCounters [11:37:25]wFMCommunicate request_size=4 [11:37:25]MH_SAM_APDU [11:37:25]CAPDU: 80 13 00 00 [11:37:25]Write to MH i2c: E2 08 00 18 D0 80 13 00 00 00 00 00 00 64 [11:37:25]Write i2c OK [11:37:25]MH_I2C_Read... [11:37:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:25]Read from MH i2c: E2 [11:37:25]MH_I2C_Read... [11:37:25]Read from MH i2c: E2 62 00 [11:37:25]MH_I2C_Read... [11:37:25]Read from MH i2c: E2 62 00 18 D0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B6 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [11:37:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B6 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:37:25]wFMCommunicate OK [11:37:25]SAM_PROTO_GetFieldsCounters done [11:37:25]requested_item shift.num is exist - process it [11:37:25]requested_item shift.opened is exist - process it [11:37:25]req_shift_opened [11:37:25]FM_GetShiftState [11:37:25]SAM_PROTO_GetShiftState [11:37:25]wFMCommunicate request_size=4 [11:37:25]MH_SAM_APDU [11:37:25]CAPDU: 80 13 01 00 [11:37:25]Write to MH i2c: E2 08 00 19 D0 80 13 01 00 00 00 00 00 66 [11:37:25]Write i2c OK [11:37:25]MH_I2C_Read... [11:37:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:25]Read from MH i2c: E2 [11:37:25]MH_I2C_Read... [11:37:25]Read from MH i2c: E2 0E 00 [11:37:25]MH_I2C_Read... [11:37:25]Read from MH i2c: E2 0E 00 19 D0 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 6C [11:37:25]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:37:25]wFMCommunicate OK [11:37:25]SAM_PROTO_GetShiftState done [11:37:25]FM_GetShiftState done [11:37:25]req_shift_opened done [11:37:25]requested_item shift.open_date is exist - process it [11:37:25]req_shift_open_date [11:37:25]req_shift_open_date done [11:37:25]produce_requested_data done [11:37:25]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69302,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [11:37:25]process_action_free close_receipt [11:37:25]json_value_free [11:37:25]json_value_free done [11:37:25]process_json_proto returns [11:37:25]Send response to host [11:37:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69302,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [11:37:25]free response buf [11:37:25]execute_script done [11:37:25]execute_script returns [11:37:25]free content buf [11:37:25]Sock 9.Close socket [11:37:25]Sock 9.Thread stoped [11:37:29]OFD Sender: No OFD packet to send [11:37:34]OFD Sender: No OFD packet to send [11:37:39]OFD Sender: No OFD packet to send [11:37:44]OFD Sender: No OFD packet to send [11:37:48]accept exits with 10 [11:37:48]New connection [11:37:48]New thread 3067260260 created [11:37:48]Thread 3067116900 joined [11:37:48]Waiting for new connection... [11:37:48] Sock 10.Parse request [11:37:48]Sock 10.Check first char [11:37:48]Sock 10.First char is OK [11:37:48]request: POST /json_proto HTTP/1.0 [11:37:48]Method: POST [11:37:48]URL: /json_proto [11:37:48]Method is POST - this is cgi request [11:37:48]url: /json_proto [11:37:48]query_string will be loaded in cgi processing [11:37:48]execute_cgi json_proto POST (null) [11:37:48]execute_cgi path=json_proto method=POST [11:37:48]POST find Content-Length [11:37:48]Host: 172.17.50.3:8080 [11:37:48]Content-Length: 689 [11:37:48]Content-Type: application/json [11:37:48] [11:37:48]POST finish read [11:37:48]Found Content-Length = 689 [11:37:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:48]execute_script... [11:37:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:48]POST & json_proto [11:37:48]process_json_proto [11:37:48]json parsed OK: [11:37:48]protocol is kg_v1.0 [11:37:48]action value=close_receipt [11:37:48]process_action close_receipt [11:37:48]cmd_close_receipt [11:37:48]MH_GetDate [11:37:48]Write to MH i2c: F0 00 00 1A D0 D9 [11:37:48]Write i2c OK [11:37:48]MH_I2C_Read... [11:37:48]Read from MH i2c: F0 [11:37:48]MH_I2C_Read... [11:37:48]Read from MH i2c: F0 09 00 [11:37:48]MH_I2C_Read... [11:37:48]Read from MH i2c: F0 09 00 1A D0 00 96 EB 14 67 6B 98 1E 66 65 [11:37:48]GetLastDocTimeStamp 1729424251 [11:37:48]current date 1729424278 [11:37:48]FM_GetShiftState [11:37:48]SAM_PROTO_GetShiftState [11:37:48]wFMCommunicate request_size=4 [11:37:48]MH_SAM_APDU [11:37:48]CAPDU: 80 13 01 00 [11:37:48]Write to MH i2c: E2 08 00 1B D0 80 13 01 00 00 00 00 00 68 [11:37:48]Write i2c OK [11:37:48]MH_I2C_Read... [11:37:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:48]Read from MH i2c: E2 [11:37:48]MH_I2C_Read... [11:37:48]Read from MH i2c: E2 0E 00 [11:37:48]MH_I2C_Read... [11:37:48]Read from MH i2c: E2 0E 00 1B D0 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 6E [11:37:48]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:37:48]wFMCommunicate OK [11:37:48]SAM_PROTO_GetShiftState done [11:37:48]FM_GetShiftState done [11:37:48]opened in 1729383220 [11:37:48]opened+sec_in_day 1729469620 [11:37:48]quantity*price = 300076 [11:37:48]sum+1 = 300077 [11:37:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 148 20.10.2024 11:37 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69303 ФПД: 111916115226699 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113759&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69303&fm=111916115226699&tin=02508201610067®Number=0000000000156251&sum=300000 [11:37:50]StoreToDocumentArchive [11:37:50]shift 193 fd 69303 [11:37:50]save to /storage/0193/doc_00069303 [11:37:50]save last doc name /storage/0193/doc_00069303 to /storage/kkm_last_doc_name [11:37:50]save OK [11:37:50]Clear old archive folders... [11:37:50]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:37:50]tlvbuf is 008DC250 [11:37:50]SAM_PROTO_ClearQueue [11:37:50]wFMCommunicate request_size=4 [11:37:50]MH_SAM_APDU [11:37:50]CAPDU: 80 09 00 00 [11:37:50]Write to MH i2c: E2 08 00 28 D0 80 09 00 00 00 00 00 00 6A [11:37:50]Write i2c OK [11:37:50]MH_I2C_Read... [11:37:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:37:50]Read from MH i2c: E2 [11:37:50]MH_I2C_Read... [11:37:50]Read from MH i2c: E2 03 00 [11:37:50]MH_I2C_Read... [11:37:50]Read from MH i2c: E2 03 00 28 D0 00 90 00 6C [11:37:50]RAPDU: 90 00 [11:37:50]wFMCommunicate OK [11:37:50]SAM_PROTO_ClearQueue done [11:37:50]KKMCreateOFDPacket [11:37:50]OFDProtocolAddRootSTLVToBuf [11:37:50]FM_MakeSignedData [11:37:50]FM_MakeSignedData [11:37:50]SAM_PROTO_SignData [11:37:50]wFMCommunicate request_size=4 [11:37:50]MH_SAM_APDU [11:37:50]CAPDU: 80 0D 01 02 [11:37:50]Write to MH i2c: E2 08 00 29 D0 80 0D 01 02 00 00 00 00 72 [11:37:50]Write i2c OK [11:37:50]MH_I2C_Read... [11:37:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:37:50]Read from MH i2c: E2 [11:37:50]MH_I2C_Read... [11:37:50]Read from MH i2c: E2 03 00 [11:37:50]MH_I2C_Read... [11:37:50]Read from MH i2c: E2 03 00 29 D0 00 90 00 6D [11:37:50]RAPDU: 90 00 [11:37:50]wFMCommunicate OK [11:37:50]wFMCommunicate request_size=255 [11:37:50]MH_SAM_APDU [11:37:50]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 97 EB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B7 0E 01 [11:37:50]Write to MH i2c: E2 02 01 2A D0 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 97 EB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B7 0E 01 00 00 BE [11:37:50]Write i2c OK [11:37:50]MH_I2C_Read... [11:37:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:50]Read from MH i2c: E2 [11:37:50]MH_I2C_Read... [11:37:50]Read from MH i2c: E2 03 00 [11:37:50]MH_I2C_Read... [11:37:50]Read from MH i2c: E2 03 00 2A D0 00 90 00 6E [11:37:50]RAPDU: 90 00 [11:37:50]wFMCommunicate OK [11:37:50]wFMCommunicate request_size=16 [11:37:50]MH_SAM_APDU [11:37:50]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 65 C9 80 4A F0 4B [11:37:50]Write to MH i2c: E2 13 00 2B D0 80 0D 02 02 0B 00 00 35 04 06 00 65 C9 80 4A F0 4B 00 00 FD [11:37:50]Write i2c OK [11:37:50]MH_I2C_Read... [11:37:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:50]Read from MH i2c: E2 [11:37:50]MH_I2C_Read... [11:37:50]Read from MH i2c: E2 03 00 [11:37:50]MH_I2C_Read... [11:37:50]Read from MH i2c: E2 03 00 2B D0 00 90 00 6F [11:37:50]RAPDU: 90 00 [11:37:50]wFMCommunicate OK [11:37:50]wFMCommunicate request_size=4 [11:37:50]MH_SAM_APDU [11:37:50]CAPDU: 80 0D 03 02 [11:37:50]Write to MH i2c: E2 08 00 2C D0 80 0D 03 02 00 00 00 00 77 [11:37:50]Write i2c OK [11:37:50]MH_I2C_Read... [11:37:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:37:50]Read from MH i2c: E2 [11:37:50]MH_I2C_Read... [11:37:50]Read from MH i2c: E2 0B 00 [11:37:50]MH_I2C_Read... [11:37:50]Read from MH i2c: E2 0B 00 2C D0 00 B8 14 DD 31 11 0C 0E CB 90 00 48 [11:37:50]RAPDU: B8 14 DD 31 11 0C 0E CB 90 00 [11:37:50]wFMCommunicate OK [11:37:50]SAM_PROTO_SignData done [11:37:50]FM_MakeSignedData done [11:37:50]CreateOFDProtocolMessage [11:37:50]wFMCommunicate request_size=4 [11:37:50]MH_SAM_APDU [11:37:50]CAPDU: 80 11 00 00 [11:37:50]Write to MH i2c: E2 08 00 2D D0 80 11 00 00 00 00 00 00 77 [11:37:50]Write i2c OK [11:37:50]MH_I2C_Read... [11:37:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:50]Read from MH i2c: E2 [11:37:50]MH_I2C_Read... [11:37:50]Read from MH i2c: E2 17 00 [11:37:50]MH_I2C_Read... [11:37:50]Read from MH i2c: E2 17 00 2D D0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C9 [11:37:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:37:50]wFMCommunicate OK [11:37:50]CreateOFDProtocolMessage done [11:37:50]OFDSenderStorePacket 69303 [11:37:50]StoreOFDPacket docnum=69303 [11:37:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 19 97 0D 01 F7 28 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 97 EB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B7 0E 01 00 35 04 06 00 65 C9 80 4A F0 4B B8 14 DD 31 11 0C 0E CB [11:37:50]CheckFolder [11:37:50]dirname=/storage/ofd_packets [11:37:50]CheckFolder done [11:37:50]ProducePacketName [11:37:50]name=ofd_packets/00069303 [11:37:50]NVStorageSaveData ofd_packets/00069303 [11:37:50]File name is /storage/ofd_packets/00069303 [11:37:50]Write 307 bytes [11:37:50]NVStorageSaveData done [11:37:50]OFDSenderStorePacket done [11:37:50]KKMCreateOFDPacket done [11:37:50]NVStorageSaveData kkm_last_timestamp [11:37:50]File name is /storage/kkm_last_timestamp [11:37:50]Write 4 bytes [11:37:50]NVStorageSaveData done [11:37:50]ExternCall_PrintAddStr [11:37:50]wPrintStart [11:37:50]Write to MH i2c: 01 00 00 2E D0 FE [11:37:50]Write i2c OK [11:37:50]MH_I2C_Read... [11:37:50]Read from MH i2c: 01 [11:37:50]MH_I2C_Read... [11:37:50]Read from MH i2c: 01 07 00 [11:37:50]MH_I2C_Read... [11:37:50]Read from MH i2c: 01 07 00 2E D0 00 00 00 00 00 FF 0F 13 [11:37:50]RasterBufferAndPrint [11:37:50]line Счет N : (1)2885017 [11:37:50]line ИНН: 02508201610067 [11:37:50]line Контрольно-Кассовый Чек [11:37:50]line ПРОДАЖА [11:37:50]line ТРК (МРК, ГНК) : 31 [11:37:50]line Товар: 2710194240 [11:37:50]line D-ENERGY Дт-К-2 [11:37:50]line 38.870 * 77.20 [11:37:50]line = 3000.76 [11:37:50]line НДС 12% НСП 1% [11:37:50]line > о реализуемом товаре [11:37:50]line ОКРУГЛЕНИЕ: -0.76 [11:37:50]line ИТОГО: 3000.00 [11:37:50]line Внесено: 3000.00 [11:37:50]line СДАЧА: 0.00 [11:37:50]line НСП 1% : 26.55 [11:37:50]line НДС 12% : 318.66 [11:37:50]line Наличными: 3000.00 [11:37:50]line Безнал.: 0.00 [11:37:50]line Место: АЗС № 85 "Партнер Нефть" [11:37:50]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:37:50]line СНО: Общий режим [11:37:50]line Чек 148 20.10.2024 11:37 [11:37:50]line Смена: 193 ФФД: 1.0 [11:37:50]line ЗНМ: 0300000167 [11:37:50]line РНМ: 0000000000156251 [11:37:50]line Версия ККМ: v1.0 [11:37:50]line ФМ: 0000000000963346 [11:37:50]line ФД: 69303 [11:37:50]line ФПД: 111916115226699 [11:37:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113759&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69303&fm=111916115226699&tin=02508201610067®Number=0000000000156251&sum=300000 [11:37:50]OFD Sender: Processing packet 69303 [packets to send 18, broken 17] [11:37:50]ProducePacketName [11:37:50]name=ofd_packets/00069303 [11:37:50]OFD Sender: To server: pG, [11:37:50]CommunicateWithHost lk.salyk.kg:30040 [11:37:50]ConnectInit lk.salyk.kg [11:37:50]written 0, free lines is 4095 [11:37:50]Connected sock=9 [11:37:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 19 97 0D 01 F7 28 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 97 EB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B7 0E 01 00 35 04 06 00 65 C9 80 4A F0 4B B8 14 DD 31 11 0C 0E CB [11:37:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 27 BF 47 00 41 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B7 0E 01 00 F4 03 04 00 3D 95 14 67 B6 04 01 00 00 2D C1 E8 65 61 6E 86 21 [11:37:51]CommunicateWithHost err = 0 [11:37:51]CheckOFDResponse [11:37:51]1017 (14) - 77093643461234 [11:37:51]1041 (16) - 0000000000963346 [11:37:51]1040 (4) - 69303 [11:37:51]1012 (4) - 20.10.2024 05:29 [11:37:51]1206 (1) - 0 [11:37:51]OFD Sender: Remove packet 69303 [11:37:51]ProducePacketName [11:37:51]name=ofd_packets/00069303 [11:37:51]NVStorageDeleteData [11:37:51]Write to MH i2c: 01 00 00 59 D0 29 [11:37:51]Write i2c OK [11:37:51]MH_I2C_Read... [11:37:51]Read from MH i2c: 01 [11:37:51]MH_I2C_Read... [11:37:51]Read from MH i2c: 01 07 00 [11:37:51]MH_I2C_Read... [11:37:51]Read from MH i2c: 01 07 00 59 D0 00 00 00 00 00 F9 0C 35 [11:37:51]RasterBufferAndPrint [11:37:51]line [11:37:51]line [11:37:51]line [11:37:51]line [11:37:51]line [11:37:51]written 0, free lines is 3330 [11:37:51]MH_Cut [11:37:51]Write to MH i2c: D1 01 00 60 D0 01 02 [11:37:51]Write i2c OK [11:37:51]MH_I2C_Read... [11:37:51]Read from MH i2c: D1 [11:37:51]MH_I2C_Read... [11:37:51]Read from MH i2c: D1 01 00 [11:37:51]MH_I2C_Read... [11:37:51]Read from MH i2c: D1 01 00 60 D0 00 01 [11:37:51]Write to MH i2c: 01 00 00 61 D0 31 [11:37:51]Write i2c OK [11:37:51]MH_I2C_Read... [11:37:51]OFD Sender: No OFD packet to send [11:37:52]*** Cut start [11:37:52]*** Partial cut [11:37:52]*** CUTSNS_PIN = 1 [11:37:52]*** CUTSNS_PIN = 0 [11:37:52]*** Brake cut motor [11:37:52]Read from MH i2c: 01 [11:37:52]MH_I2C_Read... [11:37:52]*** Stop cut motor [11:37:52]*** Cut end [11:37:52]Read from MH i2c: 01 07 00 [11:37:52]MH_I2C_Read... [11:37:52]Read from MH i2c: 01 07 00 61 D0 00 00 00 00 00 FF 0F 46 [11:37:52]process_action close_receipt done [11:37:52]requested_data is exist [11:37:52]produce_requested_data [11:37:52]requested_item fm.sn is exist - process it [11:37:52]wFMCommunicate request_size=4 [11:37:52]MH_SAM_APDU [11:37:52]CAPDU: 80 11 00 00 [11:37:52]Write to MH i2c: E2 08 00 62 D0 80 11 00 00 00 00 00 00 AC [11:37:52]Write i2c OK [11:37:52]MH_I2C_Read... [11:37:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:52]Read from MH i2c: E2 [11:37:52]MH_I2C_Read... [11:37:52]Read from MH i2c: E2 17 00 [11:37:52]MH_I2C_Read... [11:37:52]Read from MH i2c: E2 17 00 62 D0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FE [11:37:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:37:52]wFMCommunicate OK [11:37:52]requested_item fd.num is exist - process it [11:37:52]SAM_PROTO_GetFieldsCounters [11:37:52]wFMCommunicate request_size=4 [11:37:52]MH_SAM_APDU [11:37:52]CAPDU: 80 13 00 00 [11:37:52]Write to MH i2c: E2 08 00 63 D0 80 13 00 00 00 00 00 00 AF [11:37:52]Write i2c OK [11:37:52]MH_I2C_Read... [11:37:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:52]Read from MH i2c: E2 [11:37:52]MH_I2C_Read... [11:37:52]Read from MH i2c: E2 62 00 [11:37:52]MH_I2C_Read... [11:37:52]Read from MH i2c: E2 62 00 63 D0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B7 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [11:37:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B7 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:37:52]wFMCommunicate OK [11:37:52]SAM_PROTO_GetFieldsCounters done [11:37:52]requested_item shift.num is exist - process it [11:37:52]requested_item shift.opened is exist - process it [11:37:52]req_shift_opened [11:37:52]FM_GetShiftState [11:37:52]SAM_PROTO_GetShiftState [11:37:52]wFMCommunicate request_size=4 [11:37:52]MH_SAM_APDU [11:37:52]CAPDU: 80 13 01 00 [11:37:52]Write to MH i2c: E2 08 00 64 D0 80 13 01 00 00 00 00 00 B1 [11:37:52]Write i2c OK [11:37:52]MH_I2C_Read... [11:37:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:52]Read from MH i2c: E2 [11:37:52]MH_I2C_Read... [11:37:52]Read from MH i2c: E2 0E 00 [11:37:52]MH_I2C_Read... [11:37:52]Read from MH i2c: E2 0E 00 64 D0 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 B7 [11:37:52]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:37:52]wFMCommunicate OK [11:37:52]SAM_PROTO_GetShiftState done [11:37:52]FM_GetShiftState done [11:37:52]req_shift_opened done [11:37:52]requested_item shift.open_date is exist - process it [11:37:52]req_shift_open_date [11:37:52]req_shift_open_date done [11:37:52]produce_requested_data done [11:37:52]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69303,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [11:37:52]process_action_free close_receipt [11:37:52]json_value_free [11:37:52]json_value_free done [11:37:52]process_json_proto returns [11:37:52]Send response to host [11:37:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69303,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [11:37:52]free response buf [11:37:52]execute_script done [11:37:52]execute_script returns [11:37:52]free content buf [11:37:52]Sock 10.Close socket [11:37:52]Sock 10.Thread stoped [11:37:56]OFD Sender: No OFD packet to send [11:38:01]OFD Sender: No OFD packet to send [11:38:03]accept exits with 8 [11:38:03]New connection [11:38:03]New thread 3067116900 created [11:38:03]Thread 3067260260 joined [11:38:03]Waiting for new connection... [11:38:03] Sock 8.Parse request [11:38:03]Sock 8.Check first char [11:38:03]Sock 8.First char is OK [11:38:03]request: POST /json_proto HTTP/1.0 [11:38:03]Method: POST [11:38:03]URL: /json_proto [11:38:03]Method is POST - this is cgi request [11:38:03]url: /json_proto [11:38:03]query_string will be loaded in cgi processing [11:38:03]execute_cgi json_proto POST (null) [11:38:03]execute_cgi path=json_proto method=POST [11:38:03]POST find Content-Length [11:38:03]Host: 172.17.50.3:8080 [11:38:03]Content-Length: 678 [11:38:03]Content-Type: application/json [11:38:03] [11:38:03]POST finish read [11:38:03]Found Content-Length = 678 [11:38:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:03]execute_script... [11:38: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)2885020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:03]POST & json_proto [11:38:03]process_json_proto [11:38:03]json parsed OK: [11:38:03]protocol is kg_v1.0 [11:38:03]action value=close_receipt [11:38:03]process_action close_receipt [11:38:03]cmd_close_receipt [11:38:03]MH_GetDate [11:38:03]Write to MH i2c: F0 00 00 65 D0 24 [11:38:03]Write i2c OK [11:38:03]MH_I2C_Read... [11:38:03]Read from MH i2c: F0 [11:38:03]MH_I2C_Read... [11:38:03]Read from MH i2c: F0 09 00 [11:38:03]MH_I2C_Read... [11:38:03]Read from MH i2c: F0 09 00 65 D0 00 A5 EB 14 67 6B 98 1E 66 BF [11:38:03]GetLastDocTimeStamp 1729424279 [11:38:03]current date 1729424293 [11:38:03]FM_GetShiftState [11:38:03]SAM_PROTO_GetShiftState [11:38:03]wFMCommunicate request_size=4 [11:38:03]MH_SAM_APDU [11:38:03]CAPDU: 80 13 01 00 [11:38:03]Write to MH i2c: E2 08 00 66 D0 80 13 01 00 00 00 00 00 B3 [11:38:03]Write i2c OK [11:38:03]MH_I2C_Read... [11:38:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:03]Read from MH i2c: E2 [11:38:03]MH_I2C_Read... [11:38:03]Read from MH i2c: E2 0E 00 [11:38:03]MH_I2C_Read... [11:38:03]Read from MH i2c: E2 0E 00 66 D0 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 B9 [11:38:03]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:38:03]wFMCommunicate OK [11:38:03]SAM_PROTO_GetShiftState done [11:38:03]FM_GetShiftState done [11:38:03]opened in 1729383220 [11:38:03]opened+sec_in_day 1729469620 [11:38:03]quantity*price = 60027 [11:38:03]sum+1 = 60029 [11:38:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 149 20.10.2024 11:38 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69304 ФПД: 128489643085925 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113813&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69304&fm=128489643085925&tin=02508201610067®Number=0000000000156251&sum=60000 [11:38:04]StoreToDocumentArchive [11:38:04]shift 193 fd 69304 [11:38:04]save to /storage/0193/doc_00069304 [11:38:04]save last doc name /storage/0193/doc_00069304 to /storage/kkm_last_doc_name [11:38:04]save OK [11:38:04]Clear old archive folders... [11:38:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:38:04]tlvbuf is 00890990 [11:38:04]SAM_PROTO_ClearQueue [11:38:04]wFMCommunicate request_size=4 [11:38:04]MH_SAM_APDU [11:38:04]CAPDU: 80 09 00 00 [11:38:04]Write to MH i2c: E2 08 00 73 D0 80 09 00 00 00 00 00 00 B5 [11:38:04]Write i2c OK [11:38:04]MH_I2C_Read... [11:38:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:04]Read from MH i2c: E2 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: E2 03 00 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: E2 03 00 73 D0 00 90 00 B7 [11:38:04]RAPDU: 90 00 [11:38:04]wFMCommunicate OK [11:38:04]SAM_PROTO_ClearQueue done [11:38:04]KKMCreateOFDPacket [11:38:04]OFDProtocolAddRootSTLVToBuf [11:38:04]FM_MakeSignedData [11:38:04]FM_MakeSignedData [11:38:04]SAM_PROTO_SignData [11:38:04]wFMCommunicate request_size=4 [11:38:04]MH_SAM_APDU [11:38:04]CAPDU: 80 0D 01 02 [11:38:04]Write to MH i2c: E2 08 00 74 D0 80 0D 01 02 00 00 00 00 BD [11:38:04]Write i2c OK [11:38:04]MH_I2C_Read... [11:38:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:05]Read from MH i2c: E2 [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: E2 03 00 [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: E2 03 00 74 D0 00 90 00 B8 [11:38:05]RAPDU: 90 00 [11:38:05]wFMCommunicate OK [11:38:05]wFMCommunicate request_size=255 [11:38:05]MH_SAM_APDU [11:38:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 A5 EB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B8 0E 01 00 35 04 06 00 74 [11:38:05]Write to MH i2c: E2 02 01 75 D0 80 0D 02 02 FA 00 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 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 A5 EB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B8 0E 01 00 35 04 06 00 74 00 00 40 [11:38:05]Write i2c OK [11:38:05]MH_I2C_Read... [11:38:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:05]Read from MH i2c: E2 [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: E2 03 00 [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: E2 03 00 75 D0 00 90 00 B9 [11:38:05]RAPDU: 90 00 [11:38:05]wFMCommunicate OK [11:38:05]wFMCommunicate request_size=10 [11:38:05]MH_SAM_APDU [11:38:05]CAPDU: 80 0D 02 02 05 DC 53 88 90 65 [11:38:05]Write to MH i2c: E2 0D 00 76 D0 80 0D 02 02 05 00 DC 53 88 90 65 00 00 76 [11:38:05]Write i2c OK [11:38:05]MH_I2C_Read... [11:38:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:05]Read from MH i2c: E2 [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: E2 03 00 [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: E2 03 00 76 D0 00 90 00 BA [11:38:05]RAPDU: 90 00 [11:38:05]wFMCommunicate OK [11:38:05]wFMCommunicate request_size=4 [11:38:05]MH_SAM_APDU [11:38:05]CAPDU: 80 0D 03 02 [11:38:05]Write to MH i2c: E2 08 00 77 D0 80 0D 03 02 00 00 00 00 C2 [11:38:05]Write i2c OK [11:38:05]MH_I2C_Read... [11:38:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:05]Read from MH i2c: E2 [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: E2 0B 00 [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: E2 0B 00 77 D0 00 5E DD 64 FA 22 3C 0A EB 90 00 AF [11:38:05]RAPDU: 5E DD 64 FA 22 3C 0A EB 90 00 [11:38:05]wFMCommunicate OK [11:38:05]SAM_PROTO_SignData done [11:38:05]FM_MakeSignedData done [11:38:05]CreateOFDProtocolMessage [11:38:05]wFMCommunicate request_size=4 [11:38:05]MH_SAM_APDU [11:38:05]CAPDU: 80 11 00 00 [11:38:05]Write to MH i2c: E2 08 00 78 D0 80 11 00 00 00 00 00 00 C2 [11:38:05]Write i2c OK [11:38:05]MH_I2C_Read... [11:38:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:05]Read from MH i2c: E2 [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: E2 17 00 [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: E2 17 00 78 D0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 14 [11:38:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:38:05]wFMCommunicate OK [11:38:05]CreateOFDProtocolMessage done [11:38:05]OFDSenderStorePacket 69304 [11:38:05]StoreOFDPacket docnum=69304 [11:38:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 3D F9 07 01 78 26 5A 03 01 00 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 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 A5 EB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B8 0E 01 00 35 04 06 00 74 DC 53 88 90 65 5E DD 64 FA 22 3C 0A EB [11:38:05]CheckFolder [11:38:05]dirname=/storage/ofd_packets [11:38:05]CheckFolder done [11:38:05]ProducePacketName [11:38:05]name=ofd_packets/00069304 [11:38:05]NVStorageSaveData ofd_packets/00069304 [11:38:05]File name is /storage/ofd_packets/00069304 [11:38:05]Write 301 bytes [11:38:05]NVStorageSaveData done [11:38:05]OFDSenderStorePacket done [11:38:05]KKMCreateOFDPacket done [11:38:05]NVStorageSaveData kkm_last_timestamp [11:38:05]File name is /storage/kkm_last_timestamp [11:38:05]Write 4 bytes [11:38:05]NVStorageSaveData done [11:38:05]ExternCall_PrintAddStr [11:38:05]wPrintStart [11:38:05]Write to MH i2c: 01 00 00 79 D0 49 [11:38:05]Write i2c OK [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: 01 [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: 01 07 00 [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: 01 07 00 79 D0 00 00 00 00 00 FF 0F 5E [11:38:05]RasterBufferAndPrint [11:38:05]line Счет N : (1)2885020 [11:38:05]line ИНН: 02508201610067 [11:38:05]line Контрольно-Кассовый Чек [11:38:05]line ПРОДАЖА [11:38:05]line ТРК (МРК, ГНК) : 43 [11:38:05]line Товар: 2710124500 [11:38:05]line Аи-95-К-5 [11:38:05]line 8.090 * 74.20 [11:38:05]line = 600.28 [11:38:05]line НДС 12% НСП 1% [11:38:05]line > о реализуемом товаре [11:38:05]line ОКРУГЛЕНИЕ: -0.28 [11:38:05]line ИТОГО: 600.00 [11:38:05]line Внесено: 600.00 [11:38:05]line СДАЧА: 0.00 [11:38:05]line НСП 1% : 5.31 [11:38:05]line НДС 12% : 63.75 [11:38:05]line Наличными: 600.00 [11:38:05]line Безнал.: 0.00 [11:38:05]line Место: АЗС № 85 "Партнер Нефть" [11:38:05]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:38:05]line СНО: Общий режим [11:38:05]line Чек 149 20.10.2024 11:38 [11:38:05]line Смена: 193 ФФД: 1.0 [11:38:05]line ЗНМ: 0300000167 [11:38:05]line РНМ: 0000000000156251 [11:38:05]line Версия ККМ: v1.0 [11:38:05]line ФМ: 0000000000963346 [11:38:05]line ФД: 69304 [11:38:05]line ФПД: 128489643085925 [11:38:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113813&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69304&fm=128489643085925&tin=02508201610067®Number=0000000000156251&sum=60000 [11:38:05]OFD Sender: Processing packet 69304 [packets to send 18, broken 17] [11:38:05]ProducePacketName [11:38:05]name=ofd_packets/00069304 [11:38:05]OFD Sender: To server: pG, [11:38:05]CommunicateWithHost lk.salyk.kg:30040 [11:38:05]ConnectInit lk.salyk.kg [11:38:05]written 0, free lines is 4095 [11:38:05]Connected sock=10 [11:38:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 3D F9 07 01 78 26 5A 03 01 00 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 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 A5 EB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B8 0E 01 00 35 04 06 00 74 DC 53 88 90 65 5E DD 64 FA 22 3C 0A EB [11:38:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 84 70 47 00 7C 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B8 0E 01 00 F4 03 04 00 4C 95 14 67 B6 04 01 00 00 29 AF 03 48 6B 71 5F 90 [11:38:06]CommunicateWithHost err = 0 [11:38:06]CheckOFDResponse [11:38:06]1017 (14) - 77093643461234 [11:38:06]1041 (16) - 0000000000963346 [11:38:06]1040 (4) - 69304 [11:38:06]1012 (4) - 20.10.2024 05:29 [11:38:06]1206 (1) - 0 [11:38:06]OFD Sender: Remove packet 69304 [11:38:06]ProducePacketName [11:38:06]name=ofd_packets/00069304 [11:38:06]NVStorageDeleteData [11:38:06]Write to MH i2c: 01 00 00 A4 D0 74 [11:38:06]Write i2c OK [11:38:06]MH_I2C_Read... [11:38:06]Read from MH i2c: 01 [11:38:06]MH_I2C_Read... [11:38:06]Read from MH i2c: 01 07 00 [11:38:06]MH_I2C_Read... [11:38:06]Read from MH i2c: 01 07 00 A4 D0 00 00 00 00 00 F8 0C 7F [11:38:06]RasterBufferAndPrint [11:38:06]line [11:38:06]line [11:38:06]line [11:38:06]line [11:38:06]line [11:38:06]written 0, free lines is 3329 [11:38:06]MH_Cut [11:38:06]Write to MH i2c: D1 01 00 AB D0 01 4D [11:38:06]Write i2c OK [11:38:06]MH_I2C_Read... [11:38:06]Read from MH i2c: D1 [11:38:06]MH_I2C_Read... [11:38:06]Read from MH i2c: D1 01 00 [11:38:06]MH_I2C_Read... [11:38:06]Read from MH i2c: D1 01 00 AB D0 00 4C [11:38:06]Write to MH i2c: 01 00 00 AC D0 7C [11:38:06]Write i2c OK [11:38:06]MH_I2C_Read... [11:38:06]OFD Sender: No OFD packet to send [11:38:06]*** Cut start [11:38:06]*** Partial cut [11:38:06]*** CUTSNS_PIN = 1 [11:38:07]*** CUTSNS_PIN = 0 [11:38:07]*** Brake cut motor [11:38:07]Read from MH i2c: 01 [11:38:07]MH_I2C_Read... [11:38:07]*** Stop cut motor [11:38:07]*** Cut end [11:38:07]Read from MH i2c: 01 07 00 [11:38:07]MH_I2C_Read... [11:38:07]Read from MH i2c: 01 07 00 AC D0 00 00 00 00 00 FF 0F 91 [11:38:07]process_action close_receipt done [11:38:07]requested_data is exist [11:38:07]produce_requested_data [11:38:07]requested_item fm.sn is exist - process it [11:38:07]wFMCommunicate request_size=4 [11:38:07]MH_SAM_APDU [11:38:07]CAPDU: 80 11 00 00 [11:38:07]Write to MH i2c: E2 08 00 AD D0 80 11 00 00 00 00 00 00 F7 [11:38:07]Write i2c OK [11:38:07]MH_I2C_Read... [11:38:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:07]Read from MH i2c: E2 [11:38:07]MH_I2C_Read... [11:38:07]Read from MH i2c: E2 17 00 [11:38:07]MH_I2C_Read... [11:38:07]Read from MH i2c: E2 17 00 AD D0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 49 [11:38:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:38:07]wFMCommunicate OK [11:38:07]requested_item fd.num is exist - process it [11:38:07]SAM_PROTO_GetFieldsCounters [11:38:07]wFMCommunicate request_size=4 [11:38:07]MH_SAM_APDU [11:38:07]CAPDU: 80 13 00 00 [11:38:07]Write to MH i2c: E2 08 00 AE D0 80 13 00 00 00 00 00 00 FA [11:38:07]Write i2c OK [11:38:07]MH_I2C_Read... [11:38:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:07]Read from MH i2c: E2 [11:38:07]MH_I2C_Read... [11:38:07]Read from MH i2c: E2 62 00 [11:38:07]MH_I2C_Read... [11:38:07]Read from MH i2c: E2 62 00 AE D0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B8 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [11:38:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B8 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:38:07]wFMCommunicate OK [11:38:07]SAM_PROTO_GetFieldsCounters done [11:38:07]requested_item shift.num is exist - process it [11:38:07]requested_item shift.opened is exist - process it [11:38:07]req_shift_opened [11:38:07]FM_GetShiftState [11:38:07]SAM_PROTO_GetShiftState [11:38:07]wFMCommunicate request_size=4 [11:38:07]MH_SAM_APDU [11:38:07]CAPDU: 80 13 01 00 [11:38:07]Write to MH i2c: E2 08 00 AF D0 80 13 01 00 00 00 00 00 FC [11:38:07]Write i2c OK [11:38:07]MH_I2C_Read... [11:38:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:07]Read from MH i2c: E2 [11:38:07]MH_I2C_Read... [11:38:07]Read from MH i2c: E2 0E 00 [11:38:07]MH_I2C_Read... [11:38:07]Read from MH i2c: E2 0E 00 AF D0 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 02 [11:38:07]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:38:07]wFMCommunicate OK [11:38:07]SAM_PROTO_GetShiftState done [11:38:07]FM_GetShiftState done [11:38:07]req_shift_opened done [11:38:07]requested_item shift.open_date is exist - process it [11:38:07]req_shift_open_date [11:38:07]req_shift_open_date done [11:38:07]produce_requested_data done [11:38:07]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69304,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [11:38:07]process_action_free close_receipt [11:38:07]json_value_free [11:38:07]json_value_free done [11:38:07]process_json_proto returns [11:38:07]Send response to host [11:38:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69304,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [11:38:07]free response buf [11:38:07]execute_script done [11:38:07]execute_script returns [11:38:07]free content buf [11:38:07]Sock 8.Close socket [11:38:07]Sock 8.Thread stoped [11:38:11]OFD Sender: No OFD packet to send [11:38:16]OFD Sender: No OFD packet to send [11:38:21]OFD Sender: No OFD packet to send [11:38:26]OFD Sender: No OFD packet to send [11:38:31]OFD Sender: No OFD packet to send [11:38:36]OFD Sender: No OFD packet to send [11:38:41]OFD Sender: No OFD packet to send [11:38:46]OFD Sender: No OFD packet to send [11:38:51]OFD Sender: No OFD packet to send [11:38:56]OFD Sender: No OFD packet to send [11:39:01]OFD Sender: No OFD packet to send [11:39:06]OFD Sender: No OFD packet to send [11:39:09]accept exits with 9 [11:39:09]New connection [11:39:09]New thread 3067260260 created [11:39:09]Thread 3067116900 joined [11:39:09]Waiting for new connection... [11:39:09] Sock 9.Parse request [11:39:09]Sock 9.Check first char [11:39:09]Sock 9.First char is OK [11:39:09]request: POST /json_proto HTTP/1.0 [11:39:09]Method: POST [11:39:09]URL: /json_proto [11:39:09]Method is POST - this is cgi request [11:39:09]url: /json_proto [11:39:09]query_string will be loaded in cgi processing [11:39:09]execute_cgi json_proto POST (null) [11:39:09]execute_cgi path=json_proto method=POST [11:39:09]POST find Content-Length [11:39:09]Host: 172.17.50.3:8080 [11:39:09]Content-Length: 679 [11:39:09]Content-Type: application/json [11:39:09] [11:39:09]POST finish read [11:39:09]Found Content-Length = 679 [11:39:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:09]execute_script... [11:39:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:09]POST & json_proto [11:39:09]process_json_proto [11:39:09]json parsed OK: [11:39:09]protocol is kg_v1.0 [11:39:09]action value=close_receipt [11:39:09]process_action close_receipt [11:39:09]cmd_close_receipt [11:39:09]MH_GetDate [11:39:09]Write to MH i2c: F0 00 00 B0 D0 6F [11:39:09]Write i2c OK [11:39:09]MH_I2C_Read... [11:39:09]Read from MH i2c: F0 [11:39:09]MH_I2C_Read... [11:39:09]Read from MH i2c: F0 09 00 [11:39:09]MH_I2C_Read... [11:39:09]Read from MH i2c: F0 09 00 B0 D0 00 E8 EB 14 67 6B 98 1E 66 4D [11:39:09]GetLastDocTimeStamp 1729424293 [11:39:09]current date 1729424360 [11:39:09]FM_GetShiftState [11:39:09]SAM_PROTO_GetShiftState [11:39:09]wFMCommunicate request_size=4 [11:39:09]MH_SAM_APDU [11:39:09]CAPDU: 80 13 01 00 [11:39:09]Write to MH i2c: E2 08 00 B1 D0 80 13 01 00 00 00 00 00 FE [11:39:09]Write i2c OK [11:39:09]MH_I2C_Read... [11:39:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:09]Read from MH i2c: E2 [11:39:09]MH_I2C_Read... [11:39:09]Read from MH i2c: E2 0E 00 [11:39:09]MH_I2C_Read... [11:39:09]Read from MH i2c: E2 0E 00 B1 D0 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 04 [11:39:09]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:39:09]wFMCommunicate OK [11:39:09]SAM_PROTO_GetShiftState done [11:39:09]FM_GetShiftState done [11:39:09]opened in 1729383220 [11:39:09]opened+sec_in_day 1729469620 [11:39:09]quantity*price = 70044 [11:39:09]sum+1 = 70045 [11:39:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 150 20.10.2024 11:39 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69305 ФПД: 70752403023741 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113920&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69305&fm=70752403023741&tin=02508201610067®Number=0000000000156251&sum=70000 [11:39:11]StoreToDocumentArchive [11:39:11]shift 193 fd 69305 [11:39:11]save to /storage/0193/doc_00069305 [11:39:11]save last doc name /storage/0193/doc_00069305 to /storage/kkm_last_doc_name [11:39:11]save OK [11:39:11]Clear old archive folders... [11:39:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:39:11]tlvbuf is 007E38D0 [11:39:11]SAM_PROTO_ClearQueue [11:39:11]wFMCommunicate request_size=4 [11:39:11]MH_SAM_APDU [11:39:11]CAPDU: 80 09 00 00 [11:39:11]Write to MH i2c: E2 08 00 BE D0 80 09 00 00 00 00 00 00 00 [11:39:11]Write i2c OK [11:39:11]MH_I2C_Read... [11:39:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:39:11]Read from MH i2c: E2 [11:39:11]MH_I2C_Read... [11:39:11]Read from MH i2c: E2 03 00 [11:39:11]MH_I2C_Read... [11:39:11]Read from MH i2c: E2 03 00 BE D0 00 90 00 02 [11:39:11]RAPDU: 90 00 [11:39:11]wFMCommunicate OK [11:39:11]SAM_PROTO_ClearQueue done [11:39:11]KKMCreateOFDPacket [11:39:11]OFDProtocolAddRootSTLVToBuf [11:39:11]FM_MakeSignedData [11:39:11]FM_MakeSignedData [11:39:11]SAM_PROTO_SignData [11:39:11]wFMCommunicate request_size=4 [11:39:11]MH_SAM_APDU [11:39:11]CAPDU: 80 0D 01 02 [11:39:11]Write to MH i2c: E2 08 00 BF D0 80 0D 01 02 00 00 00 00 08 [11:39:11]Write i2c OK [11:39:11]MH_I2C_Read... [11:39:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:39:11]Read from MH i2c: E2 [11:39:11]MH_I2C_Read... [11:39:11]Read from MH i2c: E2 03 00 [11:39:11]MH_I2C_Read... [11:39:11]Read from MH i2c: E2 03 00 BF D0 00 90 00 03 [11:39:11]RAPDU: 90 00 [11:39:11]wFMCommunicate OK [11:39:11]wFMCommunicate request_size=255 [11:39:11]MH_SAM_APDU [11:39:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 E8 EB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B9 0E 01 00 35 04 06 00 40 [11:39:11]Write to MH i2c: E2 02 01 C0 D0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 E8 EB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B9 0E 01 00 35 04 06 00 40 00 00 4E [11:39:11]Write i2c OK [11:39:11]MH_I2C_Read... [11:39:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:11]Read from MH i2c: E2 [11:39:11]MH_I2C_Read... [11:39:11]Read from MH i2c: E2 03 00 [11:39:11]MH_I2C_Read... [11:39:11]Read from MH i2c: E2 03 00 C0 D0 00 90 00 04 [11:39:11]RAPDU: 90 00 [11:39:11]wFMCommunicate OK [11:39:11]wFMCommunicate request_size=10 [11:39:11]MH_SAM_APDU [11:39:11]CAPDU: 80 0D 02 02 05 59 53 D9 67 7D [11:39:11]Write to MH i2c: E2 0D 00 C1 D0 80 0D 02 02 05 00 59 53 D9 67 7D 00 00 7E [11:39:11]Write i2c OK [11:39:11]MH_I2C_Read... [11:39:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:11]Read from MH i2c: E2 [11:39:11]MH_I2C_Read... [11:39:11]Read from MH i2c: E2 03 00 [11:39:11]MH_I2C_Read... [11:39:11]Read from MH i2c: E2 03 00 C1 D0 00 90 00 05 [11:39:11]RAPDU: 90 00 [11:39:11]wFMCommunicate OK [11:39:11]wFMCommunicate request_size=4 [11:39:11]MH_SAM_APDU [11:39:11]CAPDU: 80 0D 03 02 [11:39:11]Write to MH i2c: E2 08 00 C2 D0 80 0D 03 02 00 00 00 00 0D [11:39:11]Write i2c OK [11:39:11]MH_I2C_Read... [11:39:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:39:11]Read from MH i2c: E2 [11:39:11]MH_I2C_Read... [11:39:11]Read from MH i2c: E2 0B 00 [11:39:11]MH_I2C_Read... [11:39:11]Read from MH i2c: E2 0B 00 C2 D0 00 F2 20 49 2A B0 A7 19 EC 90 00 EF [11:39:11]RAPDU: F2 20 49 2A B0 A7 19 EC 90 00 [11:39:11]wFMCommunicate OK [11:39:11]SAM_PROTO_SignData done [11:39:11]FM_MakeSignedData done [11:39:11]CreateOFDProtocolMessage [11:39:11]wFMCommunicate request_size=4 [11:39:11]MH_SAM_APDU [11:39:11]CAPDU: 80 11 00 00 [11:39:11]Write to MH i2c: E2 08 00 C3 D0 80 11 00 00 00 00 00 00 0D [11:39:11]Write i2c OK [11:39:11]MH_I2C_Read... [11:39:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:11]Read from MH i2c: E2 [11:39:11]MH_I2C_Read... [11:39:11]Read from MH i2c: E2 17 00 [11:39:11]MH_I2C_Read... [11:39:11]Read from MH i2c: E2 17 00 C3 D0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5F [11:39:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:39:11]wFMCommunicate OK [11:39:11]CreateOFDProtocolMessage done [11:39:11]OFDSenderStorePacket 69305 [11:39:11]StoreOFDPacket docnum=69305 [11:39:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 53 70 07 01 CE DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 E8 EB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B9 0E 01 00 35 04 06 00 40 59 53 D9 67 7D F2 20 49 2A B0 A7 19 EC [11:39:11]CheckFolder [11:39:11]dirname=/storage/ofd_packets [11:39:11]CheckFolder done [11:39:11]ProducePacketName [11:39:11]name=ofd_packets/00069305 [11:39:11]NVStorageSaveData ofd_packets/00069305 [11:39:11]File name is /storage/ofd_packets/00069305 [11:39:11]Write 301 bytes [11:39:11]NVStorageSaveData done [11:39:11]OFDSenderStorePacket done [11:39:11]KKMCreateOFDPacket done [11:39:11]NVStorageSaveData kkm_last_timestamp [11:39:11]File name is /storage/kkm_last_timestamp [11:39:11]Write 4 bytes [11:39:11]NVStorageSaveData done [11:39:11]ExternCall_PrintAddStr [11:39:11]wPrintStart [11:39:11]Write to MH i2c: 01 00 00 C4 D0 94 [11:39:11]Write i2c OK [11:39:11]MH_I2C_Read... [11:39:11]Read from MH i2c: 01 [11:39:11]MH_I2C_Read... [11:39:11]Read from MH i2c: 01 07 00 [11:39:11]MH_I2C_Read... [11:39:11]Read from MH i2c: 01 07 00 C4 D0 00 00 00 00 00 FF 0F A9 [11:39:11]RasterBufferAndPrint [11:39:11]line Счет N : (1)2885021 [11:39:11]line ИНН: 02508201610067 [11:39:11]line Контрольно-Кассовый Чек [11:39:11]line ПРОДАЖА [11:39:11]line ТРК (МРК, ГНК) : 12 [11:39:11]line Товар: 2710124130 [11:39:11]line Аи-92-К-5 [11:39:11]line 10.470 * 66.90 [11:39:11]line = 700.44 [11:39:11]line НДС 12% НСП 1% [11:39:11]line > о реализуемом товаре [11:39:11]line ОКРУГЛЕНИЕ: -0.44 [11:39:11]line ИТОГО: 700.00 [11:39:11]line Внесено: 700.00 [11:39:11]line СДАЧА: 0.00 [11:39:11]line НСП 1% : 6.20 [11:39:11]line НДС 12% : 74.38 [11:39:11]line Наличными: 700.00 [11:39:11]line Безнал.: 0.00 [11:39:11]line Место: АЗС № 85 "Партнер Нефть" [11:39:11]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:39:11]line СНО: Общий режим [11:39:11]line Чек 150 20.10.2024 11:39 [11:39:11]line Смена: 193 ФФД: 1.0 [11:39:11]line ЗНМ: 0300000167 [11:39:11]line РНМ: 0000000000156251 [11:39:11]line Версия ККМ: v1.0 [11:39:11]line ФМ: 0000000000963346 [11:39:11]line ФД: 69305 [11:39:11]line ФПД: 70752403023741 [11:39:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113920&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69305&fm=70752403023741&tin=02508201610067®Number=0000000000156251&sum=70000 [11:39:11]OFD Sender: Processing packet 69305 [packets to send 18, broken 17] [11:39:11]ProducePacketName [11:39:11]name=ofd_packets/00069305 [11:39:11]OFD Sender: To server: pG, [11:39:11]CommunicateWithHost lk.salyk.kg:30040 [11:39:11]ConnectInit lk.salyk.kg [11:39:11]written 0, free lines is 4095 [11:39:12]Connected sock=10 [11:39:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 53 70 07 01 CE DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 E8 EB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B9 0E 01 00 35 04 06 00 40 59 53 D9 67 7D F2 20 49 2A B0 A7 19 EC [11:39:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 A2 66 47 00 17 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B9 0E 01 00 F4 03 04 00 8E 95 14 67 B6 04 01 00 00 1E AA 53 62 C9 14 1D 6E [11:39:12]CommunicateWithHost err = 0 [11:39:12]CheckOFDResponse [11:39:12]1017 (14) - 77093643461234 [11:39:12]1041 (16) - 0000000000963346 [11:39:12]1040 (4) - 69305 [11:39:12]1012 (4) - 20.10.2024 05:30 [11:39:12]1206 (1) - 0 [11:39:12]OFD Sender: Remove packet 69305 [11:39:12]ProducePacketName [11:39:12]name=ofd_packets/00069305 [11:39:12]NVStorageDeleteData [11:39:12]Write to MH i2c: 01 00 00 EF D0 BF [11:39:12]Write i2c OK [11:39:12]MH_I2C_Read... [11:39:12]Read from MH i2c: 01 [11:39:12]MH_I2C_Read... [11:39:12]Read from MH i2c: 01 07 00 [11:39:12]MH_I2C_Read... [11:39:12]Read from MH i2c: 01 07 00 EF D0 00 00 00 00 00 F0 0C C2 [11:39:12]RasterBufferAndPrint [11:39:12]line [11:39:12]line [11:39:12]line [11:39:12]line [11:39:12]line [11:39:12]written 0, free lines is 3318 [11:39:12]MH_Cut [11:39:12]Write to MH i2c: D1 01 00 F6 D0 01 98 [11:39:12]Write i2c OK [11:39:12]MH_I2C_Read... [11:39:12]Read from MH i2c: D1 [11:39:12]MH_I2C_Read... [11:39:12]Read from MH i2c: D1 01 00 [11:39:12]MH_I2C_Read... [11:39:12]Read from MH i2c: D1 01 00 F6 D0 00 97 [11:39:12]Write to MH i2c: 01 00 00 F7 D0 C7 [11:39:12]Write i2c OK [11:39:12]MH_I2C_Read... [11:39:12]OFD Sender: No OFD packet to send [11:39:13]*** Cut start [11:39:13]*** Partial cut [11:39:13]*** CUTSNS_PIN = 1 [11:39:13]*** CUTSNS_PIN = 0 [11:39:13]*** Brake cut motor [11:39:13]Read from MH i2c: 01 [11:39:13]MH_I2C_Read... [11:39:13]*** Stop cut motor [11:39:13]*** Cut end [11:39:13]Read from MH i2c: 01 07 00 [11:39:13]MH_I2C_Read... [11:39:13]Read from MH i2c: 01 07 00 F7 D0 00 00 00 00 00 FF 0F DC [11:39:13]process_action close_receipt done [11:39:13]requested_data is exist [11:39:13]produce_requested_data [11:39:13]requested_item fm.sn is exist - process it [11:39:13]wFMCommunicate request_size=4 [11:39:13]MH_SAM_APDU [11:39:13]CAPDU: 80 11 00 00 [11:39:13]Write to MH i2c: E2 08 00 F8 D0 80 11 00 00 00 00 00 00 42 [11:39:13]Write i2c OK [11:39:13]MH_I2C_Read... [11:39:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:13]Read from MH i2c: E2 [11:39:13]MH_I2C_Read... [11:39:13]Read from MH i2c: E2 17 00 [11:39:13]MH_I2C_Read... [11:39:13]Read from MH i2c: E2 17 00 F8 D0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 94 [11:39:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:39:13]wFMCommunicate OK [11:39:13]requested_item fd.num is exist - process it [11:39:13]SAM_PROTO_GetFieldsCounters [11:39:13]wFMCommunicate request_size=4 [11:39:13]MH_SAM_APDU [11:39:13]CAPDU: 80 13 00 00 [11:39:13]Write to MH i2c: E2 08 00 F9 D0 80 13 00 00 00 00 00 00 45 [11:39:13]Write i2c OK [11:39:13]MH_I2C_Read... [11:39:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:39:13]Read from MH i2c: E2 [11:39:13]MH_I2C_Read... [11:39:13]Read from MH i2c: E2 62 00 [11:39:13]MH_I2C_Read... [11:39:13]Read from MH i2c: E2 62 00 F9 D0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B9 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [11:39:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B9 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:39:13]wFMCommunicate OK [11:39:13]SAM_PROTO_GetFieldsCounters done [11:39:13]requested_item shift.num is exist - process it [11:39:13]requested_item shift.opened is exist - process it [11:39:13]req_shift_opened [11:39:13]FM_GetShiftState [11:39:13]SAM_PROTO_GetShiftState [11:39:13]wFMCommunicate request_size=4 [11:39:13]MH_SAM_APDU [11:39:13]CAPDU: 80 13 01 00 [11:39:13]Write to MH i2c: E2 08 00 FA D0 80 13 01 00 00 00 00 00 47 [11:39:13]Write i2c OK [11:39:13]MH_I2C_Read... [11:39:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:13]Read from MH i2c: E2 [11:39:13]MH_I2C_Read... [11:39:13]Read from MH i2c: E2 0E 00 [11:39:13]MH_I2C_Read... [11:39:13]Read from MH i2c: E2 0E 00 FA D0 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 4D [11:39:13]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:39:13]wFMCommunicate OK [11:39:13]SAM_PROTO_GetShiftState done [11:39:13]FM_GetShiftState done [11:39:13]req_shift_opened done [11:39:13]requested_item shift.open_date is exist - process it [11:39:13]req_shift_open_date [11:39:13]req_shift_open_date done [11:39:13]produce_requested_data done [11:39:13]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69305,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [11:39:13]process_action_free close_receipt [11:39:13]json_value_free [11:39:13]json_value_free done [11:39:13]process_json_proto returns [11:39:13]Send response to host [11:39:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69305,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [11:39:13]free response buf [11:39:13]execute_script done [11:39:13]execute_script returns [11:39:13]free content buf [11:39:13]Sock 9.Close socket [11:39:13]Sock 9.Thread stoped [11:39:17]OFD Sender: No OFD packet to send [11:39:22]OFD Sender: No OFD packet to send [11:39:27]OFD Sender: No OFD packet to send [11:39:32]OFD Sender: No OFD packet to send [11:39:37]OFD Sender: No OFD packet to send [11:39:42]OFD Sender: No OFD packet to send [11:39:43]accept exits with 8 [11:39:43]New connection [11:39:43]New thread 3067116900 created [11:39:43]Thread 3067260260 joined [11:39:43]Waiting for new connection... [11:39:43] Sock 8.Parse request [11:39:43]Sock 8.Check first char [11:39:43]Sock 8.First char is OK [11:39:43]request: POST /json_proto HTTP/1.0 [11:39:43]Method: POST [11:39:43]URL: /json_proto [11:39:43]Method is POST - this is cgi request [11:39:43]url: /json_proto [11:39:43]query_string will be loaded in cgi processing [11:39:43]execute_cgi json_proto POST (null) [11:39:43]execute_cgi path=json_proto method=POST [11:39:43]POST find Content-Length [11:39:43]Host: 172.17.50.3:8080 [11:39:43]Content-Length: 675 [11:39:43]Content-Type: application/json [11:39:43] [11:39:43]POST finish read [11:39:43]Found Content-Length = 675 [11:39:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:43]execute_script... [11:39: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)2885023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:43]POST & json_proto [11:39:43]process_json_proto [11:39:43]json parsed OK: [11:39:43]protocol is kg_v1.0 [11:39:43]action value=close_receipt [11:39:43]process_action close_receipt [11:39:43]cmd_close_receipt [11:39:43]MH_GetDate [11:39:43]Write to MH i2c: F0 00 00 FB D0 BA [11:39:43]Write i2c OK [11:39:43]MH_I2C_Read... [11:39:43]Read from MH i2c: F0 [11:39:43]MH_I2C_Read... [11:39:43]Read from MH i2c: F0 09 00 [11:39:43]MH_I2C_Read... [11:39:43]Read from MH i2c: F0 09 00 FB D0 00 09 EC 14 67 6B 98 1E 66 BA [11:39:43]GetLastDocTimeStamp 1729424360 [11:39:43]current date 1729424393 [11:39:43]FM_GetShiftState [11:39:43]SAM_PROTO_GetShiftState [11:39:43]wFMCommunicate request_size=4 [11:39:43]MH_SAM_APDU [11:39:43]CAPDU: 80 13 01 00 [11:39:43]Write to MH i2c: E2 08 00 FC D0 80 13 01 00 00 00 00 00 49 [11:39:43]Write i2c OK [11:39:43]MH_I2C_Read... [11:39:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:43]Read from MH i2c: E2 [11:39:43]MH_I2C_Read... [11:39:43]Read from MH i2c: E2 0E 00 [11:39:43]MH_I2C_Read... [11:39:43]Read from MH i2c: E2 0E 00 FC D0 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 4F [11:39:43]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:39:43]wFMCommunicate OK [11:39:43]SAM_PROTO_GetShiftState done [11:39:43]FM_GetShiftState done [11:39:43]opened in 1729383220 [11:39:43]opened+sec_in_day 1729469620 [11:39:43]quantity*price = 70027 [11:39:43]sum+1 = 70029 [11:39:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 151 20.10.2024 11:39 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69306 ФПД: 129330179651998 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113953&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69306&fm=129330179651998&tin=02508201610067®Number=0000000000156251&sum=70000 [11:39:44]StoreToDocumentArchive [11:39:44]shift 193 fd 69306 [11:39:44]save to /storage/0193/doc_00069306 [11:39:44]save last doc name /storage/0193/doc_00069306 to /storage/kkm_last_doc_name [11:39:44]save OK [11:39:44]Clear old archive folders... [11:39:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:39:44]tlvbuf is 008908B0 [11:39:44]SAM_PROTO_ClearQueue [11:39:44]wFMCommunicate request_size=4 [11:39:44]MH_SAM_APDU [11:39:44]CAPDU: 80 09 00 00 [11:39:44]Write to MH i2c: E2 08 00 09 D1 80 09 00 00 00 00 00 00 4C [11:39:44]Write i2c OK [11:39:44]MH_I2C_Read... [11:39:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:39:44]Read from MH i2c: E2 [11:39:44]MH_I2C_Read... [11:39:44]Read from MH i2c: E2 03 00 [11:39:44]MH_I2C_Read... [11:39:44]Read from MH i2c: E2 03 00 09 D1 00 90 00 4E [11:39:44]RAPDU: 90 00 [11:39:44]wFMCommunicate OK [11:39:44]SAM_PROTO_ClearQueue done [11:39:44]KKMCreateOFDPacket [11:39:44]OFDProtocolAddRootSTLVToBuf [11:39:44]FM_MakeSignedData [11:39:44]FM_MakeSignedData [11:39:44]SAM_PROTO_SignData [11:39:44]wFMCommunicate request_size=4 [11:39:44]MH_SAM_APDU [11:39:44]CAPDU: 80 0D 01 02 [11:39:44]Write to MH i2c: E2 08 00 0A D1 80 0D 01 02 00 00 00 00 54 [11:39:44]Write i2c OK [11:39:44]MH_I2C_Read... [11:39:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:39:44]Read from MH i2c: E2 [11:39:44]MH_I2C_Read... [11:39:44]Read from MH i2c: E2 03 00 [11:39:44]MH_I2C_Read... [11:39:44]Read from MH i2c: E2 03 00 0A D1 00 90 00 4F [11:39:44]RAPDU: 90 00 [11:39:44]wFMCommunicate OK [11:39:44]wFMCommunicate request_size=255 [11:39:44]MH_SAM_APDU [11:39: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 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 09 EC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BA 0E 01 00 35 04 06 00 75 A0 07 6A [11:39:44]Write to MH i2c: E2 02 01 0B D1 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 09 EC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BA 0E 01 00 35 04 06 00 75 A0 07 6A 00 00 E6 [11:39:44]Write i2c OK [11:39:44]MH_I2C_Read... [11:39:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:44]Read from MH i2c: E2 [11:39:44]MH_I2C_Read... [11:39:44]Read from MH i2c: E2 03 00 [11:39:44]MH_I2C_Read... [11:39:44]Read from MH i2c: E2 03 00 0B D1 00 90 00 50 [11:39:44]RAPDU: 90 00 [11:39:44]wFMCommunicate OK [11:39:44]wFMCommunicate request_size=7 [11:39:44]MH_SAM_APDU [11:39:44]CAPDU: 80 0D 02 02 02 B9 9E [11:39:44]Write to MH i2c: E2 0A 00 0C D1 80 0D 02 02 02 00 B9 9E 00 00 B2 [11:39:44]Write i2c OK [11:39:44]MH_I2C_Read... [11:39:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:44]Read from MH i2c: E2 [11:39:44]MH_I2C_Read... [11:39:44]Read from MH i2c: E2 03 00 [11:39:44]MH_I2C_Read... [11:39:44]Read from MH i2c: E2 03 00 0C D1 00 90 00 51 [11:39:44]RAPDU: 90 00 [11:39:44]wFMCommunicate OK [11:39:44]wFMCommunicate request_size=4 [11:39:44]MH_SAM_APDU [11:39:44]CAPDU: 80 0D 03 02 [11:39:44]Write to MH i2c: E2 08 00 0D D1 80 0D 03 02 00 00 00 00 59 [11:39:44]Write i2c OK [11:39:44]MH_I2C_Read... [11:39:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:39:44]Read from MH i2c: E2 [11:39:44]MH_I2C_Read... [11:39:44]Read from MH i2c: E2 0B 00 [11:39:44]MH_I2C_Read... [11:39:44]Read from MH i2c: E2 0B 00 0D D1 00 B5 81 B9 1D 3C F4 63 66 90 00 5F [11:39:44]RAPDU: B5 81 B9 1D 3C F4 63 66 90 00 [11:39:44]wFMCommunicate OK [11:39:44]SAM_PROTO_SignData done [11:39:44]FM_MakeSignedData done [11:39:44]CreateOFDProtocolMessage [11:39:44]wFMCommunicate request_size=4 [11:39:44]MH_SAM_APDU [11:39:44]CAPDU: 80 11 00 00 [11:39:44]Write to MH i2c: E2 08 00 0E D1 80 11 00 00 00 00 00 00 59 [11:39:44]Write i2c OK [11:39:44]MH_I2C_Read... [11:39:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:44]Read from MH i2c: E2 [11:39:44]MH_I2C_Read... [11:39:44]Read from MH i2c: E2 17 00 [11:39:44]MH_I2C_Read... [11:39:44]Read from MH i2c: E2 17 00 0E D1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AB [11:39:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:39:44]wFMCommunicate OK [11:39:44]CreateOFDProtocolMessage done [11:39:44]OFDSenderStorePacket 69306 [11:39:44]StoreOFDPacket docnum=69306 [11:39:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 96 C8 04 01 D7 1C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 09 EC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BA 0E 01 00 35 04 06 00 75 A0 07 6A B9 9E B5 81 B9 1D 3C F4 63 66 [11:39:44]CheckFolder [11:39:44]dirname=/storage/ofd_packets [11:39:44]CheckFolder done [11:39:44]ProducePacketName [11:39:44]name=ofd_packets/00069306 [11:39:44]NVStorageSaveData ofd_packets/00069306 [11:39:44]File name is /storage/ofd_packets/00069306 [11:39:44]Write 298 bytes [11:39:44]NVStorageSaveData done [11:39:44]OFDSenderStorePacket done [11:39:44]KKMCreateOFDPacket done [11:39:44]NVStorageSaveData kkm_last_timestamp [11:39:44]File name is /storage/kkm_last_timestamp [11:39:44]Write 4 bytes [11:39:44]NVStorageSaveData done [11:39:44]ExternCall_PrintAddStr [11:39:44]wPrintStart [11:39:44]Write to MH i2c: 01 00 00 0F D1 E0 [11:39:44]Write i2c OK [11:39:44]MH_I2C_Read... [11:39:44]Read from MH i2c: 01 [11:39:44]MH_I2C_Read... [11:39:44]Read from MH i2c: 01 07 00 [11:39:44]MH_I2C_Read... [11:39:44]Read from MH i2c: 01 07 00 0F D1 00 00 00 00 00 FF 0F F5 [11:39:44]RasterBufferAndPrint [11:39:44]line Счет N : (1)2885023 [11:39:44]line ИНН: 02508201610067 [11:39:44]line Контрольно-Кассовый Чек [11:39:44]line ПРОДАЖА [11:39:44]line ТРК (МРК, ГНК) : 51 [11:39:44]line Товар: 2710194210 [11:39:44]line ДТ-К-5 [11:39:44]line 9.190 * 76.20 [11:39:44]line = 700.28 [11:39:44]line НДС 12% НСП 1% [11:39:44]line > о реализуемом товаре [11:39:44]line ОКРУГЛЕНИЕ: -0.28 [11:39:44]line ИТОГО: 700.00 [11:39:44]line Внесено: 700.00 [11:39:44]line СДАЧА: 0.00 [11:39:44]line НСП 1% : 6.20 [11:39:44]line НДС 12% : 74.37 [11:39:44]line Наличными: 700.00 [11:39:44]line Безнал.: 0.00 [11:39:44]line Место: АЗС № 85 "Партнер Нефть" [11:39:44]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:39:45]line СНО: Общий режим [11:39:45]line Чек 151 20.10.2024 11:39 [11:39:45]line Смена: 193 ФФД: 1.0 [11:39:45]line ЗНМ: 0300000167 [11:39:45]line РНМ: 0000000000156251 [11:39:45]line Версия ККМ: v1.0 [11:39:45]line ФМ: 0000000000963346 [11:39:45]line ФД: 69306 [11:39:45]line ФПД: 129330179651998 [11:39:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113953&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69306&fm=129330179651998&tin=02508201610067®Number=0000000000156251&sum=70000 [11:39:45]OFD Sender: Processing packet 69306 [packets to send 18, broken 17] [11:39:45]ProducePacketName [11:39:45]name=ofd_packets/00069306 [11:39:45]OFD Sender: To server: pG, [11:39:45]CommunicateWithHost lk.salyk.kg:30040 [11:39:45]ConnectInit lk.salyk.kg [11:39:45]written 0, free lines is 4095 [11:39:45]Connected sock=10 [11:39:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 96 C8 04 01 D7 1C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 09 EC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BA 0E 01 00 35 04 06 00 75 A0 07 6A B9 9E B5 81 B9 1D 3C F4 63 66 [11:39:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 D3 F5 47 00 AB 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BA 0E 01 00 F4 03 04 00 B0 95 14 67 B6 04 01 00 00 6C BC 60 0E C4 66 05 84 [11:39:45]CommunicateWithHost err = 0 [11:39:45]CheckOFDResponse [11:39:45]1017 (14) - 77093643461234 [11:39:45]1041 (16) - 0000000000963346 [11:39:45]1040 (4) - 69306 [11:39:45]1012 (4) - 20.10.2024 05:31 [11:39:45]1206 (1) - 0 [11:39:45]OFD Sender: Remove packet 69306 [11:39:45]ProducePacketName [11:39:45]name=ofd_packets/00069306 [11:39:45]NVStorageDeleteData [11:39:45]Write to MH i2c: 01 00 00 3A D1 0B [11:39:45]Write i2c OK [11:39:45]MH_I2C_Read... [11:39:45]Read from MH i2c: 01 [11:39:45]MH_I2C_Read... [11:39:45]Read from MH i2c: 01 07 00 [11:39:45]MH_I2C_Read... [11:39:45]Read from MH i2c: 01 07 00 3A D1 00 00 00 00 00 F3 0C 11 [11:39:45]RasterBufferAndPrint [11:39:45]line [11:39:45]line [11:39:45]line [11:39:45]line [11:39:45]line [11:39:45]written 0, free lines is 3321 [11:39:45]MH_Cut [11:39:45]Write to MH i2c: D1 01 00 41 D1 01 E4 [11:39:45]Write i2c OK [11:39:45]MH_I2C_Read... [11:39:45]Read from MH i2c: D1 [11:39:45]MH_I2C_Read... [11:39:45]Read from MH i2c: D1 01 00 [11:39:45]MH_I2C_Read... [11:39:45]Read from MH i2c: D1 01 00 41 D1 00 E3 [11:39:45]Write to MH i2c: 01 00 00 42 D1 13 [11:39:45]Write i2c OK [11:39:45]MH_I2C_Read... [11:39:45]OFD Sender: No OFD packet to send [11:39:46]*** Cut start [11:39:46]*** Partial cut [11:39:46]*** CUTSNS_PIN = 1 [11:39:46]*** CUTSNS_PIN = 0 [11:39:46]*** Brake cut motor [11:39:46]Read from MH i2c: 01 [11:39:46]MH_I2C_Read... [11:39:46]*** Stop cut motor [11:39:46]*** Cut end [11:39:46]Read from MH i2c: 01 07 00 [11:39:46]MH_I2C_Read... [11:39:46]Read from MH i2c: 01 07 00 42 D1 00 00 00 00 00 FF 0F 28 [11:39:46]process_action close_receipt done [11:39:46]requested_data is exist [11:39:46]produce_requested_data [11:39:46]requested_item fm.sn is exist - process it [11:39:46]wFMCommunicate request_size=4 [11:39:46]MH_SAM_APDU [11:39:46]CAPDU: 80 11 00 00 [11:39:46]Write to MH i2c: E2 08 00 43 D1 80 11 00 00 00 00 00 00 8E [11:39:46]Write i2c OK [11:39:46]MH_I2C_Read... [11:39:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:46]Read from MH i2c: E2 [11:39:46]MH_I2C_Read... [11:39:46]Read from MH i2c: E2 17 00 [11:39:46]MH_I2C_Read... [11:39:46]Read from MH i2c: E2 17 00 43 D1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E0 [11:39:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:39:46]wFMCommunicate OK [11:39:46]requested_item fd.num is exist - process it [11:39:46]SAM_PROTO_GetFieldsCounters [11:39:46]wFMCommunicate request_size=4 [11:39:46]MH_SAM_APDU [11:39:46]CAPDU: 80 13 00 00 [11:39:46]Write to MH i2c: E2 08 00 44 D1 80 13 00 00 00 00 00 00 91 [11:39:46]Write i2c OK [11:39:46]MH_I2C_Read... [11:39:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:39:47]Read from MH i2c: E2 [11:39:47]MH_I2C_Read... [11:39:47]Read from MH i2c: E2 62 00 [11:39:47]MH_I2C_Read... [11:39:47]Read from MH i2c: E2 62 00 44 D1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BA 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [11:39:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BA 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:39:47]wFMCommunicate OK [11:39:47]SAM_PROTO_GetFieldsCounters done [11:39:47]requested_item shift.num is exist - process it [11:39:47]requested_item shift.opened is exist - process it [11:39:47]req_shift_opened [11:39:47]FM_GetShiftState [11:39:47]SAM_PROTO_GetShiftState [11:39:47]wFMCommunicate request_size=4 [11:39:47]MH_SAM_APDU [11:39:47]CAPDU: 80 13 01 00 [11:39:47]Write to MH i2c: E2 08 00 45 D1 80 13 01 00 00 00 00 00 93 [11:39:47]Write i2c OK [11:39:47]MH_I2C_Read... [11:39:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:47]Read from MH i2c: E2 [11:39:47]MH_I2C_Read... [11:39:47]Read from MH i2c: E2 0E 00 [11:39:47]MH_I2C_Read... [11:39:47]Read from MH i2c: E2 0E 00 45 D1 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 99 [11:39:47]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:39:47]wFMCommunicate OK [11:39:47]SAM_PROTO_GetShiftState done [11:39:47]FM_GetShiftState done [11:39:47]req_shift_opened done [11:39:47]requested_item shift.open_date is exist - process it [11:39:47]req_shift_open_date [11:39:47]req_shift_open_date done [11:39:47]produce_requested_data done [11:39:47]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69306,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [11:39:47]process_action_free close_receipt [11:39:47]json_value_free [11:39:47]json_value_free done [11:39:47]process_json_proto returns [11:39:47]Send response to host [11:39:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69306,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [11:39:47]free response buf [11:39:47]execute_script done [11:39:47]execute_script returns [11:39:47]free content buf [11:39:47]Sock 8.Close socket [11:39:47]Sock 8.Thread stoped [11:39:50]OFD Sender: No OFD packet to send [11:39:55]OFD Sender: No OFD packet to send [11:40:00]OFD Sender: No OFD packet to send [11:40:01]accept exits with 9 [11:40:01]New connection [11:40:01]New thread 3067260260 created [11:40:01]Thread 3067116900 joined [11:40:01]Waiting for new connection... [11:40:01] Sock 9.Parse request [11:40:01]Sock 9.Check first char [11:40:01]Sock 9.First char is OK [11:40:01]request: POST /json_proto HTTP/1.0 [11:40:01]Method: POST [11:40:01]URL: /json_proto [11:40:01]Method is POST - this is cgi request [11:40:01]url: /json_proto [11:40:01]query_string will be loaded in cgi processing [11:40:01]execute_cgi json_proto POST (null) [11:40:01]execute_cgi path=json_proto method=POST [11:40:01]POST find Content-Length [11:40:01]Host: 172.17.50.3:8080 [11:40:01]Content-Length: 683 [11:40:01]Content-Type: application/json [11:40:01] [11:40:01]POST finish read [11:40:01]Found Content-Length = 683 [11:40:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:01]execute_script... [11:40: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)2885022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:01]POST & json_proto [11:40:01]process_json_proto [11:40:01]json parsed OK: [11:40:01]protocol is kg_v1.0 [11:40:01]action value=close_receipt [11:40:01]process_action close_receipt [11:40:01]cmd_close_receipt [11:40:01]MH_GetDate [11:40:01]Write to MH i2c: F0 00 00 46 D1 06 [11:40:01]Write i2c OK [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: F0 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: F0 09 00 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: F0 09 00 46 D1 00 1B EC 14 67 6B 98 1E 66 18 [11:40:01]GetLastDocTimeStamp 1729424393 [11:40:01]current date 1729424411 [11:40:01]FM_GetShiftState [11:40:01]SAM_PROTO_GetShiftState [11:40:01]wFMCommunicate request_size=4 [11:40:01]MH_SAM_APDU [11:40:01]CAPDU: 80 13 01 00 [11:40:01]Write to MH i2c: E2 08 00 47 D1 80 13 01 00 00 00 00 00 95 [11:40:01]Write i2c OK [11:40:01]MH_I2C_Read... [11:40:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:01]Read from MH i2c: E2 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: E2 0E 00 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: E2 0E 00 47 D1 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 9B [11:40:01]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:40:01]wFMCommunicate OK [11:40:01]SAM_PROTO_GetShiftState done [11:40:01]FM_GetShiftState done [11:40:01]opened in 1729383220 [11:40:01]opened+sec_in_day 1729469620 [11:40:01]quantity*price = 100015 [11:40:01]sum+1 = 100017 [11:40:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 152 20.10.2024 11:40 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69307 ФПД: 130501916935558 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114011&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69307&fm=130501916935558&tin=02508201610067®Number=0000000000156251&sum=100000 [11:40:02]StoreToDocumentArchive [11:40:02]shift 193 fd 69307 [11:40:02]save to /storage/0193/doc_00069307 [11:40:02]save last doc name /storage/0193/doc_00069307 to /storage/kkm_last_doc_name [11:40:02]save OK [11:40:02]Clear old archive folders... [11:40:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:40:02]tlvbuf is 005715A0 [11:40:02]SAM_PROTO_ClearQueue [11:40:02]wFMCommunicate request_size=4 [11:40:02]MH_SAM_APDU [11:40:02]CAPDU: 80 09 00 00 [11:40:02]Write to MH i2c: E2 08 00 54 D1 80 09 00 00 00 00 00 00 97 [11:40:02]Write i2c OK [11:40:02]MH_I2C_Read... [11:40:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:40:03]Read from MH i2c: E2 [11:40:03]MH_I2C_Read... [11:40:03]Read from MH i2c: E2 03 00 [11:40:03]MH_I2C_Read... [11:40:03]Read from MH i2c: E2 03 00 54 D1 00 90 00 99 [11:40:03]RAPDU: 90 00 [11:40:03]wFMCommunicate OK [11:40:03]SAM_PROTO_ClearQueue done [11:40:03]KKMCreateOFDPacket [11:40:03]OFDProtocolAddRootSTLVToBuf [11:40:03]FM_MakeSignedData [11:40:03]FM_MakeSignedData [11:40:03]SAM_PROTO_SignData [11:40:03]wFMCommunicate request_size=4 [11:40:03]MH_SAM_APDU [11:40:03]CAPDU: 80 0D 01 02 [11:40:03]Write to MH i2c: E2 08 00 55 D1 80 0D 01 02 00 00 00 00 9F [11:40:03]Write i2c OK [11:40:03]MH_I2C_Read... [11:40:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:40:03]Read from MH i2c: E2 [11:40:03]MH_I2C_Read... [11:40:03]Read from MH i2c: E2 03 00 [11:40:03]MH_I2C_Read... [11:40:03]Read from MH i2c: E2 03 00 55 D1 00 90 00 9A [11:40:03]RAPDU: 90 00 [11:40:03]wFMCommunicate OK [11:40:03]wFMCommunicate request_size=255 [11:40:03]MH_SAM_APDU [11:40: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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 1B EC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BB 0E 01 00 35 04 06 00 76 [11:40:03]Write to MH i2c: E2 02 01 56 D1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 1B EC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BB 0E 01 00 35 04 06 00 76 00 00 3D [11:40:03]Write i2c OK [11:40:03]MH_I2C_Read... [11:40:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:03]Read from MH i2c: E2 [11:40:03]MH_I2C_Read... [11:40:03]Read from MH i2c: E2 03 00 [11:40:03]MH_I2C_Read... [11:40:03]Read from MH i2c: E2 03 00 56 D1 00 90 00 9B [11:40:03]RAPDU: 90 00 [11:40:03]wFMCommunicate OK [11:40:03]wFMCommunicate request_size=10 [11:40:03]MH_SAM_APDU [11:40:03]CAPDU: 80 0D 02 02 05 B0 D8 66 C5 86 [11:40:03]Write to MH i2c: E2 0D 00 57 D1 80 0D 02 02 05 00 B0 D8 66 C5 86 00 00 E5 [11:40:03]Write i2c OK [11:40:03]MH_I2C_Read... [11:40:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:03]Read from MH i2c: E2 [11:40:03]MH_I2C_Read... [11:40:03]Read from MH i2c: E2 03 00 [11:40:03]MH_I2C_Read... [11:40:03]Read from MH i2c: E2 03 00 57 D1 00 90 00 9C [11:40:03]RAPDU: 90 00 [11:40:03]wFMCommunicate OK [11:40:03]wFMCommunicate request_size=4 [11:40:03]MH_SAM_APDU [11:40:03]CAPDU: 80 0D 03 02 [11:40:03]Write to MH i2c: E2 08 00 58 D1 80 0D 03 02 00 00 00 00 A4 [11:40:03]Write i2c OK [11:40:03]MH_I2C_Read... [11:40:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:40:03]Read from MH i2c: E2 [11:40:03]MH_I2C_Read... [11:40:03]Read from MH i2c: E2 0B 00 [11:40:03]MH_I2C_Read... [11:40:03]Read from MH i2c: E2 0B 00 58 D1 00 A4 1E 79 7E F4 D5 F9 0C 90 00 2C [11:40:03]RAPDU: A4 1E 79 7E F4 D5 F9 0C 90 00 [11:40:03]wFMCommunicate OK [11:40:03]SAM_PROTO_SignData done [11:40:03]FM_MakeSignedData done [11:40:03]CreateOFDProtocolMessage [11:40:03]wFMCommunicate request_size=4 [11:40:03]MH_SAM_APDU [11:40:03]CAPDU: 80 11 00 00 [11:40:03]Write to MH i2c: E2 08 00 59 D1 80 11 00 00 00 00 00 00 A4 [11:40:03]Write i2c OK [11:40:03]MH_I2C_Read... [11:40:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:03]Read from MH i2c: E2 [11:40:03]MH_I2C_Read... [11:40:03]Read from MH i2c: E2 17 00 [11:40:03]MH_I2C_Read... [11:40:03]Read from MH i2c: E2 17 00 59 D1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F6 [11:40:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:40:03]wFMCommunicate OK [11:40:03]CreateOFDProtocolMessage done [11:40:03]OFDSenderStorePacket 69307 [11:40:03]StoreOFDPacket docnum=69307 [11:40:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 45 1D 07 01 9F 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 1B EC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BB 0E 01 00 35 04 06 00 76 B0 D8 66 C5 86 A4 1E 79 7E F4 D5 F9 0C [11:40:03]CheckFolder [11:40:03]dirname=/storage/ofd_packets [11:40:03]CheckFolder done [11:40:03]ProducePacketName [11:40:03]name=ofd_packets/00069307 [11:40:03]NVStorageSaveData ofd_packets/00069307 [11:40:03]File name is /storage/ofd_packets/00069307 [11:40:03]Write 301 bytes [11:40:03]NVStorageSaveData done [11:40:03]OFDSenderStorePacket done [11:40:03]KKMCreateOFDPacket done [11:40:03]NVStorageSaveData kkm_last_timestamp [11:40:03]File name is /storage/kkm_last_timestamp [11:40:03]Write 4 bytes [11:40:03]NVStorageSaveData done [11:40:03]ExternCall_PrintAddStr [11:40:03]wPrintStart [11:40:03]Write to MH i2c: 01 00 00 5A D1 2B [11:40:03]Write i2c OK [11:40:03]MH_I2C_Read... [11:40:03]Read from MH i2c: 01 [11:40:03]MH_I2C_Read... [11:40:03]Read from MH i2c: 01 07 00 [11:40:03]MH_I2C_Read... [11:40:03]Read from MH i2c: 01 07 00 5A D1 00 00 00 00 00 FF 0F 40 [11:40:03]RasterBufferAndPrint [11:40:03]line Счет N : (1)2885022 [11:40:03]line ИНН: 02508201610067 [11:40:03]line Контрольно-Кассовый Чек [11:40:03]line ПРОДАЖА [11:40:03]line ТРК (МРК, ГНК) : 22 [11:40:03]line Товар: 2710124130 [11:40:03]line Аи-92-К-5 [11:40:03]line 14.950 * 66.90 [11:40:03]line = 1000.16 [11:40:03]line НДС 12% НСП 1% [11:40:03]line > о реализуемом товаре [11:40:03]line ОКРУГЛЕНИЕ: -0.16 [11:40:03]line ИТОГО: 1000.00 [11:40:03]line Внесено: 1000.00 [11:40:03]line СДАЧА: 0.00 [11:40:03]line НСП 1% : 8.85 [11:40:03]line НДС 12% : 106.21 [11:40:03]line Наличными: 1000.00 [11:40:03]line Безнал.: 0.00 [11:40:03]line Место: АЗС № 85 "Партнер Нефть" [11:40:03]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:40:03]line СНО: Общий режим [11:40:03]line Чек 152 20.10.2024 11:40 [11:40:03]line Смена: 193 ФФД: 1.0 [11:40:03]line ЗНМ: 0300000167 [11:40:03]line РНМ: 0000000000156251 [11:40:03]line Версия ККМ: v1.0 [11:40:03]line ФМ: 0000000000963346 [11:40:03]line ФД: 69307 [11:40:03]line ФПД: 130501916935558 [11:40:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114011&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69307&fm=130501916935558&tin=02508201610067®Number=0000000000156251&sum=100000 [11:40:03]OFD Sender: Processing packet 69307 [packets to send 18, broken 17] [11:40:03]ProducePacketName [11:40:03]name=ofd_packets/00069307 [11:40:03]OFD Sender: To server: pG, [11:40:03]CommunicateWithHost lk.salyk.kg:30040 [11:40:03]ConnectInit lk.salyk.kg [11:40:03]written 0, free lines is 4095 [11:40:03]Connected sock=10 [11:40:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 45 1D 07 01 9F 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 1B EC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BB 0E 01 00 35 04 06 00 76 B0 D8 66 C5 86 A4 1E 79 7E F4 D5 F9 0C [11:40:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 4D 68 47 00 29 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BB 0E 01 00 F4 03 04 00 C2 95 14 67 B6 04 01 00 00 8C 6E A3 A3 D2 35 7C A8 [11:40:04]CommunicateWithHost err = 0 [11:40:04]CheckOFDResponse [11:40:04]1017 (14) - 77093643461234 [11:40:04]1041 (16) - 0000000000963346 [11:40:04]1040 (4) - 69307 [11:40:04]1012 (4) - 20.10.2024 05:31 [11:40:04]1206 (1) - 0 [11:40:04]OFD Sender: Remove packet 69307 [11:40:04]ProducePacketName [11:40:04]name=ofd_packets/00069307 [11:40:04]NVStorageDeleteData [11:40:04]Write to MH i2c: 01 00 00 85 D1 56 [11:40:04]Write i2c OK [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: 01 [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: 01 07 00 [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: 01 07 00 85 D1 00 00 00 00 00 FC 0C 65 [11:40:04]RasterBufferAndPrint [11:40:04]line [11:40:04]line [11:40:04]line [11:40:04]line [11:40:04]line [11:40:04]written 0, free lines is 3334 [11:40:04]MH_Cut [11:40:04]Write to MH i2c: D1 01 00 8C D1 01 2F [11:40:04]Write i2c OK [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: D1 [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: D1 01 00 [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: D1 01 00 8C D1 00 2E [11:40:04]Write to MH i2c: 01 00 00 8D D1 5E [11:40:04]Write i2c OK [11:40:04]MH_I2C_Read... [11:40:04]OFD Sender: No OFD packet to send [11:40:04]*** Cut start [11:40:04]*** Partial cut [11:40:04]*** CUTSNS_PIN = 1 [11:40:05]*** CUTSNS_PIN = 0 [11:40:05]*** Brake cut motor [11:40:05]Read from MH i2c: 01 [11:40:05]MH_I2C_Read... [11:40:05]*** Stop cut motor [11:40:05]*** Cut end [11:40:05]Read from MH i2c: 01 07 00 [11:40:05]MH_I2C_Read... [11:40:05]Read from MH i2c: 01 07 00 8D D1 00 00 00 00 00 FF 0F 73 [11:40:05]process_action close_receipt done [11:40:05]requested_data is exist [11:40:05]produce_requested_data [11:40:05]requested_item fm.sn is exist - process it [11:40:05]wFMCommunicate request_size=4 [11:40:05]MH_SAM_APDU [11:40:05]CAPDU: 80 11 00 00 [11:40:05]Write to MH i2c: E2 08 00 8E D1 80 11 00 00 00 00 00 00 D9 [11:40:05]Write i2c OK [11:40:05]MH_I2C_Read... [11:40:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:05]Read from MH i2c: E2 [11:40:05]MH_I2C_Read... [11:40:05]Read from MH i2c: E2 17 00 [11:40:05]MH_I2C_Read... [11:40:05]Read from MH i2c: E2 17 00 8E D1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2B [11:40:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:40:05]wFMCommunicate OK [11:40:05]requested_item fd.num is exist - process it [11:40:05]SAM_PROTO_GetFieldsCounters [11:40:05]wFMCommunicate request_size=4 [11:40:05]MH_SAM_APDU [11:40:05]CAPDU: 80 13 00 00 [11:40:05]Write to MH i2c: E2 08 00 8F D1 80 13 00 00 00 00 00 00 DC [11:40:05]Write i2c OK [11:40:05]MH_I2C_Read... [11:40:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:05]Read from MH i2c: E2 [11:40:05]MH_I2C_Read... [11:40:05]Read from MH i2c: E2 62 00 [11:40:05]MH_I2C_Read... [11:40:05]Read from MH i2c: E2 62 00 8F D1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BB 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [11:40:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BB 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:40:05]wFMCommunicate OK [11:40:05]SAM_PROTO_GetFieldsCounters done [11:40:05]requested_item shift.num is exist - process it [11:40:05]requested_item shift.opened is exist - process it [11:40:05]req_shift_opened [11:40:05]FM_GetShiftState [11:40:05]SAM_PROTO_GetShiftState [11:40:05]wFMCommunicate request_size=4 [11:40:05]MH_SAM_APDU [11:40:05]CAPDU: 80 13 01 00 [11:40:05]Write to MH i2c: E2 08 00 90 D1 80 13 01 00 00 00 00 00 DE [11:40:05]Write i2c OK [11:40:05]MH_I2C_Read... [11:40:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:05]Read from MH i2c: E2 [11:40:05]MH_I2C_Read... [11:40:05]Read from MH i2c: E2 0E 00 [11:40:05]MH_I2C_Read... [11:40:05]Read from MH i2c: E2 0E 00 90 D1 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 E4 [11:40:05]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:40:05]wFMCommunicate OK [11:40:05]SAM_PROTO_GetShiftState done [11:40:05]FM_GetShiftState done [11:40:05]req_shift_opened done [11:40:05]requested_item shift.open_date is exist - process it [11:40:05]req_shift_open_date [11:40:05]req_shift_open_date done [11:40:05]produce_requested_data done [11:40:05]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69307,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [11:40:05]process_action_free close_receipt [11:40:05]json_value_free [11:40:05]json_value_free done [11:40:05]process_json_proto returns [11:40:05]Send response to host [11:40:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69307,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [11:40:05]free response buf [11:40:05]execute_script done [11:40:05]execute_script returns [11:40:05]free content buf [11:40:05]Sock 9.Close socket [11:40:05]Sock 9.Thread stoped [11:40:09]OFD Sender: No OFD packet to send [11:40:11]int [11:40:11]Write to MH i2c: 01 00 00 91 D1 62 [11:40:11]*** FLAG_PRN_PAP1 set [11:40:11]Write i2c OK [11:40:11]MH_I2C_Read... [11:40:11]Read from MH i2c: 01 [11:40:11]MH_I2C_Read... [11:40:11]Read from MH i2c: 01 07 00 [11:40:11]MH_I2C_Read... [11:40:11]Read from MH i2c: 01 07 00 91 D1 00 01 00 00 00 FF 0F 78 [11:40:11]state=0 [11:40:11]No paper [11:40:11]int [11:40:11]Write to MH i2c: 01 00 00 92 D1 63 [11:40:11]*** FLAG_PRN_PAP2 set [11:40:11]Write i2c OK [11:40:11]MH_I2C_Read... [11:40:11]Read from MH i2c: 01 [11:40:11]MH_I2C_Read... [11:40:11]Read from MH i2c: 01 07 00 [11:40:11]MH_I2C_Read... [11:40:11]Read from MH i2c: 01 07 00 92 D1 00 03 00 00 00 FF 0F 7B [11:40:11]state=0 [11:40:11]No paper [11:40:11]Cover opened [11:40:12]int [11:40:12]Write to MH i2c: 01 00 00 93 D1 64 [11:40:12]*** FLAG_PRN_PAP2 reset [11:40:12]Write i2c OK [11:40:12]MH_I2C_Read... [11:40:12]Read from MH i2c: 01 [11:40:12]MH_I2C_Read... [11:40:12]Read from MH i2c: 01 07 00 [11:40:12]MH_I2C_Read... [11:40:12]Read from MH i2c: 01 07 00 93 D1 00 01 00 00 00 FF 0F 7A [11:40:12]state=3 [11:40:12]No paper [11:40:12]Cover closed [11:40:12]int [11:40:12]Write to MH i2c: 01 00 00 94 D1 65 [11:40:12]*** FLAG_PRN_PAP2 set [11:40:12]Write i2c OK [11:40:12]MH_I2C_Read... [11:40:12]Read from MH i2c: 01 [11:40:12]MH_I2C_Read... [11:40:12]Read from MH i2c: 01 07 00 [11:40:12]MH_I2C_Read... [11:40:12]Read from MH i2c: 01 07 00 94 D1 00 03 00 00 00 FF 0F 7D [11:40:12]state=0 [11:40:12]No paper [11:40:12]Cover opened [11:40:12]int [11:40:12]Write to MH i2c: 01 00 00 95 D1 66 [11:40:12]*** FLAG_PRN_PAP2 reset [11:40:12]Write i2c OK [11:40:12]MH_I2C_Read... [11:40:12]Read from MH i2c: 01 [11:40:12]MH_I2C_Read... [11:40:12]Read from MH i2c: 01 07 00 [11:40:12]MH_I2C_Read... [11:40:12]Read from MH i2c: 01 07 00 95 D1 00 01 00 00 00 FF 0F 7C [11:40:12]state=3 [11:40:12]No paper [11:40:12]Cover closed [11:40:12]int [11:40:12]Write to MH i2c: 01 00 00 96 D1 67 [11:40:12]*** FLAG_PRN_PAP2 set [11:40:12]Write i2c OK [11:40:12]MH_I2C_Read... [11:40:12]Read from MH i2c: 01 [11:40:12]MH_I2C_Read... [11:40:12]*** FLAG_PRN_PAP2 reset [11:40:12]Read from MH i2c: 01 07 00 [11:40:12]MH_I2C_Read... [11:40:12]Read from MH i2c: 01 07 00 96 D1 00 01 00 00 00 FF 0F 7D [11:40:12]state=0 [11:40:12]No paper [11:40:14]OFD Sender: No OFD packet to send [11:40:16]int [11:40:16]Write to MH i2c: 01 00 00 97 D1 68 [11:40:16]*** FLAG_PRN_PAP2 set [11:40:16]Write i2c OK [11:40:16]MH_I2C_Read... [11:40:16]Read from MH i2c: 01 [11:40:16]MH_I2C_Read... [11:40:16]Read from MH i2c: 01 07 00 [11:40:16]MH_I2C_Read... [11:40:16]Read from MH i2c: 01 07 00 97 D1 00 03 00 00 00 FF 0F 80 [11:40:16]state=0 [11:40:16]No paper [11:40:16]Cover opened [11:40:16]int [11:40:16]Write to MH i2c: 01 00 00 98 D1 69 [11:40:16]*** FLAG_PRN_PAP2 reset [11:40:16]Write i2c OK [11:40:16]MH_I2C_Read... [11:40:16]Read from MH i2c: 01 [11:40:16]MH_I2C_Read... [11:40:16]Read from MH i2c: 01 07 00 [11:40:16]MH_I2C_Read... [11:40:16]Read from MH i2c: 01 07 00 98 D1 00 01 00 00 00 FF 0F 7F [11:40:16]state=3 [11:40:16]No paper [11:40:16]Cover closed [11:40:16]int [11:40:16]Write to MH i2c: 01 00 00 99 D1 6A [11:40:16]*** FLAG_PRN_PAP2 set [11:40:16]Write i2c OK [11:40:16]MH_I2C_Read... [11:40:16]Read from MH i2c: 01 [11:40:16]MH_I2C_Read... [11:40:16]Read from MH i2c: 01 07 00 [11:40:16]MH_I2C_Read... [11:40:16]Read from MH i2c: 01 07 00 99 D1 00 03 00 00 00 FF 0F 82 [11:40:16]state=0 [11:40:16]No paper [11:40:16]Cover opened [11:40:16]int [11:40:16]Write to MH i2c: 01 00 00 9A D1 6B [11:40:16]*** FLAG_PRN_PAP2 reset [11:40:16]Write i2c OK [11:40:16]MH_I2C_Read... [11:40:16]Read from MH i2c: 01 [11:40:16]MH_I2C_Read... [11:40:16]Read from MH i2c: 01 07 00 [11:40:16]MH_I2C_Read... [11:40:16]Read from MH i2c: 01 07 00 9A D1 00 01 00 00 00 FF 0F 81 [11:40:16]state=3 [11:40:16]No paper [11:40:16]Cover closed [11:40:16]int [11:40:16]Write to MH i2c: 01 00 00 9B D1 6C [11:40:16]*** FLAG_PRN_PAP2 set [11:40:16]Write i2c OK [11:40:16]MH_I2C_Read... [11:40:16]Read from MH i2c: 01 [11:40:16]MH_I2C_Read... [11:40:16]Read from MH i2c: 01 07 00 [11:40:16]MH_I2C_Read... [11:40:16]Read from MH i2c: 01 07 00 9B D1 00 03 00 00 00 FF 0F 84 [11:40:16]state=0 [11:40:16]No paper [11:40:16]Cover opened [11:40:19]OFD Sender: No OFD packet to send [11:40:20]int [11:40:20]Write to MH i2c: 01 00 00 9C D1 6D [11:40:20]*** FLAG_PRN_PAP2 reset [11:40:20]Write i2c OK [11:40:20]MH_I2C_Read... [11:40:20]Read from MH i2c: 01 [11:40:20]MH_I2C_Read... [11:40:20]Read from MH i2c: 01 07 00 [11:40:20]MH_I2C_Read... [11:40:20]Read from MH i2c: 01 07 00 9C D1 00 01 00 00 00 FF 0F 83 [11:40:20]state=3 [11:40:20]No paper [11:40:20]Cover closed [11:40:20]int [11:40:20]Write to MH i2c: 01 00 00 9D D1 6E [11:40:20]*** FLAG_PRN_PAP1 reset [11:40:20]Write i2c OK [11:40:20]MH_I2C_Read... [11:40:20]Read from MH i2c: 01 [11:40:20]MH_I2C_Read... [11:40:20]Read from MH i2c: 01 07 00 [11:40:20]MH_I2C_Read... [11:40:20]Read from MH i2c: 01 07 00 9D D1 00 00 00 00 00 FF 0F 83 [11:40:20]state=0 [11:40:24]OFD Sender: No OFD packet to send [11:40:29]OFD Sender: No OFD packet to send [11:40:34]OFD Sender: No OFD packet to send [11:40:39]OFD Sender: No OFD packet to send [11:40:44]OFD Sender: No OFD packet to send [11:40:49]OFD Sender: No OFD packet to send [11:40:54]OFD Sender: No OFD packet to send [11:40:59]OFD Sender: No OFD packet to send [11:41:04]OFD Sender: No OFD packet to send [11:41:09]OFD Sender: No OFD packet to send [11:41:14]OFD Sender: No OFD packet to send [11:41:19]OFD Sender: No OFD packet to send [11:41:24]OFD Sender: No OFD packet to send [11:41:29]OFD Sender: No OFD packet to send [11:41:34]OFD Sender: No OFD packet to send [11:41:39]OFD Sender: No OFD packet to send [11:41:44]OFD Sender: No OFD packet to send [11:41:49]OFD Sender: No OFD packet to send [11:41:54]OFD Sender: No OFD packet to send [11:41:59]OFD Sender: No OFD packet to send [11:42:04]OFD Sender: No OFD packet to send [11:42:09]accept exits with 8 [11:42:09]New connection [11:42:09]New thread 3067116900 created [11:42:09]Thread 3067260260 joined [11:42:09]Waiting for new connection... [11:42:09] Sock 8.Parse request [11:42:09]Sock 8.Check first char [11:42:09]Sock 8.First char is OK [11:42:09]request: POST /json_proto HTTP/1.0 [11:42:09]Method: POST [11:42:09]URL: /json_proto [11:42:09]Method is POST - this is cgi request [11:42:09]url: /json_proto [11:42:09]query_string will be loaded in cgi processing [11:42:09]execute_cgi json_proto POST (null) [11:42:09]execute_cgi path=json_proto method=POST [11:42:09]POST find Content-Length [11:42:09]Host: 172.17.50.3:8080 [11:42:09]Content-Length: 678 [11:42:09]Content-Type: application/json [11:42:09] [11:42:09]POST finish read [11:42:09]Found Content-Length = 678 [11:42:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:09]execute_script... [11:42:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:09]POST & json_proto [11:42:09]process_json_proto [11:42:09]json parsed OK: [11:42:09]protocol is kg_v1.0 [11:42:09]action value=close_receipt [11:42:09]process_action close_receipt [11:42:09]cmd_close_receipt [11:42:09]MH_GetDate [11:42:09]Write to MH i2c: F0 00 00 9E D1 5E [11:42:09]Write i2c OK [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: F0 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: F0 09 00 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: F0 09 00 9E D1 00 9B EC 14 67 6B 98 1E 66 F0 [11:42:09]GetLastDocTimeStamp 1729424411 [11:42:09]current date 1729424539 [11:42:09]FM_GetShiftState [11:42:09]SAM_PROTO_GetShiftState [11:42:09]wFMCommunicate request_size=4 [11:42:09]MH_SAM_APDU [11:42:09]CAPDU: 80 13 01 00 [11:42:09]Write to MH i2c: E2 08 00 9F D1 80 13 01 00 00 00 00 00 ED [11:42:09]Write i2c OK [11:42:09]MH_I2C_Read... [11:42:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:09]Read from MH i2c: E2 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: E2 0E 00 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: E2 0E 00 9F D1 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 F3 [11:42:09]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:42:09]wFMCommunicate OK [11:42:09]SAM_PROTO_GetShiftState done [11:42:09]FM_GetShiftState done [11:42:09]opened in 1729383220 [11:42:09]opened+sec_in_day 1729469620 [11:42:09]quantity*price = 40006 [11:42:09]sum+1 = 40007 [11:42:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 153 20.10.2024 11:42 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69308 ФПД: 39474719605383 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114219&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69308&fm=39474719605383&tin=02508201610067®Number=0000000000156251&sum=40000 [11:42:10]StoreToDocumentArchive [11:42:10]shift 193 fd 69308 [11:42:10]save to /storage/0193/doc_00069308 [11:42:10]save last doc name /storage/0193/doc_00069308 to /storage/kkm_last_doc_name [11:42:10]save OK [11:42:10]Clear old archive folders... [11:42:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:42:10]tlvbuf is 00584240 [11:42:10]SAM_PROTO_ClearQueue [11:42:10]wFMCommunicate request_size=4 [11:42:10]MH_SAM_APDU [11:42:10]CAPDU: 80 09 00 00 [11:42:10]Write to MH i2c: E2 08 00 AC D1 80 09 00 00 00 00 00 00 EF [11:42:10]Write i2c OK [11:42:10]MH_I2C_Read... [11:42:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:10]Read from MH i2c: E2 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: E2 03 00 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: E2 03 00 AC D1 00 90 00 F1 [11:42:10]RAPDU: 90 00 [11:42:10]wFMCommunicate OK [11:42:10]SAM_PROTO_ClearQueue done [11:42:10]KKMCreateOFDPacket [11:42:10]OFDProtocolAddRootSTLVToBuf [11:42:10]FM_MakeSignedData [11:42:10]FM_MakeSignedData [11:42:10]SAM_PROTO_SignData [11:42:10]wFMCommunicate request_size=4 [11:42:10]MH_SAM_APDU [11:42:10]CAPDU: 80 0D 01 02 [11:42:10]Write to MH i2c: E2 08 00 AD D1 80 0D 01 02 00 00 00 00 F7 [11:42:10]Write i2c OK [11:42:10]MH_I2C_Read... [11:42:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:10]Read from MH i2c: E2 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: E2 03 00 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: E2 03 00 AD D1 00 90 00 F2 [11:42:10]RAPDU: 90 00 [11:42:10]wFMCommunicate OK [11:42:10]wFMCommunicate request_size=255 [11:42:10]MH_SAM_APDU [11:42:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 9B EC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BC 0E 01 00 35 04 06 00 23 [11:42:10]Write to MH i2c: E2 02 01 AE D1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 9B EC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BC 0E 01 00 35 04 06 00 23 00 00 99 [11:42:10]Write i2c OK [11:42:10]MH_I2C_Read... [11:42:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:10]Read from MH i2c: E2 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: E2 03 00 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: E2 03 00 AE D1 00 90 00 F3 [11:42:10]RAPDU: 90 00 [11:42:10]wFMCommunicate OK [11:42:10]wFMCommunicate request_size=10 [11:42:10]MH_SAM_APDU [11:42:10]CAPDU: 80 0D 02 02 05 E6 EC A3 C2 87 [11:42:10]Write to MH i2c: E2 0D 00 AF D1 80 0D 02 02 05 00 E6 EC A3 C2 87 00 00 C2 [11:42:10]Write i2c OK [11:42:10]MH_I2C_Read... [11:42:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:10]Read from MH i2c: E2 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: E2 03 00 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: E2 03 00 AF D1 00 90 00 F4 [11:42:10]RAPDU: 90 00 [11:42:10]wFMCommunicate OK [11:42:10]wFMCommunicate request_size=4 [11:42:10]MH_SAM_APDU [11:42:10]CAPDU: 80 0D 03 02 [11:42:10]Write to MH i2c: E2 08 00 B0 D1 80 0D 03 02 00 00 00 00 FC [11:42:10]Write i2c OK [11:42:10]MH_I2C_Read... [11:42:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:10]Read from MH i2c: E2 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: E2 0B 00 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: E2 0B 00 B0 D1 00 B0 A3 EC F4 C1 62 5D BB 90 00 6B [11:42:10]RAPDU: B0 A3 EC F4 C1 62 5D BB 90 00 [11:42:10]wFMCommunicate OK [11:42:10]SAM_PROTO_SignData done [11:42:10]FM_MakeSignedData done [11:42:10]CreateOFDProtocolMessage [11:42:10]wFMCommunicate request_size=4 [11:42:10]MH_SAM_APDU [11:42:10]CAPDU: 80 11 00 00 [11:42:10]Write to MH i2c: E2 08 00 B1 D1 80 11 00 00 00 00 00 00 FC [11:42:10]Write i2c OK [11:42:10]MH_I2C_Read... [11:42:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:10]Read from MH i2c: E2 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: E2 17 00 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: E2 17 00 B1 D1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4E [11:42:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:42:10]wFMCommunicate OK [11:42:10]CreateOFDProtocolMessage done [11:42:10]OFDSenderStorePacket 69308 [11:42:10]StoreOFDPacket docnum=69308 [11:42:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A4 DB 07 01 8A E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 9B EC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BC 0E 01 00 35 04 06 00 23 E6 EC A3 C2 87 B0 A3 EC F4 C1 62 5D BB [11:42:10]CheckFolder [11:42:10]dirname=/storage/ofd_packets [11:42:10]CheckFolder done [11:42:10]ProducePacketName [11:42:10]name=ofd_packets/00069308 [11:42:10]NVStorageSaveData ofd_packets/00069308 [11:42:10]File name is /storage/ofd_packets/00069308 [11:42:10]Write 301 bytes [11:42:10]NVStorageSaveData done [11:42:10]OFDSenderStorePacket done [11:42:10]KKMCreateOFDPacket done [11:42:10]NVStorageSaveData kkm_last_timestamp [11:42:10]File name is /storage/kkm_last_timestamp [11:42:10]Write 4 bytes [11:42:10]NVStorageSaveData done [11:42:10]ExternCall_PrintAddStr [11:42:10]wPrintStart [11:42:10]Write to MH i2c: 01 00 00 B2 D1 83 [11:42:10]Write i2c OK [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: 01 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: 01 07 00 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: 01 07 00 B2 D1 00 00 00 00 00 FF 0F 98 [11:42:10]RasterBufferAndPrint [11:42:10]line Счет N : (1)2885025 [11:42:10]line ИНН: 02508201610067 [11:42:10]line Контрольно-Кассовый Чек [11:42:10]line ПРОДАЖА [11:42:10]line ТРК (МРК, ГНК) : 32 [11:42:10]line Товар: 2710124130 [11:42:10]line Аи-92-К-5 [11:42:10]line 5.980 * 66.90 [11:42:10]line = 400.06 [11:42:10]line НДС 12% НСП 1% [11:42:10]line > о реализуемом товаре [11:42:10]line ОКРУГЛЕНИЕ: -0.06 [11:42:10]line ИТОГО: 400.00 [11:42:10]line Внесено: 400.00 [11:42:10]line СДАЧА: 0.00 [11:42:10]line НСП 1% : 3.54 [11:42:10]line НДС 12% : 42.48 [11:42:10]line Наличными: 400.00 [11:42:10]line Безнал.: 0.00 [11:42:10]line Место: АЗС № 85 "Партнер Нефть" [11:42:10]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:42:10]line СНО: Общий режим [11:42:10]line Чек 153 20.10.2024 11:42 [11:42:10]line Смена: 193 ФФД: 1.0 [11:42:10]line ЗНМ: 0300000167 [11:42:10]line РНМ: 0000000000156251 [11:42:10]line Версия ККМ: v1.0 [11:42:10]line ФМ: 0000000000963346 [11:42:10]line ФД: 69308 [11:42:10]line ФПД: 39474719605383 [11:42:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114219&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69308&fm=39474719605383&tin=02508201610067®Number=0000000000156251&sum=40000 [11:42:11]OFD Sender: Processing packet 69308 [packets to send 18, broken 17] [11:42:11]ProducePacketName [11:42:11]name=ofd_packets/00069308 [11:42:11]OFD Sender: To server: pG, [11:42:11]CommunicateWithHost lk.salyk.kg:30040 [11:42:11]ConnectInit lk.salyk.kg [11:42:11]written 0, free lines is 4095 [11:42:11]Connected sock=10 [11:42:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A4 DB 07 01 8A E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 9B EC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BC 0E 01 00 35 04 06 00 23 E6 EC A3 C2 87 B0 A3 EC F4 C1 62 5D BB [11:42:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 D5 71 47 00 E9 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BC 0E 01 00 F4 03 04 00 42 96 14 67 B6 04 01 00 00 0A 73 0C B2 CA 8B 80 8F [11:42:11]CommunicateWithHost err = 0 [11:42:11]CheckOFDResponse [11:42:11]1017 (14) - 77093643461234 [11:42:11]1041 (16) - 0000000000963346 [11:42:11]1040 (4) - 69308 [11:42:11]1012 (4) - 20.10.2024 05:33 [11:42:11]1206 (1) - 0 [11:42:11]OFD Sender: Remove packet 69308 [11:42:11]ProducePacketName [11:42:11]name=ofd_packets/00069308 [11:42:11]NVStorageDeleteData [11:42:11]Write to MH i2c: 01 00 00 DD D1 AE [11:42:11]Write i2c OK [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: 01 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: 01 07 00 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: 01 07 00 DD D1 00 00 00 00 00 08 0D CA [11:42:11]RasterBufferAndPrint [11:42:11]line [11:42:11]line [11:42:11]line [11:42:11]line [11:42:11]line [11:42:11]written 0, free lines is 3342 [11:42:11]MH_Cut [11:42:11]Write to MH i2c: D1 01 00 E4 D1 01 87 [11:42:11]Write i2c OK [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: D1 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: D1 01 00 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: D1 01 00 E4 D1 00 86 [11:42:11]Write to MH i2c: 01 00 00 E5 D1 B6 [11:42:11]Write i2c OK [11:42:11]MH_I2C_Read... [11:42:12]OFD Sender: No OFD packet to send [11:42:12]*** Cut start [11:42:12]*** Partial cut [11:42:12]*** CUTSNS_PIN = 1 [11:42:12]*** CUTSNS_PIN = 0 [11:42:12]*** Brake cut motor [11:42:13]Read from MH i2c: 01 [11:42:13]MH_I2C_Read... [11:42:13]*** Stop cut motor [11:42:13]*** Cut end [11:42:13]Read from MH i2c: 01 07 00 [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: 01 07 00 E5 D1 00 00 00 00 00 FF 0F CB [11:42:13]process_action close_receipt done [11:42:13]requested_data is exist [11:42:13]produce_requested_data [11:42:13]requested_item fm.sn is exist - process it [11:42:13]wFMCommunicate request_size=4 [11:42:13]MH_SAM_APDU [11:42:13]CAPDU: 80 11 00 00 [11:42:13]Write to MH i2c: E2 08 00 E6 D1 80 11 00 00 00 00 00 00 31 [11:42:13]Write i2c OK [11:42:13]MH_I2C_Read... [11:42:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:13]Read from MH i2c: E2 [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: E2 17 00 [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: E2 17 00 E6 D1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 83 [11:42:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:42:13]wFMCommunicate OK [11:42:13]requested_item fd.num is exist - process it [11:42:13]SAM_PROTO_GetFieldsCounters [11:42:13]wFMCommunicate request_size=4 [11:42:13]MH_SAM_APDU [11:42:13]CAPDU: 80 13 00 00 [11:42:13]Write to MH i2c: E2 08 00 E7 D1 80 13 00 00 00 00 00 00 34 [11:42:13]Write i2c OK [11:42:13]MH_I2C_Read... [11:42:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:13]Read from MH i2c: E2 [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: E2 62 00 [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: E2 62 00 E7 D1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BC 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [11:42:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BC 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:42:13]wFMCommunicate OK [11:42:13]SAM_PROTO_GetFieldsCounters done [11:42:13]requested_item shift.num is exist - process it [11:42:13]requested_item shift.opened is exist - process it [11:42:13]req_shift_opened [11:42:13]FM_GetShiftState [11:42:13]SAM_PROTO_GetShiftState [11:42:13]wFMCommunicate request_size=4 [11:42:13]MH_SAM_APDU [11:42:13]CAPDU: 80 13 01 00 [11:42:13]Write to MH i2c: E2 08 00 E8 D1 80 13 01 00 00 00 00 00 36 [11:42:13]Write i2c OK [11:42:13]MH_I2C_Read... [11:42:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:13]Read from MH i2c: E2 [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: E2 0E 00 [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: E2 0E 00 E8 D1 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 3C [11:42:13]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:42:13]wFMCommunicate OK [11:42:13]SAM_PROTO_GetShiftState done [11:42:13]FM_GetShiftState done [11:42:13]req_shift_opened done [11:42:13]requested_item shift.open_date is exist - process it [11:42:13]req_shift_open_date [11:42:13]req_shift_open_date done [11:42:13]produce_requested_data done [11:42:13]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69308,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [11:42:13]process_action_free close_receipt [11:42:13]json_value_free [11:42:13]json_value_free done [11:42:13]process_json_proto returns [11:42:13]Send response to host [11:42:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69308,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [11:42:13]free response buf [11:42:13]execute_script done [11:42:13]execute_script returns [11:42:13]free content buf [11:42:13]Sock 8.Close socket [11:42:13]Sock 8.Thread stoped [11:42:17]OFD Sender: No OFD packet to send [11:42:22]OFD Sender: No OFD packet to send [11:42:27]OFD Sender: No OFD packet to send [11:42:32]OFD Sender: No OFD packet to send [11:42:37]OFD Sender: No OFD packet to send [11:42:42]OFD Sender: No OFD packet to send [11:42:47]OFD Sender: No OFD packet to send [11:42:52]OFD Sender: No OFD packet to send [11:42:52]accept exits with 9 [11:42:52]New connection [11:42:52]New thread 3067260260 created [11:42:52]Thread 3067116900 joined [11:42:52]Waiting for new connection... [11:42:52] Sock 9.Parse request [11:42:52]Sock 9.Check first char [11:42:52]Sock 9.First char is OK [11:42:52]request: POST /json_proto HTTP/1.0 [11:42:52]Method: POST [11:42:52]URL: /json_proto [11:42:52]Method is POST - this is cgi request [11:42:52]url: /json_proto [11:42:52]query_string will be loaded in cgi processing [11:42:52]execute_cgi json_proto POST (null) [11:42:52]execute_cgi path=json_proto method=POST [11:42:52]POST find Content-Length [11:42:52]Host: 172.17.50.3:8080 [11:42:52]Content-Length: 683 [11:42:52]Content-Type: application/json [11:42:52] [11:42:52]POST finish read [11:42:52]Found Content-Length = 683 [11:42:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:52]execute_script... [11:42: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)2885024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:52]POST & json_proto [11:42:52]process_json_proto [11:42:52]json parsed OK: [11:42:52]protocol is kg_v1.0 [11:42:52]action value=close_receipt [11:42:52]process_action close_receipt [11:42:52]cmd_close_receipt [11:42:52]MH_GetDate [11:42:52]Write to MH i2c: F0 00 00 E9 D1 A9 [11:42:52]Write i2c OK [11:42:52]MH_I2C_Read... [11:42:52]Read from MH i2c: F0 [11:42:52]MH_I2C_Read... [11:42:52]Read from MH i2c: F0 09 00 [11:42:52]MH_I2C_Read... [11:42:52]Read from MH i2c: F0 09 00 E9 D1 00 C6 EC 14 67 6B 98 1E 66 66 [11:42:52]GetLastDocTimeStamp 1729424539 [11:42:52]current date 1729424582 [11:42:52]FM_GetShiftState [11:42:52]SAM_PROTO_GetShiftState [11:42:52]wFMCommunicate request_size=4 [11:42:52]MH_SAM_APDU [11:42:52]CAPDU: 80 13 01 00 [11:42:52]Write to MH i2c: E2 08 00 EA D1 80 13 01 00 00 00 00 00 38 [11:42:52]Write i2c OK [11:42:52]MH_I2C_Read... [11:42:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:52]Read from MH i2c: E2 [11:42:52]MH_I2C_Read... [11:42:52]Read from MH i2c: E2 0E 00 [11:42:52]MH_I2C_Read... [11:42:52]Read from MH i2c: E2 0E 00 EA D1 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 3E [11:42:52]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:42:52]wFMCommunicate OK [11:42:52]SAM_PROTO_GetShiftState done [11:42:52]FM_GetShiftState done [11:42:52]opened in 1729383220 [11:42:52]opened+sec_in_day 1729469620 [11:42:52]quantity*price = 200031 [11:42:52]sum+1 = 200032 [11:42:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 154 20.10.2024 11:43 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69309 ФПД: 166561054424473 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114302&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69309&fm=166561054424473&tin=02508201610067®Number=0000000000156251&sum=200000 [11:42:53]StoreToDocumentArchive [11:42:53]shift 193 fd 69309 [11:42:53]save to /storage/0193/doc_00069309 [11:42:53]save last doc name /storage/0193/doc_00069309 to /storage/kkm_last_doc_name [11:42:53]save OK [11:42:53]Clear old archive folders... [11:42:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:42:53]tlvbuf is 00451830 [11:42:53]SAM_PROTO_ClearQueue [11:42:53]wFMCommunicate request_size=4 [11:42:53]MH_SAM_APDU [11:42:53]CAPDU: 80 09 00 00 [11:42:53]Write to MH i2c: E2 08 00 F7 D1 80 09 00 00 00 00 00 00 3A [11:42:53]Write i2c OK [11:42:53]MH_I2C_Read... [11:42:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:53]Read from MH i2c: E2 [11:42:53]MH_I2C_Read... [11:42:53]Read from MH i2c: E2 03 00 [11:42:53]MH_I2C_Read... [11:42:53]Read from MH i2c: E2 03 00 F7 D1 00 90 00 3C [11:42:53]RAPDU: 90 00 [11:42:53]wFMCommunicate OK [11:42:53]SAM_PROTO_ClearQueue done [11:42:53]KKMCreateOFDPacket [11:42:53]OFDProtocolAddRootSTLVToBuf [11:42:53]FM_MakeSignedData [11:42:53]FM_MakeSignedData [11:42:53]SAM_PROTO_SignData [11:42:53]wFMCommunicate request_size=4 [11:42:53]MH_SAM_APDU [11:42:53]CAPDU: 80 0D 01 02 [11:42:53]Write to MH i2c: E2 08 00 F8 D1 80 0D 01 02 00 00 00 00 42 [11:42:53]Write i2c OK [11:42:53]MH_I2C_Read... [11:42:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:53]Read from MH i2c: E2 [11:42:53]MH_I2C_Read... [11:42:53]Read from MH i2c: E2 03 00 [11:42:53]MH_I2C_Read... [11:42:53]Read from MH i2c: E2 03 00 F8 D1 00 90 00 3D [11:42:53]RAPDU: 90 00 [11:42:53]wFMCommunicate OK [11:42:53]wFMCommunicate request_size=255 [11:42:53]MH_SAM_APDU [11:42:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 C6 EC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BD 0E 01 00 35 04 06 00 97 [11:42:53]Write to MH i2c: E2 02 01 F9 D1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 C6 EC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BD 0E 01 00 35 04 06 00 97 00 00 F8 [11:42:53]Write i2c OK [11:42:53]MH_I2C_Read... [11:42:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:54]Read from MH i2c: E2 [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: E2 03 00 [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: E2 03 00 F9 D1 00 90 00 3E [11:42:54]RAPDU: 90 00 [11:42:54]wFMCommunicate OK [11:42:54]wFMCommunicate request_size=10 [11:42:54]MH_SAM_APDU [11:42:54]CAPDU: 80 0D 02 02 05 7C 84 7B 7D 99 [11:42:54]Write to MH i2c: E2 0D 00 FA D1 80 0D 02 02 05 00 7C 84 7B 7D 99 00 00 E0 [11:42:54]Write i2c OK [11:42:54]MH_I2C_Read... [11:42:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:54]Read from MH i2c: E2 [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: E2 03 00 [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: E2 03 00 FA D1 00 90 00 3F [11:42:54]RAPDU: 90 00 [11:42:54]wFMCommunicate OK [11:42:54]wFMCommunicate request_size=4 [11:42:54]MH_SAM_APDU [11:42:54]CAPDU: 80 0D 03 02 [11:42:54]Write to MH i2c: E2 08 00 FB D1 80 0D 03 02 00 00 00 00 47 [11:42:54]Write i2c OK [11:42:54]MH_I2C_Read... [11:42:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:54]Read from MH i2c: E2 [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: E2 0B 00 [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: E2 0B 00 FB D1 00 67 BC CA 84 41 A4 8E 76 90 00 A2 [11:42:54]RAPDU: 67 BC CA 84 41 A4 8E 76 90 00 [11:42:54]wFMCommunicate OK [11:42:54]SAM_PROTO_SignData done [11:42:54]FM_MakeSignedData done [11:42:54]CreateOFDProtocolMessage [11:42:54]wFMCommunicate request_size=4 [11:42:54]MH_SAM_APDU [11:42:54]CAPDU: 80 11 00 00 [11:42:54]Write to MH i2c: E2 08 00 FC D1 80 11 00 00 00 00 00 00 47 [11:42:54]Write i2c OK [11:42:54]MH_I2C_Read... [11:42:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:54]Read from MH i2c: E2 [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: E2 17 00 [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: E2 17 00 FC D1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 99 [11:42:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:42:54]wFMCommunicate OK [11:42:54]CreateOFDProtocolMessage done [11:42:54]OFDSenderStorePacket 69309 [11:42:54]StoreOFDPacket docnum=69309 [11:42:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 0C E3 07 01 32 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 C6 EC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BD 0E 01 00 35 04 06 00 97 7C 84 7B 7D 99 67 BC CA 84 41 A4 8E 76 [11:42:54]CheckFolder [11:42:54]dirname=/storage/ofd_packets [11:42:54]CheckFolder done [11:42:54]ProducePacketName [11:42:54]name=ofd_packets/00069309 [11:42:54]NVStorageSaveData ofd_packets/00069309 [11:42:54]File name is /storage/ofd_packets/00069309 [11:42:54]Write 301 bytes [11:42:54]NVStorageSaveData done [11:42:54]OFDSenderStorePacket done [11:42:54]KKMCreateOFDPacket done [11:42:54]NVStorageSaveData kkm_last_timestamp [11:42:54]File name is /storage/kkm_last_timestamp [11:42:54]Write 4 bytes [11:42:54]NVStorageSaveData done [11:42:54]ExternCall_PrintAddStr [11:42:54]wPrintStart [11:42:54]Write to MH i2c: 01 00 00 FD D1 CE [11:42:54]Write i2c OK [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: 01 [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: 01 07 00 [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: 01 07 00 FD D1 00 00 00 00 00 FF 0F E3 [11:42:54]RasterBufferAndPrint [11:42:54]line Счет N : (1)2885024 [11:42:54]line ИНН: 02508201610067 [11:42:54]line Контрольно-Кассовый Чек [11:42:54]line ПРОДАЖА [11:42:54]line ТРК (МРК, ГНК) : 42 [11:42:54]line Товар: 2710124130 [11:42:54]line Аи-92-К-5 [11:42:54]line 29.900 * 66.90 [11:42:54]line = 2000.31 [11:42:54]line НДС 12% НСП 1% [11:42:54]line > о реализуемом товаре [11:42:54]line ОКРУГЛЕНИЕ: -0.31 [11:42:54]line ИТОГО: 2000.00 [11:42:54]line Внесено: 2000.00 [11:42:54]line СДАЧА: 0.00 [11:42:54]line НСП 1% : 17.70 [11:42:54]line НДС 12% : 212.42 [11:42:54]line Наличными: 2000.00 [11:42:54]line Безнал.: 0.00 [11:42:54]line Место: АЗС № 85 "Партнер Нефть" [11:42:54]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:42:54]line СНО: Общий режим [11:42:54]line Чек 154 20.10.2024 11:43 [11:42:54]line Смена: 193 ФФД: 1.0 [11:42:54]line ЗНМ: 0300000167 [11:42:54]line РНМ: 0000000000156251 [11:42:54]line Версия ККМ: v1.0 [11:42:54]line ФМ: 0000000000963346 [11:42:54]line ФД: 69309 [11:42:54]line ФПД: 166561054424473 [11:42:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114302&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69309&fm=166561054424473&tin=02508201610067®Number=0000000000156251&sum=200000 [11:42:54]OFD Sender: Processing packet 69309 [packets to send 18, broken 17] [11:42:54]ProducePacketName [11:42:54]name=ofd_packets/00069309 [11:42:54]OFD Sender: To server: pG, [11:42:54]CommunicateWithHost lk.salyk.kg:30040 [11:42:54]ConnectInit lk.salyk.kg [11:42:54]written 0, free lines is 4095 [11:42:54]Connected sock=10 [11:42:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 0C E3 07 01 32 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 C6 EC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BD 0E 01 00 35 04 06 00 97 7C 84 7B 7D 99 67 BC CA 84 41 A4 8E 76 [11:42:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 D9 78 47 00 5C 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BD 0E 01 00 F4 03 04 00 6D 96 14 67 B6 04 01 00 00 F8 BA 43 20 25 A4 D2 95 [11:42:55]CommunicateWithHost err = 0 [11:42:55]CheckOFDResponse [11:42:55]1017 (14) - 77093643461234 [11:42:55]1041 (16) - 0000000000963346 [11:42:55]1040 (4) - 69309 [11:42:55]1012 (4) - 20.10.2024 05:34 [11:42:55]1206 (1) - 0 [11:42:55]OFD Sender: Remove packet 69309 [11:42:55]ProducePacketName [11:42:55]name=ofd_packets/00069309 [11:42:55]NVStorageDeleteData [11:42:55]Write to MH i2c: 01 00 00 28 D2 FA [11:42:55]Write i2c OK [11:42:55]MH_I2C_Read... [11:42:55]Read from MH i2c: 01 [11:42:55]MH_I2C_Read... [11:42:55]Read from MH i2c: 01 07 00 [11:42:55]MH_I2C_Read... [11:42:55]Read from MH i2c: 01 07 00 28 D2 00 00 00 00 00 F5 0C 02 [11:42:55]RasterBufferAndPrint [11:42:55]line [11:42:55]line [11:42:55]line [11:42:55]line [11:42:55]line [11:42:55]written 0, free lines is 3324 [11:42:55]MH_Cut [11:42:55]Write to MH i2c: D1 01 00 2F D2 01 D3 [11:42:55]Write i2c OK [11:42:55]MH_I2C_Read... [11:42:55]Read from MH i2c: D1 [11:42:55]MH_I2C_Read... [11:42:55]Read from MH i2c: D1 01 00 [11:42:55]MH_I2C_Read... [11:42:55]Read from MH i2c: D1 01 00 2F D2 00 D2 [11:42:55]Write to MH i2c: 01 00 00 30 D2 02 [11:42:55]Write i2c OK [11:42:55]MH_I2C_Read... [11:42:55]OFD Sender: No OFD packet to send [11:42:55]*** Cut start [11:42:55]*** Partial cut [11:42:55]*** CUTSNS_PIN = 1 [11:42:55]*** CUTSNS_PIN = 0 [11:42:56]*** Brake cut motor [11:42:56]Read from MH i2c: 01 [11:42:56]MH_I2C_Read... [11:42:56]*** Stop cut motor [11:42:56]*** Cut end [11:42:56]Read from MH i2c: 01 07 00 [11:42:56]MH_I2C_Read... [11:42:56]Read from MH i2c: 01 07 00 30 D2 00 00 00 00 00 FF 0F 17 [11:42:56]process_action close_receipt done [11:42:56]requested_data is exist [11:42:56]produce_requested_data [11:42:56]requested_item fm.sn is exist - process it [11:42:56]wFMCommunicate request_size=4 [11:42:56]MH_SAM_APDU [11:42:56]CAPDU: 80 11 00 00 [11:42:56]Write to MH i2c: E2 08 00 31 D2 80 11 00 00 00 00 00 00 7D [11:42:56]Write i2c OK [11:42:56]MH_I2C_Read... [11:42:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:56]Read from MH i2c: E2 [11:42:56]MH_I2C_Read... [11:42:56]Read from MH i2c: E2 17 00 [11:42:56]MH_I2C_Read... [11:42:56]Read from MH i2c: E2 17 00 31 D2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CF [11:42:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:42:56]wFMCommunicate OK [11:42:56]requested_item fd.num is exist - process it [11:42:56]SAM_PROTO_GetFieldsCounters [11:42:56]wFMCommunicate request_size=4 [11:42:56]MH_SAM_APDU [11:42:56]CAPDU: 80 13 00 00 [11:42:56]Write to MH i2c: E2 08 00 32 D2 80 13 00 00 00 00 00 00 80 [11:42:56]Write i2c OK [11:42:56]MH_I2C_Read... [11:42:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:56]Read from MH i2c: E2 [11:42:56]MH_I2C_Read... [11:42:56]Read from MH i2c: E2 62 00 [11:42:56]MH_I2C_Read... [11:42:56]Read from MH i2c: E2 62 00 32 D2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BD 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [11:42:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BD 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:42:56]wFMCommunicate OK [11:42:56]SAM_PROTO_GetFieldsCounters done [11:42:56]requested_item shift.num is exist - process it [11:42:56]requested_item shift.opened is exist - process it [11:42:56]req_shift_opened [11:42:56]FM_GetShiftState [11:42:56]SAM_PROTO_GetShiftState [11:42:56]wFMCommunicate request_size=4 [11:42:56]MH_SAM_APDU [11:42:56]CAPDU: 80 13 01 00 [11:42:56]Write to MH i2c: E2 08 00 33 D2 80 13 01 00 00 00 00 00 82 [11:42:56]Write i2c OK [11:42:56]MH_I2C_Read... [11:42:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:56]Read from MH i2c: E2 [11:42:56]MH_I2C_Read... [11:42:56]Read from MH i2c: E2 0E 00 [11:42:56]MH_I2C_Read... [11:42:56]Read from MH i2c: E2 0E 00 33 D2 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 88 [11:42:56]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:42:56]wFMCommunicate OK [11:42:56]SAM_PROTO_GetShiftState done [11:42:56]FM_GetShiftState done [11:42:56]req_shift_opened done [11:42:56]requested_item shift.open_date is exist - process it [11:42:56]req_shift_open_date [11:42:56]req_shift_open_date done [11:42:56]produce_requested_data done [11:42:56]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69309,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [11:42:56]process_action_free close_receipt [11:42:56]json_value_free [11:42:56]json_value_free done [11:42:56]process_json_proto returns [11:42:56]Send response to host [11:42:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69309,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [11:42:56]free response buf [11:42:56]execute_script done [11:42:56]execute_script returns [11:42:56]free content buf [11:42:56]Sock 9.Close socket [11:42:56]Sock 9.Thread stoped [11:43:00]OFD Sender: No OFD packet to send [11:43:05]OFD Sender: No OFD packet to send [11:43:05]accept exits with 8 [11:43:05]New connection [11:43:05]New thread 3067116900 created [11:43:05]Thread 3067260260 joined [11:43:05]Waiting for new connection... [11:43:05] Sock 8.Parse request [11:43:05]Sock 8.Check first char [11:43:05]Sock 8.First char is OK [11:43:05]request: POST /json_proto HTTP/1.0 [11:43:05]Method: POST [11:43:05]URL: /json_proto [11:43:05]Method is POST - this is cgi request [11:43:05]url: /json_proto [11:43:05]query_string will be loaded in cgi processing [11:43:05]execute_cgi json_proto POST (null) [11:43:05]execute_cgi path=json_proto method=POST [11:43:05]POST find Content-Length [11:43:05]Host: 172.17.50.3:8080 [11:43:05]Content-Length: 679 [11:43:05]Content-Type: application/json [11:43:05] [11:43:05]POST finish read [11:43:05]Found Content-Length = 679 [11:43:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:05]execute_script... [11:43: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)2885026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:05]POST & json_proto [11:43:05]process_json_proto [11:43:05]json parsed OK: [11:43:05]protocol is kg_v1.0 [11:43:05]action value=close_receipt [11:43:05]process_action close_receipt [11:43:05]cmd_close_receipt [11:43:05]MH_GetDate [11:43:05]Write to MH i2c: F0 00 00 34 D2 F5 [11:43:05]Write i2c OK [11:43:05]MH_I2C_Read... [11:43:05]Read from MH i2c: F0 [11:43:05]MH_I2C_Read... [11:43:05]Read from MH i2c: F0 09 00 [11:43:05]MH_I2C_Read... [11:43:05]Read from MH i2c: F0 09 00 34 D2 00 D4 EC 14 67 6B 98 1E 66 C0 [11:43:05]GetLastDocTimeStamp 1729424582 [11:43:05]current date 1729424596 [11:43:05]FM_GetShiftState [11:43:05]SAM_PROTO_GetShiftState [11:43:05]wFMCommunicate request_size=4 [11:43:05]MH_SAM_APDU [11:43:05]CAPDU: 80 13 01 00 [11:43:05]Write to MH i2c: E2 08 00 35 D2 80 13 01 00 00 00 00 00 84 [11:43:05]Write i2c OK [11:43:05]MH_I2C_Read... [11:43:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:05]Read from MH i2c: E2 [11:43:05]MH_I2C_Read... [11:43:05]Read from MH i2c: E2 0E 00 [11:43:05]MH_I2C_Read... [11:43:05]Read from MH i2c: E2 0E 00 35 D2 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 8A [11:43:05]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:43:05]wFMCommunicate OK [11:43:05]SAM_PROTO_GetShiftState done [11:43:05]FM_GetShiftState done [11:43:05]opened in 1729383220 [11:43:05]opened+sec_in_day 1729469620 [11:43:05]quantity*price = 80061 [11:43:05]sum+1 = 80063 [11:43:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 155 20.10.2024 11:43 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69310 ФПД: 252161009376830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114316&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69310&fm=252161009376830&tin=02508201610067®Number=0000000000156251&sum=80000 [11:43:07]StoreToDocumentArchive [11:43:07]shift 193 fd 69310 [11:43:07]save to /storage/0193/doc_00069310 [11:43:07]save last doc name /storage/0193/doc_00069310 to /storage/kkm_last_doc_name [11:43:07]save OK [11:43:07]Clear old archive folders... [11:43:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:43:07]tlvbuf is 0079EB80 [11:43:07]SAM_PROTO_ClearQueue [11:43:07]wFMCommunicate request_size=4 [11:43:07]MH_SAM_APDU [11:43:07]CAPDU: 80 09 00 00 [11:43:07]Write to MH i2c: E2 08 00 42 D2 80 09 00 00 00 00 00 00 86 [11:43:07]Write i2c OK [11:43:07]MH_I2C_Read... [11:43:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:07]Read from MH i2c: E2 [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: E2 03 00 [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: E2 03 00 42 D2 00 90 00 88 [11:43:07]RAPDU: 90 00 [11:43:07]wFMCommunicate OK [11:43:07]SAM_PROTO_ClearQueue done [11:43:07]KKMCreateOFDPacket [11:43:07]OFDProtocolAddRootSTLVToBuf [11:43:07]FM_MakeSignedData [11:43:07]FM_MakeSignedData [11:43:07]SAM_PROTO_SignData [11:43:07]wFMCommunicate request_size=4 [11:43:07]MH_SAM_APDU [11:43:07]CAPDU: 80 0D 01 02 [11:43:07]Write to MH i2c: E2 08 00 43 D2 80 0D 01 02 00 00 00 00 8E [11:43:07]Write i2c OK [11:43:07]MH_I2C_Read... [11:43:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:07]Read from MH i2c: E2 [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: E2 03 00 [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: E2 03 00 43 D2 00 90 00 89 [11:43:07]RAPDU: 90 00 [11:43:07]wFMCommunicate OK [11:43:07]wFMCommunicate request_size=255 [11:43:07]MH_SAM_APDU [11:43: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 D4 EC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BE 0E 01 00 35 04 06 00 E5 [11:43:07]Write to MH i2c: E2 02 01 44 D2 80 0D 02 02 FA 00 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 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 D4 EC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BE 0E 01 00 35 04 06 00 E5 00 00 CD [11:43:07]Write i2c OK [11:43:07]MH_I2C_Read... [11:43:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:07]Read from MH i2c: E2 [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: E2 03 00 [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: E2 03 00 44 D2 00 90 00 8A [11:43:07]RAPDU: 90 00 [11:43:07]wFMCommunicate OK [11:43:07]wFMCommunicate request_size=10 [11:43:07]MH_SAM_APDU [11:43:07]CAPDU: 80 0D 02 02 05 56 CF 63 DE 3E [11:43:07]Write to MH i2c: E2 0D 00 45 D2 80 0D 02 02 05 00 56 CF 63 DE 3E 00 00 3F [11:43:07]Write i2c OK [11:43:07]MH_I2C_Read... [11:43:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:07]Read from MH i2c: E2 [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: E2 03 00 [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: E2 03 00 45 D2 00 90 00 8B [11:43:07]RAPDU: 90 00 [11:43:07]wFMCommunicate OK [11:43:07]wFMCommunicate request_size=4 [11:43:07]MH_SAM_APDU [11:43:07]CAPDU: 80 0D 03 02 [11:43:07]Write to MH i2c: E2 08 00 46 D2 80 0D 03 02 00 00 00 00 93 [11:43:07]Write i2c OK [11:43:07]MH_I2C_Read... [11:43:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:07]Read from MH i2c: E2 [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: E2 0B 00 [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: E2 0B 00 46 D2 00 0E D5 B9 7B 99 08 8A 35 90 00 0B [11:43:07]RAPDU: 0E D5 B9 7B 99 08 8A 35 90 00 [11:43:07]wFMCommunicate OK [11:43:07]SAM_PROTO_SignData done [11:43:07]FM_MakeSignedData done [11:43:07]CreateOFDProtocolMessage [11:43:07]wFMCommunicate request_size=4 [11:43:07]MH_SAM_APDU [11:43:07]CAPDU: 80 11 00 00 [11:43:07]Write to MH i2c: E2 08 00 47 D2 80 11 00 00 00 00 00 00 93 [11:43:07]Write i2c OK [11:43:07]MH_I2C_Read... [11:43:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:07]Read from MH i2c: E2 [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: E2 17 00 [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: E2 17 00 47 D2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E5 [11:43:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:43:07]wFMCommunicate OK [11:43:07]CreateOFDProtocolMessage done [11:43:07]OFDSenderStorePacket 69310 [11:43:07]StoreOFDPacket docnum=69310 [11:43:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C8 2D 07 01 26 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 D4 EC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BE 0E 01 00 35 04 06 00 E5 56 CF 63 DE 3E 0E D5 B9 7B 99 08 8A 35 [11:43:07]CheckFolder [11:43:07]dirname=/storage/ofd_packets [11:43:07]CheckFolder done [11:43:07]ProducePacketName [11:43:07]name=ofd_packets/00069310 [11:43:07]NVStorageSaveData ofd_packets/00069310 [11:43:07]File name is /storage/ofd_packets/00069310 [11:43:07]Write 301 bytes [11:43:07]NVStorageSaveData done [11:43:07]OFDSenderStorePacket done [11:43:07]KKMCreateOFDPacket done [11:43:07]NVStorageSaveData kkm_last_timestamp [11:43:07]File name is /storage/kkm_last_timestamp [11:43:07]Write 4 bytes [11:43:07]NVStorageSaveData done [11:43:07]ExternCall_PrintAddStr [11:43:07]wPrintStart [11:43:07]Write to MH i2c: 01 00 00 48 D2 1A [11:43:07]Write i2c OK [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: 01 [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: 01 07 00 [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: 01 07 00 48 D2 00 00 00 00 00 FF 0F 2F [11:43:07]RasterBufferAndPrint [11:43:07]line Счет N : (1)2885026 [11:43:07]line ИНН: 02508201610067 [11:43:07]line Контрольно-Кассовый Чек [11:43:07]line ПРОДАЖА [11:43:07]line ТРК (МРК, ГНК) : 13 [11:43:07]line Товар: 2710124500 [11:43:07]line Аи-95-К-5 [11:43:07]line 10.790 * 74.20 [11:43:07]line = 800.62 [11:43:07]line НДС 12% НСП 1% [11:43:07]line > о реализуемом товаре [11:43:07]line ОКРУГЛЕНИЕ: -0.62 [11:43:07]line ИТОГО: 800.00 [11:43:07]line Внесено: 800.00 [11:43:07]line СДАЧА: 0.00 [11:43:07]line НСП 1% : 7.08 [11:43:07]line НДС 12% : 85.02 [11:43:07]line Наличными: 800.00 [11:43:07]line Безнал.: 0.00 [11:43:07]line Место: АЗС № 85 "Партнер Нефть" [11:43:07]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:43:07]line СНО: Общий режим [11:43:07]line Чек 155 20.10.2024 11:43 [11:43:07]line Смена: 193 ФФД: 1.0 [11:43:07]line ЗНМ: 0300000167 [11:43:07]line РНМ: 0000000000156251 [11:43:07]line Версия ККМ: v1.0 [11:43:07]line ФМ: 0000000000963346 [11:43:07]line ФД: 69310 [11:43:07]line ФПД: 252161009376830 [11:43:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114316&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69310&fm=252161009376830&tin=02508201610067®Number=0000000000156251&sum=80000 [11:43:07]OFD Sender: Processing packet 69310 [packets to send 18, broken 17] [11:43:07]ProducePacketName [11:43:07]name=ofd_packets/00069310 [11:43:07]OFD Sender: To server: pG, [11:43:07]CommunicateWithHost lk.salyk.kg:30040 [11:43:07]ConnectInit lk.salyk.kg [11:43:07]written 0, free lines is 4095 [11:43:08]Connected sock=10 [11:43:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C8 2D 07 01 26 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 D4 EC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BE 0E 01 00 35 04 06 00 E5 56 CF 63 DE 3E 0E D5 B9 7B 99 08 8A 35 [11:43:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 B9 2E 47 00 9E 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 30 39 36 33 33 34 36 10 04 04 00 BE 0E 01 00 F4 03 04 00 7B 96 14 67 B6 04 01 00 00 16 6A 00 18 B2 EC 03 DF [11:43:08]CommunicateWithHost err = 0 [11:43:08]CheckOFDResponse [11:43:08]1017 (14) - 77093643461234 [11:43:08]1041 (16) - 0000000000963346 [11:43:08]1040 (4) - 69310 [11:43:08]1012 (4) - 20.10.2024 05:34 [11:43:08]1206 (1) - 0 [11:43:08]OFD Sender: Remove packet 69310 [11:43:08]ProducePacketName [11:43:08]name=ofd_packets/00069310 [11:43:08]NVStorageDeleteData [11:43:08]Write to MH i2c: 01 00 00 73 D2 45 [11:43:08]Write i2c OK [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: 01 [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: 01 07 00 [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: 01 07 00 73 D2 00 00 00 00 00 FB 0C 53 [11:43:08]RasterBufferAndPrint [11:43:08]line [11:43:08]line [11:43:08]line [11:43:08]line [11:43:08]line [11:43:08]written 0, free lines is 3332 [11:43:08]MH_Cut [11:43:08]Write to MH i2c: D1 01 00 7A D2 01 1E [11:43:08]Write i2c OK [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: D1 [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: D1 01 00 [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: D1 01 00 7A D2 00 1D [11:43:08]Write to MH i2c: 01 00 00 7B D2 4D [11:43:08]Write i2c OK [11:43:08]MH_I2C_Read... [11:43:08]OFD Sender: No OFD packet to send [11:43:09]*** Cut start [11:43:09]*** Partial cut [11:43:09]*** CUTSNS_PIN = 1 [11:43:09]*** CUTSNS_PIN = 0 [11:43:09]*** Brake cut motor [11:43:09]Read from MH i2c: 01 [11:43:09]MH_I2C_Read... [11:43:09]*** Stop cut motor [11:43:09]*** Cut end [11:43:09]Read from MH i2c: 01 07 00 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: 01 07 00 7B D2 00 00 00 00 00 FF 0F 62 [11:43:09]process_action close_receipt done [11:43:09]requested_data is exist [11:43:09]produce_requested_data [11:43:09]requested_item fm.sn is exist - process it [11:43:09]wFMCommunicate request_size=4 [11:43:09]MH_SAM_APDU [11:43:09]CAPDU: 80 11 00 00 [11:43:09]Write to MH i2c: E2 08 00 7C D2 80 11 00 00 00 00 00 00 C8 [11:43:09]Write i2c OK [11:43:09]MH_I2C_Read... [11:43:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:09]Read from MH i2c: E2 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: E2 17 00 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: E2 17 00 7C D2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1A [11:43:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:43:09]wFMCommunicate OK [11:43:09]requested_item fd.num is exist - process it [11:43:09]SAM_PROTO_GetFieldsCounters [11:43:09]wFMCommunicate request_size=4 [11:43:09]MH_SAM_APDU [11:43:09]CAPDU: 80 13 00 00 [11:43:09]Write to MH i2c: E2 08 00 7D D2 80 13 00 00 00 00 00 00 CB [11:43:09]Write i2c OK [11:43:09]MH_I2C_Read... [11:43:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:09]Read from MH i2c: E2 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: E2 62 00 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: E2 62 00 7D D2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BE 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [11:43:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BE 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:43:09]wFMCommunicate OK [11:43:09]SAM_PROTO_GetFieldsCounters done [11:43:09]requested_item shift.num is exist - process it [11:43:09]requested_item shift.opened is exist - process it [11:43:09]req_shift_opened [11:43:09]FM_GetShiftState [11:43:09]SAM_PROTO_GetShiftState [11:43:09]wFMCommunicate request_size=4 [11:43:09]MH_SAM_APDU [11:43:09]CAPDU: 80 13 01 00 [11:43:09]Write to MH i2c: E2 08 00 7E D2 80 13 01 00 00 00 00 00 CD [11:43:09]Write i2c OK [11:43:09]MH_I2C_Read... [11:43:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:09]Read from MH i2c: E2 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: E2 0E 00 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: E2 0E 00 7E D2 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 D3 [11:43:09]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:43:09]wFMCommunicate OK [11:43:09]SAM_PROTO_GetShiftState done [11:43:09]FM_GetShiftState done [11:43:09]req_shift_opened done [11:43:09]requested_item shift.open_date is exist - process it [11:43:09]req_shift_open_date [11:43:09]req_shift_open_date done [11:43:09]produce_requested_data done [11:43:10]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69310,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [11:43:10]process_action_free close_receipt [11:43:10]json_value_free [11:43:10]json_value_free done [11:43:10]process_json_proto returns [11:43:10]Send response to host [11:43:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69310,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [11:43:10]free response buf [11:43:10]execute_script done [11:43:10]execute_script returns [11:43:10]free content buf [11:43:10]Sock 8.Close socket [11:43:10]Sock 8.Thread stoped [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:10]accept exits with 9 [11:44:10]New connection [11:44:10]New thread 3067260260 created [11:44:10]Thread 3067116900 joined [11:44:10]Waiting for new connection... [11:44:10] Sock 9.Parse request [11:44:10]Sock 9.Check first char [11:44:10]Sock 9.First char is OK [11:44:10]request: POST /json_proto HTTP/1.0 [11:44:10]Method: POST [11:44:10]URL: /json_proto [11:44:10]Method is POST - this is cgi request [11:44:10]url: /json_proto [11:44:10]query_string will be loaded in cgi processing [11:44:10]execute_cgi json_proto POST (null) [11:44:10]execute_cgi path=json_proto method=POST [11:44:10]POST find Content-Length [11:44:10]Host: 172.17.50.3:8080 [11:44:10]Content-Length: 678 [11:44:10]Content-Type: application/json [11:44:10] [11:44:10]POST finish read [11:44:10]Found Content-Length = 678 [11:44:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:10]execute_script... [11:44:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:10]POST & json_proto [11:44:10]process_json_proto [11:44:10]json parsed OK: [11:44:10]protocol is kg_v1.0 [11:44:10]action value=close_receipt [11:44:10]process_action close_receipt [11:44:10]cmd_close_receipt [11:44:10]MH_GetDate [11:44:10]Write to MH i2c: F0 00 00 7F D2 40 [11:44:10]Write i2c OK [11:44:10]MH_I2C_Read... [11:44:10]Read from MH i2c: F0 [11:44:10]MH_I2C_Read... [11:44:10]Read from MH i2c: F0 09 00 [11:44:10]MH_I2C_Read... [11:44:10]Read from MH i2c: F0 09 00 7F D2 00 14 ED 14 67 6B 98 1E 66 4C [11:44:10]GetLastDocTimeStamp 1729424596 [11:44:10]current date 1729424660 [11:44:10]FM_GetShiftState [11:44:10]SAM_PROTO_GetShiftState [11:44:10]wFMCommunicate request_size=4 [11:44:10]MH_SAM_APDU [11:44:10]CAPDU: 80 13 01 00 [11:44:10]Write to MH i2c: E2 08 00 80 D2 80 13 01 00 00 00 00 00 CF [11:44:10]Write i2c OK [11:44:10]MH_I2C_Read... [11:44:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:10]Read from MH i2c: E2 [11:44:10]MH_I2C_Read... [11:44:10]Read from MH i2c: E2 0E 00 [11:44:10]MH_I2C_Read... [11:44:10]Read from MH i2c: E2 0E 00 80 D2 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 D5 [11:44:10]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:44:10]wFMCommunicate OK [11:44:10]SAM_PROTO_GetShiftState done [11:44:10]FM_GetShiftState done [11:44:10]opened in 1729383220 [11:44:10]opened+sec_in_day 1729469620 [11:44:10]quantity*price = 50041 [11:44:10]sum+1 = 50042 [11:44:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 156 20.10.2024 11:44 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69311 ФПД: 207712264803125 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114421&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69311&fm=207712264803125&tin=02508201610067®Number=0000000000156251&sum=50000 [11:44:11]StoreToDocumentArchive [11:44:11]shift 193 fd 69311 [11:44:11]save to /storage/0193/doc_00069311 [11:44:11]save last doc name /storage/0193/doc_00069311 to /storage/kkm_last_doc_name [11:44:11]save OK [11:44:11]Clear old archive folders... [11:44:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:44:11]tlvbuf is 004EB360 [11:44:11]SAM_PROTO_ClearQueue [11:44:11]wFMCommunicate request_size=4 [11:44:11]MH_SAM_APDU [11:44:11]CAPDU: 80 09 00 00 [11:44:11]Write to MH i2c: E2 08 00 8D D2 80 09 00 00 00 00 00 00 D1 [11:44:11]Write i2c OK [11:44:11]MH_I2C_Read... [11:44:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:12]Read from MH i2c: E2 [11:44:12]MH_I2C_Read... [11:44:12]Read from MH i2c: E2 03 00 [11:44:12]MH_I2C_Read... [11:44:12]Read from MH i2c: E2 03 00 8D D2 00 90 00 D3 [11:44:12]RAPDU: 90 00 [11:44:12]wFMCommunicate OK [11:44:12]SAM_PROTO_ClearQueue done [11:44:12]KKMCreateOFDPacket [11:44:12]OFDProtocolAddRootSTLVToBuf [11:44:12]FM_MakeSignedData [11:44:12]FM_MakeSignedData [11:44:12]SAM_PROTO_SignData [11:44:12]wFMCommunicate request_size=4 [11:44:12]MH_SAM_APDU [11:44:12]CAPDU: 80 0D 01 02 [11:44:12]Write to MH i2c: E2 08 00 8E D2 80 0D 01 02 00 00 00 00 D9 [11:44:12]Write i2c OK [11:44:12]MH_I2C_Read... [11:44:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:12]Read from MH i2c: E2 [11:44:12]MH_I2C_Read... [11:44:12]Read from MH i2c: E2 03 00 [11:44:12]MH_I2C_Read... [11:44:12]Read from MH i2c: E2 03 00 8E D2 00 90 00 D4 [11:44:12]RAPDU: 90 00 [11:44:12]wFMCommunicate OK [11:44:12]wFMCommunicate request_size=255 [11:44:12]MH_SAM_APDU [11:44:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 15 ED 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BF 0E 01 00 35 04 06 00 BC [11:44:12]Write to MH i2c: E2 02 01 8F D2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 15 ED 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BF 0E 01 00 35 04 06 00 BC 00 00 C6 [11:44:12]Write i2c OK [11:44:12]MH_I2C_Read... [11:44:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:12]Read from MH i2c: E2 [11:44:12]MH_I2C_Read... [11:44:12]Read from MH i2c: E2 03 00 [11:44:12]MH_I2C_Read... [11:44:12]Read from MH i2c: E2 03 00 8F D2 00 90 00 D5 [11:44:12]RAPDU: 90 00 [11:44:12]wFMCommunicate OK [11:44:12]wFMCommunicate request_size=10 [11:44:12]MH_SAM_APDU [11:44:12]CAPDU: 80 0D 02 02 05 E9 C7 C2 53 35 [11:44:12]Write to MH i2c: E2 0D 00 90 D2 80 0D 02 02 05 00 E9 C7 C2 53 35 00 00 E0 [11:44:12]Write i2c OK [11:44:12]MH_I2C_Read... [11:44:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:12]Read from MH i2c: E2 [11:44:12]MH_I2C_Read... [11:44:12]Read from MH i2c: E2 03 00 [11:44:12]MH_I2C_Read... [11:44:12]Read from MH i2c: E2 03 00 90 D2 00 90 00 D6 [11:44:12]RAPDU: 90 00 [11:44:12]wFMCommunicate OK [11:44:12]wFMCommunicate request_size=4 [11:44:12]MH_SAM_APDU [11:44:12]CAPDU: 80 0D 03 02 [11:44:12]Write to MH i2c: E2 08 00 91 D2 80 0D 03 02 00 00 00 00 DE [11:44:12]Write i2c OK [11:44:12]MH_I2C_Read... [11:44:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:12]Read from MH i2c: E2 [11:44:12]MH_I2C_Read... [11:44:12]Read from MH i2c: E2 0B 00 [11:44:12]MH_I2C_Read... [11:44:12]Read from MH i2c: E2 0B 00 91 D2 00 7E DB F7 3B DA E1 B9 4F 90 00 2D [11:44:12]RAPDU: 7E DB F7 3B DA E1 B9 4F 90 00 [11:44:12]wFMCommunicate OK [11:44:12]SAM_PROTO_SignData done [11:44:12]FM_MakeSignedData done [11:44:12]CreateOFDProtocolMessage [11:44:12]wFMCommunicate request_size=4 [11:44:12]MH_SAM_APDU [11:44:12]CAPDU: 80 11 00 00 [11:44:12]Write to MH i2c: E2 08 00 92 D2 80 11 00 00 00 00 00 00 DE [11:44:12]Write i2c OK [11:44:12]MH_I2C_Read... [11:44:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:12]Read from MH i2c: E2 [11:44:12]MH_I2C_Read... [11:44:12]Read from MH i2c: E2 17 00 [11:44:12]MH_I2C_Read... [11:44:12]Read from MH i2c: E2 17 00 92 D2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 30 [11:44:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:44:12]wFMCommunicate OK [11:44:12]CreateOFDProtocolMessage done [11:44:12]OFDSenderStorePacket 69311 [11:44:12]StoreOFDPacket docnum=69311 [11:44:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 BB 97 07 01 8A C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 15 ED 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BF 0E 01 00 35 04 06 00 BC E9 C7 C2 53 35 7E DB F7 3B DA E1 B9 4F [11:44:12]CheckFolder [11:44:12]dirname=/storage/ofd_packets [11:44:12]CheckFolder done [11:44:12]ProducePacketName [11:44:12]name=ofd_packets/00069311 [11:44:12]NVStorageSaveData ofd_packets/00069311 [11:44:12]File name is /storage/ofd_packets/00069311 [11:44:12]Write 301 bytes [11:44:12]NVStorageSaveData done [11:44:12]OFDSenderStorePacket done [11:44:12]KKMCreateOFDPacket done [11:44:12]NVStorageSaveData kkm_last_timestamp [11:44:12]File name is /storage/kkm_last_timestamp [11:44:12]Write 4 bytes [11:44:12]NVStorageSaveData done [11:44:12]ExternCall_PrintAddStr [11:44:12]wPrintStart [11:44:12]Write to MH i2c: 01 00 00 93 D2 65 [11:44:12]Write i2c OK [11:44:12]MH_I2C_Read... [11:44:12]Read from MH i2c: 01 [11:44:12]MH_I2C_Read... [11:44:12]Read from MH i2c: 01 07 00 [11:44:12]MH_I2C_Read... [11:44:12]Read from MH i2c: 01 07 00 93 D2 00 00 00 00 00 FF 0F 7A [11:44:12]RasterBufferAndPrint [11:44:12]line Счет N : (1)2885027 [11:44:12]line ИНН: 02508201610067 [11:44:12]line Контрольно-Кассовый Чек [11:44:12]line ПРОДАЖА [11:44:12]line ТРК (МРК, ГНК) : 22 [11:44:12]line Товар: 2710124130 [11:44:12]line Аи-92-К-5 [11:44:12]line 7.480 * 66.90 [11:44:12]line = 500.41 [11:44:12]line НДС 12% НСП 1% [11:44:12]line > о реализуемом товаре [11:44:12]line ОКРУГЛЕНИЕ: -0.41 [11:44:12]line ИТОГО: 500.00 [11:44:12]line Внесено: 500.00 [11:44:12]line СДАЧА: 0.00 [11:44:12]line НСП 1% : 4.43 [11:44:12]line НДС 12% : 53.14 [11:44:12]line Наличными: 500.00 [11:44:12]line Безнал.: 0.00 [11:44:12]line Место: АЗС № 85 "Партнер Нефть" [11:44:12]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:44:12]line СНО: Общий режим [11:44:12]line Чек 156 20.10.2024 11:44 [11:44:12]line Смена: 193 ФФД: 1.0 [11:44:12]line ЗНМ: 0300000167 [11:44:12]line РНМ: 0000000000156251 [11:44:12]line Версия ККМ: v1.0 [11:44:12]line ФМ: 0000000000963346 [11:44:12]line ФД: 69311 [11:44:12]line ФПД: 207712264803125 [11:44:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114421&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69311&fm=207712264803125&tin=02508201610067®Number=0000000000156251&sum=50000 [11:44:12]OFD Sender: Processing packet 69311 [packets to send 18, broken 17] [11:44:12]ProducePacketName [11:44:12]name=ofd_packets/00069311 [11:44:12]OFD Sender: To server: pG, [11:44:12]CommunicateWithHost lk.salyk.kg:30040 [11:44:12]ConnectInit lk.salyk.kg [11:44:12]written 0, free lines is 4095 [11:44:12]Connected sock=10 [11:44:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 BB 97 07 01 8A C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 15 ED 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BF 0E 01 00 35 04 06 00 BC E9 C7 C2 53 35 7E DB F7 3B DA E1 B9 4F [11:44:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 40 A5 47 00 00 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BF 0E 01 00 F4 03 04 00 BB 96 14 67 B6 04 01 00 00 D6 2F 6B AD 6C F6 D0 B9 [11:44:13]CommunicateWithHost err = 0 [11:44:13]CheckOFDResponse [11:44:13]1017 (14) - 77093643461234 [11:44:13]1041 (16) - 0000000000963346 [11:44:13]1040 (4) - 69311 [11:44:13]1012 (4) - 20.10.2024 05:35 [11:44:13]1206 (1) - 0 [11:44:13]OFD Sender: Remove packet 69311 [11:44:13]ProducePacketName [11:44:13]name=ofd_packets/00069311 [11:44:13]NVStorageDeleteData [11:44:13]Write to MH i2c: 01 00 00 BE D2 90 [11:44:13]Write i2c OK [11:44:13]MH_I2C_Read... [11:44:13]Read from MH i2c: 01 [11:44:13]MH_I2C_Read... [11:44:13]Read from MH i2c: 01 07 00 [11:44:13]MH_I2C_Read... [11:44:13]Read from MH i2c: 01 07 00 BE D2 00 00 00 00 00 01 0D A5 [11:44:13]RasterBufferAndPrint [11:44:13]line [11:44:13]line [11:44:13]line [11:44:13]line [11:44:13]line [11:44:13]written 0, free lines is 3335 [11:44:13]MH_Cut [11:44:13]Write to MH i2c: D1 01 00 C5 D2 01 69 [11:44:13]Write i2c OK [11:44:13]MH_I2C_Read... [11:44:13]Read from MH i2c: D1 [11:44:13]MH_I2C_Read... [11:44:13]Read from MH i2c: D1 01 00 [11:44:13]MH_I2C_Read... [11:44:13]Read from MH i2c: D1 01 00 C5 D2 00 68 [11:44:13]Write to MH i2c: 01 00 00 C6 D2 98 [11:44:13]Write i2c OK [11:44:13]MH_I2C_Read... [11:44:13]OFD Sender: No OFD packet to send [11:44:14]*** Cut start [11:44:14]*** Partial cut [11:44:14]*** CUTSNS_PIN = 1 [11:44:14]*** CUTSNS_PIN = 0 [11:44:14]*** Brake cut motor [11:44:14]Read from MH i2c: 01 [11:44:14]MH_I2C_Read... [11:44:14]*** Stop cut motor [11:44:14]*** Cut end [11:44:14]Read from MH i2c: 01 07 00 [11:44:14]MH_I2C_Read... [11:44:14]Read from MH i2c: 01 07 00 C6 D2 00 00 00 00 00 FF 0F AD [11:44:14]process_action close_receipt done [11:44:14]requested_data is exist [11:44:14]produce_requested_data [11:44:14]requested_item fm.sn is exist - process it [11:44:14]wFMCommunicate request_size=4 [11:44:14]MH_SAM_APDU [11:44:14]CAPDU: 80 11 00 00 [11:44:14]Write to MH i2c: E2 08 00 C7 D2 80 11 00 00 00 00 00 00 13 [11:44:14]Write i2c OK [11:44:14]MH_I2C_Read... [11:44:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:14]Read from MH i2c: E2 [11:44:14]MH_I2C_Read... [11:44:14]Read from MH i2c: E2 17 00 [11:44:14]MH_I2C_Read... [11:44:14]Read from MH i2c: E2 17 00 C7 D2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 65 [11:44:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:44:14]wFMCommunicate OK [11:44:14]requested_item fd.num is exist - process it [11:44:14]SAM_PROTO_GetFieldsCounters [11:44:14]wFMCommunicate request_size=4 [11:44:14]MH_SAM_APDU [11:44:14]CAPDU: 80 13 00 00 [11:44:14]Write to MH i2c: E2 08 00 C8 D2 80 13 00 00 00 00 00 00 16 [11:44:14]Write i2c OK [11:44:14]MH_I2C_Read... [11:44:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:14]Read from MH i2c: E2 [11:44:14]MH_I2C_Read... [11:44:14]Read from MH i2c: E2 62 00 [11:44:14]MH_I2C_Read... [11:44:14]Read from MH i2c: E2 62 00 C8 D2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BF 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [11:44:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BF 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:44:14]wFMCommunicate OK [11:44:14]SAM_PROTO_GetFieldsCounters done [11:44:14]requested_item shift.num is exist - process it [11:44:14]requested_item shift.opened is exist - process it [11:44:14]req_shift_opened [11:44:14]FM_GetShiftState [11:44:14]SAM_PROTO_GetShiftState [11:44:14]wFMCommunicate request_size=4 [11:44:14]MH_SAM_APDU [11:44:14]CAPDU: 80 13 01 00 [11:44:14]Write to MH i2c: E2 08 00 C9 D2 80 13 01 00 00 00 00 00 18 [11:44:14]Write i2c OK [11:44:14]MH_I2C_Read... [11:44:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:14]Read from MH i2c: E2 [11:44:14]MH_I2C_Read... [11:44:14]Read from MH i2c: E2 0E 00 [11:44:14]MH_I2C_Read... [11:44:14]Read from MH i2c: E2 0E 00 C9 D2 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 1E [11:44:14]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:44:14]wFMCommunicate OK [11:44:14]SAM_PROTO_GetShiftState done [11:44:14]FM_GetShiftState done [11:44:14]req_shift_opened done [11:44:14]requested_item shift.open_date is exist - process it [11:44:14]req_shift_open_date [11:44:14]req_shift_open_date done [11:44:14]produce_requested_data done [11:44:14]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69311,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [11:44:14]process_action_free close_receipt [11:44:14]json_value_free [11:44:14]json_value_free done [11:44:14]process_json_proto returns [11:44:14]Send response to host [11:44:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69311,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [11:44:14]free response buf [11:44:14]execute_script done [11:44:14]execute_script returns [11:44:14]free content buf [11:44:14]Sock 9.Close socket [11:44:14]Sock 9.Thread stoped [11:44:18]OFD Sender: No OFD packet to send [11:44:23]OFD Sender: No OFD packet to send [11:44:28]OFD Sender: No OFD packet to send [11:44:33]OFD Sender: No OFD packet to send [11:44:38]OFD Sender: No OFD packet to send [11:44:43]OFD Sender: No OFD packet to send [11:44:48]OFD Sender: No OFD packet to send [11:44:53]OFD Sender: No OFD packet to send [11:44:58]OFD Sender: No OFD packet to send [11:45:03]OFD Sender: No OFD packet to send [11:45:08]OFD Sender: No OFD packet to send [11:45:13]OFD Sender: No OFD packet to send [11:45:18]OFD Sender: No OFD packet to send [11:45:23]OFD Sender: No OFD packet to send [11:45:28]OFD Sender: No OFD packet to send [11:45:33]OFD Sender: No OFD packet to send [11:45:38]OFD Sender: No OFD packet to send [11:45:43]OFD Sender: No OFD packet to send [11:45:48]OFD Sender: No OFD packet to send [11:45:53]OFD Sender: No OFD packet to send [11:45:58]OFD Sender: No OFD packet to send [11:46:03]OFD Sender: No OFD packet to send [11:46:08]OFD Sender: No OFD packet to send [11:46:13]OFD Sender: No OFD packet to send [11:46:18]OFD Sender: No OFD packet to send [11:46:23]OFD Sender: No OFD packet to send [11:46:28]OFD Sender: No OFD packet to send [11:46:32]accept exits with 8 [11:46:32]New connection [11:46:32]New thread 3067116900 created [11:46:32]Thread 3067260260 joined [11:46:32]Waiting for new connection... [11:46:32] Sock 8.Parse request [11:46:32]Sock 8.Check first char [11:46:32]Sock 8.First char is OK [11:46:32]request: POST /json_proto HTTP/1.0 [11:46:32]Method: POST [11:46:32]URL: /json_proto [11:46:32]Method is POST - this is cgi request [11:46:32]url: /json_proto [11:46:32]query_string will be loaded in cgi processing [11:46:32]execute_cgi json_proto POST (null) [11:46:32]execute_cgi path=json_proto method=POST [11:46:32]POST find Content-Length [11:46:32]Host: 172.17.50.3:8080 [11:46:32]Content-Length: 683 [11:46:32]Content-Type: application/json [11:46:32] [11:46:32]POST finish read [11:46:32]Found Content-Length = 683 [11:46:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:32]execute_script... [11:46: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)2885029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:32]POST & json_proto [11:46:32]process_json_proto [11:46:32]json parsed OK: [11:46:32]protocol is kg_v1.0 [11:46:32]action value=close_receipt [11:46:32]process_action close_receipt [11:46:32]cmd_close_receipt [11:46:32]MH_GetDate [11:46:32]Write to MH i2c: F0 00 00 CA D2 8B [11:46:32]Write i2c OK [11:46:32]MH_I2C_Read... [11:46:32]Read from MH i2c: F0 [11:46:32]MH_I2C_Read... [11:46:32]Read from MH i2c: F0 09 00 [11:46:32]MH_I2C_Read... [11:46:32]Read from MH i2c: F0 09 00 CA D2 00 A2 ED 14 67 6B 98 1E 66 25 [11:46:32]GetLastDocTimeStamp 1729424661 [11:46:32]current date 1729424802 [11:46:32]FM_GetShiftState [11:46:32]SAM_PROTO_GetShiftState [11:46:32]wFMCommunicate request_size=4 [11:46:32]MH_SAM_APDU [11:46:32]CAPDU: 80 13 01 00 [11:46:32]Write to MH i2c: E2 08 00 CB D2 80 13 01 00 00 00 00 00 1A [11:46:32]Write i2c OK [11:46:32]MH_I2C_Read... [11:46:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:32]Read from MH i2c: E2 [11:46:32]MH_I2C_Read... [11:46:32]Read from MH i2c: E2 0E 00 [11:46:32]MH_I2C_Read... [11:46:32]Read from MH i2c: E2 0E 00 CB D2 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 20 [11:46:32]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:46:32]wFMCommunicate OK [11:46:32]SAM_PROTO_GetShiftState done [11:46:32]FM_GetShiftState done [11:46:32]opened in 1729383220 [11:46:32]opened+sec_in_day 1729469620 [11:46:32]quantity*price = 100015 [11:46:32]sum+1 = 100017 [11:46:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 157 20.10.2024 11:46 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69312 ФПД: 271041171800864 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114642&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69312&fm=271041171800864&tin=02508201610067®Number=0000000000156251&sum=100000 [11:46:33]StoreToDocumentArchive [11:46:33]shift 193 fd 69312 [11:46:33]save to /storage/0193/doc_00069312 [11:46:33]save last doc name /storage/0193/doc_00069312 to /storage/kkm_last_doc_name [11:46:33]save OK [11:46:33]Clear old archive folders... [11:46:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:46:33]tlvbuf is 00533860 [11:46:33]SAM_PROTO_ClearQueue [11:46:33]wFMCommunicate request_size=4 [11:46:33]MH_SAM_APDU [11:46:33]CAPDU: 80 09 00 00 [11:46:33]Write to MH i2c: E2 08 00 D8 D2 80 09 00 00 00 00 00 00 1C [11:46:33]Write i2c OK [11:46:33]MH_I2C_Read... [11:46:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:33]Read from MH i2c: E2 [11:46:33]MH_I2C_Read... [11:46:33]Read from MH i2c: E2 03 00 [11:46:33]MH_I2C_Read... [11:46:33]Read from MH i2c: E2 03 00 D8 D2 00 90 00 1E [11:46:33]RAPDU: 90 00 [11:46:33]wFMCommunicate OK [11:46:33]SAM_PROTO_ClearQueue done [11:46:33]KKMCreateOFDPacket [11:46:33]OFDProtocolAddRootSTLVToBuf [11:46:33]FM_MakeSignedData [11:46:33]FM_MakeSignedData [11:46:33]SAM_PROTO_SignData [11:46:33]wFMCommunicate request_size=4 [11:46:33]MH_SAM_APDU [11:46:33]CAPDU: 80 0D 01 02 [11:46:33]Write to MH i2c: E2 08 00 D9 D2 80 0D 01 02 00 00 00 00 24 [11:46:33]Write i2c OK [11:46:33]MH_I2C_Read... [11:46:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:33]Read from MH i2c: E2 [11:46:33]MH_I2C_Read... [11:46:33]Read from MH i2c: E2 03 00 [11:46:33]MH_I2C_Read... [11:46:33]Read from MH i2c: E2 03 00 D9 D2 00 90 00 1F [11:46:33]RAPDU: 90 00 [11:46:33]wFMCommunicate OK [11:46:33]wFMCommunicate request_size=255 [11:46:33]MH_SAM_APDU [11:46:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 A2 ED 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C0 0E 01 00 35 04 06 00 F6 [11:46:33]Write to MH i2c: E2 02 01 DA D2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 A2 ED 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C0 0E 01 00 35 04 06 00 F6 00 00 D4 [11:46:33]Write i2c OK [11:46:33]MH_I2C_Read... [11:46:33]OFD Sender: No OFD packet to send [11:46:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:33]Read from MH i2c: E2 [11:46:33]MH_I2C_Read... [11:46:33]Read from MH i2c: E2 03 00 [11:46:33]MH_I2C_Read... [11:46:33]Read from MH i2c: E2 03 00 DA D2 00 90 00 20 [11:46:33]RAPDU: 90 00 [11:46:33]wFMCommunicate OK [11:46:33]wFMCommunicate request_size=10 [11:46:33]MH_SAM_APDU [11:46:33]CAPDU: 80 0D 02 02 05 82 B0 C3 C3 20 [11:46:33]Write to MH i2c: E2 0D 00 DB D2 80 0D 02 02 05 00 82 B0 C3 C3 20 00 00 09 [11:46:33]Write i2c OK [11:46:33]MH_I2C_Read... [11:46:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:33]Read from MH i2c: E2 [11:46:33]MH_I2C_Read... [11:46:33]Read from MH i2c: E2 03 00 [11:46:33]MH_I2C_Read... [11:46:33]Read from MH i2c: E2 03 00 DB D2 00 90 00 21 [11:46:33]RAPDU: 90 00 [11:46:33]wFMCommunicate OK [11:46:33]wFMCommunicate request_size=4 [11:46:33]MH_SAM_APDU [11:46:33]CAPDU: 80 0D 03 02 [11:46:33]Write to MH i2c: E2 08 00 DC D2 80 0D 03 02 00 00 00 00 29 [11:46:33]Write i2c OK [11:46:33]MH_I2C_Read... [11:46:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:33]Read from MH i2c: E2 [11:46:33]MH_I2C_Read... [11:46:33]Read from MH i2c: E2 0B 00 [11:46:33]MH_I2C_Read... [11:46:33]Read from MH i2c: E2 0B 00 DC D2 00 96 08 FD ED 6C AC 83 CA 90 00 17 [11:46:33]RAPDU: 96 08 FD ED 6C AC 83 CA 90 00 [11:46:33]wFMCommunicate OK [11:46:33]SAM_PROTO_SignData done [11:46:33]FM_MakeSignedData done [11:46:33]CreateOFDProtocolMessage [11:46:33]wFMCommunicate request_size=4 [11:46:33]MH_SAM_APDU [11:46:33]CAPDU: 80 11 00 00 [11:46:33]Write to MH i2c: E2 08 00 DD D2 80 11 00 00 00 00 00 00 29 [11:46:33]Write i2c OK [11:46:33]MH_I2C_Read... [11:46:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:34]Read from MH i2c: E2 [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: E2 17 00 [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: E2 17 00 DD D2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7B [11:46:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:46:34]wFMCommunicate OK [11:46:34]CreateOFDProtocolMessage done [11:46:34]OFDSenderStorePacket 69312 [11:46:34]StoreOFDPacket docnum=69312 [11:46:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F0 80 07 01 09 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 A2 ED 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C0 0E 01 00 35 04 06 00 F6 82 B0 C3 C3 20 96 08 FD ED 6C AC 83 CA [11:46:34]CheckFolder [11:46:34]dirname=/storage/ofd_packets [11:46:34]CheckFolder done [11:46:34]ProducePacketName [11:46:34]name=ofd_packets/00069312 [11:46:34]NVStorageSaveData ofd_packets/00069312 [11:46:34]File name is /storage/ofd_packets/00069312 [11:46:34]Write 301 bytes [11:46:34]NVStorageSaveData done [11:46:34]OFDSenderStorePacket done [11:46:34]KKMCreateOFDPacket done [11:46:34]NVStorageSaveData kkm_last_timestamp [11:46:34]File name is /storage/kkm_last_timestamp [11:46:34]Write 4 bytes [11:46:34]NVStorageSaveData done [11:46:34]ExternCall_PrintAddStr [11:46:34]wPrintStart [11:46:34]Write to MH i2c: 01 00 00 DE D2 B0 [11:46:34]Write i2c OK [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: 01 [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: 01 07 00 [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: 01 07 00 DE D2 00 00 00 00 00 FF 0F C5 [11:46:34]RasterBufferAndPrint [11:46:34]line Счет N : (1)2885029 [11:46:34]line ИНН: 02508201610067 [11:46:34]line Контрольно-Кассовый Чек [11:46:34]line ПРОДАЖА [11:46:34]line ТРК (МРК, ГНК) : 12 [11:46:34]line Товар: 2710124130 [11:46:34]line Аи-92-К-5 [11:46:34]line 14.950 * 66.90 [11:46:34]line = 1000.16 [11:46:34]line НДС 12% НСП 1% [11:46:34]line > о реализуемом товаре [11:46:34]line ОКРУГЛЕНИЕ: -0.16 [11:46:34]line ИТОГО: 1000.00 [11:46:34]line Внесено: 1000.00 [11:46:34]line СДАЧА: 0.00 [11:46:34]line НСП 1% : 8.85 [11:46:34]line НДС 12% : 106.21 [11:46:34]line Наличными: 1000.00 [11:46:34]line Безнал.: 0.00 [11:46:34]line Место: АЗС № 85 "Партнер Нефть" [11:46:34]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:46:34]line СНО: Общий режим [11:46:34]line Чек 157 20.10.2024 11:46 [11:46:34]line Смена: 193 ФФД: 1.0 [11:46:34]line ЗНМ: 0300000167 [11:46:34]line РНМ: 0000000000156251 [11:46:34]line Версия ККМ: v1.0 [11:46:34]line ФМ: 0000000000963346 [11:46:34]line ФД: 69312 [11:46:34]line ФПД: 271041171800864 [11:46:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114642&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69312&fm=271041171800864&tin=02508201610067®Number=0000000000156251&sum=100000 [11:46:34]OFD Sender: Processing packet 69312 [packets to send 18, broken 17] [11:46:34]ProducePacketName [11:46:34]name=ofd_packets/00069312 [11:46:34]OFD Sender: To server: pG, [11:46:34]CommunicateWithHost lk.salyk.kg:30040 [11:46:34]ConnectInit lk.salyk.kg [11:46:34]written 0, free lines is 4095 [11:46:34]Connected sock=10 [11:46:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F0 80 07 01 09 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 A2 ED 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C0 0E 01 00 35 04 06 00 F6 82 B0 C3 C3 20 96 08 FD ED 6C AC 83 CA [11:46:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 DF 7E 47 00 FC 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C0 0E 01 00 F4 03 04 00 49 97 14 67 B6 04 01 00 00 44 BD A0 31 20 9D 07 DA [11:46:34]CommunicateWithHost err = 0 [11:46:34]CheckOFDResponse [11:46:34]1017 (14) - 77093643461234 [11:46:34]1041 (16) - 0000000000963346 [11:46:34]1040 (4) - 69312 [11:46:34]1012 (4) - 20.10.2024 05:38 [11:46:34]1206 (1) - 0 [11:46:34]OFD Sender: Remove packet 69312 [11:46:34]ProducePacketName [11:46:34]name=ofd_packets/00069312 [11:46:34]NVStorageDeleteData [11:46:34]Write to MH i2c: 01 00 00 09 D3 DC [11:46:34]Write i2c OK [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: 01 [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: 01 07 00 [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: 01 07 00 09 D3 00 00 00 00 00 F5 0C E4 [11:46:34]RasterBufferAndPrint [11:46:34]line [11:46:34]line [11:46:34]line [11:46:34]line [11:46:34]line [11:46:34]written 0, free lines is 3327 [11:46:34]MH_Cut [11:46:34]Write to MH i2c: D1 01 00 10 D3 01 B5 [11:46:34]Write i2c OK [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: D1 [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: D1 01 00 [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: D1 01 00 10 D3 00 B4 [11:46:34]Write to MH i2c: 01 00 00 11 D3 E4 [11:46:34]Write i2c OK [11:46:34]MH_I2C_Read... [11:46:35]OFD Sender: No OFD packet to send [11:46:35]*** Cut start [11:46:35]*** Partial cut [11:46:35]*** CUTSNS_PIN = 1 [11:46:35]*** CUTSNS_PIN = 0 [11:46:35]*** Brake cut motor [11:46:36]Read from MH i2c: 01 [11:46:36]MH_I2C_Read... [11:46:36]*** Stop cut motor [11:46:36]*** Cut end [11:46:36]Read from MH i2c: 01 07 00 [11:46:36]MH_I2C_Read... [11:46:36]Read from MH i2c: 01 07 00 11 D3 00 00 00 00 00 FF 0F F9 [11:46:36]process_action close_receipt done [11:46:36]requested_data is exist [11:46:36]produce_requested_data [11:46:36]requested_item fm.sn is exist - process it [11:46:36]wFMCommunicate request_size=4 [11:46:36]MH_SAM_APDU [11:46:36]CAPDU: 80 11 00 00 [11:46:36]Write to MH i2c: E2 08 00 12 D3 80 11 00 00 00 00 00 00 5F [11:46:36]Write i2c OK [11:46:36]MH_I2C_Read... [11:46:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:36]Read from MH i2c: E2 [11:46:36]MH_I2C_Read... [11:46:36]Read from MH i2c: E2 17 00 [11:46:36]MH_I2C_Read... [11:46:36]Read from MH i2c: E2 17 00 12 D3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B1 [11:46:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:46:36]wFMCommunicate OK [11:46:36]requested_item fd.num is exist - process it [11:46:36]SAM_PROTO_GetFieldsCounters [11:46:36]wFMCommunicate request_size=4 [11:46:36]MH_SAM_APDU [11:46:36]CAPDU: 80 13 00 00 [11:46:36]Write to MH i2c: E2 08 00 13 D3 80 13 00 00 00 00 00 00 62 [11:46:36]Write i2c OK [11:46:36]MH_I2C_Read... [11:46:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:36]Read from MH i2c: E2 [11:46:36]MH_I2C_Read... [11:46:36]Read from MH i2c: E2 62 00 [11:46:36]MH_I2C_Read... [11:46:36]Read from MH i2c: E2 62 00 13 D3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C0 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [11:46:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C0 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:46:36]wFMCommunicate OK [11:46:36]SAM_PROTO_GetFieldsCounters done [11:46:36]requested_item shift.num is exist - process it [11:46:36]requested_item shift.opened is exist - process it [11:46:36]req_shift_opened [11:46:36]FM_GetShiftState [11:46:36]SAM_PROTO_GetShiftState [11:46:36]wFMCommunicate request_size=4 [11:46:36]MH_SAM_APDU [11:46:36]CAPDU: 80 13 01 00 [11:46:36]Write to MH i2c: E2 08 00 14 D3 80 13 01 00 00 00 00 00 64 [11:46:36]Write i2c OK [11:46:36]MH_I2C_Read... [11:46:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:36]Read from MH i2c: E2 [11:46:36]MH_I2C_Read... [11:46:36]Read from MH i2c: E2 0E 00 [11:46:36]MH_I2C_Read... [11:46:36]Read from MH i2c: E2 0E 00 14 D3 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 6A [11:46:36]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:46:36]wFMCommunicate OK [11:46:36]SAM_PROTO_GetShiftState done [11:46:36]FM_GetShiftState done [11:46:36]req_shift_opened done [11:46:36]requested_item shift.open_date is exist - process it [11:46:36]req_shift_open_date [11:46:36]req_shift_open_date done [11:46:36]produce_requested_data done [11:46:36]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69312,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [11:46:36]process_action_free close_receipt [11:46:36]json_value_free [11:46:36]json_value_free done [11:46:36]process_json_proto returns [11:46:36]Send response to host [11:46:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69312,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [11:46:36]free response buf [11:46:36]execute_script done [11:46:36]execute_script returns [11:46:36]free content buf [11:46:36]Sock 8.Close socket [11:46:36]Sock 8.Thread stoped [11:46:40]OFD Sender: No OFD packet to send [11:46:45]OFD Sender: No OFD packet to send [11:46:50]OFD Sender: No OFD packet to send [11:46:53]accept exits with 9 [11:46:53]New connection [11:46:53]New thread 3067260260 created [11:46:53]Thread 3067116900 joined [11:46:53]Waiting for new connection... [11:46:53] Sock 9.Parse request [11:46:53]Sock 9.Check first char [11:46:53]Sock 9.First char is OK [11:46:53]request: POST /json_proto HTTP/1.0 [11:46:53]Method: POST [11:46:53]URL: /json_proto [11:46:53]Method is POST - this is cgi request [11:46:53]url: /json_proto [11:46:53]query_string will be loaded in cgi processing [11:46:53]execute_cgi json_proto POST (null) [11:46:53]execute_cgi path=json_proto method=POST [11:46:53]POST find Content-Length [11:46:53]Host: 172.17.50.3:8080 [11:46:53]Content-Length: 678 [11:46:53]Content-Type: application/json [11:46:53] [11:46:53]POST finish read [11:46:53]Found Content-Length = 678 [11:46:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:53]execute_script... [11:46: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)2885030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:53]POST & json_proto [11:46:53]process_json_proto [11:46:53]json parsed OK: [11:46:53]protocol is kg_v1.0 [11:46:53]action value=close_receipt [11:46:53]process_action close_receipt [11:46:53]cmd_close_receipt [11:46:53]MH_GetDate [11:46:53]Write to MH i2c: F0 00 00 15 D3 D7 [11:46:53]Write i2c OK [11:46:53]MH_I2C_Read... [11:46:53]Read from MH i2c: F0 [11:46:53]MH_I2C_Read... [11:46:53]Read from MH i2c: F0 09 00 [11:46:53]MH_I2C_Read... [11:46:53]Read from MH i2c: F0 09 00 15 D3 00 B7 ED 14 67 6B 98 1E 66 86 [11:46:53]GetLastDocTimeStamp 1729424802 [11:46:53]current date 1729424823 [11:46:53]FM_GetShiftState [11:46:53]SAM_PROTO_GetShiftState [11:46:53]wFMCommunicate request_size=4 [11:46:53]MH_SAM_APDU [11:46:53]CAPDU: 80 13 01 00 [11:46:53]Write to MH i2c: E2 08 00 16 D3 80 13 01 00 00 00 00 00 66 [11:46:53]Write i2c OK [11:46:53]MH_I2C_Read... [11:46:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:53]Read from MH i2c: E2 [11:46:53]MH_I2C_Read... [11:46:53]Read from MH i2c: E2 0E 00 [11:46:53]MH_I2C_Read... [11:46:53]Read from MH i2c: E2 0E 00 16 D3 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 6C [11:46:53]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:46:53]wFMCommunicate OK [11:46:53]SAM_PROTO_GetShiftState done [11:46:53]FM_GetShiftState done [11:46:53]opened in 1729383220 [11:46:53]opened+sec_in_day 1729469620 [11:46:53]quantity*price = 50041 [11:46:53]sum+1 = 50042 [11:46:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 158 20.10.2024 11:47 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69313 ФПД: 144307466540048 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114703&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69313&fm=144307466540048&tin=02508201610067®Number=0000000000156251&sum=50000 [11:46:54]StoreToDocumentArchive [11:46:54]shift 193 fd 69313 [11:46:54]save to /storage/0193/doc_00069313 [11:46:54]save last doc name /storage/0193/doc_00069313 to /storage/kkm_last_doc_name [11:46:54]save OK [11:46:54]Clear old archive folders... [11:46:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:46:54]tlvbuf is 00451B80 [11:46:54]SAM_PROTO_ClearQueue [11:46:54]wFMCommunicate request_size=4 [11:46:54]MH_SAM_APDU [11:46:54]CAPDU: 80 09 00 00 [11:46:54]Write to MH i2c: E2 08 00 23 D3 80 09 00 00 00 00 00 00 68 [11:46:54]Write i2c OK [11:46:54]MH_I2C_Read... [11:46:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:54]Read from MH i2c: E2 [11:46:54]MH_I2C_Read... [11:46:54]Read from MH i2c: E2 03 00 [11:46:54]MH_I2C_Read... [11:46:54]Read from MH i2c: E2 03 00 23 D3 00 90 00 6A [11:46:54]RAPDU: 90 00 [11:46:54]wFMCommunicate OK [11:46:54]SAM_PROTO_ClearQueue done [11:46:54]KKMCreateOFDPacket [11:46:54]OFDProtocolAddRootSTLVToBuf [11:46:54]FM_MakeSignedData [11:46:54]FM_MakeSignedData [11:46:54]SAM_PROTO_SignData [11:46:54]wFMCommunicate request_size=4 [11:46:54]MH_SAM_APDU [11:46:54]CAPDU: 80 0D 01 02 [11:46:54]Write to MH i2c: E2 08 00 24 D3 80 0D 01 02 00 00 00 00 70 [11:46:54]Write i2c OK [11:46:54]MH_I2C_Read... [11:46:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:54]Read from MH i2c: E2 [11:46:54]MH_I2C_Read... [11:46:54]Read from MH i2c: E2 03 00 [11:46:54]MH_I2C_Read... [11:46:54]Read from MH i2c: E2 03 00 24 D3 00 90 00 6B [11:46:54]RAPDU: 90 00 [11:46:54]wFMCommunicate OK [11:46:54]wFMCommunicate request_size=255 [11:46:54]MH_SAM_APDU [11:46: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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 B7 ED 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C1 0E 01 00 35 04 06 00 83 [11:46:54]Write to MH i2c: E2 02 01 25 D3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 B7 ED 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C1 0E 01 00 35 04 06 00 83 00 00 CA [11:46:54]Write i2c OK [11:46:54]MH_I2C_Read... [11:46:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:54]Read from MH i2c: E2 [11:46:54]MH_I2C_Read... [11:46:54]Read from MH i2c: E2 03 00 [11:46:54]MH_I2C_Read... [11:46:54]Read from MH i2c: E2 03 00 25 D3 00 90 00 6C [11:46:54]RAPDU: 90 00 [11:46:54]wFMCommunicate OK [11:46:54]wFMCommunicate request_size=10 [11:46:54]MH_SAM_APDU [11:46:54]CAPDU: 80 0D 02 02 05 3F 33 48 14 10 [11:46:54]Write to MH i2c: E2 0D 00 26 D3 80 0D 02 02 05 00 3F 33 48 14 10 00 00 5B [11:46:54]Write i2c OK [11:46:54]MH_I2C_Read... [11:46:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:54]Read from MH i2c: E2 [11:46:54]MH_I2C_Read... [11:46:54]Read from MH i2c: E2 03 00 [11:46:54]MH_I2C_Read... [11:46:54]Read from MH i2c: E2 03 00 26 D3 00 90 00 6D [11:46:54]RAPDU: 90 00 [11:46:54]wFMCommunicate OK [11:46:54]wFMCommunicate request_size=4 [11:46:54]MH_SAM_APDU [11:46:54]CAPDU: 80 0D 03 02 [11:46:54]Write to MH i2c: E2 08 00 27 D3 80 0D 03 02 00 00 00 00 75 [11:46:54]Write i2c OK [11:46:54]MH_I2C_Read... [11:46:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:54]Read from MH i2c: E2 [11:46:54]MH_I2C_Read... [11:46:54]Read from MH i2c: E2 0B 00 [11:46:54]MH_I2C_Read... [11:46:54]Read from MH i2c: E2 0B 00 27 D3 00 16 39 7C 75 6C CE 7B 77 90 00 E2 [11:46:54]RAPDU: 16 39 7C 75 6C CE 7B 77 90 00 [11:46:54]wFMCommunicate OK [11:46:54]SAM_PROTO_SignData done [11:46:54]FM_MakeSignedData done [11:46:54]CreateOFDProtocolMessage [11:46:54]wFMCommunicate request_size=4 [11:46:54]MH_SAM_APDU [11:46:54]CAPDU: 80 11 00 00 [11:46:54]Write to MH i2c: E2 08 00 28 D3 80 11 00 00 00 00 00 00 75 [11:46:54]Write i2c OK [11:46:54]MH_I2C_Read... [11:46:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:55]Read from MH i2c: E2 [11:46:55]MH_I2C_Read... [11:46:55]Read from MH i2c: E2 17 00 [11:46:55]MH_I2C_Read... [11:46:55]Read from MH i2c: E2 17 00 28 D3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C7 [11:46:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:46:55]wFMCommunicate OK [11:46:55]CreateOFDProtocolMessage done [11:46:55]OFDSenderStorePacket 69313 [11:46:55]StoreOFDPacket docnum=69313 [11:46:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 D4 49 07 01 80 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 B7 ED 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C1 0E 01 00 35 04 06 00 83 3F 33 48 14 10 16 39 7C 75 6C CE 7B 77 [11:46:55]CheckFolder [11:46:55]dirname=/storage/ofd_packets [11:46:55]CheckFolder done [11:46:55]ProducePacketName [11:46:55]name=ofd_packets/00069313 [11:46:55]NVStorageSaveData ofd_packets/00069313 [11:46:55]File name is /storage/ofd_packets/00069313 [11:46:55]Write 301 bytes [11:46:55]NVStorageSaveData done [11:46:55]OFDSenderStorePacket done [11:46:55]KKMCreateOFDPacket done [11:46:55]NVStorageSaveData kkm_last_timestamp [11:46:55]File name is /storage/kkm_last_timestamp [11:46:55]Write 4 bytes [11:46:55]NVStorageSaveData done [11:46:55]ExternCall_PrintAddStr [11:46:55]wPrintStart [11:46:55]Write to MH i2c: 01 00 00 29 D3 FC [11:46:55]Write i2c OK [11:46:55]MH_I2C_Read... [11:46:55]Read from MH i2c: 01 [11:46:55]MH_I2C_Read... [11:46:55]Read from MH i2c: 01 07 00 [11:46:55]MH_I2C_Read... [11:46:55]Read from MH i2c: 01 07 00 29 D3 00 00 00 00 00 FF 0F 11 [11:46:55]RasterBufferAndPrint [11:46:55]line Счет N : (1)2885030 [11:46:55]line ИНН: 02508201610067 [11:46:55]line Контрольно-Кассовый Чек [11:46:55]line ПРОДАЖА [11:46:55]line ТРК (МРК, ГНК) : 42 [11:46:55]line Товар: 2710124130 [11:46:55]line Аи-92-К-5 [11:46:55]line 7.480 * 66.90 [11:46:55]line = 500.41 [11:46:55]line НДС 12% НСП 1% [11:46:55]line > о реализуемом товаре [11:46:55]line ОКРУГЛЕНИЕ: -0.41 [11:46:55]line ИТОГО: 500.00 [11:46:55]line Внесено: 500.00 [11:46:55]line СДАЧА: 0.00 [11:46:55]line НСП 1% : 4.43 [11:46:55]line НДС 12% : 53.14 [11:46:55]line Наличными: 500.00 [11:46:55]line Безнал.: 0.00 [11:46:55]line Место: АЗС № 85 "Партнер Нефть" [11:46:55]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:46:55]line СНО: Общий режим [11:46:55]line Чек 158 20.10.2024 11:47 [11:46:55]line Смена: 193 ФФД: 1.0 [11:46:55]line ЗНМ: 0300000167 [11:46:55]line РНМ: 0000000000156251 [11:46:55]line Версия ККМ: v1.0 [11:46:55]line ФМ: 0000000000963346 [11:46:55]line ФД: 69313 [11:46:55]line ФПД: 144307466540048 [11:46:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114703&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69313&fm=144307466540048&tin=02508201610067®Number=0000000000156251&sum=50000 [11:46:55]OFD Sender: Processing packet 69313 [packets to send 18, broken 17] [11:46:55]ProducePacketName [11:46:55]name=ofd_packets/00069313 [11:46:55]OFD Sender: To server: pG, [11:46:55]CommunicateWithHost lk.salyk.kg:30040 [11:46:55]ConnectInit lk.salyk.kg [11:46:55]written 0, free lines is 4095 [11:46:55]Connected sock=10 [11:46:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 D4 49 07 01 80 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 B7 ED 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C1 0E 01 00 35 04 06 00 83 3F 33 48 14 10 16 39 7C 75 6C CE 7B 77 [11:46:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 31 41 47 00 BD D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C1 0E 01 00 F4 03 04 00 5E 97 14 67 B6 04 01 00 00 DD 73 03 73 05 DE 3E 9D [11:46:55]CommunicateWithHost err = 0 [11:46:55]CheckOFDResponse [11:46:55]1017 (14) - 77093643461234 [11:46:55]1041 (16) - 0000000000963346 [11:46:55]1040 (4) - 69313 [11:46:55]1012 (4) - 20.10.2024 05:38 [11:46:55]1206 (1) - 0 [11:46:55]OFD Sender: Remove packet 69313 [11:46:55]ProducePacketName [11:46:55]name=ofd_packets/00069313 [11:46:55]NVStorageDeleteData [11:46:55]Write to MH i2c: 01 00 00 54 D3 27 [11:46:55]Write i2c OK [11:46:55]MH_I2C_Read... [11:46:55]Read from MH i2c: 01 [11:46:55]MH_I2C_Read... [11:46:55]Read from MH i2c: 01 07 00 [11:46:55]MH_I2C_Read... [11:46:55]Read from MH i2c: 01 07 00 54 D3 00 00 00 00 00 F6 0C 30 [11:46:55]RasterBufferAndPrint [11:46:55]line [11:46:55]line [11:46:55]line [11:46:55]line [11:46:55]line [11:46:55]written 0, free lines is 3328 [11:46:55]MH_Cut [11:46:55]Write to MH i2c: D1 01 00 5B D3 01 00 [11:46:55]Write i2c OK [11:46:55]MH_I2C_Read... [11:46:55]Read from MH i2c: D1 [11:46:55]MH_I2C_Read... [11:46:55]Read from MH i2c: D1 01 00 [11:46:55]MH_I2C_Read... [11:46:55]Read from MH i2c: D1 01 00 5B D3 00 FF [11:46:55]Write to MH i2c: 01 00 00 5C D3 2F [11:46:55]Write i2c OK [11:46:55]MH_I2C_Read... [11:46:56]OFD Sender: No OFD packet to send [11:46:56]*** Cut start [11:46:56]*** Partial cut [11:46:56]*** CUTSNS_PIN = 1 [11:46:56]*** CUTSNS_PIN = 0 [11:46:56]*** Brake cut motor [11:46:57]Read from MH i2c: 01 [11:46:57]MH_I2C_Read... [11:46:57]*** Stop cut motor [11:46:57]*** Cut end [11:46:57]Read from MH i2c: 01 07 00 [11:46:57]MH_I2C_Read... [11:46:57]Read from MH i2c: 01 07 00 5C D3 00 00 00 00 00 FF 0F 44 [11:46:57]process_action close_receipt done [11:46:57]requested_data is exist [11:46:57]produce_requested_data [11:46:57]requested_item fm.sn is exist - process it [11:46:57]wFMCommunicate request_size=4 [11:46:57]MH_SAM_APDU [11:46:57]CAPDU: 80 11 00 00 [11:46:57]Write to MH i2c: E2 08 00 5D D3 80 11 00 00 00 00 00 00 AA [11:46:57]Write i2c OK [11:46:57]MH_I2C_Read... [11:46:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:57]Read from MH i2c: E2 [11:46:57]MH_I2C_Read... [11:46:57]Read from MH i2c: E2 17 00 [11:46:57]MH_I2C_Read... [11:46:57]Read from MH i2c: E2 17 00 5D D3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FC [11:46:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:46:57]wFMCommunicate OK [11:46:57]requested_item fd.num is exist - process it [11:46:57]SAM_PROTO_GetFieldsCounters [11:46:57]wFMCommunicate request_size=4 [11:46:57]MH_SAM_APDU [11:46:57]CAPDU: 80 13 00 00 [11:46:57]Write to MH i2c: E2 08 00 5E D3 80 13 00 00 00 00 00 00 AD [11:46:57]Write i2c OK [11:46:57]MH_I2C_Read... [11:46:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:57]Read from MH i2c: E2 [11:46:57]MH_I2C_Read... [11:46:57]Read from MH i2c: E2 62 00 [11:46:57]MH_I2C_Read... [11:46:57]Read from MH i2c: E2 62 00 5E D3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C1 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [11:46:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C1 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:46:57]wFMCommunicate OK [11:46:57]SAM_PROTO_GetFieldsCounters done [11:46:57]requested_item shift.num is exist - process it [11:46:57]requested_item shift.opened is exist - process it [11:46:57]req_shift_opened [11:46:57]FM_GetShiftState [11:46:57]SAM_PROTO_GetShiftState [11:46:57]wFMCommunicate request_size=4 [11:46:57]MH_SAM_APDU [11:46:57]CAPDU: 80 13 01 00 [11:46:57]Write to MH i2c: E2 08 00 5F D3 80 13 01 00 00 00 00 00 AF [11:46:57]Write i2c OK [11:46:57]MH_I2C_Read... [11:46:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:57]Read from MH i2c: E2 [11:46:57]MH_I2C_Read... [11:46:57]Read from MH i2c: E2 0E 00 [11:46:57]MH_I2C_Read... [11:46:57]Read from MH i2c: E2 0E 00 5F D3 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 B5 [11:46:57]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:46:57]wFMCommunicate OK [11:46:57]SAM_PROTO_GetShiftState done [11:46:57]FM_GetShiftState done [11:46:57]req_shift_opened done [11:46:57]requested_item shift.open_date is exist - process it [11:46:57]req_shift_open_date [11:46:57]req_shift_open_date done [11:46:57]produce_requested_data done [11:46:57]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69313,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [11:46:57]process_action_free close_receipt [11:46:57]json_value_free [11:46:57]json_value_free done [11:46:57]process_json_proto returns [11:46:57]Send response to host [11:46:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69313,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [11:46:57]free response buf [11:46:57]execute_script done [11:46:57]execute_script returns [11:46:57]free content buf [11:46:57]Sock 9.Close socket [11:46:57]Sock 9.Thread stoped [11:47:01]OFD Sender: No OFD packet to send [11:47:06]OFD Sender: No OFD packet to send [11:47:07]accept exits with 8 [11:47:07]New connection [11:47:07]New thread 3067116900 created [11:47:07]Thread 3067260260 joined [11:47:07]Waiting for new connection... [11:47:07] Sock 8.Parse request [11:47:07]Sock 8.Check first char [11:47:07]Sock 8.First char is OK [11:47:07]request: POST /json_proto HTTP/1.0 [11:47:07]Method: POST [11:47:07]URL: /json_proto [11:47:07]Method is POST - this is cgi request [11:47:07]url: /json_proto [11:47:07]query_string will be loaded in cgi processing [11:47:07]execute_cgi json_proto POST (null) [11:47:07]execute_cgi path=json_proto method=POST [11:47:07]POST find Content-Length [11:47:07]Host: 172.17.50.3:8080 [11:47:07]Content-Length: 755 [11:47:07]Content-Type: application/json [11:47:07] [11:47:07]POST finish read [11:47:07]Found Content-Length = 755 [11:47:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100970", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:07]execute_script... [11:47:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100970", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:07]POST & json_proto [11:47:07]process_json_proto [11:47:07]json parsed OK: [11:47:07]protocol is kg_v1.0 [11:47:07]action value=close_receipt [11:47:07]process_action close_receipt [11:47:07]cmd_close_receipt [11:47:07]MH_GetDate [11:47:07]Write to MH i2c: F0 00 00 60 D3 22 [11:47:07]Write i2c OK [11:47:07]MH_I2C_Read... [11:47:07]Read from MH i2c: F0 [11:47:07]MH_I2C_Read... [11:47:07]Read from MH i2c: F0 09 00 [11:47:07]MH_I2C_Read... [11:47:07]Read from MH i2c: F0 09 00 60 D3 00 C5 ED 14 67 6B 98 1E 66 DF [11:47:07]GetLastDocTimeStamp 1729424823 [11:47:07]current date 1729424837 [11:47:07]FM_GetShiftState [11:47:07]SAM_PROTO_GetShiftState [11:47:07]wFMCommunicate request_size=4 [11:47:07]MH_SAM_APDU [11:47:07]CAPDU: 80 13 01 00 [11:47:07]Write to MH i2c: E2 08 00 61 D3 80 13 01 00 00 00 00 00 B1 [11:47:07]Write i2c OK [11:47:07]MH_I2C_Read... [11:47:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:07]Read from MH i2c: E2 [11:47:07]MH_I2C_Read... [11:47:07]Read from MH i2c: E2 0E 00 [11:47:07]MH_I2C_Read... [11:47:07]Read from MH i2c: E2 0E 00 61 D3 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 B7 [11:47:07]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:47:07]wFMCommunicate OK [11:47:07]SAM_PROTO_GetShiftState done [11:47:07]FM_GetShiftState done [11:47:07]opened in 1729383220 [11:47:07]opened+sec_in_day 1729469620 [11:47:07]quantity*price = 0 [11:47:07]sum+1 = 1 [11:47:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 159 20.10.2024 11:47 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30100970 ФМ: 0000000000963346 ФД: 69314 ФПД: 133815054633844 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114718&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69314&fm=133815054633844&tin=02508201610067®Number=0000000000156251&sum=0 [11:47:08]StoreToDocumentArchive [11:47:08]shift 193 fd 69314 [11:47:08]save to /storage/0193/doc_00069314 [11:47:08]save last doc name /storage/0193/doc_00069314 to /storage/kkm_last_doc_name [11:47:08]save OK [11:47:08]Clear old archive folders... [11:47:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:47:08]tlvbuf is 0079ED80 [11:47:08]SAM_PROTO_ClearQueue [11:47:08]wFMCommunicate request_size=4 [11:47:08]MH_SAM_APDU [11:47:08]CAPDU: 80 09 00 00 [11:47:08]Write to MH i2c: E2 08 00 6E D3 80 09 00 00 00 00 00 00 B3 [11:47:08]Write i2c OK [11:47:08]MH_I2C_Read... [11:47:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:47:09]Read from MH i2c: E2 [11:47:09]MH_I2C_Read... [11:47:09]Read from MH i2c: E2 03 00 [11:47:09]MH_I2C_Read... [11:47:09]Read from MH i2c: E2 03 00 6E D3 00 90 00 B5 [11:47:09]RAPDU: 90 00 [11:47:09]wFMCommunicate OK [11:47:09]SAM_PROTO_ClearQueue done [11:47:09]KKMCreateOFDPacket [11:47:09]OFDProtocolAddRootSTLVToBuf [11:47:09]FM_MakeSignedData [11:47:09]FM_MakeSignedData [11:47:09]SAM_PROTO_SignData [11:47:09]wFMCommunicate request_size=4 [11:47:09]MH_SAM_APDU [11:47:09]CAPDU: 80 0D 01 02 [11:47:09]Write to MH i2c: E2 08 00 6F D3 80 0D 01 02 00 00 00 00 BB [11:47:09]Write i2c OK [11:47:09]MH_I2C_Read... [11:47:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:47:09]Read from MH i2c: E2 [11:47:09]MH_I2C_Read... [11:47:09]Read from MH i2c: E2 03 00 [11:47:09]MH_I2C_Read... [11:47:09]Read from MH i2c: E2 03 00 6F D3 00 90 00 B6 [11:47:09]RAPDU: 90 00 [11:47:09]wFMCommunicate OK [11:47:09]wFMCommunicate request_size=255 [11:47:09]MH_SAM_APDU [11:47:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 9F 00 00 00 F4 03 04 00 C6 ED 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C2 0E 01 00 35 04 06 00 79 [11:47:09]Write to MH i2c: E2 02 01 70 D3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 C6 ED 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C2 0E 01 00 35 04 06 00 79 00 00 05 [11:47:09]Write i2c OK [11:47:09]MH_I2C_Read... [11:47:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:09]Read from MH i2c: E2 [11:47:09]MH_I2C_Read... [11:47:09]Read from MH i2c: E2 03 00 [11:47:09]MH_I2C_Read... [11:47:09]Read from MH i2c: E2 03 00 70 D3 00 90 00 B7 [11:47:09]RAPDU: 90 00 [11:47:09]wFMCommunicate OK [11:47:09]wFMCommunicate request_size=10 [11:47:09]MH_SAM_APDU [11:47:09]CAPDU: 80 0D 02 02 05 B4 3E CC 0B 74 [11:47:09]Write to MH i2c: E2 0D 00 71 D3 80 0D 02 02 05 00 B4 3E CC 0B 74 00 00 05 [11:47:09]Write i2c OK [11:47:09]MH_I2C_Read... [11:47:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:09]Read from MH i2c: E2 [11:47:09]MH_I2C_Read... [11:47:09]Read from MH i2c: E2 03 00 [11:47:09]MH_I2C_Read... [11:47:09]Read from MH i2c: E2 03 00 71 D3 00 90 00 B8 [11:47:09]RAPDU: 90 00 [11:47:09]wFMCommunicate OK [11:47:09]wFMCommunicate request_size=4 [11:47:09]MH_SAM_APDU [11:47:09]CAPDU: 80 0D 03 02 [11:47:09]Write to MH i2c: E2 08 00 72 D3 80 0D 03 02 00 00 00 00 C0 [11:47:09]Write i2c OK [11:47:09]MH_I2C_Read... [11:47:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:47:09]Read from MH i2c: E2 [11:47:09]MH_I2C_Read... [11:47:09]Read from MH i2c: E2 0B 00 [11:47:09]MH_I2C_Read... [11:47:09]Read from MH i2c: E2 0B 00 72 D3 00 BC 6C DB 64 E0 83 F9 70 90 00 F4 [11:47:09]RAPDU: BC 6C DB 64 E0 83 F9 70 90 00 [11:47:09]wFMCommunicate OK [11:47:09]SAM_PROTO_SignData done [11:47:09]FM_MakeSignedData done [11:47:09]CreateOFDProtocolMessage [11:47:09]wFMCommunicate request_size=4 [11:47:09]MH_SAM_APDU [11:47:09]CAPDU: 80 11 00 00 [11:47:09]Write to MH i2c: E2 08 00 73 D3 80 11 00 00 00 00 00 00 C0 [11:47:09]Write i2c OK [11:47:09]MH_I2C_Read... [11:47:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:09]Read from MH i2c: E2 [11:47:09]MH_I2C_Read... [11:47:09]Read from MH i2c: E2 17 00 [11:47:09]MH_I2C_Read... [11:47:09]Read from MH i2c: E2 17 00 73 D3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 12 [11:47:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:47:09]wFMCommunicate OK [11:47:09]CreateOFDProtocolMessage done [11:47:09]OFDSenderStorePacket 69314 [11:47:09]StoreOFDPacket docnum=69314 [11:47:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 30 45 07 01 CB A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 C6 ED 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C2 0E 01 00 35 04 06 00 79 B4 3E CC 0B 74 BC 6C DB 64 E0 83 F9 70 [11:47:09]CheckFolder [11:47:09]dirname=/storage/ofd_packets [11:47:09]CheckFolder done [11:47:09]ProducePacketName [11:47:09]name=ofd_packets/00069314 [11:47:09]NVStorageSaveData ofd_packets/00069314 [11:47:09]File name is /storage/ofd_packets/00069314 [11:47:09]Write 301 bytes [11:47:09]NVStorageSaveData done [11:47:09]OFDSenderStorePacket done [11:47:09]KKMCreateOFDPacket done [11:47:09]NVStorageSaveData kkm_last_timestamp [11:47:09]File name is /storage/kkm_last_timestamp [11:47:09]Write 4 bytes [11:47:09]NVStorageSaveData done [11:47:09]ExternCall_PrintAddStr [11:47:09]wPrintStart [11:47:09]Write to MH i2c: 01 00 00 74 D3 47 [11:47:09]Write i2c OK [11:47:09]MH_I2C_Read... [11:47:09]Read from MH i2c: 01 [11:47:09]MH_I2C_Read... [11:47:09]Read from MH i2c: 01 07 00 [11:47:09]MH_I2C_Read... [11:47:09]Read from MH i2c: 01 07 00 74 D3 00 00 00 00 00 FF 0F 5C [11:47:09]RasterBufferAndPrint [11:47:09]line Счет N : (1)2885028 [11:47:09]line ИНН: 02508201610067 [11:47:09]line Контрольно-Кассовый Чек [11:47:09]line ПРОДАЖА [11:47:09]line ТРК (МРК, ГНК) : 32 [11:47:09]line Товар: 2710124130 [11:47:09]line Аи-92-К-5 [11:47:09]line 20.000 * 0.00 [11:47:09]line = 0.00 [11:47:09]line НДС 12% НСП 1% [11:47:09]line > о реализуемом товаре [11:47:09]line ИТОГО: 0.00 [11:47:09]line НСП 1% : 0.00 [11:47:09]line НДС 12% : 0.00 [11:47:09]line Наличными: 0.00 [11:47:09]line Безнал.: 0.00 [11:47:09]line Место: АЗС № 85 "Партнер Нефть" [11:47:09]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:47:09]line СНО: Общий режим [11:47:09]line Чек 159 20.10.2024 11:47 [11:47:09]line Смена: 193 ФФД: 1.0 [11:47:09]line ЗНМ: 0300000167 [11:47:09]line РНМ: 0000000000156251 [11:47:09]line Версия ККМ: v1.0 [11:47:09]line Талоны: ТК ГПНА Online [11:47:09]line 30100970 [11:47:09]line ФМ: 0000000000963346 [11:47:09]line ФД: 69314 [11:47:09]line ФПД: 133815054633844 [11:47:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114718&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69314&fm=133815054633844&tin=02508201610067®Number=0000000000156251&sum=0 [11:47:09]OFD Sender: Processing packet 69314 [packets to send 18, broken 17] [11:47:09]ProducePacketName [11:47:09]name=ofd_packets/00069314 [11:47:09]OFD Sender: To server: pG, [11:47:09]CommunicateWithHost lk.salyk.kg:30040 [11:47:09]ConnectInit lk.salyk.kg [11:47:09]written 0, free lines is 4095 [11:47:09]Connected sock=10 [11:47:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 30 45 07 01 CB A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 C6 ED 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C2 0E 01 00 35 04 06 00 79 B4 3E CC 0B 74 BC 6C DB 64 E0 83 F9 70 [11:47:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 92 77 47 00 78 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C2 0E 01 00 F4 03 04 00 6C 97 14 67 B6 04 01 00 00 60 0E D8 8E F6 E9 BD 6B [11:47:10]CommunicateWithHost err = 0 [11:47:10]CheckOFDResponse [11:47:10]1017 (14) - 77093643461234 [11:47:10]1041 (16) - 0000000000963346 [11:47:10]1040 (4) - 69314 [11:47:10]1012 (4) - 20.10.2024 05:38 [11:47:10]1206 (1) - 0 [11:47:10]OFD Sender: Remove packet 69314 [11:47:10]ProducePacketName [11:47:10]name=ofd_packets/00069314 [11:47:10]NVStorageDeleteData [11:47:10]Write to MH i2c: 01 00 00 9E D3 71 [11:47:10]Write i2c OK [11:47:10]MH_I2C_Read... [11:47:10]Read from MH i2c: 01 [11:47:10]MH_I2C_Read... [11:47:10]Read from MH i2c: 01 07 00 [11:47:10]MH_I2C_Read... [11:47:10]Read from MH i2c: 01 07 00 9E D3 00 00 00 00 00 FD 0C 81 [11:47:10]RasterBufferAndPrint [11:47:10]line [11:47:10]line [11:47:10]line [11:47:10]line [11:47:10]line [11:47:10]written 0, free lines is 3334 [11:47:10]MH_Cut [11:47:10]Write to MH i2c: D1 01 00 A5 D3 01 4A [11:47:10]Write i2c OK [11:47:10]MH_I2C_Read... [11:47:10]Read from MH i2c: D1 [11:47:10]MH_I2C_Read... [11:47:10]Read from MH i2c: D1 01 00 [11:47:10]MH_I2C_Read... [11:47:10]Read from MH i2c: D1 01 00 A5 D3 00 49 [11:47:10]Write to MH i2c: 01 00 00 A6 D3 79 [11:47:10]Write i2c OK [11:47:10]MH_I2C_Read... [11:47:10]OFD Sender: No OFD packet to send [11:47:10]*** Cut start [11:47:10]*** Partial cut [11:47:10]*** CUTSNS_PIN = 1 [11:47:11]*** CUTSNS_PIN = 0 [11:47:11]*** Brake cut motor [11:47:11]Read from MH i2c: 01 [11:47:11]MH_I2C_Read... [11:47:11]*** Stop cut motor [11:47:11]*** Cut end [11:47:11]Read from MH i2c: 01 07 00 [11:47:11]MH_I2C_Read... [11:47:11]Read from MH i2c: 01 07 00 A6 D3 00 00 00 00 00 FF 0F 8E [11:47:11]process_action close_receipt done [11:47:11]requested_data is exist [11:47:11]produce_requested_data [11:47:11]requested_item fm.sn is exist - process it [11:47:11]wFMCommunicate request_size=4 [11:47:11]MH_SAM_APDU [11:47:11]CAPDU: 80 11 00 00 [11:47:11]Write to MH i2c: E2 08 00 A7 D3 80 11 00 00 00 00 00 00 F4 [11:47:11]Write i2c OK [11:47:11]MH_I2C_Read... [11:47:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:11]Read from MH i2c: E2 [11:47:11]MH_I2C_Read... [11:47:11]Read from MH i2c: E2 17 00 [11:47:11]MH_I2C_Read... [11:47:11]Read from MH i2c: E2 17 00 A7 D3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 46 [11:47:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:47:11]wFMCommunicate OK [11:47:11]requested_item fd.num is exist - process it [11:47:11]SAM_PROTO_GetFieldsCounters [11:47:11]wFMCommunicate request_size=4 [11:47:11]MH_SAM_APDU [11:47:11]CAPDU: 80 13 00 00 [11:47:11]Write to MH i2c: E2 08 00 A8 D3 80 13 00 00 00 00 00 00 F7 [11:47:11]Write i2c OK [11:47:11]MH_I2C_Read... [11:47:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:11]Read from MH i2c: E2 [11:47:11]MH_I2C_Read... [11:47:11]Read from MH i2c: E2 62 00 [11:47:11]MH_I2C_Read... [11:47:11]Read from MH i2c: E2 62 00 A8 D3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C2 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [11:47:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C2 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:47:11]wFMCommunicate OK [11:47:11]SAM_PROTO_GetFieldsCounters done [11:47:11]requested_item shift.num is exist - process it [11:47:11]requested_item shift.opened is exist - process it [11:47:11]req_shift_opened [11:47:11]FM_GetShiftState [11:47:11]SAM_PROTO_GetShiftState [11:47:11]wFMCommunicate request_size=4 [11:47:11]MH_SAM_APDU [11:47:11]CAPDU: 80 13 01 00 [11:47:11]Write to MH i2c: E2 08 00 A9 D3 80 13 01 00 00 00 00 00 F9 [11:47:11]Write i2c OK [11:47:11]MH_I2C_Read... [11:47:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:11]Read from MH i2c: E2 [11:47:11]MH_I2C_Read... [11:47:11]Read from MH i2c: E2 0E 00 [11:47:11]MH_I2C_Read... [11:47:11]Read from MH i2c: E2 0E 00 A9 D3 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 FF [11:47:11]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:47:11]wFMCommunicate OK [11:47:11]SAM_PROTO_GetShiftState done [11:47:11]FM_GetShiftState done [11:47:11]req_shift_opened done [11:47:11]requested_item shift.open_date is exist - process it [11:47:11]req_shift_open_date [11:47:11]req_shift_open_date done [11:47:11]produce_requested_data done [11:47:11]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69314,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [11:47:11]process_action_free close_receipt [11:47:11]json_value_free [11:47:11]json_value_free done [11:47:11]process_json_proto returns [11:47:11]Send response to host [11:47:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69314,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [11:47:11]free response buf [11:47:11]execute_script done [11:47:11]execute_script returns [11:47:11]free content buf [11:47:11]Sock 8.Close socket [11:47:11]Sock 8.Thread stoped [11:47:15]OFD Sender: No OFD packet to send [11:47:20]OFD Sender: No OFD packet to send [11:47:25]OFD Sender: No OFD packet to send [11:47:30]OFD Sender: No OFD packet to send [11:47:35]OFD Sender: No OFD packet to send [11:47:40]OFD Sender: No OFD packet to send [11:47:45]OFD Sender: No OFD packet to send [11:47:50]OFD Sender: No OFD packet to send [11:47:55]OFD Sender: No OFD packet to send [11:47:56]int [11:47:56]Write to MH i2c: 01 00 00 AA D3 7D [11:47:56]*** FLAG_PRN_PAP1 set [11:47:56]Write i2c OK [11:47:56]MH_I2C_Read... [11:47:56]Read from MH i2c: 01 [11:47:56]MH_I2C_Read... [11:47:56]Read from MH i2c: 01 07 00 [11:47:56]MH_I2C_Read... [11:47:56]Read from MH i2c: 01 07 00 AA D3 00 01 00 00 00 FF 0F 93 [11:47:56]state=0 [11:47:56]No paper [11:47:56]int [11:47:56]Write to MH i2c: 01 00 00 AB D3 7E [11:47:56]*** FLAG_PRN_PAP2 set [11:47:56]Write i2c OK [11:47:56]MH_I2C_Read... [11:47:56]Read from MH i2c: 01 [11:47:56]MH_I2C_Read... [11:47:56]Read from MH i2c: 01 07 00 [11:47:56]MH_I2C_Read... [11:47:56]Read from MH i2c: 01 07 00 AB D3 00 03 00 00 00 FF 0F 96 [11:47:56]state=0 [11:47:56]No paper [11:47:56]Cover opened [11:48:00]OFD Sender: No OFD packet to send [11:48:01]Write to MH i2c: 01 00 00 AC D3 7F [11:48:01]Write i2c OK [11:48:01]MH_I2C_Read... [11:48:01]Read from MH i2c: 01 [11:48:01]MH_I2C_Read... [11:48:01]Read from MH i2c: 01 07 00 [11:48:01]MH_I2C_Read... [11:48:01]Read from MH i2c: 01 07 00 AC D3 00 03 00 00 00 FF 0F 97 [11:48:01]state=3 [11:48:01]No paper [11:48:01]Cover opened [11:48:05]OFD Sender: No OFD packet to send [11:48:06]Write to MH i2c: 01 00 00 AD D3 80 [11:48:06]Write i2c OK [11:48:06]MH_I2C_Read... [11:48:06]Read from MH i2c: 01 [11:48:06]MH_I2C_Read... [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 AD D3 00 03 00 00 00 FF 0F 98 [11:48:06]state=3 [11:48:06]No paper [11:48:06]Cover opened [11:48:07]int [11:48:07]Write to MH i2c: 01 00 00 AE D3 81 [11:48:07]*** FLAG_PRN_PAP2 reset [11:48:07]Write i2c OK [11:48:07]MH_I2C_Read... [11:48:07]Read from MH i2c: 01 [11:48:07]MH_I2C_Read... [11:48:07]Read from MH i2c: 01 07 00 [11:48:07]MH_I2C_Read... [11:48:07]Read from MH i2c: 01 07 00 AE D3 00 01 00 00 00 FF 0F 97 [11:48:07]state=3 [11:48:07]No paper [11:48:07]Cover closed [11:48:08]int [11:48:08]Write to MH i2c: 01 00 00 AF D3 82 [11:48:08]*** FLAG_PRN_PAP2 set [11:48:08]Write i2c OK [11:48:08]MH_I2C_Read... [11:48:08]Read from MH i2c: 01 [11:48:08]MH_I2C_Read... [11:48:08]Read from MH i2c: 01 07 00 [11:48:08]MH_I2C_Read... [11:48:08]Read from MH i2c: 01 07 00 AF D3 00 03 00 00 00 FF 0F 9A [11:48:08]state=0 [11:48:08]No paper [11:48:08]Cover opened [11:48:08]int [11:48:08]Write to MH i2c: 01 00 00 B0 D3 83 [11:48:08]*** FLAG_PRN_PAP2 reset [11:48:08]Write i2c OK [11:48:08]MH_I2C_Read... [11:48:08]Read from MH i2c: 01 [11:48:08]MH_I2C_Read... [11:48:08]Read from MH i2c: 01 07 00 [11:48:08]MH_I2C_Read... [11:48:08]Read from MH i2c: 01 07 00 B0 D3 00 01 00 00 00 FF 0F 99 [11:48:08]state=3 [11:48:08]No paper [11:48:08]Cover closed [11:48:08]int [11:48:08]Write to MH i2c: 01 00 00 B1 D3 84 [11:48:08]*** FLAG_PRN_PAP1 reset [11:48:08]Write i2c OK [11:48:08]MH_I2C_Read... [11:48:08]Read from MH i2c: 01 [11:48:08]MH_I2C_Read... [11:48:08]Read from MH i2c: 01 07 00 [11:48:08]MH_I2C_Read... [11:48:08]Read from MH i2c: 01 07 00 B1 D3 00 00 00 00 00 FF 0F 99 [11:48:08]state=0 [11:48:10]OFD Sender: No OFD packet to send [11:48:15]OFD Sender: No OFD packet to send [11:48:20]OFD Sender: No OFD packet to send [11:48:25]OFD Sender: No OFD packet to send [11:48:30]OFD Sender: No OFD packet to send [11:48:35]OFD Sender: No OFD packet to send [11:48:40]OFD Sender: No OFD packet to send [11:48:45]OFD Sender: No OFD packet to send [11:48:47]accept exits with 9 [11:48:47]New connection [11:48:47]New thread 3067260260 created [11:48:47]Thread 3067116900 joined [11:48:47]Waiting for new connection... [11:48:47] Sock 9.Parse request [11:48:47]Sock 9.Check first char [11:48:47]Sock 9.First char is OK [11:48:47]request: POST /json_proto HTTP/1.0 [11:48:47]Method: POST [11:48:47]URL: /json_proto [11:48:47]Method is POST - this is cgi request [11:48:47]url: /json_proto [11:48:47]query_string will be loaded in cgi processing [11:48:47]execute_cgi json_proto POST (null) [11:48:47]execute_cgi path=json_proto method=POST [11:48:47]POST find Content-Length [11:48:47]Host: 172.17.50.3:8080 [11:48:47]Content-Length: 678 [11:48:47]Content-Type: application/json [11:48:47] [11:48:47]POST finish read [11:48:47]Found Content-Length = 678 [11:48:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:47]execute_script... [11:48:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:47]POST & json_proto [11:48:47]process_json_proto [11:48:47]json parsed OK: [11:48:47]protocol is kg_v1.0 [11:48:47]action value=close_receipt [11:48:47]process_action close_receipt [11:48:47]cmd_close_receipt [11:48:47]MH_GetDate [11:48:47]Write to MH i2c: F0 00 00 B2 D3 74 [11:48:47]Write i2c OK [11:48:47]MH_I2C_Read... [11:48:47]Read from MH i2c: F0 [11:48:47]MH_I2C_Read... [11:48:47]Read from MH i2c: F0 09 00 [11:48:47]MH_I2C_Read... [11:48:47]Read from MH i2c: F0 09 00 B2 D3 00 2A EE 14 67 6B 98 1E 66 97 [11:48:47]GetLastDocTimeStamp 1729424838 [11:48:47]current date 1729424938 [11:48:47]FM_GetShiftState [11:48:47]SAM_PROTO_GetShiftState [11:48:47]wFMCommunicate request_size=4 [11:48:47]MH_SAM_APDU [11:48:47]CAPDU: 80 13 01 00 [11:48:47]Write to MH i2c: E2 08 00 B3 D3 80 13 01 00 00 00 00 00 03 [11:48:47]Write i2c OK [11:48:47]MH_I2C_Read... [11:48:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:48]Read from MH i2c: E2 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: E2 0E 00 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: E2 0E 00 B3 D3 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 09 [11:48:48]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:48:48]wFMCommunicate OK [11:48:48]SAM_PROTO_GetShiftState done [11:48:48]FM_GetShiftState done [11:48:48]opened in 1729383220 [11:48:48]opened+sec_in_day 1729469620 [11:48:48]quantity*price = 20003 [11:48:48]sum+1 = 20004 [11:48:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 160 20.10.2024 11:48 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69315 ФПД: 85819896978712 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114858&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69315&fm=85819896978712&tin=02508201610067®Number=0000000000156251&sum=20000 [11:48:49]StoreToDocumentArchive [11:48:49]shift 193 fd 69315 [11:48:49]save to /storage/0193/doc_00069315 [11:48:49]save last doc name /storage/0193/doc_00069315 to /storage/kkm_last_doc_name [11:48:49]save OK [11:48:49]Clear old archive folders... [11:48:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:48:49]tlvbuf is 006872A0 [11:48:49]SAM_PROTO_ClearQueue [11:48:49]wFMCommunicate request_size=4 [11:48:49]MH_SAM_APDU [11:48:49]CAPDU: 80 09 00 00 [11:48:49]Write to MH i2c: E2 08 00 C0 D3 80 09 00 00 00 00 00 00 05 [11:48:49]Write i2c OK [11:48:49]MH_I2C_Read... [11:48:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:49]Read from MH i2c: E2 [11:48:49]MH_I2C_Read... [11:48:49]Read from MH i2c: E2 03 00 [11:48:49]MH_I2C_Read... [11:48:49]Read from MH i2c: E2 03 00 C0 D3 00 90 00 07 [11:48:49]RAPDU: 90 00 [11:48:49]wFMCommunicate OK [11:48:49]SAM_PROTO_ClearQueue done [11:48:49]KKMCreateOFDPacket [11:48:49]OFDProtocolAddRootSTLVToBuf [11:48:49]FM_MakeSignedData [11:48:49]FM_MakeSignedData [11:48:49]SAM_PROTO_SignData [11:48:49]wFMCommunicate request_size=4 [11:48:49]MH_SAM_APDU [11:48:49]CAPDU: 80 0D 01 02 [11:48:49]Write to MH i2c: E2 08 00 C1 D3 80 0D 01 02 00 00 00 00 0D [11:48:49]Write i2c OK [11:48:49]MH_I2C_Read... [11:48:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:49]Read from MH i2c: E2 [11:48:49]MH_I2C_Read... [11:48:49]Read from MH i2c: E2 03 00 [11:48:49]MH_I2C_Read... [11:48:49]Read from MH i2c: E2 03 00 C1 D3 00 90 00 08 [11:48:49]RAPDU: 90 00 [11:48:49]wFMCommunicate OK [11:48:49]wFMCommunicate request_size=255 [11:48:49]MH_SAM_APDU [11:48:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 2A EE 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C3 0E 01 00 35 04 06 00 4E [11:48:49]Write to MH i2c: E2 02 01 C2 D3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 2A EE 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C3 0E 01 00 35 04 06 00 4E 00 00 6C [11:48:49]Write i2c OK [11:48:49]MH_I2C_Read... [11:48:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:49]Read from MH i2c: E2 [11:48:49]MH_I2C_Read... [11:48:49]Read from MH i2c: E2 03 00 [11:48:49]MH_I2C_Read... [11:48:49]Read from MH i2c: E2 03 00 C2 D3 00 90 00 09 [11:48:49]RAPDU: 90 00 [11:48:49]wFMCommunicate OK [11:48:49]wFMCommunicate request_size=10 [11:48:49]MH_SAM_APDU [11:48:49]CAPDU: 80 0D 02 02 05 0D 80 79 5D 18 [11:48:49]Write to MH i2c: E2 0D 00 C3 D3 80 0D 02 02 05 00 0D 80 79 5D 18 00 00 95 [11:48:49]Write i2c OK [11:48:49]MH_I2C_Read... [11:48:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:49]Read from MH i2c: E2 [11:48:49]MH_I2C_Read... [11:48:49]Read from MH i2c: E2 03 00 [11:48:49]MH_I2C_Read... [11:48:49]Read from MH i2c: E2 03 00 C3 D3 00 90 00 0A [11:48:49]RAPDU: 90 00 [11:48:49]wFMCommunicate OK [11:48:49]wFMCommunicate request_size=4 [11:48:49]MH_SAM_APDU [11:48:49]CAPDU: 80 0D 03 02 [11:48:49]Write to MH i2c: E2 08 00 C4 D3 80 0D 03 02 00 00 00 00 12 [11:48:49]Write i2c OK [11:48:49]MH_I2C_Read... [11:48:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:49]Read from MH i2c: E2 [11:48:49]MH_I2C_Read... [11:48:49]Read from MH i2c: E2 0B 00 [11:48:49]MH_I2C_Read... [11:48:49]Read from MH i2c: E2 0B 00 C4 D3 00 51 17 FE F2 D4 A5 AF 75 90 00 08 [11:48:49]RAPDU: 51 17 FE F2 D4 A5 AF 75 90 00 [11:48:49]wFMCommunicate OK [11:48:49]SAM_PROTO_SignData done [11:48:49]FM_MakeSignedData done [11:48:49]CreateOFDProtocolMessage [11:48:49]wFMCommunicate request_size=4 [11:48:49]MH_SAM_APDU [11:48:49]CAPDU: 80 11 00 00 [11:48:49]Write to MH i2c: E2 08 00 C5 D3 80 11 00 00 00 00 00 00 12 [11:48:49]Write i2c OK [11:48:49]MH_I2C_Read... [11:48:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:49]Read from MH i2c: E2 [11:48:49]MH_I2C_Read... [11:48:49]Read from MH i2c: E2 17 00 [11:48:49]MH_I2C_Read... [11:48:49]Read from MH i2c: E2 17 00 C5 D3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 64 [11:48:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:48:49]wFMCommunicate OK [11:48:49]CreateOFDProtocolMessage done [11:48:49]OFDSenderStorePacket 69315 [11:48:49]StoreOFDPacket docnum=69315 [11:48:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 89 3A 07 01 24 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 2A EE 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C3 0E 01 00 35 04 06 00 4E 0D 80 79 5D 18 51 17 FE F2 D4 A5 AF 75 [11:48:49]CheckFolder [11:48:49]dirname=/storage/ofd_packets [11:48:49]CheckFolder done [11:48:49]ProducePacketName [11:48:49]name=ofd_packets/00069315 [11:48:49]NVStorageSaveData ofd_packets/00069315 [11:48:49]File name is /storage/ofd_packets/00069315 [11:48:49]Write 301 bytes [11:48:49]NVStorageSaveData done [11:48:49]OFDSenderStorePacket done [11:48:49]KKMCreateOFDPacket done [11:48:49]NVStorageSaveData kkm_last_timestamp [11:48:49]File name is /storage/kkm_last_timestamp [11:48:49]Write 4 bytes [11:48:49]NVStorageSaveData done [11:48:49]ExternCall_PrintAddStr [11:48:49]wPrintStart [11:48:49]Write to MH i2c: 01 00 00 C6 D3 99 [11:48:49]OFD Sender: Processing packet 69315 [packets to send 18, broken 17] [11:48:49]ProducePacketName [11:48:49]name=ofd_packets/00069315 [11:48:49]OFD Sender: To server: pG, [11:48:49]CommunicateWithHost lk.salyk.kg:30040 [11:48:49]ConnectInit lk.salyk.kg [11:48:49]Write i2c OK [11:48:49]MH_I2C_Read... [11:48:49]Read from MH i2c: 01 [11:48:49]MH_I2C_Read... [11:48:49]Read from MH i2c: 01 07 00 [11:48:49]MH_I2C_Read... [11:48:49]Read from MH i2c: 01 07 00 C6 D3 00 00 00 00 00 FF 0F AE [11:48:49]RasterBufferAndPrint [11:48:49]line Счет N : (1)2885032 [11:48:49]line ИНН: 02508201610067 [11:48:49]line Контрольно-Кассовый Чек [11:48:49]line ПРОДАЖА [11:48:49]line ТРК (МРК, ГНК) : 42 [11:48:49]line Товар: 2710124130 [11:48:49]line Аи-92-К-5 [11:48:49]line 2.990 * 66.90 [11:48:49]line = 200.03 [11:48:49]line НДС 12% НСП 1% [11:48:49]line > о реализуемом товаре [11:48:49]line ОКРУГЛЕНИЕ: -0.03 [11:48:49]line ИТОГО: 200.00 [11:48:49]line Внесено: 200.00 [11:48:49]line СДАЧА: 0.00 [11:48:49]line НСП 1% : 1.77 [11:48:49]line НДС 12% : 21.24 [11:48:49]line Наличными: 200.00 [11:48:49]line Безнал.: 0.00 [11:48:49]line Место: АЗС № 85 "Партнер Нефть" [11:48:49]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:48:49]line СНО: Общий режим [11:48:49]line Чек 160 20.10.2024 11:48 [11:48:49]line Смена: 193 ФФД: 1.0 [11:48:49]line ЗНМ: 0300000167 [11:48:49]line РНМ: 0000000000156251 [11:48:49]line Версия ККМ: v1.0 [11:48:49]line ФМ: 0000000000963346 [11:48:49]line ФД: 69315 [11:48:49]line ФПД: 85819896978712 [11:48:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114858&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69315&fm=85819896978712&tin=02508201610067®Number=0000000000156251&sum=20000 [11:48:49]written 0, free lines is 4095 [11:48:49]Connected sock=8 [11:48:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 89 3A 07 01 24 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 2A EE 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C3 0E 01 00 35 04 06 00 4E 0D 80 79 5D 18 51 17 FE F2 D4 A5 AF 75 [11:48:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 09 BF 47 00 F8 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C3 0E 01 00 F4 03 04 00 D0 97 14 67 B6 04 01 00 00 7A 25 E8 6F 7E F2 87 3E [11:48:50]CommunicateWithHost err = 0 [11:48:50]CheckOFDResponse [11:48:50]1017 (14) - 77093643461234 [11:48:50]1041 (16) - 0000000000963346 [11:48:50]1040 (4) - 69315 [11:48:50]1012 (4) - 20.10.2024 05:40 [11:48:50]1206 (1) - 0 [11:48:50]OFD Sender: Remove packet 69315 [11:48:50]ProducePacketName [11:48:50]name=ofd_packets/00069315 [11:48:50]NVStorageDeleteData [11:48:50]Write to MH i2c: 01 00 00 F1 D3 C4 [11:48:50]Write i2c OK [11:48:50]MH_I2C_Read... [11:48:50]Read from MH i2c: 01 [11:48:50]MH_I2C_Read... [11:48:50]Read from MH i2c: 01 07 00 [11:48:50]MH_I2C_Read... [11:48:50]Read from MH i2c: 01 07 00 F1 D3 00 00 00 00 00 F4 0C CB [11:48:50]RasterBufferAndPrint [11:48:50]line [11:48:50]line [11:48:50]line [11:48:50]line [11:48:50]line [11:48:50]written 0, free lines is 3326 [11:48:50]MH_Cut [11:48:50]Write to MH i2c: D1 01 00 F8 D3 01 9D [11:48:50]Write i2c OK [11:48:50]MH_I2C_Read... [11:48:50]Read from MH i2c: D1 [11:48:50]MH_I2C_Read... [11:48:50]Read from MH i2c: D1 01 00 [11:48:50]MH_I2C_Read... [11:48:50]Read from MH i2c: D1 01 00 F8 D3 00 9C [11:48:50]Write to MH i2c: 01 00 00 F9 D3 CC [11:48:50]Write i2c OK [11:48:50]MH_I2C_Read... [11:48:50]OFD Sender: No OFD packet to send [11:48:50]*** Cut start [11:48:50]*** Partial cut [11:48:50]*** CUTSNS_PIN = 1 [11:48:50]*** CUTSNS_PIN = 0 [11:48:51]*** Brake cut motor [11:48:51]Read from MH i2c: 01 [11:48:51]MH_I2C_Read... [11:48:51]*** Stop cut motor [11:48:51]*** Cut end [11:48:51]Read from MH i2c: 01 07 00 [11:48:51]MH_I2C_Read... [11:48:51]Read from MH i2c: 01 07 00 F9 D3 00 00 00 00 00 FF 0F E1 [11:48:51]process_action close_receipt done [11:48:51]requested_data is exist [11:48:51]produce_requested_data [11:48:51]requested_item fm.sn is exist - process it [11:48:51]wFMCommunicate request_size=4 [11:48:51]MH_SAM_APDU [11:48:51]CAPDU: 80 11 00 00 [11:48:51]Write to MH i2c: E2 08 00 FA D3 80 11 00 00 00 00 00 00 47 [11:48:51]Write i2c OK [11:48:51]MH_I2C_Read... [11:48:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:51]Read from MH i2c: E2 [11:48:51]MH_I2C_Read... [11:48:51]Read from MH i2c: E2 17 00 [11:48:51]MH_I2C_Read... [11:48:51]Read from MH i2c: E2 17 00 FA D3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 99 [11:48:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:48:51]wFMCommunicate OK [11:48:51]requested_item fd.num is exist - process it [11:48:51]SAM_PROTO_GetFieldsCounters [11:48:51]wFMCommunicate request_size=4 [11:48:51]MH_SAM_APDU [11:48:51]CAPDU: 80 13 00 00 [11:48:51]Write to MH i2c: E2 08 00 FB D3 80 13 00 00 00 00 00 00 4A [11:48:51]Write i2c OK [11:48:51]MH_I2C_Read... [11:48:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:51]Read from MH i2c: E2 [11:48:51]MH_I2C_Read... [11:48:51]Read from MH i2c: E2 62 00 [11:48:51]MH_I2C_Read... [11:48:51]Read from MH i2c: E2 62 00 FB D3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C3 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [11:48:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C3 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:48:51]wFMCommunicate OK [11:48:51]SAM_PROTO_GetFieldsCounters done [11:48:51]requested_item shift.num is exist - process it [11:48:51]requested_item shift.opened is exist - process it [11:48:51]req_shift_opened [11:48:51]FM_GetShiftState [11:48:51]SAM_PROTO_GetShiftState [11:48:51]wFMCommunicate request_size=4 [11:48:51]MH_SAM_APDU [11:48:51]CAPDU: 80 13 01 00 [11:48:51]Write to MH i2c: E2 08 00 FC D3 80 13 01 00 00 00 00 00 4C [11:48:51]Write i2c OK [11:48:51]MH_I2C_Read... [11:48:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:51]Read from MH i2c: E2 [11:48:51]MH_I2C_Read... [11:48:51]Read from MH i2c: E2 0E 00 [11:48:51]MH_I2C_Read... [11:48:51]Read from MH i2c: E2 0E 00 FC D3 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 52 [11:48:51]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:48:51]wFMCommunicate OK [11:48:51]SAM_PROTO_GetShiftState done [11:48:51]FM_GetShiftState done [11:48:51]req_shift_opened done [11:48:51]requested_item shift.open_date is exist - process it [11:48:51]req_shift_open_date [11:48:51]req_shift_open_date done [11:48:51]produce_requested_data done [11:48:51]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69315,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [11:48:51]process_action_free close_receipt [11:48:51]json_value_free [11:48:51]json_value_free done [11:48:51]process_json_proto returns [11:48:51]Send response to host [11:48:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69315,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [11:48:51]free response buf [11:48:51]execute_script done [11:48:51]execute_script returns [11:48:51]free content buf [11:48:51]Sock 9.Close socket [11:48:51]Sock 9.Thread stoped [11:48:52]accept exits with 10 [11:48:52]New connection [11:48:52]New thread 3067116900 created [11:48:52]Thread 3067260260 joined [11:48:52]Waiting for new connection... [11:48:52] Sock 10.Parse request [11:48:52]Sock 10.Check first char [11:48:52]Sock 10.First char is OK [11:48:52]request: POST /json_proto HTTP/1.0 [11:48:52]Method: POST [11:48:52]URL: /json_proto [11:48:52]Method is POST - this is cgi request [11:48:52]url: /json_proto [11:48:52]query_string will be loaded in cgi processing [11:48:52]execute_cgi json_proto POST (null) [11:48:52]execute_cgi path=json_proto method=POST [11:48:52]POST find Content-Length [11:48:52]Host: 172.17.50.3:8080 [11:48:52]Content-Length: 683 [11:48:52]Content-Type: application/json [11:48:52] [11:48:52]POST finish read [11:48:52]Found Content-Length = 683 [11:48:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:52]execute_script... [11:48: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)2885031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:52]POST & json_proto [11:48:52]process_json_proto [11:48:52]json parsed OK: [11:48:52]protocol is kg_v1.0 [11:48:52]action value=close_receipt [11:48:52]process_action close_receipt [11:48:52]cmd_close_receipt [11:48:52]MH_GetDate [11:48:52]Write to MH i2c: F0 00 00 FD D3 BF [11:48:52]Write i2c OK [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: F0 [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: F0 09 00 [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: F0 09 00 FD D3 00 2E EE 14 67 6B 98 1E 66 E6 [11:48:52]GetLastDocTimeStamp 1729424938 [11:48:52]current date 1729424942 [11:48:52]FM_GetShiftState [11:48:52]SAM_PROTO_GetShiftState [11:48:52]wFMCommunicate request_size=4 [11:48:52]MH_SAM_APDU [11:48:52]CAPDU: 80 13 01 00 [11:48:52]Write to MH i2c: E2 08 00 FE D3 80 13 01 00 00 00 00 00 4E [11:48:52]Write i2c OK [11:48:52]MH_I2C_Read... [11:48:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:52]Read from MH i2c: E2 [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: E2 0E 00 [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: E2 0E 00 FE D3 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 54 [11:48:52]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:48:52]wFMCommunicate OK [11:48:52]SAM_PROTO_GetShiftState done [11:48:52]FM_GetShiftState done [11:48:52]opened in 1729383220 [11:48:52]opened+sec_in_day 1729469620 [11:48:52]quantity*price = 100015 [11:48:52]sum+1 = 100017 [11:48:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 161 20.10.2024 11:49 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69316 ФПД: 103319767019904 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114902&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69316&fm=103319767019904&tin=02508201610067®Number=0000000000156251&sum=100000 [11:48:53]StoreToDocumentArchive [11:48:53]shift 193 fd 69316 [11:48:53]save to /storage/0193/doc_00069316 [11:48:53]save last doc name /storage/0193/doc_00069316 to /storage/kkm_last_doc_name [11:48:53]save OK [11:48:53]Clear old archive folders... [11:48:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:48:53]tlvbuf is 004A2220 [11:48:53]SAM_PROTO_ClearQueue [11:48:53]wFMCommunicate request_size=4 [11:48:53]MH_SAM_APDU [11:48:53]CAPDU: 80 09 00 00 [11:48:53]Write to MH i2c: E2 08 00 0B D4 80 09 00 00 00 00 00 00 51 [11:48:53]Write i2c OK [11:48:53]MH_I2C_Read... [11:48:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:53]Read from MH i2c: E2 [11:48:53]MH_I2C_Read... [11:48:53]Read from MH i2c: E2 03 00 [11:48:53]MH_I2C_Read... [11:48:53]Read from MH i2c: E2 03 00 0B D4 00 90 00 53 [11:48:53]RAPDU: 90 00 [11:48:53]wFMCommunicate OK [11:48:53]SAM_PROTO_ClearQueue done [11:48:53]KKMCreateOFDPacket [11:48:53]OFDProtocolAddRootSTLVToBuf [11:48:53]FM_MakeSignedData [11:48:53]FM_MakeSignedData [11:48:53]SAM_PROTO_SignData [11:48:53]wFMCommunicate request_size=4 [11:48:53]MH_SAM_APDU [11:48:53]CAPDU: 80 0D 01 02 [11:48:53]Write to MH i2c: E2 08 00 0C D4 80 0D 01 02 00 00 00 00 59 [11:48:53]Write i2c OK [11:48:53]MH_I2C_Read... [11:48:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:53]Read from MH i2c: E2 [11:48:53]MH_I2C_Read... [11:48:53]Read from MH i2c: E2 03 00 [11:48:53]MH_I2C_Read... [11:48:53]Read from MH i2c: E2 03 00 0C D4 00 90 00 54 [11:48:53]RAPDU: 90 00 [11:48:53]wFMCommunicate OK [11:48:53]wFMCommunicate request_size=255 [11:48:53]MH_SAM_APDU [11:48:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 2E EE 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C4 0E 01 00 35 04 06 00 5D [11:48:53]Write to MH i2c: E2 02 01 0D D4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 2E EE 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C4 0E 01 00 35 04 06 00 5D 00 00 05 [11:48:53]Write i2c OK [11:48:53]MH_I2C_Read... [11:48:53]Read from MH i2c: E2 [11:48:53]MH_I2C_Read... [11:48:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:53]Read from MH i2c: E2 03 00 [11:48:53]MH_I2C_Read... [11:48:53]Read from MH i2c: E2 03 00 0D D4 00 90 00 55 [11:48:53]RAPDU: 90 00 [11:48:53]wFMCommunicate OK [11:48:53]wFMCommunicate request_size=10 [11:48:53]MH_SAM_APDU [11:48:53]CAPDU: 80 0D 02 02 05 F8 02 02 F1 80 [11:48:53]Write to MH i2c: E2 0D 00 0E D4 80 0D 02 02 05 00 F8 02 02 F1 80 00 00 D3 [11:48:53]Write i2c OK [11:48:53]MH_I2C_Read... [11:48:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:53]Read from MH i2c: E2 [11:48:53]MH_I2C_Read... [11:48:53]Read from MH i2c: E2 03 00 [11:48:53]MH_I2C_Read... [11:48:53]Read from MH i2c: E2 03 00 0E D4 00 90 00 56 [11:48:53]RAPDU: 90 00 [11:48:53]wFMCommunicate OK [11:48:53]wFMCommunicate request_size=4 [11:48:53]MH_SAM_APDU [11:48:53]CAPDU: 80 0D 03 02 [11:48:53]Write to MH i2c: E2 08 00 0F D4 80 0D 03 02 00 00 00 00 5E [11:48:54]Write i2c OK [11:48:54]MH_I2C_Read... [11:48:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:54]Read from MH i2c: E2 [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: E2 0B 00 [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: E2 0B 00 0F D4 00 CA 47 D8 91 CA 6F 71 61 90 00 E4 [11:48:54]RAPDU: CA 47 D8 91 CA 6F 71 61 90 00 [11:48:54]wFMCommunicate OK [11:48:54]SAM_PROTO_SignData done [11:48:54]FM_MakeSignedData done [11:48:54]CreateOFDProtocolMessage [11:48:54]wFMCommunicate request_size=4 [11:48:54]MH_SAM_APDU [11:48:54]CAPDU: 80 11 00 00 [11:48:54]Write to MH i2c: E2 08 00 10 D4 80 11 00 00 00 00 00 00 5E [11:48:54]Write i2c OK [11:48:54]MH_I2C_Read... [11:48:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:54]Read from MH i2c: E2 [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: E2 17 00 [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: E2 17 00 10 D4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B0 [11:48:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:48:54]wFMCommunicate OK [11:48:54]CreateOFDProtocolMessage done [11:48:54]OFDSenderStorePacket 69316 [11:48:54]StoreOFDPacket docnum=69316 [11:48:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 6C 10 07 01 42 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 2E EE 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C4 0E 01 00 35 04 06 00 5D F8 02 02 F1 80 CA 47 D8 91 CA 6F 71 61 [11:48:54]CheckFolder [11:48:54]dirname=/storage/ofd_packets [11:48:54]CheckFolder done [11:48:54]ProducePacketName [11:48:54]name=ofd_packets/00069316 [11:48:54]NVStorageSaveData ofd_packets/00069316 [11:48:54]File name is /storage/ofd_packets/00069316 [11:48:54]Write 301 bytes [11:48:54]NVStorageSaveData done [11:48:54]OFDSenderStorePacket done [11:48:54]KKMCreateOFDPacket done [11:48:54]NVStorageSaveData kkm_last_timestamp [11:48:54]File name is /storage/kkm_last_timestamp [11:48:54]Write 4 bytes [11:48:54]NVStorageSaveData done [11:48:54]ExternCall_PrintAddStr [11:48:54]wPrintStart [11:48:54]Write to MH i2c: 01 00 00 11 D4 E5 [11:48:54]Write i2c OK [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: 01 [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: 01 07 00 [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: 01 07 00 11 D4 00 00 00 00 00 FF 0F FA [11:48:54]RasterBufferAndPrint [11:48:54]line Счет N : (1)2885031 [11:48:54]line ИНН: 02508201610067 [11:48:54]line Контрольно-Кассовый Чек [11:48:54]line ПРОДАЖА [11:48:54]line ТРК (МРК, ГНК) : 12 [11:48:54]line Товар: 2710124130 [11:48:54]line Аи-92-К-5 [11:48:54]line 14.950 * 66.90 [11:48:54]line = 1000.16 [11:48:54]line НДС 12% НСП 1% [11:48:54]line > о реализуемом товаре [11:48:54]line ОКРУГЛЕНИЕ: -0.16 [11:48:54]line ИТОГО: 1000.00 [11:48:54]line Внесено: 1000.00 [11:48:54]line СДАЧА: 0.00 [11:48:54]line НСП 1% : 8.85 [11:48:54]line НДС 12% : 106.21 [11:48:54]line Наличными: 1000.00 [11:48:54]line Безнал.: 0.00 [11:48:54]line Место: АЗС № 85 "Партнер Нефть" [11:48:54]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:48:54]line СНО: Общий режим [11:48:54]line Чек 161 20.10.2024 11:49 [11:48:54]line Смена: 193 ФФД: 1.0 [11:48:54]line ЗНМ: 0300000167 [11:48:54]line РНМ: 0000000000156251 [11:48:54]line Версия ККМ: v1.0 [11:48:54]line ФМ: 0000000000963346 [11:48:54]line ФД: 69316 [11:48:54]line ФПД: 103319767019904 [11:48:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T114902&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69316&fm=103319767019904&tin=02508201610067®Number=0000000000156251&sum=100000 [11:48:54]OFD Sender: Processing packet 69316 [packets to send 18, broken 17] [11:48:54]ProducePacketName [11:48:54]name=ofd_packets/00069316 [11:48:54]OFD Sender: To server: pG, [11:48:54]CommunicateWithHost lk.salyk.kg:30040 [11:48:54]ConnectInit lk.salyk.kg [11:48:54]written 0, free lines is 4095 [11:48:54]Connected sock=9 [11:48:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 6C 10 07 01 42 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 2E EE 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C4 0E 01 00 35 04 06 00 5D F8 02 02 F1 80 CA 47 D8 91 CA 6F 71 61 [11:48:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 88 16 47 00 DD 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C4 0E 01 00 F4 03 04 00 D5 97 14 67 B6 04 01 00 00 B8 3D 7A 96 52 17 5F 47 [11:48:54]CommunicateWithHost err = 0 [11:48:54]CheckOFDResponse [11:48:54]1017 (14) - 77093643461234 [11:48:54]1041 (16) - 0000000000963346 [11:48:54]1040 (4) - 69316 [11:48:54]1012 (4) - 20.10.2024 05:40 [11:48:54]1206 (1) - 0 [11:48:54]OFD Sender: Remove packet 69316 [11:48:54]ProducePacketName [11:48:54]name=ofd_packets/00069316 [11:48:54]NVStorageDeleteData [11:48:54]Write to MH i2c: 01 00 00 3C D4 10 [11:48:54]Write i2c OK [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: 01 [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: 01 07 00 [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: 01 07 00 3C D4 00 00 00 00 00 F9 0C 1C [11:48:54]RasterBufferAndPrint [11:48:54]line [11:48:54]line [11:48:54]line [11:48:54]line [11:48:54]line [11:48:54]written 0, free lines is 3339 [11:48:54]MH_Cut [11:48:54]Write to MH i2c: D1 01 00 43 D4 01 E9 [11:48:54]Write i2c OK [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: D1 [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: D1 01 00 [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: D1 01 00 43 D4 00 E8 [11:48:54]Write to MH i2c: 01 00 00 44 D4 18 [11:48:54]Write i2c OK [11:48:54]MH_I2C_Read... [11:48:55]OFD Sender: No OFD packet to send [11:48:55]*** Cut start [11:48:55]*** Partial cut [11:48:55]*** CUTSNS_PIN = 1 [11:48:55]*** CUTSNS_PIN = 0 [11:48:55]*** Brake cut motor [11:48:56]Read from MH i2c: 01 [11:48:56]MH_I2C_Read... [11:48:56]*** Stop cut motor [11:48:56]*** Cut end [11:48:56]Read from MH i2c: 01 07 00 [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: 01 07 00 44 D4 00 00 00 00 00 FF 0F 2D [11:48:56]process_action close_receipt done [11:48:56]requested_data is exist [11:48:56]produce_requested_data [11:48:56]requested_item fm.sn is exist - process it [11:48:56]wFMCommunicate request_size=4 [11:48:56]MH_SAM_APDU [11:48:56]CAPDU: 80 11 00 00 [11:48:56]Write to MH i2c: E2 08 00 45 D4 80 11 00 00 00 00 00 00 93 [11:48:56]Write i2c OK [11:48:56]MH_I2C_Read... [11:48:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:56]Read from MH i2c: E2 [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: E2 17 00 [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: E2 17 00 45 D4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E5 [11:48:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:48:56]wFMCommunicate OK [11:48:56]requested_item fd.num is exist - process it [11:48:56]SAM_PROTO_GetFieldsCounters [11:48:56]wFMCommunicate request_size=4 [11:48:56]MH_SAM_APDU [11:48:56]CAPDU: 80 13 00 00 [11:48:56]Write to MH i2c: E2 08 00 46 D4 80 13 00 00 00 00 00 00 96 [11:48:56]Write i2c OK [11:48:56]MH_I2C_Read... [11:48:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:56]Read from MH i2c: E2 [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: E2 62 00 [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: E2 62 00 46 D4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C4 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [11:48:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C4 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:48:56]wFMCommunicate OK [11:48:56]SAM_PROTO_GetFieldsCounters done [11:48:56]requested_item shift.num is exist - process it [11:48:56]requested_item shift.opened is exist - process it [11:48:56]req_shift_opened [11:48:56]FM_GetShiftState [11:48:56]SAM_PROTO_GetShiftState [11:48:56]wFMCommunicate request_size=4 [11:48:56]MH_SAM_APDU [11:48:56]CAPDU: 80 13 01 00 [11:48:56]Write to MH i2c: E2 08 00 47 D4 80 13 01 00 00 00 00 00 98 [11:48:56]Write i2c OK [11:48:56]MH_I2C_Read... [11:48:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:56]Read from MH i2c: E2 [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: E2 0E 00 [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: E2 0E 00 47 D4 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 9E [11:48:56]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:48:56]wFMCommunicate OK [11:48:56]SAM_PROTO_GetShiftState done [11:48:56]FM_GetShiftState done [11:48:56]req_shift_opened done [11:48:56]requested_item shift.open_date is exist - process it [11:48:56]req_shift_open_date [11:48:56]req_shift_open_date done [11:48:56]produce_requested_data done [11:48:56]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69316,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [11:48:56]process_action_free close_receipt [11:48:56]json_value_free [11:48:56]json_value_free done [11:48:56]process_json_proto returns [11:48:56]Send response to host [11:48:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69316,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [11:48:56]free response buf [11:48:56]execute_script done [11:48:56]execute_script returns [11:48:56]free content buf [11:48:56]Sock 10.Close socket [11:48:56]Sock 10.Thread stoped [11:49:00]OFD Sender: No OFD packet to send [11:49:05]OFD Sender: No OFD packet to send [11:49:10]OFD Sender: No OFD packet to send [11:49:15]OFD Sender: No OFD packet to send [11:49:20]OFD Sender: No OFD packet to send [11:49:25]OFD Sender: No OFD packet to send [11:49:30]OFD Sender: No OFD packet to send [11:49:35]OFD Sender: No OFD packet to send [11:49:40]OFD Sender: No OFD packet to send [11:49:45]OFD Sender: No OFD packet to send [11:49:50]OFD Sender: No OFD packet to send [11:49:55]OFD Sender: No OFD packet to send [11:50:00]OFD Sender: No OFD packet to send [11:50:05]OFD Sender: No OFD packet to send [11:50:10]OFD Sender: No OFD packet to send [11:50:15]OFD Sender: No OFD packet to send [11:50:20]OFD Sender: No OFD packet to send [11:50:25]OFD Sender: No OFD packet to send [11:50:30]OFD Sender: No OFD packet to send [11:50:35]OFD Sender: No OFD packet to send [11:50:40]OFD Sender: No OFD packet to send [11:50:45]OFD Sender: No OFD packet to send [11:50:50]OFD Sender: No OFD packet to send [11:50:55]OFD Sender: No OFD packet to send [11:51:00]OFD Sender: No OFD packet to send [11:51:05]OFD Sender: No OFD packet to send [11:51:10]OFD Sender: No OFD packet to send [11:51:15]OFD Sender: No OFD packet to send [11:51:20]OFD Sender: No OFD packet to send [11:51:25]OFD Sender: No OFD packet to send [11:51:30]OFD Sender: No OFD packet to send [11:51:35]OFD Sender: No OFD packet to send [11:51:40]OFD Sender: No OFD packet to send [11:51:45]OFD Sender: No OFD packet to send [11:51:50]OFD Sender: No OFD packet to send [11:51:55]OFD Sender: No OFD packet to send [11:52:00]OFD Sender: No OFD packet to send [11:52:05]OFD Sender: No OFD packet to send [11:52:10]OFD Sender: No OFD packet to send [11:52:15]OFD Sender: No OFD packet to send [11:52:20]OFD Sender: No OFD packet to send [11:52:25]OFD Sender: No OFD packet to send [11:52:30]OFD Sender: No OFD packet to send [11:52:35]OFD Sender: No OFD packet to send [11:52:40]OFD Sender: No OFD packet to send [11:52:45]OFD Sender: No OFD packet to send [11:52:50]OFD Sender: No OFD packet to send [11:52:55]OFD Sender: No OFD packet to send [11:53:00]OFD Sender: No OFD packet to send [11:53:05]OFD Sender: No OFD packet to send [11:53:10]OFD Sender: No OFD packet to send [11:53:14]accept exits with 8 [11:53:14]New connection [11:53:14]New thread 3067260260 created [11:53:14]Thread 3067116900 joined [11:53:14]Waiting for new connection... [11:53:14] Sock 8.Parse request [11:53:14]Sock 8.Check first char [11:53:14]Sock 8.First char is OK [11:53:14]request: POST /json_proto HTTP/1.0 [11:53:14]Method: POST [11:53:14]URL: /json_proto [11:53:14]Method is POST - this is cgi request [11:53:14]url: /json_proto [11:53:14]query_string will be loaded in cgi processing [11:53:14]execute_cgi json_proto POST (null) [11:53:14]execute_cgi path=json_proto method=POST [11:53:14]POST find Content-Length [11:53:14]Host: 172.17.50.3:8080 [11:53:14]Content-Length: 678 [11:53:14]Content-Type: application/json [11:53:14] [11:53:14]POST finish read [11:53:14]Found Content-Length = 678 [11:53:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:14]execute_script... [11:53:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:14]POST & json_proto [11:53:14]process_json_proto [11:53:14]json parsed OK: [11:53:14]protocol is kg_v1.0 [11:53:14]action value=close_receipt [11:53:14]process_action close_receipt [11:53:14]cmd_close_receipt [11:53:14]MH_GetDate [11:53:14]Write to MH i2c: F0 00 00 48 D4 0B [11:53:14]Write i2c OK [11:53:14]MH_I2C_Read... [11:53:14]Read from MH i2c: F0 [11:53:14]MH_I2C_Read... [11:53:14]Read from MH i2c: F0 09 00 [11:53:14]MH_I2C_Read... [11:53:14]Read from MH i2c: F0 09 00 48 D4 00 35 EF 14 67 6B 98 1E 66 3A [11:53:14]GetLastDocTimeStamp 1729424942 [11:53:14]current date 1729425205 [11:53:14]FM_GetShiftState [11:53:14]SAM_PROTO_GetShiftState [11:53:14]wFMCommunicate request_size=4 [11:53:14]MH_SAM_APDU [11:53:14]CAPDU: 80 13 01 00 [11:53:14]Write to MH i2c: E2 08 00 49 D4 80 13 01 00 00 00 00 00 9A [11:53:14]Write i2c OK [11:53:14]MH_I2C_Read... [11:53:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:14]Read from MH i2c: E2 [11:53:14]MH_I2C_Read... [11:53:14]Read from MH i2c: E2 0E 00 [11:53:14]MH_I2C_Read... [11:53:14]Read from MH i2c: E2 0E 00 49 D4 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 A0 [11:53:14]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:53:14]wFMCommunicate OK [11:53:14]SAM_PROTO_GetShiftState done [11:53:14]FM_GetShiftState done [11:53:14]opened in 1729383220 [11:53:14]opened+sec_in_day 1729469620 [11:53:14]quantity*price = 50041 [11:53:14]sum+1 = 50042 [11:53:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 162 20.10.2024 11:53 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69317 ФПД: 105951432508684 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115325&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69317&fm=105951432508684&tin=02508201610067®Number=0000000000156251&sum=50000 [11:53:16]StoreToDocumentArchive [11:53:16]shift 193 fd 69317 [11:53:16]save to /storage/0193/doc_00069317 [11:53:16]save last doc name /storage/0193/doc_00069317 to /storage/kkm_last_doc_name [11:53:16]save OK [11:53:16]Clear old archive folders... [11:53:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:53:16]tlvbuf is 008E6AC0 [11:53:16]SAM_PROTO_ClearQueue [11:53:16]wFMCommunicate request_size=4 [11:53:16]MH_SAM_APDU [11:53:16]CAPDU: 80 09 00 00 [11:53:16]Write to MH i2c: E2 08 00 56 D4 80 09 00 00 00 00 00 00 9C [11:53:16]Write i2c OK [11:53:16]MH_I2C_Read... [11:53:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:53:16]Read from MH i2c: E2 [11:53:16]MH_I2C_Read... [11:53:16]Read from MH i2c: E2 03 00 [11:53:16]MH_I2C_Read... [11:53:16]Read from MH i2c: E2 03 00 56 D4 00 90 00 9E [11:53:16]RAPDU: 90 00 [11:53:16]wFMCommunicate OK [11:53:16]SAM_PROTO_ClearQueue done [11:53:16]KKMCreateOFDPacket [11:53:16]OFDProtocolAddRootSTLVToBuf [11:53:16]FM_MakeSignedData [11:53:16]FM_MakeSignedData [11:53:16]SAM_PROTO_SignData [11:53:16]wFMCommunicate request_size=4 [11:53:16]MH_SAM_APDU [11:53:16]CAPDU: 80 0D 01 02 [11:53:16]Write to MH i2c: E2 08 00 57 D4 80 0D 01 02 00 00 00 00 A4 [11:53:16]Write i2c OK [11:53:16]MH_I2C_Read... [11:53:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:53:16]Read from MH i2c: E2 [11:53:16]MH_I2C_Read... [11:53:16]Read from MH i2c: E2 03 00 [11:53:16]MH_I2C_Read... [11:53:16]Read from MH i2c: E2 03 00 57 D4 00 90 00 9F [11:53:16]RAPDU: 90 00 [11:53:16]wFMCommunicate OK [11:53:16]wFMCommunicate request_size=255 [11:53:16]MH_SAM_APDU [11:53:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 35 EF 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C5 0E 01 00 35 04 06 00 60 [11:53:16]Write to MH i2c: E2 02 01 58 D4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 35 EF 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C5 0E 01 00 35 04 06 00 60 00 00 63 [11:53:16]Write i2c OK [11:53:16]MH_I2C_Read... [11:53:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:16]Read from MH i2c: E2 [11:53:16]MH_I2C_Read... [11:53:16]Read from MH i2c: E2 03 00 [11:53:16]MH_I2C_Read... [11:53:16]Read from MH i2c: E2 03 00 58 D4 00 90 00 A0 [11:53:16]RAPDU: 90 00 [11:53:16]wFMCommunicate OK [11:53:16]wFMCommunicate request_size=10 [11:53:16]MH_SAM_APDU [11:53:16]CAPDU: 80 0D 02 02 05 5C BD 7F 85 0C [11:53:16]Write to MH i2c: E2 0D 00 59 D4 80 0D 02 02 05 00 5C BD 7F 85 0C 00 00 DA [11:53:16]Write i2c OK [11:53:16]MH_I2C_Read... [11:53:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:16]Read from MH i2c: E2 [11:53:16]MH_I2C_Read... [11:53:16]Read from MH i2c: E2 03 00 [11:53:16]MH_I2C_Read... [11:53:16]Read from MH i2c: E2 03 00 59 D4 00 90 00 A1 [11:53:16]RAPDU: 90 00 [11:53:16]wFMCommunicate OK [11:53:16]wFMCommunicate request_size=4 [11:53:16]MH_SAM_APDU [11:53:16]CAPDU: 80 0D 03 02 [11:53:16]Write to MH i2c: E2 08 00 5A D4 80 0D 03 02 00 00 00 00 A9 [11:53:16]Write i2c OK [11:53:16]MH_I2C_Read... [11:53:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:53:16]Read from MH i2c: E2 [11:53:16]MH_I2C_Read... [11:53:16]Read from MH i2c: E2 0B 00 [11:53:16]MH_I2C_Read... [11:53:16]Read from MH i2c: E2 0B 00 5A D4 00 18 03 4F 8D 9B A7 E4 B5 90 00 7C [11:53:16]RAPDU: 18 03 4F 8D 9B A7 E4 B5 90 00 [11:53:16]wFMCommunicate OK [11:53:16]SAM_PROTO_SignData done [11:53:16]FM_MakeSignedData done [11:53:16]CreateOFDProtocolMessage [11:53:16]wFMCommunicate request_size=4 [11:53:16]MH_SAM_APDU [11:53:16]CAPDU: 80 11 00 00 [11:53:16]Write to MH i2c: E2 08 00 5B D4 80 11 00 00 00 00 00 00 A9 [11:53:16]Write i2c OK [11:53:16]MH_I2C_Read... [11:53:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:16]Read from MH i2c: E2 [11:53:16]MH_I2C_Read... [11:53:16]Read from MH i2c: E2 17 00 [11:53:16]MH_I2C_Read... [11:53:16]Read from MH i2c: E2 17 00 5B D4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FB [11:53:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:53:16]wFMCommunicate OK [11:53:16]CreateOFDProtocolMessage done [11:53:16]OFDSenderStorePacket 69317 [11:53:16]StoreOFDPacket docnum=69317 [11:53:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 07 9A 07 01 6E 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 35 EF 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C5 0E 01 00 35 04 06 00 60 5C BD 7F 85 0C 18 03 4F 8D 9B A7 E4 B5 [11:53:16]CheckFolder [11:53:16]dirname=/storage/ofd_packets [11:53:16]CheckFolder done [11:53:16]ProducePacketName [11:53:16]name=ofd_packets/00069317 [11:53:16]NVStorageSaveData ofd_packets/00069317 [11:53:16]File name is /storage/ofd_packets/00069317 [11:53:16]Write 301 bytes [11:53:16]NVStorageSaveData done [11:53:16]OFDSenderStorePacket done [11:53:16]KKMCreateOFDPacket done [11:53:16]NVStorageSaveData kkm_last_timestamp [11:53:16]File name is /storage/kkm_last_timestamp [11:53:16]Write 4 bytes [11:53:16]NVStorageSaveData done [11:53:16]ExternCall_PrintAddStr [11:53:16]wPrintStart [11:53:16]Write to MH i2c: 01 00 00 5C D4 30 [11:53:16]Write i2c OK [11:53:16]MH_I2C_Read... [11:53:16]Read from MH i2c: 01 [11:53:16]MH_I2C_Read... [11:53:16]Read from MH i2c: 01 07 00 [11:53:16]MH_I2C_Read... [11:53:16]Read from MH i2c: 01 07 00 5C D4 00 00 00 00 00 FF 0F 45 [11:53:16]RasterBufferAndPrint [11:53:16]line Счет N : (1)2885034 [11:53:16]line ИНН: 02508201610067 [11:53:16]line Контрольно-Кассовый Чек [11:53:16]line ПРОДАЖА [11:53:16]line ТРК (МРК, ГНК) : 32 [11:53:16]line Товар: 2710124130 [11:53:16]line Аи-92-К-5 [11:53:16]line 7.480 * 66.90 [11:53:16]line = 500.41 [11:53:16]line НДС 12% НСП 1% [11:53:16]line > о реализуемом товаре [11:53:16]line ОКРУГЛЕНИЕ: -0.41 [11:53:16]line ИТОГО: 500.00 [11:53:16]line Внесено: 500.00 [11:53:16]line СДАЧА: 0.00 [11:53:16]line НСП 1% : 4.43 [11:53:16]line НДС 12% : 53.14 [11:53:16]line Наличными: 500.00 [11:53:16]line Безнал.: 0.00 [11:53:16]line Место: АЗС № 85 "Партнер Нефть" [11:53:16]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:53:16]line СНО: Общий режим [11:53:16]line Чек 162 20.10.2024 11:53 [11:53:16]line Смена: 193 ФФД: 1.0 [11:53:16]line ЗНМ: 0300000167 [11:53:16]line РНМ: 0000000000156251 [11:53:16]line Версия ККМ: v1.0 [11:53:16]line ФМ: 0000000000963346 [11:53:16]line ФД: 69317 [11:53:16]line ФПД: 105951432508684 [11:53:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115325&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69317&fm=105951432508684&tin=02508201610067®Number=0000000000156251&sum=50000 [11:53:16]OFD Sender: Processing packet 69317 [packets to send 18, broken 17] [11:53:16]ProducePacketName [11:53:16]name=ofd_packets/00069317 [11:53:16]OFD Sender: To server: pG, [11:53:16]CommunicateWithHost lk.salyk.kg:30040 [11:53:16]ConnectInit lk.salyk.kg [11:53:16]written 0, free lines is 4095 [11:53:17]Connected sock=10 [11:53:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 07 9A 07 01 6E 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 35 EF 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C5 0E 01 00 35 04 06 00 60 5C BD 7F 85 0C 18 03 4F 8D 9B A7 E4 B5 [11:53:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 72 38 47 00 F6 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C5 0E 01 00 F4 03 04 00 DB 98 14 67 B6 04 01 00 00 9B 58 C0 F3 6B 59 3F 8F [11:53:17]CommunicateWithHost err = 0 [11:53:17]CheckOFDResponse [11:53:17]1017 (14) - 77093643461234 [11:53:17]1041 (16) - 0000000000963346 [11:53:17]1040 (4) - 69317 [11:53:17]1012 (4) - 20.10.2024 05:44 [11:53:17]1206 (1) - 0 [11:53:17]OFD Sender: Remove packet 69317 [11:53:17]ProducePacketName [11:53:17]name=ofd_packets/00069317 [11:53:17]NVStorageDeleteData [11:53:17]Write to MH i2c: 01 00 00 87 D4 5B [11:53:17]Write i2c OK [11:53:17]MH_I2C_Read... [11:53:17]Read from MH i2c: 01 [11:53:17]MH_I2C_Read... [11:53:17]Read from MH i2c: 01 07 00 [11:53:17]MH_I2C_Read... [11:53:17]Read from MH i2c: 01 07 00 87 D4 00 00 00 00 00 F2 0C 60 [11:53:17]RasterBufferAndPrint [11:53:17]line [11:53:17]line [11:53:17]line [11:53:17]line [11:53:17]line [11:53:17]written 0, free lines is 3323 [11:53:17]MH_Cut [11:53:17]Write to MH i2c: D1 01 00 8E D4 01 34 [11:53:17]Write i2c OK [11:53:17]MH_I2C_Read... [11:53:17]Read from MH i2c: D1 [11:53:17]MH_I2C_Read... [11:53:17]Read from MH i2c: D1 01 00 [11:53:17]MH_I2C_Read... [11:53:17]Read from MH i2c: D1 01 00 8E D4 00 33 [11:53:17]Write to MH i2c: 01 00 00 8F D4 63 [11:53:17]Write i2c OK [11:53:17]MH_I2C_Read... [11:53:17]OFD Sender: No OFD packet to send [11:53:18]*** Cut start [11:53:18]*** Partial cut [11:53:18]*** CUTSNS_PIN = 1 [11:53:18]*** CUTSNS_PIN = 0 [11:53:18]*** Brake cut motor [11:53:18]Read from MH i2c: 01 [11:53:18]MH_I2C_Read... [11:53:18]*** Stop cut motor [11:53:18]*** Cut end [11:53:18]Read from MH i2c: 01 07 00 [11:53:18]MH_I2C_Read... [11:53:18]Read from MH i2c: 01 07 00 8F D4 00 00 00 00 00 FF 0F 78 [11:53:18]process_action close_receipt done [11:53:18]requested_data is exist [11:53:18]produce_requested_data [11:53:18]requested_item fm.sn is exist - process it [11:53:18]wFMCommunicate request_size=4 [11:53:18]MH_SAM_APDU [11:53:18]CAPDU: 80 11 00 00 [11:53:18]Write to MH i2c: E2 08 00 90 D4 80 11 00 00 00 00 00 00 DE [11:53:18]Write i2c OK [11:53:18]MH_I2C_Read... [11:53:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:18]Read from MH i2c: E2 [11:53:18]MH_I2C_Read... [11:53:18]Read from MH i2c: E2 17 00 [11:53:18]MH_I2C_Read... [11:53:18]Read from MH i2c: E2 17 00 90 D4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 30 [11:53:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:53:18]wFMCommunicate OK [11:53:18]requested_item fd.num is exist - process it [11:53:18]SAM_PROTO_GetFieldsCounters [11:53:18]wFMCommunicate request_size=4 [11:53:18]MH_SAM_APDU [11:53:18]CAPDU: 80 13 00 00 [11:53:18]Write to MH i2c: E2 08 00 91 D4 80 13 00 00 00 00 00 00 E1 [11:53:18]Write i2c OK [11:53:18]MH_I2C_Read... [11:53:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:18]Read from MH i2c: E2 [11:53:18]MH_I2C_Read... [11:53:18]Read from MH i2c: E2 62 00 [11:53:18]MH_I2C_Read... [11:53:18]Read from MH i2c: E2 62 00 91 D4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C5 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [11:53:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C5 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:53:18]wFMCommunicate OK [11:53:18]SAM_PROTO_GetFieldsCounters done [11:53:18]requested_item shift.num is exist - process it [11:53:18]requested_item shift.opened is exist - process it [11:53:18]req_shift_opened [11:53:18]FM_GetShiftState [11:53:18]SAM_PROTO_GetShiftState [11:53:18]wFMCommunicate request_size=4 [11:53:18]MH_SAM_APDU [11:53:18]CAPDU: 80 13 01 00 [11:53:18]Write to MH i2c: E2 08 00 92 D4 80 13 01 00 00 00 00 00 E3 [11:53:18]Write i2c OK [11:53:18]MH_I2C_Read... [11:53:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:18]Read from MH i2c: E2 [11:53:18]MH_I2C_Read... [11:53:18]Read from MH i2c: E2 0E 00 [11:53:18]MH_I2C_Read... [11:53:18]Read from MH i2c: E2 0E 00 92 D4 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 E9 [11:53:18]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:53:18]wFMCommunicate OK [11:53:18]SAM_PROTO_GetShiftState done [11:53:18]FM_GetShiftState done [11:53:18]req_shift_opened done [11:53:18]requested_item shift.open_date is exist - process it [11:53:18]req_shift_open_date [11:53:18]req_shift_open_date done [11:53:18]produce_requested_data done [11:53:18]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69317,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [11:53:18]process_action_free close_receipt [11:53:18]json_value_free [11:53:18]json_value_free done [11:53:18]process_json_proto returns [11:53:18]Send response to host [11:53:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69317,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [11:53:18]free response buf [11:53:18]execute_script done [11:53:18]execute_script returns [11:53:18]free content buf [11:53:18]Sock 8.Close socket [11:53:18]Sock 8.Thread stoped [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]accept exits with 9 [11:53:57]New connection [11:53:57]New thread 3067116900 created [11:53:57]Thread 3067260260 joined [11:53:57]Waiting for new connection... [11:53:57] Sock 9.Parse request [11:53:57]Sock 9.Check first char [11:53:57]Sock 9.First char is OK [11:53:57]request: POST /json_proto HTTP/1.0 [11:53:57]Method: POST [11:53:57]URL: /json_proto [11:53:57]Method is POST - this is cgi request [11:53:57]url: /json_proto [11:53:57]query_string will be loaded in cgi processing [11:53:57]execute_cgi json_proto POST (null) [11:53:57]execute_cgi path=json_proto method=POST [11:53:57]POST find Content-Length [11:53:57]Host: 172.17.50.3:8080 [11:53:57]Content-Length: 680 [11:53:57]Content-Type: application/json [11:53:57] [11:53:57]POST finish read [11:53:57]Found Content-Length = 680 [11:53:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:57]execute_script... [11:53: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)2885035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:57]POST & json_proto [11:53:57]process_json_proto [11:53:57]json parsed OK: [11:53:57]protocol is kg_v1.0 [11:53:57]action value=close_receipt [11:53:57]process_action close_receipt [11:53:57]cmd_close_receipt [11:53:57]MH_GetDate [11:53:57]Write to MH i2c: F0 00 00 93 D4 56 [11:53:57]Write i2c OK [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: F0 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: F0 09 00 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: F0 09 00 93 D4 00 5F EF 14 67 6B 98 1E 66 AF [11:53:57]GetLastDocTimeStamp 1729425205 [11:53:57]current date 1729425247 [11:53:57]FM_GetShiftState [11:53:57]SAM_PROTO_GetShiftState [11:53:57]wFMCommunicate request_size=4 [11:53:57]MH_SAM_APDU [11:53:57]CAPDU: 80 13 01 00 [11:53:57]Write to MH i2c: E2 08 00 94 D4 80 13 01 00 00 00 00 00 E5 [11:53:57]Write i2c OK [11:53:57]MH_I2C_Read... [11:53:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:57]Read from MH i2c: E2 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: E2 0E 00 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: E2 0E 00 94 D4 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 EB [11:53:57]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:53:57]wFMCommunicate OK [11:53:57]SAM_PROTO_GetShiftState done [11:53:57]FM_GetShiftState done [11:53:57]opened in 1729383220 [11:53:57]opened+sec_in_day 1729469620 [11:53:57]quantity*price = 150037 [11:53:57]sum+1 = 150039 [11:53:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 163 20.10.2024 11:54 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69318 ФПД: 8333880408215 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115407&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69318&fm=8333880408215&tin=02508201610067®Number=0000000000156251&sum=150000 [11:53:58]StoreToDocumentArchive [11:53:58]shift 193 fd 69318 [11:53:58]save to /storage/0193/doc_00069318 [11:53:58]save last doc name /storage/0193/doc_00069318 to /storage/kkm_last_doc_name [11:53:58]save OK [11:53:58]Clear old archive folders... [11:53:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:53:58]tlvbuf is 007E17C0 [11:53:58]SAM_PROTO_ClearQueue [11:53:58]wFMCommunicate request_size=4 [11:53:58]MH_SAM_APDU [11:53:58]CAPDU: 80 09 00 00 [11:53:58]Write to MH i2c: E2 08 00 A1 D4 80 09 00 00 00 00 00 00 E7 [11:53:58]Write i2c OK [11:53:58]MH_I2C_Read... [11:53:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:53:58]Read from MH i2c: E2 [11:53:58]MH_I2C_Read... [11:53:58]Read from MH i2c: E2 03 00 [11:53:58]MH_I2C_Read... [11:53:58]Read from MH i2c: E2 03 00 A1 D4 00 90 00 E9 [11:53:58]RAPDU: 90 00 [11:53:58]wFMCommunicate OK [11:53:58]SAM_PROTO_ClearQueue done [11:53:58]KKMCreateOFDPacket [11:53:58]OFDProtocolAddRootSTLVToBuf [11:53:58]FM_MakeSignedData [11:53:58]FM_MakeSignedData [11:53:58]SAM_PROTO_SignData [11:53:58]wFMCommunicate request_size=4 [11:53:58]MH_SAM_APDU [11:53:58]CAPDU: 80 0D 01 02 [11:53:58]Write to MH i2c: E2 08 00 A2 D4 80 0D 01 02 00 00 00 00 EF [11:53:58]Write i2c OK [11:53:58]MH_I2C_Read... [11:53:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:53:58]Read from MH i2c: E2 [11:53:58]MH_I2C_Read... [11:53:58]Read from MH i2c: E2 03 00 [11:53:58]MH_I2C_Read... [11:53:58]Read from MH i2c: E2 03 00 A2 D4 00 90 00 EA [11:53:58]RAPDU: 90 00 [11:53:58]wFMCommunicate OK [11:53:58]wFMCommunicate request_size=255 [11:53:58]MH_SAM_APDU [11:53:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 5F EF 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C6 0E 01 00 35 04 06 00 07 94 61 FB [11:53:58]Write to MH i2c: E2 02 01 A3 D4 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 5F EF 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C6 0E 01 00 35 04 06 00 07 94 61 FB 00 00 DE [11:53:58]Write i2c OK [11:53:58]MH_I2C_Read... [11:53:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:59]Read from MH i2c: E2 [11:53:59]MH_I2C_Read... [11:53:59]Read from MH i2c: E2 03 00 [11:53:59]MH_I2C_Read... [11:53:59]Read from MH i2c: E2 03 00 A3 D4 00 90 00 EB [11:53:59]RAPDU: 90 00 [11:53:59]wFMCommunicate OK [11:53:59]wFMCommunicate request_size=7 [11:53:59]MH_SAM_APDU [11:53:59]CAPDU: 80 0D 02 02 02 38 97 [11:53:59]Write to MH i2c: E2 0A 00 A4 D4 80 0D 02 02 02 00 38 97 00 00 C5 [11:53:59]Write i2c OK [11:53:59]MH_I2C_Read... [11:53:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:59]Read from MH i2c: E2 [11:53:59]MH_I2C_Read... [11:53:59]Read from MH i2c: E2 03 00 [11:53:59]MH_I2C_Read... [11:53:59]Read from MH i2c: E2 03 00 A4 D4 00 90 00 EC [11:53:59]RAPDU: 90 00 [11:53:59]wFMCommunicate OK [11:53:59]wFMCommunicate request_size=4 [11:53:59]MH_SAM_APDU [11:53:59]CAPDU: 80 0D 03 02 [11:53:59]Write to MH i2c: E2 08 00 A5 D4 80 0D 03 02 00 00 00 00 F4 [11:53:59]Write i2c OK [11:53:59]MH_I2C_Read... [11:53:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:53:59]Read from MH i2c: E2 [11:53:59]MH_I2C_Read... [11:53:59]Read from MH i2c: E2 0B 00 [11:53:59]MH_I2C_Read... [11:53:59]Read from MH i2c: E2 0B 00 A5 D4 00 A7 1E 21 B2 36 6F 4A CC 90 00 48 [11:53:59]RAPDU: A7 1E 21 B2 36 6F 4A CC 90 00 [11:53:59]wFMCommunicate OK [11:53:59]SAM_PROTO_SignData done [11:53:59]FM_MakeSignedData done [11:53:59]CreateOFDProtocolMessage [11:53:59]wFMCommunicate request_size=4 [11:53:59]MH_SAM_APDU [11:53:59]CAPDU: 80 11 00 00 [11:53:59]Write to MH i2c: E2 08 00 A6 D4 80 11 00 00 00 00 00 00 F4 [11:53:59]Write i2c OK [11:53:59]MH_I2C_Read... [11:53:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:59]Read from MH i2c: E2 [11:53:59]MH_I2C_Read... [11:53:59]Read from MH i2c: E2 17 00 [11:53:59]MH_I2C_Read... [11:53:59]Read from MH i2c: E2 17 00 A6 D4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 46 [11:53:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:53:59]wFMCommunicate OK [11:53:59]CreateOFDProtocolMessage done [11:53:59]OFDSenderStorePacket 69318 [11:53:59]StoreOFDPacket docnum=69318 [11:53:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 9D 33 04 01 32 ED 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 5F EF 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C6 0E 01 00 35 04 06 00 07 94 61 FB 38 97 A7 1E 21 B2 36 6F 4A CC [11:53:59]CheckFolder [11:53:59]dirname=/storage/ofd_packets [11:53:59]CheckFolder done [11:53:59]ProducePacketName [11:53:59]name=ofd_packets/00069318 [11:53:59]NVStorageSaveData ofd_packets/00069318 [11:53:59]File name is /storage/ofd_packets/00069318 [11:53:59]Write 298 bytes [11:53:59]NVStorageSaveData done [11:53:59]OFDSenderStorePacket done [11:53:59]KKMCreateOFDPacket done [11:53:59]NVStorageSaveData kkm_last_timestamp [11:53:59]File name is /storage/kkm_last_timestamp [11:53:59]Write 4 bytes [11:53:59]NVStorageSaveData done [11:53:59]ExternCall_PrintAddStr [11:53:59]wPrintStart [11:53:59]Write to MH i2c: 01 00 00 A7 D4 7B [11:53:59]Write i2c OK [11:53:59]MH_I2C_Read... [11:53:59]Read from MH i2c: 01 [11:53:59]MH_I2C_Read... [11:53:59]Read from MH i2c: 01 07 00 [11:53:59]MH_I2C_Read... [11:53:59]Read from MH i2c: 01 07 00 A7 D4 00 00 00 00 00 FF 0F 90 [11:53:59]RasterBufferAndPrint [11:53:59]line Счет N : (1)2885035 [11:53:59]line ИНН: 02508201610067 [11:53:59]line Контрольно-Кассовый Чек [11:53:59]line ПРОДАЖА [11:53:59]line ТРК (МРК, ГНК) : 51 [11:53:59]line Товар: 2710194210 [11:53:59]line ДТ-К-5 [11:53:59]line 19.690 * 76.20 [11:53:59]line = 1500.38 [11:53:59]line НДС 12% НСП 1% [11:53:59]line > о реализуемом товаре [11:53:59]line ОКРУГЛЕНИЕ: -0.38 [11:53:59]line ИТОГО: 1500.00 [11:53:59]line Внесено: 1500.00 [11:53:59]line СДАЧА: 0.00 [11:53:59]line НСП 1% : 13.28 [11:53:59]line НДС 12% : 159.33 [11:53:59]line Наличными: 1500.00 [11:53:59]line Безнал.: 0.00 [11:53:59]line Место: АЗС № 85 "Партнер Нефть" [11:53:59]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:53:59]line СНО: Общий режим [11:53:59]line Чек 163 20.10.2024 11:54 [11:53:59]line Смена: 193 ФФД: 1.0 [11:53:59]line ЗНМ: 0300000167 [11:53:59]line РНМ: 0000000000156251 [11:53:59]line Версия ККМ: v1.0 [11:53:59]line ФМ: 0000000000963346 [11:53:59]line ФД: 69318 [11:53:59]line ФПД: 8333880408215 [11:53:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115407&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69318&fm=8333880408215&tin=02508201610067®Number=0000000000156251&sum=150000 [11:53:59]OFD Sender: Processing packet 69318 [packets to send 18, broken 17] [11:53:59]ProducePacketName [11:53:59]name=ofd_packets/00069318 [11:53:59]OFD Sender: To server: pG, [11:53:59]CommunicateWithHost lk.salyk.kg:30040 [11:53:59]ConnectInit lk.salyk.kg [11:53:59]written 0, free lines is 4095 [11:53:59]Connected sock=11 [11:53:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 9D 33 04 01 32 ED 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 5F EF 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C6 0E 01 00 35 04 06 00 07 94 61 FB 38 97 A7 1E 21 B2 36 6F 4A CC [11:54:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 A3 07 47 00 FF 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C6 0E 01 00 F4 03 04 00 06 99 14 67 B6 04 01 00 00 32 D5 9D 3D E7 73 5B 17 [11:54:00]CommunicateWithHost err = 0 [11:54:00]CheckOFDResponse [11:54:00]1017 (14) - 77093643461234 [11:54:00]1041 (16) - 0000000000963346 [11:54:00]1040 (4) - 69318 [11:54:00]1012 (4) - 20.10.2024 05:45 [11:54:00]1206 (1) - 0 [11:54:00]OFD Sender: Remove packet 69318 [11:54:00]ProducePacketName [11:54:00]name=ofd_packets/00069318 [11:54:00]NVStorageDeleteData [11:54:00]Write to MH i2c: 01 00 00 D2 D4 A6 [11:54:00]Write i2c OK [11:54:00]MH_I2C_Read... [11:54:00]Read from MH i2c: 01 [11:54:00]MH_I2C_Read... [11:54:00]Read from MH i2c: 01 07 00 [11:54:00]MH_I2C_Read... [11:54:00]Read from MH i2c: 01 07 00 D2 D4 00 00 00 00 00 02 0D BC [11:54:00]RasterBufferAndPrint [11:54:00]line [11:54:00]line [11:54:00]line [11:54:00]line [11:54:00]line [11:54:00]written 0, free lines is 3337 [11:54:00]MH_Cut [11:54:00]Write to MH i2c: D1 01 00 D9 D4 01 7F [11:54:00]Write i2c OK [11:54:00]MH_I2C_Read... [11:54:00]Read from MH i2c: D1 [11:54:00]MH_I2C_Read... [11:54:00]Read from MH i2c: D1 01 00 [11:54:00]MH_I2C_Read... [11:54:00]Read from MH i2c: D1 01 00 D9 D4 00 7E [11:54:00]Write to MH i2c: 01 00 00 DA D4 AE [11:54:00]Write i2c OK [11:54:00]MH_I2C_Read... [11:54:00]OFD Sender: No OFD packet to send [11:54:00]*** Cut start [11:54:00]*** Partial cut [11:54:00]*** CUTSNS_PIN = 1 [11:54:00]*** CUTSNS_PIN = 0 [11:54:01]*** Brake cut motor [11:54:01]Read from MH i2c: 01 [11:54:01]MH_I2C_Read... [11:54:01]*** Stop cut motor [11:54:01]*** Cut end [11:54:01]Read from MH i2c: 01 07 00 [11:54:01]MH_I2C_Read... [11:54:01]Read from MH i2c: 01 07 00 DA D4 00 00 00 00 00 FF 0F C3 [11:54:01]process_action close_receipt done [11:54:01]requested_data is exist [11:54:01]produce_requested_data [11:54:01]requested_item fm.sn is exist - process it [11:54:01]wFMCommunicate request_size=4 [11:54:01]MH_SAM_APDU [11:54:01]CAPDU: 80 11 00 00 [11:54:01]Write to MH i2c: E2 08 00 DB D4 80 11 00 00 00 00 00 00 29 [11:54:01]Write i2c OK [11:54:01]MH_I2C_Read... [11:54:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:01]Read from MH i2c: E2 [11:54:01]MH_I2C_Read... [11:54:01]Read from MH i2c: E2 17 00 [11:54:01]MH_I2C_Read... [11:54:01]Read from MH i2c: E2 17 00 DB D4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7B [11:54:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:54:01]wFMCommunicate OK [11:54:01]requested_item fd.num is exist - process it [11:54:01]SAM_PROTO_GetFieldsCounters [11:54:01]wFMCommunicate request_size=4 [11:54:01]MH_SAM_APDU [11:54:01]CAPDU: 80 13 00 00 [11:54:01]Write to MH i2c: E2 08 00 DC D4 80 13 00 00 00 00 00 00 2C [11:54:01]Write i2c OK [11:54:01]MH_I2C_Read... [11:54:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:01]Read from MH i2c: E2 [11:54:01]MH_I2C_Read... [11:54:01]Read from MH i2c: E2 62 00 [11:54:01]MH_I2C_Read... [11:54:01]Read from MH i2c: E2 62 00 DC D4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C6 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [11:54:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C6 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:54:01]wFMCommunicate OK [11:54:01]SAM_PROTO_GetFieldsCounters done [11:54:01]requested_item shift.num is exist - process it [11:54:01]requested_item shift.opened is exist - process it [11:54:01]req_shift_opened [11:54:01]FM_GetShiftState [11:54:01]SAM_PROTO_GetShiftState [11:54:01]wFMCommunicate request_size=4 [11:54:01]MH_SAM_APDU [11:54:01]CAPDU: 80 13 01 00 [11:54:01]Write to MH i2c: E2 08 00 DD D4 80 13 01 00 00 00 00 00 2E [11:54:01]Write i2c OK [11:54:01]MH_I2C_Read... [11:54:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:01]Read from MH i2c: E2 [11:54:01]MH_I2C_Read... [11:54:01]Read from MH i2c: E2 0E 00 [11:54:01]MH_I2C_Read... [11:54:01]Read from MH i2c: E2 0E 00 DD D4 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 34 [11:54:01]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:54:01]wFMCommunicate OK [11:54:01]SAM_PROTO_GetShiftState done [11:54:01]FM_GetShiftState done [11:54:01]req_shift_opened done [11:54:01]requested_item shift.open_date is exist - process it [11:54:01]req_shift_open_date [11:54:01]req_shift_open_date done [11:54:01]produce_requested_data done [11:54:01]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69318,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [11:54:01]process_action_free close_receipt [11:54:01]json_value_free [11:54:01]json_value_free done [11:54:01]process_json_proto returns [11:54:01]Send response to host [11:54:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69318,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [11:54:01]free response buf [11:54:01]execute_script done [11:54:01]execute_script returns [11:54:01]free content buf [11:54:01]Sock 9.Close socket [11:54:01]Sock 9.Thread stoped [11:54:05]OFD Sender: No OFD packet to send [11:54:10]OFD Sender: No OFD packet to send [11:54:15]OFD Sender: No OFD packet to send [11:54:20]OFD Sender: No OFD packet to send [11:54:25]OFD Sender: No OFD packet to send [11:54:30]OFD Sender: No OFD packet to send [11:54:35]OFD Sender: No OFD packet to send [11:54:40]OFD Sender: No OFD packet to send [11:54:45]OFD Sender: No OFD packet to send [11:54:50]OFD Sender: No OFD packet to send [11:54:55]OFD Sender: No OFD packet to send [11:55:00]OFD Sender: No OFD packet to send [11:55:05]OFD Sender: No OFD packet to send [11:55:10]OFD Sender: No OFD packet to send [11:55:15]OFD Sender: No OFD packet to send [11:55:20]OFD Sender: No OFD packet to send [11:55:25]OFD Sender: No OFD packet to send [11:55:30]OFD Sender: No OFD packet to send [11:55:35]OFD Sender: No OFD packet to send [11:55:40]OFD Sender: No OFD packet to send [11:55:45]OFD Sender: No OFD packet to send [11:55:50]OFD Sender: No OFD packet to send [11:55:55]OFD Sender: No OFD packet to send [11:56:00]OFD Sender: No OFD packet to send [11:56:05]OFD Sender: No OFD packet to send [11:56:10]OFD Sender: No OFD packet to send [11:56:15]OFD Sender: No OFD packet to send [11:56:20]OFD Sender: No OFD packet to send [11:56:25]OFD Sender: No OFD packet to send [11:56:30]OFD Sender: No OFD packet to send [11:56:35]OFD Sender: No OFD packet to send [11:56:40]OFD Sender: No OFD packet to send [11:56:45]OFD Sender: No OFD packet to send [11:56:50]OFD Sender: No OFD packet to send [11:56:55]OFD Sender: No OFD packet to send [11:57:00]OFD Sender: No OFD packet to send [11:57:05]OFD Sender: No OFD packet to send [11:57:10]OFD Sender: No OFD packet to send [11:57:15]OFD Sender: No OFD packet to send [11:57:20]OFD Sender: No OFD packet to send [11:57:25]OFD Sender: No OFD packet to send [11:57:30]OFD Sender: No OFD packet to send [11:57:35]OFD Sender: No OFD packet to send [11:57:40]OFD Sender: No OFD packet to send [11:57:45]OFD Sender: No OFD packet to send [11:57:50]OFD Sender: No OFD packet to send [11:57:55]OFD Sender: No OFD packet to send [11:58:00]OFD Sender: No OFD packet to send [11:58:05]OFD Sender: No OFD packet to send [11:58:10]OFD Sender: No OFD packet to send [11:58:15]OFD Sender: No OFD packet to send [11:58:20]OFD Sender: No OFD packet to send [11:58:25]OFD Sender: No OFD packet to send [11:58:30]OFD Sender: No OFD packet to send [11:58:35]OFD Sender: No OFD packet to send [11:58:40]OFD Sender: No OFD packet to send [11:58:45]OFD Sender: No OFD packet to send [11:58:50]OFD Sender: No OFD packet to send [11:58:55]OFD Sender: No OFD packet to send [11:59:00]OFD Sender: No OFD packet to send [11:59:05]OFD Sender: No OFD packet to send [11:59:09]accept exits with 8 [11:59:09]New connection [11:59:09]New thread 3067260260 created [11:59:09]Thread 3067116900 joined [11:59:09]Waiting for new connection... [11:59:09] Sock 8.Parse request [11:59:09]Sock 8.Check first char [11:59:09]Sock 8.First char is OK [11:59:09]request: POST /json_proto HTTP/1.0 [11:59:09]Method: POST [11:59:09]URL: /json_proto [11:59:09]Method is POST - this is cgi request [11:59:09]url: /json_proto [11:59:09]query_string will be loaded in cgi processing [11:59:09]execute_cgi json_proto POST (null) [11:59:09]execute_cgi path=json_proto method=POST [11:59:09]POST find Content-Length [11:59:09]Host: 172.17.50.3:8080 [11:59:09]Content-Length: 773 [11:59:09]Content-Type: application/json [11:59:09] [11:59:09]POST finish read [11:59:09]Found Content-Length = 773 [11:59:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 7.780, "sum" : 600.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 600.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:09]execute_script... [11:59:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 7.780, "sum" : 600.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 600.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:09]POST & json_proto [11:59:09]process_json_proto [11:59:09]json parsed OK: [11:59:09]protocol is kg_v1.0 [11:59:09]action value=close_receipt [11:59:09]process_action close_receipt [11:59:09]cmd_close_receipt [11:59:09]MH_GetDate [11:59:09]Write to MH i2c: F0 00 00 DE D4 A1 [11:59:09]Write i2c OK [11:59:09]MH_I2C_Read... [11:59:09]Read from MH i2c: F0 [11:59:09]MH_I2C_Read... [11:59:09]Read from MH i2c: F0 09 00 [11:59:09]MH_I2C_Read... [11:59:09]Read from MH i2c: F0 09 00 DE D4 00 97 F0 14 67 6B 98 1E 66 33 [11:59:09]GetLastDocTimeStamp 1729425247 [11:59:09]current date 1729425559 [11:59:09]FM_GetShiftState [11:59:09]SAM_PROTO_GetShiftState [11:59:09]wFMCommunicate request_size=4 [11:59:09]MH_SAM_APDU [11:59:09]CAPDU: 80 13 01 00 [11:59:09]Write to MH i2c: E2 08 00 DF D4 80 13 01 00 00 00 00 00 30 [11:59:09]Write i2c OK [11:59:09]MH_I2C_Read... [11:59:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:09]Read from MH i2c: E2 [11:59:09]MH_I2C_Read... [11:59:09]Read from MH i2c: E2 0E 00 [11:59:09]MH_I2C_Read... [11:59:09]Read from MH i2c: E2 0E 00 DF D4 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 36 [11:59:09]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:59:09]wFMCommunicate OK [11:59:09]SAM_PROTO_GetShiftState done [11:59:09]FM_GetShiftState done [11:59:09]opened in 1729383220 [11:59:09]opened+sec_in_day 1729469620 [11:59:09]quantity*price = 60061 [11:59:09]sum+1 = 60063 [11:59:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.62 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 0.00 Безнал.: 600.62 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 164 20.10.2024 11:59 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69319 ФПД: 255681149483131 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115919&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69319&fm=255681149483131&tin=02508201610067®Number=0000000000156251&sum=60062 [11:59:10]StoreToDocumentArchive [11:59:10]shift 193 fd 69319 [11:59:10]save to /storage/0193/doc_00069319 [11:59:10]save last doc name /storage/0193/doc_00069319 to /storage/kkm_last_doc_name [11:59:10]save OK [11:59:10]Clear old archive folders... [11:59:10]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:59:10]tlvbuf is 005335E0 [11:59:10]SAM_PROTO_ClearQueue [11:59:10]wFMCommunicate request_size=4 [11:59:10]MH_SAM_APDU [11:59:10]CAPDU: 80 09 00 00 [11:59:10]Write to MH i2c: E2 08 00 EC D4 80 09 00 00 00 00 00 00 32 [11:59:10]Write i2c OK [11:59:10]MH_I2C_Read... [11:59:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:59:10]Read from MH i2c: E2 [11:59:10]MH_I2C_Read... [11:59:10]Read from MH i2c: E2 03 00 [11:59:10]MH_I2C_Read... [11:59:10]Read from MH i2c: E2 03 00 EC D4 00 90 00 34 [11:59:10]RAPDU: 90 00 [11:59:10]wFMCommunicate OK [11:59:10]SAM_PROTO_ClearQueue done [11:59:10]KKMCreateOFDPacket [11:59:10]OFDProtocolAddRootSTLVToBuf [11:59:10]FM_MakeSignedData [11:59:10]FM_MakeSignedData [11:59:10]SAM_PROTO_SignData [11:59:10]wFMCommunicate request_size=4 [11:59:10]MH_SAM_APDU [11:59:10]CAPDU: 80 0D 01 02 [11:59:10]Write to MH i2c: E2 08 00 ED D4 80 0D 01 02 00 00 00 00 3A [11:59:10]Write i2c OK [11:59:10]MH_I2C_Read... [11:59:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:59:10]Read from MH i2c: E2 [11:59:10]MH_I2C_Read... [11:59:10]Read from MH i2c: E2 03 00 [11:59:10]MH_I2C_Read... [11:59:10]Read from MH i2c: E2 03 00 ED D4 00 90 00 35 [11:59:10]RAPDU: 90 00 [11:59:10]wFMCommunicate OK [11:59:10]wFMCommunicate request_size=255 [11:59:10]MH_SAM_APDU [11:59:10]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E 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 EA 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9E EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 97 F0 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C7 0E 01 [11:59:10]Write to MH i2c: E2 02 01 EE D4 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E 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 EA 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9E EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 97 F0 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C7 0E 01 00 00 5E [11:59:10]Write i2c OK [11:59:10]MH_I2C_Read... [11:59:10]OFD Sender: No OFD packet to send [11:59:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:11]Read from MH i2c: E2 [11:59:11]MH_I2C_Read... [11:59:11]Read from MH i2c: E2 03 00 [11:59:11]MH_I2C_Read... [11:59:11]Read from MH i2c: E2 03 00 EE D4 00 90 00 36 [11:59:11]RAPDU: 90 00 [11:59:11]wFMCommunicate OK [11:59:11]wFMCommunicate request_size=16 [11:59:11]MH_SAM_APDU [11:59:11]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 E8 8A 68 17 38 7B [11:59:11]Write to MH i2c: E2 13 00 EF D4 80 0D 02 02 0B 00 00 35 04 06 00 E8 8A 68 17 38 7B 00 00 36 [11:59:11]Write i2c OK [11:59:11]MH_I2C_Read... [11:59:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:11]Read from MH i2c: E2 [11:59:11]MH_I2C_Read... [11:59:11]Read from MH i2c: E2 03 00 [11:59:11]MH_I2C_Read... [11:59:11]Read from MH i2c: E2 03 00 EF D4 00 90 00 37 [11:59:11]RAPDU: 90 00 [11:59:11]wFMCommunicate OK [11:59:11]wFMCommunicate request_size=4 [11:59:11]MH_SAM_APDU [11:59:11]CAPDU: 80 0D 03 02 [11:59:11]Write to MH i2c: E2 08 00 F0 D4 80 0D 03 02 00 00 00 00 3F [11:59:11]Write i2c OK [11:59:11]MH_I2C_Read... [11:59:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:59:11]Read from MH i2c: E2 [11:59:11]MH_I2C_Read... [11:59:11]Read from MH i2c: E2 0B 00 [11:59:11]MH_I2C_Read... [11:59:11]Read from MH i2c: E2 0B 00 F0 D4 00 81 9D 4E E8 B6 F6 EF 03 90 00 32 [11:59:11]RAPDU: 81 9D 4E E8 B6 F6 EF 03 90 00 [11:59:11]wFMCommunicate OK [11:59:11]SAM_PROTO_SignData done [11:59:11]FM_MakeSignedData done [11:59:11]CreateOFDProtocolMessage [11:59:11]wFMCommunicate request_size=4 [11:59:11]MH_SAM_APDU [11:59:11]CAPDU: 80 11 00 00 [11:59:11]Write to MH i2c: E2 08 00 F1 D4 80 11 00 00 00 00 00 00 3F [11:59:11]Write i2c OK [11:59:11]MH_I2C_Read... [11:59:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:11]Read from MH i2c: E2 [11:59:11]MH_I2C_Read... [11:59:11]Read from MH i2c: E2 17 00 [11:59:11]MH_I2C_Read... [11:59:11]Read from MH i2c: E2 17 00 F1 D4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 91 [11:59:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:59:11]wFMCommunicate OK [11:59:11]CreateOFDProtocolMessage done [11:59:11]OFDSenderStorePacket 69319 [11:59:11]StoreOFDPacket docnum=69319 [11:59:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 EC D3 0D 01 7F 7F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E 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 EA 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9E EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 97 F0 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C7 0E 01 00 35 04 06 00 E8 8A 68 17 38 7B 81 9D 4E E8 B6 F6 EF 03 [11:59:11]CheckFolder [11:59:11]dirname=/storage/ofd_packets [11:59:11]CheckFolder done [11:59:11]ProducePacketName [11:59:11]name=ofd_packets/00069319 [11:59:11]NVStorageSaveData ofd_packets/00069319 [11:59:11]File name is /storage/ofd_packets/00069319 [11:59:11]Write 307 bytes [11:59:11]NVStorageSaveData done [11:59:11]OFDSenderStorePacket done [11:59:11]KKMCreateOFDPacket done [11:59:11]NVStorageSaveData kkm_last_timestamp [11:59:11]File name is /storage/kkm_last_timestamp [11:59:11]Write 4 bytes [11:59:11]NVStorageSaveData done [11:59:11]ExternCall_PrintAddStr [11:59:11]wPrintStart [11:59:11]Write to MH i2c: 01 00 00 F2 D4 C6 [11:59:11]Write i2c OK [11:59:11]MH_I2C_Read... [11:59:11]Read from MH i2c: 01 [11:59:11]MH_I2C_Read... [11:59:11]Read from MH i2c: 01 07 00 [11:59:11]MH_I2C_Read... [11:59:11]Read from MH i2c: 01 07 00 F2 D4 00 00 00 00 00 FF 0F DB [11:59:11]RasterBufferAndPrint [11:59:11]line Счет N : (1)2885037 [11:59:11]line ИНН: 02508201610067 [11:59:11]line Контрольно-Кассовый Чек [11:59:11]line ПРОДАЖА [11:59:11]line ТРК (МРК, ГНК) : 31 [11:59:11]line Товар: 2710194240 [11:59:11]line D-ENERGY Дт-К-2 [11:59:11]line 7.780 * 77.20 [11:59:11]line = 600.62 [11:59:11]line НДС 12% НСП 1% [11:59:11]line > о реализуемом товаре [11:59:11]line ИТОГО: 600.62 [11:59:11]line НСП 1% : 5.31 [11:59:11]line НДС 12% : 63.78 [11:59:11]line Наличными: 0.00 [11:59:11]line Безнал.: 600.62 [11:59:11]line Место: АЗС № 85 "Партнер Нефть" [11:59:11]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [11:59:11]line СНО: Общий режим [11:59:11]line Чек 164 20.10.2024 11:59 [11:59:11]line Смена: 193 ФФД: 1.0 [11:59:11]line ЗНМ: 0300000167 [11:59:11]line РНМ: 0000000000156251 [11:59:11]line Версия ККМ: v1.0 [11:59:11]line Платежная система: Mbank [11:59:11]line ФМ: 0000000000963346 [11:59:11]line ФД: 69319 [11:59:11]line ФПД: 255681149483131 [11:59:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T115919&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69319&fm=255681149483131&tin=02508201610067®Number=0000000000156251&sum=60062 [11:59:11]OFD Sender: Processing packet 69319 [packets to send 18, broken 17] [11:59:11]ProducePacketName [11:59:11]name=ofd_packets/00069319 [11:59:11]OFD Sender: To server: pG, [11:59:11]CommunicateWithHost lk.salyk.kg:30040 [11:59:11]ConnectInit lk.salyk.kg [11:59:11]written 0, free lines is 4095 [11:59:11]Connected sock=10 [11:59:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 EC D3 0D 01 7F 7F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E 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 EA 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9E EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 97 F0 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C7 0E 01 00 35 04 06 00 E8 8A 68 17 38 7B 81 9D 4E E8 B6 F6 EF 03 [11:59:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 5F E9 47 00 49 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C7 0E 01 00 F4 03 04 00 3E 9A 14 67 B6 04 01 00 00 0A FC BC 2C B0 F5 2F EA [11:59:11]CommunicateWithHost err = 0 [11:59:11]CheckOFDResponse [11:59:11]1017 (14) - 77093643461234 [11:59:11]1041 (16) - 0000000000963346 [11:59:11]1040 (4) - 69319 [11:59:11]1012 (4) - 20.10.2024 05:50 [11:59:11]1206 (1) - 0 [11:59:11]OFD Sender: Remove packet 69319 [11:59:11]ProducePacketName [11:59:11]name=ofd_packets/00069319 [11:59:11]NVStorageDeleteData [11:59:11]Write to MH i2c: 01 00 00 1B D5 F0 [11:59:12]Write i2c OK [11:59:12]MH_I2C_Read... [11:59:12]Read from MH i2c: 01 [11:59:12]MH_I2C_Read... [11:59:12]Read from MH i2c: 01 07 00 [11:59:12]MH_I2C_Read... [11:59:12]Read from MH i2c: 01 07 00 1B D5 00 00 00 00 00 21 0D 25 [11:59:12]RasterBufferAndPrint [11:59:12]line [11:59:12]line [11:59:12]line [11:59:12]line [11:59:12]line [11:59:12]written 0, free lines is 3367 [11:59:12]MH_Cut [11:59:12]Write to MH i2c: D1 01 00 22 D5 01 C9 [11:59:12]Write i2c OK [11:59:12]MH_I2C_Read... [11:59:12]Read from MH i2c: D1 [11:59:12]MH_I2C_Read... [11:59:12]Read from MH i2c: D1 01 00 [11:59:12]MH_I2C_Read... [11:59:12]Read from MH i2c: D1 01 00 22 D5 00 C8 [11:59:12]Write to MH i2c: 01 00 00 23 D5 F8 [11:59:12]Write i2c OK [11:59:12]MH_I2C_Read... [11:59:12]OFD Sender: No OFD packet to send [11:59:12]*** Cut start [11:59:12]*** Partial cut [11:59:12]*** CUTSNS_PIN = 1 [11:59:12]*** CUTSNS_PIN = 0 [11:59:12]*** Brake cut motor [11:59:13]Read from MH i2c: 01 [11:59:13]MH_I2C_Read... [11:59:13]*** Stop cut motor [11:59:13]*** Cut end [11:59:13]Read from MH i2c: 01 07 00 [11:59:13]MH_I2C_Read... [11:59:13]Read from MH i2c: 01 07 00 23 D5 00 00 00 00 00 FF 0F 0D [11:59:13]process_action close_receipt done [11:59:13]requested_data is exist [11:59:13]produce_requested_data [11:59:13]requested_item fm.sn is exist - process it [11:59:13]wFMCommunicate request_size=4 [11:59:13]MH_SAM_APDU [11:59:13]CAPDU: 80 11 00 00 [11:59:13]Write to MH i2c: E2 08 00 24 D5 80 11 00 00 00 00 00 00 73 [11:59:13]Write i2c OK [11:59:13]MH_I2C_Read... [11:59:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:13]Read from MH i2c: E2 [11:59:13]MH_I2C_Read... [11:59:13]Read from MH i2c: E2 17 00 [11:59:13]MH_I2C_Read... [11:59:13]Read from MH i2c: E2 17 00 24 D5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C5 [11:59:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [11:59:13]wFMCommunicate OK [11:59:13]requested_item fd.num is exist - process it [11:59:13]SAM_PROTO_GetFieldsCounters [11:59:13]wFMCommunicate request_size=4 [11:59:13]MH_SAM_APDU [11:59:13]CAPDU: 80 13 00 00 [11:59:13]Write to MH i2c: E2 08 00 25 D5 80 13 00 00 00 00 00 00 76 [11:59:13]Write i2c OK [11:59:13]MH_I2C_Read... [11:59:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:59:13]Read from MH i2c: E2 [11:59:13]MH_I2C_Read... [11:59:13]Read from MH i2c: E2 62 00 [11:59:13]MH_I2C_Read... [11:59:13]Read from MH i2c: E2 62 00 25 D5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C7 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [11:59:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C7 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:59:13]wFMCommunicate OK [11:59:13]SAM_PROTO_GetFieldsCounters done [11:59:13]requested_item shift.num is exist - process it [11:59:13]requested_item shift.opened is exist - process it [11:59:13]req_shift_opened [11:59:13]FM_GetShiftState [11:59:13]SAM_PROTO_GetShiftState [11:59:13]wFMCommunicate request_size=4 [11:59:13]MH_SAM_APDU [11:59:13]CAPDU: 80 13 01 00 [11:59:13]Write to MH i2c: E2 08 00 26 D5 80 13 01 00 00 00 00 00 78 [11:59:13]Write i2c OK [11:59:13]MH_I2C_Read... [11:59:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:13]Read from MH i2c: E2 [11:59:13]MH_I2C_Read... [11:59:13]Read from MH i2c: E2 0E 00 [11:59:13]MH_I2C_Read... [11:59:13]Read from MH i2c: E2 0E 00 26 D5 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 7E [11:59:13]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [11:59:13]wFMCommunicate OK [11:59:13]SAM_PROTO_GetShiftState done [11:59:13]FM_GetShiftState done [11:59:13]req_shift_opened done [11:59:13]requested_item shift.open_date is exist - process it [11:59:13]req_shift_open_date [11:59:13]req_shift_open_date done [11:59:13]produce_requested_data done [11:59:13]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69319,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [11:59:13]process_action_free close_receipt [11:59:13]json_value_free [11:59:13]json_value_free done [11:59:13]process_json_proto returns [11:59:13]Send response to host [11:59:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69319,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [11:59:13]free response buf [11:59:13]execute_script done [11:59:13]execute_script returns [11:59:13]free content buf [11:59:13]Sock 8.Close socket [11:59:13]Sock 8.Thread stoped [11:59:17]OFD Sender: No OFD packet to send [11:59:22]OFD Sender: No OFD packet to send [11:59:27]OFD Sender: No OFD packet to send [11:59:32]OFD Sender: No OFD packet to send [11:59:37]OFD Sender: No OFD packet to send [11:59:42]OFD Sender: No OFD packet to send [11:59:47]OFD Sender: No OFD packet to send [11:59:52]OFD Sender: No OFD packet to send [11:59:57]OFD Sender: No OFD packet to send [12:00:02]OFD Sender: No OFD packet to send [12:00:07]OFD Sender: No OFD packet to send [12:00:12]OFD Sender: No OFD packet to send [12:00:17]OFD Sender: No OFD packet to send [12:00:22]OFD Sender: No OFD packet to send [12:00:27]OFD Sender: No OFD packet to send [12:00:32]OFD Sender: No OFD packet to send [12:00:37]OFD Sender: No OFD packet to send [12:00:42]OFD Sender: No OFD packet to send [12:00:47]OFD Sender: No OFD packet to send [12:00:48]accept exits with 9 [12:00:48]New connection [12:00:48]New thread 3067116900 created [12:00:48]Thread 3067260260 joined [12:00:48]Waiting for new connection... [12:00:48] Sock 9.Parse request [12:00:48]Sock 9.Check first char [12:00:48]Sock 9.First char is OK [12:00:48]request: POST /json_proto HTTP/1.0 [12:00:48]Method: POST [12:00:48]URL: /json_proto [12:00:48]Method is POST - this is cgi request [12:00:48]url: /json_proto [12:00:48]query_string will be loaded in cgi processing [12:00:48]execute_cgi json_proto POST (null) [12:00:48]execute_cgi path=json_proto method=POST [12:00:48]POST find Content-Length [12:00:48]Host: 172.17.50.3:8080 [12:00:48]Content-Length: 678 [12:00:48]Content-Type: application/json [12:00:48] [12:00:48]POST finish read [12:00:48]Found Content-Length = 678 [12:00:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:48]execute_script... [12:00:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:48]POST & json_proto [12:00:48]process_json_proto [12:00:48]json parsed OK: [12:00:48]protocol is kg_v1.0 [12:00:48]action value=close_receipt [12:00:48]process_action close_receipt [12:00:48]cmd_close_receipt [12:00:48]MH_GetDate [12:00:48]Write to MH i2c: F0 00 00 27 D5 EB [12:00:48]Write i2c OK [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: F0 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: F0 09 00 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: F0 09 00 27 D5 00 FB F0 14 67 6B 98 1E 66 E1 [12:00:48]GetLastDocTimeStamp 1729425559 [12:00:48]current date 1729425659 [12:00:48]FM_GetShiftState [12:00:48]SAM_PROTO_GetShiftState [12:00:48]wFMCommunicate request_size=4 [12:00:48]MH_SAM_APDU [12:00:48]CAPDU: 80 13 01 00 [12:00:48]Write to MH i2c: E2 08 00 28 D5 80 13 01 00 00 00 00 00 7A [12:00:48]Write i2c OK [12:00:48]MH_I2C_Read... [12:00:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:48]Read from MH i2c: E2 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 0E 00 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 0E 00 28 D5 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 80 [12:00:48]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:00:48]wFMCommunicate OK [12:00:48]SAM_PROTO_GetShiftState done [12:00:48]FM_GetShiftState done [12:00:48]opened in 1729383220 [12:00:48]opened+sec_in_day 1729469620 [12:00:48]quantity*price = 60009 [12:00:48]sum+1 = 60010 [12:00:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 165 20.10.2024 12:00 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69320 ФПД: 267038907254312 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120059&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69320&fm=267038907254312&tin=02508201610067®Number=0000000000156251&sum=60000 [12:00:50]StoreToDocumentArchive [12:00:50]shift 193 fd 69320 [12:00:50]save to /storage/0193/doc_00069320 [12:00:50]save last doc name /storage/0193/doc_00069320 to /storage/kkm_last_doc_name [12:00:50]save OK [12:00:50]Clear old archive folders... [12:00:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:00:50]tlvbuf is 007F1C60 [12:00:50]SAM_PROTO_ClearQueue [12:00:50]wFMCommunicate request_size=4 [12:00:50]MH_SAM_APDU [12:00:50]CAPDU: 80 09 00 00 [12:00:50]Write to MH i2c: E2 08 00 35 D5 80 09 00 00 00 00 00 00 7C [12:00:50]Write i2c OK [12:00:50]MH_I2C_Read... [12:00:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:00:50]Read from MH i2c: E2 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: E2 03 00 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: E2 03 00 35 D5 00 90 00 7E [12:00:50]RAPDU: 90 00 [12:00:50]wFMCommunicate OK [12:00:50]SAM_PROTO_ClearQueue done [12:00:50]KKMCreateOFDPacket [12:00:50]OFDProtocolAddRootSTLVToBuf [12:00:50]FM_MakeSignedData [12:00:50]FM_MakeSignedData [12:00:50]SAM_PROTO_SignData [12:00:50]wFMCommunicate request_size=4 [12:00:50]MH_SAM_APDU [12:00:50]CAPDU: 80 0D 01 02 [12:00:50]Write to MH i2c: E2 08 00 36 D5 80 0D 01 02 00 00 00 00 84 [12:00:50]Write i2c OK [12:00:50]MH_I2C_Read... [12:00:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:00:50]Read from MH i2c: E2 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: E2 03 00 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: E2 03 00 36 D5 00 90 00 7F [12:00:50]RAPDU: 90 00 [12:00:50]wFMCommunicate OK [12:00:50]wFMCommunicate request_size=255 [12:00:50]MH_SAM_APDU [12:00: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 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 FB F0 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C8 0E 01 00 35 04 06 00 F2 [12:00:50]Write to MH i2c: E2 02 01 37 D5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 FB F0 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C8 0E 01 00 35 04 06 00 F2 00 00 7F [12:00:50]Write i2c OK [12:00:50]MH_I2C_Read... [12:00:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:50]Read from MH i2c: E2 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: E2 03 00 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: E2 03 00 37 D5 00 90 00 80 [12:00:50]RAPDU: 90 00 [12:00:50]wFMCommunicate OK [12:00:50]wFMCommunicate request_size=10 [12:00:50]MH_SAM_APDU [12:00:50]CAPDU: 80 0D 02 02 05 DE D7 35 46 28 [12:00:50]Write to MH i2c: E2 0D 00 38 D5 80 0D 02 02 05 00 DE D7 35 46 28 00 00 E9 [12:00:50]Write i2c OK [12:00:50]MH_I2C_Read... [12:00:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:50]Read from MH i2c: E2 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: E2 03 00 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: E2 03 00 38 D5 00 90 00 81 [12:00:50]RAPDU: 90 00 [12:00:50]wFMCommunicate OK [12:00:50]wFMCommunicate request_size=4 [12:00:50]MH_SAM_APDU [12:00:50]CAPDU: 80 0D 03 02 [12:00:50]Write to MH i2c: E2 08 00 39 D5 80 0D 03 02 00 00 00 00 89 [12:00:50]Write i2c OK [12:00:50]MH_I2C_Read... [12:00:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:00:50]Read from MH i2c: E2 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: E2 0B 00 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: E2 0B 00 39 D5 00 E5 D4 4F 6C 44 31 F0 E6 90 00 49 [12:00:50]RAPDU: E5 D4 4F 6C 44 31 F0 E6 90 00 [12:00:50]wFMCommunicate OK [12:00:50]SAM_PROTO_SignData done [12:00:50]FM_MakeSignedData done [12:00:50]CreateOFDProtocolMessage [12:00:50]wFMCommunicate request_size=4 [12:00:50]MH_SAM_APDU [12:00:50]CAPDU: 80 11 00 00 [12:00:50]Write to MH i2c: E2 08 00 3A D5 80 11 00 00 00 00 00 00 89 [12:00:50]Write i2c OK [12:00:50]MH_I2C_Read... [12:00:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:50]Read from MH i2c: E2 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: E2 17 00 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: E2 17 00 3A D5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DB [12:00:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:00:50]wFMCommunicate OK [12:00:50]CreateOFDProtocolMessage done [12:00:50]OFDSenderStorePacket 69320 [12:00:50]StoreOFDPacket docnum=69320 [12:00:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 64 56 07 01 DD 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 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 FB F0 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C8 0E 01 00 35 04 06 00 F2 DE D7 35 46 28 E5 D4 4F 6C 44 31 F0 E6 [12:00:50]CheckFolder [12:00:50]dirname=/storage/ofd_packets [12:00:50]CheckFolder done [12:00:50]ProducePacketName [12:00:50]name=ofd_packets/00069320 [12:00:50]NVStorageSaveData ofd_packets/00069320 [12:00:50]File name is /storage/ofd_packets/00069320 [12:00:50]Write 301 bytes [12:00:50]NVStorageSaveData done [12:00:50]OFDSenderStorePacket done [12:00:50]KKMCreateOFDPacket done [12:00:50]NVStorageSaveData kkm_last_timestamp [12:00:50]File name is /storage/kkm_last_timestamp [12:00:50]Write 4 bytes [12:00:50]NVStorageSaveData done [12:00:50]ExternCall_PrintAddStr [12:00:50]wPrintStart [12:00:50]Write to MH i2c: 01 00 00 3B D5 10 [12:00:50]Write i2c OK [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: 01 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: 01 07 00 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: 01 07 00 3B D5 00 00 00 00 00 FF 0F 25 [12:00:50]RasterBufferAndPrint [12:00:50]line Счет N : (1)2885040 [12:00:50]line ИНН: 02508201610067 [12:00:50]line Контрольно-Кассовый Чек [12:00:50]line ПРОДАЖА [12:00:50]line ТРК (МРК, ГНК) : 22 [12:00:50]line Товар: 2710124130 [12:00:50]line Аи-92-К-5 [12:00:50]line 8.970 * 66.90 [12:00:50]line = 600.09 [12:00:50]line НДС 12% НСП 1% [12:00:50]line > о реализуемом товаре [12:00:50]line ОКРУГЛЕНИЕ: -0.09 [12:00:50]line ИТОГО: 600.00 [12:00:50]line Внесено: 600.00 [12:00:50]line СДАЧА: 0.00 [12:00:50]line НСП 1% : 5.31 [12:00:50]line НДС 12% : 63.73 [12:00:50]line Наличными: 600.00 [12:00:50]line Безнал.: 0.00 [12:00:50]line Место: АЗС № 85 "Партнер Нефть" [12:00:50]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:00:50]line СНО: Общий режим [12:00:50]line Чек 165 20.10.2024 12:00 [12:00:50]line Смена: 193 ФФД: 1.0 [12:00:50]line ЗНМ: 0300000167 [12:00:50]line РНМ: 0000000000156251 [12:00:50]line Версия ККМ: v1.0 [12:00:50]line ФМ: 0000000000963346 [12:00:50]line ФД: 69320 [12:00:50]line ФПД: 267038907254312 [12:00:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120059&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69320&fm=267038907254312&tin=02508201610067®Number=0000000000156251&sum=60000 [12:00:50]OFD Sender: Processing packet 69320 [packets to send 18, broken 17] [12:00:50]ProducePacketName [12:00:50]name=ofd_packets/00069320 [12:00:50]OFD Sender: To server: pG, [12:00:50]CommunicateWithHost lk.salyk.kg:30040 [12:00:50]ConnectInit lk.salyk.kg [12:00:50]written 0, free lines is 4095 [12:00:50]Connected sock=10 [12:00:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 64 56 07 01 DD 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 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 FB F0 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C8 0E 01 00 35 04 06 00 F2 DE D7 35 46 28 E5 D4 4F 6C 44 31 F0 E6 [12:00:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 4E D6 47 00 3B 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C8 0E 01 00 F4 03 04 00 A1 9A 14 67 B6 04 01 00 00 B6 65 7E F3 63 5B F3 81 [12:00:51]CommunicateWithHost err = 0 [12:00:51]CheckOFDResponse [12:00:51]1017 (14) - 77093643461234 [12:00:51]1041 (16) - 0000000000963346 [12:00:51]1040 (4) - 69320 [12:00:51]1012 (4) - 20.10.2024 05:52 [12:00:51]1206 (1) - 0 [12:00:51]OFD Sender: Remove packet 69320 [12:00:51]ProducePacketName [12:00:51]name=ofd_packets/00069320 [12:00:51]NVStorageDeleteData [12:00:51]Write to MH i2c: 01 00 00 66 D5 3B [12:00:51]Write i2c OK [12:00:51]MH_I2C_Read... [12:00:51]Read from MH i2c: 01 [12:00:51]MH_I2C_Read... [12:00:51]Read from MH i2c: 01 07 00 [12:00:51]MH_I2C_Read... [12:00:51]Read from MH i2c: 01 07 00 66 D5 00 00 00 00 00 F6 0C 44 [12:00:51]RasterBufferAndPrint [12:00:51]line [12:00:51]line [12:00:51]line [12:00:51]line [12:00:51]line [12:00:51]written 0, free lines is 3328 [12:00:51]MH_Cut [12:00:51]Write to MH i2c: D1 01 00 6D D5 01 14 [12:00:51]Write i2c OK [12:00:51]MH_I2C_Read... [12:00:51]Read from MH i2c: D1 [12:00:51]MH_I2C_Read... [12:00:51]Read from MH i2c: D1 01 00 [12:00:51]MH_I2C_Read... [12:00:51]Read from MH i2c: D1 01 00 6D D5 00 13 [12:00:51]Write to MH i2c: 01 00 00 6E D5 43 [12:00:51]Write i2c OK [12:00:51]MH_I2C_Read... [12:00:51]OFD Sender: No OFD packet to send [12:00:52]*** Cut start [12:00:52]*** Partial cut [12:00:52]*** CUTSNS_PIN = 1 [12:00:52]*** CUTSNS_PIN = 0 [12:00:52]*** Brake cut motor [12:00:52]Read from MH i2c: 01 [12:00:52]MH_I2C_Read... [12:00:52]*** Stop cut motor [12:00:52]*** Cut end [12:00:52]Read from MH i2c: 01 07 00 [12:00:52]MH_I2C_Read... [12:00:52]Read from MH i2c: 01 07 00 6E D5 00 00 00 00 00 FF 0F 58 [12:00:52]process_action close_receipt done [12:00:52]requested_data is exist [12:00:52]produce_requested_data [12:00:52]requested_item fm.sn is exist - process it [12:00:52]wFMCommunicate request_size=4 [12:00:52]MH_SAM_APDU [12:00:52]CAPDU: 80 11 00 00 [12:00:52]Write to MH i2c: E2 08 00 6F D5 80 11 00 00 00 00 00 00 BE [12:00:52]Write i2c OK [12:00:52]MH_I2C_Read... [12:00:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:52]Read from MH i2c: E2 [12:00:52]MH_I2C_Read... [12:00:52]Read from MH i2c: E2 17 00 [12:00:52]MH_I2C_Read... [12:00:52]Read from MH i2c: E2 17 00 6F D5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 10 [12:00:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:00:52]wFMCommunicate OK [12:00:52]requested_item fd.num is exist - process it [12:00:52]SAM_PROTO_GetFieldsCounters [12:00:52]wFMCommunicate request_size=4 [12:00:52]MH_SAM_APDU [12:00:52]CAPDU: 80 13 00 00 [12:00:52]Write to MH i2c: E2 08 00 70 D5 80 13 00 00 00 00 00 00 C1 [12:00:52]Write i2c OK [12:00:52]MH_I2C_Read... [12:00:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:52]Read from MH i2c: E2 [12:00:52]MH_I2C_Read... [12:00:52]Read from MH i2c: E2 62 00 [12:00:52]MH_I2C_Read... [12:00:52]Read from MH i2c: E2 62 00 70 D5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C8 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [12:00:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C8 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:00:52]wFMCommunicate OK [12:00:52]SAM_PROTO_GetFieldsCounters done [12:00:52]requested_item shift.num is exist - process it [12:00:52]requested_item shift.opened is exist - process it [12:00:52]req_shift_opened [12:00:52]FM_GetShiftState [12:00:52]SAM_PROTO_GetShiftState [12:00:52]wFMCommunicate request_size=4 [12:00:52]MH_SAM_APDU [12:00:52]CAPDU: 80 13 01 00 [12:00:52]Write to MH i2c: E2 08 00 71 D5 80 13 01 00 00 00 00 00 C3 [12:00:52]Write i2c OK [12:00:52]MH_I2C_Read... [12:00:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:52]Read from MH i2c: E2 [12:00:52]MH_I2C_Read... [12:00:52]Read from MH i2c: E2 0E 00 [12:00:52]MH_I2C_Read... [12:00:52]Read from MH i2c: E2 0E 00 71 D5 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 C9 [12:00:52]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:00:52]wFMCommunicate OK [12:00:52]SAM_PROTO_GetShiftState done [12:00:52]FM_GetShiftState done [12:00:52]req_shift_opened done [12:00:52]requested_item shift.open_date is exist - process it [12:00:52]req_shift_open_date [12:00:52]req_shift_open_date done [12:00:52]produce_requested_data done [12:00:52]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69320,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [12:00:52]process_action_free close_receipt [12:00:52]json_value_free [12:00:52]json_value_free done [12:00:52]process_json_proto returns [12:00:52]Send response to host [12:00:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69320,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [12:00:52]free response buf [12:00:52]execute_script done [12:00:52]execute_script returns [12:00:52]free content buf [12:00:52]Sock 9.Close socket [12:00:52]Sock 9.Thread stoped [12:00:53]accept exits with 8 [12:00:53]New connection [12:00:53]New thread 3067260260 created [12:00:53]Thread 3067116900 joined [12:00:53]Waiting for new connection... [12:00:53] Sock 8.Parse request [12:00:53]Sock 8.Check first char [12:00:53]Sock 8.First char is OK [12:00:53]request: POST /json_proto HTTP/1.0 [12:00:53]Method: POST [12:00:53]URL: /json_proto [12:00:53]Method is POST - this is cgi request [12:00:53]url: /json_proto [12:00:53]query_string will be loaded in cgi processing [12:00:53]execute_cgi json_proto POST (null) [12:00:53]execute_cgi path=json_proto method=POST [12:00:53]POST find Content-Length [12:00:53]Host: 172.17.50.3:8080 [12:00:53]Content-Length: 678 [12:00:53]Content-Type: application/json [12:00:53] [12:00:53]POST finish read [12:00:53]Found Content-Length = 678 [12:00:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:53]execute_script... [12:00: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)2885039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:53]POST & json_proto [12:00:53]process_json_proto [12:00:53]json parsed OK: [12:00:53]protocol is kg_v1.0 [12:00:53]action value=close_receipt [12:00:53]process_action close_receipt [12:00:53]cmd_close_receipt [12:00:53]MH_GetDate [12:00:53]Write to MH i2c: F0 00 00 72 D5 36 [12:00:53]Write i2c OK [12:00:53]MH_I2C_Read... [12:00:53]Read from MH i2c: F0 [12:00:53]MH_I2C_Read... [12:00:53]Read from MH i2c: F0 09 00 [12:00:53]MH_I2C_Read... [12:00:53]Read from MH i2c: F0 09 00 72 D5 00 FF F0 14 67 6B 98 1E 66 30 [12:00:53]GetLastDocTimeStamp 1729425659 [12:00:53]current date 1729425663 [12:00:53]FM_GetShiftState [12:00:53]SAM_PROTO_GetShiftState [12:00:53]wFMCommunicate request_size=4 [12:00:53]MH_SAM_APDU [12:00:53]CAPDU: 80 13 01 00 [12:00:53]Write to MH i2c: E2 08 00 73 D5 80 13 01 00 00 00 00 00 C5 [12:00:53]Write i2c OK [12:00:53]MH_I2C_Read... [12:00:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:53]Read from MH i2c: E2 [12:00:53]MH_I2C_Read... [12:00:53]Read from MH i2c: E2 0E 00 [12:00:53]MH_I2C_Read... [12:00:53]Read from MH i2c: E2 0E 00 73 D5 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 CB [12:00:53]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:00:53]wFMCommunicate OK [12:00:53]SAM_PROTO_GetShiftState done [12:00:53]FM_GetShiftState done [12:00:53]opened in 1729383220 [12:00:53]opened+sec_in_day 1729469620 [12:00:53]quantity*price = 50041 [12:00:53]sum+1 = 50042 [12:00:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 166 20.10.2024 12:01 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69321 ФПД: 103197640051579 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120103&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69321&fm=103197640051579&tin=02508201610067®Number=0000000000156251&sum=50000 [12:00:54]StoreToDocumentArchive [12:00:54]shift 193 fd 69321 [12:00:54]save to /storage/0193/doc_00069321 [12:00:54]save last doc name /storage/0193/doc_00069321 to /storage/kkm_last_doc_name [12:00:54]save OK [12:00:54]Clear old archive folders... [12:00:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:00:54]tlvbuf is 00530CC0 [12:00:54]SAM_PROTO_ClearQueue [12:00:54]wFMCommunicate request_size=4 [12:00:54]MH_SAM_APDU [12:00:54]CAPDU: 80 09 00 00 [12:00:54]Write to MH i2c: E2 08 00 80 D5 80 09 00 00 00 00 00 00 C7 [12:00:54]Write i2c OK [12:00:54]MH_I2C_Read... [12:00:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:00:54]Read from MH i2c: E2 [12:00:54]MH_I2C_Read... [12:00:54]Read from MH i2c: E2 03 00 [12:00:54]MH_I2C_Read... [12:00:54]Read from MH i2c: E2 03 00 80 D5 00 90 00 C9 [12:00:54]RAPDU: 90 00 [12:00:54]wFMCommunicate OK [12:00:54]SAM_PROTO_ClearQueue done [12:00:54]KKMCreateOFDPacket [12:00:54]OFDProtocolAddRootSTLVToBuf [12:00:54]FM_MakeSignedData [12:00:54]FM_MakeSignedData [12:00:54]SAM_PROTO_SignData [12:00:54]wFMCommunicate request_size=4 [12:00:54]MH_SAM_APDU [12:00:54]CAPDU: 80 0D 01 02 [12:00:54]Write to MH i2c: E2 08 00 81 D5 80 0D 01 02 00 00 00 00 CF [12:00:54]Write i2c OK [12:00:54]MH_I2C_Read... [12:00:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:00:54]Read from MH i2c: E2 [12:00:54]MH_I2C_Read... [12:00:54]Read from MH i2c: E2 03 00 [12:00:54]MH_I2C_Read... [12:00:54]Read from MH i2c: E2 03 00 81 D5 00 90 00 CA [12:00:54]RAPDU: 90 00 [12:00:54]wFMCommunicate OK [12:00:54]wFMCommunicate request_size=255 [12:00:54]MH_SAM_APDU [12:00: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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 FF F0 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C9 0E 01 00 35 04 06 00 5D [12:00:54]Write to MH i2c: E2 02 01 82 D5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 FF F0 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C9 0E 01 00 35 04 06 00 5D 00 00 5E [12:00:54]Write i2c OK [12:00:54]MH_I2C_Read... [12:00:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:55]Read from MH i2c: E2 [12:00:55]MH_I2C_Read... [12:00:55]Read from MH i2c: E2 03 00 [12:00:55]MH_I2C_Read... [12:00:55]Read from MH i2c: E2 03 00 82 D5 00 90 00 CB [12:00:55]RAPDU: 90 00 [12:00:55]wFMCommunicate OK [12:00:55]wFMCommunicate request_size=10 [12:00:55]MH_SAM_APDU [12:00:55]CAPDU: 80 0D 02 02 05 DB 92 AD 4B 7B [12:00:55]Write to MH i2c: E2 0D 00 83 D5 80 0D 02 02 05 00 DB 92 AD 4B 7B 00 00 BC [12:00:55]Write i2c OK [12:00:55]MH_I2C_Read... [12:00:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:55]Read from MH i2c: E2 [12:00:55]MH_I2C_Read... [12:00:55]Read from MH i2c: E2 03 00 [12:00:55]MH_I2C_Read... [12:00:55]Read from MH i2c: E2 03 00 83 D5 00 90 00 CC [12:00:55]RAPDU: 90 00 [12:00:55]wFMCommunicate OK [12:00:55]wFMCommunicate request_size=4 [12:00:55]MH_SAM_APDU [12:00:55]CAPDU: 80 0D 03 02 [12:00:55]Write to MH i2c: E2 08 00 84 D5 80 0D 03 02 00 00 00 00 D4 [12:00:55]Write i2c OK [12:00:55]MH_I2C_Read... [12:00:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:00:55]Read from MH i2c: E2 [12:00:55]MH_I2C_Read... [12:00:55]Read from MH i2c: E2 0B 00 [12:00:55]MH_I2C_Read... [12:00:55]Read from MH i2c: E2 0B 00 84 D5 00 E0 AE BF 7B 87 E9 EA 47 90 00 3E [12:00:55]RAPDU: E0 AE BF 7B 87 E9 EA 47 90 00 [12:00:55]wFMCommunicate OK [12:00:55]SAM_PROTO_SignData done [12:00:55]FM_MakeSignedData done [12:00:55]CreateOFDProtocolMessage [12:00:55]wFMCommunicate request_size=4 [12:00:55]MH_SAM_APDU [12:00:55]CAPDU: 80 11 00 00 [12:00:55]Write to MH i2c: E2 08 00 85 D5 80 11 00 00 00 00 00 00 D4 [12:00:55]Write i2c OK [12:00:55]MH_I2C_Read... [12:00:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:55]Read from MH i2c: E2 [12:00:55]MH_I2C_Read... [12:00:55]Read from MH i2c: E2 17 00 [12:00:55]MH_I2C_Read... [12:00:55]Read from MH i2c: E2 17 00 85 D5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 26 [12:00:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:00:55]wFMCommunicate OK [12:00:55]CreateOFDProtocolMessage done [12:00:55]OFDSenderStorePacket 69321 [12:00:55]StoreOFDPacket docnum=69321 [12:00:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 19 2D 07 01 FC 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 FF F0 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C9 0E 01 00 35 04 06 00 5D DB 92 AD 4B 7B E0 AE BF 7B 87 E9 EA 47 [12:00:55]CheckFolder [12:00:55]dirname=/storage/ofd_packets [12:00:55]CheckFolder done [12:00:55]ProducePacketName [12:00:55]name=ofd_packets/00069321 [12:00:55]NVStorageSaveData ofd_packets/00069321 [12:00:55]File name is /storage/ofd_packets/00069321 [12:00:55]Write 301 bytes [12:00:55]NVStorageSaveData done [12:00:55]OFDSenderStorePacket done [12:00:55]KKMCreateOFDPacket done [12:00:55]NVStorageSaveData kkm_last_timestamp [12:00:55]File name is /storage/kkm_last_timestamp [12:00:55]Write 4 bytes [12:00:55]NVStorageSaveData done [12:00:55]ExternCall_PrintAddStr [12:00:55]wPrintStart [12:00:55]Write to MH i2c: 01 00 00 86 D5 5B [12:00:55]Write i2c OK [12:00:55]MH_I2C_Read... [12:00:55]Read from MH i2c: 01 [12:00:55]MH_I2C_Read... [12:00:55]Read from MH i2c: 01 07 00 [12:00:55]MH_I2C_Read... [12:00:55]Read from MH i2c: 01 07 00 86 D5 00 00 00 00 00 FF 0F 70 [12:00:55]RasterBufferAndPrint [12:00:55]line Счет N : (1)2885039 [12:00:55]line ИНН: 02508201610067 [12:00:55]line Контрольно-Кассовый Чек [12:00:55]line ПРОДАЖА [12:00:55]line ТРК (МРК, ГНК) : 42 [12:00:55]line Товар: 2710124130 [12:00:55]line Аи-92-К-5 [12:00:55]line 7.480 * 66.90 [12:00:55]line = 500.41 [12:00:55]line НДС 12% НСП 1% [12:00:55]line > о реализуемом товаре [12:00:55]line ОКРУГЛЕНИЕ: -0.41 [12:00:55]line ИТОГО: 500.00 [12:00:55]line Внесено: 500.00 [12:00:55]line СДАЧА: 0.00 [12:00:55]line НСП 1% : 4.43 [12:00:55]line НДС 12% : 53.14 [12:00:55]line Наличными: 500.00 [12:00:55]line Безнал.: 0.00 [12:00:55]line Место: АЗС № 85 "Партнер Нефть" [12:00:55]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:00:55]line СНО: Общий режим [12:00:55]line Чек 166 20.10.2024 12:01 [12:00:55]line Смена: 193 ФФД: 1.0 [12:00:55]line ЗНМ: 0300000167 [12:00:55]line РНМ: 0000000000156251 [12:00:55]line Версия ККМ: v1.0 [12:00:55]line ФМ: 0000000000963346 [12:00:55]line ФД: 69321 [12:00:55]line ФПД: 103197640051579 [12:00:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120103&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69321&fm=103197640051579&tin=02508201610067®Number=0000000000156251&sum=50000 [12:00:55]written 0, free lines is 4095 [12:00:55]OFD Sender: Processing packet 69321 [packets to send 18, broken 17] [12:00:55]ProducePacketName [12:00:55]name=ofd_packets/00069321 [12:00:55]OFD Sender: To server: pG, [12:00:55]CommunicateWithHost lk.salyk.kg:30040 [12:00:55]ConnectInit lk.salyk.kg [12:00:55]Connected sock=10 [12:00:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 19 2D 07 01 FC 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 FF F0 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C9 0E 01 00 35 04 06 00 5D DB 92 AD 4B 7B E0 AE BF 7B 87 E9 EA 47 [12:00:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 22 67 47 00 6D FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C9 0E 01 00 F4 03 04 00 A6 9A 14 67 B6 04 01 00 00 64 FA 4E 7D 4F 25 B7 C8 [12:00:55]CommunicateWithHost err = 0 [12:00:55]CheckOFDResponse [12:00:55]1017 (14) - 77093643461234 [12:00:55]1041 (16) - 0000000000963346 [12:00:55]1040 (4) - 69321 [12:00:55]1012 (4) - 20.10.2024 05:52 [12:00:55]1206 (1) - 0 [12:00:55]OFD Sender: Remove packet 69321 [12:00:55]ProducePacketName [12:00:55]name=ofd_packets/00069321 [12:00:55]NVStorageDeleteData [12:00:55]Write to MH i2c: 01 00 00 B1 D5 86 [12:00:55]Write i2c OK [12:00:55]MH_I2C_Read... [12:00:55]Read from MH i2c: 01 [12:00:55]MH_I2C_Read... [12:00:55]Read from MH i2c: 01 07 00 [12:00:55]MH_I2C_Read... [12:00:55]Read from MH i2c: 01 07 00 B1 D5 00 00 00 00 00 0F 0D A9 [12:00:55]RasterBufferAndPrint [12:00:55]line [12:00:55]line [12:00:55]line [12:00:55]line [12:00:55]line [12:00:55]written 0, free lines is 3358 [12:00:55]MH_Cut [12:00:55]Write to MH i2c: D1 01 00 B8 D5 01 5F [12:00:55]Write i2c OK [12:00:55]MH_I2C_Read... [12:00:55]Read from MH i2c: D1 [12:00:55]MH_I2C_Read... [12:00:55]Read from MH i2c: D1 01 00 [12:00:55]MH_I2C_Read... [12:00:55]Read from MH i2c: D1 01 00 B8 D5 00 5E [12:00:55]Write to MH i2c: 01 00 00 B9 D5 8E [12:00:55]Write i2c OK [12:00:55]MH_I2C_Read... [12:00:56]OFD Sender: No OFD packet to send [12:00:56]*** Cut start [12:00:56]*** Partial cut [12:00:56]*** CUTSNS_PIN = 1 [12:00:56]*** CUTSNS_PIN = 0 [12:00:56]*** Brake cut motor [12:00:57]Read from MH i2c: 01 [12:00:57]MH_I2C_Read... [12:00:57]*** Stop cut motor [12:00:57]*** Cut end [12:00:57]Read from MH i2c: 01 07 00 [12:00:57]MH_I2C_Read... [12:00:57]Read from MH i2c: 01 07 00 B9 D5 00 00 00 00 00 FF 0F A3 [12:00:57]process_action close_receipt done [12:00:57]requested_data is exist [12:00:57]produce_requested_data [12:00:57]requested_item fm.sn is exist - process it [12:00:57]wFMCommunicate request_size=4 [12:00:57]MH_SAM_APDU [12:00:57]CAPDU: 80 11 00 00 [12:00:57]Write to MH i2c: E2 08 00 BA D5 80 11 00 00 00 00 00 00 09 [12:00:57]Write i2c OK [12:00:57]MH_I2C_Read... [12:00:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:57]Read from MH i2c: E2 [12:00:57]MH_I2C_Read... [12:00:57]Read from MH i2c: E2 17 00 [12:00:57]MH_I2C_Read... [12:00:57]Read from MH i2c: E2 17 00 BA D5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5B [12:00:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:00:57]wFMCommunicate OK [12:00:57]requested_item fd.num is exist - process it [12:00:57]SAM_PROTO_GetFieldsCounters [12:00:57]wFMCommunicate request_size=4 [12:00:57]MH_SAM_APDU [12:00:57]CAPDU: 80 13 00 00 [12:00:57]Write to MH i2c: E2 08 00 BB D5 80 13 00 00 00 00 00 00 0C [12:00:57]Write i2c OK [12:00:57]MH_I2C_Read... [12:00:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:57]Read from MH i2c: E2 [12:00:57]MH_I2C_Read... [12:00:57]Read from MH i2c: E2 62 00 [12:00:57]MH_I2C_Read... [12:00:57]Read from MH i2c: E2 62 00 BB D5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C9 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [12:00:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C9 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:00:57]wFMCommunicate OK [12:00:57]SAM_PROTO_GetFieldsCounters done [12:00:57]requested_item shift.num is exist - process it [12:00:57]requested_item shift.opened is exist - process it [12:00:57]req_shift_opened [12:00:57]FM_GetShiftState [12:00:57]SAM_PROTO_GetShiftState [12:00:57]wFMCommunicate request_size=4 [12:00:57]MH_SAM_APDU [12:00:57]CAPDU: 80 13 01 00 [12:00:57]Write to MH i2c: E2 08 00 BC D5 80 13 01 00 00 00 00 00 0E [12:00:57]Write i2c OK [12:00:57]MH_I2C_Read... [12:00:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:57]Read from MH i2c: E2 [12:00:57]MH_I2C_Read... [12:00:57]Read from MH i2c: E2 0E 00 [12:00:57]MH_I2C_Read... [12:00:57]Read from MH i2c: E2 0E 00 BC D5 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 14 [12:00:57]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:00:57]wFMCommunicate OK [12:00:57]SAM_PROTO_GetShiftState done [12:00:57]FM_GetShiftState done [12:00:57]req_shift_opened done [12:00:57]requested_item shift.open_date is exist - process it [12:00:57]req_shift_open_date [12:00:57]req_shift_open_date done [12:00:57]produce_requested_data done [12:00:57]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69321,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [12:00:57]process_action_free close_receipt [12:00:57]json_value_free [12:00:57]json_value_free done [12:00:57]process_json_proto returns [12:00:57]Send response to host [12:00:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69321,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [12:00:57]free response buf [12:00:57]execute_script done [12:00:57]execute_script returns [12:00:57]free content buf [12:00:57]Sock 8.Close socket [12:00:57]Sock 8.Thread stoped [12:01:01]OFD Sender: No OFD packet to send [12:01:06]OFD Sender: No OFD packet to send [12:01:11]OFD Sender: No OFD packet to send [12:01:15]accept exits with 9 [12:01:15]New connection [12:01:15]New thread 3067116900 created [12:01:15]Thread 3067260260 joined [12:01:15]Waiting for new connection... [12:01:15] Sock 9.Parse request [12:01:15]Sock 9.Check first char [12:01:15]Sock 9.First char is OK [12:01:15]request: POST /json_proto HTTP/1.0 [12:01:15]Method: POST [12:01:15]URL: /json_proto [12:01:15]Method is POST - this is cgi request [12:01:15]url: /json_proto [12:01:15]query_string will be loaded in cgi processing [12:01:15]execute_cgi json_proto POST (null) [12:01:15]execute_cgi path=json_proto method=POST [12:01:15]POST find Content-Length [12:01:15]Host: 172.17.50.3:8080 [12:01:15]Content-Length: 773 [12:01:15]Content-Type: application/json [12:01:15] [12:01:15]POST finish read [12:01:15]Found Content-Length = 773 [12:01:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:15]execute_script... [12:01: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)2885038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:15]POST & json_proto [12:01:15]process_json_proto [12:01:15]json parsed OK: [12:01:15]protocol is kg_v1.0 [12:01:15]action value=close_receipt [12:01:15]process_action close_receipt [12:01:15]cmd_close_receipt [12:01:15]MH_GetDate [12:01:15]Write to MH i2c: F0 00 00 BD D5 81 [12:01:15]Write i2c OK [12:01:15]MH_I2C_Read... [12:01:15]Read from MH i2c: F0 [12:01:15]MH_I2C_Read... [12:01:15]Read from MH i2c: F0 09 00 [12:01:15]MH_I2C_Read... [12:01:15]Read from MH i2c: F0 09 00 BD D5 00 15 F1 14 67 6B 98 1E 66 92 [12:01:15]GetLastDocTimeStamp 1729425663 [12:01:15]current date 1729425685 [12:01:15]FM_GetShiftState [12:01:15]SAM_PROTO_GetShiftState [12:01:15]wFMCommunicate request_size=4 [12:01:15]MH_SAM_APDU [12:01:15]CAPDU: 80 13 01 00 [12:01:15]Write to MH i2c: E2 08 00 BE D5 80 13 01 00 00 00 00 00 10 [12:01:15]Write i2c OK [12:01:15]MH_I2C_Read... [12:01:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:15]Read from MH i2c: E2 [12:01:15]MH_I2C_Read... [12:01:15]Read from MH i2c: E2 0E 00 [12:01:15]MH_I2C_Read... [12:01:15]Read from MH i2c: E2 0E 00 BE D5 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 16 [12:01:15]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:01:15]wFMCommunicate OK [12:01:15]SAM_PROTO_GetShiftState done [12:01:15]FM_GetShiftState done [12:01:15]opened in 1729383220 [12:01:15]opened+sec_in_day 1729469620 [12:01:15]quantity*price = 100011 [12:01:15]sum+1 = 100013 [12:01:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.12 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.12 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 167 20.10.2024 12:01 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69322 ФПД: 174607966562891 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120125&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69322&fm=174607966562891&tin=02508201610067®Number=0000000000156251&sum=100012 [12:01:16]StoreToDocumentArchive [12:01:16]shift 193 fd 69322 [12:01:16]save to /storage/0193/doc_00069322 [12:01:16]save last doc name /storage/0193/doc_00069322 to /storage/kkm_last_doc_name [12:01:16]save OK [12:01:16]Clear old archive folders... [12:01:16]ProcessDocumentItem done err = 0, tmpTLVsize=250 [12:01:16]tlvbuf is 004F95C0 [12:01:16]SAM_PROTO_ClearQueue [12:01:16]wFMCommunicate request_size=4 [12:01:16]MH_SAM_APDU [12:01:16]CAPDU: 80 09 00 00 [12:01:16]Write to MH i2c: E2 08 00 CB D5 80 09 00 00 00 00 00 00 12 [12:01:16]Write i2c OK [12:01:16]MH_I2C_Read... [12:01:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:01:16]Read from MH i2c: E2 [12:01:16]MH_I2C_Read... [12:01:16]Read from MH i2c: E2 03 00 [12:01:16]MH_I2C_Read... [12:01:16]Read from MH i2c: E2 03 00 CB D5 00 90 00 14 [12:01:16]RAPDU: 90 00 [12:01:16]wFMCommunicate OK [12:01:16]SAM_PROTO_ClearQueue done [12:01:16]KKMCreateOFDPacket [12:01:16]OFDProtocolAddRootSTLVToBuf [12:01:16]FM_MakeSignedData [12:01:16]FM_MakeSignedData [12:01:16]SAM_PROTO_SignData [12:01:16]wFMCommunicate request_size=4 [12:01:16]MH_SAM_APDU [12:01:16]CAPDU: 80 0D 01 02 [12:01:16]Write to MH i2c: E2 08 00 CC D5 80 0D 01 02 00 00 00 00 1A [12:01:16]Write i2c OK [12:01:16]MH_I2C_Read... [12:01:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:01:16]Read from MH i2c: E2 [12:01:16]MH_I2C_Read... [12:01:16]Read from MH i2c: E2 03 00 [12:01:16]MH_I2C_Read... [12:01:16]Read from MH i2c: E2 03 00 CC D5 00 90 00 15 [12:01:16]RAPDU: 90 00 [12:01:16]wFMCommunicate OK [12:01:16]wFMCommunicate request_size=255 [12:01:16]MH_SAM_APDU [12:01:16]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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 15 F1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CA 0E 01 00 35 04 06 00 9E CE [12:01:16]Write to MH i2c: E2 02 01 CD D5 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 15 F1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CA 0E 01 00 35 04 06 00 9E CE 00 00 C4 [12:01:16]Write i2c OK [12:01:16]MH_I2C_Read... [12:01:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:17]Read from MH i2c: E2 [12:01:17]MH_I2C_Read... [12:01:17]Read from MH i2c: E2 03 00 [12:01:17]MH_I2C_Read... [12:01:17]Read from MH i2c: E2 03 00 CD D5 00 90 00 16 [12:01:17]RAPDU: 90 00 [12:01:17]wFMCommunicate OK [12:01:17]wFMCommunicate request_size=9 [12:01:17]MH_SAM_APDU [12:01:17]CAPDU: 80 0D 02 02 04 15 D2 6A 4B [12:01:17]Write to MH i2c: E2 0C 00 CE D5 80 0D 02 02 04 00 15 D2 6A 4B 00 00 C1 [12:01:17]Write i2c OK [12:01:17]MH_I2C_Read... [12:01:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:17]Read from MH i2c: E2 [12:01:17]MH_I2C_Read... [12:01:17]Read from MH i2c: E2 03 00 [12:01:17]MH_I2C_Read... [12:01:17]Read from MH i2c: E2 03 00 CE D5 00 90 00 17 [12:01:17]RAPDU: 90 00 [12:01:17]wFMCommunicate OK [12:01:17]wFMCommunicate request_size=4 [12:01:17]MH_SAM_APDU [12:01:17]CAPDU: 80 0D 03 02 [12:01:17]Write to MH i2c: E2 08 00 CF D5 80 0D 03 02 00 00 00 00 1F [12:01:17]Write i2c OK [12:01:17]MH_I2C_Read... [12:01:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:01:17]Read from MH i2c: E2 [12:01:17]MH_I2C_Read... [12:01:17]Read from MH i2c: E2 0B 00 [12:01:17]MH_I2C_Read... [12:01:17]Read from MH i2c: E2 0B 00 CF D5 00 26 2F 18 63 FC 55 8C 9C 90 00 69 [12:01:17]RAPDU: 26 2F 18 63 FC 55 8C 9C 90 00 [12:01:17]wFMCommunicate OK [12:01:17]SAM_PROTO_SignData done [12:01:17]FM_MakeSignedData done [12:01:17]CreateOFDProtocolMessage [12:01:17]wFMCommunicate request_size=4 [12:01:17]MH_SAM_APDU [12:01:17]CAPDU: 80 11 00 00 [12:01:17]Write to MH i2c: E2 08 00 D0 D5 80 11 00 00 00 00 00 00 1F [12:01:17]Write i2c OK [12:01:17]MH_I2C_Read... [12:01:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:17]Read from MH i2c: E2 [12:01:17]MH_I2C_Read... [12:01:17]Read from MH i2c: E2 17 00 [12:01:17]MH_I2C_Read... [12:01:17]Read from MH i2c: E2 17 00 D0 D5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 71 [12:01:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:01:17]wFMCommunicate OK [12:01:17]CreateOFDProtocolMessage done [12:01:17]OFDSenderStorePacket 69322 [12:01:17]StoreOFDPacket docnum=69322 [12:01:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 B4 99 06 01 D8 9D 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 15 F1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CA 0E 01 00 35 04 06 00 9E CE 15 D2 6A 4B 26 2F 18 63 FC 55 8C 9C [12:01:17]CheckFolder [12:01:17]dirname=/storage/ofd_packets [12:01:17]CheckFolder done [12:01:17]ProducePacketName [12:01:17]name=ofd_packets/00069322 [12:01:17]NVStorageSaveData ofd_packets/00069322 [12:01:17]File name is /storage/ofd_packets/00069322 [12:01:17]Write 300 bytes [12:01:17]NVStorageSaveData done [12:01:17]OFDSenderStorePacket done [12:01:17]KKMCreateOFDPacket done [12:01:17]NVStorageSaveData kkm_last_timestamp [12:01:17]File name is /storage/kkm_last_timestamp [12:01:17]Write 4 bytes [12:01:17]NVStorageSaveData done [12:01:17]ExternCall_PrintAddStr [12:01:17]wPrintStart [12:01:17]Write to MH i2c: 01 00 00 D1 D5 A6 [12:01:17]Write i2c OK [12:01:17]MH_I2C_Read... [12:01:17]Read from MH i2c: 01 [12:01:17]MH_I2C_Read... [12:01:17]Read from MH i2c: 01 07 00 [12:01:17]MH_I2C_Read... [12:01:17]Read from MH i2c: 01 07 00 D1 D5 00 00 00 00 00 FF 0F BB [12:01:17]RasterBufferAndPrint [12:01:17]line Счет N : (1)2885038 [12:01:17]line ИНН: 02508201610067 [12:01:17]line Контрольно-Кассовый Чек [12:01:17]line ПРОДАЖА [12:01:17]line ТРК (МРК, ГНК) : 71 [12:01:17]line Товар: 2711129700 [12:01:17]line ГАЗ-К-3 [12:01:17]line 25.710 * 38.90 [12:01:17]line = 1000.12 [12:01:17]line НДС 12% НСП 1% [12:01:17]line > о реализуемом товаре [12:01:17]line ИТОГО: 1000.12 [12:01:17]line НСП 1% : 8.85 [12:01:17]line НДС 12% : 106.21 [12:01:17]line Наличными: 0.00 [12:01:17]line Безнал.: 1000.12 [12:01:17]line Место: АЗС № 85 "Партнер Нефть" [12:01:17]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:01:17]line СНО: Общий режим [12:01:17]line Чек 167 20.10.2024 12:01 [12:01:17]line Смена: 193 ФФД: 1.0 [12:01:17]line ЗНМ: 0300000167 [12:01:17]line РНМ: 0000000000156251 [12:01:17]line Версия ККМ: v1.0 [12:01:17]line Платежная система: Mbank [12:01:17]line ФМ: 0000000000963346 [12:01:17]line ФД: 69322 [12:01:17]line ФПД: 174607966562891 [12:01:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120125&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69322&fm=174607966562891&tin=02508201610067®Number=0000000000156251&sum=100012 [12:01:17]OFD Sender: Processing packet 69322 [packets to send 18, broken 17] [12:01:17]ProducePacketName [12:01:17]name=ofd_packets/00069322 [12:01:17]OFD Sender: To server: pG, [12:01:17]CommunicateWithHost lk.salyk.kg:30040 [12:01:17]ConnectInit lk.salyk.kg [12:01:17]written 0, free lines is 4095 [12:01:17]Connected sock=10 [12:01:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 B4 99 06 01 D8 9D 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 15 F1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CA 0E 01 00 35 04 06 00 9E CE 15 D2 6A 4B 26 2F 18 63 FC 55 8C 9C [12:01:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 AA 64 47 00 AE BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CA 0E 01 00 F4 03 04 00 BC 9A 14 67 B6 04 01 00 00 35 FD 95 96 A7 C5 CC 47 [12:01:17]CommunicateWithHost err = 0 [12:01:17]CheckOFDResponse [12:01:17]1017 (14) - 77093643461234 [12:01:17]1041 (16) - 0000000000963346 [12:01:17]1040 (4) - 69322 [12:01:17]1012 (4) - 20.10.2024 05:53 [12:01:17]1206 (1) - 0 [12:01:17]OFD Sender: Remove packet 69322 [12:01:17]ProducePacketName [12:01:17]name=ofd_packets/00069322 [12:01:17]NVStorageDeleteData [12:01:17]Write to MH i2c: 01 00 00 FA D5 CF [12:01:17]Write i2c OK [12:01:17]MH_I2C_Read... [12:01:17]Read from MH i2c: 01 [12:01:17]MH_I2C_Read... [12:01:17]Read from MH i2c: 01 07 00 [12:01:17]MH_I2C_Read... [12:01:17]Read from MH i2c: 01 07 00 FA D5 00 00 00 00 00 29 0D 0C [12:01:17]RasterBufferAndPrint [12:01:17]line [12:01:17]line [12:01:17]line [12:01:17]line [12:01:17]line [12:01:17]written 0, free lines is 3382 [12:01:17]MH_Cut [12:01:17]Write to MH i2c: D1 01 00 01 D6 01 A9 [12:01:17]Write i2c OK [12:01:17]MH_I2C_Read... [12:01:17]Read from MH i2c: D1 [12:01:17]MH_I2C_Read... [12:01:17]Read from MH i2c: D1 01 00 [12:01:17]MH_I2C_Read... [12:01:17]Read from MH i2c: D1 01 00 01 D6 00 A8 [12:01:17]Write to MH i2c: 01 00 00 02 D6 D8 [12:01:17]Write i2c OK [12:01:17]MH_I2C_Read... [12:01:18]OFD Sender: No OFD packet to send [12:01:18]*** Cut start [12:01:18]*** Partial cut [12:01:18]*** CUTSNS_PIN = 1 [12:01:18]*** CUTSNS_PIN = 0 [12:01:18]*** Brake cut motor [12:01:18]Read from MH i2c: 01 [12:01:18]MH_I2C_Read... [12:01:18]*** Stop cut motor [12:01:18]*** Cut end [12:01:18]Read from MH i2c: 01 07 00 [12:01:18]MH_I2C_Read... [12:01:18]Read from MH i2c: 01 07 00 02 D6 00 00 00 00 00 FF 0F ED [12:01:18]process_action close_receipt done [12:01:18]requested_data is exist [12:01:18]produce_requested_data [12:01:18]requested_item fm.sn is exist - process it [12:01:18]wFMCommunicate request_size=4 [12:01:18]MH_SAM_APDU [12:01:18]CAPDU: 80 11 00 00 [12:01:18]Write to MH i2c: E2 08 00 03 D6 80 11 00 00 00 00 00 00 53 [12:01:18]Write i2c OK [12:01:18]MH_I2C_Read... [12:01:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:19]Read from MH i2c: E2 [12:01:19]MH_I2C_Read... [12:01:19]Read from MH i2c: E2 17 00 [12:01:19]MH_I2C_Read... [12:01:19]Read from MH i2c: E2 17 00 03 D6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A5 [12:01:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:01:19]wFMCommunicate OK [12:01:19]requested_item fd.num is exist - process it [12:01:19]SAM_PROTO_GetFieldsCounters [12:01:19]wFMCommunicate request_size=4 [12:01:19]MH_SAM_APDU [12:01:19]CAPDU: 80 13 00 00 [12:01:19]Write to MH i2c: E2 08 00 04 D6 80 13 00 00 00 00 00 00 56 [12:01:19]Write i2c OK [12:01:19]MH_I2C_Read... [12:01:19]Read from MH i2c: E2 [12:01:19]MH_I2C_Read... [12:01:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:19]Read from MH i2c: E2 62 00 [12:01:19]MH_I2C_Read... [12:01:19]Read from MH i2c: E2 62 00 04 D6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CA 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [12:01:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CA 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:01:19]wFMCommunicate OK [12:01:19]SAM_PROTO_GetFieldsCounters done [12:01:19]requested_item shift.num is exist - process it [12:01:19]requested_item shift.opened is exist - process it [12:01:19]req_shift_opened [12:01:19]FM_GetShiftState [12:01:19]SAM_PROTO_GetShiftState [12:01:19]wFMCommunicate request_size=4 [12:01:19]MH_SAM_APDU [12:01:19]CAPDU: 80 13 01 00 [12:01:19]Write to MH i2c: E2 08 00 05 D6 80 13 01 00 00 00 00 00 58 [12:01:19]Write i2c OK [12:01:19]MH_I2C_Read... [12:01:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:19]Read from MH i2c: E2 [12:01:19]MH_I2C_Read... [12:01:19]Read from MH i2c: E2 0E 00 [12:01:19]MH_I2C_Read... [12:01:19]Read from MH i2c: E2 0E 00 05 D6 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 5E [12:01:19]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:01:19]wFMCommunicate OK [12:01:19]SAM_PROTO_GetShiftState done [12:01:19]FM_GetShiftState done [12:01:19]req_shift_opened done [12:01:19]requested_item shift.open_date is exist - process it [12:01:19]req_shift_open_date [12:01:19]req_shift_open_date done [12:01:19]produce_requested_data done [12:01:19]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69322,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [12:01:19]process_action_free close_receipt [12:01:19]json_value_free [12:01:19]json_value_free done [12:01:19]process_json_proto returns [12:01:19]Send response to host [12:01:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69322,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [12:01:19]free response buf [12:01:19]execute_script done [12:01:19]execute_script returns [12:01:19]free content buf [12:01:19]Sock 9.Close socket [12:01:19]Sock 9.Thread stoped [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:44]accept exits with 8 [12:02:44]New connection [12:02:44]New thread 3067260260 created [12:02:44]Thread 3067116900 joined [12:02:44]Waiting for new connection... [12:02:44] Sock 8.Parse request [12:02:44]Sock 8.Check first char [12:02:44]Sock 8.First char is OK [12:02:44]request: POST /json_proto HTTP/1.0 [12:02:44]Method: POST [12:02:44]URL: /json_proto [12:02:44]Method is POST - this is cgi request [12:02:44]url: /json_proto [12:02:44]query_string will be loaded in cgi processing [12:02:44]execute_cgi json_proto POST (null) [12:02:44]execute_cgi path=json_proto method=POST [12:02:44]POST find Content-Length [12:02:44]Host: 172.17.50.3:8080 [12:02:44]Content-Length: 678 [12:02:44]Content-Type: application/json [12:02:44] [12:02:44]POST finish read [12:02:44]Found Content-Length = 678 [12:02:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:44]execute_script... [12:02:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:44]POST & json_proto [12:02:44]process_json_proto [12:02:44]json parsed OK: [12:02:44]protocol is kg_v1.0 [12:02:44]action value=close_receipt [12:02:44]process_action close_receipt [12:02:44]cmd_close_receipt [12:02:44]MH_GetDate [12:02:44]Write to MH i2c: F0 00 00 06 D6 CB [12:02:44]Write i2c OK [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: F0 [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: F0 09 00 [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: F0 09 00 06 D6 00 6F F1 14 67 6B 98 1E 66 36 [12:02:44]GetLastDocTimeStamp 1729425685 [12:02:44]current date 1729425775 [12:02:44]FM_GetShiftState [12:02:44]SAM_PROTO_GetShiftState [12:02:44]wFMCommunicate request_size=4 [12:02:44]MH_SAM_APDU [12:02:44]CAPDU: 80 13 01 00 [12:02:44]Write to MH i2c: E2 08 00 07 D6 80 13 01 00 00 00 00 00 5A [12:02:44]Write i2c OK [12:02:44]MH_I2C_Read... [12:02:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:44]Read from MH i2c: E2 [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: E2 0E 00 [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: E2 0E 00 07 D6 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 60 [12:02:44]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:02:44]wFMCommunicate OK [12:02:44]SAM_PROTO_GetShiftState done [12:02:44]FM_GetShiftState done [12:02:44]opened in 1729383220 [12:02:44]opened+sec_in_day 1729469620 [12:02:44]quantity*price = 60009 [12:02:44]sum+1 = 60010 [12:02:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 168 20.10.2024 12:02 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69323 ФПД: 61631399319396 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120255&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69323&fm=61631399319396&tin=02508201610067®Number=0000000000156251&sum=60000 [12:02:46]StoreToDocumentArchive [12:02:46]shift 193 fd 69323 [12:02:46]save to /storage/0193/doc_00069323 [12:02:46]save last doc name /storage/0193/doc_00069323 to /storage/kkm_last_doc_name [12:02:46]save OK [12:02:46]Clear old archive folders... [12:02:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:02:46]tlvbuf is 007F1CA0 [12:02:46]SAM_PROTO_ClearQueue [12:02:46]wFMCommunicate request_size=4 [12:02:46]MH_SAM_APDU [12:02:46]CAPDU: 80 09 00 00 [12:02:46]Write to MH i2c: E2 08 00 14 D6 80 09 00 00 00 00 00 00 5C [12:02:46]Write i2c OK [12:02:46]MH_I2C_Read... [12:02:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:46]Read from MH i2c: E2 [12:02:46]MH_I2C_Read... [12:02:46]Read from MH i2c: E2 03 00 [12:02:46]MH_I2C_Read... [12:02:46]Read from MH i2c: E2 03 00 14 D6 00 90 00 5E [12:02:46]RAPDU: 90 00 [12:02:46]wFMCommunicate OK [12:02:46]SAM_PROTO_ClearQueue done [12:02:46]KKMCreateOFDPacket [12:02:46]OFDProtocolAddRootSTLVToBuf [12:02:46]FM_MakeSignedData [12:02:46]FM_MakeSignedData [12:02:46]SAM_PROTO_SignData [12:02:46]wFMCommunicate request_size=4 [12:02:46]MH_SAM_APDU [12:02:46]CAPDU: 80 0D 01 02 [12:02:46]Write to MH i2c: E2 08 00 15 D6 80 0D 01 02 00 00 00 00 64 [12:02:46]Write i2c OK [12:02:46]MH_I2C_Read... [12:02:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:46]Read from MH i2c: E2 [12:02:46]MH_I2C_Read... [12:02:46]Read from MH i2c: E2 03 00 [12:02:46]MH_I2C_Read... [12:02:46]Read from MH i2c: E2 03 00 15 D6 00 90 00 5F [12:02:46]RAPDU: 90 00 [12:02:46]wFMCommunicate OK [12:02:46]wFMCommunicate request_size=255 [12:02:46]MH_SAM_APDU [12:02:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 6F F1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CB 0E 01 00 35 04 06 00 38 [12:02:46]Write to MH i2c: E2 02 01 16 D6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 6F F1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CB 0E 01 00 35 04 06 00 38 00 00 20 [12:02:46]Write i2c OK [12:02:46]MH_I2C_Read... [12:02:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:46]Read from MH i2c: E2 [12:02:46]MH_I2C_Read... [12:02:46]Read from MH i2c: E2 03 00 [12:02:46]MH_I2C_Read... [12:02:46]Read from MH i2c: E2 03 00 16 D6 00 90 00 60 [12:02:46]RAPDU: 90 00 [12:02:46]wFMCommunicate OK [12:02:46]wFMCommunicate request_size=10 [12:02:46]MH_SAM_APDU [12:02:46]CAPDU: 80 0D 02 02 05 0D AD A9 D7 64 [12:02:46]Write to MH i2c: E2 0D 00 17 D6 80 0D 02 02 05 00 0D AD A9 D7 64 00 00 0F [12:02:46]Write i2c OK [12:02:46]MH_I2C_Read... [12:02:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:46]Read from MH i2c: E2 [12:02:46]MH_I2C_Read... [12:02:46]Read from MH i2c: E2 03 00 [12:02:46]MH_I2C_Read... [12:02:46]Read from MH i2c: E2 03 00 17 D6 00 90 00 61 [12:02:46]RAPDU: 90 00 [12:02:46]wFMCommunicate OK [12:02:46]wFMCommunicate request_size=4 [12:02:46]MH_SAM_APDU [12:02:46]CAPDU: 80 0D 03 02 [12:02:46]Write to MH i2c: E2 08 00 18 D6 80 0D 03 02 00 00 00 00 69 [12:02:46]Write i2c OK [12:02:46]MH_I2C_Read... [12:02:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:46]Read from MH i2c: E2 [12:02:46]MH_I2C_Read... [12:02:46]Read from MH i2c: E2 0B 00 [12:02:46]MH_I2C_Read... [12:02:46]Read from MH i2c: E2 0B 00 18 D6 00 8D 7E E8 B8 4A 63 1C B6 90 00 94 [12:02:46]RAPDU: 8D 7E E8 B8 4A 63 1C B6 90 00 [12:02:46]wFMCommunicate OK [12:02:46]SAM_PROTO_SignData done [12:02:46]FM_MakeSignedData done [12:02:46]CreateOFDProtocolMessage [12:02:46]wFMCommunicate request_size=4 [12:02:46]MH_SAM_APDU [12:02:46]CAPDU: 80 11 00 00 [12:02:46]Write to MH i2c: E2 08 00 19 D6 80 11 00 00 00 00 00 00 69 [12:02:46]Write i2c OK [12:02:46]MH_I2C_Read... [12:02:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:46]Read from MH i2c: E2 [12:02:46]MH_I2C_Read... [12:02:46]Read from MH i2c: E2 17 00 [12:02:46]MH_I2C_Read... [12:02:46]Read from MH i2c: E2 17 00 19 D6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BB [12:02:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:02:46]wFMCommunicate OK [12:02:46]CreateOFDProtocolMessage done [12:02:46]OFDSenderStorePacket 69323 [12:02:46]StoreOFDPacket docnum=69323 [12:02:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F0 7A 07 01 A1 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 6F F1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CB 0E 01 00 35 04 06 00 38 0D AD A9 D7 64 8D 7E E8 B8 4A 63 1C B6 [12:02:46]CheckFolder [12:02:46]dirname=/storage/ofd_packets [12:02:46]CheckFolder done [12:02:46]ProducePacketName [12:02:46]name=ofd_packets/00069323 [12:02:46]NVStorageSaveData ofd_packets/00069323 [12:02:46]File name is /storage/ofd_packets/00069323 [12:02:46]Write 301 bytes [12:02:46]NVStorageSaveData done [12:02:46]OFDSenderStorePacket done [12:02:46]KKMCreateOFDPacket done [12:02:46]NVStorageSaveData kkm_last_timestamp [12:02:46]File name is /storage/kkm_last_timestamp [12:02:46]Write 4 bytes [12:02:46]NVStorageSaveData done [12:02:46]ExternCall_PrintAddStr [12:02:46]wPrintStart [12:02:46]Write to MH i2c: 01 00 00 1A D6 F0 [12:02:46]Write i2c OK [12:02:46]MH_I2C_Read... [12:02:46]Read from MH i2c: 01 [12:02:46]MH_I2C_Read... [12:02:46]Read from MH i2c: 01 07 00 [12:02:46]MH_I2C_Read... [12:02:46]Read from MH i2c: 01 07 00 1A D6 00 00 00 00 00 FF 0F 05 [12:02:46]RasterBufferAndPrint [12:02:46]line Счет N : (1)2885043 [12:02:46]line ИНН: 02508201610067 [12:02:46]line Контрольно-Кассовый Чек [12:02:46]line ПРОДАЖА [12:02:46]line ТРК (МРК, ГНК) : 12 [12:02:46]line Товар: 2710124130 [12:02:46]line Аи-92-К-5 [12:02:46]line 8.970 * 66.90 [12:02:46]line = 600.09 [12:02:46]line НДС 12% НСП 1% [12:02:46]line > о реализуемом товаре [12:02:46]line ОКРУГЛЕНИЕ: -0.09 [12:02:46]line ИТОГО: 600.00 [12:02:46]line Внесено: 600.00 [12:02:46]line СДАЧА: 0.00 [12:02:46]line НСП 1% : 5.31 [12:02:46]line НДС 12% : 63.73 [12:02:46]line Наличными: 600.00 [12:02:46]line Безнал.: 0.00 [12:02:46]line Место: АЗС № 85 "Партнер Нефть" [12:02:46]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:02:46]line СНО: Общий режим [12:02:46]line Чек 168 20.10.2024 12:02 [12:02:46]line Смена: 193 ФФД: 1.0 [12:02:46]line ЗНМ: 0300000167 [12:02:46]line РНМ: 0000000000156251 [12:02:46]line Версия ККМ: v1.0 [12:02:46]line ФМ: 0000000000963346 [12:02:46]line ФД: 69323 [12:02:46]line ФПД: 61631399319396 [12:02:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120255&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69323&fm=61631399319396&tin=02508201610067®Number=0000000000156251&sum=60000 [12:02:46]written 0, free lines is 4095 [12:02:46]OFD Sender: Processing packet 69323 [packets to send 18, broken 17] [12:02:46]ProducePacketName [12:02:46]name=ofd_packets/00069323 [12:02:46]OFD Sender: To server: pG, [12:02:46]CommunicateWithHost lk.salyk.kg:30040 [12:02:46]ConnectInit lk.salyk.kg [12:02:47]Connected sock=10 [12:02:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F0 7A 07 01 A1 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 6F F1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CB 0E 01 00 35 04 06 00 38 0D AD A9 D7 64 8D 7E E8 B8 4A 63 1C B6 [12:02:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 9E FF 47 00 DB F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CB 0E 01 00 F4 03 04 00 16 9B 14 67 B6 04 01 00 00 0A 28 26 09 C0 E6 71 C4 [12:02:47]CommunicateWithHost err = 0 [12:02:47]CheckOFDResponse [12:02:47]1017 (14) - 77093643461234 [12:02:47]1041 (16) - 0000000000963346 [12:02:47]1040 (4) - 69323 [12:02:47]1012 (4) - 20.10.2024 05:54 [12:02:47]1206 (1) - 0 [12:02:47]OFD Sender: Remove packet 69323 [12:02:47]ProducePacketName [12:02:47]name=ofd_packets/00069323 [12:02:47]NVStorageDeleteData [12:02:47]Write to MH i2c: 01 00 00 45 D6 1B [12:02:47]Write i2c OK [12:02:47]MH_I2C_Read... [12:02:47]Read from MH i2c: 01 [12:02:47]MH_I2C_Read... [12:02:47]Read from MH i2c: 01 07 00 [12:02:47]MH_I2C_Read... [12:02:47]Read from MH i2c: 01 07 00 45 D6 00 00 00 00 00 03 0D 32 [12:02:47]RasterBufferAndPrint [12:02:47]line [12:02:47]line [12:02:47]line [12:02:47]line [12:02:47]line [12:02:47]written 0, free lines is 3340 [12:02:47]MH_Cut [12:02:47]Write to MH i2c: D1 01 00 4C D6 01 F4 [12:02:47]Write i2c OK [12:02:47]MH_I2C_Read... [12:02:47]Read from MH i2c: D1 [12:02:47]MH_I2C_Read... [12:02:47]Read from MH i2c: D1 01 00 [12:02:47]MH_I2C_Read... [12:02:47]Read from MH i2c: D1 01 00 4C D6 00 F3 [12:02:47]Write to MH i2c: 01 00 00 4D D6 23 [12:02:47]Write i2c OK [12:02:47]MH_I2C_Read... [12:02:47]OFD Sender: No OFD packet to send [12:02:48]*** Cut start [12:02:48]*** Partial cut [12:02:48]*** CUTSNS_PIN = 1 [12:02:48]*** CUTSNS_PIN = 0 [12:02:48]*** Brake cut motor [12:02:48]*** Stop cut motor [12:02:48]*** Cut end [12:02:48]Read from MH i2c: 01 [12:02:48]MH_I2C_Read... [12:02:48]Read from MH i2c: 01 07 00 [12:02:48]MH_I2C_Read... [12:02:48]Read from MH i2c: 01 07 00 4D D6 00 00 00 00 00 FF 0F 38 [12:02:48]process_action close_receipt done [12:02:48]requested_data is exist [12:02:48]produce_requested_data [12:02:48]requested_item fm.sn is exist - process it [12:02:48]wFMCommunicate request_size=4 [12:02:48]MH_SAM_APDU [12:02:48]CAPDU: 80 11 00 00 [12:02:48]Write to MH i2c: E2 08 00 4E D6 80 11 00 00 00 00 00 00 9E [12:02:48]Write i2c OK [12:02:48]MH_I2C_Read... [12:02:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:48]Read from MH i2c: E2 [12:02:48]MH_I2C_Read... [12:02:48]Read from MH i2c: E2 17 00 [12:02:48]MH_I2C_Read... [12:02:48]Read from MH i2c: E2 17 00 4E D6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F0 [12:02:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:02:48]wFMCommunicate OK [12:02:48]requested_item fd.num is exist - process it [12:02:48]SAM_PROTO_GetFieldsCounters [12:02:48]wFMCommunicate request_size=4 [12:02:48]MH_SAM_APDU [12:02:48]CAPDU: 80 13 00 00 [12:02:48]Write to MH i2c: E2 08 00 4F D6 80 13 00 00 00 00 00 00 A1 [12:02:48]Write i2c OK [12:02:48]MH_I2C_Read... [12:02:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:48]Read from MH i2c: E2 [12:02:48]MH_I2C_Read... [12:02:48]Read from MH i2c: E2 62 00 [12:02:48]MH_I2C_Read... [12:02:48]Read from MH i2c: E2 62 00 4F D6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CB 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [12:02:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CB 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:02:48]wFMCommunicate OK [12:02:48]SAM_PROTO_GetFieldsCounters done [12:02:48]requested_item shift.num is exist - process it [12:02:48]requested_item shift.opened is exist - process it [12:02:48]req_shift_opened [12:02:48]FM_GetShiftState [12:02:48]SAM_PROTO_GetShiftState [12:02:48]wFMCommunicate request_size=4 [12:02:48]MH_SAM_APDU [12:02:48]CAPDU: 80 13 01 00 [12:02:48]Write to MH i2c: E2 08 00 50 D6 80 13 01 00 00 00 00 00 A3 [12:02:48]Write i2c OK [12:02:48]MH_I2C_Read... [12:02:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:48]Read from MH i2c: E2 [12:02:48]MH_I2C_Read... [12:02:48]Read from MH i2c: E2 0E 00 [12:02:48]MH_I2C_Read... [12:02:48]Read from MH i2c: E2 0E 00 50 D6 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 A9 [12:02:48]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:02:48]wFMCommunicate OK [12:02:48]SAM_PROTO_GetShiftState done [12:02:48]FM_GetShiftState done [12:02:48]req_shift_opened done [12:02:48]requested_item shift.open_date is exist - process it [12:02:48]req_shift_open_date [12:02:48]req_shift_open_date done [12:02:48]produce_requested_data done [12:02:48]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69323,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [12:02:48]process_action_free close_receipt [12:02:48]json_value_free [12:02:48]json_value_free done [12:02:48]process_json_proto returns [12:02:48]Send response to host [12:02:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69323,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [12:02:48]free response buf [12:02:48]execute_script done [12:02:48]execute_script returns [12:02:48]free content buf [12:02:48]Sock 8.Close socket [12:02:48]Sock 8.Thread stoped [12:02:49]accept exits with 9 [12:02:49]New connection [12:02:49]New thread 3067116900 created [12:02:49]Thread 3067260260 joined [12:02:49]Waiting for new connection... [12:02:49] Sock 9.Parse request [12:02:49]Sock 9.Check first char [12:02:49]Sock 9.First char is OK [12:02:49]request: POST /json_proto HTTP/1.0 [12:02:49]Method: POST [12:02:49]URL: /json_proto [12:02:49]Method is POST - this is cgi request [12:02:49]url: /json_proto [12:02:49]query_string will be loaded in cgi processing [12:02:49]execute_cgi json_proto POST (null) [12:02:49]execute_cgi path=json_proto method=POST [12:02:49]POST find Content-Length [12:02:49]Host: 172.17.50.3:8080 [12:02:49]Content-Length: 678 [12:02:49]Content-Type: application/json [12:02:49] [12:02:49]POST finish read [12:02:49]Found Content-Length = 678 [12:02:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:49]execute_script... [12:02:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:49]POST & json_proto [12:02:49]process_json_proto [12:02:49]json parsed OK: [12:02:49]protocol is kg_v1.0 [12:02:49]action value=close_receipt [12:02:49]process_action close_receipt [12:02:49]cmd_close_receipt [12:02:49]MH_GetDate [12:02:49]Write to MH i2c: F0 00 00 51 D6 16 [12:02:49]Write i2c OK [12:02:49]MH_I2C_Read... [12:02:49]Read from MH i2c: F0 [12:02:49]MH_I2C_Read... [12:02:49]Read from MH i2c: F0 09 00 [12:02:49]MH_I2C_Read... [12:02:49]Read from MH i2c: F0 09 00 51 D6 00 73 F1 14 67 6B 98 1E 66 85 [12:02:49]GetLastDocTimeStamp 1729425775 [12:02:49]current date 1729425779 [12:02:49]FM_GetShiftState [12:02:49]SAM_PROTO_GetShiftState [12:02:49]wFMCommunicate request_size=4 [12:02:49]MH_SAM_APDU [12:02:49]CAPDU: 80 13 01 00 [12:02:49]Write to MH i2c: E2 08 00 52 D6 80 13 01 00 00 00 00 00 A5 [12:02:49]Write i2c OK [12:02:49]MH_I2C_Read... [12:02:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:49]Read from MH i2c: E2 [12:02:49]MH_I2C_Read... [12:02:49]Read from MH i2c: E2 0E 00 [12:02:49]MH_I2C_Read... [12:02:49]Read from MH i2c: E2 0E 00 52 D6 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 AB [12:02:49]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:02:49]wFMCommunicate OK [12:02:49]SAM_PROTO_GetShiftState done [12:02:49]FM_GetShiftState done [12:02:49]opened in 1729383220 [12:02:49]opened+sec_in_day 1729469620 [12:02:49]quantity*price = 50041 [12:02:49]sum+1 = 50042 [12:02:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 169 20.10.2024 12:02 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69324 ФПД: 109908112806406 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120259&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69324&fm=109908112806406&tin=02508201610067®Number=0000000000156251&sum=50000 [12:02:51]StoreToDocumentArchive [12:02:51]shift 193 fd 69324 [12:02:51]save to /storage/0193/doc_00069324 [12:02:51]save last doc name /storage/0193/doc_00069324 to /storage/kkm_last_doc_name [12:02:51]save OK [12:02:51]Clear old archive folders... [12:02:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:02:51]tlvbuf is 005282A0 [12:02:51]SAM_PROTO_ClearQueue [12:02:51]wFMCommunicate request_size=4 [12:02:51]MH_SAM_APDU [12:02:51]CAPDU: 80 09 00 00 [12:02:51]Write to MH i2c: E2 08 00 5F D6 80 09 00 00 00 00 00 00 A7 [12:02:51]Write i2c OK [12:02:51]MH_I2C_Read... [12:02:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:51]Read from MH i2c: E2 [12:02:51]MH_I2C_Read... [12:02:51]Read from MH i2c: E2 03 00 [12:02:51]MH_I2C_Read... [12:02:51]Read from MH i2c: E2 03 00 5F D6 00 90 00 A9 [12:02:51]RAPDU: 90 00 [12:02:51]wFMCommunicate OK [12:02:51]SAM_PROTO_ClearQueue done [12:02:51]KKMCreateOFDPacket [12:02:51]OFDProtocolAddRootSTLVToBuf [12:02:51]FM_MakeSignedData [12:02:51]FM_MakeSignedData [12:02:51]SAM_PROTO_SignData [12:02:51]wFMCommunicate request_size=4 [12:02:51]MH_SAM_APDU [12:02:51]CAPDU: 80 0D 01 02 [12:02:51]Write to MH i2c: E2 08 00 60 D6 80 0D 01 02 00 00 00 00 AF [12:02:51]Write i2c OK [12:02:51]MH_I2C_Read... [12:02:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:51]Read from MH i2c: E2 [12:02:51]MH_I2C_Read... [12:02:51]Read from MH i2c: E2 03 00 [12:02:51]MH_I2C_Read... [12:02:51]Read from MH i2c: E2 03 00 60 D6 00 90 00 AA [12:02:51]RAPDU: 90 00 [12:02:51]wFMCommunicate OK [12:02:51]wFMCommunicate request_size=255 [12:02:51]MH_SAM_APDU [12:02:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 73 F1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CC 0E 01 00 35 04 06 00 63 [12:02:51]Write to MH i2c: E2 02 01 61 D6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 73 F1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CC 0E 01 00 35 04 06 00 63 00 00 BF [12:02:51]Write i2c OK [12:02:51]MH_I2C_Read... [12:02:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:51]Read from MH i2c: E2 [12:02:51]MH_I2C_Read... [12:02:51]Read from MH i2c: E2 03 00 [12:02:51]MH_I2C_Read... [12:02:51]Read from MH i2c: E2 03 00 61 D6 00 90 00 AB [12:02:51]RAPDU: 90 00 [12:02:51]wFMCommunicate OK [12:02:51]wFMCommunicate request_size=10 [12:02:51]MH_SAM_APDU [12:02:51]CAPDU: 80 0D 02 02 05 F5 FA 05 92 06 [12:02:51]Write to MH i2c: E2 0D 00 62 D6 80 0D 02 02 05 00 F5 FA 05 92 06 00 00 48 [12:02:51]Write i2c OK [12:02:51]MH_I2C_Read... [12:02:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:51]Read from MH i2c: E2 [12:02:51]MH_I2C_Read... [12:02:51]Read from MH i2c: E2 03 00 [12:02:51]MH_I2C_Read... [12:02:51]Read from MH i2c: E2 03 00 62 D6 00 90 00 AC [12:02:51]RAPDU: 90 00 [12:02:51]wFMCommunicate OK [12:02:51]wFMCommunicate request_size=4 [12:02:51]MH_SAM_APDU [12:02:51]CAPDU: 80 0D 03 02 [12:02:51]Write to MH i2c: E2 08 00 63 D6 80 0D 03 02 00 00 00 00 B4 [12:02:51]Write i2c OK [12:02:51]MH_I2C_Read... [12:02:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:51]Read from MH i2c: E2 [12:02:51]MH_I2C_Read... [12:02:51]Read from MH i2c: E2 0B 00 [12:02:51]MH_I2C_Read... [12:02:51]Read from MH i2c: E2 0B 00 63 D6 00 72 A4 8F C8 A7 87 8B 9A 90 00 75 [12:02:51]RAPDU: 72 A4 8F C8 A7 87 8B 9A 90 00 [12:02:51]wFMCommunicate OK [12:02:51]SAM_PROTO_SignData done [12:02:51]FM_MakeSignedData done [12:02:51]CreateOFDProtocolMessage [12:02:51]wFMCommunicate request_size=4 [12:02:51]MH_SAM_APDU [12:02:51]CAPDU: 80 11 00 00 [12:02:51]Write to MH i2c: E2 08 00 64 D6 80 11 00 00 00 00 00 00 B4 [12:02:51]Write i2c OK [12:02:51]MH_I2C_Read... [12:02:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:51]Read from MH i2c: E2 [12:02:51]MH_I2C_Read... [12:02:51]Read from MH i2c: E2 17 00 [12:02:51]MH_I2C_Read... [12:02:51]Read from MH i2c: E2 17 00 64 D6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 06 [12:02:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:02:51]wFMCommunicate OK [12:02:51]CreateOFDProtocolMessage done [12:02:51]OFDSenderStorePacket 69324 [12:02:51]StoreOFDPacket docnum=69324 [12:02:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 44 AE 07 01 98 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 73 F1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CC 0E 01 00 35 04 06 00 63 F5 FA 05 92 06 72 A4 8F C8 A7 87 8B 9A [12:02:51]CheckFolder [12:02:51]dirname=/storage/ofd_packets [12:02:51]CheckFolder done [12:02:51]ProducePacketName [12:02:51]name=ofd_packets/00069324 [12:02:51]NVStorageSaveData ofd_packets/00069324 [12:02:51]File name is /storage/ofd_packets/00069324 [12:02:51]Write 301 bytes [12:02:51]NVStorageSaveData done [12:02:51]OFDSenderStorePacket done [12:02:51]KKMCreateOFDPacket done [12:02:51]NVStorageSaveData kkm_last_timestamp [12:02:51]File name is /storage/kkm_last_timestamp [12:02:51]Write 4 bytes [12:02:51]NVStorageSaveData done [12:02:51]ExternCall_PrintAddStr [12:02:51]wPrintStart [12:02:51]Write to MH i2c: 01 00 00 65 D6 3B [12:02:51]Write i2c OK [12:02:51]MH_I2C_Read... [12:02:51]Read from MH i2c: 01 [12:02:51]MH_I2C_Read... [12:02:51]Read from MH i2c: 01 07 00 [12:02:51]MH_I2C_Read... [12:02:51]Read from MH i2c: 01 07 00 65 D6 00 00 00 00 00 FF 0F 50 [12:02:51]RasterBufferAndPrint [12:02:51]line Счет N : (1)2885042 [12:02:51]line ИНН: 02508201610067 [12:02:51]line Контрольно-Кассовый Чек [12:02:51]line ПРОДАЖА [12:02:51]line ТРК (МРК, ГНК) : 42 [12:02:51]line Товар: 2710124130 [12:02:51]line Аи-92-К-5 [12:02:51]line 7.480 * 66.90 [12:02:51]line = 500.41 [12:02:51]line НДС 12% НСП 1% [12:02:51]line > о реализуемом товаре [12:02:51]line ОКРУГЛЕНИЕ: -0.41 [12:02:51]line ИТОГО: 500.00 [12:02:51]line Внесено: 500.00 [12:02:51]line СДАЧА: 0.00 [12:02:51]line НСП 1% : 4.43 [12:02:51]line НДС 12% : 53.14 [12:02:51]line Наличными: 500.00 [12:02:51]line Безнал.: 0.00 [12:02:51]line Место: АЗС № 85 "Партнер Нефть" [12:02:51]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:02:51]line СНО: Общий режим [12:02:51]line Чек 169 20.10.2024 12:02 [12:02:51]line Смена: 193 ФФД: 1.0 [12:02:51]line ЗНМ: 0300000167 [12:02:51]line РНМ: 0000000000156251 [12:02:51]line Версия ККМ: v1.0 [12:02:51]line ФМ: 0000000000963346 [12:02:51]line ФД: 69324 [12:02:51]line ФПД: 109908112806406 [12:02:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120259&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69324&fm=109908112806406&tin=02508201610067®Number=0000000000156251&sum=50000 [12:02:51]written 0, free lines is 4095 [12:02:51]OFD Sender: Processing packet 69324 [packets to send 18, broken 17] [12:02:51]ProducePacketName [12:02:51]name=ofd_packets/00069324 [12:02:51]OFD Sender: To server: pG, [12:02:51]CommunicateWithHost lk.salyk.kg:30040 [12:02:51]ConnectInit lk.salyk.kg [12:02:51]Connected sock=10 [12:02:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 44 AE 07 01 98 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 73 F1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CC 0E 01 00 35 04 06 00 63 F5 FA 05 92 06 72 A4 8F C8 A7 87 8B 9A [12:02:52]Write to MH i2c: 01 00 00 90 D6 66 [12:02:52]Write i2c OK [12:02:52]MH_I2C_Read... [12:02:52]Read from MH i2c: 01 [12:02:52]MH_I2C_Read... [12:02:52]Read from MH i2c: 01 07 00 [12:02:52]MH_I2C_Read... [12:02:52]Read from MH i2c: 01 07 00 90 D6 00 00 00 00 00 F5 0C 6E [12:02:52]RasterBufferAndPrint [12:02:52]line [12:02:52]line [12:02:52]line [12:02:52]line [12:02:52]line [12:02:52]written 0, free lines is 3332 [12:02:52]MH_Cut [12:02:52]Write to MH i2c: D1 01 00 97 D6 01 3F [12:02:52]Write i2c OK [12:02:52]MH_I2C_Read... [12:02:52]Read from MH i2c: D1 [12:02:52]MH_I2C_Read... [12:02:52]Read from MH i2c: D1 01 00 [12:02:52]MH_I2C_Read... [12:02:52]Read from MH i2c: D1 01 00 97 D6 00 3E [12:02:52]Write to MH i2c: 01 00 00 98 D6 6E [12:02:52]Write i2c OK [12:02:52]MH_I2C_Read... [12:02:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 96 AD 47 00 90 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CC 0E 01 00 F4 03 04 00 1A 9B 14 67 B6 04 01 00 00 AC 53 1B BF 35 75 CF E3 [12:02:52]CommunicateWithHost err = 0 [12:02:52]CheckOFDResponse [12:02:52]1017 (14) - 77093643461234 [12:02:52]1041 (16) - 0000000000963346 [12:02:52]1040 (4) - 69324 [12:02:52]1012 (4) - 20.10.2024 05:54 [12:02:52]1206 (1) - 0 [12:02:52]OFD Sender: Remove packet 69324 [12:02:52]ProducePacketName [12:02:52]name=ofd_packets/00069324 [12:02:52]NVStorageDeleteData [12:02:52]OFD Sender: No OFD packet to send [12:02:52]*** Cut start [12:02:52]*** Partial cut [12:02:52]*** CUTSNS_PIN = 1 [12:02:52]*** CUTSNS_PIN = 0 [12:02:53]*** Brake cut motor [12:02:53]Read from MH i2c: 01 [12:02:53]MH_I2C_Read... [12:02:53]*** Stop cut motor [12:02:53]*** Cut end [12:02:53]Read from MH i2c: 01 07 00 [12:02:53]MH_I2C_Read... [12:02:53]Read from MH i2c: 01 07 00 98 D6 00 00 00 00 00 FF 0F 83 [12:02:53]process_action close_receipt done [12:02:53]requested_data is exist [12:02:53]produce_requested_data [12:02:53]requested_item fm.sn is exist - process it [12:02:53]wFMCommunicate request_size=4 [12:02:53]MH_SAM_APDU [12:02:53]CAPDU: 80 11 00 00 [12:02:53]Write to MH i2c: E2 08 00 99 D6 80 11 00 00 00 00 00 00 E9 [12:02:53]Write i2c OK [12:02:53]MH_I2C_Read... [12:02:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:53]Read from MH i2c: E2 [12:02:53]MH_I2C_Read... [12:02:53]Read from MH i2c: E2 17 00 [12:02:53]MH_I2C_Read... [12:02:53]Read from MH i2c: E2 17 00 99 D6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3B [12:02:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:02:53]wFMCommunicate OK [12:02:53]requested_item fd.num is exist - process it [12:02:53]SAM_PROTO_GetFieldsCounters [12:02:53]wFMCommunicate request_size=4 [12:02:53]MH_SAM_APDU [12:02:53]CAPDU: 80 13 00 00 [12:02:53]Write to MH i2c: E2 08 00 9A D6 80 13 00 00 00 00 00 00 EC [12:02:53]Write i2c OK [12:02:53]MH_I2C_Read... [12:02:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:53]Read from MH i2c: E2 [12:02:53]MH_I2C_Read... [12:02:53]Read from MH i2c: E2 62 00 [12:02:53]MH_I2C_Read... [12:02:53]Read from MH i2c: E2 62 00 9A D6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CC 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [12:02:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CC 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:02:53]wFMCommunicate OK [12:02:53]SAM_PROTO_GetFieldsCounters done [12:02:53]requested_item shift.num is exist - process it [12:02:53]requested_item shift.opened is exist - process it [12:02:53]req_shift_opened [12:02:53]FM_GetShiftState [12:02:53]SAM_PROTO_GetShiftState [12:02:53]wFMCommunicate request_size=4 [12:02:53]MH_SAM_APDU [12:02:53]CAPDU: 80 13 01 00 [12:02:53]Write to MH i2c: E2 08 00 9B D6 80 13 01 00 00 00 00 00 EE [12:02:53]Write i2c OK [12:02:53]MH_I2C_Read... [12:02:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:53]Read from MH i2c: E2 [12:02:53]MH_I2C_Read... [12:02:53]Read from MH i2c: E2 0E 00 [12:02:53]MH_I2C_Read... [12:02:53]Read from MH i2c: E2 0E 00 9B D6 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 F4 [12:02:53]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:02:53]wFMCommunicate OK [12:02:53]SAM_PROTO_GetShiftState done [12:02:53]FM_GetShiftState done [12:02:53]req_shift_opened done [12:02:53]requested_item shift.open_date is exist - process it [12:02:53]req_shift_open_date [12:02:53]req_shift_open_date done [12:02:53]produce_requested_data done [12:02:53]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69324,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [12:02:53]process_action_free close_receipt [12:02:53]json_value_free [12:02:53]json_value_free done [12:02:53]process_json_proto returns [12:02:53]Send response to host [12:02:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69324,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [12:02:53]free response buf [12:02:53]execute_script done [12:02:53]execute_script returns [12:02:53]free content buf [12:02:53]Sock 9.Close socket [12:02:53]Sock 9.Thread stoped [12:02:57]OFD Sender: No OFD packet to send [12:03:02]OFD Sender: No OFD packet to send [12:03:02]accept exits with 8 [12:03:02]New connection [12:03:02]New thread 3067260260 created [12:03:02]Thread 3067116900 joined [12:03:02]Waiting for new connection... [12:03:02] Sock 8.Parse request [12:03:02]Sock 8.Check first char [12:03:02]Sock 8.First char is OK [12:03:02]request: POST /json_proto HTTP/1.0 [12:03:02]Method: POST [12:03:02]URL: /json_proto [12:03:02]Method is POST - this is cgi request [12:03:03]url: /json_proto [12:03:03]query_string will be loaded in cgi processing [12:03:03]execute_cgi json_proto POST (null) [12:03:03]execute_cgi path=json_proto method=POST [12:03:03]POST find Content-Length [12:03:03]Host: 172.17.50.3:8080 [12:03:03]Content-Length: 755 [12:03:03]Content-Type: application/json [12:03:03] [12:03:03]POST finish read [12:03:03]Found Content-Length = 755 [12:03:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30147179", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:03]execute_script... [12:03: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)2885041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30147179", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:03]POST & json_proto [12:03:03]process_json_proto [12:03:03]json parsed OK: [12:03:03]protocol is kg_v1.0 [12:03:03]action value=close_receipt [12:03:03]process_action close_receipt [12:03:03]cmd_close_receipt [12:03:03]MH_GetDate [12:03:03]Write to MH i2c: F0 00 00 9C D6 61 [12:03:03]Write i2c OK [12:03:03]MH_I2C_Read... [12:03:03]Read from MH i2c: F0 [12:03:03]MH_I2C_Read... [12:03:03]Read from MH i2c: F0 09 00 [12:03:03]MH_I2C_Read... [12:03:03]Read from MH i2c: F0 09 00 9C D6 00 81 F1 14 67 6B 98 1E 66 DE [12:03:03]GetLastDocTimeStamp 1729425779 [12:03:03]current date 1729425793 [12:03:03]FM_GetShiftState [12:03:03]SAM_PROTO_GetShiftState [12:03:03]wFMCommunicate request_size=4 [12:03:03]MH_SAM_APDU [12:03:03]CAPDU: 80 13 01 00 [12:03:03]Write to MH i2c: E2 08 00 9D D6 80 13 01 00 00 00 00 00 F0 [12:03:03]Write i2c OK [12:03:03]MH_I2C_Read... [12:03:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:03]Read from MH i2c: E2 [12:03:03]MH_I2C_Read... [12:03:03]Read from MH i2c: E2 0E 00 [12:03:03]MH_I2C_Read... [12:03:03]Read from MH i2c: E2 0E 00 9D D6 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 F6 [12:03:03]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:03:03]wFMCommunicate OK [12:03:03]SAM_PROTO_GetShiftState done [12:03:03]FM_GetShiftState done [12:03:03]opened in 1729383220 [12:03:03]opened+sec_in_day 1729469620 [12:03:03]quantity*price = 0 [12:03:03]sum+1 = 1 [12:03:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 170 20.10.2024 12:03 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30147179 ФМ: 0000000000963346 ФД: 69325 ФПД: 254066836420861 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120313&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69325&fm=254066836420861&tin=02508201610067®Number=0000000000156251&sum=0 [12:03:03]StoreToDocumentArchive [12:03:03]shift 193 fd 69325 [12:03:03]save to /storage/0193/doc_00069325 [12:03:03]save last doc name /storage/0193/doc_00069325 to /storage/kkm_last_doc_name [12:03:03]save OK [12:03:03]Clear old archive folders... [12:03:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:03:03]tlvbuf is 00549B50 [12:03:03]SAM_PROTO_ClearQueue [12:03:03]wFMCommunicate request_size=4 [12:03:03]MH_SAM_APDU [12:03:03]CAPDU: 80 09 00 00 [12:03:03]Write to MH i2c: E2 08 00 AA D6 80 09 00 00 00 00 00 00 F2 [12:03:03]Write i2c OK [12:03:03]MH_I2C_Read... [12:03:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:04]Read from MH i2c: E2 [12:03:04]MH_I2C_Read... [12:03:04]Read from MH i2c: E2 03 00 [12:03:04]MH_I2C_Read... [12:03:04]Read from MH i2c: E2 03 00 AA D6 00 90 00 F4 [12:03:04]RAPDU: 90 00 [12:03:04]wFMCommunicate OK [12:03:04]SAM_PROTO_ClearQueue done [12:03:04]KKMCreateOFDPacket [12:03:04]OFDProtocolAddRootSTLVToBuf [12:03:04]FM_MakeSignedData [12:03:04]FM_MakeSignedData [12:03:04]SAM_PROTO_SignData [12:03:04]wFMCommunicate request_size=4 [12:03:04]MH_SAM_APDU [12:03:04]CAPDU: 80 0D 01 02 [12:03:04]Write to MH i2c: E2 08 00 AB D6 80 0D 01 02 00 00 00 00 FA [12:03:04]Write i2c OK [12:03:04]MH_I2C_Read... [12:03:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:04]Read from MH i2c: E2 [12:03:04]MH_I2C_Read... [12:03:04]Read from MH i2c: E2 03 00 [12:03:04]MH_I2C_Read... [12:03:04]Read from MH i2c: E2 03 00 AB D6 00 90 00 F5 [12:03:04]RAPDU: 90 00 [12:03:04]wFMCommunicate OK [12:03:04]wFMCommunicate request_size=255 [12:03:04]MH_SAM_APDU [12:03:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 81 F1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CD 0E 01 00 35 04 06 00 E7 [12:03:04]Write to MH i2c: E2 02 01 AC D6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 81 F1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CD 0E 01 00 35 04 06 00 E7 00 00 BE [12:03:04]Write i2c OK [12:03:04]MH_I2C_Read... [12:03:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:04]Read from MH i2c: E2 [12:03:04]MH_I2C_Read... [12:03:04]Read from MH i2c: E2 03 00 [12:03:04]MH_I2C_Read... [12:03:04]Read from MH i2c: E2 03 00 AC D6 00 90 00 F6 [12:03:04]RAPDU: 90 00 [12:03:04]wFMCommunicate OK [12:03:04]wFMCommunicate request_size=10 [12:03:04]MH_SAM_APDU [12:03:04]CAPDU: 80 0D 02 02 05 12 8B 88 B8 FD [12:03:04]Write to MH i2c: E2 0D 00 AD D6 80 0D 02 02 05 00 12 8B 88 B8 FD 00 00 E1 [12:03:04]Write i2c OK [12:03:04]MH_I2C_Read... [12:03:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:04]Read from MH i2c: E2 [12:03:04]MH_I2C_Read... [12:03:04]Read from MH i2c: E2 03 00 [12:03:04]MH_I2C_Read... [12:03:04]Read from MH i2c: E2 03 00 AD D6 00 90 00 F7 [12:03:04]RAPDU: 90 00 [12:03:04]wFMCommunicate OK [12:03:04]wFMCommunicate request_size=4 [12:03:04]MH_SAM_APDU [12:03:04]CAPDU: 80 0D 03 02 [12:03:04]Write to MH i2c: E2 08 00 AE D6 80 0D 03 02 00 00 00 00 FF [12:03:04]Write i2c OK [12:03:04]MH_I2C_Read... [12:03:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:04]Read from MH i2c: E2 [12:03:04]MH_I2C_Read... [12:03:04]Read from MH i2c: E2 0B 00 [12:03:04]MH_I2C_Read... [12:03:04]Read from MH i2c: E2 0B 00 AE D6 00 29 BF 3A 43 9C A9 5C FD 90 00 03 [12:03:04]RAPDU: 29 BF 3A 43 9C A9 5C FD 90 00 [12:03:04]wFMCommunicate OK [12:03:04]SAM_PROTO_SignData done [12:03:04]FM_MakeSignedData done [12:03:04]CreateOFDProtocolMessage [12:03:04]wFMCommunicate request_size=4 [12:03:04]MH_SAM_APDU [12:03:04]CAPDU: 80 11 00 00 [12:03:04]Write to MH i2c: E2 08 00 AF D6 80 11 00 00 00 00 00 00 FF [12:03:04]Write i2c OK [12:03:04]MH_I2C_Read... [12:03:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:04]Read from MH i2c: E2 [12:03:04]MH_I2C_Read... [12:03:04]Read from MH i2c: E2 17 00 [12:03:04]MH_I2C_Read... [12:03:04]Read from MH i2c: E2 17 00 AF D6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 51 [12:03:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:03:04]wFMCommunicate OK [12:03:04]CreateOFDProtocolMessage done [12:03:04]OFDSenderStorePacket 69325 [12:03:04]StoreOFDPacket docnum=69325 [12:03:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 08 CC 07 01 ED 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 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 81 F1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CD 0E 01 00 35 04 06 00 E7 12 8B 88 B8 FD 29 BF 3A 43 9C A9 5C FD [12:03:04]CheckFolder [12:03:04]dirname=/storage/ofd_packets [12:03:04]CheckFolder done [12:03:04]ProducePacketName [12:03:04]name=ofd_packets/00069325 [12:03:04]NVStorageSaveData ofd_packets/00069325 [12:03:04]File name is /storage/ofd_packets/00069325 [12:03:04]Write 301 bytes [12:03:04]NVStorageSaveData done [12:03:04]OFDSenderStorePacket done [12:03:04]KKMCreateOFDPacket done [12:03:04]NVStorageSaveData kkm_last_timestamp [12:03:04]File name is /storage/kkm_last_timestamp [12:03:04]Write 4 bytes [12:03:04]NVStorageSaveData done [12:03:04]ExternCall_PrintAddStr [12:03:04]wPrintStart [12:03:04]Write to MH i2c: 01 00 00 B0 D6 86 [12:03:04]OFD Sender: Processing packet 69325 [packets to send 18, broken 17] [12:03:04]ProducePacketName [12:03:04]name=ofd_packets/00069325 [12:03:04]OFD Sender: To server: pG, [12:03:04]CommunicateWithHost lk.salyk.kg:30040 [12:03:04]ConnectInit lk.salyk.kg [12:03:04]Write i2c OK [12:03:04]MH_I2C_Read... [12:03:04]Read from MH i2c: 01 [12:03:04]MH_I2C_Read... [12:03:04]Read from MH i2c: 01 07 00 [12:03:04]MH_I2C_Read... [12:03:04]Read from MH i2c: 01 07 00 B0 D6 00 00 00 00 00 FF 0F 9B [12:03:04]RasterBufferAndPrint [12:03:04]line Счет N : (1)2885041 [12:03:04]line ИНН: 02508201610067 [12:03:04]line Контрольно-Кассовый Чек [12:03:04]line ПРОДАЖА [12:03:04]line ТРК (МРК, ГНК) : 32 [12:03:04]line Товар: 2710124130 [12:03:04]line Аи-92-К-5 [12:03:04]line 30.000 * 0.00 [12:03:04]line = 0.00 [12:03:04]line НДС 12% НСП 1% [12:03:04]line > о реализуемом товаре [12:03:04]line ИТОГО: 0.00 [12:03:04]line НСП 1% : 0.00 [12:03:04]line НДС 12% : 0.00 [12:03:04]line Наличными: 0.00 [12:03:04]line Безнал.: 0.00 [12:03:04]line Место: АЗС № 85 "Партнер Нефть" [12:03:04]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:03:04]line СНО: Общий режим [12:03:04]line Чек 170 20.10.2024 12:03 [12:03:04]line Смена: 193 ФФД: 1.0 [12:03:04]line ЗНМ: 0300000167 [12:03:04]line РНМ: 0000000000156251 [12:03:04]line Версия ККМ: v1.0 [12:03:04]line Талоны: ТК ГПНА Online [12:03:04]line 30147179 [12:03:04]line ФМ: 0000000000963346 [12:03:04]line ФД: 69325 [12:03:04]line ФПД: 254066836420861 [12:03:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120313&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69325&fm=254066836420861&tin=02508201610067®Number=0000000000156251&sum=0 [12:03:04]Connected sock=10 [12:03:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 08 CC 07 01 ED 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 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC written 0, free lines is 4095 [12:03:04]04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 81 F1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CD 0E 01 00 35 04 06 00 E7 12 8B 88 B8 FD 29 BF 3A 43 9C A9 5C FD [12:03:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 49 82 47 00 AD A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CD 0E 01 00 F4 03 04 00 27 9B 14 67 B6 04 01 00 00 98 10 36 4D 14 3F FE 0E [12:03:05]CommunicateWithHost err = 0 [12:03:05]CheckOFDResponse [12:03:05]1017 (14) - 77093643461234 [12:03:05]1041 (16) - 0000000000963346 [12:03:05]1040 (4) - 69325 [12:03:05]1012 (4) - 20.10.2024 05:54 [12:03:05]1206 (1) - 0 [12:03:05]OFD Sender: Remove packet 69325 [12:03:05]ProducePacketName [12:03:05]name=ofd_packets/00069325 [12:03:05]NVStorageDeleteData [12:03:05]Write to MH i2c: 01 00 00 DA D6 B0 [12:03:05]Write i2c OK [12:03:05]MH_I2C_Read... [12:03:05]Read from MH i2c: 01 [12:03:05]MH_I2C_Read... [12:03:05]Read from MH i2c: 01 07 00 [12:03:05]MH_I2C_Read... [12:03:05]Read from MH i2c: 01 07 00 DA D6 00 00 00 00 00 10 0D D4 [12:03:05]RasterBufferAndPrint [12:03:05]line [12:03:05]line [12:03:05]line [12:03:05]line [12:03:05]line [12:03:05]written 0, free lines is 3359 [12:03:05]MH_Cut [12:03:05]Write to MH i2c: D1 01 00 E1 D6 01 89 [12:03:05]Write i2c OK [12:03:05]MH_I2C_Read... [12:03:05]Read from MH i2c: D1 [12:03:05]MH_I2C_Read... [12:03:05]Read from MH i2c: D1 01 00 [12:03:05]MH_I2C_Read... [12:03:05]Read from MH i2c: D1 01 00 E1 D6 00 88 [12:03:05]Write to MH i2c: 01 00 00 E2 D6 B8 [12:03:05]Write i2c OK [12:03:05]MH_I2C_Read... [12:03:05]OFD Sender: No OFD packet to send [12:03:06]*** Cut start [12:03:06]*** Partial cut [12:03:06]*** CUTSNS_PIN = 1 [12:03:06]*** CUTSNS_PIN = 0 [12:03:06]*** Brake cut motor [12:03:06]Read from MH i2c: 01 [12:03:06]MH_I2C_Read... [12:03:06]*** Stop cut motor [12:03:06]*** Cut end [12:03:06]Read from MH i2c: 01 07 00 [12:03:06]MH_I2C_Read... [12:03:06]Read from MH i2c: 01 07 00 E2 D6 00 00 00 00 00 FF 0F CD [12:03:06]process_action close_receipt done [12:03:06]requested_data is exist [12:03:06]produce_requested_data [12:03:06]requested_item fm.sn is exist - process it [12:03:06]wFMCommunicate request_size=4 [12:03:06]MH_SAM_APDU [12:03:06]CAPDU: 80 11 00 00 [12:03:06]Write to MH i2c: E2 08 00 E3 D6 80 11 00 00 00 00 00 00 33 [12:03:06]Write i2c OK [12:03:06]MH_I2C_Read... [12:03:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:06]Read from MH i2c: E2 [12:03:06]MH_I2C_Read... [12:03:06]Read from MH i2c: E2 17 00 [12:03:06]MH_I2C_Read... [12:03:06]Read from MH i2c: E2 17 00 E3 D6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 85 [12:03:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:03:06]wFMCommunicate OK [12:03:06]requested_item fd.num is exist - process it [12:03:06]SAM_PROTO_GetFieldsCounters [12:03:06]wFMCommunicate request_size=4 [12:03:06]MH_SAM_APDU [12:03:06]CAPDU: 80 13 00 00 [12:03:06]Write to MH i2c: E2 08 00 E4 D6 80 13 00 00 00 00 00 00 36 [12:03:06]Write i2c OK [12:03:06]MH_I2C_Read... [12:03:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:06]Read from MH i2c: E2 [12:03:06]MH_I2C_Read... [12:03:06]Read from MH i2c: E2 62 00 [12:03:06]MH_I2C_Read... [12:03:06]Read from MH i2c: E2 62 00 E4 D6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CD 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [12:03:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CD 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:03:06]wFMCommunicate OK [12:03:06]SAM_PROTO_GetFieldsCounters done [12:03:06]requested_item shift.num is exist - process it [12:03:06]requested_item shift.opened is exist - process it [12:03:06]req_shift_opened [12:03:06]FM_GetShiftState [12:03:06]SAM_PROTO_GetShiftState [12:03:06]wFMCommunicate request_size=4 [12:03:06]MH_SAM_APDU [12:03:06]CAPDU: 80 13 01 00 [12:03:06]Write to MH i2c: E2 08 00 E5 D6 80 13 01 00 00 00 00 00 38 [12:03:07]Write i2c OK [12:03:07]MH_I2C_Read... [12:03:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:07]Read from MH i2c: E2 [12:03:07]MH_I2C_Read... [12:03:07]Read from MH i2c: E2 0E 00 [12:03:07]MH_I2C_Read... [12:03:07]Read from MH i2c: E2 0E 00 E5 D6 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 3E [12:03:07]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:03:07]wFMCommunicate OK [12:03:07]SAM_PROTO_GetShiftState done [12:03:07]FM_GetShiftState done [12:03:07]req_shift_opened done [12:03:07]requested_item shift.open_date is exist - process it [12:03:07]req_shift_open_date [12:03:07]req_shift_open_date done [12:03:07]produce_requested_data done [12:03:07]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69325,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [12:03:07]process_action_free close_receipt [12:03:07]json_value_free [12:03:07]json_value_free done [12:03:07]process_json_proto returns [12:03:07]Send response to host [12:03:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69325,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [12:03:07]free response buf [12:03:07]execute_script done [12:03:07]execute_script returns [12:03:07]free content buf [12:03:07]Sock 8.Close socket [12:03:07]Sock 8.Thread stoped [12:03:10]OFD Sender: No OFD packet to send [12:03:15]OFD Sender: No OFD packet to send [12:03:20]OFD Sender: No OFD packet to send [12:03:25]OFD Sender: No OFD packet to send [12:03:30]OFD Sender: No OFD packet to send [12:03:32]accept exits with 9 [12:03:32]New connection [12:03:32]New thread 3067116900 created [12:03:32]Thread 3067260260 joined [12:03:32]Waiting for new connection... [12:03:32] Sock 9.Parse request [12:03:32]Sock 9.Check first char [12:03:32]Sock 9.First char is OK [12:03:32]request: POST /json_proto HTTP/1.0 [12:03:32]Method: POST [12:03:32]URL: /json_proto [12:03:32]Method is POST - this is cgi request [12:03:32]url: /json_proto [12:03:32]query_string will be loaded in cgi processing [12:03:32]execute_cgi json_proto POST (null) [12:03:32]execute_cgi path=json_proto method=POST [12:03:32]POST find Content-Length [12:03:32]Host: 172.17.50.3:8080 [12:03:32]Content-Length: 680 [12:03:32]Content-Type: application/json [12:03:32] [12:03:32]POST finish read [12:03:32]Found Content-Length = 680 [12:03:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:32]execute_script... [12:03: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)2885044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:32]POST & json_proto [12:03:32]process_json_proto [12:03:32]json parsed OK: [12:03:32]protocol is kg_v1.0 [12:03:32]action value=close_receipt [12:03:32]process_action close_receipt [12:03:32]cmd_close_receipt [12:03:32]MH_GetDate [12:03:32]Write to MH i2c: F0 00 00 E6 D6 AB [12:03:32]Write i2c OK [12:03:32]MH_I2C_Read... [12:03:32]Read from MH i2c: F0 [12:03:32]MH_I2C_Read... [12:03:32]Read from MH i2c: F0 09 00 [12:03:32]MH_I2C_Read... [12:03:32]Read from MH i2c: F0 09 00 E6 D6 00 9F F1 14 67 6B 98 1E 66 46 [12:03:32]GetLastDocTimeStamp 1729425793 [12:03:32]current date 1729425823 [12:03:32]FM_GetShiftState [12:03:32]SAM_PROTO_GetShiftState [12:03:32]wFMCommunicate request_size=4 [12:03:32]MH_SAM_APDU [12:03:32]CAPDU: 80 13 01 00 [12:03:32]Write to MH i2c: E2 08 00 E7 D6 80 13 01 00 00 00 00 00 3A [12:03:32]Write i2c OK [12:03:32]MH_I2C_Read... [12:03:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:32]Read from MH i2c: E2 [12:03:32]MH_I2C_Read... [12:03:32]Read from MH i2c: E2 0E 00 [12:03:32]MH_I2C_Read... [12:03:32]Read from MH i2c: E2 0E 00 E7 D6 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 40 [12:03:32]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:03:32]wFMCommunicate OK [12:03:32]SAM_PROTO_GetShiftState done [12:03:32]FM_GetShiftState done [12:03:32]opened in 1729383220 [12:03:32]opened+sec_in_day 1729469620 [12:03:32]quantity*price = 120015 [12:03:32]sum+1 = 120016 [12:03:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 171 20.10.2024 12:03 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69326 ФПД: 215544074805703 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120343&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69326&fm=215544074805703&tin=02508201610067®Number=0000000000156251&sum=120000 [12:03:33]StoreToDocumentArchive [12:03:33]shift 193 fd 69326 [12:03:33]save to /storage/0193/doc_00069326 [12:03:33]save last doc name /storage/0193/doc_00069326 to /storage/kkm_last_doc_name [12:03:33]save OK [12:03:33]Clear old archive folders... [12:03:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:03:33]tlvbuf is 006B40F0 [12:03:33]SAM_PROTO_ClearQueue [12:03:33]wFMCommunicate request_size=4 [12:03:33]MH_SAM_APDU [12:03:33]CAPDU: 80 09 00 00 [12:03:33]Write to MH i2c: E2 08 00 F4 D6 80 09 00 00 00 00 00 00 3C [12:03:33]Write i2c OK [12:03:33]MH_I2C_Read... [12:03:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:34]Read from MH i2c: E2 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: E2 03 00 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: E2 03 00 F4 D6 00 90 00 3E [12:03:34]RAPDU: 90 00 [12:03:34]wFMCommunicate OK [12:03:34]SAM_PROTO_ClearQueue done [12:03:34]KKMCreateOFDPacket [12:03:34]OFDProtocolAddRootSTLVToBuf [12:03:34]FM_MakeSignedData [12:03:34]FM_MakeSignedData [12:03:34]SAM_PROTO_SignData [12:03:34]wFMCommunicate request_size=4 [12:03:34]MH_SAM_APDU [12:03:34]CAPDU: 80 0D 01 02 [12:03:34]Write to MH i2c: E2 08 00 F5 D6 80 0D 01 02 00 00 00 00 44 [12:03:34]Write i2c OK [12:03:34]MH_I2C_Read... [12:03:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:34]Read from MH i2c: E2 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: E2 03 00 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: E2 03 00 F5 D6 00 90 00 3F [12:03:34]RAPDU: 90 00 [12:03:34]wFMCommunicate OK [12:03:34]wFMCommunicate request_size=255 [12:03:34]MH_SAM_APDU [12:03:34]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 9F F1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CE 0E 01 00 35 04 06 00 C4 09 44 03 [12:03:34]Write to MH i2c: E2 02 01 F6 D6 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 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 9F F1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CE 0E 01 00 35 04 06 00 C4 09 44 03 00 00 99 [12:03:34]Write i2c OK [12:03:34]MH_I2C_Read... [12:03:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:34]Read from MH i2c: E2 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: E2 03 00 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: E2 03 00 F6 D6 00 90 00 40 [12:03:34]RAPDU: 90 00 [12:03:34]wFMCommunicate OK [12:03:34]wFMCommunicate request_size=7 [12:03:34]MH_SAM_APDU [12:03:34]CAPDU: 80 0D 02 02 02 21 C7 [12:03:34]Write to MH i2c: E2 0A 00 F7 D6 80 0D 02 02 02 00 21 C7 00 00 33 [12:03:34]Write i2c OK [12:03:34]MH_I2C_Read... [12:03:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:34]Read from MH i2c: E2 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: E2 03 00 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: E2 03 00 F7 D6 00 90 00 41 [12:03:34]RAPDU: 90 00 [12:03:34]wFMCommunicate OK [12:03:34]wFMCommunicate request_size=4 [12:03:34]MH_SAM_APDU [12:03:34]CAPDU: 80 0D 03 02 [12:03:34]Write to MH i2c: E2 08 00 F8 D6 80 0D 03 02 00 00 00 00 49 [12:03:34]Write i2c OK [12:03:34]MH_I2C_Read... [12:03:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:34]Read from MH i2c: E2 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: E2 0B 00 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: E2 0B 00 F8 D6 00 01 56 CA 5C 68 5D E4 47 90 00 B7 [12:03:34]RAPDU: 01 56 CA 5C 68 5D E4 47 90 00 [12:03:34]wFMCommunicate OK [12:03:34]SAM_PROTO_SignData done [12:03:34]FM_MakeSignedData done [12:03:34]CreateOFDProtocolMessage [12:03:34]wFMCommunicate request_size=4 [12:03:34]MH_SAM_APDU [12:03:34]CAPDU: 80 11 00 00 [12:03:34]Write to MH i2c: E2 08 00 F9 D6 80 11 00 00 00 00 00 00 49 [12:03:34]Write i2c OK [12:03:34]MH_I2C_Read... [12:03:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:34]Read from MH i2c: E2 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: E2 17 00 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: E2 17 00 F9 D6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9B [12:03:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:03:34]wFMCommunicate OK [12:03:34]CreateOFDProtocolMessage done [12:03:34]OFDSenderStorePacket 69326 [12:03:34]StoreOFDPacket docnum=69326 [12:03:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 F7 6F 04 01 6C 6D 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 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 9F F1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CE 0E 01 00 35 04 06 00 C4 09 44 03 21 C7 01 56 CA 5C 68 5D E4 47 [12:03:34]CheckFolder [12:03:34]dirname=/storage/ofd_packets [12:03:34]CheckFolder done [12:03:34]ProducePacketName [12:03:34]name=ofd_packets/00069326 [12:03:34]NVStorageSaveData ofd_packets/00069326 [12:03:34]File name is /storage/ofd_packets/00069326 [12:03:34]Write 298 bytes [12:03:34]NVStorageSaveData done [12:03:34]OFDSenderStorePacket done [12:03:34]KKMCreateOFDPacket done [12:03:34]NVStorageSaveData kkm_last_timestamp [12:03:34]File name is /storage/kkm_last_timestamp [12:03:34]Write 4 bytes [12:03:34]NVStorageSaveData done [12:03:34]ExternCall_PrintAddStr [12:03:34]wPrintStart [12:03:34]Write to MH i2c: 01 00 00 FA D6 D0 [12:03:34]Write i2c OK [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: 01 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: 01 07 00 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: 01 07 00 FA D6 00 00 00 00 00 FF 0F E5 [12:03:34]RasterBufferAndPrint [12:03:34]line Счет N : (1)2885044 [12:03:34]line ИНН: 02508201610067 [12:03:34]line Контрольно-Кассовый Чек [12:03:34]line ПРОДАЖА [12:03:34]line ТРК (МРК, ГНК) : 51 [12:03:34]line Товар: 2710194210 [12:03:34]line ДТ-К-5 [12:03:34]line 15.750 * 76.20 [12:03:34]line = 1200.15 [12:03:34]line НДС 12% НСП 1% [12:03:34]line > о реализуемом товаре [12:03:34]line ОКРУГЛЕНИЕ: -0.15 [12:03:34]line ИТОГО: 1200.00 [12:03:34]line Внесено: 1200.00 [12:03:34]line СДАЧА: 0.00 [12:03:34]line НСП 1% : 10.62 [12:03:34]line НДС 12% : 127.45 [12:03:34]line Наличными: 1200.00 [12:03:34]line Безнал.: 0.00 [12:03:34]line Место: АЗС № 85 "Партнер Нефть" [12:03:34]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:03:34]line СНО: Общий режим [12:03:34]line Чек 171 20.10.2024 12:03 [12:03:34]line Смена: 193 ФФД: 1.0 [12:03:34]line ЗНМ: 0300000167 [12:03:34]line РНМ: 0000000000156251 [12:03:34]line Версия ККМ: v1.0 [12:03:34]line ФМ: 0000000000963346 [12:03:34]line ФД: 69326 [12:03:34]line ФПД: 215544074805703 [12:03:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120343&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69326&fm=215544074805703&tin=02508201610067®Number=0000000000156251&sum=120000 [12:03:34]OFD Sender: Processing packet 69326 [packets to send 18, broken 17] [12:03:34]ProducePacketName [12:03:34]name=ofd_packets/00069326 [12:03:34]OFD Sender: To server: pG, [12:03:34]CommunicateWithHost lk.salyk.kg:30040 [12:03:34]ConnectInit lk.salyk.kg [12:03:34]written 0, free lines is 4095 [12:03:34]Connected sock=10 [12:03:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 F7 6F 04 01 6C 6D 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 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 9F F1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CE 0E 01 00 35 04 06 00 C4 09 44 03 21 C7 01 56 CA 5C 68 5D E4 47 [12:03:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 BE DC 47 00 AB 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CE 0E 01 00 F4 03 04 00 45 9B 14 67 B6 04 01 00 00 18 96 89 88 16 0E A8 C3 [12:03:35]CommunicateWithHost err = 0 [12:03:35]CheckOFDResponse [12:03:35]1017 (14) - 77093643461234 [12:03:35]1041 (16) - 0000000000963346 [12:03:35]1040 (4) - 69326 [12:03:35]1012 (4) - 20.10.2024 05:55 [12:03:35]1206 (1) - 0 [12:03:35]OFD Sender: Remove packet 69326 [12:03:35]ProducePacketName [12:03:35]name=ofd_packets/00069326 [12:03:35]NVStorageDeleteData [12:03:35]Write to MH i2c: 01 00 00 25 D7 FC [12:03:35]Write i2c OK [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: 01 [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: 01 07 00 [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: 01 07 00 25 D7 00 00 00 00 00 F6 0C 05 [12:03:35]RasterBufferAndPrint [12:03:35]line [12:03:35]line [12:03:35]line [12:03:35]line [12:03:35]line [12:03:35]written 0, free lines is 3328 [12:03:35]MH_Cut [12:03:35]Write to MH i2c: D1 01 00 2C D7 01 D5 [12:03:35]Write i2c OK [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: D1 [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: D1 01 00 [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: D1 01 00 2C D7 00 D4 [12:03:35]Write to MH i2c: 01 00 00 2D D7 04 [12:03:35]Write i2c OK [12:03:35]MH_I2C_Read... [12:03:35]OFD Sender: No OFD packet to send [12:03:36]*** Cut start [12:03:36]*** Partial cut [12:03:36]*** CUTSNS_PIN = 1 [12:03:36]*** CUTSNS_PIN = 0 [12:03:36]*** Brake cut motor [12:03:36]Read from MH i2c: 01 [12:03:36]MH_I2C_Read... [12:03:36]*** Stop cut motor [12:03:36]*** Cut end [12:03:36]Read from MH i2c: 01 07 00 [12:03:36]MH_I2C_Read... [12:03:36]Read from MH i2c: 01 07 00 2D D7 00 00 00 00 00 FF 0F 19 [12:03:36]process_action close_receipt done [12:03:36]requested_data is exist [12:03:36]produce_requested_data [12:03:36]requested_item fm.sn is exist - process it [12:03:36]wFMCommunicate request_size=4 [12:03:36]MH_SAM_APDU [12:03:36]CAPDU: 80 11 00 00 [12:03:36]Write to MH i2c: E2 08 00 2E D7 80 11 00 00 00 00 00 00 7F [12:03:36]Write i2c OK [12:03:36]MH_I2C_Read... [12:03:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:36]Read from MH i2c: E2 [12:03:36]MH_I2C_Read... [12:03:36]Read from MH i2c: E2 17 00 [12:03:36]MH_I2C_Read... [12:03:36]Read from MH i2c: E2 17 00 2E D7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D1 [12:03:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:03:36]wFMCommunicate OK [12:03:36]requested_item fd.num is exist - process it [12:03:36]SAM_PROTO_GetFieldsCounters [12:03:36]wFMCommunicate request_size=4 [12:03:36]MH_SAM_APDU [12:03:36]CAPDU: 80 13 00 00 [12:03:36]Write to MH i2c: E2 08 00 2F D7 80 13 00 00 00 00 00 00 82 [12:03:36]Write i2c OK [12:03:36]MH_I2C_Read... [12:03:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:36]Read from MH i2c: E2 [12:03:36]MH_I2C_Read... [12:03:36]Read from MH i2c: E2 62 00 [12:03:36]MH_I2C_Read... [12:03:36]Read from MH i2c: E2 62 00 2F D7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CE 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [12:03:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CE 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:03:36]wFMCommunicate OK [12:03:36]SAM_PROTO_GetFieldsCounters done [12:03:36]requested_item shift.num is exist - process it [12:03:36]requested_item shift.opened is exist - process it [12:03:36]req_shift_opened [12:03:36]FM_GetShiftState [12:03:36]SAM_PROTO_GetShiftState [12:03:36]wFMCommunicate request_size=4 [12:03:36]MH_SAM_APDU [12:03:36]CAPDU: 80 13 01 00 [12:03:36]Write to MH i2c: E2 08 00 30 D7 80 13 01 00 00 00 00 00 84 [12:03:36]Write i2c OK [12:03:36]MH_I2C_Read... [12:03:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:36]Read from MH i2c: E2 [12:03:36]MH_I2C_Read... [12:03:36]Read from MH i2c: E2 0E 00 [12:03:36]MH_I2C_Read... [12:03:36]Read from MH i2c: E2 0E 00 30 D7 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 8A [12:03:36]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:03:36]wFMCommunicate OK [12:03:36]SAM_PROTO_GetShiftState done [12:03:36]FM_GetShiftState done [12:03:36]req_shift_opened done [12:03:36]requested_item shift.open_date is exist - process it [12:03:36]req_shift_open_date [12:03:36]req_shift_open_date done [12:03:36]produce_requested_data done [12:03:36]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69326,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [12:03:36]process_action_free close_receipt [12:03:36]json_value_free [12:03:36]json_value_free done [12:03:36]process_json_proto returns [12:03:36]Send response to host [12:03:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69326,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [12:03:36]free response buf [12:03:36]execute_script done [12:03:36]execute_script returns [12:03:36]free content buf [12:03:36]Sock 9.Close socket [12:03:36]Sock 9.Thread stoped [12:03:40]OFD Sender: No OFD packet to send [12:03:45]OFD Sender: No OFD packet to send [12:03:50]OFD Sender: No OFD packet to send [12:03:55]OFD Sender: No OFD packet to send [12:04:00]OFD Sender: No OFD packet to send [12:04:05]OFD Sender: No OFD packet to send [12:04:10]OFD Sender: No OFD packet to send [12:04:15]OFD Sender: No OFD packet to send [12:04:20]OFD Sender: No OFD packet to send [12:04:25]OFD Sender: No OFD packet to send [12:04:30]OFD Sender: No OFD packet to send [12:04:35]OFD Sender: No OFD packet to send [12:04:40]OFD Sender: No OFD packet to send [12:04:45]OFD Sender: No OFD packet to send [12:04:50]OFD Sender: No OFD packet to send [12:04:55]OFD Sender: No OFD packet to send [12:05:00]OFD Sender: No OFD packet to send [12:05:01]accept exits with 8 [12:05:01]New connection [12:05:01]New thread 3067260260 created [12:05:01]Thread 3067116900 joined [12:05:01]Waiting for new connection... [12:05:01] Sock 8.Parse request [12:05:01]Sock 8.Check first char [12:05:01]Sock 8.First char is OK [12:05:01]request: POST /json_proto HTTP/1.0 [12:05:01]Method: POST [12:05:01]URL: /json_proto [12:05:01]Method is POST - this is cgi request [12:05:01]url: /json_proto [12:05:01]query_string will be loaded in cgi processing [12:05:01]execute_cgi json_proto POST (null) [12:05:01]execute_cgi path=json_proto method=POST [12:05:01]POST find Content-Length [12:05:01]Host: 172.17.50.3:8080 [12:05:01]Content-Length: 678 [12:05:01]Content-Type: application/json [12:05:01] [12:05:01]POST finish read [12:05:01]Found Content-Length = 678 [12:05:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:01]execute_script... [12:05:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:01]POST & json_proto [12:05:01]process_json_proto [12:05:01]json parsed OK: [12:05:01]protocol is kg_v1.0 [12:05:01]action value=close_receipt [12:05:01]process_action close_receipt [12:05:01]cmd_close_receipt [12:05:01]MH_GetDate [12:05:01]Write to MH i2c: F0 00 00 31 D7 F7 [12:05:01]Write i2c OK [12:05:01]MH_I2C_Read... [12:05:01]Read from MH i2c: F0 [12:05:01]MH_I2C_Read... [12:05:01]Read from MH i2c: F0 09 00 [12:05:01]MH_I2C_Read... [12:05:01]Read from MH i2c: F0 09 00 31 D7 00 F7 F1 14 67 6B 98 1E 66 EA [12:05:01]GetLastDocTimeStamp 1729425823 [12:05:01]current date 1729425911 [12:05:01]FM_GetShiftState [12:05:01]SAM_PROTO_GetShiftState [12:05:01]wFMCommunicate request_size=4 [12:05:01]MH_SAM_APDU [12:05:01]CAPDU: 80 13 01 00 [12:05:01]Write to MH i2c: E2 08 00 32 D7 80 13 01 00 00 00 00 00 86 [12:05:01]Write i2c OK [12:05:01]MH_I2C_Read... [12:05:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:01]Read from MH i2c: E2 [12:05:01]MH_I2C_Read... [12:05:01]Read from MH i2c: E2 0E 00 [12:05:01]MH_I2C_Read... [12:05:01]Read from MH i2c: E2 0E 00 32 D7 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 8C [12:05:01]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:05:01]wFMCommunicate OK [12:05:01]SAM_PROTO_GetShiftState done [12:05:01]FM_GetShiftState done [12:05:01]opened in 1729383220 [12:05:01]opened+sec_in_day 1729469620 [12:05:01]quantity*price = 50041 [12:05:01]sum+1 = 50042 [12:05:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 172 20.10.2024 12:05 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69327 ФПД: 247468492838410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120511&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69327&fm=247468492838410&tin=02508201610067®Number=0000000000156251&sum=50000 [12:05:02]StoreToDocumentArchive [12:05:02]shift 193 fd 69327 [12:05:02]save to /storage/0193/doc_00069327 [12:05:02]save last doc name /storage/0193/doc_00069327 to /storage/kkm_last_doc_name [12:05:02]save OK [12:05:02]Clear old archive folders... [12:05:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:05:02]tlvbuf is 00686FA0 [12:05:02]SAM_PROTO_ClearQueue [12:05:02]wFMCommunicate request_size=4 [12:05:02]MH_SAM_APDU [12:05:02]CAPDU: 80 09 00 00 [12:05:02]Write to MH i2c: E2 08 00 3F D7 80 09 00 00 00 00 00 00 88 [12:05:02]Write i2c OK [12:05:02]MH_I2C_Read... [12:05:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:05:02]Read from MH i2c: E2 [12:05:02]MH_I2C_Read... [12:05:02]Read from MH i2c: E2 03 00 [12:05:02]MH_I2C_Read... [12:05:02]Read from MH i2c: E2 03 00 3F D7 00 90 00 8A [12:05:02]RAPDU: 90 00 [12:05:02]wFMCommunicate OK [12:05:02]SAM_PROTO_ClearQueue done [12:05:02]KKMCreateOFDPacket [12:05:02]OFDProtocolAddRootSTLVToBuf [12:05:02]FM_MakeSignedData [12:05:02]FM_MakeSignedData [12:05:02]SAM_PROTO_SignData [12:05:02]wFMCommunicate request_size=4 [12:05:02]MH_SAM_APDU [12:05:02]CAPDU: 80 0D 01 02 [12:05:02]Write to MH i2c: E2 08 00 40 D7 80 0D 01 02 00 00 00 00 90 [12:05:02]Write i2c OK [12:05:02]MH_I2C_Read... [12:05:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:05:02]Read from MH i2c: E2 [12:05:02]MH_I2C_Read... [12:05:02]Read from MH i2c: E2 03 00 [12:05:02]MH_I2C_Read... [12:05:02]Read from MH i2c: E2 03 00 40 D7 00 90 00 8B [12:05:02]RAPDU: 90 00 [12:05:02]wFMCommunicate OK [12:05:02]wFMCommunicate request_size=255 [12:05:02]MH_SAM_APDU [12:05:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 F7 F1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CF 0E 01 00 35 04 06 00 E1 [12:05:02]Write to MH i2c: E2 02 01 41 D7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 F7 F1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CF 0E 01 00 35 04 06 00 E1 00 00 A8 [12:05:02]Write i2c OK [12:05:02]MH_I2C_Read... [12:05:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:02]Read from MH i2c: E2 [12:05:02]MH_I2C_Read... [12:05:02]Read from MH i2c: E2 03 00 [12:05:02]MH_I2C_Read... [12:05:02]Read from MH i2c: E2 03 00 41 D7 00 90 00 8C [12:05:02]RAPDU: 90 00 [12:05:02]wFMCommunicate OK [12:05:02]wFMCommunicate request_size=10 [12:05:02]MH_SAM_APDU [12:05:02]CAPDU: 80 0D 02 02 05 12 3F 9B D6 0A [12:05:02]Write to MH i2c: E2 0D 00 42 D7 80 0D 02 02 05 00 12 3F 9B D6 0A 00 00 69 [12:05:02]Write i2c OK [12:05:02]MH_I2C_Read... [12:05:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:02]Read from MH i2c: E2 [12:05:02]MH_I2C_Read... [12:05:02]Read from MH i2c: E2 03 00 [12:05:02]MH_I2C_Read... [12:05:02]Read from MH i2c: E2 03 00 42 D7 00 90 00 8D [12:05:02]RAPDU: 90 00 [12:05:02]wFMCommunicate OK [12:05:02]wFMCommunicate request_size=4 [12:05:02]MH_SAM_APDU [12:05:02]CAPDU: 80 0D 03 02 [12:05:02]Write to MH i2c: E2 08 00 43 D7 80 0D 03 02 00 00 00 00 95 [12:05:02]Write i2c OK [12:05:02]MH_I2C_Read... [12:05:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:05:02]Read from MH i2c: E2 [12:05:02]MH_I2C_Read... [12:05:02]Read from MH i2c: E2 0B 00 [12:05:02]MH_I2C_Read... [12:05:02]Read from MH i2c: E2 0B 00 43 D7 00 50 01 FA 9D 7A 3B EC E2 90 00 01 [12:05:02]RAPDU: 50 01 FA 9D 7A 3B EC E2 90 00 [12:05:02]wFMCommunicate OK [12:05:02]SAM_PROTO_SignData done [12:05:02]FM_MakeSignedData done [12:05:02]CreateOFDProtocolMessage [12:05:02]wFMCommunicate request_size=4 [12:05:02]MH_SAM_APDU [12:05:02]CAPDU: 80 11 00 00 [12:05:02]Write to MH i2c: E2 08 00 44 D7 80 11 00 00 00 00 00 00 95 [12:05:02]Write i2c OK [12:05:02]MH_I2C_Read... [12:05:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:02]Read from MH i2c: E2 [12:05:02]MH_I2C_Read... [12:05:02]Read from MH i2c: E2 17 00 [12:05:02]MH_I2C_Read... [12:05:02]Read from MH i2c: E2 17 00 44 D7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E7 [12:05:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:05:02]wFMCommunicate OK [12:05:02]CreateOFDProtocolMessage done [12:05:02]OFDSenderStorePacket 69327 [12:05:02]StoreOFDPacket docnum=69327 [12:05:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F6 F7 07 01 5C 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 F7 F1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CF 0E 01 00 35 04 06 00 E1 12 3F 9B D6 0A 50 01 FA 9D 7A 3B EC E2 [12:05:02]CheckFolder [12:05:02]dirname=/storage/ofd_packets [12:05:02]CheckFolder done [12:05:02]ProducePacketName [12:05:02]name=ofd_packets/00069327 [12:05:02]NVStorageSaveData ofd_packets/00069327 [12:05:02]File name is /storage/ofd_packets/00069327 [12:05:02]Write 301 bytes [12:05:02]NVStorageSaveData done [12:05:02]OFDSenderStorePacket done [12:05:02]KKMCreateOFDPacket done [12:05:02]NVStorageSaveData kkm_last_timestamp [12:05:02]File name is /storage/kkm_last_timestamp [12:05:02]Write 4 bytes [12:05:02]NVStorageSaveData done [12:05:02]ExternCall_PrintAddStr [12:05:02]wPrintStart [12:05:02]Write to MH i2c: 01 00 00 45 D7 1C [12:05:02]Write i2c OK [12:05:02]MH_I2C_Read... [12:05:02]Read from MH i2c: 01 [12:05:02]MH_I2C_Read... [12:05:02]Read from MH i2c: 01 07 00 [12:05:02]MH_I2C_Read... [12:05:02]Read from MH i2c: 01 07 00 45 D7 00 00 00 00 00 FF 0F 31 [12:05:02]RasterBufferAndPrint [12:05:02]line Счет N : (1)2885045 [12:05:02]line ИНН: 02508201610067 [12:05:02]line Контрольно-Кассовый Чек [12:05:02]line ПРОДАЖА [12:05:02]line ТРК (МРК, ГНК) : 12 [12:05:02]line Товар: 2710124130 [12:05:02]line Аи-92-К-5 [12:05:02]line 7.480 * 66.90 [12:05:02]line = 500.41 [12:05:02]line НДС 12% НСП 1% [12:05:02]line > о реализуемом товаре [12:05:02]line ОКРУГЛЕНИЕ: -0.41 [12:05:02]line ИТОГО: 500.00 [12:05:02]line Внесено: 500.00 [12:05:02]line СДАЧА: 0.00 [12:05:02]line НСП 1% : 4.43 [12:05:02]line НДС 12% : 53.14 [12:05:02]line Наличными: 500.00 [12:05:02]line Безнал.: 0.00 [12:05:02]line Место: АЗС № 85 "Партнер Нефть" [12:05:02]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:05:02]line СНО: Общий режим [12:05:02]line Чек 172 20.10.2024 12:05 [12:05:02]line Смена: 193 ФФД: 1.0 [12:05:02]line ЗНМ: 0300000167 [12:05:02]line РНМ: 0000000000156251 [12:05:02]line Версия ККМ: v1.0 [12:05:02]line ФМ: 0000000000963346 [12:05:02]line ФД: 69327 [12:05:02]line ФПД: 247468492838410 [12:05:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120511&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69327&fm=247468492838410&tin=02508201610067®Number=0000000000156251&sum=50000 [12:05:03]OFD Sender: Processing packet 69327 [packets to send 18, broken 17] [12:05:03]ProducePacketName [12:05:03]name=ofd_packets/00069327 [12:05:03]OFD Sender: To server: pG, [12:05:03]CommunicateWithHost lk.salyk.kg:30040 [12:05:03]ConnectInit lk.salyk.kg [12:05:03]written 0, free lines is 4095 [12:05:03]Connected sock=10 [12:05:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F6 F7 07 01 5C 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 F7 F1 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CF 0E 01 00 35 04 06 00 E1 12 3F 9B D6 0A 50 01 FA 9D 7A 3B EC E2 [12:05:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 E6 3C 47 00 8D 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CF 0E 01 00 F4 03 04 00 9E 9B 14 67 B6 04 01 00 00 9A A8 AD A3 5C 1C 71 6B [12:05:03]CommunicateWithHost err = 0 [12:05:03]CheckOFDResponse [12:05:03]1017 (14) - 77093643461234 [12:05:03]1041 (16) - 0000000000963346 [12:05:03]1040 (4) - 69327 [12:05:03]1012 (4) - 20.10.2024 05:56 [12:05:03]1206 (1) - 0 [12:05:03]OFD Sender: Remove packet 69327 [12:05:03]ProducePacketName [12:05:03]name=ofd_packets/00069327 [12:05:03]NVStorageDeleteData [12:05:03]Write to MH i2c: 01 00 00 70 D7 47 [12:05:03]Write i2c OK [12:05:03]MH_I2C_Read... [12:05:03]Read from MH i2c: 01 [12:05:03]MH_I2C_Read... [12:05:03]Read from MH i2c: 01 07 00 [12:05:03]MH_I2C_Read... [12:05:03]Read from MH i2c: 01 07 00 70 D7 00 00 00 00 00 01 0D 5C [12:05:03]RasterBufferAndPrint [12:05:03]line [12:05:03]line [12:05:03]line [12:05:03]line [12:05:03]line [12:05:03]written 0, free lines is 3335 [12:05:03]MH_Cut [12:05:03]Write to MH i2c: D1 01 00 77 D7 01 20 [12:05:03]Write i2c OK [12:05:03]MH_I2C_Read... [12:05:03]Read from MH i2c: D1 [12:05:03]MH_I2C_Read... [12:05:03]Read from MH i2c: D1 01 00 [12:05:03]MH_I2C_Read... [12:05:03]Read from MH i2c: D1 01 00 77 D7 00 1F [12:05:03]Write to MH i2c: 01 00 00 78 D7 4F [12:05:03]Write i2c OK [12:05:03]MH_I2C_Read... [12:05:04]OFD Sender: No OFD packet to send [12:05:04]*** Cut start [12:05:04]*** Partial cut [12:05:04]*** CUTSNS_PIN = 1 [12:05:04]*** CUTSNS_PIN = 0 [12:05:04]*** Brake cut motor [12:05:05]Read from MH i2c: 01 [12:05:05]MH_I2C_Read... [12:05:05]*** Stop cut motor [12:05:05]*** Cut end [12:05:05]Read from MH i2c: 01 07 00 [12:05:05]MH_I2C_Read... [12:05:05]Read from MH i2c: 01 07 00 78 D7 00 00 00 00 00 FF 0F 64 [12:05:05]process_action close_receipt done [12:05:05]requested_data is exist [12:05:05]produce_requested_data [12:05:05]requested_item fm.sn is exist - process it [12:05:05]wFMCommunicate request_size=4 [12:05:05]MH_SAM_APDU [12:05:05]CAPDU: 80 11 00 00 [12:05:05]Write to MH i2c: E2 08 00 79 D7 80 11 00 00 00 00 00 00 CA [12:05:05]Write i2c OK [12:05:05]MH_I2C_Read... [12:05:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:05]Read from MH i2c: E2 [12:05:05]MH_I2C_Read... [12:05:05]Read from MH i2c: E2 17 00 [12:05:05]MH_I2C_Read... [12:05:05]Read from MH i2c: E2 17 00 79 D7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1C [12:05:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:05:05]wFMCommunicate OK [12:05:05]requested_item fd.num is exist - process it [12:05:05]SAM_PROTO_GetFieldsCounters [12:05:05]wFMCommunicate request_size=4 [12:05:05]MH_SAM_APDU [12:05:05]CAPDU: 80 13 00 00 [12:05:05]Write to MH i2c: E2 08 00 7A D7 80 13 00 00 00 00 00 00 CD [12:05:05]Write i2c OK [12:05:05]MH_I2C_Read... [12:05:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:05]Read from MH i2c: E2 [12:05:05]MH_I2C_Read... [12:05:05]Read from MH i2c: E2 62 00 [12:05:05]MH_I2C_Read... [12:05:05]Read from MH i2c: E2 62 00 7A D7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CF 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [12:05:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CF 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:05:05]wFMCommunicate OK [12:05:05]SAM_PROTO_GetFieldsCounters done [12:05:05]requested_item shift.num is exist - process it [12:05:05]requested_item shift.opened is exist - process it [12:05:05]req_shift_opened [12:05:05]FM_GetShiftState [12:05:05]SAM_PROTO_GetShiftState [12:05:05]wFMCommunicate request_size=4 [12:05:05]MH_SAM_APDU [12:05:05]CAPDU: 80 13 01 00 [12:05:05]Write to MH i2c: E2 08 00 7B D7 80 13 01 00 00 00 00 00 CF [12:05:05]Write i2c OK [12:05:05]MH_I2C_Read... [12:05:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:05]Read from MH i2c: E2 [12:05:05]MH_I2C_Read... [12:05:05]Read from MH i2c: E2 0E 00 [12:05:05]MH_I2C_Read... [12:05:05]Read from MH i2c: E2 0E 00 7B D7 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 D5 [12:05:05]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:05:05]wFMCommunicate OK [12:05:05]SAM_PROTO_GetShiftState done [12:05:05]FM_GetShiftState done [12:05:05]req_shift_opened done [12:05:05]requested_item shift.open_date is exist - process it [12:05:05]req_shift_open_date [12:05:05]req_shift_open_date done [12:05:05]produce_requested_data done [12:05:05]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69327,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [12:05:05]process_action_free close_receipt [12:05:05]json_value_free [12:05:05]json_value_free done [12:05:05]process_json_proto returns [12:05:05]Send response to host [12:05:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69327,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [12:05:05]free response buf [12:05:05]execute_script done [12:05:05]execute_script returns [12:05:05]free content buf [12:05:05]Sock 8.Close socket [12:05:05]Sock 8.Thread stoped [12:05:09]OFD Sender: No OFD packet to send [12:05:14]OFD Sender: No OFD packet to send [12:05:19]OFD Sender: No OFD packet to send [12:05:24]OFD Sender: No OFD packet to send [12:05:29]OFD Sender: No OFD packet to send [12:05:34]OFD Sender: No OFD packet to send [12:05:39]OFD Sender: No OFD packet to send [12:05:44]OFD Sender: No OFD packet to send [12:05:49]OFD Sender: No OFD packet to send [12:05:54]OFD Sender: No OFD packet to send [12:05:56]accept exits with 9 [12:05:56]New connection [12:05:56]New thread 3067116900 created [12:05:56]Thread 3067260260 joined [12:05:56]Waiting for new connection... [12:05:56] Sock 9.Parse request [12:05:56]Sock 9.Check first char [12:05:56]Sock 9.First char is OK [12:05:56]request: POST /json_proto HTTP/1.0 [12:05:56]Method: POST [12:05:56]URL: /json_proto [12:05:56]Method is POST - this is cgi request [12:05:56]url: /json_proto [12:05:56]query_string will be loaded in cgi processing [12:05:56]execute_cgi json_proto POST (null) [12:05:56]execute_cgi path=json_proto method=POST [12:05:56]POST find Content-Length [12:05:56]Host: 172.17.50.3:8080 [12:05:56]Content-Length: 680 [12:05:56]Content-Type: application/json [12:05:56] [12:05:56]POST finish read [12:05:56]Found Content-Length = 680 [12:05:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 18.380, "sum" : 1400.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:56]execute_script... [12:05: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)2885046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 18.380, "sum" : 1400.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:56]POST & json_proto [12:05:56]process_json_proto [12:05:56]json parsed OK: [12:05:56]protocol is kg_v1.0 [12:05:56]action value=close_receipt [12:05:56]process_action close_receipt [12:05:56]cmd_close_receipt [12:05:56]MH_GetDate [12:05:56]Write to MH i2c: F0 00 00 7C D7 42 [12:05:56]Write i2c OK [12:05:56]MH_I2C_Read... [12:05:56]Read from MH i2c: F0 [12:05:56]MH_I2C_Read... [12:05:56]Read from MH i2c: F0 09 00 [12:05:56]MH_I2C_Read... [12:05:56]Read from MH i2c: F0 09 00 7C D7 00 2E F2 14 67 6B 98 1E 66 6D [12:05:56]GetLastDocTimeStamp 1729425911 [12:05:56]current date 1729425966 [12:05:56]FM_GetShiftState [12:05:56]SAM_PROTO_GetShiftState [12:05:56]wFMCommunicate request_size=4 [12:05:56]MH_SAM_APDU [12:05:56]CAPDU: 80 13 01 00 [12:05:56]Write to MH i2c: E2 08 00 7D D7 80 13 01 00 00 00 00 00 D1 [12:05:56]Write i2c OK [12:05:56]MH_I2C_Read... [12:05:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:56]Read from MH i2c: E2 [12:05:56]MH_I2C_Read... [12:05:56]Read from MH i2c: E2 0E 00 [12:05:56]MH_I2C_Read... [12:05:56]Read from MH i2c: E2 0E 00 7D D7 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 D7 [12:05:56]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:05:56]wFMCommunicate OK [12:05:56]SAM_PROTO_GetShiftState done [12:05:56]FM_GetShiftState done [12:05:56]opened in 1729383220 [12:05:56]opened+sec_in_day 1729469620 [12:05:56]quantity*price = 140055 [12:05:56]sum+1 = 140057 [12:05:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.73 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 173 20.10.2024 12:06 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69328 ФПД: 188553941002809 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120606&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69328&fm=188553941002809&tin=02508201610067®Number=0000000000156251&sum=140000 [12:05:57]StoreToDocumentArchive [12:05:57]shift 193 fd 69328 [12:05:57]save to /storage/0193/doc_00069328 [12:05:57]save last doc name /storage/0193/doc_00069328 to /storage/kkm_last_doc_name [12:05:57]save OK [12:05:57]Clear old archive folders... [12:05:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:05:57]tlvbuf is 008908D0 [12:05:57]SAM_PROTO_ClearQueue [12:05:57]wFMCommunicate request_size=4 [12:05:57]MH_SAM_APDU [12:05:57]CAPDU: 80 09 00 00 [12:05:57]Write to MH i2c: E2 08 00 8A D7 80 09 00 00 00 00 00 00 D3 [12:05:57]Write i2c OK [12:05:57]MH_I2C_Read... [12:05:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:05:57]Read from MH i2c: E2 [12:05:57]MH_I2C_Read... [12:05:57]Read from MH i2c: E2 03 00 [12:05:57]MH_I2C_Read... [12:05:57]Read from MH i2c: E2 03 00 8A D7 00 90 00 D5 [12:05:57]RAPDU: 90 00 [12:05:57]wFMCommunicate OK [12:05:57]SAM_PROTO_ClearQueue done [12:05:57]KKMCreateOFDPacket [12:05:57]OFDProtocolAddRootSTLVToBuf [12:05:57]FM_MakeSignedData [12:05:57]FM_MakeSignedData [12:05:57]SAM_PROTO_SignData [12:05:57]wFMCommunicate request_size=4 [12:05:57]MH_SAM_APDU [12:05:57]CAPDU: 80 0D 01 02 [12:05:57]Write to MH i2c: E2 08 00 8B D7 80 0D 01 02 00 00 00 00 DB [12:05:57]Write i2c OK [12:05:57]MH_I2C_Read... [12:05:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:05:57]Read from MH i2c: E2 [12:05:57]MH_I2C_Read... [12:05:57]Read from MH i2c: E2 03 00 [12:05:57]MH_I2C_Read... [12:05:57]Read from MH i2c: E2 03 00 8B D7 00 90 00 D6 [12:05:57]RAPDU: 90 00 [12:05:57]wFMCommunicate OK [12:05:57]wFMCommunicate request_size=255 [12:05:57]MH_SAM_APDU [12:05:57]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 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 2E F2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D0 0E 01 00 35 04 06 00 AB 7D 22 AC [12:05:57]Write to MH i2c: E2 02 01 8C D7 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 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 2E F2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D0 0E 01 00 35 04 06 00 AB 7D 22 AC 00 00 77 [12:05:57]Write i2c OK [12:05:57]MH_I2C_Read... [12:05:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:57]Read from MH i2c: E2 [12:05:57]MH_I2C_Read... [12:05:57]Read from MH i2c: E2 03 00 [12:05:57]MH_I2C_Read... [12:05:57]Read from MH i2c: E2 03 00 8C D7 00 90 00 D7 [12:05:57]RAPDU: 90 00 [12:05:57]wFMCommunicate OK [12:05:57]wFMCommunicate request_size=7 [12:05:57]MH_SAM_APDU [12:05:57]CAPDU: 80 0D 02 02 02 AA 39 [12:05:57]Write to MH i2c: E2 0A 00 8D D7 80 0D 02 02 02 00 AA 39 00 00 C5 [12:05:57]Write i2c OK [12:05:57]MH_I2C_Read... [12:05:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:57]Read from MH i2c: E2 [12:05:57]MH_I2C_Read... [12:05:57]Read from MH i2c: E2 03 00 [12:05:57]MH_I2C_Read... [12:05:57]Read from MH i2c: E2 03 00 8D D7 00 90 00 D8 [12:05:57]RAPDU: 90 00 [12:05:57]wFMCommunicate OK [12:05:57]wFMCommunicate request_size=4 [12:05:57]MH_SAM_APDU [12:05:57]CAPDU: 80 0D 03 02 [12:05:57]Write to MH i2c: E2 08 00 8E D7 80 0D 03 02 00 00 00 00 E0 [12:05:57]Write i2c OK [12:05:57]MH_I2C_Read... [12:05:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:05:57]Read from MH i2c: E2 [12:05:57]MH_I2C_Read... [12:05:57]Read from MH i2c: E2 0B 00 [12:05:57]MH_I2C_Read... [12:05:57]Read from MH i2c: E2 0B 00 8E D7 00 D6 73 27 9D 4C 93 E7 5A 90 00 0E [12:05:57]RAPDU: D6 73 27 9D 4C 93 E7 5A 90 00 [12:05:57]wFMCommunicate OK [12:05:57]SAM_PROTO_SignData done [12:05:57]FM_MakeSignedData done [12:05:57]CreateOFDProtocolMessage [12:05:57]wFMCommunicate request_size=4 [12:05:57]MH_SAM_APDU [12:05:57]CAPDU: 80 11 00 00 [12:05:57]Write to MH i2c: E2 08 00 8F D7 80 11 00 00 00 00 00 00 E0 [12:05:57]Write i2c OK [12:05:57]MH_I2C_Read... [12:05:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:57]Read from MH i2c: E2 [12:05:57]MH_I2C_Read... [12:05:57]Read from MH i2c: E2 17 00 [12:05:57]MH_I2C_Read... [12:05:57]Read from MH i2c: E2 17 00 8F D7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 32 [12:05:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:05:57]wFMCommunicate OK [12:05:57]CreateOFDProtocolMessage done [12:05:57]OFDSenderStorePacket 69328 [12:05:57]StoreOFDPacket docnum=69328 [12:05:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 26 FA 04 01 C8 55 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 2E F2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D0 0E 01 00 35 04 06 00 AB 7D 22 AC AA 39 D6 73 27 9D 4C 93 E7 5A [12:05:57]CheckFolder [12:05:57]dirname=/storage/ofd_packets [12:05:57]CheckFolder done [12:05:57]ProducePacketName [12:05:57]name=ofd_packets/00069328 [12:05:57]NVStorageSaveData ofd_packets/00069328 [12:05:57]File name is /storage/ofd_packets/00069328 [12:05:57]Write 298 bytes [12:05:57]NVStorageSaveData done [12:05:57]OFDSenderStorePacket done [12:05:57]KKMCreateOFDPacket done [12:05:57]NVStorageSaveData kkm_last_timestamp [12:05:57]File name is /storage/kkm_last_timestamp [12:05:57]Write 4 bytes [12:05:57]NVStorageSaveData done [12:05:57]ExternCall_PrintAddStr [12:05:57]wPrintStart [12:05:57]Write to MH i2c: 01 00 00 90 D7 67 [12:05:57]Write i2c OK [12:05:57]MH_I2C_Read... [12:05:57]Read from MH i2c: 01 [12:05:57]MH_I2C_Read... [12:05:57]Read from MH i2c: 01 07 00 [12:05:57]MH_I2C_Read... [12:05:57]Read from MH i2c: 01 07 00 90 D7 00 00 00 00 00 FF 0F 7C [12:05:57]RasterBufferAndPrint [12:05:57]line Счет N : (1)2885046 [12:05:57]line ИНН: 02508201610067 [12:05:57]line Контрольно-Кассовый Чек [12:05:57]line ПРОДАЖА [12:05:57]line ТРК (МРК, ГНК) : 51 [12:05:57]line Товар: 2710194210 [12:05:57]line ДТ-К-5 [12:05:57]line 18.380 * 76.20 [12:05:57]line = 1400.56 [12:05:57]line НДС 12% НСП 1% [12:05:57]line > о реализуемом товаре [12:05:57]line ОКРУГЛЕНИЕ: -0.56 [12:05:57]line ИТОГО: 1400.00 [12:05:57]line Внесено: 1400.00 [12:05:57]line СДАЧА: 0.00 [12:05:57]line НСП 1% : 12.39 [12:05:57]line НДС 12% : 148.73 [12:05:57]line Наличными: 1400.00 [12:05:57]line Безнал.: 0.00 [12:05:57]line Место: АЗС № 85 "Партнер Нефть" [12:05:57]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:05:57]line СНО: Общий режим [12:05:57]line Чек 173 20.10.2024 12:06 [12:05:57]line Смена: 193 ФФД: 1.0 [12:05:57]line ЗНМ: 0300000167 [12:05:57]line РНМ: 0000000000156251 [12:05:57]line Версия ККМ: v1.0 [12:05:57]line ФМ: 0000000000963346 [12:05:57]line ФД: 69328 [12:05:57]line ФПД: 188553941002809 [12:05:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120606&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69328&fm=188553941002809&tin=02508201610067®Number=0000000000156251&sum=140000 [12:05:58]OFD Sender: Processing packet 69328 [packets to send 18, broken 17] [12:05:58]ProducePacketName [12:05:58]name=ofd_packets/00069328 [12:05:58]OFD Sender: To server: pG, [12:05:58]CommunicateWithHost lk.salyk.kg:30040 [12:05:58]ConnectInit lk.salyk.kg [12:05:58]written 0, free lines is 4095 [12:05:58]Connected sock=11 [12:05:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 26 FA 04 01 C8 55 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 2E F2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D0 0E 01 00 35 04 06 00 AB 7D 22 AC AA 39 D6 73 27 9D 4C 93 E7 5A [12:05:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 52 FA 47 00 2D B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D0 0E 01 00 F4 03 04 00 D5 9B 14 67 B6 04 01 00 00 43 0A 21 58 27 FE CF E9 [12:05:58]CommunicateWithHost err = 0 [12:05:58]CheckOFDResponse [12:05:58]1017 (14) - 77093643461234 [12:05:58]1041 (16) - 0000000000963346 [12:05:58]1040 (4) - 69328 [12:05:58]1012 (4) - 20.10.2024 05:57 [12:05:58]1206 (1) - 0 [12:05:58]OFD Sender: Remove packet 69328 [12:05:58]ProducePacketName [12:05:58]name=ofd_packets/00069328 [12:05:58]NVStorageDeleteData [12:05:58]Write to MH i2c: 01 00 00 BB D7 92 [12:05:58]Write i2c OK [12:05:58]MH_I2C_Read... [12:05:58]Read from MH i2c: 01 [12:05:58]MH_I2C_Read... [12:05:58]Read from MH i2c: 01 07 00 [12:05:58]MH_I2C_Read... [12:05:58]Read from MH i2c: 01 07 00 BB D7 00 00 00 00 00 F7 0C 9C [12:05:58]RasterBufferAndPrint [12:05:58]line [12:05:58]line [12:05:58]line [12:05:58]line [12:05:58]line [12:05:58]written 0, free lines is 3325 [12:05:58]MH_Cut [12:05:58]Write to MH i2c: D1 01 00 C2 D7 01 6B [12:05:58]Write i2c OK [12:05:58]MH_I2C_Read... [12:05:58]Read from MH i2c: D1 [12:05:58]MH_I2C_Read... [12:05:58]Read from MH i2c: D1 01 00 [12:05:58]MH_I2C_Read... [12:05:58]Read from MH i2c: D1 01 00 C2 D7 00 6A [12:05:58]Write to MH i2c: 01 00 00 C3 D7 9A [12:05:58]Write i2c OK [12:05:58]MH_I2C_Read... [12:05:58]OFD Sender: No OFD packet to send [12:05:59]*** Cut start [12:05:59]*** Partial cut [12:05:59]*** CUTSNS_PIN = 1 [12:05:59]*** CUTSNS_PIN = 0 [12:05:59]*** Brake cut motor [12:05:59]Read from MH i2c: 01 [12:05:59]MH_I2C_Read... [12:05:59]*** Stop cut motor [12:05:59]*** Cut end [12:05:59]Read from MH i2c: 01 07 00 [12:05:59]MH_I2C_Read... [12:05:59]Read from MH i2c: 01 07 00 C3 D7 00 00 00 00 00 FF 0F AF [12:05:59]process_action close_receipt done [12:05:59]requested_data is exist [12:05:59]produce_requested_data [12:05:59]requested_item fm.sn is exist - process it [12:05:59]wFMCommunicate request_size=4 [12:05:59]MH_SAM_APDU [12:05:59]CAPDU: 80 11 00 00 [12:05:59]Write to MH i2c: E2 08 00 C4 D7 80 11 00 00 00 00 00 00 15 [12:05:59]Write i2c OK [12:05:59]MH_I2C_Read... [12:05:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:59]Read from MH i2c: E2 [12:05:59]MH_I2C_Read... [12:05:59]Read from MH i2c: E2 17 00 [12:05:59]MH_I2C_Read... [12:05:59]Read from MH i2c: E2 17 00 C4 D7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 67 [12:05:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:05:59]wFMCommunicate OK [12:05:59]requested_item fd.num is exist - process it [12:05:59]SAM_PROTO_GetFieldsCounters [12:05:59]wFMCommunicate request_size=4 [12:05:59]MH_SAM_APDU [12:05:59]CAPDU: 80 13 00 00 [12:05:59]Write to MH i2c: E2 08 00 C5 D7 80 13 00 00 00 00 00 00 18 [12:05:59]Write i2c OK [12:05:59]MH_I2C_Read... [12:06:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:00]Read from MH i2c: E2 [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: E2 62 00 [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: E2 62 00 C5 D7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D0 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [12:06:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D0 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:06:00]wFMCommunicate OK [12:06:00]SAM_PROTO_GetFieldsCounters done [12:06:00]requested_item shift.num is exist - process it [12:06:00]requested_item shift.opened is exist - process it [12:06:00]req_shift_opened [12:06:00]FM_GetShiftState [12:06:00]SAM_PROTO_GetShiftState [12:06:00]wFMCommunicate request_size=4 [12:06:00]MH_SAM_APDU [12:06:00]CAPDU: 80 13 01 00 [12:06:00]Write to MH i2c: E2 08 00 C6 D7 80 13 01 00 00 00 00 00 1A [12:06:00]Write i2c OK [12:06:00]MH_I2C_Read... [12:06:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:00]Read from MH i2c: E2 [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: E2 0E 00 [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: E2 0E 00 C6 D7 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 20 [12:06:00]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:06:00]wFMCommunicate OK [12:06:00]SAM_PROTO_GetShiftState done [12:06:00]FM_GetShiftState done [12:06:00]req_shift_opened done [12:06:00]requested_item shift.open_date is exist - process it [12:06:00]req_shift_open_date [12:06:00]req_shift_open_date done [12:06:00]produce_requested_data done [12:06:00]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69328,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [12:06:00]process_action_free close_receipt [12:06:00]json_value_free [12:06:00]json_value_free done [12:06:00]process_json_proto returns [12:06:00]Send response to host [12:06:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69328,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [12:06:00]free response buf [12:06:00]execute_script done [12:06:00]execute_script returns [12:06:00]free content buf [12:06:00]Sock 9.Close socket [12:06:00]Sock 9.Thread stoped [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:16]accept exits with 8 [12:06:16]New connection [12:06:16]New thread 3067260260 created [12:06:16]Thread 3067116900 joined [12:06:16]Waiting for new connection... [12:06:16] Sock 8.Parse request [12:06:16]Sock 8.Check first char [12:06:16]Sock 8.First char is OK [12:06:16]request: POST /json_proto HTTP/1.0 [12:06:16]Method: POST [12:06:16]URL: /json_proto [12:06:16]Method is POST - this is cgi request [12:06:16]url: /json_proto [12:06:16]query_string will be loaded in cgi processing [12:06:16]execute_cgi json_proto POST (null) [12:06:16]execute_cgi path=json_proto method=POST [12:06:16]POST find Content-Length [12:06:16]Host: 172.17.50.3:8080 [12:06:16]Content-Length: 683 [12:06:16]Content-Type: application/json [12:06:16] [12:06:16]POST finish read [12:06:16]Found Content-Length = 683 [12:06:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:16]execute_script... [12:06: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)2885047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:16]POST & json_proto [12:06:16]process_json_proto [12:06:16]json parsed OK: [12:06:16]protocol is kg_v1.0 [12:06:16]action value=close_receipt [12:06:16]process_action close_receipt [12:06:16]cmd_close_receipt [12:06:16]MH_GetDate [12:06:16]Write to MH i2c: F0 00 00 C7 D7 8D [12:06:16]Write i2c OK [12:06:16]MH_I2C_Read... [12:06:16]Read from MH i2c: F0 [12:06:16]MH_I2C_Read... [12:06:16]Read from MH i2c: F0 09 00 [12:06:16]MH_I2C_Read... [12:06:16]Read from MH i2c: F0 09 00 C7 D7 00 42 F2 14 67 6B 98 1E 66 CC [12:06:16]GetLastDocTimeStamp 1729425966 [12:06:16]current date 1729425986 [12:06:16]FM_GetShiftState [12:06:16]SAM_PROTO_GetShiftState [12:06:16]wFMCommunicate request_size=4 [12:06:16]MH_SAM_APDU [12:06:16]CAPDU: 80 13 01 00 [12:06:16]Write to MH i2c: E2 08 00 C8 D7 80 13 01 00 00 00 00 00 1C [12:06:16]Write i2c OK [12:06:16]MH_I2C_Read... [12:06:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:16]Read from MH i2c: E2 [12:06:16]MH_I2C_Read... [12:06:16]Read from MH i2c: E2 0E 00 [12:06:16]MH_I2C_Read... [12:06:16]Read from MH i2c: E2 0E 00 C8 D7 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 22 [12:06:16]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:06:16]wFMCommunicate OK [12:06:16]SAM_PROTO_GetShiftState done [12:06:16]FM_GetShiftState done [12:06:16]opened in 1729383220 [12:06:16]opened+sec_in_day 1729469620 [12:06:16]quantity*price = 100021 [12:06:16]sum+1 = 100023 [12:06:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 174 20.10.2024 12:06 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69329 ФПД: 262745501422967 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120626&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69329&fm=262745501422967&tin=02508201610067®Number=0000000000156251&sum=100000 [12:06:17]StoreToDocumentArchive [12:06:17]shift 193 fd 69329 [12:06:17]save to /storage/0193/doc_00069329 [12:06:17]save last doc name /storage/0193/doc_00069329 to /storage/kkm_last_doc_name [12:06:17]save OK [12:06:17]Clear old archive folders... [12:06:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:06:17]tlvbuf is 00583C90 [12:06:17]SAM_PROTO_ClearQueue [12:06:17]wFMCommunicate request_size=4 [12:06:17]MH_SAM_APDU [12:06:17]CAPDU: 80 09 00 00 [12:06:17]Write to MH i2c: E2 08 00 D5 D7 80 09 00 00 00 00 00 00 1E [12:06:17]Write i2c OK [12:06:17]MH_I2C_Read... [12:06:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:06:17]Read from MH i2c: E2 [12:06:17]MH_I2C_Read... [12:06:17]Read from MH i2c: E2 03 00 [12:06:17]MH_I2C_Read... [12:06:17]Read from MH i2c: E2 03 00 D5 D7 00 90 00 20 [12:06:17]RAPDU: 90 00 [12:06:17]wFMCommunicate OK [12:06:17]SAM_PROTO_ClearQueue done [12:06:17]KKMCreateOFDPacket [12:06:17]OFDProtocolAddRootSTLVToBuf [12:06:17]FM_MakeSignedData [12:06:17]FM_MakeSignedData [12:06:17]SAM_PROTO_SignData [12:06:17]wFMCommunicate request_size=4 [12:06:17]MH_SAM_APDU [12:06:17]CAPDU: 80 0D 01 02 [12:06:17]Write to MH i2c: E2 08 00 D6 D7 80 0D 01 02 00 00 00 00 26 [12:06:17]Write i2c OK [12:06:17]MH_I2C_Read... [12:06:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:06:17]Read from MH i2c: E2 [12:06:17]MH_I2C_Read... [12:06:17]Read from MH i2c: E2 03 00 [12:06:17]MH_I2C_Read... [12:06:17]Read from MH i2c: E2 03 00 D6 D7 00 90 00 21 [12:06:17]RAPDU: 90 00 [12:06:17]wFMCommunicate OK [12:06:17]wFMCommunicate request_size=255 [12:06:17]MH_SAM_APDU [12:06:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 42 F2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D1 0E 01 00 35 04 06 00 EE [12:06:17]Write to MH i2c: E2 02 01 D7 D7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 42 F2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D1 0E 01 00 35 04 06 00 EE 00 00 B8 [12:06:17]Write i2c OK [12:06:17]MH_I2C_Read... [12:06:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:18]Read from MH i2c: E2 [12:06:18]MH_I2C_Read... [12:06:18]Read from MH i2c: E2 03 00 [12:06:18]MH_I2C_Read... [12:06:18]Read from MH i2c: E2 03 00 D7 D7 00 90 00 22 [12:06:18]RAPDU: 90 00 [12:06:18]wFMCommunicate OK [12:06:18]wFMCommunicate request_size=10 [12:06:18]MH_SAM_APDU [12:06:18]CAPDU: 80 0D 02 02 05 F7 34 47 55 77 [12:06:18]Write to MH i2c: E2 0D 00 D8 D7 80 0D 02 02 05 00 F7 34 47 55 77 00 00 71 [12:06:18]Write i2c OK [12:06:18]MH_I2C_Read... [12:06:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:18]Read from MH i2c: E2 [12:06:18]MH_I2C_Read... [12:06:18]Read from MH i2c: E2 03 00 [12:06:18]MH_I2C_Read... [12:06:18]Read from MH i2c: E2 03 00 D8 D7 00 90 00 23 [12:06:18]RAPDU: 90 00 [12:06:18]wFMCommunicate OK [12:06:18]wFMCommunicate request_size=4 [12:06:18]MH_SAM_APDU [12:06:18]CAPDU: 80 0D 03 02 [12:06:18]Write to MH i2c: E2 08 00 D9 D7 80 0D 03 02 00 00 00 00 2B [12:06:18]Write i2c OK [12:06:18]MH_I2C_Read... [12:06:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:06:18]Read from MH i2c: E2 [12:06:18]MH_I2C_Read... [12:06:18]Read from MH i2c: E2 0B 00 [12:06:18]MH_I2C_Read... [12:06:18]Read from MH i2c: E2 0B 00 D9 D7 00 59 89 A8 3D 9A 0B 67 2A 90 00 29 [12:06:18]RAPDU: 59 89 A8 3D 9A 0B 67 2A 90 00 [12:06:18]wFMCommunicate OK [12:06:18]SAM_PROTO_SignData done [12:06:18]FM_MakeSignedData done [12:06:18]CreateOFDProtocolMessage [12:06:18]wFMCommunicate request_size=4 [12:06:18]MH_SAM_APDU [12:06:18]CAPDU: 80 11 00 00 [12:06:18]Write to MH i2c: E2 08 00 DA D7 80 11 00 00 00 00 00 00 2B [12:06:18]Write i2c OK [12:06:18]MH_I2C_Read... [12:06:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:18]Read from MH i2c: E2 [12:06:18]MH_I2C_Read... [12:06:18]Read from MH i2c: E2 17 00 [12:06:18]MH_I2C_Read... [12:06:18]Read from MH i2c: E2 17 00 DA D7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7D [12:06:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:06:18]wFMCommunicate OK [12:06:18]CreateOFDProtocolMessage done [12:06:18]OFDSenderStorePacket 69329 [12:06:18]StoreOFDPacket docnum=69329 [12:06:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 56 6B 07 01 7B 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 42 F2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D1 0E 01 00 35 04 06 00 EE F7 34 47 55 77 59 89 A8 3D 9A 0B 67 2A [12:06:18]CheckFolder [12:06:18]dirname=/storage/ofd_packets [12:06:18]CheckFolder done [12:06:18]ProducePacketName [12:06:18]name=ofd_packets/00069329 [12:06:18]NVStorageSaveData ofd_packets/00069329 [12:06:18]File name is /storage/ofd_packets/00069329 [12:06:18]Write 301 bytes [12:06:18]NVStorageSaveData done [12:06:18]OFDSenderStorePacket done [12:06:18]KKMCreateOFDPacket done [12:06:18]NVStorageSaveData kkm_last_timestamp [12:06:18]File name is /storage/kkm_last_timestamp [12:06:18]Write 4 bytes [12:06:18]NVStorageSaveData done [12:06:18]ExternCall_PrintAddStr [12:06:18]wPrintStart [12:06:18]Write to MH i2c: 01 00 00 DB D7 B2 [12:06:18]Write i2c OK [12:06:18]MH_I2C_Read... [12:06:18]Read from MH i2c: 01 [12:06:18]MH_I2C_Read... [12:06:18]Read from MH i2c: 01 07 00 [12:06:18]MH_I2C_Read... [12:06:18]Read from MH i2c: 01 07 00 DB D7 00 00 00 00 00 FF 0F C7 [12:06:18]RasterBufferAndPrint [12:06:18]line Счет N : (1)2885047 [12:06:18]line ИНН: 02508201610067 [12:06:18]line Контрольно-Кассовый Чек [12:06:18]line ПРОДАЖА [12:06:18]line ТРК (МРК, ГНК) : 43 [12:06:18]line Товар: 2710124500 [12:06:18]line Аи-95-К-5 [12:06:18]line 13.480 * 74.20 [12:06:18]line = 1000.22 [12:06:18]line НДС 12% НСП 1% [12:06:18]line > о реализуемом товаре [12:06:18]line ОКРУГЛЕНИЕ: -0.22 [12:06:18]line ИТОГО: 1000.00 [12:06:18]line Внесено: 1000.00 [12:06:18]line СДАЧА: 0.00 [12:06:18]line НСП 1% : 8.85 [12:06:18]line НДС 12% : 106.22 [12:06:18]line Наличными: 1000.00 [12:06:18]line Безнал.: 0.00 [12:06:18]line Место: АЗС № 85 "Партнер Нефть" [12:06:18]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:06:18]line СНО: Общий режим [12:06:18]line Чек 174 20.10.2024 12:06 [12:06:18]line Смена: 193 ФФД: 1.0 [12:06:18]line ЗНМ: 0300000167 [12:06:18]line РНМ: 0000000000156251 [12:06:18]line Версия ККМ: v1.0 [12:06:18]line ФМ: 0000000000963346 [12:06:18]line ФД: 69329 [12:06:18]line ФПД: 262745501422967 [12:06:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120626&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69329&fm=262745501422967&tin=02508201610067®Number=0000000000156251&sum=100000 [12:06:18]OFD Sender: Processing packet 69329 [packets to send 18, broken 17] [12:06:18]ProducePacketName [12:06:18]name=ofd_packets/00069329 [12:06:18]OFD Sender: To server: pG, [12:06:18]CommunicateWithHost lk.salyk.kg:30040 [12:06:18]ConnectInit lk.salyk.kg [12:06:18]written 0, free lines is 4095 [12:06:18]Connected sock=10 [12:06:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 56 6B 07 01 7B 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 42 F2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D1 0E 01 00 35 04 06 00 EE F7 34 47 55 77 59 89 A8 3D 9A 0B 67 2A [12:06:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 58 A6 47 00 3E E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D1 0E 01 00 F4 03 04 00 E9 9B 14 67 B6 04 01 00 00 6A 47 1F E3 0C 9C 5F 8B [12:06:18]CommunicateWithHost err = 0 [12:06:18]CheckOFDResponse [12:06:18]1017 (14) - 77093643461234 [12:06:18]1041 (16) - 0000000000963346 [12:06:18]1040 (4) - 69329 [12:06:18]1012 (4) - 20.10.2024 05:58 [12:06:18]1206 (1) - 0 [12:06:18]OFD Sender: Remove packet 69329 [12:06:18]ProducePacketName [12:06:18]name=ofd_packets/00069329 [12:06:18]NVStorageDeleteData [12:06:19]Write to MH i2c: 01 00 00 06 D8 DE [12:06:19]Write i2c OK [12:06:19]MH_I2C_Read... [12:06:19]Read from MH i2c: 01 [12:06:19]MH_I2C_Read... [12:06:19]Read from MH i2c: 01 07 00 [12:06:19]MH_I2C_Read... [12:06:19]Read from MH i2c: 01 07 00 06 D8 00 00 00 00 00 F4 0C E5 [12:06:19]RasterBufferAndPrint [12:06:19]line [12:06:19]line [12:06:19]line [12:06:19]line [12:06:19]line [12:06:19]written 0, free lines is 3322 [12:06:19]MH_Cut [12:06:19]Write to MH i2c: D1 01 00 0D D8 01 B7 [12:06:19]Write i2c OK [12:06:19]MH_I2C_Read... [12:06:19]Read from MH i2c: D1 [12:06:19]MH_I2C_Read... [12:06:19]Read from MH i2c: D1 01 00 [12:06:19]MH_I2C_Read... [12:06:19]Read from MH i2c: D1 01 00 0D D8 00 B6 [12:06:19]Write to MH i2c: 01 00 00 0E D8 E6 [12:06:19]Write i2c OK [12:06:19]MH_I2C_Read... [12:06:19]OFD Sender: No OFD packet to send [12:06:19]*** Cut start [12:06:19]*** Partial cut [12:06:19]*** CUTSNS_PIN = 1 [12:06:19]*** CUTSNS_PIN = 0 [12:06:20]*** Brake cut motor [12:06:20]Read from MH i2c: 01 [12:06:20]MH_I2C_Read... [12:06:20]*** Stop cut motor [12:06:20]*** Cut end [12:06:20]Read from MH i2c: 01 07 00 [12:06:20]MH_I2C_Read... [12:06:20]Read from MH i2c: 01 07 00 0E D8 00 00 00 00 00 FF 0F FB [12:06:20]process_action close_receipt done [12:06:20]requested_data is exist [12:06:20]produce_requested_data [12:06:20]requested_item fm.sn is exist - process it [12:06:20]wFMCommunicate request_size=4 [12:06:20]MH_SAM_APDU [12:06:20]CAPDU: 80 11 00 00 [12:06:20]Write to MH i2c: E2 08 00 0F D8 80 11 00 00 00 00 00 00 61 [12:06:20]Write i2c OK [12:06:20]MH_I2C_Read... [12:06:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:20]Read from MH i2c: E2 [12:06:20]MH_I2C_Read... [12:06:20]Read from MH i2c: E2 17 00 [12:06:20]MH_I2C_Read... [12:06:20]Read from MH i2c: E2 17 00 0F D8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B3 [12:06:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:06:20]wFMCommunicate OK [12:06:20]requested_item fd.num is exist - process it [12:06:20]SAM_PROTO_GetFieldsCounters [12:06:20]wFMCommunicate request_size=4 [12:06:20]MH_SAM_APDU [12:06:20]CAPDU: 80 13 00 00 [12:06:20]Write to MH i2c: E2 08 00 10 D8 80 13 00 00 00 00 00 00 64 [12:06:20]Write i2c OK [12:06:20]MH_I2C_Read... [12:06:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:20]Read from MH i2c: E2 [12:06:20]MH_I2C_Read... [12:06:20]Read from MH i2c: E2 62 00 [12:06:20]MH_I2C_Read... [12:06:20]Read from MH i2c: E2 62 00 10 D8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D1 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [12:06:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D1 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:06:20]wFMCommunicate OK [12:06:20]SAM_PROTO_GetFieldsCounters done [12:06:20]requested_item shift.num is exist - process it [12:06:20]requested_item shift.opened is exist - process it [12:06:20]req_shift_opened [12:06:20]FM_GetShiftState [12:06:20]SAM_PROTO_GetShiftState [12:06:20]wFMCommunicate request_size=4 [12:06:20]MH_SAM_APDU [12:06:20]CAPDU: 80 13 01 00 [12:06:20]Write to MH i2c: E2 08 00 11 D8 80 13 01 00 00 00 00 00 66 [12:06:20]Write i2c OK [12:06:20]MH_I2C_Read... [12:06:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:20]Read from MH i2c: E2 [12:06:20]MH_I2C_Read... [12:06:20]Read from MH i2c: E2 0E 00 [12:06:20]MH_I2C_Read... [12:06:20]Read from MH i2c: E2 0E 00 11 D8 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 6C [12:06:20]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:06:20]wFMCommunicate OK [12:06:20]SAM_PROTO_GetShiftState done [12:06:20]FM_GetShiftState done [12:06:20]req_shift_opened done [12:06:20]requested_item shift.open_date is exist - process it [12:06:20]req_shift_open_date [12:06:20]req_shift_open_date done [12:06:20]produce_requested_data done [12:06:20]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69329,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [12:06:20]process_action_free close_receipt [12:06:20]json_value_free [12:06:20]json_value_free done [12:06:20]process_json_proto returns [12:06:20]Send response to host [12:06:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69329,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [12:06:20]free response buf [12:06:20]execute_script done [12:06:20]execute_script returns [12:06:20]free content buf [12:06:20]Sock 8.Close socket [12:06:20]Sock 8.Thread stoped [12:06:24]OFD Sender: No OFD packet to send [12:06:29]OFD Sender: No OFD packet to send [12:06:34]OFD Sender: No OFD packet to send [12:06:39]OFD Sender: No OFD packet to send [12:06:44]OFD Sender: No OFD packet to send [12:06:49]OFD Sender: No OFD packet to send [12:06:54]OFD Sender: No OFD packet to send [12:06:59]OFD Sender: No OFD packet to send [12:07:04]OFD Sender: No OFD packet to send [12:07:09]OFD Sender: No OFD packet to send [12:07:14]OFD Sender: No OFD packet to send [12:07:19]OFD Sender: No OFD packet to send [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:08:59]accept exits with 9 [12:08:59]New connection [12:08:59]New thread 3067116900 created [12:08:59]Thread 3067260260 joined [12:08:59]Waiting for new connection... [12:08:59] Sock 9.Parse request [12:08:59]Sock 9.Check first char [12:08:59]Sock 9.First char is OK [12:08:59]request: POST /json_proto HTTP/1.0 [12:08:59]Method: POST [12:08:59]URL: /json_proto [12:08:59]Method is POST - this is cgi request [12:08:59]url: /json_proto [12:08:59]query_string will be loaded in cgi processing [12:08:59]execute_cgi json_proto POST (null) [12:08:59]execute_cgi path=json_proto method=POST [12:08:59]POST find Content-Length [12:08:59]Host: 172.17.50.3:8080 [12:08:59]Content-Length: 689 [12:08:59]Content-Type: application/json [12:08:59] [12:08:59]POST finish read [12:08:59]Found Content-Length = 689 [12:08:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:59]execute_script... [12:08: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)2885048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:59]POST & json_proto [12:08:59]process_json_proto [12:08:59]json parsed OK: [12:08:59]protocol is kg_v1.0 [12:08:59]action value=close_receipt [12:08:59]process_action close_receipt [12:08:59]cmd_close_receipt [12:08:59]MH_GetDate [12:08:59]Write to MH i2c: F0 00 00 12 D8 D9 [12:08:59]Write i2c OK [12:08:59]MH_I2C_Read... [12:08:59]Read from MH i2c: F0 [12:08:59]MH_I2C_Read... [12:08:59]Read from MH i2c: F0 09 00 [12:08:59]MH_I2C_Read... [12:08:59]Read from MH i2c: F0 09 00 12 D8 00 E6 F2 14 67 6B 98 1E 66 BC [12:08:59]GetLastDocTimeStamp 1729425986 [12:08:59]current date 1729426150 [12:08:59]FM_GetShiftState [12:08:59]SAM_PROTO_GetShiftState [12:08:59]wFMCommunicate request_size=4 [12:08:59]MH_SAM_APDU [12:08:59]CAPDU: 80 13 01 00 [12:08:59]Write to MH i2c: E2 08 00 13 D8 80 13 01 00 00 00 00 00 68 [12:08:59]Write i2c OK [12:08:59]MH_I2C_Read... [12:09:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:00]Read from MH i2c: E2 [12:09:00]MH_I2C_Read... [12:09:00]Read from MH i2c: E2 0E 00 [12:09:00]MH_I2C_Read... [12:09:00]Read from MH i2c: E2 0E 00 13 D8 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 6E [12:09:00]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:09:00]wFMCommunicate OK [12:09:00]SAM_PROTO_GetShiftState done [12:09:00]FM_GetShiftState done [12:09:00]opened in 1729383220 [12:09:00]opened+sec_in_day 1729469620 [12:09:00]quantity*price = 100051 [12:09:00]sum+1 = 100052 [12:09:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 175 20.10.2024 12:09 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69330 ФПД: 114092096066937 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120910&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69330&fm=114092096066937&tin=02508201610067®Number=0000000000156251&sum=100000 [12:09:01]StoreToDocumentArchive [12:09:01]shift 193 fd 69330 [12:09:01]save to /storage/0193/doc_00069330 [12:09:01]save last doc name /storage/0193/doc_00069330 to /storage/kkm_last_doc_name [12:09:01]save OK [12:09:01]Clear old archive folders... [12:09:01]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:09:01]tlvbuf is 0079E6B0 [12:09:01]SAM_PROTO_ClearQueue [12:09:01]wFMCommunicate request_size=4 [12:09:01]MH_SAM_APDU [12:09:01]CAPDU: 80 09 00 00 [12:09:01]Write to MH i2c: E2 08 00 20 D8 80 09 00 00 00 00 00 00 6A [12:09:01]Write i2c OK [12:09:01]MH_I2C_Read... [12:09:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:01]Read from MH i2c: E2 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 03 00 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 03 00 20 D8 00 90 00 6C [12:09:01]RAPDU: 90 00 [12:09:01]wFMCommunicate OK [12:09:01]SAM_PROTO_ClearQueue done [12:09:01]KKMCreateOFDPacket [12:09:01]OFDProtocolAddRootSTLVToBuf [12:09:01]FM_MakeSignedData [12:09:01]FM_MakeSignedData [12:09:01]SAM_PROTO_SignData [12:09:01]wFMCommunicate request_size=4 [12:09:01]MH_SAM_APDU [12:09:01]CAPDU: 80 0D 01 02 [12:09:01]Write to MH i2c: E2 08 00 21 D8 80 0D 01 02 00 00 00 00 72 [12:09:01]Write i2c OK [12:09:01]MH_I2C_Read... [12:09:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:01]Read from MH i2c: E2 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 03 00 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 03 00 21 D8 00 90 00 6D [12:09:01]RAPDU: 90 00 [12:09:01]wFMCommunicate OK [12:09:01]wFMCommunicate request_size=255 [12:09:01]MH_SAM_APDU [12:09:01]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 E6 F2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D2 0E 01 [12:09:01]Write to MH i2c: E2 02 01 22 D8 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 E6 F2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D2 0E 01 00 00 68 [12:09:01]Write i2c OK [12:09:01]MH_I2C_Read... [12:09:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:01]Read from MH i2c: E2 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 03 00 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 03 00 22 D8 00 90 00 6E [12:09:01]RAPDU: 90 00 [12:09:01]wFMCommunicate OK [12:09:01]wFMCommunicate request_size=16 [12:09:01]MH_SAM_APDU [12:09:01]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 67 C4 22 DB 95 79 [12:09:01]Write to MH i2c: E2 13 00 23 D8 80 0D 02 02 0B 00 00 35 04 06 00 67 C4 22 DB 95 79 00 00 00 [12:09:01]Write i2c OK [12:09:01]MH_I2C_Read... [12:09:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:01]Read from MH i2c: E2 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 03 00 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 03 00 23 D8 00 90 00 6F [12:09:01]RAPDU: 90 00 [12:09:01]wFMCommunicate OK [12:09:01]wFMCommunicate request_size=4 [12:09:01]MH_SAM_APDU [12:09:01]CAPDU: 80 0D 03 02 [12:09:01]Write to MH i2c: E2 08 00 24 D8 80 0D 03 02 00 00 00 00 77 [12:09:01]Write i2c OK [12:09:01]MH_I2C_Read... [12:09:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:01]Read from MH i2c: E2 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 0B 00 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 0B 00 24 D8 00 70 39 2D 29 09 5B CE 52 90 00 FB [12:09:01]RAPDU: 70 39 2D 29 09 5B CE 52 90 00 [12:09:01]wFMCommunicate OK [12:09:01]SAM_PROTO_SignData done [12:09:01]FM_MakeSignedData done [12:09:01]CreateOFDProtocolMessage [12:09:01]wFMCommunicate request_size=4 [12:09:01]MH_SAM_APDU [12:09:01]CAPDU: 80 11 00 00 [12:09:01]Write to MH i2c: E2 08 00 25 D8 80 11 00 00 00 00 00 00 77 [12:09:01]Write i2c OK [12:09:01]MH_I2C_Read... [12:09:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:01]Read from MH i2c: E2 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 17 00 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 17 00 25 D8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C9 [12:09:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:09:01]wFMCommunicate OK [12:09:01]CreateOFDProtocolMessage done [12:09:01]OFDSenderStorePacket 69330 [12:09:01]StoreOFDPacket docnum=69330 [12:09:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 10 F8 0D 01 06 94 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 E6 F2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D2 0E 01 00 35 04 06 00 67 C4 22 DB 95 79 70 39 2D 29 09 5B CE 52 [12:09:01]CheckFolder [12:09:01]dirname=/storage/ofd_packets [12:09:01]CheckFolder done [12:09:01]ProducePacketName [12:09:01]name=ofd_packets/00069330 [12:09:01]NVStorageSaveData ofd_packets/00069330 [12:09:01]File name is /storage/ofd_packets/00069330 [12:09:01]Write 307 bytes [12:09:01]NVStorageSaveData done [12:09:01]OFDSenderStorePacket done [12:09:01]KKMCreateOFDPacket done [12:09:01]NVStorageSaveData kkm_last_timestamp [12:09:01]File name is /storage/kkm_last_timestamp [12:09:01]Write 4 bytes [12:09:01]NVStorageSaveData done [12:09:01]ExternCall_PrintAddStr [12:09:01]wPrintStart [12:09:01]Write to MH i2c: 01 00 00 26 D8 FE [12:09:01]Write i2c OK [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: 01 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: 01 07 00 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: 01 07 00 26 D8 00 00 00 00 00 FF 0F 13 [12:09:01]RasterBufferAndPrint [12:09:01]line Счет N : (1)2885048 [12:09:01]line ИНН: 02508201610067 [12:09:01]line Контрольно-Кассовый Чек [12:09:01]line ПРОДАЖА [12:09:01]line ТРК (МРК, ГНК) : 31 [12:09:01]line Товар: 2710194240 [12:09:01]line D-ENERGY Дт-К-2 [12:09:01]line 12.960 * 77.20 [12:09:01]line = 1000.51 [12:09:01]line НДС 12% НСП 1% [12:09:01]line > о реализуемом товаре [12:09:01]line ОКРУГЛЕНИЕ: -0.51 [12:09:01]line ИТОГО: 1000.00 [12:09:01]line Внесено: 1000.00 [12:09:01]line СДАЧА: 0.00 [12:09:01]line НСП 1% : 8.85 [12:09:01]line НДС 12% : 106.25 [12:09:01]line Наличными: 1000.00 [12:09:01]line Безнал.: 0.00 [12:09:01]line Место: АЗС № 85 "Партнер Нефть" [12:09:01]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:09:01]line СНО: Общий режим [12:09:01]line Чек 175 20.10.2024 12:09 [12:09:01]line Смена: 193 ФФД: 1.0 [12:09:01]line ЗНМ: 0300000167 [12:09:01]line РНМ: 0000000000156251 [12:09:01]line Версия ККМ: v1.0 [12:09:01]line ФМ: 0000000000963346 [12:09:01]line ФД: 69330 [12:09:01]line ФПД: 114092096066937 [12:09:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120910&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69330&fm=114092096066937&tin=02508201610067®Number=0000000000156251&sum=100000 [12:09:02]OFD Sender: Processing packet 69330 [packets to send 18, broken 17] [12:09:02]ProducePacketName [12:09:02]name=ofd_packets/00069330 [12:09:02]OFD Sender: To server: pG, [12:09:02]CommunicateWithHost lk.salyk.kg:30040 [12:09:02]ConnectInit lk.salyk.kg [12:09:02]written 0, free lines is 4095 [12:09:02]Connected sock=10 [12:09:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 10 F8 0D 01 06 94 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 E6 F2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D2 0E 01 00 35 04 06 00 67 C4 22 DB 95 79 70 39 2D 29 09 5B CE 52 [12:09:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 A9 B5 47 00 A8 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D2 0E 01 00 F4 03 04 00 8D 9C 14 67 B6 04 01 00 00 48 E9 E2 6E 12 7B 4E F5 [12:09:02]CommunicateWithHost err = 0 [12:09:02]CheckOFDResponse [12:09:02]1017 (14) - 77093643461234 [12:09:02]1041 (16) - 0000000000963346 [12:09:02]1040 (4) - 69330 [12:09:02]1012 (4) - 20.10.2024 06:00 [12:09:02]1206 (1) - 0 [12:09:02]OFD Sender: Remove packet 69330 [12:09:02]ProducePacketName [12:09:02]name=ofd_packets/00069330 [12:09:02]NVStorageDeleteData [12:09:02]Write to MH i2c: 01 00 00 51 D8 29 [12:09:02]Write i2c OK [12:09:02]MH_I2C_Read... [12:09:02]Read from MH i2c: 01 [12:09:02]MH_I2C_Read... [12:09:02]Read from MH i2c: 01 07 00 [12:09:02]MH_I2C_Read... [12:09:02]Read from MH i2c: 01 07 00 51 D8 00 00 00 00 00 F7 0C 33 [12:09:02]RasterBufferAndPrint [12:09:02]line [12:09:02]line [12:09:02]line [12:09:02]line [12:09:02]line [12:09:02]written 0, free lines is 3328 [12:09:02]MH_Cut [12:09:02]Write to MH i2c: D1 01 00 58 D8 01 02 [12:09:02]Write i2c OK [12:09:02]MH_I2C_Read... [12:09:02]Read from MH i2c: D1 [12:09:02]MH_I2C_Read... [12:09:02]Read from MH i2c: D1 01 00 [12:09:02]MH_I2C_Read... [12:09:02]Read from MH i2c: D1 01 00 58 D8 00 01 [12:09:02]Write to MH i2c: 01 00 00 59 D8 31 [12:09:02]Write i2c OK [12:09:02]MH_I2C_Read... [12:09:02]OFD Sender: No OFD packet to send [12:09:03]*** Cut start [12:09:03]*** Partial cut [12:09:03]*** CUTSNS_PIN = 1 [12:09:03]*** CUTSNS_PIN = 0 [12:09:03]*** Brake cut motor [12:09:03]Read from MH i2c: 01 [12:09:03]MH_I2C_Read... [12:09:03]*** Stop cut motor [12:09:03]*** Cut end [12:09:03]Read from MH i2c: 01 07 00 [12:09:03]MH_I2C_Read... [12:09:03]Read from MH i2c: 01 07 00 59 D8 00 00 00 00 00 FF 0F 46 [12:09:03]process_action close_receipt done [12:09:03]requested_data is exist [12:09:03]produce_requested_data [12:09:03]requested_item fm.sn is exist - process it [12:09:03]wFMCommunicate request_size=4 [12:09:03]MH_SAM_APDU [12:09:03]CAPDU: 80 11 00 00 [12:09:03]Write to MH i2c: E2 08 00 5A D8 80 11 00 00 00 00 00 00 AC [12:09:03]Write i2c OK [12:09:03]MH_I2C_Read... [12:09:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:03]Read from MH i2c: E2 [12:09:03]MH_I2C_Read... [12:09:03]Read from MH i2c: E2 17 00 [12:09:03]MH_I2C_Read... [12:09:03]Read from MH i2c: E2 17 00 5A D8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FE [12:09:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:09:03]wFMCommunicate OK [12:09:03]requested_item fd.num is exist - process it [12:09:03]SAM_PROTO_GetFieldsCounters [12:09:03]wFMCommunicate request_size=4 [12:09:03]MH_SAM_APDU [12:09:03]CAPDU: 80 13 00 00 [12:09:03]Write to MH i2c: E2 08 00 5B D8 80 13 00 00 00 00 00 00 AF [12:09:03]Write i2c OK [12:09:03]MH_I2C_Read... [12:09:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:04]Read from MH i2c: E2 [12:09:04]MH_I2C_Read... [12:09:04]Read from MH i2c: E2 62 00 [12:09:04]MH_I2C_Read... [12:09:04]Read from MH i2c: E2 62 00 5B D8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D2 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [12:09:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D2 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:09:04]wFMCommunicate OK [12:09:04]SAM_PROTO_GetFieldsCounters done [12:09:04]requested_item shift.num is exist - process it [12:09:04]requested_item shift.opened is exist - process it [12:09:04]req_shift_opened [12:09:04]FM_GetShiftState [12:09:04]SAM_PROTO_GetShiftState [12:09:04]wFMCommunicate request_size=4 [12:09:04]MH_SAM_APDU [12:09:04]CAPDU: 80 13 01 00 [12:09:04]Write to MH i2c: E2 08 00 5C D8 80 13 01 00 00 00 00 00 B1 [12:09:04]Write i2c OK [12:09:04]MH_I2C_Read... [12:09:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:04]Read from MH i2c: E2 [12:09:04]MH_I2C_Read... [12:09:04]Read from MH i2c: E2 0E 00 [12:09:04]MH_I2C_Read... [12:09:04]Read from MH i2c: E2 0E 00 5C D8 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 B7 [12:09:04]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:09:04]wFMCommunicate OK [12:09:04]SAM_PROTO_GetShiftState done [12:09:04]FM_GetShiftState done [12:09:04]req_shift_opened done [12:09:04]requested_item shift.open_date is exist - process it [12:09:04]req_shift_open_date [12:09:04]req_shift_open_date done [12:09:04]produce_requested_data done [12:09:04]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69330,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [12:09:04]process_action_free close_receipt [12:09:04]json_value_free [12:09:04]json_value_free done [12:09:04]process_json_proto returns [12:09:04]Send response to host [12:09:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69330,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [12:09:04]free response buf [12:09:04]execute_script done [12:09:04]execute_script returns [12:09:04]free content buf [12:09:04]Sock 9.Close socket [12:09:04]Sock 9.Thread stoped [12:09:04]accept exits with 8 [12:09:04]New connection [12:09:04]New thread 3067260260 created [12:09:04]Thread 3067116900 joined [12:09:04]Waiting for new connection... [12:09:04] Sock 8.Parse request [12:09:04]Sock 8.Check first char [12:09:04]Sock 8.First char is OK [12:09:04]request: POST /json_proto HTTP/1.0 [12:09:04]Method: POST [12:09:04]URL: /json_proto [12:09:04]Method is POST - this is cgi request [12:09:04]url: /json_proto [12:09:04]query_string will be loaded in cgi processing [12:09:04]execute_cgi json_proto POST (null) [12:09:04]execute_cgi path=json_proto method=POST [12:09:04]POST find Content-Length [12:09:04]Host: 172.17.50.3:8080 [12:09:04]Content-Length: 689 [12:09:04]Content-Type: application/json [12:09:04] [12:09:04]POST finish read [12:09:04]Found Content-Length = 689 [12:09:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 15.550, "sum" : 1200.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:04]execute_script... [12:09: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)2885049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 15.550, "sum" : 1200.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:04]POST & json_proto [12:09:04]process_json_proto [12:09:04]json parsed OK: [12:09:04]protocol is kg_v1.0 [12:09:04]action value=close_receipt [12:09:04]process_action close_receipt [12:09:04]cmd_close_receipt [12:09:04]MH_GetDate [12:09:04]Write to MH i2c: F0 00 00 5D D8 24 [12:09:04]Write i2c OK [12:09:04]MH_I2C_Read... [12:09:04]Read from MH i2c: F0 [12:09:04]MH_I2C_Read... [12:09:04]Read from MH i2c: F0 09 00 [12:09:04]MH_I2C_Read... [12:09:04]Read from MH i2c: F0 09 00 5D D8 00 EA F2 14 67 6B 98 1E 66 0B [12:09:04]GetLastDocTimeStamp 1729426150 [12:09:04]current date 1729426154 [12:09:04]FM_GetShiftState [12:09:04]SAM_PROTO_GetShiftState [12:09:04]wFMCommunicate request_size=4 [12:09:04]MH_SAM_APDU [12:09:04]CAPDU: 80 13 01 00 [12:09:04]Write to MH i2c: E2 08 00 5E D8 80 13 01 00 00 00 00 00 B3 [12:09:04]Write i2c OK [12:09:04]MH_I2C_Read... [12:09:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:04]Read from MH i2c: E2 [12:09:04]MH_I2C_Read... [12:09:04]Read from MH i2c: E2 0E 00 [12:09:04]MH_I2C_Read... [12:09:04]Read from MH i2c: E2 0E 00 5E D8 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 B9 [12:09:04]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:09:04]wFMCommunicate OK [12:09:04]SAM_PROTO_GetShiftState done [12:09:04]FM_GetShiftState done [12:09:04]opened in 1729383220 [12:09:04]opened+sec_in_day 1729469620 [12:09:04]quantity*price = 120046 [12:09:04]sum+1 = 120047 [12:09:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.48 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 176 20.10.2024 12:09 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69331 ФПД: 98419975192416 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120914&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69331&fm=98419975192416&tin=02508201610067®Number=0000000000156251&sum=120000 [12:09:05]StoreToDocumentArchive [12:09:05]shift 193 fd 69331 [12:09:05]save to /storage/0193/doc_00069331 [12:09:05]save last doc name /storage/0193/doc_00069331 to /storage/kkm_last_doc_name [12:09:05]save OK [12:09:05]Clear old archive folders... [12:09:05]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:09:05]tlvbuf is B6DF3420 [12:09:05]SAM_PROTO_ClearQueue [12:09:05]wFMCommunicate request_size=4 [12:09:05]MH_SAM_APDU [12:09:05]CAPDU: 80 09 00 00 [12:09:05]Write to MH i2c: E2 08 00 6B D8 80 09 00 00 00 00 00 00 B5 [12:09:05]Write i2c OK [12:09:05]MH_I2C_Read... [12:09:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:05]Read from MH i2c: E2 [12:09:05]MH_I2C_Read... [12:09:05]Read from MH i2c: E2 03 00 [12:09:05]MH_I2C_Read... [12:09:05]Read from MH i2c: E2 03 00 6B D8 00 90 00 B7 [12:09:05]RAPDU: 90 00 [12:09:05]wFMCommunicate OK [12:09:05]SAM_PROTO_ClearQueue done [12:09:05]KKMCreateOFDPacket [12:09:05]OFDProtocolAddRootSTLVToBuf [12:09:05]FM_MakeSignedData [12:09:05]FM_MakeSignedData [12:09:05]SAM_PROTO_SignData [12:09:05]wFMCommunicate request_size=4 [12:09:05]MH_SAM_APDU [12:09:05]CAPDU: 80 0D 01 02 [12:09:05]Write to MH i2c: E2 08 00 6C D8 80 0D 01 02 00 00 00 00 BD [12:09:05]Write i2c OK [12:09:05]MH_I2C_Read... [12:09:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:05]Read from MH i2c: E2 [12:09:05]MH_I2C_Read... [12:09:05]Read from MH i2c: E2 03 00 [12:09:05]MH_I2C_Read... [12:09:05]Read from MH i2c: E2 03 00 6C D8 00 90 00 B8 [12:09:05]RAPDU: 90 00 [12:09:05]wFMCommunicate OK [12:09:05]wFMCommunicate request_size=255 [12:09:05]MH_SAM_APDU [12:09:05]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 EA F2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D3 0E 01 [12:09:05]Write to MH i2c: E2 02 01 6D D8 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 EA F2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D3 0E 01 00 00 2B [12:09:05]Write i2c OK [12:09:05]MH_I2C_Read... [12:09:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:06]Read from MH i2c: E2 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: E2 03 00 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: E2 03 00 6D D8 00 90 00 B9 [12:09:06]RAPDU: 90 00 [12:09:06]wFMCommunicate OK [12:09:06]wFMCommunicate request_size=16 [12:09:06]MH_SAM_APDU [12:09:06]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 59 83 2F A8 FF 60 [12:09:06]Write to MH i2c: E2 13 00 6E D8 80 0D 02 02 0B 00 00 35 04 06 00 59 83 2F A8 FF 60 00 00 27 [12:09:06]Write i2c OK [12:09:06]MH_I2C_Read... [12:09:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:06]Read from MH i2c: E2 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: E2 03 00 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: E2 03 00 6E D8 00 90 00 BA [12:09:06]RAPDU: 90 00 [12:09:06]wFMCommunicate OK [12:09:06]wFMCommunicate request_size=4 [12:09:06]MH_SAM_APDU [12:09:06]CAPDU: 80 0D 03 02 [12:09:06]Write to MH i2c: E2 08 00 6F D8 80 0D 03 02 00 00 00 00 C2 [12:09:06]Write i2c OK [12:09:06]MH_I2C_Read... [12:09:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:06]Read from MH i2c: E2 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: E2 0B 00 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: E2 0B 00 6F D8 00 1A CE B8 58 41 AF 66 BF 90 00 D0 [12:09:06]RAPDU: 1A CE B8 58 41 AF 66 BF 90 00 [12:09:06]wFMCommunicate OK [12:09:06]SAM_PROTO_SignData done [12:09:06]FM_MakeSignedData done [12:09:06]CreateOFDProtocolMessage [12:09:06]wFMCommunicate request_size=4 [12:09:06]MH_SAM_APDU [12:09:06]CAPDU: 80 11 00 00 [12:09:06]Write to MH i2c: E2 08 00 70 D8 80 11 00 00 00 00 00 00 C2 [12:09:06]Write i2c OK [12:09:06]MH_I2C_Read... [12:09:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:06]Read from MH i2c: E2 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: E2 17 00 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: E2 17 00 70 D8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 14 [12:09:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:09:06]wFMCommunicate OK [12:09:06]CreateOFDProtocolMessage done [12:09:06]OFDSenderStorePacket 69331 [12:09:06]StoreOFDPacket docnum=69331 [12:09:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 89 51 0D 01 9A 63 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 EA F2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D3 0E 01 00 35 04 06 00 59 83 2F A8 FF 60 1A CE B8 58 41 AF 66 BF [12:09:06]CheckFolder [12:09:06]dirname=/storage/ofd_packets [12:09:06]CheckFolder done [12:09:06]ProducePacketName [12:09:06]name=ofd_packets/00069331 [12:09:06]NVStorageSaveData ofd_packets/00069331 [12:09:06]File name is /storage/ofd_packets/00069331 [12:09:06]Write 307 bytes [12:09:06]NVStorageSaveData done [12:09:06]OFDSenderStorePacket done [12:09:06]KKMCreateOFDPacket done [12:09:06]NVStorageSaveData kkm_last_timestamp [12:09:06]File name is /storage/kkm_last_timestamp [12:09:06]Write 4 bytes [12:09:06]NVStorageSaveData done [12:09:06]ExternCall_PrintAddStr [12:09:06]wPrintStart [12:09:06]Write to MH i2c: 01 00 00 71 D8 49 [12:09:06]Write i2c OK [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: 01 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: 01 07 00 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: 01 07 00 71 D8 00 00 00 00 00 FF 0F 5E [12:09:06]RasterBufferAndPrint [12:09:06]line Счет N : (1)2885049 [12:09:06]line ИНН: 02508201610067 [12:09:06]line Контрольно-Кассовый Чек [12:09:06]line ПРОДАЖА [12:09:06]line ТРК (МРК, ГНК) : 41 [12:09:06]line Товар: 2710194240 [12:09:06]line D-ENERGY Дт-К-2 [12:09:06]line 15.550 * 77.20 [12:09:06]line = 1200.46 [12:09:06]line НДС 12% НСП 1% [12:09:06]line > о реализуемом товаре [12:09:06]line ОКРУГЛЕНИЕ: -0.46 [12:09:06]line ИТОГО: 1200.00 [12:09:06]line Внесено: 1200.00 [12:09:06]line СДАЧА: 0.00 [12:09:06]line НСП 1% : 10.62 [12:09:06]line НДС 12% : 127.48 [12:09:06]line Наличными: 1200.00 [12:09:06]line Безнал.: 0.00 [12:09:06]line Место: АЗС № 85 "Партнер Нефть" [12:09:06]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:09:06]line СНО: Общий режим [12:09:06]line Чек 176 20.10.2024 12:09 [12:09:06]line Смена: 193 ФФД: 1.0 [12:09:06]line ЗНМ: 0300000167 [12:09:06]line РНМ: 0000000000156251 [12:09:06]line Версия ККМ: v1.0 [12:09:06]line ФМ: 0000000000963346 [12:09:06]line ФД: 69331 [12:09:06]line ФПД: 98419975192416 [12:09:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120914&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69331&fm=98419975192416&tin=02508201610067®Number=0000000000156251&sum=120000 [12:09:06]written 0, free lines is 4095 [12:09:06]OFD Sender: Processing packet 69331 [packets to send 18, broken 17] [12:09:06]ProducePacketName [12:09:06]name=ofd_packets/00069331 [12:09:06]OFD Sender: To server: pG, [12:09:06]CommunicateWithHost lk.salyk.kg:30040 [12:09:06]ConnectInit lk.salyk.kg [12:09:06]Connected sock=10 [12:09:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 89 51 0D 01 9A 63 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 EA F2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D3 0E 01 00 35 04 06 00 59 83 2F A8 FF 60 1A CE B8 58 41 AF 66 BF [12:09:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 62 E8 47 00 D3 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D3 0E 01 00 F4 03 04 00 91 9C 14 67 B6 04 01 00 00 F2 23 2A E5 1E 30 1E 5F [12:09:07]CommunicateWithHost err = 0 [12:09:07]CheckOFDResponse [12:09:07]1017 (14) - 77093643461234 [12:09:07]1041 (16) - 0000000000963346 [12:09:07]1040 (4) - 69331 [12:09:07]1012 (4) - 20.10.2024 06:00 [12:09:07]1206 (1) - 0 [12:09:07]OFD Sender: Remove packet 69331 [12:09:07]ProducePacketName [12:09:07]name=ofd_packets/00069331 [12:09:07]NVStorageDeleteData [12:09:07]Write to MH i2c: 01 00 00 9C D8 74 [12:09:07]Write i2c OK [12:09:07]MH_I2C_Read... [12:09:07]Read from MH i2c: 01 [12:09:07]MH_I2C_Read... [12:09:07]Read from MH i2c: 01 07 00 [12:09:07]MH_I2C_Read... [12:09:07]Read from MH i2c: 01 07 00 9C D8 00 00 00 00 00 FE 0C 85 [12:09:07]RasterBufferAndPrint [12:09:07]line [12:09:07]line [12:09:07]line [12:09:07]line [12:09:07]line [12:09:07]written 0, free lines is 3341 [12:09:07]MH_Cut [12:09:07]Write to MH i2c: D1 01 00 A3 D8 01 4D [12:09:07]Write i2c OK [12:09:07]MH_I2C_Read... [12:09:07]Read from MH i2c: D1 [12:09:07]MH_I2C_Read... [12:09:07]Read from MH i2c: D1 01 00 [12:09:07]MH_I2C_Read... [12:09:07]Read from MH i2c: D1 01 00 A3 D8 00 4C [12:09:07]Write to MH i2c: 01 00 00 A4 D8 7C [12:09:07]Write i2c OK [12:09:07]MH_I2C_Read... [12:09:07]OFD Sender: No OFD packet to send [12:09:07]*** Cut start [12:09:07]*** Partial cut [12:09:07]*** CUTSNS_PIN = 1 [12:09:07]*** CUTSNS_PIN = 0 [12:09:08]*** Brake cut motor [12:09:08]Read from MH i2c: 01 [12:09:08]MH_I2C_Read... [12:09:08]*** Stop cut motor [12:09:08]*** Cut end [12:09:08]Read from MH i2c: 01 07 00 [12:09:08]MH_I2C_Read... [12:09:08]Read from MH i2c: 01 07 00 A4 D8 00 00 00 00 00 FF 0F 91 [12:09:08]process_action close_receipt done [12:09:08]requested_data is exist [12:09:08]produce_requested_data [12:09:08]requested_item fm.sn is exist - process it [12:09:08]wFMCommunicate request_size=4 [12:09:08]MH_SAM_APDU [12:09:08]CAPDU: 80 11 00 00 [12:09:08]Write to MH i2c: E2 08 00 A5 D8 80 11 00 00 00 00 00 00 F7 [12:09:08]Write i2c OK [12:09:08]MH_I2C_Read... [12:09:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:08]Read from MH i2c: E2 [12:09:08]MH_I2C_Read... [12:09:08]Read from MH i2c: E2 17 00 [12:09:08]MH_I2C_Read... [12:09:08]Read from MH i2c: E2 17 00 A5 D8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 49 [12:09:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:09:08]wFMCommunicate OK [12:09:08]requested_item fd.num is exist - process it [12:09:08]SAM_PROTO_GetFieldsCounters [12:09:08]wFMCommunicate request_size=4 [12:09:08]MH_SAM_APDU [12:09:08]CAPDU: 80 13 00 00 [12:09:08]Write to MH i2c: E2 08 00 A6 D8 80 13 00 00 00 00 00 00 FA [12:09:08]Write i2c OK [12:09:08]MH_I2C_Read... [12:09:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:08]Read from MH i2c: E2 [12:09:08]MH_I2C_Read... [12:09:08]Read from MH i2c: E2 62 00 [12:09:08]MH_I2C_Read... [12:09:08]Read from MH i2c: E2 62 00 A6 D8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D3 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [12:09:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D3 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:09:08]wFMCommunicate OK [12:09:08]SAM_PROTO_GetFieldsCounters done [12:09:08]requested_item shift.num is exist - process it [12:09:08]requested_item shift.opened is exist - process it [12:09:08]req_shift_opened [12:09:08]FM_GetShiftState [12:09:08]SAM_PROTO_GetShiftState [12:09:08]wFMCommunicate request_size=4 [12:09:08]MH_SAM_APDU [12:09:08]CAPDU: 80 13 01 00 [12:09:08]Write to MH i2c: E2 08 00 A7 D8 80 13 01 00 00 00 00 00 FC [12:09:08]Write i2c OK [12:09:08]MH_I2C_Read... [12:09:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:08]Read from MH i2c: E2 [12:09:08]MH_I2C_Read... [12:09:08]Read from MH i2c: E2 0E 00 [12:09:08]MH_I2C_Read... [12:09:08]Read from MH i2c: E2 0E 00 A7 D8 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 02 [12:09:08]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:09:08]wFMCommunicate OK [12:09:08]SAM_PROTO_GetShiftState done [12:09:08]FM_GetShiftState done [12:09:08]req_shift_opened done [12:09:08]requested_item shift.open_date is exist - process it [12:09:08]req_shift_open_date [12:09:08]req_shift_open_date done [12:09:08]produce_requested_data done [12:09:08]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69331,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [12:09:08]process_action_free close_receipt [12:09:08]json_value_free [12:09:08]json_value_free done [12:09:08]process_json_proto returns [12:09:08]Send response to host [12:09:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69331,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [12:09:08]free response buf [12:09:08]execute_script done [12:09:08]execute_script returns [12:09:08]free content buf [12:09:08]Sock 8.Close socket [12:09:08]Sock 8.Thread stoped [12:09:12]OFD Sender: No OFD packet to send [12:09:17]OFD Sender: No OFD packet to send [12:09:22]OFD Sender: No OFD packet to send [12:09:24]accept exits with 9 [12:09:24]New connection [12:09:24]New thread 3067116900 created [12:09:24]Thread 3067260260 joined [12:09:24]Waiting for new connection... [12:09:24] Sock 9.Parse request [12:09:24]Sock 9.Check first char [12:09:24]Sock 9.First char is OK [12:09:24]request: POST /json_proto HTTP/1.0 [12:09:24]Method: POST [12:09:24]URL: /json_proto [12:09:24]Method is POST - this is cgi request [12:09:24]url: /json_proto [12:09:24]query_string will be loaded in cgi processing [12:09:24]execute_cgi json_proto POST (null) [12:09:24]execute_cgi path=json_proto method=POST [12:09:24]POST find Content-Length [12:09:24]Host: 172.17.50.3:8080 [12:09:24]Content-Length: 676 [12:09:24]Content-Type: application/json [12:09:24] [12:09:24]POST finish read [12:09:24]Found Content-Length = 676 [12:09:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:24]execute_script... [12:09: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)2885050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:24]POST & json_proto [12:09:24]process_json_proto [12:09:24]json parsed OK: [12:09:24]protocol is kg_v1.0 [12:09:24]action value=close_receipt [12:09:24]process_action close_receipt [12:09:24]cmd_close_receipt [12:09:24]MH_GetDate [12:09:24]Write to MH i2c: F0 00 00 A8 D8 6F [12:09:24]Write i2c OK [12:09:24]MH_I2C_Read... [12:09:24]Read from MH i2c: F0 [12:09:24]MH_I2C_Read... [12:09:24]Read from MH i2c: F0 09 00 [12:09:24]MH_I2C_Read... [12:09:24]Read from MH i2c: F0 09 00 A8 D8 00 FE F2 14 67 6B 98 1E 66 6A [12:09:24]GetLastDocTimeStamp 1729426154 [12:09:24]current date 1729426174 [12:09:24]FM_GetShiftState [12:09:24]SAM_PROTO_GetShiftState [12:09:24]wFMCommunicate request_size=4 [12:09:24]MH_SAM_APDU [12:09:24]CAPDU: 80 13 01 00 [12:09:24]Write to MH i2c: E2 08 00 A9 D8 80 13 01 00 00 00 00 00 FE [12:09:24]Write i2c OK [12:09:24]MH_I2C_Read... [12:09:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:24]Read from MH i2c: E2 [12:09:24]MH_I2C_Read... [12:09:24]Read from MH i2c: E2 0E 00 [12:09:24]MH_I2C_Read... [12:09:24]Read from MH i2c: E2 0E 00 A9 D8 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 04 [12:09:24]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:09:24]wFMCommunicate OK [12:09:24]SAM_PROTO_GetShiftState done [12:09:24]FM_GetShiftState done [12:09:24]opened in 1729383220 [12:09:24]opened+sec_in_day 1729469620 [12:09:24]quantity*price = 80010 [12:09:24]sum+1 = 80011 [12:09:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 177 20.10.2024 12:09 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69332 ФПД: 168087856488062 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120934&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69332&fm=168087856488062&tin=02508201610067®Number=0000000000156251&sum=80000 [12:09:25]StoreToDocumentArchive [12:09:25]shift 193 fd 69332 [12:09:25]save to /storage/0193/doc_00069332 [12:09:25]save last doc name /storage/0193/doc_00069332 to /storage/kkm_last_doc_name [12:09:25]save OK [12:09:25]Clear old archive folders... [12:09:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:09:25]tlvbuf is 007E1A00 [12:09:25]SAM_PROTO_ClearQueue [12:09:25]wFMCommunicate request_size=4 [12:09:25]MH_SAM_APDU [12:09:25]CAPDU: 80 09 00 00 [12:09:25]Write to MH i2c: E2 08 00 B6 D8 80 09 00 00 00 00 00 00 00 [12:09:25]Write i2c OK [12:09:25]MH_I2C_Read... [12:09:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:25]Read from MH i2c: E2 [12:09:25]MH_I2C_Read... [12:09:25]Read from MH i2c: E2 03 00 [12:09:25]MH_I2C_Read... [12:09:25]Read from MH i2c: E2 03 00 B6 D8 00 90 00 02 [12:09:25]RAPDU: 90 00 [12:09:25]wFMCommunicate OK [12:09:25]SAM_PROTO_ClearQueue done [12:09:25]KKMCreateOFDPacket [12:09:25]OFDProtocolAddRootSTLVToBuf [12:09:25]FM_MakeSignedData [12:09:25]FM_MakeSignedData [12:09:25]SAM_PROTO_SignData [12:09:25]wFMCommunicate request_size=4 [12:09:25]MH_SAM_APDU [12:09:25]CAPDU: 80 0D 01 02 [12:09:25]Write to MH i2c: E2 08 00 B7 D8 80 0D 01 02 00 00 00 00 08 [12:09:25]Write i2c OK [12:09:25]MH_I2C_Read... [12:09:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:25]Read from MH i2c: E2 [12:09:25]MH_I2C_Read... [12:09:25]Read from MH i2c: E2 03 00 [12:09:25]MH_I2C_Read... [12:09:25]Read from MH i2c: E2 03 00 B7 D8 00 90 00 03 [12:09:25]RAPDU: 90 00 [12:09:25]wFMCommunicate OK [12:09:25]wFMCommunicate request_size=255 [12:09:25]MH_SAM_APDU [12:09: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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 FE F2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D4 0E 01 00 35 04 06 00 98 E0 00 FA [12:09:25]Write to MH i2c: E2 02 01 B8 D8 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 FE F2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D4 0E 01 00 35 04 06 00 98 E0 00 FA 00 00 EC [12:09:25]Write i2c OK [12:09:25]MH_I2C_Read... [12:09:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:25]Read from MH i2c: E2 [12:09:25]MH_I2C_Read... [12:09:25]Read from MH i2c: E2 03 00 [12:09:25]MH_I2C_Read... [12:09:25]Read from MH i2c: E2 03 00 B8 D8 00 90 00 04 [12:09:25]RAPDU: 90 00 [12:09:25]wFMCommunicate OK [12:09:25]wFMCommunicate request_size=7 [12:09:25]MH_SAM_APDU [12:09:25]CAPDU: 80 0D 02 02 02 1E 7E [12:09:25]Write to MH i2c: E2 0A 00 B9 D8 80 0D 02 02 02 00 1E 7E 00 00 AB [12:09:25]Write i2c OK [12:09:25]MH_I2C_Read... [12:09:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:25]Read from MH i2c: E2 [12:09:25]MH_I2C_Read... [12:09:25]Read from MH i2c: E2 03 00 [12:09:25]MH_I2C_Read... [12:09:25]Read from MH i2c: E2 03 00 B9 D8 00 90 00 05 [12:09:25]RAPDU: 90 00 [12:09:25]wFMCommunicate OK [12:09:25]wFMCommunicate request_size=4 [12:09:25]MH_SAM_APDU [12:09:25]CAPDU: 80 0D 03 02 [12:09:25]Write to MH i2c: E2 08 00 BA D8 80 0D 03 02 00 00 00 00 0D [12:09:25]Write i2c OK [12:09:25]MH_I2C_Read... [12:09:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:25]Read from MH i2c: E2 [12:09:25]MH_I2C_Read... [12:09:25]Read from MH i2c: E2 0B 00 [12:09:25]MH_I2C_Read... [12:09:25]Read from MH i2c: E2 0B 00 BA D8 00 F8 9B 1C F9 61 41 FE FC 90 00 52 [12:09:25]RAPDU: F8 9B 1C F9 61 41 FE FC 90 00 [12:09:25]wFMCommunicate OK [12:09:25]SAM_PROTO_SignData done [12:09:25]FM_MakeSignedData done [12:09:25]CreateOFDProtocolMessage [12:09:25]wFMCommunicate request_size=4 [12:09:25]MH_SAM_APDU [12:09:25]CAPDU: 80 11 00 00 [12:09:25]Write to MH i2c: E2 08 00 BB D8 80 11 00 00 00 00 00 00 0D [12:09:25]Write i2c OK [12:09:25]MH_I2C_Read... [12:09:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:25]Read from MH i2c: E2 [12:09:25]MH_I2C_Read... [12:09:25]Read from MH i2c: E2 17 00 [12:09:25]MH_I2C_Read... [12:09:25]Read from MH i2c: E2 17 00 BB D8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5F [12:09:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:09:25]wFMCommunicate OK [12:09:25]CreateOFDProtocolMessage done [12:09:25]OFDSenderStorePacket 69332 [12:09:25]StoreOFDPacket docnum=69332 [12:09:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 E5 E4 04 01 B9 29 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 FE F2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D4 0E 01 00 35 04 06 00 98 E0 00 FA 1E 7E F8 9B 1C F9 61 41 FE FC [12:09:25]CheckFolder [12:09:25]dirname=/storage/ofd_packets [12:09:25]CheckFolder done [12:09:25]ProducePacketName [12:09:25]name=ofd_packets/00069332 [12:09:25]NVStorageSaveData ofd_packets/00069332 [12:09:25]File name is /storage/ofd_packets/00069332 [12:09:25]Write 298 bytes [12:09:25]NVStorageSaveData done [12:09:25]OFDSenderStorePacket done [12:09:25]KKMCreateOFDPacket done [12:09:25]NVStorageSaveData kkm_last_timestamp [12:09:25]File name is /storage/kkm_last_timestamp [12:09:25]Write 4 bytes [12:09:25]NVStorageSaveData done [12:09:25]ExternCall_PrintAddStr [12:09:25]wPrintStart [12:09:25]Write to MH i2c: 01 00 00 BC D8 94 [12:09:25]Write i2c OK [12:09:25]MH_I2C_Read... [12:09:25]Read from MH i2c: 01 [12:09:25]MH_I2C_Read... [12:09:25]Read from MH i2c: 01 07 00 [12:09:25]MH_I2C_Read... [12:09:25]Read from MH i2c: 01 07 00 BC D8 00 00 00 00 00 FF 0F A9 [12:09:25]RasterBufferAndPrint [12:09:25]line Счет N : (1)2885050 [12:09:25]line ИНН: 02508201610067 [12:09:25]line Контрольно-Кассовый Чек [12:09:25]line ПРОДАЖА [12:09:25]line ТРК (МРК, ГНК) : 51 [12:09:25]line Товар: 2710194210 [12:09:25]line ДТ-К-5 [12:09:25]line 10.500 * 76.20 [12:09:25]line = 800.10 [12:09:25]line НДС 12% НСП 1% [12:09:25]line > о реализуемом товаре [12:09:25]line ОКРУГЛЕНИЕ: -0.10 [12:09:25]line ИТОГО: 800.00 [12:09:25]line Внесено: 800.00 [12:09:25]line СДАЧА: 0.00 [12:09:25]line НСП 1% : 7.08 [12:09:25]line НДС 12% : 84.97 [12:09:25]line Наличными: 800.00 [12:09:25]line Безнал.: 0.00 [12:09:25]line Место: АЗС № 85 "Партнер Нефть" [12:09:25]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:09:25]line СНО: Общий режим [12:09:25]line Чек 177 20.10.2024 12:09 [12:09:25]line Смена: 193 ФФД: 1.0 [12:09:25]line ЗНМ: 0300000167 [12:09:25]line РНМ: 0000000000156251 [12:09:25]line Версия ККМ: v1.0 [12:09:25]line ФМ: 0000000000963346 [12:09:25]line ФД: 69332 [12:09:25]line ФПД: 168087856488062 [12:09:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T120934&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69332&fm=168087856488062&tin=02508201610067®Number=0000000000156251&sum=80000 [12:09:25]written 0, free lines is 4095 [12:09:25]OFD Sender: Processing packet 69332 [packets to send 18, broken 17] [12:09:25]ProducePacketName [12:09:25]name=ofd_packets/00069332 [12:09:25]OFD Sender: To server: pG, [12:09:25]CommunicateWithHost lk.salyk.kg:30040 [12:09:25]ConnectInit lk.salyk.kg [12:09:25]Connected sock=10 [12:09:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 E5 E4 04 01 B9 29 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 FE F2 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D4 0E 01 00 35 04 06 00 98 E0 00 FA 1E 7E F8 9B 1C F9 61 41 FE FC [12:09:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 0A AB 47 00 37 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 30 39 36 33 33 34 36 10 04 04 00 D4 0E 01 00 F4 03 04 00 A4 9C 14 67 B6 04 01 00 00 8D 41 52 0C DC 1E 49 00 [12:09:26]CommunicateWithHost err = 0 [12:09:26]CheckOFDResponse [12:09:26]1017 (14) - 77093643461234 [12:09:26]1041 (16) - 0000000000963346 [12:09:26]1040 (4) - 69332 [12:09:26]1012 (4) - 20.10.2024 06:01 [12:09:26]1206 (1) - 0 [12:09:26]OFD Sender: Remove packet 69332 [12:09:26]ProducePacketName [12:09:26]name=ofd_packets/00069332 [12:09:26]NVStorageDeleteData [12:09:26]Write to MH i2c: 01 00 00 E7 D8 BF [12:09:26]Write i2c OK [12:09:26]MH_I2C_Read... [12:09:26]Read from MH i2c: 01 [12:09:26]MH_I2C_Read... [12:09:26]Read from MH i2c: 01 07 00 [12:09:26]MH_I2C_Read... [12:09:26]Read from MH i2c: 01 07 00 E7 D8 00 00 00 00 00 F9 0C CB [12:09:26]RasterBufferAndPrint [12:09:26]line [12:09:26]line [12:09:26]line [12:09:26]line [12:09:26]line [12:09:26]written 0, free lines is 3333 [12:09:26]MH_Cut [12:09:26]Write to MH i2c: D1 01 00 EE D8 01 98 [12:09:26]Write i2c OK [12:09:26]MH_I2C_Read... [12:09:26]Read from MH i2c: D1 [12:09:26]MH_I2C_Read... [12:09:26]Read from MH i2c: D1 01 00 [12:09:26]MH_I2C_Read... [12:09:26]Read from MH i2c: D1 01 00 EE D8 00 97 [12:09:26]Write to MH i2c: 01 00 00 EF D8 C7 [12:09:26]Write i2c OK [12:09:26]MH_I2C_Read... [12:09:26]OFD Sender: No OFD packet to send [12:09:26]*** Cut start [12:09:26]*** Partial cut [12:09:26]*** CUTSNS_PIN = 1 [12:09:27]*** CUTSNS_PIN = 0 [12:09:27]*** Brake cut motor [12:09:27]Read from MH i2c: 01 [12:09:27]MH_I2C_Read... [12:09:27]*** Stop cut motor [12:09:27]*** Cut end [12:09:27]Read from MH i2c: 01 07 00 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: 01 07 00 EF D8 00 00 00 00 00 FF 0F DC [12:09:27]process_action close_receipt done [12:09:27]requested_data is exist [12:09:27]produce_requested_data [12:09:27]requested_item fm.sn is exist - process it [12:09:27]wFMCommunicate request_size=4 [12:09:27]MH_SAM_APDU [12:09:27]CAPDU: 80 11 00 00 [12:09:27]Write to MH i2c: E2 08 00 F0 D8 80 11 00 00 00 00 00 00 42 [12:09:27]Write i2c OK [12:09:27]MH_I2C_Read... [12:09:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:27]Read from MH i2c: E2 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: E2 17 00 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: E2 17 00 F0 D8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 94 [12:09:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:09:27]wFMCommunicate OK [12:09:27]requested_item fd.num is exist - process it [12:09:27]SAM_PROTO_GetFieldsCounters [12:09:27]wFMCommunicate request_size=4 [12:09:27]MH_SAM_APDU [12:09:27]CAPDU: 80 13 00 00 [12:09:27]Write to MH i2c: E2 08 00 F1 D8 80 13 00 00 00 00 00 00 45 [12:09:27]Write i2c OK [12:09:27]MH_I2C_Read... [12:09:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:27]Read from MH i2c: E2 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: E2 62 00 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: E2 62 00 F1 D8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D4 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [12:09:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D4 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:09:27]wFMCommunicate OK [12:09:27]SAM_PROTO_GetFieldsCounters done [12:09:27]requested_item shift.num is exist - process it [12:09:27]requested_item shift.opened is exist - process it [12:09:27]req_shift_opened [12:09:27]FM_GetShiftState [12:09:27]SAM_PROTO_GetShiftState [12:09:27]wFMCommunicate request_size=4 [12:09:27]MH_SAM_APDU [12:09:27]CAPDU: 80 13 01 00 [12:09:27]Write to MH i2c: E2 08 00 F2 D8 80 13 01 00 00 00 00 00 47 [12:09:27]Write i2c OK [12:09:27]MH_I2C_Read... [12:09:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:27]Read from MH i2c: E2 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: E2 0E 00 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: E2 0E 00 F2 D8 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 4D [12:09:27]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:09:27]wFMCommunicate OK [12:09:27]SAM_PROTO_GetShiftState done [12:09:27]FM_GetShiftState done [12:09:27]req_shift_opened done [12:09:27]requested_item shift.open_date is exist - process it [12:09:27]req_shift_open_date [12:09:27]req_shift_open_date done [12:09:27]produce_requested_data done [12:09:27]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69332,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [12:09:27]process_action_free close_receipt [12:09:27]json_value_free [12:09:27]json_value_free done [12:09:27]process_json_proto returns [12:09:27]Send response to host [12:09:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69332,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [12:09:27]free response buf [12:09:27]execute_script done [12:09:27]execute_script returns [12:09:27]free content buf [12:09:27]Sock 9.Close socket [12:09:27]Sock 9.Thread stoped [12:09:31]OFD Sender: No OFD packet to send [12:09:36]OFD Sender: No OFD packet to send [12:09:41]OFD Sender: No OFD packet to send [12:09:46]OFD Sender: No OFD packet to send [12:09:51]OFD Sender: No OFD packet to send [12:09:56]OFD Sender: No OFD packet to send [12:10:01]OFD Sender: No OFD packet to send [12:10:06]OFD Sender: No OFD packet to send [12:10:11]OFD Sender: No OFD packet to send [12:10:16]OFD Sender: No OFD packet to send [12:10:21]OFD Sender: No OFD packet to send [12:10:26]OFD Sender: No OFD packet to send [12:10:31]OFD Sender: No OFD packet to send [12:10:36]OFD Sender: No OFD packet to send [12:10:41]OFD Sender: No OFD packet to send [12:10:46]OFD Sender: No OFD packet to send [12:10:51]OFD Sender: No OFD packet to send [12:10:56]OFD Sender: No OFD packet to send [12:11:01]OFD Sender: No OFD packet to send [12:11:06]OFD Sender: No OFD packet to send [12:11:11]OFD Sender: No OFD packet to send [12:11:11]accept exits with 8 [12:11:11]New connection [12:11:11]New thread 3067260260 created [12:11:11]Thread 3067116900 joined [12:11:11]Waiting for new connection... [12:11:11] Sock 8.Parse request [12:11:11]Sock 8.Check first char [12:11:11]Sock 8.First char is OK [12:11:11]request: POST /json_proto HTTP/1.0 [12:11:11]Method: POST [12:11:11]URL: /json_proto [12:11:11]Method is POST - this is cgi request [12:11:11]url: /json_proto [12:11:11]query_string will be loaded in cgi processing [12:11:11]execute_cgi json_proto POST (null) [12:11:11]execute_cgi path=json_proto method=POST [12:11:11]POST find Content-Length [12:11:11]Host: 172.17.50.3:8080 [12:11:11]Content-Length: 680 [12:11:11]Content-Type: application/json [12:11:11] [12:11:11]POST finish read [12:11:11]Found Content-Length = 680 [12:11:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:11]execute_script... [12:11: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)2885051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:11]POST & json_proto [12:11:11]process_json_proto [12:11:11]json parsed OK: [12:11:11]protocol is kg_v1.0 [12:11:11]action value=close_receipt [12:11:11]process_action close_receipt [12:11:11]cmd_close_receipt [12:11:11]MH_GetDate [12:11:11]Write to MH i2c: F0 00 00 F3 D8 BA [12:11:11]Write i2c OK [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: F0 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: F0 09 00 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: F0 09 00 F3 D8 00 6A F3 14 67 6B 98 1E 66 22 [12:11:11]GetLastDocTimeStamp 1729426174 [12:11:11]current date 1729426282 [12:11:11]FM_GetShiftState [12:11:11]SAM_PROTO_GetShiftState [12:11:11]wFMCommunicate request_size=4 [12:11:11]MH_SAM_APDU [12:11:11]CAPDU: 80 13 01 00 [12:11:11]Write to MH i2c: E2 08 00 F4 D8 80 13 01 00 00 00 00 00 49 [12:11:11]Write i2c OK [12:11:11]MH_I2C_Read... [12:11:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:11]Read from MH i2c: E2 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 0E 00 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 0E 00 F4 D8 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 4F [12:11:11]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:11:11]wFMCommunicate OK [12:11:11]SAM_PROTO_GetShiftState done [12:11:11]FM_GetShiftState done [12:11:11]opened in 1729383220 [12:11:11]opened+sec_in_day 1729469620 [12:11:11]quantity*price = 100050 [12:11:11]sum+1 = 100052 [12:11:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 178 20.10.2024 12:11 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69333 ФПД: 265167270006632 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121122&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69333&fm=265167270006632&tin=02508201610067®Number=0000000000156251&sum=100000 [12:11:13]StoreToDocumentArchive [12:11:13]shift 193 fd 69333 [12:11:13]save to /storage/0193/doc_00069333 [12:11:13]save last doc name /storage/0193/doc_00069333 to /storage/kkm_last_doc_name [12:11:13]save OK [12:11:13]Clear old archive folders... [12:11:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:11:13]tlvbuf is 007E1490 [12:11:13]SAM_PROTO_ClearQueue [12:11:13]wFMCommunicate request_size=4 [12:11:13]MH_SAM_APDU [12:11:13]CAPDU: 80 09 00 00 [12:11:13]Write to MH i2c: E2 08 00 01 D9 80 09 00 00 00 00 00 00 4C [12:11:13]Write i2c OK [12:11:13]MH_I2C_Read... [12:11:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:13]Read from MH i2c: E2 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: E2 03 00 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: E2 03 00 01 D9 00 90 00 4E [12:11:13]RAPDU: 90 00 [12:11:13]wFMCommunicate OK [12:11:13]SAM_PROTO_ClearQueue done [12:11:13]KKMCreateOFDPacket [12:11:13]OFDProtocolAddRootSTLVToBuf [12:11:13]FM_MakeSignedData [12:11:13]FM_MakeSignedData [12:11:13]SAM_PROTO_SignData [12:11:13]wFMCommunicate request_size=4 [12:11:13]MH_SAM_APDU [12:11:13]CAPDU: 80 0D 01 02 [12:11:13]Write to MH i2c: E2 08 00 02 D9 80 0D 01 02 00 00 00 00 54 [12:11:13]Write i2c OK [12:11:13]MH_I2C_Read... [12:11:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:13]Read from MH i2c: E2 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: E2 03 00 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: E2 03 00 02 D9 00 90 00 4F [12:11:13]RAPDU: 90 00 [12:11:13]wFMCommunicate OK [12:11:13]wFMCommunicate request_size=255 [12:11:13]MH_SAM_APDU [12:11: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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 6A F3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D5 0E 01 00 35 04 06 00 F1 2B 10 EF [12:11:13]Write to MH i2c: E2 02 01 03 D9 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 6A F3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D5 0E 01 00 35 04 06 00 F1 2B 10 EF 00 00 1D [12:11:13]Write i2c OK [12:11:13]MH_I2C_Read... [12:11:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:13]Read from MH i2c: E2 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: E2 03 00 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: E2 03 00 03 D9 00 90 00 50 [12:11:13]RAPDU: 90 00 [12:11:13]wFMCommunicate OK [12:11:13]wFMCommunicate request_size=7 [12:11:13]MH_SAM_APDU [12:11:13]CAPDU: 80 0D 02 02 02 4F 68 [12:11:13]Write to MH i2c: E2 0A 00 04 D9 80 0D 02 02 02 00 4F 68 00 00 12 [12:11:13]Write i2c OK [12:11:13]MH_I2C_Read... [12:11:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:13]Read from MH i2c: E2 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: E2 03 00 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: E2 03 00 04 D9 00 90 00 51 [12:11:13]RAPDU: 90 00 [12:11:13]wFMCommunicate OK [12:11:13]wFMCommunicate request_size=4 [12:11:13]MH_SAM_APDU [12:11:13]CAPDU: 80 0D 03 02 [12:11:13]Write to MH i2c: E2 08 00 05 D9 80 0D 03 02 00 00 00 00 59 [12:11:13]Write i2c OK [12:11:13]MH_I2C_Read... [12:11:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:13]Read from MH i2c: E2 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: E2 0B 00 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: E2 0B 00 05 D9 00 43 F6 BB BE 75 8B DD 95 90 00 7E [12:11:13]RAPDU: 43 F6 BB BE 75 8B DD 95 90 00 [12:11:13]wFMCommunicate OK [12:11:13]SAM_PROTO_SignData done [12:11:13]FM_MakeSignedData done [12:11:13]CreateOFDProtocolMessage [12:11:13]wFMCommunicate request_size=4 [12:11:13]MH_SAM_APDU [12:11:13]CAPDU: 80 11 00 00 [12:11:13]Write to MH i2c: E2 08 00 06 D9 80 11 00 00 00 00 00 00 59 [12:11:13]Write i2c OK [12:11:13]MH_I2C_Read... [12:11:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:13]Read from MH i2c: E2 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: E2 17 00 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: E2 17 00 06 D9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AB [12:11:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:11:13]wFMCommunicate OK [12:11:13]CreateOFDProtocolMessage done [12:11:13]OFDSenderStorePacket 69333 [12:11:13]StoreOFDPacket docnum=69333 [12:11:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 A5 37 04 01 2D B6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 6A F3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D5 0E 01 00 35 04 06 00 F1 2B 10 EF 4F 68 43 F6 BB BE 75 8B DD 95 [12:11:13]CheckFolder [12:11:13]dirname=/storage/ofd_packets [12:11:13]CheckFolder done [12:11:13]ProducePacketName [12:11:13]name=ofd_packets/00069333 [12:11:13]NVStorageSaveData ofd_packets/00069333 [12:11:13]File name is /storage/ofd_packets/00069333 [12:11:13]Write 298 bytes [12:11:13]NVStorageSaveData done [12:11:13]OFDSenderStorePacket done [12:11:13]KKMCreateOFDPacket done [12:11:13]NVStorageSaveData kkm_last_timestamp [12:11:13]File name is /storage/kkm_last_timestamp [12:11:13]Write 4 bytes [12:11:13]NVStorageSaveData done [12:11:13]ExternCall_PrintAddStr [12:11:13]wPrintStart [12:11:13]Write to MH i2c: 01 00 00 07 D9 E0 [12:11:13]Write i2c OK [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: 01 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: 01 07 00 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: 01 07 00 07 D9 00 00 00 00 00 FF 0F F5 [12:11:13]RasterBufferAndPrint [12:11:13]line Счет N : (1)2885051 [12:11:13]line ИНН: 02508201610067 [12:11:13]line Контрольно-Кассовый Чек [12:11:13]line ПРОДАЖА [12:11:13]line ТРК (МРК, ГНК) : 61 [12:11:13]line Товар: 2710194210 [12:11:13]line ДТ-К-5 [12:11:13]line 13.130 * 76.20 [12:11:13]line = 1000.51 [12:11:13]line НДС 12% НСП 1% [12:11:13]line > о реализуемом товаре [12:11:13]line ОКРУГЛЕНИЕ: -0.51 [12:11:13]line ИТОГО: 1000.00 [12:11:13]line Внесено: 1000.00 [12:11:13]line СДАЧА: 0.00 [12:11:13]line НСП 1% : 8.85 [12:11:13]line НДС 12% : 106.25 [12:11:13]line Наличными: 1000.00 [12:11:13]line Безнал.: 0.00 [12:11:13]line Место: АЗС № 85 "Партнер Нефть" [12:11:13]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:11:13]line СНО: Общий режим [12:11:13]line Чек 178 20.10.2024 12:11 [12:11:13]line Смена: 193 ФФД: 1.0 [12:11:13]line ЗНМ: 0300000167 [12:11:13]line РНМ: 0000000000156251 [12:11:13]line Версия ККМ: v1.0 [12:11:13]line ФМ: 0000000000963346 [12:11:13]line ФД: 69333 [12:11:13]line ФПД: 265167270006632 [12:11:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121122&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69333&fm=265167270006632&tin=02508201610067®Number=0000000000156251&sum=100000 [12:11:13]OFD Sender: Processing packet 69333 [packets to send 18, broken 17] [12:11:13]ProducePacketName [12:11:13]name=ofd_packets/00069333 [12:11:13]OFD Sender: To server: pG, [12:11:13]CommunicateWithHost lk.salyk.kg:30040 [12:11:13]ConnectInit lk.salyk.kg [12:11:13]written 0, free lines is 4095 [12:11:13]Connected sock=10 [12:11:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 A5 37 04 01 2D B6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 6A F3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D5 0E 01 00 35 04 06 00 F1 2B 10 EF 4F 68 43 F6 BB BE 75 8B DD 95 [12:11:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 30 89 47 00 3A 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D5 0E 01 00 F4 03 04 00 10 9D 14 67 B6 04 01 00 00 78 17 60 4C A9 6F 9D DD [12:11:14]CommunicateWithHost err = 0 [12:11:14]CheckOFDResponse [12:11:14]1017 (14) - 77093643461234 [12:11:14]1041 (16) - 0000000000963346 [12:11:14]1040 (4) - 69333 [12:11:14]1012 (4) - 20.10.2024 06:02 [12:11:14]1206 (1) - 0 [12:11:14]OFD Sender: Remove packet 69333 [12:11:14]ProducePacketName [12:11:14]name=ofd_packets/00069333 [12:11:14]NVStorageDeleteData [12:11:14]Write to MH i2c: 01 00 00 32 D9 0B [12:11:14]Write i2c OK [12:11:14]MH_I2C_Read... [12:11:14]Read from MH i2c: 01 [12:11:14]MH_I2C_Read... [12:11:14]Read from MH i2c: 01 07 00 [12:11:14]MH_I2C_Read... [12:11:14]Read from MH i2c: 01 07 00 32 D9 00 00 00 00 00 F6 0C 14 [12:11:14]RasterBufferAndPrint [12:11:14]line [12:11:14]line [12:11:14]line [12:11:14]line [12:11:14]line [12:11:14]written 0, free lines is 3327 [12:11:14]MH_Cut [12:11:14]Write to MH i2c: D1 01 00 39 D9 01 E4 [12:11:14]Write i2c OK [12:11:14]MH_I2C_Read... [12:11:14]Read from MH i2c: D1 [12:11:14]MH_I2C_Read... [12:11:14]Read from MH i2c: D1 01 00 [12:11:14]MH_I2C_Read... [12:11:14]Read from MH i2c: D1 01 00 39 D9 00 E3 [12:11:14]Write to MH i2c: 01 00 00 3A D9 13 [12:11:14]Write i2c OK [12:11:14]MH_I2C_Read... [12:11:14]OFD Sender: No OFD packet to send [12:11:15]*** Cut start [12:11:15]*** Partial cut [12:11:15]*** CUTSNS_PIN = 1 [12:11:15]*** CUTSNS_PIN = 0 [12:11:15]*** Brake cut motor [12:11:15]Read from MH i2c: 01 [12:11:15]MH_I2C_Read... [12:11:15]*** Stop cut motor [12:11:15]*** Cut end [12:11:15]Read from MH i2c: 01 07 00 [12:11:15]MH_I2C_Read... [12:11:15]Read from MH i2c: 01 07 00 3A D9 00 00 00 00 00 FF 0F 28 [12:11:15]process_action close_receipt done [12:11:15]requested_data is exist [12:11:15]produce_requested_data [12:11:15]requested_item fm.sn is exist - process it [12:11:15]wFMCommunicate request_size=4 [12:11:15]MH_SAM_APDU [12:11:15]CAPDU: 80 11 00 00 [12:11:15]Write to MH i2c: E2 08 00 3B D9 80 11 00 00 00 00 00 00 8E [12:11:15]Write i2c OK [12:11:15]MH_I2C_Read... [12:11:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:15]Read from MH i2c: E2 [12:11:15]MH_I2C_Read... [12:11:15]Read from MH i2c: E2 17 00 [12:11:15]MH_I2C_Read... [12:11:15]Read from MH i2c: E2 17 00 3B D9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E0 [12:11:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:11:15]wFMCommunicate OK [12:11:15]requested_item fd.num is exist - process it [12:11:15]SAM_PROTO_GetFieldsCounters [12:11:15]wFMCommunicate request_size=4 [12:11:15]MH_SAM_APDU [12:11:15]CAPDU: 80 13 00 00 [12:11:15]Write to MH i2c: E2 08 00 3C D9 80 13 00 00 00 00 00 00 91 [12:11:15]Write i2c OK [12:11:15]MH_I2C_Read... [12:11:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:15]Read from MH i2c: E2 [12:11:15]MH_I2C_Read... [12:11:15]Read from MH i2c: E2 62 00 [12:11:15]MH_I2C_Read... [12:11:15]Read from MH i2c: E2 62 00 3C D9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D5 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [12:11:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D5 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:11:15]wFMCommunicate OK [12:11:15]SAM_PROTO_GetFieldsCounters done [12:11:15]requested_item shift.num is exist - process it [12:11:15]requested_item shift.opened is exist - process it [12:11:15]req_shift_opened [12:11:15]FM_GetShiftState [12:11:15]SAM_PROTO_GetShiftState [12:11:15]wFMCommunicate request_size=4 [12:11:15]MH_SAM_APDU [12:11:15]CAPDU: 80 13 01 00 [12:11:15]Write to MH i2c: E2 08 00 3D D9 80 13 01 00 00 00 00 00 93 [12:11:15]Write i2c OK [12:11:15]MH_I2C_Read... [12:11:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:15]Read from MH i2c: E2 [12:11:15]MH_I2C_Read... [12:11:15]Read from MH i2c: E2 0E 00 [12:11:15]MH_I2C_Read... [12:11:15]Read from MH i2c: E2 0E 00 3D D9 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 99 [12:11:15]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:11:15]wFMCommunicate OK [12:11:15]SAM_PROTO_GetShiftState done [12:11:15]FM_GetShiftState done [12:11:15]req_shift_opened done [12:11:15]requested_item shift.open_date is exist - process it [12:11:15]req_shift_open_date [12:11:15]req_shift_open_date done [12:11:15]produce_requested_data done [12:11:15]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69333,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [12:11:15]process_action_free close_receipt [12:11:15]json_value_free [12:11:15]json_value_free done [12:11:15]process_json_proto returns [12:11:15]Send response to host [12:11:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69333,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [12:11:15]free response buf [12:11:15]execute_script done [12:11:15]execute_script returns [12:11:15]free content buf [12:11:15]Sock 8.Close socket [12:11:15]Sock 8.Thread stoped [12:11:16]accept exits with 9 [12:11:16]New connection [12:11:16]New thread 3067116900 created [12:11:16]Thread 3067260260 joined [12:11:16]Waiting for new connection... [12:11:16] Sock 9.Parse request [12:11:16]Sock 9.Check first char [12:11:16]Sock 9.First char is OK [12:11:16]request: POST /json_proto HTTP/1.0 [12:11:16]Method: POST [12:11:16]URL: /json_proto [12:11:16]Method is POST - this is cgi request [12:11:16]url: /json_proto [12:11:16]query_string will be loaded in cgi processing [12:11:16]execute_cgi json_proto POST (null) [12:11:16]execute_cgi path=json_proto method=POST [12:11:16]POST find Content-Length [12:11:16]Host: 172.17.50.3:8080 [12:11:16]Content-Length: 678 [12:11:16]Content-Type: application/json [12:11:16] [12:11:16]POST finish read [12:11:16]Found Content-Length = 678 [12:11:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:16]execute_script... [12:11: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)2885052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:16]POST & json_proto [12:11:16]process_json_proto [12:11:16]json parsed OK: [12:11:16]protocol is kg_v1.0 [12:11:16]action value=close_receipt [12:11:16]process_action close_receipt [12:11:16]cmd_close_receipt [12:11:16]MH_GetDate [12:11:16]Write to MH i2c: F0 00 00 3E D9 06 [12:11:16]Write i2c OK [12:11:16]MH_I2C_Read... [12:11:16]Read from MH i2c: F0 [12:11:16]MH_I2C_Read... [12:11:16]Read from MH i2c: F0 09 00 [12:11:16]MH_I2C_Read... [12:11:16]Read from MH i2c: F0 09 00 3E D9 00 6E F3 14 67 6B 98 1E 66 72 [12:11:16]GetLastDocTimeStamp 1729426282 [12:11:16]current date 1729426286 [12:11:16]FM_GetShiftState [12:11:16]SAM_PROTO_GetShiftState [12:11:16]wFMCommunicate request_size=4 [12:11:16]MH_SAM_APDU [12:11:16]CAPDU: 80 13 01 00 [12:11:16]Write to MH i2c: E2 08 00 3F D9 80 13 01 00 00 00 00 00 95 [12:11:16]Write i2c OK [12:11:16]MH_I2C_Read... [12:11:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:16]Read from MH i2c: E2 [12:11:16]MH_I2C_Read... [12:11:16]Read from MH i2c: E2 0E 00 [12:11:16]MH_I2C_Read... [12:11:16]Read from MH i2c: E2 0E 00 3F D9 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 9B [12:11:16]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:11:16]wFMCommunicate OK [12:11:16]SAM_PROTO_GetShiftState done [12:11:16]FM_GetShiftState done [12:11:16]opened in 1729383220 [12:11:16]opened+sec_in_day 1729469620 [12:11:16]quantity*price = 50041 [12:11:16]sum+1 = 50042 [12:11:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 179 20.10.2024 12:11 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69334 ФПД: 54811515393298 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121126&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69334&fm=54811515393298&tin=02508201610067®Number=0000000000156251&sum=50000 [12:11:17]StoreToDocumentArchive [12:11:17]shift 193 fd 69334 [12:11:17]save to /storage/0193/doc_00069334 [12:11:17]save last doc name /storage/0193/doc_00069334 to /storage/kkm_last_doc_name [12:11:17]save OK [12:11:17]Clear old archive folders... [12:11:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:11:17]tlvbuf is 00643100 [12:11:17]SAM_PROTO_ClearQueue [12:11:17]wFMCommunicate request_size=4 [12:11:17]MH_SAM_APDU [12:11:17]CAPDU: 80 09 00 00 [12:11:17]Write to MH i2c: E2 08 00 4C D9 80 09 00 00 00 00 00 00 97 [12:11:17]Write i2c OK [12:11:17]MH_I2C_Read... [12:11:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:17]Read from MH i2c: E2 [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: E2 03 00 [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: E2 03 00 4C D9 00 90 00 99 [12:11:17]RAPDU: 90 00 [12:11:17]wFMCommunicate OK [12:11:17]SAM_PROTO_ClearQueue done [12:11:17]KKMCreateOFDPacket [12:11:17]OFDProtocolAddRootSTLVToBuf [12:11:17]FM_MakeSignedData [12:11:17]FM_MakeSignedData [12:11:17]SAM_PROTO_SignData [12:11:17]wFMCommunicate request_size=4 [12:11:17]MH_SAM_APDU [12:11:17]CAPDU: 80 0D 01 02 [12:11:17]Write to MH i2c: E2 08 00 4D D9 80 0D 01 02 00 00 00 00 9F [12:11:17]Write i2c OK [12:11:17]MH_I2C_Read... [12:11:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:17]Read from MH i2c: E2 [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: E2 03 00 [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: E2 03 00 4D D9 00 90 00 9A [12:11:17]RAPDU: 90 00 [12:11:17]wFMCommunicate OK [12:11:17]wFMCommunicate request_size=255 [12:11:17]MH_SAM_APDU [12:11: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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 6E F3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D6 0E 01 00 35 04 06 00 31 [12:11:17]Write to MH i2c: E2 02 01 4E D9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 6E F3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D6 0E 01 00 35 04 06 00 31 00 00 8E [12:11:17]Write i2c OK [12:11:17]MH_I2C_Read... [12:11:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:18]Read from MH i2c: E2 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: E2 03 00 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: E2 03 00 4E D9 00 90 00 9B [12:11:18]RAPDU: 90 00 [12:11:18]wFMCommunicate OK [12:11:18]wFMCommunicate request_size=10 [12:11:18]MH_SAM_APDU [12:11:18]CAPDU: 80 0D 02 02 05 D9 CC E7 95 12 [12:11:18]Write to MH i2c: E2 0D 00 4F D9 80 0D 02 02 05 00 D9 CC E7 95 12 00 00 DF [12:11:18]Write i2c OK [12:11:18]MH_I2C_Read... [12:11:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:18]Read from MH i2c: E2 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: E2 03 00 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: E2 03 00 4F D9 00 90 00 9C [12:11:18]RAPDU: 90 00 [12:11:18]wFMCommunicate OK [12:11:18]wFMCommunicate request_size=4 [12:11:18]MH_SAM_APDU [12:11:18]CAPDU: 80 0D 03 02 [12:11:18]Write to MH i2c: E2 08 00 50 D9 80 0D 03 02 00 00 00 00 A4 [12:11:18]Write i2c OK [12:11:18]MH_I2C_Read... [12:11:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:18]Read from MH i2c: E2 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: E2 0B 00 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: E2 0B 00 50 D9 00 3F 9F E4 99 34 C7 F5 45 90 00 35 [12:11:18]RAPDU: 3F 9F E4 99 34 C7 F5 45 90 00 [12:11:18]wFMCommunicate OK [12:11:18]SAM_PROTO_SignData done [12:11:18]FM_MakeSignedData done [12:11:18]CreateOFDProtocolMessage [12:11:18]wFMCommunicate request_size=4 [12:11:18]MH_SAM_APDU [12:11:18]CAPDU: 80 11 00 00 [12:11:18]Write to MH i2c: E2 08 00 51 D9 80 11 00 00 00 00 00 00 A4 [12:11:18]Write i2c OK [12:11:18]MH_I2C_Read... [12:11:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:18]Read from MH i2c: E2 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: E2 17 00 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: E2 17 00 51 D9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F6 [12:11:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:11:18]wFMCommunicate OK [12:11:18]CreateOFDProtocolMessage done [12:11:18]OFDSenderStorePacket 69334 [12:11:18]StoreOFDPacket docnum=69334 [12:11:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 1C 47 07 01 D8 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 6E F3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D6 0E 01 00 35 04 06 00 31 D9 CC E7 95 12 3F 9F E4 99 34 C7 F5 45 [12:11:18]CheckFolder [12:11:18]dirname=/storage/ofd_packets [12:11:18]CheckFolder done [12:11:18]ProducePacketName [12:11:18]name=ofd_packets/00069334 [12:11:18]NVStorageSaveData ofd_packets/00069334 [12:11:18]File name is /storage/ofd_packets/00069334 [12:11:18]Write 301 bytes [12:11:18]NVStorageSaveData done [12:11:18]OFDSenderStorePacket done [12:11:18]KKMCreateOFDPacket done [12:11:18]NVStorageSaveData kkm_last_timestamp [12:11:18]File name is /storage/kkm_last_timestamp [12:11:18]Write 4 bytes [12:11:18]NVStorageSaveData done [12:11:18]ExternCall_PrintAddStr [12:11:18]wPrintStart [12:11:18]Write to MH i2c: 01 00 00 52 D9 2B [12:11:18]OFD Sender: Processing packet 69334 [packets to send 18, broken 17] [12:11:18]ProducePacketName [12:11:18]name=ofd_packets/00069334 [12:11:18]OFD Sender: To server: pG, [12:11:18]CommunicateWithHost lk.salyk.kg:30040 [12:11:18]ConnectInit lk.salyk.kg [12:11:18]Write i2c OK [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: 01 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: 01 07 00 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: 01 07 00 52 D9 00 00 00 00 00 FF 0F 40 [12:11:18]RasterBufferAndPrint [12:11:18]line Счет N : (1)2885052 [12:11:18]line ИНН: 02508201610067 [12:11:18]line Контрольно-Кассовый Чек [12:11:18]line ПРОДАЖА [12:11:18]line ТРК (МРК, ГНК) : 12 [12:11:18]line Товар: 2710124130 [12:11:18]line Аи-92-К-5 [12:11:18]line 7.480 * 66.90 [12:11:18]line = 500.41 [12:11:18]line НДС 12% НСП 1% [12:11:18]line > о реализуемом товаре [12:11:18]line ОКРУГЛЕНИЕ: -0.41 [12:11:18]line ИТОГО: 500.00 [12:11:18]line Внесено: 500.00 [12:11:18]line СДАЧА: 0.00 [12:11:18]line НСП 1% : 4.43 [12:11:18]line НДС 12% : 53.14 [12:11:18]line Наличными: 500.00 [12:11:18]line Безнал.: 0.00 [12:11:18]line Место: АЗС № 85 "Партнер Нефть" [12:11:18]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:11:18]line СНО: Общий режим [12:11:18]line Чек 179 20.10.2024 12:11 [12:11:18]line Смена: 193 ФФД: 1.0 [12:11:18]line ЗНМ: 0300000167 [12:11:18]line РНМ: 0000000000156251 [12:11:18]line Версия ККМ: v1.0 [12:11:18]line ФМ: 0000000000963346 [12:11:18]line ФД: 69334 [12:11:18]line ФПД: 54811515393298 [12:11:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121126&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69334&fm=54811515393298&tin=02508201610067®Number=0000000000156251&sum=50000 [12:11:18]Connected sock=10 [12:11:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 1C 47 07 01 D8 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 6E F3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D6 0E 01 00 35 04 06 00 31 D9 CC E7 95 12 3F 9F E4 99 34 C7 F5 45 [12:11:18]written 0, free lines is 4095 [12:11:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 FF BF 47 00 D3 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D6 0E 01 00 F4 03 04 00 15 9D 14 67 B6 04 01 00 00 3A 8D 30 CE 67 A3 84 54 [12:11:18]CommunicateWithHost err = 0 [12:11:18]CheckOFDResponse [12:11:18]1017 (14) - 77093643461234 [12:11:18]1041 (16) - 0000000000963346 [12:11:18]1040 (4) - 69334 [12:11:18]1012 (4) - 20.10.2024 06:03 [12:11:18]1206 (1) - 0 [12:11:18]OFD Sender: Remove packet 69334 [12:11:18]ProducePacketName [12:11:18]name=ofd_packets/00069334 [12:11:18]NVStorageDeleteData [12:11:19]Write to MH i2c: 01 00 00 7D D9 56 [12:11:19]Write i2c OK [12:11:19]MH_I2C_Read... [12:11:19]Read from MH i2c: 01 [12:11:19]MH_I2C_Read... [12:11:19]Read from MH i2c: 01 07 00 [12:11:19]MH_I2C_Read... [12:11:19]Read from MH i2c: 01 07 00 7D D9 00 00 00 00 00 F4 0C 5D [12:11:19]RasterBufferAndPrint [12:11:19]line [12:11:19]line [12:11:19]line [12:11:19]line [12:11:19]line [12:11:19]written 0, free lines is 3331 [12:11:19]MH_Cut [12:11:19]Write to MH i2c: D1 01 00 84 D9 01 2F [12:11:19]Write i2c OK [12:11:19]MH_I2C_Read... [12:11:19]Read from MH i2c: D1 [12:11:19]MH_I2C_Read... [12:11:19]Read from MH i2c: D1 01 00 [12:11:19]MH_I2C_Read... [12:11:19]Read from MH i2c: D1 01 00 84 D9 00 2E [12:11:19]Write to MH i2c: 01 00 00 85 D9 5E [12:11:19]Write i2c OK [12:11:19]MH_I2C_Read... [12:11:19]OFD Sender: No OFD packet to send [12:11:19]*** Cut start [12:11:19]*** Partial cut [12:11:19]*** CUTSNS_PIN = 1 [12:11:19]*** CUTSNS_PIN = 0 [12:11:20]*** Brake cut motor [12:11:20]Read from MH i2c: 01 [12:11:20]MH_I2C_Read... [12:11:20]*** Stop cut motor [12:11:20]*** Cut end [12:11:20]Read from MH i2c: 01 07 00 [12:11:20]MH_I2C_Read... [12:11:20]Read from MH i2c: 01 07 00 85 D9 00 00 00 00 00 FF 0F 73 [12:11:20]process_action close_receipt done [12:11:20]requested_data is exist [12:11:20]produce_requested_data [12:11:20]requested_item fm.sn is exist - process it [12:11:20]wFMCommunicate request_size=4 [12:11:20]MH_SAM_APDU [12:11:20]CAPDU: 80 11 00 00 [12:11:20]Write to MH i2c: E2 08 00 86 D9 80 11 00 00 00 00 00 00 D9 [12:11:20]Write i2c OK [12:11:20]MH_I2C_Read... [12:11:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:20]Read from MH i2c: E2 [12:11:20]MH_I2C_Read... [12:11:20]Read from MH i2c: E2 17 00 [12:11:20]MH_I2C_Read... [12:11:20]Read from MH i2c: E2 17 00 86 D9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2B [12:11:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:11:20]wFMCommunicate OK [12:11:20]requested_item fd.num is exist - process it [12:11:20]SAM_PROTO_GetFieldsCounters [12:11:20]wFMCommunicate request_size=4 [12:11:20]MH_SAM_APDU [12:11:20]CAPDU: 80 13 00 00 [12:11:20]Write to MH i2c: E2 08 00 87 D9 80 13 00 00 00 00 00 00 DC [12:11:20]Write i2c OK [12:11:20]MH_I2C_Read... [12:11:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:20]Read from MH i2c: E2 [12:11:20]MH_I2C_Read... [12:11:20]Read from MH i2c: E2 62 00 [12:11:20]MH_I2C_Read... [12:11:20]Read from MH i2c: E2 62 00 87 D9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D6 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [12:11:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D6 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:11:20]wFMCommunicate OK [12:11:20]SAM_PROTO_GetFieldsCounters done [12:11:20]requested_item shift.num is exist - process it [12:11:20]requested_item shift.opened is exist - process it [12:11:20]req_shift_opened [12:11:20]FM_GetShiftState [12:11:20]SAM_PROTO_GetShiftState [12:11:20]wFMCommunicate request_size=4 [12:11:20]MH_SAM_APDU [12:11:20]CAPDU: 80 13 01 00 [12:11:20]Write to MH i2c: E2 08 00 88 D9 80 13 01 00 00 00 00 00 DE [12:11:20]Write i2c OK [12:11:20]MH_I2C_Read... [12:11:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:20]Read from MH i2c: E2 [12:11:20]MH_I2C_Read... [12:11:20]Read from MH i2c: E2 0E 00 [12:11:20]MH_I2C_Read... [12:11:20]Read from MH i2c: E2 0E 00 88 D9 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 E4 [12:11:20]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:11:20]wFMCommunicate OK [12:11:20]SAM_PROTO_GetShiftState done [12:11:20]FM_GetShiftState done [12:11:20]req_shift_opened done [12:11:20]requested_item shift.open_date is exist - process it [12:11:20]req_shift_open_date [12:11:20]req_shift_open_date done [12:11:20]produce_requested_data done [12:11:20]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69334,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [12:11:20]process_action_free close_receipt [12:11:20]json_value_free [12:11:20]json_value_free done [12:11:20]process_json_proto returns [12:11:20]Send response to host [12:11:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69334,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [12:11:20]free response buf [12:11:20]execute_script done [12:11:20]execute_script returns [12:11:20]free content buf [12:11:20]Sock 9.Close socket [12:11:20]Sock 9.Thread stoped [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:49]OFD Sender: No OFD packet to send [12:11:54]OFD Sender: No OFD packet to send [12:11:58]accept exits with 8 [12:11:58]New connection [12:11:58]New thread 3067260260 created [12:11:58]Thread 3067116900 joined [12:11:58]Waiting for new connection... [12:11:58] Sock 8.Parse request [12:11:58]Sock 8.Check first char [12:11:58]Sock 8.First char is OK [12:11:58]request: POST /json_proto HTTP/1.0 [12:11:58]Method: POST [12:11:58]URL: /json_proto [12:11:58]Method is POST - this is cgi request [12:11:58]url: /json_proto [12:11:58]query_string will be loaded in cgi processing [12:11:58]execute_cgi json_proto POST (null) [12:11:58]execute_cgi path=json_proto method=POST [12:11:58]POST find Content-Length [12:11:58]Host: 172.17.50.3:8080 [12:11:58]Content-Length: 678 [12:11:58]Content-Type: application/json [12:11:58] [12:11:58]POST finish read [12:11:58]Found Content-Length = 678 [12:11:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:58]execute_script... [12:11: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)2885053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:58]POST & json_proto [12:11:58]process_json_proto [12:11:58]json parsed OK: [12:11:58]protocol is kg_v1.0 [12:11:58]action value=close_receipt [12:11:58]process_action close_receipt [12:11:58]cmd_close_receipt [12:11:58]MH_GetDate [12:11:58]Write to MH i2c: F0 00 00 89 D9 51 [12:11:58]Write i2c OK [12:11:58]MH_I2C_Read... [12:11:58]Read from MH i2c: F0 [12:11:58]MH_I2C_Read... [12:11:58]Read from MH i2c: F0 09 00 [12:11:58]MH_I2C_Read... [12:11:58]Read from MH i2c: F0 09 00 89 D9 00 98 F3 14 67 6B 98 1E 66 E7 [12:11:58]GetLastDocTimeStamp 1729426286 [12:11:58]current date 1729426328 [12:11:58]FM_GetShiftState [12:11:58]SAM_PROTO_GetShiftState [12:11:58]wFMCommunicate request_size=4 [12:11:58]MH_SAM_APDU [12:11:58]CAPDU: 80 13 01 00 [12:11:58]Write to MH i2c: E2 08 00 8A D9 80 13 01 00 00 00 00 00 E0 [12:11:58]Write i2c OK [12:11:58]MH_I2C_Read... [12:11:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:58]Read from MH i2c: E2 [12:11:58]MH_I2C_Read... [12:11:58]Read from MH i2c: E2 0E 00 [12:11:58]MH_I2C_Read... [12:11:58]Read from MH i2c: E2 0E 00 8A D9 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 E6 [12:11:58]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:11:58]wFMCommunicate OK [12:11:58]SAM_PROTO_GetShiftState done [12:11:58]FM_GetShiftState done [12:11:58]opened in 1729383220 [12:11:58]opened+sec_in_day 1729469620 [12:11:58]quantity*price = 50041 [12:11:58]sum+1 = 50042 [12:11:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 180 20.10.2024 12:12 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69335 ФПД: 142184172139715 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121208&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69335&fm=142184172139715&tin=02508201610067®Number=0000000000156251&sum=50000 [12:11:59]StoreToDocumentArchive [12:11:59]shift 193 fd 69335 [12:11:59]save to /storage/0193/doc_00069335 [12:11:59]save last doc name /storage/0193/doc_00069335 to /storage/kkm_last_doc_name [12:11:59]save OK [12:11:59]Clear old archive folders... [12:11:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:11:59]tlvbuf is 0050C710 [12:11:59]SAM_PROTO_ClearQueue [12:11:59]wFMCommunicate request_size=4 [12:11:59]MH_SAM_APDU [12:11:59]CAPDU: 80 09 00 00 [12:11:59]Write to MH i2c: E2 08 00 97 D9 80 09 00 00 00 00 00 00 E2 [12:11:59]Write i2c OK [12:11:59]MH_I2C_Read... [12:11:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:59]Read from MH i2c: E2 [12:11:59]MH_I2C_Read... [12:11:59]Read from MH i2c: E2 03 00 [12:11:59]MH_I2C_Read... [12:11:59]Read from MH i2c: E2 03 00 97 D9 00 90 00 E4 [12:11:59]RAPDU: 90 00 [12:11:59]wFMCommunicate OK [12:11:59]SAM_PROTO_ClearQueue done [12:11:59]KKMCreateOFDPacket [12:11:59]OFDProtocolAddRootSTLVToBuf [12:11:59]FM_MakeSignedData [12:11:59]FM_MakeSignedData [12:11:59]SAM_PROTO_SignData [12:11:59]wFMCommunicate request_size=4 [12:11:59]MH_SAM_APDU [12:11:59]CAPDU: 80 0D 01 02 [12:11:59]Write to MH i2c: E2 08 00 98 D9 80 0D 01 02 00 00 00 00 EA [12:11:59]Write i2c OK [12:11:59]MH_I2C_Read... [12:11:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:59]Read from MH i2c: E2 [12:11:59]MH_I2C_Read... [12:11:59]Read from MH i2c: E2 03 00 [12:11:59]MH_I2C_Read... [12:11:59]Read from MH i2c: E2 03 00 98 D9 00 90 00 E5 [12:11:59]RAPDU: 90 00 [12:11:59]wFMCommunicate OK [12:11:59]wFMCommunicate request_size=255 [12:11:59]MH_SAM_APDU [12:11:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 98 F3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D7 0E 01 00 35 04 06 00 81 [12:11:59]Write to MH i2c: E2 02 01 99 D9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 98 F3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D7 0E 01 00 35 04 06 00 81 00 00 55 [12:11:59]Write i2c OK [12:11:59]MH_I2C_Read... [12:11:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:00]Read from MH i2c: E2 [12:12:00]MH_I2C_Read... [12:12:00]Read from MH i2c: E2 03 00 [12:12:00]MH_I2C_Read... [12:12:00]Read from MH i2c: E2 03 00 99 D9 00 90 00 E6 [12:12:00]RAPDU: 90 00 [12:12:00]wFMCommunicate OK [12:12:00]wFMCommunicate request_size=10 [12:12:00]MH_SAM_APDU [12:12:00]CAPDU: 80 0D 02 02 05 50 D5 12 B4 C3 [12:12:00]Write to MH i2c: E2 0D 00 9A D9 80 0D 02 02 05 00 50 D5 12 B4 C3 00 00 A5 [12:12:00]Write i2c OK [12:12:00]MH_I2C_Read... [12:12:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:00]Read from MH i2c: E2 [12:12:00]MH_I2C_Read... [12:12:00]Read from MH i2c: E2 03 00 [12:12:00]MH_I2C_Read... [12:12:00]Read from MH i2c: E2 03 00 9A D9 00 90 00 E7 [12:12:00]RAPDU: 90 00 [12:12:00]wFMCommunicate OK [12:12:00]wFMCommunicate request_size=4 [12:12:00]MH_SAM_APDU [12:12:00]CAPDU: 80 0D 03 02 [12:12:00]Write to MH i2c: E2 08 00 9B D9 80 0D 03 02 00 00 00 00 EF [12:12:00]Write i2c OK [12:12:00]MH_I2C_Read... [12:12:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:12:00]Read from MH i2c: E2 [12:12:00]MH_I2C_Read... [12:12:00]Read from MH i2c: E2 0B 00 [12:12:00]MH_I2C_Read... [12:12:00]Read from MH i2c: E2 0B 00 9B D9 00 ED BB E7 4F 53 BD EA 73 90 00 3B [12:12:00]RAPDU: ED BB E7 4F 53 BD EA 73 90 00 [12:12:00]wFMCommunicate OK [12:12:00]SAM_PROTO_SignData done [12:12:00]FM_MakeSignedData done [12:12:00]CreateOFDProtocolMessage [12:12:00]wFMCommunicate request_size=4 [12:12:00]MH_SAM_APDU [12:12:00]CAPDU: 80 11 00 00 [12:12:00]Write to MH i2c: E2 08 00 9C D9 80 11 00 00 00 00 00 00 EF [12:12:00]Write i2c OK [12:12:00]MH_I2C_Read... [12:12:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:00]Read from MH i2c: E2 [12:12:00]MH_I2C_Read... [12:12:00]Read from MH i2c: E2 17 00 [12:12:00]MH_I2C_Read... [12:12:00]Read from MH i2c: E2 17 00 9C D9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 41 [12:12:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:12:00]wFMCommunicate OK [12:12:00]CreateOFDProtocolMessage done [12:12:00]OFDSenderStorePacket 69335 [12:12:00]StoreOFDPacket docnum=69335 [12:12:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 15 50 07 01 40 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 98 F3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D7 0E 01 00 35 04 06 00 81 50 D5 12 B4 C3 ED BB E7 4F 53 BD EA 73 [12:12:00]CheckFolder [12:12:00]dirname=/storage/ofd_packets [12:12:00]CheckFolder done [12:12:00]ProducePacketName [12:12:00]name=ofd_packets/00069335 [12:12:00]NVStorageSaveData ofd_packets/00069335 [12:12:00]File name is /storage/ofd_packets/00069335 [12:12:00]Write 301 bytes [12:12:00]NVStorageSaveData done [12:12:00]OFDSenderStorePacket done [12:12:00]KKMCreateOFDPacket done [12:12:00]NVStorageSaveData kkm_last_timestamp [12:12:00]File name is /storage/kkm_last_timestamp [12:12:00]Write 4 bytes [12:12:00]NVStorageSaveData done [12:12:00]ExternCall_PrintAddStr [12:12:00]wPrintStart [12:12:00]Write to MH i2c: 01 00 00 9D D9 76 [12:12:00]Write i2c OK [12:12:00]MH_I2C_Read... [12:12:00]Read from MH i2c: 01 [12:12:00]MH_I2C_Read... [12:12:00]Read from MH i2c: 01 07 00 [12:12:00]MH_I2C_Read... [12:12:00]Read from MH i2c: 01 07 00 9D D9 00 00 00 00 00 FF 0F 8B [12:12:00]RasterBufferAndPrint [12:12:00]line Счет N : (1)2885053 [12:12:00]line ИНН: 02508201610067 [12:12:00]line Контрольно-Кассовый Чек [12:12:00]line ПРОДАЖА [12:12:00]line ТРК (МРК, ГНК) : 32 [12:12:00]line Товар: 2710124130 [12:12:00]line Аи-92-К-5 [12:12:00]line 7.480 * 66.90 [12:12:00]line = 500.41 [12:12:00]line НДС 12% НСП 1% [12:12:00]line > о реализуемом товаре [12:12:00]line ОКРУГЛЕНИЕ: -0.41 [12:12:00]line ИТОГО: 500.00 [12:12:00]line Внесено: 500.00 [12:12:00]line СДАЧА: 0.00 [12:12:00]line НСП 1% : 4.43 [12:12:00]line НДС 12% : 53.14 [12:12:00]line Наличными: 500.00 [12:12:00]line Безнал.: 0.00 [12:12:00]line Место: АЗС № 85 "Партнер Нефть" [12:12:00]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:12:00]line СНО: Общий режим [12:12:00]line Чек 180 20.10.2024 12:12 [12:12:00]line Смена: 193 ФФД: 1.0 [12:12:00]line ЗНМ: 0300000167 [12:12:00]line РНМ: 0000000000156251 [12:12:00]line Версия ККМ: v1.0 [12:12:00]line ФМ: 0000000000963346 [12:12:00]line ФД: 69335 [12:12:00]line ФПД: 142184172139715 [12:12:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121208&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69335&fm=142184172139715&tin=02508201610067®Number=0000000000156251&sum=50000 [12:12:00]OFD Sender: Processing packet 69335 [packets to send 18, broken 17] [12:12:00]ProducePacketName [12:12:00]name=ofd_packets/00069335 [12:12:00]OFD Sender: To server: pG, [12:12:00]CommunicateWithHost lk.salyk.kg:30040 [12:12:00]ConnectInit lk.salyk.kg [12:12:00]written 0, free lines is 4095 [12:12:00]Connected sock=10 [12:12:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 15 50 07 01 40 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 98 F3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D7 0E 01 00 35 04 06 00 81 50 D5 12 B4 C3 ED BB E7 4F 53 BD EA 73 [12:12:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 D3 0C 47 00 53 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D7 0E 01 00 F4 03 04 00 3F 9D 14 67 B6 04 01 00 00 33 6F 22 E6 77 EC 33 AC [12:12:00]CommunicateWithHost err = 0 [12:12:00]CheckOFDResponse [12:12:00]1017 (14) - 77093643461234 [12:12:00]1041 (16) - 0000000000963346 [12:12:00]1040 (4) - 69335 [12:12:00]1012 (4) - 20.10.2024 06:03 [12:12:00]1206 (1) - 0 [12:12:00]OFD Sender: Remove packet 69335 [12:12:00]ProducePacketName [12:12:00]name=ofd_packets/00069335 [12:12:00]NVStorageDeleteData [12:12:00]Write to MH i2c: 01 00 00 C8 D9 A1 [12:12:00]Write i2c OK [12:12:00]MH_I2C_Read... [12:12:00]Read from MH i2c: 01 [12:12:00]MH_I2C_Read... [12:12:00]Read from MH i2c: 01 07 00 [12:12:00]MH_I2C_Read... [12:12:00]Read from MH i2c: 01 07 00 C8 D9 00 00 00 00 00 EE 0C A2 [12:12:00]RasterBufferAndPrint [12:12:00]line [12:12:00]line [12:12:00]line [12:12:00]line [12:12:00]line [12:12:00]written 0, free lines is 3319 [12:12:00]MH_Cut [12:12:00]Write to MH i2c: D1 01 00 CF D9 01 7A [12:12:00]Write i2c OK [12:12:00]MH_I2C_Read... [12:12:00]Read from MH i2c: D1 [12:12:00]MH_I2C_Read... [12:12:00]Read from MH i2c: D1 01 00 [12:12:00]MH_I2C_Read... [12:12:00]Read from MH i2c: D1 01 00 CF D9 00 79 [12:12:00]Write to MH i2c: 01 00 00 D0 D9 A9 [12:12:00]Write i2c OK [12:12:00]MH_I2C_Read... [12:12:01]OFD Sender: No OFD packet to send [12:12:01]*** Cut start [12:12:01]*** Partial cut [12:12:01]*** CUTSNS_PIN = 1 [12:12:01]*** CUTSNS_PIN = 0 [12:12:01]*** Brake cut motor [12:12:02]Read from MH i2c: 01 [12:12:02]MH_I2C_Read... [12:12:02]*** Stop cut motor [12:12:02]*** Cut end [12:12:02]Read from MH i2c: 01 07 00 [12:12:02]MH_I2C_Read... [12:12:02]Read from MH i2c: 01 07 00 D0 D9 00 00 00 00 00 FF 0F BE [12:12:02]process_action close_receipt done [12:12:02]requested_data is exist [12:12:02]produce_requested_data [12:12:02]requested_item fm.sn is exist - process it [12:12:02]wFMCommunicate request_size=4 [12:12:02]MH_SAM_APDU [12:12:02]CAPDU: 80 11 00 00 [12:12:02]Write to MH i2c: E2 08 00 D1 D9 80 11 00 00 00 00 00 00 24 [12:12:02]Write i2c OK [12:12:02]MH_I2C_Read... [12:12:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:02]Read from MH i2c: E2 [12:12:02]MH_I2C_Read... [12:12:02]Read from MH i2c: E2 17 00 [12:12:02]MH_I2C_Read... [12:12:02]Read from MH i2c: E2 17 00 D1 D9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 76 [12:12:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:12:02]wFMCommunicate OK [12:12:02]requested_item fd.num is exist - process it [12:12:02]SAM_PROTO_GetFieldsCounters [12:12:02]wFMCommunicate request_size=4 [12:12:02]MH_SAM_APDU [12:12:02]CAPDU: 80 13 00 00 [12:12:02]Write to MH i2c: E2 08 00 D2 D9 80 13 00 00 00 00 00 00 27 [12:12:02]Write i2c OK [12:12:02]MH_I2C_Read... [12:12:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:12:02]Read from MH i2c: E2 [12:12:02]MH_I2C_Read... [12:12:02]Read from MH i2c: E2 62 00 [12:12:02]MH_I2C_Read... [12:12:02]Read from MH i2c: E2 62 00 D2 D9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D7 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [12:12:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D7 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:12:02]wFMCommunicate OK [12:12:02]SAM_PROTO_GetFieldsCounters done [12:12:02]requested_item shift.num is exist - process it [12:12:02]requested_item shift.opened is exist - process it [12:12:02]req_shift_opened [12:12:02]FM_GetShiftState [12:12:02]SAM_PROTO_GetShiftState [12:12:02]wFMCommunicate request_size=4 [12:12:02]MH_SAM_APDU [12:12:02]CAPDU: 80 13 01 00 [12:12:02]Write to MH i2c: E2 08 00 D3 D9 80 13 01 00 00 00 00 00 29 [12:12:02]Write i2c OK [12:12:02]MH_I2C_Read... [12:12:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:02]Read from MH i2c: E2 [12:12:02]MH_I2C_Read... [12:12:02]Read from MH i2c: E2 0E 00 [12:12:02]MH_I2C_Read... [12:12:02]Read from MH i2c: E2 0E 00 D3 D9 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 2F [12:12:02]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:12:02]wFMCommunicate OK [12:12:02]SAM_PROTO_GetShiftState done [12:12:02]FM_GetShiftState done [12:12:02]req_shift_opened done [12:12:02]requested_item shift.open_date is exist - process it [12:12:02]req_shift_open_date [12:12:02]req_shift_open_date done [12:12:02]produce_requested_data done [12:12:02]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69335,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [12:12:02]process_action_free close_receipt [12:12:02]json_value_free [12:12:02]json_value_free done [12:12:02]process_json_proto returns [12:12:02]Send response to host [12:12:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69335,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [12:12:02]free response buf [12:12:02]execute_script done [12:12:02]execute_script returns [12:12:02]free content buf [12:12:02]Sock 8.Close socket [12:12:02]Sock 8.Thread stoped [12:12:06]OFD Sender: No OFD packet to send [12:12:11]OFD Sender: No OFD packet to send [12:12:16]OFD Sender: No OFD packet to send [12:12:21]OFD Sender: No OFD packet to send [12:12:26]OFD Sender: No OFD packet to send [12:12:31]OFD Sender: No OFD packet to send [12:12:36]OFD Sender: No OFD packet to send [12:12:41]OFD Sender: No OFD packet to send [12:12:46]OFD Sender: No OFD packet to send [12:12:51]OFD Sender: No OFD packet to send [12:12:56]OFD Sender: No OFD packet to send [12:13:01]OFD Sender: No OFD packet to send [12:13:06]OFD Sender: No OFD packet to send [12:13:11]OFD Sender: No OFD packet to send [12:13:13]accept exits with 9 [12:13:13]New connection [12:13:13]New thread 3067116900 created [12:13:13]Thread 3067260260 joined [12:13:13]Waiting for new connection... [12:13:13] Sock 9.Parse request [12:13:13]Sock 9.Check first char [12:13:13]Sock 9.First char is OK [12:13:13]request: POST /json_proto HTTP/1.0 [12:13:13]Method: POST [12:13:13]URL: /json_proto [12:13:13]Method is POST - this is cgi request [12:13:13]url: /json_proto [12:13:13]query_string will be loaded in cgi processing [12:13:13]execute_cgi json_proto POST (null) [12:13:13]execute_cgi path=json_proto method=POST [12:13:13]POST find Content-Length [12:13:13]Host: 172.17.50.3:8080 [12:13:13]Content-Length: 678 [12:13:13]Content-Type: application/json [12:13:13] [12:13:13]POST finish read [12:13:13]Found Content-Length = 678 [12:13:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:13]execute_script... [12:13: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)2885055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:13]POST & json_proto [12:13:13]process_json_proto [12:13:13]json parsed OK: [12:13:13]protocol is kg_v1.0 [12:13:13]action value=close_receipt [12:13:13]process_action close_receipt [12:13:13]cmd_close_receipt [12:13:13]MH_GetDate [12:13:13]Write to MH i2c: F0 00 00 D4 D9 9C [12:13:13]Write i2c OK [12:13:13]MH_I2C_Read... [12:13:13]Read from MH i2c: F0 [12:13:13]MH_I2C_Read... [12:13:13]Read from MH i2c: F0 09 00 [12:13:13]MH_I2C_Read... [12:13:13]Read from MH i2c: F0 09 00 D4 D9 00 E3 F3 14 67 6B 98 1E 66 7D [12:13:13]GetLastDocTimeStamp 1729426328 [12:13:13]current date 1729426403 [12:13:13]FM_GetShiftState [12:13:13]SAM_PROTO_GetShiftState [12:13:13]wFMCommunicate request_size=4 [12:13:13]MH_SAM_APDU [12:13:13]CAPDU: 80 13 01 00 [12:13:13]Write to MH i2c: E2 08 00 D5 D9 80 13 01 00 00 00 00 00 2B [12:13:13]Write i2c OK [12:13:13]MH_I2C_Read... [12:13:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:13]Read from MH i2c: E2 [12:13:13]MH_I2C_Read... [12:13:13]Read from MH i2c: E2 0E 00 [12:13:13]MH_I2C_Read... [12:13:13]Read from MH i2c: E2 0E 00 D5 D9 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 31 [12:13:13]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:13:13]wFMCommunicate OK [12:13:13]SAM_PROTO_GetShiftState done [12:13:13]FM_GetShiftState done [12:13:13]opened in 1729383220 [12:13:13]opened+sec_in_day 1729469620 [12:13:13]quantity*price = 30038 [12:13:13]sum+1 = 30039 [12:13:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 181 20.10.2024 12:13 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69336 ФПД: 57730121651219 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121323&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69336&fm=57730121651219&tin=02508201610067®Number=0000000000156251&sum=30000 [12:13:14]StoreToDocumentArchive [12:13:14]shift 193 fd 69336 [12:13:14]save to /storage/0193/doc_00069336 [12:13:14]save last doc name /storage/0193/doc_00069336 to /storage/kkm_last_doc_name [12:13:14]save OK [12:13:14]Clear old archive folders... [12:13:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:13:14]tlvbuf is 00890840 [12:13:14]SAM_PROTO_ClearQueue [12:13:14]wFMCommunicate request_size=4 [12:13:14]MH_SAM_APDU [12:13:14]CAPDU: 80 09 00 00 [12:13:14]Write to MH i2c: E2 08 00 E2 D9 80 09 00 00 00 00 00 00 2D [12:13:14]Write i2c OK [12:13:14]MH_I2C_Read... [12:13:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:13:14]Read from MH i2c: E2 [12:13:14]MH_I2C_Read... [12:13:14]Read from MH i2c: E2 03 00 [12:13:14]MH_I2C_Read... [12:13:14]Read from MH i2c: E2 03 00 E2 D9 00 90 00 2F [12:13:14]RAPDU: 90 00 [12:13:14]wFMCommunicate OK [12:13:14]SAM_PROTO_ClearQueue done [12:13:14]KKMCreateOFDPacket [12:13:14]OFDProtocolAddRootSTLVToBuf [12:13:14]FM_MakeSignedData [12:13:14]FM_MakeSignedData [12:13:14]SAM_PROTO_SignData [12:13:14]wFMCommunicate request_size=4 [12:13:14]MH_SAM_APDU [12:13:14]CAPDU: 80 0D 01 02 [12:13:14]Write to MH i2c: E2 08 00 E3 D9 80 0D 01 02 00 00 00 00 35 [12:13:14]Write i2c OK [12:13:14]MH_I2C_Read... [12:13:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:13:14]Read from MH i2c: E2 [12:13:14]MH_I2C_Read... [12:13:14]Read from MH i2c: E2 03 00 [12:13:14]MH_I2C_Read... [12:13:14]Read from MH i2c: E2 03 00 E3 D9 00 90 00 30 [12:13:14]RAPDU: 90 00 [12:13:14]wFMCommunicate OK [12:13:14]wFMCommunicate request_size=255 [12:13:14]MH_SAM_APDU [12:13: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 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 E3 F3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D8 0E 01 00 35 04 06 00 34 [12:13:14]Write to MH i2c: E2 02 01 E4 D9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 E3 F3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D8 0E 01 00 35 04 06 00 34 00 00 94 [12:13:14]Write i2c OK [12:13:14]MH_I2C_Read... [12:13:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:14]Read from MH i2c: E2 [12:13:14]MH_I2C_Read... [12:13:14]Read from MH i2c: E2 03 00 [12:13:14]MH_I2C_Read... [12:13:14]Read from MH i2c: E2 03 00 E4 D9 00 90 00 31 [12:13:14]RAPDU: 90 00 [12:13:14]wFMCommunicate OK [12:13:14]wFMCommunicate request_size=10 [12:13:14]MH_SAM_APDU [12:13:14]CAPDU: 80 0D 02 02 05 81 57 64 D4 13 [12:13:14]Write to MH i2c: E2 0D 00 E5 D9 80 0D 02 02 05 00 81 57 64 D4 13 00 00 65 [12:13:14]Write i2c OK [12:13:14]MH_I2C_Read... [12:13:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:15]Read from MH i2c: E2 [12:13:15]MH_I2C_Read... [12:13:15]Read from MH i2c: E2 03 00 [12:13:15]MH_I2C_Read... [12:13:15]Read from MH i2c: E2 03 00 E5 D9 00 90 00 32 [12:13:15]RAPDU: 90 00 [12:13:15]wFMCommunicate OK [12:13:15]wFMCommunicate request_size=4 [12:13:15]MH_SAM_APDU [12:13:15]CAPDU: 80 0D 03 02 [12:13:15]Write to MH i2c: E2 08 00 E6 D9 80 0D 03 02 00 00 00 00 3A [12:13:15]Write i2c OK [12:13:15]MH_I2C_Read... [12:13:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:13:15]Read from MH i2c: E2 [12:13:15]MH_I2C_Read... [12:13:15]Read from MH i2c: E2 0B 00 [12:13:15]MH_I2C_Read... [12:13:15]Read from MH i2c: E2 0B 00 E6 D9 00 63 80 46 EE BF 21 EE 18 90 00 38 [12:13:15]RAPDU: 63 80 46 EE BF 21 EE 18 90 00 [12:13:15]wFMCommunicate OK [12:13:15]SAM_PROTO_SignData done [12:13:15]FM_MakeSignedData done [12:13:15]CreateOFDProtocolMessage [12:13:15]wFMCommunicate request_size=4 [12:13:15]MH_SAM_APDU [12:13:15]CAPDU: 80 11 00 00 [12:13:15]Write to MH i2c: E2 08 00 E7 D9 80 11 00 00 00 00 00 00 3A [12:13:15]Write i2c OK [12:13:15]MH_I2C_Read... [12:13:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:15]Read from MH i2c: E2 [12:13:15]MH_I2C_Read... [12:13:15]Read from MH i2c: E2 17 00 [12:13:15]MH_I2C_Read... [12:13:15]Read from MH i2c: E2 17 00 E7 D9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8C [12:13:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:13:15]wFMCommunicate OK [12:13:15]CreateOFDProtocolMessage done [12:13:15]OFDSenderStorePacket 69336 [12:13:15]StoreOFDPacket docnum=69336 [12:13:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 1E 80 07 01 10 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 E3 F3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D8 0E 01 00 35 04 06 00 34 81 57 64 D4 13 63 80 46 EE BF 21 EE 18 [12:13:15]CheckFolder [12:13:15]dirname=/storage/ofd_packets [12:13:15]CheckFolder done [12:13:15]ProducePacketName [12:13:15]name=ofd_packets/00069336 [12:13:15]NVStorageSaveData ofd_packets/00069336 [12:13:15]File name is /storage/ofd_packets/00069336 [12:13:15]Write 301 bytes [12:13:15]NVStorageSaveData done [12:13:15]OFDSenderStorePacket done [12:13:15]KKMCreateOFDPacket done [12:13:15]NVStorageSaveData kkm_last_timestamp [12:13:15]File name is /storage/kkm_last_timestamp [12:13:15]Write 4 bytes [12:13:15]NVStorageSaveData done [12:13:15]ExternCall_PrintAddStr [12:13:15]wPrintStart [12:13:15]Write to MH i2c: 01 00 00 E8 D9 C1 [12:13:15]Write i2c OK [12:13:15]MH_I2C_Read... [12:13:15]Read from MH i2c: 01 [12:13:15]MH_I2C_Read... [12:13:15]Read from MH i2c: 01 07 00 [12:13:15]MH_I2C_Read... [12:13:15]Read from MH i2c: 01 07 00 E8 D9 00 00 00 00 00 FF 0F D6 [12:13:15]RasterBufferAndPrint [12:13:15]line Счет N : (1)2885055 [12:13:15]line ИНН: 02508201610067 [12:13:15]line Контрольно-Кассовый Чек [12:13:15]line ПРОДАЖА [12:13:15]line ТРК (МРК, ГНК) : 12 [12:13:15]line Товар: 2710124130 [12:13:15]line Аи-92-К-5 [12:13:15]line 4.490 * 66.90 [12:13:15]line = 300.38 [12:13:15]line НДС 12% НСП 1% [12:13:15]line > о реализуемом товаре [12:13:15]line ОКРУГЛЕНИЕ: -0.38 [12:13:15]line ИТОГО: 300.00 [12:13:15]line Внесено: 300.00 [12:13:15]line СДАЧА: 0.00 [12:13:15]line НСП 1% : 2.66 [12:13:15]line НДС 12% : 31.90 [12:13:15]line Наличными: 300.00 [12:13:15]line Безнал.: 0.00 [12:13:15]line Место: АЗС № 85 "Партнер Нефть" [12:13:15]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:13:15]line СНО: Общий режим [12:13:15]line Чек 181 20.10.2024 12:13 [12:13:15]line Смена: 193 ФФД: 1.0 [12:13:15]line ЗНМ: 0300000167 [12:13:15]line РНМ: 0000000000156251 [12:13:15]line Версия ККМ: v1.0 [12:13:15]line ФМ: 0000000000963346 [12:13:15]line ФД: 69336 [12:13:15]line ФПД: 57730121651219 [12:13:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121323&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69336&fm=57730121651219&tin=02508201610067®Number=0000000000156251&sum=30000 [12:13:15]OFD Sender: Processing packet 69336 [packets to send 18, broken 17] [12:13:15]ProducePacketName [12:13:15]name=ofd_packets/00069336 [12:13:15]OFD Sender: To server: pG, [12:13:15]CommunicateWithHost lk.salyk.kg:30040 [12:13:15]ConnectInit lk.salyk.kg [12:13:15]written 0, free lines is 4095 [12:13:15]Connected sock=10 [12:13:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 1E 80 07 01 10 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 E3 F3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D8 0E 01 00 35 04 06 00 34 81 57 64 D4 13 63 80 46 EE BF 21 EE 18 [12:13:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 B1 92 47 00 D7 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D8 0E 01 00 F4 03 04 00 8A 9D 14 67 B6 04 01 00 00 A3 0D 8C 39 0E 30 87 E0 [12:13:15]CommunicateWithHost err = 0 [12:13:15]CheckOFDResponse [12:13:15]1017 (14) - 77093643461234 [12:13:15]1041 (16) - 0000000000963346 [12:13:15]1040 (4) - 69336 [12:13:15]1012 (4) - 20.10.2024 06:04 [12:13:15]1206 (1) - 0 [12:13:15]OFD Sender: Remove packet 69336 [12:13:15]ProducePacketName [12:13:15]name=ofd_packets/00069336 [12:13:15]NVStorageDeleteData [12:13:15]Write to MH i2c: 01 00 00 13 DA ED [12:13:15]Write i2c OK [12:13:15]MH_I2C_Read... [12:13:15]Read from MH i2c: 01 [12:13:15]MH_I2C_Read... [12:13:15]Read from MH i2c: 01 07 00 [12:13:15]MH_I2C_Read... [12:13:15]Read from MH i2c: 01 07 00 13 DA 00 00 00 00 00 00 0D 01 [12:13:15]RasterBufferAndPrint [12:13:15]line [12:13:15]line [12:13:15]line [12:13:15]line [12:13:15]line [12:13:15]written 0, free lines is 3337 [12:13:15]MH_Cut [12:13:15]Write to MH i2c: D1 01 00 1A DA 01 C6 [12:13:15]Write i2c OK [12:13:15]MH_I2C_Read... [12:13:15]Read from MH i2c: D1 [12:13:15]MH_I2C_Read... [12:13:15]Read from MH i2c: D1 01 00 [12:13:15]MH_I2C_Read... [12:13:15]Read from MH i2c: D1 01 00 1A DA 00 C5 [12:13:15]Write to MH i2c: 01 00 00 1B DA F5 [12:13:15]Write i2c OK [12:13:15]MH_I2C_Read... [12:13:16]OFD Sender: No OFD packet to send [12:13:16]*** Cut start [12:13:16]*** Partial cut [12:13:16]*** CUTSNS_PIN = 1 [12:13:16]*** CUTSNS_PIN = 0 [12:13:16]*** Brake cut motor [12:13:17]Read from MH i2c: 01 [12:13:17]MH_I2C_Read... [12:13:17]*** Stop cut motor [12:13:17]*** Cut end [12:13:17]Read from MH i2c: 01 07 00 [12:13:17]MH_I2C_Read... [12:13:17]Read from MH i2c: 01 07 00 1B DA 00 00 00 00 00 FF 0F 0A [12:13:17]process_action close_receipt done [12:13:17]requested_data is exist [12:13:17]produce_requested_data [12:13:17]requested_item fm.sn is exist - process it [12:13:17]wFMCommunicate request_size=4 [12:13:17]MH_SAM_APDU [12:13:17]CAPDU: 80 11 00 00 [12:13:17]Write to MH i2c: E2 08 00 1C DA 80 11 00 00 00 00 00 00 70 [12:13:17]Write i2c OK [12:13:17]MH_I2C_Read... [12:13:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:17]Read from MH i2c: E2 [12:13:17]MH_I2C_Read... [12:13:17]Read from MH i2c: E2 17 00 [12:13:17]MH_I2C_Read... [12:13:17]Read from MH i2c: E2 17 00 1C DA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C2 [12:13:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:13:17]wFMCommunicate OK [12:13:17]requested_item fd.num is exist - process it [12:13:17]SAM_PROTO_GetFieldsCounters [12:13:17]wFMCommunicate request_size=4 [12:13:17]MH_SAM_APDU [12:13:17]CAPDU: 80 13 00 00 [12:13:17]Write to MH i2c: E2 08 00 1D DA 80 13 00 00 00 00 00 00 73 [12:13:17]Write i2c OK [12:13:17]MH_I2C_Read... [12:13:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:17]Read from MH i2c: E2 [12:13:17]MH_I2C_Read... [12:13:17]Read from MH i2c: E2 62 00 [12:13:17]MH_I2C_Read... [12:13:17]Read from MH i2c: E2 62 00 1D DA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D8 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [12:13:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D8 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:13:17]wFMCommunicate OK [12:13:17]SAM_PROTO_GetFieldsCounters done [12:13:17]requested_item shift.num is exist - process it [12:13:17]requested_item shift.opened is exist - process it [12:13:17]req_shift_opened [12:13:17]FM_GetShiftState [12:13:17]SAM_PROTO_GetShiftState [12:13:17]wFMCommunicate request_size=4 [12:13:17]MH_SAM_APDU [12:13:17]CAPDU: 80 13 01 00 [12:13:17]Write to MH i2c: E2 08 00 1E DA 80 13 01 00 00 00 00 00 75 [12:13:17]Write i2c OK [12:13:17]MH_I2C_Read... [12:13:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:17]Read from MH i2c: E2 [12:13:17]MH_I2C_Read... [12:13:17]Read from MH i2c: E2 0E 00 [12:13:17]MH_I2C_Read... [12:13:17]Read from MH i2c: E2 0E 00 1E DA 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 7B [12:13:17]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:13:17]wFMCommunicate OK [12:13:17]SAM_PROTO_GetShiftState done [12:13:17]FM_GetShiftState done [12:13:17]req_shift_opened done [12:13:17]requested_item shift.open_date is exist - process it [12:13:17]req_shift_open_date [12:13:17]req_shift_open_date done [12:13:17]produce_requested_data done [12:13:17]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69336,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [12:13:17]process_action_free close_receipt [12:13:17]json_value_free [12:13:17]json_value_free done [12:13:17]process_json_proto returns [12:13:17]Send response to host [12:13:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69336,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [12:13:17]free response buf [12:13:17]execute_script done [12:13:17]execute_script returns [12:13:17]free content buf [12:13:17]Sock 9.Close socket [12:13:17]Sock 9.Thread stoped [12:13:21]OFD Sender: No OFD packet to send [12:13:24]accept exits with 8 [12:13:24]New connection [12:13:24]New thread 3067260260 created [12:13:24]Thread 3067116900 joined [12:13:24]Waiting for new connection... [12:13:24] Sock 8.Parse request [12:13:24]Sock 8.Check first char [12:13:24]Sock 8.First char is OK [12:13:24]request: POST /json_proto HTTP/1.0 [12:13:24]Method: POST [12:13:24]URL: /json_proto [12:13:24]Method is POST - this is cgi request [12:13:24]url: /json_proto [12:13:24]query_string will be loaded in cgi processing [12:13:24]execute_cgi json_proto POST (null) [12:13:24]execute_cgi path=json_proto method=POST [12:13:24]POST find Content-Length [12:13:24]Host: 172.17.50.3:8080 [12:13:24]Content-Length: 678 [12:13:24]Content-Type: application/json [12:13:24] [12:13:24]POST finish read [12:13:24]Found Content-Length = 678 [12:13:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885054", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:24]execute_script... [12:13: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)2885054", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:24]POST & json_proto [12:13:24]process_json_proto [12:13:24]json parsed OK: [12:13:24]protocol is kg_v1.0 [12:13:24]action value=close_receipt [12:13:24]process_action close_receipt [12:13:24]cmd_close_receipt [12:13:24]MH_GetDate [12:13:24]Write to MH i2c: F0 00 00 1F DA E8 [12:13:24]Write i2c OK [12:13:24]MH_I2C_Read... [12:13:24]Read from MH i2c: F0 [12:13:24]MH_I2C_Read... [12:13:24]Read from MH i2c: F0 09 00 [12:13:24]MH_I2C_Read... [12:13:24]Read from MH i2c: F0 09 00 1F DA 00 EF F3 14 67 6B 98 1E 66 D5 [12:13:24]GetLastDocTimeStamp 1729426403 [12:13:24]current date 1729426415 [12:13:24]FM_GetShiftState [12:13:24]SAM_PROTO_GetShiftState [12:13:24]wFMCommunicate request_size=4 [12:13:24]MH_SAM_APDU [12:13:24]CAPDU: 80 13 01 00 [12:13:24]Write to MH i2c: E2 08 00 20 DA 80 13 01 00 00 00 00 00 77 [12:13:24]Write i2c OK [12:13:24]MH_I2C_Read... [12:13:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:24]Read from MH i2c: E2 [12:13:24]MH_I2C_Read... [12:13:24]Read from MH i2c: E2 0E 00 [12:13:24]MH_I2C_Read... [12:13:25]Read from MH i2c: E2 0E 00 20 DA 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 7D [12:13:25]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:13:25]wFMCommunicate OK [12:13:25]SAM_PROTO_GetShiftState done [12:13:25]FM_GetShiftState done [12:13:25]opened in 1729383220 [12:13:25]opened+sec_in_day 1729469620 [12:13:25]quantity*price = 50041 [12:13:25]sum+1 = 50042 [12:13:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 182 20.10.2024 12:13 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69337 ФПД: 162802638117787 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121335&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69337&fm=162802638117787&tin=02508201610067®Number=0000000000156251&sum=50000 [12:13:26]StoreToDocumentArchive [12:13:26]shift 193 fd 69337 [12:13:26]save to /storage/0193/doc_00069337 [12:13:26]save last doc name /storage/0193/doc_00069337 to /storage/kkm_last_doc_name [12:13:26]save OK [12:13:26]Clear old archive folders... [12:13:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:13:26]tlvbuf is 008DC6C0 [12:13:26]SAM_PROTO_ClearQueue [12:13:26]wFMCommunicate request_size=4 [12:13:26]MH_SAM_APDU [12:13:26]CAPDU: 80 09 00 00 [12:13:26]Write to MH i2c: E2 08 00 2D DA 80 09 00 00 00 00 00 00 79 [12:13:26]Write i2c OK [12:13:26]MH_I2C_Read... [12:13:26]Read from MH i2c: E2 [12:13:26]MH_I2C_Read... [12:13:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:13:26]Read from MH i2c: E2 03 00 [12:13:26]MH_I2C_Read... [12:13:26]Read from MH i2c: E2 03 00 2D DA 00 90 00 7B [12:13:26]RAPDU: 90 00 [12:13:26]wFMCommunicate OK [12:13:26]SAM_PROTO_ClearQueue done [12:13:26]KKMCreateOFDPacket [12:13:26]OFDProtocolAddRootSTLVToBuf [12:13:26]FM_MakeSignedData [12:13:26]FM_MakeSignedData [12:13:26]SAM_PROTO_SignData [12:13:26]wFMCommunicate request_size=4 [12:13:26]MH_SAM_APDU [12:13:26]CAPDU: 80 0D 01 02 [12:13:26]Write to MH i2c: E2 08 00 2E DA 80 0D 01 02 00 00 00 00 81 [12:13:26]Write i2c OK [12:13:26]MH_I2C_Read... [12:13:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:13:26]Read from MH i2c: E2 [12:13:26]MH_I2C_Read... [12:13:26]Read from MH i2c: E2 03 00 [12:13:26]MH_I2C_Read... [12:13:26]Read from MH i2c: E2 03 00 2E DA 00 90 00 7C [12:13:26]RAPDU: 90 00 [12:13:26]wFMCommunicate OK [12:13:26]wFMCommunicate request_size=255 [12:13:26]MH_SAM_APDU [12:13:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 EF F3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D9 0E 01 00 35 04 06 00 94 [12:13:26]Write to MH i2c: E2 02 01 2F DA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 EF F3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D9 0E 01 00 35 04 06 00 94 00 00 5A [12:13:26]Write i2c OK [12:13:26]MH_I2C_Read... [12:13:26]OFD Sender: No OFD packet to send [12:13:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:26]Read from MH i2c: E2 [12:13:26]MH_I2C_Read... [12:13:26]Read from MH i2c: E2 03 00 [12:13:26]MH_I2C_Read... [12:13:26]Read from MH i2c: E2 03 00 2F DA 00 90 00 7D [12:13:26]RAPDU: 90 00 [12:13:26]wFMCommunicate OK [12:13:26]wFMCommunicate request_size=10 [12:13:26]MH_SAM_APDU [12:13:26]CAPDU: 80 0D 02 02 05 11 71 69 DB 9B [12:13:26]Write to MH i2c: E2 0D 00 30 DA 80 0D 02 02 05 00 11 71 69 DB 9B 00 00 EF [12:13:26]Write i2c OK [12:13:26]MH_I2C_Read... [12:13:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:26]Read from MH i2c: E2 [12:13:26]MH_I2C_Read... [12:13:26]Read from MH i2c: E2 03 00 [12:13:26]MH_I2C_Read... [12:13:26]Read from MH i2c: E2 03 00 30 DA 00 90 00 7E [12:13:26]RAPDU: 90 00 [12:13:26]wFMCommunicate OK [12:13:26]wFMCommunicate request_size=4 [12:13:26]MH_SAM_APDU [12:13:26]CAPDU: 80 0D 03 02 [12:13:26]Write to MH i2c: E2 08 00 31 DA 80 0D 03 02 00 00 00 00 86 [12:13:26]Write i2c OK [12:13:26]MH_I2C_Read... [12:13:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:13:26]Read from MH i2c: E2 [12:13:26]MH_I2C_Read... [12:13:26]Read from MH i2c: E2 0B 00 [12:13:26]MH_I2C_Read... [12:13:26]Read from MH i2c: E2 0B 00 31 DA 00 57 FB 70 ED 54 F6 23 FA 90 00 9D [12:13:26]RAPDU: 57 FB 70 ED 54 F6 23 FA 90 00 [12:13:26]wFMCommunicate OK [12:13:26]SAM_PROTO_SignData done [12:13:26]FM_MakeSignedData done [12:13:26]CreateOFDProtocolMessage [12:13:26]wFMCommunicate request_size=4 [12:13:26]MH_SAM_APDU [12:13:26]CAPDU: 80 11 00 00 [12:13:26]Write to MH i2c: E2 08 00 32 DA 80 11 00 00 00 00 00 00 86 [12:13:26]Write i2c OK [12:13:26]MH_I2C_Read... [12:13:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:26]Read from MH i2c: E2 [12:13:26]MH_I2C_Read... [12:13:26]Read from MH i2c: E2 17 00 [12:13:26]MH_I2C_Read... [12:13:26]Read from MH i2c: E2 17 00 32 DA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D8 [12:13:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:13:26]wFMCommunicate OK [12:13:26]CreateOFDProtocolMessage done [12:13:26]OFDSenderStorePacket 69337 [12:13:26]StoreOFDPacket docnum=69337 [12:13:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 3B 05 07 01 93 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 EF F3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D9 0E 01 00 35 04 06 00 94 11 71 69 DB 9B 57 FB 70 ED 54 F6 23 FA [12:13:26]CheckFolder [12:13:26]dirname=/storage/ofd_packets [12:13:26]CheckFolder done [12:13:26]ProducePacketName [12:13:26]name=ofd_packets/00069337 [12:13:26]NVStorageSaveData ofd_packets/00069337 [12:13:26]File name is /storage/ofd_packets/00069337 [12:13:26]Write 301 bytes [12:13:26]NVStorageSaveData done [12:13:26]OFDSenderStorePacket done [12:13:26]KKMCreateOFDPacket done [12:13:26]NVStorageSaveData kkm_last_timestamp [12:13:26]File name is /storage/kkm_last_timestamp [12:13:26]Write 4 bytes [12:13:26]NVStorageSaveData done [12:13:26]ExternCall_PrintAddStr [12:13:26]wPrintStart [12:13:26]Write to MH i2c: 01 00 00 33 DA 0D [12:13:26]Write i2c OK [12:13:26]MH_I2C_Read... [12:13:26]Read from MH i2c: 01 [12:13:26]MH_I2C_Read... [12:13:26]Read from MH i2c: 01 07 00 [12:13:26]MH_I2C_Read... [12:13:26]Read from MH i2c: 01 07 00 33 DA 00 00 00 00 00 FF 0F 22 [12:13:26]RasterBufferAndPrint [12:13:26]line Счет N : (1)2885054 [12:13:26]line ИНН: 02508201610067 [12:13:26]line Контрольно-Кассовый Чек [12:13:26]line ПРОДАЖА [12:13:26]line ТРК (МРК, ГНК) : 22 [12:13:26]line Товар: 2710124130 [12:13:26]line Аи-92-К-5 [12:13:26]line 7.480 * 66.90 [12:13:26]line = 500.41 [12:13:26]line НДС 12% НСП 1% [12:13:26]line > о реализуемом товаре [12:13:26]line ОКРУГЛЕНИЕ: -0.41 [12:13:26]line ИТОГО: 500.00 [12:13:26]line Внесено: 500.00 [12:13:26]line СДАЧА: 0.00 [12:13:26]line НСП 1% : 4.43 [12:13:26]line НДС 12% : 53.14 [12:13:26]line Наличными: 500.00 [12:13:26]line Безнал.: 0.00 [12:13:26]line Место: АЗС № 85 "Партнер Нефть" [12:13:26]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:13:26]line СНО: Общий режим [12:13:26]line Чек 182 20.10.2024 12:13 [12:13:26]line Смена: 193 ФФД: 1.0 [12:13:26]line ЗНМ: 0300000167 [12:13:26]line РНМ: 0000000000156251 [12:13:26]line Версия ККМ: v1.0 [12:13:26]line ФМ: 0000000000963346 [12:13:26]line ФД: 69337 [12:13:26]line ФПД: 162802638117787 [12:13:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121335&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69337&fm=162802638117787&tin=02508201610067®Number=0000000000156251&sum=50000 [12:13:26]written 0, free lines is 4095 [12:13:26]OFD Sender: Processing packet 69337 [packets to send 18, broken 17] [12:13:26]ProducePacketName [12:13:26]name=ofd_packets/00069337 [12:13:26]OFD Sender: To server: pG, [12:13:26]CommunicateWithHost lk.salyk.kg:30040 [12:13:26]ConnectInit lk.salyk.kg [12:13:26]Connected sock=11 [12:13:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 3B 05 07 01 93 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 EF F3 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D9 0E 01 00 35 04 06 00 94 11 71 69 DB 9B 57 FB 70 ED 54 F6 23 FA [12:13:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 93 9B 47 00 9D 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D9 0E 01 00 F4 03 04 00 95 9D 14 67 B6 04 01 00 00 EA C6 CD 37 63 BA 04 99 [12:13:27]CommunicateWithHost err = 0 [12:13:27]CheckOFDResponse [12:13:27]1017 (14) - 77093643461234 [12:13:27]1041 (16) - 0000000000963346 [12:13:27]1040 (4) - 69337 [12:13:27]1012 (4) - 20.10.2024 06:05 [12:13:27]1206 (1) - 0 [12:13:27]OFD Sender: Remove packet 69337 [12:13:27]ProducePacketName [12:13:27]name=ofd_packets/00069337 [12:13:27]NVStorageDeleteData [12:13:27]Write to MH i2c: 01 00 00 5E DA 38 [12:13:27]Write i2c OK [12:13:27]MH_I2C_Read... [12:13:27]Read from MH i2c: 01 [12:13:27]MH_I2C_Read... [12:13:27]Read from MH i2c: 01 07 00 [12:13:27]MH_I2C_Read... [12:13:27]Read from MH i2c: 01 07 00 5E DA 00 00 00 00 00 FE 0C 49 [12:13:27]RasterBufferAndPrint [12:13:27]line [12:13:27]line [12:13:27]line [12:13:27]line [12:13:27]line [12:13:27]written 0, free lines is 3335 [12:13:27]MH_Cut [12:13:27]Write to MH i2c: D1 01 00 65 DA 01 11 [12:13:27]Write i2c OK [12:13:27]MH_I2C_Read... [12:13:27]Read from MH i2c: D1 [12:13:27]MH_I2C_Read... [12:13:27]Read from MH i2c: D1 01 00 [12:13:27]MH_I2C_Read... [12:13:27]Read from MH i2c: D1 01 00 65 DA 00 10 [12:13:27]Write to MH i2c: 01 00 00 66 DA 40 [12:13:27]Write i2c OK [12:13:27]MH_I2C_Read... [12:13:27]OFD Sender: No OFD packet to send [12:13:27]*** Cut start [12:13:27]*** Partial cut [12:13:27]*** CUTSNS_PIN = 1 [12:13:27]*** CUTSNS_PIN = 0 [12:13:28]*** Brake cut motor [12:13:28]Read from MH i2c: 01 [12:13:28]MH_I2C_Read... [12:13:28]*** Stop cut motor [12:13:28]*** Cut end [12:13:28]Read from MH i2c: 01 07 00 [12:13:28]MH_I2C_Read... [12:13:28]Read from MH i2c: 01 07 00 66 DA 00 00 00 00 00 FF 0F 55 [12:13:28]process_action close_receipt done [12:13:28]requested_data is exist [12:13:28]produce_requested_data [12:13:28]requested_item fm.sn is exist - process it [12:13:28]wFMCommunicate request_size=4 [12:13:28]MH_SAM_APDU [12:13:28]CAPDU: 80 11 00 00 [12:13:28]Write to MH i2c: E2 08 00 67 DA 80 11 00 00 00 00 00 00 BB [12:13:28]Write i2c OK [12:13:28]MH_I2C_Read... [12:13:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:28]Read from MH i2c: E2 [12:13:28]MH_I2C_Read... [12:13:28]Read from MH i2c: E2 17 00 [12:13:28]MH_I2C_Read... [12:13:28]Read from MH i2c: E2 17 00 67 DA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0D [12:13:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:13:28]wFMCommunicate OK [12:13:28]requested_item fd.num is exist - process it [12:13:28]SAM_PROTO_GetFieldsCounters [12:13:28]wFMCommunicate request_size=4 [12:13:28]MH_SAM_APDU [12:13:28]CAPDU: 80 13 00 00 [12:13:28]Write to MH i2c: E2 08 00 68 DA 80 13 00 00 00 00 00 00 BE [12:13:28]Write i2c OK [12:13:28]MH_I2C_Read... [12:13:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:28]Read from MH i2c: E2 [12:13:28]MH_I2C_Read... [12:13:28]Read from MH i2c: E2 62 00 [12:13:28]MH_I2C_Read... [12:13:28]Read from MH i2c: E2 62 00 68 DA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D9 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [12:13:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D9 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:13:28]wFMCommunicate OK [12:13:28]SAM_PROTO_GetFieldsCounters done [12:13:28]requested_item shift.num is exist - process it [12:13:28]requested_item shift.opened is exist - process it [12:13:28]req_shift_opened [12:13:28]FM_GetShiftState [12:13:28]SAM_PROTO_GetShiftState [12:13:28]wFMCommunicate request_size=4 [12:13:28]MH_SAM_APDU [12:13:28]CAPDU: 80 13 01 00 [12:13:28]Write to MH i2c: E2 08 00 69 DA 80 13 01 00 00 00 00 00 C0 [12:13:28]Write i2c OK [12:13:28]MH_I2C_Read... [12:13:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:28]Read from MH i2c: E2 [12:13:28]MH_I2C_Read... [12:13:28]Read from MH i2c: E2 0E 00 [12:13:28]MH_I2C_Read... [12:13:28]Read from MH i2c: E2 0E 00 69 DA 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 C6 [12:13:28]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:13:28]wFMCommunicate OK [12:13:28]SAM_PROTO_GetShiftState done [12:13:28]FM_GetShiftState done [12:13:28]req_shift_opened done [12:13:28]requested_item shift.open_date is exist - process it [12:13:28]req_shift_open_date [12:13:28]req_shift_open_date done [12:13:28]produce_requested_data done [12:13:28]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69337,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [12:13:28]process_action_free close_receipt [12:13:28]json_value_free [12:13:28]json_value_free done [12:13:28]process_json_proto returns [12:13:28]Send response to host [12:13:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69337,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [12:13:28]free response buf [12:13:28]execute_script done [12:13:28]execute_script returns [12:13:28]free content buf [12:13:28]Sock 8.Close socket [12:13:28]Sock 8.Thread stoped [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]accept exits with 9 [12:13:57]New connection [12:13:57]New thread 3067116900 created [12:13:57]Thread 3067260260 joined [12:13:57]Waiting for new connection... [12:13:57] Sock 9.Parse request [12:13:57]Sock 9.Check first char [12:13:57]Sock 9.First char is OK [12:13:57]request: POST /json_proto HTTP/1.0 [12:13:57]Method: POST [12:13:57]URL: /json_proto [12:13:57]Method is POST - this is cgi request [12:13:57]url: /json_proto [12:13:57]query_string will be loaded in cgi processing [12:13:57]execute_cgi json_proto POST (null) [12:13:57]execute_cgi path=json_proto method=POST [12:13:57]POST find Content-Length [12:13:57]Host: 172.17.50.3:8080 [12:13:57]Content-Length: 680 [12:13:57]Content-Type: application/json [12:13:57] [12:13:57]POST finish read [12:13:57]Found Content-Length = 680 [12:13:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:57]execute_script... [12:13: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)2885056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:57]POST & json_proto [12:13:57]process_json_proto [12:13:57]json parsed OK: [12:13:57]protocol is kg_v1.0 [12:13:57]action value=close_receipt [12:13:57]process_action close_receipt [12:13:57]cmd_close_receipt [12:13:57]MH_GetDate [12:13:57]Write to MH i2c: F0 00 00 6A DA 33 [12:13:57]Write i2c OK [12:13:57]MH_I2C_Read... [12:13:57]Read from MH i2c: F0 [12:13:57]MH_I2C_Read... [12:13:57]Read from MH i2c: F0 09 00 [12:13:57]MH_I2C_Read... [12:13:57]Read from MH i2c: F0 09 00 6A DA 00 0F F4 14 67 6B 98 1E 66 41 [12:13:57]GetLastDocTimeStamp 1729426415 [12:13:57]current date 1729426447 [12:13:57]FM_GetShiftState [12:13:57]SAM_PROTO_GetShiftState [12:13:57]wFMCommunicate request_size=4 [12:13:57]MH_SAM_APDU [12:13:57]CAPDU: 80 13 01 00 [12:13:57]Write to MH i2c: E2 08 00 6B DA 80 13 01 00 00 00 00 00 C2 [12:13:57]Write i2c OK [12:13:57]MH_I2C_Read... [12:13:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:57]Read from MH i2c: E2 [12:13:57]MH_I2C_Read... [12:13:57]Read from MH i2c: E2 0E 00 [12:13:57]MH_I2C_Read... [12:13:57]Read from MH i2c: E2 0E 00 6B DA 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 C8 [12:13:57]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:13:57]wFMCommunicate OK [12:13:57]SAM_PROTO_GetShiftState done [12:13:57]FM_GetShiftState done [12:13:57]opened in 1729383220 [12:13:57]opened+sec_in_day 1729469620 [12:13:57]quantity*price = 100050 [12:13:57]sum+1 = 100052 [12:13:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 183 20.10.2024 12:14 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69338 ФПД: 177097975227787 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121407&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69338&fm=177097975227787&tin=02508201610067®Number=0000000000156251&sum=100000 [12:13:58]StoreToDocumentArchive [12:13:58]shift 193 fd 69338 [12:13:58]save to /storage/0193/doc_00069338 [12:13:58]save last doc name /storage/0193/doc_00069338 to /storage/kkm_last_doc_name [12:13:58]save OK [12:13:58]Clear old archive folders... [12:13:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:13:58]tlvbuf is 005B6310 [12:13:58]SAM_PROTO_ClearQueue [12:13:58]wFMCommunicate request_size=4 [12:13:58]MH_SAM_APDU [12:13:58]CAPDU: 80 09 00 00 [12:13:58]Write to MH i2c: E2 08 00 78 DA 80 09 00 00 00 00 00 00 C4 [12:13:58]Write i2c OK [12:13:58]MH_I2C_Read... [12:13:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:13:58]Read from MH i2c: E2 [12:13:58]MH_I2C_Read... [12:13:58]Read from MH i2c: E2 03 00 [12:13:58]MH_I2C_Read... [12:13:58]Read from MH i2c: E2 03 00 78 DA 00 90 00 C6 [12:13:58]RAPDU: 90 00 [12:13:58]wFMCommunicate OK [12:13:58]SAM_PROTO_ClearQueue done [12:13:58]KKMCreateOFDPacket [12:13:58]OFDProtocolAddRootSTLVToBuf [12:13:58]FM_MakeSignedData [12:13:58]FM_MakeSignedData [12:13:58]SAM_PROTO_SignData [12:13:58]wFMCommunicate request_size=4 [12:13:58]MH_SAM_APDU [12:13:58]CAPDU: 80 0D 01 02 [12:13:58]Write to MH i2c: E2 08 00 79 DA 80 0D 01 02 00 00 00 00 CC [12:13:58]Write i2c OK [12:13:58]MH_I2C_Read... [12:13:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:13:58]Read from MH i2c: E2 [12:13:58]MH_I2C_Read... [12:13:58]Read from MH i2c: E2 03 00 [12:13:58]MH_I2C_Read... [12:13:58]Read from MH i2c: E2 03 00 79 DA 00 90 00 C7 [12:13:58]RAPDU: 90 00 [12:13:58]wFMCommunicate OK [12:13:58]wFMCommunicate request_size=255 [12:13:58]MH_SAM_APDU [12:13:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 0F F4 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DA 0E 01 00 35 04 06 00 A1 11 D5 E7 [12:13:58]Write to MH i2c: E2 02 01 7A DA 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 0F F4 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DA 0E 01 00 35 04 06 00 A1 11 D5 E7 00 00 98 [12:13:58]Write i2c OK [12:13:58]MH_I2C_Read... [12:13:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:58]Read from MH i2c: E2 [12:13:58]MH_I2C_Read... [12:13:58]Read from MH i2c: E2 03 00 [12:13:58]MH_I2C_Read... [12:13:58]Read from MH i2c: E2 03 00 7A DA 00 90 00 C8 [12:13:58]RAPDU: 90 00 [12:13:58]wFMCommunicate OK [12:13:58]wFMCommunicate request_size=7 [12:13:58]MH_SAM_APDU [12:13:58]CAPDU: 80 0D 02 02 02 65 8B [12:13:58]Write to MH i2c: E2 0A 00 7B DA 80 0D 02 02 02 00 65 8B 00 00 C3 [12:13:58]Write i2c OK [12:13:58]MH_I2C_Read... [12:13:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:58]Read from MH i2c: E2 [12:13:58]MH_I2C_Read... [12:13:58]Read from MH i2c: E2 03 00 [12:13:58]MH_I2C_Read... [12:13:58]Read from MH i2c: E2 03 00 7B DA 00 90 00 C9 [12:13:58]RAPDU: 90 00 [12:13:58]wFMCommunicate OK [12:13:58]wFMCommunicate request_size=4 [12:13:58]MH_SAM_APDU [12:13:58]CAPDU: 80 0D 03 02 [12:13:58]Write to MH i2c: E2 08 00 7C DA 80 0D 03 02 00 00 00 00 D1 [12:13:58]Write i2c OK [12:13:58]MH_I2C_Read... [12:13:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:13:58]Read from MH i2c: E2 [12:13:58]MH_I2C_Read... [12:13:58]Read from MH i2c: E2 0B 00 [12:13:58]MH_I2C_Read... [12:13:58]Read from MH i2c: E2 0B 00 7C DA 00 A6 A1 A2 8F 8B B2 F7 72 90 00 F0 [12:13:58]RAPDU: A6 A1 A2 8F 8B B2 F7 72 90 00 [12:13:58]wFMCommunicate OK [12:13:58]SAM_PROTO_SignData done [12:13:58]FM_MakeSignedData done [12:13:58]CreateOFDProtocolMessage [12:13:58]wFMCommunicate request_size=4 [12:13:58]MH_SAM_APDU [12:13:58]CAPDU: 80 11 00 00 [12:13:58]Write to MH i2c: E2 08 00 7D DA 80 11 00 00 00 00 00 00 D1 [12:13:58]Write i2c OK [12:13:58]MH_I2C_Read... [12:13:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:58]Read from MH i2c: E2 [12:13:58]MH_I2C_Read... [12:13:58]Read from MH i2c: E2 17 00 [12:13:58]MH_I2C_Read... [12:13:58]Read from MH i2c: E2 17 00 7D DA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 23 [12:13:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:13:58]wFMCommunicate OK [12:13:58]CreateOFDProtocolMessage done [12:13:58]OFDSenderStorePacket 69338 [12:13:58]StoreOFDPacket docnum=69338 [12:13:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 53 D0 04 01 E2 D3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 0F F4 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DA 0E 01 00 35 04 06 00 A1 11 D5 E7 65 8B A6 A1 A2 8F 8B B2 F7 72 [12:13:58]CheckFolder [12:13:58]dirname=/storage/ofd_packets [12:13:58]CheckFolder done [12:13:58]ProducePacketName [12:13:58]name=ofd_packets/00069338 [12:13:58]NVStorageSaveData ofd_packets/00069338 [12:13:58]File name is /storage/ofd_packets/00069338 [12:13:58]Write 298 bytes [12:13:58]NVStorageSaveData done [12:13:58]OFDSenderStorePacket done [12:13:58]KKMCreateOFDPacket done [12:13:58]NVStorageSaveData kkm_last_timestamp [12:13:58]File name is /storage/kkm_last_timestamp [12:13:58]Write 4 bytes [12:13:58]NVStorageSaveData done [12:13:58]ExternCall_PrintAddStr [12:13:58]wPrintStart [12:13:58]Write to MH i2c: 01 00 00 7E DA 58 [12:13:58]Write i2c OK [12:13:58]MH_I2C_Read... [12:13:58]Read from MH i2c: 01 [12:13:58]MH_I2C_Read... [12:13:58]Read from MH i2c: 01 07 00 [12:13:58]MH_I2C_Read... [12:13:58]Read from MH i2c: 01 07 00 7E DA 00 00 00 00 00 FF 0F 6D [12:13:58]RasterBufferAndPrint [12:13:58]line Счет N : (1)2885056 [12:13:58]line ИНН: 02508201610067 [12:13:58]line Контрольно-Кассовый Чек [12:13:58]line ПРОДАЖА [12:13:58]line ТРК (МРК, ГНК) : 51 [12:13:58]line Товар: 2710194210 [12:13:58]line ДТ-К-5 [12:13:58]line 13.130 * 76.20 [12:13:58]line = 1000.51 [12:13:58]line НДС 12% НСП 1% [12:13:58]line > о реализуемом товаре [12:13:58]line ОКРУГЛЕНИЕ: -0.51 [12:13:58]line ИТОГО: 1000.00 [12:13:58]line Внесено: 1000.00 [12:13:58]line СДАЧА: 0.00 [12:13:58]line НСП 1% : 8.85 [12:13:58]line НДС 12% : 106.25 [12:13:58]line Наличными: 1000.00 [12:13:58]line Безнал.: 0.00 [12:13:58]line Место: АЗС № 85 "Партнер Нефть" [12:13:58]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:13:59]line СНО: Общий режим [12:13:59]line Чек 183 20.10.2024 12:14 [12:13:59]line Смена: 193 ФФД: 1.0 [12:13:59]line ЗНМ: 0300000167 [12:13:59]line РНМ: 0000000000156251 [12:13:59]line Версия ККМ: v1.0 [12:13:59]line ФМ: 0000000000963346 [12:13:59]line ФД: 69338 [12:13:59]line ФПД: 177097975227787 [12:13:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121407&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69338&fm=177097975227787&tin=02508201610067®Number=0000000000156251&sum=100000 [12:13:59]OFD Sender: Processing packet 69338 [packets to send 18, broken 17] [12:13:59]ProducePacketName [12:13:59]name=ofd_packets/00069338 [12:13:59]OFD Sender: To server: pG, [12:13:59]CommunicateWithHost lk.salyk.kg:30040 [12:13:59]ConnectInit lk.salyk.kg [12:13:59]written 0, free lines is 4095 [12:13:59]Connected sock=10 [12:13:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 53 D0 04 01 E2 D3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 0F F4 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DA 0E 01 00 35 04 06 00 A1 11 D5 E7 65 8B A6 A1 A2 8F 8B B2 F7 72 [12:13:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 A6 32 47 00 06 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DA 0E 01 00 F4 03 04 00 B6 9D 14 67 B6 04 01 00 00 FC CB 4A 35 D7 5F 8D 27 [12:13:59]CommunicateWithHost err = 0 [12:13:59]CheckOFDResponse [12:13:59]1017 (14) - 77093643461234 [12:13:59]1041 (16) - 0000000000963346 [12:13:59]1040 (4) - 69338 [12:13:59]1012 (4) - 20.10.2024 06:05 [12:13:59]1206 (1) - 0 [12:13:59]OFD Sender: Remove packet 69338 [12:13:59]ProducePacketName [12:13:59]name=ofd_packets/00069338 [12:13:59]NVStorageDeleteData [12:13:59]Write to MH i2c: 01 00 00 A9 DA 83 [12:13:59]Write i2c OK [12:13:59]MH_I2C_Read... [12:13:59]Read from MH i2c: 01 [12:13:59]MH_I2C_Read... [12:13:59]Read from MH i2c: 01 07 00 [12:13:59]MH_I2C_Read... [12:13:59]Read from MH i2c: 01 07 00 A9 DA 00 00 00 00 00 EF 0C 85 [12:13:59]RasterBufferAndPrint [12:13:59]line [12:13:59]line [12:13:59]line [12:13:59]line [12:13:59]line [12:13:59]written 0, free lines is 3317 [12:13:59]MH_Cut [12:13:59]Write to MH i2c: D1 01 00 B0 DA 01 5C [12:13:59]Write i2c OK [12:13:59]MH_I2C_Read... [12:13:59]Read from MH i2c: D1 [12:13:59]MH_I2C_Read... [12:13:59]Read from MH i2c: D1 01 00 [12:13:59]MH_I2C_Read... [12:13:59]Read from MH i2c: D1 01 00 B0 DA 00 5B [12:13:59]Write to MH i2c: 01 00 00 B1 DA 8B [12:13:59]Write i2c OK [12:13:59]MH_I2C_Read... [12:14:00]OFD Sender: No OFD packet to send [12:14:00]*** Cut start [12:14:00]*** Partial cut [12:14:00]*** CUTSNS_PIN = 1 [12:14:00]*** CUTSNS_PIN = 0 [12:14:00]*** Brake cut motor [12:14:01]Read from MH i2c: 01 [12:14:01]MH_I2C_Read... [12:14:01]*** Stop cut motor [12:14:01]*** Cut end [12:14:01]Read from MH i2c: 01 07 00 [12:14:01]MH_I2C_Read... [12:14:01]Read from MH i2c: 01 07 00 B1 DA 00 00 00 00 00 FF 0F A0 [12:14:01]process_action close_receipt done [12:14:01]requested_data is exist [12:14:01]produce_requested_data [12:14:01]requested_item fm.sn is exist - process it [12:14:01]wFMCommunicate request_size=4 [12:14:01]MH_SAM_APDU [12:14:01]CAPDU: 80 11 00 00 [12:14:01]Write to MH i2c: E2 08 00 B2 DA 80 11 00 00 00 00 00 00 06 [12:14:01]Write i2c OK [12:14:01]MH_I2C_Read... [12:14:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:01]Read from MH i2c: E2 [12:14:01]MH_I2C_Read... [12:14:01]Read from MH i2c: E2 17 00 [12:14:01]MH_I2C_Read... [12:14:01]Read from MH i2c: E2 17 00 B2 DA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 58 [12:14:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:14:01]wFMCommunicate OK [12:14:01]requested_item fd.num is exist - process it [12:14:01]SAM_PROTO_GetFieldsCounters [12:14:01]wFMCommunicate request_size=4 [12:14:01]MH_SAM_APDU [12:14:01]CAPDU: 80 13 00 00 [12:14:01]Write to MH i2c: E2 08 00 B3 DA 80 13 00 00 00 00 00 00 09 [12:14:01]Write i2c OK [12:14:01]MH_I2C_Read... [12:14:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:14:01]Read from MH i2c: E2 [12:14:01]MH_I2C_Read... [12:14:01]Read from MH i2c: E2 62 00 [12:14:01]MH_I2C_Read... [12:14:01]Read from MH i2c: E2 62 00 B3 DA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DA 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [12:14:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DA 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:14:01]wFMCommunicate OK [12:14:01]SAM_PROTO_GetFieldsCounters done [12:14:01]requested_item shift.num is exist - process it [12:14:01]requested_item shift.opened is exist - process it [12:14:01]req_shift_opened [12:14:01]FM_GetShiftState [12:14:01]SAM_PROTO_GetShiftState [12:14:01]wFMCommunicate request_size=4 [12:14:01]MH_SAM_APDU [12:14:01]CAPDU: 80 13 01 00 [12:14:01]Write to MH i2c: E2 08 00 B4 DA 80 13 01 00 00 00 00 00 0B [12:14:01]Write i2c OK [12:14:01]MH_I2C_Read... [12:14:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:01]Read from MH i2c: E2 [12:14:01]MH_I2C_Read... [12:14:01]Read from MH i2c: E2 0E 00 [12:14:01]MH_I2C_Read... [12:14:01]Read from MH i2c: E2 0E 00 B4 DA 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 11 [12:14:01]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:14:01]wFMCommunicate OK [12:14:01]SAM_PROTO_GetShiftState done [12:14:01]FM_GetShiftState done [12:14:01]req_shift_opened done [12:14:01]requested_item shift.open_date is exist - process it [12:14:01]req_shift_open_date [12:14:01]req_shift_open_date done [12:14:01]produce_requested_data done [12:14:01]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69338,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [12:14:01]process_action_free close_receipt [12:14:01]json_value_free [12:14:01]json_value_free done [12:14:01]process_json_proto returns [12:14:01]Send response to host [12:14:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69338,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [12:14:01]free response buf [12:14:01]execute_script done [12:14:01]execute_script returns [12:14:01]free content buf [12:14:01]Sock 9.Close socket [12:14:01]Sock 9.Thread stoped [12:14:05]OFD Sender: No OFD packet to send [12:14:10]OFD Sender: No OFD packet to send [12:14:15]OFD Sender: No OFD packet to send [12:14:20]OFD Sender: No OFD packet to send [12:14:25]OFD Sender: No OFD packet to send [12:14:30]OFD Sender: No OFD packet to send [12:14:35]OFD Sender: No OFD packet to send [12:14:40]OFD Sender: No OFD packet to send [12:14:45]OFD Sender: No OFD packet to send [12:14:50]OFD Sender: No OFD packet to send [12:14:55]OFD Sender: No OFD packet to send [12:15:00]OFD Sender: No OFD packet to send [12:15:03]accept exits with 8 [12:15:03]New connection [12:15:03]New thread 3067260260 created [12:15:03]Thread 3067116900 joined [12:15:03]Waiting for new connection... [12:15:03] Sock 8.Parse request [12:15:03]Sock 8.Check first char [12:15:03]Sock 8.First char is OK [12:15:03]request: POST /json_proto HTTP/1.0 [12:15:03]Method: POST [12:15:03]URL: /json_proto [12:15:03]Method is POST - this is cgi request [12:15:03]url: /json_proto [12:15:03]query_string will be loaded in cgi processing [12:15:03]execute_cgi json_proto POST (null) [12:15:03]execute_cgi path=json_proto method=POST [12:15:03]POST find Content-Length [12:15:03]Host: 172.17.50.3:8080 [12:15:03]Content-Length: 684 [12:15:03]Content-Type: application/json [12:15:03] [12:15:03]POST finish read [12:15:03]Found Content-Length = 684 [12:15:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:03]execute_script... [12:15: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)2885057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:03]POST & json_proto [12:15:03]process_json_proto [12:15:03]json parsed OK: [12:15:03]protocol is kg_v1.0 [12:15:03]action value=close_receipt [12:15:03]process_action close_receipt [12:15:03]cmd_close_receipt [12:15:03]MH_GetDate [12:15:03]Write to MH i2c: F0 00 00 B5 DA 7E [12:15:03]Write i2c OK [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: F0 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: F0 09 00 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: F0 09 00 B5 DA 00 52 F4 14 67 6B 98 1E 66 CF [12:15:03]GetLastDocTimeStamp 1729426447 [12:15:03]current date 1729426514 [12:15:03]FM_GetShiftState [12:15:03]SAM_PROTO_GetShiftState [12:15:03]wFMCommunicate request_size=4 [12:15:03]MH_SAM_APDU [12:15:03]CAPDU: 80 13 01 00 [12:15:03]Write to MH i2c: E2 08 00 B6 DA 80 13 01 00 00 00 00 00 0D [12:15:03]Write i2c OK [12:15:03]MH_I2C_Read... [12:15:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:03]Read from MH i2c: E2 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: E2 0E 00 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: E2 0E 00 B6 DA 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 13 [12:15:03]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:15:03]wFMCommunicate OK [12:15:03]SAM_PROTO_GetShiftState done [12:15:03]FM_GetShiftState done [12:15:03]opened in 1729383220 [12:15:03]opened+sec_in_day 1729469620 [12:15:03]quantity*price = 50025 [12:15:03]sum+1 = 50027 [12:15:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 184 20.10.2024 12:15 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69339 ФПД: 261945869650462 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121514&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69339&fm=261945869650462&tin=02508201610067®Number=0000000000156251&sum=50000 [12:15:05]StoreToDocumentArchive [12:15:05]shift 193 fd 69339 [12:15:05]save to /storage/0193/doc_00069339 [12:15:05]save last doc name /storage/0193/doc_00069339 to /storage/kkm_last_doc_name [12:15:05]save OK [12:15:05]Clear old archive folders... [12:15:05]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:15:05]tlvbuf is 00890560 [12:15:05]SAM_PROTO_ClearQueue [12:15:05]wFMCommunicate request_size=4 [12:15:05]MH_SAM_APDU [12:15:05]CAPDU: 80 09 00 00 [12:15:05]Write to MH i2c: E2 08 00 C3 DA 80 09 00 00 00 00 00 00 0F [12:15:05]Write i2c OK [12:15:05]MH_I2C_Read... [12:15:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:15:05]Read from MH i2c: E2 [12:15:05]MH_I2C_Read... [12:15:05]Read from MH i2c: E2 03 00 [12:15:05]MH_I2C_Read... [12:15:05]Read from MH i2c: E2 03 00 C3 DA 00 90 00 11 [12:15:05]RAPDU: 90 00 [12:15:05]wFMCommunicate OK [12:15:05]SAM_PROTO_ClearQueue done [12:15:05]KKMCreateOFDPacket [12:15:05]OFDProtocolAddRootSTLVToBuf [12:15:05]FM_MakeSignedData [12:15:05]FM_MakeSignedData [12:15:05]SAM_PROTO_SignData [12:15:05]wFMCommunicate request_size=4 [12:15:05]MH_SAM_APDU [12:15:05]CAPDU: 80 0D 01 02 [12:15:05]Write to MH i2c: E2 08 00 C4 DA 80 0D 01 02 00 00 00 00 17 [12:15:05]Write i2c OK [12:15:05]MH_I2C_Read... [12:15:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:15:05]Read from MH i2c: E2 [12:15:05]MH_I2C_Read... [12:15:05]Read from MH i2c: E2 03 00 [12:15:05]MH_I2C_Read... [12:15:05]Read from MH i2c: E2 03 00 C4 DA 00 90 00 12 [12:15:05]RAPDU: 90 00 [12:15:05]wFMCommunicate OK [12:15:05]wFMCommunicate request_size=255 [12:15:05]MH_SAM_APDU [12:15:05]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 52 F4 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DB 0E 01 [12:15:05]Write to MH i2c: E2 02 01 C5 DA 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 52 F4 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DB 0E 01 00 00 3D [12:15:05]Write i2c OK [12:15:05]MH_I2C_Read... [12:15:05]OFD Sender: No OFD packet to send [12:15:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:05]Read from MH i2c: E2 [12:15:05]MH_I2C_Read... [12:15:05]Read from MH i2c: E2 03 00 [12:15:05]MH_I2C_Read... [12:15:05]Read from MH i2c: E2 03 00 C5 DA 00 90 00 13 [12:15:05]RAPDU: 90 00 [12:15:05]wFMCommunicate OK [12:15:05]wFMCommunicate request_size=16 [12:15:05]MH_SAM_APDU [12:15:05]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 EE 3D 06 82 CA 1E [12:15:05]Write to MH i2c: E2 13 00 C6 DA 80 0D 02 02 0B 00 00 35 04 06 00 EE 3D 06 82 CA 1E 00 00 0A [12:15:05]Write i2c OK [12:15:05]MH_I2C_Read... [12:15:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:05]Read from MH i2c: E2 [12:15:05]MH_I2C_Read... [12:15:05]Read from MH i2c: E2 03 00 [12:15:05]MH_I2C_Read... [12:15:05]Read from MH i2c: E2 03 00 C6 DA 00 90 00 14 [12:15:05]RAPDU: 90 00 [12:15:05]wFMCommunicate OK [12:15:05]wFMCommunicate request_size=4 [12:15:05]MH_SAM_APDU [12:15:05]CAPDU: 80 0D 03 02 [12:15:05]Write to MH i2c: E2 08 00 C7 DA 80 0D 03 02 00 00 00 00 1C [12:15:05]Write i2c OK [12:15:05]MH_I2C_Read... [12:15:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:15:05]Read from MH i2c: E2 [12:15:05]MH_I2C_Read... [12:15:05]Read from MH i2c: E2 0B 00 [12:15:05]MH_I2C_Read... [12:15:05]Read from MH i2c: E2 0B 00 C7 DA 00 B7 59 7F 5A DA E6 BB 27 90 00 A8 [12:15:05]RAPDU: B7 59 7F 5A DA E6 BB 27 90 00 [12:15:05]wFMCommunicate OK [12:15:05]SAM_PROTO_SignData done [12:15:05]FM_MakeSignedData done [12:15:05]CreateOFDProtocolMessage [12:15:05]wFMCommunicate request_size=4 [12:15:05]MH_SAM_APDU [12:15:05]CAPDU: 80 11 00 00 [12:15:05]Write to MH i2c: E2 08 00 C8 DA 80 11 00 00 00 00 00 00 1C [12:15:05]Write i2c OK [12:15:05]MH_I2C_Read... [12:15:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:05]Read from MH i2c: E2 [12:15:05]MH_I2C_Read... [12:15:05]Read from MH i2c: E2 17 00 [12:15:05]MH_I2C_Read... [12:15:05]Read from MH i2c: E2 17 00 C8 DA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6E [12:15:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:15:05]wFMCommunicate OK [12:15:05]CreateOFDProtocolMessage done [12:15:05]OFDSenderStorePacket 69339 [12:15:05]StoreOFDPacket docnum=69339 [12:15:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 82 05 0D 01 2E 54 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 52 F4 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DB 0E 01 00 35 04 06 00 EE 3D 06 82 CA 1E B7 59 7F 5A DA E6 BB 27 [12:15:05]CheckFolder [12:15:05]dirname=/storage/ofd_packets [12:15:05]CheckFolder done [12:15:05]ProducePacketName [12:15:05]name=ofd_packets/00069339 [12:15:05]NVStorageSaveData ofd_packets/00069339 [12:15:05]File name is /storage/ofd_packets/00069339 [12:15:05]Write 307 bytes [12:15:05]NVStorageSaveData done [12:15:05]OFDSenderStorePacket done [12:15:05]KKMCreateOFDPacket done [12:15:05]NVStorageSaveData kkm_last_timestamp [12:15:05]File name is /storage/kkm_last_timestamp [12:15:05]Write 4 bytes [12:15:05]NVStorageSaveData done [12:15:05]ExternCall_PrintAddStr [12:15:05]wPrintStart [12:15:05]Write to MH i2c: 01 00 00 C9 DA A3 [12:15:05]Write i2c OK [12:15:05]MH_I2C_Read... [12:15:05]Read from MH i2c: 01 [12:15:05]MH_I2C_Read... [12:15:05]Read from MH i2c: 01 07 00 [12:15:05]MH_I2C_Read... [12:15:05]Read from MH i2c: 01 07 00 C9 DA 00 00 00 00 00 FF 0F B8 [12:15:05]RasterBufferAndPrint [12:15:05]line Счет N : (1)2885057 [12:15:05]line ИНН: 02508201610067 [12:15:05]line Контрольно-Кассовый Чек [12:15:05]line ПРОДАЖА [12:15:05]line ТРК (МРК, ГНК) : 31 [12:15:05]line Товар: 2710194240 [12:15:05]line D-ENERGY Дт-К-2 [12:15:05]line 6.480 * 77.20 [12:15:05]line = 500.26 [12:15:05]line НДС 12% НСП 1% [12:15:05]line > о реализуемом товаре [12:15:05]line ОКРУГЛЕНИЕ: -0.26 [12:15:05]line ИТОГО: 500.00 [12:15:05]line Внесено: 500.00 [12:15:05]line СДАЧА: 0.00 [12:15:05]line НСП 1% : 4.43 [12:15:05]line НДС 12% : 53.12 [12:15:05]line Наличными: 500.00 [12:15:05]line Безнал.: 0.00 [12:15:05]line Место: АЗС № 85 "Партнер Нефть" [12:15:05]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:15:05]line СНО: Общий режим [12:15:05]line Чек 184 20.10.2024 12:15 [12:15:05]line Смена: 193 ФФД: 1.0 [12:15:05]line ЗНМ: 0300000167 [12:15:05]line РНМ: 0000000000156251 [12:15:05]line Версия ККМ: v1.0 [12:15:05]line ФМ: 0000000000963346 [12:15:05]line ФД: 69339 [12:15:05]line ФПД: 261945869650462 [12:15:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T121514&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69339&fm=261945869650462&tin=02508201610067®Number=0000000000156251&sum=50000 [12:15:05]OFD Sender: Processing packet 69339 [packets to send 18, broken 17] [12:15:05]ProducePacketName [12:15:05]name=ofd_packets/00069339 [12:15:05]OFD Sender: To server: pG, [12:15:05]CommunicateWithHost lk.salyk.kg:30040 [12:15:05]ConnectInit lk.salyk.kg [12:15:05]written 0, free lines is 4095 [12:15:06]Connected sock=10 [12:15:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 82 05 0D 01 2E 54 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 52 F4 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DB 0E 01 00 35 04 06 00 EE 3D 06 82 CA 1E B7 59 7F 5A DA E6 BB 27 [12:15:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 1F B4 47 00 A1 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DB 0E 01 00 F4 03 04 00 F9 9D 14 67 B6 04 01 00 00 E9 C1 80 AF 3B 4B 81 6E [12:15:06]CommunicateWithHost err = 0 [12:15:06]CheckOFDResponse [12:15:06]1017 (14) - 77093643461234 [12:15:06]1041 (16) - 0000000000963346 [12:15:06]1040 (4) - 69339 [12:15:06]1012 (4) - 20.10.2024 06:06 [12:15:06]1206 (1) - 0 [12:15:06]OFD Sender: Remove packet 69339 [12:15:06]ProducePacketName [12:15:06]name=ofd_packets/00069339 [12:15:06]NVStorageDeleteData [12:15:06]Write to MH i2c: 01 00 00 F4 DA CE [12:15:06]Write i2c OK [12:15:06]MH_I2C_Read... [12:15:06]Read from MH i2c: 01 [12:15:06]MH_I2C_Read... [12:15:06]Read from MH i2c: 01 07 00 [12:15:06]MH_I2C_Read... [12:15:06]Read from MH i2c: 01 07 00 F4 DA 00 00 00 00 00 FA 0C DB [12:15:06]RasterBufferAndPrint [12:15:06]line [12:15:06]line [12:15:06]line [12:15:06]line [12:15:06]line [12:15:06]written 0, free lines is 3331 [12:15:06]MH_Cut [12:15:06]Write to MH i2c: D1 01 00 FB DA 01 A7 [12:15:06]Write i2c OK [12:15:06]MH_I2C_Read... [12:15:06]Read from MH i2c: D1 [12:15:06]MH_I2C_Read... [12:15:06]Read from MH i2c: D1 01 00 [12:15:06]MH_I2C_Read... [12:15:06]Read from MH i2c: D1 01 00 FB DA 00 A6 [12:15:06]Write to MH i2c: 01 00 00 FC DA D6 [12:15:06]Write i2c OK [12:15:06]MH_I2C_Read... [12:15:06]OFD Sender: No OFD packet to send [12:15:07]*** Cut start [12:15:07]*** Partial cut [12:15:07]*** CUTSNS_PIN = 1 [12:15:07]*** CUTSNS_PIN = 0 [12:15:07]*** Brake cut motor [12:15:07]Read from MH i2c: 01 [12:15:07]MH_I2C_Read... [12:15:07]*** Stop cut motor [12:15:07]*** Cut end [12:15:07]Read from MH i2c: 01 07 00 [12:15:07]MH_I2C_Read... [12:15:07]Read from MH i2c: 01 07 00 FC DA 00 00 00 00 00 FF 0F EB [12:15:07]process_action close_receipt done [12:15:07]requested_data is exist [12:15:07]produce_requested_data [12:15:07]requested_item fm.sn is exist - process it [12:15:07]wFMCommunicate request_size=4 [12:15:07]MH_SAM_APDU [12:15:07]CAPDU: 80 11 00 00 [12:15:07]Write to MH i2c: E2 08 00 FD DA 80 11 00 00 00 00 00 00 51 [12:15:07]Write i2c OK [12:15:07]MH_I2C_Read... [12:15:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:07]Read from MH i2c: E2 [12:15:07]MH_I2C_Read... [12:15:07]Read from MH i2c: E2 17 00 [12:15:07]MH_I2C_Read... [12:15:07]Read from MH i2c: E2 17 00 FD DA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A3 [12:15:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:15:07]wFMCommunicate OK [12:15:07]requested_item fd.num is exist - process it [12:15:07]SAM_PROTO_GetFieldsCounters [12:15:07]wFMCommunicate request_size=4 [12:15:07]MH_SAM_APDU [12:15:07]CAPDU: 80 13 00 00 [12:15:07]Write to MH i2c: E2 08 00 FE DA 80 13 00 00 00 00 00 00 54 [12:15:07]Write i2c OK [12:15:07]MH_I2C_Read... [12:15:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:07]Read from MH i2c: E2 [12:15:07]MH_I2C_Read... [12:15:07]Read from MH i2c: E2 62 00 [12:15:07]MH_I2C_Read... [12:15:07]Read from MH i2c: E2 62 00 FE DA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DB 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [12:15:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DB 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:15:07]wFMCommunicate OK [12:15:07]SAM_PROTO_GetFieldsCounters done [12:15:07]requested_item shift.num is exist - process it [12:15:07]requested_item shift.opened is exist - process it [12:15:07]req_shift_opened [12:15:07]FM_GetShiftState [12:15:07]SAM_PROTO_GetShiftState [12:15:07]wFMCommunicate request_size=4 [12:15:07]MH_SAM_APDU [12:15:07]CAPDU: 80 13 01 00 [12:15:07]Write to MH i2c: E2 08 00 FF DA 80 13 01 00 00 00 00 00 56 [12:15:07]Write i2c OK [12:15:07]MH_I2C_Read... [12:15:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:07]Read from MH i2c: E2 [12:15:07]MH_I2C_Read... [12:15:07]Read from MH i2c: E2 0E 00 [12:15:07]MH_I2C_Read... [12:15:07]Read from MH i2c: E2 0E 00 FF DA 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 5C [12:15:07]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:15:07]wFMCommunicate OK [12:15:07]SAM_PROTO_GetShiftState done [12:15:07]FM_GetShiftState done [12:15:07]req_shift_opened done [12:15:07]requested_item shift.open_date is exist - process it [12:15:07]req_shift_open_date [12:15:07]req_shift_open_date done [12:15:07]produce_requested_data done [12:15:07]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69339,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [12:15:07]process_action_free close_receipt [12:15:07]json_value_free [12:15:07]json_value_free done [12:15:07]process_json_proto returns [12:15:07]Send response to host [12:15:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69339,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [12:15:07]free response buf [12:15:07]execute_script done [12:15:07]execute_script returns [12:15:07]free content buf [12:15:07]Sock 8.Close socket [12:15:07]Sock 8.Thread stoped [12:15:11]OFD Sender: No OFD packet to send [12:15:16]OFD Sender: No OFD packet to send [12:15:21]OFD Sender: No OFD packet to send [12:15:26]OFD Sender: No OFD packet to send [12:15:31]OFD Sender: No OFD packet to send [12:15:36]OFD Sender: No OFD packet to send [12:15:41]OFD Sender: No OFD packet to send [12:15:46]OFD Sender: No OFD packet to send [12:15:51]OFD Sender: No OFD packet to send [12:15:56]OFD Sender: No OFD packet to send [12:16:01]OFD Sender: No OFD packet to send [12:16:06]OFD Sender: No OFD packet to send [12:16:11]OFD Sender: No OFD packet to send [12:16:16]OFD Sender: No OFD packet to send [12:16:21]OFD Sender: No OFD packet to send [12:16:26]OFD Sender: No OFD packet to send [12:16:31]OFD Sender: No OFD packet to send [12:16:36]OFD Sender: No OFD packet to send [12:16:41]OFD Sender: No OFD packet to send [12:16:46]OFD Sender: No OFD packet to send [12:16:51]OFD Sender: No OFD packet to send [12:16:56]OFD Sender: No OFD packet to send [12:17:01]OFD Sender: No OFD packet to send [12:17:06]OFD Sender: No OFD packet to send [12:17:11]OFD Sender: No OFD packet to send [12:17:16]OFD Sender: No OFD packet to send [12:17:21]OFD Sender: No OFD packet to send [12:17:26]OFD Sender: No OFD packet to send [12:17:31]OFD Sender: No OFD packet to send [12:17:36]OFD Sender: No OFD packet to send [12:17:41]OFD Sender: No OFD packet to send [12:17:46]OFD Sender: No OFD packet to send [12:17:51]OFD Sender: No OFD packet to send [12:17:56]OFD Sender: No OFD packet to send [12:18:01]OFD Sender: No OFD packet to send [12:18:06]OFD Sender: No OFD packet to send [12:18:11]OFD Sender: No OFD packet to send [12:18:16]OFD Sender: No OFD packet to send [12:18:21]OFD Sender: No OFD packet to send [12:18:26]OFD Sender: No OFD packet to send [12:18:31]OFD Sender: No OFD packet to send [12:18:36]OFD Sender: No OFD packet to send [12:18:41]OFD Sender: No OFD packet to send [12:18:46]OFD Sender: No OFD packet to send [12:18:51]OFD Sender: No OFD packet to send [12:18:56]OFD Sender: No OFD packet to send [12:19:01]OFD Sender: No OFD packet to send [12:19:06]OFD Sender: No OFD packet to send [12:19:11]OFD Sender: No OFD packet to send [12:19:16]OFD Sender: No OFD packet to send [12:19:21]OFD Sender: No OFD packet to send [12:19:27]OFD Sender: No OFD packet to send [12:19:32]OFD Sender: No OFD packet to send [12:19:37]OFD Sender: No OFD packet to send [12:19:42]OFD Sender: No OFD packet to send [12:19:47]OFD Sender: No OFD packet to send [12:19:52]OFD Sender: No OFD packet to send [12:19:57]OFD Sender: No OFD packet to send [12:20:02]OFD Sender: No OFD packet to send [12:20:07]OFD Sender: No OFD packet to send [12:20:12]OFD Sender: No OFD packet to send [12:20:17]OFD Sender: No OFD packet to send [12:20:22]OFD Sender: No OFD packet to send [12:20:27]OFD Sender: No OFD packet to send [12:20:32]OFD Sender: No OFD packet to send [12:20:37]OFD Sender: No OFD packet to send [12:20:42]OFD Sender: No OFD packet to send [12:20:47]OFD Sender: No OFD packet to send [12:20:52]OFD Sender: No OFD packet to send [12:20:57]OFD Sender: No OFD packet to send [12:21:02]OFD Sender: No OFD packet to send [12:21:07]OFD Sender: No OFD packet to send [12:21:12]OFD Sender: No OFD packet to send [12:21:17]OFD Sender: No OFD packet to send [12:21:17]accept exits with 9 [12:21:17]New connection [12:21:17]New thread 3067116900 created [12:21:17]Thread 3067260260 joined [12:21:17]Waiting for new connection... [12:21:17] Sock 9.Parse request [12:21:17]Sock 9.Check first char [12:21:17]Sock 9.First char is OK [12:21:17]request: POST /json_proto HTTP/1.0 [12:21:17]Method: POST [12:21:17]URL: /json_proto [12:21:17]Method is POST - this is cgi request [12:21:17]url: /json_proto [12:21:17]query_string will be loaded in cgi processing [12:21:17]execute_cgi json_proto POST (null) [12:21:17]execute_cgi path=json_proto method=POST [12:21:17]POST find Content-Length [12:21:17]Host: 172.17.50.3:8080 [12:21:17]Content-Length: 683 [12:21:17]Content-Type: application/json [12:21:17] [12:21:17]POST finish read [12:21:17]Found Content-Length = 683 [12:21:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:17]execute_script... [12:21:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:17]POST & json_proto [12:21:17]process_json_proto [12:21:17]json parsed OK: [12:21:17]protocol is kg_v1.0 [12:21:17]action value=close_receipt [12:21:17]process_action close_receipt [12:21:17]cmd_close_receipt [12:21:17]MH_GetDate [12:21:17]Write to MH i2c: F0 00 00 00 DB CA [12:21:17]Write i2c OK [12:21:17]MH_I2C_Read... [12:21:17]Read from MH i2c: F0 [12:21:17]MH_I2C_Read... [12:21:17]Read from MH i2c: F0 09 00 [12:21:17]MH_I2C_Read... [12:21:17]Read from MH i2c: F0 09 00 00 DB 00 C7 F5 14 67 6B 98 1E 66 91 [12:21:17]GetLastDocTimeStamp 1729426514 [12:21:17]current date 1729426887 [12:21:17]FM_GetShiftState [12:21:17]SAM_PROTO_GetShiftState [12:21:17]wFMCommunicate request_size=4 [12:21:17]MH_SAM_APDU [12:21:17]CAPDU: 80 13 01 00 [12:21:17]Write to MH i2c: E2 08 00 01 DB 80 13 01 00 00 00 00 00 59 [12:21:17]Write i2c OK [12:21:17]MH_I2C_Read... [12:21:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:17]Read from MH i2c: E2 [12:21:17]MH_I2C_Read... [12:21:17]Read from MH i2c: E2 0E 00 [12:21:17]MH_I2C_Read... [12:21:17]Read from MH i2c: E2 0E 00 01 DB 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 5F [12:21:17]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:21:17]wFMCommunicate OK [12:21:17]SAM_PROTO_GetShiftState done [12:21:17]FM_GetShiftState done [12:21:17]opened in 1729383220 [12:21:17]opened+sec_in_day 1729469620 [12:21:17]quantity*price = 100015 [12:21:17]sum+1 = 100017 [12:21:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 185 20.10.2024 12:21 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69340 ФПД: 183231428621274 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122127&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69340&fm=183231428621274&tin=02508201610067®Number=0000000000156251&sum=100000 [12:21:18]StoreToDocumentArchive [12:21:18]shift 193 fd 69340 [12:21:18]save to /storage/0193/doc_00069340 [12:21:18]save last doc name /storage/0193/doc_00069340 to /storage/kkm_last_doc_name [12:21:18]save OK [12:21:18]Clear old archive folders... [12:21:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:21:18]tlvbuf is 005D7370 [12:21:18]SAM_PROTO_ClearQueue [12:21:18]wFMCommunicate request_size=4 [12:21:18]MH_SAM_APDU [12:21:18]CAPDU: 80 09 00 00 [12:21:18]Write to MH i2c: E2 08 00 0E DB 80 09 00 00 00 00 00 00 5B [12:21:18]Write i2c OK [12:21:18]MH_I2C_Read... [12:21:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:21:18]Read from MH i2c: E2 [12:21:18]MH_I2C_Read... [12:21:18]Read from MH i2c: E2 03 00 [12:21:18]MH_I2C_Read... [12:21:18]Read from MH i2c: E2 03 00 0E DB 00 90 00 5D [12:21:18]RAPDU: 90 00 [12:21:18]wFMCommunicate OK [12:21:18]SAM_PROTO_ClearQueue done [12:21:18]KKMCreateOFDPacket [12:21:18]OFDProtocolAddRootSTLVToBuf [12:21:18]FM_MakeSignedData [12:21:18]FM_MakeSignedData [12:21:18]SAM_PROTO_SignData [12:21:18]wFMCommunicate request_size=4 [12:21:18]MH_SAM_APDU [12:21:18]CAPDU: 80 0D 01 02 [12:21:18]Write to MH i2c: E2 08 00 0F DB 80 0D 01 02 00 00 00 00 63 [12:21:18]Write i2c OK [12:21:18]MH_I2C_Read... [12:21:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:21:18]Read from MH i2c: E2 [12:21:18]MH_I2C_Read... [12:21:18]Read from MH i2c: E2 03 00 [12:21:18]MH_I2C_Read... [12:21:18]Read from MH i2c: E2 03 00 0F DB 00 90 00 5E [12:21:18]RAPDU: 90 00 [12:21:18]wFMCommunicate OK [12:21:18]wFMCommunicate request_size=255 [12:21:18]MH_SAM_APDU [12:21:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 C7 F5 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DC 0E 01 00 35 04 06 00 A6 [12:21:18]Write to MH i2c: E2 02 01 10 DB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 C7 F5 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DC 0E 01 00 35 04 06 00 A6 00 00 28 [12:21:18]Write i2c OK [12:21:18]MH_I2C_Read... [12:21:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:18]Read from MH i2c: E2 [12:21:18]MH_I2C_Read... [12:21:18]Read from MH i2c: E2 03 00 [12:21:18]MH_I2C_Read... [12:21:18]Read from MH i2c: E2 03 00 10 DB 00 90 00 5F [12:21:18]RAPDU: 90 00 [12:21:18]wFMCommunicate OK [12:21:18]wFMCommunicate request_size=10 [12:21:18]MH_SAM_APDU [12:21:18]CAPDU: 80 0D 02 02 05 A5 E4 36 F3 DA [12:21:18]Write to MH i2c: E2 0D 00 11 DB 80 0D 02 02 05 00 A5 E4 36 F3 DA 00 00 FC [12:21:18]Write i2c OK [12:21:18]MH_I2C_Read... [12:21:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:18]Read from MH i2c: E2 [12:21:18]MH_I2C_Read... [12:21:18]Read from MH i2c: E2 03 00 [12:21:18]MH_I2C_Read... [12:21:18]Read from MH i2c: E2 03 00 11 DB 00 90 00 60 [12:21:18]RAPDU: 90 00 [12:21:18]wFMCommunicate OK [12:21:18]wFMCommunicate request_size=4 [12:21:18]MH_SAM_APDU [12:21:18]CAPDU: 80 0D 03 02 [12:21:18]Write to MH i2c: E2 08 00 12 DB 80 0D 03 02 00 00 00 00 68 [12:21:18]Write i2c OK [12:21:18]MH_I2C_Read... [12:21:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:21:18]Read from MH i2c: E2 [12:21:18]MH_I2C_Read... [12:21:18]Read from MH i2c: E2 0B 00 [12:21:18]MH_I2C_Read... [12:21:18]Read from MH i2c: E2 0B 00 12 DB 00 39 CF 0C DF A8 77 9D 5E 90 00 76 [12:21:18]RAPDU: 39 CF 0C DF A8 77 9D 5E 90 00 [12:21:18]wFMCommunicate OK [12:21:18]SAM_PROTO_SignData done [12:21:18]FM_MakeSignedData done [12:21:18]CreateOFDProtocolMessage [12:21:18]wFMCommunicate request_size=4 [12:21:18]MH_SAM_APDU [12:21:18]CAPDU: 80 11 00 00 [12:21:18]Write to MH i2c: E2 08 00 13 DB 80 11 00 00 00 00 00 00 68 [12:21:18]Write i2c OK [12:21:18]MH_I2C_Read... [12:21:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:18]Read from MH i2c: E2 [12:21:18]MH_I2C_Read... [12:21:18]Read from MH i2c: E2 17 00 [12:21:18]MH_I2C_Read... [12:21:18]Read from MH i2c: E2 17 00 13 DB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BA [12:21:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:21:18]wFMCommunicate OK [12:21:18]CreateOFDProtocolMessage done [12:21:18]OFDSenderStorePacket 69340 [12:21:18]StoreOFDPacket docnum=69340 [12:21:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 AA 64 07 01 5B 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 C7 F5 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DC 0E 01 00 35 04 06 00 A6 A5 E4 36 F3 DA 39 CF 0C DF A8 77 9D 5E [12:21:18]CheckFolder [12:21:18]dirname=/storage/ofd_packets [12:21:18]CheckFolder done [12:21:18]ProducePacketName [12:21:18]name=ofd_packets/00069340 [12:21:18]NVStorageSaveData ofd_packets/00069340 [12:21:18]File name is /storage/ofd_packets/00069340 [12:21:18]Write 301 bytes [12:21:18]NVStorageSaveData done [12:21:18]OFDSenderStorePacket done [12:21:18]KKMCreateOFDPacket done [12:21:18]NVStorageSaveData kkm_last_timestamp [12:21:18]File name is /storage/kkm_last_timestamp [12:21:18]Write 4 bytes [12:21:18]NVStorageSaveData done [12:21:18]ExternCall_PrintAddStr [12:21:18]wPrintStart [12:21:18]Write to MH i2c: 01 00 00 14 DB EF [12:21:18]Write i2c OK [12:21:18]MH_I2C_Read... [12:21:18]Read from MH i2c: 01 [12:21:18]MH_I2C_Read... [12:21:18]Read from MH i2c: 01 07 00 [12:21:18]MH_I2C_Read... [12:21:18]Read from MH i2c: 01 07 00 14 DB 00 00 00 00 00 FF 0F 04 [12:21:18]RasterBufferAndPrint [12:21:18]line Счет N : (1)2885058 [12:21:18]line ИНН: 02508201610067 [12:21:18]line Контрольно-Кассовый Чек [12:21:18]line ПРОДАЖА [12:21:18]line ТРК (МРК, ГНК) : 22 [12:21:18]line Товар: 2710124130 [12:21:18]line Аи-92-К-5 [12:21:18]line 14.950 * 66.90 [12:21:18]line = 1000.16 [12:21:18]line НДС 12% НСП 1% [12:21:18]line > о реализуемом товаре [12:21:18]line ОКРУГЛЕНИЕ: -0.16 [12:21:18]line ИТОГО: 1000.00 [12:21:18]line Внесено: 1000.00 [12:21:18]line СДАЧА: 0.00 [12:21:18]line НСП 1% : 8.85 [12:21:18]line НДС 12% : 106.21 [12:21:18]line Наличными: 1000.00 [12:21:18]line Безнал.: 0.00 [12:21:18]line Место: АЗС № 85 "Партнер Нефть" [12:21:18]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:21:18]line СНО: Общий режим [12:21:18]line Чек 185 20.10.2024 12:21 [12:21:18]line Смена: 193 ФФД: 1.0 [12:21:18]line ЗНМ: 0300000167 [12:21:18]line РНМ: 0000000000156251 [12:21:18]line Версия ККМ: v1.0 [12:21:18]line ФМ: 0000000000963346 [12:21:18]line ФД: 69340 [12:21:18]line ФПД: 183231428621274 [12:21:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122127&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69340&fm=183231428621274&tin=02508201610067®Number=0000000000156251&sum=100000 [12:21:19]OFD Sender: Processing packet 69340 [packets to send 18, broken 17] [12:21:19]ProducePacketName [12:21:19]name=ofd_packets/00069340 [12:21:19]OFD Sender: To server: pG, [12:21:19]CommunicateWithHost lk.salyk.kg:30040 [12:21:19]ConnectInit lk.salyk.kg [12:21:19]written 0, free lines is 4095 [12:21:19]Connected sock=10 [12:21:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 AA 64 07 01 5B 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 C7 F5 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DC 0E 01 00 35 04 06 00 A6 A5 E4 36 F3 DA 39 CF 0C DF A8 77 9D 5E [12:21:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 58 6C 47 00 18 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DC 0E 01 00 F4 03 04 00 6E 9F 14 67 B6 04 01 00 00 CE F2 9C 35 42 C1 6E 7C [12:21:19]CommunicateWithHost err = 0 [12:21:19]CheckOFDResponse [12:21:19]1017 (14) - 77093643461234 [12:21:19]1041 (16) - 0000000000963346 [12:21:19]1040 (4) - 69340 [12:21:19]1012 (4) - 20.10.2024 06:13 [12:21:19]1206 (1) - 0 [12:21:19]OFD Sender: Remove packet 69340 [12:21:19]ProducePacketName [12:21:19]name=ofd_packets/00069340 [12:21:19]NVStorageDeleteData [12:21:19]Write to MH i2c: 01 00 00 3F DB 1A [12:21:19]Write i2c OK [12:21:19]MH_I2C_Read... [12:21:19]Read from MH i2c: 01 [12:21:19]MH_I2C_Read... [12:21:19]Read from MH i2c: 01 07 00 [12:21:19]MH_I2C_Read... [12:21:19]Read from MH i2c: 01 07 00 3F DB 00 00 00 00 00 FE 0C 2B [12:21:19]RasterBufferAndPrint [12:21:19]line [12:21:19]line [12:21:19]line [12:21:19]line [12:21:19]line [12:21:19]written 0, free lines is 3335 [12:21:19]MH_Cut [12:21:19]Write to MH i2c: D1 01 00 46 DB 01 F3 [12:21:19]Write i2c OK [12:21:19]MH_I2C_Read... [12:21:19]Read from MH i2c: D1 [12:21:19]MH_I2C_Read... [12:21:19]Read from MH i2c: D1 01 00 [12:21:19]MH_I2C_Read... [12:21:19]Read from MH i2c: D1 01 00 46 DB 00 F2 [12:21:19]Write to MH i2c: 01 00 00 47 DB 22 [12:21:19]Write i2c OK [12:21:19]MH_I2C_Read... [12:21:20]OFD Sender: No OFD packet to send [12:21:20]*** Cut start [12:21:20]*** Partial cut [12:21:20]*** CUTSNS_PIN = 1 [12:21:20]*** CUTSNS_PIN = 0 [12:21:20]*** Brake cut motor [12:21:21]Read from MH i2c: 01 [12:21:21]MH_I2C_Read... [12:21:21]*** Stop cut motor [12:21:21]*** Cut end [12:21:21]Read from MH i2c: 01 07 00 [12:21:21]MH_I2C_Read... [12:21:21]Read from MH i2c: 01 07 00 47 DB 00 00 00 00 00 FF 0F 37 [12:21:21]process_action close_receipt done [12:21:21]requested_data is exist [12:21:21]produce_requested_data [12:21:21]requested_item fm.sn is exist - process it [12:21:21]wFMCommunicate request_size=4 [12:21:21]MH_SAM_APDU [12:21:21]CAPDU: 80 11 00 00 [12:21:21]Write to MH i2c: E2 08 00 48 DB 80 11 00 00 00 00 00 00 9D [12:21:21]Write i2c OK [12:21:21]MH_I2C_Read... [12:21:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:21]Read from MH i2c: E2 [12:21:21]MH_I2C_Read... [12:21:21]Read from MH i2c: E2 17 00 [12:21:21]MH_I2C_Read... [12:21:21]Read from MH i2c: E2 17 00 48 DB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EF [12:21:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:21:21]wFMCommunicate OK [12:21:21]requested_item fd.num is exist - process it [12:21:21]SAM_PROTO_GetFieldsCounters [12:21:21]wFMCommunicate request_size=4 [12:21:21]MH_SAM_APDU [12:21:21]CAPDU: 80 13 00 00 [12:21:21]Write to MH i2c: E2 08 00 49 DB 80 13 00 00 00 00 00 00 A0 [12:21:21]Write i2c OK [12:21:21]MH_I2C_Read... [12:21:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:21]Read from MH i2c: E2 [12:21:21]MH_I2C_Read... [12:21:21]Read from MH i2c: E2 62 00 [12:21:21]MH_I2C_Read... [12:21:21]Read from MH i2c: E2 62 00 49 DB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DC 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [12:21:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DC 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:21:21]wFMCommunicate OK [12:21:21]SAM_PROTO_GetFieldsCounters done [12:21:21]requested_item shift.num is exist - process it [12:21:21]requested_item shift.opened is exist - process it [12:21:21]req_shift_opened [12:21:21]FM_GetShiftState [12:21:21]SAM_PROTO_GetShiftState [12:21:21]wFMCommunicate request_size=4 [12:21:21]MH_SAM_APDU [12:21:21]CAPDU: 80 13 01 00 [12:21:21]Write to MH i2c: E2 08 00 4A DB 80 13 01 00 00 00 00 00 A2 [12:21:21]Write i2c OK [12:21:21]MH_I2C_Read... [12:21:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:21]Read from MH i2c: E2 [12:21:21]MH_I2C_Read... [12:21:21]Read from MH i2c: E2 0E 00 [12:21:21]MH_I2C_Read... [12:21:21]Read from MH i2c: E2 0E 00 4A DB 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 A8 [12:21:21]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:21:21]wFMCommunicate OK [12:21:21]SAM_PROTO_GetShiftState done [12:21:21]FM_GetShiftState done [12:21:21]req_shift_opened done [12:21:21]requested_item shift.open_date is exist - process it [12:21:21]req_shift_open_date [12:21:21]req_shift_open_date done [12:21:21]produce_requested_data done [12:21:21]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69340,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [12:21:21]process_action_free close_receipt [12:21:21]json_value_free [12:21:21]json_value_free done [12:21:21]process_json_proto returns [12:21:21]Send response to host [12:21:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69340,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [12:21:21]free response buf [12:21:21]execute_script done [12:21:21]execute_script returns [12:21:21]free content buf [12:21:21]Sock 9.Close socket [12:21:21]Sock 9.Thread stoped [12:21:23]accept exits with 8 [12:21:23]New connection [12:21:23]New thread 3067260260 created [12:21:23]Thread 3067116900 joined [12:21:23]Waiting for new connection... [12:21:23] Sock 8.Parse request [12:21:23]Sock 8.Check first char [12:21:23]Sock 8.First char is OK [12:21:23]request: POST /json_proto HTTP/1.0 [12:21:23]Method: POST [12:21:23]URL: /json_proto [12:21:23]Method is POST - this is cgi request [12:21:23]url: /json_proto [12:21:23]query_string will be loaded in cgi processing [12:21:23]execute_cgi json_proto POST (null) [12:21:23]execute_cgi path=json_proto method=POST [12:21:23]POST find Content-Length [12:21:23]Host: 172.17.50.3:8080 [12:21:23]Content-Length: 764 [12:21:23]Content-Type: application/json [12:21:23] [12:21:23]POST finish read [12:21:23]Found Content-Length = 764 [12:21:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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: Mbank", "payments": [ { "type": 1, "sum" : 600.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:23]execute_script... [12:21:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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: Mbank", "payments": [ { "type": 1, "sum" : 600.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:23]POST & json_proto [12:21:23]process_json_proto [12:21:23]json parsed OK: [12:21:23]protocol is kg_v1.0 [12:21:23]action value=close_receipt [12:21:23]process_action close_receipt [12:21:23]cmd_close_receipt [12:21:23]MH_GetDate [12:21:23]Write to MH i2c: F0 00 00 4B DB 15 [12:21:23]Write i2c OK [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: F0 [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: F0 09 00 [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: F0 09 00 4B DB 00 CD F5 14 67 6B 98 1E 66 E2 [12:21:23]GetLastDocTimeStamp 1729426887 [12:21:23]current date 1729426893 [12:21:23]FM_GetShiftState [12:21:23]SAM_PROTO_GetShiftState [12:21:23]wFMCommunicate request_size=4 [12:21:23]MH_SAM_APDU [12:21:23]CAPDU: 80 13 01 00 [12:21:23]Write to MH i2c: E2 08 00 4C DB 80 13 01 00 00 00 00 00 A4 [12:21:23]Write i2c OK [12:21:23]MH_I2C_Read... [12:21:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:23]Read from MH i2c: E2 [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: E2 0E 00 [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: E2 0E 00 4C DB 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 AA [12:21:23]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:21:23]wFMCommunicate OK [12:21:23]SAM_PROTO_GetShiftState done [12:21:23]FM_GetShiftState done [12:21:23]opened in 1729383220 [12:21:23]opened+sec_in_day 1729469620 [12:21:23]quantity*price = 60045 [12:21:23]sum+1 = 60047 [12:21:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.46 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 0.00 Безнал.: 600.46 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 186 20.10.2024 12:21 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69341 ФПД: 219960836127500 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122133&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69341&fm=219960836127500&tin=02508201610067®Number=0000000000156251&sum=60046 [12:21:24]StoreToDocumentArchive [12:21:24]shift 193 fd 69341 [12:21:24]save to /storage/0193/doc_00069341 [12:21:24]save last doc name /storage/0193/doc_00069341 to /storage/kkm_last_doc_name [12:21:24]save OK [12:21:24]Clear old archive folders... [12:21:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:21:24]tlvbuf is 004C64A0 [12:21:24]SAM_PROTO_ClearQueue [12:21:24]wFMCommunicate request_size=4 [12:21:24]MH_SAM_APDU [12:21:24]CAPDU: 80 09 00 00 [12:21:24]Write to MH i2c: E2 08 00 59 DB 80 09 00 00 00 00 00 00 A6 [12:21:24]Write i2c OK [12:21:24]MH_I2C_Read... [12:21:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:21:24]Read from MH i2c: E2 [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: E2 03 00 [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: E2 03 00 59 DB 00 90 00 A8 [12:21:24]RAPDU: 90 00 [12:21:24]wFMCommunicate OK [12:21:24]SAM_PROTO_ClearQueue done [12:21:24]KKMCreateOFDPacket [12:21:24]OFDProtocolAddRootSTLVToBuf [12:21:24]FM_MakeSignedData [12:21:24]FM_MakeSignedData [12:21:24]SAM_PROTO_SignData [12:21:24]wFMCommunicate request_size=4 [12:21:24]MH_SAM_APDU [12:21:24]CAPDU: 80 0D 01 02 [12:21:24]Write to MH i2c: E2 08 00 5A DB 80 0D 01 02 00 00 00 00 AE [12:21:24]Write i2c OK [12:21:24]MH_I2C_Read... [12:21:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:21:24]Read from MH i2c: E2 [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: E2 03 00 [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: E2 03 00 5A DB 00 90 00 A9 [12:21:24]RAPDU: 90 00 [12:21:24]wFMCommunicate OK [12:21:24]wFMCommunicate request_size=255 [12:21:24]MH_SAM_APDU [12:21:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 BA 00 00 00 F4 03 04 00 CD F5 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DD 0E 01 00 35 04 06 00 C8 0D 9F 80 [12:21:24]Write to MH i2c: E2 02 01 5B DB 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 BA 00 00 00 F4 03 04 00 CD F5 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DD 0E 01 00 35 04 06 00 C8 0D 9F 80 00 00 E2 [12:21:24]Write i2c OK [12:21:24]MH_I2C_Read... [12:21:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:24]Read from MH i2c: E2 [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: E2 03 00 [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: E2 03 00 5B DB 00 90 00 AA [12:21:24]RAPDU: 90 00 [12:21:24]wFMCommunicate OK [12:21:24]wFMCommunicate request_size=7 [12:21:24]MH_SAM_APDU [12:21:24]CAPDU: 80 0D 02 02 02 7B 0C [12:21:24]Write to MH i2c: E2 0A 00 5C DB 80 0D 02 02 02 00 7B 0C 00 00 3C [12:21:24]Write i2c OK [12:21:24]MH_I2C_Read... [12:21:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:25]Read from MH i2c: E2 [12:21:25]MH_I2C_Read... [12:21:25]Read from MH i2c: E2 03 00 [12:21:25]MH_I2C_Read... [12:21:25]Read from MH i2c: E2 03 00 5C DB 00 90 00 AB [12:21:25]RAPDU: 90 00 [12:21:25]wFMCommunicate OK [12:21:25]wFMCommunicate request_size=4 [12:21:25]MH_SAM_APDU [12:21:25]CAPDU: 80 0D 03 02 [12:21:25]Write to MH i2c: E2 08 00 5D DB 80 0D 03 02 00 00 00 00 B3 [12:21:25]Write i2c OK [12:21:25]MH_I2C_Read... [12:21:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:21:25]Read from MH i2c: E2 [12:21:25]MH_I2C_Read... [12:21:25]Read from MH i2c: E2 0B 00 [12:21:25]MH_I2C_Read... [12:21:25]Read from MH i2c: E2 0B 00 5D DB 00 52 E1 0A 61 2D C7 23 B5 90 00 1E [12:21:25]RAPDU: 52 E1 0A 61 2D C7 23 B5 90 00 [12:21:25]wFMCommunicate OK [12:21:25]SAM_PROTO_SignData done [12:21:25]FM_MakeSignedData done [12:21:25]CreateOFDProtocolMessage [12:21:25]wFMCommunicate request_size=4 [12:21:25]MH_SAM_APDU [12:21:25]CAPDU: 80 11 00 00 [12:21:25]Write to MH i2c: E2 08 00 5E DB 80 11 00 00 00 00 00 00 B3 [12:21:25]Write i2c OK [12:21:25]MH_I2C_Read... [12:21:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:25]Read from MH i2c: E2 [12:21:25]MH_I2C_Read... [12:21:25]OFD Sender: No OFD packet to send [12:21:25]Read from MH i2c: E2 17 00 [12:21:25]MH_I2C_Read... [12:21:25]Read from MH i2c: E2 17 00 5E DB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 05 [12:21:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:21:25]wFMCommunicate OK [12:21:25]CreateOFDProtocolMessage done [12:21:25]OFDSenderStorePacket 69341 [12:21:25]StoreOFDPacket docnum=69341 [12:21:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 D3 C0 04 01 FA 3C 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 BA 00 00 00 F4 03 04 00 CD F5 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DD 0E 01 00 35 04 06 00 C8 0D 9F 80 7B 0C 52 E1 0A 61 2D C7 23 B5 [12:21:25]CheckFolder [12:21:25]dirname=/storage/ofd_packets [12:21:25]CheckFolder done [12:21:25]ProducePacketName [12:21:25]name=ofd_packets/00069341 [12:21:25]NVStorageSaveData ofd_packets/00069341 [12:21:25]File name is /storage/ofd_packets/00069341 [12:21:25]Write 298 bytes [12:21:25]NVStorageSaveData done [12:21:25]OFDSenderStorePacket done [12:21:25]KKMCreateOFDPacket done [12:21:25]NVStorageSaveData kkm_last_timestamp [12:21:25]File name is /storage/kkm_last_timestamp [12:21:25]Write 4 bytes [12:21:25]NVStorageSaveData done [12:21:25]ExternCall_PrintAddStr [12:21:25]wPrintStart [12:21:25]Write to MH i2c: 01 00 00 5F DB 3A [12:21:25]Write i2c OK [12:21:25]MH_I2C_Read... [12:21:25]Read from MH i2c: 01 [12:21:25]MH_I2C_Read... [12:21:25]Read from MH i2c: 01 07 00 [12:21:25]MH_I2C_Read... [12:21:25]Read from MH i2c: 01 07 00 5F DB 00 00 00 00 00 FF 0F 4F [12:21:25]RasterBufferAndPrint [12:21:25]line Счет N : (1)2885059 [12:21:25]line ИНН: 02508201610067 [12:21:25]line Контрольно-Кассовый Чек [12:21:25]line ПРОДАЖА [12:21:25]line ТРК (МРК, ГНК) : 61 [12:21:25]line Товар: 2710194210 [12:21:25]line ДТ-К-5 [12:21:25]line 7.880 * 76.20 [12:21:25]line = 600.46 [12:21:25]line НДС 12% НСП 1% [12:21:25]line > о реализуемом товаре [12:21:25]line ИТОГО: 600.46 [12:21:25]line НСП 1% : 5.31 [12:21:25]line НДС 12% : 63.77 [12:21:25]line Наличными: 0.00 [12:21:25]line Безнал.: 600.46 [12:21:25]line Место: АЗС № 85 "Партнер Нефть" [12:21:25]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:21:25]line СНО: Общий режим [12:21:25]line Чек 186 20.10.2024 12:21 [12:21:25]line Смена: 193 ФФД: 1.0 [12:21:25]line ЗНМ: 0300000167 [12:21:25]line РНМ: 0000000000156251 [12:21:25]line Версия ККМ: v1.0 [12:21:25]line Платежная система: Mbank [12:21:25]line ФМ: 0000000000963346 [12:21:25]line ФД: 69341 [12:21:25]line ФПД: 219960836127500 [12:21:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122133&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69341&fm=219960836127500&tin=02508201610067®Number=0000000000156251&sum=60046 [12:21:25]written 0, free lines is 4095 [12:21:25]OFD Sender: Processing packet 69341 [packets to send 18, broken 17] [12:21:25]ProducePacketName [12:21:25]name=ofd_packets/00069341 [12:21:25]OFD Sender: To server: pG, [12:21:25]CommunicateWithHost lk.salyk.kg:30040 [12:21:25]ConnectInit lk.salyk.kg [12:21:25]Connected sock=10 [12:21:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 D3 C0 04 01 FA 3C 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 BA 00 00 00 F4 03 04 00 CD F5 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DD 0E 01 00 35 04 06 00 C8 0D 9F 80 7B 0C 52 E1 0A 61 2D C7 23 B5 [12:21:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 69 43 47 00 C4 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DD 0E 01 00 F4 03 04 00 74 9F 14 67 B6 04 01 00 00 62 7C F5 A6 3A 0F 27 D2 [12:21:25]CommunicateWithHost err = 0 [12:21:25]CheckOFDResponse [12:21:25]1017 (14) - 77093643461234 [12:21:25]1041 (16) - 0000000000963346 [12:21:25]1040 (4) - 69341 [12:21:25]1012 (4) - 20.10.2024 06:13 [12:21:25]1206 (1) - 0 [12:21:25]OFD Sender: Remove packet 69341 [12:21:25]ProducePacketName [12:21:25]name=ofd_packets/00069341 [12:21:25]NVStorageDeleteData [12:21:25]Write to MH i2c: 01 00 00 88 DB 63 [12:21:25]Write i2c OK [12:21:25]MH_I2C_Read... [12:21:25]Read from MH i2c: 01 [12:21:25]MH_I2C_Read... [12:21:25]Read from MH i2c: 01 07 00 [12:21:25]MH_I2C_Read... [12:21:25]Read from MH i2c: 01 07 00 88 DB 00 00 00 00 00 1C 0D 93 [12:21:25]RasterBufferAndPrint [12:21:25]line [12:21:25]line [12:21:25]line [12:21:25]line [12:21:25]line [12:21:25]written 0, free lines is 3371 [12:21:25]MH_Cut [12:21:25]Write to MH i2c: D1 01 00 8F DB 01 3C [12:21:25]Write i2c OK [12:21:25]MH_I2C_Read... [12:21:25]Read from MH i2c: D1 [12:21:25]MH_I2C_Read... [12:21:25]Read from MH i2c: D1 01 00 [12:21:25]MH_I2C_Read... [12:21:25]Read from MH i2c: D1 01 00 8F DB 00 3B [12:21:25]Write to MH i2c: 01 00 00 90 DB 6B [12:21:25]Write i2c OK [12:21:25]MH_I2C_Read... [12:21:26]OFD Sender: No OFD packet to send [12:21:26]*** Cut start [12:21:26]*** Partial cut [12:21:26]*** CUTSNS_PIN = 1 [12:21:26]*** CUTSNS_PIN = 0 [12:21:26]*** Brake cut motor [12:21:26]Read from MH i2c: 01 [12:21:26]MH_I2C_Read... [12:21:26]*** Stop cut motor [12:21:26]*** Cut end [12:21:26]Read from MH i2c: 01 07 00 [12:21:26]MH_I2C_Read... [12:21:26]Read from MH i2c: 01 07 00 90 DB 00 00 00 00 00 FF 0F 80 [12:21:26]process_action close_receipt done [12:21:26]requested_data is exist [12:21:26]produce_requested_data [12:21:26]requested_item fm.sn is exist - process it [12:21:26]wFMCommunicate request_size=4 [12:21:26]MH_SAM_APDU [12:21:26]CAPDU: 80 11 00 00 [12:21:26]Write to MH i2c: E2 08 00 91 DB 80 11 00 00 00 00 00 00 E6 [12:21:26]Write i2c OK [12:21:26]MH_I2C_Read... [12:21:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:26]Read from MH i2c: E2 [12:21:26]MH_I2C_Read... [12:21:26]Read from MH i2c: E2 17 00 [12:21:26]MH_I2C_Read... [12:21:26]Read from MH i2c: E2 17 00 91 DB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 38 [12:21:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:21:26]wFMCommunicate OK [12:21:26]requested_item fd.num is exist - process it [12:21:26]SAM_PROTO_GetFieldsCounters [12:21:26]wFMCommunicate request_size=4 [12:21:26]MH_SAM_APDU [12:21:26]CAPDU: 80 13 00 00 [12:21:26]Write to MH i2c: E2 08 00 92 DB 80 13 00 00 00 00 00 00 E9 [12:21:26]Write i2c OK [12:21:26]MH_I2C_Read... [12:21:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:27]Read from MH i2c: E2 [12:21:27]MH_I2C_Read... [12:21:27]Read from MH i2c: E2 62 00 [12:21:27]MH_I2C_Read... [12:21:27]Read from MH i2c: E2 62 00 92 DB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DD 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [12:21:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DD 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:21:27]wFMCommunicate OK [12:21:27]SAM_PROTO_GetFieldsCounters done [12:21:27]requested_item shift.num is exist - process it [12:21:27]requested_item shift.opened is exist - process it [12:21:27]req_shift_opened [12:21:27]FM_GetShiftState [12:21:27]SAM_PROTO_GetShiftState [12:21:27]wFMCommunicate request_size=4 [12:21:27]MH_SAM_APDU [12:21:27]CAPDU: 80 13 01 00 [12:21:27]Write to MH i2c: E2 08 00 93 DB 80 13 01 00 00 00 00 00 EB [12:21:27]Write i2c OK [12:21:27]MH_I2C_Read... [12:21:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:27]Read from MH i2c: E2 [12:21:27]MH_I2C_Read... [12:21:27]Read from MH i2c: E2 0E 00 [12:21:27]MH_I2C_Read... [12:21:27]Read from MH i2c: E2 0E 00 93 DB 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 F1 [12:21:27]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:21:27]wFMCommunicate OK [12:21:27]SAM_PROTO_GetShiftState done [12:21:27]FM_GetShiftState done [12:21:27]req_shift_opened done [12:21:27]requested_item shift.open_date is exist - process it [12:21:27]req_shift_open_date [12:21:27]req_shift_open_date done [12:21:27]produce_requested_data done [12:21:27]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69341,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [12:21:27]process_action_free close_receipt [12:21:27]json_value_free [12:21:27]json_value_free done [12:21:27]process_json_proto returns [12:21:27]Send response to host [12:21:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69341,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [12:21:27]free response buf [12:21:27]execute_script done [12:21:27]execute_script returns [12:21:27]free content buf [12:21:27]Sock 8.Close socket [12:21:27]Sock 8.Thread stoped [12:21:31]OFD Sender: No OFD packet to send [12:21:36]OFD Sender: No OFD packet to send [12:21:41]OFD Sender: No OFD packet to send [12:21:46]OFD Sender: No OFD packet to send [12:21:51]OFD Sender: No OFD packet to send [12:21:56]OFD Sender: No OFD packet to send [12:22:01]OFD Sender: No OFD packet to send [12:22:06]OFD Sender: No OFD packet to send [12:22:11]OFD Sender: No OFD packet to send [12:22:16]OFD Sender: No OFD packet to send [12:22:21]OFD Sender: No OFD packet to send [12:22:26]OFD Sender: No OFD packet to send [12:22:31]OFD Sender: No OFD packet to send [12:22:36]OFD Sender: No OFD packet to send [12:22:41]OFD Sender: No OFD packet to send [12:22:46]OFD Sender: No OFD packet to send [12:22:51]OFD Sender: No OFD packet to send [12:22:56]OFD Sender: No OFD packet to send [12:23:01]OFD Sender: No OFD packet to send [12:23:06]OFD Sender: No OFD packet to send [12:23:11]OFD Sender: No OFD packet to send [12:23:16]OFD Sender: No OFD packet to send [12:23:21]OFD Sender: No OFD packet to send [12:23:26]OFD Sender: No OFD packet to send [12:23:31]OFD Sender: No OFD packet to send [12:23:36]OFD Sender: No OFD packet to send [12:23:41]OFD Sender: No OFD packet to send [12:23:46]OFD Sender: No OFD packet to send [12:23:51]OFD Sender: No OFD packet to send [12:23:56]OFD Sender: No OFD packet to send [12:24:01]OFD Sender: No OFD packet to send [12:24:06]OFD Sender: No OFD packet to send [12:24:11]OFD Sender: No OFD packet to send [12:24:16]OFD Sender: No OFD packet to send [12:24:21]OFD Sender: No OFD packet to send [12:24:26]OFD Sender: No OFD packet to send [12:24:31]OFD Sender: No OFD packet to send [12:24:36]OFD Sender: No OFD packet to send [12:24:41]OFD Sender: No OFD packet to send [12:24:46]OFD Sender: No OFD packet to send [12:24:51]OFD Sender: No OFD packet to send [12:24:55]accept exits with 9 [12:24:55]New connection [12:24:55]New thread 3067116900 created [12:24:55]Thread 3067260260 joined [12:24:55]Waiting for new connection... [12:24:55] Sock 9.Parse request [12:24:55]Sock 9.Check first char [12:24:55]Sock 9.First char is OK [12:24:55]request: POST /json_proto HTTP/1.0 [12:24:55]Method: POST [12:24:55]URL: /json_proto [12:24:55]Method is POST - this is cgi request [12:24:55]url: /json_proto [12:24:55]query_string will be loaded in cgi processing [12:24:55]execute_cgi json_proto POST (null) [12:24:55]execute_cgi path=json_proto method=POST [12:24:55]POST find Content-Length [12:24:55]Host: 172.17.50.3:8080 [12:24:55]Content-Length: 679 [12:24:55]Content-Type: application/json [12:24:55] [12:24:55]POST finish read [12:24:55]Found Content-Length = 679 [12:24:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:55]execute_script... [12:24:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:55]POST & json_proto [12:24:55]process_json_proto [12:24:55]json parsed OK: [12:24:55]protocol is kg_v1.0 [12:24:55]action value=close_receipt [12:24:55]process_action close_receipt [12:24:55]cmd_close_receipt [12:24:55]MH_GetDate [12:24:55]Write to MH i2c: F0 00 00 94 DB 5E [12:24:55]Write i2c OK [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: F0 [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: F0 09 00 [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: F0 09 00 94 DB 00 A1 F6 14 67 6B 98 1E 66 00 [12:24:55]GetLastDocTimeStamp 1729426893 [12:24:55]current date 1729427105 [12:24:55]FM_GetShiftState [12:24:55]SAM_PROTO_GetShiftState [12:24:55]wFMCommunicate request_size=4 [12:24:55]MH_SAM_APDU [12:24:55]CAPDU: 80 13 01 00 [12:24:55]Write to MH i2c: E2 08 00 95 DB 80 13 01 00 00 00 00 00 ED [12:24:55]Write i2c OK [12:24:55]MH_I2C_Read... [12:24:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:55]Read from MH i2c: E2 [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: E2 0E 00 [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: E2 0E 00 95 DB 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 F3 [12:24:55]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:24:55]wFMCommunicate OK [12:24:55]SAM_PROTO_GetShiftState done [12:24:55]FM_GetShiftState done [12:24:55]opened in 1729383220 [12:24:55]opened+sec_in_day 1729469620 [12:24:55]quantity*price = 70044 [12:24:55]sum+1 = 70045 [12:24:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 187 20.10.2024 12:25 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69342 ФПД: 98763956042481 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122505&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69342&fm=98763956042481&tin=02508201610067®Number=0000000000156251&sum=70000 [12:24:56]StoreToDocumentArchive [12:24:56]shift 193 fd 69342 [12:24:56]save to /storage/0193/doc_00069342 [12:24:56]save last doc name /storage/0193/doc_00069342 to /storage/kkm_last_doc_name [12:24:56]save OK [12:24:56]Clear old archive folders... [12:24:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:24:56]tlvbuf is 00961070 [12:24:56]SAM_PROTO_ClearQueue [12:24:56]wFMCommunicate request_size=4 [12:24:56]MH_SAM_APDU [12:24:56]CAPDU: 80 09 00 00 [12:24:56]Write to MH i2c: E2 08 00 A2 DB 80 09 00 00 00 00 00 00 EF [12:24:56]Write i2c OK [12:24:56]MH_I2C_Read... [12:24:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:56]Read from MH i2c: E2 [12:24:56]MH_I2C_Read... [12:24:56]Read from MH i2c: E2 03 00 [12:24:56]MH_I2C_Read... [12:24:56]Read from MH i2c: E2 03 00 A2 DB 00 90 00 F1 [12:24:56]RAPDU: 90 00 [12:24:56]wFMCommunicate OK [12:24:56]SAM_PROTO_ClearQueue done [12:24:56]KKMCreateOFDPacket [12:24:56]OFDProtocolAddRootSTLVToBuf [12:24:56]FM_MakeSignedData [12:24:56]FM_MakeSignedData [12:24:56]SAM_PROTO_SignData [12:24:56]wFMCommunicate request_size=4 [12:24:56]MH_SAM_APDU [12:24:56]CAPDU: 80 0D 01 02 [12:24:56]Write to MH i2c: E2 08 00 A3 DB 80 0D 01 02 00 00 00 00 F7 [12:24:56]Write i2c OK [12:24:56]MH_I2C_Read... [12:24:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:56]Read from MH i2c: E2 [12:24:56]MH_I2C_Read... [12:24:56]Read from MH i2c: E2 03 00 [12:24:56]MH_I2C_Read... [12:24:56]Read from MH i2c: E2 03 00 A3 DB 00 90 00 F2 [12:24:56]RAPDU: 90 00 [12:24:56]wFMCommunicate OK [12:24:56]wFMCommunicate request_size=255 [12:24:56]MH_SAM_APDU [12:24:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 A1 F6 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DE 0E 01 00 35 04 06 00 59 [12:24:56]Write to MH i2c: E2 02 01 A4 DB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 A1 F6 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DE 0E 01 00 35 04 06 00 59 00 00 64 [12:24:56]Write i2c OK [12:24:56]MH_I2C_Read... [12:24:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:56]Read from MH i2c: E2 [12:24:56]MH_I2C_Read... [12:24:56]Read from MH i2c: E2 03 00 [12:24:56]MH_I2C_Read... [12:24:56]Read from MH i2c: E2 03 00 A4 DB 00 90 00 F3 [12:24:56]RAPDU: 90 00 [12:24:56]wFMCommunicate OK [12:24:56]wFMCommunicate request_size=10 [12:24:56]MH_SAM_APDU [12:24:56]CAPDU: 80 0D 02 02 05 D3 46 84 3A F1 [12:24:56]Write to MH i2c: E2 0D 00 A5 DB 80 0D 02 02 05 00 D3 46 84 3A F1 00 00 CC [12:24:56]Write i2c OK [12:24:56]MH_I2C_Read... [12:24:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:56]Read from MH i2c: E2 [12:24:56]MH_I2C_Read... [12:24:56]Read from MH i2c: E2 03 00 [12:24:56]MH_I2C_Read... [12:24:56]Read from MH i2c: E2 03 00 A5 DB 00 90 00 F4 [12:24:56]RAPDU: 90 00 [12:24:56]wFMCommunicate OK [12:24:56]wFMCommunicate request_size=4 [12:24:56]MH_SAM_APDU [12:24:56]CAPDU: 80 0D 03 02 [12:24:56]Write to MH i2c: E2 08 00 A6 DB 80 0D 03 02 00 00 00 00 FC [12:24:56]Write i2c OK [12:24:56]MH_I2C_Read... [12:24:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:56]Read from MH i2c: E2 [12:24:56]MH_I2C_Read... [12:24:56]Read from MH i2c: E2 0B 00 [12:24:56]MH_I2C_Read... [12:24:56]Read from MH i2c: E2 0B 00 A6 DB 00 47 30 61 27 29 31 46 4F 90 00 EB [12:24:56]RAPDU: 47 30 61 27 29 31 46 4F 90 00 [12:24:56]wFMCommunicate OK [12:24:56]SAM_PROTO_SignData done [12:24:56]FM_MakeSignedData done [12:24:56]CreateOFDProtocolMessage [12:24:56]wFMCommunicate request_size=4 [12:24:56]MH_SAM_APDU [12:24:56]CAPDU: 80 11 00 00 [12:24:56]Write to MH i2c: E2 08 00 A7 DB 80 11 00 00 00 00 00 00 FC [12:24:56]Write i2c OK [12:24:56]MH_I2C_Read... [12:24:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:56]Read from MH i2c: E2 [12:24:56]MH_I2C_Read... [12:24:56]Read from MH i2c: E2 17 00 [12:24:56]MH_I2C_Read... [12:24:56]Read from MH i2c: E2 17 00 A7 DB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4E [12:24:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:24:56]wFMCommunicate OK [12:24:56]CreateOFDProtocolMessage done [12:24:56]OFDSenderStorePacket 69342 [12:24:56]StoreOFDPacket docnum=69342 [12:24:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C9 F7 07 01 9F EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 A1 F6 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DE 0E 01 00 35 04 06 00 59 D3 46 84 3A F1 47 30 61 27 29 31 46 4F [12:24:56]CheckFolder [12:24:56]dirname=/storage/ofd_packets [12:24:56]CheckFolder done [12:24:56]ProducePacketName [12:24:56]name=ofd_packets/00069342 [12:24:56]NVStorageSaveData ofd_packets/00069342 [12:24:56]File name is /storage/ofd_packets/00069342 [12:24:56]Write 301 bytes [12:24:56]NVStorageSaveData done [12:24:56]OFDSenderStorePacket done [12:24:56]KKMCreateOFDPacket done [12:24:56]NVStorageSaveData kkm_last_timestamp [12:24:56]File name is /storage/kkm_last_timestamp [12:24:56]Write 4 bytes [12:24:56]NVStorageSaveData done [12:24:56]ExternCall_PrintAddStr [12:24:56]wPrintStart [12:24:56]Write to MH i2c: 01 00 00 A8 DB 83 [12:24:56]Write i2c OK [12:24:56]MH_I2C_Read... [12:24:56]Read from MH i2c: 01 [12:24:56]MH_I2C_Read... [12:24:56]Read from MH i2c: 01 07 00 [12:24:56]MH_I2C_Read... [12:24:56]Read from MH i2c: 01 07 00 A8 DB 00 00 00 00 00 FF 0F 98 [12:24:56]RasterBufferAndPrint [12:24:56]line Счет N : (1)2885060 [12:24:56]line ИНН: 02508201610067 [12:24:56]line Контрольно-Кассовый Чек [12:24:56]line ПРОДАЖА [12:24:56]line ТРК (МРК, ГНК) : 22 [12:24:56]line Товар: 2710124130 [12:24:56]line Аи-92-К-5 [12:24:56]line 10.470 * 66.90 [12:24:56]line = 700.44 [12:24:56]line НДС 12% НСП 1% [12:24:56]line > о реализуемом товаре [12:24:56]line ОКРУГЛЕНИЕ: -0.44 [12:24:56]line ИТОГО: 700.00 [12:24:56]line Внесено: 700.00 [12:24:56]line СДАЧА: 0.00 [12:24:56]line НСП 1% : 6.20 [12:24:56]line НДС 12% : 74.38 [12:24:56]line Наличными: 700.00 [12:24:56]line Безнал.: 0.00 [12:24:56]line Место: АЗС № 85 "Партнер Нефть" [12:24:56]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:24:56]line СНО: Общий режим [12:24:56]line Чек 187 20.10.2024 12:25 [12:24:56]line Смена: 193 ФФД: 1.0 [12:24:56]line ЗНМ: 0300000167 [12:24:56]line РНМ: 0000000000156251 [12:24:56]line Версия ККМ: v1.0 [12:24:56]line ФМ: 0000000000963346 [12:24:56]line ФД: 69342 [12:24:56]line ФПД: 98763956042481 [12:24:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122505&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69342&fm=98763956042481&tin=02508201610067®Number=0000000000156251&sum=70000 [12:24:57]OFD Sender: Processing packet 69342 [packets to send 18, broken 17] [12:24:57]ProducePacketName [12:24:57]name=ofd_packets/00069342 [12:24:57]OFD Sender: To server: pG, [12:24:57]CommunicateWithHost lk.salyk.kg:30040 [12:24:57]ConnectInit lk.salyk.kg [12:24:57]written 0, free lines is 4095 [12:24:57]Connected sock=10 [12:24:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C9 F7 07 01 9F EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 A1 F6 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DE 0E 01 00 35 04 06 00 59 D3 46 84 3A F1 47 30 61 27 29 31 46 4F [12:24:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 33 FE 47 00 BC FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DE 0E 01 00 F4 03 04 00 48 A0 14 67 B6 04 01 00 00 AF 3E 4F 29 D9 9B DE C3 [12:24:57]CommunicateWithHost err = 0 [12:24:57]CheckOFDResponse [12:24:57]1017 (14) - 77093643461234 [12:24:57]1041 (16) - 0000000000963346 [12:24:57]1040 (4) - 69342 [12:24:57]1012 (4) - 20.10.2024 06:16 [12:24:57]1206 (1) - 0 [12:24:57]OFD Sender: Remove packet 69342 [12:24:57]ProducePacketName [12:24:57]name=ofd_packets/00069342 [12:24:57]NVStorageDeleteData [12:24:57]Write to MH i2c: 01 00 00 D3 DB AE [12:24:57]Write i2c OK [12:24:57]MH_I2C_Read... [12:24:57]Read from MH i2c: 01 [12:24:57]MH_I2C_Read... [12:24:57]Read from MH i2c: 01 07 00 [12:24:57]MH_I2C_Read... [12:24:57]Read from MH i2c: 01 07 00 D3 DB 00 00 00 00 00 FD 0C BE [12:24:57]RasterBufferAndPrint [12:24:57]line [12:24:57]line [12:24:57]line [12:24:57]line [12:24:57]line [12:24:57]written 0, free lines is 3334 [12:24:57]MH_Cut [12:24:57]Write to MH i2c: D1 01 00 DA DB 01 87 [12:24:57]Write i2c OK [12:24:57]MH_I2C_Read... [12:24:57]Read from MH i2c: D1 [12:24:57]MH_I2C_Read... [12:24:57]Read from MH i2c: D1 01 00 [12:24:57]MH_I2C_Read... [12:24:57]Read from MH i2c: D1 01 00 DA DB 00 86 [12:24:57]Write to MH i2c: 01 00 00 DB DB B6 [12:24:57]Write i2c OK [12:24:57]MH_I2C_Read... [12:24:58]OFD Sender: No OFD packet to send [12:24:58]*** Cut start [12:24:58]*** Partial cut [12:24:58]*** CUTSNS_PIN = 1 [12:24:58]*** CUTSNS_PIN = 0 [12:24:58]*** Brake cut motor [12:24:59]Read from MH i2c: 01 [12:24:59]MH_I2C_Read... [12:24:59]*** Stop cut motor [12:24:59]*** Cut end [12:24:59]Read from MH i2c: 01 07 00 [12:24:59]MH_I2C_Read... [12:24:59]Read from MH i2c: 01 07 00 DB DB 00 00 00 00 00 FF 0F CB [12:24:59]process_action close_receipt done [12:24:59]requested_data is exist [12:24:59]produce_requested_data [12:24:59]requested_item fm.sn is exist - process it [12:24:59]wFMCommunicate request_size=4 [12:24:59]MH_SAM_APDU [12:24:59]CAPDU: 80 11 00 00 [12:24:59]Write to MH i2c: E2 08 00 DC DB 80 11 00 00 00 00 00 00 31 [12:24:59]Write i2c OK [12:24:59]MH_I2C_Read... [12:24:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:59]Read from MH i2c: E2 [12:24:59]MH_I2C_Read... [12:24:59]Read from MH i2c: E2 17 00 [12:24:59]MH_I2C_Read... [12:24:59]Read from MH i2c: E2 17 00 DC DB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 83 [12:24:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:24:59]wFMCommunicate OK [12:24:59]requested_item fd.num is exist - process it [12:24:59]SAM_PROTO_GetFieldsCounters [12:24:59]wFMCommunicate request_size=4 [12:24:59]MH_SAM_APDU [12:24:59]CAPDU: 80 13 00 00 [12:24:59]Write to MH i2c: E2 08 00 DD DB 80 13 00 00 00 00 00 00 34 [12:24:59]Write i2c OK [12:24:59]MH_I2C_Read... [12:24:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:59]Read from MH i2c: E2 [12:24:59]MH_I2C_Read... [12:24:59]Read from MH i2c: E2 62 00 [12:24:59]MH_I2C_Read... [12:24:59]Read from MH i2c: E2 62 00 DD DB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DE 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [12:24:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DE 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:24:59]wFMCommunicate OK [12:24:59]SAM_PROTO_GetFieldsCounters done [12:24:59]requested_item shift.num is exist - process it [12:24:59]requested_item shift.opened is exist - process it [12:24:59]req_shift_opened [12:24:59]FM_GetShiftState [12:24:59]SAM_PROTO_GetShiftState [12:24:59]wFMCommunicate request_size=4 [12:24:59]MH_SAM_APDU [12:24:59]CAPDU: 80 13 01 00 [12:24:59]Write to MH i2c: E2 08 00 DE DB 80 13 01 00 00 00 00 00 36 [12:24:59]Write i2c OK [12:24:59]MH_I2C_Read... [12:24:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:59]Read from MH i2c: E2 [12:24:59]MH_I2C_Read... [12:24:59]Read from MH i2c: E2 0E 00 [12:24:59]MH_I2C_Read... [12:24:59]Read from MH i2c: E2 0E 00 DE DB 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 3C [12:24:59]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:24:59]wFMCommunicate OK [12:24:59]SAM_PROTO_GetShiftState done [12:24:59]FM_GetShiftState done [12:24:59]req_shift_opened done [12:24:59]requested_item shift.open_date is exist - process it [12:24:59]req_shift_open_date [12:24:59]req_shift_open_date done [12:24:59]produce_requested_data done [12:24:59]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69342,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [12:24:59]process_action_free close_receipt [12:24:59]json_value_free [12:24:59]json_value_free done [12:24:59]process_json_proto returns [12:24:59]Send response to host [12:24:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69342,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [12:24:59]free response buf [12:24:59]execute_script done [12:24:59]execute_script returns [12:24:59]free content buf [12:24:59]Sock 9.Close socket [12:24:59]Sock 9.Thread stoped [12:25:03]OFD Sender: No OFD packet to send [12:25:08]OFD Sender: No OFD packet to send [12:25:13]OFD Sender: No OFD packet to send [12:25:18]OFD Sender: No OFD packet to send [12:25:23]OFD Sender: No OFD packet to send [12:25:28]OFD Sender: No OFD packet to send [12:25:33]OFD Sender: No OFD packet to send [12:25:38]OFD Sender: No OFD packet to send [12:25:43]OFD Sender: No OFD packet to send [12:25:48]OFD Sender: No OFD packet to send [12:25:49]accept exits with 8 [12:25:49]New connection [12:25:49]New thread 3067260260 created [12:25:49]Thread 3067116900 joined [12:25:49]Waiting for new connection... [12:25:49] Sock 8.Parse request [12:25:49]Sock 8.Check first char [12:25:49]Sock 8.First char is OK [12:25:49]request: POST /json_proto HTTP/1.0 [12:25:49]Method: POST [12:25:49]URL: /json_proto [12:25:49]Method is POST - this is cgi request [12:25:49]url: /json_proto [12:25:49]query_string will be loaded in cgi processing [12:25:49]execute_cgi json_proto POST (null) [12:25:49]execute_cgi path=json_proto method=POST [12:25:49]POST find Content-Length [12:25:49]Host: 172.17.50.3:8080 [12:25:49]Content-Length: 685 [12:25:49]Content-Type: application/json [12:25:49] [12:25:49]POST finish read [12:25:49]Found Content-Length = 685 [12:25:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 10.370, "sum" : 800.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:49]execute_script... [12:25: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)2885061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 10.370, "sum" : 800.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:49]POST & json_proto [12:25:49]process_json_proto [12:25:49]json parsed OK: [12:25:49]protocol is kg_v1.0 [12:25:49]action value=close_receipt [12:25:49]process_action close_receipt [12:25:49]cmd_close_receipt [12:25:49]MH_GetDate [12:25:49]Write to MH i2c: F0 00 00 DF DB A9 [12:25:49]Write i2c OK [12:25:49]MH_I2C_Read... [12:25:49]Read from MH i2c: F0 [12:25:49]MH_I2C_Read... [12:25:49]Read from MH i2c: F0 09 00 [12:25:49]MH_I2C_Read... [12:25:49]Read from MH i2c: F0 09 00 DF DB 00 D7 F6 14 67 6B 98 1E 66 81 [12:25:49]GetLastDocTimeStamp 1729427105 [12:25:49]current date 1729427159 [12:25:49]FM_GetShiftState [12:25:49]SAM_PROTO_GetShiftState [12:25:49]wFMCommunicate request_size=4 [12:25:49]MH_SAM_APDU [12:25:49]CAPDU: 80 13 01 00 [12:25:49]Write to MH i2c: E2 08 00 E0 DB 80 13 01 00 00 00 00 00 38 [12:25:49]Write i2c OK [12:25:49]MH_I2C_Read... [12:25:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:49]Read from MH i2c: E2 [12:25:49]MH_I2C_Read... [12:25:49]Read from MH i2c: E2 0E 00 [12:25:49]MH_I2C_Read... [12:25:49]Read from MH i2c: E2 0E 00 E0 DB 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 3E [12:25:49]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:25:49]wFMCommunicate OK [12:25:49]SAM_PROTO_GetShiftState done [12:25:49]FM_GetShiftState done [12:25:49]opened in 1729383220 [12:25:49]opened+sec_in_day 1729469620 [12:25:49]quantity*price = 80056 [12:25:49]sum+1 = 80057 [12:25:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.01 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 188 20.10.2024 12:25 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69343 ФПД: 28597375180940 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122559&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69343&fm=28597375180940&tin=02508201610067®Number=0000000000156251&sum=80000 [12:25:50]StoreToDocumentArchive [12:25:50]shift 193 fd 69343 [12:25:50]save to /storage/0193/doc_00069343 [12:25:50]save last doc name /storage/0193/doc_00069343 to /storage/kkm_last_doc_name [12:25:50]save OK [12:25:50]Clear old archive folders... [12:25:50]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:25:50]tlvbuf is 00890450 [12:25:50]SAM_PROTO_ClearQueue [12:25:50]wFMCommunicate request_size=4 [12:25:50]MH_SAM_APDU [12:25:50]CAPDU: 80 09 00 00 [12:25:50]Write to MH i2c: E2 08 00 ED DB 80 09 00 00 00 00 00 00 3A [12:25:50]Write i2c OK [12:25:50]MH_I2C_Read... [12:25:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:25:50]Read from MH i2c: E2 [12:25:50]MH_I2C_Read... [12:25:50]Read from MH i2c: E2 03 00 [12:25:50]MH_I2C_Read... [12:25:50]Read from MH i2c: E2 03 00 ED DB 00 90 00 3C [12:25:50]RAPDU: 90 00 [12:25:50]wFMCommunicate OK [12:25:50]SAM_PROTO_ClearQueue done [12:25:50]KKMCreateOFDPacket [12:25:50]OFDProtocolAddRootSTLVToBuf [12:25:50]FM_MakeSignedData [12:25:50]FM_MakeSignedData [12:25:50]SAM_PROTO_SignData [12:25:50]wFMCommunicate request_size=4 [12:25:50]MH_SAM_APDU [12:25:50]CAPDU: 80 0D 01 02 [12:25:50]Write to MH i2c: E2 08 00 EE DB 80 0D 01 02 00 00 00 00 42 [12:25:50]Write i2c OK [12:25:50]MH_I2C_Read... [12:25:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:25:50]Read from MH i2c: E2 [12:25:50]MH_I2C_Read... [12:25:50]Read from MH i2c: E2 03 00 [12:25:50]MH_I2C_Read... [12:25:50]Read from MH i2c: E2 03 00 EE DB 00 90 00 3D [12:25:50]RAPDU: 90 00 [12:25:50]wFMCommunicate OK [12:25:50]wFMCommunicate request_size=255 [12:25:50]MH_SAM_APDU [12:25:50]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 D7 F6 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DF 0E 01 [12:25:50]Write to MH i2c: E2 02 01 EF DB 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 D7 F6 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DF 0E 01 00 00 D4 [12:25:50]Write i2c OK [12:25:50]MH_I2C_Read... [12:25:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:51]Read from MH i2c: E2 [12:25:51]MH_I2C_Read... [12:25:51]Read from MH i2c: E2 03 00 [12:25:51]MH_I2C_Read... [12:25:51]Read from MH i2c: E2 03 00 EF DB 00 90 00 3E [12:25:51]RAPDU: 90 00 [12:25:51]wFMCommunicate OK [12:25:51]wFMCommunicate request_size=16 [12:25:51]MH_SAM_APDU [12:25:51]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 1A 02 58 63 A0 8C [12:25:51]Write to MH i2c: E2 13 00 F0 DB 80 0D 02 02 0B 00 00 35 04 06 00 1A 02 58 63 A0 8C 00 00 9D [12:25:51]Write i2c OK [12:25:51]MH_I2C_Read... [12:25:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:51]Read from MH i2c: E2 [12:25:51]MH_I2C_Read... [12:25:51]Read from MH i2c: E2 03 00 [12:25:51]MH_I2C_Read... [12:25:51]Read from MH i2c: E2 03 00 F0 DB 00 90 00 3F [12:25:51]RAPDU: 90 00 [12:25:51]wFMCommunicate OK [12:25:51]wFMCommunicate request_size=4 [12:25:51]MH_SAM_APDU [12:25:51]CAPDU: 80 0D 03 02 [12:25:51]Write to MH i2c: E2 08 00 F1 DB 80 0D 03 02 00 00 00 00 47 [12:25:51]Write i2c OK [12:25:51]MH_I2C_Read... [12:25:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:25:51]Read from MH i2c: E2 [12:25:51]MH_I2C_Read... [12:25:51]Read from MH i2c: E2 0B 00 [12:25:51]MH_I2C_Read... [12:25:51]Read from MH i2c: E2 0B 00 F1 DB 00 22 8D 4D E0 8E 60 C2 10 90 00 E4 [12:25:51]RAPDU: 22 8D 4D E0 8E 60 C2 10 90 00 [12:25:51]wFMCommunicate OK [12:25:51]SAM_PROTO_SignData done [12:25:51]FM_MakeSignedData done [12:25:51]CreateOFDProtocolMessage [12:25:51]wFMCommunicate request_size=4 [12:25:51]MH_SAM_APDU [12:25:51]CAPDU: 80 11 00 00 [12:25:51]Write to MH i2c: E2 08 00 F2 DB 80 11 00 00 00 00 00 00 47 [12:25:51]Write i2c OK [12:25:51]MH_I2C_Read... [12:25:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:51]Read from MH i2c: E2 [12:25:51]MH_I2C_Read... [12:25:51]Read from MH i2c: E2 17 00 [12:25:51]MH_I2C_Read... [12:25:51]Read from MH i2c: E2 17 00 F2 DB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 99 [12:25:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:25:51]wFMCommunicate OK [12:25:51]CreateOFDProtocolMessage done [12:25:51]OFDSenderStorePacket 69343 [12:25:51]StoreOFDPacket docnum=69343 [12:25:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 99 EE 0D 01 2B 6C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 D7 F6 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DF 0E 01 00 35 04 06 00 1A 02 58 63 A0 8C 22 8D 4D E0 8E 60 C2 10 [12:25:51]CheckFolder [12:25:51]dirname=/storage/ofd_packets [12:25:51]CheckFolder done [12:25:51]ProducePacketName [12:25:51]name=ofd_packets/00069343 [12:25:51]NVStorageSaveData ofd_packets/00069343 [12:25:51]File name is /storage/ofd_packets/00069343 [12:25:51]Write 307 bytes [12:25:51]NVStorageSaveData done [12:25:51]OFDSenderStorePacket done [12:25:51]KKMCreateOFDPacket done [12:25:51]NVStorageSaveData kkm_last_timestamp [12:25:51]File name is /storage/kkm_last_timestamp [12:25:51]Write 4 bytes [12:25:51]NVStorageSaveData done [12:25:51]ExternCall_PrintAddStr [12:25:51]wPrintStart [12:25:51]Write to MH i2c: 01 00 00 F3 DB CE [12:25:51]Write i2c OK [12:25:51]MH_I2C_Read... [12:25:51]Read from MH i2c: 01 [12:25:51]MH_I2C_Read... [12:25:51]Read from MH i2c: 01 07 00 [12:25:51]MH_I2C_Read... [12:25:51]Read from MH i2c: 01 07 00 F3 DB 00 00 00 00 00 FF 0F E3 [12:25:51]RasterBufferAndPrint [12:25:51]line Счет N : (1)2885061 [12:25:51]line ИНН: 02508201610067 [12:25:51]line Контрольно-Кассовый Чек [12:25:51]line ПРОДАЖА [12:25:51]line ТРК (МРК, ГНК) : 11 [12:25:51]line Товар: 2710194240 [12:25:51]line D-ENERGY Дт-К-2 [12:25:51]line 10.370 * 77.20 [12:25:51]line = 800.56 [12:25:51]line НДС 12% НСП 1% [12:25:51]line > о реализуемом товаре [12:25:51]line ОКРУГЛЕНИЕ: -0.56 [12:25:51]line ИТОГО: 800.00 [12:25:51]line Внесено: 800.00 [12:25:51]line СДАЧА: 0.00 [12:25:51]line НСП 1% : 7.08 [12:25:51]line НДС 12% : 85.01 [12:25:51]line Наличными: 800.00 [12:25:51]line Безнал.: 0.00 [12:25:51]line Место: АЗС № 85 "Партнер Нефть" [12:25:51]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:25:51]line СНО: Общий режим [12:25:51]line Чек 188 20.10.2024 12:25 [12:25:51]line Смена: 193 ФФД: 1.0 [12:25:51]line ЗНМ: 0300000167 [12:25:51]line РНМ: 0000000000156251 [12:25:51]line Версия ККМ: v1.0 [12:25:51]line ФМ: 0000000000963346 [12:25:51]line ФД: 69343 [12:25:51]line ФПД: 28597375180940 [12:25:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122559&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69343&fm=28597375180940&tin=02508201610067®Number=0000000000156251&sum=80000 [12:25:51]OFD Sender: Processing packet 69343 [packets to send 18, broken 17] [12:25:51]ProducePacketName [12:25:51]name=ofd_packets/00069343 [12:25:51]OFD Sender: To server: pG, [12:25:51]CommunicateWithHost lk.salyk.kg:30040 [12:25:51]ConnectInit lk.salyk.kg [12:25:51]written 0, free lines is 4095 [12:25:51]Connected sock=10 [12:25:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 99 EE 0D 01 2B 6C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 D7 F6 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DF 0E 01 00 35 04 06 00 1A 02 58 63 A0 8C 22 8D 4D E0 8E 60 C2 10 [12:25:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 15 87 47 00 C3 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 30 39 36 33 33 34 36 10 04 04 00 DF 0E 01 00 F4 03 04 00 7E A0 14 67 B6 04 01 00 00 E6 37 73 69 23 7C 68 FA [12:25:51]CommunicateWithHost err = 0 [12:25:51]CheckOFDResponse [12:25:51]1017 (14) - 77093643461234 [12:25:51]1041 (16) - 0000000000963346 [12:25:51]1040 (4) - 69343 [12:25:51]1012 (4) - 20.10.2024 06:17 [12:25:51]1206 (1) - 0 [12:25:51]OFD Sender: Remove packet 69343 [12:25:51]ProducePacketName [12:25:51]name=ofd_packets/00069343 [12:25:51]NVStorageDeleteData [12:25:52]Write to MH i2c: 01 00 00 1E DC FA [12:25:52]Write i2c OK [12:25:52]MH_I2C_Read... [12:25:52]Read from MH i2c: 01 [12:25:52]MH_I2C_Read... [12:25:52]Read from MH i2c: 01 07 00 [12:25:52]MH_I2C_Read... [12:25:52]Read from MH i2c: 01 07 00 1E DC 00 00 00 00 00 EF 0C FC [12:25:52]RasterBufferAndPrint [12:25:52]line [12:25:52]line [12:25:52]line [12:25:52]line [12:25:52]line [12:25:52]written 0, free lines is 3317 [12:25:52]MH_Cut [12:25:52]Write to MH i2c: D1 01 00 25 DC 01 D3 [12:25:52]Write i2c OK [12:25:52]MH_I2C_Read... [12:25:52]Read from MH i2c: D1 [12:25:52]MH_I2C_Read... [12:25:52]Read from MH i2c: D1 01 00 [12:25:52]MH_I2C_Read... [12:25:52]Read from MH i2c: D1 01 00 25 DC 00 D2 [12:25:52]Write to MH i2c: 01 00 00 26 DC 02 [12:25:52]Write i2c OK [12:25:52]MH_I2C_Read... [12:25:52]OFD Sender: No OFD packet to send [12:25:52]*** Cut start [12:25:52]*** Partial cut [12:25:52]*** CUTSNS_PIN = 1 [12:25:52]*** CUTSNS_PIN = 0 [12:25:53]*** Brake cut motor [12:25:53]Read from MH i2c: 01 [12:25:53]MH_I2C_Read... [12:25:53]*** Stop cut motor [12:25:53]*** Cut end [12:25:53]Read from MH i2c: 01 07 00 [12:25:53]MH_I2C_Read... [12:25:53]Read from MH i2c: 01 07 00 26 DC 00 00 00 00 00 FF 0F 17 [12:25:53]process_action close_receipt done [12:25:53]requested_data is exist [12:25:53]produce_requested_data [12:25:53]requested_item fm.sn is exist - process it [12:25:53]wFMCommunicate request_size=4 [12:25:53]MH_SAM_APDU [12:25:53]CAPDU: 80 11 00 00 [12:25:53]Write to MH i2c: E2 08 00 27 DC 80 11 00 00 00 00 00 00 7D [12:25:53]Write i2c OK [12:25:53]MH_I2C_Read... [12:25:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:53]Read from MH i2c: E2 [12:25:53]MH_I2C_Read... [12:25:53]Read from MH i2c: E2 17 00 [12:25:53]MH_I2C_Read... [12:25:53]Read from MH i2c: E2 17 00 27 DC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CF [12:25:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:25:53]wFMCommunicate OK [12:25:53]requested_item fd.num is exist - process it [12:25:53]SAM_PROTO_GetFieldsCounters [12:25:53]wFMCommunicate request_size=4 [12:25:53]MH_SAM_APDU [12:25:53]CAPDU: 80 13 00 00 [12:25:53]Write to MH i2c: E2 08 00 28 DC 80 13 00 00 00 00 00 00 80 [12:25:53]Write i2c OK [12:25:53]MH_I2C_Read... [12:25:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:53]Read from MH i2c: E2 [12:25:53]MH_I2C_Read... [12:25:53]Read from MH i2c: E2 62 00 [12:25:53]MH_I2C_Read... [12:25:53]Read from MH i2c: E2 62 00 28 DC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DF 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [12:25:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DF 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:25:53]wFMCommunicate OK [12:25:53]SAM_PROTO_GetFieldsCounters done [12:25:53]requested_item shift.num is exist - process it [12:25:53]requested_item shift.opened is exist - process it [12:25:53]req_shift_opened [12:25:53]FM_GetShiftState [12:25:53]SAM_PROTO_GetShiftState [12:25:53]wFMCommunicate request_size=4 [12:25:53]MH_SAM_APDU [12:25:53]CAPDU: 80 13 01 00 [12:25:53]Write to MH i2c: E2 08 00 29 DC 80 13 01 00 00 00 00 00 82 [12:25:53]Write i2c OK [12:25:53]MH_I2C_Read... [12:25:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:53]Read from MH i2c: E2 [12:25:53]MH_I2C_Read... [12:25:53]Read from MH i2c: E2 0E 00 [12:25:53]MH_I2C_Read... [12:25:53]Read from MH i2c: E2 0E 00 29 DC 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 88 [12:25:53]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:25:53]wFMCommunicate OK [12:25:53]SAM_PROTO_GetShiftState done [12:25:53]FM_GetShiftState done [12:25:53]req_shift_opened done [12:25:53]requested_item shift.open_date is exist - process it [12:25:53]req_shift_open_date [12:25:53]req_shift_open_date done [12:25:53]produce_requested_data done [12:25:53]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69343,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [12:25:53]process_action_free close_receipt [12:25:53]json_value_free [12:25:53]json_value_free done [12:25:53]process_json_proto returns [12:25:53]Send response to host [12:25:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69343,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [12:25:53]free response buf [12:25:53]execute_script done [12:25:53]execute_script returns [12:25:53]free content buf [12:25:53]Sock 8.Close socket [12:25:53]Sock 8.Thread stoped [12:25:57]OFD Sender: No OFD packet to send [12:26:02]OFD Sender: No OFD packet to send [12:26:07]OFD Sender: No OFD packet to send [12:26:12]OFD Sender: No OFD packet to send [12:26:17]OFD Sender: No OFD packet to send [12:26:22]OFD Sender: No OFD packet to send [12:26:27]OFD Sender: No OFD packet to send [12:26:32]OFD Sender: No OFD packet to send [12:26:37]OFD Sender: No OFD packet to send [12:26:42]OFD Sender: No OFD packet to send [12:26:47]OFD Sender: No OFD packet to send [12:26:52]OFD Sender: No OFD packet to send [12:26:57]OFD Sender: No OFD packet to send [12:27:02]OFD Sender: No OFD packet to send [12:27:07]OFD Sender: No OFD packet to send [12:27:12]OFD Sender: No OFD packet to send [12:27:17]OFD Sender: No OFD packet to send [12:27:22]OFD Sender: No OFD packet to send [12:27:27]OFD Sender: No OFD packet to send [12:27:32]OFD Sender: No OFD packet to send [12:27:37]OFD Sender: No OFD packet to send [12:27:42]OFD Sender: No OFD packet to send [12:27:47]OFD Sender: No OFD packet to send [12:27:52]OFD Sender: No OFD packet to send [12:27:56]accept exits with 9 [12:27:56]New connection [12:27:56]New thread 3067116900 created [12:27:56]Thread 3067260260 joined [12:27:56]Waiting for new connection... [12:27:56] Sock 9.Parse request [12:27:56]Sock 9.Check first char [12:27:56]Sock 9.First char is OK [12:27:56]request: POST /json_proto HTTP/1.0 [12:27:56]Method: POST [12:27:56]URL: /json_proto [12:27:56]Method is POST - this is cgi request [12:27:56]url: /json_proto [12:27:56]query_string will be loaded in cgi processing [12:27:56]execute_cgi json_proto POST (null) [12:27:56]execute_cgi path=json_proto method=POST [12:27:56]POST find Content-Length [12:27:56]Host: 172.17.50.3:8080 [12:27:56]Content-Length: 679 [12:27:56]Content-Type: application/json [12:27:56] [12:27:56]POST finish read [12:27:56]Found Content-Length = 679 [12:27:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:56]execute_script... [12:27: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)2885062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:56]POST & json_proto [12:27:56]process_json_proto [12:27:56]json parsed OK: [12:27:56]protocol is kg_v1.0 [12:27:56]action value=close_receipt [12:27:56]process_action close_receipt [12:27:56]cmd_close_receipt [12:27:56]MH_GetDate [12:27:56]Write to MH i2c: F0 00 00 2A DC F5 [12:27:56]Write i2c OK [12:27:56]MH_I2C_Read... [12:27:56]Read from MH i2c: F0 [12:27:56]MH_I2C_Read... [12:27:56]Read from MH i2c: F0 09 00 [12:27:56]MH_I2C_Read... [12:27:56]Read from MH i2c: F0 09 00 2A DC 00 56 F7 14 67 6B 98 1E 66 4D [12:27:56]GetLastDocTimeStamp 1729427159 [12:27:56]current date 1729427286 [12:27:56]FM_GetShiftState [12:27:56]SAM_PROTO_GetShiftState [12:27:56]wFMCommunicate request_size=4 [12:27:56]MH_SAM_APDU [12:27:56]CAPDU: 80 13 01 00 [12:27:56]Write to MH i2c: E2 08 00 2B DC 80 13 01 00 00 00 00 00 84 [12:27:56]Write i2c OK [12:27:56]MH_I2C_Read... [12:27:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:56]Read from MH i2c: E2 [12:27:56]MH_I2C_Read... [12:27:56]Read from MH i2c: E2 0E 00 [12:27:56]MH_I2C_Read... [12:27:56]Read from MH i2c: E2 0E 00 2B DC 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 8A [12:27:56]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:27:56]wFMCommunicate OK [12:27:56]SAM_PROTO_GetShiftState done [12:27:56]FM_GetShiftState done [12:27:56]opened in 1729383220 [12:27:56]opened+sec_in_day 1729469620 [12:27:56]quantity*price = 70044 [12:27:56]sum+1 = 70045 [12:27:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 189 20.10.2024 12:28 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69344 ФПД: 23540045555934 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122806&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69344&fm=23540045555934&tin=02508201610067®Number=0000000000156251&sum=70000 [12:27:57]StoreToDocumentArchive [12:27:57]shift 193 fd 69344 [12:27:57]save to /storage/0193/doc_00069344 [12:27:57]save last doc name /storage/0193/doc_00069344 to /storage/kkm_last_doc_name [12:27:57]save OK [12:27:57]Clear old archive folders... [12:27:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:27:57]tlvbuf is 00476C60 [12:27:57]SAM_PROTO_ClearQueue [12:27:57]wFMCommunicate request_size=4 [12:27:57]MH_SAM_APDU [12:27:57]CAPDU: 80 09 00 00 [12:27:57]Write to MH i2c: E2 08 00 38 DC 80 09 00 00 00 00 00 00 86 [12:27:57]Write i2c OK [12:27:57]MH_I2C_Read... [12:27:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:27:57]Read from MH i2c: E2 [12:27:57]MH_I2C_Read... [12:27:57]Read from MH i2c: E2 03 00 [12:27:57]MH_I2C_Read... [12:27:57]Read from MH i2c: E2 03 00 38 DC 00 90 00 88 [12:27:57]RAPDU: 90 00 [12:27:57]wFMCommunicate OK [12:27:57]SAM_PROTO_ClearQueue done [12:27:57]KKMCreateOFDPacket [12:27:57]OFDProtocolAddRootSTLVToBuf [12:27:57]FM_MakeSignedData [12:27:57]FM_MakeSignedData [12:27:57]SAM_PROTO_SignData [12:27:57]wFMCommunicate request_size=4 [12:27:57]MH_SAM_APDU [12:27:57]CAPDU: 80 0D 01 02 [12:27:57]Write to MH i2c: E2 08 00 39 DC 80 0D 01 02 00 00 00 00 8E [12:27:57]Write i2c OK [12:27:57]MH_I2C_Read... [12:27:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:27:57]Read from MH i2c: E2 [12:27:57]MH_I2C_Read... [12:27:57]Read from MH i2c: E2 03 00 [12:27:57]MH_I2C_Read... [12:27:57]Read from MH i2c: E2 03 00 39 DC 00 90 00 89 [12:27:57]RAPDU: 90 00 [12:27:57]wFMCommunicate OK [12:27:57]wFMCommunicate request_size=255 [12:27:57]MH_SAM_APDU [12:27: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 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 56 F7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E0 0E 01 00 35 04 06 00 15 [12:27:57]Write to MH i2c: E2 02 01 3A DC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 56 F7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E0 0E 01 00 35 04 06 00 15 00 00 71 [12:27:57]Write i2c OK [12:27:57]MH_I2C_Read... [12:27:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:57]Read from MH i2c: E2 [12:27:57]MH_I2C_Read... [12:27:57]Read from MH i2c: E2 03 00 [12:27:57]MH_I2C_Read... [12:27:57]Read from MH i2c: E2 03 00 3A DC 00 90 00 8A [12:27:57]RAPDU: 90 00 [12:27:57]wFMCommunicate OK [12:27:57]wFMCommunicate request_size=10 [12:27:57]MH_SAM_APDU [12:27:57]CAPDU: 80 0D 02 02 05 68 D8 0D A8 DE [12:27:57]Write to MH i2c: E2 0D 00 3B DC 80 0D 02 02 05 00 68 D8 0D A8 DE 00 00 6E [12:27:57]Write i2c OK [12:27:57]MH_I2C_Read... [12:27:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:57]Read from MH i2c: E2 [12:27:57]MH_I2C_Read... [12:27:57]Read from MH i2c: E2 03 00 [12:27:57]MH_I2C_Read... [12:27:57]Read from MH i2c: E2 03 00 3B DC 00 90 00 8B [12:27:57]RAPDU: 90 00 [12:27:57]wFMCommunicate OK [12:27:57]wFMCommunicate request_size=4 [12:27:57]MH_SAM_APDU [12:27:57]CAPDU: 80 0D 03 02 [12:27:57]Write to MH i2c: E2 08 00 3C DC 80 0D 03 02 00 00 00 00 93 [12:27:57]Write i2c OK [12:27:57]MH_I2C_Read... [12:27:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:27:58]Read from MH i2c: E2 [12:27:58]MH_I2C_Read... [12:27:58]Read from MH i2c: E2 0B 00 [12:27:58]MH_I2C_Read... [12:27:58]Read from MH i2c: E2 0B 00 3C DC 00 76 CC 2A 59 B5 2E C0 DC 90 00 D8 [12:27:58]RAPDU: 76 CC 2A 59 B5 2E C0 DC 90 00 [12:27:58]wFMCommunicate OK [12:27:58]SAM_PROTO_SignData done [12:27:58]FM_MakeSignedData done [12:27:58]CreateOFDProtocolMessage [12:27:58]wFMCommunicate request_size=4 [12:27:58]MH_SAM_APDU [12:27:58]CAPDU: 80 11 00 00 [12:27:58]Write to MH i2c: E2 08 00 3D DC 80 11 00 00 00 00 00 00 93 [12:27:58]Write i2c OK [12:27:58]MH_I2C_Read... [12:27:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:58]Read from MH i2c: E2 [12:27:58]MH_I2C_Read... [12:27:58]Read from MH i2c: E2 17 00 [12:27:58]MH_I2C_Read... [12:27:58]Read from MH i2c: E2 17 00 3D DC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E5 [12:27:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:27:58]wFMCommunicate OK [12:27:58]CreateOFDProtocolMessage done [12:27:58]OFDSenderStorePacket 69344 [12:27:58]StoreOFDPacket docnum=69344 [12:27:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 39 9B 07 01 97 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 56 F7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E0 0E 01 00 35 04 06 00 15 68 D8 0D A8 DE 76 CC 2A 59 B5 2E C0 DC [12:27:58]CheckFolder [12:27:58]dirname=/storage/ofd_packets [12:27:58]CheckFolder done [12:27:58]ProducePacketName [12:27:58]name=ofd_packets/00069344 [12:27:58]NVStorageSaveData ofd_packets/00069344 [12:27:58]File name is /storage/ofd_packets/00069344 [12:27:58]Write 301 bytes [12:27:58]NVStorageSaveData done [12:27:58]OFDSenderStorePacket done [12:27:58]KKMCreateOFDPacket done [12:27:58]NVStorageSaveData kkm_last_timestamp [12:27:58]File name is /storage/kkm_last_timestamp [12:27:58]Write 4 bytes [12:27:58]NVStorageSaveData done [12:27:58]ExternCall_PrintAddStr [12:27:58]wPrintStart [12:27:58]Write to MH i2c: 01 00 00 3E DC 1A [12:27:58]Write i2c OK [12:27:58]MH_I2C_Read... [12:27:58]Read from MH i2c: 01 [12:27:58]MH_I2C_Read... [12:27:58]Read from MH i2c: 01 07 00 [12:27:58]MH_I2C_Read... [12:27:58]Read from MH i2c: 01 07 00 3E DC 00 00 00 00 00 FF 0F 2F [12:27:58]RasterBufferAndPrint [12:27:58]line Счет N : (1)2885062 [12:27:58]line ИНН: 02508201610067 [12:27:58]line Контрольно-Кассовый Чек [12:27:58]line ПРОДАЖА [12:27:58]line ТРК (МРК, ГНК) : 42 [12:27:58]line Товар: 2710124130 [12:27:58]line Аи-92-К-5 [12:27:58]line 10.470 * 66.90 [12:27:58]line = 700.44 [12:27:58]line НДС 12% НСП 1% [12:27:58]line > о реализуемом товаре [12:27:58]line ОКРУГЛЕНИЕ: -0.44 [12:27:58]line ИТОГО: 700.00 [12:27:58]line Внесено: 700.00 [12:27:58]line СДАЧА: 0.00 [12:27:58]line НСП 1% : 6.20 [12:27:58]line НДС 12% : 74.38 [12:27:58]line Наличными: 700.00 [12:27:58]line Безнал.: 0.00 [12:27:58]line Место: АЗС № 85 "Партнер Нефть" [12:27:58]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:27:58]line СНО: Общий режим [12:27:58]line Чек 189 20.10.2024 12:28 [12:27:58]line Смена: 193 ФФД: 1.0 [12:27:58]line ЗНМ: 0300000167 [12:27:58]line РНМ: 0000000000156251 [12:27:58]line Версия ККМ: v1.0 [12:27:58]line ФМ: 0000000000963346 [12:27:58]line ФД: 69344 [12:27:58]line ФПД: 23540045555934 [12:27:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122806&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69344&fm=23540045555934&tin=02508201610067®Number=0000000000156251&sum=70000 [12:27:58]OFD Sender: Processing packet 69344 [packets to send 18, broken 17] [12:27:58]ProducePacketName [12:27:58]name=ofd_packets/00069344 [12:27:58]OFD Sender: To server: pG, [12:27:58]CommunicateWithHost lk.salyk.kg:30040 [12:27:58]ConnectInit lk.salyk.kg [12:27:58]written 0, free lines is 4095 [12:27:58]Connected sock=10 [12:27:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 39 9B 07 01 97 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 56 F7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E0 0E 01 00 35 04 06 00 15 68 D8 0D A8 DE 76 CC 2A 59 B5 2E C0 DC [12:27:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 E9 1E 47 00 32 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E0 0E 01 00 F4 03 04 00 FD A0 14 67 B6 04 01 00 00 E7 FD 3C E1 9A 36 1A 5B [12:27:58]CommunicateWithHost err = 0 [12:27:58]CheckOFDResponse [12:27:58]1017 (14) - 77093643461234 [12:27:58]1041 (16) - 0000000000963346 [12:27:58]1040 (4) - 69344 [12:27:58]1012 (4) - 20.10.2024 06:19 [12:27:58]1206 (1) - 0 [12:27:58]OFD Sender: Remove packet 69344 [12:27:58]ProducePacketName [12:27:58]name=ofd_packets/00069344 [12:27:58]NVStorageDeleteData [12:27:58]Write to MH i2c: 01 00 00 69 DC 45 [12:27:58]Write i2c OK [12:27:58]MH_I2C_Read... [12:27:58]Read from MH i2c: 01 [12:27:58]MH_I2C_Read... [12:27:58]Read from MH i2c: 01 07 00 [12:27:58]MH_I2C_Read... [12:27:58]Read from MH i2c: 01 07 00 69 DC 00 00 00 00 00 E7 0C 3F [12:27:58]RasterBufferAndPrint [12:27:58]line [12:27:58]line [12:27:58]line [12:27:58]line [12:27:58]line [12:27:58]written 0, free lines is 3310 [12:27:58]MH_Cut [12:27:58]Write to MH i2c: D1 01 00 70 DC 01 1E [12:27:58]Write i2c OK [12:27:58]MH_I2C_Read... [12:27:58]Read from MH i2c: D1 [12:27:58]MH_I2C_Read... [12:27:58]Read from MH i2c: D1 01 00 [12:27:58]MH_I2C_Read... [12:27:58]Read from MH i2c: D1 01 00 70 DC 00 1D [12:27:58]Write to MH i2c: 01 00 00 71 DC 4D [12:27:58]Write i2c OK [12:27:58]MH_I2C_Read... [12:27:59]OFD Sender: No OFD packet to send [12:27:59]*** Cut start [12:27:59]*** Partial cut [12:27:59]*** CUTSNS_PIN = 1 [12:27:59]*** CUTSNS_PIN = 0 [12:27:59]*** Brake cut motor [12:28:00]Read from MH i2c: 01 [12:28:00]MH_I2C_Read... [12:28:00]*** Stop cut motor [12:28:00]*** Cut end [12:28:00]Read from MH i2c: 01 07 00 [12:28:00]MH_I2C_Read... [12:28:00]Read from MH i2c: 01 07 00 71 DC 00 00 00 00 00 FF 0F 62 [12:28:00]process_action close_receipt done [12:28:00]requested_data is exist [12:28:00]produce_requested_data [12:28:00]requested_item fm.sn is exist - process it [12:28:00]wFMCommunicate request_size=4 [12:28:00]MH_SAM_APDU [12:28:00]CAPDU: 80 11 00 00 [12:28:00]Write to MH i2c: E2 08 00 72 DC 80 11 00 00 00 00 00 00 C8 [12:28:00]Write i2c OK [12:28:00]MH_I2C_Read... [12:28:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:00]Read from MH i2c: E2 [12:28:00]MH_I2C_Read... [12:28:00]Read from MH i2c: E2 17 00 [12:28:00]MH_I2C_Read... [12:28:00]Read from MH i2c: E2 17 00 72 DC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1A [12:28:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:28:00]wFMCommunicate OK [12:28:00]requested_item fd.num is exist - process it [12:28:00]SAM_PROTO_GetFieldsCounters [12:28:00]wFMCommunicate request_size=4 [12:28:00]MH_SAM_APDU [12:28:00]CAPDU: 80 13 00 00 [12:28:00]Write to MH i2c: E2 08 00 73 DC 80 13 00 00 00 00 00 00 CB [12:28:00]Write i2c OK [12:28:00]MH_I2C_Read... [12:28:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:28:00]Read from MH i2c: E2 [12:28:00]MH_I2C_Read... [12:28:00]Read from MH i2c: E2 62 00 [12:28:00]MH_I2C_Read... [12:28:00]Read from MH i2c: E2 62 00 73 DC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E0 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [12:28:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E0 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:28:00]wFMCommunicate OK [12:28:00]SAM_PROTO_GetFieldsCounters done [12:28:00]requested_item shift.num is exist - process it [12:28:00]requested_item shift.opened is exist - process it [12:28:00]req_shift_opened [12:28:00]FM_GetShiftState [12:28:00]SAM_PROTO_GetShiftState [12:28:00]wFMCommunicate request_size=4 [12:28:00]MH_SAM_APDU [12:28:00]CAPDU: 80 13 01 00 [12:28:00]Write to MH i2c: E2 08 00 74 DC 80 13 01 00 00 00 00 00 CD [12:28:00]Write i2c OK [12:28:00]MH_I2C_Read... [12:28:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:00]Read from MH i2c: E2 [12:28:00]MH_I2C_Read... [12:28:00]Read from MH i2c: E2 0E 00 [12:28:00]MH_I2C_Read... [12:28:00]Read from MH i2c: E2 0E 00 74 DC 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 D3 [12:28:00]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:28:00]wFMCommunicate OK [12:28:00]SAM_PROTO_GetShiftState done [12:28:00]FM_GetShiftState done [12:28:00]req_shift_opened done [12:28:00]requested_item shift.open_date is exist - process it [12:28:00]req_shift_open_date [12:28:00]req_shift_open_date done [12:28:00]produce_requested_data done [12:28:00]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69344,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [12:28:00]process_action_free close_receipt [12:28:00]json_value_free [12:28:00]json_value_free done [12:28:00]process_json_proto returns [12:28:00]Send response to host [12:28:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69344,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [12:28:00]free response buf [12:28:00]execute_script done [12:28:00]execute_script returns [12:28:00]free content buf [12:28:00]Sock 9.Close socket [12:28:00]Sock 9.Thread stoped [12:28:04]OFD Sender: No OFD packet to send [12:28:09]OFD Sender: No OFD packet to send [12:28:14]OFD Sender: No OFD packet to send [12:28:19]OFD Sender: No OFD packet to send [12:28:24]OFD Sender: No OFD packet to send [12:28:29]OFD Sender: No OFD packet to send [12:28:34]OFD Sender: No OFD packet to send [12:28:39]OFD Sender: No OFD packet to send [12:28:44]OFD Sender: No OFD packet to send [12:28:49]OFD Sender: No OFD packet to send [12:28:54]OFD Sender: No OFD packet to send [12:28:59]OFD Sender: No OFD packet to send [12:29:04]OFD Sender: No OFD packet to send [12:29:09]OFD Sender: No OFD packet to send [12:29:14]OFD Sender: No OFD packet to send [12:29:19]OFD Sender: No OFD packet to send [12:29:24]OFD Sender: No OFD packet to send [12:29:29]OFD Sender: No OFD packet to send [12:29:34]OFD Sender: No OFD packet to send [12:29:39]OFD Sender: No OFD packet to send [12:29:41]accept exits with 8 [12:29:41]New connection [12:29:41]New thread 3067260260 created [12:29:41]Thread 3067116900 joined [12:29:41]Waiting for new connection... [12:29:41] Sock 8.Parse request [12:29:41]Sock 8.Check first char [12:29:41]Sock 8.First char is OK [12:29:41]request: POST /json_proto HTTP/1.0 [12:29:41]Method: POST [12:29:41]URL: /json_proto [12:29:41]Method is POST - this is cgi request [12:29:41]url: /json_proto [12:29:41]query_string will be loaded in cgi processing [12:29:41]execute_cgi json_proto POST (null) [12:29:41]execute_cgi path=json_proto method=POST [12:29:41]POST find Content-Length [12:29:41]Host: 172.17.50.3:8080 [12:29:41]Content-Length: 678 [12:29:41]Content-Type: application/json [12:29:41] [12:29:41]POST finish read [12:29:41]Found Content-Length = 678 [12:29:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:41]execute_script... [12:29: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)2885063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:41]POST & json_proto [12:29:41]process_json_proto [12:29:41]json parsed OK: [12:29:41]protocol is kg_v1.0 [12:29:41]action value=close_receipt [12:29:41]process_action close_receipt [12:29:41]cmd_close_receipt [12:29:41]MH_GetDate [12:29:41]Write to MH i2c: F0 00 00 75 DC 40 [12:29:41]Write i2c OK [12:29:41]MH_I2C_Read... [12:29:41]Read from MH i2c: F0 [12:29:41]MH_I2C_Read... [12:29:41]Read from MH i2c: F0 09 00 [12:29:41]MH_I2C_Read... [12:29:41]Read from MH i2c: F0 09 00 75 DC 00 BF F7 14 67 6B 98 1E 66 01 [12:29:41]GetLastDocTimeStamp 1729427286 [12:29:41]current date 1729427391 [12:29:41]FM_GetShiftState [12:29:41]SAM_PROTO_GetShiftState [12:29:41]wFMCommunicate request_size=4 [12:29:41]MH_SAM_APDU [12:29:41]CAPDU: 80 13 01 00 [12:29:41]Write to MH i2c: E2 08 00 76 DC 80 13 01 00 00 00 00 00 CF [12:29:41]Write i2c OK [12:29:41]MH_I2C_Read... [12:29:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:41]Read from MH i2c: E2 [12:29:41]MH_I2C_Read... [12:29:41]Read from MH i2c: E2 0E 00 [12:29:41]MH_I2C_Read... [12:29:41]Read from MH i2c: E2 0E 00 76 DC 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 D5 [12:29:41]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:29:41]wFMCommunicate OK [12:29:41]SAM_PROTO_GetShiftState done [12:29:41]FM_GetShiftState done [12:29:41]opened in 1729383220 [12:29:41]opened+sec_in_day 1729469620 [12:29:41]quantity*price = 30051 [12:29:41]sum+1 = 30052 [12:29:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 190 20.10.2024 12:29 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69345 ФПД: 122930337069349 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122951&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69345&fm=122930337069349&tin=02508201610067®Number=0000000000156251&sum=30000 [12:29:42]StoreToDocumentArchive [12:29:42]shift 193 fd 69345 [12:29:42]save to /storage/0193/doc_00069345 [12:29:42]save last doc name /storage/0193/doc_00069345 to /storage/kkm_last_doc_name [12:29:42]save OK [12:29:42]Clear old archive folders... [12:29:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:29:42]tlvbuf is 004EAFE0 [12:29:42]SAM_PROTO_ClearQueue [12:29:42]wFMCommunicate request_size=4 [12:29:42]MH_SAM_APDU [12:29:42]CAPDU: 80 09 00 00 [12:29:42]Write to MH i2c: E2 08 00 83 DC 80 09 00 00 00 00 00 00 D1 [12:29:42]Write i2c OK [12:29:42]MH_I2C_Read... [12:29:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:42]Read from MH i2c: E2 [12:29:42]MH_I2C_Read... [12:29:42]Read from MH i2c: E2 03 00 [12:29:42]MH_I2C_Read... [12:29:42]Read from MH i2c: E2 03 00 83 DC 00 90 00 D3 [12:29:42]RAPDU: 90 00 [12:29:42]wFMCommunicate OK [12:29:42]SAM_PROTO_ClearQueue done [12:29:42]KKMCreateOFDPacket [12:29:42]OFDProtocolAddRootSTLVToBuf [12:29:42]FM_MakeSignedData [12:29:42]FM_MakeSignedData [12:29:42]SAM_PROTO_SignData [12:29:42]wFMCommunicate request_size=4 [12:29:42]MH_SAM_APDU [12:29:42]CAPDU: 80 0D 01 02 [12:29:42]Write to MH i2c: E2 08 00 84 DC 80 0D 01 02 00 00 00 00 D9 [12:29:42]Write i2c OK [12:29:42]MH_I2C_Read... [12:29:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:42]Read from MH i2c: E2 [12:29:42]MH_I2C_Read... [12:29:42]Read from MH i2c: E2 03 00 [12:29:42]MH_I2C_Read... [12:29:42]Read from MH i2c: E2 03 00 84 DC 00 90 00 D4 [12:29:42]RAPDU: 90 00 [12:29:42]wFMCommunicate OK [12:29:42]wFMCommunicate request_size=255 [12:29:42]MH_SAM_APDU [12:29: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 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 BF F7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E1 0E 01 00 35 04 06 00 6F [12:29:42]Write to MH i2c: E2 02 01 85 DC 80 0D 02 02 FA 00 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 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 BF F7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E1 0E 01 00 35 04 06 00 6F 00 00 99 [12:29:42]Write i2c OK [12:29:42]MH_I2C_Read... [12:29:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:42]Read from MH i2c: E2 [12:29:42]MH_I2C_Read... [12:29:42]Read from MH i2c: E2 03 00 [12:29:42]MH_I2C_Read... [12:29:42]Read from MH i2c: E2 03 00 85 DC 00 90 00 D5 [12:29:42]RAPDU: 90 00 [12:29:42]wFMCommunicate OK [12:29:42]wFMCommunicate request_size=10 [12:29:42]MH_SAM_APDU [12:29:42]CAPDU: 80 0D 02 02 05 CD F3 12 B9 25 [12:29:42]Write to MH i2c: E2 0D 00 86 DC 80 0D 02 02 05 00 CD F3 12 B9 25 00 00 96 [12:29:42]Write i2c OK [12:29:42]MH_I2C_Read... [12:29:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:42]Read from MH i2c: E2 [12:29:42]MH_I2C_Read... [12:29:42]Read from MH i2c: E2 03 00 [12:29:42]MH_I2C_Read... [12:29:42]Read from MH i2c: E2 03 00 86 DC 00 90 00 D6 [12:29:42]RAPDU: 90 00 [12:29:42]wFMCommunicate OK [12:29:42]wFMCommunicate request_size=4 [12:29:42]MH_SAM_APDU [12:29:42]CAPDU: 80 0D 03 02 [12:29:42]Write to MH i2c: E2 08 00 87 DC 80 0D 03 02 00 00 00 00 DE [12:29:42]Write i2c OK [12:29:42]MH_I2C_Read... [12:29:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:43]Read from MH i2c: E2 [12:29:43]MH_I2C_Read... [12:29:43]Read from MH i2c: E2 0B 00 [12:29:43]MH_I2C_Read... [12:29:43]Read from MH i2c: E2 0B 00 87 DC 00 38 F9 7E 30 75 F9 ED 6D 90 00 86 [12:29:43]RAPDU: 38 F9 7E 30 75 F9 ED 6D 90 00 [12:29:43]wFMCommunicate OK [12:29:43]SAM_PROTO_SignData done [12:29:43]FM_MakeSignedData done [12:29:43]CreateOFDProtocolMessage [12:29:43]wFMCommunicate request_size=4 [12:29:43]MH_SAM_APDU [12:29:43]CAPDU: 80 11 00 00 [12:29:43]Write to MH i2c: E2 08 00 88 DC 80 11 00 00 00 00 00 00 DE [12:29:43]Write i2c OK [12:29:43]MH_I2C_Read... [12:29:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:43]Read from MH i2c: E2 [12:29:43]MH_I2C_Read... [12:29:43]Read from MH i2c: E2 17 00 [12:29:43]MH_I2C_Read... [12:29:43]Read from MH i2c: E2 17 00 88 DC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 30 [12:29:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:29:43]wFMCommunicate OK [12:29:43]CreateOFDProtocolMessage done [12:29:43]OFDSenderStorePacket 69345 [12:29:43]StoreOFDPacket docnum=69345 [12:29:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 74 E9 07 01 06 F7 5A 03 01 00 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 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 BF F7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E1 0E 01 00 35 04 06 00 6F CD F3 12 B9 25 38 F9 7E 30 75 F9 ED 6D [12:29:43]CheckFolder [12:29:43]dirname=/storage/ofd_packets [12:29:43]CheckFolder done [12:29:43]ProducePacketName [12:29:43]name=ofd_packets/00069345 [12:29:43]NVStorageSaveData ofd_packets/00069345 [12:29:43]File name is /storage/ofd_packets/00069345 [12:29:43]Write 301 bytes [12:29:43]NVStorageSaveData done [12:29:43]OFDSenderStorePacket done [12:29:43]KKMCreateOFDPacket done [12:29:43]NVStorageSaveData kkm_last_timestamp [12:29:43]File name is /storage/kkm_last_timestamp [12:29:43]Write 4 bytes [12:29:43]NVStorageSaveData done [12:29:43]ExternCall_PrintAddStr [12:29:43]wPrintStart [12:29:43]Write to MH i2c: 01 00 00 89 DC 65 [12:29:43]Write i2c OK [12:29:43]MH_I2C_Read... [12:29:43]Read from MH i2c: 01 [12:29:43]MH_I2C_Read... [12:29:43]Read from MH i2c: 01 07 00 [12:29:43]MH_I2C_Read... [12:29:43]Read from MH i2c: 01 07 00 89 DC 00 00 00 00 00 FF 0F 7A [12:29:43]RasterBufferAndPrint [12:29:43]line Счет N : (1)2885063 [12:29:43]line ИНН: 02508201610067 [12:29:43]line Контрольно-Кассовый Чек [12:29:43]line ПРОДАЖА [12:29:43]line ТРК (МРК, ГНК) : 23 [12:29:43]line Товар: 2710124500 [12:29:43]line Аи-95-К-5 [12:29:43]line 4.050 * 74.20 [12:29:43]line = 300.51 [12:29:43]line НДС 12% НСП 1% [12:29:43]line > о реализуемом товаре [12:29:43]line ОКРУГЛЕНИЕ: -0.51 [12:29:43]line ИТОГО: 300.00 [12:29:43]line Внесено: 300.00 [12:29:43]line СДАЧА: 0.00 [12:29:43]line НСП 1% : 2.66 [12:29:43]line НДС 12% : 31.91 [12:29:43]line Наличными: 300.00 [12:29:43]line Безнал.: 0.00 [12:29:43]line Место: АЗС № 85 "Партнер Нефть" [12:29:43]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:29:43]line СНО: Общий режим [12:29:43]line Чек 190 20.10.2024 12:29 [12:29:43]line Смена: 193 ФФД: 1.0 [12:29:43]line ЗНМ: 0300000167 [12:29:43]line РНМ: 0000000000156251 [12:29:43]line Версия ККМ: v1.0 [12:29:43]line ФМ: 0000000000963346 [12:29:43]line ФД: 69345 [12:29:43]line ФПД: 122930337069349 [12:29:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122951&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69345&fm=122930337069349&tin=02508201610067®Number=0000000000156251&sum=30000 [12:29:43]OFD Sender: Processing packet 69345 [packets to send 18, broken 17] [12:29:43]ProducePacketName [12:29:43]name=ofd_packets/00069345 [12:29:43]OFD Sender: To server: pG, [12:29:43]CommunicateWithHost lk.salyk.kg:30040 [12:29:43]ConnectInit lk.salyk.kg [12:29:43]written 0, free lines is 4095 [12:29:43]Write to MH i2c: 01 00 00 B4 DC 90 [12:29:43]Write i2c OK [12:29:43]MH_I2C_Read... [12:29:43]Read from MH i2c: 01 [12:29:43]MH_I2C_Read... [12:29:43]Read from MH i2c: 01 07 00 [12:29:43]MH_I2C_Read... [12:29:43]Read from MH i2c: 01 07 00 B4 DC 00 00 00 00 00 E4 0C 87 [12:29:43]RasterBufferAndPrint [12:29:43]line [12:29:43]line [12:29:43]line [12:29:43]line [12:29:43]line [12:29:43]written 0, free lines is 3306 [12:29:43]MH_Cut [12:29:43]Write to MH i2c: D1 01 00 BB DC 01 69 [12:29:43]Write i2c OK [12:29:43]MH_I2C_Read... [12:29:43]Read from MH i2c: D1 [12:29:43]MH_I2C_Read... [12:29:43]Read from MH i2c: D1 01 00 [12:29:43]MH_I2C_Read... [12:29:43]Read from MH i2c: D1 01 00 BB DC 00 68 [12:29:43]Write to MH i2c: 01 00 00 BC DC 98 [12:29:43]Write i2c OK [12:29:43]MH_I2C_Read... [12:29:44]*** Cut start [12:29:44]*** Partial cut [12:29:44]*** CUTSNS_PIN = 1 [12:29:44]*** CUTSNS_PIN = 0 [12:29:44]*** Brake cut motor [12:29:45]Read from MH i2c: 01 [12:29:45]MH_I2C_Read... [12:29:45]*** Stop cut motor [12:29:45]Read from MH i2c: 01 07 00 [12:29:45]MH_I2C_Read... [12:29:45]*** Cut end [12:29:45]Read from MH i2c: 01 07 00 BC DC 00 00 00 00 00 FF 0F AD [12:29:45]process_action close_receipt done [12:29:45]requested_data is exist [12:29:45]produce_requested_data [12:29:45]requested_item fm.sn is exist - process it [12:29:45]wFMCommunicate request_size=4 [12:29:45]MH_SAM_APDU [12:29:45]CAPDU: 80 11 00 00 [12:29:45]Write to MH i2c: E2 08 00 BD DC 80 11 00 00 00 00 00 00 13 [12:29:45]Write i2c OK [12:29:45]MH_I2C_Read... [12:29:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:45]Read from MH i2c: E2 [12:29:45]MH_I2C_Read... [12:29:45]Read from MH i2c: E2 17 00 [12:29:45]MH_I2C_Read... [12:29:45]Read from MH i2c: E2 17 00 BD DC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 65 [12:29:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:29:45]wFMCommunicate OK [12:29:45]requested_item fd.num is exist - process it [12:29:45]SAM_PROTO_GetFieldsCounters [12:29:45]wFMCommunicate request_size=4 [12:29:45]MH_SAM_APDU [12:29:45]CAPDU: 80 13 00 00 [12:29:45]Write to MH i2c: E2 08 00 BE DC 80 13 00 00 00 00 00 00 16 [12:29:45]Write i2c OK [12:29:45]MH_I2C_Read... [12:29:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:45]Read from MH i2c: E2 [12:29:45]MH_I2C_Read... [12:29:45]Read from MH i2c: E2 62 00 [12:29:45]MH_I2C_Read... [12:29:45]Read from MH i2c: E2 62 00 BE DC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E1 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [12:29:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E1 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:29:45]wFMCommunicate OK [12:29:45]SAM_PROTO_GetFieldsCounters done [12:29:45]requested_item shift.num is exist - process it [12:29:45]requested_item shift.opened is exist - process it [12:29:45]req_shift_opened [12:29:45]FM_GetShiftState [12:29:45]SAM_PROTO_GetShiftState [12:29:45]wFMCommunicate request_size=4 [12:29:45]MH_SAM_APDU [12:29:45]CAPDU: 80 13 01 00 [12:29:45]Write to MH i2c: E2 08 00 BF DC 80 13 01 00 00 00 00 00 18 [12:29:45]Write i2c OK [12:29:45]MH_I2C_Read... [12:29:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:45]Read from MH i2c: E2 [12:29:45]MH_I2C_Read... [12:29:45]Read from MH i2c: E2 0E 00 [12:29:45]MH_I2C_Read... [12:29:45]Read from MH i2c: E2 0E 00 BF DC 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 1E [12:29:45]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:29:45]wFMCommunicate OK [12:29:45]SAM_PROTO_GetShiftState done [12:29:45]FM_GetShiftState done [12:29:45]req_shift_opened done [12:29:45]requested_item shift.open_date is exist - process it [12:29:45]req_shift_open_date [12:29:45]req_shift_open_date done [12:29:45]produce_requested_data done [12:29:45]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69345,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [12:29:45]process_action_free close_receipt [12:29:45]json_value_free [12:29:45]json_value_free done [12:29:45]process_json_proto returns [12:29:45]Send response to host [12:29:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69345,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [12:29:45]free response buf [12:29:45]execute_script done [12:29:45]execute_script returns [12:29:45]free content buf [12:29:45]Sock 8.Close socket [12:29:45]Sock 8.Thread stoped [12:31:53]ConnectInit Can't connect to host [12:31:53]CommunicateWithHost connect error [12:31:53]CommunicateWithHost err = -1 [12:31:53]OFD Sender: Server communicate error [12:31:58]OFD Sender: Processing packet 69345 [packets to send 18, broken 17] [12:31:58]ProducePacketName [12:31:58]name=ofd_packets/00069345 [12:31:58]OFD Sender: To server: pG, [12:31:58]CommunicateWithHost lk.salyk.kg:30040 [12:31:58]ConnectInit lk.salyk.kg [12:31:58]Connected sock=8 [12:31:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 74 E9 07 01 06 F7 5A 03 01 00 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 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 BF F7 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E1 0E 01 00 35 04 06 00 6F CD F3 12 B9 25 38 F9 7E 30 75 F9 ED 6D [12:31:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 AE EE 47 00 97 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E1 0E 01 00 F4 03 04 00 ED A1 14 67 B6 04 01 00 00 BF BA FB 01 3F BF A8 9F [12:31:59]CommunicateWithHost err = 0 [12:31:59]CheckOFDResponse [12:31:59]1017 (14) - 77093643461234 [12:31:59]1041 (16) - 0000000000963346 [12:31:59]1040 (4) - 69345 [12:31:59]1012 (4) - 20.10.2024 06:23 [12:31:59]1206 (1) - 0 [12:31:59]OFD Sender: Remove packet 69345 [12:31:59]ProducePacketName [12:31:59]name=ofd_packets/00069345 [12:31:59]NVStorageDeleteData [12:31:59]OFD Sender: No OFD packet to send [12:32:04]OFD Sender: No OFD packet to send [12:32:09]OFD Sender: No OFD packet to send [12:32:14]OFD Sender: No OFD packet to send [12:32:19]OFD Sender: No OFD packet to send [12:32:24]OFD Sender: No OFD packet to send [12:32:29]OFD Sender: No OFD packet to send [12:32:33]accept exits with 9 [12:32:33]New connection [12:32:33]New thread 3067116900 created [12:32:33]Thread 3067260260 joined [12:32:33]Waiting for new connection... [12:32:33] Sock 9.Parse request [12:32:33]Sock 9.Check first char [12:32:33]Sock 9.First char is OK [12:32:33]request: POST /json_proto HTTP/1.0 [12:32:33]Method: POST [12:32:33]URL: /json_proto [12:32:33]Method is POST - this is cgi request [12:32:33]url: /json_proto [12:32:33]query_string will be loaded in cgi processing [12:32:33]execute_cgi json_proto POST (null) [12:32:33]execute_cgi path=json_proto method=POST [12:32:33]POST find Content-Length [12:32:33]Host: 172.17.50.3:8080 [12:32:33]Content-Length: 689 [12:32:33]Content-Type: application/json [12:32:33] [12:32:33]POST finish read [12:32:33]Found Content-Length = 689 [12:32:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:33]execute_script... [12:32: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)2885064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:33]POST & json_proto [12:32:33]process_json_proto [12:32:33]json parsed OK: [12:32:33]protocol is kg_v1.0 [12:32:33]action value=close_receipt [12:32:33]process_action close_receipt [12:32:33]cmd_close_receipt [12:32:33]MH_GetDate [12:32:33]Write to MH i2c: F0 00 00 C0 DC 8B [12:32:33]Write i2c OK [12:32:33]MH_I2C_Read... [12:32:33]Read from MH i2c: F0 [12:32:33]MH_I2C_Read... [12:32:33]Read from MH i2c: F0 09 00 [12:32:33]MH_I2C_Read... [12:32:33]Read from MH i2c: F0 09 00 C0 DC 00 6C F8 14 67 6B 98 1E 66 FA [12:32:33]GetLastDocTimeStamp 1729427391 [12:32:33]current date 1729427564 [12:32:33]FM_GetShiftState [12:32:33]SAM_PROTO_GetShiftState [12:32:33]wFMCommunicate request_size=4 [12:32:33]MH_SAM_APDU [12:32:33]CAPDU: 80 13 01 00 [12:32:33]Write to MH i2c: E2 08 00 C1 DC 80 13 01 00 00 00 00 00 1A [12:32:33]Write i2c OK [12:32:33]MH_I2C_Read... [12:32:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:34]Read from MH i2c: E2 [12:32:34]MH_I2C_Read... [12:32:34]Read from MH i2c: E2 0E 00 [12:32:34]MH_I2C_Read... [12:32:34]Read from MH i2c: E2 0E 00 C1 DC 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 20 [12:32:34]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:32:34]wFMCommunicate OK [12:32:34]SAM_PROTO_GetShiftState done [12:32:34]FM_GetShiftState done [12:32:34]opened in 1729383220 [12:32:34]opened+sec_in_day 1729469620 [12:32:34]quantity*price = 100051 [12:32:34]sum+1 = 100052 [12:32:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 191 20.10.2024 12:32 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69346 ФПД: 80019079906028 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T123244&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69346&fm=80019079906028&tin=02508201610067®Number=0000000000156251&sum=100000 [12:32:35]StoreToDocumentArchive [12:32:35]shift 193 fd 69346 [12:32:35]save to /storage/0193/doc_00069346 [12:32:35]save last doc name /storage/0193/doc_00069346 to /storage/kkm_last_doc_name [12:32:35]save OK [12:32:35]Clear old archive folders... [12:32:35]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:32:35]tlvbuf is 006B3DB0 [12:32:35]SAM_PROTO_ClearQueue [12:32:35]wFMCommunicate request_size=4 [12:32:35]MH_SAM_APDU [12:32:35]CAPDU: 80 09 00 00 [12:32:35]Write to MH i2c: E2 08 00 CE DC 80 09 00 00 00 00 00 00 1C [12:32:35]Write i2c OK [12:32:35]MH_I2C_Read... [12:32:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:35]Read from MH i2c: E2 [12:32:35]MH_I2C_Read... [12:32:35]Read from MH i2c: E2 03 00 [12:32:35]MH_I2C_Read... [12:32:35]Read from MH i2c: E2 03 00 CE DC 00 90 00 1E [12:32:35]RAPDU: 90 00 [12:32:35]wFMCommunicate OK [12:32:35]SAM_PROTO_ClearQueue done [12:32:35]KKMCreateOFDPacket [12:32:35]OFDProtocolAddRootSTLVToBuf [12:32:35]FM_MakeSignedData [12:32:35]FM_MakeSignedData [12:32:35]SAM_PROTO_SignData [12:32:35]wFMCommunicate request_size=4 [12:32:35]MH_SAM_APDU [12:32:35]CAPDU: 80 0D 01 02 [12:32:35]Write to MH i2c: E2 08 00 CF DC 80 0D 01 02 00 00 00 00 24 [12:32:35]Write i2c OK [12:32:35]MH_I2C_Read... [12:32:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:35]Read from MH i2c: E2 [12:32:35]MH_I2C_Read... [12:32:35]Read from MH i2c: E2 03 00 [12:32:35]MH_I2C_Read... [12:32:35]Read from MH i2c: E2 03 00 CF DC 00 90 00 1F [12:32:35]RAPDU: 90 00 [12:32:35]wFMCommunicate OK [12:32:35]wFMCommunicate request_size=255 [12:32:35]MH_SAM_APDU [12:32:35]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 6C F8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E2 0E 01 [12:32:35]Write to MH i2c: E2 02 01 D0 DC 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 6C F8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E2 0E 01 00 00 C6 [12:32:35]Write i2c OK [12:32:35]MH_I2C_Read... [12:32:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:35]Read from MH i2c: E2 [12:32:35]MH_I2C_Read... [12:32:35]Read from MH i2c: E2 03 00 [12:32:35]MH_I2C_Read... [12:32:35]Read from MH i2c: E2 03 00 D0 DC 00 90 00 20 [12:32:35]RAPDU: 90 00 [12:32:35]wFMCommunicate OK [12:32:35]wFMCommunicate request_size=16 [12:32:35]MH_SAM_APDU [12:32:35]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 48 C6 E4 D5 42 EC [12:32:35]Write to MH i2c: E2 13 00 D1 DC 80 0D 02 02 0B 00 00 35 04 06 00 48 C6 E4 D5 42 EC 00 00 71 [12:32:35]Write i2c OK [12:32:35]MH_I2C_Read... [12:32:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:35]Read from MH i2c: E2 [12:32:35]MH_I2C_Read... [12:32:35]Read from MH i2c: E2 03 00 [12:32:35]MH_I2C_Read... [12:32:35]Read from MH i2c: E2 03 00 D1 DC 00 90 00 21 [12:32:35]RAPDU: 90 00 [12:32:35]wFMCommunicate OK [12:32:35]wFMCommunicate request_size=4 [12:32:35]MH_SAM_APDU [12:32:35]CAPDU: 80 0D 03 02 [12:32:35]Write to MH i2c: E2 08 00 D2 DC 80 0D 03 02 00 00 00 00 29 [12:32:35]Write i2c OK [12:32:35]MH_I2C_Read... [12:32:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:35]Read from MH i2c: E2 [12:32:35]MH_I2C_Read... [12:32:35]Read from MH i2c: E2 0B 00 [12:32:35]MH_I2C_Read... [12:32:35]Read from MH i2c: E2 0B 00 D2 DC 00 AB 65 D2 9F 03 4E 5A 64 90 00 BA [12:32:35]RAPDU: AB 65 D2 9F 03 4E 5A 64 90 00 [12:32:35]wFMCommunicate OK [12:32:35]SAM_PROTO_SignData done [12:32:35]FM_MakeSignedData done [12:32:35]CreateOFDProtocolMessage [12:32:35]wFMCommunicate request_size=4 [12:32:35]MH_SAM_APDU [12:32:35]CAPDU: 80 11 00 00 [12:32:35]Write to MH i2c: E2 08 00 D3 DC 80 11 00 00 00 00 00 00 29 [12:32:35]Write i2c OK [12:32:35]MH_I2C_Read... [12:32:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:35]Read from MH i2c: E2 [12:32:35]MH_I2C_Read... [12:32:35]Read from MH i2c: E2 17 00 [12:32:35]MH_I2C_Read... [12:32:35]Read from MH i2c: E2 17 00 D3 DC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7B [12:32:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:32:35]wFMCommunicate OK [12:32:35]CreateOFDProtocolMessage done [12:32:35]OFDSenderStorePacket 69346 [12:32:35]StoreOFDPacket docnum=69346 [12:32:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 7B F6 0D 01 98 B8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 6C F8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E2 0E 01 00 35 04 06 00 48 C6 E4 D5 42 EC AB 65 D2 9F 03 4E 5A 64 [12:32:35]CheckFolder [12:32:35]dirname=/storage/ofd_packets [12:32:35]CheckFolder done [12:32:35]ProducePacketName [12:32:35]name=ofd_packets/00069346 [12:32:35]NVStorageSaveData ofd_packets/00069346 [12:32:35]File name is /storage/ofd_packets/00069346 [12:32:35]Write 307 bytes [12:32:35]NVStorageSaveData done [12:32:35]OFDSenderStorePacket done [12:32:35]KKMCreateOFDPacket done [12:32:35]NVStorageSaveData kkm_last_timestamp [12:32:35]File name is /storage/kkm_last_timestamp [12:32:35]Write 4 bytes [12:32:35]NVStorageSaveData done [12:32:35]ExternCall_PrintAddStr [12:32:35]wPrintStart [12:32:35]Write to MH i2c: 01 00 00 D4 DC B0 [12:32:35]Write i2c OK [12:32:35]MH_I2C_Read... [12:32:35]Read from MH i2c: 01 [12:32:35]MH_I2C_Read... [12:32:35]Read from MH i2c: 01 07 00 [12:32:35]MH_I2C_Read... [12:32:35]Read from MH i2c: 01 07 00 D4 DC 00 00 00 00 00 FF 0F C5 [12:32:35]RasterBufferAndPrint [12:32:35]line Счет N : (1)2885064 [12:32:35]line ИНН: 02508201610067 [12:32:35]line Контрольно-Кассовый Чек [12:32:35]line ПРОДАЖА [12:32:35]line ТРК (МРК, ГНК) : 31 [12:32:35]line Товар: 2710194240 [12:32:35]line D-ENERGY Дт-К-2 [12:32:35]line 12.960 * 77.20 [12:32:35]line = 1000.51 [12:32:35]line НДС 12% НСП 1% [12:32:35]line > о реализуемом товаре [12:32:35]line ОКРУГЛЕНИЕ: -0.51 [12:32:35]line ИТОГО: 1000.00 [12:32:35]line Внесено: 1000.00 [12:32:35]line СДАЧА: 0.00 [12:32:35]line НСП 1% : 8.85 [12:32:35]line НДС 12% : 106.25 [12:32:35]line Наличными: 1000.00 [12:32:35]line Безнал.: 0.00 [12:32:35]line Место: АЗС № 85 "Партнер Нефть" [12:32:35]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:32:35]line СНО: Общий режим [12:32:35]line Чек 191 20.10.2024 12:32 [12:32:35]line Смена: 193 ФФД: 1.0 [12:32:35]line ЗНМ: 0300000167 [12:32:35]line РНМ: 0000000000156251 [12:32:35]line Версия ККМ: v1.0 [12:32:35]line ФМ: 0000000000963346 [12:32:35]line ФД: 69346 [12:32:35]line ФПД: 80019079906028 [12:32:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T123244&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69346&fm=80019079906028&tin=02508201610067®Number=0000000000156251&sum=100000 [12:32:36]OFD Sender: Processing packet 69346 [packets to send 18, broken 17] [12:32:36]ProducePacketName [12:32:36]name=ofd_packets/00069346 [12:32:36]OFD Sender: To server: pG, [12:32:36]CommunicateWithHost lk.salyk.kg:30040 [12:32:36]ConnectInit lk.salyk.kg [12:32:36]written 0, free lines is 4095 [12:32:36]Connected sock=10 [12:32:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 7B F6 0D 01 98 B8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 6C F8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E2 0E 01 00 35 04 06 00 48 C6 E4 D5 42 EC AB 65 D2 9F 03 4E 5A 64 [12:32:36]Write to MH i2c: 01 00 00 FF DC DB [12:32:36]Write i2c OK [12:32:36]MH_I2C_Read... [12:32:36]Read from MH i2c: 01 [12:32:36]MH_I2C_Read... [12:32:36]Read from MH i2c: 01 07 00 [12:32:36]MH_I2C_Read... [12:32:36]Read from MH i2c: 01 07 00 FF DC 00 00 00 00 00 EB 0C D9 [12:32:36]RasterBufferAndPrint [12:32:36]line [12:32:36]line [12:32:36]line [12:32:36]line [12:32:36]line [12:32:36]written 0, free lines is 3313 [12:32:36]MH_Cut [12:32:36]Write to MH i2c: D1 01 00 06 DD 01 B5 [12:32:36]Write i2c OK [12:32:36]MH_I2C_Read... [12:32:36]Read from MH i2c: D1 [12:32:36]MH_I2C_Read... [12:32:36]Read from MH i2c: D1 01 00 [12:32:36]MH_I2C_Read... [12:32:36]Read from MH i2c: D1 01 00 06 DD 00 B4 [12:32:36]Write to MH i2c: 01 00 00 07 DD E4 [12:32:36]Write i2c OK [12:32:36]MH_I2C_Read... [12:32:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 F7 C5 47 00 E1 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E2 0E 01 00 F4 03 04 00 13 A2 14 67 B6 04 01 00 00 79 17 76 D7 57 F8 08 4F [12:32:36]CommunicateWithHost err = 0 [12:32:36]CheckOFDResponse [12:32:36]1017 (14) - 77093643461234 [12:32:36]1041 (16) - 0000000000963346 [12:32:36]1040 (4) - 69346 [12:32:36]1012 (4) - 20.10.2024 06:24 [12:32:36]1206 (1) - 0 [12:32:36]OFD Sender: Remove packet 69346 [12:32:36]ProducePacketName [12:32:36]name=ofd_packets/00069346 [12:32:36]NVStorageDeleteData [12:32:37]OFD Sender: No OFD packet to send [12:32:37]*** Cut start [12:32:37]*** Partial cut [12:32:37]*** CUTSNS_PIN = 1 [12:32:37]*** CUTSNS_PIN = 0 [12:32:37]*** Brake cut motor [12:32:37]Read from MH i2c: 01 [12:32:37]MH_I2C_Read... [12:32:37]*** Stop cut motor [12:32:37]*** Cut end [12:32:37]Read from MH i2c: 01 07 00 [12:32:37]MH_I2C_Read... [12:32:37]Read from MH i2c: 01 07 00 07 DD 00 00 00 00 00 FF 0F F9 [12:32:37]process_action close_receipt done [12:32:37]requested_data is exist [12:32:37]produce_requested_data [12:32:37]requested_item fm.sn is exist - process it [12:32:37]wFMCommunicate request_size=4 [12:32:37]MH_SAM_APDU [12:32:37]CAPDU: 80 11 00 00 [12:32:37]Write to MH i2c: E2 08 00 08 DD 80 11 00 00 00 00 00 00 5F [12:32:37]Write i2c OK [12:32:37]MH_I2C_Read... [12:32:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:37]Read from MH i2c: E2 [12:32:37]MH_I2C_Read... [12:32:37]Read from MH i2c: E2 17 00 [12:32:37]MH_I2C_Read... [12:32:37]Read from MH i2c: E2 17 00 08 DD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B1 [12:32:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:32:37]wFMCommunicate OK [12:32:37]requested_item fd.num is exist - process it [12:32:37]SAM_PROTO_GetFieldsCounters [12:32:37]wFMCommunicate request_size=4 [12:32:37]MH_SAM_APDU [12:32:37]CAPDU: 80 13 00 00 [12:32:37]Write to MH i2c: E2 08 00 09 DD 80 13 00 00 00 00 00 00 62 [12:32:37]Write i2c OK [12:32:37]MH_I2C_Read... [12:32:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:37]Read from MH i2c: E2 [12:32:37]MH_I2C_Read... [12:32:37]Read from MH i2c: E2 62 00 [12:32:38]MH_I2C_Read... [12:32:38]Read from MH i2c: E2 62 00 09 DD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E2 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [12:32:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E2 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:32:38]wFMCommunicate OK [12:32:38]SAM_PROTO_GetFieldsCounters done [12:32:38]requested_item shift.num is exist - process it [12:32:38]requested_item shift.opened is exist - process it [12:32:38]req_shift_opened [12:32:38]FM_GetShiftState [12:32:38]SAM_PROTO_GetShiftState [12:32:38]wFMCommunicate request_size=4 [12:32:38]MH_SAM_APDU [12:32:38]CAPDU: 80 13 01 00 [12:32:38]Write to MH i2c: E2 08 00 0A DD 80 13 01 00 00 00 00 00 64 [12:32:38]Write i2c OK [12:32:38]MH_I2C_Read... [12:32:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:38]Read from MH i2c: E2 [12:32:38]MH_I2C_Read... [12:32:38]Read from MH i2c: E2 0E 00 [12:32:38]MH_I2C_Read... [12:32:38]Read from MH i2c: E2 0E 00 0A DD 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 6A [12:32:38]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:32:38]wFMCommunicate OK [12:32:38]SAM_PROTO_GetShiftState done [12:32:38]FM_GetShiftState done [12:32:38]req_shift_opened done [12:32:38]requested_item shift.open_date is exist - process it [12:32:38]req_shift_open_date [12:32:38]req_shift_open_date done [12:32:38]produce_requested_data done [12:32:38]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69346,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [12:32:38]process_action_free close_receipt [12:32:38]json_value_free [12:32:38]json_value_free done [12:32:38]process_json_proto returns [12:32:38]Send response to host [12:32:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69346,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [12:32:38]free response buf [12:32:38]execute_script done [12:32:38]execute_script returns [12:32:38]free content buf [12:32:38]Sock 9.Close socket [12:32:38]Sock 9.Thread stoped [12:32:38]accept exits with 8 [12:32:38]New connection [12:32:38]New thread 3067260260 created [12:32:38]Thread 3067116900 joined [12:32:38]Waiting for new connection... [12:32:38] Sock 8.Parse request [12:32:38]Sock 8.Check first char [12:32:38]Sock 8.First char is OK [12:32:38]request: POST /json_proto HTTP/1.0 [12:32:38]Method: POST [12:32:38]URL: /json_proto [12:32:38]Method is POST - this is cgi request [12:32:38]url: /json_proto [12:32:38]query_string will be loaded in cgi processing [12:32:38]execute_cgi json_proto POST (null) [12:32:38]execute_cgi path=json_proto method=POST [12:32:38]POST find Content-Length [12:32:38]Host: 172.17.50.3:8080 [12:32:38]Content-Length: 678 [12:32:38]Content-Type: application/json [12:32:38] [12:32:38]POST finish read [12:32:38]Found Content-Length = 678 [12:32:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:38]execute_script... [12:32: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)2885065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:38]POST & json_proto [12:32:38]process_json_proto [12:32:38]json parsed OK: [12:32:38]protocol is kg_v1.0 [12:32:38]action value=close_receipt [12:32:38]process_action close_receipt [12:32:38]cmd_close_receipt [12:32:38]MH_GetDate [12:32:38]Write to MH i2c: F0 00 00 0B DD D7 [12:32:38]Write i2c OK [12:32:38]MH_I2C_Read... [12:32:38]Read from MH i2c: F0 [12:32:38]MH_I2C_Read... [12:32:38]Read from MH i2c: F0 09 00 [12:32:38]MH_I2C_Read... [12:32:38]Read from MH i2c: F0 09 00 0B DD 00 70 F8 14 67 6B 98 1E 66 4A [12:32:38]GetLastDocTimeStamp 1729427564 [12:32:38]current date 1729427568 [12:32:38]FM_GetShiftState [12:32:38]SAM_PROTO_GetShiftState [12:32:38]wFMCommunicate request_size=4 [12:32:38]MH_SAM_APDU [12:32:38]CAPDU: 80 13 01 00 [12:32:38]Write to MH i2c: E2 08 00 0C DD 80 13 01 00 00 00 00 00 66 [12:32:38]Write i2c OK [12:32:38]MH_I2C_Read... [12:32:38]Read from MH i2c: E2 [12:32:38]MH_I2C_Read... [12:32:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:38]Read from MH i2c: E2 0E 00 [12:32:38]MH_I2C_Read... [12:32:38]Read from MH i2c: E2 0E 00 0C DD 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 6C [12:32:38]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:32:38]wFMCommunicate OK [12:32:38]SAM_PROTO_GetShiftState done [12:32:38]FM_GetShiftState done [12:32:38]opened in 1729383220 [12:32:38]opened+sec_in_day 1729469620 [12:32:38]quantity*price = 30038 [12:32:38]sum+1 = 30039 [12:32:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 192 20.10.2024 12:32 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69347 ФПД: 126159983378298 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T123248&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69347&fm=126159983378298&tin=02508201610067®Number=0000000000156251&sum=30000 [12:32:39]StoreToDocumentArchive [12:32:39]shift 193 fd 69347 [12:32:39]save to /storage/0193/doc_00069347 [12:32:39]save last doc name /storage/0193/doc_00069347 to /storage/kkm_last_doc_name [12:32:39]save OK [12:32:39]Clear old archive folders... [12:32:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:32:39]tlvbuf is B6DF36E0 [12:32:39]SAM_PROTO_ClearQueue [12:32:39]wFMCommunicate request_size=4 [12:32:39]MH_SAM_APDU [12:32:39]CAPDU: 80 09 00 00 [12:32:39]Write to MH i2c: E2 08 00 19 DD 80 09 00 00 00 00 00 00 68 [12:32:39]Write i2c OK [12:32:39]MH_I2C_Read... [12:32:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:39]Read from MH i2c: E2 [12:32:39]MH_I2C_Read... [12:32:39]Read from MH i2c: E2 03 00 [12:32:39]MH_I2C_Read... [12:32:39]Read from MH i2c: E2 03 00 19 DD 00 90 00 6A [12:32:39]RAPDU: 90 00 [12:32:39]wFMCommunicate OK [12:32:39]SAM_PROTO_ClearQueue done [12:32:39]KKMCreateOFDPacket [12:32:39]OFDProtocolAddRootSTLVToBuf [12:32:39]FM_MakeSignedData [12:32:39]FM_MakeSignedData [12:32:39]SAM_PROTO_SignData [12:32:39]wFMCommunicate request_size=4 [12:32:39]MH_SAM_APDU [12:32:39]CAPDU: 80 0D 01 02 [12:32:39]Write to MH i2c: E2 08 00 1A DD 80 0D 01 02 00 00 00 00 70 [12:32:39]Write i2c OK [12:32:39]MH_I2C_Read... [12:32:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:39]Read from MH i2c: E2 [12:32:39]MH_I2C_Read... [12:32:39]Read from MH i2c: E2 03 00 [12:32:39]MH_I2C_Read... [12:32:39]Read from MH i2c: E2 03 00 1A DD 00 90 00 6B [12:32:39]RAPDU: 90 00 [12:32:39]wFMCommunicate OK [12:32:39]wFMCommunicate request_size=255 [12:32:39]MH_SAM_APDU [12:32:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 70 F8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E3 0E 01 00 35 04 06 00 72 [12:32:39]Write to MH i2c: E2 02 01 1B DD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 70 F8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E3 0E 01 00 35 04 06 00 72 00 00 B5 [12:32:39]Write i2c OK [12:32:39]MH_I2C_Read... [12:32:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:40]Read from MH i2c: E2 [12:32:40]MH_I2C_Read... [12:32:40]Read from MH i2c: E2 03 00 [12:32:40]MH_I2C_Read... [12:32:40]Read from MH i2c: E2 03 00 1B DD 00 90 00 6C [12:32:40]RAPDU: 90 00 [12:32:40]wFMCommunicate OK [12:32:40]wFMCommunicate request_size=10 [12:32:40]MH_SAM_APDU [12:32:40]CAPDU: 80 0D 02 02 05 BD E8 FE 7F 7A [12:32:40]Write to MH i2c: E2 0D 00 1C DD 80 0D 02 02 05 00 BD E8 FE 7F 7A 00 00 19 [12:32:40]Write i2c OK [12:32:40]MH_I2C_Read... [12:32:40]Read from MH i2c: E2 [12:32:40]MH_I2C_Read... [12:32:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:40]Read from MH i2c: E2 03 00 [12:32:40]MH_I2C_Read... [12:32:40]Read from MH i2c: E2 03 00 1C DD 00 90 00 6D [12:32:40]RAPDU: 90 00 [12:32:40]wFMCommunicate OK [12:32:40]wFMCommunicate request_size=4 [12:32:40]MH_SAM_APDU [12:32:40]CAPDU: 80 0D 03 02 [12:32:40]Write to MH i2c: E2 08 00 1D DD 80 0D 03 02 00 00 00 00 75 [12:32:40]Write i2c OK [12:32:40]MH_I2C_Read... [12:32:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:40]Read from MH i2c: E2 [12:32:40]MH_I2C_Read... [12:32:40]Read from MH i2c: E2 0B 00 [12:32:40]MH_I2C_Read... [12:32:40]Read from MH i2c: E2 0B 00 1D DD 00 73 5E 8D E5 AF C2 37 49 90 00 AA [12:32:40]RAPDU: 73 5E 8D E5 AF C2 37 49 90 00 [12:32:40]wFMCommunicate OK [12:32:40]SAM_PROTO_SignData done [12:32:40]FM_MakeSignedData done [12:32:40]CreateOFDProtocolMessage [12:32:40]wFMCommunicate request_size=4 [12:32:40]MH_SAM_APDU [12:32:40]CAPDU: 80 11 00 00 [12:32:40]Write to MH i2c: E2 08 00 1E DD 80 11 00 00 00 00 00 00 75 [12:32:40]Write i2c OK [12:32:40]MH_I2C_Read... [12:32:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:40]Read from MH i2c: E2 [12:32:40]MH_I2C_Read... [12:32:40]Read from MH i2c: E2 17 00 [12:32:40]MH_I2C_Read... [12:32:40]Read from MH i2c: E2 17 00 1E DD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C7 [12:32:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:32:40]wFMCommunicate OK [12:32:40]CreateOFDProtocolMessage done [12:32:40]OFDSenderStorePacket 69347 [12:32:40]StoreOFDPacket docnum=69347 [12:32:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 31 47 07 01 EF 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 70 F8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E3 0E 01 00 35 04 06 00 72 BD E8 FE 7F 7A 73 5E 8D E5 AF C2 37 49 [12:32:40]CheckFolder [12:32:40]dirname=/storage/ofd_packets [12:32:40]CheckFolder done [12:32:40]ProducePacketName [12:32:40]name=ofd_packets/00069347 [12:32:40]NVStorageSaveData ofd_packets/00069347 [12:32:40]File name is /storage/ofd_packets/00069347 [12:32:40]Write 301 bytes [12:32:40]NVStorageSaveData done [12:32:40]OFDSenderStorePacket done [12:32:40]KKMCreateOFDPacket done [12:32:40]NVStorageSaveData kkm_last_timestamp [12:32:40]File name is /storage/kkm_last_timestamp [12:32:40]Write 4 bytes [12:32:40]NVStorageSaveData done [12:32:40]ExternCall_PrintAddStr [12:32:40]wPrintStart [12:32:40]Write to MH i2c: 01 00 00 1F DD FC [12:32:40]Write i2c OK [12:32:40]MH_I2C_Read... [12:32:40]Read from MH i2c: 01 [12:32:40]MH_I2C_Read... [12:32:40]Read from MH i2c: 01 07 00 [12:32:40]MH_I2C_Read... [12:32:40]Read from MH i2c: 01 07 00 1F DD 00 00 00 00 00 FF 0F 11 [12:32:40]RasterBufferAndPrint [12:32:40]line Счет N : (1)2885065 [12:32:40]line ИНН: 02508201610067 [12:32:40]line Контрольно-Кассовый Чек [12:32:40]line ПРОДАЖА [12:32:40]line ТРК (МРК, ГНК) : 42 [12:32:40]line Товар: 2710124130 [12:32:40]line Аи-92-К-5 [12:32:40]line 4.490 * 66.90 [12:32:40]line = 300.38 [12:32:40]line НДС 12% НСП 1% [12:32:40]line > о реализуемом товаре [12:32:40]line ОКРУГЛЕНИЕ: -0.38 [12:32:40]line ИТОГО: 300.00 [12:32:40]line Внесено: 300.00 [12:32:40]line СДАЧА: 0.00 [12:32:40]line НСП 1% : 2.66 [12:32:40]line НДС 12% : 31.90 [12:32:40]line Наличными: 300.00 [12:32:40]line Безнал.: 0.00 [12:32:40]line Место: АЗС № 85 "Партнер Нефть" [12:32:40]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:32:40]line СНО: Общий режим [12:32:40]line Чек 192 20.10.2024 12:32 [12:32:40]line Смена: 193 ФФД: 1.0 [12:32:40]line ЗНМ: 0300000167 [12:32:40]line РНМ: 0000000000156251 [12:32:40]line Версия ККМ: v1.0 [12:32:40]line ФМ: 0000000000963346 [12:32:40]line ФД: 69347 [12:32:40]line ФПД: 126159983378298 [12:32:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T123248&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69347&fm=126159983378298&tin=02508201610067®Number=0000000000156251&sum=30000 [12:32:40]written 0, free lines is 4095 [12:32:40]OFD Sender: Processing packet 69347 [packets to send 18, broken 17] [12:32:40]ProducePacketName [12:32:40]name=ofd_packets/00069347 [12:32:40]OFD Sender: To server: pG, [12:32:40]CommunicateWithHost lk.salyk.kg:30040 [12:32:40]ConnectInit lk.salyk.kg [12:32:40]Connected sock=10 [12:32:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 31 47 07 01 EF 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 70 F8 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E3 0E 01 00 35 04 06 00 72 BD E8 FE 7F 7A 73 5E 8D E5 AF C2 37 49 [12:32:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 1E B5 47 00 D7 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E3 0E 01 00 F4 03 04 00 17 A2 14 67 B6 04 01 00 00 3E 84 5D D8 97 13 2D 6B [12:32:41]CommunicateWithHost err = 0 [12:32:41]CheckOFDResponse [12:32:41]1017 (14) - 77093643461234 [12:32:41]1041 (16) - 0000000000963346 [12:32:41]1040 (4) - 69347 [12:32:41]1012 (4) - 20.10.2024 06:24 [12:32:41]1206 (1) - 0 [12:32:41]OFD Sender: Remove packet 69347 [12:32:41]ProducePacketName [12:32:41]name=ofd_packets/00069347 [12:32:41]NVStorageDeleteData [12:32:41]Write to MH i2c: 01 00 00 4A DD 27 [12:32:41]Write i2c OK [12:32:41]MH_I2C_Read... [12:32:41]Read from MH i2c: 01 [12:32:41]MH_I2C_Read... [12:32:41]Read from MH i2c: 01 07 00 [12:32:41]MH_I2C_Read... [12:32:41]Read from MH i2c: 01 07 00 4A DD 00 00 00 00 00 FC 0C 36 [12:32:41]RasterBufferAndPrint [12:32:41]line [12:32:41]line [12:32:41]line [12:32:41]line [12:32:41]line [12:32:41]written 0, free lines is 3339 [12:32:41]MH_Cut [12:32:41]Write to MH i2c: D1 01 00 51 DD 01 00 [12:32:41]Write i2c OK [12:32:41]MH_I2C_Read... [12:32:41]Read from MH i2c: D1 [12:32:41]MH_I2C_Read... [12:32:41]Read from MH i2c: D1 01 00 [12:32:41]MH_I2C_Read... [12:32:41]Read from MH i2c: D1 01 00 51 DD 00 FF [12:32:41]Write to MH i2c: 01 00 00 52 DD 2F [12:32:41]Write i2c OK [12:32:41]MH_I2C_Read... [12:32:41]OFD Sender: No OFD packet to send [12:32:41]*** Cut start [12:32:41]*** Partial cut [12:32:41]*** CUTSNS_PIN = 1 [12:32:41]*** CUTSNS_PIN = 0 [12:32:42]*** Brake cut motor [12:32:42]Read from MH i2c: 01 [12:32:42]MH_I2C_Read... [12:32:42]*** Stop cut motor [12:32:42]*** Cut end [12:32:42]Read from MH i2c: 01 07 00 [12:32:42]MH_I2C_Read... [12:32:42]Read from MH i2c: 01 07 00 52 DD 00 00 00 00 00 FF 0F 44 [12:32:42]process_action close_receipt done [12:32:42]requested_data is exist [12:32:42]produce_requested_data [12:32:42]requested_item fm.sn is exist - process it [12:32:42]wFMCommunicate request_size=4 [12:32:42]MH_SAM_APDU [12:32:42]CAPDU: 80 11 00 00 [12:32:42]Write to MH i2c: E2 08 00 53 DD 80 11 00 00 00 00 00 00 AA [12:32:42]Write i2c OK [12:32:42]MH_I2C_Read... [12:32:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:42]Read from MH i2c: E2 [12:32:42]MH_I2C_Read... [12:32:42]Read from MH i2c: E2 17 00 [12:32:42]MH_I2C_Read... [12:32:42]Read from MH i2c: E2 17 00 53 DD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FC [12:32:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:32:42]wFMCommunicate OK [12:32:42]requested_item fd.num is exist - process it [12:32:42]SAM_PROTO_GetFieldsCounters [12:32:42]wFMCommunicate request_size=4 [12:32:42]MH_SAM_APDU [12:32:42]CAPDU: 80 13 00 00 [12:32:42]Write to MH i2c: E2 08 00 54 DD 80 13 00 00 00 00 00 00 AD [12:32:42]Write i2c OK [12:32:42]MH_I2C_Read... [12:32:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:42]Read from MH i2c: E2 [12:32:42]MH_I2C_Read... [12:32:42]Read from MH i2c: E2 62 00 [12:32:42]MH_I2C_Read... [12:32:42]Read from MH i2c: E2 62 00 54 DD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E3 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [12:32:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E3 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:32:42]wFMCommunicate OK [12:32:42]SAM_PROTO_GetFieldsCounters done [12:32:42]requested_item shift.num is exist - process it [12:32:42]requested_item shift.opened is exist - process it [12:32:42]req_shift_opened [12:32:42]FM_GetShiftState [12:32:42]SAM_PROTO_GetShiftState [12:32:42]wFMCommunicate request_size=4 [12:32:42]MH_SAM_APDU [12:32:42]CAPDU: 80 13 01 00 [12:32:42]Write to MH i2c: E2 08 00 55 DD 80 13 01 00 00 00 00 00 AF [12:32:42]Write i2c OK [12:32:42]MH_I2C_Read... [12:32:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:42]Read from MH i2c: E2 [12:32:42]MH_I2C_Read... [12:32:42]Read from MH i2c: E2 0E 00 [12:32:42]MH_I2C_Read... [12:32:42]Read from MH i2c: E2 0E 00 55 DD 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 B5 [12:32:42]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:32:42]wFMCommunicate OK [12:32:42]SAM_PROTO_GetShiftState done [12:32:42]FM_GetShiftState done [12:32:42]req_shift_opened done [12:32:42]requested_item shift.open_date is exist - process it [12:32:42]req_shift_open_date [12:32:42]req_shift_open_date done [12:32:42]produce_requested_data done [12:32:42]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69347,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [12:32:42]process_action_free close_receipt [12:32:42]json_value_free [12:32:42]json_value_free done [12:32:42]process_json_proto returns [12:32:42]Send response to host [12:32:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69347,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [12:32:42]free response buf [12:32:42]execute_script done [12:32:42]execute_script returns [12:32:42]free content buf [12:32:42]Sock 8.Close socket [12:32:42]Sock 8.Thread stoped [12:32:46]OFD Sender: No OFD packet to send [12:32:51]OFD Sender: No OFD packet to send [12:32:56]OFD Sender: No OFD packet to send [12:33:01]OFD Sender: No OFD packet to send [12:33:06]OFD Sender: No OFD packet to send [12:33:11]OFD Sender: No OFD packet to send [12:33:16]OFD Sender: No OFD packet to send [12:33:21]OFD Sender: No OFD packet to send [12:33:26]OFD Sender: No OFD packet to send [12:33:31]OFD Sender: No OFD packet to send [12:33:36]OFD Sender: No OFD packet to send [12:33:41]OFD Sender: No OFD packet to send [12:33:46]OFD Sender: No OFD packet to send [12:33:51]OFD Sender: No OFD packet to send [12:33:56]OFD Sender: No OFD packet to send [12:34:01]OFD Sender: No OFD packet to send [12:34:06]OFD Sender: No OFD packet to send [12:34:11]OFD Sender: No OFD packet to send [12:34:16]OFD Sender: No OFD packet to send [12:34:21]OFD Sender: No OFD packet to send [12:34:26]OFD Sender: No OFD packet to send [12:34:31]OFD Sender: No OFD packet to send [12:34:36]OFD Sender: No OFD packet to send [12:34:41]OFD Sender: No OFD packet to send [12:34:46]OFD Sender: No OFD packet to send [12:34:51]OFD Sender: No OFD packet to send [12:34:56]OFD Sender: No OFD packet to send [12:35:01]OFD Sender: No OFD packet to send [12:35:06]OFD Sender: No OFD packet to send [12:35:11]OFD Sender: No OFD packet to send [12:35:16]OFD Sender: No OFD packet to send [12:35:21]OFD Sender: No OFD packet to send [12:35:26]OFD Sender: No OFD packet to send [12:35:31]OFD Sender: No OFD packet to send [12:35:36]OFD Sender: No OFD packet to send [12:35:41]OFD Sender: No OFD packet to send [12:35:46]OFD Sender: No OFD packet to send [12:35:51]OFD Sender: No OFD packet to send [12:35:56]OFD Sender: No OFD packet to send [12:36:01]OFD Sender: No OFD packet to send [12:36:06]OFD Sender: No OFD packet to send [12:36:11]OFD Sender: No OFD packet to send [12:36:16]OFD Sender: No OFD packet to send [12:36:21]OFD Sender: No OFD packet to send [12:36:26]OFD Sender: No OFD packet to send [12:36:31]OFD Sender: No OFD packet to send [12:36:36]OFD Sender: No OFD packet to send [12:36:41]OFD Sender: No OFD packet to send [12:36:46]OFD Sender: No OFD packet to send [12:36:51]OFD Sender: No OFD packet to send [12:36:56]OFD Sender: No OFD packet to send [12:37:01]OFD Sender: No OFD packet to send [12:37:06]OFD Sender: No OFD packet to send [12:37:11]OFD Sender: No OFD packet to send [12:37:13]accept exits with 9 [12:37:13]New connection [12:37:13]New thread 3067116900 created [12:37:13]Thread 3067260260 joined [12:37:13]Waiting for new connection... [12:37:13] Sock 9.Parse request [12:37:13]Sock 9.Check first char [12:37:13]Sock 9.First char is OK [12:37:13]request: POST /json_proto HTTP/1.0 [12:37:13]Method: POST [12:37:13]URL: /json_proto [12:37:13]Method is POST - this is cgi request [12:37:13]url: /json_proto [12:37:13]query_string will be loaded in cgi processing [12:37:13]execute_cgi json_proto POST (null) [12:37:13]execute_cgi path=json_proto method=POST [12:37:13]POST find Content-Length [12:37:13]Host: 172.17.50.3:8080 [12:37:13]Content-Length: 683 [12:37:13]Content-Type: application/json [12:37:13] [12:37:13]POST finish read [12:37:13]Found Content-Length = 683 [12:37:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 50.070, "sum" : 3715.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 3715.00, "payments": [ { "type": 0, "sum" : 3715.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:13]execute_script... [12: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 : (1)2885067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 50.070, "sum" : 3715.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 3715.00, "payments": [ { "type": 0, "sum" : 3715.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:13]POST & json_proto [12:37:13]process_json_proto [12:37:13]json parsed OK: [12:37:13]protocol is kg_v1.0 [12:37:13]action value=close_receipt [12:37:13]process_action close_receipt [12:37:13]cmd_close_receipt [12:37:13]MH_GetDate [12:37:13]Write to MH i2c: F0 00 00 56 DD 22 [12:37:13]Write i2c OK [12:37:13]MH_I2C_Read... [12:37:13]Read from MH i2c: F0 [12:37:13]MH_I2C_Read... [12:37:13]Read from MH i2c: F0 09 00 [12:37:13]MH_I2C_Read... [12:37:13]Read from MH i2c: F0 09 00 56 DD 00 83 F9 14 67 6B 98 1E 66 A9 [12:37:13]GetLastDocTimeStamp 1729427568 [12:37:13]current date 1729427843 [12:37:13]FM_GetShiftState [12:37:13]SAM_PROTO_GetShiftState [12:37:13]wFMCommunicate request_size=4 [12:37:13]MH_SAM_APDU [12:37:13]CAPDU: 80 13 01 00 [12:37:13]Write to MH i2c: E2 08 00 57 DD 80 13 01 00 00 00 00 00 B1 [12:37:13]Write i2c OK [12:37:13]MH_I2C_Read... [12:37:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:13]Read from MH i2c: E2 [12:37:13]MH_I2C_Read... [12:37:13]Read from MH i2c: E2 0E 00 [12:37:13]MH_I2C_Read... [12:37:13]Read from MH i2c: E2 0E 00 57 DD 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 B7 [12:37:13]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:37:13]wFMCommunicate OK [12:37:13]SAM_PROTO_GetShiftState done [12:37:13]FM_GetShiftState done [12:37:13]opened in 1729383220 [12:37:13]opened+sec_in_day 1729469620 [12:37:13]quantity*price = 371519 [12:37:13]sum+1 = 371520 [12:37:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 3715.00 Внесено: 4000.00 СДАЧА: 285.00 НСП 1% : 32.88 НДС 12% : 394.53 Наличными: 3715.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 193 20.10.2024 12:37 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69348 ФПД: 102505673678002 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T123723&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69348&fm=102505673678002&tin=02508201610067®Number=0000000000156251&sum=371500 [12:37:14]StoreToDocumentArchive [12:37:14]shift 193 fd 69348 [12:37:14]save to /storage/0193/doc_00069348 [12:37:14]save last doc name /storage/0193/doc_00069348 to /storage/kkm_last_doc_name [12:37:14]save OK [12:37:14]Clear old archive folders... [12:37:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:37:14]tlvbuf is 007F1C50 [12:37:14]SAM_PROTO_ClearQueue [12:37:14]wFMCommunicate request_size=4 [12:37:14]MH_SAM_APDU [12:37:14]CAPDU: 80 09 00 00 [12:37:14]Write to MH i2c: E2 08 00 64 DD 80 09 00 00 00 00 00 00 B3 [12:37:14]Write i2c OK [12:37:14]MH_I2C_Read... [12:37:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:37:14]Read from MH i2c: E2 [12:37:14]MH_I2C_Read... [12:37:14]Read from MH i2c: E2 03 00 [12:37:14]MH_I2C_Read... [12:37:14]Read from MH i2c: E2 03 00 64 DD 00 90 00 B5 [12:37:14]RAPDU: 90 00 [12:37:14]wFMCommunicate OK [12:37:14]SAM_PROTO_ClearQueue done [12:37:14]KKMCreateOFDPacket [12:37:14]OFDProtocolAddRootSTLVToBuf [12:37:14]FM_MakeSignedData [12:37:14]FM_MakeSignedData [12:37:14]SAM_PROTO_SignData [12:37:14]wFMCommunicate request_size=4 [12:37:14]MH_SAM_APDU [12:37:14]CAPDU: 80 0D 01 02 [12:37:14]Write to MH i2c: E2 08 00 65 DD 80 0D 01 02 00 00 00 00 BB [12:37:14]Write i2c OK [12:37:14]MH_I2C_Read... [12:37:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:37:14]Read from MH i2c: E2 [12:37:14]MH_I2C_Read... [12:37:14]Read from MH i2c: E2 03 00 [12:37:14]MH_I2C_Read... [12:37:14]Read from MH i2c: E2 03 00 65 DD 00 90 00 B6 [12:37:14]RAPDU: 90 00 [12:37:14]wFMCommunicate OK [12:37:14]wFMCommunicate request_size=255 [12:37:14]MH_SAM_APDU [12:37:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 96 C3 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 3F AB 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C AB 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 9A 00 00 00 00 07 04 06 00 2C AB 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 83 F9 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E4 0E 01 00 35 04 06 00 5D [12:37:14]Write to MH i2c: E2 02 01 66 DD 80 0D 02 02 FA 00 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 96 C3 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 3F AB 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C AB 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 9A 00 00 00 00 07 04 06 00 2C AB 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 83 F9 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E4 0E 01 00 35 04 06 00 5D 00 00 3F [12:37:14]Write i2c OK [12:37:14]MH_I2C_Read... [12:37:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:15]Read from MH i2c: E2 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: E2 03 00 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: E2 03 00 66 DD 00 90 00 B7 [12:37:15]RAPDU: 90 00 [12:37:15]wFMCommunicate OK [12:37:15]wFMCommunicate request_size=10 [12:37:15]MH_SAM_APDU [12:37:15]CAPDU: 80 0D 02 02 05 3A 76 44 5C B2 [12:37:15]Write to MH i2c: E2 0D 00 67 DD 80 0D 02 02 05 00 3A 76 44 5C B2 00 00 CA [12:37:15]Write i2c OK [12:37:15]MH_I2C_Read... [12:37:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:15]Read from MH i2c: E2 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: E2 03 00 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: E2 03 00 67 DD 00 90 00 B8 [12:37:15]RAPDU: 90 00 [12:37:15]wFMCommunicate OK [12:37:15]wFMCommunicate request_size=4 [12:37:15]MH_SAM_APDU [12:37:15]CAPDU: 80 0D 03 02 [12:37:15]Write to MH i2c: E2 08 00 68 DD 80 0D 03 02 00 00 00 00 C0 [12:37:15]Write i2c OK [12:37:15]MH_I2C_Read... [12:37:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:37:15]Read from MH i2c: E2 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: E2 0B 00 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: E2 0B 00 68 DD 00 6D 93 90 C8 E6 EE 95 1F 90 00 A1 [12:37:15]RAPDU: 6D 93 90 C8 E6 EE 95 1F 90 00 [12:37:15]wFMCommunicate OK [12:37:15]SAM_PROTO_SignData done [12:37:15]FM_MakeSignedData done [12:37:15]CreateOFDProtocolMessage [12:37:15]wFMCommunicate request_size=4 [12:37:15]MH_SAM_APDU [12:37:15]CAPDU: 80 11 00 00 [12:37:15]Write to MH i2c: E2 08 00 69 DD 80 11 00 00 00 00 00 00 C0 [12:37:15]Write i2c OK [12:37:15]MH_I2C_Read... [12:37:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:15]Read from MH i2c: E2 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: E2 17 00 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: E2 17 00 69 DD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 12 [12:37:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:37:15]wFMCommunicate OK [12:37:15]CreateOFDProtocolMessage done [12:37:15]OFDSenderStorePacket 69348 [12:37:15]StoreOFDPacket docnum=69348 [12:37:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 4C A9 07 01 63 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 96 C3 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 3F AB 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C AB 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 9A 00 00 00 00 07 04 06 00 2C AB 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 83 F9 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E4 0E 01 00 35 04 06 00 5D 3A 76 44 5C B2 6D 93 90 C8 E6 EE 95 1F [12:37:15]CheckFolder [12:37:15]dirname=/storage/ofd_packets [12:37:15]CheckFolder done [12:37:15]ProducePacketName [12:37:15]name=ofd_packets/00069348 [12:37:15]NVStorageSaveData ofd_packets/00069348 [12:37:15]File name is /storage/ofd_packets/00069348 [12:37:15]Write 301 bytes [12:37:15]NVStorageSaveData done [12:37:15]OFDSenderStorePacket done [12:37:15]KKMCreateOFDPacket done [12:37:15]NVStorageSaveData kkm_last_timestamp [12:37:15]File name is /storage/kkm_last_timestamp [12:37:15]Write 4 bytes [12:37:15]NVStorageSaveData done [12:37:15]ExternCall_PrintAddStr [12:37:15]wPrintStart [12:37:15]Write to MH i2c: 01 00 00 6A DD 47 [12:37:15]Write i2c OK [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: 01 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: 01 07 00 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: 01 07 00 6A DD 00 00 00 00 00 FF 0F 5C [12:37:15]RasterBufferAndPrint [12:37:15]line Счет N : (1)2885067 [12:37:15]line ИНН: 02508201610067 [12:37:15]line Контрольно-Кассовый Чек [12:37:15]line ПРОДАЖА [12:37:15]line ТРК (МРК, ГНК) : 13 [12:37:15]line Товар: 2710124500 [12:37:15]line Аи-95-К-5 [12:37:15]line 50.070 * 74.20 [12:37:15]line = 3715.19 [12:37:15]line НДС 12% НСП 1% [12:37:15]line > о реализуемом товаре [12:37:15]line ОКРУГЛЕНИЕ: -0.19 [12:37:15]line ИТОГО: 3715.00 [12:37:15]line Внесено: 4000.00 [12:37:15]line СДАЧА: 285.00 [12:37:15]line НСП 1% : 32.88 [12:37:15]line НДС 12% : 394.53 [12:37:15]line Наличными: 3715.00 [12:37:15]line Безнал.: 0.00 [12:37:15]line Место: АЗС № 85 "Партнер Нефть" [12:37:15]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:37:15]line СНО: Общий режим [12:37:15]line Чек 193 20.10.2024 12:37 [12:37:15]line Смена: 193 ФФД: 1.0 [12:37:15]line ЗНМ: 0300000167 [12:37:15]line РНМ: 0000000000156251 [12:37:15]line Версия ККМ: v1.0 [12:37:15]line ФМ: 0000000000963346 [12:37:15]line ФД: 69348 [12:37:15]line ФПД: 102505673678002 [12:37:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T123723&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69348&fm=102505673678002&tin=02508201610067®Number=0000000000156251&sum=371500 [12:37:15]OFD Sender: Processing packet 69348 [packets to send 18, broken 17] [12:37:15]ProducePacketName [12:37:15]name=ofd_packets/00069348 [12:37:15]OFD Sender: To server: pG, [12:37:15]CommunicateWithHost lk.salyk.kg:30040 [12:37:15]ConnectInit lk.salyk.kg [12:37:15]written 0, free lines is 4095 [12:37:15]Connected sock=10 [12:37:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 4C A9 07 01 63 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 96 C3 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 3F AB 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C AB 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 9A 00 00 00 00 07 04 06 00 2C AB 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 83 F9 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E4 0E 01 00 35 04 06 00 5D 3A 76 44 5C B2 6D 93 90 C8 E6 EE 95 1F [12:37:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 3A 8A 47 00 72 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E4 0E 01 00 F4 03 04 00 2A A3 14 67 B6 04 01 00 00 39 3A 47 A3 9B 88 4C A8 [12:37:15]CommunicateWithHost err = 0 [12:37:15]CheckOFDResponse [12:37:15]1017 (14) - 77093643461234 [12:37:15]1041 (16) - 0000000000963346 [12:37:15]1040 (4) - 69348 [12:37:15]1012 (4) - 20.10.2024 06:28 [12:37:15]1206 (1) - 0 [12:37:15]OFD Sender: Remove packet 69348 [12:37:15]ProducePacketName [12:37:15]name=ofd_packets/00069348 [12:37:15]NVStorageDeleteData [12:37:15]Write to MH i2c: 01 00 00 95 DD 72 [12:37:15]Write i2c OK [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: 01 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: 01 07 00 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: 01 07 00 95 DD 00 00 00 00 00 EB 0C 70 [12:37:15]RasterBufferAndPrint [12:37:15]line [12:37:15]line [12:37:15]line [12:37:15]line [12:37:15]line [12:37:15]written 0, free lines is 3313 [12:37:15]MH_Cut [12:37:15]Write to MH i2c: D1 01 00 9C DD 01 4B [12:37:15]Write i2c OK [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: D1 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: D1 01 00 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: D1 01 00 9C DD 00 4A [12:37:15]Write to MH i2c: 01 00 00 9D DD 7A [12:37:15]Write i2c OK [12:37:15]MH_I2C_Read... [12:37:16]OFD Sender: No OFD packet to send [12:37:16]*** Cut start [12:37:16]*** Partial cut [12:37:16]*** CUTSNS_PIN = 1 [12:37:16]*** CUTSNS_PIN = 0 [12:37:16]*** Brake cut motor [12:37:17]Read from MH i2c: 01 [12:37:17]MH_I2C_Read... [12:37:17]*** Stop cut motor [12:37:17]*** Cut end [12:37:17]Read from MH i2c: 01 07 00 [12:37:17]MH_I2C_Read... [12:37:17]Read from MH i2c: 01 07 00 9D DD 00 00 00 00 00 FF 0F 8F [12:37:17]process_action close_receipt done [12:37:17]requested_data is exist [12:37:17]produce_requested_data [12:37:17]requested_item fm.sn is exist - process it [12:37:17]wFMCommunicate request_size=4 [12:37:17]MH_SAM_APDU [12:37:17]CAPDU: 80 11 00 00 [12:37:17]Write to MH i2c: E2 08 00 9E DD 80 11 00 00 00 00 00 00 F5 [12:37:17]Write i2c OK [12:37:17]MH_I2C_Read... [12:37:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:17]Read from MH i2c: E2 [12:37:17]MH_I2C_Read... [12:37:17]Read from MH i2c: E2 17 00 [12:37:17]MH_I2C_Read... [12:37:17]Read from MH i2c: E2 17 00 9E DD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 47 [12:37:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:37:17]wFMCommunicate OK [12:37:17]requested_item fd.num is exist - process it [12:37:17]SAM_PROTO_GetFieldsCounters [12:37:17]wFMCommunicate request_size=4 [12:37:17]MH_SAM_APDU [12:37:17]CAPDU: 80 13 00 00 [12:37:17]Write to MH i2c: E2 08 00 9F DD 80 13 00 00 00 00 00 00 F8 [12:37:17]Write i2c OK [12:37:17]MH_I2C_Read... [12:37:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:37:17]Read from MH i2c: E2 [12:37:17]MH_I2C_Read... [12:37:17]Read from MH i2c: E2 62 00 [12:37:17]MH_I2C_Read... [12:37:17]Read from MH i2c: E2 62 00 9F DD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E4 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [12:37:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E4 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:37:17]wFMCommunicate OK [12:37:17]SAM_PROTO_GetFieldsCounters done [12:37:17]requested_item shift.num is exist - process it [12:37:17]requested_item shift.opened is exist - process it [12:37:17]req_shift_opened [12:37:17]FM_GetShiftState [12:37:17]SAM_PROTO_GetShiftState [12:37:17]wFMCommunicate request_size=4 [12:37:17]MH_SAM_APDU [12:37:17]CAPDU: 80 13 01 00 [12:37:17]Write to MH i2c: E2 08 00 A0 DD 80 13 01 00 00 00 00 00 FA [12:37:17]Write i2c OK [12:37:17]MH_I2C_Read... [12:37:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:17]Read from MH i2c: E2 [12:37:17]MH_I2C_Read... [12:37:17]Read from MH i2c: E2 0E 00 [12:37:17]MH_I2C_Read... [12:37:17]Read from MH i2c: E2 0E 00 A0 DD 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 00 [12:37:17]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:37:17]wFMCommunicate OK [12:37:17]SAM_PROTO_GetShiftState done [12:37:17]FM_GetShiftState done [12:37:17]req_shift_opened done [12:37:17]requested_item shift.open_date is exist - process it [12:37:17]req_shift_open_date [12:37:17]req_shift_open_date done [12:37:17]produce_requested_data done [12:37:17]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69348,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [12:37:17]process_action_free close_receipt [12:37:17]json_value_free [12:37:17]json_value_free done [12:37:17]process_json_proto returns [12:37:17]Send response to host [12:37:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69348,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [12:37:17]free response buf [12:37:17]execute_script done [12:37:17]execute_script returns [12:37:17]free content buf [12:37:17]Sock 9.Close socket [12:37:17]Sock 9.Thread stoped [12:37:21]OFD Sender: No OFD packet to send [12:37:26]OFD Sender: No OFD packet to send [12:37:31]OFD Sender: No OFD packet to send [12:37:36]OFD Sender: No OFD packet to send [12:37:41]OFD Sender: No OFD packet to send [12:37:46]OFD Sender: No OFD packet to send [12:37:51]OFD Sender: No OFD packet to send [12:37:56]OFD Sender: No OFD packet to send [12:38:01]OFD Sender: No OFD packet to send [12:38:06]OFD Sender: No OFD packet to send [12:38:11]OFD Sender: No OFD packet to send [12:38:16]OFD Sender: No OFD packet to send [12:38:21]OFD Sender: No OFD packet to send [12:38:26]OFD Sender: No OFD packet to send [12:38:31]OFD Sender: No OFD packet to send [12:38:36]OFD Sender: No OFD packet to send [12:38:41]OFD Sender: No OFD packet to send [12:38:46]OFD Sender: No OFD packet to send [12:38:51]OFD Sender: No OFD packet to send [12:38:56]OFD Sender: No OFD packet to send [12:39:01]OFD Sender: No OFD packet to send [12:39:06]OFD Sender: No OFD packet to send [12:39:11]OFD Sender: No OFD packet to send [12:39:16]OFD Sender: No OFD packet to send [12:39:21]OFD Sender: No OFD packet to send [12:39:26]OFD Sender: No OFD packet to send [12:39:31]OFD Sender: No OFD packet to send [12:39:36]OFD Sender: No OFD packet to send [12:39:41]OFD Sender: No OFD packet to send [12:39:46]OFD Sender: No OFD packet to send [12:39:51]OFD Sender: No OFD packet to send [12:39:56]OFD Sender: No OFD packet to send [12:40:01]OFD Sender: No OFD packet to send [12:40:06]OFD Sender: No OFD packet to send [12:40:11]OFD Sender: No OFD packet to send [12:40:16]OFD Sender: No OFD packet to send [12:40:21]OFD Sender: No OFD packet to send [12:40:26]OFD Sender: No OFD packet to send [12:40:31]OFD Sender: No OFD packet to send [12:40:36]OFD Sender: No OFD packet to send [12:40:41]OFD Sender: No OFD packet to send [12:40:46]OFD Sender: No OFD packet to send [12:40:51]OFD Sender: No OFD packet to send [12:40:56]OFD Sender: No OFD packet to send [12:41:01]OFD Sender: No OFD packet to send [12:41:06]OFD Sender: No OFD packet to send [12:41:11]OFD Sender: No OFD packet to send [12:41:16]OFD Sender: No OFD packet to send [12:41:21]OFD Sender: No OFD packet to send [12:41:26]OFD Sender: No OFD packet to send [12:41:31]OFD Sender: No OFD packet to send [12:41:36]OFD Sender: No OFD packet to send [12:41:41]OFD Sender: No OFD packet to send [12:41:46]OFD Sender: No OFD packet to send [12:41:51]OFD Sender: No OFD packet to send [12:41:56]OFD Sender: No OFD packet to send [12:41:59]accept exits with 8 [12:41:59]New connection [12:41:59]New thread 3067260260 created [12:41:59]Thread 3067116900 joined [12:41:59]Waiting for new connection... [12:41:59] Sock 8.Parse request [12:41:59]Sock 8.Check first char [12:41:59]Sock 8.First char is OK [12:41:59]request: POST /json_proto HTTP/1.0 [12:41:59]Method: POST [12:41:59]URL: /json_proto [12:41:59]Method is POST - this is cgi request [12:41:59]url: /json_proto [12:41:59]query_string will be loaded in cgi processing [12:41:59]execute_cgi json_proto POST (null) [12:41:59]execute_cgi path=json_proto method=POST [12:41:59]POST find Content-Length [12:41:59]Host: 172.17.50.3:8080 [12:41:59]Content-Length: 680 [12:41:59]Content-Type: application/json [12:41:59] [12:41:59]POST finish read [12:41:59]Found Content-Length = 680 [12:41:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:59]execute_script... [12:41: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)2885069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:59]POST & json_proto [12:41:59]process_json_proto [12:41:59]json parsed OK: [12:41:59]protocol is kg_v1.0 [12:41:59]action value=close_receipt [12:41:59]process_action close_receipt [12:41:59]cmd_close_receipt [12:41:59]MH_GetDate [12:41:59]Write to MH i2c: F0 00 00 A1 DD 6D [12:41:59]Write i2c OK [12:41:59]MH_I2C_Read... [12:41:59]Read from MH i2c: F0 [12:41:59]MH_I2C_Read... [12:41:59]Read from MH i2c: F0 09 00 [12:41:59]MH_I2C_Read... [12:41:59]Read from MH i2c: F0 09 00 A1 DD 00 A1 FA 14 67 6B 98 1E 66 13 [12:41:59]GetLastDocTimeStamp 1729427843 [12:41:59]current date 1729428129 [12:41:59]FM_GetShiftState [12:41:59]SAM_PROTO_GetShiftState [12:41:59]wFMCommunicate request_size=4 [12:41:59]MH_SAM_APDU [12:41:59]CAPDU: 80 13 01 00 [12:41:59]Write to MH i2c: E2 08 00 A2 DD 80 13 01 00 00 00 00 00 FC [12:41:59]Write i2c OK [12:41:59]MH_I2C_Read... [12:41:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:59]Read from MH i2c: E2 [12:41:59]MH_I2C_Read... [12:41:59]Read from MH i2c: E2 0E 00 [12:41:59]MH_I2C_Read... [12:41:59]Read from MH i2c: E2 0E 00 A2 DD 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 02 [12:41:59]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:41:59]wFMCommunicate OK [12:41:59]SAM_PROTO_GetShiftState done [12:41:59]FM_GetShiftState done [12:41:59]opened in 1729383220 [12:41:59]opened+sec_in_day 1729469620 [12:41:59]quantity*price = 100050 [12:41:59]sum+1 = 100052 [12:41:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 194 20.10.2024 12:42 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69349 ФПД: 232241201397363 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T124209&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69349&fm=232241201397363&tin=02508201610067®Number=0000000000156251&sum=100000 [12:42:00]StoreToDocumentArchive [12:42:00]shift 193 fd 69349 [12:42:00]save to /storage/0193/doc_00069349 [12:42:00]save last doc name /storage/0193/doc_00069349 to /storage/kkm_last_doc_name [12:42:00]save OK [12:42:00]Clear old archive folders... [12:42:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:42:00]tlvbuf is 005D6D90 [12:42:00]SAM_PROTO_ClearQueue [12:42:00]wFMCommunicate request_size=4 [12:42:00]MH_SAM_APDU [12:42:00]CAPDU: 80 09 00 00 [12:42:00]Write to MH i2c: E2 08 00 AF DD 80 09 00 00 00 00 00 00 FE [12:42:00]Write i2c OK [12:42:00]MH_I2C_Read... [12:42:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:42:00]Read from MH i2c: E2 [12:42:00]MH_I2C_Read... [12:42:00]Read from MH i2c: E2 03 00 [12:42:00]MH_I2C_Read... [12:42:00]Read from MH i2c: E2 03 00 AF DD 00 90 00 00 [12:42:00]RAPDU: 90 00 [12:42:00]wFMCommunicate OK [12:42:00]SAM_PROTO_ClearQueue done [12:42:00]KKMCreateOFDPacket [12:42:00]OFDProtocolAddRootSTLVToBuf [12:42:00]FM_MakeSignedData [12:42:00]FM_MakeSignedData [12:42:00]SAM_PROTO_SignData [12:42:00]wFMCommunicate request_size=4 [12:42:00]MH_SAM_APDU [12:42:00]CAPDU: 80 0D 01 02 [12:42:00]Write to MH i2c: E2 08 00 B0 DD 80 0D 01 02 00 00 00 00 06 [12:42:00]Write i2c OK [12:42:00]MH_I2C_Read... [12:42:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:42:00]Read from MH i2c: E2 [12:42:00]MH_I2C_Read... [12:42:00]Read from MH i2c: E2 03 00 [12:42:00]MH_I2C_Read... [12:42:00]Read from MH i2c: E2 03 00 B0 DD 00 90 00 01 [12:42:00]RAPDU: 90 00 [12:42:00]wFMCommunicate OK [12:42:00]wFMCommunicate request_size=255 [12:42:00]MH_SAM_APDU [12:42: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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 A1 FA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E5 0E 01 00 35 04 06 00 D3 38 DE 4F [12:42:00]Write to MH i2c: E2 02 01 B1 DD 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 A1 FA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E5 0E 01 00 35 04 06 00 D3 38 DE 4F 00 00 4A [12:42:00]Write i2c OK [12:42:00]MH_I2C_Read... [12:42:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:00]Read from MH i2c: E2 [12:42:00]MH_I2C_Read... [12:42:00]Read from MH i2c: E2 03 00 [12:42:00]MH_I2C_Read... [12:42:00]Read from MH i2c: E2 03 00 B1 DD 00 90 00 02 [12:42:00]RAPDU: 90 00 [12:42:00]wFMCommunicate OK [12:42:00]wFMCommunicate request_size=7 [12:42:00]MH_SAM_APDU [12:42:00]CAPDU: 80 0D 02 02 02 BE 73 [12:42:00]Write to MH i2c: E2 0A 00 B2 DD 80 0D 02 02 02 00 BE 73 00 00 3E [12:42:00]Write i2c OK [12:42:00]MH_I2C_Read... [12:42:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:00]Read from MH i2c: E2 [12:42:00]MH_I2C_Read... [12:42:00]Read from MH i2c: E2 03 00 [12:42:00]MH_I2C_Read... [12:42:00]Read from MH i2c: E2 03 00 B2 DD 00 90 00 03 [12:42:00]RAPDU: 90 00 [12:42:00]wFMCommunicate OK [12:42:00]wFMCommunicate request_size=4 [12:42:00]MH_SAM_APDU [12:42:00]CAPDU: 80 0D 03 02 [12:42:00]Write to MH i2c: E2 08 00 B3 DD 80 0D 03 02 00 00 00 00 0B [12:42:00]Write i2c OK [12:42:00]MH_I2C_Read... [12:42:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:42:00]Read from MH i2c: E2 [12:42:00]MH_I2C_Read... [12:42:00]Read from MH i2c: E2 0B 00 [12:42:00]MH_I2C_Read... [12:42:00]Read from MH i2c: E2 0B 00 B3 DD 00 74 92 C9 AE D8 72 16 7C 90 00 65 [12:42:00]RAPDU: 74 92 C9 AE D8 72 16 7C 90 00 [12:42:00]wFMCommunicate OK [12:42:00]SAM_PROTO_SignData done [12:42:00]FM_MakeSignedData done [12:42:00]CreateOFDProtocolMessage [12:42:00]wFMCommunicate request_size=4 [12:42:00]MH_SAM_APDU [12:42:00]CAPDU: 80 11 00 00 [12:42:00]Write to MH i2c: E2 08 00 B4 DD 80 11 00 00 00 00 00 00 0B [12:42:00]Write i2c OK [12:42:00]MH_I2C_Read... [12:42:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:00]Read from MH i2c: E2 [12:42:00]MH_I2C_Read... [12:42:00]Read from MH i2c: E2 17 00 [12:42:00]MH_I2C_Read... [12:42:00]Read from MH i2c: E2 17 00 B4 DD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5D [12:42:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:42:00]wFMCommunicate OK [12:42:00]CreateOFDProtocolMessage done [12:42:00]OFDSenderStorePacket 69349 [12:42:00]StoreOFDPacket docnum=69349 [12:42:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 EF 59 04 01 7F 83 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 A1 FA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E5 0E 01 00 35 04 06 00 D3 38 DE 4F BE 73 74 92 C9 AE D8 72 16 7C [12:42:00]CheckFolder [12:42:00]dirname=/storage/ofd_packets [12:42:00]CheckFolder done [12:42:00]ProducePacketName [12:42:00]name=ofd_packets/00069349 [12:42:00]NVStorageSaveData ofd_packets/00069349 [12:42:00]File name is /storage/ofd_packets/00069349 [12:42:00]Write 298 bytes [12:42:00]NVStorageSaveData done [12:42:00]OFDSenderStorePacket done [12:42:00]KKMCreateOFDPacket done [12:42:00]NVStorageSaveData kkm_last_timestamp [12:42:00]File name is /storage/kkm_last_timestamp [12:42:00]Write 4 bytes [12:42:00]NVStorageSaveData done [12:42:00]ExternCall_PrintAddStr [12:42:00]wPrintStart [12:42:00]Write to MH i2c: 01 00 00 B5 DD 92 [12:42:00]Write i2c OK [12:42:00]MH_I2C_Read... [12:42:00]Read from MH i2c: 01 [12:42:00]MH_I2C_Read... [12:42:00]Read from MH i2c: 01 07 00 [12:42:00]MH_I2C_Read... [12:42:00]Read from MH i2c: 01 07 00 B5 DD 00 00 00 00 00 FF 0F A7 [12:42:00]RasterBufferAndPrint [12:42:00]line Счет N : (1)2885069 [12:42:00]line ИНН: 02508201610067 [12:42:00]line Контрольно-Кассовый Чек [12:42:00]line ПРОДАЖА [12:42:00]line ТРК (МРК, ГНК) : 51 [12:42:00]line Товар: 2710194210 [12:42:00]line ДТ-К-5 [12:42:00]line 13.130 * 76.20 [12:42:00]line = 1000.51 [12:42:00]line НДС 12% НСП 1% [12:42:00]line > о реализуемом товаре [12:42:00]line ОКРУГЛЕНИЕ: -0.51 [12:42:00]line ИТОГО: 1000.00 [12:42:00]line Внесено: 1000.00 [12:42:00]line СДАЧА: 0.00 [12:42:00]line НСП 1% : 8.85 [12:42:00]line НДС 12% : 106.25 [12:42:00]line Наличными: 1000.00 [12:42:00]line Безнал.: 0.00 [12:42:00]line Место: АЗС № 85 "Партнер Нефть" [12:42:00]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:42:00]line СНО: Общий режим [12:42:00]line Чек 194 20.10.2024 12:42 [12:42:00]line Смена: 193 ФФД: 1.0 [12:42:00]line ЗНМ: 0300000167 [12:42:00]line РНМ: 0000000000156251 [12:42:00]line Версия ККМ: v1.0 [12:42:00]line ФМ: 0000000000963346 [12:42:00]line ФД: 69349 [12:42:00]line ФПД: 232241201397363 [12:42:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T124209&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69349&fm=232241201397363&tin=02508201610067®Number=0000000000156251&sum=100000 [12:42:01]OFD Sender: Processing packet 69349 [packets to send 18, broken 17] [12:42:01]ProducePacketName [12:42:01]name=ofd_packets/00069349 [12:42:01]OFD Sender: To server: pG, [12:42:01]CommunicateWithHost lk.salyk.kg:30040 [12:42:01]ConnectInit lk.salyk.kg [12:42:01]written 0, free lines is 4095 [12:42:01]Connected sock=10 [12:42:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 EF 59 04 01 7F 83 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 A1 FA 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E5 0E 01 00 35 04 06 00 D3 38 DE 4F BE 73 74 92 C9 AE D8 72 16 7C [12:42:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 05 CD 47 00 32 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E5 0E 01 00 F4 03 04 00 48 A4 14 67 B6 04 01 00 00 1A 09 BF 16 4D A1 21 D8 [12:42:01]CommunicateWithHost err = 0 [12:42:01]CheckOFDResponse [12:42:01]1017 (14) - 77093643461234 [12:42:01]1041 (16) - 0000000000963346 [12:42:01]1040 (4) - 69349 [12:42:01]1012 (4) - 20.10.2024 06:33 [12:42:01]1206 (1) - 0 [12:42:01]OFD Sender: Remove packet 69349 [12:42:01]ProducePacketName [12:42:01]name=ofd_packets/00069349 [12:42:01]NVStorageDeleteData [12:42:01]Write to MH i2c: 01 00 00 E0 DD BD [12:42:01]Write i2c OK [12:42:01]MH_I2C_Read... [12:42:01]Read from MH i2c: 01 [12:42:01]MH_I2C_Read... [12:42:01]Read from MH i2c: 01 07 00 [12:42:01]MH_I2C_Read... [12:42:01]Read from MH i2c: 01 07 00 E0 DD 00 00 00 00 00 EA 0C BA [12:42:01]RasterBufferAndPrint [12:42:01]line [12:42:01]line [12:42:01]line [12:42:01]line [12:42:01]line [12:42:01]written 0, free lines is 3315 [12:42:01]MH_Cut [12:42:01]Write to MH i2c: D1 01 00 E7 DD 01 96 [12:42:01]Write i2c OK [12:42:01]MH_I2C_Read... [12:42:01]Read from MH i2c: D1 [12:42:01]MH_I2C_Read... [12:42:01]Read from MH i2c: D1 01 00 [12:42:01]MH_I2C_Read... [12:42:01]Read from MH i2c: D1 01 00 E7 DD 00 95 [12:42:01]Write to MH i2c: 01 00 00 E8 DD C5 [12:42:01]Write i2c OK [12:42:01]MH_I2C_Read... [12:42:02]OFD Sender: No OFD packet to send [12:42:02]*** Cut start [12:42:02]*** Partial cut [12:42:02]*** CUTSNS_PIN = 1 [12:42:02]*** CUTSNS_PIN = 0 [12:42:02]*** Brake cut motor [12:42:03]Read from MH i2c: 01 [12:42:03]MH_I2C_Read... [12:42:03]*** Stop cut motor [12:42:03]*** Cut end [12:42:03]Read from MH i2c: 01 07 00 [12:42:03]MH_I2C_Read... [12:42:03]Read from MH i2c: 01 07 00 E8 DD 00 00 00 00 00 FF 0F DA [12:42:03]process_action close_receipt done [12:42:03]requested_data is exist [12:42:03]produce_requested_data [12:42:03]requested_item fm.sn is exist - process it [12:42:03]wFMCommunicate request_size=4 [12:42:03]MH_SAM_APDU [12:42:03]CAPDU: 80 11 00 00 [12:42:03]Write to MH i2c: E2 08 00 E9 DD 80 11 00 00 00 00 00 00 40 [12:42:03]Write i2c OK [12:42:03]MH_I2C_Read... [12:42:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:03]Read from MH i2c: E2 [12:42:03]MH_I2C_Read... [12:42:03]Read from MH i2c: E2 17 00 [12:42:03]MH_I2C_Read... [12:42:03]Read from MH i2c: E2 17 00 E9 DD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 92 [12:42:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:42:03]wFMCommunicate OK [12:42:03]requested_item fd.num is exist - process it [12:42:03]SAM_PROTO_GetFieldsCounters [12:42:03]wFMCommunicate request_size=4 [12:42:03]MH_SAM_APDU [12:42:03]CAPDU: 80 13 00 00 [12:42:03]Write to MH i2c: E2 08 00 EA DD 80 13 00 00 00 00 00 00 43 [12:42:03]Write i2c OK [12:42:03]MH_I2C_Read... [12:42:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:42:03]Read from MH i2c: E2 [12:42:03]MH_I2C_Read... [12:42:03]Read from MH i2c: E2 62 00 [12:42:03]MH_I2C_Read... [12:42:03]Read from MH i2c: E2 62 00 EA DD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E5 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [12:42:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E5 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:42:03]wFMCommunicate OK [12:42:03]SAM_PROTO_GetFieldsCounters done [12:42:03]requested_item shift.num is exist - process it [12:42:03]requested_item shift.opened is exist - process it [12:42:03]req_shift_opened [12:42:03]FM_GetShiftState [12:42:03]SAM_PROTO_GetShiftState [12:42:03]wFMCommunicate request_size=4 [12:42:03]MH_SAM_APDU [12:42:03]CAPDU: 80 13 01 00 [12:42:03]Write to MH i2c: E2 08 00 EB DD 80 13 01 00 00 00 00 00 45 [12:42:03]Write i2c OK [12:42:03]MH_I2C_Read... [12:42:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:03]Read from MH i2c: E2 [12:42:03]MH_I2C_Read... [12:42:03]Read from MH i2c: E2 0E 00 [12:42:03]MH_I2C_Read... [12:42:03]Read from MH i2c: E2 0E 00 EB DD 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 4B [12:42:03]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:42:03]wFMCommunicate OK [12:42:03]SAM_PROTO_GetShiftState done [12:42:03]FM_GetShiftState done [12:42:03]req_shift_opened done [12:42:03]requested_item shift.open_date is exist - process it [12:42:03]req_shift_open_date [12:42:03]req_shift_open_date done [12:42:03]produce_requested_data done [12:42:03]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69349,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [12:42:03]process_action_free close_receipt [12:42:03]json_value_free [12:42:03]json_value_free done [12:42:03]process_json_proto returns [12:42:03]Send response to host [12:42:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69349,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [12:42:03]free response buf [12:42:03]execute_script done [12:42:03]execute_script returns [12:42:03]free content buf [12:42:03]Sock 8.Close socket [12:42:03]Sock 8.Thread stoped [12:42:07]OFD Sender: No OFD packet to send [12:42:12]OFD Sender: No OFD packet to send [12:42:17]OFD Sender: No OFD packet to send [12:42:22]OFD Sender: No OFD packet to send [12:42:27]OFD Sender: No OFD packet to send [12:42:32]OFD Sender: No OFD packet to send [12:42:37]OFD Sender: No OFD packet to send [12:42:42]OFD Sender: No OFD packet to send [12:42:47]OFD Sender: No OFD packet to send [12:42:52]OFD Sender: No OFD packet to send [12:42:57]OFD Sender: No OFD packet to send [12:43:02]OFD Sender: No OFD packet to send [12:43:07]OFD Sender: No OFD packet to send [12:43:12]OFD Sender: No OFD packet to send [12:43:17]OFD Sender: No OFD packet to send [12:43:22]OFD Sender: No OFD packet to send [12:43:27]OFD Sender: No OFD packet to send [12:43:32]OFD Sender: No OFD packet to send [12:43:37]OFD Sender: No OFD packet to send [12:43:42]OFD Sender: No OFD packet to send [12:43:47]OFD Sender: No OFD packet to send [12:43:52]OFD Sender: No OFD packet to send [12:43:57]OFD Sender: No OFD packet to send [12:44:02]OFD Sender: No OFD packet to send [12:44:07]OFD Sender: No OFD packet to send [12:44:12]OFD Sender: No OFD packet to send [12:44:17]OFD Sender: No OFD packet to send [12:44:22]OFD Sender: No OFD packet to send [12:44:27]OFD Sender: No OFD packet to send [12:44:32]OFD Sender: No OFD packet to send [12:44:37]OFD Sender: No OFD packet to send [12:44:42]OFD Sender: No OFD packet to send [12:44:47]OFD Sender: No OFD packet to send [12:44:52]accept exits with 9 [12:44:52]New connection [12:44:52]New thread 3067116900 created [12:44:52]Thread 3067260260 joined [12:44:52]Waiting for new connection... [12:44:52] Sock 9.Parse request [12:44:52]Sock 9.Check first char [12:44:52]Sock 9.First char is OK [12:44:52]request: POST /json_proto HTTP/1.0 [12:44:52]Method: POST [12:44:52]URL: /json_proto [12:44:52]Method is POST - this is cgi request [12:44:52]url: /json_proto [12:44:52]query_string will be loaded in cgi processing [12:44:52]execute_cgi json_proto POST (null) [12:44:52]execute_cgi path=json_proto method=POST [12:44:52]POST find Content-Length [12:44:52]Host: 172.17.50.3:8080 [12:44:52]Content-Length: 689 [12:44:52]Content-Type: application/json [12:44:52] [12:44:52]POST finish read [12:44:52]Found Content-Length = 689 [12:44:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:44:52]execute_script... [12:44: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)2885071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:44:52]POST & json_proto [12:44:52]process_json_proto [12:44:52]json parsed OK: [12:44:52]protocol is kg_v1.0 [12:44:52]action value=close_receipt [12:44:52]process_action close_receipt [12:44:52]cmd_close_receipt [12:44:52]MH_GetDate [12:44:52]Write to MH i2c: F0 00 00 EC DD B8 [12:44:52]Write i2c OK [12:44:52]MH_I2C_Read... [12:44:52]Read from MH i2c: F0 [12:44:52]MH_I2C_Read... [12:44:52]Read from MH i2c: F0 09 00 [12:44:52]MH_I2C_Read... [12:44:52]Read from MH i2c: F0 09 00 EC DD 00 4E FB 14 67 6B 98 1E 66 0C [12:44:52]GetLastDocTimeStamp 1729428129 [12:44:52]current date 1729428302 [12:44:52]FM_GetShiftState [12:44:52]SAM_PROTO_GetShiftState [12:44:52]wFMCommunicate request_size=4 [12:44:52]MH_SAM_APDU [12:44:52]CAPDU: 80 13 01 00 [12:44:52]Write to MH i2c: E2 08 00 ED DD 80 13 01 00 00 00 00 00 47 [12:44:52]Write i2c OK [12:44:52]MH_I2C_Read... [12:44:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:52]Read from MH i2c: E2 [12:44:52]MH_I2C_Read... [12:44:52]Read from MH i2c: E2 0E 00 [12:44:52]MH_I2C_Read... [12:44:52]Read from MH i2c: E2 0E 00 ED DD 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 4D [12:44:52]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:44:52]wFMCommunicate OK [12:44:52]SAM_PROTO_GetShiftState done [12:44:52]FM_GetShiftState done [12:44:52]opened in 1729383220 [12:44:52]opened+sec_in_day 1729469620 [12:44:52]quantity*price = 150076 [12:44:52]sum+1 = 150078 [12:44:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 195 20.10.2024 12:45 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69350 ФПД: 53413273813751 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T124502&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69350&fm=53413273813751&tin=02508201610067®Number=0000000000156251&sum=150000 [12:44:53]StoreToDocumentArchive [12:44:53]shift 193 fd 69350 [12:44:53]save to /storage/0193/doc_00069350 [12:44:53]save last doc name /storage/0193/doc_00069350 to /storage/kkm_last_doc_name [12:44:53]save OK [12:44:53]Clear old archive folders... [12:44:53]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:44:53]tlvbuf is 008E6360 [12:44:53]SAM_PROTO_ClearQueue [12:44:53]wFMCommunicate request_size=4 [12:44:53]MH_SAM_APDU [12:44:53]CAPDU: 80 09 00 00 [12:44:53]Write to MH i2c: E2 08 00 FA DD 80 09 00 00 00 00 00 00 49 [12:44:53]Write i2c OK [12:44:53]MH_I2C_Read... [12:44:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:44:53]Read from MH i2c: E2 [12:44:53]MH_I2C_Read... [12:44:53]Read from MH i2c: E2 03 00 [12:44:53]MH_I2C_Read... [12:44:53]Read from MH i2c: E2 03 00 FA DD 00 90 00 4B [12:44:53]RAPDU: 90 00 [12:44:53]wFMCommunicate OK [12:44:53]SAM_PROTO_ClearQueue done [12:44:53]KKMCreateOFDPacket [12:44:53]OFDProtocolAddRootSTLVToBuf [12:44:53]FM_MakeSignedData [12:44:53]FM_MakeSignedData [12:44:53]SAM_PROTO_SignData [12:44:53]wFMCommunicate request_size=4 [12:44:53]MH_SAM_APDU [12:44:53]CAPDU: 80 0D 01 02 [12:44:53]Write to MH i2c: E2 08 00 FB DD 80 0D 01 02 00 00 00 00 51 [12:44:53]Write i2c OK [12:44:53]MH_I2C_Read... [12:44:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:44:53]Read from MH i2c: E2 [12:44:53]MH_I2C_Read... [12:44:53]Read from MH i2c: E2 03 00 [12:44:53]MH_I2C_Read... [12:44:53]Read from MH i2c: E2 03 00 FB DD 00 90 00 4C [12:44:53]RAPDU: 90 00 [12:44:53]wFMCommunicate OK [12:44:53]wFMCommunicate request_size=255 [12:44:53]MH_SAM_APDU [12:44:53]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 4E FB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E6 0E 01 [12:44:53]Write to MH i2c: E2 02 01 FC DD 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 4E FB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E6 0E 01 00 00 32 [12:44:53]Write i2c OK [12:44:53]MH_I2C_Read... [12:44:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:53]Read from MH i2c: E2 [12:44:53]MH_I2C_Read... [12:44:53]Read from MH i2c: E2 03 00 [12:44:53]MH_I2C_Read... [12:44:53]Read from MH i2c: E2 03 00 FC DD 00 90 00 4D [12:44:53]RAPDU: 90 00 [12:44:53]wFMCommunicate OK [12:44:53]wFMCommunicate request_size=16 [12:44:53]MH_SAM_APDU [12:44:53]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 30 94 3F 36 42 F7 [12:44:53]Write to MH i2c: E2 13 00 FD DD 80 0D 02 02 0B 00 00 35 04 06 00 30 94 3F 36 42 F7 00 00 1B [12:44:53]Write i2c OK [12:44:53]MH_I2C_Read... [12:44:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:53]Read from MH i2c: E2 [12:44:53]MH_I2C_Read... [12:44:53]Read from MH i2c: E2 03 00 [12:44:53]MH_I2C_Read... [12:44:53]Read from MH i2c: E2 03 00 FD DD 00 90 00 4E [12:44:53]RAPDU: 90 00 [12:44:53]wFMCommunicate OK [12:44:53]wFMCommunicate request_size=4 [12:44:53]MH_SAM_APDU [12:44:53]CAPDU: 80 0D 03 02 [12:44:53]Write to MH i2c: E2 08 00 FE DD 80 0D 03 02 00 00 00 00 56 [12:44:53]Write i2c OK [12:44:53]MH_I2C_Read... [12:44:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:44:53]Read from MH i2c: E2 [12:44:53]MH_I2C_Read... [12:44:53]Read from MH i2c: E2 0B 00 [12:44:53]MH_I2C_Read... [12:44:53]Read from MH i2c: E2 0B 00 FE DD 00 4E B5 18 46 C5 85 98 B0 90 00 4A [12:44:53]RAPDU: 4E B5 18 46 C5 85 98 B0 90 00 [12:44:53]wFMCommunicate OK [12:44:53]SAM_PROTO_SignData done [12:44:53]FM_MakeSignedData done [12:44:53]CreateOFDProtocolMessage [12:44:53]wFMCommunicate request_size=4 [12:44:53]MH_SAM_APDU [12:44:53]CAPDU: 80 11 00 00 [12:44:53]Write to MH i2c: E2 08 00 FF DD 80 11 00 00 00 00 00 00 56 [12:44:53]Write i2c OK [12:44:53]MH_I2C_Read... [12:44:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:53]Read from MH i2c: E2 [12:44:53]MH_I2C_Read... [12:44:53]Read from MH i2c: E2 17 00 [12:44:53]MH_I2C_Read... [12:44:53]Read from MH i2c: E2 17 00 FF DD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A8 [12:44:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:44:53]wFMCommunicate OK [12:44:53]CreateOFDProtocolMessage done [12:44:53]OFDSenderStorePacket 69350 [12:44:53]StoreOFDPacket docnum=69350 [12:44:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 50 90 0D 01 3F 0C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 4E FB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E6 0E 01 00 35 04 06 00 30 94 3F 36 42 F7 4E B5 18 46 C5 85 98 B0 [12:44:53]CheckFolder [12:44:53]dirname=/storage/ofd_packets [12:44:53]CheckFolder done [12:44:53]ProducePacketName [12:44:53]name=ofd_packets/00069350 [12:44:53]NVStorageSaveData ofd_packets/00069350 [12:44:53]File name is /storage/ofd_packets/00069350 [12:44:53]Write 307 bytes [12:44:53]NVStorageSaveData done [12:44:53]OFDSenderStorePacket done [12:44:53]KKMCreateOFDPacket done [12:44:53]NVStorageSaveData kkm_last_timestamp [12:44:53]File name is /storage/kkm_last_timestamp [12:44:53]Write 4 bytes [12:44:53]NVStorageSaveData done [12:44:53]ExternCall_PrintAddStr [12:44:53]wPrintStart [12:44:53]Write to MH i2c: 01 00 00 00 DE DE [12:44:53]OFD Sender: Processing packet 69350 [packets to send 18, broken 17] [12:44:53]ProducePacketName [12:44:53]name=ofd_packets/00069350 [12:44:53]OFD Sender: To server: pG, [12:44:53]CommunicateWithHost lk.salyk.kg:30040 [12:44:53]ConnectInit lk.salyk.kg [12:44:53]Write i2c OK [12:44:53]MH_I2C_Read... [12:44:53]Read from MH i2c: 01 [12:44:53]MH_I2C_Read... [12:44:53]Read from MH i2c: 01 07 00 [12:44:53]MH_I2C_Read... [12:44:53]Read from MH i2c: 01 07 00 00 DE 00 00 00 00 00 FF 0F F3 [12:44:53]RasterBufferAndPrint [12:44:53]line Счет N : (1)2885071 [12:44:53]line ИНН: 02508201610067 [12:44:53]line Контрольно-Кассовый Чек [12:44:53]line ПРОДАЖА [12:44:53]line ТРК (МРК, ГНК) : 31 [12:44:53]line Товар: 2710194240 [12:44:53]line D-ENERGY Дт-К-2 [12:44:53]line 19.440 * 77.20 [12:44:53]line = 1500.77 [12:44:53]line НДС 12% НСП 1% [12:44:53]line > о реализуемом товаре [12:44:53]line ОКРУГЛЕНИЕ: -0.77 [12:44:53]line ИТОГО: 1500.00 [12:44:53]line Внесено: 1500.00 [12:44:53]line СДАЧА: 0.00 [12:44:53]line НСП 1% : 13.28 [12:44:53]line НДС 12% : 159.37 [12:44:53]line Наличными: 1500.00 [12:44:53]line Безнал.: 0.00 [12:44:53]line Место: АЗС № 85 "Партнер Нефть" [12:44:53]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:44:53]line СНО: Общий режим [12:44:53]line Чек 195 20.10.2024 12:45 [12:44:53]line Смена: 193 ФФД: 1.0 [12:44:53]line ЗНМ: 0300000167 [12:44:53]line РНМ: 0000000000156251 [12:44:53]line Версия ККМ: v1.0 [12:44:54]line ФМ: 0000000000963346 [12:44:54]line ФД: 69350 [12:44:54]line ФПД: 53413273813751 [12:44:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T124502&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69350&fm=53413273813751&tin=02508201610067®Number=0000000000156251&sum=150000 [12:44:54]*** FLAG_PRN_PAP1 set [12:44:54]*** FLAG_PRN_PAP2 set [12:44:54]*** FLAG_PRN_PAP2 reset [12:44:54]Connected sock=8 [12:44:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 50 90 0D 01 3F 0C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 4E FB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 *** FLAG_PRN_PAP2 set [12:44:54]00 int [12:44:54]30 Write to MH i2c: 30 01 30 00 30 00 30 02 30 DE 30 E0 30 [12:44:54]30 30 39 36 33 33 34 36 10 04 04 00 E6 Write i2c OK [12:44:54]0E MH_I2C_Read... [12:44:54]01 Read from MH i2c: 00 01 35 [12:44:54]04 MH_I2C_Read... [12:44:54]06 00 Read from MH i2c: 30 01 94 07 3F 36 00 42 [12:44:54]F7 MH_I2C_Read... [12:44:54]4E B5 18 46 C5 Read from MH i2c: 85 01 98 07 B0 00 [12:44:54]02 DE written 0, free lines is 4095 [12:44:54]00 Write to MH i2c: 03 DD 00 9F 00 01 00 02 FF DE 0F 00 F8 00 [12:44:54]00 state=0 [12:44:54]00 No paper [12:44:54]21 Cover opened [12:44:54]00 00 00 40 01 60 06 2F 0C 38 00 C0 D5 7F 03 F0 07 80 E0 C0 7C 03 FC 7F 7F 01 FF 80 7C 07 FF 81 F0 2F 0C 10 00 C0 F6 24 0F FC C0 C3 FC 03 FF FF 80 FF 81 FE 8F 2F 0C 00 00 E0 FF 7F 1E 0E 01 83 1C 01 83 87 81 C1 C1 C1 C1 C0 01 C7 00 07 8C 70 2F 0C 10 00 40 FE 2E 38 06 E0 80 82 03 C3 80 E3 80 E1 03 83 80 00 2F 0C 00 00 20 06 00 70 00 03 C0 01 2F F0 13 00 00 00 1E 38 38 0F 80 FF FE F0 07 01 C0 0F 2F C4 10 00 48 01 11 E0 3F E0 70 0E 00 00 FE 0E 2F C0 13 00 20 FE 01 78 F0 03 80 78 07 E0 03 C1 C1 C1 C1 C1 FF 2F C0 10 00 00 F8 13 70 70 38 80 7F 00 7F 01 07 87 1E 2F C0 10 00 08 F4 11 E0 38 3C 00 07 FF 80 FF 80 03 1C 2F 10 10 00 00 FC 03 3C 1C 0F 01 E3 C1 E3 C0 01 C7 2F F0 10 00 00 FC 10 1F F8 FF F8 1E 1E 03 C1 E3 C1 E0 3C 2F 10 10 00 00 54 10 0F 0E 3C 80 80 38 2F F4 10 00 00 04 00 70 00 38 E0 00 0F 78 2F 00 10 00 20 06 1E 07 03 C0 F0 C3 83 80 78 2F 4C 00 00 40 57 13 38 06 70 80 01 C1 E0 C1 C1 03 83 70 2F CC 10 00 08 FA 0F 1E 0E 78 10 03 0E C3 01 E3 C1 E3 C2 07 81 C7 00 2F CC 00 00 E0 FF 77 0F FC 3F F0 01 81 FF C1 83 FF C0 FF 80 FF 83 FF 00 FE F0 07 FF 2F CC 10 00 00 F0 15 03 F0 0F C0 01 7F 00 7F 00 FC 7C E0 21 EC 3B 00 E8 01 00 00 00 00 00 00 00 00 00 00 00 00 C0 00 03 21 00 00 00 00 00 21 00 00 00 40 01 60 06 int [12:44:54]Write to MH i2c: 00 01 00 00 00 00 EC 03 [12:44:54]DE E1 [12:44:54]*** FLAG_PRN_PAP2 reset [12:44:54]Write i2c OK [12:44:54]MH_I2C_Read... [12:44:54]Write i2c OK [12:44:54]MH_I2C_Read... [12:44:54]Read from MH i2c: 01 [12:44:54]MH_I2C_Read... [12:44:54]Read from MH i2c: 01 [12:44:54]MH_I2C_Read... [12:44:54]Read from MH i2c: 01 07 00 [12:44:54]answer for other command [01] [12:44:54]process_action_free close_receipt [12:44:54]json_value_free [12:44:54]json_value_free done [12:44:54]process_json_proto returns [12:44:54]Send response to host [12:44:54]{"protocol":"kg_v1.0","response":{"error":1039,"error_desc":"CoCPU protocol format"}} [12:44:54]free response buf [12:44:54]execute_script done [12:44:54]execute_script returns [12:44:54]free content buf [12:44:54]Sock 9.Close socket [12:44:54]Sock 9.Thread stoped [12:44:54]Read from MH i2c: 01 07 00 [12:44:54]MH_I2C_Read... [12:44:54]Read from MH i2c: 01 07 00 03 DE 00 01 00 00 00 FF 0F F7 [12:44:54]answer with wrong packet_num DE03 - expected DE04 [12:44:54]MH Int Process stopped [12:44:54]*** FLAG_PRN_PAP2 set [12:44:54]*** FLAG_PRN_PAP2 reset [12:44:54]*** FLAG_PRN_PAP2 set [12:44:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 A2 FC 47 00 85 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 30 39 36 33 33 34 36 10 04 04 00 E6 0E 01 00 F4 03 04 00 F5 A4 14 67 B6 04 01 00 00 57 CB 21 54 CA E6 94 32 [12:44:54]CommunicateWithHost err = 0 [12:44:54]CheckOFDResponse [12:44:54]1017 (14) - 77093643461234 [12:44:54]1041 (16) - 0000000000963346 [12:44:54]1040 (4) - 69350 [12:44:54]1012 (4) - 20.10.2024 06:36 [12:44:54]1206 (1) - 0 [12:44:54]OFD Sender: Remove packet 69350 [12:44:54]ProducePacketName [12:44:54]name=ofd_packets/00069350 [12:44:54]NVStorageDeleteData [12:44:54]*** FLAG_PRN_PAP2 reset [12:44:54]*** FLAG_PRN_PAP2 set [12:44:54]OFD Sender: No OFD packet to send [12:44:55]*** FLAG_PRN_PAP2 reset [12:44:55]*** FLAG_PRN_PAP2 set [12:44:57]*** FLAG_PRN_PAP2 reset [12:44:57]*** FLAG_PRN_PAP1 reset [12:44:57]*** FLAG_PRN_PAP1 set [12:44:57]*** FLAG_PRN_PAP2 set [12:44:59]OFD Sender: No OFD packet to send [12:45:00]*** FLAG_PRN_PAP2 reset [12:45:01]*** FLAG_PRN_PAP2 set [12:45:01]*** FLAG_PRN_PAP2 reset [12:45:01]*** FLAG_PRN_PAP1 reset [12:45:04]OFD Sender: No OFD packet to send [12:45:09]OFD Sender: No OFD packet to send [12:45:14]OFD Sender: No OFD packet to send [12:45:19]OFD Sender: No OFD packet to send [12:45:24]OFD Sender: No OFD packet to send [12:45:29]OFD Sender: No OFD packet to send [12:45:34]OFD Sender: No OFD packet to send [12:45:39]OFD Sender: No OFD packet to send [12:45:44]OFD Sender: No OFD packet to send [12:45:49]OFD Sender: No OFD packet to send [12:45:54]OFD Sender: No OFD packet to send [12:45:59]OFD Sender: No OFD packet to send [12:46:04]OFD Sender: No OFD packet to send [12:46:09]OFD Sender: No OFD packet to send [12:46:14]OFD Sender: No OFD packet to send [12:46:19]OFD Sender: No OFD packet to send [12:46:24]OFD Sender: No OFD packet to send [12:46:29]OFD Sender: No OFD packet to send [12:46:34]OFD Sender: No OFD packet to send [12:46:39]OFD Sender: No OFD packet to send [12:46:44]OFD Sender: No OFD packet to send [12:46:49]OFD Sender: No OFD packet to send [12:46:54]OFD Sender: No OFD packet to send [12:46:59]OFD Sender: No OFD packet to send [12:47:04]OFD Sender: No OFD packet to send [12:47:09]OFD Sender: No OFD packet to send [00:00:08] *** EcrCore started. Build 196 *** [00:00:08]MH_InterfaceInit /dev/i2c-1 [00:00:08]Malloc ok [00:00:08]/dev/ttyS4 opened [00:00:08]MH_GetMetrics [00:00:08]Write to MH i2c: 00 00 00 01 00 00 [00:00:08]Write i2c OK [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: 00 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: 00 29 00 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 08 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 AD [00:00:08]Are we in boot? [00:00:08]We are in boot - try to switch [00:00:08]Write to MH i2c: A0 00 00 02 00 A1 [00:00:08]Write i2c OK [00:00:08]MH_I2C_Read... [00:00:08]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:08]*** [00:00:08]Read from MH i2c: A0 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: A0 01 00 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:08]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:08]*** Waiting for read because exit forced [00:00:08]*** 10 ms more... [00:00:09]*** MH1903S init start (LINUX_LIGHT) [00:00:09]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:09]*** Serial: 3139303353513838 5400000000572508 (1903SQ88T) [00:00:09]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:09]*** step 0: 5000 (2650, 2350 REF) [00:00:09]*** step 1: 4835 (2500, 2335 REF) [00:00:09]*** step 2: 4676 (2440, 2236 REF) [00:00:09]*** step 3: 4523 (2280, 2243 REF) [00:00:09]*** step 4: 4376 (2160, 2216 REF) [00:00:09]*** step 5: 4235 (2050, 2185 REF) [00:00:09]*** step 6: 4098 (1950, 2148 REF) [00:00:09]*** step 7: 3967 (1870, 2097 REF) [00:00:09]*** step 8: 3840 (1828, 2012 REF) [00:00:09]*** step 9: 3719 (1728, 1991 REF) [00:00:09]*** step 10: 3601 (1675, 1926 REF) [00:00:09]*** step 11: 3488 (1635, 1853 REF) [00:00:09]*** step 12: 3379 (1595, 1784 REF) [00:00:09]*** step 13: 3275 (1565, 1710 REF) [00:00:09]*** step 14: 3174 (1543, 1631 REF) [00:00:09]*** step 15: 3077 (1523, 1554 REF) [00:00:09]*** step 16: 2983 (1503, 1480 REF) [00:00:09]*** step 17: 2893 (1486, 1407 REF) [00:00:09]*** step 18: 2806 (1466, 1340 REF) [00:00:09]*** step 19: 2723 (1426, 1297 REF) [00:00:09]*** step 20: 2642 (1406, 1236 REF) [00:00:09]*** step 21: 2565 (1384, 1181 REF) [00:00:09]*** step 22: 2490 (1364, 1126 REF) [00:00:09]*** step 23: 2418 (1344, 1074 REF) [00:00:09]*** step 24: 2349 (1322, 1027 REF) [00:00:09]*** step 25: 2283 (1302, 981 REF) [00:00:09]*** step 26: 2218 (1282, 936 REF) [00:00:09]*** step 27: 2157 (1262, 895 REF) [00:00:09]*** step 28: 2097 (1242, 855 REF) [00:00:09]*** step 29: 2040 (1222, 818 REF) [00:00:09]*** step 30: 1985 (1202, 783 REF) [00:00:09]*** step 31: 1932 (1191, 741 REF) [00:00:09]*** step 32: 1880 (1181, 699 REF) [00:00:09]*** step 33: 1831 (1171, 660 REF) [00:00:09]*** step 34: 1784 (1161, 623 REF) [00:00:09]*** step 35: 1738 (1151, 587 REF) [00:00:09]*** step 36: 1694 (1141, 553 REF) [00:00:09]*** step 37: 1652 (1131, 521 REF) [00:00:09]*** step 38: 1611 (1121, 490 REF) [00:00:09]*** step 39: 1572 (1111, 461 REF) [00:00:09]*** step 40: 1534 (1103, 431 REF) [00:00:09]*** step 41: 1497 (1093, 404 REF) [00:00:09]*** step 42: 1462 (1083, 379 REF) [00:00:09]*** step 43: 1428 (1073, 355 REF) [00:00:09]*** step 44: 1396 (1063, 333 REF) [00:00:09]*** step 45: 1365 (1053, 312 REF) [00:00:09]*** step 46: 1334 (1043, 291 REF) [00:00:09]*** step 47: 1305 (1033, 272 REF) [00:00:09]*** step 48: 1277 (1023, 254 REF) [00:00:09]*** step 49: 1250 (1013, 237 REF) [00:00:09]*** step 50: 1224 (990, 234 REF) [00:00:09]*** step 51: 1199 (980, 219 REF) [00:00:09]*** step 52: 1175 (970, 205 REF) [00:00:09]*** step 53: 1152 (960, 192 REF) [00:00:09]*** step 54: 1130 (950, 180 REF) [00:00:09]*** step 55: 1108 (940, 168 REF) [00:00:09]*** step 56: 1088 (930, 158 REF) [00:00:09]*** step 57: 1068 (920, 148 REF) [00:00:09]*** step 58: 1049 (910, 139 REF) [00:00:09]*** step 59: 1030 (900, 130 REF) [00:00:09]*** step 60: 1012 (890, 122 REF) [00:00:09]*** step 61: 995 (880, 115 REF) [00:00:09]*** step 62: 979 (870, 109 REF) [00:00:09]*** step 63: 963 (860, 103 REF) [00:00:09]*** step 64: 948 (850, 98 REF) [00:00:09]*** step 65: 933 (840, 93 REF) [00:00:09]*** step 66: 919 (830, 89 REF) [00:00:09]*** step 67: 905 (820, 85 REF) [00:00:09]*** step 68: 892 (810, 82 REF) [00:00:09]*** step 69: 879 (800, 79 REF) [00:00:09]*** step 70: 867 (790, 77 REF) [00:00:09]*** step 71: 855 (780, 75 REF) [00:00:09]*** step 72: 844 (770, 74 REF) [00:00:09]*** step 73: 833 (760, 73 REF) [00:00:09]*** step 74: 822 (750, 72 REF) [00:00:09]*** step 75: 812 (740, 72 REF) [00:00:09]*** step 76: 803 (730, 73 REF) [00:00:09]*** step 77: 793 (720, 73 REF) [00:00:09]*** step 78: 784 (710, 74 REF) [00:00:09]*** step 79: 776 (700, 76 REF) [00:00:09]*** step 80: 767 (690, 77 REF) [00:00:09]*** step 81: 759 (680, 79 REF) [00:00:09]*** step 82: 751 (670, 81 REF) [00:00:09]*** step 83: 744 (660, 84 REF) [00:00:09]*** step 84: 737 (650, 87 REF) [00:00:09]*** step 85: 730 (640, 90 REF) [00:00:09]*** step 86: 723 (630, 93 REF) [00:00:09]*** step 87: 717 (620, 97 REF) [00:00:09]*** step 88: 710 (610, 100 REF) [00:00:09]*** step 89: 705 (600, 105 REF) [00:00:09]*** step 90: 699 [00:00:09]*** step 91: 693 [00:00:09]*** step 92: 688 [00:00:09]*** step 93: 683 [00:00:09]*** step 94: 678 [00:00:09]*** step 95: 673 [00:00:09]*** step 96: 669 [00:00:09]*** step 97: 664 [00:00:09]*** step 98: 660 [00:00:09]*** step 99: 656 [00:00:09]*** step 100: 652 [00:00:09]*** step 101: 648 [00:00:09]*** step 102: 644 [00:00:09]*** step 103: 641 [00:00:09]*** step 104: 638 [00:00:09]*** step 105: 634 [00:00:09]*** step 106: 631 [00:00:09]*** step 107: 628 [00:00:09]*** step 108: 625 [00:00:09]*** step 109: 622 [00:00:09]*** step 110: 620 [00:00:09]*** step 111: 617 [00:00:09]*** step 112: 615 [00:00:09]*** step 113: 612 [00:00:09]*** step 114: 610 [00:00:09]*** step 115: 608 [00:00:09]*** step 116: 605 [00:00:09]*** step 117: 603 [00:00:09]*** step 118: 601 [00:00:09]*** step 119: 599 [00:00:09]*** printer: Printer HW initialized [00:00:09]*** initSamCard finished [00:00:09]*** RTC: 16147329+1713281131=1729428460 [00:00:09]*** BPK Status Register BPK_RDY = 0x0 [00:00:09]*** SEN State Register SEN_STATE = 0x200ff [00:00:09]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:09]*** Analog Control Register 0 SEN_ANA0 = 0x33560623 [00:00:09]*** Is cutter blocked? [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 03 00 02 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 08 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 AE [00:00:09]Are we in boot? [00:00:09]We are not in boot now [00:00:09]Write to MH i2c: 01 00 00 04 00 04 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 01 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 01 07 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:09]Model is 3 [00:00:09]MH firmware is 30620 [00:00:09]MH boot firmware is 3 [00:00:09]MH_SetPrinterDots 448 [00:00:09]HeadWidthInBytes 56 [00:00:09]maxmasksize 7 [00:00:09]Write to MH i2c: D6 06 00 05 00 41 00 50 00 FF FF 6F [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: D6 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: D6 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:09]Write to MH i2c: D5 00 00 06 00 DA [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: D5 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: D5 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 07 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 07 00 00 ED FB 14 67 6B 98 1E 66 E9 [12:47:41]Current date/time: 20.10.2024 12:47 [12:47:41]FM_Init [12:47:41]wFMConnect [12:47:41]MH_SAM_On [12:47:41]Write to MH i2c: E0 00 00 08 00 E7 [12:47:41]Write i2c OK [12:47:41]MH_I2C_Read... [12:47:41]*** iso7816_init finished! [12:47:41]*** atr: [12:47:41]*** 0F 3B D5 18 FF 81 91 FE [12:47:41]*** 1F C3 80 73 C8 21 10 0A [12:47:41]*** 00 00 00 00 00 00 00 00 [12:47:41]*** 00 00 00 00 00 00 00 00 [12:47:41]*** 00 00 00 00 00 00 00 00 [12:47:41]*** 00 00 00 00 00 00 00 00 [12:47:41]*** 00 00 00 00 00 00 00 00 [12:47:41]*** 00 00 00 00 00 00 00 00 [12:47:41]Read from MH i2c: E0 [12:47:41]MH_I2C_Read... [12:47:41]Read from MH i2c: E0 10 00 [12:47:41]MH_I2C_Read... [12:47:41]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [12:47:41]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [12:47:41]wFMCommunicate request_size=10 [12:47:41]MH_SAM_APDU [12:47:41]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [12:47:41]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [12:47:41]Write i2c OK [12:47:41]MH_I2C_Read... [12:47:41]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [12:47:41]Read from MH i2c: E2 [12:47:41]MH_I2C_Read... [12:47:41]Read from MH i2c: E2 03 00 [12:47:41]MH_I2C_Read... [12:47:41]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [12:47:41]RAPDU: 90 00 [12:47:41]wFMCommunicate OK [12:47:41]wFMCommunicate request_size=4 [12:47:41]MH_SAM_APDU [12:47:41]CAPDU: 80 11 00 00 [12:47:41]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [12:47:41]Write i2c OK [12:47:41]MH_I2C_Read... [12:47:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:41]Read from MH i2c: E2 [12:47:41]MH_I2C_Read... [12:47:41]Read from MH i2c: E2 17 00 [12:47:41]MH_I2C_Read... [12:47:41]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D6 [12:47:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:47:41]wFMCommunicate OK [12:47:41]Detected FM SN is 0000000000963346 [12:47:41]Stored FM SN is 0000000000963346 [12:47:41]wFMCommunicate request_size=9 [12:47:41]MH_SAM_APDU [12:47:41]CAPDU: 80 16 00 00 04 0B 88 00 00 [12:47:41]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 0B 88 00 00 00 00 25 [12:47:41]Write i2c OK [12:47:41]MH_I2C_Read... [12:47:41]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [12:47:41]Read from MH i2c: E2 [12:47:41]MH_I2C_Read... [12:47:41]Read from MH i2c: E2 03 00 [12:47:41]MH_I2C_Read... [12:47:41]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [12:47:41]RAPDU: 90 00 [12:47:41]wFMCommunicate OK [12:47:41]FM PIN OK [12:47:41]wFMCommunicate request_size=8 [12:47:41]MH_SAM_APDU [12:47:41]CAPDU: 80 14 04 00 03 02 00 01 [12:47:41]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [12:47:41]Write i2c OK [12:47:41]MH_I2C_Read... [12:47:41]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [12:47:41]Read from MH i2c: E2 [12:47:41]MH_I2C_Read... [12:47:41]Read from MH i2c: E2 03 00 [12:47:41]MH_I2C_Read... [12:47:41]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [12:47:41]RAPDU: 90 00 [12:47:41]wFMCommunicate OK [12:47:41]wFMCommunicate request_size=13 [12:47:41]MH_SAM_APDU [12:47:41]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [12:47:41]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [12:47:41]Write i2c OK [12:47:41]MH_I2C_Read... [12:47:41]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [12:47:41]Read from MH i2c: E2 [12:47:41]MH_I2C_Read... [12:47:41]Read from MH i2c: E2 03 00 [12:47:41]MH_I2C_Read... [12:47:41]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [12:47:41]RAPDU: 90 00 [12:47:41]wFMCommunicate OK [12:47:41]wFMCommunicate request_size=4 [12:47:41]MH_SAM_APDU [12:47:41]CAPDU: 80 11 00 00 [12:47:41]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [12:47:41]Write i2c OK [12:47:41]MH_I2C_Read... [12:47:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:41]Read from MH i2c: E2 [12:47:41]MH_I2C_Read... [12:47:41]Read from MH i2c: E2 17 00 [12:47:41]MH_I2C_Read... [12:47:41]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DA [12:47:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:47:41]wFMCommunicate OK [12:47:41]DocumentArchiveInit [12:47:41]Start Httpd... [12:47:41]Httpd thread 3066998116 created [12:47:41]Write to MH i2c: 01 00 00 0F 00 0F [12:47:41]Write i2c OK [12:47:41]MH_I2C_Read... [12:47:41]Read from MH i2c: 01 [12:47:41]MH_I2C_Read... [12:47:41]Read from MH i2c: 01 07 00 [12:47:41]MH_I2C_Read... [12:47:41]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [12:47:41]MH Int Process started [12:47:41]Allocated Socket 6 [12:47:41]Bind OK [12:47:41]Listen OK [12:47:41]httpd running on port 8080 [12:47:41]Waiting for new connection... [12:47:41]OFD Sender: No OFD packet to send [12:47:46]OFD Sender: No OFD packet to send [12:47:48]accept exits with 7 [12:47:48]New connection [12:47:48]New thread 3066711396 created [12:47:48]Waiting for new connection... [12:47:48] Sock 7.Parse request [12:47:48]Sock 7.Check first char [12:47:48]Sock 7.First char is OK [12:47:48]request: POST /json_proto HTTP/1.0 [12:47:48]Method: POST [12:47:48]URL: /json_proto [12:47:48]Method is POST - this is cgi request [12:47:48]url: /json_proto [12:47:48]query_string will be loaded in cgi processing [12:47:48]execute_cgi json_proto POST (null) [12:47:48]execute_cgi path=json_proto method=POST [12:47:48]POST find Content-Length [12:47:48]Host: 172.17.50.3:8080 [12:47:48]Content-Length: 215 [12:47:48]Content-Type: application/json [12:47:48] [12:47:48]POST finish read [12:47:48]Found Content-Length = 215 [12:47: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" ] } } [12:47:48]execute_script... [12:47: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" ] } } [12:47:48]POST & json_proto [12:47:48]process_json_proto [12:47:48]json parsed OK: [12:47:48]protocol is kg_v1.0 [12:47:48]action value=get_value [12:47:48]process_action get_value [12:47:48]cmd_get_value [12:47:48]process_action get_value done [12:47:48]requested_data is exist [12:47:48]produce_requested_data [12:47:48]requested_item kkm.sn is exist - process it [12:47:48]requested_item kkm.ver is exist - process it [12:47:48]requested_item fm.sn is exist - process it [12:47:48]wFMCommunicate request_size=4 [12:47:48]MH_SAM_APDU [12:47:48]CAPDU: 80 11 00 00 [12:47:48]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [12:47:48]Write i2c OK [12:47:48]MH_I2C_Read... [12:47:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:48]Read from MH i2c: E2 [12:47:48]MH_I2C_Read... [12:47:48]Read from MH i2c: E2 17 00 [12:47:48]MH_I2C_Read... [12:47:48]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DC [12:47:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:47:48]wFMCommunicate OK [12:47:48]requested_item fd.num is exist - process it [12:47:48]SAM_PROTO_GetFieldsCounters [12:47:48]wFMCommunicate request_size=4 [12:47:48]MH_SAM_APDU [12:47:48]CAPDU: 80 13 00 00 [12:47:48]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [12:47:48]Write i2c OK [12:47:48]MH_I2C_Read... [12:47:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:48]Read from MH i2c: E2 [12:47:48]MH_I2C_Read... [12:47:48]Read from MH i2c: E2 62 00 [12:47:48]MH_I2C_Read... [12:47:48]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E6 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [12:47:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E6 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:47:48]wFMCommunicate OK [12:47:48]SAM_PROTO_GetFieldsCounters done [12:47:48]requested_item shift.num is exist - process it [12:47:48]requested_item shift.opened is exist - process it [12:47:48]req_shift_opened [12:47:48]FM_GetShiftState [12:47:48]SAM_PROTO_GetShiftState [12:47:48]wFMCommunicate request_size=4 [12:47:48]MH_SAM_APDU [12:47:48]CAPDU: 80 13 01 00 [12:47:48]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [12:47:48]Write i2c OK [12:47:48]MH_I2C_Read... [12:47:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:48]Read from MH i2c: E2 [12:47:48]MH_I2C_Read... [12:47:48]Read from MH i2c: E2 0E 00 [12:47:48]MH_I2C_Read... [12:47:48]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 95 [12:47:48]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:47:48]wFMCommunicate OK [12:47:48]SAM_PROTO_GetShiftState done [12:47:48]FM_GetShiftState done [12:47:48]req_shift_opened done [12:47:48]requested_item shift.open_date is exist - process it [12:47:48]req_shift_open_date [12:47:48]req_shift_open_date done [12:47:48]produce_requested_data done [12:47:48]produce_requested_data return {"kkm.sn":"0300000167","kkm.ver":"v1.0","fm.sn":"0000000000963346","fd.num":69350,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [12:47:48]process_action_free get_value [12:47:48]json_value_free [12:47:48]json_value_free done [12:47:48]process_json_proto returns [12:47:48]Send response to host [12:47:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000167","kkm.ver":"v1.0","fm.sn":"0000000000963346","fd.num":69350,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [12:47:48]free response buf [12:47:48]execute_script done [12:47:48]execute_script returns [12:47:48]free content buf [12:47:48]Sock 7.Close socket [12:47:48]Sock 7.Thread stoped [12:47:48]accept exits with 9 [12:47:48]New connection [12:47:48]New thread 3066568036 created [12:47:48]Thread 3066711396 joined [12:47:48]Waiting for new connection... [12:47:48] Sock 9.Parse request [12:47:48]Sock 9.Check first char [12:47:48]Sock 9.First char is OK [12:47:48]request: POST /json_proto HTTP/1.0 [12:47:48]Method: POST [12:47:48]URL: /json_proto [12:47:48]Method is POST - this is cgi request [12:47:48]url: /json_proto [12:47:48]query_string will be loaded in cgi processing [12:47:48]execute_cgi json_proto POST (null) [12:47:48]execute_cgi path=json_proto method=POST [12:47:48]POST find Content-Length [12:47:48]Host: 172.17.50.3:8080 [12:47:48]Content-Length: 331 [12:47:48]Content-Type: application/json [12:47:48] [12:47:48]POST finish read [12:47:48]Found Content-Length = 331 [12:47:48]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" ] } } [12:47:48]execute_script... [12:47:48]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" ] } } [12:47:48]POST & json_proto [12:47:48]process_json_proto [12:47:48]json parsed OK: [12:47:48]protocol is kg_v1.0 [12:47:48]action value=get_value [12:47:48]process_action get_value [12:47:49]cmd_get_value [12:47:49]process_action get_value done [12:47:49]requested_data is exist [12:47:49]produce_requested_data [12:47:49]requested_item fm.sale.total is exist - process it [12:47:49]SAM_PROTO_GetFMData [12:47:49]wFMCommunicate request_size=4 [12:47:49]MH_SAM_APDU [12:47:49]CAPDU: 80 13 03 00 [12:47:49]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [12:47:49]Write i2c OK [12:47:49]MH_I2C_Read... [12:47:49]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:47:49]Read from MH i2c: E2 [12:47:49]MH_I2C_Read... [12:47:49]Read from MH i2c: E2 FD 00 [12:47:49]MH_I2C_Read... [12:47:49]Read from MH i2c: E2 FD 00 13 00 00 C5 04 85 04 C1 04 6E 04 04 00 64 0D 01 00 69 04 A3 00 6F 04 04 00 2B 0A 01 00 B1 04 05 00 BC A3 2A E0 01 70 04 05 00 A4 E0 2D 56 01 72 04 04 00 18 C3 FC 89 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 10 6C 00 33 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 B2 F9 3F 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 39 03 00 00 B1 04 04 00 98 74 82 11 70 04 04 00 98 74 82 11 72 04 00 00 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 67 0E DC 01 EF 03 09 90 00 99 [12:47:49]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 64 0D 01 00 69 04 A3 00 6F 04 04 00 2B 0A 01 00 B1 04 05 00 BC A3 2A E0 01 70 04 05 00 A4 E0 2D 56 01 72 04 04 00 18 C3 FC 89 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 10 6C 00 33 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 B2 F9 3F 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 39 03 00 00 B1 04 04 00 98 74 82 11 70 04 04 00 98 74 82 11 72 04 00 00 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 67 0E DC 01 EF 03 09 90 00 [12:47:49]wFMCommunicate OK [12:47:49]wFMCommunicate request_size=4 [12:47:49]MH_SAM_APDU [12:47:49]CAPDU: 80 17 00 00 [12:47:49]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [12:47:49]Write i2c OK [12:47:49]MH_I2C_Read... [12:47:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:47:49]Read from MH i2c: E2 [12:47:49]MH_I2C_Read... [12:47:49]Read from MH i2c: E2 FD 00 [12:47:49]MH_I2C_Read... [12:47:49]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 AB 27 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BF [12:47:49]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 AB 27 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:47:49]wFMCommunicate OK [12:47:49]wFMCommunicate request_size=4 [12:47:49]MH_SAM_APDU [12:47:49]CAPDU: 80 17 00 00 [12:47:49]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [12:47:49]Write i2c OK [12:47:49]MH_I2C_Read... [12:47:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:47:50]Read from MH i2c: E2 [12:47:50]MH_I2C_Read... [12:47:50]Read from MH i2c: E2 FD 00 [12:47:50]MH_I2C_Read... [12:47:50]Read from MH i2c: E2 FD 00 15 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A7 [12:47:50]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:47:50]wFMCommunicate OK [12:47:50]wFMCommunicate request_size=4 [12:47:50]MH_SAM_APDU [12:47:50]CAPDU: 80 17 00 00 [12:47:50]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [12:47:50]Write i2c OK [12:47:50]MH_I2C_Read... [12:47:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:47:50]Read from MH i2c: E2 [12:47:50]MH_I2C_Read... [12:47:50]Read from MH i2c: E2 FD 00 [12:47:50]MH_I2C_Read... [12:47:50]Read from MH i2c: E2 FD 00 16 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 22 [12:47:50]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:47:50]wFMCommunicate OK [12:47:50]wFMCommunicate request_size=4 [12:47:50]MH_SAM_APDU [12:47:50]CAPDU: 80 17 00 00 [12:47:50]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [12:47:50]Write i2c OK [12:47:50]MH_I2C_Read... [12:47:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [12:47:50]Read from MH i2c: E2 [12:47:50]MH_I2C_Read... [12:47:50]Read from MH i2c: E2 E2 00 [12:47:50]MH_I2C_Read... [12:47:50]Read from MH i2c: E2 E2 00 17 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 75 [12:47:50]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:47:50]wFMCommunicate OK [12:47:50]SAM_PROTO_GetFMData done [12:47:50]requested_item fm.sale_refund.total is exist - process it [12:47:50]requested_item fm.buy.total is exist - process it [12:47:50]requested_item shift.sale.total is exist - process it [12:47:50]SAM_PROTO_GetShiftData [12:47:50]wFMCommunicate request_size=4 [12:47:50]MH_SAM_APDU [12:47:50]CAPDU: 80 13 02 00 [12:47:50]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [12:47:50]Write i2c OK [12:47:50]MH_I2C_Read... [12:47:51]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:47:51]Read from MH i2c: E2 [12:47:51]MH_I2C_Read... [12:47:51]Read from MH i2c: E2 FD 00 [12:47:51]MH_I2C_Read... [12:47:51]Read from MH i2c: E2 FD 00 18 00 00 B8 04 AA 04 B4 04 6E 04 04 00 C3 00 00 00 69 04 9D 00 6F 04 04 00 C2 00 00 00 B1 04 04 00 AF 72 26 01 70 04 03 00 B4 41 FF 72 04 03 00 FB 30 27 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 19 47 1F 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 3B 9B 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 50 C3 70 04 02 00 50 C3 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 BF 14 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 EE [12:47:51]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 C3 00 00 00 69 04 9D 00 6F 04 04 00 C2 00 00 00 B1 04 04 00 AF 72 26 01 70 04 03 00 B4 41 FF 72 04 03 00 FB 30 27 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 19 47 1F 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 3B 9B 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 50 C3 70 04 02 00 50 C3 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 BF 14 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [12:47:51]wFMCommunicate OK [12:47:51]wFMCommunicate request_size=4 [12:47:51]MH_SAM_APDU [12:47:51]CAPDU: 80 17 00 00 [12:47:51]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [12:47:51]Write i2c OK [12:47:51]MH_I2C_Read... [12:47:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:47:51]Read from MH i2c: E2 [12:47:51]MH_I2C_Read... [12:47:51]Read from MH i2c: E2 FD 00 [12:47:51]MH_I2C_Read... [12:47:51]Read from MH i2c: E2 FD 00 19 00 00 0B 00 F6 03 01 00 01 F7 03 02 00 BB 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 86 [12:47:51]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 BB 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [12:47:51]wFMCommunicate OK [12:47:51]wFMCommunicate request_size=4 [12:47:51]MH_SAM_APDU [12:47:51]CAPDU: 80 17 00 00 [12:47:51]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [12:47:51]Write i2c OK [12:47:51]MH_I2C_Read... [12:47:51]OFD Sender: No OFD packet to send [12:47:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:47:51]Read from MH i2c: E2 [12:47:51]MH_I2C_Read... [12:47:51]Read from MH i2c: E2 FD 00 [12:47:51]MH_I2C_Read... [12:47:51]Read from MH i2c: E2 FD 00 1A 00 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3C [12:47:51]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:47:51]wFMCommunicate OK [12:47:51]wFMCommunicate request_size=4 [12:47:51]MH_SAM_APDU [12:47:51]CAPDU: 80 17 00 00 [12:47:51]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [12:47:51]Write i2c OK [12:47:51]MH_I2C_Read... [12:47:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:47:51]Read from MH i2c: E2 [12:47:51]MH_I2C_Read... [12:47:51]Read from MH i2c: E2 FD 00 [12:47:51]MH_I2C_Read... [12:47:51]Read from MH i2c: E2 FD 00 1B 00 00 03 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 90 00 24 [12:47:51]RAPDU: 03 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 90 00 [12:47:51]wFMCommunicate OK [12:47:51]wFMCommunicate request_size=4 [12:47:51]MH_SAM_APDU [12:47:51]CAPDU: 80 17 00 00 [12:47:51]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [12:47:51]Write i2c OK [12:47:51]MH_I2C_Read... [12:47:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [12:47:52]Read from MH i2c: E2 [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: E2 D5 00 [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: E2 D5 00 1C 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D [12:47:52]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:47:52]wFMCommunicate OK [12:47:52]SAM_PROTO_GetShiftData done [12:47:52]requested_item shift.sale.total_cash is exist - process it [12:47:52]requested_item shift.sale_refund.total is exist - process it [12:47:52]requested_item shift.sale_refund.total_cash is exist - process it [12:47:52]requested_item shift.buy.total is exist - process it [12:47:52]requested_item shift.buy.total_cash is exist - process it [12:47:52]produce_requested_data done [12:47:52]produce_requested_data return {"fm.sale.total":80558581.08,"fm.sale_refund.total":2937622.00,"fm.buy.total":0.00,"shift.sale.total":192969.43,"shift.sale.total_cash":167285.00,"shift.sale_refund.total":500.00,"shift.sale_refund.total_cash":500.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [12:47:52]process_action_free get_value [12:47:52]json_value_free [12:47:52]json_value_free done [12:47:52]process_json_proto returns [12:47:52]Send response to host [12:47:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":80558581.08,"fm.sale_refund.total":2937622.00,"fm.buy.total":0.00,"shift.sale.total":192969.43,"shift.sale.total_cash":167285.00,"shift.sale_refund.total":500.00,"shift.sale_refund.total_cash":500.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [12:47:52]free response buf [12:47:52]execute_script done [12:47:52]execute_script returns [12:47:52]free content buf [12:47:52]Sock 9.Close socket [12:47:52]Sock 9.Thread stoped [12:47:52]accept exits with 7 [12:47:52]New connection [12:47:52]New thread 3066711396 created [12:47:52]Thread 3066568036 joined [12:47:52]Waiting for new connection... [12:47:52] Sock 7.Parse request [12:47:52]Sock 7.Check first char [12:47:52]Sock 7.First char is OK [12:47:52]request: POST /json_proto HTTP/1.0 [12:47:52]Method: POST [12:47:52]URL: /json_proto [12:47:52]Method is POST - this is cgi request [12:47:52]url: /json_proto [12:47:52]query_string will be loaded in cgi processing [12:47:52]execute_cgi json_proto POST (null) [12:47:52]execute_cgi path=json_proto method=POST [12:47:52]POST find Content-Length [12:47:52]Host: 172.17.50.3:8080 [12:47:52]Content-Length: 144 [12:47:52]Content-Type: application/json [12:47:52] [12:47:52]POST finish read [12:47:52]Found Content-Length = 144 [12:47:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [12:47:52]execute_script... [12:47:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [12:47:52]POST & json_proto [12:47:52]process_json_proto [12:47:52]json parsed OK: [12:47:52]protocol is kg_v1.0 [12:47:52]action value=print_doc [12:47:52]process_action print_doc [12:47:52]ExternCall_PrintAddStr [12:47:52]wPrintStart [12:47:52]Write to MH i2c: 01 00 00 1D 00 1D [12:47:52]Write i2c OK [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: 01 [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: 01 07 00 [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [12:47:52]RasterBufferAndPrint [12:47:52]line Счет N : (1)2885071 [12:47:52]line ИНН: 02508201610067 [12:47:52]line Контрольно-Кассовый Чек [12:47:52]line ПРОДАЖА [12:47:52]line ТРК (МРК, ГНК) : 31 [12:47:52]line Товар: 2710194240 [12:47:52]line D-ENERGY Дт-К-2 [12:47:52]line 19.440 * 77.20 [12:47:52]line = 1500.77 [12:47:52]line НДС 12% НСП 1% [12:47:52]line > о реализуемом товаре [12:47:52]line ОКРУГЛЕНИЕ: -0.77 [12:47:52]line ИТОГО: 1500.00 [12:47:52]line Внесено: 1500.00 [12:47:52]line СДАЧА: 0.00 [12:47:52]line НСП 1% : 13.28 [12:47:52]line НДС 12% : 159.37 [12:47:52]line Наличными: 1500.00 [12:47:52]line Безнал.: 0.00 [12:47:52]line Место: АЗС № 85 "Партнер Нефть" [12:47:52]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:47:52]line СНО: Общий режим [12:47:52]line Чек 195 20.10.2024 12:45 [12:47:52]line Смена: 193 ФФД: 1.0 [12:47:52]line ЗНМ: 0300000167 [12:47:52]line РНМ: 0000000000156251 [12:47:52]line Версия ККМ: v1.0 [12:47:52]line ФМ: 0000000000963346 [12:47:52]line ФД: 69350 [12:47:52]line ФПД: 53413273813751 [12:47:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T124502&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69350&fm=53413273813751&tin=02508201610067®Number=0000000000156251&sum=150000 [12:47:52]written 0, free lines is 4095 [12:47:52]Write to MH i2c: 01 00 00 48 00 48 [12:47:52]Write i2c OK [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: 01 [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: 01 07 00 [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 F6 0C 51 [12:47:52]RasterBufferAndPrint [12:47:52]line [12:47:52]line [12:47:52]line [12:47:52]line [12:47:52]line [12:47:52]written 0, free lines is 3333 [12:47:52]MH_Cut [12:47:52]Write to MH i2c: D1 01 00 4F 00 01 21 [12:47:52]Write i2c OK [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: D1 [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: D1 01 00 [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: D1 01 00 4F 00 00 20 [12:47:52]Write to MH i2c: 01 00 00 50 00 50 [12:47:52]Write i2c OK [12:47:52]MH_I2C_Read... [12:47:53]*** Cut start [12:47:53]*** Partial cut [12:47:53]*** CUTSNS_PIN = 1 [12:47:53]*** CUTSNS_PIN = 0 [12:47:53]*** Brake cut motor [12:47:54]Read from MH i2c: 01 [12:47:54]MH_I2C_Read... [12:47:54]*** Stop cut motor [12:47:54]*** Cut end [12:47:54]Read from MH i2c: 01 07 00 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [12:47:54]process_action print_doc done [12:47:54]requested_data is exist [12:47:54]produce_requested_data [12:47:54]produce_requested_data return (null) [12:47:54]process_action_free print_doc [12:47:54]json_value_free [12:47:54]json_value_free done [12:47:54]process_json_proto returns [12:47:54]Send response to host [12:47:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [12:47:54]free response buf [12:47:54]execute_script done [12:47:54]execute_script returns [12:47:54]free content buf [12:47:54]Sock 7.Close socket [12:47:54]Sock 7.Thread stoped [12:47:54]accept exits with 9 [12:47:54]New connection [12:47:54]New thread 3066568036 created [12:47:54]Thread 3066711396 joined [12:47:54]Waiting for new connection... [12:47:54] Sock 9.Parse request [12:47:54]Sock 9.Check first char [12:47:54]Sock 9.First char is OK [12:47:54]request: POST /json_proto HTTP/1.0 [12:47:54]Method: POST [12:47:54]URL: /json_proto [12:47:54]Method is POST - this is cgi request [12:47:54]url: /json_proto [12:47:54]query_string will be loaded in cgi processing [12:47:54]execute_cgi json_proto POST (null) [12:47:54]execute_cgi path=json_proto method=POST [12:47:54]POST find Content-Length [12:47:54]Host: 172.17.50.3:8080 [12:47:54]Content-Length: 791 [12:47:54]Content-Type: application/json [12:47:54] [12:47:54]POST finish read [12:47:54]Found Content-Length = 791 [12:47:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A31095", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:54]execute_script... [12:47: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)2885070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A31095", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:54]POST & json_proto [12:47:54]process_json_proto [12:47:54]json parsed OK: [12:47:54]protocol is kg_v1.0 [12:47:54]action value=close_receipt [12:47:54]process_action close_receipt [12:47:54]cmd_close_receipt [12:47:54]MH_GetDate [12:47:54]Write to MH i2c: F0 00 00 51 00 40 [12:47:54]Write i2c OK [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: F0 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: F0 09 00 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: F0 09 00 51 00 00 FA FB 14 67 6B 98 1E 66 40 [12:47:54]GetLastDocTimeStamp 1729428302 [12:47:54]current date 1729428474 [12:47:54]FM_GetShiftState [12:47:54]SAM_PROTO_GetShiftState [12:47:54]wFMCommunicate request_size=4 [12:47:54]MH_SAM_APDU [12:47:54]CAPDU: 80 13 01 00 [12:47:54]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [12:47:54]Write i2c OK [12:47:54]MH_I2C_Read... [12:47:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:54]Read from MH i2c: E2 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: E2 0E 00 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 D5 [12:47:54]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:47:54]wFMCommunicate OK [12:47:54]SAM_PROTO_GetShiftState done [12:47:54]FM_GetShiftState done [12:47:54]opened in 1729383220 [12:47:54]opened+sec_in_day 1729469620 [12:47:54]quantity*price = 0 [12:47:54]sum+1 = 1 [12:47:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 196 20.10.2024 12:47 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 31095 ФМ: 0000000000963346 ФД: 69351 ФПД: 149215585506846 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T124754&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69351&fm=149215585506846&tin=02508201610067®Number=0000000000156251&sum=0 [12:47:55]StoreToDocumentArchive [12:47:55]shift 193 fd 69351 [12:47:55]save to /storage/0193/doc_00069351 [12:47:55]save last doc name /storage/0193/doc_00069351 to /storage/kkm_last_doc_name [12:47:55]save OK [12:47:55]Clear old archive folders... [12:47:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:47:55]tlvbuf is B6F1AC30 [12:47:55]SAM_PROTO_ClearQueue [12:47:55]wFMCommunicate request_size=4 [12:47:55]MH_SAM_APDU [12:47:55]CAPDU: 80 09 00 00 [12:47:55]Write to MH i2c: E2 08 00 5F 00 80 09 00 00 00 00 00 00 D1 [12:47:55]Write i2c OK [12:47:55]MH_I2C_Read... [12:47:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:47:55]Read from MH i2c: E2 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: E2 03 00 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [12:47:55]RAPDU: 90 00 [12:47:55]wFMCommunicate OK [12:47:55]SAM_PROTO_ClearQueue done [12:47:55]KKMCreateOFDPacket [12:47:55]OFDProtocolAddRootSTLVToBuf [12:47:55]FM_MakeSignedData [12:47:55]FM_MakeSignedData [12:47:55]SAM_PROTO_SignData [12:47:55]wFMCommunicate request_size=4 [12:47:55]MH_SAM_APDU [12:47:55]CAPDU: 80 0D 01 02 [12:47:55]Write to MH i2c: E2 08 00 60 00 80 0D 01 02 00 00 00 00 D9 [12:47:55]Write i2c OK [12:47:55]MH_I2C_Read... [12:47:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:47:55]Read from MH i2c: E2 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: E2 03 00 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [12:47:55]RAPDU: 90 00 [12:47:55]wFMCommunicate OK [12:47:55]wFMCommunicate request_size=255 [12:47:55]MH_SAM_APDU [12:47: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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 FA FB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E7 0E 01 00 35 04 06 00 87 B5 F5 F8 [12:47:55]Write to MH i2c: E2 02 01 61 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 FA FB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E7 0E 01 00 35 04 06 00 87 B5 F5 F8 00 00 6B [12:47:55]Write i2c OK [12:47:55]MH_I2C_Read... [12:47:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:56]Read from MH i2c: E2 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 03 00 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [12:47:56]RAPDU: 90 00 [12:47:56]wFMCommunicate OK [12:47:56]wFMCommunicate request_size=7 [12:47:56]MH_SAM_APDU [12:47:56]CAPDU: 80 0D 02 02 02 16 1E [12:47:56]Write to MH i2c: E2 0A 00 62 00 80 0D 02 02 02 00 16 1E 00 00 14 [12:47:56]Write i2c OK [12:47:56]MH_I2C_Read... [12:47:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:56]Read from MH i2c: E2 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 03 00 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [12:47:56]RAPDU: 90 00 [12:47:56]wFMCommunicate OK [12:47:56]wFMCommunicate request_size=4 [12:47:56]MH_SAM_APDU [12:47:56]CAPDU: 80 0D 03 02 [12:47:56]Write to MH i2c: E2 08 00 63 00 80 0D 03 02 00 00 00 00 DE [12:47:56]Write i2c OK [12:47:56]MH_I2C_Read... [12:47:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:47:56]Read from MH i2c: E2 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 0B 00 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 0B 00 63 00 00 4E 99 37 B8 5B E1 9A 37 90 00 C2 [12:47:56]RAPDU: 4E 99 37 B8 5B E1 9A 37 90 00 [12:47:56]wFMCommunicate OK [12:47:56]SAM_PROTO_SignData done [12:47:56]FM_MakeSignedData done [12:47:56]CreateOFDProtocolMessage [12:47:56]wFMCommunicate request_size=4 [12:47:56]MH_SAM_APDU [12:47:56]CAPDU: 80 11 00 00 [12:47:56]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [12:47:56]Write i2c OK [12:47:56]MH_I2C_Read... [12:47:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:56]Read from MH i2c: E2 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 17 00 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 30 [12:47:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:47:56]wFMCommunicate OK [12:47:56]CreateOFDProtocolMessage done [12:47:56]OFDSenderStorePacket 69351 [12:47:56]StoreOFDPacket docnum=69351 [12:47:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 7C FC 04 01 5B 73 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 FA FB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E7 0E 01 00 35 04 06 00 87 B5 F5 F8 16 1E 4E 99 37 B8 5B E1 9A 37 [12:47:56]CheckFolder [12:47:56]dirname=/storage/ofd_packets [12:47:56]CheckFolder done [12:47:56]ProducePacketName [12:47:56]name=ofd_packets/00069351 [12:47:56]NVStorageSaveData ofd_packets/00069351 [12:47:56]File name is /storage/ofd_packets/00069351 [12:47:56]Write 298 bytes [12:47:56]NVStorageSaveData done [12:47:56]OFDSenderStorePacket done [12:47:56]KKMCreateOFDPacket done [12:47:56]NVStorageSaveData kkm_last_timestamp [12:47:56]File name is /storage/kkm_last_timestamp [12:47:56]Write 4 bytes [12:47:56]NVStorageSaveData done [12:47:56]ExternCall_PrintAddStr [12:47:56]wPrintStart [12:47:56]Write to MH i2c: 01 00 00 65 00 65 [12:47:56]Write i2c OK [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: 01 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: 01 07 00 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 FF 0F 7A [12:47:56]RasterBufferAndPrint [12:47:56]line Счет N : (1)2885070 [12:47:56]line ИНН: 02508201610067 [12:47:56]line Контрольно-Кассовый Чек [12:47:56]line ПРОДАЖА [12:47:56]line ТРК (МРК, ГНК) : 61 [12:47:56]line Товар: 2710194210 [12:47:56]line ДТ-К-5 [12:47:56]line 100.000 * 0.00 [12:47:56]line = 0.00 [12:47:56]line НДС 12% НСП 1% [12:47:56]line > о реализуемом товаре [12:47:56]line ИТОГО: 0.00 [12:47:56]line НСП 1% : 0.00 [12:47:56]line НДС 12% : 0.00 [12:47:56]line Наличными: 0.00 [12:47:56]line Безнал.: 0.00 [12:47:56]line Место: АЗС № 85 "Партнер Нефть" [12:47:56]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:47:56]line СНО: Общий режим [12:47:56]line Чек 196 20.10.2024 12:47 [12:47:56]line Смена: 193 ФФД: 1.0 [12:47:56]line ЗНМ: 0300000167 [12:47:56]line РНМ: 0000000000156251 [12:47:56]line Версия ККМ: v1.0 [12:47:56]line Талоны: Топливная Карта [12:47:56]line 31095 [12:47:56]line ФМ: 0000000000963346 [12:47:56]line ФД: 69351 [12:47:56]line ФПД: 149215585506846 [12:47:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T124754&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69351&fm=149215585506846&tin=02508201610067®Number=0000000000156251&sum=0 [12:47:56]OFD Sender: Processing packet 69351 [packets to send 18, broken 17] [12:47:56]ProducePacketName [12:47:56]name=ofd_packets/00069351 [12:47:56]OFD Sender: To server: pG, [12:47:56]CommunicateWithHost lk.salyk.kg:30040 [12:47:56]ConnectInit lk.salyk.kg [12:47:56]written 0, free lines is 4095 [12:47:56]Connected sock=10 [12:47:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 7C FC 04 01 5B 73 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 FA FB 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E7 0E 01 00 35 04 06 00 87 B5 F5 F8 16 1E 4E 99 37 B8 5B E1 9A 37 [12:47:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 3B AF 47 00 20 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E7 0E 01 00 F4 03 04 00 A1 A5 14 67 B6 04 01 00 00 7A 45 7E 49 B1 24 69 65 [12:47:57]CommunicateWithHost err = 0 [12:47:57]CheckOFDResponse [12:47:57]1017 (14) - 77093643461234 [12:47:57]1041 (16) - 0000000000963346 [12:47:57]1040 (4) - 69351 [12:47:57]1012 (4) - 20.10.2024 06:39 [12:47:57]1206 (1) - 0 [12:47:57]OFD Sender: Remove packet 69351 [12:47:57]ProducePacketName [12:47:57]name=ofd_packets/00069351 [12:47:57]NVStorageDeleteData [12:47:57]Write to MH i2c: 01 00 00 8F 00 8F [12:47:57]Write i2c OK [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: 01 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: 01 07 00 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: 01 07 00 8F 00 00 00 00 00 00 02 0D A5 [12:47:57]RasterBufferAndPrint [12:47:57]line [12:47:57]line [12:47:57]line [12:47:57]line [12:47:57]line [12:47:57]written 0, free lines is 3346 [12:47:57]MH_Cut [12:47:57]Write to MH i2c: D1 01 00 96 00 01 68 [12:47:57]Write i2c OK [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: D1 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: D1 01 00 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: D1 01 00 96 00 00 67 [12:47:57]Write to MH i2c: 01 00 00 97 00 97 [12:47:57]Write i2c OK [12:47:57]MH_I2C_Read... [12:47:57]OFD Sender: No OFD packet to send [12:47:57]*** Cut start [12:47:57]*** Partial cut [12:47:57]*** CUTSNS_PIN = 1 [12:47:57]*** CUTSNS_PIN = 0 [12:47:58]*** Brake cut motor [12:47:58]Read from MH i2c: 01 [12:47:58]MH_I2C_Read... [12:47:58]*** Stop cut motor [12:47:58]*** Cut end [12:47:58]Read from MH i2c: 01 07 00 [12:47:58]MH_I2C_Read... [12:47:58]Read from MH i2c: 01 07 00 97 00 00 00 00 00 00 FF 0F AC [12:47:58]process_action close_receipt done [12:47:58]requested_data is exist [12:47:58]produce_requested_data [12:47:58]requested_item fm.sn is exist - process it [12:47:58]wFMCommunicate request_size=4 [12:47:58]MH_SAM_APDU [12:47:58]CAPDU: 80 11 00 00 [12:47:58]Write to MH i2c: E2 08 00 98 00 80 11 00 00 00 00 00 00 12 [12:47:58]Write i2c OK [12:47:58]MH_I2C_Read... [12:47:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:58]Read from MH i2c: E2 [12:47:58]MH_I2C_Read... [12:47:58]Read from MH i2c: E2 17 00 [12:47:58]MH_I2C_Read... [12:47:58]Read from MH i2c: E2 17 00 98 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 64 [12:47:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:47:58]wFMCommunicate OK [12:47:58]requested_item fd.num is exist - process it [12:47:58]SAM_PROTO_GetFieldsCounters [12:47:58]wFMCommunicate request_size=4 [12:47:58]MH_SAM_APDU [12:47:58]CAPDU: 80 13 00 00 [12:47:58]Write to MH i2c: E2 08 00 99 00 80 13 00 00 00 00 00 00 15 [12:47:58]Write i2c OK [12:47:58]MH_I2C_Read... [12:47:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:58]Read from MH i2c: E2 [12:47:58]MH_I2C_Read... [12:47:58]Read from MH i2c: E2 62 00 [12:47:58]MH_I2C_Read... [12:47:58]Read from MH i2c: E2 62 00 99 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E7 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [12:47:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E7 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:47:58]wFMCommunicate OK [12:47:58]SAM_PROTO_GetFieldsCounters done [12:47:58]requested_item shift.num is exist - process it [12:47:58]requested_item shift.opened is exist - process it [12:47:58]req_shift_opened [12:47:58]FM_GetShiftState [12:47:58]SAM_PROTO_GetShiftState [12:47:58]wFMCommunicate request_size=4 [12:47:58]MH_SAM_APDU [12:47:58]CAPDU: 80 13 01 00 [12:47:58]Write to MH i2c: E2 08 00 9A 00 80 13 01 00 00 00 00 00 17 [12:47:58]Write i2c OK [12:47:58]MH_I2C_Read... [12:47:58]Read from MH i2c: E2 [12:47:58]MH_I2C_Read... [12:47:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:58]Read from MH i2c: E2 0E 00 [12:47:58]MH_I2C_Read... [12:47:58]Read from MH i2c: E2 0E 00 9A 00 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 1D [12:47:58]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:47:58]wFMCommunicate OK [12:47:58]SAM_PROTO_GetShiftState done [12:47:58]FM_GetShiftState done [12:47:58]req_shift_opened done [12:47:58]requested_item shift.open_date is exist - process it [12:47:58]req_shift_open_date [12:47:58]req_shift_open_date done [12:47:58]produce_requested_data done [12:47:58]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69351,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [12:47:58]process_action_free close_receipt [12:47:58]json_value_free [12:47:58]json_value_free done [12:47:58]process_json_proto returns [12:47:58]Send response to host [12:47:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69351,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [12:47:58]free response buf [12:47:58]execute_script done [12:47:58]execute_script returns [12:47:58]free content buf [12:47:58]Sock 9.Close socket [12:47:58]Sock 9.Thread stoped [12:48:02]OFD Sender: No OFD packet to send [12:48:07]OFD Sender: No OFD packet to send [12:48:12]OFD Sender: No OFD packet to send [12:48:17]OFD Sender: No OFD packet to send [12:48:22]OFD Sender: No OFD packet to send [12:48:27]OFD Sender: No OFD packet to send [12:48:32]OFD Sender: No OFD packet to send [12:48:37]OFD Sender: No OFD packet to send [12:48:42]OFD Sender: No OFD packet to send [12:48:47]OFD Sender: No OFD packet to send [12:48:52]OFD Sender: No OFD packet to send [12:48:57]OFD Sender: No OFD packet to send [12:48:58]accept exits with 7 [12:48:58]New connection [12:48:58]New thread 3066711396 created [12:48:58]Thread 3066568036 joined [12:48:58]Waiting for new connection... [12:48:58] Sock 7.Parse request [12:48:58]Sock 7.Check first char [12:48:58]Sock 7.First char is OK [12:48:58]request: POST /json_proto HTTP/1.0 [12:48:58]Method: POST [12:48:58]URL: /json_proto [12:48:58]Method is POST - this is cgi request [12:48:58]url: /json_proto [12:48:58]query_string will be loaded in cgi processing [12:48:58]execute_cgi json_proto POST (null) [12:48:58]execute_cgi path=json_proto method=POST [12:48:58]POST find Content-Length [12:48:58]Host: 172.17.50.3:8080 [12:48:58]Content-Length: 680 [12:48:58]Content-Type: application/json [12:48:58] [12:48:58]POST finish read [12:48:58]Found Content-Length = 680 [12:48:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885073", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 31.240, "sum" : 2380.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2380.00, "total" : 2380.00, "payments": [ { "type": 0, "sum" : 2380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:58]execute_script... [12:48:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885073", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 31.240, "sum" : 2380.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2380.00, "total" : 2380.00, "payments": [ { "type": 0, "sum" : 2380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:58]POST & json_proto [12:48:58]process_json_proto [12:48:58]json parsed OK: [12:48:58]protocol is kg_v1.0 [12:48:58]action value=close_receipt [12:48:58]process_action close_receipt [12:48:58]cmd_close_receipt [12:48:58]MH_GetDate [12:48:58]Write to MH i2c: F0 00 00 9B 00 8A [12:48:58]Write i2c OK [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: F0 [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: F0 09 00 [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: F0 09 00 9B 00 00 3A FC 14 67 6B 98 1E 66 CB [12:48:58]GetLastDocTimeStamp 1729428474 [12:48:58]current date 1729428538 [12:48:58]FM_GetShiftState [12:48:58]SAM_PROTO_GetShiftState [12:48:58]wFMCommunicate request_size=4 [12:48:58]MH_SAM_APDU [12:48:58]CAPDU: 80 13 01 00 [12:48:58]Write to MH i2c: E2 08 00 9C 00 80 13 01 00 00 00 00 00 19 [12:48:58]Write i2c OK [12:48:58]MH_I2C_Read... [12:48:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:58]Read from MH i2c: E2 [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: E2 0E 00 [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: E2 0E 00 9C 00 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 1F [12:48:58]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:48:58]wFMCommunicate OK [12:48:58]SAM_PROTO_GetShiftState done [12:48:58]FM_GetShiftState done [12:48:58]opened in 1729383220 [12:48:58]opened+sec_in_day 1729469620 [12:48:58]quantity*price = 238048 [12:48:58]sum+1 = 238050 [12:48:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 2380.00 Внесено: 2380.00 СДАЧА: 0.00 НСП 1% : 21.07 НДС 12% : 252.79 Наличными: 2380.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 197 20.10.2024 12:48 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69352 ФПД: 143010807824861 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T124858&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69352&fm=143010807824861&tin=02508201610067®Number=0000000000156251&sum=238000 [12:48:59]StoreToDocumentArchive [12:48:59]shift 193 fd 69352 [12:48:59]save to /storage/0193/doc_00069352 [12:48:59]save last doc name /storage/0193/doc_00069352 to /storage/kkm_last_doc_name [12:48:59]save OK [12:48:59]Clear old archive folders... [12:48:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:48:59]tlvbuf is 0024F9A0 [12:48:59]SAM_PROTO_ClearQueue [12:48:59]wFMCommunicate request_size=4 [12:48:59]MH_SAM_APDU [12:48:59]CAPDU: 80 09 00 00 [12:48:59]Write to MH i2c: E2 08 00 A9 00 80 09 00 00 00 00 00 00 1B [12:48:59]Write i2c OK [12:48:59]MH_I2C_Read... [12:48:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:48:59]Read from MH i2c: E2 [12:48:59]MH_I2C_Read... [12:48:59]Read from MH i2c: E2 03 00 [12:48:59]MH_I2C_Read... [12:48:59]Read from MH i2c: E2 03 00 A9 00 00 90 00 1D [12:48:59]RAPDU: 90 00 [12:48:59]wFMCommunicate OK [12:48:59]SAM_PROTO_ClearQueue done [12:48:59]KKMCreateOFDPacket [12:48:59]OFDProtocolAddRootSTLVToBuf [12:48:59]FM_MakeSignedData [12:48:59]FM_MakeSignedData [12:48:59]SAM_PROTO_SignData [12:48:59]wFMCommunicate request_size=4 [12:48:59]MH_SAM_APDU [12:48:59]CAPDU: 80 0D 01 02 [12:48:59]Write to MH i2c: E2 08 00 AA 00 80 0D 01 02 00 00 00 00 23 [12:48:59]Write i2c OK [12:48:59]MH_I2C_Read... [12:49:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:00]Read from MH i2c: E2 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 03 00 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [12:49:00]RAPDU: 90 00 [12:49:00]wFMCommunicate OK [12:49:00]wFMCommunicate request_size=255 [12:49:00]MH_SAM_APDU [12:49: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 08 7A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E1 A1 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 A1 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 62 00 00 00 00 07 04 06 00 B0 A1 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 3A FC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E8 0E 01 00 35 04 06 00 82 11 4C 66 [12:49:00]Write to MH i2c: E2 02 01 AB 00 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 08 7A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E1 A1 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 A1 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 62 00 00 00 00 07 04 06 00 B0 A1 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 3A FC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E8 0E 01 00 35 04 06 00 82 11 4C 66 00 00 E1 [12:49:00]Write i2c OK [12:49:00]MH_I2C_Read... [12:49:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:00]Read from MH i2c: E2 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 03 00 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [12:49:00]RAPDU: 90 00 [12:49:00]wFMCommunicate OK [12:49:00]wFMCommunicate request_size=7 [12:49:00]MH_SAM_APDU [12:49:00]CAPDU: 80 0D 02 02 02 41 DD [12:49:00]Write to MH i2c: E2 0A 00 AC 00 80 0D 02 02 02 00 41 DD 00 00 48 [12:49:00]Write i2c OK [12:49:00]MH_I2C_Read... [12:49:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:00]Read from MH i2c: E2 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 03 00 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [12:49:00]RAPDU: 90 00 [12:49:00]wFMCommunicate OK [12:49:00]wFMCommunicate request_size=4 [12:49:00]MH_SAM_APDU [12:49:00]CAPDU: 80 0D 03 02 [12:49:00]Write to MH i2c: E2 08 00 AD 00 80 0D 03 02 00 00 00 00 28 [12:49:00]Write i2c OK [12:49:00]MH_I2C_Read... [12:49:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:00]Read from MH i2c: E2 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 0B 00 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 0B 00 AD 00 00 A1 17 BD 0B E0 9D E6 71 90 00 7D [12:49:00]RAPDU: A1 17 BD 0B E0 9D E6 71 90 00 [12:49:00]wFMCommunicate OK [12:49:00]SAM_PROTO_SignData done [12:49:00]FM_MakeSignedData done [12:49:00]CreateOFDProtocolMessage [12:49:00]wFMCommunicate request_size=4 [12:49:00]MH_SAM_APDU [12:49:00]CAPDU: 80 11 00 00 [12:49:00]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [12:49:00]Write i2c OK [12:49:00]MH_I2C_Read... [12:49:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:00]Read from MH i2c: E2 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 17 00 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7A [12:49:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:49:00]wFMCommunicate OK [12:49:00]CreateOFDProtocolMessage done [12:49:00]OFDSenderStorePacket 69352 [12:49:00]StoreOFDPacket docnum=69352 [12:49:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 F6 3B 04 01 D3 2F 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 08 7A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E1 A1 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 A1 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 62 00 00 00 00 07 04 06 00 B0 A1 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 3A FC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E8 0E 01 00 35 04 06 00 82 11 4C 66 41 DD A1 17 BD 0B E0 9D E6 71 [12:49:00]CheckFolder [12:49:00]dirname=/storage/ofd_packets [12:49:00]CheckFolder done [12:49:00]ProducePacketName [12:49:00]name=ofd_packets/00069352 [12:49:00]NVStorageSaveData ofd_packets/00069352 [12:49:00]File name is /storage/ofd_packets/00069352 [12:49:00]Write 298 bytes [12:49:00]NVStorageSaveData done [12:49:00]OFDSenderStorePacket done [12:49:00]KKMCreateOFDPacket done [12:49:00]NVStorageSaveData kkm_last_timestamp [12:49:00]File name is /storage/kkm_last_timestamp [12:49:00]Write 4 bytes [12:49:00]NVStorageSaveData done [12:49:00]ExternCall_PrintAddStr [12:49:00]wPrintStart [12:49:00]Write to MH i2c: 01 00 00 AF 00 AF [12:49:00]Write i2c OK [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: 01 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: 01 07 00 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [12:49:00]RasterBufferAndPrint [12:49:00]line Счет N : (1)2885073 [12:49:00]line ИНН: 02508201610067 [12:49:00]line Контрольно-Кассовый Чек [12:49:00]line ПРОДАЖА [12:49:00]line ТРК (МРК, ГНК) : 61 [12:49:00]line Товар: 2710194210 [12:49:00]line ДТ-К-5 [12:49:00]line 31.240 * 76.20 [12:49:00]line = 2380.49 [12:49:00]line НДС 12% НСП 1% [12:49:00]line > о реализуемом товаре [12:49:00]line ОКРУГЛЕНИЕ: -0.49 [12:49:00]line ИТОГО: 2380.00 [12:49:00]line Внесено: 2380.00 [12:49:00]line СДАЧА: 0.00 [12:49:00]line НСП 1% : 21.07 [12:49:00]line НДС 12% : 252.79 [12:49:00]line Наличными: 2380.00 [12:49:00]line Безнал.: 0.00 [12:49:00]line Место: АЗС № 85 "Партнер Нефть" [12:49:00]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:49:00]line СНО: Общий режим [12:49:00]line Чек 197 20.10.2024 12:48 [12:49:00]line Смена: 193 ФФД: 1.0 [12:49:00]line ЗНМ: 0300000167 [12:49:00]line РНМ: 0000000000156251 [12:49:00]line Версия ККМ: v1.0 [12:49:00]line ФМ: 0000000000963346 [12:49:00]line ФД: 69352 [12:49:00]line ФПД: 143010807824861 [12:49:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T124858&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69352&fm=143010807824861&tin=02508201610067®Number=0000000000156251&sum=238000 [12:49:00]OFD Sender: Processing packet 69352 [packets to send 18, broken 17] [12:49:00]ProducePacketName [12:49:00]name=ofd_packets/00069352 [12:49:00]OFD Sender: To server: pG, [12:49:00]CommunicateWithHost lk.salyk.kg:30040 [12:49:00]ConnectInit lk.salyk.kg [12:49:00]written 0, free lines is 4095 [12:49:00]Connected sock=10 [12:49:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 F6 3B 04 01 D3 2F 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 08 7A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E1 A1 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 A1 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 62 00 00 00 00 07 04 06 00 B0 A1 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 3A FC 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E8 0E 01 00 35 04 06 00 82 11 4C 66 41 DD A1 17 BD 0B E0 9D E6 71 [12:49:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 C8 B1 47 00 7F 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E8 0E 01 00 F4 03 04 00 E1 A5 14 67 B6 04 01 00 00 5F AB 12 99 8A B6 42 88 [12:49:01]CommunicateWithHost err = 0 [12:49:01]CheckOFDResponse [12:49:01]1017 (14) - 77093643461234 [12:49:01]1041 (16) - 0000000000963346 [12:49:01]1040 (4) - 69352 [12:49:01]1012 (4) - 20.10.2024 06:40 [12:49:01]1206 (1) - 0 [12:49:01]OFD Sender: Remove packet 69352 [12:49:01]ProducePacketName [12:49:01]name=ofd_packets/00069352 [12:49:01]NVStorageDeleteData [12:49:01]Write to MH i2c: 01 00 00 DA 00 DA [12:49:01]Write i2c OK [12:49:01]MH_I2C_Read... [12:49:01]Read from MH i2c: 01 [12:49:01]MH_I2C_Read... [12:49:01]Read from MH i2c: 01 07 00 [12:49:01]MH_I2C_Read... [12:49:01]Read from MH i2c: 01 07 00 DA 00 00 00 00 00 00 02 0D F0 [12:49:01]RasterBufferAndPrint [12:49:01]line [12:49:01]line [12:49:01]line [12:49:01]line [12:49:01]line [12:49:01]written 0, free lines is 3337 [12:49:01]MH_Cut [12:49:01]Write to MH i2c: D1 01 00 E1 00 01 B3 [12:49:01]Write i2c OK [12:49:01]MH_I2C_Read... [12:49:01]Read from MH i2c: D1 [12:49:01]MH_I2C_Read... [12:49:01]Read from MH i2c: D1 01 00 [12:49:01]MH_I2C_Read... [12:49:01]Read from MH i2c: D1 01 00 E1 00 00 B2 [12:49:01]Write to MH i2c: 01 00 00 E2 00 E2 [12:49:01]Write i2c OK [12:49:01]MH_I2C_Read... [12:49:01]OFD Sender: No OFD packet to send [12:49:01]*** Cut start [12:49:01]*** Partial cut [12:49:01]*** CUTSNS_PIN = 1 [12:49:01]*** CUTSNS_PIN = 0 [12:49:02]*** Brake cut motor [12:49:02]Read from MH i2c: 01 [12:49:02]MH_I2C_Read... [12:49:02]*** Stop cut motor [12:49:02]*** Cut end [12:49:02]Read from MH i2c: 01 07 00 [12:49:02]MH_I2C_Read... [12:49:02]Read from MH i2c: 01 07 00 E2 00 00 00 00 00 00 FF 0F F7 [12:49:02]process_action close_receipt done [12:49:02]requested_data is exist [12:49:02]produce_requested_data [12:49:02]requested_item fm.sn is exist - process it [12:49:02]wFMCommunicate request_size=4 [12:49:02]MH_SAM_APDU [12:49:02]CAPDU: 80 11 00 00 [12:49:02]Write to MH i2c: E2 08 00 E3 00 80 11 00 00 00 00 00 00 5D [12:49:02]Write i2c OK [12:49:02]MH_I2C_Read... [12:49:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:02]Read from MH i2c: E2 [12:49:02]MH_I2C_Read... [12:49:02]Read from MH i2c: E2 17 00 [12:49:02]MH_I2C_Read... [12:49:02]Read from MH i2c: E2 17 00 E3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AF [12:49:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:49:02]wFMCommunicate OK [12:49:02]requested_item fd.num is exist - process it [12:49:02]SAM_PROTO_GetFieldsCounters [12:49:02]wFMCommunicate request_size=4 [12:49:02]MH_SAM_APDU [12:49:02]CAPDU: 80 13 00 00 [12:49:02]Write to MH i2c: E2 08 00 E4 00 80 13 00 00 00 00 00 00 60 [12:49:02]Write i2c OK [12:49:02]MH_I2C_Read... [12:49:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:02]Read from MH i2c: E2 [12:49:02]MH_I2C_Read... [12:49:02]Read from MH i2c: E2 62 00 [12:49:02]MH_I2C_Read... [12:49:02]Read from MH i2c: E2 62 00 E4 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E8 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [12:49:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E8 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:49:02]wFMCommunicate OK [12:49:02]SAM_PROTO_GetFieldsCounters done [12:49:02]requested_item shift.num is exist - process it [12:49:02]requested_item shift.opened is exist - process it [12:49:02]req_shift_opened [12:49:02]FM_GetShiftState [12:49:02]SAM_PROTO_GetShiftState [12:49:02]wFMCommunicate request_size=4 [12:49:02]MH_SAM_APDU [12:49:02]CAPDU: 80 13 01 00 [12:49:02]Write to MH i2c: E2 08 00 E5 00 80 13 01 00 00 00 00 00 62 [12:49:02]Write i2c OK [12:49:02]MH_I2C_Read... [12:49:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:02]Read from MH i2c: E2 [12:49:02]MH_I2C_Read... [12:49:02]Read from MH i2c: E2 0E 00 [12:49:02]MH_I2C_Read... [12:49:02]Read from MH i2c: E2 0E 00 E5 00 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 68 [12:49:02]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:49:02]wFMCommunicate OK [12:49:02]SAM_PROTO_GetShiftState done [12:49:02]FM_GetShiftState done [12:49:02]req_shift_opened done [12:49:02]requested_item shift.open_date is exist - process it [12:49:02]req_shift_open_date [12:49:02]req_shift_open_date done [12:49:02]produce_requested_data done [12:49:02]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69352,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [12:49:02]process_action_free close_receipt [12:49:02]json_value_free [12:49:02]json_value_free done [12:49:02]process_json_proto returns [12:49:02]Send response to host [12:49:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69352,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [12:49:02]free response buf [12:49:02]execute_script done [12:49:02]execute_script returns [12:49:02]free content buf [12:49:02]Sock 7.Close socket [12:49:02]Sock 7.Thread stoped [12:49:06]OFD Sender: No OFD packet to send [12:49:11]OFD Sender: No OFD packet to send [12:49:16]OFD Sender: No OFD packet to send [12:49:21]OFD Sender: No OFD packet to send [12:49:26]OFD Sender: No OFD packet to send [12:49:31]OFD Sender: No OFD packet to send [12:49:36]OFD Sender: No OFD packet to send [12:49:41]OFD Sender: No OFD packet to send [12:49:46]OFD Sender: No OFD packet to send [12:49:51]OFD Sender: No OFD packet to send [12:49:56]OFD Sender: No OFD packet to send [12:50:01]OFD Sender: No OFD packet to send [12:50:06]OFD Sender: No OFD packet to send [12:50:11]OFD Sender: No OFD packet to send [12:50:16]OFD Sender: No OFD packet to send [12:50:21]OFD Sender: No OFD packet to send [12:50:26]OFD Sender: No OFD packet to send [12:50:31]OFD Sender: No OFD packet to send [12:50:36]OFD Sender: No OFD packet to send [12:50:41]OFD Sender: No OFD packet to send [12:50:46]OFD Sender: No OFD packet to send [12:50:51]OFD Sender: No OFD packet to send [12:50:56]OFD Sender: No OFD packet to send [12:51:01]OFD Sender: No OFD packet to send [12:51:06]OFD Sender: No OFD packet to send [12:51:11]OFD Sender: No OFD packet to send [12:51:16]OFD Sender: No OFD packet to send [12:51:21]OFD Sender: No OFD packet to send [12:51:26]OFD Sender: No OFD packet to send [12:51:31]OFD Sender: No OFD packet to send [12:51:36]OFD Sender: No OFD packet to send [12:51:41]OFD Sender: No OFD packet to send [12:51:46]OFD Sender: No OFD packet to send [12:51:51]OFD Sender: No OFD packet to send [12:51:56]OFD Sender: No OFD packet to send [12:52:01]OFD Sender: No OFD packet to send [12:52:06]OFD Sender: No OFD packet to send [12:52:11]OFD Sender: No OFD packet to send [12:52:16]OFD Sender: No OFD packet to send [12:52:21]OFD Sender: No OFD packet to send [12:52:26]OFD Sender: No OFD packet to send [12:52:31]OFD Sender: No OFD packet to send [12:52:36]OFD Sender: No OFD packet to send [12:52:41]OFD Sender: No OFD packet to send [12:52:46]OFD Sender: No OFD packet to send [12:52:51]OFD Sender: No OFD packet to send [12:52:56]OFD Sender: No OFD packet to send [12:53:01]OFD Sender: No OFD packet to send [12:53:06]OFD Sender: No OFD packet to send [12:53:11]OFD Sender: No OFD packet to send [12:53:16]OFD Sender: No OFD packet to send [12:53:21]OFD Sender: No OFD packet to send [12:53:26]OFD Sender: No OFD packet to send [12:53:31]OFD Sender: No OFD packet to send [12:53:36]OFD Sender: No OFD packet to send [12:53:41]OFD Sender: No OFD packet to send [12:53:46]OFD Sender: No OFD packet to send [12:53:51]OFD Sender: No OFD packet to send [12:53:56]OFD Sender: No OFD packet to send [12:54:01]OFD Sender: No OFD packet to send [12:54:06]OFD Sender: No OFD packet to send [12:54:11]OFD Sender: No OFD packet to send [12:54:16]OFD Sender: No OFD packet to send [12:54:21]OFD Sender: No OFD packet to send [12:54:26]OFD Sender: No OFD packet to send [12:54:31]OFD Sender: No OFD packet to send [12:54:36]OFD Sender: No OFD packet to send [12:54:41]OFD Sender: No OFD packet to send [12:54:46]OFD Sender: No OFD packet to send [12:54:51]OFD Sender: No OFD packet to send [12:54:56]OFD Sender: No OFD packet to send [12:55:01]OFD Sender: No OFD packet to send [12:55:06]OFD Sender: No OFD packet to send [12:55:11]OFD Sender: No OFD packet to send [12:55:16]OFD Sender: No OFD packet to send [12:55:21]OFD Sender: No OFD packet to send [12:55:26]OFD Sender: No OFD packet to send [12:55:31]OFD Sender: No OFD packet to send [12:55:36]OFD Sender: No OFD packet to send [12:55:41]OFD Sender: No OFD packet to send [12:55:46]OFD Sender: No OFD packet to send [12:55:51]OFD Sender: No OFD packet to send [12:55:56]OFD Sender: No OFD packet to send [12:56:01]OFD Sender: No OFD packet to send [12:56:06]OFD Sender: No OFD packet to send [12:56:11]OFD Sender: No OFD packet to send [12:56:16]OFD Sender: No OFD packet to send [12:56:21]OFD Sender: No OFD packet to send [12:56:26]OFD Sender: No OFD packet to send [12:56:31]OFD Sender: No OFD packet to send [12:56:36]OFD Sender: No OFD packet to send [12:56:41]OFD Sender: No OFD packet to send [12:56:46]OFD Sender: No OFD packet to send [12:56:51]OFD Sender: No OFD packet to send [12:56:56]OFD Sender: No OFD packet to send [12:57:01]OFD Sender: No OFD packet to send [12:57:06]OFD Sender: No OFD packet to send [12:57:11]OFD Sender: No OFD packet to send [12:57:16]OFD Sender: No OFD packet to send [12:57:22]OFD Sender: No OFD packet to send [12:57:27]OFD Sender: No OFD packet to send [12:57:32]OFD Sender: No OFD packet to send [12:57:37]OFD Sender: No OFD packet to send [12:57:42]OFD Sender: No OFD packet to send [12:57:47]OFD Sender: No OFD packet to send [12:57:50]accept exits with 9 [12:57:50]New connection [12:57:50]New thread 3066568036 created [12:57:50]Thread 3066711396 joined [12:57:50]Waiting for new connection... [12:57:50] Sock 9.Parse request [12:57:50]Sock 9.Check first char [12:57:50]Sock 9.First char is OK [12:57:50]request: POST /json_proto HTTP/1.0 [12:57:50]Method: POST [12:57:50]URL: /json_proto [12:57:50]Method is POST - this is cgi request [12:57:50]url: /json_proto [12:57:50]query_string will be loaded in cgi processing [12:57:50]execute_cgi json_proto POST (null) [12:57:50]execute_cgi path=json_proto method=POST [12:57:50]POST find Content-Length [12:57:50]Host: 172.17.50.3:8080 [12:57:50]Content-Length: 686 [12:57:50]Content-Type: application/json [12:57:50] [12:57:50]POST finish read [12:57:50]Found Content-Length = 686 [12:57:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 54.010, "sum" : 2100.99, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 2100.00, "payments": [ { "type": 0, "sum" : 2100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:50]execute_script... [12:57: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)2885075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 54.010, "sum" : 2100.99, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 2100.00, "payments": [ { "type": 0, "sum" : 2100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:50]POST & json_proto [12:57:50]process_json_proto [12:57:50]json parsed OK: [12:57:50]protocol is kg_v1.0 [12:57:50]action value=close_receipt [12:57:50]process_action close_receipt [12:57:50]cmd_close_receipt [12:57:50]MH_GetDate [12:57:50]Write to MH i2c: F0 00 00 E6 00 D5 [12:57:50]Write i2c OK [12:57:50]MH_I2C_Read... [12:57:50]Read from MH i2c: F0 [12:57:50]MH_I2C_Read... [12:57:50]Read from MH i2c: F0 09 00 [12:57:50]MH_I2C_Read... [12:57:50]Read from MH i2c: F0 09 00 E6 00 00 4E FE 14 67 6B 98 1E 66 2C [12:57:50]GetLastDocTimeStamp 1729428538 [12:57:50]current date 1729429070 [12:57:50]FM_GetShiftState [12:57:50]SAM_PROTO_GetShiftState [12:57:50]wFMCommunicate request_size=4 [12:57:50]MH_SAM_APDU [12:57:50]CAPDU: 80 13 01 00 [12:57:50]Write to MH i2c: E2 08 00 E7 00 80 13 01 00 00 00 00 00 64 [12:57:50]Write i2c OK [12:57:50]MH_I2C_Read... [12:57:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:50]Read from MH i2c: E2 [12:57:50]MH_I2C_Read... [12:57:50]Read from MH i2c: E2 0E 00 [12:57:50]MH_I2C_Read... [12:57:50]Read from MH i2c: E2 0E 00 E7 00 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 6A [12:57:50]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:57:50]wFMCommunicate OK [12:57:50]SAM_PROTO_GetShiftState done [12:57:50]FM_GetShiftState done [12:57:50]opened in 1729383220 [12:57:50]opened+sec_in_day 1729469620 [12:57:50]quantity*price = 210098 [12:57:50]sum+1 = 210100 [12:57:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.99 ИТОГО: 2100.00 Внесено: 4000.00 СДАЧА: 1900.00 НСП 1% : 18.59 НДС 12% : 223.11 Наличными: 2100.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 198 20.10.2024 12:57 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69353 ФПД: 54147246938746 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T125751&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69353&fm=54147246938746&tin=02508201610067®Number=0000000000156251&sum=210000 [12:57:52]StoreToDocumentArchive [12:57:52]shift 193 fd 69353 [12:57:52]save to /storage/0193/doc_00069353 [12:57:52]save last doc name /storage/0193/doc_00069353 to /storage/kkm_last_doc_name [12:57:52]save OK [12:57:52]Clear old archive folders... [12:57:52]ProcessDocumentItem done err = 0, tmpTLVsize=250 [12:57:52]tlvbuf is 001FF230 [12:57:52]SAM_PROTO_ClearQueue [12:57:52]wFMCommunicate request_size=4 [12:57:52]MH_SAM_APDU [12:57:52]CAPDU: 80 09 00 00 [12:57:52]Write to MH i2c: E2 08 00 F4 00 80 09 00 00 00 00 00 00 66 [12:57:52]Write i2c OK [12:57:52]MH_I2C_Read... [12:57:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:57:52]Read from MH i2c: E2 [12:57:52]MH_I2C_Read... [12:57:52]Read from MH i2c: E2 03 00 [12:57:52]MH_I2C_Read... [12:57:52]Read from MH i2c: E2 03 00 F4 00 00 90 00 68 [12:57:52]RAPDU: 90 00 [12:57:52]wFMCommunicate OK [12:57:52]SAM_PROTO_ClearQueue done [12:57:52]KKMCreateOFDPacket [12:57:52]OFDProtocolAddRootSTLVToBuf [12:57:52]FM_MakeSignedData [12:57:52]FM_MakeSignedData [12:57:52]SAM_PROTO_SignData [12:57:52]wFMCommunicate request_size=4 [12:57:52]MH_SAM_APDU [12:57:52]CAPDU: 80 0D 01 02 [12:57:52]Write to MH i2c: E2 08 00 F5 00 80 0D 01 02 00 00 00 00 6E [12:57:52]Write i2c OK [12:57:52]MH_I2C_Read... [12:57:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:57:52]Read from MH i2c: E2 [12:57:52]MH_I2C_Read... [12:57:52]Read from MH i2c: E2 03 00 [12:57:52]MH_I2C_Read... [12:57:52]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [12:57:52]RAPDU: 90 00 [12:57:52]wFMCommunicate OK [12:57:52]wFMCommunicate request_size=255 [12:57:52]MH_SAM_APDU [12:57:52]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 FA D2 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 B3 34 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 34 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 57 00 00 00 00 07 04 06 00 50 34 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 4F FE 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E9 0E 01 00 35 04 06 00 31 3F [12:57:52]Write to MH i2c: E2 02 01 F6 00 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 FA D2 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 B3 34 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 34 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 57 00 00 00 00 07 04 06 00 50 34 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 4F FE 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E9 0E 01 00 35 04 06 00 31 3F 00 00 A4 [12:57:52]Write i2c OK [12:57:52]MH_I2C_Read... [12:57:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:52]Read from MH i2c: E2 [12:57:52]MH_I2C_Read... [12:57:52]Read from MH i2c: E2 03 00 [12:57:52]MH_I2C_Read... [12:57:52]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [12:57:52]RAPDU: 90 00 [12:57:52]wFMCommunicate OK [12:57:52]wFMCommunicate request_size=9 [12:57:52]MH_SAM_APDU [12:57:52]CAPDU: 80 0D 02 02 04 23 6B 5A 7A [12:57:52]Write to MH i2c: E2 0C 00 F7 00 80 0D 02 02 04 00 23 6B 5A 7A 00 00 DB [12:57:52]Write i2c OK [12:57:52]MH_I2C_Read... [12:57:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:52]Read from MH i2c: E2 [12:57:52]MH_I2C_Read... [12:57:52]Read from MH i2c: E2 03 00 [12:57:52]MH_I2C_Read... [12:57:52]Read from MH i2c: E2 03 00 F7 00 00 90 00 6B [12:57:52]RAPDU: 90 00 [12:57:52]wFMCommunicate OK [12:57:52]wFMCommunicate request_size=4 [12:57:52]MH_SAM_APDU [12:57:52]CAPDU: 80 0D 03 02 [12:57:52]Write to MH i2c: E2 08 00 F8 00 80 0D 03 02 00 00 00 00 73 [12:57:52]Write i2c OK [12:57:52]MH_I2C_Read... [12:57:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:57:52]Read from MH i2c: E2 [12:57:52]MH_I2C_Read... [12:57:52]Read from MH i2c: E2 0B 00 [12:57:52]MH_I2C_Read... [12:57:52]Read from MH i2c: E2 0B 00 F8 00 00 D0 5E 32 7D 76 E0 9B D3 90 00 15 [12:57:52]RAPDU: D0 5E 32 7D 76 E0 9B D3 90 00 [12:57:52]wFMCommunicate OK [12:57:52]SAM_PROTO_SignData done [12:57:52]FM_MakeSignedData done [12:57:52]CreateOFDProtocolMessage [12:57:52]wFMCommunicate request_size=4 [12:57:52]MH_SAM_APDU [12:57:52]CAPDU: 80 11 00 00 [12:57:52]Write to MH i2c: E2 08 00 F9 00 80 11 00 00 00 00 00 00 73 [12:57:52]Write i2c OK [12:57:52]MH_I2C_Read... [12:57:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:52]Read from MH i2c: E2 [12:57:52]MH_I2C_Read... [12:57:52]Read from MH i2c: E2 17 00 [12:57:52]MH_I2C_Read... [12:57:52]Read from MH i2c: E2 17 00 F9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C5 [12:57:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:57:52]wFMCommunicate OK [12:57:52]CreateOFDProtocolMessage done [12:57:52]OFDSenderStorePacket 69353 [12:57:52]StoreOFDPacket docnum=69353 [12:57:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 7C 20 06 01 38 2E 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 FA D2 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 B3 34 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 34 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 57 00 00 00 00 07 04 06 00 50 34 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 4F FE 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E9 0E 01 00 35 04 06 00 31 3F 23 6B 5A 7A D0 5E 32 7D 76 E0 9B D3 [12:57:52]CheckFolder [12:57:52]dirname=/storage/ofd_packets [12:57:52]CheckFolder done [12:57:52]ProducePacketName [12:57:52]name=ofd_packets/00069353 [12:57:52]NVStorageSaveData ofd_packets/00069353 [12:57:52]File name is /storage/ofd_packets/00069353 [12:57:52]Write 300 bytes [12:57:52]NVStorageSaveData done [12:57:52]OFDSenderStorePacket done [12:57:52]KKMCreateOFDPacket done [12:57:52]NVStorageSaveData kkm_last_timestamp [12:57:52]File name is /storage/kkm_last_timestamp [12:57:52]Write 4 bytes [12:57:52]NVStorageSaveData done [12:57:52]ExternCall_PrintAddStr [12:57:52]wPrintStart [12:57:52]Write to MH i2c: 01 00 00 FA 00 FA [12:57:52]Write i2c OK [12:57:52]MH_I2C_Read... [12:57:52]Read from MH i2c: 01 [12:57:52]MH_I2C_Read... [12:57:52]Read from MH i2c: 01 07 00 [12:57:52]MH_I2C_Read... [12:57:52]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [12:57:52]RasterBufferAndPrint [12:57:52]line Счет N : (1)2885075 [12:57:52]line ИНН: 02508201610067 [12:57:52]line Контрольно-Кассовый Чек [12:57:52]line ПРОДАЖА [12:57:52]line ТРК (МРК, ГНК) : 71 [12:57:52]line Товар: 2711129700 [12:57:52]line ГАЗ-К-3 [12:57:52]line 54.010 * 38.90 [12:57:52]line = 2100.99 [12:57:52]line НДС 12% НСП 1% [12:57:52]line > о реализуемом товаре [12:57:52]line ОКРУГЛЕНИЕ: -0.99 [12:57:52]line ИТОГО: 2100.00 [12:57:52]line Внесено: 4000.00 [12:57:52]line СДАЧА: 1900.00 [12:57:52]line НСП 1% : 18.59 [12:57:52]line НДС 12% : 223.11 [12:57:52]line Наличными: 2100.00 [12:57:52]line Безнал.: 0.00 [12:57:52]line Место: АЗС № 85 "Партнер Нефть" [12:57:52]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [12:57:52]line СНО: Общий режим [12:57:52]line Чек 198 20.10.2024 12:57 [12:57:52]line Смена: 193 ФФД: 1.0 [12:57:52]line ЗНМ: 0300000167 [12:57:52]line РНМ: 0000000000156251 [12:57:52]line Версия ККМ: v1.0 [12:57:52]line ФМ: 0000000000963346 [12:57:52]line ФД: 69353 [12:57:52]line ФПД: 54147246938746 [12:57:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T125751&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69353&fm=54147246938746&tin=02508201610067®Number=0000000000156251&sum=210000 [12:57:52]OFD Sender: Processing packet 69353 [packets to send 18, broken 17] [12:57:52]ProducePacketName [12:57:52]name=ofd_packets/00069353 [12:57:52]OFD Sender: To server: pG, [12:57:52]CommunicateWithHost lk.salyk.kg:30040 [12:57:52]ConnectInit lk.salyk.kg [12:57:52]written 0, free lines is 4095 [12:57:52]Connected sock=10 [12:57:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 7C 20 06 01 38 2E 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 FA D2 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 B3 34 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 34 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 57 00 00 00 00 07 04 06 00 50 34 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 4F FE 14 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E9 0E 01 00 35 04 06 00 31 3F 23 6B 5A 7A D0 5E 32 7D 76 E0 9B D3 [12:57:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 5B 0C 47 00 64 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E9 0E 01 00 F4 03 04 00 F5 A7 14 67 B6 04 01 00 00 30 74 10 43 5A 46 BE A9 [12:57:53]CommunicateWithHost err = 0 [12:57:53]CheckOFDResponse [12:57:53]1017 (14) - 77093643461234 [12:57:53]1041 (16) - 0000000000963346 [12:57:53]1040 (4) - 69353 [12:57:53]1012 (4) - 20.10.2024 06:49 [12:57:53]1206 (1) - 0 [12:57:53]OFD Sender: Remove packet 69353 [12:57:53]ProducePacketName [12:57:53]name=ofd_packets/00069353 [12:57:53]NVStorageDeleteData [12:57:53]Write to MH i2c: 01 00 00 25 01 26 [12:57:53]Write i2c OK [12:57:53]MH_I2C_Read... [12:57:53]Read from MH i2c: 01 [12:57:53]MH_I2C_Read... [12:57:53]Read from MH i2c: 01 07 00 [12:57:53]MH_I2C_Read... [12:57:53]Read from MH i2c: 01 07 00 25 01 00 00 00 00 00 F0 0C 29 [12:57:53]RasterBufferAndPrint [12:57:53]line [12:57:53]line [12:57:53]line [12:57:53]line [12:57:53]line [12:57:53]written 0, free lines is 3318 [12:57:53]MH_Cut [12:57:53]Write to MH i2c: D1 01 00 2C 01 01 FF [12:57:53]Write i2c OK [12:57:53]MH_I2C_Read... [12:57:53]Read from MH i2c: D1 [12:57:53]MH_I2C_Read... [12:57:53]Read from MH i2c: D1 01 00 [12:57:53]MH_I2C_Read... [12:57:53]Read from MH i2c: D1 01 00 2C 01 00 FE [12:57:53]Write to MH i2c: 01 00 00 2D 01 2E [12:57:53]Write i2c OK [12:57:53]MH_I2C_Read... [12:57:53]OFD Sender: No OFD packet to send [12:57:54]*** Cut start [12:57:54]*** Partial cut [12:57:54]*** CUTSNS_PIN = 1 [12:57:54]*** CUTSNS_PIN = 0 [12:57:54]*** Brake cut motor [12:57:54]Read from MH i2c: 01 [12:57:54]MH_I2C_Read... [12:57:54]*** Stop cut motor [12:57:54]*** Cut end [12:57:54]Read from MH i2c: 01 07 00 [12:57:54]MH_I2C_Read... [12:57:54]Read from MH i2c: 01 07 00 2D 01 00 00 00 00 00 FF 0F 43 [12:57:54]process_action close_receipt done [12:57:54]requested_data is exist [12:57:54]produce_requested_data [12:57:54]requested_item fm.sn is exist - process it [12:57:54]wFMCommunicate request_size=4 [12:57:54]MH_SAM_APDU [12:57:54]CAPDU: 80 11 00 00 [12:57:54]Write to MH i2c: E2 08 00 2E 01 80 11 00 00 00 00 00 00 A9 [12:57:54]Write i2c OK [12:57:54]MH_I2C_Read... [12:57:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:54]Read from MH i2c: E2 [12:57:54]MH_I2C_Read... [12:57:54]Read from MH i2c: E2 17 00 [12:57:54]MH_I2C_Read... [12:57:54]Read from MH i2c: E2 17 00 2E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FB [12:57:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [12:57:54]wFMCommunicate OK [12:57:54]requested_item fd.num is exist - process it [12:57:54]SAM_PROTO_GetFieldsCounters [12:57:54]wFMCommunicate request_size=4 [12:57:54]MH_SAM_APDU [12:57:54]CAPDU: 80 13 00 00 [12:57:54]Write to MH i2c: E2 08 00 2F 01 80 13 00 00 00 00 00 00 AC [12:57:54]Write i2c OK [12:57:54]MH_I2C_Read... [12:57:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:57:54]Read from MH i2c: E2 [12:57:54]MH_I2C_Read... [12:57:54]Read from MH i2c: E2 62 00 [12:57:54]MH_I2C_Read... [12:57:54]Read from MH i2c: E2 62 00 2F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E9 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [12:57:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E9 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:57:54]wFMCommunicate OK [12:57:54]SAM_PROTO_GetFieldsCounters done [12:57:54]requested_item shift.num is exist - process it [12:57:54]requested_item shift.opened is exist - process it [12:57:54]req_shift_opened [12:57:54]FM_GetShiftState [12:57:54]SAM_PROTO_GetShiftState [12:57:54]wFMCommunicate request_size=4 [12:57:54]MH_SAM_APDU [12:57:54]CAPDU: 80 13 01 00 [12:57:54]Write to MH i2c: E2 08 00 30 01 80 13 01 00 00 00 00 00 AE [12:57:54]Write i2c OK [12:57:54]MH_I2C_Read... [12:57:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:54]Read from MH i2c: E2 [12:57:54]MH_I2C_Read... [12:57:54]Read from MH i2c: E2 0E 00 [12:57:54]MH_I2C_Read... [12:57:54]Read from MH i2c: E2 0E 00 30 01 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 B4 [12:57:54]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [12:57:54]wFMCommunicate OK [12:57:54]SAM_PROTO_GetShiftState done [12:57:54]FM_GetShiftState done [12:57:54]req_shift_opened done [12:57:54]requested_item shift.open_date is exist - process it [12:57:54]req_shift_open_date [12:57:54]req_shift_open_date done [12:57:54]produce_requested_data done [12:57:54]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69353,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [12:57:54]process_action_free close_receipt [12:57:54]json_value_free [12:57:54]json_value_free done [12:57:54]process_json_proto returns [12:57:54]Send response to host [12:57:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69353,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [12:57:54]free response buf [12:57:54]execute_script done [12:57:54]execute_script returns [12:57:54]free content buf [12:57:54]Sock 9.Close socket [12:57:54]Sock 9.Thread stoped [12:57:58]OFD Sender: No OFD packet to send [12:58:03]OFD Sender: No OFD packet to send [12:58:08]OFD Sender: No OFD packet to send [12:58:13]OFD Sender: No OFD packet to send [12:58:18]OFD Sender: No OFD packet to send [12:58:23]OFD Sender: No OFD packet to send [12:58:28]OFD Sender: No OFD packet to send [12:58:33]OFD Sender: No OFD packet to send [12:58:38]OFD Sender: No OFD packet to send [12:58:43]OFD Sender: No OFD packet to send [12:58:48]OFD Sender: No OFD packet to send [12:58:53]OFD Sender: No OFD packet to send [12:58:58]OFD Sender: No OFD packet to send [12:59:03]OFD Sender: No OFD packet to send [12:59:08]OFD Sender: No OFD packet to send [12:59:13]OFD Sender: No OFD packet to send [12:59:18]OFD Sender: No OFD packet to send [12:59:23]OFD Sender: No OFD packet to send [12:59:28]OFD Sender: No OFD packet to send [12:59:33]OFD Sender: No OFD packet to send [12:59:38]OFD Sender: No OFD packet to send [12:59:43]OFD Sender: No OFD packet to send [12:59:48]OFD Sender: No OFD packet to send [12:59:53]OFD Sender: No OFD packet to send [12:59:58]OFD Sender: No OFD packet to send [13:00:03]OFD Sender: No OFD packet to send [13:00:08]OFD Sender: No OFD packet to send [13:00:13]OFD Sender: No OFD packet to send [13:00:18]OFD Sender: No OFD packet to send [13:00:23]OFD Sender: No OFD packet to send [13:00:28]OFD Sender: No OFD packet to send [13:00:33]OFD Sender: No OFD packet to send [13:00:38]OFD Sender: No OFD packet to send [13:00:43]OFD Sender: No OFD packet to send [13:00:48]OFD Sender: No OFD packet to send [13:00:53]OFD Sender: No OFD packet to send [13:00:58]OFD Sender: No OFD packet to send [13:01:03]OFD Sender: No OFD packet to send [13:01:08]OFD Sender: No OFD packet to send [13:01:13]OFD Sender: No OFD packet to send [13:01:18]OFD Sender: No OFD packet to send [13:01:23]OFD Sender: No OFD packet to send [13:01:28]OFD Sender: No OFD packet to send [13:01:33]OFD Sender: No OFD packet to send [13:01:38]OFD Sender: No OFD packet to send [13:01:43]OFD Sender: No OFD packet to send [13:01:48]OFD Sender: No OFD packet to send [13:01:53]OFD Sender: No OFD packet to send [13:01:58]OFD Sender: No OFD packet to send [13:02:03]OFD Sender: No OFD packet to send [13:02:08]OFD Sender: No OFD packet to send [13:02:13]OFD Sender: No OFD packet to send [13:02:18]OFD Sender: No OFD packet to send [13:02:23]OFD Sender: No OFD packet to send [13:02:28]OFD Sender: No OFD packet to send [13:02:33]OFD Sender: No OFD packet to send [13:02:38]OFD Sender: No OFD packet to send [13:02:43]OFD Sender: No OFD packet to send [13:02:48]OFD Sender: No OFD packet to send [13:02:53]OFD Sender: No OFD packet to send [13:02:58]OFD Sender: No OFD packet to send [13:03:03]OFD Sender: No OFD packet to send [13:03:08]OFD Sender: No OFD packet to send [13:03:13]OFD Sender: No OFD packet to send [13:03:18]OFD Sender: No OFD packet to send [13:03:23]OFD Sender: No OFD packet to send [13:03:28]OFD Sender: No OFD packet to send [13:03:33]OFD Sender: No OFD packet to send [13:03:38]OFD Sender: No OFD packet to send [13:03:44]OFD Sender: No OFD packet to send [13:03:49]OFD Sender: No OFD packet to send [13:03:54]OFD Sender: No OFD packet to send [13:03:59]OFD Sender: No OFD packet to send [13:04:04]OFD Sender: No OFD packet to send [13:04:09]OFD Sender: No OFD packet to send [13:04:14]OFD Sender: No OFD packet to send [13:04:19]OFD Sender: No OFD packet to send [13:04:24]OFD Sender: No OFD packet to send [13:04:29]OFD Sender: No OFD packet to send [13:04:34]OFD Sender: No OFD packet to send [13:04:39]OFD Sender: No OFD packet to send [13:04:44]OFD Sender: No OFD packet to send [13:04:49]OFD Sender: No OFD packet to send [13:04:54]OFD Sender: No OFD packet to send [13:04:59]OFD Sender: No OFD packet to send [13:05:04]OFD Sender: No OFD packet to send [13:05:09]OFD Sender: No OFD packet to send [13:05:14]OFD Sender: No OFD packet to send [13:05:19]OFD Sender: No OFD packet to send [13:05:24]OFD Sender: No OFD packet to send [13:05:29]OFD Sender: No OFD packet to send [13:05:34]OFD Sender: No OFD packet to send [13:05:39]OFD Sender: No OFD packet to send [13:05:44]OFD Sender: No OFD packet to send [13:05:49]OFD Sender: No OFD packet to send [13:05:54]OFD Sender: No OFD packet to send [13:05:59]OFD Sender: No OFD packet to send [13:06:04]OFD Sender: No OFD packet to send [13:06:09]OFD Sender: No OFD packet to send [13:06:14]OFD Sender: No OFD packet to send [13:06:19]OFD Sender: No OFD packet to send [13:06:24]OFD Sender: No OFD packet to send [13:06:29]OFD Sender: No OFD packet to send [13:06:34]OFD Sender: No OFD packet to send [13:06:39]OFD Sender: No OFD packet to send [13:06:44]OFD Sender: No OFD packet to send [13:06:49]OFD Sender: No OFD packet to send [13:06:54]OFD Sender: No OFD packet to send [13:06:59]OFD Sender: No OFD packet to send [13:07:04]OFD Sender: No OFD packet to send [13:07:09]OFD Sender: No OFD packet to send [13:07:14]OFD Sender: No OFD packet to send [13:07:19]OFD Sender: No OFD packet to send [13:07:24]OFD Sender: No OFD packet to send [13:07:29]OFD Sender: No OFD packet to send [13:07:34]OFD Sender: No OFD packet to send [13:07:39]OFD Sender: No OFD packet to send [13:07:44]OFD Sender: No OFD packet to send [13:07:49]OFD Sender: No OFD packet to send [13:07:54]OFD Sender: No OFD packet to send [13:07:59]OFD Sender: No OFD packet to send [13:08:04]OFD Sender: No OFD packet to send [13:08:09]OFD Sender: No OFD packet to send [13:08:14]OFD Sender: No OFD packet to send [13:08:19]OFD Sender: No OFD packet to send [13:08:24]OFD Sender: No OFD packet to send [13:08:29]OFD Sender: No OFD packet to send [13:08:34]OFD Sender: No OFD packet to send [13:08:39]OFD Sender: No OFD packet to send [13:08:44]OFD Sender: No OFD packet to send [13:08:49]OFD Sender: No OFD packet to send [13:08:54]OFD Sender: No OFD packet to send [13:08:59]OFD Sender: No OFD packet to send [13:09:04]OFD Sender: No OFD packet to send [13:09:09]OFD Sender: No OFD packet to send [13:09:14]OFD Sender: No OFD packet to send [13:09:19]OFD Sender: No OFD packet to send [13:09:24]OFD Sender: No OFD packet to send [13:09:29]OFD Sender: No OFD packet to send [13:09:34]OFD Sender: No OFD packet to send [13:09:39]OFD Sender: No OFD packet to send [13:09:44]OFD Sender: No OFD packet to send [13:09:49]OFD Sender: No OFD packet to send [13:09:54]OFD Sender: No OFD packet to send [13:09:59]OFD Sender: No OFD packet to send [13:10:04]OFD Sender: No OFD packet to send [13:10:09]OFD Sender: No OFD packet to send [13:10:14]OFD Sender: No OFD packet to send [13:10:18]accept exits with 8 [13:10:18]New connection [13:10:18]New thread 3066711396 created [13:10:18]Thread 3066568036 joined [13:10:18]Waiting for new connection... [13:10:18] Sock 8.Parse request [13:10:18]Sock 8.Check first char [13:10:18]Sock 8.First char is OK [13:10:18]request: POST /json_proto HTTP/1.0 [13:10:18]Method: POST [13:10:18]URL: /json_proto [13:10:18]Method is POST - this is cgi request [13:10:18]url: /json_proto [13:10:18]query_string will be loaded in cgi processing [13:10:18]execute_cgi json_proto POST (null) [13:10:18]execute_cgi path=json_proto method=POST [13:10:18]POST find Content-Length [13:10:18]Host: 172.17.50.3:8080 [13:10:18]Content-Length: 675 [13:10:18]Content-Type: application/json [13:10:18] [13:10:18]POST finish read [13:10:18]Found Content-Length = 675 [13:10:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:18]execute_script... [13:10:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:18]POST & json_proto [13:10:18]process_json_proto [13:10:18]json parsed OK: [13:10:18]protocol is kg_v1.0 [13:10:18]action value=close_receipt [13:10:18]process_action close_receipt [13:10:18]cmd_close_receipt [13:10:18]MH_GetDate [13:10:18]Write to MH i2c: F0 00 00 31 01 21 [13:10:18]Write i2c OK [13:10:18]MH_I2C_Read... [13:10:18]Read from MH i2c: F0 [13:10:18]MH_I2C_Read... [13:10:18]Read from MH i2c: F0 09 00 [13:10:18]MH_I2C_Read... [13:10:18]Read from MH i2c: F0 09 00 31 01 00 3A 01 15 67 6B 98 1E 66 68 [13:10:18]GetLastDocTimeStamp 1729429071 [13:10:18]current date 1729429818 [13:10:18]FM_GetShiftState [13:10:18]SAM_PROTO_GetShiftState [13:10:18]wFMCommunicate request_size=4 [13:10:18]MH_SAM_APDU [13:10:18]CAPDU: 80 13 01 00 [13:10:18]Write to MH i2c: E2 08 00 32 01 80 13 01 00 00 00 00 00 B0 [13:10:18]Write i2c OK [13:10:18]MH_I2C_Read... [13:10:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:18]Read from MH i2c: E2 [13:10:18]MH_I2C_Read... [13:10:18]Read from MH i2c: E2 0E 00 [13:10:18]MH_I2C_Read... [13:10:18]Read from MH i2c: E2 0E 00 32 01 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 B6 [13:10:18]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [13:10:18]wFMCommunicate OK [13:10:18]SAM_PROTO_GetShiftState done [13:10:18]FM_GetShiftState done [13:10:18]opened in 1729383220 [13:10:18]opened+sec_in_day 1729469620 [13:10:18]quantity*price = 50063 [13:10:18]sum+1 = 50064 [13:10:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 199 20.10.2024 13:10 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69354 ФПД: 47651377707102 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131019&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69354&fm=47651377707102&tin=02508201610067®Number=0000000000156251&sum=50000 [13:10:19]StoreToDocumentArchive [13:10:19]shift 193 fd 69354 [13:10:19]save to /storage/0193/doc_00069354 [13:10:19]save last doc name /storage/0193/doc_00069354 to /storage/kkm_last_doc_name [13:10:19]save OK [13:10:19]Clear old archive folders... [13:10:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:10:19]tlvbuf is 00244C50 [13:10:19]SAM_PROTO_ClearQueue [13:10:19]wFMCommunicate request_size=4 [13:10:19]MH_SAM_APDU [13:10:19]CAPDU: 80 09 00 00 [13:10:19]Write to MH i2c: E2 08 00 3F 01 80 09 00 00 00 00 00 00 B2 [13:10:19]Write i2c OK [13:10:19]MH_I2C_Read... [13:10:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:10:20]Read from MH i2c: E2 [13:10:20]MH_I2C_Read... [13:10:20]Read from MH i2c: E2 03 00 [13:10:20]MH_I2C_Read... [13:10:20]Read from MH i2c: E2 03 00 3F 01 00 90 00 B4 [13:10:20]RAPDU: 90 00 [13:10:20]wFMCommunicate OK [13:10:20]SAM_PROTO_ClearQueue done [13:10:20]KKMCreateOFDPacket [13:10:20]OFDProtocolAddRootSTLVToBuf [13:10:20]FM_MakeSignedData [13:10:20]FM_MakeSignedData [13:10:20]SAM_PROTO_SignData [13:10:20]wFMCommunicate request_size=4 [13:10:20]MH_SAM_APDU [13:10:20]CAPDU: 80 0D 01 02 [13:10:20]Write to MH i2c: E2 08 00 40 01 80 0D 01 02 00 00 00 00 BA [13:10:20]Write i2c OK [13:10:20]MH_I2C_Read... [13:10:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:10:20]Read from MH i2c: E2 [13:10:20]MH_I2C_Read... [13:10:20]Read from MH i2c: E2 03 00 [13:10:20]MH_I2C_Read... [13:10:20]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [13:10:20]RAPDU: 90 00 [13:10:20]wFMCommunicate OK [13:10:20]wFMCommunicate request_size=255 [13:10:20]MH_SAM_APDU [13:10: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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 3B 01 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EA 0E 01 00 35 04 06 00 2B 56 B3 70 [13:10:20]Write to MH i2c: E2 02 01 41 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 3B 01 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EA 0E 01 00 35 04 06 00 2B 56 B3 70 00 00 9E [13:10:20]Write i2c OK [13:10:20]MH_I2C_Read... [13:10:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:20]Read from MH i2c: E2 [13:10:20]MH_I2C_Read... [13:10:20]Read from MH i2c: E2 03 00 [13:10:20]MH_I2C_Read... [13:10:20]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [13:10:20]RAPDU: 90 00 [13:10:20]wFMCommunicate OK [13:10:20]wFMCommunicate request_size=7 [13:10:20]MH_SAM_APDU [13:10:20]CAPDU: 80 0D 02 02 02 F8 5E [13:10:20]Write to MH i2c: E2 0A 00 42 01 80 0D 02 02 02 00 F8 5E 00 00 17 [13:10:20]Write i2c OK [13:10:20]MH_I2C_Read... [13:10:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:20]Read from MH i2c: E2 [13:10:20]MH_I2C_Read... [13:10:20]Read from MH i2c: E2 03 00 [13:10:20]MH_I2C_Read... [13:10:20]Read from MH i2c: E2 03 00 42 01 00 90 00 B7 [13:10:20]RAPDU: 90 00 [13:10:20]wFMCommunicate OK [13:10:20]wFMCommunicate request_size=4 [13:10:20]MH_SAM_APDU [13:10:20]CAPDU: 80 0D 03 02 [13:10:20]Write to MH i2c: E2 08 00 43 01 80 0D 03 02 00 00 00 00 BF [13:10:20]Write i2c OK [13:10:20]MH_I2C_Read... [13:10:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:10:20]Read from MH i2c: E2 [13:10:20]MH_I2C_Read... [13:10:20]Read from MH i2c: E2 0B 00 [13:10:20]MH_I2C_Read... [13:10:20]Read from MH i2c: E2 0B 00 43 01 00 ED C6 6D 9A B0 15 3B AA 90 00 24 [13:10:20]RAPDU: ED C6 6D 9A B0 15 3B AA 90 00 [13:10:20]wFMCommunicate OK [13:10:20]SAM_PROTO_SignData done [13:10:20]FM_MakeSignedData done [13:10:20]CreateOFDProtocolMessage [13:10:20]wFMCommunicate request_size=4 [13:10:20]MH_SAM_APDU [13:10:20]CAPDU: 80 11 00 00 [13:10:20]Write to MH i2c: E2 08 00 44 01 80 11 00 00 00 00 00 00 BF [13:10:20]Write i2c OK [13:10:20]MH_I2C_Read... [13:10:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:20]Read from MH i2c: E2 [13:10:20]MH_I2C_Read... [13:10:20]Read from MH i2c: E2 17 00 [13:10:20]MH_I2C_Read... [13:10:20]Read from MH i2c: E2 17 00 44 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 11 [13:10:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:10:20]wFMCommunicate OK [13:10:20]CreateOFDProtocolMessage done [13:10:20]OFDSenderStorePacket 69354 [13:10:20]StoreOFDPacket docnum=69354 [13:10:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 58 7E 04 01 4A 15 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 3B 01 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EA 0E 01 00 35 04 06 00 2B 56 B3 70 F8 5E ED C6 6D 9A B0 15 3B AA [13:10:20]CheckFolder [13:10:20]dirname=/storage/ofd_packets [13:10:20]CheckFolder done [13:10:20]ProducePacketName [13:10:20]name=ofd_packets/00069354 [13:10:20]NVStorageSaveData ofd_packets/00069354 [13:10:20]File name is /storage/ofd_packets/00069354 [13:10:20]Write 298 bytes [13:10:20]NVStorageSaveData done [13:10:20]OFDSenderStorePacket done [13:10:20]KKMCreateOFDPacket done [13:10:20]NVStorageSaveData kkm_last_timestamp [13:10:20]File name is /storage/kkm_last_timestamp [13:10:20]Write 4 bytes [13:10:20]NVStorageSaveData done [13:10:20]ExternCall_PrintAddStr [13:10:20]wPrintStart [13:10:20]Write to MH i2c: 01 00 00 45 01 46 [13:10:20]Write i2c OK [13:10:20]MH_I2C_Read... [13:10:20]Read from MH i2c: 01 [13:10:20]MH_I2C_Read... [13:10:20]Read from MH i2c: 01 07 00 [13:10:20]MH_I2C_Read... [13:10:20]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 FF 0F 5B [13:10:20]RasterBufferAndPrint [13:10:20]line Счет N : (1)2885076 [13:10:20]line ИНН: 02508201610067 [13:10:20]line Контрольно-Кассовый Чек [13:10:20]line ПРОДАЖА [13:10:20]line ТРК (МРК, ГНК) : 51 [13:10:20]line Товар: 2710194210 [13:10:20]line ДТ-К-5 [13:10:20]line 6.570 * 76.20 [13:10:20]line = 500.63 [13:10:20]line НДС 12% НСП 1% [13:10:20]line > о реализуемом товаре [13:10:20]line ОКРУГЛЕНИЕ: -0.63 [13:10:20]line ИТОГО: 500.00 [13:10:20]line Внесено: 500.00 [13:10:20]line СДАЧА: 0.00 [13:10:20]line НСП 1% : 4.43 [13:10:20]line НДС 12% : 53.16 [13:10:20]line Наличными: 500.00 [13:10:20]line Безнал.: 0.00 [13:10:20]line Место: АЗС № 85 "Партнер Нефть" [13:10:20]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:10:20]line СНО: Общий режим [13:10:20]line Чек 199 20.10.2024 13:10 [13:10:20]line Смена: 193 ФФД: 1.0 [13:10:20]line ЗНМ: 0300000167 [13:10:20]line РНМ: 0000000000156251 [13:10:20]line Версия ККМ: v1.0 [13:10:20]line ФМ: 0000000000963346 [13:10:20]line ФД: 69354 [13:10:20]line ФПД: 47651377707102 [13:10:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131019&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69354&fm=47651377707102&tin=02508201610067®Number=0000000000156251&sum=50000 [13:10:20]OFD Sender: Processing packet 69354 [packets to send 18, broken 17] [13:10:20]ProducePacketName [13:10:20]name=ofd_packets/00069354 [13:10:20]OFD Sender: To server: pG, [13:10:20]CommunicateWithHost lk.salyk.kg:30040 [13:10:20]ConnectInit lk.salyk.kg [13:10:20]written 0, free lines is 4095 [13:10:20]Connected sock=10 [13:10:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 58 7E 04 01 4A 15 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 3B 01 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EA 0E 01 00 35 04 06 00 2B 56 B3 70 F8 5E ED C6 6D 9A B0 15 3B AA [13:10:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 24 F7 47 00 21 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EA 0E 01 00 F4 03 04 00 E1 AA 14 67 B6 04 01 00 00 78 57 FE 4E 63 2D 43 60 [13:10:21]CommunicateWithHost err = 0 [13:10:21]CheckOFDResponse [13:10:21]1017 (14) - 77093643461234 [13:10:21]1041 (16) - 0000000000963346 [13:10:21]1040 (4) - 69354 [13:10:21]1012 (4) - 20.10.2024 07:01 [13:10:21]1206 (1) - 0 [13:10:21]OFD Sender: Remove packet 69354 [13:10:21]ProducePacketName [13:10:21]name=ofd_packets/00069354 [13:10:21]NVStorageDeleteData [13:10:21]Write to MH i2c: 01 00 00 70 01 71 [13:10:21]Write i2c OK [13:10:21]MH_I2C_Read... [13:10:21]Read from MH i2c: 01 [13:10:21]MH_I2C_Read... [13:10:21]Read from MH i2c: 01 07 00 [13:10:21]MH_I2C_Read... [13:10:21]Read from MH i2c: 01 07 00 70 01 00 00 00 00 00 F9 0C 7D [13:10:21]RasterBufferAndPrint [13:10:21]line [13:10:21]line [13:10:21]line [13:10:21]line [13:10:21]line [13:10:21]written 0, free lines is 3327 [13:10:21]MH_Cut [13:10:21]Write to MH i2c: D1 01 00 77 01 01 4A [13:10:21]Write i2c OK [13:10:21]MH_I2C_Read... [13:10:21]Read from MH i2c: D1 [13:10:21]MH_I2C_Read... [13:10:21]Read from MH i2c: D1 01 00 [13:10:21]MH_I2C_Read... [13:10:21]Read from MH i2c: D1 01 00 77 01 00 49 [13:10:21]Write to MH i2c: 01 00 00 78 01 79 [13:10:21]Write i2c OK [13:10:21]MH_I2C_Read... [13:10:21]OFD Sender: No OFD packet to send [13:10:21]*** Cut start [13:10:21]*** Partial cut [13:10:21]*** CUTSNS_PIN = 1 [13:10:22]*** CUTSNS_PIN = 0 [13:10:22]*** Brake cut motor [13:10:22]Read from MH i2c: 01 [13:10:22]MH_I2C_Read... [13:10:22]*** Stop cut motor [13:10:22]*** Cut end [13:10:22]Read from MH i2c: 01 07 00 [13:10:22]MH_I2C_Read... [13:10:22]Read from MH i2c: 01 07 00 78 01 00 00 00 00 00 FF 0F 8E [13:10:22]process_action close_receipt done [13:10:22]requested_data is exist [13:10:22]produce_requested_data [13:10:22]requested_item fm.sn is exist - process it [13:10:22]wFMCommunicate request_size=4 [13:10:22]MH_SAM_APDU [13:10:22]CAPDU: 80 11 00 00 [13:10:22]Write to MH i2c: E2 08 00 79 01 80 11 00 00 00 00 00 00 F4 [13:10:22]Write i2c OK [13:10:22]MH_I2C_Read... [13:10:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:22]Read from MH i2c: E2 [13:10:22]MH_I2C_Read... [13:10:22]Read from MH i2c: E2 17 00 [13:10:22]MH_I2C_Read... [13:10:22]Read from MH i2c: E2 17 00 79 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 46 [13:10:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:10:22]wFMCommunicate OK [13:10:22]requested_item fd.num is exist - process it [13:10:22]SAM_PROTO_GetFieldsCounters [13:10:22]wFMCommunicate request_size=4 [13:10:22]MH_SAM_APDU [13:10:22]CAPDU: 80 13 00 00 [13:10:22]Write to MH i2c: E2 08 00 7A 01 80 13 00 00 00 00 00 00 F7 [13:10:22]Write i2c OK [13:10:22]MH_I2C_Read... [13:10:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:10:22]Read from MH i2c: E2 [13:10:22]MH_I2C_Read... [13:10:22]Read from MH i2c: E2 62 00 [13:10:22]MH_I2C_Read... [13:10:22]Read from MH i2c: E2 62 00 7A 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EA 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [13:10:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EA 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:10:22]wFMCommunicate OK [13:10:22]SAM_PROTO_GetFieldsCounters done [13:10:22]requested_item shift.num is exist - process it [13:10:22]requested_item shift.opened is exist - process it [13:10:22]req_shift_opened [13:10:22]FM_GetShiftState [13:10:22]SAM_PROTO_GetShiftState [13:10:22]wFMCommunicate request_size=4 [13:10:22]MH_SAM_APDU [13:10:22]CAPDU: 80 13 01 00 [13:10:22]Write to MH i2c: E2 08 00 7B 01 80 13 01 00 00 00 00 00 F9 [13:10:22]Write i2c OK [13:10:22]MH_I2C_Read... [13:10:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:22]Read from MH i2c: E2 [13:10:22]MH_I2C_Read... [13:10:22]Read from MH i2c: E2 0E 00 [13:10:22]MH_I2C_Read... [13:10:22]Read from MH i2c: E2 0E 00 7B 01 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 FF [13:10:22]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [13:10:22]wFMCommunicate OK [13:10:22]SAM_PROTO_GetShiftState done [13:10:22]FM_GetShiftState done [13:10:22]req_shift_opened done [13:10:22]requested_item shift.open_date is exist - process it [13:10:22]req_shift_open_date [13:10:22]req_shift_open_date done [13:10:22]produce_requested_data done [13:10:22]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69354,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [13:10:22]process_action_free close_receipt [13:10:22]json_value_free [13:10:22]json_value_free done [13:10:22]process_json_proto returns [13:10:22]Send response to host [13:10:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69354,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [13:10:22]free response buf [13:10:22]execute_script done [13:10:22]execute_script returns [13:10:22]free content buf [13:10:22]Sock 8.Close socket [13:10:22]Sock 8.Thread stoped [13:10:26]OFD Sender: No OFD packet to send [13:10:31]OFD Sender: No OFD packet to send [13:10:36]OFD Sender: No OFD packet to send [13:10:41]OFD Sender: No OFD packet to send [13:10:46]OFD Sender: No OFD packet to send [13:10:51]OFD Sender: No OFD packet to send [13:10:56]OFD Sender: No OFD packet to send [13:11:01]OFD Sender: No OFD packet to send [13:11:06]OFD Sender: No OFD packet to send [13:11:11]OFD Sender: No OFD packet to send [13:11:16]OFD Sender: No OFD packet to send [13:11:21]OFD Sender: No OFD packet to send [13:11:26]OFD Sender: No OFD packet to send [13:11:27]accept exits with 9 [13:11:27]New connection [13:11:27]New thread 3066568036 created [13:11:27]Thread 3066711396 joined [13:11:27]Waiting for new connection... [13:11:27] Sock 9.Parse request [13:11:27]Sock 9.Check first char [13:11:27]Sock 9.First char is OK [13:11:27]request: POST /json_proto HTTP/1.0 [13:11:27]Method: POST [13:11:27]URL: /json_proto [13:11:27]Method is POST - this is cgi request [13:11:27]url: /json_proto [13:11:27]query_string will be loaded in cgi processing [13:11:27]execute_cgi json_proto POST (null) [13:11:27]execute_cgi path=json_proto method=POST [13:11:27]POST find Content-Length [13:11:27]Host: 172.17.50.3:8080 [13:11:27]Content-Length: 767 [13:11:27]Content-Type: application/json [13:11:27] [13:11:27]POST finish read [13:11:27]Found Content-Length = 767 [13:11:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:27]execute_script... [13:11: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)2885077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:27]POST & json_proto [13:11:27]process_json_proto [13:11:27]json parsed OK: [13:11:27]protocol is kg_v1.0 [13:11:27]action value=close_receipt [13:11:27]process_action close_receipt [13:11:27]cmd_close_receipt [13:11:27]MH_GetDate [13:11:27]Write to MH i2c: F0 00 00 7C 01 6C [13:11:27]Write i2c OK [13:11:27]MH_I2C_Read... [13:11:27]Read from MH i2c: F0 [13:11:27]MH_I2C_Read... [13:11:27]Read from MH i2c: F0 09 00 [13:11:27]MH_I2C_Read... [13:11:27]Read from MH i2c: F0 09 00 7C 01 00 80 01 15 67 6B 98 1E 66 F9 [13:11:27]GetLastDocTimeStamp 1729429819 [13:11:27]current date 1729429888 [13:11:27]FM_GetShiftState [13:11:27]SAM_PROTO_GetShiftState [13:11:27]wFMCommunicate request_size=4 [13:11:27]MH_SAM_APDU [13:11:27]CAPDU: 80 13 01 00 [13:11:27]Write to MH i2c: E2 08 00 7D 01 80 13 01 00 00 00 00 00 FB [13:11:27]Write i2c OK [13:11:27]MH_I2C_Read... [13:11:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:27]Read from MH i2c: E2 [13:11:27]MH_I2C_Read... [13:11:27]Read from MH i2c: E2 0E 00 [13:11:27]MH_I2C_Read... [13:11:27]Read from MH i2c: E2 0E 00 7D 01 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 01 [13:11:27]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [13:11:27]wFMCommunicate OK [13:11:27]SAM_PROTO_GetShiftState done [13:11:27]FM_GetShiftState done [13:11:27]opened in 1729383220 [13:11:27]opened+sec_in_day 1729469620 [13:11:27]quantity*price = 50041 [13:11:27]sum+1 = 50042 [13:11:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 200 20.10.2024 13:11 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69355 ФПД: 186888622889848 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131128&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69355&fm=186888622889848&tin=02508201610067®Number=0000000000156251&sum=50041 [13:11:29]StoreToDocumentArchive [13:11:29]shift 193 fd 69355 [13:11:29]save to /storage/0193/doc_00069355 [13:11:29]save last doc name /storage/0193/doc_00069355 to /storage/kkm_last_doc_name [13:11:29]save OK [13:11:29]Clear old archive folders... [13:11:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:11:29]tlvbuf is 00257210 [13:11:29]SAM_PROTO_ClearQueue [13:11:29]wFMCommunicate request_size=4 [13:11:29]MH_SAM_APDU [13:11:29]CAPDU: 80 09 00 00 [13:11:29]Write to MH i2c: E2 08 00 8A 01 80 09 00 00 00 00 00 00 FD [13:11:29]Write i2c OK [13:11:29]MH_I2C_Read... [13:11:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:11:29]Read from MH i2c: E2 [13:11:29]MH_I2C_Read... [13:11:29]Read from MH i2c: E2 03 00 [13:11:29]MH_I2C_Read... [13:11:29]Read from MH i2c: E2 03 00 8A 01 00 90 00 FF [13:11:29]RAPDU: 90 00 [13:11:29]wFMCommunicate OK [13:11:29]SAM_PROTO_ClearQueue done [13:11:29]KKMCreateOFDPacket [13:11:29]OFDProtocolAddRootSTLVToBuf [13:11:29]FM_MakeSignedData [13:11:29]FM_MakeSignedData [13:11:29]SAM_PROTO_SignData [13:11:29]wFMCommunicate request_size=4 [13:11:29]MH_SAM_APDU [13:11:29]CAPDU: 80 0D 01 02 [13:11:29]Write to MH i2c: E2 08 00 8B 01 80 0D 01 02 00 00 00 00 05 [13:11:29]Write i2c OK [13:11:29]MH_I2C_Read... [13:11:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:11:29]Read from MH i2c: E2 [13:11:29]MH_I2C_Read... [13:11:29]Read from MH i2c: E2 03 00 [13:11:29]MH_I2C_Read... [13:11:29]Read from MH i2c: E2 03 00 8B 01 00 90 00 00 [13:11:29]RAPDU: 90 00 [13:11:29]wFMCommunicate OK [13:11:29]wFMCommunicate request_size=255 [13:11:29]MH_SAM_APDU [13:11:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 80 01 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EB 0E 01 00 35 04 06 00 A9 [13:11:29]Write to MH i2c: E2 02 01 8C 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 80 01 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EB 0E 01 00 35 04 06 00 A9 00 00 09 [13:11:29]Write i2c OK [13:11:29]MH_I2C_Read... [13:11:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:29]Read from MH i2c: E2 [13:11:29]MH_I2C_Read... [13:11:29]Read from MH i2c: E2 03 00 [13:11:29]MH_I2C_Read... [13:11:29]Read from MH i2c: E2 03 00 8C 01 00 90 00 01 [13:11:29]RAPDU: 90 00 [13:11:29]wFMCommunicate OK [13:11:29]wFMCommunicate request_size=10 [13:11:29]MH_SAM_APDU [13:11:29]CAPDU: 80 0D 02 02 05 F9 65 FA DB 78 [13:11:29]Write to MH i2c: E2 0D 00 8D 01 80 0D 02 02 05 00 F9 65 FA DB 78 00 00 BD [13:11:29]Write i2c OK [13:11:29]MH_I2C_Read... [13:11:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:29]Read from MH i2c: E2 [13:11:29]MH_I2C_Read... [13:11:29]Read from MH i2c: E2 03 00 [13:11:29]MH_I2C_Read... [13:11:29]Read from MH i2c: E2 03 00 8D 01 00 90 00 02 [13:11:29]RAPDU: 90 00 [13:11:29]wFMCommunicate OK [13:11:29]wFMCommunicate request_size=4 [13:11:29]MH_SAM_APDU [13:11:29]CAPDU: 80 0D 03 02 [13:11:29]Write to MH i2c: E2 08 00 8E 01 80 0D 03 02 00 00 00 00 0A [13:11:29]Write i2c OK [13:11:29]MH_I2C_Read... [13:11:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:11:29]Read from MH i2c: E2 [13:11:29]MH_I2C_Read... [13:11:29]Read from MH i2c: E2 0B 00 [13:11:29]MH_I2C_Read... [13:11:29]Read from MH i2c: E2 0B 00 8E 01 00 76 3B B8 24 6A 00 1E 84 90 00 A4 [13:11:29]RAPDU: 76 3B B8 24 6A 00 1E 84 90 00 [13:11:29]wFMCommunicate OK [13:11:29]SAM_PROTO_SignData done [13:11:29]FM_MakeSignedData done [13:11:29]CreateOFDProtocolMessage [13:11:29]wFMCommunicate request_size=4 [13:11:29]MH_SAM_APDU [13:11:29]CAPDU: 80 11 00 00 [13:11:29]Write to MH i2c: E2 08 00 8F 01 80 11 00 00 00 00 00 00 0A [13:11:29]Write i2c OK [13:11:29]MH_I2C_Read... [13:11:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:29]Read from MH i2c: E2 [13:11:29]MH_I2C_Read... [13:11:29]Read from MH i2c: E2 17 00 [13:11:29]MH_I2C_Read... [13:11:29]Read from MH i2c: E2 17 00 8F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5C [13:11:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:11:29]wFMCommunicate OK [13:11:29]CreateOFDProtocolMessage done [13:11:29]OFDSenderStorePacket 69355 [13:11:29]StoreOFDPacket docnum=69355 [13:11:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 27 1F 07 01 EE F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 80 01 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EB 0E 01 00 35 04 06 00 A9 F9 65 FA DB 78 76 3B B8 24 6A 00 1E 84 [13:11:29]CheckFolder [13:11:29]dirname=/storage/ofd_packets [13:11:29]CheckFolder done [13:11:29]ProducePacketName [13:11:29]name=ofd_packets/00069355 [13:11:29]NVStorageSaveData ofd_packets/00069355 [13:11:29]File name is /storage/ofd_packets/00069355 [13:11:29]Write 301 bytes [13:11:29]NVStorageSaveData done [13:11:29]OFDSenderStorePacket done [13:11:29]KKMCreateOFDPacket done [13:11:29]NVStorageSaveData kkm_last_timestamp [13:11:29]File name is /storage/kkm_last_timestamp [13:11:29]Write 4 bytes [13:11:29]NVStorageSaveData done [13:11:29]ExternCall_PrintAddStr [13:11:29]wPrintStart [13:11:29]Write to MH i2c: 01 00 00 90 01 91 [13:11:29]Write i2c OK [13:11:29]MH_I2C_Read... [13:11:29]Read from MH i2c: 01 [13:11:29]MH_I2C_Read... [13:11:29]Read from MH i2c: 01 07 00 [13:11:29]MH_I2C_Read... [13:11:29]Read from MH i2c: 01 07 00 90 01 00 00 00 00 00 FF 0F A6 [13:11:29]RasterBufferAndPrint [13:11:29]line Счет N : (1)2885077 [13:11:29]line ИНН: 02508201610067 [13:11:29]line Контрольно-Кассовый Чек [13:11:29]line ПРОДАЖА [13:11:29]line ТРК (МРК, ГНК) : 32 [13:11:29]line Товар: 2710124130 [13:11:29]line Аи-92-К-5 [13:11:29]line 7.480 * 66.90 [13:11:29]line = 500.41 [13:11:29]line НДС 12% НСП 1% [13:11:29]line > о реализуемом товаре [13:11:29]line ИТОГО: 500.41 [13:11:29]line НСП 1% : 4.43 [13:11:29]line НДС 12% : 53.14 [13:11:29]line Наличными: 0.00 [13:11:29]line Безнал.: 500.41 [13:11:29]line Место: АЗС № 85 "Партнер Нефть" [13:11:29]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:11:29]line СНО: Общий режим [13:11:29]line Чек 200 20.10.2024 13:11 [13:11:29]line Смена: 193 ФФД: 1.0 [13:11:29]line ЗНМ: 0300000167 [13:11:29]line РНМ: 0000000000156251 [13:11:29]line Версия ККМ: v1.0 [13:11:29]line Платежная система: Mbank [13:11:29]line ФМ: 0000000000963346 [13:11:29]line ФД: 69355 [13:11:29]line ФПД: 186888622889848 [13:11:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131128&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69355&fm=186888622889848&tin=02508201610067®Number=0000000000156251&sum=50041 [13:11:29]OFD Sender: Processing packet 69355 [packets to send 18, broken 17] [13:11:29]ProducePacketName [13:11:29]name=ofd_packets/00069355 [13:11:29]OFD Sender: To server: pG, [13:11:29]CommunicateWithHost lk.salyk.kg:30040 [13:11:29]ConnectInit lk.salyk.kg [13:11:29]written 0, free lines is 4095 [13:11:30]Connected sock=10 [13:11:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 27 1F 07 01 EE F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 80 01 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EB 0E 01 00 35 04 06 00 A9 F9 65 FA DB 78 76 3B B8 24 6A 00 1E 84 [13:11:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 FF DC 47 00 9A ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EB 0E 01 00 F4 03 04 00 26 AB 14 67 B6 04 01 00 00 E2 3E 78 6E 4E F4 99 62 [13:11:30]CommunicateWithHost err = 0 [13:11:30]CheckOFDResponse [13:11:30]1017 (14) - 77093643461234 [13:11:30]1041 (16) - 0000000000963346 [13:11:30]1040 (4) - 69355 [13:11:30]1012 (4) - 20.10.2024 07:03 [13:11:30]1206 (1) - 0 [13:11:30]OFD Sender: Remove packet 69355 [13:11:30]ProducePacketName [13:11:30]name=ofd_packets/00069355 [13:11:30]NVStorageDeleteData [13:11:30]Write to MH i2c: 01 00 00 B9 01 BA [13:11:30]Write i2c OK [13:11:30]MH_I2C_Read... [13:11:30]Read from MH i2c: 01 [13:11:30]MH_I2C_Read... [13:11:30]Read from MH i2c: 01 07 00 [13:11:30]MH_I2C_Read... [13:11:30]Read from MH i2c: 01 07 00 B9 01 00 00 00 00 00 18 0D E6 [13:11:30]RasterBufferAndPrint [13:11:30]line [13:11:30]line [13:11:30]line [13:11:30]line [13:11:30]line [13:11:30]written 0, free lines is 3358 [13:11:30]MH_Cut [13:11:30]Write to MH i2c: D1 01 00 C0 01 01 93 [13:11:30]Write i2c OK [13:11:30]MH_I2C_Read... [13:11:30]Read from MH i2c: D1 [13:11:30]MH_I2C_Read... [13:11:30]Read from MH i2c: D1 01 00 [13:11:30]MH_I2C_Read... [13:11:30]Read from MH i2c: D1 01 00 C0 01 00 92 [13:11:30]Write to MH i2c: 01 00 00 C1 01 C2 [13:11:30]Write i2c OK [13:11:30]MH_I2C_Read... [13:11:30]OFD Sender: No OFD packet to send [13:11:31]*** Cut start [13:11:31]*** Partial cut [13:11:31]*** CUTSNS_PIN = 1 [13:11:31]*** CUTSNS_PIN = 0 [13:11:31]*** Brake cut motor [13:11:31]Read from MH i2c: 01 [13:11:31]MH_I2C_Read... [13:11:31]*** Stop cut motor [13:11:31]*** Cut end [13:11:31]Read from MH i2c: 01 07 00 [13:11:31]MH_I2C_Read... [13:11:31]Read from MH i2c: 01 07 00 C1 01 00 00 00 00 00 FF 0F D7 [13:11:31]process_action close_receipt done [13:11:31]requested_data is exist [13:11:31]produce_requested_data [13:11:31]requested_item fm.sn is exist - process it [13:11:31]wFMCommunicate request_size=4 [13:11:31]MH_SAM_APDU [13:11:31]CAPDU: 80 11 00 00 [13:11:31]Write to MH i2c: E2 08 00 C2 01 80 11 00 00 00 00 00 00 3D [13:11:31]Write i2c OK [13:11:31]MH_I2C_Read... [13:11:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:31]Read from MH i2c: E2 [13:11:31]MH_I2C_Read... [13:11:31]Read from MH i2c: E2 17 00 [13:11:31]MH_I2C_Read... [13:11:31]Read from MH i2c: E2 17 00 C2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8F [13:11:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:11:31]wFMCommunicate OK [13:11:31]requested_item fd.num is exist - process it [13:11:31]SAM_PROTO_GetFieldsCounters [13:11:31]wFMCommunicate request_size=4 [13:11:31]MH_SAM_APDU [13:11:31]CAPDU: 80 13 00 00 [13:11:31]Write to MH i2c: E2 08 00 C3 01 80 13 00 00 00 00 00 00 40 [13:11:31]Write i2c OK [13:11:31]MH_I2C_Read... [13:11:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:31]Read from MH i2c: E2 [13:11:31]MH_I2C_Read... [13:11:31]Read from MH i2c: E2 62 00 [13:11:31]MH_I2C_Read... [13:11:31]Read from MH i2c: E2 62 00 C3 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EB 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [13:11:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EB 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:11:31]wFMCommunicate OK [13:11:31]SAM_PROTO_GetFieldsCounters done [13:11:31]requested_item shift.num is exist - process it [13:11:31]requested_item shift.opened is exist - process it [13:11:31]req_shift_opened [13:11:31]FM_GetShiftState [13:11:31]SAM_PROTO_GetShiftState [13:11:31]wFMCommunicate request_size=4 [13:11:31]MH_SAM_APDU [13:11:31]CAPDU: 80 13 01 00 [13:11:31]Write to MH i2c: E2 08 00 C4 01 80 13 01 00 00 00 00 00 42 [13:11:31]Write i2c OK [13:11:31]MH_I2C_Read... [13:11:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:31]Read from MH i2c: E2 [13:11:31]MH_I2C_Read... [13:11:31]Read from MH i2c: E2 0E 00 [13:11:31]MH_I2C_Read... [13:11:31]Read from MH i2c: E2 0E 00 C4 01 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 48 [13:11:31]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [13:11:31]wFMCommunicate OK [13:11:31]SAM_PROTO_GetShiftState done [13:11:31]FM_GetShiftState done [13:11:31]req_shift_opened done [13:11:31]requested_item shift.open_date is exist - process it [13:11:31]req_shift_open_date [13:11:31]req_shift_open_date done [13:11:31]produce_requested_data done [13:11:31]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69355,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [13:11:31]process_action_free close_receipt [13:11:31]json_value_free [13:11:31]json_value_free done [13:11:31]process_json_proto returns [13:11:31]Send response to host [13:11:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69355,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [13:11:31]free response buf [13:11:31]execute_script done [13:11:31]execute_script returns [13:11:31]free content buf [13:11:31]Sock 9.Close socket [13:11:31]Sock 9.Thread stoped [13:11:35]OFD Sender: No OFD packet to send [13:11:40]OFD Sender: No OFD packet to send [13:11:45]OFD Sender: No OFD packet to send [13:11:50]OFD Sender: No OFD packet to send [13:11:55]OFD Sender: No OFD packet to send [13:12:00]OFD Sender: No OFD packet to send [13:12:05]OFD Sender: No OFD packet to send [13:12:10]OFD Sender: No OFD packet to send [13:12:15]OFD Sender: No OFD packet to send [13:12:20]OFD Sender: No OFD packet to send [13:12:25]OFD Sender: No OFD packet to send [13:12:30]OFD Sender: No OFD packet to send [13:12:35]OFD Sender: No OFD packet to send [13:12:40]OFD Sender: No OFD packet to send [13:12:45]OFD Sender: No OFD packet to send [13:12:50]OFD Sender: No OFD packet to send [13:12:55]OFD Sender: No OFD packet to send [13:13:00]OFD Sender: No OFD packet to send [13:13:05]OFD Sender: No OFD packet to send [13:13:10]OFD Sender: No OFD packet to send [13:13:15]OFD Sender: No OFD packet to send [13:13:20]OFD Sender: No OFD packet to send [13:13:25]OFD Sender: No OFD packet to send [13:13:30]OFD Sender: No OFD packet to send [13:13:31]accept exits with 8 [13:13:31]New connection [13:13:31]New thread 3066711396 created [13:13:31]Thread 3066568036 joined [13:13:31]Waiting for new connection... [13:13:31] Sock 8.Parse request [13:13:31]Sock 8.Check first char [13:13:31]Sock 8.First char is OK [13:13:31]request: POST /json_proto HTTP/1.0 [13:13:31]Method: POST [13:13:31]URL: /json_proto [13:13:31]Method is POST - this is cgi request [13:13:31]url: /json_proto [13:13:31]query_string will be loaded in cgi processing [13:13:31]execute_cgi json_proto POST (null) [13:13:31]execute_cgi path=json_proto method=POST [13:13:31]POST find Content-Length [13:13:31]Host: 172.17.50.3:8080 [13:13:31]Content-Length: 678 [13:13:31]Content-Type: application/json [13:13:31] [13:13:31]POST finish read [13:13:31]Found Content-Length = 678 [13:13:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:31]execute_script... [13:13: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)2885078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:31]POST & json_proto [13:13:31]process_json_proto [13:13:31]json parsed OK: [13:13:31]protocol is kg_v1.0 [13:13:31]action value=close_receipt [13:13:31]process_action close_receipt [13:13:31]cmd_close_receipt [13:13:31]MH_GetDate [13:13:31]Write to MH i2c: F0 00 00 C5 01 B5 [13:13:31]Write i2c OK [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: F0 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: F0 09 00 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: F0 09 00 C5 01 00 FB 01 15 67 6B 98 1E 66 BD [13:13:31]GetLastDocTimeStamp 1729429888 [13:13:31]current date 1729430011 [13:13:31]FM_GetShiftState [13:13:31]SAM_PROTO_GetShiftState [13:13:31]wFMCommunicate request_size=4 [13:13:31]MH_SAM_APDU [13:13:31]CAPDU: 80 13 01 00 [13:13:31]Write to MH i2c: E2 08 00 C6 01 80 13 01 00 00 00 00 00 44 [13:13:31]Write i2c OK [13:13:31]MH_I2C_Read... [13:13:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:31]Read from MH i2c: E2 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: E2 0E 00 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: E2 0E 00 C6 01 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 4A [13:13:31]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [13:13:31]wFMCommunicate OK [13:13:31]SAM_PROTO_GetShiftState done [13:13:31]FM_GetShiftState done [13:13:31]opened in 1729383220 [13:13:31]opened+sec_in_day 1729469620 [13:13:31]quantity*price = 20003 [13:13:31]sum+1 = 20004 [13:13:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 201 20.10.2024 13:13 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69356 ФПД: 94940459867770 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131331&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69356&fm=94940459867770&tin=02508201610067®Number=0000000000156251&sum=20000 [13:13:32]StoreToDocumentArchive [13:13:32]shift 193 fd 69356 [13:13:32]save to /storage/0193/doc_00069356 [13:13:32]save last doc name /storage/0193/doc_00069356 to /storage/kkm_last_doc_name [13:13:32]save OK [13:13:32]Clear old archive folders... [13:13:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:13:32]tlvbuf is 00248A80 [13:13:32]SAM_PROTO_ClearQueue [13:13:32]wFMCommunicate request_size=4 [13:13:32]MH_SAM_APDU [13:13:32]CAPDU: 80 09 00 00 [13:13:32]Write to MH i2c: E2 08 00 D3 01 80 09 00 00 00 00 00 00 46 [13:13:32]Write i2c OK [13:13:32]MH_I2C_Read... [13:13:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:13:32]Read from MH i2c: E2 [13:13:32]MH_I2C_Read... [13:13:32]Read from MH i2c: E2 03 00 [13:13:32]MH_I2C_Read... [13:13:32]Read from MH i2c: E2 03 00 D3 01 00 90 00 48 [13:13:32]RAPDU: 90 00 [13:13:32]wFMCommunicate OK [13:13:32]SAM_PROTO_ClearQueue done [13:13:32]KKMCreateOFDPacket [13:13:32]OFDProtocolAddRootSTLVToBuf [13:13:32]FM_MakeSignedData [13:13:32]FM_MakeSignedData [13:13:32]SAM_PROTO_SignData [13:13:32]wFMCommunicate request_size=4 [13:13:32]MH_SAM_APDU [13:13:32]CAPDU: 80 0D 01 02 [13:13:32]Write to MH i2c: E2 08 00 D4 01 80 0D 01 02 00 00 00 00 4E [13:13:32]Write i2c OK [13:13:32]MH_I2C_Read... [13:13:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:13:32]Read from MH i2c: E2 [13:13:32]MH_I2C_Read... [13:13:32]Read from MH i2c: E2 03 00 [13:13:32]MH_I2C_Read... [13:13:32]Read from MH i2c: E2 03 00 D4 01 00 90 00 49 [13:13:32]RAPDU: 90 00 [13:13:32]wFMCommunicate OK [13:13:32]wFMCommunicate request_size=255 [13:13:32]MH_SAM_APDU [13:13:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 FB 01 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EC 0E 01 00 35 04 06 00 56 [13:13:32]Write to MH i2c: E2 02 01 D5 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 FB 01 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EC 0E 01 00 35 04 06 00 56 00 00 EC [13:13:32]Write i2c OK [13:13:32]MH_I2C_Read... [13:13:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:33]Read from MH i2c: E2 [13:13:33]MH_I2C_Read... [13:13:33]Read from MH i2c: E2 03 00 [13:13:33]MH_I2C_Read... [13:13:33]Read from MH i2c: E2 03 00 D5 01 00 90 00 4A [13:13:33]RAPDU: 90 00 [13:13:33]wFMCommunicate OK [13:13:33]wFMCommunicate request_size=10 [13:13:33]MH_SAM_APDU [13:13:33]CAPDU: 80 0D 02 02 05 59 0C 62 9E 7A [13:13:33]Write to MH i2c: E2 0D 00 D6 01 80 0D 02 02 05 00 59 0C 62 9E 7A 00 00 3A [13:13:33]Write i2c OK [13:13:33]MH_I2C_Read... [13:13:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:33]Read from MH i2c: E2 [13:13:33]MH_I2C_Read... [13:13:33]Read from MH i2c: E2 03 00 [13:13:33]MH_I2C_Read... [13:13:33]Read from MH i2c: E2 03 00 D6 01 00 90 00 4B [13:13:33]RAPDU: 90 00 [13:13:33]wFMCommunicate OK [13:13:33]wFMCommunicate request_size=4 [13:13:33]MH_SAM_APDU [13:13:33]CAPDU: 80 0D 03 02 [13:13:33]Write to MH i2c: E2 08 00 D7 01 80 0D 03 02 00 00 00 00 53 [13:13:33]Write i2c OK [13:13:33]MH_I2C_Read... [13:13:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:13:33]Read from MH i2c: E2 [13:13:33]MH_I2C_Read... [13:13:33]Read from MH i2c: E2 0B 00 [13:13:33]MH_I2C_Read... [13:13:33]Read from MH i2c: E2 0B 00 D7 01 00 4C FC 37 56 DA 46 80 44 90 00 0D [13:13:33]RAPDU: 4C FC 37 56 DA 46 80 44 90 00 [13:13:33]wFMCommunicate OK [13:13:33]SAM_PROTO_SignData done [13:13:33]FM_MakeSignedData done [13:13:33]CreateOFDProtocolMessage [13:13:33]wFMCommunicate request_size=4 [13:13:33]MH_SAM_APDU [13:13:33]CAPDU: 80 11 00 00 [13:13:33]Write to MH i2c: E2 08 00 D8 01 80 11 00 00 00 00 00 00 53 [13:13:33]Write i2c OK [13:13:33]MH_I2C_Read... [13:13:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:33]Read from MH i2c: E2 [13:13:33]MH_I2C_Read... [13:13:33]Read from MH i2c: E2 17 00 [13:13:33]MH_I2C_Read... [13:13:33]Read from MH i2c: E2 17 00 D8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A5 [13:13:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:13:33]wFMCommunicate OK [13:13:33]CreateOFDProtocolMessage done [13:13:33]OFDSenderStorePacket 69356 [13:13:33]StoreOFDPacket docnum=69356 [13:13:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 B4 6B 07 01 1B 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 FB 01 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EC 0E 01 00 35 04 06 00 56 59 0C 62 9E 7A 4C FC 37 56 DA 46 80 44 [13:13:33]CheckFolder [13:13:33]dirname=/storage/ofd_packets [13:13:33]CheckFolder done [13:13:33]ProducePacketName [13:13:33]name=ofd_packets/00069356 [13:13:33]NVStorageSaveData ofd_packets/00069356 [13:13:33]File name is /storage/ofd_packets/00069356 [13:13:33]Write 301 bytes [13:13:33]NVStorageSaveData done [13:13:33]OFDSenderStorePacket done [13:13:33]KKMCreateOFDPacket done [13:13:33]NVStorageSaveData kkm_last_timestamp [13:13:33]File name is /storage/kkm_last_timestamp [13:13:33]Write 4 bytes [13:13:33]NVStorageSaveData done [13:13:33]ExternCall_PrintAddStr [13:13:33]wPrintStart [13:13:33]Write to MH i2c: 01 00 00 D9 01 DA [13:13:33]Write i2c OK [13:13:33]MH_I2C_Read... [13:13:33]Read from MH i2c: 01 [13:13:33]MH_I2C_Read... [13:13:33]Read from MH i2c: 01 07 00 [13:13:33]MH_I2C_Read... [13:13:33]Read from MH i2c: 01 07 00 D9 01 00 00 00 00 00 FF 0F EF [13:13:33]RasterBufferAndPrint [13:13:33]line Счет N : (1)2885078 [13:13:33]line ИНН: 02508201610067 [13:13:33]line Контрольно-Кассовый Чек [13:13:33]line ПРОДАЖА [13:13:33]line ТРК (МРК, ГНК) : 32 [13:13:33]line Товар: 2710124130 [13:13:33]line Аи-92-К-5 [13:13:33]line 2.990 * 66.90 [13:13:33]line = 200.03 [13:13:33]line НДС 12% НСП 1% [13:13:33]line > о реализуемом товаре [13:13:33]line ОКРУГЛЕНИЕ: -0.03 [13:13:33]line ИТОГО: 200.00 [13:13:33]line Внесено: 200.00 [13:13:33]line СДАЧА: 0.00 [13:13:33]line НСП 1% : 1.77 [13:13:33]line НДС 12% : 21.24 [13:13:33]line Наличными: 200.00 [13:13:33]line Безнал.: 0.00 [13:13:33]line Место: АЗС № 85 "Партнер Нефть" [13:13:33]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:13:33]line СНО: Общий режим [13:13:33]line Чек 201 20.10.2024 13:13 [13:13:33]line Смена: 193 ФФД: 1.0 [13:13:33]line ЗНМ: 0300000167 [13:13:33]line РНМ: 0000000000156251 [13:13:33]line Версия ККМ: v1.0 [13:13:33]line ФМ: 0000000000963346 [13:13:33]line ФД: 69356 [13:13:33]line ФПД: 94940459867770 [13:13:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131331&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69356&fm=94940459867770&tin=02508201610067®Number=0000000000156251&sum=20000 [13:13:33]OFD Sender: Processing packet 69356 [packets to send 18, broken 17] [13:13:33]ProducePacketName [13:13:33]name=ofd_packets/00069356 [13:13:33]OFD Sender: To server: pG, [13:13:33]CommunicateWithHost lk.salyk.kg:30040 [13:13:33]ConnectInit lk.salyk.kg [13:13:33]written 0, free lines is 4095 [13:13:33]Connected sock=10 [13:13:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 B4 6B 07 01 1B 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 FB 01 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EC 0E 01 00 35 04 06 00 56 59 0C 62 9E 7A 4C FC 37 56 DA 46 80 44 [13:13:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 13 CA 47 00 36 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EC 0E 01 00 F4 03 04 00 A2 AB 14 67 B6 04 01 00 00 B0 59 39 55 62 57 3D 9B [13:13:33]CommunicateWithHost err = 0 [13:13:33]CheckOFDResponse [13:13:33]1017 (14) - 77093643461234 [13:13:33]1041 (16) - 0000000000963346 [13:13:33]1040 (4) - 69356 [13:13:33]1012 (4) - 20.10.2024 07:05 [13:13:33]1206 (1) - 0 [13:13:33]OFD Sender: Remove packet 69356 [13:13:33]ProducePacketName [13:13:33]name=ofd_packets/00069356 [13:13:33]NVStorageDeleteData [13:13:34]Write to MH i2c: 01 00 00 04 02 06 [13:13:34]Write i2c OK [13:13:34]MH_I2C_Read... [13:13:34]Read from MH i2c: 01 [13:13:34]MH_I2C_Read... [13:13:34]Read from MH i2c: 01 07 00 [13:13:34]MH_I2C_Read... [13:13:34]Read from MH i2c: 01 07 00 04 02 00 00 00 00 00 F9 0C 12 [13:13:34]RasterBufferAndPrint [13:13:34]line [13:13:34]line [13:13:34]line [13:13:34]line [13:13:34]line [13:13:34]written 0, free lines is 3328 [13:13:34]MH_Cut [13:13:34]Write to MH i2c: D1 01 00 0B 02 01 DF [13:13:34]Write i2c OK [13:13:34]MH_I2C_Read... [13:13:34]Read from MH i2c: D1 [13:13:34]MH_I2C_Read... [13:13:34]Read from MH i2c: D1 01 00 [13:13:34]MH_I2C_Read... [13:13:34]Read from MH i2c: D1 01 00 0B 02 00 DE [13:13:34]Write to MH i2c: 01 00 00 0C 02 0E [13:13:34]Write i2c OK [13:13:34]MH_I2C_Read... [13:13:34]OFD Sender: No OFD packet to send [13:13:34]*** Cut start [13:13:34]*** Partial cut [13:13:34]*** CUTSNS_PIN = 1 [13:13:34]*** CUTSNS_PIN = 0 [13:13:35]*** Brake cut motor [13:13:35]Read from MH i2c: 01 [13:13:35]MH_I2C_Read... [13:13:35]*** Stop cut motor [13:13:35]*** Cut end [13:13:35]Read from MH i2c: 01 07 00 [13:13:35]MH_I2C_Read... [13:13:35]Read from MH i2c: 01 07 00 0C 02 00 00 00 00 00 FF 0F 23 [13:13:35]process_action close_receipt done [13:13:35]requested_data is exist [13:13:35]produce_requested_data [13:13:35]requested_item fm.sn is exist - process it [13:13:35]wFMCommunicate request_size=4 [13:13:35]MH_SAM_APDU [13:13:35]CAPDU: 80 11 00 00 [13:13:35]Write to MH i2c: E2 08 00 0D 02 80 11 00 00 00 00 00 00 89 [13:13:35]Write i2c OK [13:13:35]MH_I2C_Read... [13:13:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:35]Read from MH i2c: E2 [13:13:35]MH_I2C_Read... [13:13:35]Read from MH i2c: E2 17 00 [13:13:35]MH_I2C_Read... [13:13:35]Read from MH i2c: E2 17 00 0D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DB [13:13:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:13:35]wFMCommunicate OK [13:13:35]requested_item fd.num is exist - process it [13:13:35]SAM_PROTO_GetFieldsCounters [13:13:35]wFMCommunicate request_size=4 [13:13:35]MH_SAM_APDU [13:13:35]CAPDU: 80 13 00 00 [13:13:35]Write to MH i2c: E2 08 00 0E 02 80 13 00 00 00 00 00 00 8C [13:13:35]Write i2c OK [13:13:35]MH_I2C_Read... [13:13:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:13:35]Read from MH i2c: E2 [13:13:35]MH_I2C_Read... [13:13:35]Read from MH i2c: E2 62 00 [13:13:35]MH_I2C_Read... [13:13:35]Read from MH i2c: E2 62 00 0E 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EC 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [13:13:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EC 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:13:35]wFMCommunicate OK [13:13:35]SAM_PROTO_GetFieldsCounters done [13:13:35]requested_item shift.num is exist - process it [13:13:35]requested_item shift.opened is exist - process it [13:13:35]req_shift_opened [13:13:35]FM_GetShiftState [13:13:35]SAM_PROTO_GetShiftState [13:13:35]wFMCommunicate request_size=4 [13:13:35]MH_SAM_APDU [13:13:35]CAPDU: 80 13 01 00 [13:13:35]Write to MH i2c: E2 08 00 0F 02 80 13 01 00 00 00 00 00 8E [13:13:35]Write i2c OK [13:13:35]MH_I2C_Read... [13:13:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:35]Read from MH i2c: E2 [13:13:35]MH_I2C_Read... [13:13:35]Read from MH i2c: E2 0E 00 [13:13:35]MH_I2C_Read... [13:13:35]Read from MH i2c: E2 0E 00 0F 02 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 94 [13:13:35]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [13:13:35]wFMCommunicate OK [13:13:35]SAM_PROTO_GetShiftState done [13:13:35]FM_GetShiftState done [13:13:35]req_shift_opened done [13:13:35]requested_item shift.open_date is exist - process it [13:13:35]req_shift_open_date [13:13:35]req_shift_open_date done [13:13:35]produce_requested_data done [13:13:35]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69356,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [13:13:35]process_action_free close_receipt [13:13:35]json_value_free [13:13:35]json_value_free done [13:13:35]process_json_proto returns [13:13:35]Send response to host [13:13:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69356,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [13:13:35]free response buf [13:13:35]execute_script done [13:13:35]execute_script returns [13:13:35]free content buf [13:13:35]Sock 8.Close socket [13:13:35]Sock 8.Thread stoped [13:13:39]OFD Sender: No OFD packet to send [13:13:44]OFD Sender: No OFD packet to send [13:13:49]OFD Sender: No OFD packet to send [13:13:54]OFD Sender: No OFD packet to send [13:13:59]OFD Sender: No OFD packet to send [13:14:04]OFD Sender: No OFD packet to send [13:14:09]OFD Sender: No OFD packet to send [13:14:14]accept exits with 9 [13:14:14]New connection [13:14:14]New thread 3066568036 created [13:14:14]Thread 3066711396 joined [13:14:14]Waiting for new connection... [13:14:14] Sock 9.Parse request [13:14:14]Sock 9.Check first char [13:14:14]Sock 9.First char is OK [13:14:14]request: POST /json_proto HTTP/1.0 [13:14:14]Method: POST [13:14:14]URL: /json_proto [13:14:14]Method is POST - this is cgi request [13:14:14]url: /json_proto [13:14:14]query_string will be loaded in cgi processing [13:14:14]execute_cgi json_proto POST (null) [13:14:14]execute_cgi path=json_proto method=POST [13:14:14]POST find Content-Length [13:14:14]Host: 172.17.50.3:8080 [13:14:14]Content-Length: 678 [13:14:14]Content-Type: application/json [13:14:14] [13:14:14]POST finish read [13:14:14]Found Content-Length = 678 [13:14:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:14:14]execute_script... [13:14:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:14:14]POST & json_proto [13:14:14]process_json_proto [13:14:14]json parsed OK: [13:14:14]protocol is kg_v1.0 [13:14:14]action value=close_receipt [13:14:14]process_action close_receipt [13:14:14]cmd_close_receipt [13:14:14]MH_GetDate [13:14:14]Write to MH i2c: F0 00 00 10 02 01 [13:14:14]OFD Sender: No OFD packet to send [13:14:14]Write i2c OK [13:14:14]MH_I2C_Read... [13:14:14]Read from MH i2c: F0 [13:14:14]MH_I2C_Read... [13:14:14]Read from MH i2c: F0 09 00 [13:14:14]MH_I2C_Read... [13:14:14]Read from MH i2c: F0 09 00 10 02 00 26 02 15 67 6B 98 1E 66 35 [13:14:14]GetLastDocTimeStamp 1729430011 [13:14:14]current date 1729430054 [13:14:14]FM_GetShiftState [13:14:14]SAM_PROTO_GetShiftState [13:14:14]wFMCommunicate request_size=4 [13:14:14]MH_SAM_APDU [13:14:14]CAPDU: 80 13 01 00 [13:14:14]Write to MH i2c: E2 08 00 11 02 80 13 01 00 00 00 00 00 90 [13:14:14]Write i2c OK [13:14:14]MH_I2C_Read... [13:14:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:14]Read from MH i2c: E2 [13:14:14]MH_I2C_Read... [13:14:14]Read from MH i2c: E2 0E 00 [13:14:14]MH_I2C_Read... [13:14:14]Read from MH i2c: E2 0E 00 11 02 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 96 [13:14:14]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [13:14:14]wFMCommunicate OK [13:14:14]SAM_PROTO_GetShiftState done [13:14:14]FM_GetShiftState done [13:14:14]opened in 1729383220 [13:14:14]opened+sec_in_day 1729469620 [13:14:14]quantity*price = 30051 [13:14:14]sum+1 = 30052 [13:14:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 202 20.10.2024 13:14 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69357 ФПД: 102551000653668 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131414&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69357&fm=102551000653668&tin=02508201610067®Number=0000000000156251&sum=30000 [13:14:15]StoreToDocumentArchive [13:14:15]shift 193 fd 69357 [13:14:15]save to /storage/0193/doc_00069357 [13:14:15]save last doc name /storage/0193/doc_00069357 to /storage/kkm_last_doc_name [13:14:15]save OK [13:14:15]Clear old archive folders... [13:14:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:14:15]tlvbuf is 00244890 [13:14:15]SAM_PROTO_ClearQueue [13:14:15]wFMCommunicate request_size=4 [13:14:15]MH_SAM_APDU [13:14:15]CAPDU: 80 09 00 00 [13:14:15]Write to MH i2c: E2 08 00 1E 02 80 09 00 00 00 00 00 00 92 [13:14:15]Write i2c OK [13:14:15]MH_I2C_Read... [13:14:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:14:15]Read from MH i2c: E2 [13:14:15]MH_I2C_Read... [13:14:15]Read from MH i2c: E2 03 00 [13:14:15]MH_I2C_Read... [13:14:15]Read from MH i2c: E2 03 00 1E 02 00 90 00 94 [13:14:15]RAPDU: 90 00 [13:14:15]wFMCommunicate OK [13:14:15]SAM_PROTO_ClearQueue done [13:14:15]KKMCreateOFDPacket [13:14:15]OFDProtocolAddRootSTLVToBuf [13:14:15]FM_MakeSignedData [13:14:15]FM_MakeSignedData [13:14:15]SAM_PROTO_SignData [13:14:15]wFMCommunicate request_size=4 [13:14:15]MH_SAM_APDU [13:14:15]CAPDU: 80 0D 01 02 [13:14:15]Write to MH i2c: E2 08 00 1F 02 80 0D 01 02 00 00 00 00 9A [13:14:15]Write i2c OK [13:14:15]MH_I2C_Read... [13:14:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:14:15]Read from MH i2c: E2 [13:14:15]MH_I2C_Read... [13:14:15]Read from MH i2c: E2 03 00 [13:14:15]MH_I2C_Read... [13:14:15]Read from MH i2c: E2 03 00 1F 02 00 90 00 95 [13:14:15]RAPDU: 90 00 [13:14:15]wFMCommunicate OK [13:14:15]wFMCommunicate request_size=255 [13:14:15]MH_SAM_APDU [13:14:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 26 02 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 ED 0E 01 00 35 04 06 00 5D [13:14:15]Write to MH i2c: E2 02 01 20 02 80 0D 02 02 FA 00 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 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 26 02 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 ED 0E 01 00 35 04 06 00 5D 00 00 D3 [13:14:15]Write i2c OK [13:14:15]MH_I2C_Read... [13:14:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:15]Read from MH i2c: E2 [13:14:15]MH_I2C_Read... [13:14:15]Read from MH i2c: E2 03 00 [13:14:15]MH_I2C_Read... [13:14:15]Read from MH i2c: E2 03 00 20 02 00 90 00 96 [13:14:15]RAPDU: 90 00 [13:14:15]wFMCommunicate OK [13:14:15]wFMCommunicate request_size=10 [13:14:15]MH_SAM_APDU [13:14:15]CAPDU: 80 0D 02 02 05 45 03 F7 1F 64 [13:14:15]Write to MH i2c: E2 0D 00 21 02 80 0D 02 02 05 00 45 03 F7 1F 64 00 00 69 [13:14:15]Write i2c OK [13:14:15]MH_I2C_Read... [13:14:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:16]Read from MH i2c: E2 [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: E2 03 00 [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: E2 03 00 21 02 00 90 00 97 [13:14:16]RAPDU: 90 00 [13:14:16]wFMCommunicate OK [13:14:16]wFMCommunicate request_size=4 [13:14:16]MH_SAM_APDU [13:14:16]CAPDU: 80 0D 03 02 [13:14:16]Write to MH i2c: E2 08 00 22 02 80 0D 03 02 00 00 00 00 9F [13:14:16]Write i2c OK [13:14:16]MH_I2C_Read... [13:14:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:14:16]Read from MH i2c: E2 [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: E2 0B 00 [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: E2 0B 00 22 02 00 B0 F0 DB 45 7C 3A 28 0A 90 00 48 [13:14:16]RAPDU: B0 F0 DB 45 7C 3A 28 0A 90 00 [13:14:16]wFMCommunicate OK [13:14:16]SAM_PROTO_SignData done [13:14:16]FM_MakeSignedData done [13:14:16]CreateOFDProtocolMessage [13:14:16]wFMCommunicate request_size=4 [13:14:16]MH_SAM_APDU [13:14:16]CAPDU: 80 11 00 00 [13:14:16]Write to MH i2c: E2 08 00 23 02 80 11 00 00 00 00 00 00 9F [13:14:16]Write i2c OK [13:14:16]MH_I2C_Read... [13:14:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:16]Read from MH i2c: E2 [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: E2 17 00 [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: E2 17 00 23 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F1 [13:14:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:14:16]wFMCommunicate OK [13:14:16]CreateOFDProtocolMessage done [13:14:16]OFDSenderStorePacket 69357 [13:14:16]StoreOFDPacket docnum=69357 [13:14:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A7 C3 07 01 D9 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 26 02 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 ED 0E 01 00 35 04 06 00 5D 45 03 F7 1F 64 B0 F0 DB 45 7C 3A 28 0A [13:14:16]CheckFolder [13:14:16]dirname=/storage/ofd_packets [13:14:16]CheckFolder done [13:14:16]ProducePacketName [13:14:16]name=ofd_packets/00069357 [13:14:16]NVStorageSaveData ofd_packets/00069357 [13:14:16]File name is /storage/ofd_packets/00069357 [13:14:16]Write 301 bytes [13:14:16]NVStorageSaveData done [13:14:16]OFDSenderStorePacket done [13:14:16]KKMCreateOFDPacket done [13:14:16]NVStorageSaveData kkm_last_timestamp [13:14:16]File name is /storage/kkm_last_timestamp [13:14:16]Write 4 bytes [13:14:16]NVStorageSaveData done [13:14:16]ExternCall_PrintAddStr [13:14:16]wPrintStart [13:14:16]Write to MH i2c: 01 00 00 24 02 26 [13:14:16]Write i2c OK [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: 01 [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: 01 07 00 [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: 01 07 00 24 02 00 00 00 00 00 FF 0F 3B [13:14:16]RasterBufferAndPrint [13:14:16]line Счет N : (1)2885079 [13:14:16]line ИНН: 02508201610067 [13:14:16]line Контрольно-Кассовый Чек [13:14:16]line ПРОДАЖА [13:14:16]line ТРК (МРК, ГНК) : 43 [13:14:16]line Товар: 2710124500 [13:14:16]line Аи-95-К-5 [13:14:16]line 4.050 * 74.20 [13:14:16]line = 300.51 [13:14:16]line НДС 12% НСП 1% [13:14:16]line > о реализуемом товаре [13:14:16]line ОКРУГЛЕНИЕ: -0.51 [13:14:16]line ИТОГО: 300.00 [13:14:16]line Внесено: 300.00 [13:14:16]line СДАЧА: 0.00 [13:14:16]line НСП 1% : 2.66 [13:14:16]line НДС 12% : 31.91 [13:14:16]line Наличными: 300.00 [13:14:16]line Безнал.: 0.00 [13:14:16]line Место: АЗС № 85 "Партнер Нефть" [13:14:16]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:14:16]line СНО: Общий режим [13:14:16]line Чек 202 20.10.2024 13:14 [13:14:16]line Смена: 193 ФФД: 1.0 [13:14:16]line ЗНМ: 0300000167 [13:14:16]line РНМ: 0000000000156251 [13:14:16]line Версия ККМ: v1.0 [13:14:16]line ФМ: 0000000000963346 [13:14:16]line ФД: 69357 [13:14:16]line ФПД: 102551000653668 [13:14:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131414&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69357&fm=102551000653668&tin=02508201610067®Number=0000000000156251&sum=30000 [13:14:16]OFD Sender: Processing packet 69357 [packets to send 18, broken 17] [13:14:16]ProducePacketName [13:14:16]name=ofd_packets/00069357 [13:14:16]OFD Sender: To server: pG, [13:14:16]CommunicateWithHost lk.salyk.kg:30040 [13:14:16]ConnectInit lk.salyk.kg [13:14:16]written 0, free lines is 4095 [13:14:16]Connected sock=10 [13:14:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A7 C3 07 01 D9 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 26 02 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 ED 0E 01 00 35 04 06 00 5D 45 03 F7 1F 64 B0 F0 DB 45 7C 3A 28 0A [13:14:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 48 F8 47 00 C1 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 ED 0E 01 00 F4 03 04 00 CD AB 14 67 B6 04 01 00 00 82 14 93 8F 27 28 95 62 [13:14:16]CommunicateWithHost err = 0 [13:14:16]CheckOFDResponse [13:14:16]1017 (14) - 77093643461234 [13:14:16]1041 (16) - 0000000000963346 [13:14:16]1040 (4) - 69357 [13:14:16]1012 (4) - 20.10.2024 07:05 [13:14:16]1206 (1) - 0 [13:14:16]OFD Sender: Remove packet 69357 [13:14:16]ProducePacketName [13:14:16]name=ofd_packets/00069357 [13:14:16]NVStorageDeleteData [13:14:16]Write to MH i2c: 01 00 00 4F 02 51 [13:14:16]Write i2c OK [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: 01 [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: 01 07 00 [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: 01 07 00 4F 02 00 00 00 00 00 F6 0C 5A [13:14:16]RasterBufferAndPrint [13:14:16]line [13:14:16]line [13:14:16]line [13:14:16]line [13:14:16]line [13:14:16]written 0, free lines is 3324 [13:14:16]MH_Cut [13:14:16]Write to MH i2c: D1 01 00 56 02 01 2A [13:14:16]Write i2c OK [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: D1 [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: D1 01 00 [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: D1 01 00 56 02 00 29 [13:14:16]Write to MH i2c: 01 00 00 57 02 59 [13:14:16]Write i2c OK [13:14:16]MH_I2C_Read... [13:14:17]OFD Sender: No OFD packet to send [13:14:17]*** Cut start [13:14:17]*** Partial cut [13:14:17]*** CUTSNS_PIN = 1 [13:14:17]*** CUTSNS_PIN = 0 [13:14:17]*** Brake cut motor [13:14:18]Read from MH i2c: 01 [13:14:18]MH_I2C_Read... [13:14:18]*** Stop cut motor [13:14:18]*** Cut end [13:14:18]Read from MH i2c: 01 07 00 [13:14:18]MH_I2C_Read... [13:14:18]Read from MH i2c: 01 07 00 57 02 00 00 00 00 00 FF 0F 6E [13:14:18]process_action close_receipt done [13:14:18]requested_data is exist [13:14:18]produce_requested_data [13:14:18]requested_item fm.sn is exist - process it [13:14:18]wFMCommunicate request_size=4 [13:14:18]MH_SAM_APDU [13:14:18]CAPDU: 80 11 00 00 [13:14:18]Write to MH i2c: E2 08 00 58 02 80 11 00 00 00 00 00 00 D4 [13:14:18]Write i2c OK [13:14:18]MH_I2C_Read... [13:14:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:18]Read from MH i2c: E2 [13:14:18]MH_I2C_Read... [13:14:18]Read from MH i2c: E2 17 00 [13:14:18]MH_I2C_Read... [13:14:18]Read from MH i2c: E2 17 00 58 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 26 [13:14:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:14:18]wFMCommunicate OK [13:14:18]requested_item fd.num is exist - process it [13:14:18]SAM_PROTO_GetFieldsCounters [13:14:18]wFMCommunicate request_size=4 [13:14:18]MH_SAM_APDU [13:14:18]CAPDU: 80 13 00 00 [13:14:18]Write to MH i2c: E2 08 00 59 02 80 13 00 00 00 00 00 00 D7 [13:14:18]Write i2c OK [13:14:18]MH_I2C_Read... [13:14:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:14:18]Read from MH i2c: E2 [13:14:18]MH_I2C_Read... [13:14:18]Read from MH i2c: E2 62 00 [13:14:18]MH_I2C_Read... [13:14:18]Read from MH i2c: E2 62 00 59 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 ED 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [13:14:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 ED 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:14:18]wFMCommunicate OK [13:14:18]SAM_PROTO_GetFieldsCounters done [13:14:18]requested_item shift.num is exist - process it [13:14:18]requested_item shift.opened is exist - process it [13:14:18]req_shift_opened [13:14:18]FM_GetShiftState [13:14:18]SAM_PROTO_GetShiftState [13:14:18]wFMCommunicate request_size=4 [13:14:18]MH_SAM_APDU [13:14:18]CAPDU: 80 13 01 00 [13:14:18]Write to MH i2c: E2 08 00 5A 02 80 13 01 00 00 00 00 00 D9 [13:14:18]Write i2c OK [13:14:18]MH_I2C_Read... [13:14:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:18]Read from MH i2c: E2 [13:14:18]MH_I2C_Read... [13:14:18]Read from MH i2c: E2 0E 00 [13:14:18]MH_I2C_Read... [13:14:18]Read from MH i2c: E2 0E 00 5A 02 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 DF [13:14:18]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [13:14:18]wFMCommunicate OK [13:14:18]SAM_PROTO_GetShiftState done [13:14:18]FM_GetShiftState done [13:14:18]req_shift_opened done [13:14:18]requested_item shift.open_date is exist - process it [13:14:18]req_shift_open_date [13:14:18]req_shift_open_date done [13:14:18]produce_requested_data done [13:14:18]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69357,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [13:14:18]process_action_free close_receipt [13:14:18]json_value_free [13:14:18]json_value_free done [13:14:18]process_json_proto returns [13:14:18]Send response to host [13:14:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69357,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [13:14:18]free response buf [13:14:18]execute_script done [13:14:18]execute_script returns [13:14:18]free content buf [13:14:18]Sock 9.Close socket [13:14:18]Sock 9.Thread stoped [13:14:22]OFD Sender: No OFD packet to send [13:14:27]OFD Sender: No OFD packet to send [13:14:32]OFD Sender: No OFD packet to send [13:14:37]OFD Sender: No OFD packet to send [13:14:42]OFD Sender: No OFD packet to send [13:14:47]OFD Sender: No OFD packet to send [13:14:52]OFD Sender: No OFD packet to send [13:14:57]OFD Sender: No OFD packet to send [13:15:02]OFD Sender: No OFD packet to send [13:15:07]OFD Sender: No OFD packet to send [13:15:12]OFD Sender: No OFD packet to send [13:15:17]OFD Sender: No OFD packet to send [13:15:22]OFD Sender: No OFD packet to send [13:15:27]OFD Sender: No OFD packet to send [13:15:32]OFD Sender: No OFD packet to send [13:15:37]OFD Sender: No OFD packet to send [13:15:42]OFD Sender: No OFD packet to send [13:15:47]OFD Sender: No OFD packet to send [13:15:52]OFD Sender: No OFD packet to send [13:15:57]OFD Sender: No OFD packet to send [13:16:02]OFD Sender: No OFD packet to send [13:16:07]OFD Sender: No OFD packet to send [13:16:12]OFD Sender: No OFD packet to send [13:16:17]OFD Sender: No OFD packet to send [13:16:22]OFD Sender: No OFD packet to send [13:16:27]OFD Sender: No OFD packet to send [13:16:32]OFD Sender: No OFD packet to send [13:16:37]OFD Sender: No OFD packet to send [13:16:42]OFD Sender: No OFD packet to send [13:16:47]OFD Sender: No OFD packet to send [13:16:52]OFD Sender: No OFD packet to send [13:16:57]OFD Sender: No OFD packet to send [13:17:02]OFD Sender: No OFD packet to send [13:17:07]OFD Sender: No OFD packet to send [13:17:12]OFD Sender: No OFD packet to send [13:17:17]OFD Sender: No OFD packet to send [13:17:22]OFD Sender: No OFD packet to send [13:17:27]OFD Sender: No OFD packet to send [13:17:32]OFD Sender: No OFD packet to send [13:17:37]OFD Sender: No OFD packet to send [13:17:42]OFD Sender: No OFD packet to send [13:17:47]OFD Sender: No OFD packet to send [13:17:52]OFD Sender: No OFD packet to send [13:17:57]OFD Sender: No OFD packet to send [13:18:02]OFD Sender: No OFD packet to send [13:18:07]OFD Sender: No OFD packet to send [13:18:12]OFD Sender: No OFD packet to send [13:18:17]OFD Sender: No OFD packet to send [13:18:22]OFD Sender: No OFD packet to send [13:18:27]OFD Sender: No OFD packet to send [13:18:29]int [13:18:29]Write to MH i2c: 01 00 00 5B 02 5D [13:18:29]*** FLAG_PRN_PAP1 set [13:18:29]Write i2c OK [13:18:29]MH_I2C_Read... [13:18:29]Read from MH i2c: 01 [13:18:29]MH_I2C_Read... [13:18:29]Read from MH i2c: 01 07 00 [13:18:29]MH_I2C_Read... [13:18:29]Read from MH i2c: 01 07 00 5B 02 00 01 00 00 00 FF 0F 73 [13:18:29]state=0 [13:18:29]No paper [13:18:29]int [13:18:29]Write to MH i2c: 01 00 00 5C 02 5E [13:18:29]*** FLAG_PRN_PAP2 set [13:18:29]Write i2c OK [13:18:29]MH_I2C_Read... [13:18:29]Read from MH i2c: 01 [13:18:29]MH_I2C_Read... [13:18:29]Read from MH i2c: 01 07 00 [13:18:29]MH_I2C_Read... [13:18:29]Read from MH i2c: 01 07 00 5C 02 00 03 00 00 00 FF 0F 76 [13:18:29]state=0 [13:18:29]No paper [13:18:29]Cover opened [13:18:29]int [13:18:29]Write to MH i2c: 01 00 00 5D 02 5F [13:18:29]*** FLAG_PRN_PAP2 reset [13:18:29]Write i2c OK [13:18:29]MH_I2C_Read... [13:18:29]Read from MH i2c: 01 [13:18:29]MH_I2C_Read... [13:18:29]Read from MH i2c: 01 07 00 [13:18:29]MH_I2C_Read... [13:18:29]Read from MH i2c: 01 07 00 5D 02 00 01 00 00 00 FF 0F 75 [13:18:29]state=3 [13:18:29]No paper [13:18:29]Cover closed [13:18:30]int [13:18:30]Write to MH i2c: 01 00 00 5E 02 60 [13:18:30]*** FLAG_PRN_PAP2 set [13:18:30]Write i2c OK [13:18:30]MH_I2C_Read... [13:18:30]Read from MH i2c: 01 [13:18:30]MH_I2C_Read... [13:18:30]Read from MH i2c: 01 07 00 [13:18:30]MH_I2C_Read... [13:18:30]Read from MH i2c: 01 07 00 5E 02 00 03 00 00 00 FF 0F 78 [13:18:30]state=0 [13:18:30]No paper [13:18:30]Cover opened [13:18:31]int [13:18:31]Write to MH i2c: 01 00 00 5F 02 61 [13:18:31]*** FLAG_PRN_PAP2 reset [13:18:31]Write i2c OK [13:18:31]MH_I2C_Read... [13:18:31]Read from MH i2c: 01 [13:18:31]MH_I2C_Read... [13:18:31]Read from MH i2c: 01 07 00 [13:18:31]MH_I2C_Read... [13:18:31]Read from MH i2c: 01 07 00 5F 02 00 01 00 00 00 FF 0F 77 [13:18:31]state=3 [13:18:31]No paper [13:18:31]Cover closed [13:18:31]int [13:18:31]Write to MH i2c: 01 00 00 60 02 62 [13:18:31]*** FLAG_PRN_PAP1 reset [13:18:31]Write i2c OK [13:18:31]MH_I2C_Read... [13:18:31]Read from MH i2c: 01 [13:18:31]MH_I2C_Read... [13:18:31]Read from MH i2c: 01 07 00 [13:18:31]MH_I2C_Read... [13:18:31]Read from MH i2c: 01 07 00 60 02 00 00 00 00 00 FF 0F 77 [13:18:31]state=0 [13:18:32]OFD Sender: No OFD packet to send [13:18:37]OFD Sender: No OFD packet to send [13:18:42]OFD Sender: No OFD packet to send [13:18:47]OFD Sender: No OFD packet to send [13:18:52]OFD Sender: No OFD packet to send [13:18:57]OFD Sender: No OFD packet to send [13:19:02]OFD Sender: No OFD packet to send [13:19:07]OFD Sender: No OFD packet to send [13:19:12]OFD Sender: No OFD packet to send [13:19:17]OFD Sender: No OFD packet to send [13:19:22]OFD Sender: No OFD packet to send [13:19:27]OFD Sender: No OFD packet to send [13:19:32]OFD Sender: No OFD packet to send [13:19:37]OFD Sender: No OFD packet to send [13:19:42]OFD Sender: No OFD packet to send [13:19:47]OFD Sender: No OFD packet to send [13:19:52]OFD Sender: No OFD packet to send [13:19:57]OFD Sender: No OFD packet to send [13:20:02]OFD Sender: No OFD packet to send [13:20:07]OFD Sender: No OFD packet to send [13:20:12]OFD Sender: No OFD packet to send [13:20:17]OFD Sender: No OFD packet to send [13:20:22]OFD Sender: No OFD packet to send [13:20:27]OFD Sender: No OFD packet to send [13:20:32]OFD Sender: No OFD packet to send [13:20:37]OFD Sender: No OFD packet to send [13:20:42]OFD Sender: No OFD packet to send [13:20:47]OFD Sender: No OFD packet to send [13:20:52]OFD Sender: No OFD packet to send [13:20:57]OFD Sender: No OFD packet to send [13:21:02]OFD Sender: No OFD packet to send [13:21:07]OFD Sender: No OFD packet to send [13:21:12]OFD Sender: No OFD packet to send [13:21:16]accept exits with 8 [13:21:16]New connection [13:21:16]New thread 3066711396 created [13:21:16]Thread 3066568036 joined [13:21:16]Waiting for new connection... [13:21:16] Sock 8.Parse request [13:21:16]Sock 8.Check first char [13:21:16]Sock 8.First char is OK [13:21:16]request: POST /json_proto HTTP/1.0 [13:21:16]Method: POST [13:21:16]URL: /json_proto [13:21:16]Method is POST - this is cgi request [13:21:16]url: /json_proto [13:21:16]query_string will be loaded in cgi processing [13:21:16]execute_cgi json_proto POST (null) [13:21:16]execute_cgi path=json_proto method=POST [13:21:16]POST find Content-Length [13:21:16]Host: 172.17.50.3:8080 [13:21:16]Content-Length: 791 [13:21:16]Content-Type: application/json [13:21:16] [13:21:16]POST finish read [13:21:16]Found Content-Length = 791 [13:21:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A31095", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:16]execute_script... [13:21: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)2885080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A31095", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:16]POST & json_proto [13:21:16]process_json_proto [13:21:16]json parsed OK: [13:21:16]protocol is kg_v1.0 [13:21:16]action value=close_receipt [13:21:16]process_action close_receipt [13:21:16]cmd_close_receipt [13:21:16]MH_GetDate [13:21:16]Write to MH i2c: F0 00 00 61 02 52 [13:21:16]Write i2c OK [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: F0 [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: F0 09 00 [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: F0 09 00 61 02 00 CD 03 15 67 6B 98 1E 66 2E [13:21:16]GetLastDocTimeStamp 1729430054 [13:21:16]current date 1729430477 [13:21:16]FM_GetShiftState [13:21:16]SAM_PROTO_GetShiftState [13:21:16]wFMCommunicate request_size=4 [13:21:16]MH_SAM_APDU [13:21:16]CAPDU: 80 13 01 00 [13:21:16]Write to MH i2c: E2 08 00 62 02 80 13 01 00 00 00 00 00 E1 [13:21:16]Write i2c OK [13:21:16]MH_I2C_Read... [13:21:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:16]Read from MH i2c: E2 [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: E2 0E 00 [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: E2 0E 00 62 02 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 E7 [13:21:16]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [13:21:16]wFMCommunicate OK [13:21:16]SAM_PROTO_GetShiftState done [13:21:16]FM_GetShiftState done [13:21:16]opened in 1729383220 [13:21:16]opened+sec_in_day 1729469620 [13:21:16]quantity*price = 0 [13:21:16]sum+1 = 1 [13:21:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 203 20.10.2024 13:21 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 31095 ФМ: 0000000000963346 ФД: 69358 ФПД: 165326969724644 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132117&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69358&fm=165326969724644&tin=02508201610067®Number=0000000000156251&sum=0 [13:21:18]StoreToDocumentArchive [13:21:18]shift 193 fd 69358 [13:21:18]save to /storage/0193/doc_00069358 [13:21:18]save last doc name /storage/0193/doc_00069358 to /storage/kkm_last_doc_name [13:21:18]save OK [13:21:18]Clear old archive folders... [13:21:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:21:18]tlvbuf is 00246300 [13:21:18]SAM_PROTO_ClearQueue [13:21:18]wFMCommunicate request_size=4 [13:21:18]MH_SAM_APDU [13:21:18]CAPDU: 80 09 00 00 [13:21:18]Write to MH i2c: E2 08 00 6F 02 80 09 00 00 00 00 00 00 E3 [13:21:18]Write i2c OK [13:21:18]MH_I2C_Read... [13:21:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:21:18]Read from MH i2c: E2 [13:21:18]MH_I2C_Read... [13:21:18]Read from MH i2c: E2 03 00 [13:21:18]MH_I2C_Read... [13:21:18]Read from MH i2c: E2 03 00 6F 02 00 90 00 E5 [13:21:18]RAPDU: 90 00 [13:21:18]wFMCommunicate OK [13:21:18]SAM_PROTO_ClearQueue done [13:21:18]KKMCreateOFDPacket [13:21:18]OFDProtocolAddRootSTLVToBuf [13:21:18]FM_MakeSignedData [13:21:18]FM_MakeSignedData [13:21:18]SAM_PROTO_SignData [13:21:18]wFMCommunicate request_size=4 [13:21:18]MH_SAM_APDU [13:21:18]CAPDU: 80 0D 01 02 [13:21:18]Write to MH i2c: E2 08 00 70 02 80 0D 01 02 00 00 00 00 EB [13:21:18]Write i2c OK [13:21:18]MH_I2C_Read... [13:21:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:21:18]Read from MH i2c: E2 [13:21:18]MH_I2C_Read... [13:21:18]Read from MH i2c: E2 03 00 [13:21:18]MH_I2C_Read... [13:21:18]Read from MH i2c: E2 03 00 70 02 00 90 00 E6 [13:21:18]RAPDU: 90 00 [13:21:18]wFMCommunicate OK [13:21:18]wFMCommunicate request_size=255 [13:21:18]MH_SAM_APDU [13:21:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 CD 03 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EE 0E 01 00 35 04 06 00 96 5D 2F 4D [13:21:18]Write to MH i2c: E2 02 01 71 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 CD 03 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EE 0E 01 00 35 04 06 00 96 5D 2F 4D 00 00 AD [13:21:18]Write i2c OK [13:21:18]MH_I2C_Read... [13:21:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:18]Read from MH i2c: E2 [13:21:18]MH_I2C_Read... [13:21:18]Read from MH i2c: E2 03 00 [13:21:18]MH_I2C_Read... [13:21:18]Read from MH i2c: E2 03 00 71 02 00 90 00 E7 [13:21:18]RAPDU: 90 00 [13:21:18]wFMCommunicate OK [13:21:18]wFMCommunicate request_size=7 [13:21:18]MH_SAM_APDU [13:21:18]CAPDU: 80 0D 02 02 02 5E E4 [13:21:18]Write to MH i2c: E2 0A 00 72 02 80 0D 02 02 02 00 5E E4 00 00 34 [13:21:18]Write i2c OK [13:21:18]MH_I2C_Read... [13:21:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:18]Read from MH i2c: E2 [13:21:18]MH_I2C_Read... [13:21:18]Read from MH i2c: E2 03 00 [13:21:18]MH_I2C_Read... [13:21:18]Read from MH i2c: E2 03 00 72 02 00 90 00 E8 [13:21:18]RAPDU: 90 00 [13:21:18]wFMCommunicate OK [13:21:18]wFMCommunicate request_size=4 [13:21:18]MH_SAM_APDU [13:21:18]CAPDU: 80 0D 03 02 [13:21:18]Write to MH i2c: E2 08 00 73 02 80 0D 03 02 00 00 00 00 F0 [13:21:18]Write i2c OK [13:21:18]MH_I2C_Read... [13:21:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:21:18]Read from MH i2c: E2 [13:21:18]MH_I2C_Read... [13:21:18]Read from MH i2c: E2 0B 00 [13:21:18]MH_I2C_Read... [13:21:18]Read from MH i2c: E2 0B 00 73 02 00 48 39 84 5C 94 E9 59 66 90 00 8E [13:21:18]RAPDU: 48 39 84 5C 94 E9 59 66 90 00 [13:21:18]wFMCommunicate OK [13:21:18]SAM_PROTO_SignData done [13:21:18]FM_MakeSignedData done [13:21:18]CreateOFDProtocolMessage [13:21:18]wFMCommunicate request_size=4 [13:21:18]MH_SAM_APDU [13:21:18]CAPDU: 80 11 00 00 [13:21:18]Write to MH i2c: E2 08 00 74 02 80 11 00 00 00 00 00 00 F0 [13:21:18]Write i2c OK [13:21:18]MH_I2C_Read... [13:21:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:18]Read from MH i2c: E2 [13:21:18]MH_I2C_Read... [13:21:18]Read from MH i2c: E2 17 00 [13:21:18]MH_I2C_Read... [13:21:18]Read from MH i2c: E2 17 00 74 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 42 [13:21:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:21:18]wFMCommunicate OK [13:21:18]CreateOFDProtocolMessage done [13:21:18]OFDSenderStorePacket 69358 [13:21:18]StoreOFDPacket docnum=69358 [13:21:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 F5 CE 04 01 AD EC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 CD 03 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EE 0E 01 00 35 04 06 00 96 5D 2F 4D 5E E4 48 39 84 5C 94 E9 59 66 [13:21:18]CheckFolder [13:21:18]dirname=/storage/ofd_packets [13:21:18]CheckFolder done [13:21:18]ProducePacketName [13:21:18]name=ofd_packets/00069358 [13:21:18]NVStorageSaveData ofd_packets/00069358 [13:21:18]File name is /storage/ofd_packets/00069358 [13:21:18]Write 298 bytes [13:21:18]NVStorageSaveData done [13:21:18]OFDSenderStorePacket done [13:21:18]KKMCreateOFDPacket done [13:21:18]NVStorageSaveData kkm_last_timestamp [13:21:18]File name is /storage/kkm_last_timestamp [13:21:18]Write 4 bytes [13:21:18]NVStorageSaveData done [13:21:18]ExternCall_PrintAddStr [13:21:18]wPrintStart [13:21:18]Write to MH i2c: 01 00 00 75 02 77 [13:21:18]OFD Sender: Processing packet 69358 [packets to send 18, broken 17] [13:21:18]ProducePacketName [13:21:18]name=ofd_packets/00069358 [13:21:18]OFD Sender: To server: pG, [13:21:18]CommunicateWithHost lk.salyk.kg:30040 [13:21:18]ConnectInit lk.salyk.kg [13:21:18]Write i2c OK [13:21:18]MH_I2C_Read... [13:21:18]Read from MH i2c: 01 [13:21:18]MH_I2C_Read... [13:21:18]Read from MH i2c: 01 07 00 [13:21:18]MH_I2C_Read... [13:21:18]Read from MH i2c: 01 07 00 75 02 00 00 00 00 00 FF 0F 8C [13:21:18]RasterBufferAndPrint [13:21:18]line Счет N : (1)2885080 [13:21:18]line ИНН: 02508201610067 [13:21:18]line Контрольно-Кассовый Чек [13:21:18]line ПРОДАЖА [13:21:18]line ТРК (МРК, ГНК) : 51 [13:21:18]line Товар: 2710194210 [13:21:18]line ДТ-К-5 [13:21:18]line 100.000 * 0.00 [13:21:18]line = 0.00 [13:21:18]line НДС 12% НСП 1% [13:21:18]line > о реализуемом товаре [13:21:18]line ИТОГО: 0.00 [13:21:18]line НСП 1% : 0.00 [13:21:18]line НДС 12% : 0.00 [13:21:18]line Наличными: 0.00 [13:21:18]line Безнал.: 0.00 [13:21:18]line Место: АЗС № 85 "Партнер Нефть" [13:21:18]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:21:18]line СНО: Общий режим [13:21:18]line Чек 203 20.10.2024 13:21 [13:21:18]line Смена: 193 ФФД: 1.0 [13:21:18]line ЗНМ: 0300000167 [13:21:18]line РНМ: 0000000000156251 [13:21:18]line Версия ККМ: v1.0 [13:21:18]line Талоны: Топливная Карта [13:21:18]line 31095 [13:21:18]line ФМ: 0000000000963346 [13:21:18]line ФД: 69358 [13:21:18]line ФПД: 165326969724644 [13:21:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132117&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69358&fm=165326969724644&tin=02508201610067®Number=0000000000156251&sum=0 [13:21:18]Connected sock=10 [13:21:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 F5 CE 04 01 AD EC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 CD 03 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EE 0E 01 00 35 04 06 00 96 5D 2F 4D 5E E4 48 39 84 5C 94 E9 59 66 [13:21:18]written 0, free lines is 4095 [13:21:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 E8 AD 47 00 E9 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EE 0E 01 00 F4 03 04 00 73 AD 14 67 B6 04 01 00 00 3E 76 50 8E 9F A0 3D 55 [13:21:19]CommunicateWithHost err = 0 [13:21:19]CheckOFDResponse [13:21:19]1017 (14) - 77093643461234 [13:21:19]1041 (16) - 0000000000963346 [13:21:19]1040 (4) - 69358 [13:21:19]1012 (4) - 20.10.2024 07:12 [13:21:19]1206 (1) - 0 [13:21:19]OFD Sender: Remove packet 69358 [13:21:19]ProducePacketName [13:21:19]name=ofd_packets/00069358 [13:21:19]NVStorageDeleteData [13:21:19]Write to MH i2c: 01 00 00 9F 02 A1 [13:21:19]Write i2c OK [13:21:19]MH_I2C_Read... [13:21:19]Read from MH i2c: 01 [13:21:19]MH_I2C_Read... [13:21:19]Read from MH i2c: 01 07 00 [13:21:19]MH_I2C_Read... [13:21:19]Read from MH i2c: 01 07 00 9F 02 00 00 00 00 00 F9 0C AD [13:21:19]RasterBufferAndPrint [13:21:19]line [13:21:19]line [13:21:19]line [13:21:19]line [13:21:19]line [13:21:19]written 0, free lines is 3327 [13:21:19]MH_Cut [13:21:19]Write to MH i2c: D1 01 00 A6 02 01 7A [13:21:19]Write i2c OK [13:21:19]MH_I2C_Read... [13:21:19]Read from MH i2c: D1 [13:21:19]MH_I2C_Read... [13:21:19]Read from MH i2c: D1 01 00 [13:21:19]MH_I2C_Read... [13:21:19]Read from MH i2c: D1 01 00 A6 02 00 79 [13:21:19]Write to MH i2c: 01 00 00 A7 02 A9 [13:21:19]Write i2c OK [13:21:19]MH_I2C_Read... [13:21:19]OFD Sender: No OFD packet to send [13:21:20]*** Cut start [13:21:20]*** Partial cut [13:21:20]*** CUTSNS_PIN = 1 [13:21:20]*** CUTSNS_PIN = 0 [13:21:20]*** Brake cut motor [13:21:20]Read from MH i2c: 01 [13:21:20]MH_I2C_Read... [13:21:20]*** Stop cut motor [13:21:20]*** Cut end [13:21:20]Read from MH i2c: 01 07 00 [13:21:20]MH_I2C_Read... [13:21:20]Read from MH i2c: 01 07 00 A7 02 00 00 00 00 00 FF 0F BE [13:21:20]process_action close_receipt done [13:21:20]requested_data is exist [13:21:20]produce_requested_data [13:21:20]requested_item fm.sn is exist - process it [13:21:20]wFMCommunicate request_size=4 [13:21:20]MH_SAM_APDU [13:21:20]CAPDU: 80 11 00 00 [13:21:20]Write to MH i2c: E2 08 00 A8 02 80 11 00 00 00 00 00 00 24 [13:21:20]Write i2c OK [13:21:20]MH_I2C_Read... [13:21:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:20]Read from MH i2c: E2 [13:21:20]MH_I2C_Read... [13:21:20]Read from MH i2c: E2 17 00 [13:21:20]MH_I2C_Read... [13:21:20]Read from MH i2c: E2 17 00 A8 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 76 [13:21:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:21:20]wFMCommunicate OK [13:21:20]requested_item fd.num is exist - process it [13:21:20]SAM_PROTO_GetFieldsCounters [13:21:20]wFMCommunicate request_size=4 [13:21:20]MH_SAM_APDU [13:21:20]CAPDU: 80 13 00 00 [13:21:20]Write to MH i2c: E2 08 00 A9 02 80 13 00 00 00 00 00 00 27 [13:21:20]Write i2c OK [13:21:20]MH_I2C_Read... [13:21:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:21:20]Read from MH i2c: E2 [13:21:20]MH_I2C_Read... [13:21:20]Read from MH i2c: E2 62 00 [13:21:20]MH_I2C_Read... [13:21:20]Read from MH i2c: E2 62 00 A9 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EE 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [13:21:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EE 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:21:20]wFMCommunicate OK [13:21:20]SAM_PROTO_GetFieldsCounters done [13:21:20]requested_item shift.num is exist - process it [13:21:20]requested_item shift.opened is exist - process it [13:21:20]req_shift_opened [13:21:20]FM_GetShiftState [13:21:20]SAM_PROTO_GetShiftState [13:21:20]wFMCommunicate request_size=4 [13:21:20]MH_SAM_APDU [13:21:20]CAPDU: 80 13 01 00 [13:21:20]Write to MH i2c: E2 08 00 AA 02 80 13 01 00 00 00 00 00 29 [13:21:20]Write i2c OK [13:21:20]MH_I2C_Read... [13:21:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:20]Read from MH i2c: E2 [13:21:20]MH_I2C_Read... [13:21:20]Read from MH i2c: E2 0E 00 [13:21:20]MH_I2C_Read... [13:21:20]Read from MH i2c: E2 0E 00 AA 02 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 2F [13:21:20]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [13:21:20]wFMCommunicate OK [13:21:20]SAM_PROTO_GetShiftState done [13:21:20]FM_GetShiftState done [13:21:20]req_shift_opened done [13:21:20]requested_item shift.open_date is exist - process it [13:21:20]req_shift_open_date [13:21:20]req_shift_open_date done [13:21:20]produce_requested_data done [13:21:20]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69358,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [13:21:20]process_action_free close_receipt [13:21:20]json_value_free [13:21:20]json_value_free done [13:21:20]process_json_proto returns [13:21:20]Send response to host [13:21:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69358,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [13:21:20]free response buf [13:21:20]execute_script done [13:21:20]execute_script returns [13:21:20]free content buf [13:21:20]Sock 8.Close socket [13:21:20]Sock 8.Thread stoped [13:21:24]OFD Sender: No OFD packet to send [13:21:29]OFD Sender: No OFD packet to send [13:21:34]OFD Sender: No OFD packet to send [13:21:39]OFD Sender: No OFD packet to send [13:21:44]OFD Sender: No OFD packet to send [13:21:49]OFD Sender: No OFD packet to send [13:21:54]OFD Sender: No OFD packet to send [13:21:59]OFD Sender: No OFD packet to send [13:22:04]OFD Sender: No OFD packet to send [13:22:09]OFD Sender: No OFD packet to send [13:22:14]OFD Sender: No OFD packet to send [13:22:19]OFD Sender: No OFD packet to send [13:22:24]OFD Sender: No OFD packet to send [13:22:29]OFD Sender: No OFD packet to send [13:22:34]OFD Sender: No OFD packet to send [13:22:39]OFD Sender: No OFD packet to send [13:22:44]OFD Sender: No OFD packet to send [13:22:49]OFD Sender: No OFD packet to send [13:22:54]OFD Sender: No OFD packet to send [13:22:59]OFD Sender: No OFD packet to send [13:23:04]OFD Sender: No OFD packet to send [13:23:09]OFD Sender: No OFD packet to send [13:23:14]OFD Sender: No OFD packet to send [13:23:19]OFD Sender: No OFD packet to send [13:23:24]OFD Sender: No OFD packet to send [13:23:29]OFD Sender: No OFD packet to send [13:23:34]OFD Sender: No OFD packet to send [13:23:39]OFD Sender: No OFD packet to send [13:23:44]OFD Sender: No OFD packet to send [13:23:49]OFD Sender: No OFD packet to send [13:23:54]OFD Sender: No OFD packet to send [13:23:59]OFD Sender: No OFD packet to send [13:24:04]OFD Sender: No OFD packet to send [13:24:09]OFD Sender: No OFD packet to send [13:24:14]OFD Sender: No OFD packet to send [13:24:19]OFD Sender: No OFD packet to send [13:24:24]OFD Sender: No OFD packet to send [13:24:29]OFD Sender: No OFD packet to send [13:24:34]OFD Sender: No OFD packet to send [13:24:39]OFD Sender: No OFD packet to send [13:24:44]OFD Sender: No OFD packet to send [13:24:49]OFD Sender: No OFD packet to send [13:24:54]OFD Sender: No OFD packet to send [13:24:59]OFD Sender: No OFD packet to send [13:25:04]OFD Sender: No OFD packet to send [13:25:09]OFD Sender: No OFD packet to send [13:25:14]OFD Sender: No OFD packet to send [13:25:19]OFD Sender: No OFD packet to send [13:25:24]OFD Sender: No OFD packet to send [13:25:27]accept exits with 9 [13:25:27]New connection [13:25:27]New thread 3066568036 created [13:25:27]Thread 3066711396 joined [13:25:27]Waiting for new connection... [13:25:27] Sock 9.Parse request [13:25:27]Sock 9.Check first char [13:25:27]Sock 9.First char is OK [13:25:27]request: POST /json_proto HTTP/1.0 [13:25:27]Method: POST [13:25:27]URL: /json_proto [13:25:27]Method is POST - this is cgi request [13:25:27]url: /json_proto [13:25:27]query_string will be loaded in cgi processing [13:25:27]execute_cgi json_proto POST (null) [13:25:27]execute_cgi path=json_proto method=POST [13:25:27]POST find Content-Length [13:25:27]Host: 172.17.50.3:8080 [13:25:27]Content-Length: 675 [13:25:27]Content-Type: application/json [13:25:27] [13:25:27]POST finish read [13:25:27]Found Content-Length = 675 [13:25:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:27]execute_script... [13:25: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)2885082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:27]POST & json_proto [13:25:27]process_json_proto [13:25:27]json parsed OK: [13:25:27]protocol is kg_v1.0 [13:25:27]action value=close_receipt [13:25:27]process_action close_receipt [13:25:27]cmd_close_receipt [13:25:27]MH_GetDate [13:25:27]Write to MH i2c: F0 00 00 AB 02 9C [13:25:27]Write i2c OK [13:25:27]MH_I2C_Read... [13:25:27]Read from MH i2c: F0 [13:25:27]MH_I2C_Read... [13:25:27]Read from MH i2c: F0 09 00 [13:25:27]MH_I2C_Read... [13:25:27]Read from MH i2c: F0 09 00 AB 02 00 C7 04 15 67 6B 98 1E 66 73 [13:25:27]GetLastDocTimeStamp 1729430477 [13:25:27]current date 1729430727 [13:25:27]FM_GetShiftState [13:25:27]SAM_PROTO_GetShiftState [13:25:27]wFMCommunicate request_size=4 [13:25:27]MH_SAM_APDU [13:25:27]CAPDU: 80 13 01 00 [13:25:27]Write to MH i2c: E2 08 00 AC 02 80 13 01 00 00 00 00 00 2B [13:25:27]Write i2c OK [13:25:27]MH_I2C_Read... [13:25:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:27]Read from MH i2c: E2 [13:25:27]MH_I2C_Read... [13:25:27]Read from MH i2c: E2 0E 00 [13:25:27]MH_I2C_Read... [13:25:27]Read from MH i2c: E2 0E 00 AC 02 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 31 [13:25:27]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [13:25:27]wFMCommunicate OK [13:25:27]SAM_PROTO_GetShiftState done [13:25:27]FM_GetShiftState done [13:25:27]opened in 1729383220 [13:25:27]opened+sec_in_day 1729469620 [13:25:27]quantity*price = 50063 [13:25:27]sum+1 = 50064 [13:25:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 204 20.10.2024 13:25 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69359 ФПД: 131991965353058 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132527&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69359&fm=131991965353058&tin=02508201610067®Number=0000000000156251&sum=50000 [13:25:28]StoreToDocumentArchive [13:25:28]shift 193 fd 69359 [13:25:28]save to /storage/0193/doc_00069359 [13:25:28]save last doc name /storage/0193/doc_00069359 to /storage/kkm_last_doc_name [13:25:28]save OK [13:25:28]Clear old archive folders... [13:25:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:25:28]tlvbuf is 001FB430 [13:25:28]SAM_PROTO_ClearQueue [13:25:28]wFMCommunicate request_size=4 [13:25:28]MH_SAM_APDU [13:25:28]CAPDU: 80 09 00 00 [13:25:28]Write to MH i2c: E2 08 00 B9 02 80 09 00 00 00 00 00 00 2D [13:25:28]Write i2c OK [13:25:28]MH_I2C_Read... [13:25:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:25:28]Read from MH i2c: E2 [13:25:28]MH_I2C_Read... [13:25:28]Read from MH i2c: E2 03 00 [13:25:28]MH_I2C_Read... [13:25:28]Read from MH i2c: E2 03 00 B9 02 00 90 00 2F [13:25:28]RAPDU: 90 00 [13:25:28]wFMCommunicate OK [13:25:28]SAM_PROTO_ClearQueue done [13:25:28]KKMCreateOFDPacket [13:25:28]OFDProtocolAddRootSTLVToBuf [13:25:28]FM_MakeSignedData [13:25:28]FM_MakeSignedData [13:25:28]SAM_PROTO_SignData [13:25:28]wFMCommunicate request_size=4 [13:25:28]MH_SAM_APDU [13:25:28]CAPDU: 80 0D 01 02 [13:25:28]Write to MH i2c: E2 08 00 BA 02 80 0D 01 02 00 00 00 00 35 [13:25:28]Write i2c OK [13:25:28]MH_I2C_Read... [13:25:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:25:28]Read from MH i2c: E2 [13:25:28]MH_I2C_Read... [13:25:28]Read from MH i2c: E2 03 00 [13:25:28]MH_I2C_Read... [13:25:28]Read from MH i2c: E2 03 00 BA 02 00 90 00 30 [13:25:28]RAPDU: 90 00 [13:25:28]wFMCommunicate OK [13:25:28]wFMCommunicate request_size=255 [13:25:28]MH_SAM_APDU [13:25:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 C7 04 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EF 0E 01 00 35 04 06 00 78 0B C6 35 [13:25:28]Write to MH i2c: E2 02 01 BB 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 C7 04 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EF 0E 01 00 35 04 06 00 78 0B C6 35 00 00 8C [13:25:28]Write i2c OK [13:25:28]MH_I2C_Read... [13:25:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:29]Read from MH i2c: E2 [13:25:29]MH_I2C_Read... [13:25:29]Read from MH i2c: E2 03 00 [13:25:29]MH_I2C_Read... [13:25:29]Read from MH i2c: E2 03 00 BB 02 00 90 00 31 [13:25:29]RAPDU: 90 00 [13:25:29]wFMCommunicate OK [13:25:29]wFMCommunicate request_size=7 [13:25:29]MH_SAM_APDU [13:25:29]CAPDU: 80 0D 02 02 02 44 62 [13:25:29]Write to MH i2c: E2 0A 00 BC 02 80 0D 02 02 02 00 44 62 00 00 E2 [13:25:29]Write i2c OK [13:25:29]MH_I2C_Read... [13:25:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:29]Read from MH i2c: E2 [13:25:29]MH_I2C_Read... [13:25:29]Read from MH i2c: E2 03 00 [13:25:29]MH_I2C_Read... [13:25:29]Read from MH i2c: E2 03 00 BC 02 00 90 00 32 [13:25:29]RAPDU: 90 00 [13:25:29]wFMCommunicate OK [13:25:29]wFMCommunicate request_size=4 [13:25:29]MH_SAM_APDU [13:25:29]CAPDU: 80 0D 03 02 [13:25:29]Write to MH i2c: E2 08 00 BD 02 80 0D 03 02 00 00 00 00 3A [13:25:29]Write i2c OK [13:25:29]MH_I2C_Read... [13:25:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:25:29]Read from MH i2c: E2 [13:25:29]MH_I2C_Read... [13:25:29]Read from MH i2c: E2 0B 00 [13:25:29]MH_I2C_Read... [13:25:29]Read from MH i2c: E2 0B 00 BD 02 00 13 DA 3F 37 D7 5D 07 75 90 00 4E [13:25:29]RAPDU: 13 DA 3F 37 D7 5D 07 75 90 00 [13:25:29]wFMCommunicate OK [13:25:29]SAM_PROTO_SignData done [13:25:29]FM_MakeSignedData done [13:25:29]CreateOFDProtocolMessage [13:25:29]wFMCommunicate request_size=4 [13:25:29]MH_SAM_APDU [13:25:29]CAPDU: 80 11 00 00 [13:25:29]Write to MH i2c: E2 08 00 BE 02 80 11 00 00 00 00 00 00 3A [13:25:29]Write i2c OK [13:25:29]MH_I2C_Read... [13:25:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:29]Read from MH i2c: E2 [13:25:29]MH_I2C_Read... [13:25:29]Read from MH i2c: E2 17 00 [13:25:29]MH_I2C_Read... [13:25:29]Read from MH i2c: E2 17 00 BE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8C [13:25:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:25:29]wFMCommunicate OK [13:25:29]CreateOFDProtocolMessage done [13:25:29]OFDSenderStorePacket 69359 [13:25:29]StoreOFDPacket docnum=69359 [13:25:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 36 A8 04 01 D3 5F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 C7 04 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EF 0E 01 00 35 04 06 00 78 0B C6 35 44 62 13 DA 3F 37 D7 5D 07 75 [13:25:29]CheckFolder [13:25:29]dirname=/storage/ofd_packets [13:25:29]CheckFolder done [13:25:29]ProducePacketName [13:25:29]name=ofd_packets/00069359 [13:25:29]NVStorageSaveData ofd_packets/00069359 [13:25:29]File name is /storage/ofd_packets/00069359 [13:25:29]Write 298 bytes [13:25:29]NVStorageSaveData done [13:25:29]OFDSenderStorePacket done [13:25:29]KKMCreateOFDPacket done [13:25:29]NVStorageSaveData kkm_last_timestamp [13:25:29]File name is /storage/kkm_last_timestamp [13:25:29]Write 4 bytes [13:25:29]NVStorageSaveData done [13:25:29]ExternCall_PrintAddStr [13:25:29]wPrintStart [13:25:29]Write to MH i2c: 01 00 00 BF 02 C1 [13:25:29]Write i2c OK [13:25:29]MH_I2C_Read... [13:25:29]Read from MH i2c: 01 [13:25:29]MH_I2C_Read... [13:25:29]Read from MH i2c: 01 07 00 [13:25:29]MH_I2C_Read... [13:25:29]Read from MH i2c: 01 07 00 BF 02 00 00 00 00 00 FF 0F D6 [13:25:29]RasterBufferAndPrint [13:25:29]line Счет N : (1)2885082 [13:25:29]line ИНН: 02508201610067 [13:25:29]line Контрольно-Кассовый Чек [13:25:29]line ПРОДАЖА [13:25:29]line ТРК (МРК, ГНК) : 51 [13:25:29]line Товар: 2710194210 [13:25:29]line ДТ-К-5 [13:25:29]line 6.570 * 76.20 [13:25:29]line = 500.63 [13:25:29]line НДС 12% НСП 1% [13:25:29]line > о реализуемом товаре [13:25:29]line ОКРУГЛЕНИЕ: -0.63 [13:25:29]line ИТОГО: 500.00 [13:25:29]line Внесено: 500.00 [13:25:29]line СДАЧА: 0.00 [13:25:29]line НСП 1% : 4.43 [13:25:29]line НДС 12% : 53.16 [13:25:29]line Наличными: 500.00 [13:25:29]line Безнал.: 0.00 [13:25:29]line Место: АЗС № 85 "Партнер Нефть" [13:25:29]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:25:29]line СНО: Общий режим [13:25:29]line Чек 204 20.10.2024 13:25 [13:25:29]line Смена: 193 ФФД: 1.0 [13:25:29]line ЗНМ: 0300000167 [13:25:29]line РНМ: 0000000000156251 [13:25:29]line Версия ККМ: v1.0 [13:25:29]line ФМ: 0000000000963346 [13:25:29]line ФД: 69359 [13:25:29]line ФПД: 131991965353058 [13:25:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132527&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69359&fm=131991965353058&tin=02508201610067®Number=0000000000156251&sum=50000 [13:25:29]OFD Sender: Processing packet 69359 [packets to send 18, broken 17] [13:25:29]ProducePacketName [13:25:29]name=ofd_packets/00069359 [13:25:29]OFD Sender: To server: pG, [13:25:29]CommunicateWithHost lk.salyk.kg:30040 [13:25:29]ConnectInit lk.salyk.kg [13:25:29]written 0, free lines is 4095 [13:25:29]Connected sock=10 [13:25:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 36 A8 04 01 D3 5F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 C7 04 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EF 0E 01 00 35 04 06 00 78 0B C6 35 44 62 13 DA 3F 37 D7 5D 07 75 [13:25:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 F4 03 47 00 5B 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EF 0E 01 00 F4 03 04 00 6E AE 14 67 B6 04 01 00 00 40 47 DB 94 46 34 B8 E9 [13:25:29]CommunicateWithHost err = 0 [13:25:29]CheckOFDResponse [13:25:29]1017 (14) - 77093643461234 [13:25:29]1041 (16) - 0000000000963346 [13:25:29]1040 (4) - 69359 [13:25:29]1012 (4) - 20.10.2024 07:17 [13:25:29]1206 (1) - 0 [13:25:29]OFD Sender: Remove packet 69359 [13:25:29]ProducePacketName [13:25:29]name=ofd_packets/00069359 [13:25:29]NVStorageDeleteData [13:25:30]Write to MH i2c: 01 00 00 EA 02 EC [13:25:30]Write i2c OK [13:25:30]MH_I2C_Read... [13:25:30]Read from MH i2c: 01 [13:25:30]MH_I2C_Read... [13:25:30]Read from MH i2c: 01 07 00 [13:25:30]MH_I2C_Read... [13:25:30]Read from MH i2c: 01 07 00 EA 02 00 00 00 00 00 F3 0C F2 [13:25:30]RasterBufferAndPrint [13:25:30]line [13:25:30]line [13:25:30]line [13:25:30]line [13:25:30]line [13:25:30]written 0, free lines is 3321 [13:25:30]MH_Cut [13:25:30]Write to MH i2c: D1 01 00 F1 02 01 C5 [13:25:30]Write i2c OK [13:25:30]MH_I2C_Read... [13:25:30]Read from MH i2c: D1 [13:25:30]MH_I2C_Read... [13:25:30]Read from MH i2c: D1 01 00 [13:25:30]MH_I2C_Read... [13:25:30]Read from MH i2c: D1 01 00 F1 02 00 C4 [13:25:30]Write to MH i2c: 01 00 00 F2 02 F4 [13:25:30]Write i2c OK [13:25:30]MH_I2C_Read... [13:25:30]OFD Sender: No OFD packet to send [13:25:30]*** Cut start [13:25:30]*** Partial cut [13:25:30]*** CUTSNS_PIN = 1 [13:25:30]*** CUTSNS_PIN = 0 [13:25:31]*** Brake cut motor [13:25:31]Read from MH i2c: 01 [13:25:31]MH_I2C_Read... [13:25:31]*** Stop cut motor [13:25:31]*** Cut end [13:25:31]Read from MH i2c: 01 07 00 [13:25:31]MH_I2C_Read... [13:25:31]Read from MH i2c: 01 07 00 F2 02 00 00 00 00 00 FF 0F 09 [13:25:31]process_action close_receipt done [13:25:31]requested_data is exist [13:25:31]produce_requested_data [13:25:31]requested_item fm.sn is exist - process it [13:25:31]wFMCommunicate request_size=4 [13:25:31]MH_SAM_APDU [13:25:31]CAPDU: 80 11 00 00 [13:25:31]Write to MH i2c: E2 08 00 F3 02 80 11 00 00 00 00 00 00 6F [13:25:31]Write i2c OK [13:25:31]MH_I2C_Read... [13:25:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:31]Read from MH i2c: E2 [13:25:31]MH_I2C_Read... [13:25:31]Read from MH i2c: E2 17 00 [13:25:31]MH_I2C_Read... [13:25:31]Read from MH i2c: E2 17 00 F3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C1 [13:25:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:25:31]wFMCommunicate OK [13:25:31]requested_item fd.num is exist - process it [13:25:31]SAM_PROTO_GetFieldsCounters [13:25:31]wFMCommunicate request_size=4 [13:25:31]MH_SAM_APDU [13:25:31]CAPDU: 80 13 00 00 [13:25:31]Write to MH i2c: E2 08 00 F4 02 80 13 00 00 00 00 00 00 72 [13:25:31]Write i2c OK [13:25:31]MH_I2C_Read... [13:25:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:25:31]Read from MH i2c: E2 [13:25:31]MH_I2C_Read... [13:25:31]Read from MH i2c: E2 62 00 [13:25:31]MH_I2C_Read... [13:25:31]Read from MH i2c: E2 62 00 F4 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EF 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [13:25:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EF 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:25:31]wFMCommunicate OK [13:25:31]SAM_PROTO_GetFieldsCounters done [13:25:31]requested_item shift.num is exist - process it [13:25:31]requested_item shift.opened is exist - process it [13:25:31]req_shift_opened [13:25:31]FM_GetShiftState [13:25:31]SAM_PROTO_GetShiftState [13:25:31]wFMCommunicate request_size=4 [13:25:31]MH_SAM_APDU [13:25:31]CAPDU: 80 13 01 00 [13:25:31]Write to MH i2c: E2 08 00 F5 02 80 13 01 00 00 00 00 00 74 [13:25:31]Write i2c OK [13:25:31]MH_I2C_Read... [13:25:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:31]Read from MH i2c: E2 [13:25:31]MH_I2C_Read... [13:25:31]Read from MH i2c: E2 0E 00 [13:25:31]MH_I2C_Read... [13:25:31]Read from MH i2c: E2 0E 00 F5 02 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 7A [13:25:31]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [13:25:31]wFMCommunicate OK [13:25:31]SAM_PROTO_GetShiftState done [13:25:31]FM_GetShiftState done [13:25:31]req_shift_opened done [13:25:31]requested_item shift.open_date is exist - process it [13:25:31]req_shift_open_date [13:25:31]req_shift_open_date done [13:25:31]produce_requested_data done [13:25:31]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69359,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [13:25:31]process_action_free close_receipt [13:25:31]json_value_free [13:25:31]json_value_free done [13:25:31]process_json_proto returns [13:25:31]Send response to host [13:25:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69359,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [13:25:31]free response buf [13:25:31]execute_script done [13:25:31]execute_script returns [13:25:31]free content buf [13:25:31]Sock 9.Close socket [13:25:31]Sock 9.Thread stoped [13:25:35]OFD Sender: No OFD packet to send [13:25:40]OFD Sender: No OFD packet to send [13:25:45]OFD Sender: No OFD packet to send [13:25:50]OFD Sender: No OFD packet to send [13:25:55]OFD Sender: No OFD packet to send [13:26:00]OFD Sender: No OFD packet to send [13:26:05]OFD Sender: No OFD packet to send [13:26:10]OFD Sender: No OFD packet to send [13:26:12]accept exits with 8 [13:26:12]New connection [13:26:12]New thread 3066711396 created [13:26:12]Thread 3066568036 joined [13:26:12]Waiting for new connection... [13:26:12] Sock 8.Parse request [13:26:12]Sock 8.Check first char [13:26:12]Sock 8.First char is OK [13:26:12]request: POST /json_proto HTTP/1.0 [13:26:12]Method: POST [13:26:12]URL: /json_proto [13:26:12]Method is POST - this is cgi request [13:26:12]url: /json_proto [13:26:12]query_string will be loaded in cgi processing [13:26:12]execute_cgi json_proto POST (null) [13:26:12]execute_cgi path=json_proto method=POST [13:26:12]POST find Content-Length [13:26:12]Host: 172.17.50.3:8080 [13:26:12]Content-Length: 678 [13:26:12]Content-Type: application/json [13:26:12] [13:26:12]POST finish read [13:26:12]Found Content-Length = 678 [13:26:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [13:26:12]execute_script... [13:26: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)2885083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [13:26:12]POST & json_proto [13:26:12]process_json_proto [13:26:12]json parsed OK: [13:26:12]protocol is kg_v1.0 [13:26:12]action value=close_receipt [13:26:12]process_action close_receipt [13:26:12]cmd_close_receipt [13:26:12]MH_GetDate [13:26:12]Write to MH i2c: F0 00 00 F6 02 E7 [13:26:12]Write i2c OK [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: F0 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: F0 09 00 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: F0 09 00 F6 02 00 F4 04 15 67 6B 98 1E 66 EB [13:26:12]GetLastDocTimeStamp 1729430727 [13:26:12]current date 1729430772 [13:26:12]FM_GetShiftState [13:26:12]SAM_PROTO_GetShiftState [13:26:12]wFMCommunicate request_size=4 [13:26:12]MH_SAM_APDU [13:26:12]CAPDU: 80 13 01 00 [13:26:12]Write to MH i2c: E2 08 00 F7 02 80 13 01 00 00 00 00 00 76 [13:26:12]Write i2c OK [13:26:12]MH_I2C_Read... [13:26:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:12]Read from MH i2c: E2 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: E2 0E 00 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: E2 0E 00 F7 02 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 7C [13:26:12]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [13:26:12]wFMCommunicate OK [13:26:12]SAM_PROTO_GetShiftState done [13:26:12]FM_GetShiftState done [13:26:12]opened in 1729383220 [13:26:12]opened+sec_in_day 1729469620 [13:26:12]quantity*price = 50010 [13:26:12]sum+1 = 50012 [13:26:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 205 20.10.2024 13:26 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69360 ФПД: 228758176261393 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132613&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69360&fm=228758176261393&tin=02508201610067®Number=0000000000156251&sum=50000 [13:26:13]StoreToDocumentArchive [13:26:13]shift 193 fd 69360 [13:26:13]save to /storage/0193/doc_00069360 [13:26:13]save last doc name /storage/0193/doc_00069360 to /storage/kkm_last_doc_name [13:26:13]save OK [13:26:13]Clear old archive folders... [13:26:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:26:13]tlvbuf is 00242850 [13:26:13]SAM_PROTO_ClearQueue [13:26:13]wFMCommunicate request_size=4 [13:26:13]MH_SAM_APDU [13:26:13]CAPDU: 80 09 00 00 [13:26:13]Write to MH i2c: E2 08 00 04 03 80 09 00 00 00 00 00 00 79 [13:26:13]Write i2c OK [13:26:13]MH_I2C_Read... [13:26:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:13]Read from MH i2c: E2 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: E2 03 00 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: E2 03 00 04 03 00 90 00 7B [13:26:13]RAPDU: 90 00 [13:26:13]wFMCommunicate OK [13:26:13]SAM_PROTO_ClearQueue done [13:26:13]KKMCreateOFDPacket [13:26:13]OFDProtocolAddRootSTLVToBuf [13:26:13]FM_MakeSignedData [13:26:13]FM_MakeSignedData [13:26:13]SAM_PROTO_SignData [13:26:13]wFMCommunicate request_size=4 [13:26:13]MH_SAM_APDU [13:26:13]CAPDU: 80 0D 01 02 [13:26:13]Write to MH i2c: E2 08 00 05 03 80 0D 01 02 00 00 00 00 81 [13:26:13]Write i2c OK [13:26:13]MH_I2C_Read... [13:26:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:14]Read from MH i2c: E2 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: E2 03 00 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: E2 03 00 05 03 00 90 00 7C [13:26:14]RAPDU: 90 00 [13:26:14]wFMCommunicate OK [13:26:14]wFMCommunicate request_size=255 [13:26:14]MH_SAM_APDU [13:26:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 CD 00 00 00 F4 03 04 00 F5 04 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F0 0E 01 00 35 04 06 00 D0 [13:26:14]Write to MH i2c: E2 02 01 06 03 80 0D 02 02 FA 00 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 CD 00 00 00 F4 03 04 00 F5 04 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F0 0E 01 00 35 04 06 00 D0 00 00 B4 [13:26:14]Write i2c OK [13:26:14]MH_I2C_Read... [13:26:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:14]Read from MH i2c: E2 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: E2 03 00 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: E2 03 00 06 03 00 90 00 7D [13:26:14]RAPDU: 90 00 [13:26:14]wFMCommunicate OK [13:26:14]wFMCommunicate request_size=10 [13:26:14]MH_SAM_APDU [13:26:14]CAPDU: 80 0D 02 02 05 0D E9 D5 E5 11 [13:26:14]Write to MH i2c: E2 0D 00 07 03 80 0D 02 02 05 00 0D E9 D5 E5 11 00 00 4F [13:26:14]Write i2c OK [13:26:14]MH_I2C_Read... [13:26:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:14]Read from MH i2c: E2 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: E2 03 00 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: E2 03 00 07 03 00 90 00 7E [13:26:14]RAPDU: 90 00 [13:26:14]wFMCommunicate OK [13:26:14]wFMCommunicate request_size=4 [13:26:14]MH_SAM_APDU [13:26:14]CAPDU: 80 0D 03 02 [13:26:14]Write to MH i2c: E2 08 00 08 03 80 0D 03 02 00 00 00 00 86 [13:26:14]Write i2c OK [13:26:14]MH_I2C_Read... [13:26:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:14]Read from MH i2c: E2 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: E2 0B 00 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: E2 0B 00 08 03 00 85 93 7B 74 BB 38 C0 48 90 00 89 [13:26:14]RAPDU: 85 93 7B 74 BB 38 C0 48 90 00 [13:26:14]wFMCommunicate OK [13:26:14]SAM_PROTO_SignData done [13:26:14]FM_MakeSignedData done [13:26:14]CreateOFDProtocolMessage [13:26:14]wFMCommunicate request_size=4 [13:26:14]MH_SAM_APDU [13:26:14]CAPDU: 80 11 00 00 [13:26:14]Write to MH i2c: E2 08 00 09 03 80 11 00 00 00 00 00 00 86 [13:26:14]Write i2c OK [13:26:14]MH_I2C_Read... [13:26:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:14]Read from MH i2c: E2 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: E2 17 00 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: E2 17 00 09 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D8 [13:26:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:26:14]wFMCommunicate OK [13:26:14]CreateOFDProtocolMessage done [13:26:14]OFDSenderStorePacket 69360 [13:26:14]StoreOFDPacket docnum=69360 [13:26:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 25 3F 07 01 04 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 CD 00 00 00 F4 03 04 00 F5 04 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F0 0E 01 00 35 04 06 00 D0 0D E9 D5 E5 11 85 93 7B 74 BB 38 C0 48 [13:26:14]CheckFolder [13:26:14]dirname=/storage/ofd_packets [13:26:14]CheckFolder done [13:26:14]ProducePacketName [13:26:14]name=ofd_packets/00069360 [13:26:14]NVStorageSaveData ofd_packets/00069360 [13:26:14]File name is /storage/ofd_packets/00069360 [13:26:14]Write 301 bytes [13:26:14]NVStorageSaveData done [13:26:14]OFDSenderStorePacket done [13:26:14]KKMCreateOFDPacket done [13:26:14]NVStorageSaveData kkm_last_timestamp [13:26:14]File name is /storage/kkm_last_timestamp [13:26:14]Write 4 bytes [13:26:14]NVStorageSaveData done [13:26:14]ExternCall_PrintAddStr [13:26:14]wPrintStart [13:26:14]Write to MH i2c: 01 00 00 0A 03 0D [13:26:14]Write i2c OK [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: 01 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: 01 07 00 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: 01 07 00 0A 03 00 00 00 00 00 FF 0F 22 [13:26:14]RasterBufferAndPrint [13:26:14]line Счет N : (1)2885083 [13:26:14]line ИНН: 02508201610067 [13:26:14]line Контрольно-Кассовый Чек [13:26:14]line ПРОДАЖА [13:26:14]line ТРК (МРК, ГНК) : 33 [13:26:14]line Товар: 2710124500 [13:26:14]line Аи-95-К-5 [13:26:14]line 6.740 * 74.20 [13:26:14]line = 500.11 [13:26:14]line НДС 12% НСП 1% [13:26:14]line > о реализуемом товаре [13:26:14]line ОКРУГЛЕНИЕ: -0.11 [13:26:14]line ИТОГО: 500.00 [13:26:14]line Внесено: 500.00 [13:26:14]line СДАЧА: 0.00 [13:26:14]line НСП 1% : 4.43 [13:26:14]line НДС 12% : 53.11 [13:26:14]line Наличными: 500.00 [13:26:14]line Безнал.: 0.00 [13:26:14]line Место: АЗС № 85 "Партнер Нефть" [13:26:14]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:26:14]line СНО: Общий режим [13:26:14]line Чек 205 20.10.2024 13:26 [13:26:14]line Смена: 193 ФФД: 1.0 [13:26:14]line ЗНМ: 0300000167 [13:26:14]line РНМ: 0000000000156251 [13:26:14]line Версия ККМ: v1.0 [13:26:14]line ФМ: 0000000000963346 [13:26:14]line ФД: 69360 [13:26:14]line ФПД: 228758176261393 [13:26:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132613&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69360&fm=228758176261393&tin=02508201610067®Number=0000000000156251&sum=50000 [13:26:14]OFD Sender: Processing packet 69360 [packets to send 18, broken 17] [13:26:14]ProducePacketName [13:26:14]name=ofd_packets/00069360 [13:26:14]OFD Sender: To server: pG, [13:26:14]CommunicateWithHost lk.salyk.kg:30040 [13:26:14]ConnectInit lk.salyk.kg [13:26:14]written 0, free lines is 4095 [13:26:14]Connected sock=10 [13:26:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 25 3F 07 01 04 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 CD 00 00 00 F4 03 04 00 F5 04 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F0 0E 01 00 35 04 06 00 D0 0D E9 D5 E5 11 85 93 7B 74 BB 38 C0 48 [13:26:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 7C 03 47 00 4F E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F0 0E 01 00 F4 03 04 00 9B AE 14 67 B6 04 01 00 00 09 9C 89 FC F2 AD 57 40 [13:26:15]CommunicateWithHost err = 0 [13:26:15]CheckOFDResponse [13:26:15]1017 (14) - 77093643461234 [13:26:15]1041 (16) - 0000000000963346 [13:26:15]1040 (4) - 69360 [13:26:15]1012 (4) - 20.10.2024 07:17 [13:26:15]1206 (1) - 0 [13:26:15]OFD Sender: Remove packet 69360 [13:26:15]ProducePacketName [13:26:15]name=ofd_packets/00069360 [13:26:15]NVStorageDeleteData [13:26:15]Write to MH i2c: 01 00 00 35 03 38 [13:26:15]Write i2c OK [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: 01 [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: 01 07 00 [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: 01 07 00 35 03 00 00 00 00 00 EC 0C 37 [13:26:15]RasterBufferAndPrint [13:26:15]line [13:26:15]line [13:26:15]line [13:26:15]line [13:26:15]line [13:26:15]written 0, free lines is 3314 [13:26:15]MH_Cut [13:26:15]Write to MH i2c: D1 01 00 3C 03 01 11 [13:26:15]Write i2c OK [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: D1 [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: D1 01 00 [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: D1 01 00 3C 03 00 10 [13:26:15]Write to MH i2c: 01 00 00 3D 03 40 [13:26:15]Write i2c OK [13:26:15]MH_I2C_Read... [13:26:15]OFD Sender: No OFD packet to send [13:26:15]*** Cut start [13:26:15]*** Partial cut [13:26:15]*** CUTSNS_PIN = 1 [13:26:16]*** CUTSNS_PIN = 0 [13:26:16]*** Brake cut motor [13:26:16]Read from MH i2c: 01 [13:26:16]MH_I2C_Read... [13:26:16]*** Stop cut motor [13:26:16]*** Cut end [13:26:16]Read from MH i2c: 01 07 00 [13:26:16]MH_I2C_Read... [13:26:16]Read from MH i2c: 01 07 00 3D 03 00 00 00 00 00 FF 0F 55 [13:26:16]process_action close_receipt done [13:26:16]requested_data is exist [13:26:16]produce_requested_data [13:26:16]requested_item fm.sn is exist - process it [13:26:16]wFMCommunicate request_size=4 [13:26:16]MH_SAM_APDU [13:26:16]CAPDU: 80 11 00 00 [13:26:16]Write to MH i2c: E2 08 00 3E 03 80 11 00 00 00 00 00 00 BB [13:26:16]Write i2c OK [13:26:16]MH_I2C_Read... [13:26:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:16]Read from MH i2c: E2 [13:26:16]MH_I2C_Read... [13:26:16]Read from MH i2c: E2 17 00 [13:26:16]MH_I2C_Read... [13:26:16]Read from MH i2c: E2 17 00 3E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0D [13:26:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:26:16]wFMCommunicate OK [13:26:16]requested_item fd.num is exist - process it [13:26:16]SAM_PROTO_GetFieldsCounters [13:26:16]wFMCommunicate request_size=4 [13:26:16]MH_SAM_APDU [13:26:16]CAPDU: 80 13 00 00 [13:26:16]Write to MH i2c: E2 08 00 3F 03 80 13 00 00 00 00 00 00 BE [13:26:16]Write i2c OK [13:26:16]MH_I2C_Read... [13:26:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:16]Read from MH i2c: E2 [13:26:16]MH_I2C_Read... [13:26:16]Read from MH i2c: E2 62 00 [13:26:16]MH_I2C_Read... [13:26:16]Read from MH i2c: E2 62 00 3F 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F0 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [13:26:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F0 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:26:16]wFMCommunicate OK [13:26:16]SAM_PROTO_GetFieldsCounters done [13:26:16]requested_item shift.num is exist - process it [13:26:16]requested_item shift.opened is exist - process it [13:26:16]req_shift_opened [13:26:16]FM_GetShiftState [13:26:16]SAM_PROTO_GetShiftState [13:26:16]wFMCommunicate request_size=4 [13:26:16]MH_SAM_APDU [13:26:16]CAPDU: 80 13 01 00 [13:26:16]Write to MH i2c: E2 08 00 40 03 80 13 01 00 00 00 00 00 C0 [13:26:16]Write i2c OK [13:26:16]MH_I2C_Read... [13:26:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:16]Read from MH i2c: E2 [13:26:16]MH_I2C_Read... [13:26:16]Read from MH i2c: E2 0E 00 [13:26:16]MH_I2C_Read... [13:26:16]Read from MH i2c: E2 0E 00 40 03 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 C6 [13:26:16]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [13:26:16]wFMCommunicate OK [13:26:16]SAM_PROTO_GetShiftState done [13:26:16]FM_GetShiftState done [13:26:16]req_shift_opened done [13:26:16]requested_item shift.open_date is exist - process it [13:26:16]req_shift_open_date [13:26:16]req_shift_open_date done [13:26:16]produce_requested_data done [13:26:16]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69360,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [13:26:16]process_action_free close_receipt [13:26:16]json_value_free [13:26:16]json_value_free done [13:26:16]process_json_proto returns [13:26:16]Send response to host [13:26:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69360,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [13:26:16]free response buf [13:26:16]execute_script done [13:26:16]execute_script returns [13:26:16]free content buf [13:26:16]Sock 8.Close socket [13:26:16]Sock 8.Thread stoped [13:26:20]OFD Sender: No OFD packet to send [13:26:25]OFD Sender: No OFD packet to send [13:26:30]OFD Sender: No OFD packet to send [13:26:35]OFD Sender: No OFD packet to send [13:26:40]OFD Sender: No OFD packet to send [13:26:45]OFD Sender: No OFD packet to send [13:26:50]OFD Sender: No OFD packet to send [13:26:55]OFD Sender: No OFD packet to send [13:27:00]OFD Sender: No OFD packet to send [13:27:05]OFD Sender: No OFD packet to send [13:27:10]OFD Sender: No OFD packet to send [13:27:15]OFD Sender: No OFD packet to send [13:27:20]OFD Sender: No OFD packet to send [13:27:25]OFD Sender: No OFD packet to send [13:27:30]OFD Sender: No OFD packet to send [13:27:35]OFD Sender: No OFD packet to send [13:27:40]OFD Sender: No OFD packet to send [13:27:45]OFD Sender: No OFD packet to send [13:27:50]OFD Sender: No OFD packet to send [13:27:55]OFD Sender: No OFD packet to send [13:28:00]OFD Sender: No OFD packet to send [13:28:05]OFD Sender: No OFD packet to send [13:28:10]OFD Sender: No OFD packet to send [13:28:15]OFD Sender: No OFD packet to send [13:28:20]OFD Sender: No OFD packet to send [13:28:25]OFD Sender: No OFD packet to send [13:28:30]OFD Sender: No OFD packet to send [13:28:35]OFD Sender: No OFD packet to send [13:28:40]OFD Sender: No OFD packet to send [13:28:45]OFD Sender: No OFD packet to send [13:28:50]OFD Sender: No OFD packet to send [13:28:55]OFD Sender: No OFD packet to send [13:29:00]OFD Sender: No OFD packet to send [13:29:05]OFD Sender: No OFD packet to send [13:29:10]OFD Sender: No OFD packet to send [13:29:15]OFD Sender: No OFD packet to send [13:29:20]OFD Sender: No OFD packet to send [13:29:25]OFD Sender: No OFD packet to send [13:29:30]OFD Sender: No OFD packet to send [13:29:35]OFD Sender: No OFD packet to send [13:29:40]OFD Sender: No OFD packet to send [13:29:45]OFD Sender: No OFD packet to send [13:29:50]OFD Sender: No OFD packet to send [13:29:55]OFD Sender: No OFD packet to send [13:30:00]OFD Sender: No OFD packet to send [13:30:05]OFD Sender: No OFD packet to send [13:30:10]OFD Sender: No OFD packet to send [13:30:15]OFD Sender: No OFD packet to send [13:30:20]OFD Sender: No OFD packet to send [13:30:25]OFD Sender: No OFD packet to send [13:30:30]OFD Sender: No OFD packet to send [13:30:35]OFD Sender: No OFD packet to send [13:30:40]OFD Sender: No OFD packet to send [13:30:45]OFD Sender: No OFD packet to send [13:30:50]OFD Sender: No OFD packet to send [13:30:55]OFD Sender: No OFD packet to send [13:31:00]OFD Sender: No OFD packet to send [13:31:05]OFD Sender: No OFD packet to send [13:31:10]OFD Sender: No OFD packet to send [13:31:15]OFD Sender: No OFD packet to send [13:31:20]OFD Sender: No OFD packet to send [13:31:25]OFD Sender: No OFD packet to send [13:31:30]OFD Sender: No OFD packet to send [13:31:35]OFD Sender: No OFD packet to send [13:31:40]OFD Sender: No OFD packet to send [13:31:45]OFD Sender: No OFD packet to send [13:31:50]OFD Sender: No OFD packet to send [13:31:55]OFD Sender: No OFD packet to send [13:32:00]OFD Sender: No OFD packet to send [13:32:05]OFD Sender: No OFD packet to send [13:32:10]OFD Sender: No OFD packet to send [13:32:15]OFD Sender: No OFD packet to send [13:32:20]OFD Sender: No OFD packet to send [13:32:25]OFD Sender: No OFD packet to send [13:32:30]OFD Sender: No OFD packet to send [13:32:35]OFD Sender: No OFD packet to send [13:32:40]OFD Sender: No OFD packet to send [13:32:45]OFD Sender: No OFD packet to send [13:32:50]OFD Sender: No OFD packet to send [13:32:55]OFD Sender: No OFD packet to send [13:33:00]OFD Sender: No OFD packet to send [13:33:05]OFD Sender: No OFD packet to send [13:33:10]OFD Sender: No OFD packet to send [13:33:15]OFD Sender: No OFD packet to send [13:33:20]OFD Sender: No OFD packet to send [13:33:25]OFD Sender: No OFD packet to send [13:33:30]OFD Sender: No OFD packet to send [13:33:36]OFD Sender: No OFD packet to send [13:33:41]OFD Sender: No OFD packet to send [13:33:46]OFD Sender: No OFD packet to send [13:33:51]OFD Sender: No OFD packet to send [13:33:56]OFD Sender: No OFD packet to send [13:34:01]OFD Sender: No OFD packet to send [13:34:06]OFD Sender: No OFD packet to send [13:34:11]OFD Sender: No OFD packet to send [13:34:16]OFD Sender: No OFD packet to send [13:34:21]OFD Sender: No OFD packet to send [13:34:26]OFD Sender: No OFD packet to send [13:34:31]OFD Sender: No OFD packet to send [13:34:36]OFD Sender: No OFD packet to send [13:34:41]OFD Sender: No OFD packet to send [13:34:46]OFD Sender: No OFD packet to send [13:34:51]OFD Sender: No OFD packet to send [13:34:56]OFD Sender: No OFD packet to send [13:35:01]OFD Sender: No OFD packet to send [13:35:06]OFD Sender: No OFD packet to send [13:35:11]OFD Sender: No OFD packet to send [13:35:16]OFD Sender: No OFD packet to send [13:35:21]OFD Sender: No OFD packet to send [13:35:26]OFD Sender: No OFD packet to send [13:35:31]OFD Sender: No OFD packet to send [13:35:36]OFD Sender: No OFD packet to send [13:35:41]OFD Sender: No OFD packet to send [13:35:46]OFD Sender: No OFD packet to send [13:35:51]OFD Sender: No OFD packet to send [13:35:56]OFD Sender: No OFD packet to send [13:36:01]OFD Sender: No OFD packet to send [13:36:06]OFD Sender: No OFD packet to send [13:36:11]OFD Sender: No OFD packet to send [13:36:16]OFD Sender: No OFD packet to send [13:36:21]OFD Sender: No OFD packet to send [13:36:26]OFD Sender: No OFD packet to send [13:36:31]OFD Sender: No OFD packet to send [13:36:36]OFD Sender: No OFD packet to send [13:36:41]OFD Sender: No OFD packet to send [13:36:46]OFD Sender: No OFD packet to send [13:36:51]OFD Sender: No OFD packet to send [13:36:54]accept exits with 9 [13:36:54]New connection [13:36:54]New thread 3066568036 created [13:36:54]Thread 3066711396 joined [13:36:54]Waiting for new connection... [13:36:54] Sock 9.Parse request [13:36:54]Sock 9.Check first char [13:36:54]Sock 9.First char is OK [13:36:54]request: POST /json_proto HTTP/1.0 [13:36:54]Method: POST [13:36:54]URL: /json_proto [13:36:54]Method is POST - this is cgi request [13:36:54]url: /json_proto [13:36:54]query_string will be loaded in cgi processing [13:36:54]execute_cgi json_proto POST (null) [13:36:54]execute_cgi path=json_proto method=POST [13:36:54]POST find Content-Length [13:36:54]Host: 172.17.50.3:8080 [13:36:54]Content-Length: 689 [13:36:54]Content-Type: application/json [13:36:54] [13:36:54]POST finish read [13:36:54]Found Content-Length = 689 [13:36:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:54]execute_script... [13:36: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)2885084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:54]POST & json_proto [13:36:54]process_json_proto [13:36:54]json parsed OK: [13:36:54]protocol is kg_v1.0 [13:36:54]action value=close_receipt [13:36:54]process_action close_receipt [13:36:54]cmd_close_receipt [13:36:54]MH_GetDate [13:36:54]Write to MH i2c: F0 00 00 41 03 33 [13:36:54]Write i2c OK [13:36:54]MH_I2C_Read... [13:36:54]Read from MH i2c: F0 [13:36:54]MH_I2C_Read... [13:36:54]Read from MH i2c: F0 09 00 [13:36:54]MH_I2C_Read... [13:36:54]Read from MH i2c: F0 09 00 41 03 00 76 07 15 67 6B 98 1E 66 BC [13:36:54]GetLastDocTimeStamp 1729430773 [13:36:54]current date 1729431414 [13:36:54]FM_GetShiftState [13:36:54]SAM_PROTO_GetShiftState [13:36:54]wFMCommunicate request_size=4 [13:36:54]MH_SAM_APDU [13:36:54]CAPDU: 80 13 01 00 [13:36:54]Write to MH i2c: E2 08 00 42 03 80 13 01 00 00 00 00 00 C2 [13:36:54]Write i2c OK [13:36:54]MH_I2C_Read... [13:36:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:54]Read from MH i2c: E2 [13:36:54]MH_I2C_Read... [13:36:54]Read from MH i2c: E2 0E 00 [13:36:54]MH_I2C_Read... [13:36:54]Read from MH i2c: E2 0E 00 42 03 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 C8 [13:36:54]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [13:36:54]wFMCommunicate OK [13:36:54]SAM_PROTO_GetShiftState done [13:36:54]FM_GetShiftState done [13:36:54]opened in 1729383220 [13:36:54]opened+sec_in_day 1729469620 [13:36:54]quantity*price = 200025 [13:36:54]sum+1 = 200026 [13:36:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 206 20.10.2024 13:36 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69361 ФПД: 195960158927568 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T133654&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69361&fm=195960158927568&tin=02508201610067®Number=0000000000156251&sum=200000 [13:36:55]StoreToDocumentArchive [13:36:55]shift 193 fd 69361 [13:36:55]save to /storage/0193/doc_00069361 [13:36:55]save last doc name /storage/0193/doc_00069361 to /storage/kkm_last_doc_name [13:36:55]save OK [13:36:55]Clear old archive folders... [13:36:55]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:36:55]tlvbuf is 0024A340 [13:36:55]SAM_PROTO_ClearQueue [13:36:55]wFMCommunicate request_size=4 [13:36:55]MH_SAM_APDU [13:36:55]CAPDU: 80 09 00 00 [13:36:55]Write to MH i2c: E2 08 00 4F 03 80 09 00 00 00 00 00 00 C4 [13:36:55]Write i2c OK [13:36:55]MH_I2C_Read... [13:36:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:36:55]Read from MH i2c: E2 [13:36:55]MH_I2C_Read... [13:36:55]Read from MH i2c: E2 03 00 [13:36:55]MH_I2C_Read... [13:36:55]Read from MH i2c: E2 03 00 4F 03 00 90 00 C6 [13:36:55]RAPDU: 90 00 [13:36:55]wFMCommunicate OK [13:36:55]SAM_PROTO_ClearQueue done [13:36:55]KKMCreateOFDPacket [13:36:55]OFDProtocolAddRootSTLVToBuf [13:36:55]FM_MakeSignedData [13:36:55]FM_MakeSignedData [13:36:55]SAM_PROTO_SignData [13:36:55]wFMCommunicate request_size=4 [13:36:55]MH_SAM_APDU [13:36:55]CAPDU: 80 0D 01 02 [13:36:55]Write to MH i2c: E2 08 00 50 03 80 0D 01 02 00 00 00 00 CC [13:36:55]Write i2c OK [13:36:55]MH_I2C_Read... [13:36:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:36:55]Read from MH i2c: E2 [13:36:55]MH_I2C_Read... [13:36:55]Read from MH i2c: E2 03 00 [13:36:55]MH_I2C_Read... [13:36:55]Read from MH i2c: E2 03 00 50 03 00 90 00 C7 [13:36:55]RAPDU: 90 00 [13:36:55]wFMCommunicate OK [13:36:55]wFMCommunicate request_size=255 [13:36:55]MH_SAM_APDU [13:36:55]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 76 07 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F1 0E 01 [13:36:55]Write to MH i2c: E2 02 01 51 03 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 76 07 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F1 0E 01 00 00 EA [13:36:55]Write i2c OK [13:36:55]MH_I2C_Read... [13:36:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:56]Read from MH i2c: E2 [13:36:56]MH_I2C_Read... [13:36:56]Read from MH i2c: E2 03 00 [13:36:56]MH_I2C_Read... [13:36:56]Read from MH i2c: E2 03 00 51 03 00 90 00 C8 [13:36:56]RAPDU: 90 00 [13:36:56]wFMCommunicate OK [13:36:56]wFMCommunicate request_size=16 [13:36:56]MH_SAM_APDU [13:36:56]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 B2 39 87 A9 BA D0 [13:36:56]Write to MH i2c: E2 13 00 52 03 80 0D 02 02 0B 00 00 35 04 06 00 B2 39 87 A9 BA D0 00 00 C9 [13:36:56]Write i2c OK [13:36:56]MH_I2C_Read... [13:36:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:56]Read from MH i2c: E2 [13:36:56]MH_I2C_Read... [13:36:56]Read from MH i2c: E2 03 00 [13:36:56]MH_I2C_Read... [13:36:56]Read from MH i2c: E2 03 00 52 03 00 90 00 C9 [13:36:56]RAPDU: 90 00 [13:36:56]wFMCommunicate OK [13:36:56]wFMCommunicate request_size=4 [13:36:56]MH_SAM_APDU [13:36:56]CAPDU: 80 0D 03 02 [13:36:56]Write to MH i2c: E2 08 00 53 03 80 0D 03 02 00 00 00 00 D1 [13:36:56]Write i2c OK [13:36:56]MH_I2C_Read... [13:36:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:36:56]Read from MH i2c: E2 [13:36:56]MH_I2C_Read... [13:36:56]Read from MH i2c: E2 0B 00 [13:36:56]MH_I2C_Read... [13:36:56]Read from MH i2c: E2 0B 00 53 03 00 1D 56 F1 F3 E2 68 24 87 90 00 1E [13:36:56]RAPDU: 1D 56 F1 F3 E2 68 24 87 90 00 [13:36:56]wFMCommunicate OK [13:36:56]SAM_PROTO_SignData done [13:36:56]FM_MakeSignedData done [13:36:56]CreateOFDProtocolMessage [13:36:56]wFMCommunicate request_size=4 [13:36:56]MH_SAM_APDU [13:36:56]CAPDU: 80 11 00 00 [13:36:56]Write to MH i2c: E2 08 00 54 03 80 11 00 00 00 00 00 00 D1 [13:36:56]Write i2c OK [13:36:56]MH_I2C_Read... [13:36:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:56]Read from MH i2c: E2 [13:36:56]MH_I2C_Read... [13:36:56]Read from MH i2c: E2 17 00 [13:36:56]MH_I2C_Read... [13:36:56]Read from MH i2c: E2 17 00 54 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 23 [13:36:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:36:56]wFMCommunicate OK [13:36:56]CreateOFDProtocolMessage done [13:36:56]OFDSenderStorePacket 69361 [13:36:56]StoreOFDPacket docnum=69361 [13:36:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 53 8B 0D 01 1B 37 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 76 07 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F1 0E 01 00 35 04 06 00 B2 39 87 A9 BA D0 1D 56 F1 F3 E2 68 24 87 [13:36:56]CheckFolder [13:36:56]dirname=/storage/ofd_packets [13:36:56]CheckFolder done [13:36:56]ProducePacketName [13:36:56]name=ofd_packets/00069361 [13:36:56]NVStorageSaveData ofd_packets/00069361 [13:36:56]File name is /storage/ofd_packets/00069361 [13:36:56]Write 307 bytes [13:36:56]NVStorageSaveData done [13:36:56]OFDSenderStorePacket done [13:36:56]KKMCreateOFDPacket done [13:36:56]NVStorageSaveData kkm_last_timestamp [13:36:56]File name is /storage/kkm_last_timestamp [13:36:56]Write 4 bytes [13:36:56]NVStorageSaveData done [13:36:56]OFD Sender: Processing packet 69361 [packets to send 18, broken 17] [13:36:56]ProducePacketName [13:36:56]name=ofd_packets/00069361 [13:36:56]OFD Sender: To server: pG, [13:36:56]CommunicateWithHost lk.salyk.kg:30040 [13:36:56]ConnectInit lk.salyk.kg [13:36:56]ExternCall_PrintAddStr [13:36:56]wPrintStart [13:36:56]Write to MH i2c: 01 00 00 55 03 58 [13:36:56]Write i2c OK [13:36:56]MH_I2C_Read... [13:36:56]Read from MH i2c: 01 [13:36:56]MH_I2C_Read... [13:36:56]Read from MH i2c: 01 07 00 [13:36:56]MH_I2C_Read... [13:36:56]Read from MH i2c: 01 07 00 55 03 00 00 00 00 00 FF 0F 6D [13:36:56]RasterBufferAndPrint [13:36:56]line Счет N : (1)2885084 [13:36:56]line ИНН: 02508201610067 [13:36:56]line Контрольно-Кассовый Чек [13:36:56]line ПРОДАЖА [13:36:56]line ТРК (МРК, ГНК) : 11 [13:36:56]line Товар: 2710194240 [13:36:56]line D-ENERGY Дт-К-2 [13:36:56]line 25.910 * 77.20 [13:36:56]line = 2000.25 [13:36:56]line НДС 12% НСП 1% [13:36:56]line > о реализуемом товаре [13:36:56]line ОКРУГЛЕНИЕ: -0.25 [13:36:56]line ИТОГО: 2000.00 [13:36:56]line Внесено: 2000.00 [13:36:56]line СДАЧА: 0.00 [13:36:56]line НСП 1% : 17.70 [13:36:56]line НДС 12% : 212.42 [13:36:56]line Наличными: 2000.00 [13:36:56]line Безнал.: 0.00 [13:36:56]line Место: АЗС № 85 "Партнер Нефть" [13:36:56]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:36:56]line СНО: Общий режим [13:36:56]line Чек 206 20.10.2024 13:36 [13:36:56]line Смена: 193 ФФД: 1.0 [13:36:56]line ЗНМ: 0300000167 [13:36:56]line РНМ: 0000000000156251 [13:36:56]line Версия ККМ: v1.0 [13:36:56]line ФМ: 0000000000963346 [13:36:56]line ФД: 69361 [13:36:56]line ФПД: 195960158927568 [13:36:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T133654&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69361&fm=195960158927568&tin=02508201610067®Number=0000000000156251&sum=200000 [13:36:56]Connected sock=11 [13:36:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 53 8B 0D 01 1B 37 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 76 07 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F1 0E 01 00 35 04 06 00 B2 39 87 A9 BA D0 1D 56 F1 F3 E2 68 24 87 [13:36:56]written 0, free lines is 4095 [13:36:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 49 33 47 00 F4 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F1 0E 01 00 F4 03 04 00 1D B1 14 67 B6 04 01 00 00 90 58 72 62 5A CC C7 6F [13:36:56]CommunicateWithHost err = 0 [13:36:56]CheckOFDResponse [13:36:56]1017 (14) - 77093643461234 [13:36:56]1041 (16) - 0000000000963346 [13:36:56]1040 (4) - 69361 [13:36:56]1012 (4) - 20.10.2024 07:28 [13:36:56]1206 (1) - 0 [13:36:56]OFD Sender: Remove packet 69361 [13:36:56]ProducePacketName [13:36:56]name=ofd_packets/00069361 [13:36:56]NVStorageDeleteData [13:36:57]Write to MH i2c: 01 00 00 80 03 83 [13:36:57]Write i2c OK [13:36:57]MH_I2C_Read... [13:36:57]Read from MH i2c: 01 [13:36:57]MH_I2C_Read... [13:36:57]Read from MH i2c: 01 07 00 [13:36:57]MH_I2C_Read... [13:36:57]Read from MH i2c: 01 07 00 80 03 00 00 00 00 00 FC 0C 92 [13:36:57]RasterBufferAndPrint [13:36:57]line [13:36:57]line [13:36:57]line [13:36:57]line [13:36:57]line [13:36:57]written 0, free lines is 3331 [13:36:57]MH_Cut [13:36:57]Write to MH i2c: D1 01 00 87 03 01 5C [13:36:57]Write i2c OK [13:36:57]MH_I2C_Read... [13:36:57]Read from MH i2c: D1 [13:36:57]MH_I2C_Read... [13:36:57]Read from MH i2c: D1 01 00 [13:36:57]MH_I2C_Read... [13:36:57]Read from MH i2c: D1 01 00 87 03 00 5B [13:36:57]Write to MH i2c: 01 00 00 88 03 8B [13:36:57]Write i2c OK [13:36:57]MH_I2C_Read... [13:36:57]OFD Sender: No OFD packet to send [13:36:57]*** Cut start [13:36:57]*** Partial cut [13:36:57]*** CUTSNS_PIN = 1 [13:36:57]*** CUTSNS_PIN = 0 [13:36:57]*** Brake cut motor [13:36:58]Read from MH i2c: 01 [13:36:58]MH_I2C_Read... [13:36:58]*** Stop cut motor [13:36:58]*** Cut end [13:36:58]Read from MH i2c: 01 07 00 [13:36:58]MH_I2C_Read... [13:36:58]Read from MH i2c: 01 07 00 88 03 00 00 00 00 00 FF 0F A0 [13:36:58]process_action close_receipt done [13:36:58]requested_data is exist [13:36:58]produce_requested_data [13:36:58]requested_item fm.sn is exist - process it [13:36:58]wFMCommunicate request_size=4 [13:36:58]MH_SAM_APDU [13:36:58]CAPDU: 80 11 00 00 [13:36:58]Write to MH i2c: E2 08 00 89 03 80 11 00 00 00 00 00 00 06 [13:36:58]Write i2c OK [13:36:58]MH_I2C_Read... [13:36:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:58]Read from MH i2c: E2 [13:36:58]MH_I2C_Read... [13:36:58]Read from MH i2c: E2 17 00 [13:36:58]MH_I2C_Read... [13:36:58]Read from MH i2c: E2 17 00 89 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 58 [13:36:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:36:58]wFMCommunicate OK [13:36:58]requested_item fd.num is exist - process it [13:36:58]SAM_PROTO_GetFieldsCounters [13:36:58]wFMCommunicate request_size=4 [13:36:58]MH_SAM_APDU [13:36:58]CAPDU: 80 13 00 00 [13:36:58]Write to MH i2c: E2 08 00 8A 03 80 13 00 00 00 00 00 00 09 [13:36:58]Write i2c OK [13:36:58]MH_I2C_Read... [13:36:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:36:58]Read from MH i2c: E2 [13:36:58]MH_I2C_Read... [13:36:58]Read from MH i2c: E2 62 00 [13:36:58]MH_I2C_Read... [13:36:58]Read from MH i2c: E2 62 00 8A 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F1 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [13:36:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F1 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:36:58]wFMCommunicate OK [13:36:58]SAM_PROTO_GetFieldsCounters done [13:36:58]requested_item shift.num is exist - process it [13:36:58]requested_item shift.opened is exist - process it [13:36:58]req_shift_opened [13:36:58]FM_GetShiftState [13:36:58]SAM_PROTO_GetShiftState [13:36:58]wFMCommunicate request_size=4 [13:36:58]MH_SAM_APDU [13:36:58]CAPDU: 80 13 01 00 [13:36:58]Write to MH i2c: E2 08 00 8B 03 80 13 01 00 00 00 00 00 0B [13:36:58]Write i2c OK [13:36:58]MH_I2C_Read... [13:36:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:58]Read from MH i2c: E2 [13:36:58]MH_I2C_Read... [13:36:58]Read from MH i2c: E2 0E 00 [13:36:58]MH_I2C_Read... [13:36:58]Read from MH i2c: E2 0E 00 8B 03 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 11 [13:36:58]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [13:36:58]wFMCommunicate OK [13:36:58]SAM_PROTO_GetShiftState done [13:36:58]FM_GetShiftState done [13:36:58]req_shift_opened done [13:36:58]requested_item shift.open_date is exist - process it [13:36:58]req_shift_open_date [13:36:58]req_shift_open_date done [13:36:58]produce_requested_data done [13:36:58]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69361,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [13:36:58]process_action_free close_receipt [13:36:58]json_value_free [13:36:58]json_value_free done [13:36:58]process_json_proto returns [13:36:58]Send response to host [13:36:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69361,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [13:36:58]free response buf [13:36:58]execute_script done [13:36:58]execute_script returns [13:36:58]free content buf [13:36:58]Sock 9.Close socket [13:36:58]Sock 9.Thread stoped [13:37:02]OFD Sender: No OFD packet to send [13:37:07]OFD Sender: No OFD packet to send [13:37:12]OFD Sender: No OFD packet to send [13:37:14]accept exits with 8 [13:37:14]New connection [13:37:14]New thread 3066711396 created [13:37:14]Thread 3066568036 joined [13:37:14]Waiting for new connection... [13:37:14] Sock 8.Parse request [13:37:14]Sock 8.Check first char [13:37:14]Sock 8.First char is OK [13:37:14]request: POST /json_proto HTTP/1.0 [13:37:14]Method: POST [13:37:14]URL: /json_proto [13:37:14]Method is POST - this is cgi request [13:37:14]url: /json_proto [13:37:14]query_string will be loaded in cgi processing [13:37:14]execute_cgi json_proto POST (null) [13:37:14]execute_cgi path=json_proto method=POST [13:37:14]POST find Content-Length [13:37:14]Host: 172.17.50.3:8080 [13:37:14]Content-Length: 678 [13:37:14]Content-Type: application/json [13:37:14] [13:37:14]POST finish read [13:37:14]Found Content-Length = 678 [13:37:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:14]execute_script... [13:37:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:14]POST & json_proto [13:37:14]process_json_proto [13:37:14]json parsed OK: [13:37:14]protocol is kg_v1.0 [13:37:14]action value=close_receipt [13:37:14]process_action close_receipt [13:37:14]cmd_close_receipt [13:37:14]MH_GetDate [13:37:14]Write to MH i2c: F0 00 00 8C 03 7E [13:37:14]Write i2c OK [13:37:14]MH_I2C_Read... [13:37:14]Read from MH i2c: F0 [13:37:14]MH_I2C_Read... [13:37:14]Read from MH i2c: F0 09 00 [13:37:14]MH_I2C_Read... [13:37:14]Read from MH i2c: F0 09 00 8C 03 00 8A 07 15 67 6B 98 1E 66 1B [13:37:14]GetLastDocTimeStamp 1729431414 [13:37:14]current date 1729431434 [13:37:14]FM_GetShiftState [13:37:14]SAM_PROTO_GetShiftState [13:37:14]wFMCommunicate request_size=4 [13:37:14]MH_SAM_APDU [13:37:14]CAPDU: 80 13 01 00 [13:37:14]Write to MH i2c: E2 08 00 8D 03 80 13 01 00 00 00 00 00 0D [13:37:14]Write i2c OK [13:37:14]MH_I2C_Read... [13:37:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:14]Read from MH i2c: E2 [13:37:14]MH_I2C_Read... [13:37:14]Read from MH i2c: E2 0E 00 [13:37:14]MH_I2C_Read... [13:37:14]Read from MH i2c: E2 0E 00 8D 03 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 13 [13:37:14]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [13:37:14]wFMCommunicate OK [13:37:14]SAM_PROTO_GetShiftState done [13:37:14]FM_GetShiftState done [13:37:14]opened in 1729383220 [13:37:14]opened+sec_in_day 1729469620 [13:37:14]quantity*price = 50041 [13:37:14]sum+1 = 50042 [13:37:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 207 20.10.2024 13:37 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69362 ФПД: 35106994114688 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T133714&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69362&fm=35106994114688&tin=02508201610067®Number=0000000000156251&sum=50000 [13:37:15]StoreToDocumentArchive [13:37:15]shift 193 fd 69362 [13:37:15]save to /storage/0193/doc_00069362 [13:37:15]save last doc name /storage/0193/doc_00069362 to /storage/kkm_last_doc_name [13:37:15]save OK [13:37:15]Clear old archive folders... [13:37:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:37:15]tlvbuf is 0025F9E0 [13:37:15]SAM_PROTO_ClearQueue [13:37:15]wFMCommunicate request_size=4 [13:37:15]MH_SAM_APDU [13:37:15]CAPDU: 80 09 00 00 [13:37:15]Write to MH i2c: E2 08 00 9A 03 80 09 00 00 00 00 00 00 0F [13:37:15]Write i2c OK [13:37:15]MH_I2C_Read... [13:37:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:37:15]Read from MH i2c: E2 [13:37:15]MH_I2C_Read... [13:37:15]Read from MH i2c: E2 03 00 [13:37:15]MH_I2C_Read... [13:37:15]Read from MH i2c: E2 03 00 9A 03 00 90 00 11 [13:37:15]RAPDU: 90 00 [13:37:15]wFMCommunicate OK [13:37:15]SAM_PROTO_ClearQueue done [13:37:15]KKMCreateOFDPacket [13:37:15]OFDProtocolAddRootSTLVToBuf [13:37:15]FM_MakeSignedData [13:37:15]FM_MakeSignedData [13:37:15]SAM_PROTO_SignData [13:37:15]wFMCommunicate request_size=4 [13:37:15]MH_SAM_APDU [13:37:15]CAPDU: 80 0D 01 02 [13:37:15]Write to MH i2c: E2 08 00 9B 03 80 0D 01 02 00 00 00 00 17 [13:37:15]Write i2c OK [13:37:15]MH_I2C_Read... [13:37:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:37:15]Read from MH i2c: E2 [13:37:15]MH_I2C_Read... [13:37:15]Read from MH i2c: E2 03 00 [13:37:15]MH_I2C_Read... [13:37:15]Read from MH i2c: E2 03 00 9B 03 00 90 00 12 [13:37:15]RAPDU: 90 00 [13:37:15]wFMCommunicate OK [13:37:15]wFMCommunicate request_size=255 [13:37:15]MH_SAM_APDU [13:37:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 8A 07 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F2 0E 01 00 35 04 06 00 1F [13:37:15]Write to MH i2c: E2 02 01 9C 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 8A 07 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F2 0E 01 00 35 04 06 00 1F 00 00 5D [13:37:15]Write i2c OK [13:37:15]MH_I2C_Read... [13:37:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:16]Read from MH i2c: E2 [13:37:16]MH_I2C_Read... [13:37:16]Read from MH i2c: E2 03 00 [13:37:16]MH_I2C_Read... [13:37:16]Read from MH i2c: E2 03 00 9C 03 00 90 00 13 [13:37:16]RAPDU: 90 00 [13:37:16]wFMCommunicate OK [13:37:16]wFMCommunicate request_size=10 [13:37:16]MH_SAM_APDU [13:37:16]CAPDU: 80 0D 02 02 05 ED FB E9 D0 80 [13:37:16]Write to MH i2c: E2 0D 00 9D 03 80 0D 02 02 05 00 ED FB E9 D0 80 00 00 45 [13:37:16]Write i2c OK [13:37:16]MH_I2C_Read... [13:37:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:16]Read from MH i2c: E2 [13:37:16]MH_I2C_Read... [13:37:16]Read from MH i2c: E2 03 00 [13:37:16]MH_I2C_Read... [13:37:16]Read from MH i2c: E2 03 00 9D 03 00 90 00 14 [13:37:16]RAPDU: 90 00 [13:37:16]wFMCommunicate OK [13:37:16]wFMCommunicate request_size=4 [13:37:16]MH_SAM_APDU [13:37:16]CAPDU: 80 0D 03 02 [13:37:16]Write to MH i2c: E2 08 00 9E 03 80 0D 03 02 00 00 00 00 1C [13:37:16]Write i2c OK [13:37:16]MH_I2C_Read... [13:37:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:37:16]Read from MH i2c: E2 [13:37:16]MH_I2C_Read... [13:37:16]Read from MH i2c: E2 0B 00 [13:37:16]MH_I2C_Read... [13:37:16]Read from MH i2c: E2 0B 00 9E 03 00 4A A7 83 50 92 E0 B5 A4 90 00 AC [13:37:16]RAPDU: 4A A7 83 50 92 E0 B5 A4 90 00 [13:37:16]wFMCommunicate OK [13:37:16]SAM_PROTO_SignData done [13:37:16]FM_MakeSignedData done [13:37:16]CreateOFDProtocolMessage [13:37:16]wFMCommunicate request_size=4 [13:37:16]MH_SAM_APDU [13:37:16]CAPDU: 80 11 00 00 [13:37:16]Write to MH i2c: E2 08 00 9F 03 80 11 00 00 00 00 00 00 1C [13:37:16]Write i2c OK [13:37:16]MH_I2C_Read... [13:37:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:16]Read from MH i2c: E2 [13:37:16]MH_I2C_Read... [13:37:16]Read from MH i2c: E2 17 00 [13:37:16]MH_I2C_Read... [13:37:16]Read from MH i2c: E2 17 00 9F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6E [13:37:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:37:16]wFMCommunicate OK [13:37:16]CreateOFDProtocolMessage done [13:37:16]OFDSenderStorePacket 69362 [13:37:16]StoreOFDPacket docnum=69362 [13:37:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 AC 9E 07 01 8C EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 8A 07 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F2 0E 01 00 35 04 06 00 1F ED FB E9 D0 80 4A A7 83 50 92 E0 B5 A4 [13:37:16]CheckFolder [13:37:16]dirname=/storage/ofd_packets [13:37:16]CheckFolder done [13:37:16]ProducePacketName [13:37:16]name=ofd_packets/00069362 [13:37:16]NVStorageSaveData ofd_packets/00069362 [13:37:16]File name is /storage/ofd_packets/00069362 [13:37:16]Write 301 bytes [13:37:16]NVStorageSaveData done [13:37:16]OFDSenderStorePacket done [13:37:16]KKMCreateOFDPacket done [13:37:16]NVStorageSaveData kkm_last_timestamp [13:37:16]File name is /storage/kkm_last_timestamp [13:37:16]Write 4 bytes [13:37:16]NVStorageSaveData done [13:37:16]ExternCall_PrintAddStr [13:37:16]wPrintStart [13:37:16]Write to MH i2c: 01 00 00 A0 03 A3 [13:37:16]Write i2c OK [13:37:16]MH_I2C_Read... [13:37:16]Read from MH i2c: 01 [13:37:16]MH_I2C_Read... [13:37:16]Read from MH i2c: 01 07 00 [13:37:16]MH_I2C_Read... [13:37:16]Read from MH i2c: 01 07 00 A0 03 00 00 00 00 00 FF 0F B8 [13:37:16]RasterBufferAndPrint [13:37:16]line Счет N : (1)2885085 [13:37:16]line ИНН: 02508201610067 [13:37:16]line Контрольно-Кассовый Чек [13:37:16]line ПРОДАЖА [13:37:16]line ТРК (МРК, ГНК) : 22 [13:37:16]line Товар: 2710124130 [13:37:16]line Аи-92-К-5 [13:37:16]line 7.480 * 66.90 [13:37:16]line = 500.41 [13:37:16]line НДС 12% НСП 1% [13:37:16]line > о реализуемом товаре [13:37:16]line ОКРУГЛЕНИЕ: -0.41 [13:37:16]line ИТОГО: 500.00 [13:37:16]line Внесено: 500.00 [13:37:16]line СДАЧА: 0.00 [13:37:16]line НСП 1% : 4.43 [13:37:16]line НДС 12% : 53.14 [13:37:16]line Наличными: 500.00 [13:37:16]line Безнал.: 0.00 [13:37:16]line Место: АЗС № 85 "Партнер Нефть" [13:37:16]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:37:16]line СНО: Общий режим [13:37:16]line Чек 207 20.10.2024 13:37 [13:37:16]line Смена: 193 ФФД: 1.0 [13:37:16]line ЗНМ: 0300000167 [13:37:16]line РНМ: 0000000000156251 [13:37:16]line Версия ККМ: v1.0 [13:37:16]line ФМ: 0000000000963346 [13:37:16]line ФД: 69362 [13:37:16]line ФПД: 35106994114688 [13:37:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T133714&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69362&fm=35106994114688&tin=02508201610067®Number=0000000000156251&sum=50000 [13:37:16]OFD Sender: Processing packet 69362 [packets to send 18, broken 17] [13:37:16]ProducePacketName [13:37:16]name=ofd_packets/00069362 [13:37:16]OFD Sender: To server: pG, [13:37:16]CommunicateWithHost lk.salyk.kg:30040 [13:37:16]ConnectInit lk.salyk.kg [13:37:16]written 0, free lines is 4095 [13:37:16]Connected sock=10 [13:37:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 AC 9E 07 01 8C EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 8A 07 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F2 0E 01 00 35 04 06 00 1F ED FB E9 D0 80 4A A7 83 50 92 E0 B5 A4 [13:37:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 8E CE 47 00 13 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F2 0E 01 00 F4 03 04 00 31 B1 14 67 B6 04 01 00 00 12 5A 4B 71 88 9D 51 57 [13:37:17]CommunicateWithHost err = 0 [13:37:17]CheckOFDResponse [13:37:17]1017 (14) - 77093643461234 [13:37:17]1041 (16) - 0000000000963346 [13:37:17]1040 (4) - 69362 [13:37:17]1012 (4) - 20.10.2024 07:28 [13:37:17]1206 (1) - 0 [13:37:17]OFD Sender: Remove packet 69362 [13:37:17]ProducePacketName [13:37:17]name=ofd_packets/00069362 [13:37:17]NVStorageDeleteData [13:37:17]Write to MH i2c: 01 00 00 CB 03 CE [13:37:17]Write i2c OK [13:37:17]MH_I2C_Read... [13:37:17]Read from MH i2c: 01 [13:37:17]MH_I2C_Read... [13:37:17]Read from MH i2c: 01 07 00 [13:37:17]MH_I2C_Read... [13:37:17]Read from MH i2c: 01 07 00 CB 03 00 00 00 00 00 00 0D E2 [13:37:17]RasterBufferAndPrint [13:37:17]line [13:37:17]line [13:37:17]line [13:37:17]line [13:37:17]line [13:37:17]written 0, free lines is 3334 [13:37:17]MH_Cut [13:37:17]Write to MH i2c: D1 01 00 D2 03 01 A7 [13:37:17]Write i2c OK [13:37:17]MH_I2C_Read... [13:37:17]Read from MH i2c: D1 [13:37:17]MH_I2C_Read... [13:37:17]Read from MH i2c: D1 01 00 [13:37:17]MH_I2C_Read... [13:37:17]Read from MH i2c: D1 01 00 D2 03 00 A6 [13:37:17]Write to MH i2c: 01 00 00 D3 03 D6 [13:37:17]Write i2c OK [13:37:17]MH_I2C_Read... [13:37:17]OFD Sender: No OFD packet to send [13:37:17]*** Cut start [13:37:17]*** Partial cut [13:37:17]*** CUTSNS_PIN = 1 [13:37:17]*** CUTSNS_PIN = 0 [13:37:18]*** Brake cut motor [13:37:18]Read from MH i2c: 01 [13:37:18]MH_I2C_Read... [13:37:18]*** Stop cut motor [13:37:18]*** Cut end [13:37:18]Read from MH i2c: 01 07 00 [13:37:18]MH_I2C_Read... [13:37:18]Read from MH i2c: 01 07 00 D3 03 00 00 00 00 00 FF 0F EB [13:37:18]process_action close_receipt done [13:37:18]requested_data is exist [13:37:18]produce_requested_data [13:37:18]requested_item fm.sn is exist - process it [13:37:18]wFMCommunicate request_size=4 [13:37:18]MH_SAM_APDU [13:37:18]CAPDU: 80 11 00 00 [13:37:18]Write to MH i2c: E2 08 00 D4 03 80 11 00 00 00 00 00 00 51 [13:37:18]Write i2c OK [13:37:18]MH_I2C_Read... [13:37:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:18]Read from MH i2c: E2 [13:37:18]MH_I2C_Read... [13:37:18]Read from MH i2c: E2 17 00 [13:37:18]MH_I2C_Read... [13:37:18]Read from MH i2c: E2 17 00 D4 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A3 [13:37:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:37:18]wFMCommunicate OK [13:37:18]requested_item fd.num is exist - process it [13:37:18]SAM_PROTO_GetFieldsCounters [13:37:18]wFMCommunicate request_size=4 [13:37:18]MH_SAM_APDU [13:37:18]CAPDU: 80 13 00 00 [13:37:18]Write to MH i2c: E2 08 00 D5 03 80 13 00 00 00 00 00 00 54 [13:37:18]Write i2c OK [13:37:18]MH_I2C_Read... [13:37:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:37:18]Read from MH i2c: E2 [13:37:18]MH_I2C_Read... [13:37:18]Read from MH i2c: E2 62 00 [13:37:18]MH_I2C_Read... [13:37:18]Read from MH i2c: E2 62 00 D5 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F2 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [13:37:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F2 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:37:18]wFMCommunicate OK [13:37:18]SAM_PROTO_GetFieldsCounters done [13:37:18]requested_item shift.num is exist - process it [13:37:18]requested_item shift.opened is exist - process it [13:37:18]req_shift_opened [13:37:18]FM_GetShiftState [13:37:18]SAM_PROTO_GetShiftState [13:37:18]wFMCommunicate request_size=4 [13:37:18]MH_SAM_APDU [13:37:18]CAPDU: 80 13 01 00 [13:37:18]Write to MH i2c: E2 08 00 D6 03 80 13 01 00 00 00 00 00 56 [13:37:18]Write i2c OK [13:37:18]MH_I2C_Read... [13:37:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:18]Read from MH i2c: E2 [13:37:18]MH_I2C_Read... [13:37:18]Read from MH i2c: E2 0E 00 [13:37:18]MH_I2C_Read... [13:37:18]Read from MH i2c: E2 0E 00 D6 03 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 5C [13:37:18]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [13:37:18]wFMCommunicate OK [13:37:18]SAM_PROTO_GetShiftState done [13:37:18]FM_GetShiftState done [13:37:18]req_shift_opened done [13:37:18]requested_item shift.open_date is exist - process it [13:37:18]req_shift_open_date [13:37:18]req_shift_open_date done [13:37:18]produce_requested_data done [13:37:18]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69362,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [13:37:18]process_action_free close_receipt [13:37:18]json_value_free [13:37:18]json_value_free done [13:37:18]process_json_proto returns [13:37:18]Send response to host [13:37:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69362,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [13:37:18]free response buf [13:37:18]execute_script done [13:37:18]execute_script returns [13:37:18]free content buf [13:37:18]Sock 8.Close socket [13:37:18]Sock 8.Thread stoped [13:37:22]OFD Sender: No OFD packet to send [13:37:27]OFD Sender: No OFD packet to send [13:37:32]OFD Sender: No OFD packet to send [13:37:37]OFD Sender: No OFD packet to send [13:37:42]OFD Sender: No OFD packet to send [13:37:47]OFD Sender: No OFD packet to send [13:37:52]OFD Sender: No OFD packet to send [13:37:57]OFD Sender: No OFD packet to send [13:38:02]OFD Sender: No OFD packet to send [13:38:07]OFD Sender: No OFD packet to send [13:38:12]OFD Sender: No OFD packet to send [13:38:15]accept exits with 9 [13:38:15]New connection [13:38:15]New thread 3066568036 created [13:38:15]Thread 3066711396 joined [13:38:15]Waiting for new connection... [13:38:15] Sock 9.Parse request [13:38:15]Sock 9.Check first char [13:38:15]Sock 9.First char is OK [13:38:15]request: POST /json_proto HTTP/1.0 [13:38:15]Method: POST [13:38:15]URL: /json_proto [13:38:15]Method is POST - this is cgi request [13:38:15]url: /json_proto [13:38:15]query_string will be loaded in cgi processing [13:38:15]execute_cgi json_proto POST (null) [13:38:15]execute_cgi path=json_proto method=POST [13:38:15]POST find Content-Length [13:38:15]Host: 172.17.50.3:8080 [13:38:15]Content-Length: 678 [13:38:15]Content-Type: application/json [13:38:15] [13:38:15]POST finish read [13:38:15]Found Content-Length = 678 [13:38:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [13:38:15]execute_script... [13:38:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [13:38:15]POST & json_proto [13:38:15]process_json_proto [13:38:15]json parsed OK: [13:38:15]protocol is kg_v1.0 [13:38:15]action value=close_receipt [13:38:15]process_action close_receipt [13:38:15]cmd_close_receipt [13:38:15]MH_GetDate [13:38:15]Write to MH i2c: F0 00 00 D7 03 C9 [13:38:15]Write i2c OK [13:38:15]MH_I2C_Read... [13:38:15]Read from MH i2c: F0 [13:38:15]MH_I2C_Read... [13:38:15]Read from MH i2c: F0 09 00 [13:38:15]MH_I2C_Read... [13:38:15]Read from MH i2c: F0 09 00 D7 03 00 C7 07 15 67 6B 98 1E 66 A3 [13:38:15]GetLastDocTimeStamp 1729431434 [13:38:15]current date 1729431495 [13:38:15]FM_GetShiftState [13:38:15]SAM_PROTO_GetShiftState [13:38:15]wFMCommunicate request_size=4 [13:38:15]MH_SAM_APDU [13:38:15]CAPDU: 80 13 01 00 [13:38:15]Write to MH i2c: E2 08 00 D8 03 80 13 01 00 00 00 00 00 58 [13:38:15]Write i2c OK [13:38:15]MH_I2C_Read... [13:38:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:15]Read from MH i2c: E2 [13:38:15]MH_I2C_Read... [13:38:15]Read from MH i2c: E2 0E 00 [13:38:15]MH_I2C_Read... [13:38:15]Read from MH i2c: E2 0E 00 D8 03 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 5E [13:38:15]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [13:38:15]wFMCommunicate OK [13:38:15]SAM_PROTO_GetShiftState done [13:38:15]FM_GetShiftState done [13:38:15]opened in 1729383220 [13:38:15]opened+sec_in_day 1729469620 [13:38:15]quantity*price = 50010 [13:38:15]sum+1 = 50012 [13:38:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 208 20.10.2024 13:38 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69363 ФПД: 32132979134467 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T133815&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69363&fm=32132979134467&tin=02508201610067®Number=0000000000156251&sum=50000 [13:38:16]StoreToDocumentArchive [13:38:16]shift 193 fd 69363 [13:38:16]save to /storage/0193/doc_00069363 [13:38:16]save last doc name /storage/0193/doc_00069363 to /storage/kkm_last_doc_name [13:38:16]save OK [13:38:16]Clear old archive folders... [13:38:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:38:16]tlvbuf is 0025DF00 [13:38:16]SAM_PROTO_ClearQueue [13:38:16]wFMCommunicate request_size=4 [13:38:16]MH_SAM_APDU [13:38:16]CAPDU: 80 09 00 00 [13:38:16]Write to MH i2c: E2 08 00 E5 03 80 09 00 00 00 00 00 00 5A [13:38:16]Write i2c OK [13:38:16]MH_I2C_Read... [13:38:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:38:16]Read from MH i2c: E2 [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: E2 03 00 [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: E2 03 00 E5 03 00 90 00 5C [13:38:16]RAPDU: 90 00 [13:38:16]wFMCommunicate OK [13:38:16]SAM_PROTO_ClearQueue done [13:38:16]KKMCreateOFDPacket [13:38:16]OFDProtocolAddRootSTLVToBuf [13:38:16]FM_MakeSignedData [13:38:16]FM_MakeSignedData [13:38:16]SAM_PROTO_SignData [13:38:16]wFMCommunicate request_size=4 [13:38:16]MH_SAM_APDU [13:38:16]CAPDU: 80 0D 01 02 [13:38:16]Write to MH i2c: E2 08 00 E6 03 80 0D 01 02 00 00 00 00 62 [13:38:16]Write i2c OK [13:38:16]MH_I2C_Read... [13:38:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:38:16]Read from MH i2c: E2 [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: E2 03 00 [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: E2 03 00 E6 03 00 90 00 5D [13:38:16]RAPDU: 90 00 [13:38:16]wFMCommunicate OK [13:38:16]wFMCommunicate request_size=255 [13:38:16]MH_SAM_APDU [13:38:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 D0 00 00 00 F4 03 04 00 C7 07 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F3 0E 01 00 35 04 06 00 1D [13:38:16]Write to MH i2c: E2 02 01 E7 03 80 0D 02 02 FA 00 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 D0 00 00 00 F4 03 04 00 C7 07 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F3 0E 01 00 35 04 06 00 1D 00 00 BD [13:38:16]Write i2c OK [13:38:16]MH_I2C_Read... [13:38:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:17]Read from MH i2c: E2 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 03 00 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 03 00 E7 03 00 90 00 5E [13:38:17]RAPDU: 90 00 [13:38:17]wFMCommunicate OK [13:38:17]wFMCommunicate request_size=10 [13:38:17]MH_SAM_APDU [13:38:17]CAPDU: 80 0D 02 02 05 39 8A CE 90 03 [13:38:17]Write to MH i2c: E2 0D 00 E8 03 80 0D 02 02 05 00 39 8A CE 90 03 00 00 93 [13:38:17]Write i2c OK [13:38:17]MH_I2C_Read... [13:38:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:17]Read from MH i2c: E2 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 03 00 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 03 00 E8 03 00 90 00 5F [13:38:17]RAPDU: 90 00 [13:38:17]wFMCommunicate OK [13:38:17]wFMCommunicate request_size=4 [13:38:17]MH_SAM_APDU [13:38:17]CAPDU: 80 0D 03 02 [13:38:17]Write to MH i2c: E2 08 00 E9 03 80 0D 03 02 00 00 00 00 67 [13:38:17]Write i2c OK [13:38:17]MH_I2C_Read... [13:38:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:38:17]Read from MH i2c: E2 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 0B 00 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 0B 00 E9 03 00 93 D4 A9 3B B8 DB 21 20 90 00 87 [13:38:17]RAPDU: 93 D4 A9 3B B8 DB 21 20 90 00 [13:38:17]wFMCommunicate OK [13:38:17]SAM_PROTO_SignData done [13:38:17]FM_MakeSignedData done [13:38:17]CreateOFDProtocolMessage [13:38:17]wFMCommunicate request_size=4 [13:38:17]MH_SAM_APDU [13:38:17]CAPDU: 80 11 00 00 [13:38:17]Write to MH i2c: E2 08 00 EA 03 80 11 00 00 00 00 00 00 67 [13:38:17]Write i2c OK [13:38:17]MH_I2C_Read... [13:38:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:17]Read from MH i2c: E2 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 17 00 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: E2 17 00 EA 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B9 [13:38:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:38:17]wFMCommunicate OK [13:38:17]CreateOFDProtocolMessage done [13:38:17]OFDSenderStorePacket 69363 [13:38:17]StoreOFDPacket docnum=69363 [13:38:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C6 C7 07 01 E8 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 D0 00 00 00 F4 03 04 00 C7 07 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F3 0E 01 00 35 04 06 00 1D 39 8A CE 90 03 93 D4 A9 3B B8 DB 21 20 [13:38:17]CheckFolder [13:38:17]dirname=/storage/ofd_packets [13:38:17]CheckFolder done [13:38:17]ProducePacketName [13:38:17]name=ofd_packets/00069363 [13:38:17]NVStorageSaveData ofd_packets/00069363 [13:38:17]File name is /storage/ofd_packets/00069363 [13:38:17]Write 301 bytes [13:38:17]NVStorageSaveData done [13:38:17]OFDSenderStorePacket done [13:38:17]KKMCreateOFDPacket done [13:38:17]NVStorageSaveData kkm_last_timestamp [13:38:17]File name is /storage/kkm_last_timestamp [13:38:17]Write 4 bytes [13:38:17]NVStorageSaveData done [13:38:17]ExternCall_PrintAddStr [13:38:17]wPrintStart [13:38:17]Write to MH i2c: 01 00 00 EB 03 EE [13:38:17]Write i2c OK [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: 01 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: 01 07 00 [13:38:17]MH_I2C_Read... [13:38:17]Read from MH i2c: 01 07 00 EB 03 00 00 00 00 00 FF 0F 03 [13:38:17]RasterBufferAndPrint [13:38:17]line Счет N : (1)2885086 [13:38:17]line ИНН: 02508201610067 [13:38:17]line Контрольно-Кассовый Чек [13:38:17]line ПРОДАЖА [13:38:17]line ТРК (МРК, ГНК) : 33 [13:38:17]line Товар: 2710124500 [13:38:17]line Аи-95-К-5 [13:38:17]line 6.740 * 74.20 [13:38:17]line = 500.11 [13:38:17]line НДС 12% НСП 1% [13:38:17]line > о реализуемом товаре [13:38:17]line ОКРУГЛЕНИЕ: -0.11 [13:38:17]line ИТОГО: 500.00 [13:38:17]line Внесено: 500.00 [13:38:17]line СДАЧА: 0.00 [13:38:17]line НСП 1% : 4.43 [13:38:17]line НДС 12% : 53.11 [13:38:17]line Наличными: 500.00 [13:38:17]line Безнал.: 0.00 [13:38:17]line Место: АЗС № 85 "Партнер Нефть" [13:38:17]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:38:17]line СНО: Общий режим [13:38:17]line Чек 208 20.10.2024 13:38 [13:38:17]line Смена: 193 ФФД: 1.0 [13:38:17]line ЗНМ: 0300000167 [13:38:17]line РНМ: 0000000000156251 [13:38:17]line Версия ККМ: v1.0 [13:38:17]line ФМ: 0000000000963346 [13:38:17]line ФД: 69363 [13:38:17]line ФПД: 32132979134467 [13:38:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T133815&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69363&fm=32132979134467&tin=02508201610067®Number=0000000000156251&sum=50000 [13:38:17]OFD Sender: Processing packet 69363 [packets to send 18, broken 17] [13:38:17]ProducePacketName [13:38:17]name=ofd_packets/00069363 [13:38:17]OFD Sender: To server: pG, [13:38:17]CommunicateWithHost lk.salyk.kg:30040 [13:38:17]ConnectInit lk.salyk.kg [13:38:17]written 0, free lines is 4095 [13:38:17]Connected sock=10 [13:38:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C6 C7 07 01 E8 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 D0 00 00 00 F4 03 04 00 C7 07 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F3 0E 01 00 35 04 06 00 1D 39 8A CE 90 03 93 D4 A9 3B B8 DB 21 20 [13:38:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 B5 BE 47 00 28 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F3 0E 01 00 F4 03 04 00 6E B1 14 67 B6 04 01 00 00 AE F4 94 E1 D9 0C 60 D9 [13:38:17]CommunicateWithHost err = 0 [13:38:17]CheckOFDResponse [13:38:17]1017 (14) - 77093643461234 [13:38:17]1041 (16) - 0000000000963346 [13:38:17]1040 (4) - 69363 [13:38:17]1012 (4) - 20.10.2024 07:29 [13:38:17]1206 (1) - 0 [13:38:17]OFD Sender: Remove packet 69363 [13:38:17]ProducePacketName [13:38:17]name=ofd_packets/00069363 [13:38:17]NVStorageDeleteData [13:38:18]Write to MH i2c: 01 00 00 16 04 1A [13:38:18]Write i2c OK [13:38:18]MH_I2C_Read... [13:38:18]Read from MH i2c: 01 [13:38:18]MH_I2C_Read... [13:38:18]Read from MH i2c: 01 07 00 [13:38:18]MH_I2C_Read... [13:38:18]Read from MH i2c: 01 07 00 16 04 00 00 00 00 00 F6 0C 23 [13:38:18]RasterBufferAndPrint [13:38:18]line [13:38:18]line [13:38:18]line [13:38:18]line [13:38:18]line [13:38:18]written 0, free lines is 3324 [13:38:18]MH_Cut [13:38:18]Write to MH i2c: D1 01 00 1D 04 01 F3 [13:38:18]Write i2c OK [13:38:18]MH_I2C_Read... [13:38:18]Read from MH i2c: D1 [13:38:18]MH_I2C_Read... [13:38:18]Read from MH i2c: D1 01 00 [13:38:18]MH_I2C_Read... [13:38:18]Read from MH i2c: D1 01 00 1D 04 00 F2 [13:38:18]Write to MH i2c: 01 00 00 1E 04 22 [13:38:18]Write i2c OK [13:38:18]MH_I2C_Read... [13:38:18]OFD Sender: No OFD packet to send [13:38:18]*** Cut start [13:38:18]*** Partial cut [13:38:18]*** CUTSNS_PIN = 1 [13:38:18]*** CUTSNS_PIN = 0 [13:38:18]*** Brake cut motor [13:38:19]Read from MH i2c: 01 [13:38:19]MH_I2C_Read... [13:38:19]*** Stop cut motor [13:38:19]*** Cut end [13:38:19]Read from MH i2c: 01 07 00 [13:38:19]MH_I2C_Read... [13:38:19]Read from MH i2c: 01 07 00 1E 04 00 00 00 00 00 FF 0F 37 [13:38:19]process_action close_receipt done [13:38:19]requested_data is exist [13:38:19]produce_requested_data [13:38:19]requested_item fm.sn is exist - process it [13:38:19]wFMCommunicate request_size=4 [13:38:19]MH_SAM_APDU [13:38:19]CAPDU: 80 11 00 00 [13:38:19]Write to MH i2c: E2 08 00 1F 04 80 11 00 00 00 00 00 00 9D [13:38:19]Write i2c OK [13:38:19]MH_I2C_Read... [13:38:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:19]Read from MH i2c: E2 [13:38:19]MH_I2C_Read... [13:38:19]Read from MH i2c: E2 17 00 [13:38:19]MH_I2C_Read... [13:38:19]Read from MH i2c: E2 17 00 1F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EF [13:38:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:38:19]wFMCommunicate OK [13:38:19]requested_item fd.num is exist - process it [13:38:19]SAM_PROTO_GetFieldsCounters [13:38:19]wFMCommunicate request_size=4 [13:38:19]MH_SAM_APDU [13:38:19]CAPDU: 80 13 00 00 [13:38:19]Write to MH i2c: E2 08 00 20 04 80 13 00 00 00 00 00 00 A0 [13:38:19]Write i2c OK [13:38:19]MH_I2C_Read... [13:38:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:38:19]Read from MH i2c: E2 [13:38:19]MH_I2C_Read... [13:38:19]Read from MH i2c: E2 62 00 [13:38:19]MH_I2C_Read... [13:38:19]Read from MH i2c: E2 62 00 20 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F3 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [13:38:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F3 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:38:19]wFMCommunicate OK [13:38:19]SAM_PROTO_GetFieldsCounters done [13:38:19]requested_item shift.num is exist - process it [13:38:19]requested_item shift.opened is exist - process it [13:38:19]req_shift_opened [13:38:19]FM_GetShiftState [13:38:19]SAM_PROTO_GetShiftState [13:38:19]wFMCommunicate request_size=4 [13:38:19]MH_SAM_APDU [13:38:19]CAPDU: 80 13 01 00 [13:38:19]Write to MH i2c: E2 08 00 21 04 80 13 01 00 00 00 00 00 A2 [13:38:19]Write i2c OK [13:38:19]MH_I2C_Read... [13:38:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:19]Read from MH i2c: E2 [13:38:19]MH_I2C_Read... [13:38:19]Read from MH i2c: E2 0E 00 [13:38:19]MH_I2C_Read... [13:38:19]Read from MH i2c: E2 0E 00 21 04 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 A8 [13:38:19]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [13:38:19]wFMCommunicate OK [13:38:19]SAM_PROTO_GetShiftState done [13:38:19]FM_GetShiftState done [13:38:19]req_shift_opened done [13:38:19]requested_item shift.open_date is exist - process it [13:38:19]req_shift_open_date [13:38:19]req_shift_open_date done [13:38:19]produce_requested_data done [13:38:19]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69363,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [13:38:19]process_action_free close_receipt [13:38:19]json_value_free [13:38:19]json_value_free done [13:38:19]process_json_proto returns [13:38:19]Send response to host [13:38:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69363,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [13:38:19]free response buf [13:38:19]execute_script done [13:38:19]execute_script returns [13:38:19]free content buf [13:38:19]Sock 9.Close socket [13:38:19]Sock 9.Thread stoped [13:38:23]OFD Sender: No OFD packet to send [13:38:28]OFD Sender: No OFD packet to send [13:38:33]OFD Sender: No OFD packet to send [13:38:38]OFD Sender: No OFD packet to send [13:38:43]OFD Sender: No OFD packet to send [13:38:48]OFD Sender: No OFD packet to send [13:38:53]OFD Sender: No OFD packet to send [13:38:58]OFD Sender: No OFD packet to send [13:39:03]OFD Sender: No OFD packet to send [13:39:08]OFD Sender: No OFD packet to send [13:39:13]OFD Sender: No OFD packet to send [13:39:18]OFD Sender: No OFD packet to send [13:39:23]OFD Sender: No OFD packet to send [13:39:28]OFD Sender: No OFD packet to send [13:39:33]OFD Sender: No OFD packet to send [13:39:38]OFD Sender: No OFD packet to send [13:39:43]OFD Sender: No OFD packet to send [13:39:48]OFD Sender: No OFD packet to send [13:39:53]OFD Sender: No OFD packet to send [13:39:58]OFD Sender: No OFD packet to send [13:40:03]OFD Sender: No OFD packet to send [13:40:08]OFD Sender: No OFD packet to send [13:40:13]OFD Sender: No OFD packet to send [13:40:18]OFD Sender: No OFD packet to send [13:40:23]OFD Sender: No OFD packet to send [13:40:28]OFD Sender: No OFD packet to send [13:40:33]OFD Sender: No OFD packet to send [13:40:38]OFD Sender: No OFD packet to send [13:40:40]accept exits with 8 [13:40:40]New connection [13:40:40]New thread 3066711396 created [13:40:40]Thread 3066568036 joined [13:40:40]Waiting for new connection... [13:40:40] Sock 8.Parse request [13:40:40]Sock 8.Check first char [13:40:40]Sock 8.First char is OK [13:40:40]request: POST /json_proto HTTP/1.0 [13:40:40]Method: POST [13:40:40]URL: /json_proto [13:40:40]Method is POST - this is cgi request [13:40:40]url: /json_proto [13:40:40]query_string will be loaded in cgi processing [13:40:40]execute_cgi json_proto POST (null) [13:40:40]execute_cgi path=json_proto method=POST [13:40:40]POST find Content-Length [13:40:40]Host: 172.17.50.3:8080 [13:40:40]Content-Length: 689 [13:40:40]Content-Type: application/json [13:40:40] [13:40:40]POST finish read [13:40:40]Found Content-Length = 689 [13:40:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:40]execute_script... [13:40:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:40]POST & json_proto [13:40:40]process_json_proto [13:40:40]json parsed OK: [13:40:40]protocol is kg_v1.0 [13:40:40]action value=close_receipt [13:40:40]process_action close_receipt [13:40:40]cmd_close_receipt [13:40:40]MH_GetDate [13:40:40]Write to MH i2c: F0 00 00 22 04 15 [13:40:40]Write i2c OK [13:40:40]MH_I2C_Read... [13:40:40]Read from MH i2c: F0 [13:40:40]MH_I2C_Read... [13:40:40]Read from MH i2c: F0 09 00 [13:40:40]MH_I2C_Read... [13:40:40]Read from MH i2c: F0 09 00 22 04 00 58 08 15 67 6B 98 1E 66 81 [13:40:40]GetLastDocTimeStamp 1729431495 [13:40:40]current date 1729431640 [13:40:40]FM_GetShiftState [13:40:40]SAM_PROTO_GetShiftState [13:40:40]wFMCommunicate request_size=4 [13:40:40]MH_SAM_APDU [13:40:40]CAPDU: 80 13 01 00 [13:40:40]Write to MH i2c: E2 08 00 23 04 80 13 01 00 00 00 00 00 A4 [13:40:40]Write i2c OK [13:40:40]MH_I2C_Read... [13:40:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:40]Read from MH i2c: E2 [13:40:40]MH_I2C_Read... [13:40:40]Read from MH i2c: E2 0E 00 [13:40:40]MH_I2C_Read... [13:40:40]Read from MH i2c: E2 0E 00 23 04 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 AA [13:40:40]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [13:40:40]wFMCommunicate OK [13:40:40]SAM_PROTO_GetShiftState done [13:40:40]FM_GetShiftState done [13:40:40]opened in 1729383220 [13:40:40]opened+sec_in_day 1729469620 [13:40:40]quantity*price = 100051 [13:40:40]sum+1 = 100052 [13:40:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 209 20.10.2024 13:40 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69364 ФПД: 160154134372445 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T134040&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69364&fm=160154134372445&tin=02508201610067®Number=0000000000156251&sum=100000 [13:40:41]StoreToDocumentArchive [13:40:41]shift 193 fd 69364 [13:40:41]save to /storage/0193/doc_00069364 [13:40:41]save last doc name /storage/0193/doc_00069364 to /storage/kkm_last_doc_name [13:40:41]save OK [13:40:41]Clear old archive folders... [13:40:41]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:40:41]tlvbuf is 001FE1E0 [13:40:41]SAM_PROTO_ClearQueue [13:40:41]wFMCommunicate request_size=4 [13:40:41]MH_SAM_APDU [13:40:41]CAPDU: 80 09 00 00 [13:40:41]Write to MH i2c: E2 08 00 30 04 80 09 00 00 00 00 00 00 A6 [13:40:41]Write i2c OK [13:40:41]MH_I2C_Read... [13:40:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:40:41]Read from MH i2c: E2 [13:40:41]MH_I2C_Read... [13:40:41]Read from MH i2c: E2 03 00 [13:40:41]MH_I2C_Read... [13:40:41]Read from MH i2c: E2 03 00 30 04 00 90 00 A8 [13:40:41]RAPDU: 90 00 [13:40:41]wFMCommunicate OK [13:40:41]SAM_PROTO_ClearQueue done [13:40:41]KKMCreateOFDPacket [13:40:41]OFDProtocolAddRootSTLVToBuf [13:40:41]FM_MakeSignedData [13:40:41]FM_MakeSignedData [13:40:41]SAM_PROTO_SignData [13:40:41]wFMCommunicate request_size=4 [13:40:41]MH_SAM_APDU [13:40:41]CAPDU: 80 0D 01 02 [13:40:41]Write to MH i2c: E2 08 00 31 04 80 0D 01 02 00 00 00 00 AE [13:40:41]Write i2c OK [13:40:41]MH_I2C_Read... [13:40:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:40:41]Read from MH i2c: E2 [13:40:41]MH_I2C_Read... [13:40:41]Read from MH i2c: E2 03 00 [13:40:41]MH_I2C_Read... [13:40:41]Read from MH i2c: E2 03 00 31 04 00 90 00 A9 [13:40:41]RAPDU: 90 00 [13:40:41]wFMCommunicate OK [13:40:41]wFMCommunicate request_size=255 [13:40:41]MH_SAM_APDU [13:40:41]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 58 08 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F4 0E 01 [13:40:41]Write to MH i2c: E2 02 01 32 04 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 58 08 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F4 0E 01 00 00 71 [13:40:41]Write i2c OK [13:40:41]MH_I2C_Read... [13:40:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:42]Read from MH i2c: E2 [13:40:42]MH_I2C_Read... [13:40:42]Read from MH i2c: E2 03 00 [13:40:42]MH_I2C_Read... [13:40:42]Read from MH i2c: E2 03 00 32 04 00 90 00 AA [13:40:42]RAPDU: 90 00 [13:40:42]wFMCommunicate OK [13:40:42]wFMCommunicate request_size=16 [13:40:42]MH_SAM_APDU [13:40:42]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 91 A8 CA 49 E0 5D [13:40:42]Write to MH i2c: E2 13 00 33 04 80 0D 02 02 0B 00 00 35 04 06 00 91 A8 CA 49 E0 5D 00 00 8F [13:40:42]Write i2c OK [13:40:42]MH_I2C_Read... [13:40:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:42]Read from MH i2c: E2 [13:40:42]MH_I2C_Read... [13:40:42]Read from MH i2c: E2 03 00 [13:40:42]MH_I2C_Read... [13:40:42]Read from MH i2c: E2 03 00 33 04 00 90 00 AB [13:40:42]RAPDU: 90 00 [13:40:42]wFMCommunicate OK [13:40:42]wFMCommunicate request_size=4 [13:40:42]MH_SAM_APDU [13:40:42]CAPDU: 80 0D 03 02 [13:40:42]Write to MH i2c: E2 08 00 34 04 80 0D 03 02 00 00 00 00 B3 [13:40:42]Write i2c OK [13:40:42]MH_I2C_Read... [13:40:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:40:42]Read from MH i2c: E2 [13:40:42]MH_I2C_Read... [13:40:42]Read from MH i2c: E2 0B 00 [13:40:42]MH_I2C_Read... [13:40:42]Read from MH i2c: E2 0B 00 34 04 00 44 56 7B AB E3 D5 1D 32 90 00 7B [13:40:42]RAPDU: 44 56 7B AB E3 D5 1D 32 90 00 [13:40:42]wFMCommunicate OK [13:40:42]SAM_PROTO_SignData done [13:40:42]FM_MakeSignedData done [13:40:42]CreateOFDProtocolMessage [13:40:42]wFMCommunicate request_size=4 [13:40:42]MH_SAM_APDU [13:40:42]CAPDU: 80 11 00 00 [13:40:42]Write to MH i2c: E2 08 00 35 04 80 11 00 00 00 00 00 00 B3 [13:40:42]Write i2c OK [13:40:42]MH_I2C_Read... [13:40:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:42]Read from MH i2c: E2 [13:40:42]MH_I2C_Read... [13:40:42]Read from MH i2c: E2 17 00 [13:40:42]MH_I2C_Read... [13:40:42]Read from MH i2c: E2 17 00 35 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 05 [13:40:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:40:42]wFMCommunicate OK [13:40:42]CreateOFDProtocolMessage done [13:40:42]OFDSenderStorePacket 69364 [13:40:42]StoreOFDPacket docnum=69364 [13:40:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 0E D6 0D 01 44 C9 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 58 08 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F4 0E 01 00 35 04 06 00 91 A8 CA 49 E0 5D 44 56 7B AB E3 D5 1D 32 [13:40:42]CheckFolder [13:40:42]dirname=/storage/ofd_packets [13:40:42]CheckFolder done [13:40:42]ProducePacketName [13:40:42]name=ofd_packets/00069364 [13:40:42]NVStorageSaveData ofd_packets/00069364 [13:40:42]File name is /storage/ofd_packets/00069364 [13:40:42]Write 307 bytes [13:40:42]NVStorageSaveData done [13:40:42]OFDSenderStorePacket done [13:40:42]KKMCreateOFDPacket done [13:40:42]NVStorageSaveData kkm_last_timestamp [13:40:42]File name is /storage/kkm_last_timestamp [13:40:42]Write 4 bytes [13:40:42]NVStorageSaveData done [13:40:42]ExternCall_PrintAddStr [13:40:42]wPrintStart [13:40:42]Write to MH i2c: 01 00 00 36 04 3A [13:40:42]Write i2c OK [13:40:42]MH_I2C_Read... [13:40:42]Read from MH i2c: 01 [13:40:42]MH_I2C_Read... [13:40:42]Read from MH i2c: 01 07 00 [13:40:42]MH_I2C_Read... [13:40:42]Read from MH i2c: 01 07 00 36 04 00 00 00 00 00 FF 0F 4F [13:40:42]RasterBufferAndPrint [13:40:42]line Счет N : (1)2885087 [13:40:42]line ИНН: 02508201610067 [13:40:42]line Контрольно-Кассовый Чек [13:40:42]line ПРОДАЖА [13:40:42]line ТРК (МРК, ГНК) : 21 [13:40:42]line Товар: 2710194240 [13:40:42]line D-ENERGY Дт-К-2 [13:40:42]line 12.960 * 77.20 [13:40:42]line = 1000.51 [13:40:42]line НДС 12% НСП 1% [13:40:42]line > о реализуемом товаре [13:40:42]line ОКРУГЛЕНИЕ: -0.51 [13:40:42]line ИТОГО: 1000.00 [13:40:42]line Внесено: 1000.00 [13:40:42]line СДАЧА: 0.00 [13:40:42]line НСП 1% : 8.85 [13:40:42]line НДС 12% : 106.25 [13:40:42]line Наличными: 1000.00 [13:40:42]line Безнал.: 0.00 [13:40:42]line Место: АЗС № 85 "Партнер Нефть" [13:40:42]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:40:42]line СНО: Общий режим [13:40:42]line Чек 209 20.10.2024 13:40 [13:40:42]line Смена: 193 ФФД: 1.0 [13:40:42]line ЗНМ: 0300000167 [13:40:42]line РНМ: 0000000000156251 [13:40:42]line Версия ККМ: v1.0 [13:40:42]line ФМ: 0000000000963346 [13:40:42]line ФД: 69364 [13:40:42]line ФПД: 160154134372445 [13:40:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T134040&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69364&fm=160154134372445&tin=02508201610067®Number=0000000000156251&sum=100000 [13:40:42]OFD Sender: Processing packet 69364 [packets to send 18, broken 17] [13:40:42]ProducePacketName [13:40:42]name=ofd_packets/00069364 [13:40:42]OFD Sender: To server: pG, [13:40:42]CommunicateWithHost lk.salyk.kg:30040 [13:40:42]ConnectInit lk.salyk.kg [13:40:42]written 0, free lines is 4095 [13:40:42]Connected sock=10 [13:40:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 0E D6 0D 01 44 C9 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 58 08 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F4 0E 01 00 35 04 06 00 91 A8 CA 49 E0 5D 44 56 7B AB E3 D5 1D 32 [13:40:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 D2 B3 47 00 D5 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F4 0E 01 00 F4 03 04 00 FF B1 14 67 B6 04 01 00 00 77 11 91 00 89 8E 18 28 [13:40:42]CommunicateWithHost err = 0 [13:40:42]CheckOFDResponse [13:40:42]1017 (14) - 77093643461234 [13:40:42]1041 (16) - 0000000000963346 [13:40:42]1040 (4) - 69364 [13:40:42]1012 (4) - 20.10.2024 07:32 [13:40:42]1206 (1) - 0 [13:40:42]OFD Sender: Remove packet 69364 [13:40:42]ProducePacketName [13:40:42]name=ofd_packets/00069364 [13:40:42]NVStorageDeleteData [13:40:42]Write to MH i2c: 01 00 00 61 04 65 [13:40:42]Write i2c OK [13:40:42]MH_I2C_Read... [13:40:42]Read from MH i2c: 01 [13:40:42]MH_I2C_Read... [13:40:42]Read from MH i2c: 01 07 00 [13:40:42]MH_I2C_Read... [13:40:42]Read from MH i2c: 01 07 00 61 04 00 00 00 00 00 F4 0C 6C [13:40:42]RasterBufferAndPrint [13:40:42]line [13:40:42]line [13:40:42]line [13:40:42]line [13:40:42]line [13:40:42]written 0, free lines is 3322 [13:40:42]MH_Cut [13:40:42]Write to MH i2c: D1 01 00 68 04 01 3E [13:40:42]Write i2c OK [13:40:42]MH_I2C_Read... [13:40:42]Read from MH i2c: D1 [13:40:42]MH_I2C_Read... [13:40:42]Read from MH i2c: D1 01 00 [13:40:42]MH_I2C_Read... [13:40:42]Read from MH i2c: D1 01 00 68 04 00 3D [13:40:42]Write to MH i2c: 01 00 00 69 04 6D [13:40:42]Write i2c OK [13:40:42]MH_I2C_Read... [13:40:43]OFD Sender: No OFD packet to send [13:40:43]*** Cut start [13:40:43]*** Partial cut [13:40:43]*** CUTSNS_PIN = 1 [13:40:43]*** CUTSNS_PIN = 0 [13:40:43]*** Brake cut motor [13:40:44]Read from MH i2c: 01 [13:40:44]MH_I2C_Read... [13:40:44]*** Stop cut motor [13:40:44]*** Cut end [13:40:44]Read from MH i2c: 01 07 00 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: 01 07 00 69 04 00 00 00 00 00 FF 0F 82 [13:40:44]process_action close_receipt done [13:40:44]requested_data is exist [13:40:44]produce_requested_data [13:40:44]requested_item fm.sn is exist - process it [13:40:44]wFMCommunicate request_size=4 [13:40:44]MH_SAM_APDU [13:40:44]CAPDU: 80 11 00 00 [13:40:44]Write to MH i2c: E2 08 00 6A 04 80 11 00 00 00 00 00 00 E8 [13:40:44]Write i2c OK [13:40:44]MH_I2C_Read... [13:40:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:44]Read from MH i2c: E2 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: E2 17 00 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: E2 17 00 6A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3A [13:40:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:40:44]wFMCommunicate OK [13:40:44]requested_item fd.num is exist - process it [13:40:44]SAM_PROTO_GetFieldsCounters [13:40:44]wFMCommunicate request_size=4 [13:40:44]MH_SAM_APDU [13:40:44]CAPDU: 80 13 00 00 [13:40:44]Write to MH i2c: E2 08 00 6B 04 80 13 00 00 00 00 00 00 EB [13:40:44]Write i2c OK [13:40:44]MH_I2C_Read... [13:40:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:40:44]Read from MH i2c: E2 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: E2 62 00 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: E2 62 00 6B 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F4 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [13:40:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F4 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:40:44]wFMCommunicate OK [13:40:44]SAM_PROTO_GetFieldsCounters done [13:40:44]requested_item shift.num is exist - process it [13:40:44]requested_item shift.opened is exist - process it [13:40:44]req_shift_opened [13:40:44]FM_GetShiftState [13:40:44]SAM_PROTO_GetShiftState [13:40:44]wFMCommunicate request_size=4 [13:40:44]MH_SAM_APDU [13:40:44]CAPDU: 80 13 01 00 [13:40:44]Write to MH i2c: E2 08 00 6C 04 80 13 01 00 00 00 00 00 ED [13:40:44]Write i2c OK [13:40:44]MH_I2C_Read... [13:40:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:44]Read from MH i2c: E2 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: E2 0E 00 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: E2 0E 00 6C 04 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 F3 [13:40:44]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [13:40:44]wFMCommunicate OK [13:40:44]SAM_PROTO_GetShiftState done [13:40:44]FM_GetShiftState done [13:40:44]req_shift_opened done [13:40:44]requested_item shift.open_date is exist - process it [13:40:44]req_shift_open_date [13:40:44]req_shift_open_date done [13:40:44]produce_requested_data done [13:40:44]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69364,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [13:40:44]process_action_free close_receipt [13:40:44]json_value_free [13:40:44]json_value_free done [13:40:44]process_json_proto returns [13:40:44]Send response to host [13:40:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69364,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [13:40:44]free response buf [13:40:44]execute_script done [13:40:44]execute_script returns [13:40:44]free content buf [13:40:44]Sock 8.Close socket [13:40:44]Sock 8.Thread stoped [13:40:48]OFD Sender: No OFD packet to send [13:40:53]OFD Sender: No OFD packet to send [13:40:58]OFD Sender: No OFD packet to send [13:41:03]OFD Sender: No OFD packet to send [13:41:08]OFD Sender: No OFD packet to send [13:41:13]OFD Sender: No OFD packet to send [13:41:18]OFD Sender: No OFD packet to send [13:41:23]OFD Sender: No OFD packet to send [13:41:28]OFD Sender: No OFD packet to send [13:41:33]OFD Sender: No OFD packet to send [13:41:38]OFD Sender: No OFD packet to send [13:41:43]OFD Sender: No OFD packet to send [13:41:48]OFD Sender: No OFD packet to send [13:41:53]OFD Sender: No OFD packet to send [13:41:58]OFD Sender: No OFD packet to send [13:42:03]OFD Sender: No OFD packet to send [13:42:08]OFD Sender: No OFD packet to send [13:42:13]OFD Sender: No OFD packet to send [13:42:18]OFD Sender: No OFD packet to send [13:42:23]OFD Sender: No OFD packet to send [13:42:28]OFD Sender: No OFD packet to send [13:42:33]OFD Sender: No OFD packet to send [13:42:38]OFD Sender: No OFD packet to send [13:42:43]OFD Sender: No OFD packet to send [13:42:48]OFD Sender: No OFD packet to send [13:42:53]OFD Sender: No OFD packet to send [13:42:58]OFD Sender: No OFD packet to send [13:43:03]OFD Sender: No OFD packet to send [13:43:08]OFD Sender: No OFD packet to send [13:43:13]OFD Sender: No OFD packet to send [13:43:18]OFD Sender: No OFD packet to send [13:43:23]OFD Sender: No OFD packet to send [13:43:28]OFD Sender: No OFD packet to send [13:43:33]OFD Sender: No OFD packet to send [13:43:38]OFD Sender: No OFD packet to send [13:43:41]accept exits with 9 [13:43:41]New connection [13:43:41]New thread 3066568036 created [13:43:41]Thread 3066711396 joined [13:43:41]Waiting for new connection... [13:43:41] Sock 9.Parse request [13:43:41]Sock 9.Check first char [13:43:41]Sock 9.First char is OK [13:43:41]request: POST /json_proto HTTP/1.0 [13:43:41]Method: POST [13:43:41]URL: /json_proto [13:43:41]Method is POST - this is cgi request [13:43:41]url: /json_proto [13:43:41]query_string will be loaded in cgi processing [13:43:41]execute_cgi json_proto POST (null) [13:43:41]execute_cgi path=json_proto method=POST [13:43:41]POST find Content-Length [13:43:41]Host: 172.17.50.3:8080 [13:43:41]Content-Length: 678 [13:43:41]Content-Type: application/json [13:43:41] [13:43:41]POST finish read [13:43:41]Found Content-Length = 678 [13:43:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:41]execute_script... [13:43: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)2885088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:41]POST & json_proto [13:43:41]process_json_proto [13:43:41]json parsed OK: [13:43:41]protocol is kg_v1.0 [13:43:41]action value=close_receipt [13:43:41]process_action close_receipt [13:43:41]cmd_close_receipt [13:43:41]MH_GetDate [13:43:41]Write to MH i2c: F0 00 00 6D 04 60 [13:43:41]Write i2c OK [13:43:41]MH_I2C_Read... [13:43:41]Read from MH i2c: F0 [13:43:41]MH_I2C_Read... [13:43:41]Read from MH i2c: F0 09 00 [13:43:41]MH_I2C_Read... [13:43:41]Read from MH i2c: F0 09 00 6D 04 00 0D 09 15 67 6B 98 1E 66 82 [13:43:41]GetLastDocTimeStamp 1729431640 [13:43:41]current date 1729431821 [13:43:41]FM_GetShiftState [13:43:41]SAM_PROTO_GetShiftState [13:43:41]wFMCommunicate request_size=4 [13:43:41]MH_SAM_APDU [13:43:41]CAPDU: 80 13 01 00 [13:43:41]Write to MH i2c: E2 08 00 6E 04 80 13 01 00 00 00 00 00 EF [13:43:41]Write i2c OK [13:43:41]MH_I2C_Read... [13:43:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:41]Read from MH i2c: E2 [13:43:41]MH_I2C_Read... [13:43:41]Read from MH i2c: E2 0E 00 [13:43:41]MH_I2C_Read... [13:43:41]Read from MH i2c: E2 0E 00 6E 04 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 F5 [13:43:41]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [13:43:41]wFMCommunicate OK [13:43:41]SAM_PROTO_GetShiftState done [13:43:41]FM_GetShiftState done [13:43:41]opened in 1729383220 [13:43:41]opened+sec_in_day 1729469620 [13:43:41]quantity*price = 60009 [13:43:41]sum+1 = 60010 [13:43:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 210 20.10.2024 13:43 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69365 ФПД: 115416096323399 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T134341&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69365&fm=115416096323399&tin=02508201610067®Number=0000000000156251&sum=60000 [13:43:42]StoreToDocumentArchive [13:43:42]shift 193 fd 69365 [13:43:42]save to /storage/0193/doc_00069365 [13:43:42]save last doc name /storage/0193/doc_00069365 to /storage/kkm_last_doc_name [13:43:42]save OK [13:43:42]Clear old archive folders... [13:43:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:43:42]tlvbuf is 002438D0 [13:43:42]SAM_PROTO_ClearQueue [13:43:42]wFMCommunicate request_size=4 [13:43:42]MH_SAM_APDU [13:43:42]CAPDU: 80 09 00 00 [13:43:42]Write to MH i2c: E2 08 00 7B 04 80 09 00 00 00 00 00 00 F1 [13:43:42]Write i2c OK [13:43:42]MH_I2C_Read... [13:43:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:43:42]Read from MH i2c: E2 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: E2 03 00 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: E2 03 00 7B 04 00 90 00 F3 [13:43:42]RAPDU: 90 00 [13:43:42]wFMCommunicate OK [13:43:42]SAM_PROTO_ClearQueue done [13:43:42]KKMCreateOFDPacket [13:43:42]OFDProtocolAddRootSTLVToBuf [13:43:42]FM_MakeSignedData [13:43:42]FM_MakeSignedData [13:43:42]SAM_PROTO_SignData [13:43:42]wFMCommunicate request_size=4 [13:43:42]MH_SAM_APDU [13:43:42]CAPDU: 80 0D 01 02 [13:43:42]Write to MH i2c: E2 08 00 7C 04 80 0D 01 02 00 00 00 00 F9 [13:43:42]Write i2c OK [13:43:42]MH_I2C_Read... [13:43:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:43:42]Read from MH i2c: E2 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: E2 03 00 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: E2 03 00 7C 04 00 90 00 F4 [13:43:42]RAPDU: 90 00 [13:43:42]wFMCommunicate OK [13:43:42]wFMCommunicate request_size=255 [13:43:42]MH_SAM_APDU [13:43: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 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 0D 09 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F5 0E 01 00 35 04 06 00 68 [13:43:42]Write to MH i2c: E2 02 01 7D 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 0D 09 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F5 0E 01 00 35 04 06 00 68 00 00 F0 [13:43:42]Write i2c OK [13:43:42]MH_I2C_Read... [13:43:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:43]Read from MH i2c: E2 [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: E2 03 00 [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: E2 03 00 7D 04 00 90 00 F5 [13:43:43]RAPDU: 90 00 [13:43:43]wFMCommunicate OK [13:43:43]wFMCommunicate request_size=10 [13:43:43]MH_SAM_APDU [13:43:43]CAPDU: 80 0D 02 02 05 F8 67 6C 37 47 [13:43:43]Write to MH i2c: E2 0D 00 7E 04 80 0D 02 02 05 00 F8 67 6C 37 47 00 00 4F [13:43:43]Write i2c OK [13:43:43]MH_I2C_Read... [13:43:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:43]Read from MH i2c: E2 [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: E2 03 00 [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: E2 03 00 7E 04 00 90 00 F6 [13:43:43]RAPDU: 90 00 [13:43:43]wFMCommunicate OK [13:43:43]wFMCommunicate request_size=4 [13:43:43]MH_SAM_APDU [13:43:43]CAPDU: 80 0D 03 02 [13:43:43]Write to MH i2c: E2 08 00 7F 04 80 0D 03 02 00 00 00 00 FE [13:43:43]Write i2c OK [13:43:43]MH_I2C_Read... [13:43:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:43:43]Read from MH i2c: E2 [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: E2 0B 00 [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: E2 0B 00 7F 04 00 2D 1D E0 6C CF 27 4C EA 90 00 C1 [13:43:43]RAPDU: 2D 1D E0 6C CF 27 4C EA 90 00 [13:43:43]wFMCommunicate OK [13:43:43]SAM_PROTO_SignData done [13:43:43]FM_MakeSignedData done [13:43:43]CreateOFDProtocolMessage [13:43:43]wFMCommunicate request_size=4 [13:43:43]MH_SAM_APDU [13:43:43]CAPDU: 80 11 00 00 [13:43:43]Write to MH i2c: E2 08 00 80 04 80 11 00 00 00 00 00 00 FE [13:43:43]Write i2c OK [13:43:43]MH_I2C_Read... [13:43:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:43]Read from MH i2c: E2 [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: E2 17 00 [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: E2 17 00 80 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 50 [13:43:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:43:43]wFMCommunicate OK [13:43:43]CreateOFDProtocolMessage done [13:43:43]OFDSenderStorePacket 69365 [13:43:43]StoreOFDPacket docnum=69365 [13:43:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 91 09 07 01 BA 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 0D 09 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F5 0E 01 00 35 04 06 00 68 F8 67 6C 37 47 2D 1D E0 6C CF 27 4C EA [13:43:43]CheckFolder [13:43:43]dirname=/storage/ofd_packets [13:43:43]CheckFolder done [13:43:43]ProducePacketName [13:43:43]name=ofd_packets/00069365 [13:43:43]NVStorageSaveData ofd_packets/00069365 [13:43:43]File name is /storage/ofd_packets/00069365 [13:43:43]Write 301 bytes [13:43:43]NVStorageSaveData done [13:43:43]OFDSenderStorePacket done [13:43:43]KKMCreateOFDPacket done [13:43:43]NVStorageSaveData kkm_last_timestamp [13:43:43]File name is /storage/kkm_last_timestamp [13:43:43]Write 4 bytes [13:43:43]NVStorageSaveData done [13:43:43]ExternCall_PrintAddStr [13:43:43]wPrintStart [13:43:43]Write to MH i2c: 01 00 00 81 04 85 [13:43:43]Write i2c OK [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: 01 [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: 01 07 00 [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: 01 07 00 81 04 00 00 00 00 00 FF 0F 9A [13:43:43]RasterBufferAndPrint [13:43:43]line Счет N : (1)2885088 [13:43:43]line ИНН: 02508201610067 [13:43:43]line Контрольно-Кассовый Чек [13:43:43]line ПРОДАЖА [13:43:43]line ТРК (МРК, ГНК) : 42 [13:43:43]line Товар: 2710124130 [13:43:43]line Аи-92-К-5 [13:43:43]line 8.970 * 66.90 [13:43:43]line = 600.09 [13:43:43]line НДС 12% НСП 1% [13:43:43]line > о реализуемом товаре [13:43:43]line ОКРУГЛЕНИЕ: -0.09 [13:43:43]line ИТОГО: 600.00 [13:43:43]line Внесено: 600.00 [13:43:43]line СДАЧА: 0.00 [13:43:43]line НСП 1% : 5.31 [13:43:43]line НДС 12% : 63.73 [13:43:43]line Наличными: 600.00 [13:43:43]line Безнал.: 0.00 [13:43:43]line Место: АЗС № 85 "Партнер Нефть" [13:43:43]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:43:43]line СНО: Общий режим [13:43:43]line Чек 210 20.10.2024 13:43 [13:43:43]line Смена: 193 ФФД: 1.0 [13:43:43]line ЗНМ: 0300000167 [13:43:43]line РНМ: 0000000000156251 [13:43:43]line Версия ККМ: v1.0 [13:43:43]line ФМ: 0000000000963346 [13:43:43]line ФД: 69365 [13:43:43]line ФПД: 115416096323399 [13:43:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T134341&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69365&fm=115416096323399&tin=02508201610067®Number=0000000000156251&sum=60000 [13:43:43]OFD Sender: Processing packet 69365 [packets to send 18, broken 17] [13:43:43]ProducePacketName [13:43:43]name=ofd_packets/00069365 [13:43:43]OFD Sender: To server: pG, [13:43:43]CommunicateWithHost lk.salyk.kg:30040 [13:43:43]ConnectInit lk.salyk.kg [13:43:43]written 0, free lines is 4095 [13:43:43]Connected sock=10 [13:43:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 91 09 07 01 BA 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 0D 09 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F5 0E 01 00 35 04 06 00 68 F8 67 6C 37 47 2D 1D E0 6C CF 27 4C EA [13:43:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 69 34 47 00 A0 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F5 0E 01 00 F4 03 04 00 B4 B2 14 67 B6 04 01 00 00 67 CE 82 AF 20 4F 70 38 [13:43:44]CommunicateWithHost err = 0 [13:43:44]CheckOFDResponse [13:43:44]1017 (14) - 77093643461234 [13:43:44]1041 (16) - 0000000000963346 [13:43:44]1040 (4) - 69365 [13:43:44]1012 (4) - 20.10.2024 07:35 [13:43:44]1206 (1) - 0 [13:43:44]OFD Sender: Remove packet 69365 [13:43:44]ProducePacketName [13:43:44]name=ofd_packets/00069365 [13:43:44]NVStorageDeleteData [13:43:44]Write to MH i2c: 01 00 00 AC 04 B0 [13:43:44]Write i2c OK [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: 01 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: 01 07 00 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: 01 07 00 AC 04 00 00 00 00 00 04 0D C8 [13:43:44]RasterBufferAndPrint [13:43:44]line [13:43:44]line [13:43:44]line [13:43:44]line [13:43:44]line [13:43:44]written 0, free lines is 3339 [13:43:44]MH_Cut [13:43:44]Write to MH i2c: D1 01 00 B3 04 01 89 [13:43:44]Write i2c OK [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: D1 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: D1 01 00 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: D1 01 00 B3 04 00 88 [13:43:44]Write to MH i2c: 01 00 00 B4 04 B8 [13:43:44]Write i2c OK [13:43:44]MH_I2C_Read... [13:43:44]OFD Sender: No OFD packet to send [13:43:44]*** Cut start [13:43:44]*** Partial cut [13:43:44]*** CUTSNS_PIN = 1 [13:43:44]*** CUTSNS_PIN = 0 [13:43:45]*** Brake cut motor [13:43:45]Read from MH i2c: 01 [13:43:45]MH_I2C_Read... [13:43:45]*** Stop cut motor [13:43:45]*** Cut end [13:43:45]Read from MH i2c: 01 07 00 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: 01 07 00 B4 04 00 00 00 00 00 FF 0F CD [13:43:45]process_action close_receipt done [13:43:45]requested_data is exist [13:43:45]produce_requested_data [13:43:45]requested_item fm.sn is exist - process it [13:43:45]wFMCommunicate request_size=4 [13:43:45]MH_SAM_APDU [13:43:45]CAPDU: 80 11 00 00 [13:43:45]Write to MH i2c: E2 08 00 B5 04 80 11 00 00 00 00 00 00 33 [13:43:45]Write i2c OK [13:43:45]MH_I2C_Read... [13:43:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:45]Read from MH i2c: E2 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 17 00 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 17 00 B5 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 85 [13:43:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:43:45]wFMCommunicate OK [13:43:45]requested_item fd.num is exist - process it [13:43:45]SAM_PROTO_GetFieldsCounters [13:43:45]wFMCommunicate request_size=4 [13:43:45]MH_SAM_APDU [13:43:45]CAPDU: 80 13 00 00 [13:43:45]Write to MH i2c: E2 08 00 B6 04 80 13 00 00 00 00 00 00 36 [13:43:45]Write i2c OK [13:43:45]MH_I2C_Read... [13:43:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:43:45]Read from MH i2c: E2 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 62 00 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 62 00 B6 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F5 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [13:43:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F5 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:43:45]wFMCommunicate OK [13:43:45]SAM_PROTO_GetFieldsCounters done [13:43:45]requested_item shift.num is exist - process it [13:43:45]requested_item shift.opened is exist - process it [13:43:45]req_shift_opened [13:43:45]FM_GetShiftState [13:43:45]SAM_PROTO_GetShiftState [13:43:45]wFMCommunicate request_size=4 [13:43:45]MH_SAM_APDU [13:43:45]CAPDU: 80 13 01 00 [13:43:45]Write to MH i2c: E2 08 00 B7 04 80 13 01 00 00 00 00 00 38 [13:43:45]Write i2c OK [13:43:45]MH_I2C_Read... [13:43:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:45]Read from MH i2c: E2 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 0E 00 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 0E 00 B7 04 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 3E [13:43:45]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [13:43:45]wFMCommunicate OK [13:43:45]SAM_PROTO_GetShiftState done [13:43:45]FM_GetShiftState done [13:43:45]req_shift_opened done [13:43:45]requested_item shift.open_date is exist - process it [13:43:45]req_shift_open_date [13:43:45]req_shift_open_date done [13:43:45]produce_requested_data done [13:43:45]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69365,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [13:43:45]process_action_free close_receipt [13:43:45]json_value_free [13:43:45]json_value_free done [13:43:45]process_json_proto returns [13:43:45]Send response to host [13:43:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69365,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [13:43:45]free response buf [13:43:45]execute_script done [13:43:45]execute_script returns [13:43:45]free content buf [13:43:45]Sock 9.Close socket [13:43:45]Sock 9.Thread stoped [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:19]OFD Sender: No OFD packet to send [13:46:24]OFD Sender: No OFD packet to send [13:46:29]OFD Sender: No OFD packet to send [13:46:34]OFD Sender: No OFD packet to send [13:46:39]OFD Sender: No OFD packet to send [13:46:44]OFD Sender: No OFD packet to send [13:46:49]OFD Sender: No OFD packet to send [13:46:54]OFD Sender: No OFD packet to send [13:46:59]OFD Sender: No OFD packet to send [13:47:04]OFD Sender: No OFD packet to send [13:47:09]OFD Sender: No OFD packet to send [13:47:14]OFD Sender: No OFD packet to send [13:47:19]OFD Sender: No OFD packet to send [13:47:24]OFD Sender: No OFD packet to send [13:47:29]OFD Sender: No OFD packet to send [13:47:34]OFD Sender: No OFD packet to send [13:47:39]OFD Sender: No OFD packet to send [13:47:44]OFD Sender: No OFD packet to send [13:47:49]OFD Sender: No OFD packet to send [13:47:54]OFD Sender: No OFD packet to send [13:47:59]OFD Sender: No OFD packet to send [13:48:04]OFD Sender: No OFD packet to send [13:48:09]OFD Sender: No OFD packet to send [13:48:14]OFD Sender: No OFD packet to send [13:48:19]OFD Sender: No OFD packet to send [13:48:24]OFD Sender: No OFD packet to send [13:48:29]OFD Sender: No OFD packet to send [13:48:34]OFD Sender: No OFD packet to send [13:48:39]OFD Sender: No OFD packet to send [13:48:44]OFD Sender: No OFD packet to send [13:48:49]OFD Sender: No OFD packet to send [13:48:54]OFD Sender: No OFD packet to send [13:48:59]OFD Sender: No OFD packet to send [13:49:04]OFD Sender: No OFD packet to send [13:49:09]OFD Sender: No OFD packet to send [13:49:14]OFD Sender: No OFD packet to send [13:49:19]OFD Sender: No OFD packet to send [13:49:24]OFD Sender: No OFD packet to send [13:49:29]OFD Sender: No OFD packet to send [13:49:34]OFD Sender: No OFD packet to send [13:49:39]OFD Sender: No OFD packet to send [13:49:44]OFD Sender: No OFD packet to send [13:49:49]OFD Sender: No OFD packet to send [13:49:54]OFD Sender: No OFD packet to send [13:49:59]OFD Sender: No OFD packet to send [13:50:04]OFD Sender: No OFD packet to send [13:50:09]OFD Sender: No OFD packet to send [13:50:14]OFD Sender: No OFD packet to send [13:50:19]OFD Sender: No OFD packet to send [13:50:24]OFD Sender: No OFD packet to send [13:50:29]OFD Sender: No OFD packet to send [13:50:34]OFD Sender: No OFD packet to send [13:50:39]OFD Sender: No OFD packet to send [13:50:44]OFD Sender: No OFD packet to send [13:50:45]accept exits with 8 [13:50:45]New connection [13:50:45]New thread 3066711396 created [13:50:45]Thread 3066568036 joined [13:50:45]Waiting for new connection... [13:50:45] Sock 8.Parse request [13:50:45]Sock 8.Check first char [13:50:45]Sock 8.First char is OK [13:50:45]request: POST /json_proto HTTP/1.0 [13:50:45]Method: POST [13:50:45]URL: /json_proto [13:50:45]Method is POST - this is cgi request [13:50:45]url: /json_proto [13:50:45]query_string will be loaded in cgi processing [13:50:45]execute_cgi json_proto POST (null) [13:50:45]execute_cgi path=json_proto method=POST [13:50:45]POST find Content-Length [13:50:45]Host: 172.17.50.3:8080 [13:50:45]Content-Length: 676 [13:50:45]Content-Type: application/json [13:50:45] [13:50:45]POST finish read [13:50:45]Found Content-Length = 676 [13:50:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 12.550, "sum" : 956.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 956.00, "total" : 956.00, "payments": [ { "type": 0, "sum" : 956.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:45]execute_script... [13:50: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)2885091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 12.550, "sum" : 956.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 956.00, "total" : 956.00, "payments": [ { "type": 0, "sum" : 956.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:45]POST & json_proto [13:50:45]process_json_proto [13:50:45]json parsed OK: [13:50:45]protocol is kg_v1.0 [13:50:45]action value=close_receipt [13:50:45]process_action close_receipt [13:50:45]cmd_close_receipt [13:50:45]MH_GetDate [13:50:45]Write to MH i2c: F0 00 00 B8 04 AB [13:50:45]Write i2c OK [13:50:45]MH_I2C_Read... [13:50:45]Read from MH i2c: F0 [13:50:45]MH_I2C_Read... [13:50:45]Read from MH i2c: F0 09 00 [13:50:45]MH_I2C_Read... [13:50:45]Read from MH i2c: F0 09 00 B8 04 00 B6 0A 15 67 6B 98 1E 66 77 [13:50:45]GetLastDocTimeStamp 1729431821 [13:50:45]current date 1729432246 [13:50:45]FM_GetShiftState [13:50:45]SAM_PROTO_GetShiftState [13:50:45]wFMCommunicate request_size=4 [13:50:45]MH_SAM_APDU [13:50:45]CAPDU: 80 13 01 00 [13:50:45]Write to MH i2c: E2 08 00 B9 04 80 13 01 00 00 00 00 00 3A [13:50:45]Write i2c OK [13:50:45]MH_I2C_Read... [13:50:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:45]Read from MH i2c: E2 [13:50:45]MH_I2C_Read... [13:50:45]Read from MH i2c: E2 0E 00 [13:50:45]MH_I2C_Read... [13:50:45]Read from MH i2c: E2 0E 00 B9 04 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 40 [13:50:45]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [13:50:45]wFMCommunicate OK [13:50:45]SAM_PROTO_GetShiftState done [13:50:45]FM_GetShiftState done [13:50:45]opened in 1729383220 [13:50:45]opened+sec_in_day 1729469620 [13:50:45]quantity*price = 95631 [13:50:45]sum+1 = 95632 [13:50:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 956.00 Внесено: 956.00 СДАЧА: 0.00 НСП 1% : 8.46 НДС 12% : 101.55 Наличными: 956.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 211 20.10.2024 13:50 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69366 ФПД: 111724031599569 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135046&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69366&fm=111724031599569&tin=02508201610067®Number=0000000000156251&sum=95600 [13:50:46]StoreToDocumentArchive [13:50:46]shift 193 fd 69366 [13:50:46]save to /storage/0193/doc_00069366 [13:50:46]save last doc name /storage/0193/doc_00069366 to /storage/kkm_last_doc_name [13:50:46]save OK [13:50:46]Clear old archive folders... [13:50:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:50:46]tlvbuf is 00272610 [13:50:46]SAM_PROTO_ClearQueue [13:50:46]wFMCommunicate request_size=4 [13:50:46]MH_SAM_APDU [13:50:46]CAPDU: 80 09 00 00 [13:50:46]Write to MH i2c: E2 08 00 C6 04 80 09 00 00 00 00 00 00 3C [13:50:46]Write i2c OK [13:50:46]MH_I2C_Read... [13:50:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:50:47]Read from MH i2c: E2 [13:50:47]MH_I2C_Read... [13:50:47]Read from MH i2c: E2 03 00 [13:50:47]MH_I2C_Read... [13:50:47]Read from MH i2c: E2 03 00 C6 04 00 90 00 3E [13:50:47]RAPDU: 90 00 [13:50:47]wFMCommunicate OK [13:50:47]SAM_PROTO_ClearQueue done [13:50:47]KKMCreateOFDPacket [13:50:47]OFDProtocolAddRootSTLVToBuf [13:50:47]FM_MakeSignedData [13:50:47]FM_MakeSignedData [13:50:47]SAM_PROTO_SignData [13:50:47]wFMCommunicate request_size=4 [13:50:47]MH_SAM_APDU [13:50:47]CAPDU: 80 0D 01 02 [13:50:47]Write to MH i2c: E2 08 00 C7 04 80 0D 01 02 00 00 00 00 44 [13:50:47]Write i2c OK [13:50:47]MH_I2C_Read... [13:50:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:50:47]Read from MH i2c: E2 [13:50:47]MH_I2C_Read... [13:50:47]Read from MH i2c: E2 03 00 [13:50:47]MH_I2C_Read... [13:50:47]Read from MH i2c: E2 03 00 C7 04 00 90 00 3F [13:50:47]RAPDU: 90 00 [13:50:47]wFMCommunicate OK [13:50:47]wFMCommunicate request_size=255 [13:50:47]MH_SAM_APDU [13:50: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 06 31 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 75 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 75 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 27 00 00 00 00 07 04 06 00 70 75 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 B6 0A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F6 0E 01 00 35 04 06 00 65 9C C7 37 [13:50:47]Write to MH i2c: E2 02 01 C8 04 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 06 31 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 75 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 75 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 27 00 00 00 00 07 04 06 00 70 75 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 B6 0A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F6 0E 01 00 35 04 06 00 65 9C C7 37 00 00 7B [13:50:47]Write i2c OK [13:50:47]MH_I2C_Read... [13:50:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:47]Read from MH i2c: E2 [13:50:47]MH_I2C_Read... [13:50:47]Read from MH i2c: E2 03 00 [13:50:47]MH_I2C_Read... [13:50:47]Read from MH i2c: E2 03 00 C8 04 00 90 00 40 [13:50:47]RAPDU: 90 00 [13:50:47]wFMCommunicate OK [13:50:47]wFMCommunicate request_size=7 [13:50:47]MH_SAM_APDU [13:50:47]CAPDU: 80 0D 02 02 02 63 D1 [13:50:47]Write to MH i2c: E2 0A 00 C9 04 80 0D 02 02 02 00 63 D1 00 00 7F [13:50:47]Write i2c OK [13:50:47]MH_I2C_Read... [13:50:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:47]Read from MH i2c: E2 [13:50:47]MH_I2C_Read... [13:50:47]Read from MH i2c: E2 03 00 [13:50:47]MH_I2C_Read... [13:50:47]Read from MH i2c: E2 03 00 C9 04 00 90 00 41 [13:50:47]RAPDU: 90 00 [13:50:47]wFMCommunicate OK [13:50:47]wFMCommunicate request_size=4 [13:50:47]MH_SAM_APDU [13:50:47]CAPDU: 80 0D 03 02 [13:50:47]Write to MH i2c: E2 08 00 CA 04 80 0D 03 02 00 00 00 00 49 [13:50:47]Write i2c OK [13:50:47]MH_I2C_Read... [13:50:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:50:47]Read from MH i2c: E2 [13:50:47]MH_I2C_Read... [13:50:47]Read from MH i2c: E2 0B 00 [13:50:47]MH_I2C_Read... [13:50:47]Read from MH i2c: E2 0B 00 CA 04 00 B8 F5 6B 74 9D 66 D6 FB 90 00 AA [13:50:47]RAPDU: B8 F5 6B 74 9D 66 D6 FB 90 00 [13:50:47]wFMCommunicate OK [13:50:47]SAM_PROTO_SignData done [13:50:47]FM_MakeSignedData done [13:50:47]CreateOFDProtocolMessage [13:50:47]wFMCommunicate request_size=4 [13:50:47]MH_SAM_APDU [13:50:47]CAPDU: 80 11 00 00 [13:50:47]Write to MH i2c: E2 08 00 CB 04 80 11 00 00 00 00 00 00 49 [13:50:47]Write i2c OK [13:50:47]MH_I2C_Read... [13:50:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:47]Read from MH i2c: E2 [13:50:47]MH_I2C_Read... [13:50:47]Read from MH i2c: E2 17 00 [13:50:47]MH_I2C_Read... [13:50:47]Read from MH i2c: E2 17 00 CB 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9B [13:50:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:50:47]wFMCommunicate OK [13:50:47]CreateOFDProtocolMessage done [13:50:47]OFDSenderStorePacket 69366 [13:50:47]StoreOFDPacket docnum=69366 [13:50:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 47 E6 04 01 CE B2 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 06 31 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 75 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 75 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 27 00 00 00 00 07 04 06 00 70 75 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 B6 0A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F6 0E 01 00 35 04 06 00 65 9C C7 37 63 D1 B8 F5 6B 74 9D 66 D6 FB [13:50:47]CheckFolder [13:50:47]dirname=/storage/ofd_packets [13:50:47]CheckFolder done [13:50:47]ProducePacketName [13:50:47]name=ofd_packets/00069366 [13:50:47]NVStorageSaveData ofd_packets/00069366 [13:50:47]File name is /storage/ofd_packets/00069366 [13:50:47]Write 298 bytes [13:50:47]NVStorageSaveData done [13:50:47]OFDSenderStorePacket done [13:50:47]KKMCreateOFDPacket done [13:50:47]NVStorageSaveData kkm_last_timestamp [13:50:47]File name is /storage/kkm_last_timestamp [13:50:47]Write 4 bytes [13:50:47]NVStorageSaveData done [13:50:47]ExternCall_PrintAddStr [13:50:47]wPrintStart [13:50:47]Write to MH i2c: 01 00 00 CC 04 D0 [13:50:47]Write i2c OK [13:50:47]MH_I2C_Read... [13:50:47]Read from MH i2c: 01 [13:50:47]MH_I2C_Read... [13:50:47]Read from MH i2c: 01 07 00 [13:50:47]MH_I2C_Read... [13:50:47]Read from MH i2c: 01 07 00 CC 04 00 00 00 00 00 FF 0F E5 [13:50:47]RasterBufferAndPrint [13:50:47]line Счет N : (1)2885091 [13:50:47]line ИНН: 02508201610067 [13:50:47]line Контрольно-Кассовый Чек [13:50:47]line ПРОДАЖА [13:50:47]line ТРК (МРК, ГНК) : 51 [13:50:47]line Товар: 2710194210 [13:50:47]line ДТ-К-5 [13:50:47]line 12.550 * 76.20 [13:50:47]line = 956.31 [13:50:47]line НДС 12% НСП 1% [13:50:47]line > о реализуемом товаре [13:50:47]line ОКРУГЛЕНИЕ: -0.31 [13:50:47]line ИТОГО: 956.00 [13:50:47]line Внесено: 956.00 [13:50:47]line СДАЧА: 0.00 [13:50:47]line НСП 1% : 8.46 [13:50:47]line НДС 12% : 101.55 [13:50:47]line Наличными: 956.00 [13:50:47]line Безнал.: 0.00 [13:50:47]line Место: АЗС № 85 "Партнер Нефть" [13:50:47]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:50:47]line СНО: Общий режим [13:50:47]line Чек 211 20.10.2024 13:50 [13:50:47]line Смена: 193 ФФД: 1.0 [13:50:47]line ЗНМ: 0300000167 [13:50:47]line РНМ: 0000000000156251 [13:50:47]line Версия ККМ: v1.0 [13:50:47]line ФМ: 0000000000963346 [13:50:47]line ФД: 69366 [13:50:47]line ФПД: 111724031599569 [13:50:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135046&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69366&fm=111724031599569&tin=02508201610067®Number=0000000000156251&sum=95600 [13:50:47]OFD Sender: Processing packet 69366 [packets to send 18, broken 17] [13:50:47]ProducePacketName [13:50:47]name=ofd_packets/00069366 [13:50:47]OFD Sender: To server: pG, [13:50:47]CommunicateWithHost lk.salyk.kg:30040 [13:50:47]ConnectInit lk.salyk.kg [13:50:47]written 0, free lines is 4095 [13:50:47]Connected sock=10 [13:50:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 47 E6 04 01 CE B2 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 06 31 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 75 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 75 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 27 00 00 00 00 07 04 06 00 70 75 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 B6 0A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F6 0E 01 00 35 04 06 00 65 9C C7 37 63 D1 B8 F5 6B 74 9D 66 D6 FB [13:50:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 17 CD 47 00 44 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F6 0E 01 00 F4 03 04 00 5C B4 14 67 B6 04 01 00 00 F3 50 E8 3C BF 4D 84 8A [13:50:48]CommunicateWithHost err = 0 [13:50:48]CheckOFDResponse [13:50:48]1017 (14) - 77093643461234 [13:50:48]1041 (16) - 0000000000963346 [13:50:48]1040 (4) - 69366 [13:50:48]1012 (4) - 20.10.2024 07:42 [13:50:48]1206 (1) - 0 [13:50:48]OFD Sender: Remove packet 69366 [13:50:48]ProducePacketName [13:50:48]name=ofd_packets/00069366 [13:50:48]NVStorageDeleteData [13:50:48]Write to MH i2c: 01 00 00 F7 04 FB [13:50:48]Write i2c OK [13:50:48]MH_I2C_Read... [13:50:48]Read from MH i2c: 01 [13:50:48]MH_I2C_Read... [13:50:48]Read from MH i2c: 01 07 00 [13:50:48]MH_I2C_Read... [13:50:48]Read from MH i2c: 01 07 00 F7 04 00 00 00 00 00 F4 0C 02 [13:50:48]RasterBufferAndPrint [13:50:48]line [13:50:48]line [13:50:48]line [13:50:48]line [13:50:48]line [13:50:48]written 0, free lines is 3322 [13:50:48]MH_Cut [13:50:48]Write to MH i2c: D1 01 00 FE 04 01 D4 [13:50:48]Write i2c OK [13:50:48]MH_I2C_Read... [13:50:48]Read from MH i2c: D1 [13:50:48]MH_I2C_Read... [13:50:48]Read from MH i2c: D1 01 00 [13:50:48]MH_I2C_Read... [13:50:48]Read from MH i2c: D1 01 00 FE 04 00 D3 [13:50:48]Write to MH i2c: 01 00 00 FF 04 03 [13:50:48]Write i2c OK [13:50:48]MH_I2C_Read... [13:50:48]OFD Sender: No OFD packet to send [13:50:48]*** Cut start [13:50:48]*** Partial cut [13:50:48]*** CUTSNS_PIN = 1 [13:50:48]*** CUTSNS_PIN = 0 [13:50:49]*** Brake cut motor [13:50:49]Read from MH i2c: 01 [13:50:49]MH_I2C_Read... [13:50:49]*** Stop cut motor [13:50:49]*** Cut end [13:50:49]Read from MH i2c: 01 07 00 [13:50:49]MH_I2C_Read... [13:50:49]Read from MH i2c: 01 07 00 FF 04 00 00 00 00 00 FF 0F 18 [13:50:49]process_action close_receipt done [13:50:49]requested_data is exist [13:50:49]produce_requested_data [13:50:49]requested_item fm.sn is exist - process it [13:50:49]wFMCommunicate request_size=4 [13:50:49]MH_SAM_APDU [13:50:49]CAPDU: 80 11 00 00 [13:50:49]Write to MH i2c: E2 08 00 00 05 80 11 00 00 00 00 00 00 7F [13:50:49]Write i2c OK [13:50:49]MH_I2C_Read... [13:50:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:49]Read from MH i2c: E2 [13:50:49]MH_I2C_Read... [13:50:49]Read from MH i2c: E2 17 00 [13:50:49]MH_I2C_Read... [13:50:49]Read from MH i2c: E2 17 00 00 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D1 [13:50:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:50:49]wFMCommunicate OK [13:50:49]requested_item fd.num is exist - process it [13:50:49]SAM_PROTO_GetFieldsCounters [13:50:49]wFMCommunicate request_size=4 [13:50:49]MH_SAM_APDU [13:50:49]CAPDU: 80 13 00 00 [13:50:49]Write to MH i2c: E2 08 00 01 05 80 13 00 00 00 00 00 00 82 [13:50:49]Write i2c OK [13:50:49]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 01 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F6 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [13:50:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F6 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [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 02 05 80 13 01 00 00 00 00 00 84 [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 02 05 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 8A [13:50:49]RAPDU: 09 00 01 34 4B 14 67 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 {"fm.sn":"0000000000963346","fd.num":69366,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [13:50:49]process_action_free close_receipt [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":{"fm.sn":"0000000000963346","fd.num":69366,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [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:53]OFD Sender: No OFD packet to send [13:50:57]accept exits with 9 [13:50:57]New connection [13:50:57]New thread 3066568036 created [13:50:57]Thread 3066711396 joined [13:50:57]Waiting for new connection... [13:50:57] Sock 9.Parse request [13:50:57]Sock 9.Check first char [13:50:57]Sock 9.First char is OK [13:50:57]request: POST /json_proto HTTP/1.0 [13:50:57]Method: POST [13:50:57]URL: /json_proto [13:50:57]Method is POST - this is cgi request [13:50:57]url: /json_proto [13:50:57]query_string will be loaded in cgi processing [13:50:57]execute_cgi json_proto POST (null) [13:50:57]execute_cgi path=json_proto method=POST [13:50:57]POST find Content-Length [13:50:57]Host: 172.17.50.3:8080 [13:50:57]Content-Length: 978 [13:50:57]Content-Type: application/json [13:50:57] [13:50:57]POST finish read [13:50:57]Found Content-Length = 978 [13:50:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 66.490, "sum" : 5000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.49 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:57]execute_script... [13:50: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)2885090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 66.490, "sum" : 5000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.49 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:57]POST & json_proto [13:50:57]process_json_proto [13:50:57]json parsed OK: [13:50:57]protocol is kg_v1.0 [13:50:57]action value=close_receipt [13:50:57]process_action close_receipt [13:50:57]cmd_close_receipt [13:50:57]MH_GetDate [13:50:57]Write to MH i2c: F0 00 00 03 05 F7 [13:50:57]Write i2c OK [13:50:57]MH_I2C_Read... [13:50:57]Read from MH i2c: F0 [13:50:57]MH_I2C_Read... [13:50:57]Read from MH i2c: F0 09 00 [13:50:57]MH_I2C_Read... [13:50:57]Read from MH i2c: F0 09 00 03 05 00 C2 0A 15 67 6B 98 1E 66 CF [13:50:57]GetLastDocTimeStamp 1729432246 [13:50:57]current date 1729432258 [13:50:57]FM_GetShiftState [13:50:57]SAM_PROTO_GetShiftState [13:50:57]wFMCommunicate request_size=4 [13:50:57]MH_SAM_APDU [13:50:57]CAPDU: 80 13 01 00 [13:50:57]Write to MH i2c: E2 08 00 04 05 80 13 01 00 00 00 00 00 86 [13:50:57]Write i2c OK [13:50:57]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 04 05 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 8C [13:50:58]RAPDU: 09 00 01 34 4B 14 67 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]opened in 1729383220 [13:50:58]opened+sec_in_day 1729469620 [13:50:58]quantity*price = 500004 [13:50:58]sum+1 = 500006 [13:50:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 530.98 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 212 20.10.2024 13:50 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Дисконтная программа ДТ номер 85 сэкономлено 66.49 сом ФМ: 0000000000963346 ФД: 69367 ФПД: 230292771552976 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135058&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69367&fm=230292771552976&tin=02508201610067®Number=0000000000156251&sum=500000 [13:50:59]StoreToDocumentArchive [13:50:59]shift 193 fd 69367 [13:50:59]save to /storage/0193/doc_00069367 [13:50:59]save last doc name /storage/0193/doc_00069367 to /storage/kkm_last_doc_name [13:50:59]save OK [13:50:59]Clear old archive folders... [13:50:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:50:59]tlvbuf is 0025D960 [13:50:59]SAM_PROTO_ClearQueue [13:50:59]wFMCommunicate request_size=4 [13:50:59]MH_SAM_APDU [13:50:59]CAPDU: 80 09 00 00 [13:50:59]Write to MH i2c: E2 08 00 11 05 80 09 00 00 00 00 00 00 88 [13:50:59]Write i2c OK [13:50:59]MH_I2C_Read... [13:50:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:50:59]Read from MH i2c: E2 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: E2 03 00 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: E2 03 00 11 05 00 90 00 8A [13:50:59]RAPDU: 90 00 [13:50:59]wFMCommunicate OK [13:50:59]SAM_PROTO_ClearQueue done [13:50:59]KKMCreateOFDPacket [13:50:59]OFDProtocolAddRootSTLVToBuf [13:50:59]FM_MakeSignedData [13:50:59]FM_MakeSignedData [13:50:59]SAM_PROTO_SignData [13:50:59]wFMCommunicate request_size=4 [13:50:59]MH_SAM_APDU [13:50:59]CAPDU: 80 0D 01 02 [13:50:59]Write to MH i2c: E2 08 00 12 05 80 0D 01 02 00 00 00 00 90 [13:50:59]Write i2c OK [13:50:59]MH_I2C_Read... [13:50:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:50:59]Read from MH i2c: E2 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: E2 03 00 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: E2 03 00 12 05 00 90 00 8B [13:50:59]RAPDU: 90 00 [13:50:59]wFMCommunicate OK [13:50:59]wFMCommunicate request_size=255 [13:50:59]MH_SAM_APDU [13:50: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 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 C2 0A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F7 0E 01 00 35 04 06 00 D1 73 36 D7 [13:50:59]Write to MH i2c: E2 02 01 13 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 C2 0A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F7 0E 01 00 35 04 06 00 D1 73 36 D7 00 00 46 [13:50:59]Write i2c OK [13:50:59]MH_I2C_Read... [13:50:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:59]Read from MH i2c: E2 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: E2 03 00 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: E2 03 00 13 05 00 90 00 8C [13:50:59]RAPDU: 90 00 [13:50:59]wFMCommunicate OK [13:50:59]wFMCommunicate request_size=7 [13:50:59]MH_SAM_APDU [13:50:59]CAPDU: 80 0D 02 02 02 BE D0 [13:50:59]Write to MH i2c: E2 0A 00 14 05 80 0D 02 02 02 00 BE D0 00 00 25 [13:50:59]Write i2c OK [13:50:59]MH_I2C_Read... [13:50:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:59]Read from MH i2c: E2 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: E2 03 00 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: E2 03 00 14 05 00 90 00 8D [13:50:59]RAPDU: 90 00 [13:50:59]wFMCommunicate OK [13:50:59]wFMCommunicate request_size=4 [13:50:59]MH_SAM_APDU [13:50:59]CAPDU: 80 0D 03 02 [13:50:59]Write to MH i2c: E2 08 00 15 05 80 0D 03 02 00 00 00 00 95 [13:50:59]Write i2c OK [13:50:59]MH_I2C_Read... [13:50:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:50:59]Read from MH i2c: E2 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: E2 0B 00 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: E2 0B 00 15 05 00 46 87 EF EC 9E 39 2A 8C 90 00 CB [13:50:59]RAPDU: 46 87 EF EC 9E 39 2A 8C 90 00 [13:50:59]wFMCommunicate OK [13:50:59]SAM_PROTO_SignData done [13:50:59]FM_MakeSignedData done [13:50:59]CreateOFDProtocolMessage [13:50:59]wFMCommunicate request_size=4 [13:50:59]MH_SAM_APDU [13:50:59]CAPDU: 80 11 00 00 [13:50:59]Write to MH i2c: E2 08 00 16 05 80 11 00 00 00 00 00 00 95 [13:50:59]Write i2c OK [13:50:59]MH_I2C_Read... [13:50:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:59]Read from MH i2c: E2 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: E2 17 00 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: E2 17 00 16 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E7 [13:50:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:50:59]wFMCommunicate OK [13:50:59]CreateOFDProtocolMessage done [13:50:59]OFDSenderStorePacket 69367 [13:50:59]StoreOFDPacket docnum=69367 [13:50:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 A9 E5 04 01 42 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 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 C2 0A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F7 0E 01 00 35 04 06 00 D1 73 36 D7 BE D0 46 87 EF EC 9E 39 2A 8C [13:50:59]CheckFolder [13:50:59]dirname=/storage/ofd_packets [13:50:59]CheckFolder done [13:50:59]ProducePacketName [13:50:59]name=ofd_packets/00069367 [13:50:59]NVStorageSaveData ofd_packets/00069367 [13:50:59]File name is /storage/ofd_packets/00069367 [13:50:59]Write 298 bytes [13:50:59]NVStorageSaveData done [13:50:59]OFDSenderStorePacket done [13:50:59]KKMCreateOFDPacket done [13:50:59]NVStorageSaveData kkm_last_timestamp [13:50:59]File name is /storage/kkm_last_timestamp [13:50:59]Write 4 bytes [13:50:59]NVStorageSaveData done [13:50:59]ExternCall_PrintAddStr [13:50:59]wPrintStart [13:50:59]Write to MH i2c: 01 00 00 17 05 1C [13:50:59]Write i2c OK [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: 01 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: 01 07 00 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: 01 07 00 17 05 00 00 00 00 00 FF 0F 31 [13:50:59]RasterBufferAndPrint [13:50:59]line Счет N : (1)2885090 [13:50:59]line ИНН: 02508201610067 [13:50:59]line Контрольно-Кассовый Чек [13:50:59]line ПРОДАЖА [13:50:59]line ТРК (МРК, ГНК) : 61 [13:50:59]line Товар: 2710194210 [13:50:59]line ДТ-К-5 [13:50:59]line 66.490 * 75.20 [13:50:59]line = 5000.05 [13:50:59]line НДС 12% НСП 1% [13:50:59]line > о реализуемом товаре [13:50:59]line ОКРУГЛЕНИЕ: -0.05 [13:50:59]line ИТОГО: 5000.00 [13:50:59]line Внесено: 5000.00 [13:50:59]line СДАЧА: 0.00 [13:50:59]line НСП 1% : 44.25 [13:50:59]line НДС 12% : 530.98 [13:50:59]line Наличными: 5000.00 [13:50:59]line Безнал.: 0.00 [13:50:59]line Место: АЗС № 85 "Партнер Нефть" [13:50:59]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:50:59]line СНО: Общий режим [13:50:59]line Чек 212 20.10.2024 13:50 [13:50:59]line Смена: 193 ФФД: 1.0 [13:50:59]line ЗНМ: 0300000167 [13:50:59]line РНМ: 0000000000156251 [13:50:59]line Версия ККМ: v1.0 [13:50:59]line [13:50:59]line Дисконтная программа [13:50:59]line ДТ [13:50:59]line номер 85 [13:50:59]line сэкономлено 66.49 сом [13:50:59]line ФМ: 0000000000963346 [13:50:59]line ФД: 69367 [13:50:59]line ФПД: 230292771552976 [13:50:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135058&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69367&fm=230292771552976&tin=02508201610067®Number=0000000000156251&sum=500000 [13:50:59]OFD Sender: Processing packet 69367 [packets to send 18, broken 17] [13:50:59]ProducePacketName [13:50:59]name=ofd_packets/00069367 [13:50:59]OFD Sender: To server: pG, [13:50:59]CommunicateWithHost lk.salyk.kg:30040 [13:50:59]ConnectInit lk.salyk.kg [13:50:59]written 0, free lines is 4095 [13:51:00]Connected sock=10 [13:51:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 A9 E5 04 01 42 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 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 C2 0A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F7 0E 01 00 35 04 06 00 D1 73 36 D7 BE D0 46 87 EF EC 9E 39 2A 8C [13:51:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 13 30 47 00 19 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F7 0E 01 00 F4 03 04 00 68 B4 14 67 B6 04 01 00 00 86 0F 3E C5 5A 86 23 30 [13:51:00]CommunicateWithHost err = 0 [13:51:00]CheckOFDResponse [13:51:00]1017 (14) - 77093643461234 [13:51:00]1041 (16) - 0000000000963346 [13:51:00]1040 (4) - 69367 [13:51:00]1012 (4) - 20.10.2024 07:42 [13:51:00]1206 (1) - 0 [13:51:00]OFD Sender: Remove packet 69367 [13:51:00]ProducePacketName [13:51:00]name=ofd_packets/00069367 [13:51:00]NVStorageDeleteData [13:51:00]Write to MH i2c: 01 00 00 47 05 4C [13:51:00]Write i2c OK [13:51:00]MH_I2C_Read... [13:51:00]Read from MH i2c: 01 [13:51:00]MH_I2C_Read... [13:51:00]Read from MH i2c: 01 07 00 [13:51:00]MH_I2C_Read... [13:51:00]Read from MH i2c: 01 07 00 47 05 00 00 00 00 00 98 0C F7 [13:51:00]RasterBufferAndPrint [13:51:00]line [13:51:00]line [13:51:00]line [13:51:00]line [13:51:00]line [13:51:00]written 0, free lines is 3234 [13:51:00]MH_Cut [13:51:00]Write to MH i2c: D1 01 00 4E 05 01 25 [13:51:00]Write i2c OK [13:51:00]MH_I2C_Read... [13:51:00]Read from MH i2c: D1 [13:51:00]MH_I2C_Read... [13:51:00]Read from MH i2c: D1 01 00 [13:51:00]MH_I2C_Read... [13:51:00]Read from MH i2c: D1 01 00 4E 05 00 24 [13:51:00]Write to MH i2c: 01 00 00 4F 05 54 [13:51:00]Write i2c OK [13:51:00]MH_I2C_Read... [13:51:00]OFD Sender: No OFD packet to send [13:51:01]*** Cut start [13:51:01]*** Partial cut [13:51:01]*** CUTSNS_PIN = 1 [13:51:01]*** CUTSNS_PIN = 0 [13:51:01]*** Brake cut motor [13:51:01]Read from MH i2c: 01 [13:51:01]MH_I2C_Read... [13:51:01]*** Stop cut motor [13:51:01]*** Cut end [13:51:01]Read from MH i2c: 01 07 00 [13:51:01]MH_I2C_Read... [13:51:01]Read from MH i2c: 01 07 00 4F 05 00 00 00 00 00 FF 0F 69 [13:51:01]process_action close_receipt done [13:51:01]requested_data is exist [13:51:01]produce_requested_data [13:51:01]requested_item fm.sn is exist - process it [13:51:01]wFMCommunicate request_size=4 [13:51:01]MH_SAM_APDU [13:51:01]CAPDU: 80 11 00 00 [13:51:01]Write to MH i2c: E2 08 00 50 05 80 11 00 00 00 00 00 00 CF [13:51:01]Write i2c OK [13:51:01]MH_I2C_Read... [13:51:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:01]Read from MH i2c: E2 [13:51:01]MH_I2C_Read... [13:51:01]Read from MH i2c: E2 17 00 [13:51:01]MH_I2C_Read... [13:51:01]Read from MH i2c: E2 17 00 50 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 21 [13:51:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:51:01]wFMCommunicate OK [13:51:01]requested_item fd.num is exist - process it [13:51:01]SAM_PROTO_GetFieldsCounters [13:51:01]wFMCommunicate request_size=4 [13:51:01]MH_SAM_APDU [13:51:01]CAPDU: 80 13 00 00 [13:51:01]Write to MH i2c: E2 08 00 51 05 80 13 00 00 00 00 00 00 D2 [13:51:01]Write i2c OK [13:51:01]MH_I2C_Read... [13:51:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:51:02]Read from MH i2c: E2 [13:51:02]MH_I2C_Read... [13:51:02]Read from MH i2c: E2 62 00 [13:51:02]MH_I2C_Read... [13:51:02]Read from MH i2c: E2 62 00 51 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F7 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [13:51:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F7 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:51:02]wFMCommunicate OK [13:51:02]SAM_PROTO_GetFieldsCounters done [13:51:02]requested_item shift.num is exist - process it [13:51:02]requested_item shift.opened is exist - process it [13:51:02]req_shift_opened [13:51:02]FM_GetShiftState [13:51:02]SAM_PROTO_GetShiftState [13:51:02]wFMCommunicate request_size=4 [13:51:02]MH_SAM_APDU [13:51:02]CAPDU: 80 13 01 00 [13:51:02]Write to MH i2c: E2 08 00 52 05 80 13 01 00 00 00 00 00 D4 [13:51:02]Write i2c OK [13:51:02]MH_I2C_Read... [13:51:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:02]Read from MH i2c: E2 [13:51:02]MH_I2C_Read... [13:51:02]Read from MH i2c: E2 0E 00 [13:51:02]MH_I2C_Read... [13:51:02]Read from MH i2c: E2 0E 00 52 05 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 DA [13:51:02]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [13:51:02]wFMCommunicate OK [13:51:02]SAM_PROTO_GetShiftState done [13:51:02]FM_GetShiftState done [13:51:02]req_shift_opened done [13:51:02]requested_item shift.open_date is exist - process it [13:51:02]req_shift_open_date [13:51:02]req_shift_open_date done [13:51:02]produce_requested_data done [13:51:02]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69367,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [13:51:02]process_action_free close_receipt [13:51:02]json_value_free [13:51:02]json_value_free done [13:51:02]process_json_proto returns [13:51:02]Send response to host [13:51:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69367,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [13:51:02]free response buf [13:51:02]execute_script done [13:51:02]execute_script returns [13:51:02]free content buf [13:51:02]Sock 9.Close socket [13:51:02]Sock 9.Thread stoped [13:51:05]OFD Sender: No OFD packet to send [13:51:10]OFD Sender: No OFD packet to send [13:51:15]OFD Sender: No OFD packet to send [13:51:20]OFD Sender: No OFD packet to send [13:51:25]OFD Sender: No OFD packet to send [13:51:30]OFD Sender: No OFD packet to send [13:51:35]OFD Sender: No OFD packet to send [13:51:40]OFD Sender: No OFD packet to send [13:51:45]OFD Sender: No OFD packet to send [13:51:50]OFD Sender: No OFD packet to send [13:51:55]OFD Sender: No OFD packet to send [13:52:00]OFD Sender: No OFD packet to send [13:52:05]OFD Sender: No OFD packet to send [13:52:10]OFD Sender: No OFD packet to send [13:52:15]OFD Sender: No OFD packet to send [13:52:20]OFD Sender: No OFD packet to send [13:52:25]OFD Sender: No OFD packet to send [13:52:30]OFD Sender: No OFD packet to send [13:52:35]OFD Sender: No OFD packet to send [13:52:40]OFD Sender: No OFD packet to send [13:52:45]OFD Sender: No OFD packet to send [13:52:50]OFD Sender: No OFD packet to send [13:52:55]OFD Sender: No OFD packet to send [13:53:00]OFD Sender: No OFD packet to send [13:53:05]OFD Sender: No OFD packet to send [13:53:10]OFD Sender: No OFD packet to send [13:53:15]OFD Sender: No OFD packet to send [13:53:20]OFD Sender: No OFD packet to send [13:53:25]OFD Sender: No OFD packet to send [13:53:30]OFD Sender: No OFD packet to send [13:53:35]OFD Sender: No OFD packet to send [13:53:40]accept exits with 8 [13:53:40]New connection [13:53:40]New thread 3066711396 created [13:53:40]Thread 3066568036 joined [13:53:40]Waiting for new connection... [13:53:40] Sock 8.Parse request [13:53:40]Sock 8.Check first char [13:53:40]Sock 8.First char is OK [13:53:40]request: POST /json_proto HTTP/1.0 [13:53:40]Method: POST [13:53:40]URL: /json_proto [13:53:40]Method is POST - this is cgi request [13:53:40]url: /json_proto [13:53:40]query_string will be loaded in cgi processing [13:53:40]execute_cgi json_proto POST (null) [13:53:40]execute_cgi path=json_proto method=POST [13:53:40]POST find Content-Length [13:53:40]Host: 172.17.50.3:8080 [13:53:40]Content-Length: 978 [13:53:40]Content-Type: application/json [13:53:40] [13:53:40]POST finish read [13:53:40]Found Content-Length = 978 [13:53:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 66.490, "sum" : 5000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.49 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:40]execute_script... [13:53:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 66.490, "sum" : 5000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.49 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:40]POST & json_proto [13:53:40]process_json_proto [13:53:40]json parsed OK: [13:53:40]protocol is kg_v1.0 [13:53:40]action value=close_receipt [13:53:40]process_action close_receipt [13:53:40]cmd_close_receipt [13:53:40]MH_GetDate [13:53:40]Write to MH i2c: F0 00 00 53 05 47 [13:53:40]Write i2c OK [13:53:40]MH_I2C_Read... [13:53:40]Read from MH i2c: F0 [13:53:40]MH_I2C_Read... [13:53:40]Read from MH i2c: F0 09 00 [13:53:40]MH_I2C_Read... [13:53:40]Read from MH i2c: F0 09 00 53 05 00 64 0B 15 67 6B 98 1E 66 C2 [13:53:40]GetLastDocTimeStamp 1729432258 [13:53:40]current date 1729432420 [13:53:40]FM_GetShiftState [13:53:40]SAM_PROTO_GetShiftState [13:53:40]wFMCommunicate request_size=4 [13:53:40]MH_SAM_APDU [13:53:40]CAPDU: 80 13 01 00 [13:53:40]Write to MH i2c: E2 08 00 54 05 80 13 01 00 00 00 00 00 D6 [13:53:40]Write i2c OK [13:53:40]MH_I2C_Read... [13:53:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:40]Read from MH i2c: E2 [13:53:40]MH_I2C_Read... [13:53:40]Read from MH i2c: E2 0E 00 [13:53:40]MH_I2C_Read... [13:53:40]Read from MH i2c: E2 0E 00 54 05 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 DC [13:53:40]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [13:53:40]wFMCommunicate OK [13:53:40]SAM_PROTO_GetShiftState done [13:53:40]FM_GetShiftState done [13:53:40]opened in 1729383220 [13:53:40]opened+sec_in_day 1729469620 [13:53:40]quantity*price = 500004 [13:53:40]sum+1 = 500006 [13:53:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 530.98 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 213 20.10.2024 13:53 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Дисконтная программа ДТ номер 85 сэкономлено 66.49 сом ФМ: 0000000000963346 ФД: 69368 ФПД: 31895460059468 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135340&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69368&fm=31895460059468&tin=02508201610067®Number=0000000000156251&sum=500000 [13:53:41]StoreToDocumentArchive [13:53:41]shift 193 fd 69368 [13:53:41]save to /storage/0193/doc_00069368 [13:53:41]save last doc name /storage/0193/doc_00069368 to /storage/kkm_last_doc_name [13:53:41]save OK [13:53:41]Clear old archive folders... [13:53:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:53:41]tlvbuf is 0025F5A0 [13:53:41]SAM_PROTO_ClearQueue [13:53:41]wFMCommunicate request_size=4 [13:53:41]MH_SAM_APDU [13:53:41]CAPDU: 80 09 00 00 [13:53:41]Write to MH i2c: E2 08 00 61 05 80 09 00 00 00 00 00 00 D8 [13:53:41]Write i2c OK [13:53:41]MH_I2C_Read... [13:53:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:53:41]Read from MH i2c: E2 [13:53:41]MH_I2C_Read... [13:53:41]Read from MH i2c: E2 03 00 [13:53:41]MH_I2C_Read... [13:53:41]Read from MH i2c: E2 03 00 61 05 00 90 00 DA [13:53:41]RAPDU: 90 00 [13:53:41]wFMCommunicate OK [13:53:41]SAM_PROTO_ClearQueue done [13:53:41]KKMCreateOFDPacket [13:53:41]OFDProtocolAddRootSTLVToBuf [13:53:41]FM_MakeSignedData [13:53:41]FM_MakeSignedData [13:53:41]SAM_PROTO_SignData [13:53:41]wFMCommunicate request_size=4 [13:53:41]MH_SAM_APDU [13:53:41]CAPDU: 80 0D 01 02 [13:53:41]Write to MH i2c: E2 08 00 62 05 80 0D 01 02 00 00 00 00 E0 [13:53:41]Write i2c OK [13:53:41]MH_I2C_Read... [13:53:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:53:41]Read from MH i2c: E2 [13:53:41]MH_I2C_Read... [13:53:41]Read from MH i2c: E2 03 00 [13:53:41]MH_I2C_Read... [13:53:41]Read from MH i2c: E2 03 00 62 05 00 90 00 DB [13:53:41]RAPDU: 90 00 [13:53:41]wFMCommunicate OK [13:53:41]wFMCommunicate request_size=255 [13:53:41]MH_SAM_APDU [13:53:41]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 64 0B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F8 0E 01 00 35 04 06 00 1D 02 3D 91 [13:53:41]Write to MH i2c: E2 02 01 63 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 64 0B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F8 0E 01 00 35 04 06 00 1D 02 3D 91 00 00 D7 [13:53:41]Write i2c OK [13:53:41]MH_I2C_Read... [13:53:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:41]Read from MH i2c: E2 [13:53:41]MH_I2C_Read... [13:53:41]Read from MH i2c: E2 03 00 [13:53:41]MH_I2C_Read... [13:53:41]Read from MH i2c: E2 03 00 63 05 00 90 00 DC [13:53:41]RAPDU: 90 00 [13:53:41]wFMCommunicate OK [13:53:41]wFMCommunicate request_size=7 [13:53:41]MH_SAM_APDU [13:53:41]CAPDU: 80 0D 02 02 02 19 4C [13:53:41]Write to MH i2c: E2 0A 00 64 05 80 0D 02 02 02 00 19 4C 00 00 4C [13:53:41]Write i2c OK [13:53:41]MH_I2C_Read... [13:53:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:41]Read from MH i2c: E2 [13:53:41]MH_I2C_Read... [13:53:41]Read from MH i2c: E2 03 00 [13:53:41]MH_I2C_Read... [13:53:41]Read from MH i2c: E2 03 00 64 05 00 90 00 DD [13:53:41]RAPDU: 90 00 [13:53:41]wFMCommunicate OK [13:53:41]wFMCommunicate request_size=4 [13:53:41]MH_SAM_APDU [13:53:41]CAPDU: 80 0D 03 02 [13:53:41]Write to MH i2c: E2 08 00 65 05 80 0D 03 02 00 00 00 00 E5 [13:53:41]Write i2c OK [13:53:41]MH_I2C_Read... [13:53:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:53:41]Read from MH i2c: E2 [13:53:41]MH_I2C_Read... [13:53:41]Read from MH i2c: E2 0B 00 [13:53:41]MH_I2C_Read... [13:53:41]Read from MH i2c: E2 0B 00 65 05 00 A6 1C 27 D8 4C 1C 87 1D 90 00 B3 [13:53:41]RAPDU: A6 1C 27 D8 4C 1C 87 1D 90 00 [13:53:41]wFMCommunicate OK [13:53:41]SAM_PROTO_SignData done [13:53:41]FM_MakeSignedData done [13:53:41]CreateOFDProtocolMessage [13:53:41]wFMCommunicate request_size=4 [13:53:41]MH_SAM_APDU [13:53:41]CAPDU: 80 11 00 00 [13:53:41]Write to MH i2c: E2 08 00 66 05 80 11 00 00 00 00 00 00 E5 [13:53:41]Write i2c OK [13:53:41]MH_I2C_Read... [13:53:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:41]Read from MH i2c: E2 [13:53:41]MH_I2C_Read... [13:53:41]Read from MH i2c: E2 17 00 [13:53:41]MH_I2C_Read... [13:53:41]Read from MH i2c: E2 17 00 66 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 37 [13:53:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:53:41]wFMCommunicate OK [13:53:41]CreateOFDProtocolMessage done [13:53:41]OFDSenderStorePacket 69368 [13:53:41]StoreOFDPacket docnum=69368 [13:53:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 BB BC 04 01 C7 7D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 64 0B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F8 0E 01 00 35 04 06 00 1D 02 3D 91 19 4C A6 1C 27 D8 4C 1C 87 1D [13:53:41]CheckFolder [13:53:41]dirname=/storage/ofd_packets [13:53:41]CheckFolder done [13:53:41]ProducePacketName [13:53:41]name=ofd_packets/00069368 [13:53:41]NVStorageSaveData ofd_packets/00069368 [13:53:41]File name is /storage/ofd_packets/00069368 [13:53:41]Write 298 bytes [13:53:41]NVStorageSaveData done [13:53:41]OFDSenderStorePacket done [13:53:41]KKMCreateOFDPacket done [13:53:41]NVStorageSaveData kkm_last_timestamp [13:53:41]File name is /storage/kkm_last_timestamp [13:53:41]Write 4 bytes [13:53:41]NVStorageSaveData done [13:53:41]ExternCall_PrintAddStr [13:53:41]wPrintStart [13:53:41]Write to MH i2c: 01 00 00 67 05 6C [13:53:41]Write i2c OK [13:53:41]MH_I2C_Read... [13:53:41]Read from MH i2c: 01 [13:53:41]MH_I2C_Read... [13:53:41]Read from MH i2c: 01 07 00 [13:53:41]MH_I2C_Read... [13:53:41]Read from MH i2c: 01 07 00 67 05 00 00 00 00 00 FF 0F 81 [13:53:41]RasterBufferAndPrint [13:53:41]line Счет N : (1)2885092 [13:53:41]line ИНН: 02508201610067 [13:53:41]line Контрольно-Кассовый Чек [13:53:41]line ПРОДАЖА [13:53:41]line ТРК (МРК, ГНК) : 61 [13:53:41]line Товар: 2710194210 [13:53:41]line ДТ-К-5 [13:53:41]line 66.490 * 75.20 [13:53:41]line = 5000.05 [13:53:41]line НДС 12% НСП 1% [13:53:41]line > о реализуемом товаре [13:53:41]line ОКРУГЛЕНИЕ: -0.05 [13:53:41]line ИТОГО: 5000.00 [13:53:41]line Внесено: 5000.00 [13:53:41]line СДАЧА: 0.00 [13:53:41]line НСП 1% : 44.25 [13:53:41]line НДС 12% : 530.98 [13:53:41]line Наличными: 5000.00 [13:53:41]line Безнал.: 0.00 [13:53:41]line Место: АЗС № 85 "Партнер Нефть" [13:53:41]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:53:41]line СНО: Общий режим [13:53:41]line Чек 213 20.10.2024 13:53 [13:53:41]line Смена: 193 ФФД: 1.0 [13:53:41]line ЗНМ: 0300000167 [13:53:41]line РНМ: 0000000000156251 [13:53:41]line Версия ККМ: v1.0 [13:53:41]line [13:53:41]line Дисконтная программа [13:53:41]line ДТ [13:53:42]line номер 85 [13:53:42]line сэкономлено 66.49 сом [13:53:42]line ФМ: 0000000000963346 [13:53:42]line ФД: 69368 [13:53:42]line ФПД: 31895460059468 [13:53:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135340&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69368&fm=31895460059468&tin=02508201610067®Number=0000000000156251&sum=500000 [13:53:42]OFD Sender: Processing packet 69368 [packets to send 18, broken 17] [13:53:42]ProducePacketName [13:53:42]name=ofd_packets/00069368 [13:53:42]OFD Sender: To server: pG, [13:53:42]CommunicateWithHost lk.salyk.kg:30040 [13:53:42]ConnectInit lk.salyk.kg [13:53:42]written 0, free lines is 4095 [13:53:42]Connected sock=10 [13:53:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 BB BC 04 01 C7 7D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 64 0B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F8 0E 01 00 35 04 06 00 1D 02 3D 91 19 4C A6 1C 27 D8 4C 1C 87 1D [13:53:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 A1 39 47 00 E8 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F8 0E 01 00 F4 03 04 00 0B B5 14 67 B6 04 01 00 00 C1 0B EE 8A E9 F4 A5 3A [13:53:42]CommunicateWithHost err = 0 [13:53:42]CheckOFDResponse [13:53:42]1017 (14) - 77093643461234 [13:53:42]1041 (16) - 0000000000963346 [13:53:42]1040 (4) - 69368 [13:53:42]1012 (4) - 20.10.2024 07:45 [13:53:42]1206 (1) - 0 [13:53:42]OFD Sender: Remove packet 69368 [13:53:42]ProducePacketName [13:53:42]name=ofd_packets/00069368 [13:53:42]NVStorageDeleteData [13:53:42]Write to MH i2c: 01 00 00 97 05 9C [13:53:42]Write i2c OK [13:53:42]MH_I2C_Read... [13:53:42]Read from MH i2c: 01 [13:53:42]MH_I2C_Read... [13:53:42]Read from MH i2c: 01 07 00 [13:53:42]MH_I2C_Read... [13:53:42]Read from MH i2c: 01 07 00 97 05 00 00 00 00 00 AF 0C 5E [13:53:42]RasterBufferAndPrint [13:53:42]line [13:53:42]line [13:53:42]line [13:53:42]line [13:53:42]line [13:53:42]written 0, free lines is 3253 [13:53:42]MH_Cut [13:53:42]Write to MH i2c: D1 01 00 9E 05 01 75 [13:53:42]Write i2c OK [13:53:42]MH_I2C_Read... [13:53:42]Read from MH i2c: D1 [13:53:42]MH_I2C_Read... [13:53:42]Read from MH i2c: D1 01 00 [13:53:42]MH_I2C_Read... [13:53:42]Read from MH i2c: D1 01 00 9E 05 00 74 [13:53:42]Write to MH i2c: 01 00 00 9F 05 A4 [13:53:42]Write i2c OK [13:53:42]MH_I2C_Read... [13:53:43]OFD Sender: No OFD packet to send [13:53:43]*** Cut start [13:53:43]*** Partial cut [13:53:43]*** CUTSNS_PIN = 1 [13:53:43]*** CUTSNS_PIN = 0 [13:53:43]*** Brake cut motor [13:53:44]Read from MH i2c: 01 [13:53:44]MH_I2C_Read... [13:53:44]*** Stop cut motor [13:53:44]*** Cut end [13:53:44]Read from MH i2c: 01 07 00 [13:53:44]MH_I2C_Read... [13:53:44]Read from MH i2c: 01 07 00 9F 05 00 00 00 00 00 FF 0F B9 [13:53:44]process_action close_receipt done [13:53:44]requested_data is exist [13:53:44]produce_requested_data [13:53:44]requested_item fm.sn is exist - process it [13:53:44]wFMCommunicate request_size=4 [13:53:44]MH_SAM_APDU [13:53:44]CAPDU: 80 11 00 00 [13:53:44]Write to MH i2c: E2 08 00 A0 05 80 11 00 00 00 00 00 00 1F [13:53:44]Write i2c OK [13:53:44]MH_I2C_Read... [13:53:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:44]Read from MH i2c: E2 [13:53:44]MH_I2C_Read... [13:53:44]Read from MH i2c: E2 17 00 [13:53:44]MH_I2C_Read... [13:53:44]Read from MH i2c: E2 17 00 A0 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 71 [13:53:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:53:44]wFMCommunicate OK [13:53:44]requested_item fd.num is exist - process it [13:53:44]SAM_PROTO_GetFieldsCounters [13:53:44]wFMCommunicate request_size=4 [13:53:44]MH_SAM_APDU [13:53:44]CAPDU: 80 13 00 00 [13:53:44]Write to MH i2c: E2 08 00 A1 05 80 13 00 00 00 00 00 00 22 [13:53:44]Write i2c OK [13:53:44]MH_I2C_Read... [13:53:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:53:44]Read from MH i2c: E2 [13:53:44]MH_I2C_Read... [13:53:44]Read from MH i2c: E2 62 00 [13:53:44]MH_I2C_Read... [13:53:44]Read from MH i2c: E2 62 00 A1 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F8 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [13:53:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F8 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:53:44]wFMCommunicate OK [13:53:44]SAM_PROTO_GetFieldsCounters done [13:53:44]requested_item shift.num is exist - process it [13:53:44]requested_item shift.opened is exist - process it [13:53:44]req_shift_opened [13:53:44]FM_GetShiftState [13:53:44]SAM_PROTO_GetShiftState [13:53:44]wFMCommunicate request_size=4 [13:53:44]MH_SAM_APDU [13:53:44]CAPDU: 80 13 01 00 [13:53:44]Write to MH i2c: E2 08 00 A2 05 80 13 01 00 00 00 00 00 24 [13:53:44]Write i2c OK [13:53:44]MH_I2C_Read... [13:53:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:44]Read from MH i2c: E2 [13:53:44]MH_I2C_Read... [13:53:44]Read from MH i2c: E2 0E 00 [13:53:44]MH_I2C_Read... [13:53:44]Read from MH i2c: E2 0E 00 A2 05 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 2A [13:53:44]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [13:53:44]wFMCommunicate OK [13:53:44]SAM_PROTO_GetShiftState done [13:53:44]FM_GetShiftState done [13:53:44]req_shift_opened done [13:53:44]requested_item shift.open_date is exist - process it [13:53:44]req_shift_open_date [13:53:44]req_shift_open_date done [13:53:44]produce_requested_data done [13:53:44]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69368,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [13:53:44]process_action_free close_receipt [13:53:44]json_value_free [13:53:44]json_value_free done [13:53:44]process_json_proto returns [13:53:44]Send response to host [13:53:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69368,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [13:53:44]free response buf [13:53:44]execute_script done [13:53:44]execute_script returns [13:53:44]free content buf [13:53:44]Sock 8.Close socket [13:53:44]Sock 8.Thread stoped [13:53:48]OFD Sender: No OFD packet to send [13:53:53]OFD Sender: No OFD packet to send [13:53:58]OFD Sender: No OFD packet to send [13:54:03]OFD Sender: No OFD packet to send [13:54:08]OFD Sender: No OFD packet to send [13:54:13]OFD Sender: No OFD packet to send [13:54:18]OFD Sender: No OFD packet to send [13:54:23]OFD Sender: No OFD packet to send [13:54:28]OFD Sender: No OFD packet to send [13:54:33]OFD Sender: No OFD packet to send [13:54:38]OFD Sender: No OFD packet to send [13:54:43]OFD Sender: No OFD packet to send [13:54:48]OFD Sender: No OFD packet to send [13:54:51]accept exits with 9 [13:54:51]New connection [13:54:51]New thread 3066568036 created [13:54:51]Thread 3066711396 joined [13:54:51]Waiting for new connection... [13:54:51] Sock 9.Parse request [13:54:51]Sock 9.Check first char [13:54:51]Sock 9.First char is OK [13:54:51]request: POST /json_proto HTTP/1.0 [13:54:51]Method: POST [13:54:51]URL: /json_proto [13:54:51]Method is POST - this is cgi request [13:54:51]url: /json_proto [13:54:51]query_string will be loaded in cgi processing [13:54:51]execute_cgi json_proto POST (null) [13:54:51]execute_cgi path=json_proto method=POST [13:54:51]POST find Content-Length [13:54:51]Host: 172.17.50.3:8080 [13:54:51]Content-Length: 678 [13:54:51]Content-Type: application/json [13:54:51] [13:54:51]POST finish read [13:54:51]Found Content-Length = 678 [13:54:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:51]execute_script... [13:54: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)2885094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:51]POST & json_proto [13:54:51]process_json_proto [13:54:51]json parsed OK: [13:54:51]protocol is kg_v1.0 [13:54:51]action value=close_receipt [13:54:51]process_action close_receipt [13:54:51]cmd_close_receipt [13:54:51]MH_GetDate [13:54:51]Write to MH i2c: F0 00 00 A3 05 97 [13:54:51]Write i2c OK [13:54:51]MH_I2C_Read... [13:54:51]Read from MH i2c: F0 [13:54:51]MH_I2C_Read... [13:54:51]Read from MH i2c: F0 09 00 [13:54:51]MH_I2C_Read... [13:54:51]Read from MH i2c: F0 09 00 A3 05 00 AB 0B 15 67 6B 98 1E 66 59 [13:54:51]GetLastDocTimeStamp 1729432420 [13:54:51]current date 1729432491 [13:54:51]FM_GetShiftState [13:54:51]SAM_PROTO_GetShiftState [13:54:51]wFMCommunicate request_size=4 [13:54:51]MH_SAM_APDU [13:54:51]CAPDU: 80 13 01 00 [13:54:51]Write to MH i2c: E2 08 00 A4 05 80 13 01 00 00 00 00 00 26 [13:54:51]Write i2c OK [13:54:51]MH_I2C_Read... [13:54:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:51]Read from MH i2c: E2 [13:54:51]MH_I2C_Read... [13:54:51]Read from MH i2c: E2 0E 00 [13:54:51]MH_I2C_Read... [13:54:51]Read from MH i2c: E2 0E 00 A4 05 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 2C [13:54:51]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [13:54:51]wFMCommunicate OK [13:54:51]SAM_PROTO_GetShiftState done [13:54:51]FM_GetShiftState done [13:54:51]opened in 1729383220 [13:54:51]opened+sec_in_day 1729469620 [13:54:51]quantity*price = 50041 [13:54:51]sum+1 = 50042 [13:54:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 214 20.10.2024 13:54 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69369 ФПД: 261056481825833 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135451&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69369&fm=261056481825833&tin=02508201610067®Number=0000000000156251&sum=50000 [13:54:52]StoreToDocumentArchive [13:54:52]shift 193 fd 69369 [13:54:52]save to /storage/0193/doc_00069369 [13:54:52]save last doc name /storage/0193/doc_00069369 to /storage/kkm_last_doc_name [13:54:52]save OK [13:54:52]Clear old archive folders... [13:54:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:54:52]tlvbuf is 0025DEE0 [13:54:52]SAM_PROTO_ClearQueue [13:54:52]wFMCommunicate request_size=4 [13:54:52]MH_SAM_APDU [13:54:52]CAPDU: 80 09 00 00 [13:54:52]Write to MH i2c: E2 08 00 B1 05 80 09 00 00 00 00 00 00 28 [13:54:52]Write i2c OK [13:54:52]MH_I2C_Read... [13:54:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:54:52]Read from MH i2c: E2 [13:54:52]MH_I2C_Read... [13:54:52]Read from MH i2c: E2 03 00 [13:54:52]MH_I2C_Read... [13:54:52]Read from MH i2c: E2 03 00 B1 05 00 90 00 2A [13:54:52]RAPDU: 90 00 [13:54:52]wFMCommunicate OK [13:54:52]SAM_PROTO_ClearQueue done [13:54:52]KKMCreateOFDPacket [13:54:52]OFDProtocolAddRootSTLVToBuf [13:54:52]FM_MakeSignedData [13:54:52]FM_MakeSignedData [13:54:52]SAM_PROTO_SignData [13:54:52]wFMCommunicate request_size=4 [13:54:52]MH_SAM_APDU [13:54:52]CAPDU: 80 0D 01 02 [13:54:52]Write to MH i2c: E2 08 00 B2 05 80 0D 01 02 00 00 00 00 30 [13:54:52]Write i2c OK [13:54:52]MH_I2C_Read... [13:54:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:54:52]Read from MH i2c: E2 [13:54:52]MH_I2C_Read... [13:54:52]Read from MH i2c: E2 03 00 [13:54:52]MH_I2C_Read... [13:54:52]Read from MH i2c: E2 03 00 B2 05 00 90 00 2B [13:54:52]RAPDU: 90 00 [13:54:52]wFMCommunicate OK [13:54:52]wFMCommunicate request_size=255 [13:54:52]MH_SAM_APDU [13:54:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 AB 0B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F9 0E 01 00 35 04 06 00 ED [13:54:52]Write to MH i2c: E2 02 01 B3 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 AB 0B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F9 0E 01 00 35 04 06 00 ED 00 00 77 [13:54:52]Write i2c OK [13:54:52]MH_I2C_Read... [13:54:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:52]Read from MH i2c: E2 [13:54:52]MH_I2C_Read... [13:54:52]Read from MH i2c: E2 03 00 [13:54:52]MH_I2C_Read... [13:54:52]Read from MH i2c: E2 03 00 B3 05 00 90 00 2C [13:54:52]RAPDU: 90 00 [13:54:52]wFMCommunicate OK [13:54:52]wFMCommunicate request_size=10 [13:54:52]MH_SAM_APDU [13:54:52]CAPDU: 80 0D 02 02 05 6D F2 DD 94 29 [13:54:52]Write to MH i2c: E2 0D 00 B4 05 80 0D 02 02 05 00 6D F2 DD 94 29 00 00 36 [13:54:52]Write i2c OK [13:54:52]MH_I2C_Read... [13:54:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:52]Read from MH i2c: E2 [13:54:52]MH_I2C_Read... [13:54:52]Read from MH i2c: E2 03 00 [13:54:52]MH_I2C_Read... [13:54:52]Read from MH i2c: E2 03 00 B4 05 00 90 00 2D [13:54:52]RAPDU: 90 00 [13:54:52]wFMCommunicate OK [13:54:52]wFMCommunicate request_size=4 [13:54:52]MH_SAM_APDU [13:54:52]CAPDU: 80 0D 03 02 [13:54:52]Write to MH i2c: E2 08 00 B5 05 80 0D 03 02 00 00 00 00 35 [13:54:52]Write i2c OK [13:54:52]MH_I2C_Read... [13:54:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:54:52]Read from MH i2c: E2 [13:54:52]MH_I2C_Read... [13:54:52]Read from MH i2c: E2 0B 00 [13:54:52]MH_I2C_Read... [13:54:52]Read from MH i2c: E2 0B 00 B5 05 00 FA FB 28 7A AB 9B C2 D1 90 00 A6 [13:54:52]RAPDU: FA FB 28 7A AB 9B C2 D1 90 00 [13:54:52]wFMCommunicate OK [13:54:52]SAM_PROTO_SignData done [13:54:52]FM_MakeSignedData done [13:54:52]CreateOFDProtocolMessage [13:54:52]wFMCommunicate request_size=4 [13:54:52]MH_SAM_APDU [13:54:52]CAPDU: 80 11 00 00 [13:54:52]Write to MH i2c: E2 08 00 B6 05 80 11 00 00 00 00 00 00 35 [13:54:52]Write i2c OK [13:54:52]MH_I2C_Read... [13:54:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:52]Read from MH i2c: E2 [13:54:52]MH_I2C_Read... [13:54:52]Read from MH i2c: E2 17 00 [13:54:52]MH_I2C_Read... [13:54:52]Read from MH i2c: E2 17 00 B6 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 87 [13:54:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:54:52]wFMCommunicate OK [13:54:52]CreateOFDProtocolMessage done [13:54:52]OFDSenderStorePacket 69369 [13:54:52]StoreOFDPacket docnum=69369 [13:54:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 61 69 07 01 61 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 AB 0B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F9 0E 01 00 35 04 06 00 ED 6D F2 DD 94 29 FA FB 28 7A AB 9B C2 D1 [13:54:52]CheckFolder [13:54:52]dirname=/storage/ofd_packets [13:54:52]CheckFolder done [13:54:52]ProducePacketName [13:54:52]name=ofd_packets/00069369 [13:54:52]NVStorageSaveData ofd_packets/00069369 [13:54:52]File name is /storage/ofd_packets/00069369 [13:54:52]Write 301 bytes [13:54:52]NVStorageSaveData done [13:54:52]OFDSenderStorePacket done [13:54:52]KKMCreateOFDPacket done [13:54:52]NVStorageSaveData kkm_last_timestamp [13:54:52]File name is /storage/kkm_last_timestamp [13:54:52]Write 4 bytes [13:54:52]NVStorageSaveData done [13:54:52]ExternCall_PrintAddStr [13:54:52]wPrintStart [13:54:52]Write to MH i2c: 01 00 00 B7 05 BC [13:54:52]Write i2c OK [13:54:52]MH_I2C_Read... [13:54:52]Read from MH i2c: 01 [13:54:52]MH_I2C_Read... [13:54:52]Read from MH i2c: 01 07 00 [13:54:52]MH_I2C_Read... [13:54:52]Read from MH i2c: 01 07 00 B7 05 00 00 00 00 00 FF 0F D1 [13:54:52]RasterBufferAndPrint [13:54:52]line Счет N : (1)2885094 [13:54:52]line ИНН: 02508201610067 [13:54:52]line Контрольно-Кассовый Чек [13:54:52]line ПРОДАЖА [13:54:52]line ТРК (МРК, ГНК) : 12 [13:54:52]line Товар: 2710124130 [13:54:52]line Аи-92-К-5 [13:54:52]line 7.480 * 66.90 [13:54:52]line = 500.41 [13:54:52]line НДС 12% НСП 1% [13:54:52]line > о реализуемом товаре [13:54:52]line ОКРУГЛЕНИЕ: -0.41 [13:54:52]line ИТОГО: 500.00 [13:54:52]line Внесено: 500.00 [13:54:52]line СДАЧА: 0.00 [13:54:52]line НСП 1% : 4.43 [13:54:52]line НДС 12% : 53.14 [13:54:52]line Наличными: 500.00 [13:54:52]line Безнал.: 0.00 [13:54:52]line Место: АЗС № 85 "Партнер Нефть" [13:54:52]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:54:52]line СНО: Общий режим [13:54:52]line Чек 214 20.10.2024 13:54 [13:54:52]line Смена: 193 ФФД: 1.0 [13:54:52]line ЗНМ: 0300000167 [13:54:52]line РНМ: 0000000000156251 [13:54:52]line Версия ККМ: v1.0 [13:54:52]line ФМ: 0000000000963346 [13:54:52]line ФД: 69369 [13:54:52]line ФПД: 261056481825833 [13:54:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135451&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69369&fm=261056481825833&tin=02508201610067®Number=0000000000156251&sum=50000 [13:54:53]OFD Sender: Processing packet 69369 [packets to send 18, broken 17] [13:54:53]ProducePacketName [13:54:53]name=ofd_packets/00069369 [13:54:53]OFD Sender: To server: pG, [13:54:53]CommunicateWithHost lk.salyk.kg:30040 [13:54:53]ConnectInit lk.salyk.kg [13:54:53]written 0, free lines is 4095 [13:54:53]Connected sock=10 [13:54:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 61 69 07 01 61 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 AB 0B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F9 0E 01 00 35 04 06 00 ED 6D F2 DD 94 29 FA FB 28 7A AB 9B C2 D1 [13:54:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 58 FA 47 00 D7 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F9 0E 01 00 F4 03 04 00 52 B5 14 67 B6 04 01 00 00 EF 4C 02 49 72 72 C2 8A [13:54:53]CommunicateWithHost err = 0 [13:54:53]CheckOFDResponse [13:54:53]1017 (14) - 77093643461234 [13:54:53]1041 (16) - 0000000000963346 [13:54:53]1040 (4) - 69369 [13:54:53]1012 (4) - 20.10.2024 07:46 [13:54:53]1206 (1) - 0 [13:54:53]OFD Sender: Remove packet 69369 [13:54:53]ProducePacketName [13:54:53]name=ofd_packets/00069369 [13:54:53]NVStorageDeleteData [13:54:53]Write to MH i2c: 01 00 00 E2 05 E7 [13:54:53]Write i2c OK [13:54:53]MH_I2C_Read... [13:54:53]Read from MH i2c: 01 [13:54:53]MH_I2C_Read... [13:54:53]Read from MH i2c: 01 07 00 [13:54:53]MH_I2C_Read... [13:54:53]Read from MH i2c: 01 07 00 E2 05 00 00 00 00 00 EE 0C E8 [13:54:53]RasterBufferAndPrint [13:54:53]line [13:54:53]line [13:54:53]line [13:54:53]line [13:54:53]line [13:54:53]written 0, free lines is 3317 [13:54:53]MH_Cut [13:54:53]Write to MH i2c: D1 01 00 E9 05 01 C0 [13:54:53]Write i2c OK [13:54:53]MH_I2C_Read... [13:54:53]Read from MH i2c: D1 [13:54:53]MH_I2C_Read... [13:54:53]Read from MH i2c: D1 01 00 [13:54:53]MH_I2C_Read... [13:54:53]Read from MH i2c: D1 01 00 E9 05 00 BF [13:54:53]Write to MH i2c: 01 00 00 EA 05 EF [13:54:53]Write i2c OK [13:54:53]MH_I2C_Read... [13:54:54]OFD Sender: No OFD packet to send [13:54:54]*** Cut start [13:54:54]*** Partial cut [13:54:54]*** CUTSNS_PIN = 1 [13:54:54]*** CUTSNS_PIN = 0 [13:54:54]*** Brake cut motor [13:54:55]Read from MH i2c: 01 [13:54:55]MH_I2C_Read... [13:54:55]*** Stop cut motor [13:54:55]*** Cut end [13:54:55]Read from MH i2c: 01 07 00 [13:54:55]MH_I2C_Read... [13:54:55]Read from MH i2c: 01 07 00 EA 05 00 00 00 00 00 FF 0F 04 [13:54:55]process_action close_receipt done [13:54:55]requested_data is exist [13:54:55]produce_requested_data [13:54:55]requested_item fm.sn is exist - process it [13:54:55]wFMCommunicate request_size=4 [13:54:55]MH_SAM_APDU [13:54:55]CAPDU: 80 11 00 00 [13:54:55]Write to MH i2c: E2 08 00 EB 05 80 11 00 00 00 00 00 00 6A [13:54:55]Write i2c OK [13:54:55]MH_I2C_Read... [13:54:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:55]Read from MH i2c: E2 [13:54:55]MH_I2C_Read... [13:54:55]Read from MH i2c: E2 17 00 [13:54:55]MH_I2C_Read... [13:54:55]Read from MH i2c: E2 17 00 EB 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BC [13:54:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:54:55]wFMCommunicate OK [13:54:55]requested_item fd.num is exist - process it [13:54:55]SAM_PROTO_GetFieldsCounters [13:54:55]wFMCommunicate request_size=4 [13:54:55]MH_SAM_APDU [13:54:55]CAPDU: 80 13 00 00 [13:54:55]Write to MH i2c: E2 08 00 EC 05 80 13 00 00 00 00 00 00 6D [13:54:55]Write i2c OK [13:54:55]MH_I2C_Read... [13:54:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:54:55]Read from MH i2c: E2 [13:54:55]MH_I2C_Read... [13:54:55]Read from MH i2c: E2 62 00 [13:54:55]MH_I2C_Read... [13:54:55]Read from MH i2c: E2 62 00 EC 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F9 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [13:54:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F9 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:54:55]wFMCommunicate OK [13:54:55]SAM_PROTO_GetFieldsCounters done [13:54:55]requested_item shift.num is exist - process it [13:54:55]requested_item shift.opened is exist - process it [13:54:55]req_shift_opened [13:54:55]FM_GetShiftState [13:54:55]SAM_PROTO_GetShiftState [13:54:55]wFMCommunicate request_size=4 [13:54:55]MH_SAM_APDU [13:54:55]CAPDU: 80 13 01 00 [13:54:55]Write to MH i2c: E2 08 00 ED 05 80 13 01 00 00 00 00 00 6F [13:54:55]Write i2c OK [13:54:55]MH_I2C_Read... [13:54:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:55]Read from MH i2c: E2 [13:54:55]MH_I2C_Read... [13:54:55]Read from MH i2c: E2 0E 00 [13:54:55]MH_I2C_Read... [13:54:55]Read from MH i2c: E2 0E 00 ED 05 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 75 [13:54:55]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [13:54:55]wFMCommunicate OK [13:54:55]SAM_PROTO_GetShiftState done [13:54:55]FM_GetShiftState done [13:54:55]req_shift_opened done [13:54:55]requested_item shift.open_date is exist - process it [13:54:55]req_shift_open_date [13:54:55]req_shift_open_date done [13:54:55]produce_requested_data done [13:54:55]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69369,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [13:54:55]process_action_free close_receipt [13:54:55]json_value_free [13:54:55]json_value_free done [13:54:55]process_json_proto returns [13:54:55]Send response to host [13:54:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69369,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [13:54:55]free response buf [13:54:55]execute_script done [13:54:55]execute_script returns [13:54:55]free content buf [13:54:55]Sock 9.Close socket [13:54:55]Sock 9.Thread stoped [13:54:58]accept exits with 8 [13:54:58]New connection [13:54:58]New thread 3066711396 created [13:54:58]Thread 3066568036 joined [13:54:58]Waiting for new connection... [13:54:58] Sock 8.Parse request [13:54:58]Sock 8.Check first char [13:54:58]Sock 8.First char is OK [13:54:58]request: POST /json_proto HTTP/1.0 [13:54:58]Method: POST [13:54:58]URL: /json_proto [13:54:58]Method is POST - this is cgi request [13:54:58]url: /json_proto [13:54:58]query_string will be loaded in cgi processing [13:54:58]execute_cgi json_proto POST (null) [13:54:58]execute_cgi path=json_proto method=POST [13:54:58]POST find Content-Length [13:54:58]Host: 172.17.50.3:8080 [13:54:58]Content-Length: 678 [13:54:58]Content-Type: application/json [13:54:58] [13:54:58]POST finish read [13:54:58]Found Content-Length = 678 [13:54:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 3.370, "sum" : 250.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:58]execute_script... [13:54: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)2885095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 3.370, "sum" : 250.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:58]POST & json_proto [13:54:58]process_json_proto [13:54:58]json parsed OK: [13:54:58]protocol is kg_v1.0 [13:54:58]action value=close_receipt [13:54:58]process_action close_receipt [13:54:58]cmd_close_receipt [13:54:58]MH_GetDate [13:54:58]Write to MH i2c: F0 00 00 EE 05 E2 [13:54:58]Write i2c OK [13:54:58]MH_I2C_Read... [13:54:58]Read from MH i2c: F0 [13:54:58]MH_I2C_Read... [13:54:58]Read from MH i2c: F0 09 00 [13:54:58]MH_I2C_Read... [13:54:58]Read from MH i2c: F0 09 00 EE 05 00 B2 0B 15 67 6B 98 1E 66 AB [13:54:58]GetLastDocTimeStamp 1729432491 [13:54:58]current date 1729432498 [13:54:58]FM_GetShiftState [13:54:58]SAM_PROTO_GetShiftState [13:54:58]wFMCommunicate request_size=4 [13:54:58]MH_SAM_APDU [13:54:58]CAPDU: 80 13 01 00 [13:54:58]Write to MH i2c: E2 08 00 EF 05 80 13 01 00 00 00 00 00 71 [13:54:58]Write i2c OK [13:54:58]MH_I2C_Read... [13:54:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:58]Read from MH i2c: E2 [13:54:58]MH_I2C_Read... [13:54:58]Read from MH i2c: E2 0E 00 [13:54:58]MH_I2C_Read... [13:54:58]Read from MH i2c: E2 0E 00 EF 05 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 77 [13:54:58]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [13:54:58]wFMCommunicate OK [13:54:58]SAM_PROTO_GetShiftState done [13:54:58]FM_GetShiftState done [13:54:58]opened in 1729383220 [13:54:58]opened+sec_in_day 1729469620 [13:54:58]quantity*price = 25005 [13:54:58]sum+1 = 25006 [13:54:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 215 20.10.2024 13:54 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69370 ФПД: 264668795855974 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135458&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69370&fm=264668795855974&tin=02508201610067®Number=0000000000156251&sum=25000 [13:54:59]StoreToDocumentArchive [13:54:59]shift 193 fd 69370 [13:54:59]save to /storage/0193/doc_00069370 [13:54:59]save last doc name /storage/0193/doc_00069370 to /storage/kkm_last_doc_name [13:54:59]save OK [13:54:59]Clear old archive folders... [13:54:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:54:59]tlvbuf is 002085D0 [13:54:59]SAM_PROTO_ClearQueue [13:54:59]wFMCommunicate request_size=4 [13:54:59]MH_SAM_APDU [13:54:59]CAPDU: 80 09 00 00 [13:54:59]Write to MH i2c: E2 08 00 FC 05 80 09 00 00 00 00 00 00 73 [13:54:59]Write i2c OK [13:54:59]MH_I2C_Read... [13:54:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:54:59]Read from MH i2c: E2 [13:54:59]MH_I2C_Read... [13:54:59]Read from MH i2c: E2 03 00 [13:54:59]MH_I2C_Read... [13:54:59]Read from MH i2c: E2 03 00 FC 05 00 90 00 75 [13:54:59]RAPDU: 90 00 [13:54:59]wFMCommunicate OK [13:54:59]SAM_PROTO_ClearQueue done [13:54:59]KKMCreateOFDPacket [13:54:59]OFDProtocolAddRootSTLVToBuf [13:54:59]FM_MakeSignedData [13:54:59]FM_MakeSignedData [13:54:59]SAM_PROTO_SignData [13:54:59]wFMCommunicate request_size=4 [13:54:59]MH_SAM_APDU [13:54:59]CAPDU: 80 0D 01 02 [13:54:59]Write to MH i2c: E2 08 00 FD 05 80 0D 01 02 00 00 00 00 7B [13:54:59]Write i2c OK [13:54:59]MH_I2C_Read... [13:54:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:54:59]Read from MH i2c: E2 [13:54:59]MH_I2C_Read... [13:54:59]Read from MH i2c: E2 03 00 [13:54:59]MH_I2C_Read... [13:54:59]Read from MH i2c: E2 03 00 FD 05 00 90 00 76 [13:54:59]RAPDU: 90 00 [13:54:59]wFMCommunicate OK [13:54:59]wFMCommunicate request_size=255 [13:54:59]MH_SAM_APDU [13:54: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2A 0D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 AD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 B2 0B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FA 0E 01 00 35 04 06 00 F0 [13:54:59]Write to MH i2c: E2 02 01 FE 05 80 0D 02 02 FA 00 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 2A 0D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 AD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 B2 0B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FA 0E 01 00 35 04 06 00 F0 00 00 02 [13:54:59]Write i2c OK [13:54:59]MH_I2C_Read... [13:55:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:00]Read from MH i2c: E2 [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: E2 03 00 [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: E2 03 00 FE 05 00 90 00 77 [13:55:00]RAPDU: 90 00 [13:55:00]wFMCommunicate OK [13:55:00]wFMCommunicate request_size=10 [13:55:00]MH_SAM_APDU [13:55:00]CAPDU: 80 0D 02 02 05 B7 01 8F 64 66 [13:55:00]Write to MH i2c: E2 0D 00 FF 05 80 0D 02 02 05 00 B7 01 8F 64 66 00 00 99 [13:55:00]Write i2c OK [13:55:00]MH_I2C_Read... [13:55:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:00]Read from MH i2c: E2 [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: E2 03 00 [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: E2 03 00 FF 05 00 90 00 78 [13:55:00]RAPDU: 90 00 [13:55:00]wFMCommunicate OK [13:55:00]wFMCommunicate request_size=4 [13:55:00]MH_SAM_APDU [13:55:00]CAPDU: 80 0D 03 02 [13:55:00]Write to MH i2c: E2 08 00 00 06 80 0D 03 02 00 00 00 00 81 [13:55:00]Write i2c OK [13:55:00]MH_I2C_Read... [13:55:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:00]Read from MH i2c: E2 [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: E2 0B 00 [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: E2 0B 00 00 06 00 B6 C8 F9 6A B0 FF 49 AC 90 00 07 [13:55:00]RAPDU: B6 C8 F9 6A B0 FF 49 AC 90 00 [13:55:00]wFMCommunicate OK [13:55:00]SAM_PROTO_SignData done [13:55:00]FM_MakeSignedData done [13:55:00]CreateOFDProtocolMessage [13:55:00]wFMCommunicate request_size=4 [13:55:00]MH_SAM_APDU [13:55:00]CAPDU: 80 11 00 00 [13:55:00]Write to MH i2c: E2 08 00 01 06 80 11 00 00 00 00 00 00 81 [13:55:00]Write i2c OK [13:55:00]MH_I2C_Read... [13:55:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:00]Read from MH i2c: E2 [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: E2 17 00 [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: E2 17 00 01 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D3 [13:55:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:55:00]wFMCommunicate OK [13:55:00]CreateOFDProtocolMessage done [13:55:00]OFDSenderStorePacket 69370 [13:55:00]StoreOFDPacket docnum=69370 [13:55:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 64 C5 07 01 CB 5B 5A 03 01 00 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 2A 0D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 AD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 B2 0B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FA 0E 01 00 35 04 06 00 F0 B7 01 8F 64 66 B6 C8 F9 6A B0 FF 49 AC [13:55:00]CheckFolder [13:55:00]dirname=/storage/ofd_packets [13:55:00]CheckFolder done [13:55:00]ProducePacketName [13:55:00]name=ofd_packets/00069370 [13:55:00]NVStorageSaveData ofd_packets/00069370 [13:55:00]File name is /storage/ofd_packets/00069370 [13:55:00]Write 301 bytes [13:55:00]NVStorageSaveData done [13:55:00]OFDSenderStorePacket done [13:55:00]KKMCreateOFDPacket done [13:55:00]NVStorageSaveData kkm_last_timestamp [13:55:00]File name is /storage/kkm_last_timestamp [13:55:00]Write 4 bytes [13:55:00]NVStorageSaveData done [13:55:00]ExternCall_PrintAddStr [13:55:00]wPrintStart [13:55:00]Write to MH i2c: 01 00 00 02 06 08 [13:55:00]Write i2c OK [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: 01 [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: 01 07 00 [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: 01 07 00 02 06 00 00 00 00 00 FF 0F 1D [13:55:00]RasterBufferAndPrint [13:55:00]line Счет N : (1)2885095 [13:55:00]line ИНН: 02508201610067 [13:55:00]line Контрольно-Кассовый Чек [13:55:00]line ПРОДАЖА [13:55:00]line ТРК (МРК, ГНК) : 33 [13:55:00]line Товар: 2710124500 [13:55:00]line Аи-95-К-5 [13:55:00]line 3.370 * 74.20 [13:55:00]line = 250.05 [13:55:00]line НДС 12% НСП 1% [13:55:00]line > о реализуемом товаре [13:55:00]line ОКРУГЛЕНИЕ: -0.05 [13:55:00]line ИТОГО: 250.00 [13:55:00]line Внесено: 250.00 [13:55:00]line СДАЧА: 0.00 [13:55:00]line НСП 1% : 2.21 [13:55:00]line НДС 12% : 26.55 [13:55:00]line Наличными: 250.00 [13:55:00]line Безнал.: 0.00 [13:55:00]line Место: АЗС № 85 "Партнер Нефть" [13:55:00]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:55:00]line СНО: Общий режим [13:55:00]line Чек 215 20.10.2024 13:54 [13:55:00]line Смена: 193 ФФД: 1.0 [13:55:00]line ЗНМ: 0300000167 [13:55:00]line РНМ: 0000000000156251 [13:55:00]line Версия ККМ: v1.0 [13:55:00]line ФМ: 0000000000963346 [13:55:00]line ФД: 69370 [13:55:00]line ФПД: 264668795855974 [13:55:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135458&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69370&fm=264668795855974&tin=02508201610067®Number=0000000000156251&sum=25000 [13:55:00]written 0, free lines is 4095 [13:55:00]OFD Sender: Processing packet 69370 [packets to send 18, broken 17] [13:55:00]ProducePacketName [13:55:00]name=ofd_packets/00069370 [13:55:00]OFD Sender: To server: pG, [13:55:00]CommunicateWithHost lk.salyk.kg:30040 [13:55:00]ConnectInit lk.salyk.kg [13:55:00]Connected sock=10 [13:55:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 64 C5 07 01 CB 5B 5A 03 01 00 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 2A 0D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 AD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 B2 0B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FA 0E 01 00 35 04 06 00 F0 B7 01 8F 64 66 B6 C8 F9 6A B0 FF 49 AC [13:55:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 B7 CB 47 00 49 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FA 0E 01 00 F4 03 04 00 59 B5 14 67 B6 04 01 00 00 5C C3 51 CC E6 5E C1 07 [13:55:00]CommunicateWithHost err = 0 [13:55:00]CheckOFDResponse [13:55:00]1017 (14) - 77093643461234 [13:55:00]1041 (16) - 0000000000963346 [13:55:00]1040 (4) - 69370 [13:55:00]1012 (4) - 20.10.2024 07:46 [13:55:00]1206 (1) - 0 [13:55:00]OFD Sender: Remove packet 69370 [13:55:00]ProducePacketName [13:55:00]name=ofd_packets/00069370 [13:55:00]NVStorageDeleteData [13:55:00]Write to MH i2c: 01 00 00 2D 06 33 [13:55:00]Write i2c OK [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: 01 [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: 01 07 00 [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: 01 07 00 2D 06 00 00 00 00 00 11 0D 58 [13:55:00]RasterBufferAndPrint [13:55:00]line [13:55:00]line [13:55:00]line [13:55:00]line [13:55:00]line [13:55:00]written 0, free lines is 3357 [13:55:00]MH_Cut [13:55:00]Write to MH i2c: D1 01 00 34 06 01 0C [13:55:00]Write i2c OK [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: D1 [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: D1 01 00 [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: D1 01 00 34 06 00 0B [13:55:00]Write to MH i2c: 01 00 00 35 06 3B [13:55:00]Write i2c OK [13:55:00]MH_I2C_Read... [13:55:01]OFD Sender: No OFD packet to send [13:55:01]*** Cut start [13:55:01]*** Partial cut [13:55:01]*** CUTSNS_PIN = 1 [13:55:01]*** CUTSNS_PIN = 0 [13:55:01]*** Brake cut motor [13:55:02]Read from MH i2c: 01 [13:55:02]MH_I2C_Read... [13:55:02]*** Stop cut motor [13:55:02]*** Cut end [13:55:02]Read from MH i2c: 01 07 00 [13:55:02]MH_I2C_Read... [13:55:02]Read from MH i2c: 01 07 00 35 06 00 00 00 00 00 FF 0F 50 [13:55:02]process_action close_receipt done [13:55:02]requested_data is exist [13:55:02]produce_requested_data [13:55:02]requested_item fm.sn is exist - process it [13:55:02]wFMCommunicate request_size=4 [13:55:02]MH_SAM_APDU [13:55:02]CAPDU: 80 11 00 00 [13:55:02]Write to MH i2c: E2 08 00 36 06 80 11 00 00 00 00 00 00 B6 [13:55:02]Write i2c OK [13:55:02]MH_I2C_Read... [13:55:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:02]Read from MH i2c: E2 [13:55:02]MH_I2C_Read... [13:55:02]Read from MH i2c: E2 17 00 [13:55:02]MH_I2C_Read... [13:55:02]Read from MH i2c: E2 17 00 36 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 08 [13:55:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:55:02]wFMCommunicate OK [13:55:02]requested_item fd.num is exist - process it [13:55:02]SAM_PROTO_GetFieldsCounters [13:55:02]wFMCommunicate request_size=4 [13:55:02]MH_SAM_APDU [13:55:02]CAPDU: 80 13 00 00 [13:55:02]Write to MH i2c: E2 08 00 37 06 80 13 00 00 00 00 00 00 B9 [13:55:02]Write i2c OK [13:55:02]MH_I2C_Read... [13:55:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:02]Read from MH i2c: E2 [13:55:02]MH_I2C_Read... [13:55:02]Read from MH i2c: E2 62 00 [13:55:02]MH_I2C_Read... [13:55:02]Read from MH i2c: E2 62 00 37 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FA 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [13:55:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FA 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:55:02]wFMCommunicate OK [13:55:02]SAM_PROTO_GetFieldsCounters done [13:55:02]requested_item shift.num is exist - process it [13:55:02]requested_item shift.opened is exist - process it [13:55:02]req_shift_opened [13:55:02]FM_GetShiftState [13:55:02]SAM_PROTO_GetShiftState [13:55:02]wFMCommunicate request_size=4 [13:55:02]MH_SAM_APDU [13:55:02]CAPDU: 80 13 01 00 [13:55:02]Write to MH i2c: E2 08 00 38 06 80 13 01 00 00 00 00 00 BB [13:55:02]Write i2c OK [13:55:02]MH_I2C_Read... [13:55:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:02]Read from MH i2c: E2 [13:55:02]MH_I2C_Read... [13:55:02]Read from MH i2c: E2 0E 00 [13:55:02]MH_I2C_Read... [13:55:02]Read from MH i2c: E2 0E 00 38 06 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 C1 [13:55:02]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [13:55:02]wFMCommunicate OK [13:55:02]SAM_PROTO_GetShiftState done [13:55:02]FM_GetShiftState done [13:55:02]req_shift_opened done [13:55:02]requested_item shift.open_date is exist - process it [13:55:02]req_shift_open_date [13:55:02]req_shift_open_date done [13:55:02]produce_requested_data done [13:55:02]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69370,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [13:55:02]process_action_free close_receipt [13:55:02]json_value_free [13:55:02]json_value_free done [13:55:02]process_json_proto returns [13:55:02]Send response to host [13:55:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69370,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [13:55:02]free response buf [13:55:02]execute_script done [13:55:02]execute_script returns [13:55:02]free content buf [13:55:02]Sock 8.Close socket [13:55:02]Sock 8.Thread stoped [13:55:02]accept exits with 9 [13:55:02]New connection [13:55:02]New thread 3066568036 created [13:55:02]Thread 3066711396 joined [13:55:02]Waiting for new connection... [13:55:02] Sock 9.Parse request [13:55:02]Sock 9.Check first char [13:55:02]Sock 9.First char is OK [13:55:02]request: POST /json_proto HTTP/1.0 [13:55:02]Method: POST [13:55:02]URL: /json_proto [13:55:02]Method is POST - this is cgi request [13:55:02]url: /json_proto [13:55:02]query_string will be loaded in cgi processing [13:55:02]execute_cgi json_proto POST (null) [13:55:02]execute_cgi path=json_proto method=POST [13:55:02]POST find Content-Length [13:55:02]Host: 172.17.50.3:8080 [13:55:02]Content-Length: 684 [13:55:02]Content-Type: application/json [13:55:02] [13:55:02]POST finish read [13:55:02]Found Content-Length = 684 [13:55:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 7.780, "sum" : 600.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:02]execute_script... [13:55:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 7.780, "sum" : 600.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:02]POST & json_proto [13:55:02]process_json_proto [13:55:02]json parsed OK: [13:55:02]protocol is kg_v1.0 [13:55:02]action value=close_receipt [13:55:02]process_action close_receipt [13:55:02]cmd_close_receipt [13:55:02]MH_GetDate [13:55:02]Write to MH i2c: F0 00 00 39 06 2E [13:55:02]Write i2c OK [13:55:02]MH_I2C_Read... [13:55:02]Read from MH i2c: F0 [13:55:02]MH_I2C_Read... [13:55:02]Read from MH i2c: F0 09 00 [13:55:02]MH_I2C_Read... [13:55:02]Read from MH i2c: F0 09 00 39 06 00 B7 0B 15 67 6B 98 1E 66 FC [13:55:02]GetLastDocTimeStamp 1729432498 [13:55:02]current date 1729432503 [13:55:02]FM_GetShiftState [13:55:02]SAM_PROTO_GetShiftState [13:55:02]wFMCommunicate request_size=4 [13:55:02]MH_SAM_APDU [13:55:02]CAPDU: 80 13 01 00 [13:55:02]Write to MH i2c: E2 08 00 3A 06 80 13 01 00 00 00 00 00 BD [13:55:02]Write i2c OK [13:55:02]MH_I2C_Read... [13:55:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:02]Read from MH i2c: E2 [13:55:02]MH_I2C_Read... [13:55:02]Read from MH i2c: E2 0E 00 [13:55:02]MH_I2C_Read... [13:55:02]Read from MH i2c: E2 0E 00 3A 06 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 C3 [13:55:02]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [13:55:02]wFMCommunicate OK [13:55:02]SAM_PROTO_GetShiftState done [13:55:02]FM_GetShiftState done [13:55:02]opened in 1729383220 [13:55:02]opened+sec_in_day 1729469620 [13:55:02]quantity*price = 60061 [13:55:02]sum+1 = 60063 [13:55:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 216 20.10.2024 13:55 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69371 ФПД: 156745736328131 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135503&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69371&fm=156745736328131&tin=02508201610067®Number=0000000000156251&sum=60000 [13:55:03]StoreToDocumentArchive [13:55:03]shift 193 fd 69371 [13:55:03]save to /storage/0193/doc_00069371 [13:55:03]save last doc name /storage/0193/doc_00069371 to /storage/kkm_last_doc_name [13:55:03]save OK [13:55:03]Clear old archive folders... [13:55:03]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:55:03]tlvbuf is 0021CFA0 [13:55:03]SAM_PROTO_ClearQueue [13:55:03]wFMCommunicate request_size=4 [13:55:03]MH_SAM_APDU [13:55:03]CAPDU: 80 09 00 00 [13:55:03]Write to MH i2c: E2 08 00 47 06 80 09 00 00 00 00 00 00 BF [13:55:03]Write i2c OK [13:55:03]MH_I2C_Read... [13:55:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:03]Read from MH i2c: E2 [13:55:03]MH_I2C_Read... [13:55:03]Read from MH i2c: E2 03 00 [13:55:03]MH_I2C_Read... [13:55:03]Read from MH i2c: E2 03 00 47 06 00 90 00 C1 [13:55:03]RAPDU: 90 00 [13:55:03]wFMCommunicate OK [13:55:03]SAM_PROTO_ClearQueue done [13:55:03]KKMCreateOFDPacket [13:55:03]OFDProtocolAddRootSTLVToBuf [13:55:03]FM_MakeSignedData [13:55:03]FM_MakeSignedData [13:55:03]SAM_PROTO_SignData [13:55:03]wFMCommunicate request_size=4 [13:55:03]MH_SAM_APDU [13:55:03]CAPDU: 80 0D 01 02 [13:55:03]Write to MH i2c: E2 08 00 48 06 80 0D 01 02 00 00 00 00 C7 [13:55:03]Write i2c OK [13:55:03]MH_I2C_Read... [13:55:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:03]Read from MH i2c: E2 [13:55:03]MH_I2C_Read... [13:55:03]Read from MH i2c: E2 03 00 [13:55:03]MH_I2C_Read... [13:55:03]Read from MH i2c: E2 03 00 48 06 00 90 00 C2 [13:55:03]RAPDU: 90 00 [13:55:03]wFMCommunicate OK [13:55:03]wFMCommunicate request_size=255 [13:55:03]MH_SAM_APDU [13:55:03]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 B7 0B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FB 0E 01 [13:55:04]Write to MH i2c: E2 02 01 49 06 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 B7 0B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FB 0E 01 00 00 13 [13:55:04]Write i2c OK [13:55:04]MH_I2C_Read... [13:55:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:04]Read from MH i2c: E2 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: E2 03 00 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: E2 03 00 49 06 00 90 00 C3 [13:55:04]RAPDU: 90 00 [13:55:04]wFMCommunicate OK [13:55:04]wFMCommunicate request_size=16 [13:55:04]MH_SAM_APDU [13:55:04]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 8E 8F 35 EF 13 C3 [13:55:04]Write to MH i2c: E2 13 00 4A 06 80 0D 02 02 0B 00 00 35 04 06 00 8E 8F 35 EF 13 C3 00 00 36 [13:55:04]Write i2c OK [13:55:04]MH_I2C_Read... [13:55:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:04]Read from MH i2c: E2 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: E2 03 00 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: E2 03 00 4A 06 00 90 00 C4 [13:55:04]RAPDU: 90 00 [13:55:04]wFMCommunicate OK [13:55:04]wFMCommunicate request_size=4 [13:55:04]MH_SAM_APDU [13:55:04]CAPDU: 80 0D 03 02 [13:55:04]Write to MH i2c: E2 08 00 4B 06 80 0D 03 02 00 00 00 00 CC [13:55:04]Write i2c OK [13:55:04]MH_I2C_Read... [13:55:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:04]Read from MH i2c: E2 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: E2 0B 00 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: E2 0B 00 4B 06 00 53 35 C5 50 5E 38 37 E7 90 00 1E [13:55:04]RAPDU: 53 35 C5 50 5E 38 37 E7 90 00 [13:55:04]wFMCommunicate OK [13:55:04]SAM_PROTO_SignData done [13:55:04]FM_MakeSignedData done [13:55:04]CreateOFDProtocolMessage [13:55:04]wFMCommunicate request_size=4 [13:55:04]MH_SAM_APDU [13:55:04]CAPDU: 80 11 00 00 [13:55:04]Write to MH i2c: E2 08 00 4C 06 80 11 00 00 00 00 00 00 CC [13:55:04]Write i2c OK [13:55:04]MH_I2C_Read... [13:55:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:04]Read from MH i2c: E2 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: E2 17 00 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: E2 17 00 4C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1E [13:55:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:55:04]wFMCommunicate OK [13:55:04]CreateOFDProtocolMessage done [13:55:04]OFDSenderStorePacket 69371 [13:55:04]StoreOFDPacket docnum=69371 [13:55:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 22 BE 0D 01 C0 77 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 B7 0B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FB 0E 01 00 35 04 06 00 8E 8F 35 EF 13 C3 53 35 C5 50 5E 38 37 E7 [13:55:04]CheckFolder [13:55:04]dirname=/storage/ofd_packets [13:55:04]CheckFolder done [13:55:04]ProducePacketName [13:55:04]name=ofd_packets/00069371 [13:55:04]NVStorageSaveData ofd_packets/00069371 [13:55:04]File name is /storage/ofd_packets/00069371 [13:55:04]Write 307 bytes [13:55:04]NVStorageSaveData done [13:55:04]OFDSenderStorePacket done [13:55:04]KKMCreateOFDPacket done [13:55:04]NVStorageSaveData kkm_last_timestamp [13:55:04]File name is /storage/kkm_last_timestamp [13:55:04]Write 4 bytes [13:55:04]NVStorageSaveData done [13:55:04]ExternCall_PrintAddStr [13:55:04]wPrintStart [13:55:04]Write to MH i2c: 01 00 00 4D 06 53 [13:55:04]Write i2c OK [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: 01 [13:55:05]MH_I2C_Read... [13:55:05]OFD Sender: Processing packet 69371 [packets to send 18, broken 17] [13:55:05]ProducePacketName [13:55:05]name=ofd_packets/00069371 [13:55:05]OFD Sender: To server: pG, [13:55:05]CommunicateWithHost lk.salyk.kg:30040 [13:55:05]ConnectInit lk.salyk.kg [13:55:05]Read from MH i2c: 01 07 00 [13:55:05]MH_I2C_Read... [13:55:05]Read from MH i2c: 01 07 00 4D 06 00 00 00 00 00 FF 0F 68 [13:55:05]RasterBufferAndPrint [13:55:05]line Счет N : (1)2885093 [13:55:05]line ИНН: 02508201610067 [13:55:05]line Контрольно-Кассовый Чек [13:55:05]line ПРОДАЖА [13:55:05]line ТРК (МРК, ГНК) : 41 [13:55:05]line Товар: 2710194240 [13:55:05]line D-ENERGY Дт-К-2 [13:55:05]line 7.780 * 77.20 [13:55:05]line = 600.62 [13:55:05]line НДС 12% НСП 1% [13:55:05]line > о реализуемом товаре [13:55:05]line ОКРУГЛЕНИЕ: -0.62 [13:55:05]line ИТОГО: 600.00 [13:55:05]line Внесено: 600.00 [13:55:05]line СДАЧА: 0.00 [13:55:05]line НСП 1% : 5.31 [13:55:05]line НДС 12% : 63.78 [13:55:05]line Наличными: 600.00 [13:55:05]line Безнал.: 0.00 [13:55:05]line Место: АЗС № 85 "Партнер Нефть" [13:55:05]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:55:05]line СНО: Общий режим [13:55:05]line Чек 216 20.10.2024 13:55 [13:55:05]line Смена: 193 ФФД: 1.0 [13:55:05]line ЗНМ: 0300000167 [13:55:05]line РНМ: 0000000000156251 [13:55:05]line Версия ККМ: v1.0 [13:55:05]line ФМ: 0000000000963346 [13:55:05]line ФД: 69371 [13:55:05]line ФПД: 156745736328131 [13:55:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135503&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69371&fm=156745736328131&tin=02508201610067®Number=0000000000156251&sum=60000 [13:55:05]written 0, free lines is 4095 [13:55:05]Connected sock=10 [13:55:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 22 BE 0D 01 C0 77 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 B7 0B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FB 0E 01 00 35 04 06 00 8E 8F 35 EF 13 C3 53 35 C5 50 5E 38 37 E7 [13:55:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 1A 27 47 00 BD BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FB 0E 01 00 F4 03 04 00 5E B5 14 67 B6 04 01 00 00 05 F4 17 0D 68 1C 09 07 [13:55:05]CommunicateWithHost err = 0 [13:55:05]CheckOFDResponse [13:55:05]1017 (14) - 77093643461234 [13:55:05]1041 (16) - 0000000000963346 [13:55:05]1040 (4) - 69371 [13:55:05]1012 (4) - 20.10.2024 07:46 [13:55:05]1206 (1) - 0 [13:55:05]OFD Sender: Remove packet 69371 [13:55:05]ProducePacketName [13:55:05]name=ofd_packets/00069371 [13:55:05]NVStorageDeleteData [13:55:05]Write to MH i2c: 01 00 00 78 06 7E [13:55:05]Write i2c OK [13:55:05]MH_I2C_Read... [13:55:05]Read from MH i2c: 01 [13:55:05]MH_I2C_Read... [13:55:05]Read from MH i2c: 01 07 00 [13:55:05]MH_I2C_Read... [13:55:05]Read from MH i2c: 01 07 00 78 06 00 00 00 00 00 02 0D 94 [13:55:05]RasterBufferAndPrint [13:55:05]line [13:55:05]line [13:55:05]line [13:55:05]line [13:55:05]line [13:55:05]written 0, free lines is 3351 [13:55:05]MH_Cut [13:55:05]Write to MH i2c: D1 01 00 7F 06 01 57 [13:55:05]Write i2c OK [13:55:05]MH_I2C_Read... [13:55:05]Read from MH i2c: D1 [13:55:05]MH_I2C_Read... [13:55:05]Read from MH i2c: D1 01 00 [13:55:05]MH_I2C_Read... [13:55:05]Read from MH i2c: D1 01 00 7F 06 00 56 [13:55:05]Write to MH i2c: 01 00 00 80 06 86 [13:55:05]Write i2c OK [13:55:05]MH_I2C_Read... [13:55:06]OFD Sender: No OFD packet to send [13:55:06]*** Cut start [13:55:06]*** Partial cut [13:55:06]*** CUTSNS_PIN = 1 [13:55:06]*** CUTSNS_PIN = 0 [13:55:06]*** Brake cut motor [13:55:06]Read from MH i2c: 01 [13:55:06]MH_I2C_Read... [13:55:06]*** Stop cut motor [13:55:06]*** Cut end [13:55:06]Read from MH i2c: 01 07 00 [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: 01 07 00 80 06 00 00 00 00 00 FF 0F 9B [13:55:06]process_action close_receipt done [13:55:06]requested_data is exist [13:55:06]produce_requested_data [13:55:06]requested_item fm.sn is exist - process it [13:55:06]wFMCommunicate request_size=4 [13:55:06]MH_SAM_APDU [13:55:06]CAPDU: 80 11 00 00 [13:55:06]Write to MH i2c: E2 08 00 81 06 80 11 00 00 00 00 00 00 01 [13:55:06]Write i2c OK [13:55:06]MH_I2C_Read... [13:55:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:07]Read from MH i2c: E2 [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: E2 17 00 [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: E2 17 00 81 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 53 [13:55:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:55:07]wFMCommunicate OK [13:55:07]requested_item fd.num is exist - process it [13:55:07]SAM_PROTO_GetFieldsCounters [13:55:07]wFMCommunicate request_size=4 [13:55:07]MH_SAM_APDU [13:55:07]CAPDU: 80 13 00 00 [13:55:07]Write to MH i2c: E2 08 00 82 06 80 13 00 00 00 00 00 00 04 [13:55:07]Write i2c OK [13:55:07]MH_I2C_Read... [13:55:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:07]Read from MH i2c: E2 [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: E2 62 00 [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: E2 62 00 82 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FB 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [13:55:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FB 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:55:07]wFMCommunicate OK [13:55:07]SAM_PROTO_GetFieldsCounters done [13:55:07]requested_item shift.num is exist - process it [13:55:07]requested_item shift.opened is exist - process it [13:55:07]req_shift_opened [13:55:07]FM_GetShiftState [13:55:07]SAM_PROTO_GetShiftState [13:55:07]wFMCommunicate request_size=4 [13:55:07]MH_SAM_APDU [13:55:07]CAPDU: 80 13 01 00 [13:55:07]Write to MH i2c: E2 08 00 83 06 80 13 01 00 00 00 00 00 06 [13:55:07]Write i2c OK [13:55:07]MH_I2C_Read... [13:55:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:07]Read from MH i2c: E2 [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: E2 0E 00 [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: E2 0E 00 83 06 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 0C [13:55:07]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [13:55:07]wFMCommunicate OK [13:55:07]SAM_PROTO_GetShiftState done [13:55:07]FM_GetShiftState done [13:55:07]req_shift_opened done [13:55:07]requested_item shift.open_date is exist - process it [13:55:07]req_shift_open_date [13:55:07]req_shift_open_date done [13:55:07]produce_requested_data done [13:55:07]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69371,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [13:55:07]process_action_free close_receipt [13:55:07]json_value_free [13:55:07]json_value_free done [13:55:07]process_json_proto returns [13:55:07]Send response to host [13:55:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69371,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [13:55:07]free response buf [13:55:07]execute_script done [13:55:07]execute_script returns [13:55:07]free content buf [13:55:07]Sock 9.Close socket [13:55:07]Sock 9.Thread stoped [13:55:11]OFD Sender: No OFD packet to send [13:55:16]OFD Sender: No OFD packet to send [13:55:21]OFD Sender: No OFD packet to send [13:55:26]OFD Sender: No OFD packet to send [13:55:31]OFD Sender: No OFD packet to send [13:55:36]OFD Sender: No OFD packet to send [13:55:41]OFD Sender: No OFD packet to send [13:55:46]OFD Sender: No OFD packet to send [13:55:51]OFD Sender: No OFD packet to send [13:55:56]OFD Sender: No OFD packet to send [13:56:01]OFD Sender: No OFD packet to send [13:56:06]OFD Sender: No OFD packet to send [13:56:11]OFD Sender: No OFD packet to send [13:56:16]OFD Sender: No OFD packet to send [13:56:21]OFD Sender: No OFD packet to send [13:56:26]OFD Sender: No OFD packet to send [13:56:31]OFD Sender: No OFD packet to send [13:56:36]OFD Sender: No OFD packet to send [13:56:41]OFD Sender: No OFD packet to send [13:56:46]OFD Sender: No OFD packet to send [13:56:51]OFD Sender: No OFD packet to send [13:56:56]OFD Sender: No OFD packet to send [13:57:01]OFD Sender: No OFD packet to send [13:57:06]OFD Sender: No OFD packet to send [13:57:11]OFD Sender: No OFD packet to send [13:57:16]OFD Sender: No OFD packet to send [13:57:19]accept exits with 8 [13:57:19]New connection [13:57:19]New thread 3066711396 created [13:57:19]Thread 3066568036 joined [13:57:19]Waiting for new connection... [13:57:19] Sock 8.Parse request [13:57:19]Sock 8.Check first char [13:57:19]Sock 8.First char is OK [13:57:19]request: POST /json_proto HTTP/1.0 [13:57:19]Method: POST [13:57:19]URL: /json_proto [13:57:19]Method is POST - this is cgi request [13:57:19]url: /json_proto [13:57:19]query_string will be loaded in cgi processing [13:57:19]execute_cgi json_proto POST (null) [13:57:19]execute_cgi path=json_proto method=POST [13:57:19]POST find Content-Length [13:57:19]Host: 172.17.50.3:8080 [13:57:19]Content-Length: 678 [13:57:19]Content-Type: application/json [13:57:19] [13:57:19]POST finish read [13:57:19]Found Content-Length = 678 [13:57:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [13:57:19]execute_script... [13:57:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [13:57:19]POST & json_proto [13:57:19]process_json_proto [13:57:19]json parsed OK: [13:57:19]protocol is kg_v1.0 [13:57:19]action value=close_receipt [13:57:19]process_action close_receipt [13:57:19]cmd_close_receipt [13:57:19]MH_GetDate [13:57:19]Write to MH i2c: F0 00 00 84 06 79 [13:57:19]Write i2c OK [13:57:19]MH_I2C_Read... [13:57:19]Read from MH i2c: F0 [13:57:19]MH_I2C_Read... [13:57:19]Read from MH i2c: F0 09 00 [13:57:19]MH_I2C_Read... [13:57:19]Read from MH i2c: F0 09 00 84 06 00 3F 0C 15 67 6B 98 1E 66 D0 [13:57:19]GetLastDocTimeStamp 1729432503 [13:57:19]current date 1729432639 [13:57:19]FM_GetShiftState [13:57:19]SAM_PROTO_GetShiftState [13:57:19]wFMCommunicate request_size=4 [13:57:19]MH_SAM_APDU [13:57:19]CAPDU: 80 13 01 00 [13:57:19]Write to MH i2c: E2 08 00 85 06 80 13 01 00 00 00 00 00 08 [13:57:19]Write i2c OK [13:57:19]MH_I2C_Read... [13:57:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:19]Read from MH i2c: E2 [13:57:19]MH_I2C_Read... [13:57:19]Read from MH i2c: E2 0E 00 [13:57:19]MH_I2C_Read... [13:57:19]Read from MH i2c: E2 0E 00 85 06 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 0E [13:57:19]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [13:57:19]wFMCommunicate OK [13:57:19]SAM_PROTO_GetShiftState done [13:57:19]FM_GetShiftState done [13:57:19]opened in 1729383220 [13:57:19]opened+sec_in_day 1729469620 [13:57:19]quantity*price = 50010 [13:57:19]sum+1 = 50012 [13:57:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 217 20.10.2024 13:57 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69372 ФПД: 80124036732081 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135719&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69372&fm=80124036732081&tin=02508201610067®Number=0000000000156251&sum=50000 [13:57:20]StoreToDocumentArchive [13:57:20]shift 193 fd 69372 [13:57:20]save to /storage/0193/doc_00069372 [13:57:20]save last doc name /storage/0193/doc_00069372 to /storage/kkm_last_doc_name [13:57:20]save OK [13:57:20]Clear old archive folders... [13:57:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:57:20]tlvbuf is 0024CF90 [13:57:20]SAM_PROTO_ClearQueue [13:57:20]wFMCommunicate request_size=4 [13:57:20]MH_SAM_APDU [13:57:20]CAPDU: 80 09 00 00 [13:57:20]Write to MH i2c: E2 08 00 92 06 80 09 00 00 00 00 00 00 0A [13:57:20]Write i2c OK [13:57:20]MH_I2C_Read... [13:57:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:57:20]Read from MH i2c: E2 [13:57:20]MH_I2C_Read... [13:57:20]Read from MH i2c: E2 03 00 [13:57:20]MH_I2C_Read... [13:57:20]Read from MH i2c: E2 03 00 92 06 00 90 00 0C [13:57:20]RAPDU: 90 00 [13:57:20]wFMCommunicate OK [13:57:20]SAM_PROTO_ClearQueue done [13:57:20]KKMCreateOFDPacket [13:57:20]OFDProtocolAddRootSTLVToBuf [13:57:20]FM_MakeSignedData [13:57:20]FM_MakeSignedData [13:57:20]SAM_PROTO_SignData [13:57:20]wFMCommunicate request_size=4 [13:57:20]MH_SAM_APDU [13:57:20]CAPDU: 80 0D 01 02 [13:57:20]Write to MH i2c: E2 08 00 93 06 80 0D 01 02 00 00 00 00 12 [13:57:20]Write i2c OK [13:57:20]MH_I2C_Read... [13:57:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:57:20]Read from MH i2c: E2 [13:57:20]MH_I2C_Read... [13:57:20]Read from MH i2c: E2 03 00 [13:57:20]MH_I2C_Read... [13:57:20]Read from MH i2c: E2 03 00 93 06 00 90 00 0D [13:57:20]RAPDU: 90 00 [13:57:20]wFMCommunicate OK [13:57:20]wFMCommunicate request_size=255 [13:57:20]MH_SAM_APDU [13:57: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 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 D9 00 00 00 F4 03 04 00 3F 0C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FC 0E 01 00 35 04 06 00 48 [13:57:20]Write to MH i2c: E2 02 01 94 06 80 0D 02 02 FA 00 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 D9 00 00 00 F4 03 04 00 3F 0C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FC 0E 01 00 35 04 06 00 48 00 00 27 [13:57:20]Write i2c OK [13:57:20]MH_I2C_Read... [13:57:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:20]Read from MH i2c: E2 [13:57:20]MH_I2C_Read... [13:57:20]Read from MH i2c: E2 03 00 [13:57:20]MH_I2C_Read... [13:57:20]Read from MH i2c: E2 03 00 94 06 00 90 00 0E [13:57:20]RAPDU: 90 00 [13:57:20]wFMCommunicate OK [13:57:20]wFMCommunicate request_size=10 [13:57:20]MH_SAM_APDU [13:57:20]CAPDU: 80 0D 02 02 05 DF 54 BF 54 B1 [13:57:20]Write to MH i2c: E2 0D 00 95 06 80 0D 02 02 05 00 DF 54 BF 54 B1 00 00 16 [13:57:20]Write i2c OK [13:57:20]MH_I2C_Read... [13:57:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:20]Read from MH i2c: E2 [13:57:20]MH_I2C_Read... [13:57:20]Read from MH i2c: E2 03 00 [13:57:20]MH_I2C_Read... [13:57:20]Read from MH i2c: E2 03 00 95 06 00 90 00 0F [13:57:20]RAPDU: 90 00 [13:57:20]wFMCommunicate OK [13:57:20]wFMCommunicate request_size=4 [13:57:20]MH_SAM_APDU [13:57:20]CAPDU: 80 0D 03 02 [13:57:20]Write to MH i2c: E2 08 00 96 06 80 0D 03 02 00 00 00 00 17 [13:57:20]Write i2c OK [13:57:20]MH_I2C_Read... [13:57:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:57:20]Read from MH i2c: E2 [13:57:20]MH_I2C_Read... [13:57:20]Read from MH i2c: E2 0B 00 [13:57:20]MH_I2C_Read... [13:57:20]Read from MH i2c: E2 0B 00 96 06 00 19 AB F1 48 F3 D1 1C 70 90 00 65 [13:57:20]RAPDU: 19 AB F1 48 F3 D1 1C 70 90 00 [13:57:20]wFMCommunicate OK [13:57:20]SAM_PROTO_SignData done [13:57:20]FM_MakeSignedData done [13:57:20]CreateOFDProtocolMessage [13:57:20]wFMCommunicate request_size=4 [13:57:20]MH_SAM_APDU [13:57:20]CAPDU: 80 11 00 00 [13:57:20]Write to MH i2c: E2 08 00 97 06 80 11 00 00 00 00 00 00 17 [13:57:20]Write i2c OK [13:57:20]MH_I2C_Read... [13:57:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:20]Read from MH i2c: E2 [13:57:20]MH_I2C_Read... [13:57:20]Read from MH i2c: E2 17 00 [13:57:20]MH_I2C_Read... [13:57:21]Read from MH i2c: E2 17 00 97 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 69 [13:57:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:57:21]wFMCommunicate OK [13:57:21]CreateOFDProtocolMessage done [13:57:21]OFDSenderStorePacket 69372 [13:57:21]StoreOFDPacket docnum=69372 [13:57:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F9 29 07 01 7F 8B 5A 03 01 00 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 D9 00 00 00 F4 03 04 00 3F 0C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FC 0E 01 00 35 04 06 00 48 DF 54 BF 54 B1 19 AB F1 48 F3 D1 1C 70 [13:57:21]CheckFolder [13:57:21]dirname=/storage/ofd_packets [13:57:21]CheckFolder done [13:57:21]ProducePacketName [13:57:21]name=ofd_packets/00069372 [13:57:21]NVStorageSaveData ofd_packets/00069372 [13:57:21]File name is /storage/ofd_packets/00069372 [13:57:21]Write 301 bytes [13:57:21]NVStorageSaveData done [13:57:21]OFDSenderStorePacket done [13:57:21]KKMCreateOFDPacket done [13:57:21]NVStorageSaveData kkm_last_timestamp [13:57:21]File name is /storage/kkm_last_timestamp [13:57:21]Write 4 bytes [13:57:21]NVStorageSaveData done [13:57:21]ExternCall_PrintAddStr [13:57:21]wPrintStart [13:57:21]Write to MH i2c: 01 00 00 98 06 9E [13:57:21]Write i2c OK [13:57:21]MH_I2C_Read... [13:57:21]Read from MH i2c: 01 [13:57:21]MH_I2C_Read... [13:57:21]Read from MH i2c: 01 07 00 [13:57:21]MH_I2C_Read... [13:57:21]Read from MH i2c: 01 07 00 98 06 00 00 00 00 00 FF 0F B3 [13:57:21]RasterBufferAndPrint [13:57:21]line Счет N : (1)2885097 [13:57:21]line ИНН: 02508201610067 [13:57:21]line Контрольно-Кассовый Чек [13:57:21]line ПРОДАЖА [13:57:21]line ТРК (МРК, ГНК) : 33 [13:57:21]line Товар: 2710124500 [13:57:21]line Аи-95-К-5 [13:57:21]line 6.740 * 74.20 [13:57:21]line = 500.11 [13:57:21]line НДС 12% НСП 1% [13:57:21]line > о реализуемом товаре [13:57:21]line ОКРУГЛЕНИЕ: -0.11 [13:57:21]line ИТОГО: 500.00 [13:57:21]line Внесено: 500.00 [13:57:21]line СДАЧА: 0.00 [13:57:21]line НСП 1% : 4.43 [13:57:21]line НДС 12% : 53.11 [13:57:21]line Наличными: 500.00 [13:57:21]line Безнал.: 0.00 [13:57:21]line Место: АЗС № 85 "Партнер Нефть" [13:57:21]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:57:21]line СНО: Общий режим [13:57:21]line Чек 217 20.10.2024 13:57 [13:57:21]line Смена: 193 ФФД: 1.0 [13:57:21]line ЗНМ: 0300000167 [13:57:21]line РНМ: 0000000000156251 [13:57:21]line Версия ККМ: v1.0 [13:57:21]line ФМ: 0000000000963346 [13:57:21]line ФД: 69372 [13:57:21]line ФПД: 80124036732081 [13:57:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135719&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69372&fm=80124036732081&tin=02508201610067®Number=0000000000156251&sum=50000 [13:57:21]OFD Sender: Processing packet 69372 [packets to send 18, broken 17] [13:57:21]ProducePacketName [13:57:21]name=ofd_packets/00069372 [13:57:21]OFD Sender: To server: pG, [13:57:21]CommunicateWithHost lk.salyk.kg:30040 [13:57:21]ConnectInit lk.salyk.kg [13:57:21]written 0, free lines is 4095 [13:57:21]Connected sock=10 [13:57:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F9 29 07 01 7F 8B 5A 03 01 00 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 D9 00 00 00 F4 03 04 00 3F 0C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FC 0E 01 00 35 04 06 00 48 DF 54 BF 54 B1 19 AB F1 48 F3 D1 1C 70 [13:57:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 22 C1 47 00 CE 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FC 0E 01 00 F4 03 04 00 E6 B5 14 67 B6 04 01 00 00 47 16 7E D3 76 88 06 97 [13:57:21]CommunicateWithHost err = 0 [13:57:21]CheckOFDResponse [13:57:21]1017 (14) - 77093643461234 [13:57:21]1041 (16) - 0000000000963346 [13:57:21]1040 (4) - 69372 [13:57:21]1012 (4) - 20.10.2024 07:48 [13:57:21]1206 (1) - 0 [13:57:21]OFD Sender: Remove packet 69372 [13:57:21]ProducePacketName [13:57:21]name=ofd_packets/00069372 [13:57:21]NVStorageDeleteData [13:57:21]Write to MH i2c: 01 00 00 C3 06 C9 [13:57:21]Write i2c OK [13:57:21]MH_I2C_Read... [13:57:21]Read from MH i2c: 01 [13:57:21]MH_I2C_Read... [13:57:21]Read from MH i2c: 01 07 00 [13:57:21]MH_I2C_Read... [13:57:21]Read from MH i2c: 01 07 00 C3 06 00 00 00 00 00 EC 0C C8 [13:57:21]RasterBufferAndPrint [13:57:21]line [13:57:21]line [13:57:21]line [13:57:21]line [13:57:21]line [13:57:21]written 0, free lines is 3314 [13:57:21]MH_Cut [13:57:21]Write to MH i2c: D1 01 00 CA 06 01 A2 [13:57:21]Write i2c OK [13:57:21]MH_I2C_Read... [13:57:21]Read from MH i2c: D1 [13:57:21]MH_I2C_Read... [13:57:21]Read from MH i2c: D1 01 00 [13:57:21]MH_I2C_Read... [13:57:21]Read from MH i2c: D1 01 00 CA 06 00 A1 [13:57:21]Write to MH i2c: 01 00 00 CB 06 D1 [13:57:21]Write i2c OK [13:57:21]MH_I2C_Read... [13:57:22]OFD Sender: No OFD packet to send [13:57:22]*** Cut start [13:57:22]*** Partial cut [13:57:22]*** CUTSNS_PIN = 1 [13:57:22]*** CUTSNS_PIN = 0 [13:57:22]*** Brake cut motor [13:57:23]Read from MH i2c: 01 [13:57:23]MH_I2C_Read... [13:57:23]*** Stop cut motor [13:57:23]*** Cut end [13:57:23]Read from MH i2c: 01 07 00 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: 01 07 00 CB 06 00 00 00 00 00 FF 0F E6 [13:57:23]process_action close_receipt done [13:57:23]requested_data is exist [13:57:23]produce_requested_data [13:57:23]requested_item fm.sn is exist - process it [13:57:23]wFMCommunicate request_size=4 [13:57:23]MH_SAM_APDU [13:57:23]CAPDU: 80 11 00 00 [13:57:23]Write to MH i2c: E2 08 00 CC 06 80 11 00 00 00 00 00 00 4C [13:57:23]Write i2c OK [13:57:23]MH_I2C_Read... [13:57:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:23]Read from MH i2c: E2 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: E2 17 00 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: E2 17 00 CC 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9E [13:57:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:57:23]wFMCommunicate OK [13:57:23]requested_item fd.num is exist - process it [13:57:23]SAM_PROTO_GetFieldsCounters [13:57:23]wFMCommunicate request_size=4 [13:57:23]MH_SAM_APDU [13:57:23]CAPDU: 80 13 00 00 [13:57:23]Write to MH i2c: E2 08 00 CD 06 80 13 00 00 00 00 00 00 4F [13:57:23]Write i2c OK [13:57:23]MH_I2C_Read... [13:57:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:57:23]Read from MH i2c: E2 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: E2 62 00 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: E2 62 00 CD 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FC 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [13:57:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FC 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:57:23]wFMCommunicate OK [13:57:23]SAM_PROTO_GetFieldsCounters done [13:57:23]requested_item shift.num is exist - process it [13:57:23]requested_item shift.opened is exist - process it [13:57:23]req_shift_opened [13:57:23]FM_GetShiftState [13:57:23]SAM_PROTO_GetShiftState [13:57:23]wFMCommunicate request_size=4 [13:57:23]MH_SAM_APDU [13:57:23]CAPDU: 80 13 01 00 [13:57:23]Write to MH i2c: E2 08 00 CE 06 80 13 01 00 00 00 00 00 51 [13:57:23]Write i2c OK [13:57:23]MH_I2C_Read... [13:57:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:23]Read from MH i2c: E2 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: E2 0E 00 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: E2 0E 00 CE 06 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 57 [13:57:23]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [13:57:23]wFMCommunicate OK [13:57:23]SAM_PROTO_GetShiftState done [13:57:23]FM_GetShiftState done [13:57:23]req_shift_opened done [13:57:23]requested_item shift.open_date is exist - process it [13:57:23]req_shift_open_date [13:57:23]req_shift_open_date done [13:57:23]produce_requested_data done [13:57:23]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69372,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [13:57:23]process_action_free close_receipt [13:57:23]json_value_free [13:57:23]json_value_free done [13:57:23]process_json_proto returns [13:57:23]Send response to host [13:57:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69372,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [13:57:23]free response buf [13:57:23]execute_script done [13:57:23]execute_script returns [13:57:23]free content buf [13:57:23]Sock 8.Close socket [13:57:23]Sock 8.Thread stoped [13:57:23]accept exits with 9 [13:57:23]New connection [13:57:23]New thread 3066568036 created [13:57:23]Thread 3066711396 joined [13:57:23]Waiting for new connection... [13:57:23] Sock 9.Parse request [13:57:23]Sock 9.Check first char [13:57:23]Sock 9.First char is OK [13:57:23]request: POST /json_proto HTTP/1.0 [13:57:23]Method: POST [13:57:23]URL: /json_proto [13:57:23]Method is POST - this is cgi request [13:57:23]url: /json_proto [13:57:23]query_string will be loaded in cgi processing [13:57:23]execute_cgi json_proto POST (null) [13:57:23]execute_cgi path=json_proto method=POST [13:57:23]POST find Content-Length [13:57:23]Host: 172.17.50.3:8080 [13:57:23]Content-Length: 798 [13:57:23]Content-Type: application/json [13:57:23] [13:57:23]POST finish read [13:57:23]Found Content-Length = 798 [13:57:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "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\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4467411", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:23]execute_script... [13:57:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "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\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4467411", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:23]POST & json_proto [13:57:23]process_json_proto [13:57:23]json parsed OK: [13:57:23]protocol is kg_v1.0 [13:57:23]action value=close_receipt [13:57:23]process_action close_receipt [13:57:23]cmd_close_receipt [13:57:23]MH_GetDate [13:57:23]Write to MH i2c: F0 00 00 CF 06 C4 [13:57:23]Write i2c OK [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: F0 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: F0 09 00 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: F0 09 00 CF 06 00 44 0C 15 67 6B 98 1E 66 20 [13:57:23]GetLastDocTimeStamp 1729432639 [13:57:23]current date 1729432644 [13:57:23]FM_GetShiftState [13:57:23]SAM_PROTO_GetShiftState [13:57:23]wFMCommunicate request_size=4 [13:57:23]MH_SAM_APDU [13:57:23]CAPDU: 80 13 01 00 [13:57:23]Write to MH i2c: E2 08 00 D0 06 80 13 01 00 00 00 00 00 53 [13:57:23]Write i2c OK [13:57:23]MH_I2C_Read... [13:57:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:23]Read from MH i2c: E2 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: E2 0E 00 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: E2 0E 00 D0 06 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 59 [13:57:23]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [13:57:23]wFMCommunicate OK [13:57:23]SAM_PROTO_GetShiftState done [13:57:23]FM_GetShiftState done [13:57:23]opened in 1729383220 [13:57:23]opened+sec_in_day 1729469620 [13:57:23]quantity*price = 0 [13:57:23]sum+1 = 1 [13:57:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 218 20.10.2024 13:57 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливные Талоны 4467411 ФМ: 0000000000963346 ФД: 69373 ФПД: 12343940543470 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135724&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69373&fm=12343940543470&tin=02508201610067®Number=0000000000156251&sum=0 [13:57:25]StoreToDocumentArchive [13:57:25]shift 193 fd 69373 [13:57:25]save to /storage/0193/doc_00069373 [13:57:25]save last doc name /storage/0193/doc_00069373 to /storage/kkm_last_doc_name [13:57:25]save OK [13:57:25]Clear old archive folders... [13:57:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:57:25]tlvbuf is 00220740 [13:57:25]SAM_PROTO_ClearQueue [13:57:25]wFMCommunicate request_size=4 [13:57:25]MH_SAM_APDU [13:57:25]CAPDU: 80 09 00 00 [13:57:25]Write to MH i2c: E2 08 00 DD 06 80 09 00 00 00 00 00 00 55 [13:57:25]Write i2c OK [13:57:25]MH_I2C_Read... [13:57:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:57:25]Read from MH i2c: E2 [13:57:25]MH_I2C_Read... [13:57:25]Read from MH i2c: E2 03 00 [13:57:25]MH_I2C_Read... [13:57:25]Read from MH i2c: E2 03 00 DD 06 00 90 00 57 [13:57:25]RAPDU: 90 00 [13:57:25]wFMCommunicate OK [13:57:25]SAM_PROTO_ClearQueue done [13:57:25]KKMCreateOFDPacket [13:57:25]OFDProtocolAddRootSTLVToBuf [13:57:25]FM_MakeSignedData [13:57:25]FM_MakeSignedData [13:57:25]SAM_PROTO_SignData [13:57:25]wFMCommunicate request_size=4 [13:57:25]MH_SAM_APDU [13:57:25]CAPDU: 80 0D 01 02 [13:57:25]Write to MH i2c: E2 08 00 DE 06 80 0D 01 02 00 00 00 00 5D [13:57:25]Write i2c OK [13:57:25]MH_I2C_Read... [13:57:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:57:25]Read from MH i2c: E2 [13:57:25]MH_I2C_Read... [13:57:25]Read from MH i2c: E2 03 00 [13:57:25]MH_I2C_Read... [13:57:25]Read from MH i2c: E2 03 00 DE 06 00 90 00 58 [13:57:25]RAPDU: 90 00 [13:57:25]wFMCommunicate OK [13:57:25]wFMCommunicate request_size=255 [13:57:25]MH_SAM_APDU [13:57: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 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 DA 00 00 00 F4 03 04 00 44 0C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FD 0E 01 00 35 04 06 00 0B 3A 0C 30 [13:57:25]Write to MH i2c: E2 02 01 DF 06 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 DA 00 00 00 F4 03 04 00 44 0C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FD 0E 01 00 35 04 06 00 0B 3A 0C 30 00 00 16 [13:57:25]Write i2c OK [13:57:25]MH_I2C_Read... [13:57:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:25]Read from MH i2c: E2 [13:57:25]MH_I2C_Read... [13:57:25]Read from MH i2c: E2 03 00 [13:57:25]MH_I2C_Read... [13:57:25]Read from MH i2c: E2 03 00 DF 06 00 90 00 59 [13:57:25]RAPDU: 90 00 [13:57:25]wFMCommunicate OK [13:57:25]wFMCommunicate request_size=7 [13:57:25]MH_SAM_APDU [13:57:25]CAPDU: 80 0D 02 02 02 F3 EE [13:57:25]Write to MH i2c: E2 0A 00 E0 06 80 0D 02 02 02 00 F3 EE 00 00 45 [13:57:25]Write i2c OK [13:57:25]MH_I2C_Read... [13:57:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:25]Read from MH i2c: E2 [13:57:25]MH_I2C_Read... [13:57:25]Read from MH i2c: E2 03 00 [13:57:25]MH_I2C_Read... [13:57:25]Read from MH i2c: E2 03 00 E0 06 00 90 00 5A [13:57:25]RAPDU: 90 00 [13:57:25]wFMCommunicate OK [13:57:25]wFMCommunicate request_size=4 [13:57:25]MH_SAM_APDU [13:57:25]CAPDU: 80 0D 03 02 [13:57:25]Write to MH i2c: E2 08 00 E1 06 80 0D 03 02 00 00 00 00 62 [13:57:25]Write i2c OK [13:57:25]MH_I2C_Read... [13:57:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:57:25]Read from MH i2c: E2 [13:57:25]MH_I2C_Read... [13:57:25]Read from MH i2c: E2 0B 00 [13:57:25]MH_I2C_Read... [13:57:25]Read from MH i2c: E2 0B 00 E1 06 00 07 3B A4 A7 AF 9A 64 8D 90 00 2A [13:57:25]RAPDU: 07 3B A4 A7 AF 9A 64 8D 90 00 [13:57:25]wFMCommunicate OK [13:57:25]SAM_PROTO_SignData done [13:57:25]FM_MakeSignedData done [13:57:25]CreateOFDProtocolMessage [13:57:25]wFMCommunicate request_size=4 [13:57:25]MH_SAM_APDU [13:57:25]CAPDU: 80 11 00 00 [13:57:25]Write to MH i2c: E2 08 00 E2 06 80 11 00 00 00 00 00 00 62 [13:57:25]Write i2c OK [13:57:25]MH_I2C_Read... [13:57:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:25]Read from MH i2c: E2 [13:57:25]MH_I2C_Read... [13:57:25]Read from MH i2c: E2 17 00 [13:57:25]MH_I2C_Read... [13:57:25]Read from MH i2c: E2 17 00 E2 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B4 [13:57:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:57:25]wFMCommunicate OK [13:57:25]CreateOFDProtocolMessage done [13:57:25]OFDSenderStorePacket 69373 [13:57:25]StoreOFDPacket docnum=69373 [13:57:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 82 51 04 01 65 EB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 DA 00 00 00 F4 03 04 00 44 0C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FD 0E 01 00 35 04 06 00 0B 3A 0C 30 F3 EE 07 3B A4 A7 AF 9A 64 8D [13:57:25]CheckFolder [13:57:25]dirname=/storage/ofd_packets [13:57:25]CheckFolder done [13:57:25]ProducePacketName [13:57:25]name=ofd_packets/00069373 [13:57:25]NVStorageSaveData ofd_packets/00069373 [13:57:25]File name is /storage/ofd_packets/00069373 [13:57:25]Write 298 bytes [13:57:25]NVStorageSaveData done [13:57:25]OFDSenderStorePacket done [13:57:25]KKMCreateOFDPacket done [13:57:25]NVStorageSaveData kkm_last_timestamp [13:57:25]File name is /storage/kkm_last_timestamp [13:57:25]Write 4 bytes [13:57:25]NVStorageSaveData done [13:57:25]ExternCall_PrintAddStr [13:57:25]wPrintStart [13:57:25]Write to MH i2c: 01 00 00 E3 06 E9 [13:57:25]Write i2c OK [13:57:25]MH_I2C_Read... [13:57:25]Read from MH i2c: 01 [13:57:25]MH_I2C_Read... [13:57:25]Read from MH i2c: 01 07 00 [13:57:25]MH_I2C_Read... [13:57:25]OFD Sender: Processing packet 69373 [packets to send 18, broken 17] [13:57:25]ProducePacketName [13:57:25]name=ofd_packets/00069373 [13:57:25]OFD Sender: To server: pG, [13:57:25]CommunicateWithHost lk.salyk.kg:30040 [13:57:25]ConnectInit lk.salyk.kg [13:57:25]Read from MH i2c: 01 07 00 E3 06 00 00 00 00 00 FF 0F FE [13:57:25]RasterBufferAndPrint [13:57:25]line Счет N : (1)2885096 [13:57:25]line ИНН: 02508201610067 [13:57:25]line Контрольно-Кассовый Чек [13:57:25]line ПРОДАЖА [13:57:25]line ТРК (МРК, ГНК) : 51 [13:57:25]line Товар: 2710194210 [13:57:25]line ДТ-К-5 [13:57:25]line 20.000 * 0.00 [13:57:25]line = 0.00 [13:57:25]line НДС 12% НСП 1% [13:57:25]line > о реализуемом товаре [13:57:25]line ИТОГО: 0.00 [13:57:25]line НСП 1% : 0.00 [13:57:25]line НДС 12% : 0.00 [13:57:25]line Наличными: 0.00 [13:57:25]line Безнал.: 0.00 [13:57:25]line Место: АЗС № 85 "Партнер Нефть" [13:57:25]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:57:25]line СНО: Общий режим [13:57:25]line Чек 218 20.10.2024 13:57 [13:57:25]line Смена: 193 ФФД: 1.0 [13:57:25]line ЗНМ: 0300000167 [13:57:25]line РНМ: 0000000000156251 [13:57:25]line Версия ККМ: v1.0 [13:57:25]line Талоны: Топливные Талоны [13:57:25]line 4467411 [13:57:25]line ФМ: 0000000000963346 [13:57:25]line ФД: 69373 [13:57:25]line ФПД: 12343940543470 [13:57:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135724&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69373&fm=12343940543470&tin=02508201610067®Number=0000000000156251&sum=0 [13:57:25]written 0, free lines is 4095 [13:57:25]Connected sock=10 [13:57:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 82 51 04 01 65 EB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 DA 00 00 00 F4 03 04 00 44 0C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FD 0E 01 00 35 04 06 00 0B 3A 0C 30 F3 EE 07 3B A4 A7 AF 9A 64 8D [13:57:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 71 58 47 00 EF F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FD 0E 01 00 F4 03 04 00 EA B5 14 67 B6 04 01 00 00 64 B4 DC 31 A5 4C 3A FA [13:57:26]CommunicateWithHost err = 0 [13:57:26]CheckOFDResponse [13:57:26]1017 (14) - 77093643461234 [13:57:26]1041 (16) - 0000000000963346 [13:57:26]1040 (4) - 69373 [13:57:26]1012 (4) - 20.10.2024 07:48 [13:57:26]1206 (1) - 0 [13:57:26]OFD Sender: Remove packet 69373 [13:57:26]ProducePacketName [13:57:26]name=ofd_packets/00069373 [13:57:26]NVStorageDeleteData [13:57:26]Write to MH i2c: 01 00 00 0D 07 14 [13:57:26]Write i2c OK [13:57:26]MH_I2C_Read... [13:57:26]Read from MH i2c: 01 [13:57:26]MH_I2C_Read... [13:57:26]Read from MH i2c: 01 07 00 [13:57:26]MH_I2C_Read... [13:57:26]Read from MH i2c: 01 07 00 0D 07 00 00 00 00 00 11 0D 39 [13:57:26]RasterBufferAndPrint [13:57:26]line [13:57:26]line [13:57:26]line [13:57:26]line [13:57:26]line [13:57:26]written 0, free lines is 3357 [13:57:26]MH_Cut [13:57:26]Write to MH i2c: D1 01 00 14 07 01 ED [13:57:26]Write i2c OK [13:57:26]MH_I2C_Read... [13:57:26]Read from MH i2c: D1 [13:57:26]MH_I2C_Read... [13:57:26]Read from MH i2c: D1 01 00 [13:57:26]MH_I2C_Read... [13:57:26]Read from MH i2c: D1 01 00 14 07 00 EC [13:57:26]Write to MH i2c: 01 00 00 15 07 1C [13:57:26]Write i2c OK [13:57:26]MH_I2C_Read... [13:57:26]OFD Sender: No OFD packet to send [13:57:26]*** Cut start [13:57:26]*** Partial cut [13:57:26]*** CUTSNS_PIN = 1 [13:57:26]*** CUTSNS_PIN = 0 [13:57:27]*** Brake cut motor [13:57:27]Read from MH i2c: 01 [13:57:27]MH_I2C_Read... [13:57:27]*** Stop cut motor [13:57:27]*** Cut end [13:57:27]Read from MH i2c: 01 07 00 [13:57:27]MH_I2C_Read... [13:57:27]Read from MH i2c: 01 07 00 15 07 00 00 00 00 00 FF 0F 31 [13:57:27]process_action close_receipt done [13:57:27]requested_data is exist [13:57:27]produce_requested_data [13:57:27]requested_item fm.sn is exist - process it [13:57:27]wFMCommunicate request_size=4 [13:57:27]MH_SAM_APDU [13:57:27]CAPDU: 80 11 00 00 [13:57:27]Write to MH i2c: E2 08 00 16 07 80 11 00 00 00 00 00 00 97 [13:57:27]Write i2c OK [13:57:27]MH_I2C_Read... [13:57:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:27]Read from MH i2c: E2 [13:57:27]MH_I2C_Read... [13:57:27]Read from MH i2c: E2 17 00 [13:57:27]MH_I2C_Read... [13:57:27]Read from MH i2c: E2 17 00 16 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E9 [13:57:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:57:27]wFMCommunicate OK [13:57:27]requested_item fd.num is exist - process it [13:57:27]SAM_PROTO_GetFieldsCounters [13:57:27]wFMCommunicate request_size=4 [13:57:27]MH_SAM_APDU [13:57:27]CAPDU: 80 13 00 00 [13:57:27]Write to MH i2c: E2 08 00 17 07 80 13 00 00 00 00 00 00 9A [13:57:27]Write i2c OK [13:57:27]MH_I2C_Read... [13:57:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:57:27]Read from MH i2c: E2 [13:57:27]MH_I2C_Read... [13:57:27]Read from MH i2c: E2 62 00 [13:57:27]MH_I2C_Read... [13:57:27]Read from MH i2c: E2 62 00 17 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FD 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [13:57:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FD 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:57:27]wFMCommunicate OK [13:57:27]SAM_PROTO_GetFieldsCounters done [13:57:27]requested_item shift.num is exist - process it [13:57:27]requested_item shift.opened is exist - process it [13:57:27]req_shift_opened [13:57:27]FM_GetShiftState [13:57:27]SAM_PROTO_GetShiftState [13:57:27]wFMCommunicate request_size=4 [13:57:27]MH_SAM_APDU [13:57:27]CAPDU: 80 13 01 00 [13:57:27]Write to MH i2c: E2 08 00 18 07 80 13 01 00 00 00 00 00 9C [13:57:27]Write i2c OK [13:57:27]MH_I2C_Read... [13:57:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:27]Read from MH i2c: E2 [13:57:27]MH_I2C_Read... [13:57:27]Read from MH i2c: E2 0E 00 [13:57:27]MH_I2C_Read... [13:57:27]Read from MH i2c: E2 0E 00 18 07 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 A2 [13:57:27]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [13:57:27]wFMCommunicate OK [13:57:27]SAM_PROTO_GetShiftState done [13:57:27]FM_GetShiftState done [13:57:27]req_shift_opened done [13:57:27]requested_item shift.open_date is exist - process it [13:57:27]req_shift_open_date [13:57:27]req_shift_open_date done [13:57:27]produce_requested_data done [13:57:27]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69373,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [13:57:27]process_action_free close_receipt [13:57:27]json_value_free [13:57:27]json_value_free done [13:57:27]process_json_proto returns [13:57:27]Send response to host [13:57:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69373,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [13:57:27]free response buf [13:57:27]execute_script done [13:57:27]execute_script returns [13:57:27]free content buf [13:57:27]Sock 9.Close socket [13:57:27]Sock 9.Thread stoped [13:57:31]OFD Sender: No OFD packet to send [13:57:36]OFD Sender: No OFD packet to send [13:57:41]OFD Sender: No OFD packet to send [13:57:46]OFD Sender: No OFD packet to send [13:57:51]OFD Sender: No OFD packet to send [13:57:56]OFD Sender: No OFD packet to send [13:58:01]OFD Sender: No OFD packet to send [13:58:06]OFD Sender: No OFD packet to send [13:58:11]OFD Sender: No OFD packet to send [13:58:16]OFD Sender: No OFD packet to send [13:58:21]OFD Sender: No OFD packet to send [13:58:26]OFD Sender: No OFD packet to send [13:58:31]OFD Sender: No OFD packet to send [13:58:32]accept exits with 8 [13:58:32]New connection [13:58:32]New thread 3066711396 created [13:58:32]Thread 3066568036 joined [13:58:32]Waiting for new connection... [13:58:32] Sock 8.Parse request [13:58:32]Sock 8.Check first char [13:58:32]Sock 8.First char is OK [13:58:32]request: POST /json_proto HTTP/1.0 [13:58:32]Method: POST [13:58:32]URL: /json_proto [13:58:32]Method is POST - this is cgi request [13:58:32]url: /json_proto [13:58:32]query_string will be loaded in cgi processing [13:58:32]execute_cgi json_proto POST (null) [13:58:32]execute_cgi path=json_proto method=POST [13:58:32]POST find Content-Length [13:58:32]Host: 172.17.50.3:8080 [13:58:32]Content-Length: 678 [13:58:32]Content-Type: application/json [13:58:32] [13:58:32]POST finish read [13:58:32]Found Content-Length = 678 [13:58:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.070, "sum" : 450.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:32]execute_script... [13:58: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)2885098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.070, "sum" : 450.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:32]POST & json_proto [13:58:32]process_json_proto [13:58:32]json parsed OK: [13:58:32]protocol is kg_v1.0 [13:58:32]action value=close_receipt [13:58:32]process_action close_receipt [13:58:32]cmd_close_receipt [13:58:32]MH_GetDate [13:58:32]Write to MH i2c: F0 00 00 19 07 0F [13:58:32]Write i2c OK [13:58:32]MH_I2C_Read... [13:58:32]Read from MH i2c: F0 [13:58:32]MH_I2C_Read... [13:58:32]Read from MH i2c: F0 09 00 [13:58:32]MH_I2C_Read... [13:58:32]Read from MH i2c: F0 09 00 19 07 00 88 0C 15 67 6B 98 1E 66 AF [13:58:32]GetLastDocTimeStamp 1729432644 [13:58:32]current date 1729432712 [13:58:32]FM_GetShiftState [13:58:32]SAM_PROTO_GetShiftState [13:58:32]wFMCommunicate request_size=4 [13:58:32]MH_SAM_APDU [13:58:32]CAPDU: 80 13 01 00 [13:58:32]Write to MH i2c: E2 08 00 1A 07 80 13 01 00 00 00 00 00 9E [13:58:32]Write i2c OK [13:58:32]MH_I2C_Read... [13:58:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:32]Read from MH i2c: E2 [13:58:32]MH_I2C_Read... [13:58:32]Read from MH i2c: E2 0E 00 [13:58:32]MH_I2C_Read... [13:58:32]Read from MH i2c: E2 0E 00 1A 07 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 A4 [13:58:32]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [13:58:32]wFMCommunicate OK [13:58:32]SAM_PROTO_GetShiftState done [13:58:32]FM_GetShiftState done [13:58:32]opened in 1729383220 [13:58:32]opened+sec_in_day 1729469620 [13:58:32]quantity*price = 45039 [13:58:32]sum+1 = 45040 [13:58:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.99 НДС 12% : 47.83 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 219 20.10.2024 13:58 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69374 ФПД: 143424496847846 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135832&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69374&fm=143424496847846&tin=02508201610067®Number=0000000000156251&sum=45000 [13:58:33]StoreToDocumentArchive [13:58:33]shift 193 fd 69374 [13:58:33]save to /storage/0193/doc_00069374 [13:58:33]save last doc name /storage/0193/doc_00069374 to /storage/kkm_last_doc_name [13:58:33]save OK [13:58:33]Clear old archive folders... [13:58:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:58:33]tlvbuf is 00235DE0 [13:58:33]SAM_PROTO_ClearQueue [13:58:33]wFMCommunicate request_size=4 [13:58:33]MH_SAM_APDU [13:58:33]CAPDU: 80 09 00 00 [13:58:33]Write to MH i2c: E2 08 00 27 07 80 09 00 00 00 00 00 00 A0 [13:58:33]Write i2c OK [13:58:33]MH_I2C_Read... [13:58:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:33]Read from MH i2c: E2 [13:58:33]MH_I2C_Read... [13:58:33]Read from MH i2c: E2 03 00 [13:58:33]MH_I2C_Read... [13:58:33]Read from MH i2c: E2 03 00 27 07 00 90 00 A2 [13:58:33]RAPDU: 90 00 [13:58:33]wFMCommunicate OK [13:58:33]SAM_PROTO_ClearQueue done [13:58:33]KKMCreateOFDPacket [13:58:33]OFDProtocolAddRootSTLVToBuf [13:58:33]FM_MakeSignedData [13:58:33]FM_MakeSignedData [13:58:33]SAM_PROTO_SignData [13:58:33]wFMCommunicate request_size=4 [13:58:33]MH_SAM_APDU [13:58:33]CAPDU: 80 0D 01 02 [13:58:33]Write to MH i2c: E2 08 00 28 07 80 0D 01 02 00 00 00 00 A8 [13:58:33]Write i2c OK [13:58:33]MH_I2C_Read... [13:58:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:33]Read from MH i2c: E2 [13:58:33]MH_I2C_Read... [13:58:33]Read from MH i2c: E2 03 00 [13:58:33]MH_I2C_Read... [13:58:33]Read from MH i2c: E2 03 00 28 07 00 90 00 A3 [13:58:33]RAPDU: 90 00 [13:58:33]wFMCommunicate OK [13:58:33]wFMCommunicate request_size=255 [13:58:33]MH_SAM_APDU [13:58:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B6 17 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 88 0C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FE 0E 01 00 35 04 06 00 82 [13:58:33]Write to MH i2c: E2 02 01 29 07 80 0D 02 02 FA 00 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 B6 17 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 88 0C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FE 0E 01 00 35 04 06 00 82 00 00 AD [13:58:33]Write i2c OK [13:58:33]MH_I2C_Read... [13:58:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:33]Read from MH i2c: E2 [13:58:33]MH_I2C_Read... [13:58:33]Read from MH i2c: E2 03 00 [13:58:33]MH_I2C_Read... [13:58:33]Read from MH i2c: E2 03 00 29 07 00 90 00 A4 [13:58:33]RAPDU: 90 00 [13:58:33]wFMCommunicate OK [13:58:33]wFMCommunicate request_size=10 [13:58:33]MH_SAM_APDU [13:58:33]CAPDU: 80 0D 02 02 05 71 9E 2F CB E6 [13:58:33]Write to MH i2c: E2 0D 00 2A 07 80 0D 02 02 05 00 71 9E 2F CB E6 00 00 A4 [13:58:33]Write i2c OK [13:58:33]MH_I2C_Read... [13:58:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:33]Read from MH i2c: E2 [13:58:33]MH_I2C_Read... [13:58:33]Read from MH i2c: E2 03 00 [13:58:33]MH_I2C_Read... [13:58:33]Read from MH i2c: E2 03 00 2A 07 00 90 00 A5 [13:58:33]RAPDU: 90 00 [13:58:33]wFMCommunicate OK [13:58:33]wFMCommunicate request_size=4 [13:58:33]MH_SAM_APDU [13:58:33]CAPDU: 80 0D 03 02 [13:58:33]Write to MH i2c: E2 08 00 2B 07 80 0D 03 02 00 00 00 00 AD [13:58:33]Write i2c OK [13:58:33]MH_I2C_Read... [13:58:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:33]Read from MH i2c: E2 [13:58:33]MH_I2C_Read... [13:58:33]Read from MH i2c: E2 0B 00 [13:58:33]MH_I2C_Read... [13:58:33]Read from MH i2c: E2 0B 00 2B 07 00 25 35 5C 41 04 0D AE 15 90 00 79 [13:58:33]RAPDU: 25 35 5C 41 04 0D AE 15 90 00 [13:58:33]wFMCommunicate OK [13:58:33]SAM_PROTO_SignData done [13:58:33]FM_MakeSignedData done [13:58:33]CreateOFDProtocolMessage [13:58:33]wFMCommunicate request_size=4 [13:58:33]MH_SAM_APDU [13:58:33]CAPDU: 80 11 00 00 [13:58:33]Write to MH i2c: E2 08 00 2C 07 80 11 00 00 00 00 00 00 AD [13:58:33]Write i2c OK [13:58:33]MH_I2C_Read... [13:58:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:33]Read from MH i2c: E2 [13:58:33]MH_I2C_Read... [13:58:33]Read from MH i2c: E2 17 00 [13:58:33]MH_I2C_Read... [13:58:33]Read from MH i2c: E2 17 00 2C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FF [13:58:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:58:33]wFMCommunicate OK [13:58:33]CreateOFDProtocolMessage done [13:58:33]OFDSenderStorePacket 69374 [13:58:33]StoreOFDPacket docnum=69374 [13:58:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 78 E3 07 01 17 3A 5A 03 01 00 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 B6 17 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 88 0C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FE 0E 01 00 35 04 06 00 82 71 9E 2F CB E6 25 35 5C 41 04 0D AE 15 [13:58:33]CheckFolder [13:58:33]dirname=/storage/ofd_packets [13:58:33]CheckFolder done [13:58:33]ProducePacketName [13:58:33]name=ofd_packets/00069374 [13:58:33]NVStorageSaveData ofd_packets/00069374 [13:58:33]File name is /storage/ofd_packets/00069374 [13:58:33]Write 301 bytes [13:58:33]NVStorageSaveData done [13:58:33]OFDSenderStorePacket done [13:58:33]KKMCreateOFDPacket done [13:58:33]NVStorageSaveData kkm_last_timestamp [13:58:33]File name is /storage/kkm_last_timestamp [13:58:33]Write 4 bytes [13:58:33]NVStorageSaveData done [13:58:33]ExternCall_PrintAddStr [13:58:33]wPrintStart [13:58:33]Write to MH i2c: 01 00 00 2D 07 34 [13:58:33]Write i2c OK [13:58:33]MH_I2C_Read... [13:58:33]Read from MH i2c: 01 [13:58:33]MH_I2C_Read... [13:58:33]Read from MH i2c: 01 07 00 [13:58:33]MH_I2C_Read... [13:58:33]Read from MH i2c: 01 07 00 2D 07 00 00 00 00 00 FF 0F 49 [13:58:33]RasterBufferAndPrint [13:58:33]line Счет N : (1)2885098 [13:58:33]line ИНН: 02508201610067 [13:58:33]line Контрольно-Кассовый Чек [13:58:33]line ПРОДАЖА [13:58:33]line ТРК (МРК, ГНК) : 13 [13:58:33]line Товар: 2710124500 [13:58:33]line Аи-95-К-5 [13:58:33]line 6.070 * 74.20 [13:58:33]line = 450.39 [13:58:33]line НДС 12% НСП 1% [13:58:33]line > о реализуемом товаре [13:58:33]line ОКРУГЛЕНИЕ: -0.39 [13:58:33]line ИТОГО: 450.00 [13:58:33]line Внесено: 450.00 [13:58:33]line СДАЧА: 0.00 [13:58:33]line НСП 1% : 3.99 [13:58:33]line НДС 12% : 47.83 [13:58:33]line Наличными: 450.00 [13:58:33]line Безнал.: 0.00 [13:58:33]line Место: АЗС № 85 "Партнер Нефть" [13:58:33]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [13:58:33]line СНО: Общий режим [13:58:33]line Чек 219 20.10.2024 13:58 [13:58:33]line Смена: 193 ФФД: 1.0 [13:58:33]line ЗНМ: 0300000167 [13:58:33]line РНМ: 0000000000156251 [13:58:33]line Версия ККМ: v1.0 [13:58:33]line ФМ: 0000000000963346 [13:58:33]line ФД: 69374 [13:58:33]line ФПД: 143424496847846 [13:58:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135832&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69374&fm=143424496847846&tin=02508201610067®Number=0000000000156251&sum=45000 [13:58:34]OFD Sender: Processing packet 69374 [packets to send 18, broken 17] [13:58:34]ProducePacketName [13:58:34]name=ofd_packets/00069374 [13:58:34]OFD Sender: To server: pG, [13:58:34]CommunicateWithHost lk.salyk.kg:30040 [13:58:34]ConnectInit lk.salyk.kg [13:58:34]written 0, free lines is 4095 [13:58:34]Connected sock=10 [13:58:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 78 E3 07 01 17 3A 5A 03 01 00 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 B6 17 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 88 0C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FE 0E 01 00 35 04 06 00 82 71 9E 2F CB E6 25 35 5C 41 04 0D AE 15 [13:58:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 4A C6 47 00 F5 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FE 0E 01 00 F4 03 04 00 2F B6 14 67 B6 04 01 00 00 50 9D 90 6F 6A DF 38 7C [13:58:34]CommunicateWithHost err = 0 [13:58:34]CheckOFDResponse [13:58:34]1017 (14) - 77093643461234 [13:58:34]1041 (16) - 0000000000963346 [13:58:34]1040 (4) - 69374 [13:58:34]1012 (4) - 20.10.2024 07:50 [13:58:34]1206 (1) - 0 [13:58:34]OFD Sender: Remove packet 69374 [13:58:34]ProducePacketName [13:58:34]name=ofd_packets/00069374 [13:58:34]NVStorageDeleteData [13:58:34]Write to MH i2c: 01 00 00 58 07 5F [13:58:34]Write i2c OK [13:58:34]MH_I2C_Read... [13:58:34]Read from MH i2c: 01 [13:58:34]MH_I2C_Read... [13:58:34]Read from MH i2c: 01 07 00 [13:58:34]MH_I2C_Read... [13:58:34]Read from MH i2c: 01 07 00 58 07 00 00 00 00 00 F4 0C 66 [13:58:34]RasterBufferAndPrint [13:58:34]line [13:58:34]line [13:58:34]line [13:58:34]line [13:58:34]line [13:58:34]written 0, free lines is 3322 [13:58:34]MH_Cut [13:58:34]Write to MH i2c: D1 01 00 5F 07 01 38 [13:58:34]Write i2c OK [13:58:34]MH_I2C_Read... [13:58:34]Read from MH i2c: D1 [13:58:34]MH_I2C_Read... [13:58:34]Read from MH i2c: D1 01 00 [13:58:34]MH_I2C_Read... [13:58:34]Read from MH i2c: D1 01 00 5F 07 00 37 [13:58:34]Write to MH i2c: 01 00 00 60 07 67 [13:58:34]Write i2c OK [13:58:34]MH_I2C_Read... [13:58:35]OFD Sender: No OFD packet to send [13:58:35]*** Cut start [13:58:35]*** Partial cut [13:58:35]*** CUTSNS_PIN = 1 [13:58:35]*** CUTSNS_PIN = 0 [13:58:35]*** Brake cut motor [13:58:35]Read from MH i2c: 01 [13:58:35]MH_I2C_Read... [13:58:35]*** Stop cut motor [13:58:35]*** Cut end [13:58:35]Read from MH i2c: 01 07 00 [13:58:35]MH_I2C_Read... [13:58:35]Read from MH i2c: 01 07 00 60 07 00 00 00 00 00 FF 0F 7C [13:58:35]process_action close_receipt done [13:58:35]requested_data is exist [13:58:35]produce_requested_data [13:58:35]requested_item fm.sn is exist - process it [13:58:35]wFMCommunicate request_size=4 [13:58:35]MH_SAM_APDU [13:58:35]CAPDU: 80 11 00 00 [13:58:35]Write to MH i2c: E2 08 00 61 07 80 11 00 00 00 00 00 00 E2 [13:58:35]Write i2c OK [13:58:35]MH_I2C_Read... [13:58:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:36]Read from MH i2c: E2 [13:58:36]MH_I2C_Read... [13:58:36]Read from MH i2c: E2 17 00 [13:58:36]MH_I2C_Read... [13:58:36]Read from MH i2c: E2 17 00 61 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 34 [13:58:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [13:58:36]wFMCommunicate OK [13:58:36]requested_item fd.num is exist - process it [13:58:36]SAM_PROTO_GetFieldsCounters [13:58:36]wFMCommunicate request_size=4 [13:58:36]MH_SAM_APDU [13:58:36]CAPDU: 80 13 00 00 [13:58:36]Write to MH i2c: E2 08 00 62 07 80 13 00 00 00 00 00 00 E5 [13:58:36]Write i2c OK [13:58:36]MH_I2C_Read... [13:58:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:36]Read from MH i2c: E2 [13:58:36]MH_I2C_Read... [13:58:36]Read from MH i2c: E2 62 00 [13:58:36]MH_I2C_Read... [13:58:36]Read from MH i2c: E2 62 00 62 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FE 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [13:58:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FE 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:58:36]wFMCommunicate OK [13:58:36]SAM_PROTO_GetFieldsCounters done [13:58:36]requested_item shift.num is exist - process it [13:58:36]requested_item shift.opened is exist - process it [13:58:36]req_shift_opened [13:58:36]FM_GetShiftState [13:58:36]SAM_PROTO_GetShiftState [13:58:36]wFMCommunicate request_size=4 [13:58:36]MH_SAM_APDU [13:58:36]CAPDU: 80 13 01 00 [13:58:36]Write to MH i2c: E2 08 00 63 07 80 13 01 00 00 00 00 00 E7 [13:58:36]Write i2c OK [13:58:36]MH_I2C_Read... [13:58:36]Read from MH i2c: E2 [13:58:36]MH_I2C_Read... [13:58:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:36]Read from MH i2c: E2 0E 00 [13:58:36]MH_I2C_Read... [13:58:36]Read from MH i2c: E2 0E 00 63 07 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 ED [13:58:36]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [13:58:36]wFMCommunicate OK [13:58:36]SAM_PROTO_GetShiftState done [13:58:36]FM_GetShiftState done [13:58:36]req_shift_opened done [13:58:36]requested_item shift.open_date is exist - process it [13:58:36]req_shift_open_date [13:58:36]req_shift_open_date done [13:58:36]produce_requested_data done [13:58:36]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69374,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [13:58:36]process_action_free close_receipt [13:58:36]json_value_free [13:58:36]json_value_free done [13:58:36]process_json_proto returns [13:58:36]Send response to host [13:58:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69374,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [13:58:36]free response buf [13:58:36]execute_script done [13:58:36]execute_script returns [13:58:36]free content buf [13:58:36]Sock 8.Close socket [13:58:36]Sock 8.Thread stoped [13:58:40]OFD Sender: No OFD packet to send [13:58:45]OFD Sender: No OFD packet to send [13:58:50]OFD Sender: No OFD packet to send [13:58:55]OFD Sender: No OFD packet to send [13:59:00]OFD Sender: No OFD packet to send [13:59:05]OFD Sender: No OFD packet to send [13:59:10]OFD Sender: No OFD packet to send [13:59:15]OFD Sender: No OFD packet to send [13:59:20]OFD Sender: No OFD packet to send [13:59:25]OFD Sender: No OFD packet to send [13:59:30]OFD Sender: No OFD packet to send [13:59:35]OFD Sender: No OFD packet to send [13:59:40]OFD Sender: No OFD packet to send [13:59:45]OFD Sender: No OFD packet to send [13:59:50]OFD Sender: No OFD packet to send [13:59:55]OFD Sender: No OFD packet to send [14:00:00]OFD Sender: No OFD packet to send [14:00:05]OFD Sender: No OFD packet to send [14:00:10]OFD Sender: No OFD packet to send [14:00:15]OFD Sender: No OFD packet to send [14:00:20]OFD Sender: No OFD packet to send [14:00:25]OFD Sender: No OFD packet to send [14:00:30]OFD Sender: No OFD packet to send [14:00:35]OFD Sender: No OFD packet to send [14:00:40]OFD Sender: No OFD packet to send [14:00:45]OFD Sender: No OFD packet to send [14:00:50]OFD Sender: No OFD packet to send [14:00:55]OFD Sender: No OFD packet to send [14:01:00]OFD Sender: No OFD packet to send [14:01:05]OFD Sender: No OFD packet to send [14:01:10]OFD Sender: No OFD packet to send [14:01:15]OFD Sender: No OFD packet to send [14:01:20]OFD Sender: No OFD packet to send [14:01:25]OFD Sender: No OFD packet to send [14:01:30]OFD Sender: No OFD packet to send [14:01:35]OFD Sender: No OFD packet to send [14:01:40]OFD Sender: No OFD packet to send [14:01:45]OFD Sender: No OFD packet to send [14:01:50]OFD Sender: No OFD packet to send [14:01:55]OFD Sender: No OFD packet to send [14:02:00]OFD Sender: No OFD packet to send [14:02:05]OFD Sender: No OFD packet to send [14:02:10]OFD Sender: No OFD packet to send [14:02:15]OFD Sender: No OFD packet to send [14:02:20]OFD Sender: No OFD packet to send [14:02:25]OFD Sender: No OFD packet to send [14:02:30]OFD Sender: No OFD packet to send [14:02:35]OFD Sender: No OFD packet to send [14:02:40]OFD Sender: No OFD packet to send [14:02:45]OFD Sender: No OFD packet to send [14:02:50]OFD Sender: No OFD packet to send [14:02:55]OFD Sender: No OFD packet to send [14:03:00]OFD Sender: No OFD packet to send [14:03:05]OFD Sender: No OFD packet to send [14:03:10]OFD Sender: No OFD packet to send [14:03:15]OFD Sender: No OFD packet to send [14:03:20]OFD Sender: No OFD packet to send [14:03:25]OFD Sender: No OFD packet to send [14:03:30]OFD Sender: No OFD packet to send [14:03:35]OFD Sender: No OFD packet to send [14:03:40]OFD Sender: No OFD packet to send [14:03:45]OFD Sender: No OFD packet to send [14:03:50]OFD Sender: No OFD packet to send [14:03:55]OFD Sender: No OFD packet to send [14:04:00]OFD Sender: No OFD packet to send [14:04:05]OFD Sender: No OFD packet to send [14:04:10]OFD Sender: No OFD packet to send [14:04:15]OFD Sender: No OFD packet to send [14:04:20]OFD Sender: No OFD packet to send [14:04:25]OFD Sender: No OFD packet to send [14:04:30]OFD Sender: No OFD packet to send [14:04:35]OFD Sender: No OFD packet to send [14:04:40]OFD Sender: No OFD packet to send [14:04:45]OFD Sender: No OFD packet to send [14:04:50]OFD Sender: No OFD packet to send [14:04:55]OFD Sender: No OFD packet to send [14:05:00]OFD Sender: No OFD packet to send [14:05:05]OFD Sender: No OFD packet to send [14:05:10]OFD Sender: No OFD packet to send [14:05:15]OFD Sender: No OFD packet to send [14:05:20]OFD Sender: No OFD packet to send [14:05:25]OFD Sender: No OFD packet to send [14:05:30]OFD Sender: No OFD packet to send [14:05:35]OFD Sender: No OFD packet to send [14:05:40]OFD Sender: No OFD packet to send [14:05:45]OFD Sender: No OFD packet to send [14:05:50]OFD Sender: No OFD packet to send [14:05:55]OFD Sender: No OFD packet to send [14:06:00]OFD Sender: No OFD packet to send [14:06:05]OFD Sender: No OFD packet to send [14:06:10]OFD Sender: No OFD packet to send [14:06:15]OFD Sender: No OFD packet to send [14:06:20]OFD Sender: No OFD packet to send [14:06:25]OFD Sender: No OFD packet to send [14:06:30]OFD Sender: No OFD packet to send [14:06:35]OFD Sender: No OFD packet to send [14:06:40]OFD Sender: No OFD packet to send [14:06:45]OFD Sender: No OFD packet to send [14:06:50]OFD Sender: No OFD packet to send [14:06:55]OFD Sender: No OFD packet to send [14:07:00]OFD Sender: No OFD packet to send [14:07:05]OFD Sender: No OFD packet to send [14:07:10]OFD Sender: No OFD packet to send [14:07:15]OFD Sender: No OFD packet to send [14:07:20]OFD Sender: No OFD packet to send [14:07:25]OFD Sender: No OFD packet to send [14:07:30]OFD Sender: No OFD packet to send [14:07:35]OFD Sender: No OFD packet to send [14:07:40]OFD Sender: No OFD packet to send [14:07:45]OFD Sender: No OFD packet to send [14:07:50]OFD Sender: No OFD packet to send [14:07:55]OFD Sender: No OFD packet to send [14:08:00]OFD Sender: No OFD packet to send [14:08:05]OFD Sender: No OFD packet to send [14:08:10]OFD Sender: No OFD packet to send [14:08:15]OFD Sender: No OFD packet to send [14:08:20]OFD Sender: No OFD packet to send [14:08:25]OFD Sender: No OFD packet to send [14:08:30]OFD Sender: No OFD packet to send [14:08:35]OFD Sender: No OFD packet to send [14:08:40]OFD Sender: No OFD packet to send [14:08:45]OFD Sender: No OFD packet to send [14:08:50]OFD Sender: No OFD packet to send [14:08:55]OFD Sender: No OFD packet to send [14:09:00]OFD Sender: No OFD packet to send [14:09:05]OFD Sender: No OFD packet to send [14:09:10]OFD Sender: No OFD packet to send [14:09:15]OFD Sender: No OFD packet to send [14:09:20]OFD Sender: No OFD packet to send [14:09:25]OFD Sender: No OFD packet to send [14:09:30]OFD Sender: No OFD packet to send [14:09:35]OFD Sender: No OFD packet to send [14:09:40]OFD Sender: No OFD packet to send [14:09:45]OFD Sender: No OFD packet to send [14:09:50]OFD Sender: No OFD packet to send [14:09:55]OFD Sender: No OFD packet to send [14:10:00]OFD Sender: No OFD packet to send [14:10:05]OFD Sender: No OFD packet to send [14:10:10]OFD Sender: No OFD packet to send [14:10:15]OFD Sender: No OFD packet to send [14:10:20]OFD Sender: No OFD packet to send [14:10:25]OFD Sender: No OFD packet to send [14:10:30]OFD Sender: No OFD packet to send [14:10:35]OFD Sender: No OFD packet to send [14:10:40]OFD Sender: No OFD packet to send [14:10:45]OFD Sender: No OFD packet to send [14:10:50]OFD Sender: No OFD packet to send [14:10:55]OFD Sender: No OFD packet to send [14:11:00]OFD Sender: No OFD packet to send [14:11:05]OFD Sender: No OFD packet to send [14:11:10]OFD Sender: No OFD packet to send [14:11:15]OFD Sender: No OFD packet to send [14:11:20]OFD Sender: No OFD packet to send [14:11:25]OFD Sender: No OFD packet to send [14:11:30]OFD Sender: No OFD packet to send [14:11:35]OFD Sender: No OFD packet to send [14:11:40]OFD Sender: No OFD packet to send [14:11:45]OFD Sender: No OFD packet to send [14:11:50]OFD Sender: No OFD packet to send [14:11:55]OFD Sender: No OFD packet to send [14:12:00]OFD Sender: No OFD packet to send [14:12:05]OFD Sender: No OFD packet to send [14:12:10]OFD Sender: No OFD packet to send [14:12:15]OFD Sender: No OFD packet to send [14:12:20]OFD Sender: No OFD packet to send [14:12:25]OFD Sender: No OFD packet to send [14:12:30]OFD Sender: No OFD packet to send [14:12:35]OFD Sender: No OFD packet to send [14:12:40]OFD Sender: No OFD packet to send [14:12:45]OFD Sender: No OFD packet to send [14:12:50]OFD Sender: No OFD packet to send [14:12:55]OFD Sender: No OFD packet to send [14:13:00]OFD Sender: No OFD packet to send [14:13:05]OFD Sender: No OFD packet to send [14:13:10]OFD Sender: No OFD packet to send [14:13:13]accept exits with 9 [14:13:13]New connection [14:13:13]New thread 3066568036 created [14:13:13]Thread 3066711396 joined [14:13:13]Waiting for new connection... [14:13:13] Sock 9.Parse request [14:13:13]Sock 9.Check first char [14:13:13]Sock 9.First char is OK [14:13:13]request: POST /json_proto HTTP/1.0 [14:13:13]Method: POST [14:13:13]URL: /json_proto [14:13:13]Method is POST - this is cgi request [14:13:13]url: /json_proto [14:13:13]query_string will be loaded in cgi processing [14:13:13]execute_cgi json_proto POST (null) [14:13:13]execute_cgi path=json_proto method=POST [14:13:13]POST find Content-Length [14:13:13]Host: 172.17.50.3:8080 [14:13:13]Content-Length: 678 [14:13:13]Content-Type: application/json [14:13:13] [14:13:13]POST finish read [14:13:13]Found Content-Length = 678 [14:13:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:13]execute_script... [14:13: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)2885099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:13]POST & json_proto [14:13:13]process_json_proto [14:13:13]json parsed OK: [14:13:13]protocol is kg_v1.0 [14:13:13]action value=close_receipt [14:13:13]process_action close_receipt [14:13:13]cmd_close_receipt [14:13:13]MH_GetDate [14:13:13]Write to MH i2c: F0 00 00 64 07 5A [14:13:13]Write i2c OK [14:13:13]MH_I2C_Read... [14:13:13]Read from MH i2c: F0 [14:13:13]MH_I2C_Read... [14:13:13]Read from MH i2c: F0 09 00 [14:13:13]MH_I2C_Read... [14:13:13]Read from MH i2c: F0 09 00 64 07 00 F9 0F 15 67 6B 98 1E 66 6E [14:13:13]GetLastDocTimeStamp 1729432712 [14:13:13]current date 1729433593 [14:13:13]FM_GetShiftState [14:13:13]SAM_PROTO_GetShiftState [14:13:13]wFMCommunicate request_size=4 [14:13:13]MH_SAM_APDU [14:13:13]CAPDU: 80 13 01 00 [14:13:13]Write to MH i2c: E2 08 00 65 07 80 13 01 00 00 00 00 00 E9 [14:13:13]Write i2c OK [14:13:13]MH_I2C_Read... [14:13:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:13]Read from MH i2c: E2 [14:13:13]MH_I2C_Read... [14:13:13]Read from MH i2c: E2 0E 00 [14:13:13]MH_I2C_Read... [14:13:13]Read from MH i2c: E2 0E 00 65 07 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 EF [14:13:13]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [14:13:13]wFMCommunicate OK [14:13:13]SAM_PROTO_GetShiftState done [14:13:13]FM_GetShiftState done [14:13:13]opened in 1729383220 [14:13:13]opened+sec_in_day 1729469620 [14:13:13]quantity*price = 50041 [14:13:13]sum+1 = 50042 [14:13:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 220 20.10.2024 14:13 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69375 ФПД: 2201555582029 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T141313&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69375&fm=2201555582029&tin=02508201610067®Number=0000000000156251&sum=50000 [14:13:14]StoreToDocumentArchive [14:13:14]shift 193 fd 69375 [14:13:14]save to /storage/0193/doc_00069375 [14:13:14]save last doc name /storage/0193/doc_00069375 to /storage/kkm_last_doc_name [14:13:14]save OK [14:13:14]Clear old archive folders... [14:13:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:13:14]tlvbuf is 0023FDB0 [14:13:14]SAM_PROTO_ClearQueue [14:13:14]wFMCommunicate request_size=4 [14:13:14]MH_SAM_APDU [14:13:14]CAPDU: 80 09 00 00 [14:13:14]Write to MH i2c: E2 08 00 72 07 80 09 00 00 00 00 00 00 EB [14:13:14]Write i2c OK [14:13:14]MH_I2C_Read... [14:13:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:13:14]Read from MH i2c: E2 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: E2 03 00 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: E2 03 00 72 07 00 90 00 ED [14:13:14]RAPDU: 90 00 [14:13:14]wFMCommunicate OK [14:13:14]SAM_PROTO_ClearQueue done [14:13:14]KKMCreateOFDPacket [14:13:14]OFDProtocolAddRootSTLVToBuf [14:13:14]FM_MakeSignedData [14:13:14]FM_MakeSignedData [14:13:14]SAM_PROTO_SignData [14:13:14]wFMCommunicate request_size=4 [14:13:14]MH_SAM_APDU [14:13:14]CAPDU: 80 0D 01 02 [14:13:14]Write to MH i2c: E2 08 00 73 07 80 0D 01 02 00 00 00 00 F3 [14:13:14]Write i2c OK [14:13:14]MH_I2C_Read... [14:13:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:13:14]Read from MH i2c: E2 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: E2 03 00 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: E2 03 00 73 07 00 90 00 EE [14:13:14]RAPDU: 90 00 [14:13:14]wFMCommunicate OK [14:13:14]wFMCommunicate request_size=255 [14:13:14]MH_SAM_APDU [14:13: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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 F9 0F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FF 0E 01 00 35 04 06 00 02 [14:13:14]Write to MH i2c: E2 02 01 74 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 F9 0F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FF 0E 01 00 35 04 06 00 02 00 00 AD [14:13:14]Write i2c OK [14:13:14]MH_I2C_Read... [14:13:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:14]Read from MH i2c: E2 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: E2 03 00 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: E2 03 00 74 07 00 90 00 EF [14:13:14]RAPDU: 90 00 [14:13:14]wFMCommunicate OK [14:13:14]wFMCommunicate request_size=10 [14:13:14]MH_SAM_APDU [14:13:14]CAPDU: 80 0D 02 02 05 00 96 F0 3C 4D [14:13:14]Write to MH i2c: E2 0D 00 75 07 80 0D 02 02 05 00 00 96 F0 3C 4D 00 00 0F [14:13:14]Write i2c OK [14:13:14]MH_I2C_Read... [14:13:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:14]Read from MH i2c: E2 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: E2 03 00 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: E2 03 00 75 07 00 90 00 F0 [14:13:14]RAPDU: 90 00 [14:13:14]wFMCommunicate OK [14:13:14]wFMCommunicate request_size=4 [14:13:14]MH_SAM_APDU [14:13:14]CAPDU: 80 0D 03 02 [14:13:14]Write to MH i2c: E2 08 00 76 07 80 0D 03 02 00 00 00 00 F8 [14:13:14]Write i2c OK [14:13:14]MH_I2C_Read... [14:13:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:13:14]Read from MH i2c: E2 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: E2 0B 00 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: E2 0B 00 76 07 00 49 DA 11 70 D9 0E 57 C0 90 00 9B [14:13:14]RAPDU: 49 DA 11 70 D9 0E 57 C0 90 00 [14:13:14]wFMCommunicate OK [14:13:14]SAM_PROTO_SignData done [14:13:14]FM_MakeSignedData done [14:13:14]CreateOFDProtocolMessage [14:13:14]wFMCommunicate request_size=4 [14:13:14]MH_SAM_APDU [14:13:14]CAPDU: 80 11 00 00 [14:13:14]Write to MH i2c: E2 08 00 77 07 80 11 00 00 00 00 00 00 F8 [14:13:14]Write i2c OK [14:13:14]MH_I2C_Read... [14:13:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:14]Read from MH i2c: E2 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: E2 17 00 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: E2 17 00 77 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4A [14:13:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:13:14]wFMCommunicate OK [14:13:14]CreateOFDProtocolMessage done [14:13:14]OFDSenderStorePacket 69375 [14:13:14]StoreOFDPacket docnum=69375 [14:13:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 38 A9 07 01 C1 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 F9 0F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FF 0E 01 00 35 04 06 00 02 00 96 F0 3C 4D 49 DA 11 70 D9 0E 57 C0 [14:13:14]CheckFolder [14:13:14]dirname=/storage/ofd_packets [14:13:14]CheckFolder done [14:13:14]ProducePacketName [14:13:14]name=ofd_packets/00069375 [14:13:14]NVStorageSaveData ofd_packets/00069375 [14:13:14]File name is /storage/ofd_packets/00069375 [14:13:14]Write 301 bytes [14:13:14]NVStorageSaveData done [14:13:14]OFDSenderStorePacket done [14:13:14]KKMCreateOFDPacket done [14:13:14]NVStorageSaveData kkm_last_timestamp [14:13:14]File name is /storage/kkm_last_timestamp [14:13:14]Write 4 bytes [14:13:14]NVStorageSaveData done [14:13:14]ExternCall_PrintAddStr [14:13:14]wPrintStart [14:13:14]Write to MH i2c: 01 00 00 78 07 7F [14:13:14]Write i2c OK [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: 01 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: 01 07 00 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: 01 07 00 78 07 00 00 00 00 00 FF 0F 94 [14:13:14]RasterBufferAndPrint [14:13:14]line Счет N : (1)2885099 [14:13:14]line ИНН: 02508201610067 [14:13:14]line Контрольно-Кассовый Чек [14:13:14]line ПРОДАЖА [14:13:14]line ТРК (МРК, ГНК) : 32 [14:13:14]line Товар: 2710124130 [14:13:14]line Аи-92-К-5 [14:13:14]line 7.480 * 66.90 [14:13:14]line = 500.41 [14:13:14]line НДС 12% НСП 1% [14:13:14]line > о реализуемом товаре [14:13:14]line ОКРУГЛЕНИЕ: -0.41 [14:13:14]line ИТОГО: 500.00 [14:13:14]line Внесено: 500.00 [14:13:14]line СДАЧА: 0.00 [14:13:14]line НСП 1% : 4.43 [14:13:14]line НДС 12% : 53.14 [14:13:14]line Наличными: 500.00 [14:13:14]line Безнал.: 0.00 [14:13:14]line Место: АЗС № 85 "Партнер Нефть" [14:13:14]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:13:14]line СНО: Общий режим [14:13:14]line Чек 220 20.10.2024 14:13 [14:13:15]line Смена: 193 ФФД: 1.0 [14:13:15]line ЗНМ: 0300000167 [14:13:15]line РНМ: 0000000000156251 [14:13:15]line Версия ККМ: v1.0 [14:13:15]line ФМ: 0000000000963346 [14:13:15]line ФД: 69375 [14:13:15]line ФПД: 2201555582029 [14:13:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T141313&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69375&fm=2201555582029&tin=02508201610067®Number=0000000000156251&sum=50000 [14:13:15]OFD Sender: Processing packet 69375 [packets to send 18, broken 17] [14:13:15]ProducePacketName [14:13:15]name=ofd_packets/00069375 [14:13:15]OFD Sender: To server: pG, [14:13:15]CommunicateWithHost lk.salyk.kg:30040 [14:13:15]ConnectInit lk.salyk.kg [14:13:15]written 0, free lines is 4095 [14:13:15]Connected sock=10 [14:13:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 38 A9 07 01 C1 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 F9 0F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FF 0E 01 00 35 04 06 00 02 00 96 F0 3C 4D 49 DA 11 70 D9 0E 57 C0 [14:13:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 F5 FB 47 00 93 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FF 0E 01 00 F4 03 04 00 9F B9 14 67 B6 04 01 00 00 93 D5 C2 73 20 3A 4A 72 [14:13:15]CommunicateWithHost err = 0 [14:13:15]CheckOFDResponse [14:13:15]1017 (14) - 77093643461234 [14:13:15]1041 (16) - 0000000000963346 [14:13:15]1040 (4) - 69375 [14:13:15]1012 (4) - 20.10.2024 08:04 [14:13:15]1206 (1) - 0 [14:13:15]OFD Sender: Remove packet 69375 [14:13:15]ProducePacketName [14:13:15]name=ofd_packets/00069375 [14:13:15]NVStorageDeleteData [14:13:15]Write to MH i2c: 01 00 00 A3 07 AA [14:13:15]Write i2c OK [14:13:15]MH_I2C_Read... [14:13:15]Read from MH i2c: 01 [14:13:15]MH_I2C_Read... [14:13:15]Read from MH i2c: 01 07 00 [14:13:15]MH_I2C_Read... [14:13:15]Read from MH i2c: 01 07 00 A3 07 00 00 00 00 00 F8 0C B5 [14:13:15]RasterBufferAndPrint [14:13:15]line [14:13:15]line [14:13:15]line [14:13:15]line [14:13:15]line [14:13:15]written 0, free lines is 3327 [14:13:15]MH_Cut [14:13:15]Write to MH i2c: D1 01 00 AA 07 01 83 [14:13:15]Write i2c OK [14:13:15]MH_I2C_Read... [14:13:15]Read from MH i2c: D1 [14:13:15]MH_I2C_Read... [14:13:15]Read from MH i2c: D1 01 00 [14:13:15]MH_I2C_Read... [14:13:15]Read from MH i2c: D1 01 00 AA 07 00 82 [14:13:15]Write to MH i2c: 01 00 00 AB 07 B2 [14:13:15]Write i2c OK [14:13:15]MH_I2C_Read... [14:13:15]OFD Sender: No OFD packet to send [14:13:16]*** Cut start [14:13:16]*** Partial cut [14:13:16]*** CUTSNS_PIN = 1 [14:13:16]*** CUTSNS_PIN = 0 [14:13:16]*** Brake cut motor [14:13:16]Read from MH i2c: 01 [14:13:16]MH_I2C_Read... [14:13:16]*** Stop cut motor [14:13:16]*** Cut end [14:13:16]Read from MH i2c: 01 07 00 [14:13:16]MH_I2C_Read... [14:13:16]Read from MH i2c: 01 07 00 AB 07 00 00 00 00 00 FF 0F C7 [14:13:16]process_action close_receipt done [14:13:16]requested_data is exist [14:13:16]produce_requested_data [14:13:16]requested_item fm.sn is exist - process it [14:13:16]wFMCommunicate request_size=4 [14:13:16]MH_SAM_APDU [14:13:16]CAPDU: 80 11 00 00 [14:13:16]Write to MH i2c: E2 08 00 AC 07 80 11 00 00 00 00 00 00 2D [14:13:16]Write i2c OK [14:13:16]MH_I2C_Read... [14:13:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:16]Read from MH i2c: E2 [14:13:16]MH_I2C_Read... [14:13:16]Read from MH i2c: E2 17 00 [14:13:16]MH_I2C_Read... [14:13:16]Read from MH i2c: E2 17 00 AC 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7F [14:13:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:13:16]wFMCommunicate OK [14:13:16]requested_item fd.num is exist - process it [14:13:16]SAM_PROTO_GetFieldsCounters [14:13:16]wFMCommunicate request_size=4 [14:13:16]MH_SAM_APDU [14:13:16]CAPDU: 80 13 00 00 [14:13:16]Write to MH i2c: E2 08 00 AD 07 80 13 00 00 00 00 00 00 30 [14:13:16]Write i2c OK [14:13:16]MH_I2C_Read... [14:13:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:16]Read from MH i2c: E2 [14:13:16]MH_I2C_Read... [14:13:16]Read from MH i2c: E2 62 00 [14:13:16]MH_I2C_Read... [14:13:16]Read from MH i2c: E2 62 00 AD 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FF 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [14:13:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FF 0E 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:13:16]wFMCommunicate OK [14:13:16]SAM_PROTO_GetFieldsCounters done [14:13:16]requested_item shift.num is exist - process it [14:13:16]requested_item shift.opened is exist - process it [14:13:17]req_shift_opened [14:13:17]FM_GetShiftState [14:13:17]SAM_PROTO_GetShiftState [14:13:17]wFMCommunicate request_size=4 [14:13:17]MH_SAM_APDU [14:13:17]CAPDU: 80 13 01 00 [14:13:17]Write to MH i2c: E2 08 00 AE 07 80 13 01 00 00 00 00 00 32 [14:13:17]Write i2c OK [14:13:17]MH_I2C_Read... [14:13:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:17]Read from MH i2c: E2 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 0E 00 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 0E 00 AE 07 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 38 [14:13:17]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [14:13:17]wFMCommunicate OK [14:13:17]SAM_PROTO_GetShiftState done [14:13:17]FM_GetShiftState done [14:13:17]req_shift_opened done [14:13:17]requested_item shift.open_date is exist - process it [14:13:17]req_shift_open_date [14:13:17]req_shift_open_date done [14:13:17]produce_requested_data done [14:13:17]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69375,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [14:13:17]process_action_free close_receipt [14:13:17]json_value_free [14:13:17]json_value_free done [14:13:17]process_json_proto returns [14:13:17]Send response to host [14:13:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69375,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [14:13:17]free response buf [14:13:17]execute_script done [14:13:17]execute_script returns [14:13:17]free content buf [14:13:17]Sock 9.Close socket [14:13:17]Sock 9.Thread stoped [14:13:20]OFD Sender: No OFD packet to send [14:13:25]OFD Sender: No OFD packet to send [14:13:30]OFD Sender: No OFD packet to send [14:13:35]OFD Sender: No OFD packet to send [14:13:40]OFD Sender: No OFD packet to send [14:13:45]OFD Sender: No OFD packet to send [14:13:50]OFD Sender: No OFD packet to send [14:13:55]OFD Sender: No OFD packet to send [14:14:00]OFD Sender: No OFD packet to send [14:14:05]OFD Sender: No OFD packet to send [14:14:10]OFD Sender: No OFD packet to send [14:14:15]OFD Sender: No OFD packet to send [14:14:20]OFD Sender: No OFD packet to send [14:14:25]OFD Sender: No OFD packet to send [14:14:30]OFD Sender: No OFD packet to send [14:14:35]OFD Sender: No OFD packet to send [14:14:40]OFD Sender: No OFD packet to send [14:14:45]OFD Sender: No OFD packet to send [14:14:50]OFD Sender: No OFD packet to send [14:14:55]OFD Sender: No OFD packet to send [14:15:00]OFD Sender: No OFD packet to send [14:15:05]OFD Sender: No OFD packet to send [14:15:10]OFD Sender: No OFD packet to send [14:15:15]OFD Sender: No OFD packet to send [14:15:20]OFD Sender: No OFD packet to send [14:15:25]OFD Sender: No OFD packet to send [14:15:30]OFD Sender: No OFD packet to send [14:15:35]OFD Sender: No OFD packet to send [14:15:40]OFD Sender: No OFD packet to send [14:15:45]OFD Sender: No OFD packet to send [14:15:50]OFD Sender: No OFD packet to send [14:15:55]OFD Sender: No OFD packet to send [14:16:00]OFD Sender: No OFD packet to send [14:16:05]OFD Sender: No OFD packet to send [14:16:10]OFD Sender: No OFD packet to send [14:16:15]OFD Sender: No OFD packet to send [14:16:20]OFD Sender: No OFD packet to send [14:16:26]OFD Sender: No OFD packet to send [14:16:31]OFD Sender: No OFD packet to send [14:16:36]OFD Sender: No OFD packet to send [14:16:41]OFD Sender: No OFD packet to send [14:16:46]OFD Sender: No OFD packet to send [14:16:51]OFD Sender: No OFD packet to send [14:16:56]OFD Sender: No OFD packet to send [14:17:01]OFD Sender: No OFD packet to send [14:17:06]OFD Sender: No OFD packet to send [14:17:11]OFD Sender: No OFD packet to send [14:17:16]OFD Sender: No OFD packet to send [14:17:21]OFD Sender: No OFD packet to send [14:17:26]OFD Sender: No OFD packet to send [14:17:31]OFD Sender: No OFD packet to send [14:17:36]OFD Sender: No OFD packet to send [14:17:41]OFD Sender: No OFD packet to send [14:17:46]OFD Sender: No OFD packet to send [14:17:51]OFD Sender: No OFD packet to send [14:17:56]OFD Sender: No OFD packet to send [14:18:01]OFD Sender: No OFD packet to send [14:18:06]OFD Sender: No OFD packet to send [14:18:11]OFD Sender: No OFD packet to send [14:18:16]OFD Sender: No OFD packet to send [14:18:21]OFD Sender: No OFD packet to send [14:18:26]OFD Sender: No OFD packet to send [14:18:31]OFD Sender: No OFD packet to send [14:18:36]OFD Sender: No OFD packet to send [14:18:41]OFD Sender: No OFD packet to send [14:18:46]OFD Sender: No OFD packet to send [14:18:51]OFD Sender: No OFD packet to send [14:18:56]OFD Sender: No OFD packet to send [14:19:01]OFD Sender: No OFD packet to send [14:19:06]OFD Sender: No OFD packet to send [14:19:11]OFD Sender: No OFD packet to send [14:19:16]OFD Sender: No OFD packet to send [14:19:21]OFD Sender: No OFD packet to send [14:19:26]OFD Sender: No OFD packet to send [14:19:31]OFD Sender: No OFD packet to send [14:19:36]OFD Sender: No OFD packet to send [14:19:41]OFD Sender: No OFD packet to send [14:19:46]OFD Sender: No OFD packet to send [14:19:51]OFD Sender: No OFD packet to send [14:19:56]OFD Sender: No OFD packet to send [14:20:01]OFD Sender: No OFD packet to send [14:20:06]OFD Sender: No OFD packet to send [14:20:11]OFD Sender: No OFD packet to send [14:20:16]OFD Sender: No OFD packet to send [14:20:21]OFD Sender: No OFD packet to send [14:20:26]OFD Sender: No OFD packet to send [14:20:31]OFD Sender: No OFD packet to send [14:20:36]OFD Sender: No OFD packet to send [14:20:41]OFD Sender: No OFD packet to send [14:20:46]OFD Sender: No OFD packet to send [14:20:50]accept exits with 8 [14:20:50]New connection [14:20:50]New thread 3066711396 created [14:20:50]Thread 3066568036 joined [14:20:50]Waiting for new connection... [14:20:50] Sock 8.Parse request [14:20:50]Sock 8.Check first char [14:20:50]Sock 8.First char is OK [14:20:50]request: POST /json_proto HTTP/1.0 [14:20:50]Method: POST [14:20:50]URL: /json_proto [14:20:50]Method is POST - this is cgi request [14:20:50]url: /json_proto [14:20:50]query_string will be loaded in cgi processing [14:20:50]execute_cgi json_proto POST (null) [14:20:50]execute_cgi path=json_proto method=POST [14:20:50]POST find Content-Length [14:20:50]Host: 172.17.50.3:8080 [14:20:50]Content-Length: 683 [14:20:50]Content-Type: application/json [14:20:50] [14:20:50]POST finish read [14:20:50]Found Content-Length = 683 [14:20:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:50]execute_script... [14:20: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)2885101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:50]POST & json_proto [14:20:50]process_json_proto [14:20:50]json parsed OK: [14:20:50]protocol is kg_v1.0 [14:20:50]action value=close_receipt [14:20:50]process_action close_receipt [14:20:50]cmd_close_receipt [14:20:50]MH_GetDate [14:20:50]Write to MH i2c: F0 00 00 AF 07 A5 [14:20:50]Write i2c OK [14:20:50]MH_I2C_Read... [14:20:50]Read from MH i2c: F0 [14:20:50]MH_I2C_Read... [14:20:50]Read from MH i2c: F0 09 00 [14:20:50]MH_I2C_Read... [14:20:50]Read from MH i2c: F0 09 00 AF 07 00 C3 11 15 67 6B 98 1E 66 85 [14:20:50]GetLastDocTimeStamp 1729433593 [14:20:50]current date 1729434051 [14:20:50]FM_GetShiftState [14:20:50]SAM_PROTO_GetShiftState [14:20:50]wFMCommunicate request_size=4 [14:20:50]MH_SAM_APDU [14:20:50]CAPDU: 80 13 01 00 [14:20:50]Write to MH i2c: E2 08 00 B0 07 80 13 01 00 00 00 00 00 34 [14:20:50]Write i2c OK [14:20:50]MH_I2C_Read... [14:20:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:50]Read from MH i2c: E2 [14:20:50]MH_I2C_Read... [14:20:50]Read from MH i2c: E2 0E 00 [14:20:50]MH_I2C_Read... [14:20:50]Read from MH i2c: E2 0E 00 B0 07 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 3A [14:20:50]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [14:20:50]wFMCommunicate OK [14:20:50]SAM_PROTO_GetShiftState done [14:20:50]FM_GetShiftState done [14:20:50]opened in 1729383220 [14:20:50]opened+sec_in_day 1729469620 [14:20:50]quantity*price = 100015 [14:20:50]sum+1 = 100017 [14:20:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 221 20.10.2024 14:20 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69376 ФПД: 243209269377993 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T142051&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69376&fm=243209269377993&tin=02508201610067®Number=0000000000156251&sum=100000 [14:20:51]StoreToDocumentArchive [14:20:51]shift 193 fd 69376 [14:20:51]save to /storage/0193/doc_00069376 [14:20:51]save last doc name /storage/0193/doc_00069376 to /storage/kkm_last_doc_name [14:20:51]save OK [14:20:51]Clear old archive folders... [14:20:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:20:51]tlvbuf is 0023FAC0 [14:20:51]SAM_PROTO_ClearQueue [14:20:51]wFMCommunicate request_size=4 [14:20:51]MH_SAM_APDU [14:20:51]CAPDU: 80 09 00 00 [14:20:51]Write to MH i2c: E2 08 00 BD 07 80 09 00 00 00 00 00 00 36 [14:20:51]Write i2c OK [14:20:51]MH_I2C_Read... [14:20:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:20:51]Read from MH i2c: E2 [14:20:51]MH_I2C_Read... [14:20:51]Read from MH i2c: E2 03 00 [14:20:51]MH_I2C_Read... [14:20:51]Read from MH i2c: E2 03 00 BD 07 00 90 00 38 [14:20:51]RAPDU: 90 00 [14:20:51]wFMCommunicate OK [14:20:51]SAM_PROTO_ClearQueue done [14:20:51]KKMCreateOFDPacket [14:20:51]OFDProtocolAddRootSTLVToBuf [14:20:51]FM_MakeSignedData [14:20:51]FM_MakeSignedData [14:20:51]SAM_PROTO_SignData [14:20:51]wFMCommunicate request_size=4 [14:20:51]MH_SAM_APDU [14:20:51]CAPDU: 80 0D 01 02 [14:20:51]Write to MH i2c: E2 08 00 BE 07 80 0D 01 02 00 00 00 00 3E [14:20:51]Write i2c OK [14:20:51]MH_I2C_Read... [14:20:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:20:52]Read from MH i2c: E2 [14:20:52]MH_I2C_Read... [14:20:52]Read from MH i2c: E2 03 00 [14:20:52]MH_I2C_Read... [14:20:52]Read from MH i2c: E2 03 00 BE 07 00 90 00 39 [14:20:52]RAPDU: 90 00 [14:20:52]wFMCommunicate OK [14:20:52]wFMCommunicate request_size=255 [14:20:52]MH_SAM_APDU [14:20:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 C3 11 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 00 0F 01 00 35 04 06 00 DD [14:20:52]Write to MH i2c: E2 02 01 BF 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 C3 11 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 00 0F 01 00 35 04 06 00 DD 00 00 9C [14:20:52]Write i2c OK [14:20:52]MH_I2C_Read... [14:20:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:52]Read from MH i2c: E2 [14:20:52]MH_I2C_Read... [14:20:52]Read from MH i2c: E2 03 00 [14:20:52]MH_I2C_Read... [14:20:52]Read from MH i2c: E2 03 00 BF 07 00 90 00 3A [14:20:52]RAPDU: 90 00 [14:20:52]wFMCommunicate OK [14:20:52]wFMCommunicate request_size=10 [14:20:52]MH_SAM_APDU [14:20:52]CAPDU: 80 0D 02 02 05 32 92 1B 7B C9 [14:20:52]Write to MH i2c: E2 0D 00 C0 07 80 0D 02 02 05 00 32 92 1B 7B C9 00 00 6E [14:20:52]Write i2c OK [14:20:52]MH_I2C_Read... [14:20:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:52]Read from MH i2c: E2 [14:20:52]MH_I2C_Read... [14:20:52]Read from MH i2c: E2 03 00 [14:20:52]MH_I2C_Read... [14:20:52]Read from MH i2c: E2 03 00 C0 07 00 90 00 3B [14:20:52]RAPDU: 90 00 [14:20:52]wFMCommunicate OK [14:20:52]wFMCommunicate request_size=4 [14:20:52]MH_SAM_APDU [14:20:52]CAPDU: 80 0D 03 02 [14:20:52]Write to MH i2c: E2 08 00 C1 07 80 0D 03 02 00 00 00 00 43 [14:20:52]Write i2c OK [14:20:52]MH_I2C_Read... [14:20:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:20:52]Read from MH i2c: E2 [14:20:52]MH_I2C_Read... [14:20:52]Read from MH i2c: E2 0B 00 [14:20:52]MH_I2C_Read... [14:20:52]Read from MH i2c: E2 0B 00 C1 07 00 DD 87 CA AF 01 74 65 CA 90 00 C5 [14:20:52]RAPDU: DD 87 CA AF 01 74 65 CA 90 00 [14:20:52]wFMCommunicate OK [14:20:52]SAM_PROTO_SignData done [14:20:52]FM_MakeSignedData done [14:20:52]CreateOFDProtocolMessage [14:20:52]wFMCommunicate request_size=4 [14:20:52]MH_SAM_APDU [14:20:52]CAPDU: 80 11 00 00 [14:20:52]Write to MH i2c: E2 08 00 C2 07 80 11 00 00 00 00 00 00 43 [14:20:52]Write i2c OK [14:20:52]MH_I2C_Read... [14:20:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:52]Read from MH i2c: E2 [14:20:52]MH_I2C_Read... [14:20:52]Read from MH i2c: E2 17 00 [14:20:52]MH_I2C_Read... [14:20:52]Read from MH i2c: E2 17 00 C2 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 95 [14:20:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:20:52]wFMCommunicate OK [14:20:52]CreateOFDProtocolMessage done [14:20:52]OFDSenderStorePacket 69376 [14:20:52]StoreOFDPacket docnum=69376 [14:20:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 EA B1 07 01 CF E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 C3 11 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 00 0F 01 00 35 04 06 00 DD 32 92 1B 7B C9 DD 87 CA AF 01 74 65 CA [14:20:52]CheckFolder [14:20:52]dirname=/storage/ofd_packets [14:20:52]CheckFolder done [14:20:52]ProducePacketName [14:20:52]name=ofd_packets/00069376 [14:20:52]NVStorageSaveData ofd_packets/00069376 [14:20:52]File name is /storage/ofd_packets/00069376 [14:20:52]Write 301 bytes [14:20:52]NVStorageSaveData done [14:20:52]OFDSenderStorePacket done [14:20:52]KKMCreateOFDPacket done [14:20:52]NVStorageSaveData kkm_last_timestamp [14:20:52]File name is /storage/kkm_last_timestamp [14:20:52]Write 4 bytes [14:20:52]NVStorageSaveData done [14:20:52]ExternCall_PrintAddStr [14:20:52]wPrintStart [14:20:52]Write to MH i2c: 01 00 00 C3 07 CA [14:20:52]Write i2c OK [14:20:52]MH_I2C_Read... [14:20:52]Read from MH i2c: 01 [14:20:52]MH_I2C_Read... [14:20:52]Read from MH i2c: 01 07 00 [14:20:52]MH_I2C_Read... [14:20:52]Read from MH i2c: 01 07 00 C3 07 00 00 00 00 00 FF 0F DF [14:20:52]RasterBufferAndPrint [14:20:52]line Счет N : (1)2885101 [14:20:52]line ИНН: 02508201610067 [14:20:52]line Контрольно-Кассовый Чек [14:20:52]line ПРОДАЖА [14:20:52]line ТРК (МРК, ГНК) : 42 [14:20:52]line Товар: 2710124130 [14:20:52]line Аи-92-К-5 [14:20:52]line 14.950 * 66.90 [14:20:52]line = 1000.16 [14:20:52]line НДС 12% НСП 1% [14:20:52]line > о реализуемом товаре [14:20:52]line ОКРУГЛЕНИЕ: -0.16 [14:20:52]line ИТОГО: 1000.00 [14:20:52]line Внесено: 1000.00 [14:20:52]line СДАЧА: 0.00 [14:20:52]line НСП 1% : 8.85 [14:20:52]line НДС 12% : 106.21 [14:20:52]line Наличными: 1000.00 [14:20:52]line Безнал.: 0.00 [14:20:52]line Место: АЗС № 85 "Партнер Нефть" [14:20:52]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:20:52]line СНО: Общий режим [14:20:52]line Чек 221 20.10.2024 14:20 [14:20:52]line Смена: 193 ФФД: 1.0 [14:20:52]line ЗНМ: 0300000167 [14:20:52]line РНМ: 0000000000156251 [14:20:52]line Версия ККМ: v1.0 [14:20:52]line ФМ: 0000000000963346 [14:20:52]line ФД: 69376 [14:20:52]line ФПД: 243209269377993 [14:20:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T142051&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69376&fm=243209269377993&tin=02508201610067®Number=0000000000156251&sum=100000 [14:20:52]OFD Sender: Processing packet 69376 [packets to send 18, broken 17] [14:20:52]ProducePacketName [14:20:52]name=ofd_packets/00069376 [14:20:52]OFD Sender: To server: pG, [14:20:52]CommunicateWithHost lk.salyk.kg:30040 [14:20:52]ConnectInit lk.salyk.kg [14:20:52]written 0, free lines is 4095 [14:20:52]Connected sock=10 [14:20:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 EA B1 07 01 CF E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 C3 11 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 00 0F 01 00 35 04 06 00 DD 32 92 1B 7B C9 DD 87 CA AF 01 74 65 CA [14:20:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 F3 04 47 00 E8 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 00 0F 01 00 F4 03 04 00 69 BB 14 67 B6 04 01 00 00 7E 96 A0 99 A7 8F 9B DC [14:20:53]CommunicateWithHost err = 0 [14:20:53]CheckOFDResponse [14:20:53]1017 (14) - 77093643461234 [14:20:53]1041 (16) - 0000000000963346 [14:20:53]1040 (4) - 69376 [14:20:53]1012 (4) - 20.10.2024 08:12 [14:20:53]1206 (1) - 0 [14:20:53]OFD Sender: Remove packet 69376 [14:20:53]ProducePacketName [14:20:53]name=ofd_packets/00069376 [14:20:53]NVStorageDeleteData [14:20:53]Write to MH i2c: 01 00 00 EE 07 F5 [14:20:53]Write i2c OK [14:20:53]MH_I2C_Read... [14:20:53]Read from MH i2c: 01 [14:20:53]MH_I2C_Read... [14:20:53]Read from MH i2c: 01 07 00 [14:20:53]MH_I2C_Read... [14:20:53]Read from MH i2c: 01 07 00 EE 07 00 00 00 00 00 FD 0C 05 [14:20:53]RasterBufferAndPrint [14:20:53]line [14:20:53]line [14:20:53]line [14:20:53]line [14:20:53]line [14:20:53]written 0, free lines is 3332 [14:20:53]MH_Cut [14:20:53]Write to MH i2c: D1 01 00 F5 07 01 CE [14:20:53]Write i2c OK [14:20:53]MH_I2C_Read... [14:20:53]Read from MH i2c: D1 [14:20:53]MH_I2C_Read... [14:20:53]Read from MH i2c: D1 01 00 [14:20:53]MH_I2C_Read... [14:20:53]Read from MH i2c: D1 01 00 F5 07 00 CD [14:20:53]Write to MH i2c: 01 00 00 F6 07 FD [14:20:53]Write i2c OK [14:20:53]MH_I2C_Read... [14:20:53]OFD Sender: No OFD packet to send [14:20:53]*** Cut start [14:20:53]*** Partial cut [14:20:53]*** CUTSNS_PIN = 1 [14:20:54]*** CUTSNS_PIN = 0 [14:20:54]*** Brake cut motor [14:20:54]Read from MH i2c: 01 [14:20:54]MH_I2C_Read... [14:20:54]*** Stop cut motor [14:20:54]*** Cut end [14:20:54]Read from MH i2c: 01 07 00 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: 01 07 00 F6 07 00 00 00 00 00 FF 0F 12 [14:20:54]process_action close_receipt done [14:20:54]requested_data is exist [14:20:54]produce_requested_data [14:20:54]requested_item fm.sn is exist - process it [14:20:54]wFMCommunicate request_size=4 [14:20:54]MH_SAM_APDU [14:20:54]CAPDU: 80 11 00 00 [14:20:54]Write to MH i2c: E2 08 00 F7 07 80 11 00 00 00 00 00 00 78 [14:20:54]Write i2c OK [14:20:54]MH_I2C_Read... [14:20:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:54]Read from MH i2c: E2 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 17 00 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 17 00 F7 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CA [14:20:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:20:54]wFMCommunicate OK [14:20:54]requested_item fd.num is exist - process it [14:20:54]SAM_PROTO_GetFieldsCounters [14:20:54]wFMCommunicate request_size=4 [14:20:54]MH_SAM_APDU [14:20:54]CAPDU: 80 13 00 00 [14:20:54]Write to MH i2c: E2 08 00 F8 07 80 13 00 00 00 00 00 00 7B [14:20:54]Write i2c OK [14:20:54]MH_I2C_Read... [14:20:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:20:54]Read from MH i2c: E2 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 62 00 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 62 00 F8 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 00 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [14:20:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 00 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:20:54]wFMCommunicate OK [14:20:54]SAM_PROTO_GetFieldsCounters done [14:20:54]requested_item shift.num is exist - process it [14:20:54]requested_item shift.opened is exist - process it [14:20:54]req_shift_opened [14:20:54]FM_GetShiftState [14:20:54]SAM_PROTO_GetShiftState [14:20:54]wFMCommunicate request_size=4 [14:20:54]MH_SAM_APDU [14:20:54]CAPDU: 80 13 01 00 [14:20:54]Write to MH i2c: E2 08 00 F9 07 80 13 01 00 00 00 00 00 7D [14:20:54]Write i2c OK [14:20:54]MH_I2C_Read... [14:20:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:54]Read from MH i2c: E2 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 0E 00 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 0E 00 F9 07 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 83 [14:20:54]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [14:20:54]wFMCommunicate OK [14:20:54]SAM_PROTO_GetShiftState done [14:20:54]FM_GetShiftState done [14:20:54]req_shift_opened done [14:20:54]requested_item shift.open_date is exist - process it [14:20:54]req_shift_open_date [14:20:54]req_shift_open_date done [14:20:54]produce_requested_data done [14:20:54]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69376,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [14:20:54]process_action_free close_receipt [14:20:54]json_value_free [14:20:54]json_value_free done [14:20:54]process_json_proto returns [14:20:54]Send response to host [14:20:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69376,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [14:20:54]free response buf [14:20:54]execute_script done [14:20:54]execute_script returns [14:20:54]free content buf [14:20:54]Sock 8.Close socket [14:20:54]Sock 8.Thread stoped [14:20:58]OFD Sender: No OFD packet to send [14:21:03]OFD Sender: No OFD packet to send [14:21:08]OFD Sender: No OFD packet to send [14:21:13]OFD Sender: No OFD packet to send [14:21:18]OFD Sender: No OFD packet to send [14:21:23]OFD Sender: No OFD packet to send [14:21:28]OFD Sender: No OFD packet to send [14:21:33]OFD Sender: No OFD packet to send [14:21:38]OFD Sender: No OFD packet to send [14:21:43]OFD Sender: No OFD packet to send [14:21:48]OFD Sender: No OFD packet to send [14:21:53]OFD Sender: No OFD packet to send [14:21:58]OFD Sender: No OFD packet to send [14:22:03]OFD Sender: No OFD packet to send [14:22:08]OFD Sender: No OFD packet to send [14:22:13]OFD Sender: No OFD packet to send [14:22:18]OFD Sender: No OFD packet to send [14:22:23]OFD Sender: No OFD packet to send [14:22:28]OFD Sender: No OFD packet to send [14:22:33]OFD Sender: No OFD packet to send [14:22:38]OFD Sender: No OFD packet to send [14:22:43]OFD Sender: No OFD packet to send [14:22:48]OFD Sender: No OFD packet to send [14:22:53]OFD Sender: No OFD packet to send [14:22:58]OFD Sender: No OFD packet to send [14:23:03]OFD Sender: No OFD packet to send [14:23:08]OFD Sender: No OFD packet to send [14:23:13]OFD Sender: No OFD packet to send [14:23:16]accept exits with 9 [14:23:16]New connection [14:23:16]New thread 3066568036 created [14:23:16]Thread 3066711396 joined [14:23:16]Waiting for new connection... [14:23:16] Sock 9.Parse request [14:23:16]Sock 9.Check first char [14:23:16]Sock 9.First char is OK [14:23:16]request: POST /json_proto HTTP/1.0 [14:23:16]Method: POST [14:23:16]URL: /json_proto [14:23:16]Method is POST - this is cgi request [14:23:16]url: /json_proto [14:23:16]query_string will be loaded in cgi processing [14:23:16]execute_cgi json_proto POST (null) [14:23:16]execute_cgi path=json_proto method=POST [14:23:16]POST find Content-Length [14:23:16]Host: 172.17.50.3:8080 [14:23:16]Content-Length: 675 [14:23:16]Content-Type: application/json [14:23:16] [14:23:16]POST finish read [14:23:16]Found Content-Length = 675 [14:23:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:16]execute_script... [14:23: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)2885102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:16]POST & json_proto [14:23:16]process_json_proto [14:23:16]json parsed OK: [14:23:16]protocol is kg_v1.0 [14:23:16]action value=close_receipt [14:23:16]process_action close_receipt [14:23:16]cmd_close_receipt [14:23:16]MH_GetDate [14:23:16]Write to MH i2c: F0 00 00 FA 07 F0 [14:23:16]Write i2c OK [14:23:16]MH_I2C_Read... [14:23:16]Read from MH i2c: F0 [14:23:16]MH_I2C_Read... [14:23:16]Read from MH i2c: F0 09 00 [14:23:16]MH_I2C_Read... [14:23:16]Read from MH i2c: F0 09 00 FA 07 00 55 12 15 67 6B 98 1E 66 63 [14:23:16]GetLastDocTimeStamp 1729434051 [14:23:16]current date 1729434197 [14:23:16]FM_GetShiftState [14:23:16]SAM_PROTO_GetShiftState [14:23:16]wFMCommunicate request_size=4 [14:23:16]MH_SAM_APDU [14:23:16]CAPDU: 80 13 01 00 [14:23:16]Write to MH i2c: E2 08 00 FB 07 80 13 01 00 00 00 00 00 7F [14:23:16]Write i2c OK [14:23:16]MH_I2C_Read... [14:23:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:16]Read from MH i2c: E2 [14:23:16]MH_I2C_Read... [14:23:16]Read from MH i2c: E2 0E 00 [14:23:16]MH_I2C_Read... [14:23:16]Read from MH i2c: E2 0E 00 FB 07 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 85 [14:23:16]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [14:23:16]wFMCommunicate OK [14:23:16]SAM_PROTO_GetShiftState done [14:23:16]FM_GetShiftState done [14:23:16]opened in 1729383220 [14:23:16]opened+sec_in_day 1729469620 [14:23:16]quantity*price = 40005 [14:23:16]sum+1 = 40006 [14:23:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 222 20.10.2024 14:23 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69377 ФПД: 157474159236026 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T142317&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69377&fm=157474159236026&tin=02508201610067®Number=0000000000156251&sum=40000 [14:23:18]StoreToDocumentArchive [14:23:18]shift 193 fd 69377 [14:23:18]save to /storage/0193/doc_00069377 [14:23:18]save last doc name /storage/0193/doc_00069377 to /storage/kkm_last_doc_name [14:23:18]save OK [14:23:18]Clear old archive folders... [14:23:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:23:18]tlvbuf is 00274300 [14:23:18]SAM_PROTO_ClearQueue [14:23:18]wFMCommunicate request_size=4 [14:23:18]MH_SAM_APDU [14:23:18]CAPDU: 80 09 00 00 [14:23:18]Write to MH i2c: E2 08 00 08 08 80 09 00 00 00 00 00 00 82 [14:23:18]Write i2c OK [14:23:18]MH_I2C_Read... [14:23:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:23:18]Read from MH i2c: E2 [14:23:18]MH_I2C_Read... [14:23:18]Read from MH i2c: E2 03 00 [14:23:18]MH_I2C_Read... [14:23:18]Read from MH i2c: E2 03 00 08 08 00 90 00 84 [14:23:18]RAPDU: 90 00 [14:23:18]wFMCommunicate OK [14:23:18]SAM_PROTO_ClearQueue done [14:23:18]KKMCreateOFDPacket [14:23:18]OFDProtocolAddRootSTLVToBuf [14:23:18]FM_MakeSignedData [14:23:18]FM_MakeSignedData [14:23:18]SAM_PROTO_SignData [14:23:18]wFMCommunicate request_size=4 [14:23:18]MH_SAM_APDU [14:23:18]CAPDU: 80 0D 01 02 [14:23:18]Write to MH i2c: E2 08 00 09 08 80 0D 01 02 00 00 00 00 8A [14:23:18]Write i2c OK [14:23:18]MH_I2C_Read... [14:23:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:23:18]Read from MH i2c: E2 [14:23:18]MH_I2C_Read... [14:23:18]Read from MH i2c: E2 03 00 [14:23:18]MH_I2C_Read... [14:23:18]Read from MH i2c: E2 03 00 09 08 00 90 00 85 [14:23:18]RAPDU: 90 00 [14:23:18]wFMCommunicate OK [14:23:18]wFMCommunicate request_size=255 [14:23:18]MH_SAM_APDU [14:23:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 55 12 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 01 0F 01 00 35 04 06 00 8F 38 CF 52 [14:23:18]Write to MH i2c: E2 02 01 0A 08 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 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 55 12 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 01 0F 01 00 35 04 06 00 8F 38 CF 52 00 00 77 [14:23:18]Write i2c OK [14:23:18]MH_I2C_Read... [14:23:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:18]Read from MH i2c: E2 [14:23:18]MH_I2C_Read... [14:23:18]Read from MH i2c: E2 03 00 [14:23:18]MH_I2C_Read... [14:23:18]Read from MH i2c: E2 03 00 0A 08 00 90 00 86 [14:23:18]RAPDU: 90 00 [14:23:18]wFMCommunicate OK [14:23:18]wFMCommunicate request_size=7 [14:23:18]MH_SAM_APDU [14:23:18]CAPDU: 80 0D 02 02 02 93 BA [14:23:18]Write to MH i2c: E2 0A 00 0B 08 80 0D 02 02 02 00 93 BA 00 00 DE [14:23:18]Write i2c OK [14:23:18]MH_I2C_Read... [14:23:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:18]Read from MH i2c: E2 [14:23:18]MH_I2C_Read... [14:23:18]Read from MH i2c: E2 03 00 [14:23:18]MH_I2C_Read... [14:23:18]Read from MH i2c: E2 03 00 0B 08 00 90 00 87 [14:23:18]RAPDU: 90 00 [14:23:18]wFMCommunicate OK [14:23:18]wFMCommunicate request_size=4 [14:23:18]MH_SAM_APDU [14:23:18]CAPDU: 80 0D 03 02 [14:23:18]Write to MH i2c: E2 08 00 0C 08 80 0D 03 02 00 00 00 00 8F [14:23:18]Write i2c OK [14:23:18]MH_I2C_Read... [14:23:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:23:18]Read from MH i2c: E2 [14:23:18]MH_I2C_Read... [14:23:18]Read from MH i2c: E2 0B 00 [14:23:18]MH_I2C_Read... [14:23:18]Read from MH i2c: E2 0B 00 0C 08 00 C9 1E 7C 85 C9 01 93 3B 90 00 10 [14:23:18]RAPDU: C9 1E 7C 85 C9 01 93 3B 90 00 [14:23:18]wFMCommunicate OK [14:23:18]SAM_PROTO_SignData done [14:23:18]FM_MakeSignedData done [14:23:18]CreateOFDProtocolMessage [14:23:18]wFMCommunicate request_size=4 [14:23:18]MH_SAM_APDU [14:23:18]CAPDU: 80 11 00 00 [14:23:18]Write to MH i2c: E2 08 00 0D 08 80 11 00 00 00 00 00 00 8F [14:23:18]Write i2c OK [14:23:18]MH_I2C_Read... [14:23:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:18]Read from MH i2c: E2 [14:23:18]MH_I2C_Read... [14:23:18]Read from MH i2c: E2 17 00 [14:23:18]MH_I2C_Read... [14:23:18]Read from MH i2c: E2 17 00 0D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E1 [14:23:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:23:18]wFMCommunicate OK [14:23:18]CreateOFDProtocolMessage done [14:23:18]OFDSenderStorePacket 69377 [14:23:18]StoreOFDPacket docnum=69377 [14:23:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 AB 55 04 01 A4 2E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 55 12 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 01 0F 01 00 35 04 06 00 8F 38 CF 52 93 BA C9 1E 7C 85 C9 01 93 3B [14:23:18]CheckFolder [14:23:18]dirname=/storage/ofd_packets [14:23:18]CheckFolder done [14:23:18]ProducePacketName [14:23:18]name=ofd_packets/00069377 [14:23:18]NVStorageSaveData ofd_packets/00069377 [14:23:18]File name is /storage/ofd_packets/00069377 [14:23:18]Write 298 bytes [14:23:18]NVStorageSaveData done [14:23:18]OFDSenderStorePacket done [14:23:18]KKMCreateOFDPacket done [14:23:18]NVStorageSaveData kkm_last_timestamp [14:23:18]File name is /storage/kkm_last_timestamp [14:23:18]Write 4 bytes [14:23:18]NVStorageSaveData done [14:23:18]OFD Sender: Processing packet 69377 [packets to send 18, broken 17] [14:23:18]ProducePacketName [14:23:18]name=ofd_packets/00069377 [14:23:18]OFD Sender: To server: pG, [14:23:18]CommunicateWithHost lk.salyk.kg:30040 [14:23:18]ConnectInit lk.salyk.kg [14:23:18]ExternCall_PrintAddStr [14:23:18]wPrintStart [14:23:18]Write to MH i2c: 01 00 00 0E 08 16 [14:23:18]Write i2c OK [14:23:18]MH_I2C_Read... [14:23:18]Read from MH i2c: 01 [14:23:18]MH_I2C_Read... [14:23:18]Read from MH i2c: 01 07 00 [14:23:18]MH_I2C_Read... [14:23:18]Read from MH i2c: 01 07 00 0E 08 00 00 00 00 00 FF 0F 2B [14:23:18]RasterBufferAndPrint [14:23:18]line Счет N : (1)2885102 [14:23:18]line ИНН: 02508201610067 [14:23:18]line Контрольно-Кассовый Чек [14:23:18]line ПРОДАЖА [14:23:18]line ТРК (МРК, ГНК) : 51 [14:23:18]line Товар: 2710194210 [14:23:18]line ДТ-К-5 [14:23:18]line 5.250 * 76.20 [14:23:18]line = 400.05 [14:23:18]line НДС 12% НСП 1% [14:23:18]line > о реализуемом товаре [14:23:18]line ОКРУГЛЕНИЕ: -0.05 [14:23:18]line ИТОГО: 400.00 [14:23:18]line Внесено: 400.00 [14:23:18]line СДАЧА: 0.00 [14:23:18]line НСП 1% : 3.54 [14:23:18]line НДС 12% : 42.48 [14:23:18]line Наличными: 400.00 [14:23:18]line Безнал.: 0.00 [14:23:18]line Место: АЗС № 85 "Партнер Нефть" [14:23:18]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:23:18]line СНО: Общий режим [14:23:18]line Чек 222 20.10.2024 14:23 [14:23:18]line Смена: 193 ФФД: 1.0 [14:23:18]line ЗНМ: 0300000167 [14:23:18]line РНМ: 0000000000156251 [14:23:18]line Версия ККМ: v1.0 [14:23:18]line ФМ: 0000000000963346 [14:23:18]line ФД: 69377 [14:23:18]line ФПД: 157474159236026 [14:23:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T142317&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69377&fm=157474159236026&tin=02508201610067®Number=0000000000156251&sum=40000 [14:23:18]Connected sock=11 [14:23:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 AB 55 04 01 A4 2E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 55 12 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 01 0F 01 00 35 04 06 00 8F 38 CF 52 93 BA C9 1E 7C 85 C9 01 93 3B [14:23:18]written 0, free lines is 4095 [14:23:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 37 27 47 00 C5 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 01 0F 01 00 F4 03 04 00 FB BB 14 67 B6 04 01 00 00 9B 7D D8 6B 61 71 99 C5 [14:23:19]CommunicateWithHost err = 0 [14:23:19]CheckOFDResponse [14:23:19]1017 (14) - 77093643461234 [14:23:19]1041 (16) - 0000000000963346 [14:23:19]1040 (4) - 69377 [14:23:19]1012 (4) - 20.10.2024 08:14 [14:23:19]1206 (1) - 0 [14:23:19]OFD Sender: Remove packet 69377 [14:23:19]ProducePacketName [14:23:19]name=ofd_packets/00069377 [14:23:19]NVStorageDeleteData [14:23:19]Write to MH i2c: 01 00 00 39 08 41 [14:23:19]Write i2c OK [14:23:19]MH_I2C_Read... [14:23:19]Read from MH i2c: 01 [14:23:19]MH_I2C_Read... [14:23:19]Read from MH i2c: 01 07 00 [14:23:19]MH_I2C_Read... [14:23:19]Read from MH i2c: 01 07 00 39 08 00 00 00 00 00 E4 0C 38 [14:23:19]RasterBufferAndPrint [14:23:19]line [14:23:19]line [14:23:19]line [14:23:19]line [14:23:19]line [14:23:19]written 0, free lines is 3306 [14:23:19]MH_Cut [14:23:19]Write to MH i2c: D1 01 00 40 08 01 1A [14:23:19]Write i2c OK [14:23:19]MH_I2C_Read... [14:23:19]Read from MH i2c: D1 [14:23:19]MH_I2C_Read... [14:23:19]Read from MH i2c: D1 01 00 [14:23:19]MH_I2C_Read... [14:23:19]Read from MH i2c: D1 01 00 40 08 00 19 [14:23:19]Write to MH i2c: 01 00 00 41 08 49 [14:23:19]Write i2c OK [14:23:19]MH_I2C_Read... [14:23:19]OFD Sender: No OFD packet to send [14:23:20]*** Cut start [14:23:20]*** Partial cut [14:23:20]*** CUTSNS_PIN = 1 [14:23:20]*** CUTSNS_PIN = 0 [14:23:20]*** Brake cut motor [14:23:20]Read from MH i2c: 01 [14:23:20]MH_I2C_Read... [14:23:20]*** Stop cut motor [14:23:20]*** Cut end [14:23:20]Read from MH i2c: 01 07 00 [14:23:20]MH_I2C_Read... [14:23:20]Read from MH i2c: 01 07 00 41 08 00 00 00 00 00 FF 0F 5E [14:23:20]process_action close_receipt done [14:23:20]requested_data is exist [14:23:20]produce_requested_data [14:23:20]requested_item fm.sn is exist - process it [14:23:20]wFMCommunicate request_size=4 [14:23:20]MH_SAM_APDU [14:23:20]CAPDU: 80 11 00 00 [14:23:20]Write to MH i2c: E2 08 00 42 08 80 11 00 00 00 00 00 00 C4 [14:23:20]Write i2c OK [14:23:20]MH_I2C_Read... [14:23:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:20]Read from MH i2c: E2 [14:23:20]MH_I2C_Read... [14:23:20]Read from MH i2c: E2 17 00 [14:23:20]MH_I2C_Read... [14:23:20]Read from MH i2c: E2 17 00 42 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 16 [14:23:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:23:20]wFMCommunicate OK [14:23:20]requested_item fd.num is exist - process it [14:23:20]SAM_PROTO_GetFieldsCounters [14:23:20]wFMCommunicate request_size=4 [14:23:20]MH_SAM_APDU [14:23:20]CAPDU: 80 13 00 00 [14:23:20]Write to MH i2c: E2 08 00 43 08 80 13 00 00 00 00 00 00 C7 [14:23:20]Write i2c OK [14:23:20]MH_I2C_Read... [14:23:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:20]Read from MH i2c: E2 [14:23:20]MH_I2C_Read... [14:23:20]Read from MH i2c: E2 62 00 [14:23:20]MH_I2C_Read... [14:23:20]Read from MH i2c: E2 62 00 43 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 01 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [14:23:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 01 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:23:20]wFMCommunicate OK [14:23:20]SAM_PROTO_GetFieldsCounters done [14:23:20]requested_item shift.num is exist - process it [14:23:20]requested_item shift.opened is exist - process it [14:23:20]req_shift_opened [14:23:20]FM_GetShiftState [14:23:20]SAM_PROTO_GetShiftState [14:23:20]wFMCommunicate request_size=4 [14:23:20]MH_SAM_APDU [14:23:20]CAPDU: 80 13 01 00 [14:23:20]Write to MH i2c: E2 08 00 44 08 80 13 01 00 00 00 00 00 C9 [14:23:20]Write i2c OK [14:23:20]MH_I2C_Read... [14:23:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:20]Read from MH i2c: E2 [14:23:20]MH_I2C_Read... [14:23:20]Read from MH i2c: E2 0E 00 [14:23:20]MH_I2C_Read... [14:23:20]Read from MH i2c: E2 0E 00 44 08 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 CF [14:23:20]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [14:23:20]wFMCommunicate OK [14:23:20]SAM_PROTO_GetShiftState done [14:23:20]FM_GetShiftState done [14:23:20]req_shift_opened done [14:23:20]requested_item shift.open_date is exist - process it [14:23:20]req_shift_open_date [14:23:20]req_shift_open_date done [14:23:20]produce_requested_data done [14:23:20]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69377,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [14:23:21]process_action_free close_receipt [14:23:21]json_value_free [14:23:21]json_value_free done [14:23:21]process_json_proto returns [14:23:21]Send response to host [14:23:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69377,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [14:23:21]free response buf [14:23:21]execute_script done [14:23:21]execute_script returns [14:23:21]free content buf [14:23:21]Sock 9.Close socket [14:23:21]Sock 9.Thread stoped [14:23:24]OFD Sender: No OFD packet to send [14:23:29]OFD Sender: No OFD packet to send [14:23:34]OFD Sender: No OFD packet to send [14:23:39]OFD Sender: No OFD packet to send [14:23:44]OFD Sender: No OFD packet to send [14:23:49]OFD Sender: No OFD packet to send [14:23:54]OFD Sender: No OFD packet to send [14:23:59]OFD Sender: No OFD packet to send [14:24:04]OFD Sender: No OFD packet to send [14:24:09]OFD Sender: No OFD packet to send [14:24:12]accept exits with 8 [14:24:12]New connection [14:24:12]New thread 3066711396 created [14:24:12]Thread 3066568036 joined [14:24:12]Waiting for new connection... [14:24:12] Sock 8.Parse request [14:24:12]Sock 8.Check first char [14:24:12]Sock 8.First char is OK [14:24:12]request: POST /json_proto HTTP/1.0 [14:24:12]Method: POST [14:24:12]URL: /json_proto [14:24:12]Method is POST - this is cgi request [14:24:12]url: /json_proto [14:24:12]query_string will be loaded in cgi processing [14:24:12]execute_cgi json_proto POST (null) [14:24:12]execute_cgi path=json_proto method=POST [14:24:12]POST find Content-Length [14:24:12]Host: 172.17.50.3:8080 [14:24:12]Content-Length: 678 [14:24:12]Content-Type: application/json [14:24:12] [14:24:12]POST finish read [14:24:12]Found Content-Length = 678 [14:24:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:12]execute_script... [14:24: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)2885103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:12]POST & json_proto [14:24:12]process_json_proto [14:24:12]json parsed OK: [14:24:12]protocol is kg_v1.0 [14:24:12]action value=close_receipt [14:24:12]process_action close_receipt [14:24:12]cmd_close_receipt [14:24:12]MH_GetDate [14:24:12]Write to MH i2c: F0 00 00 45 08 3C [14:24:12]Write i2c OK [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: F0 [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: F0 09 00 [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: F0 09 00 45 08 00 8C 12 15 67 6B 98 1E 66 E6 [14:24:12]GetLastDocTimeStamp 1729434197 [14:24:12]current date 1729434252 [14:24:12]FM_GetShiftState [14:24:12]SAM_PROTO_GetShiftState [14:24:12]wFMCommunicate request_size=4 [14:24:12]MH_SAM_APDU [14:24:12]CAPDU: 80 13 01 00 [14:24:12]Write to MH i2c: E2 08 00 46 08 80 13 01 00 00 00 00 00 CB [14:24:12]Write i2c OK [14:24:12]MH_I2C_Read... [14:24:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:12]Read from MH i2c: E2 [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: E2 0E 00 [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: E2 0E 00 46 08 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 D1 [14:24:12]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [14:24:12]wFMCommunicate OK [14:24:12]SAM_PROTO_GetShiftState done [14:24:12]FM_GetShiftState done [14:24:12]opened in 1729383220 [14:24:12]opened+sec_in_day 1729469620 [14:24:12]quantity*price = 30051 [14:24:12]sum+1 = 30052 [14:24:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 223 20.10.2024 14:24 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69378 ФПД: 167673270330693 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T142412&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69378&fm=167673270330693&tin=02508201610067®Number=0000000000156251&sum=30000 [14:24:13]StoreToDocumentArchive [14:24:13]shift 193 fd 69378 [14:24:13]save to /storage/0193/doc_00069378 [14:24:13]save last doc name /storage/0193/doc_00069378 to /storage/kkm_last_doc_name [14:24:13]save OK [14:24:13]Clear old archive folders... [14:24:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:24:13]tlvbuf is 0026B4B0 [14:24:13]SAM_PROTO_ClearQueue [14:24:13]wFMCommunicate request_size=4 [14:24:13]MH_SAM_APDU [14:24:13]CAPDU: 80 09 00 00 [14:24:13]Write to MH i2c: E2 08 00 53 08 80 09 00 00 00 00 00 00 CD [14:24:13]Write i2c OK [14:24:13]MH_I2C_Read... [14:24:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:13]Read from MH i2c: E2 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: E2 03 00 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: E2 03 00 53 08 00 90 00 CF [14:24:13]RAPDU: 90 00 [14:24:13]wFMCommunicate OK [14:24:13]SAM_PROTO_ClearQueue done [14:24:13]KKMCreateOFDPacket [14:24:13]OFDProtocolAddRootSTLVToBuf [14:24:13]FM_MakeSignedData [14:24:13]FM_MakeSignedData [14:24:13]SAM_PROTO_SignData [14:24:13]wFMCommunicate request_size=4 [14:24:13]MH_SAM_APDU [14:24:13]CAPDU: 80 0D 01 02 [14:24:13]Write to MH i2c: E2 08 00 54 08 80 0D 01 02 00 00 00 00 D5 [14:24:13]Write i2c OK [14:24:13]MH_I2C_Read... [14:24:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:13]Read from MH i2c: E2 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: E2 03 00 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: E2 03 00 54 08 00 90 00 D0 [14:24:13]RAPDU: 90 00 [14:24:13]wFMCommunicate OK [14:24:13]wFMCommunicate request_size=255 [14:24:13]MH_SAM_APDU [14:24:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 8C 12 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 02 0F 01 00 35 04 06 00 98 [14:24:13]Write to MH i2c: E2 02 01 55 08 80 0D 02 02 FA 00 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 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 8C 12 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 02 0F 01 00 35 04 06 00 98 00 00 EA [14:24:13]Write i2c OK [14:24:13]MH_I2C_Read... [14:24:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:13]Read from MH i2c: E2 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: E2 03 00 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: E2 03 00 55 08 00 90 00 D1 [14:24:13]RAPDU: 90 00 [14:24:13]wFMCommunicate OK [14:24:13]wFMCommunicate request_size=10 [14:24:13]MH_SAM_APDU [14:24:13]CAPDU: 80 0D 02 02 05 7F 79 B7 65 45 [14:24:13]Write to MH i2c: E2 0D 00 56 08 80 0D 02 02 05 00 7F 79 B7 65 45 00 00 3B [14:24:13]Write i2c OK [14:24:13]MH_I2C_Read... [14:24:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:13]Read from MH i2c: E2 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: E2 03 00 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: E2 03 00 56 08 00 90 00 D2 [14:24:13]RAPDU: 90 00 [14:24:13]wFMCommunicate OK [14:24:13]wFMCommunicate request_size=4 [14:24:13]MH_SAM_APDU [14:24:13]CAPDU: 80 0D 03 02 [14:24:13]Write to MH i2c: E2 08 00 57 08 80 0D 03 02 00 00 00 00 DA [14:24:13]Write i2c OK [14:24:13]MH_I2C_Read... [14:24:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:14]Read from MH i2c: E2 [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: E2 0B 00 [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: E2 0B 00 57 08 00 DE F5 F5 93 3C 4D 7E 49 90 00 86 [14:24:14]RAPDU: DE F5 F5 93 3C 4D 7E 49 90 00 [14:24:14]wFMCommunicate OK [14:24:14]SAM_PROTO_SignData done [14:24:14]FM_MakeSignedData done [14:24:14]CreateOFDProtocolMessage [14:24:14]wFMCommunicate request_size=4 [14:24:14]MH_SAM_APDU [14:24:14]CAPDU: 80 11 00 00 [14:24:14]Write to MH i2c: E2 08 00 58 08 80 11 00 00 00 00 00 00 DA [14:24:14]Write i2c OK [14:24:14]MH_I2C_Read... [14:24:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:14]Read from MH i2c: E2 [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: E2 17 00 [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: E2 17 00 58 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2C [14:24:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:24:14]wFMCommunicate OK [14:24:14]CreateOFDProtocolMessage done [14:24:14]OFDSenderStorePacket 69378 [14:24:14]StoreOFDPacket docnum=69378 [14:24:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 59 45 07 01 1F D4 5A 03 01 00 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 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 8C 12 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 02 0F 01 00 35 04 06 00 98 7F 79 B7 65 45 DE F5 F5 93 3C 4D 7E 49 [14:24:14]CheckFolder [14:24:14]dirname=/storage/ofd_packets [14:24:14]CheckFolder done [14:24:14]ProducePacketName [14:24:14]name=ofd_packets/00069378 [14:24:14]NVStorageSaveData ofd_packets/00069378 [14:24:14]File name is /storage/ofd_packets/00069378 [14:24:14]Write 301 bytes [14:24:14]NVStorageSaveData done [14:24:14]OFDSenderStorePacket done [14:24:14]KKMCreateOFDPacket done [14:24:14]NVStorageSaveData kkm_last_timestamp [14:24:14]File name is /storage/kkm_last_timestamp [14:24:14]Write 4 bytes [14:24:14]NVStorageSaveData done [14:24:14]ExternCall_PrintAddStr [14:24:14]wPrintStart [14:24:14]Write to MH i2c: 01 00 00 59 08 61 [14:24:14]Write i2c OK [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: 01 [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: 01 07 00 [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: 01 07 00 59 08 00 00 00 00 00 FF 0F 76 [14:24:14]RasterBufferAndPrint [14:24:14]line Счет N : (1)2885103 [14:24:14]line ИНН: 02508201610067 [14:24:14]line Контрольно-Кассовый Чек [14:24:14]line ПРОДАЖА [14:24:14]line ТРК (МРК, ГНК) : 43 [14:24:14]line Товар: 2710124500 [14:24:14]line Аи-95-К-5 [14:24:14]line 4.050 * 74.20 [14:24:14]line = 300.51 [14:24:14]line НДС 12% НСП 1% [14:24:14]line > о реализуемом товаре [14:24:14]line ОКРУГЛЕНИЕ: -0.51 [14:24:14]line ИТОГО: 300.00 [14:24:14]line Внесено: 300.00 [14:24:14]line СДАЧА: 0.00 [14:24:14]line НСП 1% : 2.66 [14:24:14]line НДС 12% : 31.91 [14:24:14]line Наличными: 300.00 [14:24:14]line Безнал.: 0.00 [14:24:14]line Место: АЗС № 85 "Партнер Нефть" [14:24:14]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:24:14]line СНО: Общий режим [14:24:14]line Чек 223 20.10.2024 14:24 [14:24:14]line Смена: 193 ФФД: 1.0 [14:24:14]line ЗНМ: 0300000167 [14:24:14]line РНМ: 0000000000156251 [14:24:14]line Версия ККМ: v1.0 [14:24:14]line ФМ: 0000000000963346 [14:24:14]line ФД: 69378 [14:24:14]line ФПД: 167673270330693 [14:24:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T142412&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69378&fm=167673270330693&tin=02508201610067®Number=0000000000156251&sum=30000 [14:24:14]OFD Sender: Processing packet 69378 [packets to send 18, broken 17] [14:24:14]ProducePacketName [14:24:14]name=ofd_packets/00069378 [14:24:14]OFD Sender: To server: pG, [14:24:14]CommunicateWithHost lk.salyk.kg:30040 [14:24:14]ConnectInit lk.salyk.kg [14:24:14]written 0, free lines is 4095 [14:24:14]Connected sock=10 [14:24:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 59 45 07 01 1F D4 5A 03 01 00 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 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 8C 12 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 02 0F 01 00 35 04 06 00 98 7F 79 B7 65 45 DE F5 F5 93 3C 4D 7E 49 [14:24:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 0E D4 47 00 ED 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 02 0F 01 00 F4 03 04 00 33 BC 14 67 B6 04 01 00 00 A3 5E AA 98 62 65 1F 50 [14:24:14]CommunicateWithHost err = 0 [14:24:14]CheckOFDResponse [14:24:14]1017 (14) - 77093643461234 [14:24:14]1041 (16) - 0000000000963346 [14:24:14]1040 (4) - 69378 [14:24:14]1012 (4) - 20.10.2024 08:15 [14:24:14]1206 (1) - 0 [14:24:14]OFD Sender: Remove packet 69378 [14:24:14]ProducePacketName [14:24:14]name=ofd_packets/00069378 [14:24:14]NVStorageDeleteData [14:24:14]Write to MH i2c: 01 00 00 84 08 8C [14:24:14]Write i2c OK [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: 01 [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: 01 07 00 [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: 01 07 00 84 08 00 00 00 00 00 E4 0C 83 [14:24:14]RasterBufferAndPrint [14:24:14]line [14:24:14]line [14:24:14]line [14:24:14]line [14:24:14]line [14:24:14]written 0, free lines is 3306 [14:24:14]MH_Cut [14:24:14]Write to MH i2c: D1 01 00 8B 08 01 65 [14:24:14]Write i2c OK [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: D1 [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: D1 01 00 [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: D1 01 00 8B 08 00 64 [14:24:14]Write to MH i2c: 01 00 00 8C 08 94 [14:24:14]Write i2c OK [14:24:14]MH_I2C_Read... [14:24:15]OFD Sender: No OFD packet to send [14:24:15]*** Cut start [14:24:15]*** Partial cut [14:24:15]*** CUTSNS_PIN = 1 [14:24:15]*** CUTSNS_PIN = 0 [14:24:15]*** Brake cut motor [14:24:16]Read from MH i2c: 01 [14:24:16]MH_I2C_Read... [14:24:16]*** Stop cut motor [14:24:16]*** Cut end [14:24:16]Read from MH i2c: 01 07 00 [14:24:16]MH_I2C_Read... [14:24:16]Read from MH i2c: 01 07 00 8C 08 00 00 00 00 00 FF 0F A9 [14:24:16]process_action close_receipt done [14:24:16]requested_data is exist [14:24:16]produce_requested_data [14:24:16]requested_item fm.sn is exist - process it [14:24:16]wFMCommunicate request_size=4 [14:24:16]MH_SAM_APDU [14:24:16]CAPDU: 80 11 00 00 [14:24:16]Write to MH i2c: E2 08 00 8D 08 80 11 00 00 00 00 00 00 0F [14:24:16]Write i2c OK [14:24:16]MH_I2C_Read... [14:24:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:16]Read from MH i2c: E2 [14:24:16]MH_I2C_Read... [14:24:16]Read from MH i2c: E2 17 00 [14:24:16]MH_I2C_Read... [14:24:16]Read from MH i2c: E2 17 00 8D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 61 [14:24:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:24:16]wFMCommunicate OK [14:24:16]requested_item fd.num is exist - process it [14:24:16]SAM_PROTO_GetFieldsCounters [14:24:16]wFMCommunicate request_size=4 [14:24:16]MH_SAM_APDU [14:24:16]CAPDU: 80 13 00 00 [14:24:16]Write to MH i2c: E2 08 00 8E 08 80 13 00 00 00 00 00 00 12 [14:24:16]Write i2c OK [14:24:16]MH_I2C_Read... [14:24:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:16]Read from MH i2c: E2 [14:24:16]MH_I2C_Read... [14:24:16]Read from MH i2c: E2 62 00 [14:24:16]MH_I2C_Read... [14:24:16]Read from MH i2c: E2 62 00 8E 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 02 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [14:24:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 02 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:24:16]wFMCommunicate OK [14:24:16]SAM_PROTO_GetFieldsCounters done [14:24:16]requested_item shift.num is exist - process it [14:24:16]requested_item shift.opened is exist - process it [14:24:16]req_shift_opened [14:24:16]FM_GetShiftState [14:24:16]SAM_PROTO_GetShiftState [14:24:16]wFMCommunicate request_size=4 [14:24:16]MH_SAM_APDU [14:24:16]CAPDU: 80 13 01 00 [14:24:16]Write to MH i2c: E2 08 00 8F 08 80 13 01 00 00 00 00 00 14 [14:24:16]Write i2c OK [14:24:16]MH_I2C_Read... [14:24:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:16]Read from MH i2c: E2 [14:24:16]MH_I2C_Read... [14:24:16]Read from MH i2c: E2 0E 00 [14:24:16]MH_I2C_Read... [14:24:16]Read from MH i2c: E2 0E 00 8F 08 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 1A [14:24:16]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [14:24:16]wFMCommunicate OK [14:24:16]SAM_PROTO_GetShiftState done [14:24:16]FM_GetShiftState done [14:24:16]req_shift_opened done [14:24:16]requested_item shift.open_date is exist - process it [14:24:16]req_shift_open_date [14:24:16]req_shift_open_date done [14:24:16]produce_requested_data done [14:24:16]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69378,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [14:24:16]process_action_free close_receipt [14:24:16]json_value_free [14:24:16]json_value_free done [14:24:16]process_json_proto returns [14:24:16]Send response to host [14:24:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69378,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [14:24:16]free response buf [14:24:16]execute_script done [14:24:16]execute_script returns [14:24:16]free content buf [14:24:16]Sock 8.Close socket [14:24:16]Sock 8.Thread stoped [14:24:20]OFD Sender: No OFD packet to send [14:24:25]OFD Sender: No OFD packet to send [14:24:30]OFD Sender: No OFD packet to send [14:24:35]OFD Sender: No OFD packet to send [14:24:40]OFD Sender: No OFD packet to send [14:24:45]OFD Sender: No OFD packet to send [14:24:50]OFD Sender: No OFD packet to send [14:24:55]OFD Sender: No OFD packet to send [14:25:00]OFD Sender: No OFD packet to send [14:25:05]OFD Sender: No OFD packet to send [14:25:10]OFD Sender: No OFD packet to send [14:25:15]OFD Sender: No OFD packet to send [14:25:20]OFD Sender: No OFD packet to send [14:25:25]OFD Sender: No OFD packet to send [14:25:30]OFD Sender: No OFD packet to send [14:25:35]OFD Sender: No OFD packet to send [14:25:40]OFD Sender: No OFD packet to send [14:25:45]OFD Sender: No OFD packet to send [14:25:50]OFD Sender: No OFD packet to send [14:25:55]OFD Sender: No OFD packet to send [14:26:00]OFD Sender: No OFD packet to send [14:26:05]OFD Sender: No OFD packet to send [14:26:10]OFD Sender: No OFD packet to send [14:26:15]OFD Sender: No OFD packet to send [14:26:20]OFD Sender: No OFD packet to send [14:26:25]OFD Sender: No OFD packet to send [14:26:30]OFD Sender: No OFD packet to send [14:26:35]OFD Sender: No OFD packet to send [14:26:40]OFD Sender: No OFD packet to send [14:26:45]OFD Sender: No OFD packet to send [14:26:50]OFD Sender: No OFD packet to send [14:26:55]OFD Sender: No OFD packet to send [14:27:00]OFD Sender: No OFD packet to send [14:27:05]OFD Sender: No OFD packet to send [14:27:10]OFD Sender: No OFD packet to send [14:27:15]OFD Sender: No OFD packet to send [14:27:20]OFD Sender: No OFD packet to send [14:27:25]OFD Sender: No OFD packet to send [14:27:30]OFD Sender: No OFD packet to send [14:27:35]OFD Sender: No OFD packet to send [14:27:40]OFD Sender: No OFD packet to send [14:27:45]OFD Sender: No OFD packet to send [14:27:50]OFD Sender: No OFD packet to send [14:27:55]OFD Sender: No OFD packet to send [14:28:00]OFD Sender: No OFD packet to send [14:28:05]OFD Sender: No OFD packet to send [14:28:10]OFD Sender: No OFD packet to send [14:28:15]OFD Sender: No OFD packet to send [14:28:20]OFD Sender: No OFD packet to send [14:28:25]OFD Sender: No OFD packet to send [14:28:30]OFD Sender: No OFD packet to send [14:28:35]OFD Sender: No OFD packet to send [14:28:40]OFD Sender: No OFD packet to send [14:28:45]OFD Sender: No OFD packet to send [14:28:50]OFD Sender: No OFD packet to send [14:28:55]OFD Sender: No OFD packet to send [14:29:00]OFD Sender: No OFD packet to send [14:29:05]OFD Sender: No OFD packet to send [14:29:10]OFD Sender: No OFD packet to send [14:29:15]OFD Sender: No OFD packet to send [14:29:20]OFD Sender: No OFD packet to send [14:29:25]OFD Sender: No OFD packet to send [14:29:30]OFD Sender: No OFD packet to send [14:29:35]OFD Sender: No OFD packet to send [14:29:40]OFD Sender: No OFD packet to send [14:29:45]OFD Sender: No OFD packet to send [14:29:50]OFD Sender: No OFD packet to send [14:29:55]OFD Sender: No OFD packet to send [14:30:00]OFD Sender: No OFD packet to send [14:30:05]OFD Sender: No OFD packet to send [14:30:10]OFD Sender: No OFD packet to send [14:30:15]OFD Sender: No OFD packet to send [14:30:20]OFD Sender: No OFD packet to send [14:30:25]OFD Sender: No OFD packet to send [14:30:30]OFD Sender: No OFD packet to send [14:30:35]OFD Sender: No OFD packet to send [14:30:40]OFD Sender: No OFD packet to send [14:30:45]OFD Sender: No OFD packet to send [14:30:50]OFD Sender: No OFD packet to send [14:30:51]accept exits with 9 [14:30:51]New connection [14:30:51]New thread 3066568036 created [14:30:51]Thread 3066711396 joined [14:30:51]Waiting for new connection... [14:30:51] Sock 9.Parse request [14:30:51]Sock 9.Check first char [14:30:51]Sock 9.First char is OK [14:30:51]request: POST /json_proto HTTP/1.0 [14:30:51]Method: POST [14:30:51]URL: /json_proto [14:30:51]Method is POST - this is cgi request [14:30:51]url: /json_proto [14:30:51]query_string will be loaded in cgi processing [14:30:51]execute_cgi json_proto POST (null) [14:30:51]execute_cgi path=json_proto method=POST [14:30:51]POST find Content-Length [14:30:51]Host: 172.17.50.3:8080 [14:30:51]Content-Length: 683 [14:30:51]Content-Type: application/json [14:30:51] [14:30:51]POST finish read [14:30:51]Found Content-Length = 683 [14:30:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:51]execute_script... [14:30: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)2885104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:51]POST & json_proto [14:30:51]process_json_proto [14:30:51]json parsed OK: [14:30:51]protocol is kg_v1.0 [14:30:51]action value=close_receipt [14:30:51]process_action close_receipt [14:30:51]cmd_close_receipt [14:30:51]MH_GetDate [14:30:51]Write to MH i2c: F0 00 00 90 08 87 [14:30:51]Write i2c OK [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: F0 [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: F0 09 00 [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: F0 09 00 90 08 00 1C 14 15 67 6B 98 1E 66 C3 [14:30:51]GetLastDocTimeStamp 1729434252 [14:30:51]current date 1729434652 [14:30:51]FM_GetShiftState [14:30:51]SAM_PROTO_GetShiftState [14:30:51]wFMCommunicate request_size=4 [14:30:51]MH_SAM_APDU [14:30:51]CAPDU: 80 13 01 00 [14:30:51]Write to MH i2c: E2 08 00 91 08 80 13 01 00 00 00 00 00 16 [14:30:51]Write i2c OK [14:30:51]MH_I2C_Read... [14:30:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:51]Read from MH i2c: E2 [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: E2 0E 00 [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: E2 0E 00 91 08 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 1C [14:30:51]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [14:30:51]wFMCommunicate OK [14:30:51]SAM_PROTO_GetShiftState done [14:30:51]FM_GetShiftState done [14:30:51]opened in 1729383220 [14:30:51]opened+sec_in_day 1729469620 [14:30:51]quantity*price = 100015 [14:30:51]sum+1 = 100017 [14:30:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 224 20.10.2024 14:30 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69379 ФПД: 46937818078894 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143052&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69379&fm=46937818078894&tin=02508201610067®Number=0000000000156251&sum=100000 [14:30:52]StoreToDocumentArchive [14:30:52]shift 193 fd 69379 [14:30:52]save to /storage/0193/doc_00069379 [14:30:52]save last doc name /storage/0193/doc_00069379 to /storage/kkm_last_doc_name [14:30:52]save OK [14:30:52]Clear old archive folders... [14:30:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:30:52]tlvbuf is 00273D50 [14:30:52]SAM_PROTO_ClearQueue [14:30:52]wFMCommunicate request_size=4 [14:30:52]MH_SAM_APDU [14:30:52]CAPDU: 80 09 00 00 [14:30:52]Write to MH i2c: E2 08 00 9E 08 80 09 00 00 00 00 00 00 18 [14:30:52]Write i2c OK [14:30:52]MH_I2C_Read... [14:30:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:52]Read from MH i2c: E2 [14:30:52]MH_I2C_Read... [14:30:52]Read from MH i2c: E2 03 00 [14:30:52]MH_I2C_Read... [14:30:52]Read from MH i2c: E2 03 00 9E 08 00 90 00 1A [14:30:52]RAPDU: 90 00 [14:30:52]wFMCommunicate OK [14:30:52]SAM_PROTO_ClearQueue done [14:30:52]KKMCreateOFDPacket [14:30:52]OFDProtocolAddRootSTLVToBuf [14:30:52]FM_MakeSignedData [14:30:52]FM_MakeSignedData [14:30:52]SAM_PROTO_SignData [14:30:52]wFMCommunicate request_size=4 [14:30:52]MH_SAM_APDU [14:30:52]CAPDU: 80 0D 01 02 [14:30:52]Write to MH i2c: E2 08 00 9F 08 80 0D 01 02 00 00 00 00 20 [14:30:52]Write i2c OK [14:30:52]MH_I2C_Read... [14:30:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:52]Read from MH i2c: E2 [14:30:52]MH_I2C_Read... [14:30:52]Read from MH i2c: E2 03 00 [14:30:52]MH_I2C_Read... [14:30:52]Read from MH i2c: E2 03 00 9F 08 00 90 00 1B [14:30:52]RAPDU: 90 00 [14:30:52]wFMCommunicate OK [14:30:52]wFMCommunicate request_size=255 [14:30:52]MH_SAM_APDU [14:30:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 1C 14 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 03 0F 01 00 35 04 06 00 2A [14:30:52]Write to MH i2c: E2 02 01 A0 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 1C 14 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 03 0F 01 00 35 04 06 00 2A 00 00 2D [14:30:53]Write i2c OK [14:30:53]MH_I2C_Read... [14:30:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:53]Read from MH i2c: E2 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: E2 03 00 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: E2 03 00 A0 08 00 90 00 1C [14:30:53]RAPDU: 90 00 [14:30:53]wFMCommunicate OK [14:30:53]wFMCommunicate request_size=10 [14:30:53]MH_SAM_APDU [14:30:53]CAPDU: 80 0D 02 02 05 B0 8F F9 1E AE [14:30:53]Write to MH i2c: E2 0D 00 A1 08 80 0D 02 02 05 00 B0 8F F9 1E AE 00 00 31 [14:30:53]Write i2c OK [14:30:53]MH_I2C_Read... [14:30:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:53]Read from MH i2c: E2 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: E2 03 00 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: E2 03 00 A1 08 00 90 00 1D [14:30:53]RAPDU: 90 00 [14:30:53]wFMCommunicate OK [14:30:53]wFMCommunicate request_size=4 [14:30:53]MH_SAM_APDU [14:30:53]CAPDU: 80 0D 03 02 [14:30:53]Write to MH i2c: E2 08 00 A2 08 80 0D 03 02 00 00 00 00 25 [14:30:53]Write i2c OK [14:30:53]MH_I2C_Read... [14:30:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:53]Read from MH i2c: E2 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: E2 0B 00 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: E2 0B 00 A2 08 00 3D CD 73 16 63 06 7A 07 90 00 A3 [14:30:53]RAPDU: 3D CD 73 16 63 06 7A 07 90 00 [14:30:53]wFMCommunicate OK [14:30:53]SAM_PROTO_SignData done [14:30:53]FM_MakeSignedData done [14:30:53]CreateOFDProtocolMessage [14:30:53]wFMCommunicate request_size=4 [14:30:53]MH_SAM_APDU [14:30:53]CAPDU: 80 11 00 00 [14:30:53]Write to MH i2c: E2 08 00 A3 08 80 11 00 00 00 00 00 00 25 [14:30:53]Write i2c OK [14:30:53]MH_I2C_Read... [14:30:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:53]Read from MH i2c: E2 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: E2 17 00 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: E2 17 00 A3 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 77 [14:30:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:30:53]wFMCommunicate OK [14:30:53]CreateOFDProtocolMessage done [14:30:53]OFDSenderStorePacket 69379 [14:30:53]StoreOFDPacket docnum=69379 [14:30:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 56 45 07 01 9D 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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 1C 14 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 03 0F 01 00 35 04 06 00 2A B0 8F F9 1E AE 3D CD 73 16 63 06 7A 07 [14:30:53]CheckFolder [14:30:53]dirname=/storage/ofd_packets [14:30:53]CheckFolder done [14:30:53]ProducePacketName [14:30:53]name=ofd_packets/00069379 [14:30:53]NVStorageSaveData ofd_packets/00069379 [14:30:53]File name is /storage/ofd_packets/00069379 [14:30:53]Write 301 bytes [14:30:53]NVStorageSaveData done [14:30:53]OFDSenderStorePacket done [14:30:53]KKMCreateOFDPacket done [14:30:53]NVStorageSaveData kkm_last_timestamp [14:30:53]File name is /storage/kkm_last_timestamp [14:30:53]Write 4 bytes [14:30:53]NVStorageSaveData done [14:30:53]ExternCall_PrintAddStr [14:30:53]wPrintStart [14:30:53]Write to MH i2c: 01 00 00 A4 08 AC [14:30:53]Write i2c OK [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: 01 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: 01 07 00 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: 01 07 00 A4 08 00 00 00 00 00 FF 0F C1 [14:30:53]RasterBufferAndPrint [14:30:53]line Счет N : (1)2885104 [14:30:53]line ИНН: 02508201610067 [14:30:53]line Контрольно-Кассовый Чек [14:30:53]line ПРОДАЖА [14:30:53]line ТРК (МРК, ГНК) : 32 [14:30:53]line Товар: 2710124130 [14:30:53]line Аи-92-К-5 [14:30:53]line 14.950 * 66.90 [14:30:53]line = 1000.16 [14:30:53]line НДС 12% НСП 1% [14:30:53]line > о реализуемом товаре [14:30:53]line ОКРУГЛЕНИЕ: -0.16 [14:30:53]line ИТОГО: 1000.00 [14:30:53]line Внесено: 1000.00 [14:30:53]line СДАЧА: 0.00 [14:30:53]line НСП 1% : 8.85 [14:30:53]line НДС 12% : 106.21 [14:30:53]line Наличными: 1000.00 [14:30:53]line Безнал.: 0.00 [14:30:53]line Место: АЗС № 85 "Партнер Нефть" [14:30:53]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:30:53]line СНО: Общий режим [14:30:53]line Чек 224 20.10.2024 14:30 [14:30:53]line Смена: 193 ФФД: 1.0 [14:30:53]line ЗНМ: 0300000167 [14:30:53]line РНМ: 0000000000156251 [14:30:53]line Версия ККМ: v1.0 [14:30:53]line ФМ: 0000000000963346 [14:30:53]line ФД: 69379 [14:30:53]line ФПД: 46937818078894 [14:30:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143052&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69379&fm=46937818078894&tin=02508201610067®Number=0000000000156251&sum=100000 [14:30:53]OFD Sender: Processing packet 69379 [packets to send 18, broken 17] [14:30:53]ProducePacketName [14:30:53]name=ofd_packets/00069379 [14:30:53]OFD Sender: To server: pG, [14:30:53]CommunicateWithHost lk.salyk.kg:30040 [14:30:53]ConnectInit lk.salyk.kg [14:30:53]written 0, free lines is 4095 [14:30:53]Connected sock=10 [14:30:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 56 45 07 01 9D 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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 1C 14 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 03 0F 01 00 35 04 06 00 2A B0 8F F9 1E AE 3D CD 73 16 63 06 7A 07 [14:30:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 7A 9F 47 00 3B 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 03 0F 01 00 F4 03 04 00 C2 BD 14 67 B6 04 01 00 00 27 7D A8 D2 5B 88 3D 7D [14:30:54]CommunicateWithHost err = 0 [14:30:54]CheckOFDResponse [14:30:54]1017 (14) - 77093643461234 [14:30:54]1041 (16) - 0000000000963346 [14:30:54]1040 (4) - 69379 [14:30:54]1012 (4) - 20.10.2024 08:22 [14:30:54]1206 (1) - 0 [14:30:54]OFD Sender: Remove packet 69379 [14:30:54]ProducePacketName [14:30:54]name=ofd_packets/00069379 [14:30:54]NVStorageDeleteData [14:30:54]Write to MH i2c: 01 00 00 CF 08 D7 [14:30:54]Write i2c OK [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: 01 [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: 01 07 00 [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: 01 07 00 CF 08 00 00 00 00 00 FC 0C E6 [14:30:54]RasterBufferAndPrint [14:30:54]line [14:30:54]line [14:30:54]line [14:30:54]line [14:30:54]line [14:30:54]written 0, free lines is 3331 [14:30:54]MH_Cut [14:30:54]Write to MH i2c: D1 01 00 D6 08 01 B0 [14:30:54]Write i2c OK [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: D1 [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: D1 01 00 [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: D1 01 00 D6 08 00 AF [14:30:54]Write to MH i2c: 01 00 00 D7 08 DF [14:30:54]Write i2c OK [14:30:54]MH_I2C_Read... [14:30:54]OFD Sender: No OFD packet to send [14:30:54]*** Cut start [14:30:54]*** Partial cut [14:30:54]*** CUTSNS_PIN = 1 [14:30:54]*** CUTSNS_PIN = 0 [14:30:55]*** Brake cut motor [14:30:55]Read from MH i2c: 01 [14:30:55]MH_I2C_Read... [14:30:55]*** Stop cut motor [14:30:55]*** Cut end [14:30:55]Read from MH i2c: 01 07 00 [14:30:55]MH_I2C_Read... [14:30:55]Read from MH i2c: 01 07 00 D7 08 00 00 00 00 00 FF 0F F4 [14:30:55]process_action close_receipt done [14:30:55]requested_data is exist [14:30:55]produce_requested_data [14:30:55]requested_item fm.sn is exist - process it [14:30:55]wFMCommunicate request_size=4 [14:30:55]MH_SAM_APDU [14:30:55]CAPDU: 80 11 00 00 [14:30:55]Write to MH i2c: E2 08 00 D8 08 80 11 00 00 00 00 00 00 5A [14:30:55]Write i2c OK [14:30:55]MH_I2C_Read... [14:30:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:55]Read from MH i2c: E2 [14:30:55]MH_I2C_Read... [14:30:55]Read from MH i2c: E2 17 00 [14:30:55]MH_I2C_Read... [14:30:55]Read from MH i2c: E2 17 00 D8 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AC [14:30:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:30:55]wFMCommunicate OK [14:30:55]requested_item fd.num is exist - process it [14:30:55]SAM_PROTO_GetFieldsCounters [14:30:55]wFMCommunicate request_size=4 [14:30:55]MH_SAM_APDU [14:30:55]CAPDU: 80 13 00 00 [14:30:55]Write to MH i2c: E2 08 00 D9 08 80 13 00 00 00 00 00 00 5D [14:30:55]Write i2c OK [14:30:55]MH_I2C_Read... [14:30:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:55]Read from MH i2c: E2 [14:30:55]MH_I2C_Read... [14:30:55]Read from MH i2c: E2 62 00 [14:30:55]MH_I2C_Read... [14:30:55]Read from MH i2c: E2 62 00 D9 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 03 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [14:30:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 03 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:30:55]wFMCommunicate OK [14:30:55]SAM_PROTO_GetFieldsCounters done [14:30:55]requested_item shift.num is exist - process it [14:30:55]requested_item shift.opened is exist - process it [14:30:55]req_shift_opened [14:30:55]FM_GetShiftState [14:30:55]SAM_PROTO_GetShiftState [14:30:55]wFMCommunicate request_size=4 [14:30:55]MH_SAM_APDU [14:30:55]CAPDU: 80 13 01 00 [14:30:55]Write to MH i2c: E2 08 00 DA 08 80 13 01 00 00 00 00 00 5F [14:30:55]Write i2c OK [14:30:55]MH_I2C_Read... [14:30:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:55]Read from MH i2c: E2 [14:30:55]MH_I2C_Read... [14:30:55]Read from MH i2c: E2 0E 00 [14:30:55]MH_I2C_Read... [14:30:55]Read from MH i2c: E2 0E 00 DA 08 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 65 [14:30:55]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [14:30:55]wFMCommunicate OK [14:30:55]SAM_PROTO_GetShiftState done [14:30:55]FM_GetShiftState done [14:30:55]req_shift_opened done [14:30:55]requested_item shift.open_date is exist - process it [14:30:55]req_shift_open_date [14:30:55]req_shift_open_date done [14:30:55]produce_requested_data done [14:30:55]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69379,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [14:30:55]process_action_free close_receipt [14:30:55]json_value_free [14:30:55]json_value_free done [14:30:55]process_json_proto returns [14:30:55]Send response to host [14:30:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69379,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [14:30:55]free response buf [14:30:55]execute_script done [14:30:55]execute_script returns [14:30:55]free content buf [14:30:55]Sock 9.Close socket [14:30:55]Sock 9.Thread stoped [14:30:59]OFD Sender: No OFD packet to send [14:31:03]accept exits with 8 [14:31:03]New connection [14:31:03]New thread 3066711396 created [14:31:03]Thread 3066568036 joined [14:31:03]Waiting for new connection... [14:31:03] Sock 8.Parse request [14:31:03]Sock 8.Check first char [14:31:03]Sock 8.First char is OK [14:31:03]request: POST /json_proto HTTP/1.0 [14:31:03]Method: POST [14:31:03]URL: /json_proto [14:31:03]Method is POST - this is cgi request [14:31:03]url: /json_proto [14:31:03]query_string will be loaded in cgi processing [14:31:03]execute_cgi json_proto POST (null) [14:31:03]execute_cgi path=json_proto method=POST [14:31:03]POST find Content-Length [14:31:03]Host: 172.17.50.3:8080 [14:31:03]Content-Length: 678 [14:31:03]Content-Type: application/json [14:31:03] [14:31:03]POST finish read [14:31:03]Found Content-Length = 678 [14:31:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:03]execute_script... [14:31: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)2885105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:03]POST & json_proto [14:31:03]process_json_proto [14:31:03]json parsed OK: [14:31:03]protocol is kg_v1.0 [14:31:03]action value=close_receipt [14:31:03]process_action close_receipt [14:31:03]cmd_close_receipt [14:31:03]MH_GetDate [14:31:03]Write to MH i2c: F0 00 00 DB 08 D2 [14:31:03]Write i2c OK [14:31:03]MH_I2C_Read... [14:31:03]Read from MH i2c: F0 [14:31:03]MH_I2C_Read... [14:31:03]Read from MH i2c: F0 09 00 [14:31:03]MH_I2C_Read... [14:31:03]Read from MH i2c: F0 09 00 DB 08 00 27 14 15 67 6B 98 1E 66 19 [14:31:03]GetLastDocTimeStamp 1729434652 [14:31:03]current date 1729434663 [14:31:03]FM_GetShiftState [14:31:03]SAM_PROTO_GetShiftState [14:31:03]wFMCommunicate request_size=4 [14:31:03]MH_SAM_APDU [14:31:03]CAPDU: 80 13 01 00 [14:31:03]Write to MH i2c: E2 08 00 DC 08 80 13 01 00 00 00 00 00 61 [14:31:03]Write i2c OK [14:31:03]MH_I2C_Read... [14:31:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:03]Read from MH i2c: E2 [14:31:03]MH_I2C_Read... [14:31:03]Read from MH i2c: E2 0E 00 [14:31:03]MH_I2C_Read... [14:31:03]Read from MH i2c: E2 0E 00 DC 08 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 67 [14:31:03]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [14:31:03]wFMCommunicate OK [14:31:03]SAM_PROTO_GetShiftState done [14:31:03]FM_GetShiftState done [14:31:03]opened in 1729383220 [14:31:03]opened+sec_in_day 1729469620 [14:31:03]quantity*price = 50041 [14:31:03]sum+1 = 50042 [14:31:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 225 20.10.2024 14:31 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69380 ФПД: 75937668020134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143103&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69380&fm=75937668020134&tin=02508201610067®Number=0000000000156251&sum=50000 [14:31:04]StoreToDocumentArchive [14:31:04]shift 193 fd 69380 [14:31:04]save to /storage/0193/doc_00069380 [14:31:04]save last doc name /storage/0193/doc_00069380 to /storage/kkm_last_doc_name [14:31:04]save OK [14:31:04]Clear old archive folders... [14:31:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:31:04]tlvbuf is 0024E1A0 [14:31:04]SAM_PROTO_ClearQueue [14:31:04]wFMCommunicate request_size=4 [14:31:04]MH_SAM_APDU [14:31:04]CAPDU: 80 09 00 00 [14:31:04]Write to MH i2c: E2 08 00 E9 08 80 09 00 00 00 00 00 00 63 [14:31:04]Write i2c OK [14:31:04]MH_I2C_Read... [14:31:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:04]Read from MH i2c: E2 [14:31:04]MH_I2C_Read... [14:31:04]Read from MH i2c: E2 03 00 [14:31:04]MH_I2C_Read... [14:31:04]Read from MH i2c: E2 03 00 E9 08 00 90 00 65 [14:31:04]RAPDU: 90 00 [14:31:04]wFMCommunicate OK [14:31:04]SAM_PROTO_ClearQueue done [14:31:04]KKMCreateOFDPacket [14:31:04]OFDProtocolAddRootSTLVToBuf [14:31:04]FM_MakeSignedData [14:31:04]FM_MakeSignedData [14:31:04]SAM_PROTO_SignData [14:31:04]wFMCommunicate request_size=4 [14:31:04]MH_SAM_APDU [14:31:04]CAPDU: 80 0D 01 02 [14:31:04]Write to MH i2c: E2 08 00 EA 08 80 0D 01 02 00 00 00 00 6B [14:31:04]Write i2c OK [14:31:04]MH_I2C_Read... [14:31:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:04]Read from MH i2c: E2 [14:31:04]MH_I2C_Read... [14:31:04]Read from MH i2c: E2 03 00 [14:31:04]MH_I2C_Read... [14:31:04]Read from MH i2c: E2 03 00 EA 08 00 90 00 66 [14:31:04]RAPDU: 90 00 [14:31:04]wFMCommunicate OK [14:31:04]wFMCommunicate request_size=255 [14:31:04]MH_SAM_APDU [14:31:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 27 14 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 04 0F 01 00 35 04 06 00 45 [14:31:04]Write to MH i2c: E2 02 01 EB 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 27 14 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 04 0F 01 00 35 04 06 00 45 00 00 A6 [14:31:04]Write i2c OK [14:31:04]MH_I2C_Read... [14:31:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:05]Read from MH i2c: E2 [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: E2 03 00 [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: E2 03 00 EB 08 00 90 00 67 [14:31:05]RAPDU: 90 00 [14:31:05]wFMCommunicate OK [14:31:05]wFMCommunicate request_size=10 [14:31:05]MH_SAM_APDU [14:31:05]CAPDU: 80 0D 02 02 05 10 9D BA 37 A6 [14:31:05]Write to MH i2c: E2 0D 00 EC 08 80 0D 02 02 05 00 10 9D BA 37 A6 00 00 BC [14:31:05]Write i2c OK [14:31:05]MH_I2C_Read... [14:31:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:05]Read from MH i2c: E2 [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: E2 03 00 [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: E2 03 00 EC 08 00 90 00 68 [14:31:05]RAPDU: 90 00 [14:31:05]wFMCommunicate OK [14:31:05]wFMCommunicate request_size=4 [14:31:05]MH_SAM_APDU [14:31:05]CAPDU: 80 0D 03 02 [14:31:05]Write to MH i2c: E2 08 00 ED 08 80 0D 03 02 00 00 00 00 70 [14:31:05]Write i2c OK [14:31:05]MH_I2C_Read... [14:31:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:31:05]Read from MH i2c: E2 [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: E2 0B 00 [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: E2 0B 00 ED 08 00 3D 9D 19 F8 F6 B2 84 48 90 00 D0 [14:31:05]RAPDU: 3D 9D 19 F8 F6 B2 84 48 90 00 [14:31:05]wFMCommunicate OK [14:31:05]SAM_PROTO_SignData done [14:31:05]FM_MakeSignedData done [14:31:05]CreateOFDProtocolMessage [14:31:05]wFMCommunicate request_size=4 [14:31:05]MH_SAM_APDU [14:31:05]CAPDU: 80 11 00 00 [14:31:05]Write to MH i2c: E2 08 00 EE 08 80 11 00 00 00 00 00 00 70 [14:31:05]Write i2c OK [14:31:05]MH_I2C_Read... [14:31:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:05]Read from MH i2c: E2 [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: E2 17 00 [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: E2 17 00 EE 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C2 [14:31:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:31:05]wFMCommunicate OK [14:31:05]CreateOFDProtocolMessage done [14:31:05]OFDSenderStorePacket 69380 [14:31:05]StoreOFDPacket docnum=69380 [14:31:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F9 1C 07 01 2F B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 27 14 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 04 0F 01 00 35 04 06 00 45 10 9D BA 37 A6 3D 9D 19 F8 F6 B2 84 48 [14:31:05]CheckFolder [14:31:05]dirname=/storage/ofd_packets [14:31:05]CheckFolder done [14:31:05]ProducePacketName [14:31:05]name=ofd_packets/00069380 [14:31:05]NVStorageSaveData ofd_packets/00069380 [14:31:05]File name is /storage/ofd_packets/00069380 [14:31:05]Write 301 bytes [14:31:05]NVStorageSaveData done [14:31:05]OFDSenderStorePacket done [14:31:05]KKMCreateOFDPacket done [14:31:05]NVStorageSaveData kkm_last_timestamp [14:31:05]File name is /storage/kkm_last_timestamp [14:31:05]Write 4 bytes [14:31:05]NVStorageSaveData done [14:31:05]ExternCall_PrintAddStr [14:31:05]wPrintStart [14:31:05]Write to MH i2c: 01 00 00 EF 08 F7 [14:31:05]Write i2c OK [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: 01 [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: 01 07 00 [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: 01 07 00 EF 08 00 00 00 00 00 FF 0F 0C [14:31:05]RasterBufferAndPrint [14:31:05]line Счет N : (1)2885105 [14:31:05]line ИНН: 02508201610067 [14:31:05]line Контрольно-Кассовый Чек [14:31:05]line ПРОДАЖА [14:31:05]line ТРК (МРК, ГНК) : 12 [14:31:05]line Товар: 2710124130 [14:31:05]line Аи-92-К-5 [14:31:05]line 7.480 * 66.90 [14:31:05]line = 500.41 [14:31:05]line НДС 12% НСП 1% [14:31:05]line > о реализуемом товаре [14:31:05]line ОКРУГЛЕНИЕ: -0.41 [14:31:05]line ИТОГО: 500.00 [14:31:05]line Внесено: 500.00 [14:31:05]line СДАЧА: 0.00 [14:31:05]line НСП 1% : 4.43 [14:31:05]line НДС 12% : 53.14 [14:31:05]line Наличными: 500.00 [14:31:05]line Безнал.: 0.00 [14:31:05]line Место: АЗС № 85 "Партнер Нефть" [14:31:05]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:31:05]line СНО: Общий режим [14:31:05]line Чек 225 20.10.2024 14:31 [14:31:05]line Смена: 193 ФФД: 1.0 [14:31:05]line ЗНМ: 0300000167 [14:31:05]line РНМ: 0000000000156251 [14:31:05]line Версия ККМ: v1.0 [14:31:05]line ФМ: 0000000000963346 [14:31:05]line ФД: 69380 [14:31:05]line ФПД: 75937668020134 [14:31:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143103&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69380&fm=75937668020134&tin=02508201610067®Number=0000000000156251&sum=50000 [14:31:05]written 0, free lines is 4095 [14:31:05]OFD Sender: Processing packet 69380 [packets to send 18, broken 17] [14:31:05]ProducePacketName [14:31:05]name=ofd_packets/00069380 [14:31:05]OFD Sender: To server: pG, [14:31:05]CommunicateWithHost lk.salyk.kg:30040 [14:31:05]ConnectInit lk.salyk.kg [14:31:05]Connected sock=10 [14:31:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F9 1C 07 01 2F B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 27 14 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 04 0F 01 00 35 04 06 00 45 10 9D BA 37 A6 3D 9D 19 F8 F6 B2 84 48 [14:31:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 BA 7E 47 00 8E 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 04 0F 01 00 F4 03 04 00 CE BD 14 67 B6 04 01 00 00 10 06 F4 B5 09 78 DE C3 [14:31:05]CommunicateWithHost err = 0 [14:31:05]CheckOFDResponse [14:31:05]1017 (14) - 77093643461234 [14:31:05]1041 (16) - 0000000000963346 [14:31:05]1040 (4) - 69380 [14:31:05]1012 (4) - 20.10.2024 08:22 [14:31:05]1206 (1) - 0 [14:31:05]OFD Sender: Remove packet 69380 [14:31:05]ProducePacketName [14:31:05]name=ofd_packets/00069380 [14:31:05]NVStorageDeleteData [14:31:05]Write to MH i2c: 01 00 00 1A 09 23 [14:31:05]Write i2c OK [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: 01 [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: 01 07 00 [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: 01 07 00 1A 09 00 00 00 00 00 04 0D 3B [14:31:05]RasterBufferAndPrint [14:31:05]line [14:31:05]line [14:31:05]line [14:31:05]line [14:31:05]line [14:31:05]written 0, free lines is 3338 [14:31:05]MH_Cut [14:31:05]Write to MH i2c: D1 01 00 21 09 01 FC [14:31:05]Write i2c OK [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: D1 [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: D1 01 00 [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: D1 01 00 21 09 00 FB [14:31:05]Write to MH i2c: 01 00 00 22 09 2B [14:31:05]Write i2c OK [14:31:05]MH_I2C_Read... [14:31:06]OFD Sender: No OFD packet to send [14:31:06]*** Cut start [14:31:06]*** Partial cut [14:31:06]*** CUTSNS_PIN = 1 [14:31:06]*** CUTSNS_PIN = 0 [14:31:06]*** Brake cut motor [14:31:06]Read from MH i2c: 01 [14:31:06]MH_I2C_Read... [14:31:06]*** Stop cut motor [14:31:07]*** Cut end [14:31:07]Read from MH i2c: 01 07 00 [14:31:07]MH_I2C_Read... [14:31:07]Read from MH i2c: 01 07 00 22 09 00 00 00 00 00 FF 0F 40 [14:31:07]process_action close_receipt done [14:31:07]requested_data is exist [14:31:07]produce_requested_data [14:31:07]requested_item fm.sn is exist - process it [14:31:07]wFMCommunicate request_size=4 [14:31:07]MH_SAM_APDU [14:31:07]CAPDU: 80 11 00 00 [14:31:07]Write to MH i2c: E2 08 00 23 09 80 11 00 00 00 00 00 00 A6 [14:31:07]Write i2c OK [14:31:07]MH_I2C_Read... [14:31:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:07]Read from MH i2c: E2 [14:31:07]MH_I2C_Read... [14:31:07]Read from MH i2c: E2 17 00 [14:31:07]MH_I2C_Read... [14:31:07]Read from MH i2c: E2 17 00 23 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F8 [14:31:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:31:07]wFMCommunicate OK [14:31:07]requested_item fd.num is exist - process it [14:31:07]SAM_PROTO_GetFieldsCounters [14:31:07]wFMCommunicate request_size=4 [14:31:07]MH_SAM_APDU [14:31:07]CAPDU: 80 13 00 00 [14:31:07]Write to MH i2c: E2 08 00 24 09 80 13 00 00 00 00 00 00 A9 [14:31:07]Write i2c OK [14:31:07]MH_I2C_Read... [14:31:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:31:07]Read from MH i2c: E2 [14:31:07]MH_I2C_Read... [14:31:07]Read from MH i2c: E2 62 00 [14:31:07]MH_I2C_Read... [14:31:07]Read from MH i2c: E2 62 00 24 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 04 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [14:31:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 04 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:31:07]wFMCommunicate OK [14:31:07]SAM_PROTO_GetFieldsCounters done [14:31:07]requested_item shift.num is exist - process it [14:31:07]requested_item shift.opened is exist - process it [14:31:07]req_shift_opened [14:31:07]FM_GetShiftState [14:31:07]SAM_PROTO_GetShiftState [14:31:07]wFMCommunicate request_size=4 [14:31:07]MH_SAM_APDU [14:31:07]CAPDU: 80 13 01 00 [14:31:07]Write to MH i2c: E2 08 00 25 09 80 13 01 00 00 00 00 00 AB [14:31:07]Write i2c OK [14:31:07]MH_I2C_Read... [14:31:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:07]Read from MH i2c: E2 [14:31:07]MH_I2C_Read... [14:31:07]Read from MH i2c: E2 0E 00 [14:31:07]MH_I2C_Read... [14:31:07]Read from MH i2c: E2 0E 00 25 09 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 B1 [14:31:07]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [14:31:07]wFMCommunicate OK [14:31:07]SAM_PROTO_GetShiftState done [14:31:07]FM_GetShiftState done [14:31:07]req_shift_opened done [14:31:07]requested_item shift.open_date is exist - process it [14:31:07]req_shift_open_date [14:31:07]req_shift_open_date done [14:31:07]produce_requested_data done [14:31:07]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69380,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [14:31:07]process_action_free close_receipt [14:31:07]json_value_free [14:31:07]json_value_free done [14:31:07]process_json_proto returns [14:31:07]Send response to host [14:31:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69380,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [14:31:07]free response buf [14:31:07]execute_script done [14:31:07]execute_script returns [14:31:07]free content buf [14:31:07]Sock 8.Close socket [14:31:07]Sock 8.Thread stoped [14:31:11]OFD Sender: No OFD packet to send [14:31:16]OFD Sender: No OFD packet to send [14:31:21]OFD Sender: No OFD packet to send [14:31:26]OFD Sender: No OFD packet to send [14:31:31]OFD Sender: No OFD packet to send [14:31:36]OFD Sender: No OFD packet to send [14:31:41]OFD Sender: No OFD packet to send [14:31:46]OFD Sender: No OFD packet to send [14:31:51]OFD Sender: No OFD packet to send [14:31:56]OFD Sender: No OFD packet to send [14:32:01]OFD Sender: No OFD packet to send [14:32:06]OFD Sender: No OFD packet to send [14:32:11]OFD Sender: No OFD packet to send [14:32:16]OFD Sender: No OFD packet to send [14:32:21]OFD Sender: No OFD packet to send [14:32:26]OFD Sender: No OFD packet to send [14:32:31]OFD Sender: No OFD packet to send [14:32:35]accept exits with 9 [14:32:35]New connection [14:32:35]New thread 3066568036 created [14:32:35]Thread 3066711396 joined [14:32:35]Waiting for new connection... [14:32:35] Sock 9.Parse request [14:32:35]Sock 9.Check first char [14:32:35]Sock 9.First char is OK [14:32:35]request: POST /json_proto HTTP/1.0 [14:32:35]Method: POST [14:32:35]URL: /json_proto [14:32:35]Method is POST - this is cgi request [14:32:35]url: /json_proto [14:32:35]query_string will be loaded in cgi processing [14:32:35]execute_cgi json_proto POST (null) [14:32:35]execute_cgi path=json_proto method=POST [14:32:35]POST find Content-Length [14:32:35]Host: 172.17.50.3:8080 [14:32:35]Content-Length: 678 [14:32:35]Content-Type: application/json [14:32:35] [14:32:35]POST finish read [14:32:35]Found Content-Length = 678 [14:32:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:35]execute_script... [14:32:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:35]POST & json_proto [14:32:35]process_json_proto [14:32:35]json parsed OK: [14:32:35]protocol is kg_v1.0 [14:32:35]action value=close_receipt [14:32:35]process_action close_receipt [14:32:35]cmd_close_receipt [14:32:35]MH_GetDate [14:32:35]Write to MH i2c: F0 00 00 26 09 1E [14:32:35]Write i2c OK [14:32:35]MH_I2C_Read... [14:32:35]Read from MH i2c: F0 [14:32:35]MH_I2C_Read... [14:32:35]Read from MH i2c: F0 09 00 [14:32:35]MH_I2C_Read... [14:32:35]Read from MH i2c: F0 09 00 26 09 00 84 14 15 67 6B 98 1E 66 C2 [14:32:35]GetLastDocTimeStamp 1729434663 [14:32:35]current date 1729434756 [14:32:35]FM_GetShiftState [14:32:35]SAM_PROTO_GetShiftState [14:32:35]wFMCommunicate request_size=4 [14:32:35]MH_SAM_APDU [14:32:35]CAPDU: 80 13 01 00 [14:32:35]Write to MH i2c: E2 08 00 27 09 80 13 01 00 00 00 00 00 AD [14:32:35]Write i2c OK [14:32:35]MH_I2C_Read... [14:32:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:35]Read from MH i2c: E2 [14:32:35]MH_I2C_Read... [14:32:35]Read from MH i2c: E2 0E 00 [14:32:35]MH_I2C_Read... [14:32:35]Read from MH i2c: E2 0E 00 27 09 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 B3 [14:32:35]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [14:32:35]wFMCommunicate OK [14:32:35]SAM_PROTO_GetShiftState done [14:32:35]FM_GetShiftState done [14:32:35]opened in 1729383220 [14:32:35]opened+sec_in_day 1729469620 [14:32:35]quantity*price = 50041 [14:32:35]sum+1 = 50042 [14:32:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 226 20.10.2024 14:32 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69381 ФПД: 69136527939909 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143236&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69381&fm=69136527939909&tin=02508201610067®Number=0000000000156251&sum=50000 [14:32:36]StoreToDocumentArchive [14:32:36]shift 193 fd 69381 [14:32:36]save to /storage/0193/doc_00069381 [14:32:36]save last doc name /storage/0193/doc_00069381 to /storage/kkm_last_doc_name [14:32:36]save OK [14:32:36]Clear old archive folders... [14:32:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:32:36]tlvbuf is 0023FDD0 [14:32:36]SAM_PROTO_ClearQueue [14:32:36]wFMCommunicate request_size=4 [14:32:36]MH_SAM_APDU [14:32:36]CAPDU: 80 09 00 00 [14:32:36]Write to MH i2c: E2 08 00 34 09 80 09 00 00 00 00 00 00 AF [14:32:36]Write i2c OK [14:32:36]MH_I2C_Read... [14:32:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:32:36]Read from MH i2c: E2 [14:32:36]MH_I2C_Read... [14:32:36]Read from MH i2c: E2 03 00 [14:32:36]MH_I2C_Read... [14:32:36]Read from MH i2c: E2 03 00 34 09 00 90 00 B1 [14:32:36]RAPDU: 90 00 [14:32:36]wFMCommunicate OK [14:32:36]SAM_PROTO_ClearQueue done [14:32:36]KKMCreateOFDPacket [14:32:36]OFDProtocolAddRootSTLVToBuf [14:32:36]FM_MakeSignedData [14:32:36]FM_MakeSignedData [14:32:36]SAM_PROTO_SignData [14:32:36]wFMCommunicate request_size=4 [14:32:36]MH_SAM_APDU [14:32:36]CAPDU: 80 0D 01 02 [14:32:36]Write to MH i2c: E2 08 00 35 09 80 0D 01 02 00 00 00 00 B7 [14:32:36]Write i2c OK [14:32:36]MH_I2C_Read... [14:32:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:32:36]Read from MH i2c: E2 [14:32:36]MH_I2C_Read... [14:32:36]Read from MH i2c: E2 03 00 [14:32:36]MH_I2C_Read... [14:32:36]Read from MH i2c: E2 03 00 35 09 00 90 00 B2 [14:32:36]RAPDU: 90 00 [14:32:36]wFMCommunicate OK [14:32:36]wFMCommunicate request_size=255 [14:32:36]MH_SAM_APDU [14:32: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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 84 14 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 05 0F 01 00 35 04 06 00 3E [14:32:36]Write to MH i2c: E2 02 01 36 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 84 14 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 05 0F 01 00 35 04 06 00 3E 00 00 4A [14:32:36]Write i2c OK [14:32:36]MH_I2C_Read... [14:32:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:37]Read from MH i2c: E2 [14:32:37]MH_I2C_Read... [14:32:37]Read from MH i2c: E2 03 00 [14:32:37]MH_I2C_Read... [14:32:37]Read from MH i2c: E2 03 00 36 09 00 90 00 B3 [14:32:37]RAPDU: 90 00 [14:32:37]wFMCommunicate OK [14:32:37]wFMCommunicate request_size=10 [14:32:37]MH_SAM_APDU [14:32:37]CAPDU: 80 0D 02 02 05 E1 1A 30 59 45 [14:32:37]Write to MH i2c: E2 0D 00 37 09 80 0D 02 02 05 00 E1 1A 30 59 45 00 00 8D [14:32:37]Write i2c OK [14:32:37]MH_I2C_Read... [14:32:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:37]Read from MH i2c: E2 [14:32:37]MH_I2C_Read... [14:32:37]Read from MH i2c: E2 03 00 [14:32:37]MH_I2C_Read... [14:32:37]Read from MH i2c: E2 03 00 37 09 00 90 00 B4 [14:32:37]RAPDU: 90 00 [14:32:37]wFMCommunicate OK [14:32:37]wFMCommunicate request_size=4 [14:32:37]MH_SAM_APDU [14:32:37]CAPDU: 80 0D 03 02 [14:32:37]Write to MH i2c: E2 08 00 38 09 80 0D 03 02 00 00 00 00 BC [14:32:37]Write i2c OK [14:32:37]MH_I2C_Read... [14:32:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:32:37]Read from MH i2c: E2 [14:32:37]MH_I2C_Read... [14:32:37]Read from MH i2c: E2 0B 00 [14:32:37]MH_I2C_Read... [14:32:37]Read from MH i2c: E2 0B 00 38 09 00 DF DA A5 C9 82 69 7F 11 90 00 5F [14:32:37]RAPDU: DF DA A5 C9 82 69 7F 11 90 00 [14:32:37]wFMCommunicate OK [14:32:37]SAM_PROTO_SignData done [14:32:37]FM_MakeSignedData done [14:32:37]CreateOFDProtocolMessage [14:32:37]wFMCommunicate request_size=4 [14:32:37]MH_SAM_APDU [14:32:37]CAPDU: 80 11 00 00 [14:32:37]Write to MH i2c: E2 08 00 39 09 80 11 00 00 00 00 00 00 BC [14:32:37]Write i2c OK [14:32:37]MH_I2C_Read... [14:32:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:37]Read from MH i2c: E2 [14:32:37]MH_I2C_Read... [14:32:37]Read from MH i2c: E2 17 00 [14:32:37]MH_I2C_Read... [14:32:37]Read from MH i2c: E2 17 00 39 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0E [14:32:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:32:37]wFMCommunicate OK [14:32:37]CreateOFDProtocolMessage done [14:32:37]OFDSenderStorePacket 69381 [14:32:37]StoreOFDPacket docnum=69381 [14:32:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 77 EC 07 01 DF 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 84 14 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 05 0F 01 00 35 04 06 00 3E E1 1A 30 59 45 DF DA A5 C9 82 69 7F 11 [14:32:37]CheckFolder [14:32:37]dirname=/storage/ofd_packets [14:32:37]CheckFolder done [14:32:37]ProducePacketName [14:32:37]name=ofd_packets/00069381 [14:32:37]NVStorageSaveData ofd_packets/00069381 [14:32:37]File name is /storage/ofd_packets/00069381 [14:32:37]Write 301 bytes [14:32:37]NVStorageSaveData done [14:32:37]OFDSenderStorePacket done [14:32:37]KKMCreateOFDPacket done [14:32:37]NVStorageSaveData kkm_last_timestamp [14:32:37]File name is /storage/kkm_last_timestamp [14:32:37]Write 4 bytes [14:32:37]NVStorageSaveData done [14:32:37]ExternCall_PrintAddStr [14:32:37]wPrintStart [14:32:37]Write to MH i2c: 01 00 00 3A 09 43 [14:32:37]OFD Sender: Processing packet 69381 [packets to send 18, broken 17] [14:32:37]ProducePacketName [14:32:37]name=ofd_packets/00069381 [14:32:37]OFD Sender: To server: pG, [14:32:37]CommunicateWithHost lk.salyk.kg:30040 [14:32:37]ConnectInit lk.salyk.kg [14:32:37]Write i2c OK [14:32:37]MH_I2C_Read... [14:32:37]Read from MH i2c: 01 [14:32:37]MH_I2C_Read... [14:32:37]Read from MH i2c: 01 07 00 [14:32:37]MH_I2C_Read... [14:32:37]Read from MH i2c: 01 07 00 3A 09 00 00 00 00 00 FF 0F 58 [14:32:37]RasterBufferAndPrint [14:32:37]line Счет N : (1)2885106 [14:32:37]line ИНН: 02508201610067 [14:32:37]line Контрольно-Кассовый Чек [14:32:37]line ПРОДАЖА [14:32:37]line ТРК (МРК, ГНК) : 42 [14:32:37]line Товар: 2710124130 [14:32:37]line Аи-92-К-5 [14:32:37]line 7.480 * 66.90 [14:32:37]line = 500.41 [14:32:37]line НДС 12% НСП 1% [14:32:37]line > о реализуемом товаре [14:32:37]line ОКРУГЛЕНИЕ: -0.41 [14:32:37]line ИТОГО: 500.00 [14:32:37]line Внесено: 500.00 [14:32:37]line СДАЧА: 0.00 [14:32:37]line НСП 1% : 4.43 [14:32:37]line НДС 12% : 53.14 [14:32:37]line Наличными: 500.00 [14:32:37]line Безнал.: 0.00 [14:32:37]line Место: АЗС № 85 "Партнер Нефть" [14:32:37]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:32:37]line СНО: Общий режим [14:32:37]line Чек 226 20.10.2024 14:32 [14:32:37]line Смена: 193 ФФД: 1.0 [14:32:37]line ЗНМ: 0300000167 [14:32:37]line РНМ: 0000000000156251 [14:32:37]line Версия ККМ: v1.0 [14:32:37]line ФМ: 0000000000963346 [14:32:37]line ФД: 69381 [14:32:37]line ФПД: 69136527939909 [14:32:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143236&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69381&fm=69136527939909&tin=02508201610067®Number=0000000000156251&sum=50000 [14:32:37]Connected sock=10 [14:32:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 77 EC 07 01 DF 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 84 14 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 05 0F 01 00 35 04 06 00 3E E1 1A 30 59 45 DF DA A5 C9 82 69 7F 11 [14:32:37]written 0, free lines is 4095 [14:32:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 9E 35 47 00 FD 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 05 0F 01 00 F4 03 04 00 2A BE 14 67 B6 04 01 00 00 D3 27 3B 45 80 1B 5B 6A [14:32:37]CommunicateWithHost err = 0 [14:32:37]CheckOFDResponse [14:32:37]1017 (14) - 77093643461234 [14:32:37]1041 (16) - 0000000000963346 [14:32:37]1040 (4) - 69381 [14:32:37]1012 (4) - 20.10.2024 08:24 [14:32:37]1206 (1) - 0 [14:32:37]OFD Sender: Remove packet 69381 [14:32:37]ProducePacketName [14:32:37]name=ofd_packets/00069381 [14:32:37]NVStorageDeleteData [14:32:38]Write to MH i2c: 01 00 00 65 09 6E [14:32:38]Write i2c OK [14:32:38]MH_I2C_Read... [14:32:38]Read from MH i2c: 01 [14:32:38]MH_I2C_Read... [14:32:38]Read from MH i2c: 01 07 00 [14:32:38]MH_I2C_Read... [14:32:38]Read from MH i2c: 01 07 00 65 09 00 00 00 00 00 E2 0C 63 [14:32:38]RasterBufferAndPrint [14:32:38]line [14:32:38]line [14:32:38]line [14:32:38]line [14:32:38]line [14:32:38]written 0, free lines is 3304 [14:32:38]MH_Cut [14:32:38]Write to MH i2c: D1 01 00 6C 09 01 47 [14:32:38]Write i2c OK [14:32:38]MH_I2C_Read... [14:32:38]Read from MH i2c: D1 [14:32:38]MH_I2C_Read... [14:32:38]Read from MH i2c: D1 01 00 [14:32:38]MH_I2C_Read... [14:32:38]Read from MH i2c: D1 01 00 6C 09 00 46 [14:32:38]Write to MH i2c: 01 00 00 6D 09 76 [14:32:38]Write i2c OK [14:32:38]MH_I2C_Read... [14:32:38]OFD Sender: No OFD packet to send [14:32:38]*** Cut start [14:32:38]*** Partial cut [14:32:38]*** CUTSNS_PIN = 1 [14:32:38]*** CUTSNS_PIN = 0 [14:32:39]*** Brake cut motor [14:32:39]Read from MH i2c: 01 [14:32:39]MH_I2C_Read... [14:32:39]*** Stop cut motor [14:32:39]*** Cut end [14:32:39]Read from MH i2c: 01 07 00 [14:32:39]MH_I2C_Read... [14:32:39]Read from MH i2c: 01 07 00 6D 09 00 00 00 00 00 FF 0F 8B [14:32:39]process_action close_receipt done [14:32:39]requested_data is exist [14:32:39]produce_requested_data [14:32:39]requested_item fm.sn is exist - process it [14:32:39]wFMCommunicate request_size=4 [14:32:39]MH_SAM_APDU [14:32:39]CAPDU: 80 11 00 00 [14:32:39]Write to MH i2c: E2 08 00 6E 09 80 11 00 00 00 00 00 00 F1 [14:32:39]Write i2c OK [14:32:39]MH_I2C_Read... [14:32:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:39]Read from MH i2c: E2 [14:32:39]MH_I2C_Read... [14:32:39]Read from MH i2c: E2 17 00 [14:32:39]MH_I2C_Read... [14:32:39]Read from MH i2c: E2 17 00 6E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 43 [14:32:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:32:39]wFMCommunicate OK [14:32:39]requested_item fd.num is exist - process it [14:32:39]SAM_PROTO_GetFieldsCounters [14:32:39]wFMCommunicate request_size=4 [14:32:39]MH_SAM_APDU [14:32:39]CAPDU: 80 13 00 00 [14:32:39]Write to MH i2c: E2 08 00 6F 09 80 13 00 00 00 00 00 00 F4 [14:32:39]Write i2c OK [14:32:39]MH_I2C_Read... [14:32:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:32:39]Read from MH i2c: E2 [14:32:39]MH_I2C_Read... [14:32:39]Read from MH i2c: E2 62 00 [14:32:39]MH_I2C_Read... [14:32:39]Read from MH i2c: E2 62 00 6F 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 05 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [14:32:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 05 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:32:39]wFMCommunicate OK [14:32:39]SAM_PROTO_GetFieldsCounters done [14:32:39]requested_item shift.num is exist - process it [14:32:39]requested_item shift.opened is exist - process it [14:32:39]req_shift_opened [14:32:39]FM_GetShiftState [14:32:39]SAM_PROTO_GetShiftState [14:32:39]wFMCommunicate request_size=4 [14:32:39]MH_SAM_APDU [14:32:39]CAPDU: 80 13 01 00 [14:32:39]Write to MH i2c: E2 08 00 70 09 80 13 01 00 00 00 00 00 F6 [14:32:39]Write i2c OK [14:32:39]MH_I2C_Read... [14:32:39]Read from MH i2c: E2 [14:32:39]MH_I2C_Read... [14:32:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:39]Read from MH i2c: E2 0E 00 [14:32:39]MH_I2C_Read... [14:32:39]Read from MH i2c: E2 0E 00 70 09 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 FC [14:32:39]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [14:32:39]wFMCommunicate OK [14:32:39]SAM_PROTO_GetShiftState done [14:32:39]FM_GetShiftState done [14:32:39]req_shift_opened done [14:32:39]requested_item shift.open_date is exist - process it [14:32:39]req_shift_open_date [14:32:39]req_shift_open_date done [14:32:39]produce_requested_data done [14:32:39]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69381,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [14:32:39]process_action_free close_receipt [14:32:39]json_value_free [14:32:39]json_value_free done [14:32:39]process_json_proto returns [14:32:39]Send response to host [14:32:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69381,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [14:32:39]free response buf [14:32:39]execute_script done [14:32:39]execute_script returns [14:32:39]free content buf [14:32:39]Sock 9.Close socket [14:32:39]Sock 9.Thread stoped [14:32:43]OFD Sender: No OFD packet to send [14:32:48]OFD Sender: No OFD packet to send [14:32:53]OFD Sender: No OFD packet to send [14:32:58]OFD Sender: No OFD packet to send [14:33:03]OFD Sender: No OFD packet to send [14:33:08]OFD Sender: No OFD packet to send [14:33:13]OFD Sender: No OFD packet to send [14:33:18]OFD Sender: No OFD packet to send [14:33:23]OFD Sender: No OFD packet to send [14:33:28]OFD Sender: No OFD packet to send [14:33:33]OFD Sender: No OFD packet to send [14:33:38]OFD Sender: No OFD packet to send [14:33:43]OFD Sender: No OFD packet to send [14:33:48]OFD Sender: No OFD packet to send [14:33:53]OFD Sender: No OFD packet to send [14:33:58]OFD Sender: No OFD packet to send [14:34:03]OFD Sender: No OFD packet to send [14:34:08]OFD Sender: No OFD packet to send [14:34:13]OFD Sender: No OFD packet to send [14:34:18]OFD Sender: No OFD packet to send [14:34:23]OFD Sender: No OFD packet to send [14:34:24]accept exits with 8 [14:34:24]New connection [14:34:24]New thread 3066711396 created [14:34:24]Thread 3066568036 joined [14:34:24]Waiting for new connection... [14:34:24] Sock 8.Parse request [14:34:24]Sock 8.Check first char [14:34:24]Sock 8.First char is OK [14:34:24]request: POST /json_proto HTTP/1.0 [14:34:24]Method: POST [14:34:24]URL: /json_proto [14:34:24]Method is POST - this is cgi request [14:34:24]url: /json_proto [14:34:24]query_string will be loaded in cgi processing [14:34:24]execute_cgi json_proto POST (null) [14:34:24]execute_cgi path=json_proto method=POST [14:34:24]POST find Content-Length [14:34:24]Host: 172.17.50.3:8080 [14:34:24]Content-Length: 683 [14:34:24]Content-Type: application/json [14:34:24] [14:34:24]POST finish read [14:34:24]Found Content-Length = 683 [14:34:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:34:24]execute_script... [14:34:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:34:24]POST & json_proto [14:34:24]process_json_proto [14:34:24]json parsed OK: [14:34:24]protocol is kg_v1.0 [14:34:24]action value=close_receipt [14:34:24]process_action close_receipt [14:34:24]cmd_close_receipt [14:34:24]MH_GetDate [14:34:24]Write to MH i2c: F0 00 00 71 09 69 [14:34:24]Write i2c OK [14:34:24]MH_I2C_Read... [14:34:24]Read from MH i2c: F0 [14:34:24]MH_I2C_Read... [14:34:24]Read from MH i2c: F0 09 00 [14:34:24]MH_I2C_Read... [14:34:24]Read from MH i2c: F0 09 00 71 09 00 F0 14 15 67 6B 98 1E 66 79 [14:34:24]GetLastDocTimeStamp 1729434756 [14:34:24]current date 1729434864 [14:34:24]FM_GetShiftState [14:34:24]SAM_PROTO_GetShiftState [14:34:24]wFMCommunicate request_size=4 [14:34:24]MH_SAM_APDU [14:34:24]CAPDU: 80 13 01 00 [14:34:24]Write to MH i2c: E2 08 00 72 09 80 13 01 00 00 00 00 00 F8 [14:34:24]Write i2c OK [14:34:24]MH_I2C_Read... [14:34:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:24]Read from MH i2c: E2 [14:34:24]MH_I2C_Read... [14:34:24]Read from MH i2c: E2 0E 00 [14:34:24]MH_I2C_Read... [14:34:24]Read from MH i2c: E2 0E 00 72 09 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 FE [14:34:24]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [14:34:24]wFMCommunicate OK [14:34:24]SAM_PROTO_GetShiftState done [14:34:24]FM_GetShiftState done [14:34:24]opened in 1729383220 [14:34:24]opened+sec_in_day 1729469620 [14:34:24]quantity*price = 100015 [14:34:24]sum+1 = 100017 [14:34:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 227 20.10.2024 14:34 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69382 ФПД: 162540008984809 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143424&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69382&fm=162540008984809&tin=02508201610067®Number=0000000000156251&sum=100000 [14:34:25]StoreToDocumentArchive [14:34:25]shift 193 fd 69382 [14:34:25]save to /storage/0193/doc_00069382 [14:34:25]save last doc name /storage/0193/doc_00069382 to /storage/kkm_last_doc_name [14:34:25]save OK [14:34:25]Clear old archive folders... [14:34:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:34:25]tlvbuf is 00273DC0 [14:34:25]SAM_PROTO_ClearQueue [14:34:25]wFMCommunicate request_size=4 [14:34:25]MH_SAM_APDU [14:34:25]CAPDU: 80 09 00 00 [14:34:25]Write to MH i2c: E2 08 00 7F 09 80 09 00 00 00 00 00 00 FA [14:34:25]Write i2c OK [14:34:25]MH_I2C_Read... [14:34:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:34:25]Read from MH i2c: E2 [14:34:25]MH_I2C_Read... [14:34:25]Read from MH i2c: E2 03 00 [14:34:25]MH_I2C_Read... [14:34:25]Read from MH i2c: E2 03 00 7F 09 00 90 00 FC [14:34:25]RAPDU: 90 00 [14:34:25]wFMCommunicate OK [14:34:25]SAM_PROTO_ClearQueue done [14:34:25]KKMCreateOFDPacket [14:34:25]OFDProtocolAddRootSTLVToBuf [14:34:25]FM_MakeSignedData [14:34:25]FM_MakeSignedData [14:34:25]SAM_PROTO_SignData [14:34:25]wFMCommunicate request_size=4 [14:34:25]MH_SAM_APDU [14:34:25]CAPDU: 80 0D 01 02 [14:34:25]Write to MH i2c: E2 08 00 80 09 80 0D 01 02 00 00 00 00 02 [14:34:25]Write i2c OK [14:34:25]MH_I2C_Read... [14:34:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:34:25]Read from MH i2c: E2 [14:34:25]MH_I2C_Read... [14:34:25]Read from MH i2c: E2 03 00 [14:34:25]MH_I2C_Read... [14:34:25]Read from MH i2c: E2 03 00 80 09 00 90 00 FD [14:34:25]RAPDU: 90 00 [14:34:25]wFMCommunicate OK [14:34:25]wFMCommunicate request_size=255 [14:34:25]MH_SAM_APDU [14:34:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 F0 14 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 06 0F 01 00 35 04 06 00 93 [14:34:25]Write to MH i2c: E2 02 01 81 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 F0 14 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 06 0F 01 00 35 04 06 00 93 00 00 52 [14:34:25]Write i2c OK [14:34:25]MH_I2C_Read... [14:34:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:25]Read from MH i2c: E2 [14:34:25]MH_I2C_Read... [14:34:25]Read from MH i2c: E2 03 00 [14:34:25]MH_I2C_Read... [14:34:25]Read from MH i2c: E2 03 00 81 09 00 90 00 FE [14:34:25]RAPDU: 90 00 [14:34:25]wFMCommunicate OK [14:34:25]wFMCommunicate request_size=10 [14:34:25]MH_SAM_APDU [14:34:25]CAPDU: 80 0D 02 02 05 D4 4B 7F 50 E9 [14:34:25]Write to MH i2c: E2 0D 00 82 09 80 0D 02 02 05 00 D4 4B 7F 50 E9 00 00 E6 [14:34:25]Write i2c OK [14:34:25]MH_I2C_Read... [14:34:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:25]Read from MH i2c: E2 [14:34:25]MH_I2C_Read... [14:34:25]Read from MH i2c: E2 03 00 [14:34:25]MH_I2C_Read... [14:34:25]Read from MH i2c: E2 03 00 82 09 00 90 00 FF [14:34:25]RAPDU: 90 00 [14:34:25]wFMCommunicate OK [14:34:25]wFMCommunicate request_size=4 [14:34:25]MH_SAM_APDU [14:34:25]CAPDU: 80 0D 03 02 [14:34:25]Write to MH i2c: E2 08 00 83 09 80 0D 03 02 00 00 00 00 07 [14:34:25]Write i2c OK [14:34:25]MH_I2C_Read... [14:34:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:34:25]Read from MH i2c: E2 [14:34:25]MH_I2C_Read... [14:34:25]Read from MH i2c: E2 0B 00 [14:34:25]MH_I2C_Read... [14:34:25]Read from MH i2c: E2 0B 00 83 09 00 86 5A 99 5E 9C 5D 92 3F 90 00 A9 [14:34:25]RAPDU: 86 5A 99 5E 9C 5D 92 3F 90 00 [14:34:25]wFMCommunicate OK [14:34:25]SAM_PROTO_SignData done [14:34:25]FM_MakeSignedData done [14:34:25]CreateOFDProtocolMessage [14:34:25]wFMCommunicate request_size=4 [14:34:25]MH_SAM_APDU [14:34:25]CAPDU: 80 11 00 00 [14:34:25]Write to MH i2c: E2 08 00 84 09 80 11 00 00 00 00 00 00 07 [14:34:25]Write i2c OK [14:34:25]MH_I2C_Read... [14:34:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:25]Read from MH i2c: E2 [14:34:25]MH_I2C_Read... [14:34:25]Read from MH i2c: E2 17 00 [14:34:25]MH_I2C_Read... [14:34:25]Read from MH i2c: E2 17 00 84 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 59 [14:34:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:34:25]wFMCommunicate OK [14:34:25]CreateOFDProtocolMessage done [14:34:25]OFDSenderStorePacket 69382 [14:34:25]StoreOFDPacket docnum=69382 [14:34:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C5 9E 07 01 DF C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 F0 14 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 06 0F 01 00 35 04 06 00 93 D4 4B 7F 50 E9 86 5A 99 5E 9C 5D 92 3F [14:34:25]CheckFolder [14:34:25]dirname=/storage/ofd_packets [14:34:25]CheckFolder done [14:34:25]ProducePacketName [14:34:25]name=ofd_packets/00069382 [14:34:25]NVStorageSaveData ofd_packets/00069382 [14:34:25]File name is /storage/ofd_packets/00069382 [14:34:25]Write 301 bytes [14:34:25]NVStorageSaveData done [14:34:25]OFDSenderStorePacket done [14:34:25]KKMCreateOFDPacket done [14:34:25]NVStorageSaveData kkm_last_timestamp [14:34:25]File name is /storage/kkm_last_timestamp [14:34:25]Write 4 bytes [14:34:25]NVStorageSaveData done [14:34:25]ExternCall_PrintAddStr [14:34:25]wPrintStart [14:34:25]Write to MH i2c: 01 00 00 85 09 8E [14:34:25]Write i2c OK [14:34:25]MH_I2C_Read... [14:34:25]Read from MH i2c: 01 [14:34:25]MH_I2C_Read... [14:34:25]Read from MH i2c: 01 07 00 [14:34:25]MH_I2C_Read... [14:34:25]Read from MH i2c: 01 07 00 85 09 00 00 00 00 00 FF 0F A3 [14:34:25]RasterBufferAndPrint [14:34:25]line Счет N : (1)2885107 [14:34:25]line ИНН: 02508201610067 [14:34:25]line Контрольно-Кассовый Чек [14:34:25]line ПРОДАЖА [14:34:25]line ТРК (МРК, ГНК) : 22 [14:34:25]line Товар: 2710124130 [14:34:25]line Аи-92-К-5 [14:34:25]line 14.950 * 66.90 [14:34:25]line = 1000.16 [14:34:25]line НДС 12% НСП 1% [14:34:25]line > о реализуемом товаре [14:34:25]line ОКРУГЛЕНИЕ: -0.16 [14:34:25]line ИТОГО: 1000.00 [14:34:25]line Внесено: 1000.00 [14:34:25]line СДАЧА: 0.00 [14:34:25]line НСП 1% : 8.85 [14:34:25]line НДС 12% : 106.21 [14:34:25]line Наличными: 1000.00 [14:34:25]line Безнал.: 0.00 [14:34:25]line Место: АЗС № 85 "Партнер Нефть" [14:34:25]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:34:25]line СНО: Общий режим [14:34:25]line Чек 227 20.10.2024 14:34 [14:34:25]line Смена: 193 ФФД: 1.0 [14:34:25]line ЗНМ: 0300000167 [14:34:25]line РНМ: 0000000000156251 [14:34:25]line Версия ККМ: v1.0 [14:34:25]line ФМ: 0000000000963346 [14:34:25]line ФД: 69382 [14:34:25]line ФПД: 162540008984809 [14:34:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143424&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69382&fm=162540008984809&tin=02508201610067®Number=0000000000156251&sum=100000 [14:34:26]OFD Sender: Processing packet 69382 [packets to send 18, broken 17] [14:34:26]ProducePacketName [14:34:26]name=ofd_packets/00069382 [14:34:26]OFD Sender: To server: pG, [14:34:26]CommunicateWithHost lk.salyk.kg:30040 [14:34:26]ConnectInit lk.salyk.kg [14:34:26]written 0, free lines is 4095 [14:34:26]Connected sock=11 [14:34:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C5 9E 07 01 DF C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 F0 14 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 06 0F 01 00 35 04 06 00 93 D4 4B 7F 50 E9 86 5A 99 5E 9C 5D 92 3F [14:34:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 EF B1 47 00 98 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 06 0F 01 00 F4 03 04 00 97 BE 14 67 B6 04 01 00 00 FD 6E A5 61 D6 42 2F A2 [14:34:26]CommunicateWithHost err = 0 [14:34:26]CheckOFDResponse [14:34:26]1017 (14) - 77093643461234 [14:34:26]1041 (16) - 0000000000963346 [14:34:26]1040 (4) - 69382 [14:34:26]1012 (4) - 20.10.2024 08:25 [14:34:26]1206 (1) - 0 [14:34:26]OFD Sender: Remove packet 69382 [14:34:26]ProducePacketName [14:34:26]name=ofd_packets/00069382 [14:34:26]NVStorageDeleteData [14:34:26]Write to MH i2c: 01 00 00 B0 09 B9 [14:34:26]Write i2c OK [14:34:26]MH_I2C_Read... [14:34:26]Read from MH i2c: 01 [14:34:26]MH_I2C_Read... [14:34:26]Read from MH i2c: 01 07 00 [14:34:26]MH_I2C_Read... [14:34:26]Read from MH i2c: 01 07 00 B0 09 00 00 00 00 00 EC 0C B8 [14:34:26]RasterBufferAndPrint [14:34:26]line [14:34:26]line [14:34:26]line [14:34:26]line [14:34:26]line [14:34:26]written 0, free lines is 3314 [14:34:26]MH_Cut [14:34:26]Write to MH i2c: D1 01 00 B7 09 01 92 [14:34:26]Write i2c OK [14:34:26]MH_I2C_Read... [14:34:26]Read from MH i2c: D1 [14:34:26]MH_I2C_Read... [14:34:26]Read from MH i2c: D1 01 00 [14:34:26]MH_I2C_Read... [14:34:26]Read from MH i2c: D1 01 00 B7 09 00 91 [14:34:26]Write to MH i2c: 01 00 00 B8 09 C1 [14:34:26]Write i2c OK [14:34:26]MH_I2C_Read... [14:34:26]OFD Sender: No OFD packet to send [14:34:27]*** Cut start [14:34:27]*** Partial cut [14:34:27]*** CUTSNS_PIN = 1 [14:34:27]*** CUTSNS_PIN = 0 [14:34:27]*** Brake cut motor [14:34:27]Read from MH i2c: 01 [14:34:27]MH_I2C_Read... [14:34:27]*** Stop cut motor [14:34:27]*** Cut end [14:34:27]Read from MH i2c: 01 07 00 [14:34:27]MH_I2C_Read... [14:34:27]Read from MH i2c: 01 07 00 B8 09 00 00 00 00 00 FF 0F D6 [14:34:27]process_action close_receipt done [14:34:27]requested_data is exist [14:34:27]produce_requested_data [14:34:27]requested_item fm.sn is exist - process it [14:34:27]wFMCommunicate request_size=4 [14:34:27]MH_SAM_APDU [14:34:27]CAPDU: 80 11 00 00 [14:34:27]Write to MH i2c: E2 08 00 B9 09 80 11 00 00 00 00 00 00 3C [14:34:27]Write i2c OK [14:34:27]MH_I2C_Read... [14:34:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:27]Read from MH i2c: E2 [14:34:27]MH_I2C_Read... [14:34:27]Read from MH i2c: E2 17 00 [14:34:27]MH_I2C_Read... [14:34:27]Read from MH i2c: E2 17 00 B9 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8E [14:34:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:34:27]wFMCommunicate OK [14:34:27]requested_item fd.num is exist - process it [14:34:27]SAM_PROTO_GetFieldsCounters [14:34:27]wFMCommunicate request_size=4 [14:34:27]MH_SAM_APDU [14:34:27]CAPDU: 80 13 00 00 [14:34:27]Write to MH i2c: E2 08 00 BA 09 80 13 00 00 00 00 00 00 3F [14:34:27]Write i2c OK [14:34:27]MH_I2C_Read... [14:34:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:34:28]Read from MH i2c: E2 [14:34:28]MH_I2C_Read... [14:34:28]Read from MH i2c: E2 62 00 [14:34:28]MH_I2C_Read... [14:34:28]Read from MH i2c: E2 62 00 BA 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 06 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [14:34:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 06 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:34:28]wFMCommunicate OK [14:34:28]SAM_PROTO_GetFieldsCounters done [14:34:28]requested_item shift.num is exist - process it [14:34:28]requested_item shift.opened is exist - process it [14:34:28]req_shift_opened [14:34:28]FM_GetShiftState [14:34:28]SAM_PROTO_GetShiftState [14:34:28]wFMCommunicate request_size=4 [14:34:28]MH_SAM_APDU [14:34:28]CAPDU: 80 13 01 00 [14:34:28]Write to MH i2c: E2 08 00 BB 09 80 13 01 00 00 00 00 00 41 [14:34:28]Write i2c OK [14:34:28]MH_I2C_Read... [14:34:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:28]Read from MH i2c: E2 [14:34:28]MH_I2C_Read... [14:34:28]Read from MH i2c: E2 0E 00 [14:34:28]MH_I2C_Read... [14:34:28]Read from MH i2c: E2 0E 00 BB 09 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 47 [14:34:28]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [14:34:28]wFMCommunicate OK [14:34:28]SAM_PROTO_GetShiftState done [14:34:28]FM_GetShiftState done [14:34:28]req_shift_opened done [14:34:28]requested_item shift.open_date is exist - process it [14:34:28]req_shift_open_date [14:34:28]req_shift_open_date done [14:34:28]produce_requested_data done [14:34:28]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69382,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [14:34:28]process_action_free close_receipt [14:34:28]json_value_free [14:34:28]json_value_free done [14:34:28]process_json_proto returns [14:34:28]Send response to host [14:34:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69382,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [14:34:28]free response buf [14:34:28]execute_script done [14:34:28]execute_script returns [14:34:28]free content buf [14:34:28]Sock 8.Close socket [14:34:28]Sock 8.Thread stoped [14:34:31]OFD Sender: No OFD packet to send [14:34:36]OFD Sender: No OFD packet to send [14:34:41]OFD Sender: No OFD packet to send [14:34:46]OFD Sender: No OFD packet to send [14:34:51]OFD Sender: No OFD packet to send [14:34:56]OFD Sender: No OFD packet to send [14:35:01]OFD Sender: No OFD packet to send [14:35:06]OFD Sender: No OFD packet to send [14:35:11]OFD Sender: No OFD packet to send [14:35:16]OFD Sender: No OFD packet to send [14:35:21]OFD Sender: No OFD packet to send [14:35:26]OFD Sender: No OFD packet to send [14:35:31]OFD Sender: No OFD packet to send [14:35:36]OFD Sender: No OFD packet to send [14:35:41]OFD Sender: No OFD packet to send [14:35:46]OFD Sender: No OFD packet to send [14:35:51]OFD Sender: No OFD packet to send [14:35:54]accept exits with 9 [14:35:54]New connection [14:35:54]New thread 3066568036 created [14:35:54]Thread 3066711396 joined [14:35:54]Waiting for new connection... [14:35:54] Sock 9.Parse request [14:35:54]Sock 9.Check first char [14:35:54]Sock 9.First char is OK [14:35:54]request: POST /json_proto HTTP/1.0 [14:35:54]Method: POST [14:35:54]URL: /json_proto [14:35:54]Method is POST - this is cgi request [14:35:54]url: /json_proto [14:35:54]query_string will be loaded in cgi processing [14:35:54]execute_cgi json_proto POST (null) [14:35:54]execute_cgi path=json_proto method=POST [14:35:54]POST find Content-Length [14:35:54]Host: 172.17.50.3:8080 [14:35:54]Content-Length: 678 [14:35:54]Content-Type: application/json [14:35:54] [14:35:54]POST finish read [14:35:54]Found Content-Length = 678 [14:35:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "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 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:54]execute_script... [14:35: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)2885109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "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 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:54]POST & json_proto [14:35:54]process_json_proto [14:35:54]json parsed OK: [14:35:54]protocol is kg_v1.0 [14:35:54]action value=close_receipt [14:35:54]process_action close_receipt [14:35:54]cmd_close_receipt [14:35:54]MH_GetDate [14:35:54]Write to MH i2c: F0 00 00 BC 09 B4 [14:35:54]Write i2c OK [14:35:54]MH_I2C_Read... [14:35:54]Read from MH i2c: F0 [14:35:54]MH_I2C_Read... [14:35:54]Read from MH i2c: F0 09 00 [14:35:54]MH_I2C_Read... [14:35:54]Read from MH i2c: F0 09 00 BC 09 00 4A 15 15 67 6B 98 1E 66 1F [14:35:54]GetLastDocTimeStamp 1729434864 [14:35:54]current date 1729434954 [14:35:54]FM_GetShiftState [14:35:54]SAM_PROTO_GetShiftState [14:35:54]wFMCommunicate request_size=4 [14:35:54]MH_SAM_APDU [14:35:54]CAPDU: 80 13 01 00 [14:35:54]Write to MH i2c: E2 08 00 BD 09 80 13 01 00 00 00 00 00 43 [14:35:54]Write i2c OK [14:35:54]MH_I2C_Read... [14:35:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:54]Read from MH i2c: E2 [14:35:54]MH_I2C_Read... [14:35:54]Read from MH i2c: E2 0E 00 [14:35:54]MH_I2C_Read... [14:35:54]Read from MH i2c: E2 0E 00 BD 09 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 49 [14:35:54]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [14:35:54]wFMCommunicate OK [14:35:54]SAM_PROTO_GetShiftState done [14:35:54]FM_GetShiftState done [14:35:54]opened in 1729383220 [14:35:54]opened+sec_in_day 1729469620 [14:35:54]quantity*price = 70044 [14:35:54]sum+1 = 70046 [14:35:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 228 20.10.2024 14:35 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69383 ФПД: 206332416855764 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143554&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69383&fm=206332416855764&tin=02508201610067®Number=0000000000156251&sum=70000 [14:35:55]StoreToDocumentArchive [14:35:55]shift 193 fd 69383 [14:35:55]save to /storage/0193/doc_00069383 [14:35:55]save last doc name /storage/0193/doc_00069383 to /storage/kkm_last_doc_name [14:35:55]save OK [14:35:55]Clear old archive folders... [14:35:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:35:55]tlvbuf is 0023FB80 [14:35:55]SAM_PROTO_ClearQueue [14:35:55]wFMCommunicate request_size=4 [14:35:55]MH_SAM_APDU [14:35:55]CAPDU: 80 09 00 00 [14:35:55]Write to MH i2c: E2 08 00 CA 09 80 09 00 00 00 00 00 00 45 [14:35:55]Write i2c OK [14:35:55]MH_I2C_Read... [14:35:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:35:55]Read from MH i2c: E2 [14:35:55]MH_I2C_Read... [14:35:55]Read from MH i2c: E2 03 00 [14:35:55]MH_I2C_Read... [14:35:55]Read from MH i2c: E2 03 00 CA 09 00 90 00 47 [14:35:55]RAPDU: 90 00 [14:35:55]wFMCommunicate OK [14:35:55]SAM_PROTO_ClearQueue done [14:35:55]KKMCreateOFDPacket [14:35:55]OFDProtocolAddRootSTLVToBuf [14:35:55]FM_MakeSignedData [14:35:55]FM_MakeSignedData [14:35:55]SAM_PROTO_SignData [14:35:55]wFMCommunicate request_size=4 [14:35:55]MH_SAM_APDU [14:35:55]CAPDU: 80 0D 01 02 [14:35:55]Write to MH i2c: E2 08 00 CB 09 80 0D 01 02 00 00 00 00 4D [14:35:55]Write i2c OK [14:35:55]MH_I2C_Read... [14:35:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:35:55]Read from MH i2c: E2 [14:35:55]MH_I2C_Read... [14:35:55]Read from MH i2c: E2 03 00 [14:35:55]MH_I2C_Read... [14:35:55]Read from MH i2c: E2 03 00 CB 09 00 90 00 48 [14:35:55]RAPDU: 90 00 [14:35:55]wFMCommunicate OK [14:35:55]wFMCommunicate request_size=255 [14:35:55]MH_SAM_APDU [14:35: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 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 4A 15 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 07 0F 01 00 35 04 06 00 BB [14:35:55]Write to MH i2c: E2 02 01 CC 09 80 0D 02 02 FA 00 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 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 4A 15 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 07 0F 01 00 35 04 06 00 BB 00 00 0F [14:35:55]Write i2c OK [14:35:55]MH_I2C_Read... [14:35:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:55]Read from MH i2c: E2 [14:35:55]MH_I2C_Read... [14:35:55]Read from MH i2c: E2 03 00 [14:35:55]MH_I2C_Read... [14:35:55]Read from MH i2c: E2 03 00 CC 09 00 90 00 49 [14:35:55]RAPDU: 90 00 [14:35:55]wFMCommunicate OK [14:35:55]wFMCommunicate request_size=10 [14:35:55]MH_SAM_APDU [14:35:55]CAPDU: 80 0D 02 02 05 A8 82 69 8E D4 [14:35:55]Write to MH i2c: E2 0D 00 CD 09 80 0D 02 02 05 00 A8 82 69 8E D4 00 00 4F [14:35:55]Write i2c OK [14:35:55]MH_I2C_Read... [14:35:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:55]Read from MH i2c: E2 [14:35:55]MH_I2C_Read... [14:35:55]Read from MH i2c: E2 03 00 [14:35:55]MH_I2C_Read... [14:35:55]Read from MH i2c: E2 03 00 CD 09 00 90 00 4A [14:35:55]RAPDU: 90 00 [14:35:55]wFMCommunicate OK [14:35:55]wFMCommunicate request_size=4 [14:35:55]MH_SAM_APDU [14:35:55]CAPDU: 80 0D 03 02 [14:35:55]Write to MH i2c: E2 08 00 CE 09 80 0D 03 02 00 00 00 00 52 [14:35:55]Write i2c OK [14:35:55]MH_I2C_Read... [14:35:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:35:55]Read from MH i2c: E2 [14:35:55]MH_I2C_Read... [14:35:55]Read from MH i2c: E2 0B 00 [14:35:55]MH_I2C_Read... [14:35:55]Read from MH i2c: E2 0B 00 CE 09 00 4E 8D 06 4B FD 63 06 A5 90 00 8A [14:35:55]RAPDU: 4E 8D 06 4B FD 63 06 A5 90 00 [14:35:55]wFMCommunicate OK [14:35:55]SAM_PROTO_SignData done [14:35:55]FM_MakeSignedData done [14:35:55]CreateOFDProtocolMessage [14:35:55]wFMCommunicate request_size=4 [14:35:55]MH_SAM_APDU [14:35:55]CAPDU: 80 11 00 00 [14:35:55]Write to MH i2c: E2 08 00 CF 09 80 11 00 00 00 00 00 00 52 [14:35:55]Write i2c OK [14:35:55]MH_I2C_Read... [14:35:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:56]Read from MH i2c: E2 [14:35:56]MH_I2C_Read... [14:35:56]Read from MH i2c: E2 17 00 [14:35:56]MH_I2C_Read... [14:35:56]Read from MH i2c: E2 17 00 CF 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A4 [14:35:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:35:56]wFMCommunicate OK [14:35:56]CreateOFDProtocolMessage done [14:35:56]OFDSenderStorePacket 69383 [14:35:56]StoreOFDPacket docnum=69383 [14:35:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 0B 2B 07 01 B3 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 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 4A 15 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 07 0F 01 00 35 04 06 00 BB A8 82 69 8E D4 4E 8D 06 4B FD 63 06 A5 [14:35:56]CheckFolder [14:35:56]dirname=/storage/ofd_packets [14:35:56]CheckFolder done [14:35:56]ProducePacketName [14:35:56]name=ofd_packets/00069383 [14:35:56]NVStorageSaveData ofd_packets/00069383 [14:35:56]File name is /storage/ofd_packets/00069383 [14:35:56]Write 301 bytes [14:35:56]NVStorageSaveData done [14:35:56]OFDSenderStorePacket done [14:35:56]KKMCreateOFDPacket done [14:35:56]NVStorageSaveData kkm_last_timestamp [14:35:56]File name is /storage/kkm_last_timestamp [14:35:56]Write 4 bytes [14:35:56]NVStorageSaveData done [14:35:56]ExternCall_PrintAddStr [14:35:56]wPrintStart [14:35:56]Write to MH i2c: 01 00 00 D0 09 D9 [14:35:56]OFD Sender: Processing packet 69383 [packets to send 18, broken 17] [14:35:56]ProducePacketName [14:35:56]name=ofd_packets/00069383 [14:35:56]OFD Sender: To server: pG, [14:35:56]CommunicateWithHost lk.salyk.kg:30040 [14:35:56]ConnectInit lk.salyk.kg [14:35:56]Write i2c OK [14:35:56]MH_I2C_Read... [14:35:56]Read from MH i2c: 01 [14:35:56]MH_I2C_Read... [14:35:56]Read from MH i2c: 01 07 00 [14:35:56]MH_I2C_Read... [14:35:56]Read from MH i2c: 01 07 00 D0 09 00 00 00 00 00 FF 0F EE [14:35:56]RasterBufferAndPrint [14:35:56]line Счет N : (1)2885109 [14:35:56]line ИНН: 02508201610067 [14:35:56]line Контрольно-Кассовый Чек [14:35:56]line ПРОДАЖА [14:35:56]line ТРК (МРК, ГНК) : 43 [14:35:56]line Товар: 2710124500 [14:35:56]line Аи-95-К-5 [14:35:56]line 9.440 * 74.20 [14:35:56]line = 700.45 [14:35:56]line НДС 12% НСП 1% [14:35:56]line > о реализуемом товаре [14:35:56]line ОКРУГЛЕНИЕ: -0.45 [14:35:56]line ИТОГО: 700.00 [14:35:56]line Внесено: 700.00 [14:35:56]line СДАЧА: 0.00 [14:35:56]line НСП 1% : 6.20 [14:35:56]line НДС 12% : 74.38 [14:35:56]line Наличными: 700.00 [14:35:56]line Безнал.: 0.00 [14:35:56]line Место: АЗС № 85 "Партнер Нефть" [14:35:56]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:35:56]line СНО: Общий режим [14:35:56]line Чек 228 20.10.2024 14:35 [14:35:56]line Смена: 193 ФФД: 1.0 [14:35:56]line ЗНМ: 0300000167 [14:35:56]line РНМ: 0000000000156251 [14:35:56]line Версия ККМ: v1.0 [14:35:56]line ФМ: 0000000000963346 [14:35:56]line ФД: 69383 [14:35:56]line ФПД: 206332416855764 [14:35:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143554&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69383&fm=206332416855764&tin=02508201610067®Number=0000000000156251&sum=70000 [14:35:56]Connected sock=10 [14:35:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 0B 2B 07 01 B3 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 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 4A 15 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 07 0F 01 00 35 04 06 00 BB A8 82 69 8E D4 4E 8D 06 4B FD 63 06 A5 [14:35:56]written 0, free lines is 4095 [14:35:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 31 7D 47 00 AF 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 07 0F 01 00 F4 03 04 00 F1 BE 14 67 B6 04 01 00 00 7B 82 7F 2C 3D 9D FE 67 [14:35:56]CommunicateWithHost err = 0 [14:35:56]CheckOFDResponse [14:35:56]1017 (14) - 77093643461234 [14:35:56]1041 (16) - 0000000000963346 [14:35:56]1040 (4) - 69383 [14:35:56]1012 (4) - 20.10.2024 08:27 [14:35:56]1206 (1) - 0 [14:35:56]OFD Sender: Remove packet 69383 [14:35:56]ProducePacketName [14:35:56]name=ofd_packets/00069383 [14:35:56]NVStorageDeleteData [14:35:56]Write to MH i2c: 01 00 00 FB 09 04 [14:35:56]Write i2c OK [14:35:56]MH_I2C_Read... [14:35:56]Read from MH i2c: 01 [14:35:56]MH_I2C_Read... [14:35:56]Read from MH i2c: 01 07 00 [14:35:56]MH_I2C_Read... [14:35:56]Read from MH i2c: 01 07 00 FB 09 00 00 00 00 00 ED 0C 04 [14:35:56]RasterBufferAndPrint [14:35:56]line [14:35:56]line [14:35:56]line [14:35:56]line [14:35:56]line [14:35:56]written 0, free lines is 3315 [14:35:56]MH_Cut [14:35:56]Write to MH i2c: D1 01 00 02 0A 01 DE [14:35:56]Write i2c OK [14:35:56]MH_I2C_Read... [14:35:56]Read from MH i2c: D1 [14:35:56]MH_I2C_Read... [14:35:56]Read from MH i2c: D1 01 00 [14:35:56]MH_I2C_Read... [14:35:56]Read from MH i2c: D1 01 00 02 0A 00 DD [14:35:56]Write to MH i2c: 01 00 00 03 0A 0D [14:35:56]Write i2c OK [14:35:56]MH_I2C_Read... [14:35:57]OFD Sender: No OFD packet to send [14:35:57]*** Cut start [14:35:57]*** Partial cut [14:35:57]*** CUTSNS_PIN = 1 [14:35:57]*** CUTSNS_PIN = 0 [14:35:57]*** Brake cut motor [14:35:58]Read from MH i2c: 01 [14:35:58]MH_I2C_Read... [14:35:58]*** Stop cut motor [14:35:58]*** Cut end [14:35:58]Read from MH i2c: 01 07 00 [14:35:58]MH_I2C_Read... [14:35:58]Read from MH i2c: 01 07 00 03 0A 00 00 00 00 00 FF 0F 22 [14:35:58]process_action close_receipt done [14:35:58]requested_data is exist [14:35:58]produce_requested_data [14:35:58]requested_item fm.sn is exist - process it [14:35:58]wFMCommunicate request_size=4 [14:35:58]MH_SAM_APDU [14:35:58]CAPDU: 80 11 00 00 [14:35:58]Write to MH i2c: E2 08 00 04 0A 80 11 00 00 00 00 00 00 88 [14:35:58]Write i2c OK [14:35:58]MH_I2C_Read... [14:35:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:58]Read from MH i2c: E2 [14:35:58]MH_I2C_Read... [14:35:58]Read from MH i2c: E2 17 00 [14:35:58]MH_I2C_Read... [14:35:58]Read from MH i2c: E2 17 00 04 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DA [14:35:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:35:58]wFMCommunicate OK [14:35:58]requested_item fd.num is exist - process it [14:35:58]SAM_PROTO_GetFieldsCounters [14:35:58]wFMCommunicate request_size=4 [14:35:58]MH_SAM_APDU [14:35:58]CAPDU: 80 13 00 00 [14:35:58]Write to MH i2c: E2 08 00 05 0A 80 13 00 00 00 00 00 00 8B [14:35:58]Write i2c OK [14:35:58]MH_I2C_Read... [14:35:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:35:58]Read from MH i2c: E2 [14:35:58]MH_I2C_Read... [14:35:58]Read from MH i2c: E2 62 00 [14:35:58]MH_I2C_Read... [14:35:58]Read from MH i2c: E2 62 00 05 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 07 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [14:35:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 07 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:35:58]wFMCommunicate OK [14:35:58]SAM_PROTO_GetFieldsCounters done [14:35:58]requested_item shift.num is exist - process it [14:35:58]requested_item shift.opened is exist - process it [14:35:58]req_shift_opened [14:35:58]FM_GetShiftState [14:35:58]SAM_PROTO_GetShiftState [14:35:58]wFMCommunicate request_size=4 [14:35:58]MH_SAM_APDU [14:35:58]CAPDU: 80 13 01 00 [14:35:58]Write to MH i2c: E2 08 00 06 0A 80 13 01 00 00 00 00 00 8D [14:35:58]Write i2c OK [14:35:58]MH_I2C_Read... [14:35:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:58]Read from MH i2c: E2 [14:35:58]MH_I2C_Read... [14:35:58]Read from MH i2c: E2 0E 00 [14:35:58]MH_I2C_Read... [14:35:58]Read from MH i2c: E2 0E 00 06 0A 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 93 [14:35:58]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [14:35:58]wFMCommunicate OK [14:35:58]SAM_PROTO_GetShiftState done [14:35:58]FM_GetShiftState done [14:35:58]req_shift_opened done [14:35:58]requested_item shift.open_date is exist - process it [14:35:58]req_shift_open_date [14:35:58]req_shift_open_date done [14:35:58]produce_requested_data done [14:35:58]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69383,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [14:35:58]process_action_free close_receipt [14:35:58]json_value_free [14:35:58]json_value_free done [14:35:58]process_json_proto returns [14:35:58]Send response to host [14:35:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69383,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [14:35:58]free response buf [14:35:58]execute_script done [14:35:58]execute_script returns [14:35:58]free content buf [14:35:58]Sock 9.Close socket [14:35:58]Sock 9.Thread stoped [14:35:58]accept exits with 8 [14:35:58]New connection [14:35:58]New thread 3066711396 created [14:35:58]Thread 3066568036 joined [14:35:58]Waiting for new connection... [14:35:58] Sock 8.Parse request [14:35:58]Sock 8.Check first char [14:35:58]Sock 8.First char is OK [14:35:58]request: POST /json_proto HTTP/1.0 [14:35:58]Method: POST [14:35:58]URL: /json_proto [14:35:58]Method is POST - this is cgi request [14:35:58]url: /json_proto [14:35:58]query_string will be loaded in cgi processing [14:35:58]execute_cgi json_proto POST (null) [14:35:58]execute_cgi path=json_proto method=POST [14:35:58]POST find Content-Length [14:35:58]Host: 172.17.50.3:8080 [14:35:58]Content-Length: 681 [14:35:58]Content-Type: application/json [14:35:58] [14:35:58]POST finish read [14:35:58]Found Content-Length = 681 [14:35:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 7.720, "sum" : 300.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:58]execute_script... [14:35: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)2885110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 7.720, "sum" : 300.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:58]POST & json_proto [14:35:58]process_json_proto [14:35:58]json parsed OK: [14:35:58]protocol is kg_v1.0 [14:35:58]action value=close_receipt [14:35:58]process_action close_receipt [14:35:58]cmd_close_receipt [14:35:58]MH_GetDate [14:35:58]Write to MH i2c: F0 00 00 07 0A 00 [14:35:58]Write i2c OK [14:35:58]MH_I2C_Read... [14:35:58]Read from MH i2c: F0 [14:35:58]MH_I2C_Read... [14:35:58]Read from MH i2c: F0 09 00 [14:35:58]MH_I2C_Read... [14:35:58]Read from MH i2c: F0 09 00 07 0A 00 4F 15 15 67 6B 98 1E 66 70 [14:35:58]GetLastDocTimeStamp 1729434954 [14:35:58]current date 1729434959 [14:35:58]FM_GetShiftState [14:35:58]SAM_PROTO_GetShiftState [14:35:58]wFMCommunicate request_size=4 [14:35:58]MH_SAM_APDU [14:35:58]CAPDU: 80 13 01 00 [14:35:58]Write to MH i2c: E2 08 00 08 0A 80 13 01 00 00 00 00 00 8F [14:35:58]Write i2c OK [14:35:58]MH_I2C_Read... [14:35:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:58]Read from MH i2c: E2 [14:35:58]MH_I2C_Read... [14:35:58]Read from MH i2c: E2 0E 00 [14:35:58]MH_I2C_Read... [14:35:58]Read from MH i2c: E2 0E 00 08 0A 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 95 [14:35:58]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [14:35:58]wFMCommunicate OK [14:35:58]SAM_PROTO_GetShiftState done [14:35:58]FM_GetShiftState done [14:35:58]opened in 1729383220 [14:35:58]opened+sec_in_day 1729469620 [14:35:58]quantity*price = 30030 [14:35:58]sum+1 = 30032 [14:35:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 229 20.10.2024 14:35 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69384 ФПД: 70456538553887 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143559&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69384&fm=70456538553887&tin=02508201610067®Number=0000000000156251&sum=30000 [14:35:59]StoreToDocumentArchive [14:35:59]shift 193 fd 69384 [14:35:59]save to /storage/0193/doc_00069384 [14:35:59]save last doc name /storage/0193/doc_00069384 to /storage/kkm_last_doc_name [14:35:59]save OK [14:35:59]Clear old archive folders... [14:35:59]ProcessDocumentItem done err = 0, tmpTLVsize=250 [14:35:59]tlvbuf is 0022EB00 [14:35:59]SAM_PROTO_ClearQueue [14:35:59]wFMCommunicate request_size=4 [14:35:59]MH_SAM_APDU [14:35:59]CAPDU: 80 09 00 00 [14:35:59]Write to MH i2c: E2 08 00 15 0A 80 09 00 00 00 00 00 00 91 [14:35:59]Write i2c OK [14:35:59]MH_I2C_Read... [14:35:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:35:59]Read from MH i2c: E2 [14:35:59]MH_I2C_Read... [14:35:59]Read from MH i2c: E2 03 00 [14:35:59]MH_I2C_Read... [14:35:59]Read from MH i2c: E2 03 00 15 0A 00 90 00 93 [14:35:59]RAPDU: 90 00 [14:35:59]wFMCommunicate OK [14:35:59]SAM_PROTO_ClearQueue done [14:35:59]KKMCreateOFDPacket [14:35:59]OFDProtocolAddRootSTLVToBuf [14:35:59]FM_MakeSignedData [14:35:59]FM_MakeSignedData [14:35:59]SAM_PROTO_SignData [14:35:59]wFMCommunicate request_size=4 [14:35:59]MH_SAM_APDU [14:35:59]CAPDU: 80 0D 01 02 [14:35:59]Write to MH i2c: E2 08 00 16 0A 80 0D 01 02 00 00 00 00 99 [14:35:59]Write i2c OK [14:35:59]MH_I2C_Read... [14:36:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:36:00]Read from MH i2c: E2 [14:36:00]MH_I2C_Read... [14:36:00]Read from MH i2c: E2 03 00 [14:36:00]MH_I2C_Read... [14:36:00]Read from MH i2c: E2 03 00 16 0A 00 90 00 94 [14:36:00]RAPDU: 90 00 [14:36:00]wFMCommunicate OK [14:36:00]wFMCommunicate request_size=255 [14:36:00]MH_SAM_APDU [14:36:00]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 4F 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 4F 15 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 08 0F 01 00 35 04 06 00 40 14 [14:36:00]Write to MH i2c: E2 02 01 17 0A 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 4F 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 4F 15 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 08 0F 01 00 35 04 06 00 40 14 00 00 5E [14:36:00]Write i2c OK [14:36:00]MH_I2C_Read... [14:36:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:00]Read from MH i2c: E2 [14:36:00]MH_I2C_Read... [14:36:00]Read from MH i2c: E2 03 00 [14:36:00]MH_I2C_Read... [14:36:00]Read from MH i2c: E2 03 00 17 0A 00 90 00 95 [14:36:00]RAPDU: 90 00 [14:36:00]wFMCommunicate OK [14:36:00]wFMCommunicate request_size=9 [14:36:00]MH_SAM_APDU [14:36:00]CAPDU: 80 0D 02 02 04 70 F3 DE 1F [14:36:00]Write to MH i2c: E2 0C 00 18 0A 80 0D 02 02 04 00 70 F3 DE 1F 00 00 04 [14:36:00]Write i2c OK [14:36:00]MH_I2C_Read... [14:36:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:00]Read from MH i2c: E2 [14:36:00]MH_I2C_Read... [14:36:00]Read from MH i2c: E2 03 00 [14:36:00]MH_I2C_Read... [14:36:00]Read from MH i2c: E2 03 00 18 0A 00 90 00 96 [14:36:00]RAPDU: 90 00 [14:36:00]wFMCommunicate OK [14:36:00]wFMCommunicate request_size=4 [14:36:00]MH_SAM_APDU [14:36:00]CAPDU: 80 0D 03 02 [14:36:00]Write to MH i2c: E2 08 00 19 0A 80 0D 03 02 00 00 00 00 9E [14:36:00]Write i2c OK [14:36:00]MH_I2C_Read... [14:36:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:36:00]Read from MH i2c: E2 [14:36:00]MH_I2C_Read... [14:36:00]Read from MH i2c: E2 0B 00 [14:36:00]MH_I2C_Read... [14:36:00]Read from MH i2c: E2 0B 00 19 0A 00 0F 45 CD 1F 1D A6 A0 A7 90 00 E9 [14:36:00]RAPDU: 0F 45 CD 1F 1D A6 A0 A7 90 00 [14:36:00]wFMCommunicate OK [14:36:00]SAM_PROTO_SignData done [14:36:00]FM_MakeSignedData done [14:36:00]CreateOFDProtocolMessage [14:36:00]wFMCommunicate request_size=4 [14:36:00]MH_SAM_APDU [14:36:00]CAPDU: 80 11 00 00 [14:36:00]Write to MH i2c: E2 08 00 1A 0A 80 11 00 00 00 00 00 00 9E [14:36:00]Write i2c OK [14:36:00]MH_I2C_Read... [14:36:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:00]Read from MH i2c: E2 [14:36:00]MH_I2C_Read... [14:36:00]Read from MH i2c: E2 17 00 [14:36:00]MH_I2C_Read... [14:36:00]Read from MH i2c: E2 17 00 1A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F0 [14:36:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:36:00]wFMCommunicate OK [14:36:00]CreateOFDProtocolMessage done [14:36:00]OFDSenderStorePacket 69384 [14:36:00]StoreOFDPacket docnum=69384 [14:36:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 46 04 06 01 6F E5 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 4F 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 4F 15 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 08 0F 01 00 35 04 06 00 40 14 70 F3 DE 1F 0F 45 CD 1F 1D A6 A0 A7 [14:36:01]CheckFolder [14:36:01]dirname=/storage/ofd_packets [14:36:01]CheckFolder done [14:36:01]ProducePacketName [14:36:01]name=ofd_packets/00069384 [14:36:01]NVStorageSaveData ofd_packets/00069384 [14:36:01]File name is /storage/ofd_packets/00069384 [14:36:01]Write 300 bytes [14:36:01]NVStorageSaveData done [14:36:01]OFDSenderStorePacket done [14:36:01]KKMCreateOFDPacket done [14:36:01]NVStorageSaveData kkm_last_timestamp [14:36:01]File name is /storage/kkm_last_timestamp [14:36:01]Write 4 bytes [14:36:01]NVStorageSaveData done [14:36:01]ExternCall_PrintAddStr [14:36:01]wPrintStart [14:36:01]Write to MH i2c: 01 00 00 1B 0A 25 [14:36:01]Write i2c OK [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: 01 [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: 01 07 00 [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: 01 07 00 1B 0A 00 00 00 00 00 FF 0F 3A [14:36:01]RasterBufferAndPrint [14:36:01]line Счет N : (1)2885110 [14:36:01]line ИНН: 02508201610067 [14:36:01]line Контрольно-Кассовый Чек [14:36:01]line ПРОДАЖА [14:36:01]line ТРК (МРК, ГНК) : 71 [14:36:01]line Товар: 2711129700 [14:36:01]line ГАЗ-К-3 [14:36:01]line 7.720 * 38.90 [14:36:01]line = 300.31 [14:36:01]line НДС 12% НСП 1% [14:36:01]line > о реализуемом товаре [14:36:01]line ОКРУГЛЕНИЕ: -0.31 [14:36:01]line ИТОГО: 300.00 [14:36:01]line Внесено: 300.00 [14:36:01]line СДАЧА: 0.00 [14:36:01]line НСП 1% : 2.66 [14:36:01]line НДС 12% : 31.89 [14:36:01]line Наличными: 300.00 [14:36:01]line Безнал.: 0.00 [14:36:01]line Место: АЗС № 85 "Партнер Нефть" [14:36:01]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:36:01]line СНО: Общий режим [14:36:01]line Чек 229 20.10.2024 14:35 [14:36:01]line Смена: 193 ФФД: 1.0 [14:36:01]line ЗНМ: 0300000167 [14:36:01]line РНМ: 0000000000156251 [14:36:01]line Версия ККМ: v1.0 [14:36:01]line ФМ: 0000000000963346 [14:36:01]line ФД: 69384 [14:36:01]line ФПД: 70456538553887 [14:36:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143559&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69384&fm=70456538553887&tin=02508201610067®Number=0000000000156251&sum=30000 [14:36:01]written 0, free lines is 4095 [14:36:01]OFD Sender: Processing packet 69384 [packets to send 18, broken 17] [14:36:01]ProducePacketName [14:36:01]name=ofd_packets/00069384 [14:36:01]OFD Sender: To server: pG, [14:36:01]CommunicateWithHost lk.salyk.kg:30040 [14:36:01]ConnectInit lk.salyk.kg [14:36:01]Connected sock=11 [14:36:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 46 04 06 01 6F E5 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 4F 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 4F 15 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 08 0F 01 00 35 04 06 00 40 14 70 F3 DE 1F 0F 45 CD 1F 1D A6 A0 A7 [14:36:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 B2 B6 47 00 57 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 08 0F 01 00 F4 03 04 00 F6 BE 14 67 B6 04 01 00 00 3E 9C 16 A6 06 48 8C 6E [14:36:01]CommunicateWithHost err = 0 [14:36:01]CheckOFDResponse [14:36:01]1017 (14) - 77093643461234 [14:36:01]1041 (16) - 0000000000963346 [14:36:01]1040 (4) - 69384 [14:36:01]1012 (4) - 20.10.2024 08:27 [14:36:01]1206 (1) - 0 [14:36:01]OFD Sender: Remove packet 69384 [14:36:01]ProducePacketName [14:36:01]name=ofd_packets/00069384 [14:36:01]NVStorageDeleteData [14:36:01]Write to MH i2c: 01 00 00 46 0A 50 [14:36:01]Write i2c OK [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: 01 [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: 01 07 00 [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: 01 07 00 46 0A 00 00 00 00 00 F7 0C 5A [14:36:01]RasterBufferAndPrint [14:36:01]line [14:36:01]line [14:36:01]line [14:36:01]line [14:36:01]line [14:36:01]written 0, free lines is 3332 [14:36:01]MH_Cut [14:36:01]Write to MH i2c: D1 01 00 4D 0A 01 29 [14:36:01]Write i2c OK [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: D1 [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: D1 01 00 [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: D1 01 00 4D 0A 00 28 [14:36:01]Write to MH i2c: 01 00 00 4E 0A 58 [14:36:01]Write i2c OK [14:36:01]MH_I2C_Read... [14:36:01]OFD Sender: No OFD packet to send [14:36:02]*** Cut start [14:36:02]*** Partial cut [14:36:02]*** CUTSNS_PIN = 1 [14:36:02]*** CUTSNS_PIN = 0 [14:36:02]*** Brake cut motor [14:36:02]Read from MH i2c: 01 [14:36:02]MH_I2C_Read... [14:36:02]*** Stop cut motor [14:36:02]*** Cut end [14:36:02]Read from MH i2c: 01 07 00 [14:36:02]MH_I2C_Read... [14:36:02]Read from MH i2c: 01 07 00 4E 0A 00 00 00 00 00 FF 0F 6D [14:36:02]process_action close_receipt done [14:36:02]requested_data is exist [14:36:02]produce_requested_data [14:36:02]requested_item fm.sn is exist - process it [14:36:02]wFMCommunicate request_size=4 [14:36:02]MH_SAM_APDU [14:36:02]CAPDU: 80 11 00 00 [14:36:02]Write to MH i2c: E2 08 00 4F 0A 80 11 00 00 00 00 00 00 D3 [14:36:02]Write i2c OK [14:36:02]MH_I2C_Read... [14:36:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:02]Read from MH i2c: E2 [14:36:02]MH_I2C_Read... [14:36:02]Read from MH i2c: E2 17 00 [14:36:02]MH_I2C_Read... [14:36:02]Read from MH i2c: E2 17 00 4F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 25 [14:36:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:36:02]wFMCommunicate OK [14:36:02]requested_item fd.num is exist - process it [14:36:02]SAM_PROTO_GetFieldsCounters [14:36:02]wFMCommunicate request_size=4 [14:36:02]MH_SAM_APDU [14:36:02]CAPDU: 80 13 00 00 [14:36:02]Write to MH i2c: E2 08 00 50 0A 80 13 00 00 00 00 00 00 D6 [14:36:02]Write i2c OK [14:36:02]MH_I2C_Read... [14:36:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:36:03]Read from MH i2c: E2 [14:36:03]MH_I2C_Read... [14:36:03]Read from MH i2c: E2 62 00 [14:36:03]MH_I2C_Read... [14:36:03]Read from MH i2c: E2 62 00 50 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 08 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [14:36:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 08 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:36:03]wFMCommunicate OK [14:36:03]SAM_PROTO_GetFieldsCounters done [14:36:03]requested_item shift.num is exist - process it [14:36:03]requested_item shift.opened is exist - process it [14:36:03]req_shift_opened [14:36:03]FM_GetShiftState [14:36:03]SAM_PROTO_GetShiftState [14:36:03]wFMCommunicate request_size=4 [14:36:03]MH_SAM_APDU [14:36:03]CAPDU: 80 13 01 00 [14:36:03]Write to MH i2c: E2 08 00 51 0A 80 13 01 00 00 00 00 00 D8 [14:36:03]Write i2c OK [14:36:03]MH_I2C_Read... [14:36:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:03]Read from MH i2c: E2 [14:36:03]MH_I2C_Read... [14:36:03]Read from MH i2c: E2 0E 00 [14:36:03]MH_I2C_Read... [14:36:03]Read from MH i2c: E2 0E 00 51 0A 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 DE [14:36:03]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [14:36:03]wFMCommunicate OK [14:36:03]SAM_PROTO_GetShiftState done [14:36:03]FM_GetShiftState done [14:36:03]req_shift_opened done [14:36:03]requested_item shift.open_date is exist - process it [14:36:03]req_shift_open_date [14:36:03]req_shift_open_date done [14:36:03]produce_requested_data done [14:36:03]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69384,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [14:36:03]process_action_free close_receipt [14:36:03]json_value_free [14:36:03]json_value_free done [14:36:03]process_json_proto returns [14:36:03]Send response to host [14:36:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69384,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [14:36:03]free response buf [14:36:03]execute_script done [14:36:03]execute_script returns [14:36:03]free content buf [14:36:03]Sock 8.Close socket [14:36:03]Sock 8.Thread stoped [14:36:06]OFD Sender: No OFD packet to send [14:36:11]OFD Sender: No OFD packet to send [14:36:16]OFD Sender: No OFD packet to send [14:36:21]OFD Sender: No OFD packet to send [14:36:26]OFD Sender: No OFD packet to send [14:36:31]OFD Sender: No OFD packet to send [14:36:36]OFD Sender: No OFD packet to send [14:36:41]OFD Sender: No OFD packet to send [14:36:46]OFD Sender: No OFD packet to send [14:36:51]OFD Sender: No OFD packet to send [14:36:56]OFD Sender: No OFD packet to send [14:37:01]OFD Sender: No OFD packet to send [14:37:02]accept exits with 9 [14:37:02]New connection [14:37:02]New thread 3066568036 created [14:37:02]Thread 3066711396 joined [14:37:02]Waiting for new connection... [14:37:02] Sock 9.Parse request [14:37:02]Sock 9.Check first char [14:37:02]Sock 9.First char is OK [14:37:02]request: POST /json_proto HTTP/1.0 [14:37:02]Method: POST [14:37:02]URL: /json_proto [14:37:02]Method is POST - this is cgi request [14:37:02]url: /json_proto [14:37:02]query_string will be loaded in cgi processing [14:37:02]execute_cgi json_proto POST (null) [14:37:02]execute_cgi path=json_proto method=POST [14:37:02]POST find Content-Length [14:37:02]Host: 172.17.50.3:8080 [14:37:02]Content-Length: 770 [14:37:02]Content-Type: application/json [14:37:02] [14:37:02]POST finish read [14:37:02]Found Content-Length = 770 [14:37:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 5.150, "sum" : 200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:02]execute_script... [14: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)2885111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 5.150, "sum" : 200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:02]POST & json_proto [14:37:02]process_json_proto [14:37:02]json parsed OK: [14:37:02]protocol is kg_v1.0 [14:37:02]action value=close_receipt [14:37:02]process_action close_receipt [14:37:02]cmd_close_receipt [14:37:02]MH_GetDate [14:37:02]Write to MH i2c: F0 00 00 52 0A 4B [14:37:02]Write i2c OK [14:37:02]MH_I2C_Read... [14:37:02]Read from MH i2c: F0 [14:37:02]MH_I2C_Read... [14:37:02]Read from MH i2c: F0 09 00 [14:37:02]MH_I2C_Read... [14:37:02]Read from MH i2c: F0 09 00 52 0A 00 8F 15 15 67 6B 98 1E 66 FB [14:37:02]GetLastDocTimeStamp 1729434959 [14:37:02]current date 1729435023 [14:37:02]FM_GetShiftState [14:37:02]SAM_PROTO_GetShiftState [14:37:02]wFMCommunicate request_size=4 [14:37:02]MH_SAM_APDU [14:37:02]CAPDU: 80 13 01 00 [14:37:02]Write to MH i2c: E2 08 00 53 0A 80 13 01 00 00 00 00 00 DA [14:37:02]Write i2c OK [14:37:02]MH_I2C_Read... [14:37:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:02]Read from MH i2c: E2 [14:37:02]MH_I2C_Read... [14:37:02]Read from MH i2c: E2 0E 00 [14:37:02]MH_I2C_Read... [14:37:02]Read from MH i2c: E2 0E 00 53 0A 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 E0 [14:37:02]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [14:37:02]wFMCommunicate OK [14:37:02]SAM_PROTO_GetShiftState done [14:37:02]FM_GetShiftState done [14:37:02]opened in 1729383220 [14:37:02]opened+sec_in_day 1729469620 [14:37:02]quantity*price = 20033 [14:37:02]sum+1 = 20035 [14:37:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.34 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 0.00 Безнал.: 200.34 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 230 20.10.2024 14:37 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69385 ФПД: 248419603656076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143703&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69385&fm=248419603656076&tin=02508201610067®Number=0000000000156251&sum=20034 [14:37:03]StoreToDocumentArchive [14:37:03]shift 193 fd 69385 [14:37:03]save to /storage/0193/doc_00069385 [14:37:03]save last doc name /storage/0193/doc_00069385 to /storage/kkm_last_doc_name [14:37:03]save OK [14:37:03]Clear old archive folders... [14:37:03]ProcessDocumentItem done err = 0, tmpTLVsize=250 [14:37:03]tlvbuf is 0024CAA0 [14:37:03]SAM_PROTO_ClearQueue [14:37:03]wFMCommunicate request_size=4 [14:37:03]MH_SAM_APDU [14:37:03]CAPDU: 80 09 00 00 [14:37:03]Write to MH i2c: E2 08 00 60 0A 80 09 00 00 00 00 00 00 DC [14:37:03]Write i2c OK [14:37:03]MH_I2C_Read... [14:37:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:37:03]Read from MH i2c: E2 [14:37:03]MH_I2C_Read... [14:37:03]Read from MH i2c: E2 03 00 [14:37:03]MH_I2C_Read... [14:37:03]Read from MH i2c: E2 03 00 60 0A 00 90 00 DE [14:37:03]RAPDU: 90 00 [14:37:03]wFMCommunicate OK [14:37:03]SAM_PROTO_ClearQueue done [14:37:03]KKMCreateOFDPacket [14:37:03]OFDProtocolAddRootSTLVToBuf [14:37:03]FM_MakeSignedData [14:37:03]FM_MakeSignedData [14:37:03]SAM_PROTO_SignData [14:37:03]wFMCommunicate request_size=4 [14:37:03]MH_SAM_APDU [14:37:03]CAPDU: 80 0D 01 02 [14:37:03]Write to MH i2c: E2 08 00 61 0A 80 0D 01 02 00 00 00 00 E4 [14:37:03]Write i2c OK [14:37:03]MH_I2C_Read... [14:37:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:37:04]Read from MH i2c: E2 [14:37:04]MH_I2C_Read... [14:37:04]Read from MH i2c: E2 03 00 [14:37:04]MH_I2C_Read... [14:37:04]Read from MH i2c: E2 03 00 61 0A 00 90 00 DF [14:37:04]RAPDU: 90 00 [14:37:04]wFMCommunicate OK [14:37:04]wFMCommunicate request_size=255 [14:37:04]MH_SAM_APDU [14:37:04]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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 1E 14 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 4F 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 8F 15 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 09 0F 01 00 35 04 06 00 E1 EF [14:37:04]Write to MH i2c: E2 02 01 62 0A 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 1E 14 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 4F 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 8F 15 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 09 0F 01 00 35 04 06 00 E1 EF 00 00 71 [14:37:04]Write i2c OK [14:37:04]MH_I2C_Read... [14:37:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:04]Read from MH i2c: E2 [14:37:04]MH_I2C_Read... [14:37:04]Read from MH i2c: E2 03 00 [14:37:04]MH_I2C_Read... [14:37:04]Read from MH i2c: E2 03 00 62 0A 00 90 00 E0 [14:37:04]RAPDU: 90 00 [14:37:04]wFMCommunicate OK [14:37:04]wFMCommunicate request_size=9 [14:37:04]MH_SAM_APDU [14:37:04]CAPDU: 80 0D 02 02 04 B2 3B 2D 8C [14:37:04]Write to MH i2c: E2 0C 00 63 0A 80 0D 02 02 04 00 B2 3B 2D 8C 00 00 95 [14:37:04]Write i2c OK [14:37:04]MH_I2C_Read... [14:37:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:04]Read from MH i2c: E2 [14:37:04]MH_I2C_Read... [14:37:04]Read from MH i2c: E2 03 00 [14:37:04]MH_I2C_Read... [14:37:04]Read from MH i2c: E2 03 00 63 0A 00 90 00 E1 [14:37:04]RAPDU: 90 00 [14:37:04]wFMCommunicate OK [14:37:04]wFMCommunicate request_size=4 [14:37:04]MH_SAM_APDU [14:37:04]CAPDU: 80 0D 03 02 [14:37:04]Write to MH i2c: E2 08 00 64 0A 80 0D 03 02 00 00 00 00 E9 [14:37:04]Write i2c OK [14:37:04]MH_I2C_Read... [14:37:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:04]Read from MH i2c: E2 [14:37:04]MH_I2C_Read... [14:37:04]Read from MH i2c: E2 0B 00 [14:37:04]MH_I2C_Read... [14:37:04]Read from MH i2c: E2 0B 00 64 0A 00 5F 9B C1 1D 63 CB DC 42 90 00 0E [14:37:04]RAPDU: 5F 9B C1 1D 63 CB DC 42 90 00 [14:37:04]wFMCommunicate OK [14:37:04]SAM_PROTO_SignData done [14:37:04]FM_MakeSignedData done [14:37:04]CreateOFDProtocolMessage [14:37:04]wFMCommunicate request_size=4 [14:37:04]MH_SAM_APDU [14:37:04]CAPDU: 80 11 00 00 [14:37:04]Write to MH i2c: E2 08 00 65 0A 80 11 00 00 00 00 00 00 E9 [14:37:04]Write i2c OK [14:37:04]MH_I2C_Read... [14:37:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:04]Read from MH i2c: E2 [14:37:04]MH_I2C_Read... [14:37:04]Read from MH i2c: E2 17 00 [14:37:04]MH_I2C_Read... [14:37:04]Read from MH i2c: E2 17 00 65 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3B [14:37:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:37:04]wFMCommunicate OK [14:37:04]CreateOFDProtocolMessage done [14:37:04]OFDSenderStorePacket 69385 [14:37:04]StoreOFDPacket docnum=69385 [14:37:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 7B FF 06 01 0B A1 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 1E 14 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 4F 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 8F 15 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 09 0F 01 00 35 04 06 00 E1 EF B2 3B 2D 8C 5F 9B C1 1D 63 CB DC 42 [14:37:04]CheckFolder [14:37:04]dirname=/storage/ofd_packets [14:37:04]CheckFolder done [14:37:04]ProducePacketName [14:37:04]name=ofd_packets/00069385 [14:37:04]NVStorageSaveData ofd_packets/00069385 [14:37:04]File name is /storage/ofd_packets/00069385 [14:37:04]Write 300 bytes [14:37:04]NVStorageSaveData done [14:37:04]OFDSenderStorePacket done [14:37:04]KKMCreateOFDPacket done [14:37:04]NVStorageSaveData kkm_last_timestamp [14:37:04]File name is /storage/kkm_last_timestamp [14:37:04]Write 4 bytes [14:37:04]NVStorageSaveData done [14:37:04]ExternCall_PrintAddStr [14:37:04]wPrintStart [14:37:04]Write to MH i2c: 01 00 00 66 0A 70 [14:37:04]Write i2c OK [14:37:04]MH_I2C_Read... [14:37:04]Read from MH i2c: 01 [14:37:04]MH_I2C_Read... [14:37:04]Read from MH i2c: 01 07 00 [14:37:04]MH_I2C_Read... [14:37:04]Read from MH i2c: 01 07 00 66 0A 00 00 00 00 00 FF 0F 85 [14:37:04]RasterBufferAndPrint [14:37:04]line Счет N : (1)2885111 [14:37:04]line ИНН: 02508201610067 [14:37:04]line Контрольно-Кассовый Чек [14:37:04]line ПРОДАЖА [14:37:04]line ТРК (МРК, ГНК) : 71 [14:37:04]line Товар: 2711129700 [14:37:04]line ГАЗ-К-3 [14:37:04]line 5.150 * 38.90 [14:37:04]line = 200.34 [14:37:04]line НДС 12% НСП 1% [14:37:04]line > о реализуемом товаре [14:37:04]line ИТОГО: 200.34 [14:37:04]line НСП 1% : 1.77 [14:37:04]line НДС 12% : 21.27 [14:37:04]line Наличными: 0.00 [14:37:04]line Безнал.: 200.34 [14:37:04]line Место: АЗС № 85 "Партнер Нефть" [14:37:04]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:37:04]line СНО: Общий режим [14:37:04]line Чек 230 20.10.2024 14:37 [14:37:04]line Смена: 193 ФФД: 1.0 [14:37:04]line ЗНМ: 0300000167 [14:37:04]line РНМ: 0000000000156251 [14:37:04]line Версия ККМ: v1.0 [14:37:04]line Платежная система: Mbank [14:37:04]line ФМ: 0000000000963346 [14:37:04]line ФД: 69385 [14:37:04]line ФПД: 248419603656076 [14:37:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143703&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69385&fm=248419603656076&tin=02508201610067®Number=0000000000156251&sum=20034 [14:37:04]OFD Sender: Processing packet 69385 [packets to send 18, broken 17] [14:37:04]ProducePacketName [14:37:04]name=ofd_packets/00069385 [14:37:04]OFD Sender: To server: pG, [14:37:04]CommunicateWithHost lk.salyk.kg:30040 [14:37:04]ConnectInit lk.salyk.kg [14:37:04]written 0, free lines is 4095 [14:37:04]Connected sock=10 [14:37:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 7B FF 06 01 0B A1 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 1E 14 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 4F 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 8F 15 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 09 0F 01 00 35 04 06 00 E1 EF B2 3B 2D 8C 5F 9B C1 1D 63 CB DC 42 [14:37:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 FD 5F 47 00 AA 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 09 0F 01 00 F4 03 04 00 35 BF 14 67 B6 04 01 00 00 DF 28 E7 5E 47 C3 F4 03 [14:37:05]CommunicateWithHost err = 0 [14:37:05]CheckOFDResponse [14:37:05]1017 (14) - 77093643461234 [14:37:05]1041 (16) - 0000000000963346 [14:37:05]1040 (4) - 69385 [14:37:05]1012 (4) - 20.10.2024 08:28 [14:37:05]1206 (1) - 0 [14:37:05]OFD Sender: Remove packet 69385 [14:37:05]ProducePacketName [14:37:05]name=ofd_packets/00069385 [14:37:05]NVStorageDeleteData [14:37:05]Write to MH i2c: 01 00 00 8F 0A 99 [14:37:05]Write i2c OK [14:37:05]MH_I2C_Read... [14:37:05]Read from MH i2c: 01 [14:37:05]MH_I2C_Read... [14:37:05]Read from MH i2c: 01 07 00 [14:37:05]MH_I2C_Read... [14:37:05]Read from MH i2c: 01 07 00 8F 0A 00 00 00 00 00 1C 0D C9 [14:37:05]RasterBufferAndPrint [14:37:05]line [14:37:05]line [14:37:05]line [14:37:05]line [14:37:05]line [14:37:05]written 0, free lines is 3361 [14:37:05]MH_Cut [14:37:05]Write to MH i2c: D1 01 00 96 0A 01 72 [14:37:05]Write i2c OK [14:37:05]MH_I2C_Read... [14:37:05]Read from MH i2c: D1 [14:37:05]MH_I2C_Read... [14:37:05]Read from MH i2c: D1 01 00 [14:37:05]MH_I2C_Read... [14:37:05]Read from MH i2c: D1 01 00 96 0A 00 71 [14:37:05]Write to MH i2c: 01 00 00 97 0A A1 [14:37:05]Write i2c OK [14:37:05]MH_I2C_Read... [14:37:05]OFD Sender: No OFD packet to send [14:37:05]*** Cut start [14:37:05]*** Partial cut [14:37:05]*** CUTSNS_PIN = 1 [14:37:05]*** CUTSNS_PIN = 0 [14:37:06]*** Brake cut motor [14:37:06]Read from MH i2c: 01 [14:37:06]MH_I2C_Read... [14:37:06]*** Stop cut motor [14:37:06]*** Cut end [14:37:06]Read from MH i2c: 01 07 00 [14:37:06]MH_I2C_Read... [14:37:06]Read from MH i2c: 01 07 00 97 0A 00 00 00 00 00 FF 0F B6 [14:37:06]process_action close_receipt done [14:37:06]requested_data is exist [14:37:06]produce_requested_data [14:37:06]requested_item fm.sn is exist - process it [14:37:06]wFMCommunicate request_size=4 [14:37:06]MH_SAM_APDU [14:37:06]CAPDU: 80 11 00 00 [14:37:06]Write to MH i2c: E2 08 00 98 0A 80 11 00 00 00 00 00 00 1C [14:37:06]Write i2c OK [14:37:06]MH_I2C_Read... [14:37:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:06]Read from MH i2c: E2 [14:37:06]MH_I2C_Read... [14:37:06]Read from MH i2c: E2 17 00 [14:37:06]MH_I2C_Read... [14:37:06]Read from MH i2c: E2 17 00 98 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6E [14:37:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:37:06]wFMCommunicate OK [14:37:06]requested_item fd.num is exist - process it [14:37:06]SAM_PROTO_GetFieldsCounters [14:37:06]wFMCommunicate request_size=4 [14:37:06]MH_SAM_APDU [14:37:06]CAPDU: 80 13 00 00 [14:37:06]Write to MH i2c: E2 08 00 99 0A 80 13 00 00 00 00 00 00 1F [14:37:06]Write i2c OK [14:37:06]MH_I2C_Read... [14:37:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:06]Read from MH i2c: E2 [14:37:06]MH_I2C_Read... [14:37:06]Read from MH i2c: E2 62 00 [14:37:06]MH_I2C_Read... [14:37:06]Read from MH i2c: E2 62 00 99 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 09 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [14:37:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 09 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:37:06]wFMCommunicate OK [14:37:06]SAM_PROTO_GetFieldsCounters done [14:37:06]requested_item shift.num is exist - process it [14:37:06]requested_item shift.opened is exist - process it [14:37:06]req_shift_opened [14:37:06]FM_GetShiftState [14:37:06]SAM_PROTO_GetShiftState [14:37:06]wFMCommunicate request_size=4 [14:37:06]MH_SAM_APDU [14:37:06]CAPDU: 80 13 01 00 [14:37:06]Write to MH i2c: E2 08 00 9A 0A 80 13 01 00 00 00 00 00 21 [14:37:06]Write i2c OK [14:37:06]MH_I2C_Read... [14:37:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:06]Read from MH i2c: E2 [14:37:06]MH_I2C_Read... [14:37:06]Read from MH i2c: E2 0E 00 [14:37:06]MH_I2C_Read... [14:37:06]Read from MH i2c: E2 0E 00 9A 0A 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 27 [14:37:06]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [14:37:06]wFMCommunicate OK [14:37:06]SAM_PROTO_GetShiftState done [14:37:06]FM_GetShiftState done [14:37:06]req_shift_opened done [14:37:06]requested_item shift.open_date is exist - process it [14:37:06]req_shift_open_date [14:37:06]req_shift_open_date done [14:37:06]produce_requested_data done [14:37:06]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69385,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [14:37:06]process_action_free close_receipt [14:37:06]json_value_free [14:37:06]json_value_free done [14:37:06]process_json_proto returns [14:37:06]Send response to host [14:37:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69385,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [14:37:06]free response buf [14:37:06]execute_script done [14:37:06]execute_script returns [14:37:06]free content buf [14:37:06]Sock 9.Close socket [14:37:06]Sock 9.Thread stoped [14:37:10]OFD Sender: No OFD packet to send [14:37:14]accept exits with 8 [14:37:14]New connection [14:37:14]New thread 3066711396 created [14:37:14]Thread 3066568036 joined [14:37:14]Waiting for new connection... [14:37:14] Sock 8.Parse request [14:37:14]Sock 8.Check first char [14:37:14]Sock 8.First char is OK [14:37:14]request: POST /json_proto HTTP/1.0 [14:37:14]Method: POST [14:37:14]URL: /json_proto [14:37:14]Method is POST - this is cgi request [14:37:14]url: /json_proto [14:37:14]query_string will be loaded in cgi processing [14:37:14]execute_cgi json_proto POST (null) [14:37:14]execute_cgi path=json_proto method=POST [14:37:14]POST find Content-Length [14:37:14]Host: 172.17.50.3:8080 [14:37:14]Content-Length: 678 [14:37:14]Content-Type: application/json [14:37:14] [14:37:14]POST finish read [14:37:14]Found Content-Length = 678 [14:37:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:14]execute_script... [14:37:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:14]POST & json_proto [14:37:14]process_json_proto [14:37:14]json parsed OK: [14:37:14]protocol is kg_v1.0 [14:37:14]action value=close_receipt [14:37:14]process_action close_receipt [14:37:14]cmd_close_receipt [14:37:14]MH_GetDate [14:37:14]Write to MH i2c: F0 00 00 9B 0A 94 [14:37:14]Write i2c OK [14:37:14]MH_I2C_Read... [14:37:14]Read from MH i2c: F0 [14:37:14]MH_I2C_Read... [14:37:14]Read from MH i2c: F0 09 00 [14:37:14]MH_I2C_Read... [14:37:14]Read from MH i2c: F0 09 00 9B 0A 00 9A 15 15 67 6B 98 1E 66 4F [14:37:14]GetLastDocTimeStamp 1729435023 [14:37:14]current date 1729435034 [14:37:14]FM_GetShiftState [14:37:14]SAM_PROTO_GetShiftState [14:37:14]wFMCommunicate request_size=4 [14:37:14]MH_SAM_APDU [14:37:14]CAPDU: 80 13 01 00 [14:37:14]Write to MH i2c: E2 08 00 9C 0A 80 13 01 00 00 00 00 00 23 [14:37:14]Write i2c OK [14:37:14]MH_I2C_Read... [14:37:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:14]Read from MH i2c: E2 [14:37:14]MH_I2C_Read... [14:37:14]Read from MH i2c: E2 0E 00 [14:37:14]MH_I2C_Read... [14:37:14]Read from MH i2c: E2 0E 00 9C 0A 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 29 [14:37:14]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [14:37:14]wFMCommunicate OK [14:37:14]SAM_PROTO_GetShiftState done [14:37:14]FM_GetShiftState done [14:37:14]opened in 1729383220 [14:37:14]opened+sec_in_day 1729469620 [14:37:14]quantity*price = 50041 [14:37:14]sum+1 = 50042 [14:37:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 231 20.10.2024 14:37 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69386 ФПД: 96852579767494 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143715&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69386&fm=96852579767494&tin=02508201610067®Number=0000000000156251&sum=50000 [14:37:15]StoreToDocumentArchive [14:37:15]shift 193 fd 69386 [14:37:15]save to /storage/0193/doc_00069386 [14:37:15]save last doc name /storage/0193/doc_00069386 to /storage/kkm_last_doc_name [14:37:15]save OK [14:37:15]Clear old archive folders... [14:37:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:37:15]tlvbuf is 0024E5A0 [14:37:15]SAM_PROTO_ClearQueue [14:37:15]wFMCommunicate request_size=4 [14:37:15]MH_SAM_APDU [14:37:15]CAPDU: 80 09 00 00 [14:37:15]Write to MH i2c: E2 08 00 A9 0A 80 09 00 00 00 00 00 00 25 [14:37:15]Write i2c OK [14:37:15]MH_I2C_Read... [14:37:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:37:15]Read from MH i2c: E2 [14:37:15]MH_I2C_Read... [14:37:15]Read from MH i2c: E2 03 00 [14:37:15]MH_I2C_Read... [14:37:15]Read from MH i2c: E2 03 00 A9 0A 00 90 00 27 [14:37:15]RAPDU: 90 00 [14:37:15]wFMCommunicate OK [14:37:15]SAM_PROTO_ClearQueue done [14:37:15]KKMCreateOFDPacket [14:37:15]OFDProtocolAddRootSTLVToBuf [14:37:15]FM_MakeSignedData [14:37:15]FM_MakeSignedData [14:37:15]SAM_PROTO_SignData [14:37:15]wFMCommunicate request_size=4 [14:37:15]MH_SAM_APDU [14:37:15]CAPDU: 80 0D 01 02 [14:37:15]Write to MH i2c: E2 08 00 AA 0A 80 0D 01 02 00 00 00 00 2D [14:37:15]Write i2c OK [14:37:15]MH_I2C_Read... [14:37:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:37:15]Read from MH i2c: E2 [14:37:15]MH_I2C_Read... [14:37:15]Read from MH i2c: E2 03 00 [14:37:15]MH_I2C_Read... [14:37:15]Read from MH i2c: E2 03 00 AA 0A 00 90 00 28 [14:37:15]RAPDU: 90 00 [14:37:15]wFMCommunicate OK [14:37:15]wFMCommunicate request_size=255 [14:37:15]MH_SAM_APDU [14:37:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 9B 15 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0A 0F 01 00 35 04 06 00 58 [14:37:15]Write to MH i2c: E2 02 01 AB 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 9B 15 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0A 0F 01 00 35 04 06 00 58 00 00 FC [14:37:15]Write i2c OK [14:37:15]MH_I2C_Read... [14:37:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:16]Read from MH i2c: E2 [14:37:16]MH_I2C_Read... [14:37:16]Read from MH i2c: E2 03 00 [14:37:16]MH_I2C_Read... [14:37:16]Read from MH i2c: E2 03 00 AB 0A 00 90 00 29 [14:37:16]RAPDU: 90 00 [14:37:16]wFMCommunicate OK [14:37:16]wFMCommunicate request_size=10 [14:37:16]MH_SAM_APDU [14:37:16]CAPDU: 80 0D 02 02 05 16 3F 9C D4 C6 [14:37:16]Write to MH i2c: E2 0D 00 AC 0A 80 0D 02 02 05 00 16 3F 9C D4 C6 00 00 C5 [14:37:16]Write i2c OK [14:37:16]MH_I2C_Read... [14:37:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:16]Read from MH i2c: E2 [14:37:16]MH_I2C_Read... [14:37:16]Read from MH i2c: E2 03 00 [14:37:16]MH_I2C_Read... [14:37:16]Read from MH i2c: E2 03 00 AC 0A 00 90 00 2A [14:37:16]RAPDU: 90 00 [14:37:16]wFMCommunicate OK [14:37:16]wFMCommunicate request_size=4 [14:37:16]MH_SAM_APDU [14:37:16]CAPDU: 80 0D 03 02 [14:37:16]Write to MH i2c: E2 08 00 AD 0A 80 0D 03 02 00 00 00 00 32 [14:37:16]Write i2c OK [14:37:16]MH_I2C_Read... [14:37:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:16]Read from MH i2c: E2 [14:37:16]MH_I2C_Read... [14:37:16]Read from MH i2c: E2 0B 00 [14:37:16]MH_I2C_Read... [14:37:16]Read from MH i2c: E2 0B 00 AD 0A 00 00 AB 8E F8 07 30 00 B9 90 00 54 [14:37:16]RAPDU: 00 AB 8E F8 07 30 00 B9 90 00 [14:37:16]wFMCommunicate OK [14:37:16]SAM_PROTO_SignData done [14:37:16]FM_MakeSignedData done [14:37:16]CreateOFDProtocolMessage [14:37:16]wFMCommunicate request_size=4 [14:37:16]MH_SAM_APDU [14:37:16]CAPDU: 80 11 00 00 [14:37:16]Write to MH i2c: E2 08 00 AE 0A 80 11 00 00 00 00 00 00 32 [14:37:16]Write i2c OK [14:37:16]MH_I2C_Read... [14:37:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:16]Read from MH i2c: E2 [14:37:16]MH_I2C_Read... [14:37:16]Read from MH i2c: E2 17 00 [14:37:16]MH_I2C_Read... [14:37:16]Read from MH i2c: E2 17 00 AE 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 84 [14:37:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:37:16]wFMCommunicate OK [14:37:16]CreateOFDProtocolMessage done [14:37:16]OFDSenderStorePacket 69386 [14:37:16]StoreOFDPacket docnum=69386 [14:37:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 88 80 07 01 55 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 9B 15 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0A 0F 01 00 35 04 06 00 58 16 3F 9C D4 C6 00 AB 8E F8 07 30 00 B9 [14:37:16]CheckFolder [14:37:16]dirname=/storage/ofd_packets [14:37:16]CheckFolder done [14:37:16]ProducePacketName [14:37:16]name=ofd_packets/00069386 [14:37:16]NVStorageSaveData ofd_packets/00069386 [14:37:16]File name is /storage/ofd_packets/00069386 [14:37:16]Write 301 bytes [14:37:16]NVStorageSaveData done [14:37:16]OFDSenderStorePacket done [14:37:16]KKMCreateOFDPacket done [14:37:16]NVStorageSaveData kkm_last_timestamp [14:37:16]File name is /storage/kkm_last_timestamp [14:37:16]Write 4 bytes [14:37:16]NVStorageSaveData done [14:37:16]ExternCall_PrintAddStr [14:37:16]wPrintStart [14:37:16]Write to MH i2c: 01 00 00 AF 0A B9 [14:37:16]Write i2c OK [14:37:16]MH_I2C_Read... [14:37:16]Read from MH i2c: 01 [14:37:16]MH_I2C_Read... [14:37:16]Read from MH i2c: 01 07 00 [14:37:16]MH_I2C_Read... [14:37:16]Read from MH i2c: 01 07 00 AF 0A 00 00 00 00 00 FF 0F CE [14:37:16]RasterBufferAndPrint [14:37:16]line Счет N : (1)2885112 [14:37:16]line ИНН: 02508201610067 [14:37:16]line Контрольно-Кассовый Чек [14:37:16]line ПРОДАЖА [14:37:16]line ТРК (МРК, ГНК) : 22 [14:37:16]line Товар: 2710124130 [14:37:16]line Аи-92-К-5 [14:37:16]line 7.480 * 66.90 [14:37:16]line = 500.41 [14:37:16]line НДС 12% НСП 1% [14:37:16]line > о реализуемом товаре [14:37:16]line ОКРУГЛЕНИЕ: -0.41 [14:37:16]line ИТОГО: 500.00 [14:37:16]line Внесено: 500.00 [14:37:16]line СДАЧА: 0.00 [14:37:16]line НСП 1% : 4.43 [14:37:16]line НДС 12% : 53.14 [14:37:16]line Наличными: 500.00 [14:37:16]line Безнал.: 0.00 [14:37:16]line Место: АЗС № 85 "Партнер Нефть" [14:37:16]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:37:16]line СНО: Общий режим [14:37:16]line Чек 231 20.10.2024 14:37 [14:37:16]line Смена: 193 ФФД: 1.0 [14:37:16]line ЗНМ: 0300000167 [14:37:16]line РНМ: 0000000000156251 [14:37:16]line Версия ККМ: v1.0 [14:37:16]line ФМ: 0000000000963346 [14:37:16]line ФД: 69386 [14:37:16]line ФПД: 96852579767494 [14:37:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143715&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69386&fm=96852579767494&tin=02508201610067®Number=0000000000156251&sum=50000 [14:37:16]OFD Sender: Processing packet 69386 [packets to send 18, broken 17] [14:37:16]ProducePacketName [14:37:16]name=ofd_packets/00069386 [14:37:16]OFD Sender: To server: pG, [14:37:16]CommunicateWithHost lk.salyk.kg:30040 [14:37:16]ConnectInit lk.salyk.kg [14:37:16]written 0, free lines is 4095 [14:37:16]Connected sock=10 [14:37:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 88 80 07 01 55 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 9B 15 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0A 0F 01 00 35 04 06 00 58 16 3F 9C D4 C6 00 AB 8E F8 07 30 00 B9 [14:37:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 B6 48 47 00 9B 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0A 0F 01 00 F4 03 04 00 41 BF 14 67 B6 04 01 00 00 82 0C 02 2D 3F AA E4 03 [14:37:16]CommunicateWithHost err = 0 [14:37:16]CheckOFDResponse [14:37:16]1017 (14) - 77093643461234 [14:37:16]1041 (16) - 0000000000963346 [14:37:16]1040 (4) - 69386 [14:37:16]1012 (4) - 20.10.2024 08:28 [14:37:16]1206 (1) - 0 [14:37:16]OFD Sender: Remove packet 69386 [14:37:16]ProducePacketName [14:37:16]name=ofd_packets/00069386 [14:37:16]NVStorageDeleteData [14:37:17]Write to MH i2c: 01 00 00 DA 0A E4 [14:37:17]Write i2c OK [14:37:17]MH_I2C_Read... [14:37:17]Read from MH i2c: 01 [14:37:17]MH_I2C_Read... [14:37:17]Read from MH i2c: 01 07 00 [14:37:17]MH_I2C_Read... [14:37:17]Read from MH i2c: 01 07 00 DA 0A 00 00 00 00 00 F8 0C EF [14:37:17]RasterBufferAndPrint [14:37:17]line [14:37:17]line [14:37:17]line [14:37:17]line [14:37:17]line [14:37:17]written 0, free lines is 3326 [14:37:17]MH_Cut [14:37:17]Write to MH i2c: D1 01 00 E1 0A 01 BD [14:37:17]Write i2c OK [14:37:17]MH_I2C_Read... [14:37:17]Read from MH i2c: D1 [14:37:17]MH_I2C_Read... [14:37:17]Read from MH i2c: D1 01 00 [14:37:17]MH_I2C_Read... [14:37:17]Read from MH i2c: D1 01 00 E1 0A 00 BC [14:37:17]Write to MH i2c: 01 00 00 E2 0A EC [14:37:17]Write i2c OK [14:37:17]MH_I2C_Read... [14:37:17]OFD Sender: No OFD packet to send [14:37:17]*** Cut start [14:37:17]*** Partial cut [14:37:17]*** CUTSNS_PIN = 1 [14:37:17]*** CUTSNS_PIN = 0 [14:37:17]*** Brake cut motor [14:37:18]Read from MH i2c: 01 [14:37:18]MH_I2C_Read... [14:37:18]*** Stop cut motor [14:37:18]*** Cut end [14:37:18]Read from MH i2c: 01 07 00 [14:37:18]MH_I2C_Read... [14:37:18]Read from MH i2c: 01 07 00 E2 0A 00 00 00 00 00 FF 0F 01 [14:37:18]process_action close_receipt done [14:37:18]requested_data is exist [14:37:18]produce_requested_data [14:37:18]requested_item fm.sn is exist - process it [14:37:18]wFMCommunicate request_size=4 [14:37:18]MH_SAM_APDU [14:37:18]CAPDU: 80 11 00 00 [14:37:18]Write to MH i2c: E2 08 00 E3 0A 80 11 00 00 00 00 00 00 67 [14:37:18]Write i2c OK [14:37:18]MH_I2C_Read... [14:37:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:18]Read from MH i2c: E2 [14:37:18]MH_I2C_Read... [14:37:18]Read from MH i2c: E2 17 00 [14:37:18]MH_I2C_Read... [14:37:18]Read from MH i2c: E2 17 00 E3 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B9 [14:37:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:37:18]wFMCommunicate OK [14:37:18]requested_item fd.num is exist - process it [14:37:18]SAM_PROTO_GetFieldsCounters [14:37:18]wFMCommunicate request_size=4 [14:37:18]MH_SAM_APDU [14:37:18]CAPDU: 80 13 00 00 [14:37:18]Write to MH i2c: E2 08 00 E4 0A 80 13 00 00 00 00 00 00 6A [14:37:18]Write i2c OK [14:37:18]MH_I2C_Read... [14:37:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:18]Read from MH i2c: E2 [14:37:18]MH_I2C_Read... [14:37:18]Read from MH i2c: E2 62 00 [14:37:18]MH_I2C_Read... [14:37:18]Read from MH i2c: E2 62 00 E4 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0A 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [14:37:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0A 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:37:18]wFMCommunicate OK [14:37:18]SAM_PROTO_GetFieldsCounters done [14:37:18]requested_item shift.num is exist - process it [14:37:18]requested_item shift.opened is exist - process it [14:37:18]req_shift_opened [14:37:18]FM_GetShiftState [14:37:18]SAM_PROTO_GetShiftState [14:37:18]wFMCommunicate request_size=4 [14:37:18]MH_SAM_APDU [14:37:18]CAPDU: 80 13 01 00 [14:37:18]Write to MH i2c: E2 08 00 E5 0A 80 13 01 00 00 00 00 00 6C [14:37:18]Write i2c OK [14:37:18]MH_I2C_Read... [14:37:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:18]Read from MH i2c: E2 [14:37:18]MH_I2C_Read... [14:37:18]Read from MH i2c: E2 0E 00 [14:37:18]MH_I2C_Read... [14:37:18]Read from MH i2c: E2 0E 00 E5 0A 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 72 [14:37:18]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [14:37:18]wFMCommunicate OK [14:37:18]SAM_PROTO_GetShiftState done [14:37:18]FM_GetShiftState done [14:37:18]req_shift_opened done [14:37:18]requested_item shift.open_date is exist - process it [14:37:18]req_shift_open_date [14:37:18]req_shift_open_date done [14:37:18]produce_requested_data done [14:37:18]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69386,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [14:37:18]process_action_free close_receipt [14:37:18]json_value_free [14:37:18]json_value_free done [14:37:18]process_json_proto returns [14:37:18]Send response to host [14:37:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69386,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [14:37:18]free response buf [14:37:18]execute_script done [14:37:18]execute_script returns [14:37:18]free content buf [14:37:18]Sock 8.Close socket [14:37:18]Sock 8.Thread stoped [14:37:22]OFD Sender: No OFD packet to send [14:37:27]OFD Sender: No OFD packet to send [14:37:32]OFD Sender: No OFD packet to send [14:37:37]OFD Sender: No OFD packet to send [14:37:42]OFD Sender: No OFD packet to send [14:37:47]OFD Sender: No OFD packet to send [14:37:52]OFD Sender: No OFD packet to send [14:37:57]OFD Sender: No OFD packet to send [14:38:02]OFD Sender: No OFD packet to send [14:38:03]accept exits with 9 [14:38:03]New connection [14:38:03]New thread 3066568036 created [14:38:03]Thread 3066711396 joined [14:38:03]Waiting for new connection... [14:38:03] Sock 9.Parse request [14:38:03]Sock 9.Check first char [14:38:03]Sock 9.First char is OK [14:38:03]request: POST /json_proto HTTP/1.0 [14:38:03]Method: POST [14:38:03]URL: /json_proto [14:38:03]Method is POST - this is cgi request [14:38:03]url: /json_proto [14:38:03]query_string will be loaded in cgi processing [14:38:03]execute_cgi json_proto POST (null) [14:38:03]execute_cgi path=json_proto method=POST [14:38:03]POST find Content-Length [14:38:03]Host: 172.17.50.3:8080 [14:38:03]Content-Length: 791 [14:38:03]Content-Type: application/json [14:38:03] [14:38:03]POST finish read [14:38:03]Found Content-Length = 791 [14:38:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A31095", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:03]execute_script... [14:38: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)2885108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A31095", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:03]POST & json_proto [14:38:03]process_json_proto [14:38:03]json parsed OK: [14:38:03]protocol is kg_v1.0 [14:38:03]action value=close_receipt [14:38:03]process_action close_receipt [14:38:03]cmd_close_receipt [14:38:03]MH_GetDate [14:38:03]Write to MH i2c: F0 00 00 E6 0A DF [14:38:03]Write i2c OK [14:38:03]MH_I2C_Read... [14:38:03]Read from MH i2c: F0 [14:38:03]MH_I2C_Read... [14:38:03]Read from MH i2c: F0 09 00 [14:38:03]MH_I2C_Read... [14:38:03]Read from MH i2c: F0 09 00 E6 0A 00 CB 15 15 67 6B 98 1E 66 CB [14:38:03]GetLastDocTimeStamp 1729435035 [14:38:03]current date 1729435083 [14:38:03]FM_GetShiftState [14:38:03]SAM_PROTO_GetShiftState [14:38:03]wFMCommunicate request_size=4 [14:38:03]MH_SAM_APDU [14:38:03]CAPDU: 80 13 01 00 [14:38:03]Write to MH i2c: E2 08 00 E7 0A 80 13 01 00 00 00 00 00 6E [14:38:03]Write i2c OK [14:38:03]MH_I2C_Read... [14:38:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:03]Read from MH i2c: E2 [14:38:03]MH_I2C_Read... [14:38:03]Read from MH i2c: E2 0E 00 [14:38:03]MH_I2C_Read... [14:38:03]Read from MH i2c: E2 0E 00 E7 0A 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 74 [14:38:03]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [14:38:03]wFMCommunicate OK [14:38:03]SAM_PROTO_GetShiftState done [14:38:03]FM_GetShiftState done [14:38:03]opened in 1729383220 [14:38:03]opened+sec_in_day 1729469620 [14:38:03]quantity*price = 0 [14:38:03]sum+1 = 1 [14:38:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 232 20.10.2024 14:38 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 31095 ФМ: 0000000000963346 ФД: 69387 ФПД: 77565898330591 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143803&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69387&fm=77565898330591&tin=02508201610067®Number=0000000000156251&sum=0 [14:38:04]StoreToDocumentArchive [14:38:04]shift 193 fd 69387 [14:38:04]save to /storage/0193/doc_00069387 [14:38:04]save last doc name /storage/0193/doc_00069387 to /storage/kkm_last_doc_name [14:38:04]save OK [14:38:04]Clear old archive folders... [14:38:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:38:04]tlvbuf is 0023F9A0 [14:38:04]SAM_PROTO_ClearQueue [14:38:04]wFMCommunicate request_size=4 [14:38:04]MH_SAM_APDU [14:38:04]CAPDU: 80 09 00 00 [14:38:04]Write to MH i2c: E2 08 00 F4 0A 80 09 00 00 00 00 00 00 70 [14:38:04]Write i2c OK [14:38:04]MH_I2C_Read... [14:38:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:38:04]Read from MH i2c: E2 [14:38:04]MH_I2C_Read... [14:38:04]Read from MH i2c: E2 03 00 [14:38:04]MH_I2C_Read... [14:38:04]Read from MH i2c: E2 03 00 F4 0A 00 90 00 72 [14:38:04]RAPDU: 90 00 [14:38:04]wFMCommunicate OK [14:38:04]SAM_PROTO_ClearQueue done [14:38:04]KKMCreateOFDPacket [14:38:04]OFDProtocolAddRootSTLVToBuf [14:38:04]FM_MakeSignedData [14:38:04]FM_MakeSignedData [14:38:04]SAM_PROTO_SignData [14:38:04]wFMCommunicate request_size=4 [14:38:04]MH_SAM_APDU [14:38:04]CAPDU: 80 0D 01 02 [14:38:04]Write to MH i2c: E2 08 00 F5 0A 80 0D 01 02 00 00 00 00 78 [14:38:04]Write i2c OK [14:38:04]MH_I2C_Read... [14:38:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:38:04]Read from MH i2c: E2 [14:38:04]MH_I2C_Read... [14:38:04]Read from MH i2c: E2 03 00 [14:38:04]MH_I2C_Read... [14:38:04]Read from MH i2c: E2 03 00 F5 0A 00 90 00 73 [14:38:04]RAPDU: 90 00 [14:38:04]wFMCommunicate OK [14:38:04]wFMCommunicate request_size=255 [14:38:04]MH_SAM_APDU [14:38: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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 CB 15 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0B 0F 01 00 35 04 06 00 46 8B B7 D1 [14:38:04]Write to MH i2c: E2 02 01 F6 0A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 CB 15 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0B 0F 01 00 35 04 06 00 46 8B B7 D1 00 00 6F [14:38:04]Write i2c OK [14:38:04]MH_I2C_Read... [14:38:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:04]Read from MH i2c: E2 [14:38:04]MH_I2C_Read... [14:38:04]Read from MH i2c: E2 03 00 [14:38:04]MH_I2C_Read... [14:38:04]Read from MH i2c: E2 03 00 F6 0A 00 90 00 74 [14:38:04]RAPDU: 90 00 [14:38:04]wFMCommunicate OK [14:38:04]wFMCommunicate request_size=7 [14:38:04]MH_SAM_APDU [14:38:04]CAPDU: 80 0D 02 02 02 11 DF [14:38:04]Write to MH i2c: E2 0A 00 F7 0A 80 0D 02 02 02 00 11 DF 00 00 6F [14:38:04]Write i2c OK [14:38:04]MH_I2C_Read... [14:38:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:05]Read from MH i2c: E2 [14:38:05]MH_I2C_Read... [14:38:05]Read from MH i2c: E2 03 00 [14:38:05]MH_I2C_Read... [14:38:05]Read from MH i2c: E2 03 00 F7 0A 00 90 00 75 [14:38:05]RAPDU: 90 00 [14:38:05]wFMCommunicate OK [14:38:05]wFMCommunicate request_size=4 [14:38:05]MH_SAM_APDU [14:38:05]CAPDU: 80 0D 03 02 [14:38:05]Write to MH i2c: E2 08 00 F8 0A 80 0D 03 02 00 00 00 00 7D [14:38:05]Write i2c OK [14:38:05]MH_I2C_Read... [14:38:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:38:05]Read from MH i2c: E2 [14:38:05]MH_I2C_Read... [14:38:05]Read from MH i2c: E2 0B 00 [14:38:05]MH_I2C_Read... [14:38:05]Read from MH i2c: E2 0B 00 F8 0A 00 DC E1 9C B9 4D E7 40 23 90 00 27 [14:38:05]RAPDU: DC E1 9C B9 4D E7 40 23 90 00 [14:38:05]wFMCommunicate OK [14:38:05]SAM_PROTO_SignData done [14:38:05]FM_MakeSignedData done [14:38:05]CreateOFDProtocolMessage [14:38:05]wFMCommunicate request_size=4 [14:38:05]MH_SAM_APDU [14:38:05]CAPDU: 80 11 00 00 [14:38:05]Write to MH i2c: E2 08 00 F9 0A 80 11 00 00 00 00 00 00 7D [14:38:05]Write i2c OK [14:38:05]MH_I2C_Read... [14:38:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:05]Read from MH i2c: E2 [14:38:05]MH_I2C_Read... [14:38:05]Read from MH i2c: E2 17 00 [14:38:05]MH_I2C_Read... [14:38:05]Read from MH i2c: E2 17 00 F9 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CF [14:38:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:38:05]wFMCommunicate OK [14:38:05]CreateOFDProtocolMessage done [14:38:05]OFDSenderStorePacket 69387 [14:38:05]StoreOFDPacket docnum=69387 [14:38:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 E9 63 04 01 D8 BA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 CB 15 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0B 0F 01 00 35 04 06 00 46 8B B7 D1 11 DF DC E1 9C B9 4D E7 40 23 [14:38:05]CheckFolder [14:38:05]dirname=/storage/ofd_packets [14:38:05]CheckFolder done [14:38:05]ProducePacketName [14:38:05]name=ofd_packets/00069387 [14:38:05]NVStorageSaveData ofd_packets/00069387 [14:38:05]File name is /storage/ofd_packets/00069387 [14:38:05]Write 298 bytes [14:38:05]NVStorageSaveData done [14:38:05]OFDSenderStorePacket done [14:38:05]KKMCreateOFDPacket done [14:38:05]NVStorageSaveData kkm_last_timestamp [14:38:05]File name is /storage/kkm_last_timestamp [14:38:05]Write 4 bytes [14:38:05]NVStorageSaveData done [14:38:05]ExternCall_PrintAddStr [14:38:05]wPrintStart [14:38:05]Write to MH i2c: 01 00 00 FA 0A 04 [14:38:05]Write i2c OK [14:38:05]MH_I2C_Read... [14:38:05]Read from MH i2c: 01 [14:38:05]MH_I2C_Read... [14:38:05]Read from MH i2c: 01 07 00 [14:38:05]MH_I2C_Read... [14:38:05]Read from MH i2c: 01 07 00 FA 0A 00 00 00 00 00 FF 0F 19 [14:38:05]RasterBufferAndPrint [14:38:05]line Счет N : (1)2885108 [14:38:05]line ИНН: 02508201610067 [14:38:05]line Контрольно-Кассовый Чек [14:38:05]line ПРОДАЖА [14:38:05]line ТРК (МРК, ГНК) : 61 [14:38:05]line Товар: 2710194210 [14:38:05]line ДТ-К-5 [14:38:05]line 100.000 * 0.00 [14:38:05]line = 0.00 [14:38:05]line НДС 12% НСП 1% [14:38:05]line > о реализуемом товаре [14:38:05]line ИТОГО: 0.00 [14:38:05]line НСП 1% : 0.00 [14:38:05]line НДС 12% : 0.00 [14:38:05]line Наличными: 0.00 [14:38:05]line Безнал.: 0.00 [14:38:05]line Место: АЗС № 85 "Партнер Нефть" [14:38:05]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:38:05]line СНО: Общий режим [14:38:05]line Чек 232 20.10.2024 14:38 [14:38:05]line Смена: 193 ФФД: 1.0 [14:38:05]line ЗНМ: 0300000167 [14:38:05]line РНМ: 0000000000156251 [14:38:05]line Версия ККМ: v1.0 [14:38:05]line Талоны: Топливная Карта [14:38:05]line 31095 [14:38:05]line ФМ: 0000000000963346 [14:38:05]line ФД: 69387 [14:38:05]line ФПД: 77565898330591 [14:38:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143803&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69387&fm=77565898330591&tin=02508201610067®Number=0000000000156251&sum=0 [14:38:05]OFD Sender: Processing packet 69387 [packets to send 18, broken 17] [14:38:05]ProducePacketName [14:38:05]name=ofd_packets/00069387 [14:38:05]OFD Sender: To server: pG, [14:38:05]CommunicateWithHost lk.salyk.kg:30040 [14:38:05]ConnectInit lk.salyk.kg [14:38:05]written 0, free lines is 4095 [14:38:05]Connected sock=10 [14:38:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 E9 63 04 01 D8 BA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 CB 15 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0B 0F 01 00 35 04 06 00 46 8B B7 D1 11 DF DC E1 9C B9 4D E7 40 23 [14:38:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 95 34 47 00 52 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0B 0F 01 00 F4 03 04 00 72 BF 14 67 B6 04 01 00 00 C3 AC CA 66 BB 31 49 DC [14:38:05]CommunicateWithHost err = 0 [14:38:05]CheckOFDResponse [14:38:05]1017 (14) - 77093643461234 [14:38:05]1041 (16) - 0000000000963346 [14:38:05]1040 (4) - 69387 [14:38:05]1012 (4) - 20.10.2024 08:29 [14:38:05]1206 (1) - 0 [14:38:05]OFD Sender: Remove packet 69387 [14:38:05]ProducePacketName [14:38:05]name=ofd_packets/00069387 [14:38:05]NVStorageDeleteData [14:38:05]Write to MH i2c: 01 00 00 24 0B 2F [14:38:05]Write i2c OK [14:38:05]MH_I2C_Read... [14:38:05]Read from MH i2c: 01 [14:38:05]MH_I2C_Read... [14:38:05]Read from MH i2c: 01 07 00 [14:38:05]MH_I2C_Read... [14:38:05]Read from MH i2c: 01 07 00 24 0B 00 00 00 00 00 0F 0D 52 [14:38:05]RasterBufferAndPrint [14:38:05]line [14:38:05]line [14:38:05]line [14:38:05]line [14:38:05]line [14:38:05]written 0, free lines is 3351 [14:38:05]MH_Cut [14:38:05]Write to MH i2c: D1 01 00 2B 0B 01 08 [14:38:05]Write i2c OK [14:38:05]MH_I2C_Read... [14:38:05]Read from MH i2c: D1 [14:38:05]MH_I2C_Read... [14:38:05]Read from MH i2c: D1 01 00 [14:38:05]MH_I2C_Read... [14:38:05]Read from MH i2c: D1 01 00 2B 0B 00 07 [14:38:05]Write to MH i2c: 01 00 00 2C 0B 37 [14:38:05]Write i2c OK [14:38:05]MH_I2C_Read... [14:38:06]OFD Sender: No OFD packet to send [14:38:06]*** Cut start [14:38:06]*** Partial cut [14:38:06]*** CUTSNS_PIN = 1 [14:38:06]*** CUTSNS_PIN = 0 [14:38:06]*** Brake cut motor [14:38:07]Read from MH i2c: 01 [14:38:07]MH_I2C_Read... [14:38:07]*** Stop cut motor [14:38:07]*** Cut end [14:38:07]Read from MH i2c: 01 07 00 [14:38:07]MH_I2C_Read... [14:38:07]Read from MH i2c: 01 07 00 2C 0B 00 00 00 00 00 FF 0F 4C [14:38:07]process_action close_receipt done [14:38:07]requested_data is exist [14:38:07]produce_requested_data [14:38:07]requested_item fm.sn is exist - process it [14:38:07]wFMCommunicate request_size=4 [14:38:07]MH_SAM_APDU [14:38:07]CAPDU: 80 11 00 00 [14:38:07]Write to MH i2c: E2 08 00 2D 0B 80 11 00 00 00 00 00 00 B2 [14:38:07]Write i2c OK [14:38:07]MH_I2C_Read... [14:38:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:07]Read from MH i2c: E2 [14:38:07]MH_I2C_Read... [14:38:07]Read from MH i2c: E2 17 00 [14:38:07]MH_I2C_Read... [14:38:07]Read from MH i2c: E2 17 00 2D 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 04 [14:38:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:38:07]wFMCommunicate OK [14:38:07]requested_item fd.num is exist - process it [14:38:07]SAM_PROTO_GetFieldsCounters [14:38:07]wFMCommunicate request_size=4 [14:38:07]MH_SAM_APDU [14:38:07]CAPDU: 80 13 00 00 [14:38:07]Write to MH i2c: E2 08 00 2E 0B 80 13 00 00 00 00 00 00 B5 [14:38:07]Write i2c OK [14:38:07]MH_I2C_Read... [14:38:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:07]Read from MH i2c: E2 [14:38:07]MH_I2C_Read... [14:38:07]Read from MH i2c: E2 62 00 [14:38:07]MH_I2C_Read... [14:38:07]Read from MH i2c: E2 62 00 2E 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0B 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [14:38:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0B 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:38:07]wFMCommunicate OK [14:38:07]SAM_PROTO_GetFieldsCounters done [14:38:07]requested_item shift.num is exist - process it [14:38:07]requested_item shift.opened is exist - process it [14:38:07]req_shift_opened [14:38:07]FM_GetShiftState [14:38:07]SAM_PROTO_GetShiftState [14:38:07]wFMCommunicate request_size=4 [14:38:07]MH_SAM_APDU [14:38:07]CAPDU: 80 13 01 00 [14:38:07]Write to MH i2c: E2 08 00 2F 0B 80 13 01 00 00 00 00 00 B7 [14:38:07]Write i2c OK [14:38:07]MH_I2C_Read... [14:38:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:07]Read from MH i2c: E2 [14:38:07]MH_I2C_Read... [14:38:07]Read from MH i2c: E2 0E 00 [14:38:07]MH_I2C_Read... [14:38:07]Read from MH i2c: E2 0E 00 2F 0B 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 BD [14:38:07]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [14:38:07]wFMCommunicate OK [14:38:07]SAM_PROTO_GetShiftState done [14:38:07]FM_GetShiftState done [14:38:07]req_shift_opened done [14:38:07]requested_item shift.open_date is exist - process it [14:38:07]req_shift_open_date [14:38:07]req_shift_open_date done [14:38:07]produce_requested_data done [14:38:07]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69387,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [14:38:07]process_action_free close_receipt [14:38:07]json_value_free [14:38:07]json_value_free done [14:38:07]process_json_proto returns [14:38:07]Send response to host [14:38:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69387,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [14:38:07]free response buf [14:38:07]execute_script done [14:38:07]execute_script returns [14:38:07]free content buf [14:38:07]Sock 9.Close socket [14:38:07]Sock 9.Thread stoped [14:38:11]OFD Sender: No OFD packet to send [14:38:16]OFD Sender: No OFD packet to send [14:38:21]OFD Sender: No OFD packet to send [14:38:26]OFD Sender: No OFD packet to send [14:38:31]OFD Sender: No OFD packet to send [14:38:36]OFD Sender: No OFD packet to send [14:38:41]OFD Sender: No OFD packet to send [14:38:46]OFD Sender: No OFD packet to send [14:38:48]accept exits with 8 [14:38:48]New connection [14:38:48]New thread 3066711396 created [14:38:48]Thread 3066568036 joined [14:38:48]Waiting for new connection... [14:38:48] Sock 8.Parse request [14:38:48]Sock 8.Check first char [14:38:48]Sock 8.First char is OK [14:38:48]request: POST /json_proto HTTP/1.0 [14:38:48]Method: POST [14:38:48]URL: /json_proto [14:38:48]Method is POST - this is cgi request [14:38:48]url: /json_proto [14:38:48]query_string will be loaded in cgi processing [14:38:48]execute_cgi json_proto POST (null) [14:38:48]execute_cgi path=json_proto method=POST [14:38:48]POST find Content-Length [14:38:48]Host: 172.17.50.3:8080 [14:38:48]Content-Length: 678 [14:38:48]Content-Type: application/json [14:38:48] [14:38:48]POST finish read [14:38:48]Found Content-Length = 678 [14:38:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:48]execute_script... [14:38:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:48]POST & json_proto [14:38:48]process_json_proto [14:38:48]json parsed OK: [14:38:48]protocol is kg_v1.0 [14:38:48]action value=close_receipt [14:38:48]process_action close_receipt [14:38:48]cmd_close_receipt [14:38:48]MH_GetDate [14:38:48]Write to MH i2c: F0 00 00 30 0B 2A [14:38:48]Write i2c OK [14:38:48]MH_I2C_Read... [14:38:48]Read from MH i2c: F0 [14:38:48]MH_I2C_Read... [14:38:48]Read from MH i2c: F0 09 00 [14:38:48]MH_I2C_Read... [14:38:48]Read from MH i2c: F0 09 00 30 0B 00 F8 15 15 67 6B 98 1E 66 43 [14:38:48]GetLastDocTimeStamp 1729435083 [14:38:48]current date 1729435128 [14:38:48]FM_GetShiftState [14:38:48]SAM_PROTO_GetShiftState [14:38:48]wFMCommunicate request_size=4 [14:38:48]MH_SAM_APDU [14:38:48]CAPDU: 80 13 01 00 [14:38:48]Write to MH i2c: E2 08 00 31 0B 80 13 01 00 00 00 00 00 B9 [14:38:48]Write i2c OK [14:38:48]MH_I2C_Read... [14:38:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:48]Read from MH i2c: E2 [14:38:48]MH_I2C_Read... [14:38:48]Read from MH i2c: E2 0E 00 [14:38:48]MH_I2C_Read... [14:38:48]Read from MH i2c: E2 0E 00 31 0B 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 BF [14:38:48]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [14:38:48]wFMCommunicate OK [14:38:48]SAM_PROTO_GetShiftState done [14:38:48]FM_GetShiftState done [14:38:48]opened in 1729383220 [14:38:48]opened+sec_in_day 1729469620 [14:38:48]quantity*price = 50041 [14:38:48]sum+1 = 50042 [14:38:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 233 20.10.2024 14:38 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69388 ФПД: 222225492427520 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143848&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69388&fm=222225492427520&tin=02508201610067®Number=0000000000156251&sum=50000 [14:38:49]StoreToDocumentArchive [14:38:49]shift 193 fd 69388 [14:38:49]save to /storage/0193/doc_00069388 [14:38:49]save last doc name /storage/0193/doc_00069388 to /storage/kkm_last_doc_name [14:38:49]save OK [14:38:49]Clear old archive folders... [14:38:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:38:49]tlvbuf is 001E26A0 [14:38:49]SAM_PROTO_ClearQueue [14:38:49]wFMCommunicate request_size=4 [14:38:49]MH_SAM_APDU [14:38:49]CAPDU: 80 09 00 00 [14:38:49]Write to MH i2c: E2 08 00 3E 0B 80 09 00 00 00 00 00 00 BB [14:38:49]Write i2c OK [14:38:49]MH_I2C_Read... [14:38:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:38:49]Read from MH i2c: E2 [14:38:49]MH_I2C_Read... [14:38:49]Read from MH i2c: E2 03 00 [14:38:49]MH_I2C_Read... [14:38:49]Read from MH i2c: E2 03 00 3E 0B 00 90 00 BD [14:38:49]RAPDU: 90 00 [14:38:49]wFMCommunicate OK [14:38:49]SAM_PROTO_ClearQueue done [14:38:49]KKMCreateOFDPacket [14:38:49]OFDProtocolAddRootSTLVToBuf [14:38:49]FM_MakeSignedData [14:38:49]FM_MakeSignedData [14:38:49]SAM_PROTO_SignData [14:38:49]wFMCommunicate request_size=4 [14:38:49]MH_SAM_APDU [14:38:49]CAPDU: 80 0D 01 02 [14:38:49]Write to MH i2c: E2 08 00 3F 0B 80 0D 01 02 00 00 00 00 C3 [14:38:49]Write i2c OK [14:38:49]MH_I2C_Read... [14:38:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:38:49]Read from MH i2c: E2 [14:38:49]MH_I2C_Read... [14:38:49]Read from MH i2c: E2 03 00 [14:38:49]MH_I2C_Read... [14:38:49]Read from MH i2c: E2 03 00 3F 0B 00 90 00 BE [14:38:49]RAPDU: 90 00 [14:38:49]wFMCommunicate OK [14:38:49]wFMCommunicate request_size=255 [14:38:49]MH_SAM_APDU [14:38:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 F8 15 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0C 0F 01 00 35 04 06 00 CA [14:38:49]Write to MH i2c: E2 02 01 40 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 F8 15 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0C 0F 01 00 35 04 06 00 CA 00 00 65 [14:38:49]Write i2c OK [14:38:49]MH_I2C_Read... [14:38:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:49]Read from MH i2c: E2 [14:38:49]MH_I2C_Read... [14:38:49]Read from MH i2c: E2 03 00 [14:38:49]MH_I2C_Read... [14:38:49]Read from MH i2c: E2 03 00 40 0B 00 90 00 BF [14:38:49]RAPDU: 90 00 [14:38:49]wFMCommunicate OK [14:38:49]wFMCommunicate request_size=10 [14:38:49]MH_SAM_APDU [14:38:49]CAPDU: 80 0D 02 02 05 1C E7 89 43 00 [14:38:49]Write to MH i2c: E2 0D 00 41 0B 80 0D 02 02 05 00 1C E7 89 43 00 00 00 9F [14:38:49]Write i2c OK [14:38:49]MH_I2C_Read... [14:38:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:49]Read from MH i2c: E2 [14:38:49]MH_I2C_Read... [14:38:49]Read from MH i2c: E2 03 00 [14:38:49]MH_I2C_Read... [14:38:49]Read from MH i2c: E2 03 00 41 0B 00 90 00 C0 [14:38:49]RAPDU: 90 00 [14:38:49]wFMCommunicate OK [14:38:49]wFMCommunicate request_size=4 [14:38:49]MH_SAM_APDU [14:38:49]CAPDU: 80 0D 03 02 [14:38:49]Write to MH i2c: E2 08 00 42 0B 80 0D 03 02 00 00 00 00 C8 [14:38:49]Write i2c OK [14:38:49]MH_I2C_Read... [14:38:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:38:49]Read from MH i2c: E2 [14:38:49]MH_I2C_Read... [14:38:49]Read from MH i2c: E2 0B 00 [14:38:49]MH_I2C_Read... [14:38:49]Read from MH i2c: E2 0B 00 42 0B 00 8B A5 D4 84 34 8F F1 41 90 00 46 [14:38:49]RAPDU: 8B A5 D4 84 34 8F F1 41 90 00 [14:38:49]wFMCommunicate OK [14:38:49]SAM_PROTO_SignData done [14:38:49]FM_MakeSignedData done [14:38:49]CreateOFDProtocolMessage [14:38:49]wFMCommunicate request_size=4 [14:38:49]MH_SAM_APDU [14:38:49]CAPDU: 80 11 00 00 [14:38:49]Write to MH i2c: E2 08 00 43 0B 80 11 00 00 00 00 00 00 C8 [14:38:49]Write i2c OK [14:38:49]MH_I2C_Read... [14:38:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:49]Read from MH i2c: E2 [14:38:49]MH_I2C_Read... [14:38:49]Read from MH i2c: E2 17 00 [14:38:49]MH_I2C_Read... [14:38:49]Read from MH i2c: E2 17 00 43 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1A [14:38:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:38:49]wFMCommunicate OK [14:38:49]CreateOFDProtocolMessage done [14:38:49]OFDSenderStorePacket 69388 [14:38:49]StoreOFDPacket docnum=69388 [14:38:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 CE 0F 07 01 6C DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 F8 15 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0C 0F 01 00 35 04 06 00 CA 1C E7 89 43 00 8B A5 D4 84 34 8F F1 41 [14:38:49]CheckFolder [14:38:49]dirname=/storage/ofd_packets [14:38:49]CheckFolder done [14:38:49]ProducePacketName [14:38:49]name=ofd_packets/00069388 [14:38:49]NVStorageSaveData ofd_packets/00069388 [14:38:49]File name is /storage/ofd_packets/00069388 [14:38:49]Write 301 bytes [14:38:49]NVStorageSaveData done [14:38:49]OFDSenderStorePacket done [14:38:49]KKMCreateOFDPacket done [14:38:49]NVStorageSaveData kkm_last_timestamp [14:38:49]File name is /storage/kkm_last_timestamp [14:38:49]Write 4 bytes [14:38:49]NVStorageSaveData done [14:38:49]ExternCall_PrintAddStr [14:38:49]wPrintStart [14:38:49]Write to MH i2c: 01 00 00 44 0B 4F [14:38:49]Write i2c OK [14:38:49]MH_I2C_Read... [14:38:49]Read from MH i2c: 01 [14:38:49]MH_I2C_Read... [14:38:49]Read from MH i2c: 01 07 00 [14:38:49]MH_I2C_Read... [14:38:49]Read from MH i2c: 01 07 00 44 0B 00 00 00 00 00 FF 0F 64 [14:38:49]RasterBufferAndPrint [14:38:49]line Счет N : (1)2885113 [14:38:49]line ИНН: 02508201610067 [14:38:49]line Контрольно-Кассовый Чек [14:38:49]line ПРОДАЖА [14:38:49]line ТРК (МРК, ГНК) : 42 [14:38:49]line Товар: 2710124130 [14:38:49]line Аи-92-К-5 [14:38:49]line 7.480 * 66.90 [14:38:49]line = 500.41 [14:38:49]line НДС 12% НСП 1% [14:38:49]line > о реализуемом товаре [14:38:49]line ОКРУГЛЕНИЕ: -0.41 [14:38:49]line ИТОГО: 500.00 [14:38:49]line Внесено: 500.00 [14:38:49]line СДАЧА: 0.00 [14:38:49]line НСП 1% : 4.43 [14:38:49]line НДС 12% : 53.14 [14:38:49]line Наличными: 500.00 [14:38:49]line Безнал.: 0.00 [14:38:49]line Место: АЗС № 85 "Партнер Нефть" [14:38:49]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:38:49]line СНО: Общий режим [14:38:49]line Чек 233 20.10.2024 14:38 [14:38:49]line Смена: 193 ФФД: 1.0 [14:38:49]line ЗНМ: 0300000167 [14:38:49]line РНМ: 0000000000156251 [14:38:49]line Версия ККМ: v1.0 [14:38:49]line ФМ: 0000000000963346 [14:38:49]line ФД: 69388 [14:38:49]line ФПД: 222225492427520 [14:38:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143848&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69388&fm=222225492427520&tin=02508201610067®Number=0000000000156251&sum=50000 [14:38:50]OFD Sender: Processing packet 69388 [packets to send 18, broken 17] [14:38:50]ProducePacketName [14:38:50]name=ofd_packets/00069388 [14:38:50]OFD Sender: To server: pG, [14:38:50]CommunicateWithHost lk.salyk.kg:30040 [14:38:50]ConnectInit lk.salyk.kg [14:38:50]written 0, free lines is 4095 [14:38:50]Connected sock=10 [14:38:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 CE 0F 07 01 6C DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 F8 15 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0C 0F 01 00 35 04 06 00 CA 1C E7 89 43 00 8B A5 D4 84 34 8F F1 41 [14:38:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 52 24 47 00 05 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0C 0F 01 00 F4 03 04 00 9F BF 14 67 B6 04 01 00 00 A1 98 EC AC CE 17 9D EE [14:38:50]CommunicateWithHost err = 0 [14:38:50]CheckOFDResponse [14:38:50]1017 (14) - 77093643461234 [14:38:50]1041 (16) - 0000000000963346 [14:38:50]1040 (4) - 69388 [14:38:50]1012 (4) - 20.10.2024 08:30 [14:38:50]1206 (1) - 0 [14:38:50]OFD Sender: Remove packet 69388 [14:38:50]ProducePacketName [14:38:50]name=ofd_packets/00069388 [14:38:50]NVStorageDeleteData [14:38:50]Write to MH i2c: 01 00 00 6F 0B 7A [14:38:50]Write i2c OK [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: 01 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: 01 07 00 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: 01 07 00 6F 0B 00 00 00 00 00 EC 0C 79 [14:38:50]RasterBufferAndPrint [14:38:50]line [14:38:50]line [14:38:50]line [14:38:50]line [14:38:50]line [14:38:50]written 0, free lines is 3314 [14:38:50]MH_Cut [14:38:50]Write to MH i2c: D1 01 00 76 0B 01 53 [14:38:50]Write i2c OK [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: D1 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: D1 01 00 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: D1 01 00 76 0B 00 52 [14:38:50]Write to MH i2c: 01 00 00 77 0B 82 [14:38:50]Write i2c OK [14:38:50]MH_I2C_Read... [14:38:51]OFD Sender: No OFD packet to send [14:38:51]*** Cut start [14:38:51]*** Partial cut [14:38:51]*** CUTSNS_PIN = 1 [14:38:51]*** CUTSNS_PIN = 0 [14:38:51]*** Brake cut motor [14:38:51]Read from MH i2c: 01 [14:38:51]MH_I2C_Read... [14:38:51]*** Stop cut motor [14:38:51]*** Cut end [14:38:51]Read from MH i2c: 01 07 00 [14:38:51]MH_I2C_Read... [14:38:51]Read from MH i2c: 01 07 00 77 0B 00 00 00 00 00 FF 0F 97 [14:38:51]process_action close_receipt done [14:38:51]requested_data is exist [14:38:51]produce_requested_data [14:38:51]requested_item fm.sn is exist - process it [14:38:51]wFMCommunicate request_size=4 [14:38:51]MH_SAM_APDU [14:38:51]CAPDU: 80 11 00 00 [14:38:51]Write to MH i2c: E2 08 00 78 0B 80 11 00 00 00 00 00 00 FD [14:38:51]Write i2c OK [14:38:51]MH_I2C_Read... [14:38:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:52]Read from MH i2c: E2 [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: E2 17 00 [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: E2 17 00 78 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4F [14:38:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:38:52]wFMCommunicate OK [14:38:52]requested_item fd.num is exist - process it [14:38:52]SAM_PROTO_GetFieldsCounters [14:38:52]wFMCommunicate request_size=4 [14:38:52]MH_SAM_APDU [14:38:52]CAPDU: 80 13 00 00 [14:38:52]Write to MH i2c: E2 08 00 79 0B 80 13 00 00 00 00 00 00 00 [14:38:52]Write i2c OK [14:38:52]MH_I2C_Read... [14:38:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:52]Read from MH i2c: E2 [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: E2 62 00 [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: E2 62 00 79 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0C 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [14:38:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0C 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:38:52]wFMCommunicate OK [14:38:52]SAM_PROTO_GetFieldsCounters done [14:38:52]requested_item shift.num is exist - process it [14:38:52]requested_item shift.opened is exist - process it [14:38:52]req_shift_opened [14:38:52]FM_GetShiftState [14:38:52]SAM_PROTO_GetShiftState [14:38:52]wFMCommunicate request_size=4 [14:38:52]MH_SAM_APDU [14:38:52]CAPDU: 80 13 01 00 [14:38:52]Write to MH i2c: E2 08 00 7A 0B 80 13 01 00 00 00 00 00 02 [14:38:52]Write i2c OK [14:38:52]MH_I2C_Read... [14:38:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:52]Read from MH i2c: E2 [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: E2 0E 00 [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: E2 0E 00 7A 0B 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 08 [14:38:52]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [14:38:52]wFMCommunicate OK [14:38:52]SAM_PROTO_GetShiftState done [14:38:52]FM_GetShiftState done [14:38:52]req_shift_opened done [14:38:52]requested_item shift.open_date is exist - process it [14:38:52]req_shift_open_date [14:38:52]req_shift_open_date done [14:38:52]produce_requested_data done [14:38:52]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69388,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [14:38:52]process_action_free close_receipt [14:38:52]json_value_free [14:38:52]json_value_free done [14:38:52]process_json_proto returns [14:38:52]Send response to host [14:38:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69388,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [14:38:52]free response buf [14:38:52]execute_script done [14:38:52]execute_script returns [14:38:52]free content buf [14:38:52]Sock 8.Close socket [14:38:52]Sock 8.Thread stoped [14:38:56]OFD Sender: No OFD packet to send [14:39:01]OFD Sender: No OFD packet to send [14:39:06]OFD Sender: No OFD packet to send [14:39:11]OFD Sender: No OFD packet to send [14:39:16]OFD Sender: No OFD packet to send [14:39:21]OFD Sender: No OFD packet to send [14:39:26]OFD Sender: No OFD packet to send [14:39:31]OFD Sender: No OFD packet to send [14:39:36]OFD Sender: No OFD packet to send [14:39:41]OFD Sender: No OFD packet to send [14:39:46]OFD Sender: No OFD packet to send [14:39:51]OFD Sender: No OFD packet to send [14:39:56]OFD Sender: No OFD packet to send [14:40:01]OFD Sender: No OFD packet to send [14:40:06]OFD Sender: No OFD packet to send [14:40:11]OFD Sender: No OFD packet to send [14:40:16]OFD Sender: No OFD packet to send [14:40:21]OFD Sender: No OFD packet to send [14:40:26]OFD Sender: No OFD packet to send [14:40:31]OFD Sender: No OFD packet to send [14:40:36]OFD Sender: No OFD packet to send [14:40:41]OFD Sender: No OFD packet to send [14:40:46]OFD Sender: No OFD packet to send [14:40:51]OFD Sender: No OFD packet to send [14:40:56]OFD Sender: No OFD packet to send [14:41:01]OFD Sender: No OFD packet to send [14:41:06]OFD Sender: No OFD packet to send [14:41:11]OFD Sender: No OFD packet to send [14:41:16]OFD Sender: No OFD packet to send [14:41:21]OFD Sender: No OFD packet to send [14:41:26]OFD Sender: No OFD packet to send [14:41:31]OFD Sender: No OFD packet to send [14:41:36]OFD Sender: No OFD packet to send [14:41:41]OFD Sender: No OFD packet to send [14:41:46]OFD Sender: No OFD packet to send [14:41:51]OFD Sender: No OFD packet to send [14:41:56]OFD Sender: No OFD packet to send [14:42:01]OFD Sender: No OFD packet to send [14:42:06]OFD Sender: No OFD packet to send [14:42:11]OFD Sender: No OFD packet to send [14:42:16]OFD Sender: No OFD packet to send [14:42:21]OFD Sender: No OFD packet to send [14:42:26]OFD Sender: No OFD packet to send [14:42:31]OFD Sender: No OFD packet to send [14:42:36]OFD Sender: No OFD packet to send [14:42:36]accept exits with 9 [14:42:36]New connection [14:42:36]New thread 3066568036 created [14:42:36]Thread 3066711396 joined [14:42:36]Waiting for new connection... [14:42:36] Sock 9.Parse request [14:42:36]Sock 9.Check first char [14:42:36]Sock 9.First char is OK [14:42:36]request: POST /json_proto HTTP/1.0 [14:42:36]Method: POST [14:42:36]URL: /json_proto [14:42:36]Method is POST - this is cgi request [14:42:36]url: /json_proto [14:42:36]query_string will be loaded in cgi processing [14:42:36]execute_cgi json_proto POST (null) [14:42:36]execute_cgi path=json_proto method=POST [14:42:36]POST find Content-Length [14:42:36]Host: 172.17.50.3:8080 [14:42:36]Content-Length: 773 [14:42:36]Content-Type: application/json [14:42:36] [14:42:36]POST finish read [14:42:36]Found Content-Length = 773 [14:42:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:36]execute_script... [14:42: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)2885114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:36]POST & json_proto [14:42:36]process_json_proto [14:42:36]json parsed OK: [14:42:36]protocol is kg_v1.0 [14:42:36]action value=close_receipt [14:42:36]process_action close_receipt [14:42:36]cmd_close_receipt [14:42:36]MH_GetDate [14:42:36]Write to MH i2c: F0 00 00 7B 0B 75 [14:42:36]Write i2c OK [14:42:36]MH_I2C_Read... [14:42:36]Read from MH i2c: F0 [14:42:36]MH_I2C_Read... [14:42:36]Read from MH i2c: F0 09 00 [14:42:36]MH_I2C_Read... [14:42:36]Read from MH i2c: F0 09 00 7B 0B 00 DC 16 15 67 6B 98 1E 66 73 [14:42:36]GetLastDocTimeStamp 1729435128 [14:42:36]current date 1729435356 [14:42:36]FM_GetShiftState [14:42:36]SAM_PROTO_GetShiftState [14:42:36]wFMCommunicate request_size=4 [14:42:36]MH_SAM_APDU [14:42:36]CAPDU: 80 13 01 00 [14:42:36]Write to MH i2c: E2 08 00 7C 0B 80 13 01 00 00 00 00 00 04 [14:42:36]Write i2c OK [14:42:36]MH_I2C_Read... [14:42:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:36]Read from MH i2c: E2 [14:42:36]MH_I2C_Read... [14:42:36]Read from MH i2c: E2 0E 00 [14:42:36]MH_I2C_Read... [14:42:36]Read from MH i2c: E2 0E 00 7C 0B 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 0A [14:42:36]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [14:42:36]wFMCommunicate OK [14:42:36]SAM_PROTO_GetShiftState done [14:42:36]FM_GetShiftState done [14:42:36]opened in 1729383220 [14:42:36]opened+sec_in_day 1729469620 [14:42:36]quantity*price = 100011 [14:42:36]sum+1 = 100013 [14:42:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.12 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.12 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 234 20.10.2024 14:42 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69389 ФПД: 212204141972443 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T144236&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69389&fm=212204141972443&tin=02508201610067®Number=0000000000156251&sum=100012 [14:42:37]StoreToDocumentArchive [14:42:37]shift 193 fd 69389 [14:42:37]save to /storage/0193/doc_00069389 [14:42:37]save last doc name /storage/0193/doc_00069389 to /storage/kkm_last_doc_name [14:42:37]save OK [14:42:37]Clear old archive folders... [14:42:37]ProcessDocumentItem done err = 0, tmpTLVsize=250 [14:42:37]tlvbuf is 00225670 [14:42:37]SAM_PROTO_ClearQueue [14:42:37]wFMCommunicate request_size=4 [14:42:37]MH_SAM_APDU [14:42:37]CAPDU: 80 09 00 00 [14:42:37]Write to MH i2c: E2 08 00 89 0B 80 09 00 00 00 00 00 00 06 [14:42:37]Write i2c OK [14:42:37]MH_I2C_Read... [14:42:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:37]Read from MH i2c: E2 [14:42:37]MH_I2C_Read... [14:42:37]Read from MH i2c: E2 03 00 [14:42:37]MH_I2C_Read... [14:42:37]Read from MH i2c: E2 03 00 89 0B 00 90 00 08 [14:42:37]RAPDU: 90 00 [14:42:37]wFMCommunicate OK [14:42:37]SAM_PROTO_ClearQueue done [14:42:37]KKMCreateOFDPacket [14:42:37]OFDProtocolAddRootSTLVToBuf [14:42:37]FM_MakeSignedData [14:42:37]FM_MakeSignedData [14:42:37]SAM_PROTO_SignData [14:42:37]wFMCommunicate request_size=4 [14:42:37]MH_SAM_APDU [14:42:37]CAPDU: 80 0D 01 02 [14:42:37]Write to MH i2c: E2 08 00 8A 0B 80 0D 01 02 00 00 00 00 0E [14:42:37]Write i2c OK [14:42:37]MH_I2C_Read... [14:42:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:37]Read from MH i2c: E2 [14:42:37]MH_I2C_Read... [14:42:37]Read from MH i2c: E2 03 00 [14:42:37]MH_I2C_Read... [14:42:37]Read from MH i2c: E2 03 00 8A 0B 00 90 00 09 [14:42:37]RAPDU: 90 00 [14:42:37]wFMCommunicate OK [14:42:37]wFMCommunicate request_size=255 [14:42:37]MH_SAM_APDU [14:42:37]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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 DC 16 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0D 0F 01 00 35 04 06 00 C0 FF [14:42:37]Write to MH i2c: E2 02 01 8B 0B 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 DC 16 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0D 0F 01 00 35 04 06 00 C0 FF 00 00 7F [14:42:37]Write i2c OK [14:42:37]MH_I2C_Read... [14:42:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:37]Read from MH i2c: E2 [14:42:37]MH_I2C_Read... [14:42:37]Read from MH i2c: E2 03 00 [14:42:37]MH_I2C_Read... [14:42:37]Read from MH i2c: E2 03 00 8B 0B 00 90 00 0A [14:42:37]RAPDU: 90 00 [14:42:37]wFMCommunicate OK [14:42:37]wFMCommunicate request_size=9 [14:42:37]MH_SAM_APDU [14:42:37]CAPDU: 80 0D 02 02 04 A0 80 8B DB [14:42:37]Write to MH i2c: E2 0C 00 8C 0B 80 0D 02 02 04 00 A0 80 8B DB 00 00 9F [14:42:37]Write i2c OK [14:42:37]MH_I2C_Read... [14:42:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:37]Read from MH i2c: E2 [14:42:37]MH_I2C_Read... [14:42:37]Read from MH i2c: E2 03 00 [14:42:37]MH_I2C_Read... [14:42:37]Read from MH i2c: E2 03 00 8C 0B 00 90 00 0B [14:42:37]RAPDU: 90 00 [14:42:37]wFMCommunicate OK [14:42:37]wFMCommunicate request_size=4 [14:42:37]MH_SAM_APDU [14:42:37]CAPDU: 80 0D 03 02 [14:42:37]Write to MH i2c: E2 08 00 8D 0B 80 0D 03 02 00 00 00 00 13 [14:42:37]Write i2c OK [14:42:37]MH_I2C_Read... [14:42:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:38]Read from MH i2c: E2 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: E2 0B 00 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: E2 0B 00 8D 0B 00 A8 D1 93 09 44 E2 08 EE 90 00 45 [14:42:38]RAPDU: A8 D1 93 09 44 E2 08 EE 90 00 [14:42:38]wFMCommunicate OK [14:42:38]SAM_PROTO_SignData done [14:42:38]FM_MakeSignedData done [14:42:38]CreateOFDProtocolMessage [14:42:38]wFMCommunicate request_size=4 [14:42:38]MH_SAM_APDU [14:42:38]CAPDU: 80 11 00 00 [14:42:38]Write to MH i2c: E2 08 00 8E 0B 80 11 00 00 00 00 00 00 13 [14:42:38]Write i2c OK [14:42:38]MH_I2C_Read... [14:42:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:38]Read from MH i2c: E2 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: E2 17 00 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: E2 17 00 8E 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 65 [14:42:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:42:38]wFMCommunicate OK [14:42:38]CreateOFDProtocolMessage done [14:42:38]OFDSenderStorePacket 69389 [14:42:38]StoreOFDPacket docnum=69389 [14:42:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 19 A4 06 01 87 80 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 DC 16 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0D 0F 01 00 35 04 06 00 C0 FF A0 80 8B DB A8 D1 93 09 44 E2 08 EE [14:42:38]CheckFolder [14:42:38]dirname=/storage/ofd_packets [14:42:38]CheckFolder done [14:42:38]ProducePacketName [14:42:38]name=ofd_packets/00069389 [14:42:38]NVStorageSaveData ofd_packets/00069389 [14:42:38]File name is /storage/ofd_packets/00069389 [14:42:38]Write 300 bytes [14:42:38]NVStorageSaveData done [14:42:38]OFDSenderStorePacket done [14:42:38]KKMCreateOFDPacket done [14:42:38]NVStorageSaveData kkm_last_timestamp [14:42:38]File name is /storage/kkm_last_timestamp [14:42:38]Write 4 bytes [14:42:38]NVStorageSaveData done [14:42:38]ExternCall_PrintAddStr [14:42:38]wPrintStart [14:42:38]Write to MH i2c: 01 00 00 8F 0B 9A [14:42:38]Write i2c OK [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: 01 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: 01 07 00 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: 01 07 00 8F 0B 00 00 00 00 00 FF 0F AF [14:42:38]RasterBufferAndPrint [14:42:38]line Счет N : (1)2885114 [14:42:38]line ИНН: 02508201610067 [14:42:38]line Контрольно-Кассовый Чек [14:42:38]line ПРОДАЖА [14:42:38]line ТРК (МРК, ГНК) : 71 [14:42:38]line Товар: 2711129700 [14:42:38]line ГАЗ-К-3 [14:42:38]line 25.710 * 38.90 [14:42:38]line = 1000.12 [14:42:38]line НДС 12% НСП 1% [14:42:38]line > о реализуемом товаре [14:42:38]line ИТОГО: 1000.12 [14:42:38]line НСП 1% : 8.85 [14:42:38]line НДС 12% : 106.21 [14:42:38]line Наличными: 0.00 [14:42:38]line Безнал.: 1000.12 [14:42:38]line Место: АЗС № 85 "Партнер Нефть" [14:42:38]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:42:38]line СНО: Общий режим [14:42:38]line Чек 234 20.10.2024 14:42 [14:42:38]line Смена: 193 ФФД: 1.0 [14:42:38]line ЗНМ: 0300000167 [14:42:38]line РНМ: 0000000000156251 [14:42:38]line Версия ККМ: v1.0 [14:42:38]line Платежная система: Mbank [14:42:38]line ФМ: 0000000000963346 [14:42:38]line ФД: 69389 [14:42:38]line ФПД: 212204141972443 [14:42:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T144236&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69389&fm=212204141972443&tin=02508201610067®Number=0000000000156251&sum=100012 [14:42:38]OFD Sender: Processing packet 69389 [packets to send 18, broken 17] [14:42:38]ProducePacketName [14:42:38]name=ofd_packets/00069389 [14:42:38]OFD Sender: To server: pG, [14:42:38]CommunicateWithHost lk.salyk.kg:30040 [14:42:38]ConnectInit lk.salyk.kg [14:42:38]written 0, free lines is 4095 [14:42:38]Connected sock=10 [14:42:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 19 A4 06 01 87 80 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 DC 16 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0D 0F 01 00 35 04 06 00 C0 FF A0 80 8B DB A8 D1 93 09 44 E2 08 EE [14:42:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 6E 6C 47 00 6B DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0D 0F 01 00 F4 03 04 00 83 C0 14 67 B6 04 01 00 00 4E D8 EB 8A AA E6 29 66 [14:42:38]CommunicateWithHost err = 0 [14:42:38]CheckOFDResponse [14:42:38]1017 (14) - 77093643461234 [14:42:38]1041 (16) - 0000000000963346 [14:42:38]1040 (4) - 69389 [14:42:38]1012 (4) - 20.10.2024 08:34 [14:42:38]1206 (1) - 0 [14:42:38]OFD Sender: Remove packet 69389 [14:42:38]ProducePacketName [14:42:38]name=ofd_packets/00069389 [14:42:38]NVStorageDeleteData [14:42:38]Write to MH i2c: 01 00 00 B8 0B C3 [14:42:38]Write i2c OK [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: 01 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: 01 07 00 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: 01 07 00 B8 0B 00 00 00 00 00 1D 0D F4 [14:42:38]RasterBufferAndPrint [14:42:38]line [14:42:38]line [14:42:38]line [14:42:38]line [14:42:38]line [14:42:38]written 0, free lines is 3362 [14:42:38]MH_Cut [14:42:38]Write to MH i2c: D1 01 00 BF 0B 01 9C [14:42:38]Write i2c OK [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: D1 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: D1 01 00 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: D1 01 00 BF 0B 00 9B [14:42:38]Write to MH i2c: 01 00 00 C0 0B CB [14:42:38]Write i2c OK [14:42:38]MH_I2C_Read... [14:42:39]OFD Sender: No OFD packet to send [14:42:39]*** Cut start [14:42:39]*** Partial cut [14:42:39]*** CUTSNS_PIN = 1 [14:42:39]*** CUTSNS_PIN = 0 [14:42:39]*** Brake cut motor [14:42:40]Read from MH i2c: 01 [14:42:40]MH_I2C_Read... [14:42:40]*** Stop cut motor [14:42:40]*** Cut end [14:42:40]Read from MH i2c: 01 07 00 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: 01 07 00 C0 0B 00 00 00 00 00 FF 0F E0 [14:42:40]process_action close_receipt done [14:42:40]requested_data is exist [14:42:40]produce_requested_data [14:42:40]requested_item fm.sn is exist - process it [14:42:40]wFMCommunicate request_size=4 [14:42:40]MH_SAM_APDU [14:42:40]CAPDU: 80 11 00 00 [14:42:40]Write to MH i2c: E2 08 00 C1 0B 80 11 00 00 00 00 00 00 46 [14:42:40]Write i2c OK [14:42:40]MH_I2C_Read... [14:42:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:40]Read from MH i2c: E2 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 17 00 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 17 00 C1 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 98 [14:42:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:42:40]wFMCommunicate OK [14:42:40]requested_item fd.num is exist - process it [14:42:40]SAM_PROTO_GetFieldsCounters [14:42:40]wFMCommunicate request_size=4 [14:42:40]MH_SAM_APDU [14:42:40]CAPDU: 80 13 00 00 [14:42:40]Write to MH i2c: E2 08 00 C2 0B 80 13 00 00 00 00 00 00 49 [14:42:40]Write i2c OK [14:42:40]MH_I2C_Read... [14:42:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:40]Read from MH i2c: E2 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 62 00 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 62 00 C2 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0D 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [14:42:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0D 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:42:40]wFMCommunicate OK [14:42:40]SAM_PROTO_GetFieldsCounters done [14:42:40]requested_item shift.num is exist - process it [14:42:40]requested_item shift.opened is exist - process it [14:42:40]req_shift_opened [14:42:40]FM_GetShiftState [14:42:40]SAM_PROTO_GetShiftState [14:42:40]wFMCommunicate request_size=4 [14:42:40]MH_SAM_APDU [14:42:40]CAPDU: 80 13 01 00 [14:42:40]Write to MH i2c: E2 08 00 C3 0B 80 13 01 00 00 00 00 00 4B [14:42:40]Write i2c OK [14:42:40]MH_I2C_Read... [14:42:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:40]Read from MH i2c: E2 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 0E 00 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 0E 00 C3 0B 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 51 [14:42:40]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [14:42:40]wFMCommunicate OK [14:42:40]SAM_PROTO_GetShiftState done [14:42:40]FM_GetShiftState done [14:42:40]req_shift_opened done [14:42:40]requested_item shift.open_date is exist - process it [14:42:40]req_shift_open_date [14:42:40]req_shift_open_date done [14:42:40]produce_requested_data done [14:42:40]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69389,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [14:42:40]process_action_free close_receipt [14:42:40]json_value_free [14:42:40]json_value_free done [14:42:40]process_json_proto returns [14:42:40]Send response to host [14:42:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69389,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [14:42:40]free response buf [14:42:40]execute_script done [14:42:40]execute_script returns [14:42:40]free content buf [14:42:40]Sock 9.Close socket [14:42:40]Sock 9.Thread stoped [14:42:44]OFD Sender: No OFD packet to send [14:42:49]OFD Sender: No OFD packet to send [14:42:54]OFD Sender: No OFD packet to send [14:42:59]OFD Sender: No OFD packet to send [14:43:04]OFD Sender: No OFD packet to send [14:43:09]OFD Sender: No OFD packet to send [14:43:14]OFD Sender: No OFD packet to send [14:43:19]OFD Sender: No OFD packet to send [14:43:24]OFD Sender: No OFD packet to send [14:43:29]OFD Sender: No OFD packet to send [14:43:34]OFD Sender: No OFD packet to send [14:43:39]OFD Sender: No OFD packet to send [14:43:44]OFD Sender: No OFD packet to send [14:43:49]OFD Sender: No OFD packet to send [14:43:54]OFD Sender: No OFD packet to send [14:43:54]accept exits with 8 [14:43:54]New connection [14:43:54]New thread 3066711396 created [14:43:54]Thread 3066568036 joined [14:43:54]Waiting for new connection... [14:43:54] Sock 8.Parse request [14:43:54]Sock 8.Check first char [14:43:54]Sock 8.First char is OK [14:43:54]request: POST /json_proto HTTP/1.0 [14:43:54]Method: POST [14:43:54]URL: /json_proto [14:43:54]Method is POST - this is cgi request [14:43:54]url: /json_proto [14:43:54]query_string will be loaded in cgi processing [14:43:54]execute_cgi json_proto POST (null) [14:43:54]execute_cgi path=json_proto method=POST [14:43:54]POST find Content-Length [14:43:54]Host: 172.17.50.3:8080 [14:43:54]Content-Length: 678 [14:43:54]Content-Type: application/json [14:43:54] [14:43:54]POST finish read [14:43:54]Found Content-Length = 678 [14:43:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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" ] } } [14:43:54]execute_script... [14:43:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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" ] } } [14:43:54]POST & json_proto [14:43:54]process_json_proto [14:43:54]json parsed OK: [14:43:54]protocol is kg_v1.0 [14:43:54]action value=close_receipt [14:43:54]process_action close_receipt [14:43:54]cmd_close_receipt [14:43:54]MH_GetDate [14:43:54]Write to MH i2c: F0 00 00 C4 0B BE [14:43:54]Write i2c OK [14:43:54]MH_I2C_Read... [14:43:54]Read from MH i2c: F0 [14:43:54]MH_I2C_Read... [14:43:54]Read from MH i2c: F0 09 00 [14:43:54]MH_I2C_Read... [14:43:54]Read from MH i2c: F0 09 00 C4 0B 00 2B 17 15 67 6B 98 1E 66 0C [14:43:54]GetLastDocTimeStamp 1729435356 [14:43:54]current date 1729435435 [14:43:54]FM_GetShiftState [14:43:54]SAM_PROTO_GetShiftState [14:43:54]wFMCommunicate request_size=4 [14:43:54]MH_SAM_APDU [14:43:54]CAPDU: 80 13 01 00 [14:43:54]Write to MH i2c: E2 08 00 C5 0B 80 13 01 00 00 00 00 00 4D [14:43:54]Write i2c OK [14:43:54]MH_I2C_Read... [14:43:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:54]Read from MH i2c: E2 [14:43:54]MH_I2C_Read... [14:43:54]Read from MH i2c: E2 0E 00 [14:43:54]MH_I2C_Read... [14:43:54]Read from MH i2c: E2 0E 00 C5 0B 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 53 [14:43:54]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [14:43:54]wFMCommunicate OK [14:43:54]SAM_PROTO_GetShiftState done [14:43:54]FM_GetShiftState done [14:43:54]opened in 1729383220 [14:43:54]opened+sec_in_day 1729469620 [14:43:54]quantity*price = 50010 [14:43:54]sum+1 = 50012 [14:43:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 235 20.10.2024 14:43 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69390 ФПД: 200199108854421 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T144355&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69390&fm=200199108854421&tin=02508201610067®Number=0000000000156251&sum=50000 [14:43:55]StoreToDocumentArchive [14:43:55]shift 193 fd 69390 [14:43:55]save to /storage/0193/doc_00069390 [14:43:55]save last doc name /storage/0193/doc_00069390 to /storage/kkm_last_doc_name [14:43:55]save OK [14:43:55]Clear old archive folders... [14:43:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:43:55]tlvbuf is 0021ABE0 [14:43:55]SAM_PROTO_ClearQueue [14:43:55]wFMCommunicate request_size=4 [14:43:55]MH_SAM_APDU [14:43:55]CAPDU: 80 09 00 00 [14:43:55]Write to MH i2c: E2 08 00 D2 0B 80 09 00 00 00 00 00 00 4F [14:43:55]Write i2c OK [14:43:55]MH_I2C_Read... [14:43:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:43:55]Read from MH i2c: E2 [14:43:55]MH_I2C_Read... [14:43:55]Read from MH i2c: E2 03 00 [14:43:55]MH_I2C_Read... [14:43:55]Read from MH i2c: E2 03 00 D2 0B 00 90 00 51 [14:43:55]RAPDU: 90 00 [14:43:55]wFMCommunicate OK [14:43:55]SAM_PROTO_ClearQueue done [14:43:55]KKMCreateOFDPacket [14:43:55]OFDProtocolAddRootSTLVToBuf [14:43:55]FM_MakeSignedData [14:43:55]FM_MakeSignedData [14:43:55]SAM_PROTO_SignData [14:43:55]wFMCommunicate request_size=4 [14:43:55]MH_SAM_APDU [14:43:55]CAPDU: 80 0D 01 02 [14:43:55]Write to MH i2c: E2 08 00 D3 0B 80 0D 01 02 00 00 00 00 57 [14:43:55]Write i2c OK [14:43:55]MH_I2C_Read... [14:43:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:43:56]Read from MH i2c: E2 [14:43:56]MH_I2C_Read... [14:43:56]Read from MH i2c: E2 03 00 [14:43:56]MH_I2C_Read... [14:43:56]Read from MH i2c: E2 03 00 D3 0B 00 90 00 52 [14:43:56]RAPDU: 90 00 [14:43:56]wFMCommunicate OK [14:43:56]wFMCommunicate request_size=255 [14:43:56]MH_SAM_APDU [14:43:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 EB 00 00 00 F4 03 04 00 2B 17 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0E 0F 01 00 35 04 06 00 B6 [14:43:56]Write to MH i2c: E2 02 01 D4 0B 80 0D 02 02 FA 00 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 EB 00 00 00 F4 03 04 00 2B 17 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0E 0F 01 00 35 04 06 00 B6 00 00 F6 [14:43:56]Write i2c OK [14:43:56]MH_I2C_Read... [14:43:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:56]Read from MH i2c: E2 [14:43:56]MH_I2C_Read... [14:43:56]Read from MH i2c: E2 03 00 [14:43:56]MH_I2C_Read... [14:43:56]Read from MH i2c: E2 03 00 D4 0B 00 90 00 53 [14:43:56]RAPDU: 90 00 [14:43:56]wFMCommunicate OK [14:43:56]wFMCommunicate request_size=10 [14:43:56]MH_SAM_APDU [14:43:56]CAPDU: 80 0D 02 02 05 14 7C C4 82 95 [14:43:56]Write to MH i2c: E2 0D 00 D5 0B 80 0D 02 02 05 00 14 7C C4 82 95 00 00 CF [14:43:56]Write i2c OK [14:43:56]MH_I2C_Read... [14:43:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:56]Read from MH i2c: E2 [14:43:56]MH_I2C_Read... [14:43:56]Read from MH i2c: E2 03 00 [14:43:56]MH_I2C_Read... [14:43:56]Read from MH i2c: E2 03 00 D5 0B 00 90 00 54 [14:43:56]RAPDU: 90 00 [14:43:56]wFMCommunicate OK [14:43:56]wFMCommunicate request_size=4 [14:43:56]MH_SAM_APDU [14:43:56]CAPDU: 80 0D 03 02 [14:43:56]Write to MH i2c: E2 08 00 D6 0B 80 0D 03 02 00 00 00 00 5C [14:43:56]Write i2c OK [14:43:56]MH_I2C_Read... [14:43:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:43:56]Read from MH i2c: E2 [14:43:56]MH_I2C_Read... [14:43:56]Read from MH i2c: E2 0B 00 [14:43:56]MH_I2C_Read... [14:43:56]Read from MH i2c: E2 0B 00 D6 0B 00 EC C1 D4 DB BE B3 DA F4 90 00 F8 [14:43:56]RAPDU: EC C1 D4 DB BE B3 DA F4 90 00 [14:43:56]wFMCommunicate OK [14:43:56]SAM_PROTO_SignData done [14:43:56]FM_MakeSignedData done [14:43:56]CreateOFDProtocolMessage [14:43:56]wFMCommunicate request_size=4 [14:43:56]MH_SAM_APDU [14:43:56]CAPDU: 80 11 00 00 [14:43:56]Write to MH i2c: E2 08 00 D7 0B 80 11 00 00 00 00 00 00 5C [14:43:56]Write i2c OK [14:43:56]MH_I2C_Read... [14:43:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:56]Read from MH i2c: E2 [14:43:56]MH_I2C_Read... [14:43:56]Read from MH i2c: E2 17 00 [14:43:56]MH_I2C_Read... [14:43:56]Read from MH i2c: E2 17 00 D7 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AE [14:43:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:43:56]wFMCommunicate OK [14:43:56]CreateOFDProtocolMessage done [14:43:56]OFDSenderStorePacket 69390 [14:43:56]StoreOFDPacket docnum=69390 [14:43:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 B1 45 07 01 FE 0F 5A 03 01 00 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 EB 00 00 00 F4 03 04 00 2B 17 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0E 0F 01 00 35 04 06 00 B6 14 7C C4 82 95 EC C1 D4 DB BE B3 DA F4 [14:43:56]CheckFolder [14:43:56]dirname=/storage/ofd_packets [14:43:56]CheckFolder done [14:43:56]ProducePacketName [14:43:56]name=ofd_packets/00069390 [14:43:56]NVStorageSaveData ofd_packets/00069390 [14:43:56]File name is /storage/ofd_packets/00069390 [14:43:56]Write 301 bytes [14:43:56]NVStorageSaveData done [14:43:56]OFDSenderStorePacket done [14:43:56]KKMCreateOFDPacket done [14:43:56]NVStorageSaveData kkm_last_timestamp [14:43:56]File name is /storage/kkm_last_timestamp [14:43:56]Write 4 bytes [14:43:56]NVStorageSaveData done [14:43:56]ExternCall_PrintAddStr [14:43:56]wPrintStart [14:43:56]Write to MH i2c: 01 00 00 D8 0B E3 [14:43:56]Write i2c OK [14:43:56]MH_I2C_Read... [14:43:56]Read from MH i2c: 01 [14:43:56]MH_I2C_Read... [14:43:56]Read from MH i2c: 01 07 00 [14:43:56]MH_I2C_Read... [14:43:56]Read from MH i2c: 01 07 00 D8 0B 00 00 00 00 00 FF 0F F8 [14:43:56]RasterBufferAndPrint [14:43:56]line Счет N : (1)2885115 [14:43:56]line ИНН: 02508201610067 [14:43:56]line Контрольно-Кассовый Чек [14:43:56]line ПРОДАЖА [14:43:56]line ТРК (МРК, ГНК) : 23 [14:43:56]line Товар: 2710124500 [14:43:56]line Аи-95-К-5 [14:43:56]line 6.740 * 74.20 [14:43:56]line = 500.11 [14:43:56]line НДС 12% НСП 1% [14:43:56]line > о реализуемом товаре [14:43:56]line ОКРУГЛЕНИЕ: -0.11 [14:43:56]line ИТОГО: 500.00 [14:43:56]line Внесено: 500.00 [14:43:56]line СДАЧА: 0.00 [14:43:56]line НСП 1% : 4.43 [14:43:56]line НДС 12% : 53.11 [14:43:56]line Наличными: 500.00 [14:43:56]line Безнал.: 0.00 [14:43:56]line Место: АЗС № 85 "Партнер Нефть" [14:43:56]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:43:56]line СНО: Общий режим [14:43:56]line Чек 235 20.10.2024 14:43 [14:43:56]line Смена: 193 ФФД: 1.0 [14:43:56]line ЗНМ: 0300000167 [14:43:56]line РНМ: 0000000000156251 [14:43:56]line Версия ККМ: v1.0 [14:43:56]line ФМ: 0000000000963346 [14:43:56]line ФД: 69390 [14:43:56]line ФПД: 200199108854421 [14:43:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T144355&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69390&fm=200199108854421&tin=02508201610067®Number=0000000000156251&sum=50000 [14:43:56]OFD Sender: Processing packet 69390 [packets to send 18, broken 17] [14:43:56]ProducePacketName [14:43:56]name=ofd_packets/00069390 [14:43:56]OFD Sender: To server: pG, [14:43:56]CommunicateWithHost lk.salyk.kg:30040 [14:43:56]ConnectInit lk.salyk.kg [14:43:56]written 0, free lines is 4095 [14:43:56]Connected sock=10 [14:43:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 B1 45 07 01 FE 0F 5A 03 01 00 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 EB 00 00 00 F4 03 04 00 2B 17 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0E 0F 01 00 35 04 06 00 B6 14 7C C4 82 95 EC C1 D4 DB BE B3 DA F4 [14:43:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 F1 42 47 00 57 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0E 0F 01 00 F4 03 04 00 D1 C0 14 67 B6 04 01 00 00 D9 C4 F0 23 44 4B 18 F4 [14:43:57]CommunicateWithHost err = 0 [14:43:57]CheckOFDResponse [14:43:57]1017 (14) - 77093643461234 [14:43:57]1041 (16) - 0000000000963346 [14:43:57]1040 (4) - 69390 [14:43:57]1012 (4) - 20.10.2024 08:35 [14:43:57]1206 (1) - 0 [14:43:57]OFD Sender: Remove packet 69390 [14:43:57]ProducePacketName [14:43:57]name=ofd_packets/00069390 [14:43:57]NVStorageDeleteData [14:43:57]Write to MH i2c: 01 00 00 03 0C 0F [14:43:57]Write i2c OK [14:43:57]MH_I2C_Read... [14:43:57]Read from MH i2c: 01 [14:43:57]MH_I2C_Read... [14:43:57]Read from MH i2c: 01 07 00 [14:43:57]MH_I2C_Read... [14:43:57]Read from MH i2c: 01 07 00 03 0C 00 00 00 00 00 F9 0C 1B [14:43:57]RasterBufferAndPrint [14:43:57]line [14:43:57]line [14:43:57]line [14:43:57]line [14:43:57]line [14:43:57]written 0, free lines is 3328 [14:43:57]MH_Cut [14:43:57]Write to MH i2c: D1 01 00 0A 0C 01 E8 [14:43:57]Write i2c OK [14:43:57]MH_I2C_Read... [14:43:57]Read from MH i2c: D1 [14:43:57]MH_I2C_Read... [14:43:57]Read from MH i2c: D1 01 00 [14:43:57]MH_I2C_Read... [14:43:57]Read from MH i2c: D1 01 00 0A 0C 00 E7 [14:43:57]Write to MH i2c: 01 00 00 0B 0C 17 [14:43:57]Write i2c OK [14:43:57]MH_I2C_Read... [14:43:57]OFD Sender: No OFD packet to send [14:43:57]*** Cut start [14:43:57]*** Partial cut [14:43:57]*** CUTSNS_PIN = 1 [14:43:57]*** CUTSNS_PIN = 0 [14:43:58]*** Brake cut motor [14:43:58]Read from MH i2c: 01 [14:43:58]MH_I2C_Read... [14:43:58]*** Stop cut motor [14:43:58]*** Cut end [14:43:58]Read from MH i2c: 01 07 00 [14:43:58]MH_I2C_Read... [14:43:58]Read from MH i2c: 01 07 00 0B 0C 00 00 00 00 00 FF 0F 2C [14:43:58]process_action close_receipt done [14:43:58]requested_data is exist [14:43:58]produce_requested_data [14:43:58]requested_item fm.sn is exist - process it [14:43:58]wFMCommunicate request_size=4 [14:43:58]MH_SAM_APDU [14:43:58]CAPDU: 80 11 00 00 [14:43:58]Write to MH i2c: E2 08 00 0C 0C 80 11 00 00 00 00 00 00 92 [14:43:58]Write i2c OK [14:43:58]MH_I2C_Read... [14:43:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:58]Read from MH i2c: E2 [14:43:58]MH_I2C_Read... [14:43:58]Read from MH i2c: E2 17 00 [14:43:58]MH_I2C_Read... [14:43:58]Read from MH i2c: E2 17 00 0C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E4 [14:43:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:43:58]wFMCommunicate OK [14:43:58]requested_item fd.num is exist - process it [14:43:58]SAM_PROTO_GetFieldsCounters [14:43:58]wFMCommunicate request_size=4 [14:43:58]MH_SAM_APDU [14:43:58]CAPDU: 80 13 00 00 [14:43:58]Write to MH i2c: E2 08 00 0D 0C 80 13 00 00 00 00 00 00 95 [14:43:58]Write i2c OK [14:43:58]MH_I2C_Read... [14:43:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:43:58]Read from MH i2c: E2 [14:43:58]MH_I2C_Read... [14:43:58]Read from MH i2c: E2 62 00 [14:43:58]MH_I2C_Read... [14:43:58]Read from MH i2c: E2 62 00 0D 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0E 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [14:43:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0E 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:43:58]wFMCommunicate OK [14:43:58]SAM_PROTO_GetFieldsCounters done [14:43:58]requested_item shift.num is exist - process it [14:43:58]requested_item shift.opened is exist - process it [14:43:58]req_shift_opened [14:43:58]FM_GetShiftState [14:43:58]SAM_PROTO_GetShiftState [14:43:58]wFMCommunicate request_size=4 [14:43:58]MH_SAM_APDU [14:43:58]CAPDU: 80 13 01 00 [14:43:58]Write to MH i2c: E2 08 00 0E 0C 80 13 01 00 00 00 00 00 97 [14:43:58]Write i2c OK [14:43:58]MH_I2C_Read... [14:43:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:58]Read from MH i2c: E2 [14:43:58]MH_I2C_Read... [14:43:58]Read from MH i2c: E2 0E 00 [14:43:58]MH_I2C_Read... [14:43:58]Read from MH i2c: E2 0E 00 0E 0C 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 9D [14:43:58]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [14:43:58]wFMCommunicate OK [14:43:58]SAM_PROTO_GetShiftState done [14:43:58]FM_GetShiftState done [14:43:58]req_shift_opened done [14:43:58]requested_item shift.open_date is exist - process it [14:43:58]req_shift_open_date [14:43:58]req_shift_open_date done [14:43:58]produce_requested_data done [14:43:58]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69390,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [14:43:58]process_action_free close_receipt [14:43:58]json_value_free [14:43:58]json_value_free done [14:43:58]process_json_proto returns [14:43:58]Send response to host [14:43:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69390,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [14:43:58]free response buf [14:43:58]execute_script done [14:43:58]execute_script returns [14:43:58]free content buf [14:43:58]Sock 8.Close socket [14:43:58]Sock 8.Thread stoped [14:44:02]OFD Sender: No OFD packet to send [14:44:07]OFD Sender: No OFD packet to send [14:44:12]OFD Sender: No OFD packet to send [14:44:17]OFD Sender: No OFD packet to send [14:44:22]OFD Sender: No OFD packet to send [14:44:27]OFD Sender: No OFD packet to send [14:44:32]OFD Sender: No OFD packet to send [14:44:37]OFD Sender: No OFD packet to send [14:44:42]OFD Sender: No OFD packet to send [14:44:47]OFD Sender: No OFD packet to send [14:44:52]OFD Sender: No OFD packet to send [14:44:57]OFD Sender: No OFD packet to send [14:45:02]OFD Sender: No OFD packet to send [14:45:07]OFD Sender: No OFD packet to send [14:45:12]OFD Sender: No OFD packet to send [14:45:17]OFD Sender: No OFD packet to send [14:45:22]OFD Sender: No OFD packet to send [14:45:27]OFD Sender: No OFD packet to send [14:45:32]OFD Sender: No OFD packet to send [14:45:37]OFD Sender: No OFD packet to send [14:45:42]OFD Sender: No OFD packet to send [14:45:47]OFD Sender: No OFD packet to send [14:45:52]OFD Sender: No OFD packet to send [14:45:57]OFD Sender: No OFD packet to send [14:46:02]OFD Sender: No OFD packet to send [14:46:07]OFD Sender: No OFD packet to send [14:46:12]OFD Sender: No OFD packet to send [14:46:17]OFD Sender: No OFD packet to send [14:46:22]OFD Sender: No OFD packet to send [14:46:27]OFD Sender: No OFD packet to send [14:46:32]OFD Sender: No OFD packet to send [14:46:37]OFD Sender: No OFD packet to send [14:46:42]OFD Sender: No OFD packet to send [14:46:47]OFD Sender: No OFD packet to send [14:46:52]OFD Sender: No OFD packet to send [14:46:53]accept exits with 9 [14:46:53]New connection [14:46:53]New thread 3066568036 created [14:46:53]Thread 3066711396 joined [14:46:53]Waiting for new connection... [14:46:53] Sock 9.Parse request [14:46:53]Sock 9.Check first char [14:46:53]Sock 9.First char is OK [14:46:53]request: POST /json_proto HTTP/1.0 [14:46:53]Method: POST [14:46:53]URL: /json_proto [14:46:53]Method is POST - this is cgi request [14:46:53]url: /json_proto [14:46:53]query_string will be loaded in cgi processing [14:46:53]execute_cgi json_proto POST (null) [14:46:53]execute_cgi path=json_proto method=POST [14:46:53]POST find Content-Length [14:46:53]Host: 172.17.50.3:8080 [14:46:53]Content-Length: 770 [14:46:53]Content-Type: application/json [14:46:53] [14:46:53]POST finish read [14:46:53]Found Content-Length = 770 [14:46:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:53]execute_script... [14:46: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)2885116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:53]POST & json_proto [14:46:53]process_json_proto [14:46:53]json parsed OK: [14:46:53]protocol is kg_v1.0 [14:46:53]action value=close_receipt [14:46:53]process_action close_receipt [14:46:53]cmd_close_receipt [14:46:53]MH_GetDate [14:46:53]Write to MH i2c: F0 00 00 0F 0C 0A [14:46:53]Write i2c OK [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: F0 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: F0 09 00 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: F0 09 00 0F 0C 00 DD 17 15 67 6B 98 1E 66 0A [14:46:53]GetLastDocTimeStamp 1729435435 [14:46:53]current date 1729435613 [14:46:53]FM_GetShiftState [14:46:53]SAM_PROTO_GetShiftState [14:46:53]wFMCommunicate request_size=4 [14:46:53]MH_SAM_APDU [14:46:53]CAPDU: 80 13 01 00 [14:46:53]Write to MH i2c: E2 08 00 10 0C 80 13 01 00 00 00 00 00 99 [14:46:53]Write i2c OK [14:46:53]MH_I2C_Read... [14:46:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:53]Read from MH i2c: E2 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: E2 0E 00 [14:46:53]MH_I2C_Read... [14:46:53]Read from MH i2c: E2 0E 00 10 0C 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 9F [14:46:53]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [14:46:53]wFMCommunicate OK [14:46:53]SAM_PROTO_GetShiftState done [14:46:53]FM_GetShiftState done [14:46:53]opened in 1729383220 [14:46:53]opened+sec_in_day 1729469620 [14:46:53]quantity*price = 200031 [14:46:53]sum+1 = 200032 [14:46:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.31 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.31 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 236 20.10.2024 14:46 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69391 ФПД: 131882854743321 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T144653&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69391&fm=131882854743321&tin=02508201610067®Number=0000000000156251&sum=200031 [14:46:54]StoreToDocumentArchive [14:46:54]shift 193 fd 69391 [14:46:54]save to /storage/0193/doc_00069391 [14:46:54]save last doc name /storage/0193/doc_00069391 to /storage/kkm_last_doc_name [14:46:54]save OK [14:46:54]Clear old archive folders... [14:46:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:46:54]tlvbuf is 0023EEF0 [14:46:54]SAM_PROTO_ClearQueue [14:46:54]wFMCommunicate request_size=4 [14:46:54]MH_SAM_APDU [14:46:54]CAPDU: 80 09 00 00 [14:46:54]Write to MH i2c: E2 08 00 1D 0C 80 09 00 00 00 00 00 00 9B [14:46:54]Write i2c OK [14:46:54]MH_I2C_Read... [14:46:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:54]Read from MH i2c: E2 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: E2 03 00 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: E2 03 00 1D 0C 00 90 00 9D [14:46:54]RAPDU: 90 00 [14:46:54]wFMCommunicate OK [14:46:54]SAM_PROTO_ClearQueue done [14:46:54]KKMCreateOFDPacket [14:46:54]OFDProtocolAddRootSTLVToBuf [14:46:54]FM_MakeSignedData [14:46:54]FM_MakeSignedData [14:46:54]SAM_PROTO_SignData [14:46:54]wFMCommunicate request_size=4 [14:46:54]MH_SAM_APDU [14:46:54]CAPDU: 80 0D 01 02 [14:46:54]Write to MH i2c: E2 08 00 1E 0C 80 0D 01 02 00 00 00 00 A3 [14:46:54]Write i2c OK [14:46:54]MH_I2C_Read... [14:46:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:54]Read from MH i2c: E2 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: E2 03 00 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: E2 03 00 1E 0C 00 90 00 9E [14:46:54]RAPDU: 90 00 [14:46:54]wFMCommunicate OK [14:46:54]wFMCommunicate request_size=255 [14:46:54]MH_SAM_APDU [14:46: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 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 DD 17 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0F 0F 01 00 35 04 06 00 77 [14:46:54]Write to MH i2c: E2 02 01 1F 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 DD 17 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0F 0F 01 00 35 04 06 00 77 00 00 5F [14:46:54]Write i2c OK [14:46:54]MH_I2C_Read... [14:46:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:54]Read from MH i2c: E2 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: E2 03 00 [14:46:54]MH_I2C_Read... [14:46:54]Read from MH i2c: E2 03 00 1F 0C 00 90 00 9F [14:46:54]RAPDU: 90 00 [14:46:54]wFMCommunicate OK [14:46:54]wFMCommunicate request_size=10 [14:46:54]MH_SAM_APDU [14:46:54]CAPDU: 80 0D 02 02 05 F2 5E B5 7D 19 [14:46:54]Write to MH i2c: E2 0D 00 20 0C 80 0D 02 02 05 00 F2 5E B5 7D 19 00 00 4B [14:46:54]Write i2c OK [14:46:54]MH_I2C_Read... [14:46:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:55]Read from MH i2c: E2 [14:46:55]MH_I2C_Read... [14:46:55]Read from MH i2c: E2 03 00 [14:46:55]MH_I2C_Read... [14:46:55]Read from MH i2c: E2 03 00 20 0C 00 90 00 A0 [14:46:55]RAPDU: 90 00 [14:46:55]wFMCommunicate OK [14:46:55]wFMCommunicate request_size=4 [14:46:55]MH_SAM_APDU [14:46:55]CAPDU: 80 0D 03 02 [14:46:55]Write to MH i2c: E2 08 00 21 0C 80 0D 03 02 00 00 00 00 A8 [14:46:55]Write i2c OK [14:46:55]MH_I2C_Read... [14:46:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:55]Read from MH i2c: E2 [14:46:55]MH_I2C_Read... [14:46:55]Read from MH i2c: E2 0B 00 [14:46:55]MH_I2C_Read... [14:46:55]Read from MH i2c: E2 0B 00 21 0C 00 49 19 E0 37 B8 1C FF EF 90 00 E4 [14:46:55]RAPDU: 49 19 E0 37 B8 1C FF EF 90 00 [14:46:55]wFMCommunicate OK [14:46:55]SAM_PROTO_SignData done [14:46:55]FM_MakeSignedData done [14:46:55]CreateOFDProtocolMessage [14:46:55]wFMCommunicate request_size=4 [14:46:55]MH_SAM_APDU [14:46:55]CAPDU: 80 11 00 00 [14:46:55]Write to MH i2c: E2 08 00 22 0C 80 11 00 00 00 00 00 00 A8 [14:46:55]Write i2c OK [14:46:55]MH_I2C_Read... [14:46:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:55]Read from MH i2c: E2 [14:46:55]MH_I2C_Read... [14:46:55]Read from MH i2c: E2 17 00 [14:46:55]MH_I2C_Read... [14:46:55]Read from MH i2c: E2 17 00 22 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FA [14:46:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:46:55]wFMCommunicate OK [14:46:55]CreateOFDProtocolMessage done [14:46:55]OFDSenderStorePacket 69391 [14:46:55]StoreOFDPacket docnum=69391 [14:46:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 18 D3 07 01 CB 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 DD 17 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0F 0F 01 00 35 04 06 00 77 F2 5E B5 7D 19 49 19 E0 37 B8 1C FF EF [14:46:55]CheckFolder [14:46:55]dirname=/storage/ofd_packets [14:46:55]CheckFolder done [14:46:55]ProducePacketName [14:46:55]name=ofd_packets/00069391 [14:46:55]NVStorageSaveData ofd_packets/00069391 [14:46:55]File name is /storage/ofd_packets/00069391 [14:46:55]Write 301 bytes [14:46:55]NVStorageSaveData done [14:46:55]OFDSenderStorePacket done [14:46:55]KKMCreateOFDPacket done [14:46:55]NVStorageSaveData kkm_last_timestamp [14:46:55]File name is /storage/kkm_last_timestamp [14:46:55]Write 4 bytes [14:46:55]NVStorageSaveData done [14:46:55]ExternCall_PrintAddStr [14:46:55]wPrintStart [14:46:55]Write to MH i2c: 01 00 00 23 0C 2F [14:46:55]Write i2c OK [14:46:55]MH_I2C_Read... [14:46:55]Read from MH i2c: 01 [14:46:55]MH_I2C_Read... [14:46:55]Read from MH i2c: 01 07 00 [14:46:55]MH_I2C_Read... [14:46:55]Read from MH i2c: 01 07 00 23 0C 00 00 00 00 00 FF 0F 44 [14:46:55]RasterBufferAndPrint [14:46:55]line Счет N : (1)2885116 [14:46:55]line ИНН: 02508201610067 [14:46:55]line Контрольно-Кассовый Чек [14:46:55]line ПРОДАЖА [14:46:55]line ТРК (МРК, ГНК) : 32 [14:46:55]line Товар: 2710124130 [14:46:55]line Аи-92-К-5 [14:46:55]line 29.900 * 66.90 [14:46:55]line = 2000.31 [14:46:55]line НДС 12% НСП 1% [14:46:55]line > о реализуемом товаре [14:46:55]line ИТОГО: 2000.31 [14:46:55]line НСП 1% : 17.70 [14:46:55]line НДС 12% : 212.42 [14:46:55]line Наличными: 0.00 [14:46:55]line Безнал.: 2000.31 [14:46:55]line Место: АЗС № 85 "Партнер Нефть" [14:46:55]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:46:55]line СНО: Общий режим [14:46:55]line Чек 236 20.10.2024 14:46 [14:46:55]line Смена: 193 ФФД: 1.0 [14:46:55]line ЗНМ: 0300000167 [14:46:55]line РНМ: 0000000000156251 [14:46:55]line Версия ККМ: v1.0 [14:46:55]line Платежная система: Mbank [14:46:55]line ФМ: 0000000000963346 [14:46:55]line ФД: 69391 [14:46:55]line ФПД: 131882854743321 [14:46:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T144653&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69391&fm=131882854743321&tin=02508201610067®Number=0000000000156251&sum=200031 [14:46:55]OFD Sender: Processing packet 69391 [packets to send 18, broken 17] [14:46:55]ProducePacketName [14:46:55]name=ofd_packets/00069391 [14:46:55]OFD Sender: To server: pG, [14:46:55]CommunicateWithHost lk.salyk.kg:30040 [14:46:55]ConnectInit lk.salyk.kg [14:46:55]written 0, free lines is 4095 [14:46:55]Write to MH i2c: 01 00 00 4C 0C 58 [14:46:55]Write i2c OK [14:46:55]MH_I2C_Read... [14:46:55]Read from MH i2c: 01 [14:46:55]MH_I2C_Read... [14:46:55]Read from MH i2c: 01 07 00 [14:46:55]MH_I2C_Read... [14:46:55]Read from MH i2c: 01 07 00 4C 0C 00 00 00 00 00 11 0D 7D [14:46:55]RasterBufferAndPrint [14:46:55]line [14:46:55]line [14:46:55]line [14:46:55]line [14:46:55]line [14:46:55]written 0, free lines is 3351 [14:46:55]MH_Cut [14:46:55]Write to MH i2c: D1 01 00 53 0C 01 31 [14:46:55]Write i2c OK [14:46:55]MH_I2C_Read... [14:46:55]Read from MH i2c: D1 [14:46:55]MH_I2C_Read... [14:46:55]Read from MH i2c: D1 01 00 [14:46:55]MH_I2C_Read... [14:46:55]Read from MH i2c: D1 01 00 53 0C 00 30 [14:46:55]Write to MH i2c: 01 00 00 54 0C 60 [14:46:55]Write i2c OK [14:46:55]MH_I2C_Read... [14:46:56]*** Cut start [14:46:56]*** Partial cut [14:46:56]*** CUTSNS_PIN = 1 [14:46:56]*** CUTSNS_PIN = 0 [14:46:56]*** Brake cut motor [14:46:57]Read from MH i2c: 01 [14:46:57]MH_I2C_Read... [14:46:57]*** Stop cut motor [14:46:57]*** Cut end [14:46:57]Read from MH i2c: 01 07 00 [14:46:57]MH_I2C_Read... [14:46:57]Read from MH i2c: 01 07 00 54 0C 00 00 00 00 00 FF 0F 75 [14:46:57]process_action close_receipt done [14:46:57]requested_data is exist [14:46:57]produce_requested_data [14:46:57]requested_item fm.sn is exist - process it [14:46:57]wFMCommunicate request_size=4 [14:46:57]MH_SAM_APDU [14:46:57]CAPDU: 80 11 00 00 [14:46:57]Write to MH i2c: E2 08 00 55 0C 80 11 00 00 00 00 00 00 DB [14:46:57]Write i2c OK [14:46:57]MH_I2C_Read... [14:46:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:57]Read from MH i2c: E2 [14:46:57]MH_I2C_Read... [14:46:57]Read from MH i2c: E2 17 00 [14:46:57]MH_I2C_Read... [14:46:57]Read from MH i2c: E2 17 00 55 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2D [14:46:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:46:57]wFMCommunicate OK [14:46:57]requested_item fd.num is exist - process it [14:46:57]SAM_PROTO_GetFieldsCounters [14:46:57]wFMCommunicate request_size=4 [14:46:57]MH_SAM_APDU [14:46:57]CAPDU: 80 13 00 00 [14:46:57]Write to MH i2c: E2 08 00 56 0C 80 13 00 00 00 00 00 00 DE [14:46:57]Write i2c OK [14:46:57]MH_I2C_Read... [14:46:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:57]Read from MH i2c: E2 [14:46:57]MH_I2C_Read... [14:46:57]Read from MH i2c: E2 62 00 [14:46:57]MH_I2C_Read... [14:46:57]Read from MH i2c: E2 62 00 56 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0F 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [14:46:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 0F 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:46:57]wFMCommunicate OK [14:46:57]SAM_PROTO_GetFieldsCounters done [14:46:57]requested_item shift.num is exist - process it [14:46:57]requested_item shift.opened is exist - process it [14:46:57]req_shift_opened [14:46:57]FM_GetShiftState [14:46:57]SAM_PROTO_GetShiftState [14:46:57]wFMCommunicate request_size=4 [14:46:57]MH_SAM_APDU [14:46:57]CAPDU: 80 13 01 00 [14:46:57]Write to MH i2c: E2 08 00 57 0C 80 13 01 00 00 00 00 00 E0 [14:46:57]Write i2c OK [14:46:57]MH_I2C_Read... [14:46:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:57]Read from MH i2c: E2 [14:46:57]MH_I2C_Read... [14:46:57]Read from MH i2c: E2 0E 00 [14:46:57]MH_I2C_Read... [14:46:57]Read from MH i2c: E2 0E 00 57 0C 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 E6 [14:46:57]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [14:46:57]wFMCommunicate OK [14:46:57]SAM_PROTO_GetShiftState done [14:46:57]FM_GetShiftState done [14:46:57]req_shift_opened done [14:46:57]requested_item shift.open_date is exist - process it [14:46:57]req_shift_open_date [14:46:57]req_shift_open_date done [14:46:57]produce_requested_data done [14:46:57]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69391,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [14:46:57]process_action_free close_receipt [14:46:57]json_value_free [14:46:57]json_value_free done [14:46:57]process_json_proto returns [14:46:57]Send response to host [14:46:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69391,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [14:46:57]free response buf [14:46:57]execute_script done [14:46:57]execute_script returns [14:46:57]free content buf [14:46:57]Sock 9.Close socket [14:46:57]Sock 9.Thread stoped [14:49:07]ConnectInit Can't connect to host [14:49:07]CommunicateWithHost connect error [14:49:07]CommunicateWithHost err = -1 [14:49:07]OFD Sender: Server communicate error [14:49:12]OFD Sender: Processing packet 69391 [packets to send 18, broken 17] [14:49:12]ProducePacketName [14:49:12]name=ofd_packets/00069391 [14:49:12]OFD Sender: To server: pG, [14:49:12]CommunicateWithHost lk.salyk.kg:30040 [14:49:12]ConnectInit lk.salyk.kg [14:49:12]Connected sock=9 [14:49:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 18 D3 07 01 CB 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 DD 17 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0F 0F 01 00 35 04 06 00 77 F2 5E B5 7D 19 49 19 E0 37 B8 1C FF EF [14:49:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 59 26 47 00 3B FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 0F 0F 01 00 F4 03 04 00 0D C2 14 67 B6 04 01 00 00 97 2E 46 34 A9 E0 A4 54 [14:49:12]CommunicateWithHost err = 0 [14:49:12]CheckOFDResponse [14:49:12]1017 (14) - 77093643461234 [14:49:12]1041 (16) - 0000000000963346 [14:49:12]1040 (4) - 69391 [14:49:12]1012 (4) - 20.10.2024 08:40 [14:49:12]1206 (1) - 0 [14:49:12]OFD Sender: Remove packet 69391 [14:49:12]ProducePacketName [14:49:12]name=ofd_packets/00069391 [14:49:12]NVStorageDeleteData [14:49:13]OFD Sender: No OFD packet to send [14:49:18]OFD Sender: No OFD packet to send [14:49:23]OFD Sender: No OFD packet to send [14:49:28]OFD Sender: No OFD packet to send [14:49:33]OFD Sender: No OFD packet to send [14:49:38]OFD Sender: No OFD packet to send [14:49:43]OFD Sender: No OFD packet to send [14:49:48]OFD Sender: No OFD packet to send [14:49:52]accept exits with 8 [14:49:52]New connection [14:49:52]New thread 3066711396 created [14:49:52]Thread 3066568036 joined [14:49:52]Waiting for new connection... [14:49:52] Sock 8.Parse request [14:49:52]Sock 8.Check first char [14:49:52]Sock 8.First char is OK [14:49:52]request: POST /json_proto HTTP/1.0 [14:49:52]Method: POST [14:49:52]URL: /json_proto [14:49:52]Method is POST - this is cgi request [14:49:52]url: /json_proto [14:49:52]query_string will be loaded in cgi processing [14:49:52]execute_cgi json_proto POST (null) [14:49:52]execute_cgi path=json_proto method=POST [14:49:52]POST find Content-Length [14:49:52]Host: 172.17.50.3:8080 [14:49:52]Content-Length: 678 [14:49:52]Content-Type: application/json [14:49:52] [14:49:52]POST finish read [14:49:52]Found Content-Length = 678 [14:49:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:52]execute_script... [14:49: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)2885117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:52]POST & json_proto [14:49:52]process_json_proto [14:49:52]json parsed OK: [14:49:52]protocol is kg_v1.0 [14:49:52]action value=close_receipt [14:49:52]process_action close_receipt [14:49:52]cmd_close_receipt [14:49:52]MH_GetDate [14:49:52]Write to MH i2c: F0 00 00 58 0C 53 [14:49:52]Write i2c OK [14:49:52]MH_I2C_Read... [14:49:52]Read from MH i2c: F0 [14:49:52]MH_I2C_Read... [14:49:52]Read from MH i2c: F0 09 00 [14:49:52]MH_I2C_Read... [14:49:52]Read from MH i2c: F0 09 00 58 0C 00 91 18 15 67 6B 98 1E 66 08 [14:49:52]GetLastDocTimeStamp 1729435613 [14:49:52]current date 1729435793 [14:49:52]FM_GetShiftState [14:49:52]SAM_PROTO_GetShiftState [14:49:52]wFMCommunicate request_size=4 [14:49:52]MH_SAM_APDU [14:49:52]CAPDU: 80 13 01 00 [14:49:52]Write to MH i2c: E2 08 00 59 0C 80 13 01 00 00 00 00 00 E2 [14:49:52]Write i2c OK [14:49:52]MH_I2C_Read... [14:49:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:52]Read from MH i2c: E2 [14:49:52]MH_I2C_Read... [14:49:52]Read from MH i2c: E2 0E 00 [14:49:52]MH_I2C_Read... [14:49:52]Read from MH i2c: E2 0E 00 59 0C 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 E8 [14:49:52]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [14:49:52]wFMCommunicate OK [14:49:52]SAM_PROTO_GetShiftState done [14:49:52]FM_GetShiftState done [14:49:52]opened in 1729383220 [14:49:52]opened+sec_in_day 1729469620 [14:49:52]quantity*price = 70044 [14:49:52]sum+1 = 70046 [14:49:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 237 20.10.2024 14:49 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69392 ФПД: 191691693397762 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T144953&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69392&fm=191691693397762&tin=02508201610067®Number=0000000000156251&sum=70000 [14:49:53]StoreToDocumentArchive [14:49:53]shift 193 fd 69392 [14:49:53]save to /storage/0193/doc_00069392 [14:49:53]save last doc name /storage/0193/doc_00069392 to /storage/kkm_last_doc_name [14:49:53]save OK [14:49:53]Clear old archive folders... [14:49:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:49:53]tlvbuf is 001E2D00 [14:49:53]SAM_PROTO_ClearQueue [14:49:53]wFMCommunicate request_size=4 [14:49:53]MH_SAM_APDU [14:49:53]CAPDU: 80 09 00 00 [14:49:53]Write to MH i2c: E2 08 00 66 0C 80 09 00 00 00 00 00 00 E4 [14:49:53]Write i2c OK [14:49:53]MH_I2C_Read... [14:49:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:53]Read from MH i2c: E2 [14:49:53]MH_I2C_Read... [14:49:53]Read from MH i2c: E2 03 00 [14:49:53]MH_I2C_Read... [14:49:53]Read from MH i2c: E2 03 00 66 0C 00 90 00 E6 [14:49:53]RAPDU: 90 00 [14:49:53]wFMCommunicate OK [14:49:53]SAM_PROTO_ClearQueue done [14:49:53]KKMCreateOFDPacket [14:49:53]OFDProtocolAddRootSTLVToBuf [14:49:53]FM_MakeSignedData [14:49:53]FM_MakeSignedData [14:49:53]SAM_PROTO_SignData [14:49:53]wFMCommunicate request_size=4 [14:49:53]MH_SAM_APDU [14:49:53]CAPDU: 80 0D 01 02 [14:49:53]Write to MH i2c: E2 08 00 67 0C 80 0D 01 02 00 00 00 00 EC [14:49:53]Write i2c OK [14:49:53]MH_I2C_Read... [14:49:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:54]Read from MH i2c: E2 [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: E2 03 00 [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: E2 03 00 67 0C 00 90 00 E7 [14:49:54]RAPDU: 90 00 [14:49:54]wFMCommunicate OK [14:49:54]wFMCommunicate request_size=255 [14:49:54]MH_SAM_APDU [14:49: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 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 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 91 18 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 10 0F 01 00 35 04 06 00 AE [14:49:54]Write to MH i2c: E2 02 01 68 0C 80 0D 02 02 FA 00 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 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 91 18 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 10 0F 01 00 35 04 06 00 AE 00 00 FD [14:49:54]Write i2c OK [14:49:54]MH_I2C_Read... [14:49:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:54]Read from MH i2c: E2 [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: E2 03 00 [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: E2 03 00 68 0C 00 90 00 E8 [14:49:54]RAPDU: 90 00 [14:49:54]wFMCommunicate OK [14:49:54]wFMCommunicate request_size=10 [14:49:54]MH_SAM_APDU [14:49:54]CAPDU: 80 0D 02 02 05 57 B3 4A 97 02 [14:49:54]Write to MH i2c: E2 0D 00 69 0C 80 0D 02 02 05 00 57 B3 4A 97 02 00 00 E6 [14:49:54]Write i2c OK [14:49:54]MH_I2C_Read... [14:49:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:54]Read from MH i2c: E2 [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: E2 03 00 [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: E2 03 00 69 0C 00 90 00 E9 [14:49:54]RAPDU: 90 00 [14:49:54]wFMCommunicate OK [14:49:54]wFMCommunicate request_size=4 [14:49:54]MH_SAM_APDU [14:49:54]CAPDU: 80 0D 03 02 [14:49:54]Write to MH i2c: E2 08 00 6A 0C 80 0D 03 02 00 00 00 00 F1 [14:49:54]Write i2c OK [14:49:54]MH_I2C_Read... [14:49:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:49:54]Read from MH i2c: E2 [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: E2 0B 00 [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: E2 0B 00 6A 0C 00 C5 33 4D 6D 94 C9 C3 AA 90 00 6E [14:49:54]RAPDU: C5 33 4D 6D 94 C9 C3 AA 90 00 [14:49:54]wFMCommunicate OK [14:49:54]SAM_PROTO_SignData done [14:49:54]FM_MakeSignedData done [14:49:54]CreateOFDProtocolMessage [14:49:54]wFMCommunicate request_size=4 [14:49:54]MH_SAM_APDU [14:49:54]CAPDU: 80 11 00 00 [14:49:54]Write to MH i2c: E2 08 00 6B 0C 80 11 00 00 00 00 00 00 F1 [14:49:54]Write i2c OK [14:49:54]MH_I2C_Read... [14:49:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:54]Read from MH i2c: E2 [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: E2 17 00 [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: E2 17 00 6B 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 43 [14:49:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:49:54]wFMCommunicate OK [14:49:54]CreateOFDProtocolMessage done [14:49:54]OFDSenderStorePacket 69392 [14:49:54]StoreOFDPacket docnum=69392 [14:49:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 7A 99 07 01 A8 8A 5A 03 01 00 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 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 91 18 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 10 0F 01 00 35 04 06 00 AE 57 B3 4A 97 02 C5 33 4D 6D 94 C9 C3 AA [14:49:54]CheckFolder [14:49:54]dirname=/storage/ofd_packets [14:49:54]CheckFolder done [14:49:54]ProducePacketName [14:49:54]name=ofd_packets/00069392 [14:49:54]NVStorageSaveData ofd_packets/00069392 [14:49:54]File name is /storage/ofd_packets/00069392 [14:49:54]Write 301 bytes [14:49:54]NVStorageSaveData done [14:49:54]OFDSenderStorePacket done [14:49:54]KKMCreateOFDPacket done [14:49:54]NVStorageSaveData kkm_last_timestamp [14:49:54]File name is /storage/kkm_last_timestamp [14:49:54]Write 4 bytes [14:49:54]NVStorageSaveData done [14:49:54]ExternCall_PrintAddStr [14:49:54]wPrintStart [14:49:54]Write to MH i2c: 01 00 00 6C 0C 78 [14:49:54]Write i2c OK [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: 01 [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: 01 07 00 [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: 01 07 00 6C 0C 00 00 00 00 00 FF 0F 8D [14:49:54]RasterBufferAndPrint [14:49:54]line Счет N : (1)2885117 [14:49:54]line ИНН: 02508201610067 [14:49:54]line Контрольно-Кассовый Чек [14:49:54]line ПРОДАЖА [14:49:54]line ТРК (МРК, ГНК) : 13 [14:49:54]line Товар: 2710124500 [14:49:54]line Аи-95-К-5 [14:49:54]line 9.440 * 74.20 [14:49:54]line = 700.45 [14:49:54]line НДС 12% НСП 1% [14:49:54]line > о реализуемом товаре [14:49:54]line ОКРУГЛЕНИЕ: -0.45 [14:49:54]line ИТОГО: 700.00 [14:49:54]line Внесено: 700.00 [14:49:54]line СДАЧА: 0.00 [14:49:54]line НСП 1% : 6.20 [14:49:54]line НДС 12% : 74.38 [14:49:54]line Наличными: 700.00 [14:49:54]line Безнал.: 0.00 [14:49:54]line Место: АЗС № 85 "Партнер Нефть" [14:49:54]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:49:54]line СНО: Общий режим [14:49:54]line Чек 237 20.10.2024 14:49 [14:49:54]line Смена: 193 ФФД: 1.0 [14:49:54]line ЗНМ: 0300000167 [14:49:54]line РНМ: 0000000000156251 [14:49:54]line Версия ККМ: v1.0 [14:49:54]line ФМ: 0000000000963346 [14:49:54]line ФД: 69392 [14:49:54]line ФПД: 191691693397762 [14:49:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T144953&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69392&fm=191691693397762&tin=02508201610067®Number=0000000000156251&sum=70000 [14:49:54]OFD Sender: Processing packet 69392 [packets to send 18, broken 17] [14:49:54]ProducePacketName [14:49:54]name=ofd_packets/00069392 [14:49:54]OFD Sender: To server: pG, [14:49:54]CommunicateWithHost lk.salyk.kg:30040 [14:49:54]ConnectInit lk.salyk.kg [14:49:54]written 0, free lines is 4095 [14:49:54]Connected sock=10 [14:49:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 7A 99 07 01 A8 8A 5A 03 01 00 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 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 91 18 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 10 0F 01 00 35 04 06 00 AE 57 B3 4A 97 02 C5 33 4D 6D 94 C9 C3 AA [14:49:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 72 40 47 00 5E 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 10 0F 01 00 F4 03 04 00 37 C2 14 67 B6 04 01 00 00 A4 2B 92 53 10 0D A1 E6 [14:49:55]CommunicateWithHost err = 0 [14:49:55]CheckOFDResponse [14:49:55]1017 (14) - 77093643461234 [14:49:55]1041 (16) - 0000000000963346 [14:49:55]1040 (4) - 69392 [14:49:55]1012 (4) - 20.10.2024 08:41 [14:49:55]1206 (1) - 0 [14:49:55]OFD Sender: Remove packet 69392 [14:49:55]ProducePacketName [14:49:55]name=ofd_packets/00069392 [14:49:55]NVStorageDeleteData [14:49:55]Write to MH i2c: 01 00 00 97 0C A3 [14:49:55]Write i2c OK [14:49:55]MH_I2C_Read... [14:49:55]Read from MH i2c: 01 [14:49:55]MH_I2C_Read... [14:49:55]Read from MH i2c: 01 07 00 [14:49:55]MH_I2C_Read... [14:49:55]Read from MH i2c: 01 07 00 97 0C 00 00 00 00 00 ED 0C A3 [14:49:55]RasterBufferAndPrint [14:49:55]line [14:49:55]line [14:49:55]line [14:49:55]line [14:49:55]line [14:49:55]written 0, free lines is 3315 [14:49:55]MH_Cut [14:49:55]Write to MH i2c: D1 01 00 9E 0C 01 7C [14:49:55]Write i2c OK [14:49:55]MH_I2C_Read... [14:49:55]Read from MH i2c: D1 [14:49:55]MH_I2C_Read... [14:49:55]Read from MH i2c: D1 01 00 [14:49:55]MH_I2C_Read... [14:49:55]Read from MH i2c: D1 01 00 9E 0C 00 7B [14:49:55]Write to MH i2c: 01 00 00 9F 0C AB [14:49:55]Write i2c OK [14:49:55]MH_I2C_Read... [14:49:55]OFD Sender: No OFD packet to send [14:49:55]*** Cut start [14:49:55]*** Partial cut [14:49:55]*** CUTSNS_PIN = 1 [14:49:55]*** CUTSNS_PIN = 0 [14:49:56]*** Brake cut motor [14:49:56]Read from MH i2c: 01 [14:49:56]MH_I2C_Read... [14:49:56]*** Stop cut motor [14:49:56]*** Cut end [14:49:56]Read from MH i2c: 01 07 00 [14:49:56]MH_I2C_Read... [14:49:56]Read from MH i2c: 01 07 00 9F 0C 00 00 00 00 00 FF 0F C0 [14:49:56]process_action close_receipt done [14:49:56]requested_data is exist [14:49:56]produce_requested_data [14:49:56]requested_item fm.sn is exist - process it [14:49:56]wFMCommunicate request_size=4 [14:49:56]MH_SAM_APDU [14:49:56]CAPDU: 80 11 00 00 [14:49:56]Write to MH i2c: E2 08 00 A0 0C 80 11 00 00 00 00 00 00 26 [14:49:56]Write i2c OK [14:49:56]MH_I2C_Read... [14:49:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:56]Read from MH i2c: E2 [14:49:56]MH_I2C_Read... [14:49:56]Read from MH i2c: E2 17 00 [14:49:56]MH_I2C_Read... [14:49:56]Read from MH i2c: E2 17 00 A0 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 78 [14:49:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:49:56]wFMCommunicate OK [14:49:56]requested_item fd.num is exist - process it [14:49:56]SAM_PROTO_GetFieldsCounters [14:49:56]wFMCommunicate request_size=4 [14:49:56]MH_SAM_APDU [14:49:56]CAPDU: 80 13 00 00 [14:49:56]Write to MH i2c: E2 08 00 A1 0C 80 13 00 00 00 00 00 00 29 [14:49:56]Write i2c OK [14:49:56]MH_I2C_Read... [14:49:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:56]Read from MH i2c: E2 [14:49:56]MH_I2C_Read... [14:49:56]Read from MH i2c: E2 62 00 [14:49:56]MH_I2C_Read... [14:49:56]Read from MH i2c: E2 62 00 A1 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 10 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [14:49:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 10 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:49:56]wFMCommunicate OK [14:49:56]SAM_PROTO_GetFieldsCounters done [14:49:56]requested_item shift.num is exist - process it [14:49:56]requested_item shift.opened is exist - process it [14:49:56]req_shift_opened [14:49:56]FM_GetShiftState [14:49:56]SAM_PROTO_GetShiftState [14:49:56]wFMCommunicate request_size=4 [14:49:56]MH_SAM_APDU [14:49:56]CAPDU: 80 13 01 00 [14:49:56]Write to MH i2c: E2 08 00 A2 0C 80 13 01 00 00 00 00 00 2B [14:49:56]Write i2c OK [14:49:56]MH_I2C_Read... [14:49:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:56]Read from MH i2c: E2 [14:49:56]MH_I2C_Read... [14:49:56]Read from MH i2c: E2 0E 00 [14:49:56]MH_I2C_Read... [14:49:56]Read from MH i2c: E2 0E 00 A2 0C 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 31 [14:49:56]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [14:49:56]wFMCommunicate OK [14:49:56]SAM_PROTO_GetShiftState done [14:49:56]FM_GetShiftState done [14:49:56]req_shift_opened done [14:49:56]requested_item shift.open_date is exist - process it [14:49:56]req_shift_open_date [14:49:56]req_shift_open_date done [14:49:56]produce_requested_data done [14:49:56]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69392,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [14:49:56]process_action_free close_receipt [14:49:56]json_value_free [14:49:56]json_value_free done [14:49:56]process_json_proto returns [14:49:56]Send response to host [14:49:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69392,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [14:49:56]free response buf [14:49:56]execute_script done [14:49:56]execute_script returns [14:49:56]free content buf [14:49:56]Sock 8.Close socket [14:49:56]Sock 8.Thread stoped [14:50:00]OFD Sender: No OFD packet to send [14:50:05]OFD Sender: No OFD packet to send [14:50:10]OFD Sender: No OFD packet to send [14:50:15]OFD Sender: No OFD packet to send [14:50:16]accept exits with 9 [14:50:16]New connection [14:50:16]New thread 3066568036 created [14:50:16]Thread 3066711396 joined [14:50:16]Waiting for new connection... [14:50:16] Sock 9.Parse request [14:50:16]Sock 9.Check first char [14:50:16]Sock 9.First char is OK [14:50:16]request: POST /json_proto HTTP/1.0 [14:50:16]Method: POST [14:50:16]URL: /json_proto [14:50:16]Method is POST - this is cgi request [14:50:16]url: /json_proto [14:50:16]query_string will be loaded in cgi processing [14:50:16]execute_cgi json_proto POST (null) [14:50:16]execute_cgi path=json_proto method=POST [14:50:16]POST find Content-Length [14:50:16]Host: 172.17.50.3:8080 [14:50:16]Content-Length: 683 [14:50:16]Content-Type: application/json [14:50:16] [14:50:16]POST finish read [14:50:16]Found Content-Length = 683 [14:50:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:16]execute_script... [14:50: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)2885118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:16]POST & json_proto [14:50:16]process_json_proto [14:50:16]json parsed OK: [14:50:16]protocol is kg_v1.0 [14:50:16]action value=close_receipt [14:50:16]process_action close_receipt [14:50:16]cmd_close_receipt [14:50:16]MH_GetDate [14:50:16]Write to MH i2c: F0 00 00 A3 0C 9E [14:50:16]Write i2c OK [14:50:16]MH_I2C_Read... [14:50:16]Read from MH i2c: F0 [14:50:16]MH_I2C_Read... [14:50:16]Read from MH i2c: F0 09 00 [14:50:16]MH_I2C_Read... [14:50:16]Read from MH i2c: F0 09 00 A3 0C 00 A9 18 15 67 6B 98 1E 66 6B [14:50:16]GetLastDocTimeStamp 1729435793 [14:50:16]current date 1729435817 [14:50:16]FM_GetShiftState [14:50:16]SAM_PROTO_GetShiftState [14:50:16]wFMCommunicate request_size=4 [14:50:16]MH_SAM_APDU [14:50:16]CAPDU: 80 13 01 00 [14:50:16]Write to MH i2c: E2 08 00 A4 0C 80 13 01 00 00 00 00 00 2D [14:50:16]Write i2c OK [14:50:16]MH_I2C_Read... [14:50:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:16]Read from MH i2c: E2 [14:50:16]MH_I2C_Read... [14:50:16]Read from MH i2c: E2 0E 00 [14:50:16]MH_I2C_Read... [14:50:16]Read from MH i2c: E2 0E 00 A4 0C 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 33 [14:50:16]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [14:50:16]wFMCommunicate OK [14:50:16]SAM_PROTO_GetShiftState done [14:50:16]FM_GetShiftState done [14:50:16]opened in 1729383220 [14:50:16]opened+sec_in_day 1729469620 [14:50:16]quantity*price = 150056 [14:50:16]sum+1 = 150058 [14:50:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 238 20.10.2024 14:50 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69393 ФПД: 216220609667285 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T145017&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69393&fm=216220609667285&tin=02508201610067®Number=0000000000156251&sum=150000 [14:50:18]StoreToDocumentArchive [14:50:18]shift 193 fd 69393 [14:50:18]save to /storage/0193/doc_00069393 [14:50:18]save last doc name /storage/0193/doc_00069393 to /storage/kkm_last_doc_name [14:50:18]save OK [14:50:18]Clear old archive folders... [14:50:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:50:18]tlvbuf is 0024E4D0 [14:50:18]SAM_PROTO_ClearQueue [14:50:18]wFMCommunicate request_size=4 [14:50:18]MH_SAM_APDU [14:50:18]CAPDU: 80 09 00 00 [14:50:18]Write to MH i2c: E2 08 00 B1 0C 80 09 00 00 00 00 00 00 2F [14:50:18]Write i2c OK [14:50:18]MH_I2C_Read... [14:50:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:50:18]Read from MH i2c: E2 [14:50:18]MH_I2C_Read... [14:50:18]Read from MH i2c: E2 03 00 [14:50:18]MH_I2C_Read... [14:50:18]Read from MH i2c: E2 03 00 B1 0C 00 90 00 31 [14:50:18]RAPDU: 90 00 [14:50:18]wFMCommunicate OK [14:50:18]SAM_PROTO_ClearQueue done [14:50:18]KKMCreateOFDPacket [14:50:18]OFDProtocolAddRootSTLVToBuf [14:50:18]FM_MakeSignedData [14:50:18]FM_MakeSignedData [14:50:18]SAM_PROTO_SignData [14:50:18]wFMCommunicate request_size=4 [14:50:18]MH_SAM_APDU [14:50:18]CAPDU: 80 0D 01 02 [14:50:18]Write to MH i2c: E2 08 00 B2 0C 80 0D 01 02 00 00 00 00 37 [14:50:18]Write i2c OK [14:50:18]MH_I2C_Read... [14:50:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:50:18]Read from MH i2c: E2 [14:50:18]MH_I2C_Read... [14:50:18]Read from MH i2c: E2 03 00 [14:50:18]MH_I2C_Read... [14:50:18]Read from MH i2c: E2 03 00 B2 0C 00 90 00 32 [14:50:18]RAPDU: 90 00 [14:50:18]wFMCommunicate OK [14:50:18]wFMCommunicate request_size=255 [14:50:18]MH_SAM_APDU [14:50:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 A9 18 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 11 0F 01 00 35 04 06 00 C4 [14:50:18]Write to MH i2c: E2 02 01 B3 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 A9 18 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 11 0F 01 00 35 04 06 00 C4 00 00 DA [14:50:18]Write i2c OK [14:50:18]MH_I2C_Read... [14:50:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:18]Read from MH i2c: E2 [14:50:18]MH_I2C_Read... [14:50:18]Read from MH i2c: E2 03 00 [14:50:18]MH_I2C_Read... [14:50:18]Read from MH i2c: E2 03 00 B3 0C 00 90 00 33 [14:50:18]RAPDU: 90 00 [14:50:18]wFMCommunicate OK [14:50:18]wFMCommunicate request_size=10 [14:50:18]MH_SAM_APDU [14:50:18]CAPDU: 80 0D 02 02 05 A6 C8 A1 E0 D5 [14:50:18]Write to MH i2c: E2 0D 00 B4 0C 80 0D 02 02 05 00 A6 C8 A1 E0 D5 00 00 08 [14:50:18]Write i2c OK [14:50:18]MH_I2C_Read... [14:50:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:18]Read from MH i2c: E2 [14:50:18]MH_I2C_Read... [14:50:18]Read from MH i2c: E2 03 00 [14:50:18]MH_I2C_Read... [14:50:18]Read from MH i2c: E2 03 00 B4 0C 00 90 00 34 [14:50:18]RAPDU: 90 00 [14:50:18]wFMCommunicate OK [14:50:18]wFMCommunicate request_size=4 [14:50:18]MH_SAM_APDU [14:50:18]CAPDU: 80 0D 03 02 [14:50:18]Write to MH i2c: E2 08 00 B5 0C 80 0D 03 02 00 00 00 00 3C [14:50:18]Write i2c OK [14:50:18]MH_I2C_Read... [14:50:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:50:18]Read from MH i2c: E2 [14:50:18]MH_I2C_Read... [14:50:18]Read from MH i2c: E2 0B 00 [14:50:18]MH_I2C_Read... [14:50:18]Read from MH i2c: E2 0B 00 B5 0C 00 9A 05 B3 68 A6 AB 81 49 90 00 12 [14:50:18]RAPDU: 9A 05 B3 68 A6 AB 81 49 90 00 [14:50:18]wFMCommunicate OK [14:50:18]SAM_PROTO_SignData done [14:50:18]FM_MakeSignedData done [14:50:18]CreateOFDProtocolMessage [14:50:18]wFMCommunicate request_size=4 [14:50:18]MH_SAM_APDU [14:50:18]CAPDU: 80 11 00 00 [14:50:18]Write to MH i2c: E2 08 00 B6 0C 80 11 00 00 00 00 00 00 3C [14:50:18]Write i2c OK [14:50:18]MH_I2C_Read... [14:50:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:18]Read from MH i2c: E2 [14:50:18]MH_I2C_Read... [14:50:18]Read from MH i2c: E2 17 00 [14:50:18]MH_I2C_Read... [14:50:18]Read from MH i2c: E2 17 00 B6 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8E [14:50:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:50:18]wFMCommunicate OK [14:50:18]CreateOFDProtocolMessage done [14:50:18]OFDSenderStorePacket 69393 [14:50:18]StoreOFDPacket docnum=69393 [14:50:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 22 CB 07 01 24 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 A9 18 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 11 0F 01 00 35 04 06 00 C4 A6 C8 A1 E0 D5 9A 05 B3 68 A6 AB 81 49 [14:50:18]CheckFolder [14:50:18]dirname=/storage/ofd_packets [14:50:18]CheckFolder done [14:50:18]ProducePacketName [14:50:18]name=ofd_packets/00069393 [14:50:18]NVStorageSaveData ofd_packets/00069393 [14:50:18]File name is /storage/ofd_packets/00069393 [14:50:18]Write 301 bytes [14:50:18]NVStorageSaveData done [14:50:18]OFDSenderStorePacket done [14:50:18]KKMCreateOFDPacket done [14:50:18]NVStorageSaveData kkm_last_timestamp [14:50:18]File name is /storage/kkm_last_timestamp [14:50:18]Write 4 bytes [14:50:18]NVStorageSaveData done [14:50:18]ExternCall_PrintAddStr [14:50:18]wPrintStart [14:50:18]Write to MH i2c: 01 00 00 B7 0C C3 [14:50:18]Write i2c OK [14:50:18]MH_I2C_Read... [14:50:18]Read from MH i2c: 01 [14:50:18]MH_I2C_Read... [14:50:18]Read from MH i2c: 01 07 00 [14:50:18]MH_I2C_Read... [14:50:18]Read from MH i2c: 01 07 00 B7 0C 00 00 00 00 00 FF 0F D8 [14:50:18]RasterBufferAndPrint [14:50:18]line Счет N : (1)2885118 [14:50:18]line ИНН: 02508201610067 [14:50:18]line Контрольно-Кассовый Чек [14:50:18]line ПРОДАЖА [14:50:18]line ТРК (МРК, ГНК) : 42 [14:50:18]line Товар: 2710124130 [14:50:18]line Аи-92-К-5 [14:50:18]line 22.430 * 66.90 [14:50:18]line = 1500.57 [14:50:18]line НДС 12% НСП 1% [14:50:18]line > о реализуемом товаре [14:50:18]line ОКРУГЛЕНИЕ: -0.57 [14:50:18]line ИТОГО: 1500.00 [14:50:18]line Внесено: 1500.00 [14:50:18]line СДАЧА: 0.00 [14:50:18]line НСП 1% : 13.28 [14:50:18]line НДС 12% : 159.35 [14:50:18]line Наличными: 1500.00 [14:50:18]line Безнал.: 0.00 [14:50:18]line Место: АЗС № 85 "Партнер Нефть" [14:50:18]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:50:18]line СНО: Общий режим [14:50:18]line Чек 238 20.10.2024 14:50 [14:50:18]line Смена: 193 ФФД: 1.0 [14:50:18]line ЗНМ: 0300000167 [14:50:18]line РНМ: 0000000000156251 [14:50:18]line Версия ККМ: v1.0 [14:50:18]line ФМ: 0000000000963346 [14:50:18]line ФД: 69393 [14:50:18]line ФПД: 216220609667285 [14:50:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T145017&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69393&fm=216220609667285&tin=02508201610067®Number=0000000000156251&sum=150000 [14:50:18]OFD Sender: Processing packet 69393 [packets to send 18, broken 17] [14:50:18]ProducePacketName [14:50:18]name=ofd_packets/00069393 [14:50:18]OFD Sender: To server: pG, [14:50:18]CommunicateWithHost lk.salyk.kg:30040 [14:50:18]ConnectInit lk.salyk.kg [14:50:18]written 0, free lines is 4095 [14:50:19]Connected sock=10 [14:50:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 22 CB 07 01 24 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 A9 18 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 11 0F 01 00 35 04 06 00 C4 A6 C8 A1 E0 D5 9A 05 B3 68 A6 AB 81 49 [14:50:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 E8 23 47 00 56 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 11 0F 01 00 F4 03 04 00 4F C2 14 67 B6 04 01 00 00 49 60 7F D5 27 82 E0 89 [14:50:19]CommunicateWithHost err = 0 [14:50:19]CheckOFDResponse [14:50:19]1017 (14) - 77093643461234 [14:50:19]1041 (16) - 0000000000963346 [14:50:19]1040 (4) - 69393 [14:50:19]1012 (4) - 20.10.2024 08:41 [14:50:19]1206 (1) - 0 [14:50:19]OFD Sender: Remove packet 69393 [14:50:19]ProducePacketName [14:50:19]name=ofd_packets/00069393 [14:50:19]NVStorageDeleteData [14:50:19]Write to MH i2c: 01 00 00 E2 0C EE [14:50:19]Write i2c OK [14:50:19]MH_I2C_Read... [14:50:19]Read from MH i2c: 01 [14:50:19]MH_I2C_Read... [14:50:19]Read from MH i2c: 01 07 00 [14:50:19]MH_I2C_Read... [14:50:19]Read from MH i2c: 01 07 00 E2 0C 00 00 00 00 00 F4 0C F5 [14:50:19]RasterBufferAndPrint [14:50:19]line [14:50:19]line [14:50:19]line [14:50:19]line [14:50:19]line [14:50:19]written 0, free lines is 3322 [14:50:19]MH_Cut [14:50:19]Write to MH i2c: D1 01 00 E9 0C 01 C7 [14:50:19]Write i2c OK [14:50:19]MH_I2C_Read... [14:50:19]Read from MH i2c: D1 [14:50:19]MH_I2C_Read... [14:50:19]Read from MH i2c: D1 01 00 [14:50:19]MH_I2C_Read... [14:50:19]Read from MH i2c: D1 01 00 E9 0C 00 C6 [14:50:19]Write to MH i2c: 01 00 00 EA 0C F6 [14:50:19]Write i2c OK [14:50:19]MH_I2C_Read... [14:50:19]OFD Sender: No OFD packet to send [14:50:20]*** Cut start [14:50:20]*** Partial cut [14:50:20]*** CUTSNS_PIN = 1 [14:50:20]*** CUTSNS_PIN = 0 [14:50:20]*** Brake cut motor [14:50:20]Read from MH i2c: 01 [14:50:20]MH_I2C_Read... [14:50:20]*** Stop cut motor [14:50:20]*** Cut end [14:50:20]Read from MH i2c: 01 07 00 [14:50:20]MH_I2C_Read... [14:50:20]Read from MH i2c: 01 07 00 EA 0C 00 00 00 00 00 FF 0F 0B [14:50:20]process_action close_receipt done [14:50:20]requested_data is exist [14:50:20]produce_requested_data [14:50:20]requested_item fm.sn is exist - process it [14:50:20]wFMCommunicate request_size=4 [14:50:20]MH_SAM_APDU [14:50:20]CAPDU: 80 11 00 00 [14:50:20]Write to MH i2c: E2 08 00 EB 0C 80 11 00 00 00 00 00 00 71 [14:50:20]Write i2c OK [14:50:20]MH_I2C_Read... [14:50:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:20]Read from MH i2c: E2 [14:50:20]MH_I2C_Read... [14:50:20]Read from MH i2c: E2 17 00 [14:50:20]MH_I2C_Read... [14:50:20]Read from MH i2c: E2 17 00 EB 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C3 [14:50:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:50:20]wFMCommunicate OK [14:50:20]requested_item fd.num is exist - process it [14:50:20]SAM_PROTO_GetFieldsCounters [14:50:20]wFMCommunicate request_size=4 [14:50:20]MH_SAM_APDU [14:50:20]CAPDU: 80 13 00 00 [14:50:20]Write to MH i2c: E2 08 00 EC 0C 80 13 00 00 00 00 00 00 74 [14:50:20]Write i2c OK [14:50:20]MH_I2C_Read... [14:50:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:50:20]Read from MH i2c: E2 [14:50:20]MH_I2C_Read... [14:50:20]Read from MH i2c: E2 62 00 [14:50:20]MH_I2C_Read... [14:50:20]Read from MH i2c: E2 62 00 EC 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 11 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [14:50:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 11 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:50:20]wFMCommunicate OK [14:50:20]SAM_PROTO_GetFieldsCounters done [14:50:20]requested_item shift.num is exist - process it [14:50:20]requested_item shift.opened is exist - process it [14:50:20]req_shift_opened [14:50:20]FM_GetShiftState [14:50:20]SAM_PROTO_GetShiftState [14:50:20]wFMCommunicate request_size=4 [14:50:20]MH_SAM_APDU [14:50:20]CAPDU: 80 13 01 00 [14:50:20]Write to MH i2c: E2 08 00 ED 0C 80 13 01 00 00 00 00 00 76 [14:50:20]Write i2c OK [14:50:20]MH_I2C_Read... [14:50:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:20]Read from MH i2c: E2 [14:50:20]MH_I2C_Read... [14:50:20]Read from MH i2c: E2 0E 00 [14:50:20]MH_I2C_Read... [14:50:20]Read from MH i2c: E2 0E 00 ED 0C 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 7C [14:50:20]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [14:50:20]wFMCommunicate OK [14:50:20]SAM_PROTO_GetShiftState done [14:50:20]FM_GetShiftState done [14:50:20]req_shift_opened done [14:50:20]requested_item shift.open_date is exist - process it [14:50:20]req_shift_open_date [14:50:20]req_shift_open_date done [14:50:20]produce_requested_data done [14:50:20]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69393,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [14:50:20]process_action_free close_receipt [14:50:20]json_value_free [14:50:20]json_value_free done [14:50:20]process_json_proto returns [14:50:20]Send response to host [14:50:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69393,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [14:50:20]free response buf [14:50:20]execute_script done [14:50:20]execute_script returns [14:50:20]free content buf [14:50:20]Sock 9.Close socket [14:50:20]Sock 9.Thread stoped [14:50:24]OFD Sender: No OFD packet to send [14:50:29]OFD Sender: No OFD packet to send [14:50:34]OFD Sender: No OFD packet to send [14:50:39]OFD Sender: No OFD packet to send [14:50:44]OFD Sender: No OFD packet to send [14:50:49]OFD Sender: No OFD packet to send [14:50:54]OFD Sender: No OFD packet to send [14:50:59]OFD Sender: No OFD packet to send [14:51:04]OFD Sender: No OFD packet to send [14:51:09]OFD Sender: No OFD packet to send [14:51:14]OFD Sender: No OFD packet to send [14:51:19]OFD Sender: No OFD packet to send [14:51:24]OFD Sender: No OFD packet to send [14:51:29]OFD Sender: No OFD packet to send [14:51:34]OFD Sender: No OFD packet to send [14:51:39]OFD Sender: No OFD packet to send [14:51:44]OFD Sender: No OFD packet to send [14:51:49]OFD Sender: No OFD packet to send [14:51:54]OFD Sender: No OFD packet to send [14:51:59]OFD Sender: No OFD packet to send [14:52:04]OFD Sender: No OFD packet to send [14:52:09]OFD Sender: No OFD packet to send [14:52:14]OFD Sender: No OFD packet to send [14:52:19]OFD Sender: No OFD packet to send [14:52:24]OFD Sender: No OFD packet to send [14:52:29]OFD Sender: No OFD packet to send [14:52:34]OFD Sender: No OFD packet to send [14:52:39]OFD Sender: No OFD packet to send [14:52:44]OFD Sender: No OFD packet to send [14:52:49]OFD Sender: No OFD packet to send [14:52:54]OFD Sender: No OFD packet to send [14:52:59]OFD Sender: No OFD packet to send [14:53:04]OFD Sender: No OFD packet to send [14:53:09]OFD Sender: No OFD packet to send [14:53:14]OFD Sender: No OFD packet to send [14:53:19]OFD Sender: No OFD packet to send [14:53:24]OFD Sender: No OFD packet to send [14:53:29]OFD Sender: No OFD packet to send [14:53:34]OFD Sender: No OFD packet to send [14:53:39]OFD Sender: No OFD packet to send [14:53:44]OFD Sender: No OFD packet to send [14:53:49]OFD Sender: No OFD packet to send [14:53:54]OFD Sender: No OFD packet to send [14:53:59]OFD Sender: No OFD packet to send [14:54:04]OFD Sender: No OFD packet to send [14:54:09]OFD Sender: No OFD packet to send [14:54:14]OFD Sender: No OFD packet to send [14:54:19]OFD Sender: No OFD packet to send [14:54:24]OFD Sender: No OFD packet to send [14:54:29]OFD Sender: No OFD packet to send [14:54:34]OFD Sender: No OFD packet to send [14:54:39]OFD Sender: No OFD packet to send [14:54:44]OFD Sender: No OFD packet to send [14:54:49]OFD Sender: No OFD packet to send [14:54:55]OFD Sender: No OFD packet to send [14:55:00]OFD Sender: No OFD packet to send [14:55:05]OFD Sender: No OFD packet to send [14:55:10]OFD Sender: No OFD packet to send [14:55:15]OFD Sender: No OFD packet to send [14:55:20]OFD Sender: No OFD packet to send [14:55:25]OFD Sender: No OFD packet to send [14:55:30]OFD Sender: No OFD packet to send [14:55:35]OFD Sender: No OFD packet to send [14:55:40]OFD Sender: No OFD packet to send [14:55:45]OFD Sender: No OFD packet to send [14:55:50]OFD Sender: No OFD packet to send [14:55:55]OFD Sender: No OFD packet to send [14:56:00]OFD Sender: No OFD packet to send [14:56:05]OFD Sender: No OFD packet to send [14:56:10]OFD Sender: No OFD packet to send [14:56:15]OFD Sender: No OFD packet to send [14:56:19]accept exits with 8 [14:56:19]New connection [14:56:19]New thread 3066711396 created [14:56:19]Thread 3066568036 joined [14:56:19]Waiting for new connection... [14:56:19] Sock 8.Parse request [14:56:19]Sock 8.Check first char [14:56:19]Sock 8.First char is OK [14:56:19]request: POST /json_proto HTTP/1.0 [14:56:19]Method: POST [14:56:19]URL: /json_proto [14:56:19]Method is POST - this is cgi request [14:56:19]url: /json_proto [14:56:19]query_string will be loaded in cgi processing [14:56:19]execute_cgi json_proto POST (null) [14:56:19]execute_cgi path=json_proto method=POST [14:56:19]POST find Content-Length [14:56:19]Host: 172.17.50.3:8080 [14:56:19]Content-Length: 678 [14:56:19]Content-Type: application/json [14:56:19] [14:56:19]POST finish read [14:56:19]Found Content-Length = 678 [14:56:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:19]execute_script... [14:56:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:19]POST & json_proto [14:56:19]process_json_proto [14:56:19]json parsed OK: [14:56:19]protocol is kg_v1.0 [14:56:19]action value=close_receipt [14:56:19]process_action close_receipt [14:56:19]cmd_close_receipt [14:56:19]MH_GetDate [14:56:19]Write to MH i2c: F0 00 00 EE 0C E9 [14:56:19]Write i2c OK [14:56:19]MH_I2C_Read... [14:56:19]Read from MH i2c: F0 [14:56:19]MH_I2C_Read... [14:56:19]Read from MH i2c: F0 09 00 [14:56:19]MH_I2C_Read... [14:56:19]Read from MH i2c: F0 09 00 EE 0C 00 13 1A 15 67 6B 98 1E 66 22 [14:56:19]GetLastDocTimeStamp 1729435817 [14:56:19]current date 1729436179 [14:56:19]FM_GetShiftState [14:56:19]SAM_PROTO_GetShiftState [14:56:19]wFMCommunicate request_size=4 [14:56:19]MH_SAM_APDU [14:56:19]CAPDU: 80 13 01 00 [14:56:19]Write to MH i2c: E2 08 00 EF 0C 80 13 01 00 00 00 00 00 78 [14:56:19]Write i2c OK [14:56:19]MH_I2C_Read... [14:56:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:19]Read from MH i2c: E2 [14:56:19]MH_I2C_Read... [14:56:19]Read from MH i2c: E2 0E 00 [14:56:19]MH_I2C_Read... [14:56:19]Read from MH i2c: E2 0E 00 EF 0C 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 7E [14:56:19]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [14:56:19]wFMCommunicate OK [14:56:19]SAM_PROTO_GetShiftState done [14:56:19]FM_GetShiftState done [14:56:19]opened in 1729383220 [14:56:19]opened+sec_in_day 1729469620 [14:56:19]quantity*price = 40006 [14:56:19]sum+1 = 40007 [14:56:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 239 20.10.2024 14:56 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69394 ФПД: 159848637198048 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T145619&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69394&fm=159848637198048&tin=02508201610067®Number=0000000000156251&sum=40000 [14:56:20]StoreToDocumentArchive [14:56:20]shift 193 fd 69394 [14:56:20]save to /storage/0193/doc_00069394 [14:56:20]save last doc name /storage/0193/doc_00069394 to /storage/kkm_last_doc_name [14:56:20]save OK [14:56:20]Clear old archive folders... [14:56:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:56:20]tlvbuf is 0023EEF0 [14:56:20]SAM_PROTO_ClearQueue [14:56:20]wFMCommunicate request_size=4 [14:56:20]MH_SAM_APDU [14:56:20]CAPDU: 80 09 00 00 [14:56:20]Write to MH i2c: E2 08 00 FC 0C 80 09 00 00 00 00 00 00 7A [14:56:20]Write i2c OK [14:56:20]MH_I2C_Read... [14:56:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:56:20]Read from MH i2c: E2 [14:56:20]MH_I2C_Read... [14:56:20]Read from MH i2c: E2 03 00 [14:56:20]MH_I2C_Read... [14:56:20]Read from MH i2c: E2 03 00 FC 0C 00 90 00 7C [14:56:20]RAPDU: 90 00 [14:56:20]wFMCommunicate OK [14:56:20]SAM_PROTO_ClearQueue done [14:56:20]KKMCreateOFDPacket [14:56:20]OFDProtocolAddRootSTLVToBuf [14:56:20]FM_MakeSignedData [14:56:20]FM_MakeSignedData [14:56:20]SAM_PROTO_SignData [14:56:20]wFMCommunicate request_size=4 [14:56:20]MH_SAM_APDU [14:56:20]CAPDU: 80 0D 01 02 [14:56:20]Write to MH i2c: E2 08 00 FD 0C 80 0D 01 02 00 00 00 00 82 [14:56:20]Write i2c OK [14:56:20]MH_I2C_Read... [14:56:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:56:20]Read from MH i2c: E2 [14:56:20]MH_I2C_Read... [14:56:20]Read from MH i2c: E2 03 00 [14:56:20]MH_I2C_Read... [14:56:20]Read from MH i2c: E2 03 00 FD 0C 00 90 00 7D [14:56:20]RAPDU: 90 00 [14:56:20]wFMCommunicate OK [14:56:20]wFMCommunicate request_size=255 [14:56:20]MH_SAM_APDU [14:56:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 13 1A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 12 0F 01 00 35 04 06 00 91 [14:56:20]Write to MH i2c: E2 02 01 FE 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 13 1A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 12 0F 01 00 35 04 06 00 91 00 00 E6 [14:56:20]Write i2c OK [14:56:20]MH_I2C_Read... [14:56:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:20]Read from MH i2c: E2 [14:56:20]MH_I2C_Read... [14:56:20]Read from MH i2c: E2 03 00 [14:56:20]MH_I2C_Read... [14:56:20]Read from MH i2c: E2 03 00 FE 0C 00 90 00 7E [14:56:20]RAPDU: 90 00 [14:56:20]wFMCommunicate OK [14:56:20]wFMCommunicate request_size=10 [14:56:20]MH_SAM_APDU [14:56:20]CAPDU: 80 0D 02 02 05 61 A9 3C EE E0 [14:56:20]Write to MH i2c: E2 0D 00 FF 0C 80 0D 02 02 05 00 61 A9 3C EE E0 00 00 A3 [14:56:20]Write i2c OK [14:56:20]MH_I2C_Read... [14:56:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:20]Read from MH i2c: E2 [14:56:20]MH_I2C_Read... [14:56:20]Read from MH i2c: E2 03 00 [14:56:20]MH_I2C_Read... [14:56:20]Read from MH i2c: E2 03 00 FF 0C 00 90 00 7F [14:56:20]RAPDU: 90 00 [14:56:20]wFMCommunicate OK [14:56:20]wFMCommunicate request_size=4 [14:56:20]MH_SAM_APDU [14:56:20]CAPDU: 80 0D 03 02 [14:56:20]Write to MH i2c: E2 08 00 00 0D 80 0D 03 02 00 00 00 00 88 [14:56:20]Write i2c OK [14:56:20]MH_I2C_Read... [14:56:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:56:20]Read from MH i2c: E2 [14:56:20]MH_I2C_Read... [14:56:20]Read from MH i2c: E2 0B 00 [14:56:20]MH_I2C_Read... [14:56:20]Read from MH i2c: E2 0B 00 00 0D 00 E6 D1 48 74 A3 7D 74 A4 90 00 34 [14:56:20]RAPDU: E6 D1 48 74 A3 7D 74 A4 90 00 [14:56:20]wFMCommunicate OK [14:56:20]SAM_PROTO_SignData done [14:56:20]FM_MakeSignedData done [14:56:20]CreateOFDProtocolMessage [14:56:20]wFMCommunicate request_size=4 [14:56:20]MH_SAM_APDU [14:56:20]CAPDU: 80 11 00 00 [14:56:20]Write to MH i2c: E2 08 00 01 0D 80 11 00 00 00 00 00 00 88 [14:56:20]Write i2c OK [14:56:20]MH_I2C_Read... [14:56:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:20]Read from MH i2c: E2 [14:56:20]MH_I2C_Read... [14:56:20]Read from MH i2c: E2 17 00 [14:56:20]MH_I2C_Read... [14:56:20]Read from MH i2c: E2 17 00 01 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DA [14:56:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:56:20]wFMCommunicate OK [14:56:20]CreateOFDProtocolMessage done [14:56:20]OFDSenderStorePacket 69394 [14:56:20]StoreOFDPacket docnum=69394 [14:56:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 63 32 07 01 72 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 13 1A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 12 0F 01 00 35 04 06 00 91 61 A9 3C EE E0 E6 D1 48 74 A3 7D 74 A4 [14:56:20]CheckFolder [14:56:20]dirname=/storage/ofd_packets [14:56:20]CheckFolder done [14:56:20]ProducePacketName [14:56:20]name=ofd_packets/00069394 [14:56:20]NVStorageSaveData ofd_packets/00069394 [14:56:20]File name is /storage/ofd_packets/00069394 [14:56:20]Write 301 bytes [14:56:20]NVStorageSaveData done [14:56:20]OFDSenderStorePacket done [14:56:20]KKMCreateOFDPacket done [14:56:20]NVStorageSaveData kkm_last_timestamp [14:56:20]File name is /storage/kkm_last_timestamp [14:56:20]Write 4 bytes [14:56:20]NVStorageSaveData done [14:56:20]ExternCall_PrintAddStr [14:56:20]wPrintStart [14:56:20]Write to MH i2c: 01 00 00 02 0D 0F [14:56:20]Write i2c OK [14:56:20]MH_I2C_Read... [14:56:20]Read from MH i2c: 01 [14:56:20]MH_I2C_Read... [14:56:20]Read from MH i2c: 01 07 00 [14:56:20]MH_I2C_Read... [14:56:20]Read from MH i2c: 01 07 00 02 0D 00 00 00 00 00 FF 0F 24 [14:56:20]RasterBufferAndPrint [14:56:20]line Счет N : (1)2885119 [14:56:20]line ИНН: 02508201610067 [14:56:20]line Контрольно-Кассовый Чек [14:56:20]line ПРОДАЖА [14:56:20]line ТРК (МРК, ГНК) : 12 [14:56:20]line Товар: 2710124130 [14:56:20]line Аи-92-К-5 [14:56:20]line 5.980 * 66.90 [14:56:20]line = 400.06 [14:56:20]line НДС 12% НСП 1% [14:56:20]line > о реализуемом товаре [14:56:20]line ОКРУГЛЕНИЕ: -0.06 [14:56:20]line ИТОГО: 400.00 [14:56:20]line Внесено: 400.00 [14:56:20]line СДАЧА: 0.00 [14:56:20]line НСП 1% : 3.54 [14:56:20]line НДС 12% : 42.48 [14:56:20]line Наличными: 400.00 [14:56:20]line Безнал.: 0.00 [14:56:20]line Место: АЗС № 85 "Партнер Нефть" [14:56:20]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [14:56:20]line СНО: Общий режим [14:56:20]line Чек 239 20.10.2024 14:56 [14:56:20]line Смена: 193 ФФД: 1.0 [14:56:20]line ЗНМ: 0300000167 [14:56:20]line РНМ: 0000000000156251 [14:56:20]line Версия ККМ: v1.0 [14:56:20]line ФМ: 0000000000963346 [14:56:20]line ФД: 69394 [14:56:20]line ФПД: 159848637198048 [14:56:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T145619&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69394&fm=159848637198048&tin=02508201610067®Number=0000000000156251&sum=40000 [14:56:21]OFD Sender: Processing packet 69394 [packets to send 18, broken 17] [14:56:21]ProducePacketName [14:56:21]name=ofd_packets/00069394 [14:56:21]OFD Sender: To server: pG, [14:56:21]CommunicateWithHost lk.salyk.kg:30040 [14:56:21]ConnectInit lk.salyk.kg [14:56:21]written 0, free lines is 4095 [14:56:21]Connected sock=9 [14:56:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 63 32 07 01 72 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 13 1A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 12 0F 01 00 35 04 06 00 91 61 A9 3C EE E0 E6 D1 48 74 A3 7D 74 A4 [14:56:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 15 11 47 00 0C 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 12 0F 01 00 F4 03 04 00 BA C3 14 67 B6 04 01 00 00 DF 37 56 5D AF 74 52 7D [14:56:21]CommunicateWithHost err = 0 [14:56:21]CheckOFDResponse [14:56:21]1017 (14) - 77093643461234 [14:56:21]1041 (16) - 0000000000963346 [14:56:21]1040 (4) - 69394 [14:56:21]1012 (4) - 20.10.2024 08:47 [14:56:21]1206 (1) - 0 [14:56:21]OFD Sender: Remove packet 69394 [14:56:21]ProducePacketName [14:56:21]name=ofd_packets/00069394 [14:56:21]NVStorageDeleteData [14:56:21]Write to MH i2c: 01 00 00 2D 0D 3A [14:56:21]Write i2c OK [14:56:21]MH_I2C_Read... [14:56:21]Read from MH i2c: 01 [14:56:21]MH_I2C_Read... [14:56:21]Read from MH i2c: 01 07 00 [14:56:21]MH_I2C_Read... [14:56:21]Read from MH i2c: 01 07 00 2D 0D 00 00 00 00 00 F7 0C 44 [14:56:21]RasterBufferAndPrint [14:56:21]line [14:56:21]line [14:56:21]line [14:56:21]line [14:56:21]line [14:56:21]written 0, free lines is 3329 [14:56:21]MH_Cut [14:56:21]Write to MH i2c: D1 01 00 34 0D 01 13 [14:56:21]Write i2c OK [14:56:21]MH_I2C_Read... [14:56:21]Read from MH i2c: D1 [14:56:21]MH_I2C_Read... [14:56:21]Read from MH i2c: D1 01 00 [14:56:21]MH_I2C_Read... [14:56:21]Read from MH i2c: D1 01 00 34 0D 00 12 [14:56:21]Write to MH i2c: 01 00 00 35 0D 42 [14:56:21]Write i2c OK [14:56:21]MH_I2C_Read... [14:56:21]OFD Sender: No OFD packet to send [14:56:22]*** Cut start [14:56:22]*** Partial cut [14:56:22]*** CUTSNS_PIN = 1 [14:56:22]*** CUTSNS_PIN = 0 [14:56:22]*** Brake cut motor [14:56:22]Read from MH i2c: 01 [14:56:22]MH_I2C_Read... [14:56:22]*** Stop cut motor [14:56:22]*** Cut end [14:56:22]Read from MH i2c: 01 07 00 [14:56:22]MH_I2C_Read... [14:56:22]Read from MH i2c: 01 07 00 35 0D 00 00 00 00 00 FF 0F 57 [14:56:22]process_action close_receipt done [14:56:22]requested_data is exist [14:56:22]produce_requested_data [14:56:22]requested_item fm.sn is exist - process it [14:56:22]wFMCommunicate request_size=4 [14:56:22]MH_SAM_APDU [14:56:22]CAPDU: 80 11 00 00 [14:56:22]Write to MH i2c: E2 08 00 36 0D 80 11 00 00 00 00 00 00 BD [14:56:22]Write i2c OK [14:56:22]MH_I2C_Read... [14:56:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:22]Read from MH i2c: E2 [14:56:22]MH_I2C_Read... [14:56:22]Read from MH i2c: E2 17 00 [14:56:22]MH_I2C_Read... [14:56:22]Read from MH i2c: E2 17 00 36 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0F [14:56:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [14:56:22]wFMCommunicate OK [14:56:22]requested_item fd.num is exist - process it [14:56:22]SAM_PROTO_GetFieldsCounters [14:56:22]wFMCommunicate request_size=4 [14:56:22]MH_SAM_APDU [14:56:22]CAPDU: 80 13 00 00 [14:56:22]Write to MH i2c: E2 08 00 37 0D 80 13 00 00 00 00 00 00 C0 [14:56:22]Write i2c OK [14:56:22]MH_I2C_Read... [14:56:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:23]Read from MH i2c: E2 [14:56:23]MH_I2C_Read... [14:56:23]Read from MH i2c: E2 62 00 [14:56:23]MH_I2C_Read... [14:56:23]Read from MH i2c: E2 62 00 37 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 12 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [14:56:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 12 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:56:23]wFMCommunicate OK [14:56:23]SAM_PROTO_GetFieldsCounters done [14:56:23]requested_item shift.num is exist - process it [14:56:23]requested_item shift.opened is exist - process it [14:56:23]req_shift_opened [14:56:23]FM_GetShiftState [14:56:23]SAM_PROTO_GetShiftState [14:56:23]wFMCommunicate request_size=4 [14:56:23]MH_SAM_APDU [14:56:23]CAPDU: 80 13 01 00 [14:56:23]Write to MH i2c: E2 08 00 38 0D 80 13 01 00 00 00 00 00 C2 [14:56:23]Write i2c OK [14:56:23]MH_I2C_Read... [14:56:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:23]Read from MH i2c: E2 [14:56:23]MH_I2C_Read... [14:56:23]Read from MH i2c: E2 0E 00 [14:56:23]MH_I2C_Read... [14:56:23]Read from MH i2c: E2 0E 00 38 0D 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 C8 [14:56:23]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [14:56:23]wFMCommunicate OK [14:56:23]SAM_PROTO_GetShiftState done [14:56:23]FM_GetShiftState done [14:56:23]req_shift_opened done [14:56:23]requested_item shift.open_date is exist - process it [14:56:23]req_shift_open_date [14:56:23]req_shift_open_date done [14:56:23]produce_requested_data done [14:56:23]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69394,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [14:56:23]process_action_free close_receipt [14:56:23]json_value_free [14:56:23]json_value_free done [14:56:23]process_json_proto returns [14:56:23]Send response to host [14:56:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69394,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [14:56:23]free response buf [14:56:23]execute_script done [14:56:23]execute_script returns [14:56:23]free content buf [14:56:23]Sock 8.Close socket [14:56:23]Sock 8.Thread stoped [14:56:26]OFD Sender: No OFD packet to send [14:56:31]OFD Sender: No OFD packet to send [14:56:37]OFD Sender: No OFD packet to send [14:56:42]OFD Sender: No OFD packet to send [14:56:47]OFD Sender: No OFD packet to send [14:56:52]OFD Sender: No OFD packet to send [14:56:57]OFD Sender: No OFD packet to send [14:57:02]OFD Sender: No OFD packet to send [14:57:07]OFD Sender: No OFD packet to send [14:57:12]OFD Sender: No OFD packet to send [14:57:17]OFD Sender: No OFD packet to send [14:57:22]OFD Sender: No OFD packet to send [14:57:27]OFD Sender: No OFD packet to send [14:57:32]OFD Sender: No OFD packet to send [14:57:37]OFD Sender: No OFD packet to send [14:57:42]OFD Sender: No OFD packet to send [14:57:47]OFD Sender: No OFD packet to send [14:57:52]OFD Sender: No OFD packet to send [14:57:57]OFD Sender: No OFD packet to send [14:58:02]OFD Sender: No OFD packet to send [14:58:07]OFD Sender: No OFD packet to send [14:58:12]OFD Sender: No OFD packet to send [14:58:17]OFD Sender: No OFD packet to send [14:58:22]OFD Sender: No OFD packet to send [14:58:27]OFD Sender: No OFD packet to send [14:58:32]OFD Sender: No OFD packet to send [14:58:37]OFD Sender: No OFD packet to send [14:58:42]OFD Sender: No OFD packet to send [14:58:47]OFD Sender: No OFD packet to send [14:58:52]OFD Sender: No OFD packet to send [14:58:57]OFD Sender: No OFD packet to send [14:59:02]OFD Sender: No OFD packet to send [14:59:07]OFD Sender: No OFD packet to send [14:59:12]OFD Sender: No OFD packet to send [14:59:17]OFD Sender: No OFD packet to send [14:59:22]OFD Sender: No OFD packet to send [14:59:27]OFD Sender: No OFD packet to send [14:59:32]OFD Sender: No OFD packet to send [14:59:37]OFD Sender: No OFD packet to send [14:59:42]OFD Sender: No OFD packet to send [14:59:47]OFD Sender: No OFD packet to send [14:59:52]OFD Sender: No OFD packet to send [14:59:57]OFD Sender: No OFD packet to send [15:00:02]OFD Sender: No OFD packet to send [15:00:07]OFD Sender: No OFD packet to send [15:00:12]OFD Sender: No OFD packet to send [15:00:17]OFD Sender: No OFD packet to send [15:00:22]OFD Sender: No OFD packet to send [15:00:27]OFD Sender: No OFD packet to send [15:00:32]OFD Sender: No OFD packet to send [15:00:37]OFD Sender: No OFD packet to send [15:00:42]OFD Sender: No OFD packet to send [15:00:47]OFD Sender: No OFD packet to send [15:00:52]OFD Sender: No OFD packet to send [15:00:57]OFD Sender: No OFD packet to send [15:01:02]OFD Sender: No OFD packet to send [15:01:07]OFD Sender: No OFD packet to send [15:01:12]OFD Sender: No OFD packet to send [15:01:17]OFD Sender: No OFD packet to send [15:01:22]OFD Sender: No OFD packet to send [15:01:27]OFD Sender: No OFD packet to send [15:01:32]OFD Sender: No OFD packet to send [15:01:37]OFD Sender: No OFD packet to send [15:01:42]OFD Sender: No OFD packet to send [15:01:47]OFD Sender: No OFD packet to send [15:01:52]OFD Sender: No OFD packet to send [15:01:57]OFD Sender: No OFD packet to send [15:02:02]OFD Sender: No OFD packet to send [15:02:07]OFD Sender: No OFD packet to send [15:02:12]OFD Sender: No OFD packet to send [15:02:17]OFD Sender: No OFD packet to send [15:02:22]OFD Sender: No OFD packet to send [15:02:27]OFD Sender: No OFD packet to send [15:02:32]OFD Sender: No OFD packet to send [15:02:37]OFD Sender: No OFD packet to send [15:02:42]OFD Sender: No OFD packet to send [15:02:47]OFD Sender: No OFD packet to send [15:02:52]OFD Sender: No OFD packet to send [15:02:57]OFD Sender: No OFD packet to send [15:03:02]OFD Sender: No OFD packet to send [15:03:07]OFD Sender: No OFD packet to send [15:03:12]OFD Sender: No OFD packet to send [15:03:17]OFD Sender: No OFD packet to send [15:03:22]OFD Sender: No OFD packet to send [15:03:27]OFD Sender: No OFD packet to send [15:03:32]OFD Sender: No OFD packet to send [15:03:37]OFD Sender: No OFD packet to send [15:03:42]OFD Sender: No OFD packet to send [15:03:47]OFD Sender: No OFD packet to send [15:03:52]OFD Sender: No OFD packet to send [15:03:57]OFD Sender: No OFD packet to send [15:04:02]OFD Sender: No OFD packet to send [15:04:07]OFD Sender: No OFD packet to send [15:04:08]accept exits with 10 [15:04:08]New connection [15:04:08]New thread 3066568036 created [15:04:08]Thread 3066711396 joined [15:04:08]Waiting for new connection... [15:04:08] Sock 10.Parse request [15:04:08]Sock 10.Check first char [15:04:08]Sock 10.First char is OK [15:04:08]request: POST /json_proto HTTP/1.0 [15:04:08]Method: POST [15:04:08]URL: /json_proto [15:04:08]Method is POST - this is cgi request [15:04:08]url: /json_proto [15:04:08]query_string will be loaded in cgi processing [15:04:08]execute_cgi json_proto POST (null) [15:04:08]execute_cgi path=json_proto method=POST [15:04:08]POST find Content-Length [15:04:08]Host: 172.17.50.3:8080 [15:04:08]Content-Length: 689 [15:04:08]Content-Type: application/json [15:04:08] [15:04:08]POST finish read [15:04:08]Found Content-Length = 689 [15:04:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:08]execute_script... [15:04:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:08]POST & json_proto [15:04:08]process_json_proto [15:04:08]json parsed OK: [15:04:08]protocol is kg_v1.0 [15:04:08]action value=close_receipt [15:04:08]process_action close_receipt [15:04:08]cmd_close_receipt [15:04:08]MH_GetDate [15:04:08]Write to MH i2c: F0 00 00 39 0D 35 [15:04:08]Write i2c OK [15:04:08]MH_I2C_Read... [15:04:08]Read from MH i2c: F0 [15:04:08]MH_I2C_Read... [15:04:08]Read from MH i2c: F0 09 00 [15:04:08]MH_I2C_Read... [15:04:08]Read from MH i2c: F0 09 00 39 0D 00 E8 1B 15 67 6B 98 1E 66 44 [15:04:08]GetLastDocTimeStamp 1729436179 [15:04:08]current date 1729436648 [15:04:08]FM_GetShiftState [15:04:08]SAM_PROTO_GetShiftState [15:04:08]wFMCommunicate request_size=4 [15:04:08]MH_SAM_APDU [15:04:08]CAPDU: 80 13 01 00 [15:04:08]Write to MH i2c: E2 08 00 3A 0D 80 13 01 00 00 00 00 00 C4 [15:04:08]Write i2c OK [15:04:08]MH_I2C_Read... [15:04:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:08]Read from MH i2c: E2 [15:04:08]MH_I2C_Read... [15:04:08]Read from MH i2c: E2 0E 00 [15:04:08]MH_I2C_Read... [15:04:08]Read from MH i2c: E2 0E 00 3A 0D 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 CA [15:04:08]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [15:04:08]wFMCommunicate OK [15:04:08]SAM_PROTO_GetShiftState done [15:04:08]FM_GetShiftState done [15:04:08]opened in 1729383220 [15:04:08]opened+sec_in_day 1729469620 [15:04:08]quantity*price = 300076 [15:04:08]sum+1 = 300077 [15:04:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 240 20.10.2024 15:04 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69395 ФПД: 155896453720438 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150408&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69395&fm=155896453720438&tin=02508201610067®Number=0000000000156251&sum=300000 [15:04:09]StoreToDocumentArchive [15:04:09]shift 193 fd 69395 [15:04:09]save to /storage/0193/doc_00069395 [15:04:09]save last doc name /storage/0193/doc_00069395 to /storage/kkm_last_doc_name [15:04:09]save OK [15:04:09]Clear old archive folders... [15:04:09]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:04:09]tlvbuf is 00239530 [15:04:09]SAM_PROTO_ClearQueue [15:04:09]wFMCommunicate request_size=4 [15:04:09]MH_SAM_APDU [15:04:09]CAPDU: 80 09 00 00 [15:04:09]Write to MH i2c: E2 08 00 47 0D 80 09 00 00 00 00 00 00 C6 [15:04:09]Write i2c OK [15:04:09]MH_I2C_Read... [15:04:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:04:09]Read from MH i2c: E2 [15:04:09]MH_I2C_Read... [15:04:09]Read from MH i2c: E2 03 00 [15:04:09]MH_I2C_Read... [15:04:09]Read from MH i2c: E2 03 00 47 0D 00 90 00 C8 [15:04:09]RAPDU: 90 00 [15:04:09]wFMCommunicate OK [15:04:09]SAM_PROTO_ClearQueue done [15:04:09]KKMCreateOFDPacket [15:04:09]OFDProtocolAddRootSTLVToBuf [15:04:09]FM_MakeSignedData [15:04:09]FM_MakeSignedData [15:04:09]SAM_PROTO_SignData [15:04:09]wFMCommunicate request_size=4 [15:04:09]MH_SAM_APDU [15:04:09]CAPDU: 80 0D 01 02 [15:04:09]Write to MH i2c: E2 08 00 48 0D 80 0D 01 02 00 00 00 00 CE [15:04:09]Write i2c OK [15:04:09]MH_I2C_Read... [15:04:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:04:09]Read from MH i2c: E2 [15:04:09]MH_I2C_Read... [15:04:09]Read from MH i2c: E2 03 00 [15:04:09]MH_I2C_Read... [15:04:09]Read from MH i2c: E2 03 00 48 0D 00 90 00 C9 [15:04:09]RAPDU: 90 00 [15:04:09]wFMCommunicate OK [15:04:09]wFMCommunicate request_size=255 [15:04:09]MH_SAM_APDU [15:04:09]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 E8 1B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 13 0F 01 [15:04:09]Write to MH i2c: E2 02 01 49 0D 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 E8 1B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 13 0F 01 00 00 55 [15:04:09]Write i2c OK [15:04:09]MH_I2C_Read... [15:04:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:09]Read from MH i2c: E2 [15:04:09]MH_I2C_Read... [15:04:09]Read from MH i2c: E2 03 00 [15:04:09]MH_I2C_Read... [15:04:09]Read from MH i2c: E2 03 00 49 0D 00 90 00 CA [15:04:09]RAPDU: 90 00 [15:04:09]wFMCommunicate OK [15:04:09]wFMCommunicate request_size=16 [15:04:09]MH_SAM_APDU [15:04:09]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 8D C9 78 BE E9 76 [15:04:09]Write to MH i2c: E2 13 00 4A 0D 80 0D 02 02 0B 00 00 35 04 06 00 8D C9 78 BE E9 76 00 00 11 [15:04:09]Write i2c OK [15:04:09]MH_I2C_Read... [15:04:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:09]Read from MH i2c: E2 [15:04:09]MH_I2C_Read... [15:04:09]Read from MH i2c: E2 03 00 [15:04:09]MH_I2C_Read... [15:04:09]Read from MH i2c: E2 03 00 4A 0D 00 90 00 CB [15:04:09]RAPDU: 90 00 [15:04:09]wFMCommunicate OK [15:04:09]wFMCommunicate request_size=4 [15:04:09]MH_SAM_APDU [15:04:09]CAPDU: 80 0D 03 02 [15:04:09]Write to MH i2c: E2 08 00 4B 0D 80 0D 03 02 00 00 00 00 D3 [15:04:09]Write i2c OK [15:04:09]MH_I2C_Read... [15:04:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:04:09]Read from MH i2c: E2 [15:04:09]MH_I2C_Read... [15:04:09]Read from MH i2c: E2 0B 00 [15:04:09]MH_I2C_Read... [15:04:09]Read from MH i2c: E2 0B 00 4B 0D 00 FA B1 24 B6 8D 11 B3 EE 90 00 98 [15:04:09]RAPDU: FA B1 24 B6 8D 11 B3 EE 90 00 [15:04:09]wFMCommunicate OK [15:04:09]SAM_PROTO_SignData done [15:04:09]FM_MakeSignedData done [15:04:09]CreateOFDProtocolMessage [15:04:09]wFMCommunicate request_size=4 [15:04:09]MH_SAM_APDU [15:04:09]CAPDU: 80 11 00 00 [15:04:09]Write to MH i2c: E2 08 00 4C 0D 80 11 00 00 00 00 00 00 D3 [15:04:09]Write i2c OK [15:04:09]MH_I2C_Read... [15:04:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:09]Read from MH i2c: E2 [15:04:09]MH_I2C_Read... [15:04:09]Read from MH i2c: E2 17 00 [15:04:09]MH_I2C_Read... [15:04:09]Read from MH i2c: E2 17 00 4C 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 25 [15:04:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:04:09]wFMCommunicate OK [15:04:09]CreateOFDProtocolMessage done [15:04:09]OFDSenderStorePacket 69395 [15:04:09]StoreOFDPacket docnum=69395 [15:04:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 33 BB 0D 01 21 3B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 E8 1B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 13 0F 01 00 35 04 06 00 8D C9 78 BE E9 76 FA B1 24 B6 8D 11 B3 EE [15:04:09]CheckFolder [15:04:09]dirname=/storage/ofd_packets [15:04:09]CheckFolder done [15:04:09]ProducePacketName [15:04:09]name=ofd_packets/00069395 [15:04:09]NVStorageSaveData ofd_packets/00069395 [15:04:09]File name is /storage/ofd_packets/00069395 [15:04:09]Write 307 bytes [15:04:09]NVStorageSaveData done [15:04:09]OFDSenderStorePacket done [15:04:09]KKMCreateOFDPacket done [15:04:09]NVStorageSaveData kkm_last_timestamp [15:04:09]File name is /storage/kkm_last_timestamp [15:04:09]Write 4 bytes [15:04:09]NVStorageSaveData done [15:04:09]ExternCall_PrintAddStr [15:04:09]wPrintStart [15:04:09]Write to MH i2c: 01 00 00 4D 0D 5A [15:04:09]Write i2c OK [15:04:09]MH_I2C_Read... [15:04:09]Read from MH i2c: 01 [15:04:09]MH_I2C_Read... [15:04:09]Read from MH i2c: 01 07 00 [15:04:09]MH_I2C_Read... [15:04:09]Read from MH i2c: 01 07 00 4D 0D 00 00 00 00 00 FF 0F 6F [15:04:09]RasterBufferAndPrint [15:04:09]line Счет N : (1)2885120 [15:04:09]line ИНН: 02508201610067 [15:04:09]line Контрольно-Кассовый Чек [15:04:09]line ПРОДАЖА [15:04:09]line ТРК (МРК, ГНК) : 41 [15:04:09]line Товар: 2710194240 [15:04:09]line D-ENERGY Дт-К-2 [15:04:09]line 38.870 * 77.20 [15:04:09]line = 3000.76 [15:04:09]line НДС 12% НСП 1% [15:04:09]line > о реализуемом товаре [15:04:09]line ОКРУГЛЕНИЕ: -0.76 [15:04:09]line ИТОГО: 3000.00 [15:04:09]line Внесено: 3000.00 [15:04:09]line СДАЧА: 0.00 [15:04:09]line НСП 1% : 26.55 [15:04:09]line НДС 12% : 318.66 [15:04:09]line Наличными: 3000.00 [15:04:09]line Безнал.: 0.00 [15:04:09]line Место: АЗС № 85 "Партнер Нефть" [15:04:09]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:04:09]line СНО: Общий режим [15:04:09]line Чек 240 20.10.2024 15:04 [15:04:09]line Смена: 193 ФФД: 1.0 [15:04:09]line ЗНМ: 0300000167 [15:04:09]line РНМ: 0000000000156251 [15:04:10]line Версия ККМ: v1.0 [15:04:10]line ФМ: 0000000000963346 [15:04:10]line ФД: 69395 [15:04:10]line ФПД: 155896453720438 [15:04:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150408&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69395&fm=155896453720438&tin=02508201610067®Number=0000000000156251&sum=300000 [15:04:10]OFD Sender: Processing packet 69395 [packets to send 18, broken 17] [15:04:10]ProducePacketName [15:04:10]name=ofd_packets/00069395 [15:04:10]OFD Sender: To server: pG, [15:04:10]CommunicateWithHost lk.salyk.kg:30040 [15:04:10]ConnectInit lk.salyk.kg [15:04:10]written 0, free lines is 4095 [15:04:10]Connected sock=9 [15:04:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 33 BB 0D 01 21 3B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 E8 1B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 13 0F 01 00 35 04 06 00 8D C9 78 BE E9 76 FA B1 24 B6 8D 11 B3 EE [15:04:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 35 5D 47 00 0D 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 13 0F 01 00 F4 03 04 00 8F C5 14 67 B6 04 01 00 00 3F B4 52 B3 3A 98 D4 68 [15:04:10]CommunicateWithHost err = 0 [15:04:10]CheckOFDResponse [15:04:10]1017 (14) - 77093643461234 [15:04:10]1041 (16) - 0000000000963346 [15:04:10]1040 (4) - 69395 [15:04:10]1012 (4) - 20.10.2024 08:55 [15:04:10]1206 (1) - 0 [15:04:10]OFD Sender: Remove packet 69395 [15:04:10]ProducePacketName [15:04:10]name=ofd_packets/00069395 [15:04:10]NVStorageDeleteData [15:04:10]Write to MH i2c: 01 00 00 78 0D 85 [15:04:10]Write i2c OK [15:04:10]MH_I2C_Read... [15:04:10]Read from MH i2c: 01 [15:04:10]MH_I2C_Read... [15:04:10]Read from MH i2c: 01 07 00 [15:04:10]MH_I2C_Read... [15:04:10]Read from MH i2c: 01 07 00 78 0D 00 00 00 00 00 F2 0C 8A [15:04:10]RasterBufferAndPrint [15:04:10]line [15:04:10]line [15:04:10]line [15:04:10]line [15:04:10]line [15:04:10]written 0, free lines is 3320 [15:04:10]MH_Cut [15:04:10]Write to MH i2c: D1 01 00 7F 0D 01 5E [15:04:10]Write i2c OK [15:04:10]MH_I2C_Read... [15:04:10]Read from MH i2c: D1 [15:04:10]MH_I2C_Read... [15:04:10]Read from MH i2c: D1 01 00 [15:04:10]MH_I2C_Read... [15:04:10]Read from MH i2c: D1 01 00 7F 0D 00 5D [15:04:10]Write to MH i2c: 01 00 00 80 0D 8D [15:04:10]Write i2c OK [15:04:10]MH_I2C_Read... [15:04:11]OFD Sender: No OFD packet to send [15:04:11]*** Cut start [15:04:11]*** Partial cut [15:04:11]*** CUTSNS_PIN = 1 [15:04:11]*** CUTSNS_PIN = 0 [15:04:11]*** Brake cut motor [15:04:11]Read from MH i2c: 01 [15:04:11]MH_I2C_Read... [15:04:11]*** Stop cut motor [15:04:11]*** Cut end [15:04:11]Read from MH i2c: 01 07 00 [15:04:11]MH_I2C_Read... [15:04:11]Read from MH i2c: 01 07 00 80 0D 00 00 00 00 00 FF 0F A2 [15:04:11]process_action close_receipt done [15:04:11]requested_data is exist [15:04:11]produce_requested_data [15:04:11]requested_item fm.sn is exist - process it [15:04:11]wFMCommunicate request_size=4 [15:04:11]MH_SAM_APDU [15:04:11]CAPDU: 80 11 00 00 [15:04:11]Write to MH i2c: E2 08 00 81 0D 80 11 00 00 00 00 00 00 08 [15:04:11]Write i2c OK [15:04:11]MH_I2C_Read... [15:04:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:12]Read from MH i2c: E2 [15:04:12]MH_I2C_Read... [15:04:12]Read from MH i2c: E2 17 00 [15:04:12]MH_I2C_Read... [15:04:12]Read from MH i2c: E2 17 00 81 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5A [15:04:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:04:12]wFMCommunicate OK [15:04:12]requested_item fd.num is exist - process it [15:04:12]SAM_PROTO_GetFieldsCounters [15:04:12]wFMCommunicate request_size=4 [15:04:12]MH_SAM_APDU [15:04:12]CAPDU: 80 13 00 00 [15:04:12]Write to MH i2c: E2 08 00 82 0D 80 13 00 00 00 00 00 00 0B [15:04:12]Write i2c OK [15:04:12]MH_I2C_Read... [15:04:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:04:12]Read from MH i2c: E2 [15:04:12]MH_I2C_Read... [15:04:12]Read from MH i2c: E2 62 00 [15:04:12]MH_I2C_Read... [15:04:12]Read from MH i2c: E2 62 00 82 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 13 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [15:04:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 13 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:04:12]wFMCommunicate OK [15:04:12]SAM_PROTO_GetFieldsCounters done [15:04:12]requested_item shift.num is exist - process it [15:04:12]requested_item shift.opened is exist - process it [15:04:12]req_shift_opened [15:04:12]FM_GetShiftState [15:04:12]SAM_PROTO_GetShiftState [15:04:12]wFMCommunicate request_size=4 [15:04:12]MH_SAM_APDU [15:04:12]CAPDU: 80 13 01 00 [15:04:12]Write to MH i2c: E2 08 00 83 0D 80 13 01 00 00 00 00 00 0D [15:04:12]Write i2c OK [15:04:12]MH_I2C_Read... [15:04:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:12]Read from MH i2c: E2 [15:04:12]MH_I2C_Read... [15:04:12]Read from MH i2c: E2 0E 00 [15:04:12]MH_I2C_Read... [15:04:12]Read from MH i2c: E2 0E 00 83 0D 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 13 [15:04:12]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [15:04:12]wFMCommunicate OK [15:04:12]SAM_PROTO_GetShiftState done [15:04:12]FM_GetShiftState done [15:04:12]req_shift_opened done [15:04:12]requested_item shift.open_date is exist - process it [15:04:12]req_shift_open_date [15:04:12]req_shift_open_date done [15:04:12]produce_requested_data done [15:04:12]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69395,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [15:04:12]process_action_free close_receipt [15:04:12]json_value_free [15:04:12]json_value_free done [15:04:12]process_json_proto returns [15:04:12]Send response to host [15:04:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69395,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [15:04:12]free response buf [15:04:12]execute_script done [15:04:12]execute_script returns [15:04:12]free content buf [15:04:12]Sock 10.Close socket [15:04:12]Sock 10.Thread stoped [15:04:16]OFD Sender: No OFD packet to send [15:04:21]OFD Sender: No OFD packet to send [15:04:26]OFD Sender: No OFD packet to send [15:04:26]accept exits with 8 [15:04:26]New connection [15:04:26]New thread 3066711396 created [15:04:26]Thread 3066568036 joined [15:04:26]Waiting for new connection... [15:04:26] Sock 8.Parse request [15:04:26]Sock 8.Check first char [15:04:26]Sock 8.First char is OK [15:04:26]request: POST /json_proto HTTP/1.0 [15:04:26]Method: POST [15:04:26]URL: /json_proto [15:04:26]Method is POST - this is cgi request [15:04:26]url: /json_proto [15:04:26]query_string will be loaded in cgi processing [15:04:26]execute_cgi json_proto POST (null) [15:04:26]execute_cgi path=json_proto method=POST [15:04:26]POST find Content-Length [15:04:26]Host: 172.17.50.3:8080 [15:04:26]Content-Length: 682 [15:04:26]Content-Type: application/json [15:04:26] [15:04:26]POST finish read [15:04:26]Found Content-Length = 682 [15:04:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 17.490, "sum" : 680.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:26]execute_script... [15:04:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 17.490, "sum" : 680.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:26]POST & json_proto [15:04:26]process_json_proto [15:04:26]json parsed OK: [15:04:26]protocol is kg_v1.0 [15:04:26]action value=close_receipt [15:04:26]process_action close_receipt [15:04:26]cmd_close_receipt [15:04:26]MH_GetDate [15:04:26]Write to MH i2c: F0 00 00 84 0D 80 [15:04:26]Write i2c OK [15:04:26]MH_I2C_Read... [15:04:26]Read from MH i2c: F0 [15:04:26]MH_I2C_Read... [15:04:26]Read from MH i2c: F0 09 00 [15:04:26]MH_I2C_Read... [15:04:26]Read from MH i2c: F0 09 00 84 0D 00 FB 1B 15 67 6B 98 1E 66 A2 [15:04:26]GetLastDocTimeStamp 1729436648 [15:04:26]current date 1729436667 [15:04:26]FM_GetShiftState [15:04:26]SAM_PROTO_GetShiftState [15:04:26]wFMCommunicate request_size=4 [15:04:26]MH_SAM_APDU [15:04:26]CAPDU: 80 13 01 00 [15:04:26]Write to MH i2c: E2 08 00 85 0D 80 13 01 00 00 00 00 00 0F [15:04:26]Write i2c OK [15:04:26]MH_I2C_Read... [15:04:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:26]Read from MH i2c: E2 [15:04:26]MH_I2C_Read... [15:04:26]Read from MH i2c: E2 0E 00 [15:04:26]MH_I2C_Read... [15:04:26]Read from MH i2c: E2 0E 00 85 0D 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 15 [15:04:26]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [15:04:26]wFMCommunicate OK [15:04:26]SAM_PROTO_GetShiftState done [15:04:26]FM_GetShiftState done [15:04:26]opened in 1729383220 [15:04:26]opened+sec_in_day 1729469620 [15:04:26]quantity*price = 68036 [15:04:26]sum+1 = 68037 [15:04:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 680.00 Внесено: 680.00 СДАЧА: 0.00 НСП 1% : 6.02 НДС 12% : 72.25 Наличными: 680.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 241 20.10.2024 15:04 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69396 ФПД: 273736425914977 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150427&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69396&fm=273736425914977&tin=02508201610067®Number=0000000000156251&sum=68000 [15:04:27]StoreToDocumentArchive [15:04:27]shift 193 fd 69396 [15:04:27]save to /storage/0193/doc_00069396 [15:04:27]save last doc name /storage/0193/doc_00069396 to /storage/kkm_last_doc_name [15:04:27]save OK [15:04:27]Clear old archive folders... [15:04:27]ProcessDocumentItem done err = 0, tmpTLVsize=250 [15:04:27]tlvbuf is 00205560 [15:04:27]SAM_PROTO_ClearQueue [15:04:27]wFMCommunicate request_size=4 [15:04:27]MH_SAM_APDU [15:04:27]CAPDU: 80 09 00 00 [15:04:27]Write to MH i2c: E2 08 00 92 0D 80 09 00 00 00 00 00 00 11 [15:04:27]Write i2c OK [15:04:27]MH_I2C_Read... [15:04:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:04:27]Read from MH i2c: E2 [15:04:27]MH_I2C_Read... [15:04:27]Read from MH i2c: E2 03 00 [15:04:27]MH_I2C_Read... [15:04:27]Read from MH i2c: E2 03 00 92 0D 00 90 00 13 [15:04:27]RAPDU: 90 00 [15:04:27]wFMCommunicate OK [15:04:27]SAM_PROTO_ClearQueue done [15:04:27]KKMCreateOFDPacket [15:04:27]OFDProtocolAddRootSTLVToBuf [15:04:27]FM_MakeSignedData [15:04:27]FM_MakeSignedData [15:04:27]SAM_PROTO_SignData [15:04:27]wFMCommunicate request_size=4 [15:04:27]MH_SAM_APDU [15:04:27]CAPDU: 80 0D 01 02 [15:04:27]Write to MH i2c: E2 08 00 93 0D 80 0D 01 02 00 00 00 00 19 [15:04:27]Write i2c OK [15:04:27]MH_I2C_Read... [15:04:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:04:27]Read from MH i2c: E2 [15:04:27]MH_I2C_Read... [15:04:27]Read from MH i2c: E2 03 00 [15:04:27]MH_I2C_Read... [15:04:27]Read from MH i2c: E2 03 00 93 0D 00 90 00 14 [15:04:27]RAPDU: 90 00 [15:04:27]wFMCommunicate OK [15:04:27]wFMCommunicate request_size=255 [15:04:27]MH_SAM_APDU [15:04:27]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 52 44 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C4 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 FB 1B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 14 0F 01 00 35 04 06 00 F8 F6 [15:04:27]Write to MH i2c: E2 02 01 94 0D 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 52 44 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C4 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 FB 1B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 14 0F 01 00 35 04 06 00 F8 F6 00 00 CB [15:04:27]Write i2c OK [15:04:27]MH_I2C_Read... [15:04:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:28]Read from MH i2c: E2 [15:04:28]MH_I2C_Read... [15:04:28]Read from MH i2c: E2 03 00 [15:04:28]MH_I2C_Read... [15:04:28]Read from MH i2c: E2 03 00 94 0D 00 90 00 15 [15:04:28]RAPDU: 90 00 [15:04:28]wFMCommunicate OK [15:04:28]wFMCommunicate request_size=9 [15:04:28]MH_SAM_APDU [15:04:28]CAPDU: 80 0D 02 02 04 3A 6D C2 61 [15:04:28]Write to MH i2c: E2 0C 00 95 0D 80 0D 02 02 04 00 3A 6D C2 61 00 00 EE [15:04:28]Write i2c OK [15:04:28]MH_I2C_Read... [15:04:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:28]Read from MH i2c: E2 [15:04:28]MH_I2C_Read... [15:04:28]Read from MH i2c: E2 03 00 [15:04:28]MH_I2C_Read... [15:04:28]Read from MH i2c: E2 03 00 95 0D 00 90 00 16 [15:04:28]RAPDU: 90 00 [15:04:28]wFMCommunicate OK [15:04:28]wFMCommunicate request_size=4 [15:04:28]MH_SAM_APDU [15:04:28]CAPDU: 80 0D 03 02 [15:04:28]Write to MH i2c: E2 08 00 96 0D 80 0D 03 02 00 00 00 00 1E [15:04:28]Write i2c OK [15:04:28]MH_I2C_Read... [15:04:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:04:28]Read from MH i2c: E2 [15:04:28]MH_I2C_Read... [15:04:28]Read from MH i2c: E2 0B 00 [15:04:28]MH_I2C_Read... [15:04:28]Read from MH i2c: E2 0B 00 96 0D 00 40 06 19 24 BD 9F AF 8E 90 00 3B [15:04:28]RAPDU: 40 06 19 24 BD 9F AF 8E 90 00 [15:04:28]wFMCommunicate OK [15:04:28]SAM_PROTO_SignData done [15:04:28]FM_MakeSignedData done [15:04:28]CreateOFDProtocolMessage [15:04:28]wFMCommunicate request_size=4 [15:04:28]MH_SAM_APDU [15:04:28]CAPDU: 80 11 00 00 [15:04:28]Write to MH i2c: E2 08 00 97 0D 80 11 00 00 00 00 00 00 1E [15:04:28]Write i2c OK [15:04:28]MH_I2C_Read... [15:04:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:28]Read from MH i2c: E2 [15:04:28]MH_I2C_Read... [15:04:28]Read from MH i2c: E2 17 00 [15:04:28]MH_I2C_Read... [15:04:28]Read from MH i2c: E2 17 00 97 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 70 [15:04:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:04:28]wFMCommunicate OK [15:04:28]CreateOFDProtocolMessage done [15:04:28]OFDSenderStorePacket 69396 [15:04:28]StoreOFDPacket docnum=69396 [15:04:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 09 24 06 01 78 76 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 52 44 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C4 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 FB 1B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 14 0F 01 00 35 04 06 00 F8 F6 3A 6D C2 61 40 06 19 24 BD 9F AF 8E [15:04:28]CheckFolder [15:04:28]dirname=/storage/ofd_packets [15:04:28]CheckFolder done [15:04:28]ProducePacketName [15:04:28]name=ofd_packets/00069396 [15:04:28]NVStorageSaveData ofd_packets/00069396 [15:04:28]File name is /storage/ofd_packets/00069396 [15:04:28]Write 300 bytes [15:04:28]NVStorageSaveData done [15:04:28]OFDSenderStorePacket done [15:04:28]KKMCreateOFDPacket done [15:04:28]NVStorageSaveData kkm_last_timestamp [15:04:28]File name is /storage/kkm_last_timestamp [15:04:28]Write 4 bytes [15:04:28]NVStorageSaveData done [15:04:28]ExternCall_PrintAddStr [15:04:28]wPrintStart [15:04:28]Write to MH i2c: 01 00 00 98 0D A5 [15:04:28]Write i2c OK [15:04:28]MH_I2C_Read... [15:04:28]Read from MH i2c: 01 [15:04:28]MH_I2C_Read... [15:04:28]Read from MH i2c: 01 07 00 [15:04:28]MH_I2C_Read... [15:04:28]Read from MH i2c: 01 07 00 98 0D 00 00 00 00 00 FF 0F BA [15:04:28]RasterBufferAndPrint [15:04:28]line Счет N : (1)2885121 [15:04:28]line ИНН: 02508201610067 [15:04:28]line Контрольно-Кассовый Чек [15:04:28]line ПРОДАЖА [15:04:28]line ТРК (МРК, ГНК) : 71 [15:04:28]line Товар: 2711129700 [15:04:28]line ГАЗ-К-3 [15:04:28]line 17.490 * 38.90 [15:04:28]line = 680.36 [15:04:28]line НДС 12% НСП 1% [15:04:28]line > о реализуемом товаре [15:04:28]line ОКРУГЛЕНИЕ: -0.36 [15:04:28]line ИТОГО: 680.00 [15:04:28]line Внесено: 680.00 [15:04:28]line СДАЧА: 0.00 [15:04:28]line НСП 1% : 6.02 [15:04:28]line НДС 12% : 72.25 [15:04:28]line Наличными: 680.00 [15:04:28]line Безнал.: 0.00 [15:04:28]line Место: АЗС № 85 "Партнер Нефть" [15:04:28]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:04:28]line СНО: Общий режим [15:04:28]line Чек 241 20.10.2024 15:04 [15:04:28]line Смена: 193 ФФД: 1.0 [15:04:28]line ЗНМ: 0300000167 [15:04:28]line РНМ: 0000000000156251 [15:04:28]line Версия ККМ: v1.0 [15:04:28]line ФМ: 0000000000963346 [15:04:28]line ФД: 69396 [15:04:28]line ФПД: 273736425914977 [15:04:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150427&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69396&fm=273736425914977&tin=02508201610067®Number=0000000000156251&sum=68000 [15:04:28]OFD Sender: Processing packet 69396 [packets to send 18, broken 17] [15:04:28]ProducePacketName [15:04:28]name=ofd_packets/00069396 [15:04:28]OFD Sender: To server: pG, [15:04:28]CommunicateWithHost lk.salyk.kg:30040 [15:04:28]ConnectInit lk.salyk.kg [15:04:28]written 0, free lines is 4095 [15:04:28]Connected sock=10 [15:04:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 09 24 06 01 78 76 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 52 44 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C4 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 FB 1B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 14 0F 01 00 35 04 06 00 F8 F6 3A 6D C2 61 40 06 19 24 BD 9F AF 8E [15:04:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 36 F4 47 00 80 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 14 0F 01 00 F4 03 04 00 A1 C5 14 67 B6 04 01 00 00 E6 E1 0A 64 48 5E EC 5F [15:04:28]CommunicateWithHost err = 0 [15:04:28]CheckOFDResponse [15:04:28]1017 (14) - 77093643461234 [15:04:28]1041 (16) - 0000000000963346 [15:04:28]1040 (4) - 69396 [15:04:28]1012 (4) - 20.10.2024 08:56 [15:04:28]1206 (1) - 0 [15:04:28]OFD Sender: Remove packet 69396 [15:04:28]ProducePacketName [15:04:28]name=ofd_packets/00069396 [15:04:28]NVStorageDeleteData [15:04:28]Write to MH i2c: 01 00 00 C3 0D D0 [15:04:28]Write i2c OK [15:04:28]MH_I2C_Read... [15:04:28]Read from MH i2c: 01 [15:04:28]MH_I2C_Read... [15:04:28]Read from MH i2c: 01 07 00 [15:04:28]MH_I2C_Read... [15:04:28]Read from MH i2c: 01 07 00 C3 0D 00 00 00 00 00 E3 0C C6 [15:04:28]RasterBufferAndPrint [15:04:28]line [15:04:28]line [15:04:28]line [15:04:28]line [15:04:28]line [15:04:28]written 0, free lines is 3305 [15:04:28]MH_Cut [15:04:28]Write to MH i2c: D1 01 00 CA 0D 01 A9 [15:04:28]Write i2c OK [15:04:28]MH_I2C_Read... [15:04:28]Read from MH i2c: D1 [15:04:28]MH_I2C_Read... [15:04:28]Read from MH i2c: D1 01 00 [15:04:28]MH_I2C_Read... [15:04:28]Read from MH i2c: D1 01 00 CA 0D 00 A8 [15:04:28]Write to MH i2c: 01 00 00 CB 0D D8 [15:04:28]Write i2c OK [15:04:28]MH_I2C_Read... [15:04:29]OFD Sender: No OFD packet to send [15:04:29]*** Cut start [15:04:29]*** Partial cut [15:04:29]*** CUTSNS_PIN = 1 [15:04:29]*** CUTSNS_PIN = 0 [15:04:29]*** Brake cut motor [15:04:30]Read from MH i2c: 01 [15:04:30]MH_I2C_Read... [15:04:30]*** Stop cut motor [15:04:30]*** Cut end [15:04:30]Read from MH i2c: 01 07 00 [15:04:30]MH_I2C_Read... [15:04:30]Read from MH i2c: 01 07 00 CB 0D 00 00 00 00 00 FF 0F ED [15:04:30]process_action close_receipt done [15:04:30]requested_data is exist [15:04:30]produce_requested_data [15:04:30]requested_item fm.sn is exist - process it [15:04:30]wFMCommunicate request_size=4 [15:04:30]MH_SAM_APDU [15:04:30]CAPDU: 80 11 00 00 [15:04:30]Write to MH i2c: E2 08 00 CC 0D 80 11 00 00 00 00 00 00 53 [15:04:30]Write i2c OK [15:04:30]MH_I2C_Read... [15:04:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:30]Read from MH i2c: E2 [15:04:30]MH_I2C_Read... [15:04:30]Read from MH i2c: E2 17 00 [15:04:30]MH_I2C_Read... [15:04:30]Read from MH i2c: E2 17 00 CC 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A5 [15:04:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:04:30]wFMCommunicate OK [15:04:30]requested_item fd.num is exist - process it [15:04:30]SAM_PROTO_GetFieldsCounters [15:04:30]wFMCommunicate request_size=4 [15:04:30]MH_SAM_APDU [15:04:30]CAPDU: 80 13 00 00 [15:04:30]Write to MH i2c: E2 08 00 CD 0D 80 13 00 00 00 00 00 00 56 [15:04:30]Write i2c OK [15:04:30]MH_I2C_Read... [15:04:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:04:30]Read from MH i2c: E2 [15:04:30]MH_I2C_Read... [15:04:30]Read from MH i2c: E2 62 00 [15:04:30]MH_I2C_Read... [15:04:30]Read from MH i2c: E2 62 00 CD 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 14 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [15:04:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 14 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:04:30]wFMCommunicate OK [15:04:30]SAM_PROTO_GetFieldsCounters done [15:04:30]requested_item shift.num is exist - process it [15:04:30]requested_item shift.opened is exist - process it [15:04:30]req_shift_opened [15:04:30]FM_GetShiftState [15:04:30]SAM_PROTO_GetShiftState [15:04:30]wFMCommunicate request_size=4 [15:04:30]MH_SAM_APDU [15:04:30]CAPDU: 80 13 01 00 [15:04:30]Write to MH i2c: E2 08 00 CE 0D 80 13 01 00 00 00 00 00 58 [15:04:30]Write i2c OK [15:04:30]MH_I2C_Read... [15:04:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:30]Read from MH i2c: E2 [15:04:30]MH_I2C_Read... [15:04:30]Read from MH i2c: E2 0E 00 [15:04:30]MH_I2C_Read... [15:04:30]Read from MH i2c: E2 0E 00 CE 0D 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 5E [15:04:30]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [15:04:30]wFMCommunicate OK [15:04:30]SAM_PROTO_GetShiftState done [15:04:30]FM_GetShiftState done [15:04:30]req_shift_opened done [15:04:30]requested_item shift.open_date is exist - process it [15:04:30]req_shift_open_date [15:04:30]req_shift_open_date done [15:04:30]produce_requested_data done [15:04:30]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69396,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [15:04:30]process_action_free close_receipt [15:04:30]json_value_free [15:04:30]json_value_free done [15:04:30]process_json_proto returns [15:04:30]Send response to host [15:04:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69396,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [15:04:30]free response buf [15:04:30]execute_script done [15:04:30]execute_script returns [15:04:30]free content buf [15:04:30]Sock 8.Close socket [15:04:30]Sock 8.Thread stoped [15:04:34]OFD Sender: No OFD packet to send [15:04:39]OFD Sender: No OFD packet to send [15:04:44]OFD Sender: No OFD packet to send [15:04:49]OFD Sender: No OFD packet to send [15:04:54]OFD Sender: No OFD packet to send [15:04:59]OFD Sender: No OFD packet to send [15:05:04]OFD Sender: No OFD packet to send [15:05:09]OFD Sender: No OFD packet to send [15:05:14]OFD Sender: No OFD packet to send [15:05:19]OFD Sender: No OFD packet to send [15:05:24]OFD Sender: No OFD packet to send [15:05:29]OFD Sender: No OFD packet to send [15:05:32]accept exits with 9 [15:05:32]New connection [15:05:32]New thread 3066568036 created [15:05:32]Thread 3066711396 joined [15:05:32]Waiting for new connection... [15:05:32] Sock 9.Parse request [15:05:32]Sock 9.Check first char [15:05:32]Sock 9.First char is OK [15:05:32]request: POST /json_proto HTTP/1.0 [15:05:32]Method: POST [15:05:32]URL: /json_proto [15:05:32]Method is POST - this is cgi request [15:05:32]url: /json_proto [15:05:32]query_string will be loaded in cgi processing [15:05:32]execute_cgi json_proto POST (null) [15:05:32]execute_cgi path=json_proto method=POST [15:05:32]POST find Content-Length [15:05:32]Host: 172.17.50.3:8080 [15:05:32]Content-Length: 685 [15:05:32]Content-Type: application/json [15:05:32] [15:05:32]POST finish read [15:05:32]Found Content-Length = 685 [15:05:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 10.370, "sum" : 800.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:32]execute_script... [15:05: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)2885122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 10.370, "sum" : 800.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:32]POST & json_proto [15:05:32]process_json_proto [15:05:32]json parsed OK: [15:05:32]protocol is kg_v1.0 [15:05:32]action value=close_receipt [15:05:32]process_action close_receipt [15:05:32]cmd_close_receipt [15:05:32]MH_GetDate [15:05:32]Write to MH i2c: F0 00 00 CF 0D CB [15:05:32]Write i2c OK [15:05:32]MH_I2C_Read... [15:05:32]Read from MH i2c: F0 [15:05:32]MH_I2C_Read... [15:05:32]Read from MH i2c: F0 09 00 [15:05:32]MH_I2C_Read... [15:05:32]Read from MH i2c: F0 09 00 CF 0D 00 3D 1C 15 67 6B 98 1E 66 30 [15:05:32]GetLastDocTimeStamp 1729436667 [15:05:32]current date 1729436733 [15:05:32]FM_GetShiftState [15:05:32]SAM_PROTO_GetShiftState [15:05:32]wFMCommunicate request_size=4 [15:05:32]MH_SAM_APDU [15:05:32]CAPDU: 80 13 01 00 [15:05:32]Write to MH i2c: E2 08 00 D0 0D 80 13 01 00 00 00 00 00 5A [15:05:32]Write i2c OK [15:05:32]MH_I2C_Read... [15:05:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:32]Read from MH i2c: E2 [15:05:32]MH_I2C_Read... [15:05:32]Read from MH i2c: E2 0E 00 [15:05:32]MH_I2C_Read... [15:05:32]Read from MH i2c: E2 0E 00 D0 0D 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 60 [15:05:32]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [15:05:32]wFMCommunicate OK [15:05:32]SAM_PROTO_GetShiftState done [15:05:32]FM_GetShiftState done [15:05:32]opened in 1729383220 [15:05:32]opened+sec_in_day 1729469620 [15:05:32]quantity*price = 80056 [15:05:32]sum+1 = 80057 [15:05:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.01 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 242 20.10.2024 15:05 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69397 ФПД: 169550847774030 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150533&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69397&fm=169550847774030&tin=02508201610067®Number=0000000000156251&sum=80000 [15:05:33]StoreToDocumentArchive [15:05:33]shift 193 fd 69397 [15:05:33]save to /storage/0193/doc_00069397 [15:05:33]save last doc name /storage/0193/doc_00069397 to /storage/kkm_last_doc_name [15:05:33]save OK [15:05:33]Clear old archive folders... [15:05:33]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:05:33]tlvbuf is B6E869D0 [15:05:33]SAM_PROTO_ClearQueue [15:05:33]wFMCommunicate request_size=4 [15:05:33]MH_SAM_APDU [15:05:33]CAPDU: 80 09 00 00 [15:05:33]Write to MH i2c: E2 08 00 DD 0D 80 09 00 00 00 00 00 00 5C [15:05:33]Write i2c OK [15:05:33]MH_I2C_Read... [15:05:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:05:33]Read from MH i2c: E2 [15:05:33]MH_I2C_Read... [15:05:33]Read from MH i2c: E2 03 00 [15:05:33]MH_I2C_Read... [15:05:33]Read from MH i2c: E2 03 00 DD 0D 00 90 00 5E [15:05:33]RAPDU: 90 00 [15:05:33]wFMCommunicate OK [15:05:33]SAM_PROTO_ClearQueue done [15:05:33]KKMCreateOFDPacket [15:05:33]OFDProtocolAddRootSTLVToBuf [15:05:33]FM_MakeSignedData [15:05:33]FM_MakeSignedData [15:05:33]SAM_PROTO_SignData [15:05:33]wFMCommunicate request_size=4 [15:05:33]MH_SAM_APDU [15:05:33]CAPDU: 80 0D 01 02 [15:05:33]Write to MH i2c: E2 08 00 DE 0D 80 0D 01 02 00 00 00 00 64 [15:05:33]Write i2c OK [15:05:33]MH_I2C_Read... [15:05:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:05:33]Read from MH i2c: E2 [15:05:33]MH_I2C_Read... [15:05:33]Read from MH i2c: E2 03 00 [15:05:33]MH_I2C_Read... [15:05:33]Read from MH i2c: E2 03 00 DE 0D 00 90 00 5F [15:05:33]RAPDU: 90 00 [15:05:33]wFMCommunicate OK [15:05:33]wFMCommunicate request_size=255 [15:05:33]MH_SAM_APDU [15:05:33]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 3D 1C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 15 0F 01 [15:05:33]Write to MH i2c: E2 02 01 DF 0D 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 3D 1C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 15 0F 01 00 00 F0 [15:05:33]Write i2c OK [15:05:33]MH_I2C_Read... [15:05:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:34]Read from MH i2c: E2 [15:05:34]MH_I2C_Read... [15:05:34]Read from MH i2c: E2 03 00 [15:05:34]MH_I2C_Read... [15:05:34]Read from MH i2c: E2 03 00 DF 0D 00 90 00 60 [15:05:34]RAPDU: 90 00 [15:05:34]wFMCommunicate OK [15:05:34]wFMCommunicate request_size=16 [15:05:34]MH_SAM_APDU [15:05:34]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 9A 34 A2 0D 8D 4E [15:05:34]Write to MH i2c: E2 13 00 E0 0D 80 0D 02 02 0B 00 00 35 04 06 00 9A 34 A2 0D 8D 4E 00 00 14 [15:05:34]Write i2c OK [15:05:34]MH_I2C_Read... [15:05:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:34]Read from MH i2c: E2 [15:05:34]MH_I2C_Read... [15:05:34]Read from MH i2c: E2 03 00 [15:05:34]MH_I2C_Read... [15:05:34]Read from MH i2c: E2 03 00 E0 0D 00 90 00 61 [15:05:34]RAPDU: 90 00 [15:05:34]wFMCommunicate OK [15:05:34]wFMCommunicate request_size=4 [15:05:34]MH_SAM_APDU [15:05:34]CAPDU: 80 0D 03 02 [15:05:34]Write to MH i2c: E2 08 00 E1 0D 80 0D 03 02 00 00 00 00 69 [15:05:34]Write i2c OK [15:05:34]MH_I2C_Read... [15:05:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:05:34]Read from MH i2c: E2 [15:05:34]MH_I2C_Read... [15:05:34]Read from MH i2c: E2 0B 00 [15:05:34]MH_I2C_Read... [15:05:34]Read from MH i2c: E2 0B 00 E1 0D 00 52 23 AF 14 7B A9 D6 BF 90 00 5B [15:05:34]RAPDU: 52 23 AF 14 7B A9 D6 BF 90 00 [15:05:34]wFMCommunicate OK [15:05:34]SAM_PROTO_SignData done [15:05:34]FM_MakeSignedData done [15:05:34]CreateOFDProtocolMessage [15:05:34]wFMCommunicate request_size=4 [15:05:34]MH_SAM_APDU [15:05:34]CAPDU: 80 11 00 00 [15:05:34]Write to MH i2c: E2 08 00 E2 0D 80 11 00 00 00 00 00 00 69 [15:05:34]Write i2c OK [15:05:34]MH_I2C_Read... [15:05:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:34]Read from MH i2c: E2 [15:05:34]MH_I2C_Read... [15:05:34]Read from MH i2c: E2 17 00 [15:05:34]MH_I2C_Read... [15:05:34]Read from MH i2c: E2 17 00 E2 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BB [15:05:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:05:34]wFMCommunicate OK [15:05:34]CreateOFDProtocolMessage done [15:05:34]OFDSenderStorePacket 69397 [15:05:34]StoreOFDPacket docnum=69397 [15:05:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 76 40 0D 01 44 D7 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 3D 1C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 15 0F 01 00 35 04 06 00 9A 34 A2 0D 8D 4E 52 23 AF 14 7B A9 D6 BF [15:05:34]CheckFolder [15:05:34]dirname=/storage/ofd_packets [15:05:34]CheckFolder done [15:05:34]ProducePacketName [15:05:34]name=ofd_packets/00069397 [15:05:34]NVStorageSaveData ofd_packets/00069397 [15:05:34]File name is /storage/ofd_packets/00069397 [15:05:34]Write 307 bytes [15:05:34]NVStorageSaveData done [15:05:34]OFDSenderStorePacket done [15:05:34]KKMCreateOFDPacket done [15:05:34]NVStorageSaveData kkm_last_timestamp [15:05:34]File name is /storage/kkm_last_timestamp [15:05:34]Write 4 bytes [15:05:34]NVStorageSaveData done [15:05:34]ExternCall_PrintAddStr [15:05:34]wPrintStart [15:05:34]Write to MH i2c: 01 00 00 E3 0D F0 [15:05:34]Write i2c OK [15:05:34]MH_I2C_Read... [15:05:34]Read from MH i2c: 01 [15:05:34]MH_I2C_Read... [15:05:34]Read from MH i2c: 01 07 00 [15:05:34]MH_I2C_Read... [15:05:34]Read from MH i2c: 01 07 00 E3 0D 00 00 00 00 00 FF 0F 05 [15:05:34]RasterBufferAndPrint [15:05:34]line Счет N : (1)2885122 [15:05:34]line ИНН: 02508201610067 [15:05:34]line Контрольно-Кассовый Чек [15:05:34]line ПРОДАЖА [15:05:34]line ТРК (МРК, ГНК) : 31 [15:05:34]line Товар: 2710194240 [15:05:34]line D-ENERGY Дт-К-2 [15:05:34]line 10.370 * 77.20 [15:05:34]line = 800.56 [15:05:34]line НДС 12% НСП 1% [15:05:34]line > о реализуемом товаре [15:05:34]line ОКРУГЛЕНИЕ: -0.56 [15:05:34]line ИТОГО: 800.00 [15:05:34]line Внесено: 800.00 [15:05:34]line СДАЧА: 0.00 [15:05:34]line НСП 1% : 7.08 [15:05:34]line НДС 12% : 85.01 [15:05:34]line Наличными: 800.00 [15:05:34]line Безнал.: 0.00 [15:05:34]line Место: АЗС № 85 "Партнер Нефть" [15:05:34]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:05:34]line СНО: Общий режим [15:05:34]line Чек 242 20.10.2024 15:05 [15:05:34]line Смена: 193 ФФД: 1.0 [15:05:34]line ЗНМ: 0300000167 [15:05:34]line РНМ: 0000000000156251 [15:05:34]line Версия ККМ: v1.0 [15:05:34]line ФМ: 0000000000963346 [15:05:34]line ФД: 69397 [15:05:34]line ФПД: 169550847774030 [15:05:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150533&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69397&fm=169550847774030&tin=02508201610067®Number=0000000000156251&sum=80000 [15:05:34]OFD Sender: Processing packet 69397 [packets to send 18, broken 17] [15:05:34]ProducePacketName [15:05:34]name=ofd_packets/00069397 [15:05:34]OFD Sender: To server: pG, [15:05:34]CommunicateWithHost lk.salyk.kg:30040 [15:05:34]ConnectInit lk.salyk.kg [15:05:34]written 0, free lines is 4095 [15:05:34]Connected sock=10 [15:05:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 76 40 0D 01 44 D7 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 3D 1C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 15 0F 01 00 35 04 06 00 9A 34 A2 0D 8D 4E 52 23 AF 14 7B A9 D6 BF [15:05:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 D8 19 47 00 F2 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 15 0F 01 00 F4 03 04 00 E3 C5 14 67 B6 04 01 00 00 FB 9F 37 C2 46 BC A4 C9 [15:05:34]CommunicateWithHost err = 0 [15:05:34]CheckOFDResponse [15:05:34]1017 (14) - 77093643461234 [15:05:34]1041 (16) - 0000000000963346 [15:05:34]1040 (4) - 69397 [15:05:34]1012 (4) - 20.10.2024 08:57 [15:05:34]1206 (1) - 0 [15:05:34]OFD Sender: Remove packet 69397 [15:05:34]ProducePacketName [15:05:34]name=ofd_packets/00069397 [15:05:34]NVStorageDeleteData [15:05:35]Write to MH i2c: 01 00 00 0E 0E 1C [15:05:35]Write i2c OK [15:05:35]MH_I2C_Read... [15:05:35]Read from MH i2c: 01 [15:05:35]MH_I2C_Read... [15:05:35]Read from MH i2c: 01 07 00 [15:05:35]MH_I2C_Read... [15:05:35]Read from MH i2c: 01 07 00 0E 0E 00 00 00 00 00 E9 0C 18 [15:05:35]RasterBufferAndPrint [15:05:35]line [15:05:35]line [15:05:35]line [15:05:35]line [15:05:35]line [15:05:35]written 0, free lines is 3311 [15:05:35]MH_Cut [15:05:35]Write to MH i2c: D1 01 00 15 0E 01 F5 [15:05:35]Write i2c OK [15:05:35]MH_I2C_Read... [15:05:35]Read from MH i2c: D1 [15:05:35]MH_I2C_Read... [15:05:35]Read from MH i2c: D1 01 00 [15:05:35]MH_I2C_Read... [15:05:35]Read from MH i2c: D1 01 00 15 0E 00 F4 [15:05:35]Write to MH i2c: 01 00 00 16 0E 24 [15:05:35]Write i2c OK [15:05:35]MH_I2C_Read... [15:05:35]OFD Sender: No OFD packet to send [15:05:35]*** Cut start [15:05:35]*** Partial cut [15:05:35]*** CUTSNS_PIN = 1 [15:05:35]*** CUTSNS_PIN = 0 [15:05:36]*** Brake cut motor [15:05:36]Read from MH i2c: 01 [15:05:36]MH_I2C_Read... [15:05:36]*** Stop cut motor [15:05:36]*** Cut end [15:05:36]Read from MH i2c: 01 07 00 [15:05:36]MH_I2C_Read... [15:05:36]Read from MH i2c: 01 07 00 16 0E 00 00 00 00 00 FF 0F 39 [15:05:36]process_action close_receipt done [15:05:36]requested_data is exist [15:05:36]produce_requested_data [15:05:36]requested_item fm.sn is exist - process it [15:05:36]wFMCommunicate request_size=4 [15:05:36]MH_SAM_APDU [15:05:36]CAPDU: 80 11 00 00 [15:05:36]Write to MH i2c: E2 08 00 17 0E 80 11 00 00 00 00 00 00 9F [15:05:36]Write i2c OK [15:05:36]MH_I2C_Read... [15:05:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:36]Read from MH i2c: E2 [15:05:36]MH_I2C_Read... [15:05:36]Read from MH i2c: E2 17 00 [15:05:36]MH_I2C_Read... [15:05:36]Read from MH i2c: E2 17 00 17 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F1 [15:05:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:05:36]wFMCommunicate OK [15:05:36]requested_item fd.num is exist - process it [15:05:36]SAM_PROTO_GetFieldsCounters [15:05:36]wFMCommunicate request_size=4 [15:05:36]MH_SAM_APDU [15:05:36]CAPDU: 80 13 00 00 [15:05:36]Write to MH i2c: E2 08 00 18 0E 80 13 00 00 00 00 00 00 A2 [15:05:36]Write i2c OK [15:05:36]MH_I2C_Read... [15:05:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:05:36]Read from MH i2c: E2 [15:05:36]MH_I2C_Read... [15:05:36]Read from MH i2c: E2 62 00 [15:05:36]MH_I2C_Read... [15:05:36]Read from MH i2c: E2 62 00 18 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 15 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [15:05:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 15 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:05:36]wFMCommunicate OK [15:05:36]SAM_PROTO_GetFieldsCounters done [15:05:36]requested_item shift.num is exist - process it [15:05:36]requested_item shift.opened is exist - process it [15:05:36]req_shift_opened [15:05:36]FM_GetShiftState [15:05:36]SAM_PROTO_GetShiftState [15:05:36]wFMCommunicate request_size=4 [15:05:36]MH_SAM_APDU [15:05:36]CAPDU: 80 13 01 00 [15:05:36]Write to MH i2c: E2 08 00 19 0E 80 13 01 00 00 00 00 00 A4 [15:05:36]Write i2c OK [15:05:36]MH_I2C_Read... [15:05:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:36]Read from MH i2c: E2 [15:05:36]MH_I2C_Read... [15:05:36]Read from MH i2c: E2 0E 00 [15:05:36]MH_I2C_Read... [15:05:36]Read from MH i2c: E2 0E 00 19 0E 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 AA [15:05:36]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [15:05:36]wFMCommunicate OK [15:05:36]SAM_PROTO_GetShiftState done [15:05:36]FM_GetShiftState done [15:05:36]req_shift_opened done [15:05:36]requested_item shift.open_date is exist - process it [15:05:36]req_shift_open_date [15:05:36]req_shift_open_date done [15:05:36]produce_requested_data done [15:05:36]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69397,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [15:05:36]process_action_free close_receipt [15:05:36]json_value_free [15:05:36]json_value_free done [15:05:36]process_json_proto returns [15:05:36]Send response to host [15:05:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69397,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [15:05:36]free response buf [15:05:36]execute_script done [15:05:36]execute_script returns [15:05:36]free content buf [15:05:36]Sock 9.Close socket [15:05:36]Sock 9.Thread stoped [15:05:40]OFD Sender: No OFD packet to send [15:05:45]OFD Sender: No OFD packet to send [15:05:50]OFD Sender: No OFD packet to send [15:05:55]OFD Sender: No OFD packet to send [15:06:00]OFD Sender: No OFD packet to send [15:06:05]OFD Sender: No OFD packet to send [15:06:10]OFD Sender: No OFD packet to send [15:06:15]OFD Sender: No OFD packet to send [15:06:20]OFD Sender: No OFD packet to send [15:06:25]OFD Sender: No OFD packet to send [15:06:30]OFD Sender: No OFD packet to send [15:06:35]OFD Sender: No OFD packet to send [15:06:40]OFD Sender: No OFD packet to send [15:06:45]OFD Sender: No OFD packet to send [15:06:50]OFD Sender: No OFD packet to send [15:06:55]OFD Sender: No OFD packet to send [15:07:00]OFD Sender: No OFD packet to send [15:07:05]OFD Sender: No OFD packet to send [15:07:10]OFD Sender: No OFD packet to send [15:07:15]OFD Sender: No OFD packet to send [15:07:20]OFD Sender: No OFD packet to send [15:07:25]OFD Sender: No OFD packet to send [15:07:30]OFD Sender: No OFD packet to send [15:07:35]OFD Sender: No OFD packet to send [15:07:40]OFD Sender: No OFD packet to send [15:07:45]OFD Sender: No OFD packet to send [15:07:50]OFD Sender: No OFD packet to send [15:07:55]OFD Sender: No OFD packet to send [15:08:00]OFD Sender: No OFD packet to send [15:08:05]OFD Sender: No OFD packet to send [15:08:10]OFD Sender: No OFD packet to send [15:08:15]OFD Sender: No OFD packet to send [15:08:17]accept exits with 8 [15:08:17]New connection [15:08:17]New thread 3066711396 created [15:08:17]Thread 3066568036 joined [15:08:17]Waiting for new connection... [15:08:17] Sock 8.Parse request [15:08:17]Sock 8.Check first char [15:08:17]Sock 8.First char is OK [15:08:17]request: POST /json_proto HTTP/1.0 [15:08:17]Method: POST [15:08:17]URL: /json_proto [15:08:17]Method is POST - this is cgi request [15:08:17]url: /json_proto [15:08:17]query_string will be loaded in cgi processing [15:08:17]execute_cgi json_proto POST (null) [15:08:17]execute_cgi path=json_proto method=POST [15:08:17]POST find Content-Length [15:08:17]Host: 172.17.50.3:8080 [15:08:17]Content-Length: 678 [15:08:17]Content-Type: application/json [15:08:17] [15:08:17]POST finish read [15:08:17]Found Content-Length = 678 [15:08:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:17]execute_script... [15:08:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:17]POST & json_proto [15:08:17]process_json_proto [15:08:17]json parsed OK: [15:08:17]protocol is kg_v1.0 [15:08:17]action value=close_receipt [15:08:17]process_action close_receipt [15:08:17]cmd_close_receipt [15:08:17]MH_GetDate [15:08:17]Write to MH i2c: F0 00 00 1A 0E 17 [15:08:17]Write i2c OK [15:08:17]MH_I2C_Read... [15:08:17]Read from MH i2c: F0 [15:08:17]MH_I2C_Read... [15:08:17]Read from MH i2c: F0 09 00 [15:08:17]MH_I2C_Read... [15:08:17]Read from MH i2c: F0 09 00 1A 0E 00 E1 1C 15 67 6B 98 1E 66 20 [15:08:17]GetLastDocTimeStamp 1729436733 [15:08:17]current date 1729436897 [15:08:17]FM_GetShiftState [15:08:17]SAM_PROTO_GetShiftState [15:08:17]wFMCommunicate request_size=4 [15:08:17]MH_SAM_APDU [15:08:17]CAPDU: 80 13 01 00 [15:08:17]Write to MH i2c: E2 08 00 1B 0E 80 13 01 00 00 00 00 00 A6 [15:08:17]Write i2c OK [15:08:17]MH_I2C_Read... [15:08:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:17]Read from MH i2c: E2 [15:08:17]MH_I2C_Read... [15:08:17]Read from MH i2c: E2 0E 00 [15:08:17]MH_I2C_Read... [15:08:17]Read from MH i2c: E2 0E 00 1B 0E 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 AC [15:08:17]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [15:08:17]wFMCommunicate OK [15:08:17]SAM_PROTO_GetShiftState done [15:08:17]FM_GetShiftState done [15:08:17]opened in 1729383220 [15:08:17]opened+sec_in_day 1729469620 [15:08:17]quantity*price = 20003 [15:08:17]sum+1 = 20004 [15:08:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 243 20.10.2024 15:08 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69398 ФПД: 63662685273425 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150817&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69398&fm=63662685273425&tin=02508201610067®Number=0000000000156251&sum=20000 [15:08:18]StoreToDocumentArchive [15:08:18]shift 193 fd 69398 [15:08:18]save to /storage/0193/doc_00069398 [15:08:18]save last doc name /storage/0193/doc_00069398 to /storage/kkm_last_doc_name [15:08:18]save OK [15:08:18]Clear old archive folders... [15:08:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:08:18]tlvbuf is 00206240 [15:08:18]SAM_PROTO_ClearQueue [15:08:18]wFMCommunicate request_size=4 [15:08:18]MH_SAM_APDU [15:08:18]CAPDU: 80 09 00 00 [15:08:18]Write to MH i2c: E2 08 00 28 0E 80 09 00 00 00 00 00 00 A8 [15:08:18]Write i2c OK [15:08:18]MH_I2C_Read... [15:08:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:08:18]Read from MH i2c: E2 [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: E2 03 00 [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: E2 03 00 28 0E 00 90 00 AA [15:08:18]RAPDU: 90 00 [15:08:18]wFMCommunicate OK [15:08:18]SAM_PROTO_ClearQueue done [15:08:18]KKMCreateOFDPacket [15:08:18]OFDProtocolAddRootSTLVToBuf [15:08:18]FM_MakeSignedData [15:08:18]FM_MakeSignedData [15:08:18]SAM_PROTO_SignData [15:08:18]wFMCommunicate request_size=4 [15:08:18]MH_SAM_APDU [15:08:18]CAPDU: 80 0D 01 02 [15:08:18]Write to MH i2c: E2 08 00 29 0E 80 0D 01 02 00 00 00 00 B0 [15:08:18]Write i2c OK [15:08:18]MH_I2C_Read... [15:08:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:08:18]Read from MH i2c: E2 [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: E2 03 00 [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: E2 03 00 29 0E 00 90 00 AB [15:08:18]RAPDU: 90 00 [15:08:18]wFMCommunicate OK [15:08:18]wFMCommunicate request_size=255 [15:08:18]MH_SAM_APDU [15:08:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 E1 1C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 16 0F 01 00 35 04 06 00 39 [15:08:18]Write to MH i2c: E2 02 01 2A 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 E1 1C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 16 0F 01 00 35 04 06 00 39 00 00 87 [15:08:18]Write i2c OK [15:08:18]MH_I2C_Read... [15:08:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:18]Read from MH i2c: E2 [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: E2 03 00 [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: E2 03 00 2A 0E 00 90 00 AC [15:08:18]RAPDU: 90 00 [15:08:18]wFMCommunicate OK [15:08:18]wFMCommunicate request_size=10 [15:08:18]MH_SAM_APDU [15:08:18]CAPDU: 80 0D 02 02 05 E6 9F BD BD 51 [15:08:18]Write to MH i2c: E2 0D 00 2B 0E 80 0D 02 02 05 00 E6 9F BD BD 51 00 00 0D [15:08:18]Write i2c OK [15:08:18]MH_I2C_Read... [15:08:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:18]Read from MH i2c: E2 [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: E2 03 00 [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: E2 03 00 2B 0E 00 90 00 AD [15:08:18]RAPDU: 90 00 [15:08:18]wFMCommunicate OK [15:08:18]wFMCommunicate request_size=4 [15:08:18]MH_SAM_APDU [15:08:18]CAPDU: 80 0D 03 02 [15:08:18]Write to MH i2c: E2 08 00 2C 0E 80 0D 03 02 00 00 00 00 B5 [15:08:18]Write i2c OK [15:08:18]MH_I2C_Read... [15:08:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:08:18]Read from MH i2c: E2 [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: E2 0B 00 [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: E2 0B 00 2C 0E 00 C9 5D D6 EE 8C D8 EE 07 90 00 F9 [15:08:18]RAPDU: C9 5D D6 EE 8C D8 EE 07 90 00 [15:08:18]wFMCommunicate OK [15:08:18]SAM_PROTO_SignData done [15:08:18]FM_MakeSignedData done [15:08:18]CreateOFDProtocolMessage [15:08:18]wFMCommunicate request_size=4 [15:08:18]MH_SAM_APDU [15:08:18]CAPDU: 80 11 00 00 [15:08:18]Write to MH i2c: E2 08 00 2D 0E 80 11 00 00 00 00 00 00 B5 [15:08:18]Write i2c OK [15:08:18]MH_I2C_Read... [15:08:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:18]Read from MH i2c: E2 [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: E2 17 00 [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: E2 17 00 2D 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 07 [15:08:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:08:18]wFMCommunicate OK [15:08:18]CreateOFDProtocolMessage done [15:08:18]OFDSenderStorePacket 69398 [15:08:18]StoreOFDPacket docnum=69398 [15:08:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 EF 36 07 01 26 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 E1 1C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 16 0F 01 00 35 04 06 00 39 E6 9F BD BD 51 C9 5D D6 EE 8C D8 EE 07 [15:08:18]CheckFolder [15:08:18]dirname=/storage/ofd_packets [15:08:18]CheckFolder done [15:08:18]ProducePacketName [15:08:18]name=ofd_packets/00069398 [15:08:18]NVStorageSaveData ofd_packets/00069398 [15:08:18]File name is /storage/ofd_packets/00069398 [15:08:18]Write 301 bytes [15:08:18]NVStorageSaveData done [15:08:18]OFDSenderStorePacket done [15:08:18]KKMCreateOFDPacket done [15:08:18]NVStorageSaveData kkm_last_timestamp [15:08:18]File name is /storage/kkm_last_timestamp [15:08:18]Write 4 bytes [15:08:18]NVStorageSaveData done [15:08:18]ExternCall_PrintAddStr [15:08:18]wPrintStart [15:08:18]Write to MH i2c: 01 00 00 2E 0E 3C [15:08:18]Write i2c OK [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: 01 [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: 01 07 00 [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: 01 07 00 2E 0E 00 00 00 00 00 FF 0F 51 [15:08:18]RasterBufferAndPrint [15:08:18]line Счет N : (1)2885124 [15:08:18]line ИНН: 02508201610067 [15:08:18]line Контрольно-Кассовый Чек [15:08:18]line ПРОДАЖА [15:08:18]line ТРК (МРК, ГНК) : 42 [15:08:18]line Товар: 2710124130 [15:08:18]line Аи-92-К-5 [15:08:18]line 2.990 * 66.90 [15:08:18]line = 200.03 [15:08:18]line НДС 12% НСП 1% [15:08:18]line > о реализуемом товаре [15:08:18]line ОКРУГЛЕНИЕ: -0.03 [15:08:18]line ИТОГО: 200.00 [15:08:18]line Внесено: 200.00 [15:08:18]line СДАЧА: 0.00 [15:08:18]line НСП 1% : 1.77 [15:08:18]line НДС 12% : 21.24 [15:08:18]line Наличными: 200.00 [15:08:18]line Безнал.: 0.00 [15:08:18]line Место: АЗС № 85 "Партнер Нефть" [15:08:18]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:08:18]line СНО: Общий режим [15:08:18]line Чек 243 20.10.2024 15:08 [15:08:18]line Смена: 193 ФФД: 1.0 [15:08:18]line ЗНМ: 0300000167 [15:08:18]line РНМ: 0000000000156251 [15:08:18]line Версия ККМ: v1.0 [15:08:18]line ФМ: 0000000000963346 [15:08:18]line ФД: 69398 [15:08:18]line ФПД: 63662685273425 [15:08:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150817&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69398&fm=63662685273425&tin=02508201610067®Number=0000000000156251&sum=20000 [15:08:19]OFD Sender: Processing packet 69398 [packets to send 18, broken 17] [15:08:19]ProducePacketName [15:08:19]name=ofd_packets/00069398 [15:08:19]OFD Sender: To server: pG, [15:08:19]CommunicateWithHost lk.salyk.kg:30040 [15:08:19]ConnectInit lk.salyk.kg [15:08:19]written 0, free lines is 4095 [15:08:19]Connected sock=9 [15:08:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 EF 36 07 01 26 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 E1 1C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 16 0F 01 00 35 04 06 00 39 E6 9F BD BD 51 C9 5D D6 EE 8C D8 EE 07 [15:08:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 45 B4 47 00 FE 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 16 0F 01 00 F4 03 04 00 88 C6 14 67 B6 04 01 00 00 14 D5 A8 4F 56 5D CB E0 [15:08:19]CommunicateWithHost err = 0 [15:08:19]CheckOFDResponse [15:08:19]1017 (14) - 77093643461234 [15:08:19]1041 (16) - 0000000000963346 [15:08:19]1040 (4) - 69398 [15:08:19]1012 (4) - 20.10.2024 08:59 [15:08:19]1206 (1) - 0 [15:08:19]OFD Sender: Remove packet 69398 [15:08:19]ProducePacketName [15:08:19]name=ofd_packets/00069398 [15:08:19]NVStorageDeleteData [15:08:19]Write to MH i2c: 01 00 00 59 0E 67 [15:08:19]Write i2c OK [15:08:19]MH_I2C_Read... [15:08:19]Read from MH i2c: 01 [15:08:19]MH_I2C_Read... [15:08:19]Read from MH i2c: 01 07 00 [15:08:19]MH_I2C_Read... [15:08:19]Read from MH i2c: 01 07 00 59 0E 00 00 00 00 00 E7 0C 61 [15:08:19]RasterBufferAndPrint [15:08:19]line [15:08:19]line [15:08:19]line [15:08:19]line [15:08:19]line [15:08:19]written 0, free lines is 3312 [15:08:19]MH_Cut [15:08:19]Write to MH i2c: D1 01 00 60 0E 01 40 [15:08:19]Write i2c OK [15:08:19]MH_I2C_Read... [15:08:19]Read from MH i2c: D1 [15:08:19]MH_I2C_Read... [15:08:19]Read from MH i2c: D1 01 00 [15:08:19]MH_I2C_Read... [15:08:19]Read from MH i2c: D1 01 00 60 0E 00 3F [15:08:19]Write to MH i2c: 01 00 00 61 0E 6F [15:08:19]Write i2c OK [15:08:19]MH_I2C_Read... [15:08:20]OFD Sender: No OFD packet to send [15:08:20]*** Cut start [15:08:20]*** Partial cut [15:08:20]*** CUTSNS_PIN = 1 [15:08:20]*** CUTSNS_PIN = 0 [15:08:20]*** Brake cut motor [15:08:21]Read from MH i2c: 01 [15:08:21]MH_I2C_Read... [15:08:21]*** Stop cut motor [15:08:21]*** Cut end [15:08:21]Read from MH i2c: 01 07 00 [15:08:21]MH_I2C_Read... [15:08:21]Read from MH i2c: 01 07 00 61 0E 00 00 00 00 00 FF 0F 84 [15:08:21]process_action close_receipt done [15:08:21]requested_data is exist [15:08:21]produce_requested_data [15:08:21]requested_item fm.sn is exist - process it [15:08:21]wFMCommunicate request_size=4 [15:08:21]MH_SAM_APDU [15:08:21]CAPDU: 80 11 00 00 [15:08:21]Write to MH i2c: E2 08 00 62 0E 80 11 00 00 00 00 00 00 EA [15:08:21]Write i2c OK [15:08:21]MH_I2C_Read... [15:08:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:21]Read from MH i2c: E2 [15:08:21]MH_I2C_Read... [15:08:21]Read from MH i2c: E2 17 00 [15:08:21]MH_I2C_Read... [15:08:21]Read from MH i2c: E2 17 00 62 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3C [15:08:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:08:21]wFMCommunicate OK [15:08:21]requested_item fd.num is exist - process it [15:08:21]SAM_PROTO_GetFieldsCounters [15:08:21]wFMCommunicate request_size=4 [15:08:21]MH_SAM_APDU [15:08:21]CAPDU: 80 13 00 00 [15:08:21]Write to MH i2c: E2 08 00 63 0E 80 13 00 00 00 00 00 00 ED [15:08:21]Write i2c OK [15:08:21]MH_I2C_Read... [15:08:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:08:21]Read from MH i2c: E2 [15:08:21]MH_I2C_Read... [15:08:21]Read from MH i2c: E2 62 00 [15:08:21]MH_I2C_Read... [15:08:21]Read from MH i2c: E2 62 00 63 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 16 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [15:08:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 16 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:08:21]wFMCommunicate OK [15:08:21]SAM_PROTO_GetFieldsCounters done [15:08:21]requested_item shift.num is exist - process it [15:08:21]requested_item shift.opened is exist - process it [15:08:21]req_shift_opened [15:08:21]FM_GetShiftState [15:08:21]SAM_PROTO_GetShiftState [15:08:21]wFMCommunicate request_size=4 [15:08:21]MH_SAM_APDU [15:08:21]CAPDU: 80 13 01 00 [15:08:21]Write to MH i2c: E2 08 00 64 0E 80 13 01 00 00 00 00 00 EF [15:08:21]Write i2c OK [15:08:21]MH_I2C_Read... [15:08:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:21]Read from MH i2c: E2 [15:08:21]MH_I2C_Read... [15:08:21]Read from MH i2c: E2 0E 00 [15:08:21]MH_I2C_Read... [15:08:21]Read from MH i2c: E2 0E 00 64 0E 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 F5 [15:08:21]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [15:08:21]wFMCommunicate OK [15:08:21]SAM_PROTO_GetShiftState done [15:08:21]FM_GetShiftState done [15:08:21]req_shift_opened done [15:08:21]requested_item shift.open_date is exist - process it [15:08:21]req_shift_open_date [15:08:21]req_shift_open_date done [15:08:21]produce_requested_data done [15:08:21]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69398,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [15:08:21]process_action_free close_receipt [15:08:21]json_value_free [15:08:21]json_value_free done [15:08:21]process_json_proto returns [15:08:21]Send response to host [15:08:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69398,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [15:08:21]free response buf [15:08:21]execute_script done [15:08:21]execute_script returns [15:08:21]free content buf [15:08:21]Sock 8.Close socket [15:08:21]Sock 8.Thread stoped [15:08:23]accept exits with 10 [15:08:23]New connection [15:08:23]New thread 3066568036 created [15:08:23]Thread 3066711396 joined [15:08:23]Waiting for new connection... [15:08:23] Sock 10.Parse request [15:08:23]Sock 10.Check first char [15:08:23]Sock 10.First char is OK [15:08:23]request: POST /json_proto HTTP/1.0 [15:08:23]Method: POST [15:08:23]URL: /json_proto [15:08:23]Method is POST - this is cgi request [15:08:23]url: /json_proto [15:08:23]query_string will be loaded in cgi processing [15:08:23]execute_cgi json_proto POST (null) [15:08:23]execute_cgi path=json_proto method=POST [15:08:23]POST find Content-Length [15:08:23]Host: 172.17.50.3:8080 [15:08:23]Content-Length: 680 [15:08:23]Content-Type: application/json [15:08:23] [15:08:23]POST finish read [15:08:23]Found Content-Length = 680 [15:08:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:23]execute_script... [15:08:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:23]POST & json_proto [15:08:23]process_json_proto [15:08:23]json parsed OK: [15:08:23]protocol is kg_v1.0 [15:08:23]action value=close_receipt [15:08:23]process_action close_receipt [15:08:23]cmd_close_receipt [15:08:23]MH_GetDate [15:08:23]Write to MH i2c: F0 00 00 65 0E 62 [15:08:23]Write i2c OK [15:08:23]MH_I2C_Read... [15:08:23]Read from MH i2c: F0 [15:08:23]MH_I2C_Read... [15:08:23]Read from MH i2c: F0 09 00 [15:08:23]MH_I2C_Read... [15:08:23]Read from MH i2c: F0 09 00 65 0E 00 E7 1C 15 67 6B 98 1E 66 71 [15:08:23]GetLastDocTimeStamp 1729436897 [15:08:23]current date 1729436903 [15:08:23]FM_GetShiftState [15:08:23]SAM_PROTO_GetShiftState [15:08:23]wFMCommunicate request_size=4 [15:08:23]MH_SAM_APDU [15:08:23]CAPDU: 80 13 01 00 [15:08:23]Write to MH i2c: E2 08 00 66 0E 80 13 01 00 00 00 00 00 F1 [15:08:23]Write i2c OK [15:08:23]MH_I2C_Read... [15:08:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:23]Read from MH i2c: E2 [15:08:23]MH_I2C_Read... [15:08:23]Read from MH i2c: E2 0E 00 [15:08:23]MH_I2C_Read... [15:08:23]Read from MH i2c: E2 0E 00 66 0E 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 F7 [15:08:23]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [15:08:23]wFMCommunicate OK [15:08:23]SAM_PROTO_GetShiftState done [15:08:23]FM_GetShiftState done [15:08:23]opened in 1729383220 [15:08:23]opened+sec_in_day 1729469620 [15:08:23]quantity*price = 200025 [15:08:23]sum+1 = 200026 [15:08:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 244 20.10.2024 15:08 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69399 ФПД: 161790010891077 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150823&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69399&fm=161790010891077&tin=02508201610067®Number=0000000000156251&sum=200000 [15:08:24]StoreToDocumentArchive [15:08:24]shift 193 fd 69399 [15:08:24]save to /storage/0193/doc_00069399 [15:08:24]save last doc name /storage/0193/doc_00069399 to /storage/kkm_last_doc_name [15:08:24]save OK [15:08:24]Clear old archive folders... [15:08:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:08:24]tlvbuf is 0020BC10 [15:08:24]SAM_PROTO_ClearQueue [15:08:24]wFMCommunicate request_size=4 [15:08:24]MH_SAM_APDU [15:08:24]CAPDU: 80 09 00 00 [15:08:24]Write to MH i2c: E2 08 00 73 0E 80 09 00 00 00 00 00 00 F3 [15:08:24]Write i2c OK [15:08:24]MH_I2C_Read... [15:08:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:08:24]Read from MH i2c: E2 [15:08:24]MH_I2C_Read... [15:08:24]Read from MH i2c: E2 03 00 [15:08:24]MH_I2C_Read... [15:08:24]Read from MH i2c: E2 03 00 73 0E 00 90 00 F5 [15:08:24]RAPDU: 90 00 [15:08:24]wFMCommunicate OK [15:08:24]SAM_PROTO_ClearQueue done [15:08:24]KKMCreateOFDPacket [15:08:24]OFDProtocolAddRootSTLVToBuf [15:08:24]FM_MakeSignedData [15:08:24]FM_MakeSignedData [15:08:24]SAM_PROTO_SignData [15:08:24]wFMCommunicate request_size=4 [15:08:24]MH_SAM_APDU [15:08:24]CAPDU: 80 0D 01 02 [15:08:24]Write to MH i2c: E2 08 00 74 0E 80 0D 01 02 00 00 00 00 FB [15:08:24]Write i2c OK [15:08:24]MH_I2C_Read... [15:08:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:08:24]Read from MH i2c: E2 [15:08:24]MH_I2C_Read... [15:08:24]Read from MH i2c: E2 03 00 [15:08:24]MH_I2C_Read... [15:08:24]Read from MH i2c: E2 03 00 74 0E 00 90 00 F6 [15:08:24]RAPDU: 90 00 [15:08:24]wFMCommunicate OK [15:08:24]wFMCommunicate request_size=255 [15:08:24]MH_SAM_APDU [15:08:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 E7 1C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 17 0F 01 00 35 04 06 00 93 25 AC 20 [15:08:24]Write to MH i2c: E2 02 01 75 0E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 E7 1C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 17 0F 01 00 35 04 06 00 93 25 AC 20 00 00 47 [15:08:24]Write i2c OK [15:08:24]MH_I2C_Read... [15:08:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:24]Read from MH i2c: E2 [15:08:24]MH_I2C_Read... [15:08:24]Read from MH i2c: E2 03 00 [15:08:24]MH_I2C_Read... [15:08:24]Read from MH i2c: E2 03 00 75 0E 00 90 00 F7 [15:08:24]RAPDU: 90 00 [15:08:24]wFMCommunicate OK [15:08:24]wFMCommunicate request_size=7 [15:08:24]MH_SAM_APDU [15:08:24]CAPDU: 80 0D 02 02 02 9B 45 [15:08:24]Write to MH i2c: E2 0A 00 76 0E 80 0D 02 02 02 00 9B 45 00 00 E2 [15:08:24]Write i2c OK [15:08:24]MH_I2C_Read... [15:08:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:24]Read from MH i2c: E2 [15:08:24]MH_I2C_Read... [15:08:24]Read from MH i2c: E2 03 00 [15:08:24]MH_I2C_Read... [15:08:24]Read from MH i2c: E2 03 00 76 0E 00 90 00 F8 [15:08:24]RAPDU: 90 00 [15:08:24]wFMCommunicate OK [15:08:24]wFMCommunicate request_size=4 [15:08:24]MH_SAM_APDU [15:08:24]CAPDU: 80 0D 03 02 [15:08:24]Write to MH i2c: E2 08 00 77 0E 80 0D 03 02 00 00 00 00 00 [15:08:24]Write i2c OK [15:08:24]MH_I2C_Read... [15:08:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:08:24]Read from MH i2c: E2 [15:08:24]MH_I2C_Read... [15:08:24]Read from MH i2c: E2 0B 00 [15:08:24]MH_I2C_Read... [15:08:24]Read from MH i2c: E2 0B 00 77 0E 00 01 23 42 42 0A 6B 54 D9 90 00 4B [15:08:24]RAPDU: 01 23 42 42 0A 6B 54 D9 90 00 [15:08:24]wFMCommunicate OK [15:08:24]SAM_PROTO_SignData done [15:08:24]FM_MakeSignedData done [15:08:24]CreateOFDProtocolMessage [15:08:24]wFMCommunicate request_size=4 [15:08:24]MH_SAM_APDU [15:08:24]CAPDU: 80 11 00 00 [15:08:24]Write to MH i2c: E2 08 00 78 0E 80 11 00 00 00 00 00 00 00 [15:08:24]Write i2c OK [15:08:24]MH_I2C_Read... [15:08:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:24]Read from MH i2c: E2 [15:08:24]MH_I2C_Read... [15:08:24]Read from MH i2c: E2 17 00 [15:08:24]MH_I2C_Read... [15:08:24]Read from MH i2c: E2 17 00 78 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 52 [15:08:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:08:24]wFMCommunicate OK [15:08:24]CreateOFDProtocolMessage done [15:08:24]OFDSenderStorePacket 69399 [15:08:24]StoreOFDPacket docnum=69399 [15:08:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 D3 3C 04 01 D5 C1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 E7 1C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 17 0F 01 00 35 04 06 00 93 25 AC 20 9B 45 01 23 42 42 0A 6B 54 D9 [15:08:24]CheckFolder [15:08:24]dirname=/storage/ofd_packets [15:08:24]CheckFolder done [15:08:24]ProducePacketName [15:08:24]name=ofd_packets/00069399 [15:08:24]NVStorageSaveData ofd_packets/00069399 [15:08:24]File name is /storage/ofd_packets/00069399 [15:08:24]Write 298 bytes [15:08:24]NVStorageSaveData done [15:08:24]OFDSenderStorePacket done [15:08:24]KKMCreateOFDPacket done [15:08:24]NVStorageSaveData kkm_last_timestamp [15:08:24]File name is /storage/kkm_last_timestamp [15:08:24]Write 4 bytes [15:08:24]NVStorageSaveData done [15:08:24]ExternCall_PrintAddStr [15:08:24]wPrintStart [15:08:24]Write to MH i2c: 01 00 00 79 0E 87 [15:08:24]OFD Sender: Processing packet 69399 [packets to send 18, broken 17] [15:08:24]ProducePacketName [15:08:24]name=ofd_packets/00069399 [15:08:24]OFD Sender: To server: pG, [15:08:24]CommunicateWithHost lk.salyk.kg:30040 [15:08:24]ConnectInit lk.salyk.kg [15:08:24]Write i2c OK [15:08:24]MH_I2C_Read... [15:08:24]Read from MH i2c: 01 [15:08:24]MH_I2C_Read... [15:08:24]Read from MH i2c: 01 07 00 [15:08:24]MH_I2C_Read... [15:08:24]Read from MH i2c: 01 07 00 79 0E 00 00 00 00 00 FF 0F 9C [15:08:24]RasterBufferAndPrint [15:08:24]line Счет N : (1)2885123 [15:08:24]line ИНН: 02508201610067 [15:08:24]line Контрольно-Кассовый Чек [15:08:24]line ПРОДАЖА [15:08:24]line ТРК (МРК, ГНК) : 61 [15:08:24]line Товар: 2710194210 [15:08:24]line ДТ-К-5 [15:08:24]line 26.250 * 76.20 [15:08:24]line = 2000.25 [15:08:24]line НДС 12% НСП 1% [15:08:24]line > о реализуемом товаре [15:08:24]line ОКРУГЛЕНИЕ: -0.25 [15:08:24]line ИТОГО: 2000.00 [15:08:24]line Внесено: 2000.00 [15:08:24]line СДАЧА: 0.00 [15:08:24]line НСП 1% : 17.70 [15:08:24]line НДС 12% : 212.42 [15:08:24]line Наличными: 2000.00 [15:08:24]line Безнал.: 0.00 [15:08:24]line Место: АЗС № 85 "Партнер Нефть" [15:08:24]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:08:24]line СНО: Общий режим [15:08:24]line Чек 244 20.10.2024 15:08 [15:08:24]line Смена: 193 ФФД: 1.0 [15:08:24]line ЗНМ: 0300000167 [15:08:24]line РНМ: 0000000000156251 [15:08:24]line Версия ККМ: v1.0 [15:08:24]line ФМ: 0000000000963346 [15:08:24]line ФД: 69399 [15:08:24]line ФПД: 161790010891077 [15:08:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150823&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69399&fm=161790010891077&tin=02508201610067®Number=0000000000156251&sum=200000 [15:08:24]written 0, free lines is 4095 [15:08:25]Connected sock=9 [15:08:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 D3 3C 04 01 D5 C1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 E7 1C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 17 0F 01 00 35 04 06 00 93 25 AC 20 9B 45 01 23 42 42 0A 6B 54 D9 [15:08:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 15 71 47 00 D4 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 17 0F 01 00 F4 03 04 00 8E C6 14 67 B6 04 01 00 00 31 2E EF FA 6E 2C 62 76 [15:08:25]CommunicateWithHost err = 0 [15:08:25]CheckOFDResponse [15:08:25]1017 (14) - 77093643461234 [15:08:25]1041 (16) - 0000000000963346 [15:08:25]1040 (4) - 69399 [15:08:25]1012 (4) - 20.10.2024 08:59 [15:08:25]1206 (1) - 0 [15:08:25]OFD Sender: Remove packet 69399 [15:08:25]ProducePacketName [15:08:25]name=ofd_packets/00069399 [15:08:25]NVStorageDeleteData [15:08:25]Write to MH i2c: 01 00 00 A4 0E B2 [15:08:25]Write i2c OK [15:08:25]MH_I2C_Read... [15:08:25]Read from MH i2c: 01 [15:08:25]MH_I2C_Read... [15:08:25]Read from MH i2c: 01 07 00 [15:08:25]MH_I2C_Read... [15:08:25]Read from MH i2c: 01 07 00 A4 0E 00 00 00 00 00 F6 0C BB [15:08:25]RasterBufferAndPrint [15:08:25]line [15:08:25]line [15:08:25]line [15:08:25]line [15:08:25]line [15:08:25]written 0, free lines is 3330 [15:08:25]MH_Cut [15:08:25]Write to MH i2c: D1 01 00 AB 0E 01 8B [15:08:25]Write i2c OK [15:08:25]MH_I2C_Read... [15:08:25]Read from MH i2c: D1 [15:08:25]MH_I2C_Read... [15:08:25]Read from MH i2c: D1 01 00 [15:08:25]MH_I2C_Read... [15:08:25]Read from MH i2c: D1 01 00 AB 0E 00 8A [15:08:25]Write to MH i2c: 01 00 00 AC 0E BA [15:08:25]Write i2c OK [15:08:25]MH_I2C_Read... [15:08:25]OFD Sender: No OFD packet to send [15:08:26]*** Cut start [15:08:26]*** Partial cut [15:08:26]*** CUTSNS_PIN = 1 [15:08:26]*** CUTSNS_PIN = 0 [15:08:26]*** Brake cut motor [15:08:26]Read from MH i2c: 01 [15:08:26]MH_I2C_Read... [15:08:26]*** Stop cut motor [15:08:26]*** Cut end [15:08:26]Read from MH i2c: 01 07 00 [15:08:26]MH_I2C_Read... [15:08:26]Read from MH i2c: 01 07 00 AC 0E 00 00 00 00 00 FF 0F CF [15:08:26]process_action close_receipt done [15:08:26]requested_data is exist [15:08:26]produce_requested_data [15:08:26]requested_item fm.sn is exist - process it [15:08:26]wFMCommunicate request_size=4 [15:08:26]MH_SAM_APDU [15:08:26]CAPDU: 80 11 00 00 [15:08:26]Write to MH i2c: E2 08 00 AD 0E 80 11 00 00 00 00 00 00 35 [15:08:26]Write i2c OK [15:08:26]MH_I2C_Read... [15:08:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:26]Read from MH i2c: E2 [15:08:26]MH_I2C_Read... [15:08:26]Read from MH i2c: E2 17 00 [15:08:26]MH_I2C_Read... [15:08:26]Read from MH i2c: E2 17 00 AD 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 87 [15:08:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:08:26]wFMCommunicate OK [15:08:26]requested_item fd.num is exist - process it [15:08:26]SAM_PROTO_GetFieldsCounters [15:08:26]wFMCommunicate request_size=4 [15:08:26]MH_SAM_APDU [15:08:26]CAPDU: 80 13 00 00 [15:08:26]Write to MH i2c: E2 08 00 AE 0E 80 13 00 00 00 00 00 00 38 [15:08:26]Write i2c OK [15:08:26]MH_I2C_Read... [15:08:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:08:26]Read from MH i2c: E2 [15:08:26]MH_I2C_Read... [15:08:26]Read from MH i2c: E2 62 00 [15:08:26]MH_I2C_Read... [15:08:26]Read from MH i2c: E2 62 00 AE 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 17 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [15:08:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 17 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:08:27]wFMCommunicate OK [15:08:27]SAM_PROTO_GetFieldsCounters done [15:08:27]requested_item shift.num is exist - process it [15:08:27]requested_item shift.opened is exist - process it [15:08:27]req_shift_opened [15:08:27]FM_GetShiftState [15:08:27]SAM_PROTO_GetShiftState [15:08:27]wFMCommunicate request_size=4 [15:08:27]MH_SAM_APDU [15:08:27]CAPDU: 80 13 01 00 [15:08:27]Write to MH i2c: E2 08 00 AF 0E 80 13 01 00 00 00 00 00 3A [15:08:27]Write i2c OK [15:08:27]MH_I2C_Read... [15:08:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:27]Read from MH i2c: E2 [15:08:27]MH_I2C_Read... [15:08:27]Read from MH i2c: E2 0E 00 [15:08:27]MH_I2C_Read... [15:08:27]Read from MH i2c: E2 0E 00 AF 0E 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 40 [15:08:27]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [15:08:27]wFMCommunicate OK [15:08:27]SAM_PROTO_GetShiftState done [15:08:27]FM_GetShiftState done [15:08:27]req_shift_opened done [15:08:27]requested_item shift.open_date is exist - process it [15:08:27]req_shift_open_date [15:08:27]req_shift_open_date done [15:08:27]produce_requested_data done [15:08:27]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69399,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [15:08:27]process_action_free close_receipt [15:08:27]json_value_free [15:08:27]json_value_free done [15:08:27]process_json_proto returns [15:08:27]Send response to host [15:08:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69399,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [15:08:27]free response buf [15:08:27]execute_script done [15:08:27]execute_script returns [15:08:27]free content buf [15:08:27]Sock 10.Close socket [15:08:27]Sock 10.Thread stoped [15:08:30]OFD Sender: No OFD packet to send [15:08:35]OFD Sender: No OFD packet to send [15:08:40]OFD Sender: No OFD packet to send [15:08:45]OFD Sender: No OFD packet to send [15:08:50]OFD Sender: No OFD packet to send [15:08:55]OFD Sender: No OFD packet to send [15:09:00]OFD Sender: No OFD packet to send [15:09:05]OFD Sender: No OFD packet to send [15:09:10]OFD Sender: No OFD packet to send [15:09:15]OFD Sender: No OFD packet to send [15:09:20]OFD Sender: No OFD packet to send [15:09:25]OFD Sender: No OFD packet to send [15:09:30]OFD Sender: No OFD packet to send [15:09:35]OFD Sender: No OFD packet to send [15:09:40]OFD Sender: No OFD packet to send [15:09:45]OFD Sender: No OFD packet to send [15:09:50]OFD Sender: No OFD packet to send [15:09:52]accept exits with 8 [15:09:52]New connection [15:09:52]New thread 3066711396 created [15:09:52]Thread 3066568036 joined [15:09:52]Waiting for new connection... [15:09:52] Sock 8.Parse request [15:09:52]Sock 8.Check first char [15:09:52]Sock 8.First char is OK [15:09:52]request: POST /json_proto HTTP/1.0 [15:09:52]Method: POST [15:09:52]URL: /json_proto [15:09:52]Method is POST - this is cgi request [15:09:52]url: /json_proto [15:09:52]query_string will be loaded in cgi processing [15:09:52]execute_cgi json_proto POST (null) [15:09:52]execute_cgi path=json_proto method=POST [15:09:52]POST find Content-Length [15:09:52]Host: 172.17.50.3:8080 [15:09:52]Content-Length: 678 [15:09:52]Content-Type: application/json [15:09:52] [15:09:52]POST finish read [15:09:52]Found Content-Length = 678 [15:09:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:52]execute_script... [15:09: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)2885126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:52]POST & json_proto [15:09:52]process_json_proto [15:09:52]json parsed OK: [15:09:52]protocol is kg_v1.0 [15:09:52]action value=close_receipt [15:09:52]process_action close_receipt [15:09:52]cmd_close_receipt [15:09:52]MH_GetDate [15:09:52]Write to MH i2c: F0 00 00 B0 0E AD [15:09:52]Write i2c OK [15:09:52]MH_I2C_Read... [15:09:52]Read from MH i2c: F0 [15:09:52]MH_I2C_Read... [15:09:52]Read from MH i2c: F0 09 00 [15:09:52]MH_I2C_Read... [15:09:52]Read from MH i2c: F0 09 00 B0 0E 00 41 1D 15 67 6B 98 1E 66 17 [15:09:52]GetLastDocTimeStamp 1729436903 [15:09:52]current date 1729436993 [15:09:52]FM_GetShiftState [15:09:52]SAM_PROTO_GetShiftState [15:09:52]wFMCommunicate request_size=4 [15:09:52]MH_SAM_APDU [15:09:52]CAPDU: 80 13 01 00 [15:09:52]Write to MH i2c: E2 08 00 B1 0E 80 13 01 00 00 00 00 00 3C [15:09:52]Write i2c OK [15:09:52]MH_I2C_Read... [15:09:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:52]Read from MH i2c: E2 [15:09:52]MH_I2C_Read... [15:09:52]Read from MH i2c: E2 0E 00 [15:09:52]MH_I2C_Read... [15:09:52]Read from MH i2c: E2 0E 00 B1 0E 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 42 [15:09:52]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [15:09:52]wFMCommunicate OK [15:09:52]SAM_PROTO_GetShiftState done [15:09:52]FM_GetShiftState done [15:09:52]opened in 1729383220 [15:09:52]opened+sec_in_day 1729469620 [15:09:52]quantity*price = 35055 [15:09:52]sum+1 = 35057 [15:09:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 245 20.10.2024 15:09 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69400 ФПД: 160441723844955 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150953&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69400&fm=160441723844955&tin=02508201610067®Number=0000000000156251&sum=35000 [15:09:53]StoreToDocumentArchive [15:09:53]shift 193 fd 69400 [15:09:53]save to /storage/0193/doc_00069400 [15:09:53]save last doc name /storage/0193/doc_00069400 to /storage/kkm_last_doc_name [15:09:53]save OK [15:09:53]Clear old archive folders... [15:09:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:09:53]tlvbuf is 0023FFF0 [15:09:53]SAM_PROTO_ClearQueue [15:09:53]wFMCommunicate request_size=4 [15:09:53]MH_SAM_APDU [15:09:53]CAPDU: 80 09 00 00 [15:09:53]Write to MH i2c: E2 08 00 BE 0E 80 09 00 00 00 00 00 00 3E [15:09:53]Write i2c OK [15:09:53]MH_I2C_Read... [15:09:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:53]Read from MH i2c: E2 [15:09:53]MH_I2C_Read... [15:09:53]Read from MH i2c: E2 03 00 [15:09:53]MH_I2C_Read... [15:09:54]Read from MH i2c: E2 03 00 BE 0E 00 90 00 40 [15:09:54]RAPDU: 90 00 [15:09:54]wFMCommunicate OK [15:09:54]SAM_PROTO_ClearQueue done [15:09:54]KKMCreateOFDPacket [15:09:54]OFDProtocolAddRootSTLVToBuf [15:09:54]FM_MakeSignedData [15:09:54]FM_MakeSignedData [15:09:54]SAM_PROTO_SignData [15:09:54]wFMCommunicate request_size=4 [15:09:54]MH_SAM_APDU [15:09:54]CAPDU: 80 0D 01 02 [15:09:54]Write to MH i2c: E2 08 00 BF 0E 80 0D 01 02 00 00 00 00 46 [15:09:54]Write i2c OK [15:09:54]MH_I2C_Read... [15:09:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:54]Read from MH i2c: E2 [15:09:54]MH_I2C_Read... [15:09:54]Read from MH i2c: E2 03 00 [15:09:54]MH_I2C_Read... [15:09:54]Read from MH i2c: E2 03 00 BF 0E 00 90 00 41 [15:09:54]RAPDU: 90 00 [15:09:54]wFMCommunicate OK [15:09:54]wFMCommunicate request_size=255 [15:09:54]MH_SAM_APDU [15:09: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 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 41 1D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 18 0F 01 00 35 04 06 00 91 [15:09:54]Write to MH i2c: E2 02 01 C0 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 41 1D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 18 0F 01 00 35 04 06 00 91 00 00 23 [15:09:54]Write i2c OK [15:09:54]MH_I2C_Read... [15:09:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:54]Read from MH i2c: E2 [15:09:54]MH_I2C_Read... [15:09:54]Read from MH i2c: E2 03 00 [15:09:54]MH_I2C_Read... [15:09:54]Read from MH i2c: E2 03 00 C0 0E 00 90 00 42 [15:09:54]RAPDU: 90 00 [15:09:54]wFMCommunicate OK [15:09:54]wFMCommunicate request_size=10 [15:09:54]MH_SAM_APDU [15:09:54]CAPDU: 80 0D 02 02 05 EB BF F4 F9 5B [15:09:54]Write to MH i2c: E2 0D 00 C1 0E 80 0D 02 02 05 00 EB BF F4 F9 5B 00 00 45 [15:09:54]Write i2c OK [15:09:54]MH_I2C_Read... [15:09:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:54]Read from MH i2c: E2 [15:09:54]MH_I2C_Read... [15:09:54]Read from MH i2c: E2 03 00 [15:09:54]MH_I2C_Read... [15:09:54]Read from MH i2c: E2 03 00 C1 0E 00 90 00 43 [15:09:54]RAPDU: 90 00 [15:09:54]wFMCommunicate OK [15:09:54]wFMCommunicate request_size=4 [15:09:54]MH_SAM_APDU [15:09:54]CAPDU: 80 0D 03 02 [15:09:54]Write to MH i2c: E2 08 00 C2 0E 80 0D 03 02 00 00 00 00 4B [15:09:54]Write i2c OK [15:09:54]MH_I2C_Read... [15:09:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:54]Read from MH i2c: E2 [15:09:54]MH_I2C_Read... [15:09:54]Read from MH i2c: E2 0B 00 [15:09:54]MH_I2C_Read... [15:09:54]Read from MH i2c: E2 0B 00 C2 0E 00 0F 91 34 A8 B7 DB E4 78 90 00 B6 [15:09:54]RAPDU: 0F 91 34 A8 B7 DB E4 78 90 00 [15:09:54]wFMCommunicate OK [15:09:54]SAM_PROTO_SignData done [15:09:54]FM_MakeSignedData done [15:09:54]CreateOFDProtocolMessage [15:09:54]wFMCommunicate request_size=4 [15:09:54]MH_SAM_APDU [15:09:54]CAPDU: 80 11 00 00 [15:09:54]Write to MH i2c: E2 08 00 C3 0E 80 11 00 00 00 00 00 00 4B [15:09:54]Write i2c OK [15:09:54]MH_I2C_Read... [15:09:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:54]Read from MH i2c: E2 [15:09:54]MH_I2C_Read... [15:09:54]Read from MH i2c: E2 17 00 [15:09:54]MH_I2C_Read... [15:09:54]Read from MH i2c: E2 17 00 C3 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9D [15:09:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:09:54]wFMCommunicate OK [15:09:54]CreateOFDProtocolMessage done [15:09:54]OFDSenderStorePacket 69400 [15:09:54]StoreOFDPacket docnum=69400 [15:09:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 29 EE 07 01 11 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 41 1D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 18 0F 01 00 35 04 06 00 91 EB BF F4 F9 5B 0F 91 34 A8 B7 DB E4 78 [15:09:54]CheckFolder [15:09:54]dirname=/storage/ofd_packets [15:09:54]CheckFolder done [15:09:54]ProducePacketName [15:09:54]name=ofd_packets/00069400 [15:09:54]NVStorageSaveData ofd_packets/00069400 [15:09:54]File name is /storage/ofd_packets/00069400 [15:09:54]Write 301 bytes [15:09:54]NVStorageSaveData done [15:09:54]OFDSenderStorePacket done [15:09:54]KKMCreateOFDPacket done [15:09:54]NVStorageSaveData kkm_last_timestamp [15:09:54]File name is /storage/kkm_last_timestamp [15:09:54]Write 4 bytes [15:09:54]NVStorageSaveData done [15:09:54]ExternCall_PrintAddStr [15:09:54]wPrintStart [15:09:54]Write to MH i2c: 01 00 00 C4 0E D2 [15:09:54]Write i2c OK [15:09:54]MH_I2C_Read... [15:09:54]Read from MH i2c: 01 [15:09:54]MH_I2C_Read... [15:09:54]Read from MH i2c: 01 07 00 [15:09:54]MH_I2C_Read... [15:09:54]Read from MH i2c: 01 07 00 C4 0E 00 00 00 00 00 FF 0F E7 [15:09:54]RasterBufferAndPrint [15:09:54]line Счет N : (1)2885126 [15:09:54]line ИНН: 02508201610067 [15:09:54]line Контрольно-Кассовый Чек [15:09:54]line ПРОДАЖА [15:09:54]line ТРК (МРК, ГНК) : 32 [15:09:54]line Товар: 2710124130 [15:09:54]line Аи-92-К-5 [15:09:54]line 5.240 * 66.90 [15:09:54]line = 350.56 [15:09:54]line НДС 12% НСП 1% [15:09:54]line > о реализуемом товаре [15:09:54]line ОКРУГЛЕНИЕ: -0.56 [15:09:54]line ИТОГО: 350.00 [15:09:54]line Внесено: 350.00 [15:09:54]line СДАЧА: 0.00 [15:09:54]line НСП 1% : 3.10 [15:09:54]line НДС 12% : 37.23 [15:09:54]line Наличными: 350.00 [15:09:54]line Безнал.: 0.00 [15:09:54]line Место: АЗС № 85 "Партнер Нефть" [15:09:54]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:09:54]line СНО: Общий режим [15:09:54]line Чек 245 20.10.2024 15:09 [15:09:54]line Смена: 193 ФФД: 1.0 [15:09:54]line ЗНМ: 0300000167 [15:09:54]line РНМ: 0000000000156251 [15:09:54]line Версия ККМ: v1.0 [15:09:54]line ФМ: 0000000000963346 [15:09:54]line ФД: 69400 [15:09:54]line ФПД: 160441723844955 [15:09:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150953&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69400&fm=160441723844955&tin=02508201610067®Number=0000000000156251&sum=35000 [15:09:54]OFD Sender: Processing packet 69400 [packets to send 18, broken 17] [15:09:54]ProducePacketName [15:09:54]name=ofd_packets/00069400 [15:09:54]OFD Sender: To server: pG, [15:09:54]CommunicateWithHost lk.salyk.kg:30040 [15:09:54]ConnectInit lk.salyk.kg [15:09:54]written 0, free lines is 4095 [15:09:54]Connected sock=10 [15:09:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 29 EE 07 01 11 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 41 1D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 18 0F 01 00 35 04 06 00 91 EB BF F4 F9 5B 0F 91 34 A8 B7 DB E4 78 [15:09:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 8B BF 47 00 35 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 18 0F 01 00 F4 03 04 00 E7 C6 14 67 B6 04 01 00 00 9C 68 00 8F B7 C3 1D F9 [15:09:55]CommunicateWithHost err = 0 [15:09:55]CheckOFDResponse [15:09:55]1017 (14) - 77093643461234 [15:09:55]1041 (16) - 0000000000963346 [15:09:55]1040 (4) - 69400 [15:09:55]1012 (4) - 20.10.2024 09:01 [15:09:55]1206 (1) - 0 [15:09:55]OFD Sender: Remove packet 69400 [15:09:55]ProducePacketName [15:09:55]name=ofd_packets/00069400 [15:09:55]NVStorageDeleteData [15:09:55]Write to MH i2c: 01 00 00 EF 0E FD [15:09:55]Write i2c OK [15:09:55]MH_I2C_Read... [15:09:55]Read from MH i2c: 01 [15:09:55]MH_I2C_Read... [15:09:55]Read from MH i2c: 01 07 00 [15:09:55]MH_I2C_Read... [15:09:55]Read from MH i2c: 01 07 00 EF 0E 00 00 00 00 00 F2 0C 02 [15:09:55]RasterBufferAndPrint [15:09:55]line [15:09:55]line [15:09:55]line [15:09:55]line [15:09:55]line [15:09:55]written 0, free lines is 3320 [15:09:55]MH_Cut [15:09:55]Write to MH i2c: D1 01 00 F6 0E 01 D6 [15:09:55]Write i2c OK [15:09:55]MH_I2C_Read... [15:09:55]Read from MH i2c: D1 [15:09:55]MH_I2C_Read... [15:09:55]Read from MH i2c: D1 01 00 [15:09:55]MH_I2C_Read... [15:09:55]Read from MH i2c: D1 01 00 F6 0E 00 D5 [15:09:55]Write to MH i2c: 01 00 00 F7 0E 05 [15:09:55]Write i2c OK [15:09:55]MH_I2C_Read... [15:09:55]OFD Sender: No OFD packet to send [15:09:55]*** Cut start [15:09:55]*** Partial cut [15:09:55]*** CUTSNS_PIN = 1 [15:09:56]*** CUTSNS_PIN = 0 [15:09:56]*** Brake cut motor [15:09:56]Read from MH i2c: 01 [15:09:56]MH_I2C_Read... [15:09:56]*** Stop cut motor [15:09:56]*** Cut end [15:09:56]Read from MH i2c: 01 07 00 [15:09:56]MH_I2C_Read... [15:09:56]Read from MH i2c: 01 07 00 F7 0E 00 00 00 00 00 FF 0F 1A [15:09:56]process_action close_receipt done [15:09:56]requested_data is exist [15:09:56]produce_requested_data [15:09:56]requested_item fm.sn is exist - process it [15:09:56]wFMCommunicate request_size=4 [15:09:56]MH_SAM_APDU [15:09:56]CAPDU: 80 11 00 00 [15:09:56]Write to MH i2c: E2 08 00 F8 0E 80 11 00 00 00 00 00 00 80 [15:09:56]Write i2c OK [15:09:56]MH_I2C_Read... [15:09:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:56]Read from MH i2c: E2 [15:09:56]MH_I2C_Read... [15:09:56]Read from MH i2c: E2 17 00 [15:09:56]MH_I2C_Read... [15:09:56]Read from MH i2c: E2 17 00 F8 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D2 [15:09:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:09:56]wFMCommunicate OK [15:09:56]requested_item fd.num is exist - process it [15:09:56]SAM_PROTO_GetFieldsCounters [15:09:56]wFMCommunicate request_size=4 [15:09:56]MH_SAM_APDU [15:09:56]CAPDU: 80 13 00 00 [15:09:56]Write to MH i2c: E2 08 00 F9 0E 80 13 00 00 00 00 00 00 83 [15:09:56]Write i2c OK [15:09:56]MH_I2C_Read... [15:09:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:56]Read from MH i2c: E2 [15:09:56]MH_I2C_Read... [15:09:56]Read from MH i2c: E2 62 00 [15:09:56]MH_I2C_Read... [15:09:56]Read from MH i2c: E2 62 00 F9 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 18 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [15:09:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 18 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:09:56]wFMCommunicate OK [15:09:56]SAM_PROTO_GetFieldsCounters done [15:09:56]requested_item shift.num is exist - process it [15:09:56]requested_item shift.opened is exist - process it [15:09:56]req_shift_opened [15:09:56]FM_GetShiftState [15:09:56]SAM_PROTO_GetShiftState [15:09:56]wFMCommunicate request_size=4 [15:09:56]MH_SAM_APDU [15:09:56]CAPDU: 80 13 01 00 [15:09:56]Write to MH i2c: E2 08 00 FA 0E 80 13 01 00 00 00 00 00 85 [15:09:56]Write i2c OK [15:09:56]MH_I2C_Read... [15:09:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:56]Read from MH i2c: E2 [15:09:56]MH_I2C_Read... [15:09:56]Read from MH i2c: E2 0E 00 [15:09:56]MH_I2C_Read... [15:09:56]Read from MH i2c: E2 0E 00 FA 0E 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 8B [15:09:56]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [15:09:56]wFMCommunicate OK [15:09:56]SAM_PROTO_GetShiftState done [15:09:56]FM_GetShiftState done [15:09:56]req_shift_opened done [15:09:56]requested_item shift.open_date is exist - process it [15:09:56]req_shift_open_date [15:09:56]req_shift_open_date done [15:09:56]produce_requested_data done [15:09:56]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69400,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [15:09:56]process_action_free close_receipt [15:09:56]json_value_free [15:09:56]json_value_free done [15:09:56]process_json_proto returns [15:09:56]Send response to host [15:09:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69400,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [15:09:56]free response buf [15:09:56]execute_script done [15:09:56]execute_script returns [15:09:56]free content buf [15:09:56]Sock 8.Close socket [15:09:56]Sock 8.Thread stoped [15:10:00]OFD Sender: No OFD packet to send [15:10:02]accept exits with 9 [15:10:02]New connection [15:10:02]New thread 3066568036 created [15:10:02]Thread 3066711396 joined [15:10:02]Waiting for new connection... [15:10:02] Sock 9.Parse request [15:10:02]Sock 9.Check first char [15:10:02]Sock 9.First char is OK [15:10:02]request: POST /json_proto HTTP/1.0 [15:10:02]Method: POST [15:10:02]URL: /json_proto [15:10:02]Method is POST - this is cgi request [15:10:02]url: /json_proto [15:10:02]query_string will be loaded in cgi processing [15:10:02]execute_cgi json_proto POST (null) [15:10:02]execute_cgi path=json_proto method=POST [15:10:02]POST find Content-Length [15:10:02]Host: 172.17.50.3:8080 [15:10:02]Content-Length: 680 [15:10:02]Content-Type: application/json [15:10:02] [15:10:02]POST finish read [15:10:02]Found Content-Length = 680 [15:10:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:02]execute_script... [15:10: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)2885125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:02]POST & json_proto [15:10:02]process_json_proto [15:10:02]json parsed OK: [15:10:02]protocol is kg_v1.0 [15:10:02]action value=close_receipt [15:10:02]process_action close_receipt [15:10:02]cmd_close_receipt [15:10:02]MH_GetDate [15:10:02]Write to MH i2c: F0 00 00 FB 0E F8 [15:10:02]Write i2c OK [15:10:02]MH_I2C_Read... [15:10:02]Read from MH i2c: F0 [15:10:02]MH_I2C_Read... [15:10:02]Read from MH i2c: F0 09 00 [15:10:02]MH_I2C_Read... [15:10:02]Read from MH i2c: F0 09 00 FB 0E 00 4A 1D 15 67 6B 98 1E 66 6B [15:10:02]GetLastDocTimeStamp 1729436993 [15:10:02]current date 1729437002 [15:10:02]FM_GetShiftState [15:10:02]SAM_PROTO_GetShiftState [15:10:02]wFMCommunicate request_size=4 [15:10:02]MH_SAM_APDU [15:10:02]CAPDU: 80 13 01 00 [15:10:02]Write to MH i2c: E2 08 00 FC 0E 80 13 01 00 00 00 00 00 87 [15:10:02]Write i2c OK [15:10:02]MH_I2C_Read... [15:10:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:02]Read from MH i2c: E2 [15:10:02]MH_I2C_Read... [15:10:02]Read from MH i2c: E2 0E 00 [15:10:02]MH_I2C_Read... [15:10:02]Read from MH i2c: E2 0E 00 FC 0E 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 8D [15:10:02]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [15:10:02]wFMCommunicate OK [15:10:02]SAM_PROTO_GetShiftState done [15:10:02]FM_GetShiftState done [15:10:02]opened in 1729383220 [15:10:02]opened+sec_in_day 1729469620 [15:10:02]quantity*price = 150037 [15:10:02]sum+1 = 150039 [15:10:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 246 20.10.2024 15:10 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69401 ФПД: 83503596239160 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151002&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69401&fm=83503596239160&tin=02508201610067®Number=0000000000156251&sum=150000 [15:10:03]StoreToDocumentArchive [15:10:03]shift 193 fd 69401 [15:10:03]save to /storage/0193/doc_00069401 [15:10:03]save last doc name /storage/0193/doc_00069401 to /storage/kkm_last_doc_name [15:10:03]save OK [15:10:03]Clear old archive folders... [15:10:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:10:03]tlvbuf is 00225D90 [15:10:03]SAM_PROTO_ClearQueue [15:10:03]wFMCommunicate request_size=4 [15:10:03]MH_SAM_APDU [15:10:03]CAPDU: 80 09 00 00 [15:10:03]Write to MH i2c: E2 08 00 09 0F 80 09 00 00 00 00 00 00 8A [15:10:03]Write i2c OK [15:10:03]MH_I2C_Read... [15:10:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:10:03]Read from MH i2c: E2 [15:10:03]MH_I2C_Read... [15:10:03]Read from MH i2c: E2 03 00 [15:10:03]MH_I2C_Read... [15:10:03]Read from MH i2c: E2 03 00 09 0F 00 90 00 8C [15:10:03]RAPDU: 90 00 [15:10:03]wFMCommunicate OK [15:10:03]SAM_PROTO_ClearQueue done [15:10:03]KKMCreateOFDPacket [15:10:03]OFDProtocolAddRootSTLVToBuf [15:10:03]FM_MakeSignedData [15:10:03]FM_MakeSignedData [15:10:03]SAM_PROTO_SignData [15:10:03]wFMCommunicate request_size=4 [15:10:03]MH_SAM_APDU [15:10:03]CAPDU: 80 0D 01 02 [15:10:03]Write to MH i2c: E2 08 00 0A 0F 80 0D 01 02 00 00 00 00 92 [15:10:03]Write i2c OK [15:10:03]MH_I2C_Read... [15:10:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:10:03]Read from MH i2c: E2 [15:10:03]MH_I2C_Read... [15:10:03]Read from MH i2c: E2 03 00 [15:10:03]MH_I2C_Read... [15:10:03]Read from MH i2c: E2 03 00 0A 0F 00 90 00 8D [15:10:03]RAPDU: 90 00 [15:10:03]wFMCommunicate OK [15:10:03]wFMCommunicate request_size=255 [15:10:03]MH_SAM_APDU [15:10:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 4A 1D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 19 0F 01 00 35 04 06 00 4B F2 32 30 [15:10:03]Write to MH i2c: E2 02 01 0B 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 4A 1D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 19 0F 01 00 35 04 06 00 4B F2 32 30 00 00 EA [15:10:03]Write i2c OK [15:10:03]MH_I2C_Read... [15:10:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:03]Read from MH i2c: E2 [15:10:03]MH_I2C_Read... [15:10:03]Read from MH i2c: E2 03 00 [15:10:03]MH_I2C_Read... [15:10:03]Read from MH i2c: E2 03 00 0B 0F 00 90 00 8E [15:10:03]RAPDU: 90 00 [15:10:03]wFMCommunicate OK [15:10:03]wFMCommunicate request_size=7 [15:10:03]MH_SAM_APDU [15:10:03]CAPDU: 80 0D 02 02 02 F9 38 [15:10:03]Write to MH i2c: E2 0A 00 0C 0F 80 0D 02 02 02 00 F9 38 00 00 CA [15:10:03]Write i2c OK [15:10:03]MH_I2C_Read... [15:10:03]Read from MH i2c: E2 [15:10:03]MH_I2C_Read... [15:10:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:03]Read from MH i2c: E2 03 00 [15:10:03]MH_I2C_Read... [15:10:03]Read from MH i2c: E2 03 00 0C 0F 00 90 00 8F [15:10:03]RAPDU: 90 00 [15:10:03]wFMCommunicate OK [15:10:03]wFMCommunicate request_size=4 [15:10:03]MH_SAM_APDU [15:10:03]CAPDU: 80 0D 03 02 [15:10:03]Write to MH i2c: E2 08 00 0D 0F 80 0D 03 02 00 00 00 00 97 [15:10:03]Write i2c OK [15:10:03]MH_I2C_Read... [15:10:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:10:03]Read from MH i2c: E2 [15:10:03]MH_I2C_Read... [15:10:03]Read from MH i2c: E2 0B 00 [15:10:03]MH_I2C_Read... [15:10:03]Read from MH i2c: E2 0B 00 0D 0F 00 B9 08 14 1C 45 15 F8 B8 90 00 93 [15:10:03]RAPDU: B9 08 14 1C 45 15 F8 B8 90 00 [15:10:03]wFMCommunicate OK [15:10:03]SAM_PROTO_SignData done [15:10:03]FM_MakeSignedData done [15:10:03]CreateOFDProtocolMessage [15:10:03]wFMCommunicate request_size=4 [15:10:03]MH_SAM_APDU [15:10:03]CAPDU: 80 11 00 00 [15:10:03]Write to MH i2c: E2 08 00 0E 0F 80 11 00 00 00 00 00 00 97 [15:10:03]Write i2c OK [15:10:03]MH_I2C_Read... [15:10:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:03]Read from MH i2c: E2 [15:10:03]MH_I2C_Read... [15:10:03]Read from MH i2c: E2 17 00 [15:10:03]MH_I2C_Read... [15:10:03]Read from MH i2c: E2 17 00 0E 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E9 [15:10:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:10:03]wFMCommunicate OK [15:10:03]CreateOFDProtocolMessage done [15:10:03]OFDSenderStorePacket 69401 [15:10:03]StoreOFDPacket docnum=69401 [15:10:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 33 73 04 01 AF 2F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 4A 1D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 19 0F 01 00 35 04 06 00 4B F2 32 30 F9 38 B9 08 14 1C 45 15 F8 B8 [15:10:03]CheckFolder [15:10:03]dirname=/storage/ofd_packets [15:10:03]CheckFolder done [15:10:03]ProducePacketName [15:10:03]name=ofd_packets/00069401 [15:10:03]NVStorageSaveData ofd_packets/00069401 [15:10:03]File name is /storage/ofd_packets/00069401 [15:10:03]Write 298 bytes [15:10:03]NVStorageSaveData done [15:10:03]OFDSenderStorePacket done [15:10:03]KKMCreateOFDPacket done [15:10:03]NVStorageSaveData kkm_last_timestamp [15:10:03]File name is /storage/kkm_last_timestamp [15:10:03]Write 4 bytes [15:10:03]NVStorageSaveData done [15:10:03]ExternCall_PrintAddStr [15:10:03]wPrintStart [15:10:03]Write to MH i2c: 01 00 00 0F 0F 1E [15:10:03]Write i2c OK [15:10:03]MH_I2C_Read... [15:10:03]Read from MH i2c: 01 [15:10:03]MH_I2C_Read... [15:10:03]Read from MH i2c: 01 07 00 [15:10:03]MH_I2C_Read... [15:10:03]Read from MH i2c: 01 07 00 0F 0F 00 00 00 00 00 FF 0F 33 [15:10:03]RasterBufferAndPrint [15:10:03]line Счет N : (1)2885125 [15:10:03]line ИНН: 02508201610067 [15:10:03]line Контрольно-Кассовый Чек [15:10:03]line ПРОДАЖА [15:10:03]line ТРК (МРК, ГНК) : 51 [15:10:03]line Товар: 2710194210 [15:10:03]line ДТ-К-5 [15:10:03]line 19.690 * 76.20 [15:10:03]line = 1500.38 [15:10:03]line НДС 12% НСП 1% [15:10:03]line > о реализуемом товаре [15:10:03]line ОКРУГЛЕНИЕ: -0.38 [15:10:03]line ИТОГО: 1500.00 [15:10:03]line Внесено: 1500.00 [15:10:03]line СДАЧА: 0.00 [15:10:03]line НСП 1% : 13.28 [15:10:03]line НДС 12% : 159.33 [15:10:03]line Наличными: 1500.00 [15:10:03]line Безнал.: 0.00 [15:10:03]line Место: АЗС № 85 "Партнер Нефть" [15:10:03]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:10:03]line СНО: Общий режим [15:10:03]line Чек 246 20.10.2024 15:10 [15:10:03]line Смена: 193 ФФД: 1.0 [15:10:03]line ЗНМ: 0300000167 [15:10:03]line РНМ: 0000000000156251 [15:10:03]line Версия ККМ: v1.0 [15:10:03]line ФМ: 0000000000963346 [15:10:03]line ФД: 69401 [15:10:03]line ФПД: 83503596239160 [15:10:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151002&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69401&fm=83503596239160&tin=02508201610067®Number=0000000000156251&sum=150000 [15:10:03]written 0, free lines is 4095 [15:10:03]OFD Sender: Processing packet 69401 [packets to send 18, broken 17] [15:10:03]ProducePacketName [15:10:03]name=ofd_packets/00069401 [15:10:03]OFD Sender: To server: pG, [15:10:03]CommunicateWithHost lk.salyk.kg:30040 [15:10:03]ConnectInit lk.salyk.kg [15:10:03]Connected sock=10 [15:10:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 33 73 04 01 AF 2F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 4A 1D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 19 0F 01 00 35 04 06 00 4B F2 32 30 F9 38 B9 08 14 1C 45 15 F8 B8 [15:10:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 13 96 47 00 99 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 19 0F 01 00 F4 03 04 00 F0 C6 14 67 B6 04 01 00 00 03 85 9B 68 EE D0 FE 3C [15:10:04]CommunicateWithHost err = 0 [15:10:04]CheckOFDResponse [15:10:04]1017 (14) - 77093643461234 [15:10:04]1041 (16) - 0000000000963346 [15:10:04]1040 (4) - 69401 [15:10:04]1012 (4) - 20.10.2024 09:01 [15:10:04]1206 (1) - 0 [15:10:04]OFD Sender: Remove packet 69401 [15:10:04]ProducePacketName [15:10:04]name=ofd_packets/00069401 [15:10:04]NVStorageDeleteData [15:10:04]Write to MH i2c: 01 00 00 3A 0F 49 [15:10:04]Write i2c OK [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: 01 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: 01 07 00 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: 01 07 00 3A 0F 00 00 00 00 00 F0 0C 4C [15:10:04]RasterBufferAndPrint [15:10:04]line [15:10:04]line [15:10:04]line [15:10:04]line [15:10:04]line [15:10:04]written 0, free lines is 3324 [15:10:04]MH_Cut [15:10:04]Write to MH i2c: D1 01 00 41 0F 01 22 [15:10:04]Write i2c OK [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: D1 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: D1 01 00 [15:10:04]MH_I2C_Read... [15:10:04]Read from MH i2c: D1 01 00 41 0F 00 21 [15:10:04]Write to MH i2c: 01 00 00 42 0F 51 [15:10:04]Write i2c OK [15:10:04]MH_I2C_Read... [15:10:04]OFD Sender: No OFD packet to send [15:10:04]*** Cut start [15:10:04]*** Partial cut [15:10:04]*** CUTSNS_PIN = 1 [15:10:04]*** CUTSNS_PIN = 0 [15:10:05]*** Brake cut motor [15:10:05]Read from MH i2c: 01 [15:10:05]MH_I2C_Read... [15:10:05]*** Stop cut motor [15:10:05]*** Cut end [15:10:05]Read from MH i2c: 01 07 00 [15:10:05]MH_I2C_Read... [15:10:05]Read from MH i2c: 01 07 00 42 0F 00 00 00 00 00 FF 0F 66 [15:10:05]process_action close_receipt done [15:10:05]requested_data is exist [15:10:05]produce_requested_data [15:10:05]requested_item fm.sn is exist - process it [15:10:05]wFMCommunicate request_size=4 [15:10:05]MH_SAM_APDU [15:10:05]CAPDU: 80 11 00 00 [15:10:05]Write to MH i2c: E2 08 00 43 0F 80 11 00 00 00 00 00 00 CC [15:10:05]Write i2c OK [15:10:05]MH_I2C_Read... [15:10:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:05]Read from MH i2c: E2 [15:10:05]MH_I2C_Read... [15:10:05]Read from MH i2c: E2 17 00 [15:10:05]MH_I2C_Read... [15:10:05]Read from MH i2c: E2 17 00 43 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1E [15:10:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:10:05]wFMCommunicate OK [15:10:05]requested_item fd.num is exist - process it [15:10:05]SAM_PROTO_GetFieldsCounters [15:10:05]wFMCommunicate request_size=4 [15:10:05]MH_SAM_APDU [15:10:05]CAPDU: 80 13 00 00 [15:10:05]Write to MH i2c: E2 08 00 44 0F 80 13 00 00 00 00 00 00 CF [15:10:05]Write i2c OK [15:10:05]MH_I2C_Read... [15:10:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:10:05]Read from MH i2c: E2 [15:10:05]MH_I2C_Read... [15:10:05]Read from MH i2c: E2 62 00 [15:10:05]MH_I2C_Read... [15:10:05]Read from MH i2c: E2 62 00 44 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 19 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [15:10:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 19 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:10:05]wFMCommunicate OK [15:10:05]SAM_PROTO_GetFieldsCounters done [15:10:05]requested_item shift.num is exist - process it [15:10:05]requested_item shift.opened is exist - process it [15:10:05]req_shift_opened [15:10:05]FM_GetShiftState [15:10:05]SAM_PROTO_GetShiftState [15:10:05]wFMCommunicate request_size=4 [15:10:05]MH_SAM_APDU [15:10:05]CAPDU: 80 13 01 00 [15:10:05]Write to MH i2c: E2 08 00 45 0F 80 13 01 00 00 00 00 00 D1 [15:10:05]Write i2c OK [15:10:05]MH_I2C_Read... [15:10:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:05]Read from MH i2c: E2 [15:10:05]MH_I2C_Read... [15:10:05]Read from MH i2c: E2 0E 00 [15:10:05]MH_I2C_Read... [15:10:05]Read from MH i2c: E2 0E 00 45 0F 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 D7 [15:10:05]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [15:10:05]wFMCommunicate OK [15:10:05]SAM_PROTO_GetShiftState done [15:10:05]FM_GetShiftState done [15:10:05]req_shift_opened done [15:10:05]requested_item shift.open_date is exist - process it [15:10:05]req_shift_open_date [15:10:05]req_shift_open_date done [15:10:05]produce_requested_data done [15:10:05]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69401,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [15:10:05]process_action_free close_receipt [15:10:05]json_value_free [15:10:05]json_value_free done [15:10:05]process_json_proto returns [15:10:05]Send response to host [15:10:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69401,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [15:10:05]free response buf [15:10:05]execute_script done [15:10:05]execute_script returns [15:10:05]free content buf [15:10:05]Sock 9.Close socket [15:10:05]Sock 9.Thread stoped [15:10:09]OFD Sender: No OFD packet to send [15:10:14]OFD Sender: No OFD packet to send [15:10:19]OFD Sender: No OFD packet to send [15:10:24]OFD Sender: No OFD packet to send [15:10:29]OFD Sender: No OFD packet to send [15:10:34]OFD Sender: No OFD packet to send [15:10:39]OFD Sender: No OFD packet to send [15:10:44]OFD Sender: No OFD packet to send [15:10:49]OFD Sender: No OFD packet to send [15:10:54]OFD Sender: No OFD packet to send [15:10:59]OFD Sender: No OFD packet to send [15:11:04]OFD Sender: No OFD packet to send [15:11:09]OFD Sender: No OFD packet to send [15:11:14]OFD Sender: No OFD packet to send [15:11:19]OFD Sender: No OFD packet to send [15:11:24]OFD Sender: No OFD packet to send [15:11:29]OFD Sender: No OFD packet to send [15:11:34]OFD Sender: No OFD packet to send [15:11:39]OFD Sender: No OFD packet to send [15:11:44]OFD Sender: No OFD packet to send [15:11:49]OFD Sender: No OFD packet to send [15:11:54]OFD Sender: No OFD packet to send [15:11:59]OFD Sender: No OFD packet to send [15:12:04]OFD Sender: No OFD packet to send [15:12:09]OFD Sender: No OFD packet to send [15:12:14]OFD Sender: No OFD packet to send [15:12:19]OFD Sender: No OFD packet to send [15:12:24]OFD Sender: No OFD packet to send [15:12:29]OFD Sender: No OFD packet to send [15:12:34]OFD Sender: No OFD packet to send [15:12:39]OFD Sender: No OFD packet to send [15:12:44]OFD Sender: No OFD packet to send [15:12:49]OFD Sender: No OFD packet to send [15:12:54]OFD Sender: No OFD packet to send [15:12:59]OFD Sender: No OFD packet to send [15:13:04]OFD Sender: No OFD packet to send [15:13:09]OFD Sender: No OFD packet to send [15:13:14]OFD Sender: No OFD packet to send [15:13:19]OFD Sender: No OFD packet to send [15:13:24]OFD Sender: No OFD packet to send [15:13:29]OFD Sender: No OFD packet to send [15:13:34]OFD Sender: No OFD packet to send [15:13:39]OFD Sender: No OFD packet to send [15:13:44]OFD Sender: No OFD packet to send [15:13:49]OFD Sender: No OFD packet to send [15:13:54]OFD Sender: No OFD packet to send [15:13:59]OFD Sender: No OFD packet to send [15:14:04]OFD Sender: No OFD packet to send [15:14:09]OFD Sender: No OFD packet to send [15:14:14]OFD Sender: No OFD packet to send [15:14:19]OFD Sender: No OFD packet to send [15:14:24]OFD Sender: No OFD packet to send [15:14:29]OFD Sender: No OFD packet to send [15:14:34]OFD Sender: No OFD packet to send [15:14:39]OFD Sender: No OFD packet to send [15:14:44]OFD Sender: No OFD packet to send [15:14:49]OFD Sender: No OFD packet to send [15:14:54]OFD Sender: No OFD packet to send [15:14:59]OFD Sender: No OFD packet to send [15:15:04]OFD Sender: No OFD packet to send [15:15:09]OFD Sender: No OFD packet to send [15:15:14]OFD Sender: No OFD packet to send [15:15:19]OFD Sender: No OFD packet to send [15:15:24]OFD Sender: No OFD packet to send [15:15:29]OFD Sender: No OFD packet to send [15:15:34]OFD Sender: No OFD packet to send [15:15:39]OFD Sender: No OFD packet to send [15:15:44]OFD Sender: No OFD packet to send [15:15:49]OFD Sender: No OFD packet to send [15:15:54]OFD Sender: No OFD packet to send [15:15:59]OFD Sender: No OFD packet to send [15:16:04]OFD Sender: No OFD packet to send [15:16:09]OFD Sender: No OFD packet to send [15:16:14]OFD Sender: No OFD packet to send [15:16:19]OFD Sender: No OFD packet to send [15:16:24]OFD Sender: No OFD packet to send [15:16:29]OFD Sender: No OFD packet to send [15:16:34]OFD Sender: No OFD packet to send [15:16:39]OFD Sender: No OFD packet to send [15:16:44]OFD Sender: No OFD packet to send [15:16:49]OFD Sender: No OFD packet to send [15:16:54]OFD Sender: No OFD packet to send [15:16:59]OFD Sender: No OFD packet to send [15:17:04]OFD Sender: No OFD packet to send [15:17:09]OFD Sender: No OFD packet to send [15:17:14]OFD Sender: No OFD packet to send [15:17:19]OFD Sender: No OFD packet to send [15:17:24]OFD Sender: No OFD packet to send [15:17:29]OFD Sender: No OFD packet to send [15:17:34]OFD Sender: No OFD packet to send [15:17:39]OFD Sender: No OFD packet to send [15:17:45]OFD Sender: No OFD packet to send [15:17:50]OFD Sender: No OFD packet to send [15:17:53]accept exits with 8 [15:17:53]New connection [15:17:53]New thread 3066711396 created [15:17:53]Thread 3066568036 joined [15:17:53]Waiting for new connection... [15:17:53] Sock 8.Parse request [15:17:53]Sock 8.Check first char [15:17:53]Sock 8.First char is OK [15:17:53]request: POST /json_proto HTTP/1.0 [15:17:53]Method: POST [15:17:53]URL: /json_proto [15:17:53]Method is POST - this is cgi request [15:17:53]url: /json_proto [15:17:53]query_string will be loaded in cgi processing [15:17:53]execute_cgi json_proto POST (null) [15:17:53]execute_cgi path=json_proto method=POST [15:17:53]POST find Content-Length [15:17:53]Host: 172.17.50.3:8080 [15:17:53]Content-Length: 678 [15:17:53]Content-Type: application/json [15:17:53] [15:17:53]POST finish read [15:17:53]Found Content-Length = 678 [15:17:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:53]execute_script... [15:17: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)2885127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:53]POST & json_proto [15:17:53]process_json_proto [15:17:53]json parsed OK: [15:17:53]protocol is kg_v1.0 [15:17:53]action value=close_receipt [15:17:53]process_action close_receipt [15:17:53]cmd_close_receipt [15:17:53]MH_GetDate [15:17:53]Write to MH i2c: F0 00 00 46 0F 44 [15:17:53]Write i2c OK [15:17:53]MH_I2C_Read... [15:17:53]Read from MH i2c: F0 [15:17:53]MH_I2C_Read... [15:17:53]Read from MH i2c: F0 09 00 [15:17:53]MH_I2C_Read... [15:17:53]Read from MH i2c: F0 09 00 46 0F 00 22 1F 15 67 6B 98 1E 66 91 [15:17:53]GetLastDocTimeStamp 1729437002 [15:17:53]current date 1729437474 [15:17:53]FM_GetShiftState [15:17:53]SAM_PROTO_GetShiftState [15:17:53]wFMCommunicate request_size=4 [15:17:53]MH_SAM_APDU [15:17:53]CAPDU: 80 13 01 00 [15:17:53]Write to MH i2c: E2 08 00 47 0F 80 13 01 00 00 00 00 00 D3 [15:17:53]Write i2c OK [15:17:53]MH_I2C_Read... [15:17:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:53]Read from MH i2c: E2 [15:17:53]MH_I2C_Read... [15:17:53]Read from MH i2c: E2 0E 00 [15:17:53]MH_I2C_Read... [15:17:53]Read from MH i2c: E2 0E 00 47 0F 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 D9 [15:17:53]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [15:17:53]wFMCommunicate OK [15:17:53]SAM_PROTO_GetShiftState done [15:17:53]FM_GetShiftState done [15:17:53]opened in 1729383220 [15:17:53]opened+sec_in_day 1729469620 [15:17:53]quantity*price = 50041 [15:17:53]sum+1 = 50042 [15:17:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 247 20.10.2024 15:17 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69402 ФПД: 229877916717175 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151754&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69402&fm=229877916717175&tin=02508201610067®Number=0000000000156251&sum=50000 [15:17:54]StoreToDocumentArchive [15:17:54]shift 193 fd 69402 [15:17:54]save to /storage/0193/doc_00069402 [15:17:54]save last doc name /storage/0193/doc_00069402 to /storage/kkm_last_doc_name [15:17:54]save OK [15:17:54]Clear old archive folders... [15:17:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:17:54]tlvbuf is B6E86330 [15:17:54]SAM_PROTO_ClearQueue [15:17:54]wFMCommunicate request_size=4 [15:17:54]MH_SAM_APDU [15:17:54]CAPDU: 80 09 00 00 [15:17:54]Write to MH i2c: E2 08 00 54 0F 80 09 00 00 00 00 00 00 D5 [15:17:54]Write i2c OK [15:17:54]MH_I2C_Read... [15:17:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:17:54]Read from MH i2c: E2 [15:17:54]MH_I2C_Read... [15:17:54]Read from MH i2c: E2 03 00 [15:17:54]MH_I2C_Read... [15:17:54]Read from MH i2c: E2 03 00 54 0F 00 90 00 D7 [15:17:54]RAPDU: 90 00 [15:17:54]wFMCommunicate OK [15:17:54]SAM_PROTO_ClearQueue done [15:17:54]KKMCreateOFDPacket [15:17:54]OFDProtocolAddRootSTLVToBuf [15:17:54]FM_MakeSignedData [15:17:54]FM_MakeSignedData [15:17:54]SAM_PROTO_SignData [15:17:54]wFMCommunicate request_size=4 [15:17:54]MH_SAM_APDU [15:17:54]CAPDU: 80 0D 01 02 [15:17:54]Write to MH i2c: E2 08 00 55 0F 80 0D 01 02 00 00 00 00 DD [15:17:54]Write i2c OK [15:17:54]MH_I2C_Read... [15:17:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:17:54]Read from MH i2c: E2 [15:17:54]MH_I2C_Read... [15:17:54]Read from MH i2c: E2 03 00 [15:17:54]MH_I2C_Read... [15:17:54]Read from MH i2c: E2 03 00 55 0F 00 90 00 D8 [15:17:54]RAPDU: 90 00 [15:17:54]wFMCommunicate OK [15:17:54]wFMCommunicate request_size=255 [15:17:54]MH_SAM_APDU [15:17: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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 22 1F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1A 0F 01 00 35 04 06 00 D1 [15:17:54]Write to MH i2c: E2 02 01 56 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 22 1F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1A 0F 01 00 35 04 06 00 D1 00 00 D6 [15:17:54]Write i2c OK [15:17:54]MH_I2C_Read... [15:17:55]OFD Sender: No OFD packet to send [15:17:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:55]Read from MH i2c: E2 [15:17:55]MH_I2C_Read... [15:17:55]Read from MH i2c: E2 03 00 [15:17:55]MH_I2C_Read... [15:17:55]Read from MH i2c: E2 03 00 56 0F 00 90 00 D9 [15:17:55]RAPDU: 90 00 [15:17:55]wFMCommunicate OK [15:17:55]wFMCommunicate request_size=10 [15:17:55]MH_SAM_APDU [15:17:55]CAPDU: 80 0D 02 02 05 12 9F 91 50 77 [15:17:55]Write to MH i2c: E2 0D 00 57 0F 80 0D 02 02 05 00 12 9F 91 50 77 00 00 F3 [15:17:55]Write i2c OK [15:17:55]MH_I2C_Read... [15:17:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:55]Read from MH i2c: E2 [15:17:55]MH_I2C_Read... [15:17:55]Read from MH i2c: E2 03 00 [15:17:55]MH_I2C_Read... [15:17:55]Read from MH i2c: E2 03 00 57 0F 00 90 00 DA [15:17:55]RAPDU: 90 00 [15:17:55]wFMCommunicate OK [15:17:55]wFMCommunicate request_size=4 [15:17:55]MH_SAM_APDU [15:17:55]CAPDU: 80 0D 03 02 [15:17:55]Write to MH i2c: E2 08 00 58 0F 80 0D 03 02 00 00 00 00 E2 [15:17:55]Write i2c OK [15:17:55]MH_I2C_Read... [15:17:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:17:55]Read from MH i2c: E2 [15:17:55]MH_I2C_Read... [15:17:55]Read from MH i2c: E2 0B 00 [15:17:55]MH_I2C_Read... [15:17:55]Read from MH i2c: E2 0B 00 58 0F 00 69 4A 63 1C BF D5 33 02 90 00 DE [15:17:55]RAPDU: 69 4A 63 1C BF D5 33 02 90 00 [15:17:55]wFMCommunicate OK [15:17:55]SAM_PROTO_SignData done [15:17:55]FM_MakeSignedData done [15:17:55]CreateOFDProtocolMessage [15:17:55]wFMCommunicate request_size=4 [15:17:55]MH_SAM_APDU [15:17:55]CAPDU: 80 11 00 00 [15:17:55]Write to MH i2c: E2 08 00 59 0F 80 11 00 00 00 00 00 00 E2 [15:17:55]Write i2c OK [15:17:55]MH_I2C_Read... [15:17:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:55]Read from MH i2c: E2 [15:17:55]MH_I2C_Read... [15:17:55]Read from MH i2c: E2 17 00 [15:17:55]MH_I2C_Read... [15:17:55]Read from MH i2c: E2 17 00 59 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 34 [15:17:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:17:55]wFMCommunicate OK [15:17:55]CreateOFDProtocolMessage done [15:17:55]OFDSenderStorePacket 69402 [15:17:55]StoreOFDPacket docnum=69402 [15:17:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 8F 50 07 01 7C B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 22 1F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1A 0F 01 00 35 04 06 00 D1 12 9F 91 50 77 69 4A 63 1C BF D5 33 02 [15:17:55]CheckFolder [15:17:55]dirname=/storage/ofd_packets [15:17:55]CheckFolder done [15:17:55]ProducePacketName [15:17:55]name=ofd_packets/00069402 [15:17:55]NVStorageSaveData ofd_packets/00069402 [15:17:55]File name is /storage/ofd_packets/00069402 [15:17:55]Write 301 bytes [15:17:55]NVStorageSaveData done [15:17:55]OFDSenderStorePacket done [15:17:55]KKMCreateOFDPacket done [15:17:55]NVStorageSaveData kkm_last_timestamp [15:17:55]File name is /storage/kkm_last_timestamp [15:17:55]Write 4 bytes [15:17:55]NVStorageSaveData done [15:17:55]ExternCall_PrintAddStr [15:17:55]wPrintStart [15:17:55]Write to MH i2c: 01 00 00 5A 0F 69 [15:17:55]Write i2c OK [15:17:55]MH_I2C_Read... [15:17:55]Read from MH i2c: 01 [15:17:55]MH_I2C_Read... [15:17:55]Read from MH i2c: 01 07 00 [15:17:55]MH_I2C_Read... [15:17:55]Read from MH i2c: 01 07 00 5A 0F 00 00 00 00 00 FF 0F 7E [15:17:55]RasterBufferAndPrint [15:17:55]line Счет N : (1)2885127 [15:17:55]line ИНН: 02508201610067 [15:17:55]line Контрольно-Кассовый Чек [15:17:55]line ПРОДАЖА [15:17:55]line ТРК (МРК, ГНК) : 32 [15:17:55]line Товар: 2710124130 [15:17:55]line Аи-92-К-5 [15:17:55]line 7.480 * 66.90 [15:17:55]line = 500.41 [15:17:55]line НДС 12% НСП 1% [15:17:55]line > о реализуемом товаре [15:17:55]line ОКРУГЛЕНИЕ: -0.41 [15:17:55]line ИТОГО: 500.00 [15:17:55]line Внесено: 500.00 [15:17:55]line СДАЧА: 0.00 [15:17:55]line НСП 1% : 4.43 [15:17:55]line НДС 12% : 53.14 [15:17:55]line Наличными: 500.00 [15:17:55]line Безнал.: 0.00 [15:17:55]line Место: АЗС № 85 "Партнер Нефть" [15:17:55]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:17:55]line СНО: Общий режим [15:17:55]line Чек 247 20.10.2024 15:17 [15:17:55]line Смена: 193 ФФД: 1.0 [15:17:55]line ЗНМ: 0300000167 [15:17:55]line РНМ: 0000000000156251 [15:17:55]line Версия ККМ: v1.0 [15:17:55]line ФМ: 0000000000963346 [15:17:55]line ФД: 69402 [15:17:55]line ФПД: 229877916717175 [15:17:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T151754&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69402&fm=229877916717175&tin=02508201610067®Number=0000000000156251&sum=50000 [15:17:55]OFD Sender: Processing packet 69402 [packets to send 18, broken 17] [15:17:55]ProducePacketName [15:17:55]name=ofd_packets/00069402 [15:17:55]OFD Sender: To server: pG, [15:17:55]CommunicateWithHost lk.salyk.kg:30040 [15:17:55]ConnectInit lk.salyk.kg [15:17:55]written 0, free lines is 4095 [15:17:55]Connected sock=10 [15:17:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 8F 50 07 01 7C B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 22 1F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1A 0F 01 00 35 04 06 00 D1 12 9F 91 50 77 69 4A 63 1C BF D5 33 02 [15:17:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 06 07 47 00 D5 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1A 0F 01 00 F4 03 04 00 C8 C8 14 67 B6 04 01 00 00 C5 11 BE DE 76 E4 22 D0 [15:17:55]CommunicateWithHost err = 0 [15:17:55]CheckOFDResponse [15:17:55]1017 (14) - 77093643461234 [15:17:55]1041 (16) - 0000000000963346 [15:17:55]1040 (4) - 69402 [15:17:55]1012 (4) - 20.10.2024 09:09 [15:17:55]1206 (1) - 0 [15:17:55]OFD Sender: Remove packet 69402 [15:17:55]ProducePacketName [15:17:55]name=ofd_packets/00069402 [15:17:55]NVStorageDeleteData [15:17:56]Write to MH i2c: 01 00 00 85 0F 94 [15:17:56]Write i2c OK [15:17:56]MH_I2C_Read... [15:17:56]Read from MH i2c: 01 [15:17:56]MH_I2C_Read... [15:17:56]Read from MH i2c: 01 07 00 [15:17:56]MH_I2C_Read... [15:17:56]Read from MH i2c: 01 07 00 85 0F 00 00 00 00 00 EC 0C 93 [15:17:56]RasterBufferAndPrint [15:17:56]line [15:17:56]line [15:17:56]line [15:17:56]line [15:17:56]line [15:17:56]written 0, free lines is 3314 [15:17:56]MH_Cut [15:17:56]Write to MH i2c: D1 01 00 8C 0F 01 6D [15:17:56]Write i2c OK [15:17:56]MH_I2C_Read... [15:17:56]Read from MH i2c: D1 [15:17:56]MH_I2C_Read... [15:17:56]Read from MH i2c: D1 01 00 [15:17:56]MH_I2C_Read... [15:17:56]Read from MH i2c: D1 01 00 8C 0F 00 6C [15:17:56]Write to MH i2c: 01 00 00 8D 0F 9C [15:17:56]Write i2c OK [15:17:56]MH_I2C_Read... [15:17:56]OFD Sender: No OFD packet to send [15:17:56]*** Cut start [15:17:56]*** Partial cut [15:17:56]*** CUTSNS_PIN = 1 [15:17:56]*** CUTSNS_PIN = 0 [15:17:57]*** Brake cut motor [15:17:57]Read from MH i2c: 01 [15:17:57]MH_I2C_Read... [15:17:57]*** Stop cut motor [15:17:57]*** Cut end [15:17:57]Read from MH i2c: 01 07 00 [15:17:57]MH_I2C_Read... [15:17:57]Read from MH i2c: 01 07 00 8D 0F 00 00 00 00 00 FF 0F B1 [15:17:57]process_action close_receipt done [15:17:57]requested_data is exist [15:17:57]produce_requested_data [15:17:57]requested_item fm.sn is exist - process it [15:17:57]wFMCommunicate request_size=4 [15:17:57]MH_SAM_APDU [15:17:57]CAPDU: 80 11 00 00 [15:17:57]Write to MH i2c: E2 08 00 8E 0F 80 11 00 00 00 00 00 00 17 [15:17:57]Write i2c OK [15:17:57]MH_I2C_Read... [15:17:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:57]Read from MH i2c: E2 [15:17:57]MH_I2C_Read... [15:17:57]Read from MH i2c: E2 17 00 [15:17:57]MH_I2C_Read... [15:17:57]Read from MH i2c: E2 17 00 8E 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 69 [15:17:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:17:57]wFMCommunicate OK [15:17:57]requested_item fd.num is exist - process it [15:17:57]SAM_PROTO_GetFieldsCounters [15:17:57]wFMCommunicate request_size=4 [15:17:57]MH_SAM_APDU [15:17:57]CAPDU: 80 13 00 00 [15:17:57]Write to MH i2c: E2 08 00 8F 0F 80 13 00 00 00 00 00 00 1A [15:17:57]Write i2c OK [15:17:57]MH_I2C_Read... [15:17:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:17:57]Read from MH i2c: E2 [15:17:57]MH_I2C_Read... [15:17:57]Read from MH i2c: E2 62 00 [15:17:57]MH_I2C_Read... [15:17:57]Read from MH i2c: E2 62 00 8F 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1A 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [15:17:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1A 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:17:57]wFMCommunicate OK [15:17:57]SAM_PROTO_GetFieldsCounters done [15:17:57]requested_item shift.num is exist - process it [15:17:57]requested_item shift.opened is exist - process it [15:17:57]req_shift_opened [15:17:57]FM_GetShiftState [15:17:57]SAM_PROTO_GetShiftState [15:17:57]wFMCommunicate request_size=4 [15:17:57]MH_SAM_APDU [15:17:57]CAPDU: 80 13 01 00 [15:17:57]Write to MH i2c: E2 08 00 90 0F 80 13 01 00 00 00 00 00 1C [15:17:57]Write i2c OK [15:17:57]MH_I2C_Read... [15:17:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:57]Read from MH i2c: E2 [15:17:57]MH_I2C_Read... [15:17:57]Read from MH i2c: E2 0E 00 [15:17:57]MH_I2C_Read... [15:17:57]Read from MH i2c: E2 0E 00 90 0F 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 22 [15:17:57]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [15:17:57]wFMCommunicate OK [15:17:57]SAM_PROTO_GetShiftState done [15:17:57]FM_GetShiftState done [15:17:57]req_shift_opened done [15:17:57]requested_item shift.open_date is exist - process it [15:17:57]req_shift_open_date [15:17:57]req_shift_open_date done [15:17:57]produce_requested_data done [15:17:57]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69402,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [15:17:57]process_action_free close_receipt [15:17:57]json_value_free [15:17:57]json_value_free done [15:17:57]process_json_proto returns [15:17:57]Send response to host [15:17:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69402,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [15:17:57]free response buf [15:17:57]execute_script done [15:17:57]execute_script returns [15:17:57]free content buf [15:17:57]Sock 8.Close socket [15:17:57]Sock 8.Thread stoped [15:18:01]OFD Sender: No OFD packet to send [15:18:06]OFD Sender: No OFD packet to send [15:18:11]OFD Sender: No OFD packet to send [15:18:16]OFD Sender: No OFD packet to send [15:18:21]OFD Sender: No OFD packet to send [15:18:26]OFD Sender: No OFD packet to send [15:18:31]OFD Sender: No OFD packet to send [15:18:36]OFD Sender: No OFD packet to send [15:18:41]OFD Sender: No OFD packet to send [15:18:46]OFD Sender: No OFD packet to send [15:18:51]OFD Sender: No OFD packet to send [15:18:56]OFD Sender: No OFD packet to send [15:19:01]OFD Sender: No OFD packet to send [15:19:06]OFD Sender: No OFD packet to send [15:19:11]OFD Sender: No OFD packet to send [15:19:16]OFD Sender: No OFD packet to send [15:19:21]OFD Sender: No OFD packet to send [15:19:26]OFD Sender: No OFD packet to send [15:19:31]OFD Sender: No OFD packet to send [15:19:36]OFD Sender: No OFD packet to send [15:19:41]OFD Sender: No OFD packet to send [15:19:46]OFD Sender: No OFD packet to send [15:19:51]OFD Sender: No OFD packet to send [15:19:56]OFD Sender: No OFD packet to send [15:20:01]OFD Sender: No OFD packet to send [15:20:06]OFD Sender: No OFD packet to send [15:20:11]OFD Sender: No OFD packet to send [15:20:16]OFD Sender: No OFD packet to send [15:20:21]OFD Sender: No OFD packet to send [15:20:26]OFD Sender: No OFD packet to send [15:20:31]OFD Sender: No OFD packet to send [15:20:36]OFD Sender: No OFD packet to send [15:20:41]OFD Sender: No OFD packet to send [15:20:46]OFD Sender: No OFD packet to send [15:20:51]OFD Sender: No OFD packet to send [15:20:56]OFD Sender: No OFD packet to send [15:21:01]OFD Sender: No OFD packet to send [15:21:06]OFD Sender: No OFD packet to send [15:21:11]OFD Sender: No OFD packet to send [15:21:16]OFD Sender: No OFD packet to send [15:21:21]OFD Sender: No OFD packet to send [15:21:26]OFD Sender: No OFD packet to send [15:21:31]OFD Sender: No OFD packet to send [15:21:36]OFD Sender: No OFD packet to send [15:21:41]OFD Sender: No OFD packet to send [15:21:46]OFD Sender: No OFD packet to send [15:21:51]OFD Sender: No OFD packet to send [15:21:56]OFD Sender: No OFD packet to send [15:22:01]OFD Sender: No OFD packet to send [15:22:06]OFD Sender: No OFD packet to send [15:22:11]OFD Sender: No OFD packet to send [15:22:16]OFD Sender: No OFD packet to send [15:22:21]OFD Sender: No OFD packet to send [15:22:26]OFD Sender: No OFD packet to send [15:22:31]OFD Sender: No OFD packet to send [15:22:36]OFD Sender: No OFD packet to send [15:22:41]OFD Sender: No OFD packet to send [15:22:46]OFD Sender: No OFD packet to send [15:22:51]OFD Sender: No OFD packet to send [15:22:56]OFD Sender: No OFD packet to send [15:23:01]OFD Sender: No OFD packet to send [15:23:06]OFD Sender: No OFD packet to send [15:23:11]OFD Sender: No OFD packet to send [15:23:16]OFD Sender: No OFD packet to send [15:23:21]OFD Sender: No OFD packet to send [15:23:26]OFD Sender: No OFD packet to send [15:23:31]OFD Sender: No OFD packet to send [15:23:36]OFD Sender: No OFD packet to send [15:23:41]OFD Sender: No OFD packet to send [15:23:46]OFD Sender: No OFD packet to send [15:23:51]OFD Sender: No OFD packet to send [15:23:56]OFD Sender: No OFD packet to send [15:24:01]OFD Sender: No OFD packet to send [15:24:06]OFD Sender: No OFD packet to send [15:24:11]OFD Sender: No OFD packet to send [15:24:16]OFD Sender: No OFD packet to send [15:24:21]OFD Sender: No OFD packet to send [15:24:26]OFD Sender: No OFD packet to send [15:24:31]OFD Sender: No OFD packet to send [15:24:36]OFD Sender: No OFD packet to send [15:24:41]OFD Sender: No OFD packet to send [15:24:46]OFD Sender: No OFD packet to send [15:24:51]OFD Sender: No OFD packet to send [15:24:56]OFD Sender: No OFD packet to send [15:25:01]OFD Sender: No OFD packet to send [15:25:06]OFD Sender: No OFD packet to send [15:25:11]OFD Sender: No OFD packet to send [15:25:16]OFD Sender: No OFD packet to send [15:25:21]OFD Sender: No OFD packet to send [15:25:26]OFD Sender: No OFD packet to send [15:25:31]OFD Sender: No OFD packet to send [15:25:36]OFD Sender: No OFD packet to send [15:25:41]OFD Sender: No OFD packet to send [15:25:46]OFD Sender: No OFD packet to send [15:25:51]OFD Sender: No OFD packet to send [15:25:56]OFD Sender: No OFD packet to send [15:26:01]OFD Sender: No OFD packet to send [15:26:06]OFD Sender: No OFD packet to send [15:26:11]OFD Sender: No OFD packet to send [15:26:16]OFD Sender: No OFD packet to send [15:26:21]OFD Sender: No OFD packet to send [15:26:26]OFD Sender: No OFD packet to send [15:26:31]OFD Sender: No OFD packet to send [15:26:36]OFD Sender: No OFD packet to send [15:26:41]OFD Sender: No OFD packet to send [15:26:46]OFD Sender: No OFD packet to send [15:26:51]OFD Sender: No OFD packet to send [15:26:56]OFD Sender: No OFD packet to send [15:27:01]OFD Sender: No OFD packet to send [15:27:06]OFD Sender: No OFD packet to send [15:27:11]OFD Sender: No OFD packet to send [15:27:16]OFD Sender: No OFD packet to send [15:27:21]OFD Sender: No OFD packet to send [15:27:26]OFD Sender: No OFD packet to send [15:27:31]OFD Sender: No OFD packet to send [15:27:36]OFD Sender: No OFD packet to send [15:27:41]OFD Sender: No OFD packet to send [15:27:46]OFD Sender: No OFD packet to send [15:27:51]OFD Sender: No OFD packet to send [15:27:56]OFD Sender: No OFD packet to send [15:28:01]OFD Sender: No OFD packet to send [15:28:06]OFD Sender: No OFD packet to send [15:28:11]OFD Sender: No OFD packet to send [15:28:16]OFD Sender: No OFD packet to send [15:28:22]OFD Sender: No OFD packet to send [15:28:27]OFD Sender: No OFD packet to send [15:28:32]OFD Sender: No OFD packet to send [15:28:37]OFD Sender: No OFD packet to send [15:28:42]OFD Sender: No OFD packet to send [15:28:47]OFD Sender: No OFD packet to send [15:28:52]OFD Sender: No OFD packet to send [15:28:57]OFD Sender: No OFD packet to send [15:29:02]OFD Sender: No OFD packet to send [15:29:07]OFD Sender: No OFD packet to send [15:29:12]OFD Sender: No OFD packet to send [15:29:17]OFD Sender: No OFD packet to send [15:29:22]OFD Sender: No OFD packet to send [15:29:27]OFD Sender: No OFD packet to send [15:29:32]OFD Sender: No OFD packet to send [15:29:37]OFD Sender: No OFD packet to send [15:29:42]OFD Sender: No OFD packet to send [15:29:47]OFD Sender: No OFD packet to send [15:29:52]OFD Sender: No OFD packet to send [15:29:57]OFD Sender: No OFD packet to send [15:30:02]OFD Sender: No OFD packet to send [15:30:07]OFD Sender: No OFD packet to send [15:30:12]OFD Sender: No OFD packet to send [15:30:17]OFD Sender: No OFD packet to send [15:30:22]OFD Sender: No OFD packet to send [15:30:27]OFD Sender: No OFD packet to send [15:30:32]OFD Sender: No OFD packet to send [15:30:37]OFD Sender: No OFD packet to send [15:30:42]OFD Sender: No OFD packet to send [15:30:47]OFD Sender: No OFD packet to send [15:30:52]OFD Sender: No OFD packet to send [15:30:57]OFD Sender: No OFD packet to send [15:31:02]OFD Sender: No OFD packet to send [15:31:07]OFD Sender: No OFD packet to send [15:31:12]OFD Sender: No OFD packet to send [15:31:17]OFD Sender: No OFD packet to send [15:31:22]OFD Sender: No OFD packet to send [15:31:27]OFD Sender: No OFD packet to send [15:31:32]OFD Sender: No OFD packet to send [15:31:37]OFD Sender: No OFD packet to send [15:31:42]OFD Sender: No OFD packet to send [15:31:47]OFD Sender: No OFD packet to send [15:31:52]OFD Sender: No OFD packet to send [15:31:57]OFD Sender: No OFD packet to send [15:32:02]OFD Sender: No OFD packet to send [15:32:07]OFD Sender: No OFD packet to send [15:32:12]OFD Sender: No OFD packet to send [15:32:17]OFD Sender: No OFD packet to send [15:32:22]OFD Sender: No OFD packet to send [15:32:27]OFD Sender: No OFD packet to send [15:32:32]OFD Sender: No OFD packet to send [15:32:37]OFD Sender: No OFD packet to send [15:32:42]OFD Sender: No OFD packet to send [15:32:47]OFD Sender: No OFD packet to send [15:32:52]OFD Sender: No OFD packet to send [15:32:57]OFD Sender: No OFD packet to send [15:33:02]OFD Sender: No OFD packet to send [15:33:07]OFD Sender: No OFD packet to send [15:33:12]OFD Sender: No OFD packet to send [15:33:17]OFD Sender: No OFD packet to send [15:33:22]OFD Sender: No OFD packet to send [15:33:27]OFD Sender: No OFD packet to send [15:33:32]OFD Sender: No OFD packet to send [15:33:37]OFD Sender: No OFD packet to send [15:33:42]OFD Sender: No OFD packet to send [15:33:47]OFD Sender: No OFD packet to send [15:33:52]OFD Sender: No OFD packet to send [15:33:57]OFD Sender: No OFD packet to send [15:34:02]OFD Sender: No OFD packet to send [15:34:07]OFD Sender: No OFD packet to send [15:34:12]OFD Sender: No OFD packet to send [15:34:17]OFD Sender: No OFD packet to send [15:34:22]OFD Sender: No OFD packet to send [15:34:27]OFD Sender: No OFD packet to send [15:34:32]OFD Sender: No OFD packet to send [15:34:37]OFD Sender: No OFD packet to send [15:34:42]OFD Sender: No OFD packet to send [15:34:47]OFD Sender: No OFD packet to send [15:34:52]OFD Sender: No OFD packet to send [15:34:57]OFD Sender: No OFD packet to send [15:35:02]OFD Sender: No OFD packet to send [15:35:07]OFD Sender: No OFD packet to send [15:35:12]OFD Sender: No OFD packet to send [15:35:17]OFD Sender: No OFD packet to send [15:35:22]OFD Sender: No OFD packet to send [15:35:27]OFD Sender: No OFD packet to send [15:35:32]OFD Sender: No OFD packet to send [15:35:37]OFD Sender: No OFD packet to send [15:35:42]OFD Sender: No OFD packet to send [15:35:47]OFD Sender: No OFD packet to send [15:35:52]OFD Sender: No OFD packet to send [15:35:57]OFD Sender: No OFD packet to send [15:36:02]OFD Sender: No OFD packet to send [15:36:07]OFD Sender: No OFD packet to send [15:36:12]OFD Sender: No OFD packet to send [15:36:17]OFD Sender: No OFD packet to send [15:36:22]OFD Sender: No OFD packet to send [15:36:27]OFD Sender: No OFD packet to send [15:36:32]OFD Sender: No OFD packet to send [15:36:37]OFD Sender: No OFD packet to send [15:36:42]OFD Sender: No OFD packet to send [15:36:47]OFD Sender: No OFD packet to send [15:36:48]accept exits with 9 [15:36:48]New connection [15:36:48]New thread 3066568036 created [15:36:48]Thread 3066711396 joined [15:36:48]Waiting for new connection... [15:36:48] Sock 9.Parse request [15:36:48]Sock 9.Check first char [15:36:48]Sock 9.First char is OK [15:36:48]request: POST /json_proto HTTP/1.0 [15:36:48]Method: POST [15:36:48]URL: /json_proto [15:36:48]Method is POST - this is cgi request [15:36:48]url: /json_proto [15:36:48]query_string will be loaded in cgi processing [15:36:48]execute_cgi json_proto POST (null) [15:36:48]execute_cgi path=json_proto method=POST [15:36:48]POST find Content-Length [15:36:48]Host: 172.17.50.3:8080 [15:36:48]Content-Length: 683 [15:36:48]Content-Type: application/json [15:36:48] [15:36:48]POST finish read [15:36:48]Found Content-Length = 683 [15:36:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:48]execute_script... [15:36:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:48]POST & json_proto [15:36:48]process_json_proto [15:36:48]json parsed OK: [15:36:48]protocol is kg_v1.0 [15:36:48]action value=close_receipt [15:36:48]process_action close_receipt [15:36:48]cmd_close_receipt [15:36:48]MH_GetDate [15:36:48]Write to MH i2c: F0 00 00 91 0F 8F [15:36:48]Write i2c OK [15:36:48]MH_I2C_Read... [15:36:48]Read from MH i2c: F0 [15:36:48]MH_I2C_Read... [15:36:48]Read from MH i2c: F0 09 00 [15:36:48]MH_I2C_Read... [15:36:48]Read from MH i2c: F0 09 00 91 0F 00 91 23 15 67 6B 98 1E 66 4F [15:36:48]GetLastDocTimeStamp 1729437474 [15:36:48]current date 1729438609 [15:36:48]FM_GetShiftState [15:36:48]SAM_PROTO_GetShiftState [15:36:48]wFMCommunicate request_size=4 [15:36:48]MH_SAM_APDU [15:36:48]CAPDU: 80 13 01 00 [15:36:48]Write to MH i2c: E2 08 00 92 0F 80 13 01 00 00 00 00 00 1E [15:36:48]Write i2c OK [15:36:48]MH_I2C_Read... [15:36:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:48]Read from MH i2c: E2 [15:36:48]MH_I2C_Read... [15:36:48]Read from MH i2c: E2 0E 00 [15:36:48]MH_I2C_Read... [15:36:48]Read from MH i2c: E2 0E 00 92 0F 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 24 [15:36:48]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [15:36:48]wFMCommunicate OK [15:36:48]SAM_PROTO_GetShiftState done [15:36:48]FM_GetShiftState done [15:36:48]opened in 1729383220 [15:36:48]opened+sec_in_day 1729469620 [15:36:48]quantity*price = 100021 [15:36:48]sum+1 = 100023 [15:36:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 248 20.10.2024 15:36 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69403 ФПД: 88452940221076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T153649&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69403&fm=88452940221076&tin=02508201610067®Number=0000000000156251&sum=100000 [15:36:49]StoreToDocumentArchive [15:36:49]shift 193 fd 69403 [15:36:49]save to /storage/0193/doc_00069403 [15:36:49]save last doc name /storage/0193/doc_00069403 to /storage/kkm_last_doc_name [15:36:49]save OK [15:36:49]Clear old archive folders... [15:36:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:36:49]tlvbuf is 00245610 [15:36:49]SAM_PROTO_ClearQueue [15:36:49]wFMCommunicate request_size=4 [15:36:49]MH_SAM_APDU [15:36:49]CAPDU: 80 09 00 00 [15:36:49]Write to MH i2c: E2 08 00 9F 0F 80 09 00 00 00 00 00 00 20 [15:36:49]Write i2c OK [15:36:49]MH_I2C_Read... [15:36:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:36:49]Read from MH i2c: E2 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: E2 03 00 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: E2 03 00 9F 0F 00 90 00 22 [15:36:49]RAPDU: 90 00 [15:36:49]wFMCommunicate OK [15:36:49]SAM_PROTO_ClearQueue done [15:36:49]KKMCreateOFDPacket [15:36:49]OFDProtocolAddRootSTLVToBuf [15:36:49]FM_MakeSignedData [15:36:49]FM_MakeSignedData [15:36:49]SAM_PROTO_SignData [15:36:49]wFMCommunicate request_size=4 [15:36:49]MH_SAM_APDU [15:36:49]CAPDU: 80 0D 01 02 [15:36:49]Write to MH i2c: E2 08 00 A0 0F 80 0D 01 02 00 00 00 00 28 [15:36:49]Write i2c OK [15:36:49]MH_I2C_Read... [15:36:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:36:49]Read from MH i2c: E2 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: E2 03 00 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: E2 03 00 A0 0F 00 90 00 23 [15:36:49]RAPDU: 90 00 [15:36:49]wFMCommunicate OK [15:36:49]wFMCommunicate request_size=255 [15:36:49]MH_SAM_APDU [15:36:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 91 23 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1B 0F 01 00 35 04 06 00 50 [15:36:49]Write to MH i2c: E2 02 01 A1 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 91 23 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1B 0F 01 00 35 04 06 00 50 00 00 32 [15:36:49]Write i2c OK [15:36:49]MH_I2C_Read... [15:36:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:49]Read from MH i2c: E2 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: E2 03 00 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: E2 03 00 A1 0F 00 90 00 24 [15:36:49]RAPDU: 90 00 [15:36:49]wFMCommunicate OK [15:36:49]wFMCommunicate request_size=10 [15:36:49]MH_SAM_APDU [15:36:49]CAPDU: 80 0D 02 02 05 72 8E 14 CA 94 [15:36:49]Write to MH i2c: E2 0D 00 A2 0F 80 0D 02 02 05 00 72 8E 14 CA 94 00 00 A7 [15:36:49]Write i2c OK [15:36:49]MH_I2C_Read... [15:36:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:49]Read from MH i2c: E2 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: E2 03 00 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: E2 03 00 A2 0F 00 90 00 25 [15:36:49]RAPDU: 90 00 [15:36:49]wFMCommunicate OK [15:36:49]wFMCommunicate request_size=4 [15:36:49]MH_SAM_APDU [15:36:49]CAPDU: 80 0D 03 02 [15:36:49]Write to MH i2c: E2 08 00 A3 0F 80 0D 03 02 00 00 00 00 2D [15:36:49]Write i2c OK [15:36:49]MH_I2C_Read... [15:36:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:36:49]Read from MH i2c: E2 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: E2 0B 00 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: E2 0B 00 A3 0F 00 FC F5 71 C9 9C 15 F7 84 90 00 85 [15:36:49]RAPDU: FC F5 71 C9 9C 15 F7 84 90 00 [15:36:49]wFMCommunicate OK [15:36:49]SAM_PROTO_SignData done [15:36:49]FM_MakeSignedData done [15:36:49]CreateOFDProtocolMessage [15:36:49]wFMCommunicate request_size=4 [15:36:49]MH_SAM_APDU [15:36:49]CAPDU: 80 11 00 00 [15:36:49]Write to MH i2c: E2 08 00 A4 0F 80 11 00 00 00 00 00 00 2D [15:36:49]Write i2c OK [15:36:49]MH_I2C_Read... [15:36:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:50]Read from MH i2c: E2 [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: E2 17 00 [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: E2 17 00 A4 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7F [15:36:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:36:50]wFMCommunicate OK [15:36:50]CreateOFDProtocolMessage done [15:36:50]OFDSenderStorePacket 69403 [15:36:50]StoreOFDPacket docnum=69403 [15:36:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A8 C3 07 01 DC 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 91 23 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1B 0F 01 00 35 04 06 00 50 72 8E 14 CA 94 FC F5 71 C9 9C 15 F7 84 [15:36:50]CheckFolder [15:36:50]dirname=/storage/ofd_packets [15:36:50]CheckFolder done [15:36:50]ProducePacketName [15:36:50]name=ofd_packets/00069403 [15:36:50]NVStorageSaveData ofd_packets/00069403 [15:36:50]File name is /storage/ofd_packets/00069403 [15:36:50]Write 301 bytes [15:36:50]NVStorageSaveData done [15:36:50]OFDSenderStorePacket done [15:36:50]KKMCreateOFDPacket done [15:36:50]NVStorageSaveData kkm_last_timestamp [15:36:50]File name is /storage/kkm_last_timestamp [15:36:50]Write 4 bytes [15:36:50]NVStorageSaveData done [15:36:50]ExternCall_PrintAddStr [15:36:50]wPrintStart [15:36:50]Write to MH i2c: 01 00 00 A5 0F B4 [15:36:50]OFD Sender: Processing packet 69403 [packets to send 18, broken 17] [15:36:50]ProducePacketName [15:36:50]name=ofd_packets/00069403 [15:36:50]OFD Sender: To server: pG, [15:36:50]CommunicateWithHost lk.salyk.kg:30040 [15:36:50]ConnectInit lk.salyk.kg [15:36:50]Write i2c OK [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: 01 [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: 01 07 00 [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: 01 07 00 A5 0F 00 00 00 00 00 FF 0F C9 [15:36:50]RasterBufferAndPrint [15:36:50]line Счет N : (1)2885130 [15:36:50]line ИНН: 02508201610067 [15:36:50]line Контрольно-Кассовый Чек [15:36:50]line ПРОДАЖА [15:36:50]line ТРК (МРК, ГНК) : 43 [15:36:50]line Товар: 2710124500 [15:36:50]line Аи-95-К-5 [15:36:50]line 13.480 * 74.20 [15:36:50]line = 1000.22 [15:36:50]line НДС 12% НСП 1% [15:36:50]line > о реализуемом товаре [15:36:50]line ОКРУГЛЕНИЕ: -0.22 [15:36:50]line ИТОГО: 1000.00 [15:36:50]line Внесено: 1000.00 [15:36:50]line СДАЧА: 0.00 [15:36:50]line НСП 1% : 8.85 [15:36:50]line НДС 12% : 106.22 [15:36:50]line Наличными: 1000.00 [15:36:50]line Безнал.: 0.00 [15:36:50]line Место: АЗС № 85 "Партнер Нефть" [15:36:50]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:36:50]line СНО: Общий режим [15:36:50]line Чек 248 20.10.2024 15:36 [15:36:50]line Смена: 193 ФФД: 1.0 [15:36:50]line ЗНМ: 0300000167 [15:36:50]line РНМ: 0000000000156251 [15:36:50]line Версия ККМ: v1.0 [15:36:50]line ФМ: 0000000000963346 [15:36:50]line ФД: 69403 [15:36:50]line ФПД: 88452940221076 [15:36:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T153649&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69403&fm=88452940221076&tin=02508201610067®Number=0000000000156251&sum=100000 [15:36:50]Connected sock=10 [15:36:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A8 C3 07 01 DC 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 91 23 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1B 0F 01 00 35 04 06 00 50 72 8E 14 CA 94 FC F5 71 C9 9C 15 F7 84 [15:36:50]written 0, free lines is 4095 [15:36:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 24 1A 47 00 B2 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1B 0F 01 00 F4 03 04 00 37 CD 14 67 B6 04 01 00 00 EA 07 FA AD 76 36 5C 1B [15:36:50]CommunicateWithHost err = 0 [15:36:50]CheckOFDResponse [15:36:50]1017 (14) - 77093643461234 [15:36:50]1041 (16) - 0000000000963346 [15:36:50]1040 (4) - 69403 [15:36:50]1012 (4) - 20.10.2024 09:28 [15:36:50]1206 (1) - 0 [15:36:50]OFD Sender: Remove packet 69403 [15:36:50]ProducePacketName [15:36:50]name=ofd_packets/00069403 [15:36:50]NVStorageDeleteData [15:36:50]Write to MH i2c: 01 00 00 D0 0F DF [15:36:50]Write i2c OK [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: 01 [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: 01 07 00 [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: 01 07 00 D0 0F 00 00 00 00 00 EB 0C DD [15:36:50]RasterBufferAndPrint [15:36:50]line [15:36:50]line [15:36:50]line [15:36:50]line [15:36:50]line [15:36:50]written 0, free lines is 3313 [15:36:50]MH_Cut [15:36:50]Write to MH i2c: D1 01 00 D7 0F 01 B8 [15:36:50]Write i2c OK [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: D1 [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: D1 01 00 [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: D1 01 00 D7 0F 00 B7 [15:36:50]Write to MH i2c: 01 00 00 D8 0F E7 [15:36:50]Write i2c OK [15:36:50]MH_I2C_Read... [15:36:51]OFD Sender: No OFD packet to send [15:36:51]*** Cut start [15:36:51]*** Partial cut [15:36:51]*** CUTSNS_PIN = 1 [15:36:51]*** CUTSNS_PIN = 0 [15:36:51]*** Brake cut motor [15:36:52]Read from MH i2c: 01 [15:36:52]MH_I2C_Read... [15:36:52]*** Stop cut motor [15:36:52]*** Cut end [15:36:52]Read from MH i2c: 01 07 00 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: 01 07 00 D8 0F 00 00 00 00 00 FF 0F FC [15:36:52]process_action close_receipt done [15:36:52]requested_data is exist [15:36:52]produce_requested_data [15:36:52]requested_item fm.sn is exist - process it [15:36:52]wFMCommunicate request_size=4 [15:36:52]MH_SAM_APDU [15:36:52]CAPDU: 80 11 00 00 [15:36:52]Write to MH i2c: E2 08 00 D9 0F 80 11 00 00 00 00 00 00 62 [15:36:52]Write i2c OK [15:36:52]MH_I2C_Read... [15:36:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:52]Read from MH i2c: E2 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: E2 17 00 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: E2 17 00 D9 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B4 [15:36:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:36:52]wFMCommunicate OK [15:36:52]requested_item fd.num is exist - process it [15:36:52]SAM_PROTO_GetFieldsCounters [15:36:52]wFMCommunicate request_size=4 [15:36:52]MH_SAM_APDU [15:36:52]CAPDU: 80 13 00 00 [15:36:52]Write to MH i2c: E2 08 00 DA 0F 80 13 00 00 00 00 00 00 65 [15:36:52]Write i2c OK [15:36:52]MH_I2C_Read... [15:36:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:52]Read from MH i2c: E2 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: E2 62 00 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: E2 62 00 DA 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1B 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [15:36:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1B 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:36:52]wFMCommunicate OK [15:36:52]SAM_PROTO_GetFieldsCounters done [15:36:52]requested_item shift.num is exist - process it [15:36:52]requested_item shift.opened is exist - process it [15:36:52]req_shift_opened [15:36:52]FM_GetShiftState [15:36:52]SAM_PROTO_GetShiftState [15:36:52]wFMCommunicate request_size=4 [15:36:52]MH_SAM_APDU [15:36:52]CAPDU: 80 13 01 00 [15:36:52]Write to MH i2c: E2 08 00 DB 0F 80 13 01 00 00 00 00 00 67 [15:36:52]Write i2c OK [15:36:52]MH_I2C_Read... [15:36:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:52]Read from MH i2c: E2 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: E2 0E 00 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: E2 0E 00 DB 0F 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 6D [15:36:52]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [15:36:52]wFMCommunicate OK [15:36:52]SAM_PROTO_GetShiftState done [15:36:52]FM_GetShiftState done [15:36:52]req_shift_opened done [15:36:52]requested_item shift.open_date is exist - process it [15:36:52]req_shift_open_date [15:36:52]req_shift_open_date done [15:36:52]produce_requested_data done [15:36:52]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69403,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [15:36:52]process_action_free close_receipt [15:36:52]json_value_free [15:36:52]json_value_free done [15:36:52]process_json_proto returns [15:36:52]Send response to host [15:36:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69403,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [15:36:52]free response buf [15:36:52]execute_script done [15:36:52]execute_script returns [15:36:52]free content buf [15:36:52]Sock 9.Close socket [15:36:52]Sock 9.Thread stoped [15:36:56]OFD Sender: No OFD packet to send [15:37:01]OFD Sender: No OFD packet to send [15:37:06]OFD Sender: No OFD packet to send [15:37:11]OFD Sender: No OFD packet to send [15:37:16]OFD Sender: No OFD packet to send [15:37:21]OFD Sender: No OFD packet to send [15:37:26]OFD Sender: No OFD packet to send [15:37:31]OFD Sender: No OFD packet to send [15:37:36]OFD Sender: No OFD packet to send [15:37:41]OFD Sender: No OFD packet to send [15:37:46]OFD Sender: No OFD packet to send [15:37:51]OFD Sender: No OFD packet to send [15:37:56]OFD Sender: No OFD packet to send [15:38:01]OFD Sender: No OFD packet to send [15:38:06]OFD Sender: No OFD packet to send [15:38:11]OFD Sender: No OFD packet to send [15:38:16]OFD Sender: No OFD packet to send [15:38:21]OFD Sender: No OFD packet to send [15:38:26]OFD Sender: No OFD packet to send [15:38:31]OFD Sender: No OFD packet to send [15:38:36]OFD Sender: No OFD packet to send [15:38:41]OFD Sender: No OFD packet to send [15:38:46]OFD Sender: No OFD packet to send [15:38:51]OFD Sender: No OFD packet to send [15:38:56]OFD Sender: No OFD packet to send [15:39:01]OFD Sender: No OFD packet to send [15:39:06]OFD Sender: No OFD packet to send [15:39:11]OFD Sender: No OFD packet to send [15:39:14]accept exits with 8 [15:39:14]New connection [15:39:14]New thread 3066711396 created [15:39:14]Thread 3066568036 joined [15:39:14]Waiting for new connection... [15:39:14] Sock 8.Parse request [15:39:14]Sock 8.Check first char [15:39:14]Sock 8.First char is OK [15:39:14]request: POST /json_proto HTTP/1.0 [15:39:14]Method: POST [15:39:14]URL: /json_proto [15:39:14]Method is POST - this is cgi request [15:39:14]url: /json_proto [15:39:14]query_string will be loaded in cgi processing [15:39:14]execute_cgi json_proto POST (null) [15:39:14]execute_cgi path=json_proto method=POST [15:39:14]POST find Content-Length [15:39:14]Host: 172.17.50.3:8080 [15:39:14]Content-Length: 773 [15:39:14]Content-Type: application/json [15:39:14] [15:39:14]POST finish read [15:39:14]Found Content-Length = 773 [15:39:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 30.850, "sum" : 1200.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1200.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:14]execute_script... [15:39:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 30.850, "sum" : 1200.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1200.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:14]POST & json_proto [15:39:14]process_json_proto [15:39:14]json parsed OK: [15:39:14]protocol is kg_v1.0 [15:39:14]action value=close_receipt [15:39:14]process_action close_receipt [15:39:14]cmd_close_receipt [15:39:14]MH_GetDate [15:39:14]Write to MH i2c: F0 00 00 DC 0F DA [15:39:14]Write i2c OK [15:39:14]MH_I2C_Read... [15:39:14]Read from MH i2c: F0 [15:39:14]MH_I2C_Read... [15:39:14]Read from MH i2c: F0 09 00 [15:39:14]MH_I2C_Read... [15:39:14]Read from MH i2c: F0 09 00 DC 0F 00 23 24 15 67 6B 98 1E 66 2D [15:39:14]GetLastDocTimeStamp 1729438609 [15:39:14]current date 1729438755 [15:39:14]FM_GetShiftState [15:39:14]SAM_PROTO_GetShiftState [15:39:14]wFMCommunicate request_size=4 [15:39:14]MH_SAM_APDU [15:39:14]CAPDU: 80 13 01 00 [15:39:14]Write to MH i2c: E2 08 00 DD 0F 80 13 01 00 00 00 00 00 69 [15:39:14]Write i2c OK [15:39:14]MH_I2C_Read... [15:39:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:14]Read from MH i2c: E2 [15:39:14]MH_I2C_Read... [15:39:14]Read from MH i2c: E2 0E 00 [15:39:14]MH_I2C_Read... [15:39:14]Read from MH i2c: E2 0E 00 DD 0F 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 6F [15:39:14]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [15:39:14]wFMCommunicate OK [15:39:14]SAM_PROTO_GetShiftState done [15:39:14]FM_GetShiftState done [15:39:14]opened in 1729383220 [15:39:14]opened+sec_in_day 1729469620 [15:39:14]quantity*price = 120006 [15:39:14]sum+1 = 120008 [15:39:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.07 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 0.00 Безнал.: 1200.07 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 249 20.10.2024 15:39 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69404 ФПД: 241806332216603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T153915&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69404&fm=241806332216603&tin=02508201610067®Number=0000000000156251&sum=120007 [15:39:15]StoreToDocumentArchive [15:39:15]shift 193 fd 69404 [15:39:15]save to /storage/0193/doc_00069404 [15:39:15]save last doc name /storage/0193/doc_00069404 to /storage/kkm_last_doc_name [15:39:15]save OK [15:39:15]Clear old archive folders... [15:39:15]ProcessDocumentItem done err = 0, tmpTLVsize=250 [15:39:15]tlvbuf is 002461B0 [15:39:15]SAM_PROTO_ClearQueue [15:39:15]wFMCommunicate request_size=4 [15:39:15]MH_SAM_APDU [15:39:15]CAPDU: 80 09 00 00 [15:39:15]Write to MH i2c: E2 08 00 EA 0F 80 09 00 00 00 00 00 00 6B [15:39:15]Write i2c OK [15:39:15]MH_I2C_Read... [15:39:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:39:15]Read from MH i2c: E2 [15:39:15]MH_I2C_Read... [15:39:15]Read from MH i2c: E2 03 00 [15:39:15]MH_I2C_Read... [15:39:15]Read from MH i2c: E2 03 00 EA 0F 00 90 00 6D [15:39:15]RAPDU: 90 00 [15:39:15]wFMCommunicate OK [15:39:15]SAM_PROTO_ClearQueue done [15:39:15]KKMCreateOFDPacket [15:39:15]OFDProtocolAddRootSTLVToBuf [15:39:15]FM_MakeSignedData [15:39:15]FM_MakeSignedData [15:39:15]SAM_PROTO_SignData [15:39:15]wFMCommunicate request_size=4 [15:39:15]MH_SAM_APDU [15:39:15]CAPDU: 80 0D 01 02 [15:39:15]Write to MH i2c: E2 08 00 EB 0F 80 0D 01 02 00 00 00 00 73 [15:39:15]Write i2c OK [15:39:15]MH_I2C_Read... [15:39:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:39:15]Read from MH i2c: E2 [15:39:15]MH_I2C_Read... [15:39:15]Read from MH i2c: E2 03 00 [15:39:15]MH_I2C_Read... [15:39:15]Read from MH i2c: E2 03 00 EB 0F 00 90 00 6E [15:39:15]RAPDU: 90 00 [15:39:15]wFMCommunicate OK [15:39:15]wFMCommunicate request_size=255 [15:39:15]MH_SAM_APDU [15:39:15]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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 82 78 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C7 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C7 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C7 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 23 24 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1C 0F 01 00 35 04 06 00 DB EB [15:39:15]Write to MH i2c: E2 02 01 EC 0F 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 82 78 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C7 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C7 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C7 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 23 24 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1C 0F 01 00 35 04 06 00 DB EB 00 00 C6 [15:39:15]Write i2c OK [15:39:15]MH_I2C_Read... [15:39:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:16]Read from MH i2c: E2 [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: E2 03 00 [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: E2 03 00 EC 0F 00 90 00 6F [15:39:16]RAPDU: 90 00 [15:39:16]wFMCommunicate OK [15:39:16]wFMCommunicate request_size=9 [15:39:16]MH_SAM_APDU [15:39:16]CAPDU: 80 0D 02 02 04 EC 89 45 1B [15:39:16]Write to MH i2c: E2 0C 00 ED 0F 80 0D 02 02 04 00 EC 89 45 1B 00 00 53 [15:39:16]Write i2c OK [15:39:16]MH_I2C_Read... [15:39:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:16]Read from MH i2c: E2 [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: E2 03 00 [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: E2 03 00 ED 0F 00 90 00 70 [15:39:16]RAPDU: 90 00 [15:39:16]wFMCommunicate OK [15:39:16]wFMCommunicate request_size=4 [15:39:16]MH_SAM_APDU [15:39:16]CAPDU: 80 0D 03 02 [15:39:16]Write to MH i2c: E2 08 00 EE 0F 80 0D 03 02 00 00 00 00 78 [15:39:16]Write i2c OK [15:39:16]MH_I2C_Read... [15:39:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:39:16]Read from MH i2c: E2 [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: E2 0B 00 [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: E2 0B 00 EE 0F 00 5D C2 95 3C 72 53 0D DE 90 00 19 [15:39:16]RAPDU: 5D C2 95 3C 72 53 0D DE 90 00 [15:39:16]wFMCommunicate OK [15:39:16]SAM_PROTO_SignData done [15:39:16]FM_MakeSignedData done [15:39:16]CreateOFDProtocolMessage [15:39:16]wFMCommunicate request_size=4 [15:39:16]MH_SAM_APDU [15:39:16]CAPDU: 80 11 00 00 [15:39:16]Write to MH i2c: E2 08 00 EF 0F 80 11 00 00 00 00 00 00 78 [15:39:16]Write i2c OK [15:39:16]MH_I2C_Read... [15:39:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:16]Read from MH i2c: E2 [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: E2 17 00 [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: E2 17 00 EF 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CA [15:39:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:39:16]wFMCommunicate OK [15:39:16]CreateOFDProtocolMessage done [15:39:16]OFDSenderStorePacket 69404 [15:39:16]StoreOFDPacket docnum=69404 [15:39:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 61 1A 06 01 6F D1 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 82 78 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C7 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C7 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C7 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 23 24 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1C 0F 01 00 35 04 06 00 DB EB EC 89 45 1B 5D C2 95 3C 72 53 0D DE [15:39:16]CheckFolder [15:39:16]dirname=/storage/ofd_packets [15:39:16]CheckFolder done [15:39:16]ProducePacketName [15:39:16]name=ofd_packets/00069404 [15:39:16]NVStorageSaveData ofd_packets/00069404 [15:39:16]File name is /storage/ofd_packets/00069404 [15:39:16]Write 300 bytes [15:39:16]NVStorageSaveData done [15:39:16]OFDSenderStorePacket done [15:39:16]KKMCreateOFDPacket done [15:39:16]NVStorageSaveData kkm_last_timestamp [15:39:16]File name is /storage/kkm_last_timestamp [15:39:16]Write 4 bytes [15:39:16]NVStorageSaveData done [15:39:16]ExternCall_PrintAddStr [15:39:16]wPrintStart [15:39:16]Write to MH i2c: 01 00 00 F0 0F FF [15:39:16]Write i2c OK [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: 01 [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: 01 07 00 [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: 01 07 00 F0 0F 00 00 00 00 00 FF 0F 14 [15:39:16]RasterBufferAndPrint [15:39:16]line Счет N : (1)2885131 [15:39:16]line ИНН: 02508201610067 [15:39:16]line Контрольно-Кассовый Чек [15:39:16]line ПРОДАЖА [15:39:16]line ТРК (МРК, ГНК) : 71 [15:39:16]line Товар: 2711129700 [15:39:16]line ГАЗ-К-3 [15:39:16]line 30.850 * 38.90 [15:39:16]line = 1200.07 [15:39:16]line НДС 12% НСП 1% [15:39:16]line > о реализуемом товаре [15:39:16]line ИТОГО: 1200.07 [15:39:16]line НСП 1% : 10.62 [15:39:16]line НДС 12% : 127.44 [15:39:16]line Наличными: 0.00 [15:39:16]line Безнал.: 1200.07 [15:39:16]line Место: АЗС № 85 "Партнер Нефть" [15:39:16]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:39:16]line СНО: Общий режим [15:39:16]line Чек 249 20.10.2024 15:39 [15:39:16]line Смена: 193 ФФД: 1.0 [15:39:16]line ЗНМ: 0300000167 [15:39:16]line РНМ: 0000000000156251 [15:39:16]line Версия ККМ: v1.0 [15:39:16]line Платежная система: Mbank [15:39:16]line ФМ: 0000000000963346 [15:39:16]line ФД: 69404 [15:39:16]line ФПД: 241806332216603 [15:39:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T153915&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69404&fm=241806332216603&tin=02508201610067®Number=0000000000156251&sum=120007 [15:39:16]OFD Sender: Processing packet 69404 [packets to send 18, broken 17] [15:39:16]ProducePacketName [15:39:16]name=ofd_packets/00069404 [15:39:16]OFD Sender: To server: pG, [15:39:16]CommunicateWithHost lk.salyk.kg:30040 [15:39:16]ConnectInit lk.salyk.kg [15:39:16]written 0, free lines is 4095 [15:39:16]Connected sock=11 [15:39:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 61 1A 06 01 6F D1 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 82 78 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C7 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C7 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C7 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 23 24 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1C 0F 01 00 35 04 06 00 DB EB EC 89 45 1B 5D C2 95 3C 72 53 0D DE [15:39:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 86 69 47 00 98 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1C 0F 01 00 F4 03 04 00 C9 CD 14 67 B6 04 01 00 00 83 D9 B2 97 4F BC 37 5B [15:39:16]CommunicateWithHost err = 0 [15:39:16]CheckOFDResponse [15:39:16]1017 (14) - 77093643461234 [15:39:16]1041 (16) - 0000000000963346 [15:39:16]1040 (4) - 69404 [15:39:16]1012 (4) - 20.10.2024 09:30 [15:39:16]1206 (1) - 0 [15:39:16]OFD Sender: Remove packet 69404 [15:39:16]ProducePacketName [15:39:16]name=ofd_packets/00069404 [15:39:16]NVStorageDeleteData [15:39:16]Write to MH i2c: 01 00 00 19 10 29 [15:39:16]Write i2c OK [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: 01 [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: 01 07 00 [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: 01 07 00 19 10 00 00 00 00 00 0C 0D 49 [15:39:16]RasterBufferAndPrint [15:39:16]line [15:39:16]line [15:39:16]line [15:39:16]line [15:39:16]line [15:39:16]written 0, free lines is 3346 [15:39:16]MH_Cut [15:39:16]Write to MH i2c: D1 01 00 20 10 01 02 [15:39:17]Write i2c OK [15:39:17]MH_I2C_Read... [15:39:17]Read from MH i2c: D1 [15:39:17]MH_I2C_Read... [15:39:17]Read from MH i2c: D1 01 00 [15:39:17]MH_I2C_Read... [15:39:17]Read from MH i2c: D1 01 00 20 10 00 01 [15:39:17]Write to MH i2c: 01 00 00 21 10 31 [15:39:17]Write i2c OK [15:39:17]MH_I2C_Read... [15:39:17]OFD Sender: No OFD packet to send [15:39:17]*** Cut start [15:39:17]*** Partial cut [15:39:17]*** CUTSNS_PIN = 1 [15:39:17]*** CUTSNS_PIN = 0 [15:39:17]*** Brake cut motor [15:39:18]Read from MH i2c: 01 [15:39:18]MH_I2C_Read... [15:39:18]*** Stop cut motor [15:39:18]*** Cut end [15:39:18]Read from MH i2c: 01 07 00 [15:39:18]MH_I2C_Read... [15:39:18]Read from MH i2c: 01 07 00 21 10 00 00 00 00 00 FF 0F 46 [15:39:18]process_action close_receipt done [15:39:18]requested_data is exist [15:39:18]produce_requested_data [15:39:18]requested_item fm.sn is exist - process it [15:39:18]wFMCommunicate request_size=4 [15:39:18]MH_SAM_APDU [15:39:18]CAPDU: 80 11 00 00 [15:39:18]Write to MH i2c: E2 08 00 22 10 80 11 00 00 00 00 00 00 AC [15:39:18]Write i2c OK [15:39:18]MH_I2C_Read... [15:39:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:18]Read from MH i2c: E2 [15:39:18]MH_I2C_Read... [15:39:18]Read from MH i2c: E2 17 00 [15:39:18]MH_I2C_Read... [15:39:18]Read from MH i2c: E2 17 00 22 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FE [15:39:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:39:18]wFMCommunicate OK [15:39:18]requested_item fd.num is exist - process it [15:39:18]SAM_PROTO_GetFieldsCounters [15:39:18]wFMCommunicate request_size=4 [15:39:18]MH_SAM_APDU [15:39:18]CAPDU: 80 13 00 00 [15:39:18]Write to MH i2c: E2 08 00 23 10 80 13 00 00 00 00 00 00 AF [15:39:18]Write i2c OK [15:39:18]MH_I2C_Read... [15:39:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:39:18]Read from MH i2c: E2 [15:39:18]MH_I2C_Read... [15:39:18]Read from MH i2c: E2 62 00 [15:39:18]MH_I2C_Read... [15:39:18]Read from MH i2c: E2 62 00 23 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1C 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [15:39:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1C 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:39:18]wFMCommunicate OK [15:39:18]SAM_PROTO_GetFieldsCounters done [15:39:18]requested_item shift.num is exist - process it [15:39:18]requested_item shift.opened is exist - process it [15:39:18]req_shift_opened [15:39:18]FM_GetShiftState [15:39:18]SAM_PROTO_GetShiftState [15:39:18]wFMCommunicate request_size=4 [15:39:18]MH_SAM_APDU [15:39:18]CAPDU: 80 13 01 00 [15:39:18]Write to MH i2c: E2 08 00 24 10 80 13 01 00 00 00 00 00 B1 [15:39:18]Write i2c OK [15:39:18]MH_I2C_Read... [15:39:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:18]Read from MH i2c: E2 [15:39:18]MH_I2C_Read... [15:39:18]Read from MH i2c: E2 0E 00 [15:39:18]MH_I2C_Read... [15:39:18]Read from MH i2c: E2 0E 00 24 10 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 B7 [15:39:18]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [15:39:18]wFMCommunicate OK [15:39:18]SAM_PROTO_GetShiftState done [15:39:18]FM_GetShiftState done [15:39:18]req_shift_opened done [15:39:18]requested_item shift.open_date is exist - process it [15:39:18]req_shift_open_date [15:39:18]req_shift_open_date done [15:39:18]produce_requested_data done [15:39:18]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69404,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [15:39:18]process_action_free close_receipt [15:39:18]json_value_free [15:39:18]json_value_free done [15:39:18]process_json_proto returns [15:39:18]Send response to host [15:39:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69404,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [15:39:18]free response buf [15:39:18]execute_script done [15:39:18]execute_script returns [15:39:18]free content buf [15:39:18]Sock 8.Close socket [15:39:18]Sock 8.Thread stoped [15:39:22]OFD Sender: No OFD packet to send [15:39:27]OFD Sender: No OFD packet to send [15:39:32]OFD Sender: No OFD packet to send [15:39:37]OFD Sender: No OFD packet to send [15:39:42]OFD Sender: No OFD packet to send [15:39:47]OFD Sender: No OFD packet to send [15:39:52]OFD Sender: No OFD packet to send [15:39:57]OFD Sender: No OFD packet to send [15:40:02]OFD Sender: No OFD packet to send [15:40:07]OFD Sender: No OFD packet to send [15:40:12]OFD Sender: No OFD packet to send [15:40:17]OFD Sender: No OFD packet to send [15:40:22]OFD Sender: No OFD packet to send [15:40:27]OFD Sender: No OFD packet to send [15:40:32]OFD Sender: No OFD packet to send [15:40:37]OFD Sender: No OFD packet to send [15:40:42]OFD Sender: No OFD packet to send [15:40:47]OFD Sender: No OFD packet to send [15:40:52]OFD Sender: No OFD packet to send [15:40:57]OFD Sender: No OFD packet to send [15:41:02]OFD Sender: No OFD packet to send [15:41:07]OFD Sender: No OFD packet to send [15:41:12]OFD Sender: No OFD packet to send [15:41:17]OFD Sender: No OFD packet to send [15:41:22]OFD Sender: No OFD packet to send [15:41:27]OFD Sender: No OFD packet to send [15:41:32]OFD Sender: No OFD packet to send [15:41:37]OFD Sender: No OFD packet to send [15:41:42]OFD Sender: No OFD packet to send [15:41:47]OFD Sender: No OFD packet to send [15:41:52]OFD Sender: No OFD packet to send [15:41:57]OFD Sender: No OFD packet to send [15:42:02]OFD Sender: No OFD packet to send [15:42:07]OFD Sender: No OFD packet to send [15:42:12]OFD Sender: No OFD packet to send [15:42:17]OFD Sender: No OFD packet to send [15:42:22]OFD Sender: No OFD packet to send [15:42:27]OFD Sender: No OFD packet to send [15:42:32]OFD Sender: No OFD packet to send [15:42:37]OFD Sender: No OFD packet to send [15:42:42]OFD Sender: No OFD packet to send [15:42:47]OFD Sender: No OFD packet to send [15:42:52]OFD Sender: No OFD packet to send [15:42:57]OFD Sender: No OFD packet to send [15:43:02]OFD Sender: No OFD packet to send [15:43:07]OFD Sender: No OFD packet to send [15:43:12]OFD Sender: No OFD packet to send [15:43:17]OFD Sender: No OFD packet to send [15:43:22]OFD Sender: No OFD packet to send [15:43:27]OFD Sender: No OFD packet to send [15:43:32]OFD Sender: No OFD packet to send [15:43:37]OFD Sender: No OFD packet to send [15:43:42]OFD Sender: No OFD packet to send [15:43:47]OFD Sender: No OFD packet to send [15:43:52]OFD Sender: No OFD packet to send [15:43:57]OFD Sender: No OFD packet to send [15:44:02]OFD Sender: No OFD packet to send [15:44:03]accept exits with 9 [15:44:03]New connection [15:44:03]New thread 3066568036 created [15:44:03]Thread 3066711396 joined [15:44:03]Waiting for new connection... [15:44:03] Sock 9.Parse request [15:44:03]Sock 9.Check first char [15:44:03]Sock 9.First char is OK [15:44:03]request: POST /json_proto HTTP/1.0 [15:44:03]Method: POST [15:44:03]URL: /json_proto [15:44:03]Method is POST - this is cgi request [15:44:03]url: /json_proto [15:44:03]query_string will be loaded in cgi processing [15:44:03]execute_cgi json_proto POST (null) [15:44:03]execute_cgi path=json_proto method=POST [15:44:03]POST find Content-Length [15:44:03]Host: 172.17.50.3:8080 [15:44:03]Content-Length: 689 [15:44:03]Content-Type: application/json [15:44:03] [15:44:03]POST finish read [15:44:03]Found Content-Length = 689 [15:44:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:03]execute_script... [15:44:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:03]POST & json_proto [15:44:03]process_json_proto [15:44:03]json parsed OK: [15:44:03]protocol is kg_v1.0 [15:44:03]action value=close_receipt [15:44:03]process_action close_receipt [15:44:03]cmd_close_receipt [15:44:03]MH_GetDate [15:44:03]Write to MH i2c: F0 00 00 25 10 24 [15:44:03]Write i2c OK [15:44:03]MH_I2C_Read... [15:44:03]Read from MH i2c: F0 [15:44:03]MH_I2C_Read... [15:44:03]Read from MH i2c: F0 09 00 [15:44:03]MH_I2C_Read... [15:44:03]Read from MH i2c: F0 09 00 25 10 00 43 25 15 67 6B 98 1E 66 98 [15:44:03]GetLastDocTimeStamp 1729438755 [15:44:03]current date 1729439043 [15:44:03]FM_GetShiftState [15:44:03]SAM_PROTO_GetShiftState [15:44:03]wFMCommunicate request_size=4 [15:44:03]MH_SAM_APDU [15:44:03]CAPDU: 80 13 01 00 [15:44:03]Write to MH i2c: E2 08 00 26 10 80 13 01 00 00 00 00 00 B3 [15:44:03]Write i2c OK [15:44:03]MH_I2C_Read... [15:44:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:03]Read from MH i2c: E2 [15:44:03]MH_I2C_Read... [15:44:03]Read from MH i2c: E2 0E 00 [15:44:03]MH_I2C_Read... [15:44:03]Read from MH i2c: E2 0E 00 26 10 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 B9 [15:44:03]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [15:44:03]wFMCommunicate OK [15:44:03]SAM_PROTO_GetShiftState done [15:44:03]FM_GetShiftState done [15:44:03]opened in 1729383220 [15:44:03]opened+sec_in_day 1729469620 [15:44:03]quantity*price = 100051 [15:44:03]sum+1 = 100052 [15:44:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 250 20.10.2024 15:44 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69405 ФПД: 259654748167493 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T154403&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69405&fm=259654748167493&tin=02508201610067®Number=0000000000156251&sum=100000 [15:44:04]StoreToDocumentArchive [15:44:04]shift 193 fd 69405 [15:44:04]save to /storage/0193/doc_00069405 [15:44:04]save last doc name /storage/0193/doc_00069405 to /storage/kkm_last_doc_name [15:44:04]save OK [15:44:04]Clear old archive folders... [15:44:04]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:44:04]tlvbuf is 002256D0 [15:44:04]SAM_PROTO_ClearQueue [15:44:04]wFMCommunicate request_size=4 [15:44:04]MH_SAM_APDU [15:44:04]CAPDU: 80 09 00 00 [15:44:04]Write to MH i2c: E2 08 00 33 10 80 09 00 00 00 00 00 00 B5 [15:44:04]Write i2c OK [15:44:04]MH_I2C_Read... [15:44:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:44:04]Read from MH i2c: E2 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: E2 03 00 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: E2 03 00 33 10 00 90 00 B7 [15:44:04]RAPDU: 90 00 [15:44:04]wFMCommunicate OK [15:44:04]SAM_PROTO_ClearQueue done [15:44:04]KKMCreateOFDPacket [15:44:04]OFDProtocolAddRootSTLVToBuf [15:44:04]FM_MakeSignedData [15:44:04]FM_MakeSignedData [15:44:04]SAM_PROTO_SignData [15:44:04]wFMCommunicate request_size=4 [15:44:04]MH_SAM_APDU [15:44:04]CAPDU: 80 0D 01 02 [15:44:04]Write to MH i2c: E2 08 00 34 10 80 0D 01 02 00 00 00 00 BD [15:44:04]Write i2c OK [15:44:04]MH_I2C_Read... [15:44:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:44:04]Read from MH i2c: E2 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: E2 03 00 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: E2 03 00 34 10 00 90 00 B8 [15:44:04]RAPDU: 90 00 [15:44:04]wFMCommunicate OK [15:44:04]wFMCommunicate request_size=255 [15:44:04]MH_SAM_APDU [15:44:04]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 43 25 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1D 0F 01 [15:44:04]Write to MH i2c: E2 02 01 35 10 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 43 25 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1D 0F 01 00 00 DB [15:44:04]Write i2c OK [15:44:04]MH_I2C_Read... [15:44:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:04]Read from MH i2c: E2 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: E2 03 00 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: E2 03 00 35 10 00 90 00 B9 [15:44:04]RAPDU: 90 00 [15:44:04]wFMCommunicate OK [15:44:04]wFMCommunicate request_size=16 [15:44:04]MH_SAM_APDU [15:44:04]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 EC 27 95 07 5D 45 [15:44:04]Write to MH i2c: E2 13 00 36 10 80 0D 02 02 0B 00 00 35 04 06 00 EC 27 95 07 5D 45 00 00 66 [15:44:04]Write i2c OK [15:44:04]MH_I2C_Read... [15:44:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:04]Read from MH i2c: E2 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: E2 03 00 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: E2 03 00 36 10 00 90 00 BA [15:44:04]RAPDU: 90 00 [15:44:04]wFMCommunicate OK [15:44:04]wFMCommunicate request_size=4 [15:44:04]MH_SAM_APDU [15:44:04]CAPDU: 80 0D 03 02 [15:44:04]Write to MH i2c: E2 08 00 37 10 80 0D 03 02 00 00 00 00 C2 [15:44:04]Write i2c OK [15:44:04]MH_I2C_Read... [15:44:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:44:04]Read from MH i2c: E2 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: E2 0B 00 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: E2 0B 00 37 10 00 6B 9A A8 1D A1 B4 A2 0E 90 00 92 [15:44:04]RAPDU: 6B 9A A8 1D A1 B4 A2 0E 90 00 [15:44:04]wFMCommunicate OK [15:44:04]SAM_PROTO_SignData done [15:44:04]FM_MakeSignedData done [15:44:04]CreateOFDProtocolMessage [15:44:04]wFMCommunicate request_size=4 [15:44:04]MH_SAM_APDU [15:44:04]CAPDU: 80 11 00 00 [15:44:04]Write to MH i2c: E2 08 00 38 10 80 11 00 00 00 00 00 00 C2 [15:44:04]Write i2c OK [15:44:04]MH_I2C_Read... [15:44:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:04]Read from MH i2c: E2 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: E2 17 00 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: E2 17 00 38 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 14 [15:44:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:44:04]wFMCommunicate OK [15:44:04]CreateOFDProtocolMessage done [15:44:04]OFDSenderStorePacket 69405 [15:44:04]StoreOFDPacket docnum=69405 [15:44:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 B7 55 0D 01 CC 8D 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 43 25 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1D 0F 01 00 35 04 06 00 EC 27 95 07 5D 45 6B 9A A8 1D A1 B4 A2 0E [15:44:04]CheckFolder [15:44:04]dirname=/storage/ofd_packets [15:44:04]CheckFolder done [15:44:04]ProducePacketName [15:44:04]name=ofd_packets/00069405 [15:44:04]NVStorageSaveData ofd_packets/00069405 [15:44:04]File name is /storage/ofd_packets/00069405 [15:44:04]Write 307 bytes [15:44:04]NVStorageSaveData done [15:44:04]OFDSenderStorePacket done [15:44:04]KKMCreateOFDPacket done [15:44:04]NVStorageSaveData kkm_last_timestamp [15:44:04]File name is /storage/kkm_last_timestamp [15:44:04]Write 4 bytes [15:44:04]NVStorageSaveData done [15:44:04]ExternCall_PrintAddStr [15:44:04]wPrintStart [15:44:04]Write to MH i2c: 01 00 00 39 10 49 [15:44:04]Write i2c OK [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: 01 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: 01 07 00 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: 01 07 00 39 10 00 00 00 00 00 FF 0F 5E [15:44:04]RasterBufferAndPrint [15:44:04]line Счет N : (1)2885132 [15:44:04]line ИНН: 02508201610067 [15:44:04]line Контрольно-Кассовый Чек [15:44:04]line ПРОДАЖА [15:44:04]line ТРК (МРК, ГНК) : 31 [15:44:04]line Товар: 2710194240 [15:44:04]line D-ENERGY Дт-К-2 [15:44:04]line 12.960 * 77.20 [15:44:04]line = 1000.51 [15:44:04]line НДС 12% НСП 1% [15:44:04]line > о реализуемом товаре [15:44:04]line ОКРУГЛЕНИЕ: -0.51 [15:44:04]line ИТОГО: 1000.00 [15:44:04]line Внесено: 1000.00 [15:44:04]line СДАЧА: 0.00 [15:44:04]line НСП 1% : 8.85 [15:44:04]line НДС 12% : 106.25 [15:44:04]line Наличными: 1000.00 [15:44:04]line Безнал.: 0.00 [15:44:04]line Место: АЗС № 85 "Партнер Нефть" [15:44:04]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:44:04]line СНО: Общий режим [15:44:04]line Чек 250 20.10.2024 15:44 [15:44:04]line Смена: 193 ФФД: 1.0 [15:44:04]line ЗНМ: 0300000167 [15:44:04]line РНМ: 0000000000156251 [15:44:04]line Версия ККМ: v1.0 [15:44:04]line ФМ: 0000000000963346 [15:44:04]line ФД: 69405 [15:44:04]line ФПД: 259654748167493 [15:44:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T154403&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69405&fm=259654748167493&tin=02508201610067®Number=0000000000156251&sum=100000 [15:44:05]OFD Sender: Processing packet 69405 [packets to send 18, broken 17] [15:44:05]ProducePacketName [15:44:05]name=ofd_packets/00069405 [15:44:05]OFD Sender: To server: pG, [15:44:05]CommunicateWithHost lk.salyk.kg:30040 [15:44:05]ConnectInit lk.salyk.kg [15:44:05]written 0, free lines is 4095 [15:44:05]Connected sock=10 [15:44:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 B7 55 0D 01 CC 8D 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 43 25 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1D 0F 01 00 35 04 06 00 EC 27 95 07 5D 45 6B 9A A8 1D A1 B4 A2 0E [15:44:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 0A DF 47 00 C2 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1D 0F 01 00 F4 03 04 00 EA CE 14 67 B6 04 01 00 00 39 6F 07 73 3A 52 5F E3 [15:44:05]CommunicateWithHost err = 0 [15:44:05]CheckOFDResponse [15:44:05]1017 (14) - 77093643461234 [15:44:05]1041 (16) - 0000000000963346 [15:44:05]1040 (4) - 69405 [15:44:05]1012 (4) - 20.10.2024 09:35 [15:44:05]1206 (1) - 0 [15:44:05]OFD Sender: Remove packet 69405 [15:44:05]ProducePacketName [15:44:05]name=ofd_packets/00069405 [15:44:05]NVStorageDeleteData [15:44:05]Write to MH i2c: 01 00 00 64 10 74 [15:44:05]Write i2c OK [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: 01 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: 01 07 00 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: 01 07 00 64 10 00 00 00 00 00 EF 0C 76 [15:44:05]RasterBufferAndPrint [15:44:05]line [15:44:05]line [15:44:05]line [15:44:05]line [15:44:05]line [15:44:05]written 0, free lines is 3317 [15:44:05]MH_Cut [15:44:05]Write to MH i2c: D1 01 00 6B 10 01 4D [15:44:05]Write i2c OK [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: D1 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: D1 01 00 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: D1 01 00 6B 10 00 4C [15:44:05]Write to MH i2c: 01 00 00 6C 10 7C [15:44:05]Write i2c OK [15:44:05]MH_I2C_Read... [15:44:05]OFD Sender: No OFD packet to send [15:44:06]*** Cut start [15:44:06]*** Partial cut [15:44:06]*** CUTSNS_PIN = 1 [15:44:06]*** CUTSNS_PIN = 0 [15:44:06]*** Brake cut motor [15:44:06]Read from MH i2c: 01 [15:44:06]MH_I2C_Read... [15:44:06]*** Stop cut motor [15:44:06]*** Cut end [15:44:06]Read from MH i2c: 01 07 00 [15:44:06]MH_I2C_Read... [15:44:06]Read from MH i2c: 01 07 00 6C 10 00 00 00 00 00 FF 0F 91 [15:44:06]process_action close_receipt done [15:44:06]requested_data is exist [15:44:06]produce_requested_data [15:44:06]requested_item fm.sn is exist - process it [15:44:06]wFMCommunicate request_size=4 [15:44:06]MH_SAM_APDU [15:44:06]CAPDU: 80 11 00 00 [15:44:06]Write to MH i2c: E2 08 00 6D 10 80 11 00 00 00 00 00 00 F7 [15:44:06]Write i2c OK [15:44:06]MH_I2C_Read... [15:44:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:06]Read from MH i2c: E2 [15:44:06]MH_I2C_Read... [15:44:06]Read from MH i2c: E2 17 00 [15:44:06]MH_I2C_Read... [15:44:06]Read from MH i2c: E2 17 00 6D 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 49 [15:44:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:44:06]wFMCommunicate OK [15:44:06]requested_item fd.num is exist - process it [15:44:06]SAM_PROTO_GetFieldsCounters [15:44:06]wFMCommunicate request_size=4 [15:44:06]MH_SAM_APDU [15:44:06]CAPDU: 80 13 00 00 [15:44:06]Write to MH i2c: E2 08 00 6E 10 80 13 00 00 00 00 00 00 FA [15:44:06]Write i2c OK [15:44:06]MH_I2C_Read... [15:44:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:44:07]Read from MH i2c: E2 [15:44:07]MH_I2C_Read... [15:44:07]Read from MH i2c: E2 62 00 [15:44:07]MH_I2C_Read... [15:44:07]Read from MH i2c: E2 62 00 6E 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1D 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [15:44:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1D 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:44:07]wFMCommunicate OK [15:44:07]SAM_PROTO_GetFieldsCounters done [15:44:07]requested_item shift.num is exist - process it [15:44:07]requested_item shift.opened is exist - process it [15:44:07]req_shift_opened [15:44:07]FM_GetShiftState [15:44:07]SAM_PROTO_GetShiftState [15:44:07]wFMCommunicate request_size=4 [15:44:07]MH_SAM_APDU [15:44:07]CAPDU: 80 13 01 00 [15:44:07]Write to MH i2c: E2 08 00 6F 10 80 13 01 00 00 00 00 00 FC [15:44:07]Write i2c OK [15:44:07]MH_I2C_Read... [15:44:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:07]Read from MH i2c: E2 [15:44:07]MH_I2C_Read... [15:44:07]Read from MH i2c: E2 0E 00 [15:44:07]MH_I2C_Read... [15:44:07]Read from MH i2c: E2 0E 00 6F 10 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 02 [15:44:07]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [15:44:07]wFMCommunicate OK [15:44:07]SAM_PROTO_GetShiftState done [15:44:07]FM_GetShiftState done [15:44:07]req_shift_opened done [15:44:07]requested_item shift.open_date is exist - process it [15:44:07]req_shift_open_date [15:44:07]req_shift_open_date done [15:44:07]produce_requested_data done [15:44:07]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69405,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [15:44:07]process_action_free close_receipt [15:44:07]json_value_free [15:44:07]json_value_free done [15:44:07]process_json_proto returns [15:44:07]Send response to host [15:44:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69405,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [15:44:07]free response buf [15:44:07]execute_script done [15:44:07]execute_script returns [15:44:07]free content buf [15:44:07]Sock 9.Close socket [15:44:07]Sock 9.Thread stoped [15:44:10]OFD Sender: No OFD packet to send [15:44:15]OFD Sender: No OFD packet to send [15:44:19]accept exits with 8 [15:44:19]New connection [15:44:19]New thread 3066711396 created [15:44:19]Thread 3066568036 joined [15:44:19]Waiting for new connection... [15:44:19] Sock 8.Parse request [15:44:19]Sock 8.Check first char [15:44:19]Sock 8.First char is OK [15:44:19]request: POST /json_proto HTTP/1.0 [15:44:19]Method: POST [15:44:19]URL: /json_proto [15:44:19]Method is POST - this is cgi request [15:44:19]url: /json_proto [15:44:19]query_string will be loaded in cgi processing [15:44:19]execute_cgi json_proto POST (null) [15:44:19]execute_cgi path=json_proto method=POST [15:44:19]POST find Content-Length [15:44:19]Host: 172.17.50.3:8080 [15:44:19]Content-Length: 680 [15:44:19]Content-Type: application/json [15:44:19] [15:44:19]POST finish read [15:44:19]Found Content-Length = 680 [15:44:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 21.000, "sum" : 1600.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:19]execute_script... [15:44: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)2885133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 21.000, "sum" : 1600.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:19]POST & json_proto [15:44:19]process_json_proto [15:44:19]json parsed OK: [15:44:19]protocol is kg_v1.0 [15:44:19]action value=close_receipt [15:44:19]process_action close_receipt [15:44:19]cmd_close_receipt [15:44:19]MH_GetDate [15:44:19]Write to MH i2c: F0 00 00 70 10 6F [15:44:19]Write i2c OK [15:44:19]MH_I2C_Read... [15:44:19]Read from MH i2c: F0 [15:44:19]MH_I2C_Read... [15:44:19]Read from MH i2c: F0 09 00 [15:44:19]MH_I2C_Read... [15:44:19]Read from MH i2c: F0 09 00 70 10 00 54 25 15 67 6B 98 1E 66 F4 [15:44:19]GetLastDocTimeStamp 1729439043 [15:44:19]current date 1729439060 [15:44:19]FM_GetShiftState [15:44:19]SAM_PROTO_GetShiftState [15:44:19]wFMCommunicate request_size=4 [15:44:19]MH_SAM_APDU [15:44:19]CAPDU: 80 13 01 00 [15:44:19]Write to MH i2c: E2 08 00 71 10 80 13 01 00 00 00 00 00 FE [15:44:19]Write i2c OK [15:44:19]MH_I2C_Read... [15:44:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:19]Read from MH i2c: E2 [15:44:19]MH_I2C_Read... [15:44:19]Read from MH i2c: E2 0E 00 [15:44:19]MH_I2C_Read... [15:44:19]Read from MH i2c: E2 0E 00 71 10 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 04 [15:44:19]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [15:44:19]wFMCommunicate OK [15:44:19]SAM_PROTO_GetShiftState done [15:44:19]FM_GetShiftState done [15:44:19]opened in 1729383220 [15:44:19]opened+sec_in_day 1729469620 [15:44:19]quantity*price = 160020 [15:44:19]sum+1 = 160021 [15:44:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.93 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 251 20.10.2024 15:44 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69406 ФПД: 157680196560357 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T154420&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69406&fm=157680196560357&tin=02508201610067®Number=0000000000156251&sum=160000 [15:44:20]StoreToDocumentArchive [15:44:20]shift 193 fd 69406 [15:44:20]save to /storage/0193/doc_00069406 [15:44:20]save last doc name /storage/0193/doc_00069406 to /storage/kkm_last_doc_name [15:44:20]save OK [15:44:20]Clear old archive folders... [15:44:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:44:20]tlvbuf is 002506F0 [15:44:20]SAM_PROTO_ClearQueue [15:44:20]wFMCommunicate request_size=4 [15:44:20]MH_SAM_APDU [15:44:20]CAPDU: 80 09 00 00 [15:44:20]Write to MH i2c: E2 08 00 7E 10 80 09 00 00 00 00 00 00 00 [15:44:20]Write i2c OK [15:44:20]MH_I2C_Read... [15:44:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:44:20]Read from MH i2c: E2 [15:44:20]MH_I2C_Read... [15:44:20]Read from MH i2c: E2 03 00 [15:44:20]MH_I2C_Read... [15:44:20]Read from MH i2c: E2 03 00 7E 10 00 90 00 02 [15:44:20]RAPDU: 90 00 [15:44:20]wFMCommunicate OK [15:44:20]SAM_PROTO_ClearQueue done [15:44:20]KKMCreateOFDPacket [15:44:20]OFDProtocolAddRootSTLVToBuf [15:44:20]FM_MakeSignedData [15:44:20]FM_MakeSignedData [15:44:20]SAM_PROTO_SignData [15:44:20]wFMCommunicate request_size=4 [15:44:20]MH_SAM_APDU [15:44:20]CAPDU: 80 0D 01 02 [15:44:20]Write to MH i2c: E2 08 00 7F 10 80 0D 01 02 00 00 00 00 08 [15:44:20]Write i2c OK [15:44:20]MH_I2C_Read... [15:44:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:44:20]Read from MH i2c: E2 [15:44:20]MH_I2C_Read... [15:44:20]Read from MH i2c: E2 03 00 [15:44:20]MH_I2C_Read... [15:44:20]Read from MH i2c: E2 03 00 7F 10 00 90 00 03 [15:44:20]RAPDU: 90 00 [15:44:20]wFMCommunicate OK [15:44:20]wFMCommunicate request_size=255 [15:44:20]MH_SAM_APDU [15:44: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 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 54 25 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1E 0F 01 00 35 04 06 00 8F 68 C8 1A [15:44:20]Write to MH i2c: E2 02 01 80 10 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 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 54 25 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1E 0F 01 00 35 04 06 00 8F 68 C8 1A 00 00 EF [15:44:20]OFD Sender: No OFD packet to send [15:44:20]Write i2c OK [15:44:20]MH_I2C_Read... [15:44:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:21]Read from MH i2c: E2 [15:44:21]MH_I2C_Read... [15:44:21]Read from MH i2c: E2 03 00 [15:44:21]MH_I2C_Read... [15:44:21]Read from MH i2c: E2 03 00 80 10 00 90 00 04 [15:44:21]RAPDU: 90 00 [15:44:21]wFMCommunicate OK [15:44:21]wFMCommunicate request_size=7 [15:44:21]MH_SAM_APDU [15:44:21]CAPDU: 80 0D 02 02 02 A5 E5 [15:44:21]Write to MH i2c: E2 0A 00 81 10 80 0D 02 02 02 00 A5 E5 00 00 99 [15:44:21]Write i2c OK [15:44:21]MH_I2C_Read... [15:44:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:21]Read from MH i2c: E2 [15:44:21]MH_I2C_Read... [15:44:21]Read from MH i2c: E2 03 00 [15:44:21]MH_I2C_Read... [15:44:21]Read from MH i2c: E2 03 00 81 10 00 90 00 05 [15:44:21]RAPDU: 90 00 [15:44:21]wFMCommunicate OK [15:44:21]wFMCommunicate request_size=4 [15:44:21]MH_SAM_APDU [15:44:21]CAPDU: 80 0D 03 02 [15:44:21]Write to MH i2c: E2 08 00 82 10 80 0D 03 02 00 00 00 00 0D [15:44:21]Write i2c OK [15:44:21]MH_I2C_Read... [15:44:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:44:21]Read from MH i2c: E2 [15:44:21]MH_I2C_Read... [15:44:21]Read from MH i2c: E2 0B 00 [15:44:21]MH_I2C_Read... [15:44:21]Read from MH i2c: E2 0B 00 82 10 00 29 B0 37 DF 1D DD 32 E5 90 00 0E [15:44:21]RAPDU: 29 B0 37 DF 1D DD 32 E5 90 00 [15:44:21]wFMCommunicate OK [15:44:21]SAM_PROTO_SignData done [15:44:21]FM_MakeSignedData done [15:44:21]CreateOFDProtocolMessage [15:44:21]wFMCommunicate request_size=4 [15:44:21]MH_SAM_APDU [15:44:21]CAPDU: 80 11 00 00 [15:44:21]Write to MH i2c: E2 08 00 83 10 80 11 00 00 00 00 00 00 0D [15:44:21]Write i2c OK [15:44:21]MH_I2C_Read... [15:44:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:21]Read from MH i2c: E2 [15:44:21]MH_I2C_Read... [15:44:21]Read from MH i2c: E2 17 00 [15:44:21]MH_I2C_Read... [15:44:21]Read from MH i2c: E2 17 00 83 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5F [15:44:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:44:21]wFMCommunicate OK [15:44:21]CreateOFDProtocolMessage done [15:44:21]OFDSenderStorePacket 69406 [15:44:21]StoreOFDPacket docnum=69406 [15:44:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 1D B5 04 01 10 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 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 54 25 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1E 0F 01 00 35 04 06 00 8F 68 C8 1A A5 E5 29 B0 37 DF 1D DD 32 E5 [15:44:21]CheckFolder [15:44:21]dirname=/storage/ofd_packets [15:44:21]CheckFolder done [15:44:21]ProducePacketName [15:44:21]name=ofd_packets/00069406 [15:44:21]NVStorageSaveData ofd_packets/00069406 [15:44:21]File name is /storage/ofd_packets/00069406 [15:44:21]Write 298 bytes [15:44:21]NVStorageSaveData done [15:44:21]OFDSenderStorePacket done [15:44:21]KKMCreateOFDPacket done [15:44:21]NVStorageSaveData kkm_last_timestamp [15:44:21]File name is /storage/kkm_last_timestamp [15:44:21]Write 4 bytes [15:44:21]NVStorageSaveData done [15:44:21]ExternCall_PrintAddStr [15:44:21]wPrintStart [15:44:21]Write to MH i2c: 01 00 00 84 10 94 [15:44:21]Write i2c OK [15:44:21]MH_I2C_Read... [15:44:21]Read from MH i2c: 01 [15:44:21]MH_I2C_Read... [15:44:21]Read from MH i2c: 01 07 00 [15:44:21]MH_I2C_Read... [15:44:21]Read from MH i2c: 01 07 00 84 10 00 00 00 00 00 FF 0F A9 [15:44:21]RasterBufferAndPrint [15:44:21]line Счет N : (1)2885133 [15:44:21]line ИНН: 02508201610067 [15:44:21]line Контрольно-Кассовый Чек [15:44:21]line ПРОДАЖА [15:44:21]line ТРК (МРК, ГНК) : 51 [15:44:21]line Товар: 2710194210 [15:44:21]line ДТ-К-5 [15:44:21]line 21.000 * 76.20 [15:44:21]line = 1600.20 [15:44:21]line НДС 12% НСП 1% [15:44:21]line > о реализуемом товаре [15:44:21]line ОКРУГЛЕНИЕ: -0.20 [15:44:21]line ИТОГО: 1600.00 [15:44:21]line Внесено: 1600.00 [15:44:21]line СДАЧА: 0.00 [15:44:21]line НСП 1% : 14.16 [15:44:21]line НДС 12% : 169.93 [15:44:21]line Наличными: 1600.00 [15:44:21]line Безнал.: 0.00 [15:44:21]line Место: АЗС № 85 "Партнер Нефть" [15:44:21]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:44:21]line СНО: Общий режим [15:44:21]line Чек 251 20.10.2024 15:44 [15:44:21]line Смена: 193 ФФД: 1.0 [15:44:21]line ЗНМ: 0300000167 [15:44:21]line РНМ: 0000000000156251 [15:44:21]line Версия ККМ: v1.0 [15:44:21]line ФМ: 0000000000963346 [15:44:21]line ФД: 69406 [15:44:21]line ФПД: 157680196560357 [15:44:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T154420&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69406&fm=157680196560357&tin=02508201610067®Number=0000000000156251&sum=160000 [15:44:21]OFD Sender: Processing packet 69406 [packets to send 18, broken 17] [15:44:21]ProducePacketName [15:44:21]name=ofd_packets/00069406 [15:44:21]OFD Sender: To server: pG, [15:44:21]CommunicateWithHost lk.salyk.kg:30040 [15:44:21]ConnectInit lk.salyk.kg [15:44:21]written 0, free lines is 4095 [15:44:21]Connected sock=10 [15:44:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 1D B5 04 01 10 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 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 54 25 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1E 0F 01 00 35 04 06 00 8F 68 C8 1A A5 E5 29 B0 37 DF 1D DD 32 E5 [15:44:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 F1 84 47 00 49 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1E 0F 01 00 F4 03 04 00 FA CE 14 67 B6 04 01 00 00 54 CC 8F 66 A6 E6 1C 2A [15:44:21]CommunicateWithHost err = 0 [15:44:21]CheckOFDResponse [15:44:21]1017 (14) - 77093643461234 [15:44:21]1041 (16) - 0000000000963346 [15:44:21]1040 (4) - 69406 [15:44:21]1012 (4) - 20.10.2024 09:35 [15:44:21]1206 (1) - 0 [15:44:21]OFD Sender: Remove packet 69406 [15:44:21]ProducePacketName [15:44:21]name=ofd_packets/00069406 [15:44:21]NVStorageDeleteData [15:44:22]Write to MH i2c: 01 00 00 AF 10 BF [15:44:22]Write i2c OK [15:44:22]MH_I2C_Read... [15:44:22]Read from MH i2c: 01 [15:44:22]MH_I2C_Read... [15:44:22]Read from MH i2c: 01 07 00 [15:44:22]MH_I2C_Read... [15:44:22]Read from MH i2c: 01 07 00 AF 10 00 00 00 00 00 E1 0C B3 [15:44:22]RasterBufferAndPrint [15:44:22]line [15:44:22]line [15:44:22]line [15:44:22]line [15:44:22]line [15:44:22]written 0, free lines is 3302 [15:44:22]MH_Cut [15:44:22]Write to MH i2c: D1 01 00 B6 10 01 98 [15:44:22]Write i2c OK [15:44:22]MH_I2C_Read... [15:44:22]Read from MH i2c: D1 [15:44:22]MH_I2C_Read... [15:44:22]Read from MH i2c: D1 01 00 [15:44:22]MH_I2C_Read... [15:44:22]Read from MH i2c: D1 01 00 B6 10 00 97 [15:44:22]Write to MH i2c: 01 00 00 B7 10 C7 [15:44:22]Write i2c OK [15:44:22]MH_I2C_Read... [15:44:22]OFD Sender: No OFD packet to send [15:44:22]*** Cut start [15:44:22]*** Partial cut [15:44:22]*** CUTSNS_PIN = 1 [15:44:22]*** CUTSNS_PIN = 0 [15:44:23]*** Brake cut motor [15:44:23]Read from MH i2c: 01 [15:44:23]MH_I2C_Read... [15:44:23]*** Stop cut motor [15:44:23]*** Cut end [15:44:23]Read from MH i2c: 01 07 00 [15:44:23]MH_I2C_Read... [15:44:23]Read from MH i2c: 01 07 00 B7 10 00 00 00 00 00 FF 0F DC [15:44:23]process_action close_receipt done [15:44:23]requested_data is exist [15:44:23]produce_requested_data [15:44:23]requested_item fm.sn is exist - process it [15:44:23]wFMCommunicate request_size=4 [15:44:23]MH_SAM_APDU [15:44:23]CAPDU: 80 11 00 00 [15:44:23]Write to MH i2c: E2 08 00 B8 10 80 11 00 00 00 00 00 00 42 [15:44:23]Write i2c OK [15:44:23]MH_I2C_Read... [15:44:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:23]Read from MH i2c: E2 [15:44:23]MH_I2C_Read... [15:44:23]Read from MH i2c: E2 17 00 [15:44:23]MH_I2C_Read... [15:44:23]Read from MH i2c: E2 17 00 B8 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 94 [15:44:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:44:23]wFMCommunicate OK [15:44:23]requested_item fd.num is exist - process it [15:44:23]SAM_PROTO_GetFieldsCounters [15:44:23]wFMCommunicate request_size=4 [15:44:23]MH_SAM_APDU [15:44:23]CAPDU: 80 13 00 00 [15:44:23]Write to MH i2c: E2 08 00 B9 10 80 13 00 00 00 00 00 00 45 [15:44:23]Write i2c OK [15:44:23]MH_I2C_Read... [15:44:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:44:23]Read from MH i2c: E2 [15:44:23]MH_I2C_Read... [15:44:23]Read from MH i2c: E2 62 00 [15:44:23]MH_I2C_Read... [15:44:23]Read from MH i2c: E2 62 00 B9 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1E 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [15:44:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1E 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:44:23]wFMCommunicate OK [15:44:23]SAM_PROTO_GetFieldsCounters done [15:44:23]requested_item shift.num is exist - process it [15:44:23]requested_item shift.opened is exist - process it [15:44:23]req_shift_opened [15:44:23]FM_GetShiftState [15:44:23]SAM_PROTO_GetShiftState [15:44:23]wFMCommunicate request_size=4 [15:44:23]MH_SAM_APDU [15:44:23]CAPDU: 80 13 01 00 [15:44:23]Write to MH i2c: E2 08 00 BA 10 80 13 01 00 00 00 00 00 47 [15:44:23]Write i2c OK [15:44:23]MH_I2C_Read... [15:44:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:23]Read from MH i2c: E2 [15:44:23]MH_I2C_Read... [15:44:23]Read from MH i2c: E2 0E 00 [15:44:23]MH_I2C_Read... [15:44:23]Read from MH i2c: E2 0E 00 BA 10 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 4D [15:44:23]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [15:44:23]wFMCommunicate OK [15:44:23]SAM_PROTO_GetShiftState done [15:44:23]FM_GetShiftState done [15:44:23]req_shift_opened done [15:44:23]requested_item shift.open_date is exist - process it [15:44:23]req_shift_open_date [15:44:23]req_shift_open_date done [15:44:23]produce_requested_data done [15:44:23]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69406,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [15:44:23]process_action_free close_receipt [15:44:23]json_value_free [15:44:23]json_value_free done [15:44:23]process_json_proto returns [15:44:23]Send response to host [15:44:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69406,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [15:44:23]free response buf [15:44:23]execute_script done [15:44:23]execute_script returns [15:44:23]free content buf [15:44:23]Sock 8.Close socket [15:44:23]Sock 8.Thread stoped [15:44:27]OFD Sender: No OFD packet to send [15:44:32]OFD Sender: No OFD packet to send [15:44:37]OFD Sender: No OFD packet to send [15:44:42]OFD Sender: No OFD packet to send [15:44:47]OFD Sender: No OFD packet to send [15:44:52]OFD Sender: No OFD packet to send [15:44:57]OFD Sender: No OFD packet to send [15:45:02]OFD Sender: No OFD packet to send [15:45:07]OFD Sender: No OFD packet to send [15:45:12]OFD Sender: No OFD packet to send [15:45:17]OFD Sender: No OFD packet to send [15:45:22]OFD Sender: No OFD packet to send [15:45:27]OFD Sender: No OFD packet to send [15:45:32]OFD Sender: No OFD packet to send [15:45:37]OFD Sender: No OFD packet to send [15:45:42]OFD Sender: No OFD packet to send [15:45:47]OFD Sender: No OFD packet to send [15:45:52]OFD Sender: No OFD packet to send [15:45:57]OFD Sender: No OFD packet to send [15:46:02]OFD Sender: No OFD packet to send [15:46:07]OFD Sender: No OFD packet to send [15:46:12]OFD Sender: No OFD packet to send [15:46:17]OFD Sender: No OFD packet to send [15:46:22]OFD Sender: No OFD packet to send [15:46:27]OFD Sender: No OFD packet to send [15:46:32]OFD Sender: No OFD packet to send [15:46:37]OFD Sender: No OFD packet to send [15:46:42]OFD Sender: No OFD packet to send [15:46:47]OFD Sender: No OFD packet to send [15:46:52]OFD Sender: No OFD packet to send [15:46:57]OFD Sender: No OFD packet to send [15:47:02]OFD Sender: No OFD packet to send [15:47:07]OFD Sender: No OFD packet to send [15:47:12]OFD Sender: No OFD packet to send [15:47:17]OFD Sender: No OFD packet to send [15:47:22]OFD Sender: No OFD packet to send [15:47:27]OFD Sender: No OFD packet to send [15:47:32]OFD Sender: No OFD packet to send [15:47:37]OFD Sender: No OFD packet to send [15:47:42]OFD Sender: No OFD packet to send [15:47:47]OFD Sender: No OFD packet to send [15:47:52]OFD Sender: No OFD packet to send [15:47:57]OFD Sender: No OFD packet to send [15:48:02]OFD Sender: No OFD packet to send [15:48:07]OFD Sender: No OFD packet to send [15:48:12]OFD Sender: No OFD packet to send [15:48:17]OFD Sender: No OFD packet to send [15:48:22]OFD Sender: No OFD packet to send [15:48:27]OFD Sender: No OFD packet to send [15:48:32]OFD Sender: No OFD packet to send [15:48:37]OFD Sender: No OFD packet to send [15:48:42]OFD Sender: No OFD packet to send [15:48:47]OFD Sender: No OFD packet to send [15:48:52]OFD Sender: No OFD packet to send [15:48:57]OFD Sender: No OFD packet to send [15:49:02]OFD Sender: No OFD packet to send [15:49:07]OFD Sender: No OFD packet to send [15:49:12]OFD Sender: No OFD packet to send [15:49:17]OFD Sender: No OFD packet to send [15:49:22]OFD Sender: No OFD packet to send [15:49:27]OFD Sender: No OFD packet to send [15:49:32]OFD Sender: No OFD packet to send [15:49:37]OFD Sender: No OFD packet to send [15:49:42]OFD Sender: No OFD packet to send [15:49:47]OFD Sender: No OFD packet to send [15:49:52]OFD Sender: No OFD packet to send [15:49:57]OFD Sender: No OFD packet to send [15:50:02]OFD Sender: No OFD packet to send [15:50:07]OFD Sender: No OFD packet to send [15:50:12]OFD Sender: No OFD packet to send [15:50:17]OFD Sender: No OFD packet to send [15:50:18]accept exits with 9 [15:50:18]New connection [15:50:18]New thread 3066568036 created [15:50:18]Thread 3066711396 joined [15:50:18]Waiting for new connection... [15:50:18] Sock 9.Parse request [15:50:18]Sock 9.Check first char [15:50:18]Sock 9.First char is OK [15:50:18]request: POST /json_proto HTTP/1.0 [15:50:18]Method: POST [15:50:18]URL: /json_proto [15:50:18]Method is POST - this is cgi request [15:50:18]url: /json_proto [15:50:18]query_string will be loaded in cgi processing [15:50:18]execute_cgi json_proto POST (null) [15:50:18]execute_cgi path=json_proto method=POST [15:50:18]POST find Content-Length [15:50:18]Host: 172.17.50.3:8080 [15:50:18]Content-Length: 678 [15:50:18]Content-Type: application/json [15:50:18] [15:50:18]POST finish read [15:50:18]Found Content-Length = 678 [15:50:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [15:50:18]execute_script... [15:50:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [15:50:18]POST & json_proto [15:50:18]process_json_proto [15:50:18]json parsed OK: [15:50:18]protocol is kg_v1.0 [15:50:18]action value=close_receipt [15:50:18]process_action close_receipt [15:50:18]cmd_close_receipt [15:50:18]MH_GetDate [15:50:18]Write to MH i2c: F0 00 00 BB 10 BA [15:50:18]Write i2c OK [15:50:18]MH_I2C_Read... [15:50:18]Read from MH i2c: F0 [15:50:18]MH_I2C_Read... [15:50:18]Read from MH i2c: F0 09 00 [15:50:18]MH_I2C_Read... [15:50:18]Read from MH i2c: F0 09 00 BB 10 00 BA 26 15 67 6B 98 1E 66 A6 [15:50:18]GetLastDocTimeStamp 1729439060 [15:50:18]current date 1729439418 [15:50:18]FM_GetShiftState [15:50:18]SAM_PROTO_GetShiftState [15:50:18]wFMCommunicate request_size=4 [15:50:18]MH_SAM_APDU [15:50:18]CAPDU: 80 13 01 00 [15:50:18]Write to MH i2c: E2 08 00 BC 10 80 13 01 00 00 00 00 00 49 [15:50:18]Write i2c OK [15:50:18]MH_I2C_Read... [15:50:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:18]Read from MH i2c: E2 [15:50:18]MH_I2C_Read... [15:50:18]Read from MH i2c: E2 0E 00 [15:50:18]MH_I2C_Read... [15:50:18]Read from MH i2c: E2 0E 00 BC 10 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 4F [15:50:18]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [15:50:18]wFMCommunicate OK [15:50:18]SAM_PROTO_GetShiftState done [15:50:18]FM_GetShiftState done [15:50:18]opened in 1729383220 [15:50:18]opened+sec_in_day 1729469620 [15:50:18]quantity*price = 50010 [15:50:18]sum+1 = 50012 [15:50:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 252 20.10.2024 15:50 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69407 ФПД: 57713223996597 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T155019&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69407&fm=57713223996597&tin=02508201610067®Number=0000000000156251&sum=50000 [15:50:19]StoreToDocumentArchive [15:50:19]shift 193 fd 69407 [15:50:19]save to /storage/0193/doc_00069407 [15:50:19]save last doc name /storage/0193/doc_00069407 to /storage/kkm_last_doc_name [15:50:19]save OK [15:50:19]Clear old archive folders... [15:50:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:50:19]tlvbuf is 00246210 [15:50:19]SAM_PROTO_ClearQueue [15:50:19]wFMCommunicate request_size=4 [15:50:19]MH_SAM_APDU [15:50:19]CAPDU: 80 09 00 00 [15:50:19]Write to MH i2c: E2 08 00 C9 10 80 09 00 00 00 00 00 00 4B [15:50:19]Write i2c OK [15:50:19]MH_I2C_Read... [15:50:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:50:19]Read from MH i2c: E2 [15:50:19]MH_I2C_Read... [15:50:19]Read from MH i2c: E2 03 00 [15:50:19]MH_I2C_Read... [15:50:19]Read from MH i2c: E2 03 00 C9 10 00 90 00 4D [15:50:19]RAPDU: 90 00 [15:50:19]wFMCommunicate OK [15:50:19]SAM_PROTO_ClearQueue done [15:50:19]KKMCreateOFDPacket [15:50:19]OFDProtocolAddRootSTLVToBuf [15:50:19]FM_MakeSignedData [15:50:19]FM_MakeSignedData [15:50:19]SAM_PROTO_SignData [15:50:19]wFMCommunicate request_size=4 [15:50:19]MH_SAM_APDU [15:50:19]CAPDU: 80 0D 01 02 [15:50:19]Write to MH i2c: E2 08 00 CA 10 80 0D 01 02 00 00 00 00 53 [15:50:19]Write i2c OK [15:50:19]MH_I2C_Read... [15:50:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:50:19]Read from MH i2c: E2 [15:50:19]MH_I2C_Read... [15:50:19]Read from MH i2c: E2 03 00 [15:50:19]MH_I2C_Read... [15:50:19]Read from MH i2c: E2 03 00 CA 10 00 90 00 4E [15:50:19]RAPDU: 90 00 [15:50:19]wFMCommunicate OK [15:50:19]wFMCommunicate request_size=255 [15:50:19]MH_SAM_APDU [15:50:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 FC 00 00 00 F4 03 04 00 BB 26 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1F 0F 01 00 35 04 06 00 34 [15:50:19]Write to MH i2c: E2 02 01 CB 10 80 0D 02 02 FA 00 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 FC 00 00 00 F4 03 04 00 BB 26 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1F 0F 01 00 35 04 06 00 34 00 00 31 [15:50:19]Write i2c OK [15:50:19]MH_I2C_Read... [15:50:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:19]Read from MH i2c: E2 [15:50:19]MH_I2C_Read... [15:50:19]Read from MH i2c: E2 03 00 [15:50:19]MH_I2C_Read... [15:50:19]Read from MH i2c: E2 03 00 CB 10 00 90 00 4F [15:50:19]RAPDU: 90 00 [15:50:19]wFMCommunicate OK [15:50:19]wFMCommunicate request_size=10 [15:50:19]MH_SAM_APDU [15:50:19]CAPDU: 80 0D 02 02 05 7D 68 37 14 B5 [15:50:19]Write to MH i2c: E2 0D 00 CC 10 80 0D 02 02 05 00 7D 68 37 14 B5 00 00 45 [15:50:19]Write i2c OK [15:50:19]MH_I2C_Read... [15:50:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:19]Read from MH i2c: E2 [15:50:19]MH_I2C_Read... [15:50:19]Read from MH i2c: E2 03 00 [15:50:19]MH_I2C_Read... [15:50:19]Read from MH i2c: E2 03 00 CC 10 00 90 00 50 [15:50:19]RAPDU: 90 00 [15:50:19]wFMCommunicate OK [15:50:19]wFMCommunicate request_size=4 [15:50:19]MH_SAM_APDU [15:50:19]CAPDU: 80 0D 03 02 [15:50:19]Write to MH i2c: E2 08 00 CD 10 80 0D 03 02 00 00 00 00 58 [15:50:19]Write i2c OK [15:50:19]MH_I2C_Read... [15:50:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:50:19]Read from MH i2c: E2 [15:50:19]MH_I2C_Read... [15:50:19]Read from MH i2c: E2 0B 00 [15:50:19]MH_I2C_Read... [15:50:19]Read from MH i2c: E2 0B 00 CD 10 00 78 43 20 0E 31 E7 62 84 90 00 40 [15:50:19]RAPDU: 78 43 20 0E 31 E7 62 84 90 00 [15:50:19]wFMCommunicate OK [15:50:19]SAM_PROTO_SignData done [15:50:19]FM_MakeSignedData done [15:50:19]CreateOFDProtocolMessage [15:50:19]wFMCommunicate request_size=4 [15:50:19]MH_SAM_APDU [15:50:19]CAPDU: 80 11 00 00 [15:50:19]Write to MH i2c: E2 08 00 CE 10 80 11 00 00 00 00 00 00 58 [15:50:19]Write i2c OK [15:50:19]MH_I2C_Read... [15:50:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:19]Read from MH i2c: E2 [15:50:19]MH_I2C_Read... [15:50:19]Read from MH i2c: E2 17 00 [15:50:19]MH_I2C_Read... [15:50:19]Read from MH i2c: E2 17 00 CE 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AA [15:50:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:50:19]wFMCommunicate OK [15:50:19]CreateOFDProtocolMessage done [15:50:19]OFDSenderStorePacket 69407 [15:50:19]StoreOFDPacket docnum=69407 [15:50:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 78 EC 07 01 DA 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 FC 00 00 00 F4 03 04 00 BB 26 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1F 0F 01 00 35 04 06 00 34 7D 68 37 14 B5 78 43 20 0E 31 E7 62 84 [15:50:19]CheckFolder [15:50:19]dirname=/storage/ofd_packets [15:50:19]CheckFolder done [15:50:19]ProducePacketName [15:50:19]name=ofd_packets/00069407 [15:50:19]NVStorageSaveData ofd_packets/00069407 [15:50:19]File name is /storage/ofd_packets/00069407 [15:50:19]Write 301 bytes [15:50:19]NVStorageSaveData done [15:50:19]OFDSenderStorePacket done [15:50:19]KKMCreateOFDPacket done [15:50:19]NVStorageSaveData kkm_last_timestamp [15:50:19]File name is /storage/kkm_last_timestamp [15:50:19]Write 4 bytes [15:50:19]NVStorageSaveData done [15:50:19]ExternCall_PrintAddStr [15:50:19]wPrintStart [15:50:19]Write to MH i2c: 01 00 00 CF 10 DF [15:50:19]Write i2c OK [15:50:19]MH_I2C_Read... [15:50:19]Read from MH i2c: 01 [15:50:19]MH_I2C_Read... [15:50:19]Read from MH i2c: 01 07 00 [15:50:19]MH_I2C_Read... [15:50:19]Read from MH i2c: 01 07 00 CF 10 00 00 00 00 00 FF 0F F4 [15:50:19]RasterBufferAndPrint [15:50:19]line Счет N : (1)2885134 [15:50:19]line ИНН: 02508201610067 [15:50:19]line Контрольно-Кассовый Чек [15:50:19]line ПРОДАЖА [15:50:19]line ТРК (МРК, ГНК) : 13 [15:50:19]line Товар: 2710124500 [15:50:19]line Аи-95-К-5 [15:50:19]line 6.740 * 74.20 [15:50:19]line = 500.11 [15:50:19]line НДС 12% НСП 1% [15:50:19]line > о реализуемом товаре [15:50:19]line ОКРУГЛЕНИЕ: -0.11 [15:50:19]line ИТОГО: 500.00 [15:50:19]line Внесено: 500.00 [15:50:19]line СДАЧА: 0.00 [15:50:19]line НСП 1% : 4.43 [15:50:19]line НДС 12% : 53.11 [15:50:19]line Наличными: 500.00 [15:50:19]line Безнал.: 0.00 [15:50:19]line Место: АЗС № 85 "Партнер Нефть" [15:50:19]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:50:19]line СНО: Общий режим [15:50:19]line Чек 252 20.10.2024 15:50 [15:50:19]line Смена: 193 ФФД: 1.0 [15:50:19]line ЗНМ: 0300000167 [15:50:19]line РНМ: 0000000000156251 [15:50:19]line Версия ККМ: v1.0 [15:50:19]line ФМ: 0000000000963346 [15:50:19]line ФД: 69407 [15:50:19]line ФПД: 57713223996597 [15:50:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T155019&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69407&fm=57713223996597&tin=02508201610067®Number=0000000000156251&sum=50000 [15:50:20]OFD Sender: Processing packet 69407 [packets to send 18, broken 17] [15:50:20]ProducePacketName [15:50:20]name=ofd_packets/00069407 [15:50:20]OFD Sender: To server: pG, [15:50:20]CommunicateWithHost lk.salyk.kg:30040 [15:50:20]ConnectInit lk.salyk.kg [15:50:20]written 0, free lines is 4095 [15:50:20]Connected sock=10 [15:50:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 78 EC 07 01 DA 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 FC 00 00 00 F4 03 04 00 BB 26 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1F 0F 01 00 35 04 06 00 34 7D 68 37 14 B5 78 43 20 0E 31 E7 62 84 [15:50:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 2F 48 47 00 7E A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 1F 0F 01 00 F4 03 04 00 61 D0 14 67 B6 04 01 00 00 5E EE 06 C4 19 5C EB D6 [15:50:20]CommunicateWithHost err = 0 [15:50:20]CheckOFDResponse [15:50:20]1017 (14) - 77093643461234 [15:50:20]1041 (16) - 0000000000963346 [15:50:20]1040 (4) - 69407 [15:50:20]1012 (4) - 20.10.2024 09:41 [15:50:20]1206 (1) - 0 [15:50:20]OFD Sender: Remove packet 69407 [15:50:20]ProducePacketName [15:50:20]name=ofd_packets/00069407 [15:50:20]NVStorageDeleteData [15:50:20]Write to MH i2c: 01 00 00 FA 10 0A [15:50:20]Write i2c OK [15:50:20]MH_I2C_Read... [15:50:20]Read from MH i2c: 01 [15:50:20]MH_I2C_Read... [15:50:20]Read from MH i2c: 01 07 00 [15:50:20]MH_I2C_Read... [15:50:20]Read from MH i2c: 01 07 00 FA 10 00 00 00 00 00 D9 0C F6 [15:50:20]RasterBufferAndPrint [15:50:20]line [15:50:20]line [15:50:20]line [15:50:20]line [15:50:20]line [15:50:20]written 0, free lines is 3296 [15:50:20]MH_Cut [15:50:20]Write to MH i2c: D1 01 00 01 11 01 E4 [15:50:20]Write i2c OK [15:50:20]MH_I2C_Read... [15:50:20]Read from MH i2c: D1 [15:50:20]MH_I2C_Read... [15:50:20]Read from MH i2c: D1 01 00 [15:50:20]MH_I2C_Read... [15:50:20]Read from MH i2c: D1 01 00 01 11 00 E3 [15:50:20]Write to MH i2c: 01 00 00 02 11 13 [15:50:20]Write i2c OK [15:50:20]MH_I2C_Read... [15:50:21]OFD Sender: No OFD packet to send [15:50:21]*** Cut start [15:50:21]*** Partial cut [15:50:21]*** CUTSNS_PIN = 1 [15:50:21]*** CUTSNS_PIN = 0 [15:50:21]*** Brake cut motor [15:50:22]Read from MH i2c: 01 [15:50:22]MH_I2C_Read... [15:50:22]*** Stop cut motor [15:50:22]*** Cut end [15:50:22]Read from MH i2c: 01 07 00 [15:50:22]MH_I2C_Read... [15:50:22]Read from MH i2c: 01 07 00 02 11 00 00 00 00 00 FF 0F 28 [15:50:22]process_action close_receipt done [15:50:22]requested_data is exist [15:50:22]produce_requested_data [15:50:22]requested_item fm.sn is exist - process it [15:50:22]wFMCommunicate request_size=4 [15:50:22]MH_SAM_APDU [15:50:22]CAPDU: 80 11 00 00 [15:50:22]Write to MH i2c: E2 08 00 03 11 80 11 00 00 00 00 00 00 8E [15:50:22]Write i2c OK [15:50:22]MH_I2C_Read... [15:50:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:22]Read from MH i2c: E2 [15:50:22]MH_I2C_Read... [15:50:22]Read from MH i2c: E2 17 00 [15:50:22]MH_I2C_Read... [15:50:22]Read from MH i2c: E2 17 00 03 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E0 [15:50:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:50:22]wFMCommunicate OK [15:50:22]requested_item fd.num is exist - process it [15:50:22]SAM_PROTO_GetFieldsCounters [15:50:22]wFMCommunicate request_size=4 [15:50:22]MH_SAM_APDU [15:50:22]CAPDU: 80 13 00 00 [15:50:22]Write to MH i2c: E2 08 00 04 11 80 13 00 00 00 00 00 00 91 [15:50:22]Write i2c OK [15:50:22]MH_I2C_Read... [15:50:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:50:22]Read from MH i2c: E2 [15:50:22]MH_I2C_Read... [15:50:22]Read from MH i2c: E2 62 00 [15:50:22]MH_I2C_Read... [15:50:22]Read from MH i2c: E2 62 00 04 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1F 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [15:50:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 1F 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:50:22]wFMCommunicate OK [15:50:22]SAM_PROTO_GetFieldsCounters done [15:50:22]requested_item shift.num is exist - process it [15:50:22]requested_item shift.opened is exist - process it [15:50:22]req_shift_opened [15:50:22]FM_GetShiftState [15:50:22]SAM_PROTO_GetShiftState [15:50:22]wFMCommunicate request_size=4 [15:50:22]MH_SAM_APDU [15:50:22]CAPDU: 80 13 01 00 [15:50:22]Write to MH i2c: E2 08 00 05 11 80 13 01 00 00 00 00 00 93 [15:50:22]Write i2c OK [15:50:22]MH_I2C_Read... [15:50:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:22]Read from MH i2c: E2 [15:50:22]MH_I2C_Read... [15:50:22]Read from MH i2c: E2 0E 00 [15:50:22]MH_I2C_Read... [15:50:22]Read from MH i2c: E2 0E 00 05 11 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 99 [15:50:22]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [15:50:22]wFMCommunicate OK [15:50:22]SAM_PROTO_GetShiftState done [15:50:22]FM_GetShiftState done [15:50:22]req_shift_opened done [15:50:22]requested_item shift.open_date is exist - process it [15:50:22]req_shift_open_date [15:50:22]req_shift_open_date done [15:50:22]produce_requested_data done [15:50:22]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69407,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [15:50:22]process_action_free close_receipt [15:50:22]json_value_free [15:50:22]json_value_free done [15:50:22]process_json_proto returns [15:50:22]Send response to host [15:50:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69407,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [15:50:22]free response buf [15:50:22]execute_script done [15:50:22]execute_script returns [15:50:22]free content buf [15:50:22]Sock 9.Close socket [15:50:22]Sock 9.Thread stoped [15:50:26]OFD Sender: No OFD packet to send [15:50:31]OFD Sender: No OFD packet to send [15:50:36]OFD Sender: No OFD packet to send [15:50:41]OFD Sender: No OFD packet to send [15:50:44]accept exits with 8 [15:50:44]New connection [15:50:44]New thread 3066711396 created [15:50:44]Thread 3066568036 joined [15:50:44]Waiting for new connection... [15:50:44] Sock 8.Parse request [15:50:44]Sock 8.Check first char [15:50:44]Sock 8.First char is OK [15:50:44]request: POST /json_proto HTTP/1.0 [15:50:44]Method: POST [15:50:44]URL: /json_proto [15:50:44]Method is POST - this is cgi request [15:50:44]url: /json_proto [15:50:44]query_string will be loaded in cgi processing [15:50:44]execute_cgi json_proto POST (null) [15:50:44]execute_cgi path=json_proto method=POST [15:50:44]POST find Content-Length [15:50:44]Host: 172.17.50.3:8080 [15:50:44]Content-Length: 767 [15:50:44]Content-Type: application/json [15:50:44] [15:50:44]POST finish read [15:50:44]Found Content-Length = 767 [15:50:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:44]execute_script... [15:50:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:44]POST & json_proto [15:50:44]process_json_proto [15:50:44]json parsed OK: [15:50:44]protocol is kg_v1.0 [15:50:44]action value=close_receipt [15:50:44]process_action close_receipt [15:50:44]cmd_close_receipt [15:50:44]MH_GetDate [15:50:44]Write to MH i2c: F0 00 00 06 11 06 [15:50:44]Write i2c OK [15:50:44]MH_I2C_Read... [15:50:44]Read from MH i2c: F0 [15:50:44]MH_I2C_Read... [15:50:44]Read from MH i2c: F0 09 00 [15:50:44]MH_I2C_Read... [15:50:44]Read from MH i2c: F0 09 00 06 11 00 D5 26 15 67 6B 98 1E 66 0D [15:50:44]GetLastDocTimeStamp 1729439419 [15:50:44]current date 1729439445 [15:50:44]FM_GetShiftState [15:50:44]SAM_PROTO_GetShiftState [15:50:44]wFMCommunicate request_size=4 [15:50:44]MH_SAM_APDU [15:50:44]CAPDU: 80 13 01 00 [15:50:44]Write to MH i2c: E2 08 00 07 11 80 13 01 00 00 00 00 00 95 [15:50:44]Write i2c OK [15:50:44]MH_I2C_Read... [15:50:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:44]Read from MH i2c: E2 [15:50:44]MH_I2C_Read... [15:50:44]Read from MH i2c: E2 0E 00 [15:50:44]MH_I2C_Read... [15:50:44]Read from MH i2c: E2 0E 00 07 11 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 9B [15:50:44]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [15:50:44]wFMCommunicate OK [15:50:44]SAM_PROTO_GetShiftState done [15:50:44]FM_GetShiftState done [15:50:44]opened in 1729383220 [15:50:44]opened+sec_in_day 1729469620 [15:50:44]quantity*price = 20003 [15:50:44]sum+1 = 20004 [15:50:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 253 20.10.2024 15:50 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69408 ФПД: 6396190426398 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T155045&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69408&fm=6396190426398&tin=02508201610067®Number=0000000000156251&sum=20003 [15:50:45]StoreToDocumentArchive [15:50:45]shift 193 fd 69408 [15:50:45]save to /storage/0193/doc_00069408 [15:50:45]save last doc name /storage/0193/doc_00069408 to /storage/kkm_last_doc_name [15:50:45]save OK [15:50:45]Clear old archive folders... [15:50:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:50:45]tlvbuf is 00226480 [15:50:45]SAM_PROTO_ClearQueue [15:50:45]wFMCommunicate request_size=4 [15:50:45]MH_SAM_APDU [15:50:45]CAPDU: 80 09 00 00 [15:50:45]Write to MH i2c: E2 08 00 14 11 80 09 00 00 00 00 00 00 97 [15:50:45]Write i2c OK [15:50:45]MH_I2C_Read... [15:50:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:50:45]Read from MH i2c: E2 [15:50:45]MH_I2C_Read... [15:50:45]Read from MH i2c: E2 03 00 [15:50:45]MH_I2C_Read... [15:50:45]Read from MH i2c: E2 03 00 14 11 00 90 00 99 [15:50:45]RAPDU: 90 00 [15:50:45]wFMCommunicate OK [15:50:45]SAM_PROTO_ClearQueue done [15:50:45]KKMCreateOFDPacket [15:50:45]OFDProtocolAddRootSTLVToBuf [15:50:45]FM_MakeSignedData [15:50:45]FM_MakeSignedData [15:50:45]SAM_PROTO_SignData [15:50:45]wFMCommunicate request_size=4 [15:50:45]MH_SAM_APDU [15:50:45]CAPDU: 80 0D 01 02 [15:50:45]Write to MH i2c: E2 08 00 15 11 80 0D 01 02 00 00 00 00 9F [15:50:45]Write i2c OK [15:50:45]MH_I2C_Read... [15:50:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:50:45]Read from MH i2c: E2 [15:50:45]MH_I2C_Read... [15:50:45]Read from MH i2c: E2 03 00 [15:50:45]MH_I2C_Read... [15:50:45]Read from MH i2c: E2 03 00 15 11 00 90 00 9A [15:50:45]RAPDU: 90 00 [15:50:45]wFMCommunicate OK [15:50:45]wFMCommunicate request_size=255 [15:50:45]MH_SAM_APDU [15:50:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 D5 26 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 20 0F 01 00 35 04 06 00 05 [15:50:45]Write to MH i2c: E2 02 01 16 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 D5 26 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 20 0F 01 00 35 04 06 00 05 00 00 5A [15:50:45]Write i2c OK [15:50:45]MH_I2C_Read... [15:50:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:46]Read from MH i2c: E2 [15:50:46]MH_I2C_Read... [15:50:46]Read from MH i2c: E2 03 00 [15:50:46]MH_I2C_Read... [15:50:46]Read from MH i2c: E2 03 00 16 11 00 90 00 9B [15:50:46]RAPDU: 90 00 [15:50:46]wFMCommunicate OK [15:50:46]wFMCommunicate request_size=10 [15:50:46]MH_SAM_APDU [15:50:46]CAPDU: 80 0D 02 02 05 D1 3A A8 85 1E [15:50:46]Write to MH i2c: E2 0D 00 17 11 80 0D 02 02 05 00 D1 3A A8 85 1E 00 00 02 [15:50:46]Write i2c OK [15:50:46]MH_I2C_Read... [15:50:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:46]Read from MH i2c: E2 [15:50:46]MH_I2C_Read... [15:50:46]Read from MH i2c: E2 03 00 [15:50:46]MH_I2C_Read... [15:50:46]Read from MH i2c: E2 03 00 17 11 00 90 00 9C [15:50:46]RAPDU: 90 00 [15:50:46]wFMCommunicate OK [15:50:46]wFMCommunicate request_size=4 [15:50:46]MH_SAM_APDU [15:50:46]CAPDU: 80 0D 03 02 [15:50:46]Write to MH i2c: E2 08 00 18 11 80 0D 03 02 00 00 00 00 A4 [15:50:46]Write i2c OK [15:50:46]MH_I2C_Read... [15:50:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:50:46]OFD Sender: No OFD packet to send [15:50:46]Read from MH i2c: E2 [15:50:46]MH_I2C_Read... [15:50:46]Read from MH i2c: E2 0B 00 [15:50:46]MH_I2C_Read... [15:50:46]Read from MH i2c: E2 0B 00 18 11 00 EE 33 24 EB 77 97 E0 9D 90 00 60 [15:50:46]RAPDU: EE 33 24 EB 77 97 E0 9D 90 00 [15:50:46]wFMCommunicate OK [15:50:46]SAM_PROTO_SignData done [15:50:46]FM_MakeSignedData done [15:50:46]CreateOFDProtocolMessage [15:50:46]wFMCommunicate request_size=4 [15:50:46]MH_SAM_APDU [15:50:46]CAPDU: 80 11 00 00 [15:50:46]Write to MH i2c: E2 08 00 19 11 80 11 00 00 00 00 00 00 A4 [15:50:46]Write i2c OK [15:50:46]MH_I2C_Read... [15:50:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:46]Read from MH i2c: E2 [15:50:46]MH_I2C_Read... [15:50:46]Read from MH i2c: E2 17 00 [15:50:46]MH_I2C_Read... [15:50:46]Read from MH i2c: E2 17 00 19 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F6 [15:50:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:50:46]wFMCommunicate OK [15:50:46]CreateOFDProtocolMessage done [15:50:46]OFDSenderStorePacket 69408 [15:50:46]StoreOFDPacket docnum=69408 [15:50:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 B4 83 07 01 F4 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 D5 26 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 20 0F 01 00 35 04 06 00 05 D1 3A A8 85 1E EE 33 24 EB 77 97 E0 9D [15:50:46]CheckFolder [15:50:46]dirname=/storage/ofd_packets [15:50:46]CheckFolder done [15:50:46]ProducePacketName [15:50:46]name=ofd_packets/00069408 [15:50:46]NVStorageSaveData ofd_packets/00069408 [15:50:46]File name is /storage/ofd_packets/00069408 [15:50:46]Write 301 bytes [15:50:46]NVStorageSaveData done [15:50:46]OFDSenderStorePacket done [15:50:46]KKMCreateOFDPacket done [15:50:46]NVStorageSaveData kkm_last_timestamp [15:50:46]File name is /storage/kkm_last_timestamp [15:50:46]Write 4 bytes [15:50:46]NVStorageSaveData done [15:50:46]ExternCall_PrintAddStr [15:50:46]wPrintStart [15:50:46]Write to MH i2c: 01 00 00 1A 11 2B [15:50:46]Write i2c OK [15:50:46]MH_I2C_Read... [15:50:46]Read from MH i2c: 01 [15:50:46]MH_I2C_Read... [15:50:46]Read from MH i2c: 01 07 00 [15:50:46]MH_I2C_Read... [15:50:46]Read from MH i2c: 01 07 00 1A 11 00 00 00 00 00 FF 0F 40 [15:50:46]RasterBufferAndPrint [15:50:46]line Счет N : (1)2885135 [15:50:46]line ИНН: 02508201610067 [15:50:46]line Контрольно-Кассовый Чек [15:50:46]line ПРОДАЖА [15:50:46]line ТРК (МРК, ГНК) : 42 [15:50:46]line Товар: 2710124130 [15:50:46]line Аи-92-К-5 [15:50:46]line 2.990 * 66.90 [15:50:46]line = 200.03 [15:50:46]line НДС 12% НСП 1% [15:50:46]line > о реализуемом товаре [15:50:46]line ИТОГО: 200.03 [15:50:46]line НСП 1% : 1.77 [15:50:46]line НДС 12% : 21.24 [15:50:46]line Наличными: 0.00 [15:50:46]line Безнал.: 200.03 [15:50:46]line Место: АЗС № 85 "Партнер Нефть" [15:50:46]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:50:46]line СНО: Общий режим [15:50:46]line Чек 253 20.10.2024 15:50 [15:50:46]line Смена: 193 ФФД: 1.0 [15:50:46]line ЗНМ: 0300000167 [15:50:46]line РНМ: 0000000000156251 [15:50:46]line Версия ККМ: v1.0 [15:50:46]line Платежная система: Mbank [15:50:46]line ФМ: 0000000000963346 [15:50:46]line ФД: 69408 [15:50:46]line ФПД: 6396190426398 [15:50:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T155045&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69408&fm=6396190426398&tin=02508201610067®Number=0000000000156251&sum=20003 [15:50:46]OFD Sender: Processing packet 69408 [packets to send 18, broken 17] [15:50:46]ProducePacketName [15:50:46]name=ofd_packets/00069408 [15:50:46]OFD Sender: To server: pG, [15:50:46]CommunicateWithHost lk.salyk.kg:30040 [15:50:46]ConnectInit lk.salyk.kg [15:50:46]written 0, free lines is 4095 [15:50:46]Connected sock=10 [15:50:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 B4 83 07 01 F4 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 D5 26 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 20 0F 01 00 35 04 06 00 05 D1 3A A8 85 1E EE 33 24 EB 77 97 E0 9D [15:50:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 8E 73 47 00 34 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 20 0F 01 00 F4 03 04 00 7B D0 14 67 B6 04 01 00 00 FC 73 13 ED 60 DA A5 DB [15:50:46]CommunicateWithHost err = 0 [15:50:46]CheckOFDResponse [15:50:46]1017 (14) - 77093643461234 [15:50:46]1041 (16) - 0000000000963346 [15:50:46]1040 (4) - 69408 [15:50:46]1012 (4) - 20.10.2024 09:42 [15:50:46]1206 (1) - 0 [15:50:46]OFD Sender: Remove packet 69408 [15:50:46]ProducePacketName [15:50:46]name=ofd_packets/00069408 [15:50:46]NVStorageDeleteData [15:50:46]Write to MH i2c: 01 00 00 43 11 54 [15:50:46]Write i2c OK [15:50:46]MH_I2C_Read... [15:50:46]Read from MH i2c: 01 [15:50:46]MH_I2C_Read... [15:50:46]Read from MH i2c: 01 07 00 [15:50:46]MH_I2C_Read... [15:50:46]Read from MH i2c: 01 07 00 43 11 00 00 00 00 00 1D 0D 85 [15:50:46]RasterBufferAndPrint [15:50:46]line [15:50:46]line [15:50:46]line [15:50:46]line [15:50:46]line [15:50:46]written 0, free lines is 3363 [15:50:46]MH_Cut [15:50:46]Write to MH i2c: D1 01 00 4A 11 01 2D [15:50:46]Write i2c OK [15:50:46]MH_I2C_Read... [15:50:46]Read from MH i2c: D1 [15:50:46]MH_I2C_Read... [15:50:47]Read from MH i2c: D1 01 00 [15:50:47]MH_I2C_Read... [15:50:47]Read from MH i2c: D1 01 00 4A 11 00 2C [15:50:47]Write to MH i2c: 01 00 00 4B 11 5C [15:50:47]Write i2c OK [15:50:47]MH_I2C_Read... [15:50:47]OFD Sender: No OFD packet to send [15:50:47]*** Cut start [15:50:47]*** Partial cut [15:50:47]*** CUTSNS_PIN = 1 [15:50:47]*** CUTSNS_PIN = 0 [15:50:47]*** Brake cut motor [15:50:48]Read from MH i2c: 01 [15:50:48]MH_I2C_Read... [15:50:48]*** Stop cut motor [15:50:48]*** Cut end [15:50:48]Read from MH i2c: 01 07 00 [15:50:48]MH_I2C_Read... [15:50:48]Read from MH i2c: 01 07 00 4B 11 00 00 00 00 00 FF 0F 71 [15:50:48]process_action close_receipt done [15:50:48]requested_data is exist [15:50:48]produce_requested_data [15:50:48]requested_item fm.sn is exist - process it [15:50:48]wFMCommunicate request_size=4 [15:50:48]MH_SAM_APDU [15:50:48]CAPDU: 80 11 00 00 [15:50:48]Write to MH i2c: E2 08 00 4C 11 80 11 00 00 00 00 00 00 D7 [15:50:48]Write i2c OK [15:50:48]MH_I2C_Read... [15:50:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:48]Read from MH i2c: E2 [15:50:48]MH_I2C_Read... [15:50:48]Read from MH i2c: E2 17 00 [15:50:48]MH_I2C_Read... [15:50:48]Read from MH i2c: E2 17 00 4C 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 29 [15:50:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:50:48]wFMCommunicate OK [15:50:48]requested_item fd.num is exist - process it [15:50:48]SAM_PROTO_GetFieldsCounters [15:50:48]wFMCommunicate request_size=4 [15:50:48]MH_SAM_APDU [15:50:48]CAPDU: 80 13 00 00 [15:50:48]Write to MH i2c: E2 08 00 4D 11 80 13 00 00 00 00 00 00 DA [15:50:48]Write i2c OK [15:50:48]MH_I2C_Read... [15:50:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:50:48]Read from MH i2c: E2 [15:50:48]MH_I2C_Read... [15:50:48]Read from MH i2c: E2 62 00 [15:50:48]MH_I2C_Read... [15:50:48]Read from MH i2c: E2 62 00 4D 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 20 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [15:50:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 20 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:50:48]wFMCommunicate OK [15:50:48]SAM_PROTO_GetFieldsCounters done [15:50:48]requested_item shift.num is exist - process it [15:50:48]requested_item shift.opened is exist - process it [15:50:48]req_shift_opened [15:50:48]FM_GetShiftState [15:50:48]SAM_PROTO_GetShiftState [15:50:48]wFMCommunicate request_size=4 [15:50:48]MH_SAM_APDU [15:50:48]CAPDU: 80 13 01 00 [15:50:48]Write to MH i2c: E2 08 00 4E 11 80 13 01 00 00 00 00 00 DC [15:50:48]Write i2c OK [15:50:48]MH_I2C_Read... [15:50:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:48]Read from MH i2c: E2 [15:50:48]MH_I2C_Read... [15:50:48]Read from MH i2c: E2 0E 00 [15:50:48]MH_I2C_Read... [15:50:48]Read from MH i2c: E2 0E 00 4E 11 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 E2 [15:50:48]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [15:50:48]wFMCommunicate OK [15:50:48]SAM_PROTO_GetShiftState done [15:50:48]FM_GetShiftState done [15:50:48]req_shift_opened done [15:50:48]requested_item shift.open_date is exist - process it [15:50:48]req_shift_open_date [15:50:48]req_shift_open_date done [15:50:48]produce_requested_data done [15:50:48]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69408,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [15:50:48]process_action_free close_receipt [15:50:48]json_value_free [15:50:48]json_value_free done [15:50:48]process_json_proto returns [15:50:48]Send response to host [15:50:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69408,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [15:50:48]free response buf [15:50:48]execute_script done [15:50:48]execute_script returns [15:50:48]free content buf [15:50:48]Sock 8.Close socket [15:50:48]Sock 8.Thread stoped [15:50:52]OFD Sender: No OFD packet to send [15:50:57]OFD Sender: No OFD packet to send [15:51:02]OFD Sender: No OFD packet to send [15:51:07]OFD Sender: No OFD packet to send [15:51:12]OFD Sender: No OFD packet to send [15:51:17]OFD Sender: No OFD packet to send [15:51:22]OFD Sender: No OFD packet to send [15:51:27]OFD Sender: No OFD packet to send [15:51:32]OFD Sender: No OFD packet to send [15:51:37]OFD Sender: No OFD packet to send [15:51:42]OFD Sender: No OFD packet to send [15:51:47]OFD Sender: No OFD packet to send [15:51:52]OFD Sender: No OFD packet to send [15:51:57]OFD Sender: No OFD packet to send [15:52:02]OFD Sender: No OFD packet to send [15:52:07]OFD Sender: No OFD packet to send [15:52:12]OFD Sender: No OFD packet to send [15:52:12]accept exits with 9 [15:52:12]New connection [15:52:12]New thread 3066568036 created [15:52:12]Thread 3066711396 joined [15:52:12]Waiting for new connection... [15:52:12] Sock 9.Parse request [15:52:12]Sock 9.Check first char [15:52:12]Sock 9.First char is OK [15:52:12]request: POST /json_proto HTTP/1.0 [15:52:12]Method: POST [15:52:12]URL: /json_proto [15:52:12]Method is POST - this is cgi request [15:52:12]url: /json_proto [15:52:12]query_string will be loaded in cgi processing [15:52:12]execute_cgi json_proto POST (null) [15:52:12]execute_cgi path=json_proto method=POST [15:52:12]POST find Content-Length [15:52:12]Host: 172.17.50.3:8080 [15:52:12]Content-Length: 683 [15:52:12]Content-Type: application/json [15:52:12] [15:52:12]POST finish read [15:52:12]Found Content-Length = 683 [15:52:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 32.890, "sum" : 2200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:12]execute_script... [15:52: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)2885136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 32.890, "sum" : 2200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:12]POST & json_proto [15:52:12]process_json_proto [15:52:12]json parsed OK: [15:52:12]protocol is kg_v1.0 [15:52:12]action value=close_receipt [15:52:12]process_action close_receipt [15:52:12]cmd_close_receipt [15:52:12]MH_GetDate [15:52:12]Write to MH i2c: F0 00 00 4F 11 4F [15:52:12]Write i2c OK [15:52:12]MH_I2C_Read... [15:52:12]Read from MH i2c: F0 [15:52:12]MH_I2C_Read... [15:52:12]Read from MH i2c: F0 09 00 [15:52:12]MH_I2C_Read... [15:52:12]Read from MH i2c: F0 09 00 4F 11 00 2D 27 15 67 6B 98 1E 66 AF [15:52:12]GetLastDocTimeStamp 1729439445 [15:52:12]current date 1729439533 [15:52:12]FM_GetShiftState [15:52:12]SAM_PROTO_GetShiftState [15:52:12]wFMCommunicate request_size=4 [15:52:12]MH_SAM_APDU [15:52:12]CAPDU: 80 13 01 00 [15:52:12]Write to MH i2c: E2 08 00 50 11 80 13 01 00 00 00 00 00 DE [15:52:12]Write i2c OK [15:52:12]MH_I2C_Read... [15:52:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:12]Read from MH i2c: E2 [15:52:12]MH_I2C_Read... [15:52:12]Read from MH i2c: E2 0E 00 [15:52:12]MH_I2C_Read... [15:52:12]Read from MH i2c: E2 0E 00 50 11 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 E4 [15:52:12]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [15:52:12]wFMCommunicate OK [15:52:12]SAM_PROTO_GetShiftState done [15:52:12]FM_GetShiftState done [15:52:12]opened in 1729383220 [15:52:12]opened+sec_in_day 1729469620 [15:52:12]quantity*price = 220034 [15:52:12]sum+1 = 220035 [15:52:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 2200.00 Внесено: 2200.00 СДАЧА: 0.00 НСП 1% : 19.47 НДС 12% : 233.66 Наличными: 2200.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 254 20.10.2024 15:52 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69409 ФПД: 10816830900357 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T155213&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69409&fm=10816830900357&tin=02508201610067®Number=0000000000156251&sum=220000 [15:52:14]StoreToDocumentArchive [15:52:14]shift 193 fd 69409 [15:52:14]save to /storage/0193/doc_00069409 [15:52:14]save last doc name /storage/0193/doc_00069409 to /storage/kkm_last_doc_name [15:52:14]save OK [15:52:14]Clear old archive folders... [15:52:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:52:14]tlvbuf is B6E863D0 [15:52:14]SAM_PROTO_ClearQueue [15:52:14]wFMCommunicate request_size=4 [15:52:14]MH_SAM_APDU [15:52:14]CAPDU: 80 09 00 00 [15:52:14]Write to MH i2c: E2 08 00 5D 11 80 09 00 00 00 00 00 00 E0 [15:52:14]Write i2c OK [15:52:14]MH_I2C_Read... [15:52:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:52:14]Read from MH i2c: E2 [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: E2 03 00 [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: E2 03 00 5D 11 00 90 00 E2 [15:52:14]RAPDU: 90 00 [15:52:14]wFMCommunicate OK [15:52:14]SAM_PROTO_ClearQueue done [15:52:14]KKMCreateOFDPacket [15:52:14]OFDProtocolAddRootSTLVToBuf [15:52:14]FM_MakeSignedData [15:52:14]FM_MakeSignedData [15:52:14]SAM_PROTO_SignData [15:52:14]wFMCommunicate request_size=4 [15:52:14]MH_SAM_APDU [15:52:14]CAPDU: 80 0D 01 02 [15:52:14]Write to MH i2c: E2 08 00 5E 11 80 0D 01 02 00 00 00 00 E8 [15:52:14]Write i2c OK [15:52:14]MH_I2C_Read... [15:52:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:52:14]Read from MH i2c: E2 [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: E2 03 00 [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: E2 03 00 5E 11 00 90 00 E3 [15:52:14]RAPDU: 90 00 [15:52:14]wFMCommunicate OK [15:52:14]wFMCommunicate request_size=255 [15:52:14]MH_SAM_APDU [15:52: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 35 FF 03 08 00 03 7A 80 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 82 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 2D 27 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 21 0F 01 00 35 04 06 00 09 [15:52:14]Write to MH i2c: E2 02 01 5F 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 80 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 82 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 2D 27 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 21 0F 01 00 35 04 06 00 09 00 00 8A [15:52:14]Write i2c OK [15:52:14]MH_I2C_Read... [15:52:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:14]Read from MH i2c: E2 [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: E2 03 00 [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: E2 03 00 5F 11 00 90 00 E4 [15:52:14]RAPDU: 90 00 [15:52:14]wFMCommunicate OK [15:52:14]wFMCommunicate request_size=10 [15:52:14]MH_SAM_APDU [15:52:14]CAPDU: 80 0D 02 02 05 D6 7D 5D 08 85 [15:52:14]Write to MH i2c: E2 0D 00 60 11 80 0D 02 02 05 00 D6 7D 5D 08 85 00 00 32 [15:52:14]Write i2c OK [15:52:14]MH_I2C_Read... [15:52:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:14]Read from MH i2c: E2 [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: E2 03 00 [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: E2 03 00 60 11 00 90 00 E5 [15:52:14]RAPDU: 90 00 [15:52:14]wFMCommunicate OK [15:52:14]wFMCommunicate request_size=4 [15:52:14]MH_SAM_APDU [15:52:14]CAPDU: 80 0D 03 02 [15:52:14]Write to MH i2c: E2 08 00 61 11 80 0D 03 02 00 00 00 00 ED [15:52:14]Write i2c OK [15:52:14]MH_I2C_Read... [15:52:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:52:14]Read from MH i2c: E2 [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: E2 0B 00 [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: E2 0B 00 61 11 00 8A 56 41 D7 9E 36 EB E2 90 00 87 [15:52:14]RAPDU: 8A 56 41 D7 9E 36 EB E2 90 00 [15:52:14]wFMCommunicate OK [15:52:14]SAM_PROTO_SignData done [15:52:14]FM_MakeSignedData done [15:52:14]CreateOFDProtocolMessage [15:52:14]wFMCommunicate request_size=4 [15:52:14]MH_SAM_APDU [15:52:14]CAPDU: 80 11 00 00 [15:52:14]Write to MH i2c: E2 08 00 62 11 80 11 00 00 00 00 00 00 ED [15:52:14]Write i2c OK [15:52:14]MH_I2C_Read... [15:52:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:14]Read from MH i2c: E2 [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: E2 17 00 [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: E2 17 00 62 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3F [15:52:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:52:14]wFMCommunicate OK [15:52:14]CreateOFDProtocolMessage done [15:52:14]OFDSenderStorePacket 69409 [15:52:14]StoreOFDPacket docnum=69409 [15:52:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 AE 8E 07 01 93 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 80 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 82 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 2D 27 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 21 0F 01 00 35 04 06 00 09 D6 7D 5D 08 85 8A 56 41 D7 9E 36 EB E2 [15:52:14]CheckFolder [15:52:14]dirname=/storage/ofd_packets [15:52:14]CheckFolder done [15:52:14]ProducePacketName [15:52:14]name=ofd_packets/00069409 [15:52:14]NVStorageSaveData ofd_packets/00069409 [15:52:14]File name is /storage/ofd_packets/00069409 [15:52:14]Write 301 bytes [15:52:14]NVStorageSaveData done [15:52:14]OFDSenderStorePacket done [15:52:14]KKMCreateOFDPacket done [15:52:14]NVStorageSaveData kkm_last_timestamp [15:52:14]File name is /storage/kkm_last_timestamp [15:52:14]Write 4 bytes [15:52:14]NVStorageSaveData done [15:52:14]ExternCall_PrintAddStr [15:52:14]wPrintStart [15:52:14]Write to MH i2c: 01 00 00 63 11 74 [15:52:14]Write i2c OK [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: 01 [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: 01 07 00 [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: 01 07 00 63 11 00 00 00 00 00 FF 0F 89 [15:52:14]RasterBufferAndPrint [15:52:14]line Счет N : (1)2885136 [15:52:14]line ИНН: 02508201610067 [15:52:14]line Контрольно-Кассовый Чек [15:52:14]line ПРОДАЖА [15:52:14]line ТРК (МРК, ГНК) : 12 [15:52:14]line Товар: 2710124130 [15:52:14]line Аи-92-К-5 [15:52:14]line 32.890 * 66.90 [15:52:14]line = 2200.34 [15:52:14]line НДС 12% НСП 1% [15:52:14]line > о реализуемом товаре [15:52:14]line ОКРУГЛЕНИЕ: -0.34 [15:52:14]line ИТОГО: 2200.00 [15:52:14]line Внесено: 2200.00 [15:52:14]line СДАЧА: 0.00 [15:52:14]line НСП 1% : 19.47 [15:52:14]line НДС 12% : 233.66 [15:52:14]line Наличными: 2200.00 [15:52:14]line Безнал.: 0.00 [15:52:14]line Место: АЗС № 85 "Партнер Нефть" [15:52:14]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:52:14]line СНО: Общий режим [15:52:14]line Чек 254 20.10.2024 15:52 [15:52:14]line Смена: 193 ФФД: 1.0 [15:52:14]line ЗНМ: 0300000167 [15:52:14]line РНМ: 0000000000156251 [15:52:14]line Версия ККМ: v1.0 [15:52:14]line ФМ: 0000000000963346 [15:52:14]line ФД: 69409 [15:52:14]line ФПД: 10816830900357 [15:52:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T155213&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69409&fm=10816830900357&tin=02508201610067®Number=0000000000156251&sum=220000 [15:52:14]OFD Sender: Processing packet 69409 [packets to send 18, broken 17] [15:52:14]ProducePacketName [15:52:14]name=ofd_packets/00069409 [15:52:14]OFD Sender: To server: pG, [15:52:14]CommunicateWithHost lk.salyk.kg:30040 [15:52:14]ConnectInit lk.salyk.kg [15:52:14]written 0, free lines is 4095 [15:52:15]Connected sock=10 [15:52:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 AE 8E 07 01 93 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 80 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 82 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 2D 27 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 21 0F 01 00 35 04 06 00 09 D6 7D 5D 08 85 8A 56 41 D7 9E 36 EB E2 [15:52:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 38 E8 47 00 CA 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 21 0F 01 00 F4 03 04 00 D4 D0 14 67 B6 04 01 00 00 41 B2 EA BE B1 3E 08 96 [15:52:15]CommunicateWithHost err = 0 [15:52:15]CheckOFDResponse [15:52:15]1017 (14) - 77093643461234 [15:52:15]1041 (16) - 0000000000963346 [15:52:15]1040 (4) - 69409 [15:52:15]1012 (4) - 20.10.2024 09:43 [15:52:15]1206 (1) - 0 [15:52:15]OFD Sender: Remove packet 69409 [15:52:15]ProducePacketName [15:52:15]name=ofd_packets/00069409 [15:52:15]NVStorageDeleteData [15:52:15]Write to MH i2c: 01 00 00 8E 11 9F [15:52:15]Write i2c OK [15:52:15]MH_I2C_Read... [15:52:15]Read from MH i2c: 01 [15:52:15]MH_I2C_Read... [15:52:15]Read from MH i2c: 01 07 00 [15:52:15]MH_I2C_Read... [15:52:15]Read from MH i2c: 01 07 00 8E 11 00 00 00 00 00 F9 0C AB [15:52:15]RasterBufferAndPrint [15:52:15]line [15:52:15]line [15:52:15]line [15:52:15]line [15:52:15]line [15:52:15]written 0, free lines is 3331 [15:52:15]MH_Cut [15:52:15]Write to MH i2c: D1 01 00 95 11 01 78 [15:52:15]Write i2c OK [15:52:15]MH_I2C_Read... [15:52:15]Read from MH i2c: D1 [15:52:15]MH_I2C_Read... [15:52:15]Read from MH i2c: D1 01 00 [15:52:15]MH_I2C_Read... [15:52:15]Read from MH i2c: D1 01 00 95 11 00 77 [15:52:15]Write to MH i2c: 01 00 00 96 11 A7 [15:52:15]Write i2c OK [15:52:15]MH_I2C_Read... [15:52:15]OFD Sender: No OFD packet to send [15:52:16]*** Cut start [15:52:16]*** Partial cut [15:52:16]*** CUTSNS_PIN = 1 [15:52:16]*** CUTSNS_PIN = 0 [15:52:16]*** Brake cut motor [15:52:16]Read from MH i2c: 01 [15:52:16]MH_I2C_Read... [15:52:16]*** Stop cut motor [15:52:16]*** Cut end [15:52:16]Read from MH i2c: 01 07 00 [15:52:16]MH_I2C_Read... [15:52:16]Read from MH i2c: 01 07 00 96 11 00 00 00 00 00 FF 0F BC [15:52:16]process_action close_receipt done [15:52:16]requested_data is exist [15:52:16]produce_requested_data [15:52:16]requested_item fm.sn is exist - process it [15:52:16]wFMCommunicate request_size=4 [15:52:16]MH_SAM_APDU [15:52:16]CAPDU: 80 11 00 00 [15:52:16]Write to MH i2c: E2 08 00 97 11 80 11 00 00 00 00 00 00 22 [15:52:16]Write i2c OK [15:52:16]MH_I2C_Read... [15:52:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:16]Read from MH i2c: E2 [15:52:16]MH_I2C_Read... [15:52:16]Read from MH i2c: E2 17 00 [15:52:16]MH_I2C_Read... [15:52:16]Read from MH i2c: E2 17 00 97 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 74 [15:52:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:52:16]wFMCommunicate OK [15:52:16]requested_item fd.num is exist - process it [15:52:16]SAM_PROTO_GetFieldsCounters [15:52:16]wFMCommunicate request_size=4 [15:52:16]MH_SAM_APDU [15:52:16]CAPDU: 80 13 00 00 [15:52:16]Write to MH i2c: E2 08 00 98 11 80 13 00 00 00 00 00 00 25 [15:52:16]Write i2c OK [15:52:16]MH_I2C_Read... [15:52:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:52:16]Read from MH i2c: E2 [15:52:16]MH_I2C_Read... [15:52:16]Read from MH i2c: E2 62 00 [15:52:16]MH_I2C_Read... [15:52:16]Read from MH i2c: E2 62 00 98 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 21 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [15:52:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 21 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:52:16]wFMCommunicate OK [15:52:16]SAM_PROTO_GetFieldsCounters done [15:52:16]requested_item shift.num is exist - process it [15:52:16]requested_item shift.opened is exist - process it [15:52:16]req_shift_opened [15:52:16]FM_GetShiftState [15:52:16]SAM_PROTO_GetShiftState [15:52:16]wFMCommunicate request_size=4 [15:52:16]MH_SAM_APDU [15:52:16]CAPDU: 80 13 01 00 [15:52:16]Write to MH i2c: E2 08 00 99 11 80 13 01 00 00 00 00 00 27 [15:52:16]Write i2c OK [15:52:16]MH_I2C_Read... [15:52:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:16]Read from MH i2c: E2 [15:52:16]MH_I2C_Read... [15:52:16]Read from MH i2c: E2 0E 00 [15:52:16]MH_I2C_Read... [15:52:16]Read from MH i2c: E2 0E 00 99 11 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 2D [15:52:16]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [15:52:16]wFMCommunicate OK [15:52:16]SAM_PROTO_GetShiftState done [15:52:16]FM_GetShiftState done [15:52:16]req_shift_opened done [15:52:16]requested_item shift.open_date is exist - process it [15:52:16]req_shift_open_date [15:52:16]req_shift_open_date done [15:52:16]produce_requested_data done [15:52:16]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69409,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [15:52:16]process_action_free close_receipt [15:52:16]json_value_free [15:52:16]json_value_free done [15:52:16]process_json_proto returns [15:52:16]Send response to host [15:52:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69409,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [15:52:16]free response buf [15:52:16]execute_script done [15:52:16]execute_script returns [15:52:16]free content buf [15:52:16]Sock 9.Close socket [15:52:16]Sock 9.Thread stoped [15:52:20]OFD Sender: No OFD packet to send [15:52:25]OFD Sender: No OFD packet to send [15:52:30]OFD Sender: No OFD packet to send [15:52:35]OFD Sender: No OFD packet to send [15:52:40]OFD Sender: No OFD packet to send [15:52:45]OFD Sender: No OFD packet to send [15:52:50]OFD Sender: No OFD packet to send [15:52:55]OFD Sender: No OFD packet to send [15:53:00]OFD Sender: No OFD packet to send [15:53:05]OFD Sender: No OFD packet to send [15:53:10]OFD Sender: No OFD packet to send [15:53:15]OFD Sender: No OFD packet to send [15:53:20]OFD Sender: No OFD packet to send [15:53:25]OFD Sender: No OFD packet to send [15:53:30]OFD Sender: No OFD packet to send [15:53:35]OFD Sender: No OFD packet to send [15:53:40]OFD Sender: No OFD packet to send [15:53:45]OFD Sender: No OFD packet to send [15:53:50]OFD Sender: No OFD packet to send [15:53:55]OFD Sender: No OFD packet to send [15:54:00]OFD Sender: No OFD packet to send [15:54:05]OFD Sender: No OFD packet to send [15:54:10]OFD Sender: No OFD packet to send [15:54:15]OFD Sender: No OFD packet to send [15:54:20]OFD Sender: No OFD packet to send [15:54:25]OFD Sender: No OFD packet to send [15:54:30]OFD Sender: No OFD packet to send [15:54:35]OFD Sender: No OFD packet to send [15:54:40]OFD Sender: No OFD packet to send [15:54:45]OFD Sender: No OFD packet to send [15:54:50]OFD Sender: No OFD packet to send [15:54:55]OFD Sender: No OFD packet to send [15:55:00]OFD Sender: No OFD packet to send [15:55:05]OFD Sender: No OFD packet to send [15:55:10]OFD Sender: No OFD packet to send [15:55:15]OFD Sender: No OFD packet to send [15:55:20]OFD Sender: No OFD packet to send [15:55:25]OFD Sender: No OFD packet to send [15:55:30]OFD Sender: No OFD packet to send [15:55:35]OFD Sender: No OFD packet to send [15:55:40]OFD Sender: No OFD packet to send [15:55:45]OFD Sender: No OFD packet to send [15:55:50]OFD Sender: No OFD packet to send [15:55:53]accept exits with 8 [15:55:53]New connection [15:55:53]New thread 3066711396 created [15:55:53]Thread 3066568036 joined [15:55:53]Waiting for new connection... [15:55:53] Sock 8.Parse request [15:55:53]Sock 8.Check first char [15:55:53]Sock 8.First char is OK [15:55:53]request: POST /json_proto HTTP/1.0 [15:55:53]Method: POST [15:55:53]URL: /json_proto [15:55:53]Method is POST - this is cgi request [15:55:53]url: /json_proto [15:55:53]query_string will be loaded in cgi processing [15:55:53]execute_cgi json_proto POST (null) [15:55:53]execute_cgi path=json_proto method=POST [15:55:53]POST find Content-Length [15:55:53]Host: 172.17.50.3:8080 [15:55:53]Content-Length: 768 [15:55:53]Content-Type: application/json [15:55:53] [15:55:53]POST finish read [15:55:53]Found Content-Length = 768 [15:55:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:53]execute_script... [15:55: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)2885137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:53]POST & json_proto [15:55:53]process_json_proto [15:55:53]json parsed OK: [15:55:53]protocol is kg_v1.0 [15:55:53]action value=close_receipt [15:55:53]process_action close_receipt [15:55:53]cmd_close_receipt [15:55:53]MH_GetDate [15:55:53]Write to MH i2c: F0 00 00 9A 11 9A [15:55:53]Write i2c OK [15:55:53]MH_I2C_Read... [15:55:53]Read from MH i2c: F0 [15:55:53]MH_I2C_Read... [15:55:53]Read from MH i2c: F0 09 00 [15:55:53]MH_I2C_Read... [15:55:53]Read from MH i2c: F0 09 00 9A 11 00 0A 28 15 67 6B 98 1E 66 D8 [15:55:53]GetLastDocTimeStamp 1729439533 [15:55:53]current date 1729439754 [15:55:53]FM_GetShiftState [15:55:53]SAM_PROTO_GetShiftState [15:55:53]wFMCommunicate request_size=4 [15:55:53]MH_SAM_APDU [15:55:53]CAPDU: 80 13 01 00 [15:55:53]Write to MH i2c: E2 08 00 9B 11 80 13 01 00 00 00 00 00 29 [15:55:53]Write i2c OK [15:55:53]MH_I2C_Read... [15:55:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:53]Read from MH i2c: E2 [15:55:53]MH_I2C_Read... [15:55:53]Read from MH i2c: E2 0E 00 [15:55:53]MH_I2C_Read... [15:55:53]Read from MH i2c: E2 0E 00 9B 11 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 2F [15:55:53]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [15:55:53]wFMCommunicate OK [15:55:53]SAM_PROTO_GetShiftState done [15:55:53]FM_GetShiftState done [15:55:53]opened in 1729383220 [15:55:53]opened+sec_in_day 1729469620 [15:55:53]quantity*price = 70044 [15:55:53]sum+1 = 70045 [15:55:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.44 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.44 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 255 20.10.2024 15:55 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69410 ФПД: 20257427673625 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T155554&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69410&fm=20257427673625&tin=02508201610067®Number=0000000000156251&sum=70044 [15:55:54]StoreToDocumentArchive [15:55:54]shift 193 fd 69410 [15:55:54]save to /storage/0193/doc_00069410 [15:55:54]save last doc name /storage/0193/doc_00069410 to /storage/kkm_last_doc_name [15:55:54]save OK [15:55:54]Clear old archive folders... [15:55:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:55:54]tlvbuf is 00201700 [15:55:54]SAM_PROTO_ClearQueue [15:55:54]wFMCommunicate request_size=4 [15:55:54]MH_SAM_APDU [15:55:54]CAPDU: 80 09 00 00 [15:55:54]Write to MH i2c: E2 08 00 A8 11 80 09 00 00 00 00 00 00 2B [15:55:54]Write i2c OK [15:55:54]MH_I2C_Read... [15:55:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:55:54]Read from MH i2c: E2 [15:55:54]MH_I2C_Read... [15:55:54]Read from MH i2c: E2 03 00 [15:55:54]MH_I2C_Read... [15:55:54]Read from MH i2c: E2 03 00 A8 11 00 90 00 2D [15:55:54]RAPDU: 90 00 [15:55:54]wFMCommunicate OK [15:55:54]SAM_PROTO_ClearQueue done [15:55:54]KKMCreateOFDPacket [15:55:54]OFDProtocolAddRootSTLVToBuf [15:55:54]FM_MakeSignedData [15:55:54]FM_MakeSignedData [15:55:54]SAM_PROTO_SignData [15:55:54]wFMCommunicate request_size=4 [15:55:54]MH_SAM_APDU [15:55:54]CAPDU: 80 0D 01 02 [15:55:54]Write to MH i2c: E2 08 00 A9 11 80 0D 01 02 00 00 00 00 33 [15:55:54]Write i2c OK [15:55:54]MH_I2C_Read... [15:55:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:55:54]Read from MH i2c: E2 [15:55:54]MH_I2C_Read... [15:55:54]Read from MH i2c: E2 03 00 [15:55:54]MH_I2C_Read... [15:55:54]Read from MH i2c: E2 03 00 A9 11 00 90 00 2E [15:55:54]RAPDU: 90 00 [15:55:54]wFMCommunicate OK [15:55:54]wFMCommunicate request_size=255 [15:55:54]MH_SAM_APDU [15:55: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 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 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 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 0A 28 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 22 0F 01 00 35 04 06 00 12 [15:55:54]Write to MH i2c: E2 02 01 AA 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 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 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 0A 28 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 22 0F 01 00 35 04 06 00 12 00 00 D6 [15:55:54]Write i2c OK [15:55:54]MH_I2C_Read... [15:55:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:54]Read from MH i2c: E2 [15:55:54]MH_I2C_Read... [15:55:54]Read from MH i2c: E2 03 00 [15:55:54]MH_I2C_Read... [15:55:54]Read from MH i2c: E2 03 00 AA 11 00 90 00 2F [15:55:54]RAPDU: 90 00 [15:55:54]wFMCommunicate OK [15:55:54]wFMCommunicate request_size=10 [15:55:54]MH_SAM_APDU [15:55:54]CAPDU: 80 0D 02 02 05 6C 8C C7 D2 19 [15:55:54]Write to MH i2c: E2 0D 00 AB 11 80 0D 02 02 05 00 6C 8C C7 D2 19 00 00 EA [15:55:54]Write i2c OK [15:55:54]MH_I2C_Read... [15:55:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:54]Read from MH i2c: E2 [15:55:54]MH_I2C_Read... [15:55:54]Read from MH i2c: E2 03 00 [15:55:54]MH_I2C_Read... [15:55:54]Read from MH i2c: E2 03 00 AB 11 00 90 00 30 [15:55:54]RAPDU: 90 00 [15:55:54]wFMCommunicate OK [15:55:54]wFMCommunicate request_size=4 [15:55:54]MH_SAM_APDU [15:55:54]CAPDU: 80 0D 03 02 [15:55:54]Write to MH i2c: E2 08 00 AC 11 80 0D 03 02 00 00 00 00 38 [15:55:54]Write i2c OK [15:55:54]MH_I2C_Read... [15:55:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:55:54]Read from MH i2c: E2 [15:55:54]MH_I2C_Read... [15:55:54]Read from MH i2c: E2 0B 00 [15:55:54]MH_I2C_Read... [15:55:54]Read from MH i2c: E2 0B 00 AC 11 00 25 A7 65 FF 07 AB E3 6B 90 00 69 [15:55:54]RAPDU: 25 A7 65 FF 07 AB E3 6B 90 00 [15:55:54]wFMCommunicate OK [15:55:54]SAM_PROTO_SignData done [15:55:54]FM_MakeSignedData done [15:55:54]CreateOFDProtocolMessage [15:55:54]wFMCommunicate request_size=4 [15:55:54]MH_SAM_APDU [15:55:54]CAPDU: 80 11 00 00 [15:55:54]Write to MH i2c: E2 08 00 AD 11 80 11 00 00 00 00 00 00 38 [15:55:54]Write i2c OK [15:55:54]MH_I2C_Read... [15:55:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:55]Read from MH i2c: E2 [15:55:55]MH_I2C_Read... [15:55:55]Read from MH i2c: E2 17 00 [15:55:55]MH_I2C_Read... [15:55:55]Read from MH i2c: E2 17 00 AD 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8A [15:55:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:55:55]wFMCommunicate OK [15:55:55]CreateOFDProtocolMessage done [15:55:55]OFDSenderStorePacket 69410 [15:55:55]StoreOFDPacket docnum=69410 [15:55:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 0C FD 07 01 21 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 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 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 0A 28 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 22 0F 01 00 35 04 06 00 12 6C 8C C7 D2 19 25 A7 65 FF 07 AB E3 6B [15:55:55]CheckFolder [15:55:55]dirname=/storage/ofd_packets [15:55:55]CheckFolder done [15:55:55]ProducePacketName [15:55:55]name=ofd_packets/00069410 [15:55:55]NVStorageSaveData ofd_packets/00069410 [15:55:55]File name is /storage/ofd_packets/00069410 [15:55:55]Write 301 bytes [15:55:55]NVStorageSaveData done [15:55:55]OFDSenderStorePacket done [15:55:55]KKMCreateOFDPacket done [15:55:55]NVStorageSaveData kkm_last_timestamp [15:55:55]File name is /storage/kkm_last_timestamp [15:55:55]Write 4 bytes [15:55:55]NVStorageSaveData done [15:55:55]ExternCall_PrintAddStr [15:55:55]wPrintStart [15:55:55]Write to MH i2c: 01 00 00 AE 11 BF [15:55:55]Write i2c OK [15:55:55]MH_I2C_Read... [15:55:55]Read from MH i2c: 01 [15:55:55]MH_I2C_Read... [15:55:55]Read from MH i2c: 01 07 00 [15:55:55]MH_I2C_Read... [15:55:55]Read from MH i2c: 01 07 00 AE 11 00 00 00 00 00 FF 0F D4 [15:55:55]RasterBufferAndPrint [15:55:55]line Счет N : (1)2885137 [15:55:55]line ИНН: 02508201610067 [15:55:55]line Контрольно-Кассовый Чек [15:55:55]line ПРОДАЖА [15:55:55]line ТРК (МРК, ГНК) : 42 [15:55:55]line Товар: 2710124130 [15:55:55]line Аи-92-К-5 [15:55:55]line 10.470 * 66.90 [15:55:55]line = 700.44 [15:55:55]line НДС 12% НСП 1% [15:55:55]line > о реализуемом товаре [15:55:55]line ИТОГО: 700.44 [15:55:55]line НСП 1% : 6.20 [15:55:55]line НДС 12% : 74.38 [15:55:55]line Наличными: 0.00 [15:55:55]line Безнал.: 700.44 [15:55:55]line Место: АЗС № 85 "Партнер Нефть" [15:55:55]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:55:55]line СНО: Общий режим [15:55:55]line Чек 255 20.10.2024 15:55 [15:55:55]line Смена: 193 ФФД: 1.0 [15:55:55]line ЗНМ: 0300000167 [15:55:55]line РНМ: 0000000000156251 [15:55:55]line Версия ККМ: v1.0 [15:55:55]line Платежная система: Mbank [15:55:55]line ФМ: 0000000000963346 [15:55:55]line ФД: 69410 [15:55:55]line ФПД: 20257427673625 [15:55:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T155554&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69410&fm=20257427673625&tin=02508201610067®Number=0000000000156251&sum=70044 [15:55:55]OFD Sender: Processing packet 69410 [packets to send 18, broken 17] [15:55:55]ProducePacketName [15:55:55]name=ofd_packets/00069410 [15:55:55]OFD Sender: To server: pG, [15:55:55]CommunicateWithHost lk.salyk.kg:30040 [15:55:55]ConnectInit lk.salyk.kg [15:55:55]written 0, free lines is 4095 [15:55:55]Connected sock=10 [15:55:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 0C FD 07 01 21 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 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 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 0A 28 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 22 0F 01 00 35 04 06 00 12 6C 8C C7 D2 19 25 A7 65 FF 07 AB E3 6B [15:55:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 6F 2A 47 00 15 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 22 0F 01 00 F4 03 04 00 B0 D1 14 67 B6 04 01 00 00 0D 67 8E 94 2C 48 F8 C7 [15:55:55]CommunicateWithHost err = 0 [15:55:55]CheckOFDResponse [15:55:55]1017 (14) - 77093643461234 [15:55:55]1041 (16) - 0000000000963346 [15:55:55]1040 (4) - 69410 [15:55:55]1012 (4) - 20.10.2024 09:47 [15:55:55]1206 (1) - 0 [15:55:55]OFD Sender: Remove packet 69410 [15:55:55]ProducePacketName [15:55:55]name=ofd_packets/00069410 [15:55:55]NVStorageDeleteData [15:55:55]Write to MH i2c: 01 00 00 D7 11 E8 [15:55:55]Write i2c OK [15:55:55]MH_I2C_Read... [15:55:55]Read from MH i2c: 01 [15:55:55]MH_I2C_Read... [15:55:55]Read from MH i2c: 01 07 00 [15:55:55]MH_I2C_Read... [15:55:55]Read from MH i2c: 01 07 00 D7 11 00 00 00 00 00 08 0D 04 [15:55:55]RasterBufferAndPrint [15:55:55]line [15:55:55]line [15:55:55]line [15:55:55]line [15:55:55]line [15:55:55]written 0, free lines is 3342 [15:55:55]MH_Cut [15:55:55]Write to MH i2c: D1 01 00 DE 11 01 C1 [15:55:55]Write i2c OK [15:55:55]MH_I2C_Read... [15:55:55]Read from MH i2c: D1 [15:55:55]MH_I2C_Read... [15:55:55]Read from MH i2c: D1 01 00 [15:55:55]MH_I2C_Read... [15:55:55]Read from MH i2c: D1 01 00 DE 11 00 C0 [15:55:55]Write to MH i2c: 01 00 00 DF 11 F0 [15:55:55]Write i2c OK [15:55:55]MH_I2C_Read... [15:55:56]OFD Sender: No OFD packet to send [15:55:56]*** Cut start [15:55:56]*** Partial cut [15:55:56]*** CUTSNS_PIN = 1 [15:55:56]*** CUTSNS_PIN = 0 [15:55:56]*** Brake cut motor [15:55:57]Read from MH i2c: 01 [15:55:57]MH_I2C_Read... [15:55:57]*** Stop cut motor [15:55:57]*** Cut end [15:55:57]Read from MH i2c: 01 07 00 [15:55:57]MH_I2C_Read... [15:55:57]Read from MH i2c: 01 07 00 DF 11 00 00 00 00 00 FF 0F 05 [15:55:57]process_action close_receipt done [15:55:57]requested_data is exist [15:55:57]produce_requested_data [15:55:57]requested_item fm.sn is exist - process it [15:55:57]wFMCommunicate request_size=4 [15:55:57]MH_SAM_APDU [15:55:57]CAPDU: 80 11 00 00 [15:55:57]Write to MH i2c: E2 08 00 E0 11 80 11 00 00 00 00 00 00 6B [15:55:57]Write i2c OK [15:55:57]MH_I2C_Read... [15:55:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:57]Read from MH i2c: E2 [15:55:57]MH_I2C_Read... [15:55:57]Read from MH i2c: E2 17 00 [15:55:57]MH_I2C_Read... [15:55:57]Read from MH i2c: E2 17 00 E0 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BD [15:55:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:55:57]wFMCommunicate OK [15:55:57]requested_item fd.num is exist - process it [15:55:57]SAM_PROTO_GetFieldsCounters [15:55:57]wFMCommunicate request_size=4 [15:55:57]MH_SAM_APDU [15:55:57]CAPDU: 80 13 00 00 [15:55:57]Write to MH i2c: E2 08 00 E1 11 80 13 00 00 00 00 00 00 6E [15:55:57]Write i2c OK [15:55:57]MH_I2C_Read... [15:55:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:55:57]Read from MH i2c: E2 [15:55:57]MH_I2C_Read... [15:55:57]Read from MH i2c: E2 62 00 [15:55:57]MH_I2C_Read... [15:55:57]Read from MH i2c: E2 62 00 E1 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 22 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 7A [15:55:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 22 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:55:57]wFMCommunicate OK [15:55:57]SAM_PROTO_GetFieldsCounters done [15:55:57]requested_item shift.num is exist - process it [15:55:57]requested_item shift.opened is exist - process it [15:55:57]req_shift_opened [15:55:57]FM_GetShiftState [15:55:57]SAM_PROTO_GetShiftState [15:55:57]wFMCommunicate request_size=4 [15:55:57]MH_SAM_APDU [15:55:57]CAPDU: 80 13 01 00 [15:55:57]Write to MH i2c: E2 08 00 E2 11 80 13 01 00 00 00 00 00 70 [15:55:57]Write i2c OK [15:55:57]MH_I2C_Read... [15:55:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:57]Read from MH i2c: E2 [15:55:57]MH_I2C_Read... [15:55:57]Read from MH i2c: E2 0E 00 [15:55:57]MH_I2C_Read... [15:55:57]Read from MH i2c: E2 0E 00 E2 11 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 76 [15:55:57]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [15:55:57]wFMCommunicate OK [15:55:57]SAM_PROTO_GetShiftState done [15:55:57]FM_GetShiftState done [15:55:57]req_shift_opened done [15:55:57]requested_item shift.open_date is exist - process it [15:55:57]req_shift_open_date [15:55:57]req_shift_open_date done [15:55:57]produce_requested_data done [15:55:57]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69410,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [15:55:57]process_action_free close_receipt [15:55:57]json_value_free [15:55:57]json_value_free done [15:55:57]process_json_proto returns [15:55:57]Send response to host [15:55:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69410,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [15:55:57]free response buf [15:55:57]execute_script done [15:55:57]execute_script returns [15:55:57]free content buf [15:55:57]Sock 8.Close socket [15:55:57]Sock 8.Thread stoped [15:56:01]OFD Sender: No OFD packet to send [15:56:06]OFD Sender: No OFD packet to send [15:56:11]OFD Sender: No OFD packet to send [15:56:16]OFD Sender: No OFD packet to send [15:56:21]OFD Sender: No OFD packet to send [15:56:26]OFD Sender: No OFD packet to send [15:56:31]OFD Sender: No OFD packet to send [15:56:36]OFD Sender: No OFD packet to send [15:56:41]OFD Sender: No OFD packet to send [15:56:46]OFD Sender: No OFD packet to send [15:56:47]accept exits with 9 [15:56:47]New connection [15:56:47]New thread 3066568036 created [15:56:47]Thread 3066711396 joined [15:56:47]Waiting for new connection... [15:56:47] Sock 9.Parse request [15:56:47]Sock 9.Check first char [15:56:47]Sock 9.First char is OK [15:56:47]request: POST /json_proto HTTP/1.0 [15:56:47]Method: POST [15:56:47]URL: /json_proto [15:56:47]Method is POST - this is cgi request [15:56:47]url: /json_proto [15:56:47]query_string will be loaded in cgi processing [15:56:47]execute_cgi json_proto POST (null) [15:56:47]execute_cgi path=json_proto method=POST [15:56:47]POST find Content-Length [15:56:47]Host: 172.17.50.3:8080 [15:56:47]Content-Length: 678 [15:56:47]Content-Type: application/json [15:56:47] [15:56:47]POST finish read [15:56:47]Found Content-Length = 678 [15:56:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:47]execute_script... [15:56: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)2885139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:47]POST & json_proto [15:56:47]process_json_proto [15:56:47]json parsed OK: [15:56:47]protocol is kg_v1.0 [15:56:47]action value=close_receipt [15:56:47]process_action close_receipt [15:56:47]cmd_close_receipt [15:56:47]MH_GetDate [15:56:47]Write to MH i2c: F0 00 00 E3 11 E3 [15:56:47]Write i2c OK [15:56:47]MH_I2C_Read... [15:56:47]Read from MH i2c: F0 [15:56:47]MH_I2C_Read... [15:56:47]Read from MH i2c: F0 09 00 [15:56:47]MH_I2C_Read... [15:56:47]Read from MH i2c: F0 09 00 E3 11 00 3F 28 15 67 6B 98 1E 66 56 [15:56:47]GetLastDocTimeStamp 1729439754 [15:56:47]current date 1729439807 [15:56:47]FM_GetShiftState [15:56:47]SAM_PROTO_GetShiftState [15:56:47]wFMCommunicate request_size=4 [15:56:47]MH_SAM_APDU [15:56:47]CAPDU: 80 13 01 00 [15:56:47]Write to MH i2c: E2 08 00 E4 11 80 13 01 00 00 00 00 00 72 [15:56:47]Write i2c OK [15:56:47]MH_I2C_Read... [15:56:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:47]Read from MH i2c: E2 [15:56:47]MH_I2C_Read... [15:56:47]Read from MH i2c: E2 0E 00 [15:56:47]MH_I2C_Read... [15:56:47]Read from MH i2c: E2 0E 00 E4 11 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 78 [15:56:47]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [15:56:47]wFMCommunicate OK [15:56:47]SAM_PROTO_GetShiftState done [15:56:47]FM_GetShiftState done [15:56:47]opened in 1729383220 [15:56:47]opened+sec_in_day 1729469620 [15:56:47]quantity*price = 40006 [15:56:47]sum+1 = 40007 [15:56:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 256 20.10.2024 15:56 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69411 ФПД: 195739956618920 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T155647&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69411&fm=195739956618920&tin=02508201610067®Number=0000000000156251&sum=40000 [15:56:48]StoreToDocumentArchive [15:56:48]shift 193 fd 69411 [15:56:48]save to /storage/0193/doc_00069411 [15:56:48]save last doc name /storage/0193/doc_00069411 to /storage/kkm_last_doc_name [15:56:48]save OK [15:56:48]Clear old archive folders... [15:56:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:56:48]tlvbuf is 00226480 [15:56:48]SAM_PROTO_ClearQueue [15:56:48]wFMCommunicate request_size=4 [15:56:48]MH_SAM_APDU [15:56:48]CAPDU: 80 09 00 00 [15:56:48]Write to MH i2c: E2 08 00 F1 11 80 09 00 00 00 00 00 00 74 [15:56:48]Write i2c OK [15:56:48]MH_I2C_Read... [15:56:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:56:48]Read from MH i2c: E2 [15:56:48]MH_I2C_Read... [15:56:48]Read from MH i2c: E2 03 00 [15:56:48]MH_I2C_Read... [15:56:48]Read from MH i2c: E2 03 00 F1 11 00 90 00 76 [15:56:48]RAPDU: 90 00 [15:56:48]wFMCommunicate OK [15:56:48]SAM_PROTO_ClearQueue done [15:56:48]KKMCreateOFDPacket [15:56:48]OFDProtocolAddRootSTLVToBuf [15:56:48]FM_MakeSignedData [15:56:48]FM_MakeSignedData [15:56:48]SAM_PROTO_SignData [15:56:48]wFMCommunicate request_size=4 [15:56:48]MH_SAM_APDU [15:56:48]CAPDU: 80 0D 01 02 [15:56:48]Write to MH i2c: E2 08 00 F2 11 80 0D 01 02 00 00 00 00 7C [15:56:48]Write i2c OK [15:56:48]MH_I2C_Read... [15:56:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:56:48]Read from MH i2c: E2 [15:56:48]MH_I2C_Read... [15:56:48]Read from MH i2c: E2 03 00 [15:56:48]MH_I2C_Read... [15:56:48]Read from MH i2c: E2 03 00 F2 11 00 90 00 77 [15:56:48]RAPDU: 90 00 [15:56:48]wFMCommunicate OK [15:56:48]wFMCommunicate request_size=255 [15:56:48]MH_SAM_APDU [15:56:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 3F 28 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 23 0F 01 00 35 04 06 00 B2 [15:56:48]Write to MH i2c: E2 02 01 F3 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 3F 28 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 23 0F 01 00 35 04 06 00 B2 00 00 5E [15:56:48]Write i2c OK [15:56:48]MH_I2C_Read... [15:56:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:48]Read from MH i2c: E2 [15:56:48]MH_I2C_Read... [15:56:48]Read from MH i2c: E2 03 00 [15:56:48]MH_I2C_Read... [15:56:48]Read from MH i2c: E2 03 00 F3 11 00 90 00 78 [15:56:48]RAPDU: 90 00 [15:56:48]wFMCommunicate OK [15:56:48]wFMCommunicate request_size=10 [15:56:48]MH_SAM_APDU [15:56:48]CAPDU: 80 0D 02 02 05 06 42 95 26 A8 [15:56:48]Write to MH i2c: E2 0D 00 F4 11 80 0D 02 02 05 00 06 42 95 26 A8 00 00 34 [15:56:48]Write i2c OK [15:56:48]MH_I2C_Read... [15:56:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:48]Read from MH i2c: E2 [15:56:48]MH_I2C_Read... [15:56:48]Read from MH i2c: E2 03 00 [15:56:48]MH_I2C_Read... [15:56:48]Read from MH i2c: E2 03 00 F4 11 00 90 00 79 [15:56:48]RAPDU: 90 00 [15:56:48]wFMCommunicate OK [15:56:48]wFMCommunicate request_size=4 [15:56:48]MH_SAM_APDU [15:56:48]CAPDU: 80 0D 03 02 [15:56:48]Write to MH i2c: E2 08 00 F5 11 80 0D 03 02 00 00 00 00 81 [15:56:48]Write i2c OK [15:56:48]MH_I2C_Read... [15:56:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:56:48]Read from MH i2c: E2 [15:56:48]MH_I2C_Read... [15:56:48]Read from MH i2c: E2 0B 00 [15:56:48]MH_I2C_Read... [15:56:48]Read from MH i2c: E2 0B 00 F5 11 00 F1 71 DE 3C 18 59 4F 13 90 00 D1 [15:56:48]RAPDU: F1 71 DE 3C 18 59 4F 13 90 00 [15:56:48]wFMCommunicate OK [15:56:48]SAM_PROTO_SignData done [15:56:48]FM_MakeSignedData done [15:56:48]CreateOFDProtocolMessage [15:56:48]wFMCommunicate request_size=4 [15:56:48]MH_SAM_APDU [15:56:48]CAPDU: 80 11 00 00 [15:56:48]Write to MH i2c: E2 08 00 F6 11 80 11 00 00 00 00 00 00 81 [15:56:48]Write i2c OK [15:56:48]MH_I2C_Read... [15:56:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:48]Read from MH i2c: E2 [15:56:48]MH_I2C_Read... [15:56:48]Read from MH i2c: E2 17 00 [15:56:48]MH_I2C_Read... [15:56:48]Read from MH i2c: E2 17 00 F6 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D3 [15:56:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:56:48]wFMCommunicate OK [15:56:48]CreateOFDProtocolMessage done [15:56:48]OFDSenderStorePacket 69411 [15:56:48]StoreOFDPacket docnum=69411 [15:56:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 EF 9A 07 01 8F 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 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 3F 28 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 23 0F 01 00 35 04 06 00 B2 06 42 95 26 A8 F1 71 DE 3C 18 59 4F 13 [15:56:48]CheckFolder [15:56:48]dirname=/storage/ofd_packets [15:56:48]CheckFolder done [15:56:48]ProducePacketName [15:56:48]name=ofd_packets/00069411 [15:56:48]NVStorageSaveData ofd_packets/00069411 [15:56:48]File name is /storage/ofd_packets/00069411 [15:56:48]Write 301 bytes [15:56:48]NVStorageSaveData done [15:56:48]OFDSenderStorePacket done [15:56:48]KKMCreateOFDPacket done [15:56:48]NVStorageSaveData kkm_last_timestamp [15:56:48]File name is /storage/kkm_last_timestamp [15:56:48]Write 4 bytes [15:56:48]NVStorageSaveData done [15:56:48]ExternCall_PrintAddStr [15:56:48]wPrintStart [15:56:48]Write to MH i2c: 01 00 00 F7 11 08 [15:56:48]Write i2c OK [15:56:48]MH_I2C_Read... [15:56:48]Read from MH i2c: 01 [15:56:48]MH_I2C_Read... [15:56:48]Read from MH i2c: 01 07 00 [15:56:48]MH_I2C_Read... [15:56:48]Read from MH i2c: 01 07 00 F7 11 00 00 00 00 00 FF 0F 1D [15:56:48]RasterBufferAndPrint [15:56:48]line Счет N : (1)2885139 [15:56:48]line ИНН: 02508201610067 [15:56:48]line Контрольно-Кассовый Чек [15:56:48]line ПРОДАЖА [15:56:48]line ТРК (МРК, ГНК) : 12 [15:56:48]line Товар: 2710124130 [15:56:48]line Аи-92-К-5 [15:56:48]line 5.980 * 66.90 [15:56:48]line = 400.06 [15:56:48]line НДС 12% НСП 1% [15:56:48]line > о реализуемом товаре [15:56:48]line ОКРУГЛЕНИЕ: -0.06 [15:56:48]line ИТОГО: 400.00 [15:56:48]line Внесено: 400.00 [15:56:48]line СДАЧА: 0.00 [15:56:48]line НСП 1% : 3.54 [15:56:48]line НДС 12% : 42.48 [15:56:48]line Наличными: 400.00 [15:56:48]line Безнал.: 0.00 [15:56:48]line Место: АЗС № 85 "Партнер Нефть" [15:56:48]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:56:48]line СНО: Общий режим [15:56:48]line Чек 256 20.10.2024 15:56 [15:56:48]line Смена: 193 ФФД: 1.0 [15:56:48]line ЗНМ: 0300000167 [15:56:48]line РНМ: 0000000000156251 [15:56:48]line Версия ККМ: v1.0 [15:56:48]line ФМ: 0000000000963346 [15:56:48]line ФД: 69411 [15:56:48]line ФПД: 195739956618920 [15:56:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T155647&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69411&fm=195739956618920&tin=02508201610067®Number=0000000000156251&sum=40000 [15:56:49]OFD Sender: Processing packet 69411 [packets to send 18, broken 17] [15:56:49]ProducePacketName [15:56:49]name=ofd_packets/00069411 [15:56:49]OFD Sender: To server: pG, [15:56:49]CommunicateWithHost lk.salyk.kg:30040 [15:56:49]ConnectInit lk.salyk.kg [15:56:49]written 0, free lines is 4095 [15:56:49]Connected sock=8 [15:56:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 EF 9A 07 01 8F 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 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 3F 28 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 23 0F 01 00 35 04 06 00 B2 06 42 95 26 A8 F1 71 DE 3C 18 59 4F 13 [15:56:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 01 C6 47 00 78 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 23 0F 01 00 F4 03 04 00 E6 D1 14 67 B6 04 01 00 00 B5 EF 44 0D 53 5A FD 67 [15:56:49]CommunicateWithHost err = 0 [15:56:49]CheckOFDResponse [15:56:49]1017 (14) - 77093643461234 [15:56:49]1041 (16) - 0000000000963346 [15:56:49]1040 (4) - 69411 [15:56:49]1012 (4) - 20.10.2024 09:48 [15:56:49]1206 (1) - 0 [15:56:49]OFD Sender: Remove packet 69411 [15:56:49]ProducePacketName [15:56:49]name=ofd_packets/00069411 [15:56:49]NVStorageDeleteData [15:56:49]Write to MH i2c: 01 00 00 22 12 34 [15:56:49]Write i2c OK [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: 01 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: 01 07 00 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: 01 07 00 22 12 00 00 00 00 00 E4 0C 2B [15:56:49]RasterBufferAndPrint [15:56:49]line [15:56:49]line [15:56:49]line [15:56:49]line [15:56:49]line [15:56:49]written 0, free lines is 3306 [15:56:49]MH_Cut [15:56:49]Write to MH i2c: D1 01 00 29 12 01 0D [15:56:49]Write i2c OK [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: D1 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: D1 01 00 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: D1 01 00 29 12 00 0C [15:56:49]Write to MH i2c: 01 00 00 2A 12 3C [15:56:49]Write i2c OK [15:56:49]MH_I2C_Read... [15:56:49]OFD Sender: No OFD packet to send [15:56:50]*** Cut start [15:56:50]*** Partial cut [15:56:50]*** CUTSNS_PIN = 1 [15:56:50]*** CUTSNS_PIN = 0 [15:56:50]*** Brake cut motor [15:56:50]Read from MH i2c: 01 [15:56:50]MH_I2C_Read... [15:56:50]*** Stop cut motor [15:56:50]*** Cut end [15:56:50]Read from MH i2c: 01 07 00 [15:56:50]MH_I2C_Read... [15:56:50]Read from MH i2c: 01 07 00 2A 12 00 00 00 00 00 FF 0F 51 [15:56:50]process_action close_receipt done [15:56:50]requested_data is exist [15:56:50]produce_requested_data [15:56:50]requested_item fm.sn is exist - process it [15:56:50]wFMCommunicate request_size=4 [15:56:50]MH_SAM_APDU [15:56:50]CAPDU: 80 11 00 00 [15:56:50]Write to MH i2c: E2 08 00 2B 12 80 11 00 00 00 00 00 00 B7 [15:56:50]Write i2c OK [15:56:50]MH_I2C_Read... [15:56:50]Read from MH i2c: E2 [15:56:50]MH_I2C_Read... [15:56:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:50]Read from MH i2c: E2 17 00 [15:56:50]MH_I2C_Read... [15:56:50]Read from MH i2c: E2 17 00 2B 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 09 [15:56:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:56:50]wFMCommunicate OK [15:56:50]requested_item fd.num is exist - process it [15:56:50]SAM_PROTO_GetFieldsCounters [15:56:50]wFMCommunicate request_size=4 [15:56:50]MH_SAM_APDU [15:56:50]CAPDU: 80 13 00 00 [15:56:50]Write to MH i2c: E2 08 00 2C 12 80 13 00 00 00 00 00 00 BA [15:56:50]Write i2c OK [15:56:50]MH_I2C_Read... [15:56:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:51]Read from MH i2c: E2 [15:56:51]MH_I2C_Read... [15:56:51]Read from MH i2c: E2 62 00 [15:56:51]MH_I2C_Read... [15:56:51]Read from MH i2c: E2 62 00 2C 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 23 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 CC [15:56:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 23 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:56:51]wFMCommunicate OK [15:56:51]SAM_PROTO_GetFieldsCounters done [15:56:51]requested_item shift.num is exist - process it [15:56:51]requested_item shift.opened is exist - process it [15:56:51]req_shift_opened [15:56:51]FM_GetShiftState [15:56:51]SAM_PROTO_GetShiftState [15:56:51]wFMCommunicate request_size=4 [15:56:51]MH_SAM_APDU [15:56:51]CAPDU: 80 13 01 00 [15:56:51]Write to MH i2c: E2 08 00 2D 12 80 13 01 00 00 00 00 00 BC [15:56:51]Write i2c OK [15:56:51]MH_I2C_Read... [15:56:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:51]Read from MH i2c: E2 [15:56:51]MH_I2C_Read... [15:56:51]Read from MH i2c: E2 0E 00 [15:56:51]MH_I2C_Read... [15:56:51]Read from MH i2c: E2 0E 00 2D 12 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 C2 [15:56:51]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [15:56:51]wFMCommunicate OK [15:56:51]SAM_PROTO_GetShiftState done [15:56:51]FM_GetShiftState done [15:56:51]req_shift_opened done [15:56:51]requested_item shift.open_date is exist - process it [15:56:51]req_shift_open_date [15:56:51]req_shift_open_date done [15:56:51]produce_requested_data done [15:56:51]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69411,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [15:56:51]process_action_free close_receipt [15:56:51]json_value_free [15:56:51]json_value_free done [15:56:51]process_json_proto returns [15:56:51]Send response to host [15:56:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69411,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [15:56:51]free response buf [15:56:51]execute_script done [15:56:51]execute_script returns [15:56:51]free content buf [15:56:51]Sock 9.Close socket [15:56:51]Sock 9.Thread stoped [15:56:54]OFD Sender: No OFD packet to send [15:56:59]OFD Sender: No OFD packet to send [15:57:04]OFD Sender: No OFD packet to send [15:57:09]OFD Sender: No OFD packet to send [15:57:14]OFD Sender: No OFD packet to send [15:57:17]accept exits with 10 [15:57:17]New connection [15:57:17]New thread 3066711396 created [15:57:17]Thread 3066568036 joined [15:57:17]Waiting for new connection... [15:57:17] Sock 10.Parse request [15:57:17]Sock 10.Check first char [15:57:17]Sock 10.First char is OK [15:57:17]request: POST /json_proto HTTP/1.0 [15:57:17]Method: POST [15:57:17]URL: /json_proto [15:57:17]Method is POST - this is cgi request [15:57:17]url: /json_proto [15:57:17]query_string will be loaded in cgi processing [15:57:17]execute_cgi json_proto POST (null) [15:57:17]execute_cgi path=json_proto method=POST [15:57:17]POST find Content-Length [15:57:17]Host: 172.17.50.3:8080 [15:57:17]Content-Length: 755 [15:57:17]Content-Type: application/json [15:57:17] [15:57:17]POST finish read [15:57:17]Found Content-Length = 755 [15:57:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30086070", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:17]execute_script... [15:57:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30086070", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:17]POST & json_proto [15:57:17]process_json_proto [15:57:17]json parsed OK: [15:57:17]protocol is kg_v1.0 [15:57:17]action value=close_receipt [15:57:17]process_action close_receipt [15:57:17]cmd_close_receipt [15:57:17]MH_GetDate [15:57:17]Write to MH i2c: F0 00 00 2E 12 2F [15:57:17]Write i2c OK [15:57:17]MH_I2C_Read... [15:57:17]Read from MH i2c: F0 [15:57:17]MH_I2C_Read... [15:57:17]Read from MH i2c: F0 09 00 [15:57:17]MH_I2C_Read... [15:57:17]Read from MH i2c: F0 09 00 2E 12 00 5E 28 15 67 6B 98 1E 66 C1 [15:57:17]GetLastDocTimeStamp 1729439807 [15:57:17]current date 1729439838 [15:57:17]FM_GetShiftState [15:57:17]SAM_PROTO_GetShiftState [15:57:17]wFMCommunicate request_size=4 [15:57:17]MH_SAM_APDU [15:57:17]CAPDU: 80 13 01 00 [15:57:17]Write to MH i2c: E2 08 00 2F 12 80 13 01 00 00 00 00 00 BE [15:57:17]Write i2c OK [15:57:17]MH_I2C_Read... [15:57:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:17]Read from MH i2c: E2 [15:57:17]MH_I2C_Read... [15:57:17]Read from MH i2c: E2 0E 00 [15:57:17]MH_I2C_Read... [15:57:17]Read from MH i2c: E2 0E 00 2F 12 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 C4 [15:57:17]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [15:57:17]wFMCommunicate OK [15:57:17]SAM_PROTO_GetShiftState done [15:57:17]FM_GetShiftState done [15:57:17]opened in 1729383220 [15:57:17]opened+sec_in_day 1729469620 [15:57:17]quantity*price = 0 [15:57:17]sum+1 = 1 [15:57:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 257 20.10.2024 15:57 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30086070 ФМ: 0000000000963346 ФД: 69412 ФПД: 99235017748938 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T155718&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69412&fm=99235017748938&tin=02508201610067®Number=0000000000156251&sum=0 [15:57:18]StoreToDocumentArchive [15:57:18]shift 193 fd 69412 [15:57:18]save to /storage/0193/doc_00069412 [15:57:18]save last doc name /storage/0193/doc_00069412 to /storage/kkm_last_doc_name [15:57:18]save OK [15:57:18]Clear old archive folders... [15:57:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:57:18]tlvbuf is B6E863A0 [15:57:18]SAM_PROTO_ClearQueue [15:57:18]wFMCommunicate request_size=4 [15:57:18]MH_SAM_APDU [15:57:18]CAPDU: 80 09 00 00 [15:57:18]Write to MH i2c: E2 08 00 3C 12 80 09 00 00 00 00 00 00 C0 [15:57:18]Write i2c OK [15:57:18]MH_I2C_Read... [15:57:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:57:18]Read from MH i2c: E2 [15:57:18]MH_I2C_Read... [15:57:18]Read from MH i2c: E2 03 00 [15:57:18]MH_I2C_Read... [15:57:18]Read from MH i2c: E2 03 00 3C 12 00 90 00 C2 [15:57:18]RAPDU: 90 00 [15:57:18]wFMCommunicate OK [15:57:18]SAM_PROTO_ClearQueue done [15:57:18]KKMCreateOFDPacket [15:57:18]OFDProtocolAddRootSTLVToBuf [15:57:18]FM_MakeSignedData [15:57:18]FM_MakeSignedData [15:57:18]SAM_PROTO_SignData [15:57:18]wFMCommunicate request_size=4 [15:57:18]MH_SAM_APDU [15:57:18]CAPDU: 80 0D 01 02 [15:57:18]Write to MH i2c: E2 08 00 3D 12 80 0D 01 02 00 00 00 00 C8 [15:57:18]Write i2c OK [15:57:18]MH_I2C_Read... [15:57:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:57:18]Read from MH i2c: E2 [15:57:18]MH_I2C_Read... [15:57:18]Read from MH i2c: E2 03 00 [15:57:18]MH_I2C_Read... [15:57:18]Read from MH i2c: E2 03 00 3D 12 00 90 00 C3 [15:57:18]RAPDU: 90 00 [15:57:18]wFMCommunicate OK [15:57:18]wFMCommunicate request_size=255 [15:57:18]MH_SAM_APDU [15:57:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 5E 28 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 24 0F 01 00 35 04 06 00 5A [15:57:18]Write to MH i2c: E2 02 01 3E 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 5E 28 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 24 0F 01 00 35 04 06 00 5A 00 00 C4 [15:57:18]Write i2c OK [15:57:18]MH_I2C_Read... [15:57:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:18]Read from MH i2c: E2 [15:57:18]MH_I2C_Read... [15:57:18]Read from MH i2c: E2 03 00 [15:57:18]MH_I2C_Read... [15:57:18]Read from MH i2c: E2 03 00 3E 12 00 90 00 C4 [15:57:18]RAPDU: 90 00 [15:57:18]wFMCommunicate OK [15:57:18]wFMCommunicate request_size=10 [15:57:18]MH_SAM_APDU [15:57:18]CAPDU: 80 0D 02 02 05 40 F3 FB 71 CA [15:57:18]Write to MH i2c: E2 0D 00 3F 12 80 0D 02 02 05 00 40 F3 FB 71 CA 00 00 3E [15:57:18]Write i2c OK [15:57:18]MH_I2C_Read... [15:57:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:18]Read from MH i2c: E2 [15:57:18]MH_I2C_Read... [15:57:18]Read from MH i2c: E2 03 00 [15:57:18]MH_I2C_Read... [15:57:18]Read from MH i2c: E2 03 00 3F 12 00 90 00 C5 [15:57:18]RAPDU: 90 00 [15:57:18]wFMCommunicate OK [15:57:18]wFMCommunicate request_size=4 [15:57:18]MH_SAM_APDU [15:57:18]CAPDU: 80 0D 03 02 [15:57:18]Write to MH i2c: E2 08 00 40 12 80 0D 03 02 00 00 00 00 CD [15:57:18]Write i2c OK [15:57:18]MH_I2C_Read... [15:57:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:57:18]Read from MH i2c: E2 [15:57:18]MH_I2C_Read... [15:57:18]Read from MH i2c: E2 0B 00 [15:57:18]MH_I2C_Read... [15:57:18]Read from MH i2c: E2 0B 00 40 12 00 B0 3D 02 F0 72 54 8F FF 90 00 01 [15:57:18]RAPDU: B0 3D 02 F0 72 54 8F FF 90 00 [15:57:18]wFMCommunicate OK [15:57:18]SAM_PROTO_SignData done [15:57:18]FM_MakeSignedData done [15:57:18]CreateOFDProtocolMessage [15:57:18]wFMCommunicate request_size=4 [15:57:18]MH_SAM_APDU [15:57:18]CAPDU: 80 11 00 00 [15:57:18]Write to MH i2c: E2 08 00 41 12 80 11 00 00 00 00 00 00 CD [15:57:18]Write i2c OK [15:57:18]MH_I2C_Read... [15:57:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:19]Read from MH i2c: E2 [15:57:19]MH_I2C_Read... [15:57:19]Read from MH i2c: E2 17 00 [15:57:19]MH_I2C_Read... [15:57:19]Read from MH i2c: E2 17 00 41 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1F [15:57:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:57:19]wFMCommunicate OK [15:57:19]CreateOFDProtocolMessage done [15:57:19]OFDSenderStorePacket 69412 [15:57:19]StoreOFDPacket docnum=69412 [15:57:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 1B E9 07 01 2A C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 5E 28 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 24 0F 01 00 35 04 06 00 5A 40 F3 FB 71 CA B0 3D 02 F0 72 54 8F FF [15:57:19]CheckFolder [15:57:19]dirname=/storage/ofd_packets [15:57:19]CheckFolder done [15:57:19]ProducePacketName [15:57:19]name=ofd_packets/00069412 [15:57:19]NVStorageSaveData ofd_packets/00069412 [15:57:19]File name is /storage/ofd_packets/00069412 [15:57:19]Write 301 bytes [15:57:19]NVStorageSaveData done [15:57:19]OFDSenderStorePacket done [15:57:19]KKMCreateOFDPacket done [15:57:19]NVStorageSaveData kkm_last_timestamp [15:57:19]File name is /storage/kkm_last_timestamp [15:57:19]Write 4 bytes [15:57:19]NVStorageSaveData done [15:57:19]ExternCall_PrintAddStr [15:57:19]wPrintStart [15:57:19]Write to MH i2c: 01 00 00 42 12 54 [15:57:19]Write i2c OK [15:57:19]MH_I2C_Read... [15:57:19]Read from MH i2c: 01 [15:57:19]MH_I2C_Read... [15:57:19]Read from MH i2c: 01 07 00 [15:57:19]MH_I2C_Read... [15:57:19]Read from MH i2c: 01 07 00 42 12 00 00 00 00 00 FF 0F 69 [15:57:19]RasterBufferAndPrint [15:57:19]line Счет N : (1)2885138 [15:57:19]line ИНН: 02508201610067 [15:57:19]line Контрольно-Кассовый Чек [15:57:19]line ПРОДАЖА [15:57:19]line ТРК (МРК, ГНК) : 32 [15:57:19]line Товар: 2710124130 [15:57:19]line Аи-92-К-5 [15:57:19]line 30.000 * 0.00 [15:57:19]line = 0.00 [15:57:19]line НДС 12% НСП 1% [15:57:19]line > о реализуемом товаре [15:57:19]line ИТОГО: 0.00 [15:57:19]line НСП 1% : 0.00 [15:57:19]line НДС 12% : 0.00 [15:57:19]line Наличными: 0.00 [15:57:19]line Безнал.: 0.00 [15:57:19]line Место: АЗС № 85 "Партнер Нефть" [15:57:19]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:57:19]line СНО: Общий режим [15:57:19]line Чек 257 20.10.2024 15:57 [15:57:19]line Смена: 193 ФФД: 1.0 [15:57:19]line ЗНМ: 0300000167 [15:57:19]line РНМ: 0000000000156251 [15:57:19]line Версия ККМ: v1.0 [15:57:19]line Талоны: ТК ГПНА Online [15:57:19]line 30086070 [15:57:19]line ФМ: 0000000000963346 [15:57:19]line ФД: 69412 [15:57:19]line ФПД: 99235017748938 [15:57:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T155718&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69412&fm=99235017748938&tin=02508201610067®Number=0000000000156251&sum=0 [15:57:19]OFD Sender: Processing packet 69412 [packets to send 18, broken 17] [15:57:19]ProducePacketName [15:57:19]name=ofd_packets/00069412 [15:57:19]OFD Sender: To server: pG, [15:57:19]CommunicateWithHost lk.salyk.kg:30040 [15:57:19]ConnectInit lk.salyk.kg [15:57:19]written 0, free lines is 4095 [15:57:19]Connected sock=9 [15:57:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 1B E9 07 01 2A C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 5E 28 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 24 0F 01 00 35 04 06 00 5A 40 F3 FB 71 CA B0 3D 02 F0 72 54 8F FF [15:57:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 1E 64 47 00 56 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 24 0F 01 00 F4 03 04 00 04 D2 14 67 B6 04 01 00 00 D0 9A FB 16 7C 56 51 7A [15:57:19]CommunicateWithHost err = 0 [15:57:19]CheckOFDResponse [15:57:19]1017 (14) - 77093643461234 [15:57:19]1041 (16) - 0000000000963346 [15:57:19]1040 (4) - 69412 [15:57:19]1012 (4) - 20.10.2024 09:48 [15:57:19]1206 (1) - 0 [15:57:19]OFD Sender: Remove packet 69412 [15:57:19]ProducePacketName [15:57:19]name=ofd_packets/00069412 [15:57:19]NVStorageDeleteData [15:57:19]Write to MH i2c: 01 00 00 6C 12 7E [15:57:19]Write i2c OK [15:57:19]MH_I2C_Read... [15:57:19]Read from MH i2c: 01 [15:57:19]MH_I2C_Read... [15:57:19]Read from MH i2c: 01 07 00 [15:57:19]MH_I2C_Read... [15:57:19]Read from MH i2c: 01 07 00 6C 12 00 00 00 00 00 F6 0C 87 [15:57:19]RasterBufferAndPrint [15:57:19]line [15:57:19]line [15:57:19]line [15:57:19]line [15:57:19]line [15:57:19]written 0, free lines is 3324 [15:57:19]MH_Cut [15:57:19]Write to MH i2c: D1 01 00 73 12 01 57 [15:57:19]Write i2c OK [15:57:19]MH_I2C_Read... [15:57:19]Read from MH i2c: D1 [15:57:19]MH_I2C_Read... [15:57:19]Read from MH i2c: D1 01 00 [15:57:19]MH_I2C_Read... [15:57:19]Read from MH i2c: D1 01 00 73 12 00 56 [15:57:19]Write to MH i2c: 01 00 00 74 12 86 [15:57:19]Write i2c OK [15:57:19]MH_I2C_Read... [15:57:20]OFD Sender: No OFD packet to send [15:57:20]*** Cut start [15:57:20]*** Partial cut [15:57:20]*** CUTSNS_PIN = 1 [15:57:20]*** CUTSNS_PIN = 0 [15:57:20]*** Brake cut motor [15:57:21]Read from MH i2c: 01 [15:57:21]MH_I2C_Read... [15:57:21]*** Stop cut motor [15:57:21]*** Cut end [15:57:21]Read from MH i2c: 01 07 00 [15:57:21]MH_I2C_Read... [15:57:21]Read from MH i2c: 01 07 00 74 12 00 00 00 00 00 FF 0F 9B [15:57:21]process_action close_receipt done [15:57:21]requested_data is exist [15:57:21]produce_requested_data [15:57:21]requested_item fm.sn is exist - process it [15:57:21]wFMCommunicate request_size=4 [15:57:21]MH_SAM_APDU [15:57:21]CAPDU: 80 11 00 00 [15:57:21]Write to MH i2c: E2 08 00 75 12 80 11 00 00 00 00 00 00 01 [15:57:21]Write i2c OK [15:57:21]MH_I2C_Read... [15:57:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:21]Read from MH i2c: E2 [15:57:21]MH_I2C_Read... [15:57:21]Read from MH i2c: E2 17 00 [15:57:21]MH_I2C_Read... [15:57:21]Read from MH i2c: E2 17 00 75 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 53 [15:57:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:57:21]wFMCommunicate OK [15:57:21]requested_item fd.num is exist - process it [15:57:21]SAM_PROTO_GetFieldsCounters [15:57:21]wFMCommunicate request_size=4 [15:57:21]MH_SAM_APDU [15:57:21]CAPDU: 80 13 00 00 [15:57:21]Write to MH i2c: E2 08 00 76 12 80 13 00 00 00 00 00 00 04 [15:57:21]Write i2c OK [15:57:21]MH_I2C_Read... [15:57:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:57:21]Read from MH i2c: E2 [15:57:21]MH_I2C_Read... [15:57:21]Read from MH i2c: E2 62 00 [15:57:21]MH_I2C_Read... [15:57:21]Read from MH i2c: E2 62 00 76 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 24 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 1A [15:57:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 24 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:57:21]wFMCommunicate OK [15:57:21]SAM_PROTO_GetFieldsCounters done [15:57:21]requested_item shift.num is exist - process it [15:57:21]requested_item shift.opened is exist - process it [15:57:21]req_shift_opened [15:57:21]FM_GetShiftState [15:57:21]SAM_PROTO_GetShiftState [15:57:21]wFMCommunicate request_size=4 [15:57:21]MH_SAM_APDU [15:57:21]CAPDU: 80 13 01 00 [15:57:21]Write to MH i2c: E2 08 00 77 12 80 13 01 00 00 00 00 00 06 [15:57:21]Write i2c OK [15:57:21]MH_I2C_Read... [15:57:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:21]Read from MH i2c: E2 [15:57:21]MH_I2C_Read... [15:57:21]Read from MH i2c: E2 0E 00 [15:57:21]MH_I2C_Read... [15:57:21]Read from MH i2c: E2 0E 00 77 12 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 0C [15:57:21]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [15:57:21]wFMCommunicate OK [15:57:21]SAM_PROTO_GetShiftState done [15:57:21]FM_GetShiftState done [15:57:21]req_shift_opened done [15:57:21]requested_item shift.open_date is exist - process it [15:57:21]req_shift_open_date [15:57:21]req_shift_open_date done [15:57:21]produce_requested_data done [15:57:21]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69412,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [15:57:21]process_action_free close_receipt [15:57:21]json_value_free [15:57:21]json_value_free done [15:57:21]process_json_proto returns [15:57:21]Send response to host [15:57:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69412,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [15:57:21]free response buf [15:57:21]execute_script done [15:57:21]execute_script returns [15:57:21]free content buf [15:57:21]Sock 10.Close socket [15:57:21]Sock 10.Thread stoped [15:57:25]OFD Sender: No OFD packet to send [15:57:30]OFD Sender: No OFD packet to send [15:57:35]OFD Sender: No OFD packet to send [15:57:40]OFD Sender: No OFD packet to send [15:57:45]OFD Sender: No OFD packet to send [15:57:50]OFD Sender: No OFD packet to send [15:57:55]OFD Sender: No OFD packet to send [15:58:00]OFD Sender: No OFD packet to send [15:58:05]OFD Sender: No OFD packet to send [15:58:10]OFD Sender: No OFD packet to send [15:58:15]OFD Sender: No OFD packet to send [15:58:20]OFD Sender: No OFD packet to send [15:58:25]OFD Sender: No OFD packet to send [15:58:30]OFD Sender: No OFD packet to send [15:58:35]OFD Sender: No OFD packet to send [15:58:40]OFD Sender: No OFD packet to send [15:58:45]OFD Sender: No OFD packet to send [15:58:50]OFD Sender: No OFD packet to send [15:58:55]OFD Sender: No OFD packet to send [15:59:00]OFD Sender: No OFD packet to send [15:59:05]OFD Sender: No OFD packet to send [15:59:10]OFD Sender: No OFD packet to send [15:59:15]OFD Sender: No OFD packet to send [15:59:20]OFD Sender: No OFD packet to send [15:59:25]OFD Sender: No OFD packet to send [15:59:25]accept exits with 8 [15:59:25]New connection [15:59:25]New thread 3066568036 created [15:59:25]Thread 3066711396 joined [15:59:25]Waiting for new connection... [15:59:25] Sock 8.Parse request [15:59:25]Sock 8.Check first char [15:59:25]Sock 8.First char is OK [15:59:25]request: POST /json_proto HTTP/1.0 [15:59:25]Method: POST [15:59:25]URL: /json_proto [15:59:25]Method is POST - this is cgi request [15:59:25]url: /json_proto [15:59:25]query_string will be loaded in cgi processing [15:59:25]execute_cgi json_proto POST (null) [15:59:25]execute_cgi path=json_proto method=POST [15:59:25]POST find Content-Length [15:59:25]Host: 172.17.50.3:8080 [15:59:25]Content-Length: 680 [15:59:25]Content-Type: application/json [15:59:25] [15:59:25]POST finish read [15:59:25]Found Content-Length = 680 [15:59:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 23.630, "sum" : 1800.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:25]execute_script... [15:59:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 23.630, "sum" : 1800.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:25]POST & json_proto [15:59:25]process_json_proto [15:59:25]json parsed OK: [15:59:25]protocol is kg_v1.0 [15:59:25]action value=close_receipt [15:59:25]process_action close_receipt [15:59:25]cmd_close_receipt [15:59:25]MH_GetDate [15:59:25]Write to MH i2c: F0 00 00 78 12 79 [15:59:25]Write i2c OK [15:59:25]MH_I2C_Read... [15:59:25]Read from MH i2c: F0 [15:59:25]MH_I2C_Read... [15:59:25]Read from MH i2c: F0 09 00 [15:59:25]MH_I2C_Read... [15:59:25]Read from MH i2c: F0 09 00 78 12 00 DE 28 15 67 6B 98 1E 66 8B [15:59:25]GetLastDocTimeStamp 1729439838 [15:59:25]current date 1729439966 [15:59:25]FM_GetShiftState [15:59:25]SAM_PROTO_GetShiftState [15:59:25]wFMCommunicate request_size=4 [15:59:25]MH_SAM_APDU [15:59:25]CAPDU: 80 13 01 00 [15:59:25]Write to MH i2c: E2 08 00 79 12 80 13 01 00 00 00 00 00 08 [15:59:25]Write i2c OK [15:59:25]MH_I2C_Read... [15:59:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:25]Read from MH i2c: E2 [15:59:25]MH_I2C_Read... [15:59:25]Read from MH i2c: E2 0E 00 [15:59:25]MH_I2C_Read... [15:59:25]Read from MH i2c: E2 0E 00 79 12 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 0E [15:59:25]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [15:59:25]wFMCommunicate OK [15:59:25]SAM_PROTO_GetShiftState done [15:59:25]FM_GetShiftState done [15:59:25]opened in 1729383220 [15:59:25]opened+sec_in_day 1729469620 [15:59:25]quantity*price = 180060 [15:59:25]sum+1 = 180062 [15:59:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1800.00 Внесено: 1800.00 СДАЧА: 0.00 НСП 1% : 15.93 НДС 12% : 191.21 Наличными: 1800.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 258 20.10.2024 15:59 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69413 ФПД: 260940462796180 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T155926&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69413&fm=260940462796180&tin=02508201610067®Number=0000000000156251&sum=180000 [15:59:26]StoreToDocumentArchive [15:59:26]shift 193 fd 69413 [15:59:26]save to /storage/0193/doc_00069413 [15:59:26]save last doc name /storage/0193/doc_00069413 to /storage/kkm_last_doc_name [15:59:26]save OK [15:59:26]Clear old archive folders... [15:59:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:59:26]tlvbuf is 00245670 [15:59:26]SAM_PROTO_ClearQueue [15:59:26]wFMCommunicate request_size=4 [15:59:26]MH_SAM_APDU [15:59:26]CAPDU: 80 09 00 00 [15:59:26]Write to MH i2c: E2 08 00 86 12 80 09 00 00 00 00 00 00 0A [15:59:26]Write i2c OK [15:59:26]MH_I2C_Read... [15:59:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:59:26]Read from MH i2c: E2 [15:59:26]MH_I2C_Read... [15:59:26]Read from MH i2c: E2 03 00 [15:59:26]MH_I2C_Read... [15:59:26]Read from MH i2c: E2 03 00 86 12 00 90 00 0C [15:59:26]RAPDU: 90 00 [15:59:26]wFMCommunicate OK [15:59:26]SAM_PROTO_ClearQueue done [15:59:26]KKMCreateOFDPacket [15:59:26]OFDProtocolAddRootSTLVToBuf [15:59:26]FM_MakeSignedData [15:59:26]FM_MakeSignedData [15:59:26]SAM_PROTO_SignData [15:59:26]wFMCommunicate request_size=4 [15:59:26]MH_SAM_APDU [15:59:26]CAPDU: 80 0D 01 02 [15:59:26]Write to MH i2c: E2 08 00 87 12 80 0D 01 02 00 00 00 00 12 [15:59:26]Write i2c OK [15:59:26]MH_I2C_Read... [15:59:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:59:26]Read from MH i2c: E2 [15:59:26]MH_I2C_Read... [15:59:26]Read from MH i2c: E2 03 00 [15:59:26]MH_I2C_Read... [15:59:26]Read from MH i2c: E2 03 00 87 12 00 90 00 0D [15:59:26]RAPDU: 90 00 [15:59:26]wFMCommunicate OK [15:59:26]wFMCommunicate request_size=255 [15:59:26]MH_SAM_APDU [15:59:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 DE 28 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 25 0F 01 00 35 04 06 00 ED 52 EF 97 [15:59:26]Write to MH i2c: E2 02 01 88 12 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 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 DE 28 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 25 0F 01 00 35 04 06 00 ED 52 EF 97 00 00 4E [15:59:26]Write i2c OK [15:59:26]MH_I2C_Read... [15:59:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:26]Read from MH i2c: E2 [15:59:26]MH_I2C_Read... [15:59:26]Read from MH i2c: E2 03 00 [15:59:26]MH_I2C_Read... [15:59:26]Read from MH i2c: E2 03 00 88 12 00 90 00 0E [15:59:26]RAPDU: 90 00 [15:59:26]wFMCommunicate OK [15:59:26]wFMCommunicate request_size=7 [15:59:26]MH_SAM_APDU [15:59:26]CAPDU: 80 0D 02 02 02 AD 94 [15:59:26]Write to MH i2c: E2 0A 00 89 12 80 0D 02 02 02 00 AD 94 00 00 5A [15:59:26]Write i2c OK [15:59:26]MH_I2C_Read... [15:59:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:27]Read from MH i2c: E2 [15:59:27]MH_I2C_Read... [15:59:27]Read from MH i2c: E2 03 00 [15:59:27]MH_I2C_Read... [15:59:27]Read from MH i2c: E2 03 00 89 12 00 90 00 0F [15:59:27]RAPDU: 90 00 [15:59:27]wFMCommunicate OK [15:59:27]wFMCommunicate request_size=4 [15:59:27]MH_SAM_APDU [15:59:27]CAPDU: 80 0D 03 02 [15:59:27]Write to MH i2c: E2 08 00 8A 12 80 0D 03 02 00 00 00 00 17 [15:59:27]Write i2c OK [15:59:27]MH_I2C_Read... [15:59:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:59:27]Read from MH i2c: E2 [15:59:27]MH_I2C_Read... [15:59:27]Read from MH i2c: E2 0B 00 [15:59:27]MH_I2C_Read... [15:59:27]Read from MH i2c: E2 0B 00 8A 12 00 87 9F FD 85 9E 41 46 39 90 00 1E [15:59:27]RAPDU: 87 9F FD 85 9E 41 46 39 90 00 [15:59:27]wFMCommunicate OK [15:59:27]SAM_PROTO_SignData done [15:59:27]FM_MakeSignedData done [15:59:27]CreateOFDProtocolMessage [15:59:27]wFMCommunicate request_size=4 [15:59:27]MH_SAM_APDU [15:59:27]CAPDU: 80 11 00 00 [15:59:27]Write to MH i2c: E2 08 00 8B 12 80 11 00 00 00 00 00 00 17 [15:59:27]Write i2c OK [15:59:27]MH_I2C_Read... [15:59:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:27]Read from MH i2c: E2 [15:59:27]MH_I2C_Read... [15:59:27]Read from MH i2c: E2 17 00 [15:59:27]MH_I2C_Read... [15:59:27]Read from MH i2c: E2 17 00 8B 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 69 [15:59:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:59:27]wFMCommunicate OK [15:59:27]CreateOFDProtocolMessage done [15:59:27]OFDSenderStorePacket 69413 [15:59:27]StoreOFDPacket docnum=69413 [15:59:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 B1 B9 04 01 07 A0 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 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 DE 28 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 25 0F 01 00 35 04 06 00 ED 52 EF 97 AD 94 87 9F FD 85 9E 41 46 39 [15:59:27]CheckFolder [15:59:27]dirname=/storage/ofd_packets [15:59:27]CheckFolder done [15:59:27]ProducePacketName [15:59:27]name=ofd_packets/00069413 [15:59:27]NVStorageSaveData ofd_packets/00069413 [15:59:27]File name is /storage/ofd_packets/00069413 [15:59:27]Write 298 bytes [15:59:27]NVStorageSaveData done [15:59:27]OFDSenderStorePacket done [15:59:27]KKMCreateOFDPacket done [15:59:27]NVStorageSaveData kkm_last_timestamp [15:59:27]File name is /storage/kkm_last_timestamp [15:59:27]Write 4 bytes [15:59:27]NVStorageSaveData done [15:59:27]ExternCall_PrintAddStr [15:59:27]wPrintStart [15:59:27]Write to MH i2c: 01 00 00 8C 12 9E [15:59:27]Write i2c OK [15:59:27]MH_I2C_Read... [15:59:27]Read from MH i2c: 01 [15:59:27]MH_I2C_Read... [15:59:27]Read from MH i2c: 01 07 00 [15:59:27]MH_I2C_Read... [15:59:27]Read from MH i2c: 01 07 00 8C 12 00 00 00 00 00 FF 0F B3 [15:59:27]RasterBufferAndPrint [15:59:27]line Счет N : (1)2885140 [15:59:27]line ИНН: 02508201610067 [15:59:27]line Контрольно-Кассовый Чек [15:59:27]line ПРОДАЖА [15:59:27]line ТРК (МРК, ГНК) : 61 [15:59:27]line Товар: 2710194210 [15:59:27]line ДТ-К-5 [15:59:27]line 23.630 * 76.20 [15:59:27]line = 1800.61 [15:59:27]line НДС 12% НСП 1% [15:59:27]line > о реализуемом товаре [15:59:27]line ОКРУГЛЕНИЕ: -0.61 [15:59:27]line ИТОГО: 1800.00 [15:59:27]line Внесено: 1800.00 [15:59:27]line СДАЧА: 0.00 [15:59:27]line НСП 1% : 15.93 [15:59:27]line НДС 12% : 191.21 [15:59:27]line Наличными: 1800.00 [15:59:27]line Безнал.: 0.00 [15:59:27]line Место: АЗС № 85 "Партнер Нефть" [15:59:27]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [15:59:27]line СНО: Общий режим [15:59:27]line Чек 258 20.10.2024 15:59 [15:59:27]line Смена: 193 ФФД: 1.0 [15:59:27]line ЗНМ: 0300000167 [15:59:27]line РНМ: 0000000000156251 [15:59:27]line Версия ККМ: v1.0 [15:59:27]line ФМ: 0000000000963346 [15:59:27]line ФД: 69413 [15:59:27]line ФПД: 260940462796180 [15:59:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T155926&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69413&fm=260940462796180&tin=02508201610067®Number=0000000000156251&sum=180000 [15:59:27]OFD Sender: Processing packet 69413 [packets to send 18, broken 17] [15:59:27]ProducePacketName [15:59:27]name=ofd_packets/00069413 [15:59:27]OFD Sender: To server: pG, [15:59:27]CommunicateWithHost lk.salyk.kg:30040 [15:59:27]ConnectInit lk.salyk.kg [15:59:27]written 0, free lines is 4095 [15:59:27]Connected sock=9 [15:59:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 B1 B9 04 01 07 A0 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 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 DE 28 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 25 0F 01 00 35 04 06 00 ED 52 EF 97 AD 94 87 9F FD 85 9E 41 46 39 [15:59:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 3E 63 47 00 67 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 25 0F 01 00 F4 03 04 00 84 D2 14 67 B6 04 01 00 00 38 27 8A 84 F5 28 29 86 [15:59:27]CommunicateWithHost err = 0 [15:59:27]CheckOFDResponse [15:59:27]1017 (14) - 77093643461234 [15:59:27]1041 (16) - 0000000000963346 [15:59:27]1040 (4) - 69413 [15:59:27]1012 (4) - 20.10.2024 09:51 [15:59:27]1206 (1) - 0 [15:59:27]OFD Sender: Remove packet 69413 [15:59:27]ProducePacketName [15:59:27]name=ofd_packets/00069413 [15:59:27]NVStorageDeleteData [15:59:27]Write to MH i2c: 01 00 00 B7 12 C9 [15:59:27]Write i2c OK [15:59:27]MH_I2C_Read... [15:59:27]Read from MH i2c: 01 [15:59:27]MH_I2C_Read... [15:59:27]Read from MH i2c: 01 07 00 [15:59:27]MH_I2C_Read... [15:59:27]Read from MH i2c: 01 07 00 B7 12 00 00 00 00 00 E6 0C C2 [15:59:27]RasterBufferAndPrint [15:59:27]line [15:59:27]line [15:59:27]line [15:59:27]line [15:59:27]line [15:59:27]written 0, free lines is 3308 [15:59:27]MH_Cut [15:59:27]Write to MH i2c: D1 01 00 BE 12 01 A2 [15:59:27]Write i2c OK [15:59:27]MH_I2C_Read... [15:59:27]Read from MH i2c: D1 [15:59:27]MH_I2C_Read... [15:59:27]Read from MH i2c: D1 01 00 [15:59:27]MH_I2C_Read... [15:59:27]Read from MH i2c: D1 01 00 BE 12 00 A1 [15:59:27]Write to MH i2c: 01 00 00 BF 12 D1 [15:59:27]Write i2c OK [15:59:27]MH_I2C_Read... [15:59:28]OFD Sender: No OFD packet to send [15:59:28]*** Cut start [15:59:28]*** Partial cut [15:59:28]*** CUTSNS_PIN = 1 [15:59:28]*** CUTSNS_PIN = 0 [15:59:28]*** Brake cut motor [15:59:29]Read from MH i2c: 01 [15:59:29]MH_I2C_Read... [15:59:29]*** Stop cut motor [15:59:29]*** Cut end [15:59:29]Read from MH i2c: 01 07 00 [15:59:29]MH_I2C_Read... [15:59:29]Read from MH i2c: 01 07 00 BF 12 00 00 00 00 00 FF 0F E6 [15:59:29]process_action close_receipt done [15:59:29]requested_data is exist [15:59:29]produce_requested_data [15:59:29]requested_item fm.sn is exist - process it [15:59:29]wFMCommunicate request_size=4 [15:59:29]MH_SAM_APDU [15:59:29]CAPDU: 80 11 00 00 [15:59:29]Write to MH i2c: E2 08 00 C0 12 80 11 00 00 00 00 00 00 4C [15:59:29]Write i2c OK [15:59:29]MH_I2C_Read... [15:59:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:29]Read from MH i2c: E2 [15:59:29]MH_I2C_Read... [15:59:29]Read from MH i2c: E2 17 00 [15:59:29]MH_I2C_Read... [15:59:29]Read from MH i2c: E2 17 00 C0 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9E [15:59:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [15:59:29]wFMCommunicate OK [15:59:29]requested_item fd.num is exist - process it [15:59:29]SAM_PROTO_GetFieldsCounters [15:59:29]wFMCommunicate request_size=4 [15:59:29]MH_SAM_APDU [15:59:29]CAPDU: 80 13 00 00 [15:59:29]Write to MH i2c: E2 08 00 C1 12 80 13 00 00 00 00 00 00 4F [15:59:29]Write i2c OK [15:59:29]MH_I2C_Read... [15:59:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:29]Read from MH i2c: E2 [15:59:29]MH_I2C_Read... [15:59:29]Read from MH i2c: E2 62 00 [15:59:29]MH_I2C_Read... [15:59:29]Read from MH i2c: E2 62 00 C1 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 25 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 69 [15:59:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 25 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:59:29]wFMCommunicate OK [15:59:29]SAM_PROTO_GetFieldsCounters done [15:59:29]requested_item shift.num is exist - process it [15:59:29]requested_item shift.opened is exist - process it [15:59:29]req_shift_opened [15:59:29]FM_GetShiftState [15:59:29]SAM_PROTO_GetShiftState [15:59:29]wFMCommunicate request_size=4 [15:59:29]MH_SAM_APDU [15:59:29]CAPDU: 80 13 01 00 [15:59:29]Write to MH i2c: E2 08 00 C2 12 80 13 01 00 00 00 00 00 51 [15:59:29]Write i2c OK [15:59:29]MH_I2C_Read... [15:59:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:29]Read from MH i2c: E2 [15:59:29]MH_I2C_Read... [15:59:29]Read from MH i2c: E2 0E 00 [15:59:29]MH_I2C_Read... [15:59:29]Read from MH i2c: E2 0E 00 C2 12 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 57 [15:59:29]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [15:59:29]wFMCommunicate OK [15:59:29]SAM_PROTO_GetShiftState done [15:59:29]FM_GetShiftState done [15:59:29]req_shift_opened done [15:59:29]requested_item shift.open_date is exist - process it [15:59:29]req_shift_open_date [15:59:29]req_shift_open_date done [15:59:29]produce_requested_data done [15:59:29]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69413,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [15:59:29]process_action_free close_receipt [15:59:29]json_value_free [15:59:29]json_value_free done [15:59:29]process_json_proto returns [15:59:29]Send response to host [15:59:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69413,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [15:59:29]free response buf [15:59:29]execute_script done [15:59:29]execute_script returns [15:59:29]free content buf [15:59:29]Sock 8.Close socket [15:59:29]Sock 8.Thread stoped [15:59:33]OFD Sender: No OFD packet to send [15:59:38]OFD Sender: No OFD packet to send [15:59:43]OFD Sender: No OFD packet to send [15:59:48]OFD Sender: No OFD packet to send [15:59:53]OFD Sender: No OFD packet to send [15:59:58]OFD Sender: No OFD packet to send [16:00:03]OFD Sender: No OFD packet to send [16:00:08]OFD Sender: No OFD packet to send [16:00:13]OFD Sender: No OFD packet to send [16:00:18]OFD Sender: No OFD packet to send [16:00:23]OFD Sender: No OFD packet to send [16:00:28]OFD Sender: No OFD packet to send [16:00:33]OFD Sender: No OFD packet to send [16:00:38]OFD Sender: No OFD packet to send [16:00:43]OFD Sender: No OFD packet to send [16:00:48]OFD Sender: No OFD packet to send [16:00:53]OFD Sender: No OFD packet to send [16:00:58]OFD Sender: No OFD packet to send [16:01:03]OFD Sender: No OFD packet to send [16:01:08]OFD Sender: No OFD packet to send [16:01:13]OFD Sender: No OFD packet to send [16:01:18]OFD Sender: No OFD packet to send [16:01:23]OFD Sender: No OFD packet to send [16:01:28]OFD Sender: No OFD packet to send [16:01:33]OFD Sender: No OFD packet to send [16:01:38]OFD Sender: No OFD packet to send [16:01:43]OFD Sender: No OFD packet to send [16:01:48]OFD Sender: No OFD packet to send [16:01:53]OFD Sender: No OFD packet to send [16:01:58]OFD Sender: No OFD packet to send [16:02:03]OFD Sender: No OFD packet to send [16:02:08]OFD Sender: No OFD packet to send [16:02:13]OFD Sender: No OFD packet to send [16:02:18]OFD Sender: No OFD packet to send [16:02:23]OFD Sender: No OFD packet to send [16:02:28]OFD Sender: No OFD packet to send [16:02:33]OFD Sender: No OFD packet to send [16:02:38]OFD Sender: No OFD packet to send [16:02:43]OFD Sender: No OFD packet to send [16:02:48]OFD Sender: No OFD packet to send [16:02:53]OFD Sender: No OFD packet to send [16:02:58]OFD Sender: No OFD packet to send [16:03:03]OFD Sender: No OFD packet to send [16:03:08]OFD Sender: No OFD packet to send [16:03:13]OFD Sender: No OFD packet to send [16:03:18]OFD Sender: No OFD packet to send [16:03:23]OFD Sender: No OFD packet to send [16:03:28]OFD Sender: No OFD packet to send [16:03:33]OFD Sender: No OFD packet to send [16:03:38]OFD Sender: No OFD packet to send [16:03:43]OFD Sender: No OFD packet to send [16:03:48]OFD Sender: No OFD packet to send [16:03:53]OFD Sender: No OFD packet to send [16:03:58]OFD Sender: No OFD packet to send [16:04:03]OFD Sender: No OFD packet to send [16:04:08]OFD Sender: No OFD packet to send [16:04:13]OFD Sender: No OFD packet to send [16:04:18]OFD Sender: No OFD packet to send [16:04:23]OFD Sender: No OFD packet to send [16:04:28]OFD Sender: No OFD packet to send [16:04:33]OFD Sender: No OFD packet to send [16:04:38]OFD Sender: No OFD packet to send [16:04:43]OFD Sender: No OFD packet to send [16:04:48]OFD Sender: No OFD packet to send [16:04:53]OFD Sender: No OFD packet to send [16:04:58]OFD Sender: No OFD packet to send [16:05:03]OFD Sender: No OFD packet to send [16:05:08]OFD Sender: No OFD packet to send [16:05:13]OFD Sender: No OFD packet to send [16:05:18]OFD Sender: No OFD packet to send [16:05:23]OFD Sender: No OFD packet to send [16:05:28]OFD Sender: No OFD packet to send [16:05:33]OFD Sender: No OFD packet to send [16:05:38]OFD Sender: No OFD packet to send [16:05:43]OFD Sender: No OFD packet to send [16:05:48]OFD Sender: No OFD packet to send [16:05:53]OFD Sender: No OFD packet to send [16:05:58]OFD Sender: No OFD packet to send [16:06:03]OFD Sender: No OFD packet to send [16:06:08]OFD Sender: No OFD packet to send [16:06:13]OFD Sender: No OFD packet to send [16:06:18]OFD Sender: No OFD packet to send [16:06:23]OFD Sender: No OFD packet to send [16:06:28]OFD Sender: No OFD packet to send [16:06:33]OFD Sender: No OFD packet to send [16:06:38]OFD Sender: No OFD packet to send [16:06:43]OFD Sender: No OFD packet to send [16:06:48]OFD Sender: No OFD packet to send [16:06:53]OFD Sender: No OFD packet to send [16:06:58]OFD Sender: No OFD packet to send [16:07:03]OFD Sender: No OFD packet to send [16:07:08]OFD Sender: No OFD packet to send [16:07:13]OFD Sender: No OFD packet to send [16:07:18]OFD Sender: No OFD packet to send [16:07:23]OFD Sender: No OFD packet to send [16:07:28]OFD Sender: No OFD packet to send [16:07:33]OFD Sender: No OFD packet to send [16:07:38]OFD Sender: No OFD packet to send [16:07:43]OFD Sender: No OFD packet to send [16:07:48]OFD Sender: No OFD packet to send [16:07:53]OFD Sender: No OFD packet to send [16:07:58]OFD Sender: No OFD packet to send [16:08:03]OFD Sender: No OFD packet to send [16:08:08]OFD Sender: No OFD packet to send [16:08:13]OFD Sender: No OFD packet to send [16:08:18]OFD Sender: No OFD packet to send [16:08:23]OFD Sender: No OFD packet to send [16:08:28]OFD Sender: No OFD packet to send [16:08:33]OFD Sender: No OFD packet to send [16:08:38]OFD Sender: No OFD packet to send [16:08:43]OFD Sender: No OFD packet to send [16:08:48]OFD Sender: No OFD packet to send [16:08:53]OFD Sender: No OFD packet to send [16:08:54]accept exits with 10 [16:08:54]New connection [16:08:54]New thread 3066711396 created [16:08:54]Thread 3066568036 joined [16:08:54]Waiting for new connection... [16:08:54] Sock 10.Parse request [16:08:54]Sock 10.Check first char [16:08:54]Sock 10.First char is OK [16:08:54]request: POST /json_proto HTTP/1.0 [16:08:54]Method: POST [16:08:54]URL: /json_proto [16:08:54]Method is POST - this is cgi request [16:08:54]url: /json_proto [16:08:54]query_string will be loaded in cgi processing [16:08:54]execute_cgi json_proto POST (null) [16:08:54]execute_cgi path=json_proto method=POST [16:08:54]POST find Content-Length [16:08:54]Host: 172.17.50.3:8080 [16:08:54]Content-Length: 683 [16:08:54]Content-Type: application/json [16:08:54] [16:08:54]POST finish read [16:08:54]Found Content-Length = 683 [16:08:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:54]execute_script... [16:08: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)2885141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:54]POST & json_proto [16:08:54]process_json_proto [16:08:54]json parsed OK: [16:08:54]protocol is kg_v1.0 [16:08:54]action value=close_receipt [16:08:54]process_action close_receipt [16:08:54]cmd_close_receipt [16:08:54]MH_GetDate [16:08:54]Write to MH i2c: F0 00 00 C3 12 C4 [16:08:54]Write i2c OK [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: F0 [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: F0 09 00 [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: F0 09 00 C3 12 00 17 2B 15 67 6B 98 1E 66 12 [16:08:54]GetLastDocTimeStamp 1729439966 [16:08:54]current date 1729440535 [16:08:54]FM_GetShiftState [16:08:54]SAM_PROTO_GetShiftState [16:08:54]wFMCommunicate request_size=4 [16:08:54]MH_SAM_APDU [16:08:54]CAPDU: 80 13 01 00 [16:08:54]Write to MH i2c: E2 08 00 C4 12 80 13 01 00 00 00 00 00 53 [16:08:54]Write i2c OK [16:08:54]MH_I2C_Read... [16:08:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:54]Read from MH i2c: E2 [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: E2 0E 00 [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: E2 0E 00 C4 12 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 59 [16:08:54]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:08:54]wFMCommunicate OK [16:08:54]SAM_PROTO_GetShiftState done [16:08:54]FM_GetShiftState done [16:08:54]opened in 1729383220 [16:08:54]opened+sec_in_day 1729469620 [16:08:54]quantity*price = 100015 [16:08:54]sum+1 = 100017 [16:08:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 259 20.10.2024 16:08 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69414 ФПД: 279609315787405 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T160855&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69414&fm=279609315787405&tin=02508201610067®Number=0000000000156251&sum=100000 [16:08:56]StoreToDocumentArchive [16:08:56]shift 193 fd 69414 [16:08:56]save to /storage/0193/doc_00069414 [16:08:56]save last doc name /storage/0193/doc_00069414 to /storage/kkm_last_doc_name [16:08:56]save OK [16:08:56]Clear old archive folders... [16:08:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:08:56]tlvbuf is 00274380 [16:08:56]SAM_PROTO_ClearQueue [16:08:56]wFMCommunicate request_size=4 [16:08:56]MH_SAM_APDU [16:08:56]CAPDU: 80 09 00 00 [16:08:56]Write to MH i2c: E2 08 00 D1 12 80 09 00 00 00 00 00 00 55 [16:08:56]Write i2c OK [16:08:56]MH_I2C_Read... [16:08:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:08:56]Read from MH i2c: E2 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: E2 03 00 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: E2 03 00 D1 12 00 90 00 57 [16:08:56]RAPDU: 90 00 [16:08:56]wFMCommunicate OK [16:08:56]SAM_PROTO_ClearQueue done [16:08:56]KKMCreateOFDPacket [16:08:56]OFDProtocolAddRootSTLVToBuf [16:08:56]FM_MakeSignedData [16:08:56]FM_MakeSignedData [16:08:56]SAM_PROTO_SignData [16:08:56]wFMCommunicate request_size=4 [16:08:56]MH_SAM_APDU [16:08:56]CAPDU: 80 0D 01 02 [16:08:56]Write to MH i2c: E2 08 00 D2 12 80 0D 01 02 00 00 00 00 5D [16:08:56]Write i2c OK [16:08:56]MH_I2C_Read... [16:08:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:08:56]Read from MH i2c: E2 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: E2 03 00 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: E2 03 00 D2 12 00 90 00 58 [16:08:56]RAPDU: 90 00 [16:08:56]wFMCommunicate OK [16:08:56]wFMCommunicate request_size=255 [16:08:56]MH_SAM_APDU [16:08:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 17 2B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 26 0F 01 00 35 04 06 00 FE [16:08:56]Write to MH i2c: E2 02 01 D3 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 17 2B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 26 0F 01 00 35 04 06 00 FE 00 00 97 [16:08:56]Write i2c OK [16:08:56]MH_I2C_Read... [16:08:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:56]Read from MH i2c: E2 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: E2 03 00 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: E2 03 00 D3 12 00 90 00 59 [16:08:56]RAPDU: 90 00 [16:08:56]wFMCommunicate OK [16:08:56]wFMCommunicate request_size=10 [16:08:56]MH_SAM_APDU [16:08:56]CAPDU: 80 0D 02 02 05 4D 9D F1 82 8D [16:08:56]Write to MH i2c: E2 0D 00 D4 12 80 0D 02 02 05 00 4D 9D F1 82 8D 00 00 54 [16:08:56]Write i2c OK [16:08:56]MH_I2C_Read... [16:08:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:56]Read from MH i2c: E2 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: E2 03 00 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: E2 03 00 D4 12 00 90 00 5A [16:08:56]RAPDU: 90 00 [16:08:56]wFMCommunicate OK [16:08:56]wFMCommunicate request_size=4 [16:08:56]MH_SAM_APDU [16:08:56]CAPDU: 80 0D 03 02 [16:08:56]Write to MH i2c: E2 08 00 D5 12 80 0D 03 02 00 00 00 00 62 [16:08:56]Write i2c OK [16:08:56]MH_I2C_Read... [16:08:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:08:56]Read from MH i2c: E2 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: E2 0B 00 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: E2 0B 00 D5 12 00 D7 AE 59 E4 D7 C8 86 56 90 00 A0 [16:08:56]RAPDU: D7 AE 59 E4 D7 C8 86 56 90 00 [16:08:56]wFMCommunicate OK [16:08:56]SAM_PROTO_SignData done [16:08:56]FM_MakeSignedData done [16:08:56]CreateOFDProtocolMessage [16:08:56]wFMCommunicate request_size=4 [16:08:56]MH_SAM_APDU [16:08:56]CAPDU: 80 11 00 00 [16:08:56]Write to MH i2c: E2 08 00 D6 12 80 11 00 00 00 00 00 00 62 [16:08:56]Write i2c OK [16:08:56]MH_I2C_Read... [16:08:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:56]Read from MH i2c: E2 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: E2 17 00 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: E2 17 00 D6 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B4 [16:08:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:08:56]wFMCommunicate OK [16:08:56]CreateOFDProtocolMessage done [16:08:56]OFDSenderStorePacket 69414 [16:08:56]StoreOFDPacket docnum=69414 [16:08:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 DB 46 07 01 48 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 17 2B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 26 0F 01 00 35 04 06 00 FE 4D 9D F1 82 8D D7 AE 59 E4 D7 C8 86 56 [16:08:56]CheckFolder [16:08:56]dirname=/storage/ofd_packets [16:08:56]CheckFolder done [16:08:56]ProducePacketName [16:08:56]name=ofd_packets/00069414 [16:08:56]NVStorageSaveData ofd_packets/00069414 [16:08:56]File name is /storage/ofd_packets/00069414 [16:08:56]Write 301 bytes [16:08:56]NVStorageSaveData done [16:08:56]OFDSenderStorePacket done [16:08:56]KKMCreateOFDPacket done [16:08:56]NVStorageSaveData kkm_last_timestamp [16:08:56]File name is /storage/kkm_last_timestamp [16:08:56]Write 4 bytes [16:08:56]NVStorageSaveData done [16:08:56]ExternCall_PrintAddStr [16:08:56]wPrintStart [16:08:56]Write to MH i2c: 01 00 00 D7 12 E9 [16:08:56]Write i2c OK [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: 01 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: 01 07 00 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: 01 07 00 D7 12 00 00 00 00 00 FF 0F FE [16:08:56]RasterBufferAndPrint [16:08:56]line Счет N : (1)2885141 [16:08:56]line ИНН: 02508201610067 [16:08:56]line Контрольно-Кассовый Чек [16:08:56]line ПРОДАЖА [16:08:56]line ТРК (МРК, ГНК) : 32 [16:08:56]line Товар: 2710124130 [16:08:56]line Аи-92-К-5 [16:08:56]line 14.950 * 66.90 [16:08:56]line = 1000.16 [16:08:56]line НДС 12% НСП 1% [16:08:56]line > о реализуемом товаре [16:08:56]line ОКРУГЛЕНИЕ: -0.16 [16:08:56]line ИТОГО: 1000.00 [16:08:56]line Внесено: 1000.00 [16:08:56]line СДАЧА: 0.00 [16:08:56]line НСП 1% : 8.85 [16:08:56]line НДС 12% : 106.21 [16:08:56]line Наличными: 1000.00 [16:08:56]line Безнал.: 0.00 [16:08:56]line Место: АЗС № 85 "Партнер Нефть" [16:08:56]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:08:56]line СНО: Общий режим [16:08:56]line Чек 259 20.10.2024 16:08 [16:08:56]line Смена: 193 ФФД: 1.0 [16:08:56]line ЗНМ: 0300000167 [16:08:56]line РНМ: 0000000000156251 [16:08:56]line Версия ККМ: v1.0 [16:08:56]line ФМ: 0000000000963346 [16:08:56]line ФД: 69414 [16:08:56]line ФПД: 279609315787405 [16:08:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T160855&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69414&fm=279609315787405&tin=02508201610067®Number=0000000000156251&sum=100000 [16:08:56]OFD Sender: Processing packet 69414 [packets to send 18, broken 17] [16:08:56]ProducePacketName [16:08:56]name=ofd_packets/00069414 [16:08:56]OFD Sender: To server: pG, [16:08:56]CommunicateWithHost lk.salyk.kg:30040 [16:08:56]ConnectInit lk.salyk.kg [16:08:56]written 0, free lines is 4095 [16:08:56]Connected sock=9 [16:08:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 DB 46 07 01 48 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 17 2B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 26 0F 01 00 35 04 06 00 FE 4D 9D F1 82 8D D7 AE 59 E4 D7 C8 86 56 [16:08:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 1F 71 47 00 68 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 26 0F 01 00 F4 03 04 00 BE D4 14 67 B6 04 01 00 00 0D 15 0F 53 BA B8 05 6C [16:08:57]CommunicateWithHost err = 0 [16:08:57]CheckOFDResponse [16:08:57]1017 (14) - 77093643461234 [16:08:57]1041 (16) - 0000000000963346 [16:08:57]1040 (4) - 69414 [16:08:57]1012 (4) - 20.10.2024 10:00 [16:08:57]1206 (1) - 0 [16:08:57]OFD Sender: Remove packet 69414 [16:08:57]ProducePacketName [16:08:57]name=ofd_packets/00069414 [16:08:57]NVStorageDeleteData [16:08:57]Write to MH i2c: 01 00 00 02 13 15 [16:08:57]Write i2c OK [16:08:57]MH_I2C_Read... [16:08:57]Read from MH i2c: 01 [16:08:57]MH_I2C_Read... [16:08:57]Read from MH i2c: 01 07 00 [16:08:57]MH_I2C_Read... [16:08:57]Read from MH i2c: 01 07 00 02 13 00 00 00 00 00 FB 0C 23 [16:08:57]RasterBufferAndPrint [16:08:57]line [16:08:57]line [16:08:57]line [16:08:57]line [16:08:57]line [16:08:57]written 0, free lines is 3329 [16:08:57]MH_Cut [16:08:57]Write to MH i2c: D1 01 00 09 13 01 EE [16:08:57]Write i2c OK [16:08:57]MH_I2C_Read... [16:08:57]Read from MH i2c: D1 [16:08:57]MH_I2C_Read... [16:08:57]Read from MH i2c: D1 01 00 [16:08:57]MH_I2C_Read... [16:08:57]Read from MH i2c: D1 01 00 09 13 00 ED [16:08:57]Write to MH i2c: 01 00 00 0A 13 1D [16:08:57]Write i2c OK [16:08:57]MH_I2C_Read... [16:08:57]OFD Sender: No OFD packet to send [16:08:58]*** Cut start [16:08:58]*** Partial cut [16:08:58]*** CUTSNS_PIN = 1 [16:08:58]*** CUTSNS_PIN = 0 [16:08:58]*** Brake cut motor [16:08:58]Read from MH i2c: 01 [16:08:58]MH_I2C_Read... [16:08:58]*** Stop cut motor [16:08:58]*** Cut end [16:08:58]Read from MH i2c: 01 07 00 [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: 01 07 00 0A 13 00 00 00 00 00 FF 0F 32 [16:08:58]process_action close_receipt done [16:08:58]requested_data is exist [16:08:58]produce_requested_data [16:08:58]requested_item fm.sn is exist - process it [16:08:58]wFMCommunicate request_size=4 [16:08:58]MH_SAM_APDU [16:08:58]CAPDU: 80 11 00 00 [16:08:58]Write to MH i2c: E2 08 00 0B 13 80 11 00 00 00 00 00 00 98 [16:08:58]Write i2c OK [16:08:58]MH_I2C_Read... [16:08:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:58]Read from MH i2c: E2 [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: E2 17 00 [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: E2 17 00 0B 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EA [16:08:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:08:58]wFMCommunicate OK [16:08:58]requested_item fd.num is exist - process it [16:08:58]SAM_PROTO_GetFieldsCounters [16:08:58]wFMCommunicate request_size=4 [16:08:58]MH_SAM_APDU [16:08:58]CAPDU: 80 13 00 00 [16:08:58]Write to MH i2c: E2 08 00 0C 13 80 13 00 00 00 00 00 00 9B [16:08:58]Write i2c OK [16:08:58]MH_I2C_Read... [16:08:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:58]Read from MH i2c: E2 [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: E2 62 00 [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: E2 62 00 0C 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 26 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 B9 [16:08:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 26 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:08:58]wFMCommunicate OK [16:08:58]SAM_PROTO_GetFieldsCounters done [16:08:58]requested_item shift.num is exist - process it [16:08:58]requested_item shift.opened is exist - process it [16:08:58]req_shift_opened [16:08:58]FM_GetShiftState [16:08:58]SAM_PROTO_GetShiftState [16:08:58]wFMCommunicate request_size=4 [16:08:58]MH_SAM_APDU [16:08:58]CAPDU: 80 13 01 00 [16:08:58]Write to MH i2c: E2 08 00 0D 13 80 13 01 00 00 00 00 00 9D [16:08:58]Write i2c OK [16:08:58]MH_I2C_Read... [16:08:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:58]Read from MH i2c: E2 [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: E2 0E 00 [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: E2 0E 00 0D 13 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 A3 [16:08:58]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:08:58]wFMCommunicate OK [16:08:58]SAM_PROTO_GetShiftState done [16:08:58]FM_GetShiftState done [16:08:58]req_shift_opened done [16:08:58]requested_item shift.open_date is exist - process it [16:08:58]req_shift_open_date [16:08:58]req_shift_open_date done [16:08:58]produce_requested_data done [16:08:58]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69414,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [16:08:58]process_action_free close_receipt [16:08:58]json_value_free [16:08:58]json_value_free done [16:08:58]process_json_proto returns [16:08:58]Send response to host [16:08:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69414,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [16:08:58]free response buf [16:08:58]execute_script done [16:08:58]execute_script returns [16:08:58]free content buf [16:08:58]Sock 10.Close socket [16:08:58]Sock 10.Thread stoped [16:09:02]OFD Sender: No OFD packet to send [16:09:07]OFD Sender: No OFD packet to send [16:09:12]OFD Sender: No OFD packet to send [16:09:17]OFD Sender: No OFD packet to send [16:09:22]OFD Sender: No OFD packet to send [16:09:27]OFD Sender: No OFD packet to send [16:09:32]OFD Sender: No OFD packet to send [16:09:37]OFD Sender: No OFD packet to send [16:09:42]OFD Sender: No OFD packet to send [16:09:47]OFD Sender: No OFD packet to send [16:09:52]OFD Sender: No OFD packet to send [16:09:57]OFD Sender: No OFD packet to send [16:10:02]OFD Sender: No OFD packet to send [16:10:07]OFD Sender: No OFD packet to send [16:10:12]OFD Sender: No OFD packet to send [16:10:17]OFD Sender: No OFD packet to send [16:10:22]OFD Sender: No OFD packet to send [16:10:27]OFD Sender: No OFD packet to send [16:10:32]OFD Sender: No OFD packet to send [16:10:37]OFD Sender: No OFD packet to send [16:10:42]OFD Sender: No OFD packet to send [16:10:47]OFD Sender: No OFD packet to send [16:10:52]OFD Sender: No OFD packet to send [16:10:54]accept exits with 8 [16:10:54]New connection [16:10:54]New thread 3066568036 created [16:10:54]Thread 3066711396 joined [16:10:54]Waiting for new connection... [16:10:54] Sock 8.Parse request [16:10:54]Sock 8.Check first char [16:10:54]Sock 8.First char is OK [16:10:54]request: POST /json_proto HTTP/1.0 [16:10:54]Method: POST [16:10:54]URL: /json_proto [16:10:54]Method is POST - this is cgi request [16:10:54]url: /json_proto [16:10:54]query_string will be loaded in cgi processing [16:10:54]execute_cgi json_proto POST (null) [16:10:54]execute_cgi path=json_proto method=POST [16:10:54]POST find Content-Length [16:10:54]Host: 172.17.50.3:8080 [16:10:54]Content-Length: 678 [16:10:54]Content-Type: application/json [16:10:54] [16:10:54]POST finish read [16:10:54]Found Content-Length = 678 [16:10:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:54]execute_script... [16:10: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)2885142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:54]POST & json_proto [16:10:54]process_json_proto [16:10:54]json parsed OK: [16:10:54]protocol is kg_v1.0 [16:10:54]action value=close_receipt [16:10:54]process_action close_receipt [16:10:54]cmd_close_receipt [16:10:54]MH_GetDate [16:10:54]Write to MH i2c: F0 00 00 0E 13 10 [16:10:54]Write i2c OK [16:10:54]MH_I2C_Read... [16:10:54]Read from MH i2c: F0 [16:10:54]MH_I2C_Read... [16:10:54]Read from MH i2c: F0 09 00 [16:10:54]MH_I2C_Read... [16:10:54]Read from MH i2c: F0 09 00 0E 13 00 8F 2B 15 67 6B 98 1E 66 D6 [16:10:54]GetLastDocTimeStamp 1729440535 [16:10:54]current date 1729440655 [16:10:54]FM_GetShiftState [16:10:54]SAM_PROTO_GetShiftState [16:10:54]wFMCommunicate request_size=4 [16:10:54]MH_SAM_APDU [16:10:54]CAPDU: 80 13 01 00 [16:10:54]Write to MH i2c: E2 08 00 0F 13 80 13 01 00 00 00 00 00 9F [16:10:54]Write i2c OK [16:10:54]MH_I2C_Read... [16:10:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:54]Read from MH i2c: E2 [16:10:54]MH_I2C_Read... [16:10:54]Read from MH i2c: E2 0E 00 [16:10:54]MH_I2C_Read... [16:10:54]Read from MH i2c: E2 0E 00 0F 13 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 A5 [16:10:54]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:10:54]wFMCommunicate OK [16:10:54]SAM_PROTO_GetShiftState done [16:10:54]FM_GetShiftState done [16:10:54]opened in 1729383220 [16:10:54]opened+sec_in_day 1729469620 [16:10:54]quantity*price = 40068 [16:10:54]sum+1 = 40069 [16:10:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 260 20.10.2024 16:10 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69415 ФПД: 273756116759893 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161055&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69415&fm=273756116759893&tin=02508201610067®Number=0000000000156251&sum=40000 [16:10:55]StoreToDocumentArchive [16:10:55]shift 193 fd 69415 [16:10:55]save to /storage/0193/doc_00069415 [16:10:55]save last doc name /storage/0193/doc_00069415 to /storage/kkm_last_doc_name [16:10:55]save OK [16:10:55]Clear old archive folders... [16:10:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:10:55]tlvbuf is 0021A130 [16:10:55]SAM_PROTO_ClearQueue [16:10:55]wFMCommunicate request_size=4 [16:10:55]MH_SAM_APDU [16:10:55]CAPDU: 80 09 00 00 [16:10:55]Write to MH i2c: E2 08 00 1C 13 80 09 00 00 00 00 00 00 A1 [16:10:55]Write i2c OK [16:10:55]MH_I2C_Read... [16:10:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:10:55]Read from MH i2c: E2 [16:10:55]MH_I2C_Read... [16:10:55]Read from MH i2c: E2 03 00 [16:10:55]MH_I2C_Read... [16:10:55]Read from MH i2c: E2 03 00 1C 13 00 90 00 A3 [16:10:55]RAPDU: 90 00 [16:10:55]wFMCommunicate OK [16:10:55]SAM_PROTO_ClearQueue done [16:10:55]KKMCreateOFDPacket [16:10:55]OFDProtocolAddRootSTLVToBuf [16:10:55]FM_MakeSignedData [16:10:55]FM_MakeSignedData [16:10:55]SAM_PROTO_SignData [16:10:55]wFMCommunicate request_size=4 [16:10:55]MH_SAM_APDU [16:10:55]CAPDU: 80 0D 01 02 [16:10:55]Write to MH i2c: E2 08 00 1D 13 80 0D 01 02 00 00 00 00 A9 [16:10:55]Write i2c OK [16:10:55]MH_I2C_Read... [16:10:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:10:55]Read from MH i2c: E2 [16:10:55]MH_I2C_Read... [16:10:55]Read from MH i2c: E2 03 00 [16:10:55]MH_I2C_Read... [16:10:55]Read from MH i2c: E2 03 00 1D 13 00 90 00 A4 [16:10:55]RAPDU: 90 00 [16:10:55]wFMCommunicate OK [16:10:55]wFMCommunicate request_size=255 [16:10:55]MH_SAM_APDU [16:10: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 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 8F 2B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 27 0F 01 00 35 04 06 00 F8 [16:10:55]Write to MH i2c: E2 02 01 1E 13 80 0D 02 02 FA 00 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 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 8F 2B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 27 0F 01 00 35 04 06 00 F8 00 00 0C [16:10:55]Write i2c OK [16:10:55]MH_I2C_Read... [16:10:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:56]Read from MH i2c: E2 [16:10:56]MH_I2C_Read... [16:10:56]Read from MH i2c: E2 03 00 [16:10:56]MH_I2C_Read... [16:10:56]Read from MH i2c: E2 03 00 1E 13 00 90 00 A5 [16:10:56]RAPDU: 90 00 [16:10:56]wFMCommunicate OK [16:10:56]wFMCommunicate request_size=10 [16:10:56]MH_SAM_APDU [16:10:56]CAPDU: 80 0D 02 02 05 FA D0 18 35 55 [16:10:56]Write to MH i2c: E2 0D 00 1F 13 80 0D 02 02 05 00 FA D0 18 35 55 00 00 22 [16:10:56]Write i2c OK [16:10:56]MH_I2C_Read... [16:10:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:56]Read from MH i2c: E2 [16:10:56]MH_I2C_Read... [16:10:56]Read from MH i2c: E2 03 00 [16:10:56]MH_I2C_Read... [16:10:56]Read from MH i2c: E2 03 00 1F 13 00 90 00 A6 [16:10:56]RAPDU: 90 00 [16:10:56]wFMCommunicate OK [16:10:56]wFMCommunicate request_size=4 [16:10:56]MH_SAM_APDU [16:10:56]CAPDU: 80 0D 03 02 [16:10:56]Write to MH i2c: E2 08 00 20 13 80 0D 03 02 00 00 00 00 AE [16:10:56]Write i2c OK [16:10:56]MH_I2C_Read... [16:10:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:10:56]Read from MH i2c: E2 [16:10:56]MH_I2C_Read... [16:10:56]Read from MH i2c: E2 0B 00 [16:10:56]MH_I2C_Read... [16:10:56]Read from MH i2c: E2 0B 00 20 13 00 E6 3F 08 67 D5 58 F3 9F 90 00 02 [16:10:56]RAPDU: E6 3F 08 67 D5 58 F3 9F 90 00 [16:10:56]wFMCommunicate OK [16:10:56]SAM_PROTO_SignData done [16:10:56]FM_MakeSignedData done [16:10:56]CreateOFDProtocolMessage [16:10:56]wFMCommunicate request_size=4 [16:10:56]MH_SAM_APDU [16:10:56]CAPDU: 80 11 00 00 [16:10:56]Write to MH i2c: E2 08 00 21 13 80 11 00 00 00 00 00 00 AE [16:10:56]Write i2c OK [16:10:56]MH_I2C_Read... [16:10:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:56]Read from MH i2c: E2 [16:10:56]MH_I2C_Read... [16:10:56]Read from MH i2c: E2 17 00 [16:10:56]MH_I2C_Read... [16:10:56]Read from MH i2c: E2 17 00 21 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 00 [16:10:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:10:56]wFMCommunicate OK [16:10:56]CreateOFDProtocolMessage done [16:10:56]OFDSenderStorePacket 69415 [16:10:56]StoreOFDPacket docnum=69415 [16:10:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 3C 9D 07 01 2F 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 8F 2B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 27 0F 01 00 35 04 06 00 F8 FA D0 18 35 55 E6 3F 08 67 D5 58 F3 9F [16:10:56]CheckFolder [16:10:56]dirname=/storage/ofd_packets [16:10:56]CheckFolder done [16:10:56]ProducePacketName [16:10:56]name=ofd_packets/00069415 [16:10:56]NVStorageSaveData ofd_packets/00069415 [16:10:56]File name is /storage/ofd_packets/00069415 [16:10:56]Write 301 bytes [16:10:56]NVStorageSaveData done [16:10:56]OFDSenderStorePacket done [16:10:56]KKMCreateOFDPacket done [16:10:56]NVStorageSaveData kkm_last_timestamp [16:10:56]File name is /storage/kkm_last_timestamp [16:10:56]Write 4 bytes [16:10:56]NVStorageSaveData done [16:10:56]ExternCall_PrintAddStr [16:10:56]wPrintStart [16:10:56]Write to MH i2c: 01 00 00 22 13 35 [16:10:56]Write i2c OK [16:10:56]MH_I2C_Read... [16:10:56]Read from MH i2c: 01 [16:10:56]MH_I2C_Read... [16:10:56]Read from MH i2c: 01 07 00 [16:10:56]MH_I2C_Read... [16:10:56]Read from MH i2c: 01 07 00 22 13 00 00 00 00 00 FF 0F 4A [16:10:56]RasterBufferAndPrint [16:10:56]line Счет N : (1)2885142 [16:10:56]line ИНН: 02508201610067 [16:10:56]line Контрольно-Кассовый Чек [16:10:56]line ПРОДАЖА [16:10:56]line ТРК (МРК, ГНК) : 13 [16:10:56]line Товар: 2710124500 [16:10:56]line Аи-95-К-5 [16:10:56]line 5.400 * 74.20 [16:10:56]line = 400.68 [16:10:56]line НДС 12% НСП 1% [16:10:56]line > о реализуемом товаре [16:10:56]line ОКРУГЛЕНИЕ: -0.68 [16:10:56]line ИТОГО: 400.00 [16:10:56]line Внесено: 400.00 [16:10:56]line СДАЧА: 0.00 [16:10:56]line НСП 1% : 3.55 [16:10:56]line НДС 12% : 42.55 [16:10:56]line Наличными: 400.00 [16:10:56]line Безнал.: 0.00 [16:10:56]line Место: АЗС № 85 "Партнер Нефть" [16:10:56]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:10:56]line СНО: Общий режим [16:10:56]line Чек 260 20.10.2024 16:10 [16:10:56]line Смена: 193 ФФД: 1.0 [16:10:56]line ЗНМ: 0300000167 [16:10:56]line РНМ: 0000000000156251 [16:10:56]line Версия ККМ: v1.0 [16:10:56]line ФМ: 0000000000963346 [16:10:56]line ФД: 69415 [16:10:56]line ФПД: 273756116759893 [16:10:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161055&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69415&fm=273756116759893&tin=02508201610067®Number=0000000000156251&sum=40000 [16:10:56]OFD Sender: Processing packet 69415 [packets to send 18, broken 17] [16:10:56]ProducePacketName [16:10:56]name=ofd_packets/00069415 [16:10:56]OFD Sender: To server: pG, [16:10:56]CommunicateWithHost lk.salyk.kg:30040 [16:10:56]ConnectInit lk.salyk.kg [16:10:56]written 0, free lines is 4095 [16:10:56]Connected sock=10 [16:10:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 3C 9D 07 01 2F 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 8F 2B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 27 0F 01 00 35 04 06 00 F8 FA D0 18 35 55 E6 3F 08 67 D5 58 F3 9F [16:10:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 D1 25 47 00 9D 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 27 0F 01 00 F4 03 04 00 35 D5 14 67 B6 04 01 00 00 24 93 48 A5 5B 37 8A 7A [16:10:56]CommunicateWithHost err = 0 [16:10:56]CheckOFDResponse [16:10:56]1017 (14) - 77093643461234 [16:10:56]1041 (16) - 0000000000963346 [16:10:56]1040 (4) - 69415 [16:10:56]1012 (4) - 20.10.2024 10:02 [16:10:56]1206 (1) - 0 [16:10:56]OFD Sender: Remove packet 69415 [16:10:56]ProducePacketName [16:10:56]name=ofd_packets/00069415 [16:10:56]NVStorageDeleteData [16:10:57]Write to MH i2c: 01 00 00 4D 13 60 [16:10:57]Write i2c OK [16:10:57]MH_I2C_Read... [16:10:57]Read from MH i2c: 01 [16:10:57]MH_I2C_Read... [16:10:57]Read from MH i2c: 01 07 00 [16:10:57]MH_I2C_Read... [16:10:57]Read from MH i2c: 01 07 00 4D 13 00 00 00 00 00 EE 0C 61 [16:10:57]RasterBufferAndPrint [16:10:57]line [16:10:57]line [16:10:57]line [16:10:57]line [16:10:57]line [16:10:57]written 0, free lines is 3316 [16:10:57]MH_Cut [16:10:57]Write to MH i2c: D1 01 00 54 13 01 39 [16:10:57]Write i2c OK [16:10:57]MH_I2C_Read... [16:10:57]Read from MH i2c: D1 [16:10:57]MH_I2C_Read... [16:10:57]Read from MH i2c: D1 01 00 [16:10:57]MH_I2C_Read... [16:10:57]Read from MH i2c: D1 01 00 54 13 00 38 [16:10:57]Write to MH i2c: 01 00 00 55 13 68 [16:10:57]Write i2c OK [16:10:57]MH_I2C_Read... [16:10:57]OFD Sender: No OFD packet to send [16:10:57]*** Cut start [16:10:57]*** Partial cut [16:10:57]*** CUTSNS_PIN = 1 [16:10:57]*** CUTSNS_PIN = 0 [16:10:58]*** Brake cut motor [16:10:58]Read from MH i2c: 01 [16:10:58]MH_I2C_Read... [16:10:58]*** Stop cut motor [16:10:58]*** Cut end [16:10:58]Read from MH i2c: 01 07 00 [16:10:58]MH_I2C_Read... [16:10:58]Read from MH i2c: 01 07 00 55 13 00 00 00 00 00 FF 0F 7D [16:10:58]process_action close_receipt done [16:10:58]requested_data is exist [16:10:58]produce_requested_data [16:10:58]requested_item fm.sn is exist - process it [16:10:58]wFMCommunicate request_size=4 [16:10:58]MH_SAM_APDU [16:10:58]CAPDU: 80 11 00 00 [16:10:58]Write to MH i2c: E2 08 00 56 13 80 11 00 00 00 00 00 00 E3 [16:10:58]Write i2c OK [16:10:58]MH_I2C_Read... [16:10:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:58]Read from MH i2c: E2 [16:10:58]MH_I2C_Read... [16:10:58]Read from MH i2c: E2 17 00 [16:10:58]MH_I2C_Read... [16:10:58]Read from MH i2c: E2 17 00 56 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 35 [16:10:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:10:58]wFMCommunicate OK [16:10:58]requested_item fd.num is exist - process it [16:10:58]SAM_PROTO_GetFieldsCounters [16:10:58]wFMCommunicate request_size=4 [16:10:58]MH_SAM_APDU [16:10:58]CAPDU: 80 13 00 00 [16:10:58]Write to MH i2c: E2 08 00 57 13 80 13 00 00 00 00 00 00 E6 [16:10:58]Write i2c OK [16:10:58]MH_I2C_Read... [16:10:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:10:58]Read from MH i2c: E2 [16:10:58]MH_I2C_Read... [16:10:58]Read from MH i2c: E2 62 00 [16:10:58]MH_I2C_Read... [16:10:58]Read from MH i2c: E2 62 00 57 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 27 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 08 [16:10:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 27 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:10:58]wFMCommunicate OK [16:10:58]SAM_PROTO_GetFieldsCounters done [16:10:58]requested_item shift.num is exist - process it [16:10:58]requested_item shift.opened is exist - process it [16:10:58]req_shift_opened [16:10:58]FM_GetShiftState [16:10:58]SAM_PROTO_GetShiftState [16:10:58]wFMCommunicate request_size=4 [16:10:58]MH_SAM_APDU [16:10:58]CAPDU: 80 13 01 00 [16:10:58]Write to MH i2c: E2 08 00 58 13 80 13 01 00 00 00 00 00 E8 [16:10:58]Write i2c OK [16:10:58]MH_I2C_Read... [16:10:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:58]Read from MH i2c: E2 [16:10:58]MH_I2C_Read... [16:10:58]Read from MH i2c: E2 0E 00 [16:10:58]MH_I2C_Read... [16:10:58]Read from MH i2c: E2 0E 00 58 13 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 EE [16:10:58]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:10:58]wFMCommunicate OK [16:10:58]SAM_PROTO_GetShiftState done [16:10:58]FM_GetShiftState done [16:10:58]req_shift_opened done [16:10:58]requested_item shift.open_date is exist - process it [16:10:58]req_shift_open_date [16:10:58]req_shift_open_date done [16:10:58]produce_requested_data done [16:10:58]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69415,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [16:10:58]process_action_free close_receipt [16:10:58]json_value_free [16:10:58]json_value_free done [16:10:58]process_json_proto returns [16:10:58]Send response to host [16:10:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69415,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [16:10:58]free response buf [16:10:58]execute_script done [16:10:58]execute_script returns [16:10:58]free content buf [16:10:58]Sock 8.Close socket [16:10:58]Sock 8.Thread stoped [16:11:02]OFD Sender: No OFD packet to send [16:11:07]OFD Sender: No OFD packet to send [16:11:12]OFD Sender: No OFD packet to send [16:11:17]OFD Sender: No OFD packet to send [16:11:18]accept exits with 9 [16:11:18]New connection [16:11:18]New thread 3066711396 created [16:11:18]Thread 3066568036 joined [16:11:18]Waiting for new connection... [16:11:18] Sock 9.Parse request [16:11:18]Sock 9.Check first char [16:11:18]Sock 9.First char is OK [16:11:18]request: POST /json_proto HTTP/1.0 [16:11:18]Method: POST [16:11:18]URL: /json_proto [16:11:18]Method is POST - this is cgi request [16:11:18]url: /json_proto [16:11:18]query_string will be loaded in cgi processing [16:11:18]execute_cgi json_proto POST (null) [16:11:18]execute_cgi path=json_proto method=POST [16:11:18]POST find Content-Length [16:11:18]Host: 172.17.50.3:8080 [16:11:18]Content-Length: 767 [16:11:18]Content-Type: application/json [16:11:18] [16:11:18]POST finish read [16:11:18]Found Content-Length = 767 [16:11:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:18]execute_script... [16:11:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:18]POST & json_proto [16:11:18]process_json_proto [16:11:18]json parsed OK: [16:11:18]protocol is kg_v1.0 [16:11:18]action value=close_receipt [16:11:18]process_action close_receipt [16:11:18]cmd_close_receipt [16:11:18]MH_GetDate [16:11:18]Write to MH i2c: F0 00 00 59 13 5B [16:11:18]Write i2c OK [16:11:18]MH_I2C_Read... [16:11:18]Read from MH i2c: F0 [16:11:18]MH_I2C_Read... [16:11:18]Read from MH i2c: F0 09 00 [16:11:18]MH_I2C_Read... [16:11:18]Read from MH i2c: F0 09 00 59 13 00 A7 2B 15 67 6B 98 1E 66 39 [16:11:18]GetLastDocTimeStamp 1729440655 [16:11:18]current date 1729440679 [16:11:18]FM_GetShiftState [16:11:18]SAM_PROTO_GetShiftState [16:11:18]wFMCommunicate request_size=4 [16:11:18]MH_SAM_APDU [16:11:18]CAPDU: 80 13 01 00 [16:11:18]Write to MH i2c: E2 08 00 5A 13 80 13 01 00 00 00 00 00 EA [16:11:18]Write i2c OK [16:11:18]MH_I2C_Read... [16:11:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:19]Read from MH i2c: E2 [16:11:19]MH_I2C_Read... [16:11:19]Read from MH i2c: E2 0E 00 [16:11:19]MH_I2C_Read... [16:11:19]Read from MH i2c: E2 0E 00 5A 13 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 F0 [16:11:19]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:11:19]wFMCommunicate OK [16:11:19]SAM_PROTO_GetShiftState done [16:11:19]FM_GetShiftState done [16:11:19]opened in 1729383220 [16:11:19]opened+sec_in_day 1729469620 [16:11:19]quantity*price = 30038 [16:11:19]sum+1 = 30039 [16:11:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 261 20.10.2024 16:11 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69416 ФПД: 34692595661009 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161119&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69416&fm=34692595661009&tin=02508201610067®Number=0000000000156251&sum=30038 [16:11:20]StoreToDocumentArchive [16:11:20]shift 193 fd 69416 [16:11:20]save to /storage/0193/doc_00069416 [16:11:20]save last doc name /storage/0193/doc_00069416 to /storage/kkm_last_doc_name [16:11:20]save OK [16:11:20]Clear old archive folders... [16:11:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:11:20]tlvbuf is 00246160 [16:11:20]SAM_PROTO_ClearQueue [16:11:20]wFMCommunicate request_size=4 [16:11:20]MH_SAM_APDU [16:11:20]CAPDU: 80 09 00 00 [16:11:20]Write to MH i2c: E2 08 00 67 13 80 09 00 00 00 00 00 00 EC [16:11:20]Write i2c OK [16:11:20]MH_I2C_Read... [16:11:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:11:20]Read from MH i2c: E2 [16:11:20]MH_I2C_Read... [16:11:20]Read from MH i2c: E2 03 00 [16:11:20]MH_I2C_Read... [16:11:20]Read from MH i2c: E2 03 00 67 13 00 90 00 EE [16:11:20]RAPDU: 90 00 [16:11:20]wFMCommunicate OK [16:11:20]SAM_PROTO_ClearQueue done [16:11:20]KKMCreateOFDPacket [16:11:20]OFDProtocolAddRootSTLVToBuf [16:11:20]FM_MakeSignedData [16:11:20]FM_MakeSignedData [16:11:20]SAM_PROTO_SignData [16:11:20]wFMCommunicate request_size=4 [16:11:20]MH_SAM_APDU [16:11:20]CAPDU: 80 0D 01 02 [16:11:20]Write to MH i2c: E2 08 00 68 13 80 0D 01 02 00 00 00 00 F4 [16:11:20]Write i2c OK [16:11:20]MH_I2C_Read... [16:11:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:11:20]Read from MH i2c: E2 [16:11:20]MH_I2C_Read... [16:11:20]Read from MH i2c: E2 03 00 [16:11:20]MH_I2C_Read... [16:11:20]Read from MH i2c: E2 03 00 68 13 00 90 00 EF [16:11:20]RAPDU: 90 00 [16:11:20]wFMCommunicate OK [16:11:20]wFMCommunicate request_size=255 [16:11:20]MH_SAM_APDU [16:11:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 A7 2B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 28 0F 01 00 35 04 06 00 1F [16:11:20]Write to MH i2c: E2 02 01 69 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 A7 2B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 28 0F 01 00 35 04 06 00 1F 00 00 29 [16:11:20]Write i2c OK [16:11:20]MH_I2C_Read... [16:11:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:20]Read from MH i2c: E2 [16:11:20]MH_I2C_Read... [16:11:20]Read from MH i2c: E2 03 00 [16:11:20]MH_I2C_Read... [16:11:20]Read from MH i2c: E2 03 00 69 13 00 90 00 F0 [16:11:20]RAPDU: 90 00 [16:11:20]wFMCommunicate OK [16:11:20]wFMCommunicate request_size=10 [16:11:20]MH_SAM_APDU [16:11:20]CAPDU: 80 0D 02 02 05 8D 7F D7 38 D1 [16:11:20]Write to MH i2c: E2 0D 00 6A 13 80 0D 02 02 05 00 8D 7F D7 38 D1 00 00 ED [16:11:20]Write i2c OK [16:11:20]MH_I2C_Read... [16:11:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:20]Read from MH i2c: E2 [16:11:20]MH_I2C_Read... [16:11:20]Read from MH i2c: E2 03 00 [16:11:20]MH_I2C_Read... [16:11:20]Read from MH i2c: E2 03 00 6A 13 00 90 00 F1 [16:11:20]RAPDU: 90 00 [16:11:20]wFMCommunicate OK [16:11:20]wFMCommunicate request_size=4 [16:11:20]MH_SAM_APDU [16:11:20]CAPDU: 80 0D 03 02 [16:11:20]Write to MH i2c: E2 08 00 6B 13 80 0D 03 02 00 00 00 00 F9 [16:11:20]Write i2c OK [16:11:20]MH_I2C_Read... [16:11:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:11:20]Read from MH i2c: E2 [16:11:20]MH_I2C_Read... [16:11:20]Read from MH i2c: E2 0B 00 [16:11:20]MH_I2C_Read... [16:11:20]Read from MH i2c: E2 0B 00 6B 13 00 49 10 28 D0 05 63 95 23 90 00 6B [16:11:20]RAPDU: 49 10 28 D0 05 63 95 23 90 00 [16:11:20]wFMCommunicate OK [16:11:20]SAM_PROTO_SignData done [16:11:20]FM_MakeSignedData done [16:11:20]CreateOFDProtocolMessage [16:11:20]wFMCommunicate request_size=4 [16:11:20]MH_SAM_APDU [16:11:20]CAPDU: 80 11 00 00 [16:11:20]Write to MH i2c: E2 08 00 6C 13 80 11 00 00 00 00 00 00 F9 [16:11:20]Write i2c OK [16:11:20]MH_I2C_Read... [16:11:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:20]Read from MH i2c: E2 [16:11:20]MH_I2C_Read... [16:11:20]Read from MH i2c: E2 17 00 [16:11:20]MH_I2C_Read... [16:11:20]Read from MH i2c: E2 17 00 6C 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4B [16:11:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:11:20]wFMCommunicate OK [16:11:20]CreateOFDProtocolMessage done [16:11:20]OFDSenderStorePacket 69416 [16:11:20]StoreOFDPacket docnum=69416 [16:11:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 B7 40 07 01 24 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 A7 2B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 28 0F 01 00 35 04 06 00 1F 8D 7F D7 38 D1 49 10 28 D0 05 63 95 23 [16:11:20]CheckFolder [16:11:20]dirname=/storage/ofd_packets [16:11:20]CheckFolder done [16:11:20]ProducePacketName [16:11:20]name=ofd_packets/00069416 [16:11:20]NVStorageSaveData ofd_packets/00069416 [16:11:20]File name is /storage/ofd_packets/00069416 [16:11:20]Write 301 bytes [16:11:20]NVStorageSaveData done [16:11:20]OFDSenderStorePacket done [16:11:20]KKMCreateOFDPacket done [16:11:20]NVStorageSaveData kkm_last_timestamp [16:11:20]File name is /storage/kkm_last_timestamp [16:11:20]Write 4 bytes [16:11:20]NVStorageSaveData done [16:11:20]ExternCall_PrintAddStr [16:11:20]wPrintStart [16:11:20]Write to MH i2c: 01 00 00 6D 13 80 [16:11:20]Write i2c OK [16:11:20]MH_I2C_Read... [16:11:20]Read from MH i2c: 01 [16:11:20]MH_I2C_Read... [16:11:20]Read from MH i2c: 01 07 00 [16:11:20]MH_I2C_Read... [16:11:20]Read from MH i2c: 01 07 00 6D 13 00 00 00 00 00 FF 0F 95 [16:11:20]RasterBufferAndPrint [16:11:20]line Счет N : (1)2885143 [16:11:20]line ИНН: 02508201610067 [16:11:20]line Контрольно-Кассовый Чек [16:11:20]line ПРОДАЖА [16:11:20]line ТРК (МРК, ГНК) : 32 [16:11:20]line Товар: 2710124130 [16:11:20]line Аи-92-К-5 [16:11:20]line 4.490 * 66.90 [16:11:20]line = 300.38 [16:11:20]line НДС 12% НСП 1% [16:11:20]line > о реализуемом товаре [16:11:20]line ИТОГО: 300.38 [16:11:20]line НСП 1% : 2.66 [16:11:20]line НДС 12% : 31.90 [16:11:20]line Наличными: 0.00 [16:11:20]line Безнал.: 300.38 [16:11:20]line Место: АЗС № 85 "Партнер Нефть" [16:11:20]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:11:20]line СНО: Общий режим [16:11:20]line Чек 261 20.10.2024 16:11 [16:11:20]line Смена: 193 ФФД: 1.0 [16:11:20]line ЗНМ: 0300000167 [16:11:20]line РНМ: 0000000000156251 [16:11:20]line Версия ККМ: v1.0 [16:11:20]line Платежная система: Mbank [16:11:20]line ФМ: 0000000000963346 [16:11:20]line ФД: 69416 [16:11:20]line ФПД: 34692595661009 [16:11:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161119&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69416&fm=34692595661009&tin=02508201610067®Number=0000000000156251&sum=30038 [16:11:21]OFD Sender: Processing packet 69416 [packets to send 18, broken 17] [16:11:21]ProducePacketName [16:11:21]name=ofd_packets/00069416 [16:11:21]OFD Sender: To server: pG, [16:11:21]CommunicateWithHost lk.salyk.kg:30040 [16:11:21]ConnectInit lk.salyk.kg [16:11:21]written 0, free lines is 4095 [16:11:21]Connected sock=10 [16:11:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 B7 40 07 01 24 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 A7 2B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 28 0F 01 00 35 04 06 00 1F 8D 7F D7 38 D1 49 10 28 D0 05 63 95 23 [16:11:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 AA D9 47 00 EC FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 28 0F 01 00 F4 03 04 00 4E D5 14 67 B6 04 01 00 00 4D D9 FA D3 4F 93 7E 89 [16:11:21]CommunicateWithHost err = 0 [16:11:21]CheckOFDResponse [16:11:21]1017 (14) - 77093643461234 [16:11:21]1041 (16) - 0000000000963346 [16:11:21]1040 (4) - 69416 [16:11:21]1012 (4) - 20.10.2024 10:02 [16:11:21]1206 (1) - 0 [16:11:21]OFD Sender: Remove packet 69416 [16:11:21]ProducePacketName [16:11:21]name=ofd_packets/00069416 [16:11:21]NVStorageDeleteData [16:11:21]Write to MH i2c: 01 00 00 96 13 A9 [16:11:21]Write i2c OK [16:11:21]MH_I2C_Read... [16:11:21]Read from MH i2c: 01 [16:11:21]MH_I2C_Read... [16:11:21]Read from MH i2c: 01 07 00 [16:11:21]MH_I2C_Read... [16:11:21]Read from MH i2c: 01 07 00 96 13 00 00 00 00 00 20 0D DD [16:11:21]RasterBufferAndPrint [16:11:21]line [16:11:21]line [16:11:21]line [16:11:21]line [16:11:21]line [16:11:21]written 0, free lines is 3366 [16:11:21]MH_Cut [16:11:21]Write to MH i2c: D1 01 00 9D 13 01 82 [16:11:21]Write i2c OK [16:11:21]MH_I2C_Read... [16:11:21]Read from MH i2c: D1 [16:11:21]MH_I2C_Read... [16:11:21]Read from MH i2c: D1 01 00 [16:11:21]MH_I2C_Read... [16:11:21]Read from MH i2c: D1 01 00 9D 13 00 81 [16:11:21]Write to MH i2c: 01 00 00 9E 13 B1 [16:11:21]Write i2c OK [16:11:21]MH_I2C_Read... [16:11:21]OFD Sender: No OFD packet to send [16:11:22]*** Cut start [16:11:22]*** Partial cut [16:11:22]*** CUTSNS_PIN = 1 [16:11:22]*** CUTSNS_PIN = 0 [16:11:22]*** Brake cut motor [16:11:22]Read from MH i2c: 01 [16:11:22]MH_I2C_Read... [16:11:22]*** Stop cut motor [16:11:22]*** Cut end [16:11:22]Read from MH i2c: 01 07 00 [16:11:22]MH_I2C_Read... [16:11:22]Read from MH i2c: 01 07 00 9E 13 00 00 00 00 00 FF 0F C6 [16:11:22]process_action close_receipt done [16:11:22]requested_data is exist [16:11:22]produce_requested_data [16:11:22]requested_item fm.sn is exist - process it [16:11:22]wFMCommunicate request_size=4 [16:11:22]MH_SAM_APDU [16:11:22]CAPDU: 80 11 00 00 [16:11:22]Write to MH i2c: E2 08 00 9F 13 80 11 00 00 00 00 00 00 2C [16:11:22]Write i2c OK [16:11:22]MH_I2C_Read... [16:11:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:22]Read from MH i2c: E2 [16:11:22]MH_I2C_Read... [16:11:22]Read from MH i2c: E2 17 00 [16:11:22]MH_I2C_Read... [16:11:22]Read from MH i2c: E2 17 00 9F 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7E [16:11:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:11:22]wFMCommunicate OK [16:11:22]requested_item fd.num is exist - process it [16:11:22]SAM_PROTO_GetFieldsCounters [16:11:22]wFMCommunicate request_size=4 [16:11:22]MH_SAM_APDU [16:11:22]CAPDU: 80 13 00 00 [16:11:22]Write to MH i2c: E2 08 00 A0 13 80 13 00 00 00 00 00 00 2F [16:11:22]Write i2c OK [16:11:22]MH_I2C_Read... [16:11:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:11:22]Read from MH i2c: E2 [16:11:22]MH_I2C_Read... [16:11:22]Read from MH i2c: E2 62 00 [16:11:22]MH_I2C_Read... [16:11:22]Read from MH i2c: E2 62 00 A0 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 28 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 55 [16:11:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 28 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:11:22]wFMCommunicate OK [16:11:22]SAM_PROTO_GetFieldsCounters done [16:11:22]requested_item shift.num is exist - process it [16:11:22]requested_item shift.opened is exist - process it [16:11:22]req_shift_opened [16:11:22]FM_GetShiftState [16:11:22]SAM_PROTO_GetShiftState [16:11:22]wFMCommunicate request_size=4 [16:11:22]MH_SAM_APDU [16:11:22]CAPDU: 80 13 01 00 [16:11:22]Write to MH i2c: E2 08 00 A1 13 80 13 01 00 00 00 00 00 31 [16:11:22]Write i2c OK [16:11:22]MH_I2C_Read... [16:11:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:23]Read from MH i2c: E2 [16:11:23]MH_I2C_Read... [16:11:23]Read from MH i2c: E2 0E 00 [16:11:23]MH_I2C_Read... [16:11:23]Read from MH i2c: E2 0E 00 A1 13 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 37 [16:11:23]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:11:23]wFMCommunicate OK [16:11:23]SAM_PROTO_GetShiftState done [16:11:23]FM_GetShiftState done [16:11:23]req_shift_opened done [16:11:23]requested_item shift.open_date is exist - process it [16:11:23]req_shift_open_date [16:11:23]req_shift_open_date done [16:11:23]produce_requested_data done [16:11:23]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69416,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [16:11:23]process_action_free close_receipt [16:11:23]json_value_free [16:11:23]json_value_free done [16:11:23]process_json_proto returns [16:11:23]Send response to host [16:11:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69416,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [16:11:23]free response buf [16:11:23]execute_script done [16:11:23]execute_script returns [16:11:23]free content buf [16:11:23]Sock 9.Close socket [16:11:23]Sock 9.Thread stoped [16:11:26]OFD Sender: No OFD packet to send [16:11:31]OFD Sender: No OFD packet to send [16:11:36]OFD Sender: No OFD packet to send [16:11:41]OFD Sender: No OFD packet to send [16:11:46]OFD Sender: No OFD packet to send [16:11:51]OFD Sender: No OFD packet to send [16:11:56]OFD Sender: No OFD packet to send [16:12:01]OFD Sender: No OFD packet to send [16:12:06]OFD Sender: No OFD packet to send [16:12:11]OFD Sender: No OFD packet to send [16:12:16]OFD Sender: No OFD packet to send [16:12:21]OFD Sender: No OFD packet to send [16:12:26]OFD Sender: No OFD packet to send [16:12:31]OFD Sender: No OFD packet to send [16:12:36]OFD Sender: No OFD packet to send [16:12:41]OFD Sender: No OFD packet to send [16:12:46]OFD Sender: No OFD packet to send [16:12:51]OFD Sender: No OFD packet to send [16:12:56]OFD Sender: No OFD packet to send [16:13:01]OFD Sender: No OFD packet to send [16:13:06]OFD Sender: No OFD packet to send [16:13:11]OFD Sender: No OFD packet to send [16:13:16]OFD Sender: No OFD packet to send [16:13:21]OFD Sender: No OFD packet to send [16:13:26]OFD Sender: No OFD packet to send [16:13:31]OFD Sender: No OFD packet to send [16:13:36]OFD Sender: No OFD packet to send [16:13:41]OFD Sender: No OFD packet to send [16:13:46]OFD Sender: No OFD packet to send [16:13:51]OFD Sender: No OFD packet to send [16:13:56]OFD Sender: No OFD packet to send [16:14:01]OFD Sender: No OFD packet to send [16:14:06]OFD Sender: No OFD packet to send [16:14:11]OFD Sender: No OFD packet to send [16:14:16]OFD Sender: No OFD packet to send [16:14:21]OFD Sender: No OFD packet to send [16:14:26]OFD Sender: No OFD packet to send [16:14:31]OFD Sender: No OFD packet to send [16:14:36]OFD Sender: No OFD packet to send [16:14:41]OFD Sender: No OFD packet to send [16:14:46]OFD Sender: No OFD packet to send [16:14:51]OFD Sender: No OFD packet to send [16:14:54]accept exits with 8 [16:14:54]New connection [16:14:54]New thread 3066568036 created [16:14:54]Thread 3066711396 joined [16:14:54]Waiting for new connection... [16:14:54] Sock 8.Parse request [16:14:54]Sock 8.Check first char [16:14:54]Sock 8.First char is OK [16:14:54]request: POST /json_proto HTTP/1.0 [16:14:54]Method: POST [16:14:54]URL: /json_proto [16:14:54]Method is POST - this is cgi request [16:14:54]url: /json_proto [16:14:54]query_string will be loaded in cgi processing [16:14:54]execute_cgi json_proto POST (null) [16:14:54]execute_cgi path=json_proto method=POST [16:14:54]POST find Content-Length [16:14:54]Host: 172.17.50.3:8080 [16:14:54]Content-Length: 689 [16:14:54]Content-Type: application/json [16:14:54] [16:14:54]POST finish read [16:14:54]Found Content-Length = 689 [16:14:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 20.730, "sum" : 1600.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:54]execute_script... [16:14:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 20.730, "sum" : 1600.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:54]POST & json_proto [16:14:54]process_json_proto [16:14:54]json parsed OK: [16:14:54]protocol is kg_v1.0 [16:14:54]action value=close_receipt [16:14:54]process_action close_receipt [16:14:54]cmd_close_receipt [16:14:54]MH_GetDate [16:14:54]Write to MH i2c: F0 00 00 A2 13 A4 [16:14:54]Write i2c OK [16:14:54]MH_I2C_Read... [16:14:54]Read from MH i2c: F0 [16:14:54]MH_I2C_Read... [16:14:54]Read from MH i2c: F0 09 00 [16:14:54]MH_I2C_Read... [16:14:54]Read from MH i2c: F0 09 00 A2 13 00 7F 2C 15 67 6B 98 1E 66 5B [16:14:54]GetLastDocTimeStamp 1729440679 [16:14:54]current date 1729440895 [16:14:54]FM_GetShiftState [16:14:54]SAM_PROTO_GetShiftState [16:14:54]wFMCommunicate request_size=4 [16:14:54]MH_SAM_APDU [16:14:54]CAPDU: 80 13 01 00 [16:14:54]Write to MH i2c: E2 08 00 A3 13 80 13 01 00 00 00 00 00 33 [16:14:54]Write i2c OK [16:14:54]MH_I2C_Read... [16:14:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:54]Read from MH i2c: E2 [16:14:54]MH_I2C_Read... [16:14:54]Read from MH i2c: E2 0E 00 [16:14:54]MH_I2C_Read... [16:14:54]Read from MH i2c: E2 0E 00 A3 13 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 39 [16:14:54]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:14:54]wFMCommunicate OK [16:14:54]SAM_PROTO_GetShiftState done [16:14:54]FM_GetShiftState done [16:14:54]opened in 1729383220 [16:14:54]opened+sec_in_day 1729469620 [16:14:54]quantity*price = 160035 [16:14:54]sum+1 = 160037 [16:14:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.95 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 262 20.10.2024 16:14 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69417 ФПД: 133169463607381 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161455&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69417&fm=133169463607381&tin=02508201610067®Number=0000000000156251&sum=160000 [16:14:55]StoreToDocumentArchive [16:14:55]shift 193 fd 69417 [16:14:55]save to /storage/0193/doc_00069417 [16:14:55]save last doc name /storage/0193/doc_00069417 to /storage/kkm_last_doc_name [16:14:55]save OK [16:14:55]Clear old archive folders... [16:14:55]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:14:55]tlvbuf is 0025F270 [16:14:55]SAM_PROTO_ClearQueue [16:14:55]wFMCommunicate request_size=4 [16:14:55]MH_SAM_APDU [16:14:55]CAPDU: 80 09 00 00 [16:14:55]Write to MH i2c: E2 08 00 B0 13 80 09 00 00 00 00 00 00 35 [16:14:55]Write i2c OK [16:14:55]MH_I2C_Read... [16:14:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:14:55]Read from MH i2c: E2 [16:14:55]MH_I2C_Read... [16:14:55]Read from MH i2c: E2 03 00 [16:14:55]MH_I2C_Read... [16:14:55]Read from MH i2c: E2 03 00 B0 13 00 90 00 37 [16:14:55]RAPDU: 90 00 [16:14:55]wFMCommunicate OK [16:14:55]SAM_PROTO_ClearQueue done [16:14:55]KKMCreateOFDPacket [16:14:55]OFDProtocolAddRootSTLVToBuf [16:14:55]FM_MakeSignedData [16:14:55]FM_MakeSignedData [16:14:55]SAM_PROTO_SignData [16:14:55]wFMCommunicate request_size=4 [16:14:55]MH_SAM_APDU [16:14:55]CAPDU: 80 0D 01 02 [16:14:55]Write to MH i2c: E2 08 00 B1 13 80 0D 01 02 00 00 00 00 3D [16:14:55]Write i2c OK [16:14:55]MH_I2C_Read... [16:14:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:14:55]Read from MH i2c: E2 [16:14:55]MH_I2C_Read... [16:14:55]Read from MH i2c: E2 03 00 [16:14:55]MH_I2C_Read... [16:14:55]Read from MH i2c: E2 03 00 B1 13 00 90 00 38 [16:14:55]RAPDU: 90 00 [16:14:55]wFMCommunicate OK [16:14:55]wFMCommunicate request_size=255 [16:14:55]MH_SAM_APDU [16:14:55]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 FA 50 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 24 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 7F 2C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 29 0F 01 [16:14:55]Write to MH i2c: E2 02 01 B2 13 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 FA 50 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 24 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 7F 2C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 29 0F 01 00 00 14 [16:14:55]Write i2c OK [16:14:55]MH_I2C_Read... [16:14:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:55]Read from MH i2c: E2 [16:14:55]MH_I2C_Read... [16:14:55]Read from MH i2c: E2 03 00 [16:14:55]MH_I2C_Read... [16:14:55]Read from MH i2c: E2 03 00 B2 13 00 90 00 39 [16:14:55]RAPDU: 90 00 [16:14:55]wFMCommunicate OK [16:14:55]wFMCommunicate request_size=16 [16:14:55]MH_SAM_APDU [16:14:55]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 79 1D EE 92 C0 55 [16:14:55]Write to MH i2c: E2 13 00 B3 13 80 0D 02 02 0B 00 00 35 04 06 00 79 1D EE 92 C0 55 00 00 C0 [16:14:55]Write i2c OK [16:14:55]MH_I2C_Read... [16:14:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:55]Read from MH i2c: E2 [16:14:55]MH_I2C_Read... [16:14:55]Read from MH i2c: E2 03 00 [16:14:55]MH_I2C_Read... [16:14:55]Read from MH i2c: E2 03 00 B3 13 00 90 00 3A [16:14:55]RAPDU: 90 00 [16:14:55]wFMCommunicate OK [16:14:55]wFMCommunicate request_size=4 [16:14:55]MH_SAM_APDU [16:14:55]CAPDU: 80 0D 03 02 [16:14:55]Write to MH i2c: E2 08 00 B4 13 80 0D 03 02 00 00 00 00 42 [16:14:55]Write i2c OK [16:14:55]MH_I2C_Read... [16:14:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:14:56]Read from MH i2c: E2 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: E2 0B 00 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: E2 0B 00 B4 13 00 A7 13 4E 65 A4 88 BF AF 90 00 4A [16:14:56]RAPDU: A7 13 4E 65 A4 88 BF AF 90 00 [16:14:56]wFMCommunicate OK [16:14:56]SAM_PROTO_SignData done [16:14:56]FM_MakeSignedData done [16:14:56]CreateOFDProtocolMessage [16:14:56]wFMCommunicate request_size=4 [16:14:56]MH_SAM_APDU [16:14:56]CAPDU: 80 11 00 00 [16:14:56]Write to MH i2c: E2 08 00 B5 13 80 11 00 00 00 00 00 00 42 [16:14:56]Write i2c OK [16:14:56]MH_I2C_Read... [16:14:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:56]Read from MH i2c: E2 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: E2 17 00 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: E2 17 00 B5 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 94 [16:14:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:14:56]wFMCommunicate OK [16:14:56]CreateOFDProtocolMessage done [16:14:56]OFDSenderStorePacket 69417 [16:14:56]StoreOFDPacket docnum=69417 [16:14:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 6B 76 0D 01 A4 52 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 FA 50 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 24 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 7F 2C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 29 0F 01 00 35 04 06 00 79 1D EE 92 C0 55 A7 13 4E 65 A4 88 BF AF [16:14:56]CheckFolder [16:14:56]dirname=/storage/ofd_packets [16:14:56]CheckFolder done [16:14:56]ProducePacketName [16:14:56]name=ofd_packets/00069417 [16:14:56]NVStorageSaveData ofd_packets/00069417 [16:14:56]File name is /storage/ofd_packets/00069417 [16:14:56]Write 307 bytes [16:14:56]NVStorageSaveData done [16:14:56]OFDSenderStorePacket done [16:14:56]KKMCreateOFDPacket done [16:14:56]NVStorageSaveData kkm_last_timestamp [16:14:56]File name is /storage/kkm_last_timestamp [16:14:56]Write 4 bytes [16:14:56]NVStorageSaveData done [16:14:56]ExternCall_PrintAddStr [16:14:56]wPrintStart [16:14:56]Write to MH i2c: 01 00 00 B6 13 C9 [16:14:56]Write i2c OK [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: 01 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: 01 07 00 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: 01 07 00 B6 13 00 00 00 00 00 FF 0F DE [16:14:56]RasterBufferAndPrint [16:14:56]line Счет N : (1)2885144 [16:14:56]line ИНН: 02508201610067 [16:14:56]line Контрольно-Кассовый Чек [16:14:56]line ПРОДАЖА [16:14:56]line ТРК (МРК, ГНК) : 11 [16:14:56]line Товар: 2710194240 [16:14:56]line D-ENERGY Дт-К-2 [16:14:56]line 20.730 * 77.20 [16:14:56]line = 1600.36 [16:14:56]line НДС 12% НСП 1% [16:14:56]line > о реализуемом товаре [16:14:56]line ОКРУГЛЕНИЕ: -0.36 [16:14:56]line ИТОГО: 1600.00 [16:14:56]line Внесено: 1600.00 [16:14:56]line СДАЧА: 0.00 [16:14:56]line НСП 1% : 14.16 [16:14:56]line НДС 12% : 169.95 [16:14:56]line Наличными: 1600.00 [16:14:56]line Безнал.: 0.00 [16:14:56]line Место: АЗС № 85 "Партнер Нефть" [16:14:56]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:14:56]line СНО: Общий режим [16:14:56]line Чек 262 20.10.2024 16:14 [16:14:56]line Смена: 193 ФФД: 1.0 [16:14:56]line ЗНМ: 0300000167 [16:14:56]line РНМ: 0000000000156251 [16:14:56]line Версия ККМ: v1.0 [16:14:56]line ФМ: 0000000000963346 [16:14:56]line ФД: 69417 [16:14:56]line ФПД: 133169463607381 [16:14:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161455&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69417&fm=133169463607381&tin=02508201610067®Number=0000000000156251&sum=160000 [16:14:56]OFD Sender: Processing packet 69417 [packets to send 18, broken 17] [16:14:56]ProducePacketName [16:14:56]name=ofd_packets/00069417 [16:14:56]OFD Sender: To server: pG, [16:14:56]CommunicateWithHost lk.salyk.kg:30040 [16:14:56]ConnectInit lk.salyk.kg [16:14:56]written 0, free lines is 4095 [16:14:56]Connected sock=10 [16:14:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 6B 76 0D 01 A4 52 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 FA 50 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 24 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 7F 2C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 29 0F 01 00 35 04 06 00 79 1D EE 92 C0 55 A7 13 4E 65 A4 88 BF AF [16:14:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 06 FE 47 00 2D 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 29 0F 01 00 F4 03 04 00 25 D6 14 67 B6 04 01 00 00 77 51 71 69 FF F7 E7 8E [16:14:56]CommunicateWithHost err = 0 [16:14:56]CheckOFDResponse [16:14:56]1017 (14) - 77093643461234 [16:14:56]1041 (16) - 0000000000963346 [16:14:56]1040 (4) - 69417 [16:14:56]1012 (4) - 20.10.2024 10:06 [16:14:56]1206 (1) - 0 [16:14:56]OFD Sender: Remove packet 69417 [16:14:56]ProducePacketName [16:14:56]name=ofd_packets/00069417 [16:14:56]NVStorageDeleteData [16:14:56]Write to MH i2c: 01 00 00 E1 13 F4 [16:14:56]Write i2c OK [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: 01 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: 01 07 00 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: 01 07 00 E1 13 00 00 00 00 00 F6 0C FD [16:14:56]RasterBufferAndPrint [16:14:56]line [16:14:56]line [16:14:56]line [16:14:56]line [16:14:56]line [16:14:56]written 0, free lines is 3324 [16:14:56]MH_Cut [16:14:56]Write to MH i2c: D1 01 00 E8 13 01 CD [16:14:56]Write i2c OK [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: D1 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: D1 01 00 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: D1 01 00 E8 13 00 CC [16:14:56]Write to MH i2c: 01 00 00 E9 13 FC [16:14:56]Write i2c OK [16:14:56]MH_I2C_Read... [16:14:57]OFD Sender: No OFD packet to send [16:14:57]*** Cut start [16:14:57]*** Partial cut [16:14:57]*** CUTSNS_PIN = 1 [16:14:57]*** CUTSNS_PIN = 0 [16:14:57]*** Brake cut motor [16:14:58]Read from MH i2c: 01 [16:14:58]MH_I2C_Read... [16:14:58]*** Stop cut motor [16:14:58]*** Cut end [16:14:58]Read from MH i2c: 01 07 00 [16:14:58]MH_I2C_Read... [16:14:58]Read from MH i2c: 01 07 00 E9 13 00 00 00 00 00 FF 0F 11 [16:14:58]process_action close_receipt done [16:14:58]requested_data is exist [16:14:58]produce_requested_data [16:14:58]requested_item fm.sn is exist - process it [16:14:58]wFMCommunicate request_size=4 [16:14:58]MH_SAM_APDU [16:14:58]CAPDU: 80 11 00 00 [16:14:58]Write to MH i2c: E2 08 00 EA 13 80 11 00 00 00 00 00 00 77 [16:14:58]Write i2c OK [16:14:58]MH_I2C_Read... [16:14:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:58]Read from MH i2c: E2 [16:14:58]MH_I2C_Read... [16:14:58]Read from MH i2c: E2 17 00 [16:14:58]MH_I2C_Read... [16:14:58]Read from MH i2c: E2 17 00 EA 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C9 [16:14:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:14:58]wFMCommunicate OK [16:14:58]requested_item fd.num is exist - process it [16:14:58]SAM_PROTO_GetFieldsCounters [16:14:58]wFMCommunicate request_size=4 [16:14:58]MH_SAM_APDU [16:14:58]CAPDU: 80 13 00 00 [16:14:58]Write to MH i2c: E2 08 00 EB 13 80 13 00 00 00 00 00 00 7A [16:14:58]Write i2c OK [16:14:58]MH_I2C_Read... [16:14:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:14:58]Read from MH i2c: E2 [16:14:58]MH_I2C_Read... [16:14:58]Read from MH i2c: E2 62 00 [16:14:58]MH_I2C_Read... [16:14:58]Read from MH i2c: E2 62 00 EB 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 29 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 A4 [16:14:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 29 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:14:58]wFMCommunicate OK [16:14:58]SAM_PROTO_GetFieldsCounters done [16:14:58]requested_item shift.num is exist - process it [16:14:58]requested_item shift.opened is exist - process it [16:14:58]req_shift_opened [16:14:58]FM_GetShiftState [16:14:58]SAM_PROTO_GetShiftState [16:14:58]wFMCommunicate request_size=4 [16:14:58]MH_SAM_APDU [16:14:58]CAPDU: 80 13 01 00 [16:14:58]Write to MH i2c: E2 08 00 EC 13 80 13 01 00 00 00 00 00 7C [16:14:58]Write i2c OK [16:14:58]MH_I2C_Read... [16:14:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:58]Read from MH i2c: E2 [16:14:58]MH_I2C_Read... [16:14:58]Read from MH i2c: E2 0E 00 [16:14:58]MH_I2C_Read... [16:14:58]Read from MH i2c: E2 0E 00 EC 13 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 82 [16:14:58]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:14:58]wFMCommunicate OK [16:14:58]SAM_PROTO_GetShiftState done [16:14:58]FM_GetShiftState done [16:14:58]req_shift_opened done [16:14:58]requested_item shift.open_date is exist - process it [16:14:58]req_shift_open_date [16:14:58]req_shift_open_date done [16:14:58]produce_requested_data done [16:14:58]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69417,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [16:14:58]process_action_free close_receipt [16:14:58]json_value_free [16:14:58]json_value_free done [16:14:58]process_json_proto returns [16:14:58]Send response to host [16:14:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69417,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [16:14:58]free response buf [16:14:58]execute_script done [16:14:58]execute_script returns [16:14:58]free content buf [16:14:58]Sock 8.Close socket [16:14:58]Sock 8.Thread stoped [16:15:02]OFD Sender: No OFD packet to send [16:15:07]OFD Sender: No OFD packet to send [16:15:12]OFD Sender: No OFD packet to send [16:15:17]OFD Sender: No OFD packet to send [16:15:22]OFD Sender: No OFD packet to send [16:15:27]OFD Sender: No OFD packet to send [16:15:32]OFD Sender: No OFD packet to send [16:15:37]OFD Sender: No OFD packet to send [16:15:42]OFD Sender: No OFD packet to send [16:15:47]OFD Sender: No OFD packet to send [16:15:52]OFD Sender: No OFD packet to send [16:15:57]OFD Sender: No OFD packet to send [16:16:02]OFD Sender: No OFD packet to send [16:16:07]OFD Sender: No OFD packet to send [16:16:08]accept exits with 9 [16:16:08]New connection [16:16:08]New thread 3066711396 created [16:16:08]Thread 3066568036 joined [16:16:08]Waiting for new connection... [16:16:08] Sock 9.Parse request [16:16:08]Sock 9.Check first char [16:16:08]Sock 9.First char is OK [16:16:08]request: POST /json_proto HTTP/1.0 [16:16:08]Method: POST [16:16:08]URL: /json_proto [16:16:08]Method is POST - this is cgi request [16:16:08]url: /json_proto [16:16:08]query_string will be loaded in cgi processing [16:16:08]execute_cgi json_proto POST (null) [16:16:08]execute_cgi path=json_proto method=POST [16:16:08]POST find Content-Length [16:16:08]Host: 172.17.50.3:8080 [16:16:08]Content-Length: 679 [16:16:08]Content-Type: application/json [16:16:08] [16:16:08]POST finish read [16:16:08]Found Content-Length = 679 [16:16:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:08]execute_script... [16:16:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:08]POST & json_proto [16:16:08]process_json_proto [16:16:08]json parsed OK: [16:16:08]protocol is kg_v1.0 [16:16:08]action value=close_receipt [16:16:08]process_action close_receipt [16:16:08]cmd_close_receipt [16:16:08]MH_GetDate [16:16:08]Write to MH i2c: F0 00 00 ED 13 EF [16:16:08]Write i2c OK [16:16:08]MH_I2C_Read... [16:16:08]Read from MH i2c: F0 [16:16:08]MH_I2C_Read... [16:16:08]Read from MH i2c: F0 09 00 [16:16:08]MH_I2C_Read... [16:16:08]Read from MH i2c: F0 09 00 ED 13 00 C9 2C 15 67 6B 98 1E 66 F0 [16:16:08]GetLastDocTimeStamp 1729440895 [16:16:08]current date 1729440969 [16:16:08]FM_GetShiftState [16:16:08]SAM_PROTO_GetShiftState [16:16:08]wFMCommunicate request_size=4 [16:16:08]MH_SAM_APDU [16:16:08]CAPDU: 80 13 01 00 [16:16:08]Write to MH i2c: E2 08 00 EE 13 80 13 01 00 00 00 00 00 7E [16:16:08]Write i2c OK [16:16:08]MH_I2C_Read... [16:16:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:08]Read from MH i2c: E2 [16:16:08]MH_I2C_Read... [16:16:08]Read from MH i2c: E2 0E 00 [16:16:08]MH_I2C_Read... [16:16:08]Read from MH i2c: E2 0E 00 EE 13 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 84 [16:16:08]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:16:08]wFMCommunicate OK [16:16:08]SAM_PROTO_GetShiftState done [16:16:08]FM_GetShiftState done [16:16:08]opened in 1729383220 [16:16:08]opened+sec_in_day 1729469620 [16:16:08]quantity*price = 70044 [16:16:08]sum+1 = 70045 [16:16:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 263 20.10.2024 16:16 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69418 ФПД: 138109054849058 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161609&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69418&fm=138109054849058&tin=02508201610067®Number=0000000000156251&sum=70000 [16:16:09]StoreToDocumentArchive [16:16:09]shift 193 fd 69418 [16:16:09]save to /storage/0193/doc_00069418 [16:16:09]save last doc name /storage/0193/doc_00069418 to /storage/kkm_last_doc_name [16:16:09]save OK [16:16:09]Clear old archive folders... [16:16:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:16:09]tlvbuf is 00278530 [16:16:09]SAM_PROTO_ClearQueue [16:16:09]wFMCommunicate request_size=4 [16:16:09]MH_SAM_APDU [16:16:09]CAPDU: 80 09 00 00 [16:16:09]Write to MH i2c: E2 08 00 FB 13 80 09 00 00 00 00 00 00 80 [16:16:09]Write i2c OK [16:16:09]MH_I2C_Read... [16:16:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:16:09]Read from MH i2c: E2 [16:16:09]MH_I2C_Read... [16:16:09]Read from MH i2c: E2 03 00 [16:16:09]MH_I2C_Read... [16:16:09]Read from MH i2c: E2 03 00 FB 13 00 90 00 82 [16:16:09]RAPDU: 90 00 [16:16:09]wFMCommunicate OK [16:16:09]SAM_PROTO_ClearQueue done [16:16:09]KKMCreateOFDPacket [16:16:09]OFDProtocolAddRootSTLVToBuf [16:16:09]FM_MakeSignedData [16:16:09]FM_MakeSignedData [16:16:09]SAM_PROTO_SignData [16:16:09]wFMCommunicate request_size=4 [16:16:09]MH_SAM_APDU [16:16:09]CAPDU: 80 0D 01 02 [16:16:09]Write to MH i2c: E2 08 00 FC 13 80 0D 01 02 00 00 00 00 88 [16:16:09]Write i2c OK [16:16:09]MH_I2C_Read... [16:16:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:16:09]Read from MH i2c: E2 [16:16:09]MH_I2C_Read... [16:16:09]Read from MH i2c: E2 03 00 [16:16:09]MH_I2C_Read... [16:16:09]Read from MH i2c: E2 03 00 FC 13 00 90 00 83 [16:16:09]RAPDU: 90 00 [16:16:09]wFMCommunicate OK [16:16:09]wFMCommunicate request_size=255 [16:16:09]MH_SAM_APDU [16:16:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 C9 2C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2A 0F 01 00 35 04 06 00 7D [16:16:09]Write to MH i2c: E2 02 01 FD 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 C9 2C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2A 0F 01 00 35 04 06 00 7D 00 00 12 [16:16:09]Write i2c OK [16:16:09]MH_I2C_Read... [16:16:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:09]Read from MH i2c: E2 [16:16:09]MH_I2C_Read... [16:16:09]Read from MH i2c: E2 03 00 [16:16:09]MH_I2C_Read... [16:16:09]Read from MH i2c: E2 03 00 FD 13 00 90 00 84 [16:16:09]RAPDU: 90 00 [16:16:09]wFMCommunicate OK [16:16:09]wFMCommunicate request_size=10 [16:16:09]MH_SAM_APDU [16:16:09]CAPDU: 80 0D 02 02 05 9C 05 27 90 22 [16:16:09]Write to MH i2c: E2 0D 00 FE 13 80 0D 02 02 05 00 9C 05 27 90 22 00 00 0F [16:16:09]Write i2c OK [16:16:09]MH_I2C_Read... [16:16:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:09]Read from MH i2c: E2 [16:16:09]MH_I2C_Read... [16:16:09]Read from MH i2c: E2 03 00 [16:16:09]MH_I2C_Read... [16:16:09]Read from MH i2c: E2 03 00 FE 13 00 90 00 85 [16:16:09]RAPDU: 90 00 [16:16:09]wFMCommunicate OK [16:16:09]wFMCommunicate request_size=4 [16:16:09]MH_SAM_APDU [16:16:09]CAPDU: 80 0D 03 02 [16:16:09]Write to MH i2c: E2 08 00 FF 13 80 0D 03 02 00 00 00 00 8D [16:16:09]Write i2c OK [16:16:09]MH_I2C_Read... [16:16:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:16:09]Read from MH i2c: E2 [16:16:09]MH_I2C_Read... [16:16:09]Read from MH i2c: E2 0B 00 [16:16:09]MH_I2C_Read... [16:16:09]Read from MH i2c: E2 0B 00 FF 13 00 95 DB C9 07 EF F1 66 7C 90 00 90 [16:16:09]RAPDU: 95 DB C9 07 EF F1 66 7C 90 00 [16:16:09]wFMCommunicate OK [16:16:09]SAM_PROTO_SignData done [16:16:09]FM_MakeSignedData done [16:16:09]CreateOFDProtocolMessage [16:16:09]wFMCommunicate request_size=4 [16:16:09]MH_SAM_APDU [16:16:09]CAPDU: 80 11 00 00 [16:16:09]Write to MH i2c: E2 08 00 00 14 80 11 00 00 00 00 00 00 8E [16:16:09]Write i2c OK [16:16:09]MH_I2C_Read... [16:16:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:09]Read from MH i2c: E2 [16:16:09]MH_I2C_Read... [16:16:10]Read from MH i2c: E2 17 00 [16:16:10]MH_I2C_Read... [16:16:10]Read from MH i2c: E2 17 00 00 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E0 [16:16:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:16:10]wFMCommunicate OK [16:16:10]CreateOFDProtocolMessage done [16:16:10]OFDSenderStorePacket 69418 [16:16:10]StoreOFDPacket docnum=69418 [16:16:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 B1 4F 07 01 96 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 C9 2C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2A 0F 01 00 35 04 06 00 7D 9C 05 27 90 22 95 DB C9 07 EF F1 66 7C [16:16:10]CheckFolder [16:16:10]dirname=/storage/ofd_packets [16:16:10]CheckFolder done [16:16:10]ProducePacketName [16:16:10]name=ofd_packets/00069418 [16:16:10]NVStorageSaveData ofd_packets/00069418 [16:16:10]File name is /storage/ofd_packets/00069418 [16:16:10]Write 301 bytes [16:16:10]NVStorageSaveData done [16:16:10]OFDSenderStorePacket done [16:16:10]KKMCreateOFDPacket done [16:16:10]NVStorageSaveData kkm_last_timestamp [16:16:10]File name is /storage/kkm_last_timestamp [16:16:10]Write 4 bytes [16:16:10]NVStorageSaveData done [16:16:10]ExternCall_PrintAddStr [16:16:10]wPrintStart [16:16:10]Write to MH i2c: 01 00 00 01 14 15 [16:16:10]Write i2c OK [16:16:10]MH_I2C_Read... [16:16:10]Read from MH i2c: 01 [16:16:10]MH_I2C_Read... [16:16:10]Read from MH i2c: 01 07 00 [16:16:10]MH_I2C_Read... [16:16:10]Read from MH i2c: 01 07 00 01 14 00 00 00 00 00 FF 0F 2A [16:16:10]RasterBufferAndPrint [16:16:10]line Счет N : (1)2885145 [16:16:10]line ИНН: 02508201610067 [16:16:10]line Контрольно-Кассовый Чек [16:16:10]line ПРОДАЖА [16:16:10]line ТРК (МРК, ГНК) : 32 [16:16:10]line Товар: 2710124130 [16:16:10]line Аи-92-К-5 [16:16:10]line 10.470 * 66.90 [16:16:10]line = 700.44 [16:16:10]line НДС 12% НСП 1% [16:16:10]line > о реализуемом товаре [16:16:10]line ОКРУГЛЕНИЕ: -0.44 [16:16:10]line ИТОГО: 700.00 [16:16:10]line Внесено: 700.00 [16:16:10]line СДАЧА: 0.00 [16:16:10]line НСП 1% : 6.20 [16:16:10]line НДС 12% : 74.38 [16:16:10]line Наличными: 700.00 [16:16:10]line Безнал.: 0.00 [16:16:10]line Место: АЗС № 85 "Партнер Нефть" [16:16:10]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:16:10]line СНО: Общий режим [16:16:10]line Чек 263 20.10.2024 16:16 [16:16:10]line Смена: 193 ФФД: 1.0 [16:16:10]line ЗНМ: 0300000167 [16:16:10]line РНМ: 0000000000156251 [16:16:10]line Версия ККМ: v1.0 [16:16:10]line ФМ: 0000000000963346 [16:16:10]line ФД: 69418 [16:16:10]line ФПД: 138109054849058 [16:16:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161609&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69418&fm=138109054849058&tin=02508201610067®Number=0000000000156251&sum=70000 [16:16:10]OFD Sender: Processing packet 69418 [packets to send 18, broken 17] [16:16:10]ProducePacketName [16:16:10]name=ofd_packets/00069418 [16:16:10]OFD Sender: To server: pG, [16:16:10]CommunicateWithHost lk.salyk.kg:30040 [16:16:10]ConnectInit lk.salyk.kg [16:16:10]written 0, free lines is 4095 [16:16:10]Connected sock=10 [16:16:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 B1 4F 07 01 96 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 C9 2C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2A 0F 01 00 35 04 06 00 7D 9C 05 27 90 22 95 DB C9 07 EF F1 66 7C [16:16:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 F6 3E 47 00 B8 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2A 0F 01 00 F4 03 04 00 6F D6 14 67 B6 04 01 00 00 B1 6D EA CE A4 78 7F 19 [16:16:10]CommunicateWithHost err = 0 [16:16:10]CheckOFDResponse [16:16:10]1017 (14) - 77093643461234 [16:16:10]1041 (16) - 0000000000963346 [16:16:10]1040 (4) - 69418 [16:16:10]1012 (4) - 20.10.2024 10:07 [16:16:10]1206 (1) - 0 [16:16:10]OFD Sender: Remove packet 69418 [16:16:10]ProducePacketName [16:16:10]name=ofd_packets/00069418 [16:16:10]NVStorageDeleteData [16:16:10]Write to MH i2c: 01 00 00 2C 14 40 [16:16:10]Write i2c OK [16:16:10]MH_I2C_Read... [16:16:10]Read from MH i2c: 01 [16:16:10]MH_I2C_Read... [16:16:10]Read from MH i2c: 01 07 00 [16:16:10]MH_I2C_Read... [16:16:10]Read from MH i2c: 01 07 00 2C 14 00 00 00 00 00 EE 0C 41 [16:16:10]RasterBufferAndPrint [16:16:10]line [16:16:10]line [16:16:10]line [16:16:10]line [16:16:10]line [16:16:10]written 0, free lines is 3316 [16:16:10]MH_Cut [16:16:10]Write to MH i2c: D1 01 00 33 14 01 19 [16:16:10]Write i2c OK [16:16:10]MH_I2C_Read... [16:16:10]Read from MH i2c: D1 [16:16:10]MH_I2C_Read... [16:16:10]Read from MH i2c: D1 01 00 [16:16:10]MH_I2C_Read... [16:16:10]Read from MH i2c: D1 01 00 33 14 00 18 [16:16:10]Write to MH i2c: 01 00 00 34 14 48 [16:16:10]Write i2c OK [16:16:10]MH_I2C_Read... [16:16:11]OFD Sender: No OFD packet to send [16:16:11]*** Cut start [16:16:11]*** Partial cut [16:16:11]*** CUTSNS_PIN = 1 [16:16:11]*** CUTSNS_PIN = 0 [16:16:11]*** Brake cut motor [16:16:12]Read from MH i2c: 01 [16:16:12]MH_I2C_Read... [16:16:12]*** Stop cut motor [16:16:12]*** Cut end [16:16:12]Read from MH i2c: 01 07 00 [16:16:12]MH_I2C_Read... [16:16:12]Read from MH i2c: 01 07 00 34 14 00 00 00 00 00 FF 0F 5D [16:16:12]process_action close_receipt done [16:16:12]requested_data is exist [16:16:12]produce_requested_data [16:16:12]requested_item fm.sn is exist - process it [16:16:12]wFMCommunicate request_size=4 [16:16:12]MH_SAM_APDU [16:16:12]CAPDU: 80 11 00 00 [16:16:12]Write to MH i2c: E2 08 00 35 14 80 11 00 00 00 00 00 00 C3 [16:16:12]Write i2c OK [16:16:12]MH_I2C_Read... [16:16:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:12]Read from MH i2c: E2 [16:16:12]MH_I2C_Read... [16:16:12]Read from MH i2c: E2 17 00 [16:16:12]MH_I2C_Read... [16:16:12]Read from MH i2c: E2 17 00 35 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 15 [16:16:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:16:12]wFMCommunicate OK [16:16:12]requested_item fd.num is exist - process it [16:16:12]SAM_PROTO_GetFieldsCounters [16:16:12]wFMCommunicate request_size=4 [16:16:12]MH_SAM_APDU [16:16:12]CAPDU: 80 13 00 00 [16:16:12]Write to MH i2c: E2 08 00 36 14 80 13 00 00 00 00 00 00 C6 [16:16:12]Write i2c OK [16:16:12]MH_I2C_Read... [16:16:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:16:12]Read from MH i2c: E2 [16:16:12]MH_I2C_Read... [16:16:12]Read from MH i2c: E2 62 00 [16:16:12]MH_I2C_Read... [16:16:12]Read from MH i2c: E2 62 00 36 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2A 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 F4 [16:16:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2A 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:16:12]wFMCommunicate OK [16:16:12]SAM_PROTO_GetFieldsCounters done [16:16:12]requested_item shift.num is exist - process it [16:16:12]requested_item shift.opened is exist - process it [16:16:12]req_shift_opened [16:16:12]FM_GetShiftState [16:16:12]SAM_PROTO_GetShiftState [16:16:12]wFMCommunicate request_size=4 [16:16:12]MH_SAM_APDU [16:16:12]CAPDU: 80 13 01 00 [16:16:12]Write to MH i2c: E2 08 00 37 14 80 13 01 00 00 00 00 00 C8 [16:16:12]Write i2c OK [16:16:12]MH_I2C_Read... [16:16:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:12]Read from MH i2c: E2 [16:16:12]MH_I2C_Read... [16:16:12]Read from MH i2c: E2 0E 00 [16:16:12]MH_I2C_Read... [16:16:12]Read from MH i2c: E2 0E 00 37 14 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 CE [16:16:12]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:16:12]wFMCommunicate OK [16:16:12]SAM_PROTO_GetShiftState done [16:16:12]FM_GetShiftState done [16:16:12]req_shift_opened done [16:16:12]requested_item shift.open_date is exist - process it [16:16:12]req_shift_open_date [16:16:12]req_shift_open_date done [16:16:12]produce_requested_data done [16:16:12]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69418,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [16:16:12]process_action_free close_receipt [16:16:12]json_value_free [16:16:12]json_value_free done [16:16:12]process_json_proto returns [16:16:12]Send response to host [16:16:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69418,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [16:16:12]free response buf [16:16:12]execute_script done [16:16:12]execute_script returns [16:16:12]free content buf [16:16:12]Sock 9.Close socket [16:16:12]Sock 9.Thread stoped [16:16:16]OFD Sender: No OFD packet to send [16:16:21]OFD Sender: No OFD packet to send [16:16:26]OFD Sender: No OFD packet to send [16:16:31]OFD Sender: No OFD packet to send [16:16:36]OFD Sender: No OFD packet to send [16:16:41]OFD Sender: No OFD packet to send [16:16:46]OFD Sender: No OFD packet to send [16:16:51]OFD Sender: No OFD packet to send [16:16:56]OFD Sender: No OFD packet to send [16:17:01]OFD Sender: No OFD packet to send [16:17:06]OFD Sender: No OFD packet to send [16:17:11]OFD Sender: No OFD packet to send [16:17:16]OFD Sender: No OFD packet to send [16:17:21]OFD Sender: No OFD packet to send [16:17:26]OFD Sender: No OFD packet to send [16:17:31]OFD Sender: No OFD packet to send [16:17:36]OFD Sender: No OFD packet to send [16:17:41]OFD Sender: No OFD packet to send [16:17:46]OFD Sender: No OFD packet to send [16:17:51]OFD Sender: No OFD packet to send [16:17:56]OFD Sender: No OFD packet to send [16:18:01]OFD Sender: No OFD packet to send [16:18:06]OFD Sender: No OFD packet to send [16:18:11]OFD Sender: No OFD packet to send [16:18:16]OFD Sender: No OFD packet to send [16:18:21]OFD Sender: No OFD packet to send [16:18:26]OFD Sender: No OFD packet to send [16:18:30]accept exits with 8 [16:18:30]New connection [16:18:30]New thread 3066568036 created [16:18:30]Thread 3066711396 joined [16:18:30]Waiting for new connection... [16:18:30] Sock 8.Parse request [16:18:30]Sock 8.Check first char [16:18:30]Sock 8.First char is OK [16:18:30]request: POST /json_proto HTTP/1.0 [16:18:30]Method: POST [16:18:30]URL: /json_proto [16:18:30]Method is POST - this is cgi request [16:18:30]url: /json_proto [16:18:30]query_string will be loaded in cgi processing [16:18:30]execute_cgi json_proto POST (null) [16:18:30]execute_cgi path=json_proto method=POST [16:18:30]POST find Content-Length [16:18:30]Host: 172.17.50.3:8080 [16:18:30]Content-Length: 689 [16:18:30]Content-Type: application/json [16:18:30] [16:18:30]POST finish read [16:18:30]Found Content-Length = 689 [16:18:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 16.840, "sum" : 1300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:30]execute_script... [16:18:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 16.840, "sum" : 1300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:30]POST & json_proto [16:18:30]process_json_proto [16:18:30]json parsed OK: [16:18:30]protocol is kg_v1.0 [16:18:30]action value=close_receipt [16:18:30]process_action close_receipt [16:18:30]cmd_close_receipt [16:18:30]MH_GetDate [16:18:30]Write to MH i2c: F0 00 00 38 14 3B [16:18:30]Write i2c OK [16:18:30]MH_I2C_Read... [16:18:30]Read from MH i2c: F0 [16:18:30]MH_I2C_Read... [16:18:30]Read from MH i2c: F0 09 00 [16:18:30]MH_I2C_Read... [16:18:30]Read from MH i2c: F0 09 00 38 14 00 56 2D 15 67 6B 98 1E 66 CA [16:18:30]GetLastDocTimeStamp 1729440969 [16:18:30]current date 1729441110 [16:18:30]FM_GetShiftState [16:18:30]SAM_PROTO_GetShiftState [16:18:30]wFMCommunicate request_size=4 [16:18:30]MH_SAM_APDU [16:18:30]CAPDU: 80 13 01 00 [16:18:30]Write to MH i2c: E2 08 00 39 14 80 13 01 00 00 00 00 00 CA [16:18:30]Write i2c OK [16:18:30]MH_I2C_Read... [16:18:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:30]Read from MH i2c: E2 [16:18:30]MH_I2C_Read... [16:18:30]Read from MH i2c: E2 0E 00 [16:18:30]MH_I2C_Read... [16:18:30]Read from MH i2c: E2 0E 00 39 14 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 D0 [16:18:30]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:18:30]wFMCommunicate OK [16:18:30]SAM_PROTO_GetShiftState done [16:18:30]FM_GetShiftState done [16:18:30]opened in 1729383220 [16:18:30]opened+sec_in_day 1729469620 [16:18:30]quantity*price = 130004 [16:18:30]sum+1 = 130006 [16:18:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.50 НДС 12% : 138.06 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 264 20.10.2024 16:18 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69419 ФПД: 89686257177577 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161830&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69419&fm=89686257177577&tin=02508201610067®Number=0000000000156251&sum=130000 [16:18:31]StoreToDocumentArchive [16:18:31]shift 193 fd 69419 [16:18:31]save to /storage/0193/doc_00069419 [16:18:31]save last doc name /storage/0193/doc_00069419 to /storage/kkm_last_doc_name [16:18:31]save OK [16:18:31]Clear old archive folders... [16:18:31]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:18:31]tlvbuf is 00249BE0 [16:18:31]SAM_PROTO_ClearQueue [16:18:31]wFMCommunicate request_size=4 [16:18:31]MH_SAM_APDU [16:18:31]CAPDU: 80 09 00 00 [16:18:31]Write to MH i2c: E2 08 00 46 14 80 09 00 00 00 00 00 00 CC [16:18:31]Write i2c OK [16:18:31]MH_I2C_Read... [16:18:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:18:31]Read from MH i2c: E2 [16:18:31]MH_I2C_Read... [16:18:31]Read from MH i2c: E2 03 00 [16:18:31]MH_I2C_Read... [16:18:31]Read from MH i2c: E2 03 00 46 14 00 90 00 CE [16:18:31]RAPDU: 90 00 [16:18:31]wFMCommunicate OK [16:18:31]SAM_PROTO_ClearQueue done [16:18:31]KKMCreateOFDPacket [16:18:31]OFDProtocolAddRootSTLVToBuf [16:18:31]FM_MakeSignedData [16:18:31]FM_MakeSignedData [16:18:31]SAM_PROTO_SignData [16:18:31]wFMCommunicate request_size=4 [16:18:31]MH_SAM_APDU [16:18:31]CAPDU: 80 0D 01 02 [16:18:31]Write to MH i2c: E2 08 00 47 14 80 0D 01 02 00 00 00 00 D4 [16:18:31]Write i2c OK [16:18:31]MH_I2C_Read... [16:18:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:18:31]OFD Sender: No OFD packet to send [16:18:31]Read from MH i2c: E2 [16:18:31]MH_I2C_Read... [16:18:31]Read from MH i2c: E2 03 00 [16:18:31]MH_I2C_Read... [16:18:31]Read from MH i2c: E2 03 00 47 14 00 90 00 CF [16:18:31]RAPDU: 90 00 [16:18:31]wFMCommunicate OK [16:18:31]wFMCommunicate request_size=255 [16:18:31]MH_SAM_APDU [16:18:31]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 C8 41 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D5 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 56 2D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2B 0F 01 [16:18:31]Write to MH i2c: E2 02 01 48 14 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 C8 41 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D5 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 56 2D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2B 0F 01 00 00 A5 [16:18:31]Write i2c OK [16:18:31]MH_I2C_Read... [16:18:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:31]Read from MH i2c: E2 [16:18:31]MH_I2C_Read... [16:18:31]Read from MH i2c: E2 03 00 [16:18:31]MH_I2C_Read... [16:18:31]Read from MH i2c: E2 03 00 48 14 00 90 00 D0 [16:18:31]RAPDU: 90 00 [16:18:31]wFMCommunicate OK [16:18:31]wFMCommunicate request_size=16 [16:18:31]MH_SAM_APDU [16:18:31]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 51 91 B5 80 13 E9 [16:18:31]Write to MH i2c: E2 13 00 49 14 80 0D 02 02 0B 00 00 35 04 06 00 51 91 B5 80 13 E9 00 00 3F [16:18:31]Write i2c OK [16:18:31]MH_I2C_Read... [16:18:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:31]Read from MH i2c: E2 [16:18:31]MH_I2C_Read... [16:18:31]Read from MH i2c: E2 03 00 [16:18:31]MH_I2C_Read... [16:18:31]Read from MH i2c: E2 03 00 49 14 00 90 00 D1 [16:18:31]RAPDU: 90 00 [16:18:31]wFMCommunicate OK [16:18:31]wFMCommunicate request_size=4 [16:18:31]MH_SAM_APDU [16:18:31]CAPDU: 80 0D 03 02 [16:18:31]Write to MH i2c: E2 08 00 4A 14 80 0D 03 02 00 00 00 00 D9 [16:18:31]Write i2c OK [16:18:31]MH_I2C_Read... [16:18:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:18:31]Read from MH i2c: E2 [16:18:31]MH_I2C_Read... [16:18:31]Read from MH i2c: E2 0B 00 [16:18:31]MH_I2C_Read... [16:18:31]Read from MH i2c: E2 0B 00 4A 14 00 97 F6 70 66 95 7B 94 C9 90 00 AA [16:18:31]RAPDU: 97 F6 70 66 95 7B 94 C9 90 00 [16:18:31]wFMCommunicate OK [16:18:31]SAM_PROTO_SignData done [16:18:31]FM_MakeSignedData done [16:18:31]CreateOFDProtocolMessage [16:18:31]wFMCommunicate request_size=4 [16:18:31]MH_SAM_APDU [16:18:31]CAPDU: 80 11 00 00 [16:18:31]Write to MH i2c: E2 08 00 4B 14 80 11 00 00 00 00 00 00 D9 [16:18:31]Write i2c OK [16:18:31]MH_I2C_Read... [16:18:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:31]Read from MH i2c: E2 [16:18:31]MH_I2C_Read... [16:18:31]Read from MH i2c: E2 17 00 [16:18:31]MH_I2C_Read... [16:18:31]Read from MH i2c: E2 17 00 4B 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2B [16:18:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:18:31]wFMCommunicate OK [16:18:31]CreateOFDProtocolMessage done [16:18:31]OFDSenderStorePacket 69419 [16:18:31]StoreOFDPacket docnum=69419 [16:18:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 E7 42 0D 01 66 62 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 C8 41 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D5 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 56 2D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2B 0F 01 00 35 04 06 00 51 91 B5 80 13 E9 97 F6 70 66 95 7B 94 C9 [16:18:31]CheckFolder [16:18:31]dirname=/storage/ofd_packets [16:18:31]CheckFolder done [16:18:31]ProducePacketName [16:18:31]name=ofd_packets/00069419 [16:18:31]NVStorageSaveData ofd_packets/00069419 [16:18:31]File name is /storage/ofd_packets/00069419 [16:18:31]Write 307 bytes [16:18:31]NVStorageSaveData done [16:18:31]OFDSenderStorePacket done [16:18:31]KKMCreateOFDPacket done [16:18:31]NVStorageSaveData kkm_last_timestamp [16:18:31]File name is /storage/kkm_last_timestamp [16:18:31]Write 4 bytes [16:18:31]NVStorageSaveData done [16:18:31]ExternCall_PrintAddStr [16:18:31]wPrintStart [16:18:31]Write to MH i2c: 01 00 00 4C 14 60 [16:18:31]Write i2c OK [16:18:31]MH_I2C_Read... [16:18:31]Read from MH i2c: 01 [16:18:31]MH_I2C_Read... [16:18:31]Read from MH i2c: 01 07 00 [16:18:31]MH_I2C_Read... [16:18:31]Read from MH i2c: 01 07 00 4C 14 00 00 00 00 00 FF 0F 75 [16:18:31]RasterBufferAndPrint [16:18:31]line Счет N : (1)2885146 [16:18:31]line ИНН: 02508201610067 [16:18:31]line Контрольно-Кассовый Чек [16:18:31]line ПРОДАЖА [16:18:31]line ТРК (МРК, ГНК) : 21 [16:18:31]line Товар: 2710194240 [16:18:31]line D-ENERGY Дт-К-2 [16:18:31]line 16.840 * 77.20 [16:18:31]line = 1300.05 [16:18:31]line НДС 12% НСП 1% [16:18:31]line > о реализуемом товаре [16:18:31]line ОКРУГЛЕНИЕ: -0.05 [16:18:31]line ИТОГО: 1300.00 [16:18:31]line Внесено: 1300.00 [16:18:31]line СДАЧА: 0.00 [16:18:31]line НСП 1% : 11.50 [16:18:31]line НДС 12% : 138.06 [16:18:31]line Наличными: 1300.00 [16:18:31]line Безнал.: 0.00 [16:18:31]line Место: АЗС № 85 "Партнер Нефть" [16:18:31]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:18:31]line СНО: Общий режим [16:18:31]line Чек 264 20.10.2024 16:18 [16:18:31]line Смена: 193 ФФД: 1.0 [16:18:31]line ЗНМ: 0300000167 [16:18:31]line РНМ: 0000000000156251 [16:18:31]line Версия ККМ: v1.0 [16:18:31]line ФМ: 0000000000963346 [16:18:31]line ФД: 69419 [16:18:32]line ФПД: 89686257177577 [16:18:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161830&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69419&fm=89686257177577&tin=02508201610067®Number=0000000000156251&sum=130000 [16:18:32]OFD Sender: Processing packet 69419 [packets to send 18, broken 17] [16:18:32]ProducePacketName [16:18:32]name=ofd_packets/00069419 [16:18:32]OFD Sender: To server: pG, [16:18:32]CommunicateWithHost lk.salyk.kg:30040 [16:18:32]ConnectInit lk.salyk.kg [16:18:32]written 0, free lines is 4095 [16:18:32]Connected sock=10 [16:18:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 E7 42 0D 01 66 62 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 C8 41 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D5 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 56 2D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2B 0F 01 00 35 04 06 00 51 91 B5 80 13 E9 97 F6 70 66 95 7B 94 C9 [16:18:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 CC 2F 47 00 48 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2B 0F 01 00 F4 03 04 00 FD D6 14 67 B6 04 01 00 00 36 BD F3 1D 5D FB 1C 5C [16:18:32]CommunicateWithHost err = 0 [16:18:32]CheckOFDResponse [16:18:32]1017 (14) - 77093643461234 [16:18:32]1041 (16) - 0000000000963346 [16:18:32]1040 (4) - 69419 [16:18:32]1012 (4) - 20.10.2024 10:10 [16:18:32]1206 (1) - 0 [16:18:32]OFD Sender: Remove packet 69419 [16:18:32]ProducePacketName [16:18:32]name=ofd_packets/00069419 [16:18:32]NVStorageDeleteData [16:18:32]Write to MH i2c: 01 00 00 77 14 8B [16:18:32]Write i2c OK [16:18:32]MH_I2C_Read... [16:18:32]Read from MH i2c: 01 [16:18:32]MH_I2C_Read... [16:18:32]Read from MH i2c: 01 07 00 [16:18:32]MH_I2C_Read... [16:18:32]Read from MH i2c: 01 07 00 77 14 00 00 00 00 00 F3 0C 91 [16:18:32]RasterBufferAndPrint [16:18:32]line [16:18:32]line [16:18:32]line [16:18:32]line [16:18:32]line [16:18:32]written 0, free lines is 3321 [16:18:32]MH_Cut [16:18:32]Write to MH i2c: D1 01 00 7E 14 01 64 [16:18:32]Write i2c OK [16:18:32]MH_I2C_Read... [16:18:32]Read from MH i2c: D1 [16:18:32]MH_I2C_Read... [16:18:32]Read from MH i2c: D1 01 00 [16:18:32]MH_I2C_Read... [16:18:32]Read from MH i2c: D1 01 00 7E 14 00 63 [16:18:32]Write to MH i2c: 01 00 00 7F 14 93 [16:18:32]Write i2c OK [16:18:32]MH_I2C_Read... [16:18:32]OFD Sender: No OFD packet to send [16:18:33]*** Cut start [16:18:33]*** Partial cut [16:18:33]*** CUTSNS_PIN = 1 [16:18:33]*** CUTSNS_PIN = 0 [16:18:33]*** Brake cut motor [16:18:33]Read from MH i2c: 01 [16:18:33]MH_I2C_Read... [16:18:33]*** Stop cut motor [16:18:33]*** Cut end [16:18:33]Read from MH i2c: 01 07 00 [16:18:33]MH_I2C_Read... [16:18:33]Read from MH i2c: 01 07 00 7F 14 00 00 00 00 00 FF 0F A8 [16:18:33]process_action close_receipt done [16:18:33]requested_data is exist [16:18:33]produce_requested_data [16:18:33]requested_item fm.sn is exist - process it [16:18:33]wFMCommunicate request_size=4 [16:18:33]MH_SAM_APDU [16:18:33]CAPDU: 80 11 00 00 [16:18:33]Write to MH i2c: E2 08 00 80 14 80 11 00 00 00 00 00 00 0E [16:18:33]Write i2c OK [16:18:33]MH_I2C_Read... [16:18:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:33]Read from MH i2c: E2 [16:18:33]MH_I2C_Read... [16:18:33]Read from MH i2c: E2 17 00 [16:18:33]MH_I2C_Read... [16:18:33]Read from MH i2c: E2 17 00 80 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 60 [16:18:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:18:33]wFMCommunicate OK [16:18:33]requested_item fd.num is exist - process it [16:18:33]SAM_PROTO_GetFieldsCounters [16:18:33]wFMCommunicate request_size=4 [16:18:33]MH_SAM_APDU [16:18:33]CAPDU: 80 13 00 00 [16:18:33]Write to MH i2c: E2 08 00 81 14 80 13 00 00 00 00 00 00 11 [16:18:33]Write i2c OK [16:18:33]MH_I2C_Read... [16:18:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:18:34]Read from MH i2c: E2 [16:18:34]MH_I2C_Read... [16:18:34]Read from MH i2c: E2 62 00 [16:18:34]MH_I2C_Read... [16:18:34]Read from MH i2c: E2 62 00 81 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2B 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 43 [16:18:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2B 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:18:34]wFMCommunicate OK [16:18:34]SAM_PROTO_GetFieldsCounters done [16:18:34]requested_item shift.num is exist - process it [16:18:34]requested_item shift.opened is exist - process it [16:18:34]req_shift_opened [16:18:34]FM_GetShiftState [16:18:34]SAM_PROTO_GetShiftState [16:18:34]wFMCommunicate request_size=4 [16:18:34]MH_SAM_APDU [16:18:34]CAPDU: 80 13 01 00 [16:18:34]Write to MH i2c: E2 08 00 82 14 80 13 01 00 00 00 00 00 13 [16:18:34]Write i2c OK [16:18:34]MH_I2C_Read... [16:18:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:34]Read from MH i2c: E2 [16:18:34]MH_I2C_Read... [16:18:34]Read from MH i2c: E2 0E 00 [16:18:34]MH_I2C_Read... [16:18:34]Read from MH i2c: E2 0E 00 82 14 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 19 [16:18:34]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:18:34]wFMCommunicate OK [16:18:34]SAM_PROTO_GetShiftState done [16:18:34]FM_GetShiftState done [16:18:34]req_shift_opened done [16:18:34]requested_item shift.open_date is exist - process it [16:18:34]req_shift_open_date [16:18:34]req_shift_open_date done [16:18:34]produce_requested_data done [16:18:34]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69419,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [16:18:34]process_action_free close_receipt [16:18:34]json_value_free [16:18:34]json_value_free done [16:18:34]process_json_proto returns [16:18:34]Send response to host [16:18:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69419,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [16:18:34]free response buf [16:18:34]execute_script done [16:18:34]execute_script returns [16:18:34]free content buf [16:18:34]Sock 8.Close socket [16:18:34]Sock 8.Thread stoped [16:18:37]OFD Sender: No OFD packet to send [16:18:42]OFD Sender: No OFD packet to send [16:18:47]OFD Sender: No OFD packet to send [16:18:52]OFD Sender: No OFD packet to send [16:18:57]OFD Sender: No OFD packet to send [16:19:02]OFD Sender: No OFD packet to send [16:19:07]OFD Sender: No OFD packet to send [16:19:12]OFD Sender: No OFD packet to send [16:19:17]OFD Sender: No OFD packet to send [16:19:22]OFD Sender: No OFD packet to send [16:19:27]OFD Sender: No OFD packet to send [16:19:32]OFD Sender: No OFD packet to send [16:19:37]OFD Sender: No OFD packet to send [16:19:42]OFD Sender: No OFD packet to send [16:19:47]OFD Sender: No OFD packet to send [16:19:52]OFD Sender: No OFD packet to send [16:19:57]OFD Sender: No OFD packet to send [16:20:02]OFD Sender: No OFD packet to send [16:20:07]OFD Sender: No OFD packet to send [16:20:12]OFD Sender: No OFD packet to send [16:20:17]OFD Sender: No OFD packet to send [16:20:18]accept exits with 9 [16:20:18]New connection [16:20:18]New thread 3066711396 created [16:20:18]Thread 3066568036 joined [16:20:18]Waiting for new connection... [16:20:18] Sock 9.Parse request [16:20:18]Sock 9.Check first char [16:20:18]Sock 9.First char is OK [16:20:18]request: POST /json_proto HTTP/1.0 [16:20:18]Method: POST [16:20:18]URL: /json_proto [16:20:18]Method is POST - this is cgi request [16:20:18]url: /json_proto [16:20:18]query_string will be loaded in cgi processing [16:20:18]execute_cgi json_proto POST (null) [16:20:18]execute_cgi path=json_proto method=POST [16:20:18]POST find Content-Length [16:20:18]Host: 172.17.50.3:8080 [16:20:18]Content-Length: 675 [16:20:18]Content-Type: application/json [16:20:18] [16:20:18]POST finish read [16:20:18]Found Content-Length = 675 [16:20:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:18]execute_script... [16:20:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:18]POST & json_proto [16:20:18]process_json_proto [16:20:18]json parsed OK: [16:20:18]protocol is kg_v1.0 [16:20:18]action value=close_receipt [16:20:18]process_action close_receipt [16:20:18]cmd_close_receipt [16:20:18]MH_GetDate [16:20:18]Write to MH i2c: F0 00 00 83 14 86 [16:20:18]Write i2c OK [16:20:18]MH_I2C_Read... [16:20:18]Read from MH i2c: F0 [16:20:18]MH_I2C_Read... [16:20:18]Read from MH i2c: F0 09 00 [16:20:18]MH_I2C_Read... [16:20:18]Read from MH i2c: F0 09 00 83 14 00 C3 2D 15 67 6B 98 1E 66 82 [16:20:18]GetLastDocTimeStamp 1729441110 [16:20:18]current date 1729441219 [16:20:18]FM_GetShiftState [16:20:18]SAM_PROTO_GetShiftState [16:20:18]wFMCommunicate request_size=4 [16:20:18]MH_SAM_APDU [16:20:18]CAPDU: 80 13 01 00 [16:20:18]Write to MH i2c: E2 08 00 84 14 80 13 01 00 00 00 00 00 15 [16:20:18]Write i2c OK [16:20:18]MH_I2C_Read... [16:20:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:18]Read from MH i2c: E2 [16:20:18]MH_I2C_Read... [16:20:18]Read from MH i2c: E2 0E 00 [16:20:18]MH_I2C_Read... [16:20:18]Read from MH i2c: E2 0E 00 84 14 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 1B [16:20:18]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:20:18]wFMCommunicate OK [16:20:18]SAM_PROTO_GetShiftState done [16:20:18]FM_GetShiftState done [16:20:18]opened in 1729383220 [16:20:18]opened+sec_in_day 1729469620 [16:20:18]quantity*price = 50063 [16:20:18]sum+1 = 50064 [16:20:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 265 20.10.2024 16:20 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69420 ФПД: 102673318324638 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T162019&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69420&fm=102673318324638&tin=02508201610067®Number=0000000000156251&sum=50000 [16:20:19]StoreToDocumentArchive [16:20:19]shift 193 fd 69420 [16:20:19]save to /storage/0193/doc_00069420 [16:20:19]save last doc name /storage/0193/doc_00069420 to /storage/kkm_last_doc_name [16:20:19]save OK [16:20:19]Clear old archive folders... [16:20:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:20:19]tlvbuf is 0021A0A0 [16:20:19]SAM_PROTO_ClearQueue [16:20:19]wFMCommunicate request_size=4 [16:20:19]MH_SAM_APDU [16:20:19]CAPDU: 80 09 00 00 [16:20:19]Write to MH i2c: E2 08 00 91 14 80 09 00 00 00 00 00 00 17 [16:20:19]Write i2c OK [16:20:19]MH_I2C_Read... [16:20:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:20:19]Read from MH i2c: E2 [16:20:19]MH_I2C_Read... [16:20:19]Read from MH i2c: E2 03 00 [16:20:19]MH_I2C_Read... [16:20:19]Read from MH i2c: E2 03 00 91 14 00 90 00 19 [16:20:19]RAPDU: 90 00 [16:20:19]wFMCommunicate OK [16:20:19]SAM_PROTO_ClearQueue done [16:20:19]KKMCreateOFDPacket [16:20:19]OFDProtocolAddRootSTLVToBuf [16:20:19]FM_MakeSignedData [16:20:19]FM_MakeSignedData [16:20:19]SAM_PROTO_SignData [16:20:19]wFMCommunicate request_size=4 [16:20:19]MH_SAM_APDU [16:20:19]CAPDU: 80 0D 01 02 [16:20:19]Write to MH i2c: E2 08 00 92 14 80 0D 01 02 00 00 00 00 1F [16:20:19]Write i2c OK [16:20:19]MH_I2C_Read... [16:20:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:20:19]Read from MH i2c: E2 [16:20:19]MH_I2C_Read... [16:20:19]Read from MH i2c: E2 03 00 [16:20:19]MH_I2C_Read... [16:20:19]Read from MH i2c: E2 03 00 92 14 00 90 00 1A [16:20:19]RAPDU: 90 00 [16:20:19]wFMCommunicate OK [16:20:19]wFMCommunicate request_size=255 [16:20:19]MH_SAM_APDU [16:20:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 C3 2D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2C 0F 01 00 35 04 06 00 5D 61 7E AA [16:20:19]Write to MH i2c: E2 02 01 93 14 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 C3 2D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2C 0F 01 00 35 04 06 00 5D 61 7E AA 00 00 7F [16:20:19]Write i2c OK [16:20:19]MH_I2C_Read... [16:20:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:19]Read from MH i2c: E2 [16:20:19]MH_I2C_Read... [16:20:19]Read from MH i2c: E2 03 00 [16:20:19]MH_I2C_Read... [16:20:19]Read from MH i2c: E2 03 00 93 14 00 90 00 1B [16:20:19]RAPDU: 90 00 [16:20:19]wFMCommunicate OK [16:20:19]wFMCommunicate request_size=7 [16:20:19]MH_SAM_APDU [16:20:19]CAPDU: 80 0D 02 02 02 A9 9E [16:20:19]Write to MH i2c: E2 0A 00 94 14 80 0D 02 02 02 00 A9 9E 00 00 6D [16:20:19]Write i2c OK [16:20:19]MH_I2C_Read... [16:20:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:19]Read from MH i2c: E2 [16:20:19]MH_I2C_Read... [16:20:19]Read from MH i2c: E2 03 00 [16:20:19]MH_I2C_Read... [16:20:19]Read from MH i2c: E2 03 00 94 14 00 90 00 1C [16:20:19]RAPDU: 90 00 [16:20:19]wFMCommunicate OK [16:20:19]wFMCommunicate request_size=4 [16:20:19]MH_SAM_APDU [16:20:19]CAPDU: 80 0D 03 02 [16:20:19]Write to MH i2c: E2 08 00 95 14 80 0D 03 02 00 00 00 00 24 [16:20:19]Write i2c OK [16:20:19]MH_I2C_Read... [16:20:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:20:20]Read from MH i2c: E2 [16:20:20]MH_I2C_Read... [16:20:20]Read from MH i2c: E2 0B 00 [16:20:20]MH_I2C_Read... [16:20:20]Read from MH i2c: E2 0B 00 95 14 00 74 80 3F 41 DB 4D 43 37 90 00 3B [16:20:20]RAPDU: 74 80 3F 41 DB 4D 43 37 90 00 [16:20:20]wFMCommunicate OK [16:20:20]SAM_PROTO_SignData done [16:20:20]FM_MakeSignedData done [16:20:20]CreateOFDProtocolMessage [16:20:20]wFMCommunicate request_size=4 [16:20:20]MH_SAM_APDU [16:20:20]CAPDU: 80 11 00 00 [16:20:20]Write to MH i2c: E2 08 00 96 14 80 11 00 00 00 00 00 00 24 [16:20:20]Write i2c OK [16:20:20]MH_I2C_Read... [16:20:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:20]Read from MH i2c: E2 [16:20:20]MH_I2C_Read... [16:20:20]Read from MH i2c: E2 17 00 [16:20:20]MH_I2C_Read... [16:20:20]Read from MH i2c: E2 17 00 96 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 76 [16:20:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:20:20]wFMCommunicate OK [16:20:20]CreateOFDProtocolMessage done [16:20:20]OFDSenderStorePacket 69420 [16:20:20]StoreOFDPacket docnum=69420 [16:20:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 90 58 04 01 2F 84 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 C3 2D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2C 0F 01 00 35 04 06 00 5D 61 7E AA A9 9E 74 80 3F 41 DB 4D 43 37 [16:20:20]CheckFolder [16:20:20]dirname=/storage/ofd_packets [16:20:20]CheckFolder done [16:20:20]ProducePacketName [16:20:20]name=ofd_packets/00069420 [16:20:20]NVStorageSaveData ofd_packets/00069420 [16:20:20]File name is /storage/ofd_packets/00069420 [16:20:20]Write 298 bytes [16:20:20]NVStorageSaveData done [16:20:20]OFDSenderStorePacket done [16:20:20]KKMCreateOFDPacket done [16:20:20]NVStorageSaveData kkm_last_timestamp [16:20:20]File name is /storage/kkm_last_timestamp [16:20:20]Write 4 bytes [16:20:20]NVStorageSaveData done [16:20:20]OFD Sender: Processing packet 69420 [packets to send 18, broken 17] [16:20:20]ProducePacketName [16:20:20]name=ofd_packets/00069420 [16:20:20]OFD Sender: To server: pG, [16:20:20]CommunicateWithHost lk.salyk.kg:30040 [16:20:20]ConnectInit lk.salyk.kg [16:20:20]ExternCall_PrintAddStr [16:20:20]wPrintStart [16:20:20]Write to MH i2c: 01 00 00 97 14 AB [16:20:20]Write i2c OK [16:20:20]MH_I2C_Read... [16:20:20]Read from MH i2c: 01 [16:20:20]MH_I2C_Read... [16:20:20]Read from MH i2c: 01 07 00 [16:20:20]MH_I2C_Read... [16:20:20]Read from MH i2c: 01 07 00 97 14 00 00 00 00 00 FF 0F C0 [16:20:20]RasterBufferAndPrint [16:20:20]line Счет N : (1)2885147 [16:20:20]line ИНН: 02508201610067 [16:20:20]line Контрольно-Кассовый Чек [16:20:20]line ПРОДАЖА [16:20:20]line ТРК (МРК, ГНК) : 51 [16:20:20]line Товар: 2710194210 [16:20:20]line ДТ-К-5 [16:20:20]line 6.570 * 76.20 [16:20:20]line = 500.63 [16:20:20]line НДС 12% НСП 1% [16:20:20]line > о реализуемом товаре [16:20:20]line ОКРУГЛЕНИЕ: -0.63 [16:20:20]line ИТОГО: 500.00 [16:20:20]line Внесено: 500.00 [16:20:20]line СДАЧА: 0.00 [16:20:20]line НСП 1% : 4.43 [16:20:20]line НДС 12% : 53.16 [16:20:20]line Наличными: 500.00 [16:20:20]line Безнал.: 0.00 [16:20:20]line Место: АЗС № 85 "Партнер Нефть" [16:20:20]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:20:20]line СНО: Общий режим [16:20:20]line Чек 265 20.10.2024 16:20 [16:20:20]line Смена: 193 ФФД: 1.0 [16:20:20]line ЗНМ: 0300000167 [16:20:20]line РНМ: 0000000000156251 [16:20:20]line Версия ККМ: v1.0 [16:20:20]line ФМ: 0000000000963346 [16:20:20]line ФД: 69420 [16:20:20]line ФПД: 102673318324638 [16:20:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T162019&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69420&fm=102673318324638&tin=02508201610067®Number=0000000000156251&sum=50000 [16:20:20]Connected sock=11 [16:20:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 90 58 04 01 2F 84 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 C3 2D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2C 0F 01 00 35 04 06 00 5D 61 7E AA A9 9E 74 80 3F 41 DB 4D 43 37 [16:20:20]written 0, free lines is 4095 [16:20:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 DF 22 47 00 36 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2C 0F 01 00 F4 03 04 00 69 D7 14 67 B6 04 01 00 00 D3 71 80 61 9A 78 DD 67 [16:20:20]CommunicateWithHost err = 0 [16:20:20]CheckOFDResponse [16:20:20]1017 (14) - 77093643461234 [16:20:20]1041 (16) - 0000000000963346 [16:20:20]1040 (4) - 69420 [16:20:20]1012 (4) - 20.10.2024 10:11 [16:20:20]1206 (1) - 0 [16:20:20]OFD Sender: Remove packet 69420 [16:20:20]ProducePacketName [16:20:20]name=ofd_packets/00069420 [16:20:20]NVStorageDeleteData [16:20:20]Write to MH i2c: 01 00 00 C2 14 D6 [16:20:20]Write i2c OK [16:20:20]MH_I2C_Read... [16:20:20]Read from MH i2c: 01 [16:20:20]MH_I2C_Read... [16:20:20]Read from MH i2c: 01 07 00 [16:20:20]MH_I2C_Read... [16:20:20]Read from MH i2c: 01 07 00 C2 14 00 00 00 00 00 F9 0C E2 [16:20:20]RasterBufferAndPrint [16:20:20]line [16:20:20]line [16:20:20]line [16:20:20]line [16:20:20]line [16:20:20]written 0, free lines is 3328 [16:20:20]MH_Cut [16:20:20]Write to MH i2c: D1 01 00 C9 14 01 AF [16:20:20]Write i2c OK [16:20:20]MH_I2C_Read... [16:20:20]Read from MH i2c: D1 [16:20:20]MH_I2C_Read... [16:20:20]Read from MH i2c: D1 01 00 [16:20:20]MH_I2C_Read... [16:20:20]Read from MH i2c: D1 01 00 C9 14 00 AE [16:20:20]Write to MH i2c: 01 00 00 CA 14 DE [16:20:20]Write i2c OK [16:20:20]MH_I2C_Read... [16:20:21]OFD Sender: No OFD packet to send [16:20:21]*** Cut start [16:20:21]*** Partial cut [16:20:21]*** CUTSNS_PIN = 1 [16:20:21]*** CUTSNS_PIN = 0 [16:20:21]*** Brake cut motor [16:20:22]Read from MH i2c: 01 [16:20:22]MH_I2C_Read... [16:20:22]*** Stop cut motor [16:20:22]*** Cut end [16:20:22]Read from MH i2c: 01 07 00 [16:20:22]MH_I2C_Read... [16:20:22]Read from MH i2c: 01 07 00 CA 14 00 00 00 00 00 FF 0F F3 [16:20:22]process_action close_receipt done [16:20:22]requested_data is exist [16:20:22]produce_requested_data [16:20:22]requested_item fm.sn is exist - process it [16:20:22]wFMCommunicate request_size=4 [16:20:22]MH_SAM_APDU [16:20:22]CAPDU: 80 11 00 00 [16:20:22]Write to MH i2c: E2 08 00 CB 14 80 11 00 00 00 00 00 00 59 [16:20:22]Write i2c OK [16:20:22]MH_I2C_Read... [16:20:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:22]Read from MH i2c: E2 [16:20:22]MH_I2C_Read... [16:20:22]Read from MH i2c: E2 17 00 [16:20:22]MH_I2C_Read... [16:20:22]Read from MH i2c: E2 17 00 CB 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AB [16:20:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:20:22]wFMCommunicate OK [16:20:22]requested_item fd.num is exist - process it [16:20:22]SAM_PROTO_GetFieldsCounters [16:20:22]wFMCommunicate request_size=4 [16:20:22]MH_SAM_APDU [16:20:22]CAPDU: 80 13 00 00 [16:20:22]Write to MH i2c: E2 08 00 CC 14 80 13 00 00 00 00 00 00 5C [16:20:22]Write i2c OK [16:20:22]MH_I2C_Read... [16:20:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:20:22]Read from MH i2c: E2 [16:20:22]MH_I2C_Read... [16:20:22]Read from MH i2c: E2 62 00 [16:20:22]MH_I2C_Read... [16:20:22]Read from MH i2c: E2 62 00 CC 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2C 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 92 [16:20:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2C 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:20:22]wFMCommunicate OK [16:20:22]SAM_PROTO_GetFieldsCounters done [16:20:22]requested_item shift.num is exist - process it [16:20:22]requested_item shift.opened is exist - process it [16:20:22]req_shift_opened [16:20:22]FM_GetShiftState [16:20:22]SAM_PROTO_GetShiftState [16:20:22]wFMCommunicate request_size=4 [16:20:22]MH_SAM_APDU [16:20:22]CAPDU: 80 13 01 00 [16:20:22]Write to MH i2c: E2 08 00 CD 14 80 13 01 00 00 00 00 00 5E [16:20:22]Write i2c OK [16:20:22]MH_I2C_Read... [16:20:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:22]Read from MH i2c: E2 [16:20:22]MH_I2C_Read... [16:20:22]Read from MH i2c: E2 0E 00 [16:20:22]MH_I2C_Read... [16:20:22]Read from MH i2c: E2 0E 00 CD 14 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 64 [16:20:22]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:20:22]wFMCommunicate OK [16:20:22]SAM_PROTO_GetShiftState done [16:20:22]FM_GetShiftState done [16:20:22]req_shift_opened done [16:20:22]requested_item shift.open_date is exist - process it [16:20:22]req_shift_open_date [16:20:22]req_shift_open_date done [16:20:22]produce_requested_data done [16:20:22]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69420,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [16:20:22]process_action_free close_receipt [16:20:22]json_value_free [16:20:22]json_value_free done [16:20:22]process_json_proto returns [16:20:22]Send response to host [16:20:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69420,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [16:20:22]free response buf [16:20:22]execute_script done [16:20:22]execute_script returns [16:20:22]free content buf [16:20:22]Sock 9.Close socket [16:20:22]Sock 9.Thread stoped [16:20:26]OFD Sender: No OFD packet to send [16:20:31]OFD Sender: No OFD packet to send [16:20:36]OFD Sender: No OFD packet to send [16:20:41]OFD Sender: No OFD packet to send [16:20:46]OFD Sender: No OFD packet to send [16:20:51]OFD Sender: No OFD packet to send [16:20:56]OFD Sender: No OFD packet to send [16:21:01]OFD Sender: No OFD packet to send [16:21:06]OFD Sender: No OFD packet to send [16:21:11]OFD Sender: No OFD packet to send [16:21:16]OFD Sender: No OFD packet to send [16:21:21]OFD Sender: No OFD packet to send [16:21:26]OFD Sender: No OFD packet to send [16:21:26]accept exits with 8 [16:21:26]New connection [16:21:26]New thread 3066568036 created [16:21:26]Thread 3066711396 joined [16:21:26]Waiting for new connection... [16:21:26] Sock 8.Parse request [16:21:26]Sock 8.Check first char [16:21:26]Sock 8.First char is OK [16:21:26]request: POST /json_proto HTTP/1.0 [16:21:26]Method: POST [16:21:26]URL: /json_proto [16:21:26]Method is POST - this is cgi request [16:21:26]url: /json_proto [16:21:26]query_string will be loaded in cgi processing [16:21:26]execute_cgi json_proto POST (null) [16:21:26]execute_cgi path=json_proto method=POST [16:21:26]POST find Content-Length [16:21:26]Host: 172.17.50.3:8080 [16:21:26]Content-Length: 689 [16:21:26]Content-Type: application/json [16:21:26] [16:21:26]POST finish read [16:21:26]Found Content-Length = 689 [16:21:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:26]execute_script... [16:21:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:26]POST & json_proto [16:21:26]process_json_proto [16:21:26]json parsed OK: [16:21:26]protocol is kg_v1.0 [16:21:26]action value=close_receipt [16:21:26]process_action close_receipt [16:21:26]cmd_close_receipt [16:21:26]MH_GetDate [16:21:26]Write to MH i2c: F0 00 00 CE 14 D1 [16:21:26]Write i2c OK [16:21:26]MH_I2C_Read... [16:21:26]Read from MH i2c: F0 [16:21:26]MH_I2C_Read... [16:21:26]Read from MH i2c: F0 09 00 [16:21:26]MH_I2C_Read... [16:21:26]Read from MH i2c: F0 09 00 CE 14 00 07 2E 15 67 6B 98 1E 66 12 [16:21:26]GetLastDocTimeStamp 1729441219 [16:21:26]current date 1729441287 [16:21:26]FM_GetShiftState [16:21:26]SAM_PROTO_GetShiftState [16:21:26]wFMCommunicate request_size=4 [16:21:26]MH_SAM_APDU [16:21:26]CAPDU: 80 13 01 00 [16:21:26]Write to MH i2c: E2 08 00 CF 14 80 13 01 00 00 00 00 00 60 [16:21:26]Write i2c OK [16:21:26]MH_I2C_Read... [16:21:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:26]Read from MH i2c: E2 [16:21:26]MH_I2C_Read... [16:21:26]Read from MH i2c: E2 0E 00 [16:21:26]MH_I2C_Read... [16:21:26]Read from MH i2c: E2 0E 00 CF 14 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 66 [16:21:26]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:21:26]wFMCommunicate OK [16:21:26]SAM_PROTO_GetShiftState done [16:21:26]FM_GetShiftState done [16:21:26]opened in 1729383220 [16:21:26]opened+sec_in_day 1729469620 [16:21:26]quantity*price = 100051 [16:21:26]sum+1 = 100052 [16:21:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 266 20.10.2024 16:21 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69421 ФПД: 41447977160986 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T162127&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69421&fm=41447977160986&tin=02508201610067®Number=0000000000156251&sum=100000 [16:21:28]StoreToDocumentArchive [16:21:28]shift 193 fd 69421 [16:21:28]save to /storage/0193/doc_00069421 [16:21:28]save last doc name /storage/0193/doc_00069421 to /storage/kkm_last_doc_name [16:21:28]save OK [16:21:28]Clear old archive folders... [16:21:28]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:21:28]tlvbuf is B6E86330 [16:21:28]SAM_PROTO_ClearQueue [16:21:28]wFMCommunicate request_size=4 [16:21:28]MH_SAM_APDU [16:21:28]CAPDU: 80 09 00 00 [16:21:28]Write to MH i2c: E2 08 00 DC 14 80 09 00 00 00 00 00 00 62 [16:21:28]Write i2c OK [16:21:28]MH_I2C_Read... [16:21:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:21:28]Read from MH i2c: E2 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: E2 03 00 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: E2 03 00 DC 14 00 90 00 64 [16:21:28]RAPDU: 90 00 [16:21:28]wFMCommunicate OK [16:21:28]SAM_PROTO_ClearQueue done [16:21:28]KKMCreateOFDPacket [16:21:28]OFDProtocolAddRootSTLVToBuf [16:21:28]FM_MakeSignedData [16:21:28]FM_MakeSignedData [16:21:28]SAM_PROTO_SignData [16:21:28]wFMCommunicate request_size=4 [16:21:28]MH_SAM_APDU [16:21:28]CAPDU: 80 0D 01 02 [16:21:28]Write to MH i2c: E2 08 00 DD 14 80 0D 01 02 00 00 00 00 6A [16:21:28]Write i2c OK [16:21:28]MH_I2C_Read... [16:21:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:21:28]Read from MH i2c: E2 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: E2 03 00 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: E2 03 00 DD 14 00 90 00 65 [16:21:28]RAPDU: 90 00 [16:21:28]wFMCommunicate OK [16:21:28]wFMCommunicate request_size=255 [16:21:28]MH_SAM_APDU [16:21:28]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 07 2E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2D 0F 01 [16:21:28]Write to MH i2c: E2 02 01 DE 14 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 07 2E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2D 0F 01 00 00 76 [16:21:28]Write i2c OK [16:21:28]MH_I2C_Read... [16:21:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:28]Read from MH i2c: E2 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: E2 03 00 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: E2 03 00 DE 14 00 90 00 66 [16:21:28]RAPDU: 90 00 [16:21:28]wFMCommunicate OK [16:21:28]wFMCommunicate request_size=16 [16:21:28]MH_SAM_APDU [16:21:28]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 25 B2 5B F4 91 1A [16:21:28]Write to MH i2c: E2 13 00 DF 14 80 0D 02 02 0B 00 00 35 04 06 00 25 B2 5B F4 91 1A 00 00 93 [16:21:28]Write i2c OK [16:21:28]MH_I2C_Read... [16:21:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:28]Read from MH i2c: E2 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: E2 03 00 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: E2 03 00 DF 14 00 90 00 67 [16:21:28]RAPDU: 90 00 [16:21:28]wFMCommunicate OK [16:21:28]wFMCommunicate request_size=4 [16:21:28]MH_SAM_APDU [16:21:28]CAPDU: 80 0D 03 02 [16:21:28]Write to MH i2c: E2 08 00 E0 14 80 0D 03 02 00 00 00 00 6F [16:21:28]Write i2c OK [16:21:28]MH_I2C_Read... [16:21:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:21:28]Read from MH i2c: E2 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: E2 0B 00 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: E2 0B 00 E0 14 00 2E 5F C6 11 14 02 6C D5 90 00 2B [16:21:28]RAPDU: 2E 5F C6 11 14 02 6C D5 90 00 [16:21:28]wFMCommunicate OK [16:21:28]SAM_PROTO_SignData done [16:21:28]FM_MakeSignedData done [16:21:28]CreateOFDProtocolMessage [16:21:28]wFMCommunicate request_size=4 [16:21:28]MH_SAM_APDU [16:21:28]CAPDU: 80 11 00 00 [16:21:28]Write to MH i2c: E2 08 00 E1 14 80 11 00 00 00 00 00 00 6F [16:21:28]Write i2c OK [16:21:28]MH_I2C_Read... [16:21:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:28]Read from MH i2c: E2 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: E2 17 00 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: E2 17 00 E1 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C1 [16:21:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:21:28]wFMCommunicate OK [16:21:28]CreateOFDProtocolMessage done [16:21:28]OFDSenderStorePacket 69421 [16:21:28]StoreOFDPacket docnum=69421 [16:21:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 59 71 0D 01 FD 15 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 07 2E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2D 0F 01 00 35 04 06 00 25 B2 5B F4 91 1A 2E 5F C6 11 14 02 6C D5 [16:21:28]CheckFolder [16:21:28]dirname=/storage/ofd_packets [16:21:28]CheckFolder done [16:21:28]ProducePacketName [16:21:28]name=ofd_packets/00069421 [16:21:28]NVStorageSaveData ofd_packets/00069421 [16:21:28]File name is /storage/ofd_packets/00069421 [16:21:28]Write 307 bytes [16:21:28]NVStorageSaveData done [16:21:28]OFDSenderStorePacket done [16:21:28]KKMCreateOFDPacket done [16:21:28]NVStorageSaveData kkm_last_timestamp [16:21:28]File name is /storage/kkm_last_timestamp [16:21:28]Write 4 bytes [16:21:28]NVStorageSaveData done [16:21:28]ExternCall_PrintAddStr [16:21:28]wPrintStart [16:21:28]Write to MH i2c: 01 00 00 E2 14 F6 [16:21:28]Write i2c OK [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: 01 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: 01 07 00 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: 01 07 00 E2 14 00 00 00 00 00 FF 0F 0B [16:21:28]RasterBufferAndPrint [16:21:28]line Счет N : (1)2885148 [16:21:28]line ИНН: 02508201610067 [16:21:28]line Контрольно-Кассовый Чек [16:21:28]line ПРОДАЖА [16:21:28]line ТРК (МРК, ГНК) : 11 [16:21:28]line Товар: 2710194240 [16:21:28]line D-ENERGY Дт-К-2 [16:21:28]line 12.960 * 77.20 [16:21:28]line = 1000.51 [16:21:28]line НДС 12% НСП 1% [16:21:28]line > о реализуемом товаре [16:21:28]line ОКРУГЛЕНИЕ: -0.51 [16:21:28]line ИТОГО: 1000.00 [16:21:28]line Внесено: 1000.00 [16:21:28]line СДАЧА: 0.00 [16:21:28]line НСП 1% : 8.85 [16:21:28]line НДС 12% : 106.25 [16:21:28]line Наличными: 1000.00 [16:21:28]line Безнал.: 0.00 [16:21:28]line Место: АЗС № 85 "Партнер Нефть" [16:21:28]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:21:28]line СНО: Общий режим [16:21:28]line Чек 266 20.10.2024 16:21 [16:21:28]line Смена: 193 ФФД: 1.0 [16:21:28]line ЗНМ: 0300000167 [16:21:28]line РНМ: 0000000000156251 [16:21:28]line Версия ККМ: v1.0 [16:21:28]line ФМ: 0000000000963346 [16:21:28]line ФД: 69421 [16:21:28]line ФПД: 41447977160986 [16:21:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T162127&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69421&fm=41447977160986&tin=02508201610067®Number=0000000000156251&sum=100000 [16:21:28]OFD Sender: Processing packet 69421 [packets to send 18, broken 17] [16:21:28]ProducePacketName [16:21:28]name=ofd_packets/00069421 [16:21:28]OFD Sender: To server: pG, [16:21:28]CommunicateWithHost lk.salyk.kg:30040 [16:21:28]ConnectInit lk.salyk.kg [16:21:28]written 0, free lines is 4095 [16:21:29]Connected sock=10 [16:21:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 59 71 0D 01 FD 15 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 07 2E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2D 0F 01 00 35 04 06 00 25 B2 5B F4 91 1A 2E 5F C6 11 14 02 6C D5 [16:21:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 0A 32 47 00 34 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2D 0F 01 00 F4 03 04 00 AE D7 14 67 B6 04 01 00 00 62 07 C1 F5 AC B2 36 0D [16:21:29]CommunicateWithHost err = 0 [16:21:29]CheckOFDResponse [16:21:29]1017 (14) - 77093643461234 [16:21:29]1041 (16) - 0000000000963346 [16:21:29]1040 (4) - 69421 [16:21:29]1012 (4) - 20.10.2024 10:13 [16:21:29]1206 (1) - 0 [16:21:29]OFD Sender: Remove packet 69421 [16:21:29]ProducePacketName [16:21:29]name=ofd_packets/00069421 [16:21:29]NVStorageDeleteData [16:21:29]Write to MH i2c: 01 00 00 0D 15 22 [16:21:29]Write i2c OK [16:21:29]MH_I2C_Read... [16:21:29]Read from MH i2c: 01 [16:21:29]MH_I2C_Read... [16:21:29]Read from MH i2c: 01 07 00 [16:21:29]MH_I2C_Read... [16:21:29]Read from MH i2c: 01 07 00 0D 15 00 00 00 00 00 F9 0C 2E [16:21:29]RasterBufferAndPrint [16:21:29]line [16:21:29]line [16:21:29]line [16:21:29]line [16:21:29]line [16:21:29]written 0, free lines is 3328 [16:21:29]MH_Cut [16:21:29]Write to MH i2c: D1 01 00 14 15 01 FB [16:21:29]Write i2c OK [16:21:29]MH_I2C_Read... [16:21:29]Read from MH i2c: D1 [16:21:29]MH_I2C_Read... [16:21:29]Read from MH i2c: D1 01 00 [16:21:29]MH_I2C_Read... [16:21:29]Read from MH i2c: D1 01 00 14 15 00 FA [16:21:29]Write to MH i2c: 01 00 00 15 15 2A [16:21:29]Write i2c OK [16:21:29]MH_I2C_Read... [16:21:29]OFD Sender: No OFD packet to send [16:21:30]*** Cut start [16:21:30]*** Partial cut [16:21:30]*** CUTSNS_PIN = 1 [16:21:30]*** CUTSNS_PIN = 0 [16:21:30]*** Brake cut motor [16:21:30]Read from MH i2c: 01 [16:21:30]MH_I2C_Read... [16:21:30]*** Stop cut motor [16:21:30]*** Cut end [16:21:30]Read from MH i2c: 01 07 00 [16:21:30]MH_I2C_Read... [16:21:30]Read from MH i2c: 01 07 00 15 15 00 00 00 00 00 FF 0F 3F [16:21:30]process_action close_receipt done [16:21:30]requested_data is exist [16:21:30]produce_requested_data [16:21:30]requested_item fm.sn is exist - process it [16:21:30]wFMCommunicate request_size=4 [16:21:30]MH_SAM_APDU [16:21:30]CAPDU: 80 11 00 00 [16:21:30]Write to MH i2c: E2 08 00 16 15 80 11 00 00 00 00 00 00 A5 [16:21:30]Write i2c OK [16:21:30]MH_I2C_Read... [16:21:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:30]Read from MH i2c: E2 [16:21:30]MH_I2C_Read... [16:21:30]Read from MH i2c: E2 17 00 [16:21:30]MH_I2C_Read... [16:21:30]Read from MH i2c: E2 17 00 16 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F7 [16:21:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:21:30]wFMCommunicate OK [16:21:30]requested_item fd.num is exist - process it [16:21:30]SAM_PROTO_GetFieldsCounters [16:21:30]wFMCommunicate request_size=4 [16:21:30]MH_SAM_APDU [16:21:30]CAPDU: 80 13 00 00 [16:21:30]Write to MH i2c: E2 08 00 17 15 80 13 00 00 00 00 00 00 A8 [16:21:30]Write i2c OK [16:21:30]MH_I2C_Read... [16:21:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:21:30]Read from MH i2c: E2 [16:21:30]MH_I2C_Read... [16:21:30]Read from MH i2c: E2 62 00 [16:21:30]MH_I2C_Read... [16:21:30]Read from MH i2c: E2 62 00 17 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2D 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 E2 [16:21:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2D 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:21:30]wFMCommunicate OK [16:21:30]SAM_PROTO_GetFieldsCounters done [16:21:30]requested_item shift.num is exist - process it [16:21:30]requested_item shift.opened is exist - process it [16:21:30]req_shift_opened [16:21:30]FM_GetShiftState [16:21:30]SAM_PROTO_GetShiftState [16:21:30]wFMCommunicate request_size=4 [16:21:30]MH_SAM_APDU [16:21:30]CAPDU: 80 13 01 00 [16:21:30]Write to MH i2c: E2 08 00 18 15 80 13 01 00 00 00 00 00 AA [16:21:30]Write i2c OK [16:21:30]MH_I2C_Read... [16:21:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:30]Read from MH i2c: E2 [16:21:30]MH_I2C_Read... [16:21:30]Read from MH i2c: E2 0E 00 [16:21:30]MH_I2C_Read... [16:21:30]Read from MH i2c: E2 0E 00 18 15 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 B0 [16:21:30]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:21:30]wFMCommunicate OK [16:21:30]SAM_PROTO_GetShiftState done [16:21:30]FM_GetShiftState done [16:21:30]req_shift_opened done [16:21:30]requested_item shift.open_date is exist - process it [16:21:30]req_shift_open_date [16:21:30]req_shift_open_date done [16:21:30]produce_requested_data done [16:21:30]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69421,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [16:21:30]process_action_free close_receipt [16:21:30]json_value_free [16:21:30]json_value_free done [16:21:30]process_json_proto returns [16:21:30]Send response to host [16:21:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69421,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [16:21:30]free response buf [16:21:30]execute_script done [16:21:30]execute_script returns [16:21:30]free content buf [16:21:30]Sock 8.Close socket [16:21:30]Sock 8.Thread stoped [16:21:34]OFD Sender: No OFD packet to send [16:21:39]OFD Sender: No OFD packet to send [16:21:44]OFD Sender: No OFD packet to send [16:21:49]OFD Sender: No OFD packet to send [16:21:54]OFD Sender: No OFD packet to send [16:21:59]OFD Sender: No OFD packet to send [16:21:59]accept exits with 9 [16:21:59]New connection [16:21:59]New thread 3066711396 created [16:21:59]Thread 3066568036 joined [16:21:59]Waiting for new connection... [16:21:59] Sock 9.Parse request [16:21:59]Sock 9.Check first char [16:21:59]Sock 9.First char is OK [16:21:59]request: POST /json_proto HTTP/1.0 [16:21:59]Method: POST [16:21:59]URL: /json_proto [16:21:59]Method is POST - this is cgi request [16:21:59]url: /json_proto [16:21:59]query_string will be loaded in cgi processing [16:21:59]execute_cgi json_proto POST (null) [16:21:59]execute_cgi path=json_proto method=POST [16:21:59]POST find Content-Length [16:21:59]Host: 172.17.50.3:8080 [16:21:59]Content-Length: 683 [16:21:59]Content-Type: application/json [16:21:59] [16:21:59]POST finish read [16:21:59]Found Content-Length = 683 [16:21:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:59]execute_script... [16:21: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)2885149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:59]POST & json_proto [16:21:59]process_json_proto [16:21:59]json parsed OK: [16:21:59]protocol is kg_v1.0 [16:21:59]action value=close_receipt [16:21:59]process_action close_receipt [16:21:59]cmd_close_receipt [16:21:59]MH_GetDate [16:21:59]Write to MH i2c: F0 00 00 19 15 1D [16:21:59]Write i2c OK [16:21:59]MH_I2C_Read... [16:21:59]Read from MH i2c: F0 [16:21:59]MH_I2C_Read... [16:21:59]Read from MH i2c: F0 09 00 [16:21:59]MH_I2C_Read... [16:21:59]Read from MH i2c: F0 09 00 19 15 00 28 2E 15 67 6B 98 1E 66 7F [16:21:59]GetLastDocTimeStamp 1729441287 [16:21:59]current date 1729441320 [16:21:59]FM_GetShiftState [16:21:59]SAM_PROTO_GetShiftState [16:21:59]wFMCommunicate request_size=4 [16:21:59]MH_SAM_APDU [16:21:59]CAPDU: 80 13 01 00 [16:21:59]Write to MH i2c: E2 08 00 1A 15 80 13 01 00 00 00 00 00 AC [16:21:59]Write i2c OK [16:21:59]MH_I2C_Read... [16:21:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:59]Read from MH i2c: E2 [16:21:59]MH_I2C_Read... [16:21:59]Read from MH i2c: E2 0E 00 [16:21:59]MH_I2C_Read... [16:21:59]Read from MH i2c: E2 0E 00 1A 15 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 B2 [16:21:59]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:21:59]wFMCommunicate OK [16:21:59]SAM_PROTO_GetShiftState done [16:21:59]FM_GetShiftState done [16:21:59]opened in 1729383220 [16:21:59]opened+sec_in_day 1729469620 [16:21:59]quantity*price = 100015 [16:21:59]sum+1 = 100017 [16:21:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 267 20.10.2024 16:22 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69422 ФПД: 179775334240997 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T162200&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69422&fm=179775334240997&tin=02508201610067®Number=0000000000156251&sum=100000 [16:22:00]StoreToDocumentArchive [16:22:00]shift 193 fd 69422 [16:22:00]save to /storage/0193/doc_00069422 [16:22:00]save last doc name /storage/0193/doc_00069422 to /storage/kkm_last_doc_name [16:22:00]save OK [16:22:00]Clear old archive folders... [16:22:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:22:00]tlvbuf is B6E86460 [16:22:00]SAM_PROTO_ClearQueue [16:22:00]wFMCommunicate request_size=4 [16:22:00]MH_SAM_APDU [16:22:00]CAPDU: 80 09 00 00 [16:22:00]Write to MH i2c: E2 08 00 27 15 80 09 00 00 00 00 00 00 AE [16:22:01]Write i2c OK [16:22:01]MH_I2C_Read... [16:22:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:22:01]Read from MH i2c: E2 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: E2 03 00 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: E2 03 00 27 15 00 90 00 B0 [16:22:01]RAPDU: 90 00 [16:22:01]wFMCommunicate OK [16:22:01]SAM_PROTO_ClearQueue done [16:22:01]KKMCreateOFDPacket [16:22:01]OFDProtocolAddRootSTLVToBuf [16:22:01]FM_MakeSignedData [16:22:01]FM_MakeSignedData [16:22:01]SAM_PROTO_SignData [16:22:01]wFMCommunicate request_size=4 [16:22:01]MH_SAM_APDU [16:22:01]CAPDU: 80 0D 01 02 [16:22:01]Write to MH i2c: E2 08 00 28 15 80 0D 01 02 00 00 00 00 B6 [16:22:01]Write i2c OK [16:22:01]MH_I2C_Read... [16:22:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:22:01]Read from MH i2c: E2 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: E2 03 00 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: E2 03 00 28 15 00 90 00 B1 [16:22:01]RAPDU: 90 00 [16:22:01]wFMCommunicate OK [16:22:01]wFMCommunicate request_size=255 [16:22:01]MH_SAM_APDU [16:22:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 28 2E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2E 0F 01 00 35 04 06 00 A3 [16:22:01]Write to MH i2c: E2 02 01 29 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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 28 2E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2E 0F 01 00 35 04 06 00 A3 00 00 B9 [16:22:01]Write i2c OK [16:22:01]MH_I2C_Read... [16:22:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:01]Read from MH i2c: E2 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: E2 03 00 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: E2 03 00 29 15 00 90 00 B2 [16:22:01]RAPDU: 90 00 [16:22:01]wFMCommunicate OK [16:22:01]wFMCommunicate request_size=10 [16:22:01]MH_SAM_APDU [16:22:01]CAPDU: 80 0D 02 02 05 81 34 EF D2 E5 [16:22:01]Write to MH i2c: E2 0D 00 2A 15 80 0D 02 02 05 00 81 34 EF D2 E5 00 00 1E [16:22:01]Write i2c OK [16:22:01]MH_I2C_Read... [16:22:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:01]Read from MH i2c: E2 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: E2 03 00 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: E2 03 00 2A 15 00 90 00 B3 [16:22:01]RAPDU: 90 00 [16:22:01]wFMCommunicate OK [16:22:01]wFMCommunicate request_size=4 [16:22:01]MH_SAM_APDU [16:22:01]CAPDU: 80 0D 03 02 [16:22:01]Write to MH i2c: E2 08 00 2B 15 80 0D 03 02 00 00 00 00 BB [16:22:01]Write i2c OK [16:22:01]MH_I2C_Read... [16:22:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:22:01]Read from MH i2c: E2 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: E2 0B 00 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: E2 0B 00 2B 15 00 6D 31 02 91 AB 51 B0 41 90 00 DA [16:22:01]RAPDU: 6D 31 02 91 AB 51 B0 41 90 00 [16:22:01]wFMCommunicate OK [16:22:01]SAM_PROTO_SignData done [16:22:01]FM_MakeSignedData done [16:22:01]CreateOFDProtocolMessage [16:22:01]wFMCommunicate request_size=4 [16:22:01]MH_SAM_APDU [16:22:01]CAPDU: 80 11 00 00 [16:22:01]Write to MH i2c: E2 08 00 2C 15 80 11 00 00 00 00 00 00 BB [16:22:01]Write i2c OK [16:22:01]MH_I2C_Read... [16:22:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:01]Read from MH i2c: E2 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: E2 17 00 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: E2 17 00 2C 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0D [16:22:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:22:01]wFMCommunicate OK [16:22:01]CreateOFDProtocolMessage done [16:22:01]OFDSenderStorePacket 69422 [16:22:01]StoreOFDPacket docnum=69422 [16:22:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 E3 CA 07 01 4C AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 28 2E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2E 0F 01 00 35 04 06 00 A3 81 34 EF D2 E5 6D 31 02 91 AB 51 B0 41 [16:22:01]CheckFolder [16:22:01]dirname=/storage/ofd_packets [16:22:01]CheckFolder done [16:22:01]ProducePacketName [16:22:01]name=ofd_packets/00069422 [16:22:01]NVStorageSaveData ofd_packets/00069422 [16:22:01]File name is /storage/ofd_packets/00069422 [16:22:01]Write 301 bytes [16:22:01]NVStorageSaveData done [16:22:01]OFDSenderStorePacket done [16:22:01]KKMCreateOFDPacket done [16:22:01]NVStorageSaveData kkm_last_timestamp [16:22:01]File name is /storage/kkm_last_timestamp [16:22:01]Write 4 bytes [16:22:01]OFD Sender: Processing packet 69422 [packets to send 18, broken 17] [16:22:01]ProducePacketName [16:22:01]name=ofd_packets/00069422 [16:22:01]OFD Sender: To server: pG, [16:22:01]CommunicateWithHost lk.salyk.kg:30040 [16:22:01]ConnectInit lk.salyk.kg [16:22:01]NVStorageSaveData done [16:22:01]ExternCall_PrintAddStr [16:22:01]wPrintStart [16:22:01]Write to MH i2c: 01 00 00 2D 15 42 [16:22:01]Write i2c OK [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: 01 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: 01 07 00 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: 01 07 00 2D 15 00 00 00 00 00 FF 0F 57 [16:22:01]RasterBufferAndPrint [16:22:01]line Счет N : (1)2885149 [16:22:01]line ИНН: 02508201610067 [16:22:01]line Контрольно-Кассовый Чек [16:22:01]line ПРОДАЖА [16:22:01]line ТРК (МРК, ГНК) : 22 [16:22:01]line Товар: 2710124130 [16:22:01]line Аи-92-К-5 [16:22:01]line 14.950 * 66.90 [16:22:01]line = 1000.16 [16:22:01]line НДС 12% НСП 1% [16:22:01]line > о реализуемом товаре [16:22:01]line ОКРУГЛЕНИЕ: -0.16 [16:22:01]line ИТОГО: 1000.00 [16:22:01]line Внесено: 1000.00 [16:22:01]line СДАЧА: 0.00 [16:22:01]line НСП 1% : 8.85 [16:22:01]line НДС 12% : 106.21 [16:22:01]line Наличными: 1000.00 [16:22:01]line Безнал.: 0.00 [16:22:01]line Место: АЗС № 85 "Партнер Нефть" [16:22:01]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:22:01]line СНО: Общий режим [16:22:01]line Чек 267 20.10.2024 16:22 [16:22:01]line Смена: 193 ФФД: 1.0 [16:22:01]line ЗНМ: 0300000167 [16:22:01]line РНМ: 0000000000156251 [16:22:01]line Версия ККМ: v1.0 [16:22:01]line ФМ: 0000000000963346 [16:22:01]line ФД: 69422 [16:22:01]line ФПД: 179775334240997 [16:22:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T162200&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69422&fm=179775334240997&tin=02508201610067®Number=0000000000156251&sum=100000 [16:22:01]Connected sock=11 [16:22:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 E3 CA 07 01 4C AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 28 2E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2E 0F 01 00 35 04 06 00 A3 81 34 EF D2 E5 6D 31 02 91 AB 51 B0 41 [16:22:01]written 0, free lines is 4095 [16:22:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 4D DA 47 00 C2 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2E 0F 01 00 F4 03 04 00 CE D7 14 67 B6 04 01 00 00 DD D2 CA 00 D4 AA F3 89 [16:22:02]CommunicateWithHost err = 0 [16:22:02]CheckOFDResponse [16:22:02]1017 (14) - 77093643461234 [16:22:02]1041 (16) - 0000000000963346 [16:22:02]1040 (4) - 69422 [16:22:02]1012 (4) - 20.10.2024 10:13 [16:22:02]1206 (1) - 0 [16:22:02]OFD Sender: Remove packet 69422 [16:22:02]ProducePacketName [16:22:02]name=ofd_packets/00069422 [16:22:02]NVStorageDeleteData [16:22:02]Write to MH i2c: 01 00 00 58 15 6D [16:22:02]Write i2c OK [16:22:02]MH_I2C_Read... [16:22:02]Read from MH i2c: 01 [16:22:02]MH_I2C_Read... [16:22:02]Read from MH i2c: 01 07 00 [16:22:02]MH_I2C_Read... [16:22:02]Read from MH i2c: 01 07 00 58 15 00 00 00 00 00 F6 0C 76 [16:22:02]RasterBufferAndPrint [16:22:02]line [16:22:02]line [16:22:02]line [16:22:02]line [16:22:02]line [16:22:02]written 0, free lines is 3324 [16:22:02]MH_Cut [16:22:02]Write to MH i2c: D1 01 00 5F 15 01 46 [16:22:02]Write i2c OK [16:22:02]MH_I2C_Read... [16:22:02]Read from MH i2c: D1 [16:22:02]MH_I2C_Read... [16:22:02]Read from MH i2c: D1 01 00 [16:22:02]MH_I2C_Read... [16:22:02]Read from MH i2c: D1 01 00 5F 15 00 45 [16:22:02]Write to MH i2c: 01 00 00 60 15 75 [16:22:02]Write i2c OK [16:22:02]MH_I2C_Read... [16:22:02]OFD Sender: No OFD packet to send [16:22:03]*** Cut start [16:22:03]*** Partial cut [16:22:03]*** CUTSNS_PIN = 1 [16:22:03]*** CUTSNS_PIN = 0 [16:22:03]*** Brake cut motor [16:22:03]Read from MH i2c: 01 [16:22:03]MH_I2C_Read... [16:22:03]*** Stop cut motor [16:22:03]*** Cut end [16:22:03]Read from MH i2c: 01 07 00 [16:22:03]MH_I2C_Read... [16:22:03]Read from MH i2c: 01 07 00 60 15 00 00 00 00 00 FF 0F 8A [16:22:03]process_action close_receipt done [16:22:03]requested_data is exist [16:22:03]produce_requested_data [16:22:03]requested_item fm.sn is exist - process it [16:22:03]wFMCommunicate request_size=4 [16:22:03]MH_SAM_APDU [16:22:03]CAPDU: 80 11 00 00 [16:22:03]Write to MH i2c: E2 08 00 61 15 80 11 00 00 00 00 00 00 F0 [16:22:03]Write i2c OK [16:22:03]MH_I2C_Read... [16:22:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:03]Read from MH i2c: E2 [16:22:03]MH_I2C_Read... [16:22:03]Read from MH i2c: E2 17 00 [16:22:03]MH_I2C_Read... [16:22:03]Read from MH i2c: E2 17 00 61 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 42 [16:22:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:22:03]wFMCommunicate OK [16:22:03]requested_item fd.num is exist - process it [16:22:03]SAM_PROTO_GetFieldsCounters [16:22:03]wFMCommunicate request_size=4 [16:22:03]MH_SAM_APDU [16:22:03]CAPDU: 80 13 00 00 [16:22:03]Write to MH i2c: E2 08 00 62 15 80 13 00 00 00 00 00 00 F3 [16:22:03]Write i2c OK [16:22:03]MH_I2C_Read... [16:22:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:22:03]Read from MH i2c: E2 [16:22:03]MH_I2C_Read... [16:22:03]Read from MH i2c: E2 62 00 [16:22:03]MH_I2C_Read... [16:22:03]Read from MH i2c: E2 62 00 62 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2E 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 31 [16:22:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2E 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:22:03]wFMCommunicate OK [16:22:03]SAM_PROTO_GetFieldsCounters done [16:22:03]requested_item shift.num is exist - process it [16:22:03]requested_item shift.opened is exist - process it [16:22:03]req_shift_opened [16:22:03]FM_GetShiftState [16:22:03]SAM_PROTO_GetShiftState [16:22:03]wFMCommunicate request_size=4 [16:22:03]MH_SAM_APDU [16:22:03]CAPDU: 80 13 01 00 [16:22:03]Write to MH i2c: E2 08 00 63 15 80 13 01 00 00 00 00 00 F5 [16:22:03]Write i2c OK [16:22:03]MH_I2C_Read... [16:22:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:03]Read from MH i2c: E2 [16:22:03]MH_I2C_Read... [16:22:03]Read from MH i2c: E2 0E 00 [16:22:03]MH_I2C_Read... [16:22:03]Read from MH i2c: E2 0E 00 63 15 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 FB [16:22:03]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:22:03]wFMCommunicate OK [16:22:03]SAM_PROTO_GetShiftState done [16:22:03]FM_GetShiftState done [16:22:03]req_shift_opened done [16:22:03]requested_item shift.open_date is exist - process it [16:22:03]req_shift_open_date [16:22:03]req_shift_open_date done [16:22:03]produce_requested_data done [16:22:03]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69422,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [16:22:03]process_action_free close_receipt [16:22:03]json_value_free [16:22:03]json_value_free done [16:22:03]process_json_proto returns [16:22:03]Send response to host [16:22:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69422,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [16:22:03]free response buf [16:22:03]execute_script done [16:22:03]execute_script returns [16:22:03]free content buf [16:22:03]Sock 9.Close socket [16:22:03]Sock 9.Thread stoped [16:22:07]OFD Sender: No OFD packet to send [16:22:12]OFD Sender: No OFD packet to send [16:22:17]OFD Sender: No OFD packet to send [16:22:22]OFD Sender: No OFD packet to send [16:22:27]OFD Sender: No OFD packet to send [16:22:32]OFD Sender: No OFD packet to send [16:22:37]OFD Sender: No OFD packet to send [16:22:42]OFD Sender: No OFD packet to send [16:22:47]OFD Sender: No OFD packet to send [16:22:52]OFD Sender: No OFD packet to send [16:22:56]accept exits with 8 [16:22:56]New connection [16:22:56]New thread 3066568036 created [16:22:56]Thread 3066711396 joined [16:22:56]Waiting for new connection... [16:22:56] Sock 8.Parse request [16:22:56]Sock 8.Check first char [16:22:56]Sock 8.First char is OK [16:22:56]request: POST /json_proto HTTP/1.0 [16:22:56]Method: POST [16:22:56]URL: /json_proto [16:22:56]Method is POST - this is cgi request [16:22:56]url: /json_proto [16:22:56]query_string will be loaded in cgi processing [16:22:56]execute_cgi json_proto POST (null) [16:22:56]execute_cgi path=json_proto method=POST [16:22:56]POST find Content-Length [16:22:56]Host: 172.17.50.3:8080 [16:22:56]Content-Length: 680 [16:22:56]Content-Type: application/json [16:22:56] [16:22:56]POST finish read [16:22:56]Found Content-Length = 680 [16:22:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:56]execute_script... [16:22: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)2885150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:56]POST & json_proto [16:22:56]process_json_proto [16:22:56]json parsed OK: [16:22:56]protocol is kg_v1.0 [16:22:56]action value=close_receipt [16:22:56]process_action close_receipt [16:22:56]cmd_close_receipt [16:22:56]MH_GetDate [16:22:56]Write to MH i2c: F0 00 00 64 15 68 [16:22:56]Write i2c OK [16:22:56]MH_I2C_Read... [16:22:56]Read from MH i2c: F0 [16:22:56]MH_I2C_Read... [16:22:56]Read from MH i2c: F0 09 00 [16:22:56]MH_I2C_Read... [16:22:56]Read from MH i2c: F0 09 00 64 15 00 61 2E 15 67 6B 98 1E 66 03 [16:22:56]GetLastDocTimeStamp 1729441320 [16:22:56]current date 1729441377 [16:22:56]FM_GetShiftState [16:22:56]SAM_PROTO_GetShiftState [16:22:56]wFMCommunicate request_size=4 [16:22:56]MH_SAM_APDU [16:22:56]CAPDU: 80 13 01 00 [16:22:56]Write to MH i2c: E2 08 00 65 15 80 13 01 00 00 00 00 00 F7 [16:22:56]Write i2c OK [16:22:56]MH_I2C_Read... [16:22:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:56]Read from MH i2c: E2 [16:22:56]MH_I2C_Read... [16:22:56]Read from MH i2c: E2 0E 00 [16:22:56]MH_I2C_Read... [16:22:56]Read from MH i2c: E2 0E 00 65 15 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 FD [16:22:56]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:22:56]wFMCommunicate OK [16:22:56]SAM_PROTO_GetShiftState done [16:22:56]FM_GetShiftState done [16:22:56]opened in 1729383220 [16:22:56]opened+sec_in_day 1729469620 [16:22:56]quantity*price = 200025 [16:22:56]sum+1 = 200026 [16:22:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 268 20.10.2024 16:22 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69423 ФПД: 54788136629682 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T162257&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69423&fm=54788136629682&tin=02508201610067®Number=0000000000156251&sum=200000 [16:22:58]StoreToDocumentArchive [16:22:58]shift 193 fd 69423 [16:22:58]save to /storage/0193/doc_00069423 [16:22:58]save last doc name /storage/0193/doc_00069423 to /storage/kkm_last_doc_name [16:22:58]save OK [16:22:58]Clear old archive folders... [16:22:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:22:58]tlvbuf is 00250890 [16:22:58]SAM_PROTO_ClearQueue [16:22:58]wFMCommunicate request_size=4 [16:22:58]MH_SAM_APDU [16:22:58]CAPDU: 80 09 00 00 [16:22:58]Write to MH i2c: E2 08 00 72 15 80 09 00 00 00 00 00 00 F9 [16:22:58]Write i2c OK [16:22:58]MH_I2C_Read... [16:22:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:22:58]Read from MH i2c: E2 [16:22:58]MH_I2C_Read... [16:22:58]Read from MH i2c: E2 03 00 [16:22:58]MH_I2C_Read... [16:22:58]Read from MH i2c: E2 03 00 72 15 00 90 00 FB [16:22:58]RAPDU: 90 00 [16:22:58]wFMCommunicate OK [16:22:58]SAM_PROTO_ClearQueue done [16:22:58]KKMCreateOFDPacket [16:22:58]OFDProtocolAddRootSTLVToBuf [16:22:58]FM_MakeSignedData [16:22:58]FM_MakeSignedData [16:22:58]SAM_PROTO_SignData [16:22:58]wFMCommunicate request_size=4 [16:22:58]MH_SAM_APDU [16:22:58]CAPDU: 80 0D 01 02 [16:22:58]Write to MH i2c: E2 08 00 73 15 80 0D 01 02 00 00 00 00 01 [16:22:58]Write i2c OK [16:22:58]MH_I2C_Read... [16:22:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:22:58]Read from MH i2c: E2 [16:22:58]MH_I2C_Read... [16:22:58]Read from MH i2c: E2 03 00 [16:22:58]MH_I2C_Read... [16:22:58]Read from MH i2c: E2 03 00 73 15 00 90 00 FC [16:22:58]RAPDU: 90 00 [16:22:58]wFMCommunicate OK [16:22:58]wFMCommunicate request_size=255 [16:22:58]MH_SAM_APDU [16:22:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 61 2E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2F 0F 01 00 35 04 06 00 31 D4 5B 6B [16:22:58]Write to MH i2c: E2 02 01 74 15 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 61 2E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2F 0F 01 00 35 04 06 00 31 D4 5B 6B 00 00 51 [16:22:58]Write i2c OK [16:22:58]MH_I2C_Read... [16:22:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:58]Read from MH i2c: E2 [16:22:58]MH_I2C_Read... [16:22:58]Read from MH i2c: E2 03 00 [16:22:58]MH_I2C_Read... [16:22:58]Read from MH i2c: E2 03 00 74 15 00 90 00 FD [16:22:58]RAPDU: 90 00 [16:22:58]wFMCommunicate OK [16:22:58]wFMCommunicate request_size=7 [16:22:58]MH_SAM_APDU [16:22:58]CAPDU: 80 0D 02 02 02 F5 B2 [16:22:58]Write to MH i2c: E2 0A 00 75 15 80 0D 02 02 02 00 F5 B2 00 00 AF [16:22:58]Write i2c OK [16:22:58]MH_I2C_Read... [16:22:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:58]Read from MH i2c: E2 [16:22:58]MH_I2C_Read... [16:22:58]Read from MH i2c: E2 03 00 [16:22:58]MH_I2C_Read... [16:22:58]Read from MH i2c: E2 03 00 75 15 00 90 00 FE [16:22:58]RAPDU: 90 00 [16:22:58]wFMCommunicate OK [16:22:58]wFMCommunicate request_size=4 [16:22:58]MH_SAM_APDU [16:22:58]CAPDU: 80 0D 03 02 [16:22:58]Write to MH i2c: E2 08 00 76 15 80 0D 03 02 00 00 00 00 06 [16:22:58]Write i2c OK [16:22:58]MH_I2C_Read... [16:22:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:22:58]Read from MH i2c: E2 [16:22:58]MH_I2C_Read... [16:22:58]Read from MH i2c: E2 0B 00 [16:22:58]MH_I2C_Read... [16:22:58]Read from MH i2c: E2 0B 00 76 15 00 7E 52 B2 D5 2C 5A 9D 10 90 00 91 [16:22:58]RAPDU: 7E 52 B2 D5 2C 5A 9D 10 90 00 [16:22:58]wFMCommunicate OK [16:22:58]SAM_PROTO_SignData done [16:22:58]FM_MakeSignedData done [16:22:58]CreateOFDProtocolMessage [16:22:58]wFMCommunicate request_size=4 [16:22:58]MH_SAM_APDU [16:22:58]CAPDU: 80 11 00 00 [16:22:58]Write to MH i2c: E2 08 00 77 15 80 11 00 00 00 00 00 00 06 [16:22:58]Write i2c OK [16:22:58]MH_I2C_Read... [16:22:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:58]Read from MH i2c: E2 [16:22:58]MH_I2C_Read... [16:22:58]Read from MH i2c: E2 17 00 [16:22:58]MH_I2C_Read... [16:22:58]Read from MH i2c: E2 17 00 77 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 58 [16:22:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:22:58]wFMCommunicate OK [16:22:58]CreateOFDProtocolMessage done [16:22:58]OFDSenderStorePacket 69423 [16:22:58]StoreOFDPacket docnum=69423 [16:22:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 FD FF 04 01 E8 3F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 61 2E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2F 0F 01 00 35 04 06 00 31 D4 5B 6B F5 B2 7E 52 B2 D5 2C 5A 9D 10 [16:22:58]CheckFolder [16:22:58]dirname=/storage/ofd_packets [16:22:58]CheckFolder done [16:22:58]ProducePacketName [16:22:58]name=ofd_packets/00069423 [16:22:58]NVStorageSaveData ofd_packets/00069423 [16:22:58]File name is /storage/ofd_packets/00069423 [16:22:58]Write 298 bytes [16:22:58]NVStorageSaveData done [16:22:58]OFDSenderStorePacket done [16:22:58]KKMCreateOFDPacket done [16:22:58]NVStorageSaveData kkm_last_timestamp [16:22:58]File name is /storage/kkm_last_timestamp [16:22:58]Write 4 bytes [16:22:58]NVStorageSaveData done [16:22:58]ExternCall_PrintAddStr [16:22:58]wPrintStart [16:22:58]Write to MH i2c: 01 00 00 78 15 8D [16:22:58]Write i2c OK [16:22:58]MH_I2C_Read... [16:22:58]Read from MH i2c: 01 [16:22:58]MH_I2C_Read... [16:22:58]Read from MH i2c: 01 07 00 [16:22:58]MH_I2C_Read... [16:22:58]Read from MH i2c: 01 07 00 78 15 00 00 00 00 00 FF 0F A2 [16:22:58]RasterBufferAndPrint [16:22:58]line Счет N : (1)2885150 [16:22:58]line ИНН: 02508201610067 [16:22:58]line Контрольно-Кассовый Чек [16:22:58]line ПРОДАЖА [16:22:58]line ТРК (МРК, ГНК) : 61 [16:22:58]line Товар: 2710194210 [16:22:58]line ДТ-К-5 [16:22:58]line 26.250 * 76.20 [16:22:58]line = 2000.25 [16:22:58]line НДС 12% НСП 1% [16:22:58]line > о реализуемом товаре [16:22:58]line ОКРУГЛЕНИЕ: -0.25 [16:22:58]line ИТОГО: 2000.00 [16:22:58]line Внесено: 2000.00 [16:22:58]line СДАЧА: 0.00 [16:22:58]line НСП 1% : 17.70 [16:22:58]line НДС 12% : 212.42 [16:22:58]line Наличными: 2000.00 [16:22:58]line Безнал.: 0.00 [16:22:58]line Место: АЗС № 85 "Партнер Нефть" [16:22:58]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:22:58]line СНО: Общий режим [16:22:58]line Чек 268 20.10.2024 16:22 [16:22:58]line Смена: 193 ФФД: 1.0 [16:22:58]line ЗНМ: 0300000167 [16:22:58]line РНМ: 0000000000156251 [16:22:58]line Версия ККМ: v1.0 [16:22:58]line ФМ: 0000000000963346 [16:22:58]line ФД: 69423 [16:22:58]line ФПД: 54788136629682 [16:22:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T162257&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69423&fm=54788136629682&tin=02508201610067®Number=0000000000156251&sum=200000 [16:22:58]OFD Sender: Processing packet 69423 [packets to send 18, broken 17] [16:22:58]ProducePacketName [16:22:58]name=ofd_packets/00069423 [16:22:58]OFD Sender: To server: pG, [16:22:58]CommunicateWithHost lk.salyk.kg:30040 [16:22:58]ConnectInit lk.salyk.kg [16:22:58]written 0, free lines is 4095 [16:22:59]Connected sock=10 [16:22:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 FD FF 04 01 E8 3F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 61 2E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2F 0F 01 00 35 04 06 00 31 D4 5B 6B F5 B2 7E 52 B2 D5 2C 5A 9D 10 [16:22:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 CE 7E 47 00 0D 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 2F 0F 01 00 F4 03 04 00 08 D8 14 67 B6 04 01 00 00 15 B0 AF 1E A5 94 CE 14 [16:22:59]CommunicateWithHost err = 0 [16:22:59]CheckOFDResponse [16:22:59]1017 (14) - 77093643461234 [16:22:59]1041 (16) - 0000000000963346 [16:22:59]1040 (4) - 69423 [16:22:59]1012 (4) - 20.10.2024 10:14 [16:22:59]1206 (1) - 0 [16:22:59]OFD Sender: Remove packet 69423 [16:22:59]ProducePacketName [16:22:59]name=ofd_packets/00069423 [16:22:59]NVStorageDeleteData [16:22:59]Write to MH i2c: 01 00 00 A3 15 B8 [16:22:59]Write i2c OK [16:22:59]MH_I2C_Read... [16:22:59]Read from MH i2c: 01 [16:22:59]MH_I2C_Read... [16:22:59]Read from MH i2c: 01 07 00 [16:22:59]MH_I2C_Read... [16:22:59]Read from MH i2c: 01 07 00 A3 15 00 00 00 00 00 FB 0C C6 [16:22:59]RasterBufferAndPrint [16:22:59]line [16:22:59]line [16:22:59]line [16:22:59]line [16:22:59]line [16:22:59]written 0, free lines is 3329 [16:22:59]MH_Cut [16:22:59]Write to MH i2c: D1 01 00 AA 15 01 91 [16:22:59]Write i2c OK [16:22:59]MH_I2C_Read... [16:22:59]Read from MH i2c: D1 [16:22:59]MH_I2C_Read... [16:22:59]Read from MH i2c: D1 01 00 [16:22:59]MH_I2C_Read... [16:22:59]Read from MH i2c: D1 01 00 AA 15 00 90 [16:22:59]Write to MH i2c: 01 00 00 AB 15 C0 [16:22:59]Write i2c OK [16:22:59]MH_I2C_Read... [16:22:59]OFD Sender: No OFD packet to send [16:23:00]*** Cut start [16:23:00]*** Partial cut [16:23:00]*** CUTSNS_PIN = 1 [16:23:00]*** CUTSNS_PIN = 0 [16:23:00]*** Brake cut motor [16:23:00]Read from MH i2c: 01 [16:23:00]MH_I2C_Read... [16:23:00]*** Stop cut motor [16:23:00]*** Cut end [16:23:00]Read from MH i2c: 01 07 00 [16:23:00]MH_I2C_Read... [16:23:00]Read from MH i2c: 01 07 00 AB 15 00 00 00 00 00 FF 0F D5 [16:23:00]process_action close_receipt done [16:23:00]requested_data is exist [16:23:00]produce_requested_data [16:23:00]requested_item fm.sn is exist - process it [16:23:00]wFMCommunicate request_size=4 [16:23:00]MH_SAM_APDU [16:23:00]CAPDU: 80 11 00 00 [16:23:00]Write to MH i2c: E2 08 00 AC 15 80 11 00 00 00 00 00 00 3B [16:23:00]Write i2c OK [16:23:00]MH_I2C_Read... [16:23:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:00]Read from MH i2c: E2 [16:23:00]MH_I2C_Read... [16:23:00]Read from MH i2c: E2 17 00 [16:23:00]MH_I2C_Read... [16:23:00]Read from MH i2c: E2 17 00 AC 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8D [16:23:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:23:00]wFMCommunicate OK [16:23:00]requested_item fd.num is exist - process it [16:23:00]SAM_PROTO_GetFieldsCounters [16:23:00]wFMCommunicate request_size=4 [16:23:00]MH_SAM_APDU [16:23:00]CAPDU: 80 13 00 00 [16:23:00]Write to MH i2c: E2 08 00 AD 15 80 13 00 00 00 00 00 00 3E [16:23:00]Write i2c OK [16:23:00]MH_I2C_Read... [16:23:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:23:00]Read from MH i2c: E2 [16:23:00]MH_I2C_Read... [16:23:00]Read from MH i2c: E2 62 00 [16:23:00]MH_I2C_Read... [16:23:00]Read from MH i2c: E2 62 00 AD 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2F 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 80 [16:23:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 2F 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:23:00]wFMCommunicate OK [16:23:00]SAM_PROTO_GetFieldsCounters done [16:23:00]requested_item shift.num is exist - process it [16:23:00]requested_item shift.opened is exist - process it [16:23:00]req_shift_opened [16:23:00]FM_GetShiftState [16:23:00]SAM_PROTO_GetShiftState [16:23:00]wFMCommunicate request_size=4 [16:23:00]MH_SAM_APDU [16:23:00]CAPDU: 80 13 01 00 [16:23:00]Write to MH i2c: E2 08 00 AE 15 80 13 01 00 00 00 00 00 40 [16:23:00]Write i2c OK [16:23:00]MH_I2C_Read... [16:23:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:01]Read from MH i2c: E2 [16:23:01]MH_I2C_Read... [16:23:01]Read from MH i2c: E2 0E 00 [16:23:01]MH_I2C_Read... [16:23:01]Read from MH i2c: E2 0E 00 AE 15 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 46 [16:23:01]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:23:01]wFMCommunicate OK [16:23:01]SAM_PROTO_GetShiftState done [16:23:01]FM_GetShiftState done [16:23:01]req_shift_opened done [16:23:01]requested_item shift.open_date is exist - process it [16:23:01]req_shift_open_date [16:23:01]req_shift_open_date done [16:23:01]produce_requested_data done [16:23:01]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69423,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [16:23:01]process_action_free close_receipt [16:23:01]json_value_free [16:23:01]json_value_free done [16:23:01]process_json_proto returns [16:23:01]Send response to host [16:23:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69423,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [16:23:01]free response buf [16:23:01]execute_script done [16:23:01]execute_script returns [16:23:01]free content buf [16:23:01]Sock 8.Close socket [16:23:01]Sock 8.Thread stoped [16:23:04]OFD Sender: No OFD packet to send [16:23:09]OFD Sender: No OFD packet to send [16:23:14]OFD Sender: No OFD packet to send [16:23:19]OFD Sender: No OFD packet to send [16:23:24]OFD Sender: No OFD packet to send [16:23:29]OFD Sender: No OFD packet to send [16:23:34]OFD Sender: No OFD packet to send [16:23:39]OFD Sender: No OFD packet to send [16:23:44]OFD Sender: No OFD packet to send [16:23:49]OFD Sender: No OFD packet to send [16:23:54]OFD Sender: No OFD packet to send [16:23:59]OFD Sender: No OFD packet to send [16:24:04]OFD Sender: No OFD packet to send [16:24:09]OFD Sender: No OFD packet to send [16:24:14]OFD Sender: No OFD packet to send [16:24:19]OFD Sender: No OFD packet to send [16:24:24]OFD Sender: No OFD packet to send [16:24:29]OFD Sender: No OFD packet to send [16:24:34]OFD Sender: No OFD packet to send [16:24:39]OFD Sender: No OFD packet to send [16:24:44]OFD Sender: No OFD packet to send [16:24:49]OFD Sender: No OFD packet to send [16:24:54]OFD Sender: No OFD packet to send [16:24:59]OFD Sender: No OFD packet to send [16:25:04]OFD Sender: No OFD packet to send [16:25:09]OFD Sender: No OFD packet to send [16:25:14]OFD Sender: No OFD packet to send [16:25:19]OFD Sender: No OFD packet to send [16:25:24]OFD Sender: No OFD packet to send [16:25:29]OFD Sender: No OFD packet to send [16:25:34]OFD Sender: No OFD packet to send [16:25:39]OFD Sender: No OFD packet to send [16:25:44]OFD Sender: No OFD packet to send [16:25:49]OFD Sender: No OFD packet to send [16:25:54]OFD Sender: No OFD packet to send [16:25:59]OFD Sender: No OFD packet to send [16:26:04]OFD Sender: No OFD packet to send [16:26:09]OFD Sender: No OFD packet to send [16:26:13]accept exits with 9 [16:26:13]New connection [16:26:13]New thread 3066711396 created [16:26:13]Thread 3066568036 joined [16:26:13]Waiting for new connection... [16:26:13] Sock 9.Parse request [16:26:13]Sock 9.Check first char [16:26:13]Sock 9.First char is OK [16:26:13]request: POST /json_proto HTTP/1.0 [16:26:13]Method: POST [16:26:13]URL: /json_proto [16:26:13]Method is POST - this is cgi request [16:26:13]url: /json_proto [16:26:13]query_string will be loaded in cgi processing [16:26:13]execute_cgi json_proto POST (null) [16:26:13]execute_cgi path=json_proto method=POST [16:26:13]POST find Content-Length [16:26:13]Host: 172.17.50.3:8080 [16:26:13]Content-Length: 686 [16:26:13]Content-Type: application/json [16:26:13] [16:26:13]POST finish read [16:26:13]Found Content-Length = 686 [16:26:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 42.190, "sum" : 1641.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1641.00, "total" : 1641.00, "payments": [ { "type": 0, "sum" : 1641.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:13]execute_script... [16:26: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)2885153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 42.190, "sum" : 1641.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1641.00, "total" : 1641.00, "payments": [ { "type": 0, "sum" : 1641.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:13]POST & json_proto [16:26:13]process_json_proto [16:26:13]json parsed OK: [16:26:13]protocol is kg_v1.0 [16:26:13]action value=close_receipt [16:26:13]process_action close_receipt [16:26:13]cmd_close_receipt [16:26:13]MH_GetDate [16:26:13]Write to MH i2c: F0 00 00 AF 15 B3 [16:26:13]Write i2c OK [16:26:13]MH_I2C_Read... [16:26:13]Read from MH i2c: F0 [16:26:13]MH_I2C_Read... [16:26:13]Read from MH i2c: F0 09 00 [16:26:13]MH_I2C_Read... [16:26:13]Read from MH i2c: F0 09 00 AF 15 00 26 2F 15 67 6B 98 1E 66 14 [16:26:13]GetLastDocTimeStamp 1729441377 [16:26:13]current date 1729441574 [16:26:13]FM_GetShiftState [16:26:13]SAM_PROTO_GetShiftState [16:26:13]wFMCommunicate request_size=4 [16:26:13]MH_SAM_APDU [16:26:13]CAPDU: 80 13 01 00 [16:26:13]Write to MH i2c: E2 08 00 B0 15 80 13 01 00 00 00 00 00 42 [16:26:13]Write i2c OK [16:26:13]MH_I2C_Read... [16:26:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:13]Read from MH i2c: E2 [16:26:13]MH_I2C_Read... [16:26:13]Read from MH i2c: E2 0E 00 [16:26:13]MH_I2C_Read... [16:26:13]Read from MH i2c: E2 0E 00 B0 15 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 48 [16:26:13]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:26:13]wFMCommunicate OK [16:26:13]SAM_PROTO_GetShiftState done [16:26:13]FM_GetShiftState done [16:26:13]opened in 1729383220 [16:26:13]opened+sec_in_day 1729469620 [16:26:13]quantity*price = 164119 [16:26:13]sum+1 = 164120 [16:26:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1641.00 Внесено: 1641.00 СДАЧА: 0.00 НСП 1% : 14.52 НДС 12% : 174.29 Наличными: 1641.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 269 20.10.2024 16:26 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69424 ФПД: 17502255266668 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T162614&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69424&fm=17502255266668&tin=02508201610067®Number=0000000000156251&sum=164100 [16:26:15]StoreToDocumentArchive [16:26:15]shift 193 fd 69424 [16:26:15]save to /storage/0193/doc_00069424 [16:26:15]save last doc name /storage/0193/doc_00069424 to /storage/kkm_last_doc_name [16:26:15]save OK [16:26:15]Clear old archive folders... [16:26:15]ProcessDocumentItem done err = 0, tmpTLVsize=250 [16:26:15]tlvbuf is B6E86390 [16:26:15]SAM_PROTO_ClearQueue [16:26:15]wFMCommunicate request_size=4 [16:26:15]MH_SAM_APDU [16:26:15]CAPDU: 80 09 00 00 [16:26:15]Write to MH i2c: E2 08 00 BD 15 80 09 00 00 00 00 00 00 44 [16:26:15]Write i2c OK [16:26:15]MH_I2C_Read... [16:26:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:26:15]Read from MH i2c: E2 [16:26:15]MH_I2C_Read... [16:26:15]Read from MH i2c: E2 03 00 [16:26:15]MH_I2C_Read... [16:26:15]Read from MH i2c: E2 03 00 BD 15 00 90 00 46 [16:26:15]RAPDU: 90 00 [16:26:15]wFMCommunicate OK [16:26:15]SAM_PROTO_ClearQueue done [16:26:15]KKMCreateOFDPacket [16:26:15]OFDProtocolAddRootSTLVToBuf [16:26:15]FM_MakeSignedData [16:26:15]FM_MakeSignedData [16:26:15]SAM_PROTO_SignData [16:26:15]wFMCommunicate request_size=4 [16:26:15]MH_SAM_APDU [16:26:15]CAPDU: 80 0D 01 02 [16:26:15]Write to MH i2c: E2 08 00 BE 15 80 0D 01 02 00 00 00 00 4C [16:26:15]Write i2c OK [16:26:15]MH_I2C_Read... [16:26:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:26:15]Read from MH i2c: E2 [16:26:15]MH_I2C_Read... [16:26:15]Read from MH i2c: E2 03 00 [16:26:15]MH_I2C_Read... [16:26:15]Read from MH i2c: E2 03 00 BE 15 00 90 00 47 [16:26:15]RAPDU: 90 00 [16:26:15]wFMCommunicate OK [16:26:15]wFMCommunicate request_size=255 [16:26:15]MH_SAM_APDU [16:26:15]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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 CE A4 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 17 81 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 81 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 44 00 00 00 00 07 04 06 00 04 81 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 26 2F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 30 0F 01 00 35 04 06 00 0F EB [16:26:15]Write to MH i2c: E2 02 01 BF 15 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 CE A4 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 17 81 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 81 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 44 00 00 00 00 07 04 06 00 04 81 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 26 2F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 30 0F 01 00 35 04 06 00 0F EB 00 00 3D [16:26:15]Write i2c OK [16:26:15]MH_I2C_Read... [16:26:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:15]Read from MH i2c: E2 [16:26:15]MH_I2C_Read... [16:26:15]Read from MH i2c: E2 03 00 [16:26:15]MH_I2C_Read... [16:26:15]Read from MH i2c: E2 03 00 BF 15 00 90 00 48 [16:26:15]RAPDU: 90 00 [16:26:15]wFMCommunicate OK [16:26:15]wFMCommunicate request_size=9 [16:26:15]MH_SAM_APDU [16:26:15]CAPDU: 80 0D 02 02 04 0F B5 3B 6C [16:26:15]Write to MH i2c: E2 0C 00 C0 15 80 0D 02 02 04 00 0F B5 3B 6C 00 00 C2 [16:26:15]Write i2c OK [16:26:15]MH_I2C_Read... [16:26:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:15]Read from MH i2c: E2 [16:26:15]MH_I2C_Read... [16:26:15]Read from MH i2c: E2 03 00 [16:26:15]MH_I2C_Read... [16:26:15]Read from MH i2c: E2 03 00 C0 15 00 90 00 49 [16:26:15]RAPDU: 90 00 [16:26:15]wFMCommunicate OK [16:26:15]wFMCommunicate request_size=4 [16:26:15]MH_SAM_APDU [16:26:15]CAPDU: 80 0D 03 02 [16:26:15]Write to MH i2c: E2 08 00 C1 15 80 0D 03 02 00 00 00 00 51 [16:26:15]Write i2c OK [16:26:15]MH_I2C_Read... [16:26:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:26:15]Read from MH i2c: E2 [16:26:15]MH_I2C_Read... [16:26:15]Read from MH i2c: E2 0B 00 [16:26:15]MH_I2C_Read... [16:26:15]Read from MH i2c: E2 0B 00 C1 15 00 CB 8A 53 09 AC A6 C9 51 90 00 6F [16:26:15]RAPDU: CB 8A 53 09 AC A6 C9 51 90 00 [16:26:15]wFMCommunicate OK [16:26:15]SAM_PROTO_SignData done [16:26:15]FM_MakeSignedData done [16:26:15]CreateOFDProtocolMessage [16:26:15]wFMCommunicate request_size=4 [16:26:15]MH_SAM_APDU [16:26:15]CAPDU: 80 11 00 00 [16:26:15]Write to MH i2c: E2 08 00 C2 15 80 11 00 00 00 00 00 00 51 [16:26:15]Write i2c OK [16:26:15]MH_I2C_Read... [16:26:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:15]Read from MH i2c: E2 [16:26:15]MH_I2C_Read... [16:26:15]Read from MH i2c: E2 17 00 [16:26:15]MH_I2C_Read... [16:26:15]Read from MH i2c: E2 17 00 C2 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A3 [16:26:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:26:15]wFMCommunicate OK [16:26:15]CreateOFDProtocolMessage done [16:26:15]OFDSenderStorePacket 69424 [16:26:15]StoreOFDPacket docnum=69424 [16:26:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 A7 4F 06 01 78 1C 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 CE A4 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 17 81 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 81 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 44 00 00 00 00 07 04 06 00 04 81 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 26 2F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 30 0F 01 00 35 04 06 00 0F EB 0F B5 3B 6C CB 8A 53 09 AC A6 C9 51 [16:26:15]CheckFolder [16:26:15]dirname=/storage/ofd_packets [16:26:15]CheckFolder done [16:26:15]ProducePacketName [16:26:15]name=ofd_packets/00069424 [16:26:15]NVStorageSaveData ofd_packets/00069424 [16:26:15]File name is /storage/ofd_packets/00069424 [16:26:15]Write 300 bytes [16:26:15]NVStorageSaveData done [16:26:15]OFDSenderStorePacket done [16:26:15]KKMCreateOFDPacket done [16:26:15]NVStorageSaveData kkm_last_timestamp [16:26:15]File name is /storage/kkm_last_timestamp [16:26:15]Write 4 bytes [16:26:15]NVStorageSaveData done [16:26:15]ExternCall_PrintAddStr [16:26:15]wPrintStart [16:26:15]Write to MH i2c: 01 00 00 C3 15 D8 [16:26:15]Write i2c OK [16:26:15]MH_I2C_Read... [16:26:15]Read from MH i2c: 01 [16:26:15]MH_I2C_Read... [16:26:15]Read from MH i2c: 01 07 00 [16:26:15]MH_I2C_Read... [16:26:15]Read from MH i2c: 01 07 00 C3 15 00 00 00 00 00 FF 0F ED [16:26:15]RasterBufferAndPrint [16:26:15]line Счет N : (1)2885153 [16:26:15]line ИНН: 02508201610067 [16:26:15]line Контрольно-Кассовый Чек [16:26:15]line ПРОДАЖА [16:26:15]line ТРК (МРК, ГНК) : 71 [16:26:15]line Товар: 2711129700 [16:26:15]line ГАЗ-К-3 [16:26:15]line 42.190 * 38.90 [16:26:15]line = 1641.19 [16:26:15]line НДС 12% НСП 1% [16:26:15]line > о реализуемом товаре [16:26:15]line ОКРУГЛЕНИЕ: -0.19 [16:26:15]line ИТОГО: 1641.00 [16:26:15]line Внесено: 1641.00 [16:26:15]line СДАЧА: 0.00 [16:26:15]line НСП 1% : 14.52 [16:26:15]line НДС 12% : 174.29 [16:26:15]line Наличными: 1641.00 [16:26:15]line Безнал.: 0.00 [16:26:15]line Место: АЗС № 85 "Партнер Нефть" [16:26:15]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:26:15]line СНО: Общий режим [16:26:15]line Чек 269 20.10.2024 16:26 [16:26:15]line Смена: 193 ФФД: 1.0 [16:26:15]line ЗНМ: 0300000167 [16:26:15]line РНМ: 0000000000156251 [16:26:15]line Версия ККМ: v1.0 [16:26:15]line ФМ: 0000000000963346 [16:26:15]line ФД: 69424 [16:26:15]line ФПД: 17502255266668 [16:26:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T162614&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69424&fm=17502255266668&tin=02508201610067®Number=0000000000156251&sum=164100 [16:26:15]OFD Sender: Processing packet 69424 [packets to send 18, broken 17] [16:26:15]ProducePacketName [16:26:15]name=ofd_packets/00069424 [16:26:15]OFD Sender: To server: pG, [16:26:15]CommunicateWithHost lk.salyk.kg:30040 [16:26:15]ConnectInit lk.salyk.kg [16:26:15]written 0, free lines is 4095 [16:26:16]Connected sock=11 [16:26:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 A7 4F 06 01 78 1C 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 CE A4 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 17 81 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 81 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 44 00 00 00 00 07 04 06 00 04 81 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 26 2F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 30 0F 01 00 35 04 06 00 0F EB 0F B5 3B 6C CB 8A 53 09 AC A6 C9 51 [16:26:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 CE B4 47 00 08 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 30 0F 01 00 F4 03 04 00 CD D8 14 67 B6 04 01 00 00 99 79 B1 59 95 E8 75 1F [16:26:16]CommunicateWithHost err = 0 [16:26:16]CheckOFDResponse [16:26:16]1017 (14) - 77093643461234 [16:26:16]1041 (16) - 0000000000963346 [16:26:16]1040 (4) - 69424 [16:26:16]1012 (4) - 20.10.2024 10:17 [16:26:16]1206 (1) - 0 [16:26:16]OFD Sender: Remove packet 69424 [16:26:16]ProducePacketName [16:26:16]name=ofd_packets/00069424 [16:26:16]NVStorageDeleteData [16:26:16]Write to MH i2c: 01 00 00 EE 15 03 [16:26:16]Write i2c OK [16:26:16]MH_I2C_Read... [16:26:16]Read from MH i2c: 01 [16:26:16]MH_I2C_Read... [16:26:16]Read from MH i2c: 01 07 00 [16:26:16]MH_I2C_Read... [16:26:16]Read from MH i2c: 01 07 00 EE 15 00 00 00 00 00 EB 0C 01 [16:26:16]RasterBufferAndPrint [16:26:16]line [16:26:16]line [16:26:16]line [16:26:16]line [16:26:16]line [16:26:16]written 0, free lines is 3313 [16:26:16]MH_Cut [16:26:16]Write to MH i2c: D1 01 00 F5 15 01 DC [16:26:16]Write i2c OK [16:26:16]MH_I2C_Read... [16:26:16]Read from MH i2c: D1 [16:26:16]MH_I2C_Read... [16:26:16]Read from MH i2c: D1 01 00 [16:26:16]MH_I2C_Read... [16:26:16]Read from MH i2c: D1 01 00 F5 15 00 DB [16:26:16]Write to MH i2c: 01 00 00 F6 15 0B [16:26:16]Write i2c OK [16:26:16]MH_I2C_Read... [16:26:16]OFD Sender: No OFD packet to send [16:26:17]*** Cut start [16:26:17]*** Partial cut [16:26:17]*** CUTSNS_PIN = 1 [16:26:17]*** CUTSNS_PIN = 0 [16:26:17]*** Brake cut motor [16:26:17]Read from MH i2c: 01 [16:26:17]MH_I2C_Read... [16:26:17]*** Stop cut motor [16:26:17]*** Cut end [16:26:17]Read from MH i2c: 01 07 00 [16:26:17]MH_I2C_Read... [16:26:17]Read from MH i2c: 01 07 00 F6 15 00 00 00 00 00 FF 0F 20 [16:26:17]process_action close_receipt done [16:26:17]requested_data is exist [16:26:17]produce_requested_data [16:26:17]requested_item fm.sn is exist - process it [16:26:17]wFMCommunicate request_size=4 [16:26:17]MH_SAM_APDU [16:26:17]CAPDU: 80 11 00 00 [16:26:17]Write to MH i2c: E2 08 00 F7 15 80 11 00 00 00 00 00 00 86 [16:26:17]Write i2c OK [16:26:17]MH_I2C_Read... [16:26:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:17]Read from MH i2c: E2 [16:26:17]MH_I2C_Read... [16:26:17]Read from MH i2c: E2 17 00 [16:26:17]MH_I2C_Read... [16:26:17]Read from MH i2c: E2 17 00 F7 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D8 [16:26:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:26:17]wFMCommunicate OK [16:26:17]requested_item fd.num is exist - process it [16:26:17]SAM_PROTO_GetFieldsCounters [16:26:17]wFMCommunicate request_size=4 [16:26:17]MH_SAM_APDU [16:26:17]CAPDU: 80 13 00 00 [16:26:17]Write to MH i2c: E2 08 00 F8 15 80 13 00 00 00 00 00 00 89 [16:26:17]Write i2c OK [16:26:17]MH_I2C_Read... [16:26:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:26:17]Read from MH i2c: E2 [16:26:17]MH_I2C_Read... [16:26:17]Read from MH i2c: E2 62 00 [16:26:17]MH_I2C_Read... [16:26:17]Read from MH i2c: E2 62 00 F8 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 30 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 CF [16:26:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 30 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:26:17]wFMCommunicate OK [16:26:17]SAM_PROTO_GetFieldsCounters done [16:26:17]requested_item shift.num is exist - process it [16:26:17]requested_item shift.opened is exist - process it [16:26:17]req_shift_opened [16:26:17]FM_GetShiftState [16:26:17]SAM_PROTO_GetShiftState [16:26:17]wFMCommunicate request_size=4 [16:26:17]MH_SAM_APDU [16:26:17]CAPDU: 80 13 01 00 [16:26:17]Write to MH i2c: E2 08 00 F9 15 80 13 01 00 00 00 00 00 8B [16:26:17]Write i2c OK [16:26:17]MH_I2C_Read... [16:26:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:17]Read from MH i2c: E2 [16:26:17]MH_I2C_Read... [16:26:17]Read from MH i2c: E2 0E 00 [16:26:17]MH_I2C_Read... [16:26:17]Read from MH i2c: E2 0E 00 F9 15 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 91 [16:26:17]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:26:17]wFMCommunicate OK [16:26:17]SAM_PROTO_GetShiftState done [16:26:17]FM_GetShiftState done [16:26:17]req_shift_opened done [16:26:17]requested_item shift.open_date is exist - process it [16:26:17]req_shift_open_date [16:26:17]req_shift_open_date done [16:26:17]produce_requested_data done [16:26:17]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69424,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [16:26:17]process_action_free close_receipt [16:26:17]json_value_free [16:26:17]json_value_free done [16:26:17]process_json_proto returns [16:26:17]Send response to host [16:26:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69424,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [16:26:17]free response buf [16:26:17]execute_script done [16:26:17]execute_script returns [16:26:17]free content buf [16:26:17]Sock 9.Close socket [16:26:17]Sock 9.Thread stoped [16:26:21]OFD Sender: No OFD packet to send [16:26:22]accept exits with 8 [16:26:22]New connection [16:26:22]New thread 3066568036 created [16:26:22]Thread 3066711396 joined [16:26:22]Waiting for new connection... [16:26:22] Sock 8.Parse request [16:26:22]Sock 8.Check first char [16:26:22]Sock 8.First char is OK [16:26:22]request: POST /json_proto HTTP/1.0 [16:26:22]Method: POST [16:26:22]URL: /json_proto [16:26:22]Method is POST - this is cgi request [16:26:22]url: /json_proto [16:26:22]query_string will be loaded in cgi processing [16:26:22]execute_cgi json_proto POST (null) [16:26:22]execute_cgi path=json_proto method=POST [16:26:22]POST find Content-Length [16:26:22]Host: 172.17.50.3:8080 [16:26:22]Content-Length: 742 [16:26:22]Content-Type: application/json [16:26:22] [16:26:22]POST finish read [16:26:22]Found Content-Length = 742 [16:26:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 69424, "base_FM": "0000000000963346", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 42.190, "sum" : 1641.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1641.00, "total" : 1641.00, "payments": [ { "type": 0, "sum" : 1641.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:22]execute_script... [16:26:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 69424, "base_FM": "0000000000963346", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 42.190, "sum" : 1641.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1641.00, "total" : 1641.00, "payments": [ { "type": 0, "sum" : 1641.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:22]POST & json_proto [16:26:22]process_json_proto [16:26:22]json parsed OK: [16:26:22]protocol is kg_v1.0 [16:26:22]action value=close_receipt [16:26:22]process_action close_receipt [16:26:22]cmd_close_receipt [16:26:22]MH_GetDate [16:26:22]Write to MH i2c: F0 00 00 FA 15 FE [16:26:22]Write i2c OK [16:26:22]MH_I2C_Read... [16:26:22]Read from MH i2c: F0 [16:26:22]MH_I2C_Read... [16:26:22]Read from MH i2c: F0 09 00 [16:26:22]MH_I2C_Read... [16:26:22]Read from MH i2c: F0 09 00 FA 15 00 2F 2F 15 67 6B 98 1E 66 68 [16:26:22]GetLastDocTimeStamp 1729441574 [16:26:22]current date 1729441583 [16:26:22]FM_GetShiftState [16:26:22]SAM_PROTO_GetShiftState [16:26:22]wFMCommunicate request_size=4 [16:26:22]MH_SAM_APDU [16:26:22]CAPDU: 80 13 01 00 [16:26:22]Write to MH i2c: E2 08 00 FB 15 80 13 01 00 00 00 00 00 8D [16:26:22]Write i2c OK [16:26:22]MH_I2C_Read... [16:26:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:22]Read from MH i2c: E2 [16:26:22]MH_I2C_Read... [16:26:22]Read from MH i2c: E2 0E 00 [16:26:22]MH_I2C_Read... [16:26:22]Read from MH i2c: E2 0E 00 FB 15 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 93 [16:26:22]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:26:22]wFMCommunicate OK [16:26:22]SAM_PROTO_GetShiftState done [16:26:22]FM_GetShiftState done [16:26:22]opened in 1729383220 [16:26:22]opened+sec_in_day 1729469620 [16:26:22]quantity*price = 164119 [16:26:22]sum+1 = 164120 [16:26:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1641.00 НСП 1% : 14.52 НДС 12% : 174.29 Наличными: 1641.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 270 20.10.2024 16:26 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФД осн.: 69424 ФМ осн.: 0000000000963346 ФМ: 0000000000963346 ФД: 69425 ФПД: 202557032523375 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T162623&type=2&operation_type=1&fn_number=0000000000963346&fd_number=69425&fm=202557032523375&tin=02508201610067®Number=0000000000156251&sum=164100 [16:26:23]StoreToDocumentArchive [16:26:23]shift 193 fd 69425 [16:26:23]save to /storage/0193/doc_00069425 [16:26:23]save last doc name /storage/0193/doc_00069425 to /storage/kkm_last_doc_name [16:26:23]save OK [16:26:23]Clear old archive folders... [16:26:23]ProcessDocumentItem done err = 0, tmpTLVsize=278 [16:26:23]tlvbuf is 001E26F0 [16:26:23]SAM_PROTO_ClearQueue [16:26:23]wFMCommunicate request_size=4 [16:26:23]MH_SAM_APDU [16:26:23]CAPDU: 80 09 00 00 [16:26:23]Write to MH i2c: E2 08 00 0A 16 80 09 00 00 00 00 00 00 92 [16:26:23]Write i2c OK [16:26:23]MH_I2C_Read... [16:26:23]Read from MH i2c: E2 [16:26:23]MH_I2C_Read... [16:26:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:26:23]Read from MH i2c: E2 03 00 [16:26:23]MH_I2C_Read... [16:26:23]Read from MH i2c: E2 03 00 0A 16 00 90 00 94 [16:26:23]RAPDU: 90 00 [16:26:23]wFMCommunicate OK [16:26:23]SAM_PROTO_ClearQueue done [16:26:23]KKMCreateOFDPacket [16:26:23]OFDProtocolAddRootSTLVToBuf [16:26:23]FM_MakeSignedData [16:26:23]FM_MakeSignedData [16:26:23]SAM_PROTO_SignData [16:26:23]wFMCommunicate request_size=4 [16:26:23]MH_SAM_APDU [16:26:23]CAPDU: 80 0D 01 02 [16:26:23]Write to MH i2c: E2 08 00 0B 16 80 0D 01 02 00 00 00 00 9A [16:26:23]Write i2c OK [16:26:23]MH_I2C_Read... [16:26:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:26:23]Read from MH i2c: E2 [16:26:23]MH_I2C_Read... [16:26:23]Read from MH i2c: E2 03 00 [16:26:23]MH_I2C_Read... [16:26:23]Read from MH i2c: E2 03 00 0B 16 00 90 00 95 [16:26:23]RAPDU: 90 00 [16:26:23]wFMCommunicate OK [16:26:23]wFMCommunicate request_size=255 [16:26:23]MH_SAM_APDU [16:26:23]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 02 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 CE A4 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 17 81 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 81 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 44 00 00 00 00 07 04 06 00 04 81 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 2F 2F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 30 0F 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 [16:26:23]Write to MH i2c: E2 02 01 0C 16 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 02 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 CE A4 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 17 81 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 81 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 44 00 00 00 00 07 04 06 00 04 81 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 2F 2F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 30 0F 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 00 00 2D [16:26:23]Write i2c OK [16:26:23]MH_I2C_Read... [16:26:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:23]Read from MH i2c: E2 [16:26:23]MH_I2C_Read... [16:26:23]Read from MH i2c: E2 03 00 [16:26:23]MH_I2C_Read... [16:26:23]Read from MH i2c: E2 03 00 0C 16 00 90 00 96 [16:26:23]RAPDU: 90 00 [16:26:23]wFMCommunicate OK [16:26:23]wFMCommunicate request_size=37 [16:26:23]MH_SAM_APDU [16:26:23]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 31 0F 01 00 35 04 06 00 B8 39 7B F8 66 6F [16:26:23]Write to MH i2c: E2 28 00 0D 16 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 31 0F 01 00 35 04 06 00 B8 39 7B F8 66 6F 00 00 6D [16:26:23]Write i2c OK [16:26:23]MH_I2C_Read... [16:26:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:24]Read from MH i2c: E2 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 03 00 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 03 00 0D 16 00 90 00 97 [16:26:24]RAPDU: 90 00 [16:26:24]wFMCommunicate OK [16:26:24]wFMCommunicate request_size=4 [16:26:24]MH_SAM_APDU [16:26:24]CAPDU: 80 0D 03 02 [16:26:24]Write to MH i2c: E2 08 00 0E 16 80 0D 03 02 00 00 00 00 9F [16:26:24]Write i2c OK [16:26:24]MH_I2C_Read... [16:26:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:26:24]Read from MH i2c: E2 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 0B 00 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 0B 00 0E 16 00 45 A8 CC 31 BE 84 66 BB 90 00 ED [16:26:24]RAPDU: 45 A8 CC 31 BE 84 66 BB 90 00 [16:26:24]wFMCommunicate OK [16:26:24]SAM_PROTO_SignData done [16:26:24]FM_MakeSignedData done [16:26:24]CreateOFDProtocolMessage [16:26:24]wFMCommunicate request_size=4 [16:26:24]MH_SAM_APDU [16:26:24]CAPDU: 80 11 00 00 [16:26:24]Write to MH i2c: E2 08 00 0F 16 80 11 00 00 00 00 00 00 9F [16:26:24]Write i2c OK [16:26:24]MH_I2C_Read... [16:26:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:24]Read from MH i2c: E2 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 17 00 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 17 00 0F 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F1 [16:26:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:26:24]wFMCommunicate OK [16:26:24]CreateOFDProtocolMessage done [16:26:24]OFDSenderStorePacket 69425 [16:26:24]StoreOFDPacket docnum=69425 [16:26:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 2A 01 00 00 22 B7 22 01 CF 15 5A 03 01 00 03 00 16 01 1E 04 01 00 02 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 CE A4 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 17 81 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 81 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 44 00 00 00 00 07 04 06 00 04 81 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 2F 2F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 30 0F 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 31 0F 01 00 35 04 06 00 B8 39 7B F8 66 6F 45 A8 CC 31 BE 84 66 BB [16:26:24]CheckFolder [16:26:24]dirname=/storage/ofd_packets [16:26:24]CheckFolder done [16:26:24]ProducePacketName [16:26:24]name=ofd_packets/00069425 [16:26:24]NVStorageSaveData ofd_packets/00069425 [16:26:24]File name is /storage/ofd_packets/00069425 [16:26:24]Write 328 bytes [16:26:24]NVStorageSaveData done [16:26:24]OFDSenderStorePacket done [16:26:24]KKMCreateOFDPacket done [16:26:24]NVStorageSaveData kkm_last_timestamp [16:26:24]File name is /storage/kkm_last_timestamp [16:26:24]Write 4 bytes [16:26:24]NVStorageSaveData done [16:26:24]ExternCall_PrintAddStr [16:26:24]wPrintStart [16:26:24]Write to MH i2c: 01 00 00 10 16 26 [16:26:24]Write i2c OK [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: 01 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: 01 07 00 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: 01 07 00 10 16 00 00 00 00 00 FF 0F 3B [16:26:24]RasterBufferAndPrint [16:26:24]line Счет N : (1)2885153 [16:26:24]line ИНН: 02508201610067 [16:26:24]line Контрольно-Кассовый Чек [16:26:24]line ВОЗВРАТ ПРОДАЖИ [16:26:24]line ТРК (МРК, ГНК) : 71 [16:26:24]line Товар: 2711129700 [16:26:24]line ГАЗ-К-3 [16:26:24]line 42.190 * 38.90 [16:26:24]line = 1641.19 [16:26:24]line НДС 12% НСП 1% [16:26:24]line > о реализуемом товаре [16:26:24]line ОКРУГЛЕНИЕ: -0.19 [16:26:24]line ИТОГО: 1641.00 [16:26:24]line НСП 1% : 14.52 [16:26:24]line НДС 12% : 174.29 [16:26:24]line Наличными: 1641.00 [16:26:24]line Безнал.: 0.00 [16:26:24]line Место: АЗС № 85 "Партнер Нефть" [16:26:24]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:26:24]line СНО: Общий режим [16:26:24]line Чек 270 20.10.2024 16:26 [16:26:24]line Смена: 193 ФФД: 1.0 [16:26:24]line ЗНМ: 0300000167 [16:26:24]line РНМ: 0000000000156251 [16:26:24]line Версия ККМ: v1.0 [16:26:24]line ФД осн.: 69424 [16:26:24]line ФМ осн.: 0000000000963346 [16:26:24]line ФМ: 0000000000963346 [16:26:24]line ФД: 69425 [16:26:24]line ФПД: 202557032523375 [16:26:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T162623&type=2&operation_type=1&fn_number=0000000000963346&fd_number=69425&fm=202557032523375&tin=02508201610067®Number=0000000000156251&sum=164100 [16:26:24]OFD Sender: Processing packet 69425 [packets to send 18, broken 17] [16:26:24]ProducePacketName [16:26:24]name=ofd_packets/00069425 [16:26:24]OFD Sender: To server: pG, [16:26:24]CommunicateWithHost lk.salyk.kg:30040 [16:26:24]ConnectInit lk.salyk.kg [16:26:24]written 0, free lines is 4095 [16:26:24]Connected sock=10 [16:26:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 2A 01 00 00 22 B7 22 01 CF 15 5A 03 01 00 03 00 16 01 1E 04 01 00 02 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 CE A4 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 17 81 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 81 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 44 00 00 00 00 07 04 06 00 04 81 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 2F 2F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 30 0F 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 31 0F 01 00 35 04 06 00 B8 39 7B F8 66 6F 45 A8 CC 31 BE 84 66 BB [16:26:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 6D 03 47 00 DB 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 31 0F 01 00 F4 03 04 00 D5 D8 14 67 B6 04 01 00 00 DF 34 09 5D 7D 87 D6 8B [16:26:24]CommunicateWithHost err = 0 [16:26:24]CheckOFDResponse [16:26:24]1017 (14) - 77093643461234 [16:26:24]1041 (16) - 0000000000963346 [16:26:24]1040 (4) - 69425 [16:26:24]1012 (4) - 20.10.2024 10:17 [16:26:24]1206 (1) - 0 [16:26:24]OFD Sender: Remove packet 69425 [16:26:24]ProducePacketName [16:26:24]name=ofd_packets/00069425 [16:26:24]NVStorageDeleteData [16:26:24]Write to MH i2c: 01 00 00 3B 16 51 [16:26:24]Write i2c OK [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: 01 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: 01 07 00 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: 01 07 00 3B 16 00 00 00 00 00 0B 0D 70 [16:26:24]RasterBufferAndPrint [16:26:24]line [16:26:24]line [16:26:24]line [16:26:24]line [16:26:24]line [16:26:24]written 0, free lines is 3349 [16:26:24]MH_Cut [16:26:24]Write to MH i2c: D1 01 00 42 16 01 2A [16:26:24]Write i2c OK [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: D1 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: D1 01 00 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: D1 01 00 42 16 00 29 [16:26:24]Write to MH i2c: 01 00 00 43 16 59 [16:26:24]Write i2c OK [16:26:24]MH_I2C_Read... [16:26:25]OFD Sender: No OFD packet to send [16:26:25]*** Cut start [16:26:25]*** Partial cut [16:26:25]*** CUTSNS_PIN = 1 [16:26:25]*** CUTSNS_PIN = 0 [16:26:25]*** Brake cut motor [16:26:26]Read from MH i2c: 01 [16:26:26]MH_I2C_Read... [16:26:26]*** Stop cut motor [16:26:26]*** Cut end [16:26:26]Read from MH i2c: 01 07 00 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: 01 07 00 43 16 00 00 00 00 00 FF 0F 6E [16:26:26]process_action close_receipt done [16:26:26]requested_data is exist [16:26:26]produce_requested_data [16:26:26]requested_item fm.sn is exist - process it [16:26:26]wFMCommunicate request_size=4 [16:26:26]MH_SAM_APDU [16:26:26]CAPDU: 80 11 00 00 [16:26:26]Write to MH i2c: E2 08 00 44 16 80 11 00 00 00 00 00 00 D4 [16:26:26]Write i2c OK [16:26:26]MH_I2C_Read... [16:26:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:26]Read from MH i2c: E2 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: E2 17 00 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: E2 17 00 44 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 26 [16:26:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:26:26]wFMCommunicate OK [16:26:26]requested_item fd.num is exist - process it [16:26:26]SAM_PROTO_GetFieldsCounters [16:26:26]wFMCommunicate request_size=4 [16:26:26]MH_SAM_APDU [16:26:26]CAPDU: 80 13 00 00 [16:26:26]Write to MH i2c: E2 08 00 45 16 80 13 00 00 00 00 00 00 D7 [16:26:26]Write i2c OK [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: E2 [16:26:26]MH_I2C_Read... [16:26:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:26:26]Read from MH i2c: E2 62 00 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: E2 62 00 45 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 31 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 21 [16:26:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 31 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:26:26]wFMCommunicate OK [16:26:26]SAM_PROTO_GetFieldsCounters done [16:26:26]requested_item shift.num is exist - process it [16:26:26]requested_item shift.opened is exist - process it [16:26:26]req_shift_opened [16:26:26]FM_GetShiftState [16:26:26]SAM_PROTO_GetShiftState [16:26:26]wFMCommunicate request_size=4 [16:26:26]MH_SAM_APDU [16:26:26]CAPDU: 80 13 01 00 [16:26:26]Write to MH i2c: E2 08 00 46 16 80 13 01 00 00 00 00 00 D9 [16:26:26]Write i2c OK [16:26:26]MH_I2C_Read... [16:26:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:26]Read from MH i2c: E2 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: E2 0E 00 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: E2 0E 00 46 16 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 DF [16:26:26]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:26:26]wFMCommunicate OK [16:26:26]SAM_PROTO_GetShiftState done [16:26:26]FM_GetShiftState done [16:26:26]req_shift_opened done [16:26:26]requested_item shift.open_date is exist - process it [16:26:26]req_shift_open_date [16:26:26]req_shift_open_date done [16:26:26]produce_requested_data done [16:26:26]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69425,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [16:26:26]process_action_free close_receipt [16:26:26]json_value_free [16:26:26]json_value_free done [16:26:26]process_json_proto returns [16:26:26]Send response to host [16:26:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69425,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [16:26:26]free response buf [16:26:26]execute_script done [16:26:26]execute_script returns [16:26:26]free content buf [16:26:26]Sock 8.Close socket [16:26:26]Sock 8.Thread stoped [16:26:30]OFD Sender: No OFD packet to send [16:26:35]OFD Sender: No OFD packet to send [16:26:40]OFD Sender: No OFD packet to send [16:26:45]OFD Sender: No OFD packet to send [16:26:50]OFD Sender: No OFD packet to send [16:26:55]OFD Sender: No OFD packet to send [16:27:00]OFD Sender: No OFD packet to send [16:27:05]OFD Sender: No OFD packet to send [16:27:10]OFD Sender: No OFD packet to send [16:27:15]OFD Sender: No OFD packet to send [16:27:20]OFD Sender: No OFD packet to send [16:27:25]OFD Sender: No OFD packet to send [16:27:30]OFD Sender: No OFD packet to send [16:27:35]OFD Sender: No OFD packet to send [16:27:40]OFD Sender: No OFD packet to send [16:27:45]OFD Sender: No OFD packet to send [16:27:50]OFD Sender: No OFD packet to send [16:27:55]OFD Sender: No OFD packet to send [16:28:00]OFD Sender: No OFD packet to send [16:28:05]OFD Sender: No OFD packet to send [16:28:10]OFD Sender: No OFD packet to send [16:28:15]OFD Sender: No OFD packet to send [16:28:17]accept exits with 9 [16:28:17]New connection [16:28:17]New thread 3066711396 created [16:28:17]Thread 3066568036 joined [16:28:17]Waiting for new connection... [16:28:17] Sock 9.Parse request [16:28:17]Sock 9.Check first char [16:28:17]Sock 9.First char is OK [16:28:17]request: POST /json_proto HTTP/1.0 [16:28:17]Method: POST [16:28:17]URL: /json_proto [16:28:17]Method is POST - this is cgi request [16:28:17]url: /json_proto [16:28:17]query_string will be loaded in cgi processing [16:28:17]execute_cgi json_proto POST (null) [16:28:17]execute_cgi path=json_proto method=POST [16:28:17]POST find Content-Length [16:28:17]Host: 172.17.50.3:8080 [16:28:17]Content-Length: 680 [16:28:17]Content-Type: application/json [16:28:17] [16:28:17]POST finish read [16:28:17]Found Content-Length = 680 [16:28:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 24.320, "sum" : 1853.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1853.00, "total" : 1853.00, "payments": [ { "type": 0, "sum" : 1853.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:28:17]execute_script... [16:28:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 24.320, "sum" : 1853.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1853.00, "total" : 1853.00, "payments": [ { "type": 0, "sum" : 1853.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:28:17]POST & json_proto [16:28:17]process_json_proto [16:28:17]json parsed OK: [16:28:17]protocol is kg_v1.0 [16:28:17]action value=close_receipt [16:28:17]process_action close_receipt [16:28:17]cmd_close_receipt [16:28:17]MH_GetDate [16:28:17]Write to MH i2c: F0 00 00 47 16 4C [16:28:17]Write i2c OK [16:28:17]MH_I2C_Read... [16:28:17]Read from MH i2c: F0 [16:28:17]MH_I2C_Read... [16:28:17]Read from MH i2c: F0 09 00 [16:28:17]MH_I2C_Read... [16:28:17]Read from MH i2c: F0 09 00 47 16 00 A2 2F 15 67 6B 98 1E 66 29 [16:28:17]GetLastDocTimeStamp 1729441583 [16:28:17]current date 1729441698 [16:28:17]FM_GetShiftState [16:28:17]SAM_PROTO_GetShiftState [16:28:17]wFMCommunicate request_size=4 [16:28:17]MH_SAM_APDU [16:28:17]CAPDU: 80 13 01 00 [16:28:17]Write to MH i2c: E2 08 00 48 16 80 13 01 00 00 00 00 00 DB [16:28:17]Write i2c OK [16:28:17]MH_I2C_Read... [16:28:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:18]Read from MH i2c: E2 [16:28:18]MH_I2C_Read... [16:28:18]Read from MH i2c: E2 0E 00 [16:28:18]MH_I2C_Read... [16:28:18]Read from MH i2c: E2 0E 00 48 16 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 E1 [16:28:18]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:28:18]wFMCommunicate OK [16:28:18]SAM_PROTO_GetShiftState done [16:28:18]FM_GetShiftState done [16:28:18]opened in 1729383220 [16:28:18]opened+sec_in_day 1729469620 [16:28:18]quantity*price = 185318 [16:28:18]sum+1 = 185319 [16:28:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 1853.00 Внесено: 1853.00 СДАЧА: 0.00 НСП 1% : 16.40 НДС 12% : 196.80 Наличными: 1853.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 271 20.10.2024 16:28 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69426 ФПД: 26815248339750 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T162818&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69426&fm=26815248339750&tin=02508201610067®Number=0000000000156251&sum=185300 [16:28:19]StoreToDocumentArchive [16:28:19]shift 193 fd 69426 [16:28:19]save to /storage/0193/doc_00069426 [16:28:19]save last doc name /storage/0193/doc_00069426 to /storage/kkm_last_doc_name [16:28:19]save OK [16:28:19]Clear old archive folders... [16:28:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:28:19]tlvbuf is 00250E90 [16:28:19]SAM_PROTO_ClearQueue [16:28:19]wFMCommunicate request_size=4 [16:28:19]MH_SAM_APDU [16:28:19]CAPDU: 80 09 00 00 [16:28:19]Write to MH i2c: E2 08 00 55 16 80 09 00 00 00 00 00 00 DD [16:28:19]Write i2c OK [16:28:19]MH_I2C_Read... [16:28:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:28:19]Read from MH i2c: E2 [16:28:19]MH_I2C_Read... [16:28:19]Read from MH i2c: E2 03 00 [16:28:19]MH_I2C_Read... [16:28:19]Read from MH i2c: E2 03 00 55 16 00 90 00 DF [16:28:19]RAPDU: 90 00 [16:28:19]wFMCommunicate OK [16:28:19]SAM_PROTO_ClearQueue done [16:28:19]KKMCreateOFDPacket [16:28:19]OFDProtocolAddRootSTLVToBuf [16:28:19]FM_MakeSignedData [16:28:19]FM_MakeSignedData [16:28:19]SAM_PROTO_SignData [16:28:19]wFMCommunicate request_size=4 [16:28:19]MH_SAM_APDU [16:28:19]CAPDU: 80 0D 01 02 [16:28:19]Write to MH i2c: E2 08 00 56 16 80 0D 01 02 00 00 00 00 E5 [16:28:19]Write i2c OK [16:28:19]MH_I2C_Read... [16:28:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:28:19]Read from MH i2c: E2 [16:28:19]MH_I2C_Read... [16:28:19]Read from MH i2c: E2 03 00 [16:28:19]MH_I2C_Read... [16:28:19]Read from MH i2c: E2 03 00 56 16 00 90 00 E0 [16:28:19]RAPDU: 90 00 [16:28:19]wFMCommunicate OK [16:28:19]wFMCommunicate request_size=255 [16:28:19]MH_SAM_APDU [16:28:19]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 00 5F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E6 D3 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 D3 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 4C 00 00 00 00 07 04 06 00 D4 D3 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 A2 2F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 32 0F 01 00 35 04 06 00 18 63 69 5A [16:28:19]Write to MH i2c: E2 02 01 57 16 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 00 5F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E6 D3 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 D3 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 4C 00 00 00 00 07 04 06 00 D4 D3 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 A2 2F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 32 0F 01 00 35 04 06 00 18 63 69 5A 00 00 C1 [16:28:19]Write i2c OK [16:28:19]MH_I2C_Read... [16:28:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:19]Read from MH i2c: E2 [16:28:19]MH_I2C_Read... [16:28:19]Read from MH i2c: E2 03 00 [16:28:19]MH_I2C_Read... [16:28:19]Read from MH i2c: E2 03 00 57 16 00 90 00 E1 [16:28:19]RAPDU: 90 00 [16:28:19]wFMCommunicate OK [16:28:19]wFMCommunicate request_size=7 [16:28:19]MH_SAM_APDU [16:28:19]CAPDU: 80 0D 02 02 02 13 26 [16:28:19]Write to MH i2c: E2 0A 00 58 16 80 0D 02 02 02 00 13 26 00 00 25 [16:28:19]Write i2c OK [16:28:19]MH_I2C_Read... [16:28:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:19]Read from MH i2c: E2 [16:28:19]MH_I2C_Read... [16:28:19]Read from MH i2c: E2 03 00 [16:28:19]MH_I2C_Read... [16:28:19]Read from MH i2c: E2 03 00 58 16 00 90 00 E2 [16:28:19]RAPDU: 90 00 [16:28:19]wFMCommunicate OK [16:28:19]wFMCommunicate request_size=4 [16:28:19]MH_SAM_APDU [16:28:19]CAPDU: 80 0D 03 02 [16:28:19]Write to MH i2c: E2 08 00 59 16 80 0D 03 02 00 00 00 00 EA [16:28:19]Write i2c OK [16:28:19]MH_I2C_Read... [16:28:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:28:19]Read from MH i2c: E2 [16:28:19]MH_I2C_Read... [16:28:19]Read from MH i2c: E2 0B 00 [16:28:19]MH_I2C_Read... [16:28:19]Read from MH i2c: E2 0B 00 59 16 00 A1 C7 90 92 2A D6 0C 7D 90 00 FE [16:28:19]RAPDU: A1 C7 90 92 2A D6 0C 7D 90 00 [16:28:19]wFMCommunicate OK [16:28:19]SAM_PROTO_SignData done [16:28:19]FM_MakeSignedData done [16:28:19]CreateOFDProtocolMessage [16:28:19]wFMCommunicate request_size=4 [16:28:19]MH_SAM_APDU [16:28:19]CAPDU: 80 11 00 00 [16:28:19]Write to MH i2c: E2 08 00 5A 16 80 11 00 00 00 00 00 00 EA [16:28:19]Write i2c OK [16:28:19]MH_I2C_Read... [16:28:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:19]Read from MH i2c: E2 [16:28:19]MH_I2C_Read... [16:28:19]Read from MH i2c: E2 17 00 [16:28:19]MH_I2C_Read... [16:28:19]Read from MH i2c: E2 17 00 5A 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3C [16:28:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:28:19]wFMCommunicate OK [16:28:19]CreateOFDProtocolMessage done [16:28:19]OFDSenderStorePacket 69426 [16:28:19]StoreOFDPacket docnum=69426 [16:28:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 7C C0 04 01 FB BC 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 00 5F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E6 D3 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 D3 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 4C 00 00 00 00 07 04 06 00 D4 D3 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 A2 2F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 32 0F 01 00 35 04 06 00 18 63 69 5A 13 26 A1 C7 90 92 2A D6 0C 7D [16:28:19]CheckFolder [16:28:19]dirname=/storage/ofd_packets [16:28:19]CheckFolder done [16:28:19]ProducePacketName [16:28:19]name=ofd_packets/00069426 [16:28:19]NVStorageSaveData ofd_packets/00069426 [16:28:19]File name is /storage/ofd_packets/00069426 [16:28:19]Write 298 bytes [16:28:19]NVStorageSaveData done [16:28:19]OFDSenderStorePacket done [16:28:19]KKMCreateOFDPacket done [16:28:19]NVStorageSaveData kkm_last_timestamp [16:28:19]File name is /storage/kkm_last_timestamp [16:28:19]Write 4 bytes [16:28:19]NVStorageSaveData done [16:28:19]ExternCall_PrintAddStr [16:28:19]wPrintStart [16:28:19]Write to MH i2c: 01 00 00 5B 16 71 [16:28:19]Write i2c OK [16:28:19]MH_I2C_Read... [16:28:19]Read from MH i2c: 01 [16:28:19]MH_I2C_Read... [16:28:19]Read from MH i2c: 01 07 00 [16:28:19]MH_I2C_Read... [16:28:19]Read from MH i2c: 01 07 00 5B 16 00 00 00 00 00 FF 0F 86 [16:28:19]RasterBufferAndPrint [16:28:19]line Счет N : (1)2885154 [16:28:19]line ИНН: 02508201610067 [16:28:19]line Контрольно-Кассовый Чек [16:28:19]line ПРОДАЖА [16:28:19]line ТРК (МРК, ГНК) : 51 [16:28:19]line Товар: 2710194210 [16:28:19]line ДТ-К-5 [16:28:19]line 24.320 * 76.20 [16:28:19]line = 1853.18 [16:28:19]line НДС 12% НСП 1% [16:28:19]line > о реализуемом товаре [16:28:19]line ОКРУГЛЕНИЕ: -0.18 [16:28:19]line ИТОГО: 1853.00 [16:28:19]line Внесено: 1853.00 [16:28:19]line СДАЧА: 0.00 [16:28:19]line НСП 1% : 16.40 [16:28:19]line НДС 12% : 196.80 [16:28:19]line Наличными: 1853.00 [16:28:19]line Безнал.: 0.00 [16:28:19]line Место: АЗС № 85 "Партнер Нефть" [16:28:19]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:28:19]line СНО: Общий режим [16:28:19]line Чек 271 20.10.2024 16:28 [16:28:19]line Смена: 193 ФФД: 1.0 [16:28:19]line ЗНМ: 0300000167 [16:28:19]line РНМ: 0000000000156251 [16:28:19]line Версия ККМ: v1.0 [16:28:19]line ФМ: 0000000000963346 [16:28:19]line ФД: 69426 [16:28:19]line ФПД: 26815248339750 [16:28:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T162818&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69426&fm=26815248339750&tin=02508201610067®Number=0000000000156251&sum=185300 [16:28:20]OFD Sender: Processing packet 69426 [packets to send 18, broken 17] [16:28:20]ProducePacketName [16:28:20]name=ofd_packets/00069426 [16:28:20]OFD Sender: To server: pG, [16:28:20]CommunicateWithHost lk.salyk.kg:30040 [16:28:20]ConnectInit lk.salyk.kg [16:28:20]written 0, free lines is 4095 [16:28:20]Connected sock=10 [16:28:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 7C C0 04 01 FB BC 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 00 5F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E6 D3 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 D3 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 4C 00 00 00 00 07 04 06 00 D4 D3 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 A2 2F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 32 0F 01 00 35 04 06 00 18 63 69 5A 13 26 A1 C7 90 92 2A D6 0C 7D [16:28:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 AB FF 47 00 2F DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 32 0F 01 00 F4 03 04 00 49 D9 14 67 B6 04 01 00 00 67 24 54 7A C9 3E 08 30 [16:28:20]CommunicateWithHost err = 0 [16:28:20]CheckOFDResponse [16:28:20]1017 (14) - 77093643461234 [16:28:20]1041 (16) - 0000000000963346 [16:28:20]1040 (4) - 69426 [16:28:20]1012 (4) - 20.10.2024 10:19 [16:28:20]1206 (1) - 0 [16:28:20]OFD Sender: Remove packet 69426 [16:28:20]ProducePacketName [16:28:20]name=ofd_packets/00069426 [16:28:20]NVStorageDeleteData [16:28:20]Write to MH i2c: 01 00 00 86 16 9C [16:28:20]Write i2c OK [16:28:20]MH_I2C_Read... [16:28:20]Read from MH i2c: 01 [16:28:20]MH_I2C_Read... [16:28:20]Read from MH i2c: 01 07 00 [16:28:20]MH_I2C_Read... [16:28:20]Read from MH i2c: 01 07 00 86 16 00 00 00 00 00 F4 0C A3 [16:28:20]RasterBufferAndPrint [16:28:20]line [16:28:20]line [16:28:20]line [16:28:20]line [16:28:20]line [16:28:20]written 0, free lines is 3322 [16:28:20]MH_Cut [16:28:20]Write to MH i2c: D1 01 00 8D 16 01 75 [16:28:20]Write i2c OK [16:28:20]MH_I2C_Read... [16:28:20]Read from MH i2c: D1 [16:28:20]MH_I2C_Read... [16:28:20]Read from MH i2c: D1 01 00 [16:28:20]MH_I2C_Read... [16:28:20]Read from MH i2c: D1 01 00 8D 16 00 74 [16:28:20]Write to MH i2c: 01 00 00 8E 16 A4 [16:28:20]Write i2c OK [16:28:20]MH_I2C_Read... [16:28:20]OFD Sender: No OFD packet to send [16:28:21]*** Cut start [16:28:21]*** Partial cut [16:28:21]*** CUTSNS_PIN = 1 [16:28:21]*** CUTSNS_PIN = 0 [16:28:21]*** Brake cut motor [16:28:21]Read from MH i2c: 01 [16:28:21]MH_I2C_Read... [16:28:21]*** Stop cut motor [16:28:21]*** Cut end [16:28:21]Read from MH i2c: 01 07 00 [16:28:21]MH_I2C_Read... [16:28:21]Read from MH i2c: 01 07 00 8E 16 00 00 00 00 00 FF 0F B9 [16:28:21]process_action close_receipt done [16:28:21]requested_data is exist [16:28:21]produce_requested_data [16:28:21]requested_item fm.sn is exist - process it [16:28:21]wFMCommunicate request_size=4 [16:28:21]MH_SAM_APDU [16:28:21]CAPDU: 80 11 00 00 [16:28:21]Write to MH i2c: E2 08 00 8F 16 80 11 00 00 00 00 00 00 1F [16:28:21]Write i2c OK [16:28:21]MH_I2C_Read... [16:28:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:21]Read from MH i2c: E2 [16:28:21]MH_I2C_Read... [16:28:21]Read from MH i2c: E2 17 00 [16:28:21]MH_I2C_Read... [16:28:21]Read from MH i2c: E2 17 00 8F 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 71 [16:28:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:28:21]wFMCommunicate OK [16:28:21]requested_item fd.num is exist - process it [16:28:21]SAM_PROTO_GetFieldsCounters [16:28:21]wFMCommunicate request_size=4 [16:28:21]MH_SAM_APDU [16:28:21]CAPDU: 80 13 00 00 [16:28:21]Write to MH i2c: E2 08 00 90 16 80 13 00 00 00 00 00 00 22 [16:28:21]Write i2c OK [16:28:21]MH_I2C_Read... [16:28:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:28:21]Read from MH i2c: E2 [16:28:21]MH_I2C_Read... [16:28:21]Read from MH i2c: E2 62 00 [16:28:21]MH_I2C_Read... [16:28:21]Read from MH i2c: E2 62 00 90 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 32 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 70 [16:28:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 32 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:28:22]wFMCommunicate OK [16:28:22]SAM_PROTO_GetFieldsCounters done [16:28:22]requested_item shift.num is exist - process it [16:28:22]requested_item shift.opened is exist - process it [16:28:22]req_shift_opened [16:28:22]FM_GetShiftState [16:28:22]SAM_PROTO_GetShiftState [16:28:22]wFMCommunicate request_size=4 [16:28:22]MH_SAM_APDU [16:28:22]CAPDU: 80 13 01 00 [16:28:22]Write to MH i2c: E2 08 00 91 16 80 13 01 00 00 00 00 00 24 [16:28:22]Write i2c OK [16:28:22]MH_I2C_Read... [16:28:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:22]Read from MH i2c: E2 [16:28:22]MH_I2C_Read... [16:28:22]Read from MH i2c: E2 0E 00 [16:28:22]MH_I2C_Read... [16:28:22]Read from MH i2c: E2 0E 00 91 16 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 2A [16:28:22]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:28:22]wFMCommunicate OK [16:28:22]SAM_PROTO_GetShiftState done [16:28:22]FM_GetShiftState done [16:28:22]req_shift_opened done [16:28:22]requested_item shift.open_date is exist - process it [16:28:22]req_shift_open_date [16:28:22]req_shift_open_date done [16:28:22]produce_requested_data done [16:28:22]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69426,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [16:28:22]process_action_free close_receipt [16:28:22]json_value_free [16:28:22]json_value_free done [16:28:22]process_json_proto returns [16:28:22]Send response to host [16:28:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69426,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [16:28:22]free response buf [16:28:22]execute_script done [16:28:22]execute_script returns [16:28:22]free content buf [16:28:22]Sock 9.Close socket [16:28:22]Sock 9.Thread stoped [16:28:25]OFD Sender: No OFD packet to send [16:28:30]OFD Sender: No OFD packet to send [16:28:35]OFD Sender: No OFD packet to send [16:28:40]OFD Sender: No OFD packet to send [16:28:45]OFD Sender: No OFD packet to send [16:28:50]OFD Sender: No OFD packet to send [16:28:55]OFD Sender: No OFD packet to send [16:29:00]OFD Sender: No OFD packet to send [16:29:03]accept exits with 8 [16:29:03]New connection [16:29:03]New thread 3066568036 created [16:29:03]Thread 3066711396 joined [16:29:03]Waiting for new connection... [16:29:03] Sock 8.Parse request [16:29:03]Sock 8.Check first char [16:29:03]Sock 8.First char is OK [16:29:03]request: POST /json_proto HTTP/1.0 [16:29:03]Method: POST [16:29:03]URL: /json_proto [16:29:03]Method is POST - this is cgi request [16:29:03]url: /json_proto [16:29:03]query_string will be loaded in cgi processing [16:29:03]execute_cgi json_proto POST (null) [16:29:03]execute_cgi path=json_proto method=POST [16:29:03]POST find Content-Length [16:29:03]Host: 172.17.50.3:8080 [16:29:03]Content-Length: 681 [16:29:03]Content-Type: application/json [16:29:03] [16:29:03]POST finish read [16:29:03]Found Content-Length = 681 [16:29:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 129.410, "sum" : 9861.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 9861.00, "total" : 9861.00, "payments": [ { "type": 0, "sum" : 9861.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:03]execute_script... [16:29:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 129.410, "sum" : 9861.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 9861.00, "total" : 9861.00, "payments": [ { "type": 0, "sum" : 9861.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:03]POST & json_proto [16:29:03]process_json_proto [16:29:03]json parsed OK: [16:29:03]protocol is kg_v1.0 [16:29:03]action value=close_receipt [16:29:03]process_action close_receipt [16:29:03]cmd_close_receipt [16:29:03]MH_GetDate [16:29:03]Write to MH i2c: F0 00 00 92 16 97 [16:29:03]Write i2c OK [16:29:03]MH_I2C_Read... [16:29:03]Read from MH i2c: F0 [16:29:03]MH_I2C_Read... [16:29:03]Read from MH i2c: F0 09 00 [16:29:03]MH_I2C_Read... [16:29:03]Read from MH i2c: F0 09 00 92 16 00 D0 2F 15 67 6B 98 1E 66 A2 [16:29:03]GetLastDocTimeStamp 1729441698 [16:29:03]current date 1729441744 [16:29:03]FM_GetShiftState [16:29:03]SAM_PROTO_GetShiftState [16:29:03]wFMCommunicate request_size=4 [16:29:03]MH_SAM_APDU [16:29:03]CAPDU: 80 13 01 00 [16:29:03]Write to MH i2c: E2 08 00 93 16 80 13 01 00 00 00 00 00 26 [16:29:03]Write i2c OK [16:29:03]MH_I2C_Read... [16:29:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:03]Read from MH i2c: E2 [16:29:03]MH_I2C_Read... [16:29:03]Read from MH i2c: E2 0E 00 [16:29:03]MH_I2C_Read... [16:29:03]Read from MH i2c: E2 0E 00 93 16 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 2C [16:29:03]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:29:03]wFMCommunicate OK [16:29:03]SAM_PROTO_GetShiftState done [16:29:03]FM_GetShiftState done [16:29:03]opened in 1729383220 [16:29:03]opened+sec_in_day 1729469620 [16:29:03]quantity*price = 986104 [16:29:03]sum+1 = 986105 [16:29:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 9861.00 Внесено: 9861.00 СДАЧА: 0.00 НСП 1% : 87.27 НДС 12% : 1047.19 Наличными: 9861.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 272 20.10.2024 16:29 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69427 ФПД: 45738341475410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T162904&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69427&fm=45738341475410&tin=02508201610067®Number=0000000000156251&sum=986100 [16:29:04]StoreToDocumentArchive [16:29:04]shift 193 fd 69427 [16:29:04]save to /storage/0193/doc_00069427 [16:29:04]save last doc name /storage/0193/doc_00069427 to /storage/kkm_last_doc_name [16:29:04]save OK [16:29:04]Clear old archive folders... [16:29:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:29:04]tlvbuf is 002BD8A0 [16:29:04]SAM_PROTO_ClearQueue [16:29:04]wFMCommunicate request_size=4 [16:29:04]MH_SAM_APDU [16:29:04]CAPDU: 80 09 00 00 [16:29:04]Write to MH i2c: E2 08 00 A0 16 80 09 00 00 00 00 00 00 28 [16:29:04]Write i2c OK [16:29:04]MH_I2C_Read... [16:29:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:29:04]Read from MH i2c: E2 [16:29:04]MH_I2C_Read... [16:29:04]Read from MH i2c: E2 03 00 [16:29:04]MH_I2C_Read... [16:29:04]Read from MH i2c: E2 03 00 A0 16 00 90 00 2A [16:29:04]RAPDU: 90 00 [16:29:04]wFMCommunicate OK [16:29:04]SAM_PROTO_ClearQueue done [16:29:04]KKMCreateOFDPacket [16:29:04]OFDProtocolAddRootSTLVToBuf [16:29:04]FM_MakeSignedData [16:29:04]FM_MakeSignedData [16:29:04]SAM_PROTO_SignData [16:29:04]wFMCommunicate request_size=4 [16:29:04]MH_SAM_APDU [16:29:04]CAPDU: 80 0D 01 02 [16:29:04]Write to MH i2c: E2 08 00 A1 16 80 0D 01 02 00 00 00 00 30 [16:29:04]Write i2c OK [16:29:04]MH_I2C_Read... [16:29:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:29:04]Read from MH i2c: E2 [16:29:04]MH_I2C_Read... [16:29:04]Read from MH i2c: E2 03 00 [16:29:04]MH_I2C_Read... [16:29:04]Read from MH i2c: E2 03 00 A1 16 00 90 00 2B [16:29:04]RAPDU: 90 00 [16:29:04]wFMCommunicate OK [16:29:04]wFMCommunicate request_size=255 [16:29:04]MH_SAM_APDU [16:29: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 82 F9 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F8 0B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 0B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 99 01 00 00 00 07 04 06 00 F4 0B 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 D0 2F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 33 0F 01 00 35 04 06 00 29 99 49 98 [16:29:04]Write to MH i2c: E2 02 01 A2 16 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 82 F9 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F8 0B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 0B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 99 01 00 00 00 07 04 06 00 F4 0B 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 D0 2F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 33 0F 01 00 35 04 06 00 29 99 49 98 00 00 27 [16:29:04]Write i2c OK [16:29:04]MH_I2C_Read... [16:29:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:05]Read from MH i2c: E2 [16:29:05]MH_I2C_Read... [16:29:05]Read from MH i2c: E2 03 00 [16:29:05]MH_I2C_Read... [16:29:05]Read from MH i2c: E2 03 00 A2 16 00 90 00 2C [16:29:05]RAPDU: 90 00 [16:29:05]wFMCommunicate OK [16:29:05]wFMCommunicate request_size=7 [16:29:05]MH_SAM_APDU [16:29:05]CAPDU: 80 0D 02 02 02 A4 52 [16:29:05]Write to MH i2c: E2 0A 00 A3 16 80 0D 02 02 02 00 A4 52 00 00 2D [16:29:05]Write i2c OK [16:29:05]MH_I2C_Read... [16:29:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:05]Read from MH i2c: E2 [16:29:05]MH_I2C_Read... [16:29:05]Read from MH i2c: E2 03 00 [16:29:05]MH_I2C_Read... [16:29:05]Read from MH i2c: E2 03 00 A3 16 00 90 00 2D [16:29:05]RAPDU: 90 00 [16:29:05]wFMCommunicate OK [16:29:05]wFMCommunicate request_size=4 [16:29:05]MH_SAM_APDU [16:29:05]CAPDU: 80 0D 03 02 [16:29:05]Write to MH i2c: E2 08 00 A4 16 80 0D 03 02 00 00 00 00 35 [16:29:05]Write i2c OK [16:29:05]MH_I2C_Read... [16:29:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:29:05]Read from MH i2c: E2 [16:29:05]MH_I2C_Read... [16:29:05]Read from MH i2c: E2 0B 00 [16:29:05]MH_I2C_Read... [16:29:05]Read from MH i2c: E2 0B 00 A4 16 00 0A 46 89 37 31 52 B6 43 90 00 C2 [16:29:05]RAPDU: 0A 46 89 37 31 52 B6 43 90 00 [16:29:05]wFMCommunicate OK [16:29:05]SAM_PROTO_SignData done [16:29:05]FM_MakeSignedData done [16:29:05]CreateOFDProtocolMessage [16:29:05]wFMCommunicate request_size=4 [16:29:05]MH_SAM_APDU [16:29:05]CAPDU: 80 11 00 00 [16:29:05]Write to MH i2c: E2 08 00 A5 16 80 11 00 00 00 00 00 00 35 [16:29:05]Write i2c OK [16:29:05]MH_I2C_Read... [16:29:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:05]Read from MH i2c: E2 [16:29:05]MH_I2C_Read... [16:29:05]Read from MH i2c: E2 17 00 [16:29:05]MH_I2C_Read... [16:29:05]Read from MH i2c: E2 17 00 A5 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 87 [16:29:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:29:05]wFMCommunicate OK [16:29:05]CreateOFDProtocolMessage done [16:29:05]OFDSenderStorePacket 69427 [16:29:05]StoreOFDPacket docnum=69427 [16:29:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 62 99 04 01 C7 93 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 82 F9 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F8 0B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 0B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 99 01 00 00 00 07 04 06 00 F4 0B 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 D0 2F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 33 0F 01 00 35 04 06 00 29 99 49 98 A4 52 0A 46 89 37 31 52 B6 43 [16:29:05]CheckFolder [16:29:05]dirname=/storage/ofd_packets [16:29:05]CheckFolder done [16:29:05]ProducePacketName [16:29:05]name=ofd_packets/00069427 [16:29:05]NVStorageSaveData ofd_packets/00069427 [16:29:05]File name is /storage/ofd_packets/00069427 [16:29:05]Write 298 bytes [16:29:05]NVStorageSaveData done [16:29:05]OFDSenderStorePacket done [16:29:05]KKMCreateOFDPacket done [16:29:05]NVStorageSaveData kkm_last_timestamp [16:29:05]File name is /storage/kkm_last_timestamp [16:29:05]Write 4 bytes [16:29:05]NVStorageSaveData done [16:29:05]ExternCall_PrintAddStr [16:29:05]wPrintStart [16:29:05]Write to MH i2c: 01 00 00 A6 16 BC [16:29:05]Write i2c OK [16:29:05]MH_I2C_Read... [16:29:05]Read from MH i2c: 01 [16:29:05]MH_I2C_Read... [16:29:05]Read from MH i2c: 01 07 00 [16:29:05]MH_I2C_Read... [16:29:05]Read from MH i2c: 01 07 00 A6 16 00 00 00 00 00 FF 0F D1 [16:29:05]RasterBufferAndPrint [16:29:05]line Счет N : (1)2885152 [16:29:05]line ИНН: 02508201610067 [16:29:05]line Контрольно-Кассовый Чек [16:29:05]line ПРОДАЖА [16:29:05]line ТРК (МРК, ГНК) : 61 [16:29:05]line Товар: 2710194210 [16:29:05]line ДТ-К-5 [16:29:05]line 129.410 * 76.20 [16:29:05]line = 9861.04 [16:29:05]line НДС 12% НСП 1% [16:29:05]line > о реализуемом товаре [16:29:05]line ОКРУГЛЕНИЕ: -0.04 [16:29:05]line ИТОГО: 9861.00 [16:29:05]line Внесено: 9861.00 [16:29:05]line СДАЧА: 0.00 [16:29:05]line НСП 1% : 87.27 [16:29:05]line НДС 12% : 1047.19 [16:29:05]line Наличными: 9861.00 [16:29:05]line Безнал.: 0.00 [16:29:05]line Место: АЗС № 85 "Партнер Нефть" [16:29:05]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:29:05]line СНО: Общий режим [16:29:05]line Чек 272 20.10.2024 16:29 [16:29:05]line Смена: 193 ФФД: 1.0 [16:29:05]line ЗНМ: 0300000167 [16:29:05]line РНМ: 0000000000156251 [16:29:05]line Версия ККМ: v1.0 [16:29:05]line ФМ: 0000000000963346 [16:29:05]line ФД: 69427 [16:29:05]line ФПД: 45738341475410 [16:29:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T162904&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69427&fm=45738341475410&tin=02508201610067®Number=0000000000156251&sum=986100 [16:29:05]OFD Sender: Processing packet 69427 [packets to send 18, broken 17] [16:29:05]ProducePacketName [16:29:05]name=ofd_packets/00069427 [16:29:05]OFD Sender: To server: pG, [16:29:05]CommunicateWithHost lk.salyk.kg:30040 [16:29:05]ConnectInit lk.salyk.kg [16:29:05]written 0, free lines is 4095 [16:29:05]Connected sock=10 [16:29:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 62 99 04 01 C7 93 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 82 F9 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F8 0B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 0B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 99 01 00 00 00 07 04 06 00 F4 0B 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 D0 2F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 33 0F 01 00 35 04 06 00 29 99 49 98 A4 52 0A 46 89 37 31 52 B6 43 [16:29:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 77 19 47 00 47 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 33 0F 01 00 F4 03 04 00 76 D9 14 67 B6 04 01 00 00 55 47 CF AC 25 57 17 1F [16:29:05]CommunicateWithHost err = 0 [16:29:05]CheckOFDResponse [16:29:05]1017 (14) - 77093643461234 [16:29:05]1041 (16) - 0000000000963346 [16:29:05]1040 (4) - 69427 [16:29:05]1012 (4) - 20.10.2024 10:20 [16:29:05]1206 (1) - 0 [16:29:05]OFD Sender: Remove packet 69427 [16:29:05]ProducePacketName [16:29:05]name=ofd_packets/00069427 [16:29:05]NVStorageDeleteData [16:29:05]Write to MH i2c: 01 00 00 D1 16 E7 [16:29:05]Write i2c OK [16:29:05]MH_I2C_Read... [16:29:05]Read from MH i2c: 01 [16:29:05]MH_I2C_Read... [16:29:05]Read from MH i2c: 01 07 00 [16:29:05]MH_I2C_Read... [16:29:05]Read from MH i2c: 01 07 00 D1 16 00 00 00 00 00 F2 0C EC [16:29:05]RasterBufferAndPrint [16:29:05]line [16:29:05]line [16:29:05]line [16:29:05]line [16:29:05]line [16:29:05]written 0, free lines is 3320 [16:29:05]MH_Cut [16:29:05]Write to MH i2c: D1 01 00 D8 16 01 C0 [16:29:05]Write i2c OK [16:29:05]MH_I2C_Read... [16:29:05]Read from MH i2c: D1 [16:29:05]MH_I2C_Read... [16:29:05]Read from MH i2c: D1 01 00 [16:29:05]MH_I2C_Read... [16:29:05]Read from MH i2c: D1 01 00 D8 16 00 BF [16:29:05]Write to MH i2c: 01 00 00 D9 16 EF [16:29:05]Write i2c OK [16:29:05]MH_I2C_Read... [16:29:06]OFD Sender: No OFD packet to send [16:29:06]*** Cut start [16:29:06]*** Partial cut [16:29:06]*** CUTSNS_PIN = 1 [16:29:06]*** CUTSNS_PIN = 0 [16:29:06]*** Brake cut motor [16:29:07]Read from MH i2c: 01 [16:29:07]MH_I2C_Read... [16:29:07]*** Stop cut motor [16:29:07]*** Cut end [16:29:07]Read from MH i2c: 01 07 00 [16:29:07]MH_I2C_Read... [16:29:07]Read from MH i2c: 01 07 00 D9 16 00 00 00 00 00 FF 0F 04 [16:29:07]process_action close_receipt done [16:29:07]requested_data is exist [16:29:07]produce_requested_data [16:29:07]requested_item fm.sn is exist - process it [16:29:07]wFMCommunicate request_size=4 [16:29:07]MH_SAM_APDU [16:29:07]CAPDU: 80 11 00 00 [16:29:07]Write to MH i2c: E2 08 00 DA 16 80 11 00 00 00 00 00 00 6A [16:29:07]Write i2c OK [16:29:07]MH_I2C_Read... [16:29:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:07]Read from MH i2c: E2 [16:29:07]MH_I2C_Read... [16:29:07]Read from MH i2c: E2 17 00 [16:29:07]MH_I2C_Read... [16:29:07]Read from MH i2c: E2 17 00 DA 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BC [16:29:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:29:07]wFMCommunicate OK [16:29:07]requested_item fd.num is exist - process it [16:29:07]SAM_PROTO_GetFieldsCounters [16:29:07]wFMCommunicate request_size=4 [16:29:07]MH_SAM_APDU [16:29:07]CAPDU: 80 13 00 00 [16:29:07]Write to MH i2c: E2 08 00 DB 16 80 13 00 00 00 00 00 00 6D [16:29:07]Write i2c OK [16:29:07]MH_I2C_Read... [16:29:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:29:07]Read from MH i2c: E2 [16:29:07]MH_I2C_Read... [16:29:07]Read from MH i2c: E2 62 00 [16:29:07]MH_I2C_Read... [16:29:07]Read from MH i2c: E2 62 00 DB 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 33 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 BF [16:29:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 33 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:29:07]wFMCommunicate OK [16:29:07]SAM_PROTO_GetFieldsCounters done [16:29:07]requested_item shift.num is exist - process it [16:29:07]requested_item shift.opened is exist - process it [16:29:07]req_shift_opened [16:29:07]FM_GetShiftState [16:29:07]SAM_PROTO_GetShiftState [16:29:07]wFMCommunicate request_size=4 [16:29:07]MH_SAM_APDU [16:29:07]CAPDU: 80 13 01 00 [16:29:07]Write to MH i2c: E2 08 00 DC 16 80 13 01 00 00 00 00 00 6F [16:29:07]Write i2c OK [16:29:07]MH_I2C_Read... [16:29:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:07]Read from MH i2c: E2 [16:29:07]MH_I2C_Read... [16:29:07]Read from MH i2c: E2 0E 00 [16:29:07]MH_I2C_Read... [16:29:07]Read from MH i2c: E2 0E 00 DC 16 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 75 [16:29:07]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:29:07]wFMCommunicate OK [16:29:07]SAM_PROTO_GetShiftState done [16:29:07]FM_GetShiftState done [16:29:07]req_shift_opened done [16:29:07]requested_item shift.open_date is exist - process it [16:29:07]req_shift_open_date [16:29:07]req_shift_open_date done [16:29:07]produce_requested_data done [16:29:07]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69427,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [16:29:07]process_action_free close_receipt [16:29:07]json_value_free [16:29:07]json_value_free done [16:29:07]process_json_proto returns [16:29:07]Send response to host [16:29:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69427,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [16:29:07]free response buf [16:29:07]execute_script done [16:29:07]execute_script returns [16:29:07]free content buf [16:29:07]Sock 8.Close socket [16:29:07]Sock 8.Thread stoped [16:29:11]OFD Sender: No OFD packet to send [16:29:15]accept exits with 9 [16:29:15]New connection [16:29:15]New thread 3066711396 created [16:29:15]Thread 3066568036 joined [16:29:15]Waiting for new connection... [16:29:15] Sock 9.Parse request [16:29:15]Sock 9.Check first char [16:29:15]Sock 9.First char is OK [16:29:15]request: POST /json_proto HTTP/1.0 [16:29:15]Method: POST [16:29:15]URL: /json_proto [16:29:15]Method is POST - this is cgi request [16:29:15]url: /json_proto [16:29:15]query_string will be loaded in cgi processing [16:29:15]execute_cgi json_proto POST (null) [16:29:15]execute_cgi path=json_proto method=POST [16:29:15]POST find Content-Length [16:29:15]Host: 172.17.50.3:8080 [16:29:15]Content-Length: 678 [16:29:15]Content-Type: application/json [16:29:15] [16:29:15]POST finish read [16:29:15]Found Content-Length = 678 [16:29:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [16:29:15]execute_script... [16:29:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [16:29:15]POST & json_proto [16:29:15]process_json_proto [16:29:15]json parsed OK: [16:29:15]protocol is kg_v1.0 [16:29:15]action value=close_receipt [16:29:15]process_action close_receipt [16:29:15]cmd_close_receipt [16:29:15]MH_GetDate [16:29:15]Write to MH i2c: F0 00 00 DD 16 E2 [16:29:15]Write i2c OK [16:29:15]MH_I2C_Read... [16:29:15]Read from MH i2c: F0 [16:29:15]MH_I2C_Read... [16:29:15]Read from MH i2c: F0 09 00 [16:29:15]MH_I2C_Read... [16:29:15]Read from MH i2c: F0 09 00 DD 16 00 DC 2F 15 67 6B 98 1E 66 F9 [16:29:15]GetLastDocTimeStamp 1729441744 [16:29:15]current date 1729441756 [16:29:15]FM_GetShiftState [16:29:15]SAM_PROTO_GetShiftState [16:29:15]wFMCommunicate request_size=4 [16:29:15]MH_SAM_APDU [16:29:15]CAPDU: 80 13 01 00 [16:29:15]Write to MH i2c: E2 08 00 DE 16 80 13 01 00 00 00 00 00 71 [16:29:15]Write i2c OK [16:29:15]MH_I2C_Read... [16:29:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:15]Read from MH i2c: E2 [16:29:15]MH_I2C_Read... [16:29:15]Read from MH i2c: E2 0E 00 [16:29:15]MH_I2C_Read... [16:29:15]Read from MH i2c: E2 0E 00 DE 16 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 77 [16:29:15]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:29:15]wFMCommunicate OK [16:29:15]SAM_PROTO_GetShiftState done [16:29:15]FM_GetShiftState done [16:29:15]opened in 1729383220 [16:29:15]opened+sec_in_day 1729469620 [16:29:15]quantity*price = 50010 [16:29:15]sum+1 = 50012 [16:29:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 273 20.10.2024 16:29 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69428 ФПД: 146342330594847 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T162916&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69428&fm=146342330594847&tin=02508201610067®Number=0000000000156251&sum=50000 [16:29:16]StoreToDocumentArchive [16:29:16]shift 193 fd 69428 [16:29:16]save to /storage/0193/doc_00069428 [16:29:16]save last doc name /storage/0193/doc_00069428 to /storage/kkm_last_doc_name [16:29:16]save OK [16:29:16]Clear old archive folders... [16:29:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:29:16]tlvbuf is 002BD8A0 [16:29:16]SAM_PROTO_ClearQueue [16:29:16]wFMCommunicate request_size=4 [16:29:16]MH_SAM_APDU [16:29:16]CAPDU: 80 09 00 00 [16:29:16]Write to MH i2c: E2 08 00 EB 16 80 09 00 00 00 00 00 00 73 [16:29:16]Write i2c OK [16:29:16]MH_I2C_Read... [16:29:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:29:16]Read from MH i2c: E2 [16:29:16]MH_I2C_Read... [16:29:16]Read from MH i2c: E2 03 00 [16:29:16]MH_I2C_Read... [16:29:16]Read from MH i2c: E2 03 00 EB 16 00 90 00 75 [16:29:16]RAPDU: 90 00 [16:29:16]wFMCommunicate OK [16:29:16]SAM_PROTO_ClearQueue done [16:29:16]KKMCreateOFDPacket [16:29:16]OFDProtocolAddRootSTLVToBuf [16:29:16]FM_MakeSignedData [16:29:16]FM_MakeSignedData [16:29:16]SAM_PROTO_SignData [16:29:16]wFMCommunicate request_size=4 [16:29:16]MH_SAM_APDU [16:29:16]CAPDU: 80 0D 01 02 [16:29:16]Write to MH i2c: E2 08 00 EC 16 80 0D 01 02 00 00 00 00 7B [16:29:16]Write i2c OK [16:29:16]MH_I2C_Read... [16:29:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:29:16]Read from MH i2c: E2 [16:29:16]MH_I2C_Read... [16:29:16]Read from MH i2c: E2 03 00 [16:29:16]MH_I2C_Read... [16:29:16]Read from MH i2c: E2 03 00 EC 16 00 90 00 76 [16:29:16]RAPDU: 90 00 [16:29:16]wFMCommunicate OK [16:29:16]wFMCommunicate request_size=255 [16:29:16]MH_SAM_APDU [16:29:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 11 01 00 00 F4 03 04 00 DC 2F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 34 0F 01 00 35 04 06 00 85 [16:29:16]Write to MH i2c: E2 02 01 ED 16 80 0D 02 02 FA 00 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 11 01 00 00 F4 03 04 00 DC 2F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 34 0F 01 00 35 04 06 00 85 00 00 FF [16:29:16]Write i2c OK [16:29:16]MH_I2C_Read... [16:29:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:17]Read from MH i2c: E2 [16:29:17]MH_I2C_Read... [16:29:17]Read from MH i2c: E2 03 00 [16:29:17]MH_I2C_Read... [16:29:17]Read from MH i2c: E2 03 00 ED 16 00 90 00 77 [16:29:17]RAPDU: 90 00 [16:29:17]wFMCommunicate OK [16:29:17]wFMCommunicate request_size=10 [16:29:17]MH_SAM_APDU [16:29:17]CAPDU: 80 0D 02 02 05 18 FA A1 76 1F [16:29:17]Write to MH i2c: E2 0D 00 EE 16 80 0D 02 02 05 00 18 FA A1 76 1F 00 00 D0 [16:29:17]Write i2c OK [16:29:17]MH_I2C_Read... [16:29:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:17]Read from MH i2c: E2 [16:29:17]MH_I2C_Read... [16:29:17]Read from MH i2c: E2 03 00 [16:29:17]MH_I2C_Read... [16:29:17]Read from MH i2c: E2 03 00 EE 16 00 90 00 78 [16:29:17]RAPDU: 90 00 [16:29:17]wFMCommunicate OK [16:29:17]wFMCommunicate request_size=4 [16:29:17]MH_SAM_APDU [16:29:17]CAPDU: 80 0D 03 02 [16:29:17]Write to MH i2c: E2 08 00 EF 16 80 0D 03 02 00 00 00 00 80 [16:29:17]Write i2c OK [16:29:17]MH_I2C_Read... [16:29:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:29:17]Read from MH i2c: E2 [16:29:17]MH_I2C_Read... [16:29:17]Read from MH i2c: E2 0B 00 [16:29:17]MH_I2C_Read... [16:29:17]Read from MH i2c: E2 0B 00 EF 16 00 65 A7 74 CA 57 B0 19 1A 90 00 05 [16:29:17]RAPDU: 65 A7 74 CA 57 B0 19 1A 90 00 [16:29:17]wFMCommunicate OK [16:29:17]SAM_PROTO_SignData done [16:29:17]FM_MakeSignedData done [16:29:17]CreateOFDProtocolMessage [16:29:17]wFMCommunicate request_size=4 [16:29:17]MH_SAM_APDU [16:29:17]CAPDU: 80 11 00 00 [16:29:17]Write to MH i2c: E2 08 00 F0 16 80 11 00 00 00 00 00 00 80 [16:29:17]Write i2c OK [16:29:17]MH_I2C_Read... [16:29:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:17]Read from MH i2c: E2 [16:29:17]MH_I2C_Read... [16:29:17]Read from MH i2c: E2 17 00 [16:29:17]MH_I2C_Read... [16:29:17]Read from MH i2c: E2 17 00 F0 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D2 [16:29:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:29:17]wFMCommunicate OK [16:29:17]CreateOFDProtocolMessage done [16:29:17]OFDSenderStorePacket 69428 [16:29:17]StoreOFDPacket docnum=69428 [16:29:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 B7 E3 07 01 C7 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 11 01 00 00 F4 03 04 00 DC 2F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 34 0F 01 00 35 04 06 00 85 18 FA A1 76 1F 65 A7 74 CA 57 B0 19 1A [16:29:17]CheckFolder [16:29:17]dirname=/storage/ofd_packets [16:29:17]CheckFolder done [16:29:17]ProducePacketName [16:29:17]name=ofd_packets/00069428 [16:29:17]NVStorageSaveData ofd_packets/00069428 [16:29:17]File name is /storage/ofd_packets/00069428 [16:29:17]Write 301 bytes [16:29:17]NVStorageSaveData done [16:29:17]OFDSenderStorePacket done [16:29:17]KKMCreateOFDPacket done [16:29:17]NVStorageSaveData kkm_last_timestamp [16:29:17]File name is /storage/kkm_last_timestamp [16:29:17]Write 4 bytes [16:29:17]NVStorageSaveData done [16:29:17]ExternCall_PrintAddStr [16:29:17]wPrintStart [16:29:17]Write to MH i2c: 01 00 00 F1 16 07 [16:29:17]Write i2c OK [16:29:17]MH_I2C_Read... [16:29:17]Read from MH i2c: 01 [16:29:17]MH_I2C_Read... [16:29:17]Read from MH i2c: 01 07 00 [16:29:17]MH_I2C_Read... [16:29:17]Read from MH i2c: 01 07 00 F1 16 00 00 00 00 00 FF 0F 1C [16:29:17]RasterBufferAndPrint [16:29:17]line Счет N : (1)2885155 [16:29:17]line ИНН: 02508201610067 [16:29:17]line Контрольно-Кассовый Чек [16:29:17]line ПРОДАЖА [16:29:17]line ТРК (МРК, ГНК) : 13 [16:29:17]line Товар: 2710124500 [16:29:17]line Аи-95-К-5 [16:29:17]line 6.740 * 74.20 [16:29:17]line = 500.11 [16:29:17]line НДС 12% НСП 1% [16:29:17]line > о реализуемом товаре [16:29:17]line ОКРУГЛЕНИЕ: -0.11 [16:29:17]line ИТОГО: 500.00 [16:29:17]line Внесено: 500.00 [16:29:17]line СДАЧА: 0.00 [16:29:17]line НСП 1% : 4.43 [16:29:17]line НДС 12% : 53.11 [16:29:17]line Наличными: 500.00 [16:29:17]line Безнал.: 0.00 [16:29:17]line Место: АЗС № 85 "Партнер Нефть" [16:29:17]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:29:17]line СНО: Общий режим [16:29:17]line Чек 273 20.10.2024 16:29 [16:29:17]line Смена: 193 ФФД: 1.0 [16:29:17]line ЗНМ: 0300000167 [16:29:17]line РНМ: 0000000000156251 [16:29:17]line Версия ККМ: v1.0 [16:29:17]line ФМ: 0000000000963346 [16:29:17]line ФД: 69428 [16:29:17]line ФПД: 146342330594847 [16:29:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T162916&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69428&fm=146342330594847&tin=02508201610067®Number=0000000000156251&sum=50000 [16:29:17]OFD Sender: Processing packet 69428 [packets to send 18, broken 17] [16:29:17]ProducePacketName [16:29:17]name=ofd_packets/00069428 [16:29:17]OFD Sender: To server: pG, [16:29:17]CommunicateWithHost lk.salyk.kg:30040 [16:29:17]ConnectInit lk.salyk.kg [16:29:17]written 0, free lines is 4095 [16:29:17]Connected sock=8 [16:29:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 B7 E3 07 01 C7 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 11 01 00 00 F4 03 04 00 DC 2F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 34 0F 01 00 35 04 06 00 85 18 FA A1 76 1F 65 A7 74 CA 57 B0 19 1A [16:29:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 43 96 47 00 3C 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 34 0F 01 00 F4 03 04 00 82 D9 14 67 B6 04 01 00 00 E7 EB 8E BA 01 75 8D 06 [16:29:17]CommunicateWithHost err = 0 [16:29:17]CheckOFDResponse [16:29:17]1017 (14) - 77093643461234 [16:29:17]1041 (16) - 0000000000963346 [16:29:17]1040 (4) - 69428 [16:29:17]1012 (4) - 20.10.2024 10:20 [16:29:17]1206 (1) - 0 [16:29:17]OFD Sender: Remove packet 69428 [16:29:17]ProducePacketName [16:29:17]name=ofd_packets/00069428 [16:29:17]NVStorageDeleteData [16:29:18]Write to MH i2c: 01 00 00 1C 17 33 [16:29:18]Write i2c OK [16:29:18]MH_I2C_Read... [16:29:18]Read from MH i2c: 01 [16:29:18]MH_I2C_Read... [16:29:18]Read from MH i2c: 01 07 00 [16:29:18]MH_I2C_Read... [16:29:18]Read from MH i2c: 01 07 00 1C 17 00 00 00 00 00 FF 0C 45 [16:29:18]RasterBufferAndPrint [16:29:18]line [16:29:18]line [16:29:18]line [16:29:18]line [16:29:18]line [16:29:18]written 0, free lines is 3333 [16:29:18]MH_Cut [16:29:18]Write to MH i2c: D1 01 00 23 17 01 0C [16:29:18]Write i2c OK [16:29:18]MH_I2C_Read... [16:29:18]Read from MH i2c: D1 [16:29:18]MH_I2C_Read... [16:29:18]Read from MH i2c: D1 01 00 [16:29:18]MH_I2C_Read... [16:29:18]Read from MH i2c: D1 01 00 23 17 00 0B [16:29:18]Write to MH i2c: 01 00 00 24 17 3B [16:29:18]Write i2c OK [16:29:18]MH_I2C_Read... [16:29:18]OFD Sender: No OFD packet to send [16:29:18]*** Cut start [16:29:18]*** Partial cut [16:29:18]*** CUTSNS_PIN = 1 [16:29:18]*** CUTSNS_PIN = 0 [16:29:19]*** Brake cut motor [16:29:19]Read from MH i2c: 01 [16:29:19]MH_I2C_Read... [16:29:19]*** Stop cut motor [16:29:19]*** Cut end [16:29:19]Read from MH i2c: 01 07 00 [16:29:19]MH_I2C_Read... [16:29:19]Read from MH i2c: 01 07 00 24 17 00 00 00 00 00 FF 0F 50 [16:29:19]process_action close_receipt done [16:29:19]requested_data is exist [16:29:19]produce_requested_data [16:29:19]requested_item fm.sn is exist - process it [16:29:19]wFMCommunicate request_size=4 [16:29:19]MH_SAM_APDU [16:29:19]CAPDU: 80 11 00 00 [16:29:19]Write to MH i2c: E2 08 00 25 17 80 11 00 00 00 00 00 00 B6 [16:29:19]Write i2c OK [16:29:19]MH_I2C_Read... [16:29:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:19]Read from MH i2c: E2 [16:29:19]MH_I2C_Read... [16:29:19]Read from MH i2c: E2 17 00 [16:29:19]MH_I2C_Read... [16:29:19]Read from MH i2c: E2 17 00 25 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 08 [16:29:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:29:19]wFMCommunicate OK [16:29:19]requested_item fd.num is exist - process it [16:29:19]SAM_PROTO_GetFieldsCounters [16:29:19]wFMCommunicate request_size=4 [16:29:19]MH_SAM_APDU [16:29:19]CAPDU: 80 13 00 00 [16:29:19]Write to MH i2c: E2 08 00 26 17 80 13 00 00 00 00 00 00 B9 [16:29:19]Write i2c OK [16:29:19]MH_I2C_Read... [16:29:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:29:19]Read from MH i2c: E2 [16:29:19]MH_I2C_Read... [16:29:19]Read from MH i2c: E2 62 00 [16:29:19]MH_I2C_Read... [16:29:19]Read from MH i2c: E2 62 00 26 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 34 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 0F [16:29:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 34 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:29:19]wFMCommunicate OK [16:29:19]SAM_PROTO_GetFieldsCounters done [16:29:19]requested_item shift.num is exist - process it [16:29:19]requested_item shift.opened is exist - process it [16:29:19]req_shift_opened [16:29:19]FM_GetShiftState [16:29:19]SAM_PROTO_GetShiftState [16:29:19]wFMCommunicate request_size=4 [16:29:19]MH_SAM_APDU [16:29:19]CAPDU: 80 13 01 00 [16:29:19]Write to MH i2c: E2 08 00 27 17 80 13 01 00 00 00 00 00 BB [16:29:19]Write i2c OK [16:29:19]MH_I2C_Read... [16:29:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:19]Read from MH i2c: E2 [16:29:19]MH_I2C_Read... [16:29:19]Read from MH i2c: E2 0E 00 [16:29:19]MH_I2C_Read... [16:29:19]Read from MH i2c: E2 0E 00 27 17 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 C1 [16:29:19]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:29:19]wFMCommunicate OK [16:29:19]SAM_PROTO_GetShiftState done [16:29:19]FM_GetShiftState done [16:29:19]req_shift_opened done [16:29:19]requested_item shift.open_date is exist - process it [16:29:19]req_shift_open_date [16:29:19]req_shift_open_date done [16:29:19]produce_requested_data done [16:29:19]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69428,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [16:29:19]process_action_free close_receipt [16:29:19]json_value_free [16:29:19]json_value_free done [16:29:19]process_json_proto returns [16:29:19]Send response to host [16:29:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69428,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [16:29:19]free response buf [16:29:19]execute_script done [16:29:19]execute_script returns [16:29:19]free content buf [16:29:19]Sock 9.Close socket [16:29:19]Sock 9.Thread stoped [16:29:23]OFD Sender: No OFD packet to send [16:29:28]OFD Sender: No OFD packet to send [16:29:33]OFD Sender: No OFD packet to send [16:29:38]OFD Sender: No OFD packet to send [16:29:43]OFD Sender: No OFD packet to send [16:29:45]accept exits with 10 [16:29:45]New connection [16:29:45]New thread 3066568036 created [16:29:45]Thread 3066711396 joined [16:29:45]Waiting for new connection... [16:29:45] Sock 10.Parse request [16:29:45]Sock 10.Check first char [16:29:45]Sock 10.First char is OK [16:29:45]request: POST /json_proto HTTP/1.0 [16:29:45]Method: POST [16:29:45]URL: /json_proto [16:29:45]Method is POST - this is cgi request [16:29:45]url: /json_proto [16:29:45]query_string will be loaded in cgi processing [16:29:45]execute_cgi json_proto POST (null) [16:29:45]execute_cgi path=json_proto method=POST [16:29:45]POST find Content-Length [16:29:45]Host: 172.17.50.3:8080 [16:29:45]Content-Length: 678 [16:29:45]Content-Type: application/json [16:29:45] [16:29:45]POST finish read [16:29:45]Found Content-Length = 678 [16:29:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:45]execute_script... [16:29:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:45]POST & json_proto [16:29:45]process_json_proto [16:29:45]json parsed OK: [16:29:45]protocol is kg_v1.0 [16:29:45]action value=close_receipt [16:29:45]process_action close_receipt [16:29:45]cmd_close_receipt [16:29:45]MH_GetDate [16:29:45]Write to MH i2c: F0 00 00 28 17 2E [16:29:45]Write i2c OK [16:29:45]MH_I2C_Read... [16:29:45]Read from MH i2c: F0 [16:29:45]MH_I2C_Read... [16:29:45]Read from MH i2c: F0 09 00 [16:29:45]MH_I2C_Read... [16:29:45]Read from MH i2c: F0 09 00 28 17 00 FA 2F 15 67 6B 98 1E 66 63 [16:29:45]GetLastDocTimeStamp 1729441756 [16:29:45]current date 1729441786 [16:29:45]FM_GetShiftState [16:29:45]SAM_PROTO_GetShiftState [16:29:45]wFMCommunicate request_size=4 [16:29:45]MH_SAM_APDU [16:29:45]CAPDU: 80 13 01 00 [16:29:45]Write to MH i2c: E2 08 00 29 17 80 13 01 00 00 00 00 00 BD [16:29:45]Write i2c OK [16:29:45]MH_I2C_Read... [16:29:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:45]Read from MH i2c: E2 [16:29:45]MH_I2C_Read... [16:29:45]Read from MH i2c: E2 0E 00 [16:29:45]MH_I2C_Read... [16:29:45]Read from MH i2c: E2 0E 00 29 17 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 C3 [16:29:45]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:29:45]wFMCommunicate OK [16:29:45]SAM_PROTO_GetShiftState done [16:29:45]FM_GetShiftState done [16:29:45]opened in 1729383220 [16:29:45]opened+sec_in_day 1729469620 [16:29:45]quantity*price = 60009 [16:29:45]sum+1 = 60010 [16:29:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 274 20.10.2024 16:29 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69429 ФПД: 215376474305451 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T162946&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69429&fm=215376474305451&tin=02508201610067®Number=0000000000156251&sum=60000 [16:29:46]StoreToDocumentArchive [16:29:46]shift 193 fd 69429 [16:29:46]save to /storage/0193/doc_00069429 [16:29:46]save last doc name /storage/0193/doc_00069429 to /storage/kkm_last_doc_name [16:29:46]save OK [16:29:46]Clear old archive folders... [16:29:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:29:46]tlvbuf is B6E6DA70 [16:29:46]SAM_PROTO_ClearQueue [16:29:46]wFMCommunicate request_size=4 [16:29:46]MH_SAM_APDU [16:29:46]CAPDU: 80 09 00 00 [16:29:46]Write to MH i2c: E2 08 00 36 17 80 09 00 00 00 00 00 00 BF [16:29:46]Write i2c OK [16:29:46]MH_I2C_Read... [16:29:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:29:46]Read from MH i2c: E2 [16:29:46]MH_I2C_Read... [16:29:46]Read from MH i2c: E2 03 00 [16:29:46]MH_I2C_Read... [16:29:46]Read from MH i2c: E2 03 00 36 17 00 90 00 C1 [16:29:46]RAPDU: 90 00 [16:29:46]wFMCommunicate OK [16:29:46]SAM_PROTO_ClearQueue done [16:29:46]KKMCreateOFDPacket [16:29:46]OFDProtocolAddRootSTLVToBuf [16:29:46]FM_MakeSignedData [16:29:46]FM_MakeSignedData [16:29:46]SAM_PROTO_SignData [16:29:46]wFMCommunicate request_size=4 [16:29:46]MH_SAM_APDU [16:29:46]CAPDU: 80 0D 01 02 [16:29:46]Write to MH i2c: E2 08 00 37 17 80 0D 01 02 00 00 00 00 C7 [16:29:46]Write i2c OK [16:29:46]MH_I2C_Read... [16:29:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:29:46]Read from MH i2c: E2 [16:29:46]MH_I2C_Read... [16:29:46]Read from MH i2c: E2 03 00 [16:29:46]MH_I2C_Read... [16:29:46]Read from MH i2c: E2 03 00 37 17 00 90 00 C2 [16:29:46]RAPDU: 90 00 [16:29:46]wFMCommunicate OK [16:29:46]wFMCommunicate request_size=255 [16:29:46]MH_SAM_APDU [16:29:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 FA 2F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 35 0F 01 00 35 04 06 00 C3 [16:29:46]Write to MH i2c: E2 02 01 38 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 FA 2F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 35 0F 01 00 35 04 06 00 C3 00 00 AE [16:29:46]Write i2c OK [16:29:46]MH_I2C_Read... [16:29:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:47]Read from MH i2c: E2 [16:29:47]MH_I2C_Read... [16:29:47]Read from MH i2c: E2 03 00 [16:29:47]MH_I2C_Read... [16:29:47]Read from MH i2c: E2 03 00 38 17 00 90 00 C3 [16:29:47]RAPDU: 90 00 [16:29:47]wFMCommunicate OK [16:29:47]wFMCommunicate request_size=10 [16:29:47]MH_SAM_APDU [16:29:47]CAPDU: 80 0D 02 02 05 E2 3E 3E 73 AB [16:29:47]Write to MH i2c: E2 0D 00 39 17 80 0D 02 02 05 00 E2 3E 3E 73 AB 00 00 50 [16:29:47]Write i2c OK [16:29:47]MH_I2C_Read... [16:29:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:47]Read from MH i2c: E2 [16:29:47]MH_I2C_Read... [16:29:47]Read from MH i2c: E2 03 00 [16:29:47]MH_I2C_Read... [16:29:47]Read from MH i2c: E2 03 00 39 17 00 90 00 C4 [16:29:47]RAPDU: 90 00 [16:29:47]wFMCommunicate OK [16:29:47]wFMCommunicate request_size=4 [16:29:47]MH_SAM_APDU [16:29:47]CAPDU: 80 0D 03 02 [16:29:47]Write to MH i2c: E2 08 00 3A 17 80 0D 03 02 00 00 00 00 CC [16:29:47]Write i2c OK [16:29:47]MH_I2C_Read... [16:29:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:29:47]Read from MH i2c: E2 [16:29:47]MH_I2C_Read... [16:29:47]Read from MH i2c: E2 0B 00 [16:29:47]MH_I2C_Read... [16:29:47]Read from MH i2c: E2 0B 00 3A 17 00 93 CE 93 86 C0 F3 4C 57 90 00 9D [16:29:47]RAPDU: 93 CE 93 86 C0 F3 4C 57 90 00 [16:29:47]wFMCommunicate OK [16:29:47]SAM_PROTO_SignData done [16:29:47]FM_MakeSignedData done [16:29:47]CreateOFDProtocolMessage [16:29:47]wFMCommunicate request_size=4 [16:29:47]MH_SAM_APDU [16:29:47]CAPDU: 80 11 00 00 [16:29:47]Write to MH i2c: E2 08 00 3B 17 80 11 00 00 00 00 00 00 CC [16:29:47]Write i2c OK [16:29:47]MH_I2C_Read... [16:29:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:47]Read from MH i2c: E2 [16:29:47]MH_I2C_Read... [16:29:47]Read from MH i2c: E2 17 00 [16:29:47]MH_I2C_Read... [16:29:47]Read from MH i2c: E2 17 00 3B 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1E [16:29:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:29:47]wFMCommunicate OK [16:29:47]CreateOFDProtocolMessage done [16:29:47]OFDSenderStorePacket 69429 [16:29:47]StoreOFDPacket docnum=69429 [16:29:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 B6 DE 07 01 DB 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 FA 2F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 35 0F 01 00 35 04 06 00 C3 E2 3E 3E 73 AB 93 CE 93 86 C0 F3 4C 57 [16:29:47]CheckFolder [16:29:47]dirname=/storage/ofd_packets [16:29:47]CheckFolder done [16:29:47]ProducePacketName [16:29:47]name=ofd_packets/00069429 [16:29:47]NVStorageSaveData ofd_packets/00069429 [16:29:47]File name is /storage/ofd_packets/00069429 [16:29:47]Write 301 bytes [16:29:47]NVStorageSaveData done [16:29:47]OFDSenderStorePacket done [16:29:47]KKMCreateOFDPacket done [16:29:47]NVStorageSaveData kkm_last_timestamp [16:29:47]File name is /storage/kkm_last_timestamp [16:29:47]Write 4 bytes [16:29:47]NVStorageSaveData done [16:29:47]ExternCall_PrintAddStr [16:29:47]wPrintStart [16:29:47]Write to MH i2c: 01 00 00 3C 17 53 [16:29:47]Write i2c OK [16:29:47]MH_I2C_Read... [16:29:47]Read from MH i2c: 01 [16:29:47]MH_I2C_Read... [16:29:47]Read from MH i2c: 01 07 00 [16:29:47]MH_I2C_Read... [16:29:47]Read from MH i2c: 01 07 00 3C 17 00 00 00 00 00 FF 0F 68 [16:29:47]RasterBufferAndPrint [16:29:47]line Счет N : (1)2885156 [16:29:47]line ИНН: 02508201610067 [16:29:47]line Контрольно-Кассовый Чек [16:29:47]line ПРОДАЖА [16:29:47]line ТРК (МРК, ГНК) : 42 [16:29:47]line Товар: 2710124130 [16:29:47]line Аи-92-К-5 [16:29:47]line 8.970 * 66.90 [16:29:47]line = 600.09 [16:29:47]line НДС 12% НСП 1% [16:29:47]line > о реализуемом товаре [16:29:47]line ОКРУГЛЕНИЕ: -0.09 [16:29:47]line ИТОГО: 600.00 [16:29:47]line Внесено: 600.00 [16:29:47]line СДАЧА: 0.00 [16:29:47]line НСП 1% : 5.31 [16:29:47]line НДС 12% : 63.73 [16:29:47]line Наличными: 600.00 [16:29:47]line Безнал.: 0.00 [16:29:47]line Место: АЗС № 85 "Партнер Нефть" [16:29:47]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:29:47]line СНО: Общий режим [16:29:47]line Чек 274 20.10.2024 16:29 [16:29:47]line Смена: 193 ФФД: 1.0 [16:29:47]line ЗНМ: 0300000167 [16:29:47]line РНМ: 0000000000156251 [16:29:47]line Версия ККМ: v1.0 [16:29:47]line ФМ: 0000000000963346 [16:29:47]line ФД: 69429 [16:29:47]line ФПД: 215376474305451 [16:29:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T162946&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69429&fm=215376474305451&tin=02508201610067®Number=0000000000156251&sum=60000 [16:29:47]OFD Sender: Processing packet 69429 [packets to send 18, broken 17] [16:29:47]ProducePacketName [16:29:47]name=ofd_packets/00069429 [16:29:47]OFD Sender: To server: pG, [16:29:47]CommunicateWithHost lk.salyk.kg:30040 [16:29:47]ConnectInit lk.salyk.kg [16:29:47]written 0, free lines is 4095 [16:29:47]Connected sock=9 [16:29:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 B6 DE 07 01 DB 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 FA 2F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 35 0F 01 00 35 04 06 00 C3 E2 3E 3E 73 AB 93 CE 93 86 C0 F3 4C 57 [16:29:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 48 75 47 00 8A 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 30 39 36 33 33 34 36 10 04 04 00 35 0F 01 00 F4 03 04 00 A0 D9 14 67 B6 04 01 00 00 DA 80 35 7F E6 EF A4 C3 [16:29:47]CommunicateWithHost err = 0 [16:29:47]CheckOFDResponse [16:29:47]1017 (14) - 77093643461234 [16:29:47]1041 (16) - 0000000000963346 [16:29:47]1040 (4) - 69429 [16:29:47]1012 (4) - 20.10.2024 10:21 [16:29:47]1206 (1) - 0 [16:29:47]OFD Sender: Remove packet 69429 [16:29:47]ProducePacketName [16:29:47]name=ofd_packets/00069429 [16:29:47]NVStorageDeleteData [16:29:48]Write to MH i2c: 01 00 00 67 17 7E [16:29:48]Write i2c OK [16:29:48]MH_I2C_Read... [16:29:48]Read from MH i2c: 01 [16:29:48]MH_I2C_Read... [16:29:48]Read from MH i2c: 01 07 00 [16:29:48]MH_I2C_Read... [16:29:48]Read from MH i2c: 01 07 00 67 17 00 00 00 00 00 F3 0C 84 [16:29:48]RasterBufferAndPrint [16:29:48]line [16:29:48]line [16:29:48]line [16:29:48]line [16:29:48]line [16:29:48]written 0, free lines is 3321 [16:29:48]MH_Cut [16:29:48]Write to MH i2c: D1 01 00 6E 17 01 57 [16:29:48]Write i2c OK [16:29:48]MH_I2C_Read... [16:29:48]Read from MH i2c: D1 [16:29:48]MH_I2C_Read... [16:29:48]Read from MH i2c: D1 01 00 [16:29:48]MH_I2C_Read... [16:29:48]Read from MH i2c: D1 01 00 6E 17 00 56 [16:29:48]Write to MH i2c: 01 00 00 6F 17 86 [16:29:48]Write i2c OK [16:29:48]MH_I2C_Read... [16:29:48]OFD Sender: No OFD packet to send [16:29:48]*** Cut start [16:29:48]*** Partial cut [16:29:48]*** CUTSNS_PIN = 1 [16:29:48]*** CUTSNS_PIN = 0 [16:29:49]*** Brake cut motor [16:29:49]Read from MH i2c: 01 [16:29:49]MH_I2C_Read... [16:29:49]*** Stop cut motor [16:29:49]*** Cut end [16:29:49]Read from MH i2c: 01 07 00 [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: 01 07 00 6F 17 00 00 00 00 00 FF 0F 9B [16:29:49]process_action close_receipt done [16:29:49]requested_data is exist [16:29:49]produce_requested_data [16:29:49]requested_item fm.sn is exist - process it [16:29:49]wFMCommunicate request_size=4 [16:29:49]MH_SAM_APDU [16:29:49]CAPDU: 80 11 00 00 [16:29:49]Write to MH i2c: E2 08 00 70 17 80 11 00 00 00 00 00 00 01 [16:29:49]Write i2c OK [16:29:49]MH_I2C_Read... [16:29:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:49]Read from MH i2c: E2 [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: E2 17 00 [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: E2 17 00 70 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 53 [16:29:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:29:49]wFMCommunicate OK [16:29:49]requested_item fd.num is exist - process it [16:29:49]SAM_PROTO_GetFieldsCounters [16:29:49]wFMCommunicate request_size=4 [16:29:49]MH_SAM_APDU [16:29:49]CAPDU: 80 13 00 00 [16:29:49]Write to MH i2c: E2 08 00 71 17 80 13 00 00 00 00 00 00 04 [16:29:49]Write i2c OK [16:29:49]MH_I2C_Read... [16:29:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:29:49]Read from MH i2c: E2 [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: E2 62 00 [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: E2 62 00 71 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 35 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 5E [16:29:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 35 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:29:49]wFMCommunicate OK [16:29:49]SAM_PROTO_GetFieldsCounters done [16:29:49]requested_item shift.num is exist - process it [16:29:49]requested_item shift.opened is exist - process it [16:29:49]req_shift_opened [16:29:49]FM_GetShiftState [16:29:49]SAM_PROTO_GetShiftState [16:29:49]wFMCommunicate request_size=4 [16:29:49]MH_SAM_APDU [16:29:49]CAPDU: 80 13 01 00 [16:29:49]Write to MH i2c: E2 08 00 72 17 80 13 01 00 00 00 00 00 06 [16:29:49]Write i2c OK [16:29:49]MH_I2C_Read... [16:29:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:49]Read from MH i2c: E2 [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: E2 0E 00 [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: E2 0E 00 72 17 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 0C [16:29:49]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:29:49]wFMCommunicate OK [16:29:49]SAM_PROTO_GetShiftState done [16:29:49]FM_GetShiftState done [16:29:49]req_shift_opened done [16:29:49]requested_item shift.open_date is exist - process it [16:29:49]req_shift_open_date [16:29:49]req_shift_open_date done [16:29:49]produce_requested_data done [16:29:49]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69429,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [16:29:49]process_action_free close_receipt [16:29:49]json_value_free [16:29:49]json_value_free done [16:29:49]process_json_proto returns [16:29:49]Send response to host [16:29:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69429,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [16:29:49]free response buf [16:29:49]execute_script done [16:29:49]execute_script returns [16:29:49]free content buf [16:29:49]Sock 10.Close socket [16:29:49]Sock 10.Thread stoped [16:29:53]OFD Sender: No OFD packet to send [16:29:58]OFD Sender: No OFD packet to send [16:30:03]OFD Sender: No OFD packet to send [16:30:08]OFD Sender: No OFD packet to send [16:30:13]OFD Sender: No OFD packet to send [16:30:18]OFD Sender: No OFD packet to send [16:30:23]OFD Sender: No OFD packet to send [16:30:28]OFD Sender: No OFD packet to send [16:30:33]OFD Sender: No OFD packet to send [16:30:38]OFD Sender: No OFD packet to send [16:30:43]OFD Sender: No OFD packet to send [16:30:48]OFD Sender: No OFD packet to send [16:30:53]OFD Sender: No OFD packet to send [16:30:58]OFD Sender: No OFD packet to send [16:31:03]OFD Sender: No OFD packet to send [16:31:08]OFD Sender: No OFD packet to send [16:31:13]OFD Sender: No OFD packet to send [16:31:18]OFD Sender: No OFD packet to send [16:31:23]OFD Sender: No OFD packet to send [16:31:28]OFD Sender: No OFD packet to send [16:31:33]OFD Sender: No OFD packet to send [16:31:38]OFD Sender: No OFD packet to send [16:31:43]OFD Sender: No OFD packet to send [16:31:48]OFD Sender: No OFD packet to send [16:31:53]OFD Sender: No OFD packet to send [16:31:58]OFD Sender: No OFD packet to send [16:32:03]OFD Sender: No OFD packet to send [16:32:08]OFD Sender: No OFD packet to send [16:32:13]OFD Sender: No OFD packet to send [16:32:18]OFD Sender: No OFD packet to send [16:32:23]OFD Sender: No OFD packet to send [16:32:28]OFD Sender: No OFD packet to send [16:32:33]OFD Sender: No OFD packet to send [16:32:38]OFD Sender: No OFD packet to send [16:32:43]OFD Sender: No OFD packet to send [16:32:48]OFD Sender: No OFD packet to send [16:32:53]OFD Sender: No OFD packet to send [16:32:58]OFD Sender: No OFD packet to send [16:33:03]OFD Sender: No OFD packet to send [16:33:08]OFD Sender: No OFD packet to send [16:33:13]OFD Sender: No OFD packet to send [16:33:18]OFD Sender: No OFD packet to send [16:33:23]OFD Sender: No OFD packet to send [16:33:28]OFD Sender: No OFD packet to send [16:33:33]OFD Sender: No OFD packet to send [16:33:38]OFD Sender: No OFD packet to send [16:33:43]OFD Sender: No OFD packet to send [16:33:48]OFD Sender: No OFD packet to send [16:33:53]OFD Sender: No OFD packet to send [16:33:58]OFD Sender: No OFD packet to send [16:34:03]OFD Sender: No OFD packet to send [16:34:08]OFD Sender: No OFD packet to send [16:34:13]OFD Sender: No OFD packet to send [16:34:18]OFD Sender: No OFD packet to send [16:34:23]OFD Sender: No OFD packet to send [16:34:28]OFD Sender: No OFD packet to send [16:34:33]OFD Sender: No OFD packet to send [16:34:38]OFD Sender: No OFD packet to send [16:34:43]OFD Sender: No OFD packet to send [16:34:46]accept exits with 8 [16:34:46]New connection [16:34:46]New thread 3066711396 created [16:34:46]Thread 3066568036 joined [16:34:46]Waiting for new connection... [16:34:46] Sock 8.Parse request [16:34:46]Sock 8.Check first char [16:34:46]Sock 8.First char is OK [16:34:46]request: POST /json_proto HTTP/1.0 [16:34:46]Method: POST [16:34:46]URL: /json_proto [16:34:46]Method is POST - this is cgi request [16:34:46]url: /json_proto [16:34:46]query_string will be loaded in cgi processing [16:34:46]execute_cgi json_proto POST (null) [16:34:46]execute_cgi path=json_proto method=POST [16:34:46]POST find Content-Length [16:34:46]Host: 172.17.50.3:8080 [16:34:46]Content-Length: 776 [16:34:46]Content-Type: application/json [16:34:46] [16:34:46]POST finish read [16:34:46]Found Content-Length = 776 [16:34:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:46]execute_script... [16:34: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)2885158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:46]POST & json_proto [16:34:46]process_json_proto [16:34:46]json parsed OK: [16:34:46]protocol is kg_v1.0 [16:34:46]action value=close_receipt [16:34:46]process_action close_receipt [16:34:46]cmd_close_receipt [16:34:46]MH_GetDate [16:34:46]Write to MH i2c: F0 00 00 73 17 79 [16:34:46]Write i2c OK [16:34:46]MH_I2C_Read... [16:34:46]Read from MH i2c: F0 [16:34:46]MH_I2C_Read... [16:34:46]Read from MH i2c: F0 09 00 [16:34:46]MH_I2C_Read... [16:34:46]Read from MH i2c: F0 09 00 73 17 00 27 31 15 67 6B 98 1E 66 DD [16:34:46]GetLastDocTimeStamp 1729441786 [16:34:46]current date 1729442087 [16:34:46]FM_GetShiftState [16:34:46]SAM_PROTO_GetShiftState [16:34:46]wFMCommunicate request_size=4 [16:34:46]MH_SAM_APDU [16:34:46]CAPDU: 80 13 01 00 [16:34:46]Write to MH i2c: E2 08 00 74 17 80 13 01 00 00 00 00 00 08 [16:34:46]Write i2c OK [16:34:46]MH_I2C_Read... [16:34:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:46]Read from MH i2c: E2 [16:34:46]MH_I2C_Read... [16:34:46]Read from MH i2c: E2 0E 00 [16:34:46]MH_I2C_Read... [16:34:46]Read from MH i2c: E2 0E 00 74 17 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 0E [16:34:46]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:34:46]wFMCommunicate OK [16:34:46]SAM_PROTO_GetShiftState done [16:34:46]FM_GetShiftState done [16:34:46]opened in 1729383220 [16:34:46]opened+sec_in_day 1729469620 [16:34:46]quantity*price = 100051 [16:34:46]sum+1 = 100052 [16:34:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 275 20.10.2024 16:34 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69430 ФПД: 269024577111096 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163447&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69430&fm=269024577111096&tin=02508201610067®Number=0000000000156251&sum=100051 [16:34:47]StoreToDocumentArchive [16:34:47]shift 193 fd 69430 [16:34:47]save to /storage/0193/doc_00069430 [16:34:47]save last doc name /storage/0193/doc_00069430 to /storage/kkm_last_doc_name [16:34:47]save OK [16:34:47]Clear old archive folders... [16:34:47]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:34:47]tlvbuf is 0024A810 [16:34:47]SAM_PROTO_ClearQueue [16:34:47]wFMCommunicate request_size=4 [16:34:47]MH_SAM_APDU [16:34:47]CAPDU: 80 09 00 00 [16:34:47]Write to MH i2c: E2 08 00 81 17 80 09 00 00 00 00 00 00 0A [16:34:47]Write i2c OK [16:34:47]MH_I2C_Read... [16:34:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:34:47]Read from MH i2c: E2 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: E2 03 00 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: E2 03 00 81 17 00 90 00 0C [16:34:47]RAPDU: 90 00 [16:34:47]wFMCommunicate OK [16:34:47]SAM_PROTO_ClearQueue done [16:34:47]KKMCreateOFDPacket [16:34:47]OFDProtocolAddRootSTLVToBuf [16:34:47]FM_MakeSignedData [16:34:47]FM_MakeSignedData [16:34:47]SAM_PROTO_SignData [16:34:47]wFMCommunicate request_size=4 [16:34:47]MH_SAM_APDU [16:34:47]CAPDU: 80 0D 01 02 [16:34:47]Write to MH i2c: E2 08 00 82 17 80 0D 01 02 00 00 00 00 12 [16:34:47]Write i2c OK [16:34:47]MH_I2C_Read... [16:34:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:34:47]Read from MH i2c: E2 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: E2 03 00 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: E2 03 00 82 17 00 90 00 0D [16:34:47]RAPDU: 90 00 [16:34:47]wFMCommunicate OK [16:34:47]wFMCommunicate request_size=255 [16:34:47]MH_SAM_APDU [16:34:47]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 13 01 00 00 F4 03 04 00 27 31 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 36 0F 01 [16:34:47]Write to MH i2c: E2 02 01 83 17 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 13 01 00 00 F4 03 04 00 27 31 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 36 0F 01 00 00 B9 [16:34:47]Write i2c OK [16:34:47]MH_I2C_Read... [16:34:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:48]Read from MH i2c: E2 [16:34:48]MH_I2C_Read... [16:34:48]Read from MH i2c: E2 03 00 [16:34:48]MH_I2C_Read... [16:34:48]Read from MH i2c: E2 03 00 83 17 00 90 00 0E [16:34:48]RAPDU: 90 00 [16:34:48]wFMCommunicate OK [16:34:48]wFMCommunicate request_size=16 [16:34:48]MH_SAM_APDU [16:34:48]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 F4 AD 2A 5A C4 38 [16:34:48]Write to MH i2c: E2 13 00 84 17 80 0D 02 02 0B 00 00 35 04 06 00 F4 AD 2A 5A C4 38 00 00 8B [16:34:48]Write i2c OK [16:34:48]MH_I2C_Read... [16:34:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:48]Read from MH i2c: E2 [16:34:48]MH_I2C_Read... [16:34:48]Read from MH i2c: E2 03 00 [16:34:48]MH_I2C_Read... [16:34:48]Read from MH i2c: E2 03 00 84 17 00 90 00 0F [16:34:48]RAPDU: 90 00 [16:34:48]wFMCommunicate OK [16:34:48]wFMCommunicate request_size=4 [16:34:48]MH_SAM_APDU [16:34:48]CAPDU: 80 0D 03 02 [16:34:48]Write to MH i2c: E2 08 00 85 17 80 0D 03 02 00 00 00 00 17 [16:34:48]Write i2c OK [16:34:48]MH_I2C_Read... [16:34:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:34:48]Read from MH i2c: E2 [16:34:48]MH_I2C_Read... [16:34:48]Read from MH i2c: E2 0B 00 [16:34:48]MH_I2C_Read... [16:34:48]Read from MH i2c: E2 0B 00 85 17 00 B9 FA FE B2 A5 61 E0 C9 90 00 2A [16:34:48]RAPDU: B9 FA FE B2 A5 61 E0 C9 90 00 [16:34:48]wFMCommunicate OK [16:34:48]SAM_PROTO_SignData done [16:34:48]FM_MakeSignedData done [16:34:48]CreateOFDProtocolMessage [16:34:48]wFMCommunicate request_size=4 [16:34:48]MH_SAM_APDU [16:34:48]CAPDU: 80 11 00 00 [16:34:48]Write to MH i2c: E2 08 00 86 17 80 11 00 00 00 00 00 00 17 [16:34:48]Write i2c OK [16:34:48]MH_I2C_Read... [16:34:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:48]Read from MH i2c: E2 [16:34:48]MH_I2C_Read... [16:34:48]Read from MH i2c: E2 17 00 [16:34:48]MH_I2C_Read... [16:34:48]Read from MH i2c: E2 17 00 86 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 69 [16:34:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:34:48]wFMCommunicate OK [16:34:48]CreateOFDProtocolMessage done [16:34:48]OFDSenderStorePacket 69430 [16:34:48]StoreOFDPacket docnum=69430 [16:34:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 51 4A 0D 01 7E 73 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 13 01 00 00 F4 03 04 00 27 31 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 36 0F 01 00 35 04 06 00 F4 AD 2A 5A C4 38 B9 FA FE B2 A5 61 E0 C9 [16:34:48]CheckFolder [16:34:48]dirname=/storage/ofd_packets [16:34:48]CheckFolder done [16:34:48]ProducePacketName [16:34:48]name=ofd_packets/00069430 [16:34:48]NVStorageSaveData ofd_packets/00069430 [16:34:48]File name is /storage/ofd_packets/00069430 [16:34:48]Write 307 bytes [16:34:48]NVStorageSaveData done [16:34:48]OFDSenderStorePacket done [16:34:48]KKMCreateOFDPacket done [16:34:48]NVStorageSaveData kkm_last_timestamp [16:34:48]File name is /storage/kkm_last_timestamp [16:34:48]Write 4 bytes [16:34:48]NVStorageSaveData done [16:34:48]ExternCall_PrintAddStr [16:34:48]wPrintStart [16:34:48]Write to MH i2c: 01 00 00 87 17 9E [16:34:48]Write i2c OK [16:34:48]MH_I2C_Read... [16:34:48]Read from MH i2c: 01 [16:34:48]MH_I2C_Read... [16:34:48]Read from MH i2c: 01 07 00 [16:34:48]MH_I2C_Read... [16:34:48]Read from MH i2c: 01 07 00 87 17 00 00 00 00 00 FF 0F B3 [16:34:48]RasterBufferAndPrint [16:34:48]line Счет N : (1)2885158 [16:34:48]line ИНН: 02508201610067 [16:34:48]line Контрольно-Кассовый Чек [16:34:48]line ПРОДАЖА [16:34:48]line ТРК (МРК, ГНК) : 31 [16:34:48]line Товар: 2710194240 [16:34:48]line D-ENERGY Дт-К-2 [16:34:48]line 12.960 * 77.20 [16:34:48]line = 1000.51 [16:34:48]line НДС 12% НСП 1% [16:34:48]line > о реализуемом товаре [16:34:48]line ИТОГО: 1000.51 [16:34:48]line НСП 1% : 8.85 [16:34:48]line НДС 12% : 106.25 [16:34:48]line Наличными: 0.00 [16:34:48]line Безнал.: 1000.51 [16:34:48]line Место: АЗС № 85 "Партнер Нефть" [16:34:48]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:34:48]line СНО: Общий режим [16:34:48]line Чек 275 20.10.2024 16:34 [16:34:48]line Смена: 193 ФФД: 1.0 [16:34:48]line ЗНМ: 0300000167 [16:34:48]line РНМ: 0000000000156251 [16:34:48]line Версия ККМ: v1.0 [16:34:48]line Платежная система: Mbank [16:34:48]line ФМ: 0000000000963346 [16:34:48]line ФД: 69430 [16:34:48]line ФПД: 269024577111096 [16:34:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163447&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69430&fm=269024577111096&tin=02508201610067®Number=0000000000156251&sum=100051 [16:34:48]OFD Sender: Processing packet 69430 [packets to send 18, broken 17] [16:34:48]ProducePacketName [16:34:48]name=ofd_packets/00069430 [16:34:48]OFD Sender: To server: pG, [16:34:48]CommunicateWithHost lk.salyk.kg:30040 [16:34:48]ConnectInit lk.salyk.kg [16:34:48]written 0, free lines is 4095 [16:34:48]Connected sock=10 [16:34:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 51 4A 0D 01 7E 73 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 13 01 00 00 F4 03 04 00 27 31 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 36 0F 01 00 35 04 06 00 F4 AD 2A 5A C4 38 B9 FA FE B2 A5 61 E0 C9 [16:34:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 77 61 47 00 EF 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 36 0F 01 00 F4 03 04 00 CD DA 14 67 B6 04 01 00 00 6A A6 86 33 5E C0 80 CD [16:34:48]CommunicateWithHost err = 0 [16:34:48]CheckOFDResponse [16:34:48]1017 (14) - 77093643461234 [16:34:48]1041 (16) - 0000000000963346 [16:34:48]1040 (4) - 69430 [16:34:48]1012 (4) - 20.10.2024 10:26 [16:34:48]1206 (1) - 0 [16:34:48]OFD Sender: Remove packet 69430 [16:34:48]ProducePacketName [16:34:48]name=ofd_packets/00069430 [16:34:48]NVStorageDeleteData [16:34:48]Write to MH i2c: 01 00 00 B0 17 C7 [16:34:48]Write i2c OK [16:34:48]MH_I2C_Read... [16:34:48]Read from MH i2c: 01 [16:34:48]MH_I2C_Read... [16:34:48]Read from MH i2c: 01 07 00 [16:34:48]MH_I2C_Read... [16:34:48]Read from MH i2c: 01 07 00 B0 17 00 00 00 00 00 21 0D FC [16:34:48]RasterBufferAndPrint [16:34:48]line [16:34:48]line [16:34:48]line [16:34:48]line [16:34:48]line [16:34:48]written 0, free lines is 3367 [16:34:48]MH_Cut [16:34:48]Write to MH i2c: D1 01 00 B7 17 01 A0 [16:34:48]Write i2c OK [16:34:48]MH_I2C_Read... [16:34:48]Read from MH i2c: D1 [16:34:48]MH_I2C_Read... [16:34:48]Read from MH i2c: D1 01 00 [16:34:48]MH_I2C_Read... [16:34:48]Read from MH i2c: D1 01 00 B7 17 00 9F [16:34:48]Write to MH i2c: 01 00 00 B8 17 CF [16:34:48]Write i2c OK [16:34:48]MH_I2C_Read... [16:34:49]OFD Sender: No OFD packet to send [16:34:49]*** Cut start [16:34:49]*** Partial cut [16:34:49]*** CUTSNS_PIN = 1 [16:34:49]*** CUTSNS_PIN = 0 [16:34:49]*** Brake cut motor [16:34:50]Read from MH i2c: 01 [16:34:50]MH_I2C_Read... [16:34:50]*** Stop cut motor [16:34:50]*** Cut end [16:34:50]Read from MH i2c: 01 07 00 [16:34:50]MH_I2C_Read... [16:34:50]Read from MH i2c: 01 07 00 B8 17 00 00 00 00 00 FF 0F E4 [16:34:50]process_action close_receipt done [16:34:50]requested_data is exist [16:34:50]produce_requested_data [16:34:50]requested_item fm.sn is exist - process it [16:34:50]wFMCommunicate request_size=4 [16:34:50]MH_SAM_APDU [16:34:50]CAPDU: 80 11 00 00 [16:34:50]Write to MH i2c: E2 08 00 B9 17 80 11 00 00 00 00 00 00 4A [16:34:50]Write i2c OK [16:34:50]MH_I2C_Read... [16:34:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:50]Read from MH i2c: E2 [16:34:50]MH_I2C_Read... [16:34:50]Read from MH i2c: E2 17 00 [16:34:50]MH_I2C_Read... [16:34:50]Read from MH i2c: E2 17 00 B9 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9C [16:34:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:34:50]wFMCommunicate OK [16:34:50]requested_item fd.num is exist - process it [16:34:50]SAM_PROTO_GetFieldsCounters [16:34:50]wFMCommunicate request_size=4 [16:34:50]MH_SAM_APDU [16:34:50]CAPDU: 80 13 00 00 [16:34:50]Write to MH i2c: E2 08 00 BA 17 80 13 00 00 00 00 00 00 4D [16:34:50]Write i2c OK [16:34:50]MH_I2C_Read... [16:34:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:34:50]Read from MH i2c: E2 [16:34:50]MH_I2C_Read... [16:34:50]Read from MH i2c: E2 62 00 [16:34:50]MH_I2C_Read... [16:34:50]Read from MH i2c: E2 62 00 BA 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 36 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 AB [16:34:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 36 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:34:50]wFMCommunicate OK [16:34:50]SAM_PROTO_GetFieldsCounters done [16:34:50]requested_item shift.num is exist - process it [16:34:50]requested_item shift.opened is exist - process it [16:34:50]req_shift_opened [16:34:50]FM_GetShiftState [16:34:50]SAM_PROTO_GetShiftState [16:34:50]wFMCommunicate request_size=4 [16:34:50]MH_SAM_APDU [16:34:50]CAPDU: 80 13 01 00 [16:34:50]Write to MH i2c: E2 08 00 BB 17 80 13 01 00 00 00 00 00 4F [16:34:50]Write i2c OK [16:34:50]MH_I2C_Read... [16:34:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:50]Read from MH i2c: E2 [16:34:50]MH_I2C_Read... [16:34:50]Read from MH i2c: E2 0E 00 [16:34:50]MH_I2C_Read... [16:34:50]Read from MH i2c: E2 0E 00 BB 17 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 55 [16:34:50]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:34:50]wFMCommunicate OK [16:34:50]SAM_PROTO_GetShiftState done [16:34:50]FM_GetShiftState done [16:34:50]req_shift_opened done [16:34:50]requested_item shift.open_date is exist - process it [16:34:50]req_shift_open_date [16:34:50]req_shift_open_date done [16:34:50]produce_requested_data done [16:34:50]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69430,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [16:34:50]process_action_free close_receipt [16:34:50]json_value_free [16:34:50]json_value_free done [16:34:50]process_json_proto returns [16:34:50]Send response to host [16:34:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69430,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [16:34:50]free response buf [16:34:50]execute_script done [16:34:50]execute_script returns [16:34:50]free content buf [16:34:50]Sock 8.Close socket [16:34:50]Sock 8.Thread stoped [16:34:54]OFD Sender: No OFD packet to send [16:34:59]OFD Sender: No OFD packet to send [16:35:04]OFD Sender: No OFD packet to send [16:35:09]OFD Sender: No OFD packet to send [16:35:14]accept exits with 9 [16:35:14]New connection [16:35:14]New thread 3066568036 created [16:35:14]Thread 3066711396 joined [16:35:14]Waiting for new connection... [16:35:14] Sock 9.Parse request [16:35:14]Sock 9.Check first char [16:35:14]Sock 9.First char is OK [16:35:14]request: POST /json_proto HTTP/1.0 [16:35:14]Method: POST [16:35:14]URL: /json_proto [16:35:14]Method is POST - this is cgi request [16:35:14]url: /json_proto [16:35:14]query_string will be loaded in cgi processing [16:35:14]execute_cgi json_proto POST (null) [16:35:14]execute_cgi path=json_proto method=POST [16:35:14]POST find Content-Length [16:35:14]Host: 172.17.50.3:8080 [16:35:14]Content-Length: 684 [16:35:14]Content-Type: application/json [16:35:14] [16:35:14]POST finish read [16:35:14]Found Content-Length = 684 [16:35:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 2.600, "sum" : 200.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:14]execute_script... [16:35:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 2.600, "sum" : 200.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:14]POST & json_proto [16:35:14]process_json_proto [16:35:14]json parsed OK: [16:35:14]protocol is kg_v1.0 [16:35:14]action value=close_receipt [16:35:14]process_action close_receipt [16:35:14]cmd_close_receipt [16:35:14]MH_GetDate [16:35:14]Write to MH i2c: F0 00 00 BC 17 C2 [16:35:14]Write i2c OK [16:35:14]MH_I2C_Read... [16:35:14]Read from MH i2c: F0 [16:35:14]MH_I2C_Read... [16:35:14]Read from MH i2c: F0 09 00 [16:35:14]MH_I2C_Read... [16:35:14]Read from MH i2c: F0 09 00 BC 17 00 43 31 15 67 6B 98 1E 66 42 [16:35:14]GetLastDocTimeStamp 1729442087 [16:35:14]current date 1729442115 [16:35:14]FM_GetShiftState [16:35:14]SAM_PROTO_GetShiftState [16:35:14]wFMCommunicate request_size=4 [16:35:14]MH_SAM_APDU [16:35:14]CAPDU: 80 13 01 00 [16:35:14]Write to MH i2c: E2 08 00 BD 17 80 13 01 00 00 00 00 00 51 [16:35:14]Write i2c OK [16:35:14]MH_I2C_Read... [16:35:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:14]Read from MH i2c: E2 [16:35:14]MH_I2C_Read... [16:35:14]Read from MH i2c: E2 0E 00 [16:35:14]MH_I2C_Read... [16:35:14]Read from MH i2c: E2 0E 00 BD 17 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 57 [16:35:14]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:35:14]wFMCommunicate OK [16:35:14]SAM_PROTO_GetShiftState done [16:35:14]FM_GetShiftState done [16:35:14]opened in 1729383220 [16:35:14]opened+sec_in_day 1729469620 [16:35:14]quantity*price = 20072 [16:35:14]sum+1 = 20073 [16:35:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.78 НДС 12% : 21.31 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 276 20.10.2024 16:35 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69431 ФПД: 90418593290044 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163515&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69431&fm=90418593290044&tin=02508201610067®Number=0000000000156251&sum=20000 [16:35:15]StoreToDocumentArchive [16:35:15]shift 193 fd 69431 [16:35:15]save to /storage/0193/doc_00069431 [16:35:15]save last doc name /storage/0193/doc_00069431 to /storage/kkm_last_doc_name [16:35:15]save OK [16:35:15]Clear old archive folders... [16:35:15]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:35:15]tlvbuf is 002BD8F0 [16:35:15]SAM_PROTO_ClearQueue [16:35:15]wFMCommunicate request_size=4 [16:35:15]MH_SAM_APDU [16:35:15]CAPDU: 80 09 00 00 [16:35:15]Write to MH i2c: E2 08 00 CA 17 80 09 00 00 00 00 00 00 53 [16:35:15]Write i2c OK [16:35:15]MH_I2C_Read... [16:35:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:35:15]Read from MH i2c: E2 [16:35:15]MH_I2C_Read... [16:35:15]Read from MH i2c: E2 03 00 [16:35:15]MH_I2C_Read... [16:35:15]Read from MH i2c: E2 03 00 CA 17 00 90 00 55 [16:35:15]RAPDU: 90 00 [16:35:15]wFMCommunicate OK [16:35:15]SAM_PROTO_ClearQueue done [16:35:15]KKMCreateOFDPacket [16:35:15]OFDProtocolAddRootSTLVToBuf [16:35:15]FM_MakeSignedData [16:35:15]FM_MakeSignedData [16:35:15]SAM_PROTO_SignData [16:35:15]wFMCommunicate request_size=4 [16:35:15]MH_SAM_APDU [16:35:15]CAPDU: 80 0D 01 02 [16:35:15]Write to MH i2c: E2 08 00 CB 17 80 0D 01 02 00 00 00 00 5B [16:35:15]Write i2c OK [16:35:15]MH_I2C_Read... [16:35:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:35:15]Read from MH i2c: E2 [16:35:15]MH_I2C_Read... [16:35:15]Read from MH i2c: E2 03 00 [16:35:15]MH_I2C_Read... [16:35:15]Read from MH i2c: E2 03 00 CB 17 00 90 00 56 [16:35:15]RAPDU: 90 00 [16:35:15]wFMCommunicate OK [16:35:15]wFMCommunicate request_size=255 [16:35:15]MH_SAM_APDU [16:35:15]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 28 0A 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 68 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 B2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 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 14 01 00 00 F4 03 04 00 43 31 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 37 0F 01 [16:35:15]Write to MH i2c: E2 02 01 CC 17 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 28 0A 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 68 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 B2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 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 14 01 00 00 F4 03 04 00 43 31 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 37 0F 01 00 00 EF [16:35:15]Write i2c OK [16:35:15]MH_I2C_Read... [16:35:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:15]Read from MH i2c: E2 [16:35:15]MH_I2C_Read... [16:35:15]Read from MH i2c: E2 03 00 [16:35:15]MH_I2C_Read... [16:35:15]Read from MH i2c: E2 03 00 CC 17 00 90 00 57 [16:35:15]RAPDU: 90 00 [16:35:15]wFMCommunicate OK [16:35:15]wFMCommunicate request_size=16 [16:35:15]MH_SAM_APDU [16:35:15]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 52 3C 38 22 57 3C [16:35:15]Write to MH i2c: E2 13 00 CD 17 80 0D 02 02 0B 00 00 35 04 06 00 52 3C 38 22 57 3C 00 00 2E [16:35:15]Write i2c OK [16:35:15]MH_I2C_Read... [16:35:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:15]Read from MH i2c: E2 [16:35:15]MH_I2C_Read... [16:35:15]Read from MH i2c: E2 03 00 [16:35:15]MH_I2C_Read... [16:35:15]Read from MH i2c: E2 03 00 CD 17 00 90 00 58 [16:35:15]RAPDU: 90 00 [16:35:15]wFMCommunicate OK [16:35:15]wFMCommunicate request_size=4 [16:35:15]MH_SAM_APDU [16:35:15]CAPDU: 80 0D 03 02 [16:35:15]Write to MH i2c: E2 08 00 CE 17 80 0D 03 02 00 00 00 00 60 [16:35:15]Write i2c OK [16:35:15]MH_I2C_Read... [16:35:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:35:15]Read from MH i2c: E2 [16:35:15]MH_I2C_Read... [16:35:15]Read from MH i2c: E2 0B 00 [16:35:15]MH_I2C_Read... [16:35:15]Read from MH i2c: E2 0B 00 CE 17 00 E6 75 55 EB 41 4E C8 3A 90 00 8D [16:35:15]RAPDU: E6 75 55 EB 41 4E C8 3A 90 00 [16:35:15]wFMCommunicate OK [16:35:15]SAM_PROTO_SignData done [16:35:15]FM_MakeSignedData done [16:35:15]CreateOFDProtocolMessage [16:35:15]wFMCommunicate request_size=4 [16:35:15]MH_SAM_APDU [16:35:15]CAPDU: 80 11 00 00 [16:35:15]Write to MH i2c: E2 08 00 CF 17 80 11 00 00 00 00 00 00 60 [16:35:15]Write i2c OK [16:35:15]MH_I2C_Read... [16:35:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:15]Read from MH i2c: E2 [16:35:15]MH_I2C_Read... [16:35:15]Read from MH i2c: E2 17 00 [16:35:15]MH_I2C_Read... [16:35:15]Read from MH i2c: E2 17 00 CF 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B2 [16:35:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:35:15]wFMCommunicate OK [16:35:15]CreateOFDProtocolMessage done [16:35:15]OFDSenderStorePacket 69431 [16:35:15]StoreOFDPacket docnum=69431 [16:35:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 83 DC 0D 01 E4 34 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 28 0A 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 68 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 B2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 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 14 01 00 00 F4 03 04 00 43 31 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 37 0F 01 00 35 04 06 00 52 3C 38 22 57 3C E6 75 55 EB 41 4E C8 3A [16:35:15]CheckFolder [16:35:15]dirname=/storage/ofd_packets [16:35:15]CheckFolder done [16:35:15]ProducePacketName [16:35:15]name=ofd_packets/00069431 [16:35:15]NVStorageSaveData ofd_packets/00069431 [16:35:15]File name is /storage/ofd_packets/00069431 [16:35:15]Write 307 bytes [16:35:15]NVStorageSaveData done [16:35:15]OFDSenderStorePacket done [16:35:15]KKMCreateOFDPacket done [16:35:15]NVStorageSaveData kkm_last_timestamp [16:35:15]File name is /storage/kkm_last_timestamp [16:35:15]Write 4 bytes [16:35:15]NVStorageSaveData done [16:35:15]ExternCall_PrintAddStr [16:35:15]wPrintStart [16:35:15]Write to MH i2c: 01 00 00 D0 17 E7 [16:35:15]Write i2c OK [16:35:15]MH_I2C_Read... [16:35:15]Read from MH i2c: 01 [16:35:15]MH_I2C_Read... [16:35:15]Read from MH i2c: 01 07 00 [16:35:15]MH_I2C_Read... [16:35:15]Read from MH i2c: 01 07 00 D0 17 00 00 00 00 00 FF 0F FC [16:35:15]RasterBufferAndPrint [16:35:15]line Счет N : (1)2885159 [16:35:15]line ИНН: 02508201610067 [16:35:15]line Контрольно-Кассовый Чек [16:35:15]line ПРОДАЖА [16:35:15]line ТРК (МРК, ГНК) : 31 [16:35:15]line Товар: 2710194240 [16:35:15]line D-ENERGY Дт-К-2 [16:35:15]line 2.600 * 77.20 [16:35:15]line = 200.72 [16:35:15]line НДС 12% НСП 1% [16:35:15]line > о реализуемом товаре [16:35:15]line ОКРУГЛЕНИЕ: -0.72 [16:35:15]line ИТОГО: 200.00 [16:35:15]line Внесено: 200.00 [16:35:15]line СДАЧА: 0.00 [16:35:15]line НСП 1% : 1.78 [16:35:15]line НДС 12% : 21.31 [16:35:15]line Наличными: 200.00 [16:35:15]line Безнал.: 0.00 [16:35:15]line Место: АЗС № 85 "Партнер Нефть" [16:35:15]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:35:15]line СНО: Общий режим [16:35:15]line Чек 276 20.10.2024 16:35 [16:35:15]line Смена: 193 ФФД: 1.0 [16:35:15]line ЗНМ: 0300000167 [16:35:15]line РНМ: 0000000000156251 [16:35:15]line Версия ККМ: v1.0 [16:35:15]line ФМ: 0000000000963346 [16:35:15]line ФД: 69431 [16:35:15]line ФПД: 90418593290044 [16:35:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163515&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69431&fm=90418593290044&tin=02508201610067®Number=0000000000156251&sum=20000 [16:35:16]OFD Sender: Processing packet 69431 [packets to send 18, broken 17] [16:35:16]ProducePacketName [16:35:16]name=ofd_packets/00069431 [16:35:16]OFD Sender: To server: pG, [16:35:16]CommunicateWithHost lk.salyk.kg:30040 [16:35:16]ConnectInit lk.salyk.kg [16:35:16]written 0, free lines is 4095 [16:35:16]Connected sock=10 [16:35:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 83 DC 0D 01 E4 34 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 28 0A 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 68 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 B2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 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 14 01 00 00 F4 03 04 00 43 31 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 37 0F 01 00 35 04 06 00 52 3C 38 22 57 3C E6 75 55 EB 41 4E C8 3A [16:35:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 1C 9C 47 00 3A 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 37 0F 01 00 F4 03 04 00 E9 DA 14 67 B6 04 01 00 00 FA 1F DA A3 EB A9 41 54 [16:35:16]CommunicateWithHost err = 0 [16:35:16]CheckOFDResponse [16:35:16]1017 (14) - 77093643461234 [16:35:16]1041 (16) - 0000000000963346 [16:35:16]1040 (4) - 69431 [16:35:16]1012 (4) - 20.10.2024 10:26 [16:35:16]1206 (1) - 0 [16:35:16]OFD Sender: Remove packet 69431 [16:35:16]ProducePacketName [16:35:16]name=ofd_packets/00069431 [16:35:16]NVStorageDeleteData [16:35:16]Write to MH i2c: 01 00 00 FB 17 12 [16:35:16]Write i2c OK [16:35:16]MH_I2C_Read... [16:35:16]Read from MH i2c: 01 [16:35:16]MH_I2C_Read... [16:35:16]Read from MH i2c: 01 07 00 [16:35:16]MH_I2C_Read... [16:35:16]Read from MH i2c: 01 07 00 FB 17 00 00 00 00 00 FF 0C 24 [16:35:16]RasterBufferAndPrint [16:35:16]line [16:35:16]line [16:35:16]line [16:35:16]line [16:35:16]line [16:35:16]written 0, free lines is 3333 [16:35:16]MH_Cut [16:35:16]Write to MH i2c: D1 01 00 02 18 01 EC [16:35:16]Write i2c OK [16:35:16]MH_I2C_Read... [16:35:16]Read from MH i2c: D1 [16:35:16]MH_I2C_Read... [16:35:16]Read from MH i2c: D1 01 00 [16:35:16]MH_I2C_Read... [16:35:16]Read from MH i2c: D1 01 00 02 18 00 EB [16:35:16]Write to MH i2c: 01 00 00 03 18 1B [16:35:16]Write i2c OK [16:35:16]MH_I2C_Read... [16:35:17]OFD Sender: No OFD packet to send [16:35:17]*** Cut start [16:35:17]*** Partial cut [16:35:17]*** CUTSNS_PIN = 1 [16:35:17]*** CUTSNS_PIN = 0 [16:35:17]*** Brake cut motor [16:35:17]Read from MH i2c: 01 [16:35:17]MH_I2C_Read... [16:35:17]*** Stop cut motor [16:35:17]*** Cut end [16:35:17]Read from MH i2c: 01 07 00 [16:35:17]MH_I2C_Read... [16:35:17]Read from MH i2c: 01 07 00 03 18 00 00 00 00 00 FF 0F 30 [16:35:17]process_action close_receipt done [16:35:17]requested_data is exist [16:35:17]produce_requested_data [16:35:17]requested_item fm.sn is exist - process it [16:35:17]wFMCommunicate request_size=4 [16:35:17]MH_SAM_APDU [16:35:17]CAPDU: 80 11 00 00 [16:35:17]Write to MH i2c: E2 08 00 04 18 80 11 00 00 00 00 00 00 96 [16:35:17]Write i2c OK [16:35:17]MH_I2C_Read... [16:35:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:18]Read from MH i2c: E2 [16:35:18]MH_I2C_Read... [16:35:18]Read from MH i2c: E2 17 00 [16:35:18]MH_I2C_Read... [16:35:18]Read from MH i2c: E2 17 00 04 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E8 [16:35:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:35:18]wFMCommunicate OK [16:35:18]requested_item fd.num is exist - process it [16:35:18]SAM_PROTO_GetFieldsCounters [16:35:18]wFMCommunicate request_size=4 [16:35:18]MH_SAM_APDU [16:35:18]CAPDU: 80 13 00 00 [16:35:18]Write to MH i2c: E2 08 00 05 18 80 13 00 00 00 00 00 00 99 [16:35:18]Write i2c OK [16:35:18]MH_I2C_Read... [16:35:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:35:18]Read from MH i2c: E2 [16:35:18]MH_I2C_Read... [16:35:18]Read from MH i2c: E2 62 00 [16:35:18]MH_I2C_Read... [16:35:18]Read from MH i2c: E2 62 00 05 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 37 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 FB [16:35:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 37 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:35:18]wFMCommunicate OK [16:35:18]SAM_PROTO_GetFieldsCounters done [16:35:18]requested_item shift.num is exist - process it [16:35:18]requested_item shift.opened is exist - process it [16:35:18]req_shift_opened [16:35:18]FM_GetShiftState [16:35:18]SAM_PROTO_GetShiftState [16:35:18]wFMCommunicate request_size=4 [16:35:18]MH_SAM_APDU [16:35:18]CAPDU: 80 13 01 00 [16:35:18]Write to MH i2c: E2 08 00 06 18 80 13 01 00 00 00 00 00 9B [16:35:18]Write i2c OK [16:35:18]MH_I2C_Read... [16:35:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:18]Read from MH i2c: E2 [16:35:18]MH_I2C_Read... [16:35:18]Read from MH i2c: E2 0E 00 [16:35:18]MH_I2C_Read... [16:35:18]Read from MH i2c: E2 0E 00 06 18 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 A1 [16:35:18]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:35:18]wFMCommunicate OK [16:35:18]SAM_PROTO_GetShiftState done [16:35:18]FM_GetShiftState done [16:35:18]req_shift_opened done [16:35:18]requested_item shift.open_date is exist - process it [16:35:18]req_shift_open_date [16:35:18]req_shift_open_date done [16:35:18]produce_requested_data done [16:35:18]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69431,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [16:35:18]process_action_free close_receipt [16:35:18]json_value_free [16:35:18]json_value_free done [16:35:18]process_json_proto returns [16:35:18]Send response to host [16:35:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69431,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [16:35:18]free response buf [16:35:18]execute_script done [16:35:18]execute_script returns [16:35:18]free content buf [16:35:18]Sock 9.Close socket [16:35:18]Sock 9.Thread stoped [16:35:22]OFD Sender: No OFD packet to send [16:35:27]OFD Sender: No OFD packet to send [16:35:32]OFD Sender: No OFD packet to send [16:35:37]OFD Sender: No OFD packet to send [16:35:42]OFD Sender: No OFD packet to send [16:35:47]OFD Sender: No OFD packet to send [16:35:52]OFD Sender: No OFD packet to send [16:35:57]OFD Sender: No OFD packet to send [16:36:02]OFD Sender: No OFD packet to send [16:36:07]OFD Sender: No OFD packet to send [16:36:12]OFD Sender: No OFD packet to send [16:36:17]OFD Sender: No OFD packet to send [16:36:22]OFD Sender: No OFD packet to send [16:36:27]OFD Sender: No OFD packet to send [16:36:32]OFD Sender: No OFD packet to send [16:36:37]OFD Sender: No OFD packet to send [16:36:42]OFD Sender: No OFD packet to send [16:36:47]OFD Sender: No OFD packet to send [16:36:52]OFD Sender: No OFD packet to send [16:36:57]OFD Sender: No OFD packet to send [16:37:02]OFD Sender: No OFD packet to send [16:37:07]OFD Sender: No OFD packet to send [16:37:12]OFD Sender: No OFD packet to send [16:37:17]OFD Sender: No OFD packet to send [16:37:22]OFD Sender: No OFD packet to send [16:37:27]OFD Sender: No OFD packet to send [16:37:32]OFD Sender: No OFD packet to send [16:37:37]OFD Sender: No OFD packet to send [16:37:42]OFD Sender: No OFD packet to send [16:37:47]OFD Sender: No OFD packet to send [16:37:52]OFD Sender: No OFD packet to send [16:37:57]OFD Sender: No OFD packet to send [16:38:02]OFD Sender: No OFD packet to send [16:38:07]OFD Sender: No OFD packet to send [16:38:12]OFD Sender: No OFD packet to send [16:38:17]OFD Sender: No OFD packet to send [16:38:22]OFD Sender: No OFD packet to send [16:38:27]OFD Sender: No OFD packet to send [16:38:30]accept exits with 8 [16:38:30]New connection [16:38:30]New thread 3066711396 created [16:38:30]Thread 3066568036 joined [16:38:30]Waiting for new connection... [16:38:30] Sock 8.Parse request [16:38:30]Sock 8.Check first char [16:38:30]Sock 8.First char is OK [16:38:30]request: POST /json_proto HTTP/1.0 [16:38:30]Method: POST [16:38:30]URL: /json_proto [16:38:30]Method is POST - this is cgi request [16:38:30]url: /json_proto [16:38:30]query_string will be loaded in cgi processing [16:38:30]execute_cgi json_proto POST (null) [16:38:30]execute_cgi path=json_proto method=POST [16:38:30]POST find Content-Length [16:38:30]Host: 172.17.50.3:8080 [16:38:30]Content-Length: 680 [16:38:30]Content-Type: application/json [16:38:30] [16:38:30]POST finish read [16:38:30]Found Content-Length = 680 [16:38:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:30]execute_script... [16:38:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:30]POST & json_proto [16:38:30]process_json_proto [16:38:30]json parsed OK: [16:38:30]protocol is kg_v1.0 [16:38:30]action value=close_receipt [16:38:30]process_action close_receipt [16:38:30]cmd_close_receipt [16:38:30]MH_GetDate [16:38:30]Write to MH i2c: F0 00 00 07 18 0E [16:38:30]Write i2c OK [16:38:30]MH_I2C_Read... [16:38:30]Read from MH i2c: F0 [16:38:30]MH_I2C_Read... [16:38:30]Read from MH i2c: F0 09 00 [16:38:30]MH_I2C_Read... [16:38:30]Read from MH i2c: F0 09 00 07 18 00 07 32 15 67 6B 98 1E 66 53 [16:38:30]GetLastDocTimeStamp 1729442115 [16:38:30]current date 1729442311 [16:38:30]FM_GetShiftState [16:38:30]SAM_PROTO_GetShiftState [16:38:30]wFMCommunicate request_size=4 [16:38:30]MH_SAM_APDU [16:38:30]CAPDU: 80 13 01 00 [16:38:30]Write to MH i2c: E2 08 00 08 18 80 13 01 00 00 00 00 00 9D [16:38:30]Write i2c OK [16:38:30]MH_I2C_Read... [16:38:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:30]Read from MH i2c: E2 [16:38:30]MH_I2C_Read... [16:38:30]Read from MH i2c: E2 0E 00 [16:38:30]MH_I2C_Read... [16:38:30]Read from MH i2c: E2 0E 00 08 18 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 A3 [16:38:30]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:38:30]wFMCommunicate OK [16:38:30]SAM_PROTO_GetShiftState done [16:38:30]FM_GetShiftState done [16:38:30]opened in 1729383220 [16:38:30]opened+sec_in_day 1729469620 [16:38:30]quantity*price = 150037 [16:38:30]sum+1 = 150039 [16:38:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 277 20.10.2024 16:38 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69432 ФПД: 58146816282849 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163831&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69432&fm=58146816282849&tin=02508201610067®Number=0000000000156251&sum=150000 [16:38:32]StoreToDocumentArchive [16:38:32]shift 193 fd 69432 [16:38:32]save to /storage/0193/doc_00069432 [16:38:32]save last doc name /storage/0193/doc_00069432 to /storage/kkm_last_doc_name [16:38:32]save OK [16:38:32]Clear old archive folders... [16:38:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:38:32]tlvbuf is 00249D10 [16:38:32]SAM_PROTO_ClearQueue [16:38:32]wFMCommunicate request_size=4 [16:38:32]MH_SAM_APDU [16:38:32]CAPDU: 80 09 00 00 [16:38:32]Write to MH i2c: E2 08 00 15 18 80 09 00 00 00 00 00 00 9F [16:38:32]Write i2c OK [16:38:32]MH_I2C_Read... [16:38:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:38:32]Read from MH i2c: E2 [16:38:32]MH_I2C_Read... [16:38:32]Read from MH i2c: E2 03 00 [16:38:32]MH_I2C_Read... [16:38:32]Read from MH i2c: E2 03 00 15 18 00 90 00 A1 [16:38:32]RAPDU: 90 00 [16:38:32]wFMCommunicate OK [16:38:32]SAM_PROTO_ClearQueue done [16:38:32]KKMCreateOFDPacket [16:38:32]OFDProtocolAddRootSTLVToBuf [16:38:32]FM_MakeSignedData [16:38:32]FM_MakeSignedData [16:38:32]SAM_PROTO_SignData [16:38:32]wFMCommunicate request_size=4 [16:38:32]MH_SAM_APDU [16:38:32]CAPDU: 80 0D 01 02 [16:38:32]Write to MH i2c: E2 08 00 16 18 80 0D 01 02 00 00 00 00 A7 [16:38:32]Write i2c OK [16:38:32]MH_I2C_Read... [16:38:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:38:32]Read from MH i2c: E2 [16:38:32]MH_I2C_Read... [16:38:32]Read from MH i2c: E2 03 00 [16:38:32]MH_I2C_Read... [16:38:32]Read from MH i2c: E2 03 00 16 18 00 90 00 A2 [16:38:32]RAPDU: 90 00 [16:38:32]wFMCommunicate OK [16:38:32]wFMCommunicate request_size=255 [16:38:32]MH_SAM_APDU [16:38:32]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 07 32 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 38 0F 01 00 35 04 06 00 34 E2 5C 54 [16:38:32]Write to MH i2c: E2 02 01 17 18 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 07 32 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 38 0F 01 00 35 04 06 00 34 E2 5C 54 00 00 37 [16:38:32]Write i2c OK [16:38:32]MH_I2C_Read... [16:38:32]OFD Sender: No OFD packet to send [16:38:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:32]Read from MH i2c: E2 [16:38:32]MH_I2C_Read... [16:38:32]Read from MH i2c: E2 03 00 [16:38:32]MH_I2C_Read... [16:38:32]Read from MH i2c: E2 03 00 17 18 00 90 00 A3 [16:38:32]RAPDU: 90 00 [16:38:32]wFMCommunicate OK [16:38:32]wFMCommunicate request_size=7 [16:38:32]MH_SAM_APDU [16:38:32]CAPDU: 80 0D 02 02 02 50 E1 [16:38:32]Write to MH i2c: E2 0A 00 18 18 80 0D 02 02 02 00 50 E1 00 00 DF [16:38:32]Write i2c OK [16:38:32]MH_I2C_Read... [16:38:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:32]Read from MH i2c: E2 [16:38:32]MH_I2C_Read... [16:38:32]Read from MH i2c: E2 03 00 [16:38:32]MH_I2C_Read... [16:38:32]Read from MH i2c: E2 03 00 18 18 00 90 00 A4 [16:38:32]RAPDU: 90 00 [16:38:32]wFMCommunicate OK [16:38:32]wFMCommunicate request_size=4 [16:38:32]MH_SAM_APDU [16:38:32]CAPDU: 80 0D 03 02 [16:38:32]Write to MH i2c: E2 08 00 19 18 80 0D 03 02 00 00 00 00 AC [16:38:32]Write i2c OK [16:38:32]MH_I2C_Read... [16:38:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:38:32]Read from MH i2c: E2 [16:38:32]MH_I2C_Read... [16:38:32]Read from MH i2c: E2 0B 00 [16:38:32]MH_I2C_Read... [16:38:32]Read from MH i2c: E2 0B 00 19 18 00 6C EA B8 CE DB AB 3E 93 90 00 E0 [16:38:32]RAPDU: 6C EA B8 CE DB AB 3E 93 90 00 [16:38:32]wFMCommunicate OK [16:38:32]SAM_PROTO_SignData done [16:38:32]FM_MakeSignedData done [16:38:32]CreateOFDProtocolMessage [16:38:32]wFMCommunicate request_size=4 [16:38:32]MH_SAM_APDU [16:38:32]CAPDU: 80 11 00 00 [16:38:32]Write to MH i2c: E2 08 00 1A 18 80 11 00 00 00 00 00 00 AC [16:38:32]Write i2c OK [16:38:32]MH_I2C_Read... [16:38:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:32]Read from MH i2c: E2 [16:38:32]MH_I2C_Read... [16:38:32]Read from MH i2c: E2 17 00 [16:38:32]MH_I2C_Read... [16:38:32]Read from MH i2c: E2 17 00 1A 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FE [16:38:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:38:32]wFMCommunicate OK [16:38:32]CreateOFDProtocolMessage done [16:38:32]OFDSenderStorePacket 69432 [16:38:32]StoreOFDPacket docnum=69432 [16:38:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 E2 A2 04 01 22 9D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 07 32 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 38 0F 01 00 35 04 06 00 34 E2 5C 54 50 E1 6C EA B8 CE DB AB 3E 93 [16:38:32]CheckFolder [16:38:32]dirname=/storage/ofd_packets [16:38:32]CheckFolder done [16:38:32]ProducePacketName [16:38:32]name=ofd_packets/00069432 [16:38:32]NVStorageSaveData ofd_packets/00069432 [16:38:32]File name is /storage/ofd_packets/00069432 [16:38:32]Write 298 bytes [16:38:32]NVStorageSaveData done [16:38:32]OFDSenderStorePacket done [16:38:32]KKMCreateOFDPacket done [16:38:32]NVStorageSaveData kkm_last_timestamp [16:38:32]File name is /storage/kkm_last_timestamp [16:38:32]Write 4 bytes [16:38:32]NVStorageSaveData done [16:38:32]ExternCall_PrintAddStr [16:38:32]wPrintStart [16:38:32]Write to MH i2c: 01 00 00 1B 18 33 [16:38:32]Write i2c OK [16:38:32]MH_I2C_Read... [16:38:32]Read from MH i2c: 01 [16:38:32]MH_I2C_Read... [16:38:32]Read from MH i2c: 01 07 00 [16:38:32]MH_I2C_Read... [16:38:32]Read from MH i2c: 01 07 00 1B 18 00 00 00 00 00 FF 0F 48 [16:38:32]RasterBufferAndPrint [16:38:32]line Счет N : (1)2885160 [16:38:32]line ИНН: 02508201610067 [16:38:32]line Контрольно-Кассовый Чек [16:38:32]line ПРОДАЖА [16:38:32]line ТРК (МРК, ГНК) : 51 [16:38:32]line Товар: 2710194210 [16:38:32]line ДТ-К-5 [16:38:32]line 19.690 * 76.20 [16:38:32]line = 1500.38 [16:38:32]line НДС 12% НСП 1% [16:38:32]line > о реализуемом товаре [16:38:32]line ОКРУГЛЕНИЕ: -0.38 [16:38:32]line ИТОГО: 1500.00 [16:38:32]line Внесено: 1500.00 [16:38:32]line СДАЧА: 0.00 [16:38:32]line НСП 1% : 13.28 [16:38:32]line НДС 12% : 159.33 [16:38:32]line Наличными: 1500.00 [16:38:32]line Безнал.: 0.00 [16:38:32]line Место: АЗС № 85 "Партнер Нефть" [16:38:32]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:38:32]line СНО: Общий режим [16:38:32]line Чек 277 20.10.2024 16:38 [16:38:32]line Смена: 193 ФФД: 1.0 [16:38:32]line ЗНМ: 0300000167 [16:38:32]line РНМ: 0000000000156251 [16:38:32]line Версия ККМ: v1.0 [16:38:32]line ФМ: 0000000000963346 [16:38:32]line ФД: 69432 [16:38:32]line ФПД: 58146816282849 [16:38:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163831&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69432&fm=58146816282849&tin=02508201610067®Number=0000000000156251&sum=150000 [16:38:32]OFD Sender: Processing packet 69432 [packets to send 18, broken 17] [16:38:32]ProducePacketName [16:38:32]name=ofd_packets/00069432 [16:38:32]OFD Sender: To server: pG, [16:38:32]CommunicateWithHost lk.salyk.kg:30040 [16:38:32]ConnectInit lk.salyk.kg [16:38:32]written 0, free lines is 4095 [16:38:33]Connected sock=10 [16:38:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 E2 A2 04 01 22 9D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 07 32 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 38 0F 01 00 35 04 06 00 34 E2 5C 54 50 E1 6C EA B8 CE DB AB 3E 93 [16:38:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 43 5F 47 00 8B E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 38 0F 01 00 F4 03 04 00 AE DB 14 67 B6 04 01 00 00 FA C7 05 0C 12 23 34 C9 [16:38:33]CommunicateWithHost err = 0 [16:38:33]CheckOFDResponse [16:38:33]1017 (14) - 77093643461234 [16:38:33]1041 (16) - 0000000000963346 [16:38:33]1040 (4) - 69432 [16:38:33]1012 (4) - 20.10.2024 10:30 [16:38:33]1206 (1) - 0 [16:38:33]OFD Sender: Remove packet 69432 [16:38:33]ProducePacketName [16:38:33]name=ofd_packets/00069432 [16:38:33]NVStorageDeleteData [16:38:33]Write to MH i2c: 01 00 00 46 18 5E [16:38:33]Write i2c OK [16:38:33]MH_I2C_Read... [16:38:33]Read from MH i2c: 01 [16:38:33]MH_I2C_Read... [16:38:33]Read from MH i2c: 01 07 00 [16:38:33]MH_I2C_Read... [16:38:33]Read from MH i2c: 01 07 00 46 18 00 00 00 00 00 F8 0C 69 [16:38:33]RasterBufferAndPrint [16:38:33]line [16:38:33]line [16:38:33]line [16:38:33]line [16:38:33]line [16:38:33]written 0, free lines is 3326 [16:38:33]MH_Cut [16:38:33]Write to MH i2c: D1 01 00 4D 18 01 37 [16:38:33]Write i2c OK [16:38:33]MH_I2C_Read... [16:38:33]Read from MH i2c: D1 [16:38:33]MH_I2C_Read... [16:38:33]Read from MH i2c: D1 01 00 [16:38:33]MH_I2C_Read... [16:38:33]Read from MH i2c: D1 01 00 4D 18 00 36 [16:38:33]Write to MH i2c: 01 00 00 4E 18 66 [16:38:33]Write i2c OK [16:38:33]MH_I2C_Read... [16:38:33]OFD Sender: No OFD packet to send [16:38:34]*** Cut start [16:38:34]*** Partial cut [16:38:34]*** CUTSNS_PIN = 1 [16:38:34]*** CUTSNS_PIN = 0 [16:38:34]*** Brake cut motor [16:38:34]Read from MH i2c: 01 [16:38:34]MH_I2C_Read... [16:38:34]*** Stop cut motor [16:38:34]*** Cut end [16:38:34]Read from MH i2c: 01 07 00 [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: 01 07 00 4E 18 00 00 00 00 00 FF 0F 7B [16:38:34]process_action close_receipt done [16:38:34]requested_data is exist [16:38:34]produce_requested_data [16:38:34]requested_item fm.sn is exist - process it [16:38:34]wFMCommunicate request_size=4 [16:38:34]MH_SAM_APDU [16:38:34]CAPDU: 80 11 00 00 [16:38:34]Write to MH i2c: E2 08 00 4F 18 80 11 00 00 00 00 00 00 E1 [16:38:34]Write i2c OK [16:38:34]MH_I2C_Read... [16:38:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:34]Read from MH i2c: E2 [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: E2 17 00 [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: E2 17 00 4F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 33 [16:38:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:38:34]wFMCommunicate OK [16:38:34]requested_item fd.num is exist - process it [16:38:34]SAM_PROTO_GetFieldsCounters [16:38:34]wFMCommunicate request_size=4 [16:38:34]MH_SAM_APDU [16:38:34]CAPDU: 80 13 00 00 [16:38:34]Write to MH i2c: E2 08 00 50 18 80 13 00 00 00 00 00 00 E4 [16:38:34]Write i2c OK [16:38:34]MH_I2C_Read... [16:38:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:38:34]Read from MH i2c: E2 [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: E2 62 00 [16:38:34]MH_I2C_Read... [16:38:34]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 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 38 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 4A [16:38:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 38 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:38:34]wFMCommunicate OK [16:38:34]SAM_PROTO_GetFieldsCounters done [16:38:34]requested_item shift.num is exist - process it [16:38:34]requested_item shift.opened is exist - process it [16:38:34]req_shift_opened [16:38:34]FM_GetShiftState [16:38:34]SAM_PROTO_GetShiftState [16:38:34]wFMCommunicate request_size=4 [16:38:34]MH_SAM_APDU [16:38:34]CAPDU: 80 13 01 00 [16:38:34]Write to MH i2c: E2 08 00 51 18 80 13 01 00 00 00 00 00 E6 [16:38:34]Write i2c OK [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: E2 [16:38:34]MH_I2C_Read... [16:38:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:34]Read from MH i2c: E2 0E 00 [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: E2 0E 00 51 18 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 EC [16:38:34]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:38:34]wFMCommunicate OK [16:38:34]SAM_PROTO_GetShiftState done [16:38:34]FM_GetShiftState done [16:38:34]req_shift_opened done [16:38:34]requested_item shift.open_date is exist - process it [16:38:34]req_shift_open_date [16:38:34]req_shift_open_date done [16:38:34]produce_requested_data done [16:38:34]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69432,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [16:38:34]process_action_free close_receipt [16:38:34]json_value_free [16:38:34]json_value_free done [16:38:34]process_json_proto returns [16:38:34]Send response to host [16:38:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69432,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [16:38:34]free response buf [16:38:34]execute_script done [16:38:34]execute_script returns [16:38:34]free content buf [16:38:34]Sock 8.Close socket [16:38:34]Sock 8.Thread stoped [16:38:38]OFD Sender: No OFD packet to send [16:38:43]OFD Sender: No OFD packet to send [16:38:48]OFD Sender: No OFD packet to send [16:38:53]OFD Sender: No OFD packet to send [16:38:54]int [16:38:54]Write to MH i2c: 01 00 00 52 18 6A [16:38:54]*** FLAG_PRN_PAP1 set [16:38:54]Write i2c OK [16:38:54]MH_I2C_Read... [16:38:54]Read from MH i2c: 01 [16:38:54]MH_I2C_Read... [16:38:54]Read from MH i2c: 01 07 00 [16:38:54]MH_I2C_Read... [16:38:54]Read from MH i2c: 01 07 00 52 18 00 01 00 00 00 FF 0F 80 [16:38:54]state=0 [16:38:54]No paper [16:38:54]int [16:38:54]Write to MH i2c: 01 00 00 53 18 6B [16:38:54]*** FLAG_PRN_PAP2 set [16:38:54]Write i2c OK [16:38:54]MH_I2C_Read... [16:38:54]Read from MH i2c: 01 [16:38:54]MH_I2C_Read... [16:38:54]Read from MH i2c: 01 07 00 [16:38:54]MH_I2C_Read... [16:38:54]Read from MH i2c: 01 07 00 53 18 00 03 00 00 00 FF 0F 83 [16:38:54]state=0 [16:38:54]No paper [16:38:54]Cover opened [16:38:58]int [16:38:58]Write to MH i2c: 01 00 00 54 18 6C [16:38:58]*** FLAG_PRN_PAP2 reset [16:38:58]Write i2c OK [16:38:58]MH_I2C_Read... [16:38:58]Read from MH i2c: 01 [16:38:58]MH_I2C_Read... [16:38:58]Read from MH i2c: 01 07 00 [16:38:58]MH_I2C_Read... [16:38:58]Read from MH i2c: 01 07 00 54 18 00 01 00 00 00 FF 0F 82 [16:38:58]state=3 [16:38:58]No paper [16:38:58]Cover closed [16:38:58]int [16:38:58]Write to MH i2c: 01 00 00 55 18 6D [16:38:58]*** FLAG_PRN_PAP2 set [16:38:58]Write i2c OK [16:38:58]MH_I2C_Read... [16:38:58]Read from MH i2c: 01 [16:38:58]MH_I2C_Read... [16:38:58]Read from MH i2c: 01 07 00 [16:38:58]MH_I2C_Read... [16:38:58]Read from MH i2c: 01 07 00 55 18 00 03 00 00 00 FF 0F 85 [16:38:58]state=0 [16:38:58]No paper [16:38:58]Cover opened [16:38:58]int [16:38:58]Write to MH i2c: 01 00 00 56 18 6E [16:38:58]*** FLAG_PRN_PAP2 reset [16:38:58]Write i2c OK [16:38:58]MH_I2C_Read... [16:38:58]Read from MH i2c: 01 [16:38:58]MH_I2C_Read... [16:38:58]Read from MH i2c: 01 07 00 [16:38:58]MH_I2C_Read... [16:38:58]Read from MH i2c: 01 07 00 56 18 00 01 00 00 00 FF 0F 84 [16:38:58]state=3 [16:38:58]No paper [16:38:58]Cover closed [16:38:58]OFD Sender: No OFD packet to send [16:39:00]int [16:39:00]Write to MH i2c: 01 00 00 57 18 6F [16:39:00]*** FLAG_PRN_PAP2 set [16:39:00]Write i2c OK [16:39:00]MH_I2C_Read... [16:39:00]Read from MH i2c: 01 [16:39:00]MH_I2C_Read... [16:39:00]Read from MH i2c: 01 07 00 [16:39:00]MH_I2C_Read... [16:39:00]Read from MH i2c: 01 07 00 57 18 00 03 00 00 00 FF 0F 87 [16:39:00]state=0 [16:39:00]No paper [16:39:00]Cover opened [16:39:00]int [16:39:00]Write to MH i2c: 01 00 00 58 18 70 [16:39:00]*** FLAG_PRN_PAP2 reset [16:39:00]Write i2c OK [16:39:00]MH_I2C_Read... [16:39:00]Read from MH i2c: 01 [16:39:00]MH_I2C_Read... [16:39:00]Read from MH i2c: 01 07 00 [16:39:00]MH_I2C_Read... [16:39:00]Read from MH i2c: 01 07 00 58 18 00 01 00 00 00 FF 0F 86 [16:39:00]state=3 [16:39:00]No paper [16:39:00]Cover closed [16:39:00]int [16:39:00]Write to MH i2c: 01 00 00 59 18 71 [16:39:00]*** FLAG_PRN_PAP2 set [16:39:00]Write i2c OK [16:39:00]MH_I2C_Read... [16:39:00]Read from MH i2c: 01 [16:39:00]MH_I2C_Read... [16:39:00]Read from MH i2c: 01 07 00 [16:39:00]MH_I2C_Read... [16:39:00]Read from MH i2c: 01 07 00 59 18 00 03 00 00 00 FF 0F 89 [16:39:00]state=0 [16:39:00]No paper [16:39:00]Cover opened [16:39:00]int [16:39:00]Write to MH i2c: 01 00 00 5A 18 72 [16:39:00]*** FLAG_PRN_PAP2 reset [16:39:00]Write i2c OK [16:39:00]MH_I2C_Read... [16:39:00]Read from MH i2c: 01 [16:39:00]MH_I2C_Read... [16:39:00]Read from MH i2c: 01 07 00 [16:39:00]MH_I2C_Read... [16:39:00]Read from MH i2c: 01 07 00 5A 18 00 01 00 00 00 FF 0F 88 [16:39:00]state=3 [16:39:00]No paper [16:39:00]Cover closed [16:39:00]int [16:39:00]Write to MH i2c: 01 00 00 5B 18 73 [16:39:00]*** FLAG_PRN_PAP1 reset [16:39:00]Write i2c OK [16:39:00]MH_I2C_Read... [16:39:00]Read from MH i2c: 01 [16:39:00]MH_I2C_Read... [16:39:00]Read from MH i2c: 01 07 00 [16:39:00]MH_I2C_Read... [16:39:00]Read from MH i2c: 01 07 00 5B 18 00 00 00 00 00 FF 0F 88 [16:39:00]state=0 [16:39:03]OFD Sender: No OFD packet to send [16:39:08]OFD Sender: No OFD packet to send [16:39:13]OFD Sender: No OFD packet to send [16:39:18]OFD Sender: No OFD packet to send [16:39:23]OFD Sender: No OFD packet to send [16:39:28]OFD Sender: No OFD packet to send [16:39:33]OFD Sender: No OFD packet to send [16:39:37]accept exits with 9 [16:39:37]New connection [16:39:37]New thread 3066568036 created [16:39:37]Thread 3066711396 joined [16:39:37]Waiting for new connection... [16:39:37] Sock 9.Parse request [16:39:37]Sock 9.Check first char [16:39:37]Sock 9.First char is OK [16:39:37]request: POST /json_proto HTTP/1.0 [16:39:37]Method: POST [16:39:37]URL: /json_proto [16:39:37]Method is POST - this is cgi request [16:39:37]url: /json_proto [16:39:37]query_string will be loaded in cgi processing [16:39:37]execute_cgi json_proto POST (null) [16:39:37]execute_cgi path=json_proto method=POST [16:39:37]POST find Content-Length [16:39:37]Host: 172.17.50.3:8080 [16:39:37]Content-Length: 689 [16:39:37]Content-Type: application/json [16:39:37] [16:39:37]POST finish read [16:39:37]Found Content-Length = 689 [16:39:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 20.990, "sum" : 1620.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 1620.00, "payments": [ { "type": 0, "sum" : 1620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:37]execute_script... [16:39:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 20.990, "sum" : 1620.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 1620.00, "payments": [ { "type": 0, "sum" : 1620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:37]POST & json_proto [16:39:37]process_json_proto [16:39:37]json parsed OK: [16:39:37]protocol is kg_v1.0 [16:39:37]action value=close_receipt [16:39:37]process_action close_receipt [16:39:37]cmd_close_receipt [16:39:37]MH_GetDate [16:39:37]Write to MH i2c: F0 00 00 5C 18 63 [16:39:37]Write i2c OK [16:39:37]MH_I2C_Read... [16:39:37]Read from MH i2c: F0 [16:39:37]MH_I2C_Read... [16:39:37]Read from MH i2c: F0 09 00 [16:39:37]MH_I2C_Read... [16:39:37]Read from MH i2c: F0 09 00 5C 18 00 49 32 15 67 6B 98 1E 66 EA [16:39:37]GetLastDocTimeStamp 1729442311 [16:39:37]current date 1729442377 [16:39:37]FM_GetShiftState [16:39:37]SAM_PROTO_GetShiftState [16:39:37]wFMCommunicate request_size=4 [16:39:37]MH_SAM_APDU [16:39:37]CAPDU: 80 13 01 00 [16:39:37]Write to MH i2c: E2 08 00 5D 18 80 13 01 00 00 00 00 00 F2 [16:39:37]Write i2c OK [16:39:37]MH_I2C_Read... [16:39:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:37]Read from MH i2c: E2 [16:39:37]MH_I2C_Read... [16:39:37]Read from MH i2c: E2 0E 00 [16:39:37]MH_I2C_Read... [16:39:37]Read from MH i2c: E2 0E 00 5D 18 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 F8 [16:39:37]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:39:37]wFMCommunicate OK [16:39:37]SAM_PROTO_GetShiftState done [16:39:37]FM_GetShiftState done [16:39:37]opened in 1729383220 [16:39:37]opened+sec_in_day 1729469620 [16:39:37]quantity*price = 162042 [16:39:37]sum+1 = 162044 [16:39:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1620.00 Внесено: 5000.00 СДАЧА: 3380.00 НСП 1% : 14.34 НДС 12% : 172.08 Наличными: 1620.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 278 20.10.2024 16:39 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69433 ФПД: 204114359768411 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163938&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69433&fm=204114359768411&tin=02508201610067®Number=0000000000156251&sum=162000 [16:39:38]StoreToDocumentArchive [16:39:38]shift 193 fd 69433 [16:39:38]save to /storage/0193/doc_00069433 [16:39:38]save last doc name /storage/0193/doc_00069433 to /storage/kkm_last_doc_name [16:39:38]save OK [16:39:38]Clear old archive folders... [16:39:38]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:39:38]tlvbuf is 00249E40 [16:39:38]SAM_PROTO_ClearQueue [16:39:38]wFMCommunicate request_size=4 [16:39:38]MH_SAM_APDU [16:39:38]CAPDU: 80 09 00 00 [16:39:38]Write to MH i2c: E2 08 00 6A 18 80 09 00 00 00 00 00 00 F4 [16:39:38]Write i2c OK [16:39:38]MH_I2C_Read... [16:39:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:39:38]Read from MH i2c: E2 [16:39:38]MH_I2C_Read... [16:39:38]Read from MH i2c: E2 03 00 [16:39:38]MH_I2C_Read... [16:39:38]Read from MH i2c: E2 03 00 6A 18 00 90 00 F6 [16:39:38]RAPDU: 90 00 [16:39:38]wFMCommunicate OK [16:39:38]SAM_PROTO_ClearQueue done [16:39:38]KKMCreateOFDPacket [16:39:38]OFDProtocolAddRootSTLVToBuf [16:39:38]FM_MakeSignedData [16:39:38]FM_MakeSignedData [16:39:38]SAM_PROTO_SignData [16:39:38]wFMCommunicate request_size=4 [16:39:38]MH_SAM_APDU [16:39:38]CAPDU: 80 0D 01 02 [16:39:38]Write to MH i2c: E2 08 00 6B 18 80 0D 01 02 00 00 00 00 FC [16:39:38]Write i2c OK [16:39:38]MH_I2C_Read... [16:39:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:39:38]Read from MH i2c: E2 [16:39:38]MH_I2C_Read... [16:39:38]Read from MH i2c: E2 03 00 [16:39:38]MH_I2C_Read... [16:39:38]Read from MH i2c: E2 03 00 6B 18 00 90 00 F7 [16:39:38]RAPDU: 90 00 [16:39:38]wFMCommunicate OK [16:39:38]wFMCommunicate request_size=255 [16:39:38]MH_SAM_APDU [16:39:38]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 FE 51 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 FB 78 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 78 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 43 00 00 00 00 07 04 06 00 D0 78 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 4A 32 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 39 0F 01 [16:39:38]Write to MH i2c: E2 02 01 6C 18 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 FE 51 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 FB 78 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 78 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 43 00 00 00 00 07 04 06 00 D0 78 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 4A 32 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 39 0F 01 00 00 3D [16:39:38]Write i2c OK [16:39:38]MH_I2C_Read... [16:39:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:38]Read from MH i2c: E2 [16:39:38]MH_I2C_Read... [16:39:38]Read from MH i2c: E2 03 00 [16:39:38]MH_I2C_Read... [16:39:38]Read from MH i2c: E2 03 00 6C 18 00 90 00 F8 [16:39:38]RAPDU: 90 00 [16:39:38]wFMCommunicate OK [16:39:38]wFMCommunicate request_size=16 [16:39:38]MH_SAM_APDU [16:39:38]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 B9 A4 13 E8 55 5B [16:39:38]Write to MH i2c: E2 13 00 6D 18 80 0D 02 02 0B 00 00 35 04 06 00 B9 A4 13 E8 55 5B 00 00 5C [16:39:38]Write i2c OK [16:39:38]MH_I2C_Read... [16:39:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:38]Read from MH i2c: E2 [16:39:38]MH_I2C_Read... [16:39:38]Read from MH i2c: E2 03 00 [16:39:38]MH_I2C_Read... [16:39:38]Read from MH i2c: E2 03 00 6D 18 00 90 00 F9 [16:39:38]RAPDU: 90 00 [16:39:38]wFMCommunicate OK [16:39:38]wFMCommunicate request_size=4 [16:39:38]MH_SAM_APDU [16:39:38]CAPDU: 80 0D 03 02 [16:39:38]Write to MH i2c: E2 08 00 6E 18 80 0D 03 02 00 00 00 00 01 [16:39:38]Write i2c OK [16:39:38]MH_I2C_Read... [16:39:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:39:38]Read from MH i2c: E2 [16:39:38]MH_I2C_Read... [16:39:38]Read from MH i2c: E2 0B 00 [16:39:38]MH_I2C_Read... [16:39:38]Read from MH i2c: E2 0B 00 6E 18 00 F4 33 D3 35 7E 24 0C 22 90 00 01 [16:39:38]RAPDU: F4 33 D3 35 7E 24 0C 22 90 00 [16:39:38]wFMCommunicate OK [16:39:38]SAM_PROTO_SignData done [16:39:38]FM_MakeSignedData done [16:39:38]CreateOFDProtocolMessage [16:39:38]wFMCommunicate request_size=4 [16:39:38]MH_SAM_APDU [16:39:38]CAPDU: 80 11 00 00 [16:39:38]Write to MH i2c: E2 08 00 6F 18 80 11 00 00 00 00 00 00 01 [16:39:38]Write i2c OK [16:39:38]MH_I2C_Read... [16:39:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:38]Read from MH i2c: E2 [16:39:38]MH_I2C_Read... [16:39:38]Read from MH i2c: E2 17 00 [16:39:38]MH_I2C_Read... [16:39:38]Read from MH i2c: E2 17 00 6F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 53 [16:39:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:39:38]wFMCommunicate OK [16:39:38]CreateOFDProtocolMessage done [16:39:38]OFDSenderStorePacket 69433 [16:39:38]StoreOFDPacket docnum=69433 [16:39:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 55 BE 0D 01 D8 5E 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 FE 51 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 FB 78 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 78 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 43 00 00 00 00 07 04 06 00 D0 78 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 4A 32 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 39 0F 01 00 35 04 06 00 B9 A4 13 E8 55 5B F4 33 D3 35 7E 24 0C 22 [16:39:38]CheckFolder [16:39:38]dirname=/storage/ofd_packets [16:39:38]CheckFolder done [16:39:38]ProducePacketName [16:39:38]name=ofd_packets/00069433 [16:39:38]NVStorageSaveData ofd_packets/00069433 [16:39:38]File name is /storage/ofd_packets/00069433 [16:39:38]Write 307 bytes [16:39:38]NVStorageSaveData done [16:39:38]OFDSenderStorePacket done [16:39:38]KKMCreateOFDPacket done [16:39:38]NVStorageSaveData kkm_last_timestamp [16:39:38]File name is /storage/kkm_last_timestamp [16:39:38]Write 4 bytes [16:39:38]NVStorageSaveData done [16:39:38]ExternCall_PrintAddStr [16:39:38]wPrintStart [16:39:38]Write to MH i2c: 01 00 00 70 18 88 [16:39:38]Write i2c OK [16:39:38]MH_I2C_Read... [16:39:38]Read from MH i2c: 01 [16:39:38]MH_I2C_Read... [16:39:38]Read from MH i2c: 01 07 00 [16:39:38]MH_I2C_Read... [16:39:38]Read from MH i2c: 01 07 00 70 18 00 00 00 00 00 FF 0F 9D [16:39:38]RasterBufferAndPrint [16:39:38]line Счет N : (1)2885161 [16:39:38]line ИНН: 02508201610067 [16:39:38]line Контрольно-Кассовый Чек [16:39:38]line ПРОДАЖА [16:39:38]line ТРК (МРК, ГНК) : 11 [16:39:38]line Товар: 2710194240 [16:39:38]line D-ENERGY Дт-К-2 [16:39:38]line 20.990 * 77.20 [16:39:38]line = 1620.43 [16:39:38]line НДС 12% НСП 1% [16:39:38]line > о реализуемом товаре [16:39:38]line ОКРУГЛЕНИЕ: -0.43 [16:39:38]line ИТОГО: 1620.00 [16:39:38]line Внесено: 5000.00 [16:39:38]line СДАЧА: 3380.00 [16:39:38]line НСП 1% : 14.34 [16:39:38]line НДС 12% : 172.08 [16:39:38]line Наличными: 1620.00 [16:39:38]line Безнал.: 0.00 [16:39:38]line Место: АЗС № 85 "Партнер Нефть" [16:39:38]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:39:38]line СНО: Общий режим [16:39:38]line Чек 278 20.10.2024 16:39 [16:39:38]line Смена: 193 ФФД: 1.0 [16:39:38]line ЗНМ: 0300000167 [16:39:38]line РНМ: 0000000000156251 [16:39:38]line Версия ККМ: v1.0 [16:39:38]line ФМ: 0000000000963346 [16:39:38]line ФД: 69433 [16:39:38]line ФПД: 204114359768411 [16:39:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T163938&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69433&fm=204114359768411&tin=02508201610067®Number=0000000000156251&sum=162000 [16:39:39]OFD Sender: Processing packet 69433 [packets to send 18, broken 17] [16:39:39]ProducePacketName [16:39:39]name=ofd_packets/00069433 [16:39:39]OFD Sender: To server: pG, [16:39:39]CommunicateWithHost lk.salyk.kg:30040 [16:39:39]ConnectInit lk.salyk.kg [16:39:39]written 0, free lines is 4095 [16:39:39]Connected sock=10 [16:39:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 55 BE 0D 01 D8 5E 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 FE 51 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 FB 78 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 78 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 43 00 00 00 00 07 04 06 00 D0 78 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 4A 32 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 39 0F 01 00 35 04 06 00 B9 A4 13 E8 55 5B F4 33 D3 35 7E 24 0C 22 [16:39:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 06 BA 47 00 D1 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 39 0F 01 00 F4 03 04 00 F0 DB 14 67 B6 04 01 00 00 68 AC 94 BD 6C 1B 3D 2E [16:39:39]CommunicateWithHost err = 0 [16:39:39]CheckOFDResponse [16:39:39]1017 (14) - 77093643461234 [16:39:39]1041 (16) - 0000000000963346 [16:39:39]1040 (4) - 69433 [16:39:39]1012 (4) - 20.10.2024 10:31 [16:39:39]1206 (1) - 0 [16:39:39]OFD Sender: Remove packet 69433 [16:39:39]ProducePacketName [16:39:39]name=ofd_packets/00069433 [16:39:39]NVStorageDeleteData [16:39:39]Write to MH i2c: 01 00 00 9B 18 B3 [16:39:39]Write i2c OK [16:39:39]MH_I2C_Read... [16:39:39]Read from MH i2c: 01 [16:39:39]MH_I2C_Read... [16:39:39]Read from MH i2c: 01 07 00 [16:39:39]MH_I2C_Read... [16:39:39]Read from MH i2c: 01 07 00 9B 18 00 00 00 00 00 FB 0C C1 [16:39:39]RasterBufferAndPrint [16:39:39]line [16:39:39]line [16:39:39]line [16:39:39]line [16:39:39]line [16:39:39]written 0, free lines is 3329 [16:39:39]MH_Cut [16:39:39]Write to MH i2c: D1 01 00 A2 18 01 8C [16:39:39]Write i2c OK [16:39:39]MH_I2C_Read... [16:39:39]Read from MH i2c: D1 [16:39:39]MH_I2C_Read... [16:39:39]Read from MH i2c: D1 01 00 [16:39:39]MH_I2C_Read... [16:39:39]Read from MH i2c: D1 01 00 A2 18 00 8B [16:39:39]Write to MH i2c: 01 00 00 A3 18 BB [16:39:39]Write i2c OK [16:39:39]MH_I2C_Read... [16:39:39]OFD Sender: No OFD packet to send [16:39:40]*** Cut start [16:39:40]*** Partial cut [16:39:40]*** CUTSNS_PIN = 1 [16:39:40]*** CUTSNS_PIN = 0 [16:39:40]*** Brake cut motor [16:39:40]Read from MH i2c: 01 [16:39:40]MH_I2C_Read... [16:39:40]*** Stop cut motor [16:39:40]*** Cut end [16:39:40]Read from MH i2c: 01 07 00 [16:39:40]MH_I2C_Read... [16:39:40]Read from MH i2c: 01 07 00 A3 18 00 00 00 00 00 FF 0F D0 [16:39:40]process_action close_receipt done [16:39:40]requested_data is exist [16:39:40]produce_requested_data [16:39:40]requested_item fm.sn is exist - process it [16:39:40]wFMCommunicate request_size=4 [16:39:40]MH_SAM_APDU [16:39:40]CAPDU: 80 11 00 00 [16:39:40]Write to MH i2c: E2 08 00 A4 18 80 11 00 00 00 00 00 00 36 [16:39:40]Write i2c OK [16:39:40]MH_I2C_Read... [16:39:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:40]Read from MH i2c: E2 [16:39:40]MH_I2C_Read... [16:39:40]Read from MH i2c: E2 17 00 [16:39:40]MH_I2C_Read... [16:39:40]Read from MH i2c: E2 17 00 A4 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 88 [16:39:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:39:40]wFMCommunicate OK [16:39:40]requested_item fd.num is exist - process it [16:39:40]SAM_PROTO_GetFieldsCounters [16:39:40]wFMCommunicate request_size=4 [16:39:40]MH_SAM_APDU [16:39:40]CAPDU: 80 13 00 00 [16:39:40]Write to MH i2c: E2 08 00 A5 18 80 13 00 00 00 00 00 00 39 [16:39:40]Write i2c OK [16:39:40]MH_I2C_Read... [16:39:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:39:41]Read from MH i2c: E2 [16:39:41]MH_I2C_Read... [16:39:41]Read from MH i2c: E2 62 00 [16:39:41]MH_I2C_Read... [16:39:41]Read from MH i2c: E2 62 00 A5 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 39 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 A3 [16:39:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 39 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:39:41]wFMCommunicate OK [16:39:41]SAM_PROTO_GetFieldsCounters done [16:39:41]requested_item shift.num is exist - process it [16:39:41]requested_item shift.opened is exist - process it [16:39:41]req_shift_opened [16:39:41]FM_GetShiftState [16:39:41]SAM_PROTO_GetShiftState [16:39:41]wFMCommunicate request_size=4 [16:39:41]MH_SAM_APDU [16:39:41]CAPDU: 80 13 01 00 [16:39:41]Write to MH i2c: E2 08 00 A6 18 80 13 01 00 00 00 00 00 3B [16:39:41]Write i2c OK [16:39:41]MH_I2C_Read... [16:39:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:41]Read from MH i2c: E2 [16:39:41]MH_I2C_Read... [16:39:41]Read from MH i2c: E2 0E 00 [16:39:41]MH_I2C_Read... [16:39:41]Read from MH i2c: E2 0E 00 A6 18 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 41 [16:39:41]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:39:41]wFMCommunicate OK [16:39:41]SAM_PROTO_GetShiftState done [16:39:41]FM_GetShiftState done [16:39:41]req_shift_opened done [16:39:41]requested_item shift.open_date is exist - process it [16:39:41]req_shift_open_date [16:39:41]req_shift_open_date done [16:39:41]produce_requested_data done [16:39:41]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69433,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [16:39:41]process_action_free close_receipt [16:39:41]json_value_free [16:39:41]json_value_free done [16:39:41]process_json_proto returns [16:39:41]Send response to host [16:39:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69433,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [16:39:41]free response buf [16:39:41]execute_script done [16:39:41]execute_script returns [16:39:41]free content buf [16:39:41]Sock 9.Close socket [16:39:41]Sock 9.Thread stoped [16:39:44]OFD Sender: No OFD packet to send [16:39:49]OFD Sender: No OFD packet to send [16:39:54]OFD Sender: No OFD packet to send [16:39:59]OFD Sender: No OFD packet to send [16:40:01]int [16:40:01]Write to MH i2c: 01 00 00 A7 18 BF [16:40:01]*** FLAG_PRN_PAP1 set [16:40:01]Write i2c OK [16:40:01]MH_I2C_Read... [16:40:01]Read from MH i2c: 01 [16:40:01]MH_I2C_Read... [16:40:01]Read from MH i2c: 01 07 00 [16:40:01]MH_I2C_Read... [16:40:01]Read from MH i2c: 01 07 00 A7 18 00 01 00 00 00 FF 0F D5 [16:40:01]state=0 [16:40:01]No paper [16:40:01]int [16:40:01]Write to MH i2c: 01 00 00 A8 18 C0 [16:40:01]*** FLAG_PRN_PAP2 set [16:40:01]Write i2c OK [16:40:01]MH_I2C_Read... [16:40:01]Read from MH i2c: 01 [16:40:01]MH_I2C_Read... [16:40:01]Read from MH i2c: 01 07 00 [16:40:01]MH_I2C_Read... [16:40:01]Read from MH i2c: 01 07 00 A8 18 00 03 00 00 00 FF 0F D8 [16:40:01]state=0 [16:40:01]No paper [16:40:01]Cover opened [16:40:01]int [16:40:01]Write to MH i2c: 01 00 00 A9 18 C1 [16:40:01]*** FLAG_PRN_PAP2 reset [16:40:01]Write i2c OK [16:40:01]MH_I2C_Read... [16:40:01]Read from MH i2c: 01 [16:40:01]MH_I2C_Read... [16:40:01]Read from MH i2c: 01 07 00 [16:40:01]MH_I2C_Read... [16:40:01]Read from MH i2c: 01 07 00 A9 18 00 01 00 00 00 FF 0F D7 [16:40:01]state=3 [16:40:01]No paper [16:40:01]Cover closed [16:40:01]int [16:40:01]Write to MH i2c: 01 00 00 AA 18 C2 [16:40:01]*** FLAG_PRN_PAP2 set [16:40:01]Write i2c OK [16:40:01]MH_I2C_Read... [16:40:01]Read from MH i2c: 01 [16:40:01]MH_I2C_Read... [16:40:01]Read from MH i2c: 01 07 00 [16:40:01]MH_I2C_Read... [16:40:01]Read from MH i2c: 01 07 00 AA 18 00 03 00 00 00 FF 0F DA [16:40:01]state=0 [16:40:01]No paper [16:40:01]Cover opened [16:40:04]int [16:40:04]Write to MH i2c: 01 00 00 AB 18 C3 [16:40:04]*** FLAG_PRN_PAP2 reset [16:40:04]Write i2c OK [16:40:04]MH_I2C_Read... [16:40:04]Read from MH i2c: 01 [16:40:04]MH_I2C_Read... [16:40:04]Read from MH i2c: 01 07 00 [16:40:04]MH_I2C_Read... [16:40:04]Read from MH i2c: 01 07 00 AB 18 00 01 00 00 00 FF 0F D9 [16:40:04]state=3 [16:40:04]No paper [16:40:04]Cover closed [16:40:04]int [16:40:04]Write to MH i2c: 01 00 00 AC 18 C4 [16:40:04]*** FLAG_PRN_PAP2 set [16:40:04]Write i2c OK [16:40:04]MH_I2C_Read... [16:40:04]Read from MH i2c: 01 [16:40:04]MH_I2C_Read... [16:40:04]Read from MH i2c: 01 07 00 [16:40:04]MH_I2C_Read... [16:40:04]Read from MH i2c: 01 07 00 AC 18 00 03 00 00 00 FF 0F DC [16:40:04]state=0 [16:40:04]No paper [16:40:04]Cover opened [16:40:04]int [16:40:04]Write to MH i2c: 01 00 00 AD 18 C5 [16:40:04]*** FLAG_PRN_PAP2 reset [16:40:04]Write i2c OK [16:40:04]MH_I2C_Read... [16:40:04]Read from MH i2c: 01 [16:40:04]MH_I2C_Read... [16:40:04]Read from MH i2c: 01 07 00 [16:40:04]MH_I2C_Read... [16:40:04]Read from MH i2c: 01 07 00 AD 18 00 01 00 00 00 FF 0F DB [16:40:04]state=3 [16:40:04]No paper [16:40:04]Cover closed [16:40:04]int [16:40:04]Write to MH i2c: 01 00 00 AE 18 C6 [16:40:04]*** FLAG_PRN_PAP2 set [16:40:04]Write i2c OK [16:40:04]MH_I2C_Read... [16:40:04]Read from MH i2c: 01 [16:40:04]MH_I2C_Read... [16:40:04]Read from MH i2c: 01 07 00 [16:40:04]MH_I2C_Read... [16:40:04]Read from MH i2c: 01 07 00 AE 18 00 03 00 00 00 FF 0F DE [16:40:04]state=0 [16:40:04]No paper [16:40:04]Cover opened [16:40:04]int [16:40:04]Write to MH i2c: 01 00 00 AF 18 C7 [16:40:04]*** FLAG_PRN_PAP2 reset [16:40:04]Write i2c OK [16:40:04]MH_I2C_Read... [16:40:04]Read from MH i2c: 01 [16:40:04]MH_I2C_Read... [16:40:04]Read from MH i2c: 01 07 00 [16:40:04]MH_I2C_Read... [16:40:04]Read from MH i2c: 01 07 00 AF 18 00 01 00 00 00 FF 0F DD [16:40:04]state=3 [16:40:04]No paper [16:40:04]Cover closed [16:40:04]OFD Sender: No OFD packet to send [16:40:04]int [16:40:04]Write to MH i2c: 01 00 00 B0 18 C8 [16:40:04]*** FLAG_PRN_PAP2 set [16:40:04]Write i2c OK [16:40:04]MH_I2C_Read... [16:40:04]Read from MH i2c: 01 [16:40:04]MH_I2C_Read... [16:40:04]Read from MH i2c: 01 07 00 [16:40:04]MH_I2C_Read... [16:40:04]Read from MH i2c: 01 07 00 B0 18 00 03 00 00 00 FF 0F E0 [16:40:04]state=0 [16:40:04]No paper [16:40:04]Cover opened [16:40:05]int [16:40:05]Write to MH i2c: 01 00 00 B1 18 C9 [16:40:05]*** FLAG_PRN_PAP2 reset [16:40:05]Write i2c OK [16:40:05]MH_I2C_Read... [16:40:05]Read from MH i2c: 01 [16:40:05]MH_I2C_Read... [16:40:05]Read from MH i2c: 01 07 00 [16:40:05]MH_I2C_Read... [16:40:05]Read from MH i2c: 01 07 00 B1 18 00 01 00 00 00 FF 0F DF [16:40:05]state=3 [16:40:05]No paper [16:40:05]Cover closed [16:40:09]int [16:40:09]Write to MH i2c: 01 00 00 B2 18 CA [16:40:09]*** FLAG_PRN_PAP2 set [16:40:09]Write i2c OK [16:40:09]MH_I2C_Read... [16:40:09]Read from MH i2c: 01 [16:40:09]MH_I2C_Read... [16:40:09]Read from MH i2c: 01 07 00 [16:40:09]MH_I2C_Read... [16:40:09]Read from MH i2c: 01 07 00 B2 18 00 03 00 00 00 FF 0F E2 [16:40:09]state=0 [16:40:09]No paper [16:40:09]Cover opened [16:40:09]OFD Sender: No OFD packet to send [16:40:10]int [16:40:10]Write to MH i2c: 01 00 00 B3 18 CB [16:40:10]*** FLAG_PRN_PAP2 reset [16:40:10]Write i2c OK [16:40:10]MH_I2C_Read... [16:40:10]Read from MH i2c: 01 [16:40:10]MH_I2C_Read... [16:40:10]Read from MH i2c: 01 07 00 [16:40:10]MH_I2C_Read... [16:40:10]Read from MH i2c: 01 07 00 B3 18 00 01 00 00 00 FF 0F E1 [16:40:10]state=3 [16:40:10]No paper [16:40:10]Cover closed [16:40:10]int [16:40:10]Write to MH i2c: 01 00 00 B4 18 CC [16:40:10]*** FLAG_PRN_PAP2 set [16:40:10]Write i2c OK [16:40:10]MH_I2C_Read... [16:40:10]Read from MH i2c: 01 [16:40:10]MH_I2C_Read... [16:40:10]Read from MH i2c: 01 07 00 [16:40:10]MH_I2C_Read... [16:40:10]Read from MH i2c: 01 07 00 B4 18 00 03 00 00 00 FF 0F E4 [16:40:10]state=0 [16:40:10]No paper [16:40:10]Cover opened [16:40:11]int [16:40:11]Write to MH i2c: 01 00 00 B5 18 CD [16:40:11]*** FLAG_PRN_PAP2 reset [16:40:11]Write i2c OK [16:40:11]MH_I2C_Read... [16:40:11]Read from MH i2c: 01 [16:40:11]MH_I2C_Read... [16:40:11]Read from MH i2c: 01 07 00 [16:40:11]MH_I2C_Read... [16:40:11]Read from MH i2c: 01 07 00 B5 18 00 01 00 00 00 FF 0F E3 [16:40:11]state=3 [16:40:11]No paper [16:40:11]Cover closed [16:40:11]int [16:40:11]Write to MH i2c: 01 00 00 B6 18 CE [16:40:11]*** FLAG_PRN_PAP1 reset [16:40:11]Write i2c OK [16:40:11]MH_I2C_Read... [16:40:11]Read from MH i2c: 01 [16:40:11]MH_I2C_Read... [16:40:11]Read from MH i2c: 01 07 00 [16:40:11]MH_I2C_Read... [16:40:11]Read from MH i2c: 01 07 00 B6 18 00 00 00 00 00 FF 0F E3 [16:40:11]state=0 [16:40:14]OFD Sender: No OFD packet to send [16:40:19]OFD Sender: No OFD packet to send [16:40:24]OFD Sender: No OFD packet to send [16:40:29]OFD Sender: No OFD packet to send [16:40:34]OFD Sender: No OFD packet to send [16:40:39]OFD Sender: No OFD packet to send [16:40:44]OFD Sender: No OFD packet to send [16:40:49]OFD Sender: No OFD packet to send [16:40:52]accept exits with 8 [16:40:52]New connection [16:40:52]New thread 3066711396 created [16:40:52]Thread 3066568036 joined [16:40:52]Waiting for new connection... [16:40:52] Sock 8.Parse request [16:40:52]Sock 8.Check first char [16:40:52]Sock 8.First char is OK [16:40:52]request: POST /json_proto HTTP/1.0 [16:40:52]Method: POST [16:40:52]URL: /json_proto [16:40:52]Method is POST - this is cgi request [16:40:52]url: /json_proto [16:40:52]query_string will be loaded in cgi processing [16:40:52]execute_cgi json_proto POST (null) [16:40:52]execute_cgi path=json_proto method=POST [16:40:52]POST find Content-Length [16:40:52]Host: 172.17.50.3:8080 [16:40:52]Content-Length: 678 [16:40:52]Content-Type: application/json [16:40:52] [16:40:52]POST finish read [16:40:52]Found Content-Length = 678 [16:40:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:52]execute_script... [16:40: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)2885162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:52]POST & json_proto [16:40:52]process_json_proto [16:40:52]json parsed OK: [16:40:52]protocol is kg_v1.0 [16:40:52]action value=close_receipt [16:40:52]process_action close_receipt [16:40:52]cmd_close_receipt [16:40:52]MH_GetDate [16:40:52]Write to MH i2c: F0 00 00 B7 18 BE [16:40:52]Write i2c OK [16:40:52]MH_I2C_Read... [16:40:52]Read from MH i2c: F0 [16:40:52]MH_I2C_Read... [16:40:52]Read from MH i2c: F0 09 00 [16:40:52]MH_I2C_Read... [16:40:52]Read from MH i2c: F0 09 00 B7 18 00 95 32 15 67 6B 98 1E 66 91 [16:40:52]GetLastDocTimeStamp 1729442378 [16:40:52]current date 1729442453 [16:40:52]FM_GetShiftState [16:40:52]SAM_PROTO_GetShiftState [16:40:52]wFMCommunicate request_size=4 [16:40:52]MH_SAM_APDU [16:40:52]CAPDU: 80 13 01 00 [16:40:52]Write to MH i2c: E2 08 00 B8 18 80 13 01 00 00 00 00 00 4D [16:40:52]Write i2c OK [16:40:52]MH_I2C_Read... [16:40:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:52]Read from MH i2c: E2 [16:40:52]MH_I2C_Read... [16:40:52]Read from MH i2c: E2 0E 00 [16:40:52]MH_I2C_Read... [16:40:52]Read from MH i2c: E2 0E 00 B8 18 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 53 [16:40:52]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:40:52]wFMCommunicate OK [16:40:52]SAM_PROTO_GetShiftState done [16:40:52]FM_GetShiftState done [16:40:52]opened in 1729383220 [16:40:52]opened+sec_in_day 1729469620 [16:40:52]quantity*price = 60009 [16:40:52]sum+1 = 60010 [16:40:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 279 20.10.2024 16:40 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69434 ФПД: 124089887819449 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T164053&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69434&fm=124089887819449&tin=02508201610067®Number=0000000000156251&sum=60000 [16:40:53]StoreToDocumentArchive [16:40:53]shift 193 fd 69434 [16:40:53]save to /storage/0193/doc_00069434 [16:40:53]save last doc name /storage/0193/doc_00069434 to /storage/kkm_last_doc_name [16:40:53]save OK [16:40:53]Clear old archive folders... [16:40:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:40:53]tlvbuf is 0024A060 [16:40:53]SAM_PROTO_ClearQueue [16:40:53]wFMCommunicate request_size=4 [16:40:53]MH_SAM_APDU [16:40:53]CAPDU: 80 09 00 00 [16:40:53]Write to MH i2c: E2 08 00 C5 18 80 09 00 00 00 00 00 00 4F [16:40:53]Write i2c OK [16:40:53]MH_I2C_Read... [16:40:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:40:53]Read from MH i2c: E2 [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: E2 03 00 [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: E2 03 00 C5 18 00 90 00 51 [16:40:53]RAPDU: 90 00 [16:40:53]wFMCommunicate OK [16:40:53]SAM_PROTO_ClearQueue done [16:40:53]KKMCreateOFDPacket [16:40:53]OFDProtocolAddRootSTLVToBuf [16:40:53]FM_MakeSignedData [16:40:53]FM_MakeSignedData [16:40:53]SAM_PROTO_SignData [16:40:53]wFMCommunicate request_size=4 [16:40:53]MH_SAM_APDU [16:40:53]CAPDU: 80 0D 01 02 [16:40:53]Write to MH i2c: E2 08 00 C6 18 80 0D 01 02 00 00 00 00 57 [16:40:53]Write i2c OK [16:40:53]MH_I2C_Read... [16:40:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:40:53]Read from MH i2c: E2 [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: E2 03 00 [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: E2 03 00 C6 18 00 90 00 52 [16:40:53]RAPDU: 90 00 [16:40:53]wFMCommunicate OK [16:40:53]wFMCommunicate request_size=255 [16:40:53]MH_SAM_APDU [16:40:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 95 32 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3A 0F 01 00 35 04 06 00 70 [16:40:53]Write to MH i2c: E2 02 01 C7 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 95 32 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3A 0F 01 00 35 04 06 00 70 00 00 93 [16:40:53]Write i2c OK [16:40:53]MH_I2C_Read... [16:40:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:54]Read from MH i2c: E2 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: E2 03 00 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: E2 03 00 C7 18 00 90 00 53 [16:40:54]RAPDU: 90 00 [16:40:54]wFMCommunicate OK [16:40:54]wFMCommunicate request_size=10 [16:40:54]MH_SAM_APDU [16:40:54]CAPDU: 80 0D 02 02 05 DB ED AF 06 B9 [16:40:54]Write to MH i2c: E2 0D 00 C8 18 80 0D 02 02 05 00 DB ED AF 06 B9 00 00 9A [16:40:54]Write i2c OK [16:40:54]MH_I2C_Read... [16:40:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:54]Read from MH i2c: E2 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: E2 03 00 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: E2 03 00 C8 18 00 90 00 54 [16:40:54]RAPDU: 90 00 [16:40:54]wFMCommunicate OK [16:40:54]wFMCommunicate request_size=4 [16:40:54]MH_SAM_APDU [16:40:54]CAPDU: 80 0D 03 02 [16:40:54]Write to MH i2c: E2 08 00 C9 18 80 0D 03 02 00 00 00 00 5C [16:40:54]Write i2c OK [16:40:54]MH_I2C_Read... [16:40:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:40:54]Read from MH i2c: E2 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: E2 0B 00 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: E2 0B 00 C9 18 00 00 9F AB 7B 47 36 55 99 90 00 8D [16:40:54]RAPDU: 00 9F AB 7B 47 36 55 99 90 00 [16:40:54]wFMCommunicate OK [16:40:54]SAM_PROTO_SignData done [16:40:54]FM_MakeSignedData done [16:40:54]CreateOFDProtocolMessage [16:40:54]wFMCommunicate request_size=4 [16:40:54]MH_SAM_APDU [16:40:54]CAPDU: 80 11 00 00 [16:40:54]Write to MH i2c: E2 08 00 CA 18 80 11 00 00 00 00 00 00 5C [16:40:54]Write i2c OK [16:40:54]MH_I2C_Read... [16:40:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:54]Read from MH i2c: E2 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: E2 17 00 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: E2 17 00 CA 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AE [16:40:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:40:54]wFMCommunicate OK [16:40:54]CreateOFDProtocolMessage done [16:40:54]OFDSenderStorePacket 69434 [16:40:54]StoreOFDPacket docnum=69434 [16:40:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 2C 35 07 01 91 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 95 32 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3A 0F 01 00 35 04 06 00 70 DB ED AF 06 B9 00 9F AB 7B 47 36 55 99 [16:40:54]CheckFolder [16:40:54]dirname=/storage/ofd_packets [16:40:54]CheckFolder done [16:40:54]ProducePacketName [16:40:54]name=ofd_packets/00069434 [16:40:54]NVStorageSaveData ofd_packets/00069434 [16:40:54]File name is /storage/ofd_packets/00069434 [16:40:54]Write 301 bytes [16:40:54]NVStorageSaveData done [16:40:54]OFDSenderStorePacket done [16:40:54]KKMCreateOFDPacket done [16:40:54]NVStorageSaveData kkm_last_timestamp [16:40:54]File name is /storage/kkm_last_timestamp [16:40:54]Write 4 bytes [16:40:54]NVStorageSaveData done [16:40:54]ExternCall_PrintAddStr [16:40:54]wPrintStart [16:40:54]Write to MH i2c: 01 00 00 CB 18 E3 [16:40:54]Write i2c OK [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: 01 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: 01 07 00 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: 01 07 00 CB 18 00 00 00 00 00 FF 0F F8 [16:40:54]RasterBufferAndPrint [16:40:54]line Счет N : (1)2885162 [16:40:54]line ИНН: 02508201610067 [16:40:54]line Контрольно-Кассовый Чек [16:40:54]line ПРОДАЖА [16:40:54]line ТРК (МРК, ГНК) : 42 [16:40:54]line Товар: 2710124130 [16:40:54]line Аи-92-К-5 [16:40:54]line 8.970 * 66.90 [16:40:54]line = 600.09 [16:40:54]line НДС 12% НСП 1% [16:40:54]line > о реализуемом товаре [16:40:54]line ОКРУГЛЕНИЕ: -0.09 [16:40:54]line ИТОГО: 600.00 [16:40:54]line Внесено: 600.00 [16:40:54]line СДАЧА: 0.00 [16:40:54]line НСП 1% : 5.31 [16:40:54]line НДС 12% : 63.73 [16:40:54]line Наличными: 600.00 [16:40:54]line Безнал.: 0.00 [16:40:54]line Место: АЗС № 85 "Партнер Нефть" [16:40:54]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:40:54]line СНО: Общий режим [16:40:54]line Чек 279 20.10.2024 16:40 [16:40:54]line Смена: 193 ФФД: 1.0 [16:40:54]line ЗНМ: 0300000167 [16:40:54]line РНМ: 0000000000156251 [16:40:54]line Версия ККМ: v1.0 [16:40:54]line ФМ: 0000000000963346 [16:40:54]line ФД: 69434 [16:40:54]line ФПД: 124089887819449 [16:40:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T164053&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69434&fm=124089887819449&tin=02508201610067®Number=0000000000156251&sum=60000 [16:40:54]OFD Sender: Processing packet 69434 [packets to send 18, broken 17] [16:40:54]ProducePacketName [16:40:54]name=ofd_packets/00069434 [16:40:54]OFD Sender: To server: pG, [16:40:54]CommunicateWithHost lk.salyk.kg:30040 [16:40:54]ConnectInit lk.salyk.kg [16:40:54]written 0, free lines is 4095 [16:40:54]Connected sock=9 [16:40:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 2C 35 07 01 91 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 95 32 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3A 0F 01 00 35 04 06 00 70 DB ED AF 06 B9 00 9F AB 7B 47 36 55 99 [16:40:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 93 76 47 00 48 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3A 0F 01 00 F4 03 04 00 3B DC 14 67 B6 04 01 00 00 68 B2 FB 6A DF 75 FC 99 [16:40:55]CommunicateWithHost err = 0 [16:40:55]CheckOFDResponse [16:40:55]1017 (14) - 77093643461234 [16:40:55]1041 (16) - 0000000000963346 [16:40:55]1040 (4) - 69434 [16:40:55]1012 (4) - 20.10.2024 10:32 [16:40:55]1206 (1) - 0 [16:40:55]OFD Sender: Remove packet 69434 [16:40:55]ProducePacketName [16:40:55]name=ofd_packets/00069434 [16:40:55]NVStorageDeleteData [16:40:55]Write to MH i2c: 01 00 00 F6 18 0E [16:40:55]Write i2c OK [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: 01 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: 01 07 00 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: 01 07 00 F6 18 00 00 00 00 00 FE 0C 1F [16:40:55]RasterBufferAndPrint [16:40:55]line [16:40:55]line [16:40:55]line [16:40:55]line [16:40:55]line [16:40:55]written 0, free lines is 3332 [16:40:55]MH_Cut [16:40:55]Write to MH i2c: D1 01 00 FD 18 01 E7 [16:40:55]Write i2c OK [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: D1 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: D1 01 00 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: D1 01 00 FD 18 00 E6 [16:40:55]Write to MH i2c: 01 00 00 FE 18 16 [16:40:55]Write i2c OK [16:40:55]MH_I2C_Read... [16:40:55]OFD Sender: No OFD packet to send [16:40:55]*** Cut start [16:40:55]*** Partial cut [16:40:55]*** CUTSNS_PIN = 1 [16:40:55]*** CUTSNS_PIN = 0 [16:40:56]*** Brake cut motor [16:40:56]Read from MH i2c: 01 [16:40:56]MH_I2C_Read... [16:40:56]*** Stop cut motor [16:40:56]*** Cut end [16:40:56]Read from MH i2c: 01 07 00 [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: 01 07 00 FE 18 00 00 00 00 00 FF 0F 2B [16:40:56]process_action close_receipt done [16:40:56]requested_data is exist [16:40:56]produce_requested_data [16:40:56]requested_item fm.sn is exist - process it [16:40:56]wFMCommunicate request_size=4 [16:40:56]MH_SAM_APDU [16:40:56]CAPDU: 80 11 00 00 [16:40:56]Write to MH i2c: E2 08 00 FF 18 80 11 00 00 00 00 00 00 91 [16:40:56]Write i2c OK [16:40:56]MH_I2C_Read... [16:40:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:56]Read from MH i2c: E2 [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: E2 17 00 [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: E2 17 00 FF 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E3 [16:40:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:40:56]wFMCommunicate OK [16:40:56]requested_item fd.num is exist - process it [16:40:56]SAM_PROTO_GetFieldsCounters [16:40:56]wFMCommunicate request_size=4 [16:40:56]MH_SAM_APDU [16:40:56]CAPDU: 80 13 00 00 [16:40:56]Write to MH i2c: E2 08 00 00 19 80 13 00 00 00 00 00 00 95 [16:40:56]Write i2c OK [16:40:56]MH_I2C_Read... [16:40:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:40:56]Read from MH i2c: E2 [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: E2 62 00 [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: E2 62 00 00 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3A 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 03 [16:40:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3A 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:40:56]wFMCommunicate OK [16:40:56]SAM_PROTO_GetFieldsCounters done [16:40:56]requested_item shift.num is exist - process it [16:40:56]requested_item shift.opened is exist - process it [16:40:56]req_shift_opened [16:40:56]FM_GetShiftState [16:40:56]SAM_PROTO_GetShiftState [16:40:56]wFMCommunicate request_size=4 [16:40:56]MH_SAM_APDU [16:40:56]CAPDU: 80 13 01 00 [16:40:56]Write to MH i2c: E2 08 00 01 19 80 13 01 00 00 00 00 00 97 [16:40:56]Write i2c OK [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: E2 [16:40:56]MH_I2C_Read... [16:40:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:56]Read from MH i2c: E2 0E 00 [16:40:56]MH_I2C_Read... [16:40:56]Read from MH i2c: E2 0E 00 01 19 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 9D [16:40:56]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:40:56]wFMCommunicate OK [16:40:56]SAM_PROTO_GetShiftState done [16:40:56]FM_GetShiftState done [16:40:56]req_shift_opened done [16:40:56]requested_item shift.open_date is exist - process it [16:40:56]req_shift_open_date [16:40:56]req_shift_open_date done [16:40:56]produce_requested_data done [16:40:56]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69434,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [16:40:56]process_action_free close_receipt [16:40:56]json_value_free [16:40:56]json_value_free done [16:40:56]process_json_proto returns [16:40:56]Send response to host [16:40:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69434,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [16:40:56]free response buf [16:40:56]execute_script done [16:40:56]execute_script returns [16:40:56]free content buf [16:40:56]Sock 8.Close socket [16:40:56]Sock 8.Thread stoped [16:41:00]OFD Sender: No OFD packet to send [16:41:05]OFD Sender: No OFD packet to send [16:41:10]OFD Sender: No OFD packet to send [16:41:15]OFD Sender: No OFD packet to send [16:41:20]OFD Sender: No OFD packet to send [16:41:25]OFD Sender: No OFD packet to send [16:41:30]OFD Sender: No OFD packet to send [16:41:35]OFD Sender: No OFD packet to send [16:41:40]OFD Sender: No OFD packet to send [16:41:45]OFD Sender: No OFD packet to send [16:41:50]OFD Sender: No OFD packet to send [16:41:55]OFD Sender: No OFD packet to send [16:42:00]OFD Sender: No OFD packet to send [16:42:05]OFD Sender: No OFD packet to send [16:42:10]OFD Sender: No OFD packet to send [16:42:15]OFD Sender: No OFD packet to send [16:42:20]OFD Sender: No OFD packet to send [16:42:25]accept exits with 10 [16:42:25]New connection [16:42:25]New thread 3066568036 created [16:42:25]Thread 3066711396 joined [16:42:25]Waiting for new connection... [16:42:25] Sock 10.Parse request [16:42:25]Sock 10.Check first char [16:42:25]Sock 10.First char is OK [16:42:25]request: POST /json_proto HTTP/1.0 [16:42:25]Method: POST [16:42:25]URL: /json_proto [16:42:25]Method is POST - this is cgi request [16:42:25]url: /json_proto [16:42:25]query_string will be loaded in cgi processing [16:42:25]execute_cgi json_proto POST (null) [16:42:25]execute_cgi path=json_proto method=POST [16:42:25]POST find Content-Length [16:42:25]Host: 172.17.50.3:8080 [16:42:25]Content-Length: 689 [16:42:25]Content-Type: application/json [16:42:25] [16:42:25]POST finish read [16:42:25]Found Content-Length = 689 [16:42:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:25]execute_script... [16:42: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)2885163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:25]POST & json_proto [16:42:25]process_json_proto [16:42:25]json parsed OK: [16:42:25]protocol is kg_v1.0 [16:42:25]action value=close_receipt [16:42:25]process_action close_receipt [16:42:25]cmd_close_receipt [16:42:25]MH_GetDate [16:42:25]Write to MH i2c: F0 00 00 02 19 0A [16:42:25]Write i2c OK [16:42:25]MH_I2C_Read... [16:42:25]Read from MH i2c: F0 [16:42:25]MH_I2C_Read... [16:42:25]Read from MH i2c: F0 09 00 [16:42:25]MH_I2C_Read... [16:42:25]Read from MH i2c: F0 09 00 02 19 00 F2 32 15 67 6B 98 1E 66 3A [16:42:25]GetLastDocTimeStamp 1729442453 [16:42:25]current date 1729442546 [16:42:25]FM_GetShiftState [16:42:25]SAM_PROTO_GetShiftState [16:42:25]wFMCommunicate request_size=4 [16:42:25]MH_SAM_APDU [16:42:25]CAPDU: 80 13 01 00 [16:42:25]Write to MH i2c: E2 08 00 03 19 80 13 01 00 00 00 00 00 99 [16:42:25]Write i2c OK [16:42:25]MH_I2C_Read... [16:42:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:25]Read from MH i2c: E2 [16:42:25]MH_I2C_Read... [16:42:25]Read from MH i2c: E2 0E 00 [16:42:25]MH_I2C_Read... [16:42:25]Read from MH i2c: E2 0E 00 03 19 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 9F [16:42:25]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:42:25]wFMCommunicate OK [16:42:25]SAM_PROTO_GetShiftState done [16:42:25]FM_GetShiftState done [16:42:25]opened in 1729383220 [16:42:25]opened+sec_in_day 1729469620 [16:42:25]quantity*price = 150076 [16:42:25]sum+1 = 150078 [16:42:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 280 20.10.2024 16:42 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69435 ФПД: 159527762706321 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T164226&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69435&fm=159527762706321&tin=02508201610067®Number=0000000000156251&sum=150000 [16:42:26]StoreToDocumentArchive [16:42:26]shift 193 fd 69435 [16:42:26]save to /storage/0193/doc_00069435 [16:42:26]save last doc name /storage/0193/doc_00069435 to /storage/kkm_last_doc_name [16:42:26]save OK [16:42:26]Clear old archive folders... [16:42:26]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:42:26]tlvbuf is B6E9F780 [16:42:26]SAM_PROTO_ClearQueue [16:42:26]wFMCommunicate request_size=4 [16:42:26]MH_SAM_APDU [16:42:26]CAPDU: 80 09 00 00 [16:42:26]Write to MH i2c: E2 08 00 10 19 80 09 00 00 00 00 00 00 9B [16:42:26]Write i2c OK [16:42:26]MH_I2C_Read... [16:42:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:42:26]Read from MH i2c: E2 [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: E2 03 00 [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: E2 03 00 10 19 00 90 00 9D [16:42:26]RAPDU: 90 00 [16:42:26]wFMCommunicate OK [16:42:26]SAM_PROTO_ClearQueue done [16:42:26]KKMCreateOFDPacket [16:42:26]OFDProtocolAddRootSTLVToBuf [16:42:26]FM_MakeSignedData [16:42:26]FM_MakeSignedData [16:42:26]SAM_PROTO_SignData [16:42:26]wFMCommunicate request_size=4 [16:42:26]MH_SAM_APDU [16:42:26]CAPDU: 80 0D 01 02 [16:42:26]Write to MH i2c: E2 08 00 11 19 80 0D 01 02 00 00 00 00 A3 [16:42:26]Write i2c OK [16:42:26]MH_I2C_Read... [16:42:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:42:26]Read from MH i2c: E2 [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: E2 03 00 [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: E2 03 00 11 19 00 90 00 9E [16:42:26]RAPDU: 90 00 [16:42:26]wFMCommunicate OK [16:42:26]wFMCommunicate request_size=255 [16:42:26]MH_SAM_APDU [16:42:26]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 F2 32 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3B 0F 01 [16:42:26]Write to MH i2c: E2 02 01 12 19 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 F2 32 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3B 0F 01 00 00 0C [16:42:26]Write i2c OK [16:42:26]MH_I2C_Read... [16:42:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:26]Read from MH i2c: E2 [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: E2 03 00 [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: E2 03 00 12 19 00 90 00 9F [16:42:26]RAPDU: 90 00 [16:42:26]wFMCommunicate OK [16:42:26]wFMCommunicate request_size=16 [16:42:26]MH_SAM_APDU [16:42:26]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 91 16 F3 A0 BF 91 [16:42:26]Write to MH i2c: E2 13 00 13 19 80 0D 02 02 0B 00 00 35 04 06 00 91 16 F3 A0 BF 91 00 00 85 [16:42:26]Write i2c OK [16:42:26]MH_I2C_Read... [16:42:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:26]Read from MH i2c: E2 [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: E2 03 00 [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: E2 03 00 13 19 00 90 00 A0 [16:42:26]RAPDU: 90 00 [16:42:26]wFMCommunicate OK [16:42:26]wFMCommunicate request_size=4 [16:42:26]MH_SAM_APDU [16:42:26]CAPDU: 80 0D 03 02 [16:42:26]Write to MH i2c: E2 08 00 14 19 80 0D 03 02 00 00 00 00 A8 [16:42:26]Write i2c OK [16:42:26]MH_I2C_Read... [16:42:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:42:26]Read from MH i2c: E2 [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: E2 0B 00 [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: E2 0B 00 14 19 00 A3 80 B1 18 94 A7 D7 EA 90 00 91 [16:42:26]RAPDU: A3 80 B1 18 94 A7 D7 EA 90 00 [16:42:26]wFMCommunicate OK [16:42:26]SAM_PROTO_SignData done [16:42:26]FM_MakeSignedData done [16:42:26]CreateOFDProtocolMessage [16:42:26]wFMCommunicate request_size=4 [16:42:26]MH_SAM_APDU [16:42:26]CAPDU: 80 11 00 00 [16:42:26]Write to MH i2c: E2 08 00 15 19 80 11 00 00 00 00 00 00 A8 [16:42:26]Write i2c OK [16:42:26]MH_I2C_Read... [16:42:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:26]Read from MH i2c: E2 [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: E2 17 00 [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: E2 17 00 15 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FA [16:42:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:42:26]wFMCommunicate OK [16:42:26]CreateOFDProtocolMessage done [16:42:26]OFDSenderStorePacket 69435 [16:42:26]StoreOFDPacket docnum=69435 [16:42:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 44 77 0D 01 13 F0 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 F2 32 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3B 0F 01 00 35 04 06 00 91 16 F3 A0 BF 91 A3 80 B1 18 94 A7 D7 EA [16:42:26]CheckFolder [16:42:26]dirname=/storage/ofd_packets [16:42:26]CheckFolder done [16:42:26]ProducePacketName [16:42:26]name=ofd_packets/00069435 [16:42:26]NVStorageSaveData ofd_packets/00069435 [16:42:26]File name is /storage/ofd_packets/00069435 [16:42:26]Write 307 bytes [16:42:26]NVStorageSaveData done [16:42:26]OFDSenderStorePacket done [16:42:26]KKMCreateOFDPacket done [16:42:26]NVStorageSaveData kkm_last_timestamp [16:42:26]File name is /storage/kkm_last_timestamp [16:42:26]Write 4 bytes [16:42:26]NVStorageSaveData done [16:42:26]ExternCall_PrintAddStr [16:42:26]wPrintStart [16:42:26]Write to MH i2c: 01 00 00 16 19 2F [16:42:26]Write i2c OK [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: 01 [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: 01 07 00 [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: 01 07 00 16 19 00 00 00 00 00 FF 0F 44 [16:42:26]RasterBufferAndPrint [16:42:26]line Счет N : (1)2885163 [16:42:26]line ИНН: 02508201610067 [16:42:26]line Контрольно-Кассовый Чек [16:42:26]line ПРОДАЖА [16:42:26]line ТРК (МРК, ГНК) : 31 [16:42:26]line Товар: 2710194240 [16:42:26]line D-ENERGY Дт-К-2 [16:42:26]line 19.440 * 77.20 [16:42:26]line = 1500.77 [16:42:26]line НДС 12% НСП 1% [16:42:26]line > о реализуемом товаре [16:42:26]line ОКРУГЛЕНИЕ: -0.77 [16:42:26]line ИТОГО: 1500.00 [16:42:26]line Внесено: 1500.00 [16:42:26]line СДАЧА: 0.00 [16:42:26]line НСП 1% : 13.28 [16:42:26]line НДС 12% : 159.37 [16:42:26]line Наличными: 1500.00 [16:42:26]line Безнал.: 0.00 [16:42:26]line Место: АЗС № 85 "Партнер Нефть" [16:42:26]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:42:26]line СНО: Общий режим [16:42:26]line Чек 280 20.10.2024 16:42 [16:42:26]line Смена: 193 ФФД: 1.0 [16:42:26]line ЗНМ: 0300000167 [16:42:26]line РНМ: 0000000000156251 [16:42:26]line Версия ККМ: v1.0 [16:42:26]line ФМ: 0000000000963346 [16:42:26]line ФД: 69435 [16:42:26]line ФПД: 159527762706321 [16:42:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T164226&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69435&fm=159527762706321&tin=02508201610067®Number=0000000000156251&sum=150000 [16:42:27]OFD Sender: Processing packet 69435 [packets to send 18, broken 17] [16:42:27]ProducePacketName [16:42:27]name=ofd_packets/00069435 [16:42:27]OFD Sender: To server: pG, [16:42:27]CommunicateWithHost lk.salyk.kg:30040 [16:42:27]ConnectInit lk.salyk.kg [16:42:27]written 0, free lines is 4095 [16:42:27]Connected sock=9 [16:42:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 44 77 0D 01 13 F0 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 F2 32 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3B 0F 01 00 35 04 06 00 91 16 F3 A0 BF 91 A3 80 B1 18 94 A7 D7 EA [16:42:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 89 9A 47 00 E0 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3B 0F 01 00 F4 03 04 00 98 DC 14 67 B6 04 01 00 00 6C E8 68 D6 7B 40 EF 52 [16:42:27]CommunicateWithHost err = 0 [16:42:27]CheckOFDResponse [16:42:27]1017 (14) - 77093643461234 [16:42:27]1041 (16) - 0000000000963346 [16:42:27]1040 (4) - 69435 [16:42:27]1012 (4) - 20.10.2024 10:34 [16:42:27]1206 (1) - 0 [16:42:27]OFD Sender: Remove packet 69435 [16:42:27]ProducePacketName [16:42:27]name=ofd_packets/00069435 [16:42:27]NVStorageDeleteData [16:42:27]Write to MH i2c: 01 00 00 41 19 5A [16:42:27]Write i2c OK [16:42:27]MH_I2C_Read... [16:42:27]Read from MH i2c: 01 [16:42:27]MH_I2C_Read... [16:42:27]Read from MH i2c: 01 07 00 [16:42:27]MH_I2C_Read... [16:42:27]Read from MH i2c: 01 07 00 41 19 00 00 00 00 00 F6 0C 63 [16:42:27]RasterBufferAndPrint [16:42:27]line [16:42:27]line [16:42:27]line [16:42:27]line [16:42:27]line [16:42:27]written 0, free lines is 3324 [16:42:27]MH_Cut [16:42:27]Write to MH i2c: D1 01 00 48 19 01 33 [16:42:27]Write i2c OK [16:42:27]MH_I2C_Read... [16:42:27]Read from MH i2c: D1 [16:42:27]MH_I2C_Read... [16:42:27]Read from MH i2c: D1 01 00 [16:42:27]MH_I2C_Read... [16:42:27]Read from MH i2c: D1 01 00 48 19 00 32 [16:42:27]Write to MH i2c: 01 00 00 49 19 62 [16:42:27]Write i2c OK [16:42:27]MH_I2C_Read... [16:42:28]OFD Sender: No OFD packet to send [16:42:28]*** Cut start [16:42:28]*** Partial cut [16:42:28]*** CUTSNS_PIN = 1 [16:42:28]*** CUTSNS_PIN = 0 [16:42:28]*** Brake cut motor [16:42:29]Read from MH i2c: 01 [16:42:29]MH_I2C_Read... [16:42:29]*** Stop cut motor [16:42:29]*** Cut end [16:42:29]Read from MH i2c: 01 07 00 [16:42:29]MH_I2C_Read... [16:42:29]Read from MH i2c: 01 07 00 49 19 00 00 00 00 00 FF 0F 77 [16:42:29]process_action close_receipt done [16:42:29]requested_data is exist [16:42:29]produce_requested_data [16:42:29]requested_item fm.sn is exist - process it [16:42:29]wFMCommunicate request_size=4 [16:42:29]MH_SAM_APDU [16:42:29]CAPDU: 80 11 00 00 [16:42:29]Write to MH i2c: E2 08 00 4A 19 80 11 00 00 00 00 00 00 DD [16:42:29]Write i2c OK [16:42:29]MH_I2C_Read... [16:42:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:29]Read from MH i2c: E2 [16:42:29]MH_I2C_Read... [16:42:29]Read from MH i2c: E2 17 00 [16:42:29]MH_I2C_Read... [16:42:29]Read from MH i2c: E2 17 00 4A 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2F [16:42:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:42:29]wFMCommunicate OK [16:42:29]requested_item fd.num is exist - process it [16:42:29]SAM_PROTO_GetFieldsCounters [16:42:29]wFMCommunicate request_size=4 [16:42:29]MH_SAM_APDU [16:42:29]CAPDU: 80 13 00 00 [16:42:29]Write to MH i2c: E2 08 00 4B 19 80 13 00 00 00 00 00 00 E0 [16:42:29]Write i2c OK [16:42:29]MH_I2C_Read... [16:42:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:42:29]Read from MH i2c: E2 [16:42:29]MH_I2C_Read... [16:42:29]Read from MH i2c: E2 62 00 [16:42:29]MH_I2C_Read... [16:42:29]Read from MH i2c: E2 62 00 4B 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3B 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 52 [16:42:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3B 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:42:29]wFMCommunicate OK [16:42:29]SAM_PROTO_GetFieldsCounters done [16:42:29]requested_item shift.num is exist - process it [16:42:29]requested_item shift.opened is exist - process it [16:42:29]req_shift_opened [16:42:29]FM_GetShiftState [16:42:29]SAM_PROTO_GetShiftState [16:42:29]wFMCommunicate request_size=4 [16:42:29]MH_SAM_APDU [16:42:29]CAPDU: 80 13 01 00 [16:42:29]Write to MH i2c: E2 08 00 4C 19 80 13 01 00 00 00 00 00 E2 [16:42:29]Write i2c OK [16:42:29]MH_I2C_Read... [16:42:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:29]Read from MH i2c: E2 [16:42:29]MH_I2C_Read... [16:42:29]Read from MH i2c: E2 0E 00 [16:42:29]MH_I2C_Read... [16:42:29]Read from MH i2c: E2 0E 00 4C 19 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 E8 [16:42:29]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:42:29]wFMCommunicate OK [16:42:29]SAM_PROTO_GetShiftState done [16:42:29]FM_GetShiftState done [16:42:29]req_shift_opened done [16:42:29]requested_item shift.open_date is exist - process it [16:42:29]req_shift_open_date [16:42:29]req_shift_open_date done [16:42:29]produce_requested_data done [16:42:29]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69435,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [16:42:29]process_action_free close_receipt [16:42:29]json_value_free [16:42:29]json_value_free done [16:42:29]process_json_proto returns [16:42:29]Send response to host [16:42:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69435,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [16:42:29]free response buf [16:42:29]execute_script done [16:42:29]execute_script returns [16:42:29]free content buf [16:42:29]Sock 10.Close socket [16:42:29]Sock 10.Thread stoped [16:42:33]OFD Sender: No OFD packet to send [16:42:34]accept exits with 8 [16:42:34]New connection [16:42:34]New thread 3066711396 created [16:42:34]Thread 3066568036 joined [16:42:34]Waiting for new connection... [16:42:34] Sock 8.Parse request [16:42:34]Sock 8.Check first char [16:42:34]Sock 8.First char is OK [16:42:34]request: POST /json_proto HTTP/1.0 [16:42:34]Method: POST [16:42:34]URL: /json_proto [16:42:34]Method is POST - this is cgi request [16:42:34]url: /json_proto [16:42:34]query_string will be loaded in cgi processing [16:42:34]execute_cgi json_proto POST (null) [16:42:34]execute_cgi path=json_proto method=POST [16:42:34]POST find Content-Length [16:42:34]Host: 172.17.50.3:8080 [16:42:34]Content-Length: 755 [16:42:34]Content-Type: application/json [16:42:34] [16:42:34]POST finish read [16:42:34]Found Content-Length = 755 [16:42:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100970", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:34]execute_script... [16:42:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100970", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:34]POST & json_proto [16:42:34]process_json_proto [16:42:34]json parsed OK: [16:42:34]protocol is kg_v1.0 [16:42:34]action value=close_receipt [16:42:34]process_action close_receipt [16:42:34]cmd_close_receipt [16:42:34]MH_GetDate [16:42:34]Write to MH i2c: F0 00 00 4D 19 55 [16:42:34]Write i2c OK [16:42:34]MH_I2C_Read... [16:42:34]Read from MH i2c: F0 [16:42:34]MH_I2C_Read... [16:42:34]Read from MH i2c: F0 09 00 [16:42:34]MH_I2C_Read... [16:42:34]Read from MH i2c: F0 09 00 4D 19 00 FB 32 15 67 6B 98 1E 66 8E [16:42:34]GetLastDocTimeStamp 1729442546 [16:42:34]current date 1729442555 [16:42:34]FM_GetShiftState [16:42:34]SAM_PROTO_GetShiftState [16:42:34]wFMCommunicate request_size=4 [16:42:34]MH_SAM_APDU [16:42:34]CAPDU: 80 13 01 00 [16:42:34]Write to MH i2c: E2 08 00 4E 19 80 13 01 00 00 00 00 00 E4 [16:42:34]Write i2c OK [16:42:34]MH_I2C_Read... [16:42:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:34]Read from MH i2c: E2 [16:42:34]MH_I2C_Read... [16:42:34]Read from MH i2c: E2 0E 00 [16:42:34]MH_I2C_Read... [16:42:34]Read from MH i2c: E2 0E 00 4E 19 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 EA [16:42:34]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:42:34]wFMCommunicate OK [16:42:34]SAM_PROTO_GetShiftState done [16:42:34]FM_GetShiftState done [16:42:34]opened in 1729383220 [16:42:34]opened+sec_in_day 1729469620 [16:42:34]quantity*price = 0 [16:42:34]sum+1 = 1 [16:42:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 281 20.10.2024 16:42 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30100970 ФМ: 0000000000963346 ФД: 69436 ФПД: 119731822335262 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T164235&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69436&fm=119731822335262&tin=02508201610067®Number=0000000000156251&sum=0 [16:42:35]StoreToDocumentArchive [16:42:35]shift 193 fd 69436 [16:42:35]save to /storage/0193/doc_00069436 [16:42:35]save last doc name /storage/0193/doc_00069436 to /storage/kkm_last_doc_name [16:42:35]save OK [16:42:35]Clear old archive folders... [16:42:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:42:35]tlvbuf is 002B1910 [16:42:35]SAM_PROTO_ClearQueue [16:42:35]wFMCommunicate request_size=4 [16:42:35]MH_SAM_APDU [16:42:35]CAPDU: 80 09 00 00 [16:42:35]Write to MH i2c: E2 08 00 5B 19 80 09 00 00 00 00 00 00 E6 [16:42:35]Write i2c OK [16:42:35]MH_I2C_Read... [16:42:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:42:35]Read from MH i2c: E2 [16:42:35]MH_I2C_Read... [16:42:35]Read from MH i2c: E2 03 00 [16:42:35]MH_I2C_Read... [16:42:35]Read from MH i2c: E2 03 00 5B 19 00 90 00 E8 [16:42:35]RAPDU: 90 00 [16:42:35]wFMCommunicate OK [16:42:35]SAM_PROTO_ClearQueue done [16:42:35]KKMCreateOFDPacket [16:42:35]OFDProtocolAddRootSTLVToBuf [16:42:35]FM_MakeSignedData [16:42:35]FM_MakeSignedData [16:42:35]SAM_PROTO_SignData [16:42:35]wFMCommunicate request_size=4 [16:42:35]MH_SAM_APDU [16:42:35]CAPDU: 80 0D 01 02 [16:42:35]Write to MH i2c: E2 08 00 5C 19 80 0D 01 02 00 00 00 00 EE [16:42:35]Write i2c OK [16:42:35]MH_I2C_Read... [16:42:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:42:35]Read from MH i2c: E2 [16:42:35]MH_I2C_Read... [16:42:35]Read from MH i2c: E2 03 00 [16:42:35]MH_I2C_Read... [16:42:35]Read from MH i2c: E2 03 00 5C 19 00 90 00 E9 [16:42:35]RAPDU: 90 00 [16:42:35]wFMCommunicate OK [16:42:35]wFMCommunicate request_size=255 [16:42:35]MH_SAM_APDU [16:42: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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 FB 32 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3C 0F 01 00 35 04 06 00 6C [16:42:35]Write to MH i2c: E2 02 01 5D 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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 FB 32 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3C 0F 01 00 35 04 06 00 6C 00 00 CE [16:42:35]Write i2c OK [16:42:35]MH_I2C_Read... [16:42:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:36]Read from MH i2c: E2 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: E2 03 00 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: E2 03 00 5D 19 00 90 00 EA [16:42:36]RAPDU: 90 00 [16:42:36]wFMCommunicate OK [16:42:36]wFMCommunicate request_size=10 [16:42:36]MH_SAM_APDU [16:42:36]CAPDU: 80 0D 02 02 05 E5 3C BD 15 1E [16:42:36]Write to MH i2c: E2 0D 00 5E 19 80 0D 02 02 05 00 E5 3C BD 15 1E 00 00 0C [16:42:36]Write i2c OK [16:42:36]MH_I2C_Read... [16:42:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:36]Read from MH i2c: E2 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: E2 03 00 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: E2 03 00 5E 19 00 90 00 EB [16:42:36]RAPDU: 90 00 [16:42:36]wFMCommunicate OK [16:42:36]wFMCommunicate request_size=4 [16:42:36]MH_SAM_APDU [16:42:36]CAPDU: 80 0D 03 02 [16:42:36]Write to MH i2c: E2 08 00 5F 19 80 0D 03 02 00 00 00 00 F3 [16:42:36]Write i2c OK [16:42:36]MH_I2C_Read... [16:42:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:42:36]Read from MH i2c: E2 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: E2 0B 00 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: E2 0B 00 5F 19 00 22 0D 09 C4 37 3E 88 D4 90 00 C1 [16:42:36]RAPDU: 22 0D 09 C4 37 3E 88 D4 90 00 [16:42:36]wFMCommunicate OK [16:42:36]SAM_PROTO_SignData done [16:42:36]FM_MakeSignedData done [16:42:36]CreateOFDProtocolMessage [16:42:36]wFMCommunicate request_size=4 [16:42:36]MH_SAM_APDU [16:42:36]CAPDU: 80 11 00 00 [16:42:36]Write to MH i2c: E2 08 00 60 19 80 11 00 00 00 00 00 00 F3 [16:42:36]Write i2c OK [16:42:36]MH_I2C_Read... [16:42:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:36]Read from MH i2c: E2 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: E2 17 00 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: E2 17 00 60 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 45 [16:42:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:42:36]wFMCommunicate OK [16:42:36]CreateOFDProtocolMessage done [16:42:36]OFDSenderStorePacket 69436 [16:42:36]StoreOFDPacket docnum=69436 [16:42:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 06 C7 07 01 BA E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 FB 32 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3C 0F 01 00 35 04 06 00 6C E5 3C BD 15 1E 22 0D 09 C4 37 3E 88 D4 [16:42:36]CheckFolder [16:42:36]dirname=/storage/ofd_packets [16:42:36]CheckFolder done [16:42:36]ProducePacketName [16:42:36]name=ofd_packets/00069436 [16:42:36]NVStorageSaveData ofd_packets/00069436 [16:42:36]File name is /storage/ofd_packets/00069436 [16:42:36]Write 301 bytes [16:42:36]NVStorageSaveData done [16:42:36]OFDSenderStorePacket done [16:42:36]KKMCreateOFDPacket done [16:42:36]NVStorageSaveData kkm_last_timestamp [16:42:36]File name is /storage/kkm_last_timestamp [16:42:36]Write 4 bytes [16:42:36]NVStorageSaveData done [16:42:36]ExternCall_PrintAddStr [16:42:36]wPrintStart [16:42:36]Write to MH i2c: 01 00 00 61 19 7A [16:42:36]Write i2c OK [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: 01 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: 01 07 00 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: 01 07 00 61 19 00 00 00 00 00 FF 0F 8F [16:42:36]RasterBufferAndPrint [16:42:36]line Счет N : (1)2885164 [16:42:36]line ИНН: 02508201610067 [16:42:36]line Контрольно-Кассовый Чек [16:42:36]line ПРОДАЖА [16:42:36]line ТРК (МРК, ГНК) : 12 [16:42:36]line Товар: 2710124130 [16:42:36]line Аи-92-К-5 [16:42:36]line 14.950 * 0.00 [16:42:36]line = 0.00 [16:42:36]line НДС 12% НСП 1% [16:42:36]line > о реализуемом товаре [16:42:36]line ИТОГО: 0.00 [16:42:36]line НСП 1% : 0.00 [16:42:36]line НДС 12% : 0.00 [16:42:36]line Наличными: 0.00 [16:42:36]line Безнал.: 0.00 [16:42:36]line Место: АЗС № 85 "Партнер Нефть" [16:42:36]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:42:36]line СНО: Общий режим [16:42:36]line Чек 281 20.10.2024 16:42 [16:42:36]line Смена: 193 ФФД: 1.0 [16:42:36]line ЗНМ: 0300000167 [16:42:36]line РНМ: 0000000000156251 [16:42:36]line Версия ККМ: v1.0 [16:42:36]line Талоны: ТК ГПНА Online [16:42:36]line 30100970 [16:42:36]line ФМ: 0000000000963346 [16:42:36]line ФД: 69436 [16:42:36]line ФПД: 119731822335262 [16:42:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T164235&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69436&fm=119731822335262&tin=02508201610067®Number=0000000000156251&sum=0 [16:42:36]OFD Sender: Processing packet 69436 [packets to send 18, broken 17] [16:42:36]ProducePacketName [16:42:36]name=ofd_packets/00069436 [16:42:36]OFD Sender: To server: pG, [16:42:36]CommunicateWithHost lk.salyk.kg:30040 [16:42:36]ConnectInit lk.salyk.kg [16:42:36]written 0, free lines is 4095 [16:42:36]Connected sock=10 [16:42:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 06 C7 07 01 BA E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 FB 32 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3C 0F 01 00 35 04 06 00 6C E5 3C BD 15 1E 22 0D 09 C4 37 3E 88 D4 [16:42:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 CC F1 47 00 43 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3C 0F 01 00 F4 03 04 00 A1 DC 14 67 B6 04 01 00 00 1B 2C FC 84 BF 64 18 79 [16:42:36]CommunicateWithHost err = 0 [16:42:36]CheckOFDResponse [16:42:36]1017 (14) - 77093643461234 [16:42:36]1041 (16) - 0000000000963346 [16:42:36]1040 (4) - 69436 [16:42:36]1012 (4) - 20.10.2024 10:34 [16:42:36]1206 (1) - 0 [16:42:36]OFD Sender: Remove packet 69436 [16:42:36]ProducePacketName [16:42:36]name=ofd_packets/00069436 [16:42:36]NVStorageDeleteData [16:42:36]Write to MH i2c: 01 00 00 8B 19 A4 [16:42:36]Write i2c OK [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: 01 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: 01 07 00 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: 01 07 00 8B 19 00 00 00 00 00 0C 0D C4 [16:42:36]RasterBufferAndPrint [16:42:36]line [16:42:36]line [16:42:36]line [16:42:36]line [16:42:36]line [16:42:36]written 0, free lines is 3352 [16:42:36]MH_Cut [16:42:36]Write to MH i2c: D1 01 00 92 19 01 7D [16:42:37]Write i2c OK [16:42:37]MH_I2C_Read... [16:42:37]Read from MH i2c: D1 [16:42:37]MH_I2C_Read... [16:42:37]Read from MH i2c: D1 01 00 [16:42:37]MH_I2C_Read... [16:42:37]Read from MH i2c: D1 01 00 92 19 00 7C [16:42:37]Write to MH i2c: 01 00 00 93 19 AC [16:42:37]Write i2c OK [16:42:37]MH_I2C_Read... [16:42:37]OFD Sender: No OFD packet to send [16:42:37]*** Cut start [16:42:37]*** Partial cut [16:42:37]*** CUTSNS_PIN = 1 [16:42:37]*** CUTSNS_PIN = 0 [16:42:37]*** Brake cut motor [16:42:38]Read from MH i2c: 01 [16:42:38]MH_I2C_Read... [16:42:38]*** Stop cut motor [16:42:38]*** Cut end [16:42:38]Read from MH i2c: 01 07 00 [16:42:38]MH_I2C_Read... [16:42:38]Read from MH i2c: 01 07 00 93 19 00 00 00 00 00 FF 0F C1 [16:42:38]process_action close_receipt done [16:42:38]requested_data is exist [16:42:38]produce_requested_data [16:42:38]requested_item fm.sn is exist - process it [16:42:38]wFMCommunicate request_size=4 [16:42:38]MH_SAM_APDU [16:42:38]CAPDU: 80 11 00 00 [16:42:38]Write to MH i2c: E2 08 00 94 19 80 11 00 00 00 00 00 00 27 [16:42:38]Write i2c OK [16:42:38]MH_I2C_Read... [16:42:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:38]Read from MH i2c: E2 [16:42:38]MH_I2C_Read... [16:42:38]Read from MH i2c: E2 17 00 [16:42:38]MH_I2C_Read... [16:42:38]Read from MH i2c: E2 17 00 94 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 79 [16:42:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:42:38]wFMCommunicate OK [16:42:38]requested_item fd.num is exist - process it [16:42:38]SAM_PROTO_GetFieldsCounters [16:42:38]wFMCommunicate request_size=4 [16:42:38]MH_SAM_APDU [16:42:38]CAPDU: 80 13 00 00 [16:42:38]Write to MH i2c: E2 08 00 95 19 80 13 00 00 00 00 00 00 2A [16:42:38]Write i2c OK [16:42:38]MH_I2C_Read... [16:42:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:42:38]Read from MH i2c: E2 [16:42:38]MH_I2C_Read... [16:42:38]Read from MH i2c: E2 62 00 [16:42:38]MH_I2C_Read... [16:42:38]Read from MH i2c: E2 62 00 95 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3C 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 A0 [16:42:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3C 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:42:38]wFMCommunicate OK [16:42:38]SAM_PROTO_GetFieldsCounters done [16:42:38]requested_item shift.num is exist - process it [16:42:38]requested_item shift.opened is exist - process it [16:42:38]req_shift_opened [16:42:38]FM_GetShiftState [16:42:38]SAM_PROTO_GetShiftState [16:42:38]wFMCommunicate request_size=4 [16:42:38]MH_SAM_APDU [16:42:38]CAPDU: 80 13 01 00 [16:42:38]Write to MH i2c: E2 08 00 96 19 80 13 01 00 00 00 00 00 2C [16:42:38]Write i2c OK [16:42:38]MH_I2C_Read... [16:42:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:38]Read from MH i2c: E2 [16:42:38]MH_I2C_Read... [16:42:38]Read from MH i2c: E2 0E 00 [16:42:38]MH_I2C_Read... [16:42:38]Read from MH i2c: E2 0E 00 96 19 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 32 [16:42:38]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:42:38]wFMCommunicate OK [16:42:38]SAM_PROTO_GetShiftState done [16:42:38]FM_GetShiftState done [16:42:38]req_shift_opened done [16:42:38]requested_item shift.open_date is exist - process it [16:42:38]req_shift_open_date [16:42:38]req_shift_open_date done [16:42:38]produce_requested_data done [16:42:38]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69436,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [16:42:38]process_action_free close_receipt [16:42:38]json_value_free [16:42:38]json_value_free done [16:42:38]process_json_proto returns [16:42:38]Send response to host [16:42:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69436,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [16:42:38]free response buf [16:42:38]execute_script done [16:42:38]execute_script returns [16:42:38]free content buf [16:42:38]Sock 8.Close socket [16:42:38]Sock 8.Thread stoped [16:42:42]OFD Sender: No OFD packet to send [16:42:47]OFD Sender: No OFD packet to send [16:42:52]OFD Sender: No OFD packet to send [16:42:57]OFD Sender: No OFD packet to send [16:43:02]OFD Sender: No OFD packet to send [16:43:07]OFD Sender: No OFD packet to send [16:43:12]OFD Sender: No OFD packet to send [16:43:17]OFD Sender: No OFD packet to send [16:43:22]OFD Sender: No OFD packet to send [16:43:27]OFD Sender: No OFD packet to send [16:43:32]OFD Sender: No OFD packet to send [16:43:37]OFD Sender: No OFD packet to send [16:43:42]OFD Sender: No OFD packet to send [16:43:47]OFD Sender: No OFD packet to send [16:43:52]OFD Sender: No OFD packet to send [16:43:57]OFD Sender: No OFD packet to send [16:44:02]OFD Sender: No OFD packet to send [16:44:07]OFD Sender: No OFD packet to send [16:44:12]OFD Sender: No OFD packet to send [16:44:17]OFD Sender: No OFD packet to send [16:44:22]OFD Sender: No OFD packet to send [16:44:27]OFD Sender: No OFD packet to send [16:44:32]OFD Sender: No OFD packet to send [16:44:37]OFD Sender: No OFD packet to send [16:44:42]OFD Sender: No OFD packet to send [16:44:47]OFD Sender: No OFD packet to send [16:44:52]OFD Sender: No OFD packet to send [16:44:57]OFD Sender: No OFD packet to send [16:45:02]OFD Sender: No OFD packet to send [16:45:07]OFD Sender: No OFD packet to send [16:45:12]OFD Sender: No OFD packet to send [16:45:17]OFD Sender: No OFD packet to send [16:45:22]OFD Sender: No OFD packet to send [16:45:27]OFD Sender: No OFD packet to send [16:45:32]OFD Sender: No OFD packet to send [16:45:37]OFD Sender: No OFD packet to send [16:45:42]OFD Sender: No OFD packet to send [16:45:47]OFD Sender: No OFD packet to send [16:45:52]OFD Sender: No OFD packet to send [16:45:57]OFD Sender: No OFD packet to send [16:46:02]OFD Sender: No OFD packet to send [16:46:07]OFD Sender: No OFD packet to send [16:46:12]OFD Sender: No OFD packet to send [16:46:17]OFD Sender: No OFD packet to send [16:46:22]OFD Sender: No OFD packet to send [16:46:27]OFD Sender: No OFD packet to send [16:46:32]OFD Sender: No OFD packet to send [16:46:37]OFD Sender: No OFD packet to send [16:46:42]OFD Sender: No OFD packet to send [16:46:47]OFD Sender: No OFD packet to send [16:46:52]OFD Sender: No OFD packet to send [16:46:57]OFD Sender: No OFD packet to send [16:47:02]OFD Sender: No OFD packet to send [16:47:07]OFD Sender: No OFD packet to send [16:47:12]OFD Sender: No OFD packet to send [16:47:17]OFD Sender: No OFD packet to send [16:47:22]OFD Sender: No OFD packet to send [16:47:27]OFD Sender: No OFD packet to send [16:47:32]OFD Sender: No OFD packet to send [16:47:37]OFD Sender: No OFD packet to send [16:47:42]OFD Sender: No OFD packet to send [16:47:47]OFD Sender: No OFD packet to send [16:47:52]OFD Sender: No OFD packet to send [16:47:54]accept exits with 9 [16:47:54]New connection [16:47:54]New thread 3066568036 created [16:47:54]Thread 3066711396 joined [16:47:54]Waiting for new connection... [16:47:54] Sock 9.Parse request [16:47:54]Sock 9.Check first char [16:47:54]Sock 9.First char is OK [16:47:54]request: POST /json_proto HTTP/1.0 [16:47:54]Method: POST [16:47:54]URL: /json_proto [16:47:54]Method is POST - this is cgi request [16:47:54]url: /json_proto [16:47:54]query_string will be loaded in cgi processing [16:47:54]execute_cgi json_proto POST (null) [16:47:54]execute_cgi path=json_proto method=POST [16:47:54]POST find Content-Length [16:47:54]Host: 172.17.50.3:8080 [16:47:54]Content-Length: 680 [16:47:54]Content-Type: application/json [16:47:54] [16:47:54]POST finish read [16:47:54]Found Content-Length = 680 [16:47:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 23.630, "sum" : 1800.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:54]execute_script... [16:47: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)2885165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 23.630, "sum" : 1800.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:54]POST & json_proto [16:47:54]process_json_proto [16:47:54]json parsed OK: [16:47:54]protocol is kg_v1.0 [16:47:54]action value=close_receipt [16:47:54]process_action close_receipt [16:47:54]cmd_close_receipt [16:47:54]MH_GetDate [16:47:54]Write to MH i2c: F0 00 00 97 19 9F [16:47:54]Write i2c OK [16:47:54]MH_I2C_Read... [16:47:54]Read from MH i2c: F0 [16:47:54]MH_I2C_Read... [16:47:54]Read from MH i2c: F0 09 00 [16:47:54]MH_I2C_Read... [16:47:54]Read from MH i2c: F0 09 00 97 19 00 3B 34 15 67 6B 98 1E 66 1A [16:47:54]GetLastDocTimeStamp 1729442555 [16:47:54]current date 1729442875 [16:47:54]FM_GetShiftState [16:47:54]SAM_PROTO_GetShiftState [16:47:54]wFMCommunicate request_size=4 [16:47:54]MH_SAM_APDU [16:47:54]CAPDU: 80 13 01 00 [16:47:54]Write to MH i2c: E2 08 00 98 19 80 13 01 00 00 00 00 00 2E [16:47:54]Write i2c OK [16:47:54]MH_I2C_Read... [16:47:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:54]Read from MH i2c: E2 [16:47:54]MH_I2C_Read... [16:47:54]Read from MH i2c: E2 0E 00 [16:47:54]MH_I2C_Read... [16:47:54]Read from MH i2c: E2 0E 00 98 19 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 34 [16:47:54]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:47:54]wFMCommunicate OK [16:47:54]SAM_PROTO_GetShiftState done [16:47:54]FM_GetShiftState done [16:47:54]opened in 1729383220 [16:47:54]opened+sec_in_day 1729469620 [16:47:54]quantity*price = 180060 [16:47:54]sum+1 = 180062 [16:47:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1800.00 Внесено: 1800.00 СДАЧА: 0.00 НСП 1% : 15.93 НДС 12% : 191.21 Наличными: 1800.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 282 20.10.2024 16:47 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69437 ФПД: 279307112933714 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T164755&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69437&fm=279307112933714&tin=02508201610067®Number=0000000000156251&sum=180000 [16:47:56]StoreToDocumentArchive [16:47:56]shift 193 fd 69437 [16:47:56]save to /storage/0193/doc_00069437 [16:47:56]save last doc name /storage/0193/doc_00069437 to /storage/kkm_last_doc_name [16:47:56]save OK [16:47:56]Clear old archive folders... [16:47:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:47:56]tlvbuf is 002D8C20 [16:47:56]SAM_PROTO_ClearQueue [16:47:56]wFMCommunicate request_size=4 [16:47:56]MH_SAM_APDU [16:47:56]CAPDU: 80 09 00 00 [16:47:56]Write to MH i2c: E2 08 00 A5 19 80 09 00 00 00 00 00 00 30 [16:47:56]Write i2c OK [16:47:56]MH_I2C_Read... [16:47:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:47:56]Read from MH i2c: E2 [16:47:56]MH_I2C_Read... [16:47:56]Read from MH i2c: E2 03 00 [16:47:56]MH_I2C_Read... [16:47:56]Read from MH i2c: E2 03 00 A5 19 00 90 00 32 [16:47:56]RAPDU: 90 00 [16:47:56]wFMCommunicate OK [16:47:56]SAM_PROTO_ClearQueue done [16:47:56]KKMCreateOFDPacket [16:47:56]OFDProtocolAddRootSTLVToBuf [16:47:56]FM_MakeSignedData [16:47:56]FM_MakeSignedData [16:47:56]SAM_PROTO_SignData [16:47:56]wFMCommunicate request_size=4 [16:47:56]MH_SAM_APDU [16:47:56]CAPDU: 80 0D 01 02 [16:47:56]Write to MH i2c: E2 08 00 A6 19 80 0D 01 02 00 00 00 00 38 [16:47:56]Write i2c OK [16:47:56]MH_I2C_Read... [16:47:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:47:56]Read from MH i2c: E2 [16:47:56]MH_I2C_Read... [16:47:56]Read from MH i2c: E2 03 00 [16:47:56]MH_I2C_Read... [16:47:56]Read from MH i2c: E2 03 00 A6 19 00 90 00 33 [16:47:56]RAPDU: 90 00 [16:47:56]wFMCommunicate OK [16:47:56]wFMCommunicate request_size=255 [16:47:56]MH_SAM_APDU [16:47:56]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 3B 34 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3D 0F 01 00 35 04 06 00 FE 07 41 3F [16:47:56]Write to MH i2c: E2 02 01 A7 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 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 3B 34 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3D 0F 01 00 35 04 06 00 FE 07 41 3F 00 00 CD [16:47:56]Write i2c OK [16:47:56]MH_I2C_Read... [16:47:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:56]Read from MH i2c: E2 [16:47:56]MH_I2C_Read... [16:47:56]Read from MH i2c: E2 03 00 [16:47:56]MH_I2C_Read... [16:47:56]Read from MH i2c: E2 03 00 A7 19 00 90 00 34 [16:47:56]RAPDU: 90 00 [16:47:56]wFMCommunicate OK [16:47:56]wFMCommunicate request_size=7 [16:47:56]MH_SAM_APDU [16:47:56]CAPDU: 80 0D 02 02 02 E9 52 [16:47:56]Write to MH i2c: E2 0A 00 A8 19 80 0D 02 02 02 00 E9 52 00 00 7A [16:47:56]Write i2c OK [16:47:56]MH_I2C_Read... [16:47:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:56]Read from MH i2c: E2 [16:47:56]MH_I2C_Read... [16:47:56]Read from MH i2c: E2 03 00 [16:47:56]MH_I2C_Read... [16:47:56]Read from MH i2c: E2 03 00 A8 19 00 90 00 35 [16:47:56]RAPDU: 90 00 [16:47:56]wFMCommunicate OK [16:47:56]wFMCommunicate request_size=4 [16:47:56]MH_SAM_APDU [16:47:56]CAPDU: 80 0D 03 02 [16:47:56]Write to MH i2c: E2 08 00 A9 19 80 0D 03 02 00 00 00 00 3D [16:47:56]Write i2c OK [16:47:56]MH_I2C_Read... [16:47:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:47:56]Read from MH i2c: E2 [16:47:56]MH_I2C_Read... [16:47:56]Read from MH i2c: E2 0B 00 [16:47:56]MH_I2C_Read... [16:47:56]Read from MH i2c: E2 0B 00 A9 19 00 DF 66 E5 61 EF 7C AA B7 90 00 95 [16:47:56]RAPDU: DF 66 E5 61 EF 7C AA B7 90 00 [16:47:56]wFMCommunicate OK [16:47:56]SAM_PROTO_SignData done [16:47:56]FM_MakeSignedData done [16:47:56]CreateOFDProtocolMessage [16:47:56]wFMCommunicate request_size=4 [16:47:56]MH_SAM_APDU [16:47:56]CAPDU: 80 11 00 00 [16:47:56]Write to MH i2c: E2 08 00 AA 19 80 11 00 00 00 00 00 00 3D [16:47:56]Write i2c OK [16:47:56]MH_I2C_Read... [16:47:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:56]Read from MH i2c: E2 [16:47:56]MH_I2C_Read... [16:47:56]Read from MH i2c: E2 17 00 [16:47:56]MH_I2C_Read... [16:47:56]Read from MH i2c: E2 17 00 AA 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8F [16:47:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:47:56]wFMCommunicate OK [16:47:56]CreateOFDProtocolMessage done [16:47:56]OFDSenderStorePacket 69437 [16:47:56]StoreOFDPacket docnum=69437 [16:47:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 80 B2 04 01 B4 73 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 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 3B 34 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3D 0F 01 00 35 04 06 00 FE 07 41 3F E9 52 DF 66 E5 61 EF 7C AA B7 [16:47:56]CheckFolder [16:47:56]dirname=/storage/ofd_packets [16:47:56]CheckFolder done [16:47:56]ProducePacketName [16:47:56]name=ofd_packets/00069437 [16:47:56]NVStorageSaveData ofd_packets/00069437 [16:47:56]File name is /storage/ofd_packets/00069437 [16:47:56]Write 298 bytes [16:47:56]NVStorageSaveData done [16:47:56]OFDSenderStorePacket done [16:47:56]KKMCreateOFDPacket done [16:47:56]NVStorageSaveData kkm_last_timestamp [16:47:56]File name is /storage/kkm_last_timestamp [16:47:56]Write 4 bytes [16:47:56]NVStorageSaveData done [16:47:56]ExternCall_PrintAddStr [16:47:56]wPrintStart [16:47:56]Write to MH i2c: 01 00 00 AB 19 C4 [16:47:56]Write i2c OK [16:47:56]MH_I2C_Read... [16:47:56]Read from MH i2c: 01 [16:47:56]MH_I2C_Read... [16:47:56]Read from MH i2c: 01 07 00 [16:47:56]MH_I2C_Read... [16:47:56]Read from MH i2c: 01 07 00 AB 19 00 00 00 00 00 FF 0F D9 [16:47:56]RasterBufferAndPrint [16:47:56]line Счет N : (1)2885165 [16:47:56]line ИНН: 02508201610067 [16:47:56]line Контрольно-Кассовый Чек [16:47:56]line ПРОДАЖА [16:47:56]line ТРК (МРК, ГНК) : 51 [16:47:56]line Товар: 2710194210 [16:47:56]line ДТ-К-5 [16:47:56]line 23.630 * 76.20 [16:47:56]line = 1800.61 [16:47:56]line НДС 12% НСП 1% [16:47:56]line > о реализуемом товаре [16:47:56]line ОКРУГЛЕНИЕ: -0.61 [16:47:56]line ИТОГО: 1800.00 [16:47:56]line Внесено: 1800.00 [16:47:56]line СДАЧА: 0.00 [16:47:56]line НСП 1% : 15.93 [16:47:56]line НДС 12% : 191.21 [16:47:56]line Наличными: 1800.00 [16:47:56]line Безнал.: 0.00 [16:47:56]line Место: АЗС № 85 "Партнер Нефть" [16:47:56]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:47:56]line СНО: Общий режим [16:47:56]line Чек 282 20.10.2024 16:47 [16:47:56]line Смена: 193 ФФД: 1.0 [16:47:56]line ЗНМ: 0300000167 [16:47:56]line РНМ: 0000000000156251 [16:47:56]line Версия ККМ: v1.0 [16:47:56]line ФМ: 0000000000963346 [16:47:56]line ФД: 69437 [16:47:56]line ФПД: 279307112933714 [16:47:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T164755&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69437&fm=279307112933714&tin=02508201610067®Number=0000000000156251&sum=180000 [16:47:56]OFD Sender: Processing packet 69437 [packets to send 18, broken 17] [16:47:56]ProducePacketName [16:47:56]name=ofd_packets/00069437 [16:47:56]OFD Sender: To server: pG, [16:47:56]CommunicateWithHost lk.salyk.kg:30040 [16:47:56]ConnectInit lk.salyk.kg [16:47:56]written 0, free lines is 4095 [16:47:57]Connected sock=8 [16:47:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 80 B2 04 01 B4 73 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 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 3B 34 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3D 0F 01 00 35 04 06 00 FE 07 41 3F E9 52 DF 66 E5 61 EF 7C AA B7 [16:47:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 D7 07 47 00 19 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3D 0F 01 00 F4 03 04 00 E2 DD 14 67 B6 04 01 00 00 C9 32 50 0D 7D 0F B4 40 [16:47:57]CommunicateWithHost err = 0 [16:47:57]CheckOFDResponse [16:47:57]1017 (14) - 77093643461234 [16:47:57]1041 (16) - 0000000000963346 [16:47:57]1040 (4) - 69437 [16:47:57]1012 (4) - 20.10.2024 10:39 [16:47:57]1206 (1) - 0 [16:47:57]OFD Sender: Remove packet 69437 [16:47:57]ProducePacketName [16:47:57]name=ofd_packets/00069437 [16:47:57]NVStorageDeleteData [16:47:57]Write to MH i2c: 01 00 00 D6 19 EF [16:47:57]Write i2c OK [16:47:57]MH_I2C_Read... [16:47:57]Read from MH i2c: 01 [16:47:57]MH_I2C_Read... [16:47:57]Read from MH i2c: 01 07 00 [16:47:57]MH_I2C_Read... [16:47:57]Read from MH i2c: 01 07 00 D6 19 00 00 00 00 00 F0 0C F2 [16:47:57]RasterBufferAndPrint [16:47:57]line [16:47:57]line [16:47:57]line [16:47:57]line [16:47:57]line [16:47:57]written 0, free lines is 3318 [16:47:57]MH_Cut [16:47:57]Write to MH i2c: D1 01 00 DD 19 01 C8 [16:47:57]Write i2c OK [16:47:57]MH_I2C_Read... [16:47:57]Read from MH i2c: D1 [16:47:57]MH_I2C_Read... [16:47:57]Read from MH i2c: D1 01 00 [16:47:57]MH_I2C_Read... [16:47:57]Read from MH i2c: D1 01 00 DD 19 00 C7 [16:47:57]Write to MH i2c: 01 00 00 DE 19 F7 [16:47:57]Write i2c OK [16:47:57]MH_I2C_Read... [16:47:57]int [16:47:57]*** FLAG_PRN_PAP2 set [16:47:57]*** Cut start [16:47:57]*** Partial cut [16:47:57]*** CUTSNS_PIN = 1 [16:47:57]*** CUTSNS_PIN = 0 [16:47:57]*** Brake cut motor [16:47:57]OFD Sender: No OFD packet to send [16:47:58]Read from MH i2c: 01 [16:47:58]MH_I2C_Read... [16:47:58]*** Stop cut motor [16:47:58]*** Cut end [16:47:58]Read from MH i2c: 01 07 00 [16:47:58]MH_I2C_Read... [16:47:58]Read from MH i2c: 01 07 00 DE 19 00 02 00 00 00 FF 0F 0E [16:47:58]process_action close_receipt done [16:47:58]requested_data is exist [16:47:58]produce_requested_data [16:47:58]requested_item fm.sn is exist - process it [16:47:58]wFMCommunicate request_size=4 [16:47:58]MH_SAM_APDU [16:47:58]CAPDU: 80 11 00 00 [16:47:58]Write to MH i2c: E2 08 00 DF 19 80 11 00 00 00 00 00 00 72 [16:47:58]Write i2c OK [16:47:58]MH_I2C_Read... [16:47:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:58]Read from MH i2c: E2 [16:47:58]MH_I2C_Read... [16:47:58]Read from MH i2c: E2 17 00 [16:47:58]MH_I2C_Read... [16:47:58]Read from MH i2c: E2 17 00 DF 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C4 [16:47:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:47:58]wFMCommunicate OK [16:47:58]requested_item fd.num is exist - process it [16:47:58]SAM_PROTO_GetFieldsCounters [16:47:58]wFMCommunicate request_size=4 [16:47:58]MH_SAM_APDU [16:47:58]CAPDU: 80 13 00 00 [16:47:58]Write to MH i2c: E2 08 00 E0 19 80 13 00 00 00 00 00 00 75 [16:47:58]Write i2c OK [16:47:58]MH_I2C_Read... [16:47:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:58]Read from MH i2c: E2 [16:47:58]MH_I2C_Read... [16:47:58]Read from MH i2c: E2 62 00 [16:47:58]MH_I2C_Read... [16:47:58]Read from MH i2c: E2 62 00 E0 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3D 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 EF [16:47:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3D 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:47:58]wFMCommunicate OK [16:47:58]SAM_PROTO_GetFieldsCounters done [16:47:58]requested_item shift.num is exist - process it [16:47:58]requested_item shift.opened is exist - process it [16:47:58]req_shift_opened [16:47:58]FM_GetShiftState [16:47:58]SAM_PROTO_GetShiftState [16:47:58]wFMCommunicate request_size=4 [16:47:58]MH_SAM_APDU [16:47:58]CAPDU: 80 13 01 00 [16:47:58]Write to MH i2c: 01 00 00 E1 19 FA [16:47:58]Write i2c OK [16:47:58]MH_I2C_Read... [16:47:58]Read from MH i2c: 01 [16:47:58]MH_I2C_Read... [16:47:58]Read from MH i2c: 01 07 00 [16:47:58]MH_I2C_Read... [16:47:58]Read from MH i2c: 01 07 00 E1 19 00 02 00 00 00 FF 0F 11 [16:47:58]state=0 [16:47:58]Cover opened [16:47:58]Write to MH i2c: E2 08 00 E2 19 80 13 01 00 00 00 00 00 78 [16:47:58]Write i2c OK [16:47:58]MH_I2C_Read... [16:47:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:58]Read from MH i2c: E2 [16:47:58]MH_I2C_Read... [16:47:58]Read from MH i2c: E2 0E 00 [16:47:58]MH_I2C_Read... [16:47:58]Read from MH i2c: E2 0E 00 E2 19 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 7E [16:47:58]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:47:58]wFMCommunicate OK [16:47:58]SAM_PROTO_GetShiftState done [16:47:58]FM_GetShiftState done [16:47:58]req_shift_opened done [16:47:58]requested_item shift.open_date is exist - process it [16:47:58]req_shift_open_date [16:47:58]req_shift_open_date done [16:47:58]produce_requested_data done [16:47:58]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69437,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [16:47:58]process_action_free close_receipt [16:47:58]json_value_free [16:47:58]json_value_free done [16:47:58]process_json_proto returns [16:47:58]Send response to host [16:47:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69437,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [16:47:58]free response buf [16:47:58]execute_script done [16:47:58]execute_script returns [16:47:58]free content buf [16:47:58]Sock 9.Close socket [16:47:58]Sock 9.Thread stoped [16:48:02]OFD Sender: No OFD packet to send [16:48:03]Write to MH i2c: 01 00 00 E3 19 FC [16:48:03]Write i2c OK [16:48:03]MH_I2C_Read... [16:48:03]Read from MH i2c: 01 [16:48:03]MH_I2C_Read... [16:48:03]Read from MH i2c: 01 07 00 [16:48:03]MH_I2C_Read... [16:48:03]Read from MH i2c: 01 07 00 E3 19 00 02 00 00 00 FF 0F 13 [16:48:03]state=3 [16:48:03]Cover opened [16:48:07]OFD Sender: No OFD packet to send [16:48:08]Write to MH i2c: 01 00 00 E4 19 FD [16:48:08]Write i2c OK [16:48:08]MH_I2C_Read... [16:48:08]Read from MH i2c: 01 [16:48:08]MH_I2C_Read... [16:48:08]Read from MH i2c: 01 07 00 [16:48:08]MH_I2C_Read... [16:48:08]Read from MH i2c: 01 07 00 E4 19 00 02 00 00 00 FF 0F 14 [16:48:08]state=3 [16:48:08]Cover opened [16:48:12]OFD Sender: No OFD packet to send [16:48:13]Write to MH i2c: 01 00 00 E5 19 FE [16:48:13]Write i2c OK [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: 01 [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: 01 07 00 [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: 01 07 00 E5 19 00 02 00 00 00 FF 0F 15 [16:48:13]state=3 [16:48:13]Cover opened [16:48:17]OFD Sender: No OFD packet to send [16:48:18]Write to MH i2c: 01 00 00 E6 19 FF [16:48:18]Write i2c OK [16:48:18]MH_I2C_Read... [16:48:18]Read from MH i2c: 01 [16:48:18]MH_I2C_Read... [16:48:18]Read from MH i2c: 01 07 00 [16:48:18]MH_I2C_Read... [16:48:18]Read from MH i2c: 01 07 00 E6 19 00 02 00 00 00 FF 0F 16 [16:48:18]state=3 [16:48:18]Cover opened [16:48:22]OFD Sender: No OFD packet to send [16:48:23]Write to MH i2c: 01 00 00 E7 19 00 [16:48:23]Write i2c OK [16:48:23]MH_I2C_Read... [16:48:23]Read from MH i2c: 01 [16:48:23]MH_I2C_Read... [16:48:23]Read from MH i2c: 01 07 00 [16:48:23]MH_I2C_Read... [16:48:23]Read from MH i2c: 01 07 00 E7 19 00 02 00 00 00 FF 0F 17 [16:48:23]state=3 [16:48:23]Cover opened [16:48:27]OFD Sender: No OFD packet to send [16:48:28]Write to MH i2c: 01 00 00 E8 19 01 [16:48:28]Write i2c OK [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: 01 [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: 01 07 00 [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: 01 07 00 E8 19 00 02 00 00 00 FF 0F 18 [16:48:28]state=3 [16:48:28]Cover opened [16:48:32]OFD Sender: No OFD packet to send [16:48:33]Write to MH i2c: 01 00 00 E9 19 02 [16:48:33]Write i2c OK [16:48:33]MH_I2C_Read... [16:48:33]Read from MH i2c: 01 [16:48:33]MH_I2C_Read... [16:48:33]Read from MH i2c: 01 07 00 [16:48:33]MH_I2C_Read... [16:48:33]Read from MH i2c: 01 07 00 E9 19 00 02 00 00 00 FF 0F 19 [16:48:33]state=3 [16:48:33]Cover opened [16:48:37]OFD Sender: No OFD packet to send [16:48:38]Write to MH i2c: 01 00 00 EA 19 03 [16:48:38]Write i2c OK [16:48:38]MH_I2C_Read... [16:48:38]Read from MH i2c: 01 [16:48:38]MH_I2C_Read... [16:48:38]Read from MH i2c: 01 07 00 [16:48:38]MH_I2C_Read... [16:48:38]Read from MH i2c: 01 07 00 EA 19 00 02 00 00 00 FF 0F 1A [16:48:38]state=3 [16:48:38]Cover opened [16:48:42]OFD Sender: No OFD packet to send [16:48:43]Write to MH i2c: 01 00 00 EB 19 04 [16:48:43]Write i2c OK [16:48:43]MH_I2C_Read... [16:48:43]Read from MH i2c: 01 [16:48:43]MH_I2C_Read... [16:48:43]Read from MH i2c: 01 07 00 [16:48:43]MH_I2C_Read... [16:48:43]Read from MH i2c: 01 07 00 EB 19 00 02 00 00 00 FF 0F 1B [16:48:43]state=3 [16:48:43]Cover opened [16:48:47]OFD Sender: No OFD packet to send [16:48:48]Write to MH i2c: 01 00 00 EC 19 05 [16:48:48]Write i2c OK [16:48:48]MH_I2C_Read... [16:48:48]Read from MH i2c: 01 [16:48:48]MH_I2C_Read... [16:48:48]Read from MH i2c: 01 07 00 [16:48:48]MH_I2C_Read... [16:48:48]Read from MH i2c: 01 07 00 EC 19 00 02 00 00 00 FF 0F 1C [16:48:48]state=3 [16:48:48]Cover opened [16:48:52]OFD Sender: No OFD packet to send [16:48:53]Write to MH i2c: 01 00 00 ED 19 06 [16:48:53]Write i2c OK [16:48:53]MH_I2C_Read... [16:48:53]Read from MH i2c: 01 [16:48:53]MH_I2C_Read... [16:48:53]Read from MH i2c: 01 07 00 [16:48:53]MH_I2C_Read... [16:48:53]Read from MH i2c: 01 07 00 ED 19 00 02 00 00 00 FF 0F 1D [16:48:53]state=3 [16:48:53]Cover opened [16:48:57]OFD Sender: No OFD packet to send [16:48:58]Write to MH i2c: 01 00 00 EE 19 07 [16:48:58]Write i2c OK [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: 01 [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: 01 07 00 [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: 01 07 00 EE 19 00 02 00 00 00 FF 0F 1E [16:48:58]state=3 [16:48:58]Cover opened [16:49:02]OFD Sender: No OFD packet to send [16:49:03]Write to MH i2c: 01 00 00 EF 19 08 [16:49:03]Write i2c OK [16:49:03]MH_I2C_Read... [16:49:03]Read from MH i2c: 01 [16:49:03]MH_I2C_Read... [16:49:03]Read from MH i2c: 01 07 00 [16:49:03]MH_I2C_Read... [16:49:03]Read from MH i2c: 01 07 00 EF 19 00 02 00 00 00 FF 0F 1F [16:49:03]state=3 [16:49:03]Cover opened [16:49:07]OFD Sender: No OFD packet to send [16:49:08]Write to MH i2c: 01 00 00 F0 19 09 [16:49:08]Write i2c OK [16:49:08]MH_I2C_Read... [16:49:08]Read from MH i2c: 01 [16:49:08]MH_I2C_Read... [16:49:08]Read from MH i2c: 01 07 00 [16:49:08]MH_I2C_Read... [16:49:08]Read from MH i2c: 01 07 00 F0 19 00 02 00 00 00 FF 0F 20 [16:49:08]state=3 [16:49:08]Cover opened [16:49:12]OFD Sender: No OFD packet to send [16:49:13]Write to MH i2c: 01 00 00 F1 19 0A [16:49:13]Write i2c OK [16:49:13]MH_I2C_Read... [16:49:13]Read from MH i2c: 01 [16:49:13]MH_I2C_Read... [16:49:13]Read from MH i2c: 01 07 00 [16:49:13]MH_I2C_Read... [16:49:13]Read from MH i2c: 01 07 00 F1 19 00 02 00 00 00 FF 0F 21 [16:49:13]state=3 [16:49:13]Cover opened [16:49:17]OFD Sender: No OFD packet to send [16:49:18]Write to MH i2c: 01 00 00 F2 19 0B [16:49:18]Write i2c OK [16:49:18]MH_I2C_Read... [16:49:18]Read from MH i2c: 01 [16:49:18]MH_I2C_Read... [16:49:18]Read from MH i2c: 01 07 00 [16:49:18]MH_I2C_Read... [16:49:18]Read from MH i2c: 01 07 00 F2 19 00 02 00 00 00 FF 0F 22 [16:49:18]state=3 [16:49:18]Cover opened [16:49:22]OFD Sender: No OFD packet to send [16:49:23]Write to MH i2c: 01 00 00 F3 19 0C [16:49:23]Write i2c OK [16:49:23]MH_I2C_Read... [16:49:23]Read from MH i2c: 01 [16:49:23]MH_I2C_Read... [16:49:23]Read from MH i2c: 01 07 00 [16:49:23]MH_I2C_Read... [16:49:23]Read from MH i2c: 01 07 00 F3 19 00 02 00 00 00 FF 0F 23 [16:49:23]state=3 [16:49:23]Cover opened [16:49:27]OFD Sender: No OFD packet to send [16:49:28]Write to MH i2c: 01 00 00 F4 19 0D [16:49:28]Write i2c OK [16:49:28]MH_I2C_Read... [16:49:28]Read from MH i2c: 01 [16:49:28]MH_I2C_Read... [16:49:28]Read from MH i2c: 01 07 00 [16:49:28]MH_I2C_Read... [16:49:28]Read from MH i2c: 01 07 00 F4 19 00 02 00 00 00 FF 0F 24 [16:49:28]state=3 [16:49:28]Cover opened [16:49:32]OFD Sender: No OFD packet to send [16:49:33]Write to MH i2c: 01 00 00 F5 19 0E [16:49:33]Write i2c OK [16:49:33]MH_I2C_Read... [16:49:33]Read from MH i2c: 01 [16:49:33]MH_I2C_Read... [16:49:33]Read from MH i2c: 01 07 00 [16:49:33]MH_I2C_Read... [16:49:33]Read from MH i2c: 01 07 00 F5 19 00 02 00 00 00 FF 0F 25 [16:49:33]state=3 [16:49:33]Cover opened [16:49:37]OFD Sender: No OFD packet to send [16:49:38]Write to MH i2c: 01 00 00 F6 19 0F [16:49:38]Write i2c OK [16:49:38]MH_I2C_Read... [16:49:38]Read from MH i2c: 01 [16:49:38]MH_I2C_Read... [16:49:38]Read from MH i2c: 01 07 00 [16:49:38]MH_I2C_Read... [16:49:38]Read from MH i2c: 01 07 00 F6 19 00 02 00 00 00 FF 0F 26 [16:49:38]state=3 [16:49:38]Cover opened [16:49:42]OFD Sender: No OFD packet to send [16:49:43]Write to MH i2c: 01 00 00 F7 19 10 [16:49:43]Write i2c OK [16:49:43]MH_I2C_Read... [16:49:43]Read from MH i2c: 01 [16:49:43]MH_I2C_Read... [16:49:43]Read from MH i2c: 01 07 00 [16:49:43]MH_I2C_Read... [16:49:43]Read from MH i2c: 01 07 00 F7 19 00 02 00 00 00 FF 0F 27 [16:49:43]state=3 [16:49:43]Cover opened [16:49:47]OFD Sender: No OFD packet to send [16:49:48]Write to MH i2c: 01 00 00 F8 19 11 [16:49:48]Write i2c OK [16:49:48]MH_I2C_Read... [16:49:48]Read from MH i2c: 01 [16:49:48]MH_I2C_Read... [16:49:48]Read from MH i2c: 01 07 00 [16:49:48]MH_I2C_Read... [16:49:48]Read from MH i2c: 01 07 00 F8 19 00 02 00 00 00 FF 0F 28 [16:49:48]state=3 [16:49:48]Cover opened [16:49:52]OFD Sender: No OFD packet to send [16:49:53]Write to MH i2c: 01 00 00 F9 19 12 [16:49:53]Write i2c OK [16:49:53]MH_I2C_Read... [16:49:53]Read from MH i2c: 01 [16:49:53]MH_I2C_Read... [16:49:53]Read from MH i2c: 01 07 00 [16:49:53]MH_I2C_Read... [16:49:53]Read from MH i2c: 01 07 00 F9 19 00 02 00 00 00 FF 0F 29 [16:49:53]state=3 [16:49:53]Cover opened [16:49:57]OFD Sender: No OFD packet to send [16:49:58]Write to MH i2c: 01 00 00 FA 19 13 [16:49:58]Write i2c OK [16:49:58]MH_I2C_Read... [16:49:58]Read from MH i2c: 01 [16:49:58]MH_I2C_Read... [16:49:58]Read from MH i2c: 01 07 00 [16:49:58]MH_I2C_Read... [16:49:58]Read from MH i2c: 01 07 00 FA 19 00 02 00 00 00 FF 0F 2A [16:49:58]state=3 [16:49:58]Cover opened [16:50:02]OFD Sender: No OFD packet to send [16:50:03]Write to MH i2c: 01 00 00 FB 19 14 [16:50:03]Write i2c OK [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: 01 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: 01 07 00 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: 01 07 00 FB 19 00 02 00 00 00 FF 0F 2B [16:50:03]state=3 [16:50:03]Cover opened [16:50:07]OFD Sender: No OFD packet to send [16:50:08]Write to MH i2c: 01 00 00 FC 19 15 [16:50:08]Write i2c OK [16:50:08]MH_I2C_Read... [16:50:08]Read from MH i2c: 01 [16:50:08]MH_I2C_Read... [16:50:08]Read from MH i2c: 01 07 00 [16:50:08]MH_I2C_Read... [16:50:08]Read from MH i2c: 01 07 00 FC 19 00 02 00 00 00 FF 0F 2C [16:50:08]state=3 [16:50:08]Cover opened [16:50:12]OFD Sender: No OFD packet to send [16:50:13]Write to MH i2c: 01 00 00 FD 19 16 [16:50:13]Write i2c OK [16:50:13]MH_I2C_Read... [16:50:13]Read from MH i2c: 01 [16:50:13]MH_I2C_Read... [16:50:13]Read from MH i2c: 01 07 00 [16:50:13]MH_I2C_Read... [16:50:13]Read from MH i2c: 01 07 00 FD 19 00 02 00 00 00 FF 0F 2D [16:50:13]state=3 [16:50:13]Cover opened [16:50:17]OFD Sender: No OFD packet to send [16:50:18]Write to MH i2c: 01 00 00 FE 19 17 [16:50:18]Write i2c OK [16:50:18]MH_I2C_Read... [16:50:18]Read from MH i2c: 01 [16:50:18]MH_I2C_Read... [16:50:18]Read from MH i2c: 01 07 00 [16:50:18]MH_I2C_Read... [16:50:18]Read from MH i2c: 01 07 00 FE 19 00 02 00 00 00 FF 0F 2E [16:50:18]state=3 [16:50:18]Cover opened [16:50:22]OFD Sender: No OFD packet to send [16:50:23]Write to MH i2c: 01 00 00 FF 19 18 [16:50:23]Write i2c OK [16:50:23]MH_I2C_Read... [16:50:23]Read from MH i2c: 01 [16:50:23]MH_I2C_Read... [16:50:23]Read from MH i2c: 01 07 00 [16:50:23]MH_I2C_Read... [16:50:23]Read from MH i2c: 01 07 00 FF 19 00 02 00 00 00 FF 0F 2F [16:50:23]state=3 [16:50:23]Cover opened [16:50:27]OFD Sender: No OFD packet to send [16:50:28]Write to MH i2c: 01 00 00 00 1A 1A [16:50:28]Write i2c OK [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: 01 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: 01 07 00 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: 01 07 00 00 1A 00 02 00 00 00 FF 0F 31 [16:50:28]state=3 [16:50:28]Cover opened [16:50:32]OFD Sender: No OFD packet to send [16:50:33]Write to MH i2c: 01 00 00 01 1A 1B [16:50:33]Write i2c OK [16:50:33]MH_I2C_Read... [16:50:33]Read from MH i2c: 01 [16:50:33]MH_I2C_Read... [16:50:33]Read from MH i2c: 01 07 00 [16:50:33]MH_I2C_Read... [16:50:33]Read from MH i2c: 01 07 00 01 1A 00 02 00 00 00 FF 0F 32 [16:50:33]state=3 [16:50:33]Cover opened [16:50:37]OFD Sender: No OFD packet to send [16:50:38]Write to MH i2c: 01 00 00 02 1A 1C [16:50:38]Write i2c OK [16:50:38]MH_I2C_Read... [16:50:38]Read from MH i2c: 01 [16:50:38]MH_I2C_Read... [16:50:38]Read from MH i2c: 01 07 00 [16:50:38]MH_I2C_Read... [16:50:38]Read from MH i2c: 01 07 00 02 1A 00 02 00 00 00 FF 0F 33 [16:50:38]state=3 [16:50:38]Cover opened [16:50:42]OFD Sender: No OFD packet to send [16:50:43]Write to MH i2c: 01 00 00 03 1A 1D [16:50:43]Write i2c OK [16:50:43]MH_I2C_Read... [16:50:43]Read from MH i2c: 01 [16:50:43]MH_I2C_Read... [16:50:43]Read from MH i2c: 01 07 00 [16:50:43]MH_I2C_Read... [16:50:43]Read from MH i2c: 01 07 00 03 1A 00 02 00 00 00 FF 0F 34 [16:50:43]state=3 [16:50:43]Cover opened [16:50:47]OFD Sender: No OFD packet to send [16:50:48]accept exits with 10 [16:50:48]New connection [16:50:48]New thread 3066711396 created [16:50:48]Thread 3066568036 joined [16:50:48]Waiting for new connection... [16:50:48] Sock 10.Parse request [16:50:48]Sock 10.Check first char [16:50:48]Sock 10.First char is OK [16:50:48]request: POST /json_proto HTTP/1.0 [16:50:48]Method: POST [16:50:48]URL: /json_proto [16:50:48]Method is POST - this is cgi request [16:50:48]url: /json_proto [16:50:48]query_string will be loaded in cgi processing [16:50:48]execute_cgi json_proto POST (null) [16:50:48]execute_cgi path=json_proto method=POST [16:50:48]POST find Content-Length [16:50:48]Host: 172.17.50.3:8080 [16:50:48]Content-Length: 685 [16:50:48]Content-Type: application/json [16:50:48] [16:50:48]POST finish read [16:50:48]Found Content-Length = 685 [16:50:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 11.020, "sum" : 850.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:48]execute_script... [16:50:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 11.020, "sum" : 850.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:48]POST & json_proto [16:50:48]process_json_proto [16:50:48]json parsed OK: [16:50:48]protocol is kg_v1.0 [16:50:48]action value=close_receipt [16:50:48]process_action close_receipt [16:50:48]cmd_close_receipt [16:50:48]MH_GetDate [16:50:48]Write to MH i2c: F0 00 00 04 1A 0D [16:50:48]Write i2c OK [16:50:48]MH_I2C_Read... [16:50:48]Read from MH i2c: F0 [16:50:48]MH_I2C_Read... [16:50:48]Read from MH i2c: F0 09 00 [16:50:48]MH_I2C_Read... [16:50:48]Read from MH i2c: F0 09 00 04 1A 00 E9 34 15 67 6B 98 1E 66 36 [16:50:48]GetLastDocTimeStamp 1729442875 [16:50:48]current date 1729443049 [16:50:48]FM_GetShiftState [16:50:48]SAM_PROTO_GetShiftState [16:50:48]wFMCommunicate request_size=4 [16:50:48]MH_SAM_APDU [16:50:48]CAPDU: 80 13 01 00 [16:50:48]Write to MH i2c: E2 08 00 05 1A 80 13 01 00 00 00 00 00 9C [16:50:48]Write i2c OK [16:50:48]MH_I2C_Read... [16:50:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:48]Read from MH i2c: E2 [16:50:48]MH_I2C_Read... [16:50:48]Read from MH i2c: E2 0E 00 [16:50:48]MH_I2C_Read... [16:50:48]Read from MH i2c: E2 0E 00 05 1A 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 A2 [16:50:48]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:50:48]wFMCommunicate OK [16:50:48]SAM_PROTO_GetShiftState done [16:50:48]FM_GetShiftState done [16:50:48]opened in 1729383220 [16:50:48]opened+sec_in_day 1729469620 [16:50:48]quantity*price = 85074 [16:50:48]sum+1 = 85075 [16:50:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 850.00 Внесено: 850.00 СДАЧА: 0.00 НСП 1% : 7.53 НДС 12% : 90.34 Наличными: 850.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 283 20.10.2024 16:50 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69438 ФПД: 44178795164258 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T165049&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69438&fm=44178795164258&tin=02508201610067®Number=0000000000156251&sum=85000 [16:50:49]StoreToDocumentArchive [16:50:49]shift 193 fd 69438 [16:50:49]save to /storage/0193/doc_00069438 [16:50:49]save last doc name /storage/0193/doc_00069438 to /storage/kkm_last_doc_name [16:50:49]save OK [16:50:49]Clear old archive folders... [16:50:49]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:50:49]tlvbuf is B6D6D170 [16:50:49]SAM_PROTO_ClearQueue [16:50:49]wFMCommunicate request_size=4 [16:50:49]MH_SAM_APDU [16:50:49]CAPDU: 80 09 00 00 [16:50:49]Write to MH i2c: E2 08 00 13 1A 80 09 00 00 00 00 00 00 9F [16:50:49]Write i2c OK [16:50:49]MH_I2C_Read... [16:50:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:49]Read from MH i2c: E2 [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: E2 03 00 [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: E2 03 00 13 1A 00 90 00 A1 [16:50:49]RAPDU: 90 00 [16:50:49]wFMCommunicate OK [16:50:49]SAM_PROTO_ClearQueue done [16:50:49]KKMCreateOFDPacket [16:50:49]OFDProtocolAddRootSTLVToBuf [16:50:49]FM_MakeSignedData [16:50:49]FM_MakeSignedData [16:50:49]SAM_PROTO_SignData [16:50:49]wFMCommunicate request_size=4 [16:50:49]MH_SAM_APDU [16:50:49]CAPDU: 80 0D 01 02 [16:50:49]Write to MH i2c: E2 08 00 14 1A 80 0D 01 02 00 00 00 00 A7 [16:50:49]Write i2c OK [16:50:49]MH_I2C_Read... [16:50:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:49]Read from MH i2c: E2 [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: E2 03 00 [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: E2 03 00 14 1A 00 90 00 A2 [16:50:49]RAPDU: 90 00 [16:50:49]wFMCommunicate OK [16:50:49]wFMCommunicate request_size=255 [16:50:49]MH_SAM_APDU [16:50:49]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 0C 2B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 52 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 E9 34 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3E 0F 01 [16:50:49]Write to MH i2c: E2 02 01 15 1A 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 0C 2B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 52 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 E9 34 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3E 0F 01 00 00 01 [16:50:49]Write i2c OK [16:50:49]MH_I2C_Read... [16:50:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:49]Read from MH i2c: E2 [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: E2 03 00 [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: E2 03 00 15 1A 00 90 00 A3 [16:50:49]RAPDU: 90 00 [16:50:49]wFMCommunicate OK [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 08 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 AD [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 5400000000572508 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 16161951+1713281131=1729443082 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33560623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 08 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 AE [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 50 00 FF FF 6F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 0B 35 15 67 6B 98 1E 66 42 [16:51:23]Current date/time: 20.10.2024 16:51 [16:51:23]FM_Init [16:51:23]wFMConnect [16:51:23]MH_SAM_On [16:51:23]Write to MH i2c: E0 00 00 08 00 E7 [16:51:23]Write i2c OK [16:51:23]MH_I2C_Read... [16:51:23]*** iso7816_init finished! [16:51:23]*** atr: [16:51:23]*** 0F 3B D5 18 FF 81 91 FE [16:51:23]*** 1F C3 80 73 C8 21 10 0A [16:51:23]*** 00 00 00 00 00 00 00 00 [16:51:23]*** 00 00 00 00 00 00 00 00 [16:51:23]*** 00 00 00 00 00 00 00 00 [16:51:23]*** 00 00 00 00 00 00 00 00 [16:51:23]*** 00 00 00 00 00 00 00 00 [16:51:23]*** 00 00 00 00 00 00 00 00 [16:51:23]Read from MH i2c: E0 [16:51:23]MH_I2C_Read... [16:51:23]Read from MH i2c: E0 10 00 [16:51:23]MH_I2C_Read... [16:51:23]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [16:51:23]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [16:51:23]wFMCommunicate request_size=10 [16:51:23]MH_SAM_APDU [16:51:23]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [16:51:23]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [16:51:23]Write i2c OK [16:51:23]MH_I2C_Read... [16:51:23]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [16:51:23]Read from MH i2c: E2 [16:51:23]MH_I2C_Read... [16:51:23]Read from MH i2c: E2 03 00 [16:51:23]MH_I2C_Read... [16:51:23]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [16:51:23]RAPDU: 90 00 [16:51:23]wFMCommunicate OK [16:51:23]wFMCommunicate request_size=4 [16:51:23]MH_SAM_APDU [16:51:23]CAPDU: 80 11 00 00 [16:51:23]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [16:51:23]Write i2c OK [16:51:23]MH_I2C_Read... [16:51:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:23]Read from MH i2c: E2 [16:51:23]MH_I2C_Read... [16:51:23]Read from MH i2c: E2 17 00 [16:51:23]MH_I2C_Read... [16:51:23]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D6 [16:51:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:51:23]wFMCommunicate OK [16:51:23]Detected FM SN is 0000000000963346 [16:51:23]Stored FM SN is 0000000000963346 [16:51:23]wFMCommunicate request_size=9 [16:51:23]MH_SAM_APDU [16:51:23]CAPDU: 80 16 00 00 04 0B 88 00 00 [16:51:23]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 0B 88 00 00 00 00 25 [16:51:23]Write i2c OK [16:51:23]MH_I2C_Read... [16:51:23]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [16:51:23]Read from MH i2c: E2 [16:51:23]MH_I2C_Read... [16:51:23]Read from MH i2c: E2 03 00 [16:51:23]MH_I2C_Read... [16:51:23]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [16:51:23]RAPDU: 90 00 [16:51:23]wFMCommunicate OK [16:51:23]FM PIN OK [16:51:23]wFMCommunicate request_size=8 [16:51:23]MH_SAM_APDU [16:51:23]CAPDU: 80 14 04 00 03 02 00 01 [16:51:23]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [16:51:23]Write i2c OK [16:51:23]MH_I2C_Read... [16:51:23]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [16:51:23]Read from MH i2c: E2 [16:51:23]MH_I2C_Read... [16:51:23]Read from MH i2c: E2 03 00 [16:51:23]MH_I2C_Read... [16:51:23]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [16:51:23]RAPDU: 90 00 [16:51:23]wFMCommunicate OK [16:51:23]wFMCommunicate request_size=13 [16:51:23]MH_SAM_APDU [16:51:23]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [16:51:23]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [16:51:23]Write i2c OK [16:51:23]MH_I2C_Read... [16:51:23]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [16:51:23]Read from MH i2c: E2 [16:51:23]MH_I2C_Read... [16:51:23]Read from MH i2c: E2 03 00 [16:51:23]MH_I2C_Read... [16:51:23]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [16:51:23]RAPDU: 90 00 [16:51:23]wFMCommunicate OK [16:51:23]wFMCommunicate request_size=4 [16:51:23]MH_SAM_APDU [16:51:23]CAPDU: 80 11 00 00 [16:51:23]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [16:51:23]Write i2c OK [16:51:23]MH_I2C_Read... [16:51:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:23]Read from MH i2c: E2 [16:51:23]MH_I2C_Read... [16:51:23]Read from MH i2c: E2 17 00 [16:51:23]MH_I2C_Read... [16:51:23]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DA [16:51:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:51:23]wFMCommunicate OK [16:51:23]DocumentArchiveInit [16:51:23]Start Httpd... [16:51:23]Httpd thread 3067526500 created [16:51:23]Write to MH i2c: 01 00 00 0F 00 0F [16:51:23]Write i2c OK [16:51:23]MH_I2C_Read... [16:51:23]Read from MH i2c: 01 [16:51:23]MH_I2C_Read... [16:51:23]Read from MH i2c: 01 07 00 [16:51:23]MH_I2C_Read... [16:51:23]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [16:51:23]MH Int Process started [16:51:23]Allocated Socket 7 [16:51:23]Bind OK [16:51:23]Listen OK [16:51:23]httpd running on port 8080 [16:51:23]Waiting for new connection... [16:51:23]OFD Sender: No OFD packet to send [16:51:28]OFD Sender: No OFD packet to send [16:51:33]OFD Sender: No OFD packet to send [16:51:38]OFD Sender: No OFD packet to send [16:51:43]OFD Sender: No OFD packet to send [16:51:48]OFD Sender: No OFD packet to send [16:51:53]OFD Sender: No OFD packet to send [16:51:58]OFD Sender: No OFD packet to send [16:52:03]OFD Sender: No OFD packet to send [16:52:08]accept exits with 8 [16:52:08]New connection [16:52:08]New thread 3067239780 created [16:52:08]Waiting for new connection... [16:52:08] Sock 8.Parse request [16:52:08]Sock 8.Check first char [16:52:08]Sock 8.First char is OK [16:52:08]request: POST /json_proto HTTP/1.0 [16:52:08]Method: POST [16:52:08]URL: /json_proto [16:52:08]Method is POST - this is cgi request [16:52:08]url: /json_proto [16:52:08]query_string will be loaded in cgi processing [16:52:08]execute_cgi json_proto POST (null) [16:52:08]execute_cgi path=json_proto method=POST [16:52:08]POST find Content-Length [16:52:08]Host: 172.17.50.3:8080 [16:52:08]Content-Length: 215 [16:52:08]Content-Type: application/json [16:52:08] [16:52:08]POST finish read [16:52:08]Found Content-Length = 215 [16:52:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:08]execute_script... [16:52:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:08]POST & json_proto [16:52:08]process_json_proto [16:52:08]json parsed OK: [16:52:08]protocol is kg_v1.0 [16:52:08]action value=get_value [16:52:08]process_action get_value [16:52:08]cmd_get_value [16:52:08]process_action get_value done [16:52:08]requested_data is exist [16:52:08]produce_requested_data [16:52:08]requested_item kkm.sn is exist - process it [16:52:08]requested_item kkm.ver is exist - process it [16:52:08]requested_item fm.sn is exist - process it [16:52:08]wFMCommunicate request_size=4 [16:52:08]MH_SAM_APDU [16:52:08]CAPDU: 80 11 00 00 [16:52:08]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [16:52:08]Write i2c OK [16:52:08]MH_I2C_Read... [16:52:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:08]Read from MH i2c: E2 [16:52:08]MH_I2C_Read... [16:52:08]Read from MH i2c: E2 17 00 [16:52:08]MH_I2C_Read... [16:52:08]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DC [16:52:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:52:08]wFMCommunicate OK [16:52:08]requested_item fd.num is exist - process it [16:52:08]SAM_PROTO_GetFieldsCounters [16:52:08]wFMCommunicate request_size=4 [16:52:08]MH_SAM_APDU [16:52:08]CAPDU: 80 13 00 00 [16:52:08]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [16:52:08]Write i2c OK [16:52:08]MH_I2C_Read... [16:52:08]OFD Sender: No OFD packet to send [16:52:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:52:08]Read from MH i2c: E2 [16:52:08]MH_I2C_Read... [16:52:08]Read from MH i2c: E2 62 00 [16:52:08]MH_I2C_Read... [16:52:08]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3E 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 0B [16:52:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3E 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:52:08]wFMCommunicate OK [16:52:08]SAM_PROTO_GetFieldsCounters done [16:52:08]requested_item shift.num is exist - process it [16:52:08]requested_item shift.opened is exist - process it [16:52:08]req_shift_opened [16:52:08]FM_GetShiftState [16:52:08]SAM_PROTO_GetShiftState [16:52:08]wFMCommunicate request_size=4 [16:52:08]MH_SAM_APDU [16:52:08]CAPDU: 80 13 01 00 [16:52:08]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [16:52:08]Write i2c OK [16:52:08]MH_I2C_Read... [16:52:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:08]Read from MH i2c: E2 [16:52:08]MH_I2C_Read... [16:52:08]Read from MH i2c: E2 0E 00 [16:52:08]MH_I2C_Read... [16:52:08]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 95 [16:52:08]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:52:08]wFMCommunicate OK [16:52:08]SAM_PROTO_GetShiftState done [16:52:08]FM_GetShiftState done [16:52:08]req_shift_opened done [16:52:08]requested_item shift.open_date is exist - process it [16:52:08]req_shift_open_date [16:52:08]req_shift_open_date done [16:52:08]produce_requested_data done [16:52:08]produce_requested_data return {"kkm.sn":"0300000167","kkm.ver":"v1.0","fm.sn":"0000000000963346","fd.num":69438,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [16:52:08]process_action_free get_value [16:52:08]json_value_free [16:52:08]json_value_free done [16:52:08]process_json_proto returns [16:52:08]Send response to host [16:52:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000167","kkm.ver":"v1.0","fm.sn":"0000000000963346","fd.num":69438,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [16:52:08]free response buf [16:52:08]execute_script done [16:52:08]execute_script returns [16:52:08]free content buf [16:52:08]Sock 8.Close socket [16:52:08]Sock 8.Thread stoped [16:52:08]accept exits with 9 [16:52:08]New connection [16:52:08]New thread 3067096420 created [16:52:08]Thread 3067239780 joined [16:52:08]Waiting for new connection... [16:52:08] Sock 9.Parse request [16:52:08]Sock 9.Check first char [16:52:08]Sock 9.First char is OK [16:52:08]request: POST /json_proto HTTP/1.0 [16:52:08]Method: POST [16:52:08]URL: /json_proto [16:52:08]Method is POST - this is cgi request [16:52:08]url: /json_proto [16:52:08]query_string will be loaded in cgi processing [16:52:08]execute_cgi json_proto POST (null) [16:52:08]execute_cgi path=json_proto method=POST [16:52:08]POST find Content-Length [16:52:08]Host: 172.17.50.3:8080 [16:52:08]Content-Length: 331 [16:52:08]Content-Type: application/json [16:52:08] [16:52:08]POST finish read [16:52:08]Found Content-Length = 331 [16:52:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:52:08]execute_script... [16:52:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:52:08]POST & json_proto [16:52:08]process_json_proto [16:52:08]json parsed OK: [16:52:08]protocol is kg_v1.0 [16:52:08]action value=get_value [16:52:08]process_action get_value [16:52:08]cmd_get_value [16:52:08]process_action get_value done [16:52:08]requested_data is exist [16:52:08]produce_requested_data [16:52:08]requested_item fm.sale.total is exist - process it [16:52:08]SAM_PROTO_GetFMData [16:52:08]wFMCommunicate request_size=4 [16:52:08]MH_SAM_APDU [16:52:08]CAPDU: 80 13 03 00 [16:52:08]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [16:52:08]Write i2c OK [16:52:08]MH_I2C_Read... [16:52:09]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:52:09]Read from MH i2c: E2 [16:52:09]MH_I2C_Read... [16:52:09]Read from MH i2c: E2 FD 00 [16:52:09]MH_I2C_Read... [16:52:09]Read from MH i2c: E2 FD 00 13 00 00 C5 04 85 04 C1 04 6E 04 04 00 BC 0D 01 00 69 04 A3 00 6F 04 04 00 82 0A 01 00 B1 04 05 00 4D F1 B5 E0 01 70 04 05 00 C0 57 AE 56 01 72 04 04 00 8D 99 07 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 1F 38 0F 33 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 5E 35 41 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 3A 03 00 00 B1 04 04 00 9C F5 84 11 70 04 04 00 9C F5 84 11 72 04 00 00 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 7C 52 DC 01 EF 03 09 90 00 59 [16:52:09]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 BC 0D 01 00 69 04 A3 00 6F 04 04 00 82 0A 01 00 B1 04 05 00 4D F1 B5 E0 01 70 04 05 00 C0 57 AE 56 01 72 04 04 00 8D 99 07 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 1F 38 0F 33 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 5E 35 41 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 3A 03 00 00 B1 04 04 00 9C F5 84 11 70 04 04 00 9C F5 84 11 72 04 00 00 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 7C 52 DC 01 EF 03 09 90 00 [16:52:09]wFMCommunicate OK [16:52:09]wFMCommunicate request_size=4 [16:52:09]MH_SAM_APDU [16:52:09]CAPDU: 80 17 00 00 [16:52:09]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [16:52:09]Write i2c OK [16:52:09]MH_I2C_Read... [16:52:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:52:09]Read from MH i2c: E2 [16:52:09]MH_I2C_Read... [16:52:09]Read from MH i2c: E2 FD 00 [16:52:09]MH_I2C_Read... [16:52:09]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F B1 27 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 71 [16:52:09]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F B1 27 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:52:09]wFMCommunicate OK [16:52:09]wFMCommunicate request_size=4 [16:52:09]MH_SAM_APDU [16:52:09]CAPDU: 80 17 00 00 [16:52:09]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [16:52:09]Write i2c OK [16:52:09]MH_I2C_Read... [16:52:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:52:09]Read from MH i2c: E2 [16:52:09]MH_I2C_Read... [16:52:09]Read from MH i2c: E2 FD 00 [16:52:09]MH_I2C_Read... [16:52:09]Read from MH i2c: E2 FD 00 15 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A7 [16:52:09]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:52:09]wFMCommunicate OK [16:52:09]wFMCommunicate request_size=4 [16:52:09]MH_SAM_APDU [16:52:09]CAPDU: 80 17 00 00 [16:52:09]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [16:52:09]Write i2c OK [16:52:09]MH_I2C_Read... [16:52:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:52:10]Read from MH i2c: E2 [16:52:10]MH_I2C_Read... [16:52:10]Read from MH i2c: E2 FD 00 [16:52:10]MH_I2C_Read... [16:52:10]Read from MH i2c: E2 FD 00 16 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 22 [16:52:10]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:52:10]wFMCommunicate OK [16:52:10]wFMCommunicate request_size=4 [16:52:10]MH_SAM_APDU [16:52:10]CAPDU: 80 17 00 00 [16:52:10]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [16:52:10]Write i2c OK [16:52:10]MH_I2C_Read... [16:52:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [16:52:10]Read from MH i2c: E2 [16:52:10]MH_I2C_Read... [16:52:10]Read from MH i2c: E2 E2 00 [16:52:10]MH_I2C_Read... [16:52:10]Read from MH i2c: E2 E2 00 17 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 75 [16:52:10]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:52:10]wFMCommunicate OK [16:52:10]SAM_PROTO_GetFMData done [16:52:10]requested_item fm.sale_refund.total is exist - process it [16:52:10]requested_item fm.buy.total is exist - process it [16:52:10]requested_item shift.sale.total is exist - process it [16:52:10]SAM_PROTO_GetShiftData [16:52:10]wFMCommunicate request_size=4 [16:52:10]MH_SAM_APDU [16:52:10]CAPDU: 80 13 02 00 [16:52:10]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [16:52:10]Write i2c OK [16:52:10]MH_I2C_Read... [16:52:10]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:52:10]Read from MH i2c: E2 [16:52:10]MH_I2C_Read... [16:52:10]Read from MH i2c: E2 FD 00 [16:52:10]MH_I2C_Read... [16:52:10]Read from MH i2c: E2 FD 00 18 00 00 BB 04 AA 04 B7 04 6E 04 04 00 1B 01 00 00 69 04 9E 00 6F 04 04 00 19 01 00 00 B1 04 04 00 40 C0 B1 01 70 04 04 00 D0 B8 7F 01 72 04 03 00 70 07 32 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 28 13 2E 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 E7 D6 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 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 54 44 03 70 04 03 00 54 44 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 D4 58 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 CA [16:52:10]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 1B 01 00 00 69 04 9E 00 6F 04 04 00 19 01 00 00 B1 04 04 00 40 C0 B1 01 70 04 04 00 D0 B8 7F 01 72 04 03 00 70 07 32 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 28 13 2E 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 E7 D6 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 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 54 44 03 70 04 03 00 54 44 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 D4 58 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [16:52:10]wFMCommunicate OK [16:52:10]wFMCommunicate request_size=4 [16:52:10]MH_SAM_APDU [16:52:10]CAPDU: 80 17 00 00 [16:52:10]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [16:52:10]Write i2c OK [16:52:10]MH_I2C_Read... [16:52:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:52:11]Read from MH i2c: E2 [16:52:11]MH_I2C_Read... [16:52:11]Read from MH i2c: E2 FD 00 [16:52:11]MH_I2C_Read... [16:52:11]Read from MH i2c: E2 FD 00 19 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 67 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B1 [16:52:11]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 67 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:52:11]wFMCommunicate OK [16:52:11]wFMCommunicate request_size=4 [16:52:11]MH_SAM_APDU [16:52:11]CAPDU: 80 17 00 00 [16:52:11]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [16:52:11]Write i2c OK [16:52:11]MH_I2C_Read... [16:52:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:52:11]Read from MH i2c: E2 [16:52:11]MH_I2C_Read... [16:52:11]Read from MH i2c: E2 FD 00 [16:52:11]MH_I2C_Read... [16:52:11]Read from MH i2c: E2 FD 00 1A 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C6 [16:52:11]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:52:11]wFMCommunicate OK [16:52:11]wFMCommunicate request_size=4 [16:52:11]MH_SAM_APDU [16:52:11]CAPDU: 80 17 00 00 [16:52:11]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [16:52:11]Write i2c OK [16:52:11]MH_I2C_Read... [16:52:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:52:11]Read from MH i2c: E2 [16:52:11]MH_I2C_Read... [16:52:11]Read from MH i2c: E2 FD 00 [16:52:11]MH_I2C_Read... [16:52:11]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 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 90 00 10 [16:52:11]RAPDU: 00 00 EF 03 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 90 00 [16:52:11]wFMCommunicate OK [16:52:11]wFMCommunicate request_size=4 [16:52:11]MH_SAM_APDU [16:52:11]CAPDU: 80 17 00 00 [16:52:11]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [16:52:11]Write i2c OK [16:52:11]MH_I2C_Read... [16:52:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [16:52:11]Read from MH i2c: E2 [16:52:11]MH_I2C_Read... [16:52:11]Read from MH i2c: E2 D8 00 [16:52:11]MH_I2C_Read... [16:52:11]Read from MH i2c: E2 D8 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 83 [16:52:11]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:52:11]wFMCommunicate OK [16:52:11]SAM_PROTO_GetShiftData done [16:52:11]requested_item shift.sale.total_cash is exist - process it [16:52:11]requested_item shift.sale_refund.total is exist - process it [16:52:11]requested_item shift.sale_refund.total_cash is exist - process it [16:52:11]requested_item shift.buy.total is exist - process it [16:52:11]requested_item shift.buy.total_cash is exist - process it [16:52:11]produce_requested_data done [16:52:11]produce_requested_data return {"fm.sale.total":80649874.69,"fm.sale_refund.total":2939263.00,"fm.buy.total":0.00,"shift.sale.total":284263.04,"shift.sale.total_cash":251476.00,"shift.sale_refund.total":2141.00,"shift.sale_refund.total_cash":2141.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [16:52:11]process_action_free get_value [16:52:11]json_value_free [16:52:11]json_value_free done [16:52:11]process_json_proto returns [16:52:11]Send response to host [16:52:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":80649874.69,"fm.sale_refund.total":2939263.00,"fm.buy.total":0.00,"shift.sale.total":284263.04,"shift.sale.total_cash":251476.00,"shift.sale_refund.total":2141.00,"shift.sale_refund.total_cash":2141.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [16:52:11]free response buf [16:52:11]execute_script done [16:52:11]execute_script returns [16:52:11]free content buf [16:52:11]Sock 9.Close socket [16:52:11]Sock 9.Thread stoped [16:52:12]accept exits with 8 [16:52:12]New connection [16:52:12]New thread 3067239780 created [16:52:12]Thread 3067096420 joined [16:52:12]Waiting for new connection... [16:52:12] Sock 8.Parse request [16:52:12]Sock 8.Check first char [16:52:12]Sock 8.First char is OK [16:52:12]request: POST /json_proto HTTP/1.0 [16:52:12]Method: POST [16:52:12]URL: /json_proto [16:52:12]Method is POST - this is cgi request [16:52:12]url: /json_proto [16:52:12]query_string will be loaded in cgi processing [16:52:12]execute_cgi json_proto POST (null) [16:52:12]execute_cgi path=json_proto method=POST [16:52:12]POST find Content-Length [16:52:12]Host: 172.17.50.3:8080 [16:52:12]Content-Length: 685 [16:52:12]Content-Type: application/json [16:52:12] [16:52:12]POST finish read [16:52:12]Found Content-Length = 685 [16:52:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 10.370, "sum" : 800.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:12]execute_script... [16:52: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)2885167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 10.370, "sum" : 800.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:12]POST & json_proto [16:52:12]process_json_proto [16:52:12]json parsed OK: [16:52:12]protocol is kg_v1.0 [16:52:12]action value=close_receipt [16:52:12]process_action close_receipt [16:52:12]cmd_close_receipt [16:52:12]MH_GetDate [16:52:12]Write to MH i2c: F0 00 00 1D 00 0C [16:52:12]Write i2c OK [16:52:12]MH_I2C_Read... [16:52:12]Read from MH i2c: F0 [16:52:12]MH_I2C_Read... [16:52:12]Read from MH i2c: F0 09 00 [16:52:12]MH_I2C_Read... [16:52:12]Read from MH i2c: F0 09 00 1D 00 00 3C 35 15 67 6B 98 1E 66 89 [16:52:12]GetLastDocTimeStamp 97 [16:52:12]current date 1729443132 [16:52:12]FM_GetShiftState [16:52:12]SAM_PROTO_GetShiftState [16:52:12]wFMCommunicate request_size=4 [16:52:12]MH_SAM_APDU [16:52:12]CAPDU: 80 13 01 00 [16:52:12]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [16:52:12]Write i2c OK [16:52:12]MH_I2C_Read... [16:52:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:12]Read from MH i2c: E2 [16:52:12]MH_I2C_Read... [16:52:12]Read from MH i2c: E2 0E 00 [16:52:12]MH_I2C_Read... [16:52:12]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 A1 [16:52:12]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:52:12]wFMCommunicate OK [16:52:12]SAM_PROTO_GetShiftState done [16:52:12]FM_GetShiftState done [16:52:12]opened in 1729383220 [16:52:12]opened+sec_in_day 1729469620 [16:52:12]quantity*price = 80056 [16:52:12]sum+1 = 80057 [16:52:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.01 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 284 20.10.2024 16:52 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69439 ФПД: 49161367904816 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T165212&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69439&fm=49161367904816&tin=02508201610067®Number=0000000000156251&sum=80000 [16:52:13]StoreToDocumentArchive [16:52:13]shift 193 fd 69439 [16:52:13]save to /storage/0193/doc_00069439 [16:52:13]save last doc name /storage/0193/doc_00069439 to /storage/kkm_last_doc_name [16:52:13]save OK [16:52:13]Clear old archive folders... [16:52:13]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:52:13]tlvbuf is 00D3D540 [16:52:13]SAM_PROTO_ClearQueue [16:52:13]wFMCommunicate request_size=4 [16:52:13]MH_SAM_APDU [16:52:13]CAPDU: 80 09 00 00 [16:52:13]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [16:52:13]Write i2c OK [16:52:13]MH_I2C_Read... [16:52:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:52:13]Read from MH i2c: E2 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: E2 03 00 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [16:52:13]RAPDU: 90 00 [16:52:13]wFMCommunicate OK [16:52:13]SAM_PROTO_ClearQueue done [16:52:13]KKMCreateOFDPacket [16:52:13]OFDProtocolAddRootSTLVToBuf [16:52:13]OFD Sender: No OFD packet to send [16:52:13]FM_MakeSignedData [16:52:13]FM_MakeSignedData [16:52:13]SAM_PROTO_SignData [16:52:13]wFMCommunicate request_size=4 [16:52:13]MH_SAM_APDU [16:52:13]CAPDU: 80 0D 01 02 [16:52:13]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [16:52:13]Write i2c OK [16:52:13]MH_I2C_Read... [16:52:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:52:13]Read from MH i2c: E2 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: E2 03 00 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [16:52:13]RAPDU: 90 00 [16:52:13]wFMCommunicate OK [16:52:13]wFMCommunicate request_size=255 [16:52:13]MH_SAM_APDU [16:52:13]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 3C 35 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3F 0F 01 [16:52:13]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 3C 35 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3F 0F 01 00 00 9E [16:52:13]Write i2c OK [16:52:13]MH_I2C_Read... [16:52:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:14]Read from MH i2c: E2 [16:52:14]MH_I2C_Read... [16:52:14]Read from MH i2c: E2 03 00 [16:52:14]MH_I2C_Read... [16:52:14]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [16:52:14]RAPDU: 90 00 [16:52:14]wFMCommunicate OK [16:52:14]wFMCommunicate request_size=16 [16:52:14]MH_SAM_APDU [16:52:14]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 2C B6 45 DE E2 30 [16:52:14]Write to MH i2c: E2 13 00 2E 00 80 0D 02 02 0B 00 00 35 04 06 00 2C B6 45 DE E2 30 00 00 14 [16:52:14]Write i2c OK [16:52:14]MH_I2C_Read... [16:52:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:14]Read from MH i2c: E2 [16:52:14]MH_I2C_Read... [16:52:14]Read from MH i2c: E2 03 00 [16:52:14]MH_I2C_Read... [16:52:14]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [16:52:14]RAPDU: 90 00 [16:52:14]wFMCommunicate OK [16:52:14]wFMCommunicate request_size=4 [16:52:14]MH_SAM_APDU [16:52:14]CAPDU: 80 0D 03 02 [16:52:14]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [16:52:14]Write i2c OK [16:52:14]MH_I2C_Read... [16:52:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:52:14]Read from MH i2c: E2 [16:52:14]MH_I2C_Read... [16:52:14]Read from MH i2c: E2 0B 00 [16:52:14]MH_I2C_Read... [16:52:14]Read from MH i2c: E2 0B 00 2F 00 00 A3 4C E2 C9 DA DD 4D A5 90 00 EE [16:52:14]RAPDU: A3 4C E2 C9 DA DD 4D A5 90 00 [16:52:14]wFMCommunicate OK [16:52:14]SAM_PROTO_SignData done [16:52:14]FM_MakeSignedData done [16:52:14]CreateOFDProtocolMessage [16:52:14]wFMCommunicate request_size=4 [16:52:14]MH_SAM_APDU [16:52:14]CAPDU: 80 11 00 00 [16:52:14]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [16:52:14]Write i2c OK [16:52:14]MH_I2C_Read... [16:52:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:14]Read from MH i2c: E2 [16:52:14]MH_I2C_Read... [16:52:14]Read from MH i2c: E2 17 00 [16:52:14]MH_I2C_Read... [16:52:14]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FC [16:52:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:52:14]wFMCommunicate OK [16:52:14]CreateOFDProtocolMessage done [16:52:14]OFDSenderStorePacket 69439 [16:52:14]StoreOFDPacket docnum=69439 [16:52:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 4F 19 0D 01 A8 8C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 3C 35 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3F 0F 01 00 35 04 06 00 2C B6 45 DE E2 30 A3 4C E2 C9 DA DD 4D A5 [16:52:14]CheckFolder [16:52:14]dirname=/storage/ofd_packets [16:52:14]CheckFolder done [16:52:14]ProducePacketName [16:52:14]name=ofd_packets/00069439 [16:52:14]NVStorageSaveData ofd_packets/00069439 [16:52:14]File name is /storage/ofd_packets/00069439 [16:52:14]Write 307 bytes [16:52:14]NVStorageSaveData done [16:52:14]OFDSenderStorePacket done [16:52:14]KKMCreateOFDPacket done [16:52:14]NVStorageSaveData kkm_last_timestamp [16:52:14]File name is /storage/kkm_last_timestamp [16:52:14]Write 4 bytes [16:52:14]NVStorageSaveData done [16:52:14]ExternCall_PrintAddStr [16:52:14]wPrintStart [16:52:14]Write to MH i2c: 01 00 00 31 00 31 [16:52:14]Write i2c OK [16:52:14]MH_I2C_Read... [16:52:14]Read from MH i2c: 01 [16:52:14]MH_I2C_Read... [16:52:14]Read from MH i2c: 01 07 00 [16:52:14]MH_I2C_Read... [16:52:14]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [16:52:14]RasterBufferAndPrint [16:52:14]line Счет N : (1)2885167 [16:52:14]line ИНН: 02508201610067 [16:52:14]line Контрольно-Кассовый Чек [16:52:14]line ПРОДАЖА [16:52:14]line ТРК (МРК, ГНК) : 11 [16:52:14]line Товар: 2710194240 [16:52:14]line D-ENERGY Дт-К-2 [16:52:14]line 10.370 * 77.20 [16:52:14]line = 800.56 [16:52:14]line НДС 12% НСП 1% [16:52:14]line > о реализуемом товаре [16:52:14]line ОКРУГЛЕНИЕ: -0.56 [16:52:14]line ИТОГО: 800.00 [16:52:14]line Внесено: 800.00 [16:52:14]line СДАЧА: 0.00 [16:52:14]line НСП 1% : 7.08 [16:52:14]line НДС 12% : 85.01 [16:52:14]line Наличными: 800.00 [16:52:14]line Безнал.: 0.00 [16:52:14]line Место: АЗС № 85 "Партнер Нефть" [16:52:14]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:52:14]line СНО: Общий режим [16:52:14]line Чек 284 20.10.2024 16:52 [16:52:14]line Смена: 193 ФФД: 1.0 [16:52:14]line ЗНМ: 0300000167 [16:52:14]line РНМ: 0000000000156251 [16:52:14]line Версия ККМ: v1.0 [16:52:14]line ФМ: 0000000000963346 [16:52:14]line ФД: 69439 [16:52:14]line ФПД: 49161367904816 [16:52:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T165212&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69439&fm=49161367904816&tin=02508201610067®Number=0000000000156251&sum=80000 [16:52:14]written 0, free lines is 4095 [16:52:14]OFD Sender: Processing packet 69439 [packets to send 18, broken 17] [16:52:14]ProducePacketName [16:52:14]name=ofd_packets/00069439 [16:52:14]OFD Sender: To server: pG, [16:52:14]CommunicateWithHost lk.salyk.kg:30040 [16:52:14]ConnectInit lk.salyk.kg [16:52:14]Connected sock=11 [16:52:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 4F 19 0D 01 A8 8C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 3C 35 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3F 0F 01 00 35 04 06 00 2C B6 45 DE E2 30 A3 4C E2 C9 DA DD 4D A5 [16:52:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 69 CE 47 00 8F 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 3F 0F 01 00 F4 03 04 00 E3 DE 14 67 B6 04 01 00 00 23 30 AB A9 11 20 B4 5D [16:52:14]CommunicateWithHost err = 0 [16:52:14]CheckOFDResponse [16:52:14]1017 (14) - 77093643461234 [16:52:14]1041 (16) - 0000000000963346 [16:52:14]1040 (4) - 69439 [16:52:14]1012 (4) - 20.10.2024 10:43 [16:52:14]1206 (1) - 0 [16:52:14]OFD Sender: Remove packet 69439 [16:52:14]ProducePacketName [16:52:14]name=ofd_packets/00069439 [16:52:14]NVStorageDeleteData [16:52:14]Write to MH i2c: 01 00 00 5C 00 5C [16:52:14]Write i2c OK [16:52:14]MH_I2C_Read... [16:52:14]Read from MH i2c: 01 [16:52:14]MH_I2C_Read... [16:52:14]Read from MH i2c: 01 07 00 [16:52:14]MH_I2C_Read... [16:52:14]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 0E 0D 7E [16:52:14]RasterBufferAndPrint [16:52:14]line [16:52:14]line [16:52:14]line [16:52:14]line [16:52:14]line [16:52:14]written 0, free lines is 3354 [16:52:14]MH_Cut [16:52:14]Write to MH i2c: D1 01 00 63 00 01 35 [16:52:14]Write i2c OK [16:52:14]MH_I2C_Read... [16:52:14]Read from MH i2c: D1 [16:52:14]MH_I2C_Read... [16:52:14]Read from MH i2c: D1 01 00 [16:52:14]MH_I2C_Read... [16:52:14]Read from MH i2c: D1 01 00 63 00 00 34 [16:52:14]Write to MH i2c: 01 00 00 64 00 64 [16:52:14]Write i2c OK [16:52:14]MH_I2C_Read... [16:52:15]OFD Sender: No OFD packet to send [16:52:15]*** Cut start [16:52:15]*** Partial cut [16:52:15]*** CUTSNS_PIN = 1 [16:52:15]*** CUTSNS_PIN = 0 [16:52:15]*** Brake cut motor [16:52:16]Read from MH i2c: 01 [16:52:16]MH_I2C_Read... [16:52:16]*** Stop cut motor [16:52:16]*** Cut end [16:52:16]Read from MH i2c: 01 07 00 [16:52:16]MH_I2C_Read... [16:52:16]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [16:52:16]process_action close_receipt done [16:52:16]requested_data is exist [16:52:16]produce_requested_data [16:52:16]requested_item fm.sn is exist - process it [16:52:16]wFMCommunicate request_size=4 [16:52:16]MH_SAM_APDU [16:52:16]CAPDU: 80 11 00 00 [16:52:16]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [16:52:16]Write i2c OK [16:52:16]MH_I2C_Read... [16:52:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:16]Read from MH i2c: E2 [16:52:16]MH_I2C_Read... [16:52:16]Read from MH i2c: E2 17 00 [16:52:16]MH_I2C_Read... [16:52:16]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 31 [16:52:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:52:16]wFMCommunicate OK [16:52:16]requested_item fd.num is exist - process it [16:52:16]SAM_PROTO_GetFieldsCounters [16:52:16]wFMCommunicate request_size=4 [16:52:16]MH_SAM_APDU [16:52:16]CAPDU: 80 13 00 00 [16:52:16]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [16:52:16]Write i2c OK [16:52:16]MH_I2C_Read... [16:52:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:52:16]Read from MH i2c: E2 [16:52:16]MH_I2C_Read... [16:52:16]Read from MH i2c: E2 62 00 [16:52:16]MH_I2C_Read... [16:52:16]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3F 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 64 [16:52:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 3F 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:52:16]wFMCommunicate OK [16:52:16]SAM_PROTO_GetFieldsCounters done [16:52:16]requested_item shift.num is exist - process it [16:52:16]requested_item shift.opened is exist - process it [16:52:16]req_shift_opened [16:52:16]FM_GetShiftState [16:52:16]SAM_PROTO_GetShiftState [16:52:16]wFMCommunicate request_size=4 [16:52:16]MH_SAM_APDU [16:52:16]CAPDU: 80 13 01 00 [16:52:16]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [16:52:16]Write i2c OK [16:52:16]MH_I2C_Read... [16:52:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:16]Read from MH i2c: E2 [16:52:16]MH_I2C_Read... [16:52:16]Read from MH i2c: E2 0E 00 [16:52:16]MH_I2C_Read... [16:52:16]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 EA [16:52:16]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:52:16]wFMCommunicate OK [16:52:16]SAM_PROTO_GetShiftState done [16:52:16]FM_GetShiftState done [16:52:16]req_shift_opened done [16:52:16]requested_item shift.open_date is exist - process it [16:52:16]req_shift_open_date [16:52:16]req_shift_open_date done [16:52:16]produce_requested_data done [16:52:16]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69439,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [16:52:16]process_action_free close_receipt [16:52:16]json_value_free [16:52:16]json_value_free done [16:52:16]process_json_proto returns [16:52:16]Send response to host [16:52:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69439,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [16:52:16]free response buf [16:52:16]execute_script done [16:52:16]execute_script returns [16:52:16]free content buf [16:52:16]Sock 8.Close socket [16:52:16]Sock 8.Thread stoped [16:52:16]accept exits with 9 [16:52:16]New connection [16:52:16]New thread 3067096420 created [16:52:16]Thread 3067239780 joined [16:52:16]Waiting for new connection... [16:52:16] Sock 9.Parse request [16:52:16]Sock 9.Check first char [16:52:16]Sock 9.First char is OK [16:52:16]request: POST /json_proto HTTP/1.0 [16:52:16]Method: POST [16:52:16]URL: /json_proto [16:52:16]Method is POST - this is cgi request [16:52:16]url: /json_proto [16:52:16]query_string will be loaded in cgi processing [16:52:16]execute_cgi json_proto POST (null) [16:52:16]execute_cgi path=json_proto method=POST [16:52:16]POST find Content-Length [16:52:16]Host: 172.17.50.3:8080 [16:52:16]Content-Length: 680 [16:52:16]Content-Type: application/json [16:52:16] [16:52:16]POST finish read [16:52:16]Found Content-Length = 680 [16:52:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:16]execute_script... [16:52:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:16]POST & json_proto [16:52:16]process_json_proto [16:52:16]json parsed OK: [16:52:16]protocol is kg_v1.0 [16:52:16]action value=close_receipt [16:52:16]process_action close_receipt [16:52:16]cmd_close_receipt [16:52:16]MH_GetDate [16:52:16]Write to MH i2c: F0 00 00 68 00 57 [16:52:16]Write i2c OK [16:52:16]MH_I2C_Read... [16:52:16]Read from MH i2c: F0 [16:52:16]MH_I2C_Read... [16:52:16]Read from MH i2c: F0 09 00 [16:52:16]MH_I2C_Read... [16:52:16]Read from MH i2c: F0 09 00 68 00 00 41 35 15 67 6B 98 1E 66 D9 [16:52:16]GetLastDocTimeStamp 1729443132 [16:52:16]current date 1729443137 [16:52:16]FM_GetShiftState [16:52:16]SAM_PROTO_GetShiftState [16:52:16]wFMCommunicate request_size=4 [16:52:16]MH_SAM_APDU [16:52:16]CAPDU: 80 13 01 00 [16:52:16]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [16:52:16]Write i2c OK [16:52:16]MH_I2C_Read... [16:52:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:16]Read from MH i2c: E2 [16:52:16]MH_I2C_Read... [16:52:16]Read from MH i2c: E2 0E 00 [16:52:16]MH_I2C_Read... [16:52:16]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 EC [16:52:16]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:52:16]wFMCommunicate OK [16:52:16]SAM_PROTO_GetShiftState done [16:52:16]FM_GetShiftState done [16:52:16]opened in 1729383220 [16:52:16]opened+sec_in_day 1729469620 [16:52:16]quantity*price = 100050 [16:52:16]sum+1 = 100052 [16:52:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 285 20.10.2024 16:52 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69440 ФПД: 236390767268383 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T165217&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69440&fm=236390767268383&tin=02508201610067®Number=0000000000156251&sum=100000 [16:52:18]StoreToDocumentArchive [16:52:18]shift 193 fd 69440 [16:52:18]save to /storage/0193/doc_00069440 [16:52:18]save last doc name /storage/0193/doc_00069440 to /storage/kkm_last_doc_name [16:52:18]save OK [16:52:18]Clear old archive folders... [16:52:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:52:18]tlvbuf is 00CF0E20 [16:52:18]SAM_PROTO_ClearQueue [16:52:18]wFMCommunicate request_size=4 [16:52:18]MH_SAM_APDU [16:52:18]CAPDU: 80 09 00 00 [16:52:18]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [16:52:18]Write i2c OK [16:52:18]MH_I2C_Read... [16:52:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:52:18]Read from MH i2c: E2 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: E2 03 00 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [16:52:18]RAPDU: 90 00 [16:52:18]wFMCommunicate OK [16:52:18]SAM_PROTO_ClearQueue done [16:52:18]KKMCreateOFDPacket [16:52:18]OFDProtocolAddRootSTLVToBuf [16:52:18]FM_MakeSignedData [16:52:18]FM_MakeSignedData [16:52:18]SAM_PROTO_SignData [16:52:18]wFMCommunicate request_size=4 [16:52:18]MH_SAM_APDU [16:52:18]CAPDU: 80 0D 01 02 [16:52:18]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [16:52:18]Write i2c OK [16:52:18]MH_I2C_Read... [16:52:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:52:18]Read from MH i2c: E2 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: E2 03 00 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [16:52:18]RAPDU: 90 00 [16:52:18]wFMCommunicate OK [16:52:18]wFMCommunicate request_size=255 [16:52:18]MH_SAM_APDU [16:52:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 41 35 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 40 0F 01 00 35 04 06 00 D6 FF 03 B6 [16:52:18]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 41 35 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 40 0F 01 00 35 04 06 00 D6 FF 03 B6 00 00 1E [16:52:18]Write i2c OK [16:52:18]MH_I2C_Read... [16:52:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:18]Read from MH i2c: E2 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: E2 03 00 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [16:52:18]RAPDU: 90 00 [16:52:18]wFMCommunicate OK [16:52:18]wFMCommunicate request_size=7 [16:52:18]MH_SAM_APDU [16:52:18]CAPDU: 80 0D 02 02 02 12 1F [16:52:18]Write to MH i2c: E2 0A 00 79 00 80 0D 02 02 02 00 12 1F 00 00 28 [16:52:18]Write i2c OK [16:52:18]MH_I2C_Read... [16:52:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:18]Read from MH i2c: E2 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: E2 03 00 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [16:52:18]RAPDU: 90 00 [16:52:18]wFMCommunicate OK [16:52:18]wFMCommunicate request_size=4 [16:52:18]MH_SAM_APDU [16:52:18]CAPDU: 80 0D 03 02 [16:52:18]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [16:52:18]Write i2c OK [16:52:18]MH_I2C_Read... [16:52:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:52:18]Read from MH i2c: E2 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: E2 0B 00 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: E2 0B 00 7A 00 00 12 48 B1 FB F4 23 1A BB 90 00 E8 [16:52:18]RAPDU: 12 48 B1 FB F4 23 1A BB 90 00 [16:52:18]wFMCommunicate OK [16:52:18]SAM_PROTO_SignData done [16:52:18]FM_MakeSignedData done [16:52:18]CreateOFDProtocolMessage [16:52:18]wFMCommunicate request_size=4 [16:52:18]MH_SAM_APDU [16:52:18]CAPDU: 80 11 00 00 [16:52:18]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [16:52:18]Write i2c OK [16:52:18]MH_I2C_Read... [16:52:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:18]Read from MH i2c: E2 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: E2 17 00 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 47 [16:52:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:52:18]wFMCommunicate OK [16:52:18]CreateOFDProtocolMessage done [16:52:18]OFDSenderStorePacket 69440 [16:52:18]StoreOFDPacket docnum=69440 [16:52:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 BA 53 04 01 C5 A9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 41 35 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 40 0F 01 00 35 04 06 00 D6 FF 03 B6 12 1F 12 48 B1 FB F4 23 1A BB [16:52:18]CheckFolder [16:52:18]dirname=/storage/ofd_packets [16:52:18]CheckFolder done [16:52:18]ProducePacketName [16:52:18]name=ofd_packets/00069440 [16:52:18]NVStorageSaveData ofd_packets/00069440 [16:52:18]File name is /storage/ofd_packets/00069440 [16:52:18]Write 298 bytes [16:52:18]NVStorageSaveData done [16:52:18]OFDSenderStorePacket done [16:52:18]KKMCreateOFDPacket done [16:52:18]NVStorageSaveData kkm_last_timestamp [16:52:18]File name is /storage/kkm_last_timestamp [16:52:18]Write 4 bytes [16:52:18]NVStorageSaveData done [16:52:18]ExternCall_PrintAddStr [16:52:18]wPrintStart [16:52:18]Write to MH i2c: 01 00 00 7C 00 7C [16:52:18]Write i2c OK [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: 01 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: 01 07 00 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [16:52:18]RasterBufferAndPrint [16:52:18]line Счет N : (1)2885168 [16:52:18]line ИНН: 02508201610067 [16:52:18]line Контрольно-Кассовый Чек [16:52:19]line ПРОДАЖА [16:52:19]line ТРК (МРК, ГНК) : 61 [16:52:19]line Товар: 2710194210 [16:52:19]line ДТ-К-5 [16:52:19]line 13.130 * 76.20 [16:52:19]line = 1000.51 [16:52:19]line НДС 12% НСП 1% [16:52:19]line > о реализуемом товаре [16:52:19]line ОКРУГЛЕНИЕ: -0.51 [16:52:19]line ИТОГО: 1000.00 [16:52:19]line Внесено: 1000.00 [16:52:19]line СДАЧА: 0.00 [16:52:19]line НСП 1% : 8.85 [16:52:19]line НДС 12% : 106.25 [16:52:19]line Наличными: 1000.00 [16:52:19]line Безнал.: 0.00 [16:52:19]line Место: АЗС № 85 "Партнер Нефть" [16:52:19]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:52:19]line СНО: Общий режим [16:52:19]line Чек 285 20.10.2024 16:52 [16:52:19]line Смена: 193 ФФД: 1.0 [16:52:19]line ЗНМ: 0300000167 [16:52:19]line РНМ: 0000000000156251 [16:52:19]line Версия ККМ: v1.0 [16:52:19]line ФМ: 0000000000963346 [16:52:19]line ФД: 69440 [16:52:19]line ФПД: 236390767268383 [16:52:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T165217&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69440&fm=236390767268383&tin=02508201610067®Number=0000000000156251&sum=100000 [16:52:19]written 0, free lines is 4095 [16:52:19]OFD Sender: Processing packet 69440 [packets to send 18, broken 17] [16:52:19]ProducePacketName [16:52:19]name=ofd_packets/00069440 [16:52:19]OFD Sender: To server: pG, [16:52:19]CommunicateWithHost lk.salyk.kg:30040 [16:52:19]ConnectInit lk.salyk.kg [16:52:19]Connected sock=10 [16:52:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 BA 53 04 01 C5 A9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 41 35 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 40 0F 01 00 35 04 06 00 D6 FF 03 B6 12 1F 12 48 B1 FB F4 23 1A BB [16:52:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 22 73 47 00 25 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 40 0F 01 00 F4 03 04 00 E7 DE 14 67 B6 04 01 00 00 C3 0E A4 FE 48 8C 3B CB [16:52:19]CommunicateWithHost err = 0 [16:52:19]CheckOFDResponse [16:52:19]1017 (14) - 77093643461234 [16:52:19]1041 (16) - 0000000000963346 [16:52:19]1040 (4) - 69440 [16:52:19]1012 (4) - 20.10.2024 10:43 [16:52:19]1206 (1) - 0 [16:52:19]OFD Sender: Remove packet 69440 [16:52:19]ProducePacketName [16:52:19]name=ofd_packets/00069440 [16:52:19]NVStorageDeleteData [16:52:19]Write to MH i2c: 01 00 00 A7 00 A7 [16:52:19]Write i2c OK [16:52:19]MH_I2C_Read... [16:52:19]Read from MH i2c: 01 [16:52:19]MH_I2C_Read... [16:52:19]Read from MH i2c: 01 07 00 [16:52:19]MH_I2C_Read... [16:52:19]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 27 0D E2 [16:52:19]RasterBufferAndPrint [16:52:19]line [16:52:19]line [16:52:19]line [16:52:19]line [16:52:19]line [16:52:19]written 0, free lines is 3395 [16:52:19]MH_Cut [16:52:19]Write to MH i2c: D1 01 00 AE 00 01 80 [16:52:19]Write i2c OK [16:52:19]MH_I2C_Read... [16:52:19]Read from MH i2c: D1 [16:52:19]MH_I2C_Read... [16:52:19]Read from MH i2c: D1 01 00 [16:52:19]MH_I2C_Read... [16:52:19]Read from MH i2c: D1 01 00 AE 00 00 7F [16:52:19]Write to MH i2c: 01 00 00 AF 00 AF [16:52:19]Write i2c OK [16:52:19]MH_I2C_Read... [16:52:20]OFD Sender: No OFD packet to send [16:52:20]*** Cut start [16:52:20]*** Partial cut [16:52:20]*** CUTSNS_PIN = 1 [16:52:20]*** CUTSNS_PIN = 0 [16:52:20]*** Brake cut motor [16:52:20]Read from MH i2c: 01 [16:52:20]MH_I2C_Read... [16:52:20]*** Stop cut motor [16:52:20]*** Cut end [16:52:20]Read from MH i2c: 01 07 00 [16:52:20]MH_I2C_Read... [16:52:20]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [16:52:20]process_action close_receipt done [16:52:20]requested_data is exist [16:52:20]produce_requested_data [16:52:20]requested_item fm.sn is exist - process it [16:52:20]wFMCommunicate request_size=4 [16:52:20]MH_SAM_APDU [16:52:20]CAPDU: 80 11 00 00 [16:52:20]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [16:52:20]Write i2c OK [16:52:20]MH_I2C_Read... [16:52:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:20]Read from MH i2c: E2 [16:52:20]MH_I2C_Read... [16:52:20]Read from MH i2c: E2 17 00 [16:52:20]MH_I2C_Read... [16:52:20]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7C [16:52:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:52:20]wFMCommunicate OK [16:52:20]requested_item fd.num is exist - process it [16:52:20]SAM_PROTO_GetFieldsCounters [16:52:20]wFMCommunicate request_size=4 [16:52:20]MH_SAM_APDU [16:52:20]CAPDU: 80 13 00 00 [16:52:20]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [16:52:20]Write i2c OK [16:52:20]MH_I2C_Read... [16:52:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:52:20]Read from MH i2c: E2 [16:52:20]MH_I2C_Read... [16:52:20]Read from MH i2c: E2 62 00 [16:52:20]MH_I2C_Read... [16:52:21]Read from MH i2c: E2 62 00 B1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 40 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 B3 [16:52:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 40 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:52:21]wFMCommunicate OK [16:52:21]SAM_PROTO_GetFieldsCounters done [16:52:21]requested_item shift.num is exist - process it [16:52:21]requested_item shift.opened is exist - process it [16:52:21]req_shift_opened [16:52:21]FM_GetShiftState [16:52:21]SAM_PROTO_GetShiftState [16:52:21]wFMCommunicate request_size=4 [16:52:21]MH_SAM_APDU [16:52:21]CAPDU: 80 13 01 00 [16:52:21]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [16:52:21]Write i2c OK [16:52:21]MH_I2C_Read... [16:52:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:21]Read from MH i2c: E2 [16:52:21]MH_I2C_Read... [16:52:21]Read from MH i2c: E2 0E 00 [16:52:21]MH_I2C_Read... [16:52:21]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 35 [16:52:21]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:52:21]wFMCommunicate OK [16:52:21]SAM_PROTO_GetShiftState done [16:52:21]FM_GetShiftState done [16:52:21]req_shift_opened done [16:52:21]requested_item shift.open_date is exist - process it [16:52:21]req_shift_open_date [16:52:21]req_shift_open_date done [16:52:21]produce_requested_data done [16:52:21]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69440,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [16:52:21]process_action_free close_receipt [16:52:21]json_value_free [16:52:21]json_value_free done [16:52:21]process_json_proto returns [16:52:21]Send response to host [16:52:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69440,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [16:52:21]free response buf [16:52:21]execute_script done [16:52:21]execute_script returns [16:52:21]free content buf [16:52:21]Sock 9.Close socket [16:52:21]Sock 9.Thread stoped [16:52:21]accept exits with 8 [16:52:21]New connection [16:52:21]New thread 3067239780 created [16:52:21]Thread 3067096420 joined [16:52:21]Waiting for new connection... [16:52:21] Sock 8.Parse request [16:52:21]Sock 8.Check first char [16:52:21]Sock 8.First char is OK [16:52:21]request: POST /json_proto HTTP/1.0 [16:52:21]Method: POST [16:52:21]URL: /json_proto [16:52:21]Method is POST - this is cgi request [16:52:21]url: /json_proto [16:52:21]query_string will be loaded in cgi processing [16:52:21]execute_cgi json_proto POST (null) [16:52:21]execute_cgi path=json_proto method=POST [16:52:21]POST find Content-Length [16:52:21]Host: 172.17.50.3:8080 [16:52:21]Content-Length: 678 [16:52:21]Content-Type: application/json [16:52:21] [16:52:21]POST finish read [16:52:21]Found Content-Length = 678 [16:52:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:21]execute_script... [16:52:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:21]POST & json_proto [16:52:21]process_json_proto [16:52:21]json parsed OK: [16:52:21]protocol is kg_v1.0 [16:52:21]action value=close_receipt [16:52:21]process_action close_receipt [16:52:21]cmd_close_receipt [16:52:21]MH_GetDate [16:52:21]Write to MH i2c: F0 00 00 B3 00 A2 [16:52:21]Write i2c OK [16:52:21]MH_I2C_Read... [16:52:21]Read from MH i2c: F0 [16:52:21]MH_I2C_Read... [16:52:21]Read from MH i2c: F0 09 00 [16:52:21]MH_I2C_Read... [16:52:21]Read from MH i2c: F0 09 00 B3 00 00 46 35 15 67 6B 98 1E 66 29 [16:52:21]GetLastDocTimeStamp 1729443137 [16:52:21]current date 1729443142 [16:52:21]FM_GetShiftState [16:52:21]SAM_PROTO_GetShiftState [16:52:21]wFMCommunicate request_size=4 [16:52:21]MH_SAM_APDU [16:52:21]CAPDU: 80 13 01 00 [16:52:21]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [16:52:21]Write i2c OK [16:52:21]MH_I2C_Read... [16:52:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:21]Read from MH i2c: E2 [16:52:21]MH_I2C_Read... [16:52:21]Read from MH i2c: E2 0E 00 [16:52:21]MH_I2C_Read... [16:52:21]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 37 [16:52:21]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:52:21]wFMCommunicate OK [16:52:21]SAM_PROTO_GetShiftState done [16:52:21]FM_GetShiftState done [16:52:21]opened in 1729383220 [16:52:21]opened+sec_in_day 1729469620 [16:52:21]quantity*price = 50041 [16:52:21]sum+1 = 50042 [16:52:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 286 20.10.2024 16:52 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69441 ФПД: 146057445521996 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T165222&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69441&fm=146057445521996&tin=02508201610067®Number=0000000000156251&sum=50000 [16:52:22]StoreToDocumentArchive [16:52:22]shift 193 fd 69441 [16:52:22]save to /storage/0193/doc_00069441 [16:52:22]save last doc name /storage/0193/doc_00069441 to /storage/kkm_last_doc_name [16:52:22]save OK [16:52:22]Clear old archive folders... [16:52:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:52:22]tlvbuf is 00D635B0 [16:52:22]SAM_PROTO_ClearQueue [16:52:22]wFMCommunicate request_size=4 [16:52:22]MH_SAM_APDU [16:52:22]CAPDU: 80 09 00 00 [16:52:22]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [16:52:22]Write i2c OK [16:52:22]MH_I2C_Read... [16:52:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:52:22]Read from MH i2c: E2 [16:52:22]MH_I2C_Read... [16:52:22]Read from MH i2c: E2 03 00 [16:52:22]MH_I2C_Read... [16:52:22]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [16:52:22]RAPDU: 90 00 [16:52:22]wFMCommunicate OK [16:52:22]SAM_PROTO_ClearQueue done [16:52:22]KKMCreateOFDPacket [16:52:22]OFDProtocolAddRootSTLVToBuf [16:52:22]FM_MakeSignedData [16:52:22]FM_MakeSignedData [16:52:22]SAM_PROTO_SignData [16:52:22]wFMCommunicate request_size=4 [16:52:22]MH_SAM_APDU [16:52:22]CAPDU: 80 0D 01 02 [16:52:22]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [16:52:22]Write i2c OK [16:52:22]MH_I2C_Read... [16:52:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:52:22]Read from MH i2c: E2 [16:52:22]MH_I2C_Read... [16:52:22]Read from MH i2c: E2 03 00 [16:52:22]MH_I2C_Read... [16:52:22]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [16:52:22]RAPDU: 90 00 [16:52:22]wFMCommunicate OK [16:52:22]wFMCommunicate request_size=255 [16:52:22]MH_SAM_APDU [16:52:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 46 35 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 41 0F 01 00 35 04 06 00 84 [16:52:22]Write to MH i2c: E2 02 01 C3 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 46 35 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 41 0F 01 00 35 04 06 00 84 00 00 70 [16:52:22]Write i2c OK [16:52:22]MH_I2C_Read... [16:52:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:23]Read from MH i2c: E2 [16:52:23]MH_I2C_Read... [16:52:23]Read from MH i2c: E2 03 00 [16:52:23]MH_I2C_Read... [16:52:23]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [16:52:23]RAPDU: 90 00 [16:52:23]wFMCommunicate OK [16:52:23]wFMCommunicate request_size=10 [16:52:23]MH_SAM_APDU [16:52:23]CAPDU: 80 0D 02 02 05 D6 A6 28 3A 4C [16:52:23]Write to MH i2c: E2 0D 00 C4 00 80 0D 02 02 05 00 D6 A6 28 3A 4C 00 00 72 [16:52:23]Write i2c OK [16:52:23]MH_I2C_Read... [16:52:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:23]Read from MH i2c: E2 [16:52:23]MH_I2C_Read... [16:52:23]Read from MH i2c: E2 03 00 [16:52:23]MH_I2C_Read... [16:52:23]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [16:52:23]RAPDU: 90 00 [16:52:23]wFMCommunicate OK [16:52:23]wFMCommunicate request_size=4 [16:52:23]MH_SAM_APDU [16:52:23]CAPDU: 80 0D 03 02 [16:52:23]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [16:52:23]Write i2c OK [16:52:23]MH_I2C_Read... [16:52:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:52:23]Read from MH i2c: E2 [16:52:23]MH_I2C_Read... [16:52:23]Read from MH i2c: E2 0B 00 [16:52:23]MH_I2C_Read... [16:52:23]Read from MH i2c: E2 0B 00 C5 00 00 98 D5 BA 5B DD FF DA F7 90 00 70 [16:52:23]RAPDU: 98 D5 BA 5B DD FF DA F7 90 00 [16:52:23]wFMCommunicate OK [16:52:23]SAM_PROTO_SignData done [16:52:23]FM_MakeSignedData done [16:52:23]CreateOFDProtocolMessage [16:52:23]wFMCommunicate request_size=4 [16:52:23]MH_SAM_APDU [16:52:23]CAPDU: 80 11 00 00 [16:52:23]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [16:52:23]Write i2c OK [16:52:23]MH_I2C_Read... [16:52:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:23]Read from MH i2c: E2 [16:52:23]MH_I2C_Read... [16:52:23]Read from MH i2c: E2 17 00 [16:52:23]MH_I2C_Read... [16:52:23]Read from MH i2c: E2 17 00 C6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 92 [16:52:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:52:23]wFMCommunicate OK [16:52:23]CreateOFDProtocolMessage done [16:52:23]OFDSenderStorePacket 69441 [16:52:23]StoreOFDPacket docnum=69441 [16:52:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 00 D6 07 01 9C 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 46 35 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 41 0F 01 00 35 04 06 00 84 D6 A6 28 3A 4C 98 D5 BA 5B DD FF DA F7 [16:52:23]CheckFolder [16:52:23]dirname=/storage/ofd_packets [16:52:23]CheckFolder done [16:52:23]ProducePacketName [16:52:23]name=ofd_packets/00069441 [16:52:23]NVStorageSaveData ofd_packets/00069441 [16:52:23]File name is /storage/ofd_packets/00069441 [16:52:23]Write 301 bytes [16:52:23]NVStorageSaveData done [16:52:23]OFDSenderStorePacket done [16:52:23]KKMCreateOFDPacket done [16:52:23]NVStorageSaveData kkm_last_timestamp [16:52:23]File name is /storage/kkm_last_timestamp [16:52:23]Write 4 bytes [16:52:23]NVStorageSaveData done [16:52:23]ExternCall_PrintAddStr [16:52:23]wPrintStart [16:52:23]Write to MH i2c: 01 00 00 C7 00 C7 [16:52:23]Write i2c OK [16:52:23]MH_I2C_Read... [16:52:23]Read from MH i2c: 01 [16:52:23]MH_I2C_Read... [16:52:23]Read from MH i2c: 01 07 00 [16:52:23]MH_I2C_Read... [16:52:23]Read from MH i2c: 01 07 00 C7 00 00 00 00 00 00 FF 0F DC [16:52:23]RasterBufferAndPrint [16:52:23]line Счет N : (1)2885169 [16:52:23]line ИНН: 02508201610067 [16:52:23]line Контрольно-Кассовый Чек [16:52:23]line ПРОДАЖА [16:52:23]line ТРК (МРК, ГНК) : 32 [16:52:23]line Товар: 2710124130 [16:52:23]line Аи-92-К-5 [16:52:23]line 7.480 * 66.90 [16:52:23]line = 500.41 [16:52:23]line НДС 12% НСП 1% [16:52:23]line > о реализуемом товаре [16:52:23]line ОКРУГЛЕНИЕ: -0.41 [16:52:23]line ИТОГО: 500.00 [16:52:23]line Внесено: 500.00 [16:52:23]line СДАЧА: 0.00 [16:52:23]line НСП 1% : 4.43 [16:52:23]line НДС 12% : 53.14 [16:52:23]line Наличными: 500.00 [16:52:23]line Безнал.: 0.00 [16:52:23]line Место: АЗС № 85 "Партнер Нефть" [16:52:23]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:52:23]line СНО: Общий режим [16:52:23]line Чек 286 20.10.2024 16:52 [16:52:23]line Смена: 193 ФФД: 1.0 [16:52:23]line ЗНМ: 0300000167 [16:52:23]line РНМ: 0000000000156251 [16:52:23]line Версия ККМ: v1.0 [16:52:23]line ФМ: 0000000000963346 [16:52:23]line ФД: 69441 [16:52:23]line ФПД: 146057445521996 [16:52:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T165222&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69441&fm=146057445521996&tin=02508201610067®Number=0000000000156251&sum=50000 [16:52:23]OFD Sender: Processing packet 69441 [packets to send 18, broken 17] [16:52:23]ProducePacketName [16:52:23]name=ofd_packets/00069441 [16:52:23]OFD Sender: To server: pG, [16:52:23]CommunicateWithHost lk.salyk.kg:30040 [16:52:23]ConnectInit lk.salyk.kg [16:52:23]written 0, free lines is 4095 [16:52:23]Connected sock=10 [16:52:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 00 D6 07 01 9C 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 46 35 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 41 0F 01 00 35 04 06 00 84 D6 A6 28 3A 4C 98 D5 BA 5B DD FF DA F7 [16:52:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 67 3F 47 00 33 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 41 0F 01 00 F4 03 04 00 EC DE 14 67 B6 04 01 00 00 44 07 D8 1B 24 E5 26 16 [16:52:24]CommunicateWithHost err = 0 [16:52:24]CheckOFDResponse [16:52:24]1017 (14) - 77093643461234 [16:52:24]1041 (16) - 0000000000963346 [16:52:24]1040 (4) - 69441 [16:52:24]1012 (4) - 20.10.2024 10:43 [16:52:24]1206 (1) - 0 [16:52:24]OFD Sender: Remove packet 69441 [16:52:24]ProducePacketName [16:52:24]name=ofd_packets/00069441 [16:52:24]NVStorageDeleteData [16:52:24]Write to MH i2c: 01 00 00 F2 00 F2 [16:52:24]Write i2c OK [16:52:24]MH_I2C_Read... [16:52:24]Read from MH i2c: 01 [16:52:24]MH_I2C_Read... [16:52:24]Read from MH i2c: 01 07 00 [16:52:24]MH_I2C_Read... [16:52:24]Read from MH i2c: 01 07 00 F2 00 00 00 00 00 00 5F 0D 65 [16:52:24]RasterBufferAndPrint [16:52:24]line [16:52:24]line [16:52:24]line [16:52:24]line [16:52:24]line [16:52:24]written 0, free lines is 3449 [16:52:24]MH_Cut [16:52:24]Write to MH i2c: D1 01 00 F9 00 01 CB [16:52:24]Write i2c OK [16:52:24]MH_I2C_Read... [16:52:24]Read from MH i2c: D1 [16:52:24]MH_I2C_Read... [16:52:24]Read from MH i2c: D1 01 00 [16:52:24]MH_I2C_Read... [16:52:24]Read from MH i2c: D1 01 00 F9 00 00 CA [16:52:24]Write to MH i2c: 01 00 00 FA 00 FA [16:52:24]Write i2c OK [16:52:24]MH_I2C_Read... [16:52:24]OFD Sender: No OFD packet to send [16:52:24]*** Cut start [16:52:24]*** Partial cut [16:52:24]*** CUTSNS_PIN = 1 [16:52:24]*** CUTSNS_PIN = 0 [16:52:25]*** Brake cut motor [16:52:25]Read from MH i2c: 01 [16:52:25]MH_I2C_Read... [16:52:25]*** Stop cut motor [16:52:25]*** Cut end [16:52:25]Read from MH i2c: 01 07 00 [16:52:25]MH_I2C_Read... [16:52:25]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [16:52:25]process_action close_receipt done [16:52:25]requested_data is exist [16:52:25]produce_requested_data [16:52:25]requested_item fm.sn is exist - process it [16:52:25]wFMCommunicate request_size=4 [16:52:25]MH_SAM_APDU [16:52:25]CAPDU: 80 11 00 00 [16:52:25]Write to MH i2c: E2 08 00 FB 00 80 11 00 00 00 00 00 00 75 [16:52:25]Write i2c OK [16:52:25]MH_I2C_Read... [16:52:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:25]Read from MH i2c: E2 [16:52:25]MH_I2C_Read... [16:52:25]Read from MH i2c: E2 17 00 [16:52:25]MH_I2C_Read... [16:52:25]Read from MH i2c: E2 17 00 FB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C7 [16:52:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:52:25]wFMCommunicate OK [16:52:25]requested_item fd.num is exist - process it [16:52:25]SAM_PROTO_GetFieldsCounters [16:52:25]wFMCommunicate request_size=4 [16:52:25]MH_SAM_APDU [16:52:25]CAPDU: 80 13 00 00 [16:52:25]Write to MH i2c: E2 08 00 FC 00 80 13 00 00 00 00 00 00 78 [16:52:25]Write i2c OK [16:52:25]MH_I2C_Read... [16:52:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:52:25]Read from MH i2c: E2 [16:52:25]MH_I2C_Read... [16:52:25]Read from MH i2c: E2 62 00 [16:52:25]MH_I2C_Read... [16:52:25]Read from MH i2c: E2 62 00 FC 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 41 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 02 [16:52:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 41 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:52:25]wFMCommunicate OK [16:52:25]SAM_PROTO_GetFieldsCounters done [16:52:25]requested_item shift.num is exist - process it [16:52:25]requested_item shift.opened is exist - process it [16:52:25]req_shift_opened [16:52:25]FM_GetShiftState [16:52:25]SAM_PROTO_GetShiftState [16:52:25]wFMCommunicate request_size=4 [16:52:25]MH_SAM_APDU [16:52:25]CAPDU: 80 13 01 00 [16:52:25]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [16:52:25]Write i2c OK [16:52:25]MH_I2C_Read... [16:52:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:25]Read from MH i2c: E2 [16:52:25]MH_I2C_Read... [16:52:25]Read from MH i2c: E2 0E 00 [16:52:25]MH_I2C_Read... [16:52:25]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 80 [16:52:25]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:52:25]wFMCommunicate OK [16:52:25]SAM_PROTO_GetShiftState done [16:52:25]FM_GetShiftState done [16:52:25]req_shift_opened done [16:52:25]requested_item shift.open_date is exist - process it [16:52:25]req_shift_open_date [16:52:25]req_shift_open_date done [16:52:25]produce_requested_data done [16:52:25]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69441,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [16:52:25]process_action_free close_receipt [16:52:25]json_value_free [16:52:25]json_value_free done [16:52:25]process_json_proto returns [16:52:25]Send response to host [16:52:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69441,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [16:52:25]free response buf [16:52:25]execute_script done [16:52:25]execute_script returns [16:52:25]free content buf [16:52:25]Sock 8.Close socket [16:52:25]Sock 8.Thread stoped [16:52:29]OFD Sender: No OFD packet to send [16:52:34]OFD Sender: No OFD packet to send [16:52:39]OFD Sender: No OFD packet to send [16:52:44]OFD Sender: No OFD packet to send [16:52:49]OFD Sender: No OFD packet to send [16:52:54]OFD Sender: No OFD packet to send [16:52:59]OFD Sender: No OFD packet to send [16:53:04]OFD Sender: No OFD packet to send [16:53:09]OFD Sender: No OFD packet to send [16:53:14]OFD Sender: No OFD packet to send [16:53:19]OFD Sender: No OFD packet to send [16:53:24]OFD Sender: No OFD packet to send [16:53:29]OFD Sender: No OFD packet to send [16:53:34]OFD Sender: No OFD packet to send [16:53:39]OFD Sender: No OFD packet to send [16:53:44]OFD Sender: No OFD packet to send [16:53:49]OFD Sender: No OFD packet to send [16:53:54]OFD Sender: No OFD packet to send [16:53:59]OFD Sender: No OFD packet to send [16:54:04]OFD Sender: No OFD packet to send [16:54:09]OFD Sender: No OFD packet to send [16:54:14]OFD Sender: No OFD packet to send [16:54:19]OFD Sender: No OFD packet to send [16:54:24]OFD Sender: No OFD packet to send [16:54:29]OFD Sender: No OFD packet to send [16:54:34]OFD Sender: No OFD packet to send [16:54:39]OFD Sender: No OFD packet to send [16:54:44]OFD Sender: No OFD packet to send [16:54:49]OFD Sender: No OFD packet to send [16:54:54]OFD Sender: No OFD packet to send [16:54:59]OFD Sender: No OFD packet to send [16:55:04]OFD Sender: No OFD packet to send [16:55:09]OFD Sender: No OFD packet to send [16:55:14]OFD Sender: No OFD packet to send [16:55:19]OFD Sender: No OFD packet to send [16:55:24]OFD Sender: No OFD packet to send [16:55:29]OFD Sender: No OFD packet to send [16:55:34]OFD Sender: No OFD packet to send [16:55:39]OFD Sender: No OFD packet to send [16:55:44]OFD Sender: No OFD packet to send [16:55:49]OFD Sender: No OFD packet to send [16:55:54]OFD Sender: No OFD packet to send [16:55:59]OFD Sender: No OFD packet to send [16:56:04]OFD Sender: No OFD packet to send [16:56:09]OFD Sender: No OFD packet to send [16:56:14]OFD Sender: No OFD packet to send [16:56:19]OFD Sender: No OFD packet to send [16:56:25]OFD Sender: No OFD packet to send [16:56:30]OFD Sender: No OFD packet to send [16:56:35]OFD Sender: No OFD packet to send [16:56:35]accept exits with 9 [16:56:35]New connection [16:56:35]New thread 3067096420 created [16:56:35]Thread 3067239780 joined [16:56:35]Waiting for new connection... [16:56:35] Sock 9.Parse request [16:56:35]Sock 9.Check first char [16:56:35]Sock 9.First char is OK [16:56:35]request: POST /json_proto HTTP/1.0 [16:56:35]Method: POST [16:56:35]URL: /json_proto [16:56:35]Method is POST - this is cgi request [16:56:35]url: /json_proto [16:56:35]query_string will be loaded in cgi processing [16:56:35]execute_cgi json_proto POST (null) [16:56:35]execute_cgi path=json_proto method=POST [16:56:35]POST find Content-Length [16:56:35]Host: 172.17.50.3:8080 [16:56:35]Content-Length: 770 [16:56:35]Content-Type: application/json [16:56:35] [16:56:35]POST finish read [16:56:35]Found Content-Length = 770 [16:56:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:35]execute_script... [16:56: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)2885170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:35]POST & json_proto [16:56:35]process_json_proto [16:56:35]json parsed OK: [16:56:35]protocol is kg_v1.0 [16:56:35]action value=close_receipt [16:56:35]process_action close_receipt [16:56:35]cmd_close_receipt [16:56:35]MH_GetDate [16:56:35]Write to MH i2c: F0 00 00 FE 00 ED [16:56:35]Write i2c OK [16:56:35]MH_I2C_Read... [16:56:35]Read from MH i2c: F0 [16:56:35]MH_I2C_Read... [16:56:35]Read from MH i2c: F0 09 00 [16:56:35]MH_I2C_Read... [16:56:35]Read from MH i2c: F0 09 00 FE 00 00 43 36 15 67 6B 98 1E 66 72 [16:56:35]GetLastDocTimeStamp 1729443142 [16:56:35]current date 1729443395 [16:56:35]FM_GetShiftState [16:56:35]SAM_PROTO_GetShiftState [16:56:35]wFMCommunicate request_size=4 [16:56:35]MH_SAM_APDU [16:56:35]CAPDU: 80 13 01 00 [16:56:35]Write to MH i2c: E2 08 00 FF 00 80 13 01 00 00 00 00 00 7C [16:56:35]Write i2c OK [16:56:35]MH_I2C_Read... [16:56:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:35]Read from MH i2c: E2 [16:56:35]MH_I2C_Read... [16:56:35]Read from MH i2c: E2 0E 00 [16:56:35]MH_I2C_Read... [16:56:35]Read from MH i2c: E2 0E 00 FF 00 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 82 [16:56:35]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:56:35]wFMCommunicate OK [16:56:35]SAM_PROTO_GetShiftState done [16:56:35]FM_GetShiftState done [16:56:35]opened in 1729383220 [16:56:35]opened+sec_in_day 1729469620 [16:56:35]quantity*price = 200043 [16:56:35]sum+1 = 200044 [16:56:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.43 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.43 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 287 20.10.2024 16:56 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69442 ФПД: 144725728062675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T165635&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69442&fm=144725728062675&tin=02508201610067®Number=0000000000156251&sum=200043 [16:56:36]StoreToDocumentArchive [16:56:36]shift 193 fd 69442 [16:56:36]save to /storage/0193/doc_00069442 [16:56:36]save last doc name /storage/0193/doc_00069442 to /storage/kkm_last_doc_name [16:56:36]save OK [16:56:36]Clear old archive folders... [16:56:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:56:36]tlvbuf is 00CF3D70 [16:56:36]SAM_PROTO_ClearQueue [16:56:36]wFMCommunicate request_size=4 [16:56:36]MH_SAM_APDU [16:56:36]CAPDU: 80 09 00 00 [16:56:36]Write to MH i2c: E2 08 00 0C 01 80 09 00 00 00 00 00 00 7F [16:56:36]Write i2c OK [16:56:36]MH_I2C_Read... [16:56:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:56:36]Read from MH i2c: E2 [16:56:36]MH_I2C_Read... [16:56:36]Read from MH i2c: E2 03 00 [16:56:36]MH_I2C_Read... [16:56:36]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [16:56:36]RAPDU: 90 00 [16:56:36]wFMCommunicate OK [16:56:36]SAM_PROTO_ClearQueue done [16:56:36]KKMCreateOFDPacket [16:56:36]OFDProtocolAddRootSTLVToBuf [16:56:36]FM_MakeSignedData [16:56:36]FM_MakeSignedData [16:56:36]SAM_PROTO_SignData [16:56:36]wFMCommunicate request_size=4 [16:56:36]MH_SAM_APDU [16:56:36]CAPDU: 80 0D 01 02 [16:56:36]Write to MH i2c: E2 08 00 0D 01 80 0D 01 02 00 00 00 00 87 [16:56:36]Write i2c OK [16:56:36]MH_I2C_Read... [16:56:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:56:36]Read from MH i2c: E2 [16:56:36]MH_I2C_Read... [16:56:36]Read from MH i2c: E2 03 00 [16:56:36]MH_I2C_Read... [16:56:36]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [16:56:36]RAPDU: 90 00 [16:56:36]wFMCommunicate OK [16:56:36]wFMCommunicate request_size=255 [16:56:36]MH_SAM_APDU [16:56: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 43 36 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 42 0F 01 00 35 04 06 00 83 [16:56:36]Write to MH i2c: E2 02 01 0E 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 43 36 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 42 0F 01 00 35 04 06 00 83 00 00 B9 [16:56:36]Write i2c OK [16:56:36]MH_I2C_Read... [16:56:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:36]Read from MH i2c: E2 [16:56:36]MH_I2C_Read... [16:56:36]Read from MH i2c: E2 03 00 [16:56:36]MH_I2C_Read... [16:56:36]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [16:56:36]RAPDU: 90 00 [16:56:36]wFMCommunicate OK [16:56:36]wFMCommunicate request_size=10 [16:56:36]MH_SAM_APDU [16:56:36]CAPDU: 80 0D 02 02 05 A0 95 9C 6C D3 [16:56:36]Write to MH i2c: E2 0D 00 0F 01 80 0D 02 02 05 00 A0 95 9C 6C D3 00 00 A4 [16:56:36]Write i2c OK [16:56:36]MH_I2C_Read... [16:56:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:36]Read from MH i2c: E2 [16:56:36]MH_I2C_Read... [16:56:36]Read from MH i2c: E2 03 00 [16:56:36]MH_I2C_Read... [16:56:36]Read from MH i2c: E2 03 00 0F 01 00 90 00 84 [16:56:36]RAPDU: 90 00 [16:56:36]wFMCommunicate OK [16:56:36]wFMCommunicate request_size=4 [16:56:36]MH_SAM_APDU [16:56:36]CAPDU: 80 0D 03 02 [16:56:36]Write to MH i2c: E2 08 00 10 01 80 0D 03 02 00 00 00 00 8C [16:56:36]Write i2c OK [16:56:36]MH_I2C_Read... [16:56:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:56:36]Read from MH i2c: E2 [16:56:36]MH_I2C_Read... [16:56:36]Read from MH i2c: E2 0B 00 [16:56:36]MH_I2C_Read... [16:56:36]Read from MH i2c: E2 0B 00 10 01 00 88 A2 3D 5B 17 2A 0A 99 90 00 33 [16:56:36]RAPDU: 88 A2 3D 5B 17 2A 0A 99 90 00 [16:56:36]wFMCommunicate OK [16:56:36]SAM_PROTO_SignData done [16:56:36]FM_MakeSignedData done [16:56:36]CreateOFDProtocolMessage [16:56:36]wFMCommunicate request_size=4 [16:56:36]MH_SAM_APDU [16:56:36]CAPDU: 80 11 00 00 [16:56:36]Write to MH i2c: E2 08 00 11 01 80 11 00 00 00 00 00 00 8C [16:56:36]Write i2c OK [16:56:36]MH_I2C_Read... [16:56:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:36]Read from MH i2c: E2 [16:56:36]MH_I2C_Read... [16:56:36]Read from MH i2c: E2 17 00 [16:56:36]MH_I2C_Read... [16:56:36]Read from MH i2c: E2 17 00 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DE [16:56:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:56:36]wFMCommunicate OK [16:56:36]CreateOFDProtocolMessage done [16:56:36]OFDSenderStorePacket 69442 [16:56:36]StoreOFDPacket docnum=69442 [16:56:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 36 BF 07 01 1C 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 43 36 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 42 0F 01 00 35 04 06 00 83 A0 95 9C 6C D3 88 A2 3D 5B 17 2A 0A 99 [16:56:36]CheckFolder [16:56:36]dirname=/storage/ofd_packets [16:56:36]CheckFolder done [16:56:36]ProducePacketName [16:56:36]name=ofd_packets/00069442 [16:56:36]NVStorageSaveData ofd_packets/00069442 [16:56:36]File name is /storage/ofd_packets/00069442 [16:56:36]Write 301 bytes [16:56:36]NVStorageSaveData done [16:56:36]OFDSenderStorePacket done [16:56:36]KKMCreateOFDPacket done [16:56:36]NVStorageSaveData kkm_last_timestamp [16:56:36]File name is /storage/kkm_last_timestamp [16:56:36]Write 4 bytes [16:56:36]NVStorageSaveData done [16:56:36]ExternCall_PrintAddStr [16:56:36]wPrintStart [16:56:36]Write to MH i2c: 01 00 00 12 01 13 [16:56:36]Write i2c OK [16:56:36]MH_I2C_Read... [16:56:36]Read from MH i2c: 01 [16:56:36]MH_I2C_Read... [16:56:36]Read from MH i2c: 01 07 00 [16:56:36]MH_I2C_Read... [16:56:36]Read from MH i2c: 01 07 00 12 01 00 00 00 00 00 FF 0F 28 [16:56:36]RasterBufferAndPrint [16:56:36]line Счет N : (1)2885170 [16:56:36]line ИНН: 02508201610067 [16:56:36]line Контрольно-Кассовый Чек [16:56:36]line ПРОДАЖА [16:56:36]line ТРК (МРК, ГНК) : 43 [16:56:36]line Товар: 2710124500 [16:56:36]line Аи-95-К-5 [16:56:36]line 26.960 * 74.20 [16:56:36]line = 2000.43 [16:56:36]line НДС 12% НСП 1% [16:56:36]line > о реализуемом товаре [16:56:36]line ИТОГО: 2000.43 [16:56:36]line НСП 1% : 17.70 [16:56:36]line НДС 12% : 212.43 [16:56:36]line Наличными: 0.00 [16:56:36]line Безнал.: 2000.43 [16:56:36]line Место: АЗС № 85 "Партнер Нефть" [16:56:36]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:56:36]line СНО: Общий режим [16:56:36]line Чек 287 20.10.2024 16:56 [16:56:36]line Смена: 193 ФФД: 1.0 [16:56:36]line ЗНМ: 0300000167 [16:56:36]line РНМ: 0000000000156251 [16:56:36]line Версия ККМ: v1.0 [16:56:36]line Платежная система: Mbank [16:56:36]line ФМ: 0000000000963346 [16:56:36]line ФД: 69442 [16:56:36]line ФПД: 144725728062675 [16:56:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T165635&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69442&fm=144725728062675&tin=02508201610067®Number=0000000000156251&sum=200043 [16:56:37]OFD Sender: Processing packet 69442 [packets to send 18, broken 17] [16:56:37]ProducePacketName [16:56:37]name=ofd_packets/00069442 [16:56:37]OFD Sender: To server: pG, [16:56:37]CommunicateWithHost lk.salyk.kg:30040 [16:56:37]ConnectInit lk.salyk.kg [16:56:37]written 0, free lines is 4095 [16:56:37]Connected sock=10 [16:56:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 36 BF 07 01 1C 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 43 36 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 42 0F 01 00 35 04 06 00 83 A0 95 9C 6C D3 88 A2 3D 5B 17 2A 0A 99 [16:56:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 0F 2C 47 00 06 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 42 0F 01 00 F4 03 04 00 E9 DF 14 67 B6 04 01 00 00 A5 DE 68 F2 03 0B BE 72 [16:56:37]CommunicateWithHost err = 0 [16:56:37]CheckOFDResponse [16:56:37]1017 (14) - 77093643461234 [16:56:37]1041 (16) - 0000000000963346 [16:56:37]1040 (4) - 69442 [16:56:37]1012 (4) - 20.10.2024 10:48 [16:56:37]1206 (1) - 0 [16:56:37]OFD Sender: Remove packet 69442 [16:56:37]ProducePacketName [16:56:37]name=ofd_packets/00069442 [16:56:37]NVStorageDeleteData [16:56:37]Write to MH i2c: 01 00 00 3B 01 3C [16:56:37]Write i2c OK [16:56:37]MH_I2C_Read... [16:56:37]Read from MH i2c: 01 [16:56:37]MH_I2C_Read... [16:56:37]Read from MH i2c: 01 07 00 [16:56:37]MH_I2C_Read... [16:56:37]Read from MH i2c: 01 07 00 3B 01 00 00 00 00 00 2A 0D 7A [16:56:37]RasterBufferAndPrint [16:56:37]line [16:56:37]line [16:56:37]line [16:56:37]line [16:56:37]line [16:56:37]written 0, free lines is 3377 [16:56:37]MH_Cut [16:56:37]Write to MH i2c: D1 01 00 42 01 01 15 [16:56:37]Write i2c OK [16:56:37]MH_I2C_Read... [16:56:37]Read from MH i2c: D1 [16:56:37]MH_I2C_Read... [16:56:37]Read from MH i2c: D1 01 00 [16:56:37]MH_I2C_Read... [16:56:37]Read from MH i2c: D1 01 00 42 01 00 14 [16:56:37]Write to MH i2c: 01 00 00 43 01 44 [16:56:37]Write i2c OK [16:56:37]MH_I2C_Read... [16:56:38]OFD Sender: No OFD packet to send [16:56:38]*** Cut start [16:56:38]*** Partial cut [16:56:38]*** CUTSNS_PIN = 1 [16:56:38]*** CUTSNS_PIN = 0 [16:56:38]*** Brake cut motor [16:56:38]Read from MH i2c: 01 [16:56:38]MH_I2C_Read... [16:56:38]*** Stop cut motor [16:56:38]*** Cut end [16:56:38]Read from MH i2c: 01 07 00 [16:56:38]MH_I2C_Read... [16:56:38]Read from MH i2c: 01 07 00 43 01 00 00 00 00 00 FF 0F 59 [16:56:38]process_action close_receipt done [16:56:38]requested_data is exist [16:56:38]produce_requested_data [16:56:38]requested_item fm.sn is exist - process it [16:56:38]wFMCommunicate request_size=4 [16:56:38]MH_SAM_APDU [16:56:38]CAPDU: 80 11 00 00 [16:56:38]Write to MH i2c: E2 08 00 44 01 80 11 00 00 00 00 00 00 BF [16:56:38]Write i2c OK [16:56:38]MH_I2C_Read... [16:56:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:39]Read from MH i2c: E2 [16:56:39]MH_I2C_Read... [16:56:39]Read from MH i2c: E2 17 00 [16:56:39]MH_I2C_Read... [16:56:39]Read from MH i2c: E2 17 00 44 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 11 [16:56:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:56:39]wFMCommunicate OK [16:56:39]requested_item fd.num is exist - process it [16:56:39]SAM_PROTO_GetFieldsCounters [16:56:39]wFMCommunicate request_size=4 [16:56:39]MH_SAM_APDU [16:56:39]CAPDU: 80 13 00 00 [16:56:39]Write to MH i2c: E2 08 00 45 01 80 13 00 00 00 00 00 00 C2 [16:56:39]Write i2c OK [16:56:39]MH_I2C_Read... [16:56:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:56:39]Read from MH i2c: E2 [16:56:39]MH_I2C_Read... [16:56:39]Read from MH i2c: E2 62 00 [16:56:39]MH_I2C_Read... [16:56:39]Read from MH i2c: E2 62 00 45 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 42 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 50 [16:56:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 42 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:56:39]wFMCommunicate OK [16:56:39]SAM_PROTO_GetFieldsCounters done [16:56:39]requested_item shift.num is exist - process it [16:56:39]requested_item shift.opened is exist - process it [16:56:39]req_shift_opened [16:56:39]FM_GetShiftState [16:56:39]SAM_PROTO_GetShiftState [16:56:39]wFMCommunicate request_size=4 [16:56:39]MH_SAM_APDU [16:56:39]CAPDU: 80 13 01 00 [16:56:39]Write to MH i2c: E2 08 00 46 01 80 13 01 00 00 00 00 00 C4 [16:56:39]Write i2c OK [16:56:39]MH_I2C_Read... [16:56:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:39]Read from MH i2c: E2 [16:56:39]MH_I2C_Read... [16:56:39]Read from MH i2c: E2 0E 00 [16:56:39]MH_I2C_Read... [16:56:39]Read from MH i2c: E2 0E 00 46 01 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 CA [16:56:39]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:56:39]wFMCommunicate OK [16:56:39]SAM_PROTO_GetShiftState done [16:56:39]FM_GetShiftState done [16:56:39]req_shift_opened done [16:56:39]requested_item shift.open_date is exist - process it [16:56:39]req_shift_open_date [16:56:39]req_shift_open_date done [16:56:39]produce_requested_data done [16:56:39]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69442,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [16:56:39]process_action_free close_receipt [16:56:39]json_value_free [16:56:39]json_value_free done [16:56:39]process_json_proto returns [16:56:39]Send response to host [16:56:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69442,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [16:56:39]free response buf [16:56:39]execute_script done [16:56:39]execute_script returns [16:56:39]free content buf [16:56:39]Sock 9.Close socket [16:56:39]Sock 9.Thread stoped [16:56:43]OFD Sender: No OFD packet to send [16:56:48]OFD Sender: No OFD packet to send [16:56:53]OFD Sender: No OFD packet to send [16:56:58]OFD Sender: No OFD packet to send [16:57:03]OFD Sender: No OFD packet to send [16:57:08]OFD Sender: No OFD packet to send [16:57:13]OFD Sender: No OFD packet to send [16:57:18]OFD Sender: No OFD packet to send [16:57:23]OFD Sender: No OFD packet to send [16:57:28]OFD Sender: No OFD packet to send [16:57:33]OFD Sender: No OFD packet to send [16:57:38]OFD Sender: No OFD packet to send [16:57:43]OFD Sender: No OFD packet to send [16:57:48]OFD Sender: No OFD packet to send [16:57:53]OFD Sender: No OFD packet to send [16:57:58]OFD Sender: No OFD packet to send [16:58:03]OFD Sender: No OFD packet to send [16:58:08]OFD Sender: No OFD packet to send [16:58:13]OFD Sender: No OFD packet to send [16:58:18]OFD Sender: No OFD packet to send [16:58:23]OFD Sender: No OFD packet to send [16:58:28]OFD Sender: No OFD packet to send [16:58:33]OFD Sender: No OFD packet to send [16:58:38]OFD Sender: No OFD packet to send [16:58:43]OFD Sender: No OFD packet to send [16:58:45]accept exits with 8 [16:58:45]New connection [16:58:45]New thread 3067239780 created [16:58:45]Thread 3067096420 joined [16:58:45]Waiting for new connection... [16:58:45] Sock 8.Parse request [16:58:45]Sock 8.Check first char [16:58:45]Sock 8.First char is OK [16:58:45]request: POST /json_proto HTTP/1.0 [16:58:45]Method: POST [16:58:45]URL: /json_proto [16:58:45]Method is POST - this is cgi request [16:58:45]url: /json_proto [16:58:45]query_string will be loaded in cgi processing [16:58:45]execute_cgi json_proto POST (null) [16:58:45]execute_cgi path=json_proto method=POST [16:58:45]POST find Content-Length [16:58:45]Host: 172.17.50.3:8080 [16:58:45]Content-Length: 678 [16:58:45]Content-Type: application/json [16:58:45] [16:58:45]POST finish read [16:58:45]Found Content-Length = 678 [16:58:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [16:58:45]execute_script... [16:58: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)2885171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [16:58:45]POST & json_proto [16:58:45]process_json_proto [16:58:45]json parsed OK: [16:58:45]protocol is kg_v1.0 [16:58:45]action value=close_receipt [16:58:45]process_action close_receipt [16:58:45]cmd_close_receipt [16:58:45]MH_GetDate [16:58:45]Write to MH i2c: F0 00 00 47 01 37 [16:58:45]Write i2c OK [16:58:45]MH_I2C_Read... [16:58:45]Read from MH i2c: F0 [16:58:45]MH_I2C_Read... [16:58:45]Read from MH i2c: F0 09 00 [16:58:45]MH_I2C_Read... [16:58:45]Read from MH i2c: F0 09 00 47 01 00 C6 36 15 67 6B 98 1E 66 3F [16:58:45]GetLastDocTimeStamp 1729443395 [16:58:45]current date 1729443526 [16:58:45]FM_GetShiftState [16:58:45]SAM_PROTO_GetShiftState [16:58:45]wFMCommunicate request_size=4 [16:58:45]MH_SAM_APDU [16:58:45]CAPDU: 80 13 01 00 [16:58:45]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [16:58:45]Write i2c OK [16:58:45]MH_I2C_Read... [16:58:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:46]Read from MH i2c: E2 [16:58:46]MH_I2C_Read... [16:58:46]Read from MH i2c: E2 0E 00 [16:58:46]MH_I2C_Read... [16:58:46]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 CC [16:58:46]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:58:46]wFMCommunicate OK [16:58:46]SAM_PROTO_GetShiftState done [16:58:46]FM_GetShiftState done [16:58:46]opened in 1729383220 [16:58:46]opened+sec_in_day 1729469620 [16:58:46]quantity*price = 50010 [16:58:46]sum+1 = 50012 [16:58:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 288 20.10.2024 16:58 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69443 ФПД: 156492276869765 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T165846&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69443&fm=156492276869765&tin=02508201610067®Number=0000000000156251&sum=50000 [16:58:47]StoreToDocumentArchive [16:58:47]shift 193 fd 69443 [16:58:47]save to /storage/0193/doc_00069443 [16:58:47]save last doc name /storage/0193/doc_00069443 to /storage/kkm_last_doc_name [16:58:47]save OK [16:58:47]Clear old archive folders... [16:58:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:58:47]tlvbuf is 00D0D410 [16:58:47]SAM_PROTO_ClearQueue [16:58:47]wFMCommunicate request_size=4 [16:58:47]MH_SAM_APDU [16:58:47]CAPDU: 80 09 00 00 [16:58:47]Write to MH i2c: E2 08 00 55 01 80 09 00 00 00 00 00 00 C8 [16:58:47]Write i2c OK [16:58:47]MH_I2C_Read... [16:58:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:58:47]Read from MH i2c: E2 [16:58:47]MH_I2C_Read... [16:58:47]Read from MH i2c: E2 03 00 [16:58:47]MH_I2C_Read... [16:58:47]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [16:58:47]RAPDU: 90 00 [16:58:47]wFMCommunicate OK [16:58:47]SAM_PROTO_ClearQueue done [16:58:47]KKMCreateOFDPacket [16:58:47]OFDProtocolAddRootSTLVToBuf [16:58:47]FM_MakeSignedData [16:58:47]FM_MakeSignedData [16:58:47]SAM_PROTO_SignData [16:58:47]wFMCommunicate request_size=4 [16:58:47]MH_SAM_APDU [16:58:47]CAPDU: 80 0D 01 02 [16:58:47]Write to MH i2c: E2 08 00 56 01 80 0D 01 02 00 00 00 00 D0 [16:58:47]Write i2c OK [16:58:47]MH_I2C_Read... [16:58:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:58:47]Read from MH i2c: E2 [16:58:47]MH_I2C_Read... [16:58:47]Read from MH i2c: E2 03 00 [16:58:47]MH_I2C_Read... [16:58:47]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [16:58:47]RAPDU: 90 00 [16:58:47]wFMCommunicate OK [16:58:47]wFMCommunicate request_size=255 [16:58:47]MH_SAM_APDU [16:58:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 20 01 00 00 F4 03 04 00 C6 36 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 43 0F 01 00 35 04 06 00 8E [16:58:47]Write to MH i2c: E2 02 01 57 01 80 0D 02 02 FA 00 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 20 01 00 00 F4 03 04 00 C6 36 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 43 0F 01 00 35 04 06 00 8E 00 00 6C [16:58:47]Write i2c OK [16:58:47]MH_I2C_Read... [16:58:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:47]Read from MH i2c: E2 [16:58:47]MH_I2C_Read... [16:58:47]Read from MH i2c: E2 03 00 [16:58:47]MH_I2C_Read... [16:58:47]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [16:58:47]RAPDU: 90 00 [16:58:47]wFMCommunicate OK [16:58:47]wFMCommunicate request_size=10 [16:58:47]MH_SAM_APDU [16:58:47]CAPDU: 80 0D 02 02 05 54 32 92 AA 85 [16:58:47]Write to MH i2c: E2 0D 00 58 01 80 0D 02 02 05 00 54 32 92 AA 85 00 00 24 [16:58:47]Write i2c OK [16:58:47]MH_I2C_Read... [16:58:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:47]Read from MH i2c: E2 [16:58:47]MH_I2C_Read... [16:58:47]Read from MH i2c: E2 03 00 [16:58:47]MH_I2C_Read... [16:58:47]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [16:58:47]RAPDU: 90 00 [16:58:47]wFMCommunicate OK [16:58:47]wFMCommunicate request_size=4 [16:58:47]MH_SAM_APDU [16:58:47]CAPDU: 80 0D 03 02 [16:58:47]Write to MH i2c: E2 08 00 59 01 80 0D 03 02 00 00 00 00 D5 [16:58:47]Write i2c OK [16:58:47]MH_I2C_Read... [16:58:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:58:47]Read from MH i2c: E2 [16:58:47]MH_I2C_Read... [16:58:47]Read from MH i2c: E2 0B 00 [16:58:47]MH_I2C_Read... [16:58:47]Read from MH i2c: E2 0B 00 59 01 00 18 DF 6F 81 4C B5 AF C4 90 00 31 [16:58:47]RAPDU: 18 DF 6F 81 4C B5 AF C4 90 00 [16:58:47]wFMCommunicate OK [16:58:47]SAM_PROTO_SignData done [16:58:47]FM_MakeSignedData done [16:58:47]CreateOFDProtocolMessage [16:58:47]wFMCommunicate request_size=4 [16:58:47]MH_SAM_APDU [16:58:47]CAPDU: 80 11 00 00 [16:58:47]Write to MH i2c: E2 08 00 5A 01 80 11 00 00 00 00 00 00 D5 [16:58:47]Write i2c OK [16:58:47]MH_I2C_Read... [16:58:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:47]Read from MH i2c: E2 [16:58:47]MH_I2C_Read... [16:58:47]Read from MH i2c: E2 17 00 [16:58:47]MH_I2C_Read... [16:58:47]Read from MH i2c: E2 17 00 5A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 27 [16:58:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:58:47]wFMCommunicate OK [16:58:47]CreateOFDProtocolMessage done [16:58:47]OFDSenderStorePacket 69443 [16:58:47]StoreOFDPacket docnum=69443 [16:58:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 4F 28 07 01 4E 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 20 01 00 00 F4 03 04 00 C6 36 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 43 0F 01 00 35 04 06 00 8E 54 32 92 AA 85 18 DF 6F 81 4C B5 AF C4 [16:58:47]CheckFolder [16:58:47]dirname=/storage/ofd_packets [16:58:47]CheckFolder done [16:58:47]ProducePacketName [16:58:47]name=ofd_packets/00069443 [16:58:47]NVStorageSaveData ofd_packets/00069443 [16:58:47]File name is /storage/ofd_packets/00069443 [16:58:47]Write 301 bytes [16:58:47]NVStorageSaveData done [16:58:47]OFDSenderStorePacket done [16:58:47]KKMCreateOFDPacket done [16:58:47]NVStorageSaveData kkm_last_timestamp [16:58:47]File name is /storage/kkm_last_timestamp [16:58:47]Write 4 bytes [16:58:47]NVStorageSaveData done [16:58:47]ExternCall_PrintAddStr [16:58:47]wPrintStart [16:58:47]Write to MH i2c: 01 00 00 5B 01 5C [16:58:47]Write i2c OK [16:58:47]MH_I2C_Read... [16:58:47]Read from MH i2c: 01 [16:58:47]MH_I2C_Read... [16:58:47]Read from MH i2c: 01 07 00 [16:58:47]MH_I2C_Read... [16:58:47]Read from MH i2c: 01 07 00 5B 01 00 00 00 00 00 FF 0F 71 [16:58:47]RasterBufferAndPrint [16:58:47]line Счет N : (1)2885171 [16:58:47]line ИНН: 02508201610067 [16:58:47]line Контрольно-Кассовый Чек [16:58:47]line ПРОДАЖА [16:58:47]line ТРК (МРК, ГНК) : 33 [16:58:47]line Товар: 2710124500 [16:58:47]line Аи-95-К-5 [16:58:47]line 6.740 * 74.20 [16:58:47]line = 500.11 [16:58:47]line НДС 12% НСП 1% [16:58:47]line > о реализуемом товаре [16:58:47]line ОКРУГЛЕНИЕ: -0.11 [16:58:47]line ИТОГО: 500.00 [16:58:47]line Внесено: 500.00 [16:58:47]line СДАЧА: 0.00 [16:58:47]line НСП 1% : 4.43 [16:58:47]line НДС 12% : 53.11 [16:58:47]line Наличными: 500.00 [16:58:47]line Безнал.: 0.00 [16:58:47]line Место: АЗС № 85 "Партнер Нефть" [16:58:47]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:58:47]line СНО: Общий режим [16:58:47]line Чек 288 20.10.2024 16:58 [16:58:47]line Смена: 193 ФФД: 1.0 [16:58:47]line ЗНМ: 0300000167 [16:58:47]line РНМ: 0000000000156251 [16:58:47]line Версия ККМ: v1.0 [16:58:47]line ФМ: 0000000000963346 [16:58:47]line ФД: 69443 [16:58:47]line ФПД: 156492276869765 [16:58:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T165846&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69443&fm=156492276869765&tin=02508201610067®Number=0000000000156251&sum=50000 [16:58:47]OFD Sender: Processing packet 69443 [packets to send 18, broken 17] [16:58:47]ProducePacketName [16:58:47]name=ofd_packets/00069443 [16:58:47]OFD Sender: To server: pG, [16:58:47]CommunicateWithHost lk.salyk.kg:30040 [16:58:47]ConnectInit lk.salyk.kg [16:58:47]written 0, free lines is 4095 [16:58:48]Connected sock=10 [16:58:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 4F 28 07 01 4E 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 20 01 00 00 F4 03 04 00 C6 36 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 43 0F 01 00 35 04 06 00 8E 54 32 92 AA 85 18 DF 6F 81 4C B5 AF C4 [16:58:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 07 36 47 00 89 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 43 0F 01 00 F4 03 04 00 6C E0 14 67 B6 04 01 00 00 60 F3 3B 32 B4 BE B7 B7 [16:58:48]CommunicateWithHost err = 0 [16:58:48]CheckOFDResponse [16:58:48]1017 (14) - 77093643461234 [16:58:48]1041 (16) - 0000000000963346 [16:58:48]1040 (4) - 69443 [16:58:48]1012 (4) - 20.10.2024 10:50 [16:58:48]1206 (1) - 0 [16:58:48]OFD Sender: Remove packet 69443 [16:58:48]ProducePacketName [16:58:48]name=ofd_packets/00069443 [16:58:48]NVStorageDeleteData [16:58:48]Write to MH i2c: 01 00 00 86 01 87 [16:58:48]Write i2c OK [16:58:48]MH_I2C_Read... [16:58:48]Read from MH i2c: 01 [16:58:48]MH_I2C_Read... [16:58:48]Read from MH i2c: 01 07 00 [16:58:48]MH_I2C_Read... [16:58:48]Read from MH i2c: 01 07 00 86 01 00 00 00 00 00 E8 0C 82 [16:58:48]RasterBufferAndPrint [16:58:48]line [16:58:48]line [16:58:48]line [16:58:48]line [16:58:48]line [16:58:48]written 0, free lines is 3310 [16:58:48]MH_Cut [16:58:48]Write to MH i2c: D1 01 00 8D 01 01 60 [16:58:48]Write i2c OK [16:58:48]MH_I2C_Read... [16:58:48]Read from MH i2c: D1 [16:58:48]MH_I2C_Read... [16:58:48]Read from MH i2c: D1 01 00 [16:58:48]MH_I2C_Read... [16:58:48]Read from MH i2c: D1 01 00 8D 01 00 5F [16:58:48]Write to MH i2c: 01 00 00 8E 01 8F [16:58:48]Write i2c OK [16:58:48]MH_I2C_Read... [16:58:48]OFD Sender: No OFD packet to send [16:58:49]*** Cut start [16:58:49]*** Partial cut [16:58:49]*** CUTSNS_PIN = 1 [16:58:49]*** CUTSNS_PIN = 0 [16:58:49]*** Brake cut motor [16:58:49]Read from MH i2c: 01 [16:58:49]MH_I2C_Read... [16:58:49]*** Stop cut motor [16:58:49]*** Cut end [16:58:49]Read from MH i2c: 01 07 00 [16:58:49]MH_I2C_Read... [16:58:49]Read from MH i2c: 01 07 00 8E 01 00 00 00 00 00 FF 0F A4 [16:58:49]process_action close_receipt done [16:58:49]requested_data is exist [16:58:49]produce_requested_data [16:58:49]requested_item fm.sn is exist - process it [16:58:49]wFMCommunicate request_size=4 [16:58:49]MH_SAM_APDU [16:58:49]CAPDU: 80 11 00 00 [16:58:49]Write to MH i2c: E2 08 00 8F 01 80 11 00 00 00 00 00 00 0A [16:58:49]Write i2c OK [16:58:49]MH_I2C_Read... [16:58:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:49]Read from MH i2c: E2 [16:58:49]MH_I2C_Read... [16:58:49]Read from MH i2c: E2 17 00 [16:58:49]MH_I2C_Read... [16:58:49]Read from MH i2c: E2 17 00 8F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5C [16:58:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:58:49]wFMCommunicate OK [16:58:49]requested_item fd.num is exist - process it [16:58:49]SAM_PROTO_GetFieldsCounters [16:58:49]wFMCommunicate request_size=4 [16:58:49]MH_SAM_APDU [16:58:49]CAPDU: 80 13 00 00 [16:58:49]Write to MH i2c: E2 08 00 90 01 80 13 00 00 00 00 00 00 0D [16:58:49]Write i2c OK [16:58:49]MH_I2C_Read... [16:58:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:58:49]Read from MH i2c: E2 [16:58:49]MH_I2C_Read... [16:58:49]Read from MH i2c: E2 62 00 [16:58:49]MH_I2C_Read... [16:58:49]Read from MH i2c: E2 62 00 90 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 43 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 9F [16:58:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 43 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:58:49]wFMCommunicate OK [16:58:49]SAM_PROTO_GetFieldsCounters done [16:58:49]requested_item shift.num is exist - process it [16:58:49]requested_item shift.opened is exist - process it [16:58:49]req_shift_opened [16:58:49]FM_GetShiftState [16:58:49]SAM_PROTO_GetShiftState [16:58:49]wFMCommunicate request_size=4 [16:58:49]MH_SAM_APDU [16:58:49]CAPDU: 80 13 01 00 [16:58:49]Write to MH i2c: E2 08 00 91 01 80 13 01 00 00 00 00 00 0F [16:58:49]Write i2c OK [16:58:49]MH_I2C_Read... [16:58:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:49]Read from MH i2c: E2 [16:58:49]MH_I2C_Read... [16:58:49]Read from MH i2c: E2 0E 00 [16:58:49]MH_I2C_Read... [16:58:49]Read from MH i2c: E2 0E 00 91 01 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 15 [16:58:49]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:58:49]wFMCommunicate OK [16:58:49]SAM_PROTO_GetShiftState done [16:58:49]FM_GetShiftState done [16:58:49]req_shift_opened done [16:58:49]requested_item shift.open_date is exist - process it [16:58:49]req_shift_open_date [16:58:49]req_shift_open_date done [16:58:49]produce_requested_data done [16:58:49]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69443,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [16:58:49]process_action_free close_receipt [16:58:49]json_value_free [16:58:49]json_value_free done [16:58:49]process_json_proto returns [16:58:49]Send response to host [16:58:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69443,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [16:58:49]free response buf [16:58:49]execute_script done [16:58:49]execute_script returns [16:58:49]free content buf [16:58:49]Sock 8.Close socket [16:58:49]Sock 8.Thread stoped [16:58:53]OFD Sender: No OFD packet to send [16:58:58]OFD Sender: No OFD packet to send [16:59:03]OFD Sender: No OFD packet to send [16:59:08]OFD Sender: No OFD packet to send [16:59:13]OFD Sender: No OFD packet to send [16:59:18]OFD Sender: No OFD packet to send [16:59:23]OFD Sender: No OFD packet to send [16:59:28]OFD Sender: No OFD packet to send [16:59:33]OFD Sender: No OFD packet to send [16:59:38]OFD Sender: No OFD packet to send [16:59:43]OFD Sender: No OFD packet to send [16:59:48]OFD Sender: No OFD packet to send [16:59:53]accept exits with 9 [16:59:53]New connection [16:59:53]New thread 3067096420 created [16:59:53]Thread 3067239780 joined [16:59:53]Waiting for new connection... [16:59:53] Sock 9.Parse request [16:59:53]Sock 9.Check first char [16:59:53]Sock 9.First char is OK [16:59:53]request: POST /json_proto HTTP/1.0 [16:59:53]Method: POST [16:59:53]URL: /json_proto [16:59:53]Method is POST - this is cgi request [16:59:53]url: /json_proto [16:59:53]query_string will be loaded in cgi processing [16:59:53]execute_cgi json_proto POST (null) [16:59:53]execute_cgi path=json_proto method=POST [16:59:53]POST find Content-Length [16:59:53]Host: 172.17.50.3:8080 [16:59:53]Content-Length: 678 [16:59:53]Content-Type: application/json [16:59:53] [16:59:53]POST finish read [16:59:53]Found Content-Length = 678 [16:59:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:53]execute_script... [16:59: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)2885172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:53]POST & json_proto [16:59:53]process_json_proto [16:59:53]json parsed OK: [16:59:53]protocol is kg_v1.0 [16:59:53]action value=close_receipt [16:59:53]process_action close_receipt [16:59:53]cmd_close_receipt [16:59:53]MH_GetDate [16:59:53]Write to MH i2c: F0 00 00 92 01 82 [16:59:53]Write i2c OK [16:59:53]MH_I2C_Read... [16:59:53]Read from MH i2c: F0 [16:59:53]MH_I2C_Read... [16:59:53]Read from MH i2c: F0 09 00 [16:59:53]MH_I2C_Read... [16:59:53]Read from MH i2c: F0 09 00 92 01 00 09 37 15 67 6B 98 1E 66 CE [16:59:53]GetLastDocTimeStamp 1729443526 [16:59:53]current date 1729443593 [16:59:53]FM_GetShiftState [16:59:53]SAM_PROTO_GetShiftState [16:59:53]wFMCommunicate request_size=4 [16:59:53]MH_SAM_APDU [16:59:53]CAPDU: 80 13 01 00 [16:59:53]Write to MH i2c: E2 08 00 93 01 80 13 01 00 00 00 00 00 11 [16:59:53]Write i2c OK [16:59:53]MH_I2C_Read... [16:59:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:53]Read from MH i2c: E2 [16:59:53]MH_I2C_Read... [16:59:53]Read from MH i2c: E2 0E 00 [16:59:53]MH_I2C_Read... [16:59:53]Read from MH i2c: E2 0E 00 93 01 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 17 [16:59:53]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:59:53]wFMCommunicate OK [16:59:53]SAM_PROTO_GetShiftState done [16:59:53]FM_GetShiftState done [16:59:53]opened in 1729383220 [16:59:53]opened+sec_in_day 1729469620 [16:59:53]quantity*price = 40006 [16:59:53]sum+1 = 40007 [16:59:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 289 20.10.2024 16:59 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69444 ФПД: 157909039238416 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T165953&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69444&fm=157909039238416&tin=02508201610067®Number=0000000000156251&sum=40000 [16:59:54]StoreToDocumentArchive [16:59:54]shift 193 fd 69444 [16:59:54]save to /storage/0193/doc_00069444 [16:59:54]save last doc name /storage/0193/doc_00069444 to /storage/kkm_last_doc_name [16:59:54]save OK [16:59:54]Clear old archive folders... [16:59:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:59:54]tlvbuf is 00D0ED50 [16:59:54]SAM_PROTO_ClearQueue [16:59:54]wFMCommunicate request_size=4 [16:59:54]MH_SAM_APDU [16:59:54]CAPDU: 80 09 00 00 [16:59:54]Write to MH i2c: E2 08 00 A0 01 80 09 00 00 00 00 00 00 13 [16:59:54]Write i2c OK [16:59:54]MH_I2C_Read... [16:59:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:59:54]Read from MH i2c: E2 [16:59:54]MH_I2C_Read... [16:59:54]Read from MH i2c: E2 03 00 [16:59:54]MH_I2C_Read... [16:59:54]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [16:59:54]RAPDU: 90 00 [16:59:54]wFMCommunicate OK [16:59:54]SAM_PROTO_ClearQueue done [16:59:54]KKMCreateOFDPacket [16:59:54]OFDProtocolAddRootSTLVToBuf [16:59:54]FM_MakeSignedData [16:59:54]FM_MakeSignedData [16:59:54]SAM_PROTO_SignData [16:59:54]wFMCommunicate request_size=4 [16:59:54]MH_SAM_APDU [16:59:54]CAPDU: 80 0D 01 02 [16:59:54]Write to MH i2c: E2 08 00 A1 01 80 0D 01 02 00 00 00 00 1B [16:59:54]Write i2c OK [16:59:54]MH_I2C_Read... [16:59:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:59:54]Read from MH i2c: E2 [16:59:54]MH_I2C_Read... [16:59:54]Read from MH i2c: E2 03 00 [16:59:54]MH_I2C_Read... [16:59:54]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [16:59:54]RAPDU: 90 00 [16:59:54]wFMCommunicate OK [16:59:54]wFMCommunicate request_size=255 [16:59:54]MH_SAM_APDU [16:59: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 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 09 37 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 44 0F 01 00 35 04 06 00 8F [16:59:54]Write to MH i2c: E2 02 01 A2 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 09 37 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 44 0F 01 00 35 04 06 00 8F 00 00 F5 [16:59:54]Write i2c OK [16:59:54]MH_I2C_Read... [16:59:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:54]Read from MH i2c: E2 [16:59:54]MH_I2C_Read... [16:59:54]Read from MH i2c: E2 03 00 [16:59:54]MH_I2C_Read... [16:59:54]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [16:59:54]RAPDU: 90 00 [16:59:54]wFMCommunicate OK [16:59:54]wFMCommunicate request_size=10 [16:59:54]MH_SAM_APDU [16:59:54]CAPDU: 80 0D 02 02 05 9E 10 30 CD 10 [16:59:54]Write to MH i2c: E2 0D 00 A3 01 80 0D 02 02 05 00 9E 10 30 CD 10 00 00 E3 [16:59:54]Write i2c OK [16:59:54]MH_I2C_Read... [16:59:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:54]Read from MH i2c: E2 [16:59:54]MH_I2C_Read... [16:59:54]Read from MH i2c: E2 03 00 [16:59:54]MH_I2C_Read... [16:59:54]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [16:59:54]RAPDU: 90 00 [16:59:54]wFMCommunicate OK [16:59:54]wFMCommunicate request_size=4 [16:59:54]MH_SAM_APDU [16:59:54]CAPDU: 80 0D 03 02 [16:59:54]Write to MH i2c: E2 08 00 A4 01 80 0D 03 02 00 00 00 00 20 [16:59:54]Write i2c OK [16:59:54]MH_I2C_Read... [16:59:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:59:54]Read from MH i2c: E2 [16:59:54]MH_I2C_Read... [16:59:54]Read from MH i2c: E2 0B 00 [16:59:54]MH_I2C_Read... [16:59:54]Read from MH i2c: E2 0B 00 A4 01 00 05 F9 89 B4 E8 19 AA 1F 90 00 26 [16:59:54]RAPDU: 05 F9 89 B4 E8 19 AA 1F 90 00 [16:59:54]wFMCommunicate OK [16:59:54]SAM_PROTO_SignData done [16:59:54]FM_MakeSignedData done [16:59:54]CreateOFDProtocolMessage [16:59:54]wFMCommunicate request_size=4 [16:59:54]MH_SAM_APDU [16:59:54]CAPDU: 80 11 00 00 [16:59:54]Write to MH i2c: E2 08 00 A5 01 80 11 00 00 00 00 00 00 20 [16:59:54]Write i2c OK [16:59:54]MH_I2C_Read... [16:59:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:54]Read from MH i2c: E2 [16:59:54]MH_I2C_Read... [16:59:54]Read from MH i2c: E2 17 00 [16:59:54]MH_I2C_Read... [16:59:54]Read from MH i2c: E2 17 00 A5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 72 [16:59:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:59:54]wFMCommunicate OK [16:59:54]CreateOFDProtocolMessage done [16:59:54]OFDSenderStorePacket 69444 [16:59:54]StoreOFDPacket docnum=69444 [16:59:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 AB F6 07 01 77 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 09 37 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 44 0F 01 00 35 04 06 00 8F 9E 10 30 CD 10 05 F9 89 B4 E8 19 AA 1F [16:59:54]CheckFolder [16:59:54]dirname=/storage/ofd_packets [16:59:54]CheckFolder done [16:59:54]ProducePacketName [16:59:54]name=ofd_packets/00069444 [16:59:54]NVStorageSaveData ofd_packets/00069444 [16:59:54]File name is /storage/ofd_packets/00069444 [16:59:54]Write 301 bytes [16:59:54]NVStorageSaveData done [16:59:54]OFDSenderStorePacket done [16:59:54]KKMCreateOFDPacket done [16:59:54]NVStorageSaveData kkm_last_timestamp [16:59:54]File name is /storage/kkm_last_timestamp [16:59:54]Write 4 bytes [16:59:54]NVStorageSaveData done [16:59:54]ExternCall_PrintAddStr [16:59:54]wPrintStart [16:59:54]Write to MH i2c: 01 00 00 A6 01 A7 [16:59:54]Write i2c OK [16:59:54]MH_I2C_Read... [16:59:54]Read from MH i2c: 01 [16:59:54]MH_I2C_Read... [16:59:54]Read from MH i2c: 01 07 00 [16:59:54]MH_I2C_Read... [16:59:54]Read from MH i2c: 01 07 00 A6 01 00 00 00 00 00 FF 0F BC [16:59:54]RasterBufferAndPrint [16:59:54]line Счет N : (1)2885172 [16:59:54]line ИНН: 02508201610067 [16:59:54]line Контрольно-Кассовый Чек [16:59:54]line ПРОДАЖА [16:59:54]line ТРК (МРК, ГНК) : 42 [16:59:54]line Товар: 2710124130 [16:59:54]line Аи-92-К-5 [16:59:54]line 5.980 * 66.90 [16:59:54]line = 400.06 [16:59:54]line НДС 12% НСП 1% [16:59:54]line > о реализуемом товаре [16:59:54]line ОКРУГЛЕНИЕ: -0.06 [16:59:54]line ИТОГО: 400.00 [16:59:54]line Внесено: 400.00 [16:59:54]line СДАЧА: 0.00 [16:59:54]line НСП 1% : 3.54 [16:59:54]line НДС 12% : 42.48 [16:59:54]line Наличными: 400.00 [16:59:54]line Безнал.: 0.00 [16:59:54]line Место: АЗС № 85 "Партнер Нефть" [16:59:54]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [16:59:54]line СНО: Общий режим [16:59:54]line Чек 289 20.10.2024 16:59 [16:59:54]line Смена: 193 ФФД: 1.0 [16:59:54]line ЗНМ: 0300000167 [16:59:54]line РНМ: 0000000000156251 [16:59:54]line Версия ККМ: v1.0 [16:59:54]line ФМ: 0000000000963346 [16:59:54]line ФД: 69444 [16:59:54]line ФПД: 157909039238416 [16:59:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T165953&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69444&fm=157909039238416&tin=02508201610067®Number=0000000000156251&sum=40000 [16:59:55]OFD Sender: Processing packet 69444 [packets to send 18, broken 17] [16:59:55]ProducePacketName [16:59:55]name=ofd_packets/00069444 [16:59:55]OFD Sender: To server: pG, [16:59:55]CommunicateWithHost lk.salyk.kg:30040 [16:59:55]ConnectInit lk.salyk.kg [16:59:55]written 0, free lines is 4095 [16:59:55]Connected sock=10 [16:59:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 AB F6 07 01 77 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 09 37 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 44 0F 01 00 35 04 06 00 8F 9E 10 30 CD 10 05 F9 89 B4 E8 19 AA 1F [16:59:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 01 E2 47 00 39 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 44 0F 01 00 F4 03 04 00 AF E0 14 67 B6 04 01 00 00 8F 72 67 18 49 E3 66 25 [16:59:55]CommunicateWithHost err = 0 [16:59:55]CheckOFDResponse [16:59:55]1017 (14) - 77093643461234 [16:59:55]1041 (16) - 0000000000963346 [16:59:55]1040 (4) - 69444 [16:59:55]1012 (4) - 20.10.2024 10:51 [16:59:55]1206 (1) - 0 [16:59:55]OFD Sender: Remove packet 69444 [16:59:55]ProducePacketName [16:59:55]name=ofd_packets/00069444 [16:59:55]NVStorageDeleteData [16:59:55]Write to MH i2c: 01 00 00 D1 01 D2 [16:59:55]Write i2c OK [16:59:55]MH_I2C_Read... [16:59:55]Read from MH i2c: 01 [16:59:55]MH_I2C_Read... [16:59:55]Read from MH i2c: 01 07 00 [16:59:55]MH_I2C_Read... [16:59:55]Read from MH i2c: 01 07 00 D1 01 00 00 00 00 00 F1 0C D6 [16:59:55]RasterBufferAndPrint [16:59:55]line [16:59:55]line [16:59:55]line [16:59:55]line [16:59:55]line [16:59:55]written 0, free lines is 3319 [16:59:55]MH_Cut [16:59:55]Write to MH i2c: D1 01 00 D8 01 01 AB [16:59:55]Write i2c OK [16:59:55]MH_I2C_Read... [16:59:55]Read from MH i2c: D1 [16:59:55]MH_I2C_Read... [16:59:55]Read from MH i2c: D1 01 00 [16:59:55]MH_I2C_Read... [16:59:55]Read from MH i2c: D1 01 00 D8 01 00 AA [16:59:55]Write to MH i2c: 01 00 00 D9 01 DA [16:59:55]Write i2c OK [16:59:55]MH_I2C_Read... [16:59:55]OFD Sender: No OFD packet to send [16:59:56]*** Cut start [16:59:56]*** Partial cut [16:59:56]*** CUTSNS_PIN = 1 [16:59:56]*** CUTSNS_PIN = 0 [16:59:56]*** Brake cut motor [16:59:56]Read from MH i2c: 01 [16:59:56]MH_I2C_Read... [16:59:56]*** Stop cut motor [16:59:56]*** Cut end [16:59:56]Read from MH i2c: 01 07 00 [16:59:56]MH_I2C_Read... [16:59:56]Read from MH i2c: 01 07 00 D9 01 00 00 00 00 00 FF 0F EF [16:59:56]process_action close_receipt done [16:59:56]requested_data is exist [16:59:56]produce_requested_data [16:59:56]requested_item fm.sn is exist - process it [16:59:56]wFMCommunicate request_size=4 [16:59:56]MH_SAM_APDU [16:59:56]CAPDU: 80 11 00 00 [16:59:56]Write to MH i2c: E2 08 00 DA 01 80 11 00 00 00 00 00 00 55 [16:59:56]Write i2c OK [16:59:56]MH_I2C_Read... [16:59:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:57]Read from MH i2c: E2 [16:59:57]MH_I2C_Read... [16:59:57]Read from MH i2c: E2 17 00 [16:59:57]MH_I2C_Read... [16:59:57]Read from MH i2c: E2 17 00 DA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A7 [16:59:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [16:59:57]wFMCommunicate OK [16:59:57]requested_item fd.num is exist - process it [16:59:57]SAM_PROTO_GetFieldsCounters [16:59:57]wFMCommunicate request_size=4 [16:59:57]MH_SAM_APDU [16:59:57]CAPDU: 80 13 00 00 [16:59:57]Write to MH i2c: E2 08 00 DB 01 80 13 00 00 00 00 00 00 58 [16:59:57]Write i2c OK [16:59:57]MH_I2C_Read... [16:59:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:59:57]Read from MH i2c: E2 [16:59:57]MH_I2C_Read... [16:59:57]Read from MH i2c: E2 62 00 [16:59:57]MH_I2C_Read... [16:59:57]Read from MH i2c: E2 62 00 DB 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 44 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 EE [16:59:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 44 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:59:57]wFMCommunicate OK [16:59:57]SAM_PROTO_GetFieldsCounters done [16:59:57]requested_item shift.num is exist - process it [16:59:57]requested_item shift.opened is exist - process it [16:59:57]req_shift_opened [16:59:57]FM_GetShiftState [16:59:57]SAM_PROTO_GetShiftState [16:59:57]wFMCommunicate request_size=4 [16:59:57]MH_SAM_APDU [16:59:57]CAPDU: 80 13 01 00 [16:59:57]Write to MH i2c: E2 08 00 DC 01 80 13 01 00 00 00 00 00 5A [16:59:57]Write i2c OK [16:59:57]MH_I2C_Read... [16:59:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:57]Read from MH i2c: E2 [16:59:57]MH_I2C_Read... [16:59:57]Read from MH i2c: E2 0E 00 [16:59:57]MH_I2C_Read... [16:59:57]Read from MH i2c: E2 0E 00 DC 01 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 60 [16:59:57]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [16:59:57]wFMCommunicate OK [16:59:57]SAM_PROTO_GetShiftState done [16:59:57]FM_GetShiftState done [16:59:57]req_shift_opened done [16:59:57]requested_item shift.open_date is exist - process it [16:59:57]req_shift_open_date [16:59:57]req_shift_open_date done [16:59:57]produce_requested_data done [16:59:57]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69444,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [16:59:57]process_action_free close_receipt [16:59:57]json_value_free [16:59:57]json_value_free done [16:59:57]process_json_proto returns [16:59:57]Send response to host [16:59:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69444,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [16:59:57]free response buf [16:59:57]execute_script done [16:59:57]execute_script returns [16:59:57]free content buf [16:59:57]Sock 9.Close socket [16:59:57]Sock 9.Thread stoped [17:00:00]OFD Sender: No OFD packet to send [17:00:05]OFD Sender: No OFD packet to send [17:00:11]OFD Sender: No OFD packet to send [17:00:16]OFD Sender: No OFD packet to send [17:00:21]OFD Sender: No OFD packet to send [17:00:26]OFD Sender: No OFD packet to send [17:00:31]OFD Sender: No OFD packet to send [17:00:36]OFD Sender: No OFD packet to send [17:00:41]OFD Sender: No OFD packet to send [17:00:46]OFD Sender: No OFD packet to send [17:00:51]OFD Sender: No OFD packet to send [17:00:56]OFD Sender: No OFD packet to send [17:01:01]OFD Sender: No OFD packet to send [17:01:06]OFD Sender: No OFD packet to send [17:01:11]OFD Sender: No OFD packet to send [17:01:16]OFD Sender: No OFD packet to send [17:01:21]OFD Sender: No OFD packet to send [17:01:26]OFD Sender: No OFD packet to send [17:01:30]accept exits with 8 [17:01:30]New connection [17:01:30]New thread 3067239780 created [17:01:30]Thread 3067096420 joined [17:01:30]Waiting for new connection... [17:01:30] Sock 8.Parse request [17:01:30]Sock 8.Check first char [17:01:30]Sock 8.First char is OK [17:01:30]request: POST /json_proto HTTP/1.0 [17:01:30]Method: POST [17:01:30]URL: /json_proto [17:01:30]Method is POST - this is cgi request [17:01:30]url: /json_proto [17:01:30]query_string will be loaded in cgi processing [17:01:30]execute_cgi json_proto POST (null) [17:01:30]execute_cgi path=json_proto method=POST [17:01:30]POST find Content-Length [17:01:30]Host: 172.17.50.3:8080 [17:01:30]Content-Length: 765 [17:01:30]Content-Type: application/json [17:01:30] [17:01:30]POST finish read [17:01:30]Found Content-Length = 765 [17:01:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 800.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:30]execute_script... [17:01:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 800.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:30]POST & json_proto [17:01:30]process_json_proto [17:01:30]json parsed OK: [17:01:30]protocol is kg_v1.0 [17:01:30]action value=close_receipt [17:01:30]process_action close_receipt [17:01:30]cmd_close_receipt [17:01:30]MH_GetDate [17:01:30]Write to MH i2c: F0 00 00 DD 01 CD [17:01:30]Write i2c OK [17:01:30]MH_I2C_Read... [17:01:30]Read from MH i2c: F0 [17:01:30]MH_I2C_Read... [17:01:30]Read from MH i2c: F0 09 00 [17:01:30]MH_I2C_Read... [17:01:30]Read from MH i2c: F0 09 00 DD 01 00 6B 37 15 67 6B 98 1E 66 7B [17:01:30]GetLastDocTimeStamp 1729443593 [17:01:30]current date 1729443691 [17:01:30]FM_GetShiftState [17:01:30]SAM_PROTO_GetShiftState [17:01:30]wFMCommunicate request_size=4 [17:01:30]MH_SAM_APDU [17:01:30]CAPDU: 80 13 01 00 [17:01:30]Write to MH i2c: E2 08 00 DE 01 80 13 01 00 00 00 00 00 5C [17:01:30]Write i2c OK [17:01:30]MH_I2C_Read... [17:01:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:30]Read from MH i2c: E2 [17:01:30]MH_I2C_Read... [17:01:30]Read from MH i2c: E2 0E 00 [17:01:30]MH_I2C_Read... [17:01:30]Read from MH i2c: E2 0E 00 DE 01 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 62 [17:01:30]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:01:30]wFMCommunicate OK [17:01:30]SAM_PROTO_GetShiftState done [17:01:30]FM_GetShiftState done [17:01:30]opened in 1729383220 [17:01:30]opened+sec_in_day 1729469620 [17:01:30]quantity*price = 80010 [17:01:30]sum+1 = 80011 [17:01:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.10 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 0.00 Безнал.: 800.10 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 290 20.10.2024 17:01 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69445 ФПД: 153365692203909 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170131&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69445&fm=153365692203909&tin=02508201610067®Number=0000000000156251&sum=80010 [17:01:31]StoreToDocumentArchive [17:01:31]shift 193 fd 69445 [17:01:31]save to /storage/0193/doc_00069445 [17:01:31]save last doc name /storage/0193/doc_00069445 to /storage/kkm_last_doc_name [17:01:31]save OK [17:01:31]Clear old archive folders... [17:01:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:01:31]tlvbuf is 00CEE7F0 [17:01:31]SAM_PROTO_ClearQueue [17:01:31]wFMCommunicate request_size=4 [17:01:31]MH_SAM_APDU [17:01:31]CAPDU: 80 09 00 00 [17:01:31]Write to MH i2c: E2 08 00 EB 01 80 09 00 00 00 00 00 00 5E [17:01:31]Write i2c OK [17:01:31]MH_I2C_Read... [17:01:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:01:31]Read from MH i2c: E2 [17:01:31]MH_I2C_Read... [17:01:31]Read from MH i2c: E2 03 00 [17:01:31]MH_I2C_Read... [17:01:31]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [17:01:31]RAPDU: 90 00 [17:01:31]wFMCommunicate OK [17:01:31]SAM_PROTO_ClearQueue done [17:01:31]KKMCreateOFDPacket [17:01:31]OFDProtocolAddRootSTLVToBuf [17:01:31]FM_MakeSignedData [17:01:31]FM_MakeSignedData [17:01:31]SAM_PROTO_SignData [17:01:31]wFMCommunicate request_size=4 [17:01:31]MH_SAM_APDU [17:01:31]CAPDU: 80 0D 01 02 [17:01:31]Write to MH i2c: E2 08 00 EC 01 80 0D 01 02 00 00 00 00 66 [17:01:31]Write i2c OK [17:01:31]MH_I2C_Read... [17:01:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:01:31]Read from MH i2c: E2 [17:01:31]MH_I2C_Read... [17:01:31]Read from MH i2c: E2 03 00 [17:01:31]MH_I2C_Read... [17:01:31]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [17:01:31]RAPDU: 90 00 [17:01:31]wFMCommunicate OK [17:01:31]wFMCommunicate request_size=255 [17:01:31]MH_SAM_APDU [17:01:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 6B 37 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 45 0F 01 00 35 04 06 00 8B 7C 3B 9A [17:01:31]Write to MH i2c: E2 02 01 ED 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 6B 37 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 45 0F 01 00 35 04 06 00 8B 7C 3B 9A 00 00 5F [17:01:31]Write i2c OK [17:01:31]MH_I2C_Read... [17:01:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:32]Read from MH i2c: E2 [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: E2 03 00 [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [17:01:32]RAPDU: 90 00 [17:01:32]wFMCommunicate OK [17:01:32]wFMCommunicate request_size=7 [17:01:32]MH_SAM_APDU [17:01:32]CAPDU: 80 0D 02 02 02 C3 85 [17:01:32]Write to MH i2c: E2 0A 00 EE 01 80 0D 02 02 02 00 C3 85 00 00 B5 [17:01:32]Write i2c OK [17:01:32]MH_I2C_Read... [17:01:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:32]Read from MH i2c: E2 [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: E2 03 00 [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: E2 03 00 EE 01 00 90 00 63 [17:01:32]RAPDU: 90 00 [17:01:32]wFMCommunicate OK [17:01:32]wFMCommunicate request_size=4 [17:01:32]MH_SAM_APDU [17:01:32]CAPDU: 80 0D 03 02 [17:01:32]Write to MH i2c: E2 08 00 EF 01 80 0D 03 02 00 00 00 00 6B [17:01:32]Write i2c OK [17:01:32]MH_I2C_Read... [17:01:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:01:32]Read from MH i2c: E2 [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: E2 0B 00 [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: E2 0B 00 EF 01 00 8A 7C 57 65 5A 2F 8A 96 90 00 D7 [17:01:32]RAPDU: 8A 7C 57 65 5A 2F 8A 96 90 00 [17:01:32]wFMCommunicate OK [17:01:32]SAM_PROTO_SignData done [17:01:32]FM_MakeSignedData done [17:01:32]CreateOFDProtocolMessage [17:01:32]wFMCommunicate request_size=4 [17:01:32]MH_SAM_APDU [17:01:32]CAPDU: 80 11 00 00 [17:01:32]Write to MH i2c: E2 08 00 F0 01 80 11 00 00 00 00 00 00 6B [17:01:32]Write i2c OK [17:01:32]MH_I2C_Read... [17:01:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:32]Read from MH i2c: E2 [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: E2 17 00 [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: E2 17 00 F0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BD [17:01:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:01:32]wFMCommunicate OK [17:01:32]CreateOFDProtocolMessage done [17:01:32]OFDSenderStorePacket 69445 [17:01:32]StoreOFDPacket docnum=69445 [17:01:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 3B 7B 04 01 8B 04 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 6B 37 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 45 0F 01 00 35 04 06 00 8B 7C 3B 9A C3 85 8A 7C 57 65 5A 2F 8A 96 [17:01:32]CheckFolder [17:01:32]dirname=/storage/ofd_packets [17:01:32]CheckFolder done [17:01:32]ProducePacketName [17:01:32]name=ofd_packets/00069445 [17:01:32]NVStorageSaveData ofd_packets/00069445 [17:01:32]File name is /storage/ofd_packets/00069445 [17:01:32]Write 298 bytes [17:01:32]NVStorageSaveData done [17:01:32]OFDSenderStorePacket done [17:01:32]KKMCreateOFDPacket done [17:01:32]NVStorageSaveData kkm_last_timestamp [17:01:32]File name is /storage/kkm_last_timestamp [17:01:32]Write 4 bytes [17:01:32]NVStorageSaveData done [17:01:32]ExternCall_PrintAddStr [17:01:32]wPrintStart [17:01:32]Write to MH i2c: 01 00 00 F1 01 F2 [17:01:32]Write i2c OK [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: 01 [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: 01 07 00 [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: 01 07 00 F1 01 00 00 00 00 00 FF 0F 07 [17:01:32]RasterBufferAndPrint [17:01:32]line Счет N : (1)2885173 [17:01:32]line ИНН: 02508201610067 [17:01:32]line Контрольно-Кассовый Чек [17:01:32]line ПРОДАЖА [17:01:32]line ТРК (МРК, ГНК) : 61 [17:01:32]line Товар: 2710194210 [17:01:32]line ДТ-К-5 [17:01:32]line 10.500 * 76.20 [17:01:32]line = 800.10 [17:01:32]line НДС 12% НСП 1% [17:01:32]line > о реализуемом товаре [17:01:32]line ИТОГО: 800.10 [17:01:32]line НСП 1% : 7.08 [17:01:32]line НДС 12% : 84.97 [17:01:32]line Наличными: 0.00 [17:01:32]line Безнал.: 800.10 [17:01:32]line Место: АЗС № 85 "Партнер Нефть" [17:01:32]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:01:32]line СНО: Общий режим [17:01:32]line Чек 290 20.10.2024 17:01 [17:01:32]line Смена: 193 ФФД: 1.0 [17:01:32]line ЗНМ: 0300000167 [17:01:32]line РНМ: 0000000000156251 [17:01:32]line Версия ККМ: v1.0 [17:01:32]line Платежная система: Mbank [17:01:32]line ФМ: 0000000000963346 [17:01:32]line ФД: 69445 [17:01:32]line ФПД: 153365692203909 [17:01:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170131&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69445&fm=153365692203909&tin=02508201610067®Number=0000000000156251&sum=80010 [17:01:32]OFD Sender: Processing packet 69445 [packets to send 18, broken 17] [17:01:32]ProducePacketName [17:01:32]name=ofd_packets/00069445 [17:01:32]OFD Sender: To server: pG, [17:01:32]CommunicateWithHost lk.salyk.kg:30040 [17:01:32]ConnectInit lk.salyk.kg [17:01:32]written 0, free lines is 4095 [17:01:32]Connected sock=10 [17:01:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 3B 7B 04 01 8B 04 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 6B 37 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 45 0F 01 00 35 04 06 00 8B 7C 3B 9A C3 85 8A 7C 57 65 5A 2F 8A 96 [17:01:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 1D 08 47 00 31 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 45 0F 01 00 F4 03 04 00 11 E1 14 67 B6 04 01 00 00 B7 CB 42 87 91 1F CB B6 [17:01:32]CommunicateWithHost err = 0 [17:01:32]CheckOFDResponse [17:01:32]1017 (14) - 77093643461234 [17:01:32]1041 (16) - 0000000000963346 [17:01:32]1040 (4) - 69445 [17:01:32]1012 (4) - 20.10.2024 10:53 [17:01:32]1206 (1) - 0 [17:01:32]OFD Sender: Remove packet 69445 [17:01:32]ProducePacketName [17:01:32]name=ofd_packets/00069445 [17:01:32]NVStorageDeleteData [17:01:33]Write to MH i2c: 01 00 00 1A 02 1C [17:01:33]Write i2c OK [17:01:33]MH_I2C_Read... [17:01:33]Read from MH i2c: 01 [17:01:33]MH_I2C_Read... [17:01:33]Read from MH i2c: 01 07 00 [17:01:33]MH_I2C_Read... [17:01:33]Read from MH i2c: 01 07 00 1A 02 00 00 00 00 00 1D 0D 4D [17:01:33]RasterBufferAndPrint [17:01:33]line [17:01:33]line [17:01:33]line [17:01:33]line [17:01:33]line [17:01:33]written 0, free lines is 3363 [17:01:33]MH_Cut [17:01:33]Write to MH i2c: D1 01 00 21 02 01 F5 [17:01:33]Write i2c OK [17:01:33]MH_I2C_Read... [17:01:33]Read from MH i2c: D1 [17:01:33]MH_I2C_Read... [17:01:33]Read from MH i2c: D1 01 00 [17:01:33]MH_I2C_Read... [17:01:33]Read from MH i2c: D1 01 00 21 02 00 F4 [17:01:33]Write to MH i2c: 01 00 00 22 02 24 [17:01:33]Write i2c OK [17:01:33]MH_I2C_Read... [17:01:33]OFD Sender: No OFD packet to send [17:01:33]*** Cut start [17:01:33]*** Partial cut [17:01:33]*** CUTSNS_PIN = 1 [17:01:33]*** CUTSNS_PIN = 0 [17:01:34]*** Brake cut motor [17:01:34]Read from MH i2c: 01 [17:01:34]MH_I2C_Read... [17:01:34]*** Stop cut motor [17:01:34]*** Cut end [17:01:34]Read from MH i2c: 01 07 00 [17:01:34]MH_I2C_Read... [17:01:34]Read from MH i2c: 01 07 00 22 02 00 00 00 00 00 FF 0F 39 [17:01:34]process_action close_receipt done [17:01:34]requested_data is exist [17:01:34]produce_requested_data [17:01:34]requested_item fm.sn is exist - process it [17:01:34]wFMCommunicate request_size=4 [17:01:34]MH_SAM_APDU [17:01:34]CAPDU: 80 11 00 00 [17:01:34]Write to MH i2c: E2 08 00 23 02 80 11 00 00 00 00 00 00 9F [17:01:34]Write i2c OK [17:01:34]MH_I2C_Read... [17:01:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:34]Read from MH i2c: E2 [17:01:34]MH_I2C_Read... [17:01:34]Read from MH i2c: E2 17 00 [17:01:34]MH_I2C_Read... [17:01:34]Read from MH i2c: E2 17 00 23 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F1 [17:01:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:01:34]wFMCommunicate OK [17:01:34]requested_item fd.num is exist - process it [17:01:34]SAM_PROTO_GetFieldsCounters [17:01:34]wFMCommunicate request_size=4 [17:01:34]MH_SAM_APDU [17:01:34]CAPDU: 80 13 00 00 [17:01:34]Write to MH i2c: E2 08 00 24 02 80 13 00 00 00 00 00 00 A2 [17:01:34]Write i2c OK [17:01:34]MH_I2C_Read... [17:01:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:01:34]Read from MH i2c: E2 [17:01:34]MH_I2C_Read... [17:01:34]Read from MH i2c: E2 62 00 [17:01:34]MH_I2C_Read... [17:01:34]Read from MH i2c: E2 62 00 24 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 45 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 3C [17:01:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 45 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:01:34]wFMCommunicate OK [17:01:34]SAM_PROTO_GetFieldsCounters done [17:01:34]requested_item shift.num is exist - process it [17:01:34]requested_item shift.opened is exist - process it [17:01:34]req_shift_opened [17:01:34]FM_GetShiftState [17:01:34]SAM_PROTO_GetShiftState [17:01:34]wFMCommunicate request_size=4 [17:01:34]MH_SAM_APDU [17:01:34]CAPDU: 80 13 01 00 [17:01:34]Write to MH i2c: E2 08 00 25 02 80 13 01 00 00 00 00 00 A4 [17:01:34]Write i2c OK [17:01:34]MH_I2C_Read... [17:01:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:34]Read from MH i2c: E2 [17:01:34]MH_I2C_Read... [17:01:34]Read from MH i2c: E2 0E 00 [17:01:34]MH_I2C_Read... [17:01:34]Read from MH i2c: E2 0E 00 25 02 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 AA [17:01:34]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:01:34]wFMCommunicate OK [17:01:34]SAM_PROTO_GetShiftState done [17:01:34]FM_GetShiftState done [17:01:34]req_shift_opened done [17:01:34]requested_item shift.open_date is exist - process it [17:01:34]req_shift_open_date [17:01:34]req_shift_open_date done [17:01:34]produce_requested_data done [17:01:34]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69445,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [17:01:34]process_action_free close_receipt [17:01:34]json_value_free [17:01:34]json_value_free done [17:01:34]process_json_proto returns [17:01:34]Send response to host [17:01:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69445,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [17:01:34]free response buf [17:01:34]execute_script done [17:01:34]execute_script returns [17:01:34]free content buf [17:01:34]Sock 8.Close socket [17:01:34]Sock 8.Thread stoped [17:01:38]OFD Sender: No OFD packet to send [17:01:43]OFD Sender: No OFD packet to send [17:01:48]OFD Sender: No OFD packet to send [17:01:53]OFD Sender: No OFD packet to send [17:01:58]OFD Sender: No OFD packet to send [17:02:03]OFD Sender: No OFD packet to send [17:02:08]OFD Sender: No OFD packet to send [17:02:13]OFD Sender: No OFD packet to send [17:02:18]OFD Sender: No OFD packet to send [17:02:23]OFD Sender: No OFD packet to send [17:02:28]OFD Sender: No OFD packet to send [17:02:33]OFD Sender: No OFD packet to send [17:02:38]OFD Sender: No OFD packet to send [17:02:43]OFD Sender: No OFD packet to send [17:02:48]OFD Sender: No OFD packet to send [17:02:53]OFD Sender: No OFD packet to send [17:02:58]OFD Sender: No OFD packet to send [17:03:03]OFD Sender: No OFD packet to send [17:03:08]OFD Sender: No OFD packet to send [17:03:13]OFD Sender: No OFD packet to send [17:03:18]OFD Sender: No OFD packet to send [17:03:23]OFD Sender: No OFD packet to send [17:03:28]OFD Sender: No OFD packet to send [17:03:33]OFD Sender: No OFD packet to send [17:03:38]OFD Sender: No OFD packet to send [17:03:43]OFD Sender: No OFD packet to send [17:03:48]OFD Sender: No OFD packet to send [17:03:53]OFD Sender: No OFD packet to send [17:03:55]accept exits with 9 [17:03:55]New connection [17:03:55]New thread 3067096420 created [17:03:55]Thread 3067239780 joined [17:03:55]Waiting for new connection... [17:03:55] Sock 9.Parse request [17:03:55]Sock 9.Check first char [17:03:55]Sock 9.First char is OK [17:03:55]request: POST /json_proto HTTP/1.0 [17:03:55]Method: POST [17:03:55]URL: /json_proto [17:03:55]Method is POST - this is cgi request [17:03:55]url: /json_proto [17:03:55]query_string will be loaded in cgi processing [17:03:55]execute_cgi json_proto POST (null) [17:03:55]execute_cgi path=json_proto method=POST [17:03:55]POST find Content-Length [17:03:55]Host: 172.17.50.3:8080 [17:03:55]Content-Length: 689 [17:03:55]Content-Type: application/json [17:03:55] [17:03:55]POST finish read [17:03:55]Found Content-Length = 689 [17:03:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:55]execute_script... [17:03:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:55]POST & json_proto [17:03:55]process_json_proto [17:03:55]json parsed OK: [17:03:55]protocol is kg_v1.0 [17:03:55]action value=close_receipt [17:03:55]process_action close_receipt [17:03:55]cmd_close_receipt [17:03:55]MH_GetDate [17:03:55]Write to MH i2c: F0 00 00 26 02 17 [17:03:55]Write i2c OK [17:03:55]MH_I2C_Read... [17:03:55]Read from MH i2c: F0 [17:03:55]MH_I2C_Read... [17:03:55]Read from MH i2c: F0 09 00 [17:03:55]MH_I2C_Read... [17:03:55]Read from MH i2c: F0 09 00 26 02 00 FC 37 15 67 6B 98 1E 66 56 [17:03:55]GetLastDocTimeStamp 1729443691 [17:03:55]current date 1729443836 [17:03:55]FM_GetShiftState [17:03:55]SAM_PROTO_GetShiftState [17:03:55]wFMCommunicate request_size=4 [17:03:55]MH_SAM_APDU [17:03:55]CAPDU: 80 13 01 00 [17:03:55]Write to MH i2c: E2 08 00 27 02 80 13 01 00 00 00 00 00 A6 [17:03:55]Write i2c OK [17:03:55]MH_I2C_Read... [17:03:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:55]Read from MH i2c: E2 [17:03:55]MH_I2C_Read... [17:03:55]Read from MH i2c: E2 0E 00 [17:03:55]MH_I2C_Read... [17:03:55]Read from MH i2c: E2 0E 00 27 02 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 AC [17:03:55]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:03:55]wFMCommunicate OK [17:03:55]SAM_PROTO_GetShiftState done [17:03:55]FM_GetShiftState done [17:03:55]opened in 1729383220 [17:03:55]opened+sec_in_day 1729469620 [17:03:55]quantity*price = 150076 [17:03:55]sum+1 = 150078 [17:03:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 291 20.10.2024 17:03 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69446 ФПД: 133853321090576 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170356&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69446&fm=133853321090576&tin=02508201610067®Number=0000000000156251&sum=150000 [17:03:57]StoreToDocumentArchive [17:03:57]shift 193 fd 69446 [17:03:57]save to /storage/0193/doc_00069446 [17:03:57]save last doc name /storage/0193/doc_00069446 to /storage/kkm_last_doc_name [17:03:57]save OK [17:03:57]Clear old archive folders... [17:03:57]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:03:57]tlvbuf is 00D139B0 [17:03:57]SAM_PROTO_ClearQueue [17:03:57]wFMCommunicate request_size=4 [17:03:57]MH_SAM_APDU [17:03:57]CAPDU: 80 09 00 00 [17:03:57]Write to MH i2c: E2 08 00 34 02 80 09 00 00 00 00 00 00 A8 [17:03:57]Write i2c OK [17:03:57]MH_I2C_Read... [17:03:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:03:57]Read from MH i2c: E2 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: E2 03 00 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [17:03:57]RAPDU: 90 00 [17:03:57]wFMCommunicate OK [17:03:57]SAM_PROTO_ClearQueue done [17:03:57]KKMCreateOFDPacket [17:03:57]OFDProtocolAddRootSTLVToBuf [17:03:57]FM_MakeSignedData [17:03:57]FM_MakeSignedData [17:03:57]SAM_PROTO_SignData [17:03:57]wFMCommunicate request_size=4 [17:03:57]MH_SAM_APDU [17:03:57]CAPDU: 80 0D 01 02 [17:03:57]Write to MH i2c: E2 08 00 35 02 80 0D 01 02 00 00 00 00 B0 [17:03:57]Write i2c OK [17:03:57]MH_I2C_Read... [17:03:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:03:57]Read from MH i2c: E2 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: E2 03 00 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: E2 03 00 35 02 00 90 00 AB [17:03:57]RAPDU: 90 00 [17:03:57]wFMCommunicate OK [17:03:57]wFMCommunicate request_size=255 [17:03:57]MH_SAM_APDU [17:03:57]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 FC 37 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 46 0F 01 [17:03:57]Write to MH i2c: E2 02 01 36 02 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 FC 37 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 46 0F 01 00 00 3E [17:03:57]Write i2c OK [17:03:57]MH_I2C_Read... [17:03:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:57]Read from MH i2c: E2 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: E2 03 00 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [17:03:57]RAPDU: 90 00 [17:03:57]wFMCommunicate OK [17:03:57]wFMCommunicate request_size=16 [17:03:57]MH_SAM_APDU [17:03:57]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 79 BD 27 A7 D6 10 [17:03:57]Write to MH i2c: E2 13 00 37 02 80 0D 02 02 0B 00 00 35 04 06 00 79 BD 27 A7 D6 10 00 00 F2 [17:03:57]Write i2c OK [17:03:57]MH_I2C_Read... [17:03:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:57]Read from MH i2c: E2 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: E2 03 00 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [17:03:57]RAPDU: 90 00 [17:03:57]wFMCommunicate OK [17:03:57]wFMCommunicate request_size=4 [17:03:57]MH_SAM_APDU [17:03:57]CAPDU: 80 0D 03 02 [17:03:57]Write to MH i2c: E2 08 00 38 02 80 0D 03 02 00 00 00 00 B5 [17:03:57]Write i2c OK [17:03:57]MH_I2C_Read... [17:03:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:03:57]Read from MH i2c: E2 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: E2 0B 00 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: E2 0B 00 38 02 00 08 74 36 C0 EC 60 A0 30 90 00 44 [17:03:57]RAPDU: 08 74 36 C0 EC 60 A0 30 90 00 [17:03:57]wFMCommunicate OK [17:03:57]SAM_PROTO_SignData done [17:03:57]FM_MakeSignedData done [17:03:57]CreateOFDProtocolMessage [17:03:57]wFMCommunicate request_size=4 [17:03:57]MH_SAM_APDU [17:03:57]CAPDU: 80 11 00 00 [17:03:57]Write to MH i2c: E2 08 00 39 02 80 11 00 00 00 00 00 00 B5 [17:03:57]Write i2c OK [17:03:57]MH_I2C_Read... [17:03:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:57]Read from MH i2c: E2 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: E2 17 00 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: E2 17 00 39 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 07 [17:03:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:03:57]wFMCommunicate OK [17:03:57]CreateOFDProtocolMessage done [17:03:57]OFDSenderStorePacket 69446 [17:03:57]StoreOFDPacket docnum=69446 [17:03:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 CA BE 0D 01 BF 82 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 FC 37 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 46 0F 01 00 35 04 06 00 79 BD 27 A7 D6 10 08 74 36 C0 EC 60 A0 30 [17:03:57]CheckFolder [17:03:57]dirname=/storage/ofd_packets [17:03:57]CheckFolder done [17:03:57]ProducePacketName [17:03:57]name=ofd_packets/00069446 [17:03:57]NVStorageSaveData ofd_packets/00069446 [17:03:57]File name is /storage/ofd_packets/00069446 [17:03:57]Write 307 bytes [17:03:57]NVStorageSaveData done [17:03:57]OFDSenderStorePacket done [17:03:57]KKMCreateOFDPacket done [17:03:57]NVStorageSaveData kkm_last_timestamp [17:03:57]File name is /storage/kkm_last_timestamp [17:03:57]Write 4 bytes [17:03:57]NVStorageSaveData done [17:03:57]ExternCall_PrintAddStr [17:03:57]wPrintStart [17:03:57]Write to MH i2c: 01 00 00 3A 02 3C [17:03:57]Write i2c OK [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: 01 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: 01 07 00 [17:03:57]MH_I2C_Read... [17:03:57]Read from MH i2c: 01 07 00 3A 02 00 00 00 00 00 FF 0F 51 [17:03:57]RasterBufferAndPrint [17:03:57]line Счет N : (1)2885174 [17:03:57]line ИНН: 02508201610067 [17:03:57]line Контрольно-Кассовый Чек [17:03:57]line ПРОДАЖА [17:03:57]line ТРК (МРК, ГНК) : 31 [17:03:57]line Товар: 2710194240 [17:03:57]line D-ENERGY Дт-К-2 [17:03:57]line 19.440 * 77.20 [17:03:57]line = 1500.77 [17:03:57]line НДС 12% НСП 1% [17:03:57]line > о реализуемом товаре [17:03:57]line ОКРУГЛЕНИЕ: -0.77 [17:03:57]line ИТОГО: 1500.00 [17:03:57]line Внесено: 1500.00 [17:03:57]line СДАЧА: 0.00 [17:03:57]line НСП 1% : 13.28 [17:03:57]line НДС 12% : 159.37 [17:03:57]line Наличными: 1500.00 [17:03:57]line Безнал.: 0.00 [17:03:57]line Место: АЗС № 85 "Партнер Нефть" [17:03:57]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:03:57]line СНО: Общий режим [17:03:57]line Чек 291 20.10.2024 17:03 [17:03:57]line Смена: 193 ФФД: 1.0 [17:03:57]line ЗНМ: 0300000167 [17:03:57]line РНМ: 0000000000156251 [17:03:57]line Версия ККМ: v1.0 [17:03:57]line ФМ: 0000000000963346 [17:03:57]line ФД: 69446 [17:03:57]line ФПД: 133853321090576 [17:03:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170356&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69446&fm=133853321090576&tin=02508201610067®Number=0000000000156251&sum=150000 [17:03:57]OFD Sender: Processing packet 69446 [packets to send 18, broken 17] [17:03:57]ProducePacketName [17:03:57]name=ofd_packets/00069446 [17:03:57]OFD Sender: To server: pG, [17:03:57]CommunicateWithHost lk.salyk.kg:30040 [17:03:57]ConnectInit lk.salyk.kg [17:03:57]written 0, free lines is 4095 [17:03:57]Connected sock=10 [17:03:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 CA BE 0D 01 BF 82 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 FC 37 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 46 0F 01 00 35 04 06 00 79 BD 27 A7 D6 10 08 74 36 C0 EC 60 A0 30 [17:03:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 0A 01 47 00 C9 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 30 39 36 33 33 34 36 10 04 04 00 46 0F 01 00 F4 03 04 00 A2 E1 14 67 B6 04 01 00 00 A6 1E 2A 9C 13 DE DB 89 [17:03:58]CommunicateWithHost err = 0 [17:03:58]CheckOFDResponse [17:03:58]1017 (14) - 77093643461234 [17:03:58]1041 (16) - 0000000000963346 [17:03:58]1040 (4) - 69446 [17:03:58]1012 (4) - 20.10.2024 10:55 [17:03:58]1206 (1) - 0 [17:03:58]OFD Sender: Remove packet 69446 [17:03:58]ProducePacketName [17:03:58]name=ofd_packets/00069446 [17:03:58]NVStorageDeleteData [17:03:58]Write to MH i2c: 01 00 00 65 02 67 [17:03:58]Write i2c OK [17:03:58]MH_I2C_Read... [17:03:58]Read from MH i2c: 01 [17:03:58]MH_I2C_Read... [17:03:58]Read from MH i2c: 01 07 00 [17:03:58]MH_I2C_Read... [17:03:58]Read from MH i2c: 01 07 00 65 02 00 00 00 00 00 F7 0C 71 [17:03:58]RasterBufferAndPrint [17:03:58]line [17:03:58]line [17:03:58]line [17:03:58]line [17:03:58]line [17:03:58]written 0, free lines is 3326 [17:03:58]MH_Cut [17:03:58]Write to MH i2c: D1 01 00 6C 02 01 40 [17:03:58]Write i2c OK [17:03:58]MH_I2C_Read... [17:03:58]Read from MH i2c: D1 [17:03:58]MH_I2C_Read... [17:03:58]Read from MH i2c: D1 01 00 [17:03:58]MH_I2C_Read... [17:03:58]Read from MH i2c: D1 01 00 6C 02 00 3F [17:03:58]Write to MH i2c: 01 00 00 6D 02 6F [17:03:58]Write i2c OK [17:03:58]MH_I2C_Read... [17:03:58]OFD Sender: No OFD packet to send [17:03:59]*** Cut start [17:03:59]*** Partial cut [17:03:59]*** CUTSNS_PIN = 1 [17:03:59]*** CUTSNS_PIN = 0 [17:03:59]*** Brake cut motor [17:03:59]Read from MH i2c: 01 [17:03:59]MH_I2C_Read... [17:03:59]*** Stop cut motor [17:03:59]*** Cut end [17:03:59]Read from MH i2c: 01 07 00 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: 01 07 00 6D 02 00 00 00 00 00 FF 0F 84 [17:03:59]process_action close_receipt done [17:03:59]requested_data is exist [17:03:59]produce_requested_data [17:03:59]requested_item fm.sn is exist - process it [17:03:59]wFMCommunicate request_size=4 [17:03:59]MH_SAM_APDU [17:03:59]CAPDU: 80 11 00 00 [17:03:59]Write to MH i2c: E2 08 00 6E 02 80 11 00 00 00 00 00 00 EA [17:03:59]Write i2c OK [17:03:59]MH_I2C_Read... [17:03:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:59]Read from MH i2c: E2 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: E2 17 00 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: E2 17 00 6E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3C [17:03:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:03:59]wFMCommunicate OK [17:03:59]requested_item fd.num is exist - process it [17:03:59]SAM_PROTO_GetFieldsCounters [17:03:59]wFMCommunicate request_size=4 [17:03:59]MH_SAM_APDU [17:03:59]CAPDU: 80 13 00 00 [17:03:59]Write to MH i2c: E2 08 00 6F 02 80 13 00 00 00 00 00 00 ED [17:03:59]Write i2c OK [17:03:59]MH_I2C_Read... [17:03:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:03:59]Read from MH i2c: E2 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: E2 62 00 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: E2 62 00 6F 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 46 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 8B [17:03:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 46 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:03:59]wFMCommunicate OK [17:03:59]SAM_PROTO_GetFieldsCounters done [17:03:59]requested_item shift.num is exist - process it [17:03:59]requested_item shift.opened is exist - process it [17:03:59]req_shift_opened [17:03:59]FM_GetShiftState [17:03:59]SAM_PROTO_GetShiftState [17:03:59]wFMCommunicate request_size=4 [17:03:59]MH_SAM_APDU [17:03:59]CAPDU: 80 13 01 00 [17:03:59]Write to MH i2c: E2 08 00 70 02 80 13 01 00 00 00 00 00 EF [17:03:59]Write i2c OK [17:03:59]MH_I2C_Read... [17:03:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:59]Read from MH i2c: E2 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: E2 0E 00 [17:03:59]MH_I2C_Read... [17:03:59]Read from MH i2c: E2 0E 00 70 02 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 F5 [17:03:59]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:03:59]wFMCommunicate OK [17:03:59]SAM_PROTO_GetShiftState done [17:03:59]FM_GetShiftState done [17:03:59]req_shift_opened done [17:03:59]requested_item shift.open_date is exist - process it [17:03:59]req_shift_open_date [17:03:59]req_shift_open_date done [17:03:59]produce_requested_data done [17:03:59]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69446,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [17:03:59]process_action_free close_receipt [17:03:59]json_value_free [17:03:59]json_value_free done [17:03:59]process_json_proto returns [17:03:59]Send response to host [17:03:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69446,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [17:03:59]free response buf [17:03:59]execute_script done [17:03:59]execute_script returns [17:03:59]free content buf [17:03:59]Sock 9.Close socket [17:03:59]Sock 9.Thread stoped [17:04:03]OFD Sender: No OFD packet to send [17:04:08]OFD Sender: No OFD packet to send [17:04:13]OFD Sender: No OFD packet to send [17:04:18]OFD Sender: No OFD packet to send [17:04:23]OFD Sender: No OFD packet to send [17:04:28]OFD Sender: No OFD packet to send [17:04:33]OFD Sender: No OFD packet to send [17:04:38]OFD Sender: No OFD packet to send [17:04:43]OFD Sender: No OFD packet to send [17:04:48]OFD Sender: No OFD packet to send [17:04:53]OFD Sender: No OFD packet to send [17:04:58]OFD Sender: No OFD packet to send [17:05:03]OFD Sender: No OFD packet to send [17:05:08]OFD Sender: No OFD packet to send [17:05:13]OFD Sender: No OFD packet to send [17:05:18]OFD Sender: No OFD packet to send [17:05:23]OFD Sender: No OFD packet to send [17:05:28]OFD Sender: No OFD packet to send [17:05:33]OFD Sender: No OFD packet to send [17:05:38]OFD Sender: No OFD packet to send [17:05:43]OFD Sender: No OFD packet to send [17:05:48]OFD Sender: No OFD packet to send [17:05:53]OFD Sender: No OFD packet to send [17:05:58]OFD Sender: No OFD packet to send [17:06:03]OFD Sender: No OFD packet to send [17:06:08]OFD Sender: No OFD packet to send [17:06:13]OFD Sender: No OFD packet to send [17:06:18]OFD Sender: No OFD packet to send [17:06:23]OFD Sender: No OFD packet to send [17:06:28]OFD Sender: No OFD packet to send [17:06:33]OFD Sender: No OFD packet to send [17:06:38]OFD Sender: No OFD packet to send [17:06:43]OFD Sender: No OFD packet to send [17:06:48]OFD Sender: No OFD packet to send [17:06:53]OFD Sender: No OFD packet to send [17:06:58]OFD Sender: No OFD packet to send [17:07:03]OFD Sender: No OFD packet to send [17:07:08]OFD Sender: No OFD packet to send [17:07:10]accept exits with 8 [17:07:10]New connection [17:07:10]New thread 3067239780 created [17:07:10]Thread 3067096420 joined [17:07:10]Waiting for new connection... [17:07:10] Sock 8.Parse request [17:07:10]Sock 8.Check first char [17:07:10]Sock 8.First char is OK [17:07:10]request: POST /json_proto HTTP/1.0 [17:07:10]Method: POST [17:07:10]URL: /json_proto [17:07:10]Method is POST - this is cgi request [17:07:10]url: /json_proto [17:07:10]query_string will be loaded in cgi processing [17:07:10]execute_cgi json_proto POST (null) [17:07:10]execute_cgi path=json_proto method=POST [17:07:10]POST find Content-Length [17:07:10]Host: 172.17.50.3:8080 [17:07:10]Content-Length: 770 [17:07:10]Content-Type: application/json [17:07:10] [17:07:10]POST finish read [17:07:10]Found Content-Length = 770 [17:07:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:10]execute_script... [17:07:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:10]POST & json_proto [17:07:10]process_json_proto [17:07:10]json parsed OK: [17:07:10]protocol is kg_v1.0 [17:07:10]action value=close_receipt [17:07:10]process_action close_receipt [17:07:10]cmd_close_receipt [17:07:10]MH_GetDate [17:07:10]Write to MH i2c: F0 00 00 71 02 62 [17:07:10]Write i2c OK [17:07:10]MH_I2C_Read... [17:07:10]Read from MH i2c: F0 [17:07:10]MH_I2C_Read... [17:07:10]Read from MH i2c: F0 09 00 [17:07:10]MH_I2C_Read... [17:07:10]Read from MH i2c: F0 09 00 71 02 00 BE 38 15 67 6B 98 1E 66 64 [17:07:10]GetLastDocTimeStamp 1729443836 [17:07:10]current date 1729444030 [17:07:10]FM_GetShiftState [17:07:10]SAM_PROTO_GetShiftState [17:07:10]wFMCommunicate request_size=4 [17:07:10]MH_SAM_APDU [17:07:10]CAPDU: 80 13 01 00 [17:07:10]Write to MH i2c: E2 08 00 72 02 80 13 01 00 00 00 00 00 F1 [17:07:10]Write i2c OK [17:07:10]MH_I2C_Read... [17:07:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:10]Read from MH i2c: E2 [17:07:10]MH_I2C_Read... [17:07:10]Read from MH i2c: E2 0E 00 [17:07:10]MH_I2C_Read... [17:07:10]Read from MH i2c: E2 0E 00 72 02 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 F7 [17:07:10]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:07:10]wFMCommunicate OK [17:07:10]SAM_PROTO_GetShiftState done [17:07:10]FM_GetShiftState done [17:07:10]opened in 1729383220 [17:07:10]opened+sec_in_day 1729469620 [17:07:10]quantity*price = 100015 [17:07:10]sum+1 = 100017 [17:07:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 292 20.10.2024 17:07 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69447 ФПД: 45989025925517 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170710&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69447&fm=45989025925517&tin=02508201610067®Number=0000000000156251&sum=100016 [17:07:11]StoreToDocumentArchive [17:07:11]shift 193 fd 69447 [17:07:11]save to /storage/0193/doc_00069447 [17:07:11]save last doc name /storage/0193/doc_00069447 to /storage/kkm_last_doc_name [17:07:11]save OK [17:07:11]Clear old archive folders... [17:07:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:07:11]tlvbuf is 00CEE3B0 [17:07:11]SAM_PROTO_ClearQueue [17:07:11]wFMCommunicate request_size=4 [17:07:11]MH_SAM_APDU [17:07:11]CAPDU: 80 09 00 00 [17:07:11]Write to MH i2c: E2 08 00 7F 02 80 09 00 00 00 00 00 00 F3 [17:07:11]Write i2c OK [17:07:11]MH_I2C_Read... [17:07:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:07:11]Read from MH i2c: E2 [17:07:11]MH_I2C_Read... [17:07:11]Read from MH i2c: E2 03 00 [17:07:11]MH_I2C_Read... [17:07:11]Read from MH i2c: E2 03 00 7F 02 00 90 00 F5 [17:07:11]RAPDU: 90 00 [17:07:11]wFMCommunicate OK [17:07:11]SAM_PROTO_ClearQueue done [17:07:11]KKMCreateOFDPacket [17:07:11]OFDProtocolAddRootSTLVToBuf [17:07:11]FM_MakeSignedData [17:07:11]FM_MakeSignedData [17:07:11]SAM_PROTO_SignData [17:07:11]wFMCommunicate request_size=4 [17:07:11]MH_SAM_APDU [17:07:11]CAPDU: 80 0D 01 02 [17:07:11]Write to MH i2c: E2 08 00 80 02 80 0D 01 02 00 00 00 00 FB [17:07:11]Write i2c OK [17:07:11]MH_I2C_Read... [17:07:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:07:11]Read from MH i2c: E2 [17:07:11]MH_I2C_Read... [17:07:11]Read from MH i2c: E2 03 00 [17:07:11]MH_I2C_Read... [17:07:11]Read from MH i2c: E2 03 00 80 02 00 90 00 F6 [17:07:11]RAPDU: 90 00 [17:07:11]wFMCommunicate OK [17:07:11]wFMCommunicate request_size=255 [17:07:11]MH_SAM_APDU [17:07:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 BE 38 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 47 0F 01 00 35 04 06 00 29 [17:07:11]Write to MH i2c: E2 02 01 81 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 BE 38 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 47 0F 01 00 35 04 06 00 29 00 00 76 [17:07:11]Write i2c OK [17:07:11]MH_I2C_Read... [17:07:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:11]Read from MH i2c: E2 [17:07:11]MH_I2C_Read... [17:07:11]Read from MH i2c: E2 03 00 [17:07:11]MH_I2C_Read... [17:07:11]Read from MH i2c: E2 03 00 81 02 00 90 00 F7 [17:07:11]RAPDU: 90 00 [17:07:11]wFMCommunicate OK [17:07:11]wFMCommunicate request_size=10 [17:07:11]MH_SAM_APDU [17:07:11]CAPDU: 80 0D 02 02 05 D3 A7 8D C9 8D [17:07:11]Write to MH i2c: E2 0D 00 82 02 80 0D 02 02 05 00 D3 A7 8D C9 8D 00 00 65 [17:07:11]Write i2c OK [17:07:11]MH_I2C_Read... [17:07:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:11]Read from MH i2c: E2 [17:07:11]MH_I2C_Read... [17:07:11]Read from MH i2c: E2 03 00 [17:07:11]MH_I2C_Read... [17:07:11]Read from MH i2c: E2 03 00 82 02 00 90 00 F8 [17:07:11]RAPDU: 90 00 [17:07:11]wFMCommunicate OK [17:07:11]wFMCommunicate request_size=4 [17:07:11]MH_SAM_APDU [17:07:11]CAPDU: 80 0D 03 02 [17:07:11]Write to MH i2c: E2 08 00 83 02 80 0D 03 02 00 00 00 00 00 [17:07:11]Write i2c OK [17:07:11]MH_I2C_Read... [17:07:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:07:11]Read from MH i2c: E2 [17:07:11]MH_I2C_Read... [17:07:11]Read from MH i2c: E2 0B 00 [17:07:11]MH_I2C_Read... [17:07:11]Read from MH i2c: E2 0B 00 83 02 00 C1 46 96 17 06 17 EC 89 90 00 47 [17:07:11]RAPDU: C1 46 96 17 06 17 EC 89 90 00 [17:07:11]wFMCommunicate OK [17:07:11]SAM_PROTO_SignData done [17:07:11]FM_MakeSignedData done [17:07:11]CreateOFDProtocolMessage [17:07:11]wFMCommunicate request_size=4 [17:07:11]MH_SAM_APDU [17:07:11]CAPDU: 80 11 00 00 [17:07:11]Write to MH i2c: E2 08 00 84 02 80 11 00 00 00 00 00 00 00 [17:07:11]Write i2c OK [17:07:11]MH_I2C_Read... [17:07:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:11]Read from MH i2c: E2 [17:07:11]MH_I2C_Read... [17:07:11]Read from MH i2c: E2 17 00 [17:07:11]MH_I2C_Read... [17:07:11]Read from MH i2c: E2 17 00 84 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 52 [17:07:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:07:11]wFMCommunicate OK [17:07:11]CreateOFDProtocolMessage done [17:07:11]OFDSenderStorePacket 69447 [17:07:11]StoreOFDPacket docnum=69447 [17:07:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 72 C7 07 01 9F 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 BE 38 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 47 0F 01 00 35 04 06 00 29 D3 A7 8D C9 8D C1 46 96 17 06 17 EC 89 [17:07:11]CheckFolder [17:07:11]dirname=/storage/ofd_packets [17:07:11]CheckFolder done [17:07:11]ProducePacketName [17:07:11]name=ofd_packets/00069447 [17:07:11]NVStorageSaveData ofd_packets/00069447 [17:07:11]File name is /storage/ofd_packets/00069447 [17:07:11]Write 301 bytes [17:07:11]NVStorageSaveData done [17:07:11]OFDSenderStorePacket done [17:07:11]KKMCreateOFDPacket done [17:07:11]NVStorageSaveData kkm_last_timestamp [17:07:11]File name is /storage/kkm_last_timestamp [17:07:11]Write 4 bytes [17:07:11]NVStorageSaveData done [17:07:11]ExternCall_PrintAddStr [17:07:11]wPrintStart [17:07:11]Write to MH i2c: 01 00 00 85 02 87 [17:07:11]Write i2c OK [17:07:11]MH_I2C_Read... [17:07:11]Read from MH i2c: 01 [17:07:11]MH_I2C_Read... [17:07:11]Read from MH i2c: 01 07 00 [17:07:11]MH_I2C_Read... [17:07:11]Read from MH i2c: 01 07 00 85 02 00 00 00 00 00 FF 0F 9C [17:07:11]RasterBufferAndPrint [17:07:11]line Счет N : (1)2885176 [17:07:11]line ИНН: 02508201610067 [17:07:11]line Контрольно-Кассовый Чек [17:07:11]line ПРОДАЖА [17:07:11]line ТРК (МРК, ГНК) : 12 [17:07:11]line Товар: 2710124130 [17:07:11]line Аи-92-К-5 [17:07:11]line 14.950 * 66.90 [17:07:11]line = 1000.16 [17:07:11]line НДС 12% НСП 1% [17:07:11]line > о реализуемом товаре [17:07:11]line ИТОГО: 1000.16 [17:07:11]line НСП 1% : 8.85 [17:07:11]line НДС 12% : 106.21 [17:07:11]line Наличными: 0.00 [17:07:11]line Безнал.: 1000.16 [17:07:11]line Место: АЗС № 85 "Партнер Нефть" [17:07:11]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:07:11]line СНО: Общий режим [17:07:11]line Чек 292 20.10.2024 17:07 [17:07:11]line Смена: 193 ФФД: 1.0 [17:07:11]line ЗНМ: 0300000167 [17:07:11]line РНМ: 0000000000156251 [17:07:11]line Версия ККМ: v1.0 [17:07:11]line Платежная система: Mbank [17:07:11]line ФМ: 0000000000963346 [17:07:11]line ФД: 69447 [17:07:11]line ФПД: 45989025925517 [17:07:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170710&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69447&fm=45989025925517&tin=02508201610067®Number=0000000000156251&sum=100016 [17:07:12]OFD Sender: Processing packet 69447 [packets to send 18, broken 17] [17:07:12]ProducePacketName [17:07:12]name=ofd_packets/00069447 [17:07:12]OFD Sender: To server: pG, [17:07:12]CommunicateWithHost lk.salyk.kg:30040 [17:07:12]ConnectInit lk.salyk.kg [17:07:12]written 0, free lines is 4095 [17:07:12]Connected sock=11 [17:07:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 72 C7 07 01 9F 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 BE 38 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 47 0F 01 00 35 04 06 00 29 D3 A7 8D C9 8D C1 46 96 17 06 17 EC 89 [17:07:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 13 DE 47 00 1B B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 47 0F 01 00 F4 03 04 00 64 E2 14 67 B6 04 01 00 00 DF 04 35 65 EB 33 72 B4 [17:07:12]CommunicateWithHost err = 0 [17:07:12]CheckOFDResponse [17:07:12]1017 (14) - 77093643461234 [17:07:12]1041 (16) - 0000000000963346 [17:07:12]1040 (4) - 69447 [17:07:12]1012 (4) - 20.10.2024 10:58 [17:07:12]1206 (1) - 0 [17:07:12]OFD Sender: Remove packet 69447 [17:07:12]ProducePacketName [17:07:12]name=ofd_packets/00069447 [17:07:12]NVStorageDeleteData [17:07:12]Write to MH i2c: 01 00 00 AE 02 B0 [17:07:12]Write i2c OK [17:07:12]MH_I2C_Read... [17:07:12]Read from MH i2c: 01 [17:07:12]MH_I2C_Read... [17:07:12]Read from MH i2c: 01 07 00 [17:07:12]MH_I2C_Read... [17:07:12]Read from MH i2c: 01 07 00 AE 02 00 00 00 00 00 1E 0D E2 [17:07:12]RasterBufferAndPrint [17:07:12]line [17:07:12]line [17:07:12]line [17:07:12]line [17:07:12]line [17:07:12]written 0, free lines is 3363 [17:07:12]MH_Cut [17:07:12]Write to MH i2c: D1 01 00 B5 02 01 89 [17:07:12]Write i2c OK [17:07:12]MH_I2C_Read... [17:07:12]Read from MH i2c: D1 [17:07:12]MH_I2C_Read... [17:07:12]Read from MH i2c: D1 01 00 [17:07:12]MH_I2C_Read... [17:07:12]Read from MH i2c: D1 01 00 B5 02 00 88 [17:07:12]Write to MH i2c: 01 00 00 B6 02 B8 [17:07:12]Write i2c OK [17:07:12]MH_I2C_Read... [17:07:12]OFD Sender: No OFD packet to send [17:07:13]*** Cut start [17:07:13]*** Partial cut [17:07:13]*** CUTSNS_PIN = 1 [17:07:13]*** CUTSNS_PIN = 0 [17:07:13]*** Brake cut motor [17:07:13]Read from MH i2c: 01 [17:07:13]MH_I2C_Read... [17:07:13]*** Stop cut motor [17:07:13]*** Cut end [17:07:13]Read from MH i2c: 01 07 00 [17:07:13]MH_I2C_Read... [17:07:13]Read from MH i2c: 01 07 00 B6 02 00 00 00 00 00 FF 0F CD [17:07:13]process_action close_receipt done [17:07:13]requested_data is exist [17:07:13]produce_requested_data [17:07:13]requested_item fm.sn is exist - process it [17:07:13]wFMCommunicate request_size=4 [17:07:13]MH_SAM_APDU [17:07:13]CAPDU: 80 11 00 00 [17:07:13]Write to MH i2c: E2 08 00 B7 02 80 11 00 00 00 00 00 00 33 [17:07:13]Write i2c OK [17:07:13]MH_I2C_Read... [17:07:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:13]Read from MH i2c: E2 [17:07:13]MH_I2C_Read... [17:07:13]Read from MH i2c: E2 17 00 [17:07:13]MH_I2C_Read... [17:07:13]Read from MH i2c: E2 17 00 B7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 85 [17:07:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:07:13]wFMCommunicate OK [17:07:13]requested_item fd.num is exist - process it [17:07:13]SAM_PROTO_GetFieldsCounters [17:07:13]wFMCommunicate request_size=4 [17:07:13]MH_SAM_APDU [17:07:13]CAPDU: 80 13 00 00 [17:07:13]Write to MH i2c: E2 08 00 B8 02 80 13 00 00 00 00 00 00 36 [17:07:13]Write i2c OK [17:07:13]MH_I2C_Read... [17:07:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:07:14]Read from MH i2c: E2 [17:07:14]MH_I2C_Read... [17:07:14]Read from MH i2c: E2 62 00 [17:07:14]MH_I2C_Read... [17:07:14]Read from MH i2c: E2 62 00 B8 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 47 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 D8 [17:07:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 47 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:07:14]wFMCommunicate OK [17:07:14]SAM_PROTO_GetFieldsCounters done [17:07:14]requested_item shift.num is exist - process it [17:07:14]requested_item shift.opened is exist - process it [17:07:14]req_shift_opened [17:07:14]FM_GetShiftState [17:07:14]SAM_PROTO_GetShiftState [17:07:14]wFMCommunicate request_size=4 [17:07:14]MH_SAM_APDU [17:07:14]CAPDU: 80 13 01 00 [17:07:14]Write to MH i2c: E2 08 00 B9 02 80 13 01 00 00 00 00 00 38 [17:07:14]Write i2c OK [17:07:14]MH_I2C_Read... [17:07:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:14]Read from MH i2c: E2 [17:07:14]MH_I2C_Read... [17:07:14]Read from MH i2c: E2 0E 00 [17:07:14]MH_I2C_Read... [17:07:14]Read from MH i2c: E2 0E 00 B9 02 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 3E [17:07:14]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:07:14]wFMCommunicate OK [17:07:14]SAM_PROTO_GetShiftState done [17:07:14]FM_GetShiftState done [17:07:14]req_shift_opened done [17:07:14]requested_item shift.open_date is exist - process it [17:07:14]req_shift_open_date [17:07:14]req_shift_open_date done [17:07:14]produce_requested_data done [17:07:14]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69447,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [17:07:14]process_action_free close_receipt [17:07:14]json_value_free [17:07:14]json_value_free done [17:07:14]process_json_proto returns [17:07:14]Send response to host [17:07:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69447,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [17:07:14]free response buf [17:07:14]execute_script done [17:07:14]execute_script returns [17:07:14]free content buf [17:07:14]Sock 8.Close socket [17:07:14]Sock 8.Thread stoped [17:07:18]OFD Sender: No OFD packet to send [17:07:23]OFD Sender: No OFD packet to send [17:07:28]OFD Sender: No OFD packet to send [17:07:33]OFD Sender: No OFD packet to send [17:07:38]OFD Sender: No OFD packet to send [17:07:43]OFD Sender: No OFD packet to send [17:07:48]OFD Sender: No OFD packet to send [17:07:53]OFD Sender: No OFD packet to send [17:07:58]OFD Sender: No OFD packet to send [17:08:03]OFD Sender: No OFD packet to send [17:08:08]OFD Sender: No OFD packet to send [17:08:13]OFD Sender: No OFD packet to send [17:08:18]OFD Sender: No OFD packet to send [17:08:23]OFD Sender: No OFD packet to send [17:08:28]OFD Sender: No OFD packet to send [17:08:29]accept exits with 9 [17:08:29]New connection [17:08:29]New thread 3067096420 created [17:08:29]Thread 3067239780 joined [17:08:29]Waiting for new connection... [17:08:29] Sock 9.Parse request [17:08:29]Sock 9.Check first char [17:08:29]Sock 9.First char is OK [17:08:29]request: POST /json_proto HTTP/1.0 [17:08:29]Method: POST [17:08:29]URL: /json_proto [17:08:29]Method is POST - this is cgi request [17:08:29]url: /json_proto [17:08:29]query_string will be loaded in cgi processing [17:08:29]execute_cgi json_proto POST (null) [17:08:29]execute_cgi path=json_proto method=POST [17:08:29]POST find Content-Length [17:08:29]Host: 172.17.50.3:8080 [17:08:29]Content-Length: 689 [17:08:29]Content-Type: application/json [17:08:29] [17:08:29]POST finish read [17:08:29]Found Content-Length = 689 [17:08:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:29]execute_script... [17:08:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:29]POST & json_proto [17:08:29]process_json_proto [17:08:29]json parsed OK: [17:08:29]protocol is kg_v1.0 [17:08:29]action value=close_receipt [17:08:29]process_action close_receipt [17:08:29]cmd_close_receipt [17:08:29]MH_GetDate [17:08:29]Write to MH i2c: F0 00 00 BA 02 AB [17:08:29]Write i2c OK [17:08:29]MH_I2C_Read... [17:08:29]Read from MH i2c: F0 [17:08:29]MH_I2C_Read... [17:08:29]Read from MH i2c: F0 09 00 [17:08:29]MH_I2C_Read... [17:08:29]Read from MH i2c: F0 09 00 BA 02 00 0E 39 15 67 6B 98 1E 66 FE [17:08:29]GetLastDocTimeStamp 1729444030 [17:08:29]current date 1729444110 [17:08:29]FM_GetShiftState [17:08:29]SAM_PROTO_GetShiftState [17:08:29]wFMCommunicate request_size=4 [17:08:29]MH_SAM_APDU [17:08:29]CAPDU: 80 13 01 00 [17:08:29]Write to MH i2c: E2 08 00 BB 02 80 13 01 00 00 00 00 00 3A [17:08:29]Write i2c OK [17:08:29]MH_I2C_Read... [17:08:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:29]Read from MH i2c: E2 [17:08:29]MH_I2C_Read... [17:08:29]Read from MH i2c: E2 0E 00 [17:08:29]MH_I2C_Read... [17:08:29]Read from MH i2c: E2 0E 00 BB 02 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 40 [17:08:29]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:08:29]wFMCommunicate OK [17:08:29]SAM_PROTO_GetShiftState done [17:08:29]FM_GetShiftState done [17:08:29]opened in 1729383220 [17:08:29]opened+sec_in_day 1729469620 [17:08:29]quantity*price = 100051 [17:08:29]sum+1 = 100052 [17:08:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 293 20.10.2024 17:08 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69448 ФПД: 54379544387011 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170830&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69448&fm=54379544387011&tin=02508201610067®Number=0000000000156251&sum=100000 [17:08:30]StoreToDocumentArchive [17:08:30]shift 193 fd 69448 [17:08:30]save to /storage/0193/doc_00069448 [17:08:30]save last doc name /storage/0193/doc_00069448 to /storage/kkm_last_doc_name [17:08:30]save OK [17:08:30]Clear old archive folders... [17:08:30]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:08:30]tlvbuf is 00CE5340 [17:08:30]SAM_PROTO_ClearQueue [17:08:30]wFMCommunicate request_size=4 [17:08:30]MH_SAM_APDU [17:08:30]CAPDU: 80 09 00 00 [17:08:30]Write to MH i2c: E2 08 00 C8 02 80 09 00 00 00 00 00 00 3C [17:08:30]Write i2c OK [17:08:30]MH_I2C_Read... [17:08:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:08:30]Read from MH i2c: E2 [17:08:30]MH_I2C_Read... [17:08:30]Read from MH i2c: E2 03 00 [17:08:30]MH_I2C_Read... [17:08:30]Read from MH i2c: E2 03 00 C8 02 00 90 00 3E [17:08:30]RAPDU: 90 00 [17:08:30]wFMCommunicate OK [17:08:30]SAM_PROTO_ClearQueue done [17:08:30]KKMCreateOFDPacket [17:08:30]OFDProtocolAddRootSTLVToBuf [17:08:30]FM_MakeSignedData [17:08:30]FM_MakeSignedData [17:08:30]SAM_PROTO_SignData [17:08:30]wFMCommunicate request_size=4 [17:08:30]MH_SAM_APDU [17:08:30]CAPDU: 80 0D 01 02 [17:08:30]Write to MH i2c: E2 08 00 C9 02 80 0D 01 02 00 00 00 00 44 [17:08:30]Write i2c OK [17:08:30]MH_I2C_Read... [17:08:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:08:30]Read from MH i2c: E2 [17:08:30]MH_I2C_Read... [17:08:30]Read from MH i2c: E2 03 00 [17:08:30]MH_I2C_Read... [17:08:30]Read from MH i2c: E2 03 00 C9 02 00 90 00 3F [17:08:30]RAPDU: 90 00 [17:08:30]wFMCommunicate OK [17:08:30]wFMCommunicate request_size=255 [17:08:30]MH_SAM_APDU [17:08:30]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 0E 39 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 48 0F 01 [17:08:30]Write to MH i2c: E2 02 01 CA 02 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 0E 39 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 48 0F 01 00 00 98 [17:08:30]Write i2c OK [17:08:30]MH_I2C_Read... [17:08:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:31]Read from MH i2c: E2 [17:08:31]MH_I2C_Read... [17:08:31]Read from MH i2c: E2 03 00 [17:08:31]MH_I2C_Read... [17:08:31]Read from MH i2c: E2 03 00 CA 02 00 90 00 40 [17:08:31]RAPDU: 90 00 [17:08:31]wFMCommunicate OK [17:08:31]wFMCommunicate request_size=16 [17:08:31]MH_SAM_APDU [17:08:31]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 31 75 39 6D 1D C3 [17:08:31]Write to MH i2c: E2 13 00 CB 02 80 0D 02 02 0B 00 00 35 04 06 00 31 75 39 6D 1D C3 00 00 C8 [17:08:31]Write i2c OK [17:08:31]MH_I2C_Read... [17:08:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:31]Read from MH i2c: E2 [17:08:31]MH_I2C_Read... [17:08:31]Read from MH i2c: E2 03 00 [17:08:31]MH_I2C_Read... [17:08:31]Read from MH i2c: E2 03 00 CB 02 00 90 00 41 [17:08:31]RAPDU: 90 00 [17:08:31]wFMCommunicate OK [17:08:31]wFMCommunicate request_size=4 [17:08:31]MH_SAM_APDU [17:08:31]CAPDU: 80 0D 03 02 [17:08:31]Write to MH i2c: E2 08 00 CC 02 80 0D 03 02 00 00 00 00 49 [17:08:31]Write i2c OK [17:08:31]MH_I2C_Read... [17:08:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:08:31]Read from MH i2c: E2 [17:08:31]MH_I2C_Read... [17:08:31]Read from MH i2c: E2 0B 00 [17:08:31]MH_I2C_Read... [17:08:31]Read from MH i2c: E2 0B 00 CC 02 00 06 F0 20 8B 65 8D F4 9C 90 00 6D [17:08:31]RAPDU: 06 F0 20 8B 65 8D F4 9C 90 00 [17:08:31]wFMCommunicate OK [17:08:31]SAM_PROTO_SignData done [17:08:31]FM_MakeSignedData done [17:08:31]CreateOFDProtocolMessage [17:08:31]wFMCommunicate request_size=4 [17:08:31]MH_SAM_APDU [17:08:31]CAPDU: 80 11 00 00 [17:08:31]Write to MH i2c: E2 08 00 CD 02 80 11 00 00 00 00 00 00 49 [17:08:31]Write i2c OK [17:08:31]MH_I2C_Read... [17:08:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:31]Read from MH i2c: E2 [17:08:31]MH_I2C_Read... [17:08:31]Read from MH i2c: E2 17 00 [17:08:31]MH_I2C_Read... [17:08:31]Read from MH i2c: E2 17 00 CD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9B [17:08:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:08:31]wFMCommunicate OK [17:08:31]CreateOFDProtocolMessage done [17:08:31]OFDSenderStorePacket 69448 [17:08:31]StoreOFDPacket docnum=69448 [17:08:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 FF E1 0D 01 D3 22 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 0E 39 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 48 0F 01 00 35 04 06 00 31 75 39 6D 1D C3 06 F0 20 8B 65 8D F4 9C [17:08:31]CheckFolder [17:08:31]dirname=/storage/ofd_packets [17:08:31]CheckFolder done [17:08:31]ProducePacketName [17:08:31]name=ofd_packets/00069448 [17:08:31]NVStorageSaveData ofd_packets/00069448 [17:08:31]File name is /storage/ofd_packets/00069448 [17:08:31]Write 307 bytes [17:08:31]NVStorageSaveData done [17:08:31]OFDSenderStorePacket done [17:08:31]KKMCreateOFDPacket done [17:08:31]NVStorageSaveData kkm_last_timestamp [17:08:31]File name is /storage/kkm_last_timestamp [17:08:31]Write 4 bytes [17:08:31]NVStorageSaveData done [17:08:31]ExternCall_PrintAddStr [17:08:31]wPrintStart [17:08:31]Write to MH i2c: 01 00 00 CE 02 D0 [17:08:31]OFD Sender: Processing packet 69448 [packets to send 18, broken 17] [17:08:31]ProducePacketName [17:08:31]name=ofd_packets/00069448 [17:08:31]OFD Sender: To server: pG, [17:08:31]CommunicateWithHost lk.salyk.kg:30040 [17:08:31]ConnectInit lk.salyk.kg [17:08:31]Write i2c OK [17:08:31]MH_I2C_Read... [17:08:31]Read from MH i2c: 01 [17:08:31]MH_I2C_Read... [17:08:31]Read from MH i2c: 01 07 00 [17:08:31]MH_I2C_Read... [17:08:31]Read from MH i2c: 01 07 00 CE 02 00 00 00 00 00 FF 0F E5 [17:08:31]RasterBufferAndPrint [17:08:31]line Счет N : (1)2885177 [17:08:31]line ИНН: 02508201610067 [17:08:31]line Контрольно-Кассовый Чек [17:08:31]line ПРОДАЖА [17:08:31]line ТРК (МРК, ГНК) : 31 [17:08:31]line Товар: 2710194240 [17:08:31]line D-ENERGY Дт-К-2 [17:08:31]line 12.960 * 77.20 [17:08:31]line = 1000.51 [17:08:31]line НДС 12% НСП 1% [17:08:31]line > о реализуемом товаре [17:08:31]line ОКРУГЛЕНИЕ: -0.51 [17:08:31]line ИТОГО: 1000.00 [17:08:31]line Внесено: 1000.00 [17:08:31]line СДАЧА: 0.00 [17:08:31]line НСП 1% : 8.85 [17:08:31]line НДС 12% : 106.25 [17:08:31]line Наличными: 1000.00 [17:08:31]line Безнал.: 0.00 [17:08:31]line Место: АЗС № 85 "Партнер Нефть" [17:08:31]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:08:31]line СНО: Общий режим [17:08:31]line Чек 293 20.10.2024 17:08 [17:08:31]line Смена: 193 ФФД: 1.0 [17:08:31]line ЗНМ: 0300000167 [17:08:31]line РНМ: 0000000000156251 [17:08:31]line Версия ККМ: v1.0 [17:08:31]line ФМ: 0000000000963346 [17:08:31]line ФД: 69448 [17:08:31]line ФПД: 54379544387011 [17:08:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170830&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69448&fm=54379544387011&tin=02508201610067®Number=0000000000156251&sum=100000 [17:08:31]written 0, free lines is 4095 [17:08:32]Write to MH i2c: 01 00 00 F9 02 FB [17:08:32]Write i2c OK [17:08:32]MH_I2C_Read... [17:08:32]Read from MH i2c: 01 [17:08:32]MH_I2C_Read... [17:08:32]Read from MH i2c: 01 07 00 [17:08:32]MH_I2C_Read... [17:08:32]Read from MH i2c: 01 07 00 F9 02 00 00 00 00 00 EC 0C FA [17:08:32]RasterBufferAndPrint [17:08:32]line [17:08:32]line [17:08:32]line [17:08:32]line [17:08:32]line [17:08:32]written 0, free lines is 3314 [17:08:32]MH_Cut [17:08:32]Write to MH i2c: D1 01 00 00 03 01 D5 [17:08:32]Write i2c OK [17:08:32]MH_I2C_Read... [17:08:32]Read from MH i2c: D1 [17:08:32]MH_I2C_Read... [17:08:32]Read from MH i2c: D1 01 00 [17:08:32]MH_I2C_Read... [17:08:32]Read from MH i2c: D1 01 00 00 03 00 D4 [17:08:32]Write to MH i2c: 01 00 00 01 03 04 [17:08:32]Write i2c OK [17:08:32]MH_I2C_Read... [17:08:32]*** Cut start [17:08:32]*** Partial cut [17:08:32]*** CUTSNS_PIN = 1 [17:08:32]*** CUTSNS_PIN = 0 [17:08:33]*** Brake cut motor [17:08:33]Read from MH i2c: 01 [17:08:33]MH_I2C_Read... [17:08:33]*** Stop cut motor [17:08:33]*** Cut end [17:08:33]Read from MH i2c: 01 07 00 [17:08:33]MH_I2C_Read... [17:08:33]Read from MH i2c: 01 07 00 01 03 00 00 00 00 00 FF 0F 19 [17:08:33]process_action close_receipt done [17:08:33]requested_data is exist [17:08:33]produce_requested_data [17:08:33]requested_item fm.sn is exist - process it [17:08:33]wFMCommunicate request_size=4 [17:08:33]MH_SAM_APDU [17:08:33]CAPDU: 80 11 00 00 [17:08:33]Write to MH i2c: E2 08 00 02 03 80 11 00 00 00 00 00 00 7F [17:08:33]Write i2c OK [17:08:33]MH_I2C_Read... [17:08:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:33]Read from MH i2c: E2 [17:08:33]MH_I2C_Read... [17:08:33]Read from MH i2c: E2 17 00 [17:08:33]MH_I2C_Read... [17:08:33]Read from MH i2c: E2 17 00 02 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D1 [17:08:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:08:33]wFMCommunicate OK [17:08:33]requested_item fd.num is exist - process it [17:08:33]SAM_PROTO_GetFieldsCounters [17:08:33]wFMCommunicate request_size=4 [17:08:33]MH_SAM_APDU [17:08:33]CAPDU: 80 13 00 00 [17:08:33]Write to MH i2c: E2 08 00 03 03 80 13 00 00 00 00 00 00 82 [17:08:33]Write i2c OK [17:08:33]MH_I2C_Read... [17:08:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:08:33]Read from MH i2c: E2 [17:08:33]MH_I2C_Read... [17:08:33]Read from MH i2c: E2 62 00 [17:08:33]MH_I2C_Read... [17:08:33]Read from MH i2c: E2 62 00 03 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 48 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 28 [17:08:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 48 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:08:33]wFMCommunicate OK [17:08:33]SAM_PROTO_GetFieldsCounters done [17:08:33]requested_item shift.num is exist - process it [17:08:33]requested_item shift.opened is exist - process it [17:08:33]req_shift_opened [17:08:33]FM_GetShiftState [17:08:33]SAM_PROTO_GetShiftState [17:08:33]wFMCommunicate request_size=4 [17:08:33]MH_SAM_APDU [17:08:33]CAPDU: 80 13 01 00 [17:08:33]Write to MH i2c: E2 08 00 04 03 80 13 01 00 00 00 00 00 84 [17:08:33]Write i2c OK [17:08:33]MH_I2C_Read... [17:08:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:33]Read from MH i2c: E2 [17:08:33]MH_I2C_Read... [17:08:33]Read from MH i2c: E2 0E 00 [17:08:33]MH_I2C_Read... [17:08:33]Read from MH i2c: E2 0E 00 04 03 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 8A [17:08:33]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:08:33]wFMCommunicate OK [17:08:33]SAM_PROTO_GetShiftState done [17:08:33]FM_GetShiftState done [17:08:33]req_shift_opened done [17:08:33]requested_item shift.open_date is exist - process it [17:08:33]req_shift_open_date [17:08:33]req_shift_open_date done [17:08:33]produce_requested_data done [17:08:33]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69448,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [17:08:33]process_action_free close_receipt [17:08:33]json_value_free [17:08:33]json_value_free done [17:08:33]process_json_proto returns [17:08:33]Send response to host [17:08:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69448,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [17:08:33]free response buf [17:08:33]execute_script done [17:08:33]execute_script returns [17:08:33]free content buf [17:08:33]Sock 9.Close socket [17:08:33]Sock 9.Thread stoped [17:08:44]accept exits with 8 [17:08:44]New connection [17:08:44]New thread 3067239780 created [17:08:44]Thread 3067096420 joined [17:08:44]Waiting for new connection... [17:08:44] Sock 8.Parse request [17:08:44]Sock 8.Check first char [17:08:44]Sock 8.First char is OK [17:08:44]request: POST /json_proto HTTP/1.0 [17:08:44]Method: POST [17:08:44]URL: /json_proto [17:08:44]Method is POST - this is cgi request [17:08:44]url: /json_proto [17:08:44]query_string will be loaded in cgi processing [17:08:44]execute_cgi json_proto POST (null) [17:08:44]execute_cgi path=json_proto method=POST [17:08:44]POST find Content-Length [17:08:44]Host: 172.17.50.3:8080 [17:08:44]Content-Length: 675 [17:08:44]Content-Type: application/json [17:08:44] [17:08:44]POST finish read [17:08:44]Found Content-Length = 675 [17:08:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:44]execute_script... [17:08:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:44]POST & json_proto [17:08:44]process_json_proto [17:08:44]json parsed OK: [17:08:44]protocol is kg_v1.0 [17:08:44]action value=close_receipt [17:08:44]process_action close_receipt [17:08:44]cmd_close_receipt [17:08:44]MH_GetDate [17:08:44]Write to MH i2c: F0 00 00 05 03 F7 [17:08:44]Write i2c OK [17:08:44]MH_I2C_Read... [17:08:44]Read from MH i2c: F0 [17:08:44]MH_I2C_Read... [17:08:44]Read from MH i2c: F0 09 00 [17:08:44]MH_I2C_Read... [17:08:44]Read from MH i2c: F0 09 00 05 03 00 1D 39 15 67 6B 98 1E 66 59 [17:08:44]GetLastDocTimeStamp 1729444110 [17:08:44]current date 1729444125 [17:08:44]FM_GetShiftState [17:08:44]SAM_PROTO_GetShiftState [17:08:44]wFMCommunicate request_size=4 [17:08:44]MH_SAM_APDU [17:08:44]CAPDU: 80 13 01 00 [17:08:44]Write to MH i2c: E2 08 00 06 03 80 13 01 00 00 00 00 00 86 [17:08:44]Write i2c OK [17:08:44]MH_I2C_Read... [17:08:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:44]Read from MH i2c: E2 [17:08:44]MH_I2C_Read... [17:08:44]Read from MH i2c: E2 0E 00 [17:08:44]MH_I2C_Read... [17:08:44]Read from MH i2c: E2 0E 00 06 03 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 8C [17:08:44]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:08:44]wFMCommunicate OK [17:08:44]SAM_PROTO_GetShiftState done [17:08:44]FM_GetShiftState done [17:08:44]opened in 1729383220 [17:08:44]opened+sec_in_day 1729469620 [17:08:44]quantity*price = 40005 [17:08:44]sum+1 = 40006 [17:08:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 294 20.10.2024 17:08 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69449 ФПД: 147027297883108 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170845&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69449&fm=147027297883108&tin=02508201610067®Number=0000000000156251&sum=40000 [17:08:45]StoreToDocumentArchive [17:08:45]shift 193 fd 69449 [17:08:45]save to /storage/0193/doc_00069449 [17:08:45]save last doc name /storage/0193/doc_00069449 to /storage/kkm_last_doc_name [17:08:45]save OK [17:08:45]Clear old archive folders... [17:08:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:08:45]tlvbuf is 00CE27C0 [17:08:45]SAM_PROTO_ClearQueue [17:08:45]wFMCommunicate request_size=4 [17:08:45]MH_SAM_APDU [17:08:45]CAPDU: 80 09 00 00 [17:08:45]Write to MH i2c: E2 08 00 13 03 80 09 00 00 00 00 00 00 88 [17:08:45]Write i2c OK [17:08:45]MH_I2C_Read... [17:08:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:08:45]Read from MH i2c: E2 [17:08:45]MH_I2C_Read... [17:08:45]Read from MH i2c: E2 03 00 [17:08:45]MH_I2C_Read... [17:08:45]Read from MH i2c: E2 03 00 13 03 00 90 00 8A [17:08:45]RAPDU: 90 00 [17:08:45]wFMCommunicate OK [17:08:45]SAM_PROTO_ClearQueue done [17:08:45]KKMCreateOFDPacket [17:08:45]OFDProtocolAddRootSTLVToBuf [17:08:45]FM_MakeSignedData [17:08:45]FM_MakeSignedData [17:08:45]SAM_PROTO_SignData [17:08:45]wFMCommunicate request_size=4 [17:08:45]MH_SAM_APDU [17:08:45]CAPDU: 80 0D 01 02 [17:08:45]Write to MH i2c: E2 08 00 14 03 80 0D 01 02 00 00 00 00 90 [17:08:45]Write i2c OK [17:08:45]MH_I2C_Read... [17:08:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:08:45]Read from MH i2c: E2 [17:08:45]MH_I2C_Read... [17:08:45]Read from MH i2c: E2 03 00 [17:08:45]MH_I2C_Read... [17:08:45]Read from MH i2c: E2 03 00 14 03 00 90 00 8B [17:08:45]RAPDU: 90 00 [17:08:45]wFMCommunicate OK [17:08:45]wFMCommunicate request_size=255 [17:08:45]MH_SAM_APDU [17:08: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 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 1D 39 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 49 0F 01 00 35 04 06 00 85 B8 75 DC [17:08:45]Write to MH i2c: E2 02 01 15 03 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 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 1D 39 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 49 0F 01 00 35 04 06 00 85 B8 75 DC 00 00 A3 [17:08:45]Write i2c OK [17:08:45]MH_I2C_Read... [17:08:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:46]Read from MH i2c: E2 [17:08:46]MH_I2C_Read... [17:08:46]Read from MH i2c: E2 03 00 [17:08:46]MH_I2C_Read... [17:08:46]Read from MH i2c: E2 03 00 15 03 00 90 00 8C [17:08:46]RAPDU: 90 00 [17:08:46]wFMCommunicate OK [17:08:46]wFMCommunicate request_size=7 [17:08:46]MH_SAM_APDU [17:08:46]CAPDU: 80 0D 02 02 02 D3 E4 [17:08:46]Write to MH i2c: E2 0A 00 16 03 80 0D 02 02 02 00 D3 E4 00 00 4E [17:08:46]Write i2c OK [17:08:46]MH_I2C_Read... [17:08:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:46]Read from MH i2c: E2 [17:08:46]MH_I2C_Read... [17:08:46]Read from MH i2c: E2 03 00 [17:08:46]MH_I2C_Read... [17:08:46]Read from MH i2c: E2 03 00 16 03 00 90 00 8D [17:08:46]RAPDU: 90 00 [17:08:46]wFMCommunicate OK [17:08:46]wFMCommunicate request_size=4 [17:08:46]MH_SAM_APDU [17:08:46]CAPDU: 80 0D 03 02 [17:08:46]Write to MH i2c: E2 08 00 17 03 80 0D 03 02 00 00 00 00 95 [17:08:46]Write i2c OK [17:08:46]MH_I2C_Read... [17:08:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:08:46]Read from MH i2c: E2 [17:08:46]MH_I2C_Read... [17:08:46]Read from MH i2c: E2 0B 00 [17:08:46]MH_I2C_Read... [17:08:46]Read from MH i2c: E2 0B 00 17 03 00 CB 61 60 41 AA 03 0C D7 90 00 F3 [17:08:46]RAPDU: CB 61 60 41 AA 03 0C D7 90 00 [17:08:46]wFMCommunicate OK [17:08:46]SAM_PROTO_SignData done [17:08:46]FM_MakeSignedData done [17:08:46]CreateOFDProtocolMessage [17:08:46]wFMCommunicate request_size=4 [17:08:46]MH_SAM_APDU [17:08:46]CAPDU: 80 11 00 00 [17:08:46]Write to MH i2c: E2 08 00 18 03 80 11 00 00 00 00 00 00 95 [17:08:46]Write i2c OK [17:08:46]MH_I2C_Read... [17:08:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:46]Read from MH i2c: E2 [17:08:46]MH_I2C_Read... [17:08:46]Read from MH i2c: E2 17 00 [17:08:46]MH_I2C_Read... [17:08:46]Read from MH i2c: E2 17 00 18 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E7 [17:08:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:08:46]wFMCommunicate OK [17:08:46]CreateOFDProtocolMessage done [17:08:46]OFDSenderStorePacket 69449 [17:08:46]StoreOFDPacket docnum=69449 [17:08:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 9E 06 04 01 06 D3 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 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 1D 39 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 49 0F 01 00 35 04 06 00 85 B8 75 DC D3 E4 CB 61 60 41 AA 03 0C D7 [17:08:46]CheckFolder [17:08:46]dirname=/storage/ofd_packets [17:08:46]CheckFolder done [17:08:46]ProducePacketName [17:08:46]name=ofd_packets/00069449 [17:08:46]NVStorageSaveData ofd_packets/00069449 [17:08:46]File name is /storage/ofd_packets/00069449 [17:08:46]Write 298 bytes [17:08:46]NVStorageSaveData done [17:08:46]OFDSenderStorePacket done [17:08:46]KKMCreateOFDPacket done [17:08:46]NVStorageSaveData kkm_last_timestamp [17:08:46]File name is /storage/kkm_last_timestamp [17:08:46]Write 4 bytes [17:08:46]NVStorageSaveData done [17:08:46]ExternCall_PrintAddStr [17:08:46]wPrintStart [17:08:46]Write to MH i2c: 01 00 00 19 03 1C [17:08:46]Write i2c OK [17:08:46]MH_I2C_Read... [17:08:46]Read from MH i2c: 01 [17:08:46]MH_I2C_Read... [17:08:46]Read from MH i2c: 01 07 00 [17:08:46]MH_I2C_Read... [17:08:46]Read from MH i2c: 01 07 00 19 03 00 00 00 00 00 FF 0F 31 [17:08:46]RasterBufferAndPrint [17:08:46]line Счет N : (1)2885178 [17:08:46]line ИНН: 02508201610067 [17:08:46]line Контрольно-Кассовый Чек [17:08:46]line ПРОДАЖА [17:08:46]line ТРК (МРК, ГНК) : 51 [17:08:46]line Товар: 2710194210 [17:08:46]line ДТ-К-5 [17:08:46]line 5.250 * 76.20 [17:08:46]line = 400.05 [17:08:46]line НДС 12% НСП 1% [17:08:46]line > о реализуемом товаре [17:08:46]line ОКРУГЛЕНИЕ: -0.05 [17:08:46]line ИТОГО: 400.00 [17:08:46]line Внесено: 400.00 [17:08:46]line СДАЧА: 0.00 [17:08:46]line НСП 1% : 3.54 [17:08:46]line НДС 12% : 42.48 [17:08:46]line Наличными: 400.00 [17:08:46]line Безнал.: 0.00 [17:08:46]line Место: АЗС № 85 "Партнер Нефть" [17:08:46]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:08:46]line СНО: Общий режим [17:08:46]line Чек 294 20.10.2024 17:08 [17:08:46]line Смена: 193 ФФД: 1.0 [17:08:46]line ЗНМ: 0300000167 [17:08:46]line РНМ: 0000000000156251 [17:08:46]line Версия ККМ: v1.0 [17:08:46]line ФМ: 0000000000963346 [17:08:46]line ФД: 69449 [17:08:46]line ФПД: 147027297883108 [17:08:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170845&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69449&fm=147027297883108&tin=02508201610067®Number=0000000000156251&sum=40000 [17:08:46]written 0, free lines is 4095 [17:08:47]Write to MH i2c: 01 00 00 44 03 47 [17:08:47]Write i2c OK [17:08:47]MH_I2C_Read... [17:08:47]Read from MH i2c: 01 [17:08:47]MH_I2C_Read... [17:08:47]Read from MH i2c: 01 07 00 [17:08:47]MH_I2C_Read... [17:08:47]Read from MH i2c: 01 07 00 44 03 00 00 00 00 00 E6 0C 40 [17:08:47]RasterBufferAndPrint [17:08:47]line [17:08:47]line [17:08:47]line [17:08:47]line [17:08:47]line [17:08:47]written 0, free lines is 3308 [17:08:47]MH_Cut [17:08:47]Write to MH i2c: D1 01 00 4B 03 01 20 [17:08:47]Write i2c OK [17:08:47]MH_I2C_Read... [17:08:47]Read from MH i2c: D1 [17:08:47]MH_I2C_Read... [17:08:47]Read from MH i2c: D1 01 00 [17:08:47]MH_I2C_Read... [17:08:47]Read from MH i2c: D1 01 00 4B 03 00 1F [17:08:47]Write to MH i2c: 01 00 00 4C 03 4F [17:08:47]Write i2c OK [17:08:47]MH_I2C_Read... [17:08:47]*** Cut start [17:08:47]*** Partial cut [17:08:47]*** CUTSNS_PIN = 1 [17:08:47]*** CUTSNS_PIN = 0 [17:08:48]*** Brake cut motor [17:08:48]Read from MH i2c: 01 [17:08:48]MH_I2C_Read... [17:08:48]*** Stop cut motor [17:08:48]*** Cut end [17:08:48]Read from MH i2c: 01 07 00 [17:08:48]MH_I2C_Read... [17:08:48]Read from MH i2c: 01 07 00 4C 03 00 00 00 00 00 FF 0F 64 [17:08:48]process_action close_receipt done [17:08:48]requested_data is exist [17:08:48]produce_requested_data [17:08:48]requested_item fm.sn is exist - process it [17:08:48]wFMCommunicate request_size=4 [17:08:48]MH_SAM_APDU [17:08:48]CAPDU: 80 11 00 00 [17:08:48]Write to MH i2c: E2 08 00 4D 03 80 11 00 00 00 00 00 00 CA [17:08:48]Write i2c OK [17:08:48]MH_I2C_Read... [17:08:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:48]Read from MH i2c: E2 [17:08:48]MH_I2C_Read... [17:08:48]Read from MH i2c: E2 17 00 [17:08:48]MH_I2C_Read... [17:08:48]Read from MH i2c: E2 17 00 4D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1C [17:08:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:08:48]wFMCommunicate OK [17:08:48]requested_item fd.num is exist - process it [17:08:48]SAM_PROTO_GetFieldsCounters [17:08:48]wFMCommunicate request_size=4 [17:08:48]MH_SAM_APDU [17:08:48]CAPDU: 80 13 00 00 [17:08:48]Write to MH i2c: E2 08 00 4E 03 80 13 00 00 00 00 00 00 CD [17:08:48]Write i2c OK [17:08:48]MH_I2C_Read... [17:08:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:08:48]Read from MH i2c: E2 [17:08:48]MH_I2C_Read... [17:08:48]Read from MH i2c: E2 62 00 [17:08:48]MH_I2C_Read... [17:08:48]Read from MH i2c: E2 62 00 4E 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 49 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 77 [17:08:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 49 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:08:48]wFMCommunicate OK [17:08:48]SAM_PROTO_GetFieldsCounters done [17:08:48]requested_item shift.num is exist - process it [17:08:48]requested_item shift.opened is exist - process it [17:08:48]req_shift_opened [17:08:48]FM_GetShiftState [17:08:48]SAM_PROTO_GetShiftState [17:08:48]wFMCommunicate request_size=4 [17:08:48]MH_SAM_APDU [17:08:48]CAPDU: 80 13 01 00 [17:08:48]Write to MH i2c: E2 08 00 4F 03 80 13 01 00 00 00 00 00 CF [17:08:48]Write i2c OK [17:08:48]MH_I2C_Read... [17:08:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:48]Read from MH i2c: E2 [17:08:48]MH_I2C_Read... [17:08:48]Read from MH i2c: E2 0E 00 [17:08:48]MH_I2C_Read... [17:08:48]Read from MH i2c: E2 0E 00 4F 03 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 D5 [17:08:48]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:08:48]wFMCommunicate OK [17:08:48]SAM_PROTO_GetShiftState done [17:08:48]FM_GetShiftState done [17:08:48]req_shift_opened done [17:08:48]requested_item shift.open_date is exist - process it [17:08:48]req_shift_open_date [17:08:48]req_shift_open_date done [17:08:48]produce_requested_data done [17:08:48]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69449,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [17:08:48]process_action_free close_receipt [17:08:48]json_value_free [17:08:48]json_value_free done [17:08:48]process_json_proto returns [17:08:48]Send response to host [17:08:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69449,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [17:08:48]free response buf [17:08:48]execute_script done [17:08:48]execute_script returns [17:08:48]free content buf [17:08:48]Sock 8.Close socket [17:08:48]Sock 8.Thread stoped [17:10:20]accept exits with 9 [17:10:20]New connection [17:10:20]New thread 3067096420 created [17:10:20]Thread 3067239780 joined [17:10:20]Waiting for new connection... [17:10:20] Sock 9.Parse request [17:10:20]Sock 9.Check first char [17:10:20]Sock 9.First char is OK [17:10:20]request: POST /json_proto HTTP/1.0 [17:10:20]Method: POST [17:10:20]URL: /json_proto [17:10:20]Method is POST - this is cgi request [17:10:20]url: /json_proto [17:10:20]query_string will be loaded in cgi processing [17:10:20]execute_cgi json_proto POST (null) [17:10:20]execute_cgi path=json_proto method=POST [17:10:20]POST find Content-Length [17:10:20]Host: 172.17.50.3:8080 [17:10:20]Content-Length: 683 [17:10:20]Content-Type: application/json [17:10:20] [17:10:20]POST finish read [17:10:20]Found Content-Length = 683 [17:10:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 35.050, "sum" : 2600.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2600.00, "payments": [ { "type": 0, "sum" : 2600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:20]execute_script... [17: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)2885179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 35.050, "sum" : 2600.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2600.00, "payments": [ { "type": 0, "sum" : 2600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:20]POST & json_proto [17:10:20]process_json_proto [17:10:20]json parsed OK: [17:10:20]protocol is kg_v1.0 [17:10:20]action value=close_receipt [17:10:20]process_action close_receipt [17:10:20]cmd_close_receipt [17:10:20]MH_GetDate [17:10:20]Write to MH i2c: F0 00 00 50 03 42 [17:10:20]Write i2c OK [17:10:20]MH_I2C_Read... [17:10:20]Read from MH i2c: F0 [17:10:20]MH_I2C_Read... [17:10:20]Read from MH i2c: F0 09 00 [17:10:20]MH_I2C_Read... [17:10:20]Read from MH i2c: F0 09 00 50 03 00 7C 39 15 67 6B 98 1E 66 03 [17:10:20]GetLastDocTimeStamp 1729444125 [17:10:20]current date 1729444220 [17:10:20]FM_GetShiftState [17:10:20]SAM_PROTO_GetShiftState [17:10:20]wFMCommunicate request_size=4 [17:10:20]MH_SAM_APDU [17:10:20]CAPDU: 80 13 01 00 [17:10:20]Write to MH i2c: E2 08 00 51 03 80 13 01 00 00 00 00 00 D1 [17:10:20]Write i2c OK [17:10:20]MH_I2C_Read... [17:10:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:20]Read from MH i2c: E2 [17:10:20]MH_I2C_Read... [17:10:20]Read from MH i2c: E2 0E 00 [17:10:20]MH_I2C_Read... [17:10:20]Read from MH i2c: E2 0E 00 51 03 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 D7 [17:10:20]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:10:20]wFMCommunicate OK [17:10:20]SAM_PROTO_GetShiftState done [17:10:20]FM_GetShiftState done [17:10:20]opened in 1729383220 [17:10:20]opened+sec_in_day 1729469620 [17:10:20]quantity*price = 260071 [17:10:20]sum+1 = 260072 [17:10:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 2600.00 Внесено: 5000.00 СДАЧА: 2400.00 НСП 1% : 23.01 НДС 12% : 276.18 Наличными: 2600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 295 20.10.2024 17:10 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69450 ФПД: 102826926603731 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171020&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69450&fm=102826926603731&tin=02508201610067®Number=0000000000156251&sum=260000 [17:10:21]StoreToDocumentArchive [17:10:21]shift 193 fd 69450 [17:10:21]save to /storage/0193/doc_00069450 [17:10:21]save last doc name /storage/0193/doc_00069450 to /storage/kkm_last_doc_name [17:10:21]save OK [17:10:21]Clear old archive folders... [17:10:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:10:21]tlvbuf is 00CF1E90 [17:10:21]SAM_PROTO_ClearQueue [17:10:21]wFMCommunicate request_size=4 [17:10:21]MH_SAM_APDU [17:10:21]CAPDU: 80 09 00 00 [17:10:21]Write to MH i2c: E2 08 00 5E 03 80 09 00 00 00 00 00 00 D3 [17:10:21]Write i2c OK [17:10:21]MH_I2C_Read... [17:10:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:10:21]Read from MH i2c: E2 [17:10:21]MH_I2C_Read... [17:10:21]Read from MH i2c: E2 03 00 [17:10:21]MH_I2C_Read... [17:10:21]Read from MH i2c: E2 03 00 5E 03 00 90 00 D5 [17:10:21]RAPDU: 90 00 [17:10:21]wFMCommunicate OK [17:10:21]SAM_PROTO_ClearQueue done [17:10:21]KKMCreateOFDPacket [17:10:21]OFDProtocolAddRootSTLVToBuf [17:10:21]FM_MakeSignedData [17:10:21]FM_MakeSignedData [17:10:21]SAM_PROTO_SignData [17:10:21]wFMCommunicate request_size=4 [17:10:21]MH_SAM_APDU [17:10:21]CAPDU: 80 0D 01 02 [17:10:21]Write to MH i2c: E2 08 00 5F 03 80 0D 01 02 00 00 00 00 DB [17:10:21]Write i2c OK [17:10:21]MH_I2C_Read... [17:10:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:10:21]Read from MH i2c: E2 [17:10:21]MH_I2C_Read... [17:10:21]Read from MH i2c: E2 03 00 [17:10:21]MH_I2C_Read... [17:10:21]Read from MH i2c: E2 03 00 5F 03 00 90 00 D6 [17:10:21]RAPDU: 90 00 [17:10:21]wFMCommunicate OK [17:10:21]wFMCommunicate request_size=255 [17:10:21]MH_SAM_APDU [17:10:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 EA 88 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E7 F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 6B 00 00 00 00 07 04 06 00 A0 F7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 7C 39 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4A 0F 01 00 35 04 06 00 5D [17:10:21]Write to MH i2c: E2 02 01 60 03 80 0D 02 02 FA 00 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 EA 88 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E7 F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 6B 00 00 00 00 07 04 06 00 A0 F7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 7C 39 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4A 0F 01 00 35 04 06 00 5D 00 00 A5 [17:10:21]Write i2c OK [17:10:21]MH_I2C_Read... [17:10:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:21]Read from MH i2c: E2 [17:10:21]MH_I2C_Read... [17:10:21]Read from MH i2c: E2 03 00 [17:10:21]MH_I2C_Read... [17:10:21]Read from MH i2c: E2 03 00 60 03 00 90 00 D7 [17:10:21]RAPDU: 90 00 [17:10:21]wFMCommunicate OK [17:10:21]wFMCommunicate request_size=10 [17:10:21]MH_SAM_APDU [17:10:21]CAPDU: 80 0D 02 02 05 85 42 6E FD D3 [17:10:21]Write to MH i2c: E2 0D 00 61 03 80 0D 02 02 05 00 85 42 6E FD D3 00 00 ED [17:10:21]Write i2c OK [17:10:21]MH_I2C_Read... [17:10:21]Read from MH i2c: E2 [17:10:21]MH_I2C_Read... [17:10:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:21]Read from MH i2c: E2 03 00 [17:10:21]MH_I2C_Read... [17:10:21]Read from MH i2c: E2 03 00 61 03 00 90 00 D8 [17:10:21]RAPDU: 90 00 [17:10:21]wFMCommunicate OK [17:10:21]wFMCommunicate request_size=4 [17:10:21]MH_SAM_APDU [17:10:21]CAPDU: 80 0D 03 02 [17:10:21]Write to MH i2c: E2 08 00 62 03 80 0D 03 02 00 00 00 00 E0 [17:10:21]Write i2c OK [17:10:21]MH_I2C_Read... [17:10:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:10:21]Read from MH i2c: E2 [17:10:21]MH_I2C_Read... [17:10:21]Read from MH i2c: E2 0B 00 [17:10:21]MH_I2C_Read... [17:10:21]Read from MH i2c: E2 0B 00 62 03 00 8A 5B 60 0B DA 25 2D D2 90 00 2F [17:10:21]RAPDU: 8A 5B 60 0B DA 25 2D D2 90 00 [17:10:21]wFMCommunicate OK [17:10:21]SAM_PROTO_SignData done [17:10:21]FM_MakeSignedData done [17:10:21]CreateOFDProtocolMessage [17:10:21]wFMCommunicate request_size=4 [17:10:21]MH_SAM_APDU [17:10:21]CAPDU: 80 11 00 00 [17:10:21]Write to MH i2c: E2 08 00 63 03 80 11 00 00 00 00 00 00 E0 [17:10:21]Write i2c OK [17:10:21]MH_I2C_Read... [17:10:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:21]Read from MH i2c: E2 [17:10:21]MH_I2C_Read... [17:10:21]Read from MH i2c: E2 17 00 [17:10:21]MH_I2C_Read... [17:10:21]Read from MH i2c: E2 17 00 63 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 32 [17:10:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:10:21]wFMCommunicate OK [17:10:21]CreateOFDProtocolMessage done [17:10:21]OFDSenderStorePacket 69450 [17:10:21]StoreOFDPacket docnum=69450 [17:10:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 D2 31 07 01 18 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 EA 88 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E7 F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 6B 00 00 00 00 07 04 06 00 A0 F7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 7C 39 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4A 0F 01 00 35 04 06 00 5D 85 42 6E FD D3 8A 5B 60 0B DA 25 2D D2 [17:10:21]CheckFolder [17:10:21]dirname=/storage/ofd_packets [17:10:21]CheckFolder done [17:10:21]ProducePacketName [17:10:21]name=ofd_packets/00069450 [17:10:21]NVStorageSaveData ofd_packets/00069450 [17:10:21]File name is /storage/ofd_packets/00069450 [17:10:21]Write 301 bytes [17:10:21]NVStorageSaveData done [17:10:21]OFDSenderStorePacket done [17:10:21]KKMCreateOFDPacket done [17:10:21]NVStorageSaveData kkm_last_timestamp [17:10:21]File name is /storage/kkm_last_timestamp [17:10:21]Write 4 bytes [17:10:21]NVStorageSaveData done [17:10:21]ExternCall_PrintAddStr [17:10:21]wPrintStart [17:10:21]Write to MH i2c: 01 00 00 64 03 67 [17:10:21]Write i2c OK [17:10:21]MH_I2C_Read... [17:10:21]Read from MH i2c: 01 [17:10:21]MH_I2C_Read... [17:10:21]Read from MH i2c: 01 07 00 [17:10:21]MH_I2C_Read... [17:10:21]Read from MH i2c: 01 07 00 64 03 00 00 00 00 00 FF 0F 7C [17:10:21]RasterBufferAndPrint [17:10:21]line Счет N : (1)2885179 [17:10:21]line ИНН: 02508201610067 [17:10:21]line Контрольно-Кассовый Чек [17:10:21]line ПРОДАЖА [17:10:21]line ТРК (МРК, ГНК) : 13 [17:10:21]line Товар: 2710124500 [17:10:21]line Аи-95-К-5 [17:10:21]line 35.050 * 74.20 [17:10:21]line = 2600.71 [17:10:21]line НДС 12% НСП 1% [17:10:21]line > о реализуемом товаре [17:10:21]line ОКРУГЛЕНИЕ: -0.71 [17:10:21]line ИТОГО: 2600.00 [17:10:21]line Внесено: 5000.00 [17:10:21]line СДАЧА: 2400.00 [17:10:21]line НСП 1% : 23.01 [17:10:21]line НДС 12% : 276.18 [17:10:21]line Наличными: 2600.00 [17:10:21]line Безнал.: 0.00 [17:10:21]line Место: АЗС № 85 "Партнер Нефть" [17:10:21]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:10:21]line СНО: Общий режим [17:10:21]line Чек 295 20.10.2024 17:10 [17:10:21]line Смена: 193 ФФД: 1.0 [17:10:21]line ЗНМ: 0300000167 [17:10:21]line РНМ: 0000000000156251 [17:10:21]line Версия ККМ: v1.0 [17:10:21]line ФМ: 0000000000963346 [17:10:21]line ФД: 69450 [17:10:21]line ФПД: 102826926603731 [17:10:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171020&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69450&fm=102826926603731&tin=02508201610067®Number=0000000000156251&sum=260000 [17:10:21]written 0, free lines is 4095 [17:10:22]Write to MH i2c: 01 00 00 8F 03 92 [17:10:22]Write i2c OK [17:10:22]MH_I2C_Read... [17:10:22]Read from MH i2c: 01 [17:10:22]MH_I2C_Read... [17:10:22]Read from MH i2c: 01 07 00 [17:10:22]MH_I2C_Read... [17:10:22]Read from MH i2c: 01 07 00 8F 03 00 00 00 00 00 F7 0C 9C [17:10:22]RasterBufferAndPrint [17:10:22]line [17:10:22]line [17:10:22]line [17:10:22]line [17:10:22]line [17:10:22]written 0, free lines is 3327 [17:10:22]MH_Cut [17:10:22]Write to MH i2c: D1 01 00 96 03 01 6B [17:10:22]Write i2c OK [17:10:22]MH_I2C_Read... [17:10:22]Read from MH i2c: D1 [17:10:22]MH_I2C_Read... [17:10:22]Read from MH i2c: D1 01 00 [17:10:22]MH_I2C_Read... [17:10:22]Read from MH i2c: D1 01 00 96 03 00 6A [17:10:22]Write to MH i2c: 01 00 00 97 03 9A [17:10:22]Write i2c OK [17:10:22]MH_I2C_Read... [17:10:22]*** Cut start [17:10:22]*** Partial cut [17:10:22]*** CUTSNS_PIN = 1 [17:10:23]*** CUTSNS_PIN = 0 [17:10:23]*** Brake cut motor [17:10:23]Read from MH i2c: 01 [17:10:23]MH_I2C_Read... [17:10:23]*** Stop cut motor [17:10:23]*** Cut end [17:10:23]Read from MH i2c: 01 07 00 [17:10:23]MH_I2C_Read... [17:10:23]Read from MH i2c: 01 07 00 97 03 00 00 00 00 00 FF 0F AF [17:10:23]process_action close_receipt done [17:10:23]requested_data is exist [17:10:23]produce_requested_data [17:10:23]requested_item fm.sn is exist - process it [17:10:23]wFMCommunicate request_size=4 [17:10:23]MH_SAM_APDU [17:10:23]CAPDU: 80 11 00 00 [17:10:23]Write to MH i2c: E2 08 00 98 03 80 11 00 00 00 00 00 00 15 [17:10:23]Write i2c OK [17:10:23]MH_I2C_Read... [17:10:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:23]Read from MH i2c: E2 [17:10:23]MH_I2C_Read... [17:10:23]Read from MH i2c: E2 17 00 [17:10:23]MH_I2C_Read... [17:10:23]Read from MH i2c: E2 17 00 98 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 67 [17:10:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:10:23]wFMCommunicate OK [17:10:23]requested_item fd.num is exist - process it [17:10:23]SAM_PROTO_GetFieldsCounters [17:10:23]wFMCommunicate request_size=4 [17:10:23]MH_SAM_APDU [17:10:23]CAPDU: 80 13 00 00 [17:10:23]Write to MH i2c: E2 08 00 99 03 80 13 00 00 00 00 00 00 18 [17:10:23]Write i2c OK [17:10:23]MH_I2C_Read... [17:10:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:10:23]Read from MH i2c: E2 [17:10:23]MH_I2C_Read... [17:10:23]Read from MH i2c: E2 62 00 [17:10:23]MH_I2C_Read... [17:10:23]Read from MH i2c: E2 62 00 99 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4A 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 C6 [17:10:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4A 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:10:23]wFMCommunicate OK [17:10:23]SAM_PROTO_GetFieldsCounters done [17:10:23]requested_item shift.num is exist - process it [17:10:23]requested_item shift.opened is exist - process it [17:10:23]req_shift_opened [17:10:23]FM_GetShiftState [17:10:23]SAM_PROTO_GetShiftState [17:10:23]wFMCommunicate request_size=4 [17:10:23]MH_SAM_APDU [17:10:23]CAPDU: 80 13 01 00 [17:10:23]Write to MH i2c: E2 08 00 9A 03 80 13 01 00 00 00 00 00 1A [17:10:23]Write i2c OK [17:10:23]MH_I2C_Read... [17:10:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:23]Read from MH i2c: E2 [17:10:23]MH_I2C_Read... [17:10:23]Read from MH i2c: E2 0E 00 [17:10:23]MH_I2C_Read... [17:10:23]Read from MH i2c: E2 0E 00 9A 03 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 20 [17:10:23]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:10:23]wFMCommunicate OK [17:10:23]SAM_PROTO_GetShiftState done [17:10:23]FM_GetShiftState done [17:10:23]req_shift_opened done [17:10:23]requested_item shift.open_date is exist - process it [17:10:23]req_shift_open_date [17:10:23]req_shift_open_date done [17:10:23]produce_requested_data done [17:10:23]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69450,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [17:10:23]process_action_free close_receipt [17:10:23]json_value_free [17:10:23]json_value_free done [17:10:23]process_json_proto returns [17:10:23]Send response to host [17:10:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69450,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [17:10:23]free response buf [17:10:23]execute_script done [17:10:23]execute_script returns [17:10:23]free content buf [17:10:23]Sock 9.Close socket [17:10:23]Sock 9.Thread stoped [17:10:44]ConnectInit Can't connect to host [17:10:44]CommunicateWithHost connect error [17:10:44]CommunicateWithHost err = -1 [17:10:44]OFD Sender: Server communicate error [17:10:44]OFD Sender: Processing packet 69448 [packets to send 20, broken 17] [17:10:44]ProducePacketName [17:10:44]name=ofd_packets/00069448 [17:10:44]OFD Sender: To server: pG, [17:10:44]CommunicateWithHost lk.salyk.kg:30040 [17:10:44]ConnectInit lk.salyk.kg [17:10:44]Connected sock=9 [17:10:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 FF E1 0D 01 D3 22 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 0E 39 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 48 0F 01 00 35 04 06 00 31 75 39 6D 1D C3 06 F0 20 8B 65 8D F4 9C [17:10:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 C0 F4 47 00 ED A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 48 0F 01 00 F4 03 04 00 39 E3 14 67 B6 04 01 00 00 2F D2 B0 57 7B AE D0 D1 [17:10:44]CommunicateWithHost err = 0 [17:10:44]CheckOFDResponse [17:10:44]1017 (14) - 77093643461234 [17:10:44]1041 (16) - 0000000000963346 [17:10:44]1040 (4) - 69448 [17:10:44]1012 (4) - 20.10.2024 11:02 [17:10:44]1206 (1) - 0 [17:10:44]OFD Sender: Remove packet 69448 [17:10:44]ProducePacketName [17:10:44]name=ofd_packets/00069448 [17:10:44]NVStorageDeleteData [17:10:45]OFD Sender: Processing packet 69449 [packets to send 19, broken 17] [17:10:45]ProducePacketName [17:10:45]name=ofd_packets/00069449 [17:10:45]OFD Sender: To server: pG, [17:10:45]CommunicateWithHost lk.salyk.kg:30040 [17:10:45]ConnectInit lk.salyk.kg [17:10:45]Connected sock=9 [17:10:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 9E 06 04 01 06 D3 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 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 1D 39 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 49 0F 01 00 35 04 06 00 85 B8 75 DC D3 E4 CB 61 60 41 AA 03 0C D7 [17:10:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 A5 61 47 00 C1 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 49 0F 01 00 F4 03 04 00 3A E3 14 67 B6 04 01 00 00 34 BE F8 F2 4E 5D BF 30 [17:10:45]CommunicateWithHost err = 0 [17:10:45]CheckOFDResponse [17:10:45]1017 (14) - 77093643461234 [17:10:45]1041 (16) - 0000000000963346 [17:10:45]1040 (4) - 69449 [17:10:45]1012 (4) - 20.10.2024 11:02 [17:10:45]1206 (1) - 0 [17:10:45]OFD Sender: Remove packet 69449 [17:10:45]ProducePacketName [17:10:45]name=ofd_packets/00069449 [17:10:45]NVStorageDeleteData [17:10:46]OFD Sender: Processing packet 69450 [packets to send 18, broken 17] [17:10:46]ProducePacketName [17:10:46]name=ofd_packets/00069450 [17:10:46]OFD Sender: To server: pG, [17:10:46]CommunicateWithHost lk.salyk.kg:30040 [17:10:46]ConnectInit lk.salyk.kg [17:10:46]Connected sock=9 [17:10:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 D2 31 07 01 18 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 EA 88 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E7 F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 6B 00 00 00 00 07 04 06 00 A0 F7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 7C 39 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4A 0F 01 00 35 04 06 00 5D 85 42 6E FD D3 8A 5B 60 0B DA 25 2D D2 [17:10:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 A4 9A 47 00 DE 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4A 0F 01 00 F4 03 04 00 3B E3 14 67 B6 04 01 00 00 E0 85 B2 E8 08 C9 2F 81 [17:10:46]CommunicateWithHost err = 0 [17:10:46]CheckOFDResponse [17:10:46]1017 (14) - 77093643461234 [17:10:46]1041 (16) - 0000000000963346 [17:10:46]1040 (4) - 69450 [17:10:46]1012 (4) - 20.10.2024 11:02 [17:10:46]1206 (1) - 0 [17:10:46]OFD Sender: Remove packet 69450 [17:10:46]ProducePacketName [17:10:46]name=ofd_packets/00069450 [17:10:46]NVStorageDeleteData [17:10:47]OFD Sender: No OFD packet to send [17:10:52]OFD Sender: No OFD packet to send [17:10:57]OFD Sender: No OFD packet to send [17:11:02]OFD Sender: No OFD packet to send [17:11:07]OFD Sender: No OFD packet to send [17:11:12]OFD Sender: No OFD packet to send [17:11:17]OFD Sender: No OFD packet to send [17:11:22]OFD Sender: No OFD packet to send [17:11:27]OFD Sender: No OFD packet to send [17:11:32]OFD Sender: No OFD packet to send [17:11:37]OFD Sender: No OFD packet to send [17:11:42]OFD Sender: No OFD packet to send [17:11:47]OFD Sender: No OFD packet to send [17:11:47]accept exits with 8 [17:11:47]New connection [17:11:47]New thread 3067239780 created [17:11:47]Thread 3067096420 joined [17:11:47]Waiting for new connection... [17:11:47] Sock 8.Parse request [17:11:47]Sock 8.Check first char [17:11:47]Sock 8.First char is OK [17:11:47]request: POST /json_proto HTTP/1.0 [17:11:47]Method: POST [17:11:47]URL: /json_proto [17:11:47]Method is POST - this is cgi request [17:11:47]url: /json_proto [17:11:47]query_string will be loaded in cgi processing [17:11:47]execute_cgi json_proto POST (null) [17:11:47]execute_cgi path=json_proto method=POST [17:11:47]POST find Content-Length [17:11:47]Host: 172.17.50.3:8080 [17:11:47]Content-Length: 678 [17:11:47]Content-Type: application/json [17:11:47] [17:11:47]POST finish read [17:11:47]Found Content-Length = 678 [17:11:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:47]execute_script... [17:11: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)2885180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:47]POST & json_proto [17:11:47]process_json_proto [17:11:47]json parsed OK: [17:11:47]protocol is kg_v1.0 [17:11:47]action value=close_receipt [17:11:47]process_action close_receipt [17:11:47]cmd_close_receipt [17:11:47]MH_GetDate [17:11:47]Write to MH i2c: F0 00 00 9B 03 8D [17:11:47]Write i2c OK [17:11:47]MH_I2C_Read... [17:11:47]Read from MH i2c: F0 [17:11:47]MH_I2C_Read... [17:11:47]Read from MH i2c: F0 09 00 [17:11:47]MH_I2C_Read... [17:11:47]Read from MH i2c: F0 09 00 9B 03 00 D3 39 15 67 6B 98 1E 66 A5 [17:11:47]GetLastDocTimeStamp 1729444220 [17:11:47]current date 1729444307 [17:11:47]FM_GetShiftState [17:11:47]SAM_PROTO_GetShiftState [17:11:47]wFMCommunicate request_size=4 [17:11:47]MH_SAM_APDU [17:11:47]CAPDU: 80 13 01 00 [17:11:47]Write to MH i2c: E2 08 00 9C 03 80 13 01 00 00 00 00 00 1C [17:11:47]Write i2c OK [17:11:47]MH_I2C_Read... [17:11:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:47]Read from MH i2c: E2 [17:11:47]MH_I2C_Read... [17:11:47]Read from MH i2c: E2 0E 00 [17:11:47]MH_I2C_Read... [17:11:47]Read from MH i2c: E2 0E 00 9C 03 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 22 [17:11:47]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:11:47]wFMCommunicate OK [17:11:47]SAM_PROTO_GetShiftState done [17:11:47]FM_GetShiftState done [17:11:47]opened in 1729383220 [17:11:47]opened+sec_in_day 1729469620 [17:11:47]quantity*price = 30038 [17:11:47]sum+1 = 30039 [17:11:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 296 20.10.2024 17:11 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69451 ФПД: 62745441843890 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171147&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69451&fm=62745441843890&tin=02508201610067®Number=0000000000156251&sum=30000 [17:11:48]StoreToDocumentArchive [17:11:48]shift 193 fd 69451 [17:11:48]save to /storage/0193/doc_00069451 [17:11:48]save last doc name /storage/0193/doc_00069451 to /storage/kkm_last_doc_name [17:11:48]save OK [17:11:48]Clear old archive folders... [17:11:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:11:48]tlvbuf is 00CE2B00 [17:11:48]SAM_PROTO_ClearQueue [17:11:48]wFMCommunicate request_size=4 [17:11:48]MH_SAM_APDU [17:11:48]CAPDU: 80 09 00 00 [17:11:48]Write to MH i2c: E2 08 00 A9 03 80 09 00 00 00 00 00 00 1E [17:11:48]Write i2c OK [17:11:48]MH_I2C_Read... [17:11:48]Read from MH i2c: E2 [17:11:48]MH_I2C_Read... [17:11:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:11:48]Read from MH i2c: E2 03 00 [17:11:48]MH_I2C_Read... [17:11:48]Read from MH i2c: E2 03 00 A9 03 00 90 00 20 [17:11:48]RAPDU: 90 00 [17:11:48]wFMCommunicate OK [17:11:48]SAM_PROTO_ClearQueue done [17:11:48]KKMCreateOFDPacket [17:11:48]OFDProtocolAddRootSTLVToBuf [17:11:48]FM_MakeSignedData [17:11:48]FM_MakeSignedData [17:11:48]SAM_PROTO_SignData [17:11:48]wFMCommunicate request_size=4 [17:11:48]MH_SAM_APDU [17:11:48]CAPDU: 80 0D 01 02 [17:11:48]Write to MH i2c: E2 08 00 AA 03 80 0D 01 02 00 00 00 00 26 [17:11:48]Write i2c OK [17:11:48]MH_I2C_Read... [17:11:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:11:48]Read from MH i2c: E2 [17:11:48]MH_I2C_Read... [17:11:48]Read from MH i2c: E2 03 00 [17:11:48]MH_I2C_Read... [17:11:48]Read from MH i2c: E2 03 00 AA 03 00 90 00 21 [17:11:48]RAPDU: 90 00 [17:11:48]wFMCommunicate OK [17:11:48]wFMCommunicate request_size=255 [17:11:48]MH_SAM_APDU [17:11:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 D3 39 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4B 0F 01 00 35 04 06 00 39 [17:11:48]Write to MH i2c: E2 02 01 AB 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 D3 39 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4B 0F 01 00 35 04 06 00 39 00 00 A9 [17:11:48]Write i2c OK [17:11:48]MH_I2C_Read... [17:11:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:48]Read from MH i2c: E2 [17:11:48]MH_I2C_Read... [17:11:48]Read from MH i2c: E2 03 00 [17:11:48]MH_I2C_Read... [17:11:48]Read from MH i2c: E2 03 00 AB 03 00 90 00 22 [17:11:48]RAPDU: 90 00 [17:11:48]wFMCommunicate OK [17:11:48]wFMCommunicate request_size=10 [17:11:48]MH_SAM_APDU [17:11:48]CAPDU: 80 0D 02 02 05 11 0F C5 BA B2 [17:11:48]Write to MH i2c: E2 0D 00 AC 03 80 0D 02 02 05 00 11 0F C5 BA B2 00 00 84 [17:11:48]Write i2c OK [17:11:48]MH_I2C_Read... [17:11:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:48]Read from MH i2c: E2 [17:11:48]MH_I2C_Read... [17:11:48]Read from MH i2c: E2 03 00 [17:11:48]MH_I2C_Read... [17:11:48]Read from MH i2c: E2 03 00 AC 03 00 90 00 23 [17:11:48]RAPDU: 90 00 [17:11:48]wFMCommunicate OK [17:11:48]wFMCommunicate request_size=4 [17:11:48]MH_SAM_APDU [17:11:48]CAPDU: 80 0D 03 02 [17:11:48]Write to MH i2c: E2 08 00 AD 03 80 0D 03 02 00 00 00 00 2B [17:11:48]Write i2c OK [17:11:48]MH_I2C_Read... [17:11:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:11:48]Read from MH i2c: E2 [17:11:48]MH_I2C_Read... [17:11:48]Read from MH i2c: E2 0B 00 [17:11:48]MH_I2C_Read... [17:11:48]Read from MH i2c: E2 0B 00 AD 03 00 F7 73 EF B6 E2 6B CC 07 90 00 5B [17:11:48]RAPDU: F7 73 EF B6 E2 6B CC 07 90 00 [17:11:48]wFMCommunicate OK [17:11:48]SAM_PROTO_SignData done [17:11:48]FM_MakeSignedData done [17:11:48]CreateOFDProtocolMessage [17:11:48]wFMCommunicate request_size=4 [17:11:48]MH_SAM_APDU [17:11:48]CAPDU: 80 11 00 00 [17:11:48]Write to MH i2c: E2 08 00 AE 03 80 11 00 00 00 00 00 00 2B [17:11:48]Write i2c OK [17:11:48]MH_I2C_Read... [17:11:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:48]Read from MH i2c: E2 [17:11:48]MH_I2C_Read... [17:11:48]Read from MH i2c: E2 17 00 [17:11:48]MH_I2C_Read... [17:11:48]Read from MH i2c: E2 17 00 AE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7D [17:11:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:11:48]wFMCommunicate OK [17:11:48]CreateOFDProtocolMessage done [17:11:48]OFDSenderStorePacket 69451 [17:11:48]StoreOFDPacket docnum=69451 [17:11:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 03 7C 07 01 75 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 D3 39 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4B 0F 01 00 35 04 06 00 39 11 0F C5 BA B2 F7 73 EF B6 E2 6B CC 07 [17:11:48]CheckFolder [17:11:48]dirname=/storage/ofd_packets [17:11:48]CheckFolder done [17:11:48]ProducePacketName [17:11:48]name=ofd_packets/00069451 [17:11:48]NVStorageSaveData ofd_packets/00069451 [17:11:48]File name is /storage/ofd_packets/00069451 [17:11:48]Write 301 bytes [17:11:48]NVStorageSaveData done [17:11:48]OFDSenderStorePacket done [17:11:48]KKMCreateOFDPacket done [17:11:48]NVStorageSaveData kkm_last_timestamp [17:11:48]File name is /storage/kkm_last_timestamp [17:11:48]Write 4 bytes [17:11:48]NVStorageSaveData done [17:11:48]ExternCall_PrintAddStr [17:11:48]wPrintStart [17:11:48]Write to MH i2c: 01 00 00 AF 03 B2 [17:11:48]Write i2c OK [17:11:48]MH_I2C_Read... [17:11:48]Read from MH i2c: 01 [17:11:48]MH_I2C_Read... [17:11:48]Read from MH i2c: 01 07 00 [17:11:48]MH_I2C_Read... [17:11:48]Read from MH i2c: 01 07 00 AF 03 00 00 00 00 00 FF 0F C7 [17:11:48]RasterBufferAndPrint [17:11:48]line Счет N : (1)2885180 [17:11:48]line ИНН: 02508201610067 [17:11:48]line Контрольно-Кассовый Чек [17:11:48]line ПРОДАЖА [17:11:48]line ТРК (МРК, ГНК) : 32 [17:11:48]line Товар: 2710124130 [17:11:48]line Аи-92-К-5 [17:11:48]line 4.490 * 66.90 [17:11:48]line = 300.38 [17:11:48]line НДС 12% НСП 1% [17:11:48]line > о реализуемом товаре [17:11:48]line ОКРУГЛЕНИЕ: -0.38 [17:11:48]line ИТОГО: 300.00 [17:11:48]line Внесено: 300.00 [17:11:48]line СДАЧА: 0.00 [17:11:48]line НСП 1% : 2.66 [17:11:48]line НДС 12% : 31.90 [17:11:48]line Наличными: 300.00 [17:11:48]line Безнал.: 0.00 [17:11:48]line Место: АЗС № 85 "Партнер Нефть" [17:11:48]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:11:48]line СНО: Общий режим [17:11:48]line Чек 296 20.10.2024 17:11 [17:11:48]line Смена: 193 ФФД: 1.0 [17:11:48]line ЗНМ: 0300000167 [17:11:48]line РНМ: 0000000000156251 [17:11:48]line Версия ККМ: v1.0 [17:11:48]line ФМ: 0000000000963346 [17:11:48]line ФД: 69451 [17:11:48]line ФПД: 62745441843890 [17:11:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171147&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69451&fm=62745441843890&tin=02508201610067®Number=0000000000156251&sum=30000 [17:11:49]OFD Sender: Processing packet 69451 [packets to send 18, broken 17] [17:11:49]ProducePacketName [17:11:49]name=ofd_packets/00069451 [17:11:49]OFD Sender: To server: pG, [17:11:49]CommunicateWithHost lk.salyk.kg:30040 [17:11:49]ConnectInit lk.salyk.kg [17:11:49]written 0, free lines is 4095 [17:11:49]Connected sock=10 [17:11:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 03 7C 07 01 75 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 D3 39 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4B 0F 01 00 35 04 06 00 39 11 0F C5 BA B2 F7 73 EF B6 E2 6B CC 07 [17:11:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 7A 71 47 00 39 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4B 0F 01 00 F4 03 04 00 7A E3 14 67 B6 04 01 00 00 69 43 D7 D9 3D 61 C3 C0 [17:11:49]CommunicateWithHost err = 0 [17:11:49]CheckOFDResponse [17:11:49]1017 (14) - 77093643461234 [17:11:49]1041 (16) - 0000000000963346 [17:11:49]1040 (4) - 69451 [17:11:49]1012 (4) - 20.10.2024 11:03 [17:11:49]1206 (1) - 0 [17:11:49]OFD Sender: Remove packet 69451 [17:11:49]ProducePacketName [17:11:49]name=ofd_packets/00069451 [17:11:49]NVStorageDeleteData [17:11:49]Write to MH i2c: 01 00 00 DA 03 DD [17:11:49]Write i2c OK [17:11:49]MH_I2C_Read... [17:11:49]Read from MH i2c: 01 [17:11:49]MH_I2C_Read... [17:11:49]Read from MH i2c: 01 07 00 [17:11:49]MH_I2C_Read... [17:11:49]Read from MH i2c: 01 07 00 DA 03 00 00 00 00 00 FC 0C EC [17:11:49]RasterBufferAndPrint [17:11:49]line [17:11:49]line [17:11:49]line [17:11:49]line [17:11:49]line [17:11:49]written 0, free lines is 3331 [17:11:49]MH_Cut [17:11:49]Write to MH i2c: D1 01 00 E1 03 01 B6 [17:11:49]Write i2c OK [17:11:49]MH_I2C_Read... [17:11:49]Read from MH i2c: D1 [17:11:49]MH_I2C_Read... [17:11:49]Read from MH i2c: D1 01 00 [17:11:49]MH_I2C_Read... [17:11:49]Read from MH i2c: D1 01 00 E1 03 00 B5 [17:11:49]Write to MH i2c: 01 00 00 E2 03 E5 [17:11:49]Write i2c OK [17:11:49]MH_I2C_Read... [17:11:50]OFD Sender: No OFD packet to send [17:11:50]*** Cut start [17:11:50]*** Partial cut [17:11:50]*** CUTSNS_PIN = 1 [17:11:50]*** CUTSNS_PIN = 0 [17:11:50]*** Brake cut motor [17:11:51]Read from MH i2c: 01 [17:11:51]MH_I2C_Read... [17:11:51]*** Stop cut motor [17:11:51]*** Cut end [17:11:51]Read from MH i2c: 01 07 00 [17:11:51]MH_I2C_Read... [17:11:51]Read from MH i2c: 01 07 00 E2 03 00 00 00 00 00 FF 0F FA [17:11:51]process_action close_receipt done [17:11:51]requested_data is exist [17:11:51]produce_requested_data [17:11:51]requested_item fm.sn is exist - process it [17:11:51]wFMCommunicate request_size=4 [17:11:51]MH_SAM_APDU [17:11:51]CAPDU: 80 11 00 00 [17:11:51]Write to MH i2c: E2 08 00 E3 03 80 11 00 00 00 00 00 00 60 [17:11:51]Write i2c OK [17:11:51]MH_I2C_Read... [17:11:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:51]Read from MH i2c: E2 [17:11:51]MH_I2C_Read... [17:11:51]Read from MH i2c: E2 17 00 [17:11:51]MH_I2C_Read... [17:11:51]Read from MH i2c: E2 17 00 E3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B2 [17:11:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:11:51]wFMCommunicate OK [17:11:51]requested_item fd.num is exist - process it [17:11:51]SAM_PROTO_GetFieldsCounters [17:11:51]wFMCommunicate request_size=4 [17:11:51]MH_SAM_APDU [17:11:51]CAPDU: 80 13 00 00 [17:11:51]Write to MH i2c: E2 08 00 E4 03 80 13 00 00 00 00 00 00 63 [17:11:51]Write i2c OK [17:11:51]MH_I2C_Read... [17:11:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:11:51]Read from MH i2c: E2 [17:11:51]MH_I2C_Read... [17:11:51]Read from MH i2c: E2 62 00 [17:11:51]MH_I2C_Read... [17:11:51]Read from MH i2c: E2 62 00 E4 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4B 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 15 [17:11:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4B 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:11:51]wFMCommunicate OK [17:11:51]SAM_PROTO_GetFieldsCounters done [17:11:51]requested_item shift.num is exist - process it [17:11:51]requested_item shift.opened is exist - process it [17:11:51]req_shift_opened [17:11:51]FM_GetShiftState [17:11:51]SAM_PROTO_GetShiftState [17:11:51]wFMCommunicate request_size=4 [17:11:51]MH_SAM_APDU [17:11:51]CAPDU: 80 13 01 00 [17:11:51]Write to MH i2c: E2 08 00 E5 03 80 13 01 00 00 00 00 00 65 [17:11:51]Write i2c OK [17:11:51]MH_I2C_Read... [17:11:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:51]Read from MH i2c: E2 [17:11:51]MH_I2C_Read... [17:11:51]Read from MH i2c: E2 0E 00 [17:11:51]MH_I2C_Read... [17:11:51]Read from MH i2c: E2 0E 00 E5 03 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 6B [17:11:51]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:11:51]wFMCommunicate OK [17:11:51]SAM_PROTO_GetShiftState done [17:11:51]FM_GetShiftState done [17:11:51]req_shift_opened done [17:11:51]requested_item shift.open_date is exist - process it [17:11:51]req_shift_open_date [17:11:51]req_shift_open_date done [17:11:51]produce_requested_data done [17:11:51]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69451,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [17:11:51]process_action_free close_receipt [17:11:51]json_value_free [17:11:51]json_value_free done [17:11:51]process_json_proto returns [17:11:51]Send response to host [17:11:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69451,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [17:11:51]free response buf [17:11:51]execute_script done [17:11:51]execute_script returns [17:11:51]free content buf [17:11:51]Sock 8.Close socket [17:11:51]Sock 8.Thread stoped [17:11:55]OFD Sender: No OFD packet to send [17:12:00]OFD Sender: No OFD packet to send [17:12:05]OFD Sender: No OFD packet to send [17:12:10]OFD Sender: No OFD packet to send [17:12:15]OFD Sender: No OFD packet to send [17:12:20]OFD Sender: No OFD packet to send [17:12:25]OFD Sender: No OFD packet to send [17:12:30]OFD Sender: No OFD packet to send [17:12:34]accept exits with 9 [17:12:34]New connection [17:12:34]New thread 3067096420 created [17:12:34]Thread 3067239780 joined [17:12:34]Waiting for new connection... [17:12:34] Sock 9.Parse request [17:12:34]Sock 9.Check first char [17:12:34]Sock 9.First char is OK [17:12:34]request: POST /json_proto HTTP/1.0 [17:12:34]Method: POST [17:12:34]URL: /json_proto [17:12:34]Method is POST - this is cgi request [17:12:34]url: /json_proto [17:12:34]query_string will be loaded in cgi processing [17:12:34]execute_cgi json_proto POST (null) [17:12:34]execute_cgi path=json_proto method=POST [17:12:34]POST find Content-Length [17:12:34]Host: 172.17.50.3:8080 [17:12:34]Content-Length: 675 [17:12:34]Content-Type: application/json [17:12:34] [17:12:34]POST finish read [17:12:34]Found Content-Length = 675 [17:12:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 4.600, "sum" : 350.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:34]execute_script... [17:12:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 4.600, "sum" : 350.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:34]POST & json_proto [17:12:34]process_json_proto [17:12:34]json parsed OK: [17:12:34]protocol is kg_v1.0 [17:12:34]action value=close_receipt [17:12:34]process_action close_receipt [17:12:34]cmd_close_receipt [17:12:34]MH_GetDate [17:12:34]Write to MH i2c: F0 00 00 E6 03 D8 [17:12:34]Write i2c OK [17:12:34]MH_I2C_Read... [17:12:34]Read from MH i2c: F0 [17:12:34]MH_I2C_Read... [17:12:34]Read from MH i2c: F0 09 00 [17:12:34]MH_I2C_Read... [17:12:34]Read from MH i2c: F0 09 00 E6 03 00 03 3A 15 67 6B 98 1E 66 21 [17:12:34]GetLastDocTimeStamp 1729444307 [17:12:34]current date 1729444355 [17:12:34]FM_GetShiftState [17:12:34]SAM_PROTO_GetShiftState [17:12:34]wFMCommunicate request_size=4 [17:12:34]MH_SAM_APDU [17:12:34]CAPDU: 80 13 01 00 [17:12:34]Write to MH i2c: E2 08 00 E7 03 80 13 01 00 00 00 00 00 67 [17:12:34]Write i2c OK [17:12:34]MH_I2C_Read... [17:12:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:34]Read from MH i2c: E2 [17:12:34]MH_I2C_Read... [17:12:34]Read from MH i2c: E2 0E 00 [17:12:34]MH_I2C_Read... [17:12:34]Read from MH i2c: E2 0E 00 E7 03 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 6D [17:12:34]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:12:34]wFMCommunicate OK [17:12:34]SAM_PROTO_GetShiftState done [17:12:34]FM_GetShiftState done [17:12:34]opened in 1729383220 [17:12:34]opened+sec_in_day 1729469620 [17:12:34]quantity*price = 35052 [17:12:34]sum+1 = 35053 [17:12:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 297 20.10.2024 17:12 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69452 ФПД: 227697799789085 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171235&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69452&fm=227697799789085&tin=02508201610067®Number=0000000000156251&sum=35000 [17:12:35]StoreToDocumentArchive [17:12:35]shift 193 fd 69452 [17:12:35]save to /storage/0193/doc_00069452 [17:12:35]save last doc name /storage/0193/doc_00069452 to /storage/kkm_last_doc_name [17:12:35]save OK [17:12:35]Clear old archive folders... [17:12:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:12:35]tlvbuf is 00CEBB30 [17:12:35]SAM_PROTO_ClearQueue [17:12:35]wFMCommunicate request_size=4 [17:12:35]MH_SAM_APDU [17:12:35]CAPDU: 80 09 00 00 [17:12:35]Write to MH i2c: E2 08 00 F4 03 80 09 00 00 00 00 00 00 69 [17:12:35]Write i2c OK [17:12:35]MH_I2C_Read... [17:12:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:12:35]Read from MH i2c: E2 [17:12:35]MH_I2C_Read... [17:12:35]Read from MH i2c: E2 03 00 [17:12:35]MH_I2C_Read... [17:12:35]Read from MH i2c: E2 03 00 F4 03 00 90 00 6B [17:12:35]RAPDU: 90 00 [17:12:35]wFMCommunicate OK [17:12:35]SAM_PROTO_ClearQueue done [17:12:35]KKMCreateOFDPacket [17:12:35]OFDProtocolAddRootSTLVToBuf [17:12:35]FM_MakeSignedData [17:12:35]FM_MakeSignedData [17:12:35]SAM_PROTO_SignData [17:12:35]wFMCommunicate request_size=4 [17:12:35]MH_SAM_APDU [17:12:35]CAPDU: 80 0D 01 02 [17:12:35]Write to MH i2c: E2 08 00 F5 03 80 0D 01 02 00 00 00 00 71 [17:12:35]Write i2c OK [17:12:35]MH_I2C_Read... [17:12:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:12:36]Read from MH i2c: E2 [17:12:36]MH_I2C_Read... [17:12:36]Read from MH i2c: E2 03 00 [17:12:36]MH_I2C_Read... [17:12:36]Read from MH i2c: E2 03 00 F5 03 00 90 00 6C [17:12:36]RAPDU: 90 00 [17:12:36]wFMCommunicate OK [17:12:36]wFMCommunicate request_size=255 [17:12:36]MH_SAM_APDU [17:12:36]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EC 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 03 3A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4C 0F 01 00 35 04 06 00 CF 17 06 78 [17:12:36]Write to MH i2c: E2 02 01 F6 03 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 F8 11 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EC 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 03 3A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4C 0F 01 00 35 04 06 00 CF 17 06 78 00 00 D9 [17:12:36]Write i2c OK [17:12:36]MH_I2C_Read... [17:12:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:36]Read from MH i2c: E2 [17:12:36]MH_I2C_Read... [17:12:36]Read from MH i2c: E2 03 00 [17:12:36]MH_I2C_Read... [17:12:36]Read from MH i2c: E2 03 00 F6 03 00 90 00 6D [17:12:36]RAPDU: 90 00 [17:12:36]wFMCommunicate OK [17:12:36]wFMCommunicate request_size=7 [17:12:36]MH_SAM_APDU [17:12:36]CAPDU: 80 0D 02 02 02 FA 1D [17:12:36]Write to MH i2c: E2 0A 00 F7 03 80 0D 02 02 02 00 FA 1D 00 00 8F [17:12:36]Write i2c OK [17:12:36]MH_I2C_Read... [17:12:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:36]Read from MH i2c: E2 [17:12:36]MH_I2C_Read... [17:12:36]Read from MH i2c: E2 03 00 [17:12:36]MH_I2C_Read... [17:12:36]Read from MH i2c: E2 03 00 F7 03 00 90 00 6E [17:12:36]RAPDU: 90 00 [17:12:36]wFMCommunicate OK [17:12:36]wFMCommunicate request_size=4 [17:12:36]MH_SAM_APDU [17:12:36]CAPDU: 80 0D 03 02 [17:12:36]Write to MH i2c: E2 08 00 F8 03 80 0D 03 02 00 00 00 00 76 [17:12:36]Write i2c OK [17:12:36]MH_I2C_Read... [17:12:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:12:36]Read from MH i2c: E2 [17:12:36]MH_I2C_Read... [17:12:36]Read from MH i2c: E2 0B 00 [17:12:36]MH_I2C_Read... [17:12:36]Read from MH i2c: E2 0B 00 F8 03 00 74 31 3C 4B 9C 73 EB A3 90 00 40 [17:12:36]RAPDU: 74 31 3C 4B 9C 73 EB A3 90 00 [17:12:36]wFMCommunicate OK [17:12:36]SAM_PROTO_SignData done [17:12:36]FM_MakeSignedData done [17:12:36]CreateOFDProtocolMessage [17:12:36]wFMCommunicate request_size=4 [17:12:36]MH_SAM_APDU [17:12:36]CAPDU: 80 11 00 00 [17:12:36]Write to MH i2c: E2 08 00 F9 03 80 11 00 00 00 00 00 00 76 [17:12:36]Write i2c OK [17:12:36]MH_I2C_Read... [17:12:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:36]Read from MH i2c: E2 [17:12:36]MH_I2C_Read... [17:12:36]Read from MH i2c: E2 17 00 [17:12:36]MH_I2C_Read... [17:12:36]Read from MH i2c: E2 17 00 F9 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C8 [17:12:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:12:36]wFMCommunicate OK [17:12:36]CreateOFDProtocolMessage done [17:12:36]OFDSenderStorePacket 69452 [17:12:36]StoreOFDPacket docnum=69452 [17:12:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 43 3A 04 01 FF AE 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 F8 11 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EC 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 03 3A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4C 0F 01 00 35 04 06 00 CF 17 06 78 FA 1D 74 31 3C 4B 9C 73 EB A3 [17:12:36]CheckFolder [17:12:36]dirname=/storage/ofd_packets [17:12:36]CheckFolder done [17:12:36]ProducePacketName [17:12:36]name=ofd_packets/00069452 [17:12:36]NVStorageSaveData ofd_packets/00069452 [17:12:36]File name is /storage/ofd_packets/00069452 [17:12:36]Write 298 bytes [17:12:36]NVStorageSaveData done [17:12:36]OFDSenderStorePacket done [17:12:36]KKMCreateOFDPacket done [17:12:36]NVStorageSaveData kkm_last_timestamp [17:12:36]File name is /storage/kkm_last_timestamp [17:12:36]Write 4 bytes [17:12:36]NVStorageSaveData done [17:12:36]ExternCall_PrintAddStr [17:12:36]wPrintStart [17:12:36]Write to MH i2c: 01 00 00 FA 03 FD [17:12:36]Write i2c OK [17:12:36]MH_I2C_Read... [17:12:36]Read from MH i2c: 01 [17:12:36]MH_I2C_Read... [17:12:36]Read from MH i2c: 01 07 00 [17:12:36]MH_I2C_Read... [17:12:36]Read from MH i2c: 01 07 00 FA 03 00 00 00 00 00 FF 0F 12 [17:12:36]RasterBufferAndPrint [17:12:36]line Счет N : (1)2885182 [17:12:36]line ИНН: 02508201610067 [17:12:36]line Контрольно-Кассовый Чек [17:12:36]line ПРОДАЖА [17:12:36]line ТРК (МРК, ГНК) : 51 [17:12:36]line Товар: 2710194210 [17:12:36]line ДТ-К-5 [17:12:36]line 4.600 * 76.20 [17:12:36]line = 350.52 [17:12:36]line НДС 12% НСП 1% [17:12:36]line > о реализуемом товаре [17:12:36]line ОКРУГЛЕНИЕ: -0.52 [17:12:36]line ИТОГО: 350.00 [17:12:36]line Внесено: 350.00 [17:12:36]line СДАЧА: 0.00 [17:12:36]line НСП 1% : 3.10 [17:12:36]line НДС 12% : 37.22 [17:12:36]line Наличными: 350.00 [17:12:36]line Безнал.: 0.00 [17:12:36]line Место: АЗС № 85 "Партнер Нефть" [17:12:36]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:12:36]line СНО: Общий режим [17:12:36]line Чек 297 20.10.2024 17:12 [17:12:36]line Смена: 193 ФФД: 1.0 [17:12:36]line ЗНМ: 0300000167 [17:12:36]line РНМ: 0000000000156251 [17:12:36]line Версия ККМ: v1.0 [17:12:36]line ФМ: 0000000000963346 [17:12:36]line ФД: 69452 [17:12:36]line ФПД: 227697799789085 [17:12:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171235&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69452&fm=227697799789085&tin=02508201610067®Number=0000000000156251&sum=35000 [17:12:36]OFD Sender: Processing packet 69452 [packets to send 18, broken 17] [17:12:36]ProducePacketName [17:12:36]name=ofd_packets/00069452 [17:12:36]OFD Sender: To server: pG, [17:12:36]CommunicateWithHost lk.salyk.kg:30040 [17:12:36]ConnectInit lk.salyk.kg [17:12:36]written 0, free lines is 4095 [17:12:36]Connected sock=8 [17:12:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 43 3A 04 01 FF AE 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 F8 11 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EC 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 03 3A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4C 0F 01 00 35 04 06 00 CF 17 06 78 FA 1D 74 31 3C 4B 9C 73 EB A3 [17:12:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 46 2D 47 00 3C 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4C 0F 01 00 F4 03 04 00 A9 E3 14 67 B6 04 01 00 00 1F 93 3E 11 05 6F 81 A6 [17:12:37]CommunicateWithHost err = 0 [17:12:37]CheckOFDResponse [17:12:37]1017 (14) - 77093643461234 [17:12:37]1041 (16) - 0000000000963346 [17:12:37]1040 (4) - 69452 [17:12:37]1012 (4) - 20.10.2024 11:04 [17:12:37]1206 (1) - 0 [17:12:37]OFD Sender: Remove packet 69452 [17:12:37]ProducePacketName [17:12:37]name=ofd_packets/00069452 [17:12:37]NVStorageDeleteData [17:12:37]Write to MH i2c: 01 00 00 25 04 29 [17:12:37]Write i2c OK [17:12:37]MH_I2C_Read... [17:12:37]Read from MH i2c: 01 [17:12:37]MH_I2C_Read... [17:12:37]Read from MH i2c: 01 07 00 [17:12:37]MH_I2C_Read... [17:12:37]Read from MH i2c: 01 07 00 25 04 00 00 00 00 00 EC 0C 28 [17:12:37]RasterBufferAndPrint [17:12:37]line [17:12:37]line [17:12:37]line [17:12:37]line [17:12:37]line [17:12:37]written 0, free lines is 3314 [17:12:37]MH_Cut [17:12:37]Write to MH i2c: D1 01 00 2C 04 01 02 [17:12:37]Write i2c OK [17:12:37]MH_I2C_Read... [17:12:37]Read from MH i2c: D1 [17:12:37]MH_I2C_Read... [17:12:37]Read from MH i2c: D1 01 00 [17:12:37]MH_I2C_Read... [17:12:37]Read from MH i2c: D1 01 00 2C 04 00 01 [17:12:37]Write to MH i2c: 01 00 00 2D 04 31 [17:12:37]Write i2c OK [17:12:37]MH_I2C_Read... [17:12:37]OFD Sender: No OFD packet to send [17:12:37]*** Cut start [17:12:37]*** Partial cut [17:12:37]*** CUTSNS_PIN = 1 [17:12:37]*** CUTSNS_PIN = 0 [17:12:38]*** Brake cut motor [17:12:38]Read from MH i2c: 01 [17:12:38]MH_I2C_Read... [17:12:38]*** Stop cut motor [17:12:38]*** Cut end [17:12:38]Read from MH i2c: 01 07 00 [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: 01 07 00 2D 04 00 00 00 00 00 FF 0F 46 [17:12:38]process_action close_receipt done [17:12:38]requested_data is exist [17:12:38]produce_requested_data [17:12:38]requested_item fm.sn is exist - process it [17:12:38]wFMCommunicate request_size=4 [17:12:38]MH_SAM_APDU [17:12:38]CAPDU: 80 11 00 00 [17:12:38]Write to MH i2c: E2 08 00 2E 04 80 11 00 00 00 00 00 00 AC [17:12:38]Write i2c OK [17:12:38]MH_I2C_Read... [17:12:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:38]Read from MH i2c: E2 [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: E2 17 00 [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: E2 17 00 2E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FE [17:12:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:12:38]wFMCommunicate OK [17:12:38]requested_item fd.num is exist - process it [17:12:38]SAM_PROTO_GetFieldsCounters [17:12:38]wFMCommunicate request_size=4 [17:12:38]MH_SAM_APDU [17:12:38]CAPDU: 80 13 00 00 [17:12:38]Write to MH i2c: E2 08 00 2F 04 80 13 00 00 00 00 00 00 AF [17:12:38]Write i2c OK [17:12:38]MH_I2C_Read... [17:12:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:12:38]Read from MH i2c: E2 [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: E2 62 00 [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: E2 62 00 2F 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4C 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 65 [17:12:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4C 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:12:38]wFMCommunicate OK [17:12:38]SAM_PROTO_GetFieldsCounters done [17:12:38]requested_item shift.num is exist - process it [17:12:38]requested_item shift.opened is exist - process it [17:12:38]req_shift_opened [17:12:38]FM_GetShiftState [17:12:38]SAM_PROTO_GetShiftState [17:12:38]wFMCommunicate request_size=4 [17:12:38]MH_SAM_APDU [17:12:38]CAPDU: 80 13 01 00 [17:12:38]Write to MH i2c: E2 08 00 30 04 80 13 01 00 00 00 00 00 B1 [17:12:38]Write i2c OK [17:12:38]MH_I2C_Read... [17:12:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:38]Read from MH i2c: E2 [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: E2 0E 00 [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: E2 0E 00 30 04 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 B7 [17:12:38]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:12:38]wFMCommunicate OK [17:12:38]SAM_PROTO_GetShiftState done [17:12:38]FM_GetShiftState done [17:12:38]req_shift_opened done [17:12:38]requested_item shift.open_date is exist - process it [17:12:38]req_shift_open_date [17:12:38]req_shift_open_date done [17:12:38]produce_requested_data done [17:12:38]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69452,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [17:12:38]process_action_free close_receipt [17:12:38]json_value_free [17:12:38]json_value_free done [17:12:38]process_json_proto returns [17:12:38]Send response to host [17:12:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69452,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [17:12:38]free response buf [17:12:38]execute_script done [17:12:38]execute_script returns [17:12:38]free content buf [17:12:38]Sock 9.Close socket [17:12:38]Sock 9.Thread stoped [17:12:42]OFD Sender: No OFD packet to send [17:12:47]OFD Sender: No OFD packet to send [17:12:52]OFD Sender: No OFD packet to send [17:12:57]OFD Sender: No OFD packet to send [17:13:02]OFD Sender: No OFD packet to send [17:13:07]OFD Sender: No OFD packet to send [17:13:12]OFD Sender: No OFD packet to send [17:13:17]OFD Sender: No OFD packet to send [17:13:22]OFD Sender: No OFD packet to send [17:13:22]accept exits with 10 [17:13:22]New connection [17:13:22]New thread 3067239780 created [17:13:22]Thread 3067096420 joined [17:13:22]Waiting for new connection... [17:13:22] Sock 10.Parse request [17:13:22]Sock 10.Check first char [17:13:22]Sock 10.First char is OK [17:13:22]request: POST /json_proto HTTP/1.0 [17:13:22]Method: POST [17:13:22]URL: /json_proto [17:13:22]Method is POST - this is cgi request [17:13:22]url: /json_proto [17:13:22]query_string will be loaded in cgi processing [17:13:22]execute_cgi json_proto POST (null) [17:13:22]execute_cgi path=json_proto method=POST [17:13:22]POST find Content-Length [17:13:22]Host: 172.17.50.3:8080 [17:13:22]Content-Length: 678 [17:13:22]Content-Type: application/json [17:13:22] [17:13:22]POST finish read [17:13:22]Found Content-Length = 678 [17:13:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:22]execute_script... [17:13: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)2885183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:22]POST & json_proto [17:13:22]process_json_proto [17:13:22]json parsed OK: [17:13:22]protocol is kg_v1.0 [17:13:22]action value=close_receipt [17:13:22]process_action close_receipt [17:13:22]cmd_close_receipt [17:13:22]MH_GetDate [17:13:22]Write to MH i2c: F0 00 00 31 04 24 [17:13:22]Write i2c OK [17:13:22]MH_I2C_Read... [17:13:22]Read from MH i2c: F0 [17:13:22]MH_I2C_Read... [17:13:22]Read from MH i2c: F0 09 00 [17:13:22]MH_I2C_Read... [17:13:22]Read from MH i2c: F0 09 00 31 04 00 33 3A 15 67 6B 98 1E 66 9D [17:13:22]GetLastDocTimeStamp 1729444355 [17:13:22]current date 1729444403 [17:13:22]FM_GetShiftState [17:13:22]SAM_PROTO_GetShiftState [17:13:22]wFMCommunicate request_size=4 [17:13:22]MH_SAM_APDU [17:13:22]CAPDU: 80 13 01 00 [17:13:22]Write to MH i2c: E2 08 00 32 04 80 13 01 00 00 00 00 00 B3 [17:13:22]Write i2c OK [17:13:22]MH_I2C_Read... [17:13:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:22]Read from MH i2c: E2 [17:13:22]MH_I2C_Read... [17:13:22]Read from MH i2c: E2 0E 00 [17:13:22]MH_I2C_Read... [17:13:22]Read from MH i2c: E2 0E 00 32 04 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 B9 [17:13:22]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:13:22]wFMCommunicate OK [17:13:22]SAM_PROTO_GetShiftState done [17:13:22]FM_GetShiftState done [17:13:22]opened in 1729383220 [17:13:22]opened+sec_in_day 1729469620 [17:13:22]quantity*price = 50041 [17:13:22]sum+1 = 50042 [17:13:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 298 20.10.2024 17:13 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69453 ФПД: 221994018046050 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171323&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69453&fm=221994018046050&tin=02508201610067®Number=0000000000156251&sum=50000 [17:13:23]StoreToDocumentArchive [17:13:23]shift 193 fd 69453 [17:13:23]save to /storage/0193/doc_00069453 [17:13:23]save last doc name /storage/0193/doc_00069453 to /storage/kkm_last_doc_name [17:13:23]save OK [17:13:23]Clear old archive folders... [17:13:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:13:23]tlvbuf is 00CF1330 [17:13:23]SAM_PROTO_ClearQueue [17:13:23]wFMCommunicate request_size=4 [17:13:23]MH_SAM_APDU [17:13:23]CAPDU: 80 09 00 00 [17:13:23]Write to MH i2c: E2 08 00 3F 04 80 09 00 00 00 00 00 00 B5 [17:13:23]Write i2c OK [17:13:23]MH_I2C_Read... [17:13:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:23]Read from MH i2c: E2 [17:13:23]MH_I2C_Read... [17:13:23]Read from MH i2c: E2 03 00 [17:13:23]MH_I2C_Read... [17:13:23]Read from MH i2c: E2 03 00 3F 04 00 90 00 B7 [17:13:23]RAPDU: 90 00 [17:13:23]wFMCommunicate OK [17:13:23]SAM_PROTO_ClearQueue done [17:13:23]KKMCreateOFDPacket [17:13:23]OFDProtocolAddRootSTLVToBuf [17:13:23]FM_MakeSignedData [17:13:23]FM_MakeSignedData [17:13:23]SAM_PROTO_SignData [17:13:23]wFMCommunicate request_size=4 [17:13:23]MH_SAM_APDU [17:13:23]CAPDU: 80 0D 01 02 [17:13:23]Write to MH i2c: E2 08 00 40 04 80 0D 01 02 00 00 00 00 BD [17:13:23]Write i2c OK [17:13:23]MH_I2C_Read... [17:13:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:23]Read from MH i2c: E2 [17:13:23]MH_I2C_Read... [17:13:23]Read from MH i2c: E2 03 00 [17:13:23]MH_I2C_Read... [17:13:23]Read from MH i2c: E2 03 00 40 04 00 90 00 B8 [17:13:23]RAPDU: 90 00 [17:13:23]wFMCommunicate OK [17:13:23]wFMCommunicate request_size=255 [17:13:23]MH_SAM_APDU [17:13:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 33 3A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4D 0F 01 00 35 04 06 00 C9 [17:13:23]Write to MH i2c: E2 02 01 41 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 33 3A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4D 0F 01 00 35 04 06 00 C9 00 00 41 [17:13:23]Write i2c OK [17:13:23]MH_I2C_Read... [17:13:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:24]Read from MH i2c: E2 [17:13:24]MH_I2C_Read... [17:13:24]Read from MH i2c: E2 03 00 [17:13:24]MH_I2C_Read... [17:13:24]Read from MH i2c: E2 03 00 41 04 00 90 00 B9 [17:13:24]RAPDU: 90 00 [17:13:24]wFMCommunicate OK [17:13:24]wFMCommunicate request_size=10 [17:13:24]MH_SAM_APDU [17:13:24]CAPDU: 80 0D 02 02 05 E7 02 96 80 62 [17:13:24]Write to MH i2c: E2 0D 00 42 04 80 0D 02 02 05 00 E7 02 96 80 62 00 00 2B [17:13:24]Write i2c OK [17:13:24]MH_I2C_Read... [17:13:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:24]Read from MH i2c: E2 [17:13:24]MH_I2C_Read... [17:13:24]Read from MH i2c: E2 03 00 [17:13:24]MH_I2C_Read... [17:13:24]Read from MH i2c: E2 03 00 42 04 00 90 00 BA [17:13:24]RAPDU: 90 00 [17:13:24]wFMCommunicate OK [17:13:24]wFMCommunicate request_size=4 [17:13:24]MH_SAM_APDU [17:13:24]CAPDU: 80 0D 03 02 [17:13:24]Write to MH i2c: E2 08 00 43 04 80 0D 03 02 00 00 00 00 C2 [17:13:24]Write i2c OK [17:13:24]MH_I2C_Read... [17:13:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:24]Read from MH i2c: E2 [17:13:24]MH_I2C_Read... [17:13:24]Read from MH i2c: E2 0B 00 [17:13:24]MH_I2C_Read... [17:13:24]Read from MH i2c: E2 0B 00 43 04 00 41 24 3A B9 3A 1C F8 4D 90 00 B6 [17:13:24]RAPDU: 41 24 3A B9 3A 1C F8 4D 90 00 [17:13:24]wFMCommunicate OK [17:13:24]SAM_PROTO_SignData done [17:13:24]FM_MakeSignedData done [17:13:24]CreateOFDProtocolMessage [17:13:24]wFMCommunicate request_size=4 [17:13:24]MH_SAM_APDU [17:13:24]CAPDU: 80 11 00 00 [17:13:24]Write to MH i2c: E2 08 00 44 04 80 11 00 00 00 00 00 00 C2 [17:13:24]Write i2c OK [17:13:24]MH_I2C_Read... [17:13:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:24]Read from MH i2c: E2 [17:13:24]MH_I2C_Read... [17:13:24]Read from MH i2c: E2 17 00 [17:13:24]MH_I2C_Read... [17:13:24]Read from MH i2c: E2 17 00 44 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 14 [17:13:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:13:24]wFMCommunicate OK [17:13:24]CreateOFDProtocolMessage done [17:13:24]OFDSenderStorePacket 69453 [17:13:24]StoreOFDPacket docnum=69453 [17:13:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 89 11 07 01 E0 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 33 3A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4D 0F 01 00 35 04 06 00 C9 E7 02 96 80 62 41 24 3A B9 3A 1C F8 4D [17:13:24]CheckFolder [17:13:24]dirname=/storage/ofd_packets [17:13:24]CheckFolder done [17:13:24]ProducePacketName [17:13:24]name=ofd_packets/00069453 [17:13:24]NVStorageSaveData ofd_packets/00069453 [17:13:24]File name is /storage/ofd_packets/00069453 [17:13:24]Write 301 bytes [17:13:24]NVStorageSaveData done [17:13:24]OFDSenderStorePacket done [17:13:24]KKMCreateOFDPacket done [17:13:24]NVStorageSaveData kkm_last_timestamp [17:13:24]File name is /storage/kkm_last_timestamp [17:13:24]Write 4 bytes [17:13:24]NVStorageSaveData done [17:13:24]ExternCall_PrintAddStr [17:13:24]wPrintStart [17:13:24]Write to MH i2c: 01 00 00 45 04 49 [17:13:24]Write i2c OK [17:13:24]MH_I2C_Read... [17:13:24]Read from MH i2c: 01 [17:13:24]MH_I2C_Read... [17:13:24]Read from MH i2c: 01 07 00 [17:13:24]MH_I2C_Read... [17:13:24]Read from MH i2c: 01 07 00 45 04 00 00 00 00 00 FF 0F 5E [17:13:24]RasterBufferAndPrint [17:13:24]line Счет N : (1)2885183 [17:13:24]line ИНН: 02508201610067 [17:13:24]line Контрольно-Кассовый Чек [17:13:24]line ПРОДАЖА [17:13:24]line ТРК (МРК, ГНК) : 42 [17:13:24]line Товар: 2710124130 [17:13:24]line Аи-92-К-5 [17:13:24]line 7.480 * 66.90 [17:13:24]line = 500.41 [17:13:24]line НДС 12% НСП 1% [17:13:24]line > о реализуемом товаре [17:13:24]line ОКРУГЛЕНИЕ: -0.41 [17:13:24]line ИТОГО: 500.00 [17:13:24]line Внесено: 500.00 [17:13:24]line СДАЧА: 0.00 [17:13:24]line НСП 1% : 4.43 [17:13:24]line НДС 12% : 53.14 [17:13:24]line Наличными: 500.00 [17:13:24]line Безнал.: 0.00 [17:13:24]line Место: АЗС № 85 "Партнер Нефть" [17:13:24]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:13:24]line СНО: Общий режим [17:13:24]line Чек 298 20.10.2024 17:13 [17:13:24]line Смена: 193 ФФД: 1.0 [17:13:24]line ЗНМ: 0300000167 [17:13:24]line РНМ: 0000000000156251 [17:13:24]line Версия ККМ: v1.0 [17:13:24]line ФМ: 0000000000963346 [17:13:24]line ФД: 69453 [17:13:24]line ФПД: 221994018046050 [17:13:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171323&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69453&fm=221994018046050&tin=02508201610067®Number=0000000000156251&sum=50000 [17:13:24]OFD Sender: Processing packet 69453 [packets to send 18, broken 17] [17:13:24]ProducePacketName [17:13:24]name=ofd_packets/00069453 [17:13:24]OFD Sender: To server: pG, [17:13:24]CommunicateWithHost lk.salyk.kg:30040 [17:13:24]ConnectInit lk.salyk.kg [17:13:24]written 0, free lines is 4095 [17:13:24]Connected sock=9 [17:13:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 89 11 07 01 E0 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 33 3A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4D 0F 01 00 35 04 06 00 C9 E7 02 96 80 62 41 24 3A B9 3A 1C F8 4D [17:13:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 08 48 47 00 DF 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4D 0F 01 00 F4 03 04 00 D9 E3 14 67 B6 04 01 00 00 A2 06 63 0D 7C 5E D5 6C [17:13:24]CommunicateWithHost err = 0 [17:13:24]CheckOFDResponse [17:13:24]1017 (14) - 77093643461234 [17:13:24]1041 (16) - 0000000000963346 [17:13:24]1040 (4) - 69453 [17:13:24]1012 (4) - 20.10.2024 11:04 [17:13:24]1206 (1) - 0 [17:13:24]OFD Sender: Remove packet 69453 [17:13:24]ProducePacketName [17:13:24]name=ofd_packets/00069453 [17:13:24]NVStorageDeleteData [17:13:25]Write to MH i2c: 01 00 00 70 04 74 [17:13:25]Write i2c OK [17:13:25]MH_I2C_Read... [17:13:25]Read from MH i2c: 01 [17:13:25]MH_I2C_Read... [17:13:25]Read from MH i2c: 01 07 00 [17:13:25]MH_I2C_Read... [17:13:25]Read from MH i2c: 01 07 00 70 04 00 00 00 00 00 F8 0C 7F [17:13:25]RasterBufferAndPrint [17:13:25]line [17:13:25]line [17:13:25]line [17:13:25]line [17:13:25]line [17:13:25]written 0, free lines is 3326 [17:13:25]MH_Cut [17:13:25]Write to MH i2c: D1 01 00 77 04 01 4D [17:13:25]Write i2c OK [17:13:25]MH_I2C_Read... [17:13:25]Read from MH i2c: D1 [17:13:25]MH_I2C_Read... [17:13:25]Read from MH i2c: D1 01 00 [17:13:25]MH_I2C_Read... [17:13:25]Read from MH i2c: D1 01 00 77 04 00 4C [17:13:25]Write to MH i2c: 01 00 00 78 04 7C [17:13:25]Write i2c OK [17:13:25]MH_I2C_Read... [17:13:25]OFD Sender: No OFD packet to send [17:13:25]*** Cut start [17:13:25]*** Partial cut [17:13:25]*** CUTSNS_PIN = 1 [17:13:25]*** CUTSNS_PIN = 0 [17:13:26]*** Brake cut motor [17:13:26]Read from MH i2c: 01 [17:13:26]MH_I2C_Read... [17:13:26]*** Stop cut motor [17:13:26]*** Cut end [17:13:26]Read from MH i2c: 01 07 00 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: 01 07 00 78 04 00 00 00 00 00 FF 0F 91 [17:13:26]process_action close_receipt done [17:13:26]requested_data is exist [17:13:26]produce_requested_data [17:13:26]requested_item fm.sn is exist - process it [17:13:26]wFMCommunicate request_size=4 [17:13:26]MH_SAM_APDU [17:13:26]CAPDU: 80 11 00 00 [17:13:26]Write to MH i2c: E2 08 00 79 04 80 11 00 00 00 00 00 00 F7 [17:13:26]Write i2c OK [17:13:26]MH_I2C_Read... [17:13:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:26]Read from MH i2c: E2 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 17 00 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 17 00 79 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 49 [17:13:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:13:26]wFMCommunicate OK [17:13:26]requested_item fd.num is exist - process it [17:13:26]SAM_PROTO_GetFieldsCounters [17:13:26]wFMCommunicate request_size=4 [17:13:26]MH_SAM_APDU [17:13:26]CAPDU: 80 13 00 00 [17:13:26]Write to MH i2c: E2 08 00 7A 04 80 13 00 00 00 00 00 00 FA [17:13:26]Write i2c OK [17:13:26]MH_I2C_Read... [17:13:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:26]Read from MH i2c: E2 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 62 00 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 62 00 7A 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4D 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 B4 [17:13:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4D 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:13:26]wFMCommunicate OK [17:13:26]SAM_PROTO_GetFieldsCounters done [17:13:26]requested_item shift.num is exist - process it [17:13:26]requested_item shift.opened is exist - process it [17:13:26]req_shift_opened [17:13:26]FM_GetShiftState [17:13:26]SAM_PROTO_GetShiftState [17:13:26]wFMCommunicate request_size=4 [17:13:26]MH_SAM_APDU [17:13:26]CAPDU: 80 13 01 00 [17:13:26]Write to MH i2c: E2 08 00 7B 04 80 13 01 00 00 00 00 00 FC [17:13:26]Write i2c OK [17:13:26]MH_I2C_Read... [17:13:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:26]Read from MH i2c: E2 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 0E 00 [17:13:26]MH_I2C_Read... [17:13:26]Read from MH i2c: E2 0E 00 7B 04 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 02 [17:13:26]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:13:26]wFMCommunicate OK [17:13:26]SAM_PROTO_GetShiftState done [17:13:26]FM_GetShiftState done [17:13:26]req_shift_opened done [17:13:26]requested_item shift.open_date is exist - process it [17:13:26]req_shift_open_date [17:13:26]req_shift_open_date done [17:13:26]produce_requested_data done [17:13:26]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69453,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [17:13:26]process_action_free close_receipt [17:13:26]json_value_free [17:13:26]json_value_free done [17:13:26]process_json_proto returns [17:13:26]Send response to host [17:13:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69453,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [17:13:26]free response buf [17:13:26]execute_script done [17:13:26]execute_script returns [17:13:26]free content buf [17:13:26]Sock 10.Close socket [17:13:26]Sock 10.Thread stoped [17:13:30]OFD Sender: No OFD packet to send [17:13:35]OFD Sender: No OFD packet to send [17:13:40]OFD Sender: No OFD packet to send [17:13:45]OFD Sender: No OFD packet to send [17:13:50]OFD Sender: No OFD packet to send [17:13:55]OFD Sender: No OFD packet to send [17:14:00]OFD Sender: No OFD packet to send [17:14:05]OFD Sender: No OFD packet to send [17:14:10]OFD Sender: No OFD packet to send [17:14:15]OFD Sender: No OFD packet to send [17:14:20]OFD Sender: No OFD packet to send [17:14:24]accept exits with 8 [17:14:24]New connection [17:14:24]New thread 3067096420 created [17:14:24]Thread 3067239780 joined [17:14:24]Waiting for new connection... [17:14:24] Sock 8.Parse request [17:14:24]Sock 8.Check first char [17:14:24]Sock 8.First char is OK [17:14:24]request: POST /json_proto HTTP/1.0 [17:14:24]Method: POST [17:14:24]URL: /json_proto [17:14:24]Method is POST - this is cgi request [17:14:24]url: /json_proto [17:14:24]query_string will be loaded in cgi processing [17:14:24]execute_cgi json_proto POST (null) [17:14:24]execute_cgi path=json_proto method=POST [17:14:24]POST find Content-Length [17:14:24]Host: 172.17.50.3:8080 [17:14:24]Content-Length: 683 [17:14:24]Content-Type: application/json [17:14:24] [17:14:24]POST finish read [17:14:24]Found Content-Length = 683 [17:14:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:24]execute_script... [17:14: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)2885184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:24]POST & json_proto [17:14:24]process_json_proto [17:14:24]json parsed OK: [17:14:24]protocol is kg_v1.0 [17:14:24]action value=close_receipt [17:14:24]process_action close_receipt [17:14:24]cmd_close_receipt [17:14:24]MH_GetDate [17:14:24]Write to MH i2c: F0 00 00 7C 04 6F [17:14:24]Write i2c OK [17:14:24]MH_I2C_Read... [17:14:24]Read from MH i2c: F0 [17:14:24]MH_I2C_Read... [17:14:24]Read from MH i2c: F0 09 00 [17:14:24]MH_I2C_Read... [17:14:24]Read from MH i2c: F0 09 00 7C 04 00 70 3A 15 67 6B 98 1E 66 25 [17:14:24]GetLastDocTimeStamp 1729444403 [17:14:24]current date 1729444464 [17:14:24]FM_GetShiftState [17:14:24]SAM_PROTO_GetShiftState [17:14:24]wFMCommunicate request_size=4 [17:14:24]MH_SAM_APDU [17:14:24]CAPDU: 80 13 01 00 [17:14:24]Write to MH i2c: E2 08 00 7D 04 80 13 01 00 00 00 00 00 FE [17:14:24]Write i2c OK [17:14:24]MH_I2C_Read... [17:14:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:24]Read from MH i2c: E2 [17:14:24]MH_I2C_Read... [17:14:24]Read from MH i2c: E2 0E 00 [17:14:24]MH_I2C_Read... [17:14:24]Read from MH i2c: E2 0E 00 7D 04 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 04 [17:14:24]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:14:24]wFMCommunicate OK [17:14:24]SAM_PROTO_GetShiftState done [17:14:24]FM_GetShiftState done [17:14:24]opened in 1729383220 [17:14:24]opened+sec_in_day 1729469620 [17:14:24]quantity*price = 100015 [17:14:24]sum+1 = 100017 [17:14:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 299 20.10.2024 17:14 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69454 ФПД: 17259281486556 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171424&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69454&fm=17259281486556&tin=02508201610067®Number=0000000000156251&sum=100000 [17:14:25]StoreToDocumentArchive [17:14:25]shift 193 fd 69454 [17:14:25]save to /storage/0193/doc_00069454 [17:14:25]save last doc name /storage/0193/doc_00069454 to /storage/kkm_last_doc_name [17:14:25]save OK [17:14:25]Clear old archive folders... [17:14:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:14:25]tlvbuf is 00CEAFB0 [17:14:25]SAM_PROTO_ClearQueue [17:14:25]wFMCommunicate request_size=4 [17:14:25]MH_SAM_APDU [17:14:25]CAPDU: 80 09 00 00 [17:14:25]Write to MH i2c: E2 08 00 8A 04 80 09 00 00 00 00 00 00 00 [17:14:25]Write i2c OK [17:14:25]MH_I2C_Read... [17:14:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:14:25]Read from MH i2c: E2 [17:14:25]MH_I2C_Read... [17:14:25]Read from MH i2c: E2 03 00 [17:14:25]MH_I2C_Read... [17:14:25]Read from MH i2c: E2 03 00 8A 04 00 90 00 02 [17:14:25]RAPDU: 90 00 [17:14:25]wFMCommunicate OK [17:14:25]SAM_PROTO_ClearQueue done [17:14:25]KKMCreateOFDPacket [17:14:25]OFDProtocolAddRootSTLVToBuf [17:14:25]FM_MakeSignedData [17:14:25]FM_MakeSignedData [17:14:25]SAM_PROTO_SignData [17:14:25]wFMCommunicate request_size=4 [17:14:25]MH_SAM_APDU [17:14:25]CAPDU: 80 0D 01 02 [17:14:25]Write to MH i2c: E2 08 00 8B 04 80 0D 01 02 00 00 00 00 08 [17:14:25]Write i2c OK [17:14:25]MH_I2C_Read... [17:14:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:14:25]Read from MH i2c: E2 [17:14:25]MH_I2C_Read... [17:14:25]Read from MH i2c: E2 03 00 [17:14:25]MH_I2C_Read... [17:14:25]Read from MH i2c: E2 03 00 8B 04 00 90 00 03 [17:14:25]RAPDU: 90 00 [17:14:25]wFMCommunicate OK [17:14:25]wFMCommunicate request_size=255 [17:14:25]MH_SAM_APDU [17:14:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 70 3A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4E 0F 01 00 35 04 06 00 0F [17:14:25]Write to MH i2c: E2 02 01 8C 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 70 3A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4E 0F 01 00 35 04 06 00 0F 00 00 0B [17:14:25]Write i2c OK [17:14:25]MH_I2C_Read... [17:14:25]OFD Sender: No OFD packet to send [17:14:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:25]Read from MH i2c: E2 [17:14:25]MH_I2C_Read... [17:14:25]Read from MH i2c: E2 03 00 [17:14:25]MH_I2C_Read... [17:14:25]Read from MH i2c: E2 03 00 8C 04 00 90 00 04 [17:14:25]RAPDU: 90 00 [17:14:25]wFMCommunicate OK [17:14:25]wFMCommunicate request_size=10 [17:14:25]MH_SAM_APDU [17:14:25]CAPDU: 80 0D 02 02 05 B2 7D 57 92 DC [17:14:25]Write to MH i2c: E2 0D 00 8D 04 80 0D 02 02 05 00 B2 7D 57 92 DC 00 00 09 [17:14:25]Write i2c OK [17:14:25]MH_I2C_Read... [17:14:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:25]Read from MH i2c: E2 [17:14:25]MH_I2C_Read... [17:14:25]Read from MH i2c: E2 03 00 [17:14:25]MH_I2C_Read... [17:14:25]Read from MH i2c: E2 03 00 8D 04 00 90 00 05 [17:14:25]RAPDU: 90 00 [17:14:25]wFMCommunicate OK [17:14:25]wFMCommunicate request_size=4 [17:14:25]MH_SAM_APDU [17:14:25]CAPDU: 80 0D 03 02 [17:14:25]Write to MH i2c: E2 08 00 8E 04 80 0D 03 02 00 00 00 00 0D [17:14:25]Write i2c OK [17:14:25]MH_I2C_Read... [17:14:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:14:25]Read from MH i2c: E2 [17:14:25]MH_I2C_Read... [17:14:25]Read from MH i2c: E2 0B 00 [17:14:25]MH_I2C_Read... [17:14:25]Read from MH i2c: E2 0B 00 8E 04 00 7A 8C 75 23 A5 B0 0A 62 90 00 6D [17:14:25]RAPDU: 7A 8C 75 23 A5 B0 0A 62 90 00 [17:14:25]wFMCommunicate OK [17:14:25]SAM_PROTO_SignData done [17:14:25]FM_MakeSignedData done [17:14:25]CreateOFDProtocolMessage [17:14:25]wFMCommunicate request_size=4 [17:14:25]MH_SAM_APDU [17:14:25]CAPDU: 80 11 00 00 [17:14:25]Write to MH i2c: E2 08 00 8F 04 80 11 00 00 00 00 00 00 0D [17:14:25]Write i2c OK [17:14:25]MH_I2C_Read... [17:14:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:25]Read from MH i2c: E2 [17:14:25]MH_I2C_Read... [17:14:25]Read from MH i2c: E2 17 00 [17:14:25]MH_I2C_Read... [17:14:25]Read from MH i2c: E2 17 00 8F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5F [17:14:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:14:25]wFMCommunicate OK [17:14:25]CreateOFDProtocolMessage done [17:14:25]OFDSenderStorePacket 69454 [17:14:25]StoreOFDPacket docnum=69454 [17:14:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 4E A8 07 01 25 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 70 3A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4E 0F 01 00 35 04 06 00 0F B2 7D 57 92 DC 7A 8C 75 23 A5 B0 0A 62 [17:14:25]CheckFolder [17:14:25]dirname=/storage/ofd_packets [17:14:25]CheckFolder done [17:14:25]ProducePacketName [17:14:25]name=ofd_packets/00069454 [17:14:25]NVStorageSaveData ofd_packets/00069454 [17:14:25]File name is /storage/ofd_packets/00069454 [17:14:25]Write 301 bytes [17:14:25]NVStorageSaveData done [17:14:25]OFDSenderStorePacket done [17:14:25]KKMCreateOFDPacket done [17:14:25]NVStorageSaveData kkm_last_timestamp [17:14:25]File name is /storage/kkm_last_timestamp [17:14:25]Write 4 bytes [17:14:25]NVStorageSaveData done [17:14:25]ExternCall_PrintAddStr [17:14:25]wPrintStart [17:14:25]Write to MH i2c: 01 00 00 90 04 94 [17:14:25]Write i2c OK [17:14:25]MH_I2C_Read... [17:14:25]Read from MH i2c: 01 [17:14:25]MH_I2C_Read... [17:14:25]Read from MH i2c: 01 07 00 [17:14:25]MH_I2C_Read... [17:14:25]Read from MH i2c: 01 07 00 90 04 00 00 00 00 00 FF 0F A9 [17:14:25]RasterBufferAndPrint [17:14:25]line Счет N : (1)2885184 [17:14:25]line ИНН: 02508201610067 [17:14:25]line Контрольно-Кассовый Чек [17:14:25]line ПРОДАЖА [17:14:25]line ТРК (МРК, ГНК) : 32 [17:14:25]line Товар: 2710124130 [17:14:25]line Аи-92-К-5 [17:14:25]line 14.950 * 66.90 [17:14:25]line = 1000.16 [17:14:25]line НДС 12% НСП 1% [17:14:25]line > о реализуемом товаре [17:14:25]line ОКРУГЛЕНИЕ: -0.16 [17:14:25]line ИТОГО: 1000.00 [17:14:25]line Внесено: 1000.00 [17:14:25]line СДАЧА: 0.00 [17:14:25]line НСП 1% : 8.85 [17:14:25]line НДС 12% : 106.21 [17:14:25]line Наличными: 1000.00 [17:14:25]line Безнал.: 0.00 [17:14:25]line Место: АЗС № 85 "Партнер Нефть" [17:14:25]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:14:25]line СНО: Общий режим [17:14:25]line Чек 299 20.10.2024 17:14 [17:14:25]line Смена: 193 ФФД: 1.0 [17:14:25]line ЗНМ: 0300000167 [17:14:25]line РНМ: 0000000000156251 [17:14:25]line Версия ККМ: v1.0 [17:14:25]line ФМ: 0000000000963346 [17:14:25]line ФД: 69454 [17:14:25]line ФПД: 17259281486556 [17:14:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171424&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69454&fm=17259281486556&tin=02508201610067®Number=0000000000156251&sum=100000 [17:14:26]OFD Sender: Processing packet 69454 [packets to send 18, broken 17] [17:14:26]ProducePacketName [17:14:26]name=ofd_packets/00069454 [17:14:26]OFD Sender: To server: pG, [17:14:26]CommunicateWithHost lk.salyk.kg:30040 [17:14:26]ConnectInit lk.salyk.kg [17:14:26]written 0, free lines is 4095 [17:14:26]Connected sock=10 [17:14:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 4E A8 07 01 25 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 70 3A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4E 0F 01 00 35 04 06 00 0F B2 7D 57 92 DC 7A 8C 75 23 A5 B0 0A 62 [17:14:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 07 CC 47 00 85 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4E 0F 01 00 F4 03 04 00 16 E4 14 67 B6 04 01 00 00 D0 93 5C 11 F0 4B 54 CC [17:14:26]CommunicateWithHost err = 0 [17:14:26]CheckOFDResponse [17:14:26]1017 (14) - 77093643461234 [17:14:26]1041 (16) - 0000000000963346 [17:14:26]1040 (4) - 69454 [17:14:26]1012 (4) - 20.10.2024 11:05 [17:14:26]1206 (1) - 0 [17:14:26]OFD Sender: Remove packet 69454 [17:14:26]ProducePacketName [17:14:26]name=ofd_packets/00069454 [17:14:26]NVStorageDeleteData [17:14:26]Write to MH i2c: 01 00 00 BB 04 BF [17:14:26]Write i2c OK [17:14:26]MH_I2C_Read... [17:14:26]Read from MH i2c: 01 [17:14:26]MH_I2C_Read... [17:14:26]Read from MH i2c: 01 07 00 [17:14:26]MH_I2C_Read... [17:14:26]Read from MH i2c: 01 07 00 BB 04 00 00 00 00 00 F3 0C C5 [17:14:26]RasterBufferAndPrint [17:14:26]line [17:14:26]line [17:14:26]line [17:14:26]line [17:14:26]line [17:14:26]written 0, free lines is 3321 [17:14:26]MH_Cut [17:14:26]Write to MH i2c: D1 01 00 C2 04 01 98 [17:14:26]Write i2c OK [17:14:26]MH_I2C_Read... [17:14:26]Read from MH i2c: D1 [17:14:26]MH_I2C_Read... [17:14:26]Read from MH i2c: D1 01 00 [17:14:26]MH_I2C_Read... [17:14:26]Read from MH i2c: D1 01 00 C2 04 00 97 [17:14:26]Write to MH i2c: 01 00 00 C3 04 C7 [17:14:26]Write i2c OK [17:14:26]MH_I2C_Read... [17:14:26]OFD Sender: No OFD packet to send [17:14:27]*** Cut start [17:14:27]*** Partial cut [17:14:27]*** CUTSNS_PIN = 1 [17:14:27]*** CUTSNS_PIN = 0 [17:14:27]*** Brake cut motor [17:14:27]Read from MH i2c: 01 [17:14:27]MH_I2C_Read... [17:14:27]*** Stop cut motor [17:14:27]*** Cut end [17:14:27]Read from MH i2c: 01 07 00 [17:14:27]MH_I2C_Read... [17:14:27]Read from MH i2c: 01 07 00 C3 04 00 00 00 00 00 FF 0F DC [17:14:27]process_action close_receipt done [17:14:27]requested_data is exist [17:14:27]produce_requested_data [17:14:27]requested_item fm.sn is exist - process it [17:14:27]wFMCommunicate request_size=4 [17:14:27]MH_SAM_APDU [17:14:27]CAPDU: 80 11 00 00 [17:14:27]Write to MH i2c: E2 08 00 C4 04 80 11 00 00 00 00 00 00 42 [17:14:27]Write i2c OK [17:14:27]MH_I2C_Read... [17:14:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:27]Read from MH i2c: E2 [17:14:27]MH_I2C_Read... [17:14:27]Read from MH i2c: E2 17 00 [17:14:27]MH_I2C_Read... [17:14:27]Read from MH i2c: E2 17 00 C4 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 94 [17:14:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:14:27]wFMCommunicate OK [17:14:27]requested_item fd.num is exist - process it [17:14:27]SAM_PROTO_GetFieldsCounters [17:14:27]wFMCommunicate request_size=4 [17:14:27]MH_SAM_APDU [17:14:27]CAPDU: 80 13 00 00 [17:14:27]Write to MH i2c: E2 08 00 C5 04 80 13 00 00 00 00 00 00 45 [17:14:27]Write i2c OK [17:14:27]MH_I2C_Read... [17:14:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:14:28]Read from MH i2c: E2 [17:14:28]MH_I2C_Read... [17:14:28]Read from MH i2c: E2 62 00 [17:14:28]MH_I2C_Read... [17:14:28]Read from MH i2c: E2 62 00 C5 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4E 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 03 [17:14:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4E 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:14:28]wFMCommunicate OK [17:14:28]SAM_PROTO_GetFieldsCounters done [17:14:28]requested_item shift.num is exist - process it [17:14:28]requested_item shift.opened is exist - process it [17:14:28]req_shift_opened [17:14:28]FM_GetShiftState [17:14:28]SAM_PROTO_GetShiftState [17:14:28]wFMCommunicate request_size=4 [17:14:28]MH_SAM_APDU [17:14:28]CAPDU: 80 13 01 00 [17:14:28]Write to MH i2c: E2 08 00 C6 04 80 13 01 00 00 00 00 00 47 [17:14:28]Write i2c OK [17:14:28]MH_I2C_Read... [17:14:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:28]Read from MH i2c: E2 [17:14:28]MH_I2C_Read... [17:14:28]Read from MH i2c: E2 0E 00 [17:14:28]MH_I2C_Read... [17:14:28]Read from MH i2c: E2 0E 00 C6 04 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 4D [17:14:28]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:14:28]wFMCommunicate OK [17:14:28]SAM_PROTO_GetShiftState done [17:14:28]FM_GetShiftState done [17:14:28]req_shift_opened done [17:14:28]requested_item shift.open_date is exist - process it [17:14:28]req_shift_open_date [17:14:28]req_shift_open_date done [17:14:28]produce_requested_data done [17:14:28]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69454,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [17:14:28]process_action_free close_receipt [17:14:28]json_value_free [17:14:28]json_value_free done [17:14:28]process_json_proto returns [17:14:28]Send response to host [17:14:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69454,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [17:14:28]free response buf [17:14:28]execute_script done [17:14:28]execute_script returns [17:14:28]free content buf [17:14:28]Sock 8.Close socket [17:14:28]Sock 8.Thread stoped [17:14:31]OFD Sender: No OFD packet to send [17:14:36]OFD Sender: No OFD packet to send [17:14:41]OFD Sender: No OFD packet to send [17:14:46]OFD Sender: No OFD packet to send [17:14:51]OFD Sender: No OFD packet to send [17:14:56]OFD Sender: No OFD packet to send [17:15:01]OFD Sender: No OFD packet to send [17:15:06]OFD Sender: No OFD packet to send [17:15:11]OFD Sender: No OFD packet to send [17:15:16]OFD Sender: No OFD packet to send [17:15:20]accept exits with 9 [17:15:20]New connection [17:15:20]New thread 3067239780 created [17:15:20]Thread 3067096420 joined [17:15:20]Waiting for new connection... [17:15:20] Sock 9.Parse request [17:15:20]Sock 9.Check first char [17:15:20]Sock 9.First char is OK [17:15:20]request: POST /json_proto HTTP/1.0 [17:15:20]Method: POST [17:15:20]URL: /json_proto [17:15:20]Method is POST - this is cgi request [17:15:20]url: /json_proto [17:15:20]query_string will be loaded in cgi processing [17:15:20]execute_cgi json_proto POST (null) [17:15:20]execute_cgi path=json_proto method=POST [17:15:20]POST find Content-Length [17:15:20]Host: 172.17.50.3:8080 [17:15:20]Content-Length: 680 [17:15:20]Content-Type: application/json [17:15:20] [17:15:20]POST finish read [17:15:20]Found Content-Length = 680 [17:15:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 23.430, "sum" : 1785.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1785.00, "total" : 1785.00, "payments": [ { "type": 0, "sum" : 1785.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:20]execute_script... [17:15:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 23.430, "sum" : 1785.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1785.00, "total" : 1785.00, "payments": [ { "type": 0, "sum" : 1785.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:20]POST & json_proto [17:15:20]process_json_proto [17:15:20]json parsed OK: [17:15:20]protocol is kg_v1.0 [17:15:20]action value=close_receipt [17:15:20]process_action close_receipt [17:15:20]cmd_close_receipt [17:15:20]MH_GetDate [17:15:20]Write to MH i2c: F0 00 00 C7 04 BA [17:15:20]Write i2c OK [17:15:20]MH_I2C_Read... [17:15:20]Read from MH i2c: F0 [17:15:20]MH_I2C_Read... [17:15:20]Read from MH i2c: F0 09 00 [17:15:20]MH_I2C_Read... [17:15:20]Read from MH i2c: F0 09 00 C7 04 00 A8 3A 15 67 6B 98 1E 66 A8 [17:15:20]GetLastDocTimeStamp 1729444464 [17:15:20]current date 1729444520 [17:15:20]FM_GetShiftState [17:15:20]SAM_PROTO_GetShiftState [17:15:20]wFMCommunicate request_size=4 [17:15:20]MH_SAM_APDU [17:15:20]CAPDU: 80 13 01 00 [17:15:20]Write to MH i2c: E2 08 00 C8 04 80 13 01 00 00 00 00 00 49 [17:15:20]Write i2c OK [17:15:20]MH_I2C_Read... [17:15:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:20]Read from MH i2c: E2 [17:15:20]MH_I2C_Read... [17:15:20]Read from MH i2c: E2 0E 00 [17:15:20]MH_I2C_Read... [17:15:20]Read from MH i2c: E2 0E 00 C8 04 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 4F [17:15:20]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:15:20]wFMCommunicate OK [17:15:20]SAM_PROTO_GetShiftState done [17:15:20]FM_GetShiftState done [17:15:20]opened in 1729383220 [17:15:20]opened+sec_in_day 1729469620 [17:15:20]quantity*price = 178536 [17:15:20]sum+1 = 178538 [17:15:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 1785.00 Внесено: 1785.00 СДАЧА: 0.00 НСП 1% : 15.80 НДС 12% : 189.60 Наличными: 1785.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 300 20.10.2024 17:15 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69455 ФПД: 98497337662404 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171520&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69455&fm=98497337662404&tin=02508201610067®Number=0000000000156251&sum=178500 [17:15:21]StoreToDocumentArchive [17:15:21]shift 193 fd 69455 [17:15:21]save to /storage/0193/doc_00069455 [17:15:21]save last doc name /storage/0193/doc_00069455 to /storage/kkm_last_doc_name [17:15:21]save OK [17:15:21]Clear old archive folders... [17:15:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:15:21]tlvbuf is 00CF2250 [17:15:21]SAM_PROTO_ClearQueue [17:15:21]wFMCommunicate request_size=4 [17:15:21]MH_SAM_APDU [17:15:21]CAPDU: 80 09 00 00 [17:15:21]Write to MH i2c: E2 08 00 D5 04 80 09 00 00 00 00 00 00 4B [17:15:21]Write i2c OK [17:15:21]MH_I2C_Read... [17:15:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:15:21]Read from MH i2c: E2 [17:15:21]MH_I2C_Read... [17:15:21]Read from MH i2c: E2 03 00 [17:15:21]MH_I2C_Read... [17:15:21]Read from MH i2c: E2 03 00 D5 04 00 90 00 4D [17:15:21]RAPDU: 90 00 [17:15:21]wFMCommunicate OK [17:15:21]SAM_PROTO_ClearQueue done [17:15:21]KKMCreateOFDPacket [17:15:21]OFDProtocolAddRootSTLVToBuf [17:15:21]FM_MakeSignedData [17:15:21]FM_MakeSignedData [17:15:21]SAM_PROTO_SignData [17:15:21]wFMCommunicate request_size=4 [17:15:21]MH_SAM_APDU [17:15:21]CAPDU: 80 0D 01 02 [17:15:21]Write to MH i2c: E2 08 00 D6 04 80 0D 01 02 00 00 00 00 53 [17:15:21]Write i2c OK [17:15:21]MH_I2C_Read... [17:15:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:15:21]Read from MH i2c: E2 [17:15:21]MH_I2C_Read... [17:15:21]Read from MH i2c: E2 03 00 [17:15:21]MH_I2C_Read... [17:15:21]Read from MH i2c: E2 03 00 D6 04 00 90 00 4E [17:15:21]RAPDU: 90 00 [17:15:21]wFMCommunicate OK [17:15:21]wFMCommunicate request_size=255 [17:15:21]MH_SAM_APDU [17:15: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 86 5B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 69 B9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 B9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 4A 00 00 00 00 07 04 06 00 44 B9 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 A8 3A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4F 0F 01 00 35 04 06 00 59 95 32 D2 [17:15:21]Write to MH i2c: E2 02 01 D7 04 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 86 5B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 69 B9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 B9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 4A 00 00 00 00 07 04 06 00 44 B9 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 A8 3A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4F 0F 01 00 35 04 06 00 59 95 32 D2 00 00 B7 [17:15:21]Write i2c OK [17:15:21]MH_I2C_Read... [17:15:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:21]Read from MH i2c: E2 [17:15:21]MH_I2C_Read... [17:15:21]Read from MH i2c: E2 03 00 [17:15:21]MH_I2C_Read... [17:15:21]Read from MH i2c: E2 03 00 D7 04 00 90 00 4F [17:15:21]RAPDU: 90 00 [17:15:21]wFMCommunicate OK [17:15:21]wFMCommunicate request_size=7 [17:15:21]MH_SAM_APDU [17:15:21]CAPDU: 80 0D 02 02 02 9B C4 [17:15:21]Write to MH i2c: E2 0A 00 D8 04 80 0D 02 02 02 00 9B C4 00 00 B9 [17:15:21]Write i2c OK [17:15:21]MH_I2C_Read... [17:15:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:21]Read from MH i2c: E2 [17:15:21]MH_I2C_Read... [17:15:21]Read from MH i2c: E2 03 00 [17:15:21]MH_I2C_Read... [17:15:21]Read from MH i2c: E2 03 00 D8 04 00 90 00 50 [17:15:21]RAPDU: 90 00 [17:15:21]wFMCommunicate OK [17:15:21]wFMCommunicate request_size=4 [17:15:21]MH_SAM_APDU [17:15:21]CAPDU: 80 0D 03 02 [17:15:21]Write to MH i2c: E2 08 00 D9 04 80 0D 03 02 00 00 00 00 58 [17:15:21]Write i2c OK [17:15:21]MH_I2C_Read... [17:15:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:15:21]Read from MH i2c: E2 [17:15:21]MH_I2C_Read... [17:15:21]Read from MH i2c: E2 0B 00 [17:15:21]MH_I2C_Read... [17:15:21]Read from MH i2c: E2 0B 00 D9 04 00 02 8B 63 97 32 AD 32 60 90 00 51 [17:15:21]RAPDU: 02 8B 63 97 32 AD 32 60 90 00 [17:15:21]wFMCommunicate OK [17:15:21]SAM_PROTO_SignData done [17:15:21]FM_MakeSignedData done [17:15:21]CreateOFDProtocolMessage [17:15:21]wFMCommunicate request_size=4 [17:15:21]MH_SAM_APDU [17:15:21]CAPDU: 80 11 00 00 [17:15:21]Write to MH i2c: E2 08 00 DA 04 80 11 00 00 00 00 00 00 58 [17:15:21]Write i2c OK [17:15:21]MH_I2C_Read... [17:15:21]OFD Sender: No OFD packet to send [17:15:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:21]Read from MH i2c: E2 [17:15:21]MH_I2C_Read... [17:15:21]Read from MH i2c: E2 17 00 [17:15:21]MH_I2C_Read... [17:15:21]Read from MH i2c: E2 17 00 DA 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AA [17:15:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:15:21]wFMCommunicate OK [17:15:21]CreateOFDProtocolMessage done [17:15:21]OFDSenderStorePacket 69455 [17:15:21]StoreOFDPacket docnum=69455 [17:15:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 68 8E 04 01 5E 98 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 86 5B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 69 B9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 B9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 4A 00 00 00 00 07 04 06 00 44 B9 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 A8 3A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4F 0F 01 00 35 04 06 00 59 95 32 D2 9B C4 02 8B 63 97 32 AD 32 60 [17:15:21]CheckFolder [17:15:21]dirname=/storage/ofd_packets [17:15:21]CheckFolder done [17:15:21]ProducePacketName [17:15:21]name=ofd_packets/00069455 [17:15:21]NVStorageSaveData ofd_packets/00069455 [17:15:21]File name is /storage/ofd_packets/00069455 [17:15:21]Write 298 bytes [17:15:21]NVStorageSaveData done [17:15:21]OFDSenderStorePacket done [17:15:21]KKMCreateOFDPacket done [17:15:21]NVStorageSaveData kkm_last_timestamp [17:15:21]File name is /storage/kkm_last_timestamp [17:15:21]Write 4 bytes [17:15:21]NVStorageSaveData done [17:15:21]ExternCall_PrintAddStr [17:15:21]wPrintStart [17:15:21]Write to MH i2c: 01 00 00 DB 04 DF [17:15:21]Write i2c OK [17:15:21]MH_I2C_Read... [17:15:21]Read from MH i2c: 01 [17:15:21]MH_I2C_Read... [17:15:21]Read from MH i2c: 01 07 00 [17:15:21]MH_I2C_Read... [17:15:21]Read from MH i2c: 01 07 00 DB 04 00 00 00 00 00 FF 0F F4 [17:15:21]RasterBufferAndPrint [17:15:21]line Счет N : (1)2885185 [17:15:21]line ИНН: 02508201610067 [17:15:21]line Контрольно-Кассовый Чек [17:15:21]line ПРОДАЖА [17:15:21]line ТРК (МРК, ГНК) : 51 [17:15:21]line Товар: 2710194210 [17:15:21]line ДТ-К-5 [17:15:21]line 23.430 * 76.20 [17:15:21]line = 1785.37 [17:15:21]line НДС 12% НСП 1% [17:15:21]line > о реализуемом товаре [17:15:21]line ОКРУГЛЕНИЕ: -0.37 [17:15:21]line ИТОГО: 1785.00 [17:15:21]line Внесено: 1785.00 [17:15:21]line СДАЧА: 0.00 [17:15:21]line НСП 1% : 15.80 [17:15:21]line НДС 12% : 189.60 [17:15:21]line Наличными: 1785.00 [17:15:21]line Безнал.: 0.00 [17:15:21]line Место: АЗС № 85 "Партнер Нефть" [17:15:21]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:15:21]line СНО: Общий режим [17:15:21]line Чек 300 20.10.2024 17:15 [17:15:21]line Смена: 193 ФФД: 1.0 [17:15:21]line ЗНМ: 0300000167 [17:15:21]line РНМ: 0000000000156251 [17:15:21]line Версия ККМ: v1.0 [17:15:21]line ФМ: 0000000000963346 [17:15:21]line ФД: 69455 [17:15:21]line ФПД: 98497337662404 [17:15:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171520&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69455&fm=98497337662404&tin=02508201610067®Number=0000000000156251&sum=178500 [17:15:21]written 0, free lines is 4095 [17:15:22]OFD Sender: Processing packet 69455 [packets to send 18, broken 17] [17:15:22]ProducePacketName [17:15:22]name=ofd_packets/00069455 [17:15:22]OFD Sender: To server: pG, [17:15:22]CommunicateWithHost lk.salyk.kg:30040 [17:15:22]ConnectInit lk.salyk.kg [17:15:22]Connected sock=10 [17:15:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 68 8E 04 01 5E 98 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 86 5B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 69 B9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 B9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 4A 00 00 00 00 07 04 06 00 44 B9 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 A8 3A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4F 0F 01 00 35 04 06 00 59 95 32 D2 9B C4 02 8B 63 97 32 AD 32 60 [17:15:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 B9 6A 47 00 41 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 4F 0F 01 00 F4 03 04 00 4E E4 14 67 B6 04 01 00 00 33 77 0F CB 42 9D F7 D9 [17:15:22]CommunicateWithHost err = 0 [17:15:22]CheckOFDResponse [17:15:22]1017 (14) - 77093643461234 [17:15:22]1041 (16) - 0000000000963346 [17:15:22]1040 (4) - 69455 [17:15:22]1012 (4) - 20.10.2024 11:06 [17:15:22]1206 (1) - 0 [17:15:22]OFD Sender: Remove packet 69455 [17:15:22]ProducePacketName [17:15:22]name=ofd_packets/00069455 [17:15:22]NVStorageDeleteData [17:15:22]Write to MH i2c: 01 00 00 06 05 0B [17:15:22]Write i2c OK [17:15:22]MH_I2C_Read... [17:15:22]Read from MH i2c: 01 [17:15:22]MH_I2C_Read... [17:15:22]Read from MH i2c: 01 07 00 [17:15:22]MH_I2C_Read... [17:15:22]Read from MH i2c: 01 07 00 06 05 00 00 00 00 00 F5 0C 13 [17:15:22]RasterBufferAndPrint [17:15:22]line [17:15:22]line [17:15:22]line [17:15:22]line [17:15:22]line [17:15:22]written 0, free lines is 3327 [17:15:22]MH_Cut [17:15:22]Write to MH i2c: D1 01 00 0D 05 01 E4 [17:15:22]Write i2c OK [17:15:22]MH_I2C_Read... [17:15:22]Read from MH i2c: D1 [17:15:22]MH_I2C_Read... [17:15:22]Read from MH i2c: D1 01 00 [17:15:22]MH_I2C_Read... [17:15:22]Read from MH i2c: D1 01 00 0D 05 00 E3 [17:15:22]Write to MH i2c: 01 00 00 0E 05 13 [17:15:22]Write i2c OK [17:15:22]MH_I2C_Read... [17:15:22]OFD Sender: No OFD packet to send [17:15:23]*** Cut start [17:15:23]*** Partial cut [17:15:23]*** CUTSNS_PIN = 1 [17:15:23]*** CUTSNS_PIN = 0 [17:15:23]*** Brake cut motor [17:15:23]Read from MH i2c: 01 [17:15:23]MH_I2C_Read... [17:15:23]*** Stop cut motor [17:15:23]*** Cut end [17:15:23]Read from MH i2c: 01 07 00 [17:15:23]MH_I2C_Read... [17:15:23]Read from MH i2c: 01 07 00 0E 05 00 00 00 00 00 FF 0F 28 [17:15:23]process_action close_receipt done [17:15:23]requested_data is exist [17:15:23]produce_requested_data [17:15:23]requested_item fm.sn is exist - process it [17:15:23]wFMCommunicate request_size=4 [17:15:23]MH_SAM_APDU [17:15:23]CAPDU: 80 11 00 00 [17:15:23]Write to MH i2c: E2 08 00 0F 05 80 11 00 00 00 00 00 00 8E [17:15:23]Write i2c OK [17:15:23]MH_I2C_Read... [17:15:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:23]Read from MH i2c: E2 [17:15:23]MH_I2C_Read... [17:15:23]Read from MH i2c: E2 17 00 [17:15:23]MH_I2C_Read... [17:15:23]Read from MH i2c: E2 17 00 0F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E0 [17:15:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:15:23]wFMCommunicate OK [17:15:23]requested_item fd.num is exist - process it [17:15:23]SAM_PROTO_GetFieldsCounters [17:15:23]wFMCommunicate request_size=4 [17:15:23]MH_SAM_APDU [17:15:23]CAPDU: 80 13 00 00 [17:15:23]Write to MH i2c: E2 08 00 10 05 80 13 00 00 00 00 00 00 91 [17:15:23]Write i2c OK [17:15:23]MH_I2C_Read... [17:15:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:15:23]Read from MH i2c: E2 [17:15:23]MH_I2C_Read... [17:15:23]Read from MH i2c: E2 62 00 [17:15:23]MH_I2C_Read... [17:15:23]Read from MH i2c: E2 62 00 10 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4F 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 53 [17:15:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 4F 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:15:23]wFMCommunicate OK [17:15:23]SAM_PROTO_GetFieldsCounters done [17:15:23]requested_item shift.num is exist - process it [17:15:23]requested_item shift.opened is exist - process it [17:15:23]req_shift_opened [17:15:23]FM_GetShiftState [17:15:23]SAM_PROTO_GetShiftState [17:15:23]wFMCommunicate request_size=4 [17:15:23]MH_SAM_APDU [17:15:23]CAPDU: 80 13 01 00 [17:15:23]Write to MH i2c: E2 08 00 11 05 80 13 01 00 00 00 00 00 93 [17:15:23]Write i2c OK [17:15:23]MH_I2C_Read... [17:15:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:23]Read from MH i2c: E2 [17:15:23]MH_I2C_Read... [17:15:23]Read from MH i2c: E2 0E 00 [17:15:23]MH_I2C_Read... [17:15:23]Read from MH i2c: E2 0E 00 11 05 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 99 [17:15:23]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:15:23]wFMCommunicate OK [17:15:23]SAM_PROTO_GetShiftState done [17:15:23]FM_GetShiftState done [17:15:23]req_shift_opened done [17:15:23]requested_item shift.open_date is exist - process it [17:15:23]req_shift_open_date [17:15:23]req_shift_open_date done [17:15:23]produce_requested_data done [17:15:23]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69455,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [17:15:23]process_action_free close_receipt [17:15:23]json_value_free [17:15:23]json_value_free done [17:15:23]process_json_proto returns [17:15:23]Send response to host [17:15:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69455,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [17:15:23]free response buf [17:15:23]execute_script done [17:15:23]execute_script returns [17:15:23]free content buf [17:15:23]Sock 9.Close socket [17:15:23]Sock 9.Thread stoped [17:15:27]OFD Sender: No OFD packet to send [17:15:32]OFD Sender: No OFD packet to send [17:15:37]OFD Sender: No OFD packet to send [17:15:42]OFD Sender: No OFD packet to send [17:15:47]OFD Sender: No OFD packet to send [17:15:52]OFD Sender: No OFD packet to send [17:15:57]OFD Sender: No OFD packet to send [17:16:02]OFD Sender: No OFD packet to send [17:16:07]OFD Sender: No OFD packet to send [17:16:12]OFD Sender: No OFD packet to send [17:16:17]OFD Sender: No OFD packet to send [17:16:22]OFD Sender: No OFD packet to send [17:16:27]OFD Sender: No OFD packet to send [17:16:32]OFD Sender: No OFD packet to send [17:16:37]OFD Sender: No OFD packet to send [17:16:42]OFD Sender: No OFD packet to send [17:16:47]OFD Sender: No OFD packet to send [17:16:52]OFD Sender: No OFD packet to send [17:16:57]OFD Sender: No OFD packet to send [17:17:02]OFD Sender: No OFD packet to send [17:17:07]OFD Sender: No OFD packet to send [17:17:12]OFD Sender: No OFD packet to send [17:17:17]OFD Sender: No OFD packet to send [17:17:22]OFD Sender: No OFD packet to send [17:17:27]OFD Sender: No OFD packet to send [17:17:32]OFD Sender: No OFD packet to send [17:17:37]OFD Sender: No OFD packet to send [17:17:42]OFD Sender: No OFD packet to send [17:17:47]OFD Sender: No OFD packet to send [17:17:52]OFD Sender: No OFD packet to send [17:17:57]OFD Sender: No OFD packet to send [17:18:03]OFD Sender: No OFD packet to send [17:18:08]OFD Sender: No OFD packet to send [17:18:13]OFD Sender: No OFD packet to send [17:18:18]OFD Sender: No OFD packet to send [17:18:23]OFD Sender: No OFD packet to send [17:18:28]OFD Sender: No OFD packet to send [17:18:33]OFD Sender: No OFD packet to send [17:18:38]OFD Sender: No OFD packet to send [17:18:43]OFD Sender: No OFD packet to send [17:18:48]OFD Sender: No OFD packet to send [17:18:53]accept exits with 8 [17:18:53]New connection [17:18:53]New thread 3067096420 created [17:18:53]Thread 3067239780 joined [17:18:53]Waiting for new connection... [17:18:53] Sock 8.Parse request [17:18:53]Sock 8.Check first char [17:18:53]Sock 8.First char is OK [17:18:53]request: POST /json_proto HTTP/1.0 [17:18:53]Method: POST [17:18:53]URL: /json_proto [17:18:53]Method is POST - this is cgi request [17:18:53]url: /json_proto [17:18:53]query_string will be loaded in cgi processing [17:18:53]execute_cgi json_proto POST (null) [17:18:53]execute_cgi path=json_proto method=POST [17:18:53]POST find Content-Length [17:18:53]Host: 172.17.50.3:8080 [17:18:53]Content-Length: 689 [17:18:53]Content-Type: application/json [17:18:53] [17:18:53]POST finish read [17:18:53]Found Content-Length = 689 [17:18:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:53]execute_script... [17:18: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)2885186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:53]POST & json_proto [17:18:53]process_json_proto [17:18:53]json parsed OK: [17:18:53]protocol is kg_v1.0 [17:18:53]action value=close_receipt [17:18:53]process_action close_receipt [17:18:53]cmd_close_receipt [17:18:53]MH_GetDate [17:18:53]Write to MH i2c: F0 00 00 12 05 06 [17:18:53]Write i2c OK [17:18:53]MH_I2C_Read... [17:18:53]Read from MH i2c: F0 [17:18:53]MH_I2C_Read... [17:18:53]Read from MH i2c: F0 09 00 [17:18:53]MH_I2C_Read... [17:18:53]Read from MH i2c: F0 09 00 12 05 00 7D 3B 15 67 6B 98 1E 66 CA [17:18:53]GetLastDocTimeStamp 1729444520 [17:18:53]current date 1729444733 [17:18:53]FM_GetShiftState [17:18:53]SAM_PROTO_GetShiftState [17:18:53]wFMCommunicate request_size=4 [17:18:53]MH_SAM_APDU [17:18:53]CAPDU: 80 13 01 00 [17:18:53]Write to MH i2c: E2 08 00 13 05 80 13 01 00 00 00 00 00 95 [17:18:53]OFD Sender: No OFD packet to send [17:18:53]Write i2c OK [17:18:53]MH_I2C_Read... [17:18:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:53]Read from MH i2c: E2 [17:18:53]MH_I2C_Read... [17:18:53]Read from MH i2c: E2 0E 00 [17:18:53]MH_I2C_Read... [17:18:53]Read from MH i2c: E2 0E 00 13 05 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 9B [17:18:53]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:18:53]wFMCommunicate OK [17:18:53]SAM_PROTO_GetShiftState done [17:18:53]FM_GetShiftState done [17:18:53]opened in 1729383220 [17:18:53]opened+sec_in_day 1729469620 [17:18:53]quantity*price = 100051 [17:18:53]sum+1 = 100052 [17:18:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 301 20.10.2024 17:18 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69456 ФПД: 9229124072223 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171853&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69456&fm=9229124072223&tin=02508201610067®Number=0000000000156251&sum=100000 [17:18:54]StoreToDocumentArchive [17:18:54]shift 193 fd 69456 [17:18:54]save to /storage/0193/doc_00069456 [17:18:54]save last doc name /storage/0193/doc_00069456 to /storage/kkm_last_doc_name [17:18:54]save OK [17:18:54]Clear old archive folders... [17:18:54]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:18:54]tlvbuf is 00CF3830 [17:18:54]SAM_PROTO_ClearQueue [17:18:54]wFMCommunicate request_size=4 [17:18:54]MH_SAM_APDU [17:18:54]CAPDU: 80 09 00 00 [17:18:54]Write to MH i2c: E2 08 00 20 05 80 09 00 00 00 00 00 00 97 [17:18:54]Write i2c OK [17:18:54]MH_I2C_Read... [17:18:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:18:54]Read from MH i2c: E2 [17:18:54]MH_I2C_Read... [17:18:54]Read from MH i2c: E2 03 00 [17:18:54]MH_I2C_Read... [17:18:54]Read from MH i2c: E2 03 00 20 05 00 90 00 99 [17:18:54]RAPDU: 90 00 [17:18:54]wFMCommunicate OK [17:18:54]SAM_PROTO_ClearQueue done [17:18:54]KKMCreateOFDPacket [17:18:54]OFDProtocolAddRootSTLVToBuf [17:18:54]FM_MakeSignedData [17:18:54]FM_MakeSignedData [17:18:54]SAM_PROTO_SignData [17:18:54]wFMCommunicate request_size=4 [17:18:54]MH_SAM_APDU [17:18:54]CAPDU: 80 0D 01 02 [17:18:54]Write to MH i2c: E2 08 00 21 05 80 0D 01 02 00 00 00 00 9F [17:18:54]Write i2c OK [17:18:54]MH_I2C_Read... [17:18:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:18:54]Read from MH i2c: E2 [17:18:54]MH_I2C_Read... [17:18:54]Read from MH i2c: E2 03 00 [17:18:54]MH_I2C_Read... [17:18:54]Read from MH i2c: E2 03 00 21 05 00 90 00 9A [17:18:54]RAPDU: 90 00 [17:18:54]wFMCommunicate OK [17:18:54]wFMCommunicate request_size=255 [17:18:54]MH_SAM_APDU [17:18:54]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 7D 3B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 50 0F 01 [17:18:54]Write to MH i2c: E2 02 01 22 05 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 7D 3B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 50 0F 01 00 00 74 [17:18:54]Write i2c OK [17:18:54]MH_I2C_Read... [17:18:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:54]Read from MH i2c: E2 [17:18:54]MH_I2C_Read... [17:18:54]Read from MH i2c: E2 03 00 [17:18:54]MH_I2C_Read... [17:18:54]Read from MH i2c: E2 03 00 22 05 00 90 00 9B [17:18:54]RAPDU: 90 00 [17:18:54]wFMCommunicate OK [17:18:54]wFMCommunicate request_size=16 [17:18:54]MH_SAM_APDU [17:18:54]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 08 64 D2 A9 73 1F [17:18:54]Write to MH i2c: E2 13 00 23 05 80 0D 02 02 0B 00 00 35 04 06 00 08 64 D2 A9 73 1F 00 00 70 [17:18:54]Write i2c OK [17:18:54]MH_I2C_Read... [17:18:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:54]Read from MH i2c: E2 [17:18:54]MH_I2C_Read... [17:18:54]Read from MH i2c: E2 03 00 [17:18:54]MH_I2C_Read... [17:18:54]Read from MH i2c: E2 03 00 23 05 00 90 00 9C [17:18:54]RAPDU: 90 00 [17:18:54]wFMCommunicate OK [17:18:54]wFMCommunicate request_size=4 [17:18:54]MH_SAM_APDU [17:18:54]CAPDU: 80 0D 03 02 [17:18:54]Write to MH i2c: E2 08 00 24 05 80 0D 03 02 00 00 00 00 A4 [17:18:54]Write i2c OK [17:18:54]MH_I2C_Read... [17:18:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:18:54]Read from MH i2c: E2 [17:18:54]MH_I2C_Read... [17:18:54]Read from MH i2c: E2 0B 00 [17:18:54]MH_I2C_Read... [17:18:54]Read from MH i2c: E2 0B 00 24 05 00 76 D7 8E 3B 5A F0 40 9E 90 00 E3 [17:18:54]RAPDU: 76 D7 8E 3B 5A F0 40 9E 90 00 [17:18:54]wFMCommunicate OK [17:18:54]SAM_PROTO_SignData done [17:18:54]FM_MakeSignedData done [17:18:54]CreateOFDProtocolMessage [17:18:54]wFMCommunicate request_size=4 [17:18:54]MH_SAM_APDU [17:18:54]CAPDU: 80 11 00 00 [17:18:54]Write to MH i2c: E2 08 00 25 05 80 11 00 00 00 00 00 00 A4 [17:18:54]Write i2c OK [17:18:54]MH_I2C_Read... [17:18:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:54]Read from MH i2c: E2 [17:18:54]MH_I2C_Read... [17:18:54]Read from MH i2c: E2 17 00 [17:18:54]MH_I2C_Read... [17:18:54]Read from MH i2c: E2 17 00 25 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F6 [17:18:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:18:54]wFMCommunicate OK [17:18:54]CreateOFDProtocolMessage done [17:18:54]OFDSenderStorePacket 69456 [17:18:54]StoreOFDPacket docnum=69456 [17:18:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 8C C4 0D 01 C2 5A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 7D 3B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 50 0F 01 00 35 04 06 00 08 64 D2 A9 73 1F 76 D7 8E 3B 5A F0 40 9E [17:18:54]CheckFolder [17:18:54]dirname=/storage/ofd_packets [17:18:54]CheckFolder done [17:18:54]ProducePacketName [17:18:54]name=ofd_packets/00069456 [17:18:54]NVStorageSaveData ofd_packets/00069456 [17:18:54]File name is /storage/ofd_packets/00069456 [17:18:54]Write 307 bytes [17:18:54]NVStorageSaveData done [17:18:54]OFDSenderStorePacket done [17:18:54]KKMCreateOFDPacket done [17:18:54]NVStorageSaveData kkm_last_timestamp [17:18:54]File name is /storage/kkm_last_timestamp [17:18:54]Write 4 bytes [17:18:54]NVStorageSaveData done [17:18:54]ExternCall_PrintAddStr [17:18:54]wPrintStart [17:18:54]Write to MH i2c: 01 00 00 26 05 2B [17:18:54]Write i2c OK [17:18:54]MH_I2C_Read... [17:18:54]Read from MH i2c: 01 [17:18:54]MH_I2C_Read... [17:18:54]Read from MH i2c: 01 07 00 [17:18:54]MH_I2C_Read... [17:18:54]Read from MH i2c: 01 07 00 26 05 00 00 00 00 00 FF 0F 40 [17:18:54]RasterBufferAndPrint [17:18:54]line Счет N : (1)2885186 [17:18:54]line ИНН: 02508201610067 [17:18:54]line Контрольно-Кассовый Чек [17:18:54]line ПРОДАЖА [17:18:54]line ТРК (МРК, ГНК) : 41 [17:18:54]line Товар: 2710194240 [17:18:54]line D-ENERGY Дт-К-2 [17:18:54]line 12.960 * 77.20 [17:18:54]line = 1000.51 [17:18:54]line НДС 12% НСП 1% [17:18:54]line > о реализуемом товаре [17:18:54]line ОКРУГЛЕНИЕ: -0.51 [17:18:54]line ИТОГО: 1000.00 [17:18:54]line Внесено: 1000.00 [17:18:54]line СДАЧА: 0.00 [17:18:54]line НСП 1% : 8.85 [17:18:54]line НДС 12% : 106.25 [17:18:54]line Наличными: 1000.00 [17:18:54]line Безнал.: 0.00 [17:18:54]line Место: АЗС № 85 "Партнер Нефть" [17:18:54]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:18:54]line СНО: Общий режим [17:18:54]line Чек 301 20.10.2024 17:18 [17:18:54]line Смена: 193 ФФД: 1.0 [17:18:54]line ЗНМ: 0300000167 [17:18:54]line РНМ: 0000000000156251 [17:18:54]line Версия ККМ: v1.0 [17:18:54]line ФМ: 0000000000963346 [17:18:54]line ФД: 69456 [17:18:54]line ФПД: 9229124072223 [17:18:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171853&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69456&fm=9229124072223&tin=02508201610067®Number=0000000000156251&sum=100000 [17:18:55]OFD Sender: Processing packet 69456 [packets to send 18, broken 17] [17:18:55]ProducePacketName [17:18:55]name=ofd_packets/00069456 [17:18:55]OFD Sender: To server: pG, [17:18:55]CommunicateWithHost lk.salyk.kg:30040 [17:18:55]ConnectInit lk.salyk.kg [17:18:55]written 0, free lines is 4095 [17:18:55]Connected sock=11 [17:18:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 8C C4 0D 01 C2 5A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 7D 3B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 50 0F 01 00 35 04 06 00 08 64 D2 A9 73 1F 76 D7 8E 3B 5A F0 40 9E [17:18:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 22 54 47 00 90 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 50 0F 01 00 F4 03 04 00 23 E5 14 67 B6 04 01 00 00 42 CF 2D F8 D9 55 F8 C0 [17:18:55]CommunicateWithHost err = 0 [17:18:55]CheckOFDResponse [17:18:55]1017 (14) - 77093643461234 [17:18:55]1041 (16) - 0000000000963346 [17:18:55]1040 (4) - 69456 [17:18:55]1012 (4) - 20.10.2024 11:10 [17:18:55]1206 (1) - 0 [17:18:55]OFD Sender: Remove packet 69456 [17:18:55]ProducePacketName [17:18:55]name=ofd_packets/00069456 [17:18:55]NVStorageDeleteData [17:18:55]Write to MH i2c: 01 00 00 51 05 56 [17:18:55]Write i2c OK [17:18:55]MH_I2C_Read... [17:18:55]Read from MH i2c: 01 [17:18:55]MH_I2C_Read... [17:18:55]Read from MH i2c: 01 07 00 [17:18:55]MH_I2C_Read... [17:18:55]Read from MH i2c: 01 07 00 51 05 00 00 00 00 00 F3 0C 5C [17:18:55]RasterBufferAndPrint [17:18:55]line [17:18:55]line [17:18:55]line [17:18:55]line [17:18:55]line [17:18:55]written 0, free lines is 3321 [17:18:55]MH_Cut [17:18:55]Write to MH i2c: D1 01 00 58 05 01 2F [17:18:55]Write i2c OK [17:18:55]MH_I2C_Read... [17:18:55]Read from MH i2c: D1 [17:18:55]MH_I2C_Read... [17:18:55]Read from MH i2c: D1 01 00 [17:18:55]MH_I2C_Read... [17:18:55]Read from MH i2c: D1 01 00 58 05 00 2E [17:18:55]Write to MH i2c: 01 00 00 59 05 5E [17:18:55]Write i2c OK [17:18:55]MH_I2C_Read... [17:18:55]OFD Sender: No OFD packet to send [17:18:56]*** Cut start [17:18:56]*** Partial cut [17:18:56]*** CUTSNS_PIN = 1 [17:18:56]*** CUTSNS_PIN = 0 [17:18:56]*** Brake cut motor [17:18:56]Read from MH i2c: 01 [17:18:56]MH_I2C_Read... [17:18:56]*** Stop cut motor [17:18:56]*** Cut end [17:18:56]Read from MH i2c: 01 07 00 [17:18:56]MH_I2C_Read... [17:18:56]Read from MH i2c: 01 07 00 59 05 00 00 00 00 00 FF 0F 73 [17:18:56]process_action close_receipt done [17:18:56]requested_data is exist [17:18:56]produce_requested_data [17:18:56]requested_item fm.sn is exist - process it [17:18:56]wFMCommunicate request_size=4 [17:18:56]MH_SAM_APDU [17:18:56]CAPDU: 80 11 00 00 [17:18:56]Write to MH i2c: E2 08 00 5A 05 80 11 00 00 00 00 00 00 D9 [17:18:56]Write i2c OK [17:18:56]MH_I2C_Read... [17:18:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:56]Read from MH i2c: E2 [17:18:56]MH_I2C_Read... [17:18:56]Read from MH i2c: E2 17 00 [17:18:56]MH_I2C_Read... [17:18:56]Read from MH i2c: E2 17 00 5A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2B [17:18:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:18:56]wFMCommunicate OK [17:18:56]requested_item fd.num is exist - process it [17:18:56]SAM_PROTO_GetFieldsCounters [17:18:56]wFMCommunicate request_size=4 [17:18:56]MH_SAM_APDU [17:18:56]CAPDU: 80 13 00 00 [17:18:56]Write to MH i2c: E2 08 00 5B 05 80 13 00 00 00 00 00 00 DC [17:18:56]Write i2c OK [17:18:56]MH_I2C_Read... [17:18:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:18:57]Read from MH i2c: E2 [17:18:57]MH_I2C_Read... [17:18:57]Read from MH i2c: E2 62 00 [17:18:57]MH_I2C_Read... [17:18:57]Read from MH i2c: E2 62 00 5B 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 50 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 A2 [17:18:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 50 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:18:57]wFMCommunicate OK [17:18:57]SAM_PROTO_GetFieldsCounters done [17:18:57]requested_item shift.num is exist - process it [17:18:57]requested_item shift.opened is exist - process it [17:18:57]req_shift_opened [17:18:57]FM_GetShiftState [17:18:57]SAM_PROTO_GetShiftState [17:18:57]wFMCommunicate request_size=4 [17:18:57]MH_SAM_APDU [17:18:57]CAPDU: 80 13 01 00 [17:18:57]Write to MH i2c: E2 08 00 5C 05 80 13 01 00 00 00 00 00 DE [17:18:57]Write i2c OK [17:18:57]MH_I2C_Read... [17:18:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:57]Read from MH i2c: E2 [17:18:57]MH_I2C_Read... [17:18:57]Read from MH i2c: E2 0E 00 [17:18:57]MH_I2C_Read... [17:18:57]Read from MH i2c: E2 0E 00 5C 05 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 E4 [17:18:57]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:18:57]wFMCommunicate OK [17:18:57]SAM_PROTO_GetShiftState done [17:18:57]FM_GetShiftState done [17:18:57]req_shift_opened done [17:18:57]requested_item shift.open_date is exist - process it [17:18:57]req_shift_open_date [17:18:57]req_shift_open_date done [17:18:57]produce_requested_data done [17:18:57]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69456,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [17:18:57]process_action_free close_receipt [17:18:57]json_value_free [17:18:57]json_value_free done [17:18:57]process_json_proto returns [17:18:57]Send response to host [17:18:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69456,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [17:18:57]free response buf [17:18:57]execute_script done [17:18:57]execute_script returns [17:18:57]free content buf [17:18:57]Sock 8.Close socket [17:18:57]Sock 8.Thread stoped [17:19:00]OFD Sender: No OFD packet to send [17:19:05]OFD Sender: No OFD packet to send [17:19:10]OFD Sender: No OFD packet to send [17:19:15]OFD Sender: No OFD packet to send [17:19:20]OFD Sender: No OFD packet to send [17:19:25]OFD Sender: No OFD packet to send [17:19:30]OFD Sender: No OFD packet to send [17:19:35]OFD Sender: No OFD packet to send [17:19:40]OFD Sender: No OFD packet to send [17:19:45]OFD Sender: No OFD packet to send [17:19:50]OFD Sender: No OFD packet to send [17:19:55]OFD Sender: No OFD packet to send [17:20:00]OFD Sender: No OFD packet to send [17:20:05]OFD Sender: No OFD packet to send [17:20:10]OFD Sender: No OFD packet to send [17:20:15]OFD Sender: No OFD packet to send [17:20:20]OFD Sender: No OFD packet to send [17:20:25]OFD Sender: No OFD packet to send [17:20:30]OFD Sender: No OFD packet to send [17:20:35]OFD Sender: No OFD packet to send [17:20:36]accept exits with 9 [17:20:36]New connection [17:20:36]New thread 3067239780 created [17:20:36]Thread 3067096420 joined [17:20:36]Waiting for new connection... [17:20:36] Sock 9.Parse request [17:20:36]Sock 9.Check first char [17:20:36]Sock 9.First char is OK [17:20:36]request: POST /json_proto HTTP/1.0 [17:20:36]Method: POST [17:20:36]URL: /json_proto [17:20:36]Method is POST - this is cgi request [17:20:36]url: /json_proto [17:20:36]query_string will be loaded in cgi processing [17:20:36]execute_cgi json_proto POST (null) [17:20:36]execute_cgi path=json_proto method=POST [17:20:36]POST find Content-Length [17:20:36]Host: 172.17.50.3:8080 [17:20:36]Content-Length: 680 [17:20:36]Content-Type: application/json [17:20:36] [17:20:36]POST finish read [17:20:36]Found Content-Length = 680 [17:20:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:36]execute_script... [17:20: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)2885187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:36]POST & json_proto [17:20:36]process_json_proto [17:20:36]json parsed OK: [17:20:36]protocol is kg_v1.0 [17:20:36]action value=close_receipt [17:20:36]process_action close_receipt [17:20:36]cmd_close_receipt [17:20:36]MH_GetDate [17:20:36]Write to MH i2c: F0 00 00 5D 05 51 [17:20:36]Write i2c OK [17:20:36]MH_I2C_Read... [17:20:36]Read from MH i2c: F0 [17:20:36]MH_I2C_Read... [17:20:36]Read from MH i2c: F0 09 00 [17:20:36]MH_I2C_Read... [17:20:36]Read from MH i2c: F0 09 00 5D 05 00 E4 3B 15 67 6B 98 1E 66 7C [17:20:36]GetLastDocTimeStamp 1729444733 [17:20:36]current date 1729444836 [17:20:36]FM_GetShiftState [17:20:36]SAM_PROTO_GetShiftState [17:20:36]wFMCommunicate request_size=4 [17:20:36]MH_SAM_APDU [17:20:36]CAPDU: 80 13 01 00 [17:20:36]Write to MH i2c: E2 08 00 5E 05 80 13 01 00 00 00 00 00 E0 [17:20:36]Write i2c OK [17:20:36]MH_I2C_Read... [17:20:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:36]Read from MH i2c: E2 [17:20:36]MH_I2C_Read... [17:20:36]Read from MH i2c: E2 0E 00 [17:20:36]MH_I2C_Read... [17:20:36]Read from MH i2c: E2 0E 00 5E 05 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 E6 [17:20:36]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:20:36]wFMCommunicate OK [17:20:36]SAM_PROTO_GetShiftState done [17:20:36]FM_GetShiftState done [17:20:36]opened in 1729383220 [17:20:36]opened+sec_in_day 1729469620 [17:20:36]quantity*price = 150037 [17:20:36]sum+1 = 150039 [17:20:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 302 20.10.2024 17:20 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69457 ФПД: 204510539428023 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T172037&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69457&fm=204510539428023&tin=02508201610067®Number=0000000000156251&sum=150000 [17:20:37]StoreToDocumentArchive [17:20:37]shift 193 fd 69457 [17:20:37]save to /storage/0193/doc_00069457 [17:20:37]save last doc name /storage/0193/doc_00069457 to /storage/kkm_last_doc_name [17:20:37]save OK [17:20:37]Clear old archive folders... [17:20:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:20:37]tlvbuf is 00CE1BE0 [17:20:37]SAM_PROTO_ClearQueue [17:20:37]wFMCommunicate request_size=4 [17:20:37]MH_SAM_APDU [17:20:37]CAPDU: 80 09 00 00 [17:20:37]Write to MH i2c: E2 08 00 6B 05 80 09 00 00 00 00 00 00 E2 [17:20:37]Write i2c OK [17:20:37]MH_I2C_Read... [17:20:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:20:37]Read from MH i2c: E2 [17:20:37]MH_I2C_Read... [17:20:37]Read from MH i2c: E2 03 00 [17:20:37]MH_I2C_Read... [17:20:37]Read from MH i2c: E2 03 00 6B 05 00 90 00 E4 [17:20:37]RAPDU: 90 00 [17:20:37]wFMCommunicate OK [17:20:37]SAM_PROTO_ClearQueue done [17:20:37]KKMCreateOFDPacket [17:20:37]OFDProtocolAddRootSTLVToBuf [17:20:37]FM_MakeSignedData [17:20:37]FM_MakeSignedData [17:20:37]SAM_PROTO_SignData [17:20:37]wFMCommunicate request_size=4 [17:20:37]MH_SAM_APDU [17:20:37]CAPDU: 80 0D 01 02 [17:20:37]Write to MH i2c: E2 08 00 6C 05 80 0D 01 02 00 00 00 00 EA [17:20:37]Write i2c OK [17:20:37]MH_I2C_Read... [17:20:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:20:37]Read from MH i2c: E2 [17:20:37]MH_I2C_Read... [17:20:37]Read from MH i2c: E2 03 00 [17:20:37]MH_I2C_Read... [17:20:37]Read from MH i2c: E2 03 00 6C 05 00 90 00 E5 [17:20:37]RAPDU: 90 00 [17:20:37]wFMCommunicate OK [17:20:37]wFMCommunicate request_size=255 [17:20:37]MH_SAM_APDU [17:20: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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 E5 3B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 51 0F 01 00 35 04 06 00 BA 00 52 0E [17:20:37]Write to MH i2c: E2 02 01 6D 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 E5 3B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 51 0F 01 00 35 04 06 00 BA 00 52 0E 00 00 E7 [17:20:37]Write i2c OK [17:20:37]MH_I2C_Read... [17:20:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:37]Read from MH i2c: E2 [17:20:37]MH_I2C_Read... [17:20:37]Read from MH i2c: E2 03 00 [17:20:37]MH_I2C_Read... [17:20:37]Read from MH i2c: E2 03 00 6D 05 00 90 00 E6 [17:20:37]RAPDU: 90 00 [17:20:37]wFMCommunicate OK [17:20:37]wFMCommunicate request_size=7 [17:20:37]MH_SAM_APDU [17:20:37]CAPDU: 80 0D 02 02 02 30 B7 [17:20:37]Write to MH i2c: E2 0A 00 6E 05 80 0D 02 02 02 00 30 B7 00 00 D8 [17:20:37]Write i2c OK [17:20:37]MH_I2C_Read... [17:20:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:37]Read from MH i2c: E2 [17:20:37]MH_I2C_Read... [17:20:37]Read from MH i2c: E2 03 00 [17:20:37]MH_I2C_Read... [17:20:37]Read from MH i2c: E2 03 00 6E 05 00 90 00 E7 [17:20:37]RAPDU: 90 00 [17:20:37]wFMCommunicate OK [17:20:37]wFMCommunicate request_size=4 [17:20:37]MH_SAM_APDU [17:20:37]CAPDU: 80 0D 03 02 [17:20:37]Write to MH i2c: E2 08 00 6F 05 80 0D 03 02 00 00 00 00 EF [17:20:37]Write i2c OK [17:20:37]MH_I2C_Read... [17:20:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:20:37]Read from MH i2c: E2 [17:20:37]MH_I2C_Read... [17:20:37]Read from MH i2c: E2 0B 00 [17:20:37]MH_I2C_Read... [17:20:37]Read from MH i2c: E2 0B 00 6F 05 00 68 CA 7A 6F 7C 79 D6 50 90 00 26 [17:20:37]RAPDU: 68 CA 7A 6F 7C 79 D6 50 90 00 [17:20:37]wFMCommunicate OK [17:20:37]SAM_PROTO_SignData done [17:20:37]FM_MakeSignedData done [17:20:37]CreateOFDProtocolMessage [17:20:37]wFMCommunicate request_size=4 [17:20:37]MH_SAM_APDU [17:20:37]CAPDU: 80 11 00 00 [17:20:37]Write to MH i2c: E2 08 00 70 05 80 11 00 00 00 00 00 00 EF [17:20:37]Write i2c OK [17:20:37]MH_I2C_Read... [17:20:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:38]Read from MH i2c: E2 [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: E2 17 00 [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: E2 17 00 70 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 41 [17:20:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:20:38]wFMCommunicate OK [17:20:38]CreateOFDProtocolMessage done [17:20:38]OFDSenderStorePacket 69457 [17:20:38]StoreOFDPacket docnum=69457 [17:20:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 EB 83 04 01 34 49 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 E5 3B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 51 0F 01 00 35 04 06 00 BA 00 52 0E 30 B7 68 CA 7A 6F 7C 79 D6 50 [17:20:38]CheckFolder [17:20:38]dirname=/storage/ofd_packets [17:20:38]CheckFolder done [17:20:38]ProducePacketName [17:20:38]name=ofd_packets/00069457 [17:20:38]NVStorageSaveData ofd_packets/00069457 [17:20:38]File name is /storage/ofd_packets/00069457 [17:20:38]Write 298 bytes [17:20:38]NVStorageSaveData done [17:20:38]OFDSenderStorePacket done [17:20:38]KKMCreateOFDPacket done [17:20:38]NVStorageSaveData kkm_last_timestamp [17:20:38]File name is /storage/kkm_last_timestamp [17:20:38]Write 4 bytes [17:20:38]NVStorageSaveData done [17:20:38]ExternCall_PrintAddStr [17:20:38]wPrintStart [17:20:38]Write to MH i2c: 01 00 00 71 05 76 [17:20:38]Write i2c OK [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: 01 [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: 01 07 00 [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: 01 07 00 71 05 00 00 00 00 00 FF 0F 8B [17:20:38]RasterBufferAndPrint [17:20:38]line Счет N : (1)2885187 [17:20:38]line ИНН: 02508201610067 [17:20:38]line Контрольно-Кассовый Чек [17:20:38]line ПРОДАЖА [17:20:38]line ТРК (МРК, ГНК) : 61 [17:20:38]line Товар: 2710194210 [17:20:38]line ДТ-К-5 [17:20:38]line 19.690 * 76.20 [17:20:38]line = 1500.38 [17:20:38]line НДС 12% НСП 1% [17:20:38]line > о реализуемом товаре [17:20:38]line ОКРУГЛЕНИЕ: -0.38 [17:20:38]line ИТОГО: 1500.00 [17:20:38]line Внесено: 1500.00 [17:20:38]line СДАЧА: 0.00 [17:20:38]line НСП 1% : 13.28 [17:20:38]line НДС 12% : 159.33 [17:20:38]line Наличными: 1500.00 [17:20:38]line Безнал.: 0.00 [17:20:38]line Место: АЗС № 85 "Партнер Нефть" [17:20:38]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:20:38]line СНО: Общий режим [17:20:38]line Чек 302 20.10.2024 17:20 [17:20:38]line Смена: 193 ФФД: 1.0 [17:20:38]line ЗНМ: 0300000167 [17:20:38]line РНМ: 0000000000156251 [17:20:38]line Версия ККМ: v1.0 [17:20:38]line ФМ: 0000000000963346 [17:20:38]line ФД: 69457 [17:20:38]line ФПД: 204510539428023 [17:20:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T172037&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69457&fm=204510539428023&tin=02508201610067®Number=0000000000156251&sum=150000 [17:20:38]OFD Sender: Processing packet 69457 [packets to send 18, broken 17] [17:20:38]ProducePacketName [17:20:38]name=ofd_packets/00069457 [17:20:38]OFD Sender: To server: pG, [17:20:38]CommunicateWithHost lk.salyk.kg:30040 [17:20:38]ConnectInit lk.salyk.kg [17:20:38]written 0, free lines is 4095 [17:20:38]Connected sock=10 [17:20:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 EB 83 04 01 34 49 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 E5 3B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 51 0F 01 00 35 04 06 00 BA 00 52 0E 30 B7 68 CA 7A 6F 7C 79 D6 50 [17:20:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 FC 75 47 00 17 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 51 0F 01 00 F4 03 04 00 8B E5 14 67 B6 04 01 00 00 3F A5 AE EA C0 DA 22 F8 [17:20:38]CommunicateWithHost err = 0 [17:20:38]CheckOFDResponse [17:20:38]1017 (14) - 77093643461234 [17:20:38]1041 (16) - 0000000000963346 [17:20:38]1040 (4) - 69457 [17:20:38]1012 (4) - 20.10.2024 11:12 [17:20:38]1206 (1) - 0 [17:20:38]OFD Sender: Remove packet 69457 [17:20:38]ProducePacketName [17:20:38]name=ofd_packets/00069457 [17:20:38]NVStorageDeleteData [17:20:38]Write to MH i2c: 01 00 00 9C 05 A1 [17:20:38]Write i2c OK [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: 01 [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: 01 07 00 [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: 01 07 00 9C 05 00 00 00 00 00 00 0D B5 [17:20:38]RasterBufferAndPrint [17:20:38]line [17:20:38]line [17:20:38]line [17:20:38]line [17:20:38]line [17:20:38]written 0, free lines is 3337 [17:20:38]MH_Cut [17:20:38]Write to MH i2c: D1 01 00 A3 05 01 7A [17:20:38]Write i2c OK [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: D1 [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: D1 01 00 [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: D1 01 00 A3 05 00 79 [17:20:38]Write to MH i2c: 01 00 00 A4 05 A9 [17:20:38]Write i2c OK [17:20:38]MH_I2C_Read... [17:20:39]OFD Sender: No OFD packet to send [17:20:39]*** Cut start [17:20:39]*** Partial cut [17:20:39]*** CUTSNS_PIN = 1 [17:20:39]*** CUTSNS_PIN = 0 [17:20:39]*** Brake cut motor [17:20:40]Read from MH i2c: 01 [17:20:40]MH_I2C_Read... [17:20:40]*** Stop cut motor [17:20:40]*** Cut end [17:20:40]Read from MH i2c: 01 07 00 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: 01 07 00 A4 05 00 00 00 00 00 FF 0F BE [17:20:40]process_action close_receipt done [17:20:40]requested_data is exist [17:20:40]produce_requested_data [17:20:40]requested_item fm.sn is exist - process it [17:20:40]wFMCommunicate request_size=4 [17:20:40]MH_SAM_APDU [17:20:40]CAPDU: 80 11 00 00 [17:20:40]Write to MH i2c: E2 08 00 A5 05 80 11 00 00 00 00 00 00 24 [17:20:40]Write i2c OK [17:20:40]MH_I2C_Read... [17:20:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:40]Read from MH i2c: E2 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: E2 17 00 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: E2 17 00 A5 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 76 [17:20:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:20:40]wFMCommunicate OK [17:20:40]requested_item fd.num is exist - process it [17:20:40]SAM_PROTO_GetFieldsCounters [17:20:40]wFMCommunicate request_size=4 [17:20:40]MH_SAM_APDU [17:20:40]CAPDU: 80 13 00 00 [17:20:40]Write to MH i2c: E2 08 00 A6 05 80 13 00 00 00 00 00 00 27 [17:20:40]Write i2c OK [17:20:40]MH_I2C_Read... [17:20:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:20:40]Read from MH i2c: E2 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: E2 62 00 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: E2 62 00 A6 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 51 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 F1 [17:20:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 51 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:20:40]wFMCommunicate OK [17:20:40]SAM_PROTO_GetFieldsCounters done [17:20:40]requested_item shift.num is exist - process it [17:20:40]requested_item shift.opened is exist - process it [17:20:40]req_shift_opened [17:20:40]FM_GetShiftState [17:20:40]SAM_PROTO_GetShiftState [17:20:40]wFMCommunicate request_size=4 [17:20:40]MH_SAM_APDU [17:20:40]CAPDU: 80 13 01 00 [17:20:40]Write to MH i2c: E2 08 00 A7 05 80 13 01 00 00 00 00 00 29 [17:20:40]Write i2c OK [17:20:40]MH_I2C_Read... [17:20:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:40]Read from MH i2c: E2 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: E2 0E 00 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: E2 0E 00 A7 05 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 2F [17:20:40]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:20:40]wFMCommunicate OK [17:20:40]SAM_PROTO_GetShiftState done [17:20:40]FM_GetShiftState done [17:20:40]req_shift_opened done [17:20:40]requested_item shift.open_date is exist - process it [17:20:40]req_shift_open_date [17:20:40]req_shift_open_date done [17:20:40]produce_requested_data done [17:20:40]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69457,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [17:20:40]process_action_free close_receipt [17:20:40]json_value_free [17:20:40]json_value_free done [17:20:40]process_json_proto returns [17:20:40]Send response to host [17:20:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69457,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [17:20:40]free response buf [17:20:40]execute_script done [17:20:40]execute_script returns [17:20:40]free content buf [17:20:40]Sock 9.Close socket [17:20:40]Sock 9.Thread stoped [17:20:44]OFD Sender: No OFD packet to send [17:20:49]OFD Sender: No OFD packet to send [17:20:54]OFD Sender: No OFD packet to send [17:20:57]accept exits with 8 [17:20:57]New connection [17:20:57]New thread 3067096420 created [17:20:57]Thread 3067239780 joined [17:20:57]Waiting for new connection... [17:20:57] Sock 8.Parse request [17:20:57]Sock 8.Check first char [17:20:57]Sock 8.First char is OK [17:20:57]request: POST /json_proto HTTP/1.0 [17:20:57]Method: POST [17:20:57]URL: /json_proto [17:20:57]Method is POST - this is cgi request [17:20:57]url: /json_proto [17:20:57]query_string will be loaded in cgi processing [17:20:57]execute_cgi json_proto POST (null) [17:20:57]execute_cgi path=json_proto method=POST [17:20:57]POST find Content-Length [17:20:57]Host: 172.17.50.3:8080 [17:20:57]Content-Length: 683 [17:20:57]Content-Type: application/json [17:20:57] [17:20:57]POST finish read [17:20:57]Found Content-Length = 683 [17:20:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:57]execute_script... [17:20: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)2885188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:57]POST & json_proto [17:20:57]process_json_proto [17:20:57]json parsed OK: [17:20:57]protocol is kg_v1.0 [17:20:57]action value=close_receipt [17:20:57]process_action close_receipt [17:20:57]cmd_close_receipt [17:20:57]MH_GetDate [17:20:57]Write to MH i2c: F0 00 00 A8 05 9C [17:20:57]Write i2c OK [17:20:57]MH_I2C_Read... [17:20:57]Read from MH i2c: F0 [17:20:57]MH_I2C_Read... [17:20:57]Read from MH i2c: F0 09 00 [17:20:57]MH_I2C_Read... [17:20:57]Read from MH i2c: F0 09 00 A8 05 00 FA 3B 15 67 6B 98 1E 66 DD [17:20:57]GetLastDocTimeStamp 1729444837 [17:20:57]current date 1729444858 [17:20:57]FM_GetShiftState [17:20:57]SAM_PROTO_GetShiftState [17:20:57]wFMCommunicate request_size=4 [17:20:57]MH_SAM_APDU [17:20:57]CAPDU: 80 13 01 00 [17:20:57]Write to MH i2c: E2 08 00 A9 05 80 13 01 00 00 00 00 00 2B [17:20:57]Write i2c OK [17:20:57]MH_I2C_Read... [17:20:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:57]Read from MH i2c: E2 [17:20:57]MH_I2C_Read... [17:20:57]Read from MH i2c: E2 0E 00 [17:20:57]MH_I2C_Read... [17:20:57]Read from MH i2c: E2 0E 00 A9 05 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 31 [17:20:57]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:20:57]wFMCommunicate OK [17:20:57]SAM_PROTO_GetShiftState done [17:20:57]FM_GetShiftState done [17:20:57]opened in 1729383220 [17:20:57]opened+sec_in_day 1729469620 [17:20:57]quantity*price = 100015 [17:20:57]sum+1 = 100017 [17:20:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 303 20.10.2024 17:20 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69458 ФПД: 59163418736110 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T172058&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69458&fm=59163418736110&tin=02508201610067®Number=0000000000156251&sum=100000 [17:20:58]StoreToDocumentArchive [17:20:58]shift 193 fd 69458 [17:20:58]save to /storage/0193/doc_00069458 [17:20:58]save last doc name /storage/0193/doc_00069458 to /storage/kkm_last_doc_name [17:20:58]save OK [17:20:58]Clear old archive folders... [17:20:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:20:58]tlvbuf is 00D0D1C0 [17:20:58]SAM_PROTO_ClearQueue [17:20:58]wFMCommunicate request_size=4 [17:20:58]MH_SAM_APDU [17:20:58]CAPDU: 80 09 00 00 [17:20:58]Write to MH i2c: E2 08 00 B6 05 80 09 00 00 00 00 00 00 2D [17:20:58]Write i2c OK [17:20:58]MH_I2C_Read... [17:20:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:20:58]Read from MH i2c: E2 [17:20:58]MH_I2C_Read... [17:20:58]Read from MH i2c: E2 03 00 [17:20:58]MH_I2C_Read... [17:20:58]Read from MH i2c: E2 03 00 B6 05 00 90 00 2F [17:20:58]RAPDU: 90 00 [17:20:58]wFMCommunicate OK [17:20:58]SAM_PROTO_ClearQueue done [17:20:58]KKMCreateOFDPacket [17:20:58]OFDProtocolAddRootSTLVToBuf [17:20:58]FM_MakeSignedData [17:20:58]FM_MakeSignedData [17:20:58]SAM_PROTO_SignData [17:20:58]wFMCommunicate request_size=4 [17:20:58]MH_SAM_APDU [17:20:58]CAPDU: 80 0D 01 02 [17:20:58]Write to MH i2c: E2 08 00 B7 05 80 0D 01 02 00 00 00 00 35 [17:20:58]Write i2c OK [17:20:58]MH_I2C_Read... [17:20:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:20:58]Read from MH i2c: E2 [17:20:58]MH_I2C_Read... [17:20:58]Read from MH i2c: E2 03 00 [17:20:58]MH_I2C_Read... [17:20:58]Read from MH i2c: E2 03 00 B7 05 00 90 00 30 [17:20:58]RAPDU: 90 00 [17:20:58]wFMCommunicate OK [17:20:58]wFMCommunicate request_size=255 [17:20:58]MH_SAM_APDU [17:20:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 FA 3B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 52 0F 01 00 35 04 06 00 35 [17:20:58]Write to MH i2c: E2 02 01 B8 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 FA 3B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 52 0F 01 00 35 04 06 00 35 00 00 F1 [17:20:58]Write i2c OK [17:20:58]MH_I2C_Read... [17:20:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:59]Read from MH i2c: E2 [17:20:59]MH_I2C_Read... [17:20:59]Read from MH i2c: E2 03 00 [17:20:59]MH_I2C_Read... [17:20:59]Read from MH i2c: E2 03 00 B8 05 00 90 00 31 [17:20:59]RAPDU: 90 00 [17:20:59]wFMCommunicate OK [17:20:59]wFMCommunicate request_size=10 [17:20:59]MH_SAM_APDU [17:20:59]CAPDU: 80 0D 02 02 05 CF 0E 8E B5 EE [17:20:59]Write to MH i2c: E2 0D 00 B9 05 80 0D 02 02 05 00 CF 0E 8E B5 EE 00 00 50 [17:20:59]Write i2c OK [17:20:59]MH_I2C_Read... [17:20:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:59]Read from MH i2c: E2 [17:20:59]MH_I2C_Read... [17:20:59]Read from MH i2c: E2 03 00 [17:20:59]MH_I2C_Read... [17:20:59]Read from MH i2c: E2 03 00 B9 05 00 90 00 32 [17:20:59]RAPDU: 90 00 [17:20:59]wFMCommunicate OK [17:20:59]wFMCommunicate request_size=4 [17:20:59]MH_SAM_APDU [17:20:59]CAPDU: 80 0D 03 02 [17:20:59]Write to MH i2c: E2 08 00 BA 05 80 0D 03 02 00 00 00 00 3A [17:20:59]Write i2c OK [17:20:59]MH_I2C_Read... [17:20:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:20:59]Read from MH i2c: E2 [17:20:59]MH_I2C_Read... [17:20:59]Read from MH i2c: E2 0B 00 [17:20:59]MH_I2C_Read... [17:20:59]Read from MH i2c: E2 0B 00 BA 05 00 E1 7E E8 F7 61 66 E0 BE 90 00 DE [17:20:59]RAPDU: E1 7E E8 F7 61 66 E0 BE 90 00 [17:20:59]wFMCommunicate OK [17:20:59]SAM_PROTO_SignData done [17:20:59]FM_MakeSignedData done [17:20:59]CreateOFDProtocolMessage [17:20:59]wFMCommunicate request_size=4 [17:20:59]MH_SAM_APDU [17:20:59]CAPDU: 80 11 00 00 [17:20:59]Write to MH i2c: E2 08 00 BB 05 80 11 00 00 00 00 00 00 3A [17:20:59]Write i2c OK [17:20:59]MH_I2C_Read... [17:20:59]OFD Sender: No OFD packet to send [17:20:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:59]Read from MH i2c: E2 [17:20:59]MH_I2C_Read... [17:20:59]Read from MH i2c: E2 17 00 [17:20:59]MH_I2C_Read... [17:20:59]Read from MH i2c: E2 17 00 BB 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8C [17:20:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:20:59]wFMCommunicate OK [17:20:59]CreateOFDProtocolMessage done [17:20:59]OFDSenderStorePacket 69458 [17:20:59]StoreOFDPacket docnum=69458 [17:20:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 3A D5 07 01 42 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 FA 3B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 52 0F 01 00 35 04 06 00 35 CF 0E 8E B5 EE E1 7E E8 F7 61 66 E0 BE [17:20:59]CheckFolder [17:20:59]dirname=/storage/ofd_packets [17:20:59]CheckFolder done [17:20:59]ProducePacketName [17:20:59]name=ofd_packets/00069458 [17:20:59]NVStorageSaveData ofd_packets/00069458 [17:20:59]File name is /storage/ofd_packets/00069458 [17:20:59]Write 301 bytes [17:20:59]NVStorageSaveData done [17:20:59]OFDSenderStorePacket done [17:20:59]KKMCreateOFDPacket done [17:20:59]NVStorageSaveData kkm_last_timestamp [17:20:59]File name is /storage/kkm_last_timestamp [17:20:59]Write 4 bytes [17:20:59]NVStorageSaveData done [17:20:59]ExternCall_PrintAddStr [17:20:59]wPrintStart [17:20:59]Write to MH i2c: 01 00 00 BC 05 C1 [17:20:59]Write i2c OK [17:20:59]MH_I2C_Read... [17:20:59]Read from MH i2c: 01 [17:20:59]MH_I2C_Read... [17:20:59]Read from MH i2c: 01 07 00 [17:20:59]MH_I2C_Read... [17:20:59]Read from MH i2c: 01 07 00 BC 05 00 00 00 00 00 FF 0F D6 [17:20:59]RasterBufferAndPrint [17:20:59]line Счет N : (1)2885188 [17:20:59]line ИНН: 02508201610067 [17:20:59]line Контрольно-Кассовый Чек [17:20:59]line ПРОДАЖА [17:20:59]line ТРК (МРК, ГНК) : 32 [17:20:59]line Товар: 2710124130 [17:20:59]line Аи-92-К-5 [17:20:59]line 14.950 * 66.90 [17:20:59]line = 1000.16 [17:20:59]line НДС 12% НСП 1% [17:20:59]line > о реализуемом товаре [17:20:59]line ОКРУГЛЕНИЕ: -0.16 [17:20:59]line ИТОГО: 1000.00 [17:20:59]line Внесено: 1000.00 [17:20:59]line СДАЧА: 0.00 [17:20:59]line НСП 1% : 8.85 [17:20:59]line НДС 12% : 106.21 [17:20:59]line Наличными: 1000.00 [17:20:59]line Безнал.: 0.00 [17:20:59]line Место: АЗС № 85 "Партнер Нефть" [17:20:59]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:20:59]line СНО: Общий режим [17:20:59]line Чек 303 20.10.2024 17:20 [17:20:59]line Смена: 193 ФФД: 1.0 [17:20:59]line ЗНМ: 0300000167 [17:20:59]line РНМ: 0000000000156251 [17:20:59]line Версия ККМ: v1.0 [17:20:59]line ФМ: 0000000000963346 [17:20:59]line ФД: 69458 [17:20:59]line ФПД: 59163418736110 [17:20:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T172058&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69458&fm=59163418736110&tin=02508201610067®Number=0000000000156251&sum=100000 [17:20:59]OFD Sender: Processing packet 69458 [packets to send 18, broken 17] [17:20:59]ProducePacketName [17:20:59]name=ofd_packets/00069458 [17:20:59]OFD Sender: To server: pG, [17:20:59]CommunicateWithHost lk.salyk.kg:30040 [17:20:59]ConnectInit lk.salyk.kg [17:20:59]written 0, free lines is 4095 [17:20:59]Connected sock=10 [17:20:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 3A D5 07 01 42 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 FA 3B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 52 0F 01 00 35 04 06 00 35 CF 0E 8E B5 EE E1 7E E8 F7 61 66 E0 BE [17:20:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 F2 59 47 00 12 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 52 0F 01 00 F4 03 04 00 A0 E5 14 67 B6 04 01 00 00 51 9E 32 B8 F5 F8 91 30 [17:20:59]CommunicateWithHost err = 0 [17:20:59]CheckOFDResponse [17:20:59]1017 (14) - 77093643461234 [17:20:59]1041 (16) - 0000000000963346 [17:20:59]1040 (4) - 69458 [17:20:59]1012 (4) - 20.10.2024 11:12 [17:20:59]1206 (1) - 0 [17:20:59]OFD Sender: Remove packet 69458 [17:20:59]ProducePacketName [17:20:59]name=ofd_packets/00069458 [17:20:59]NVStorageDeleteData [17:21:00]Write to MH i2c: 01 00 00 E7 05 EC [17:21:00]Write i2c OK [17:21:00]MH_I2C_Read... [17:21:00]Read from MH i2c: 01 [17:21:00]MH_I2C_Read... [17:21:00]Read from MH i2c: 01 07 00 [17:21:00]MH_I2C_Read... [17:21:00]Read from MH i2c: 01 07 00 E7 05 00 00 00 00 00 F6 0C F5 [17:21:00]RasterBufferAndPrint [17:21:00]line [17:21:00]line [17:21:00]line [17:21:00]line [17:21:00]line [17:21:00]written 0, free lines is 3324 [17:21:00]MH_Cut [17:21:00]Write to MH i2c: D1 01 00 EE 05 01 C5 [17:21:00]Write i2c OK [17:21:00]MH_I2C_Read... [17:21:00]Read from MH i2c: D1 [17:21:00]MH_I2C_Read... [17:21:00]Read from MH i2c: D1 01 00 [17:21:00]MH_I2C_Read... [17:21:00]Read from MH i2c: D1 01 00 EE 05 00 C4 [17:21:00]Write to MH i2c: 01 00 00 EF 05 F4 [17:21:00]Write i2c OK [17:21:00]MH_I2C_Read... [17:21:00]OFD Sender: No OFD packet to send [17:21:00]*** Cut start [17:21:00]*** Partial cut [17:21:00]*** CUTSNS_PIN = 1 [17:21:00]*** CUTSNS_PIN = 0 [17:21:01]*** Brake cut motor [17:21:01]Read from MH i2c: 01 [17:21:01]MH_I2C_Read... [17:21:01]*** Stop cut motor [17:21:01]*** Cut end [17:21:01]Read from MH i2c: 01 07 00 [17:21:01]MH_I2C_Read... [17:21:01]Read from MH i2c: 01 07 00 EF 05 00 00 00 00 00 FF 0F 09 [17:21:01]process_action close_receipt done [17:21:01]requested_data is exist [17:21:01]produce_requested_data [17:21:01]requested_item fm.sn is exist - process it [17:21:01]wFMCommunicate request_size=4 [17:21:01]MH_SAM_APDU [17:21:01]CAPDU: 80 11 00 00 [17:21:01]Write to MH i2c: E2 08 00 F0 05 80 11 00 00 00 00 00 00 6F [17:21:01]Write i2c OK [17:21:01]MH_I2C_Read... [17:21:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:01]Read from MH i2c: E2 [17:21:01]MH_I2C_Read... [17:21:01]Read from MH i2c: E2 17 00 [17:21:01]MH_I2C_Read... [17:21:01]Read from MH i2c: E2 17 00 F0 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C1 [17:21:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:21:01]wFMCommunicate OK [17:21:01]requested_item fd.num is exist - process it [17:21:01]SAM_PROTO_GetFieldsCounters [17:21:01]wFMCommunicate request_size=4 [17:21:01]MH_SAM_APDU [17:21:01]CAPDU: 80 13 00 00 [17:21:01]Write to MH i2c: E2 08 00 F1 05 80 13 00 00 00 00 00 00 72 [17:21:01]Write i2c OK [17:21:01]MH_I2C_Read... [17:21:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:21:01]Read from MH i2c: E2 [17:21:01]MH_I2C_Read... [17:21:01]Read from MH i2c: E2 62 00 [17:21:01]MH_I2C_Read... [17:21:01]Read from MH i2c: E2 62 00 F1 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 52 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 40 [17:21:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 52 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:21:01]wFMCommunicate OK [17:21:01]SAM_PROTO_GetFieldsCounters done [17:21:01]requested_item shift.num is exist - process it [17:21:01]requested_item shift.opened is exist - process it [17:21:01]req_shift_opened [17:21:01]FM_GetShiftState [17:21:01]SAM_PROTO_GetShiftState [17:21:01]wFMCommunicate request_size=4 [17:21:01]MH_SAM_APDU [17:21:01]CAPDU: 80 13 01 00 [17:21:01]Write to MH i2c: E2 08 00 F2 05 80 13 01 00 00 00 00 00 74 [17:21:01]Write i2c OK [17:21:01]MH_I2C_Read... [17:21:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:01]Read from MH i2c: E2 [17:21:01]MH_I2C_Read... [17:21:01]Read from MH i2c: E2 0E 00 [17:21:01]MH_I2C_Read... [17:21:01]Read from MH i2c: E2 0E 00 F2 05 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 7A [17:21:01]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:21:01]wFMCommunicate OK [17:21:01]SAM_PROTO_GetShiftState done [17:21:01]FM_GetShiftState done [17:21:01]req_shift_opened done [17:21:01]requested_item shift.open_date is exist - process it [17:21:01]req_shift_open_date [17:21:01]req_shift_open_date done [17:21:01]produce_requested_data done [17:21:01]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69458,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [17:21:01]process_action_free close_receipt [17:21:01]json_value_free [17:21:01]json_value_free done [17:21:01]process_json_proto returns [17:21:01]Send response to host [17:21:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69458,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [17:21:01]free response buf [17:21:01]execute_script done [17:21:01]execute_script returns [17:21:01]free content buf [17:21:01]Sock 8.Close socket [17:21:01]Sock 8.Thread stoped [17:21:05]OFD Sender: No OFD packet to send [17:21:10]OFD Sender: No OFD packet to send [17:21:15]OFD Sender: No OFD packet to send [17:21:20]OFD Sender: No OFD packet to send [17:21:25]OFD Sender: No OFD packet to send [17:21:30]OFD Sender: No OFD packet to send [17:21:35]OFD Sender: No OFD packet to send [17:21:40]OFD Sender: No OFD packet to send [17:21:45]OFD Sender: No OFD packet to send [17:21:50]OFD Sender: No OFD packet to send [17:21:55]OFD Sender: No OFD packet to send [17:22:00]OFD Sender: No OFD packet to send [17:22:05]OFD Sender: No OFD packet to send [17:22:10]OFD Sender: No OFD packet to send [17:22:15]OFD Sender: No OFD packet to send [17:22:20]OFD Sender: No OFD packet to send [17:22:25]OFD Sender: No OFD packet to send [17:22:30]OFD Sender: No OFD packet to send [17:22:35]OFD Sender: No OFD packet to send [17:22:40]OFD Sender: No OFD packet to send [17:22:45]OFD Sender: No OFD packet to send [17:22:50]OFD Sender: No OFD packet to send [17:22:55]OFD Sender: No OFD packet to send [17:23:00]OFD Sender: No OFD packet to send [17:23:05]OFD Sender: No OFD packet to send [17:23:10]OFD Sender: No OFD packet to send [17:23:15]OFD Sender: No OFD packet to send [17:23:20]OFD Sender: No OFD packet to send [17:23:25]OFD Sender: No OFD packet to send [17:23:30]OFD Sender: No OFD packet to send [17:23:35]OFD Sender: No OFD packet to send [17:23:40]OFD Sender: No OFD packet to send [17:23:45]OFD Sender: No OFD packet to send [17:23:50]OFD Sender: No OFD packet to send [17:23:55]OFD Sender: No OFD packet to send [17:24:00]OFD Sender: No OFD packet to send [17:24:05]OFD Sender: No OFD packet to send [17:24:10]OFD Sender: No OFD packet to send [17:24:15]OFD Sender: No OFD packet to send [17:24:20]OFD Sender: No OFD packet to send [17:24:25]OFD Sender: No OFD packet to send [17:24:30]OFD Sender: No OFD packet to send [17:24:35]OFD Sender: No OFD packet to send [17:24:40]OFD Sender: No OFD packet to send [17:24:45]OFD Sender: No OFD packet to send [17:24:50]OFD Sender: No OFD packet to send [17:24:55]OFD Sender: No OFD packet to send [17:25:00]OFD Sender: No OFD packet to send [17:25:05]OFD Sender: No OFD packet to send [17:25:10]OFD Sender: No OFD packet to send [17:25:15]OFD Sender: No OFD packet to send [17:25:20]OFD Sender: No OFD packet to send [17:25:25]OFD Sender: No OFD packet to send [17:25:30]OFD Sender: No OFD packet to send [17:25:35]OFD Sender: No OFD packet to send [17:25:40]OFD Sender: No OFD packet to send [17:25:45]OFD Sender: No OFD packet to send [17:25:50]OFD Sender: No OFD packet to send [17:25:55]OFD Sender: No OFD packet to send [17:26:00]OFD Sender: No OFD packet to send [17:26:05]OFD Sender: No OFD packet to send [17:26:10]OFD Sender: No OFD packet to send [17:26:15]OFD Sender: No OFD packet to send [17:26:20]OFD Sender: No OFD packet to send [17:26:25]OFD Sender: No OFD packet to send [17:26:30]OFD Sender: No OFD packet to send [17:26:35]OFD Sender: No OFD packet to send [17:26:40]OFD Sender: No OFD packet to send [17:26:41]accept exits with 9 [17:26:41]New connection [17:26:41]New thread 3067239780 created [17:26:41]Thread 3067096420 joined [17:26:41]Waiting for new connection... [17:26:41] Sock 9.Parse request [17:26:41]Sock 9.Check first char [17:26:41]Sock 9.First char is OK [17:26:41]request: POST /json_proto HTTP/1.0 [17:26:41]Method: POST [17:26:41]URL: /json_proto [17:26:41]Method is POST - this is cgi request [17:26:41]url: /json_proto [17:26:41]query_string will be loaded in cgi processing [17:26:41]execute_cgi json_proto POST (null) [17:26:41]execute_cgi path=json_proto method=POST [17:26:41]POST find Content-Length [17:26:41]Host: 172.17.50.3:8080 [17:26:41]Content-Length: 754 [17:26:41]Content-Type: application/json [17:26:41] [17:26:41]POST finish read [17:26:41]Found Content-Length = 754 [17:26:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.060, "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\u000A30100970", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:41]execute_script... [17:26: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)2885189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.060, "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\u000A30100970", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:41]POST & json_proto [17:26:41]process_json_proto [17:26:41]json parsed OK: [17:26:41]protocol is kg_v1.0 [17:26:41]action value=close_receipt [17:26:41]process_action close_receipt [17:26:41]cmd_close_receipt [17:26:41]MH_GetDate [17:26:41]Write to MH i2c: F0 00 00 F3 05 E7 [17:26:41]Write i2c OK [17:26:41]MH_I2C_Read... [17:26:41]Read from MH i2c: F0 [17:26:41]MH_I2C_Read... [17:26:41]Read from MH i2c: F0 09 00 [17:26:41]MH_I2C_Read... [17:26:41]Read from MH i2c: F0 09 00 F3 05 00 51 3D 15 67 6B 98 1E 66 81 [17:26:41]GetLastDocTimeStamp 1729444858 [17:26:41]current date 1729445201 [17:26:41]FM_GetShiftState [17:26:41]SAM_PROTO_GetShiftState [17:26:41]wFMCommunicate request_size=4 [17:26:41]MH_SAM_APDU [17:26:41]CAPDU: 80 13 01 00 [17:26:41]Write to MH i2c: E2 08 00 F4 05 80 13 01 00 00 00 00 00 76 [17:26:41]Write i2c OK [17:26:41]MH_I2C_Read... [17:26:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:41]Read from MH i2c: E2 [17:26:41]MH_I2C_Read... [17:26:41]Read from MH i2c: E2 0E 00 [17:26:41]MH_I2C_Read... [17:26:41]Read from MH i2c: E2 0E 00 F4 05 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 7C [17:26:41]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:26:41]wFMCommunicate OK [17:26:41]SAM_PROTO_GetShiftState done [17:26:41]FM_GetShiftState done [17:26:41]opened in 1729383220 [17:26:41]opened+sec_in_day 1729469620 [17:26:41]quantity*price = 0 [17:26:41]sum+1 = 1 [17:26:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 304 20.10.2024 17:26 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30100970 ФМ: 0000000000963346 ФД: 69459 ФПД: 174144951262031 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T172641&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69459&fm=174144951262031&tin=02508201610067®Number=0000000000156251&sum=0 [17:26:42]StoreToDocumentArchive [17:26:42]shift 193 fd 69459 [17:26:42]save to /storage/0193/doc_00069459 [17:26:42]save last doc name /storage/0193/doc_00069459 to /storage/kkm_last_doc_name [17:26:42]save OK [17:26:42]Clear old archive folders... [17:26:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:26:42]tlvbuf is 00CE2440 [17:26:42]SAM_PROTO_ClearQueue [17:26:42]wFMCommunicate request_size=4 [17:26:42]MH_SAM_APDU [17:26:42]CAPDU: 80 09 00 00 [17:26:42]Write to MH i2c: E2 08 00 01 06 80 09 00 00 00 00 00 00 79 [17:26:42]Write i2c OK [17:26:42]MH_I2C_Read... [17:26:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:42]Read from MH i2c: E2 [17:26:42]MH_I2C_Read... [17:26:42]Read from MH i2c: E2 03 00 [17:26:42]MH_I2C_Read... [17:26:42]Read from MH i2c: E2 03 00 01 06 00 90 00 7B [17:26:42]RAPDU: 90 00 [17:26:42]wFMCommunicate OK [17:26:42]SAM_PROTO_ClearQueue done [17:26:42]KKMCreateOFDPacket [17:26:42]OFDProtocolAddRootSTLVToBuf [17:26:42]FM_MakeSignedData [17:26:42]FM_MakeSignedData [17:26:42]SAM_PROTO_SignData [17:26:42]wFMCommunicate request_size=4 [17:26:42]MH_SAM_APDU [17:26:42]CAPDU: 80 0D 01 02 [17:26:42]Write to MH i2c: E2 08 00 02 06 80 0D 01 02 00 00 00 00 81 [17:26:42]Write i2c OK [17:26:42]MH_I2C_Read... [17:26:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:42]Read from MH i2c: E2 [17:26:42]MH_I2C_Read... [17:26:42]Read from MH i2c: E2 03 00 [17:26:42]MH_I2C_Read... [17:26:42]Read from MH i2c: E2 03 00 02 06 00 90 00 7C [17:26:42]RAPDU: 90 00 [17:26:42]wFMCommunicate OK [17:26:42]wFMCommunicate request_size=255 [17:26:42]MH_SAM_APDU [17:26: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 35 FF 03 08 00 03 C4 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 30 01 00 00 F4 03 04 00 51 3D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 53 0F 01 00 35 04 06 00 9E [17:26:42]Write to MH i2c: E2 02 01 03 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 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 30 01 00 00 F4 03 04 00 51 3D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 53 0F 01 00 35 04 06 00 9E 00 00 59 [17:26:42]Write i2c OK [17:26:42]MH_I2C_Read... [17:26:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:42]Read from MH i2c: E2 [17:26:42]MH_I2C_Read... [17:26:42]Read from MH i2c: E2 03 00 [17:26:42]MH_I2C_Read... [17:26:42]Read from MH i2c: E2 03 00 03 06 00 90 00 7D [17:26:42]RAPDU: 90 00 [17:26:42]wFMCommunicate OK [17:26:42]wFMCommunicate request_size=10 [17:26:42]MH_SAM_APDU [17:26:42]CAPDU: 80 0D 02 02 05 62 47 F5 9B 4F [17:26:42]Write to MH i2c: E2 0D 00 04 06 80 0D 02 02 05 00 62 47 F5 9B 4F 00 00 16 [17:26:42]Write i2c OK [17:26:42]MH_I2C_Read... [17:26:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:42]Read from MH i2c: E2 [17:26:42]MH_I2C_Read... [17:26:42]Read from MH i2c: E2 03 00 [17:26:42]MH_I2C_Read... [17:26:42]Read from MH i2c: E2 03 00 04 06 00 90 00 7E [17:26:42]RAPDU: 90 00 [17:26:42]wFMCommunicate OK [17:26:42]wFMCommunicate request_size=4 [17:26:42]MH_SAM_APDU [17:26:42]CAPDU: 80 0D 03 02 [17:26:42]Write to MH i2c: E2 08 00 05 06 80 0D 03 02 00 00 00 00 86 [17:26:42]Write i2c OK [17:26:42]MH_I2C_Read... [17:26:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:42]Read from MH i2c: E2 [17:26:42]MH_I2C_Read... [17:26:42]Read from MH i2c: E2 0B 00 [17:26:42]MH_I2C_Read... [17:26:42]Read from MH i2c: E2 0B 00 05 06 00 1D F3 89 1A A8 E7 D2 EF 90 00 8A [17:26:42]RAPDU: 1D F3 89 1A A8 E7 D2 EF 90 00 [17:26:42]wFMCommunicate OK [17:26:42]SAM_PROTO_SignData done [17:26:42]FM_MakeSignedData done [17:26:42]CreateOFDProtocolMessage [17:26:42]wFMCommunicate request_size=4 [17:26:42]MH_SAM_APDU [17:26:42]CAPDU: 80 11 00 00 [17:26:42]Write to MH i2c: E2 08 00 06 06 80 11 00 00 00 00 00 00 86 [17:26:42]Write i2c OK [17:26:42]MH_I2C_Read... [17:26:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:42]Read from MH i2c: E2 [17:26:42]MH_I2C_Read... [17:26:42]Read from MH i2c: E2 17 00 [17:26:42]MH_I2C_Read... [17:26:42]Read from MH i2c: E2 17 00 06 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D8 [17:26:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:26:42]wFMCommunicate OK [17:26:42]CreateOFDProtocolMessage done [17:26:42]OFDSenderStorePacket 69459 [17:26:42]StoreOFDPacket docnum=69459 [17:26:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 69 31 07 01 ED 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 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 30 01 00 00 F4 03 04 00 51 3D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 53 0F 01 00 35 04 06 00 9E 62 47 F5 9B 4F 1D F3 89 1A A8 E7 D2 EF [17:26:42]CheckFolder [17:26:42]dirname=/storage/ofd_packets [17:26:42]CheckFolder done [17:26:42]ProducePacketName [17:26:42]name=ofd_packets/00069459 [17:26:42]NVStorageSaveData ofd_packets/00069459 [17:26:42]File name is /storage/ofd_packets/00069459 [17:26:42]Write 301 bytes [17:26:42]NVStorageSaveData done [17:26:42]OFDSenderStorePacket done [17:26:42]KKMCreateOFDPacket done [17:26:42]NVStorageSaveData kkm_last_timestamp [17:26:42]File name is /storage/kkm_last_timestamp [17:26:42]Write 4 bytes [17:26:42]NVStorageSaveData done [17:26:42]ExternCall_PrintAddStr [17:26:42]wPrintStart [17:26:42]Write to MH i2c: 01 00 00 07 06 0D [17:26:42]Write i2c OK [17:26:42]MH_I2C_Read... [17:26:42]Read from MH i2c: 01 [17:26:42]MH_I2C_Read... [17:26:42]Read from MH i2c: 01 07 00 [17:26:42]MH_I2C_Read... [17:26:42]Read from MH i2c: 01 07 00 07 06 00 00 00 00 00 FF 0F 22 [17:26:42]RasterBufferAndPrint [17:26:42]line Счет N : (1)2885189 [17:26:42]line ИНН: 02508201610067 [17:26:42]line Контрольно-Кассовый Чек [17:26:42]line ПРОДАЖА [17:26:42]line ТРК (МРК, ГНК) : 22 [17:26:42]line Товар: 2710124130 [17:26:42]line Аи-92-К-5 [17:26:42]line 5.060 * 0.00 [17:26:42]line = 0.00 [17:26:42]line НДС 12% НСП 1% [17:26:42]line > о реализуемом товаре [17:26:42]line ИТОГО: 0.00 [17:26:42]line НСП 1% : 0.00 [17:26:42]line НДС 12% : 0.00 [17:26:42]line Наличными: 0.00 [17:26:42]line Безнал.: 0.00 [17:26:42]line Место: АЗС № 85 "Партнер Нефть" [17:26:42]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:26:42]line СНО: Общий режим [17:26:42]line Чек 304 20.10.2024 17:26 [17:26:42]line Смена: 193 ФФД: 1.0 [17:26:42]line ЗНМ: 0300000167 [17:26:42]line РНМ: 0000000000156251 [17:26:42]line Версия ККМ: v1.0 [17:26:42]line Талоны: ТК ГПНА Online [17:26:42]line 30100970 [17:26:42]line ФМ: 0000000000963346 [17:26:42]line ФД: 69459 [17:26:42]line ФПД: 174144951262031 [17:26:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T172641&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69459&fm=174144951262031&tin=02508201610067®Number=0000000000156251&sum=0 [17:26:43]OFD Sender: Processing packet 69459 [packets to send 18, broken 17] [17:26:43]ProducePacketName [17:26:43]name=ofd_packets/00069459 [17:26:43]OFD Sender: To server: pG, [17:26:43]CommunicateWithHost lk.salyk.kg:30040 [17:26:43]ConnectInit lk.salyk.kg [17:26:43]written 0, free lines is 4095 [17:26:43]Connected sock=10 [17:26:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 69 31 07 01 ED 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 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 30 01 00 00 F4 03 04 00 51 3D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 53 0F 01 00 35 04 06 00 9E 62 47 F5 9B 4F 1D F3 89 1A A8 E7 D2 EF [17:26:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 2E F7 47 00 DB 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 53 0F 01 00 F4 03 04 00 F7 E6 14 67 B6 04 01 00 00 27 7E 1F 72 31 78 0E 0B [17:26:43]CommunicateWithHost err = 0 [17:26:43]CheckOFDResponse [17:26:43]1017 (14) - 77093643461234 [17:26:43]1041 (16) - 0000000000963346 [17:26:43]1040 (4) - 69459 [17:26:43]1012 (4) - 20.10.2024 11:18 [17:26:43]1206 (1) - 0 [17:26:43]OFD Sender: Remove packet 69459 [17:26:43]ProducePacketName [17:26:43]name=ofd_packets/00069459 [17:26:43]NVStorageDeleteData [17:26:43]Write to MH i2c: 01 00 00 31 06 37 [17:26:43]Write i2c OK [17:26:43]MH_I2C_Read... [17:26:43]Read from MH i2c: 01 [17:26:43]MH_I2C_Read... [17:26:43]Read from MH i2c: 01 07 00 [17:26:43]MH_I2C_Read... [17:26:43]Read from MH i2c: 01 07 00 31 06 00 00 00 00 00 02 0D 4D [17:26:43]RasterBufferAndPrint [17:26:43]line [17:26:43]line [17:26:43]line [17:26:43]line [17:26:43]line [17:26:43]written 0, free lines is 3336 [17:26:43]MH_Cut [17:26:43]Write to MH i2c: D1 01 00 38 06 01 10 [17:26:43]Write i2c OK [17:26:43]MH_I2C_Read... [17:26:43]Read from MH i2c: D1 [17:26:43]MH_I2C_Read... [17:26:43]Read from MH i2c: D1 01 00 [17:26:43]MH_I2C_Read... [17:26:43]Read from MH i2c: D1 01 00 38 06 00 0F [17:26:43]Write to MH i2c: 01 00 00 39 06 3F [17:26:43]Write i2c OK [17:26:43]MH_I2C_Read... [17:26:43]OFD Sender: No OFD packet to send [17:26:44]*** Cut start [17:26:44]*** Partial cut [17:26:44]*** CUTSNS_PIN = 1 [17:26:44]*** CUTSNS_PIN = 0 [17:26:44]*** Brake cut motor [17:26:44]Read from MH i2c: 01 [17:26:44]MH_I2C_Read... [17:26:44]*** Stop cut motor [17:26:44]*** Cut end [17:26:44]Read from MH i2c: 01 07 00 [17:26:44]MH_I2C_Read... [17:26:44]Read from MH i2c: 01 07 00 39 06 00 00 00 00 00 FF 0F 54 [17:26:44]process_action close_receipt done [17:26:44]requested_data is exist [17:26:44]produce_requested_data [17:26:44]requested_item fm.sn is exist - process it [17:26:44]wFMCommunicate request_size=4 [17:26:44]MH_SAM_APDU [17:26:44]CAPDU: 80 11 00 00 [17:26:44]Write to MH i2c: E2 08 00 3A 06 80 11 00 00 00 00 00 00 BA [17:26:44]Write i2c OK [17:26:44]MH_I2C_Read... [17:26:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:44]Read from MH i2c: E2 [17:26:44]MH_I2C_Read... [17:26:44]Read from MH i2c: E2 17 00 [17:26:44]MH_I2C_Read... [17:26:44]Read from MH i2c: E2 17 00 3A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0C [17:26:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:26:44]wFMCommunicate OK [17:26:44]requested_item fd.num is exist - process it [17:26:44]SAM_PROTO_GetFieldsCounters [17:26:44]wFMCommunicate request_size=4 [17:26:44]MH_SAM_APDU [17:26:44]CAPDU: 80 13 00 00 [17:26:44]Write to MH i2c: E2 08 00 3B 06 80 13 00 00 00 00 00 00 BD [17:26:44]Write i2c OK [17:26:44]MH_I2C_Read... [17:26:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:45]Read from MH i2c: E2 [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: E2 62 00 [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: E2 62 00 3B 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 53 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 8F [17:26:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 53 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:26:45]wFMCommunicate OK [17:26:45]SAM_PROTO_GetFieldsCounters done [17:26:45]requested_item shift.num is exist - process it [17:26:45]requested_item shift.opened is exist - process it [17:26:45]req_shift_opened [17:26:45]FM_GetShiftState [17:26:45]SAM_PROTO_GetShiftState [17:26:45]wFMCommunicate request_size=4 [17:26:45]MH_SAM_APDU [17:26:45]CAPDU: 80 13 01 00 [17:26:45]Write to MH i2c: E2 08 00 3C 06 80 13 01 00 00 00 00 00 BF [17:26:45]Write i2c OK [17:26:45]MH_I2C_Read... [17:26:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:45]Read from MH i2c: E2 [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: E2 0E 00 [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: E2 0E 00 3C 06 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 C5 [17:26:45]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:26:45]wFMCommunicate OK [17:26:45]SAM_PROTO_GetShiftState done [17:26:45]FM_GetShiftState done [17:26:45]req_shift_opened done [17:26:45]requested_item shift.open_date is exist - process it [17:26:45]req_shift_open_date [17:26:45]req_shift_open_date done [17:26:45]produce_requested_data done [17:26:45]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69459,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [17:26:45]process_action_free close_receipt [17:26:45]json_value_free [17:26:45]json_value_free done [17:26:45]process_json_proto returns [17:26:45]Send response to host [17:26:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69459,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [17:26:45]free response buf [17:26:45]execute_script done [17:26:45]execute_script returns [17:26:45]free content buf [17:26:45]Sock 9.Close socket [17:26:45]Sock 9.Thread stoped [17:26:48]OFD Sender: No OFD packet to send [17:26:53]OFD Sender: No OFD packet to send [17:26:58]OFD Sender: No OFD packet to send [17:27:03]OFD Sender: No OFD packet to send [17:27:08]OFD Sender: No OFD packet to send [17:27:13]OFD Sender: No OFD packet to send [17:27:18]OFD Sender: No OFD packet to send [17:27:23]OFD Sender: No OFD packet to send [17:27:28]OFD Sender: No OFD packet to send [17:27:33]OFD Sender: No OFD packet to send [17:27:38]OFD Sender: No OFD packet to send [17:27:43]OFD Sender: No OFD packet to send [17:27:48]OFD Sender: No OFD packet to send [17:27:54]OFD Sender: No OFD packet to send [17:27:59]OFD Sender: No OFD packet to send [17:28:04]OFD Sender: No OFD packet to send [17:28:09]OFD Sender: No OFD packet to send [17:28:14]OFD Sender: No OFD packet to send [17:28:19]OFD Sender: No OFD packet to send [17:28:24]OFD Sender: No OFD packet to send [17:28:29]OFD Sender: No OFD packet to send [17:28:34]OFD Sender: No OFD packet to send [17:28:34]accept exits with 8 [17:28:34]New connection [17:28:34]New thread 3067096420 created [17:28:34]Thread 3067239780 joined [17:28:34]Waiting for new connection... [17:28:34] Sock 8.Parse request [17:28:34]Sock 8.Check first char [17:28:34]Sock 8.First char is OK [17:28:34]request: POST /json_proto HTTP/1.0 [17:28:34]Method: POST [17:28:34]URL: /json_proto [17:28:34]Method is POST - this is cgi request [17:28:34]url: /json_proto [17:28:34]query_string will be loaded in cgi processing [17:28:34]execute_cgi json_proto POST (null) [17:28:34]execute_cgi path=json_proto method=POST [17:28:34]POST find Content-Length [17:28:34]Host: 172.17.50.3:8080 [17:28:34]Content-Length: 683 [17:28:34]Content-Type: application/json [17:28:34] [17:28:34]POST finish read [17:28:34]Found Content-Length = 683 [17:28:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:34]execute_script... [17:28:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:34]POST & json_proto [17:28:34]process_json_proto [17:28:34]json parsed OK: [17:28:34]protocol is kg_v1.0 [17:28:34]action value=close_receipt [17:28:34]process_action close_receipt [17:28:34]cmd_close_receipt [17:28:34]MH_GetDate [17:28:34]Write to MH i2c: F0 00 00 3D 06 32 [17:28:34]Write i2c OK [17:28:34]MH_I2C_Read... [17:28:34]Read from MH i2c: F0 [17:28:34]MH_I2C_Read... [17:28:34]Read from MH i2c: F0 09 00 [17:28:34]MH_I2C_Read... [17:28:34]Read from MH i2c: F0 09 00 3D 06 00 C3 3D 15 67 6B 98 1E 66 3E [17:28:34]GetLastDocTimeStamp 1729445201 [17:28:34]current date 1729445315 [17:28:34]FM_GetShiftState [17:28:34]SAM_PROTO_GetShiftState [17:28:34]wFMCommunicate request_size=4 [17:28:34]MH_SAM_APDU [17:28:34]CAPDU: 80 13 01 00 [17:28:34]Write to MH i2c: E2 08 00 3E 06 80 13 01 00 00 00 00 00 C1 [17:28:34]Write i2c OK [17:28:34]MH_I2C_Read... [17:28:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:34]Read from MH i2c: E2 [17:28:34]MH_I2C_Read... [17:28:34]Read from MH i2c: E2 0E 00 [17:28:34]MH_I2C_Read... [17:28:34]Read from MH i2c: E2 0E 00 3E 06 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 C7 [17:28:34]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:28:34]wFMCommunicate OK [17:28:34]SAM_PROTO_GetShiftState done [17:28:34]FM_GetShiftState done [17:28:34]opened in 1729383220 [17:28:34]opened+sec_in_day 1729469620 [17:28:34]quantity*price = 200031 [17:28:34]sum+1 = 200032 [17:28:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 305 20.10.2024 17:28 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69460 ФПД: 276989043826263 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T172835&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69460&fm=276989043826263&tin=02508201610067®Number=0000000000156251&sum=200000 [17:28:36]StoreToDocumentArchive [17:28:36]shift 193 fd 69460 [17:28:36]save to /storage/0193/doc_00069460 [17:28:36]save last doc name /storage/0193/doc_00069460 to /storage/kkm_last_doc_name [17:28:36]save OK [17:28:36]Clear old archive folders... [17:28:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:28:36]tlvbuf is B6F20A30 [17:28:36]SAM_PROTO_ClearQueue [17:28:36]wFMCommunicate request_size=4 [17:28:36]MH_SAM_APDU [17:28:36]CAPDU: 80 09 00 00 [17:28:36]Write to MH i2c: E2 08 00 4B 06 80 09 00 00 00 00 00 00 C3 [17:28:36]Write i2c OK [17:28:36]MH_I2C_Read... [17:28:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:28:36]Read from MH i2c: E2 [17:28:36]MH_I2C_Read... [17:28:36]Read from MH i2c: E2 03 00 [17:28:36]MH_I2C_Read... [17:28:36]Read from MH i2c: E2 03 00 4B 06 00 90 00 C5 [17:28:36]RAPDU: 90 00 [17:28:36]wFMCommunicate OK [17:28:36]SAM_PROTO_ClearQueue done [17:28:36]KKMCreateOFDPacket [17:28:36]OFDProtocolAddRootSTLVToBuf [17:28:36]FM_MakeSignedData [17:28:36]FM_MakeSignedData [17:28:36]SAM_PROTO_SignData [17:28:36]wFMCommunicate request_size=4 [17:28:36]MH_SAM_APDU [17:28:36]CAPDU: 80 0D 01 02 [17:28:36]Write to MH i2c: E2 08 00 4C 06 80 0D 01 02 00 00 00 00 CB [17:28:36]Write i2c OK [17:28:36]MH_I2C_Read... [17:28:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:28:36]Read from MH i2c: E2 [17:28:36]MH_I2C_Read... [17:28:36]Read from MH i2c: E2 03 00 [17:28:36]MH_I2C_Read... [17:28:36]Read from MH i2c: E2 03 00 4C 06 00 90 00 C6 [17:28:36]RAPDU: 90 00 [17:28:36]wFMCommunicate OK [17:28:36]wFMCommunicate request_size=255 [17:28:36]MH_SAM_APDU [17:28: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 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 C3 3D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 54 0F 01 00 35 04 06 00 FB [17:28:36]Write to MH i2c: E2 02 01 4D 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 C3 3D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 54 0F 01 00 35 04 06 00 FB 00 00 64 [17:28:36]Write i2c OK [17:28:36]MH_I2C_Read... [17:28:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:36]Read from MH i2c: E2 [17:28:36]MH_I2C_Read... [17:28:36]Read from MH i2c: E2 03 00 [17:28:36]MH_I2C_Read... [17:28:36]Read from MH i2c: E2 03 00 4D 06 00 90 00 C7 [17:28:36]RAPDU: 90 00 [17:28:36]wFMCommunicate OK [17:28:36]wFMCommunicate request_size=10 [17:28:36]MH_SAM_APDU [17:28:36]CAPDU: 80 0D 02 02 05 EB 89 90 5E 57 [17:28:36]Write to MH i2c: E2 0D 00 4E 06 80 0D 02 02 05 00 EB 89 90 5E 57 00 00 91 [17:28:36]Write i2c OK [17:28:36]MH_I2C_Read... [17:28:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:36]Read from MH i2c: E2 [17:28:36]MH_I2C_Read... [17:28:36]Read from MH i2c: E2 03 00 [17:28:36]MH_I2C_Read... [17:28:36]Read from MH i2c: E2 03 00 4E 06 00 90 00 C8 [17:28:36]RAPDU: 90 00 [17:28:36]wFMCommunicate OK [17:28:36]wFMCommunicate request_size=4 [17:28:36]MH_SAM_APDU [17:28:36]CAPDU: 80 0D 03 02 [17:28:36]Write to MH i2c: E2 08 00 4F 06 80 0D 03 02 00 00 00 00 D0 [17:28:36]Write i2c OK [17:28:36]MH_I2C_Read... [17:28:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:28:36]Read from MH i2c: E2 [17:28:36]MH_I2C_Read... [17:28:36]Read from MH i2c: E2 0B 00 [17:28:36]MH_I2C_Read... [17:28:36]Read from MH i2c: E2 0B 00 4F 06 00 F2 1A 2D 54 A2 E3 FD 6A 90 00 4A [17:28:36]RAPDU: F2 1A 2D 54 A2 E3 FD 6A 90 00 [17:28:36]wFMCommunicate OK [17:28:36]SAM_PROTO_SignData done [17:28:36]FM_MakeSignedData done [17:28:36]CreateOFDProtocolMessage [17:28:36]wFMCommunicate request_size=4 [17:28:36]MH_SAM_APDU [17:28:36]CAPDU: 80 11 00 00 [17:28:36]Write to MH i2c: E2 08 00 50 06 80 11 00 00 00 00 00 00 D0 [17:28:36]Write i2c OK [17:28:36]MH_I2C_Read... [17:28:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:36]Read from MH i2c: E2 [17:28:36]MH_I2C_Read... [17:28:36]Read from MH i2c: E2 17 00 [17:28:36]MH_I2C_Read... [17:28:36]Read from MH i2c: E2 17 00 50 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 22 [17:28:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:28:36]wFMCommunicate OK [17:28:36]CreateOFDProtocolMessage done [17:28:36]OFDSenderStorePacket 69460 [17:28:36]StoreOFDPacket docnum=69460 [17:28:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C4 BB 07 01 EC 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 C3 3D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 54 0F 01 00 35 04 06 00 FB EB 89 90 5E 57 F2 1A 2D 54 A2 E3 FD 6A [17:28:36]CheckFolder [17:28:36]dirname=/storage/ofd_packets [17:28:36]CheckFolder done [17:28:36]ProducePacketName [17:28:36]name=ofd_packets/00069460 [17:28:36]NVStorageSaveData ofd_packets/00069460 [17:28:36]File name is /storage/ofd_packets/00069460 [17:28:36]Write 301 bytes [17:28:36]NVStorageSaveData done [17:28:36]OFDSenderStorePacket done [17:28:36]KKMCreateOFDPacket done [17:28:36]NVStorageSaveData kkm_last_timestamp [17:28:36]File name is /storage/kkm_last_timestamp [17:28:36]Write 4 bytes [17:28:36]NVStorageSaveData done [17:28:36]ExternCall_PrintAddStr [17:28:36]wPrintStart [17:28:36]Write to MH i2c: 01 00 00 51 06 57 [17:28:36]Write i2c OK [17:28:36]MH_I2C_Read... [17:28:36]Read from MH i2c: 01 [17:28:36]MH_I2C_Read... [17:28:36]Read from MH i2c: 01 07 00 [17:28:36]MH_I2C_Read... [17:28:36]Read from MH i2c: 01 07 00 51 06 00 00 00 00 00 FF 0F 6C [17:28:36]RasterBufferAndPrint [17:28:36]line Счет N : (1)2885190 [17:28:36]line ИНН: 02508201610067 [17:28:36]line Контрольно-Кассовый Чек [17:28:36]line ПРОДАЖА [17:28:36]line ТРК (МРК, ГНК) : 42 [17:28:36]line Товар: 2710124130 [17:28:36]line Аи-92-К-5 [17:28:36]line 29.900 * 66.90 [17:28:36]line = 2000.31 [17:28:36]line НДС 12% НСП 1% [17:28:36]line > о реализуемом товаре [17:28:36]line ОКРУГЛЕНИЕ: -0.31 [17:28:36]line ИТОГО: 2000.00 [17:28:36]line Внесено: 2000.00 [17:28:36]line СДАЧА: 0.00 [17:28:36]line НСП 1% : 17.70 [17:28:36]line НДС 12% : 212.42 [17:28:36]line Наличными: 2000.00 [17:28:36]line Безнал.: 0.00 [17:28:36]line Место: АЗС № 85 "Партнер Нефть" [17:28:36]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:28:36]line СНО: Общий режим [17:28:36]line Чек 305 20.10.2024 17:28 [17:28:36]line Смена: 193 ФФД: 1.0 [17:28:36]line ЗНМ: 0300000167 [17:28:36]line РНМ: 0000000000156251 [17:28:36]line Версия ККМ: v1.0 [17:28:36]line ФМ: 0000000000963346 [17:28:36]line ФД: 69460 [17:28:36]line ФПД: 276989043826263 [17:28:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T172835&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69460&fm=276989043826263&tin=02508201610067®Number=0000000000156251&sum=200000 [17:28:36]OFD Sender: Processing packet 69460 [packets to send 18, broken 17] [17:28:36]ProducePacketName [17:28:36]name=ofd_packets/00069460 [17:28:36]OFD Sender: To server: pG, [17:28:36]CommunicateWithHost lk.salyk.kg:30040 [17:28:36]ConnectInit lk.salyk.kg [17:28:36]written 0, free lines is 4095 [17:28:36]Connected sock=10 [17:28:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C4 BB 07 01 EC 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 C3 3D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 54 0F 01 00 35 04 06 00 FB EB 89 90 5E 57 F2 1A 2D 54 A2 E3 FD 6A [17:28:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 C3 F4 47 00 2C 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 54 0F 01 00 F4 03 04 00 69 E7 14 67 B6 04 01 00 00 20 77 A3 D5 B8 37 9E B8 [17:28:37]CommunicateWithHost err = 0 [17:28:37]CheckOFDResponse [17:28:37]1017 (14) - 77093643461234 [17:28:37]1041 (16) - 0000000000963346 [17:28:37]1040 (4) - 69460 [17:28:37]1012 (4) - 20.10.2024 11:20 [17:28:37]1206 (1) - 0 [17:28:37]OFD Sender: Remove packet 69460 [17:28:37]ProducePacketName [17:28:37]name=ofd_packets/00069460 [17:28:37]NVStorageDeleteData [17:28:37]Write to MH i2c: 01 00 00 7C 06 82 [17:28:37]Write i2c OK [17:28:37]MH_I2C_Read... [17:28:37]Read from MH i2c: 01 [17:28:37]MH_I2C_Read... [17:28:37]Read from MH i2c: 01 07 00 [17:28:37]MH_I2C_Read... [17:28:37]Read from MH i2c: 01 07 00 7C 06 00 00 00 00 00 FF 0C 94 [17:28:37]RasterBufferAndPrint [17:28:37]line [17:28:37]line [17:28:37]line [17:28:37]line [17:28:37]line [17:28:37]written 0, free lines is 3333 [17:28:37]MH_Cut [17:28:37]Write to MH i2c: D1 01 00 83 06 01 5B [17:28:37]Write i2c OK [17:28:37]MH_I2C_Read... [17:28:37]Read from MH i2c: D1 [17:28:37]MH_I2C_Read... [17:28:37]Read from MH i2c: D1 01 00 [17:28:37]MH_I2C_Read... [17:28:37]Read from MH i2c: D1 01 00 83 06 00 5A [17:28:37]Write to MH i2c: 01 00 00 84 06 8A [17:28:37]Write i2c OK [17:28:37]MH_I2C_Read... [17:28:37]OFD Sender: No OFD packet to send [17:28:38]*** Cut start [17:28:38]*** Partial cut [17:28:38]*** CUTSNS_PIN = 1 [17:28:38]*** CUTSNS_PIN = 0 [17:28:38]*** Brake cut motor [17:28:38]Read from MH i2c: 01 [17:28:38]MH_I2C_Read... [17:28:38]*** Stop cut motor [17:28:38]*** Cut end [17:28:38]Read from MH i2c: 01 07 00 [17:28:38]MH_I2C_Read... [17:28:38]Read from MH i2c: 01 07 00 84 06 00 00 00 00 00 FF 0F 9F [17:28:38]process_action close_receipt done [17:28:38]requested_data is exist [17:28:38]produce_requested_data [17:28:38]requested_item fm.sn is exist - process it [17:28:38]wFMCommunicate request_size=4 [17:28:38]MH_SAM_APDU [17:28:38]CAPDU: 80 11 00 00 [17:28:38]Write to MH i2c: E2 08 00 85 06 80 11 00 00 00 00 00 00 05 [17:28:38]Write i2c OK [17:28:38]MH_I2C_Read... [17:28:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:38]Read from MH i2c: E2 [17:28:38]MH_I2C_Read... [17:28:38]Read from MH i2c: E2 17 00 [17:28:38]MH_I2C_Read... [17:28:38]Read from MH i2c: E2 17 00 85 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 57 [17:28:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:28:38]wFMCommunicate OK [17:28:38]requested_item fd.num is exist - process it [17:28:38]SAM_PROTO_GetFieldsCounters [17:28:38]wFMCommunicate request_size=4 [17:28:38]MH_SAM_APDU [17:28:38]CAPDU: 80 13 00 00 [17:28:38]Write to MH i2c: E2 08 00 86 06 80 13 00 00 00 00 00 00 08 [17:28:38]Write i2c OK [17:28:38]MH_I2C_Read... [17:28:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:28:38]Read from MH i2c: E2 [17:28:38]MH_I2C_Read... [17:28:38]Read from MH i2c: E2 62 00 [17:28:38]MH_I2C_Read... [17:28:38]Read from MH i2c: E2 62 00 86 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 54 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 DE [17:28:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 54 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:28:38]wFMCommunicate OK [17:28:38]SAM_PROTO_GetFieldsCounters done [17:28:38]requested_item shift.num is exist - process it [17:28:38]requested_item shift.opened is exist - process it [17:28:38]req_shift_opened [17:28:38]FM_GetShiftState [17:28:38]SAM_PROTO_GetShiftState [17:28:38]wFMCommunicate request_size=4 [17:28:38]MH_SAM_APDU [17:28:38]CAPDU: 80 13 01 00 [17:28:38]Write to MH i2c: E2 08 00 87 06 80 13 01 00 00 00 00 00 0A [17:28:38]Write i2c OK [17:28:38]MH_I2C_Read... [17:28:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:38]Read from MH i2c: E2 [17:28:38]MH_I2C_Read... [17:28:38]Read from MH i2c: E2 0E 00 [17:28:38]MH_I2C_Read... [17:28:38]Read from MH i2c: E2 0E 00 87 06 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 10 [17:28:38]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:28:38]wFMCommunicate OK [17:28:38]SAM_PROTO_GetShiftState done [17:28:38]FM_GetShiftState done [17:28:38]req_shift_opened done [17:28:38]requested_item shift.open_date is exist - process it [17:28:38]req_shift_open_date [17:28:38]req_shift_open_date done [17:28:38]produce_requested_data done [17:28:38]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69460,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [17:28:38]process_action_free close_receipt [17:28:38]json_value_free [17:28:38]json_value_free done [17:28:38]process_json_proto returns [17:28:38]Send response to host [17:28:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69460,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [17:28:38]free response buf [17:28:38]execute_script done [17:28:38]execute_script returns [17:28:38]free content buf [17:28:38]Sock 8.Close socket [17:28:38]Sock 8.Thread stoped [17:28:42]OFD Sender: No OFD packet to send [17:28:47]OFD Sender: No OFD packet to send [17:28:52]OFD Sender: No OFD packet to send [17:28:57]OFD Sender: No OFD packet to send [17:29:02]OFD Sender: No OFD packet to send [17:29:07]OFD Sender: No OFD packet to send [17:29:12]OFD Sender: No OFD packet to send [17:29:17]OFD Sender: No OFD packet to send [17:29:22]OFD Sender: No OFD packet to send [17:29:27]OFD Sender: No OFD packet to send [17:29:32]OFD Sender: No OFD packet to send [17:29:37]OFD Sender: No OFD packet to send [17:29:42]OFD Sender: No OFD packet to send [17:29:47]OFD Sender: No OFD packet to send [17:29:52]OFD Sender: No OFD packet to send [17:29:57]OFD Sender: No OFD packet to send [17:30:02]OFD Sender: No OFD packet to send [17:30:07]OFD Sender: No OFD packet to send [17:30:12]OFD Sender: No OFD packet to send [17:30:17]OFD Sender: No OFD packet to send [17:30:22]OFD Sender: No OFD packet to send [17:30:27]OFD Sender: No OFD packet to send [17:30:32]OFD Sender: No OFD packet to send [17:30:37]OFD Sender: No OFD packet to send [17:30:42]OFD Sender: No OFD packet to send [17:30:47]OFD Sender: No OFD packet to send [17:30:52]OFD Sender: No OFD packet to send [17:30:57]OFD Sender: No OFD packet to send [17:31:02]OFD Sender: No OFD packet to send [17:31:07]OFD Sender: No OFD packet to send [17:31:12]OFD Sender: No OFD packet to send [17:31:17]OFD Sender: No OFD packet to send [17:31:22]OFD Sender: No OFD packet to send [17:31:27]OFD Sender: No OFD packet to send [17:31:32]OFD Sender: No OFD packet to send [17:31:37]OFD Sender: No OFD packet to send [17:31:42]OFD Sender: No OFD packet to send [17:31:47]OFD Sender: No OFD packet to send [17:31:52]OFD Sender: No OFD packet to send [17:31:57]OFD Sender: No OFD packet to send [17:32:02]OFD Sender: No OFD packet to send [17:32:07]OFD Sender: No OFD packet to send [17:32:12]OFD Sender: No OFD packet to send [17:32:17]OFD Sender: No OFD packet to send [17:32:22]accept exits with 9 [17:32:22]New connection [17:32:22]New thread 3067239780 created [17:32:22]Thread 3067096420 joined [17:32:22]Waiting for new connection... [17:32:22] Sock 9.Parse request [17:32:22]Sock 9.Check first char [17:32:22]Sock 9.First char is OK [17:32:22]request: POST /json_proto HTTP/1.0 [17:32:22]Method: POST [17:32:22]URL: /json_proto [17:32:22]Method is POST - this is cgi request [17:32:22]url: /json_proto [17:32:22]query_string will be loaded in cgi processing [17:32:22]execute_cgi json_proto POST (null) [17:32:22]execute_cgi path=json_proto method=POST [17:32:22]POST find Content-Length [17:32:22]Host: 172.17.50.3:8080 [17:32:22]Content-Length: 678 [17:32:22]Content-Type: application/json [17:32:22] [17:32:22]POST finish read [17:32:22]Found Content-Length = 678 [17:32:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:22]execute_script... [17:32:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:22]POST & json_proto [17:32:22]process_json_proto [17:32:22]json parsed OK: [17:32:22]protocol is kg_v1.0 [17:32:22]action value=close_receipt [17:32:22]process_action close_receipt [17:32:22]cmd_close_receipt [17:32:22]MH_GetDate [17:32:22]Write to MH i2c: F0 00 00 88 06 7D [17:32:22]Write i2c OK [17:32:22]MH_I2C_Read... [17:32:22]Read from MH i2c: F0 [17:32:22]MH_I2C_Read... [17:32:22]Read from MH i2c: F0 09 00 [17:32:22]MH_I2C_Read... [17:32:22]Read from MH i2c: F0 09 00 88 06 00 A7 3E 15 67 6B 98 1E 66 6E [17:32:22]GetLastDocTimeStamp 1729445315 [17:32:22]current date 1729445543 [17:32:22]FM_GetShiftState [17:32:22]SAM_PROTO_GetShiftState [17:32:22]wFMCommunicate request_size=4 [17:32:22]MH_SAM_APDU [17:32:22]CAPDU: 80 13 01 00 [17:32:22]Write to MH i2c: E2 08 00 89 06 80 13 01 00 00 00 00 00 0C [17:32:22]Write i2c OK [17:32:22]MH_I2C_Read... [17:32:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:22]Read from MH i2c: E2 [17:32:22]MH_I2C_Read... [17:32:22]Read from MH i2c: E2 0E 00 [17:32:22]MH_I2C_Read... [17:32:22]Read from MH i2c: E2 0E 00 89 06 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 12 [17:32:22]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:32:22]wFMCommunicate OK [17:32:22]SAM_PROTO_GetShiftState done [17:32:22]FM_GetShiftState done [17:32:22]opened in 1729383220 [17:32:22]opened+sec_in_day 1729469620 [17:32:22]quantity*price = 50041 [17:32:22]sum+1 = 50042 [17:32:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 306 20.10.2024 17:32 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69461 ФПД: 143237532031491 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T173223&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69461&fm=143237532031491&tin=02508201610067®Number=0000000000156251&sum=50000 [17:32:23]StoreToDocumentArchive [17:32:23]shift 193 fd 69461 [17:32:23]save to /storage/0193/doc_00069461 [17:32:23]save last doc name /storage/0193/doc_00069461 to /storage/kkm_last_doc_name [17:32:23]save OK [17:32:23]Clear old archive folders... [17:32:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:32:23]tlvbuf is 00CEB4D0 [17:32:23]SAM_PROTO_ClearQueue [17:32:23]wFMCommunicate request_size=4 [17:32:23]MH_SAM_APDU [17:32:23]CAPDU: 80 09 00 00 [17:32:23]Write to MH i2c: E2 08 00 96 06 80 09 00 00 00 00 00 00 0E [17:32:23]Write i2c OK [17:32:23]MH_I2C_Read... [17:32:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:32:23]Read from MH i2c: E2 [17:32:23]MH_I2C_Read... [17:32:23]Read from MH i2c: E2 03 00 [17:32:23]MH_I2C_Read... [17:32:23]Read from MH i2c: E2 03 00 96 06 00 90 00 10 [17:32:23]RAPDU: 90 00 [17:32:23]wFMCommunicate OK [17:32:23]SAM_PROTO_ClearQueue done [17:32:23]KKMCreateOFDPacket [17:32:23]OFDProtocolAddRootSTLVToBuf [17:32:23]FM_MakeSignedData [17:32:23]FM_MakeSignedData [17:32:23]SAM_PROTO_SignData [17:32:23]wFMCommunicate request_size=4 [17:32:23]MH_SAM_APDU [17:32:23]CAPDU: 80 0D 01 02 [17:32:23]Write to MH i2c: E2 08 00 97 06 80 0D 01 02 00 00 00 00 16 [17:32:23]Write i2c OK [17:32:23]MH_I2C_Read... [17:32:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:32:23]Read from MH i2c: E2 [17:32:23]MH_I2C_Read... [17:32:23]Read from MH i2c: E2 03 00 [17:32:23]MH_I2C_Read... [17:32:23]Read from MH i2c: E2 03 00 97 06 00 90 00 11 [17:32:23]RAPDU: 90 00 [17:32:23]wFMCommunicate OK [17:32:23]wFMCommunicate request_size=255 [17:32:23]MH_SAM_APDU [17:32:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 A7 3E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 55 0F 01 00 35 04 06 00 82 [17:32:23]Write to MH i2c: E2 02 01 98 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 A7 3E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 55 0F 01 00 35 04 06 00 82 00 00 DB [17:32:23]Write i2c OK [17:32:23]MH_I2C_Read... [17:32:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:24]Read from MH i2c: E2 [17:32:24]MH_I2C_Read... [17:32:24]Read from MH i2c: E2 03 00 [17:32:24]MH_I2C_Read... [17:32:24]Read from MH i2c: E2 03 00 98 06 00 90 00 12 [17:32:24]RAPDU: 90 00 [17:32:24]wFMCommunicate OK [17:32:24]wFMCommunicate request_size=10 [17:32:24]MH_SAM_APDU [17:32:24]CAPDU: 80 0D 02 02 05 46 16 37 1A 03 [17:32:24]Write to MH i2c: E2 0D 00 99 06 80 0D 02 02 05 00 46 16 37 1A 03 00 00 D3 [17:32:24]Write i2c OK [17:32:24]MH_I2C_Read... [17:32:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:24]Read from MH i2c: E2 [17:32:24]MH_I2C_Read... [17:32:24]Read from MH i2c: E2 03 00 [17:32:24]MH_I2C_Read... [17:32:24]Read from MH i2c: E2 03 00 99 06 00 90 00 13 [17:32:24]RAPDU: 90 00 [17:32:24]wFMCommunicate OK [17:32:24]wFMCommunicate request_size=4 [17:32:24]MH_SAM_APDU [17:32:24]CAPDU: 80 0D 03 02 [17:32:24]Write to MH i2c: E2 08 00 9A 06 80 0D 03 02 00 00 00 00 1B [17:32:24]Write i2c OK [17:32:24]MH_I2C_Read... [17:32:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:32:24]Read from MH i2c: E2 [17:32:24]MH_I2C_Read... [17:32:24]Read from MH i2c: E2 0B 00 [17:32:24]MH_I2C_Read... [17:32:24]Read from MH i2c: E2 0B 00 9A 06 00 D7 0B 9D F0 B9 9E 2D AF 90 00 BE [17:32:24]RAPDU: D7 0B 9D F0 B9 9E 2D AF 90 00 [17:32:24]wFMCommunicate OK [17:32:24]SAM_PROTO_SignData done [17:32:24]FM_MakeSignedData done [17:32:24]CreateOFDProtocolMessage [17:32:24]wFMCommunicate request_size=4 [17:32:24]MH_SAM_APDU [17:32:24]CAPDU: 80 11 00 00 [17:32:24]Write to MH i2c: E2 08 00 9B 06 80 11 00 00 00 00 00 00 1B [17:32:24]Write i2c OK [17:32:24]MH_I2C_Read... [17:32:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:24]Read from MH i2c: E2 [17:32:24]MH_I2C_Read... [17:32:24]Read from MH i2c: E2 17 00 [17:32:24]MH_I2C_Read... [17:32:24]Read from MH i2c: E2 17 00 9B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6D [17:32:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:32:24]wFMCommunicate OK [17:32:24]CreateOFDProtocolMessage done [17:32:24]OFDSenderStorePacket 69461 [17:32:24]StoreOFDPacket docnum=69461 [17:32:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 5E F3 07 01 C2 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 A7 3E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 55 0F 01 00 35 04 06 00 82 46 16 37 1A 03 D7 0B 9D F0 B9 9E 2D AF [17:32:24]CheckFolder [17:32:24]dirname=/storage/ofd_packets [17:32:24]CheckFolder done [17:32:24]ProducePacketName [17:32:24]name=ofd_packets/00069461 [17:32:24]NVStorageSaveData ofd_packets/00069461 [17:32:24]File name is /storage/ofd_packets/00069461 [17:32:24]Write 301 bytes [17:32:24]NVStorageSaveData done [17:32:24]OFDSenderStorePacket done [17:32:24]KKMCreateOFDPacket done [17:32:24]NVStorageSaveData kkm_last_timestamp [17:32:24]File name is /storage/kkm_last_timestamp [17:32:24]Write 4 bytes [17:32:24]NVStorageSaveData done [17:32:24]ExternCall_PrintAddStr [17:32:24]wPrintStart [17:32:24]Write to MH i2c: 01 00 00 9C 06 A2 [17:32:24]Write i2c OK [17:32:24]MH_I2C_Read... [17:32:24]Read from MH i2c: 01 [17:32:24]MH_I2C_Read... [17:32:24]Read from MH i2c: 01 07 00 [17:32:24]MH_I2C_Read... [17:32:24]Read from MH i2c: 01 07 00 9C 06 00 00 00 00 00 FF 0F B7 [17:32:24]RasterBufferAndPrint [17:32:24]line Счет N : (1)2885192 [17:32:24]line ИНН: 02508201610067 [17:32:24]line Контрольно-Кассовый Чек [17:32:24]line ПРОДАЖА [17:32:24]line ТРК (МРК, ГНК) : 12 [17:32:24]line Товар: 2710124130 [17:32:24]line Аи-92-К-5 [17:32:24]line 7.480 * 66.90 [17:32:24]line = 500.41 [17:32:24]line НДС 12% НСП 1% [17:32:24]line > о реализуемом товаре [17:32:24]line ОКРУГЛЕНИЕ: -0.41 [17:32:24]line ИТОГО: 500.00 [17:32:24]line Внесено: 500.00 [17:32:24]line СДАЧА: 0.00 [17:32:24]line НСП 1% : 4.43 [17:32:24]line НДС 12% : 53.14 [17:32:24]line Наличными: 500.00 [17:32:24]line Безнал.: 0.00 [17:32:24]line Место: АЗС № 85 "Партнер Нефть" [17:32:24]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:32:24]line СНО: Общий режим [17:32:24]line Чек 306 20.10.2024 17:32 [17:32:24]line Смена: 193 ФФД: 1.0 [17:32:24]line ЗНМ: 0300000167 [17:32:24]line РНМ: 0000000000156251 [17:32:24]line Версия ККМ: v1.0 [17:32:24]line ФМ: 0000000000963346 [17:32:24]line ФД: 69461 [17:32:24]line ФПД: 143237532031491 [17:32:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T173223&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69461&fm=143237532031491&tin=02508201610067®Number=0000000000156251&sum=50000 [17:32:24]OFD Sender: Processing packet 69461 [packets to send 18, broken 17] [17:32:24]ProducePacketName [17:32:24]name=ofd_packets/00069461 [17:32:24]OFD Sender: To server: pG, [17:32:24]CommunicateWithHost lk.salyk.kg:30040 [17:32:24]ConnectInit lk.salyk.kg [17:32:24]written 0, free lines is 4095 [17:32:24]Connected sock=10 [17:32:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 5E F3 07 01 C2 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 A7 3E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 55 0F 01 00 35 04 06 00 82 46 16 37 1A 03 D7 0B 9D F0 B9 9E 2D AF [17:32:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 D9 28 47 00 8D 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 55 0F 01 00 F4 03 04 00 4D E8 14 67 B6 04 01 00 00 B3 C7 01 78 3B 9F B1 BE [17:32:24]CommunicateWithHost err = 0 [17:32:24]CheckOFDResponse [17:32:24]1017 (14) - 77093643461234 [17:32:24]1041 (16) - 0000000000963346 [17:32:24]1040 (4) - 69461 [17:32:24]1012 (4) - 20.10.2024 11:23 [17:32:24]1206 (1) - 0 [17:32:24]OFD Sender: Remove packet 69461 [17:32:24]ProducePacketName [17:32:24]name=ofd_packets/00069461 [17:32:24]NVStorageDeleteData [17:32:24]Write to MH i2c: 01 00 00 C7 06 CD [17:32:25]Write i2c OK [17:32:25]MH_I2C_Read... [17:32:25]Read from MH i2c: 01 [17:32:25]MH_I2C_Read... [17:32:25]Read from MH i2c: 01 07 00 [17:32:25]MH_I2C_Read... [17:32:25]Read from MH i2c: 01 07 00 C7 06 00 00 00 00 00 E0 0C C0 [17:32:25]RasterBufferAndPrint [17:32:25]line [17:32:25]line [17:32:25]line [17:32:25]line [17:32:25]line [17:32:25]written 0, free lines is 3302 [17:32:25]MH_Cut [17:32:25]Write to MH i2c: D1 01 00 CE 06 01 A6 [17:32:25]Write i2c OK [17:32:25]MH_I2C_Read... [17:32:25]Read from MH i2c: D1 [17:32:25]MH_I2C_Read... [17:32:25]Read from MH i2c: D1 01 00 [17:32:25]MH_I2C_Read... [17:32:25]Read from MH i2c: D1 01 00 CE 06 00 A5 [17:32:25]Write to MH i2c: 01 00 00 CF 06 D5 [17:32:25]Write i2c OK [17:32:25]MH_I2C_Read... [17:32:25]OFD Sender: No OFD packet to send [17:32:25]*** Cut start [17:32:25]*** Partial cut [17:32:25]*** CUTSNS_PIN = 1 [17:32:25]*** CUTSNS_PIN = 0 [17:32:25]*** Brake cut motor [17:32:26]Read from MH i2c: 01 [17:32:26]MH_I2C_Read... [17:32:26]*** Stop cut motor [17:32:26]*** Cut end [17:32:26]Read from MH i2c: 01 07 00 [17:32:26]MH_I2C_Read... [17:32:26]Read from MH i2c: 01 07 00 CF 06 00 00 00 00 00 FF 0F EA [17:32:26]process_action close_receipt done [17:32:26]requested_data is exist [17:32:26]produce_requested_data [17:32:26]requested_item fm.sn is exist - process it [17:32:26]wFMCommunicate request_size=4 [17:32:26]MH_SAM_APDU [17:32:26]CAPDU: 80 11 00 00 [17:32:26]Write to MH i2c: E2 08 00 D0 06 80 11 00 00 00 00 00 00 50 [17:32:26]Write i2c OK [17:32:26]MH_I2C_Read... [17:32:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:26]Read from MH i2c: E2 [17:32:26]MH_I2C_Read... [17:32:26]Read from MH i2c: E2 17 00 [17:32:26]MH_I2C_Read... [17:32:26]Read from MH i2c: E2 17 00 D0 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A2 [17:32:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:32:26]wFMCommunicate OK [17:32:26]requested_item fd.num is exist - process it [17:32:26]SAM_PROTO_GetFieldsCounters [17:32:26]wFMCommunicate request_size=4 [17:32:26]MH_SAM_APDU [17:32:26]CAPDU: 80 13 00 00 [17:32:26]Write to MH i2c: E2 08 00 D1 06 80 13 00 00 00 00 00 00 53 [17:32:26]Write i2c OK [17:32:26]MH_I2C_Read... [17:32:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:32:26]Read from MH i2c: E2 [17:32:26]MH_I2C_Read... [17:32:26]Read from MH i2c: E2 62 00 [17:32:26]MH_I2C_Read... [17:32:26]Read from MH i2c: E2 62 00 D1 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 55 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 2D [17:32:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 55 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:32:26]wFMCommunicate OK [17:32:26]SAM_PROTO_GetFieldsCounters done [17:32:26]requested_item shift.num is exist - process it [17:32:26]requested_item shift.opened is exist - process it [17:32:26]req_shift_opened [17:32:26]FM_GetShiftState [17:32:26]SAM_PROTO_GetShiftState [17:32:26]wFMCommunicate request_size=4 [17:32:26]MH_SAM_APDU [17:32:26]CAPDU: 80 13 01 00 [17:32:26]Write to MH i2c: E2 08 00 D2 06 80 13 01 00 00 00 00 00 55 [17:32:26]Write i2c OK [17:32:26]MH_I2C_Read... [17:32:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:26]Read from MH i2c: E2 [17:32:26]MH_I2C_Read... [17:32:26]Read from MH i2c: E2 0E 00 [17:32:26]MH_I2C_Read... [17:32:26]Read from MH i2c: E2 0E 00 D2 06 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 5B [17:32:26]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:32:26]wFMCommunicate OK [17:32:26]SAM_PROTO_GetShiftState done [17:32:26]FM_GetShiftState done [17:32:26]req_shift_opened done [17:32:26]requested_item shift.open_date is exist - process it [17:32:26]req_shift_open_date [17:32:26]req_shift_open_date done [17:32:26]produce_requested_data done [17:32:26]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69461,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [17:32:26]process_action_free close_receipt [17:32:26]json_value_free [17:32:26]json_value_free done [17:32:26]process_json_proto returns [17:32:26]Send response to host [17:32:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69461,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [17:32:26]free response buf [17:32:26]execute_script done [17:32:26]execute_script returns [17:32:26]free content buf [17:32:26]Sock 9.Close socket [17:32:26]Sock 9.Thread stoped [17:32:30]OFD Sender: No OFD packet to send [17:32:35]OFD Sender: No OFD packet to send [17:32:40]OFD Sender: No OFD packet to send [17:32:45]OFD Sender: No OFD packet to send [17:32:50]OFD Sender: No OFD packet to send [17:32:55]OFD Sender: No OFD packet to send [17:33:00]OFD Sender: No OFD packet to send [17:33:05]OFD Sender: No OFD packet to send [17:33:10]OFD Sender: No OFD packet to send [17:33:15]OFD Sender: No OFD packet to send [17:33:20]OFD Sender: No OFD packet to send [17:33:25]OFD Sender: No OFD packet to send [17:33:30]OFD Sender: No OFD packet to send [17:33:35]OFD Sender: No OFD packet to send [17:33:40]OFD Sender: No OFD packet to send [17:33:45]OFD Sender: No OFD packet to send [17:33:50]OFD Sender: No OFD packet to send [17:33:55]OFD Sender: No OFD packet to send [17:34:00]OFD Sender: No OFD packet to send [17:34:05]OFD Sender: No OFD packet to send [17:34:10]OFD Sender: No OFD packet to send [17:34:15]OFD Sender: No OFD packet to send [17:34:20]OFD Sender: No OFD packet to send [17:34:25]OFD Sender: No OFD packet to send [17:34:30]OFD Sender: No OFD packet to send [17:34:35]OFD Sender: No OFD packet to send [17:34:40]OFD Sender: No OFD packet to send [17:34:42]accept exits with 8 [17:34:42]New connection [17:34:42]New thread 3067096420 created [17:34:42]Thread 3067239780 joined [17:34:42]Waiting for new connection... [17:34:42] Sock 8.Parse request [17:34:42]Sock 8.Check first char [17:34:42]Sock 8.First char is OK [17:34:42]request: POST /json_proto HTTP/1.0 [17:34:42]Method: POST [17:34:42]URL: /json_proto [17:34:42]Method is POST - this is cgi request [17:34:42]url: /json_proto [17:34:42]query_string will be loaded in cgi processing [17:34:42]execute_cgi json_proto POST (null) [17:34:42]execute_cgi path=json_proto method=POST [17:34:42]POST find Content-Length [17:34:42]Host: 172.17.50.3:8080 [17:34:42]Content-Length: 680 [17:34:42]Content-Type: application/json [17:34:42] [17:34:42]POST finish read [17:34:42]Found Content-Length = 680 [17:34:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 21.000, "sum" : 1600.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:42]execute_script... [17:34:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 21.000, "sum" : 1600.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:42]POST & json_proto [17:34:42]process_json_proto [17:34:42]json parsed OK: [17:34:42]protocol is kg_v1.0 [17:34:42]action value=close_receipt [17:34:42]process_action close_receipt [17:34:42]cmd_close_receipt [17:34:42]MH_GetDate [17:34:42]Write to MH i2c: F0 00 00 D3 06 C8 [17:34:42]Write i2c OK [17:34:42]MH_I2C_Read... [17:34:42]Read from MH i2c: F0 [17:34:42]MH_I2C_Read... [17:34:42]Read from MH i2c: F0 09 00 [17:34:42]MH_I2C_Read... [17:34:42]Read from MH i2c: F0 09 00 D3 06 00 32 3F 15 67 6B 98 1E 66 45 [17:34:42]GetLastDocTimeStamp 1729445543 [17:34:42]current date 1729445682 [17:34:42]FM_GetShiftState [17:34:42]SAM_PROTO_GetShiftState [17:34:42]wFMCommunicate request_size=4 [17:34:42]MH_SAM_APDU [17:34:42]CAPDU: 80 13 01 00 [17:34:42]Write to MH i2c: E2 08 00 D4 06 80 13 01 00 00 00 00 00 57 [17:34:42]Write i2c OK [17:34:42]MH_I2C_Read... [17:34:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:42]Read from MH i2c: E2 [17:34:42]MH_I2C_Read... [17:34:42]Read from MH i2c: E2 0E 00 [17:34:42]MH_I2C_Read... [17:34:42]Read from MH i2c: E2 0E 00 D4 06 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 5D [17:34:42]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:34:42]wFMCommunicate OK [17:34:42]SAM_PROTO_GetShiftState done [17:34:42]FM_GetShiftState done [17:34:42]opened in 1729383220 [17:34:42]opened+sec_in_day 1729469620 [17:34:42]quantity*price = 160020 [17:34:42]sum+1 = 160021 [17:34:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.93 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 307 20.10.2024 17:34 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69462 ФПД: 81609011068777 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T173442&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69462&fm=81609011068777&tin=02508201610067®Number=0000000000156251&sum=160000 [17:34:43]StoreToDocumentArchive [17:34:43]shift 193 fd 69462 [17:34:43]save to /storage/0193/doc_00069462 [17:34:43]save last doc name /storage/0193/doc_00069462 to /storage/kkm_last_doc_name [17:34:43]save OK [17:34:43]Clear old archive folders... [17:34:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:34:43]tlvbuf is 00D0DA30 [17:34:43]SAM_PROTO_ClearQueue [17:34:43]wFMCommunicate request_size=4 [17:34:43]MH_SAM_APDU [17:34:43]CAPDU: 80 09 00 00 [17:34:43]Write to MH i2c: E2 08 00 E1 06 80 09 00 00 00 00 00 00 59 [17:34:43]Write i2c OK [17:34:43]MH_I2C_Read... [17:34:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:34:43]Read from MH i2c: E2 [17:34:43]MH_I2C_Read... [17:34:43]Read from MH i2c: E2 03 00 [17:34:43]MH_I2C_Read... [17:34:43]Read from MH i2c: E2 03 00 E1 06 00 90 00 5B [17:34:43]RAPDU: 90 00 [17:34:43]wFMCommunicate OK [17:34:43]SAM_PROTO_ClearQueue done [17:34:43]KKMCreateOFDPacket [17:34:43]OFDProtocolAddRootSTLVToBuf [17:34:43]FM_MakeSignedData [17:34:43]FM_MakeSignedData [17:34:43]SAM_PROTO_SignData [17:34:43]wFMCommunicate request_size=4 [17:34:43]MH_SAM_APDU [17:34:43]CAPDU: 80 0D 01 02 [17:34:43]Write to MH i2c: E2 08 00 E2 06 80 0D 01 02 00 00 00 00 61 [17:34:43]Write i2c OK [17:34:43]MH_I2C_Read... [17:34:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:34:43]Read from MH i2c: E2 [17:34:43]MH_I2C_Read... [17:34:43]Read from MH i2c: E2 03 00 [17:34:43]MH_I2C_Read... [17:34:43]Read from MH i2c: E2 03 00 E2 06 00 90 00 5C [17:34:43]RAPDU: 90 00 [17:34:43]wFMCommunicate OK [17:34:43]wFMCommunicate request_size=255 [17:34:43]MH_SAM_APDU [17:34:43]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 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 32 3F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 56 0F 01 00 35 04 06 00 4A 39 14 1D [17:34:43]Write to MH i2c: E2 02 01 E3 06 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 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 32 3F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 56 0F 01 00 35 04 06 00 4A 39 14 1D 00 00 8C [17:34:43]Write i2c OK [17:34:43]MH_I2C_Read... [17:34:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:43]Read from MH i2c: E2 [17:34:43]MH_I2C_Read... [17:34:43]Read from MH i2c: E2 03 00 [17:34:43]MH_I2C_Read... [17:34:43]Read from MH i2c: E2 03 00 E3 06 00 90 00 5D [17:34:43]RAPDU: 90 00 [17:34:43]wFMCommunicate OK [17:34:43]wFMCommunicate request_size=7 [17:34:43]MH_SAM_APDU [17:34:43]CAPDU: 80 0D 02 02 02 7F 69 [17:34:43]Write to MH i2c: E2 0A 00 E4 06 80 0D 02 02 02 00 7F 69 00 00 50 [17:34:43]Write i2c OK [17:34:43]MH_I2C_Read... [17:34:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:43]Read from MH i2c: E2 [17:34:43]MH_I2C_Read... [17:34:43]Read from MH i2c: E2 03 00 [17:34:43]MH_I2C_Read... [17:34:43]Read from MH i2c: E2 03 00 E4 06 00 90 00 5E [17:34:43]RAPDU: 90 00 [17:34:43]wFMCommunicate OK [17:34:43]wFMCommunicate request_size=4 [17:34:43]MH_SAM_APDU [17:34:43]CAPDU: 80 0D 03 02 [17:34:43]Write to MH i2c: E2 08 00 E5 06 80 0D 03 02 00 00 00 00 66 [17:34:43]Write i2c OK [17:34:43]MH_I2C_Read... [17:34:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:34:43]Read from MH i2c: E2 [17:34:43]MH_I2C_Read... [17:34:43]Read from MH i2c: E2 0B 00 [17:34:43]MH_I2C_Read... [17:34:43]Read from MH i2c: E2 0B 00 E5 06 00 B8 06 B5 A2 99 0E EC 51 90 00 60 [17:34:43]RAPDU: B8 06 B5 A2 99 0E EC 51 90 00 [17:34:43]wFMCommunicate OK [17:34:43]SAM_PROTO_SignData done [17:34:43]FM_MakeSignedData done [17:34:43]CreateOFDProtocolMessage [17:34:43]wFMCommunicate request_size=4 [17:34:43]MH_SAM_APDU [17:34:43]CAPDU: 80 11 00 00 [17:34:43]Write to MH i2c: E2 08 00 E6 06 80 11 00 00 00 00 00 00 66 [17:34:43]Write i2c OK [17:34:43]MH_I2C_Read... [17:34:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:43]Read from MH i2c: E2 [17:34:43]MH_I2C_Read... [17:34:43]Read from MH i2c: E2 17 00 [17:34:43]MH_I2C_Read... [17:34:43]Read from MH i2c: E2 17 00 E6 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B8 [17:34:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:34:43]wFMCommunicate OK [17:34:43]CreateOFDProtocolMessage done [17:34:43]OFDSenderStorePacket 69462 [17:34:43]StoreOFDPacket docnum=69462 [17:34:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 66 54 04 01 57 FD 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 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 32 3F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 56 0F 01 00 35 04 06 00 4A 39 14 1D 7F 69 B8 06 B5 A2 99 0E EC 51 [17:34:43]CheckFolder [17:34:43]dirname=/storage/ofd_packets [17:34:43]CheckFolder done [17:34:43]ProducePacketName [17:34:43]name=ofd_packets/00069462 [17:34:43]NVStorageSaveData ofd_packets/00069462 [17:34:43]File name is /storage/ofd_packets/00069462 [17:34:43]Write 298 bytes [17:34:43]NVStorageSaveData done [17:34:43]OFDSenderStorePacket done [17:34:43]KKMCreateOFDPacket done [17:34:43]NVStorageSaveData kkm_last_timestamp [17:34:43]File name is /storage/kkm_last_timestamp [17:34:43]Write 4 bytes [17:34:43]NVStorageSaveData done [17:34:43]ExternCall_PrintAddStr [17:34:43]wPrintStart [17:34:43]Write to MH i2c: 01 00 00 E7 06 ED [17:34:43]Write i2c OK [17:34:43]MH_I2C_Read... [17:34:43]Read from MH i2c: 01 [17:34:43]MH_I2C_Read... [17:34:43]Read from MH i2c: 01 07 00 [17:34:43]MH_I2C_Read... [17:34:43]Read from MH i2c: 01 07 00 E7 06 00 00 00 00 00 FF 0F 02 [17:34:43]RasterBufferAndPrint [17:34:43]line Счет N : (1)2885193 [17:34:43]line ИНН: 02508201610067 [17:34:43]line Контрольно-Кассовый Чек [17:34:43]line ПРОДАЖА [17:34:43]line ТРК (МРК, ГНК) : 51 [17:34:43]line Товар: 2710194210 [17:34:43]line ДТ-К-5 [17:34:43]line 21.000 * 76.20 [17:34:43]line = 1600.20 [17:34:43]line НДС 12% НСП 1% [17:34:43]line > о реализуемом товаре [17:34:43]line ОКРУГЛЕНИЕ: -0.20 [17:34:43]line ИТОГО: 1600.00 [17:34:43]line Внесено: 1600.00 [17:34:43]line СДАЧА: 0.00 [17:34:43]line НСП 1% : 14.16 [17:34:43]line НДС 12% : 169.93 [17:34:43]line Наличными: 1600.00 [17:34:43]line Безнал.: 0.00 [17:34:43]line Место: АЗС № 85 "Партнер Нефть" [17:34:43]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:34:43]line СНО: Общий режим [17:34:43]line Чек 307 20.10.2024 17:34 [17:34:43]line Смена: 193 ФФД: 1.0 [17:34:43]line ЗНМ: 0300000167 [17:34:43]line РНМ: 0000000000156251 [17:34:43]line Версия ККМ: v1.0 [17:34:43]line ФМ: 0000000000963346 [17:34:43]line ФД: 69462 [17:34:43]line ФПД: 81609011068777 [17:34:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T173442&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69462&fm=81609011068777&tin=02508201610067®Number=0000000000156251&sum=160000 [17:34:44]OFD Sender: Processing packet 69462 [packets to send 18, broken 17] [17:34:44]ProducePacketName [17:34:44]name=ofd_packets/00069462 [17:34:44]OFD Sender: To server: pG, [17:34:44]CommunicateWithHost lk.salyk.kg:30040 [17:34:44]ConnectInit lk.salyk.kg [17:34:44]written 0, free lines is 4095 [17:34:44]Connected sock=10 [17:34:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 66 54 04 01 57 FD 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 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 32 3F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 56 0F 01 00 35 04 06 00 4A 39 14 1D 7F 69 B8 06 B5 A2 99 0E EC 51 [17:34:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 34 9A 47 00 23 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 56 0F 01 00 F4 03 04 00 D9 E8 14 67 B6 04 01 00 00 9C 87 DD D6 70 58 BF DD [17:34:44]CommunicateWithHost err = 0 [17:34:44]CheckOFDResponse [17:34:44]1017 (14) - 77093643461234 [17:34:44]1041 (16) - 0000000000963346 [17:34:44]1040 (4) - 69462 [17:34:44]1012 (4) - 20.10.2024 11:26 [17:34:44]1206 (1) - 0 [17:34:44]OFD Sender: Remove packet 69462 [17:34:44]ProducePacketName [17:34:44]name=ofd_packets/00069462 [17:34:44]NVStorageDeleteData [17:34:44]Write to MH i2c: 01 00 00 12 07 19 [17:34:44]Write i2c OK [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: 01 [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: 01 07 00 [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: 01 07 00 12 07 00 00 00 00 00 E4 0C 10 [17:34:44]RasterBufferAndPrint [17:34:44]line [17:34:44]line [17:34:44]line [17:34:44]line [17:34:44]line [17:34:44]written 0, free lines is 3306 [17:34:44]MH_Cut [17:34:44]Write to MH i2c: D1 01 00 19 07 01 F2 [17:34:44]Write i2c OK [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: D1 [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: D1 01 00 [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: D1 01 00 19 07 00 F1 [17:34:44]Write to MH i2c: 01 00 00 1A 07 21 [17:34:44]Write i2c OK [17:34:44]MH_I2C_Read... [17:34:44]OFD Sender: No OFD packet to send [17:34:45]*** Cut start [17:34:45]*** Partial cut [17:34:45]*** CUTSNS_PIN = 1 [17:34:45]*** CUTSNS_PIN = 0 [17:34:45]*** Brake cut motor [17:34:45]Read from MH i2c: 01 [17:34:45]MH_I2C_Read... [17:34:45]*** Stop cut motor [17:34:45]*** Cut end [17:34:45]Read from MH i2c: 01 07 00 [17:34:45]MH_I2C_Read... [17:34:45]Read from MH i2c: 01 07 00 1A 07 00 00 00 00 00 FF 0F 36 [17:34:45]process_action close_receipt done [17:34:45]requested_data is exist [17:34:45]produce_requested_data [17:34:45]requested_item fm.sn is exist - process it [17:34:45]wFMCommunicate request_size=4 [17:34:45]MH_SAM_APDU [17:34:45]CAPDU: 80 11 00 00 [17:34:45]Write to MH i2c: E2 08 00 1B 07 80 11 00 00 00 00 00 00 9C [17:34:45]Write i2c OK [17:34:45]MH_I2C_Read... [17:34:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:46]Read from MH i2c: E2 [17:34:46]MH_I2C_Read... [17:34:46]Read from MH i2c: E2 17 00 [17:34:46]MH_I2C_Read... [17:34:46]Read from MH i2c: E2 17 00 1B 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EE [17:34:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:34:46]wFMCommunicate OK [17:34:46]requested_item fd.num is exist - process it [17:34:46]SAM_PROTO_GetFieldsCounters [17:34:46]wFMCommunicate request_size=4 [17:34:46]MH_SAM_APDU [17:34:46]CAPDU: 80 13 00 00 [17:34:46]Write to MH i2c: E2 08 00 1C 07 80 13 00 00 00 00 00 00 9F [17:34:46]Write i2c OK [17:34:46]MH_I2C_Read... [17:34:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:34:46]Read from MH i2c: E2 [17:34:46]MH_I2C_Read... [17:34:46]Read from MH i2c: E2 62 00 [17:34:46]MH_I2C_Read... [17:34:46]Read from MH i2c: E2 62 00 1C 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 56 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 7D [17:34:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 56 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:34:46]wFMCommunicate OK [17:34:46]SAM_PROTO_GetFieldsCounters done [17:34:46]requested_item shift.num is exist - process it [17:34:46]requested_item shift.opened is exist - process it [17:34:46]req_shift_opened [17:34:46]FM_GetShiftState [17:34:46]SAM_PROTO_GetShiftState [17:34:46]wFMCommunicate request_size=4 [17:34:46]MH_SAM_APDU [17:34:46]CAPDU: 80 13 01 00 [17:34:46]Write to MH i2c: E2 08 00 1D 07 80 13 01 00 00 00 00 00 A1 [17:34:46]Write i2c OK [17:34:46]MH_I2C_Read... [17:34:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:46]Read from MH i2c: E2 [17:34:46]MH_I2C_Read... [17:34:46]Read from MH i2c: E2 0E 00 [17:34:46]MH_I2C_Read... [17:34:46]Read from MH i2c: E2 0E 00 1D 07 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 A7 [17:34:46]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:34:46]wFMCommunicate OK [17:34:46]SAM_PROTO_GetShiftState done [17:34:46]FM_GetShiftState done [17:34:46]req_shift_opened done [17:34:46]requested_item shift.open_date is exist - process it [17:34:46]req_shift_open_date [17:34:46]req_shift_open_date done [17:34:46]produce_requested_data done [17:34:46]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69462,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [17:34:46]process_action_free close_receipt [17:34:46]json_value_free [17:34:46]json_value_free done [17:34:46]process_json_proto returns [17:34:46]Send response to host [17:34:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69462,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [17:34:46]free response buf [17:34:46]execute_script done [17:34:46]execute_script returns [17:34:46]free content buf [17:34:46]Sock 8.Close socket [17:34:46]Sock 8.Thread stoped [17:34:49]OFD Sender: No OFD packet to send [17:34:55]OFD Sender: No OFD packet to send [17:35:00]OFD Sender: No OFD packet to send [17:35:05]OFD Sender: No OFD packet to send [17:35:10]OFD Sender: No OFD packet to send [17:35:15]OFD Sender: No OFD packet to send [17:35:20]OFD Sender: No OFD packet to send [17:35:25]OFD Sender: No OFD packet to send [17:35:30]OFD Sender: No OFD packet to send [17:35:35]OFD Sender: No OFD packet to send [17:35:40]OFD Sender: No OFD packet to send [17:35:45]OFD Sender: No OFD packet to send [17:35:50]OFD Sender: No OFD packet to send [17:35:55]OFD Sender: No OFD packet to send [17:36:00]OFD Sender: No OFD packet to send [17:36:01]accept exits with 9 [17:36:01]New connection [17:36:01]New thread 3067239780 created [17:36:01]Thread 3067096420 joined [17:36:01]Waiting for new connection... [17:36:01] Sock 9.Parse request [17:36:01]Sock 9.Check first char [17:36:01]Sock 9.First char is OK [17:36:01]request: POST /json_proto HTTP/1.0 [17:36:01]Method: POST [17:36:01]URL: /json_proto [17:36:01]Method is POST - this is cgi request [17:36:01]url: /json_proto [17:36:01]query_string will be loaded in cgi processing [17:36:01]execute_cgi json_proto POST (null) [17:36:01]execute_cgi path=json_proto method=POST [17:36:01]POST find Content-Length [17:36:01]Host: 172.17.50.3:8080 [17:36:01]Content-Length: 689 [17:36:01]Content-Type: application/json [17:36:01] [17:36:01]POST finish read [17:36:01]Found Content-Length = 689 [17:36:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:01]execute_script... [17:36: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)2885194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:01]POST & json_proto [17:36:01]process_json_proto [17:36:01]json parsed OK: [17:36:01]protocol is kg_v1.0 [17:36:01]action value=close_receipt [17:36:01]process_action close_receipt [17:36:01]cmd_close_receipt [17:36:01]MH_GetDate [17:36:01]Write to MH i2c: F0 00 00 1E 07 14 [17:36:01]Write i2c OK [17:36:01]MH_I2C_Read... [17:36:01]Read from MH i2c: F0 [17:36:01]MH_I2C_Read... [17:36:01]Read from MH i2c: F0 09 00 [17:36:01]MH_I2C_Read... [17:36:01]Read from MH i2c: F0 09 00 1E 07 00 82 3F 15 67 6B 98 1E 66 E1 [17:36:01]GetLastDocTimeStamp 1729445682 [17:36:01]current date 1729445762 [17:36:01]FM_GetShiftState [17:36:01]SAM_PROTO_GetShiftState [17:36:01]wFMCommunicate request_size=4 [17:36:01]MH_SAM_APDU [17:36:01]CAPDU: 80 13 01 00 [17:36:01]Write to MH i2c: E2 08 00 1F 07 80 13 01 00 00 00 00 00 A3 [17:36:01]Write i2c OK [17:36:01]MH_I2C_Read... [17:36:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:01]Read from MH i2c: E2 [17:36:01]MH_I2C_Read... [17:36:01]Read from MH i2c: E2 0E 00 [17:36:01]MH_I2C_Read... [17:36:01]Read from MH i2c: E2 0E 00 1F 07 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 A9 [17:36:01]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:36:01]wFMCommunicate OK [17:36:01]SAM_PROTO_GetShiftState done [17:36:01]FM_GetShiftState done [17:36:01]opened in 1729383220 [17:36:01]opened+sec_in_day 1729469620 [17:36:01]quantity*price = 100051 [17:36:01]sum+1 = 100052 [17:36:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 308 20.10.2024 17:36 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69463 ФПД: 197625695874003 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T173602&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69463&fm=197625695874003&tin=02508201610067®Number=0000000000156251&sum=100000 [17:36:02]StoreToDocumentArchive [17:36:02]shift 193 fd 69463 [17:36:02]save to /storage/0193/doc_00069463 [17:36:02]save last doc name /storage/0193/doc_00069463 to /storage/kkm_last_doc_name [17:36:02]save OK [17:36:02]Clear old archive folders... [17:36:02]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:36:02]tlvbuf is 00CF9990 [17:36:02]SAM_PROTO_ClearQueue [17:36:02]wFMCommunicate request_size=4 [17:36:02]MH_SAM_APDU [17:36:02]CAPDU: 80 09 00 00 [17:36:02]Write to MH i2c: E2 08 00 2C 07 80 09 00 00 00 00 00 00 A5 [17:36:02]Write i2c OK [17:36:02]MH_I2C_Read... [17:36:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:36:02]Read from MH i2c: E2 [17:36:02]MH_I2C_Read... [17:36:02]Read from MH i2c: E2 03 00 [17:36:02]MH_I2C_Read... [17:36:02]Read from MH i2c: E2 03 00 2C 07 00 90 00 A7 [17:36:02]RAPDU: 90 00 [17:36:02]wFMCommunicate OK [17:36:02]SAM_PROTO_ClearQueue done [17:36:02]KKMCreateOFDPacket [17:36:02]OFDProtocolAddRootSTLVToBuf [17:36:02]FM_MakeSignedData [17:36:02]FM_MakeSignedData [17:36:02]SAM_PROTO_SignData [17:36:02]wFMCommunicate request_size=4 [17:36:02]MH_SAM_APDU [17:36:02]CAPDU: 80 0D 01 02 [17:36:02]Write to MH i2c: E2 08 00 2D 07 80 0D 01 02 00 00 00 00 AD [17:36:02]Write i2c OK [17:36:02]MH_I2C_Read... [17:36:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:36:02]Read from MH i2c: E2 [17:36:02]MH_I2C_Read... [17:36:02]Read from MH i2c: E2 03 00 [17:36:02]MH_I2C_Read... [17:36:02]Read from MH i2c: E2 03 00 2D 07 00 90 00 A8 [17:36:02]RAPDU: 90 00 [17:36:02]wFMCommunicate OK [17:36:02]wFMCommunicate request_size=255 [17:36:02]MH_SAM_APDU [17:36:02]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 82 3F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 57 0F 01 [17:36:02]Write to MH i2c: E2 02 01 2E 07 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 82 3F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 57 0F 01 00 00 99 [17:36:02]Write i2c OK [17:36:02]MH_I2C_Read... [17:36:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:03]Read from MH i2c: E2 [17:36:03]MH_I2C_Read... [17:36:03]Read from MH i2c: E2 03 00 [17:36:03]MH_I2C_Read... [17:36:03]Read from MH i2c: E2 03 00 2E 07 00 90 00 A9 [17:36:03]RAPDU: 90 00 [17:36:03]wFMCommunicate OK [17:36:03]wFMCommunicate request_size=16 [17:36:03]MH_SAM_APDU [17:36:03]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 B3 BD 51 66 AB D3 [17:36:03]Write to MH i2c: E2 13 00 2F 07 80 0D 02 02 0B 00 00 35 04 06 00 B3 BD 51 66 AB D3 00 00 AA [17:36:03]Write i2c OK [17:36:03]MH_I2C_Read... [17:36:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:03]Read from MH i2c: E2 [17:36:03]MH_I2C_Read... [17:36:03]Read from MH i2c: E2 03 00 [17:36:03]MH_I2C_Read... [17:36:03]Read from MH i2c: E2 03 00 2F 07 00 90 00 AA [17:36:03]RAPDU: 90 00 [17:36:03]wFMCommunicate OK [17:36:03]wFMCommunicate request_size=4 [17:36:03]MH_SAM_APDU [17:36:03]CAPDU: 80 0D 03 02 [17:36:03]Write to MH i2c: E2 08 00 30 07 80 0D 03 02 00 00 00 00 B2 [17:36:03]Write i2c OK [17:36:03]MH_I2C_Read... [17:36:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:36:03]Read from MH i2c: E2 [17:36:03]MH_I2C_Read... [17:36:03]Read from MH i2c: E2 0B 00 [17:36:03]MH_I2C_Read... [17:36:03]Read from MH i2c: E2 0B 00 30 07 00 99 2B 26 66 3F CD 3A 29 90 00 72 [17:36:03]RAPDU: 99 2B 26 66 3F CD 3A 29 90 00 [17:36:03]wFMCommunicate OK [17:36:03]SAM_PROTO_SignData done [17:36:03]FM_MakeSignedData done [17:36:03]CreateOFDProtocolMessage [17:36:03]wFMCommunicate request_size=4 [17:36:03]MH_SAM_APDU [17:36:03]CAPDU: 80 11 00 00 [17:36:03]Write to MH i2c: E2 08 00 31 07 80 11 00 00 00 00 00 00 B2 [17:36:03]Write i2c OK [17:36:03]MH_I2C_Read... [17:36:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:03]Read from MH i2c: E2 [17:36:03]MH_I2C_Read... [17:36:03]Read from MH i2c: E2 17 00 [17:36:03]MH_I2C_Read... [17:36:03]Read from MH i2c: E2 17 00 31 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 04 [17:36:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:36:03]wFMCommunicate OK [17:36:03]CreateOFDProtocolMessage done [17:36:03]OFDSenderStorePacket 69463 [17:36:03]StoreOFDPacket docnum=69463 [17:36:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 BB 66 0D 01 CD 44 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 82 3F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 57 0F 01 00 35 04 06 00 B3 BD 51 66 AB D3 99 2B 26 66 3F CD 3A 29 [17:36:03]CheckFolder [17:36:03]dirname=/storage/ofd_packets [17:36:03]CheckFolder done [17:36:03]ProducePacketName [17:36:03]name=ofd_packets/00069463 [17:36:03]NVStorageSaveData ofd_packets/00069463 [17:36:03]File name is /storage/ofd_packets/00069463 [17:36:03]Write 307 bytes [17:36:03]NVStorageSaveData done [17:36:03]OFDSenderStorePacket done [17:36:03]KKMCreateOFDPacket done [17:36:03]NVStorageSaveData kkm_last_timestamp [17:36:03]File name is /storage/kkm_last_timestamp [17:36:03]Write 4 bytes [17:36:03]NVStorageSaveData done [17:36:03]ExternCall_PrintAddStr [17:36:03]wPrintStart [17:36:03]Write to MH i2c: 01 00 00 32 07 39 [17:36:03]Write i2c OK [17:36:03]MH_I2C_Read... [17:36:03]Read from MH i2c: 01 [17:36:03]MH_I2C_Read... [17:36:03]Read from MH i2c: 01 07 00 [17:36:03]MH_I2C_Read... [17:36:03]Read from MH i2c: 01 07 00 32 07 00 00 00 00 00 FF 0F 4E [17:36:03]RasterBufferAndPrint [17:36:03]line Счет N : (1)2885194 [17:36:03]line ИНН: 02508201610067 [17:36:03]line Контрольно-Кассовый Чек [17:36:03]line ПРОДАЖА [17:36:03]line ТРК (МРК, ГНК) : 21 [17:36:03]line Товар: 2710194240 [17:36:03]line D-ENERGY Дт-К-2 [17:36:03]line 12.960 * 77.20 [17:36:03]line = 1000.51 [17:36:03]line НДС 12% НСП 1% [17:36:03]line > о реализуемом товаре [17:36:03]line ОКРУГЛЕНИЕ: -0.51 [17:36:03]line ИТОГО: 1000.00 [17:36:03]line Внесено: 1000.00 [17:36:03]line СДАЧА: 0.00 [17:36:03]line НСП 1% : 8.85 [17:36:03]line НДС 12% : 106.25 [17:36:03]line Наличными: 1000.00 [17:36:03]line Безнал.: 0.00 [17:36:03]line Место: АЗС № 85 "Партнер Нефть" [17:36:03]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:36:03]line СНО: Общий режим [17:36:03]line Чек 308 20.10.2024 17:36 [17:36:03]line Смена: 193 ФФД: 1.0 [17:36:03]line ЗНМ: 0300000167 [17:36:03]line РНМ: 0000000000156251 [17:36:03]line Версия ККМ: v1.0 [17:36:03]line ФМ: 0000000000963346 [17:36:03]line ФД: 69463 [17:36:03]line ФПД: 197625695874003 [17:36:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T173602&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69463&fm=197625695874003&tin=02508201610067®Number=0000000000156251&sum=100000 [17:36:03]OFD Sender: Processing packet 69463 [packets to send 18, broken 17] [17:36:03]ProducePacketName [17:36:03]name=ofd_packets/00069463 [17:36:03]OFD Sender: To server: pG, [17:36:03]CommunicateWithHost lk.salyk.kg:30040 [17:36:03]ConnectInit lk.salyk.kg [17:36:03]written 0, free lines is 4095 [17:36:03]Connected sock=10 [17:36:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 BB 66 0D 01 CD 44 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 82 3F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 57 0F 01 00 35 04 06 00 B3 BD 51 66 AB D3 99 2B 26 66 3F CD 3A 29 [17:36:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 48 C8 47 00 AD 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 57 0F 01 00 F4 03 04 00 28 E9 14 67 B6 04 01 00 00 32 DF AE 57 14 CE EC 0A [17:36:03]CommunicateWithHost err = 0 [17:36:03]CheckOFDResponse [17:36:03]1017 (14) - 77093643461234 [17:36:03]1041 (16) - 0000000000963346 [17:36:03]1040 (4) - 69463 [17:36:03]1012 (4) - 20.10.2024 11:27 [17:36:03]1206 (1) - 0 [17:36:03]OFD Sender: Remove packet 69463 [17:36:03]ProducePacketName [17:36:03]name=ofd_packets/00069463 [17:36:03]NVStorageDeleteData [17:36:04]Write to MH i2c: 01 00 00 5D 07 64 [17:36:04]Write i2c OK [17:36:04]MH_I2C_Read... [17:36:04]Read from MH i2c: 01 [17:36:04]MH_I2C_Read... [17:36:04]Read from MH i2c: 01 07 00 [17:36:04]MH_I2C_Read... [17:36:04]Read from MH i2c: 01 07 00 5D 07 00 00 00 00 00 F6 0C 6D [17:36:04]RasterBufferAndPrint [17:36:04]line [17:36:04]line [17:36:04]line [17:36:04]line [17:36:04]line [17:36:04]written 0, free lines is 3324 [17:36:04]MH_Cut [17:36:04]Write to MH i2c: D1 01 00 64 07 01 3D [17:36:04]Write i2c OK [17:36:04]MH_I2C_Read... [17:36:04]Read from MH i2c: D1 [17:36:04]MH_I2C_Read... [17:36:04]Read from MH i2c: D1 01 00 [17:36:04]MH_I2C_Read... [17:36:04]Read from MH i2c: D1 01 00 64 07 00 3C [17:36:04]Write to MH i2c: 01 00 00 65 07 6C [17:36:04]Write i2c OK [17:36:04]MH_I2C_Read... [17:36:04]OFD Sender: No OFD packet to send [17:36:04]*** Cut start [17:36:04]*** Partial cut [17:36:04]*** CUTSNS_PIN = 1 [17:36:04]*** CUTSNS_PIN = 0 [17:36:04]*** Brake cut motor [17:36:05]Read from MH i2c: 01 [17:36:05]MH_I2C_Read... [17:36:05]*** Stop cut motor [17:36:05]*** Cut end [17:36:05]Read from MH i2c: 01 07 00 [17:36:05]MH_I2C_Read... [17:36:05]Read from MH i2c: 01 07 00 65 07 00 00 00 00 00 FF 0F 81 [17:36:05]process_action close_receipt done [17:36:05]requested_data is exist [17:36:05]produce_requested_data [17:36:05]requested_item fm.sn is exist - process it [17:36:05]wFMCommunicate request_size=4 [17:36:05]MH_SAM_APDU [17:36:05]CAPDU: 80 11 00 00 [17:36:05]Write to MH i2c: E2 08 00 66 07 80 11 00 00 00 00 00 00 E7 [17:36:05]Write i2c OK [17:36:05]MH_I2C_Read... [17:36:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:05]Read from MH i2c: E2 [17:36:05]MH_I2C_Read... [17:36:05]Read from MH i2c: E2 17 00 [17:36:05]MH_I2C_Read... [17:36:05]Read from MH i2c: E2 17 00 66 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 39 [17:36:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:36:05]wFMCommunicate OK [17:36:05]requested_item fd.num is exist - process it [17:36:05]SAM_PROTO_GetFieldsCounters [17:36:05]wFMCommunicate request_size=4 [17:36:05]MH_SAM_APDU [17:36:05]CAPDU: 80 13 00 00 [17:36:05]Write to MH i2c: E2 08 00 67 07 80 13 00 00 00 00 00 00 EA [17:36:05]Write i2c OK [17:36:05]MH_I2C_Read... [17:36:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:05]Read from MH i2c: E2 [17:36:05]MH_I2C_Read... [17:36:05]Read from MH i2c: E2 62 00 [17:36:05]MH_I2C_Read... [17:36:05]Read from MH i2c: E2 62 00 67 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 57 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 CC [17:36:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 57 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:36:05]wFMCommunicate OK [17:36:05]SAM_PROTO_GetFieldsCounters done [17:36:05]requested_item shift.num is exist - process it [17:36:05]requested_item shift.opened is exist - process it [17:36:05]req_shift_opened [17:36:05]FM_GetShiftState [17:36:05]SAM_PROTO_GetShiftState [17:36:05]wFMCommunicate request_size=4 [17:36:05]MH_SAM_APDU [17:36:05]CAPDU: 80 13 01 00 [17:36:05]Write to MH i2c: E2 08 00 68 07 80 13 01 00 00 00 00 00 EC [17:36:05]Write i2c OK [17:36:05]MH_I2C_Read... [17:36:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:05]Read from MH i2c: E2 [17:36:05]MH_I2C_Read... [17:36:05]Read from MH i2c: E2 0E 00 [17:36:05]MH_I2C_Read... [17:36:05]Read from MH i2c: E2 0E 00 68 07 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 F2 [17:36:05]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:36:05]wFMCommunicate OK [17:36:05]SAM_PROTO_GetShiftState done [17:36:05]FM_GetShiftState done [17:36:05]req_shift_opened done [17:36:05]requested_item shift.open_date is exist - process it [17:36:05]req_shift_open_date [17:36:05]req_shift_open_date done [17:36:05]produce_requested_data done [17:36:05]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69463,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [17:36:05]process_action_free close_receipt [17:36:05]json_value_free [17:36:05]json_value_free done [17:36:05]process_json_proto returns [17:36:05]Send response to host [17:36:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69463,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [17:36:05]free response buf [17:36:05]execute_script done [17:36:05]execute_script returns [17:36:05]free content buf [17:36:05]Sock 9.Close socket [17:36:05]Sock 9.Thread stoped [17:36:09]OFD Sender: No OFD packet to send [17:36:14]OFD Sender: No OFD packet to send [17:36:19]OFD Sender: No OFD packet to send [17:36:21]accept exits with 8 [17:36:21]New connection [17:36:21]New thread 3067096420 created [17:36:21]Thread 3067239780 joined [17:36:21]Waiting for new connection... [17:36:21] Sock 8.Parse request [17:36:21]Sock 8.Check first char [17:36:21]Sock 8.First char is OK [17:36:21]request: POST /json_proto HTTP/1.0 [17:36:21]Method: POST [17:36:21]URL: /json_proto [17:36:21]Method is POST - this is cgi request [17:36:21]url: /json_proto [17:36:21]query_string will be loaded in cgi processing [17:36:21]execute_cgi json_proto POST (null) [17:36:21]execute_cgi path=json_proto method=POST [17:36:21]POST find Content-Length [17:36:21]Host: 172.17.50.3:8080 [17:36:21]Content-Length: 680 [17:36:21]Content-Type: application/json [17:36:21] [17:36:21]POST finish read [17:36:21]Found Content-Length = 680 [17:36:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:21]execute_script... [17:36:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:21]POST & json_proto [17:36:21]process_json_proto [17:36:21]json parsed OK: [17:36:21]protocol is kg_v1.0 [17:36:21]action value=close_receipt [17:36:21]process_action close_receipt [17:36:21]cmd_close_receipt [17:36:21]MH_GetDate [17:36:21]Write to MH i2c: F0 00 00 69 07 5F [17:36:21]Write i2c OK [17:36:21]MH_I2C_Read... [17:36:21]Read from MH i2c: F0 [17:36:21]MH_I2C_Read... [17:36:21]Read from MH i2c: F0 09 00 [17:36:21]MH_I2C_Read... [17:36:21]Read from MH i2c: F0 09 00 69 07 00 95 3F 15 67 6B 98 1E 66 3F [17:36:21]GetLastDocTimeStamp 1729445762 [17:36:21]current date 1729445781 [17:36:21]FM_GetShiftState [17:36:21]SAM_PROTO_GetShiftState [17:36:21]wFMCommunicate request_size=4 [17:36:21]MH_SAM_APDU [17:36:21]CAPDU: 80 13 01 00 [17:36:21]Write to MH i2c: E2 08 00 6A 07 80 13 01 00 00 00 00 00 EE [17:36:21]Write i2c OK [17:36:21]MH_I2C_Read... [17:36:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:21]Read from MH i2c: E2 [17:36:21]MH_I2C_Read... [17:36:21]Read from MH i2c: E2 0E 00 [17:36:21]MH_I2C_Read... [17:36:21]Read from MH i2c: E2 0E 00 6A 07 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 F4 [17:36:21]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:36:21]wFMCommunicate OK [17:36:21]SAM_PROTO_GetShiftState done [17:36:21]FM_GetShiftState done [17:36:21]opened in 1729383220 [17:36:21]opened+sec_in_day 1729469620 [17:36:21]quantity*price = 100050 [17:36:21]sum+1 = 100052 [17:36:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 309 20.10.2024 17:36 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69464 ФПД: 63768590082429 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T173622&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69464&fm=63768590082429&tin=02508201610067®Number=0000000000156251&sum=100000 [17:36:22]StoreToDocumentArchive [17:36:22]shift 193 fd 69464 [17:36:22]save to /storage/0193/doc_00069464 [17:36:22]save last doc name /storage/0193/doc_00069464 to /storage/kkm_last_doc_name [17:36:22]save OK [17:36:22]Clear old archive folders... [17:36:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:36:22]tlvbuf is 00CEC260 [17:36:22]SAM_PROTO_ClearQueue [17:36:22]wFMCommunicate request_size=4 [17:36:22]MH_SAM_APDU [17:36:22]CAPDU: 80 09 00 00 [17:36:22]Write to MH i2c: E2 08 00 77 07 80 09 00 00 00 00 00 00 F0 [17:36:22]Write i2c OK [17:36:22]MH_I2C_Read... [17:36:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:36:22]Read from MH i2c: E2 [17:36:22]MH_I2C_Read... [17:36:22]Read from MH i2c: E2 03 00 [17:36:22]MH_I2C_Read... [17:36:22]Read from MH i2c: E2 03 00 77 07 00 90 00 F2 [17:36:22]RAPDU: 90 00 [17:36:22]wFMCommunicate OK [17:36:22]SAM_PROTO_ClearQueue done [17:36:22]KKMCreateOFDPacket [17:36:22]OFDProtocolAddRootSTLVToBuf [17:36:22]FM_MakeSignedData [17:36:22]FM_MakeSignedData [17:36:22]SAM_PROTO_SignData [17:36:22]wFMCommunicate request_size=4 [17:36:22]MH_SAM_APDU [17:36:22]CAPDU: 80 0D 01 02 [17:36:22]Write to MH i2c: E2 08 00 78 07 80 0D 01 02 00 00 00 00 F8 [17:36:22]Write i2c OK [17:36:22]MH_I2C_Read... [17:36:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:36:22]Read from MH i2c: E2 [17:36:22]MH_I2C_Read... [17:36:22]Read from MH i2c: E2 03 00 [17:36:22]MH_I2C_Read... [17:36:22]Read from MH i2c: E2 03 00 78 07 00 90 00 F3 [17:36:22]RAPDU: 90 00 [17:36:22]wFMCommunicate OK [17:36:22]wFMCommunicate request_size=255 [17:36:22]MH_SAM_APDU [17:36:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 96 3F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 58 0F 01 00 35 04 06 00 39 FF 48 28 [17:36:22]Write to MH i2c: E2 02 01 79 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 96 3F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 58 0F 01 00 35 04 06 00 39 FF 48 28 00 00 CF [17:36:22]Write i2c OK [17:36:22]MH_I2C_Read... [17:36:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:22]Read from MH i2c: E2 [17:36:22]MH_I2C_Read... [17:36:22]Read from MH i2c: E2 03 00 [17:36:22]MH_I2C_Read... [17:36:22]Read from MH i2c: E2 03 00 79 07 00 90 00 F4 [17:36:22]RAPDU: 90 00 [17:36:22]wFMCommunicate OK [17:36:22]wFMCommunicate request_size=7 [17:36:22]MH_SAM_APDU [17:36:22]CAPDU: 80 0D 02 02 02 E1 7D [17:36:22]Write to MH i2c: E2 0A 00 7A 07 80 0D 02 02 02 00 E1 7D 00 00 5D [17:36:22]Write i2c OK [17:36:22]MH_I2C_Read... [17:36:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:22]Read from MH i2c: E2 [17:36:22]MH_I2C_Read... [17:36:22]Read from MH i2c: E2 03 00 [17:36:22]MH_I2C_Read... [17:36:22]Read from MH i2c: E2 03 00 7A 07 00 90 00 F5 [17:36:22]RAPDU: 90 00 [17:36:22]wFMCommunicate OK [17:36:22]wFMCommunicate request_size=4 [17:36:22]MH_SAM_APDU [17:36:22]CAPDU: 80 0D 03 02 [17:36:22]Write to MH i2c: E2 08 00 7B 07 80 0D 03 02 00 00 00 00 FD [17:36:22]Write i2c OK [17:36:22]MH_I2C_Read... [17:36:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:36:22]Read from MH i2c: E2 [17:36:22]MH_I2C_Read... [17:36:22]Read from MH i2c: E2 0B 00 [17:36:22]MH_I2C_Read... [17:36:22]Read from MH i2c: E2 0B 00 7B 07 00 8B D1 6A EB 1C EF 62 6F 90 00 8B [17:36:22]RAPDU: 8B D1 6A EB 1C EF 62 6F 90 00 [17:36:22]wFMCommunicate OK [17:36:22]SAM_PROTO_SignData done [17:36:22]FM_MakeSignedData done [17:36:22]CreateOFDProtocolMessage [17:36:22]wFMCommunicate request_size=4 [17:36:22]MH_SAM_APDU [17:36:22]CAPDU: 80 11 00 00 [17:36:22]Write to MH i2c: E2 08 00 7C 07 80 11 00 00 00 00 00 00 FD [17:36:22]Write i2c OK [17:36:22]MH_I2C_Read... [17:36:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:22]Read from MH i2c: E2 [17:36:22]MH_I2C_Read... [17:36:22]Read from MH i2c: E2 17 00 [17:36:22]MH_I2C_Read... [17:36:22]Read from MH i2c: E2 17 00 7C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4F [17:36:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:36:22]wFMCommunicate OK [17:36:22]CreateOFDProtocolMessage done [17:36:22]OFDSenderStorePacket 69464 [17:36:22]StoreOFDPacket docnum=69464 [17:36:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 46 F3 04 01 DA 08 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 96 3F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 58 0F 01 00 35 04 06 00 39 FF 48 28 E1 7D 8B D1 6A EB 1C EF 62 6F [17:36:22]CheckFolder [17:36:22]dirname=/storage/ofd_packets [17:36:22]CheckFolder done [17:36:22]ProducePacketName [17:36:22]name=ofd_packets/00069464 [17:36:22]NVStorageSaveData ofd_packets/00069464 [17:36:22]File name is /storage/ofd_packets/00069464 [17:36:22]Write 298 bytes [17:36:22]NVStorageSaveData done [17:36:22]OFDSenderStorePacket done [17:36:22]KKMCreateOFDPacket done [17:36:22]NVStorageSaveData kkm_last_timestamp [17:36:22]File name is /storage/kkm_last_timestamp [17:36:22]Write 4 bytes [17:36:22]NVStorageSaveData done [17:36:22]ExternCall_PrintAddStr [17:36:22]wPrintStart [17:36:22]Write to MH i2c: 01 00 00 7D 07 84 [17:36:22]Write i2c OK [17:36:22]MH_I2C_Read... [17:36:22]Read from MH i2c: 01 [17:36:22]MH_I2C_Read... [17:36:22]Read from MH i2c: 01 07 00 [17:36:22]MH_I2C_Read... [17:36:22]Read from MH i2c: 01 07 00 7D 07 00 00 00 00 00 FF 0F 99 [17:36:22]RasterBufferAndPrint [17:36:22]line Счет N : (1)2885195 [17:36:22]line ИНН: 02508201610067 [17:36:22]line Контрольно-Кассовый Чек [17:36:22]line ПРОДАЖА [17:36:22]line ТРК (МРК, ГНК) : 51 [17:36:22]line Товар: 2710194210 [17:36:22]line ДТ-К-5 [17:36:22]line 13.130 * 76.20 [17:36:22]line = 1000.51 [17:36:22]line НДС 12% НСП 1% [17:36:22]line > о реализуемом товаре [17:36:22]line ОКРУГЛЕНИЕ: -0.51 [17:36:22]line ИТОГО: 1000.00 [17:36:22]line Внесено: 1000.00 [17:36:22]line СДАЧА: 0.00 [17:36:22]line НСП 1% : 8.85 [17:36:22]line НДС 12% : 106.25 [17:36:22]line Наличными: 1000.00 [17:36:22]line Безнал.: 0.00 [17:36:22]line Место: АЗС № 85 "Партнер Нефть" [17:36:22]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:36:22]line СНО: Общий режим [17:36:22]line Чек 309 20.10.2024 17:36 [17:36:22]line Смена: 193 ФФД: 1.0 [17:36:22]line ЗНМ: 0300000167 [17:36:22]line РНМ: 0000000000156251 [17:36:22]line Версия ККМ: v1.0 [17:36:22]line ФМ: 0000000000963346 [17:36:22]line ФД: 69464 [17:36:22]line ФПД: 63768590082429 [17:36:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T173622&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69464&fm=63768590082429&tin=02508201610067®Number=0000000000156251&sum=100000 [17:36:23]OFD Sender: Processing packet 69464 [packets to send 18, broken 17] [17:36:23]ProducePacketName [17:36:23]name=ofd_packets/00069464 [17:36:23]OFD Sender: To server: pG, [17:36:23]CommunicateWithHost lk.salyk.kg:30040 [17:36:23]ConnectInit lk.salyk.kg [17:36:23]written 0, free lines is 4095 [17:36:23]Connected sock=10 [17:36:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 46 F3 04 01 DA 08 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 96 3F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 58 0F 01 00 35 04 06 00 39 FF 48 28 E1 7D 8B D1 6A EB 1C EF 62 6F [17:36:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 6C DC 47 00 A6 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 58 0F 01 00 F4 03 04 00 3C E9 14 67 B6 04 01 00 00 7B 03 20 EE C9 25 D4 03 [17:36:23]CommunicateWithHost err = 0 [17:36:23]CheckOFDResponse [17:36:23]1017 (14) - 77093643461234 [17:36:23]1041 (16) - 0000000000963346 [17:36:23]1040 (4) - 69464 [17:36:23]1012 (4) - 20.10.2024 11:27 [17:36:23]1206 (1) - 0 [17:36:23]OFD Sender: Remove packet 69464 [17:36:23]ProducePacketName [17:36:23]name=ofd_packets/00069464 [17:36:23]NVStorageDeleteData [17:36:23]Write to MH i2c: 01 00 00 A8 07 AF [17:36:23]Write i2c OK [17:36:23]MH_I2C_Read... [17:36:23]Read from MH i2c: 01 [17:36:23]MH_I2C_Read... [17:36:23]Read from MH i2c: 01 07 00 [17:36:23]MH_I2C_Read... [17:36:23]Read from MH i2c: 01 07 00 A8 07 00 00 00 00 00 E4 0C A6 [17:36:23]RasterBufferAndPrint [17:36:23]line [17:36:23]line [17:36:23]line [17:36:23]line [17:36:23]line [17:36:23]written 0, free lines is 3306 [17:36:23]MH_Cut [17:36:23]Write to MH i2c: D1 01 00 AF 07 01 88 [17:36:23]Write i2c OK [17:36:23]MH_I2C_Read... [17:36:23]Read from MH i2c: D1 [17:36:23]MH_I2C_Read... [17:36:23]Read from MH i2c: D1 01 00 [17:36:23]MH_I2C_Read... [17:36:23]Read from MH i2c: D1 01 00 AF 07 00 87 [17:36:23]Write to MH i2c: 01 00 00 B0 07 B7 [17:36:23]Write i2c OK [17:36:23]MH_I2C_Read... [17:36:24]OFD Sender: No OFD packet to send [17:36:24]*** Cut start [17:36:24]*** Partial cut [17:36:24]*** CUTSNS_PIN = 1 [17:36:24]*** CUTSNS_PIN = 0 [17:36:24]*** Brake cut motor [17:36:25]Read from MH i2c: 01 [17:36:25]MH_I2C_Read... [17:36:25]*** Stop cut motor [17:36:25]*** Cut end [17:36:25]Read from MH i2c: 01 07 00 [17:36:25]MH_I2C_Read... [17:36:25]Read from MH i2c: 01 07 00 B0 07 00 00 00 00 00 FF 0F CC [17:36:25]process_action close_receipt done [17:36:25]requested_data is exist [17:36:25]produce_requested_data [17:36:25]requested_item fm.sn is exist - process it [17:36:25]wFMCommunicate request_size=4 [17:36:25]MH_SAM_APDU [17:36:25]CAPDU: 80 11 00 00 [17:36:25]Write to MH i2c: E2 08 00 B1 07 80 11 00 00 00 00 00 00 32 [17:36:25]Write i2c OK [17:36:25]MH_I2C_Read... [17:36:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:25]Read from MH i2c: E2 [17:36:25]MH_I2C_Read... [17:36:25]Read from MH i2c: E2 17 00 [17:36:25]MH_I2C_Read... [17:36:25]Read from MH i2c: E2 17 00 B1 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 84 [17:36:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:36:25]wFMCommunicate OK [17:36:25]requested_item fd.num is exist - process it [17:36:25]SAM_PROTO_GetFieldsCounters [17:36:25]wFMCommunicate request_size=4 [17:36:25]MH_SAM_APDU [17:36:25]CAPDU: 80 13 00 00 [17:36:25]Write to MH i2c: E2 08 00 B2 07 80 13 00 00 00 00 00 00 35 [17:36:25]Write i2c OK [17:36:25]MH_I2C_Read... [17:36:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:25]Read from MH i2c: E2 [17:36:25]MH_I2C_Read... [17:36:25]Read from MH i2c: E2 62 00 [17:36:25]MH_I2C_Read... [17:36:25]Read from MH i2c: E2 62 00 B2 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 58 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 1B [17:36:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 58 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:36:25]wFMCommunicate OK [17:36:25]SAM_PROTO_GetFieldsCounters done [17:36:25]requested_item shift.num is exist - process it [17:36:25]requested_item shift.opened is exist - process it [17:36:25]req_shift_opened [17:36:25]FM_GetShiftState [17:36:25]SAM_PROTO_GetShiftState [17:36:25]wFMCommunicate request_size=4 [17:36:25]MH_SAM_APDU [17:36:25]CAPDU: 80 13 01 00 [17:36:25]Write to MH i2c: E2 08 00 B3 07 80 13 01 00 00 00 00 00 37 [17:36:25]Write i2c OK [17:36:25]MH_I2C_Read... [17:36:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:25]Read from MH i2c: E2 [17:36:25]MH_I2C_Read... [17:36:25]Read from MH i2c: E2 0E 00 [17:36:25]MH_I2C_Read... [17:36:25]Read from MH i2c: E2 0E 00 B3 07 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 3D [17:36:25]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:36:25]wFMCommunicate OK [17:36:25]SAM_PROTO_GetShiftState done [17:36:25]FM_GetShiftState done [17:36:25]req_shift_opened done [17:36:25]requested_item shift.open_date is exist - process it [17:36:25]req_shift_open_date [17:36:25]req_shift_open_date done [17:36:25]produce_requested_data done [17:36:25]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69464,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [17:36:25]process_action_free close_receipt [17:36:25]json_value_free [17:36:25]json_value_free done [17:36:25]process_json_proto returns [17:36:25]Send response to host [17:36:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69464,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [17:36:25]free response buf [17:36:25]execute_script done [17:36:25]execute_script returns [17:36:25]free content buf [17:36:25]Sock 8.Close socket [17:36:25]Sock 8.Thread stoped [17:36:29]OFD Sender: No OFD packet to send [17:36:34]OFD Sender: No OFD packet to send [17:36:39]OFD Sender: No OFD packet to send [17:36:44]OFD Sender: No OFD packet to send [17:36:49]OFD Sender: No OFD packet to send [17:36:54]OFD Sender: No OFD packet to send [17:36:59]OFD Sender: No OFD packet to send [17:37:04]OFD Sender: No OFD packet to send [17:37:09]OFD Sender: No OFD packet to send [17:37:14]OFD Sender: No OFD packet to send [17:37:19]OFD Sender: No OFD packet to send [17:37:24]OFD Sender: No OFD packet to send [17:37:29]OFD Sender: No OFD packet to send [17:37:34]OFD Sender: No OFD packet to send [17:37:39]OFD Sender: No OFD packet to send [17:37:44]OFD Sender: No OFD packet to send [17:37:49]OFD Sender: No OFD packet to send [17:37:54]OFD Sender: No OFD packet to send [17:37:59]OFD Sender: No OFD packet to send [17:38:04]OFD Sender: No OFD packet to send [17:38:09]OFD Sender: No OFD packet to send [17:38:14]OFD Sender: No OFD packet to send [17:38:19]OFD Sender: No OFD packet to send [17:38:24]OFD Sender: No OFD packet to send [17:38:29]OFD Sender: No OFD packet to send [17:38:34]OFD Sender: No OFD packet to send [17:38:39]OFD Sender: No OFD packet to send [17:38:44]OFD Sender: No OFD packet to send [17:38:49]OFD Sender: No OFD packet to send [17:38:54]OFD Sender: No OFD packet to send [17:38:59]OFD Sender: No OFD packet to send [17:39:04]OFD Sender: No OFD packet to send [17:39:09]OFD Sender: No OFD packet to send [17:39:14]OFD Sender: No OFD packet to send [17:39:19]OFD Sender: No OFD packet to send [17:39:24]OFD Sender: No OFD packet to send [17:39:28]accept exits with 9 [17:39:28]New connection [17:39:28]New thread 3067239780 created [17:39:28]Thread 3067096420 joined [17:39:28]Waiting for new connection... [17:39:28] Sock 9.Parse request [17:39:28]Sock 9.Check first char [17:39:28]Sock 9.First char is OK [17:39:28]request: POST /json_proto HTTP/1.0 [17:39:28]Method: POST [17:39:28]URL: /json_proto [17:39:28]Method is POST - this is cgi request [17:39:28]url: /json_proto [17:39:28]query_string will be loaded in cgi processing [17:39:28]execute_cgi json_proto POST (null) [17:39:28]execute_cgi path=json_proto method=POST [17:39:28]POST find Content-Length [17:39:28]Host: 172.17.50.3:8080 [17:39:28]Content-Length: 678 [17:39:28]Content-Type: application/json [17:39:28] [17:39:28]POST finish read [17:39:28]Found Content-Length = 678 [17:39:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.730, "sum" : 450.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:28]execute_script... [17:39:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.730, "sum" : 450.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:28]POST & json_proto [17:39:28]process_json_proto [17:39:28]json parsed OK: [17:39:28]protocol is kg_v1.0 [17:39:28]action value=close_receipt [17:39:28]process_action close_receipt [17:39:28]cmd_close_receipt [17:39:28]MH_GetDate [17:39:28]Write to MH i2c: F0 00 00 B4 07 AA [17:39:28]Write i2c OK [17:39:28]MH_I2C_Read... [17:39:28]Read from MH i2c: F0 [17:39:28]MH_I2C_Read... [17:39:28]Read from MH i2c: F0 09 00 [17:39:28]MH_I2C_Read... [17:39:28]Read from MH i2c: F0 09 00 B4 07 00 51 40 15 67 6B 98 1E 66 47 [17:39:28]GetLastDocTimeStamp 1729445782 [17:39:28]current date 1729445969 [17:39:28]FM_GetShiftState [17:39:28]SAM_PROTO_GetShiftState [17:39:28]wFMCommunicate request_size=4 [17:39:28]MH_SAM_APDU [17:39:28]CAPDU: 80 13 01 00 [17:39:28]Write to MH i2c: E2 08 00 B5 07 80 13 01 00 00 00 00 00 39 [17:39:28]Write i2c OK [17:39:28]MH_I2C_Read... [17:39:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:28]Read from MH i2c: E2 [17:39:28]MH_I2C_Read... [17:39:28]Read from MH i2c: E2 0E 00 [17:39:28]MH_I2C_Read... [17:39:28]Read from MH i2c: E2 0E 00 B5 07 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 3F [17:39:28]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:39:28]wFMCommunicate OK [17:39:28]SAM_PROTO_GetShiftState done [17:39:28]FM_GetShiftState done [17:39:28]opened in 1729383220 [17:39:28]opened+sec_in_day 1729469620 [17:39:28]quantity*price = 45023 [17:39:28]sum+1 = 45025 [17:39:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.81 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 310 20.10.2024 17:39 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69465 ФПД: 148168255355052 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T173929&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69465&fm=148168255355052&tin=02508201610067®Number=0000000000156251&sum=45000 [17:39:29]StoreToDocumentArchive [17:39:29]shift 193 fd 69465 [17:39:29]save to /storage/0193/doc_00069465 [17:39:29]save last doc name /storage/0193/doc_00069465 to /storage/kkm_last_doc_name [17:39:29]save OK [17:39:29]Clear old archive folders... [17:39:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:39:29]tlvbuf is 00CE22E0 [17:39:29]SAM_PROTO_ClearQueue [17:39:29]wFMCommunicate request_size=4 [17:39:29]MH_SAM_APDU [17:39:29]CAPDU: 80 09 00 00 [17:39:29]Write to MH i2c: E2 08 00 C2 07 80 09 00 00 00 00 00 00 3B [17:39:29]Write i2c OK [17:39:29]MH_I2C_Read... [17:39:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:29]Read from MH i2c: E2 [17:39:29]MH_I2C_Read... [17:39:29]Read from MH i2c: E2 03 00 [17:39:29]MH_I2C_Read... [17:39:29]Read from MH i2c: E2 03 00 C2 07 00 90 00 3D [17:39:29]RAPDU: 90 00 [17:39:29]wFMCommunicate OK [17:39:29]SAM_PROTO_ClearQueue done [17:39:29]KKMCreateOFDPacket [17:39:29]OFDProtocolAddRootSTLVToBuf [17:39:29]FM_MakeSignedData [17:39:29]FM_MakeSignedData [17:39:29]SAM_PROTO_SignData [17:39:29]wFMCommunicate request_size=4 [17:39:29]MH_SAM_APDU [17:39:29]CAPDU: 80 0D 01 02 [17:39:29]Write to MH i2c: E2 08 00 C3 07 80 0D 01 02 00 00 00 00 43 [17:39:29]Write i2c OK [17:39:29]MH_I2C_Read... [17:39:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:30]Read from MH i2c: E2 [17:39:30]MH_I2C_Read... [17:39:30]Read from MH i2c: E2 03 00 [17:39:30]MH_I2C_Read... [17:39:30]Read from MH i2c: E2 03 00 C3 07 00 90 00 3E [17:39:30]RAPDU: 90 00 [17:39:30]wFMCommunicate OK [17:39:30]wFMCommunicate request_size=255 [17:39:30]MH_SAM_APDU [17:39:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 51 40 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 59 0F 01 00 35 04 06 00 86 [17:39:30]Write to MH i2c: E2 02 01 C4 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 51 40 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 59 0F 01 00 35 04 06 00 86 00 00 A6 [17:39:30]Write i2c OK [17:39:30]MH_I2C_Read... [17:39:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:30]Read from MH i2c: E2 [17:39:30]MH_I2C_Read... [17:39:30]Read from MH i2c: E2 03 00 [17:39:30]MH_I2C_Read... [17:39:30]Read from MH i2c: E2 03 00 C4 07 00 90 00 3F [17:39:30]RAPDU: 90 00 [17:39:30]wFMCommunicate OK [17:39:30]wFMCommunicate request_size=10 [17:39:30]MH_SAM_APDU [17:39:30]CAPDU: 80 0D 02 02 05 C2 1C 3A 38 AC [17:39:30]Write to MH i2c: E2 0D 00 C5 07 80 0D 02 02 05 00 C2 1C 3A 38 AC 00 00 4C [17:39:30]Write i2c OK [17:39:30]MH_I2C_Read... [17:39:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:30]Read from MH i2c: E2 [17:39:30]MH_I2C_Read... [17:39:30]Read from MH i2c: E2 03 00 [17:39:30]MH_I2C_Read... [17:39:30]Read from MH i2c: E2 03 00 C5 07 00 90 00 40 [17:39:30]RAPDU: 90 00 [17:39:30]wFMCommunicate OK [17:39:30]wFMCommunicate request_size=4 [17:39:30]MH_SAM_APDU [17:39:30]CAPDU: 80 0D 03 02 [17:39:30]Write to MH i2c: E2 08 00 C6 07 80 0D 03 02 00 00 00 00 48 [17:39:30]Write i2c OK [17:39:30]MH_I2C_Read... [17:39:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:30]Read from MH i2c: E2 [17:39:30]MH_I2C_Read... [17:39:30]Read from MH i2c: E2 0B 00 [17:39:30]MH_I2C_Read... [17:39:30]Read from MH i2c: E2 0B 00 C6 07 00 92 38 10 46 93 F1 35 8F 90 00 B1 [17:39:30]RAPDU: 92 38 10 46 93 F1 35 8F 90 00 [17:39:30]wFMCommunicate OK [17:39:30]SAM_PROTO_SignData done [17:39:30]FM_MakeSignedData done [17:39:30]CreateOFDProtocolMessage [17:39:30]wFMCommunicate request_size=4 [17:39:30]MH_SAM_APDU [17:39:30]CAPDU: 80 11 00 00 [17:39:30]Write to MH i2c: E2 08 00 C7 07 80 11 00 00 00 00 00 00 48 [17:39:30]Write i2c OK [17:39:30]MH_I2C_Read... [17:39:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:30]Read from MH i2c: E2 [17:39:30]MH_I2C_Read... [17:39:30]Read from MH i2c: E2 17 00 [17:39:30]MH_I2C_Read... [17:39:30]Read from MH i2c: E2 17 00 C7 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9A [17:39:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:39:30]wFMCommunicate OK [17:39:30]CreateOFDProtocolMessage done [17:39:30]OFDSenderStorePacket 69465 [17:39:30]StoreOFDPacket docnum=69465 [17:39:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 01 EE 07 01 25 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 51 40 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 59 0F 01 00 35 04 06 00 86 C2 1C 3A 38 AC 92 38 10 46 93 F1 35 8F [17:39:30]CheckFolder [17:39:30]dirname=/storage/ofd_packets [17:39:30]CheckFolder done [17:39:30]ProducePacketName [17:39:30]name=ofd_packets/00069465 [17:39:30]NVStorageSaveData ofd_packets/00069465 [17:39:30]File name is /storage/ofd_packets/00069465 [17:39:30]Write 301 bytes [17:39:30]NVStorageSaveData done [17:39:30]OFDSenderStorePacket done [17:39:30]KKMCreateOFDPacket done [17:39:30]NVStorageSaveData kkm_last_timestamp [17:39:30]File name is /storage/kkm_last_timestamp [17:39:30]Write 4 bytes [17:39:30]NVStorageSaveData done [17:39:30]ExternCall_PrintAddStr [17:39:30]wPrintStart [17:39:30]Write to MH i2c: 01 00 00 C8 07 CF [17:39:30]Write i2c OK [17:39:30]MH_I2C_Read... [17:39:30]Read from MH i2c: 01 [17:39:30]MH_I2C_Read... [17:39:30]Read from MH i2c: 01 07 00 [17:39:30]MH_I2C_Read... [17:39:30]Read from MH i2c: 01 07 00 C8 07 00 00 00 00 00 FF 0F E4 [17:39:30]RasterBufferAndPrint [17:39:30]line Счет N : (1)2885197 [17:39:30]line ИНН: 02508201610067 [17:39:30]line Контрольно-Кассовый Чек [17:39:30]line ПРОДАЖА [17:39:30]line ТРК (МРК, ГНК) : 12 [17:39:30]line Товар: 2710124130 [17:39:30]line Аи-92-К-5 [17:39:30]line 6.730 * 66.90 [17:39:30]line = 450.24 [17:39:30]line НДС 12% НСП 1% [17:39:30]line > о реализуемом товаре [17:39:30]line ОКРУГЛЕНИЕ: -0.24 [17:39:30]line ИТОГО: 450.00 [17:39:30]line Внесено: 450.00 [17:39:30]line СДАЧА: 0.00 [17:39:30]line НСП 1% : 3.98 [17:39:30]line НДС 12% : 47.81 [17:39:30]line Наличными: 450.00 [17:39:30]line Безнал.: 0.00 [17:39:30]line Место: АЗС № 85 "Партнер Нефть" [17:39:30]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:39:30]line СНО: Общий режим [17:39:30]line Чек 310 20.10.2024 17:39 [17:39:30]line Смена: 193 ФФД: 1.0 [17:39:30]line ЗНМ: 0300000167 [17:39:30]line РНМ: 0000000000156251 [17:39:30]line Версия ККМ: v1.0 [17:39:30]line ФМ: 0000000000963346 [17:39:30]line ФД: 69465 [17:39:30]line ФПД: 148168255355052 [17:39:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T173929&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69465&fm=148168255355052&tin=02508201610067®Number=0000000000156251&sum=45000 [17:39:30]OFD Sender: Processing packet 69465 [packets to send 18, broken 17] [17:39:30]ProducePacketName [17:39:30]name=ofd_packets/00069465 [17:39:30]OFD Sender: To server: pG, [17:39:30]CommunicateWithHost lk.salyk.kg:30040 [17:39:30]ConnectInit lk.salyk.kg [17:39:30]written 0, free lines is 4095 [17:39:30]Connected sock=10 [17:39:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 01 EE 07 01 25 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 51 40 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 59 0F 01 00 35 04 06 00 86 C2 1C 3A 38 AC 92 38 10 46 93 F1 35 8F [17:39:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 8A 96 47 00 5F FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 59 0F 01 00 F4 03 04 00 F7 E9 14 67 B6 04 01 00 00 50 C8 0D 27 90 C0 A4 FD [17:39:31]CommunicateWithHost err = 0 [17:39:31]CheckOFDResponse [17:39:31]1017 (14) - 77093643461234 [17:39:31]1041 (16) - 0000000000963346 [17:39:31]1040 (4) - 69465 [17:39:31]1012 (4) - 20.10.2024 11:31 [17:39:31]1206 (1) - 0 [17:39:31]OFD Sender: Remove packet 69465 [17:39:31]ProducePacketName [17:39:31]name=ofd_packets/00069465 [17:39:31]NVStorageDeleteData [17:39:31]Write to MH i2c: 01 00 00 F3 07 FA [17:39:31]Write i2c OK [17:39:31]MH_I2C_Read... [17:39:31]Read from MH i2c: 01 [17:39:31]MH_I2C_Read... [17:39:31]Read from MH i2c: 01 07 00 [17:39:31]MH_I2C_Read... [17:39:31]Read from MH i2c: 01 07 00 F3 07 00 00 00 00 00 E7 0C F4 [17:39:31]RasterBufferAndPrint [17:39:31]line [17:39:31]line [17:39:31]line [17:39:31]line [17:39:31]line [17:39:31]written 0, free lines is 3309 [17:39:31]MH_Cut [17:39:31]Write to MH i2c: D1 01 00 FA 07 01 D3 [17:39:31]Write i2c OK [17:39:31]MH_I2C_Read... [17:39:31]Read from MH i2c: D1 [17:39:31]MH_I2C_Read... [17:39:31]Read from MH i2c: D1 01 00 [17:39:31]MH_I2C_Read... [17:39:31]Read from MH i2c: D1 01 00 FA 07 00 D2 [17:39:31]Write to MH i2c: 01 00 00 FB 07 02 [17:39:31]Write i2c OK [17:39:31]MH_I2C_Read... [17:39:31]OFD Sender: No OFD packet to send [17:39:31]*** Cut start [17:39:31]*** Partial cut [17:39:31]*** CUTSNS_PIN = 1 [17:39:31]*** CUTSNS_PIN = 0 [17:39:32]*** Brake cut motor [17:39:32]Read from MH i2c: 01 [17:39:32]MH_I2C_Read... [17:39:32]*** Stop cut motor [17:39:32]*** Cut end [17:39:32]Read from MH i2c: 01 07 00 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: 01 07 00 FB 07 00 00 00 00 00 FF 0F 17 [17:39:32]process_action close_receipt done [17:39:32]requested_data is exist [17:39:32]produce_requested_data [17:39:32]requested_item fm.sn is exist - process it [17:39:32]wFMCommunicate request_size=4 [17:39:32]MH_SAM_APDU [17:39:32]CAPDU: 80 11 00 00 [17:39:32]Write to MH i2c: E2 08 00 FC 07 80 11 00 00 00 00 00 00 7D [17:39:32]Write i2c OK [17:39:32]MH_I2C_Read... [17:39:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:32]Read from MH i2c: E2 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: E2 17 00 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: E2 17 00 FC 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CF [17:39:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:39:32]wFMCommunicate OK [17:39:32]requested_item fd.num is exist - process it [17:39:32]SAM_PROTO_GetFieldsCounters [17:39:32]wFMCommunicate request_size=4 [17:39:32]MH_SAM_APDU [17:39:32]CAPDU: 80 13 00 00 [17:39:32]Write to MH i2c: E2 08 00 FD 07 80 13 00 00 00 00 00 00 80 [17:39:32]Write i2c OK [17:39:32]MH_I2C_Read... [17:39:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:39:32]Read from MH i2c: E2 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: E2 62 00 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: E2 62 00 FD 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 59 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 6A [17:39:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 59 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:39:32]wFMCommunicate OK [17:39:32]SAM_PROTO_GetFieldsCounters done [17:39:32]requested_item shift.num is exist - process it [17:39:32]requested_item shift.opened is exist - process it [17:39:32]req_shift_opened [17:39:32]FM_GetShiftState [17:39:32]SAM_PROTO_GetShiftState [17:39:32]wFMCommunicate request_size=4 [17:39:32]MH_SAM_APDU [17:39:32]CAPDU: 80 13 01 00 [17:39:32]Write to MH i2c: E2 08 00 FE 07 80 13 01 00 00 00 00 00 82 [17:39:32]Write i2c OK [17:39:32]MH_I2C_Read... [17:39:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:32]Read from MH i2c: E2 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: E2 0E 00 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: E2 0E 00 FE 07 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 88 [17:39:32]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:39:32]wFMCommunicate OK [17:39:32]SAM_PROTO_GetShiftState done [17:39:32]FM_GetShiftState done [17:39:32]req_shift_opened done [17:39:32]requested_item shift.open_date is exist - process it [17:39:32]req_shift_open_date [17:39:32]req_shift_open_date done [17:39:32]produce_requested_data done [17:39:32]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69465,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [17:39:32]process_action_free close_receipt [17:39:32]json_value_free [17:39:32]json_value_free done [17:39:32]process_json_proto returns [17:39:32]Send response to host [17:39:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69465,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [17:39:32]free response buf [17:39:32]execute_script done [17:39:32]execute_script returns [17:39:32]free content buf [17:39:32]Sock 9.Close socket [17:39:32]Sock 9.Thread stoped [17:39:36]OFD Sender: No OFD packet to send [17:39:41]OFD Sender: No OFD packet to send [17:39:46]OFD Sender: No OFD packet to send [17:39:51]OFD Sender: No OFD packet to send [17:39:56]OFD Sender: No OFD packet to send [17:40:01]OFD Sender: No OFD packet to send [17:40:06]OFD Sender: No OFD packet to send [17:40:11]OFD Sender: No OFD packet to send [17:40:16]OFD Sender: No OFD packet to send [17:40:21]OFD Sender: No OFD packet to send [17:40:21]accept exits with 8 [17:40:21]New connection [17:40:21]New thread 3067096420 created [17:40:21]Thread 3067239780 joined [17:40:21]Waiting for new connection... [17:40:21] Sock 8.Parse request [17:40:21]Sock 8.Check first char [17:40:21]Sock 8.First char is OK [17:40:21]request: POST /json_proto HTTP/1.0 [17:40:21]Method: POST [17:40:21]URL: /json_proto [17:40:21]Method is POST - this is cgi request [17:40:21]url: /json_proto [17:40:21]query_string will be loaded in cgi processing [17:40:21]execute_cgi json_proto POST (null) [17:40:21]execute_cgi path=json_proto method=POST [17:40:21]POST find Content-Length [17:40:21]Host: 172.17.50.3:8080 [17:40:21]Content-Length: 683 [17:40:21]Content-Type: application/json [17:40:21] [17:40:21]POST finish read [17:40:21]Found Content-Length = 683 [17:40:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:40:21]execute_script... [17:40:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:40:21]POST & json_proto [17:40:21]process_json_proto [17:40:21]json parsed OK: [17:40:21]protocol is kg_v1.0 [17:40:21]action value=close_receipt [17:40:21]process_action close_receipt [17:40:21]cmd_close_receipt [17:40:21]MH_GetDate [17:40:21]Write to MH i2c: F0 00 00 FF 07 F5 [17:40:21]Write i2c OK [17:40:21]MH_I2C_Read... [17:40:21]Read from MH i2c: F0 [17:40:21]MH_I2C_Read... [17:40:21]Read from MH i2c: F0 09 00 [17:40:21]MH_I2C_Read... [17:40:21]Read from MH i2c: F0 09 00 FF 07 00 86 40 15 67 6B 98 1E 66 C7 [17:40:21]GetLastDocTimeStamp 1729445969 [17:40:21]current date 1729446022 [17:40:21]FM_GetShiftState [17:40:21]SAM_PROTO_GetShiftState [17:40:21]wFMCommunicate request_size=4 [17:40:21]MH_SAM_APDU [17:40:21]CAPDU: 80 13 01 00 [17:40:21]Write to MH i2c: E2 08 00 00 08 80 13 01 00 00 00 00 00 85 [17:40:21]Write i2c OK [17:40:21]MH_I2C_Read... [17:40:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:21]Read from MH i2c: E2 [17:40:21]MH_I2C_Read... [17:40:21]Read from MH i2c: E2 0E 00 [17:40:21]MH_I2C_Read... [17:40:21]Read from MH i2c: E2 0E 00 00 08 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 8B [17:40:21]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:40:21]wFMCommunicate OK [17:40:21]SAM_PROTO_GetShiftState done [17:40:21]FM_GetShiftState done [17:40:21]opened in 1729383220 [17:40:21]opened+sec_in_day 1729469620 [17:40:21]quantity*price = 200043 [17:40:21]sum+1 = 200044 [17:40:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 311 20.10.2024 17:40 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69466 ФПД: 209100526309681 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174022&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69466&fm=209100526309681&tin=02508201610067®Number=0000000000156251&sum=200000 [17:40:22]StoreToDocumentArchive [17:40:22]shift 193 fd 69466 [17:40:22]save to /storage/0193/doc_00069466 [17:40:22]save last doc name /storage/0193/doc_00069466 to /storage/kkm_last_doc_name [17:40:22]save OK [17:40:22]Clear old archive folders... [17:40:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:40:22]tlvbuf is 00CF9990 [17:40:22]SAM_PROTO_ClearQueue [17:40:22]wFMCommunicate request_size=4 [17:40:22]MH_SAM_APDU [17:40:22]CAPDU: 80 09 00 00 [17:40:22]Write to MH i2c: E2 08 00 0D 08 80 09 00 00 00 00 00 00 87 [17:40:22]Write i2c OK [17:40:22]MH_I2C_Read... [17:40:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:40:22]Read from MH i2c: E2 [17:40:22]MH_I2C_Read... [17:40:22]Read from MH i2c: E2 03 00 [17:40:22]MH_I2C_Read... [17:40:22]Read from MH i2c: E2 03 00 0D 08 00 90 00 89 [17:40:22]RAPDU: 90 00 [17:40:22]wFMCommunicate OK [17:40:22]SAM_PROTO_ClearQueue done [17:40:22]KKMCreateOFDPacket [17:40:22]OFDProtocolAddRootSTLVToBuf [17:40:22]FM_MakeSignedData [17:40:22]FM_MakeSignedData [17:40:22]SAM_PROTO_SignData [17:40:22]wFMCommunicate request_size=4 [17:40:22]MH_SAM_APDU [17:40:22]CAPDU: 80 0D 01 02 [17:40:22]Write to MH i2c: E2 08 00 0E 08 80 0D 01 02 00 00 00 00 8F [17:40:22]Write i2c OK [17:40:22]MH_I2C_Read... [17:40:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:40:22]Read from MH i2c: E2 [17:40:22]MH_I2C_Read... [17:40:22]Read from MH i2c: E2 03 00 [17:40:22]MH_I2C_Read... [17:40:22]Read from MH i2c: E2 03 00 0E 08 00 90 00 8A [17:40:22]RAPDU: 90 00 [17:40:22]wFMCommunicate OK [17:40:22]wFMCommunicate request_size=255 [17:40:22]MH_SAM_APDU [17:40:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 86 40 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5A 0F 01 00 35 04 06 00 BE [17:40:22]Write to MH i2c: E2 02 01 0F 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 86 40 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5A 0F 01 00 35 04 06 00 BE 00 00 23 [17:40:22]Write i2c OK [17:40:22]MH_I2C_Read... [17:40:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:22]Read from MH i2c: E2 [17:40:22]MH_I2C_Read... [17:40:22]Read from MH i2c: E2 03 00 [17:40:22]MH_I2C_Read... [17:40:22]Read from MH i2c: E2 03 00 0F 08 00 90 00 8B [17:40:22]RAPDU: 90 00 [17:40:22]wFMCommunicate OK [17:40:22]wFMCommunicate request_size=10 [17:40:22]MH_SAM_APDU [17:40:22]CAPDU: 80 0D 02 02 05 2D 02 97 D1 31 [17:40:22]Write to MH i2c: E2 0D 00 10 08 80 0D 02 02 05 00 2D 02 97 D1 31 00 00 64 [17:40:22]Write i2c OK [17:40:22]MH_I2C_Read... [17:40:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:22]Read from MH i2c: E2 [17:40:22]MH_I2C_Read... [17:40:22]Read from MH i2c: E2 03 00 [17:40:22]MH_I2C_Read... [17:40:22]Read from MH i2c: E2 03 00 10 08 00 90 00 8C [17:40:22]RAPDU: 90 00 [17:40:22]wFMCommunicate OK [17:40:22]wFMCommunicate request_size=4 [17:40:22]MH_SAM_APDU [17:40:22]CAPDU: 80 0D 03 02 [17:40:22]Write to MH i2c: E2 08 00 11 08 80 0D 03 02 00 00 00 00 94 [17:40:22]Write i2c OK [17:40:22]MH_I2C_Read... [17:40:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:40:22]Read from MH i2c: E2 [17:40:22]MH_I2C_Read... [17:40:22]Read from MH i2c: E2 0B 00 [17:40:22]MH_I2C_Read... [17:40:22]Read from MH i2c: E2 0B 00 11 08 00 49 4C 82 38 4B B5 CC 71 90 00 21 [17:40:22]RAPDU: 49 4C 82 38 4B B5 CC 71 90 00 [17:40:22]wFMCommunicate OK [17:40:22]SAM_PROTO_SignData done [17:40:22]FM_MakeSignedData done [17:40:22]CreateOFDProtocolMessage [17:40:22]wFMCommunicate request_size=4 [17:40:22]MH_SAM_APDU [17:40:22]CAPDU: 80 11 00 00 [17:40:22]Write to MH i2c: E2 08 00 12 08 80 11 00 00 00 00 00 00 94 [17:40:22]Write i2c OK [17:40:22]MH_I2C_Read... [17:40:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:23]Read from MH i2c: E2 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 17 00 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 17 00 12 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E6 [17:40:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:40:23]wFMCommunicate OK [17:40:23]CreateOFDProtocolMessage done [17:40:23]OFDSenderStorePacket 69466 [17:40:23]StoreOFDPacket docnum=69466 [17:40:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 6B B4 07 01 5F B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 86 40 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5A 0F 01 00 35 04 06 00 BE 2D 02 97 D1 31 49 4C 82 38 4B B5 CC 71 [17:40:23]CheckFolder [17:40:23]dirname=/storage/ofd_packets [17:40:23]CheckFolder done [17:40:23]ProducePacketName [17:40:23]name=ofd_packets/00069466 [17:40:23]NVStorageSaveData ofd_packets/00069466 [17:40:23]File name is /storage/ofd_packets/00069466 [17:40:23]Write 301 bytes [17:40:23]NVStorageSaveData done [17:40:23]OFDSenderStorePacket done [17:40:23]KKMCreateOFDPacket done [17:40:23]NVStorageSaveData kkm_last_timestamp [17:40:23]File name is /storage/kkm_last_timestamp [17:40:23]Write 4 bytes [17:40:23]NVStorageSaveData done [17:40:23]ExternCall_PrintAddStr [17:40:23]wPrintStart [17:40:23]Write to MH i2c: 01 00 00 13 08 1B [17:40:23]Write i2c OK [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: 01 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: 01 07 00 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: 01 07 00 13 08 00 00 00 00 00 FF 0F 30 [17:40:23]RasterBufferAndPrint [17:40:23]line Счет N : (1)2885198 [17:40:23]line ИНН: 02508201610067 [17:40:23]line Контрольно-Кассовый Чек [17:40:23]line ПРОДАЖА [17:40:23]line ТРК (МРК, ГНК) : 23 [17:40:23]line Товар: 2710124500 [17:40:23]line Аи-95-К-5 [17:40:23]line 26.960 * 74.20 [17:40:23]line = 2000.43 [17:40:23]line НДС 12% НСП 1% [17:40:23]line > о реализуемом товаре [17:40:23]line ОКРУГЛЕНИЕ: -0.43 [17:40:23]line ИТОГО: 2000.00 [17:40:23]line Внесено: 2000.00 [17:40:23]line СДАЧА: 0.00 [17:40:23]line НСП 1% : 17.70 [17:40:23]line НДС 12% : 212.43 [17:40:23]line Наличными: 2000.00 [17:40:23]line Безнал.: 0.00 [17:40:23]line Место: АЗС № 85 "Партнер Нефть" [17:40:23]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:40:23]line СНО: Общий режим [17:40:23]line Чек 311 20.10.2024 17:40 [17:40:23]line Смена: 193 ФФД: 1.0 [17:40:23]line ЗНМ: 0300000167 [17:40:23]line РНМ: 0000000000156251 [17:40:23]line Версия ККМ: v1.0 [17:40:23]line ФМ: 0000000000963346 [17:40:23]line ФД: 69466 [17:40:23]line ФПД: 209100526309681 [17:40:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174022&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69466&fm=209100526309681&tin=02508201610067®Number=0000000000156251&sum=200000 [17:40:23]OFD Sender: Processing packet 69466 [packets to send 18, broken 17] [17:40:23]ProducePacketName [17:40:23]name=ofd_packets/00069466 [17:40:23]OFD Sender: To server: pG, [17:40:23]CommunicateWithHost lk.salyk.kg:30040 [17:40:23]ConnectInit lk.salyk.kg [17:40:23]written 0, free lines is 4095 [17:40:23]Connected sock=10 [17:40:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 6B B4 07 01 5F B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 86 40 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5A 0F 01 00 35 04 06 00 BE 2D 02 97 D1 31 49 4C 82 38 4B B5 CC 71 [17:40:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 BF BE 47 00 B7 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5A 0F 01 00 F4 03 04 00 2C EA 14 67 B6 04 01 00 00 89 E9 06 B2 13 FA CE 36 [17:40:23]CommunicateWithHost err = 0 [17:40:23]CheckOFDResponse [17:40:23]1017 (14) - 77093643461234 [17:40:23]1041 (16) - 0000000000963346 [17:40:23]1040 (4) - 69466 [17:40:23]1012 (4) - 20.10.2024 11:31 [17:40:23]1206 (1) - 0 [17:40:23]OFD Sender: Remove packet 69466 [17:40:23]ProducePacketName [17:40:23]name=ofd_packets/00069466 [17:40:23]NVStorageDeleteData [17:40:23]Write to MH i2c: 01 00 00 3E 08 46 [17:40:23]Write i2c OK [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: 01 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: 01 07 00 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: 01 07 00 3E 08 00 00 00 00 00 F0 0C 49 [17:40:23]RasterBufferAndPrint [17:40:23]line [17:40:23]line [17:40:23]line [17:40:23]line [17:40:23]line [17:40:23]written 0, free lines is 3318 [17:40:23]MH_Cut [17:40:23]Write to MH i2c: D1 01 00 45 08 01 1F [17:40:23]Write i2c OK [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: D1 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: D1 01 00 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: D1 01 00 45 08 00 1E [17:40:23]Write to MH i2c: 01 00 00 46 08 4E [17:40:23]Write i2c OK [17:40:23]MH_I2C_Read... [17:40:24]OFD Sender: No OFD packet to send [17:40:24]*** Cut start [17:40:24]*** Partial cut [17:40:24]*** CUTSNS_PIN = 1 [17:40:24]*** CUTSNS_PIN = 0 [17:40:24]*** Brake cut motor [17:40:25]Read from MH i2c: 01 [17:40:25]MH_I2C_Read... [17:40:25]*** Stop cut motor [17:40:25]*** Cut end [17:40:25]Read from MH i2c: 01 07 00 [17:40:25]MH_I2C_Read... [17:40:25]Read from MH i2c: 01 07 00 46 08 00 00 00 00 00 FF 0F 63 [17:40:25]process_action close_receipt done [17:40:25]requested_data is exist [17:40:25]produce_requested_data [17:40:25]requested_item fm.sn is exist - process it [17:40:25]wFMCommunicate request_size=4 [17:40:25]MH_SAM_APDU [17:40:25]CAPDU: 80 11 00 00 [17:40:25]Write to MH i2c: E2 08 00 47 08 80 11 00 00 00 00 00 00 C9 [17:40:25]Write i2c OK [17:40:25]MH_I2C_Read... [17:40:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:25]Read from MH i2c: E2 [17:40:25]MH_I2C_Read... [17:40:25]Read from MH i2c: E2 17 00 [17:40:25]MH_I2C_Read... [17:40:25]Read from MH i2c: E2 17 00 47 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1B [17:40:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:40:25]wFMCommunicate OK [17:40:25]requested_item fd.num is exist - process it [17:40:25]SAM_PROTO_GetFieldsCounters [17:40:25]wFMCommunicate request_size=4 [17:40:25]MH_SAM_APDU [17:40:25]CAPDU: 80 13 00 00 [17:40:25]Write to MH i2c: E2 08 00 48 08 80 13 00 00 00 00 00 00 CC [17:40:25]Write i2c OK [17:40:25]MH_I2C_Read... [17:40:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:40:25]Read from MH i2c: E2 [17:40:25]MH_I2C_Read... [17:40:25]Read from MH i2c: E2 62 00 [17:40:25]MH_I2C_Read... [17:40:25]Read from MH i2c: E2 62 00 48 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5A 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 BA [17:40:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5A 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:40:25]wFMCommunicate OK [17:40:25]SAM_PROTO_GetFieldsCounters done [17:40:25]requested_item shift.num is exist - process it [17:40:25]requested_item shift.opened is exist - process it [17:40:25]req_shift_opened [17:40:25]FM_GetShiftState [17:40:25]SAM_PROTO_GetShiftState [17:40:25]wFMCommunicate request_size=4 [17:40:25]MH_SAM_APDU [17:40:25]CAPDU: 80 13 01 00 [17:40:25]Write to MH i2c: E2 08 00 49 08 80 13 01 00 00 00 00 00 CE [17:40:25]Write i2c OK [17:40:25]MH_I2C_Read... [17:40:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:25]Read from MH i2c: E2 [17:40:25]MH_I2C_Read... [17:40:25]Read from MH i2c: E2 0E 00 [17:40:25]MH_I2C_Read... [17:40:25]Read from MH i2c: E2 0E 00 49 08 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 D4 [17:40:25]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:40:25]wFMCommunicate OK [17:40:25]SAM_PROTO_GetShiftState done [17:40:25]FM_GetShiftState done [17:40:25]req_shift_opened done [17:40:25]requested_item shift.open_date is exist - process it [17:40:25]req_shift_open_date [17:40:25]req_shift_open_date done [17:40:25]produce_requested_data done [17:40:25]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69466,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [17:40:25]process_action_free close_receipt [17:40:25]json_value_free [17:40:25]json_value_free done [17:40:25]process_json_proto returns [17:40:25]Send response to host [17:40:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69466,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [17:40:25]free response buf [17:40:25]execute_script done [17:40:25]execute_script returns [17:40:25]free content buf [17:40:25]Sock 8.Close socket [17:40:25]Sock 8.Thread stoped [17:40:29]OFD Sender: No OFD packet to send [17:40:34]OFD Sender: No OFD packet to send [17:40:39]OFD Sender: No OFD packet to send [17:40:44]OFD Sender: No OFD packet to send [17:40:49]OFD Sender: No OFD packet to send [17:40:54]OFD Sender: No OFD packet to send [17:40:59]OFD Sender: No OFD packet to send [17:41:04]OFD Sender: No OFD packet to send [17:41:09]OFD Sender: No OFD packet to send [17:41:12]accept exits with 9 [17:41:12]New connection [17:41:12]New thread 3067239780 created [17:41:12]Thread 3067096420 joined [17:41:12]Waiting for new connection... [17:41:12] Sock 9.Parse request [17:41:12]Sock 9.Check first char [17:41:12]Sock 9.First char is OK [17:41:12]request: POST /json_proto HTTP/1.0 [17:41:12]Method: POST [17:41:12]URL: /json_proto [17:41:12]Method is POST - this is cgi request [17:41:12]url: /json_proto [17:41:12]query_string will be loaded in cgi processing [17:41:12]execute_cgi json_proto POST (null) [17:41:12]execute_cgi path=json_proto method=POST [17:41:12]POST find Content-Length [17:41:12]Host: 172.17.50.3:8080 [17:41:12]Content-Length: 678 [17:41:12]Content-Type: application/json [17:41:12] [17:41:12]POST finish read [17:41:12]Found Content-Length = 678 [17:41:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:12]execute_script... [17:41:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:12]POST & json_proto [17:41:12]process_json_proto [17:41:12]json parsed OK: [17:41:12]protocol is kg_v1.0 [17:41:12]action value=close_receipt [17:41:12]process_action close_receipt [17:41:12]cmd_close_receipt [17:41:12]MH_GetDate [17:41:12]Write to MH i2c: F0 00 00 4A 08 41 [17:41:12]Write i2c OK [17:41:12]MH_I2C_Read... [17:41:12]Read from MH i2c: F0 [17:41:12]MH_I2C_Read... [17:41:12]Read from MH i2c: F0 09 00 [17:41:12]MH_I2C_Read... [17:41:12]Read from MH i2c: F0 09 00 4A 08 00 B9 40 15 67 6B 98 1E 66 46 [17:41:12]GetLastDocTimeStamp 1729446022 [17:41:12]current date 1729446073 [17:41:12]FM_GetShiftState [17:41:12]SAM_PROTO_GetShiftState [17:41:12]wFMCommunicate request_size=4 [17:41:12]MH_SAM_APDU [17:41:12]CAPDU: 80 13 01 00 [17:41:12]Write to MH i2c: E2 08 00 4B 08 80 13 01 00 00 00 00 00 D0 [17:41:12]Write i2c OK [17:41:12]MH_I2C_Read... [17:41:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:12]Read from MH i2c: E2 [17:41:12]MH_I2C_Read... [17:41:12]Read from MH i2c: E2 0E 00 [17:41:12]MH_I2C_Read... [17:41:12]Read from MH i2c: E2 0E 00 4B 08 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 D6 [17:41:12]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:41:12]wFMCommunicate OK [17:41:12]SAM_PROTO_GetShiftState done [17:41:12]FM_GetShiftState done [17:41:12]opened in 1729383220 [17:41:12]opened+sec_in_day 1729469620 [17:41:12]quantity*price = 50041 [17:41:12]sum+1 = 50042 [17:41:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 312 20.10.2024 17:41 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69467 ФПД: 88735102088550 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174113&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69467&fm=88735102088550&tin=02508201610067®Number=0000000000156251&sum=50000 [17:41:13]StoreToDocumentArchive [17:41:13]shift 193 fd 69467 [17:41:13]save to /storage/0193/doc_00069467 [17:41:13]save last doc name /storage/0193/doc_00069467 to /storage/kkm_last_doc_name [17:41:13]save OK [17:41:13]Clear old archive folders... [17:41:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:41:13]tlvbuf is 00D17770 [17:41:13]SAM_PROTO_ClearQueue [17:41:13]wFMCommunicate request_size=4 [17:41:13]MH_SAM_APDU [17:41:13]CAPDU: 80 09 00 00 [17:41:13]Write to MH i2c: E2 08 00 58 08 80 09 00 00 00 00 00 00 D2 [17:41:13]Write i2c OK [17:41:13]MH_I2C_Read... [17:41:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:41:13]Read from MH i2c: E2 [17:41:13]MH_I2C_Read... [17:41:13]Read from MH i2c: E2 03 00 [17:41:13]MH_I2C_Read... [17:41:13]Read from MH i2c: E2 03 00 58 08 00 90 00 D4 [17:41:13]RAPDU: 90 00 [17:41:13]wFMCommunicate OK [17:41:13]SAM_PROTO_ClearQueue done [17:41:13]KKMCreateOFDPacket [17:41:13]OFDProtocolAddRootSTLVToBuf [17:41:13]FM_MakeSignedData [17:41:13]FM_MakeSignedData [17:41:13]SAM_PROTO_SignData [17:41:13]wFMCommunicate request_size=4 [17:41:13]MH_SAM_APDU [17:41:13]CAPDU: 80 0D 01 02 [17:41:13]Write to MH i2c: E2 08 00 59 08 80 0D 01 02 00 00 00 00 DA [17:41:13]Write i2c OK [17:41:13]MH_I2C_Read... [17:41:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:41:13]Read from MH i2c: E2 [17:41:13]MH_I2C_Read... [17:41:13]Read from MH i2c: E2 03 00 [17:41:13]MH_I2C_Read... [17:41:13]Read from MH i2c: E2 03 00 59 08 00 90 00 D5 [17:41:13]RAPDU: 90 00 [17:41:13]wFMCommunicate OK [17:41:13]wFMCommunicate request_size=255 [17:41:13]MH_SAM_APDU [17:41:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 B9 40 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5B 0F 01 00 35 04 06 00 50 [17:41:13]Write to MH i2c: E2 02 01 5A 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 B9 40 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5B 0F 01 00 35 04 06 00 50 00 00 8D [17:41:13]Write i2c OK [17:41:13]MH_I2C_Read... [17:41:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:13]Read from MH i2c: E2 [17:41:13]MH_I2C_Read... [17:41:13]Read from MH i2c: E2 03 00 [17:41:13]MH_I2C_Read... [17:41:13]Read from MH i2c: E2 03 00 5A 08 00 90 00 D6 [17:41:13]RAPDU: 90 00 [17:41:13]wFMCommunicate OK [17:41:13]wFMCommunicate request_size=10 [17:41:13]MH_SAM_APDU [17:41:13]CAPDU: 80 0D 02 02 05 B4 40 3D 35 66 [17:41:13]Write to MH i2c: E2 0D 00 5B 08 80 0D 02 02 05 00 B4 40 3D 35 66 00 00 B3 [17:41:13]Write i2c OK [17:41:13]MH_I2C_Read... [17:41:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:13]Read from MH i2c: E2 [17:41:13]MH_I2C_Read... [17:41:13]Read from MH i2c: E2 03 00 [17:41:13]MH_I2C_Read... [17:41:13]Read from MH i2c: E2 03 00 5B 08 00 90 00 D7 [17:41:13]RAPDU: 90 00 [17:41:13]wFMCommunicate OK [17:41:13]wFMCommunicate request_size=4 [17:41:13]MH_SAM_APDU [17:41:13]CAPDU: 80 0D 03 02 [17:41:13]Write to MH i2c: E2 08 00 5C 08 80 0D 03 02 00 00 00 00 DF [17:41:13]Write i2c OK [17:41:13]MH_I2C_Read... [17:41:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:41:13]Read from MH i2c: E2 [17:41:13]MH_I2C_Read... [17:41:13]Read from MH i2c: E2 0B 00 [17:41:13]MH_I2C_Read... [17:41:13]Read from MH i2c: E2 0B 00 5C 08 00 52 27 3A EA 72 28 D5 22 90 00 0E [17:41:13]RAPDU: 52 27 3A EA 72 28 D5 22 90 00 [17:41:13]wFMCommunicate OK [17:41:13]SAM_PROTO_SignData done [17:41:13]FM_MakeSignedData done [17:41:13]CreateOFDProtocolMessage [17:41:13]wFMCommunicate request_size=4 [17:41:13]MH_SAM_APDU [17:41:13]CAPDU: 80 11 00 00 [17:41:13]Write to MH i2c: E2 08 00 5D 08 80 11 00 00 00 00 00 00 DF [17:41:13]Write i2c OK [17:41:13]MH_I2C_Read... [17:41:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:13]Read from MH i2c: E2 [17:41:13]MH_I2C_Read... [17:41:13]Read from MH i2c: E2 17 00 [17:41:13]MH_I2C_Read... [17:41:13]Read from MH i2c: E2 17 00 5D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 31 [17:41:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:41:13]wFMCommunicate OK [17:41:13]CreateOFDProtocolMessage done [17:41:13]OFDSenderStorePacket 69467 [17:41:13]StoreOFDPacket docnum=69467 [17:41:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 26 50 07 01 FA 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 B9 40 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5B 0F 01 00 35 04 06 00 50 B4 40 3D 35 66 52 27 3A EA 72 28 D5 22 [17:41:13]CheckFolder [17:41:13]dirname=/storage/ofd_packets [17:41:13]CheckFolder done [17:41:13]ProducePacketName [17:41:13]name=ofd_packets/00069467 [17:41:13]NVStorageSaveData ofd_packets/00069467 [17:41:13]File name is /storage/ofd_packets/00069467 [17:41:13]Write 301 bytes [17:41:13]NVStorageSaveData done [17:41:13]OFDSenderStorePacket done [17:41:13]KKMCreateOFDPacket done [17:41:13]NVStorageSaveData kkm_last_timestamp [17:41:13]File name is /storage/kkm_last_timestamp [17:41:13]Write 4 bytes [17:41:13]NVStorageSaveData done [17:41:13]ExternCall_PrintAddStr [17:41:13]wPrintStart [17:41:13]Write to MH i2c: 01 00 00 5E 08 66 [17:41:13]Write i2c OK [17:41:13]MH_I2C_Read... [17:41:13]Read from MH i2c: 01 [17:41:13]MH_I2C_Read... [17:41:13]Read from MH i2c: 01 07 00 [17:41:13]MH_I2C_Read... [17:41:13]Read from MH i2c: 01 07 00 5E 08 00 00 00 00 00 FF 0F 7B [17:41:13]RasterBufferAndPrint [17:41:13]line Счет N : (1)2885199 [17:41:13]line ИНН: 02508201610067 [17:41:13]line Контрольно-Кассовый Чек [17:41:13]line ПРОДАЖА [17:41:13]line ТРК (МРК, ГНК) : 32 [17:41:13]line Товар: 2710124130 [17:41:13]line Аи-92-К-5 [17:41:13]line 7.480 * 66.90 [17:41:13]line = 500.41 [17:41:13]line НДС 12% НСП 1% [17:41:13]line > о реализуемом товаре [17:41:13]line ОКРУГЛЕНИЕ: -0.41 [17:41:13]line ИТОГО: 500.00 [17:41:13]line Внесено: 500.00 [17:41:13]line СДАЧА: 0.00 [17:41:13]line НСП 1% : 4.43 [17:41:13]line НДС 12% : 53.14 [17:41:13]line Наличными: 500.00 [17:41:13]line Безнал.: 0.00 [17:41:13]line Место: АЗС № 85 "Партнер Нефть" [17:41:13]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:41:13]line СНО: Общий режим [17:41:13]line Чек 312 20.10.2024 17:41 [17:41:13]line Смена: 193 ФФД: 1.0 [17:41:13]line ЗНМ: 0300000167 [17:41:13]line РНМ: 0000000000156251 [17:41:13]line Версия ККМ: v1.0 [17:41:13]line ФМ: 0000000000963346 [17:41:13]line ФД: 69467 [17:41:13]line ФПД: 88735102088550 [17:41:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174113&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69467&fm=88735102088550&tin=02508201610067®Number=0000000000156251&sum=50000 [17:41:14]OFD Sender: Processing packet 69467 [packets to send 18, broken 17] [17:41:14]ProducePacketName [17:41:14]name=ofd_packets/00069467 [17:41:14]OFD Sender: To server: pG, [17:41:14]CommunicateWithHost lk.salyk.kg:30040 [17:41:14]ConnectInit lk.salyk.kg [17:41:14]written 0, free lines is 4095 [17:41:14]Connected sock=10 [17:41:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 26 50 07 01 FA 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 B9 40 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5B 0F 01 00 35 04 06 00 50 B4 40 3D 35 66 52 27 3A EA 72 28 D5 22 [17:41:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 32 90 47 00 FD 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 30 39 36 33 33 34 36 10 04 04 00 5B 0F 01 00 F4 03 04 00 5F EA 14 67 B6 04 01 00 00 0B 20 0A F1 F6 77 E5 FA [17:41:14]CommunicateWithHost err = 0 [17:41:14]CheckOFDResponse [17:41:14]1017 (14) - 77093643461234 [17:41:14]1041 (16) - 0000000000963346 [17:41:14]1040 (4) - 69467 [17:41:14]1012 (4) - 20.10.2024 11:32 [17:41:14]1206 (1) - 0 [17:41:14]OFD Sender: Remove packet 69467 [17:41:14]ProducePacketName [17:41:14]name=ofd_packets/00069467 [17:41:14]NVStorageDeleteData [17:41:14]Write to MH i2c: 01 00 00 89 08 91 [17:41:14]Write i2c OK [17:41:14]MH_I2C_Read... [17:41:14]Read from MH i2c: 01 [17:41:14]MH_I2C_Read... [17:41:14]Read from MH i2c: 01 07 00 [17:41:14]MH_I2C_Read... [17:41:14]Read from MH i2c: 01 07 00 89 08 00 00 00 00 00 F1 0C 95 [17:41:14]RasterBufferAndPrint [17:41:14]line [17:41:14]line [17:41:14]line [17:41:14]line [17:41:14]line [17:41:14]written 0, free lines is 3319 [17:41:14]MH_Cut [17:41:14]Write to MH i2c: D1 01 00 90 08 01 6A [17:41:14]Write i2c OK [17:41:14]MH_I2C_Read... [17:41:14]Read from MH i2c: D1 [17:41:14]MH_I2C_Read... [17:41:14]Read from MH i2c: D1 01 00 [17:41:14]MH_I2C_Read... [17:41:14]Read from MH i2c: D1 01 00 90 08 00 69 [17:41:14]Write to MH i2c: 01 00 00 91 08 99 [17:41:14]Write i2c OK [17:41:14]MH_I2C_Read... [17:41:15]OFD Sender: No OFD packet to send [17:41:15]*** Cut start [17:41:15]*** Partial cut [17:41:15]*** CUTSNS_PIN = 1 [17:41:15]*** CUTSNS_PIN = 0 [17:41:15]*** Brake cut motor [17:41:16]Read from MH i2c: 01 [17:41:16]MH_I2C_Read... [17:41:16]*** Stop cut motor [17:41:16]*** Cut end [17:41:16]Read from MH i2c: 01 07 00 [17:41:16]MH_I2C_Read... [17:41:16]Read from MH i2c: 01 07 00 91 08 00 00 00 00 00 FF 0F AE [17:41:16]process_action close_receipt done [17:41:16]requested_data is exist [17:41:16]produce_requested_data [17:41:16]requested_item fm.sn is exist - process it [17:41:16]wFMCommunicate request_size=4 [17:41:16]MH_SAM_APDU [17:41:16]CAPDU: 80 11 00 00 [17:41:16]Write to MH i2c: E2 08 00 92 08 80 11 00 00 00 00 00 00 14 [17:41:16]Write i2c OK [17:41:16]MH_I2C_Read... [17:41:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:16]Read from MH i2c: E2 [17:41:16]MH_I2C_Read... [17:41:16]Read from MH i2c: E2 17 00 [17:41:16]MH_I2C_Read... [17:41:16]Read from MH i2c: E2 17 00 92 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 66 [17:41:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:41:16]wFMCommunicate OK [17:41:16]requested_item fd.num is exist - process it [17:41:16]SAM_PROTO_GetFieldsCounters [17:41:16]wFMCommunicate request_size=4 [17:41:16]MH_SAM_APDU [17:41:16]CAPDU: 80 13 00 00 [17:41:16]Write to MH i2c: E2 08 00 93 08 80 13 00 00 00 00 00 00 17 [17:41:16]Write i2c OK [17:41:16]MH_I2C_Read... [17:41:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:41:16]Read from MH i2c: E2 [17:41:16]MH_I2C_Read... [17:41:16]Read from MH i2c: E2 62 00 [17:41:16]MH_I2C_Read... [17:41:16]Read from MH i2c: E2 62 00 93 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5B 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 09 [17:41:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5B 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:41:16]wFMCommunicate OK [17:41:16]SAM_PROTO_GetFieldsCounters done [17:41:16]requested_item shift.num is exist - process it [17:41:16]requested_item shift.opened is exist - process it [17:41:16]req_shift_opened [17:41:16]FM_GetShiftState [17:41:16]SAM_PROTO_GetShiftState [17:41:16]wFMCommunicate request_size=4 [17:41:16]MH_SAM_APDU [17:41:16]CAPDU: 80 13 01 00 [17:41:16]Write to MH i2c: E2 08 00 94 08 80 13 01 00 00 00 00 00 19 [17:41:16]Write i2c OK [17:41:16]MH_I2C_Read... [17:41:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:16]Read from MH i2c: E2 [17:41:16]MH_I2C_Read... [17:41:16]Read from MH i2c: E2 0E 00 [17:41:16]MH_I2C_Read... [17:41:16]Read from MH i2c: E2 0E 00 94 08 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 1F [17:41:16]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:41:16]wFMCommunicate OK [17:41:16]SAM_PROTO_GetShiftState done [17:41:16]FM_GetShiftState done [17:41:16]req_shift_opened done [17:41:16]requested_item shift.open_date is exist - process it [17:41:16]req_shift_open_date [17:41:16]req_shift_open_date done [17:41:16]produce_requested_data done [17:41:16]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69467,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [17:41:16]process_action_free close_receipt [17:41:16]json_value_free [17:41:16]json_value_free done [17:41:16]process_json_proto returns [17:41:16]Send response to host [17:41:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69467,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [17:41:16]free response buf [17:41:16]execute_script done [17:41:16]execute_script returns [17:41:16]free content buf [17:41:16]Sock 9.Close socket [17:41:16]Sock 9.Thread stoped [17:41:20]OFD Sender: No OFD packet to send [17:41:25]OFD Sender: No OFD packet to send [17:41:30]OFD Sender: No OFD packet to send [17:41:35]OFD Sender: No OFD packet to send [17:41:40]OFD Sender: No OFD packet to send [17:41:45]OFD Sender: No OFD packet to send [17:41:50]OFD Sender: No OFD packet to send [17:41:55]OFD Sender: No OFD packet to send [17:42:00]OFD Sender: No OFD packet to send [17:42:05]OFD Sender: No OFD packet to send [17:42:10]OFD Sender: No OFD packet to send [17:42:15]OFD Sender: No OFD packet to send [17:42:20]OFD Sender: No OFD packet to send [17:42:25]OFD Sender: No OFD packet to send [17:42:30]OFD Sender: No OFD packet to send [17:42:35]OFD Sender: No OFD packet to send [17:42:40]OFD Sender: No OFD packet to send [17:42:45]OFD Sender: No OFD packet to send [17:42:50]OFD Sender: No OFD packet to send [17:42:55]OFD Sender: No OFD packet to send [17:43:00]OFD Sender: No OFD packet to send [17:43:05]OFD Sender: No OFD packet to send [17:43:10]OFD Sender: No OFD packet to send [17:43:15]OFD Sender: No OFD packet to send [17:43:20]OFD Sender: No OFD packet to send [17:43:25]OFD Sender: No OFD packet to send [17:43:30]OFD Sender: No OFD packet to send [17:43:35]OFD Sender: No OFD packet to send [17:43:40]OFD Sender: No OFD packet to send [17:43:45]OFD Sender: No OFD packet to send [17:43:46]accept exits with 8 [17:43:46]New connection [17:43:46]New thread 3067096420 created [17:43:46]Thread 3067239780 joined [17:43:46]Waiting for new connection... [17:43:46] Sock 8.Parse request [17:43:46]Sock 8.Check first char [17:43:46]Sock 8.First char is OK [17:43:46]request: POST /json_proto HTTP/1.0 [17:43:46]Method: POST [17:43:46]URL: /json_proto [17:43:46]Method is POST - this is cgi request [17:43:46]url: /json_proto [17:43:46]query_string will be loaded in cgi processing [17:43:46]execute_cgi json_proto POST (null) [17:43:46]execute_cgi path=json_proto method=POST [17:43:46]POST find Content-Length [17:43:46]Host: 172.17.50.3:8080 [17:43:46]Content-Length: 678 [17:43:46]Content-Type: application/json [17:43:46] [17:43:46]POST finish read [17:43:46]Found Content-Length = 678 [17:43:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:46]execute_script... [17:43: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)2885201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:46]POST & json_proto [17:43:46]process_json_proto [17:43:46]json parsed OK: [17:43:46]protocol is kg_v1.0 [17:43:46]action value=close_receipt [17:43:46]process_action close_receipt [17:43:46]cmd_close_receipt [17:43:46]MH_GetDate [17:43:46]Write to MH i2c: F0 00 00 95 08 8C [17:43:46]Write i2c OK [17:43:46]MH_I2C_Read... [17:43:46]Read from MH i2c: F0 [17:43:46]MH_I2C_Read... [17:43:46]Read from MH i2c: F0 09 00 [17:43:46]MH_I2C_Read... [17:43:46]Read from MH i2c: F0 09 00 95 08 00 53 41 15 67 6B 98 1E 66 2C [17:43:46]GetLastDocTimeStamp 1729446073 [17:43:46]current date 1729446227 [17:43:46]FM_GetShiftState [17:43:46]SAM_PROTO_GetShiftState [17:43:46]wFMCommunicate request_size=4 [17:43:46]MH_SAM_APDU [17:43:46]CAPDU: 80 13 01 00 [17:43:46]Write to MH i2c: E2 08 00 96 08 80 13 01 00 00 00 00 00 1B [17:43:46]Write i2c OK [17:43:46]MH_I2C_Read... [17:43:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:46]Read from MH i2c: E2 [17:43:46]MH_I2C_Read... [17:43:46]Read from MH i2c: E2 0E 00 [17:43:46]MH_I2C_Read... [17:43:46]Read from MH i2c: E2 0E 00 96 08 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 21 [17:43:46]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:43:46]wFMCommunicate OK [17:43:46]SAM_PROTO_GetShiftState done [17:43:46]FM_GetShiftState done [17:43:46]opened in 1729383220 [17:43:46]opened+sec_in_day 1729469620 [17:43:46]quantity*price = 20003 [17:43:46]sum+1 = 20004 [17:43:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 313 20.10.2024 17:43 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69468 ФПД: 276090638451466 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174347&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69468&fm=276090638451466&tin=02508201610067®Number=0000000000156251&sum=20000 [17:43:47]StoreToDocumentArchive [17:43:47]shift 193 fd 69468 [17:43:47]save to /storage/0193/doc_00069468 [17:43:47]save last doc name /storage/0193/doc_00069468 to /storage/kkm_last_doc_name [17:43:47]save OK [17:43:47]Clear old archive folders... [17:43:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:43:47]tlvbuf is 00D2C300 [17:43:47]SAM_PROTO_ClearQueue [17:43:47]wFMCommunicate request_size=4 [17:43:47]MH_SAM_APDU [17:43:47]CAPDU: 80 09 00 00 [17:43:47]Write to MH i2c: E2 08 00 A3 08 80 09 00 00 00 00 00 00 1D [17:43:47]Write i2c OK [17:43:47]MH_I2C_Read... [17:43:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:43:47]Read from MH i2c: E2 [17:43:47]MH_I2C_Read... [17:43:47]Read from MH i2c: E2 03 00 [17:43:47]MH_I2C_Read... [17:43:47]Read from MH i2c: E2 03 00 A3 08 00 90 00 1F [17:43:47]RAPDU: 90 00 [17:43:47]wFMCommunicate OK [17:43:47]SAM_PROTO_ClearQueue done [17:43:47]KKMCreateOFDPacket [17:43:47]OFDProtocolAddRootSTLVToBuf [17:43:47]FM_MakeSignedData [17:43:47]FM_MakeSignedData [17:43:47]SAM_PROTO_SignData [17:43:47]wFMCommunicate request_size=4 [17:43:47]MH_SAM_APDU [17:43:47]CAPDU: 80 0D 01 02 [17:43:47]Write to MH i2c: E2 08 00 A4 08 80 0D 01 02 00 00 00 00 25 [17:43:47]Write i2c OK [17:43:47]MH_I2C_Read... [17:43:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:43:47]Read from MH i2c: E2 [17:43:47]MH_I2C_Read... [17:43:47]Read from MH i2c: E2 03 00 [17:43:47]MH_I2C_Read... [17:43:47]Read from MH i2c: E2 03 00 A4 08 00 90 00 20 [17:43:47]RAPDU: 90 00 [17:43:47]wFMCommunicate OK [17:43:47]wFMCommunicate request_size=255 [17:43:47]MH_SAM_APDU [17:43:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 53 41 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5C 0F 01 00 35 04 06 00 FB [17:43:47]Write to MH i2c: E2 02 01 A5 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 53 41 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5C 0F 01 00 35 04 06 00 FB 00 00 E2 [17:43:47]Write i2c OK [17:43:47]MH_I2C_Read... [17:43:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:48]Read from MH i2c: E2 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: E2 03 00 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: E2 03 00 A5 08 00 90 00 21 [17:43:48]RAPDU: 90 00 [17:43:48]wFMCommunicate OK [17:43:48]wFMCommunicate request_size=10 [17:43:48]MH_SAM_APDU [17:43:48]CAPDU: 80 0D 02 02 05 1A 5C 6E 43 0A [17:43:48]Write to MH i2c: E2 0D 00 A6 08 80 0D 02 02 05 00 1A 5C 6E 43 0A 00 00 63 [17:43:48]Write i2c OK [17:43:48]MH_I2C_Read... [17:43:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:48]Read from MH i2c: E2 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: E2 03 00 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: E2 03 00 A6 08 00 90 00 22 [17:43:48]RAPDU: 90 00 [17:43:48]wFMCommunicate OK [17:43:48]wFMCommunicate request_size=4 [17:43:48]MH_SAM_APDU [17:43:48]CAPDU: 80 0D 03 02 [17:43:48]Write to MH i2c: E2 08 00 A7 08 80 0D 03 02 00 00 00 00 2A [17:43:48]Write i2c OK [17:43:48]MH_I2C_Read... [17:43:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:43:48]Read from MH i2c: E2 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: E2 0B 00 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: E2 0B 00 A7 08 00 8C 3D 67 17 24 8E FC FC 90 00 1C [17:43:48]RAPDU: 8C 3D 67 17 24 8E FC FC 90 00 [17:43:48]wFMCommunicate OK [17:43:48]SAM_PROTO_SignData done [17:43:48]FM_MakeSignedData done [17:43:48]CreateOFDProtocolMessage [17:43:48]wFMCommunicate request_size=4 [17:43:48]MH_SAM_APDU [17:43:48]CAPDU: 80 11 00 00 [17:43:48]Write to MH i2c: E2 08 00 A8 08 80 11 00 00 00 00 00 00 2A [17:43:48]Write i2c OK [17:43:48]MH_I2C_Read... [17:43:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:48]Read from MH i2c: E2 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: E2 17 00 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: E2 17 00 A8 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7C [17:43:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:43:48]wFMCommunicate OK [17:43:48]CreateOFDProtocolMessage done [17:43:48]OFDSenderStorePacket 69468 [17:43:48]StoreOFDPacket docnum=69468 [17:43:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 71 DA 07 01 EE 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 53 41 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5C 0F 01 00 35 04 06 00 FB 1A 5C 6E 43 0A 8C 3D 67 17 24 8E FC FC [17:43:48]CheckFolder [17:43:48]dirname=/storage/ofd_packets [17:43:48]CheckFolder done [17:43:48]ProducePacketName [17:43:48]name=ofd_packets/00069468 [17:43:48]NVStorageSaveData ofd_packets/00069468 [17:43:48]File name is /storage/ofd_packets/00069468 [17:43:48]Write 301 bytes [17:43:48]NVStorageSaveData done [17:43:48]OFDSenderStorePacket done [17:43:48]KKMCreateOFDPacket done [17:43:48]NVStorageSaveData kkm_last_timestamp [17:43:48]File name is /storage/kkm_last_timestamp [17:43:48]Write 4 bytes [17:43:48]NVStorageSaveData done [17:43:48]ExternCall_PrintAddStr [17:43:48]wPrintStart [17:43:48]Write to MH i2c: 01 00 00 A9 08 B1 [17:43:48]Write i2c OK [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: 01 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: 01 07 00 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: 01 07 00 A9 08 00 00 00 00 00 FF 0F C6 [17:43:48]RasterBufferAndPrint [17:43:48]line Счет N : (1)2885201 [17:43:48]line ИНН: 02508201610067 [17:43:48]line Контрольно-Кассовый Чек [17:43:48]line ПРОДАЖА [17:43:48]line ТРК (МРК, ГНК) : 12 [17:43:48]line Товар: 2710124130 [17:43:48]line Аи-92-К-5 [17:43:48]line 2.990 * 66.90 [17:43:48]line = 200.03 [17:43:48]line НДС 12% НСП 1% [17:43:48]line > о реализуемом товаре [17:43:48]line ОКРУГЛЕНИЕ: -0.03 [17:43:48]line ИТОГО: 200.00 [17:43:48]line Внесено: 200.00 [17:43:48]line СДАЧА: 0.00 [17:43:48]line НСП 1% : 1.77 [17:43:48]line НДС 12% : 21.24 [17:43:48]line Наличными: 200.00 [17:43:48]line Безнал.: 0.00 [17:43:48]line Место: АЗС № 85 "Партнер Нефть" [17:43:48]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:43:48]line СНО: Общий режим [17:43:48]line Чек 313 20.10.2024 17:43 [17:43:48]line Смена: 193 ФФД: 1.0 [17:43:48]line ЗНМ: 0300000167 [17:43:48]line РНМ: 0000000000156251 [17:43:48]line Версия ККМ: v1.0 [17:43:48]line ФМ: 0000000000963346 [17:43:48]line ФД: 69468 [17:43:48]line ФПД: 276090638451466 [17:43:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174347&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69468&fm=276090638451466&tin=02508201610067®Number=0000000000156251&sum=20000 [17:43:48]OFD Sender: Processing packet 69468 [packets to send 18, broken 17] [17:43:48]ProducePacketName [17:43:48]name=ofd_packets/00069468 [17:43:48]OFD Sender: To server: pG, [17:43:48]CommunicateWithHost lk.salyk.kg:30040 [17:43:48]ConnectInit lk.salyk.kg [17:43:48]written 0, free lines is 4095 [17:43:48]Connected sock=10 [17:43:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 71 DA 07 01 EE 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 53 41 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5C 0F 01 00 35 04 06 00 FB 1A 5C 6E 43 0A 8C 3D 67 17 24 8E FC FC [17:43:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 FC 16 47 00 5E 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5C 0F 01 00 F4 03 04 00 F9 EA 14 67 B6 04 01 00 00 06 95 E3 F6 48 35 1D 4E [17:43:48]CommunicateWithHost err = 0 [17:43:48]CheckOFDResponse [17:43:48]1017 (14) - 77093643461234 [17:43:48]1041 (16) - 0000000000963346 [17:43:48]1040 (4) - 69468 [17:43:48]1012 (4) - 20.10.2024 11:35 [17:43:48]1206 (1) - 0 [17:43:48]OFD Sender: Remove packet 69468 [17:43:48]ProducePacketName [17:43:48]name=ofd_packets/00069468 [17:43:48]NVStorageDeleteData [17:43:49]Write to MH i2c: 01 00 00 D4 08 DC [17:43:49]Write i2c OK [17:43:49]MH_I2C_Read... [17:43:49]Read from MH i2c: 01 [17:43:49]MH_I2C_Read... [17:43:49]Read from MH i2c: 01 07 00 [17:43:49]MH_I2C_Read... [17:43:49]Read from MH i2c: 01 07 00 D4 08 00 00 00 00 00 E3 0C D2 [17:43:49]RasterBufferAndPrint [17:43:49]line [17:43:49]line [17:43:49]line [17:43:49]line [17:43:49]line [17:43:49]written 0, free lines is 3305 [17:43:49]MH_Cut [17:43:49]Write to MH i2c: D1 01 00 DB 08 01 B5 [17:43:49]Write i2c OK [17:43:49]MH_I2C_Read... [17:43:49]Read from MH i2c: D1 [17:43:49]MH_I2C_Read... [17:43:49]Read from MH i2c: D1 01 00 [17:43:49]MH_I2C_Read... [17:43:49]Read from MH i2c: D1 01 00 DB 08 00 B4 [17:43:49]Write to MH i2c: 01 00 00 DC 08 E4 [17:43:49]Write i2c OK [17:43:49]MH_I2C_Read... [17:43:49]OFD Sender: No OFD packet to send [17:43:49]*** Cut start [17:43:49]*** Partial cut [17:43:49]*** CUTSNS_PIN = 1 [17:43:49]*** CUTSNS_PIN = 0 [17:43:50]*** Brake cut motor [17:43:50]Read from MH i2c: 01 [17:43:50]*** Stop cut motor [17:43:50]*** Cut end [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: 01 07 00 [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: 01 07 00 DC 08 00 00 00 00 00 FF 0F F9 [17:43:50]process_action close_receipt done [17:43:50]requested_data is exist [17:43:50]produce_requested_data [17:43:50]requested_item fm.sn is exist - process it [17:43:50]wFMCommunicate request_size=4 [17:43:50]MH_SAM_APDU [17:43:50]CAPDU: 80 11 00 00 [17:43:50]Write to MH i2c: E2 08 00 DD 08 80 11 00 00 00 00 00 00 5F [17:43:50]Write i2c OK [17:43:50]MH_I2C_Read... [17:43:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:50]Read from MH i2c: E2 [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: E2 17 00 [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: E2 17 00 DD 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B1 [17:43:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:43:50]wFMCommunicate OK [17:43:50]requested_item fd.num is exist - process it [17:43:50]SAM_PROTO_GetFieldsCounters [17:43:50]wFMCommunicate request_size=4 [17:43:50]MH_SAM_APDU [17:43:50]CAPDU: 80 13 00 00 [17:43:50]Write to MH i2c: E2 08 00 DE 08 80 13 00 00 00 00 00 00 62 [17:43:50]Write i2c OK [17:43:50]MH_I2C_Read... [17:43:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:43:50]Read from MH i2c: E2 [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: E2 62 00 [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: E2 62 00 DE 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5C 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 58 [17:43:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5C 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:43:50]wFMCommunicate OK [17:43:50]SAM_PROTO_GetFieldsCounters done [17:43:50]requested_item shift.num is exist - process it [17:43:50]requested_item shift.opened is exist - process it [17:43:50]req_shift_opened [17:43:50]FM_GetShiftState [17:43:50]SAM_PROTO_GetShiftState [17:43:50]wFMCommunicate request_size=4 [17:43:50]MH_SAM_APDU [17:43:50]CAPDU: 80 13 01 00 [17:43:50]Write to MH i2c: E2 08 00 DF 08 80 13 01 00 00 00 00 00 64 [17:43:50]Write i2c OK [17:43:50]MH_I2C_Read... [17:43:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:50]Read from MH i2c: E2 [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: E2 0E 00 [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: E2 0E 00 DF 08 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 6A [17:43:50]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:43:50]wFMCommunicate OK [17:43:50]SAM_PROTO_GetShiftState done [17:43:50]FM_GetShiftState done [17:43:50]req_shift_opened done [17:43:50]requested_item shift.open_date is exist - process it [17:43:50]req_shift_open_date [17:43:50]req_shift_open_date done [17:43:50]produce_requested_data done [17:43:50]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69468,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [17:43:50]process_action_free close_receipt [17:43:50]json_value_free [17:43:50]json_value_free done [17:43:50]process_json_proto returns [17:43:50]Send response to host [17:43:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69468,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [17:43:50]free response buf [17:43:50]execute_script done [17:43:50]execute_script returns [17:43:50]free content buf [17:43:50]Sock 8.Close socket [17:43:50]Sock 8.Thread stoped [17:43:54]OFD Sender: No OFD packet to send [17:43:59]OFD Sender: No OFD packet to send [17:44:04]OFD Sender: No OFD packet to send [17:44:09]OFD Sender: No OFD packet to send [17:44:10]accept exits with 9 [17:44:10]New connection [17:44:10]New thread 3067239780 created [17:44:10]Thread 3067096420 joined [17:44:10]Waiting for new connection... [17:44:10] Sock 9.Parse request [17:44:10]Sock 9.Check first char [17:44:10]Sock 9.First char is OK [17:44:10]request: POST /json_proto HTTP/1.0 [17:44:10]Method: POST [17:44:10]URL: /json_proto [17:44:10]Method is POST - this is cgi request [17:44:10]url: /json_proto [17:44:10]query_string will be loaded in cgi processing [17:44:10]execute_cgi json_proto POST (null) [17:44:10]execute_cgi path=json_proto method=POST [17:44:10]POST find Content-Length [17:44:10]Host: 172.17.50.3:8080 [17:44:10]Content-Length: 679 [17:44:10]Content-Type: application/json [17:44:10] [17:44:10]POST finish read [17:44:10]Found Content-Length = 679 [17:44:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.110, "sum" : 750.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:44:10]execute_script... [17:44:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.110, "sum" : 750.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:44:10]POST & json_proto [17:44:10]process_json_proto [17:44:10]json parsed OK: [17:44:10]protocol is kg_v1.0 [17:44:10]action value=close_receipt [17:44:10]process_action close_receipt [17:44:10]cmd_close_receipt [17:44:10]MH_GetDate [17:44:10]Write to MH i2c: F0 00 00 E0 08 D7 [17:44:10]Write i2c OK [17:44:10]MH_I2C_Read... [17:44:10]Read from MH i2c: F0 [17:44:10]MH_I2C_Read... [17:44:10]Read from MH i2c: F0 09 00 [17:44:10]MH_I2C_Read... [17:44:10]Read from MH i2c: F0 09 00 E0 08 00 6B 41 15 67 6B 98 1E 66 8F [17:44:10]GetLastDocTimeStamp 1729446227 [17:44:10]current date 1729446251 [17:44:10]FM_GetShiftState [17:44:10]SAM_PROTO_GetShiftState [17:44:10]wFMCommunicate request_size=4 [17:44:10]MH_SAM_APDU [17:44:10]CAPDU: 80 13 01 00 [17:44:10]Write to MH i2c: E2 08 00 E1 08 80 13 01 00 00 00 00 00 66 [17:44:10]Write i2c OK [17:44:10]MH_I2C_Read... [17:44:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:10]Read from MH i2c: E2 [17:44:10]MH_I2C_Read... [17:44:10]Read from MH i2c: E2 0E 00 [17:44:10]MH_I2C_Read... [17:44:10]Read from MH i2c: E2 0E 00 E1 08 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 6C [17:44:10]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:44:10]wFMCommunicate OK [17:44:10]SAM_PROTO_GetShiftState done [17:44:10]FM_GetShiftState done [17:44:10]opened in 1729383220 [17:44:10]opened+sec_in_day 1729469620 [17:44:10]quantity*price = 75016 [17:44:10]sum+1 = 75017 [17:44:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.66 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 314 20.10.2024 17:44 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69469 ФПД: 41037473283615 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174411&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69469&fm=41037473283615&tin=02508201610067®Number=0000000000156251&sum=75000 [17:44:11]StoreToDocumentArchive [17:44:11]shift 193 fd 69469 [17:44:11]save to /storage/0193/doc_00069469 [17:44:11]save last doc name /storage/0193/doc_00069469 to /storage/kkm_last_doc_name [17:44:11]save OK [17:44:11]Clear old archive folders... [17:44:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:44:11]tlvbuf is 00CEAED0 [17:44:11]SAM_PROTO_ClearQueue [17:44:11]wFMCommunicate request_size=4 [17:44:11]MH_SAM_APDU [17:44:11]CAPDU: 80 09 00 00 [17:44:11]Write to MH i2c: E2 08 00 EE 08 80 09 00 00 00 00 00 00 68 [17:44:11]Write i2c OK [17:44:11]MH_I2C_Read... [17:44:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:44:11]Read from MH i2c: E2 [17:44:11]MH_I2C_Read... [17:44:11]Read from MH i2c: E2 03 00 [17:44:11]MH_I2C_Read... [17:44:11]Read from MH i2c: E2 03 00 EE 08 00 90 00 6A [17:44:11]RAPDU: 90 00 [17:44:11]wFMCommunicate OK [17:44:11]SAM_PROTO_ClearQueue done [17:44:11]KKMCreateOFDPacket [17:44:11]OFDProtocolAddRootSTLVToBuf [17:44:11]FM_MakeSignedData [17:44:11]FM_MakeSignedData [17:44:11]SAM_PROTO_SignData [17:44:11]wFMCommunicate request_size=4 [17:44:11]MH_SAM_APDU [17:44:11]CAPDU: 80 0D 01 02 [17:44:11]Write to MH i2c: E2 08 00 EF 08 80 0D 01 02 00 00 00 00 70 [17:44:11]Write i2c OK [17:44:11]MH_I2C_Read... [17:44:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:44:11]Read from MH i2c: E2 [17:44:11]MH_I2C_Read... [17:44:11]Read from MH i2c: E2 03 00 [17:44:11]MH_I2C_Read... [17:44:11]Read from MH i2c: E2 03 00 EF 08 00 90 00 6B [17:44:11]RAPDU: 90 00 [17:44:11]wFMCommunicate OK [17:44:11]wFMCommunicate request_size=255 [17:44:11]MH_SAM_APDU [17:44:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 6B 41 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5D 0F 01 00 35 04 06 00 25 [17:44:11]Write to MH i2c: E2 02 01 F0 08 80 0D 02 02 FA 00 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 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 6B 41 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5D 0F 01 00 35 04 06 00 25 00 00 2A [17:44:11]Write i2c OK [17:44:11]MH_I2C_Read... [17:44:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:11]Read from MH i2c: E2 [17:44:11]MH_I2C_Read... [17:44:11]Read from MH i2c: E2 03 00 [17:44:11]MH_I2C_Read... [17:44:11]Read from MH i2c: E2 03 00 F0 08 00 90 00 6C [17:44:11]RAPDU: 90 00 [17:44:11]wFMCommunicate OK [17:44:11]wFMCommunicate request_size=10 [17:44:11]MH_SAM_APDU [17:44:11]CAPDU: 80 0D 02 02 05 52 C8 04 7E 1F [17:44:11]Write to MH i2c: E2 0D 00 F1 08 80 0D 02 02 05 00 52 C8 04 7E 1F 00 00 38 [17:44:11]Write i2c OK [17:44:11]MH_I2C_Read... [17:44:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:11]Read from MH i2c: E2 [17:44:11]MH_I2C_Read... [17:44:11]Read from MH i2c: E2 03 00 [17:44:11]MH_I2C_Read... [17:44:11]Read from MH i2c: E2 03 00 F1 08 00 90 00 6D [17:44:11]RAPDU: 90 00 [17:44:11]wFMCommunicate OK [17:44:11]wFMCommunicate request_size=4 [17:44:11]MH_SAM_APDU [17:44:11]CAPDU: 80 0D 03 02 [17:44:11]Write to MH i2c: E2 08 00 F2 08 80 0D 03 02 00 00 00 00 75 [17:44:11]Write i2c OK [17:44:11]MH_I2C_Read... [17:44:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:44:11]Read from MH i2c: E2 [17:44:11]MH_I2C_Read... [17:44:11]Read from MH i2c: E2 0B 00 [17:44:11]MH_I2C_Read... [17:44:11]Read from MH i2c: E2 0B 00 F2 08 00 4D 62 82 DF AC 6E 04 DF 90 00 83 [17:44:11]RAPDU: 4D 62 82 DF AC 6E 04 DF 90 00 [17:44:11]wFMCommunicate OK [17:44:11]SAM_PROTO_SignData done [17:44:11]FM_MakeSignedData done [17:44:11]CreateOFDProtocolMessage [17:44:11]wFMCommunicate request_size=4 [17:44:11]MH_SAM_APDU [17:44:11]CAPDU: 80 11 00 00 [17:44:11]Write to MH i2c: E2 08 00 F3 08 80 11 00 00 00 00 00 00 75 [17:44:11]Write i2c OK [17:44:11]MH_I2C_Read... [17:44:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:12]Read from MH i2c: E2 [17:44:12]MH_I2C_Read... [17:44:12]Read from MH i2c: E2 17 00 [17:44:12]MH_I2C_Read... [17:44:12]Read from MH i2c: E2 17 00 F3 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C7 [17:44:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:44:12]wFMCommunicate OK [17:44:12]CreateOFDProtocolMessage done [17:44:12]OFDSenderStorePacket 69469 [17:44:12]StoreOFDPacket docnum=69469 [17:44:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 0B C9 07 01 34 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 6B 41 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5D 0F 01 00 35 04 06 00 25 52 C8 04 7E 1F 4D 62 82 DF AC 6E 04 DF [17:44:12]CheckFolder [17:44:12]dirname=/storage/ofd_packets [17:44:12]CheckFolder done [17:44:12]ProducePacketName [17:44:12]name=ofd_packets/00069469 [17:44:12]NVStorageSaveData ofd_packets/00069469 [17:44:12]File name is /storage/ofd_packets/00069469 [17:44:12]Write 301 bytes [17:44:12]NVStorageSaveData done [17:44:12]OFDSenderStorePacket done [17:44:12]KKMCreateOFDPacket done [17:44:12]NVStorageSaveData kkm_last_timestamp [17:44:12]File name is /storage/kkm_last_timestamp [17:44:12]Write 4 bytes [17:44:12]NVStorageSaveData done [17:44:12]ExternCall_PrintAddStr [17:44:12]wPrintStart [17:44:12]Write to MH i2c: 01 00 00 F4 08 FC [17:44:12]Write i2c OK [17:44:12]MH_I2C_Read... [17:44:12]Read from MH i2c: 01 [17:44:12]MH_I2C_Read... [17:44:12]Read from MH i2c: 01 07 00 [17:44:12]MH_I2C_Read... [17:44:12]Read from MH i2c: 01 07 00 F4 08 00 00 00 00 00 FF 0F 11 [17:44:12]RasterBufferAndPrint [17:44:12]line Счет N : (1)2885200 [17:44:12]line ИНН: 02508201610067 [17:44:12]line Контрольно-Кассовый Чек [17:44:12]line ПРОДАЖА [17:44:12]line ТРК (МРК, ГНК) : 33 [17:44:12]line Товар: 2710124500 [17:44:12]line Аи-95-К-5 [17:44:12]line 10.110 * 74.20 [17:44:12]line = 750.16 [17:44:12]line НДС 12% НСП 1% [17:44:12]line > о реализуемом товаре [17:44:12]line ОКРУГЛЕНИЕ: -0.16 [17:44:12]line ИТОГО: 750.00 [17:44:12]line Внесено: 750.00 [17:44:12]line СДАЧА: 0.00 [17:44:12]line НСП 1% : 6.64 [17:44:12]line НДС 12% : 79.66 [17:44:12]line Наличными: 750.00 [17:44:12]line Безнал.: 0.00 [17:44:12]line Место: АЗС № 85 "Партнер Нефть" [17:44:12]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:44:12]line СНО: Общий режим [17:44:12]line Чек 314 20.10.2024 17:44 [17:44:12]line Смена: 193 ФФД: 1.0 [17:44:12]line ЗНМ: 0300000167 [17:44:12]line РНМ: 0000000000156251 [17:44:12]line Версия ККМ: v1.0 [17:44:12]line ФМ: 0000000000963346 [17:44:12]line ФД: 69469 [17:44:12]line ФПД: 41037473283615 [17:44:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174411&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69469&fm=41037473283615&tin=02508201610067®Number=0000000000156251&sum=75000 [17:44:12]OFD Sender: Processing packet 69469 [packets to send 18, broken 17] [17:44:12]ProducePacketName [17:44:12]name=ofd_packets/00069469 [17:44:12]OFD Sender: To server: pG, [17:44:12]CommunicateWithHost lk.salyk.kg:30040 [17:44:12]ConnectInit lk.salyk.kg [17:44:12]written 0, free lines is 4095 [17:44:12]Connected sock=8 [17:44:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 0B C9 07 01 34 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 6B 41 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5D 0F 01 00 35 04 06 00 25 52 C8 04 7E 1F 4D 62 82 DF AC 6E 04 DF [17:44:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 50 94 47 00 8E 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5D 0F 01 00 F4 03 04 00 11 EB 14 67 B6 04 01 00 00 DA 48 D3 80 2D 56 0F 55 [17:44:12]CommunicateWithHost err = 0 [17:44:12]CheckOFDResponse [17:44:12]1017 (14) - 77093643461234 [17:44:12]1041 (16) - 0000000000963346 [17:44:12]1040 (4) - 69469 [17:44:12]1012 (4) - 20.10.2024 11:35 [17:44:12]1206 (1) - 0 [17:44:12]OFD Sender: Remove packet 69469 [17:44:12]ProducePacketName [17:44:12]name=ofd_packets/00069469 [17:44:12]NVStorageDeleteData [17:44:12]Write to MH i2c: 01 00 00 1F 09 28 [17:44:12]Write i2c OK [17:44:12]MH_I2C_Read... [17:44:12]Read from MH i2c: 01 [17:44:12]MH_I2C_Read... [17:44:12]Read from MH i2c: 01 07 00 [17:44:12]MH_I2C_Read... [17:44:12]Read from MH i2c: 01 07 00 1F 09 00 00 00 00 00 EE 0C 29 [17:44:12]RasterBufferAndPrint [17:44:12]line [17:44:12]line [17:44:12]line [17:44:12]line [17:44:12]line [17:44:12]written 0, free lines is 3316 [17:44:12]MH_Cut [17:44:12]Write to MH i2c: D1 01 00 26 09 01 01 [17:44:12]Write i2c OK [17:44:12]MH_I2C_Read... [17:44:12]Read from MH i2c: D1 [17:44:12]MH_I2C_Read... [17:44:12]Read from MH i2c: D1 01 00 [17:44:12]MH_I2C_Read... [17:44:12]Read from MH i2c: D1 01 00 26 09 00 00 [17:44:12]Write to MH i2c: 01 00 00 27 09 30 [17:44:12]Write i2c OK [17:44:12]MH_I2C_Read... [17:44:13]OFD Sender: No OFD packet to send [17:44:13]*** Cut start [17:44:13]*** Partial cut [17:44:13]*** CUTSNS_PIN = 1 [17:44:13]*** CUTSNS_PIN = 0 [17:44:13]*** Brake cut motor [17:44:14]Read from MH i2c: 01 [17:44:14]MH_I2C_Read... [17:44:14]*** Stop cut motor [17:44:14]*** Cut end [17:44:14]Read from MH i2c: 01 07 00 [17:44:14]MH_I2C_Read... [17:44:14]Read from MH i2c: 01 07 00 27 09 00 00 00 00 00 FF 0F 45 [17:44:14]process_action close_receipt done [17:44:14]requested_data is exist [17:44:14]produce_requested_data [17:44:14]requested_item fm.sn is exist - process it [17:44:14]wFMCommunicate request_size=4 [17:44:14]MH_SAM_APDU [17:44:14]CAPDU: 80 11 00 00 [17:44:14]Write to MH i2c: E2 08 00 28 09 80 11 00 00 00 00 00 00 AB [17:44:14]Write i2c OK [17:44:14]MH_I2C_Read... [17:44:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:14]Read from MH i2c: E2 [17:44:14]MH_I2C_Read... [17:44:14]Read from MH i2c: E2 17 00 [17:44:14]MH_I2C_Read... [17:44:14]Read from MH i2c: E2 17 00 28 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FD [17:44:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:44:14]wFMCommunicate OK [17:44:14]requested_item fd.num is exist - process it [17:44:14]SAM_PROTO_GetFieldsCounters [17:44:14]wFMCommunicate request_size=4 [17:44:14]MH_SAM_APDU [17:44:14]CAPDU: 80 13 00 00 [17:44:14]Write to MH i2c: E2 08 00 29 09 80 13 00 00 00 00 00 00 AE [17:44:14]Write i2c OK [17:44:14]MH_I2C_Read... [17:44:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:44:14]Read from MH i2c: E2 [17:44:14]MH_I2C_Read... [17:44:14]Read from MH i2c: E2 62 00 [17:44:14]MH_I2C_Read... [17:44:14]Read from MH i2c: E2 62 00 29 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5D 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 A8 [17:44:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5D 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:44:14]wFMCommunicate OK [17:44:14]SAM_PROTO_GetFieldsCounters done [17:44:14]requested_item shift.num is exist - process it [17:44:14]requested_item shift.opened is exist - process it [17:44:14]req_shift_opened [17:44:14]FM_GetShiftState [17:44:14]SAM_PROTO_GetShiftState [17:44:14]wFMCommunicate request_size=4 [17:44:14]MH_SAM_APDU [17:44:14]CAPDU: 80 13 01 00 [17:44:14]Write to MH i2c: E2 08 00 2A 09 80 13 01 00 00 00 00 00 B0 [17:44:14]Write i2c OK [17:44:14]MH_I2C_Read... [17:44:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:14]Read from MH i2c: E2 [17:44:14]MH_I2C_Read... [17:44:14]Read from MH i2c: E2 0E 00 [17:44:14]MH_I2C_Read... [17:44:14]Read from MH i2c: E2 0E 00 2A 09 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 B6 [17:44:14]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:44:14]wFMCommunicate OK [17:44:14]SAM_PROTO_GetShiftState done [17:44:14]FM_GetShiftState done [17:44:14]req_shift_opened done [17:44:14]requested_item shift.open_date is exist - process it [17:44:14]req_shift_open_date [17:44:14]req_shift_open_date done [17:44:14]produce_requested_data done [17:44:14]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69469,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [17:44:14]process_action_free close_receipt [17:44:14]json_value_free [17:44:14]json_value_free done [17:44:14]process_json_proto returns [17:44:14]Send response to host [17:44:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69469,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [17:44:14]free response buf [17:44:14]execute_script done [17:44:14]execute_script returns [17:44:14]free content buf [17:44:14]Sock 9.Close socket [17:44:14]Sock 9.Thread stoped [17:44:18]OFD Sender: No OFD packet to send [17:44:23]OFD Sender: No OFD packet to send [17:44:28]OFD Sender: No OFD packet to send [17:44:33]OFD Sender: No OFD packet to send [17:44:38]OFD Sender: No OFD packet to send [17:44:43]OFD Sender: No OFD packet to send [17:44:48]OFD Sender: No OFD packet to send [17:44:53]OFD Sender: No OFD packet to send [17:44:58]OFD Sender: No OFD packet to send [17:45:03]OFD Sender: No OFD packet to send [17:45:08]OFD Sender: No OFD packet to send [17:45:13]OFD Sender: No OFD packet to send [17:45:18]OFD Sender: No OFD packet to send [17:45:23]OFD Sender: No OFD packet to send [17:45:28]OFD Sender: No OFD packet to send [17:45:33]OFD Sender: No OFD packet to send [17:45:38]OFD Sender: No OFD packet to send [17:45:38]accept exits with 10 [17:45:38]New connection [17:45:38]New thread 3067096420 created [17:45:38]Thread 3067239780 joined [17:45:38]Waiting for new connection... [17:45:38] Sock 10.Parse request [17:45:38]Sock 10.Check first char [17:45:38]Sock 10.First char is OK [17:45:38]request: POST /json_proto HTTP/1.0 [17:45:38]Method: POST [17:45:38]URL: /json_proto [17:45:38]Method is POST - this is cgi request [17:45:38]url: /json_proto [17:45:38]query_string will be loaded in cgi processing [17:45:38]execute_cgi json_proto POST (null) [17:45:38]execute_cgi path=json_proto method=POST [17:45:38]POST find Content-Length [17:45:38]Host: 172.17.50.3:8080 [17:45:38]Content-Length: 680 [17:45:38]Content-Type: application/json [17:45:38] [17:45:38]POST finish read [17:45:38]Found Content-Length = 680 [17:45:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:38]execute_script... [17:45: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)2885202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:38]POST & json_proto [17:45:38]process_json_proto [17:45:38]json parsed OK: [17:45:38]protocol is kg_v1.0 [17:45:38]action value=close_receipt [17:45:38]process_action close_receipt [17:45:38]cmd_close_receipt [17:45:38]MH_GetDate [17:45:38]Write to MH i2c: F0 00 00 2B 09 23 [17:45:38]Write i2c OK [17:45:38]MH_I2C_Read... [17:45:38]Read from MH i2c: F0 [17:45:38]MH_I2C_Read... [17:45:38]Read from MH i2c: F0 09 00 [17:45:38]MH_I2C_Read... [17:45:38]Read from MH i2c: F0 09 00 2B 09 00 C3 41 15 67 6B 98 1E 66 33 [17:45:38]GetLastDocTimeStamp 1729446251 [17:45:38]current date 1729446339 [17:45:38]FM_GetShiftState [17:45:38]SAM_PROTO_GetShiftState [17:45:38]wFMCommunicate request_size=4 [17:45:38]MH_SAM_APDU [17:45:38]CAPDU: 80 13 01 00 [17:45:38]Write to MH i2c: E2 08 00 2C 09 80 13 01 00 00 00 00 00 B2 [17:45:38]Write i2c OK [17:45:38]MH_I2C_Read... [17:45:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:38]Read from MH i2c: E2 [17:45:38]MH_I2C_Read... [17:45:38]Read from MH i2c: E2 0E 00 [17:45:38]MH_I2C_Read... [17:45:38]Read from MH i2c: E2 0E 00 2C 09 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 B8 [17:45:38]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:45:38]wFMCommunicate OK [17:45:38]SAM_PROTO_GetShiftState done [17:45:38]FM_GetShiftState done [17:45:38]opened in 1729383220 [17:45:38]opened+sec_in_day 1729469620 [17:45:38]quantity*price = 200025 [17:45:38]sum+1 = 200026 [17:45:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 315 20.10.2024 17:45 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69470 ФПД: 97651531886705 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174539&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69470&fm=97651531886705&tin=02508201610067®Number=0000000000156251&sum=200000 [17:45:39]StoreToDocumentArchive [17:45:39]shift 193 fd 69470 [17:45:39]save to /storage/0193/doc_00069470 [17:45:39]save last doc name /storage/0193/doc_00069470 to /storage/kkm_last_doc_name [17:45:39]save OK [17:45:39]Clear old archive folders... [17:45:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:45:39]tlvbuf is 00CE2180 [17:45:39]SAM_PROTO_ClearQueue [17:45:39]wFMCommunicate request_size=4 [17:45:39]MH_SAM_APDU [17:45:39]CAPDU: 80 09 00 00 [17:45:39]Write to MH i2c: E2 08 00 39 09 80 09 00 00 00 00 00 00 B4 [17:45:39]Write i2c OK [17:45:39]MH_I2C_Read... [17:45:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:45:39]Read from MH i2c: E2 [17:45:39]MH_I2C_Read... [17:45:39]Read from MH i2c: E2 03 00 [17:45:39]MH_I2C_Read... [17:45:39]Read from MH i2c: E2 03 00 39 09 00 90 00 B6 [17:45:39]RAPDU: 90 00 [17:45:39]wFMCommunicate OK [17:45:39]SAM_PROTO_ClearQueue done [17:45:39]KKMCreateOFDPacket [17:45:39]OFDProtocolAddRootSTLVToBuf [17:45:39]FM_MakeSignedData [17:45:39]FM_MakeSignedData [17:45:39]SAM_PROTO_SignData [17:45:39]wFMCommunicate request_size=4 [17:45:39]MH_SAM_APDU [17:45:39]CAPDU: 80 0D 01 02 [17:45:39]Write to MH i2c: E2 08 00 3A 09 80 0D 01 02 00 00 00 00 BC [17:45:39]Write i2c OK [17:45:39]MH_I2C_Read... [17:45:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:45:39]Read from MH i2c: E2 [17:45:39]MH_I2C_Read... [17:45:39]Read from MH i2c: E2 03 00 [17:45:39]MH_I2C_Read... [17:45:39]Read from MH i2c: E2 03 00 3A 09 00 90 00 B7 [17:45:39]RAPDU: 90 00 [17:45:39]wFMCommunicate OK [17:45:39]wFMCommunicate request_size=255 [17:45:39]MH_SAM_APDU [17:45:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 C3 41 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5E 0F 01 00 35 04 06 00 58 D0 44 DE [17:45:39]Write to MH i2c: E2 02 01 3B 09 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 C3 41 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5E 0F 01 00 35 04 06 00 58 D0 44 DE 00 00 5E [17:45:39]Write i2c OK [17:45:39]MH_I2C_Read... [17:45:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:39]Read from MH i2c: E2 [17:45:39]MH_I2C_Read... [17:45:39]Read from MH i2c: E2 03 00 [17:45:39]MH_I2C_Read... [17:45:39]Read from MH i2c: E2 03 00 3B 09 00 90 00 B8 [17:45:39]RAPDU: 90 00 [17:45:39]wFMCommunicate OK [17:45:39]wFMCommunicate request_size=7 [17:45:39]MH_SAM_APDU [17:45:39]CAPDU: 80 0D 02 02 02 B0 71 [17:45:39]Write to MH i2c: E2 0A 00 3C 09 80 0D 02 02 02 00 B0 71 00 00 E4 [17:45:39]Write i2c OK [17:45:39]MH_I2C_Read... [17:45:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:39]Read from MH i2c: E2 [17:45:39]MH_I2C_Read... [17:45:39]Read from MH i2c: E2 03 00 [17:45:39]MH_I2C_Read... [17:45:39]Read from MH i2c: E2 03 00 3C 09 00 90 00 B9 [17:45:39]RAPDU: 90 00 [17:45:39]wFMCommunicate OK [17:45:39]wFMCommunicate request_size=4 [17:45:39]MH_SAM_APDU [17:45:39]CAPDU: 80 0D 03 02 [17:45:39]Write to MH i2c: E2 08 00 3D 09 80 0D 03 02 00 00 00 00 C1 [17:45:39]Write i2c OK [17:45:39]MH_I2C_Read... [17:45:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:45:39]Read from MH i2c: E2 [17:45:39]MH_I2C_Read... [17:45:39]Read from MH i2c: E2 0B 00 [17:45:39]MH_I2C_Read... [17:45:39]Read from MH i2c: E2 0B 00 3D 09 00 41 EA 03 39 06 4C E0 B5 90 00 10 [17:45:39]RAPDU: 41 EA 03 39 06 4C E0 B5 90 00 [17:45:39]wFMCommunicate OK [17:45:39]SAM_PROTO_SignData done [17:45:39]FM_MakeSignedData done [17:45:39]CreateOFDProtocolMessage [17:45:39]wFMCommunicate request_size=4 [17:45:39]MH_SAM_APDU [17:45:39]CAPDU: 80 11 00 00 [17:45:39]Write to MH i2c: E2 08 00 3E 09 80 11 00 00 00 00 00 00 C1 [17:45:39]Write i2c OK [17:45:39]MH_I2C_Read... [17:45:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:40]Read from MH i2c: E2 [17:45:40]MH_I2C_Read... [17:45:40]Read from MH i2c: E2 17 00 [17:45:40]MH_I2C_Read... [17:45:40]Read from MH i2c: E2 17 00 3E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 13 [17:45:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:45:40]wFMCommunicate OK [17:45:40]CreateOFDProtocolMessage done [17:45:40]OFDSenderStorePacket 69470 [17:45:40]StoreOFDPacket docnum=69470 [17:45:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 29 9F 04 01 C9 6E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 C3 41 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5E 0F 01 00 35 04 06 00 58 D0 44 DE B0 71 41 EA 03 39 06 4C E0 B5 [17:45:40]CheckFolder [17:45:40]dirname=/storage/ofd_packets [17:45:40]CheckFolder done [17:45:40]ProducePacketName [17:45:40]name=ofd_packets/00069470 [17:45:40]NVStorageSaveData ofd_packets/00069470 [17:45:40]File name is /storage/ofd_packets/00069470 [17:45:40]Write 298 bytes [17:45:40]NVStorageSaveData done [17:45:40]OFDSenderStorePacket done [17:45:40]KKMCreateOFDPacket done [17:45:40]NVStorageSaveData kkm_last_timestamp [17:45:40]File name is /storage/kkm_last_timestamp [17:45:40]Write 4 bytes [17:45:40]NVStorageSaveData done [17:45:40]ExternCall_PrintAddStr [17:45:40]wPrintStart [17:45:40]Write to MH i2c: 01 00 00 3F 09 48 [17:45:40]Write i2c OK [17:45:40]MH_I2C_Read... [17:45:40]Read from MH i2c: 01 [17:45:40]MH_I2C_Read... [17:45:40]Read from MH i2c: 01 07 00 [17:45:40]MH_I2C_Read... [17:45:40]Read from MH i2c: 01 07 00 3F 09 00 00 00 00 00 FF 0F 5D [17:45:40]RasterBufferAndPrint [17:45:40]line Счет N : (1)2885202 [17:45:40]line ИНН: 02508201610067 [17:45:40]line Контрольно-Кассовый Чек [17:45:40]line ПРОДАЖА [17:45:40]line ТРК (МРК, ГНК) : 51 [17:45:40]line Товар: 2710194210 [17:45:40]line ДТ-К-5 [17:45:40]line 26.250 * 76.20 [17:45:40]line = 2000.25 [17:45:40]line НДС 12% НСП 1% [17:45:40]line > о реализуемом товаре [17:45:40]line ОКРУГЛЕНИЕ: -0.25 [17:45:40]line ИТОГО: 2000.00 [17:45:40]line Внесено: 2000.00 [17:45:40]line СДАЧА: 0.00 [17:45:40]line НСП 1% : 17.70 [17:45:40]line НДС 12% : 212.42 [17:45:40]line Наличными: 2000.00 [17:45:40]line Безнал.: 0.00 [17:45:40]line Место: АЗС № 85 "Партнер Нефть" [17:45:40]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:45:40]line СНО: Общий режим [17:45:40]line Чек 315 20.10.2024 17:45 [17:45:40]line Смена: 193 ФФД: 1.0 [17:45:40]line ЗНМ: 0300000167 [17:45:40]line РНМ: 0000000000156251 [17:45:40]line Версия ККМ: v1.0 [17:45:40]line ФМ: 0000000000963346 [17:45:40]line ФД: 69470 [17:45:40]line ФПД: 97651531886705 [17:45:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174539&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69470&fm=97651531886705&tin=02508201610067®Number=0000000000156251&sum=200000 [17:45:40]OFD Sender: Processing packet 69470 [packets to send 18, broken 17] [17:45:40]ProducePacketName [17:45:40]name=ofd_packets/00069470 [17:45:40]OFD Sender: To server: pG, [17:45:40]CommunicateWithHost lk.salyk.kg:30040 [17:45:40]ConnectInit lk.salyk.kg [17:45:40]written 0, free lines is 4095 [17:45:40]Connected sock=9 [17:45:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 29 9F 04 01 C9 6E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 C3 41 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5E 0F 01 00 35 04 06 00 58 D0 44 DE B0 71 41 EA 03 39 06 4C E0 B5 [17:45:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 DE 92 47 00 19 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5E 0F 01 00 F4 03 04 00 69 EB 14 67 B6 04 01 00 00 1C 6D 1A 46 8E 64 84 8D [17:45:40]CommunicateWithHost err = 0 [17:45:40]CheckOFDResponse [17:45:40]1017 (14) - 77093643461234 [17:45:40]1041 (16) - 0000000000963346 [17:45:40]1040 (4) - 69470 [17:45:40]1012 (4) - 20.10.2024 11:37 [17:45:40]1206 (1) - 0 [17:45:40]OFD Sender: Remove packet 69470 [17:45:40]ProducePacketName [17:45:40]name=ofd_packets/00069470 [17:45:40]NVStorageDeleteData [17:45:40]Write to MH i2c: 01 00 00 6A 09 73 [17:45:40]Write i2c OK [17:45:40]MH_I2C_Read... [17:45:40]Read from MH i2c: 01 [17:45:40]MH_I2C_Read... [17:45:40]Read from MH i2c: 01 07 00 [17:45:40]MH_I2C_Read... [17:45:40]Read from MH i2c: 01 07 00 6A 09 00 00 00 00 00 EA 0C 70 [17:45:40]RasterBufferAndPrint [17:45:40]line [17:45:40]line [17:45:40]line [17:45:40]line [17:45:40]line [17:45:40]written 0, free lines is 3312 [17:45:40]MH_Cut [17:45:40]Write to MH i2c: D1 01 00 71 09 01 4C [17:45:40]Write i2c OK [17:45:40]MH_I2C_Read... [17:45:40]Read from MH i2c: D1 [17:45:40]MH_I2C_Read... [17:45:40]Read from MH i2c: D1 01 00 [17:45:40]MH_I2C_Read... [17:45:40]Read from MH i2c: D1 01 00 71 09 00 4B [17:45:40]Write to MH i2c: 01 00 00 72 09 7B [17:45:40]Write i2c OK [17:45:40]MH_I2C_Read... [17:45:41]OFD Sender: No OFD packet to send [17:45:41]*** Cut start [17:45:41]*** Partial cut [17:45:41]*** CUTSNS_PIN = 1 [17:45:41]*** CUTSNS_PIN = 0 [17:45:41]*** Brake cut motor [17:45:42]Read from MH i2c: 01 [17:45:42]MH_I2C_Read... [17:45:42]*** Stop cut motor [17:45:42]*** Cut end [17:45:42]Read from MH i2c: 01 07 00 [17:45:42]MH_I2C_Read... [17:45:42]Read from MH i2c: 01 07 00 72 09 00 00 00 00 00 FF 0F 90 [17:45:42]process_action close_receipt done [17:45:42]requested_data is exist [17:45:42]produce_requested_data [17:45:42]requested_item fm.sn is exist - process it [17:45:42]wFMCommunicate request_size=4 [17:45:42]MH_SAM_APDU [17:45:42]CAPDU: 80 11 00 00 [17:45:42]Write to MH i2c: E2 08 00 73 09 80 11 00 00 00 00 00 00 F6 [17:45:42]Write i2c OK [17:45:42]MH_I2C_Read... [17:45:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:42]Read from MH i2c: E2 [17:45:42]MH_I2C_Read... [17:45:42]Read from MH i2c: E2 17 00 [17:45:42]MH_I2C_Read... [17:45:42]Read from MH i2c: E2 17 00 73 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 48 [17:45:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:45:42]wFMCommunicate OK [17:45:42]requested_item fd.num is exist - process it [17:45:42]SAM_PROTO_GetFieldsCounters [17:45:42]wFMCommunicate request_size=4 [17:45:42]MH_SAM_APDU [17:45:42]CAPDU: 80 13 00 00 [17:45:42]Write to MH i2c: E2 08 00 74 09 80 13 00 00 00 00 00 00 F9 [17:45:42]Write i2c OK [17:45:42]MH_I2C_Read... [17:45:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:45:42]Read from MH i2c: E2 [17:45:42]MH_I2C_Read... [17:45:42]Read from MH i2c: E2 62 00 [17:45:42]MH_I2C_Read... [17:45:42]Read from MH i2c: E2 62 00 74 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5E 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 F7 [17:45:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5E 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:45:42]wFMCommunicate OK [17:45:42]SAM_PROTO_GetFieldsCounters done [17:45:42]requested_item shift.num is exist - process it [17:45:42]requested_item shift.opened is exist - process it [17:45:42]req_shift_opened [17:45:42]FM_GetShiftState [17:45:42]SAM_PROTO_GetShiftState [17:45:42]wFMCommunicate request_size=4 [17:45:42]MH_SAM_APDU [17:45:42]CAPDU: 80 13 01 00 [17:45:42]Write to MH i2c: E2 08 00 75 09 80 13 01 00 00 00 00 00 FB [17:45:42]Write i2c OK [17:45:42]MH_I2C_Read... [17:45:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:42]Read from MH i2c: E2 [17:45:42]MH_I2C_Read... [17:45:42]Read from MH i2c: E2 0E 00 [17:45:42]MH_I2C_Read... [17:45:42]Read from MH i2c: E2 0E 00 75 09 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 01 [17:45:42]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:45:42]wFMCommunicate OK [17:45:42]SAM_PROTO_GetShiftState done [17:45:42]FM_GetShiftState done [17:45:42]req_shift_opened done [17:45:42]requested_item shift.open_date is exist - process it [17:45:42]req_shift_open_date [17:45:42]req_shift_open_date done [17:45:42]produce_requested_data done [17:45:42]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69470,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [17:45:42]process_action_free close_receipt [17:45:42]json_value_free [17:45:42]json_value_free done [17:45:42]process_json_proto returns [17:45:42]Send response to host [17:45:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69470,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [17:45:42]free response buf [17:45:42]execute_script done [17:45:42]execute_script returns [17:45:42]free content buf [17:45:42]Sock 10.Close socket [17:45:42]Sock 10.Thread stoped [17:45:46]OFD Sender: No OFD packet to send [17:45:51]OFD Sender: No OFD packet to send [17:45:56]OFD Sender: No OFD packet to send [17:46:01]OFD Sender: No OFD packet to send [17:46:06]OFD Sender: No OFD packet to send [17:46:11]OFD Sender: No OFD packet to send [17:46:16]OFD Sender: No OFD packet to send [17:46:21]OFD Sender: No OFD packet to send [17:46:26]OFD Sender: No OFD packet to send [17:46:27]accept exits with 8 [17:46:27]New connection [17:46:27]New thread 3067239780 created [17:46:27]Thread 3067096420 joined [17:46:27]Waiting for new connection... [17:46:27] Sock 8.Parse request [17:46:27]Sock 8.Check first char [17:46:27]Sock 8.First char is OK [17:46:27]request: POST /json_proto HTTP/1.0 [17:46:27]Method: POST [17:46:27]URL: /json_proto [17:46:27]Method is POST - this is cgi request [17:46:27]url: /json_proto [17:46:27]query_string will be loaded in cgi processing [17:46:27]execute_cgi json_proto POST (null) [17:46:27]execute_cgi path=json_proto method=POST [17:46:27]POST find Content-Length [17:46:27]Host: 172.17.50.3:8080 [17:46:27]Content-Length: 679 [17:46:27]Content-Type: application/json [17:46:27] [17:46:27]POST finish read [17:46:27]Found Content-Length = 679 [17:46:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:27]execute_script... [17:46: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)2885204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:27]POST & json_proto [17:46:27]process_json_proto [17:46:27]json parsed OK: [17:46:27]protocol is kg_v1.0 [17:46:27]action value=close_receipt [17:46:27]process_action close_receipt [17:46:27]cmd_close_receipt [17:46:27]MH_GetDate [17:46:27]Write to MH i2c: F0 00 00 76 09 6E [17:46:27]Write i2c OK [17:46:27]MH_I2C_Read... [17:46:27]Read from MH i2c: F0 [17:46:27]MH_I2C_Read... [17:46:27]Read from MH i2c: F0 09 00 [17:46:27]MH_I2C_Read... [17:46:27]Read from MH i2c: F0 09 00 76 09 00 F4 41 15 67 6B 98 1E 66 AF [17:46:27]GetLastDocTimeStamp 1729446339 [17:46:27]current date 1729446388 [17:46:27]FM_GetShiftState [17:46:27]SAM_PROTO_GetShiftState [17:46:27]wFMCommunicate request_size=4 [17:46:27]MH_SAM_APDU [17:46:27]CAPDU: 80 13 01 00 [17:46:27]Write to MH i2c: E2 08 00 77 09 80 13 01 00 00 00 00 00 FD [17:46:27]Write i2c OK [17:46:27]MH_I2C_Read... [17:46:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:27]Read from MH i2c: E2 [17:46:27]MH_I2C_Read... [17:46:27]Read from MH i2c: E2 0E 00 [17:46:27]MH_I2C_Read... [17:46:27]Read from MH i2c: E2 0E 00 77 09 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 03 [17:46:27]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:46:27]wFMCommunicate OK [17:46:27]SAM_PROTO_GetShiftState done [17:46:27]FM_GetShiftState done [17:46:27]opened in 1729383220 [17:46:27]opened+sec_in_day 1729469620 [17:46:27]quantity*price = 70044 [17:46:27]sum+1 = 70045 [17:46:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 316 20.10.2024 17:46 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69471 ФПД: 6576716222054 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174628&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69471&fm=6576716222054&tin=02508201610067®Number=0000000000156251&sum=70000 [17:46:29]StoreToDocumentArchive [17:46:29]shift 193 fd 69471 [17:46:29]save to /storage/0193/doc_00069471 [17:46:29]save last doc name /storage/0193/doc_00069471 to /storage/kkm_last_doc_name [17:46:29]save OK [17:46:29]Clear old archive folders... [17:46:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:46:29]tlvbuf is 00D1C540 [17:46:29]SAM_PROTO_ClearQueue [17:46:29]wFMCommunicate request_size=4 [17:46:29]MH_SAM_APDU [17:46:29]CAPDU: 80 09 00 00 [17:46:29]Write to MH i2c: E2 08 00 84 09 80 09 00 00 00 00 00 00 FF [17:46:29]Write i2c OK [17:46:29]MH_I2C_Read... [17:46:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:46:29]Read from MH i2c: E2 [17:46:29]MH_I2C_Read... [17:46:29]Read from MH i2c: E2 03 00 [17:46:29]MH_I2C_Read... [17:46:29]Read from MH i2c: E2 03 00 84 09 00 90 00 01 [17:46:29]RAPDU: 90 00 [17:46:29]wFMCommunicate OK [17:46:29]SAM_PROTO_ClearQueue done [17:46:29]KKMCreateOFDPacket [17:46:29]OFDProtocolAddRootSTLVToBuf [17:46:29]FM_MakeSignedData [17:46:29]FM_MakeSignedData [17:46:29]SAM_PROTO_SignData [17:46:29]wFMCommunicate request_size=4 [17:46:29]MH_SAM_APDU [17:46:29]CAPDU: 80 0D 01 02 [17:46:29]Write to MH i2c: E2 08 00 85 09 80 0D 01 02 00 00 00 00 07 [17:46:29]Write i2c OK [17:46:29]MH_I2C_Read... [17:46:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:46:29]Read from MH i2c: E2 [17:46:29]MH_I2C_Read... [17:46:29]Read from MH i2c: E2 03 00 [17:46:29]MH_I2C_Read... [17:46:29]Read from MH i2c: E2 03 00 85 09 00 90 00 02 [17:46:29]RAPDU: 90 00 [17:46:29]wFMCommunicate OK [17:46:29]wFMCommunicate request_size=255 [17:46:29]MH_SAM_APDU [17:46:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 F4 41 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5F 0F 01 00 35 04 06 00 05 [17:46:29]Write to MH i2c: E2 02 01 86 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 F4 41 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5F 0F 01 00 35 04 06 00 05 00 00 C3 [17:46:29]Write i2c OK [17:46:29]MH_I2C_Read... [17:46:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:29]Read from MH i2c: E2 [17:46:29]MH_I2C_Read... [17:46:29]Read from MH i2c: E2 03 00 [17:46:29]MH_I2C_Read... [17:46:29]Read from MH i2c: E2 03 00 86 09 00 90 00 03 [17:46:29]RAPDU: 90 00 [17:46:29]wFMCommunicate OK [17:46:29]wFMCommunicate request_size=10 [17:46:29]MH_SAM_APDU [17:46:29]CAPDU: 80 0D 02 02 05 FB 42 D5 8E 66 [17:46:29]Write to MH i2c: E2 0D 00 87 09 80 0D 02 02 05 00 FB 42 D5 8E 66 00 00 1A [17:46:29]Write i2c OK [17:46:29]MH_I2C_Read... [17:46:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:29]Read from MH i2c: E2 [17:46:29]MH_I2C_Read... [17:46:29]Read from MH i2c: E2 03 00 [17:46:29]MH_I2C_Read... [17:46:29]Read from MH i2c: E2 03 00 87 09 00 90 00 04 [17:46:29]RAPDU: 90 00 [17:46:29]wFMCommunicate OK [17:46:29]wFMCommunicate request_size=4 [17:46:29]MH_SAM_APDU [17:46:29]CAPDU: 80 0D 03 02 [17:46:29]Write to MH i2c: E2 08 00 88 09 80 0D 03 02 00 00 00 00 0C [17:46:29]Write i2c OK [17:46:29]MH_I2C_Read... [17:46:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:46:29]Read from MH i2c: E2 [17:46:29]MH_I2C_Read... [17:46:29]Read from MH i2c: E2 0B 00 [17:46:29]MH_I2C_Read... [17:46:29]Read from MH i2c: E2 0B 00 88 09 00 6D DB 9F 8B 33 1F 18 A6 90 00 8F [17:46:29]RAPDU: 6D DB 9F 8B 33 1F 18 A6 90 00 [17:46:29]wFMCommunicate OK [17:46:29]SAM_PROTO_SignData done [17:46:29]FM_MakeSignedData done [17:46:29]CreateOFDProtocolMessage [17:46:29]wFMCommunicate request_size=4 [17:46:29]MH_SAM_APDU [17:46:29]CAPDU: 80 11 00 00 [17:46:29]Write to MH i2c: E2 08 00 89 09 80 11 00 00 00 00 00 00 0C [17:46:29]Write i2c OK [17:46:29]MH_I2C_Read... [17:46:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:29]Read from MH i2c: E2 [17:46:29]MH_I2C_Read... [17:46:29]Read from MH i2c: E2 17 00 [17:46:29]MH_I2C_Read... [17:46:29]Read from MH i2c: E2 17 00 89 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5E [17:46:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:46:29]wFMCommunicate OK [17:46:29]CreateOFDProtocolMessage done [17:46:29]OFDSenderStorePacket 69471 [17:46:29]StoreOFDPacket docnum=69471 [17:46:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 07 FA 07 01 A6 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 F4 41 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5F 0F 01 00 35 04 06 00 05 FB 42 D5 8E 66 6D DB 9F 8B 33 1F 18 A6 [17:46:29]CheckFolder [17:46:29]dirname=/storage/ofd_packets [17:46:29]CheckFolder done [17:46:29]ProducePacketName [17:46:29]name=ofd_packets/00069471 [17:46:29]NVStorageSaveData ofd_packets/00069471 [17:46:29]File name is /storage/ofd_packets/00069471 [17:46:29]Write 301 bytes [17:46:29]NVStorageSaveData done [17:46:29]OFDSenderStorePacket done [17:46:29]KKMCreateOFDPacket done [17:46:29]NVStorageSaveData kkm_last_timestamp [17:46:29]File name is /storage/kkm_last_timestamp [17:46:29]Write 4 bytes [17:46:29]NVStorageSaveData done [17:46:29]ExternCall_PrintAddStr [17:46:29]wPrintStart [17:46:29]Write to MH i2c: 01 00 00 8A 09 93 [17:46:29]Write i2c OK [17:46:29]MH_I2C_Read... [17:46:29]Read from MH i2c: 01 [17:46:29]MH_I2C_Read... [17:46:29]Read from MH i2c: 01 07 00 [17:46:29]MH_I2C_Read... [17:46:29]Read from MH i2c: 01 07 00 8A 09 00 00 00 00 00 FF 0F A8 [17:46:29]RasterBufferAndPrint [17:46:29]line Счет N : (1)2885204 [17:46:29]line ИНН: 02508201610067 [17:46:29]line Контрольно-Кассовый Чек [17:46:29]line ПРОДАЖА [17:46:29]line ТРК (МРК, ГНК) : 32 [17:46:29]line Товар: 2710124130 [17:46:29]line Аи-92-К-5 [17:46:29]line 10.470 * 66.90 [17:46:29]line = 700.44 [17:46:29]line НДС 12% НСП 1% [17:46:29]line > о реализуемом товаре [17:46:29]line ОКРУГЛЕНИЕ: -0.44 [17:46:29]line ИТОГО: 700.00 [17:46:29]line Внесено: 700.00 [17:46:29]line СДАЧА: 0.00 [17:46:29]line НСП 1% : 6.20 [17:46:29]line НДС 12% : 74.38 [17:46:29]line Наличными: 700.00 [17:46:29]line Безнал.: 0.00 [17:46:29]line Место: АЗС № 85 "Партнер Нефть" [17:46:29]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:46:29]line СНО: Общий режим [17:46:29]line Чек 316 20.10.2024 17:46 [17:46:29]line Смена: 193 ФФД: 1.0 [17:46:29]line ЗНМ: 0300000167 [17:46:29]line РНМ: 0000000000156251 [17:46:29]line Версия ККМ: v1.0 [17:46:29]line ФМ: 0000000000963346 [17:46:29]line ФД: 69471 [17:46:29]line ФПД: 6576716222054 [17:46:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174628&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69471&fm=6576716222054&tin=02508201610067®Number=0000000000156251&sum=70000 [17:46:29]OFD Sender: Processing packet 69471 [packets to send 18, broken 17] [17:46:29]ProducePacketName [17:46:29]name=ofd_packets/00069471 [17:46:29]OFD Sender: To server: pG, [17:46:29]CommunicateWithHost lk.salyk.kg:30040 [17:46:29]ConnectInit lk.salyk.kg [17:46:29]written 0, free lines is 4095 [17:46:30]Connected sock=10 [17:46:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 07 FA 07 01 A6 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 F4 41 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5F 0F 01 00 35 04 06 00 05 FB 42 D5 8E 66 6D DB 9F 8B 33 1F 18 A6 [17:46:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 D8 7A 47 00 DE 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 5F 0F 01 00 F4 03 04 00 9A EB 14 67 B6 04 01 00 00 62 1C 7E 01 5F 64 B1 BB [17:46:30]CommunicateWithHost err = 0 [17:46:30]CheckOFDResponse [17:46:30]1017 (14) - 77093643461234 [17:46:30]1041 (16) - 0000000000963346 [17:46:30]1040 (4) - 69471 [17:46:30]1012 (4) - 20.10.2024 11:38 [17:46:30]1206 (1) - 0 [17:46:30]OFD Sender: Remove packet 69471 [17:46:30]ProducePacketName [17:46:30]name=ofd_packets/00069471 [17:46:30]NVStorageDeleteData [17:46:30]Write to MH i2c: 01 00 00 B5 09 BE [17:46:30]Write i2c OK [17:46:30]MH_I2C_Read... [17:46:30]Read from MH i2c: 01 [17:46:30]MH_I2C_Read... [17:46:30]Read from MH i2c: 01 07 00 [17:46:30]MH_I2C_Read... [17:46:30]Read from MH i2c: 01 07 00 B5 09 00 00 00 00 00 E7 0C B8 [17:46:30]RasterBufferAndPrint [17:46:30]line [17:46:30]line [17:46:30]line [17:46:30]line [17:46:30]line [17:46:30]written 0, free lines is 3309 [17:46:30]MH_Cut [17:46:30]Write to MH i2c: D1 01 00 BC 09 01 97 [17:46:30]Write i2c OK [17:46:30]MH_I2C_Read... [17:46:30]Read from MH i2c: D1 [17:46:30]MH_I2C_Read... [17:46:30]Read from MH i2c: D1 01 00 [17:46:30]MH_I2C_Read... [17:46:30]Read from MH i2c: D1 01 00 BC 09 00 96 [17:46:30]Write to MH i2c: 01 00 00 BD 09 C6 [17:46:30]Write i2c OK [17:46:30]MH_I2C_Read... [17:46:30]OFD Sender: No OFD packet to send [17:46:31]*** Cut start [17:46:31]*** Partial cut [17:46:31]*** CUTSNS_PIN = 1 [17:46:31]*** CUTSNS_PIN = 0 [17:46:31]*** Brake cut motor [17:46:31]Read from MH i2c: 01 [17:46:31]MH_I2C_Read... [17:46:31]*** Stop cut motor [17:46:31]*** Cut end [17:46:31]Read from MH i2c: 01 07 00 [17:46:31]MH_I2C_Read... [17:46:31]Read from MH i2c: 01 07 00 BD 09 00 00 00 00 00 FF 0F DB [17:46:31]process_action close_receipt done [17:46:31]requested_data is exist [17:46:31]produce_requested_data [17:46:31]requested_item fm.sn is exist - process it [17:46:31]wFMCommunicate request_size=4 [17:46:31]MH_SAM_APDU [17:46:31]CAPDU: 80 11 00 00 [17:46:31]Write to MH i2c: E2 08 00 BE 09 80 11 00 00 00 00 00 00 41 [17:46:31]Write i2c OK [17:46:31]MH_I2C_Read... [17:46:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:31]Read from MH i2c: E2 [17:46:31]MH_I2C_Read... [17:46:31]Read from MH i2c: E2 17 00 [17:46:31]MH_I2C_Read... [17:46:31]Read from MH i2c: E2 17 00 BE 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 93 [17:46:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:46:31]wFMCommunicate OK [17:46:31]requested_item fd.num is exist - process it [17:46:31]SAM_PROTO_GetFieldsCounters [17:46:31]wFMCommunicate request_size=4 [17:46:31]MH_SAM_APDU [17:46:31]CAPDU: 80 13 00 00 [17:46:31]Write to MH i2c: E2 08 00 BF 09 80 13 00 00 00 00 00 00 44 [17:46:31]Write i2c OK [17:46:31]MH_I2C_Read... [17:46:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:46:31]Read from MH i2c: E2 [17:46:31]MH_I2C_Read... [17:46:31]Read from MH i2c: E2 62 00 [17:46:31]MH_I2C_Read... [17:46:31]Read from MH i2c: E2 62 00 BF 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5F 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 46 [17:46:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 5F 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:46:31]wFMCommunicate OK [17:46:31]SAM_PROTO_GetFieldsCounters done [17:46:31]requested_item shift.num is exist - process it [17:46:31]requested_item shift.opened is exist - process it [17:46:31]req_shift_opened [17:46:31]FM_GetShiftState [17:46:31]SAM_PROTO_GetShiftState [17:46:31]wFMCommunicate request_size=4 [17:46:31]MH_SAM_APDU [17:46:31]CAPDU: 80 13 01 00 [17:46:31]Write to MH i2c: E2 08 00 C0 09 80 13 01 00 00 00 00 00 46 [17:46:31]Write i2c OK [17:46:31]MH_I2C_Read... [17:46:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:31]Read from MH i2c: E2 [17:46:31]MH_I2C_Read... [17:46:31]Read from MH i2c: E2 0E 00 [17:46:31]MH_I2C_Read... [17:46:31]Read from MH i2c: E2 0E 00 C0 09 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 4C [17:46:31]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:46:31]wFMCommunicate OK [17:46:31]SAM_PROTO_GetShiftState done [17:46:31]FM_GetShiftState done [17:46:31]req_shift_opened done [17:46:31]requested_item shift.open_date is exist - process it [17:46:31]req_shift_open_date [17:46:31]req_shift_open_date done [17:46:31]produce_requested_data done [17:46:31]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69471,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [17:46:31]process_action_free close_receipt [17:46:31]json_value_free [17:46:31]json_value_free done [17:46:31]process_json_proto returns [17:46:31]Send response to host [17:46:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69471,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [17:46:31]free response buf [17:46:31]execute_script done [17:46:31]execute_script returns [17:46:31]free content buf [17:46:31]Sock 8.Close socket [17:46:31]Sock 8.Thread stoped [17:46:35]OFD Sender: No OFD packet to send [17:46:40]OFD Sender: No OFD packet to send [17:46:45]OFD Sender: No OFD packet to send [17:46:50]OFD Sender: No OFD packet to send [17:46:55]OFD Sender: No OFD packet to send [17:47:00]OFD Sender: No OFD packet to send [17:47:05]OFD Sender: No OFD packet to send [17:47:10]OFD Sender: No OFD packet to send [17:47:15]OFD Sender: No OFD packet to send [17:47:20]OFD Sender: No OFD packet to send [17:47:25]OFD Sender: No OFD packet to send [17:47:30]OFD Sender: No OFD packet to send [17:47:35]OFD Sender: No OFD packet to send [17:47:39]accept exits with 9 [17:47:39]New connection [17:47:39]New thread 3067096420 created [17:47:39]Thread 3067239780 joined [17:47:39]Waiting for new connection... [17:47:39] Sock 9.Parse request [17:47:39]Sock 9.Check first char [17:47:39]Sock 9.First char is OK [17:47:39]request: POST /json_proto HTTP/1.0 [17:47:39]Method: POST [17:47:39]URL: /json_proto [17:47:39]Method is POST - this is cgi request [17:47:39]url: /json_proto [17:47:39]query_string will be loaded in cgi processing [17:47:39]execute_cgi json_proto POST (null) [17:47:39]execute_cgi path=json_proto method=POST [17:47:39]POST find Content-Length [17:47:39]Host: 172.17.50.3:8080 [17:47:39]Content-Length: 678 [17:47:39]Content-Type: application/json [17:47:39] [17:47:39]POST finish read [17:47:39]Found Content-Length = 678 [17:47:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:39]execute_script... [17:47:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:39]POST & json_proto [17:47:39]process_json_proto [17:47:39]json parsed OK: [17:47:39]protocol is kg_v1.0 [17:47:39]action value=close_receipt [17:47:39]process_action close_receipt [17:47:39]cmd_close_receipt [17:47:39]MH_GetDate [17:47:39]Write to MH i2c: F0 00 00 C1 09 B9 [17:47:39]Write i2c OK [17:47:39]MH_I2C_Read... [17:47:39]Read from MH i2c: F0 [17:47:39]MH_I2C_Read... [17:47:39]Read from MH i2c: F0 09 00 [17:47:39]MH_I2C_Read... [17:47:39]Read from MH i2c: F0 09 00 C1 09 00 3C 42 15 67 6B 98 1E 66 43 [17:47:39]GetLastDocTimeStamp 1729446388 [17:47:39]current date 1729446460 [17:47:39]FM_GetShiftState [17:47:39]SAM_PROTO_GetShiftState [17:47:39]wFMCommunicate request_size=4 [17:47:39]MH_SAM_APDU [17:47:39]CAPDU: 80 13 01 00 [17:47:39]Write to MH i2c: E2 08 00 C2 09 80 13 01 00 00 00 00 00 48 [17:47:39]Write i2c OK [17:47:39]MH_I2C_Read... [17:47:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:39]Read from MH i2c: E2 [17:47:39]MH_I2C_Read... [17:47:39]Read from MH i2c: E2 0E 00 [17:47:39]MH_I2C_Read... [17:47:39]Read from MH i2c: E2 0E 00 C2 09 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 4E [17:47:39]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:47:39]wFMCommunicate OK [17:47:39]SAM_PROTO_GetShiftState done [17:47:39]FM_GetShiftState done [17:47:39]opened in 1729383220 [17:47:39]opened+sec_in_day 1729469620 [17:47:39]quantity*price = 50041 [17:47:39]sum+1 = 50042 [17:47:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 317 20.10.2024 17:47 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69472 ФПД: 25901720731693 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174740&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69472&fm=25901720731693&tin=02508201610067®Number=0000000000156251&sum=50000 [17:47:41]StoreToDocumentArchive [17:47:41]shift 193 fd 69472 [17:47:41]save to /storage/0193/doc_00069472 [17:47:41]save last doc name /storage/0193/doc_00069472 to /storage/kkm_last_doc_name [17:47:41]save OK [17:47:41]Clear old archive folders... [17:47:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:47:41]tlvbuf is 00D14740 [17:47:41]SAM_PROTO_ClearQueue [17:47:41]wFMCommunicate request_size=4 [17:47:41]MH_SAM_APDU [17:47:41]CAPDU: 80 09 00 00 [17:47:41]Write to MH i2c: E2 08 00 CF 09 80 09 00 00 00 00 00 00 4A [17:47:41]Write i2c OK [17:47:41]MH_I2C_Read... [17:47:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:41]Read from MH i2c: E2 [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: E2 03 00 [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: E2 03 00 CF 09 00 90 00 4C [17:47:41]RAPDU: 90 00 [17:47:41]wFMCommunicate OK [17:47:41]SAM_PROTO_ClearQueue done [17:47:41]KKMCreateOFDPacket [17:47:41]OFDProtocolAddRootSTLVToBuf [17:47:41]FM_MakeSignedData [17:47:41]FM_MakeSignedData [17:47:41]SAM_PROTO_SignData [17:47:41]wFMCommunicate request_size=4 [17:47:41]MH_SAM_APDU [17:47:41]CAPDU: 80 0D 01 02 [17:47:41]Write to MH i2c: E2 08 00 D0 09 80 0D 01 02 00 00 00 00 52 [17:47:41]Write i2c OK [17:47:41]MH_I2C_Read... [17:47:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:41]Read from MH i2c: E2 [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: E2 03 00 [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: E2 03 00 D0 09 00 90 00 4D [17:47:41]RAPDU: 90 00 [17:47:41]wFMCommunicate OK [17:47:41]wFMCommunicate request_size=255 [17:47:41]MH_SAM_APDU [17:47:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 3C 42 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 60 0F 01 00 35 04 06 00 17 [17:47:41]Write to MH i2c: E2 02 01 D1 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 3C 42 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 60 0F 01 00 35 04 06 00 17 00 00 5B [17:47:41]Write i2c OK [17:47:41]MH_I2C_Read... [17:47:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:41]Read from MH i2c: E2 [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: E2 03 00 [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: E2 03 00 D1 09 00 90 00 4E [17:47:41]RAPDU: 90 00 [17:47:41]wFMCommunicate OK [17:47:41]wFMCommunicate request_size=10 [17:47:41]MH_SAM_APDU [17:47:41]CAPDU: 80 0D 02 02 05 8E B6 DD 00 2D [17:47:41]Write to MH i2c: E2 0D 00 D2 09 80 0D 02 02 05 00 8E B6 DD 00 2D 00 00 AD [17:47:41]Write i2c OK [17:47:41]MH_I2C_Read... [17:47:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:41]Read from MH i2c: E2 [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: E2 03 00 [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: E2 03 00 D2 09 00 90 00 4F [17:47:41]RAPDU: 90 00 [17:47:41]wFMCommunicate OK [17:47:41]wFMCommunicate request_size=4 [17:47:41]MH_SAM_APDU [17:47:41]CAPDU: 80 0D 03 02 [17:47:41]Write to MH i2c: E2 08 00 D3 09 80 0D 03 02 00 00 00 00 57 [17:47:41]Write i2c OK [17:47:41]MH_I2C_Read... [17:47:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:41]Read from MH i2c: E2 [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: E2 0B 00 [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: E2 0B 00 D3 09 00 28 95 46 E7 D2 0A 49 5D 90 00 C4 [17:47:41]RAPDU: 28 95 46 E7 D2 0A 49 5D 90 00 [17:47:41]wFMCommunicate OK [17:47:41]SAM_PROTO_SignData done [17:47:41]FM_MakeSignedData done [17:47:41]CreateOFDProtocolMessage [17:47:41]wFMCommunicate request_size=4 [17:47:41]MH_SAM_APDU [17:47:41]CAPDU: 80 11 00 00 [17:47:41]Write to MH i2c: E2 08 00 D4 09 80 11 00 00 00 00 00 00 57 [17:47:41]Write i2c OK [17:47:41]MH_I2C_Read... [17:47:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:41]Read from MH i2c: E2 [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: E2 17 00 [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: E2 17 00 D4 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A9 [17:47:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:47:41]wFMCommunicate OK [17:47:41]CreateOFDProtocolMessage done [17:47:41]OFDSenderStorePacket 69472 [17:47:41]StoreOFDPacket docnum=69472 [17:47:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 42 68 07 01 EE 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 3C 42 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 60 0F 01 00 35 04 06 00 17 8E B6 DD 00 2D 28 95 46 E7 D2 0A 49 5D [17:47:41]CheckFolder [17:47:41]dirname=/storage/ofd_packets [17:47:41]CheckFolder done [17:47:41]ProducePacketName [17:47:41]name=ofd_packets/00069472 [17:47:41]NVStorageSaveData ofd_packets/00069472 [17:47:41]File name is /storage/ofd_packets/00069472 [17:47:41]Write 301 bytes [17:47:41]NVStorageSaveData done [17:47:41]OFDSenderStorePacket done [17:47:41]KKMCreateOFDPacket done [17:47:41]NVStorageSaveData kkm_last_timestamp [17:47:41]File name is /storage/kkm_last_timestamp [17:47:41]Write 4 bytes [17:47:41]NVStorageSaveData done [17:47:41]ExternCall_PrintAddStr [17:47:41]wPrintStart [17:47:41]Write to MH i2c: 01 00 00 D5 09 DE [17:47:41]Write i2c OK [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: 01 [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: 01 07 00 [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: 01 07 00 D5 09 00 00 00 00 00 FF 0F F3 [17:47:41]RasterBufferAndPrint [17:47:41]line Счет N : (1)2885206 [17:47:41]line ИНН: 02508201610067 [17:47:41]line Контрольно-Кассовый Чек [17:47:41]line ПРОДАЖА [17:47:41]line ТРК (МРК, ГНК) : 42 [17:47:41]line Товар: 2710124130 [17:47:41]line Аи-92-К-5 [17:47:41]line 7.480 * 66.90 [17:47:41]line = 500.41 [17:47:41]line НДС 12% НСП 1% [17:47:41]line > о реализуемом товаре [17:47:41]line ОКРУГЛЕНИЕ: -0.41 [17:47:41]line ИТОГО: 500.00 [17:47:41]line Внесено: 500.00 [17:47:41]line СДАЧА: 0.00 [17:47:41]line НСП 1% : 4.43 [17:47:41]line НДС 12% : 53.14 [17:47:41]line Наличными: 500.00 [17:47:41]line Безнал.: 0.00 [17:47:41]line Место: АЗС № 85 "Партнер Нефть" [17:47:41]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:47:41]line СНО: Общий режим [17:47:41]line Чек 317 20.10.2024 17:47 [17:47:41]line Смена: 193 ФФД: 1.0 [17:47:41]line ЗНМ: 0300000167 [17:47:41]line РНМ: 0000000000156251 [17:47:41]line Версия ККМ: v1.0 [17:47:41]line ФМ: 0000000000963346 [17:47:41]line ФД: 69472 [17:47:41]line ФПД: 25901720731693 [17:47:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174740&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69472&fm=25901720731693&tin=02508201610067®Number=0000000000156251&sum=50000 [17:47:41]OFD Sender: Processing packet 69472 [packets to send 18, broken 17] [17:47:41]ProducePacketName [17:47:41]name=ofd_packets/00069472 [17:47:41]OFD Sender: To server: pG, [17:47:41]CommunicateWithHost lk.salyk.kg:30040 [17:47:41]ConnectInit lk.salyk.kg [17:47:41]written 0, free lines is 4095 [17:47:42]Connected sock=10 [17:47:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 42 68 07 01 EE 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 3C 42 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 60 0F 01 00 35 04 06 00 17 8E B6 DD 00 2D 28 95 46 E7 D2 0A 49 5D [17:47:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 F1 22 47 00 AC DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 60 0F 01 00 F4 03 04 00 E2 EB 14 67 B6 04 01 00 00 CE C2 3A 46 6F 03 14 39 [17:47:42]CommunicateWithHost err = 0 [17:47:42]CheckOFDResponse [17:47:42]1017 (14) - 77093643461234 [17:47:42]1041 (16) - 0000000000963346 [17:47:42]1040 (4) - 69472 [17:47:42]1012 (4) - 20.10.2024 11:39 [17:47:42]1206 (1) - 0 [17:47:42]OFD Sender: Remove packet 69472 [17:47:42]ProducePacketName [17:47:42]name=ofd_packets/00069472 [17:47:42]NVStorageDeleteData [17:47:42]Write to MH i2c: 01 00 00 00 0A 0A [17:47:42]Write i2c OK [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: 01 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: 01 07 00 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: 01 07 00 00 0A 00 00 00 00 00 E7 0C 04 [17:47:42]RasterBufferAndPrint [17:47:42]line [17:47:42]line [17:47:42]line [17:47:42]line [17:47:42]line [17:47:42]written 0, free lines is 3309 [17:47:42]MH_Cut [17:47:42]Write to MH i2c: D1 01 00 07 0A 01 E3 [17:47:42]Write i2c OK [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: D1 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: D1 01 00 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: D1 01 00 07 0A 00 E2 [17:47:42]Write to MH i2c: 01 00 00 08 0A 12 [17:47:42]Write i2c OK [17:47:42]MH_I2C_Read... [17:47:42]OFD Sender: No OFD packet to send [17:47:43]*** Cut start [17:47:43]*** Partial cut [17:47:43]*** CUTSNS_PIN = 1 [17:47:43]*** CUTSNS_PIN = 0 [17:47:43]*** Brake cut motor [17:47:43]Read from MH i2c: 01 [17:47:43]MH_I2C_Read... [17:47:43]*** Stop cut motor [17:47:43]*** Cut end [17:47:43]Read from MH i2c: 01 07 00 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: 01 07 00 08 0A 00 00 00 00 00 FF 0F 27 [17:47:43]process_action close_receipt done [17:47:43]requested_data is exist [17:47:43]produce_requested_data [17:47:43]requested_item fm.sn is exist - process it [17:47:43]wFMCommunicate request_size=4 [17:47:43]MH_SAM_APDU [17:47:43]CAPDU: 80 11 00 00 [17:47:43]Write to MH i2c: E2 08 00 09 0A 80 11 00 00 00 00 00 00 8D [17:47:43]Write i2c OK [17:47:43]MH_I2C_Read... [17:47:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:43]Read from MH i2c: E2 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: E2 17 00 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: E2 17 00 09 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DF [17:47:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:47:43]wFMCommunicate OK [17:47:43]requested_item fd.num is exist - process it [17:47:43]SAM_PROTO_GetFieldsCounters [17:47:43]wFMCommunicate request_size=4 [17:47:43]MH_SAM_APDU [17:47:43]CAPDU: 80 13 00 00 [17:47:43]Write to MH i2c: E2 08 00 0A 0A 80 13 00 00 00 00 00 00 90 [17:47:43]Write i2c OK [17:47:43]MH_I2C_Read... [17:47:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:43]Read from MH i2c: E2 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: E2 62 00 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: E2 62 00 0A 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 60 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 96 [17:47:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 60 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:47:43]wFMCommunicate OK [17:47:43]SAM_PROTO_GetFieldsCounters done [17:47:43]requested_item shift.num is exist - process it [17:47:43]requested_item shift.opened is exist - process it [17:47:43]req_shift_opened [17:47:43]FM_GetShiftState [17:47:43]SAM_PROTO_GetShiftState [17:47:43]wFMCommunicate request_size=4 [17:47:43]MH_SAM_APDU [17:47:43]CAPDU: 80 13 01 00 [17:47:43]Write to MH i2c: E2 08 00 0B 0A 80 13 01 00 00 00 00 00 92 [17:47:43]Write i2c OK [17:47:43]MH_I2C_Read... [17:47:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:43]Read from MH i2c: E2 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: E2 0E 00 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: E2 0E 00 0B 0A 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 98 [17:47:43]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:47:43]wFMCommunicate OK [17:47:43]SAM_PROTO_GetShiftState done [17:47:43]FM_GetShiftState done [17:47:43]req_shift_opened done [17:47:43]requested_item shift.open_date is exist - process it [17:47:43]req_shift_open_date [17:47:43]req_shift_open_date done [17:47:43]produce_requested_data done [17:47:43]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69472,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [17:47:43]process_action_free close_receipt [17:47:43]json_value_free [17:47:43]json_value_free done [17:47:43]process_json_proto returns [17:47:43]Send response to host [17:47:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69472,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [17:47:43]free response buf [17:47:43]execute_script done [17:47:43]execute_script returns [17:47:43]free content buf [17:47:43]Sock 9.Close socket [17:47:43]Sock 9.Thread stoped [17:47:47]OFD Sender: No OFD packet to send [17:47:52]OFD Sender: No OFD packet to send [17:47:57]OFD Sender: No OFD packet to send [17:48:02]OFD Sender: No OFD packet to send [17:48:07]OFD Sender: No OFD packet to send [17:48:11]accept exits with 8 [17:48:11]New connection [17:48:11]New thread 3067239780 created [17:48:11]Thread 3067096420 joined [17:48:11]Waiting for new connection... [17:48:11] Sock 8.Parse request [17:48:11]Sock 8.Check first char [17:48:11]Sock 8.First char is OK [17:48:11]request: POST /json_proto HTTP/1.0 [17:48:11]Method: POST [17:48:11]URL: /json_proto [17:48:11]Method is POST - this is cgi request [17:48:11]url: /json_proto [17:48:11]query_string will be loaded in cgi processing [17:48:11]execute_cgi json_proto POST (null) [17:48:11]execute_cgi path=json_proto method=POST [17:48:11]POST find Content-Length [17:48:11]Host: 172.17.50.3:8080 [17:48:11]Content-Length: 683 [17:48:11]Content-Type: application/json [17:48:11] [17:48:11]POST finish read [17:48:11]Found Content-Length = 683 [17:48:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:11]execute_script... [17:48:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:11]POST & json_proto [17:48:11]process_json_proto [17:48:11]json parsed OK: [17:48:11]protocol is kg_v1.0 [17:48:11]action value=close_receipt [17:48:11]process_action close_receipt [17:48:11]cmd_close_receipt [17:48:11]MH_GetDate [17:48:11]Write to MH i2c: F0 00 00 0C 0A 05 [17:48:11]Write i2c OK [17:48:11]MH_I2C_Read... [17:48:11]Read from MH i2c: F0 [17:48:11]MH_I2C_Read... [17:48:11]Read from MH i2c: F0 09 00 [17:48:11]MH_I2C_Read... [17:48:11]Read from MH i2c: F0 09 00 0C 0A 00 5C 42 15 67 6B 98 1E 66 AF [17:48:11]GetLastDocTimeStamp 1729446460 [17:48:11]current date 1729446492 [17:48:11]FM_GetShiftState [17:48:11]SAM_PROTO_GetShiftState [17:48:11]wFMCommunicate request_size=4 [17:48:11]MH_SAM_APDU [17:48:11]CAPDU: 80 13 01 00 [17:48:11]Write to MH i2c: E2 08 00 0D 0A 80 13 01 00 00 00 00 00 94 [17:48:11]Write i2c OK [17:48:11]MH_I2C_Read... [17:48:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:11]Read from MH i2c: E2 [17:48:11]MH_I2C_Read... [17:48:11]Read from MH i2c: E2 0E 00 [17:48:11]MH_I2C_Read... [17:48:11]Read from MH i2c: E2 0E 00 0D 0A 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 9A [17:48:11]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:48:11]wFMCommunicate OK [17:48:11]SAM_PROTO_GetShiftState done [17:48:11]FM_GetShiftState done [17:48:11]opened in 1729383220 [17:48:11]opened+sec_in_day 1729469620 [17:48:11]quantity*price = 300064 [17:48:11]sum+1 = 300066 [17:48:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 318 20.10.2024 17:48 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69473 ФПД: 63817631407704 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174812&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69473&fm=63817631407704&tin=02508201610067®Number=0000000000156251&sum=300000 [17:48:12]StoreToDocumentArchive [17:48:12]shift 193 fd 69473 [17:48:12]save to /storage/0193/doc_00069473 [17:48:12]save last doc name /storage/0193/doc_00069473 to /storage/kkm_last_doc_name [17:48:12]save OK [17:48:12]Clear old archive folders... [17:48:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:48:12]tlvbuf is 00D171F0 [17:48:12]SAM_PROTO_ClearQueue [17:48:12]wFMCommunicate request_size=4 [17:48:12]MH_SAM_APDU [17:48:12]CAPDU: 80 09 00 00 [17:48:12]Write to MH i2c: E2 08 00 1A 0A 80 09 00 00 00 00 00 00 96 [17:48:12]Write i2c OK [17:48:12]MH_I2C_Read... [17:48:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:12]Read from MH i2c: E2 [17:48:12]MH_I2C_Read... [17:48:12]Read from MH i2c: E2 03 00 [17:48:12]MH_I2C_Read... [17:48:12]Read from MH i2c: E2 03 00 1A 0A 00 90 00 98 [17:48:12]RAPDU: 90 00 [17:48:12]wFMCommunicate OK [17:48:12]SAM_PROTO_ClearQueue done [17:48:12]KKMCreateOFDPacket [17:48:12]OFDProtocolAddRootSTLVToBuf [17:48:12]FM_MakeSignedData [17:48:12]FM_MakeSignedData [17:48:12]SAM_PROTO_SignData [17:48:12]wFMCommunicate request_size=4 [17:48:12]MH_SAM_APDU [17:48:12]CAPDU: 80 0D 01 02 [17:48:12]Write to MH i2c: E2 08 00 1B 0A 80 0D 01 02 00 00 00 00 9E [17:48:12]Write i2c OK [17:48:12]MH_I2C_Read... [17:48:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:12]Read from MH i2c: E2 [17:48:12]MH_I2C_Read... [17:48:12]Read from MH i2c: E2 03 00 [17:48:12]MH_I2C_Read... [17:48:12]Read from MH i2c: E2 03 00 1B 0A 00 90 00 99 [17:48:12]RAPDU: 90 00 [17:48:12]wFMCommunicate OK [17:48:12]wFMCommunicate request_size=255 [17:48:12]MH_SAM_APDU [17:48: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 5C 42 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 61 0F 01 00 35 04 06 00 3A [17:48:12]Write to MH i2c: E2 02 01 1C 0A 80 0D 02 02 FA 00 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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 5C 42 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 61 0F 01 00 35 04 06 00 3A 00 00 1D [17:48:12]Write i2c OK [17:48:12]MH_I2C_Read... [17:48:12]OFD Sender: No OFD packet to send [17:48:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:12]Read from MH i2c: E2 [17:48:12]MH_I2C_Read... [17:48:12]Read from MH i2c: E2 03 00 [17:48:12]MH_I2C_Read... [17:48:12]Read from MH i2c: E2 03 00 1C 0A 00 90 00 9A [17:48:12]RAPDU: 90 00 [17:48:12]wFMCommunicate OK [17:48:12]wFMCommunicate request_size=10 [17:48:12]MH_SAM_APDU [17:48:12]CAPDU: 80 0D 02 02 05 0A B3 40 1E 58 [17:48:12]Write to MH i2c: E2 0D 00 1D 0A 80 0D 02 02 05 00 0A B3 40 1E 58 00 00 1E [17:48:12]Write i2c OK [17:48:12]MH_I2C_Read... [17:48:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:12]Read from MH i2c: E2 [17:48:12]MH_I2C_Read... [17:48:12]Read from MH i2c: E2 03 00 [17:48:12]MH_I2C_Read... [17:48:12]Read from MH i2c: E2 03 00 1D 0A 00 90 00 9B [17:48:12]RAPDU: 90 00 [17:48:12]wFMCommunicate OK [17:48:12]wFMCommunicate request_size=4 [17:48:12]MH_SAM_APDU [17:48:12]CAPDU: 80 0D 03 02 [17:48:12]Write to MH i2c: E2 08 00 1E 0A 80 0D 03 02 00 00 00 00 A3 [17:48:12]Write i2c OK [17:48:12]MH_I2C_Read... [17:48:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:13]Read from MH i2c: E2 [17:48:13]MH_I2C_Read... [17:48:13]Read from MH i2c: E2 0B 00 [17:48:13]MH_I2C_Read... [17:48:13]Read from MH i2c: E2 0B 00 1E 0A 00 F8 B9 C2 C8 FE 77 A5 75 90 00 6E [17:48:13]RAPDU: F8 B9 C2 C8 FE 77 A5 75 90 00 [17:48:13]wFMCommunicate OK [17:48:13]SAM_PROTO_SignData done [17:48:13]FM_MakeSignedData done [17:48:13]CreateOFDProtocolMessage [17:48:13]wFMCommunicate request_size=4 [17:48:13]MH_SAM_APDU [17:48:13]CAPDU: 80 11 00 00 [17:48:13]Write to MH i2c: E2 08 00 1F 0A 80 11 00 00 00 00 00 00 A3 [17:48:13]Write i2c OK [17:48:13]MH_I2C_Read... [17:48:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:13]Read from MH i2c: E2 [17:48:13]MH_I2C_Read... [17:48:13]Read from MH i2c: E2 17 00 [17:48:13]MH_I2C_Read... [17:48:13]Read from MH i2c: E2 17 00 1F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F5 [17:48:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:48:13]wFMCommunicate OK [17:48:13]CreateOFDProtocolMessage done [17:48:13]OFDSenderStorePacket 69473 [17:48:13]StoreOFDPacket docnum=69473 [17:48:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 CE 59 07 01 EA 5C 5A 03 01 00 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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 5C 42 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 61 0F 01 00 35 04 06 00 3A 0A B3 40 1E 58 F8 B9 C2 C8 FE 77 A5 75 [17:48:13]CheckFolder [17:48:13]dirname=/storage/ofd_packets [17:48:13]CheckFolder done [17:48:13]ProducePacketName [17:48:13]name=ofd_packets/00069473 [17:48:13]NVStorageSaveData ofd_packets/00069473 [17:48:13]File name is /storage/ofd_packets/00069473 [17:48:13]Write 301 bytes [17:48:13]NVStorageSaveData done [17:48:13]OFDSenderStorePacket done [17:48:13]KKMCreateOFDPacket done [17:48:13]NVStorageSaveData kkm_last_timestamp [17:48:13]File name is /storage/kkm_last_timestamp [17:48:13]Write 4 bytes [17:48:13]NVStorageSaveData done [17:48:13]ExternCall_PrintAddStr [17:48:13]wPrintStart [17:48:13]Write to MH i2c: 01 00 00 20 0A 2A [17:48:13]Write i2c OK [17:48:13]MH_I2C_Read... [17:48:13]Read from MH i2c: 01 [17:48:13]MH_I2C_Read... [17:48:13]Read from MH i2c: 01 07 00 [17:48:13]MH_I2C_Read... [17:48:13]Read from MH i2c: 01 07 00 20 0A 00 00 00 00 00 FF 0F 3F [17:48:13]RasterBufferAndPrint [17:48:13]line Счет N : (1)2885205 [17:48:13]line ИНН: 02508201610067 [17:48:13]line Контрольно-Кассовый Чек [17:48:13]line ПРОДАЖА [17:48:13]line ТРК (МРК, ГНК) : 23 [17:48:13]line Товар: 2710124500 [17:48:13]line Аи-95-К-5 [17:48:13]line 40.440 * 74.20 [17:48:13]line = 3000.65 [17:48:13]line НДС 12% НСП 1% [17:48:13]line > о реализуемом товаре [17:48:13]line ОКРУГЛЕНИЕ: -0.65 [17:48:13]line ИТОГО: 3000.00 [17:48:13]line Внесено: 3000.00 [17:48:13]line СДАЧА: 0.00 [17:48:13]line НСП 1% : 26.55 [17:48:13]line НДС 12% : 318.65 [17:48:13]line Наличными: 3000.00 [17:48:13]line Безнал.: 0.00 [17:48:13]line Место: АЗС № 85 "Партнер Нефть" [17:48:13]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:48:13]line СНО: Общий режим [17:48:13]line Чек 318 20.10.2024 17:48 [17:48:13]line Смена: 193 ФФД: 1.0 [17:48:13]line ЗНМ: 0300000167 [17:48:13]line РНМ: 0000000000156251 [17:48:13]line Версия ККМ: v1.0 [17:48:13]line ФМ: 0000000000963346 [17:48:13]line ФД: 69473 [17:48:13]line ФПД: 63817631407704 [17:48:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174812&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69473&fm=63817631407704&tin=02508201610067®Number=0000000000156251&sum=300000 [17:48:13]OFD Sender: Processing packet 69473 [packets to send 18, broken 17] [17:48:13]ProducePacketName [17:48:13]name=ofd_packets/00069473 [17:48:13]OFD Sender: To server: pG, [17:48:13]CommunicateWithHost lk.salyk.kg:30040 [17:48:13]ConnectInit lk.salyk.kg [17:48:13]written 0, free lines is 4095 [17:48:13]Connected sock=10 [17:48:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 CE 59 07 01 EA 5C 5A 03 01 00 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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 5C 42 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 61 0F 01 00 35 04 06 00 3A 0A B3 40 1E 58 F8 B9 C2 C8 FE 77 A5 75 [17:48:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 92 0C 47 00 62 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 61 0F 01 00 F4 03 04 00 02 EC 14 67 B6 04 01 00 00 B6 9B 1E A7 F4 E1 5C D1 [17:48:13]CommunicateWithHost err = 0 [17:48:13]CheckOFDResponse [17:48:13]1017 (14) - 77093643461234 [17:48:13]1041 (16) - 0000000000963346 [17:48:13]1040 (4) - 69473 [17:48:13]1012 (4) - 20.10.2024 11:39 [17:48:13]1206 (1) - 0 [17:48:13]OFD Sender: Remove packet 69473 [17:48:13]ProducePacketName [17:48:13]name=ofd_packets/00069473 [17:48:13]NVStorageDeleteData [17:48:13]Write to MH i2c: 01 00 00 4B 0A 55 [17:48:13]Write i2c OK [17:48:13]MH_I2C_Read... [17:48:13]Read from MH i2c: 01 [17:48:13]MH_I2C_Read... [17:48:13]Read from MH i2c: 01 07 00 [17:48:13]MH_I2C_Read... [17:48:13]Read from MH i2c: 01 07 00 4B 0A 00 00 00 00 00 EC 0C 54 [17:48:13]RasterBufferAndPrint [17:48:13]line [17:48:13]line [17:48:13]line [17:48:13]line [17:48:13]line [17:48:13]written 0, free lines is 3314 [17:48:13]MH_Cut [17:48:13]Write to MH i2c: D1 01 00 52 0A 01 2E [17:48:13]Write i2c OK [17:48:13]MH_I2C_Read... [17:48:13]Read from MH i2c: D1 [17:48:13]MH_I2C_Read... [17:48:13]Read from MH i2c: D1 01 00 [17:48:13]MH_I2C_Read... [17:48:13]Read from MH i2c: D1 01 00 52 0A 00 2D [17:48:13]Write to MH i2c: 01 00 00 53 0A 5D [17:48:13]Write i2c OK [17:48:13]MH_I2C_Read... [17:48:14]OFD Sender: No OFD packet to send [17:48:14]*** Cut start [17:48:14]*** Partial cut [17:48:14]*** CUTSNS_PIN = 1 [17:48:14]*** CUTSNS_PIN = 0 [17:48:14]*** Brake cut motor [17:48:15]Read from MH i2c: 01 [17:48:15]MH_I2C_Read... [17:48:15]*** Stop cut motor [17:48:15]*** Cut end [17:48:15]Read from MH i2c: 01 07 00 [17:48:15]MH_I2C_Read... [17:48:15]Read from MH i2c: 01 07 00 53 0A 00 00 00 00 00 FF 0F 72 [17:48:15]process_action close_receipt done [17:48:15]requested_data is exist [17:48:15]produce_requested_data [17:48:15]requested_item fm.sn is exist - process it [17:48:15]wFMCommunicate request_size=4 [17:48:15]MH_SAM_APDU [17:48:15]CAPDU: 80 11 00 00 [17:48:15]Write to MH i2c: E2 08 00 54 0A 80 11 00 00 00 00 00 00 D8 [17:48:15]Write i2c OK [17:48:15]MH_I2C_Read... [17:48:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:15]Read from MH i2c: E2 [17:48:15]MH_I2C_Read... [17:48:15]Read from MH i2c: E2 17 00 [17:48:15]MH_I2C_Read... [17:48:15]Read from MH i2c: E2 17 00 54 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2A [17:48:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:48:15]wFMCommunicate OK [17:48:15]requested_item fd.num is exist - process it [17:48:15]SAM_PROTO_GetFieldsCounters [17:48:15]wFMCommunicate request_size=4 [17:48:15]MH_SAM_APDU [17:48:15]CAPDU: 80 13 00 00 [17:48:15]Write to MH i2c: E2 08 00 55 0A 80 13 00 00 00 00 00 00 DB [17:48:15]Write i2c OK [17:48:15]MH_I2C_Read... [17:48:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:15]Read from MH i2c: E2 [17:48:15]MH_I2C_Read... [17:48:15]Read from MH i2c: E2 62 00 [17:48:15]MH_I2C_Read... [17:48:15]Read from MH i2c: E2 62 00 55 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 61 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 E5 [17:48:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 61 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:48:15]wFMCommunicate OK [17:48:15]SAM_PROTO_GetFieldsCounters done [17:48:15]requested_item shift.num is exist - process it [17:48:15]requested_item shift.opened is exist - process it [17:48:15]req_shift_opened [17:48:15]FM_GetShiftState [17:48:15]SAM_PROTO_GetShiftState [17:48:15]wFMCommunicate request_size=4 [17:48:15]MH_SAM_APDU [17:48:15]CAPDU: 80 13 01 00 [17:48:15]Write to MH i2c: E2 08 00 56 0A 80 13 01 00 00 00 00 00 DD [17:48:15]Write i2c OK [17:48:15]MH_I2C_Read... [17:48:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:15]Read from MH i2c: E2 [17:48:15]MH_I2C_Read... [17:48:15]Read from MH i2c: E2 0E 00 [17:48:15]MH_I2C_Read... [17:48:15]Read from MH i2c: E2 0E 00 56 0A 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 E3 [17:48:15]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:48:15]wFMCommunicate OK [17:48:15]SAM_PROTO_GetShiftState done [17:48:15]FM_GetShiftState done [17:48:15]req_shift_opened done [17:48:15]requested_item shift.open_date is exist - process it [17:48:15]req_shift_open_date [17:48:15]req_shift_open_date done [17:48:15]produce_requested_data done [17:48:15]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69473,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [17:48:15]process_action_free close_receipt [17:48:15]json_value_free [17:48:15]json_value_free done [17:48:15]process_json_proto returns [17:48:15]Send response to host [17:48:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69473,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [17:48:15]free response buf [17:48:15]execute_script done [17:48:15]execute_script returns [17:48:15]free content buf [17:48:15]Sock 8.Close socket [17:48:15]Sock 8.Thread stoped [17:48:19]OFD Sender: No OFD packet to send [17:48:24]OFD Sender: No OFD packet to send [17:48:29]OFD Sender: No OFD packet to send [17:48:34]OFD Sender: No OFD packet to send [17:48:39]OFD Sender: No OFD packet to send [17:48:44]OFD Sender: No OFD packet to send [17:48:49]OFD Sender: No OFD packet to send [17:48:54]OFD Sender: No OFD packet to send [17:48:59]OFD Sender: No OFD packet to send [17:49:04]OFD Sender: No OFD packet to send [17:49:09]OFD Sender: No OFD packet to send [17:49:14]OFD Sender: No OFD packet to send [17:49:19]OFD Sender: No OFD packet to send [17:49:24]OFD Sender: No OFD packet to send [17:49:29]OFD Sender: No OFD packet to send [17:49:34]OFD Sender: No OFD packet to send [17:49:39]OFD Sender: No OFD packet to send [17:49:44]OFD Sender: No OFD packet to send [17:49:49]OFD Sender: No OFD packet to send [17:49:54]OFD Sender: No OFD packet to send [17:49:59]OFD Sender: No OFD packet to send [17:50:04]OFD Sender: No OFD packet to send [17:50:09]OFD Sender: No OFD packet to send [17:50:14]OFD Sender: No OFD packet to send [17:50:19]OFD Sender: No OFD packet to send [17:50:24]OFD Sender: No OFD packet to send [17:50:29]OFD Sender: No OFD packet to send [17:50:34]OFD Sender: No OFD packet to send [17:50:39]OFD Sender: No OFD packet to send [17:50:44]OFD Sender: No OFD packet to send [17:50:49]OFD Sender: No OFD packet to send [17:50:54]OFD Sender: No OFD packet to send [17:50:55]accept exits with 9 [17:50:55]New connection [17:50:55]New thread 3067096420 created [17:50:55]Thread 3067239780 joined [17:50:55]Waiting for new connection... [17:50:55] Sock 9.Parse request [17:50:55]Sock 9.Check first char [17:50:55]Sock 9.First char is OK [17:50:55]request: POST /json_proto HTTP/1.0 [17:50:55]Method: POST [17:50:55]URL: /json_proto [17:50:55]Method is POST - this is cgi request [17:50:55]url: /json_proto [17:50:55]query_string will be loaded in cgi processing [17:50:55]execute_cgi json_proto POST (null) [17:50:55]execute_cgi path=json_proto method=POST [17:50:55]POST find Content-Length [17:50:55]Host: 172.17.50.3:8080 [17:50:55]Content-Length: 679 [17:50:55]Content-Type: application/json [17:50:55] [17:50:55]POST finish read [17:50:55]Found Content-Length = 679 [17:50:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:55]execute_script... [17:50:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:55]POST & json_proto [17:50:55]process_json_proto [17:50:55]json parsed OK: [17:50:55]protocol is kg_v1.0 [17:50:55]action value=close_receipt [17:50:55]process_action close_receipt [17:50:55]cmd_close_receipt [17:50:55]MH_GetDate [17:50:55]Write to MH i2c: F0 00 00 57 0A 50 [17:50:55]Write i2c OK [17:50:55]MH_I2C_Read... [17:50:55]Read from MH i2c: F0 [17:50:55]MH_I2C_Read... [17:50:55]Read from MH i2c: F0 09 00 [17:50:55]MH_I2C_Read... [17:50:55]Read from MH i2c: F0 09 00 57 0A 00 00 43 15 67 6B 98 1E 66 9F [17:50:55]GetLastDocTimeStamp 1729446492 [17:50:55]current date 1729446656 [17:50:55]FM_GetShiftState [17:50:55]SAM_PROTO_GetShiftState [17:50:55]wFMCommunicate request_size=4 [17:50:55]MH_SAM_APDU [17:50:55]CAPDU: 80 13 01 00 [17:50:55]Write to MH i2c: E2 08 00 58 0A 80 13 01 00 00 00 00 00 DF [17:50:55]Write i2c OK [17:50:55]MH_I2C_Read... [17:50:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:55]Read from MH i2c: E2 [17:50:55]MH_I2C_Read... [17:50:55]Read from MH i2c: E2 0E 00 [17:50:55]MH_I2C_Read... [17:50:55]Read from MH i2c: E2 0E 00 58 0A 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 E5 [17:50:55]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:50:55]wFMCommunicate OK [17:50:55]SAM_PROTO_GetShiftState done [17:50:55]FM_GetShiftState done [17:50:55]opened in 1729383220 [17:50:55]opened+sec_in_day 1729469620 [17:50:55]quantity*price = 80061 [17:50:55]sum+1 = 80063 [17:50:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 319 20.10.2024 17:50 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69474 ФПД: 144598147090199 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T175056&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69474&fm=144598147090199&tin=02508201610067®Number=0000000000156251&sum=80000 [17:50:56]StoreToDocumentArchive [17:50:56]shift 193 fd 69474 [17:50:56]save to /storage/0193/doc_00069474 [17:50:56]save last doc name /storage/0193/doc_00069474 to /storage/kkm_last_doc_name [17:50:56]save OK [17:50:56]Clear old archive folders... [17:50:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:50:56]tlvbuf is 00D08920 [17:50:56]SAM_PROTO_ClearQueue [17:50:56]wFMCommunicate request_size=4 [17:50:56]MH_SAM_APDU [17:50:56]CAPDU: 80 09 00 00 [17:50:56]Write to MH i2c: E2 08 00 65 0A 80 09 00 00 00 00 00 00 E1 [17:50:56]Write i2c OK [17:50:56]MH_I2C_Read... [17:50:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:50:57]Read from MH i2c: E2 [17:50:57]MH_I2C_Read... [17:50:57]Read from MH i2c: E2 03 00 [17:50:57]MH_I2C_Read... [17:50:57]Read from MH i2c: E2 03 00 65 0A 00 90 00 E3 [17:50:57]RAPDU: 90 00 [17:50:57]wFMCommunicate OK [17:50:57]SAM_PROTO_ClearQueue done [17:50:57]KKMCreateOFDPacket [17:50:57]OFDProtocolAddRootSTLVToBuf [17:50:57]FM_MakeSignedData [17:50:57]FM_MakeSignedData [17:50:57]SAM_PROTO_SignData [17:50:57]wFMCommunicate request_size=4 [17:50:57]MH_SAM_APDU [17:50:57]CAPDU: 80 0D 01 02 [17:50:57]Write to MH i2c: E2 08 00 66 0A 80 0D 01 02 00 00 00 00 E9 [17:50:57]Write i2c OK [17:50:57]MH_I2C_Read... [17:50:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:50:57]Read from MH i2c: E2 [17:50:57]MH_I2C_Read... [17:50:57]Read from MH i2c: E2 03 00 [17:50:57]MH_I2C_Read... [17:50:57]Read from MH i2c: E2 03 00 66 0A 00 90 00 E4 [17:50:57]RAPDU: 90 00 [17:50:57]wFMCommunicate OK [17:50:57]wFMCommunicate request_size=255 [17:50:57]MH_SAM_APDU [17:50: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 00 43 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 62 0F 01 00 35 04 06 00 83 [17:50:57]Write to MH i2c: E2 02 01 67 0A 80 0D 02 02 FA 00 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 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 00 43 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 62 0F 01 00 35 04 06 00 83 00 00 94 [17:50:57]Write i2c OK [17:50:57]MH_I2C_Read... [17:50:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:57]Read from MH i2c: E2 [17:50:57]MH_I2C_Read... [17:50:57]Read from MH i2c: E2 03 00 [17:50:57]MH_I2C_Read... [17:50:57]Read from MH i2c: E2 03 00 67 0A 00 90 00 E5 [17:50:57]RAPDU: 90 00 [17:50:57]wFMCommunicate OK [17:50:57]wFMCommunicate request_size=10 [17:50:57]MH_SAM_APDU [17:50:57]CAPDU: 80 0D 02 02 05 82 E1 31 47 17 [17:50:57]Write to MH i2c: E2 0D 00 68 0A 80 0D 02 02 05 00 82 E1 31 47 17 00 00 E8 [17:50:57]Write i2c OK [17:50:57]MH_I2C_Read... [17:50:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:57]Read from MH i2c: E2 [17:50:57]MH_I2C_Read... [17:50:57]Read from MH i2c: E2 03 00 [17:50:57]MH_I2C_Read... [17:50:57]Read from MH i2c: E2 03 00 68 0A 00 90 00 E6 [17:50:57]RAPDU: 90 00 [17:50:57]wFMCommunicate OK [17:50:57]wFMCommunicate request_size=4 [17:50:57]MH_SAM_APDU [17:50:57]CAPDU: 80 0D 03 02 [17:50:57]Write to MH i2c: E2 08 00 69 0A 80 0D 03 02 00 00 00 00 EE [17:50:57]Write i2c OK [17:50:57]MH_I2C_Read... [17:50:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:50:57]Read from MH i2c: E2 [17:50:57]MH_I2C_Read... [17:50:57]Read from MH i2c: E2 0B 00 [17:50:57]MH_I2C_Read... [17:50:57]Read from MH i2c: E2 0B 00 69 0A 00 54 30 64 1C 40 31 F0 2F 90 00 83 [17:50:57]RAPDU: 54 30 64 1C 40 31 F0 2F 90 00 [17:50:57]wFMCommunicate OK [17:50:57]SAM_PROTO_SignData done [17:50:57]FM_MakeSignedData done [17:50:57]CreateOFDProtocolMessage [17:50:57]wFMCommunicate request_size=4 [17:50:57]MH_SAM_APDU [17:50:57]CAPDU: 80 11 00 00 [17:50:57]Write to MH i2c: E2 08 00 6A 0A 80 11 00 00 00 00 00 00 EE [17:50:57]Write i2c OK [17:50:57]MH_I2C_Read... [17:50:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:57]Read from MH i2c: E2 [17:50:57]MH_I2C_Read... [17:50:57]Read from MH i2c: E2 17 00 [17:50:57]MH_I2C_Read... [17:50:57]Read from MH i2c: E2 17 00 6A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 40 [17:50:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:50:57]wFMCommunicate OK [17:50:57]CreateOFDProtocolMessage done [17:50:57]OFDSenderStorePacket 69474 [17:50:57]StoreOFDPacket docnum=69474 [17:50:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 DD C1 07 01 DD 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 00 43 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 62 0F 01 00 35 04 06 00 83 82 E1 31 47 17 54 30 64 1C 40 31 F0 2F [17:50:57]CheckFolder [17:50:57]dirname=/storage/ofd_packets [17:50:57]CheckFolder done [17:50:57]ProducePacketName [17:50:57]name=ofd_packets/00069474 [17:50:57]NVStorageSaveData ofd_packets/00069474 [17:50:57]File name is /storage/ofd_packets/00069474 [17:50:57]Write 301 bytes [17:50:57]NVStorageSaveData done [17:50:57]OFDSenderStorePacket done [17:50:57]KKMCreateOFDPacket done [17:50:57]NVStorageSaveData kkm_last_timestamp [17:50:57]File name is /storage/kkm_last_timestamp [17:50:57]Write 4 bytes [17:50:57]NVStorageSaveData done [17:50:57]ExternCall_PrintAddStr [17:50:57]wPrintStart [17:50:57]Write to MH i2c: 01 00 00 6B 0A 75 [17:50:57]Write i2c OK [17:50:57]MH_I2C_Read... [17:50:57]Read from MH i2c: 01 [17:50:57]MH_I2C_Read... [17:50:57]Read from MH i2c: 01 07 00 [17:50:57]MH_I2C_Read... [17:50:57]Read from MH i2c: 01 07 00 6B 0A 00 00 00 00 00 FF 0F 8A [17:50:57]RasterBufferAndPrint [17:50:57]line Счет N : (1)2885209 [17:50:57]line ИНН: 02508201610067 [17:50:57]line Контрольно-Кассовый Чек [17:50:57]line ПРОДАЖА [17:50:57]line ТРК (МРК, ГНК) : 43 [17:50:57]line Товар: 2710124500 [17:50:57]line Аи-95-К-5 [17:50:57]line 10.790 * 74.20 [17:50:57]line = 800.62 [17:50:57]line НДС 12% НСП 1% [17:50:57]line > о реализуемом товаре [17:50:57]line ОКРУГЛЕНИЕ: -0.62 [17:50:57]line ИТОГО: 800.00 [17:50:57]line Внесено: 800.00 [17:50:57]line СДАЧА: 0.00 [17:50:57]line НСП 1% : 7.08 [17:50:57]line НДС 12% : 85.02 [17:50:57]line Наличными: 800.00 [17:50:57]line Безнал.: 0.00 [17:50:57]line Место: АЗС № 85 "Партнер Нефть" [17:50:57]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:50:57]line СНО: Общий режим [17:50:57]line Чек 319 20.10.2024 17:50 [17:50:57]line Смена: 193 ФФД: 1.0 [17:50:57]line ЗНМ: 0300000167 [17:50:57]line РНМ: 0000000000156251 [17:50:57]line Версия ККМ: v1.0 [17:50:57]line ФМ: 0000000000963346 [17:50:57]line ФД: 69474 [17:50:57]line ФПД: 144598147090199 [17:50:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T175056&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69474&fm=144598147090199&tin=02508201610067®Number=0000000000156251&sum=80000 [17:50:57]OFD Sender: Processing packet 69474 [packets to send 18, broken 17] [17:50:57]ProducePacketName [17:50:57]name=ofd_packets/00069474 [17:50:57]OFD Sender: To server: pG, [17:50:57]CommunicateWithHost lk.salyk.kg:30040 [17:50:57]ConnectInit lk.salyk.kg [17:50:57]written 0, free lines is 4095 [17:50:57]Connected sock=10 [17:50:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 DD C1 07 01 DD 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 00 43 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 62 0F 01 00 35 04 06 00 83 82 E1 31 47 17 54 30 64 1C 40 31 F0 2F [17:50:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 36 97 47 00 EA C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 62 0F 01 00 F4 03 04 00 A6 EC 14 67 B6 04 01 00 00 6A 00 2C AF B3 AF 68 D5 [17:50:58]CommunicateWithHost err = 0 [17:50:58]CheckOFDResponse [17:50:58]1017 (14) - 77093643461234 [17:50:58]1041 (16) - 0000000000963346 [17:50:58]1040 (4) - 69474 [17:50:58]1012 (4) - 20.10.2024 11:42 [17:50:58]1206 (1) - 0 [17:50:58]OFD Sender: Remove packet 69474 [17:50:58]ProducePacketName [17:50:58]name=ofd_packets/00069474 [17:50:58]NVStorageDeleteData [17:50:58]Write to MH i2c: 01 00 00 96 0A A0 [17:50:58]Write i2c OK [17:50:58]MH_I2C_Read... [17:50:58]Read from MH i2c: 01 [17:50:58]MH_I2C_Read... [17:50:58]Read from MH i2c: 01 07 00 [17:50:58]MH_I2C_Read... [17:50:58]Read from MH i2c: 01 07 00 96 0A 00 00 00 00 00 F3 0C A6 [17:50:58]RasterBufferAndPrint [17:50:58]line [17:50:58]line [17:50:58]line [17:50:58]line [17:50:58]line [17:50:58]written 0, free lines is 3321 [17:50:58]MH_Cut [17:50:58]Write to MH i2c: D1 01 00 9D 0A 01 79 [17:50:58]Write i2c OK [17:50:58]MH_I2C_Read... [17:50:58]Read from MH i2c: D1 [17:50:58]MH_I2C_Read... [17:50:58]Read from MH i2c: D1 01 00 [17:50:58]MH_I2C_Read... [17:50:58]Read from MH i2c: D1 01 00 9D 0A 00 78 [17:50:58]Write to MH i2c: 01 00 00 9E 0A A8 [17:50:58]Write i2c OK [17:50:58]MH_I2C_Read... [17:50:58]OFD Sender: No OFD packet to send [17:50:58]*** Cut start [17:50:58]*** Partial cut [17:50:58]*** CUTSNS_PIN = 1 [17:50:59]*** CUTSNS_PIN = 0 [17:50:59]*** Brake cut motor [17:50:59]Read from MH i2c: 01 [17:50:59]MH_I2C_Read... [17:50:59]*** Stop cut motor [17:50:59]*** Cut end [17:50:59]Read from MH i2c: 01 07 00 [17:50:59]MH_I2C_Read... [17:50:59]Read from MH i2c: 01 07 00 9E 0A 00 00 00 00 00 FF 0F BD [17:50:59]process_action close_receipt done [17:50:59]requested_data is exist [17:50:59]produce_requested_data [17:50:59]requested_item fm.sn is exist - process it [17:50:59]wFMCommunicate request_size=4 [17:50:59]MH_SAM_APDU [17:50:59]CAPDU: 80 11 00 00 [17:50:59]Write to MH i2c: E2 08 00 9F 0A 80 11 00 00 00 00 00 00 23 [17:50:59]Write i2c OK [17:50:59]MH_I2C_Read... [17:50:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:59]Read from MH i2c: E2 [17:50:59]MH_I2C_Read... [17:50:59]Read from MH i2c: E2 17 00 [17:50:59]MH_I2C_Read... [17:50:59]Read from MH i2c: E2 17 00 9F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 75 [17:50:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:50:59]wFMCommunicate OK [17:50:59]requested_item fd.num is exist - process it [17:50:59]SAM_PROTO_GetFieldsCounters [17:50:59]wFMCommunicate request_size=4 [17:50:59]MH_SAM_APDU [17:50:59]CAPDU: 80 13 00 00 [17:50:59]Write to MH i2c: E2 08 00 A0 0A 80 13 00 00 00 00 00 00 26 [17:50:59]Write i2c OK [17:50:59]MH_I2C_Read... [17:50:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:50:59]Read from MH i2c: E2 [17:50:59]MH_I2C_Read... [17:50:59]Read from MH i2c: E2 62 00 [17:50:59]MH_I2C_Read... [17:50:59]Read from MH i2c: E2 62 00 A0 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 62 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 34 [17:50:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 62 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:50:59]wFMCommunicate OK [17:50:59]SAM_PROTO_GetFieldsCounters done [17:50:59]requested_item shift.num is exist - process it [17:50:59]requested_item shift.opened is exist - process it [17:50:59]req_shift_opened [17:50:59]FM_GetShiftState [17:50:59]SAM_PROTO_GetShiftState [17:50:59]wFMCommunicate request_size=4 [17:50:59]MH_SAM_APDU [17:50:59]CAPDU: 80 13 01 00 [17:50:59]Write to MH i2c: E2 08 00 A1 0A 80 13 01 00 00 00 00 00 28 [17:50:59]Write i2c OK [17:50:59]MH_I2C_Read... [17:50:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:59]Read from MH i2c: E2 [17:50:59]MH_I2C_Read... [17:50:59]Read from MH i2c: E2 0E 00 [17:50:59]MH_I2C_Read... [17:50:59]Read from MH i2c: E2 0E 00 A1 0A 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 2E [17:50:59]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:50:59]wFMCommunicate OK [17:50:59]SAM_PROTO_GetShiftState done [17:50:59]FM_GetShiftState done [17:50:59]req_shift_opened done [17:50:59]requested_item shift.open_date is exist - process it [17:50:59]req_shift_open_date [17:50:59]req_shift_open_date done [17:50:59]produce_requested_data done [17:50:59]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69474,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [17:50:59]process_action_free close_receipt [17:50:59]json_value_free [17:50:59]json_value_free done [17:50:59]process_json_proto returns [17:50:59]Send response to host [17:50:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69474,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [17:50:59]free response buf [17:50:59]execute_script done [17:50:59]execute_script returns [17:50:59]free content buf [17:50:59]Sock 9.Close socket [17:50:59]Sock 9.Thread stoped [17:51:03]OFD Sender: No OFD packet to send [17:51:08]OFD Sender: No OFD packet to send [17:51:13]OFD Sender: No OFD packet to send [17:51:16]accept exits with 8 [17:51:16]New connection [17:51:16]New thread 3067239780 created [17:51:16]Thread 3067096420 joined [17:51:16]Waiting for new connection... [17:51:16] Sock 8.Parse request [17:51:16]Sock 8.Check first char [17:51:16]Sock 8.First char is OK [17:51:16]request: POST /json_proto HTTP/1.0 [17:51:16]Method: POST [17:51:16]URL: /json_proto [17:51:16]Method is POST - this is cgi request [17:51:16]url: /json_proto [17:51:16]query_string will be loaded in cgi processing [17:51:16]execute_cgi json_proto POST (null) [17:51:16]execute_cgi path=json_proto method=POST [17:51:16]POST find Content-Length [17:51:16]Host: 172.17.50.3:8080 [17:51:16]Content-Length: 770 [17:51:16]Content-Type: application/json [17:51:16] [17:51:16]POST finish read [17:51:16]Found Content-Length = 770 [17:51:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:16]execute_script... [17:51:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:16]POST & json_proto [17:51:16]process_json_proto [17:51:16]json parsed OK: [17:51:16]protocol is kg_v1.0 [17:51:16]action value=close_receipt [17:51:16]process_action close_receipt [17:51:16]cmd_close_receipt [17:51:16]MH_GetDate [17:51:16]Write to MH i2c: F0 00 00 A2 0A 9B [17:51:16]Write i2c OK [17:51:16]MH_I2C_Read... [17:51:16]Read from MH i2c: F0 [17:51:16]MH_I2C_Read... [17:51:16]Read from MH i2c: F0 09 00 [17:51:16]MH_I2C_Read... [17:51:16]Read from MH i2c: F0 09 00 A2 0A 00 15 43 15 67 6B 98 1E 66 FF [17:51:16]GetLastDocTimeStamp 1729446656 [17:51:16]current date 1729446677 [17:51:16]FM_GetShiftState [17:51:16]SAM_PROTO_GetShiftState [17:51:16]wFMCommunicate request_size=4 [17:51:16]MH_SAM_APDU [17:51:16]CAPDU: 80 13 01 00 [17:51:16]Write to MH i2c: E2 08 00 A3 0A 80 13 01 00 00 00 00 00 2A [17:51:16]Write i2c OK [17:51:16]MH_I2C_Read... [17:51:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:16]Read from MH i2c: E2 [17:51:16]MH_I2C_Read... [17:51:16]Read from MH i2c: E2 0E 00 [17:51:16]MH_I2C_Read... [17:51:16]Read from MH i2c: E2 0E 00 A3 0A 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 30 [17:51:16]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:51:16]wFMCommunicate OK [17:51:16]SAM_PROTO_GetShiftState done [17:51:16]FM_GetShiftState done [17:51:16]opened in 1729383220 [17:51:16]opened+sec_in_day 1729469620 [17:51:16]quantity*price = 200043 [17:51:16]sum+1 = 200044 [17:51:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.43 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.43 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 320 20.10.2024 17:51 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69475 ФПД: 118831403660852 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T175117&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69475&fm=118831403660852&tin=02508201610067®Number=0000000000156251&sum=200043 [17:51:18]StoreToDocumentArchive [17:51:18]shift 193 fd 69475 [17:51:18]save to /storage/0193/doc_00069475 [17:51:18]save last doc name /storage/0193/doc_00069475 to /storage/kkm_last_doc_name [17:51:18]save OK [17:51:18]Clear old archive folders... [17:51:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:51:18]tlvbuf is 00D0DB40 [17:51:18]SAM_PROTO_ClearQueue [17:51:18]wFMCommunicate request_size=4 [17:51:18]MH_SAM_APDU [17:51:18]CAPDU: 80 09 00 00 [17:51:18]Write to MH i2c: E2 08 00 B0 0A 80 09 00 00 00 00 00 00 2C [17:51:18]Write i2c OK [17:51:18]MH_I2C_Read... [17:51:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:51:18]Read from MH i2c: E2 [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: E2 03 00 [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: E2 03 00 B0 0A 00 90 00 2E [17:51:18]RAPDU: 90 00 [17:51:18]wFMCommunicate OK [17:51:18]SAM_PROTO_ClearQueue done [17:51:18]KKMCreateOFDPacket [17:51:18]OFDProtocolAddRootSTLVToBuf [17:51:18]FM_MakeSignedData [17:51:18]FM_MakeSignedData [17:51:18]SAM_PROTO_SignData [17:51:18]wFMCommunicate request_size=4 [17:51:18]MH_SAM_APDU [17:51:18]CAPDU: 80 0D 01 02 [17:51:18]Write to MH i2c: E2 08 00 B1 0A 80 0D 01 02 00 00 00 00 34 [17:51:18]Write i2c OK [17:51:18]MH_I2C_Read... [17:51:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:51:18]Read from MH i2c: E2 [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: E2 03 00 [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: E2 03 00 B1 0A 00 90 00 2F [17:51:18]RAPDU: 90 00 [17:51:18]wFMCommunicate OK [17:51:18]wFMCommunicate request_size=255 [17:51:18]MH_SAM_APDU [17:51:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 15 43 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 63 0F 01 00 35 04 06 00 6C [17:51:18]Write to MH i2c: E2 02 01 B2 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 15 43 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 63 0F 01 00 35 04 06 00 6C 00 00 70 [17:51:18]Write i2c OK [17:51:18]MH_I2C_Read... [17:51:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:18]Read from MH i2c: E2 [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: E2 03 00 [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: E2 03 00 B2 0A 00 90 00 30 [17:51:18]RAPDU: 90 00 [17:51:18]wFMCommunicate OK [17:51:18]wFMCommunicate request_size=10 [17:51:18]MH_SAM_APDU [17:51:18]CAPDU: 80 0D 02 02 05 13 97 9A 76 34 [17:51:18]Write to MH i2c: E2 0D 00 B3 0A 80 0D 02 02 05 00 13 97 9A 76 34 00 00 2F [17:51:18]Write i2c OK [17:51:18]MH_I2C_Read... [17:51:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:18]Read from MH i2c: E2 [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: E2 03 00 [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: E2 03 00 B3 0A 00 90 00 31 [17:51:18]RAPDU: 90 00 [17:51:18]wFMCommunicate OK [17:51:18]wFMCommunicate request_size=4 [17:51:18]MH_SAM_APDU [17:51:18]CAPDU: 80 0D 03 02 [17:51:18]Write to MH i2c: E2 08 00 B4 0A 80 0D 03 02 00 00 00 00 39 [17:51:18]Write i2c OK [17:51:18]MH_I2C_Read... [17:51:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:51:18]Read from MH i2c: E2 [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: E2 0B 00 [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: E2 0B 00 B4 0A 00 4A 18 D0 58 09 E2 D1 29 90 00 A9 [17:51:18]RAPDU: 4A 18 D0 58 09 E2 D1 29 90 00 [17:51:18]wFMCommunicate OK [17:51:18]SAM_PROTO_SignData done [17:51:18]FM_MakeSignedData done [17:51:18]CreateOFDProtocolMessage [17:51:18]wFMCommunicate request_size=4 [17:51:18]MH_SAM_APDU [17:51:18]CAPDU: 80 11 00 00 [17:51:18]Write to MH i2c: E2 08 00 B5 0A 80 11 00 00 00 00 00 00 39 [17:51:18]Write i2c OK [17:51:18]MH_I2C_Read... [17:51:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:18]Read from MH i2c: E2 [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: E2 17 00 [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: E2 17 00 B5 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8B [17:51:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:51:18]wFMCommunicate OK [17:51:18]CreateOFDProtocolMessage done [17:51:18]OFDSenderStorePacket 69475 [17:51:18]StoreOFDPacket docnum=69475 [17:51:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A8 39 07 01 F3 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 15 43 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 63 0F 01 00 35 04 06 00 6C 13 97 9A 76 34 4A 18 D0 58 09 E2 D1 29 [17:51:18]CheckFolder [17:51:18]dirname=/storage/ofd_packets [17:51:18]CheckFolder done [17:51:18]ProducePacketName [17:51:18]name=ofd_packets/00069475 [17:51:18]NVStorageSaveData ofd_packets/00069475 [17:51:18]File name is /storage/ofd_packets/00069475 [17:51:18]Write 301 bytes [17:51:18]NVStorageSaveData done [17:51:18]OFDSenderStorePacket done [17:51:18]KKMCreateOFDPacket done [17:51:18]NVStorageSaveData kkm_last_timestamp [17:51:18]File name is /storage/kkm_last_timestamp [17:51:18]Write 4 bytes [17:51:18]NVStorageSaveData done [17:51:18]ExternCall_PrintAddStr [17:51:18]wPrintStart [17:51:18]Write to MH i2c: 01 00 00 B6 0A C0 [17:51:18]Write i2c OK [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: 01 [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: 01 07 00 [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: 01 07 00 B6 0A 00 00 00 00 00 FF 0F D5 [17:51:18]RasterBufferAndPrint [17:51:18]line Счет N : (1)2885208 [17:51:18]line ИНН: 02508201610067 [17:51:18]line Контрольно-Кассовый Чек [17:51:18]line ПРОДАЖА [17:51:18]line ТРК (МРК, ГНК) : 13 [17:51:18]line Товар: 2710124500 [17:51:18]line Аи-95-К-5 [17:51:18]line 26.960 * 74.20 [17:51:18]line = 2000.43 [17:51:18]line НДС 12% НСП 1% [17:51:18]line > о реализуемом товаре [17:51:18]line ИТОГО: 2000.43 [17:51:18]line НСП 1% : 17.70 [17:51:18]line НДС 12% : 212.43 [17:51:18]line Наличными: 0.00 [17:51:18]line Безнал.: 2000.43 [17:51:18]line Место: АЗС № 85 "Партнер Нефть" [17:51:18]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:51:18]line СНО: Общий режим [17:51:18]line Чек 320 20.10.2024 17:51 [17:51:18]line Смена: 193 ФФД: 1.0 [17:51:18]line ЗНМ: 0300000167 [17:51:18]line РНМ: 0000000000156251 [17:51:18]line Версия ККМ: v1.0 [17:51:18]line Платежная система: Mbank [17:51:18]line ФМ: 0000000000963346 [17:51:18]line ФД: 69475 [17:51:18]line ФПД: 118831403660852 [17:51:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T175117&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69475&fm=118831403660852&tin=02508201610067®Number=0000000000156251&sum=200043 [17:51:18]OFD Sender: Processing packet 69475 [packets to send 18, broken 17] [17:51:18]ProducePacketName [17:51:18]name=ofd_packets/00069475 [17:51:18]OFD Sender: To server: pG, [17:51:18]CommunicateWithHost lk.salyk.kg:30040 [17:51:18]ConnectInit lk.salyk.kg [17:51:18]written 0, free lines is 4095 [17:51:18]Connected sock=10 [17:51:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A8 39 07 01 F3 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 15 43 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 63 0F 01 00 35 04 06 00 6C 13 97 9A 76 34 4A 18 D0 58 09 E2 D1 29 [17:51:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 64 F9 47 00 CF 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 63 0F 01 00 F4 03 04 00 BB EC 14 67 B6 04 01 00 00 85 24 B5 0C 4F DB 39 33 [17:51:19]CommunicateWithHost err = 0 [17:51:19]CheckOFDResponse [17:51:19]1017 (14) - 77093643461234 [17:51:19]1041 (16) - 0000000000963346 [17:51:19]1040 (4) - 69475 [17:51:19]1012 (4) - 20.10.2024 11:42 [17:51:19]1206 (1) - 0 [17:51:19]OFD Sender: Remove packet 69475 [17:51:19]ProducePacketName [17:51:19]name=ofd_packets/00069475 [17:51:19]NVStorageDeleteData [17:51:19]Write to MH i2c: 01 00 00 DF 0A E9 [17:51:19]Write i2c OK [17:51:19]MH_I2C_Read... [17:51:19]Read from MH i2c: 01 [17:51:19]MH_I2C_Read... [17:51:19]Read from MH i2c: 01 07 00 [17:51:19]MH_I2C_Read... [17:51:19]Read from MH i2c: 01 07 00 DF 0A 00 00 00 00 00 24 0D 21 [17:51:19]RasterBufferAndPrint [17:51:19]line [17:51:19]line [17:51:19]line [17:51:19]line [17:51:19]line [17:51:19]written 0, free lines is 3371 [17:51:19]MH_Cut [17:51:19]Write to MH i2c: D1 01 00 E6 0A 01 C2 [17:51:19]Write i2c OK [17:51:19]MH_I2C_Read... [17:51:19]Read from MH i2c: D1 [17:51:19]MH_I2C_Read... [17:51:19]Read from MH i2c: D1 01 00 [17:51:19]MH_I2C_Read... [17:51:19]Read from MH i2c: D1 01 00 E6 0A 00 C1 [17:51:19]Write to MH i2c: 01 00 00 E7 0A F1 [17:51:19]Write i2c OK [17:51:19]MH_I2C_Read... [17:51:19]OFD Sender: No OFD packet to send [17:51:19]*** Cut start [17:51:19]*** Partial cut [17:51:19]*** CUTSNS_PIN = 1 [17:51:20]*** CUTSNS_PIN = 0 [17:51:20]*** Brake cut motor [17:51:20]Read from MH i2c: 01 [17:51:20]MH_I2C_Read... [17:51:20]*** Stop cut motor [17:51:20]*** Cut end [17:51:20]Read from MH i2c: 01 07 00 [17:51:20]MH_I2C_Read... [17:51:20]Read from MH i2c: 01 07 00 E7 0A 00 00 00 00 00 FF 0F 06 [17:51:20]process_action close_receipt done [17:51:20]requested_data is exist [17:51:20]produce_requested_data [17:51:20]requested_item fm.sn is exist - process it [17:51:20]wFMCommunicate request_size=4 [17:51:20]MH_SAM_APDU [17:51:20]CAPDU: 80 11 00 00 [17:51:20]Write to MH i2c: E2 08 00 E8 0A 80 11 00 00 00 00 00 00 6C [17:51:20]Write i2c OK [17:51:20]MH_I2C_Read... [17:51:20]Read from MH i2c: E2 [17:51:20]MH_I2C_Read... [17:51:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:20]Read from MH i2c: E2 17 00 [17:51:20]MH_I2C_Read... [17:51:20]Read from MH i2c: E2 17 00 E8 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BE [17:51:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:51:20]wFMCommunicate OK [17:51:20]requested_item fd.num is exist - process it [17:51:20]SAM_PROTO_GetFieldsCounters [17:51:20]wFMCommunicate request_size=4 [17:51:20]MH_SAM_APDU [17:51:20]CAPDU: 80 13 00 00 [17:51:20]Write to MH i2c: E2 08 00 E9 0A 80 13 00 00 00 00 00 00 6F [17:51:20]Write i2c OK [17:51:20]MH_I2C_Read... [17:51:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:51:20]Read from MH i2c: E2 [17:51:20]MH_I2C_Read... [17:51:20]Read from MH i2c: E2 62 00 [17:51:20]MH_I2C_Read... [17:51:20]Read from MH i2c: E2 62 00 E9 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 63 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 81 [17:51:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 63 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:51:20]wFMCommunicate OK [17:51:20]SAM_PROTO_GetFieldsCounters done [17:51:20]requested_item shift.num is exist - process it [17:51:20]requested_item shift.opened is exist - process it [17:51:20]req_shift_opened [17:51:20]FM_GetShiftState [17:51:20]SAM_PROTO_GetShiftState [17:51:20]wFMCommunicate request_size=4 [17:51:20]MH_SAM_APDU [17:51:20]CAPDU: 80 13 01 00 [17:51:20]Write to MH i2c: E2 08 00 EA 0A 80 13 01 00 00 00 00 00 71 [17:51:20]Write i2c OK [17:51:20]MH_I2C_Read... [17:51:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:20]Read from MH i2c: E2 [17:51:20]MH_I2C_Read... [17:51:20]Read from MH i2c: E2 0E 00 [17:51:20]MH_I2C_Read... [17:51:20]Read from MH i2c: E2 0E 00 EA 0A 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 77 [17:51:20]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:51:20]wFMCommunicate OK [17:51:20]SAM_PROTO_GetShiftState done [17:51:20]FM_GetShiftState done [17:51:20]req_shift_opened done [17:51:20]requested_item shift.open_date is exist - process it [17:51:20]req_shift_open_date [17:51:20]req_shift_open_date done [17:51:20]produce_requested_data done [17:51:20]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69475,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [17:51:20]process_action_free close_receipt [17:51:20]json_value_free [17:51:20]json_value_free done [17:51:20]process_json_proto returns [17:51:20]Send response to host [17:51:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69475,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [17:51:20]free response buf [17:51:20]execute_script done [17:51:20]execute_script returns [17:51:20]free content buf [17:51:20]Sock 8.Close socket [17:51:20]Sock 8.Thread stoped [17:51:24]OFD Sender: No OFD packet to send [17:51:29]OFD Sender: No OFD packet to send [17:51:34]OFD Sender: No OFD packet to send [17:51:39]OFD Sender: No OFD packet to send [17:51:44]OFD Sender: No OFD packet to send [17:51:45]accept exits with 9 [17:51:45]New connection [17:51:45]New thread 3067096420 created [17:51:45]Thread 3067239780 joined [17:51:45]Waiting for new connection... [17:51:45] Sock 9.Parse request [17:51:45]Sock 9.Check first char [17:51:45]Sock 9.First char is OK [17:51:45]request: POST /json_proto HTTP/1.0 [17:51:45]Method: POST [17:51:45]URL: /json_proto [17:51:45]Method is POST - this is cgi request [17:51:45]url: /json_proto [17:51:45]query_string will be loaded in cgi processing [17:51:45]execute_cgi json_proto POST (null) [17:51:45]execute_cgi path=json_proto method=POST [17:51:45]POST find Content-Length [17:51:45]Host: 172.17.50.3:8080 [17:51:45]Content-Length: 793 [17:51:45]Content-Type: application/json [17:51:45] [17:51:45]POST finish read [17:51:45]Found Content-Length = 793 [17:51:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\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\u000A68686", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:45]execute_script... [17:51: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)2885210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\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\u000A68686", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:45]POST & json_proto [17:51:45]process_json_proto [17:51:45]json parsed OK: [17:51:45]protocol is kg_v1.0 [17:51:45]action value=close_receipt [17:51:45]process_action close_receipt [17:51:45]cmd_close_receipt [17:51:45]MH_GetDate [17:51:45]Write to MH i2c: F0 00 00 EB 0A E4 [17:51:45]Write i2c OK [17:51:45]MH_I2C_Read... [17:51:45]Read from MH i2c: F0 [17:51:45]MH_I2C_Read... [17:51:45]Read from MH i2c: F0 09 00 [17:51:45]MH_I2C_Read... [17:51:45]Read from MH i2c: F0 09 00 EB 0A 00 32 43 15 67 6B 98 1E 66 65 [17:51:45]GetLastDocTimeStamp 1729446677 [17:51:45]current date 1729446706 [17:51:45]FM_GetShiftState [17:51:45]SAM_PROTO_GetShiftState [17:51:45]wFMCommunicate request_size=4 [17:51:45]MH_SAM_APDU [17:51:45]CAPDU: 80 13 01 00 [17:51:45]Write to MH i2c: E2 08 00 EC 0A 80 13 01 00 00 00 00 00 73 [17:51:45]Write i2c OK [17:51:45]MH_I2C_Read... [17:51:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:45]Read from MH i2c: E2 [17:51:45]MH_I2C_Read... [17:51:45]Read from MH i2c: E2 0E 00 [17:51:45]MH_I2C_Read... [17:51:45]Read from MH i2c: E2 0E 00 EC 0A 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 79 [17:51:45]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:51:45]wFMCommunicate OK [17:51:45]SAM_PROTO_GetShiftState done [17:51:45]FM_GetShiftState done [17:51:45]opened in 1729383220 [17:51:45]opened+sec_in_day 1729469620 [17:51:45]quantity*price = 0 [17:51:45]sum+1 = 1 [17:51:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 321 20.10.2024 17:51 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливная Карта 68686 ФМ: 0000000000963346 ФД: 69476 ФПД: 167270339714447 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T175146&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69476&fm=167270339714447&tin=02508201610067®Number=0000000000156251&sum=0 [17:51:46]StoreToDocumentArchive [17:51:46]shift 193 fd 69476 [17:51:46]save to /storage/0193/doc_00069476 [17:51:46]save last doc name /storage/0193/doc_00069476 to /storage/kkm_last_doc_name [17:51:46]save OK [17:51:46]Clear old archive folders... [17:51:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:51:46]tlvbuf is 00D2B740 [17:51:46]SAM_PROTO_ClearQueue [17:51:46]wFMCommunicate request_size=4 [17:51:46]MH_SAM_APDU [17:51:46]CAPDU: 80 09 00 00 [17:51:46]Write to MH i2c: E2 08 00 F9 0A 80 09 00 00 00 00 00 00 75 [17:51:46]Write i2c OK [17:51:46]MH_I2C_Read... [17:51:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:51:47]Read from MH i2c: E2 [17:51:47]MH_I2C_Read... [17:51:47]Read from MH i2c: E2 03 00 [17:51:47]MH_I2C_Read... [17:51:47]Read from MH i2c: E2 03 00 F9 0A 00 90 00 77 [17:51:47]RAPDU: 90 00 [17:51:47]wFMCommunicate OK [17:51:47]SAM_PROTO_ClearQueue done [17:51:47]KKMCreateOFDPacket [17:51:47]OFDProtocolAddRootSTLVToBuf [17:51:47]FM_MakeSignedData [17:51:47]FM_MakeSignedData [17:51:47]SAM_PROTO_SignData [17:51:47]wFMCommunicate request_size=4 [17:51:47]MH_SAM_APDU [17:51:47]CAPDU: 80 0D 01 02 [17:51:47]Write to MH i2c: E2 08 00 FA 0A 80 0D 01 02 00 00 00 00 7D [17:51:47]Write i2c OK [17:51:47]MH_I2C_Read... [17:51:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:51:47]Read from MH i2c: E2 [17:51:47]MH_I2C_Read... [17:51:47]Read from MH i2c: E2 03 00 [17:51:47]MH_I2C_Read... [17:51:47]Read from MH i2c: E2 03 00 FA 0A 00 90 00 78 [17:51:47]RAPDU: 90 00 [17:51:47]wFMCommunicate OK [17:51:47]wFMCommunicate request_size=255 [17:51:47]MH_SAM_APDU [17:51:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 41 01 00 00 F4 03 04 00 32 43 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 64 0F 01 00 35 04 06 00 98 [17:51:47]Write to MH i2c: E2 02 01 FB 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 01 00 00 F4 03 04 00 32 43 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 64 0F 01 00 35 04 06 00 98 00 00 B8 [17:51:47]Write i2c OK [17:51:47]MH_I2C_Read... [17:51:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:47]Read from MH i2c: E2 [17:51:47]MH_I2C_Read... [17:51:47]Read from MH i2c: E2 03 00 [17:51:47]MH_I2C_Read... [17:51:47]Read from MH i2c: E2 03 00 FB 0A 00 90 00 79 [17:51:47]RAPDU: 90 00 [17:51:47]wFMCommunicate OK [17:51:47]wFMCommunicate request_size=10 [17:51:47]MH_SAM_APDU [17:51:47]CAPDU: 80 0D 02 02 05 21 A9 2E 1D 8F [17:51:47]Write to MH i2c: E2 0D 00 FC 0A 80 0D 02 02 05 00 21 A9 2E 1D 8F 00 00 2E [17:51:47]Write i2c OK [17:51:47]MH_I2C_Read... [17:51:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:47]Read from MH i2c: E2 [17:51:47]MH_I2C_Read... [17:51:47]Read from MH i2c: E2 03 00 [17:51:47]MH_I2C_Read... [17:51:47]Read from MH i2c: E2 03 00 FC 0A 00 90 00 7A [17:51:47]RAPDU: 90 00 [17:51:47]wFMCommunicate OK [17:51:47]wFMCommunicate request_size=4 [17:51:47]MH_SAM_APDU [17:51:47]CAPDU: 80 0D 03 02 [17:51:47]Write to MH i2c: E2 08 00 FD 0A 80 0D 03 02 00 00 00 00 82 [17:51:47]Write i2c OK [17:51:47]MH_I2C_Read... [17:51:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:51:47]Read from MH i2c: E2 [17:51:47]MH_I2C_Read... [17:51:47]Read from MH i2c: E2 0B 00 [17:51:47]MH_I2C_Read... [17:51:47]Read from MH i2c: E2 0B 00 FD 0A 00 DC E2 B7 42 AE B5 51 86 90 00 74 [17:51:47]RAPDU: DC E2 B7 42 AE B5 51 86 90 00 [17:51:47]wFMCommunicate OK [17:51:47]SAM_PROTO_SignData done [17:51:47]FM_MakeSignedData done [17:51:47]CreateOFDProtocolMessage [17:51:47]wFMCommunicate request_size=4 [17:51:47]MH_SAM_APDU [17:51:47]CAPDU: 80 11 00 00 [17:51:47]Write to MH i2c: E2 08 00 FE 0A 80 11 00 00 00 00 00 00 82 [17:51:47]Write i2c OK [17:51:47]MH_I2C_Read... [17:51:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:47]Read from MH i2c: E2 [17:51:47]MH_I2C_Read... [17:51:47]Read from MH i2c: E2 17 00 [17:51:47]MH_I2C_Read... [17:51:47]Read from MH i2c: E2 17 00 FE 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D4 [17:51:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:51:47]wFMCommunicate OK [17:51:47]CreateOFDProtocolMessage done [17:51:47]OFDSenderStorePacket 69476 [17:51:47]StoreOFDPacket docnum=69476 [17:51:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 84 1A 07 01 CB DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 41 01 00 00 F4 03 04 00 32 43 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 64 0F 01 00 35 04 06 00 98 21 A9 2E 1D 8F DC E2 B7 42 AE B5 51 86 [17:51:47]CheckFolder [17:51:47]dirname=/storage/ofd_packets [17:51:47]CheckFolder done [17:51:47]ProducePacketName [17:51:47]name=ofd_packets/00069476 [17:51:47]NVStorageSaveData ofd_packets/00069476 [17:51:47]File name is /storage/ofd_packets/00069476 [17:51:47]Write 301 bytes [17:51:47]NVStorageSaveData done [17:51:47]OFDSenderStorePacket done [17:51:47]KKMCreateOFDPacket done [17:51:47]NVStorageSaveData kkm_last_timestamp [17:51:47]File name is /storage/kkm_last_timestamp [17:51:47]Write 4 bytes [17:51:47]NVStorageSaveData done [17:51:47]ExternCall_PrintAddStr [17:51:47]wPrintStart [17:51:47]Write to MH i2c: 01 00 00 FF 0A 09 [17:51:47]Write i2c OK [17:51:47]MH_I2C_Read... [17:51:47]Read from MH i2c: 01 [17:51:47]MH_I2C_Read... [17:51:47]Read from MH i2c: 01 07 00 [17:51:47]MH_I2C_Read... [17:51:47]Read from MH i2c: 01 07 00 FF 0A 00 00 00 00 00 FF 0F 1E [17:51:47]RasterBufferAndPrint [17:51:47]line Счет N : (1)2885210 [17:51:47]line ИНН: 02508201610067 [17:51:47]line Контрольно-Кассовый Чек [17:51:47]line ПРОДАЖА [17:51:47]line ТРК (МРК, ГНК) : 32 [17:51:47]line Товар: 2710124130 [17:51:47]line Аи-92-К-5 [17:51:47]line 10.000 * 0.00 [17:51:47]line = 0.00 [17:51:47]line НДС 12% НСП 1% [17:51:47]line > о реализуемом товаре [17:51:47]line ИТОГО: 0.00 [17:51:47]line НСП 1% : 0.00 [17:51:47]line НДС 12% : 0.00 [17:51:47]line Наличными: 0.00 [17:51:47]line Безнал.: 0.00 [17:51:47]line Место: АЗС № 85 "Партнер Нефть" [17:51:47]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:51:47]line СНО: Общий режим [17:51:47]line Чек 321 20.10.2024 17:51 [17:51:47]line Смена: 193 ФФД: 1.0 [17:51:47]line ЗНМ: 0300000167 [17:51:47]line РНМ: 0000000000156251 [17:51:47]line Версия ККМ: v1.0 [17:51:47]line Талоны: Топливная Карта [17:51:47]line 68686 [17:51:47]line ФМ: 0000000000963346 [17:51:47]line ФД: 69476 [17:51:47]line ФПД: 167270339714447 [17:51:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T175146&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69476&fm=167270339714447&tin=02508201610067®Number=0000000000156251&sum=0 [17:51:47]OFD Sender: Processing packet 69476 [packets to send 18, broken 17] [17:51:47]ProducePacketName [17:51:47]name=ofd_packets/00069476 [17:51:47]OFD Sender: To server: pG, [17:51:47]CommunicateWithHost lk.salyk.kg:30040 [17:51:47]ConnectInit lk.salyk.kg [17:51:47]written 0, free lines is 4095 [17:51:47]Connected sock=10 [17:51:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 84 1A 07 01 CB DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 41 01 00 00 F4 03 04 00 32 43 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 64 0F 01 00 35 04 06 00 98 21 A9 2E 1D 8F DC E2 B7 42 AE B5 51 86 [17:51:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 55 4C 47 00 81 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 64 0F 01 00 F4 03 04 00 D8 EC 14 67 B6 04 01 00 00 AA 7D 3B 7E 4D 01 76 A1 [17:51:48]CommunicateWithHost err = 0 [17:51:48]CheckOFDResponse [17:51:48]1017 (14) - 77093643461234 [17:51:48]1041 (16) - 0000000000963346 [17:51:48]1040 (4) - 69476 [17:51:48]1012 (4) - 20.10.2024 11:43 [17:51:48]1206 (1) - 0 [17:51:48]OFD Sender: Remove packet 69476 [17:51:48]ProducePacketName [17:51:48]name=ofd_packets/00069476 [17:51:48]NVStorageDeleteData [17:51:48]Write to MH i2c: 01 00 00 29 0B 34 [17:51:48]Write i2c OK [17:51:48]MH_I2C_Read... [17:51:48]Read from MH i2c: 01 [17:51:48]MH_I2C_Read... [17:51:48]Read from MH i2c: 01 07 00 [17:51:48]MH_I2C_Read... [17:51:48]Read from MH i2c: 01 07 00 29 0B 00 00 00 00 00 02 0D 4A [17:51:48]RasterBufferAndPrint [17:51:48]line [17:51:48]line [17:51:48]line [17:51:48]line [17:51:48]line [17:51:48]written 0, free lines is 3337 [17:51:48]MH_Cut [17:51:48]Write to MH i2c: D1 01 00 30 0B 01 0D [17:51:48]Write i2c OK [17:51:48]MH_I2C_Read... [17:51:48]Read from MH i2c: D1 [17:51:48]MH_I2C_Read... [17:51:48]Read from MH i2c: D1 01 00 [17:51:48]MH_I2C_Read... [17:51:48]Read from MH i2c: D1 01 00 30 0B 00 0C [17:51:48]Write to MH i2c: 01 00 00 31 0B 3C [17:51:48]Write i2c OK [17:51:48]MH_I2C_Read... [17:51:48]OFD Sender: No OFD packet to send [17:51:48]*** Cut start [17:51:48]*** Partial cut [17:51:48]*** CUTSNS_PIN = 1 [17:51:49]*** CUTSNS_PIN = 0 [17:51:49]*** Brake cut motor [17:51:49]Read from MH i2c: 01 [17:51:49]MH_I2C_Read... [17:51:49]*** Stop cut motor [17:51:49]*** Cut end [17:51:49]Read from MH i2c: 01 07 00 [17:51:49]MH_I2C_Read... [17:51:49]Read from MH i2c: 01 07 00 31 0B 00 00 00 00 00 FF 0F 51 [17:51:49]process_action close_receipt done [17:51:49]requested_data is exist [17:51:49]produce_requested_data [17:51:49]requested_item fm.sn is exist - process it [17:51:49]wFMCommunicate request_size=4 [17:51:49]MH_SAM_APDU [17:51:49]CAPDU: 80 11 00 00 [17:51:49]Write to MH i2c: E2 08 00 32 0B 80 11 00 00 00 00 00 00 B7 [17:51:49]Write i2c OK [17:51:49]MH_I2C_Read... [17:51:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:49]Read from MH i2c: E2 [17:51:49]MH_I2C_Read... [17:51:49]Read from MH i2c: E2 17 00 [17:51:49]MH_I2C_Read... [17:51:49]Read from MH i2c: E2 17 00 32 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 09 [17:51:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:51:49]wFMCommunicate OK [17:51:49]requested_item fd.num is exist - process it [17:51:49]SAM_PROTO_GetFieldsCounters [17:51:49]wFMCommunicate request_size=4 [17:51:49]MH_SAM_APDU [17:51:49]CAPDU: 80 13 00 00 [17:51:49]Write to MH i2c: E2 08 00 33 0B 80 13 00 00 00 00 00 00 BA [17:51:49]Write i2c OK [17:51:49]MH_I2C_Read... [17:51:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:51:49]Read from MH i2c: E2 [17:51:49]MH_I2C_Read... [17:51:49]Read from MH i2c: E2 62 00 [17:51:49]MH_I2C_Read... [17:51:49]Read from MH i2c: E2 62 00 33 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 64 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 D0 [17:51:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 64 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:51:49]wFMCommunicate OK [17:51:49]SAM_PROTO_GetFieldsCounters done [17:51:49]requested_item shift.num is exist - process it [17:51:49]requested_item shift.opened is exist - process it [17:51:49]req_shift_opened [17:51:49]FM_GetShiftState [17:51:49]SAM_PROTO_GetShiftState [17:51:49]wFMCommunicate request_size=4 [17:51:49]MH_SAM_APDU [17:51:49]CAPDU: 80 13 01 00 [17:51:49]Write to MH i2c: E2 08 00 34 0B 80 13 01 00 00 00 00 00 BC [17:51:49]Write i2c OK [17:51:49]MH_I2C_Read... [17:51:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:49]Read from MH i2c: E2 [17:51:49]MH_I2C_Read... [17:51:49]Read from MH i2c: E2 0E 00 [17:51:49]MH_I2C_Read... [17:51:49]Read from MH i2c: E2 0E 00 34 0B 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 C2 [17:51:49]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:51:49]wFMCommunicate OK [17:51:49]SAM_PROTO_GetShiftState done [17:51:49]FM_GetShiftState done [17:51:49]req_shift_opened done [17:51:49]requested_item shift.open_date is exist - process it [17:51:49]req_shift_open_date [17:51:49]req_shift_open_date done [17:51:49]produce_requested_data done [17:51:49]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69476,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [17:51:49]process_action_free close_receipt [17:51:49]json_value_free [17:51:49]json_value_free done [17:51:49]process_json_proto returns [17:51:49]Send response to host [17:51:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69476,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [17:51:49]free response buf [17:51:49]execute_script done [17:51:49]execute_script returns [17:51:49]free content buf [17:51:49]Sock 9.Close socket [17:51:49]Sock 9.Thread stoped [17:51:53]OFD Sender: No OFD packet to send [17:51:58]OFD Sender: No OFD packet to send [17:52:03]OFD Sender: No OFD packet to send [17:52:08]OFD Sender: No OFD packet to send [17:52:13]OFD Sender: No OFD packet to send [17:52:18]OFD Sender: No OFD packet to send [17:52:23]OFD Sender: No OFD packet to send [17:52:28]OFD Sender: No OFD packet to send [17:52:33]OFD Sender: No OFD packet to send [17:52:38]OFD Sender: No OFD packet to send [17:52:43]OFD Sender: No OFD packet to send [17:52:48]OFD Sender: No OFD packet to send [17:52:53]OFD Sender: No OFD packet to send [17:52:58]OFD Sender: No OFD packet to send [17:53:03]OFD Sender: No OFD packet to send [17:53:08]OFD Sender: No OFD packet to send [17:53:13]OFD Sender: No OFD packet to send [17:53:18]OFD Sender: No OFD packet to send [17:53:23]OFD Sender: No OFD packet to send [17:53:28]OFD Sender: No OFD packet to send [17:53:33]OFD Sender: No OFD packet to send [17:53:38]OFD Sender: No OFD packet to send [17:53:43]OFD Sender: No OFD packet to send [17:53:48]OFD Sender: No OFD packet to send [17:53:53]OFD Sender: No OFD packet to send [17:53:58]OFD Sender: No OFD packet to send [17:54:03]OFD Sender: No OFD packet to send [17:54:08]OFD Sender: No OFD packet to send [17:54:13]OFD Sender: No OFD packet to send [17:54:18]OFD Sender: No OFD packet to send [17:54:23]OFD Sender: No OFD packet to send [17:54:26]accept exits with 8 [17:54:26]New connection [17:54:26]New thread 3067239780 created [17:54:26]Thread 3067096420 joined [17:54:26]Waiting for new connection... [17:54:26] Sock 8.Parse request [17:54:26]Sock 8.Check first char [17:54:26]Sock 8.First char is OK [17:54:26]request: POST /json_proto HTTP/1.0 [17:54:26]Method: POST [17:54:26]URL: /json_proto [17:54:26]Method is POST - this is cgi request [17:54:26]url: /json_proto [17:54:26]query_string will be loaded in cgi processing [17:54:26]execute_cgi json_proto POST (null) [17:54:26]execute_cgi path=json_proto method=POST [17:54:26]POST find Content-Length [17:54:26]Host: 172.17.50.3:8080 [17:54:26]Content-Length: 678 [17:54:26]Content-Type: application/json [17:54:26] [17:54:26]POST finish read [17:54:26]Found Content-Length = 678 [17:54:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:26]execute_script... [17:54:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:26]POST & json_proto [17:54:26]process_json_proto [17:54:26]json parsed OK: [17:54:26]protocol is kg_v1.0 [17:54:26]action value=close_receipt [17:54:26]process_action close_receipt [17:54:26]cmd_close_receipt [17:54:26]MH_GetDate [17:54:26]Write to MH i2c: F0 00 00 35 0B 2F [17:54:26]Write i2c OK [17:54:26]MH_I2C_Read... [17:54:26]Read from MH i2c: F0 [17:54:26]MH_I2C_Read... [17:54:26]Read from MH i2c: F0 09 00 [17:54:26]MH_I2C_Read... [17:54:26]Read from MH i2c: F0 09 00 35 0B 00 D2 43 15 67 6B 98 1E 66 50 [17:54:26]GetLastDocTimeStamp 1729446706 [17:54:26]current date 1729446866 [17:54:26]FM_GetShiftState [17:54:26]SAM_PROTO_GetShiftState [17:54:26]wFMCommunicate request_size=4 [17:54:26]MH_SAM_APDU [17:54:26]CAPDU: 80 13 01 00 [17:54:26]Write to MH i2c: E2 08 00 36 0B 80 13 01 00 00 00 00 00 BE [17:54:26]Write i2c OK [17:54:26]MH_I2C_Read... [17:54:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:26]Read from MH i2c: E2 [17:54:26]MH_I2C_Read... [17:54:26]Read from MH i2c: E2 0E 00 [17:54:26]MH_I2C_Read... [17:54:26]Read from MH i2c: E2 0E 00 36 0B 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 C4 [17:54:26]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:54:26]wFMCommunicate OK [17:54:26]SAM_PROTO_GetShiftState done [17:54:26]FM_GetShiftState done [17:54:26]opened in 1729383220 [17:54:26]opened+sec_in_day 1729469620 [17:54:26]quantity*price = 50041 [17:54:26]sum+1 = 50042 [17:54:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 322 20.10.2024 17:54 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69477 ФПД: 222742212592925 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T175426&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69477&fm=222742212592925&tin=02508201610067®Number=0000000000156251&sum=50000 [17:54:27]StoreToDocumentArchive [17:54:27]shift 193 fd 69477 [17:54:27]save to /storage/0193/doc_00069477 [17:54:27]save last doc name /storage/0193/doc_00069477 to /storage/kkm_last_doc_name [17:54:27]save OK [17:54:27]Clear old archive folders... [17:54:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:54:27]tlvbuf is 00D21D80 [17:54:27]SAM_PROTO_ClearQueue [17:54:27]wFMCommunicate request_size=4 [17:54:27]MH_SAM_APDU [17:54:27]CAPDU: 80 09 00 00 [17:54:27]Write to MH i2c: E2 08 00 43 0B 80 09 00 00 00 00 00 00 C0 [17:54:27]Write i2c OK [17:54:27]MH_I2C_Read... [17:54:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:54:27]Read from MH i2c: E2 [17:54:27]MH_I2C_Read... [17:54:27]Read from MH i2c: E2 03 00 [17:54:27]MH_I2C_Read... [17:54:27]Read from MH i2c: E2 03 00 43 0B 00 90 00 C2 [17:54:27]RAPDU: 90 00 [17:54:27]wFMCommunicate OK [17:54:27]SAM_PROTO_ClearQueue done [17:54:27]KKMCreateOFDPacket [17:54:27]OFDProtocolAddRootSTLVToBuf [17:54:27]FM_MakeSignedData [17:54:27]FM_MakeSignedData [17:54:27]SAM_PROTO_SignData [17:54:27]wFMCommunicate request_size=4 [17:54:27]MH_SAM_APDU [17:54:27]CAPDU: 80 0D 01 02 [17:54:27]Write to MH i2c: E2 08 00 44 0B 80 0D 01 02 00 00 00 00 C8 [17:54:27]Write i2c OK [17:54:27]MH_I2C_Read... [17:54:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:54:27]Read from MH i2c: E2 [17:54:27]MH_I2C_Read... [17:54:27]Read from MH i2c: E2 03 00 [17:54:27]MH_I2C_Read... [17:54:27]Read from MH i2c: E2 03 00 44 0B 00 90 00 C3 [17:54:27]RAPDU: 90 00 [17:54:27]wFMCommunicate OK [17:54:27]wFMCommunicate request_size=255 [17:54:27]MH_SAM_APDU [17:54:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 D2 43 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 65 0F 01 00 35 04 06 00 CA [17:54:27]Write to MH i2c: E2 02 01 45 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 D2 43 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 65 0F 01 00 35 04 06 00 CA 00 00 25 [17:54:27]Write i2c OK [17:54:27]MH_I2C_Read... [17:54:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:27]Read from MH i2c: E2 [17:54:27]MH_I2C_Read... [17:54:27]Read from MH i2c: E2 03 00 [17:54:27]MH_I2C_Read... [17:54:27]Read from MH i2c: E2 03 00 45 0B 00 90 00 C4 [17:54:27]RAPDU: 90 00 [17:54:27]wFMCommunicate OK [17:54:27]wFMCommunicate request_size=10 [17:54:27]MH_SAM_APDU [17:54:27]CAPDU: 80 0D 02 02 05 95 36 75 45 1D [17:54:27]Write to MH i2c: E2 0D 00 46 0B 80 0D 02 02 05 00 95 36 75 45 1D 00 00 77 [17:54:27]Write i2c OK [17:54:27]MH_I2C_Read... [17:54:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:27]Read from MH i2c: E2 [17:54:27]MH_I2C_Read... [17:54:27]Read from MH i2c: E2 03 00 [17:54:27]MH_I2C_Read... [17:54:27]Read from MH i2c: E2 03 00 46 0B 00 90 00 C5 [17:54:27]RAPDU: 90 00 [17:54:27]wFMCommunicate OK [17:54:27]wFMCommunicate request_size=4 [17:54:27]MH_SAM_APDU [17:54:27]CAPDU: 80 0D 03 02 [17:54:27]Write to MH i2c: E2 08 00 47 0B 80 0D 03 02 00 00 00 00 CD [17:54:27]Write i2c OK [17:54:27]MH_I2C_Read... [17:54:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:54:27]Read from MH i2c: E2 [17:54:27]MH_I2C_Read... [17:54:27]Read from MH i2c: E2 0B 00 [17:54:27]MH_I2C_Read... [17:54:27]Read from MH i2c: E2 0B 00 47 0B 00 34 23 22 59 B2 11 94 19 90 00 10 [17:54:27]RAPDU: 34 23 22 59 B2 11 94 19 90 00 [17:54:27]wFMCommunicate OK [17:54:27]SAM_PROTO_SignData done [17:54:27]FM_MakeSignedData done [17:54:27]CreateOFDProtocolMessage [17:54:27]wFMCommunicate request_size=4 [17:54:27]MH_SAM_APDU [17:54:27]CAPDU: 80 11 00 00 [17:54:27]Write to MH i2c: E2 08 00 48 0B 80 11 00 00 00 00 00 00 CD [17:54:27]Write i2c OK [17:54:27]MH_I2C_Read... [17:54:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:27]Read from MH i2c: E2 [17:54:27]MH_I2C_Read... [17:54:27]Read from MH i2c: E2 17 00 [17:54:27]MH_I2C_Read... [17:54:27]Read from MH i2c: E2 17 00 48 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1F [17:54:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:54:27]wFMCommunicate OK [17:54:27]CreateOFDProtocolMessage done [17:54:27]OFDSenderStorePacket 69477 [17:54:27]StoreOFDPacket docnum=69477 [17:54:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 58 72 07 01 EC 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 D2 43 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 65 0F 01 00 35 04 06 00 CA 95 36 75 45 1D 34 23 22 59 B2 11 94 19 [17:54:27]CheckFolder [17:54:27]dirname=/storage/ofd_packets [17:54:27]CheckFolder done [17:54:27]ProducePacketName [17:54:27]name=ofd_packets/00069477 [17:54:27]NVStorageSaveData ofd_packets/00069477 [17:54:27]File name is /storage/ofd_packets/00069477 [17:54:27]Write 301 bytes [17:54:27]NVStorageSaveData done [17:54:27]OFDSenderStorePacket done [17:54:27]KKMCreateOFDPacket done [17:54:27]NVStorageSaveData kkm_last_timestamp [17:54:27]File name is /storage/kkm_last_timestamp [17:54:27]Write 4 bytes [17:54:27]NVStorageSaveData done [17:54:27]ExternCall_PrintAddStr [17:54:27]wPrintStart [17:54:27]Write to MH i2c: 01 00 00 49 0B 54 [17:54:27]Write i2c OK [17:54:27]MH_I2C_Read... [17:54:27]Read from MH i2c: 01 [17:54:27]MH_I2C_Read... [17:54:27]Read from MH i2c: 01 07 00 [17:54:27]MH_I2C_Read... [17:54:27]Read from MH i2c: 01 07 00 49 0B 00 00 00 00 00 FF 0F 69 [17:54:27]RasterBufferAndPrint [17:54:27]line Счет N : (1)2885211 [17:54:27]line ИНН: 02508201610067 [17:54:27]line Контрольно-Кассовый Чек [17:54:27]line ПРОДАЖА [17:54:27]line ТРК (МРК, ГНК) : 42 [17:54:27]line Товар: 2710124130 [17:54:27]line Аи-92-К-5 [17:54:27]line 7.480 * 66.90 [17:54:27]line = 500.41 [17:54:27]line НДС 12% НСП 1% [17:54:27]line > о реализуемом товаре [17:54:27]line ОКРУГЛЕНИЕ: -0.41 [17:54:27]line ИТОГО: 500.00 [17:54:27]line Внесено: 500.00 [17:54:27]line СДАЧА: 0.00 [17:54:27]line НСП 1% : 4.43 [17:54:27]line НДС 12% : 53.14 [17:54:27]line Наличными: 500.00 [17:54:27]line Безнал.: 0.00 [17:54:27]line Место: АЗС № 85 "Партнер Нефть" [17:54:27]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:54:27]line СНО: Общий режим [17:54:27]line Чек 322 20.10.2024 17:54 [17:54:27]line Смена: 193 ФФД: 1.0 [17:54:27]line ЗНМ: 0300000167 [17:54:27]line РНМ: 0000000000156251 [17:54:27]line Версия ККМ: v1.0 [17:54:27]line ФМ: 0000000000963346 [17:54:27]line ФД: 69477 [17:54:27]line ФПД: 222742212592925 [17:54:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T175426&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69477&fm=222742212592925&tin=02508201610067®Number=0000000000156251&sum=50000 [17:54:28]OFD Sender: Processing packet 69477 [packets to send 18, broken 17] [17:54:28]ProducePacketName [17:54:28]name=ofd_packets/00069477 [17:54:28]OFD Sender: To server: pG, [17:54:28]CommunicateWithHost lk.salyk.kg:30040 [17:54:28]ConnectInit lk.salyk.kg [17:54:28]written 0, free lines is 4095 [17:54:28]Connected sock=11 [17:54:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 58 72 07 01 EC 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 D2 43 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 65 0F 01 00 35 04 06 00 CA 95 36 75 45 1D 34 23 22 59 B2 11 94 19 [17:54:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 44 2F 47 00 5C 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 65 0F 01 00 F4 03 04 00 78 ED 14 67 B6 04 01 00 00 CA EB 30 A4 BB 09 4F AF [17:54:28]CommunicateWithHost err = 0 [17:54:28]CheckOFDResponse [17:54:28]1017 (14) - 77093643461234 [17:54:28]1041 (16) - 0000000000963346 [17:54:28]1040 (4) - 69477 [17:54:28]1012 (4) - 20.10.2024 11:46 [17:54:28]1206 (1) - 0 [17:54:28]OFD Sender: Remove packet 69477 [17:54:28]ProducePacketName [17:54:28]name=ofd_packets/00069477 [17:54:28]NVStorageDeleteData [17:54:28]Write to MH i2c: 01 00 00 74 0B 7F [17:54:28]Write i2c OK [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: 01 [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: 01 07 00 [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: 01 07 00 74 0B 00 00 00 00 00 E7 0C 79 [17:54:28]RasterBufferAndPrint [17:54:28]line [17:54:28]line [17:54:28]line [17:54:28]line [17:54:28]line [17:54:28]written 0, free lines is 3310 [17:54:28]MH_Cut [17:54:28]Write to MH i2c: D1 01 00 7B 0B 01 58 [17:54:28]Write i2c OK [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: D1 [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: D1 01 00 [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: D1 01 00 7B 0B 00 57 [17:54:28]Write to MH i2c: 01 00 00 7C 0B 87 [17:54:28]Write i2c OK [17:54:28]MH_I2C_Read... [17:54:28]OFD Sender: No OFD packet to send [17:54:29]*** Cut start [17:54:29]*** Partial cut [17:54:29]*** CUTSNS_PIN = 1 [17:54:29]*** CUTSNS_PIN = 0 [17:54:29]*** Brake cut motor [17:54:29]Read from MH i2c: 01 [17:54:29]MH_I2C_Read... [17:54:29]*** Stop cut motor [17:54:29]*** Cut end [17:54:29]Read from MH i2c: 01 07 00 [17:54:29]MH_I2C_Read... [17:54:29]Read from MH i2c: 01 07 00 7C 0B 00 00 00 00 00 FF 0F 9C [17:54:29]process_action close_receipt done [17:54:29]requested_data is exist [17:54:29]produce_requested_data [17:54:29]requested_item fm.sn is exist - process it [17:54:29]wFMCommunicate request_size=4 [17:54:29]MH_SAM_APDU [17:54:29]CAPDU: 80 11 00 00 [17:54:29]Write to MH i2c: E2 08 00 7D 0B 80 11 00 00 00 00 00 00 02 [17:54:29]Write i2c OK [17:54:29]MH_I2C_Read... [17:54:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:29]Read from MH i2c: E2 [17:54:29]MH_I2C_Read... [17:54:29]Read from MH i2c: E2 17 00 [17:54:29]MH_I2C_Read... [17:54:29]Read from MH i2c: E2 17 00 7D 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 54 [17:54:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:54:29]wFMCommunicate OK [17:54:29]requested_item fd.num is exist - process it [17:54:29]SAM_PROTO_GetFieldsCounters [17:54:29]wFMCommunicate request_size=4 [17:54:29]MH_SAM_APDU [17:54:29]CAPDU: 80 13 00 00 [17:54:29]Write to MH i2c: E2 08 00 7E 0B 80 13 00 00 00 00 00 00 05 [17:54:29]Write i2c OK [17:54:29]MH_I2C_Read... [17:54:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:54:29]Read from MH i2c: E2 [17:54:29]MH_I2C_Read... [17:54:29]Read from MH i2c: E2 62 00 [17:54:29]MH_I2C_Read... [17:54:29]Read from MH i2c: E2 62 00 7E 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 65 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 1F [17:54:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 65 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:54:29]wFMCommunicate OK [17:54:29]SAM_PROTO_GetFieldsCounters done [17:54:29]requested_item shift.num is exist - process it [17:54:29]requested_item shift.opened is exist - process it [17:54:29]req_shift_opened [17:54:29]FM_GetShiftState [17:54:29]SAM_PROTO_GetShiftState [17:54:29]wFMCommunicate request_size=4 [17:54:29]MH_SAM_APDU [17:54:29]CAPDU: 80 13 01 00 [17:54:29]Write to MH i2c: E2 08 00 7F 0B 80 13 01 00 00 00 00 00 07 [17:54:29]Write i2c OK [17:54:29]MH_I2C_Read... [17:54:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:30]Read from MH i2c: E2 [17:54:30]MH_I2C_Read... [17:54:30]Read from MH i2c: E2 0E 00 [17:54:30]MH_I2C_Read... [17:54:30]Read from MH i2c: E2 0E 00 7F 0B 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 0D [17:54:30]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:54:30]wFMCommunicate OK [17:54:30]SAM_PROTO_GetShiftState done [17:54:30]FM_GetShiftState done [17:54:30]req_shift_opened done [17:54:30]requested_item shift.open_date is exist - process it [17:54:30]req_shift_open_date [17:54:30]req_shift_open_date done [17:54:30]produce_requested_data done [17:54:30]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69477,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [17:54:30]process_action_free close_receipt [17:54:30]json_value_free [17:54:30]json_value_free done [17:54:30]process_json_proto returns [17:54:30]Send response to host [17:54:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69477,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [17:54:30]free response buf [17:54:30]execute_script done [17:54:30]execute_script returns [17:54:30]free content buf [17:54:30]Sock 8.Close socket [17:54:30]Sock 8.Thread stoped [17:54:33]OFD Sender: No OFD packet to send [17:54:38]OFD Sender: No OFD packet to send [17:54:43]OFD Sender: No OFD packet to send [17:54:48]OFD Sender: No OFD packet to send [17:54:53]OFD Sender: No OFD packet to send [17:54:58]OFD Sender: No OFD packet to send [17:55:03]OFD Sender: No OFD packet to send [17:55:08]OFD Sender: No OFD packet to send [17:55:13]OFD Sender: No OFD packet to send [17:55:18]OFD Sender: No OFD packet to send [17:55:23]OFD Sender: No OFD packet to send [17:55:28]OFD Sender: No OFD packet to send [17:55:33]OFD Sender: No OFD packet to send [17:55:38]OFD Sender: No OFD packet to send [17:55:43]OFD Sender: No OFD packet to send [17:55:48]OFD Sender: No OFD packet to send [17:55:53]OFD Sender: No OFD packet to send [17:55:58]OFD Sender: No OFD packet to send [17:56:03]OFD Sender: No OFD packet to send [17:56:08]OFD Sender: No OFD packet to send [17:56:13]OFD Sender: No OFD packet to send [17:56:18]OFD Sender: No OFD packet to send [17:56:23]OFD Sender: No OFD packet to send [17:56:28]OFD Sender: No OFD packet to send [17:56:33]OFD Sender: No OFD packet to send [17:56:38]OFD Sender: No OFD packet to send [17:56:43]OFD Sender: No OFD packet to send [17:56:48]OFD Sender: No OFD packet to send [17:56:53]OFD Sender: No OFD packet to send [17:56:58]OFD Sender: No OFD packet to send [17:57:03]OFD Sender: No OFD packet to send [17:57:08]OFD Sender: No OFD packet to send [17:57:13]OFD Sender: No OFD packet to send [17:57:18]OFD Sender: No OFD packet to send [17:57:23]OFD Sender: No OFD packet to send [17:57:24]accept exits with 9 [17:57:24]New connection [17:57:24]New thread 3067096420 created [17:57:24]Thread 3067239780 joined [17:57:24]Waiting for new connection... [17:57:24] Sock 9.Parse request [17:57:24]Sock 9.Check first char [17:57:24]Sock 9.First char is OK [17:57:24]request: POST /json_proto HTTP/1.0 [17:57:24]Method: POST [17:57:24]URL: /json_proto [17:57:24]Method is POST - this is cgi request [17:57:24]url: /json_proto [17:57:24]query_string will be loaded in cgi processing [17:57:24]execute_cgi json_proto POST (null) [17:57:24]execute_cgi path=json_proto method=POST [17:57:24]POST find Content-Length [17:57:24]Host: 172.17.50.3:8080 [17:57:24]Content-Length: 689 [17:57:24]Content-Type: application/json [17:57:24] [17:57:24]POST finish read [17:57:24]Found Content-Length = 689 [17:57:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:24]execute_script... [17:57: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)2885212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:24]POST & json_proto [17:57:24]process_json_proto [17:57:24]json parsed OK: [17:57:24]protocol is kg_v1.0 [17:57:24]action value=close_receipt [17:57:24]process_action close_receipt [17:57:24]cmd_close_receipt [17:57:24]MH_GetDate [17:57:24]Write to MH i2c: F0 00 00 80 0B 7A [17:57:24]Write i2c OK [17:57:24]MH_I2C_Read... [17:57:24]Read from MH i2c: F0 [17:57:24]MH_I2C_Read... [17:57:24]Read from MH i2c: F0 09 00 [17:57:24]MH_I2C_Read... [17:57:24]Read from MH i2c: F0 09 00 80 0B 00 85 44 15 67 6B 98 1E 66 4F [17:57:24]GetLastDocTimeStamp 1729446866 [17:57:24]current date 1729447045 [17:57:24]FM_GetShiftState [17:57:24]SAM_PROTO_GetShiftState [17:57:24]wFMCommunicate request_size=4 [17:57:24]MH_SAM_APDU [17:57:24]CAPDU: 80 13 01 00 [17:57:24]Write to MH i2c: E2 08 00 81 0B 80 13 01 00 00 00 00 00 09 [17:57:24]Write i2c OK [17:57:24]MH_I2C_Read... [17:57:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:24]Read from MH i2c: E2 [17:57:24]MH_I2C_Read... [17:57:24]Read from MH i2c: E2 0E 00 [17:57:24]MH_I2C_Read... [17:57:24]Read from MH i2c: E2 0E 00 81 0B 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 0F [17:57:24]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:57:24]wFMCommunicate OK [17:57:24]SAM_PROTO_GetShiftState done [17:57:24]FM_GetShiftState done [17:57:24]opened in 1729383220 [17:57:24]opened+sec_in_day 1729469620 [17:57:24]quantity*price = 150076 [17:57:24]sum+1 = 150078 [17:57:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 323 20.10.2024 17:57 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69478 ФПД: 97119693632828 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T175725&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69478&fm=97119693632828&tin=02508201610067®Number=0000000000156251&sum=150000 [17:57:25]StoreToDocumentArchive [17:57:25]shift 193 fd 69478 [17:57:25]save to /storage/0193/doc_00069478 [17:57:25]save last doc name /storage/0193/doc_00069478 to /storage/kkm_last_doc_name [17:57:25]save OK [17:57:25]Clear old archive folders... [17:57:25]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:57:25]tlvbuf is 00D22DC0 [17:57:25]SAM_PROTO_ClearQueue [17:57:25]wFMCommunicate request_size=4 [17:57:25]MH_SAM_APDU [17:57:25]CAPDU: 80 09 00 00 [17:57:25]Write to MH i2c: E2 08 00 8E 0B 80 09 00 00 00 00 00 00 0B [17:57:25]Write i2c OK [17:57:25]MH_I2C_Read... [17:57:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:57:25]Read from MH i2c: E2 [17:57:25]MH_I2C_Read... [17:57:25]Read from MH i2c: E2 03 00 [17:57:25]MH_I2C_Read... [17:57:25]Read from MH i2c: E2 03 00 8E 0B 00 90 00 0D [17:57:25]RAPDU: 90 00 [17:57:25]wFMCommunicate OK [17:57:25]SAM_PROTO_ClearQueue done [17:57:25]KKMCreateOFDPacket [17:57:25]OFDProtocolAddRootSTLVToBuf [17:57:25]FM_MakeSignedData [17:57:25]FM_MakeSignedData [17:57:25]SAM_PROTO_SignData [17:57:25]wFMCommunicate request_size=4 [17:57:25]MH_SAM_APDU [17:57:25]CAPDU: 80 0D 01 02 [17:57:25]Write to MH i2c: E2 08 00 8F 0B 80 0D 01 02 00 00 00 00 13 [17:57:25]Write i2c OK [17:57:25]MH_I2C_Read... [17:57:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:57:25]Read from MH i2c: E2 [17:57:25]MH_I2C_Read... [17:57:25]Read from MH i2c: E2 03 00 [17:57:25]MH_I2C_Read... [17:57:25]Read from MH i2c: E2 03 00 8F 0B 00 90 00 0E [17:57:25]RAPDU: 90 00 [17:57:25]wFMCommunicate OK [17:57:25]wFMCommunicate request_size=255 [17:57:25]MH_SAM_APDU [17:57:25]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 85 44 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 66 0F 01 [17:57:25]Write to MH i2c: E2 02 01 90 0B 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 85 44 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 66 0F 01 00 00 77 [17:57:25]Write i2c OK [17:57:25]MH_I2C_Read... [17:57:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:26]Read from MH i2c: E2 [17:57:26]MH_I2C_Read... [17:57:26]Read from MH i2c: E2 03 00 [17:57:26]MH_I2C_Read... [17:57:26]Read from MH i2c: E2 03 00 90 0B 00 90 00 0F [17:57:26]RAPDU: 90 00 [17:57:26]wFMCommunicate OK [17:57:26]wFMCommunicate request_size=16 [17:57:26]MH_SAM_APDU [17:57:26]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 58 54 70 D6 F5 3C [17:57:26]Write to MH i2c: E2 13 00 91 0B 80 0D 02 02 0B 00 00 35 04 06 00 58 54 70 D6 F5 3C 00 00 8E [17:57:26]Write i2c OK [17:57:26]MH_I2C_Read... [17:57:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:26]Read from MH i2c: E2 [17:57:26]MH_I2C_Read... [17:57:26]Read from MH i2c: E2 03 00 [17:57:26]MH_I2C_Read... [17:57:26]Read from MH i2c: E2 03 00 91 0B 00 90 00 10 [17:57:26]RAPDU: 90 00 [17:57:26]wFMCommunicate OK [17:57:26]wFMCommunicate request_size=4 [17:57:26]MH_SAM_APDU [17:57:26]CAPDU: 80 0D 03 02 [17:57:26]Write to MH i2c: E2 08 00 92 0B 80 0D 03 02 00 00 00 00 18 [17:57:26]Write i2c OK [17:57:26]MH_I2C_Read... [17:57:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:57:26]Read from MH i2c: E2 [17:57:26]MH_I2C_Read... [17:57:26]Read from MH i2c: E2 0B 00 [17:57:26]MH_I2C_Read... [17:57:26]Read from MH i2c: E2 0B 00 92 0B 00 46 F0 40 32 58 7C 94 E7 90 00 10 [17:57:26]RAPDU: 46 F0 40 32 58 7C 94 E7 90 00 [17:57:26]wFMCommunicate OK [17:57:26]SAM_PROTO_SignData done [17:57:26]FM_MakeSignedData done [17:57:26]CreateOFDProtocolMessage [17:57:26]wFMCommunicate request_size=4 [17:57:26]MH_SAM_APDU [17:57:26]CAPDU: 80 11 00 00 [17:57:26]Write to MH i2c: E2 08 00 93 0B 80 11 00 00 00 00 00 00 18 [17:57:26]Write i2c OK [17:57:26]MH_I2C_Read... [17:57:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:26]Read from MH i2c: E2 [17:57:26]MH_I2C_Read... [17:57:26]Read from MH i2c: E2 17 00 [17:57:26]MH_I2C_Read... [17:57:26]Read from MH i2c: E2 17 00 93 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6A [17:57:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:57:26]wFMCommunicate OK [17:57:26]CreateOFDProtocolMessage done [17:57:26]OFDSenderStorePacket 69478 [17:57:26]StoreOFDPacket docnum=69478 [17:57:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 A8 F1 0D 01 DD 0F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 85 44 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 66 0F 01 00 35 04 06 00 58 54 70 D6 F5 3C 46 F0 40 32 58 7C 94 E7 [17:57:26]CheckFolder [17:57:26]dirname=/storage/ofd_packets [17:57:26]CheckFolder done [17:57:26]ProducePacketName [17:57:26]name=ofd_packets/00069478 [17:57:26]NVStorageSaveData ofd_packets/00069478 [17:57:26]File name is /storage/ofd_packets/00069478 [17:57:26]Write 307 bytes [17:57:26]NVStorageSaveData done [17:57:26]OFDSenderStorePacket done [17:57:26]KKMCreateOFDPacket done [17:57:26]NVStorageSaveData kkm_last_timestamp [17:57:26]File name is /storage/kkm_last_timestamp [17:57:26]Write 4 bytes [17:57:26]NVStorageSaveData done [17:57:26]ExternCall_PrintAddStr [17:57:26]wPrintStart [17:57:26]Write to MH i2c: 01 00 00 94 0B 9F [17:57:26]Write i2c OK [17:57:26]MH_I2C_Read... [17:57:26]Read from MH i2c: 01 [17:57:26]MH_I2C_Read... [17:57:26]Read from MH i2c: 01 07 00 [17:57:26]MH_I2C_Read... [17:57:26]Read from MH i2c: 01 07 00 94 0B 00 00 00 00 00 FF 0F B4 [17:57:26]RasterBufferAndPrint [17:57:26]line Счет N : (1)2885212 [17:57:26]line ИНН: 02508201610067 [17:57:26]line Контрольно-Кассовый Чек [17:57:26]line ПРОДАЖА [17:57:26]line ТРК (МРК, ГНК) : 31 [17:57:26]line Товар: 2710194240 [17:57:26]line D-ENERGY Дт-К-2 [17:57:26]line 19.440 * 77.20 [17:57:26]line = 1500.77 [17:57:26]line НДС 12% НСП 1% [17:57:26]line > о реализуемом товаре [17:57:26]line ОКРУГЛЕНИЕ: -0.77 [17:57:26]line ИТОГО: 1500.00 [17:57:26]line Внесено: 1500.00 [17:57:26]line СДАЧА: 0.00 [17:57:26]line НСП 1% : 13.28 [17:57:26]line НДС 12% : 159.37 [17:57:26]line Наличными: 1500.00 [17:57:26]line Безнал.: 0.00 [17:57:26]line Место: АЗС № 85 "Партнер Нефть" [17:57:26]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [17:57:26]line СНО: Общий режим [17:57:26]line Чек 323 20.10.2024 17:57 [17:57:26]line Смена: 193 ФФД: 1.0 [17:57:26]line ЗНМ: 0300000167 [17:57:26]line РНМ: 0000000000156251 [17:57:26]line Версия ККМ: v1.0 [17:57:26]line ФМ: 0000000000963346 [17:57:26]line ФД: 69478 [17:57:26]line ФПД: 97119693632828 [17:57:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T175725&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69478&fm=97119693632828&tin=02508201610067®Number=0000000000156251&sum=150000 [17:57:26]OFD Sender: Processing packet 69478 [packets to send 18, broken 17] [17:57:26]ProducePacketName [17:57:26]name=ofd_packets/00069478 [17:57:26]OFD Sender: To server: pG, [17:57:26]CommunicateWithHost lk.salyk.kg:30040 [17:57:26]ConnectInit lk.salyk.kg [17:57:26]written 0, free lines is 4095 [17:57:26]Connected sock=10 [17:57:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 A8 F1 0D 01 DD 0F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 85 44 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 66 0F 01 00 35 04 06 00 58 54 70 D6 F5 3C 46 F0 40 32 58 7C 94 E7 [17:57:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 C0 F8 47 00 93 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 66 0F 01 00 F4 03 04 00 2B EE 14 67 B6 04 01 00 00 CE FA C9 D6 DA E3 20 17 [17:57:26]CommunicateWithHost err = 0 [17:57:26]CheckOFDResponse [17:57:26]1017 (14) - 77093643461234 [17:57:26]1041 (16) - 0000000000963346 [17:57:26]1040 (4) - 69478 [17:57:26]1012 (4) - 20.10.2024 11:48 [17:57:26]1206 (1) - 0 [17:57:26]OFD Sender: Remove packet 69478 [17:57:26]ProducePacketName [17:57:26]name=ofd_packets/00069478 [17:57:26]NVStorageDeleteData [17:57:26]Write to MH i2c: 01 00 00 BF 0B CA [17:57:26]Write i2c OK [17:57:26]MH_I2C_Read... [17:57:26]Read from MH i2c: 01 [17:57:26]MH_I2C_Read... [17:57:26]Read from MH i2c: 01 07 00 [17:57:26]MH_I2C_Read... [17:57:26]Read from MH i2c: 01 07 00 BF 0B 00 00 00 00 00 EF 0C CC [17:57:26]RasterBufferAndPrint [17:57:26]line [17:57:26]line [17:57:26]line [17:57:26]line [17:57:26]line [17:57:26]written 0, free lines is 3317 [17:57:26]MH_Cut [17:57:26]Write to MH i2c: D1 01 00 C6 0B 01 A3 [17:57:26]Write i2c OK [17:57:26]MH_I2C_Read... [17:57:26]Read from MH i2c: D1 [17:57:26]MH_I2C_Read... [17:57:26]Read from MH i2c: D1 01 00 [17:57:26]MH_I2C_Read... [17:57:26]Read from MH i2c: D1 01 00 C6 0B 00 A2 [17:57:26]Write to MH i2c: 01 00 00 C7 0B D2 [17:57:26]Write i2c OK [17:57:26]MH_I2C_Read... [17:57:27]OFD Sender: No OFD packet to send [17:57:27]*** Cut start [17:57:27]*** Partial cut [17:57:27]*** CUTSNS_PIN = 1 [17:57:27]*** CUTSNS_PIN = 0 [17:57:27]*** Brake cut motor [17:57:28]Read from MH i2c: 01 [17:57:28]MH_I2C_Read... [17:57:28]*** Stop cut motor [17:57:28]*** Cut end [17:57:28]Read from MH i2c: 01 07 00 [17:57:28]MH_I2C_Read... [17:57:28]Read from MH i2c: 01 07 00 C7 0B 00 00 00 00 00 FF 0F E7 [17:57:28]process_action close_receipt done [17:57:28]requested_data is exist [17:57:28]produce_requested_data [17:57:28]requested_item fm.sn is exist - process it [17:57:28]wFMCommunicate request_size=4 [17:57:28]MH_SAM_APDU [17:57:28]CAPDU: 80 11 00 00 [17:57:28]Write to MH i2c: E2 08 00 C8 0B 80 11 00 00 00 00 00 00 4D [17:57:28]Write i2c OK [17:57:28]MH_I2C_Read... [17:57:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:28]Read from MH i2c: E2 [17:57:28]MH_I2C_Read... [17:57:28]Read from MH i2c: E2 17 00 [17:57:28]MH_I2C_Read... [17:57:28]Read from MH i2c: E2 17 00 C8 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9F [17:57:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:57:28]wFMCommunicate OK [17:57:28]requested_item fd.num is exist - process it [17:57:28]SAM_PROTO_GetFieldsCounters [17:57:28]wFMCommunicate request_size=4 [17:57:28]MH_SAM_APDU [17:57:28]CAPDU: 80 13 00 00 [17:57:28]Write to MH i2c: E2 08 00 C9 0B 80 13 00 00 00 00 00 00 50 [17:57:28]Write i2c OK [17:57:28]MH_I2C_Read... [17:57:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:57:28]Read from MH i2c: E2 [17:57:28]MH_I2C_Read... [17:57:28]Read from MH i2c: E2 62 00 [17:57:28]MH_I2C_Read... [17:57:28]Read from MH i2c: E2 62 00 C9 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 66 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 6E [17:57:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 66 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:57:28]wFMCommunicate OK [17:57:28]SAM_PROTO_GetFieldsCounters done [17:57:28]requested_item shift.num is exist - process it [17:57:28]requested_item shift.opened is exist - process it [17:57:28]req_shift_opened [17:57:28]FM_GetShiftState [17:57:28]SAM_PROTO_GetShiftState [17:57:28]wFMCommunicate request_size=4 [17:57:28]MH_SAM_APDU [17:57:28]CAPDU: 80 13 01 00 [17:57:28]Write to MH i2c: E2 08 00 CA 0B 80 13 01 00 00 00 00 00 52 [17:57:28]Write i2c OK [17:57:28]MH_I2C_Read... [17:57:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:28]Read from MH i2c: E2 [17:57:28]MH_I2C_Read... [17:57:28]Read from MH i2c: E2 0E 00 [17:57:28]MH_I2C_Read... [17:57:28]Read from MH i2c: E2 0E 00 CA 0B 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 58 [17:57:28]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [17:57:28]wFMCommunicate OK [17:57:28]SAM_PROTO_GetShiftState done [17:57:28]FM_GetShiftState done [17:57:28]req_shift_opened done [17:57:28]requested_item shift.open_date is exist - process it [17:57:28]req_shift_open_date [17:57:28]req_shift_open_date done [17:57:28]produce_requested_data done [17:57:28]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69478,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [17:57:28]process_action_free close_receipt [17:57:28]json_value_free [17:57:28]json_value_free done [17:57:28]process_json_proto returns [17:57:28]Send response to host [17:57:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69478,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [17:57:28]free response buf [17:57:28]execute_script done [17:57:28]execute_script returns [17:57:28]free content buf [17:57:28]Sock 9.Close socket [17:57:28]Sock 9.Thread stoped [17:57:32]OFD Sender: No OFD packet to send [17:57:37]OFD Sender: No OFD packet to send [17:57:42]OFD Sender: No OFD packet to send [17:57:47]OFD Sender: No OFD packet to send [17:57:52]OFD Sender: No OFD packet to send [17:57:57]OFD Sender: No OFD packet to send [17:58:02]OFD Sender: No OFD packet to send [17:58:07]OFD Sender: No OFD packet to send [17:58:12]OFD Sender: No OFD packet to send [17:58:17]OFD Sender: No OFD packet to send [17:58:22]OFD Sender: No OFD packet to send [17:58:27]OFD Sender: No OFD packet to send [17:58:32]OFD Sender: No OFD packet to send [17:58:37]OFD Sender: No OFD packet to send [00:00:10]/dev/ttyS4 opened [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 08 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 AD [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: *** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]A0 *** [00:00:10]01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 5400000000572508 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 16166005+1713281131=1729447136 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33560623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 08 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 AE [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 50 00 FF FF 6F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 E1 44 15 67 6B 98 1E 66 27 [17:58:57]Current date/time: 20.10.2024 17:58 [17:58:57]FM_Init [17:58:57]wFMConnect [17:58:57]MH_SAM_On [17:58:57]Write to MH i2c: E0 00 00 08 00 E7 [17:58:57]Write i2c OK [17:58:57]MH_I2C_Read... [17:58:57]*** iso7816_init finished! [17:58:57]*** atr: [17:58:57]*** 0F 3B D5 18 FF 81 91 FE [17:58:57]*** 1F C3 80 73 C8 21 10 0A [17:58:57]*** 00 00 00 00 00 00 00 00 [17:58:57]*** 00 00 00 00 00 00 00 00 [17:58:57]*** 00 00 00 00 00 00 00 00 [17:58:57]*** 00 00 00 00 00 00 00 00 [17:58:57]*** 00 00 00 00 00 00 00 00 [17:58:57]*** 00 00 00 00 00 00 00 00 [17:58:57]Read from MH i2c: E0 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E0 10 00 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [17:58:57]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [17:58:57]wFMCommunicate request_size=10 [17:58:57]MH_SAM_APDU [17:58:57]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [17:58:57]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [17:58:57]Write i2c OK [17:58:57]MH_I2C_Read... [17:58:57]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [17:58:57]Read from MH i2c: E2 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 03 00 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [17:58:57]RAPDU: 90 00 [17:58:57]wFMCommunicate OK [17:58:57]wFMCommunicate request_size=4 [17:58:57]MH_SAM_APDU [17:58:57]CAPDU: 80 11 00 00 [17:58:57]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [17:58:57]Write i2c OK [17:58:57]MH_I2C_Read... [17:58:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:57]Read from MH i2c: E2 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 17 00 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D6 [17:58:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:58:57]wFMCommunicate OK [17:58:57]Detected FM SN is 0000000000963346 [17:58:57]Stored FM SN is 0000000000963346 [17:58:57]wFMCommunicate request_size=9 [17:58:57]MH_SAM_APDU [17:58:57]CAPDU: 80 16 00 00 04 0B 88 00 00 [17:58:57]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 0B 88 00 00 00 00 25 [17:58:57]Write i2c OK [17:58:57]MH_I2C_Read... [17:58:57]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [17:58:57]Read from MH i2c: E2 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 03 00 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [17:58:57]RAPDU: 90 00 [17:58:57]wFMCommunicate OK [17:58:57]FM PIN OK [17:58:57]wFMCommunicate request_size=8 [17:58:57]MH_SAM_APDU [17:58:57]CAPDU: 80 14 04 00 03 02 00 01 [17:58:57]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [17:58:57]Write i2c OK [17:58:57]MH_I2C_Read... [17:58:57]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [17:58:57]Read from MH i2c: E2 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 03 00 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [17:58:57]RAPDU: 90 00 [17:58:57]wFMCommunicate OK [17:58:57]wFMCommunicate request_size=13 [17:58:57]MH_SAM_APDU [17:58:57]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [17:58:57]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [17:58:57]Write i2c OK [17:58:57]MH_I2C_Read... [17:58:57]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [17:58:57]Read from MH i2c: E2 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 03 00 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [17:58:57]RAPDU: 90 00 [17:58:57]wFMCommunicate OK [17:58:57]wFMCommunicate request_size=4 [17:58:57]MH_SAM_APDU [17:58:57]CAPDU: 80 11 00 00 [17:58:57]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [17:58:57]Write i2c OK [17:58:57]MH_I2C_Read... [17:58:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:57]Read from MH i2c: E2 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 17 00 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DA [17:58:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [17:58:57]wFMCommunicate OK [17:58:57]DocumentArchiveInit [17:58:57]Start Httpd... [17:58:57]Httpd thread 3067084132 created [17:58:57]Write to MH i2c: 01 00 00 0F 00 0F [17:58:57]Write i2c OK [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: 01 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: 01 07 00 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [17:58:57]MH Int Process started [17:58:57]Allocated Socket 8 [17:58:57]Bind OK [17:58:57]Listen OK [17:58:57]httpd running on port 8080 [17:58:57]Waiting for new connection... [17:58:57]OFD Sender: No OFD packet to send [17:59:02]OFD Sender: No OFD packet to send [17:59:07]OFD Sender: No OFD packet to send [17:59:12]OFD Sender: No OFD packet to send [17:59:17]OFD Sender: No OFD packet to send [17:59:22]OFD Sender: No OFD packet to send [17:59:27]OFD Sender: No OFD packet to send [17:59:32]OFD Sender: No OFD packet to send [17:59:37]OFD Sender: No OFD packet to send [17:59:42]OFD Sender: No OFD packet to send [17:59:47]OFD Sender: No OFD packet to send [17:59:52]OFD Sender: No OFD packet to send [17:59:57]OFD Sender: No OFD packet to send [18:00:02]OFD Sender: No OFD packet to send [18:00:07]OFD Sender: No OFD packet to send [18:00:12]OFD Sender: No OFD packet to send [18:00:17]OFD Sender: No OFD packet to send [18:00:22]OFD Sender: No OFD packet to send [18:00:27]OFD Sender: No OFD packet to send [18:00:32]OFD Sender: No OFD packet to send [18:00:37]OFD Sender: No OFD packet to send [18:00:42]OFD Sender: No OFD packet to send [18:00:47]OFD Sender: No OFD packet to send [18:00:52]OFD Sender: No OFD packet to send [18:00:57]OFD Sender: No OFD packet to send [18:01:02]OFD Sender: No OFD packet to send [18:01:07]OFD Sender: No OFD packet to send [18:01:12]OFD Sender: No OFD packet to send [18:01:17]OFD Sender: No OFD packet to send [18:01:18]accept exits with 9 [18:01:18]New connection [18:01:18]New thread 3066797412 created [18:01:18]Waiting for new connection... [18:01:18] Sock 9.Parse request [18:01:18]Sock 9.Check first char [18:01:18]Sock 9.First char is OK [18:01:18]request: POST /json_proto HTTP/1.0 [18:01:18]Method: POST [18:01:18]URL: /json_proto [18:01:18]Method is POST - this is cgi request [18:01:18]url: /json_proto [18:01:18]query_string will be loaded in cgi processing [18:01:18]execute_cgi json_proto POST (null) [18:01:18]execute_cgi path=json_proto method=POST [18:01:18]POST find Content-Length [18:01:18]Host: 172.17.50.3:8080 [18:01:18]Content-Length: 801 [18:01:18]Content-Type: application/json [18:01:18] [18:01:18]POST finish read [18:01:18]Found Content-Length = 801 [18:01:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3949326", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:18]execute_script... [18:01:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3949326", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:18]POST & json_proto [18:01:18]process_json_proto [18:01:18]json parsed OK: [18:01:18]protocol is kg_v1.0 [18:01:18]action value=close_receipt [18:01:18]process_action close_receipt [18:01:18]cmd_close_receipt [18:01:18]MH_GetDate [18:01:18]Write to MH i2c: F0 00 00 10 00 FF [18:01:18]Write i2c OK [18:01:18]MH_I2C_Read... [18:01:18]Read from MH i2c: F0 [18:01:18]MH_I2C_Read... [18:01:18]Read from MH i2c: F0 09 00 [18:01:18]MH_I2C_Read... [18:01:18]Read from MH i2c: F0 09 00 10 00 00 6E 45 15 67 6B 98 1E 66 BE [18:01:18]GetLastDocTimeStamp 1729447045 [18:01:18]current date 1729447278 [18:01:18]FM_GetShiftState [18:01:18]SAM_PROTO_GetShiftState [18:01:18]wFMCommunicate request_size=4 [18:01:18]MH_SAM_APDU [18:01:18]CAPDU: 80 13 01 00 [18:01:18]Write to MH i2c: E2 08 00 11 00 80 13 01 00 00 00 00 00 8E [18:01:18]Write i2c OK [18:01:18]MH_I2C_Read... [18:01:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:18]Read from MH i2c: E2 [18:01:18]MH_I2C_Read... [18:01:18]Read from MH i2c: E2 0E 00 [18:01:18]MH_I2C_Read... [18:01:18]Read from MH i2c: E2 0E 00 11 00 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 94 [18:01:18]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:01:18]wFMCommunicate OK [18:01:18]SAM_PROTO_GetShiftState done [18:01:18]FM_GetShiftState done [18:01:18]opened in 1729383220 [18:01:18]opened+sec_in_day 1729469620 [18:01:18]quantity*price = 0 [18:01:18]sum+1 = 1 [18:01:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 324 20.10.2024 18:01 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливные Талоны 3949326 ФМ: 0000000000963346 ФД: 69479 ФПД: 138940851820152 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180118&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69479&fm=138940851820152&tin=02508201610067®Number=0000000000156251&sum=0 [18:01:19]StoreToDocumentArchive [18:01:19]shift 193 fd 69479 [18:01:19]save to /storage/0193/doc_00069479 [18:01:19]save last doc name /storage/0193/doc_00069479 to /storage/kkm_last_doc_name [18:01:19]save OK [18:01:19]Clear old archive folders... [18:01:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:01:19]tlvbuf is 00F1D7A0 [18:01:19]SAM_PROTO_ClearQueue [18:01:19]wFMCommunicate request_size=4 [18:01:19]MH_SAM_APDU [18:01:19]CAPDU: 80 09 00 00 [18:01:19]Write to MH i2c: E2 08 00 1E 00 80 09 00 00 00 00 00 00 90 [18:01:19]Write i2c OK [18:01:19]MH_I2C_Read... [18:01:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:01:19]Read from MH i2c: E2 [18:01:19]MH_I2C_Read... [18:01:19]Read from MH i2c: E2 03 00 [18:01:19]MH_I2C_Read... [18:01:19]Read from MH i2c: E2 03 00 1E 00 00 90 00 92 [18:01:19]RAPDU: 90 00 [18:01:19]wFMCommunicate OK [18:01:19]SAM_PROTO_ClearQueue done [18:01:19]KKMCreateOFDPacket [18:01:19]OFDProtocolAddRootSTLVToBuf [18:01:19]FM_MakeSignedData [18:01:19]FM_MakeSignedData [18:01:19]SAM_PROTO_SignData [18:01:19]wFMCommunicate request_size=4 [18:01:19]MH_SAM_APDU [18:01:19]CAPDU: 80 0D 01 02 [18:01:19]Write to MH i2c: E2 08 00 1F 00 80 0D 01 02 00 00 00 00 98 [18:01:19]Write i2c OK [18:01:19]MH_I2C_Read... [18:01:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:01:19]Read from MH i2c: E2 [18:01:19]MH_I2C_Read... [18:01:19]Read from MH i2c: E2 03 00 [18:01:19]MH_I2C_Read... [18:01:19]Read from MH i2c: E2 03 00 1F 00 00 90 00 93 [18:01:19]RAPDU: 90 00 [18:01:19]wFMCommunicate OK [18:01:19]wFMCommunicate request_size=255 [18:01:19]MH_SAM_APDU [18:01:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 44 01 00 00 F4 03 04 00 6E 45 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 67 0F 01 00 35 04 06 00 7E [18:01:19]Write to MH i2c: E2 02 01 20 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 6E 45 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 67 0F 01 00 35 04 06 00 7E 00 00 34 [18:01:19]Write i2c OK [18:01:19]MH_I2C_Read... [18:01:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:19]Read from MH i2c: E2 [18:01:19]MH_I2C_Read... [18:01:19]Read from MH i2c: E2 03 00 [18:01:19]MH_I2C_Read... [18:01:19]Read from MH i2c: E2 03 00 20 00 00 90 00 94 [18:01:19]RAPDU: 90 00 [18:01:19]wFMCommunicate OK [18:01:19]wFMCommunicate request_size=10 [18:01:19]MH_SAM_APDU [18:01:19]CAPDU: 80 0D 02 02 05 5D B0 1E 16 78 [18:01:19]Write to MH i2c: E2 0D 00 21 00 80 0D 02 02 05 00 5D B0 1E 16 78 00 00 5E [18:01:19]Write i2c OK [18:01:19]MH_I2C_Read... [18:01:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:19]Read from MH i2c: E2 [18:01:19]MH_I2C_Read... [18:01:19]Read from MH i2c: E2 03 00 [18:01:19]MH_I2C_Read... [18:01:19]Read from MH i2c: E2 03 00 21 00 00 90 00 95 [18:01:19]RAPDU: 90 00 [18:01:19]wFMCommunicate OK [18:01:19]wFMCommunicate request_size=4 [18:01:19]MH_SAM_APDU [18:01:19]CAPDU: 80 0D 03 02 [18:01:19]Write to MH i2c: E2 08 00 22 00 80 0D 03 02 00 00 00 00 9D [18:01:19]Write i2c OK [18:01:19]MH_I2C_Read... [18:01:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:01:19]Read from MH i2c: E2 [18:01:19]MH_I2C_Read... [18:01:19]Read from MH i2c: E2 0B 00 [18:01:19]MH_I2C_Read... [18:01:19]Read from MH i2c: E2 0B 00 22 00 00 12 DF 04 40 D3 92 7A 58 90 00 0A [18:01:19]RAPDU: 12 DF 04 40 D3 92 7A 58 90 00 [18:01:19]wFMCommunicate OK [18:01:19]SAM_PROTO_SignData done [18:01:19]FM_MakeSignedData done [18:01:19]CreateOFDProtocolMessage [18:01:19]wFMCommunicate request_size=4 [18:01:19]MH_SAM_APDU [18:01:19]CAPDU: 80 11 00 00 [18:01:19]Write to MH i2c: E2 08 00 23 00 80 11 00 00 00 00 00 00 9D [18:01:19]Write i2c OK [18:01:19]MH_I2C_Read... [18:01:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:19]Read from MH i2c: E2 [18:01:19]MH_I2C_Read... [18:01:19]Read from MH i2c: E2 17 00 [18:01:19]MH_I2C_Read... [18:01:19]Read from MH i2c: E2 17 00 23 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EF [18:01:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:01:19]wFMCommunicate OK [18:01:19]CreateOFDProtocolMessage done [18:01:19]OFDSenderStorePacket 69479 [18:01:19]StoreOFDPacket docnum=69479 [18:01:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 AA 07 07 01 8D 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 44 01 00 00 F4 03 04 00 6E 45 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 67 0F 01 00 35 04 06 00 7E 5D B0 1E 16 78 12 DF 04 40 D3 92 7A 58 [18:01:19]CheckFolder [18:01:19]dirname=/storage/ofd_packets [18:01:19]CheckFolder done [18:01:19]ProducePacketName [18:01:19]name=ofd_packets/00069479 [18:01:19]NVStorageSaveData ofd_packets/00069479 [18:01:19]File name is /storage/ofd_packets/00069479 [18:01:19]Write 301 bytes [18:01:19]NVStorageSaveData done [18:01:19]OFDSenderStorePacket done [18:01:19]KKMCreateOFDPacket done [18:01:19]NVStorageSaveData kkm_last_timestamp [18:01:19]File name is /storage/kkm_last_timestamp [18:01:19]Write 4 bytes [18:01:19]NVStorageSaveData done [18:01:19]ExternCall_PrintAddStr [18:01:19]wPrintStart [18:01:19]Write to MH i2c: 01 00 00 24 00 24 [18:01:19]Write i2c OK [18:01:19]MH_I2C_Read... [18:01:19]Read from MH i2c: 01 [18:01:19]MH_I2C_Read... [18:01:19]Read from MH i2c: 01 07 00 [18:01:19]MH_I2C_Read... [18:01:19]Read from MH i2c: 01 07 00 24 00 00 00 00 00 00 FF 0F 39 [18:01:19]RasterBufferAndPrint [18:01:19]line Счет N : (1)2885213 [18:01:19]line ИНН: 02508201610067 [18:01:19]line Контрольно-Кассовый Чек [18:01:19]line ПРОДАЖА [18:01:19]line ТРК (МРК, ГНК) : 32 [18:01:19]line Товар: 2710124130 [18:01:19]line Аи-92-К-5 [18:01:19]line 20.000 * 0.00 [18:01:19]line = 0.00 [18:01:19]line НДС 12% НСП 1% [18:01:19]line > о реализуемом товаре [18:01:19]line ИТОГО: 0.00 [18:01:19]line НСП 1% : 0.00 [18:01:19]line НДС 12% : 0.00 [18:01:19]line Наличными: 0.00 [18:01:19]line Безнал.: 0.00 [18:01:19]line Место: АЗС № 85 "Партнер Нефть" [18:01:19]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:01:19]line СНО: Общий режим [18:01:19]line Чек 324 20.10.2024 18:01 [18:01:19]line Смена: 193 ФФД: 1.0 [18:01:19]line ЗНМ: 0300000167 [18:01:19]line РНМ: 0000000000156251 [18:01:19]line Версия ККМ: v1.0 [18:01:19]line Талоны: Топливные Талоны [18:01:19]line 3949326 [18:01:19]line ФМ: 0000000000963346 [18:01:19]line ФД: 69479 [18:01:19]line ФПД: 138940851820152 [18:01:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180118&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69479&fm=138940851820152&tin=02508201610067®Number=0000000000156251&sum=0 [18:01:19]OFD Sender: Processing packet 69479 [packets to send 18, broken 17] [18:01:19]ProducePacketName [18:01:19]name=ofd_packets/00069479 [18:01:19]OFD Sender: To server: pG, [18:01:19]CommunicateWithHost lk.salyk.kg:30040 [18:01:19]ConnectInit lk.salyk.kg [18:01:19]written 0, free lines is 4095 [18:01:19]Connected sock=10 [18:01:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 AA 07 07 01 8D 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 44 01 00 00 F4 03 04 00 6E 45 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 67 0F 01 00 35 04 06 00 7E 5D B0 1E 16 78 12 DF 04 40 D3 92 7A 58 [18:01:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 8B 29 47 00 BC 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 67 0F 01 00 F4 03 04 00 14 EF 14 67 B6 04 01 00 00 52 D0 A1 FB 1C 79 7F F1 [18:01:20]CommunicateWithHost err = 0 [18:01:20]CheckOFDResponse [18:01:20]1017 (14) - 77093643461234 [18:01:20]1041 (16) - 0000000000963346 [18:01:20]1040 (4) - 69479 [18:01:20]1012 (4) - 20.10.2024 11:52 [18:01:20]1206 (1) - 0 [18:01:20]OFD Sender: Remove packet 69479 [18:01:20]ProducePacketName [18:01:20]name=ofd_packets/00069479 [18:01:20]NVStorageDeleteData [18:01:20]Write to MH i2c: 01 00 00 4E 00 4E [18:01:20]Write i2c OK [18:01:20]MH_I2C_Read... [18:01:20]Read from MH i2c: 01 [18:01:20]MH_I2C_Read... [18:01:20]Read from MH i2c: 01 07 00 [18:01:20]MH_I2C_Read... [18:01:20]Read from MH i2c: 01 07 00 4E 00 00 00 00 00 00 15 0D 77 [18:01:20]RasterBufferAndPrint [18:01:20]line [18:01:20]line [18:01:20]line [18:01:20]line [18:01:20]line [18:01:20]written 0, free lines is 3355 [18:01:20]MH_Cut [18:01:20]Write to MH i2c: D1 01 00 55 00 01 27 [18:01:20]Write i2c OK [18:01:20]MH_I2C_Read... [18:01:20]Read from MH i2c: D1 [18:01:20]MH_I2C_Read... [18:01:20]Read from MH i2c: D1 01 00 [18:01:20]MH_I2C_Read... [18:01:20]Read from MH i2c: D1 01 00 55 00 00 26 [18:01:20]Write to MH i2c: 01 00 00 56 00 56 [18:01:20]Write i2c OK [18:01:20]MH_I2C_Read... [18:01:20]OFD Sender: No OFD packet to send [18:01:20]*** Cut start [18:01:20]*** Partial cut [18:01:20]*** CUTSNS_PIN = 1 [18:01:20]*** CUTSNS_PIN = 0 [18:01:21]*** Brake cut motor [18:01:21]Read from MH i2c: 01 [18:01:21]MH_I2C_Read... [18:01:21]*** Stop cut motor [18:01:21]*** Cut end [18:01:21]Read from MH i2c: 01 07 00 [18:01:21]MH_I2C_Read... [18:01:21]Read from MH i2c: 01 07 00 56 00 00 00 00 00 00 FF 0F 6B [18:01:21]process_action close_receipt done [18:01:21]requested_data is exist [18:01:21]produce_requested_data [18:01:21]requested_item fm.sn is exist - process it [18:01:21]wFMCommunicate request_size=4 [18:01:21]MH_SAM_APDU [18:01:21]CAPDU: 80 11 00 00 [18:01:21]Write to MH i2c: E2 08 00 57 00 80 11 00 00 00 00 00 00 D1 [18:01:21]Write i2c OK [18:01:21]MH_I2C_Read... [18:01:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:21]Read from MH i2c: E2 [18:01:21]MH_I2C_Read... [18:01:21]Read from MH i2c: E2 17 00 [18:01:21]MH_I2C_Read... [18:01:21]Read from MH i2c: E2 17 00 57 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 23 [18:01:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:01:21]wFMCommunicate OK [18:01:21]requested_item fd.num is exist - process it [18:01:21]SAM_PROTO_GetFieldsCounters [18:01:21]wFMCommunicate request_size=4 [18:01:21]MH_SAM_APDU [18:01:21]CAPDU: 80 13 00 00 [18:01:21]Write to MH i2c: E2 08 00 58 00 80 13 00 00 00 00 00 00 D4 [18:01:21]Write i2c OK [18:01:21]MH_I2C_Read... [18:01:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:01:21]Read from MH i2c: E2 [18:01:21]MH_I2C_Read... [18:01:21]Read from MH i2c: E2 62 00 [18:01:21]MH_I2C_Read... [18:01:21]Read from MH i2c: E2 62 00 58 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 67 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 F6 [18:01:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 67 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:01:21]wFMCommunicate OK [18:01:21]SAM_PROTO_GetFieldsCounters done [18:01:21]requested_item shift.num is exist - process it [18:01:21]requested_item shift.opened is exist - process it [18:01:21]req_shift_opened [18:01:21]FM_GetShiftState [18:01:21]SAM_PROTO_GetShiftState [18:01:21]wFMCommunicate request_size=4 [18:01:21]MH_SAM_APDU [18:01:21]CAPDU: 80 13 01 00 [18:01:21]Write to MH i2c: E2 08 00 59 00 80 13 01 00 00 00 00 00 D6 [18:01:21]Write i2c OK [18:01:21]MH_I2C_Read... [18:01:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:21]Read from MH i2c: E2 [18:01:21]MH_I2C_Read... [18:01:21]Read from MH i2c: E2 0E 00 [18:01:21]MH_I2C_Read... [18:01:21]Read from MH i2c: E2 0E 00 59 00 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 DC [18:01:21]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:01:21]wFMCommunicate OK [18:01:21]SAM_PROTO_GetShiftState done [18:01:21]FM_GetShiftState done [18:01:21]req_shift_opened done [18:01:21]requested_item shift.open_date is exist - process it [18:01:21]req_shift_open_date [18:01:21]req_shift_open_date done [18:01:21]produce_requested_data done [18:01:21]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69479,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [18:01:21]process_action_free close_receipt [18:01:21]json_value_free [18:01:21]json_value_free done [18:01:21]process_json_proto returns [18:01:21]Send response to host [18:01:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69479,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [18:01:21]free response buf [18:01:21]execute_script done [18:01:21]execute_script returns [18:01:21]free content buf [18:01:21]Sock 9.Close socket [18:01:21]Sock 9.Thread stoped [18:01:25]OFD Sender: No OFD packet to send [18:01:30]OFD Sender: No OFD packet to send [18:01:35]OFD Sender: No OFD packet to send [18:01:40]OFD Sender: No OFD packet to send [18:01:45]OFD Sender: No OFD packet to send [18:01:50]OFD Sender: No OFD packet to send [18:01:55]OFD Sender: No OFD packet to send [18:02:00]OFD Sender: No OFD packet to send [18:02:05]OFD Sender: No OFD packet to send [18:02:10]OFD Sender: No OFD packet to send [18:02:15]OFD Sender: No OFD packet to send [18:02:20]OFD Sender: No OFD packet to send [18:02:25]OFD Sender: No OFD packet to send [18:02:30]OFD Sender: No OFD packet to send [18:02:35]OFD Sender: No OFD packet to send [18:02:40]OFD Sender: No OFD packet to send [18:02:45]OFD Sender: No OFD packet to send [18:02:50]OFD Sender: No OFD packet to send [18:02:55]OFD Sender: No OFD packet to send [18:03:00]OFD Sender: No OFD packet to send [18:03:05]OFD Sender: No OFD packet to send [18:03:10]OFD Sender: No OFD packet to send [18:03:15]OFD Sender: No OFD packet to send [18:03:17]accept exits with 7 [18:03:17]New connection [18:03:17]New thread 3066654052 created [18:03:17]Thread 3066797412 joined [18:03:17]Waiting for new connection... [18:03:17] Sock 7.Parse request [18:03:17]Sock 7.Check first char [18:03:17]Sock 7.First char is OK [18:03:17]request: POST /json_proto HTTP/1.0 [18:03:17]Method: POST [18:03:17]URL: /json_proto [18:03:17]Method is POST - this is cgi request [18:03:17]url: /json_proto [18:03:17]query_string will be loaded in cgi processing [18:03:17]execute_cgi json_proto POST (null) [18:03:17]execute_cgi path=json_proto method=POST [18:03:17]POST find Content-Length [18:03:17]Host: 172.17.50.3:8080 [18:03:17]Content-Length: 683 [18:03:17]Content-Type: application/json [18:03:17] [18:03:17]POST finish read [18:03:17]Found Content-Length = 683 [18:03:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.930, "sum" : 1400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:17]execute_script... [18:03:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.930, "sum" : 1400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:17]POST & json_proto [18:03:17]process_json_proto [18:03:17]json parsed OK: [18:03:17]protocol is kg_v1.0 [18:03:17]action value=close_receipt [18:03:17]process_action close_receipt [18:03:17]cmd_close_receipt [18:03:17]MH_GetDate [18:03:17]Write to MH i2c: F0 00 00 5A 00 49 [18:03:17]Write i2c OK [18:03:17]MH_I2C_Read... [18:03:17]Read from MH i2c: F0 [18:03:17]MH_I2C_Read... [18:03:17]Read from MH i2c: F0 09 00 [18:03:17]MH_I2C_Read... [18:03:17]Read from MH i2c: F0 09 00 5A 00 00 E5 45 15 67 6B 98 1E 66 7F [18:03:17]GetLastDocTimeStamp 1729447278 [18:03:17]current date 1729447397 [18:03:17]FM_GetShiftState [18:03:17]SAM_PROTO_GetShiftState [18:03:17]wFMCommunicate request_size=4 [18:03:17]MH_SAM_APDU [18:03:17]CAPDU: 80 13 01 00 [18:03:17]Write to MH i2c: E2 08 00 5B 00 80 13 01 00 00 00 00 00 D8 [18:03:17]Write i2c OK [18:03:17]MH_I2C_Read... [18:03:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:17]Read from MH i2c: E2 [18:03:17]MH_I2C_Read... [18:03:17]Read from MH i2c: E2 0E 00 [18:03:17]MH_I2C_Read... [18:03:17]Read from MH i2c: E2 0E 00 5B 00 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 DE [18:03:17]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:03:17]wFMCommunicate OK [18:03:17]SAM_PROTO_GetShiftState done [18:03:17]FM_GetShiftState done [18:03:17]opened in 1729383220 [18:03:17]opened+sec_in_day 1729469620 [18:03:17]quantity*price = 140021 [18:03:17]sum+1 = 140023 [18:03:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.70 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 325 20.10.2024 18:03 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69480 ФПД: 139687211648789 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180317&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69480&fm=139687211648789&tin=02508201610067®Number=0000000000156251&sum=140000 [18:03:18]StoreToDocumentArchive [18:03:18]shift 193 fd 69480 [18:03:18]save to /storage/0193/doc_00069480 [18:03:18]save last doc name /storage/0193/doc_00069480 to /storage/kkm_last_doc_name [18:03:18]save OK [18:03:18]Clear old archive folders... [18:03:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:03:18]tlvbuf is 00F19B50 [18:03:18]SAM_PROTO_ClearQueue [18:03:18]wFMCommunicate request_size=4 [18:03:18]MH_SAM_APDU [18:03:18]CAPDU: 80 09 00 00 [18:03:18]Write to MH i2c: E2 08 00 68 00 80 09 00 00 00 00 00 00 DA [18:03:18]Write i2c OK [18:03:18]MH_I2C_Read... [18:03:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:18]Read from MH i2c: E2 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: E2 03 00 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: E2 03 00 68 00 00 90 00 DC [18:03:18]RAPDU: 90 00 [18:03:18]wFMCommunicate OK [18:03:18]SAM_PROTO_ClearQueue done [18:03:18]KKMCreateOFDPacket [18:03:18]OFDProtocolAddRootSTLVToBuf [18:03:18]FM_MakeSignedData [18:03:18]FM_MakeSignedData [18:03:18]SAM_PROTO_SignData [18:03:18]wFMCommunicate request_size=4 [18:03:18]MH_SAM_APDU [18:03:18]CAPDU: 80 0D 01 02 [18:03:18]Write to MH i2c: E2 08 00 69 00 80 0D 01 02 00 00 00 00 E2 [18:03:18]Write i2c OK [18:03:18]MH_I2C_Read... [18:03:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:18]Read from MH i2c: E2 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: E2 03 00 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: E2 03 00 69 00 00 90 00 DD [18:03:18]RAPDU: 90 00 [18:03:18]wFMCommunicate OK [18:03:18]wFMCommunicate request_size=255 [18:03:18]MH_SAM_APDU [18:03:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 E5 45 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 68 0F 01 00 35 04 06 00 7F [18:03:18]Write to MH i2c: E2 02 01 6A 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 E5 45 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 68 0F 01 00 35 04 06 00 7F 00 00 26 [18:03:18]Write i2c OK [18:03:18]MH_I2C_Read... [18:03:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:18]Read from MH i2c: E2 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: E2 03 00 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: E2 03 00 6A 00 00 90 00 DE [18:03:18]RAPDU: 90 00 [18:03:18]wFMCommunicate OK [18:03:18]wFMCommunicate request_size=10 [18:03:18]MH_SAM_APDU [18:03:18]CAPDU: 80 0D 02 02 05 0B 76 A1 47 15 [18:03:18]Write to MH i2c: E2 0D 00 6B 00 80 0D 02 02 05 00 0B 76 A1 47 15 00 00 6D [18:03:18]Write i2c OK [18:03:18]MH_I2C_Read... [18:03:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:18]Read from MH i2c: E2 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: E2 03 00 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: E2 03 00 6B 00 00 90 00 DF [18:03:18]RAPDU: 90 00 [18:03:18]wFMCommunicate OK [18:03:18]wFMCommunicate request_size=4 [18:03:18]MH_SAM_APDU [18:03:18]CAPDU: 80 0D 03 02 [18:03:18]Write to MH i2c: E2 08 00 6C 00 80 0D 03 02 00 00 00 00 E7 [18:03:18]Write i2c OK [18:03:18]MH_I2C_Read... [18:03:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:18]Read from MH i2c: E2 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: E2 0B 00 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: E2 0B 00 6C 00 00 C6 D7 F7 AB F8 2D 34 82 90 00 02 [18:03:18]RAPDU: C6 D7 F7 AB F8 2D 34 82 90 00 [18:03:18]wFMCommunicate OK [18:03:18]SAM_PROTO_SignData done [18:03:18]FM_MakeSignedData done [18:03:18]CreateOFDProtocolMessage [18:03:18]wFMCommunicate request_size=4 [18:03:18]MH_SAM_APDU [18:03:18]CAPDU: 80 11 00 00 [18:03:18]Write to MH i2c: E2 08 00 6D 00 80 11 00 00 00 00 00 00 E7 [18:03:18]Write i2c OK [18:03:18]MH_I2C_Read... [18:03:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:18]Read from MH i2c: E2 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: E2 17 00 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: E2 17 00 6D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 39 [18:03:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:03:18]wFMCommunicate OK [18:03:18]CreateOFDProtocolMessage done [18:03:18]OFDSenderStorePacket 69480 [18:03:18]StoreOFDPacket docnum=69480 [18:03:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 8B D6 07 01 28 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 E5 45 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 68 0F 01 00 35 04 06 00 7F 0B 76 A1 47 15 C6 D7 F7 AB F8 2D 34 82 [18:03:18]CheckFolder [18:03:18]dirname=/storage/ofd_packets [18:03:18]CheckFolder done [18:03:18]ProducePacketName [18:03:18]name=ofd_packets/00069480 [18:03:18]NVStorageSaveData ofd_packets/00069480 [18:03:18]File name is /storage/ofd_packets/00069480 [18:03:18]Write 301 bytes [18:03:18]NVStorageSaveData done [18:03:18]OFDSenderStorePacket done [18:03:18]KKMCreateOFDPacket done [18:03:18]NVStorageSaveData kkm_last_timestamp [18:03:18]File name is /storage/kkm_last_timestamp [18:03:18]Write 4 bytes [18:03:18]NVStorageSaveData done [18:03:18]ExternCall_PrintAddStr [18:03:18]wPrintStart [18:03:18]Write to MH i2c: 01 00 00 6E 00 6E [18:03:18]Write i2c OK [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: 01 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: 01 07 00 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: 01 07 00 6E 00 00 00 00 00 00 FF 0F 83 [18:03:18]RasterBufferAndPrint [18:03:18]line Счет N : (1)2885214 [18:03:18]line ИНН: 02508201610067 [18:03:18]line Контрольно-Кассовый Чек [18:03:18]line ПРОДАЖА [18:03:18]line ТРК (МРК, ГНК) : 42 [18:03:18]line Товар: 2710124130 [18:03:18]line Аи-92-К-5 [18:03:18]line 20.930 * 66.90 [18:03:18]line = 1400.22 [18:03:18]line НДС 12% НСП 1% [18:03:18]line > о реализуемом товаре [18:03:18]line ОКРУГЛЕНИЕ: -0.22 [18:03:18]line ИТОГО: 1400.00 [18:03:18]line Внесено: 1400.00 [18:03:18]line СДАЧА: 0.00 [18:03:18]line НСП 1% : 12.39 [18:03:18]line НДС 12% : 148.70 [18:03:18]line Наличными: 1400.00 [18:03:18]line Безнал.: 0.00 [18:03:18]line Место: АЗС № 85 "Партнер Нефть" [18:03:18]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:03:18]line СНО: Общий режим [18:03:18]line Чек 325 20.10.2024 18:03 [18:03:18]line Смена: 193 ФФД: 1.0 [18:03:18]line ЗНМ: 0300000167 [18:03:18]line РНМ: 0000000000156251 [18:03:18]line Версия ККМ: v1.0 [18:03:18]line ФМ: 0000000000963346 [18:03:18]line ФД: 69480 [18:03:18]line ФПД: 139687211648789 [18:03:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180317&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69480&fm=139687211648789&tin=02508201610067®Number=0000000000156251&sum=140000 [18:03:19]OFD Sender: Processing packet 69480 [packets to send 18, broken 17] [18:03:19]ProducePacketName [18:03:19]name=ofd_packets/00069480 [18:03:19]OFD Sender: To server: pG, [18:03:19]CommunicateWithHost lk.salyk.kg:30040 [18:03:19]ConnectInit lk.salyk.kg [18:03:19]written 0, free lines is 4095 [18:03:19]Connected sock=10 [18:03:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 8B D6 07 01 28 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 E5 45 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 68 0F 01 00 35 04 06 00 7F 0B 76 A1 47 15 C6 D7 F7 AB F8 2D 34 82 [18:03:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 03 A8 47 00 BE 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 68 0F 01 00 F4 03 04 00 8B EF 14 67 B6 04 01 00 00 4B DD 78 C9 2F FB 74 94 [18:03:19]CommunicateWithHost err = 0 [18:03:19]CheckOFDResponse [18:03:19]1017 (14) - 77093643461234 [18:03:19]1041 (16) - 0000000000963346 [18:03:19]1040 (4) - 69480 [18:03:19]1012 (4) - 20.10.2024 11:54 [18:03:19]1206 (1) - 0 [18:03:19]OFD Sender: Remove packet 69480 [18:03:19]ProducePacketName [18:03:19]name=ofd_packets/00069480 [18:03:19]NVStorageDeleteData [18:03:19]Write to MH i2c: 01 00 00 99 00 99 [18:03:19]Write i2c OK [18:03:19]MH_I2C_Read... [18:03:19]Read from MH i2c: 01 [18:03:19]MH_I2C_Read... [18:03:19]Read from MH i2c: 01 07 00 [18:03:19]MH_I2C_Read... [18:03:19]Read from MH i2c: 01 07 00 99 00 00 00 00 00 00 F9 0C A5 [18:03:19]RasterBufferAndPrint [18:03:19]line [18:03:19]line [18:03:19]line [18:03:19]line [18:03:19]line [18:03:19]written 0, free lines is 3327 [18:03:19]MH_Cut [18:03:19]Write to MH i2c: D1 01 00 A0 00 01 72 [18:03:19]Write i2c OK [18:03:19]MH_I2C_Read... [18:03:19]Read from MH i2c: D1 [18:03:19]MH_I2C_Read... [18:03:19]Read from MH i2c: D1 01 00 [18:03:19]MH_I2C_Read... [18:03:19]Read from MH i2c: D1 01 00 A0 00 00 71 [18:03:19]Write to MH i2c: 01 00 00 A1 00 A1 [18:03:19]Write i2c OK [18:03:19]MH_I2C_Read... [18:03:19]OFD Sender: No OFD packet to send [18:03:20]*** Cut start [18:03:20]*** Partial cut [18:03:20]*** CUTSNS_PIN = 1 [18:03:20]*** CUTSNS_PIN = 0 [18:03:20]*** Brake cut motor [18:03:20]Read from MH i2c: 01 [18:03:20]MH_I2C_Read... [18:03:20]*** Stop cut motor [18:03:20]*** Cut end [18:03:20]Read from MH i2c: 01 07 00 [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: 01 07 00 A1 00 00 00 00 00 00 FF 0F B6 [18:03:20]process_action close_receipt done [18:03:20]requested_data is exist [18:03:20]produce_requested_data [18:03:20]requested_item fm.sn is exist - process it [18:03:20]wFMCommunicate request_size=4 [18:03:20]MH_SAM_APDU [18:03:20]CAPDU: 80 11 00 00 [18:03:20]Write to MH i2c: E2 08 00 A2 00 80 11 00 00 00 00 00 00 1C [18:03:20]Write i2c OK [18:03:20]MH_I2C_Read... [18:03:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:20]Read from MH i2c: E2 [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: E2 17 00 [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: E2 17 00 A2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6E [18:03:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:03:20]wFMCommunicate OK [18:03:20]requested_item fd.num is exist - process it [18:03:20]SAM_PROTO_GetFieldsCounters [18:03:20]wFMCommunicate request_size=4 [18:03:20]MH_SAM_APDU [18:03:20]CAPDU: 80 13 00 00 [18:03:20]Write to MH i2c: E2 08 00 A3 00 80 13 00 00 00 00 00 00 1F [18:03:20]Write i2c OK [18:03:20]MH_I2C_Read... [18:03:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:21]Read from MH i2c: E2 [18:03:21]MH_I2C_Read... [18:03:21]Read from MH i2c: E2 62 00 [18:03:21]MH_I2C_Read... [18:03:21]Read from MH i2c: E2 62 00 A3 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 68 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 45 [18:03:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 68 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:03:21]wFMCommunicate OK [18:03:21]SAM_PROTO_GetFieldsCounters done [18:03:21]requested_item shift.num is exist - process it [18:03:21]requested_item shift.opened is exist - process it [18:03:21]req_shift_opened [18:03:21]FM_GetShiftState [18:03:21]SAM_PROTO_GetShiftState [18:03:21]wFMCommunicate request_size=4 [18:03:21]MH_SAM_APDU [18:03:21]CAPDU: 80 13 01 00 [18:03:21]Write to MH i2c: E2 08 00 A4 00 80 13 01 00 00 00 00 00 21 [18:03:21]Write i2c OK [18:03:21]MH_I2C_Read... [18:03:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:21]Read from MH i2c: E2 [18:03:21]MH_I2C_Read... [18:03:21]Read from MH i2c: E2 0E 00 [18:03:21]MH_I2C_Read... [18:03:21]Read from MH i2c: E2 0E 00 A4 00 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 27 [18:03:21]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:03:21]wFMCommunicate OK [18:03:21]SAM_PROTO_GetShiftState done [18:03:21]FM_GetShiftState done [18:03:21]req_shift_opened done [18:03:21]requested_item shift.open_date is exist - process it [18:03:21]req_shift_open_date [18:03:21]req_shift_open_date done [18:03:21]produce_requested_data done [18:03:21]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69480,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [18:03:21]process_action_free close_receipt [18:03:21]json_value_free [18:03:21]json_value_free done [18:03:21]process_json_proto returns [18:03:21]Send response to host [18:03:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69480,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [18:03:21]free response buf [18:03:21]execute_script done [18:03:21]execute_script returns [18:03:21]free content buf [18:03:21]Sock 7.Close socket [18:03:21]Sock 7.Thread stoped [18:03:24]OFD Sender: No OFD packet to send [18:03:25]accept exits with 9 [18:03:25]New connection [18:03:25]New thread 3066797412 created [18:03:25]Thread 3066654052 joined [18:03:25]Waiting for new connection... [18:03:25] Sock 9.Parse request [18:03:25]Sock 9.Check first char [18:03:25]Sock 9.First char is OK [18:03:25]request: POST /json_proto HTTP/1.0 [18:03:25]Method: POST [18:03:25]URL: /json_proto [18:03:25]Method is POST - this is cgi request [18:03:25]url: /json_proto [18:03:25]query_string will be loaded in cgi processing [18:03:25]execute_cgi json_proto POST (null) [18:03:25]execute_cgi path=json_proto method=POST [18:03:25]POST find Content-Length [18:03:25]Host: 172.17.50.3:8080 [18:03:25]Content-Length: 679 [18:03:25]Content-Type: application/json [18:03:25] [18:03:25]POST finish read [18:03:25]Found Content-Length = 679 [18:03:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 12.710, "sum" : 850.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:25]execute_script... [18:03:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 12.710, "sum" : 850.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:25]POST & json_proto [18:03:25]process_json_proto [18:03:25]json parsed OK: [18:03:25]protocol is kg_v1.0 [18:03:25]action value=close_receipt [18:03:25]process_action close_receipt [18:03:25]cmd_close_receipt [18:03:25]MH_GetDate [18:03:25]Write to MH i2c: F0 00 00 A5 00 94 [18:03:25]Write i2c OK [18:03:25]MH_I2C_Read... [18:03:25]Read from MH i2c: F0 [18:03:25]MH_I2C_Read... [18:03:25]Read from MH i2c: F0 09 00 [18:03:25]MH_I2C_Read... [18:03:25]Read from MH i2c: F0 09 00 A5 00 00 ED 45 15 67 6B 98 1E 66 D2 [18:03:25]GetLastDocTimeStamp 1729447397 [18:03:25]current date 1729447405 [18:03:25]FM_GetShiftState [18:03:25]SAM_PROTO_GetShiftState [18:03:25]wFMCommunicate request_size=4 [18:03:25]MH_SAM_APDU [18:03:25]CAPDU: 80 13 01 00 [18:03:25]Write to MH i2c: E2 08 00 A6 00 80 13 01 00 00 00 00 00 23 [18:03:25]Write i2c OK [18:03:25]MH_I2C_Read... [18:03:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:25]Read from MH i2c: E2 [18:03:25]MH_I2C_Read... [18:03:25]Read from MH i2c: E2 0E 00 [18:03:25]MH_I2C_Read... [18:03:25]Read from MH i2c: E2 0E 00 A6 00 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 29 [18:03:25]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:03:25]wFMCommunicate OK [18:03:25]SAM_PROTO_GetShiftState done [18:03:25]FM_GetShiftState done [18:03:25]opened in 1729383220 [18:03:25]opened+sec_in_day 1729469620 [18:03:25]quantity*price = 85029 [18:03:25]sum+1 = 85031 [18:03:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 850.00 Внесено: 850.00 СДАЧА: 0.00 НСП 1% : 7.52 НДС 12% : 90.30 Наличными: 850.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 326 20.10.2024 18:03 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69481 ФПД: 144566868765707 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180325&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69481&fm=144566868765707&tin=02508201610067®Number=0000000000156251&sum=85000 [18:03:26]StoreToDocumentArchive [18:03:26]shift 193 fd 69481 [18:03:26]save to /storage/0193/doc_00069481 [18:03:26]save last doc name /storage/0193/doc_00069481 to /storage/kkm_last_doc_name [18:03:26]save OK [18:03:26]Clear old archive folders... [18:03:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:03:26]tlvbuf is 00F1BE00 [18:03:26]SAM_PROTO_ClearQueue [18:03:26]wFMCommunicate request_size=4 [18:03:26]MH_SAM_APDU [18:03:26]CAPDU: 80 09 00 00 [18:03:26]Write to MH i2c: E2 08 00 B3 00 80 09 00 00 00 00 00 00 25 [18:03:26]Write i2c OK [18:03:26]MH_I2C_Read... [18:03:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:26]Read from MH i2c: E2 [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: E2 03 00 [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: E2 03 00 B3 00 00 90 00 27 [18:03:26]RAPDU: 90 00 [18:03:26]wFMCommunicate OK [18:03:26]SAM_PROTO_ClearQueue done [18:03:26]KKMCreateOFDPacket [18:03:26]OFDProtocolAddRootSTLVToBuf [18:03:26]FM_MakeSignedData [18:03:26]FM_MakeSignedData [18:03:26]SAM_PROTO_SignData [18:03:26]wFMCommunicate request_size=4 [18:03:26]MH_SAM_APDU [18:03:26]CAPDU: 80 0D 01 02 [18:03:26]Write to MH i2c: E2 08 00 B4 00 80 0D 01 02 00 00 00 00 2D [18:03:26]Write i2c OK [18:03:26]MH_I2C_Read... [18:03:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:26]Read from MH i2c: E2 [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: E2 03 00 [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: E2 03 00 B4 00 00 90 00 28 [18:03:26]RAPDU: 90 00 [18:03:26]wFMCommunicate OK [18:03:26]wFMCommunicate request_size=255 [18:03:26]MH_SAM_APDU [18:03:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 ED 45 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 69 0F 01 00 35 04 06 00 83 [18:03:26]Write to MH i2c: E2 02 01 B5 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 ED 45 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 69 0F 01 00 35 04 06 00 83 00 00 6E [18:03:26]Write i2c OK [18:03:26]MH_I2C_Read... [18:03:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:26]Read from MH i2c: E2 [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: E2 03 00 [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: E2 03 00 B5 00 00 90 00 29 [18:03:26]RAPDU: 90 00 [18:03:26]wFMCommunicate OK [18:03:26]wFMCommunicate request_size=10 [18:03:26]MH_SAM_APDU [18:03:26]CAPDU: 80 0D 02 02 05 7B 98 DB EC 0B [18:03:26]Write to MH i2c: E2 0D 00 B6 00 80 0D 02 02 05 00 7B 98 DB EC 0B 00 00 1F [18:03:26]Write i2c OK [18:03:26]MH_I2C_Read... [18:03:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:26]Read from MH i2c: E2 [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: E2 03 00 [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: E2 03 00 B6 00 00 90 00 2A [18:03:26]RAPDU: 90 00 [18:03:26]wFMCommunicate OK [18:03:26]wFMCommunicate request_size=4 [18:03:26]MH_SAM_APDU [18:03:26]CAPDU: 80 0D 03 02 [18:03:26]Write to MH i2c: E2 08 00 B7 00 80 0D 03 02 00 00 00 00 32 [18:03:26]Write i2c OK [18:03:26]MH_I2C_Read... [18:03:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:26]Read from MH i2c: E2 [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: E2 0B 00 [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: E2 0B 00 B7 00 00 9D 51 D6 CF C0 10 80 0C 90 00 22 [18:03:26]RAPDU: 9D 51 D6 CF C0 10 80 0C 90 00 [18:03:26]wFMCommunicate OK [18:03:26]SAM_PROTO_SignData done [18:03:26]FM_MakeSignedData done [18:03:26]CreateOFDProtocolMessage [18:03:26]wFMCommunicate request_size=4 [18:03:26]MH_SAM_APDU [18:03:26]CAPDU: 80 11 00 00 [18:03:26]Write to MH i2c: E2 08 00 B8 00 80 11 00 00 00 00 00 00 32 [18:03:26]Write i2c OK [18:03:26]MH_I2C_Read... [18:03:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:26]Read from MH i2c: E2 [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: E2 17 00 [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: E2 17 00 B8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 84 [18:03:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:03:26]wFMCommunicate OK [18:03:26]CreateOFDProtocolMessage done [18:03:26]OFDSenderStorePacket 69481 [18:03:26]StoreOFDPacket docnum=69481 [18:03:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 74 8A 07 01 D0 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 ED 45 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 69 0F 01 00 35 04 06 00 83 7B 98 DB EC 0B 9D 51 D6 CF C0 10 80 0C [18:03:26]CheckFolder [18:03:26]dirname=/storage/ofd_packets [18:03:26]CheckFolder done [18:03:26]ProducePacketName [18:03:26]name=ofd_packets/00069481 [18:03:26]NVStorageSaveData ofd_packets/00069481 [18:03:26]File name is /storage/ofd_packets/00069481 [18:03:26]Write 301 bytes [18:03:26]NVStorageSaveData done [18:03:26]OFDSenderStorePacket done [18:03:26]KKMCreateOFDPacket done [18:03:26]NVStorageSaveData kkm_last_timestamp [18:03:26]File name is /storage/kkm_last_timestamp [18:03:26]Write 4 bytes [18:03:26]NVStorageSaveData done [18:03:26]ExternCall_PrintAddStr [18:03:26]wPrintStart [18:03:26]Write to MH i2c: 01 00 00 B9 00 B9 [18:03:26]Write i2c OK [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: 01 [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: 01 07 00 [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: 01 07 00 B9 00 00 00 00 00 00 FF 0F CE [18:03:26]RasterBufferAndPrint [18:03:26]line Счет N : (1)2885216 [18:03:26]line ИНН: 02508201610067 [18:03:26]line Контрольно-Кассовый Чек [18:03:26]line ПРОДАЖА [18:03:26]line ТРК (МРК, ГНК) : 22 [18:03:26]line Товар: 2710124130 [18:03:26]line Аи-92-К-5 [18:03:26]line 12.710 * 66.90 [18:03:26]line = 850.30 [18:03:26]line НДС 12% НСП 1% [18:03:26]line > о реализуемом товаре [18:03:26]line ОКРУГЛЕНИЕ: -0.30 [18:03:26]line ИТОГО: 850.00 [18:03:26]line Внесено: 850.00 [18:03:26]line СДАЧА: 0.00 [18:03:26]line НСП 1% : 7.52 [18:03:26]line НДС 12% : 90.30 [18:03:26]line Наличными: 850.00 [18:03:26]line Безнал.: 0.00 [18:03:26]line Место: АЗС № 85 "Партнер Нефть" [18:03:26]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:03:26]line СНО: Общий режим [18:03:26]line Чек 326 20.10.2024 18:03 [18:03:26]line Смена: 193 ФФД: 1.0 [18:03:26]line ЗНМ: 0300000167 [18:03:26]line РНМ: 0000000000156251 [18:03:26]line Версия ККМ: v1.0 [18:03:26]line ФМ: 0000000000963346 [18:03:26]line ФД: 69481 [18:03:26]line ФПД: 144566868765707 [18:03:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180325&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69481&fm=144566868765707&tin=02508201610067®Number=0000000000156251&sum=85000 [18:03:26]written 0, free lines is 4095 [18:03:26]OFD Sender: Processing packet 69481 [packets to send 18, broken 17] [18:03:26]ProducePacketName [18:03:26]name=ofd_packets/00069481 [18:03:26]OFD Sender: To server: pG, [18:03:26]CommunicateWithHost lk.salyk.kg:30040 [18:03:26]ConnectInit lk.salyk.kg [18:03:26]Connected sock=7 [18:03:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 74 8A 07 01 D0 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 ED 45 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 69 0F 01 00 35 04 06 00 83 7B 98 DB EC 0B 9D 51 D6 CF C0 10 80 0C [18:03:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 4A BD 47 00 CC 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 69 0F 01 00 F4 03 04 00 93 EF 14 67 B6 04 01 00 00 02 15 FB 19 35 55 6F 98 [18:03:27]CommunicateWithHost err = 0 [18:03:27]CheckOFDResponse [18:03:27]1017 (14) - 77093643461234 [18:03:27]1041 (16) - 0000000000963346 [18:03:27]1040 (4) - 69481 [18:03:27]1012 (4) - 20.10.2024 11:54 [18:03:27]1206 (1) - 0 [18:03:27]OFD Sender: Remove packet 69481 [18:03:27]ProducePacketName [18:03:27]name=ofd_packets/00069481 [18:03:27]NVStorageDeleteData [18:03:27]Write to MH i2c: 01 00 00 E4 00 E4 [18:03:27]Write i2c OK [18:03:27]MH_I2C_Read... [18:03:27]Read from MH i2c: 01 [18:03:27]MH_I2C_Read... [18:03:27]Read from MH i2c: 01 07 00 [18:03:27]MH_I2C_Read... [18:03:27]Read from MH i2c: 01 07 00 E4 00 00 00 00 00 00 00 0D F8 [18:03:27]RasterBufferAndPrint [18:03:27]line [18:03:27]line [18:03:27]line [18:03:27]line [18:03:27]line [18:03:27]written 0, free lines is 3337 [18:03:27]MH_Cut [18:03:27]Write to MH i2c: D1 01 00 EB 00 01 BD [18:03:27]Write i2c OK [18:03:27]MH_I2C_Read... [18:03:27]Read from MH i2c: D1 [18:03:27]MH_I2C_Read... [18:03:27]Read from MH i2c: D1 01 00 [18:03:27]MH_I2C_Read... [18:03:27]Read from MH i2c: D1 01 00 EB 00 00 BC [18:03:27]Write to MH i2c: 01 00 00 EC 00 EC [18:03:27]Write i2c OK [18:03:27]MH_I2C_Read... [18:03:27]OFD Sender: No OFD packet to send [18:03:27]*** Cut start [18:03:27]*** Partial cut [18:03:27]*** CUTSNS_PIN = 1 [18:03:27]*** CUTSNS_PIN = 0 [18:03:28]*** Brake cut motor [18:03:28]Read from MH i2c: 01 [18:03:28]MH_I2C_Read... [18:03:28]*** Stop cut motor [18:03:28]*** Cut end [18:03:28]Read from MH i2c: 01 07 00 [18:03:28]MH_I2C_Read... [18:03:28]Read from MH i2c: 01 07 00 EC 00 00 00 00 00 00 FF 0F 01 [18:03:28]process_action close_receipt done [18:03:28]requested_data is exist [18:03:28]produce_requested_data [18:03:28]requested_item fm.sn is exist - process it [18:03:28]wFMCommunicate request_size=4 [18:03:28]MH_SAM_APDU [18:03:28]CAPDU: 80 11 00 00 [18:03:28]Write to MH i2c: E2 08 00 ED 00 80 11 00 00 00 00 00 00 67 [18:03:28]Write i2c OK [18:03:28]MH_I2C_Read... [18:03:28]Read from MH i2c: E2 [18:03:28]MH_I2C_Read... [18:03:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:28]Read from MH i2c: E2 17 00 [18:03:28]MH_I2C_Read... [18:03:28]Read from MH i2c: E2 17 00 ED 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B9 [18:03:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:03:28]wFMCommunicate OK [18:03:28]requested_item fd.num is exist - process it [18:03:28]SAM_PROTO_GetFieldsCounters [18:03:28]wFMCommunicate request_size=4 [18:03:28]MH_SAM_APDU [18:03:28]CAPDU: 80 13 00 00 [18:03:28]Write to MH i2c: E2 08 00 EE 00 80 13 00 00 00 00 00 00 6A [18:03:28]Write i2c OK [18:03:28]MH_I2C_Read... [18:03:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:28]Read from MH i2c: E2 [18:03:28]MH_I2C_Read... [18:03:28]Read from MH i2c: E2 62 00 [18:03:28]MH_I2C_Read... [18:03:28]Read from MH i2c: E2 62 00 EE 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 69 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 94 [18:03:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 69 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:03:28]wFMCommunicate OK [18:03:28]SAM_PROTO_GetFieldsCounters done [18:03:28]requested_item shift.num is exist - process it [18:03:28]requested_item shift.opened is exist - process it [18:03:28]req_shift_opened [18:03:28]FM_GetShiftState [18:03:28]SAM_PROTO_GetShiftState [18:03:28]wFMCommunicate request_size=4 [18:03:28]MH_SAM_APDU [18:03:28]CAPDU: 80 13 01 00 [18:03:28]Write to MH i2c: E2 08 00 EF 00 80 13 01 00 00 00 00 00 6C [18:03:28]Write i2c OK [18:03:28]MH_I2C_Read... [18:03:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:28]Read from MH i2c: E2 [18:03:28]MH_I2C_Read... [18:03:28]Read from MH i2c: E2 0E 00 [18:03:28]MH_I2C_Read... [18:03:28]Read from MH i2c: E2 0E 00 EF 00 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 72 [18:03:28]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:03:28]wFMCommunicate OK [18:03:28]SAM_PROTO_GetShiftState done [18:03:28]FM_GetShiftState done [18:03:28]req_shift_opened done [18:03:28]requested_item shift.open_date is exist - process it [18:03:28]req_shift_open_date [18:03:28]req_shift_open_date done [18:03:28]produce_requested_data done [18:03:28]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69481,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [18:03:28]process_action_free close_receipt [18:03:28]json_value_free [18:03:28]json_value_free done [18:03:28]process_json_proto returns [18:03:28]Send response to host [18:03:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69481,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [18:03:28]free response buf [18:03:28]execute_script done [18:03:28]execute_script returns [18:03:28]free content buf [18:03:28]Sock 9.Close socket [18:03:28]Sock 9.Thread stoped [18:03:32]OFD Sender: No OFD packet to send [18:03:37]OFD Sender: No OFD packet to send [18:03:42]accept exits with 10 [18:03:42]New connection [18:03:42]New thread 3066654052 created [18:03:42]Thread 3066797412 joined [18:03:42]Waiting for new connection... [18:03:42] Sock 10.Parse request [18:03:42]Sock 10.Check first char [18:03:42]Sock 10.First char is OK [18:03:42]request: POST /json_proto HTTP/1.0 [18:03:42]Method: POST [18:03:42]URL: /json_proto [18:03:42]Method is POST - this is cgi request [18:03:42]url: /json_proto [18:03:42]query_string will be loaded in cgi processing [18:03:42]execute_cgi json_proto POST (null) [18:03:42]execute_cgi path=json_proto method=POST [18:03:42]POST find Content-Length [18:03:42]Host: 172.17.50.3:8080 [18:03:42]Content-Length: 680 [18:03:42]Content-Type: application/json [18:03:42] [18:03:42]POST finish read [18:03:42]Found Content-Length = 680 [18:03:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:42]execute_script... [18:03:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:42]POST & json_proto [18:03:42]process_json_proto [18:03:42]json parsed OK: [18:03:42]protocol is kg_v1.0 [18:03:42]action value=close_receipt [18:03:42]process_action close_receipt [18:03:42]cmd_close_receipt [18:03:42]MH_GetDate [18:03:42]Write to MH i2c: F0 00 00 F0 00 DF [18:03:42]Write i2c OK [18:03:42]MH_I2C_Read... [18:03:42]Read from MH i2c: F0 [18:03:42]MH_I2C_Read... [18:03:42]Read from MH i2c: F0 09 00 [18:03:42]MH_I2C_Read... [18:03:42]Read from MH i2c: F0 09 00 F0 00 00 FE 45 15 67 6B 98 1E 66 2E [18:03:42]GetLastDocTimeStamp 1729447405 [18:03:42]current date 1729447422 [18:03:42]FM_GetShiftState [18:03:42]SAM_PROTO_GetShiftState [18:03:42]wFMCommunicate request_size=4 [18:03:42]MH_SAM_APDU [18:03:42]CAPDU: 80 13 01 00 [18:03:42]Write to MH i2c: E2 08 00 F1 00 80 13 01 00 00 00 00 00 6E [18:03:42]Write i2c OK [18:03:42]MH_I2C_Read... [18:03:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:42]Read from MH i2c: E2 [18:03:42]MH_I2C_Read... [18:03:42]Read from MH i2c: E2 0E 00 [18:03:42]MH_I2C_Read... [18:03:42]Read from MH i2c: E2 0E 00 F1 00 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 74 [18:03:42]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:03:42]wFMCommunicate OK [18:03:42]SAM_PROTO_GetShiftState done [18:03:42]FM_GetShiftState done [18:03:42]opened in 1729383220 [18:03:42]opened+sec_in_day 1729469620 [18:03:42]quantity*price = 150037 [18:03:42]sum+1 = 150039 [18:03:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 327 20.10.2024 18:03 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69482 ФПД: 128348585438140 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180342&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69482&fm=128348585438140&tin=02508201610067®Number=0000000000156251&sum=150000 [18:03:43]StoreToDocumentArchive [18:03:43]shift 193 fd 69482 [18:03:43]save to /storage/0193/doc_00069482 [18:03:43]save last doc name /storage/0193/doc_00069482 to /storage/kkm_last_doc_name [18:03:43]save OK [18:03:43]Clear old archive folders... [18:03:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:03:43]tlvbuf is 00F10D90 [18:03:43]SAM_PROTO_ClearQueue [18:03:43]wFMCommunicate request_size=4 [18:03:43]MH_SAM_APDU [18:03:43]CAPDU: 80 09 00 00 [18:03:43]Write to MH i2c: E2 08 00 FE 00 80 09 00 00 00 00 00 00 70 [18:03:43]Write i2c OK [18:03:43]MH_I2C_Read... [18:03:43]Read from MH i2c: E2 [18:03:43]MH_I2C_Read... [18:03:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:43]Read from MH i2c: E2 03 00 [18:03:43]MH_I2C_Read... [18:03:43]Read from MH i2c: E2 03 00 FE 00 00 90 00 72 [18:03:43]RAPDU: 90 00 [18:03:43]wFMCommunicate OK [18:03:43]SAM_PROTO_ClearQueue done [18:03:43]KKMCreateOFDPacket [18:03:43]OFDProtocolAddRootSTLVToBuf [18:03:43]FM_MakeSignedData [18:03:43]FM_MakeSignedData [18:03:43]SAM_PROTO_SignData [18:03:43]wFMCommunicate request_size=4 [18:03:43]MH_SAM_APDU [18:03:43]CAPDU: 80 0D 01 02 [18:03:43]Write to MH i2c: E2 08 00 FF 00 80 0D 01 02 00 00 00 00 78 [18:03:43]Write i2c OK [18:03:43]MH_I2C_Read... [18:03:43]Read from MH i2c: E2 [18:03:43]MH_I2C_Read... [18:03:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:43]Read from MH i2c: E2 03 00 [18:03:43]MH_I2C_Read... [18:03:43]Read from MH i2c: E2 03 00 FF 00 00 90 00 73 [18:03:43]RAPDU: 90 00 [18:03:43]wFMCommunicate OK [18:03:43]wFMCommunicate request_size=255 [18:03:43]MH_SAM_APDU [18:03:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 FE 45 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6A 0F 01 00 35 04 06 00 74 BB 7B D7 [18:03:43]Write to MH i2c: E2 02 01 00 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 FE 45 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6A 0F 01 00 35 04 06 00 74 BB 7B D7 00 00 32 [18:03:43]Write i2c OK [18:03:43]MH_I2C_Read... [18:03:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:43]Read from MH i2c: E2 [18:03:43]MH_I2C_Read... [18:03:43]Read from MH i2c: E2 03 00 [18:03:43]MH_I2C_Read... [18:03:43]Read from MH i2c: E2 03 00 00 01 00 90 00 75 [18:03:43]RAPDU: 90 00 [18:03:43]wFMCommunicate OK [18:03:43]wFMCommunicate request_size=7 [18:03:43]MH_SAM_APDU [18:03:43]CAPDU: 80 0D 02 02 02 AB BC [18:03:43]Write to MH i2c: E2 0A 00 01 01 80 0D 02 02 02 00 AB BC 00 00 E7 [18:03:43]Write i2c OK [18:03:43]MH_I2C_Read... [18:03:43]Read from MH i2c: E2 [18:03:43]MH_I2C_Read... [18:03:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:43]Read from MH i2c: E2 03 00 [18:03:43]MH_I2C_Read... [18:03:43]Read from MH i2c: E2 03 00 01 01 00 90 00 76 [18:03:43]RAPDU: 90 00 [18:03:43]wFMCommunicate OK [18:03:43]wFMCommunicate request_size=4 [18:03:43]MH_SAM_APDU [18:03:43]CAPDU: 80 0D 03 02 [18:03:43]Write to MH i2c: E2 08 00 02 01 80 0D 03 02 00 00 00 00 7E [18:03:43]Write i2c OK [18:03:43]MH_I2C_Read... [18:03:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:43]Read from MH i2c: E2 [18:03:43]MH_I2C_Read... [18:03:43]Read from MH i2c: E2 0B 00 [18:03:43]MH_I2C_Read... [18:03:43]Read from MH i2c: E2 0B 00 02 01 00 79 42 10 01 3D FB 2F 55 90 00 07 [18:03:43]RAPDU: 79 42 10 01 3D FB 2F 55 90 00 [18:03:43]wFMCommunicate OK [18:03:43]SAM_PROTO_SignData done [18:03:43]FM_MakeSignedData done [18:03:43]CreateOFDProtocolMessage [18:03:43]wFMCommunicate request_size=4 [18:03:43]MH_SAM_APDU [18:03:43]CAPDU: 80 11 00 00 [18:03:43]Write to MH i2c: E2 08 00 03 01 80 11 00 00 00 00 00 00 7E [18:03:43]Write i2c OK [18:03:43]MH_I2C_Read... [18:03:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:43]Read from MH i2c: E2 [18:03:43]MH_I2C_Read... [18:03:43]Read from MH i2c: E2 17 00 [18:03:43]MH_I2C_Read... [18:03:43]Read from MH i2c: E2 17 00 03 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D0 [18:03:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:03:43]wFMCommunicate OK [18:03:43]CreateOFDProtocolMessage done [18:03:43]OFDSenderStorePacket 69482 [18:03:43]StoreOFDPacket docnum=69482 [18:03:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 29 63 04 01 23 5C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 FE 45 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6A 0F 01 00 35 04 06 00 74 BB 7B D7 AB BC 79 42 10 01 3D FB 2F 55 [18:03:43]CheckFolder [18:03:43]dirname=/storage/ofd_packets [18:03:43]CheckFolder done [18:03:43]ProducePacketName [18:03:43]name=ofd_packets/00069482 [18:03:43]NVStorageSaveData ofd_packets/00069482 [18:03:43]File name is /storage/ofd_packets/00069482 [18:03:43]Write 298 bytes [18:03:43]NVStorageSaveData done [18:03:43]OFDSenderStorePacket done [18:03:43]KKMCreateOFDPacket done [18:03:43]NVStorageSaveData kkm_last_timestamp [18:03:43]File name is /storage/kkm_last_timestamp [18:03:43]Write 4 bytes [18:03:43]NVStorageSaveData done [18:03:43]ExternCall_PrintAddStr [18:03:43]wPrintStart [18:03:43]Write to MH i2c: 01 00 00 04 01 05 [18:03:43]Write i2c OK [18:03:43]MH_I2C_Read... [18:03:43]Read from MH i2c: 01 [18:03:43]MH_I2C_Read... [18:03:43]Read from MH i2c: 01 07 00 [18:03:43]MH_I2C_Read... [18:03:43]Read from MH i2c: 01 07 00 04 01 00 00 00 00 00 FF 0F 1A [18:03:43]RasterBufferAndPrint [18:03:43]line Счет N : (1)2885215 [18:03:43]line ИНН: 02508201610067 [18:03:43]line Контрольно-Кассовый Чек [18:03:43]line ПРОДАЖА [18:03:43]line ТРК (МРК, ГНК) : 61 [18:03:43]line Товар: 2710194210 [18:03:43]line ДТ-К-5 [18:03:43]line 19.690 * 76.20 [18:03:43]line = 1500.38 [18:03:43]line НДС 12% НСП 1% [18:03:43]line > о реализуемом товаре [18:03:43]line ОКРУГЛЕНИЕ: -0.38 [18:03:43]line ИТОГО: 1500.00 [18:03:43]line Внесено: 1500.00 [18:03:43]line СДАЧА: 0.00 [18:03:43]line НСП 1% : 13.28 [18:03:43]line НДС 12% : 159.33 [18:03:44]line Наличными: 1500.00 [18:03:44]line Безнал.: 0.00 [18:03:44]line Место: АЗС № 85 "Партнер Нефть" [18:03:44]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:03:44]line СНО: Общий режим [18:03:44]line Чек 327 20.10.2024 18:03 [18:03:44]line Смена: 193 ФФД: 1.0 [18:03:44]line ЗНМ: 0300000167 [18:03:44]line РНМ: 0000000000156251 [18:03:44]line Версия ККМ: v1.0 [18:03:44]line ФМ: 0000000000963346 [18:03:44]line ФД: 69482 [18:03:44]line ФПД: 128348585438140 [18:03:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180342&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69482&fm=128348585438140&tin=02508201610067®Number=0000000000156251&sum=150000 [18:03:44]OFD Sender: Processing packet 69482 [packets to send 18, broken 17] [18:03:44]ProducePacketName [18:03:44]name=ofd_packets/00069482 [18:03:44]OFD Sender: To server: pG, [18:03:44]CommunicateWithHost lk.salyk.kg:30040 [18:03:44]ConnectInit lk.salyk.kg [18:03:44]written 0, free lines is 4095 [18:03:44]Connected sock=9 [18:03:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 29 63 04 01 23 5C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 FE 45 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6A 0F 01 00 35 04 06 00 74 BB 7B D7 AB BC 79 42 10 01 3D FB 2F 55 [18:03:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 7B 7C 47 00 12 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6A 0F 01 00 F4 03 04 00 A4 EF 14 67 B6 04 01 00 00 26 78 41 67 2F 53 83 F7 [18:03:44]CommunicateWithHost err = 0 [18:03:44]CheckOFDResponse [18:03:44]1017 (14) - 77093643461234 [18:03:44]1041 (16) - 0000000000963346 [18:03:44]1040 (4) - 69482 [18:03:44]1012 (4) - 20.10.2024 11:55 [18:03:44]1206 (1) - 0 [18:03:44]OFD Sender: Remove packet 69482 [18:03:44]ProducePacketName [18:03:44]name=ofd_packets/00069482 [18:03:44]NVStorageDeleteData [18:03:44]Write to MH i2c: 01 00 00 2F 01 30 [18:03:44]Write i2c OK [18:03:44]MH_I2C_Read... [18:03:44]Read from MH i2c: 01 [18:03:44]MH_I2C_Read... [18:03:44]Read from MH i2c: 01 07 00 [18:03:44]MH_I2C_Read... [18:03:44]Read from MH i2c: 01 07 00 2F 01 00 00 00 00 00 12 0D 56 [18:03:44]RasterBufferAndPrint [18:03:44]line [18:03:44]line [18:03:44]line [18:03:44]line [18:03:44]line [18:03:44]written 0, free lines is 3357 [18:03:44]MH_Cut [18:03:44]Write to MH i2c: D1 01 00 36 01 01 09 [18:03:44]Write i2c OK [18:03:44]MH_I2C_Read... [18:03:44]Read from MH i2c: D1 [18:03:44]MH_I2C_Read... [18:03:44]Read from MH i2c: D1 01 00 [18:03:44]MH_I2C_Read... [18:03:44]Read from MH i2c: D1 01 00 36 01 00 08 [18:03:44]Write to MH i2c: 01 00 00 37 01 38 [18:03:44]Write i2c OK [18:03:44]MH_I2C_Read... [18:03:44]OFD Sender: No OFD packet to send [18:03:45]*** Cut start [18:03:45]*** Partial cut [18:03:45]*** CUTSNS_PIN = 1 [18:03:45]*** CUTSNS_PIN = 0 [18:03:45]*** Brake cut motor [18:03:45]Read from MH i2c: 01 [18:03:45]MH_I2C_Read... [18:03:45]*** Stop cut motor [18:03:45]*** Cut end [18:03:45]Read from MH i2c: 01 07 00 [18:03:45]MH_I2C_Read... [18:03:45]Read from MH i2c: 01 07 00 37 01 00 00 00 00 00 FF 0F 4D [18:03:45]process_action close_receipt done [18:03:45]requested_data is exist [18:03:45]produce_requested_data [18:03:45]requested_item fm.sn is exist - process it [18:03:45]wFMCommunicate request_size=4 [18:03:45]MH_SAM_APDU [18:03:45]CAPDU: 80 11 00 00 [18:03:45]Write to MH i2c: E2 08 00 38 01 80 11 00 00 00 00 00 00 B3 [18:03:45]Write i2c OK [18:03:45]MH_I2C_Read... [18:03:45]Read from MH i2c: E2 [18:03:45]MH_I2C_Read... [18:03:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:45]Read from MH i2c: E2 17 00 [18:03:45]MH_I2C_Read... [18:03:45]Read from MH i2c: E2 17 00 38 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 05 [18:03:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:03:45]wFMCommunicate OK [18:03:45]requested_item fd.num is exist - process it [18:03:45]SAM_PROTO_GetFieldsCounters [18:03:45]wFMCommunicate request_size=4 [18:03:45]MH_SAM_APDU [18:03:45]CAPDU: 80 13 00 00 [18:03:45]Write to MH i2c: E2 08 00 39 01 80 13 00 00 00 00 00 00 B6 [18:03:45]Write i2c OK [18:03:45]MH_I2C_Read... [18:03:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:45]Read from MH i2c: E2 [18:03:45]MH_I2C_Read... [18:03:45]Read from MH i2c: E2 62 00 [18:03:45]MH_I2C_Read... [18:03:45]Read from MH i2c: E2 62 00 39 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6A 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 E4 [18:03:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6A 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:03:45]wFMCommunicate OK [18:03:45]SAM_PROTO_GetFieldsCounters done [18:03:45]requested_item shift.num is exist - process it [18:03:45]requested_item shift.opened is exist - process it [18:03:45]req_shift_opened [18:03:45]FM_GetShiftState [18:03:45]SAM_PROTO_GetShiftState [18:03:45]wFMCommunicate request_size=4 [18:03:45]MH_SAM_APDU [18:03:45]CAPDU: 80 13 01 00 [18:03:45]Write to MH i2c: E2 08 00 3A 01 80 13 01 00 00 00 00 00 B8 [18:03:45]Write i2c OK [18:03:45]MH_I2C_Read... [18:03:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:46]Read from MH i2c: E2 [18:03:46]MH_I2C_Read... [18:03:46]Read from MH i2c: E2 0E 00 [18:03:46]MH_I2C_Read... [18:03:46]Read from MH i2c: E2 0E 00 3A 01 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 BE [18:03:46]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:03:46]wFMCommunicate OK [18:03:46]SAM_PROTO_GetShiftState done [18:03:46]FM_GetShiftState done [18:03:46]req_shift_opened done [18:03:46]requested_item shift.open_date is exist - process it [18:03:46]req_shift_open_date [18:03:46]req_shift_open_date done [18:03:46]produce_requested_data done [18:03:46]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69482,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [18:03:46]process_action_free close_receipt [18:03:46]json_value_free [18:03:46]json_value_free done [18:03:46]process_json_proto returns [18:03:46]Send response to host [18:03:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69482,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [18:03:46]free response buf [18:03:46]execute_script done [18:03:46]execute_script returns [18:03:46]free content buf [18:03:46]Sock 10.Close socket [18:03:46]Sock 10.Thread stoped [18:03:49]OFD Sender: No OFD packet to send [18:03:54]OFD Sender: No OFD packet to send [18:03:59]OFD Sender: No OFD packet to send [18:04:04]OFD Sender: No OFD packet to send [18:04:09]OFD Sender: No OFD packet to send [18:04:14]OFD Sender: No OFD packet to send [18:04:19]OFD Sender: No OFD packet to send [18:04:24]OFD Sender: No OFD packet to send [18:04:29]OFD Sender: No OFD packet to send [18:04:34]OFD Sender: No OFD packet to send [18:04:39]OFD Sender: No OFD packet to send [18:04:44]OFD Sender: No OFD packet to send [18:04:49]OFD Sender: No OFD packet to send [18:04:54]OFD Sender: No OFD packet to send [18:04:59]OFD Sender: No OFD packet to send [18:05:04]OFD Sender: No OFD packet to send [18:05:09]OFD Sender: No OFD packet to send [18:05:14]OFD Sender: No OFD packet to send [18:05:19]OFD Sender: No OFD packet to send [18:05:24]OFD Sender: No OFD packet to send [18:05:29]OFD Sender: No OFD packet to send [18:05:34]OFD Sender: No OFD packet to send [18:05:39]OFD Sender: No OFD packet to send [18:05:44]OFD Sender: No OFD packet to send [18:05:49]OFD Sender: No OFD packet to send [18:05:54]OFD Sender: No OFD packet to send [18:05:59]OFD Sender: No OFD packet to send [18:06:04]OFD Sender: No OFD packet to send [18:06:09]OFD Sender: No OFD packet to send [18:06:14]OFD Sender: No OFD packet to send [18:06:19]OFD Sender: No OFD packet to send [18:06:24]OFD Sender: No OFD packet to send [18:06:29]OFD Sender: No OFD packet to send [18:06:34]OFD Sender: No OFD packet to send [18:06:37]accept exits with 7 [18:06:37]New connection [18:06:37]New thread 3066797412 created [18:06:37]Thread 3066654052 joined [18:06:37]Waiting for new connection... [18:06:37] Sock 7.Parse request [18:06:37]Sock 7.Check first char [18:06:37]Sock 7.First char is OK [18:06:37]request: POST /json_proto HTTP/1.0 [18:06:37]Method: POST [18:06:37]URL: /json_proto [18:06:37]Method is POST - this is cgi request [18:06:37]url: /json_proto [18:06:37]query_string will be loaded in cgi processing [18:06:37]execute_cgi json_proto POST (null) [18:06:37]execute_cgi path=json_proto method=POST [18:06:37]POST find Content-Length [18:06:37]Host: 172.17.50.3:8080 [18:06:37]Content-Length: 678 [18:06:37]Content-Type: application/json [18:06:37] [18:06:37]POST finish read [18:06:37]Found Content-Length = 678 [18:06:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:06:37]execute_script... [18:06:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:06:37]POST & json_proto [18:06:37]process_json_proto [18:06:37]json parsed OK: [18:06:37]protocol is kg_v1.0 [18:06:37]action value=close_receipt [18:06:37]process_action close_receipt [18:06:37]cmd_close_receipt [18:06:37]MH_GetDate [18:06:37]Write to MH i2c: F0 00 00 3B 01 2B [18:06:37]Write i2c OK [18:06:37]MH_I2C_Read... [18:06:37]Read from MH i2c: F0 [18:06:37]MH_I2C_Read... [18:06:37]Read from MH i2c: F0 09 00 [18:06:37]MH_I2C_Read... [18:06:37]Read from MH i2c: F0 09 00 3B 01 00 AD 46 15 67 6B 98 1E 66 2A [18:06:37]GetLastDocTimeStamp 1729447422 [18:06:37]current date 1729447597 [18:06:37]FM_GetShiftState [18:06:37]SAM_PROTO_GetShiftState [18:06:37]wFMCommunicate request_size=4 [18:06:37]MH_SAM_APDU [18:06:37]CAPDU: 80 13 01 00 [18:06:37]Write to MH i2c: E2 08 00 3C 01 80 13 01 00 00 00 00 00 BA [18:06:37]Write i2c OK [18:06:37]MH_I2C_Read... [18:06:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:37]Read from MH i2c: E2 [18:06:37]MH_I2C_Read... [18:06:37]Read from MH i2c: E2 0E 00 [18:06:37]MH_I2C_Read... [18:06:37]Read from MH i2c: E2 0E 00 3C 01 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 C0 [18:06:37]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:06:37]wFMCommunicate OK [18:06:37]SAM_PROTO_GetShiftState done [18:06:37]FM_GetShiftState done [18:06:37]opened in 1729383220 [18:06:37]opened+sec_in_day 1729469620 [18:06:37]quantity*price = 50041 [18:06:37]sum+1 = 50042 [18:06:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 328 20.10.2024 18:06 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69483 ФПД: 244192443316933 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180638&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69483&fm=244192443316933&tin=02508201610067®Number=0000000000156251&sum=50000 [18:06:38]StoreToDocumentArchive [18:06:38]shift 193 fd 69483 [18:06:38]save to /storage/0193/doc_00069483 [18:06:38]save last doc name /storage/0193/doc_00069483 to /storage/kkm_last_doc_name [18:06:38]save OK [18:06:38]Clear old archive folders... [18:06:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:06:38]tlvbuf is 00F296E0 [18:06:38]SAM_PROTO_ClearQueue [18:06:38]wFMCommunicate request_size=4 [18:06:38]MH_SAM_APDU [18:06:38]CAPDU: 80 09 00 00 [18:06:38]Write to MH i2c: E2 08 00 49 01 80 09 00 00 00 00 00 00 BC [18:06:38]Write i2c OK [18:06:38]MH_I2C_Read... [18:06:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:06:38]Read from MH i2c: E2 [18:06:38]MH_I2C_Read... [18:06:38]Read from MH i2c: E2 03 00 [18:06:38]MH_I2C_Read... [18:06:38]Read from MH i2c: E2 03 00 49 01 00 90 00 BE [18:06:38]RAPDU: 90 00 [18:06:38]wFMCommunicate OK [18:06:38]SAM_PROTO_ClearQueue done [18:06:38]KKMCreateOFDPacket [18:06:38]OFDProtocolAddRootSTLVToBuf [18:06:38]FM_MakeSignedData [18:06:38]FM_MakeSignedData [18:06:38]SAM_PROTO_SignData [18:06:38]wFMCommunicate request_size=4 [18:06:38]MH_SAM_APDU [18:06:38]CAPDU: 80 0D 01 02 [18:06:38]Write to MH i2c: E2 08 00 4A 01 80 0D 01 02 00 00 00 00 C4 [18:06:38]Write i2c OK [18:06:38]MH_I2C_Read... [18:06:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:06:38]Read from MH i2c: E2 [18:06:38]MH_I2C_Read... [18:06:38]Read from MH i2c: E2 03 00 [18:06:38]MH_I2C_Read... [18:06:38]Read from MH i2c: E2 03 00 4A 01 00 90 00 BF [18:06:38]RAPDU: 90 00 [18:06:38]wFMCommunicate OK [18:06:38]wFMCommunicate request_size=255 [18:06:38]MH_SAM_APDU [18:06:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 AE 46 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6B 0F 01 00 35 04 06 00 DE [18:06:38]Write to MH i2c: E2 02 01 4B 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 AE 46 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6B 0F 01 00 35 04 06 00 DE 00 00 20 [18:06:38]Write i2c OK [18:06:38]MH_I2C_Read... [18:06:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:39]Read from MH i2c: E2 [18:06:39]MH_I2C_Read... [18:06:39]Read from MH i2c: E2 03 00 [18:06:39]MH_I2C_Read... [18:06:39]Read from MH i2c: E2 03 00 4B 01 00 90 00 C0 [18:06:39]RAPDU: 90 00 [18:06:39]wFMCommunicate OK [18:06:39]wFMCommunicate request_size=10 [18:06:39]MH_SAM_APDU [18:06:39]CAPDU: 80 0D 02 02 05 17 7B D7 3A C5 [18:06:39]Write to MH i2c: E2 0D 00 4C 01 80 0D 02 02 05 00 17 7B D7 3A C5 00 00 39 [18:06:39]Write i2c OK [18:06:39]MH_I2C_Read... [18:06:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:39]Read from MH i2c: E2 [18:06:39]MH_I2C_Read... [18:06:39]Read from MH i2c: E2 03 00 [18:06:39]MH_I2C_Read... [18:06:39]Read from MH i2c: E2 03 00 4C 01 00 90 00 C1 [18:06:39]RAPDU: 90 00 [18:06:39]wFMCommunicate OK [18:06:39]wFMCommunicate request_size=4 [18:06:39]MH_SAM_APDU [18:06:39]CAPDU: 80 0D 03 02 [18:06:39]Write to MH i2c: E2 08 00 4D 01 80 0D 03 02 00 00 00 00 C9 [18:06:39]Write i2c OK [18:06:39]MH_I2C_Read... [18:06:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:06:39]Read from MH i2c: E2 [18:06:39]MH_I2C_Read... [18:06:39]Read from MH i2c: E2 0B 00 [18:06:39]MH_I2C_Read... [18:06:39]Read from MH i2c: E2 0B 00 4D 01 00 11 88 AE 81 92 A3 55 E5 90 00 01 [18:06:39]RAPDU: 11 88 AE 81 92 A3 55 E5 90 00 [18:06:39]wFMCommunicate OK [18:06:39]SAM_PROTO_SignData done [18:06:39]FM_MakeSignedData done [18:06:39]CreateOFDProtocolMessage [18:06:39]wFMCommunicate request_size=4 [18:06:39]MH_SAM_APDU [18:06:39]CAPDU: 80 11 00 00 [18:06:39]Write to MH i2c: E2 08 00 4E 01 80 11 00 00 00 00 00 00 C9 [18:06:39]Write i2c OK [18:06:39]MH_I2C_Read... [18:06:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:39]Read from MH i2c: E2 [18:06:39]MH_I2C_Read... [18:06:39]Read from MH i2c: E2 17 00 [18:06:39]MH_I2C_Read... [18:06:39]Read from MH i2c: E2 17 00 4E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1B [18:06:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:06:39]wFMCommunicate OK [18:06:39]CreateOFDProtocolMessage done [18:06:39]OFDSenderStorePacket 69483 [18:06:39]StoreOFDPacket docnum=69483 [18:06:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A2 81 07 01 A0 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 AE 46 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6B 0F 01 00 35 04 06 00 DE 17 7B D7 3A C5 11 88 AE 81 92 A3 55 E5 [18:06:39]CheckFolder [18:06:39]dirname=/storage/ofd_packets [18:06:39]CheckFolder done [18:06:39]ProducePacketName [18:06:39]name=ofd_packets/00069483 [18:06:39]NVStorageSaveData ofd_packets/00069483 [18:06:39]File name is /storage/ofd_packets/00069483 [18:06:39]Write 301 bytes [18:06:39]NVStorageSaveData done [18:06:39]OFDSenderStorePacket done [18:06:39]KKMCreateOFDPacket done [18:06:39]NVStorageSaveData kkm_last_timestamp [18:06:39]File name is /storage/kkm_last_timestamp [18:06:39]Write 4 bytes [18:06:39]NVStorageSaveData done [18:06:39]ExternCall_PrintAddStr [18:06:39]wPrintStart [18:06:39]Write to MH i2c: 01 00 00 4F 01 50 [18:06:39]Write i2c OK [18:06:39]MH_I2C_Read... [18:06:39]Read from MH i2c: 01 [18:06:39]MH_I2C_Read... [18:06:39]Read from MH i2c: 01 07 00 [18:06:39]MH_I2C_Read... [18:06:39]Read from MH i2c: 01 07 00 4F 01 00 00 00 00 00 FF 0F 65 [18:06:39]RasterBufferAndPrint [18:06:39]line Счет N : (1)2885217 [18:06:39]line ИНН: 02508201610067 [18:06:39]line Контрольно-Кассовый Чек [18:06:39]line ПРОДАЖА [18:06:39]line ТРК (МРК, ГНК) : 32 [18:06:39]line Товар: 2710124130 [18:06:39]line Аи-92-К-5 [18:06:39]line 7.480 * 66.90 [18:06:39]line = 500.41 [18:06:39]line НДС 12% НСП 1% [18:06:39]line > о реализуемом товаре [18:06:39]line ОКРУГЛЕНИЕ: -0.41 [18:06:39]line ИТОГО: 500.00 [18:06:39]line Внесено: 500.00 [18:06:39]line СДАЧА: 0.00 [18:06:39]line НСП 1% : 4.43 [18:06:39]line НДС 12% : 53.14 [18:06:39]line Наличными: 500.00 [18:06:39]line Безнал.: 0.00 [18:06:39]line Место: АЗС № 85 "Партнер Нефть" [18:06:39]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:06:39]line СНО: Общий режим [18:06:39]line Чек 328 20.10.2024 18:06 [18:06:39]line Смена: 193 ФФД: 1.0 [18:06:39]line ЗНМ: 0300000167 [18:06:39]line РНМ: 0000000000156251 [18:06:39]line Версия ККМ: v1.0 [18:06:39]line ФМ: 0000000000963346 [18:06:39]line ФД: 69483 [18:06:39]line ФПД: 244192443316933 [18:06:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180638&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69483&fm=244192443316933&tin=02508201610067®Number=0000000000156251&sum=50000 [18:06:39]written 0, free lines is 4095 [18:06:39]OFD Sender: Processing packet 69483 [packets to send 18, broken 17] [18:06:39]ProducePacketName [18:06:39]name=ofd_packets/00069483 [18:06:39]OFD Sender: To server: pG, [18:06:39]CommunicateWithHost lk.salyk.kg:30040 [18:06:39]ConnectInit lk.salyk.kg [18:06:39]Connected sock=10 [18:06:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A2 81 07 01 A0 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 AE 46 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6B 0F 01 00 35 04 06 00 DE 17 7B D7 3A C5 11 88 AE 81 92 A3 55 E5 [18:06:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 30 67 47 00 5D 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6B 0F 01 00 F4 03 04 00 53 F0 14 67 B6 04 01 00 00 2A 97 5B 15 B7 97 37 E0 [18:06:39]CommunicateWithHost err = 0 [18:06:39]CheckOFDResponse [18:06:39]1017 (14) - 77093643461234 [18:06:39]1041 (16) - 0000000000963346 [18:06:39]1040 (4) - 69483 [18:06:39]1012 (4) - 20.10.2024 11:58 [18:06:39]1206 (1) - 0 [18:06:39]OFD Sender: Remove packet 69483 [18:06:39]ProducePacketName [18:06:39]name=ofd_packets/00069483 [18:06:39]NVStorageDeleteData [18:06:39]Write to MH i2c: 01 00 00 7A 01 7B [18:06:39]Write i2c OK [18:06:39]MH_I2C_Read... [18:06:39]Read from MH i2c: 01 [18:06:39]MH_I2C_Read... [18:06:39]Read from MH i2c: 01 07 00 [18:06:39]MH_I2C_Read... [18:06:39]Read from MH i2c: 01 07 00 7A 01 00 00 00 00 00 F4 0C 82 [18:06:39]RasterBufferAndPrint [18:06:39]line [18:06:39]line [18:06:39]line [18:06:39]line [18:06:39]line [18:06:39]written 0, free lines is 3322 [18:06:39]MH_Cut [18:06:39]Write to MH i2c: D1 01 00 81 01 01 54 [18:06:39]Write i2c OK [18:06:39]MH_I2C_Read... [18:06:39]Read from MH i2c: D1 [18:06:39]MH_I2C_Read... [18:06:39]Read from MH i2c: D1 01 00 [18:06:39]MH_I2C_Read... [18:06:39]Read from MH i2c: D1 01 00 81 01 00 53 [18:06:39]Write to MH i2c: 01 00 00 82 01 83 [18:06:39]Write i2c OK [18:06:39]MH_I2C_Read... [18:06:40]OFD Sender: No OFD packet to send [18:06:40]*** Cut start [18:06:40]*** Partial cut [18:06:40]*** CUTSNS_PIN = 1 [18:06:40]*** CUTSNS_PIN = 0 [18:06:40]*** Brake cut motor [18:06:41]Read from MH i2c: 01 [18:06:41]MH_I2C_Read... [18:06:41]*** Stop cut motor [18:06:41]*** Cut end [18:06:41]Read from MH i2c: 01 07 00 [18:06:41]MH_I2C_Read... [18:06:41]Read from MH i2c: 01 07 00 82 01 00 00 00 00 00 FF 0F 98 [18:06:41]process_action close_receipt done [18:06:41]requested_data is exist [18:06:41]produce_requested_data [18:06:41]requested_item fm.sn is exist - process it [18:06:41]wFMCommunicate request_size=4 [18:06:41]MH_SAM_APDU [18:06:41]CAPDU: 80 11 00 00 [18:06:41]Write to MH i2c: E2 08 00 83 01 80 11 00 00 00 00 00 00 FE [18:06:41]Write i2c OK [18:06:41]MH_I2C_Read... [18:06:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:41]Read from MH i2c: E2 [18:06:41]MH_I2C_Read... [18:06:41]Read from MH i2c: E2 17 00 [18:06:41]MH_I2C_Read... [18:06:41]Read from MH i2c: E2 17 00 83 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 50 [18:06:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:06:41]wFMCommunicate OK [18:06:41]requested_item fd.num is exist - process it [18:06:41]SAM_PROTO_GetFieldsCounters [18:06:41]wFMCommunicate request_size=4 [18:06:41]MH_SAM_APDU [18:06:41]CAPDU: 80 13 00 00 [18:06:41]Write to MH i2c: E2 08 00 84 01 80 13 00 00 00 00 00 00 01 [18:06:41]Write i2c OK [18:06:41]MH_I2C_Read... [18:06:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:06:41]Read from MH i2c: E2 [18:06:41]MH_I2C_Read... [18:06:41]Read from MH i2c: E2 62 00 [18:06:41]MH_I2C_Read... [18:06:41]Read from MH i2c: E2 62 00 84 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6B 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 33 [18:06:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6B 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:06:41]wFMCommunicate OK [18:06:41]SAM_PROTO_GetFieldsCounters done [18:06:41]requested_item shift.num is exist - process it [18:06:41]requested_item shift.opened is exist - process it [18:06:41]req_shift_opened [18:06:41]FM_GetShiftState [18:06:41]SAM_PROTO_GetShiftState [18:06:41]wFMCommunicate request_size=4 [18:06:41]MH_SAM_APDU [18:06:41]CAPDU: 80 13 01 00 [18:06:41]Write to MH i2c: E2 08 00 85 01 80 13 01 00 00 00 00 00 03 [18:06:41]Write i2c OK [18:06:41]MH_I2C_Read... [18:06:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:41]Read from MH i2c: E2 [18:06:41]MH_I2C_Read... [18:06:41]Read from MH i2c: E2 0E 00 [18:06:41]MH_I2C_Read... [18:06:41]Read from MH i2c: E2 0E 00 85 01 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 09 [18:06:41]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:06:41]wFMCommunicate OK [18:06:41]SAM_PROTO_GetShiftState done [18:06:41]FM_GetShiftState done [18:06:41]req_shift_opened done [18:06:41]requested_item shift.open_date is exist - process it [18:06:41]req_shift_open_date [18:06:41]req_shift_open_date done [18:06:41]produce_requested_data done [18:06:41]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69483,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [18:06:41]process_action_free close_receipt [18:06:41]json_value_free [18:06:41]json_value_free done [18:06:41]process_json_proto returns [18:06:41]Send response to host [18:06:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69483,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [18:06:41]free response buf [18:06:41]execute_script done [18:06:41]execute_script returns [18:06:41]free content buf [18:06:41]Sock 7.Close socket [18:06:41]Sock 7.Thread stoped [18:06:45]OFD Sender: No OFD packet to send [18:06:50]OFD Sender: No OFD packet to send [18:06:55]OFD Sender: No OFD packet to send [18:07:00]OFD Sender: No OFD packet to send [18:07:05]OFD Sender: No OFD packet to send [18:07:10]OFD Sender: No OFD packet to send [18:07:15]OFD Sender: No OFD packet to send [18:07:20]OFD Sender: No OFD packet to send [18:07:25]OFD Sender: No OFD packet to send [18:07:30]OFD Sender: No OFD packet to send [18:07:35]OFD Sender: No OFD packet to send [18:07:40]OFD Sender: No OFD packet to send [18:07:45]OFD Sender: No OFD packet to send [18:07:50]OFD Sender: No OFD packet to send [18:07:55]OFD Sender: No OFD packet to send [18:08:00]OFD Sender: No OFD packet to send [18:08:05]OFD Sender: No OFD packet to send [18:08:10]OFD Sender: No OFD packet to send [18:08:15]OFD Sender: No OFD packet to send [18:08:20]OFD Sender: No OFD packet to send [18:08:25]OFD Sender: No OFD packet to send [18:08:30]OFD Sender: No OFD packet to send [18:08:35]OFD Sender: No OFD packet to send [18:08:40]OFD Sender: No OFD packet to send [18:08:45]OFD Sender: No OFD packet to send [18:08:50]OFD Sender: No OFD packet to send [18:08:55]OFD Sender: No OFD packet to send [18:09:00]OFD Sender: No OFD packet to send [18:09:05]OFD Sender: No OFD packet to send [18:09:10]OFD Sender: No OFD packet to send [18:09:15]OFD Sender: No OFD packet to send [18:09:20]OFD Sender: No OFD packet to send [18:09:23]accept exits with 9 [18:09:23]New connection [18:09:23]New thread 3066654052 created [18:09:23]Thread 3066797412 joined [18:09:23]Waiting for new connection... [18:09:23] Sock 9.Parse request [18:09:23]Sock 9.Check first char [18:09:23]Sock 9.First char is OK [18:09:23]request: POST /json_proto HTTP/1.0 [18:09:23]Method: POST [18:09:23]URL: /json_proto [18:09:23]Method is POST - this is cgi request [18:09:23]url: /json_proto [18:09:23]query_string will be loaded in cgi processing [18:09:23]execute_cgi json_proto POST (null) [18:09:23]execute_cgi path=json_proto method=POST [18:09:23]POST find Content-Length [18:09:23]Host: 172.17.50.3:8080 [18:09:23]Content-Length: 678 [18:09:23]Content-Type: application/json [18:09:23] [18:09:23]POST finish read [18:09:23]Found Content-Length = 678 [18:09:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [18:09:23]execute_script... [18:09:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [18:09:23]POST & json_proto [18:09:23]process_json_proto [18:09:23]json parsed OK: [18:09:23]protocol is kg_v1.0 [18:09:23]action value=close_receipt [18:09:23]process_action close_receipt [18:09:23]cmd_close_receipt [18:09:23]MH_GetDate [18:09:23]Write to MH i2c: F0 00 00 86 01 76 [18:09:23]Write i2c OK [18:09:23]MH_I2C_Read... [18:09:23]Read from MH i2c: F0 [18:09:23]MH_I2C_Read... [18:09:23]Read from MH i2c: F0 09 00 [18:09:23]MH_I2C_Read... [18:09:23]Read from MH i2c: F0 09 00 86 01 00 53 47 15 67 6B 98 1E 66 1C [18:09:23]GetLastDocTimeStamp 1729447598 [18:09:23]current date 1729447763 [18:09:23]FM_GetShiftState [18:09:23]SAM_PROTO_GetShiftState [18:09:23]wFMCommunicate request_size=4 [18:09:23]MH_SAM_APDU [18:09:23]CAPDU: 80 13 01 00 [18:09:23]Write to MH i2c: E2 08 00 87 01 80 13 01 00 00 00 00 00 05 [18:09:23]Write i2c OK [18:09:23]MH_I2C_Read... [18:09:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:23]Read from MH i2c: E2 [18:09:23]MH_I2C_Read... [18:09:23]Read from MH i2c: E2 0E 00 [18:09:23]MH_I2C_Read... [18:09:23]Read from MH i2c: E2 0E 00 87 01 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 0B [18:09:23]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:09:23]wFMCommunicate OK [18:09:23]SAM_PROTO_GetShiftState done [18:09:23]FM_GetShiftState done [18:09:23]opened in 1729383220 [18:09:23]opened+sec_in_day 1729469620 [18:09:23]quantity*price = 50010 [18:09:23]sum+1 = 50012 [18:09:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 329 20.10.2024 18:09 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69484 ФПД: 184062313177881 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180923&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69484&fm=184062313177881&tin=02508201610067®Number=0000000000156251&sum=50000 [18:09:24]StoreToDocumentArchive [18:09:24]shift 193 fd 69484 [18:09:24]save to /storage/0193/doc_00069484 [18:09:24]save last doc name /storage/0193/doc_00069484 to /storage/kkm_last_doc_name [18:09:24]save OK [18:09:24]Clear old archive folders... [18:09:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:09:24]tlvbuf is 00F10F60 [18:09:24]SAM_PROTO_ClearQueue [18:09:24]wFMCommunicate request_size=4 [18:09:24]MH_SAM_APDU [18:09:24]CAPDU: 80 09 00 00 [18:09:24]Write to MH i2c: E2 08 00 94 01 80 09 00 00 00 00 00 00 07 [18:09:24]Write i2c OK [18:09:24]MH_I2C_Read... [18:09:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:09:24]Read from MH i2c: E2 [18:09:24]MH_I2C_Read... [18:09:24]Read from MH i2c: E2 03 00 [18:09:24]MH_I2C_Read... [18:09:24]Read from MH i2c: E2 03 00 94 01 00 90 00 09 [18:09:24]RAPDU: 90 00 [18:09:24]wFMCommunicate OK [18:09:24]SAM_PROTO_ClearQueue done [18:09:24]KKMCreateOFDPacket [18:09:24]OFDProtocolAddRootSTLVToBuf [18:09:24]FM_MakeSignedData [18:09:24]FM_MakeSignedData [18:09:24]SAM_PROTO_SignData [18:09:24]wFMCommunicate request_size=4 [18:09:24]MH_SAM_APDU [18:09:24]CAPDU: 80 0D 01 02 [18:09:24]Write to MH i2c: E2 08 00 95 01 80 0D 01 02 00 00 00 00 0F [18:09:24]Write i2c OK [18:09:24]MH_I2C_Read... [18:09:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:09:24]Read from MH i2c: E2 [18:09:24]MH_I2C_Read... [18:09:24]Read from MH i2c: E2 03 00 [18:09:24]MH_I2C_Read... [18:09:24]Read from MH i2c: E2 03 00 95 01 00 90 00 0A [18:09:24]RAPDU: 90 00 [18:09:24]wFMCommunicate OK [18:09:24]wFMCommunicate request_size=255 [18:09:24]MH_SAM_APDU [18:09:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 49 01 00 00 F4 03 04 00 53 47 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6C 0F 01 00 35 04 06 00 A7 [18:09:24]Write to MH i2c: E2 02 01 96 01 80 0D 02 02 FA 00 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 49 01 00 00 F4 03 04 00 53 47 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6C 0F 01 00 35 04 06 00 A7 00 00 B4 [18:09:24]Write i2c OK [18:09:24]MH_I2C_Read... [18:09:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:24]Read from MH i2c: E2 [18:09:24]MH_I2C_Read... [18:09:24]Read from MH i2c: E2 03 00 [18:09:24]MH_I2C_Read... [18:09:24]Read from MH i2c: E2 03 00 96 01 00 90 00 0B [18:09:24]RAPDU: 90 00 [18:09:24]wFMCommunicate OK [18:09:24]wFMCommunicate request_size=10 [18:09:24]MH_SAM_APDU [18:09:24]CAPDU: 80 0D 02 02 05 67 58 CB 23 19 [18:09:24]Write to MH i2c: E2 0D 00 97 01 80 0D 02 02 05 00 67 58 CB 23 19 00 00 E2 [18:09:24]Write i2c OK [18:09:24]MH_I2C_Read... [18:09:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:24]Read from MH i2c: E2 [18:09:24]MH_I2C_Read... [18:09:24]Read from MH i2c: E2 03 00 [18:09:24]MH_I2C_Read... [18:09:24]Read from MH i2c: E2 03 00 97 01 00 90 00 0C [18:09:24]RAPDU: 90 00 [18:09:24]wFMCommunicate OK [18:09:24]wFMCommunicate request_size=4 [18:09:24]MH_SAM_APDU [18:09:24]CAPDU: 80 0D 03 02 [18:09:24]Write to MH i2c: E2 08 00 98 01 80 0D 03 02 00 00 00 00 14 [18:09:24]Write i2c OK [18:09:24]MH_I2C_Read... [18:09:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:09:24]Read from MH i2c: E2 [18:09:24]MH_I2C_Read... [18:09:24]Read from MH i2c: E2 0B 00 [18:09:24]MH_I2C_Read... [18:09:24]Read from MH i2c: E2 0B 00 98 01 00 B2 3D 34 63 0F A3 03 92 90 00 E2 [18:09:24]RAPDU: B2 3D 34 63 0F A3 03 92 90 00 [18:09:24]wFMCommunicate OK [18:09:24]SAM_PROTO_SignData done [18:09:24]FM_MakeSignedData done [18:09:24]CreateOFDProtocolMessage [18:09:24]wFMCommunicate request_size=4 [18:09:24]MH_SAM_APDU [18:09:24]CAPDU: 80 11 00 00 [18:09:24]Write to MH i2c: E2 08 00 99 01 80 11 00 00 00 00 00 00 14 [18:09:24]Write i2c OK [18:09:24]MH_I2C_Read... [18:09:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:24]Read from MH i2c: E2 [18:09:24]MH_I2C_Read... [18:09:24]Read from MH i2c: E2 17 00 [18:09:24]MH_I2C_Read... [18:09:24]Read from MH i2c: E2 17 00 99 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 66 [18:09:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:09:24]wFMCommunicate OK [18:09:24]CreateOFDProtocolMessage done [18:09:24]OFDSenderStorePacket 69484 [18:09:24]StoreOFDPacket docnum=69484 [18:09:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 AE 17 07 01 ED 5B 5A 03 01 00 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 49 01 00 00 F4 03 04 00 53 47 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6C 0F 01 00 35 04 06 00 A7 67 58 CB 23 19 B2 3D 34 63 0F A3 03 92 [18:09:24]CheckFolder [18:09:24]dirname=/storage/ofd_packets [18:09:24]CheckFolder done [18:09:24]ProducePacketName [18:09:24]name=ofd_packets/00069484 [18:09:24]NVStorageSaveData ofd_packets/00069484 [18:09:24]File name is /storage/ofd_packets/00069484 [18:09:24]Write 301 bytes [18:09:24]NVStorageSaveData done [18:09:24]OFDSenderStorePacket done [18:09:24]KKMCreateOFDPacket done [18:09:24]NVStorageSaveData kkm_last_timestamp [18:09:24]File name is /storage/kkm_last_timestamp [18:09:24]Write 4 bytes [18:09:24]NVStorageSaveData done [18:09:24]ExternCall_PrintAddStr [18:09:24]wPrintStart [18:09:24]Write to MH i2c: 01 00 00 9A 01 9B [18:09:24]Write i2c OK [18:09:24]MH_I2C_Read... [18:09:24]Read from MH i2c: 01 [18:09:24]MH_I2C_Read... [18:09:24]Read from MH i2c: 01 07 00 [18:09:24]MH_I2C_Read... [18:09:24]Read from MH i2c: 01 07 00 9A 01 00 00 00 00 00 FF 0F B0 [18:09:24]RasterBufferAndPrint [18:09:24]line Счет N : (1)2885219 [18:09:24]line ИНН: 02508201610067 [18:09:24]line Контрольно-Кассовый Чек [18:09:24]line ПРОДАЖА [18:09:24]line ТРК (МРК, ГНК) : 33 [18:09:24]line Товар: 2710124500 [18:09:24]line Аи-95-К-5 [18:09:24]line 6.740 * 74.20 [18:09:24]line = 500.11 [18:09:24]line НДС 12% НСП 1% [18:09:24]line > о реализуемом товаре [18:09:24]line ОКРУГЛЕНИЕ: -0.11 [18:09:24]line ИТОГО: 500.00 [18:09:24]line Внесено: 500.00 [18:09:24]line СДАЧА: 0.00 [18:09:24]line НСП 1% : 4.43 [18:09:24]line НДС 12% : 53.11 [18:09:24]line Наличными: 500.00 [18:09:24]line Безнал.: 0.00 [18:09:24]line Место: АЗС № 85 "Партнер Нефть" [18:09:24]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:09:24]line СНО: Общий режим [18:09:24]line Чек 329 20.10.2024 18:09 [18:09:24]line Смена: 193 ФФД: 1.0 [18:09:24]line ЗНМ: 0300000167 [18:09:24]line РНМ: 0000000000156251 [18:09:24]line Версия ККМ: v1.0 [18:09:24]line ФМ: 0000000000963346 [18:09:24]line ФД: 69484 [18:09:24]line ФПД: 184062313177881 [18:09:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T180923&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69484&fm=184062313177881&tin=02508201610067®Number=0000000000156251&sum=50000 [18:09:25]OFD Sender: Processing packet 69484 [packets to send 18, broken 17] [18:09:25]ProducePacketName [18:09:25]name=ofd_packets/00069484 [18:09:25]OFD Sender: To server: pG, [18:09:25]CommunicateWithHost lk.salyk.kg:30040 [18:09:25]ConnectInit lk.salyk.kg [18:09:25]written 0, free lines is 4095 [18:09:25]Connected sock=10 [18:09:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 AE 17 07 01 ED 5B 5A 03 01 00 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 49 01 00 00 F4 03 04 00 53 47 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6C 0F 01 00 35 04 06 00 A7 67 58 CB 23 19 B2 3D 34 63 0F A3 03 92 [18:09:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 78 9E 47 00 8C F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6C 0F 01 00 F4 03 04 00 F9 F0 14 67 B6 04 01 00 00 69 4F 71 FC 37 A7 15 2B [18:09:25]CommunicateWithHost err = 0 [18:09:25]CheckOFDResponse [18:09:25]1017 (14) - 77093643461234 [18:09:25]1041 (16) - 0000000000963346 [18:09:25]1040 (4) - 69484 [18:09:25]1012 (4) - 20.10.2024 12:00 [18:09:25]1206 (1) - 0 [18:09:25]OFD Sender: Remove packet 69484 [18:09:25]ProducePacketName [18:09:25]name=ofd_packets/00069484 [18:09:25]NVStorageDeleteData [18:09:25]Write to MH i2c: 01 00 00 C5 01 C6 [18:09:25]Write i2c OK [18:09:25]MH_I2C_Read... [18:09:25]Read from MH i2c: 01 [18:09:25]MH_I2C_Read... [18:09:25]Read from MH i2c: 01 07 00 [18:09:25]MH_I2C_Read... [18:09:25]Read from MH i2c: 01 07 00 C5 01 00 00 00 00 00 F4 0C CD [18:09:25]RasterBufferAndPrint [18:09:25]line [18:09:25]line [18:09:25]line [18:09:25]line [18:09:25]line [18:09:25]written 0, free lines is 3322 [18:09:25]MH_Cut [18:09:25]Write to MH i2c: D1 01 00 CC 01 01 9F [18:09:25]Write i2c OK [18:09:25]MH_I2C_Read... [18:09:25]Read from MH i2c: D1 [18:09:25]MH_I2C_Read... [18:09:25]Read from MH i2c: D1 01 00 [18:09:25]MH_I2C_Read... [18:09:25]Read from MH i2c: D1 01 00 CC 01 00 9E [18:09:25]Write to MH i2c: 01 00 00 CD 01 CE [18:09:25]Write i2c OK [18:09:25]MH_I2C_Read... [18:09:25]OFD Sender: No OFD packet to send [18:09:26]*** Cut start [18:09:26]*** Partial cut [18:09:26]*** CUTSNS_PIN = 1 [18:09:26]*** CUTSNS_PIN = 0 [18:09:26]*** Brake cut motor [18:09:26]Read from MH i2c: 01 [18:09:26]MH_I2C_Read... [18:09:26]*** Stop cut motor [18:09:26]*** Cut end [18:09:26]Read from MH i2c: 01 07 00 [18:09:26]MH_I2C_Read... [18:09:26]Read from MH i2c: 01 07 00 CD 01 00 00 00 00 00 FF 0F E3 [18:09:26]process_action close_receipt done [18:09:26]requested_data is exist [18:09:26]produce_requested_data [18:09:26]requested_item fm.sn is exist - process it [18:09:26]wFMCommunicate request_size=4 [18:09:26]MH_SAM_APDU [18:09:26]CAPDU: 80 11 00 00 [18:09:26]Write to MH i2c: E2 08 00 CE 01 80 11 00 00 00 00 00 00 49 [18:09:26]Write i2c OK [18:09:26]MH_I2C_Read... [18:09:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:26]Read from MH i2c: E2 [18:09:26]MH_I2C_Read... [18:09:26]Read from MH i2c: E2 17 00 [18:09:26]MH_I2C_Read... [18:09:26]Read from MH i2c: E2 17 00 CE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9B [18:09:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:09:26]wFMCommunicate OK [18:09:26]requested_item fd.num is exist - process it [18:09:26]SAM_PROTO_GetFieldsCounters [18:09:26]wFMCommunicate request_size=4 [18:09:26]MH_SAM_APDU [18:09:26]CAPDU: 80 13 00 00 [18:09:26]Write to MH i2c: E2 08 00 CF 01 80 13 00 00 00 00 00 00 4C [18:09:26]Write i2c OK [18:09:26]MH_I2C_Read... [18:09:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:09:27]Read from MH i2c: E2 [18:09:27]MH_I2C_Read... [18:09:27]Read from MH i2c: E2 62 00 [18:09:27]MH_I2C_Read... [18:09:27]Read from MH i2c: E2 62 00 CF 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6C 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 82 [18:09:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6C 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:09:27]wFMCommunicate OK [18:09:27]SAM_PROTO_GetFieldsCounters done [18:09:27]requested_item shift.num is exist - process it [18:09:27]requested_item shift.opened is exist - process it [18:09:27]req_shift_opened [18:09:27]FM_GetShiftState [18:09:27]SAM_PROTO_GetShiftState [18:09:27]wFMCommunicate request_size=4 [18:09:27]MH_SAM_APDU [18:09:27]CAPDU: 80 13 01 00 [18:09:27]Write to MH i2c: E2 08 00 D0 01 80 13 01 00 00 00 00 00 4E [18:09:27]Write i2c OK [18:09:27]MH_I2C_Read... [18:09:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:27]Read from MH i2c: E2 [18:09:27]MH_I2C_Read... [18:09:27]Read from MH i2c: E2 0E 00 [18:09:27]MH_I2C_Read... [18:09:27]Read from MH i2c: E2 0E 00 D0 01 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 54 [18:09:27]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:09:27]wFMCommunicate OK [18:09:27]SAM_PROTO_GetShiftState done [18:09:27]FM_GetShiftState done [18:09:27]req_shift_opened done [18:09:27]requested_item shift.open_date is exist - process it [18:09:27]req_shift_open_date [18:09:27]req_shift_open_date done [18:09:27]produce_requested_data done [18:09:27]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69484,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [18:09:27]process_action_free close_receipt [18:09:27]json_value_free [18:09:27]json_value_free done [18:09:27]process_json_proto returns [18:09:27]Send response to host [18:09:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69484,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [18:09:27]free response buf [18:09:27]execute_script done [18:09:27]execute_script returns [18:09:27]free content buf [18:09:27]Sock 9.Close socket [18:09:27]Sock 9.Thread stoped [18:09:30]OFD Sender: No OFD packet to send [18:09:35]OFD Sender: No OFD packet to send [18:09:40]OFD Sender: No OFD packet to send [18:09:45]OFD Sender: No OFD packet to send [18:09:50]OFD Sender: No OFD packet to send [18:09:55]OFD Sender: No OFD packet to send [18:10:00]OFD Sender: No OFD packet to send [18:10:05]OFD Sender: No OFD packet to send [18:10:10]OFD Sender: No OFD packet to send [18:10:15]OFD Sender: No OFD packet to send [18:10:20]OFD Sender: No OFD packet to send [18:10:25]OFD Sender: No OFD packet to send [18:10:30]OFD Sender: No OFD packet to send [18:10:35]OFD Sender: No OFD packet to send [18:10:40]OFD Sender: No OFD packet to send [18:10:45]OFD Sender: No OFD packet to send [18:10:50]OFD Sender: No OFD packet to send [18:10:55]OFD Sender: No OFD packet to send [18:11:00]OFD Sender: No OFD packet to send [18:11:05]OFD Sender: No OFD packet to send [18:11:10]OFD Sender: No OFD packet to send [18:11:15]OFD Sender: No OFD packet to send [18:11:20]OFD Sender: No OFD packet to send [18:11:25]OFD Sender: No OFD packet to send [18:11:31]OFD Sender: No OFD packet to send [18:11:36]OFD Sender: No OFD packet to send [18:11:41]OFD Sender: No OFD packet to send [18:11:46]OFD Sender: No OFD packet to send [18:11:51]OFD Sender: No OFD packet to send [18:11:56]OFD Sender: No OFD packet to send [18:12:01]OFD Sender: No OFD packet to send [18:12:06]OFD Sender: No OFD packet to send [18:12:11]OFD Sender: No OFD packet to send [18:12:16]OFD Sender: No OFD packet to send [18:12:21]OFD Sender: No OFD packet to send [18:12:26]OFD Sender: No OFD packet to send [18:12:31]OFD Sender: No OFD packet to send [18:12:36]OFD Sender: No OFD packet to send [18:12:41]OFD Sender: No OFD packet to send [18:12:46]OFD Sender: No OFD packet to send [18:12:51]OFD Sender: No OFD packet to send [18:12:56]OFD Sender: No OFD packet to send [18:13:01]OFD Sender: No OFD packet to send [18:13:06]OFD Sender: No OFD packet to send [18:13:11]OFD Sender: No OFD packet to send [18:13:16]OFD Sender: No OFD packet to send [18:13:21]OFD Sender: No OFD packet to send [18:13:26]OFD Sender: No OFD packet to send [18:13:31]OFD Sender: No OFD packet to send [18:13:36]OFD Sender: No OFD packet to send [18:13:41]OFD Sender: No OFD packet to send [18:13:46]OFD Sender: No OFD packet to send [18:13:51]OFD Sender: No OFD packet to send [18:13:56]OFD Sender: No OFD packet to send [18:14:01]OFD Sender: No OFD packet to send [18:14:06]OFD Sender: No OFD packet to send [18:14:11]OFD Sender: No OFD packet to send [18:14:16]OFD Sender: No OFD packet to send [18:14:21]OFD Sender: No OFD packet to send [18:14:26]OFD Sender: No OFD packet to send [18:14:31]OFD Sender: No OFD packet to send [18:14:36]OFD Sender: No OFD packet to send [18:14:41]OFD Sender: No OFD packet to send [18:14:46]OFD Sender: No OFD packet to send [18:14:51]OFD Sender: No OFD packet to send [18:14:53]accept exits with 7 [18:14:53]New connection [18:14:53]New thread 3066797412 created [18:14:53]Thread 3066654052 joined [18:14:53]Waiting for new connection... [18:14:53] Sock 7.Parse request [18:14:53]Sock 7.Check first char [18:14:53]Sock 7.First char is OK [18:14:53]request: POST /json_proto HTTP/1.0 [18:14:53]Method: POST [18:14:53]URL: /json_proto [18:14:53]Method is POST - this is cgi request [18:14:53]url: /json_proto [18:14:53]query_string will be loaded in cgi processing [18:14:53]execute_cgi json_proto POST (null) [18:14:53]execute_cgi path=json_proto method=POST [18:14:53]POST find Content-Length [18:14:53]Host: 172.17.50.3:8080 [18:14:53]Content-Length: 683 [18:14:53]Content-Type: application/json [18:14:53] [18:14:53]POST finish read [18:14:53]Found Content-Length = 683 [18:14:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:53]execute_script... [18:14: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)2885220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:53]POST & json_proto [18:14:53]process_json_proto [18:14:53]json parsed OK: [18:14:53]protocol is kg_v1.0 [18:14:53]action value=close_receipt [18:14:53]process_action close_receipt [18:14:53]cmd_close_receipt [18:14:53]MH_GetDate [18:14:53]Write to MH i2c: F0 00 00 D1 01 C1 [18:14:53]Write i2c OK [18:14:53]MH_I2C_Read... [18:14:53]Read from MH i2c: F0 [18:14:53]MH_I2C_Read... [18:14:53]Read from MH i2c: F0 09 00 [18:14:53]MH_I2C_Read... [18:14:53]Read from MH i2c: F0 09 00 D1 01 00 9E 48 15 67 6B 98 1E 66 B3 [18:14:53]GetLastDocTimeStamp 1729447763 [18:14:53]current date 1729448094 [18:14:53]FM_GetShiftState [18:14:53]SAM_PROTO_GetShiftState [18:14:53]wFMCommunicate request_size=4 [18:14:53]MH_SAM_APDU [18:14:53]CAPDU: 80 13 01 00 [18:14:53]Write to MH i2c: E2 08 00 D2 01 80 13 01 00 00 00 00 00 50 [18:14:54]Write i2c OK [18:14:54]MH_I2C_Read... [18:14:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:54]Read from MH i2c: E2 [18:14:54]MH_I2C_Read... [18:14:54]Read from MH i2c: E2 0E 00 [18:14:54]MH_I2C_Read... [18:14:54]Read from MH i2c: E2 0E 00 D2 01 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 56 [18:14:54]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:14:54]wFMCommunicate OK [18:14:54]SAM_PROTO_GetShiftState done [18:14:54]FM_GetShiftState done [18:14:54]opened in 1729383220 [18:14:54]opened+sec_in_day 1729469620 [18:14:54]quantity*price = 150056 [18:14:54]sum+1 = 150058 [18:14:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 330 20.10.2024 18:14 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69485 ФПД: 117133085041961 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T181454&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69485&fm=117133085041961&tin=02508201610067®Number=0000000000156251&sum=150000 [18:14:55]StoreToDocumentArchive [18:14:55]shift 193 fd 69485 [18:14:55]save to /storage/0193/doc_00069485 [18:14:55]save last doc name /storage/0193/doc_00069485 to /storage/kkm_last_doc_name [18:14:55]save OK [18:14:55]Clear old archive folders... [18:14:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:14:55]tlvbuf is 00F2A270 [18:14:55]SAM_PROTO_ClearQueue [18:14:55]wFMCommunicate request_size=4 [18:14:55]MH_SAM_APDU [18:14:55]CAPDU: 80 09 00 00 [18:14:55]Write to MH i2c: E2 08 00 DF 01 80 09 00 00 00 00 00 00 52 [18:14:55]Write i2c OK [18:14:55]MH_I2C_Read... [18:14:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:14:55]Read from MH i2c: E2 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: E2 03 00 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: E2 03 00 DF 01 00 90 00 54 [18:14:55]RAPDU: 90 00 [18:14:55]wFMCommunicate OK [18:14:55]SAM_PROTO_ClearQueue done [18:14:55]KKMCreateOFDPacket [18:14:55]OFDProtocolAddRootSTLVToBuf [18:14:55]FM_MakeSignedData [18:14:55]FM_MakeSignedData [18:14:55]SAM_PROTO_SignData [18:14:55]wFMCommunicate request_size=4 [18:14:55]MH_SAM_APDU [18:14:55]CAPDU: 80 0D 01 02 [18:14:55]Write to MH i2c: E2 08 00 E0 01 80 0D 01 02 00 00 00 00 5A [18:14:55]Write i2c OK [18:14:55]MH_I2C_Read... [18:14:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:14:55]Read from MH i2c: E2 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: E2 03 00 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: E2 03 00 E0 01 00 90 00 55 [18:14:55]RAPDU: 90 00 [18:14:55]wFMCommunicate OK [18:14:55]wFMCommunicate request_size=255 [18:14:55]MH_SAM_APDU [18:14:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 9E 48 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6D 0F 01 00 35 04 06 00 6A [18:14:55]Write to MH i2c: E2 02 01 E1 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 9E 48 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6D 0F 01 00 35 04 06 00 6A 00 00 81 [18:14:55]Write i2c OK [18:14:55]MH_I2C_Read... [18:14:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:55]Read from MH i2c: E2 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: E2 03 00 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: E2 03 00 E1 01 00 90 00 56 [18:14:55]RAPDU: 90 00 [18:14:55]wFMCommunicate OK [18:14:55]wFMCommunicate request_size=10 [18:14:55]MH_SAM_APDU [18:14:55]CAPDU: 80 0D 02 02 05 88 2B EC E5 29 [18:14:55]Write to MH i2c: E2 0D 00 E2 01 80 0D 02 02 05 00 88 2B EC E5 29 00 00 14 [18:14:55]Write i2c OK [18:14:55]MH_I2C_Read... [18:14:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:55]Read from MH i2c: E2 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: E2 03 00 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: E2 03 00 E2 01 00 90 00 57 [18:14:55]RAPDU: 90 00 [18:14:55]wFMCommunicate OK [18:14:55]wFMCommunicate request_size=4 [18:14:55]MH_SAM_APDU [18:14:55]CAPDU: 80 0D 03 02 [18:14:55]Write to MH i2c: E2 08 00 E3 01 80 0D 03 02 00 00 00 00 5F [18:14:55]Write i2c OK [18:14:55]MH_I2C_Read... [18:14:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:14:55]Read from MH i2c: E2 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: E2 0B 00 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: E2 0B 00 E3 01 00 48 AD A3 39 DF 54 2B EF 90 00 7E [18:14:55]RAPDU: 48 AD A3 39 DF 54 2B EF 90 00 [18:14:55]wFMCommunicate OK [18:14:55]SAM_PROTO_SignData done [18:14:55]FM_MakeSignedData done [18:14:55]CreateOFDProtocolMessage [18:14:55]wFMCommunicate request_size=4 [18:14:55]MH_SAM_APDU [18:14:55]CAPDU: 80 11 00 00 [18:14:55]Write to MH i2c: E2 08 00 E4 01 80 11 00 00 00 00 00 00 5F [18:14:55]Write i2c OK [18:14:55]MH_I2C_Read... [18:14:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:55]Read from MH i2c: E2 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: E2 17 00 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: E2 17 00 E4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B1 [18:14:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:14:55]wFMCommunicate OK [18:14:55]CreateOFDProtocolMessage done [18:14:55]OFDSenderStorePacket 69485 [18:14:55]StoreOFDPacket docnum=69485 [18:14:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 60 80 07 01 33 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 9E 48 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6D 0F 01 00 35 04 06 00 6A 88 2B EC E5 29 48 AD A3 39 DF 54 2B EF [18:14:55]CheckFolder [18:14:55]dirname=/storage/ofd_packets [18:14:55]CheckFolder done [18:14:55]ProducePacketName [18:14:55]name=ofd_packets/00069485 [18:14:55]NVStorageSaveData ofd_packets/00069485 [18:14:55]File name is /storage/ofd_packets/00069485 [18:14:55]Write 301 bytes [18:14:55]NVStorageSaveData done [18:14:55]OFDSenderStorePacket done [18:14:55]KKMCreateOFDPacket done [18:14:55]NVStorageSaveData kkm_last_timestamp [18:14:55]File name is /storage/kkm_last_timestamp [18:14:55]Write 4 bytes [18:14:55]NVStorageSaveData done [18:14:55]ExternCall_PrintAddStr [18:14:55]wPrintStart [18:14:55]Write to MH i2c: 01 00 00 E5 01 E6 [18:14:55]OFD Sender: Processing packet 69485 [packets to send 18, broken 17] [18:14:55]ProducePacketName [18:14:55]name=ofd_packets/00069485 [18:14:55]OFD Sender: To server: pG, [18:14:55]CommunicateWithHost lk.salyk.kg:30040 [18:14:55]ConnectInit lk.salyk.kg [18:14:55]Write i2c OK [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: 01 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: 01 07 00 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: 01 07 00 E5 01 00 00 00 00 00 FF 0F FB [18:14:55]RasterBufferAndPrint [18:14:55]line Счет N : (1)2885220 [18:14:55]line ИНН: 02508201610067 [18:14:55]line Контрольно-Кассовый Чек [18:14:55]line ПРОДАЖА [18:14:55]line ТРК (МРК, ГНК) : 32 [18:14:55]line Товар: 2710124130 [18:14:55]line Аи-92-К-5 [18:14:55]line 22.430 * 66.90 [18:14:55]line = 1500.57 [18:14:55]line НДС 12% НСП 1% [18:14:55]line > о реализуемом товаре [18:14:55]line ОКРУГЛЕНИЕ: -0.57 [18:14:55]line ИТОГО: 1500.00 [18:14:55]line Внесено: 1500.00 [18:14:55]line СДАЧА: 0.00 [18:14:55]line НСП 1% : 13.28 [18:14:55]line НДС 12% : 159.35 [18:14:55]line Наличными: 1500.00 [18:14:55]line Безнал.: 0.00 [18:14:55]line Место: АЗС № 85 "Партнер Нефть" [18:14:55]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:14:55]line СНО: Общий режим [18:14:55]line Чек 330 20.10.2024 18:14 [18:14:55]line Смена: 193 ФФД: 1.0 [18:14:55]line ЗНМ: 0300000167 [18:14:55]line РНМ: 0000000000156251 [18:14:55]line Версия ККМ: v1.0 [18:14:55]line ФМ: 0000000000963346 [18:14:55]line ФД: 69485 [18:14:55]line ФПД: 117133085041961 [18:14:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T181454&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69485&fm=117133085041961&tin=02508201610067®Number=0000000000156251&sum=150000 [18:14:55]written 0, free lines is 4095 [18:14:55]Connected sock=10 [18:14:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 60 80 07 01 33 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 9E 48 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6D 0F 01 00 35 04 06 00 6A 88 2B EC E5 29 48 AD A3 39 DF 54 2B EF [18:14:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 13 47 47 00 7D 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6D 0F 01 00 F4 03 04 00 44 F2 14 67 B6 04 01 00 00 BE 3D 4A 2B B7 5E EA DA [18:14:56]CommunicateWithHost err = 0 [18:14:56]CheckOFDResponse [18:14:56]1017 (14) - 77093643461234 [18:14:56]1041 (16) - 0000000000963346 [18:14:56]1040 (4) - 69485 [18:14:56]1012 (4) - 20.10.2024 12:06 [18:14:56]1206 (1) - 0 [18:14:56]OFD Sender: Remove packet 69485 [18:14:56]ProducePacketName [18:14:56]name=ofd_packets/00069485 [18:14:56]NVStorageDeleteData [18:14:56]Write to MH i2c: 01 00 00 10 02 12 [18:14:56]Write i2c OK [18:14:56]MH_I2C_Read... [18:14:56]Read from MH i2c: 01 [18:14:56]MH_I2C_Read... [18:14:56]Read from MH i2c: 01 07 00 [18:14:56]MH_I2C_Read... [18:14:56]Read from MH i2c: 01 07 00 10 02 00 00 00 00 00 FB 0C 20 [18:14:56]RasterBufferAndPrint [18:14:56]line [18:14:56]line [18:14:56]line [18:14:56]line [18:14:56]line [18:14:56]written 0, free lines is 3329 [18:14:56]MH_Cut [18:14:56]Write to MH i2c: D1 01 00 17 02 01 EB [18:14:56]Write i2c OK [18:14:56]MH_I2C_Read... [18:14:56]Read from MH i2c: D1 [18:14:56]MH_I2C_Read... [18:14:56]Read from MH i2c: D1 01 00 [18:14:56]MH_I2C_Read... [18:14:56]Read from MH i2c: D1 01 00 17 02 00 EA [18:14:56]Write to MH i2c: 01 00 00 18 02 1A [18:14:56]Write i2c OK [18:14:56]MH_I2C_Read... [18:14:56]OFD Sender: No OFD packet to send [18:14:56]*** Cut start [18:14:56]*** Partial cut [18:14:56]*** CUTSNS_PIN = 1 [18:14:56]*** CUTSNS_PIN = 0 [18:14:57]*** Brake cut motor [18:14:57]Read from MH i2c: 01 [18:14:57]MH_I2C_Read... [18:14:57]*** Stop cut motor [18:14:57]*** Cut end [18:14:57]Read from MH i2c: 01 07 00 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: 01 07 00 18 02 00 00 00 00 00 FF 0F 2F [18:14:57]process_action close_receipt done [18:14:57]requested_data is exist [18:14:57]produce_requested_data [18:14:57]requested_item fm.sn is exist - process it [18:14:57]wFMCommunicate request_size=4 [18:14:57]MH_SAM_APDU [18:14:57]CAPDU: 80 11 00 00 [18:14:57]Write to MH i2c: E2 08 00 19 02 80 11 00 00 00 00 00 00 95 [18:14:57]Write i2c OK [18:14:57]MH_I2C_Read... [18:14:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:57]Read from MH i2c: E2 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: E2 17 00 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: E2 17 00 19 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E7 [18:14:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:14:57]wFMCommunicate OK [18:14:57]requested_item fd.num is exist - process it [18:14:57]SAM_PROTO_GetFieldsCounters [18:14:57]wFMCommunicate request_size=4 [18:14:57]MH_SAM_APDU [18:14:57]CAPDU: 80 13 00 00 [18:14:57]Write to MH i2c: E2 08 00 1A 02 80 13 00 00 00 00 00 00 98 [18:14:57]Write i2c OK [18:14:57]MH_I2C_Read... [18:14:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:14:57]Read from MH i2c: E2 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: E2 62 00 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: E2 62 00 1A 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6D 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 D2 [18:14:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6D 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:14:57]wFMCommunicate OK [18:14:57]SAM_PROTO_GetFieldsCounters done [18:14:57]requested_item shift.num is exist - process it [18:14:57]requested_item shift.opened is exist - process it [18:14:57]req_shift_opened [18:14:57]FM_GetShiftState [18:14:57]SAM_PROTO_GetShiftState [18:14:57]wFMCommunicate request_size=4 [18:14:57]MH_SAM_APDU [18:14:57]CAPDU: 80 13 01 00 [18:14:57]Write to MH i2c: E2 08 00 1B 02 80 13 01 00 00 00 00 00 9A [18:14:57]Write i2c OK [18:14:57]MH_I2C_Read... [18:14:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:57]Read from MH i2c: E2 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: E2 0E 00 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: E2 0E 00 1B 02 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 A0 [18:14:57]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:14:57]wFMCommunicate OK [18:14:57]SAM_PROTO_GetShiftState done [18:14:57]FM_GetShiftState done [18:14:57]req_shift_opened done [18:14:57]requested_item shift.open_date is exist - process it [18:14:57]req_shift_open_date [18:14:57]req_shift_open_date done [18:14:57]produce_requested_data done [18:14:57]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69485,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [18:14:57]process_action_free close_receipt [18:14:57]json_value_free [18:14:57]json_value_free done [18:14:57]process_json_proto returns [18:14:57]Send response to host [18:14:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69485,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [18:14:57]free response buf [18:14:57]execute_script done [18:14:57]execute_script returns [18:14:57]free content buf [18:14:57]Sock 7.Close socket [18:14:57]Sock 7.Thread stoped [18:15:01]OFD Sender: No OFD packet to send [18:15:06]OFD Sender: No OFD packet to send [18:15:11]OFD Sender: No OFD packet to send [18:15:16]OFD Sender: No OFD packet to send [18:15:21]OFD Sender: No OFD packet to send [18:15:26]OFD Sender: No OFD packet to send [18:15:31]OFD Sender: No OFD packet to send [18:15:36]OFD Sender: No OFD packet to send [18:15:41]OFD Sender: No OFD packet to send [18:15:46]OFD Sender: No OFD packet to send [18:15:49]accept exits with 9 [18:15:49]New connection [18:15:49]New thread 3066654052 created [18:15:49]Thread 3066797412 joined [18:15:49]Waiting for new connection... [18:15:49] Sock 9.Parse request [18:15:49]Sock 9.Check first char [18:15:49]Sock 9.First char is OK [18:15:49]request: POST /json_proto HTTP/1.0 [18:15:49]Method: POST [18:15:49]URL: /json_proto [18:15:49]Method is POST - this is cgi request [18:15:49]url: /json_proto [18:15:49]query_string will be loaded in cgi processing [18:15:49]execute_cgi json_proto POST (null) [18:15:49]execute_cgi path=json_proto method=POST [18:15:49]POST find Content-Length [18:15:49]Host: 172.17.50.3:8080 [18:15:49]Content-Length: 680 [18:15:49]Content-Type: application/json [18:15:49] [18:15:49]POST finish read [18:15:49]Found Content-Length = 680 [18:15:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:49]execute_script... [18:15: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)2885221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:49]POST & json_proto [18:15:49]process_json_proto [18:15:49]json parsed OK: [18:15:49]protocol is kg_v1.0 [18:15:49]action value=close_receipt [18:15:49]process_action close_receipt [18:15:49]cmd_close_receipt [18:15:49]MH_GetDate [18:15:49]Write to MH i2c: F0 00 00 1C 02 0D [18:15:49]Write i2c OK [18:15:49]MH_I2C_Read... [18:15:49]Read from MH i2c: F0 [18:15:49]MH_I2C_Read... [18:15:49]Read from MH i2c: F0 09 00 [18:15:49]MH_I2C_Read... [18:15:49]Read from MH i2c: F0 09 00 1C 02 00 D5 48 15 67 6B 98 1E 66 36 [18:15:49]GetLastDocTimeStamp 1729448094 [18:15:49]current date 1729448149 [18:15:49]FM_GetShiftState [18:15:49]SAM_PROTO_GetShiftState [18:15:49]wFMCommunicate request_size=4 [18:15:49]MH_SAM_APDU [18:15:49]CAPDU: 80 13 01 00 [18:15:49]Write to MH i2c: E2 08 00 1D 02 80 13 01 00 00 00 00 00 9C [18:15:49]Write i2c OK [18:15:49]MH_I2C_Read... [18:15:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:49]Read from MH i2c: E2 [18:15:49]MH_I2C_Read... [18:15:49]Read from MH i2c: E2 0E 00 [18:15:49]MH_I2C_Read... [18:15:49]Read from MH i2c: E2 0E 00 1D 02 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 A2 [18:15:49]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:15:49]wFMCommunicate OK [18:15:49]SAM_PROTO_GetShiftState done [18:15:49]FM_GetShiftState done [18:15:49]opened in 1729383220 [18:15:49]opened+sec_in_day 1729469620 [18:15:49]quantity*price = 100050 [18:15:49]sum+1 = 100052 [18:15:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 331 20.10.2024 18:15 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69486 ФПД: 253065426551747 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T181549&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69486&fm=253065426551747&tin=02508201610067®Number=0000000000156251&sum=100000 [18:15:50]StoreToDocumentArchive [18:15:50]shift 193 fd 69486 [18:15:50]save to /storage/0193/doc_00069486 [18:15:50]save last doc name /storage/0193/doc_00069486 to /storage/kkm_last_doc_name [18:15:50]save OK [18:15:50]Clear old archive folders... [18:15:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:15:50]tlvbuf is 00F2BBB0 [18:15:50]SAM_PROTO_ClearQueue [18:15:50]wFMCommunicate request_size=4 [18:15:50]MH_SAM_APDU [18:15:50]CAPDU: 80 09 00 00 [18:15:50]Write to MH i2c: E2 08 00 2A 02 80 09 00 00 00 00 00 00 9E [18:15:50]Write i2c OK [18:15:50]MH_I2C_Read... [18:15:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:15:50]Read from MH i2c: E2 [18:15:50]MH_I2C_Read... [18:15:50]Read from MH i2c: E2 03 00 [18:15:50]MH_I2C_Read... [18:15:50]Read from MH i2c: E2 03 00 2A 02 00 90 00 A0 [18:15:50]RAPDU: 90 00 [18:15:50]wFMCommunicate OK [18:15:50]SAM_PROTO_ClearQueue done [18:15:50]KKMCreateOFDPacket [18:15:50]OFDProtocolAddRootSTLVToBuf [18:15:50]FM_MakeSignedData [18:15:50]FM_MakeSignedData [18:15:50]SAM_PROTO_SignData [18:15:50]wFMCommunicate request_size=4 [18:15:50]MH_SAM_APDU [18:15:50]CAPDU: 80 0D 01 02 [18:15:50]Write to MH i2c: E2 08 00 2B 02 80 0D 01 02 00 00 00 00 A6 [18:15:50]Write i2c OK [18:15:50]MH_I2C_Read... [18:15:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:15:50]Read from MH i2c: E2 [18:15:50]MH_I2C_Read... [18:15:50]Read from MH i2c: E2 03 00 [18:15:50]MH_I2C_Read... [18:15:50]Read from MH i2c: E2 03 00 2B 02 00 90 00 A1 [18:15:50]RAPDU: 90 00 [18:15:50]wFMCommunicate OK [18:15:50]wFMCommunicate request_size=255 [18:15:50]MH_SAM_APDU [18:15:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 D5 48 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6E 0F 01 00 35 04 06 00 E6 29 62 DA [18:15:50]Write to MH i2c: E2 02 01 2C 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 D5 48 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6E 0F 01 00 35 04 06 00 E6 29 62 DA 00 00 94 [18:15:50]Write i2c OK [18:15:50]MH_I2C_Read... [18:15:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:50]Read from MH i2c: E2 [18:15:50]MH_I2C_Read... [18:15:50]Read from MH i2c: E2 03 00 [18:15:50]MH_I2C_Read... [18:15:50]Read from MH i2c: E2 03 00 2C 02 00 90 00 A2 [18:15:50]RAPDU: 90 00 [18:15:50]wFMCommunicate OK [18:15:50]wFMCommunicate request_size=7 [18:15:50]MH_SAM_APDU [18:15:50]CAPDU: 80 0D 02 02 02 C3 C3 [18:15:50]Write to MH i2c: E2 0A 00 2D 02 80 0D 02 02 02 00 C3 C3 00 00 33 [18:15:50]Write i2c OK [18:15:50]MH_I2C_Read... [18:15:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:50]Read from MH i2c: E2 [18:15:50]MH_I2C_Read... [18:15:50]Read from MH i2c: E2 03 00 [18:15:50]MH_I2C_Read... [18:15:50]Read from MH i2c: E2 03 00 2D 02 00 90 00 A3 [18:15:50]RAPDU: 90 00 [18:15:50]wFMCommunicate OK [18:15:50]wFMCommunicate request_size=4 [18:15:50]MH_SAM_APDU [18:15:50]CAPDU: 80 0D 03 02 [18:15:50]Write to MH i2c: E2 08 00 2E 02 80 0D 03 02 00 00 00 00 AB [18:15:50]Write i2c OK [18:15:50]MH_I2C_Read... [18:15:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:15:51]Read from MH i2c: E2 [18:15:51]MH_I2C_Read... [18:15:51]Read from MH i2c: E2 0B 00 [18:15:51]MH_I2C_Read... [18:15:51]Read from MH i2c: E2 0B 00 2E 02 00 E7 DC A5 5C 3E B1 27 53 90 00 D9 [18:15:51]RAPDU: E7 DC A5 5C 3E B1 27 53 90 00 [18:15:51]wFMCommunicate OK [18:15:51]SAM_PROTO_SignData done [18:15:51]FM_MakeSignedData done [18:15:51]CreateOFDProtocolMessage [18:15:51]wFMCommunicate request_size=4 [18:15:51]MH_SAM_APDU [18:15:51]CAPDU: 80 11 00 00 [18:15:51]Write to MH i2c: E2 08 00 2F 02 80 11 00 00 00 00 00 00 AB [18:15:51]Write i2c OK [18:15:51]MH_I2C_Read... [18:15:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:51]Read from MH i2c: E2 [18:15:51]MH_I2C_Read... [18:15:51]Read from MH i2c: E2 17 00 [18:15:51]MH_I2C_Read... [18:15:51]Read from MH i2c: E2 17 00 2F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FD [18:15:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:15:51]wFMCommunicate OK [18:15:51]CreateOFDProtocolMessage done [18:15:51]OFDSenderStorePacket 69486 [18:15:51]StoreOFDPacket docnum=69486 [18:15:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 B5 C9 04 01 13 CB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 D5 48 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6E 0F 01 00 35 04 06 00 E6 29 62 DA C3 C3 E7 DC A5 5C 3E B1 27 53 [18:15:51]CheckFolder [18:15:51]dirname=/storage/ofd_packets [18:15:51]CheckFolder done [18:15:51]ProducePacketName [18:15:51]name=ofd_packets/00069486 [18:15:51]NVStorageSaveData ofd_packets/00069486 [18:15:51]File name is /storage/ofd_packets/00069486 [18:15:51]Write 298 bytes [18:15:51]NVStorageSaveData done [18:15:51]OFDSenderStorePacket done [18:15:51]KKMCreateOFDPacket done [18:15:51]NVStorageSaveData kkm_last_timestamp [18:15:51]File name is /storage/kkm_last_timestamp [18:15:51]Write 4 bytes [18:15:51]NVStorageSaveData done [18:15:51]ExternCall_PrintAddStr [18:15:51]wPrintStart [18:15:51]Write to MH i2c: 01 00 00 30 02 32 [18:15:51]Write i2c OK [18:15:51]MH_I2C_Read... [18:15:51]Read from MH i2c: 01 [18:15:51]MH_I2C_Read... [18:15:51]Read from MH i2c: 01 07 00 [18:15:51]MH_I2C_Read... [18:15:51]Read from MH i2c: 01 07 00 30 02 00 00 00 00 00 FF 0F 47 [18:15:51]RasterBufferAndPrint [18:15:51]line Счет N : (1)2885221 [18:15:51]line ИНН: 02508201610067 [18:15:51]line Контрольно-Кассовый Чек [18:15:51]line ПРОДАЖА [18:15:51]line ТРК (МРК, ГНК) : 51 [18:15:51]line Товар: 2710194210 [18:15:51]line ДТ-К-5 [18:15:51]line 13.130 * 76.20 [18:15:51]line = 1000.51 [18:15:51]line НДС 12% НСП 1% [18:15:51]line > о реализуемом товаре [18:15:51]line ОКРУГЛЕНИЕ: -0.51 [18:15:51]line ИТОГО: 1000.00 [18:15:51]line Внесено: 1000.00 [18:15:51]line СДАЧА: 0.00 [18:15:51]line НСП 1% : 8.85 [18:15:51]line НДС 12% : 106.25 [18:15:51]line Наличными: 1000.00 [18:15:51]line Безнал.: 0.00 [18:15:51]line Место: АЗС № 85 "Партнер Нефть" [18:15:51]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:15:51]line СНО: Общий режим [18:15:51]line Чек 331 20.10.2024 18:15 [18:15:51]line Смена: 193 ФФД: 1.0 [18:15:51]line ЗНМ: 0300000167 [18:15:51]line РНМ: 0000000000156251 [18:15:51]line Версия ККМ: v1.0 [18:15:51]line ФМ: 0000000000963346 [18:15:51]line ФД: 69486 [18:15:51]line ФПД: 253065426551747 [18:15:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T181549&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69486&fm=253065426551747&tin=02508201610067®Number=0000000000156251&sum=100000 [18:15:51]OFD Sender: Processing packet 69486 [packets to send 18, broken 17] [18:15:51]ProducePacketName [18:15:51]name=ofd_packets/00069486 [18:15:51]OFD Sender: To server: pG, [18:15:51]CommunicateWithHost lk.salyk.kg:30040 [18:15:51]ConnectInit lk.salyk.kg [18:15:51]written 0, free lines is 4095 [18:15:51]Connected sock=10 [18:15:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 B5 C9 04 01 13 CB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 D5 48 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6E 0F 01 00 35 04 06 00 E6 29 62 DA C3 C3 E7 DC A5 5C 3E B1 27 53 [18:15:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 AF BF 47 00 30 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6E 0F 01 00 F4 03 04 00 7B F2 14 67 B6 04 01 00 00 FA 94 4E 17 65 5D EF 2D [18:15:51]CommunicateWithHost err = 0 [18:15:51]CheckOFDResponse [18:15:51]1017 (14) - 77093643461234 [18:15:51]1041 (16) - 0000000000963346 [18:15:51]1040 (4) - 69486 [18:15:51]1012 (4) - 20.10.2024 12:07 [18:15:51]1206 (1) - 0 [18:15:51]OFD Sender: Remove packet 69486 [18:15:51]ProducePacketName [18:15:51]name=ofd_packets/00069486 [18:15:51]NVStorageDeleteData [18:15:51]Write to MH i2c: 01 00 00 5B 02 5D [18:15:51]Write i2c OK [18:15:51]MH_I2C_Read... [18:15:51]Read from MH i2c: 01 [18:15:51]MH_I2C_Read... [18:15:51]Read from MH i2c: 01 07 00 [18:15:51]MH_I2C_Read... [18:15:51]Read from MH i2c: 01 07 00 5B 02 00 00 00 00 00 E6 0C 56 [18:15:51]RasterBufferAndPrint [18:15:51]line [18:15:51]line [18:15:51]line [18:15:51]line [18:15:51]line [18:15:51]written 0, free lines is 3308 [18:15:51]MH_Cut [18:15:51]Write to MH i2c: D1 01 00 62 02 01 36 [18:15:51]Write i2c OK [18:15:51]MH_I2C_Read... [18:15:51]Read from MH i2c: D1 [18:15:51]MH_I2C_Read... [18:15:51]Read from MH i2c: D1 01 00 [18:15:51]MH_I2C_Read... [18:15:51]Read from MH i2c: D1 01 00 62 02 00 35 [18:15:51]Write to MH i2c: 01 00 00 63 02 65 [18:15:51]Write i2c OK [18:15:51]MH_I2C_Read... [18:15:52]OFD Sender: No OFD packet to send [18:15:52]*** Cut start [18:15:52]*** Partial cut [18:15:52]*** CUTSNS_PIN = 1 [18:15:52]*** CUTSNS_PIN = 0 [18:15:52]*** Brake cut motor [18:15:53]Read from MH i2c: 01 [18:15:53]MH_I2C_Read... [18:15:53]*** Stop cut motor [18:15:53]*** Cut end [18:15:53]Read from MH i2c: 01 07 00 [18:15:53]MH_I2C_Read... [18:15:53]Read from MH i2c: 01 07 00 63 02 00 00 00 00 00 FF 0F 7A [18:15:53]process_action close_receipt done [18:15:53]requested_data is exist [18:15:53]produce_requested_data [18:15:53]requested_item fm.sn is exist - process it [18:15:53]wFMCommunicate request_size=4 [18:15:53]MH_SAM_APDU [18:15:53]CAPDU: 80 11 00 00 [18:15:53]Write to MH i2c: E2 08 00 64 02 80 11 00 00 00 00 00 00 E0 [18:15:53]Write i2c OK [18:15:53]MH_I2C_Read... [18:15:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:53]Read from MH i2c: E2 [18:15:53]MH_I2C_Read... [18:15:53]Read from MH i2c: E2 17 00 [18:15:53]MH_I2C_Read... [18:15:53]Read from MH i2c: E2 17 00 64 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 32 [18:15:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:15:53]wFMCommunicate OK [18:15:53]requested_item fd.num is exist - process it [18:15:53]SAM_PROTO_GetFieldsCounters [18:15:53]wFMCommunicate request_size=4 [18:15:53]MH_SAM_APDU [18:15:53]CAPDU: 80 13 00 00 [18:15:53]Write to MH i2c: E2 08 00 65 02 80 13 00 00 00 00 00 00 E3 [18:15:53]Write i2c OK [18:15:53]MH_I2C_Read... [18:15:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:15:53]Read from MH i2c: E2 [18:15:53]MH_I2C_Read... [18:15:53]Read from MH i2c: E2 62 00 [18:15:53]MH_I2C_Read... [18:15:53]Read from MH i2c: E2 62 00 65 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6E 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 21 [18:15:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6E 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:15:53]wFMCommunicate OK [18:15:53]SAM_PROTO_GetFieldsCounters done [18:15:53]requested_item shift.num is exist - process it [18:15:53]requested_item shift.opened is exist - process it [18:15:53]req_shift_opened [18:15:53]FM_GetShiftState [18:15:53]SAM_PROTO_GetShiftState [18:15:53]wFMCommunicate request_size=4 [18:15:53]MH_SAM_APDU [18:15:53]CAPDU: 80 13 01 00 [18:15:53]Write to MH i2c: E2 08 00 66 02 80 13 01 00 00 00 00 00 E5 [18:15:53]Write i2c OK [18:15:53]MH_I2C_Read... [18:15:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:53]Read from MH i2c: E2 [18:15:53]MH_I2C_Read... [18:15:53]Read from MH i2c: E2 0E 00 [18:15:53]MH_I2C_Read... [18:15:53]Read from MH i2c: E2 0E 00 66 02 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 EB [18:15:53]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:15:53]wFMCommunicate OK [18:15:53]SAM_PROTO_GetShiftState done [18:15:53]FM_GetShiftState done [18:15:53]req_shift_opened done [18:15:53]requested_item shift.open_date is exist - process it [18:15:53]req_shift_open_date [18:15:53]req_shift_open_date done [18:15:53]produce_requested_data done [18:15:53]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69486,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [18:15:53]process_action_free close_receipt [18:15:53]json_value_free [18:15:53]json_value_free done [18:15:53]process_json_proto returns [18:15:53]Send response to host [18:15:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69486,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [18:15:53]free response buf [18:15:53]execute_script done [18:15:53]execute_script returns [18:15:53]free content buf [18:15:53]Sock 9.Close socket [18:15:53]Sock 9.Thread stoped [18:15:57]OFD Sender: No OFD packet to send [18:16:02]OFD Sender: No OFD packet to send [18:16:07]OFD Sender: No OFD packet to send [18:16:12]OFD Sender: No OFD packet to send [18:16:17]OFD Sender: No OFD packet to send [18:16:22]OFD Sender: No OFD packet to send [18:16:27]OFD Sender: No OFD packet to send [18:16:32]OFD Sender: No OFD packet to send [18:16:37]OFD Sender: No OFD packet to send [18:16:42]OFD Sender: No OFD packet to send [18:16:43]accept exits with 7 [18:16:43]New connection [18:16:43]New thread 3066797412 created [18:16:43]Thread 3066654052 joined [18:16:43]Waiting for new connection... [18:16:43] Sock 7.Parse request [18:16:43]Sock 7.Check first char [18:16:43]Sock 7.First char is OK [18:16:43]request: POST /json_proto HTTP/1.0 [18:16:43]Method: POST [18:16:43]URL: /json_proto [18:16:43]Method is POST - this is cgi request [18:16:43]url: /json_proto [18:16:43]query_string will be loaded in cgi processing [18:16:43]execute_cgi json_proto POST (null) [18:16:43]execute_cgi path=json_proto method=POST [18:16:43]POST find Content-Length [18:16:43]Host: 172.17.50.3:8080 [18:16:43]Content-Length: 678 [18:16:43]Content-Type: application/json [18:16:43] [18:16:43]POST finish read [18:16:43]Found Content-Length = 678 [18:16:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:43]execute_script... [18:16: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)2885222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:43]POST & json_proto [18:16:43]process_json_proto [18:16:43]json parsed OK: [18:16:43]protocol is kg_v1.0 [18:16:43]action value=close_receipt [18:16:43]process_action close_receipt [18:16:43]cmd_close_receipt [18:16:43]MH_GetDate [18:16:43]Write to MH i2c: F0 00 00 67 02 58 [18:16:43]Write i2c OK [18:16:43]MH_I2C_Read... [18:16:43]Read from MH i2c: F0 [18:16:43]MH_I2C_Read... [18:16:43]Read from MH i2c: F0 09 00 [18:16:43]MH_I2C_Read... [18:16:43]Read from MH i2c: F0 09 00 67 02 00 0B 49 15 67 6B 98 1E 66 B8 [18:16:43]GetLastDocTimeStamp 1729448149 [18:16:43]current date 1729448203 [18:16:43]FM_GetShiftState [18:16:43]SAM_PROTO_GetShiftState [18:16:43]wFMCommunicate request_size=4 [18:16:43]MH_SAM_APDU [18:16:43]CAPDU: 80 13 01 00 [18:16:43]Write to MH i2c: E2 08 00 68 02 80 13 01 00 00 00 00 00 E7 [18:16:43]Write i2c OK [18:16:43]MH_I2C_Read... [18:16:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:43]Read from MH i2c: E2 [18:16:43]MH_I2C_Read... [18:16:43]Read from MH i2c: E2 0E 00 [18:16:43]MH_I2C_Read... [18:16:43]Read from MH i2c: E2 0E 00 68 02 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 ED [18:16:43]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:16:43]wFMCommunicate OK [18:16:43]SAM_PROTO_GetShiftState done [18:16:43]FM_GetShiftState done [18:16:43]opened in 1729383220 [18:16:43]opened+sec_in_day 1729469620 [18:16:43]quantity*price = 50041 [18:16:43]sum+1 = 50042 [18:16:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 332 20.10.2024 18:16 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69487 ФПД: 176840998514583 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T181643&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69487&fm=176840998514583&tin=02508201610067®Number=0000000000156251&sum=50000 [18:16:44]StoreToDocumentArchive [18:16:44]shift 193 fd 69487 [18:16:44]save to /storage/0193/doc_00069487 [18:16:44]save last doc name /storage/0193/doc_00069487 to /storage/kkm_last_doc_name [18:16:44]save OK [18:16:44]Clear old archive folders... [18:16:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:16:44]tlvbuf is 00F0FF50 [18:16:44]SAM_PROTO_ClearQueue [18:16:44]wFMCommunicate request_size=4 [18:16:44]MH_SAM_APDU [18:16:44]CAPDU: 80 09 00 00 [18:16:44]Write to MH i2c: E2 08 00 75 02 80 09 00 00 00 00 00 00 E9 [18:16:44]Write i2c OK [18:16:44]MH_I2C_Read... [18:16:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:16:44]Read from MH i2c: E2 [18:16:44]MH_I2C_Read... [18:16:44]Read from MH i2c: E2 03 00 [18:16:44]MH_I2C_Read... [18:16:44]Read from MH i2c: E2 03 00 75 02 00 90 00 EB [18:16:44]RAPDU: 90 00 [18:16:44]wFMCommunicate OK [18:16:44]SAM_PROTO_ClearQueue done [18:16:44]KKMCreateOFDPacket [18:16:44]OFDProtocolAddRootSTLVToBuf [18:16:44]FM_MakeSignedData [18:16:44]FM_MakeSignedData [18:16:44]SAM_PROTO_SignData [18:16:44]wFMCommunicate request_size=4 [18:16:44]MH_SAM_APDU [18:16:44]CAPDU: 80 0D 01 02 [18:16:44]Write to MH i2c: E2 08 00 76 02 80 0D 01 02 00 00 00 00 F1 [18:16:44]Write i2c OK [18:16:44]MH_I2C_Read... [18:16:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:16:44]Read from MH i2c: E2 [18:16:44]MH_I2C_Read... [18:16:44]Read from MH i2c: E2 03 00 [18:16:44]MH_I2C_Read... [18:16:44]Read from MH i2c: E2 03 00 76 02 00 90 00 EC [18:16:44]RAPDU: 90 00 [18:16:44]wFMCommunicate OK [18:16:44]wFMCommunicate request_size=255 [18:16:44]MH_SAM_APDU [18:16:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 0B 49 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6F 0F 01 00 35 04 06 00 A0 [18:16:44]Write to MH i2c: E2 02 01 77 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 0B 49 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6F 0F 01 00 35 04 06 00 A0 00 00 77 [18:16:44]Write i2c OK [18:16:44]MH_I2C_Read... [18:16:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:44]Read from MH i2c: E2 [18:16:44]MH_I2C_Read... [18:16:44]Read from MH i2c: E2 03 00 [18:16:44]MH_I2C_Read... [18:16:44]Read from MH i2c: E2 03 00 77 02 00 90 00 ED [18:16:44]RAPDU: 90 00 [18:16:44]wFMCommunicate OK [18:16:44]wFMCommunicate request_size=10 [18:16:44]MH_SAM_APDU [18:16:44]CAPDU: 80 0D 02 02 05 D6 00 E5 EF 97 [18:16:44]Write to MH i2c: E2 0D 00 78 02 80 0D 02 02 05 00 D6 00 E5 EF 97 00 00 3F [18:16:44]Write i2c OK [18:16:44]MH_I2C_Read... [18:16:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:44]Read from MH i2c: E2 [18:16:44]MH_I2C_Read... [18:16:44]Read from MH i2c: E2 03 00 [18:16:44]MH_I2C_Read... [18:16:44]Read from MH i2c: E2 03 00 78 02 00 90 00 EE [18:16:44]RAPDU: 90 00 [18:16:44]wFMCommunicate OK [18:16:44]wFMCommunicate request_size=4 [18:16:44]MH_SAM_APDU [18:16:44]CAPDU: 80 0D 03 02 [18:16:44]Write to MH i2c: E2 08 00 79 02 80 0D 03 02 00 00 00 00 F6 [18:16:44]Write i2c OK [18:16:44]MH_I2C_Read... [18:16:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:16:44]Read from MH i2c: E2 [18:16:44]MH_I2C_Read... [18:16:44]Read from MH i2c: E2 0B 00 [18:16:44]MH_I2C_Read... [18:16:44]Read from MH i2c: E2 0B 00 79 02 00 EB 76 53 CF 59 8D AF AD 90 00 BC [18:16:44]RAPDU: EB 76 53 CF 59 8D AF AD 90 00 [18:16:44]wFMCommunicate OK [18:16:44]SAM_PROTO_SignData done [18:16:44]FM_MakeSignedData done [18:16:44]CreateOFDProtocolMessage [18:16:44]wFMCommunicate request_size=4 [18:16:44]MH_SAM_APDU [18:16:44]CAPDU: 80 11 00 00 [18:16:44]Write to MH i2c: E2 08 00 7A 02 80 11 00 00 00 00 00 00 F6 [18:16:44]Write i2c OK [18:16:44]MH_I2C_Read... [18:16:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:44]Read from MH i2c: E2 [18:16:44]MH_I2C_Read... [18:16:44]Read from MH i2c: E2 17 00 [18:16:44]MH_I2C_Read... [18:16:44]Read from MH i2c: E2 17 00 7A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 48 [18:16:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:16:44]wFMCommunicate OK [18:16:44]CreateOFDProtocolMessage done [18:16:44]OFDSenderStorePacket 69487 [18:16:44]StoreOFDPacket docnum=69487 [18:16:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 4C 00 07 01 E8 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 0B 49 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6F 0F 01 00 35 04 06 00 A0 D6 00 E5 EF 97 EB 76 53 CF 59 8D AF AD [18:16:44]CheckFolder [18:16:44]dirname=/storage/ofd_packets [18:16:44]CheckFolder done [18:16:44]ProducePacketName [18:16:44]name=ofd_packets/00069487 [18:16:44]NVStorageSaveData ofd_packets/00069487 [18:16:44]File name is /storage/ofd_packets/00069487 [18:16:44]Write 301 bytes [18:16:44]NVStorageSaveData done [18:16:44]OFDSenderStorePacket done [18:16:44]KKMCreateOFDPacket done [18:16:44]NVStorageSaveData kkm_last_timestamp [18:16:44]File name is /storage/kkm_last_timestamp [18:16:44]Write 4 bytes [18:16:44]NVStorageSaveData done [18:16:44]ExternCall_PrintAddStr [18:16:44]wPrintStart [18:16:44]Write to MH i2c: 01 00 00 7B 02 7D [18:16:44]Write i2c OK [18:16:44]MH_I2C_Read... [18:16:44]Read from MH i2c: 01 [18:16:44]MH_I2C_Read... [18:16:44]Read from MH i2c: 01 07 00 [18:16:44]MH_I2C_Read... [18:16:44]Read from MH i2c: 01 07 00 7B 02 00 00 00 00 00 FF 0F 92 [18:16:44]RasterBufferAndPrint [18:16:44]line Счет N : (1)2885222 [18:16:44]line ИНН: 02508201610067 [18:16:44]line Контрольно-Кассовый Чек [18:16:44]line ПРОДАЖА [18:16:44]line ТРК (МРК, ГНК) : 12 [18:16:44]line Товар: 2710124130 [18:16:44]line Аи-92-К-5 [18:16:44]line 7.480 * 66.90 [18:16:44]line = 500.41 [18:16:44]line НДС 12% НСП 1% [18:16:44]line > о реализуемом товаре [18:16:44]line ОКРУГЛЕНИЕ: -0.41 [18:16:44]line ИТОГО: 500.00 [18:16:44]line Внесено: 500.00 [18:16:44]line СДАЧА: 0.00 [18:16:44]line НСП 1% : 4.43 [18:16:44]line НДС 12% : 53.14 [18:16:44]line Наличными: 500.00 [18:16:44]line Безнал.: 0.00 [18:16:44]line Место: АЗС № 85 "Партнер Нефть" [18:16:44]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:16:44]line СНО: Общий режим [18:16:44]line Чек 332 20.10.2024 18:16 [18:16:44]line Смена: 193 ФФД: 1.0 [18:16:44]line ЗНМ: 0300000167 [18:16:44]line РНМ: 0000000000156251 [18:16:44]line Версия ККМ: v1.0 [18:16:44]line ФМ: 0000000000963346 [18:16:44]line ФД: 69487 [18:16:44]line ФПД: 176840998514583 [18:16:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T181643&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69487&fm=176840998514583&tin=02508201610067®Number=0000000000156251&sum=50000 [18:16:45]OFD Sender: Processing packet 69487 [packets to send 18, broken 17] [18:16:45]ProducePacketName [18:16:45]name=ofd_packets/00069487 [18:16:45]OFD Sender: To server: pG, [18:16:45]CommunicateWithHost lk.salyk.kg:30040 [18:16:45]ConnectInit lk.salyk.kg [18:16:45]written 0, free lines is 4095 [18:16:45]Connected sock=10 [18:16:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 4C 00 07 01 E8 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 0B 49 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6F 0F 01 00 35 04 06 00 A0 D6 00 E5 EF 97 EB 76 53 CF 59 8D AF AD [18:16:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 CE 21 47 00 10 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 6F 0F 01 00 F4 03 04 00 B1 F2 14 67 B6 04 01 00 00 4A 05 4B 4E 08 FE 6C 01 [18:16:45]CommunicateWithHost err = 0 [18:16:45]CheckOFDResponse [18:16:45]1017 (14) - 77093643461234 [18:16:45]1041 (16) - 0000000000963346 [18:16:45]1040 (4) - 69487 [18:16:45]1012 (4) - 20.10.2024 12:08 [18:16:45]1206 (1) - 0 [18:16:45]OFD Sender: Remove packet 69487 [18:16:45]ProducePacketName [18:16:45]name=ofd_packets/00069487 [18:16:45]NVStorageDeleteData [18:16:45]Write to MH i2c: 01 00 00 A6 02 A8 [18:16:45]Write i2c OK [18:16:45]MH_I2C_Read... [18:16:45]Read from MH i2c: 01 [18:16:45]MH_I2C_Read... [18:16:45]Read from MH i2c: 01 07 00 [18:16:45]MH_I2C_Read... [18:16:45]Read from MH i2c: 01 07 00 A6 02 00 00 00 00 00 F6 0C B1 [18:16:45]RasterBufferAndPrint [18:16:45]line [18:16:45]line [18:16:45]line [18:16:45]line [18:16:45]line [18:16:45]written 0, free lines is 3324 [18:16:45]MH_Cut [18:16:45]Write to MH i2c: D1 01 00 AD 02 01 81 [18:16:45]Write i2c OK [18:16:45]MH_I2C_Read... [18:16:45]Read from MH i2c: D1 [18:16:45]MH_I2C_Read... [18:16:45]Read from MH i2c: D1 01 00 [18:16:45]MH_I2C_Read... [18:16:45]Read from MH i2c: D1 01 00 AD 02 00 80 [18:16:45]Write to MH i2c: 01 00 00 AE 02 B0 [18:16:45]Write i2c OK [18:16:45]MH_I2C_Read... [18:16:46]OFD Sender: No OFD packet to send [18:16:46]*** Cut start [18:16:46]*** Partial cut [18:16:46]*** CUTSNS_PIN = 1 [18:16:46]*** CUTSNS_PIN = 0 [18:16:46]*** Brake cut motor [18:16:46]Read from MH i2c: 01 [18:16:46]MH_I2C_Read... [18:16:46]*** Stop cut motor [18:16:46]*** Cut end [18:16:46]Read from MH i2c: 01 07 00 [18:16:46]MH_I2C_Read... [18:16:46]Read from MH i2c: 01 07 00 AE 02 00 00 00 00 00 FF 0F C5 [18:16:46]process_action close_receipt done [18:16:46]requested_data is exist [18:16:46]produce_requested_data [18:16:46]requested_item fm.sn is exist - process it [18:16:46]wFMCommunicate request_size=4 [18:16:46]MH_SAM_APDU [18:16:46]CAPDU: 80 11 00 00 [18:16:46]Write to MH i2c: E2 08 00 AF 02 80 11 00 00 00 00 00 00 2B [18:16:46]Write i2c OK [18:16:46]MH_I2C_Read... [18:16:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:47]Read from MH i2c: E2 [18:16:47]MH_I2C_Read... [18:16:47]Read from MH i2c: E2 17 00 [18:16:47]MH_I2C_Read... [18:16:47]Read from MH i2c: E2 17 00 AF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7D [18:16:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:16:47]wFMCommunicate OK [18:16:47]requested_item fd.num is exist - process it [18:16:47]SAM_PROTO_GetFieldsCounters [18:16:47]wFMCommunicate request_size=4 [18:16:47]MH_SAM_APDU [18:16:47]CAPDU: 80 13 00 00 [18:16:47]Write to MH i2c: E2 08 00 B0 02 80 13 00 00 00 00 00 00 2E [18:16:47]Write i2c OK [18:16:47]MH_I2C_Read... [18:16:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:16:47]Read from MH i2c: E2 [18:16:47]MH_I2C_Read... [18:16:47]Read from MH i2c: E2 62 00 [18:16:47]MH_I2C_Read... [18:16:47]Read from MH i2c: E2 62 00 B0 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6F 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 70 [18:16:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 6F 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:16:47]wFMCommunicate OK [18:16:47]SAM_PROTO_GetFieldsCounters done [18:16:47]requested_item shift.num is exist - process it [18:16:47]requested_item shift.opened is exist - process it [18:16:47]req_shift_opened [18:16:47]FM_GetShiftState [18:16:47]SAM_PROTO_GetShiftState [18:16:47]wFMCommunicate request_size=4 [18:16:47]MH_SAM_APDU [18:16:47]CAPDU: 80 13 01 00 [18:16:47]Write to MH i2c: E2 08 00 B1 02 80 13 01 00 00 00 00 00 30 [18:16:47]Write i2c OK [18:16:47]MH_I2C_Read... [18:16:47]Read from MH i2c: E2 [18:16:47]MH_I2C_Read... [18:16:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:47]Read from MH i2c: E2 0E 00 [18:16:47]MH_I2C_Read... [18:16:47]Read from MH i2c: E2 0E 00 B1 02 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 36 [18:16:47]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:16:47]wFMCommunicate OK [18:16:47]SAM_PROTO_GetShiftState done [18:16:47]FM_GetShiftState done [18:16:47]req_shift_opened done [18:16:47]requested_item shift.open_date is exist - process it [18:16:47]req_shift_open_date [18:16:47]req_shift_open_date done [18:16:47]produce_requested_data done [18:16:47]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69487,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [18:16:47]process_action_free close_receipt [18:16:47]json_value_free [18:16:47]json_value_free done [18:16:47]process_json_proto returns [18:16:47]Send response to host [18:16:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69487,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [18:16:47]free response buf [18:16:47]execute_script done [18:16:47]execute_script returns [18:16:47]free content buf [18:16:47]Sock 7.Close socket [18:16:47]Sock 7.Thread stoped [18:16:51]OFD Sender: No OFD packet to send [18:16:56]OFD Sender: No OFD packet to send [18:17:01]OFD Sender: No OFD packet to send [18:17:06]OFD Sender: No OFD packet to send [18:17:11]OFD Sender: No OFD packet to send [18:17:16]OFD Sender: No OFD packet to send [18:17:21]OFD Sender: No OFD packet to send [18:17:26]OFD Sender: No OFD packet to send [18:17:31]OFD Sender: No OFD packet to send [18:17:32]accept exits with 9 [18:17:32]New connection [18:17:32]New thread 3066654052 created [18:17:32]Thread 3066797412 joined [18:17:32]Waiting for new connection... [18:17:32] Sock 9.Parse request [18:17:32]Sock 9.Check first char [18:17:32]Sock 9.First char is OK [18:17:32]request: POST /json_proto HTTP/1.0 [18:17:32]Method: POST [18:17:32]URL: /json_proto [18:17:32]Method is POST - this is cgi request [18:17:32]url: /json_proto [18:17:32]query_string will be loaded in cgi processing [18:17:32]execute_cgi json_proto POST (null) [18:17:32]execute_cgi path=json_proto method=POST [18:17:32]POST find Content-Length [18:17:32]Host: 172.17.50.3:8080 [18:17:32]Content-Length: 675 [18:17:32]Content-Type: application/json [18:17:32] [18:17:32]POST finish read [18:17:32]Found Content-Length = 675 [18:17:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:32]execute_script... [18:17: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)2885223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:32]POST & json_proto [18:17:32]process_json_proto [18:17:32]json parsed OK: [18:17:32]protocol is kg_v1.0 [18:17:32]action value=close_receipt [18:17:32]process_action close_receipt [18:17:32]cmd_close_receipt [18:17:32]MH_GetDate [18:17:32]Write to MH i2c: F0 00 00 B2 02 A3 [18:17:32]Write i2c OK [18:17:32]MH_I2C_Read... [18:17:32]Read from MH i2c: F0 [18:17:32]MH_I2C_Read... [18:17:32]Read from MH i2c: F0 09 00 [18:17:32]MH_I2C_Read... [18:17:32]Read from MH i2c: F0 09 00 B2 02 00 3D 49 15 67 6B 98 1E 66 35 [18:17:32]GetLastDocTimeStamp 1729448203 [18:17:32]current date 1729448253 [18:17:32]FM_GetShiftState [18:17:32]SAM_PROTO_GetShiftState [18:17:32]wFMCommunicate request_size=4 [18:17:32]MH_SAM_APDU [18:17:32]CAPDU: 80 13 01 00 [18:17:32]Write to MH i2c: E2 08 00 B3 02 80 13 01 00 00 00 00 00 32 [18:17:32]Write i2c OK [18:17:32]MH_I2C_Read... [18:17:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:32]Read from MH i2c: E2 [18:17:32]MH_I2C_Read... [18:17:32]Read from MH i2c: E2 0E 00 [18:17:32]MH_I2C_Read... [18:17:32]Read from MH i2c: E2 0E 00 B3 02 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 38 [18:17:32]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:17:32]wFMCommunicate OK [18:17:32]SAM_PROTO_GetShiftState done [18:17:32]FM_GetShiftState done [18:17:32]opened in 1729383220 [18:17:32]opened+sec_in_day 1729469620 [18:17:32]quantity*price = 50063 [18:17:32]sum+1 = 50064 [18:17:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 333 20.10.2024 18:17 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69488 ФПД: 193245132969549 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T181733&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69488&fm=193245132969549&tin=02508201610067®Number=0000000000156251&sum=50000 [18:17:33]StoreToDocumentArchive [18:17:33]shift 193 fd 69488 [18:17:33]save to /storage/0193/doc_00069488 [18:17:33]save last doc name /storage/0193/doc_00069488 to /storage/kkm_last_doc_name [18:17:33]save OK [18:17:33]Clear old archive folders... [18:17:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:17:33]tlvbuf is 00F27940 [18:17:33]SAM_PROTO_ClearQueue [18:17:33]wFMCommunicate request_size=4 [18:17:33]MH_SAM_APDU [18:17:33]CAPDU: 80 09 00 00 [18:17:33]Write to MH i2c: E2 08 00 C0 02 80 09 00 00 00 00 00 00 34 [18:17:33]Write i2c OK [18:17:33]MH_I2C_Read... [18:17:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:17:33]Read from MH i2c: E2 [18:17:33]MH_I2C_Read... [18:17:33]Read from MH i2c: E2 03 00 [18:17:33]MH_I2C_Read... [18:17:33]Read from MH i2c: E2 03 00 C0 02 00 90 00 36 [18:17:33]RAPDU: 90 00 [18:17:33]wFMCommunicate OK [18:17:33]SAM_PROTO_ClearQueue done [18:17:33]KKMCreateOFDPacket [18:17:33]OFDProtocolAddRootSTLVToBuf [18:17:33]FM_MakeSignedData [18:17:33]FM_MakeSignedData [18:17:33]SAM_PROTO_SignData [18:17:33]wFMCommunicate request_size=4 [18:17:33]MH_SAM_APDU [18:17:33]CAPDU: 80 0D 01 02 [18:17:33]Write to MH i2c: E2 08 00 C1 02 80 0D 01 02 00 00 00 00 3C [18:17:33]Write i2c OK [18:17:33]MH_I2C_Read... [18:17:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:17:34]Read from MH i2c: E2 [18:17:34]MH_I2C_Read... [18:17:34]Read from MH i2c: E2 03 00 [18:17:34]MH_I2C_Read... [18:17:34]Read from MH i2c: E2 03 00 C1 02 00 90 00 37 [18:17:34]RAPDU: 90 00 [18:17:34]wFMCommunicate OK [18:17:34]wFMCommunicate request_size=255 [18:17:34]MH_SAM_APDU [18:17:34]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 3D 49 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 70 0F 01 00 35 04 06 00 AF C1 63 81 [18:17:34]Write to MH i2c: E2 02 01 C2 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 3D 49 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 70 0F 01 00 35 04 06 00 AF C1 63 81 00 00 28 [18:17:34]Write i2c OK [18:17:34]MH_I2C_Read... [18:17:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:34]Read from MH i2c: E2 [18:17:34]MH_I2C_Read... [18:17:34]Read from MH i2c: E2 03 00 [18:17:34]MH_I2C_Read... [18:17:34]Read from MH i2c: E2 03 00 C2 02 00 90 00 38 [18:17:34]RAPDU: 90 00 [18:17:34]wFMCommunicate OK [18:17:34]wFMCommunicate request_size=7 [18:17:34]MH_SAM_APDU [18:17:34]CAPDU: 80 0D 02 02 02 56 4D [18:17:34]Write to MH i2c: E2 0A 00 C3 02 80 0D 02 02 02 00 56 4D 00 00 E6 [18:17:34]Write i2c OK [18:17:34]MH_I2C_Read... [18:17:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:34]Read from MH i2c: E2 [18:17:34]MH_I2C_Read... [18:17:34]Read from MH i2c: E2 03 00 [18:17:34]MH_I2C_Read... [18:17:34]Read from MH i2c: E2 03 00 C3 02 00 90 00 39 [18:17:34]RAPDU: 90 00 [18:17:34]wFMCommunicate OK [18:17:34]wFMCommunicate request_size=4 [18:17:34]MH_SAM_APDU [18:17:34]CAPDU: 80 0D 03 02 [18:17:34]Write to MH i2c: E2 08 00 C4 02 80 0D 03 02 00 00 00 00 41 [18:17:34]Write i2c OK [18:17:34]MH_I2C_Read... [18:17:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:17:34]Read from MH i2c: E2 [18:17:34]MH_I2C_Read... [18:17:34]Read from MH i2c: E2 0B 00 [18:17:34]MH_I2C_Read... [18:17:34]Read from MH i2c: E2 0B 00 C4 02 00 B9 3D 14 CE D9 D4 C2 94 90 00 1D [18:17:34]RAPDU: B9 3D 14 CE D9 D4 C2 94 90 00 [18:17:34]wFMCommunicate OK [18:17:34]SAM_PROTO_SignData done [18:17:34]FM_MakeSignedData done [18:17:34]CreateOFDProtocolMessage [18:17:34]wFMCommunicate request_size=4 [18:17:34]MH_SAM_APDU [18:17:34]CAPDU: 80 11 00 00 [18:17:34]Write to MH i2c: E2 08 00 C5 02 80 11 00 00 00 00 00 00 41 [18:17:34]Write i2c OK [18:17:34]MH_I2C_Read... [18:17:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:34]Read from MH i2c: E2 [18:17:34]MH_I2C_Read... [18:17:34]Read from MH i2c: E2 17 00 [18:17:34]MH_I2C_Read... [18:17:34]Read from MH i2c: E2 17 00 C5 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 93 [18:17:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:17:34]wFMCommunicate OK [18:17:34]CreateOFDProtocolMessage done [18:17:34]OFDSenderStorePacket 69488 [18:17:34]StoreOFDPacket docnum=69488 [18:17:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 17 A2 04 01 CA ED 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 3D 49 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 70 0F 01 00 35 04 06 00 AF C1 63 81 56 4D B9 3D 14 CE D9 D4 C2 94 [18:17:34]CheckFolder [18:17:34]dirname=/storage/ofd_packets [18:17:34]CheckFolder done [18:17:34]ProducePacketName [18:17:34]name=ofd_packets/00069488 [18:17:34]NVStorageSaveData ofd_packets/00069488 [18:17:34]File name is /storage/ofd_packets/00069488 [18:17:34]Write 298 bytes [18:17:34]NVStorageSaveData done [18:17:34]OFDSenderStorePacket done [18:17:34]KKMCreateOFDPacket done [18:17:34]NVStorageSaveData kkm_last_timestamp [18:17:34]File name is /storage/kkm_last_timestamp [18:17:34]Write 4 bytes [18:17:34]NVStorageSaveData done [18:17:34]ExternCall_PrintAddStr [18:17:34]wPrintStart [18:17:34]Write to MH i2c: 01 00 00 C6 02 C8 [18:17:34]Write i2c OK [18:17:34]MH_I2C_Read... [18:17:34]Read from MH i2c: 01 [18:17:34]MH_I2C_Read... [18:17:34]Read from MH i2c: 01 07 00 [18:17:34]MH_I2C_Read... [18:17:34]Read from MH i2c: 01 07 00 C6 02 00 00 00 00 00 FF 0F DD [18:17:34]RasterBufferAndPrint [18:17:34]line Счет N : (1)2885223 [18:17:34]line ИНН: 02508201610067 [18:17:34]line Контрольно-Кассовый Чек [18:17:34]line ПРОДАЖА [18:17:34]line ТРК (МРК, ГНК) : 51 [18:17:34]line Товар: 2710194210 [18:17:34]line ДТ-К-5 [18:17:34]line 6.570 * 76.20 [18:17:34]line = 500.63 [18:17:34]line НДС 12% НСП 1% [18:17:34]line > о реализуемом товаре [18:17:34]line ОКРУГЛЕНИЕ: -0.63 [18:17:34]line ИТОГО: 500.00 [18:17:34]line Внесено: 500.00 [18:17:34]line СДАЧА: 0.00 [18:17:34]line НСП 1% : 4.43 [18:17:34]line НДС 12% : 53.16 [18:17:34]line Наличными: 500.00 [18:17:34]line Безнал.: 0.00 [18:17:34]line Место: АЗС № 85 "Партнер Нефть" [18:17:34]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:17:34]line СНО: Общий режим [18:17:34]line Чек 333 20.10.2024 18:17 [18:17:34]line Смена: 193 ФФД: 1.0 [18:17:34]line ЗНМ: 0300000167 [18:17:34]line РНМ: 0000000000156251 [18:17:34]line Версия ККМ: v1.0 [18:17:34]line ФМ: 0000000000963346 [18:17:34]line ФД: 69488 [18:17:34]line ФПД: 193245132969549 [18:17:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T181733&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69488&fm=193245132969549&tin=02508201610067®Number=0000000000156251&sum=50000 [18:17:34]OFD Sender: Processing packet 69488 [packets to send 18, broken 17] [18:17:34]ProducePacketName [18:17:34]name=ofd_packets/00069488 [18:17:34]OFD Sender: To server: pG, [18:17:34]CommunicateWithHost lk.salyk.kg:30040 [18:17:34]ConnectInit lk.salyk.kg [18:17:34]written 0, free lines is 4095 [18:17:34]Connected sock=10 [18:17:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 17 A2 04 01 CA ED 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 3D 49 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 70 0F 01 00 35 04 06 00 AF C1 63 81 56 4D B9 3D 14 CE D9 D4 C2 94 [18:17:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 8C AC 47 00 88 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 70 0F 01 00 F4 03 04 00 E3 F2 14 67 B6 04 01 00 00 70 B5 E4 D8 1E B3 1A 79 [18:17:35]CommunicateWithHost err = 0 [18:17:35]CheckOFDResponse [18:17:35]1017 (14) - 77093643461234 [18:17:35]1041 (16) - 0000000000963346 [18:17:35]1040 (4) - 69488 [18:17:35]1012 (4) - 20.10.2024 12:09 [18:17:35]1206 (1) - 0 [18:17:35]OFD Sender: Remove packet 69488 [18:17:35]ProducePacketName [18:17:35]name=ofd_packets/00069488 [18:17:35]NVStorageDeleteData [18:17:35]Write to MH i2c: 01 00 00 F1 02 F3 [18:17:35]Write i2c OK [18:17:35]MH_I2C_Read... [18:17:35]Read from MH i2c: 01 [18:17:35]MH_I2C_Read... [18:17:35]Read from MH i2c: 01 07 00 [18:17:35]MH_I2C_Read... [18:17:35]Read from MH i2c: 01 07 00 F1 02 00 00 00 00 00 FE 0C 04 [18:17:35]RasterBufferAndPrint [18:17:35]line [18:17:35]line [18:17:35]line [18:17:35]line [18:17:35]line [18:17:35]written 0, free lines is 3332 [18:17:35]MH_Cut [18:17:35]Write to MH i2c: D1 01 00 F8 02 01 CC [18:17:35]Write i2c OK [18:17:35]MH_I2C_Read... [18:17:35]Read from MH i2c: D1 [18:17:35]MH_I2C_Read... [18:17:35]Read from MH i2c: D1 01 00 [18:17:35]MH_I2C_Read... [18:17:35]Read from MH i2c: D1 01 00 F8 02 00 CB [18:17:35]Write to MH i2c: 01 00 00 F9 02 FB [18:17:35]Write i2c OK [18:17:35]MH_I2C_Read... [18:17:35]OFD Sender: No OFD packet to send [18:17:35]*** Cut start [18:17:35]*** Partial cut [18:17:35]*** CUTSNS_PIN = 1 [18:17:35]*** CUTSNS_PIN = 0 [18:17:36]*** Brake cut motor [18:17:36]Read from MH i2c: 01 [18:17:36]MH_I2C_Read... [18:17:36]*** Stop cut motor [18:17:36]*** Cut end [18:17:36]Read from MH i2c: 01 07 00 [18:17:36]MH_I2C_Read... [18:17:36]Read from MH i2c: 01 07 00 F9 02 00 00 00 00 00 FF 0F 10 [18:17:36]process_action close_receipt done [18:17:36]requested_data is exist [18:17:36]produce_requested_data [18:17:36]requested_item fm.sn is exist - process it [18:17:36]wFMCommunicate request_size=4 [18:17:36]MH_SAM_APDU [18:17:36]CAPDU: 80 11 00 00 [18:17:36]Write to MH i2c: E2 08 00 FA 02 80 11 00 00 00 00 00 00 76 [18:17:36]Write i2c OK [18:17:36]MH_I2C_Read... [18:17:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:36]Read from MH i2c: E2 [18:17:36]MH_I2C_Read... [18:17:36]Read from MH i2c: E2 17 00 [18:17:36]MH_I2C_Read... [18:17:36]Read from MH i2c: E2 17 00 FA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C8 [18:17:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:17:36]wFMCommunicate OK [18:17:36]requested_item fd.num is exist - process it [18:17:36]SAM_PROTO_GetFieldsCounters [18:17:36]wFMCommunicate request_size=4 [18:17:36]MH_SAM_APDU [18:17:36]CAPDU: 80 13 00 00 [18:17:36]Write to MH i2c: E2 08 00 FB 02 80 13 00 00 00 00 00 00 79 [18:17:36]Write i2c OK [18:17:36]MH_I2C_Read... [18:17:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:17:36]Read from MH i2c: E2 [18:17:36]MH_I2C_Read... [18:17:36]Read from MH i2c: E2 62 00 [18:17:36]MH_I2C_Read... [18:17:36]Read from MH i2c: E2 62 00 FB 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 70 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 BF [18:17:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 70 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:17:36]wFMCommunicate OK [18:17:36]SAM_PROTO_GetFieldsCounters done [18:17:36]requested_item shift.num is exist - process it [18:17:36]requested_item shift.opened is exist - process it [18:17:36]req_shift_opened [18:17:36]FM_GetShiftState [18:17:36]SAM_PROTO_GetShiftState [18:17:36]wFMCommunicate request_size=4 [18:17:36]MH_SAM_APDU [18:17:36]CAPDU: 80 13 01 00 [18:17:36]Write to MH i2c: E2 08 00 FC 02 80 13 01 00 00 00 00 00 7B [18:17:36]Write i2c OK [18:17:36]MH_I2C_Read... [18:17:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:36]Read from MH i2c: E2 [18:17:36]MH_I2C_Read... [18:17:36]Read from MH i2c: E2 0E 00 [18:17:36]MH_I2C_Read... [18:17:36]Read from MH i2c: E2 0E 00 FC 02 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 81 [18:17:36]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:17:36]wFMCommunicate OK [18:17:36]SAM_PROTO_GetShiftState done [18:17:36]FM_GetShiftState done [18:17:36]req_shift_opened done [18:17:36]requested_item shift.open_date is exist - process it [18:17:36]req_shift_open_date [18:17:36]req_shift_open_date done [18:17:36]produce_requested_data done [18:17:36]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69488,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [18:17:36]process_action_free close_receipt [18:17:36]json_value_free [18:17:36]json_value_free done [18:17:36]process_json_proto returns [18:17:36]Send response to host [18:17:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69488,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [18:17:36]free response buf [18:17:36]execute_script done [18:17:36]execute_script returns [18:17:36]free content buf [18:17:36]Sock 9.Close socket [18:17:36]Sock 9.Thread stoped [18:17:40]OFD Sender: No OFD packet to send [18:17:45]OFD Sender: No OFD packet to send [18:17:50]OFD Sender: No OFD packet to send [18:17:55]OFD Sender: No OFD packet to send [18:18:00]OFD Sender: No OFD packet to send [18:18:05]OFD Sender: No OFD packet to send [18:18:10]OFD Sender: No OFD packet to send [18:18:15]OFD Sender: No OFD packet to send [18:18:20]OFD Sender: No OFD packet to send [18:18:25]OFD Sender: No OFD packet to send [18:18:30]OFD Sender: No OFD packet to send [18:18:35]OFD Sender: No OFD packet to send [18:18:40]OFD Sender: No OFD packet to send [18:18:45]OFD Sender: No OFD packet to send [18:18:50]OFD Sender: No OFD packet to send [18:18:55]OFD Sender: No OFD packet to send [18:19:00]OFD Sender: No OFD packet to send [18:19:05]OFD Sender: No OFD packet to send [18:19:10]OFD Sender: No OFD packet to send [18:19:15]OFD Sender: No OFD packet to send [18:19:20]OFD Sender: No OFD packet to send [18:19:25]OFD Sender: No OFD packet to send [18:19:30]OFD Sender: No OFD packet to send [18:19:35]OFD Sender: No OFD packet to send [18:19:40]OFD Sender: No OFD packet to send [18:19:45]OFD Sender: No OFD packet to send [18:19:50]OFD Sender: No OFD packet to send [18:19:55]OFD Sender: No OFD packet to send [18:20:00]OFD Sender: No OFD packet to send [18:20:05]OFD Sender: No OFD packet to send [18:20:10]OFD Sender: No OFD packet to send [18:20:15]OFD Sender: No OFD packet to send [18:20:20]OFD Sender: No OFD packet to send [18:20:25]OFD Sender: No OFD packet to send [18:20:30]OFD Sender: No OFD packet to send [18:20:35]OFD Sender: No OFD packet to send [18:20:40]OFD Sender: No OFD packet to send [18:20:45]OFD Sender: No OFD packet to send [18:20:50]OFD Sender: No OFD packet to send [18:20:55]accept exits with 7 [18:20:55]New connection [18:20:55]New thread 3066797412 created [18:20:55]Thread 3066654052 joined [18:20:55]Waiting for new connection... [18:20:55] Sock 7.Parse request [18:20:55]Sock 7.Check first char [18:20:55]Sock 7.First char is OK [18:20:55]request: POST /json_proto HTTP/1.0 [18:20:55]Method: POST [18:20:55]URL: /json_proto [18:20:55]Method is POST - this is cgi request [18:20:55]url: /json_proto [18:20:55]query_string will be loaded in cgi processing [18:20:55]execute_cgi json_proto POST (null) [18:20:55]execute_cgi path=json_proto method=POST [18:20:55]POST find Content-Length [18:20:55]Host: 172.17.50.3:8080 [18:20:55]Content-Length: 689 [18:20:55]Content-Type: application/json [18:20:55] [18:20:55]POST finish read [18:20:55]Found Content-Length = 689 [18:20:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:55]execute_script... [18:20:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:55]POST & json_proto [18:20:55]process_json_proto [18:20:55]json parsed OK: [18:20:55]protocol is kg_v1.0 [18:20:55]action value=close_receipt [18:20:55]process_action close_receipt [18:20:55]cmd_close_receipt [18:20:55]MH_GetDate [18:20:55]Write to MH i2c: F0 00 00 FD 02 EE [18:20:55]Write i2c OK [18:20:55]MH_I2C_Read... [18:20:55]Read from MH i2c: F0 [18:20:55]MH_I2C_Read... [18:20:55]Read from MH i2c: F0 09 00 [18:20:55]MH_I2C_Read... [18:20:55]Read from MH i2c: F0 09 00 FD 02 00 07 4A 15 67 6B 98 1E 66 4B [18:20:55]GetLastDocTimeStamp 1729448253 [18:20:55]current date 1729448455 [18:20:55]FM_GetShiftState [18:20:55]SAM_PROTO_GetShiftState [18:20:55]wFMCommunicate request_size=4 [18:20:55]MH_SAM_APDU [18:20:55]CAPDU: 80 13 01 00 [18:20:55]Write to MH i2c: E2 08 00 FE 02 80 13 01 00 00 00 00 00 7D [18:20:55]Write i2c OK [18:20:55]MH_I2C_Read... [18:20:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:55]Read from MH i2c: E2 [18:20:55]MH_I2C_Read... [18:20:55]Read from MH i2c: E2 0E 00 [18:20:55]MH_I2C_Read... [18:20:55]Read from MH i2c: E2 0E 00 FE 02 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 83 [18:20:55]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:20:55]wFMCommunicate OK [18:20:55]SAM_PROTO_GetShiftState done [18:20:55]FM_GetShiftState done [18:20:55]opened in 1729383220 [18:20:55]opened+sec_in_day 1729469620 [18:20:55]quantity*price = 100051 [18:20:55]sum+1 = 100052 [18:20:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 334 20.10.2024 18:20 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69489 ФПД: 267714917329869 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182056&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69489&fm=267714917329869&tin=02508201610067®Number=0000000000156251&sum=100000 [18:20:56]StoreToDocumentArchive [18:20:56]shift 193 fd 69489 [18:20:56]save to /storage/0193/doc_00069489 [18:20:56]save last doc name /storage/0193/doc_00069489 to /storage/kkm_last_doc_name [18:20:56]save OK [18:20:56]Clear old archive folders... [18:20:56]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:20:56]tlvbuf is 00F1F430 [18:20:56]SAM_PROTO_ClearQueue [18:20:56]wFMCommunicate request_size=4 [18:20:56]MH_SAM_APDU [18:20:56]CAPDU: 80 09 00 00 [18:20:56]Write to MH i2c: E2 08 00 0B 03 80 09 00 00 00 00 00 00 80 [18:20:56]Write i2c OK [18:20:56]MH_I2C_Read... [18:20:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:20:56]Read from MH i2c: E2 [18:20:56]MH_I2C_Read... [18:20:56]Read from MH i2c: E2 03 00 [18:20:56]MH_I2C_Read... [18:20:56]Read from MH i2c: E2 03 00 0B 03 00 90 00 82 [18:20:56]RAPDU: 90 00 [18:20:56]wFMCommunicate OK [18:20:56]SAM_PROTO_ClearQueue done [18:20:56]KKMCreateOFDPacket [18:20:56]OFDProtocolAddRootSTLVToBuf [18:20:56]FM_MakeSignedData [18:20:56]FM_MakeSignedData [18:20:56]SAM_PROTO_SignData [18:20:56]wFMCommunicate request_size=4 [18:20:56]MH_SAM_APDU [18:20:56]CAPDU: 80 0D 01 02 [18:20:56]Write to MH i2c: E2 08 00 0C 03 80 0D 01 02 00 00 00 00 88 [18:20:56]Write i2c OK [18:20:56]MH_I2C_Read... [18:20:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:20:56]Read from MH i2c: E2 [18:20:56]MH_I2C_Read... [18:20:56]Read from MH i2c: E2 03 00 [18:20:56]MH_I2C_Read... [18:20:56]Read from MH i2c: E2 03 00 0C 03 00 90 00 83 [18:20:56]RAPDU: 90 00 [18:20:56]wFMCommunicate OK [18:20:56]wFMCommunicate request_size=255 [18:20:56]MH_SAM_APDU [18:20:56]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 08 4A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 71 0F 01 [18:20:56]Write to MH i2c: E2 02 01 0D 03 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 08 4A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 71 0F 01 00 00 39 [18:20:56]Write i2c OK [18:20:56]MH_I2C_Read... [18:20:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:57]Read from MH i2c: E2 [18:20:57]MH_I2C_Read... [18:20:57]Read from MH i2c: E2 03 00 [18:20:57]MH_I2C_Read... [18:20:57]Read from MH i2c: E2 03 00 0D 03 00 90 00 84 [18:20:57]RAPDU: 90 00 [18:20:57]wFMCommunicate OK [18:20:57]wFMCommunicate request_size=16 [18:20:57]MH_SAM_APDU [18:20:57]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 F3 7C 3C 8C 6B CD [18:20:57]Write to MH i2c: E2 13 00 0E 03 80 0D 02 02 0B 00 00 35 04 06 00 F3 7C 3C 8C 6B CD 00 00 4F [18:20:57]Write i2c OK [18:20:57]MH_I2C_Read... [18:20:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:57]Read from MH i2c: E2 [18:20:57]MH_I2C_Read... [18:20:57]Read from MH i2c: E2 03 00 [18:20:57]MH_I2C_Read... [18:20:57]Read from MH i2c: E2 03 00 0E 03 00 90 00 85 [18:20:57]RAPDU: 90 00 [18:20:57]wFMCommunicate OK [18:20:57]wFMCommunicate request_size=4 [18:20:57]MH_SAM_APDU [18:20:57]CAPDU: 80 0D 03 02 [18:20:57]Write to MH i2c: E2 08 00 0F 03 80 0D 03 02 00 00 00 00 8D [18:20:57]Write i2c OK [18:20:57]MH_I2C_Read... [18:20:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:20:57]Read from MH i2c: E2 [18:20:57]MH_I2C_Read... [18:20:57]Read from MH i2c: E2 0B 00 [18:20:57]MH_I2C_Read... [18:20:57]Read from MH i2c: E2 0B 00 0F 03 00 1E 39 E8 49 2C BD B8 46 90 00 FD [18:20:57]RAPDU: 1E 39 E8 49 2C BD B8 46 90 00 [18:20:57]wFMCommunicate OK [18:20:57]SAM_PROTO_SignData done [18:20:57]FM_MakeSignedData done [18:20:57]CreateOFDProtocolMessage [18:20:57]wFMCommunicate request_size=4 [18:20:57]MH_SAM_APDU [18:20:57]CAPDU: 80 11 00 00 [18:20:57]Write to MH i2c: E2 08 00 10 03 80 11 00 00 00 00 00 00 8D [18:20:57]Write i2c OK [18:20:57]MH_I2C_Read... [18:20:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:57]Read from MH i2c: E2 [18:20:57]MH_I2C_Read... [18:20:57]Read from MH i2c: E2 17 00 [18:20:57]MH_I2C_Read... [18:20:57]Read from MH i2c: E2 17 00 10 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DF [18:20:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:20:57]wFMCommunicate OK [18:20:57]CreateOFDProtocolMessage done [18:20:57]OFDSenderStorePacket 69489 [18:20:57]StoreOFDPacket docnum=69489 [18:20:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 F3 09 0D 01 71 40 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 08 4A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 71 0F 01 00 35 04 06 00 F3 7C 3C 8C 6B CD 1E 39 E8 49 2C BD B8 46 [18:20:57]CheckFolder [18:20:57]dirname=/storage/ofd_packets [18:20:57]CheckFolder done [18:20:57]ProducePacketName [18:20:57]name=ofd_packets/00069489 [18:20:57]NVStorageSaveData ofd_packets/00069489 [18:20:57]File name is /storage/ofd_packets/00069489 [18:20:57]Write 307 bytes [18:20:57]NVStorageSaveData done [18:20:57]OFDSenderStorePacket done [18:20:57]KKMCreateOFDPacket done [18:20:57]NVStorageSaveData kkm_last_timestamp [18:20:57]File name is /storage/kkm_last_timestamp [18:20:57]Write 4 bytes [18:20:57]NVStorageSaveData done [18:20:57]ExternCall_PrintAddStr [18:20:57]wPrintStart [18:20:57]Write to MH i2c: 01 00 00 11 03 14 [18:20:57]Write i2c OK [18:20:57]MH_I2C_Read... [18:20:57]Read from MH i2c: 01 [18:20:57]MH_I2C_Read... [18:20:57]Read from MH i2c: 01 07 00 [18:20:57]MH_I2C_Read... [18:20:57]Read from MH i2c: 01 07 00 11 03 00 00 00 00 00 FF 0F 29 [18:20:57]RasterBufferAndPrint [18:20:57]line Счет N : (1)2885225 [18:20:57]line ИНН: 02508201610067 [18:20:57]line Контрольно-Кассовый Чек [18:20:57]line ПРОДАЖА [18:20:57]line ТРК (МРК, ГНК) : 11 [18:20:57]line Товар: 2710194240 [18:20:57]line D-ENERGY Дт-К-2 [18:20:57]line 12.960 * 77.20 [18:20:57]line = 1000.51 [18:20:57]line НДС 12% НСП 1% [18:20:57]line > о реализуемом товаре [18:20:57]line ОКРУГЛЕНИЕ: -0.51 [18:20:57]line ИТОГО: 1000.00 [18:20:57]line Внесено: 1000.00 [18:20:57]line СДАЧА: 0.00 [18:20:57]line НСП 1% : 8.85 [18:20:57]line НДС 12% : 106.25 [18:20:57]line Наличными: 1000.00 [18:20:57]line Безнал.: 0.00 [18:20:57]line Место: АЗС № 85 "Партнер Нефть" [18:20:57]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:20:57]line СНО: Общий режим [18:20:57]line Чек 334 20.10.2024 18:20 [18:20:57]line Смена: 193 ФФД: 1.0 [18:20:57]line ЗНМ: 0300000167 [18:20:57]line РНМ: 0000000000156251 [18:20:57]line Версия ККМ: v1.0 [18:20:57]line ФМ: 0000000000963346 [18:20:57]line ФД: 69489 [18:20:57]line ФПД: 267714917329869 [18:20:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182056&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69489&fm=267714917329869&tin=02508201610067®Number=0000000000156251&sum=100000 [18:20:57]OFD Sender: Processing packet 69489 [packets to send 18, broken 17] [18:20:57]ProducePacketName [18:20:57]name=ofd_packets/00069489 [18:20:57]OFD Sender: To server: pG, [18:20:57]CommunicateWithHost lk.salyk.kg:30040 [18:20:57]ConnectInit lk.salyk.kg [18:20:57]written 0, free lines is 4095 [18:20:57]Connected sock=10 [18:20:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 F3 09 0D 01 71 40 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 08 4A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 71 0F 01 00 35 04 06 00 F3 7C 3C 8C 6B CD 1E 39 E8 49 2C BD B8 46 [18:20:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 66 C4 47 00 6A 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 71 0F 01 00 F4 03 04 00 AE F3 14 67 B6 04 01 00 00 7D 3F A5 9B D5 80 27 6A [18:20:57]CommunicateWithHost err = 0 [18:20:57]CheckOFDResponse [18:20:57]1017 (14) - 77093643461234 [18:20:57]1041 (16) - 0000000000963346 [18:20:57]1040 (4) - 69489 [18:20:57]1012 (4) - 20.10.2024 12:12 [18:20:57]1206 (1) - 0 [18:20:57]OFD Sender: Remove packet 69489 [18:20:57]ProducePacketName [18:20:57]name=ofd_packets/00069489 [18:20:57]NVStorageDeleteData [18:20:58]Write to MH i2c: 01 00 00 3C 03 3F [18:20:58]Write i2c OK [18:20:58]MH_I2C_Read... [18:20:58]Read from MH i2c: 01 [18:20:58]MH_I2C_Read... [18:20:58]Read from MH i2c: 01 07 00 [18:20:58]MH_I2C_Read... [18:20:58]Read from MH i2c: 01 07 00 3C 03 00 00 00 00 00 F4 0C 46 [18:20:58]RasterBufferAndPrint [18:20:58]line [18:20:58]line [18:20:58]line [18:20:58]line [18:20:58]line [18:20:58]written 0, free lines is 3322 [18:20:58]MH_Cut [18:20:58]Write to MH i2c: D1 01 00 43 03 01 18 [18:20:58]Write i2c OK [18:20:58]MH_I2C_Read... [18:20:58]Read from MH i2c: D1 [18:20:58]MH_I2C_Read... [18:20:58]Read from MH i2c: D1 01 00 [18:20:58]MH_I2C_Read... [18:20:58]Read from MH i2c: D1 01 00 43 03 00 17 [18:20:58]Write to MH i2c: 01 00 00 44 03 47 [18:20:58]Write i2c OK [18:20:58]MH_I2C_Read... [18:20:58]OFD Sender: No OFD packet to send [18:20:58]*** Cut start [18:20:58]*** Partial cut [18:20:58]*** CUTSNS_PIN = 1 [18:20:58]*** CUTSNS_PIN = 0 [18:20:59]*** Brake cut motor [18:20:59]Read from MH i2c: 01 [18:20:59]MH_I2C_Read... [18:20:59]*** Stop cut motor [18:20:59]*** Cut end [18:20:59]Read from MH i2c: 01 07 00 [18:20:59]MH_I2C_Read... [18:20:59]Read from MH i2c: 01 07 00 44 03 00 00 00 00 00 FF 0F 5C [18:20:59]process_action close_receipt done [18:20:59]requested_data is exist [18:20:59]produce_requested_data [18:20:59]requested_item fm.sn is exist - process it [18:20:59]wFMCommunicate request_size=4 [18:20:59]MH_SAM_APDU [18:20:59]CAPDU: 80 11 00 00 [18:20:59]Write to MH i2c: E2 08 00 45 03 80 11 00 00 00 00 00 00 C2 [18:20:59]Write i2c OK [18:20:59]MH_I2C_Read... [18:20:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:59]Read from MH i2c: E2 [18:20:59]MH_I2C_Read... [18:20:59]Read from MH i2c: E2 17 00 [18:20:59]MH_I2C_Read... [18:20:59]Read from MH i2c: E2 17 00 45 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 14 [18:20:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:20:59]wFMCommunicate OK [18:20:59]requested_item fd.num is exist - process it [18:20:59]SAM_PROTO_GetFieldsCounters [18:20:59]wFMCommunicate request_size=4 [18:20:59]MH_SAM_APDU [18:20:59]CAPDU: 80 13 00 00 [18:20:59]Write to MH i2c: E2 08 00 46 03 80 13 00 00 00 00 00 00 C5 [18:20:59]Write i2c OK [18:20:59]MH_I2C_Read... [18:20:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:20:59]Read from MH i2c: E2 [18:20:59]MH_I2C_Read... [18:20:59]Read from MH i2c: E2 62 00 [18:20:59]MH_I2C_Read... [18:20:59]Read from MH i2c: E2 62 00 46 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 71 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 0F [18:20:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 71 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:20:59]wFMCommunicate OK [18:20:59]SAM_PROTO_GetFieldsCounters done [18:20:59]requested_item shift.num is exist - process it [18:20:59]requested_item shift.opened is exist - process it [18:20:59]req_shift_opened [18:20:59]FM_GetShiftState [18:20:59]SAM_PROTO_GetShiftState [18:20:59]wFMCommunicate request_size=4 [18:20:59]MH_SAM_APDU [18:20:59]CAPDU: 80 13 01 00 [18:20:59]Write to MH i2c: E2 08 00 47 03 80 13 01 00 00 00 00 00 C7 [18:20:59]Write i2c OK [18:20:59]MH_I2C_Read... [18:20:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:59]Read from MH i2c: E2 [18:20:59]MH_I2C_Read... [18:20:59]Read from MH i2c: E2 0E 00 [18:20:59]MH_I2C_Read... [18:20:59]Read from MH i2c: E2 0E 00 47 03 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 CD [18:20:59]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:20:59]wFMCommunicate OK [18:20:59]SAM_PROTO_GetShiftState done [18:20:59]FM_GetShiftState done [18:20:59]req_shift_opened done [18:20:59]requested_item shift.open_date is exist - process it [18:20:59]req_shift_open_date [18:20:59]req_shift_open_date done [18:20:59]produce_requested_data done [18:20:59]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69489,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [18:20:59]process_action_free close_receipt [18:20:59]json_value_free [18:20:59]json_value_free done [18:20:59]process_json_proto returns [18:20:59]Send response to host [18:20:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69489,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [18:20:59]free response buf [18:20:59]execute_script done [18:20:59]execute_script returns [18:20:59]free content buf [18:20:59]Sock 7.Close socket [18:20:59]Sock 7.Thread stoped [18:21:03]OFD Sender: No OFD packet to send [18:21:08]OFD Sender: No OFD packet to send [18:21:13]OFD Sender: No OFD packet to send [18:21:18]OFD Sender: No OFD packet to send [18:21:23]OFD Sender: No OFD packet to send [18:21:28]OFD Sender: No OFD packet to send [18:21:33]OFD Sender: No OFD packet to send [18:21:38]OFD Sender: No OFD packet to send [18:21:43]OFD Sender: No OFD packet to send [18:21:48]OFD Sender: No OFD packet to send [18:21:53]OFD Sender: No OFD packet to send [18:21:58]OFD Sender: No OFD packet to send [18:22:03]OFD Sender: No OFD packet to send [18:22:08]OFD Sender: No OFD packet to send [18:22:13]OFD Sender: No OFD packet to send [18:22:18]OFD Sender: No OFD packet to send [18:22:23]OFD Sender: No OFD packet to send [18:22:28]OFD Sender: No OFD packet to send [18:22:33]OFD Sender: No OFD packet to send [18:22:38]OFD Sender: No OFD packet to send [18:22:43]OFD Sender: No OFD packet to send [18:22:48]OFD Sender: No OFD packet to send [18:22:53]OFD Sender: No OFD packet to send [18:22:58]OFD Sender: No OFD packet to send [18:23:03]OFD Sender: No OFD packet to send [18:23:08]OFD Sender: No OFD packet to send [18:23:13]OFD Sender: No OFD packet to send [18:23:18]OFD Sender: No OFD packet to send [18:23:23]OFD Sender: No OFD packet to send [18:23:28]OFD Sender: No OFD packet to send [18:23:33]OFD Sender: No OFD packet to send [18:23:38]OFD Sender: No OFD packet to send [18:23:43]OFD Sender: No OFD packet to send [18:23:48]OFD Sender: No OFD packet to send [18:23:53]OFD Sender: No OFD packet to send [18:23:58]OFD Sender: No OFD packet to send [18:24:03]OFD Sender: No OFD packet to send [18:24:08]OFD Sender: No OFD packet to send [18:24:13]OFD Sender: No OFD packet to send [18:24:18]OFD Sender: No OFD packet to send [18:24:23]OFD Sender: No OFD packet to send [18:24:28]OFD Sender: No OFD packet to send [18:24:33]OFD Sender: No OFD packet to send [18:24:38]OFD Sender: No OFD packet to send [18:24:43]OFD Sender: No OFD packet to send [18:24:48]OFD Sender: No OFD packet to send [18:24:53]OFD Sender: No OFD packet to send [18:24:58]OFD Sender: No OFD packet to send [18:25:03]OFD Sender: No OFD packet to send [18:25:08]OFD Sender: No OFD packet to send [18:25:13]OFD Sender: No OFD packet to send [18:25:18]OFD Sender: No OFD packet to send [18:25:23]OFD Sender: No OFD packet to send [18:25:28]OFD Sender: No OFD packet to send [18:25:33]OFD Sender: No OFD packet to send [18:25:38]OFD Sender: No OFD packet to send [18:25:43]OFD Sender: No OFD packet to send [18:25:48]OFD Sender: No OFD packet to send [18:25:53]OFD Sender: No OFD packet to send [18:25:58]OFD Sender: No OFD packet to send [18:26:03]OFD Sender: No OFD packet to send [18:26:08]OFD Sender: No OFD packet to send [18:26:13]OFD Sender: No OFD packet to send [18:26:18]OFD Sender: No OFD packet to send [18:26:23]OFD Sender: No OFD packet to send [18:26:28]OFD Sender: No OFD packet to send [18:26:33]OFD Sender: No OFD packet to send [18:26:38]OFD Sender: No OFD packet to send [18:26:43]OFD Sender: No OFD packet to send [18:26:48]OFD Sender: No OFD packet to send [18:26:53]OFD Sender: No OFD packet to send [18:26:58]accept exits with 9 [18:26:58]New connection [18:26:58]New thread 3066654052 created [18:26:58]Thread 3066797412 joined [18:26:58]Waiting for new connection... [18:26:58] Sock 9.Parse request [18:26:58]Sock 9.Check first char [18:26:58]Sock 9.First char is OK [18:26:58]request: POST /json_proto HTTP/1.0 [18:26:58]Method: POST [18:26:58]URL: /json_proto [18:26:58]Method is POST - this is cgi request [18:26:58]url: /json_proto [18:26:58]query_string will be loaded in cgi processing [18:26:58]execute_cgi json_proto POST (null) [18:26:58]execute_cgi path=json_proto method=POST [18:26:58]POST find Content-Length [18:26:58]Host: 172.17.50.3:8080 [18:26:58]Content-Length: 678 [18:26:58]Content-Type: application/json [18:26:58] [18:26:58]POST finish read [18:26:58]Found Content-Length = 678 [18:26:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:58]execute_script... [18:26: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)2885227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:58]POST & json_proto [18:26:58]process_json_proto [18:26:58]json parsed OK: [18:26:58]protocol is kg_v1.0 [18:26:58]action value=close_receipt [18:26:58]process_action close_receipt [18:26:58]cmd_close_receipt [18:26:58]MH_GetDate [18:26:58]Write to MH i2c: F0 00 00 48 03 3A [18:26:58]Write i2c OK [18:26:58]MH_I2C_Read... [18:26:58]Read from MH i2c: F0 [18:26:58]MH_I2C_Read... [18:26:58]Read from MH i2c: F0 09 00 [18:26:58]MH_I2C_Read... [18:26:58]Read from MH i2c: F0 09 00 48 03 00 72 4B 15 67 6B 98 1E 66 03 [18:26:58]GetLastDocTimeStamp 1729448456 [18:26:58]current date 1729448818 [18:26:58]FM_GetShiftState [18:26:58]SAM_PROTO_GetShiftState [18:26:58]wFMCommunicate request_size=4 [18:26:58]MH_SAM_APDU [18:26:58]CAPDU: 80 13 01 00 [18:26:58]Write to MH i2c: E2 08 00 49 03 80 13 01 00 00 00 00 00 C9 [18:26:58]Write i2c OK [18:26:58]MH_I2C_Read... [18:26:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:58]Read from MH i2c: E2 [18:26:58]MH_I2C_Read... [18:26:58]Read from MH i2c: E2 0E 00 [18:26:58]MH_I2C_Read... [18:26:58]Read from MH i2c: E2 0E 00 49 03 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 CF [18:26:58]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:26:58]wFMCommunicate OK [18:26:58]SAM_PROTO_GetShiftState done [18:26:58]FM_GetShiftState done [18:26:58]opened in 1729383220 [18:26:58]opened+sec_in_day 1729469620 [18:26:58]quantity*price = 50041 [18:26:58]sum+1 = 50042 [18:26:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 335 20.10.2024 18:26 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69490 ФПД: 227644275995712 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182658&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69490&fm=227644275995712&tin=02508201610067®Number=0000000000156251&sum=50000 [18:26:59]StoreToDocumentArchive [18:26:59]shift 193 fd 69490 [18:26:59]save to /storage/0193/doc_00069490 [18:26:59]save last doc name /storage/0193/doc_00069490 to /storage/kkm_last_doc_name [18:26:59]save OK [18:26:59]Clear old archive folders... [18:26:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:26:59]tlvbuf is 00F18480 [18:26:59]SAM_PROTO_ClearQueue [18:26:59]wFMCommunicate request_size=4 [18:26:59]MH_SAM_APDU [18:26:59]CAPDU: 80 09 00 00 [18:26:59]Write to MH i2c: E2 08 00 56 03 80 09 00 00 00 00 00 00 CB [18:26:59]Write i2c OK [18:26:59]MH_I2C_Read... [18:26:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:26:59]Read from MH i2c: E2 [18:26:59]MH_I2C_Read... [18:26:59]Read from MH i2c: E2 03 00 [18:26:59]MH_I2C_Read... [18:26:59]Read from MH i2c: E2 03 00 56 03 00 90 00 CD [18:26:59]RAPDU: 90 00 [18:26:59]wFMCommunicate OK [18:26:59]SAM_PROTO_ClearQueue done [18:26:59]KKMCreateOFDPacket [18:26:59]OFDProtocolAddRootSTLVToBuf [18:26:59]FM_MakeSignedData [18:26:59]FM_MakeSignedData [18:26:59]SAM_PROTO_SignData [18:26:59]wFMCommunicate request_size=4 [18:26:59]MH_SAM_APDU [18:26:59]CAPDU: 80 0D 01 02 [18:26:59]Write to MH i2c: E2 08 00 57 03 80 0D 01 02 00 00 00 00 D3 [18:26:59]Write i2c OK [18:26:59]MH_I2C_Read... [18:26:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:26:59]Read from MH i2c: E2 [18:26:59]MH_I2C_Read... [18:26:59]Read from MH i2c: E2 03 00 [18:26:59]MH_I2C_Read... [18:26:59]Read from MH i2c: E2 03 00 57 03 00 90 00 CE [18:26:59]RAPDU: 90 00 [18:26:59]wFMCommunicate OK [18:26:59]wFMCommunicate request_size=255 [18:26:59]MH_SAM_APDU [18:26:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 72 4B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 72 0F 01 00 35 04 06 00 CF [18:26:59]Write to MH i2c: E2 02 01 58 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 72 4B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 72 0F 01 00 35 04 06 00 CF 00 00 F7 [18:26:59]Write i2c OK [18:26:59]MH_I2C_Read... [18:26:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:59]Read from MH i2c: E2 [18:26:59]MH_I2C_Read... [18:26:59]Read from MH i2c: E2 03 00 [18:26:59]MH_I2C_Read... [18:26:59]Read from MH i2c: E2 03 00 58 03 00 90 00 CF [18:26:59]RAPDU: 90 00 [18:26:59]wFMCommunicate OK [18:26:59]wFMCommunicate request_size=10 [18:26:59]MH_SAM_APDU [18:26:59]CAPDU: 80 0D 02 02 05 0A 90 34 B4 40 [18:26:59]Write to MH i2c: E2 0D 00 59 03 80 0D 02 02 05 00 0A 90 34 B4 40 00 00 A2 [18:26:59]Write i2c OK [18:26:59]MH_I2C_Read... [18:26:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:59]Read from MH i2c: E2 [18:27:00]MH_I2C_Read... [18:27:00]Read from MH i2c: E2 03 00 [18:27:00]MH_I2C_Read... [18:27:00]Read from MH i2c: E2 03 00 59 03 00 90 00 D0 [18:27:00]RAPDU: 90 00 [18:27:00]wFMCommunicate OK [18:27:00]wFMCommunicate request_size=4 [18:27:00]MH_SAM_APDU [18:27:00]CAPDU: 80 0D 03 02 [18:27:00]Write to MH i2c: E2 08 00 5A 03 80 0D 03 02 00 00 00 00 D8 [18:27:00]Write i2c OK [18:27:00]MH_I2C_Read... [18:27:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:00]Read from MH i2c: E2 [18:27:00]MH_I2C_Read... [18:27:00]Read from MH i2c: E2 0B 00 [18:27:00]MH_I2C_Read... [18:27:00]Read from MH i2c: E2 0B 00 5A 03 00 3B 92 B0 48 25 42 76 45 90 00 C0 [18:27:00]RAPDU: 3B 92 B0 48 25 42 76 45 90 00 [18:27:00]wFMCommunicate OK [18:27:00]SAM_PROTO_SignData done [18:27:00]FM_MakeSignedData done [18:27:00]CreateOFDProtocolMessage [18:27:00]wFMCommunicate request_size=4 [18:27:00]MH_SAM_APDU [18:27:00]CAPDU: 80 11 00 00 [18:27:00]Write to MH i2c: E2 08 00 5B 03 80 11 00 00 00 00 00 00 D8 [18:27:00]Write i2c OK [18:27:00]MH_I2C_Read... [18:27:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:00]Read from MH i2c: E2 [18:27:00]MH_I2C_Read... [18:27:00]Read from MH i2c: E2 17 00 [18:27:00]MH_I2C_Read... [18:27:00]Read from MH i2c: E2 17 00 5B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2A [18:27:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:27:00]wFMCommunicate OK [18:27:00]CreateOFDProtocolMessage done [18:27:00]OFDSenderStorePacket 69490 [18:27:00]StoreOFDPacket docnum=69490 [18:27:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 9C EA 07 01 7E 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 72 4B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 72 0F 01 00 35 04 06 00 CF 0A 90 34 B4 40 3B 92 B0 48 25 42 76 45 [18:27:00]CheckFolder [18:27:00]dirname=/storage/ofd_packets [18:27:00]CheckFolder done [18:27:00]ProducePacketName [18:27:00]name=ofd_packets/00069490 [18:27:00]NVStorageSaveData ofd_packets/00069490 [18:27:00]File name is /storage/ofd_packets/00069490 [18:27:00]Write 301 bytes [18:27:00]NVStorageSaveData done [18:27:00]OFDSenderStorePacket done [18:27:00]KKMCreateOFDPacket done [18:27:00]NVStorageSaveData kkm_last_timestamp [18:27:00]File name is /storage/kkm_last_timestamp [18:27:00]Write 4 bytes [18:27:00]NVStorageSaveData done [18:27:00]ExternCall_PrintAddStr [18:27:00]wPrintStart [18:27:00]Write to MH i2c: 01 00 00 5C 03 5F [18:27:00]Write i2c OK [18:27:00]MH_I2C_Read... [18:27:00]Read from MH i2c: 01 [18:27:00]MH_I2C_Read... [18:27:00]Read from MH i2c: 01 07 00 [18:27:00]MH_I2C_Read... [18:27:00]Read from MH i2c: 01 07 00 5C 03 00 00 00 00 00 FF 0F 74 [18:27:00]RasterBufferAndPrint [18:27:00]line Счет N : (1)2885227 [18:27:00]line ИНН: 02508201610067 [18:27:00]line Контрольно-Кассовый Чек [18:27:00]line ПРОДАЖА [18:27:00]line ТРК (МРК, ГНК) : 32 [18:27:00]line Товар: 2710124130 [18:27:00]line Аи-92-К-5 [18:27:00]line 7.480 * 66.90 [18:27:00]line = 500.41 [18:27:00]line НДС 12% НСП 1% [18:27:00]line > о реализуемом товаре [18:27:00]line ОКРУГЛЕНИЕ: -0.41 [18:27:00]line ИТОГО: 500.00 [18:27:00]line Внесено: 500.00 [18:27:00]line СДАЧА: 0.00 [18:27:00]line НСП 1% : 4.43 [18:27:00]line НДС 12% : 53.14 [18:27:00]line Наличными: 500.00 [18:27:00]line Безнал.: 0.00 [18:27:00]line Место: АЗС № 85 "Партнер Нефть" [18:27:00]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:27:00]line СНО: Общий режим [18:27:00]line Чек 335 20.10.2024 18:26 [18:27:00]line Смена: 193 ФФД: 1.0 [18:27:00]line ЗНМ: 0300000167 [18:27:00]line РНМ: 0000000000156251 [18:27:00]line Версия ККМ: v1.0 [18:27:00]line ФМ: 0000000000963346 [18:27:00]line ФД: 69490 [18:27:00]line ФПД: 227644275995712 [18:27:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182658&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69490&fm=227644275995712&tin=02508201610067®Number=0000000000156251&sum=50000 [18:27:00]OFD Sender: Processing packet 69490 [packets to send 18, broken 17] [18:27:00]ProducePacketName [18:27:00]name=ofd_packets/00069490 [18:27:00]OFD Sender: To server: pG, [18:27:00]CommunicateWithHost lk.salyk.kg:30040 [18:27:00]ConnectInit lk.salyk.kg [18:27:00]written 0, free lines is 4095 [18:27:00]Connected sock=11 [18:27:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 9C EA 07 01 7E 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 72 4B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 72 0F 01 00 35 04 06 00 CF 0A 90 34 B4 40 3B 92 B0 48 25 42 76 45 [18:27:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 78 54 47 00 89 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 72 0F 01 00 F4 03 04 00 18 F5 14 67 B6 04 01 00 00 17 24 41 DD 04 CD A4 29 [18:27:00]CommunicateWithHost err = 0 [18:27:00]CheckOFDResponse [18:27:00]1017 (14) - 77093643461234 [18:27:00]1041 (16) - 0000000000963346 [18:27:00]1040 (4) - 69490 [18:27:00]1012 (4) - 20.10.2024 12:18 [18:27:00]1206 (1) - 0 [18:27:00]OFD Sender: Remove packet 69490 [18:27:00]ProducePacketName [18:27:00]name=ofd_packets/00069490 [18:27:00]NVStorageDeleteData [18:27:00]Write to MH i2c: 01 00 00 87 03 8A [18:27:00]Write i2c OK [18:27:00]MH_I2C_Read... [18:27:00]Read from MH i2c: 01 [18:27:00]MH_I2C_Read... [18:27:00]Read from MH i2c: 01 07 00 [18:27:00]MH_I2C_Read... [18:27:00]Read from MH i2c: 01 07 00 87 03 00 00 00 00 00 01 0D 9F [18:27:00]RasterBufferAndPrint [18:27:00]line [18:27:00]line [18:27:00]line [18:27:00]line [18:27:00]line [18:27:00]written 0, free lines is 3335 [18:27:00]MH_Cut [18:27:00]Write to MH i2c: D1 01 00 8E 03 01 63 [18:27:00]Write i2c OK [18:27:00]MH_I2C_Read... [18:27:00]Read from MH i2c: D1 [18:27:00]MH_I2C_Read... [18:27:00]Read from MH i2c: D1 01 00 [18:27:00]MH_I2C_Read... [18:27:00]Read from MH i2c: D1 01 00 8E 03 00 62 [18:27:00]Write to MH i2c: 01 00 00 8F 03 92 [18:27:00]Write i2c OK [18:27:00]MH_I2C_Read... [18:27:01]OFD Sender: No OFD packet to send [18:27:01]*** Cut start [18:27:01]*** Partial cut [18:27:01]*** CUTSNS_PIN = 1 [18:27:01]*** CUTSNS_PIN = 0 [18:27:01]*** Brake cut motor [18:27:02]Read from MH i2c: 01 [18:27:02]MH_I2C_Read... [18:27:02]*** Stop cut motor [18:27:02]*** Cut end [18:27:02]Read from MH i2c: 01 07 00 [18:27:02]MH_I2C_Read... [18:27:02]Read from MH i2c: 01 07 00 8F 03 00 00 00 00 00 FF 0F A7 [18:27:02]process_action close_receipt done [18:27:02]requested_data is exist [18:27:02]produce_requested_data [18:27:02]requested_item fm.sn is exist - process it [18:27:02]wFMCommunicate request_size=4 [18:27:02]MH_SAM_APDU [18:27:02]CAPDU: 80 11 00 00 [18:27:02]Write to MH i2c: E2 08 00 90 03 80 11 00 00 00 00 00 00 0D [18:27:02]Write i2c OK [18:27:02]MH_I2C_Read... [18:27:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:02]Read from MH i2c: E2 [18:27:02]MH_I2C_Read... [18:27:02]Read from MH i2c: E2 17 00 [18:27:02]MH_I2C_Read... [18:27:02]Read from MH i2c: E2 17 00 90 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5F [18:27:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:27:02]wFMCommunicate OK [18:27:02]requested_item fd.num is exist - process it [18:27:02]SAM_PROTO_GetFieldsCounters [18:27:02]wFMCommunicate request_size=4 [18:27:02]MH_SAM_APDU [18:27:02]CAPDU: 80 13 00 00 [18:27:02]Write to MH i2c: E2 08 00 91 03 80 13 00 00 00 00 00 00 10 [18:27:02]Write i2c OK [18:27:02]MH_I2C_Read... [18:27:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:02]Read from MH i2c: E2 [18:27:02]MH_I2C_Read... [18:27:02]Read from MH i2c: E2 62 00 [18:27:02]MH_I2C_Read... [18:27:02]Read from MH i2c: E2 62 00 91 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 72 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 5E [18:27:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 72 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:27:02]wFMCommunicate OK [18:27:02]SAM_PROTO_GetFieldsCounters done [18:27:02]requested_item shift.num is exist - process it [18:27:02]requested_item shift.opened is exist - process it [18:27:02]req_shift_opened [18:27:02]FM_GetShiftState [18:27:02]SAM_PROTO_GetShiftState [18:27:02]wFMCommunicate request_size=4 [18:27:02]MH_SAM_APDU [18:27:02]CAPDU: 80 13 01 00 [18:27:02]Write to MH i2c: E2 08 00 92 03 80 13 01 00 00 00 00 00 12 [18:27:02]Write i2c OK [18:27:02]MH_I2C_Read... [18:27:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:02]Read from MH i2c: E2 [18:27:02]MH_I2C_Read... [18:27:02]Read from MH i2c: E2 0E 00 [18:27:02]MH_I2C_Read... [18:27:02]Read from MH i2c: E2 0E 00 92 03 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 18 [18:27:02]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:27:02]wFMCommunicate OK [18:27:02]SAM_PROTO_GetShiftState done [18:27:02]FM_GetShiftState done [18:27:02]req_shift_opened done [18:27:02]requested_item shift.open_date is exist - process it [18:27:02]req_shift_open_date [18:27:02]req_shift_open_date done [18:27:02]produce_requested_data done [18:27:02]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69490,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [18:27:02]process_action_free close_receipt [18:27:02]json_value_free [18:27:02]json_value_free done [18:27:02]process_json_proto returns [18:27:02]Send response to host [18:27:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69490,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [18:27:02]free response buf [18:27:02]execute_script done [18:27:02]execute_script returns [18:27:02]free content buf [18:27:02]Sock 9.Close socket [18:27:02]Sock 9.Thread stoped [18:27:02]accept exits with 7 [18:27:02]New connection [18:27:02]New thread 3066797412 created [18:27:02]Thread 3066654052 joined [18:27:02]Waiting for new connection... [18:27:02] Sock 7.Parse request [18:27:02]Sock 7.Check first char [18:27:02]Sock 7.First char is OK [18:27:02]request: POST /json_proto HTTP/1.0 [18:27:02]Method: POST [18:27:02]URL: /json_proto [18:27:02]Method is POST - this is cgi request [18:27:02]url: /json_proto [18:27:02]query_string will be loaded in cgi processing [18:27:02]execute_cgi json_proto POST (null) [18:27:02]execute_cgi path=json_proto method=POST [18:27:02]POST find Content-Length [18:27:02]Host: 172.17.50.3:8080 [18:27:02]Content-Length: 678 [18:27:02]Content-Type: application/json [18:27:02] [18:27:02]POST finish read [18:27:02]Found Content-Length = 678 [18:27:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:02]execute_script... [18:27: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)2885226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:02]POST & json_proto [18:27:02]process_json_proto [18:27:02]json parsed OK: [18:27:02]protocol is kg_v1.0 [18:27:02]action value=close_receipt [18:27:02]process_action close_receipt [18:27:02]cmd_close_receipt [18:27:02]MH_GetDate [18:27:02]Write to MH i2c: F0 00 00 93 03 85 [18:27:02]Write i2c OK [18:27:02]MH_I2C_Read... [18:27:02]Read from MH i2c: F0 [18:27:02]MH_I2C_Read... [18:27:02]Read from MH i2c: F0 09 00 [18:27:02]MH_I2C_Read... [18:27:02]Read from MH i2c: F0 09 00 93 03 00 77 4B 15 67 6B 98 1E 66 53 [18:27:02]GetLastDocTimeStamp 1729448818 [18:27:02]current date 1729448823 [18:27:02]FM_GetShiftState [18:27:02]SAM_PROTO_GetShiftState [18:27:02]wFMCommunicate request_size=4 [18:27:02]MH_SAM_APDU [18:27:02]CAPDU: 80 13 01 00 [18:27:02]Write to MH i2c: E2 08 00 94 03 80 13 01 00 00 00 00 00 14 [18:27:02]Write i2c OK [18:27:02]MH_I2C_Read... [18:27:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:02]Read from MH i2c: E2 [18:27:02]MH_I2C_Read... [18:27:02]Read from MH i2c: E2 0E 00 [18:27:02]MH_I2C_Read... [18:27:02]Read from MH i2c: E2 0E 00 94 03 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 1A [18:27:02]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:27:02]wFMCommunicate OK [18:27:02]SAM_PROTO_GetShiftState done [18:27:02]FM_GetShiftState done [18:27:02]opened in 1729383220 [18:27:02]opened+sec_in_day 1729469620 [18:27:02]quantity*price = 40006 [18:27:02]sum+1 = 40007 [18:27:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 336 20.10.2024 18:27 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69491 ФПД: 202690705416669 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182703&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69491&fm=202690705416669&tin=02508201610067®Number=0000000000156251&sum=40000 [18:27:04]StoreToDocumentArchive [18:27:04]shift 193 fd 69491 [18:27:04]save to /storage/0193/doc_00069491 [18:27:04]save last doc name /storage/0193/doc_00069491 to /storage/kkm_last_doc_name [18:27:04]save OK [18:27:04]Clear old archive folders... [18:27:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:27:04]tlvbuf is 00F39AA0 [18:27:04]SAM_PROTO_ClearQueue [18:27:04]wFMCommunicate request_size=4 [18:27:04]MH_SAM_APDU [18:27:04]CAPDU: 80 09 00 00 [18:27:04]Write to MH i2c: E2 08 00 A1 03 80 09 00 00 00 00 00 00 16 [18:27:04]Write i2c OK [18:27:04]MH_I2C_Read... [18:27:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:04]Read from MH i2c: E2 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: E2 03 00 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: E2 03 00 A1 03 00 90 00 18 [18:27:04]RAPDU: 90 00 [18:27:04]wFMCommunicate OK [18:27:04]SAM_PROTO_ClearQueue done [18:27:04]KKMCreateOFDPacket [18:27:04]OFDProtocolAddRootSTLVToBuf [18:27:04]FM_MakeSignedData [18:27:04]FM_MakeSignedData [18:27:04]SAM_PROTO_SignData [18:27:04]wFMCommunicate request_size=4 [18:27:04]MH_SAM_APDU [18:27:04]CAPDU: 80 0D 01 02 [18:27:04]Write to MH i2c: E2 08 00 A2 03 80 0D 01 02 00 00 00 00 1E [18:27:04]Write i2c OK [18:27:04]MH_I2C_Read... [18:27:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:04]Read from MH i2c: E2 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: E2 03 00 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: E2 03 00 A2 03 00 90 00 19 [18:27:04]RAPDU: 90 00 [18:27:04]wFMCommunicate OK [18:27:04]wFMCommunicate request_size=255 [18:27:04]MH_SAM_APDU [18:27:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 77 4B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 73 0F 01 00 35 04 06 00 B8 [18:27:04]Write to MH i2c: E2 02 01 A3 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 77 4B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 73 0F 01 00 35 04 06 00 B8 00 00 01 [18:27:04]Write i2c OK [18:27:04]MH_I2C_Read... [18:27:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:04]Read from MH i2c: E2 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: E2 03 00 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: E2 03 00 A3 03 00 90 00 1A [18:27:04]RAPDU: 90 00 [18:27:04]wFMCommunicate OK [18:27:04]wFMCommunicate request_size=10 [18:27:04]MH_SAM_APDU [18:27:04]CAPDU: 80 0D 02 02 05 58 9B 7E E1 DD [18:27:04]Write to MH i2c: E2 0D 00 A4 03 80 0D 02 02 05 00 58 9B 7E E1 DD 00 00 5A [18:27:04]Write i2c OK [18:27:04]MH_I2C_Read... [18:27:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:04]Read from MH i2c: E2 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: E2 03 00 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: E2 03 00 A4 03 00 90 00 1B [18:27:04]RAPDU: 90 00 [18:27:04]wFMCommunicate OK [18:27:04]wFMCommunicate request_size=4 [18:27:04]MH_SAM_APDU [18:27:04]CAPDU: 80 0D 03 02 [18:27:04]Write to MH i2c: E2 08 00 A5 03 80 0D 03 02 00 00 00 00 23 [18:27:04]Write i2c OK [18:27:04]MH_I2C_Read... [18:27:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:04]Read from MH i2c: E2 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: E2 0B 00 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: E2 0B 00 A5 03 00 A4 92 0B 35 3B F4 E3 D6 90 00 82 [18:27:04]RAPDU: A4 92 0B 35 3B F4 E3 D6 90 00 [18:27:04]wFMCommunicate OK [18:27:04]SAM_PROTO_SignData done [18:27:04]FM_MakeSignedData done [18:27:04]CreateOFDProtocolMessage [18:27:04]wFMCommunicate request_size=4 [18:27:04]MH_SAM_APDU [18:27:04]CAPDU: 80 11 00 00 [18:27:04]Write to MH i2c: E2 08 00 A6 03 80 11 00 00 00 00 00 00 23 [18:27:04]Write i2c OK [18:27:04]MH_I2C_Read... [18:27:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:04]Read from MH i2c: E2 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: E2 17 00 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: E2 17 00 A6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 75 [18:27:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:27:04]wFMCommunicate OK [18:27:04]CreateOFDProtocolMessage done [18:27:04]OFDSenderStorePacket 69491 [18:27:04]StoreOFDPacket docnum=69491 [18:27:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 04 0A 07 01 1A D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 77 4B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 73 0F 01 00 35 04 06 00 B8 58 9B 7E E1 DD A4 92 0B 35 3B F4 E3 D6 [18:27:04]CheckFolder [18:27:04]dirname=/storage/ofd_packets [18:27:04]CheckFolder done [18:27:04]ProducePacketName [18:27:04]name=ofd_packets/00069491 [18:27:04]NVStorageSaveData ofd_packets/00069491 [18:27:04]File name is /storage/ofd_packets/00069491 [18:27:04]Write 301 bytes [18:27:04]NVStorageSaveData done [18:27:04]OFDSenderStorePacket done [18:27:04]KKMCreateOFDPacket done [18:27:04]NVStorageSaveData kkm_last_timestamp [18:27:04]File name is /storage/kkm_last_timestamp [18:27:04]Write 4 bytes [18:27:04]NVStorageSaveData done [18:27:04]ExternCall_PrintAddStr [18:27:04]wPrintStart [18:27:04]Write to MH i2c: 01 00 00 A7 03 AA [18:27:04]Write i2c OK [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: 01 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: 01 07 00 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: 01 07 00 A7 03 00 00 00 00 00 FF 0F BF [18:27:04]RasterBufferAndPrint [18:27:04]line Счет N : (1)2885226 [18:27:04]line ИНН: 02508201610067 [18:27:04]line Контрольно-Кассовый Чек [18:27:04]line ПРОДАЖА [18:27:04]line ТРК (МРК, ГНК) : 42 [18:27:04]line Товар: 2710124130 [18:27:04]line Аи-92-К-5 [18:27:04]line 5.980 * 66.90 [18:27:04]line = 400.06 [18:27:04]line НДС 12% НСП 1% [18:27:04]line > о реализуемом товаре [18:27:04]line ОКРУГЛЕНИЕ: -0.06 [18:27:04]line ИТОГО: 400.00 [18:27:04]line Внесено: 400.00 [18:27:04]line СДАЧА: 0.00 [18:27:04]line НСП 1% : 3.54 [18:27:04]line НДС 12% : 42.48 [18:27:04]line Наличными: 400.00 [18:27:04]line Безнал.: 0.00 [18:27:04]line Место: АЗС № 85 "Партнер Нефть" [18:27:04]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:27:04]line СНО: Общий режим [18:27:04]line Чек 336 20.10.2024 18:27 [18:27:04]line Смена: 193 ФФД: 1.0 [18:27:04]line ЗНМ: 0300000167 [18:27:04]line РНМ: 0000000000156251 [18:27:04]line Версия ККМ: v1.0 [18:27:04]line ФМ: 0000000000963346 [18:27:04]line ФД: 69491 [18:27:04]line ФПД: 202690705416669 [18:27:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182703&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69491&fm=202690705416669&tin=02508201610067®Number=0000000000156251&sum=40000 [18:27:04]OFD Sender: Processing packet 69491 [packets to send 18, broken 17] [18:27:04]ProducePacketName [18:27:04]name=ofd_packets/00069491 [18:27:04]OFD Sender: To server: pG, [18:27:04]CommunicateWithHost lk.salyk.kg:30040 [18:27:04]ConnectInit lk.salyk.kg [18:27:04]written 0, free lines is 4095 [18:27:05]Connected sock=10 [18:27:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 04 0A 07 01 1A D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 77 4B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 73 0F 01 00 35 04 06 00 B8 58 9B 7E E1 DD A4 92 0B 35 3B F4 E3 D6 [18:27:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 B0 56 47 00 68 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 73 0F 01 00 F4 03 04 00 1D F5 14 67 B6 04 01 00 00 88 3E A2 B7 71 11 9B 31 [18:27:05]CommunicateWithHost err = 0 [18:27:05]CheckOFDResponse [18:27:05]1017 (14) - 77093643461234 [18:27:05]1041 (16) - 0000000000963346 [18:27:05]1040 (4) - 69491 [18:27:05]1012 (4) - 20.10.2024 12:18 [18:27:05]1206 (1) - 0 [18:27:05]OFD Sender: Remove packet 69491 [18:27:05]ProducePacketName [18:27:05]name=ofd_packets/00069491 [18:27:05]NVStorageDeleteData [18:27:05]Write to MH i2c: 01 00 00 D2 03 D5 [18:27:05]Write i2c OK [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: 01 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: 01 07 00 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: 01 07 00 D2 03 00 00 00 00 00 0D 0D F6 [18:27:05]RasterBufferAndPrint [18:27:05]line [18:27:05]line [18:27:05]line [18:27:05]line [18:27:05]line [18:27:05]written 0, free lines is 3353 [18:27:05]MH_Cut [18:27:05]Write to MH i2c: D1 01 00 D9 03 01 AE [18:27:05]Write i2c OK [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: D1 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: D1 01 00 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: D1 01 00 D9 03 00 AD [18:27:05]Write to MH i2c: 01 00 00 DA 03 DD [18:27:05]Write i2c OK [18:27:05]MH_I2C_Read... [18:27:05]OFD Sender: No OFD packet to send [18:27:06]*** Cut start [18:27:06]*** Partial cut [18:27:06]*** CUTSNS_PIN = 1 [18:27:06]*** CUTSNS_PIN = 0 [18:27:06]*** Brake cut motor [18:27:06]Read from MH i2c: 01 [18:27:06]MH_I2C_Read... [18:27:06]*** Stop cut motor [18:27:06]*** Cut end [18:27:06]Read from MH i2c: 01 07 00 [18:27:06]MH_I2C_Read... [18:27:06]Read from MH i2c: 01 07 00 DA 03 00 00 00 00 00 FF 0F F2 [18:27:06]process_action close_receipt done [18:27:06]requested_data is exist [18:27:06]produce_requested_data [18:27:06]requested_item fm.sn is exist - process it [18:27:06]wFMCommunicate request_size=4 [18:27:06]MH_SAM_APDU [18:27:06]CAPDU: 80 11 00 00 [18:27:06]Write to MH i2c: E2 08 00 DB 03 80 11 00 00 00 00 00 00 58 [18:27:06]Write i2c OK [18:27:06]MH_I2C_Read... [18:27:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:06]Read from MH i2c: E2 [18:27:06]MH_I2C_Read... [18:27:06]Read from MH i2c: E2 17 00 [18:27:06]MH_I2C_Read... [18:27:06]Read from MH i2c: E2 17 00 DB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AA [18:27:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:27:06]wFMCommunicate OK [18:27:06]requested_item fd.num is exist - process it [18:27:06]SAM_PROTO_GetFieldsCounters [18:27:06]wFMCommunicate request_size=4 [18:27:06]MH_SAM_APDU [18:27:06]CAPDU: 80 13 00 00 [18:27:06]Write to MH i2c: E2 08 00 DC 03 80 13 00 00 00 00 00 00 5B [18:27:06]Write i2c OK [18:27:06]MH_I2C_Read... [18:27:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:06]Read from MH i2c: E2 [18:27:06]MH_I2C_Read... [18:27:06]Read from MH i2c: E2 62 00 [18:27:06]MH_I2C_Read... [18:27:06]Read from MH i2c: E2 62 00 DC 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 73 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 AD [18:27:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 73 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:27:06]wFMCommunicate OK [18:27:06]SAM_PROTO_GetFieldsCounters done [18:27:06]requested_item shift.num is exist - process it [18:27:06]requested_item shift.opened is exist - process it [18:27:06]req_shift_opened [18:27:06]FM_GetShiftState [18:27:06]SAM_PROTO_GetShiftState [18:27:06]wFMCommunicate request_size=4 [18:27:06]MH_SAM_APDU [18:27:06]CAPDU: 80 13 01 00 [18:27:06]Write to MH i2c: E2 08 00 DD 03 80 13 01 00 00 00 00 00 5D [18:27:06]Write i2c OK [18:27:06]MH_I2C_Read... [18:27:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:07]Read from MH i2c: E2 [18:27:07]MH_I2C_Read... [18:27:07]Read from MH i2c: E2 0E 00 [18:27:07]MH_I2C_Read... [18:27:07]Read from MH i2c: E2 0E 00 DD 03 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 63 [18:27:07]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:27:07]wFMCommunicate OK [18:27:07]SAM_PROTO_GetShiftState done [18:27:07]FM_GetShiftState done [18:27:07]req_shift_opened done [18:27:07]requested_item shift.open_date is exist - process it [18:27:07]req_shift_open_date [18:27:07]req_shift_open_date done [18:27:07]produce_requested_data done [18:27:07]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69491,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [18:27:07]process_action_free close_receipt [18:27:07]json_value_free [18:27:07]json_value_free done [18:27:07]process_json_proto returns [18:27:07]Send response to host [18:27:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69491,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [18:27:07]free response buf [18:27:07]execute_script done [18:27:07]execute_script returns [18:27:07]free content buf [18:27:07]Sock 7.Close socket [18:27:07]Sock 7.Thread stoped [18:27:10]OFD Sender: No OFD packet to send [18:27:15]OFD Sender: No OFD packet to send [18:27:20]OFD Sender: No OFD packet to send [18:27:25]OFD Sender: No OFD packet to send [18:27:30]OFD Sender: No OFD packet to send [18:27:35]OFD Sender: No OFD packet to send [18:27:40]OFD Sender: No OFD packet to send [18:27:45]OFD Sender: No OFD packet to send [18:27:50]OFD Sender: No OFD packet to send [18:27:55]OFD Sender: No OFD packet to send [18:28:00]OFD Sender: No OFD packet to send [18:28:05]OFD Sender: No OFD packet to send [18:28:10]OFD Sender: No OFD packet to send [18:28:15]OFD Sender: No OFD packet to send [18:28:20]OFD Sender: No OFD packet to send [18:28:25]OFD Sender: No OFD packet to send [18:28:30]OFD Sender: No OFD packet to send [18:28:35]OFD Sender: No OFD packet to send [18:28:40]OFD Sender: No OFD packet to send [18:28:45]OFD Sender: No OFD packet to send [18:28:50]OFD Sender: No OFD packet to send [18:28:55]OFD Sender: No OFD packet to send [18:29:00]OFD Sender: No OFD packet to send [18:29:05]OFD Sender: No OFD packet to send [18:29:10]OFD Sender: No OFD packet to send [18:29:15]OFD Sender: No OFD packet to send [18:29:20]OFD Sender: No OFD packet to send [18:29:25]OFD Sender: No OFD packet to send [18:29:30]OFD Sender: No OFD packet to send [18:29:35]OFD Sender: No OFD packet to send [18:29:40]OFD Sender: No OFD packet to send [18:29:45]OFD Sender: No OFD packet to send [18:29:50]OFD Sender: No OFD packet to send [18:29:55]OFD Sender: No OFD packet to send [18:29:57]accept exits with 9 [18:29:57]New connection [18:29:57]New thread 3066654052 created [18:29:57]Thread 3066797412 joined [18:29:57]Waiting for new connection... [18:29:57] Sock 9.Parse request [18:29:57]Sock 9.Check first char [18:29:57]Sock 9.First char is OK [18:29:57]request: POST /json_proto HTTP/1.0 [18:29:57]Method: POST [18:29:57]URL: /json_proto [18:29:57]Method is POST - this is cgi request [18:29:57]url: /json_proto [18:29:57]query_string will be loaded in cgi processing [18:29:57]execute_cgi json_proto POST (null) [18:29:57]execute_cgi path=json_proto method=POST [18:29:57]POST find Content-Length [18:29:57]Host: 172.17.50.3:8080 [18:29:57]Content-Length: 685 [18:29:57]Content-Type: application/json [18:29:57] [18:29:57]POST finish read [18:29:57]Found Content-Length = 685 [18:29:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 10.370, "sum" : 800.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:57]execute_script... [18:29: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)2885228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 10.370, "sum" : 800.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:57]POST & json_proto [18:29:57]process_json_proto [18:29:57]json parsed OK: [18:29:57]protocol is kg_v1.0 [18:29:57]action value=close_receipt [18:29:57]process_action close_receipt [18:29:57]cmd_close_receipt [18:29:57]MH_GetDate [18:29:57]Write to MH i2c: F0 00 00 DE 03 D0 [18:29:57]Write i2c OK [18:29:57]MH_I2C_Read... [18:29:57]Read from MH i2c: F0 [18:29:57]MH_I2C_Read... [18:29:57]Read from MH i2c: F0 09 00 [18:29:57]MH_I2C_Read... [18:29:57]Read from MH i2c: F0 09 00 DE 03 00 25 4C 15 67 6B 98 1E 66 4D [18:29:57]GetLastDocTimeStamp 1729448823 [18:29:57]current date 1729448997 [18:29:57]FM_GetShiftState [18:29:57]SAM_PROTO_GetShiftState [18:29:57]wFMCommunicate request_size=4 [18:29:57]MH_SAM_APDU [18:29:57]CAPDU: 80 13 01 00 [18:29:57]Write to MH i2c: E2 08 00 DF 03 80 13 01 00 00 00 00 00 5F [18:29:57]Write i2c OK [18:29:57]MH_I2C_Read... [18:29:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:57]Read from MH i2c: E2 [18:29:57]MH_I2C_Read... [18:29:57]Read from MH i2c: E2 0E 00 [18:29:57]MH_I2C_Read... [18:29:57]Read from MH i2c: E2 0E 00 DF 03 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 65 [18:29:57]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:29:57]wFMCommunicate OK [18:29:57]SAM_PROTO_GetShiftState done [18:29:57]FM_GetShiftState done [18:29:57]opened in 1729383220 [18:29:57]opened+sec_in_day 1729469620 [18:29:57]quantity*price = 80056 [18:29:57]sum+1 = 80057 [18:29:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.01 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 337 20.10.2024 18:29 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69492 ФПД: 46645315800356 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182957&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69492&fm=46645315800356&tin=02508201610067®Number=0000000000156251&sum=80000 [18:29:58]StoreToDocumentArchive [18:29:58]shift 193 fd 69492 [18:29:58]save to /storage/0193/doc_00069492 [18:29:58]save last doc name /storage/0193/doc_00069492 to /storage/kkm_last_doc_name [18:29:58]save OK [18:29:58]Clear old archive folders... [18:29:58]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:29:58]tlvbuf is 00F1B730 [18:29:58]SAM_PROTO_ClearQueue [18:29:58]wFMCommunicate request_size=4 [18:29:58]MH_SAM_APDU [18:29:58]CAPDU: 80 09 00 00 [18:29:58]Write to MH i2c: E2 08 00 EC 03 80 09 00 00 00 00 00 00 61 [18:29:58]Write i2c OK [18:29:58]MH_I2C_Read... [18:29:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:29:58]Read from MH i2c: E2 [18:29:58]MH_I2C_Read... [18:29:58]Read from MH i2c: E2 03 00 [18:29:58]MH_I2C_Read... [18:29:58]Read from MH i2c: E2 03 00 EC 03 00 90 00 63 [18:29:58]RAPDU: 90 00 [18:29:58]wFMCommunicate OK [18:29:58]SAM_PROTO_ClearQueue done [18:29:58]KKMCreateOFDPacket [18:29:58]OFDProtocolAddRootSTLVToBuf [18:29:58]FM_MakeSignedData [18:29:58]FM_MakeSignedData [18:29:58]SAM_PROTO_SignData [18:29:58]wFMCommunicate request_size=4 [18:29:58]MH_SAM_APDU [18:29:58]CAPDU: 80 0D 01 02 [18:29:58]Write to MH i2c: E2 08 00 ED 03 80 0D 01 02 00 00 00 00 69 [18:29:58]Write i2c OK [18:29:58]MH_I2C_Read... [18:29:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:29:58]Read from MH i2c: E2 [18:29:58]MH_I2C_Read... [18:29:58]Read from MH i2c: E2 03 00 [18:29:58]MH_I2C_Read... [18:29:58]Read from MH i2c: E2 03 00 ED 03 00 90 00 64 [18:29:58]RAPDU: 90 00 [18:29:58]wFMCommunicate OK [18:29:58]wFMCommunicate request_size=255 [18:29:58]MH_SAM_APDU [18:29:58]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 25 4C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 74 0F 01 [18:29:58]Write to MH i2c: E2 02 01 EE 03 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 25 4C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 74 0F 01 00 00 CC [18:29:58]Write i2c OK [18:29:58]MH_I2C_Read... [18:29:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:58]Read from MH i2c: E2 [18:29:58]MH_I2C_Read... [18:29:58]Read from MH i2c: E2 03 00 [18:29:58]MH_I2C_Read... [18:29:58]Read from MH i2c: E2 03 00 EE 03 00 90 00 65 [18:29:58]RAPDU: 90 00 [18:29:58]wFMCommunicate OK [18:29:58]wFMCommunicate request_size=16 [18:29:58]MH_SAM_APDU [18:29:58]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 2A 6C 75 7A 8D 24 [18:29:58]Write to MH i2c: E2 13 00 EF 03 80 0D 02 02 0B 00 00 35 04 06 00 2A 6C 75 7A 8D 24 00 00 F7 [18:29:58]Write i2c OK [18:29:58]MH_I2C_Read... [18:29:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:58]Read from MH i2c: E2 [18:29:58]MH_I2C_Read... [18:29:58]Read from MH i2c: E2 03 00 [18:29:58]MH_I2C_Read... [18:29:58]Read from MH i2c: E2 03 00 EF 03 00 90 00 66 [18:29:58]RAPDU: 90 00 [18:29:58]wFMCommunicate OK [18:29:58]wFMCommunicate request_size=4 [18:29:58]MH_SAM_APDU [18:29:58]CAPDU: 80 0D 03 02 [18:29:58]Write to MH i2c: E2 08 00 F0 03 80 0D 03 02 00 00 00 00 6E [18:29:58]Write i2c OK [18:29:58]MH_I2C_Read... [18:29:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:29:58]Read from MH i2c: E2 [18:29:58]MH_I2C_Read... [18:29:58]Read from MH i2c: E2 0B 00 [18:29:58]MH_I2C_Read... [18:29:58]Read from MH i2c: E2 0B 00 F0 03 00 2C E0 51 E5 B8 74 0E 72 90 00 5D [18:29:58]RAPDU: 2C E0 51 E5 B8 74 0E 72 90 00 [18:29:58]wFMCommunicate OK [18:29:58]SAM_PROTO_SignData done [18:29:58]FM_MakeSignedData done [18:29:58]CreateOFDProtocolMessage [18:29:58]wFMCommunicate request_size=4 [18:29:58]MH_SAM_APDU [18:29:58]CAPDU: 80 11 00 00 [18:29:58]Write to MH i2c: E2 08 00 F1 03 80 11 00 00 00 00 00 00 6E [18:29:58]Write i2c OK [18:29:58]MH_I2C_Read... [18:29:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:58]Read from MH i2c: E2 [18:29:58]MH_I2C_Read... [18:29:58]Read from MH i2c: E2 17 00 [18:29:58]MH_I2C_Read... [18:29:58]Read from MH i2c: E2 17 00 F1 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C0 [18:29:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:29:58]wFMCommunicate OK [18:29:58]CreateOFDProtocolMessage done [18:29:58]OFDSenderStorePacket 69492 [18:29:58]StoreOFDPacket docnum=69492 [18:29:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 88 D2 0D 01 43 88 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 25 4C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 74 0F 01 00 35 04 06 00 2A 6C 75 7A 8D 24 2C E0 51 E5 B8 74 0E 72 [18:29:58]CheckFolder [18:29:58]dirname=/storage/ofd_packets [18:29:58]CheckFolder done [18:29:58]ProducePacketName [18:29:58]name=ofd_packets/00069492 [18:29:58]NVStorageSaveData ofd_packets/00069492 [18:29:58]File name is /storage/ofd_packets/00069492 [18:29:58]Write 307 bytes [18:29:58]NVStorageSaveData done [18:29:58]OFDSenderStorePacket done [18:29:58]KKMCreateOFDPacket done [18:29:58]NVStorageSaveData kkm_last_timestamp [18:29:58]File name is /storage/kkm_last_timestamp [18:29:58]Write 4 bytes [18:29:58]NVStorageSaveData done [18:29:58]OFD Sender: Processing packet 69492 [packets to send 18, broken 17] [18:29:58]ProducePacketName [18:29:58]name=ofd_packets/00069492 [18:29:58]OFD Sender: To server: pG, [18:29:58]CommunicateWithHost lk.salyk.kg:30040 [18:29:58]ConnectInit lk.salyk.kg [18:29:58]ExternCall_PrintAddStr [18:29:58]wPrintStart [18:29:58]Write to MH i2c: 01 00 00 F2 03 F5 [18:29:58]Write i2c OK [18:29:58]MH_I2C_Read... [18:29:58]Read from MH i2c: 01 [18:29:58]MH_I2C_Read... [18:29:58]Read from MH i2c: 01 07 00 [18:29:58]MH_I2C_Read... [18:29:58]Read from MH i2c: 01 07 00 F2 03 00 00 00 00 00 FF 0F 0A [18:29:58]RasterBufferAndPrint [18:29:58]line Счет N : (1)2885228 [18:29:58]line ИНН: 02508201610067 [18:29:58]line Контрольно-Кассовый Чек [18:29:58]line ПРОДАЖА [18:29:58]line ТРК (МРК, ГНК) : 11 [18:29:58]line Товар: 2710194240 [18:29:58]line D-ENERGY Дт-К-2 [18:29:58]line 10.370 * 77.20 [18:29:58]line = 800.56 [18:29:58]line НДС 12% НСП 1% [18:29:58]line > о реализуемом товаре [18:29:58]line ОКРУГЛЕНИЕ: -0.56 [18:29:58]line ИТОГО: 800.00 [18:29:58]line Внесено: 800.00 [18:29:58]line СДАЧА: 0.00 [18:29:58]line НСП 1% : 7.08 [18:29:58]line НДС 12% : 85.01 [18:29:58]line Наличными: 800.00 [18:29:58]line Безнал.: 0.00 [18:29:58]line Место: АЗС № 85 "Партнер Нефть" [18:29:58]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:29:58]line СНО: Общий режим [18:29:58]line Чек 337 20.10.2024 18:29 [18:29:59]line Смена: 193 ФФД: 1.0 [18:29:59]line ЗНМ: 0300000167 [18:29:59]line РНМ: 0000000000156251 [18:29:59]line Версия ККМ: v1.0 [18:29:59]line ФМ: 0000000000963346 [18:29:59]line ФД: 69492 [18:29:59]line ФПД: 46645315800356 [18:29:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182957&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69492&fm=46645315800356&tin=02508201610067®Number=0000000000156251&sum=80000 [18:29:59]Connected sock=11 [18:29:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 88 D2 0D 01 43 88 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 25 4C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 74 0F 01 00 35 04 06 00 2A 6C 75 7A 8D 24 2C E0 51 E5 B8 74 0E 72 [18:29:59]written 0, free lines is 4095 [18:29:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 A3 4F 47 00 5E BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 74 0F 01 00 F4 03 04 00 CB F5 14 67 B6 04 01 00 00 7A 6C 45 33 47 B0 EE A2 [18:29:59]CommunicateWithHost err = 0 [18:29:59]CheckOFDResponse [18:29:59]1017 (14) - 77093643461234 [18:29:59]1041 (16) - 0000000000963346 [18:29:59]1040 (4) - 69492 [18:29:59]1012 (4) - 20.10.2024 12:21 [18:29:59]1206 (1) - 0 [18:29:59]OFD Sender: Remove packet 69492 [18:29:59]ProducePacketName [18:29:59]name=ofd_packets/00069492 [18:29:59]NVStorageDeleteData [18:29:59]Write to MH i2c: 01 00 00 1D 04 21 [18:29:59]Write i2c OK [18:29:59]MH_I2C_Read... [18:29:59]Read from MH i2c: 01 [18:29:59]MH_I2C_Read... [18:29:59]Read from MH i2c: 01 07 00 [18:29:59]MH_I2C_Read... [18:29:59]Read from MH i2c: 01 07 00 1D 04 00 00 00 00 00 F6 0C 2A [18:29:59]RasterBufferAndPrint [18:29:59]line [18:29:59]line [18:29:59]line [18:29:59]line [18:29:59]line [18:29:59]written 0, free lines is 3324 [18:29:59]MH_Cut [18:29:59]Write to MH i2c: D1 01 00 24 04 01 FA [18:29:59]Write i2c OK [18:29:59]MH_I2C_Read... [18:29:59]Read from MH i2c: D1 [18:29:59]MH_I2C_Read... [18:29:59]Read from MH i2c: D1 01 00 [18:29:59]MH_I2C_Read... [18:29:59]Read from MH i2c: D1 01 00 24 04 00 F9 [18:29:59]Write to MH i2c: 01 00 00 25 04 29 [18:29:59]Write i2c OK [18:29:59]MH_I2C_Read... [18:29:59]OFD Sender: No OFD packet to send [18:30:00]*** Cut start [18:30:00]*** Partial cut [18:30:00]*** CUTSNS_PIN = 1 [18:30:00]*** CUTSNS_PIN = 0 [18:30:00]*** Brake cut motor [18:30:00]Read from MH i2c: 01 [18:30:00]MH_I2C_Read... [18:30:00]*** Stop cut motor [18:30:00]*** Cut end [18:30:00]Read from MH i2c: 01 07 00 [18:30:00]MH_I2C_Read... [18:30:00]Read from MH i2c: 01 07 00 25 04 00 00 00 00 00 FF 0F 3E [18:30:00]process_action close_receipt done [18:30:00]requested_data is exist [18:30:00]produce_requested_data [18:30:00]requested_item fm.sn is exist - process it [18:30:00]wFMCommunicate request_size=4 [18:30:00]MH_SAM_APDU [18:30:00]CAPDU: 80 11 00 00 [18:30:00]Write to MH i2c: E2 08 00 26 04 80 11 00 00 00 00 00 00 A4 [18:30:00]Write i2c OK [18:30:00]MH_I2C_Read... [18:30:00]Read from MH i2c: E2 [18:30:00]MH_I2C_Read... [18:30:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:00]Read from MH i2c: E2 17 00 [18:30:00]MH_I2C_Read... [18:30:00]Read from MH i2c: E2 17 00 26 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F6 [18:30:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:30:00]wFMCommunicate OK [18:30:00]requested_item fd.num is exist - process it [18:30:00]SAM_PROTO_GetFieldsCounters [18:30:00]wFMCommunicate request_size=4 [18:30:00]MH_SAM_APDU [18:30:00]CAPDU: 80 13 00 00 [18:30:00]Write to MH i2c: E2 08 00 27 04 80 13 00 00 00 00 00 00 A7 [18:30:00]Write i2c OK [18:30:00]MH_I2C_Read... [18:30:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:30:01]Read from MH i2c: E2 [18:30:01]MH_I2C_Read... [18:30:01]Read from MH i2c: E2 62 00 [18:30:01]MH_I2C_Read... [18:30:01]Read from MH i2c: E2 62 00 27 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 74 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 FD [18:30:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 74 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:30:01]wFMCommunicate OK [18:30:01]SAM_PROTO_GetFieldsCounters done [18:30:01]requested_item shift.num is exist - process it [18:30:01]requested_item shift.opened is exist - process it [18:30:01]req_shift_opened [18:30:01]FM_GetShiftState [18:30:01]SAM_PROTO_GetShiftState [18:30:01]wFMCommunicate request_size=4 [18:30:01]MH_SAM_APDU [18:30:01]CAPDU: 80 13 01 00 [18:30:01]Write to MH i2c: E2 08 00 28 04 80 13 01 00 00 00 00 00 A9 [18:30:01]Write i2c OK [18:30:01]MH_I2C_Read... [18:30:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:01]Read from MH i2c: E2 [18:30:01]MH_I2C_Read... [18:30:01]Read from MH i2c: E2 0E 00 [18:30:01]MH_I2C_Read... [18:30:01]Read from MH i2c: E2 0E 00 28 04 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 AF [18:30:01]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:30:01]wFMCommunicate OK [18:30:01]SAM_PROTO_GetShiftState done [18:30:01]FM_GetShiftState done [18:30:01]req_shift_opened done [18:30:01]requested_item shift.open_date is exist - process it [18:30:01]req_shift_open_date [18:30:01]req_shift_open_date done [18:30:01]produce_requested_data done [18:30:01]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69492,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [18:30:01]process_action_free close_receipt [18:30:01]json_value_free [18:30:01]json_value_free done [18:30:01]process_json_proto returns [18:30:01]Send response to host [18:30:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69492,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [18:30:01]free response buf [18:30:01]execute_script done [18:30:01]execute_script returns [18:30:01]free content buf [18:30:01]Sock 9.Close socket [18:30:01]Sock 9.Thread stoped [18:30:04]OFD Sender: No OFD packet to send [18:30:09]OFD Sender: No OFD packet to send [18:30:14]OFD Sender: No OFD packet to send [18:30:19]OFD Sender: No OFD packet to send [18:30:24]OFD Sender: No OFD packet to send [18:30:29]OFD Sender: No OFD packet to send [18:30:34]OFD Sender: No OFD packet to send [18:30:38]accept exits with 7 [18:30:38]New connection [18:30:38]New thread 3066797412 created [18:30:38]Thread 3066654052 joined [18:30:38]Waiting for new connection... [18:30:38] Sock 7.Parse request [18:30:38]Sock 7.Check first char [18:30:38]Sock 7.First char is OK [18:30:38]request: POST /json_proto HTTP/1.0 [18:30:38]Method: POST [18:30:38]URL: /json_proto [18:30:38]Method is POST - this is cgi request [18:30:38]url: /json_proto [18:30:38]query_string will be loaded in cgi processing [18:30:38]execute_cgi json_proto POST (null) [18:30:38]execute_cgi path=json_proto method=POST [18:30:38]POST find Content-Length [18:30:38]Host: 172.17.50.3:8080 [18:30:38]Content-Length: 680 [18:30:38]Content-Type: application/json [18:30:38] [18:30:38]POST finish read [18:30:38]Found Content-Length = 680 [18:30:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 22.310, "sum" : 1700.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:38]execute_script... [18:30: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)2885229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 22.310, "sum" : 1700.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:38]POST & json_proto [18:30:38]process_json_proto [18:30:38]json parsed OK: [18:30:38]protocol is kg_v1.0 [18:30:38]action value=close_receipt [18:30:38]process_action close_receipt [18:30:38]cmd_close_receipt [18:30:38]MH_GetDate [18:30:38]Write to MH i2c: F0 00 00 29 04 1C [18:30:38]Write i2c OK [18:30:38]MH_I2C_Read... [18:30:38]Read from MH i2c: F0 [18:30:38]MH_I2C_Read... [18:30:38]Read from MH i2c: F0 09 00 [18:30:38]MH_I2C_Read... [18:30:38]Read from MH i2c: F0 09 00 29 04 00 4E 4C 15 67 6B 98 1E 66 C2 [18:30:38]GetLastDocTimeStamp 1729448997 [18:30:38]current date 1729449038 [18:30:38]FM_GetShiftState [18:30:38]SAM_PROTO_GetShiftState [18:30:38]wFMCommunicate request_size=4 [18:30:38]MH_SAM_APDU [18:30:38]CAPDU: 80 13 01 00 [18:30:38]Write to MH i2c: E2 08 00 2A 04 80 13 01 00 00 00 00 00 AB [18:30:38]Write i2c OK [18:30:38]MH_I2C_Read... [18:30:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:38]Read from MH i2c: E2 [18:30:38]MH_I2C_Read... [18:30:38]Read from MH i2c: E2 0E 00 [18:30:38]MH_I2C_Read... [18:30:38]Read from MH i2c: E2 0E 00 2A 04 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 B1 [18:30:38]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:30:38]wFMCommunicate OK [18:30:38]SAM_PROTO_GetShiftState done [18:30:38]FM_GetShiftState done [18:30:38]opened in 1729383220 [18:30:38]opened+sec_in_day 1729469620 [18:30:38]quantity*price = 170002 [18:30:38]sum+1 = 170003 [18:30:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 1700.00 Внесено: 1700.00 СДАЧА: 0.00 НСП 1% : 15.04 НДС 12% : 180.53 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 338 20.10.2024 18:30 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69493 ФПД: 104226356634138 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183038&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69493&fm=104226356634138&tin=02508201610067®Number=0000000000156251&sum=170000 [18:30:39]StoreToDocumentArchive [18:30:39]shift 193 fd 69493 [18:30:39]save to /storage/0193/doc_00069493 [18:30:39]save last doc name /storage/0193/doc_00069493 to /storage/kkm_last_doc_name [18:30:39]save OK [18:30:39]Clear old archive folders... [18:30:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:30:39]tlvbuf is 00F28B10 [18:30:39]SAM_PROTO_ClearQueue [18:30:39]wFMCommunicate request_size=4 [18:30:39]MH_SAM_APDU [18:30:39]CAPDU: 80 09 00 00 [18:30:39]Write to MH i2c: E2 08 00 37 04 80 09 00 00 00 00 00 00 AD [18:30:39]Write i2c OK [18:30:39]MH_I2C_Read... [18:30:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:30:39]Read from MH i2c: E2 [18:30:39]MH_I2C_Read... [18:30:39]Read from MH i2c: E2 03 00 [18:30:39]MH_I2C_Read... [18:30:39]Read from MH i2c: E2 03 00 37 04 00 90 00 AF [18:30:39]RAPDU: 90 00 [18:30:39]wFMCommunicate OK [18:30:39]SAM_PROTO_ClearQueue done [18:30:39]KKMCreateOFDPacket [18:30:39]OFDProtocolAddRootSTLVToBuf [18:30:39]FM_MakeSignedData [18:30:39]FM_MakeSignedData [18:30:39]SAM_PROTO_SignData [18:30:39]wFMCommunicate request_size=4 [18:30:39]MH_SAM_APDU [18:30:39]CAPDU: 80 0D 01 02 [18:30:39]Write to MH i2c: E2 08 00 38 04 80 0D 01 02 00 00 00 00 B5 [18:30:39]Write i2c OK [18:30:39]MH_I2C_Read... [18:30:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:30:39]Read from MH i2c: E2 [18:30:39]MH_I2C_Read... [18:30:39]Read from MH i2c: E2 03 00 [18:30:39]MH_I2C_Read... [18:30:39]Read from MH i2c: E2 03 00 38 04 00 90 00 B0 [18:30:39]RAPDU: 90 00 [18:30:39]wFMCommunicate OK [18:30:39]wFMCommunicate request_size=255 [18:30:39]MH_SAM_APDU [18:30:39]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 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 4E 4C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 75 0F 01 00 35 04 06 00 5E CB 16 F6 [18:30:39]Write to MH i2c: E2 02 01 39 04 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 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 4E 4C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 75 0F 01 00 35 04 06 00 5E CB 16 F6 00 00 FE [18:30:39]Write i2c OK [18:30:39]MH_I2C_Read... [18:30:39]OFD Sender: No OFD packet to send [18:30:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:40]Read from MH i2c: E2 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: E2 03 00 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: E2 03 00 39 04 00 90 00 B1 [18:30:40]RAPDU: 90 00 [18:30:40]wFMCommunicate OK [18:30:40]wFMCommunicate request_size=7 [18:30:40]MH_SAM_APDU [18:30:40]CAPDU: 80 0D 02 02 02 A2 1A [18:30:40]Write to MH i2c: E2 0A 00 3A 04 80 0D 02 02 02 00 A2 1A 00 00 78 [18:30:40]Write i2c OK [18:30:40]MH_I2C_Read... [18:30:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:40]Read from MH i2c: E2 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: E2 03 00 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: E2 03 00 3A 04 00 90 00 B2 [18:30:40]RAPDU: 90 00 [18:30:40]wFMCommunicate OK [18:30:40]wFMCommunicate request_size=4 [18:30:40]MH_SAM_APDU [18:30:40]CAPDU: 80 0D 03 02 [18:30:40]Write to MH i2c: E2 08 00 3B 04 80 0D 03 02 00 00 00 00 BA [18:30:40]Write i2c OK [18:30:40]MH_I2C_Read... [18:30:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:30:40]Read from MH i2c: E2 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: E2 0B 00 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: E2 0B 00 3B 04 00 2B FF 48 84 1E 5C 2C 47 90 00 9E [18:30:40]RAPDU: 2B FF 48 84 1E 5C 2C 47 90 00 [18:30:40]wFMCommunicate OK [18:30:40]SAM_PROTO_SignData done [18:30:40]FM_MakeSignedData done [18:30:40]CreateOFDProtocolMessage [18:30:40]wFMCommunicate request_size=4 [18:30:40]MH_SAM_APDU [18:30:40]CAPDU: 80 11 00 00 [18:30:40]Write to MH i2c: E2 08 00 3C 04 80 11 00 00 00 00 00 00 BA [18:30:40]Write i2c OK [18:30:40]MH_I2C_Read... [18:30:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:40]Read from MH i2c: E2 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: E2 17 00 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: E2 17 00 3C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0C [18:30:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:30:40]wFMCommunicate OK [18:30:40]CreateOFDProtocolMessage done [18:30:40]OFDSenderStorePacket 69493 [18:30:40]StoreOFDPacket docnum=69493 [18:30:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 72 67 04 01 BA AB 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 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 4E 4C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 75 0F 01 00 35 04 06 00 5E CB 16 F6 A2 1A 2B FF 48 84 1E 5C 2C 47 [18:30:40]CheckFolder [18:30:40]dirname=/storage/ofd_packets [18:30:40]CheckFolder done [18:30:40]ProducePacketName [18:30:40]name=ofd_packets/00069493 [18:30:40]NVStorageSaveData ofd_packets/00069493 [18:30:40]File name is /storage/ofd_packets/00069493 [18:30:40]Write 298 bytes [18:30:40]NVStorageSaveData done [18:30:40]OFDSenderStorePacket done [18:30:40]KKMCreateOFDPacket done [18:30:40]NVStorageSaveData kkm_last_timestamp [18:30:40]File name is /storage/kkm_last_timestamp [18:30:40]Write 4 bytes [18:30:40]NVStorageSaveData done [18:30:40]ExternCall_PrintAddStr [18:30:40]wPrintStart [18:30:40]Write to MH i2c: 01 00 00 3D 04 41 [18:30:40]Write i2c OK [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: 01 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: 01 07 00 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: 01 07 00 3D 04 00 00 00 00 00 FF 0F 56 [18:30:40]RasterBufferAndPrint [18:30:40]line Счет N : (1)2885229 [18:30:40]line ИНН: 02508201610067 [18:30:40]line Контрольно-Кассовый Чек [18:30:40]line ПРОДАЖА [18:30:40]line ТРК (МРК, ГНК) : 51 [18:30:40]line Товар: 2710194210 [18:30:40]line ДТ-К-5 [18:30:40]line 22.310 * 76.20 [18:30:40]line = 1700.02 [18:30:40]line НДС 12% НСП 1% [18:30:40]line > о реализуемом товаре [18:30:40]line ОКРУГЛЕНИЕ: -0.02 [18:30:40]line ИТОГО: 1700.00 [18:30:40]line Внесено: 1700.00 [18:30:40]line СДАЧА: 0.00 [18:30:40]line НСП 1% : 15.04 [18:30:40]line НДС 12% : 180.53 [18:30:40]line Наличными: 1700.00 [18:30:40]line Безнал.: 0.00 [18:30:40]line Место: АЗС № 85 "Партнер Нефть" [18:30:40]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:30:40]line СНО: Общий режим [18:30:40]line Чек 338 20.10.2024 18:30 [18:30:40]line Смена: 193 ФФД: 1.0 [18:30:40]line ЗНМ: 0300000167 [18:30:40]line РНМ: 0000000000156251 [18:30:40]line Версия ККМ: v1.0 [18:30:40]line ФМ: 0000000000963346 [18:30:40]line ФД: 69493 [18:30:40]line ФПД: 104226356634138 [18:30:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183038&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69493&fm=104226356634138&tin=02508201610067®Number=0000000000156251&sum=170000 [18:30:40]OFD Sender: Processing packet 69493 [packets to send 18, broken 17] [18:30:40]ProducePacketName [18:30:40]name=ofd_packets/00069493 [18:30:40]OFD Sender: To server: pG, [18:30:40]CommunicateWithHost lk.salyk.kg:30040 [18:30:40]ConnectInit lk.salyk.kg [18:30:40]written 0, free lines is 4095 [18:30:40]Connected sock=10 [18:30:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 72 67 04 01 BA AB 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 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 4E 4C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 75 0F 01 00 35 04 06 00 5E CB 16 F6 A2 1A 2B FF 48 84 1E 5C 2C 47 [18:30:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 69 07 47 00 38 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 75 0F 01 00 F4 03 04 00 F5 F5 14 67 B6 04 01 00 00 BC 71 00 2D 24 A8 4B 28 [18:30:40]CommunicateWithHost err = 0 [18:30:40]CheckOFDResponse [18:30:40]1017 (14) - 77093643461234 [18:30:40]1041 (16) - 0000000000963346 [18:30:40]1040 (4) - 69493 [18:30:40]1012 (4) - 20.10.2024 12:22 [18:30:40]1206 (1) - 0 [18:30:40]OFD Sender: Remove packet 69493 [18:30:40]ProducePacketName [18:30:40]name=ofd_packets/00069493 [18:30:40]NVStorageDeleteData [18:30:40]Write to MH i2c: 01 00 00 68 04 6C [18:30:40]Write i2c OK [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: 01 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: 01 07 00 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: 01 07 00 68 04 00 00 00 00 00 FB 0C 7A [18:30:40]RasterBufferAndPrint [18:30:40]line [18:30:40]line [18:30:40]line [18:30:40]line [18:30:40]line [18:30:41]written 0, free lines is 3330 [18:30:41]MH_Cut [18:30:41]Write to MH i2c: D1 01 00 6F 04 01 45 [18:30:41]Write i2c OK [18:30:41]MH_I2C_Read... [18:30:41]Read from MH i2c: D1 [18:30:41]MH_I2C_Read... [18:30:41]Read from MH i2c: D1 01 00 [18:30:41]MH_I2C_Read... [18:30:41]Read from MH i2c: D1 01 00 6F 04 00 44 [18:30:41]Write to MH i2c: 01 00 00 70 04 74 [18:30:41]Write i2c OK [18:30:41]MH_I2C_Read... [18:30:41]OFD Sender: No OFD packet to send [18:30:41]*** Cut start [18:30:41]*** Partial cut [18:30:41]*** CUTSNS_PIN = 1 [18:30:41]*** CUTSNS_PIN = 0 [18:30:41]*** Brake cut motor [18:30:42]Read from MH i2c: 01 [18:30:42]MH_I2C_Read... [18:30:42]*** Stop cut motor [18:30:42]*** Cut end [18:30:42]Read from MH i2c: 01 07 00 [18:30:42]MH_I2C_Read... [18:30:42]Read from MH i2c: 01 07 00 70 04 00 00 00 00 00 FF 0F 89 [18:30:42]process_action close_receipt done [18:30:42]requested_data is exist [18:30:42]produce_requested_data [18:30:42]requested_item fm.sn is exist - process it [18:30:42]wFMCommunicate request_size=4 [18:30:42]MH_SAM_APDU [18:30:42]CAPDU: 80 11 00 00 [18:30:42]Write to MH i2c: E2 08 00 71 04 80 11 00 00 00 00 00 00 EF [18:30:42]Write i2c OK [18:30:42]MH_I2C_Read... [18:30:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:42]Read from MH i2c: E2 [18:30:42]MH_I2C_Read... [18:30:42]Read from MH i2c: E2 17 00 [18:30:42]MH_I2C_Read... [18:30:42]Read from MH i2c: E2 17 00 71 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 41 [18:30:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:30:42]wFMCommunicate OK [18:30:42]requested_item fd.num is exist - process it [18:30:42]SAM_PROTO_GetFieldsCounters [18:30:42]wFMCommunicate request_size=4 [18:30:42]MH_SAM_APDU [18:30:42]CAPDU: 80 13 00 00 [18:30:42]Write to MH i2c: E2 08 00 72 04 80 13 00 00 00 00 00 00 F2 [18:30:42]Write i2c OK [18:30:42]MH_I2C_Read... [18:30:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:30:42]Read from MH i2c: E2 [18:30:42]MH_I2C_Read... [18:30:42]Read from MH i2c: E2 62 00 [18:30:42]MH_I2C_Read... [18:30:42]Read from MH i2c: E2 62 00 72 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 75 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 4C [18:30:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 75 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:30:42]wFMCommunicate OK [18:30:42]SAM_PROTO_GetFieldsCounters done [18:30:42]requested_item shift.num is exist - process it [18:30:42]requested_item shift.opened is exist - process it [18:30:42]req_shift_opened [18:30:42]FM_GetShiftState [18:30:42]SAM_PROTO_GetShiftState [18:30:42]wFMCommunicate request_size=4 [18:30:42]MH_SAM_APDU [18:30:42]CAPDU: 80 13 01 00 [18:30:42]Write to MH i2c: E2 08 00 73 04 80 13 01 00 00 00 00 00 F4 [18:30:42]Write i2c OK [18:30:42]MH_I2C_Read... [18:30:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:42]Read from MH i2c: E2 [18:30:42]MH_I2C_Read... [18:30:42]Read from MH i2c: E2 0E 00 [18:30:42]MH_I2C_Read... [18:30:42]Read from MH i2c: E2 0E 00 73 04 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 FA [18:30:42]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:30:42]wFMCommunicate OK [18:30:42]SAM_PROTO_GetShiftState done [18:30:42]FM_GetShiftState done [18:30:42]req_shift_opened done [18:30:42]requested_item shift.open_date is exist - process it [18:30:42]req_shift_open_date [18:30:42]req_shift_open_date done [18:30:42]produce_requested_data done [18:30:42]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69493,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [18:30:42]process_action_free close_receipt [18:30:42]json_value_free [18:30:42]json_value_free done [18:30:42]process_json_proto returns [18:30:42]Send response to host [18:30:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69493,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [18:30:42]free response buf [18:30:42]execute_script done [18:30:42]execute_script returns [18:30:42]free content buf [18:30:42]Sock 7.Close socket [18:30:42]Sock 7.Thread stoped [18:30:46]OFD Sender: No OFD packet to send [18:30:51]OFD Sender: No OFD packet to send [18:30:56]OFD Sender: No OFD packet to send [18:31:01]OFD Sender: No OFD packet to send [18:31:06]OFD Sender: No OFD packet to send [18:31:11]OFD Sender: No OFD packet to send [18:31:16]OFD Sender: No OFD packet to send [18:31:21]OFD Sender: No OFD packet to send [18:31:26]OFD Sender: No OFD packet to send [18:31:31]OFD Sender: No OFD packet to send [18:31:36]OFD Sender: No OFD packet to send [18:31:39]accept exits with 9 [18:31:39]New connection [18:31:39]New thread 3066654052 created [18:31:39]Thread 3066797412 joined [18:31:39]Waiting for new connection... [18:31:39] Sock 9.Parse request [18:31:39]Sock 9.Check first char [18:31:39]Sock 9.First char is OK [18:31:39]request: POST /json_proto HTTP/1.0 [18:31:39]Method: POST [18:31:39]URL: /json_proto [18:31:39]Method is POST - this is cgi request [18:31:39]url: /json_proto [18:31:39]query_string will be loaded in cgi processing [18:31:39]execute_cgi json_proto POST (null) [18:31:39]execute_cgi path=json_proto method=POST [18:31:39]POST find Content-Length [18:31:39]Host: 172.17.50.3:8080 [18:31:39]Content-Length: 678 [18:31:39]Content-Type: application/json [18:31:39] [18:31:39]POST finish read [18:31:39]Found Content-Length = 678 [18:31:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:39]execute_script... [18:31:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:39]POST & json_proto [18:31:39]process_json_proto [18:31:39]json parsed OK: [18:31:39]protocol is kg_v1.0 [18:31:39]action value=close_receipt [18:31:39]process_action close_receipt [18:31:39]cmd_close_receipt [18:31:39]MH_GetDate [18:31:39]Write to MH i2c: F0 00 00 74 04 67 [18:31:39]Write i2c OK [18:31:39]MH_I2C_Read... [18:31:39]Read from MH i2c: F0 [18:31:39]MH_I2C_Read... [18:31:39]Read from MH i2c: F0 09 00 [18:31:39]MH_I2C_Read... [18:31:39]Read from MH i2c: F0 09 00 74 04 00 8B 4C 15 67 6B 98 1E 66 4A [18:31:39]GetLastDocTimeStamp 1729449038 [18:31:39]current date 1729449099 [18:31:39]FM_GetShiftState [18:31:39]SAM_PROTO_GetShiftState [18:31:39]wFMCommunicate request_size=4 [18:31:39]MH_SAM_APDU [18:31:39]CAPDU: 80 13 01 00 [18:31:39]Write to MH i2c: E2 08 00 75 04 80 13 01 00 00 00 00 00 F6 [18:31:39]Write i2c OK [18:31:39]MH_I2C_Read... [18:31:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:39]Read from MH i2c: E2 [18:31:39]MH_I2C_Read... [18:31:39]Read from MH i2c: E2 0E 00 [18:31:39]MH_I2C_Read... [18:31:39]Read from MH i2c: E2 0E 00 75 04 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 FC [18:31:39]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:31:39]wFMCommunicate OK [18:31:39]SAM_PROTO_GetShiftState done [18:31:39]FM_GetShiftState done [18:31:39]opened in 1729383220 [18:31:39]opened+sec_in_day 1729469620 [18:31:39]quantity*price = 50041 [18:31:39]sum+1 = 50042 [18:31:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 339 20.10.2024 18:31 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69494 ФПД: 178793618842125 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183139&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69494&fm=178793618842125&tin=02508201610067®Number=0000000000156251&sum=50000 [18:31:40]StoreToDocumentArchive [18:31:40]shift 193 fd 69494 [18:31:40]save to /storage/0193/doc_00069494 [18:31:40]save last doc name /storage/0193/doc_00069494 to /storage/kkm_last_doc_name [18:31:40]save OK [18:31:40]Clear old archive folders... [18:31:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:31:40]tlvbuf is B6E82200 [18:31:40]SAM_PROTO_ClearQueue [18:31:40]wFMCommunicate request_size=4 [18:31:40]MH_SAM_APDU [18:31:40]CAPDU: 80 09 00 00 [18:31:40]Write to MH i2c: E2 08 00 82 04 80 09 00 00 00 00 00 00 F8 [18:31:40]Write i2c OK [18:31:40]MH_I2C_Read... [18:31:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:31:40]Read from MH i2c: E2 [18:31:40]MH_I2C_Read... [18:31:40]Read from MH i2c: E2 03 00 [18:31:40]MH_I2C_Read... [18:31:40]Read from MH i2c: E2 03 00 82 04 00 90 00 FA [18:31:40]RAPDU: 90 00 [18:31:40]wFMCommunicate OK [18:31:40]SAM_PROTO_ClearQueue done [18:31:40]KKMCreateOFDPacket [18:31:40]OFDProtocolAddRootSTLVToBuf [18:31:40]FM_MakeSignedData [18:31:40]FM_MakeSignedData [18:31:40]SAM_PROTO_SignData [18:31:40]wFMCommunicate request_size=4 [18:31:40]MH_SAM_APDU [18:31:40]CAPDU: 80 0D 01 02 [18:31:40]Write to MH i2c: E2 08 00 83 04 80 0D 01 02 00 00 00 00 00 [18:31:40]Write i2c OK [18:31:40]MH_I2C_Read... [18:31:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:31:40]Read from MH i2c: E2 [18:31:40]MH_I2C_Read... [18:31:40]Read from MH i2c: E2 03 00 [18:31:40]MH_I2C_Read... [18:31:40]Read from MH i2c: E2 03 00 83 04 00 90 00 FB [18:31:40]RAPDU: 90 00 [18:31:40]wFMCommunicate OK [18:31:40]wFMCommunicate request_size=255 [18:31:40]MH_SAM_APDU [18:31:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 8B 4C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 76 0F 01 00 35 04 06 00 A2 [18:31:40]Write to MH i2c: E2 02 01 84 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 8B 4C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 76 0F 01 00 35 04 06 00 A2 00 00 19 [18:31:40]Write i2c OK [18:31:40]MH_I2C_Read... [18:31:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:40]Read from MH i2c: E2 [18:31:40]MH_I2C_Read... [18:31:40]Read from MH i2c: E2 03 00 [18:31:40]MH_I2C_Read... [18:31:40]Read from MH i2c: E2 03 00 84 04 00 90 00 FC [18:31:40]RAPDU: 90 00 [18:31:40]wFMCommunicate OK [18:31:40]wFMCommunicate request_size=10 [18:31:40]MH_SAM_APDU [18:31:40]CAPDU: 80 0D 02 02 05 9C A2 23 A2 0D [18:31:40]Write to MH i2c: E2 0D 00 85 04 80 0D 02 02 05 00 9C A2 23 A2 0D 00 00 1D [18:31:40]Write i2c OK [18:31:40]MH_I2C_Read... [18:31:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:40]Read from MH i2c: E2 [18:31:40]MH_I2C_Read... [18:31:40]Read from MH i2c: E2 03 00 [18:31:40]MH_I2C_Read... [18:31:40]Read from MH i2c: E2 03 00 85 04 00 90 00 FD [18:31:40]RAPDU: 90 00 [18:31:40]wFMCommunicate OK [18:31:40]wFMCommunicate request_size=4 [18:31:40]MH_SAM_APDU [18:31:40]CAPDU: 80 0D 03 02 [18:31:40]Write to MH i2c: E2 08 00 86 04 80 0D 03 02 00 00 00 00 05 [18:31:40]Write i2c OK [18:31:40]MH_I2C_Read... [18:31:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:31:41]Read from MH i2c: E2 [18:31:41]MH_I2C_Read... [18:31:41]Read from MH i2c: E2 0B 00 [18:31:41]MH_I2C_Read... [18:31:41]Read from MH i2c: E2 0B 00 86 04 00 53 A3 A2 5C 10 0D 93 8A 90 00 34 [18:31:41]RAPDU: 53 A3 A2 5C 10 0D 93 8A 90 00 [18:31:41]wFMCommunicate OK [18:31:41]SAM_PROTO_SignData done [18:31:41]FM_MakeSignedData done [18:31:41]CreateOFDProtocolMessage [18:31:41]wFMCommunicate request_size=4 [18:31:41]MH_SAM_APDU [18:31:41]CAPDU: 80 11 00 00 [18:31:41]Write to MH i2c: E2 08 00 87 04 80 11 00 00 00 00 00 00 05 [18:31:41]Write i2c OK [18:31:41]MH_I2C_Read... [18:31:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:41]Read from MH i2c: E2 [18:31:41]MH_I2C_Read... [18:31:41]Read from MH i2c: E2 17 00 [18:31:41]MH_I2C_Read... [18:31:41]Read from MH i2c: E2 17 00 87 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 57 [18:31:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:31:41]wFMCommunicate OK [18:31:41]CreateOFDProtocolMessage done [18:31:41]OFDSenderStorePacket 69494 [18:31:41]StoreOFDPacket docnum=69494 [18:31:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 0F 2A 07 01 0D D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 8B 4C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 76 0F 01 00 35 04 06 00 A2 9C A2 23 A2 0D 53 A3 A2 5C 10 0D 93 8A [18:31:41]CheckFolder [18:31:41]dirname=/storage/ofd_packets [18:31:41]CheckFolder done [18:31:41]ProducePacketName [18:31:41]name=ofd_packets/00069494 [18:31:41]NVStorageSaveData ofd_packets/00069494 [18:31:41]File name is /storage/ofd_packets/00069494 [18:31:41]Write 301 bytes [18:31:41]NVStorageSaveData done [18:31:41]OFDSenderStorePacket done [18:31:41]KKMCreateOFDPacket done [18:31:41]NVStorageSaveData kkm_last_timestamp [18:31:41]File name is /storage/kkm_last_timestamp [18:31:41]Write 4 bytes [18:31:41]NVStorageSaveData done [18:31:41]ExternCall_PrintAddStr [18:31:41]wPrintStart [18:31:41]Write to MH i2c: 01 00 00 88 04 8C [18:31:41]Write i2c OK [18:31:41]MH_I2C_Read... [18:31:41]Read from MH i2c: 01 [18:31:41]MH_I2C_Read... [18:31:41]Read from MH i2c: 01 07 00 [18:31:41]MH_I2C_Read... [18:31:41]Read from MH i2c: 01 07 00 88 04 00 00 00 00 00 FF 0F A1 [18:31:41]RasterBufferAndPrint [18:31:41]line Счет N : (1)2885230 [18:31:41]line ИНН: 02508201610067 [18:31:41]line Контрольно-Кассовый Чек [18:31:41]line ПРОДАЖА [18:31:41]line ТРК (МРК, ГНК) : 32 [18:31:41]line Товар: 2710124130 [18:31:41]line Аи-92-К-5 [18:31:41]line 7.480 * 66.90 [18:31:41]line = 500.41 [18:31:41]line НДС 12% НСП 1% [18:31:41]line > о реализуемом товаре [18:31:41]line ОКРУГЛЕНИЕ: -0.41 [18:31:41]line ИТОГО: 500.00 [18:31:41]line Внесено: 500.00 [18:31:41]line СДАЧА: 0.00 [18:31:41]line НСП 1% : 4.43 [18:31:41]line НДС 12% : 53.14 [18:31:41]line Наличными: 500.00 [18:31:41]line Безнал.: 0.00 [18:31:41]line Место: АЗС № 85 "Партнер Нефть" [18:31:41]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:31:41]line СНО: Общий режим [18:31:41]line Чек 339 20.10.2024 18:31 [18:31:41]line Смена: 193 ФФД: 1.0 [18:31:41]line ЗНМ: 0300000167 [18:31:41]line РНМ: 0000000000156251 [18:31:41]line Версия ККМ: v1.0 [18:31:41]line ФМ: 0000000000963346 [18:31:41]line ФД: 69494 [18:31:41]line ФПД: 178793618842125 [18:31:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183139&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69494&fm=178793618842125&tin=02508201610067®Number=0000000000156251&sum=50000 [18:31:41]OFD Sender: Processing packet 69494 [packets to send 18, broken 17] [18:31:41]ProducePacketName [18:31:41]name=ofd_packets/00069494 [18:31:41]OFD Sender: To server: pG, [18:31:41]CommunicateWithHost lk.salyk.kg:30040 [18:31:41]ConnectInit lk.salyk.kg [18:31:41]written 0, free lines is 4095 [18:31:41]Connected sock=10 [18:31:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 0F 2A 07 01 0D D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 8B 4C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 76 0F 01 00 35 04 06 00 A2 9C A2 23 A2 0D 53 A3 A2 5C 10 0D 93 8A [18:31:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 B7 94 47 00 31 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 76 0F 01 00 F4 03 04 00 31 F6 14 67 B6 04 01 00 00 B0 34 08 6A F6 AC C6 7C [18:31:41]CommunicateWithHost err = 0 [18:31:41]CheckOFDResponse [18:31:41]1017 (14) - 77093643461234 [18:31:41]1041 (16) - 0000000000963346 [18:31:41]1040 (4) - 69494 [18:31:41]1012 (4) - 20.10.2024 12:23 [18:31:41]1206 (1) - 0 [18:31:41]OFD Sender: Remove packet 69494 [18:31:41]ProducePacketName [18:31:41]name=ofd_packets/00069494 [18:31:41]NVStorageDeleteData [18:31:41]Write to MH i2c: 01 00 00 B3 04 B7 [18:31:41]Write i2c OK [18:31:41]MH_I2C_Read... [18:31:41]Read from MH i2c: 01 [18:31:41]MH_I2C_Read... [18:31:41]Read from MH i2c: 01 07 00 [18:31:41]MH_I2C_Read... [18:31:41]Read from MH i2c: 01 07 00 B3 04 00 00 00 00 00 02 0D CD [18:31:41]RasterBufferAndPrint [18:31:41]line [18:31:41]line [18:31:41]line [18:31:41]line [18:31:41]line [18:31:41]written 0, free lines is 3336 [18:31:41]MH_Cut [18:31:41]Write to MH i2c: D1 01 00 BA 04 01 90 [18:31:41]Write i2c OK [18:31:41]MH_I2C_Read... [18:31:41]Read from MH i2c: D1 [18:31:41]MH_I2C_Read... [18:31:41]Read from MH i2c: D1 01 00 [18:31:41]MH_I2C_Read... [18:31:41]Read from MH i2c: D1 01 00 BA 04 00 8F [18:31:41]Write to MH i2c: 01 00 00 BB 04 BF [18:31:41]Write i2c OK [18:31:41]MH_I2C_Read... [18:31:42]OFD Sender: No OFD packet to send [18:31:42]*** Cut start [18:31:42]*** Partial cut [18:31:42]*** CUTSNS_PIN = 1 [18:31:42]*** CUTSNS_PIN = 0 [18:31:42]*** Brake cut motor [18:31:43]Read from MH i2c: 01 [18:31:43]MH_I2C_Read... [18:31:43]*** Stop cut motor [18:31:43]*** Cut end [18:31:43]Read from MH i2c: 01 07 00 [18:31:43]MH_I2C_Read... [18:31:43]Read from MH i2c: 01 07 00 BB 04 00 00 00 00 00 FF 0F D4 [18:31:43]process_action close_receipt done [18:31:43]requested_data is exist [18:31:43]produce_requested_data [18:31:43]requested_item fm.sn is exist - process it [18:31:43]wFMCommunicate request_size=4 [18:31:43]MH_SAM_APDU [18:31:43]CAPDU: 80 11 00 00 [18:31:43]Write to MH i2c: E2 08 00 BC 04 80 11 00 00 00 00 00 00 3A [18:31:43]Write i2c OK [18:31:43]MH_I2C_Read... [18:31:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:43]Read from MH i2c: E2 [18:31:43]MH_I2C_Read... [18:31:43]Read from MH i2c: E2 17 00 [18:31:43]MH_I2C_Read... [18:31:43]Read from MH i2c: E2 17 00 BC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8C [18:31:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:31:43]wFMCommunicate OK [18:31:43]requested_item fd.num is exist - process it [18:31:43]SAM_PROTO_GetFieldsCounters [18:31:43]wFMCommunicate request_size=4 [18:31:43]MH_SAM_APDU [18:31:43]CAPDU: 80 13 00 00 [18:31:43]Write to MH i2c: E2 08 00 BD 04 80 13 00 00 00 00 00 00 3D [18:31:43]Write i2c OK [18:31:43]MH_I2C_Read... [18:31:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:31:43]Read from MH i2c: E2 [18:31:43]MH_I2C_Read... [18:31:43]Read from MH i2c: E2 62 00 [18:31:43]MH_I2C_Read... [18:31:43]Read from MH i2c: E2 62 00 BD 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 76 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 9B [18:31:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 76 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:31:43]wFMCommunicate OK [18:31:43]SAM_PROTO_GetFieldsCounters done [18:31:43]requested_item shift.num is exist - process it [18:31:43]requested_item shift.opened is exist - process it [18:31:43]req_shift_opened [18:31:43]FM_GetShiftState [18:31:43]SAM_PROTO_GetShiftState [18:31:43]wFMCommunicate request_size=4 [18:31:43]MH_SAM_APDU [18:31:43]CAPDU: 80 13 01 00 [18:31:43]Write to MH i2c: E2 08 00 BE 04 80 13 01 00 00 00 00 00 3F [18:31:43]Write i2c OK [18:31:43]MH_I2C_Read... [18:31:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:43]Read from MH i2c: E2 [18:31:43]MH_I2C_Read... [18:31:43]Read from MH i2c: E2 0E 00 [18:31:43]MH_I2C_Read... [18:31:43]Read from MH i2c: E2 0E 00 BE 04 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 45 [18:31:43]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:31:43]wFMCommunicate OK [18:31:43]SAM_PROTO_GetShiftState done [18:31:43]FM_GetShiftState done [18:31:43]req_shift_opened done [18:31:43]requested_item shift.open_date is exist - process it [18:31:43]req_shift_open_date [18:31:43]req_shift_open_date done [18:31:43]produce_requested_data done [18:31:43]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69494,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [18:31:43]process_action_free close_receipt [18:31:43]json_value_free [18:31:43]json_value_free done [18:31:43]process_json_proto returns [18:31:43]Send response to host [18:31:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69494,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [18:31:43]free response buf [18:31:43]execute_script done [18:31:43]execute_script returns [18:31:43]free content buf [18:31:43]Sock 9.Close socket [18:31:43]Sock 9.Thread stoped [18:31:47]OFD Sender: No OFD packet to send [18:31:52]OFD Sender: No OFD packet to send [18:31:57]OFD Sender: No OFD packet to send [18:32:02]OFD Sender: No OFD packet to send [18:32:07]OFD Sender: No OFD packet to send [18:32:12]OFD Sender: No OFD packet to send [18:32:17]OFD Sender: No OFD packet to send [18:32:22]OFD Sender: No OFD packet to send [18:32:27]OFD Sender: No OFD packet to send [18:32:32]OFD Sender: No OFD packet to send [18:32:37]OFD Sender: No OFD packet to send [18:32:42]OFD Sender: No OFD packet to send [18:32:47]OFD Sender: No OFD packet to send [18:32:52]OFD Sender: No OFD packet to send [18:32:57]OFD Sender: No OFD packet to send [18:33:02]OFD Sender: No OFD packet to send [18:33:07]OFD Sender: No OFD packet to send [18:33:12]OFD Sender: No OFD packet to send [18:33:17]OFD Sender: No OFD packet to send [18:33:22]OFD Sender: No OFD packet to send [18:33:27]OFD Sender: No OFD packet to send [18:33:32]OFD Sender: No OFD packet to send [18:33:37]OFD Sender: No OFD packet to send [18:33:42]OFD Sender: No OFD packet to send [18:33:47]OFD Sender: No OFD packet to send [18:33:52]OFD Sender: No OFD packet to send [18:33:57]OFD Sender: No OFD packet to send [18:34:02]OFD Sender: No OFD packet to send [18:34:07]OFD Sender: No OFD packet to send [18:34:12]OFD Sender: No OFD packet to send [18:34:17]OFD Sender: No OFD packet to send [18:34:22]OFD Sender: No OFD packet to send [18:34:27]OFD Sender: No OFD packet to send [18:34:32]OFD Sender: No OFD packet to send [18:34:37]OFD Sender: No OFD packet to send [18:34:42]OFD Sender: No OFD packet to send [18:34:47]OFD Sender: No OFD packet to send [18:34:52]OFD Sender: No OFD packet to send [18:34:57]OFD Sender: No OFD packet to send [18:35:02]OFD Sender: No OFD packet to send [18:35:07]OFD Sender: No OFD packet to send [18:35:11]accept exits with 7 [18:35:11]New connection [18:35:11]New thread 3066797412 created [18:35:11]Thread 3066654052 joined [18:35:11]Waiting for new connection... [18:35:11] Sock 7.Parse request [18:35:11]Sock 7.Check first char [18:35:11]Sock 7.First char is OK [18:35:11]request: POST /json_proto HTTP/1.0 [18:35:11]Method: POST [18:35:11]URL: /json_proto [18:35:11]Method is POST - this is cgi request [18:35:11]url: /json_proto [18:35:11]query_string will be loaded in cgi processing [18:35:11]execute_cgi json_proto POST (null) [18:35:11]execute_cgi path=json_proto method=POST [18:35:11]POST find Content-Length [18:35:11]Host: 172.17.50.3:8080 [18:35:11]Content-Length: 683 [18:35:11]Content-Type: application/json [18:35:11] [18:35:11]POST finish read [18:35:11]Found Content-Length = 683 [18:35:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:11]execute_script... [18:35: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)2885231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:11]POST & json_proto [18:35:11]process_json_proto [18:35:11]json parsed OK: [18:35:11]protocol is kg_v1.0 [18:35:11]action value=close_receipt [18:35:11]process_action close_receipt [18:35:11]cmd_close_receipt [18:35:11]MH_GetDate [18:35:11]Write to MH i2c: F0 00 00 BF 04 B2 [18:35:11]Write i2c OK [18:35:11]MH_I2C_Read... [18:35:11]Read from MH i2c: F0 [18:35:11]MH_I2C_Read... [18:35:11]Read from MH i2c: F0 09 00 [18:35:11]MH_I2C_Read... [18:35:11]Read from MH i2c: F0 09 00 BF 04 00 5F 4D 15 67 6B 98 1E 66 6A [18:35:11]GetLastDocTimeStamp 1729449099 [18:35:11]current date 1729449311 [18:35:11]FM_GetShiftState [18:35:11]SAM_PROTO_GetShiftState [18:35:11]wFMCommunicate request_size=4 [18:35:11]MH_SAM_APDU [18:35:11]CAPDU: 80 13 01 00 [18:35:11]Write to MH i2c: E2 08 00 C0 04 80 13 01 00 00 00 00 00 41 [18:35:11]Write i2c OK [18:35:11]MH_I2C_Read... [18:35:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:11]Read from MH i2c: E2 [18:35:11]MH_I2C_Read... [18:35:11]Read from MH i2c: E2 0E 00 [18:35:11]MH_I2C_Read... [18:35:11]Read from MH i2c: E2 0E 00 C0 04 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 47 [18:35:11]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:35:11]wFMCommunicate OK [18:35:11]SAM_PROTO_GetShiftState done [18:35:11]FM_GetShiftState done [18:35:11]opened in 1729383220 [18:35:11]opened+sec_in_day 1729469620 [18:35:11]quantity*price = 100015 [18:35:11]sum+1 = 100017 [18:35:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 340 20.10.2024 18:35 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69495 ФПД: 157644356716585 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183511&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69495&fm=157644356716585&tin=02508201610067®Number=0000000000156251&sum=100000 [18:35:12]StoreToDocumentArchive [18:35:12]shift 193 fd 69495 [18:35:12]save to /storage/0193/doc_00069495 [18:35:12]save last doc name /storage/0193/doc_00069495 to /storage/kkm_last_doc_name [18:35:12]save OK [18:35:12]Clear old archive folders... [18:35:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:35:12]tlvbuf is 00F2B970 [18:35:12]SAM_PROTO_ClearQueue [18:35:12]wFMCommunicate request_size=4 [18:35:12]MH_SAM_APDU [18:35:12]CAPDU: 80 09 00 00 [18:35:12]Write to MH i2c: E2 08 00 CD 04 80 09 00 00 00 00 00 00 43 [18:35:12]Write i2c OK [18:35:12]MH_I2C_Read... [18:35:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:35:12]Read from MH i2c: E2 [18:35:12]MH_I2C_Read... [18:35:12]Read from MH i2c: E2 03 00 [18:35:12]MH_I2C_Read... [18:35:12]Read from MH i2c: E2 03 00 CD 04 00 90 00 45 [18:35:12]RAPDU: 90 00 [18:35:12]wFMCommunicate OK [18:35:12]SAM_PROTO_ClearQueue done [18:35:12]KKMCreateOFDPacket [18:35:12]OFDProtocolAddRootSTLVToBuf [18:35:12]FM_MakeSignedData [18:35:12]FM_MakeSignedData [18:35:12]SAM_PROTO_SignData [18:35:12]wFMCommunicate request_size=4 [18:35:12]MH_SAM_APDU [18:35:12]CAPDU: 80 0D 01 02 [18:35:12]Write to MH i2c: E2 08 00 CE 04 80 0D 01 02 00 00 00 00 4B [18:35:12]Write i2c OK [18:35:12]MH_I2C_Read... [18:35:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:35:12]Read from MH i2c: E2 [18:35:12]MH_I2C_Read... [18:35:12]Read from MH i2c: E2 03 00 [18:35:12]MH_I2C_Read... [18:35:12]Read from MH i2c: E2 03 00 CE 04 00 90 00 46 [18:35:12]RAPDU: 90 00 [18:35:12]wFMCommunicate OK [18:35:12]wFMCommunicate request_size=255 [18:35:12]MH_SAM_APDU [18:35:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 5F 4D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 77 0F 01 00 35 04 06 00 8F [18:35:12]Write to MH i2c: E2 02 01 CF 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 5F 4D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 77 0F 01 00 35 04 06 00 8F 00 00 22 [18:35:12]Write i2c OK [18:35:12]MH_I2C_Read... [18:35:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:12]Read from MH i2c: E2 [18:35:12]MH_I2C_Read... [18:35:12]Read from MH i2c: E2 03 00 [18:35:12]MH_I2C_Read... [18:35:12]Read from MH i2c: E2 03 00 CF 04 00 90 00 47 [18:35:12]RAPDU: 90 00 [18:35:12]wFMCommunicate OK [18:35:12]wFMCommunicate request_size=10 [18:35:12]MH_SAM_APDU [18:35:12]CAPDU: 80 0D 02 02 05 60 6F E2 08 29 [18:35:12]Write to MH i2c: E2 0D 00 D0 04 80 0D 02 02 05 00 60 6F E2 08 29 00 00 3A [18:35:12]Write i2c OK [18:35:12]MH_I2C_Read... [18:35:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:13]Read from MH i2c: E2 [18:35:13]MH_I2C_Read... [18:35:13]Read from MH i2c: E2 03 00 [18:35:13]MH_I2C_Read... [18:35:13]Read from MH i2c: E2 03 00 D0 04 00 90 00 48 [18:35:13]RAPDU: 90 00 [18:35:13]wFMCommunicate OK [18:35:13]wFMCommunicate request_size=4 [18:35:13]MH_SAM_APDU [18:35:13]CAPDU: 80 0D 03 02 [18:35:13]Write to MH i2c: E2 08 00 D1 04 80 0D 03 02 00 00 00 00 50 [18:35:13]Write i2c OK [18:35:13]MH_I2C_Read... [18:35:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:35:13]Read from MH i2c: E2 [18:35:13]MH_I2C_Read... [18:35:13]Read from MH i2c: E2 0B 00 [18:35:13]MH_I2C_Read... [18:35:13]Read from MH i2c: E2 0B 00 D1 04 00 AD 6E 45 45 61 51 5A CE 90 00 D0 [18:35:13]RAPDU: AD 6E 45 45 61 51 5A CE 90 00 [18:35:13]wFMCommunicate OK [18:35:13]SAM_PROTO_SignData done [18:35:13]FM_MakeSignedData done [18:35:13]CreateOFDProtocolMessage [18:35:13]wFMCommunicate request_size=4 [18:35:13]MH_SAM_APDU [18:35:13]CAPDU: 80 11 00 00 [18:35:13]Write to MH i2c: E2 08 00 D2 04 80 11 00 00 00 00 00 00 50 [18:35:13]Write i2c OK [18:35:13]MH_I2C_Read... [18:35:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:13]Read from MH i2c: E2 [18:35:13]MH_I2C_Read... [18:35:13]Read from MH i2c: E2 17 00 [18:35:13]MH_I2C_Read... [18:35:13]Read from MH i2c: E2 17 00 D2 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A2 [18:35:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:35:13]wFMCommunicate OK [18:35:13]CreateOFDProtocolMessage done [18:35:13]OFDSenderStorePacket 69495 [18:35:13]StoreOFDPacket docnum=69495 [18:35:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 79 17 07 01 48 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 5F 4D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 77 0F 01 00 35 04 06 00 8F 60 6F E2 08 29 AD 6E 45 45 61 51 5A CE [18:35:13]CheckFolder [18:35:13]dirname=/storage/ofd_packets [18:35:13]CheckFolder done [18:35:13]ProducePacketName [18:35:13]name=ofd_packets/00069495 [18:35:13]NVStorageSaveData ofd_packets/00069495 [18:35:13]File name is /storage/ofd_packets/00069495 [18:35:13]Write 301 bytes [18:35:13]NVStorageSaveData done [18:35:13]OFDSenderStorePacket done [18:35:13]KKMCreateOFDPacket done [18:35:13]NVStorageSaveData kkm_last_timestamp [18:35:13]File name is /storage/kkm_last_timestamp [18:35:13]Write 4 bytes [18:35:13]NVStorageSaveData done [18:35:13]ExternCall_PrintAddStr [18:35:13]wPrintStart [18:35:13]Write to MH i2c: 01 00 00 D3 04 D7 [18:35:13]Write i2c OK [18:35:13]MH_I2C_Read... [18:35:13]Read from MH i2c: 01 [18:35:13]MH_I2C_Read... [18:35:13]Read from MH i2c: 01 07 00 [18:35:13]MH_I2C_Read... [18:35:13]Read from MH i2c: 01 07 00 D3 04 00 00 00 00 00 FF 0F EC [18:35:13]RasterBufferAndPrint [18:35:13]line Счет N : (1)2885231 [18:35:13]line ИНН: 02508201610067 [18:35:13]line Контрольно-Кассовый Чек [18:35:13]line ПРОДАЖА [18:35:13]line ТРК (МРК, ГНК) : 22 [18:35:13]line Товар: 2710124130 [18:35:13]line Аи-92-К-5 [18:35:13]line 14.950 * 66.90 [18:35:13]line = 1000.16 [18:35:13]line НДС 12% НСП 1% [18:35:13]line > о реализуемом товаре [18:35:13]line ОКРУГЛЕНИЕ: -0.16 [18:35:13]line ИТОГО: 1000.00 [18:35:13]line Внесено: 1000.00 [18:35:13]line СДАЧА: 0.00 [18:35:13]line НСП 1% : 8.85 [18:35:13]line НДС 12% : 106.21 [18:35:13]line Наличными: 1000.00 [18:35:13]line Безнал.: 0.00 [18:35:13]line Место: АЗС № 85 "Партнер Нефть" [18:35:13]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:35:13]line СНО: Общий режим [18:35:13]line Чек 340 20.10.2024 18:35 [18:35:13]line Смена: 193 ФФД: 1.0 [18:35:13]line ЗНМ: 0300000167 [18:35:13]line РНМ: 0000000000156251 [18:35:13]line Версия ККМ: v1.0 [18:35:13]line ФМ: 0000000000963346 [18:35:13]line ФД: 69495 [18:35:13]line ФПД: 157644356716585 [18:35:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183511&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69495&fm=157644356716585&tin=02508201610067®Number=0000000000156251&sum=100000 [18:35:13]OFD Sender: Processing packet 69495 [packets to send 18, broken 17] [18:35:13]ProducePacketName [18:35:13]name=ofd_packets/00069495 [18:35:13]OFD Sender: To server: pG, [18:35:13]CommunicateWithHost lk.salyk.kg:30040 [18:35:13]ConnectInit lk.salyk.kg [18:35:13]written 0, free lines is 4095 [18:35:13]Connected sock=9 [18:35:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 79 17 07 01 48 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 5F 4D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 77 0F 01 00 35 04 06 00 8F 60 6F E2 08 29 AD 6E 45 45 61 51 5A CE [18:35:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 89 E1 47 00 FA 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 77 0F 01 00 F4 03 04 00 05 F7 14 67 B6 04 01 00 00 3C 1B 2B 28 8E C0 57 61 [18:35:13]CommunicateWithHost err = 0 [18:35:13]CheckOFDResponse [18:35:13]1017 (14) - 77093643461234 [18:35:13]1041 (16) - 0000000000963346 [18:35:13]1040 (4) - 69495 [18:35:13]1012 (4) - 20.10.2024 12:26 [18:35:13]1206 (1) - 0 [18:35:13]OFD Sender: Remove packet 69495 [18:35:13]ProducePacketName [18:35:13]name=ofd_packets/00069495 [18:35:13]NVStorageDeleteData [18:35:13]Write to MH i2c: 01 00 00 FE 04 02 [18:35:13]Write i2c OK [18:35:13]MH_I2C_Read... [18:35:13]Read from MH i2c: 01 [18:35:13]MH_I2C_Read... [18:35:13]Read from MH i2c: 01 07 00 [18:35:13]MH_I2C_Read... [18:35:13]Read from MH i2c: 01 07 00 FE 04 00 00 00 00 00 F5 0C 0A [18:35:13]RasterBufferAndPrint [18:35:13]line [18:35:13]line [18:35:13]line [18:35:13]line [18:35:13]line [18:35:13]written 0, free lines is 3323 [18:35:13]MH_Cut [18:35:13]Write to MH i2c: D1 01 00 05 05 01 DC [18:35:13]Write i2c OK [18:35:13]MH_I2C_Read... [18:35:13]Read from MH i2c: D1 [18:35:13]MH_I2C_Read... [18:35:13]Read from MH i2c: D1 01 00 [18:35:13]MH_I2C_Read... [18:35:13]Read from MH i2c: D1 01 00 05 05 00 DB [18:35:13]Write to MH i2c: 01 00 00 06 05 0B [18:35:13]Write i2c OK [18:35:13]MH_I2C_Read... [18:35:14]OFD Sender: No OFD packet to send [18:35:14]*** Cut start [18:35:14]*** Partial cut [18:35:14]*** CUTSNS_PIN = 1 [18:35:14]*** CUTSNS_PIN = 0 [18:35:14]*** Brake cut motor [18:35:15]Read from MH i2c: 01 [18:35:15]MH_I2C_Read... [18:35:15]*** Stop cut motor [18:35:15]*** Cut end [18:35:15]Read from MH i2c: 01 07 00 [18:35:15]MH_I2C_Read... [18:35:15]Read from MH i2c: 01 07 00 06 05 00 00 00 00 00 FF 0F 20 [18:35:15]process_action close_receipt done [18:35:15]requested_data is exist [18:35:15]produce_requested_data [18:35:15]requested_item fm.sn is exist - process it [18:35:15]wFMCommunicate request_size=4 [18:35:15]MH_SAM_APDU [18:35:15]CAPDU: 80 11 00 00 [18:35:15]Write to MH i2c: E2 08 00 07 05 80 11 00 00 00 00 00 00 86 [18:35:15]Write i2c OK [18:35:15]MH_I2C_Read... [18:35:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:15]Read from MH i2c: E2 [18:35:15]MH_I2C_Read... [18:35:15]Read from MH i2c: E2 17 00 [18:35:15]MH_I2C_Read... [18:35:15]Read from MH i2c: E2 17 00 07 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D8 [18:35:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:35:15]wFMCommunicate OK [18:35:15]requested_item fd.num is exist - process it [18:35:15]SAM_PROTO_GetFieldsCounters [18:35:15]wFMCommunicate request_size=4 [18:35:15]MH_SAM_APDU [18:35:15]CAPDU: 80 13 00 00 [18:35:15]Write to MH i2c: E2 08 00 08 05 80 13 00 00 00 00 00 00 89 [18:35:15]Write i2c OK [18:35:15]MH_I2C_Read... [18:35:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:35:15]Read from MH i2c: E2 [18:35:15]MH_I2C_Read... [18:35:15]Read from MH i2c: E2 62 00 [18:35:15]MH_I2C_Read... [18:35:15]Read from MH i2c: E2 62 00 08 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 77 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 EB [18:35:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 77 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:35:15]wFMCommunicate OK [18:35:15]SAM_PROTO_GetFieldsCounters done [18:35:15]requested_item shift.num is exist - process it [18:35:15]requested_item shift.opened is exist - process it [18:35:15]req_shift_opened [18:35:15]FM_GetShiftState [18:35:15]SAM_PROTO_GetShiftState [18:35:15]wFMCommunicate request_size=4 [18:35:15]MH_SAM_APDU [18:35:15]CAPDU: 80 13 01 00 [18:35:15]Write to MH i2c: E2 08 00 09 05 80 13 01 00 00 00 00 00 8B [18:35:15]Write i2c OK [18:35:15]MH_I2C_Read... [18:35:15]Read from MH i2c: E2 [18:35:15]MH_I2C_Read... [18:35:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:15]Read from MH i2c: E2 0E 00 [18:35:15]MH_I2C_Read... [18:35:15]Read from MH i2c: E2 0E 00 09 05 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 91 [18:35:15]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:35:15]wFMCommunicate OK [18:35:15]SAM_PROTO_GetShiftState done [18:35:15]FM_GetShiftState done [18:35:15]req_shift_opened done [18:35:15]requested_item shift.open_date is exist - process it [18:35:15]req_shift_open_date [18:35:15]req_shift_open_date done [18:35:15]produce_requested_data done [18:35:15]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69495,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [18:35:15]process_action_free close_receipt [18:35:15]json_value_free [18:35:15]json_value_free done [18:35:15]process_json_proto returns [18:35:15]Send response to host [18:35:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69495,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [18:35:15]free response buf [18:35:15]execute_script done [18:35:15]execute_script returns [18:35:15]free content buf [18:35:15]Sock 7.Close socket [18:35:15]Sock 7.Thread stoped [18:35:19]OFD Sender: No OFD packet to send [18:35:24]OFD Sender: No OFD packet to send [18:35:29]OFD Sender: No OFD packet to send [18:35:34]OFD Sender: No OFD packet to send [18:35:39]OFD Sender: No OFD packet to send [18:35:44]OFD Sender: No OFD packet to send [18:35:49]OFD Sender: No OFD packet to send [18:35:54]OFD Sender: No OFD packet to send [18:35:59]OFD Sender: No OFD packet to send [18:36:04]OFD Sender: No OFD packet to send [18:36:09]OFD Sender: No OFD packet to send [18:36:14]OFD Sender: No OFD packet to send [18:36:19]OFD Sender: No OFD packet to send [18:36:24]OFD Sender: No OFD packet to send [18:36:29]OFD Sender: No OFD packet to send [18:36:29]accept exits with 10 [18:36:29]New connection [18:36:29]New thread 3066654052 created [18:36:29]Thread 3066797412 joined [18:36:29]Waiting for new connection... [18:36:29] Sock 10.Parse request [18:36:29]Sock 10.Check first char [18:36:29]Sock 10.First char is OK [18:36:29]request: POST /json_proto HTTP/1.0 [18:36:29]Method: POST [18:36:29]URL: /json_proto [18:36:29]Method is POST - this is cgi request [18:36:29]url: /json_proto [18:36:29]query_string will be loaded in cgi processing [18:36:29]execute_cgi json_proto POST (null) [18:36:29]execute_cgi path=json_proto method=POST [18:36:29]POST find Content-Length [18:36:29]Host: 172.17.50.3:8080 [18:36:29]Content-Length: 689 [18:36:29]Content-Type: application/json [18:36:29] [18:36:29]POST finish read [18:36:29]Found Content-Length = 689 [18:36:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:29]execute_script... [18:36:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:29]POST & json_proto [18:36:29]process_json_proto [18:36:29]json parsed OK: [18:36:29]protocol is kg_v1.0 [18:36:29]action value=close_receipt [18:36:29]process_action close_receipt [18:36:29]cmd_close_receipt [18:36:29]MH_GetDate [18:36:29]Write to MH i2c: F0 00 00 0A 05 FE [18:36:29]Write i2c OK [18:36:29]MH_I2C_Read... [18:36:29]Read from MH i2c: F0 [18:36:29]MH_I2C_Read... [18:36:29]Read from MH i2c: F0 09 00 [18:36:29]MH_I2C_Read... [18:36:29]Read from MH i2c: F0 09 00 0A 05 00 AE 4D 15 67 6B 98 1E 66 05 [18:36:29]GetLastDocTimeStamp 1729449311 [18:36:29]current date 1729449390 [18:36:29]FM_GetShiftState [18:36:29]SAM_PROTO_GetShiftState [18:36:29]wFMCommunicate request_size=4 [18:36:29]MH_SAM_APDU [18:36:29]CAPDU: 80 13 01 00 [18:36:29]Write to MH i2c: E2 08 00 0B 05 80 13 01 00 00 00 00 00 8D [18:36:29]Write i2c OK [18:36:29]MH_I2C_Read... [18:36:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:30]Read from MH i2c: E2 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: E2 0E 00 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: E2 0E 00 0B 05 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 93 [18:36:30]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:36:30]wFMCommunicate OK [18:36:30]SAM_PROTO_GetShiftState done [18:36:30]FM_GetShiftState done [18:36:30]opened in 1729383220 [18:36:30]opened+sec_in_day 1729469620 [18:36:30]quantity*price = 100051 [18:36:30]sum+1 = 100052 [18:36:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 341 20.10.2024 18:36 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69496 ФПД: 279656844906435 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183630&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69496&fm=279656844906435&tin=02508201610067®Number=0000000000156251&sum=100000 [18:36:31]StoreToDocumentArchive [18:36:31]shift 193 fd 69496 [18:36:31]save to /storage/0193/doc_00069496 [18:36:31]save last doc name /storage/0193/doc_00069496 to /storage/kkm_last_doc_name [18:36:31]save OK [18:36:31]Clear old archive folders... [18:36:31]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:36:31]tlvbuf is 00F328E0 [18:36:31]SAM_PROTO_ClearQueue [18:36:31]wFMCommunicate request_size=4 [18:36:31]MH_SAM_APDU [18:36:31]CAPDU: 80 09 00 00 [18:36:31]Write to MH i2c: E2 08 00 18 05 80 09 00 00 00 00 00 00 8F [18:36:31]Write i2c OK [18:36:31]MH_I2C_Read... [18:36:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:36:31]Read from MH i2c: E2 [18:36:31]MH_I2C_Read... [18:36:31]Read from MH i2c: E2 03 00 [18:36:31]MH_I2C_Read... [18:36:31]Read from MH i2c: E2 03 00 18 05 00 90 00 91 [18:36:31]RAPDU: 90 00 [18:36:31]wFMCommunicate OK [18:36:31]SAM_PROTO_ClearQueue done [18:36:31]KKMCreateOFDPacket [18:36:31]OFDProtocolAddRootSTLVToBuf [18:36:31]FM_MakeSignedData [18:36:31]FM_MakeSignedData [18:36:31]SAM_PROTO_SignData [18:36:31]wFMCommunicate request_size=4 [18:36:31]MH_SAM_APDU [18:36:31]CAPDU: 80 0D 01 02 [18:36:31]Write to MH i2c: E2 08 00 19 05 80 0D 01 02 00 00 00 00 97 [18:36:31]Write i2c OK [18:36:31]MH_I2C_Read... [18:36:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:36:31]Read from MH i2c: E2 [18:36:31]MH_I2C_Read... [18:36:31]Read from MH i2c: E2 03 00 [18:36:31]MH_I2C_Read... [18:36:31]Read from MH i2c: E2 03 00 19 05 00 90 00 92 [18:36:31]RAPDU: 90 00 [18:36:31]wFMCommunicate OK [18:36:31]wFMCommunicate request_size=255 [18:36:31]MH_SAM_APDU [18:36:31]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 AE 4D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 78 0F 01 [18:36:31]Write to MH i2c: E2 02 01 1A 05 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 AE 4D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 78 0F 01 00 00 FF [18:36:31]Write i2c OK [18:36:31]MH_I2C_Read... [18:36:31]Read from MH i2c: E2 [18:36:31]MH_I2C_Read... [18:36:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:31]Read from MH i2c: E2 03 00 [18:36:31]MH_I2C_Read... [18:36:31]Read from MH i2c: E2 03 00 1A 05 00 90 00 93 [18:36:31]RAPDU: 90 00 [18:36:31]wFMCommunicate OK [18:36:31]wFMCommunicate request_size=16 [18:36:31]MH_SAM_APDU [18:36:31]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 FE 58 AE E6 4F C3 [18:36:31]Write to MH i2c: E2 13 00 1B 05 80 0D 02 02 0B 00 00 35 04 06 00 FE 58 AE E6 4F C3 00 00 EB [18:36:31]Write i2c OK [18:36:31]MH_I2C_Read... [18:36:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:31]Read from MH i2c: E2 [18:36:31]MH_I2C_Read... [18:36:31]Read from MH i2c: E2 03 00 [18:36:31]MH_I2C_Read... [18:36:31]Read from MH i2c: E2 03 00 1B 05 00 90 00 94 [18:36:31]RAPDU: 90 00 [18:36:31]wFMCommunicate OK [18:36:31]wFMCommunicate request_size=4 [18:36:31]MH_SAM_APDU [18:36:31]CAPDU: 80 0D 03 02 [18:36:31]Write to MH i2c: E2 08 00 1C 05 80 0D 03 02 00 00 00 00 9C [18:36:31]Write i2c OK [18:36:31]MH_I2C_Read... [18:36:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:36:31]Read from MH i2c: E2 [18:36:31]MH_I2C_Read... [18:36:31]Read from MH i2c: E2 0B 00 [18:36:31]MH_I2C_Read... [18:36:31]Read from MH i2c: E2 0B 00 1C 05 00 CA 4E C7 18 E4 6B 25 51 90 00 59 [18:36:31]RAPDU: CA 4E C7 18 E4 6B 25 51 90 00 [18:36:31]wFMCommunicate OK [18:36:31]SAM_PROTO_SignData done [18:36:31]FM_MakeSignedData done [18:36:31]CreateOFDProtocolMessage [18:36:31]wFMCommunicate request_size=4 [18:36:31]MH_SAM_APDU [18:36:31]CAPDU: 80 11 00 00 [18:36:31]Write to MH i2c: E2 08 00 1D 05 80 11 00 00 00 00 00 00 9C [18:36:31]Write i2c OK [18:36:31]MH_I2C_Read... [18:36:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:31]Read from MH i2c: E2 [18:36:31]MH_I2C_Read... [18:36:31]Read from MH i2c: E2 17 00 [18:36:31]MH_I2C_Read... [18:36:31]Read from MH i2c: E2 17 00 1D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EE [18:36:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:36:31]wFMCommunicate OK [18:36:31]CreateOFDProtocolMessage done [18:36:31]OFDSenderStorePacket 69496 [18:36:31]StoreOFDPacket docnum=69496 [18:36:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 7C BC 0D 01 A6 B8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 AE 4D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 78 0F 01 00 35 04 06 00 FE 58 AE E6 4F C3 CA 4E C7 18 E4 6B 25 51 [18:36:31]CheckFolder [18:36:31]dirname=/storage/ofd_packets [18:36:31]CheckFolder done [18:36:31]ProducePacketName [18:36:31]name=ofd_packets/00069496 [18:36:31]NVStorageSaveData ofd_packets/00069496 [18:36:31]File name is /storage/ofd_packets/00069496 [18:36:31]Write 307 bytes [18:36:31]NVStorageSaveData done [18:36:31]OFDSenderStorePacket done [18:36:31]KKMCreateOFDPacket done [18:36:31]NVStorageSaveData kkm_last_timestamp [18:36:31]File name is /storage/kkm_last_timestamp [18:36:31]Write 4 bytes [18:36:31]NVStorageSaveData done [18:36:31]ExternCall_PrintAddStr [18:36:31]wPrintStart [18:36:31]Write to MH i2c: 01 00 00 1E 05 23 [18:36:31]Write i2c OK [18:36:31]MH_I2C_Read... [18:36:31]Read from MH i2c: 01 [18:36:31]MH_I2C_Read... [18:36:31]Read from MH i2c: 01 07 00 [18:36:31]MH_I2C_Read... [18:36:31]Read from MH i2c: 01 07 00 1E 05 00 00 00 00 00 FF 0F 38 [18:36:31]RasterBufferAndPrint [18:36:31]line Счет N : (1)2885232 [18:36:31]line ИНН: 02508201610067 [18:36:31]line Контрольно-Кассовый Чек [18:36:31]line ПРОДАЖА [18:36:31]line ТРК (МРК, ГНК) : 41 [18:36:31]line Товар: 2710194240 [18:36:31]line D-ENERGY Дт-К-2 [18:36:31]line 12.960 * 77.20 [18:36:31]line = 1000.51 [18:36:31]line НДС 12% НСП 1% [18:36:31]line > о реализуемом товаре [18:36:31]line ОКРУГЛЕНИЕ: -0.51 [18:36:31]line ИТОГО: 1000.00 [18:36:31]line Внесено: 1000.00 [18:36:31]line СДАЧА: 0.00 [18:36:31]line НСП 1% : 8.85 [18:36:31]line НДС 12% : 106.25 [18:36:31]line Наличными: 1000.00 [18:36:31]line Безнал.: 0.00 [18:36:31]line Место: АЗС № 85 "Партнер Нефть" [18:36:31]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:36:31]line СНО: Общий режим [18:36:31]line Чек 341 20.10.2024 18:36 [18:36:31]line Смена: 193 ФФД: 1.0 [18:36:31]line ЗНМ: 0300000167 [18:36:31]line РНМ: 0000000000156251 [18:36:31]line Версия ККМ: v1.0 [18:36:31]line ФМ: 0000000000963346 [18:36:31]line ФД: 69496 [18:36:31]line ФПД: 279656844906435 [18:36:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183630&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69496&fm=279656844906435&tin=02508201610067®Number=0000000000156251&sum=100000 [18:36:32]OFD Sender: Processing packet 69496 [packets to send 18, broken 17] [18:36:32]ProducePacketName [18:36:32]name=ofd_packets/00069496 [18:36:32]OFD Sender: To server: pG, [18:36:32]CommunicateWithHost lk.salyk.kg:30040 [18:36:32]ConnectInit lk.salyk.kg [18:36:32]written 0, free lines is 4095 [18:36:32]Connected sock=9 [18:36:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 7C BC 0D 01 A6 B8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 AE 4D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 78 0F 01 00 35 04 06 00 FE 58 AE E6 4F C3 CA 4E C7 18 E4 6B 25 51 [18:36:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 58 CA 47 00 BB 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 78 0F 01 00 F4 03 04 00 54 F7 14 67 B6 04 01 00 00 F7 4A E1 D4 D6 F3 C3 E5 [18:36:32]CommunicateWithHost err = 0 [18:36:32]CheckOFDResponse [18:36:32]1017 (14) - 77093643461234 [18:36:32]1041 (16) - 0000000000963346 [18:36:32]1040 (4) - 69496 [18:36:32]1012 (4) - 20.10.2024 12:28 [18:36:32]1206 (1) - 0 [18:36:32]OFD Sender: Remove packet 69496 [18:36:32]ProducePacketName [18:36:32]name=ofd_packets/00069496 [18:36:32]NVStorageDeleteData [18:36:32]Write to MH i2c: 01 00 00 49 05 4E [18:36:32]Write i2c OK [18:36:32]MH_I2C_Read... [18:36:32]Read from MH i2c: 01 [18:36:32]MH_I2C_Read... [18:36:32]Read from MH i2c: 01 07 00 [18:36:32]MH_I2C_Read... [18:36:32]Read from MH i2c: 01 07 00 49 05 00 00 00 00 00 FA 0C 5B [18:36:32]RasterBufferAndPrint [18:36:32]line [18:36:32]line [18:36:32]line [18:36:32]line [18:36:32]line [18:36:32]written 0, free lines is 3328 [18:36:32]MH_Cut [18:36:32]Write to MH i2c: D1 01 00 50 05 01 27 [18:36:32]Write i2c OK [18:36:32]MH_I2C_Read... [18:36:32]Read from MH i2c: D1 [18:36:32]MH_I2C_Read... [18:36:32]Read from MH i2c: D1 01 00 [18:36:32]MH_I2C_Read... [18:36:32]Read from MH i2c: D1 01 00 50 05 00 26 [18:36:32]Write to MH i2c: 01 00 00 51 05 56 [18:36:32]Write i2c OK [18:36:32]MH_I2C_Read... [18:36:32]OFD Sender: No OFD packet to send [18:36:33]*** Cut start [18:36:33]*** Partial cut [18:36:33]*** CUTSNS_PIN = 1 [18:36:33]*** CUTSNS_PIN = 0 [18:36:33]*** Brake cut motor [18:36:33]Read from MH i2c: 01 [18:36:33]MH_I2C_Read... [18:36:33]*** Stop cut motor [18:36:33]*** Cut end [18:36:33]Read from MH i2c: 01 07 00 [18:36:33]MH_I2C_Read... [18:36:33]Read from MH i2c: 01 07 00 51 05 00 00 00 00 00 FF 0F 6B [18:36:33]process_action close_receipt done [18:36:33]requested_data is exist [18:36:33]produce_requested_data [18:36:33]requested_item fm.sn is exist - process it [18:36:33]wFMCommunicate request_size=4 [18:36:33]MH_SAM_APDU [18:36:33]CAPDU: 80 11 00 00 [18:36:33]Write to MH i2c: E2 08 00 52 05 80 11 00 00 00 00 00 00 D1 [18:36:33]Write i2c OK [18:36:33]MH_I2C_Read... [18:36:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:33]Read from MH i2c: E2 [18:36:33]MH_I2C_Read... [18:36:33]Read from MH i2c: E2 17 00 [18:36:33]MH_I2C_Read... [18:36:33]Read from MH i2c: E2 17 00 52 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 23 [18:36:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:36:33]wFMCommunicate OK [18:36:33]requested_item fd.num is exist - process it [18:36:33]SAM_PROTO_GetFieldsCounters [18:36:33]wFMCommunicate request_size=4 [18:36:33]MH_SAM_APDU [18:36:33]CAPDU: 80 13 00 00 [18:36:33]Write to MH i2c: E2 08 00 53 05 80 13 00 00 00 00 00 00 D4 [18:36:33]Write i2c OK [18:36:33]MH_I2C_Read... [18:36:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:33]Read from MH i2c: E2 [18:36:33]MH_I2C_Read... [18:36:33]Read from MH i2c: E2 62 00 [18:36:33]MH_I2C_Read... [18:36:33]Read from MH i2c: E2 62 00 53 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 78 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 3A [18:36:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 78 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:36:33]wFMCommunicate OK [18:36:33]SAM_PROTO_GetFieldsCounters done [18:36:33]requested_item shift.num is exist - process it [18:36:33]requested_item shift.opened is exist - process it [18:36:33]req_shift_opened [18:36:33]FM_GetShiftState [18:36:33]SAM_PROTO_GetShiftState [18:36:33]wFMCommunicate request_size=4 [18:36:33]MH_SAM_APDU [18:36:33]CAPDU: 80 13 01 00 [18:36:33]Write to MH i2c: E2 08 00 54 05 80 13 01 00 00 00 00 00 D6 [18:36:33]Write i2c OK [18:36:33]MH_I2C_Read... [18:36:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:34]Read from MH i2c: E2 [18:36:34]MH_I2C_Read... [18:36:34]Read from MH i2c: E2 0E 00 [18:36:34]MH_I2C_Read... [18:36:34]Read from MH i2c: E2 0E 00 54 05 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 DC [18:36:34]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:36:34]wFMCommunicate OK [18:36:34]SAM_PROTO_GetShiftState done [18:36:34]FM_GetShiftState done [18:36:34]req_shift_opened done [18:36:34]requested_item shift.open_date is exist - process it [18:36:34]req_shift_open_date [18:36:34]req_shift_open_date done [18:36:34]produce_requested_data done [18:36:34]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69496,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [18:36:34]process_action_free close_receipt [18:36:34]json_value_free [18:36:34]json_value_free done [18:36:34]process_json_proto returns [18:36:34]Send response to host [18:36:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69496,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [18:36:34]free response buf [18:36:34]execute_script done [18:36:34]execute_script returns [18:36:34]free content buf [18:36:34]Sock 10.Close socket [18:36:34]Sock 10.Thread stoped [18:36:37]OFD Sender: No OFD packet to send [18:36:42]OFD Sender: No OFD packet to send [18:36:47]OFD Sender: No OFD packet to send [18:36:52]OFD Sender: No OFD packet to send [18:36:57]OFD Sender: No OFD packet to send [18:37:02]OFD Sender: No OFD packet to send [18:37:07]OFD Sender: No OFD packet to send [18:37:12]OFD Sender: No OFD packet to send [18:37:17]OFD Sender: No OFD packet to send [18:37:22]OFD Sender: No OFD packet to send [18:37:27]OFD Sender: No OFD packet to send [18:37:32]OFD Sender: No OFD packet to send [18:37:37]OFD Sender: No OFD packet to send [18:37:42]OFD Sender: No OFD packet to send [18:37:47]OFD Sender: No OFD packet to send [18:37:52]OFD Sender: No OFD packet to send [18:37:57]OFD Sender: No OFD packet to send [18:38:02]OFD Sender: No OFD packet to send [18:38:07]OFD Sender: No OFD packet to send [18:38:12]OFD Sender: No OFD packet to send [18:38:17]OFD Sender: No OFD packet to send [18:38:22]OFD Sender: No OFD packet to send [18:38:27]OFD Sender: No OFD packet to send [18:38:32]OFD Sender: No OFD packet to send [18:38:37]OFD Sender: No OFD packet to send [18:38:42]OFD Sender: No OFD packet to send [18:38:47]OFD Sender: No OFD packet to send [18:38:52]OFD Sender: No OFD packet to send [18:38:57]OFD Sender: No OFD packet to send [18:39:02]OFD Sender: No OFD packet to send [18:39:07]OFD Sender: No OFD packet to send [18:39:12]OFD Sender: No OFD packet to send [18:39:17]OFD Sender: No OFD packet to send [18:39:22]OFD Sender: No OFD packet to send [18:39:27]OFD Sender: No OFD packet to send [18:39:32]OFD Sender: No OFD packet to send [18:39:37]OFD Sender: No OFD packet to send [18:39:42]OFD Sender: No OFD packet to send [18:39:47]OFD Sender: No OFD packet to send [18:39:52]OFD Sender: No OFD packet to send [18:39:57]OFD Sender: No OFD packet to send [18:40:02]OFD Sender: No OFD packet to send [18:40:08]OFD Sender: No OFD packet to send [18:40:12]accept exits with 7 [18:40:12]New connection [18:40:12]New thread 3066797412 created [18:40:12]Thread 3066654052 joined [18:40:12]Waiting for new connection... [18:40:12] Sock 7.Parse request [18:40:12]Sock 7.Check first char [18:40:12]Sock 7.First char is OK [18:40:12]request: POST /json_proto HTTP/1.0 [18:40:12]Method: POST [18:40:12]URL: /json_proto [18:40:12]Method is POST - this is cgi request [18:40:12]url: /json_proto [18:40:12]query_string will be loaded in cgi processing [18:40:12]execute_cgi json_proto POST (null) [18:40:12]execute_cgi path=json_proto method=POST [18:40:12]POST find Content-Length [18:40:12]Host: 172.17.50.3:8080 [18:40:12]Content-Length: 770 [18:40:12]Content-Type: application/json [18:40:12] [18:40:12]POST finish read [18:40:12]Found Content-Length = 770 [18:40:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:12]execute_script... [18:40: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)2885233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:12]POST & json_proto [18:40:12]process_json_proto [18:40:12]json parsed OK: [18:40:12]protocol is kg_v1.0 [18:40:12]action value=close_receipt [18:40:12]process_action close_receipt [18:40:12]cmd_close_receipt [18:40:12]MH_GetDate [18:40:12]Write to MH i2c: F0 00 00 55 05 49 [18:40:12]Write i2c OK [18:40:12]MH_I2C_Read... [18:40:12]Read from MH i2c: F0 [18:40:12]MH_I2C_Read... [18:40:12]Read from MH i2c: F0 09 00 [18:40:12]MH_I2C_Read... [18:40:12]Read from MH i2c: F0 09 00 55 05 00 8C 4E 15 67 6B 98 1E 66 2F [18:40:12]GetLastDocTimeStamp 1729449390 [18:40:12]current date 1729449612 [18:40:12]FM_GetShiftState [18:40:12]SAM_PROTO_GetShiftState [18:40:12]wFMCommunicate request_size=4 [18:40:12]MH_SAM_APDU [18:40:12]CAPDU: 80 13 01 00 [18:40:12]Write to MH i2c: E2 08 00 56 05 80 13 01 00 00 00 00 00 D8 [18:40:12]Write i2c OK [18:40:12]MH_I2C_Read... [18:40:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:12]Read from MH i2c: E2 [18:40:12]MH_I2C_Read... [18:40:12]Read from MH i2c: E2 0E 00 [18:40:12]MH_I2C_Read... [18:40:12]Read from MH i2c: E2 0E 00 56 05 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 DE [18:40:12]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:40:12]wFMCommunicate OK [18:40:12]SAM_PROTO_GetShiftState done [18:40:12]FM_GetShiftState done [18:40:12]opened in 1729383220 [18:40:12]opened+sec_in_day 1729469620 [18:40:12]quantity*price = 100021 [18:40:12]sum+1 = 100023 [18:40:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 342 20.10.2024 18:40 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69497 ФПД: 90171408065092 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184012&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69497&fm=90171408065092&tin=02508201610067®Number=0000000000156251&sum=100022 [18:40:13]StoreToDocumentArchive [18:40:13]shift 193 fd 69497 [18:40:13]save to /storage/0193/doc_00069497 [18:40:13]save last doc name /storage/0193/doc_00069497 to /storage/kkm_last_doc_name [18:40:13]save OK [18:40:13]Clear old archive folders... [18:40:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:40:13]tlvbuf is 00F115C0 [18:40:13]SAM_PROTO_ClearQueue [18:40:13]wFMCommunicate request_size=4 [18:40:13]MH_SAM_APDU [18:40:13]CAPDU: 80 09 00 00 [18:40:13]Write to MH i2c: E2 08 00 63 05 80 09 00 00 00 00 00 00 DA [18:40:13]Write i2c OK [18:40:13]MH_I2C_Read... [18:40:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:40:13]Read from MH i2c: E2 [18:40:13]MH_I2C_Read... [18:40:13]Read from MH i2c: E2 03 00 [18:40:13]MH_I2C_Read... [18:40:13]Read from MH i2c: E2 03 00 63 05 00 90 00 DC [18:40:13]RAPDU: 90 00 [18:40:13]wFMCommunicate OK [18:40:13]SAM_PROTO_ClearQueue done [18:40:13]KKMCreateOFDPacket [18:40:13]OFDProtocolAddRootSTLVToBuf [18:40:13]FM_MakeSignedData [18:40:13]FM_MakeSignedData [18:40:13]SAM_PROTO_SignData [18:40:13]wFMCommunicate request_size=4 [18:40:13]MH_SAM_APDU [18:40:13]CAPDU: 80 0D 01 02 [18:40:13]Write to MH i2c: E2 08 00 64 05 80 0D 01 02 00 00 00 00 E2 [18:40:13]Write i2c OK [18:40:13]MH_I2C_Read... [18:40:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:40:13]Read from MH i2c: E2 [18:40:13]MH_I2C_Read... [18:40:13]Read from MH i2c: E2 03 00 [18:40:13]MH_I2C_Read... [18:40:13]Read from MH i2c: E2 03 00 64 05 00 90 00 DD [18:40:13]RAPDU: 90 00 [18:40:13]wFMCommunicate OK [18:40:13]wFMCommunicate request_size=255 [18:40:13]MH_SAM_APDU [18:40:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 56 01 00 00 F4 03 04 00 8C 4E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 79 0F 01 00 35 04 06 00 52 [18:40:13]Write to MH i2c: E2 02 01 65 05 80 0D 02 02 FA 00 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 56 01 00 00 F4 03 04 00 8C 4E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 79 0F 01 00 35 04 06 00 52 00 00 FD [18:40:13]Write i2c OK [18:40:13]MH_I2C_Read... [18:40:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:13]Read from MH i2c: E2 [18:40:13]MH_I2C_Read... [18:40:13]Read from MH i2c: E2 03 00 [18:40:13]MH_I2C_Read... [18:40:13]Read from MH i2c: E2 03 00 65 05 00 90 00 DE [18:40:13]RAPDU: 90 00 [18:40:13]wFMCommunicate OK [18:40:13]wFMCommunicate request_size=10 [18:40:13]MH_SAM_APDU [18:40:13]CAPDU: 80 0D 02 02 05 02 AA BF 22 44 [18:40:13]Write to MH i2c: E2 0D 00 66 05 80 0D 02 02 05 00 02 AA BF 22 44 00 00 C0 [18:40:13]Write i2c OK [18:40:13]MH_I2C_Read... [18:40:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:13]Read from MH i2c: E2 [18:40:13]MH_I2C_Read... [18:40:13]Read from MH i2c: E2 03 00 [18:40:13]MH_I2C_Read... [18:40:13]Read from MH i2c: E2 03 00 66 05 00 90 00 DF [18:40:13]RAPDU: 90 00 [18:40:13]wFMCommunicate OK [18:40:13]wFMCommunicate request_size=4 [18:40:13]MH_SAM_APDU [18:40:13]CAPDU: 80 0D 03 02 [18:40:13]Write to MH i2c: E2 08 00 67 05 80 0D 03 02 00 00 00 00 E7 [18:40:13]Write i2c OK [18:40:13]MH_I2C_Read... [18:40:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:40:13]Read from MH i2c: E2 [18:40:13]MH_I2C_Read... [18:40:13]Read from MH i2c: E2 0B 00 [18:40:13]MH_I2C_Read... [18:40:14]Read from MH i2c: E2 0B 00 67 05 00 D6 01 92 72 C6 7E A2 5C 90 00 05 [18:40:14]RAPDU: D6 01 92 72 C6 7E A2 5C 90 00 [18:40:14]wFMCommunicate OK [18:40:14]SAM_PROTO_SignData done [18:40:14]FM_MakeSignedData done [18:40:14]CreateOFDProtocolMessage [18:40:14]wFMCommunicate request_size=4 [18:40:14]MH_SAM_APDU [18:40:14]CAPDU: 80 11 00 00 [18:40:14]Write to MH i2c: E2 08 00 68 05 80 11 00 00 00 00 00 00 E7 [18:40:14]Write i2c OK [18:40:14]MH_I2C_Read... [18:40:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:14]Read from MH i2c: E2 [18:40:14]MH_I2C_Read... [18:40:14]Read from MH i2c: E2 17 00 [18:40:14]MH_I2C_Read... [18:40:14]Read from MH i2c: E2 17 00 68 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 39 [18:40:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:40:14]wFMCommunicate OK [18:40:14]CreateOFDProtocolMessage done [18:40:14]OFDSenderStorePacket 69497 [18:40:14]StoreOFDPacket docnum=69497 [18:40:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C2 CF 07 01 A7 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 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 56 01 00 00 F4 03 04 00 8C 4E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 79 0F 01 00 35 04 06 00 52 02 AA BF 22 44 D6 01 92 72 C6 7E A2 5C [18:40:14]CheckFolder [18:40:14]dirname=/storage/ofd_packets [18:40:14]CheckFolder done [18:40:14]ProducePacketName [18:40:14]name=ofd_packets/00069497 [18:40:14]NVStorageSaveData ofd_packets/00069497 [18:40:14]File name is /storage/ofd_packets/00069497 [18:40:14]Write 301 bytes [18:40:14]NVStorageSaveData done [18:40:14]OFDSenderStorePacket done [18:40:14]KKMCreateOFDPacket done [18:40:14]NVStorageSaveData kkm_last_timestamp [18:40:14]File name is /storage/kkm_last_timestamp [18:40:14]Write 4 bytes [18:40:14]NVStorageSaveData done [18:40:14]ExternCall_PrintAddStr [18:40:14]wPrintStart [18:40:14]Write to MH i2c: 01 00 00 69 05 6E [18:40:14]Write i2c OK [18:40:14]MH_I2C_Read... [18:40:14]Read from MH i2c: 01 [18:40:14]MH_I2C_Read... [18:40:14]Read from MH i2c: 01 07 00 [18:40:14]MH_I2C_Read... [18:40:14]Read from MH i2c: 01 07 00 69 05 00 00 00 00 00 FF 0F 83 [18:40:14]RasterBufferAndPrint [18:40:14]line Счет N : (1)2885233 [18:40:14]line ИНН: 02508201610067 [18:40:14]line Контрольно-Кассовый Чек [18:40:14]line ПРОДАЖА [18:40:14]line ТРК (МРК, ГНК) : 23 [18:40:14]line Товар: 2710124500 [18:40:14]line Аи-95-К-5 [18:40:14]line 13.480 * 74.20 [18:40:14]line = 1000.22 [18:40:14]line НДС 12% НСП 1% [18:40:14]line > о реализуемом товаре [18:40:14]line ИТОГО: 1000.22 [18:40:14]line НСП 1% : 8.85 [18:40:14]line НДС 12% : 106.22 [18:40:14]line Наличными: 0.00 [18:40:14]line Безнал.: 1000.22 [18:40:14]line Место: АЗС № 85 "Партнер Нефть" [18:40:14]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:40:14]line СНО: Общий режим [18:40:14]line Чек 342 20.10.2024 18:40 [18:40:14]line Смена: 193 ФФД: 1.0 [18:40:14]line ЗНМ: 0300000167 [18:40:14]line РНМ: 0000000000156251 [18:40:14]line Версия ККМ: v1.0 [18:40:14]line Платежная система: Mbank [18:40:14]line ФМ: 0000000000963346 [18:40:14]line ФД: 69497 [18:40:14]line ФПД: 90171408065092 [18:40:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184012&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69497&fm=90171408065092&tin=02508201610067®Number=0000000000156251&sum=100022 [18:40:14]OFD Sender: Processing packet 69497 [packets to send 18, broken 17] [18:40:14]ProducePacketName [18:40:14]name=ofd_packets/00069497 [18:40:14]OFD Sender: To server: pG, [18:40:14]CommunicateWithHost lk.salyk.kg:30040 [18:40:14]ConnectInit lk.salyk.kg [18:40:14]written 0, free lines is 4095 [18:40:14]Connected sock=10 [18:40:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C2 CF 07 01 A7 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 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 56 01 00 00 F4 03 04 00 8C 4E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 79 0F 01 00 35 04 06 00 52 02 AA BF 22 44 D6 01 92 72 C6 7E A2 5C [18:40:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 45 D8 47 00 58 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 79 0F 01 00 F4 03 04 00 32 F8 14 67 B6 04 01 00 00 39 D5 44 80 5C BB DD 7E [18:40:14]CommunicateWithHost err = 0 [18:40:14]CheckOFDResponse [18:40:14]1017 (14) - 77093643461234 [18:40:14]1041 (16) - 0000000000963346 [18:40:14]1040 (4) - 69497 [18:40:14]1012 (4) - 20.10.2024 12:31 [18:40:14]1206 (1) - 0 [18:40:14]OFD Sender: Remove packet 69497 [18:40:14]ProducePacketName [18:40:14]name=ofd_packets/00069497 [18:40:14]NVStorageDeleteData [18:40:14]Write to MH i2c: 01 00 00 92 05 97 [18:40:14]Write i2c OK [18:40:14]MH_I2C_Read... [18:40:14]Read from MH i2c: 01 [18:40:14]MH_I2C_Read... [18:40:14]Read from MH i2c: 01 07 00 [18:40:14]MH_I2C_Read... [18:40:14]Read from MH i2c: 01 07 00 92 05 00 00 00 00 00 2F 0D DA [18:40:14]RasterBufferAndPrint [18:40:14]line [18:40:14]line [18:40:14]line [18:40:14]line [18:40:14]line [18:40:14]written 0, free lines is 3383 [18:40:14]MH_Cut [18:40:14]Write to MH i2c: D1 01 00 99 05 01 70 [18:40:14]Write i2c OK [18:40:14]MH_I2C_Read... [18:40:14]Read from MH i2c: D1 [18:40:14]MH_I2C_Read... [18:40:14]Read from MH i2c: D1 01 00 [18:40:14]MH_I2C_Read... [18:40:14]Read from MH i2c: D1 01 00 99 05 00 6F [18:40:14]Write to MH i2c: 01 00 00 9A 05 9F [18:40:14]Write i2c OK [18:40:14]MH_I2C_Read... [18:40:15]OFD Sender: No OFD packet to send [18:40:15]*** Cut start [18:40:15]*** Partial cut [18:40:15]*** CUTSNS_PIN = 1 [18:40:15]*** CUTSNS_PIN = 0 [18:40:15]*** Brake cut motor [18:40:16]Read from MH i2c: 01 [18:40:16]MH_I2C_Read... [18:40:16]*** Stop cut motor [18:40:16]*** Cut end [18:40:16]Read from MH i2c: 01 07 00 [18:40:16]MH_I2C_Read... [18:40:16]Read from MH i2c: 01 07 00 9A 05 00 00 00 00 00 FF 0F B4 [18:40:16]process_action close_receipt done [18:40:16]requested_data is exist [18:40:16]produce_requested_data [18:40:16]requested_item fm.sn is exist - process it [18:40:16]wFMCommunicate request_size=4 [18:40:16]MH_SAM_APDU [18:40:16]CAPDU: 80 11 00 00 [18:40:16]Write to MH i2c: E2 08 00 9B 05 80 11 00 00 00 00 00 00 1A [18:40:16]Write i2c OK [18:40:16]MH_I2C_Read... [18:40:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:16]Read from MH i2c: E2 [18:40:16]MH_I2C_Read... [18:40:16]Read from MH i2c: E2 17 00 [18:40:16]MH_I2C_Read... [18:40:16]Read from MH i2c: E2 17 00 9B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6C [18:40:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:40:16]wFMCommunicate OK [18:40:16]requested_item fd.num is exist - process it [18:40:16]SAM_PROTO_GetFieldsCounters [18:40:16]wFMCommunicate request_size=4 [18:40:16]MH_SAM_APDU [18:40:16]CAPDU: 80 13 00 00 [18:40:16]Write to MH i2c: E2 08 00 9C 05 80 13 00 00 00 00 00 00 1D [18:40:16]Write i2c OK [18:40:16]MH_I2C_Read... [18:40:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:40:16]Read from MH i2c: E2 [18:40:16]MH_I2C_Read... [18:40:16]Read from MH i2c: E2 62 00 [18:40:16]MH_I2C_Read... [18:40:16]Read from MH i2c: E2 62 00 9C 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 79 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 87 [18:40:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 79 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:40:16]wFMCommunicate OK [18:40:16]SAM_PROTO_GetFieldsCounters done [18:40:16]requested_item shift.num is exist - process it [18:40:16]requested_item shift.opened is exist - process it [18:40:16]req_shift_opened [18:40:16]FM_GetShiftState [18:40:16]SAM_PROTO_GetShiftState [18:40:16]wFMCommunicate request_size=4 [18:40:16]MH_SAM_APDU [18:40:16]CAPDU: 80 13 01 00 [18:40:16]Write to MH i2c: E2 08 00 9D 05 80 13 01 00 00 00 00 00 1F [18:40:16]Write i2c OK [18:40:16]MH_I2C_Read... [18:40:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:16]Read from MH i2c: E2 [18:40:16]MH_I2C_Read... [18:40:16]Read from MH i2c: E2 0E 00 [18:40:16]MH_I2C_Read... [18:40:16]Read from MH i2c: E2 0E 00 9D 05 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 25 [18:40:16]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:40:16]wFMCommunicate OK [18:40:16]SAM_PROTO_GetShiftState done [18:40:16]FM_GetShiftState done [18:40:16]req_shift_opened done [18:40:16]requested_item shift.open_date is exist - process it [18:40:16]req_shift_open_date [18:40:16]req_shift_open_date done [18:40:16]produce_requested_data done [18:40:16]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69497,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [18:40:16]process_action_free close_receipt [18:40:16]json_value_free [18:40:16]json_value_free done [18:40:16]process_json_proto returns [18:40:16]Send response to host [18:40:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69497,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [18:40:16]free response buf [18:40:16]execute_script done [18:40:16]execute_script returns [18:40:16]free content buf [18:40:16]Sock 7.Close socket [18:40:16]Sock 7.Thread stoped [18:40:20]OFD Sender: No OFD packet to send [18:40:25]OFD Sender: No OFD packet to send [18:40:30]OFD Sender: No OFD packet to send [18:40:35]OFD Sender: No OFD packet to send [18:40:40]OFD Sender: No OFD packet to send [18:40:45]OFD Sender: No OFD packet to send [18:40:50]OFD Sender: No OFD packet to send [18:40:55]OFD Sender: No OFD packet to send [18:41:00]OFD Sender: No OFD packet to send [18:41:05]OFD Sender: No OFD packet to send [18:41:10]OFD Sender: No OFD packet to send [18:41:15]OFD Sender: No OFD packet to send [18:41:20]OFD Sender: No OFD packet to send [18:41:25]OFD Sender: No OFD packet to send [18:41:27]accept exits with 9 [18:41:27]New connection [18:41:27]New thread 3066654052 created [18:41:27]Thread 3066797412 joined [18:41:27]Waiting for new connection... [18:41:27] Sock 9.Parse request [18:41:27]Sock 9.Check first char [18:41:27]Sock 9.First char is OK [18:41:27]request: POST /json_proto HTTP/1.0 [18:41:27]Method: POST [18:41:27]URL: /json_proto [18:41:27]Method is POST - this is cgi request [18:41:27]url: /json_proto [18:41:27]query_string will be loaded in cgi processing [18:41:27]execute_cgi json_proto POST (null) [18:41:27]execute_cgi path=json_proto method=POST [18:41:27]POST find Content-Length [18:41:27]Host: 172.17.50.3:8080 [18:41:27]Content-Length: 770 [18:41:27]Content-Type: application/json [18:41:27] [18:41:27]POST finish read [18:41:27]Found Content-Length = 770 [18:41:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:41:27]execute_script... [18:41: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)2885234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:41:27]POST & json_proto [18:41:27]process_json_proto [18:41:27]json parsed OK: [18:41:27]protocol is kg_v1.0 [18:41:27]action value=close_receipt [18:41:27]process_action close_receipt [18:41:27]cmd_close_receipt [18:41:27]MH_GetDate [18:41:27]Write to MH i2c: F0 00 00 9E 05 92 [18:41:27]Write i2c OK [18:41:27]MH_I2C_Read... [18:41:27]Read from MH i2c: F0 [18:41:27]MH_I2C_Read... [18:41:27]Read from MH i2c: F0 09 00 [18:41:27]MH_I2C_Read... [18:41:27]Read from MH i2c: F0 09 00 9E 05 00 D8 4E 15 67 6B 98 1E 66 C4 [18:41:27]GetLastDocTimeStamp 1729449612 [18:41:27]current date 1729449688 [18:41:27]FM_GetShiftState [18:41:27]SAM_PROTO_GetShiftState [18:41:27]wFMCommunicate request_size=4 [18:41:27]MH_SAM_APDU [18:41:27]CAPDU: 80 13 01 00 [18:41:27]Write to MH i2c: E2 08 00 9F 05 80 13 01 00 00 00 00 00 21 [18:41:27]Write i2c OK [18:41:27]MH_I2C_Read... [18:41:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:27]Read from MH i2c: E2 [18:41:27]MH_I2C_Read... [18:41:27]Read from MH i2c: E2 0E 00 [18:41:27]MH_I2C_Read... [18:41:27]Read from MH i2c: E2 0E 00 9F 05 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 27 [18:41:27]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:41:27]wFMCommunicate OK [18:41:27]SAM_PROTO_GetShiftState done [18:41:27]FM_GetShiftState done [18:41:27]opened in 1729383220 [18:41:27]opened+sec_in_day 1729469620 [18:41:27]quantity*price = 100021 [18:41:27]sum+1 = 100023 [18:41:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 343 20.10.2024 18:41 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69498 ФПД: 121175607950939 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184128&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69498&fm=121175607950939&tin=02508201610067®Number=0000000000156251&sum=100022 [18:41:28]StoreToDocumentArchive [18:41:28]shift 193 fd 69498 [18:41:28]save to /storage/0193/doc_00069498 [18:41:28]save last doc name /storage/0193/doc_00069498 to /storage/kkm_last_doc_name [18:41:28]save OK [18:41:28]Clear old archive folders... [18:41:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:41:28]tlvbuf is 00F45A50 [18:41:28]SAM_PROTO_ClearQueue [18:41:28]wFMCommunicate request_size=4 [18:41:28]MH_SAM_APDU [18:41:28]CAPDU: 80 09 00 00 [18:41:28]Write to MH i2c: E2 08 00 AC 05 80 09 00 00 00 00 00 00 23 [18:41:28]Write i2c OK [18:41:28]MH_I2C_Read... [18:41:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:41:28]Read from MH i2c: E2 [18:41:28]MH_I2C_Read... [18:41:28]Read from MH i2c: E2 03 00 [18:41:28]MH_I2C_Read... [18:41:28]Read from MH i2c: E2 03 00 AC 05 00 90 00 25 [18:41:28]RAPDU: 90 00 [18:41:28]wFMCommunicate OK [18:41:28]SAM_PROTO_ClearQueue done [18:41:28]KKMCreateOFDPacket [18:41:28]OFDProtocolAddRootSTLVToBuf [18:41:28]FM_MakeSignedData [18:41:28]FM_MakeSignedData [18:41:28]SAM_PROTO_SignData [18:41:28]wFMCommunicate request_size=4 [18:41:28]MH_SAM_APDU [18:41:28]CAPDU: 80 0D 01 02 [18:41:28]Write to MH i2c: E2 08 00 AD 05 80 0D 01 02 00 00 00 00 2B [18:41:28]Write i2c OK [18:41:28]MH_I2C_Read... [18:41:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:41:29]Read from MH i2c: E2 [18:41:29]MH_I2C_Read... [18:41:29]Read from MH i2c: E2 03 00 [18:41:29]MH_I2C_Read... [18:41:29]Read from MH i2c: E2 03 00 AD 05 00 90 00 26 [18:41:29]RAPDU: 90 00 [18:41:29]wFMCommunicate OK [18:41:29]wFMCommunicate request_size=255 [18:41:29]MH_SAM_APDU [18:41:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 57 01 00 00 F4 03 04 00 D8 4E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7A 0F 01 00 35 04 06 00 6E [18:41:29]Write to MH i2c: E2 02 01 AE 05 80 0D 02 02 FA 00 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 57 01 00 00 F4 03 04 00 D8 4E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7A 0F 01 00 35 04 06 00 6E 00 00 B0 [18:41:29]Write i2c OK [18:41:29]MH_I2C_Read... [18:41:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:29]Read from MH i2c: E2 [18:41:29]MH_I2C_Read... [18:41:29]Read from MH i2c: E2 03 00 [18:41:29]MH_I2C_Read... [18:41:29]Read from MH i2c: E2 03 00 AE 05 00 90 00 27 [18:41:29]RAPDU: 90 00 [18:41:29]wFMCommunicate OK [18:41:29]wFMCommunicate request_size=10 [18:41:29]MH_SAM_APDU [18:41:29]CAPDU: 80 0D 02 02 05 35 65 11 3E 5B [18:41:29]Write to MH i2c: E2 0D 00 AF 05 80 0D 02 02 05 00 35 65 11 3E 5B 00 00 7C [18:41:29]Write i2c OK [18:41:29]MH_I2C_Read... [18:41:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:29]Read from MH i2c: E2 [18:41:29]MH_I2C_Read... [18:41:29]Read from MH i2c: E2 03 00 [18:41:29]MH_I2C_Read... [18:41:29]Read from MH i2c: E2 03 00 AF 05 00 90 00 28 [18:41:29]RAPDU: 90 00 [18:41:29]wFMCommunicate OK [18:41:29]wFMCommunicate request_size=4 [18:41:29]MH_SAM_APDU [18:41:29]CAPDU: 80 0D 03 02 [18:41:29]Write to MH i2c: E2 08 00 B0 05 80 0D 03 02 00 00 00 00 30 [18:41:29]Write i2c OK [18:41:29]MH_I2C_Read... [18:41:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:41:29]Read from MH i2c: E2 [18:41:29]MH_I2C_Read... [18:41:29]Read from MH i2c: E2 0B 00 [18:41:29]MH_I2C_Read... [18:41:29]Read from MH i2c: E2 0B 00 B0 05 00 E5 18 F4 DF 0D 80 F8 17 90 00 9D [18:41:29]RAPDU: E5 18 F4 DF 0D 80 F8 17 90 00 [18:41:29]wFMCommunicate OK [18:41:29]SAM_PROTO_SignData done [18:41:29]FM_MakeSignedData done [18:41:29]CreateOFDProtocolMessage [18:41:29]wFMCommunicate request_size=4 [18:41:29]MH_SAM_APDU [18:41:29]CAPDU: 80 11 00 00 [18:41:29]Write to MH i2c: E2 08 00 B1 05 80 11 00 00 00 00 00 00 30 [18:41:29]Write i2c OK [18:41:29]MH_I2C_Read... [18:41:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:29]Read from MH i2c: E2 [18:41:29]MH_I2C_Read... [18:41:29]Read from MH i2c: E2 17 00 [18:41:29]MH_I2C_Read... [18:41:29]Read from MH i2c: E2 17 00 B1 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 82 [18:41:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:41:29]wFMCommunicate OK [18:41:29]CreateOFDProtocolMessage done [18:41:29]OFDSenderStorePacket 69498 [18:41:29]StoreOFDPacket docnum=69498 [18:41:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 E9 71 07 01 86 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 57 01 00 00 F4 03 04 00 D8 4E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7A 0F 01 00 35 04 06 00 6E 35 65 11 3E 5B E5 18 F4 DF 0D 80 F8 17 [18:41:29]CheckFolder [18:41:29]dirname=/storage/ofd_packets [18:41:29]CheckFolder done [18:41:29]ProducePacketName [18:41:29]name=ofd_packets/00069498 [18:41:29]NVStorageSaveData ofd_packets/00069498 [18:41:29]File name is /storage/ofd_packets/00069498 [18:41:29]Write 301 bytes [18:41:29]NVStorageSaveData done [18:41:29]OFDSenderStorePacket done [18:41:29]KKMCreateOFDPacket done [18:41:29]NVStorageSaveData kkm_last_timestamp [18:41:29]File name is /storage/kkm_last_timestamp [18:41:29]Write 4 bytes [18:41:29]NVStorageSaveData done [18:41:29]ExternCall_PrintAddStr [18:41:29]wPrintStart [18:41:29]Write to MH i2c: 01 00 00 B2 05 B7 [18:41:29]Write i2c OK [18:41:29]MH_I2C_Read... [18:41:29]Read from MH i2c: 01 [18:41:29]MH_I2C_Read... [18:41:29]Read from MH i2c: 01 07 00 [18:41:29]MH_I2C_Read... [18:41:29]Read from MH i2c: 01 07 00 B2 05 00 00 00 00 00 FF 0F CC [18:41:29]RasterBufferAndPrint [18:41:29]line Счет N : (1)2885234 [18:41:29]line ИНН: 02508201610067 [18:41:29]line Контрольно-Кассовый Чек [18:41:29]line ПРОДАЖА [18:41:29]line ТРК (МРК, ГНК) : 13 [18:41:29]line Товар: 2710124500 [18:41:29]line Аи-95-К-5 [18:41:29]line 13.480 * 74.20 [18:41:29]line = 1000.22 [18:41:29]line НДС 12% НСП 1% [18:41:29]line > о реализуемом товаре [18:41:29]line ИТОГО: 1000.22 [18:41:29]line НСП 1% : 8.85 [18:41:29]line НДС 12% : 106.22 [18:41:29]line Наличными: 0.00 [18:41:29]line Безнал.: 1000.22 [18:41:29]line Место: АЗС № 85 "Партнер Нефть" [18:41:29]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:41:29]line СНО: Общий режим [18:41:29]line Чек 343 20.10.2024 18:41 [18:41:29]line Смена: 193 ФФД: 1.0 [18:41:29]line ЗНМ: 0300000167 [18:41:29]line РНМ: 0000000000156251 [18:41:29]line Версия ККМ: v1.0 [18:41:29]line Платежная система: Mbank [18:41:29]line ФМ: 0000000000963346 [18:41:29]line ФД: 69498 [18:41:29]line ФПД: 121175607950939 [18:41:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184128&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69498&fm=121175607950939&tin=02508201610067®Number=0000000000156251&sum=100022 [18:41:29]OFD Sender: Processing packet 69498 [packets to send 18, broken 17] [18:41:29]ProducePacketName [18:41:29]name=ofd_packets/00069498 [18:41:29]OFD Sender: To server: pG, [18:41:29]CommunicateWithHost lk.salyk.kg:30040 [18:41:29]ConnectInit lk.salyk.kg [18:41:29]written 0, free lines is 4095 [18:41:29]Connected sock=10 [18:41:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 E9 71 07 01 86 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 57 01 00 00 F4 03 04 00 D8 4E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7A 0F 01 00 35 04 06 00 6E 35 65 11 3E 5B E5 18 F4 DF 0D 80 F8 17 [18:41:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 EC E2 47 00 7C E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7A 0F 01 00 F4 03 04 00 7E F8 14 67 B6 04 01 00 00 6E EB 83 71 47 63 55 4A [18:41:30]CommunicateWithHost err = 0 [18:41:30]CheckOFDResponse [18:41:30]1017 (14) - 77093643461234 [18:41:30]1041 (16) - 0000000000963346 [18:41:30]1040 (4) - 69498 [18:41:30]1012 (4) - 20.10.2024 12:33 [18:41:30]1206 (1) - 0 [18:41:30]OFD Sender: Remove packet 69498 [18:41:30]ProducePacketName [18:41:30]name=ofd_packets/00069498 [18:41:30]NVStorageDeleteData [18:41:30]Write to MH i2c: 01 00 00 DB 05 E0 [18:41:30]Write i2c OK [18:41:30]MH_I2C_Read... [18:41:30]Read from MH i2c: 01 [18:41:30]MH_I2C_Read... [18:41:30]Read from MH i2c: 01 07 00 [18:41:30]MH_I2C_Read... [18:41:30]Read from MH i2c: 01 07 00 DB 05 00 00 00 00 00 2A 0D 1E [18:41:30]RasterBufferAndPrint [18:41:30]line [18:41:30]line [18:41:30]line [18:41:30]line [18:41:30]line [18:41:30]written 0, free lines is 3376 [18:41:30]MH_Cut [18:41:30]Write to MH i2c: D1 01 00 E2 05 01 B9 [18:41:30]Write i2c OK [18:41:30]MH_I2C_Read... [18:41:30]Read from MH i2c: D1 [18:41:30]MH_I2C_Read... [18:41:30]Read from MH i2c: D1 01 00 [18:41:30]MH_I2C_Read... [18:41:30]Read from MH i2c: D1 01 00 E2 05 00 B8 [18:41:30]Write to MH i2c: 01 00 00 E3 05 E8 [18:41:30]Write i2c OK [18:41:30]MH_I2C_Read... [18:41:30]OFD Sender: No OFD packet to send [18:41:30]*** Cut start [18:41:30]*** Partial cut [18:41:30]*** CUTSNS_PIN = 1 [18:41:30]*** CUTSNS_PIN = 0 [18:41:31]*** Brake cut motor [18:41:31]Read from MH i2c: 01 [18:41:31]MH_I2C_Read... [18:41:31]*** Stop cut motor [18:41:31]*** Cut end [18:41:31]Read from MH i2c: 01 07 00 [18:41:31]MH_I2C_Read... [18:41:31]Read from MH i2c: 01 07 00 E3 05 00 00 00 00 00 FF 0F FD [18:41:31]process_action close_receipt done [18:41:31]requested_data is exist [18:41:31]produce_requested_data [18:41:31]requested_item fm.sn is exist - process it [18:41:31]wFMCommunicate request_size=4 [18:41:31]MH_SAM_APDU [18:41:31]CAPDU: 80 11 00 00 [18:41:31]Write to MH i2c: E2 08 00 E4 05 80 11 00 00 00 00 00 00 63 [18:41:31]Write i2c OK [18:41:31]MH_I2C_Read... [18:41:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:31]Read from MH i2c: E2 [18:41:31]MH_I2C_Read... [18:41:31]Read from MH i2c: E2 17 00 [18:41:31]MH_I2C_Read... [18:41:31]Read from MH i2c: E2 17 00 E4 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B5 [18:41:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:41:31]wFMCommunicate OK [18:41:31]requested_item fd.num is exist - process it [18:41:31]SAM_PROTO_GetFieldsCounters [18:41:31]wFMCommunicate request_size=4 [18:41:31]MH_SAM_APDU [18:41:31]CAPDU: 80 13 00 00 [18:41:31]Write to MH i2c: E2 08 00 E5 05 80 13 00 00 00 00 00 00 66 [18:41:31]Write i2c OK [18:41:31]MH_I2C_Read... [18:41:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:41:31]Read from MH i2c: E2 [18:41:31]MH_I2C_Read... [18:41:31]Read from MH i2c: E2 62 00 [18:41:31]MH_I2C_Read... [18:41:31]Read from MH i2c: E2 62 00 E5 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7A 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 D4 [18:41:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7A 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:41:31]wFMCommunicate OK [18:41:31]SAM_PROTO_GetFieldsCounters done [18:41:31]requested_item shift.num is exist - process it [18:41:31]requested_item shift.opened is exist - process it [18:41:31]req_shift_opened [18:41:31]FM_GetShiftState [18:41:31]SAM_PROTO_GetShiftState [18:41:31]wFMCommunicate request_size=4 [18:41:31]MH_SAM_APDU [18:41:31]CAPDU: 80 13 01 00 [18:41:31]Write to MH i2c: E2 08 00 E6 05 80 13 01 00 00 00 00 00 68 [18:41:31]Write i2c OK [18:41:31]MH_I2C_Read... [18:41:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:31]Read from MH i2c: E2 [18:41:31]MH_I2C_Read... [18:41:31]Read from MH i2c: E2 0E 00 [18:41:31]MH_I2C_Read... [18:41:31]Read from MH i2c: E2 0E 00 E6 05 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 6E [18:41:31]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:41:31]wFMCommunicate OK [18:41:31]SAM_PROTO_GetShiftState done [18:41:31]FM_GetShiftState done [18:41:31]req_shift_opened done [18:41:31]requested_item shift.open_date is exist - process it [18:41:31]req_shift_open_date [18:41:31]req_shift_open_date done [18:41:31]produce_requested_data done [18:41:31]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69498,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [18:41:31]process_action_free close_receipt [18:41:31]json_value_free [18:41:31]json_value_free done [18:41:31]process_json_proto returns [18:41:31]Send response to host [18:41:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69498,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [18:41:31]free response buf [18:41:31]execute_script done [18:41:31]execute_script returns [18:41:31]free content buf [18:41:31]Sock 9.Close socket [18:41:31]Sock 9.Thread stoped [18:41:35]OFD Sender: No OFD packet to send [18:41:40]OFD Sender: No OFD packet to send [18:41:45]OFD Sender: No OFD packet to send [18:41:50]OFD Sender: No OFD packet to send [18:41:55]OFD Sender: No OFD packet to send [18:42:00]OFD Sender: No OFD packet to send [18:42:05]OFD Sender: No OFD packet to send [18:42:10]OFD Sender: No OFD packet to send [18:42:15]OFD Sender: No OFD packet to send [18:42:20]OFD Sender: No OFD packet to send [18:42:25]OFD Sender: No OFD packet to send [18:42:30]OFD Sender: No OFD packet to send [18:42:35]OFD Sender: No OFD packet to send [18:42:40]OFD Sender: No OFD packet to send [18:42:45]OFD Sender: No OFD packet to send [18:42:50]OFD Sender: No OFD packet to send [18:42:55]OFD Sender: No OFD packet to send [18:43:00]OFD Sender: No OFD packet to send [18:43:02]accept exits with 7 [18:43:02]New connection [18:43:02]New thread 3066797412 created [18:43:02]Thread 3066654052 joined [18:43:02]Waiting for new connection... [18:43:02] Sock 7.Parse request [18:43:02]Sock 7.Check first char [18:43:02]Sock 7.First char is OK [18:43:02]request: POST /json_proto HTTP/1.0 [18:43:02]Method: POST [18:43:02]URL: /json_proto [18:43:02]Method is POST - this is cgi request [18:43:02]url: /json_proto [18:43:02]query_string will be loaded in cgi processing [18:43:02]execute_cgi json_proto POST (null) [18:43:02]execute_cgi path=json_proto method=POST [18:43:02]POST find Content-Length [18:43:02]Host: 172.17.50.3:8080 [18:43:02]Content-Length: 678 [18:43:02]Content-Type: application/json [18:43:02] [18:43:02]POST finish read [18:43:02]Found Content-Length = 678 [18:43:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:02]execute_script... [18:43: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)2885235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:02]POST & json_proto [18:43:02]process_json_proto [18:43:02]json parsed OK: [18:43:02]protocol is kg_v1.0 [18:43:02]action value=close_receipt [18:43:02]process_action close_receipt [18:43:02]cmd_close_receipt [18:43:02]MH_GetDate [18:43:02]Write to MH i2c: F0 00 00 E7 05 DB [18:43:02]Write i2c OK [18:43:02]MH_I2C_Read... [18:43:02]Read from MH i2c: F0 [18:43:02]MH_I2C_Read... [18:43:02]Read from MH i2c: F0 09 00 [18:43:02]MH_I2C_Read... [18:43:02]Read from MH i2c: F0 09 00 E7 05 00 36 4F 15 67 6B 98 1E 66 6C [18:43:02]GetLastDocTimeStamp 1729449688 [18:43:02]current date 1729449782 [18:43:02]FM_GetShiftState [18:43:02]SAM_PROTO_GetShiftState [18:43:02]wFMCommunicate request_size=4 [18:43:02]MH_SAM_APDU [18:43:02]CAPDU: 80 13 01 00 [18:43:02]Write to MH i2c: E2 08 00 E8 05 80 13 01 00 00 00 00 00 6A [18:43:02]Write i2c OK [18:43:02]MH_I2C_Read... [18:43:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:02]Read from MH i2c: E2 [18:43:02]MH_I2C_Read... [18:43:02]Read from MH i2c: E2 0E 00 [18:43:02]MH_I2C_Read... [18:43:02]Read from MH i2c: E2 0E 00 E8 05 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 70 [18:43:02]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:43:02]wFMCommunicate OK [18:43:02]SAM_PROTO_GetShiftState done [18:43:02]FM_GetShiftState done [18:43:02]opened in 1729383220 [18:43:02]opened+sec_in_day 1729469620 [18:43:02]quantity*price = 50041 [18:43:02]sum+1 = 50042 [18:43:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 344 20.10.2024 18:43 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69499 ФПД: 202437467300422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184302&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69499&fm=202437467300422&tin=02508201610067®Number=0000000000156251&sum=50000 [18:43:03]StoreToDocumentArchive [18:43:03]shift 193 fd 69499 [18:43:03]save to /storage/0193/doc_00069499 [18:43:03]save last doc name /storage/0193/doc_00069499 to /storage/kkm_last_doc_name [18:43:03]save OK [18:43:03]Clear old archive folders... [18:43:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:43:03]tlvbuf is 00F32950 [18:43:03]SAM_PROTO_ClearQueue [18:43:03]wFMCommunicate request_size=4 [18:43:03]MH_SAM_APDU [18:43:03]CAPDU: 80 09 00 00 [18:43:03]Write to MH i2c: E2 08 00 F5 05 80 09 00 00 00 00 00 00 6C [18:43:03]Write i2c OK [18:43:03]MH_I2C_Read... [18:43:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:43:03]Read from MH i2c: E2 [18:43:03]MH_I2C_Read... [18:43:03]Read from MH i2c: E2 03 00 [18:43:03]MH_I2C_Read... [18:43:03]Read from MH i2c: E2 03 00 F5 05 00 90 00 6E [18:43:03]RAPDU: 90 00 [18:43:03]wFMCommunicate OK [18:43:03]SAM_PROTO_ClearQueue done [18:43:03]KKMCreateOFDPacket [18:43:03]OFDProtocolAddRootSTLVToBuf [18:43:03]FM_MakeSignedData [18:43:03]FM_MakeSignedData [18:43:03]SAM_PROTO_SignData [18:43:03]wFMCommunicate request_size=4 [18:43:03]MH_SAM_APDU [18:43:03]CAPDU: 80 0D 01 02 [18:43:03]Write to MH i2c: E2 08 00 F6 05 80 0D 01 02 00 00 00 00 74 [18:43:03]Write i2c OK [18:43:03]MH_I2C_Read... [18:43:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:43:03]Read from MH i2c: E2 [18:43:03]MH_I2C_Read... [18:43:03]Read from MH i2c: E2 03 00 [18:43:03]MH_I2C_Read... [18:43:03]Read from MH i2c: E2 03 00 F6 05 00 90 00 6F [18:43:03]RAPDU: 90 00 [18:43:03]wFMCommunicate OK [18:43:03]wFMCommunicate request_size=255 [18:43:03]MH_SAM_APDU [18:43: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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 36 4F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7B 0F 01 00 35 04 06 00 B8 [18:43:03]Write to MH i2c: E2 02 01 F7 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 36 4F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7B 0F 01 00 35 04 06 00 B8 00 00 5B [18:43:03]Write i2c OK [18:43:03]MH_I2C_Read... [18:43:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:03]Read from MH i2c: E2 [18:43:03]MH_I2C_Read... [18:43:03]Read from MH i2c: E2 03 00 [18:43:03]MH_I2C_Read... [18:43:03]Read from MH i2c: E2 03 00 F7 05 00 90 00 70 [18:43:03]RAPDU: 90 00 [18:43:03]wFMCommunicate OK [18:43:03]wFMCommunicate request_size=10 [18:43:03]MH_SAM_APDU [18:43:03]CAPDU: 80 0D 02 02 05 1D A5 53 E2 46 [18:43:03]Write to MH i2c: E2 0D 00 F8 05 80 0D 02 02 05 00 1D A5 53 E2 46 00 00 BE [18:43:03]Write i2c OK [18:43:03]MH_I2C_Read... [18:43:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:03]Read from MH i2c: E2 [18:43:03]MH_I2C_Read... [18:43:03]Read from MH i2c: E2 03 00 [18:43:03]MH_I2C_Read... [18:43:03]Read from MH i2c: E2 03 00 F8 05 00 90 00 71 [18:43:03]RAPDU: 90 00 [18:43:03]wFMCommunicate OK [18:43:03]wFMCommunicate request_size=4 [18:43:03]MH_SAM_APDU [18:43:03]CAPDU: 80 0D 03 02 [18:43:03]Write to MH i2c: E2 08 00 F9 05 80 0D 03 02 00 00 00 00 79 [18:43:03]Write i2c OK [18:43:03]MH_I2C_Read... [18:43:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:43:03]Read from MH i2c: E2 [18:43:03]MH_I2C_Read... [18:43:03]Read from MH i2c: E2 0B 00 [18:43:03]MH_I2C_Read... [18:43:03]Read from MH i2c: E2 0B 00 F9 05 00 14 DB F7 0A 53 6E 78 C5 90 00 68 [18:43:03]RAPDU: 14 DB F7 0A 53 6E 78 C5 90 00 [18:43:03]wFMCommunicate OK [18:43:03]SAM_PROTO_SignData done [18:43:03]FM_MakeSignedData done [18:43:03]CreateOFDProtocolMessage [18:43:03]wFMCommunicate request_size=4 [18:43:03]MH_SAM_APDU [18:43:03]CAPDU: 80 11 00 00 [18:43:03]Write to MH i2c: E2 08 00 FA 05 80 11 00 00 00 00 00 00 79 [18:43:03]Write i2c OK [18:43:03]MH_I2C_Read... [18:43:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:03]Read from MH i2c: E2 [18:43:03]MH_I2C_Read... [18:43:03]Read from MH i2c: E2 17 00 [18:43:03]MH_I2C_Read... [18:43:03]Read from MH i2c: E2 17 00 FA 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CB [18:43:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:43:03]wFMCommunicate OK [18:43:03]CreateOFDProtocolMessage done [18:43:03]OFDSenderStorePacket 69499 [18:43:03]StoreOFDPacket docnum=69499 [18:43:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 21 79 07 01 E2 A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 36 4F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7B 0F 01 00 35 04 06 00 B8 1D A5 53 E2 46 14 DB F7 0A 53 6E 78 C5 [18:43:03]CheckFolder [18:43:03]dirname=/storage/ofd_packets [18:43:03]CheckFolder done [18:43:03]ProducePacketName [18:43:03]name=ofd_packets/00069499 [18:43:03]NVStorageSaveData ofd_packets/00069499 [18:43:03]File name is /storage/ofd_packets/00069499 [18:43:03]Write 301 bytes [18:43:03]NVStorageSaveData done [18:43:03]OFDSenderStorePacket done [18:43:03]KKMCreateOFDPacket done [18:43:03]NVStorageSaveData kkm_last_timestamp [18:43:03]File name is /storage/kkm_last_timestamp [18:43:03]Write 4 bytes [18:43:03]NVStorageSaveData done [18:43:03]ExternCall_PrintAddStr [18:43:03]wPrintStart [18:43:03]Write to MH i2c: 01 00 00 FB 05 00 [18:43:03]OFD Sender: Processing packet 69499 [packets to send 18, broken 17] [18:43:03]ProducePacketName [18:43:03]name=ofd_packets/00069499 [18:43:03]OFD Sender: To server: pG, [18:43:03]CommunicateWithHost lk.salyk.kg:30040 [18:43:03]ConnectInit lk.salyk.kg [18:43:03]Write i2c OK [18:43:03]MH_I2C_Read... [18:43:03]Read from MH i2c: 01 [18:43:03]MH_I2C_Read... [18:43:03]Read from MH i2c: 01 07 00 [18:43:03]MH_I2C_Read... [18:43:03]Read from MH i2c: 01 07 00 FB 05 00 00 00 00 00 FF 0F 15 [18:43:03]RasterBufferAndPrint [18:43:03]line Счет N : (1)2885235 [18:43:03]line ИНН: 02508201610067 [18:43:03]line Контрольно-Кассовый Чек [18:43:03]line ПРОДАЖА [18:43:03]line ТРК (МРК, ГНК) : 42 [18:43:03]line Товар: 2710124130 [18:43:03]line Аи-92-К-5 [18:43:03]line 7.480 * 66.90 [18:43:03]line = 500.41 [18:43:03]line НДС 12% НСП 1% [18:43:03]line > о реализуемом товаре [18:43:03]line ОКРУГЛЕНИЕ: -0.41 [18:43:03]line ИТОГО: 500.00 [18:43:03]line Внесено: 500.00 [18:43:03]line СДАЧА: 0.00 [18:43:03]line НСП 1% : 4.43 [18:43:03]line НДС 12% : 53.14 [18:43:03]line Наличными: 500.00 [18:43:03]line Безнал.: 0.00 [18:43:03]line Место: АЗС № 85 "Партнер Нефть" [18:43:03]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:43:03]line СНО: Общий режим [18:43:03]line Чек 344 20.10.2024 18:43 [18:43:03]line Смена: 193 ФФД: 1.0 [18:43:03]line ЗНМ: 0300000167 [18:43:03]line РНМ: 0000000000156251 [18:43:03]line Версия ККМ: v1.0 [18:43:03]line ФМ: 0000000000963346 [18:43:03]line ФД: 69499 [18:43:03]line ФПД: 202437467300422 [18:43:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184302&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69499&fm=202437467300422&tin=02508201610067®Number=0000000000156251&sum=50000 [18:43:04]Connected sock=10 [18:43:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 21 79 07 01 E2 A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 36 4F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7B 0F 01 00 35 04 06 00 B8 1D A5 53 E2 46 14 DB F7 0A 53 6E 78 C5 [18:43:04]written 0, free lines is 4095 [18:43:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 0B A6 47 00 3F 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7B 0F 01 00 F4 03 04 00 DC F8 14 67 B6 04 01 00 00 1E C7 54 AF E6 09 94 15 [18:43:04]CommunicateWithHost err = 0 [18:43:04]CheckOFDResponse [18:43:04]1017 (14) - 77093643461234 [18:43:04]1041 (16) - 0000000000963346 [18:43:04]1040 (4) - 69499 [18:43:04]1012 (4) - 20.10.2024 12:34 [18:43:04]1206 (1) - 0 [18:43:04]OFD Sender: Remove packet 69499 [18:43:04]ProducePacketName [18:43:04]name=ofd_packets/00069499 [18:43:04]NVStorageDeleteData [18:43:04]Write to MH i2c: 01 00 00 26 06 2C [18:43:04]Write i2c OK [18:43:04]MH_I2C_Read... [18:43:04]Read from MH i2c: 01 [18:43:04]MH_I2C_Read... [18:43:04]Read from MH i2c: 01 07 00 [18:43:04]MH_I2C_Read... [18:43:04]Read from MH i2c: 01 07 00 26 06 00 00 00 00 00 F5 0C 34 [18:43:04]RasterBufferAndPrint [18:43:04]line [18:43:04]line [18:43:04]line [18:43:04]line [18:43:04]line [18:43:04]written 0, free lines is 3323 [18:43:04]MH_Cut [18:43:04]Write to MH i2c: D1 01 00 2D 06 01 05 [18:43:04]Write i2c OK [18:43:04]MH_I2C_Read... [18:43:04]Read from MH i2c: D1 [18:43:04]MH_I2C_Read... [18:43:04]Read from MH i2c: D1 01 00 [18:43:04]MH_I2C_Read... [18:43:04]Read from MH i2c: D1 01 00 2D 06 00 04 [18:43:04]Write to MH i2c: 01 00 00 2E 06 34 [18:43:04]Write i2c OK [18:43:04]MH_I2C_Read... [18:43:04]OFD Sender: No OFD packet to send [18:43:05]*** Cut start [18:43:05]*** Partial cut [18:43:05]*** CUTSNS_PIN = 1 [18:43:05]*** CUTSNS_PIN = 0 [18:43:05]*** Brake cut motor [18:43:06]Read from MH i2c: 01 [18:43:06]MH_I2C_Read... [18:43:06]*** Stop cut motor [18:43:06]*** Cut end [18:43:06]Read from MH i2c: 01 07 00 [18:43:06]MH_I2C_Read... [18:43:06]Read from MH i2c: 01 07 00 2E 06 00 00 00 00 00 FF 0F 49 [18:43:06]process_action close_receipt done [18:43:06]requested_data is exist [18:43:06]produce_requested_data [18:43:06]requested_item fm.sn is exist - process it [18:43:06]wFMCommunicate request_size=4 [18:43:06]MH_SAM_APDU [18:43:06]CAPDU: 80 11 00 00 [18:43:06]Write to MH i2c: E2 08 00 2F 06 80 11 00 00 00 00 00 00 AF [18:43:06]Write i2c OK [18:43:06]MH_I2C_Read... [18:43:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:06]Read from MH i2c: E2 [18:43:06]MH_I2C_Read... [18:43:06]Read from MH i2c: E2 17 00 [18:43:06]MH_I2C_Read... [18:43:06]Read from MH i2c: E2 17 00 2F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 01 [18:43:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:43:06]wFMCommunicate OK [18:43:06]requested_item fd.num is exist - process it [18:43:06]SAM_PROTO_GetFieldsCounters [18:43:06]wFMCommunicate request_size=4 [18:43:06]MH_SAM_APDU [18:43:06]CAPDU: 80 13 00 00 [18:43:06]Write to MH i2c: E2 08 00 30 06 80 13 00 00 00 00 00 00 B2 [18:43:06]Write i2c OK [18:43:06]MH_I2C_Read... [18:43:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:43:06]Read from MH i2c: E2 [18:43:06]MH_I2C_Read... [18:43:06]Read from MH i2c: E2 62 00 [18:43:06]MH_I2C_Read... [18:43:06]Read from MH i2c: E2 62 00 30 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7B 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 24 [18:43:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7B 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:43:06]wFMCommunicate OK [18:43:06]SAM_PROTO_GetFieldsCounters done [18:43:06]requested_item shift.num is exist - process it [18:43:06]requested_item shift.opened is exist - process it [18:43:06]req_shift_opened [18:43:06]FM_GetShiftState [18:43:06]SAM_PROTO_GetShiftState [18:43:06]wFMCommunicate request_size=4 [18:43:06]MH_SAM_APDU [18:43:06]CAPDU: 80 13 01 00 [18:43:06]Write to MH i2c: E2 08 00 31 06 80 13 01 00 00 00 00 00 B4 [18:43:06]Write i2c OK [18:43:06]MH_I2C_Read... [18:43:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:06]Read from MH i2c: E2 [18:43:06]MH_I2C_Read... [18:43:06]Read from MH i2c: E2 0E 00 [18:43:06]MH_I2C_Read... [18:43:06]Read from MH i2c: E2 0E 00 31 06 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 BA [18:43:06]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:43:06]wFMCommunicate OK [18:43:06]SAM_PROTO_GetShiftState done [18:43:06]FM_GetShiftState done [18:43:06]req_shift_opened done [18:43:06]requested_item shift.open_date is exist - process it [18:43:06]req_shift_open_date [18:43:06]req_shift_open_date done [18:43:06]produce_requested_data done [18:43:06]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69499,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [18:43:06]process_action_free close_receipt [18:43:06]json_value_free [18:43:06]json_value_free done [18:43:06]process_json_proto returns [18:43:06]Send response to host [18:43:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69499,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [18:43:06]free response buf [18:43:06]execute_script done [18:43:06]execute_script returns [18:43:06]free content buf [18:43:06]Sock 7.Close socket [18:43:06]Sock 7.Thread stoped [18:43:09]OFD Sender: No OFD packet to send [18:43:14]OFD Sender: No OFD packet to send [18:43:19]OFD Sender: No OFD packet to send [18:43:24]OFD Sender: No OFD packet to send [18:43:29]OFD Sender: No OFD packet to send [18:43:34]accept exits with 9 [18:43:34]New connection [18:43:34]New thread 3066654052 created [18:43:34]Thread 3066797412 joined [18:43:34]Waiting for new connection... [18:43:34] Sock 9.Parse request [18:43:34]Sock 9.Check first char [18:43:34]Sock 9.First char is OK [18:43:34]request: POST /json_proto HTTP/1.0 [18:43:34]Method: POST [18:43:34]URL: /json_proto [18:43:34]Method is POST - this is cgi request [18:43:34]url: /json_proto [18:43:34]query_string will be loaded in cgi processing [18:43:34]execute_cgi json_proto POST (null) [18:43:34]execute_cgi path=json_proto method=POST [18:43:34]POST find Content-Length [18:43:34]Host: 172.17.50.3:8080 [18:43:34]Content-Length: 767 [18:43:34]Content-Type: application/json [18:43:34] [18:43:34]POST finish read [18:43:34]Found Content-Length = 767 [18:43:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 600.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:34]execute_script... [18:43:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 600.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:34]POST & json_proto [18:43:34]process_json_proto [18:43:34]json parsed OK: [18:43:34]protocol is kg_v1.0 [18:43:34]action value=close_receipt [18:43:34]process_action close_receipt [18:43:34]cmd_close_receipt [18:43:34]MH_GetDate [18:43:34]Write to MH i2c: F0 00 00 32 06 27 [18:43:34]Write i2c OK [18:43:34]MH_I2C_Read... [18:43:34]Read from MH i2c: F0 [18:43:34]MH_I2C_Read... [18:43:34]Read from MH i2c: F0 09 00 [18:43:34]MH_I2C_Read... [18:43:34]Read from MH i2c: F0 09 00 32 06 00 57 4F 15 67 6B 98 1E 66 D9 [18:43:34]GetLastDocTimeStamp 1729449782 [18:43:34]current date 1729449815 [18:43:34]FM_GetShiftState [18:43:34]SAM_PROTO_GetShiftState [18:43:34]wFMCommunicate request_size=4 [18:43:34]MH_SAM_APDU [18:43:34]CAPDU: 80 13 01 00 [18:43:34]Write to MH i2c: E2 08 00 33 06 80 13 01 00 00 00 00 00 B6 [18:43:34]Write i2c OK [18:43:34]MH_I2C_Read... [18:43:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:34]Read from MH i2c: E2 [18:43:34]MH_I2C_Read... [18:43:34]Read from MH i2c: E2 0E 00 [18:43:34]MH_I2C_Read... [18:43:34]Read from MH i2c: E2 0E 00 33 06 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 BC [18:43:34]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:43:34]wFMCommunicate OK [18:43:34]SAM_PROTO_GetShiftState done [18:43:34]FM_GetShiftState done [18:43:34]opened in 1729383220 [18:43:34]opened+sec_in_day 1729469620 [18:43:34]quantity*price = 60027 [18:43:34]sum+1 = 60029 [18:43:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.28 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 0.00 Безнал.: 600.28 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 345 20.10.2024 18:43 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69500 ФПД: 231360579370264 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184335&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69500&fm=231360579370264&tin=02508201610067®Number=0000000000156251&sum=60028 [18:43:35]StoreToDocumentArchive [18:43:35]shift 193 fd 69500 [18:43:35]save to /storage/0193/doc_00069500 [18:43:35]save last doc name /storage/0193/doc_00069500 to /storage/kkm_last_doc_name [18:43:35]save OK [18:43:35]Clear old archive folders... [18:43:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:43:35]tlvbuf is 00F377A0 [18:43:35]SAM_PROTO_ClearQueue [18:43:35]wFMCommunicate request_size=4 [18:43:35]MH_SAM_APDU [18:43:35]CAPDU: 80 09 00 00 [18:43:35]Write to MH i2c: E2 08 00 40 06 80 09 00 00 00 00 00 00 B8 [18:43:35]Write i2c OK [18:43:35]MH_I2C_Read... [18:43:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:43:36]Read from MH i2c: E2 [18:43:36]MH_I2C_Read... [18:43:36]Read from MH i2c: E2 03 00 [18:43:36]MH_I2C_Read... [18:43:36]Read from MH i2c: E2 03 00 40 06 00 90 00 BA [18:43:36]RAPDU: 90 00 [18:43:36]wFMCommunicate OK [18:43:36]SAM_PROTO_ClearQueue done [18:43:36]KKMCreateOFDPacket [18:43:36]OFDProtocolAddRootSTLVToBuf [18:43:36]FM_MakeSignedData [18:43:36]FM_MakeSignedData [18:43:36]SAM_PROTO_SignData [18:43:36]wFMCommunicate request_size=4 [18:43:36]MH_SAM_APDU [18:43:36]CAPDU: 80 0D 01 02 [18:43:36]Write to MH i2c: E2 08 00 41 06 80 0D 01 02 00 00 00 00 C0 [18:43:36]Write i2c OK [18:43:36]MH_I2C_Read... [18:43:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:43:36]Read from MH i2c: E2 [18:43:36]MH_I2C_Read... [18:43:36]Read from MH i2c: E2 03 00 [18:43:36]MH_I2C_Read... [18:43:36]Read from MH i2c: E2 03 00 41 06 00 90 00 BB [18:43:36]RAPDU: 90 00 [18:43:36]wFMCommunicate OK [18:43:36]wFMCommunicate request_size=255 [18:43:36]MH_SAM_APDU [18:43: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 E7 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 57 4F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7C 0F 01 00 35 04 06 00 D2 [18:43:36]Write to MH i2c: E2 02 01 42 06 80 0D 02 02 FA 00 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 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 E7 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 57 4F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7C 0F 01 00 35 04 06 00 D2 00 00 7A [18:43:36]Write i2c OK [18:43:36]MH_I2C_Read... [18:43:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:36]Read from MH i2c: E2 [18:43:36]MH_I2C_Read... [18:43:36]Read from MH i2c: E2 03 00 [18:43:36]MH_I2C_Read... [18:43:36]Read from MH i2c: E2 03 00 42 06 00 90 00 BC [18:43:36]RAPDU: 90 00 [18:43:36]wFMCommunicate OK [18:43:36]wFMCommunicate request_size=10 [18:43:36]MH_SAM_APDU [18:43:36]CAPDU: 80 0D 02 02 05 6B D5 25 FD 18 [18:43:36]Write to MH i2c: E2 0D 00 43 06 80 0D 02 02 05 00 6B D5 25 FD 18 00 00 47 [18:43:36]Write i2c OK [18:43:36]MH_I2C_Read... [18:43:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:36]Read from MH i2c: E2 [18:43:36]MH_I2C_Read... [18:43:36]Read from MH i2c: E2 03 00 [18:43:36]MH_I2C_Read... [18:43:36]Read from MH i2c: E2 03 00 43 06 00 90 00 BD [18:43:36]RAPDU: 90 00 [18:43:36]wFMCommunicate OK [18:43:36]wFMCommunicate request_size=4 [18:43:36]MH_SAM_APDU [18:43:36]CAPDU: 80 0D 03 02 [18:43:36]Write to MH i2c: E2 08 00 44 06 80 0D 03 02 00 00 00 00 C5 [18:43:36]Write i2c OK [18:43:36]MH_I2C_Read... [18:43:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:43:36]Read from MH i2c: E2 [18:43:36]MH_I2C_Read... [18:43:36]Read from MH i2c: E2 0B 00 [18:43:36]MH_I2C_Read... [18:43:36]Read from MH i2c: E2 0B 00 44 06 00 56 BE 6F 12 41 72 DA 73 90 00 5B [18:43:36]RAPDU: 56 BE 6F 12 41 72 DA 73 90 00 [18:43:36]wFMCommunicate OK [18:43:36]SAM_PROTO_SignData done [18:43:36]FM_MakeSignedData done [18:43:36]CreateOFDProtocolMessage [18:43:36]wFMCommunicate request_size=4 [18:43:36]MH_SAM_APDU [18:43:36]CAPDU: 80 11 00 00 [18:43:36]Write to MH i2c: E2 08 00 45 06 80 11 00 00 00 00 00 00 C5 [18:43:36]Write i2c OK [18:43:36]MH_I2C_Read... [18:43:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:36]Read from MH i2c: E2 [18:43:36]MH_I2C_Read... [18:43:36]Read from MH i2c: E2 17 00 [18:43:36]MH_I2C_Read... [18:43:36]Read from MH i2c: E2 17 00 45 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 17 [18:43:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:43:36]wFMCommunicate OK [18:43:36]CreateOFDProtocolMessage done [18:43:36]OFDSenderStorePacket 69500 [18:43:36]StoreOFDPacket docnum=69500 [18:43:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 DB 04 07 01 B5 75 5A 03 01 00 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 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 E7 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 57 4F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7C 0F 01 00 35 04 06 00 D2 6B D5 25 FD 18 56 BE 6F 12 41 72 DA 73 [18:43:36]CheckFolder [18:43:36]dirname=/storage/ofd_packets [18:43:36]CheckFolder done [18:43:36]ProducePacketName [18:43:36]name=ofd_packets/00069500 [18:43:36]NVStorageSaveData ofd_packets/00069500 [18:43:36]File name is /storage/ofd_packets/00069500 [18:43:36]Write 301 bytes [18:43:36]NVStorageSaveData done [18:43:36]OFDSenderStorePacket done [18:43:36]KKMCreateOFDPacket done [18:43:36]NVStorageSaveData kkm_last_timestamp [18:43:36]File name is /storage/kkm_last_timestamp [18:43:36]Write 4 bytes [18:43:36]NVStorageSaveData done [18:43:36]ExternCall_PrintAddStr [18:43:36]wPrintStart [18:43:36]Write to MH i2c: 01 00 00 46 06 4C [18:43:36]Write i2c OK [18:43:36]MH_I2C_Read... [18:43:36]Read from MH i2c: 01 [18:43:36]MH_I2C_Read... [18:43:36]Read from MH i2c: 01 07 00 [18:43:36]MH_I2C_Read... [18:43:36]Read from MH i2c: 01 07 00 46 06 00 00 00 00 00 FF 0F 61 [18:43:36]RasterBufferAndPrint [18:43:36]line Счет N : (1)2885236 [18:43:36]line ИНН: 02508201610067 [18:43:36]line Контрольно-Кассовый Чек [18:43:36]line ПРОДАЖА [18:43:36]line ТРК (МРК, ГНК) : 23 [18:43:36]line Товар: 2710124500 [18:43:36]line Аи-95-К-5 [18:43:36]line 8.090 * 74.20 [18:43:36]line = 600.28 [18:43:36]line НДС 12% НСП 1% [18:43:36]line > о реализуемом товаре [18:43:36]line ИТОГО: 600.28 [18:43:36]line НСП 1% : 5.31 [18:43:36]line НДС 12% : 63.75 [18:43:36]line Наличными: 0.00 [18:43:36]line Безнал.: 600.28 [18:43:36]line Место: АЗС № 85 "Партнер Нефть" [18:43:36]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:43:36]line СНО: Общий режим [18:43:36]line Чек 345 20.10.2024 18:43 [18:43:36]line Смена: 193 ФФД: 1.0 [18:43:36]line ЗНМ: 0300000167 [18:43:36]line РНМ: 0000000000156251 [18:43:36]line Версия ККМ: v1.0 [18:43:36]line Платежная система: Mbank [18:43:36]line ФМ: 0000000000963346 [18:43:36]line ФД: 69500 [18:43:36]line ФПД: 231360579370264 [18:43:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184335&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69500&fm=231360579370264&tin=02508201610067®Number=0000000000156251&sum=60028 [18:43:36]OFD Sender: Processing packet 69500 [packets to send 18, broken 17] [18:43:36]ProducePacketName [18:43:36]name=ofd_packets/00069500 [18:43:36]OFD Sender: To server: pG, [18:43:36]CommunicateWithHost lk.salyk.kg:30040 [18:43:36]ConnectInit lk.salyk.kg [18:43:36]written 0, free lines is 4095 [18:43:36]Connected sock=10 [18:43:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 DB 04 07 01 B5 75 5A 03 01 00 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 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 E7 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 57 4F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7C 0F 01 00 35 04 06 00 D2 6B D5 25 FD 18 56 BE 6F 12 41 72 DA 73 [18:43:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 70 72 47 00 52 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7C 0F 01 00 F4 03 04 00 FD F8 14 67 B6 04 01 00 00 6F 86 81 BE A5 AA 13 38 [18:43:37]CommunicateWithHost err = 0 [18:43:37]CheckOFDResponse [18:43:37]1017 (14) - 77093643461234 [18:43:37]1041 (16) - 0000000000963346 [18:43:37]1040 (4) - 69500 [18:43:37]1012 (4) - 20.10.2024 12:35 [18:43:37]1206 (1) - 0 [18:43:37]OFD Sender: Remove packet 69500 [18:43:37]ProducePacketName [18:43:37]name=ofd_packets/00069500 [18:43:37]NVStorageDeleteData [18:43:37]Write to MH i2c: 01 00 00 6F 06 75 [18:43:37]Write i2c OK [18:43:37]MH_I2C_Read... [18:43:37]Read from MH i2c: 01 [18:43:37]MH_I2C_Read... [18:43:37]Read from MH i2c: 01 07 00 [18:43:37]MH_I2C_Read... [18:43:37]Read from MH i2c: 01 07 00 6F 06 00 00 00 00 00 27 0D B0 [18:43:37]RasterBufferAndPrint [18:43:37]line [18:43:37]line [18:43:37]line [18:43:37]line [18:43:37]line [18:43:37]written 0, free lines is 3376 [18:43:37]MH_Cut [18:43:37]Write to MH i2c: D1 01 00 76 06 01 4E [18:43:37]Write i2c OK [18:43:37]MH_I2C_Read... [18:43:37]Read from MH i2c: D1 [18:43:37]MH_I2C_Read... [18:43:37]Read from MH i2c: D1 01 00 [18:43:37]MH_I2C_Read... [18:43:37]Read from MH i2c: D1 01 00 76 06 00 4D [18:43:37]Write to MH i2c: 01 00 00 77 06 7D [18:43:37]Write i2c OK [18:43:37]MH_I2C_Read... [18:43:37]OFD Sender: No OFD packet to send [18:43:37]*** Cut start [18:43:37]*** Partial cut [18:43:37]*** CUTSNS_PIN = 1 [18:43:37]*** CUTSNS_PIN = 0 [18:43:38]*** Brake cut motor [18:43:38]Read from MH i2c: 01 [18:43:38]MH_I2C_Read... [18:43:38]*** Stop cut motor [18:43:38]*** Cut end [18:43:38]Read from MH i2c: 01 07 00 [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: 01 07 00 77 06 00 00 00 00 00 FF 0F 92 [18:43:38]process_action close_receipt done [18:43:38]requested_data is exist [18:43:38]produce_requested_data [18:43:38]requested_item fm.sn is exist - process it [18:43:38]wFMCommunicate request_size=4 [18:43:38]MH_SAM_APDU [18:43:38]CAPDU: 80 11 00 00 [18:43:38]Write to MH i2c: E2 08 00 78 06 80 11 00 00 00 00 00 00 F8 [18:43:38]Write i2c OK [18:43:38]MH_I2C_Read... [18:43:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:38]Read from MH i2c: E2 [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: E2 17 00 [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: E2 17 00 78 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4A [18:43:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:43:38]wFMCommunicate OK [18:43:38]requested_item fd.num is exist - process it [18:43:38]SAM_PROTO_GetFieldsCounters [18:43:38]wFMCommunicate request_size=4 [18:43:38]MH_SAM_APDU [18:43:38]CAPDU: 80 13 00 00 [18:43:38]Write to MH i2c: E2 08 00 79 06 80 13 00 00 00 00 00 00 FB [18:43:38]Write i2c OK [18:43:38]MH_I2C_Read... [18:43:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:43:38]Read from MH i2c: E2 [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: E2 62 00 [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: E2 62 00 79 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7C 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 71 [18:43:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7C 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:43:38]wFMCommunicate OK [18:43:38]SAM_PROTO_GetFieldsCounters done [18:43:38]requested_item shift.num is exist - process it [18:43:38]requested_item shift.opened is exist - process it [18:43:38]req_shift_opened [18:43:38]FM_GetShiftState [18:43:38]SAM_PROTO_GetShiftState [18:43:38]wFMCommunicate request_size=4 [18:43:38]MH_SAM_APDU [18:43:38]CAPDU: 80 13 01 00 [18:43:38]Write to MH i2c: E2 08 00 7A 06 80 13 01 00 00 00 00 00 FD [18:43:38]Write i2c OK [18:43:38]MH_I2C_Read... [18:43:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:38]Read from MH i2c: E2 [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: E2 0E 00 [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: E2 0E 00 7A 06 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 03 [18:43:38]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:43:38]wFMCommunicate OK [18:43:38]SAM_PROTO_GetShiftState done [18:43:38]FM_GetShiftState done [18:43:38]req_shift_opened done [18:43:38]requested_item shift.open_date is exist - process it [18:43:38]req_shift_open_date [18:43:38]req_shift_open_date done [18:43:38]produce_requested_data done [18:43:38]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69500,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [18:43:38]process_action_free close_receipt [18:43:38]json_value_free [18:43:38]json_value_free done [18:43:38]process_json_proto returns [18:43:38]Send response to host [18:43:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69500,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [18:43:38]free response buf [18:43:38]execute_script done [18:43:38]execute_script returns [18:43:38]free content buf [18:43:38]Sock 9.Close socket [18:43:38]Sock 9.Thread stoped [18:43:42]OFD Sender: No OFD packet to send [18:43:47]OFD Sender: No OFD packet to send [18:43:52]OFD Sender: No OFD packet to send [18:43:57]OFD Sender: No OFD packet to send [18:44:02]OFD Sender: No OFD packet to send [18:44:07]OFD Sender: No OFD packet to send [18:44:12]OFD Sender: No OFD packet to send [18:44:17]OFD Sender: No OFD packet to send [18:44:17]accept exits with 7 [18:44:17]New connection [18:44:17]New thread 3066797412 created [18:44:17]Thread 3066654052 joined [18:44:17]Waiting for new connection... [18:44:17] Sock 7.Parse request [18:44:17]Sock 7.Check first char [18:44:17]Sock 7.First char is OK [18:44:17]request: POST /json_proto HTTP/1.0 [18:44:17]Method: POST [18:44:17]URL: /json_proto [18:44:17]Method is POST - this is cgi request [18:44:17]url: /json_proto [18:44:17]query_string will be loaded in cgi processing [18:44:17]execute_cgi json_proto POST (null) [18:44:17]execute_cgi path=json_proto method=POST [18:44:17]POST find Content-Length [18:44:17]Host: 172.17.50.3:8080 [18:44:17]Content-Length: 678 [18:44:17]Content-Type: application/json [18:44:17] [18:44:17]POST finish read [18:44:17]Found Content-Length = 678 [18:44:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.330, "sum" : 356.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 356.00, "total" : 356.00, "payments": [ { "type": 0, "sum" : 356.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:17]execute_script... [18:44:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.330, "sum" : 356.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 356.00, "total" : 356.00, "payments": [ { "type": 0, "sum" : 356.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:17]POST & json_proto [18:44:17]process_json_proto [18:44:17]json parsed OK: [18:44:17]protocol is kg_v1.0 [18:44:17]action value=close_receipt [18:44:17]process_action close_receipt [18:44:17]cmd_close_receipt [18:44:17]MH_GetDate [18:44:17]Write to MH i2c: F0 00 00 7B 06 70 [18:44:17]Write i2c OK [18:44:17]MH_I2C_Read... [18:44:17]Read from MH i2c: F0 [18:44:17]MH_I2C_Read... [18:44:17]Read from MH i2c: F0 09 00 [18:44:17]MH_I2C_Read... [18:44:17]Read from MH i2c: F0 09 00 7B 06 00 82 4F 15 67 6B 98 1E 66 4D [18:44:17]GetLastDocTimeStamp 1729449815 [18:44:17]current date 1729449858 [18:44:17]FM_GetShiftState [18:44:17]SAM_PROTO_GetShiftState [18:44:17]wFMCommunicate request_size=4 [18:44:17]MH_SAM_APDU [18:44:17]CAPDU: 80 13 01 00 [18:44:17]Write to MH i2c: E2 08 00 7C 06 80 13 01 00 00 00 00 00 FF [18:44:17]Write i2c OK [18:44:17]MH_I2C_Read... [18:44:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:17]Read from MH i2c: E2 [18:44:17]MH_I2C_Read... [18:44:17]Read from MH i2c: E2 0E 00 [18:44:17]MH_I2C_Read... [18:44:17]Read from MH i2c: E2 0E 00 7C 06 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 05 [18:44:17]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:44:17]wFMCommunicate OK [18:44:17]SAM_PROTO_GetShiftState done [18:44:17]FM_GetShiftState done [18:44:17]opened in 1729383220 [18:44:17]opened+sec_in_day 1729469620 [18:44:17]quantity*price = 35657 [18:44:17]sum+1 = 35659 [18:44:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 356.00 Внесено: 356.00 СДАЧА: 0.00 НСП 1% : 3.16 НДС 12% : 37.87 Наличными: 356.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 346 20.10.2024 18:44 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69501 ФПД: 61063693887214 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184418&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69501&fm=61063693887214&tin=02508201610067®Number=0000000000156251&sum=35600 [18:44:18]StoreToDocumentArchive [18:44:18]shift 193 fd 69501 [18:44:18]save to /storage/0193/doc_00069501 [18:44:18]save last doc name /storage/0193/doc_00069501 to /storage/kkm_last_doc_name [18:44:19]save OK [18:44:19]Clear old archive folders... [18:44:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:44:19]tlvbuf is 00F32D60 [18:44:19]SAM_PROTO_ClearQueue [18:44:19]wFMCommunicate request_size=4 [18:44:19]MH_SAM_APDU [18:44:19]CAPDU: 80 09 00 00 [18:44:19]Write to MH i2c: E2 08 00 89 06 80 09 00 00 00 00 00 00 01 [18:44:19]Write i2c OK [18:44:19]MH_I2C_Read... [18:44:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:44:19]Read from MH i2c: E2 [18:44:19]MH_I2C_Read... [18:44:19]Read from MH i2c: E2 03 00 [18:44:19]MH_I2C_Read... [18:44:19]Read from MH i2c: E2 03 00 89 06 00 90 00 03 [18:44:19]RAPDU: 90 00 [18:44:19]wFMCommunicate OK [18:44:19]SAM_PROTO_ClearQueue done [18:44:19]KKMCreateOFDPacket [18:44:19]OFDProtocolAddRootSTLVToBuf [18:44:19]FM_MakeSignedData [18:44:19]FM_MakeSignedData [18:44:19]SAM_PROTO_SignData [18:44:19]wFMCommunicate request_size=4 [18:44:19]MH_SAM_APDU [18:44:19]CAPDU: 80 0D 01 02 [18:44:19]Write to MH i2c: E2 08 00 8A 06 80 0D 01 02 00 00 00 00 09 [18:44:19]Write i2c OK [18:44:19]MH_I2C_Read... [18:44:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:44:19]Read from MH i2c: E2 [18:44:19]MH_I2C_Read... [18:44:19]Read from MH i2c: E2 03 00 [18:44:19]MH_I2C_Read... [18:44:19]Read from MH i2c: E2 03 00 8A 06 00 90 00 04 [18:44:19]RAPDU: 90 00 [18:44:19]wFMCommunicate OK [18:44:19]wFMCommunicate request_size=255 [18:44:19]MH_SAM_APDU [18:44:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4A 8B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 8B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 0E 00 00 00 00 07 04 06 00 10 8B 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 01 00 00 F4 03 04 00 82 4F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7D 0F 01 00 35 04 06 00 37 [18:44:19]Write to MH i2c: E2 02 01 8B 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4A 8B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 8B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 0E 00 00 00 00 07 04 06 00 10 8B 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 01 00 00 F4 03 04 00 82 4F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7D 0F 01 00 35 04 06 00 37 00 00 7D [18:44:19]Write i2c OK [18:44:19]MH_I2C_Read... [18:44:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:19]Read from MH i2c: E2 [18:44:19]MH_I2C_Read... [18:44:19]Read from MH i2c: E2 03 00 [18:44:19]MH_I2C_Read... [18:44:19]Read from MH i2c: E2 03 00 8B 06 00 90 00 05 [18:44:19]RAPDU: 90 00 [18:44:19]wFMCommunicate OK [18:44:19]wFMCommunicate request_size=10 [18:44:19]MH_SAM_APDU [18:44:19]CAPDU: 80 0D 02 02 05 89 7F C8 66 EE [18:44:19]Write to MH i2c: E2 0D 00 8C 06 80 0D 02 02 05 00 89 7F C8 66 EE 00 00 3A [18:44:19]Write i2c OK [18:44:19]MH_I2C_Read... [18:44:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:19]Read from MH i2c: E2 [18:44:19]MH_I2C_Read... [18:44:19]Read from MH i2c: E2 03 00 [18:44:19]MH_I2C_Read... [18:44:19]Read from MH i2c: E2 03 00 8C 06 00 90 00 06 [18:44:19]RAPDU: 90 00 [18:44:19]wFMCommunicate OK [18:44:19]wFMCommunicate request_size=4 [18:44:19]MH_SAM_APDU [18:44:19]CAPDU: 80 0D 03 02 [18:44:19]Write to MH i2c: E2 08 00 8D 06 80 0D 03 02 00 00 00 00 0E [18:44:19]Write i2c OK [18:44:19]MH_I2C_Read... [18:44:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:44:19]Read from MH i2c: E2 [18:44:19]MH_I2C_Read... [18:44:19]Read from MH i2c: E2 0B 00 [18:44:19]MH_I2C_Read... [18:44:19]Read from MH i2c: E2 0B 00 8D 06 00 40 CA 77 FA A6 30 E8 D4 90 00 1C [18:44:19]RAPDU: 40 CA 77 FA A6 30 E8 D4 90 00 [18:44:19]wFMCommunicate OK [18:44:19]SAM_PROTO_SignData done [18:44:19]FM_MakeSignedData done [18:44:19]CreateOFDProtocolMessage [18:44:19]wFMCommunicate request_size=4 [18:44:19]MH_SAM_APDU [18:44:19]CAPDU: 80 11 00 00 [18:44:19]Write to MH i2c: E2 08 00 8E 06 80 11 00 00 00 00 00 00 0E [18:44:19]Write i2c OK [18:44:19]MH_I2C_Read... [18:44:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:19]Read from MH i2c: E2 [18:44:19]MH_I2C_Read... [18:44:19]Read from MH i2c: E2 17 00 [18:44:19]MH_I2C_Read... [18:44:19]Read from MH i2c: E2 17 00 8E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 60 [18:44:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:44:19]wFMCommunicate OK [18:44:19]CreateOFDProtocolMessage done [18:44:19]OFDSenderStorePacket 69501 [18:44:19]StoreOFDPacket docnum=69501 [18:44:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 13 48 07 01 10 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4A 8B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 8B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 0E 00 00 00 00 07 04 06 00 10 8B 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 01 00 00 F4 03 04 00 82 4F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7D 0F 01 00 35 04 06 00 37 89 7F C8 66 EE 40 CA 77 FA A6 30 E8 D4 [18:44:19]CheckFolder [18:44:19]dirname=/storage/ofd_packets [18:44:19]CheckFolder done [18:44:19]ProducePacketName [18:44:19]name=ofd_packets/00069501 [18:44:19]NVStorageSaveData ofd_packets/00069501 [18:44:19]File name is /storage/ofd_packets/00069501 [18:44:19]Write 301 bytes [18:44:19]NVStorageSaveData done [18:44:19]OFDSenderStorePacket done [18:44:19]KKMCreateOFDPacket done [18:44:19]NVStorageSaveData kkm_last_timestamp [18:44:19]File name is /storage/kkm_last_timestamp [18:44:19]Write 4 bytes [18:44:19]NVStorageSaveData done [18:44:19]ExternCall_PrintAddStr [18:44:19]wPrintStart [18:44:19]Write to MH i2c: 01 00 00 8F 06 95 [18:44:19]Write i2c OK [18:44:19]MH_I2C_Read... [18:44:19]Read from MH i2c: 01 [18:44:19]MH_I2C_Read... [18:44:19]Read from MH i2c: 01 07 00 [18:44:19]MH_I2C_Read... [18:44:19]Read from MH i2c: 01 07 00 8F 06 00 00 00 00 00 FF 0F AA [18:44:19]RasterBufferAndPrint [18:44:19]line Счет N : (1)2885237 [18:44:19]line ИНН: 02508201610067 [18:44:19]line Контрольно-Кассовый Чек [18:44:19]line ПРОДАЖА [18:44:19]line ТРК (МРК, ГНК) : 32 [18:44:19]line Товар: 2710124130 [18:44:19]line Аи-92-К-5 [18:44:19]line 5.330 * 66.90 [18:44:19]line = 356.58 [18:44:19]line НДС 12% НСП 1% [18:44:19]line > о реализуемом товаре [18:44:19]line ОКРУГЛЕНИЕ: -0.58 [18:44:19]line ИТОГО: 356.00 [18:44:19]line Внесено: 356.00 [18:44:19]line СДАЧА: 0.00 [18:44:19]line НСП 1% : 3.16 [18:44:19]line НДС 12% : 37.87 [18:44:19]line Наличными: 356.00 [18:44:19]line Безнал.: 0.00 [18:44:19]line Место: АЗС № 85 "Партнер Нефть" [18:44:19]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:44:19]line СНО: Общий режим [18:44:19]line Чек 346 20.10.2024 18:44 [18:44:19]line Смена: 193 ФФД: 1.0 [18:44:19]line ЗНМ: 0300000167 [18:44:19]line РНМ: 0000000000156251 [18:44:19]line Версия ККМ: v1.0 [18:44:19]line ФМ: 0000000000963346 [18:44:19]line ФД: 69501 [18:44:19]line ФПД: 61063693887214 [18:44:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184418&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69501&fm=61063693887214&tin=02508201610067®Number=0000000000156251&sum=35600 [18:44:19]OFD Sender: Processing packet 69501 [packets to send 18, broken 17] [18:44:19]ProducePacketName [18:44:19]name=ofd_packets/00069501 [18:44:19]OFD Sender: To server: pG, [18:44:19]CommunicateWithHost lk.salyk.kg:30040 [18:44:19]ConnectInit lk.salyk.kg [18:44:19]written 0, free lines is 4095 [18:44:19]Connected sock=10 [18:44:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 13 48 07 01 10 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4A 8B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 8B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 0E 00 00 00 00 07 04 06 00 10 8B 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 01 00 00 F4 03 04 00 82 4F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7D 0F 01 00 35 04 06 00 37 89 7F C8 66 EE 40 CA 77 FA A6 30 E8 D4 [18:44:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 DE 70 47 00 65 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7D 0F 01 00 F4 03 04 00 28 F9 14 67 B6 04 01 00 00 8E 32 88 1A A4 BC 07 ED [18:44:20]CommunicateWithHost err = 0 [18:44:20]CheckOFDResponse [18:44:20]1017 (14) - 77093643461234 [18:44:20]1041 (16) - 0000000000963346 [18:44:20]1040 (4) - 69501 [18:44:20]1012 (4) - 20.10.2024 12:35 [18:44:20]1206 (1) - 0 [18:44:20]OFD Sender: Remove packet 69501 [18:44:20]ProducePacketName [18:44:20]name=ofd_packets/00069501 [18:44:20]NVStorageDeleteData [18:44:20]Write to MH i2c: 01 00 00 BA 06 C0 [18:44:20]Write i2c OK [18:44:20]MH_I2C_Read... [18:44:20]Read from MH i2c: 01 [18:44:20]MH_I2C_Read... [18:44:20]Read from MH i2c: 01 07 00 [18:44:20]MH_I2C_Read... [18:44:20]Read from MH i2c: 01 07 00 BA 06 00 00 00 00 00 F0 0C C3 [18:44:20]RasterBufferAndPrint [18:44:20]line [18:44:20]line [18:44:20]line [18:44:20]line [18:44:20]line [18:44:20]written 0, free lines is 3318 [18:44:20]MH_Cut [18:44:20]Write to MH i2c: D1 01 00 C1 06 01 99 [18:44:20]Write i2c OK [18:44:20]MH_I2C_Read... [18:44:20]Read from MH i2c: D1 [18:44:20]MH_I2C_Read... [18:44:20]Read from MH i2c: D1 01 00 [18:44:20]MH_I2C_Read... [18:44:20]Read from MH i2c: D1 01 00 C1 06 00 98 [18:44:20]Write to MH i2c: 01 00 00 C2 06 C8 [18:44:20]Write i2c OK [18:44:20]MH_I2C_Read... [18:44:20]OFD Sender: No OFD packet to send [18:44:21]*** Cut start [18:44:21]*** Partial cut [18:44:21]*** CUTSNS_PIN = 1 [18:44:21]*** CUTSNS_PIN = 0 [18:44:21]*** Brake cut motor [18:44:21]Read from MH i2c: 01 [18:44:21]MH_I2C_Read... [18:44:21]*** Stop cut motor [18:44:21]*** Cut end [18:44:21]Read from MH i2c: 01 07 00 [18:44:21]MH_I2C_Read... [18:44:21]Read from MH i2c: 01 07 00 C2 06 00 00 00 00 00 FF 0F DD [18:44:21]process_action close_receipt done [18:44:21]requested_data is exist [18:44:21]produce_requested_data [18:44:21]requested_item fm.sn is exist - process it [18:44:21]wFMCommunicate request_size=4 [18:44:21]MH_SAM_APDU [18:44:21]CAPDU: 80 11 00 00 [18:44:21]Write to MH i2c: E2 08 00 C3 06 80 11 00 00 00 00 00 00 43 [18:44:21]Write i2c OK [18:44:21]MH_I2C_Read... [18:44:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:21]Read from MH i2c: E2 [18:44:21]MH_I2C_Read... [18:44:21]Read from MH i2c: E2 17 00 [18:44:21]MH_I2C_Read... [18:44:21]Read from MH i2c: E2 17 00 C3 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 95 [18:44:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:44:21]wFMCommunicate OK [18:44:21]requested_item fd.num is exist - process it [18:44:21]SAM_PROTO_GetFieldsCounters [18:44:21]wFMCommunicate request_size=4 [18:44:21]MH_SAM_APDU [18:44:21]CAPDU: 80 13 00 00 [18:44:21]Write to MH i2c: E2 08 00 C4 06 80 13 00 00 00 00 00 00 46 [18:44:21]Write i2c OK [18:44:21]MH_I2C_Read... [18:44:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:44:21]Read from MH i2c: E2 [18:44:21]MH_I2C_Read... [18:44:21]Read from MH i2c: E2 62 00 [18:44:21]MH_I2C_Read... [18:44:21]Read from MH i2c: E2 62 00 C4 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7D 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 C0 [18:44:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7D 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:44:21]wFMCommunicate OK [18:44:21]SAM_PROTO_GetFieldsCounters done [18:44:21]requested_item shift.num is exist - process it [18:44:21]requested_item shift.opened is exist - process it [18:44:21]req_shift_opened [18:44:21]FM_GetShiftState [18:44:21]SAM_PROTO_GetShiftState [18:44:21]wFMCommunicate request_size=4 [18:44:21]MH_SAM_APDU [18:44:21]CAPDU: 80 13 01 00 [18:44:21]Write to MH i2c: E2 08 00 C5 06 80 13 01 00 00 00 00 00 48 [18:44:21]Write i2c OK [18:44:21]MH_I2C_Read... [18:44:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:21]Read from MH i2c: E2 [18:44:21]MH_I2C_Read... [18:44:21]Read from MH i2c: E2 0E 00 [18:44:21]MH_I2C_Read... [18:44:21]Read from MH i2c: E2 0E 00 C5 06 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 4E [18:44:21]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:44:21]wFMCommunicate OK [18:44:21]SAM_PROTO_GetShiftState done [18:44:21]FM_GetShiftState done [18:44:21]req_shift_opened done [18:44:21]requested_item shift.open_date is exist - process it [18:44:21]req_shift_open_date [18:44:21]req_shift_open_date done [18:44:21]produce_requested_data done [18:44:21]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69501,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [18:44:21]process_action_free close_receipt [18:44:21]json_value_free [18:44:21]json_value_free done [18:44:21]process_json_proto returns [18:44:21]Send response to host [18:44:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69501,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [18:44:21]free response buf [18:44:21]execute_script done [18:44:21]execute_script returns [18:44:21]free content buf [18:44:21]Sock 7.Close socket [18:44:21]Sock 7.Thread stoped [18:44:25]OFD Sender: No OFD packet to send [18:44:30]OFD Sender: No OFD packet to send [18:44:32]accept exits with 9 [18:44:32]New connection [18:44:32]New thread 3066654052 created [18:44:32]Thread 3066797412 joined [18:44:32]Waiting for new connection... [18:44:32] Sock 9.Parse request [18:44:32]Sock 9.Check first char [18:44:32]Sock 9.First char is OK [18:44:32]request: POST /json_proto HTTP/1.0 [18:44:32]Method: POST [18:44:32]URL: /json_proto [18:44:32]Method is POST - this is cgi request [18:44:32]url: /json_proto [18:44:32]query_string will be loaded in cgi processing [18:44:32]execute_cgi json_proto POST (null) [18:44:32]execute_cgi path=json_proto method=POST [18:44:32]POST find Content-Length [18:44:32]Host: 172.17.50.3:8080 [18:44:32]Content-Length: 678 [18:44:32]Content-Type: application/json [18:44:32] [18:44:32]POST finish read [18:44:32]Found Content-Length = 678 [18:44:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [18:44:32]execute_script... [18:44:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [18:44:32]POST & json_proto [18:44:32]process_json_proto [18:44:32]json parsed OK: [18:44:32]protocol is kg_v1.0 [18:44:32]action value=close_receipt [18:44:32]process_action close_receipt [18:44:32]cmd_close_receipt [18:44:32]MH_GetDate [18:44:32]Write to MH i2c: F0 00 00 C6 06 BB [18:44:32]Write i2c OK [18:44:32]MH_I2C_Read... [18:44:32]Read from MH i2c: F0 [18:44:32]MH_I2C_Read... [18:44:32]Read from MH i2c: F0 09 00 [18:44:32]MH_I2C_Read... [18:44:32]Read from MH i2c: F0 09 00 C6 06 00 91 4F 15 67 6B 98 1E 66 A7 [18:44:32]GetLastDocTimeStamp 1729449858 [18:44:32]current date 1729449873 [18:44:32]FM_GetShiftState [18:44:32]SAM_PROTO_GetShiftState [18:44:32]wFMCommunicate request_size=4 [18:44:32]MH_SAM_APDU [18:44:32]CAPDU: 80 13 01 00 [18:44:32]Write to MH i2c: E2 08 00 C7 06 80 13 01 00 00 00 00 00 4A [18:44:32]Write i2c OK [18:44:32]MH_I2C_Read... [18:44:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:32]Read from MH i2c: E2 [18:44:32]MH_I2C_Read... [18:44:32]Read from MH i2c: E2 0E 00 [18:44:32]MH_I2C_Read... [18:44:32]Read from MH i2c: E2 0E 00 C7 06 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 50 [18:44:32]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:44:32]wFMCommunicate OK [18:44:32]SAM_PROTO_GetShiftState done [18:44:32]FM_GetShiftState done [18:44:32]opened in 1729383220 [18:44:32]opened+sec_in_day 1729469620 [18:44:32]quantity*price = 50010 [18:44:32]sum+1 = 50012 [18:44:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 347 20.10.2024 18:44 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69502 ФПД: 199437322708684 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184433&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69502&fm=199437322708684&tin=02508201610067®Number=0000000000156251&sum=50000 [18:44:33]StoreToDocumentArchive [18:44:33]shift 193 fd 69502 [18:44:33]save to /storage/0193/doc_00069502 [18:44:33]save last doc name /storage/0193/doc_00069502 to /storage/kkm_last_doc_name [18:44:33]save OK [18:44:33]Clear old archive folders... [18:44:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:44:33]tlvbuf is 00F37E10 [18:44:33]SAM_PROTO_ClearQueue [18:44:33]wFMCommunicate request_size=4 [18:44:33]MH_SAM_APDU [18:44:33]CAPDU: 80 09 00 00 [18:44:33]Write to MH i2c: E2 08 00 D4 06 80 09 00 00 00 00 00 00 4C [18:44:33]Write i2c OK [18:44:33]MH_I2C_Read... [18:44:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:44:33]Read from MH i2c: E2 [18:44:33]MH_I2C_Read... [18:44:33]Read from MH i2c: E2 03 00 [18:44:33]MH_I2C_Read... [18:44:33]Read from MH i2c: E2 03 00 D4 06 00 90 00 4E [18:44:33]RAPDU: 90 00 [18:44:33]wFMCommunicate OK [18:44:33]SAM_PROTO_ClearQueue done [18:44:33]KKMCreateOFDPacket [18:44:33]OFDProtocolAddRootSTLVToBuf [18:44:33]FM_MakeSignedData [18:44:33]FM_MakeSignedData [18:44:33]SAM_PROTO_SignData [18:44:33]wFMCommunicate request_size=4 [18:44:33]MH_SAM_APDU [18:44:33]CAPDU: 80 0D 01 02 [18:44:33]Write to MH i2c: E2 08 00 D5 06 80 0D 01 02 00 00 00 00 54 [18:44:33]Write i2c OK [18:44:33]MH_I2C_Read... [18:44:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:44:33]Read from MH i2c: E2 [18:44:33]MH_I2C_Read... [18:44:33]Read from MH i2c: E2 03 00 [18:44:33]MH_I2C_Read... [18:44:33]Read from MH i2c: E2 03 00 D5 06 00 90 00 4F [18:44:33]RAPDU: 90 00 [18:44:33]wFMCommunicate OK [18:44:33]wFMCommunicate request_size=255 [18:44:33]MH_SAM_APDU [18:44:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 5B 01 00 00 F4 03 04 00 91 4F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7E 0F 01 00 35 04 06 00 B5 [18:44:33]Write to MH i2c: E2 02 01 D6 06 80 0D 02 02 FA 00 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 5B 01 00 00 F4 03 04 00 91 4F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7E 0F 01 00 35 04 06 00 B5 00 00 71 [18:44:33]Write i2c OK [18:44:33]MH_I2C_Read... [18:44:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:34]Read from MH i2c: E2 [18:44:34]MH_I2C_Read... [18:44:34]Read from MH i2c: E2 03 00 [18:44:34]MH_I2C_Read... [18:44:34]Read from MH i2c: E2 03 00 D6 06 00 90 00 50 [18:44:34]RAPDU: 90 00 [18:44:34]wFMCommunicate OK [18:44:34]wFMCommunicate request_size=10 [18:44:34]MH_SAM_APDU [18:44:34]CAPDU: 80 0D 02 02 05 63 1E C6 66 CC [18:44:34]Write to MH i2c: E2 0D 00 D7 06 80 0D 02 02 05 00 63 1E C6 66 CC 00 00 DA [18:44:34]Write i2c OK [18:44:34]MH_I2C_Read... [18:44:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:34]Read from MH i2c: E2 [18:44:34]MH_I2C_Read... [18:44:34]Read from MH i2c: E2 03 00 [18:44:34]MH_I2C_Read... [18:44:34]Read from MH i2c: E2 03 00 D7 06 00 90 00 51 [18:44:34]RAPDU: 90 00 [18:44:34]wFMCommunicate OK [18:44:34]wFMCommunicate request_size=4 [18:44:34]MH_SAM_APDU [18:44:34]CAPDU: 80 0D 03 02 [18:44:34]Write to MH i2c: E2 08 00 D8 06 80 0D 03 02 00 00 00 00 59 [18:44:34]Write i2c OK [18:44:34]MH_I2C_Read... [18:44:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:44:34]Read from MH i2c: E2 [18:44:34]MH_I2C_Read... [18:44:34]Read from MH i2c: E2 0B 00 [18:44:34]MH_I2C_Read... [18:44:34]Read from MH i2c: E2 0B 00 D8 06 00 34 D5 25 A5 DB 96 74 A2 90 00 B4 [18:44:34]RAPDU: 34 D5 25 A5 DB 96 74 A2 90 00 [18:44:34]wFMCommunicate OK [18:44:34]SAM_PROTO_SignData done [18:44:34]FM_MakeSignedData done [18:44:34]CreateOFDProtocolMessage [18:44:34]wFMCommunicate request_size=4 [18:44:34]MH_SAM_APDU [18:44:34]CAPDU: 80 11 00 00 [18:44:34]Write to MH i2c: E2 08 00 D9 06 80 11 00 00 00 00 00 00 59 [18:44:34]Write i2c OK [18:44:34]MH_I2C_Read... [18:44:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:34]Read from MH i2c: E2 [18:44:34]MH_I2C_Read... [18:44:34]Read from MH i2c: E2 17 00 [18:44:34]MH_I2C_Read... [18:44:34]Read from MH i2c: E2 17 00 D9 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AB [18:44:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:44:34]wFMCommunicate OK [18:44:34]CreateOFDProtocolMessage done [18:44:34]OFDSenderStorePacket 69502 [18:44:34]StoreOFDPacket docnum=69502 [18:44:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 97 30 07 01 46 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 5B 01 00 00 F4 03 04 00 91 4F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7E 0F 01 00 35 04 06 00 B5 63 1E C6 66 CC 34 D5 25 A5 DB 96 74 A2 [18:44:34]CheckFolder [18:44:34]dirname=/storage/ofd_packets [18:44:34]CheckFolder done [18:44:34]ProducePacketName [18:44:34]name=ofd_packets/00069502 [18:44:34]NVStorageSaveData ofd_packets/00069502 [18:44:34]File name is /storage/ofd_packets/00069502 [18:44:34]Write 301 bytes [18:44:34]NVStorageSaveData done [18:44:34]OFDSenderStorePacket done [18:44:34]KKMCreateOFDPacket done [18:44:34]NVStorageSaveData kkm_last_timestamp [18:44:34]File name is /storage/kkm_last_timestamp [18:44:34]Write 4 bytes [18:44:34]NVStorageSaveData done [18:44:34]ExternCall_PrintAddStr [18:44:34]wPrintStart [18:44:34]Write to MH i2c: 01 00 00 DA 06 E0 [18:44:34]Write i2c OK [18:44:34]MH_I2C_Read... [18:44:34]Read from MH i2c: 01 [18:44:34]MH_I2C_Read... [18:44:34]Read from MH i2c: 01 07 00 [18:44:34]MH_I2C_Read... [18:44:34]Read from MH i2c: 01 07 00 DA 06 00 00 00 00 00 FF 0F F5 [18:44:34]RasterBufferAndPrint [18:44:34]line Счет N : (1)2885238 [18:44:34]line ИНН: 02508201610067 [18:44:34]line Контрольно-Кассовый Чек [18:44:34]line ПРОДАЖА [18:44:34]line ТРК (МРК, ГНК) : 13 [18:44:34]line Товар: 2710124500 [18:44:34]line Аи-95-К-5 [18:44:34]line 6.740 * 74.20 [18:44:34]line = 500.11 [18:44:34]line НДС 12% НСП 1% [18:44:34]line > о реализуемом товаре [18:44:34]line ОКРУГЛЕНИЕ: -0.11 [18:44:34]line ИТОГО: 500.00 [18:44:34]line Внесено: 500.00 [18:44:34]line СДАЧА: 0.00 [18:44:34]line НСП 1% : 4.43 [18:44:34]line НДС 12% : 53.11 [18:44:34]line Наличными: 500.00 [18:44:34]line Безнал.: 0.00 [18:44:34]line Место: АЗС № 85 "Партнер Нефть" [18:44:34]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:44:34]line СНО: Общий режим [18:44:34]line Чек 347 20.10.2024 18:44 [18:44:34]line Смена: 193 ФФД: 1.0 [18:44:34]line ЗНМ: 0300000167 [18:44:34]line РНМ: 0000000000156251 [18:44:34]line Версия ККМ: v1.0 [18:44:34]line ФМ: 0000000000963346 [18:44:34]line ФД: 69502 [18:44:34]line ФПД: 199437322708684 [18:44:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184433&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69502&fm=199437322708684&tin=02508201610067®Number=0000000000156251&sum=50000 [18:44:34]OFD Sender: Processing packet 69502 [packets to send 18, broken 17] [18:44:34]ProducePacketName [18:44:34]name=ofd_packets/00069502 [18:44:34]OFD Sender: To server: pG, [18:44:34]CommunicateWithHost lk.salyk.kg:30040 [18:44:34]ConnectInit lk.salyk.kg [18:44:34]written 0, free lines is 4095 [18:44:34]Connected sock=10 [18:44:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 97 30 07 01 46 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 5B 01 00 00 F4 03 04 00 91 4F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7E 0F 01 00 35 04 06 00 B5 63 1E C6 66 CC 34 D5 25 A5 DB 96 74 A2 [18:44:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 B1 CE 47 00 3E 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7E 0F 01 00 F4 03 04 00 37 F9 14 67 B6 04 01 00 00 84 96 1E 75 01 C4 8D 43 [18:44:34]CommunicateWithHost err = 0 [18:44:34]CheckOFDResponse [18:44:34]1017 (14) - 77093643461234 [18:44:34]1041 (16) - 0000000000963346 [18:44:34]1040 (4) - 69502 [18:44:34]1012 (4) - 20.10.2024 12:36 [18:44:34]1206 (1) - 0 [18:44:34]OFD Sender: Remove packet 69502 [18:44:34]ProducePacketName [18:44:34]name=ofd_packets/00069502 [18:44:34]NVStorageDeleteData [18:44:35]Write to MH i2c: 01 00 00 05 07 0C [18:44:35]Write i2c OK [18:44:35]MH_I2C_Read... [18:44:35]Read from MH i2c: 01 [18:44:35]MH_I2C_Read... [18:44:35]Read from MH i2c: 01 07 00 [18:44:35]MH_I2C_Read... [18:44:35]Read from MH i2c: 01 07 00 05 07 00 00 00 00 00 FA 0C 19 [18:44:35]RasterBufferAndPrint [18:44:35]line [18:44:35]line [18:44:35]line [18:44:35]line [18:44:35]line [18:44:35]written 0, free lines is 3332 [18:44:35]MH_Cut [18:44:35]Write to MH i2c: D1 01 00 0C 07 01 E5 [18:44:35]Write i2c OK [18:44:35]MH_I2C_Read... [18:44:35]Read from MH i2c: D1 [18:44:35]MH_I2C_Read... [18:44:35]Read from MH i2c: D1 01 00 [18:44:35]MH_I2C_Read... [18:44:35]Read from MH i2c: D1 01 00 0C 07 00 E4 [18:44:35]Write to MH i2c: 01 00 00 0D 07 14 [18:44:35]Write i2c OK [18:44:35]MH_I2C_Read... [18:44:35]OFD Sender: No OFD packet to send [18:44:35]*** Cut start [18:44:35]*** Partial cut [18:44:35]*** CUTSNS_PIN = 1 [18:44:35]*** CUTSNS_PIN = 0 [18:44:35]*** Brake cut motor [18:44:36]Read from MH i2c: 01 [18:44:36]MH_I2C_Read... [18:44:36]*** Stop cut motor [18:44:36]*** Cut end [18:44:36]Read from MH i2c: 01 07 00 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: 01 07 00 0D 07 00 00 00 00 00 FF 0F 29 [18:44:36]process_action close_receipt done [18:44:36]requested_data is exist [18:44:36]produce_requested_data [18:44:36]requested_item fm.sn is exist - process it [18:44:36]wFMCommunicate request_size=4 [18:44:36]MH_SAM_APDU [18:44:36]CAPDU: 80 11 00 00 [18:44:36]Write to MH i2c: E2 08 00 0E 07 80 11 00 00 00 00 00 00 8F [18:44:36]Write i2c OK [18:44:36]MH_I2C_Read... [18:44:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:36]Read from MH i2c: E2 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: E2 17 00 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: E2 17 00 0E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E1 [18:44:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:44:36]wFMCommunicate OK [18:44:36]requested_item fd.num is exist - process it [18:44:36]SAM_PROTO_GetFieldsCounters [18:44:36]wFMCommunicate request_size=4 [18:44:36]MH_SAM_APDU [18:44:36]CAPDU: 80 13 00 00 [18:44:36]Write to MH i2c: E2 08 00 0F 07 80 13 00 00 00 00 00 00 92 [18:44:36]Write i2c OK [18:44:36]MH_I2C_Read... [18:44:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:44:36]Read from MH i2c: E2 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: E2 62 00 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: E2 62 00 0F 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7E 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 10 [18:44:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7E 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:44:36]wFMCommunicate OK [18:44:36]SAM_PROTO_GetFieldsCounters done [18:44:36]requested_item shift.num is exist - process it [18:44:36]requested_item shift.opened is exist - process it [18:44:36]req_shift_opened [18:44:36]FM_GetShiftState [18:44:36]SAM_PROTO_GetShiftState [18:44:36]wFMCommunicate request_size=4 [18:44:36]MH_SAM_APDU [18:44:36]CAPDU: 80 13 01 00 [18:44:36]Write to MH i2c: E2 08 00 10 07 80 13 01 00 00 00 00 00 94 [18:44:36]Write i2c OK [18:44:36]MH_I2C_Read... [18:44:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:36]Read from MH i2c: E2 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: E2 0E 00 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: E2 0E 00 10 07 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 9A [18:44:36]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:44:36]wFMCommunicate OK [18:44:36]SAM_PROTO_GetShiftState done [18:44:36]FM_GetShiftState done [18:44:36]req_shift_opened done [18:44:36]requested_item shift.open_date is exist - process it [18:44:36]req_shift_open_date [18:44:36]req_shift_open_date done [18:44:36]produce_requested_data done [18:44:36]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69502,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [18:44:36]process_action_free close_receipt [18:44:36]json_value_free [18:44:36]json_value_free done [18:44:36]process_json_proto returns [18:44:36]Send response to host [18:44:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69502,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [18:44:36]free response buf [18:44:36]execute_script done [18:44:36]execute_script returns [18:44:36]free content buf [18:44:36]Sock 9.Close socket [18:44:36]Sock 9.Thread stoped [18:44:40]OFD Sender: No OFD packet to send [18:44:45]OFD Sender: No OFD packet to send [18:44:50]OFD Sender: No OFD packet to send [18:44:55]OFD Sender: No OFD packet to send [18:45:00]OFD Sender: No OFD packet to send [18:45:05]OFD Sender: No OFD packet to send [18:45:10]OFD Sender: No OFD packet to send [18:45:15]OFD Sender: No OFD packet to send [18:45:20]accept exits with 7 [18:45:20]New connection [18:45:20]New thread 3066797412 created [18:45:20]Thread 3066654052 joined [18:45:20]Waiting for new connection... [18:45:20] Sock 7.Parse request [18:45:20]Sock 7.Check first char [18:45:20]Sock 7.First char is OK [18:45:20]request: POST /json_proto HTTP/1.0 [18:45:20]Method: POST [18:45:20]URL: /json_proto [18:45:20]Method is POST - this is cgi request [18:45:20]url: /json_proto [18:45:20]query_string will be loaded in cgi processing [18:45:20]execute_cgi json_proto POST (null) [18:45:20]execute_cgi path=json_proto method=POST [18:45:20]POST find Content-Length [18:45:20]Host: 172.17.50.3:8080 [18:45:20]Content-Length: 683 [18:45:20]Content-Type: application/json [18:45:20] [18:45:20]POST finish read [18:45:20]Found Content-Length = 683 [18:45:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:20]execute_script... [18:45:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:20]POST & json_proto [18:45:20]process_json_proto [18:45:20]json parsed OK: [18:45:20]protocol is kg_v1.0 [18:45:20]action value=close_receipt [18:45:20]process_action close_receipt [18:45:20]cmd_close_receipt [18:45:20]MH_GetDate [18:45:20]Write to MH i2c: F0 00 00 11 07 07 [18:45:20]Write i2c OK [18:45:20]MH_I2C_Read... [18:45:20]Read from MH i2c: F0 [18:45:20]MH_I2C_Read... [18:45:20]Read from MH i2c: F0 09 00 [18:45:20]MH_I2C_Read... [18:45:20]Read from MH i2c: F0 09 00 11 07 00 C0 4F 15 67 6B 98 1E 66 22 [18:45:20]GetLastDocTimeStamp 1729449873 [18:45:20]current date 1729449920 [18:45:20]FM_GetShiftState [18:45:20]SAM_PROTO_GetShiftState [18:45:20]wFMCommunicate request_size=4 [18:45:20]MH_SAM_APDU [18:45:20]CAPDU: 80 13 01 00 [18:45:20]Write to MH i2c: E2 08 00 12 07 80 13 01 00 00 00 00 00 96 [18:45:20]Write i2c OK [18:45:20]MH_I2C_Read... [18:45:20]OFD Sender: No OFD packet to send [18:45:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:20]Read from MH i2c: E2 [18:45:20]MH_I2C_Read... [18:45:20]Read from MH i2c: E2 0E 00 [18:45:20]MH_I2C_Read... [18:45:20]Read from MH i2c: E2 0E 00 12 07 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 9C [18:45:20]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:45:20]wFMCommunicate OK [18:45:20]SAM_PROTO_GetShiftState done [18:45:20]FM_GetShiftState done [18:45:20]opened in 1729383220 [18:45:20]opened+sec_in_day 1729469620 [18:45:20]quantity*price = 100015 [18:45:20]sum+1 = 100017 [18:45:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 348 20.10.2024 18:45 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69503 ФПД: 99950389254228 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184520&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69503&fm=99950389254228&tin=02508201610067®Number=0000000000156251&sum=100000 [18:45:21]StoreToDocumentArchive [18:45:21]shift 193 fd 69503 [18:45:21]save to /storage/0193/doc_00069503 [18:45:21]save last doc name /storage/0193/doc_00069503 to /storage/kkm_last_doc_name [18:45:21]save OK [18:45:21]Clear old archive folders... [18:45:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:45:21]tlvbuf is 00F12430 [18:45:21]SAM_PROTO_ClearQueue [18:45:21]wFMCommunicate request_size=4 [18:45:21]MH_SAM_APDU [18:45:21]CAPDU: 80 09 00 00 [18:45:21]Write to MH i2c: E2 08 00 1F 07 80 09 00 00 00 00 00 00 98 [18:45:21]Write i2c OK [18:45:21]MH_I2C_Read... [18:45:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:21]Read from MH i2c: E2 [18:45:21]MH_I2C_Read... [18:45:21]Read from MH i2c: E2 03 00 [18:45:21]MH_I2C_Read... [18:45:21]Read from MH i2c: E2 03 00 1F 07 00 90 00 9A [18:45:21]RAPDU: 90 00 [18:45:21]wFMCommunicate OK [18:45:21]SAM_PROTO_ClearQueue done [18:45:21]KKMCreateOFDPacket [18:45:21]OFDProtocolAddRootSTLVToBuf [18:45:21]FM_MakeSignedData [18:45:21]FM_MakeSignedData [18:45:21]SAM_PROTO_SignData [18:45:21]wFMCommunicate request_size=4 [18:45:21]MH_SAM_APDU [18:45:21]CAPDU: 80 0D 01 02 [18:45:21]Write to MH i2c: E2 08 00 20 07 80 0D 01 02 00 00 00 00 A0 [18:45:21]Write i2c OK [18:45:21]MH_I2C_Read... [18:45:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:21]Read from MH i2c: E2 [18:45:21]MH_I2C_Read... [18:45:21]Read from MH i2c: E2 03 00 [18:45:21]MH_I2C_Read... [18:45:21]Read from MH i2c: E2 03 00 20 07 00 90 00 9B [18:45:21]RAPDU: 90 00 [18:45:21]wFMCommunicate OK [18:45:21]wFMCommunicate request_size=255 [18:45:21]MH_SAM_APDU [18:45:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 C0 4F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7F 0F 01 00 35 04 06 00 5A [18:45:21]Write to MH i2c: E2 02 01 21 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 C0 4F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7F 0F 01 00 35 04 06 00 5A 00 00 B5 [18:45:21]Write i2c OK [18:45:21]MH_I2C_Read... [18:45:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:21]Read from MH i2c: E2 [18:45:21]MH_I2C_Read... [18:45:21]Read from MH i2c: E2 03 00 [18:45:21]MH_I2C_Read... [18:45:21]Read from MH i2c: E2 03 00 21 07 00 90 00 9C [18:45:21]RAPDU: 90 00 [18:45:21]wFMCommunicate OK [18:45:21]wFMCommunicate request_size=10 [18:45:21]MH_SAM_APDU [18:45:21]CAPDU: 80 0D 02 02 05 E7 83 72 58 54 [18:45:21]Write to MH i2c: E2 0D 00 22 07 80 0D 02 02 05 00 E7 83 72 58 54 00 00 35 [18:45:21]Write i2c OK [18:45:21]MH_I2C_Read... [18:45:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:21]Read from MH i2c: E2 [18:45:21]MH_I2C_Read... [18:45:21]Read from MH i2c: E2 03 00 [18:45:21]MH_I2C_Read... [18:45:21]Read from MH i2c: E2 03 00 22 07 00 90 00 9D [18:45:21]RAPDU: 90 00 [18:45:21]wFMCommunicate OK [18:45:21]wFMCommunicate request_size=4 [18:45:21]MH_SAM_APDU [18:45:21]CAPDU: 80 0D 03 02 [18:45:21]Write to MH i2c: E2 08 00 23 07 80 0D 03 02 00 00 00 00 A5 [18:45:21]Write i2c OK [18:45:21]MH_I2C_Read... [18:45:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:22]Read from MH i2c: E2 [18:45:22]MH_I2C_Read... [18:45:22]Read from MH i2c: E2 0B 00 [18:45:22]MH_I2C_Read... [18:45:22]Read from MH i2c: E2 0B 00 23 07 00 15 8A EF 70 FE 4C F6 25 90 00 09 [18:45:22]RAPDU: 15 8A EF 70 FE 4C F6 25 90 00 [18:45:22]wFMCommunicate OK [18:45:22]SAM_PROTO_SignData done [18:45:22]FM_MakeSignedData done [18:45:22]CreateOFDProtocolMessage [18:45:22]wFMCommunicate request_size=4 [18:45:22]MH_SAM_APDU [18:45:22]CAPDU: 80 11 00 00 [18:45:22]Write to MH i2c: E2 08 00 24 07 80 11 00 00 00 00 00 00 A5 [18:45:22]Write i2c OK [18:45:22]MH_I2C_Read... [18:45:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:22]Read from MH i2c: E2 [18:45:22]MH_I2C_Read... [18:45:22]Read from MH i2c: E2 17 00 [18:45:22]MH_I2C_Read... [18:45:22]Read from MH i2c: E2 17 00 24 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F7 [18:45:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:45:22]wFMCommunicate OK [18:45:22]CreateOFDProtocolMessage done [18:45:22]OFDSenderStorePacket 69503 [18:45:22]StoreOFDPacket docnum=69503 [18:45:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 06 52 07 01 90 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 C0 4F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7F 0F 01 00 35 04 06 00 5A E7 83 72 58 54 15 8A EF 70 FE 4C F6 25 [18:45:22]CheckFolder [18:45:22]dirname=/storage/ofd_packets [18:45:22]CheckFolder done [18:45:22]ProducePacketName [18:45:22]name=ofd_packets/00069503 [18:45:22]NVStorageSaveData ofd_packets/00069503 [18:45:22]File name is /storage/ofd_packets/00069503 [18:45:22]Write 301 bytes [18:45:22]NVStorageSaveData done [18:45:22]OFDSenderStorePacket done [18:45:22]KKMCreateOFDPacket done [18:45:22]NVStorageSaveData kkm_last_timestamp [18:45:22]File name is /storage/kkm_last_timestamp [18:45:22]Write 4 bytes [18:45:22]NVStorageSaveData done [18:45:22]ExternCall_PrintAddStr [18:45:22]wPrintStart [18:45:22]Write to MH i2c: 01 00 00 25 07 2C [18:45:22]Write i2c OK [18:45:22]MH_I2C_Read... [18:45:22]Read from MH i2c: 01 [18:45:22]MH_I2C_Read... [18:45:22]Read from MH i2c: 01 07 00 [18:45:22]MH_I2C_Read... [18:45:22]Read from MH i2c: 01 07 00 25 07 00 00 00 00 00 FF 0F 41 [18:45:22]RasterBufferAndPrint [18:45:22]line Счет N : (1)2885239 [18:45:22]line ИНН: 02508201610067 [18:45:22]line Контрольно-Кассовый Чек [18:45:22]line ПРОДАЖА [18:45:22]line ТРК (МРК, ГНК) : 42 [18:45:22]line Товар: 2710124130 [18:45:22]line Аи-92-К-5 [18:45:22]line 14.950 * 66.90 [18:45:22]line = 1000.16 [18:45:22]line НДС 12% НСП 1% [18:45:22]line > о реализуемом товаре [18:45:22]line ОКРУГЛЕНИЕ: -0.16 [18:45:22]line ИТОГО: 1000.00 [18:45:22]line Внесено: 1000.00 [18:45:22]line СДАЧА: 0.00 [18:45:22]line НСП 1% : 8.85 [18:45:22]line НДС 12% : 106.21 [18:45:22]line Наличными: 1000.00 [18:45:22]line Безнал.: 0.00 [18:45:22]line Место: АЗС № 85 "Партнер Нефть" [18:45:22]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:45:22]line СНО: Общий режим [18:45:22]line Чек 348 20.10.2024 18:45 [18:45:22]line Смена: 193 ФФД: 1.0 [18:45:22]line ЗНМ: 0300000167 [18:45:22]line РНМ: 0000000000156251 [18:45:22]line Версия ККМ: v1.0 [18:45:22]line ФМ: 0000000000963346 [18:45:22]line ФД: 69503 [18:45:22]line ФПД: 99950389254228 [18:45:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184520&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69503&fm=99950389254228&tin=02508201610067®Number=0000000000156251&sum=100000 [18:45:22]OFD Sender: Processing packet 69503 [packets to send 18, broken 17] [18:45:22]ProducePacketName [18:45:22]name=ofd_packets/00069503 [18:45:22]OFD Sender: To server: pG, [18:45:22]CommunicateWithHost lk.salyk.kg:30040 [18:45:22]ConnectInit lk.salyk.kg [18:45:22]written 0, free lines is 4095 [18:45:22]Connected sock=10 [18:45:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 06 52 07 01 90 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 C0 4F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7F 0F 01 00 35 04 06 00 5A E7 83 72 58 54 15 8A EF 70 FE 4C F6 25 [18:45:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 FA CE 47 00 F5 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 7F 0F 01 00 F4 03 04 00 66 F9 14 67 B6 04 01 00 00 DD 5C 30 F3 90 C4 E4 A4 [18:45:22]CommunicateWithHost err = 0 [18:45:22]CheckOFDResponse [18:45:22]1017 (14) - 77093643461234 [18:45:22]1041 (16) - 0000000000963346 [18:45:22]1040 (4) - 69503 [18:45:22]1012 (4) - 20.10.2024 12:36 [18:45:22]1206 (1) - 0 [18:45:22]OFD Sender: Remove packet 69503 [18:45:22]ProducePacketName [18:45:22]name=ofd_packets/00069503 [18:45:22]NVStorageDeleteData [18:45:22]Write to MH i2c: 01 00 00 50 07 57 [18:45:22]Write i2c OK [18:45:22]MH_I2C_Read... [18:45:22]Read from MH i2c: 01 [18:45:22]MH_I2C_Read... [18:45:22]Read from MH i2c: 01 07 00 [18:45:22]MH_I2C_Read... [18:45:22]Read from MH i2c: 01 07 00 50 07 00 00 00 00 00 F6 0C 60 [18:45:22]RasterBufferAndPrint [18:45:22]line [18:45:22]line [18:45:22]line [18:45:22]line [18:45:22]line [18:45:22]written 0, free lines is 3324 [18:45:22]MH_Cut [18:45:22]Write to MH i2c: D1 01 00 57 07 01 30 [18:45:22]Write i2c OK [18:45:22]MH_I2C_Read... [18:45:22]Read from MH i2c: D1 [18:45:22]MH_I2C_Read... [18:45:22]Read from MH i2c: D1 01 00 [18:45:22]MH_I2C_Read... [18:45:22]Read from MH i2c: D1 01 00 57 07 00 2F [18:45:22]Write to MH i2c: 01 00 00 58 07 5F [18:45:22]Write i2c OK [18:45:22]MH_I2C_Read... [18:45:23]OFD Sender: No OFD packet to send [18:45:23]*** Cut start [18:45:23]*** Partial cut [18:45:23]*** CUTSNS_PIN = 1 [18:45:23]*** CUTSNS_PIN = 0 [18:45:23]*** Brake cut motor [18:45:24]Read from MH i2c: 01 [18:45:24]MH_I2C_Read... [18:45:24]*** Stop cut motor [18:45:24]*** Cut end [18:45:24]Read from MH i2c: 01 07 00 [18:45:24]MH_I2C_Read... [18:45:24]Read from MH i2c: 01 07 00 58 07 00 00 00 00 00 FF 0F 74 [18:45:24]process_action close_receipt done [18:45:24]requested_data is exist [18:45:24]produce_requested_data [18:45:24]requested_item fm.sn is exist - process it [18:45:24]wFMCommunicate request_size=4 [18:45:24]MH_SAM_APDU [18:45:24]CAPDU: 80 11 00 00 [18:45:24]Write to MH i2c: E2 08 00 59 07 80 11 00 00 00 00 00 00 DA [18:45:24]Write i2c OK [18:45:24]MH_I2C_Read... [18:45:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:24]Read from MH i2c: E2 [18:45:24]MH_I2C_Read... [18:45:24]Read from MH i2c: E2 17 00 [18:45:24]MH_I2C_Read... [18:45:24]Read from MH i2c: E2 17 00 59 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2C [18:45:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:45:24]wFMCommunicate OK [18:45:24]requested_item fd.num is exist - process it [18:45:24]SAM_PROTO_GetFieldsCounters [18:45:24]wFMCommunicate request_size=4 [18:45:24]MH_SAM_APDU [18:45:24]CAPDU: 80 13 00 00 [18:45:24]Write to MH i2c: E2 08 00 5A 07 80 13 00 00 00 00 00 00 DD [18:45:24]Write i2c OK [18:45:24]MH_I2C_Read... [18:45:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:24]Read from MH i2c: E2 [18:45:24]MH_I2C_Read... [18:45:24]Read from MH i2c: E2 62 00 [18:45:24]MH_I2C_Read... [18:45:24]Read from MH i2c: E2 62 00 5A 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7F 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 5F [18:45:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 7F 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:45:24]wFMCommunicate OK [18:45:24]SAM_PROTO_GetFieldsCounters done [18:45:24]requested_item shift.num is exist - process it [18:45:24]requested_item shift.opened is exist - process it [18:45:24]req_shift_opened [18:45:24]FM_GetShiftState [18:45:24]SAM_PROTO_GetShiftState [18:45:24]wFMCommunicate request_size=4 [18:45:24]MH_SAM_APDU [18:45:24]CAPDU: 80 13 01 00 [18:45:24]Write to MH i2c: E2 08 00 5B 07 80 13 01 00 00 00 00 00 DF [18:45:24]Write i2c OK [18:45:24]MH_I2C_Read... [18:45:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:24]Read from MH i2c: E2 [18:45:24]MH_I2C_Read... [18:45:24]Read from MH i2c: E2 0E 00 [18:45:24]MH_I2C_Read... [18:45:24]Read from MH i2c: E2 0E 00 5B 07 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 E5 [18:45:24]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:45:24]wFMCommunicate OK [18:45:24]SAM_PROTO_GetShiftState done [18:45:24]FM_GetShiftState done [18:45:24]req_shift_opened done [18:45:24]requested_item shift.open_date is exist - process it [18:45:24]req_shift_open_date [18:45:24]req_shift_open_date done [18:45:24]produce_requested_data done [18:45:24]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69503,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [18:45:24]process_action_free close_receipt [18:45:24]json_value_free [18:45:24]json_value_free done [18:45:24]process_json_proto returns [18:45:24]Send response to host [18:45:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69503,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [18:45:24]free response buf [18:45:24]execute_script done [18:45:24]execute_script returns [18:45:24]free content buf [18:45:24]Sock 7.Close socket [18:45:24]Sock 7.Thread stoped [18:45:28]OFD Sender: No OFD packet to send [18:45:33]OFD Sender: No OFD packet to send [18:45:38]OFD Sender: No OFD packet to send [18:45:43]OFD Sender: No OFD packet to send [18:45:48]OFD Sender: No OFD packet to send [18:45:53]OFD Sender: No OFD packet to send [18:45:58]OFD Sender: No OFD packet to send [18:46:03]OFD Sender: No OFD packet to send [18:46:08]OFD Sender: No OFD packet to send [18:46:13]OFD Sender: No OFD packet to send [18:46:15]accept exits with 9 [18:46:15]New connection [18:46:15]New thread 3066654052 created [18:46:15]Thread 3066797412 joined [18:46:15]Waiting for new connection... [18:46:15] Sock 9.Parse request [18:46:15]Sock 9.Check first char [18:46:15]Sock 9.First char is OK [18:46:15]request: POST /json_proto HTTP/1.0 [18:46:15]Method: POST [18:46:15]URL: /json_proto [18:46:15]Method is POST - this is cgi request [18:46:15]url: /json_proto [18:46:15]query_string will be loaded in cgi processing [18:46:15]execute_cgi json_proto POST (null) [18:46:15]execute_cgi path=json_proto method=POST [18:46:15]POST find Content-Length [18:46:15]Host: 172.17.50.3:8080 [18:46:15]Content-Length: 678 [18:46:15]Content-Type: application/json [18:46:15] [18:46:15]POST finish read [18:46:15]Found Content-Length = 678 [18:46:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.590, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:15]execute_script... [18:46: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)2885241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.590, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:15]POST & json_proto [18:46:15]process_json_proto [18:46:15]json parsed OK: [18:46:15]protocol is kg_v1.0 [18:46:15]action value=close_receipt [18:46:15]process_action close_receipt [18:46:15]cmd_close_receipt [18:46:15]MH_GetDate [18:46:15]Write to MH i2c: F0 00 00 5C 07 52 [18:46:15]Write i2c OK [18:46:15]MH_I2C_Read... [18:46:15]Read from MH i2c: F0 [18:46:15]MH_I2C_Read... [18:46:15]Read from MH i2c: F0 09 00 [18:46:15]MH_I2C_Read... [18:46:15]Read from MH i2c: F0 09 00 5C 07 00 F7 4F 15 67 6B 98 1E 66 A4 [18:46:15]GetLastDocTimeStamp 1729449920 [18:46:15]current date 1729449975 [18:46:15]FM_GetShiftState [18:46:15]SAM_PROTO_GetShiftState [18:46:15]wFMCommunicate request_size=4 [18:46:15]MH_SAM_APDU [18:46:15]CAPDU: 80 13 01 00 [18:46:15]Write to MH i2c: E2 08 00 5D 07 80 13 01 00 00 00 00 00 E1 [18:46:15]Write i2c OK [18:46:15]MH_I2C_Read... [18:46:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:15]Read from MH i2c: E2 [18:46:15]MH_I2C_Read... [18:46:15]Read from MH i2c: E2 0E 00 [18:46:15]MH_I2C_Read... [18:46:15]Read from MH i2c: E2 0E 00 5D 07 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 E7 [18:46:15]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:46:15]wFMCommunicate OK [18:46:15]SAM_PROTO_GetShiftState done [18:46:15]FM_GetShiftState done [18:46:15]opened in 1729383220 [18:46:15]opened+sec_in_day 1729469620 [18:46:15]quantity*price = 24017 [18:46:15]sum+1 = 24018 [18:46:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.12 НДС 12% : 25.50 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 349 20.10.2024 18:46 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69504 ФПД: 114860948654443 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184615&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69504&fm=114860948654443&tin=02508201610067®Number=0000000000156251&sum=24000 [18:46:16]StoreToDocumentArchive [18:46:16]shift 193 fd 69504 [18:46:16]save to /storage/0193/doc_00069504 [18:46:16]save last doc name /storage/0193/doc_00069504 to /storage/kkm_last_doc_name [18:46:16]save OK [18:46:16]Clear old archive folders... [18:46:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:46:16]tlvbuf is 00F0E3F0 [18:46:16]SAM_PROTO_ClearQueue [18:46:16]wFMCommunicate request_size=4 [18:46:16]MH_SAM_APDU [18:46:16]CAPDU: 80 09 00 00 [18:46:16]Write to MH i2c: E2 08 00 6A 07 80 09 00 00 00 00 00 00 E3 [18:46:16]Write i2c OK [18:46:16]MH_I2C_Read... [18:46:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:46:16]Read from MH i2c: E2 [18:46:16]MH_I2C_Read... [18:46:16]Read from MH i2c: E2 03 00 [18:46:16]MH_I2C_Read... [18:46:16]Read from MH i2c: E2 03 00 6A 07 00 90 00 E5 [18:46:16]RAPDU: 90 00 [18:46:16]wFMCommunicate OK [18:46:16]SAM_PROTO_ClearQueue done [18:46:16]KKMCreateOFDPacket [18:46:16]OFDProtocolAddRootSTLVToBuf [18:46:16]FM_MakeSignedData [18:46:16]FM_MakeSignedData [18:46:16]SAM_PROTO_SignData [18:46:16]wFMCommunicate request_size=4 [18:46:16]MH_SAM_APDU [18:46:16]CAPDU: 80 0D 01 02 [18:46:16]Write to MH i2c: E2 08 00 6B 07 80 0D 01 02 00 00 00 00 EB [18:46:16]Write i2c OK [18:46:16]MH_I2C_Read... [18:46:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:46:16]Read from MH i2c: E2 [18:46:16]MH_I2C_Read... [18:46:16]Read from MH i2c: E2 03 00 [18:46:16]MH_I2C_Read... [18:46:16]Read from MH i2c: E2 03 00 6B 07 00 90 00 E6 [18:46:16]RAPDU: 90 00 [18:46:16]wFMCommunicate OK [18:46:16]wFMCommunicate request_size=255 [18:46:16]MH_SAM_APDU [18:46:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 F7 4F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 80 0F 01 00 35 04 06 00 68 [18:46:16]Write to MH i2c: E2 02 01 6C 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 F7 4F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 80 0F 01 00 35 04 06 00 68 00 00 53 [18:46:16]Write i2c OK [18:46:16]MH_I2C_Read... [18:46:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:16]Read from MH i2c: E2 [18:46:16]MH_I2C_Read... [18:46:16]Read from MH i2c: E2 03 00 [18:46:16]MH_I2C_Read... [18:46:16]Read from MH i2c: E2 03 00 6C 07 00 90 00 E7 [18:46:16]RAPDU: 90 00 [18:46:16]wFMCommunicate OK [18:46:16]wFMCommunicate request_size=10 [18:46:16]MH_SAM_APDU [18:46:16]CAPDU: 80 0D 02 02 05 77 26 0B 09 6B [18:46:16]Write to MH i2c: E2 0D 00 6D 07 80 0D 02 02 05 00 77 26 0B 09 6B 00 00 14 [18:46:16]Write i2c OK [18:46:16]MH_I2C_Read... [18:46:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:16]Read from MH i2c: E2 [18:46:16]MH_I2C_Read... [18:46:16]Read from MH i2c: E2 03 00 [18:46:16]MH_I2C_Read... [18:46:16]Read from MH i2c: E2 03 00 6D 07 00 90 00 E8 [18:46:16]RAPDU: 90 00 [18:46:16]wFMCommunicate OK [18:46:16]wFMCommunicate request_size=4 [18:46:16]MH_SAM_APDU [18:46:16]CAPDU: 80 0D 03 02 [18:46:16]Write to MH i2c: E2 08 00 6E 07 80 0D 03 02 00 00 00 00 F0 [18:46:16]Write i2c OK [18:46:16]MH_I2C_Read... [18:46:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:46:16]Read from MH i2c: E2 [18:46:16]MH_I2C_Read... [18:46:16]Read from MH i2c: E2 0B 00 [18:46:16]MH_I2C_Read... [18:46:16]Read from MH i2c: E2 0B 00 6E 07 00 08 B9 1B 4C F1 6E 8B 06 90 00 09 [18:46:16]RAPDU: 08 B9 1B 4C F1 6E 8B 06 90 00 [18:46:16]wFMCommunicate OK [18:46:16]SAM_PROTO_SignData done [18:46:16]FM_MakeSignedData done [18:46:16]CreateOFDProtocolMessage [18:46:16]wFMCommunicate request_size=4 [18:46:16]MH_SAM_APDU [18:46:16]CAPDU: 80 11 00 00 [18:46:16]Write to MH i2c: E2 08 00 6F 07 80 11 00 00 00 00 00 00 F0 [18:46:16]Write i2c OK [18:46:16]MH_I2C_Read... [18:46:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:16]Read from MH i2c: E2 [18:46:16]MH_I2C_Read... [18:46:16]Read from MH i2c: E2 17 00 [18:46:16]MH_I2C_Read... [18:46:16]Read from MH i2c: E2 17 00 6F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 42 [18:46:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:46:16]wFMCommunicate OK [18:46:16]CreateOFDProtocolMessage done [18:46:16]OFDSenderStorePacket 69504 [18:46:16]StoreOFDPacket docnum=69504 [18:46:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 0B 7B 07 01 09 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 F7 4F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 80 0F 01 00 35 04 06 00 68 77 26 0B 09 6B 08 B9 1B 4C F1 6E 8B 06 [18:46:16]CheckFolder [18:46:16]dirname=/storage/ofd_packets [18:46:16]CheckFolder done [18:46:16]ProducePacketName [18:46:16]name=ofd_packets/00069504 [18:46:16]NVStorageSaveData ofd_packets/00069504 [18:46:16]File name is /storage/ofd_packets/00069504 [18:46:16]Write 301 bytes [18:46:16]NVStorageSaveData done [18:46:16]OFDSenderStorePacket done [18:46:16]KKMCreateOFDPacket done [18:46:16]NVStorageSaveData kkm_last_timestamp [18:46:16]File name is /storage/kkm_last_timestamp [18:46:16]Write 4 bytes [18:46:16]NVStorageSaveData done [18:46:16]ExternCall_PrintAddStr [18:46:16]wPrintStart [18:46:16]Write to MH i2c: 01 00 00 70 07 77 [18:46:16]Write i2c OK [18:46:16]MH_I2C_Read... [18:46:16]Read from MH i2c: 01 [18:46:16]MH_I2C_Read... [18:46:16]Read from MH i2c: 01 07 00 [18:46:16]MH_I2C_Read... [18:46:16]Read from MH i2c: 01 07 00 70 07 00 00 00 00 00 FF 0F 8C [18:46:16]RasterBufferAndPrint [18:46:16]line Счет N : (1)2885241 [18:46:16]line ИНН: 02508201610067 [18:46:16]line Контрольно-Кассовый Чек [18:46:16]line ПРОДАЖА [18:46:16]line ТРК (МРК, ГНК) : 32 [18:46:16]line Товар: 2710124130 [18:46:16]line Аи-92-К-5 [18:46:16]line 3.590 * 66.90 [18:46:16]line = 240.17 [18:46:16]line НДС 12% НСП 1% [18:46:16]line > о реализуемом товаре [18:46:16]line ОКРУГЛЕНИЕ: -0.17 [18:46:16]line ИТОГО: 240.00 [18:46:16]line Внесено: 240.00 [18:46:16]line СДАЧА: 0.00 [18:46:16]line НСП 1% : 2.12 [18:46:16]line НДС 12% : 25.50 [18:46:16]line Наличными: 240.00 [18:46:16]line Безнал.: 0.00 [18:46:16]line Место: АЗС № 85 "Партнер Нефть" [18:46:16]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:46:16]line СНО: Общий режим [18:46:16]line Чек 349 20.10.2024 18:46 [18:46:16]line Смена: 193 ФФД: 1.0 [18:46:16]line ЗНМ: 0300000167 [18:46:16]line РНМ: 0000000000156251 [18:46:16]line Версия ККМ: v1.0 [18:46:16]line ФМ: 0000000000963346 [18:46:16]line ФД: 69504 [18:46:16]line ФПД: 114860948654443 [18:46:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184615&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69504&fm=114860948654443&tin=02508201610067®Number=0000000000156251&sum=24000 [18:46:17]OFD Sender: Processing packet 69504 [packets to send 18, broken 17] [18:46:17]ProducePacketName [18:46:17]name=ofd_packets/00069504 [18:46:17]OFD Sender: To server: pG, [18:46:17]CommunicateWithHost lk.salyk.kg:30040 [18:46:17]ConnectInit lk.salyk.kg [18:46:17]written 0, free lines is 4095 [18:46:17]Connected sock=10 [18:46:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 0B 7B 07 01 09 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 F7 4F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 80 0F 01 00 35 04 06 00 68 77 26 0B 09 6B 08 B9 1B 4C F1 6E 8B 06 [18:46:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 4F B4 47 00 04 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 80 0F 01 00 F4 03 04 00 9D F9 14 67 B6 04 01 00 00 45 3A 8C 94 1B 8E 10 48 [18:46:17]CommunicateWithHost err = 0 [18:46:17]CheckOFDResponse [18:46:17]1017 (14) - 77093643461234 [18:46:17]1041 (16) - 0000000000963346 [18:46:17]1040 (4) - 69504 [18:46:17]1012 (4) - 20.10.2024 12:37 [18:46:17]1206 (1) - 0 [18:46:17]OFD Sender: Remove packet 69504 [18:46:17]ProducePacketName [18:46:17]name=ofd_packets/00069504 [18:46:17]NVStorageDeleteData [18:46:17]Write to MH i2c: 01 00 00 9B 07 A2 [18:46:17]Write i2c OK [18:46:17]MH_I2C_Read... [18:46:17]Read from MH i2c: 01 [18:46:17]MH_I2C_Read... [18:46:17]Read from MH i2c: 01 07 00 [18:46:17]MH_I2C_Read... [18:46:17]Read from MH i2c: 01 07 00 9B 07 00 00 00 00 00 EC 0C A1 [18:46:17]RasterBufferAndPrint [18:46:17]line [18:46:17]line [18:46:17]line [18:46:17]line [18:46:17]line [18:46:17]written 0, free lines is 3314 [18:46:17]MH_Cut [18:46:17]Write to MH i2c: D1 01 00 A2 07 01 7B [18:46:17]Write i2c OK [18:46:17]MH_I2C_Read... [18:46:17]Read from MH i2c: D1 [18:46:17]MH_I2C_Read... [18:46:17]Read from MH i2c: D1 01 00 [18:46:17]MH_I2C_Read... [18:46:17]Read from MH i2c: D1 01 00 A2 07 00 7A [18:46:17]Write to MH i2c: 01 00 00 A3 07 AA [18:46:17]Write i2c OK [18:46:17]MH_I2C_Read... [18:46:18]OFD Sender: No OFD packet to send [18:46:18]*** Cut start [18:46:18]*** Partial cut [18:46:18]*** CUTSNS_PIN = 1 [18:46:18]*** CUTSNS_PIN = 0 [18:46:18]*** Brake cut motor [18:46:18]Read from MH i2c: 01 [18:46:18]MH_I2C_Read... [18:46:18]*** Stop cut motor [18:46:18]*** Cut end [18:46:18]Read from MH i2c: 01 07 00 [18:46:18]MH_I2C_Read... [18:46:18]Read from MH i2c: 01 07 00 A3 07 00 00 00 00 00 FF 0F BF [18:46:18]process_action close_receipt done [18:46:18]requested_data is exist [18:46:18]produce_requested_data [18:46:18]requested_item fm.sn is exist - process it [18:46:18]wFMCommunicate request_size=4 [18:46:18]MH_SAM_APDU [18:46:18]CAPDU: 80 11 00 00 [18:46:18]Write to MH i2c: E2 08 00 A4 07 80 11 00 00 00 00 00 00 25 [18:46:18]Write i2c OK [18:46:18]MH_I2C_Read... [18:46:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:19]Read from MH i2c: E2 [18:46:19]MH_I2C_Read... [18:46:19]Read from MH i2c: E2 17 00 [18:46:19]MH_I2C_Read... [18:46:19]Read from MH i2c: E2 17 00 A4 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 77 [18:46:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:46:19]wFMCommunicate OK [18:46:19]requested_item fd.num is exist - process it [18:46:19]SAM_PROTO_GetFieldsCounters [18:46:19]wFMCommunicate request_size=4 [18:46:19]MH_SAM_APDU [18:46:19]CAPDU: 80 13 00 00 [18:46:19]Write to MH i2c: E2 08 00 A5 07 80 13 00 00 00 00 00 00 28 [18:46:19]Write i2c OK [18:46:19]MH_I2C_Read... [18:46:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:46:19]Read from MH i2c: E2 [18:46:19]MH_I2C_Read... [18:46:19]Read from MH i2c: E2 62 00 [18:46:19]MH_I2C_Read... [18:46:19]Read from MH i2c: E2 62 00 A5 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 80 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 5D 01 00 00 5E 04 04 00 5D 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 AE [18:46:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 80 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 5D 01 00 00 5E 04 04 00 5D 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:46:19]wFMCommunicate OK [18:46:19]SAM_PROTO_GetFieldsCounters done [18:46:19]requested_item shift.num is exist - process it [18:46:19]requested_item shift.opened is exist - process it [18:46:19]req_shift_opened [18:46:19]FM_GetShiftState [18:46:19]SAM_PROTO_GetShiftState [18:46:19]wFMCommunicate request_size=4 [18:46:19]MH_SAM_APDU [18:46:19]CAPDU: 80 13 01 00 [18:46:19]Write to MH i2c: E2 08 00 A6 07 80 13 01 00 00 00 00 00 2A [18:46:19]Write i2c OK [18:46:19]MH_I2C_Read... [18:46:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:19]Read from MH i2c: E2 [18:46:19]MH_I2C_Read... [18:46:19]Read from MH i2c: E2 0E 00 [18:46:19]MH_I2C_Read... [18:46:19]Read from MH i2c: E2 0E 00 A6 07 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 30 [18:46:19]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:46:19]wFMCommunicate OK [18:46:19]SAM_PROTO_GetShiftState done [18:46:19]FM_GetShiftState done [18:46:19]req_shift_opened done [18:46:19]requested_item shift.open_date is exist - process it [18:46:19]req_shift_open_date [18:46:19]req_shift_open_date done [18:46:19]produce_requested_data done [18:46:19]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69504,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [18:46:19]process_action_free close_receipt [18:46:19]json_value_free [18:46:19]json_value_free done [18:46:19]process_json_proto returns [18:46:19]Send response to host [18:46:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69504,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [18:46:19]free response buf [18:46:19]execute_script done [18:46:19]execute_script returns [18:46:19]free content buf [18:46:19]Sock 9.Close socket [18:46:19]Sock 9.Thread stoped [18:46:23]OFD Sender: No OFD packet to send [18:46:28]OFD Sender: No OFD packet to send [18:46:33]OFD Sender: No OFD packet to send [18:46:38]OFD Sender: No OFD packet to send [18:46:43]OFD Sender: No OFD packet to send [18:46:48]OFD Sender: No OFD packet to send [18:46:53]OFD Sender: No OFD packet to send [18:46:58]OFD Sender: No OFD packet to send [18:47:03]OFD Sender: No OFD packet to send [18:47:08]OFD Sender: No OFD packet to send [18:47:13]OFD Sender: No OFD packet to send [18:47:18]OFD Sender: No OFD packet to send [18:47:23]OFD Sender: No OFD packet to send [18:47:28]OFD Sender: No OFD packet to send [18:47:33]OFD Sender: No OFD packet to send [18:47:38]OFD Sender: No OFD packet to send [18:47:43]OFD Sender: No OFD packet to send [18:47:44]accept exits with 7 [18:47:44]New connection [18:47:44]New thread 3066797412 created [18:47:44]Thread 3066654052 joined [18:47:44]Waiting for new connection... [18:47:44] Sock 7.Parse request [18:47:44]Sock 7.Check first char [18:47:44]Sock 7.First char is OK [18:47:44]request: POST /json_proto HTTP/1.0 [18:47:44]Method: POST [18:47:44]URL: /json_proto [18:47:44]Method is POST - this is cgi request [18:47:44]url: /json_proto [18:47:44]query_string will be loaded in cgi processing [18:47:44]execute_cgi json_proto POST (null) [18:47:44]execute_cgi path=json_proto method=POST [18:47:44]POST find Content-Length [18:47:44]Host: 172.17.50.3:8080 [18:47:44]Content-Length: 768 [18:47:44]Content-Type: application/json [18:47:44] [18:47:44]POST finish read [18:47:44]Found Content-Length = 768 [18:47:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 800.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:44]execute_script... [18:47:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 800.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:44]POST & json_proto [18:47:44]process_json_proto [18:47:44]json parsed OK: [18:47:44]protocol is kg_v1.0 [18:47:44]action value=close_receipt [18:47:44]process_action close_receipt [18:47:44]cmd_close_receipt [18:47:44]MH_GetDate [18:47:44]Write to MH i2c: F0 00 00 A7 07 9D [18:47:44]Write i2c OK [18:47:44]MH_I2C_Read... [18:47:44]Read from MH i2c: F0 [18:47:44]MH_I2C_Read... [18:47:44]Read from MH i2c: F0 09 00 [18:47:44]MH_I2C_Read... [18:47:44]Read from MH i2c: F0 09 00 A7 07 00 50 50 15 67 6B 98 1E 66 49 [18:47:44]GetLastDocTimeStamp 1729449975 [18:47:44]current date 1729450064 [18:47:44]FM_GetShiftState [18:47:44]SAM_PROTO_GetShiftState [18:47:44]wFMCommunicate request_size=4 [18:47:44]MH_SAM_APDU [18:47:44]CAPDU: 80 13 01 00 [18:47:44]Write to MH i2c: E2 08 00 A8 07 80 13 01 00 00 00 00 00 2C [18:47:44]Write i2c OK [18:47:44]MH_I2C_Read... [18:47:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:44]Read from MH i2c: E2 [18:47:44]MH_I2C_Read... [18:47:44]Read from MH i2c: E2 0E 00 [18:47:44]MH_I2C_Read... [18:47:44]Read from MH i2c: E2 0E 00 A8 07 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 32 [18:47:44]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:47:44]wFMCommunicate OK [18:47:44]SAM_PROTO_GetShiftState done [18:47:44]FM_GetShiftState done [18:47:44]opened in 1729383220 [18:47:44]opened+sec_in_day 1729469620 [18:47:44]quantity*price = 80012 [18:47:44]sum+1 = 80013 [18:47:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.12 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 0.00 Безнал.: 800.12 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 350 20.10.2024 18:47 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69505 ФПД: 108126579047289 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184744&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69505&fm=108126579047289&tin=02508201610067®Number=0000000000156251&sum=80012 [18:47:45]StoreToDocumentArchive [18:47:45]shift 193 fd 69505 [18:47:45]save to /storage/0193/doc_00069505 [18:47:45]save last doc name /storage/0193/doc_00069505 to /storage/kkm_last_doc_name [18:47:45]save OK [18:47:45]Clear old archive folders... [18:47:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:47:45]tlvbuf is 00F37F30 [18:47:45]SAM_PROTO_ClearQueue [18:47:45]wFMCommunicate request_size=4 [18:47:45]MH_SAM_APDU [18:47:45]CAPDU: 80 09 00 00 [18:47:45]Write to MH i2c: E2 08 00 B5 07 80 09 00 00 00 00 00 00 2E [18:47:45]Write i2c OK [18:47:45]MH_I2C_Read... [18:47:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:47:45]Read from MH i2c: E2 [18:47:45]MH_I2C_Read... [18:47:45]Read from MH i2c: E2 03 00 [18:47:45]MH_I2C_Read... [18:47:45]Read from MH i2c: E2 03 00 B5 07 00 90 00 30 [18:47:45]RAPDU: 90 00 [18:47:45]wFMCommunicate OK [18:47:45]SAM_PROTO_ClearQueue done [18:47:45]KKMCreateOFDPacket [18:47:45]OFDProtocolAddRootSTLVToBuf [18:47:45]FM_MakeSignedData [18:47:45]FM_MakeSignedData [18:47:45]SAM_PROTO_SignData [18:47:45]wFMCommunicate request_size=4 [18:47:45]MH_SAM_APDU [18:47:45]CAPDU: 80 0D 01 02 [18:47:45]Write to MH i2c: E2 08 00 B6 07 80 0D 01 02 00 00 00 00 36 [18:47:45]Write i2c OK [18:47:45]MH_I2C_Read... [18:47:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:47:45]Read from MH i2c: E2 [18:47:45]MH_I2C_Read... [18:47:45]Read from MH i2c: E2 03 00 [18:47:45]MH_I2C_Read... [18:47:45]Read from MH i2c: E2 03 00 B6 07 00 90 00 31 [18:47:45]RAPDU: 90 00 [18:47:45]wFMCommunicate OK [18:47:45]wFMCommunicate request_size=255 [18:47:45]MH_SAM_APDU [18:47:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 50 50 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 81 0F 01 00 35 04 06 00 62 [18:47:45]Write to MH i2c: E2 02 01 B7 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 50 50 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 81 0F 01 00 35 04 06 00 62 00 00 F2 [18:47:45]Write i2c OK [18:47:45]MH_I2C_Read... [18:47:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:45]Read from MH i2c: E2 [18:47:45]MH_I2C_Read... [18:47:45]Read from MH i2c: E2 03 00 [18:47:45]MH_I2C_Read... [18:47:45]Read from MH i2c: E2 03 00 B7 07 00 90 00 32 [18:47:45]RAPDU: 90 00 [18:47:45]wFMCommunicate OK [18:47:45]wFMCommunicate request_size=10 [18:47:45]MH_SAM_APDU [18:47:45]CAPDU: 80 0D 02 02 05 57 2E 55 BB 79 [18:47:45]Write to MH i2c: E2 0D 00 B8 07 80 0D 02 02 05 00 57 2E 55 BB 79 00 00 51 [18:47:45]Write i2c OK [18:47:45]MH_I2C_Read... [18:47:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:45]Read from MH i2c: E2 [18:47:45]MH_I2C_Read... [18:47:45]Read from MH i2c: E2 03 00 [18:47:45]MH_I2C_Read... [18:47:45]Read from MH i2c: E2 03 00 B8 07 00 90 00 33 [18:47:45]RAPDU: 90 00 [18:47:45]wFMCommunicate OK [18:47:45]wFMCommunicate request_size=4 [18:47:45]MH_SAM_APDU [18:47:45]CAPDU: 80 0D 03 02 [18:47:45]Write to MH i2c: E2 08 00 B9 07 80 0D 03 02 00 00 00 00 3B [18:47:45]Write i2c OK [18:47:45]MH_I2C_Read... [18:47:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:47:45]Read from MH i2c: E2 [18:47:45]MH_I2C_Read... [18:47:45]Read from MH i2c: E2 0B 00 [18:47:45]MH_I2C_Read... [18:47:45]Read from MH i2c: E2 0B 00 B9 07 00 EB 52 4F 93 44 24 B8 C2 90 00 3D [18:47:45]RAPDU: EB 52 4F 93 44 24 B8 C2 90 00 [18:47:45]wFMCommunicate OK [18:47:45]SAM_PROTO_SignData done [18:47:45]FM_MakeSignedData done [18:47:45]CreateOFDProtocolMessage [18:47:45]wFMCommunicate request_size=4 [18:47:45]MH_SAM_APDU [18:47:45]CAPDU: 80 11 00 00 [18:47:45]Write to MH i2c: E2 08 00 BA 07 80 11 00 00 00 00 00 00 3B [18:47:45]Write i2c OK [18:47:45]MH_I2C_Read... [18:47:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:45]Read from MH i2c: E2 [18:47:45]MH_I2C_Read... [18:47:45]Read from MH i2c: E2 17 00 [18:47:45]MH_I2C_Read... [18:47:45]Read from MH i2c: E2 17 00 BA 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8D [18:47:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:47:45]wFMCommunicate OK [18:47:45]CreateOFDProtocolMessage done [18:47:45]OFDSenderStorePacket 69505 [18:47:45]StoreOFDPacket docnum=69505 [18:47:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 56 91 07 01 D3 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 50 50 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 81 0F 01 00 35 04 06 00 62 57 2E 55 BB 79 EB 52 4F 93 44 24 B8 C2 [18:47:45]CheckFolder [18:47:45]dirname=/storage/ofd_packets [18:47:45]CheckFolder done [18:47:45]ProducePacketName [18:47:45]name=ofd_packets/00069505 [18:47:45]NVStorageSaveData ofd_packets/00069505 [18:47:45]File name is /storage/ofd_packets/00069505 [18:47:45]Write 301 bytes [18:47:45]NVStorageSaveData done [18:47:45]OFDSenderStorePacket done [18:47:45]KKMCreateOFDPacket done [18:47:45]NVStorageSaveData kkm_last_timestamp [18:47:45]File name is /storage/kkm_last_timestamp [18:47:45]Write 4 bytes [18:47:45]NVStorageSaveData done [18:47:45]ExternCall_PrintAddStr [18:47:45]wPrintStart [18:47:45]Write to MH i2c: 01 00 00 BB 07 C2 [18:47:45]Write i2c OK [18:47:45]MH_I2C_Read... [18:47:45]Read from MH i2c: 01 [18:47:45]MH_I2C_Read... [18:47:45]Read from MH i2c: 01 07 00 [18:47:45]MH_I2C_Read... [18:47:45]Read from MH i2c: 01 07 00 BB 07 00 00 00 00 00 FF 0F D7 [18:47:45]RasterBufferAndPrint [18:47:45]line Счет N : (1)2885242 [18:47:45]line ИНН: 02508201610067 [18:47:45]line Контрольно-Кассовый Чек [18:47:45]line ПРОДАЖА [18:47:45]line ТРК (МРК, ГНК) : 22 [18:47:45]line Товар: 2710124130 [18:47:45]line Аи-92-К-5 [18:47:45]line 11.960 * 66.90 [18:47:45]line = 800.12 [18:47:45]line НДС 12% НСП 1% [18:47:45]line > о реализуемом товаре [18:47:45]line ИТОГО: 800.12 [18:47:45]line НСП 1% : 7.08 [18:47:45]line НДС 12% : 84.97 [18:47:45]line Наличными: 0.00 [18:47:45]line Безнал.: 800.12 [18:47:45]line Место: АЗС № 85 "Партнер Нефть" [18:47:45]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:47:45]line СНО: Общий режим [18:47:45]line Чек 350 20.10.2024 18:47 [18:47:45]line Смена: 193 ФФД: 1.0 [18:47:45]line ЗНМ: 0300000167 [18:47:45]line РНМ: 0000000000156251 [18:47:45]line Версия ККМ: v1.0 [18:47:45]line Платежная система: Mbank [18:47:45]line ФМ: 0000000000963346 [18:47:45]line ФД: 69505 [18:47:45]line ФПД: 108126579047289 [18:47:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T184744&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69505&fm=108126579047289&tin=02508201610067®Number=0000000000156251&sum=80012 [18:47:46]OFD Sender: Processing packet 69505 [packets to send 18, broken 17] [18:47:46]ProducePacketName [18:47:46]name=ofd_packets/00069505 [18:47:46]OFD Sender: To server: pG, [18:47:46]CommunicateWithHost lk.salyk.kg:30040 [18:47:46]ConnectInit lk.salyk.kg [18:47:46]written 0, free lines is 4095 [18:47:46]Connected sock=10 [18:47:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 56 91 07 01 D3 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 50 50 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 81 0F 01 00 35 04 06 00 62 57 2E 55 BB 79 EB 52 4F 93 44 24 B8 C2 [18:47:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 D7 F2 47 00 9F A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 81 0F 01 00 F4 03 04 00 F6 F9 14 67 B6 04 01 00 00 8A 99 5D C3 D1 99 F6 34 [18:47:46]CommunicateWithHost err = 0 [18:47:46]CheckOFDResponse [18:47:46]1017 (14) - 77093643461234 [18:47:46]1041 (16) - 0000000000963346 [18:47:46]1040 (4) - 69505 [18:47:46]1012 (4) - 20.10.2024 12:39 [18:47:46]1206 (1) - 0 [18:47:46]OFD Sender: Remove packet 69505 [18:47:46]ProducePacketName [18:47:46]name=ofd_packets/00069505 [18:47:46]NVStorageDeleteData [18:47:46]Write to MH i2c: 01 00 00 E4 07 EB [18:47:46]Write i2c OK [18:47:46]MH_I2C_Read... [18:47:46]Read from MH i2c: 01 [18:47:46]MH_I2C_Read... [18:47:46]Read from MH i2c: 01 07 00 [18:47:46]MH_I2C_Read... [18:47:46]Read from MH i2c: 01 07 00 E4 07 00 00 00 00 00 23 0D 22 [18:47:46]RasterBufferAndPrint [18:47:46]line [18:47:46]line [18:47:46]line [18:47:46]line [18:47:46]line [18:47:46]written 0, free lines is 3369 [18:47:46]MH_Cut [18:47:46]Write to MH i2c: D1 01 00 EB 07 01 C4 [18:47:46]Write i2c OK [18:47:46]MH_I2C_Read... [18:47:46]Read from MH i2c: D1 [18:47:46]MH_I2C_Read... [18:47:46]Read from MH i2c: D1 01 00 [18:47:46]MH_I2C_Read... [18:47:46]Read from MH i2c: D1 01 00 EB 07 00 C3 [18:47:46]Write to MH i2c: 01 00 00 EC 07 F3 [18:47:46]Write i2c OK [18:47:46]MH_I2C_Read... [18:47:47]OFD Sender: No OFD packet to send [18:47:47]*** Cut start [18:47:47]*** Partial cut [18:47:47]*** CUTSNS_PIN = 1 [18:47:47]*** CUTSNS_PIN = 0 [18:47:47]*** Brake cut motor [18:47:48]Read from MH i2c: 01 [18:47:48]MH_I2C_Read... [18:47:48]*** Stop cut motor [18:47:48]*** Cut end [18:47:48]Read from MH i2c: 01 07 00 [18:47:48]MH_I2C_Read... [18:47:48]Read from MH i2c: 01 07 00 EC 07 00 00 00 00 00 FF 0F 08 [18:47:48]process_action close_receipt done [18:47:48]requested_data is exist [18:47:48]produce_requested_data [18:47:48]requested_item fm.sn is exist - process it [18:47:48]wFMCommunicate request_size=4 [18:47:48]MH_SAM_APDU [18:47:48]CAPDU: 80 11 00 00 [18:47:48]Write to MH i2c: E2 08 00 ED 07 80 11 00 00 00 00 00 00 6E [18:47:48]Write i2c OK [18:47:48]MH_I2C_Read... [18:47:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:48]Read from MH i2c: E2 [18:47:48]MH_I2C_Read... [18:47:48]Read from MH i2c: E2 17 00 [18:47:48]MH_I2C_Read... [18:47:48]Read from MH i2c: E2 17 00 ED 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C0 [18:47:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:47:48]wFMCommunicate OK [18:47:48]requested_item fd.num is exist - process it [18:47:48]SAM_PROTO_GetFieldsCounters [18:47:48]wFMCommunicate request_size=4 [18:47:48]MH_SAM_APDU [18:47:48]CAPDU: 80 13 00 00 [18:47:48]Write to MH i2c: E2 08 00 EE 07 80 13 00 00 00 00 00 00 71 [18:47:48]Write i2c OK [18:47:48]MH_I2C_Read... [18:47:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:47:48]Read from MH i2c: E2 [18:47:48]MH_I2C_Read... [18:47:48]Read from MH i2c: E2 62 00 [18:47:48]MH_I2C_Read... [18:47:48]Read from MH i2c: E2 62 00 EE 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 81 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 FB [18:47:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 81 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:47:48]wFMCommunicate OK [18:47:48]SAM_PROTO_GetFieldsCounters done [18:47:48]requested_item shift.num is exist - process it [18:47:48]requested_item shift.opened is exist - process it [18:47:48]req_shift_opened [18:47:48]FM_GetShiftState [18:47:48]SAM_PROTO_GetShiftState [18:47:48]wFMCommunicate request_size=4 [18:47:48]MH_SAM_APDU [18:47:48]CAPDU: 80 13 01 00 [18:47:48]Write to MH i2c: E2 08 00 EF 07 80 13 01 00 00 00 00 00 73 [18:47:48]Write i2c OK [18:47:48]MH_I2C_Read... [18:47:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:48]Read from MH i2c: E2 [18:47:48]MH_I2C_Read... [18:47:48]Read from MH i2c: E2 0E 00 [18:47:48]MH_I2C_Read... [18:47:48]Read from MH i2c: E2 0E 00 EF 07 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 79 [18:47:48]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:47:48]wFMCommunicate OK [18:47:48]SAM_PROTO_GetShiftState done [18:47:48]FM_GetShiftState done [18:47:48]req_shift_opened done [18:47:48]requested_item shift.open_date is exist - process it [18:47:48]req_shift_open_date [18:47:48]req_shift_open_date done [18:47:48]produce_requested_data done [18:47:48]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69505,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [18:47:48]process_action_free close_receipt [18:47:48]json_value_free [18:47:48]json_value_free done [18:47:48]process_json_proto returns [18:47:48]Send response to host [18:47:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69505,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [18:47:48]free response buf [18:47:48]execute_script done [18:47:48]execute_script returns [18:47:48]free content buf [18:47:48]Sock 7.Close socket [18:47:48]Sock 7.Thread stoped [18:47:52]OFD Sender: No OFD packet to send [18:47:57]OFD Sender: No OFD packet to send [18:48:02]OFD Sender: No OFD packet to send [18:48:07]OFD Sender: No OFD packet to send [18:48:12]OFD Sender: No OFD packet to send [18:48:17]OFD Sender: No OFD packet to send [18:48:22]OFD Sender: No OFD packet to send [18:48:27]OFD Sender: No OFD packet to send [18:48:32]OFD Sender: No OFD packet to send [18:48:37]OFD Sender: No OFD packet to send [18:48:42]OFD Sender: No OFD packet to send [18:48:47]OFD Sender: No OFD packet to send [18:48:52]OFD Sender: No OFD packet to send [18:48:57]OFD Sender: No OFD packet to send [18:49:02]OFD Sender: No OFD packet to send [18:49:07]OFD Sender: No OFD packet to send [18:49:12]OFD Sender: No OFD packet to send [18:49:17]OFD Sender: No OFD packet to send [18:49:22]OFD Sender: No OFD packet to send [18:49:27]OFD Sender: No OFD packet to send [18:49:32]OFD Sender: No OFD packet to send [18:49:37]OFD Sender: No OFD packet to send [18:49:42]OFD Sender: No OFD packet to send [18:49:47]OFD Sender: No OFD packet to send [18:49:52]OFD Sender: No OFD packet to send [18:49:57]OFD Sender: No OFD packet to send [18:50:02]OFD Sender: No OFD packet to send [18:50:07]OFD Sender: No OFD packet to send [18:50:12]OFD Sender: No OFD packet to send [18:50:17]OFD Sender: No OFD packet to send [18:50:22]OFD Sender: No OFD packet to send [18:50:27]OFD Sender: No OFD packet to send [18:50:32]OFD Sender: No OFD packet to send [18:50:37]OFD Sender: No OFD packet to send [18:50:42]OFD Sender: No OFD packet to send [18:50:47]OFD Sender: No OFD packet to send [18:50:52]OFD Sender: No OFD packet to send [18:50:57]OFD Sender: No OFD packet to send [18:51:02]OFD Sender: No OFD packet to send [18:51:07]OFD Sender: No OFD packet to send [18:51:12]OFD Sender: No OFD packet to send [18:51:17]OFD Sender: No OFD packet to send [18:51:22]OFD Sender: No OFD packet to send [18:51:27]OFD Sender: No OFD packet to send [18:51:32]OFD Sender: No OFD packet to send [18:51:37]OFD Sender: No OFD packet to send [18:51:42]OFD Sender: No OFD packet to send [18:51:47]OFD Sender: No OFD packet to send [18:51:52]OFD Sender: No OFD packet to send [18:51:57]OFD Sender: No OFD packet to send [18:52:02]OFD Sender: No OFD packet to send [18:52:07]OFD Sender: No OFD packet to send [18:52:12]OFD Sender: No OFD packet to send [18:52:17]OFD Sender: No OFD packet to send [18:52:22]OFD Sender: No OFD packet to send [18:52:27]OFD Sender: No OFD packet to send [18:52:32]OFD Sender: No OFD packet to send [18:52:37]OFD Sender: No OFD packet to send [18:52:42]OFD Sender: No OFD packet to send [18:52:42]accept exits with 9 [18:52:42]New connection [18:52:42]New thread 3066654052 created [18:52:42]Thread 3066797412 joined [18:52:42]Waiting for new connection... [18:52:42] Sock 9.Parse request [18:52:42]Sock 9.Check first char [18:52:42]Sock 9.First char is OK [18:52:42]request: POST /json_proto HTTP/1.0 [18:52:42]Method: POST [18:52:42]URL: /json_proto [18:52:42]Method is POST - this is cgi request [18:52:42]url: /json_proto [18:52:42]query_string will be loaded in cgi processing [18:52:42]execute_cgi json_proto POST (null) [18:52:42]execute_cgi path=json_proto method=POST [18:52:42]POST find Content-Length [18:52:42]Host: 172.17.50.3:8080 [18:52:42]Content-Length: 770 [18:52:42]Content-Type: application/json [18:52:42] [18:52:42]POST finish read [18:52:42]Found Content-Length = 770 [18:52:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:42]execute_script... [18:52:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:42]POST & json_proto [18:52:42]process_json_proto [18:52:42]json parsed OK: [18:52:42]protocol is kg_v1.0 [18:52:42]action value=close_receipt [18:52:42]process_action close_receipt [18:52:42]cmd_close_receipt [18:52:42]MH_GetDate [18:52:42]Write to MH i2c: F0 00 00 F0 07 E6 [18:52:42]Write i2c OK [18:52:42]MH_I2C_Read... [18:52:42]Read from MH i2c: F0 [18:52:42]MH_I2C_Read... [18:52:42]Read from MH i2c: F0 09 00 [18:52:42]MH_I2C_Read... [18:52:42]Read from MH i2c: F0 09 00 F0 07 00 7A 51 15 67 6B 98 1E 66 BD [18:52:42]GetLastDocTimeStamp 1729450064 [18:52:42]current date 1729450362 [18:52:42]FM_GetShiftState [18:52:42]SAM_PROTO_GetShiftState [18:52:42]wFMCommunicate request_size=4 [18:52:42]MH_SAM_APDU [18:52:42]CAPDU: 80 13 01 00 [18:52:42]Write to MH i2c: E2 08 00 F1 07 80 13 01 00 00 00 00 00 75 [18:52:42]Write i2c OK [18:52:42]MH_I2C_Read... [18:52:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:42]Read from MH i2c: E2 [18:52:42]MH_I2C_Read... [18:52:42]Read from MH i2c: E2 0E 00 [18:52:42]MH_I2C_Read... [18:52:42]Read from MH i2c: E2 0E 00 F1 07 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 7B [18:52:42]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:52:42]wFMCommunicate OK [18:52:42]SAM_PROTO_GetShiftState done [18:52:42]FM_GetShiftState done [18:52:42]opened in 1729383220 [18:52:42]opened+sec_in_day 1729469620 [18:52:42]quantity*price = 100015 [18:52:42]sum+1 = 100017 [18:52:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 351 20.10.2024 18:52 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69506 ФПД: 209410731843630 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185242&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69506&fm=209410731843630&tin=02508201610067®Number=0000000000156251&sum=100016 [18:52:43]StoreToDocumentArchive [18:52:43]shift 193 fd 69506 [18:52:43]save to /storage/0193/doc_00069506 [18:52:43]save last doc name /storage/0193/doc_00069506 to /storage/kkm_last_doc_name [18:52:43]save OK [18:52:43]Clear old archive folders... [18:52:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:52:43]tlvbuf is 00F12240 [18:52:43]SAM_PROTO_ClearQueue [18:52:43]wFMCommunicate request_size=4 [18:52:43]MH_SAM_APDU [18:52:43]CAPDU: 80 09 00 00 [18:52:43]Write to MH i2c: E2 08 00 FE 07 80 09 00 00 00 00 00 00 77 [18:52:43]Write i2c OK [18:52:43]MH_I2C_Read... [18:52:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:52:43]Read from MH i2c: E2 [18:52:43]MH_I2C_Read... [18:52:43]Read from MH i2c: E2 03 00 [18:52:43]MH_I2C_Read... [18:52:43]Read from MH i2c: E2 03 00 FE 07 00 90 00 79 [18:52:43]RAPDU: 90 00 [18:52:43]wFMCommunicate OK [18:52:43]SAM_PROTO_ClearQueue done [18:52:43]KKMCreateOFDPacket [18:52:43]OFDProtocolAddRootSTLVToBuf [18:52:43]FM_MakeSignedData [18:52:43]FM_MakeSignedData [18:52:43]SAM_PROTO_SignData [18:52:43]wFMCommunicate request_size=4 [18:52:43]MH_SAM_APDU [18:52:43]CAPDU: 80 0D 01 02 [18:52:43]Write to MH i2c: E2 08 00 FF 07 80 0D 01 02 00 00 00 00 7F [18:52:43]Write i2c OK [18:52:43]MH_I2C_Read... [18:52:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:52:43]Read from MH i2c: E2 [18:52:43]MH_I2C_Read... [18:52:43]Read from MH i2c: E2 03 00 [18:52:43]MH_I2C_Read... [18:52:43]Read from MH i2c: E2 03 00 FF 07 00 90 00 7A [18:52:43]RAPDU: 90 00 [18:52:43]wFMCommunicate OK [18:52:43]wFMCommunicate request_size=255 [18:52:43]MH_SAM_APDU [18:52:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 7A 51 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 82 0F 01 00 35 04 06 00 BE [18:52:43]Write to MH i2c: E2 02 01 00 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 7A 51 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 82 0F 01 00 35 04 06 00 BE 00 00 DB [18:52:43]Write i2c OK [18:52:43]MH_I2C_Read... [18:52:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:43]Read from MH i2c: E2 [18:52:43]MH_I2C_Read... [18:52:43]Read from MH i2c: E2 03 00 [18:52:43]MH_I2C_Read... [18:52:43]Read from MH i2c: E2 03 00 00 08 00 90 00 7C [18:52:43]RAPDU: 90 00 [18:52:43]wFMCommunicate OK [18:52:43]wFMCommunicate request_size=10 [18:52:43]MH_SAM_APDU [18:52:43]CAPDU: 80 0D 02 02 05 75 3C 48 A0 2E [18:52:43]Write to MH i2c: E2 0D 00 01 08 80 0D 02 02 05 00 75 3C 48 A0 2E 00 00 54 [18:52:43]Write i2c OK [18:52:43]MH_I2C_Read... [18:52:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:44]Read from MH i2c: E2 [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: E2 03 00 [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: E2 03 00 01 08 00 90 00 7D [18:52:44]RAPDU: 90 00 [18:52:44]wFMCommunicate OK [18:52:44]wFMCommunicate request_size=4 [18:52:44]MH_SAM_APDU [18:52:44]CAPDU: 80 0D 03 02 [18:52:44]Write to MH i2c: E2 08 00 02 08 80 0D 03 02 00 00 00 00 85 [18:52:44]Write i2c OK [18:52:44]MH_I2C_Read... [18:52:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:52:44]Read from MH i2c: E2 [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: E2 0B 00 [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: E2 0B 00 02 08 00 94 0B B1 10 1C AF 51 BC 90 00 BE [18:52:44]RAPDU: 94 0B B1 10 1C AF 51 BC 90 00 [18:52:44]wFMCommunicate OK [18:52:44]SAM_PROTO_SignData done [18:52:44]FM_MakeSignedData done [18:52:44]CreateOFDProtocolMessage [18:52:44]wFMCommunicate request_size=4 [18:52:44]MH_SAM_APDU [18:52:44]CAPDU: 80 11 00 00 [18:52:44]Write to MH i2c: E2 08 00 03 08 80 11 00 00 00 00 00 00 85 [18:52:44]Write i2c OK [18:52:44]MH_I2C_Read... [18:52:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:44]Read from MH i2c: E2 [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: E2 17 00 [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: E2 17 00 03 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D7 [18:52:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:52:44]wFMCommunicate OK [18:52:44]CreateOFDProtocolMessage done [18:52:44]OFDSenderStorePacket 69506 [18:52:44]StoreOFDPacket docnum=69506 [18:52:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 57 B2 07 01 5B E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 7A 51 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 82 0F 01 00 35 04 06 00 BE 75 3C 48 A0 2E 94 0B B1 10 1C AF 51 BC [18:52:44]CheckFolder [18:52:44]dirname=/storage/ofd_packets [18:52:44]CheckFolder done [18:52:44]ProducePacketName [18:52:44]name=ofd_packets/00069506 [18:52:44]NVStorageSaveData ofd_packets/00069506 [18:52:44]File name is /storage/ofd_packets/00069506 [18:52:44]Write 301 bytes [18:52:44]NVStorageSaveData done [18:52:44]OFDSenderStorePacket done [18:52:44]KKMCreateOFDPacket done [18:52:44]NVStorageSaveData kkm_last_timestamp [18:52:44]File name is /storage/kkm_last_timestamp [18:52:44]Write 4 bytes [18:52:44]NVStorageSaveData done [18:52:44]ExternCall_PrintAddStr [18:52:44]wPrintStart [18:52:44]Write to MH i2c: 01 00 00 04 08 0C [18:52:44]Write i2c OK [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: 01 [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: 01 07 00 [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: 01 07 00 04 08 00 00 00 00 00 FF 0F 21 [18:52:44]RasterBufferAndPrint [18:52:44]line Счет N : (1)2885244 [18:52:44]line ИНН: 02508201610067 [18:52:44]line Контрольно-Кассовый Чек [18:52:44]line ПРОДАЖА [18:52:44]line ТРК (МРК, ГНК) : 12 [18:52:44]line Товар: 2710124130 [18:52:44]line Аи-92-К-5 [18:52:44]line 14.950 * 66.90 [18:52:44]line = 1000.16 [18:52:44]line НДС 12% НСП 1% [18:52:44]line > о реализуемом товаре [18:52:44]line ИТОГО: 1000.16 [18:52:44]line НСП 1% : 8.85 [18:52:44]line НДС 12% : 106.21 [18:52:44]line Наличными: 0.00 [18:52:44]line Безнал.: 1000.16 [18:52:44]line Место: АЗС № 85 "Партнер Нефть" [18:52:44]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:52:44]line СНО: Общий режим [18:52:44]line Чек 351 20.10.2024 18:52 [18:52:44]line Смена: 193 ФФД: 1.0 [18:52:44]line ЗНМ: 0300000167 [18:52:44]line РНМ: 0000000000156251 [18:52:44]line Версия ККМ: v1.0 [18:52:44]line Платежная система: Mbank [18:52:44]line ФМ: 0000000000963346 [18:52:44]line ФД: 69506 [18:52:44]line ФПД: 209410731843630 [18:52:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185242&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69506&fm=209410731843630&tin=02508201610067®Number=0000000000156251&sum=100016 [18:52:44]OFD Sender: Processing packet 69506 [packets to send 18, broken 17] [18:52:44]ProducePacketName [18:52:44]name=ofd_packets/00069506 [18:52:44]OFD Sender: To server: pG, [18:52:44]CommunicateWithHost lk.salyk.kg:30040 [18:52:44]ConnectInit lk.salyk.kg [18:52:44]written 0, free lines is 4095 [18:52:44]Connected sock=7 [18:52:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 57 B2 07 01 5B E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 7A 51 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 82 0F 01 00 35 04 06 00 BE 75 3C 48 A0 2E 94 0B B1 10 1C AF 51 BC [18:52:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 8C C3 47 00 BF A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 82 0F 01 00 F4 03 04 00 20 FB 14 67 B6 04 01 00 00 38 E3 10 F9 2C F1 94 2F [18:52:44]CommunicateWithHost err = 0 [18:52:44]CheckOFDResponse [18:52:44]1017 (14) - 77093643461234 [18:52:44]1041 (16) - 0000000000963346 [18:52:44]1040 (4) - 69506 [18:52:44]1012 (4) - 20.10.2024 12:44 [18:52:44]1206 (1) - 0 [18:52:44]OFD Sender: Remove packet 69506 [18:52:44]ProducePacketName [18:52:44]name=ofd_packets/00069506 [18:52:44]NVStorageDeleteData [18:52:44]Write to MH i2c: 01 00 00 2D 08 35 [18:52:44]Write i2c OK [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: 01 [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: 01 07 00 [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: 01 07 00 2D 08 00 00 00 00 00 26 0D 6F [18:52:44]RasterBufferAndPrint [18:52:44]line [18:52:44]line [18:52:44]line [18:52:44]line [18:52:44]line [18:52:44]written 0, free lines is 3372 [18:52:44]MH_Cut [18:52:44]Write to MH i2c: D1 01 00 34 08 01 0E [18:52:44]Write i2c OK [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: D1 [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: D1 01 00 [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: D1 01 00 34 08 00 0D [18:52:44]Write to MH i2c: 01 00 00 35 08 3D [18:52:44]Write i2c OK [18:52:44]MH_I2C_Read... [18:52:45]OFD Sender: No OFD packet to send [18:52:45]*** Cut start [18:52:45]*** Partial cut [18:52:45]*** CUTSNS_PIN = 1 [18:52:45]*** CUTSNS_PIN = 0 [18:52:45]*** Brake cut motor [18:52:46]Read from MH i2c: 01 [18:52:46]MH_I2C_Read... [18:52:46]*** Stop cut motor [18:52:46]*** Cut end [18:52:46]Read from MH i2c: 01 07 00 [18:52:46]MH_I2C_Read... [18:52:46]Read from MH i2c: 01 07 00 35 08 00 00 00 00 00 FF 0F 52 [18:52:46]process_action close_receipt done [18:52:46]requested_data is exist [18:52:46]produce_requested_data [18:52:46]requested_item fm.sn is exist - process it [18:52:46]wFMCommunicate request_size=4 [18:52:46]MH_SAM_APDU [18:52:46]CAPDU: 80 11 00 00 [18:52:46]Write to MH i2c: E2 08 00 36 08 80 11 00 00 00 00 00 00 B8 [18:52:46]Write i2c OK [18:52:46]MH_I2C_Read... [18:52:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:46]Read from MH i2c: E2 [18:52:46]MH_I2C_Read... [18:52:46]Read from MH i2c: E2 17 00 [18:52:46]MH_I2C_Read... [18:52:46]Read from MH i2c: E2 17 00 36 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0A [18:52:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:52:46]wFMCommunicate OK [18:52:46]requested_item fd.num is exist - process it [18:52:46]SAM_PROTO_GetFieldsCounters [18:52:46]wFMCommunicate request_size=4 [18:52:46]MH_SAM_APDU [18:52:46]CAPDU: 80 13 00 00 [18:52:46]Write to MH i2c: E2 08 00 37 08 80 13 00 00 00 00 00 00 BB [18:52:46]Write i2c OK [18:52:46]MH_I2C_Read... [18:52:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:52:46]Read from MH i2c: E2 [18:52:46]MH_I2C_Read... [18:52:46]Read from MH i2c: E2 62 00 [18:52:46]MH_I2C_Read... [18:52:46]Read from MH i2c: E2 62 00 37 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 82 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 5F 01 00 00 5E 04 04 00 5F 01 00 00 57 04 04 00 60 01 00 00 19 04 04 00 00 00 00 00 90 00 49 [18:52:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 82 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 5F 01 00 00 5E 04 04 00 5F 01 00 00 57 04 04 00 60 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:52:46]wFMCommunicate OK [18:52:46]SAM_PROTO_GetFieldsCounters done [18:52:46]requested_item shift.num is exist - process it [18:52:46]requested_item shift.opened is exist - process it [18:52:46]req_shift_opened [18:52:46]FM_GetShiftState [18:52:46]SAM_PROTO_GetShiftState [18:52:46]wFMCommunicate request_size=4 [18:52:46]MH_SAM_APDU [18:52:46]CAPDU: 80 13 01 00 [18:52:46]Write to MH i2c: E2 08 00 38 08 80 13 01 00 00 00 00 00 BD [18:52:46]Write i2c OK [18:52:46]MH_I2C_Read... [18:52:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:46]Read from MH i2c: E2 [18:52:46]MH_I2C_Read... [18:52:46]Read from MH i2c: E2 0E 00 [18:52:46]MH_I2C_Read... [18:52:46]Read from MH i2c: E2 0E 00 38 08 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 C3 [18:52:46]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:52:46]wFMCommunicate OK [18:52:46]SAM_PROTO_GetShiftState done [18:52:46]FM_GetShiftState done [18:52:46]req_shift_opened done [18:52:46]requested_item shift.open_date is exist - process it [18:52:46]req_shift_open_date [18:52:46]req_shift_open_date done [18:52:46]produce_requested_data done [18:52:46]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69506,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [18:52:46]process_action_free close_receipt [18:52:46]json_value_free [18:52:46]json_value_free done [18:52:46]process_json_proto returns [18:52:46]Send response to host [18:52:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69506,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [18:52:46]free response buf [18:52:46]execute_script done [18:52:46]execute_script returns [18:52:46]free content buf [18:52:46]Sock 9.Close socket [18:52:46]Sock 9.Thread stoped [18:52:50]OFD Sender: No OFD packet to send [18:52:55]OFD Sender: No OFD packet to send [18:53:00]OFD Sender: No OFD packet to send [18:53:05]OFD Sender: No OFD packet to send [18:53:10]OFD Sender: No OFD packet to send [18:53:15]OFD Sender: No OFD packet to send [18:53:20]OFD Sender: No OFD packet to send [18:53:25]OFD Sender: No OFD packet to send [18:53:30]OFD Sender: No OFD packet to send [18:53:35]OFD Sender: No OFD packet to send [18:53:40]OFD Sender: No OFD packet to send [18:53:45]OFD Sender: No OFD packet to send [18:53:50]OFD Sender: No OFD packet to send [18:53:55]OFD Sender: No OFD packet to send [18:54:00]OFD Sender: No OFD packet to send [18:54:05]OFD Sender: No OFD packet to send [18:54:10]OFD Sender: No OFD packet to send [18:54:15]OFD Sender: No OFD packet to send [18:54:20]OFD Sender: No OFD packet to send [18:54:25]OFD Sender: No OFD packet to send [18:54:30]OFD Sender: No OFD packet to send [18:54:35]OFD Sender: No OFD packet to send [18:54:40]OFD Sender: No OFD packet to send [18:54:45]OFD Sender: No OFD packet to send [18:54:50]OFD Sender: No OFD packet to send [18:54:55]OFD Sender: No OFD packet to send [18:55:00]OFD Sender: No OFD packet to send [18:55:05]OFD Sender: No OFD packet to send [18:55:10]OFD Sender: No OFD packet to send [18:55:15]OFD Sender: No OFD packet to send [18:55:20]OFD Sender: No OFD packet to send [18:55:25]OFD Sender: No OFD packet to send [18:55:30]OFD Sender: No OFD packet to send [18:55:35]OFD Sender: No OFD packet to send [18:55:40]OFD Sender: No OFD packet to send [18:55:45]OFD Sender: No OFD packet to send [18:55:50]OFD Sender: No OFD packet to send [18:55:55]OFD Sender: No OFD packet to send [18:56:00]OFD Sender: No OFD packet to send [18:56:05]OFD Sender: No OFD packet to send [18:56:10]OFD Sender: No OFD packet to send [18:56:15]OFD Sender: No OFD packet to send [18:56:20]OFD Sender: No OFD packet to send [18:56:25]OFD Sender: No OFD packet to send [18:56:30]OFD Sender: No OFD packet to send [18:56:35]OFD Sender: No OFD packet to send [18:56:40]OFD Sender: No OFD packet to send [18:56:45]OFD Sender: No OFD packet to send [18:56:50]OFD Sender: No OFD packet to send [18:56:55]OFD Sender: No OFD packet to send [18:57:00]OFD Sender: No OFD packet to send [18:57:05]OFD Sender: No OFD packet to send [18:57:10]OFD Sender: No OFD packet to send [18:57:15]OFD Sender: No OFD packet to send [18:57:16]accept exits with 10 [18:57:16]New connection [18:57:16]New thread 3066797412 created [18:57:16]Thread 3066654052 joined [18:57:16]Waiting for new connection... [18:57:16] Sock 10.Parse request [18:57:16]Sock 10.Check first char [18:57:16]Sock 10.First char is OK [18:57:16]request: POST /json_proto HTTP/1.0 [18:57:16]Method: POST [18:57:16]URL: /json_proto [18:57:16]Method is POST - this is cgi request [18:57:16]url: /json_proto [18:57:16]query_string will be loaded in cgi processing [18:57:16]execute_cgi json_proto POST (null) [18:57:16]execute_cgi path=json_proto method=POST [18:57:16]POST find Content-Length [18:57:16]Host: 172.17.50.3:8080 [18:57:16]Content-Length: 776 [18:57:16]Content-Type: application/json [18:57:16] [18:57:16]POST finish read [18:57:16]Found Content-Length = 776 [18:57:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:16]execute_script... [18:57: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)2885245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:16]POST & json_proto [18:57:16]process_json_proto [18:57:16]json parsed OK: [18:57:16]protocol is kg_v1.0 [18:57:16]action value=close_receipt [18:57:16]process_action close_receipt [18:57:16]cmd_close_receipt [18:57:16]MH_GetDate [18:57:16]Write to MH i2c: F0 00 00 39 08 30 [18:57:16]Write i2c OK [18:57:16]MH_I2C_Read... [18:57:16]Read from MH i2c: F0 [18:57:16]MH_I2C_Read... [18:57:16]Read from MH i2c: F0 09 00 [18:57:16]MH_I2C_Read... [18:57:16]Read from MH i2c: F0 09 00 39 08 00 8D 52 15 67 6B 98 1E 66 1B [18:57:16]GetLastDocTimeStamp 1729450362 [18:57:16]current date 1729450637 [18:57:16]FM_GetShiftState [18:57:16]SAM_PROTO_GetShiftState [18:57:16]wFMCommunicate request_size=4 [18:57:16]MH_SAM_APDU [18:57:16]CAPDU: 80 13 01 00 [18:57:16]Write to MH i2c: E2 08 00 3A 08 80 13 01 00 00 00 00 00 BF [18:57:16]Write i2c OK [18:57:16]MH_I2C_Read... [18:57:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:16]Read from MH i2c: E2 [18:57:16]MH_I2C_Read... [18:57:16]Read from MH i2c: E2 0E 00 [18:57:16]MH_I2C_Read... [18:57:16]Read from MH i2c: E2 0E 00 3A 08 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 C5 [18:57:16]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:57:16]wFMCommunicate OK [18:57:16]SAM_PROTO_GetShiftState done [18:57:16]FM_GetShiftState done [18:57:16]opened in 1729383220 [18:57:16]opened+sec_in_day 1729469620 [18:57:16]quantity*price = 100051 [18:57:16]sum+1 = 100052 [18:57:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 352 20.10.2024 18:57 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69507 ФПД: 205781052491666 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185717&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69507&fm=205781052491666&tin=02508201610067®Number=0000000000156251&sum=100051 [18:57:18]StoreToDocumentArchive [18:57:18]shift 193 fd 69507 [18:57:18]save to /storage/0193/doc_00069507 [18:57:18]save last doc name /storage/0193/doc_00069507 to /storage/kkm_last_doc_name [18:57:18]save OK [18:57:18]Clear old archive folders... [18:57:18]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:57:18]tlvbuf is 00F0E3B0 [18:57:18]SAM_PROTO_ClearQueue [18:57:18]wFMCommunicate request_size=4 [18:57:18]MH_SAM_APDU [18:57:18]CAPDU: 80 09 00 00 [18:57:18]Write to MH i2c: E2 08 00 47 08 80 09 00 00 00 00 00 00 C1 [18:57:18]Write i2c OK [18:57:18]MH_I2C_Read... [18:57:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:57:18]Read from MH i2c: E2 [18:57:18]MH_I2C_Read... [18:57:18]Read from MH i2c: E2 03 00 [18:57:18]MH_I2C_Read... [18:57:18]Read from MH i2c: E2 03 00 47 08 00 90 00 C3 [18:57:18]RAPDU: 90 00 [18:57:18]wFMCommunicate OK [18:57:18]SAM_PROTO_ClearQueue done [18:57:18]KKMCreateOFDPacket [18:57:18]OFDProtocolAddRootSTLVToBuf [18:57:18]FM_MakeSignedData [18:57:18]FM_MakeSignedData [18:57:18]SAM_PROTO_SignData [18:57:18]wFMCommunicate request_size=4 [18:57:18]MH_SAM_APDU [18:57:18]CAPDU: 80 0D 01 02 [18:57:18]Write to MH i2c: E2 08 00 48 08 80 0D 01 02 00 00 00 00 C9 [18:57:18]Write i2c OK [18:57:18]MH_I2C_Read... [18:57:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:57:18]Read from MH i2c: E2 [18:57:18]MH_I2C_Read... [18:57:18]Read from MH i2c: E2 03 00 [18:57:18]MH_I2C_Read... [18:57:18]Read from MH i2c: E2 03 00 48 08 00 90 00 C4 [18:57:18]RAPDU: 90 00 [18:57:18]wFMCommunicate OK [18:57:18]wFMCommunicate request_size=255 [18:57:18]MH_SAM_APDU [18:57:18]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 60 01 00 00 F4 03 04 00 8D 52 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 83 0F 01 [18:57:18]Write to MH i2c: E2 02 01 49 08 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 60 01 00 00 F4 03 04 00 8D 52 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 83 0F 01 00 00 91 [18:57:18]Write i2c OK [18:57:18]MH_I2C_Read... [18:57:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:18]Read from MH i2c: E2 [18:57:18]MH_I2C_Read... [18:57:18]Read from MH i2c: E2 03 00 [18:57:18]MH_I2C_Read... [18:57:18]Read from MH i2c: E2 03 00 49 08 00 90 00 C5 [18:57:18]RAPDU: 90 00 [18:57:18]wFMCommunicate OK [18:57:18]wFMCommunicate request_size=16 [18:57:18]MH_SAM_APDU [18:57:18]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 BB 28 22 89 07 92 [18:57:18]Write to MH i2c: E2 13 00 4A 08 80 0D 02 02 0B 00 00 35 04 06 00 BB 28 22 89 07 92 00 00 48 [18:57:18]Write i2c OK [18:57:18]MH_I2C_Read... [18:57:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:18]Read from MH i2c: E2 [18:57:18]MH_I2C_Read... [18:57:18]Read from MH i2c: E2 03 00 [18:57:18]MH_I2C_Read... [18:57:18]Read from MH i2c: E2 03 00 4A 08 00 90 00 C6 [18:57:18]RAPDU: 90 00 [18:57:18]wFMCommunicate OK [18:57:18]wFMCommunicate request_size=4 [18:57:18]MH_SAM_APDU [18:57:18]CAPDU: 80 0D 03 02 [18:57:18]Write to MH i2c: E2 08 00 4B 08 80 0D 03 02 00 00 00 00 CE [18:57:18]Write i2c OK [18:57:18]MH_I2C_Read... [18:57:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:57:18]Read from MH i2c: E2 [18:57:18]MH_I2C_Read... [18:57:18]Read from MH i2c: E2 0B 00 [18:57:18]MH_I2C_Read... [18:57:18]Read from MH i2c: E2 0B 00 4B 08 00 D1 97 9B 83 0B 37 E7 65 90 00 E3 [18:57:18]RAPDU: D1 97 9B 83 0B 37 E7 65 90 00 [18:57:18]wFMCommunicate OK [18:57:18]SAM_PROTO_SignData done [18:57:18]FM_MakeSignedData done [18:57:18]CreateOFDProtocolMessage [18:57:18]wFMCommunicate request_size=4 [18:57:18]MH_SAM_APDU [18:57:18]CAPDU: 80 11 00 00 [18:57:18]Write to MH i2c: E2 08 00 4C 08 80 11 00 00 00 00 00 00 CE [18:57:18]Write i2c OK [18:57:18]MH_I2C_Read... [18:57:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:18]Read from MH i2c: E2 [18:57:18]MH_I2C_Read... [18:57:18]Read from MH i2c: E2 17 00 [18:57:18]MH_I2C_Read... [18:57:18]Read from MH i2c: E2 17 00 4C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 20 [18:57:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:57:18]wFMCommunicate OK [18:57:18]CreateOFDProtocolMessage done [18:57:18]OFDSenderStorePacket 69507 [18:57:18]StoreOFDPacket docnum=69507 [18:57:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 1E A0 0D 01 5D 8A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 60 01 00 00 F4 03 04 00 8D 52 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 83 0F 01 00 35 04 06 00 BB 28 22 89 07 92 D1 97 9B 83 0B 37 E7 65 [18:57:18]CheckFolder [18:57:18]dirname=/storage/ofd_packets [18:57:18]CheckFolder done [18:57:18]ProducePacketName [18:57:18]name=ofd_packets/00069507 [18:57:18]NVStorageSaveData ofd_packets/00069507 [18:57:18]File name is /storage/ofd_packets/00069507 [18:57:18]Write 307 bytes [18:57:18]NVStorageSaveData done [18:57:18]OFDSenderStorePacket done [18:57:18]KKMCreateOFDPacket done [18:57:18]NVStorageSaveData kkm_last_timestamp [18:57:18]File name is /storage/kkm_last_timestamp [18:57:18]Write 4 bytes [18:57:18]NVStorageSaveData done [18:57:18]ExternCall_PrintAddStr [18:57:18]wPrintStart [18:57:18]Write to MH i2c: 01 00 00 4D 08 55 [18:57:18]Write i2c OK [18:57:18]MH_I2C_Read... [18:57:18]Read from MH i2c: 01 [18:57:18]MH_I2C_Read... [18:57:18]Read from MH i2c: 01 07 00 [18:57:18]MH_I2C_Read... [18:57:18]Read from MH i2c: 01 07 00 4D 08 00 00 00 00 00 FF 0F 6A [18:57:18]RasterBufferAndPrint [18:57:18]line Счет N : (1)2885245 [18:57:18]line ИНН: 02508201610067 [18:57:18]line Контрольно-Кассовый Чек [18:57:18]line ПРОДАЖА [18:57:18]line ТРК (МРК, ГНК) : 21 [18:57:18]line Товар: 2710194240 [18:57:18]line D-ENERGY Дт-К-2 [18:57:18]line 12.960 * 77.20 [18:57:18]line = 1000.51 [18:57:18]line НДС 12% НСП 1% [18:57:18]line > о реализуемом товаре [18:57:18]line ИТОГО: 1000.51 [18:57:18]line НСП 1% : 8.85 [18:57:18]line НДС 12% : 106.25 [18:57:18]line Наличными: 0.00 [18:57:18]line Безнал.: 1000.51 [18:57:18]line Место: АЗС № 85 "Партнер Нефть" [18:57:18]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:57:18]line СНО: Общий режим [18:57:18]line Чек 352 20.10.2024 18:57 [18:57:18]line Смена: 193 ФФД: 1.0 [18:57:18]line ЗНМ: 0300000167 [18:57:18]line РНМ: 0000000000156251 [18:57:18]line Версия ККМ: v1.0 [18:57:18]line Платежная система: Mbank [18:57:18]line ФМ: 0000000000963346 [18:57:18]line ФД: 69507 [18:57:18]line ФПД: 205781052491666 [18:57:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185717&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69507&fm=205781052491666&tin=02508201610067®Number=0000000000156251&sum=100051 [18:57:18]OFD Sender: Processing packet 69507 [packets to send 18, broken 17] [18:57:18]ProducePacketName [18:57:18]name=ofd_packets/00069507 [18:57:18]OFD Sender: To server: pG, [18:57:18]CommunicateWithHost lk.salyk.kg:30040 [18:57:18]ConnectInit lk.salyk.kg [18:57:18]written 0, free lines is 4095 [18:57:18]Connected sock=9 [18:57:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 1E A0 0D 01 5D 8A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 60 01 00 00 F4 03 04 00 8D 52 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 83 0F 01 00 35 04 06 00 BB 28 22 89 07 92 D1 97 9B 83 0B 37 E7 65 [18:57:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 C1 8E 47 00 C7 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 83 0F 01 00 F4 03 04 00 33 FC 14 67 B6 04 01 00 00 48 11 50 C8 17 8F C4 45 [18:57:19]CommunicateWithHost err = 0 [18:57:19]CheckOFDResponse [18:57:19]1017 (14) - 77093643461234 [18:57:19]1041 (16) - 0000000000963346 [18:57:19]1040 (4) - 69507 [18:57:19]1012 (4) - 20.10.2024 12:48 [18:57:19]1206 (1) - 0 [18:57:19]OFD Sender: Remove packet 69507 [18:57:19]ProducePacketName [18:57:19]name=ofd_packets/00069507 [18:57:19]NVStorageDeleteData [18:57:19]Write to MH i2c: 01 00 00 76 08 7E [18:57:19]Write i2c OK [18:57:19]MH_I2C_Read... [18:57:19]Read from MH i2c: 01 [18:57:19]MH_I2C_Read... [18:57:19]Read from MH i2c: 01 07 00 [18:57:19]MH_I2C_Read... [18:57:19]Read from MH i2c: 01 07 00 76 08 00 00 00 00 00 2A 0D BC [18:57:19]RasterBufferAndPrint [18:57:19]line [18:57:19]line [18:57:19]line [18:57:19]line [18:57:19]line [18:57:19]written 0, free lines is 3379 [18:57:19]MH_Cut [18:57:19]Write to MH i2c: D1 01 00 7D 08 01 57 [18:57:19]Write i2c OK [18:57:19]MH_I2C_Read... [18:57:19]Read from MH i2c: D1 [18:57:19]MH_I2C_Read... [18:57:19]Read from MH i2c: D1 01 00 [18:57:19]MH_I2C_Read... [18:57:19]Read from MH i2c: D1 01 00 7D 08 00 56 [18:57:19]Write to MH i2c: 01 00 00 7E 08 86 [18:57:19]Write i2c OK [18:57:19]MH_I2C_Read... [18:57:19]OFD Sender: No OFD packet to send [18:57:20]*** Cut start [18:57:20]*** Partial cut [18:57:20]*** CUTSNS_PIN = 1 [18:57:20]*** CUTSNS_PIN = 0 [18:57:20]*** Brake cut motor [18:57:20]Read from MH i2c: 01 [18:57:20]MH_I2C_Read... [18:57:20]Read from MH i2c: 01 07 00 [18:57:20]MH_I2C_Read... [18:57:20]*** Stop cut motor [18:57:20]Read from MH i2c: 01 07 00 7E 08 00 00 00 00 00 FF 0F 9B [18:57:20]process_action close_receipt done [18:57:20]requested_data is exist [18:57:20]produce_requested_data [18:57:20]requested_item fm.sn is exist - process it [18:57:20]wFMCommunicate request_size=4 [18:57:20]MH_SAM_APDU [18:57:20]CAPDU: 80 11 00 00 [18:57:20]Write to MH i2c: E2 08 00 7F 08 80 11 00 00 00 00 00 00 01 [18:57:20]*** Cut end [18:57:20]Write i2c OK [18:57:20]MH_I2C_Read... [18:57:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:20]Read from MH i2c: E2 [18:57:20]MH_I2C_Read... [18:57:20]Read from MH i2c: E2 17 00 [18:57:20]MH_I2C_Read... [18:57:20]Read from MH i2c: E2 17 00 7F 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 53 [18:57:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:57:20]wFMCommunicate OK [18:57:20]requested_item fd.num is exist - process it [18:57:20]SAM_PROTO_GetFieldsCounters [18:57:20]wFMCommunicate request_size=4 [18:57:20]MH_SAM_APDU [18:57:20]CAPDU: 80 13 00 00 [18:57:20]Write to MH i2c: E2 08 00 80 08 80 13 00 00 00 00 00 00 04 [18:57:20]Write i2c OK [18:57:20]MH_I2C_Read... [18:57:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:57:20]Read from MH i2c: E2 [18:57:20]MH_I2C_Read... [18:57:20]Read from MH i2c: E2 62 00 [18:57:20]MH_I2C_Read... [18:57:20]Read from MH i2c: E2 62 00 80 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 83 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 60 01 00 00 5E 04 04 00 60 01 00 00 57 04 04 00 61 01 00 00 19 04 04 00 00 00 00 00 90 00 96 [18:57:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 83 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 60 01 00 00 5E 04 04 00 60 01 00 00 57 04 04 00 61 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:57:20]wFMCommunicate OK [18:57:20]SAM_PROTO_GetFieldsCounters done [18:57:20]requested_item shift.num is exist - process it [18:57:20]requested_item shift.opened is exist - process it [18:57:20]req_shift_opened [18:57:20]FM_GetShiftState [18:57:20]SAM_PROTO_GetShiftState [18:57:20]wFMCommunicate request_size=4 [18:57:20]MH_SAM_APDU [18:57:20]CAPDU: 80 13 01 00 [18:57:20]Write to MH i2c: E2 08 00 81 08 80 13 01 00 00 00 00 00 06 [18:57:20]Write i2c OK [18:57:20]MH_I2C_Read... [18:57:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:20]Read from MH i2c: E2 [18:57:20]MH_I2C_Read... [18:57:20]Read from MH i2c: E2 0E 00 [18:57:20]MH_I2C_Read... [18:57:20]Read from MH i2c: E2 0E 00 81 08 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 0C [18:57:20]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:57:20]wFMCommunicate OK [18:57:20]SAM_PROTO_GetShiftState done [18:57:20]FM_GetShiftState done [18:57:20]req_shift_opened done [18:57:20]requested_item shift.open_date is exist - process it [18:57:20]req_shift_open_date [18:57:20]req_shift_open_date done [18:57:20]produce_requested_data done [18:57:20]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69507,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [18:57:20]process_action_free close_receipt [18:57:20]json_value_free [18:57:20]json_value_free done [18:57:20]process_json_proto returns [18:57:20]Send response to host [18:57:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69507,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [18:57:20]free response buf [18:57:20]execute_script done [18:57:20]execute_script returns [18:57:20]free content buf [18:57:20]Sock 10.Close socket [18:57:20]Sock 10.Thread stoped [18:57:24]OFD Sender: No OFD packet to send [18:57:27]accept exits with 7 [18:57:27]New connection [18:57:27]New thread 3066654052 created [18:57:27]Thread 3066797412 joined [18:57:27]Waiting for new connection... [18:57:27] Sock 7.Parse request [18:57:27]Sock 7.Check first char [18:57:27]Sock 7.First char is OK [18:57:27]request: POST /json_proto HTTP/1.0 [18:57:27]Method: POST [18:57:27]URL: /json_proto [18:57:27]Method is POST - this is cgi request [18:57:27]url: /json_proto [18:57:27]query_string will be loaded in cgi processing [18:57:27]execute_cgi json_proto POST (null) [18:57:27]execute_cgi path=json_proto method=POST [18:57:27]POST find Content-Length [18:57:27]Host: 172.17.50.3:8080 [18:57:27]Content-Length: 679 [18:57:27]Content-Type: application/json [18:57:27] [18:57:27]POST finish read [18:57:27]Found Content-Length = 679 [18:57:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:27]execute_script... [18:57: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)2885247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:27]POST & json_proto [18:57:27]process_json_proto [18:57:27]json parsed OK: [18:57:27]protocol is kg_v1.0 [18:57:27]action value=close_receipt [18:57:27]process_action close_receipt [18:57:27]cmd_close_receipt [18:57:27]MH_GetDate [18:57:27]Write to MH i2c: F0 00 00 82 08 79 [18:57:27]Write i2c OK [18:57:27]MH_I2C_Read... [18:57:27]Read from MH i2c: F0 [18:57:27]MH_I2C_Read... [18:57:27]Read from MH i2c: F0 09 00 [18:57:27]MH_I2C_Read... [18:57:27]Read from MH i2c: F0 09 00 82 08 00 97 52 15 67 6B 98 1E 66 6E [18:57:27]GetLastDocTimeStamp 1729450637 [18:57:27]current date 1729450647 [18:57:27]FM_GetShiftState [18:57:27]SAM_PROTO_GetShiftState [18:57:27]wFMCommunicate request_size=4 [18:57:27]MH_SAM_APDU [18:57:27]CAPDU: 80 13 01 00 [18:57:27]Write to MH i2c: E2 08 00 83 08 80 13 01 00 00 00 00 00 08 [18:57:27]Write i2c OK [18:57:27]MH_I2C_Read... [18:57:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:27]Read from MH i2c: E2 [18:57:27]MH_I2C_Read... [18:57:27]Read from MH i2c: E2 0E 00 [18:57:27]MH_I2C_Read... [18:57:27]Read from MH i2c: E2 0E 00 83 08 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 0E [18:57:27]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:57:27]wFMCommunicate OK [18:57:27]SAM_PROTO_GetShiftState done [18:57:27]FM_GetShiftState done [18:57:27]opened in 1729383220 [18:57:27]opened+sec_in_day 1729469620 [18:57:27]quantity*price = 80012 [18:57:27]sum+1 = 80013 [18:57:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 353 20.10.2024 18:57 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69508 ФПД: 210530650009061 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185727&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69508&fm=210530650009061&tin=02508201610067®Number=0000000000156251&sum=80000 [18:57:28]StoreToDocumentArchive [18:57:28]shift 193 fd 69508 [18:57:28]save to /storage/0193/doc_00069508 [18:57:28]save last doc name /storage/0193/doc_00069508 to /storage/kkm_last_doc_name [18:57:28]save OK [18:57:28]Clear old archive folders... [18:57:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:57:28]tlvbuf is 00F60EE0 [18:57:28]SAM_PROTO_ClearQueue [18:57:28]wFMCommunicate request_size=4 [18:57:28]MH_SAM_APDU [18:57:28]CAPDU: 80 09 00 00 [18:57:28]Write to MH i2c: E2 08 00 90 08 80 09 00 00 00 00 00 00 0A [18:57:28]Write i2c OK [18:57:28]MH_I2C_Read... [18:57:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:57:28]Read from MH i2c: E2 [18:57:28]MH_I2C_Read... [18:57:28]Read from MH i2c: E2 03 00 [18:57:28]MH_I2C_Read... [18:57:28]Read from MH i2c: E2 03 00 90 08 00 90 00 0C [18:57:28]RAPDU: 90 00 [18:57:28]wFMCommunicate OK [18:57:28]SAM_PROTO_ClearQueue done [18:57:28]KKMCreateOFDPacket [18:57:28]OFDProtocolAddRootSTLVToBuf [18:57:28]FM_MakeSignedData [18:57:28]FM_MakeSignedData [18:57:28]SAM_PROTO_SignData [18:57:28]wFMCommunicate request_size=4 [18:57:28]MH_SAM_APDU [18:57:28]CAPDU: 80 0D 01 02 [18:57:28]Write to MH i2c: E2 08 00 91 08 80 0D 01 02 00 00 00 00 12 [18:57:28]Write i2c OK [18:57:28]MH_I2C_Read... [18:57:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:57:28]Read from MH i2c: E2 [18:57:28]MH_I2C_Read... [18:57:28]Read from MH i2c: E2 03 00 [18:57:28]MH_I2C_Read... [18:57:28]Read from MH i2c: E2 03 00 91 08 00 90 00 0D [18:57:28]RAPDU: 90 00 [18:57:28]wFMCommunicate OK [18:57:28]wFMCommunicate request_size=255 [18:57:28]MH_SAM_APDU [18:57:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 97 52 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 84 0F 01 00 35 04 06 00 BF [18:57:28]Write to MH i2c: E2 02 01 92 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 97 52 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 84 0F 01 00 35 04 06 00 BF 00 00 62 [18:57:28]Write i2c OK [18:57:28]MH_I2C_Read... [18:57:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:28]Read from MH i2c: E2 [18:57:28]MH_I2C_Read... [18:57:28]Read from MH i2c: E2 03 00 [18:57:28]MH_I2C_Read... [18:57:28]Read from MH i2c: E2 03 00 92 08 00 90 00 0E [18:57:28]RAPDU: 90 00 [18:57:28]wFMCommunicate OK [18:57:28]wFMCommunicate request_size=10 [18:57:28]MH_SAM_APDU [18:57:28]CAPDU: 80 0D 02 02 05 79 FC 9B AD E5 [18:57:28]Write to MH i2c: E2 0D 00 93 08 80 0D 02 02 05 00 79 FC 9B AD E5 00 00 C1 [18:57:28]Write i2c OK [18:57:28]MH_I2C_Read... [18:57:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:28]Read from MH i2c: E2 [18:57:28]MH_I2C_Read... [18:57:28]Read from MH i2c: E2 03 00 [18:57:28]MH_I2C_Read... [18:57:28]Read from MH i2c: E2 03 00 93 08 00 90 00 0F [18:57:28]RAPDU: 90 00 [18:57:28]wFMCommunicate OK [18:57:28]wFMCommunicate request_size=4 [18:57:28]MH_SAM_APDU [18:57:28]CAPDU: 80 0D 03 02 [18:57:28]Write to MH i2c: E2 08 00 94 08 80 0D 03 02 00 00 00 00 17 [18:57:28]Write i2c OK [18:57:28]MH_I2C_Read... [18:57:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:57:28]Read from MH i2c: E2 [18:57:28]MH_I2C_Read... [18:57:28]Read from MH i2c: E2 0B 00 [18:57:28]MH_I2C_Read... [18:57:28]Read from MH i2c: E2 0B 00 94 08 00 83 4F A2 95 04 6F 7E 1A 90 00 2C [18:57:28]RAPDU: 83 4F A2 95 04 6F 7E 1A 90 00 [18:57:28]wFMCommunicate OK [18:57:28]SAM_PROTO_SignData done [18:57:28]FM_MakeSignedData done [18:57:28]CreateOFDProtocolMessage [18:57:28]wFMCommunicate request_size=4 [18:57:28]MH_SAM_APDU [18:57:28]CAPDU: 80 11 00 00 [18:57:28]Write to MH i2c: E2 08 00 95 08 80 11 00 00 00 00 00 00 17 [18:57:28]Write i2c OK [18:57:28]MH_I2C_Read... [18:57:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:29]Read from MH i2c: E2 [18:57:29]MH_I2C_Read... [18:57:29]Read from MH i2c: E2 17 00 [18:57:29]MH_I2C_Read... [18:57:29]Read from MH i2c: E2 17 00 95 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 69 [18:57:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:57:29]wFMCommunicate OK [18:57:29]CreateOFDProtocolMessage done [18:57:29]OFDSenderStorePacket 69508 [18:57:29]StoreOFDPacket docnum=69508 [18:57:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 6F F1 07 01 A7 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 97 52 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 84 0F 01 00 35 04 06 00 BF 79 FC 9B AD E5 83 4F A2 95 04 6F 7E 1A [18:57:29]CheckFolder [18:57:29]dirname=/storage/ofd_packets [18:57:29]CheckFolder done [18:57:29]ProducePacketName [18:57:29]name=ofd_packets/00069508 [18:57:29]NVStorageSaveData ofd_packets/00069508 [18:57:29]File name is /storage/ofd_packets/00069508 [18:57:29]Write 301 bytes [18:57:29]NVStorageSaveData done [18:57:29]OFDSenderStorePacket done [18:57:29]KKMCreateOFDPacket done [18:57:29]NVStorageSaveData kkm_last_timestamp [18:57:29]File name is /storage/kkm_last_timestamp [18:57:29]Write 4 bytes [18:57:29]NVStorageSaveData done [18:57:29]ExternCall_PrintAddStr [18:57:29]wPrintStart [18:57:29]Write to MH i2c: 01 00 00 96 08 9E [18:57:29]Write i2c OK [18:57:29]MH_I2C_Read... [18:57:29]Read from MH i2c: 01 [18:57:29]MH_I2C_Read... [18:57:29]Read from MH i2c: 01 07 00 [18:57:29]MH_I2C_Read... [18:57:29]Read from MH i2c: 01 07 00 96 08 00 00 00 00 00 FF 0F B3 [18:57:29]RasterBufferAndPrint [18:57:29]line Счет N : (1)2885247 [18:57:29]line ИНН: 02508201610067 [18:57:29]line Контрольно-Кассовый Чек [18:57:29]line ПРОДАЖА [18:57:29]line ТРК (МРК, ГНК) : 32 [18:57:29]line Товар: 2710124130 [18:57:29]line Аи-92-К-5 [18:57:29]line 11.960 * 66.90 [18:57:29]line = 800.12 [18:57:29]line НДС 12% НСП 1% [18:57:29]line > о реализуемом товаре [18:57:29]line ОКРУГЛЕНИЕ: -0.12 [18:57:29]line ИТОГО: 800.00 [18:57:29]line Внесено: 800.00 [18:57:29]line СДАЧА: 0.00 [18:57:29]line НСП 1% : 7.08 [18:57:29]line НДС 12% : 84.97 [18:57:29]line Наличными: 800.00 [18:57:29]line Безнал.: 0.00 [18:57:29]line Место: АЗС № 85 "Партнер Нефть" [18:57:29]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:57:29]line СНО: Общий режим [18:57:29]line Чек 353 20.10.2024 18:57 [18:57:29]line Смена: 193 ФФД: 1.0 [18:57:29]line ЗНМ: 0300000167 [18:57:29]line РНМ: 0000000000156251 [18:57:29]line Версия ККМ: v1.0 [18:57:29]line ФМ: 0000000000963346 [18:57:29]line ФД: 69508 [18:57:29]line ФПД: 210530650009061 [18:57:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185727&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69508&fm=210530650009061&tin=02508201610067®Number=0000000000156251&sum=80000 [18:57:29]OFD Sender: Processing packet 69508 [packets to send 18, broken 17] [18:57:29]ProducePacketName [18:57:29]name=ofd_packets/00069508 [18:57:29]OFD Sender: To server: pG, [18:57:29]CommunicateWithHost lk.salyk.kg:30040 [18:57:29]ConnectInit lk.salyk.kg [18:57:29]written 0, free lines is 4095 [18:57:29]Connected sock=10 [18:57:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 6F F1 07 01 A7 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 97 52 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 84 0F 01 00 35 04 06 00 BF 79 FC 9B AD E5 83 4F A2 95 04 6F 7E 1A [18:57:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 8B 01 47 00 E6 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 84 0F 01 00 F4 03 04 00 3D FC 14 67 B6 04 01 00 00 8A DD 08 88 32 74 F0 1E [18:57:29]CommunicateWithHost err = 0 [18:57:29]CheckOFDResponse [18:57:29]1017 (14) - 77093643461234 [18:57:29]1041 (16) - 0000000000963346 [18:57:29]1040 (4) - 69508 [18:57:29]1012 (4) - 20.10.2024 12:49 [18:57:29]1206 (1) - 0 [18:57:29]OFD Sender: Remove packet 69508 [18:57:29]ProducePacketName [18:57:29]name=ofd_packets/00069508 [18:57:29]NVStorageDeleteData [18:57:29]Write to MH i2c: 01 00 00 C1 08 C9 [18:57:29]Write i2c OK [18:57:29]MH_I2C_Read... [18:57:29]Read from MH i2c: 01 [18:57:29]MH_I2C_Read... [18:57:29]Read from MH i2c: 01 07 00 [18:57:29]MH_I2C_Read... [18:57:29]Read from MH i2c: 01 07 00 C1 08 00 00 00 00 00 F3 0C CF [18:57:29]RasterBufferAndPrint [18:57:29]line [18:57:29]line [18:57:29]line [18:57:29]line [18:57:29]line [18:57:29]written 0, free lines is 3324 [18:57:29]MH_Cut [18:57:29]Write to MH i2c: D1 01 00 C8 08 01 A2 [18:57:29]Write i2c OK [18:57:29]MH_I2C_Read... [18:57:29]Read from MH i2c: D1 [18:57:29]MH_I2C_Read... [18:57:29]Read from MH i2c: D1 01 00 [18:57:29]MH_I2C_Read... [18:57:29]Read from MH i2c: D1 01 00 C8 08 00 A1 [18:57:29]Write to MH i2c: 01 00 00 C9 08 D1 [18:57:29]Write i2c OK [18:57:29]MH_I2C_Read... [18:57:30]OFD Sender: No OFD packet to send [18:57:30]*** Cut start [18:57:30]*** Partial cut [18:57:30]*** CUTSNS_PIN = 1 [18:57:30]*** CUTSNS_PIN = 0 [18:57:30]*** Brake cut motor [18:57:31]Read from MH i2c: 01 [18:57:31]MH_I2C_Read... [18:57:31]*** Stop cut motor [18:57:31]*** Cut end [18:57:31]Read from MH i2c: 01 07 00 [18:57:31]MH_I2C_Read... [18:57:31]Read from MH i2c: 01 07 00 C9 08 00 00 00 00 00 FF 0F E6 [18:57:31]process_action close_receipt done [18:57:31]requested_data is exist [18:57:31]produce_requested_data [18:57:31]requested_item fm.sn is exist - process it [18:57:31]wFMCommunicate request_size=4 [18:57:31]MH_SAM_APDU [18:57:31]CAPDU: 80 11 00 00 [18:57:31]Write to MH i2c: E2 08 00 CA 08 80 11 00 00 00 00 00 00 4C [18:57:31]Write i2c OK [18:57:31]MH_I2C_Read... [18:57:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:31]Read from MH i2c: E2 [18:57:31]MH_I2C_Read... [18:57:31]Read from MH i2c: E2 17 00 [18:57:31]MH_I2C_Read... [18:57:31]Read from MH i2c: E2 17 00 CA 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9E [18:57:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:57:31]wFMCommunicate OK [18:57:31]requested_item fd.num is exist - process it [18:57:31]SAM_PROTO_GetFieldsCounters [18:57:31]wFMCommunicate request_size=4 [18:57:31]MH_SAM_APDU [18:57:31]CAPDU: 80 13 00 00 [18:57:31]Write to MH i2c: E2 08 00 CB 08 80 13 00 00 00 00 00 00 4F [18:57:31]Write i2c OK [18:57:31]MH_I2C_Read... [18:57:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:57:31]Read from MH i2c: E2 [18:57:31]MH_I2C_Read... [18:57:31]Read from MH i2c: E2 62 00 [18:57:31]MH_I2C_Read... [18:57:31]Read from MH i2c: E2 62 00 CB 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 84 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 61 01 00 00 5E 04 04 00 61 01 00 00 57 04 04 00 62 01 00 00 19 04 04 00 00 00 00 00 90 00 E5 [18:57:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 84 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 61 01 00 00 5E 04 04 00 61 01 00 00 57 04 04 00 62 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:57:31]wFMCommunicate OK [18:57:31]SAM_PROTO_GetFieldsCounters done [18:57:31]requested_item shift.num is exist - process it [18:57:31]requested_item shift.opened is exist - process it [18:57:31]req_shift_opened [18:57:31]FM_GetShiftState [18:57:31]SAM_PROTO_GetShiftState [18:57:31]wFMCommunicate request_size=4 [18:57:31]MH_SAM_APDU [18:57:31]CAPDU: 80 13 01 00 [18:57:31]Write to MH i2c: E2 08 00 CC 08 80 13 01 00 00 00 00 00 51 [18:57:31]Write i2c OK [18:57:31]MH_I2C_Read... [18:57:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:31]Read from MH i2c: E2 [18:57:31]MH_I2C_Read... [18:57:31]Read from MH i2c: E2 0E 00 [18:57:31]MH_I2C_Read... [18:57:31]Read from MH i2c: E2 0E 00 CC 08 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 57 [18:57:31]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:57:31]wFMCommunicate OK [18:57:31]SAM_PROTO_GetShiftState done [18:57:31]FM_GetShiftState done [18:57:31]req_shift_opened done [18:57:31]requested_item shift.open_date is exist - process it [18:57:31]req_shift_open_date [18:57:31]req_shift_open_date done [18:57:31]produce_requested_data done [18:57:31]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69508,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [18:57:31]process_action_free close_receipt [18:57:31]json_value_free [18:57:31]json_value_free done [18:57:31]process_json_proto returns [18:57:31]Send response to host [18:57:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69508,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [18:57:31]free response buf [18:57:31]execute_script done [18:57:31]execute_script returns [18:57:31]free content buf [18:57:31]Sock 7.Close socket [18:57:31]Sock 7.Thread stoped [18:57:32]accept exits with 9 [18:57:32]New connection [18:57:32]New thread 3066797412 created [18:57:32]Thread 3066654052 joined [18:57:32]Waiting for new connection... [18:57:32] Sock 9.Parse request [18:57:32]Sock 9.Check first char [18:57:32]Sock 9.First char is OK [18:57:32]request: POST /json_proto HTTP/1.0 [18:57:32]Method: POST [18:57:32]URL: /json_proto [18:57:32]Method is POST - this is cgi request [18:57:32]url: /json_proto [18:57:32]query_string will be loaded in cgi processing [18:57:32]execute_cgi json_proto POST (null) [18:57:32]execute_cgi path=json_proto method=POST [18:57:32]POST find Content-Length [18:57:32]Host: 172.17.50.3:8080 [18:57:32]Content-Length: 675 [18:57:32]Content-Type: application/json [18:57:32] [18:57:32]POST finish read [18:57:32]Found Content-Length = 675 [18:57:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.830, "sum" : 520.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:32]execute_script... [18:57: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)2885246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.830, "sum" : 520.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:32]POST & json_proto [18:57:32]process_json_proto [18:57:32]json parsed OK: [18:57:32]protocol is kg_v1.0 [18:57:32]action value=close_receipt [18:57:32]process_action close_receipt [18:57:32]cmd_close_receipt [18:57:32]MH_GetDate [18:57:32]Write to MH i2c: F0 00 00 CD 08 C4 [18:57:32]Write i2c OK [18:57:32]MH_I2C_Read... [18:57:32]Read from MH i2c: F0 [18:57:32]MH_I2C_Read... [18:57:32]Read from MH i2c: F0 09 00 [18:57:32]MH_I2C_Read... [18:57:32]Read from MH i2c: F0 09 00 CD 08 00 9D 52 15 67 6B 98 1E 66 BF [18:57:32]GetLastDocTimeStamp 1729450647 [18:57:32]current date 1729450653 [18:57:32]FM_GetShiftState [18:57:32]SAM_PROTO_GetShiftState [18:57:32]wFMCommunicate request_size=4 [18:57:32]MH_SAM_APDU [18:57:32]CAPDU: 80 13 01 00 [18:57:32]Write to MH i2c: E2 08 00 CE 08 80 13 01 00 00 00 00 00 53 [18:57:32]Write i2c OK [18:57:32]MH_I2C_Read... [18:57:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:32]Read from MH i2c: E2 [18:57:32]MH_I2C_Read... [18:57:32]Read from MH i2c: E2 0E 00 [18:57:32]MH_I2C_Read... [18:57:32]Read from MH i2c: E2 0E 00 CE 08 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 59 [18:57:32]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:57:32]wFMCommunicate OK [18:57:32]SAM_PROTO_GetShiftState done [18:57:32]FM_GetShiftState done [18:57:32]opened in 1729383220 [18:57:32]opened+sec_in_day 1729469620 [18:57:32]quantity*price = 52044 [18:57:32]sum+1 = 52046 [18:57:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 520.00 Внесено: 520.00 СДАЧА: 0.00 НСП 1% : 4.61 НДС 12% : 55.27 Наличными: 520.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 354 20.10.2024 18:57 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69509 ФПД: 178162091514999 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185733&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69509&fm=178162091514999&tin=02508201610067®Number=0000000000156251&sum=52000 [18:57:34]StoreToDocumentArchive [18:57:34]shift 193 fd 69509 [18:57:34]save to /storage/0193/doc_00069509 [18:57:34]save last doc name /storage/0193/doc_00069509 to /storage/kkm_last_doc_name [18:57:34]save OK [18:57:34]Clear old archive folders... [18:57:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:57:34]tlvbuf is 00F29960 [18:57:34]SAM_PROTO_ClearQueue [18:57:34]wFMCommunicate request_size=4 [18:57:34]MH_SAM_APDU [18:57:34]CAPDU: 80 09 00 00 [18:57:34]Write to MH i2c: E2 08 00 DB 08 80 09 00 00 00 00 00 00 55 [18:57:34]Write i2c OK [18:57:34]MH_I2C_Read... [18:57:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:57:34]Read from MH i2c: E2 [18:57:34]MH_I2C_Read... [18:57:34]Read from MH i2c: E2 03 00 [18:57:34]MH_I2C_Read... [18:57:34]Read from MH i2c: E2 03 00 DB 08 00 90 00 57 [18:57:34]RAPDU: 90 00 [18:57:34]wFMCommunicate OK [18:57:34]SAM_PROTO_ClearQueue done [18:57:34]KKMCreateOFDPacket [18:57:34]OFDProtocolAddRootSTLVToBuf [18:57:34]FM_MakeSignedData [18:57:34]FM_MakeSignedData [18:57:34]SAM_PROTO_SignData [18:57:34]wFMCommunicate request_size=4 [18:57:34]MH_SAM_APDU [18:57:34]CAPDU: 80 0D 01 02 [18:57:34]Write to MH i2c: E2 08 00 DC 08 80 0D 01 02 00 00 00 00 5D [18:57:34]Write i2c OK [18:57:34]MH_I2C_Read... [18:57:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:57:34]Read from MH i2c: E2 [18:57:34]MH_I2C_Read... [18:57:34]Read from MH i2c: E2 03 00 [18:57:34]MH_I2C_Read... [18:57:34]Read from MH i2c: E2 03 00 DC 08 00 90 00 58 [18:57:34]RAPDU: 90 00 [18:57:34]wFMCommunicate OK [18:57:34]wFMCommunicate request_size=255 [18:57:34]MH_SAM_APDU [18:57:34]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 1A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4D CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 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 01 00 00 F4 03 04 00 9D 52 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 85 0F 01 00 35 04 06 00 A2 09 98 2D [18:57:34]Write to MH i2c: E2 02 01 DD 08 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 AE 1A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4D CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 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 01 00 00 F4 03 04 00 9D 52 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 85 0F 01 00 35 04 06 00 A2 09 98 2D 00 00 59 [18:57:34]Write i2c OK [18:57:34]MH_I2C_Read... [18:57:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:34]Read from MH i2c: E2 [18:57:34]MH_I2C_Read... [18:57:34]Read from MH i2c: E2 03 00 [18:57:34]MH_I2C_Read... [18:57:34]Read from MH i2c: E2 03 00 DD 08 00 90 00 59 [18:57:34]RAPDU: 90 00 [18:57:34]wFMCommunicate OK [18:57:34]wFMCommunicate request_size=7 [18:57:34]MH_SAM_APDU [18:57:34]CAPDU: 80 0D 02 02 02 5C 77 [18:57:34]Write to MH i2c: E2 0A 00 DE 08 80 0D 02 02 02 00 5C 77 00 00 37 [18:57:34]Write i2c OK [18:57:34]MH_I2C_Read... [18:57:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:34]Read from MH i2c: E2 [18:57:34]MH_I2C_Read... [18:57:34]Read from MH i2c: E2 03 00 [18:57:34]MH_I2C_Read... [18:57:34]Read from MH i2c: E2 03 00 DE 08 00 90 00 5A [18:57:34]RAPDU: 90 00 [18:57:34]wFMCommunicate OK [18:57:34]wFMCommunicate request_size=4 [18:57:34]MH_SAM_APDU [18:57:34]CAPDU: 80 0D 03 02 [18:57:34]Write to MH i2c: E2 08 00 DF 08 80 0D 03 02 00 00 00 00 62 [18:57:34]Write i2c OK [18:57:34]MH_I2C_Read... [18:57:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:57:34]Read from MH i2c: E2 [18:57:34]MH_I2C_Read... [18:57:34]Read from MH i2c: E2 0B 00 [18:57:34]MH_I2C_Read... [18:57:34]Read from MH i2c: E2 0B 00 DF 08 00 78 10 B2 39 02 66 68 EB 90 00 91 [18:57:34]RAPDU: 78 10 B2 39 02 66 68 EB 90 00 [18:57:34]wFMCommunicate OK [18:57:34]SAM_PROTO_SignData done [18:57:34]FM_MakeSignedData done [18:57:34]CreateOFDProtocolMessage [18:57:34]wFMCommunicate request_size=4 [18:57:34]MH_SAM_APDU [18:57:34]CAPDU: 80 11 00 00 [18:57:34]Write to MH i2c: E2 08 00 E0 08 80 11 00 00 00 00 00 00 62 [18:57:34]Write i2c OK [18:57:34]MH_I2C_Read... [18:57:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:34]Read from MH i2c: E2 [18:57:34]MH_I2C_Read... [18:57:34]Read from MH i2c: E2 17 00 [18:57:34]MH_I2C_Read... [18:57:34]Read from MH i2c: E2 17 00 E0 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B4 [18:57:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:57:34]wFMCommunicate OK [18:57:34]CreateOFDProtocolMessage done [18:57:34]OFDSenderStorePacket 69509 [18:57:34]StoreOFDPacket docnum=69509 [18:57:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 22 75 04 01 CE A8 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 AE 1A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4D CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 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 01 00 00 F4 03 04 00 9D 52 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 85 0F 01 00 35 04 06 00 A2 09 98 2D 5C 77 78 10 B2 39 02 66 68 EB [18:57:34]CheckFolder [18:57:34]dirname=/storage/ofd_packets [18:57:34]CheckFolder done [18:57:34]ProducePacketName [18:57:34]name=ofd_packets/00069509 [18:57:34]NVStorageSaveData ofd_packets/00069509 [18:57:34]File name is /storage/ofd_packets/00069509 [18:57:34]Write 298 bytes [18:57:34]NVStorageSaveData done [18:57:34]OFDSenderStorePacket done [18:57:34]KKMCreateOFDPacket done [18:57:34]NVStorageSaveData kkm_last_timestamp [18:57:34]File name is /storage/kkm_last_timestamp [18:57:34]Write 4 bytes [18:57:34]NVStorageSaveData done [18:57:34]ExternCall_PrintAddStr [18:57:34]wPrintStart [18:57:34]Write to MH i2c: 01 00 00 E1 08 E9 [18:57:34]Write i2c OK [18:57:34]MH_I2C_Read... [18:57:34]Read from MH i2c: 01 [18:57:34]MH_I2C_Read... [18:57:34]Read from MH i2c: 01 07 00 [18:57:34]MH_I2C_Read... [18:57:34]Read from MH i2c: 01 07 00 E1 08 00 00 00 00 00 FF 0F FE [18:57:34]RasterBufferAndPrint [18:57:34]line Счет N : (1)2885246 [18:57:34]line ИНН: 02508201610067 [18:57:34]line Контрольно-Кассовый Чек [18:57:34]line ПРОДАЖА [18:57:34]line ТРК (МРК, ГНК) : 51 [18:57:34]line Товар: 2710194210 [18:57:34]line ДТ-К-5 [18:57:34]line 6.830 * 76.20 [18:57:34]line = 520.45 [18:57:34]line НДС 12% НСП 1% [18:57:34]line > о реализуемом товаре [18:57:34]line ОКРУГЛЕНИЕ: -0.45 [18:57:34]line ИТОГО: 520.00 [18:57:34]line Внесено: 520.00 [18:57:34]line СДАЧА: 0.00 [18:57:34]line НСП 1% : 4.61 [18:57:34]line НДС 12% : 55.27 [18:57:34]line Наличными: 520.00 [18:57:34]line Безнал.: 0.00 [18:57:34]line Место: АЗС № 85 "Партнер Нефть" [18:57:34]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:57:34]line СНО: Общий режим [18:57:34]line Чек 354 20.10.2024 18:57 [18:57:34]line Смена: 193 ФФД: 1.0 [18:57:34]line ЗНМ: 0300000167 [18:57:34]line РНМ: 0000000000156251 [18:57:34]line Версия ККМ: v1.0 [18:57:34]line ФМ: 0000000000963346 [18:57:34]line ФД: 69509 [18:57:34]line ФПД: 178162091514999 [18:57:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185733&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69509&fm=178162091514999&tin=02508201610067®Number=0000000000156251&sum=52000 [18:57:34]written 0, free lines is 4095 [18:57:34]OFD Sender: Processing packet 69509 [packets to send 18, broken 17] [18:57:34]ProducePacketName [18:57:34]name=ofd_packets/00069509 [18:57:34]OFD Sender: To server: pG, [18:57:34]CommunicateWithHost lk.salyk.kg:30040 [18:57:34]ConnectInit lk.salyk.kg [18:57:34]Connected sock=10 [18:57:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 22 75 04 01 CE A8 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 AE 1A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4D CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 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 01 00 00 F4 03 04 00 9D 52 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 85 0F 01 00 35 04 06 00 A2 09 98 2D 5C 77 78 10 B2 39 02 66 68 EB [18:57:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 CA A8 47 00 B8 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 85 0F 01 00 F4 03 04 00 43 FC 14 67 B6 04 01 00 00 B2 FE 58 F6 7B 9D 3C 73 [18:57:35]CommunicateWithHost err = 0 [18:57:35]CheckOFDResponse [18:57:35]1017 (14) - 77093643461234 [18:57:35]1041 (16) - 0000000000963346 [18:57:35]1040 (4) - 69509 [18:57:35]1012 (4) - 20.10.2024 12:49 [18:57:35]1206 (1) - 0 [18:57:35]OFD Sender: Remove packet 69509 [18:57:35]ProducePacketName [18:57:35]name=ofd_packets/00069509 [18:57:35]NVStorageDeleteData [18:57:35]Write to MH i2c: 01 00 00 0C 09 15 [18:57:35]Write i2c OK [18:57:35]MH_I2C_Read... [18:57:35]Read from MH i2c: 01 [18:57:35]MH_I2C_Read... [18:57:35]Read from MH i2c: 01 07 00 [18:57:35]MH_I2C_Read... [18:57:35]Read from MH i2c: 01 07 00 0C 09 00 00 00 00 00 F3 0C 1B [18:57:35]RasterBufferAndPrint [18:57:35]line [18:57:35]line [18:57:35]line [18:57:35]line [18:57:35]line [18:57:35]written 0, free lines is 3333 [18:57:35]MH_Cut [18:57:35]Write to MH i2c: D1 01 00 13 09 01 EE [18:57:35]Write i2c OK [18:57:35]MH_I2C_Read... [18:57:35]Read from MH i2c: D1 [18:57:35]MH_I2C_Read... [18:57:35]Read from MH i2c: D1 01 00 [18:57:35]MH_I2C_Read... [18:57:35]Read from MH i2c: D1 01 00 13 09 00 ED [18:57:35]Write to MH i2c: 01 00 00 14 09 1D [18:57:35]Write i2c OK [18:57:35]MH_I2C_Read... [18:57:35]OFD Sender: No OFD packet to send [18:57:35]*** Cut start [18:57:35]*** Partial cut [18:57:35]*** CUTSNS_PIN = 1 [18:57:35]*** CUTSNS_PIN = 0 [18:57:36]*** Brake cut motor [18:57:36]Read from MH i2c: 01 [18:57:36]MH_I2C_Read... [18:57:36]*** Stop cut motor [18:57:36]*** Cut end [18:57:36]Read from MH i2c: 01 07 00 [18:57:36]MH_I2C_Read... [18:57:36]Read from MH i2c: 01 07 00 14 09 00 00 00 00 00 FF 0F 32 [18:57:36]process_action close_receipt done [18:57:36]requested_data is exist [18:57:36]produce_requested_data [18:57:36]requested_item fm.sn is exist - process it [18:57:36]wFMCommunicate request_size=4 [18:57:36]MH_SAM_APDU [18:57:36]CAPDU: 80 11 00 00 [18:57:36]Write to MH i2c: E2 08 00 15 09 80 11 00 00 00 00 00 00 98 [18:57:36]Write i2c OK [18:57:36]MH_I2C_Read... [18:57:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:36]Read from MH i2c: E2 [18:57:36]MH_I2C_Read... [18:57:36]Read from MH i2c: E2 17 00 [18:57:36]MH_I2C_Read... [18:57:36]Read from MH i2c: E2 17 00 15 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EA [18:57:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:57:36]wFMCommunicate OK [18:57:36]requested_item fd.num is exist - process it [18:57:36]SAM_PROTO_GetFieldsCounters [18:57:36]wFMCommunicate request_size=4 [18:57:36]MH_SAM_APDU [18:57:36]CAPDU: 80 13 00 00 [18:57:36]Write to MH i2c: E2 08 00 16 09 80 13 00 00 00 00 00 00 9B [18:57:36]Write i2c OK [18:57:36]MH_I2C_Read... [18:57:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:57:36]Read from MH i2c: E2 [18:57:36]MH_I2C_Read... [18:57:36]Read from MH i2c: E2 62 00 [18:57:36]MH_I2C_Read... [18:57:36]Read from MH i2c: E2 62 00 16 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 85 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 35 [18:57:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 85 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:57:36]wFMCommunicate OK [18:57:36]SAM_PROTO_GetFieldsCounters done [18:57:36]requested_item shift.num is exist - process it [18:57:36]requested_item shift.opened is exist - process it [18:57:36]req_shift_opened [18:57:36]FM_GetShiftState [18:57:36]SAM_PROTO_GetShiftState [18:57:36]wFMCommunicate request_size=4 [18:57:36]MH_SAM_APDU [18:57:36]CAPDU: 80 13 01 00 [18:57:36]Write to MH i2c: E2 08 00 17 09 80 13 01 00 00 00 00 00 9D [18:57:36]Write i2c OK [18:57:36]MH_I2C_Read... [18:57:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:36]Read from MH i2c: E2 [18:57:36]MH_I2C_Read... [18:57:36]Read from MH i2c: E2 0E 00 [18:57:36]MH_I2C_Read... [18:57:36]Read from MH i2c: E2 0E 00 17 09 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 A3 [18:57:36]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:57:36]wFMCommunicate OK [18:57:36]SAM_PROTO_GetShiftState done [18:57:36]FM_GetShiftState done [18:57:36]req_shift_opened done [18:57:36]requested_item shift.open_date is exist - process it [18:57:36]req_shift_open_date [18:57:36]req_shift_open_date done [18:57:36]produce_requested_data done [18:57:36]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69509,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [18:57:36]process_action_free close_receipt [18:57:36]json_value_free [18:57:36]json_value_free done [18:57:36]process_json_proto returns [18:57:36]Send response to host [18:57:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69509,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [18:57:36]free response buf [18:57:36]execute_script done [18:57:36]execute_script returns [18:57:36]free content buf [18:57:36]Sock 9.Close socket [18:57:36]Sock 9.Thread stoped [18:57:40]OFD Sender: No OFD packet to send [18:57:45]OFD Sender: No OFD packet to send [18:57:50]OFD Sender: No OFD packet to send [18:57:55]OFD Sender: No OFD packet to send [18:58:00]OFD Sender: No OFD packet to send [18:58:05]OFD Sender: No OFD packet to send [18:58:10]OFD Sender: No OFD packet to send [18:58:15]OFD Sender: No OFD packet to send [18:58:20]OFD Sender: No OFD packet to send [18:58:25]OFD Sender: No OFD packet to send [18:58:30]OFD Sender: No OFD packet to send [18:58:35]OFD Sender: No OFD packet to send [18:58:40]OFD Sender: No OFD packet to send [18:58:40]accept exits with 7 [18:58:40]New connection [18:58:40]New thread 3066654052 created [18:58:40]Thread 3066797412 joined [18:58:40]Waiting for new connection... [18:58:40] Sock 7.Parse request [18:58:40]Sock 7.Check first char [18:58:40]Sock 7.First char is OK [18:58:40]request: POST /json_proto HTTP/1.0 [18:58:40]Method: POST [18:58:40]URL: /json_proto [18:58:40]Method is POST - this is cgi request [18:58:40]url: /json_proto [18:58:40]query_string will be loaded in cgi processing [18:58:40]execute_cgi json_proto POST (null) [18:58:40]execute_cgi path=json_proto method=POST [18:58:40]POST find Content-Length [18:58:40]Host: 172.17.50.3:8080 [18:58:40]Content-Length: 678 [18:58:40]Content-Type: application/json [18:58:40] [18:58:40]POST finish read [18:58:40]Found Content-Length = 678 [18:58:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.070, "sum" : 450.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:40]execute_script... [18:58:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.070, "sum" : 450.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:40]POST & json_proto [18:58:40]process_json_proto [18:58:40]json parsed OK: [18:58:40]protocol is kg_v1.0 [18:58:40]action value=close_receipt [18:58:40]process_action close_receipt [18:58:40]cmd_close_receipt [18:58:40]MH_GetDate [18:58:40]Write to MH i2c: F0 00 00 18 09 10 [18:58:40]Write i2c OK [18:58:40]MH_I2C_Read... [18:58:40]Read from MH i2c: F0 [18:58:40]MH_I2C_Read... [18:58:40]Read from MH i2c: F0 09 00 [18:58:40]MH_I2C_Read... [18:58:40]Read from MH i2c: F0 09 00 18 09 00 E1 52 15 67 6B 98 1E 66 4F [18:58:40]GetLastDocTimeStamp 1729450653 [18:58:40]current date 1729450721 [18:58:40]FM_GetShiftState [18:58:40]SAM_PROTO_GetShiftState [18:58:40]wFMCommunicate request_size=4 [18:58:40]MH_SAM_APDU [18:58:40]CAPDU: 80 13 01 00 [18:58:40]Write to MH i2c: E2 08 00 19 09 80 13 01 00 00 00 00 00 9F [18:58:40]Write i2c OK [18:58:40]MH_I2C_Read... [18:58:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:40]Read from MH i2c: E2 [18:58:40]MH_I2C_Read... [18:58:40]Read from MH i2c: E2 0E 00 [18:58:40]MH_I2C_Read... [18:58:40]Read from MH i2c: E2 0E 00 19 09 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 A5 [18:58:40]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:58:40]wFMCommunicate OK [18:58:40]SAM_PROTO_GetShiftState done [18:58:40]FM_GetShiftState done [18:58:40]opened in 1729383220 [18:58:40]opened+sec_in_day 1729469620 [18:58:40]quantity*price = 45039 [18:58:40]sum+1 = 45040 [18:58:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.99 НДС 12% : 47.83 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 355 20.10.2024 18:58 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69510 ФПД: 76480087921180 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185841&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69510&fm=76480087921180&tin=02508201610067®Number=0000000000156251&sum=45000 [18:58:41]StoreToDocumentArchive [18:58:41]shift 193 fd 69510 [18:58:41]save to /storage/0193/doc_00069510 [18:58:41]save last doc name /storage/0193/doc_00069510 to /storage/kkm_last_doc_name [18:58:41]save OK [18:58:41]Clear old archive folders... [18:58:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:58:41]tlvbuf is 00F56FA0 [18:58:41]SAM_PROTO_ClearQueue [18:58:41]wFMCommunicate request_size=4 [18:58:41]MH_SAM_APDU [18:58:41]CAPDU: 80 09 00 00 [18:58:41]Write to MH i2c: E2 08 00 26 09 80 09 00 00 00 00 00 00 A1 [18:58:41]Write i2c OK [18:58:41]MH_I2C_Read... [18:58:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:58:42]Read from MH i2c: E2 [18:58:42]MH_I2C_Read... [18:58:42]Read from MH i2c: E2 03 00 [18:58:42]MH_I2C_Read... [18:58:42]Read from MH i2c: E2 03 00 26 09 00 90 00 A3 [18:58:42]RAPDU: 90 00 [18:58:42]wFMCommunicate OK [18:58:42]SAM_PROTO_ClearQueue done [18:58:42]KKMCreateOFDPacket [18:58:42]OFDProtocolAddRootSTLVToBuf [18:58:42]FM_MakeSignedData [18:58:42]FM_MakeSignedData [18:58:42]SAM_PROTO_SignData [18:58:42]wFMCommunicate request_size=4 [18:58:42]MH_SAM_APDU [18:58:42]CAPDU: 80 0D 01 02 [18:58:42]Write to MH i2c: E2 08 00 27 09 80 0D 01 02 00 00 00 00 A9 [18:58:42]Write i2c OK [18:58:42]MH_I2C_Read... [18:58:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:58:42]Read from MH i2c: E2 [18:58:42]MH_I2C_Read... [18:58:42]Read from MH i2c: E2 03 00 [18:58:42]MH_I2C_Read... [18:58:42]Read from MH i2c: E2 03 00 27 09 00 90 00 A4 [18:58:42]RAPDU: 90 00 [18:58:42]wFMCommunicate OK [18:58:42]wFMCommunicate request_size=255 [18:58:42]MH_SAM_APDU [18:58: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 B6 17 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 12 00 00 00 00 07 04 06 00 C8 AF 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 01 00 00 F4 03 04 00 E1 52 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 86 0F 01 00 35 04 06 00 45 [18:58:42]Write to MH i2c: E2 02 01 28 09 80 0D 02 02 FA 00 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 B6 17 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 12 00 00 00 00 07 04 06 00 C8 AF 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 01 00 00 F4 03 04 00 E1 52 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 86 0F 01 00 35 04 06 00 45 00 00 22 [18:58:42]Write i2c OK [18:58:42]MH_I2C_Read... [18:58:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:42]Read from MH i2c: E2 [18:58:42]MH_I2C_Read... [18:58:42]Read from MH i2c: E2 03 00 [18:58:42]MH_I2C_Read... [18:58:42]Read from MH i2c: E2 03 00 28 09 00 90 00 A5 [18:58:42]RAPDU: 90 00 [18:58:42]wFMCommunicate OK [18:58:42]wFMCommunicate request_size=10 [18:58:42]MH_SAM_APDU [18:58:42]CAPDU: 80 0D 02 02 05 8E E8 79 12 1C [18:58:42]Write to MH i2c: E2 0D 00 29 09 80 0D 02 02 05 00 8E E8 79 12 1C 00 00 D3 [18:58:42]Write i2c OK [18:58:42]MH_I2C_Read... [18:58:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:42]Read from MH i2c: E2 [18:58:42]MH_I2C_Read... [18:58:42]Read from MH i2c: E2 03 00 [18:58:42]MH_I2C_Read... [18:58:42]Read from MH i2c: E2 03 00 29 09 00 90 00 A6 [18:58:42]RAPDU: 90 00 [18:58:42]wFMCommunicate OK [18:58:42]wFMCommunicate request_size=4 [18:58:42]MH_SAM_APDU [18:58:42]CAPDU: 80 0D 03 02 [18:58:42]Write to MH i2c: E2 08 00 2A 09 80 0D 03 02 00 00 00 00 AE [18:58:42]Write i2c OK [18:58:42]MH_I2C_Read... [18:58:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:58:42]Read from MH i2c: E2 [18:58:42]MH_I2C_Read... [18:58:42]Read from MH i2c: E2 0B 00 [18:58:42]MH_I2C_Read... [18:58:42]Read from MH i2c: E2 0B 00 2A 09 00 17 02 16 B5 3D 98 1C AE 90 00 32 [18:58:42]RAPDU: 17 02 16 B5 3D 98 1C AE 90 00 [18:58:42]wFMCommunicate OK [18:58:42]SAM_PROTO_SignData done [18:58:42]FM_MakeSignedData done [18:58:42]CreateOFDProtocolMessage [18:58:42]wFMCommunicate request_size=4 [18:58:42]MH_SAM_APDU [18:58:42]CAPDU: 80 11 00 00 [18:58:42]Write to MH i2c: E2 08 00 2B 09 80 11 00 00 00 00 00 00 AE [18:58:42]Write i2c OK [18:58:42]MH_I2C_Read... [18:58:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:42]Read from MH i2c: E2 [18:58:42]MH_I2C_Read... [18:58:42]Read from MH i2c: E2 17 00 [18:58:42]MH_I2C_Read... [18:58:42]Read from MH i2c: E2 17 00 2B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 00 [18:58:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:58:42]wFMCommunicate OK [18:58:42]CreateOFDProtocolMessage done [18:58:42]OFDSenderStorePacket 69510 [18:58:42]StoreOFDPacket docnum=69510 [18:58:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 D9 12 07 01 11 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B6 17 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 12 00 00 00 00 07 04 06 00 C8 AF 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 01 00 00 F4 03 04 00 E1 52 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 86 0F 01 00 35 04 06 00 45 8E E8 79 12 1C 17 02 16 B5 3D 98 1C AE [18:58:42]CheckFolder [18:58:42]dirname=/storage/ofd_packets [18:58:42]CheckFolder done [18:58:42]ProducePacketName [18:58:42]name=ofd_packets/00069510 [18:58:42]NVStorageSaveData ofd_packets/00069510 [18:58:42]File name is /storage/ofd_packets/00069510 [18:58:42]Write 301 bytes [18:58:42]NVStorageSaveData done [18:58:42]OFDSenderStorePacket done [18:58:42]KKMCreateOFDPacket done [18:58:42]NVStorageSaveData kkm_last_timestamp [18:58:42]File name is /storage/kkm_last_timestamp [18:58:42]Write 4 bytes [18:58:42]NVStorageSaveData done [18:58:42]ExternCall_PrintAddStr [18:58:42]wPrintStart [18:58:42]Write to MH i2c: 01 00 00 2C 09 35 [18:58:42]Write i2c OK [18:58:42]MH_I2C_Read... [18:58:42]Read from MH i2c: 01 [18:58:42]MH_I2C_Read... [18:58:42]Read from MH i2c: 01 07 00 [18:58:42]MH_I2C_Read... [18:58:42]Read from MH i2c: 01 07 00 2C 09 00 00 00 00 00 FF 0F 4A [18:58:42]RasterBufferAndPrint [18:58:42]line Счет N : (1)2885248 [18:58:42]line ИНН: 02508201610067 [18:58:42]line Контрольно-Кассовый Чек [18:58:42]line ПРОДАЖА [18:58:42]line ТРК (МРК, ГНК) : 13 [18:58:42]line Товар: 2710124500 [18:58:42]line Аи-95-К-5 [18:58:42]line 6.070 * 74.20 [18:58:42]line = 450.39 [18:58:42]line НДС 12% НСП 1% [18:58:42]line > о реализуемом товаре [18:58:42]line ОКРУГЛЕНИЕ: -0.39 [18:58:42]line ИТОГО: 450.00 [18:58:42]line Внесено: 450.00 [18:58:42]line СДАЧА: 0.00 [18:58:42]line НСП 1% : 3.99 [18:58:42]line НДС 12% : 47.83 [18:58:42]line Наличными: 450.00 [18:58:42]line Безнал.: 0.00 [18:58:42]line Место: АЗС № 85 "Партнер Нефть" [18:58:42]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [18:58:42]line СНО: Общий режим [18:58:42]line Чек 355 20.10.2024 18:58 [18:58:42]line Смена: 193 ФФД: 1.0 [18:58:42]line ЗНМ: 0300000167 [18:58:42]line РНМ: 0000000000156251 [18:58:42]line Версия ККМ: v1.0 [18:58:42]line ФМ: 0000000000963346 [18:58:42]line ФД: 69510 [18:58:42]line ФПД: 76480087921180 [18:58:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T185841&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69510&fm=76480087921180&tin=02508201610067®Number=0000000000156251&sum=45000 [18:58:42]OFD Sender: Processing packet 69510 [packets to send 18, broken 17] [18:58:42]ProducePacketName [18:58:42]name=ofd_packets/00069510 [18:58:42]OFD Sender: To server: pG, [18:58:42]CommunicateWithHost lk.salyk.kg:30040 [18:58:42]ConnectInit lk.salyk.kg [18:58:42]written 0, free lines is 4095 [18:58:42]Connected sock=10 [18:58:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 D9 12 07 01 11 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B6 17 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 12 00 00 00 00 07 04 06 00 C8 AF 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 01 00 00 F4 03 04 00 E1 52 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 86 0F 01 00 35 04 06 00 45 8E E8 79 12 1C 17 02 16 B5 3D 98 1C AE [18:58:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 78 D9 47 00 C2 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 86 0F 01 00 F4 03 04 00 87 FC 14 67 B6 04 01 00 00 AD 1B 26 63 4A 2F 88 A7 [18:58:43]CommunicateWithHost err = 0 [18:58:43]CheckOFDResponse [18:58:43]1017 (14) - 77093643461234 [18:58:43]1041 (16) - 0000000000963346 [18:58:43]1040 (4) - 69510 [18:58:43]1012 (4) - 20.10.2024 12:50 [18:58:43]1206 (1) - 0 [18:58:43]OFD Sender: Remove packet 69510 [18:58:43]ProducePacketName [18:58:43]name=ofd_packets/00069510 [18:58:43]NVStorageDeleteData [18:58:43]Write to MH i2c: 01 00 00 57 09 60 [18:58:43]Write i2c OK [18:58:43]MH_I2C_Read... [18:58:43]Read from MH i2c: 01 [18:58:43]MH_I2C_Read... [18:58:43]Read from MH i2c: 01 07 00 [18:58:43]MH_I2C_Read... [18:58:43]Read from MH i2c: 01 07 00 57 09 00 00 00 00 00 13 0D 87 [18:58:43]RasterBufferAndPrint [18:58:43]line [18:58:43]line [18:58:43]line [18:58:43]line [18:58:43]line [18:58:43]written 0, free lines is 3353 [18:58:43]MH_Cut [18:58:43]Write to MH i2c: D1 01 00 5E 09 01 39 [18:58:43]Write i2c OK [18:58:43]MH_I2C_Read... [18:58:43]Read from MH i2c: D1 [18:58:43]MH_I2C_Read... [18:58:43]Read from MH i2c: D1 01 00 [18:58:43]MH_I2C_Read... [18:58:43]Read from MH i2c: D1 01 00 5E 09 00 38 [18:58:43]Write to MH i2c: 01 00 00 5F 09 68 [18:58:43]Write i2c OK [18:58:43]MH_I2C_Read... [18:58:43]OFD Sender: No OFD packet to send [18:58:43]*** Cut start [18:58:43]*** Partial cut [18:58:43]*** CUTSNS_PIN = 1 [18:58:44]*** CUTSNS_PIN = 0 [18:58:44]*** Brake cut motor [18:58:44]Read from MH i2c: 01 [18:58:44]MH_I2C_Read... [18:58:44]*** Stop cut motor [18:58:44]*** Cut end [18:58:44]Read from MH i2c: 01 07 00 [18:58:44]MH_I2C_Read... [18:58:44]Read from MH i2c: 01 07 00 5F 09 00 00 00 00 00 FF 0F 7D [18:58:44]process_action close_receipt done [18:58:44]requested_data is exist [18:58:44]produce_requested_data [18:58:44]requested_item fm.sn is exist - process it [18:58:44]wFMCommunicate request_size=4 [18:58:44]MH_SAM_APDU [18:58:44]CAPDU: 80 11 00 00 [18:58:44]Write to MH i2c: E2 08 00 60 09 80 11 00 00 00 00 00 00 E3 [18:58:44]Write i2c OK [18:58:44]MH_I2C_Read... [18:58:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:44]Read from MH i2c: E2 [18:58:44]MH_I2C_Read... [18:58:44]Read from MH i2c: E2 17 00 [18:58:44]MH_I2C_Read... [18:58:44]Read from MH i2c: E2 17 00 60 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 35 [18:58:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [18:58:44]wFMCommunicate OK [18:58:44]requested_item fd.num is exist - process it [18:58:44]SAM_PROTO_GetFieldsCounters [18:58:44]wFMCommunicate request_size=4 [18:58:44]MH_SAM_APDU [18:58:44]CAPDU: 80 13 00 00 [18:58:44]Write to MH i2c: E2 08 00 61 09 80 13 00 00 00 00 00 00 E6 [18:58:44]Write i2c OK [18:58:44]MH_I2C_Read... [18:58:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:58:44]Read from MH i2c: E2 [18:58:44]MH_I2C_Read... [18:58:44]Read from MH i2c: E2 62 00 [18:58:44]MH_I2C_Read... [18:58:44]Read from MH i2c: E2 62 00 61 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 86 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 63 01 00 00 5E 04 04 00 63 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 84 [18:58:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 86 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 63 01 00 00 5E 04 04 00 63 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:58:44]wFMCommunicate OK [18:58:44]SAM_PROTO_GetFieldsCounters done [18:58:44]requested_item shift.num is exist - process it [18:58:44]requested_item shift.opened is exist - process it [18:58:44]req_shift_opened [18:58:44]FM_GetShiftState [18:58:44]SAM_PROTO_GetShiftState [18:58:44]wFMCommunicate request_size=4 [18:58:44]MH_SAM_APDU [18:58:44]CAPDU: 80 13 01 00 [18:58:44]Write to MH i2c: E2 08 00 62 09 80 13 01 00 00 00 00 00 E8 [18:58:44]Write i2c OK [18:58:44]MH_I2C_Read... [18:58:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:44]Read from MH i2c: E2 [18:58:44]MH_I2C_Read... [18:58:44]Read from MH i2c: E2 0E 00 [18:58:44]MH_I2C_Read... [18:58:44]Read from MH i2c: E2 0E 00 62 09 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 EE [18:58:44]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [18:58:44]wFMCommunicate OK [18:58:44]SAM_PROTO_GetShiftState done [18:58:44]FM_GetShiftState done [18:58:44]req_shift_opened done [18:58:44]requested_item shift.open_date is exist - process it [18:58:44]req_shift_open_date [18:58:44]req_shift_open_date done [18:58:44]produce_requested_data done [18:58:44]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69510,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [18:58:44]process_action_free close_receipt [18:58:44]json_value_free [18:58:44]json_value_free done [18:58:44]process_json_proto returns [18:58:44]Send response to host [18:58:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69510,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [18:58:44]free response buf [18:58:44]execute_script done [18:58:44]execute_script returns [18:58:44]free content buf [18:58:44]Sock 7.Close socket [18:58:44]Sock 7.Thread stoped [18:58:48]OFD Sender: No OFD packet to send [18:58:53]OFD Sender: No OFD packet to send [18:58:58]OFD Sender: No OFD packet to send [18:59:03]OFD Sender: No OFD packet to send [18:59:08]OFD Sender: No OFD packet to send [18:59:13]OFD Sender: No OFD packet to send [18:59:18]OFD Sender: No OFD packet to send [18:59:23]OFD Sender: No OFD packet to send [18:59:28]OFD Sender: No OFD packet to send [18:59:33]OFD Sender: No OFD packet to send [18:59:38]OFD Sender: No OFD packet to send [18:59:43]OFD Sender: No OFD packet to send [18:59:48]OFD Sender: No OFD packet to send [18:59:53]OFD Sender: No OFD packet to send [18:59:58]OFD Sender: No OFD packet to send [19:00:03]OFD Sender: No OFD packet to send [19:00:08]OFD Sender: No OFD packet to send [19:00:13]OFD Sender: No OFD packet to send [19:00:18]OFD Sender: No OFD packet to send [19:00:23]OFD Sender: No OFD packet to send [19:00:28]OFD Sender: No OFD packet to send [19:00:33]OFD Sender: No OFD packet to send [19:00:38]OFD Sender: No OFD packet to send [19:00:43]OFD Sender: No OFD packet to send [19:00:48]OFD Sender: No OFD packet to send [19:00:53]OFD Sender: No OFD packet to send [19:00:58]OFD Sender: No OFD packet to send [19:01:03]OFD Sender: No OFD packet to send [19:01:08]OFD Sender: No OFD packet to send [19:01:13]OFD Sender: No OFD packet to send [19:01:18]OFD Sender: No OFD packet to send [19:01:23]OFD Sender: No OFD packet to send [19:01:28]OFD Sender: No OFD packet to send [19:01:33]OFD Sender: No OFD packet to send [19:01:38]OFD Sender: No OFD packet to send [19:01:43]OFD Sender: No OFD packet to send [19:01:48]OFD Sender: No OFD packet to send [19:01:53]OFD Sender: No OFD packet to send [19:01:58]OFD Sender: No OFD packet to send [19:02:03]OFD Sender: No OFD packet to send [19:02:08]OFD Sender: No OFD packet to send [19:02:13]OFD Sender: No OFD packet to send [19:02:18]OFD Sender: No OFD packet to send [19:02:23]OFD Sender: No OFD packet to send [19:02:28]OFD Sender: No OFD packet to send [19:02:33]OFD Sender: No OFD packet to send [19:02:38]OFD Sender: No OFD packet to send [19:02:43]OFD Sender: No OFD packet to send [19:02:48]OFD Sender: No OFD packet to send [19:02:53]OFD Sender: No OFD packet to send [19:02:58]OFD Sender: No OFD packet to send [19:03:03]OFD Sender: No OFD packet to send [19:03:08]OFD Sender: No OFD packet to send [19:03:13]OFD Sender: No OFD packet to send [19:03:18]OFD Sender: No OFD packet to send [19:03:23]OFD Sender: No OFD packet to send [19:03:28]OFD Sender: No OFD packet to send [19:03:33]OFD Sender: No OFD packet to send [19:03:38]OFD Sender: No OFD packet to send [19:03:43]OFD Sender: No OFD packet to send [19:03:48]OFD Sender: No OFD packet to send [19:03:53]OFD Sender: No OFD packet to send [19:03:58]OFD Sender: No OFD packet to send [19:04:03]OFD Sender: No OFD packet to send [19:04:08]OFD Sender: No OFD packet to send [19:04:13]OFD Sender: No OFD packet to send [19:04:18]OFD Sender: No OFD packet to send [19:04:23]OFD Sender: No OFD packet to send [19:04:28]OFD Sender: No OFD packet to send [19:04:33]OFD Sender: No OFD packet to send [19:04:38]OFD Sender: No OFD packet to send [19:04:43]OFD Sender: No OFD packet to send [19:04:48]OFD Sender: No OFD packet to send [19:04:53]OFD Sender: No OFD packet to send [19:04:58]OFD Sender: No OFD packet to send [19:05:04]OFD Sender: No OFD packet to send [19:05:09]OFD Sender: No OFD packet to send [19:05:14]OFD Sender: No OFD packet to send [19:05:19]OFD Sender: No OFD packet to send [19:05:24]OFD Sender: No OFD packet to send [19:05:29]OFD Sender: No OFD packet to send [19:05:34]OFD Sender: No OFD packet to send [19:05:39]OFD Sender: No OFD packet to send [19:05:44]OFD Sender: No OFD packet to send [19:05:49]OFD Sender: No OFD packet to send [19:05:54]OFD Sender: No OFD packet to send [19:05:59]OFD Sender: No OFD packet to send [19:06:04]OFD Sender: No OFD packet to send [19:06:09]OFD Sender: No OFD packet to send [19:06:14]OFD Sender: No OFD packet to send [19:06:15]accept exits with 9 [19:06:15]New connection [19:06:15]New thread 3066797412 created [19:06:15]Thread 3066654052 joined [19:06:15]Waiting for new connection... [19:06:15] Sock 9.Parse request [19:06:15]Sock 9.Check first char [19:06:15]Sock 9.First char is OK [19:06:15]request: POST /json_proto HTTP/1.0 [19:06:15]Method: POST [19:06:15]URL: /json_proto [19:06:15]Method is POST - this is cgi request [19:06:15]url: /json_proto [19:06:15]query_string will be loaded in cgi processing [19:06:15]execute_cgi json_proto POST (null) [19:06:15]execute_cgi path=json_proto method=POST [19:06:15]POST find Content-Length [19:06:15]Host: 172.17.50.3:8080 [19:06:15]Content-Length: 678 [19:06:15]Content-Type: application/json [19:06:15] [19:06:15]POST finish read [19:06:15]Found Content-Length = 678 [19:06:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:15]execute_script... [19:06: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)2885249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:15]POST & json_proto [19:06:15]process_json_proto [19:06:15]json parsed OK: [19:06:15]protocol is kg_v1.0 [19:06:15]action value=close_receipt [19:06:15]process_action close_receipt [19:06:15]cmd_close_receipt [19:06:15]MH_GetDate [19:06:15]Write to MH i2c: F0 00 00 63 09 5B [19:06:15]Write i2c OK [19:06:15]MH_I2C_Read... [19:06:15]Read from MH i2c: F0 [19:06:15]MH_I2C_Read... [19:06:15]Read from MH i2c: F0 09 00 [19:06:15]MH_I2C_Read... [19:06:15]Read from MH i2c: F0 09 00 63 09 00 A7 54 15 67 6B 98 1E 66 62 [19:06:15]GetLastDocTimeStamp 1729450721 [19:06:15]current date 1729451175 [19:06:15]FM_GetShiftState [19:06:15]SAM_PROTO_GetShiftState [19:06:15]wFMCommunicate request_size=4 [19:06:15]MH_SAM_APDU [19:06:15]CAPDU: 80 13 01 00 [19:06:15]Write to MH i2c: E2 08 00 64 09 80 13 01 00 00 00 00 00 EA [19:06:15]Write i2c OK [19:06:15]MH_I2C_Read... [19:06:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:15]Read from MH i2c: E2 [19:06:15]MH_I2C_Read... [19:06:15]Read from MH i2c: E2 0E 00 [19:06:15]MH_I2C_Read... [19:06:15]Read from MH i2c: E2 0E 00 64 09 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 F0 [19:06:15]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:06:15]wFMCommunicate OK [19:06:15]SAM_PROTO_GetShiftState done [19:06:15]FM_GetShiftState done [19:06:15]opened in 1729383220 [19:06:15]opened+sec_in_day 1729469620 [19:06:15]quantity*price = 50041 [19:06:15]sum+1 = 50042 [19:06:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 356 20.10.2024 19:06 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69511 ФПД: 32507625061960 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T190615&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69511&fm=32507625061960&tin=02508201610067®Number=0000000000156251&sum=50000 [19:06:16]StoreToDocumentArchive [19:06:16]shift 193 fd 69511 [19:06:16]save to /storage/0193/doc_00069511 [19:06:16]save last doc name /storage/0193/doc_00069511 to /storage/kkm_last_doc_name [19:06:16]save OK [19:06:16]Clear old archive folders... [19:06:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:06:16]tlvbuf is 00F68A50 [19:06:16]SAM_PROTO_ClearQueue [19:06:16]wFMCommunicate request_size=4 [19:06:16]MH_SAM_APDU [19:06:16]CAPDU: 80 09 00 00 [19:06:16]Write to MH i2c: E2 08 00 71 09 80 09 00 00 00 00 00 00 EC [19:06:16]Write i2c OK [19:06:16]MH_I2C_Read... [19:06:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:06:16]Read from MH i2c: E2 [19:06:16]MH_I2C_Read... [19:06:16]Read from MH i2c: E2 03 00 [19:06:16]MH_I2C_Read... [19:06:16]Read from MH i2c: E2 03 00 71 09 00 90 00 EE [19:06:16]RAPDU: 90 00 [19:06:16]wFMCommunicate OK [19:06:16]SAM_PROTO_ClearQueue done [19:06:16]KKMCreateOFDPacket [19:06:16]OFDProtocolAddRootSTLVToBuf [19:06:16]FM_MakeSignedData [19:06:16]FM_MakeSignedData [19:06:16]SAM_PROTO_SignData [19:06:16]wFMCommunicate request_size=4 [19:06:16]MH_SAM_APDU [19:06:16]CAPDU: 80 0D 01 02 [19:06:16]Write to MH i2c: E2 08 00 72 09 80 0D 01 02 00 00 00 00 F4 [19:06:16]Write i2c OK [19:06:16]MH_I2C_Read... [19:06:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:06:16]Read from MH i2c: E2 [19:06:16]MH_I2C_Read... [19:06:16]Read from MH i2c: E2 03 00 [19:06:16]MH_I2C_Read... [19:06:16]Read from MH i2c: E2 03 00 72 09 00 90 00 EF [19:06:16]RAPDU: 90 00 [19:06:16]wFMCommunicate OK [19:06:16]wFMCommunicate request_size=255 [19:06:16]MH_SAM_APDU [19:06:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 A7 54 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 87 0F 01 00 35 04 06 00 1D [19:06:16]Write to MH i2c: E2 02 01 73 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 A7 54 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 87 0F 01 00 35 04 06 00 1D 00 00 CE [19:06:16]Write i2c OK [19:06:16]MH_I2C_Read... [19:06:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:16]Read from MH i2c: E2 [19:06:16]MH_I2C_Read... [19:06:16]Read from MH i2c: E2 03 00 [19:06:16]MH_I2C_Read... [19:06:16]Read from MH i2c: E2 03 00 73 09 00 90 00 F0 [19:06:16]RAPDU: 90 00 [19:06:16]wFMCommunicate OK [19:06:16]wFMCommunicate request_size=10 [19:06:16]MH_SAM_APDU [19:06:16]CAPDU: 80 0D 02 02 05 90 C5 71 BE 48 [19:06:16]Write to MH i2c: E2 0D 00 74 09 80 0D 02 02 05 00 90 C5 71 BE 48 00 00 CD [19:06:16]Write i2c OK [19:06:16]MH_I2C_Read... [19:06:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:16]Read from MH i2c: E2 [19:06:16]MH_I2C_Read... [19:06:16]Read from MH i2c: E2 03 00 [19:06:16]MH_I2C_Read... [19:06:16]Read from MH i2c: E2 03 00 74 09 00 90 00 F1 [19:06:16]RAPDU: 90 00 [19:06:16]wFMCommunicate OK [19:06:16]wFMCommunicate request_size=4 [19:06:16]MH_SAM_APDU [19:06:16]CAPDU: 80 0D 03 02 [19:06:16]Write to MH i2c: E2 08 00 75 09 80 0D 03 02 00 00 00 00 F9 [19:06:16]Write i2c OK [19:06:16]MH_I2C_Read... [19:06:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:06:16]Read from MH i2c: E2 [19:06:16]MH_I2C_Read... [19:06:16]Read from MH i2c: E2 0B 00 [19:06:16]MH_I2C_Read... [19:06:16]Read from MH i2c: E2 0B 00 75 09 00 3A C6 56 56 91 32 F2 73 90 00 CE [19:06:16]RAPDU: 3A C6 56 56 91 32 F2 73 90 00 [19:06:16]wFMCommunicate OK [19:06:16]SAM_PROTO_SignData done [19:06:16]FM_MakeSignedData done [19:06:16]CreateOFDProtocolMessage [19:06:16]wFMCommunicate request_size=4 [19:06:16]MH_SAM_APDU [19:06:16]CAPDU: 80 11 00 00 [19:06:16]Write to MH i2c: E2 08 00 76 09 80 11 00 00 00 00 00 00 F9 [19:06:16]Write i2c OK [19:06:16]MH_I2C_Read... [19:06:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:16]Read from MH i2c: E2 [19:06:16]MH_I2C_Read... [19:06:16]Read from MH i2c: E2 17 00 [19:06:16]MH_I2C_Read... [19:06:16]Read from MH i2c: E2 17 00 76 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4B [19:06:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:06:16]wFMCommunicate OK [19:06:16]CreateOFDProtocolMessage done [19:06:16]OFDSenderStorePacket 69511 [19:06:16]StoreOFDPacket docnum=69511 [19:06:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 2C EB 07 01 30 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 A7 54 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 87 0F 01 00 35 04 06 00 1D 90 C5 71 BE 48 3A C6 56 56 91 32 F2 73 [19:06:16]CheckFolder [19:06:16]dirname=/storage/ofd_packets [19:06:16]CheckFolder done [19:06:16]ProducePacketName [19:06:16]name=ofd_packets/00069511 [19:06:16]NVStorageSaveData ofd_packets/00069511 [19:06:16]File name is /storage/ofd_packets/00069511 [19:06:16]Write 301 bytes [19:06:16]NVStorageSaveData done [19:06:16]OFDSenderStorePacket done [19:06:16]KKMCreateOFDPacket done [19:06:16]NVStorageSaveData kkm_last_timestamp [19:06:16]File name is /storage/kkm_last_timestamp [19:06:16]Write 4 bytes [19:06:16]NVStorageSaveData done [19:06:16]ExternCall_PrintAddStr [19:06:16]wPrintStart [19:06:16]Write to MH i2c: 01 00 00 77 09 80 [19:06:16]Write i2c OK [19:06:16]MH_I2C_Read... [19:06:16]Read from MH i2c: 01 [19:06:16]MH_I2C_Read... [19:06:16]Read from MH i2c: 01 07 00 [19:06:16]MH_I2C_Read... [19:06:16]Read from MH i2c: 01 07 00 77 09 00 00 00 00 00 FF 0F 95 [19:06:16]RasterBufferAndPrint [19:06:16]line Счет N : (1)2885249 [19:06:16]line ИНН: 02508201610067 [19:06:16]line Контрольно-Кассовый Чек [19:06:16]line ПРОДАЖА [19:06:16]line ТРК (МРК, ГНК) : 32 [19:06:16]line Товар: 2710124130 [19:06:16]line Аи-92-К-5 [19:06:16]line 7.480 * 66.90 [19:06:16]line = 500.41 [19:06:16]line НДС 12% НСП 1% [19:06:16]line > о реализуемом товаре [19:06:16]line ОКРУГЛЕНИЕ: -0.41 [19:06:16]line ИТОГО: 500.00 [19:06:16]line Внесено: 500.00 [19:06:16]line СДАЧА: 0.00 [19:06:16]line НСП 1% : 4.43 [19:06:16]line НДС 12% : 53.14 [19:06:16]line Наличными: 500.00 [19:06:16]line Безнал.: 0.00 [19:06:16]line Место: АЗС № 85 "Партнер Нефть" [19:06:16]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:06:16]line СНО: Общий режим [19:06:16]line Чек 356 20.10.2024 19:06 [19:06:16]line Смена: 193 ФФД: 1.0 [19:06:16]line ЗНМ: 0300000167 [19:06:17]line РНМ: 0000000000156251 [19:06:17]line Версия ККМ: v1.0 [19:06:17]line ФМ: 0000000000963346 [19:06:17]line ФД: 69511 [19:06:17]line ФПД: 32507625061960 [19:06:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T190615&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69511&fm=32507625061960&tin=02508201610067®Number=0000000000156251&sum=50000 [19:06:17]OFD Sender: Processing packet 69511 [packets to send 18, broken 17] [19:06:17]ProducePacketName [19:06:17]name=ofd_packets/00069511 [19:06:17]OFD Sender: To server: pG, [19:06:17]CommunicateWithHost lk.salyk.kg:30040 [19:06:17]ConnectInit lk.salyk.kg [19:06:17]written 0, free lines is 4095 [19:06:17]Connected sock=10 [19:06:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 2C EB 07 01 30 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 A7 54 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 87 0F 01 00 35 04 06 00 1D 90 C5 71 BE 48 3A C6 56 56 91 32 F2 73 [19:06:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 6F 02 47 00 2A 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 87 0F 01 00 F4 03 04 00 4D FE 14 67 B6 04 01 00 00 1F 7F A5 EC A6 9C 67 72 [19:06:17]CommunicateWithHost err = 0 [19:06:17]CheckOFDResponse [19:06:17]1017 (14) - 77093643461234 [19:06:17]1041 (16) - 0000000000963346 [19:06:17]1040 (4) - 69511 [19:06:17]1012 (4) - 20.10.2024 12:57 [19:06:17]1206 (1) - 0 [19:06:17]OFD Sender: Remove packet 69511 [19:06:17]ProducePacketName [19:06:17]name=ofd_packets/00069511 [19:06:17]NVStorageDeleteData [19:06:17]Write to MH i2c: 01 00 00 A2 09 AB [19:06:17]Write i2c OK [19:06:17]MH_I2C_Read... [19:06:17]Read from MH i2c: 01 [19:06:17]MH_I2C_Read... [19:06:17]Read from MH i2c: 01 07 00 [19:06:17]MH_I2C_Read... [19:06:17]Read from MH i2c: 01 07 00 A2 09 00 00 00 00 00 F3 0C B1 [19:06:17]RasterBufferAndPrint [19:06:17]line [19:06:17]line [19:06:17]line [19:06:17]line [19:06:17]line [19:06:17]written 0, free lines is 3321 [19:06:17]MH_Cut [19:06:17]Write to MH i2c: D1 01 00 A9 09 01 84 [19:06:17]Write i2c OK [19:06:17]MH_I2C_Read... [19:06:17]Read from MH i2c: D1 [19:06:17]MH_I2C_Read... [19:06:17]Read from MH i2c: D1 01 00 [19:06:17]MH_I2C_Read... [19:06:17]Read from MH i2c: D1 01 00 A9 09 00 83 [19:06:17]Write to MH i2c: 01 00 00 AA 09 B3 [19:06:17]Write i2c OK [19:06:17]MH_I2C_Read... [19:06:18]OFD Sender: No OFD packet to send [19:06:18]*** Cut start [19:06:18]*** Partial cut [19:06:18]*** CUTSNS_PIN = 1 [19:06:18]*** CUTSNS_PIN = 0 [19:06:18]*** Brake cut motor [19:06:18]Read from MH i2c: 01 [19:06:19]MH_I2C_Read... [19:06:19]*** Stop cut motor [19:06:19]*** Cut end [19:06:19]Read from MH i2c: 01 07 00 [19:06:19]MH_I2C_Read... [19:06:19]Read from MH i2c: 01 07 00 AA 09 00 00 00 00 00 FF 0F C8 [19:06:19]process_action close_receipt done [19:06:19]requested_data is exist [19:06:19]produce_requested_data [19:06:19]requested_item fm.sn is exist - process it [19:06:19]wFMCommunicate request_size=4 [19:06:19]MH_SAM_APDU [19:06:19]CAPDU: 80 11 00 00 [19:06:19]Write to MH i2c: E2 08 00 AB 09 80 11 00 00 00 00 00 00 2E [19:06:19]Write i2c OK [19:06:19]MH_I2C_Read... [19:06:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:19]Read from MH i2c: E2 [19:06:19]MH_I2C_Read... [19:06:19]Read from MH i2c: E2 17 00 [19:06:19]MH_I2C_Read... [19:06:19]Read from MH i2c: E2 17 00 AB 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 80 [19:06:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:06:19]wFMCommunicate OK [19:06:19]requested_item fd.num is exist - process it [19:06:19]SAM_PROTO_GetFieldsCounters [19:06:19]wFMCommunicate request_size=4 [19:06:19]MH_SAM_APDU [19:06:19]CAPDU: 80 13 00 00 [19:06:19]Write to MH i2c: E2 08 00 AC 09 80 13 00 00 00 00 00 00 31 [19:06:19]Write i2c OK [19:06:19]MH_I2C_Read... [19:06:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:06:19]Read from MH i2c: E2 [19:06:19]MH_I2C_Read... [19:06:19]Read from MH i2c: E2 62 00 [19:06:19]MH_I2C_Read... [19:06:19]Read from MH i2c: E2 62 00 AC 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 87 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 64 01 00 00 5E 04 04 00 64 01 00 00 57 04 04 00 65 01 00 00 19 04 04 00 00 00 00 00 90 00 D3 [19:06:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 87 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 64 01 00 00 5E 04 04 00 64 01 00 00 57 04 04 00 65 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:06:19]wFMCommunicate OK [19:06:19]SAM_PROTO_GetFieldsCounters done [19:06:19]requested_item shift.num is exist - process it [19:06:19]requested_item shift.opened is exist - process it [19:06:19]req_shift_opened [19:06:19]FM_GetShiftState [19:06:19]SAM_PROTO_GetShiftState [19:06:19]wFMCommunicate request_size=4 [19:06:19]MH_SAM_APDU [19:06:19]CAPDU: 80 13 01 00 [19:06:19]Write to MH i2c: E2 08 00 AD 09 80 13 01 00 00 00 00 00 33 [19:06:19]Write i2c OK [19:06:19]MH_I2C_Read... [19:06:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:19]Read from MH i2c: E2 [19:06:19]MH_I2C_Read... [19:06:19]Read from MH i2c: E2 0E 00 [19:06:19]MH_I2C_Read... [19:06:19]Read from MH i2c: E2 0E 00 AD 09 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 39 [19:06:19]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:06:19]wFMCommunicate OK [19:06:19]SAM_PROTO_GetShiftState done [19:06:19]FM_GetShiftState done [19:06:19]req_shift_opened done [19:06:19]requested_item shift.open_date is exist - process it [19:06:19]req_shift_open_date [19:06:19]req_shift_open_date done [19:06:19]produce_requested_data done [19:06:19]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69511,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [19:06:19]process_action_free close_receipt [19:06:19]json_value_free [19:06:19]json_value_free done [19:06:19]process_json_proto returns [19:06:19]Send response to host [19:06:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69511,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [19:06:19]free response buf [19:06:19]execute_script done [19:06:19]execute_script returns [19:06:19]free content buf [19:06:19]Sock 9.Close socket [19:06:19]Sock 9.Thread stoped [19:06:23]OFD Sender: No OFD packet to send [19:06:28]OFD Sender: No OFD packet to send [19:06:33]OFD Sender: No OFD packet to send [19:06:38]OFD Sender: No OFD packet to send [19:06:43]OFD Sender: No OFD packet to send [19:06:48]OFD Sender: No OFD packet to send [19:06:53]OFD Sender: No OFD packet to send [19:06:58]OFD Sender: No OFD packet to send [19:07:03]OFD Sender: No OFD packet to send [19:07:08]OFD Sender: No OFD packet to send [19:07:13]OFD Sender: No OFD packet to send [19:07:18]OFD Sender: No OFD packet to send [19:07:18]accept exits with 7 [19:07:18]New connection [19:07:18]New thread 3066654052 created [19:07:18]Thread 3066797412 joined [19:07:18]Waiting for new connection... [19:07:18] Sock 7.Parse request [19:07:18]Sock 7.Check first char [19:07:18]Sock 7.First char is OK [19:07:18]request: POST /json_proto HTTP/1.0 [19:07:18]Method: POST [19:07:18]URL: /json_proto [19:07:18]Method is POST - this is cgi request [19:07:18]url: /json_proto [19:07:18]query_string will be loaded in cgi processing [19:07:18]execute_cgi json_proto POST (null) [19:07:18]execute_cgi path=json_proto method=POST [19:07:18]POST find Content-Length [19:07:18]Host: 172.17.50.3:8080 [19:07:18]Content-Length: 683 [19:07:18]Content-Type: application/json [19:07:18] [19:07:18]POST finish read [19:07:18]Found Content-Length = 683 [19:07:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:07:18]execute_script... [19:07:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:07:18]POST & json_proto [19:07:18]process_json_proto [19:07:18]json parsed OK: [19:07:18]protocol is kg_v1.0 [19:07:18]action value=close_receipt [19:07:18]process_action close_receipt [19:07:18]cmd_close_receipt [19:07:18]MH_GetDate [19:07:18]Write to MH i2c: F0 00 00 AE 09 A6 [19:07:18]Write i2c OK [19:07:18]MH_I2C_Read... [19:07:18]Read from MH i2c: F0 [19:07:18]MH_I2C_Read... [19:07:18]Read from MH i2c: F0 09 00 [19:07:18]MH_I2C_Read... [19:07:18]Read from MH i2c: F0 09 00 AE 09 00 E6 54 15 67 6B 98 1E 66 EC [19:07:18]GetLastDocTimeStamp 1729451175 [19:07:18]current date 1729451238 [19:07:18]FM_GetShiftState [19:07:18]SAM_PROTO_GetShiftState [19:07:18]wFMCommunicate request_size=4 [19:07:18]MH_SAM_APDU [19:07:18]CAPDU: 80 13 01 00 [19:07:18]Write to MH i2c: E2 08 00 AF 09 80 13 01 00 00 00 00 00 35 [19:07:18]Write i2c OK [19:07:18]MH_I2C_Read... [19:07:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:07:18]Read from MH i2c: E2 [19:07:18]MH_I2C_Read... [19:07:18]Read from MH i2c: E2 0E 00 [19:07:18]MH_I2C_Read... [19:07:18]Read from MH i2c: E2 0E 00 AF 09 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 3B [19:07:18]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:07:18]wFMCommunicate OK [19:07:18]SAM_PROTO_GetShiftState done [19:07:18]FM_GetShiftState done [19:07:18]opened in 1729383220 [19:07:18]opened+sec_in_day 1729469620 [19:07:18]quantity*price = 200043 [19:07:18]sum+1 = 200044 [19:07:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 357 20.10.2024 19:07 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69512 ФПД: 68589664907458 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T190718&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69512&fm=68589664907458&tin=02508201610067®Number=0000000000156251&sum=200000 [19:07:19]StoreToDocumentArchive [19:07:19]shift 193 fd 69512 [19:07:19]save to /storage/0193/doc_00069512 [19:07:19]save last doc name /storage/0193/doc_00069512 to /storage/kkm_last_doc_name [19:07:19]save OK [19:07:19]Clear old archive folders... [19:07:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:07:19]tlvbuf is 00F60B50 [19:07:19]SAM_PROTO_ClearQueue [19:07:19]wFMCommunicate request_size=4 [19:07:19]MH_SAM_APDU [19:07:19]CAPDU: 80 09 00 00 [19:07:19]Write to MH i2c: E2 08 00 BC 09 80 09 00 00 00 00 00 00 37 [19:07:19]Write i2c OK [19:07:19]MH_I2C_Read... [19:07:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:07:19]Read from MH i2c: E2 [19:07:19]MH_I2C_Read... [19:07:19]Read from MH i2c: E2 03 00 [19:07:19]MH_I2C_Read... [19:07:19]Read from MH i2c: E2 03 00 BC 09 00 90 00 39 [19:07:19]RAPDU: 90 00 [19:07:19]wFMCommunicate OK [19:07:19]SAM_PROTO_ClearQueue done [19:07:19]KKMCreateOFDPacket [19:07:19]OFDProtocolAddRootSTLVToBuf [19:07:19]FM_MakeSignedData [19:07:19]FM_MakeSignedData [19:07:19]SAM_PROTO_SignData [19:07:19]wFMCommunicate request_size=4 [19:07:19]MH_SAM_APDU [19:07:19]CAPDU: 80 0D 01 02 [19:07:19]Write to MH i2c: E2 08 00 BD 09 80 0D 01 02 00 00 00 00 3F [19:07:19]Write i2c OK [19:07:19]MH_I2C_Read... [19:07:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:07:19]Read from MH i2c: E2 [19:07:19]MH_I2C_Read... [19:07:19]Read from MH i2c: E2 03 00 [19:07:19]MH_I2C_Read... [19:07:19]Read from MH i2c: E2 03 00 BD 09 00 90 00 3A [19:07:19]RAPDU: 90 00 [19:07:19]wFMCommunicate OK [19:07:19]wFMCommunicate request_size=255 [19:07:19]MH_SAM_APDU [19:07:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 E6 54 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 88 0F 01 00 35 04 06 00 3E [19:07:19]Write to MH i2c: E2 02 01 BE 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 E6 54 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 88 0F 01 00 35 04 06 00 3E 00 00 23 [19:07:19]Write i2c OK [19:07:19]MH_I2C_Read... [19:07:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:07:19]Read from MH i2c: E2 [19:07:19]MH_I2C_Read... [19:07:19]Read from MH i2c: E2 03 00 [19:07:19]MH_I2C_Read... [19:07:19]Read from MH i2c: E2 03 00 BE 09 00 90 00 3B [19:07:19]RAPDU: 90 00 [19:07:19]wFMCommunicate OK [19:07:19]wFMCommunicate request_size=10 [19:07:19]MH_SAM_APDU [19:07:19]CAPDU: 80 0D 02 02 05 61 C6 9C B0 C2 [19:07:19]Write to MH i2c: E2 0D 00 BF 09 80 0D 02 02 05 00 61 C6 9C B0 C2 00 00 81 [19:07:19]Write i2c OK [19:07:19]MH_I2C_Read... [19:07:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:07:19]Read from MH i2c: E2 [19:07:19]MH_I2C_Read... [19:07:19]Read from MH i2c: E2 03 00 [19:07:19]MH_I2C_Read... [19:07:19]Read from MH i2c: E2 03 00 BF 09 00 90 00 3C [19:07:19]RAPDU: 90 00 [19:07:19]wFMCommunicate OK [19:07:19]wFMCommunicate request_size=4 [19:07:19]MH_SAM_APDU [19:07:19]CAPDU: 80 0D 03 02 [19:07:19]Write to MH i2c: E2 08 00 C0 09 80 0D 03 02 00 00 00 00 44 [19:07:19]Write i2c OK [19:07:19]MH_I2C_Read... [19:07:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:07:19]Read from MH i2c: E2 [19:07:19]MH_I2C_Read... [19:07:19]Read from MH i2c: E2 0B 00 [19:07:19]MH_I2C_Read... [19:07:19]Read from MH i2c: E2 0B 00 C0 09 00 F6 84 41 C2 10 F1 ED 28 90 00 D8 [19:07:19]RAPDU: F6 84 41 C2 10 F1 ED 28 90 00 [19:07:19]wFMCommunicate OK [19:07:19]SAM_PROTO_SignData done [19:07:19]FM_MakeSignedData done [19:07:19]CreateOFDProtocolMessage [19:07:19]wFMCommunicate request_size=4 [19:07:19]MH_SAM_APDU [19:07:19]CAPDU: 80 11 00 00 [19:07:19]Write to MH i2c: E2 08 00 C1 09 80 11 00 00 00 00 00 00 44 [19:07:19]Write i2c OK [19:07:19]MH_I2C_Read... [19:07:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:07:19]Read from MH i2c: E2 [19:07:19]MH_I2C_Read... [19:07:19]Read from MH i2c: E2 17 00 [19:07:19]MH_I2C_Read... [19:07:19]Read from MH i2c: E2 17 00 C1 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 96 [19:07:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:07:19]wFMCommunicate OK [19:07:19]CreateOFDProtocolMessage done [19:07:19]OFDSenderStorePacket 69512 [19:07:19]StoreOFDPacket docnum=69512 [19:07:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 FF C7 07 01 54 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 E6 54 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 88 0F 01 00 35 04 06 00 3E 61 C6 9C B0 C2 F6 84 41 C2 10 F1 ED 28 [19:07:19]CheckFolder [19:07:19]dirname=/storage/ofd_packets [19:07:19]CheckFolder done [19:07:19]ProducePacketName [19:07:19]name=ofd_packets/00069512 [19:07:19]NVStorageSaveData ofd_packets/00069512 [19:07:19]File name is /storage/ofd_packets/00069512 [19:07:19]Write 301 bytes [19:07:19]NVStorageSaveData done [19:07:19]OFDSenderStorePacket done [19:07:19]KKMCreateOFDPacket done [19:07:19]NVStorageSaveData kkm_last_timestamp [19:07:19]File name is /storage/kkm_last_timestamp [19:07:19]Write 4 bytes [19:07:19]NVStorageSaveData done [19:07:19]ExternCall_PrintAddStr [19:07:19]wPrintStart [19:07:19]Write to MH i2c: 01 00 00 C2 09 CB [19:07:19]Write i2c OK [19:07:19]MH_I2C_Read... [19:07:19]Read from MH i2c: 01 [19:07:19]MH_I2C_Read... [19:07:19]Read from MH i2c: 01 07 00 [19:07:19]MH_I2C_Read... [19:07:19]Read from MH i2c: 01 07 00 C2 09 00 00 00 00 00 FF 0F E0 [19:07:19]RasterBufferAndPrint [19:07:19]line Счет N : (1)2885250 [19:07:19]line ИНН: 02508201610067 [19:07:19]line Контрольно-Кассовый Чек [19:07:19]line ПРОДАЖА [19:07:19]line ТРК (МРК, ГНК) : 13 [19:07:19]line Товар: 2710124500 [19:07:19]line Аи-95-К-5 [19:07:19]line 26.960 * 74.20 [19:07:19]line = 2000.43 [19:07:19]line НДС 12% НСП 1% [19:07:19]line > о реализуемом товаре [19:07:19]line ОКРУГЛЕНИЕ: -0.43 [19:07:19]line ИТОГО: 2000.00 [19:07:19]line Внесено: 2000.00 [19:07:19]line СДАЧА: 0.00 [19:07:19]line НСП 1% : 17.70 [19:07:19]line НДС 12% : 212.43 [19:07:19]line Наличными: 2000.00 [19:07:19]line Безнал.: 0.00 [19:07:19]line Место: АЗС № 85 "Партнер Нефть" [19:07:19]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:07:19]line СНО: Общий режим [19:07:19]line Чек 357 20.10.2024 19:07 [19:07:19]line Смена: 193 ФФД: 1.0 [19:07:19]line ЗНМ: 0300000167 [19:07:19]line РНМ: 0000000000156251 [19:07:19]line Версия ККМ: v1.0 [19:07:19]line ФМ: 0000000000963346 [19:07:20]line ФД: 69512 [19:07:20]line ФПД: 68589664907458 [19:07:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T190718&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69512&fm=68589664907458&tin=02508201610067®Number=0000000000156251&sum=200000 [19:07:20]OFD Sender: Processing packet 69512 [packets to send 18, broken 17] [19:07:20]ProducePacketName [19:07:20]name=ofd_packets/00069512 [19:07:20]OFD Sender: To server: pG, [19:07:20]CommunicateWithHost lk.salyk.kg:30040 [19:07:20]ConnectInit lk.salyk.kg [19:07:20]written 0, free lines is 4095 [19:07:20]Connected sock=10 [19:07:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 FF C7 07 01 54 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 E6 54 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 88 0F 01 00 35 04 06 00 3E 61 C6 9C B0 C2 F6 84 41 C2 10 F1 ED 28 [19:07:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 80 3F 47 00 CA F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 88 0F 01 00 F4 03 04 00 8C FE 14 67 B6 04 01 00 00 ED E0 5F 6B 78 68 7E 0E [19:07:20]CommunicateWithHost err = 0 [19:07:20]CheckOFDResponse [19:07:20]1017 (14) - 77093643461234 [19:07:20]1041 (16) - 0000000000963346 [19:07:20]1040 (4) - 69512 [19:07:20]1012 (4) - 20.10.2024 12:58 [19:07:20]1206 (1) - 0 [19:07:20]OFD Sender: Remove packet 69512 [19:07:20]ProducePacketName [19:07:20]name=ofd_packets/00069512 [19:07:20]NVStorageDeleteData [19:07:20]Write to MH i2c: 01 00 00 ED 09 F6 [19:07:20]Write i2c OK [19:07:20]MH_I2C_Read... [19:07:20]Read from MH i2c: 01 [19:07:20]MH_I2C_Read... [19:07:20]Read from MH i2c: 01 07 00 [19:07:20]MH_I2C_Read... [19:07:20]Read from MH i2c: 01 07 00 ED 09 00 00 00 00 00 FC 0C 05 [19:07:20]RasterBufferAndPrint [19:07:20]line [19:07:20]line [19:07:20]line [19:07:20]line [19:07:20]line [19:07:20]written 0, free lines is 3330 [19:07:20]MH_Cut [19:07:20]Write to MH i2c: D1 01 00 F4 09 01 CF [19:07:20]Write i2c OK [19:07:20]MH_I2C_Read... [19:07:20]Read from MH i2c: D1 [19:07:20]MH_I2C_Read... [19:07:20]Read from MH i2c: D1 01 00 [19:07:20]MH_I2C_Read... [19:07:20]Read from MH i2c: D1 01 00 F4 09 00 CE [19:07:20]Write to MH i2c: 01 00 00 F5 09 FE [19:07:20]Write i2c OK [19:07:20]MH_I2C_Read... [19:07:20]OFD Sender: No OFD packet to send [19:07:21]*** Cut start [19:07:21]*** Partial cut [19:07:21]*** CUTSNS_PIN = 1 [19:07:21]*** CUTSNS_PIN = 0 [19:07:21]*** Brake cut motor [19:07:21]Read from MH i2c: 01 [19:07:21]MH_I2C_Read... [19:07:21]*** Stop cut motor [19:07:21]*** Cut end [19:07:21]Read from MH i2c: 01 07 00 [19:07:21]MH_I2C_Read... [19:07:21]Read from MH i2c: 01 07 00 F5 09 00 00 00 00 00 FF 0F 13 [19:07:21]process_action close_receipt done [19:07:21]requested_data is exist [19:07:21]produce_requested_data [19:07:21]requested_item fm.sn is exist - process it [19:07:21]wFMCommunicate request_size=4 [19:07:21]MH_SAM_APDU [19:07:21]CAPDU: 80 11 00 00 [19:07:21]Write to MH i2c: E2 08 00 F6 09 80 11 00 00 00 00 00 00 79 [19:07:21]Write i2c OK [19:07:21]MH_I2C_Read... [19:07:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:07:22]Read from MH i2c: E2 [19:07:22]MH_I2C_Read... [19:07:22]Read from MH i2c: E2 17 00 [19:07:22]MH_I2C_Read... [19:07:22]Read from MH i2c: E2 17 00 F6 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CB [19:07:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:07:22]wFMCommunicate OK [19:07:22]requested_item fd.num is exist - process it [19:07:22]SAM_PROTO_GetFieldsCounters [19:07:22]wFMCommunicate request_size=4 [19:07:22]MH_SAM_APDU [19:07:22]CAPDU: 80 13 00 00 [19:07:22]Write to MH i2c: E2 08 00 F7 09 80 13 00 00 00 00 00 00 7C [19:07:22]Write i2c OK [19:07:22]MH_I2C_Read... [19:07:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:07:22]Read from MH i2c: E2 [19:07:22]MH_I2C_Read... [19:07:22]Read from MH i2c: E2 62 00 [19:07:22]MH_I2C_Read... [19:07:22]Read from MH i2c: E2 62 00 F7 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 88 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 65 01 00 00 5E 04 04 00 65 01 00 00 57 04 04 00 66 01 00 00 19 04 04 00 00 00 00 00 90 00 22 [19:07:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 88 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 65 01 00 00 5E 04 04 00 65 01 00 00 57 04 04 00 66 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:07:22]wFMCommunicate OK [19:07:22]SAM_PROTO_GetFieldsCounters done [19:07:22]requested_item shift.num is exist - process it [19:07:22]requested_item shift.opened is exist - process it [19:07:22]req_shift_opened [19:07:22]FM_GetShiftState [19:07:22]SAM_PROTO_GetShiftState [19:07:22]wFMCommunicate request_size=4 [19:07:22]MH_SAM_APDU [19:07:22]CAPDU: 80 13 01 00 [19:07:22]Write to MH i2c: E2 08 00 F8 09 80 13 01 00 00 00 00 00 7E [19:07:22]Write i2c OK [19:07:22]MH_I2C_Read... [19:07:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:07:22]Read from MH i2c: E2 [19:07:22]MH_I2C_Read... [19:07:22]Read from MH i2c: E2 0E 00 [19:07:22]MH_I2C_Read... [19:07:22]Read from MH i2c: E2 0E 00 F8 09 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 84 [19:07:22]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:07:22]wFMCommunicate OK [19:07:22]SAM_PROTO_GetShiftState done [19:07:22]FM_GetShiftState done [19:07:22]req_shift_opened done [19:07:22]requested_item shift.open_date is exist - process it [19:07:22]req_shift_open_date [19:07:22]req_shift_open_date done [19:07:22]produce_requested_data done [19:07:22]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69512,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [19:07:22]process_action_free close_receipt [19:07:22]json_value_free [19:07:22]json_value_free done [19:07:22]process_json_proto returns [19:07:22]Send response to host [19:07:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69512,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [19:07:22]free response buf [19:07:22]execute_script done [19:07:22]execute_script returns [19:07:22]free content buf [19:07:22]Sock 7.Close socket [19:07:22]Sock 7.Thread stoped [19:07:26]OFD Sender: No OFD packet to send [19:07:31]OFD Sender: No OFD packet to send [19:07:36]OFD Sender: No OFD packet to send [19:07:41]OFD Sender: No OFD packet to send [19:07:46]OFD Sender: No OFD packet to send [19:07:51]OFD Sender: No OFD packet to send [19:07:56]OFD Sender: No OFD packet to send [19:08:01]OFD Sender: No OFD packet to send [19:08:06]OFD Sender: No OFD packet to send [19:08:11]OFD Sender: No OFD packet to send [19:08:16]OFD Sender: No OFD packet to send [19:08:21]OFD Sender: No OFD packet to send [19:08:26]OFD Sender: No OFD packet to send [19:08:31]OFD Sender: No OFD packet to send [19:08:36]OFD Sender: No OFD packet to send [19:08:41]OFD Sender: No OFD packet to send [19:08:46]OFD Sender: No OFD packet to send [19:08:51]OFD Sender: No OFD packet to send [19:08:56]OFD Sender: No OFD packet to send [19:09:01]OFD Sender: No OFD packet to send [19:09:06]OFD Sender: No OFD packet to send [19:09:11]OFD Sender: No OFD packet to send [19:09:16]OFD Sender: No OFD packet to send [19:09:21]OFD Sender: No OFD packet to send [19:09:26]OFD Sender: No OFD packet to send [19:09:31]OFD Sender: No OFD packet to send [19:09:36]OFD Sender: No OFD packet to send [19:09:41]OFD Sender: No OFD packet to send [19:09:46]OFD Sender: No OFD packet to send [19:09:51]OFD Sender: No OFD packet to send [19:09:56]OFD Sender: No OFD packet to send [19:10:01]OFD Sender: No OFD packet to send [19:10:06]OFD Sender: No OFD packet to send [19:10:11]OFD Sender: No OFD packet to send [19:10:16]OFD Sender: No OFD packet to send [19:10:21]OFD Sender: No OFD packet to send [19:10:26]OFD Sender: No OFD packet to send [19:10:31]OFD Sender: No OFD packet to send [19:10:36]OFD Sender: No OFD packet to send [19:10:41]OFD Sender: No OFD packet to send [19:10:46]OFD Sender: No OFD packet to send [19:10:51]OFD Sender: No OFD packet to send [19:10:54]accept exits with 9 [19:10:54]New connection [19:10:54]New thread 3066797412 created [19:10:54]Thread 3066654052 joined [19:10:54]Waiting for new connection... [19:10:54] Sock 9.Parse request [19:10:54]Sock 9.Check first char [19:10:54]Sock 9.First char is OK [19:10:54]request: POST /json_proto HTTP/1.0 [19:10:54]Method: POST [19:10:54]URL: /json_proto [19:10:54]Method is POST - this is cgi request [19:10:54]url: /json_proto [19:10:54]query_string will be loaded in cgi processing [19:10:54]execute_cgi json_proto POST (null) [19:10:54]execute_cgi path=json_proto method=POST [19:10:54]POST find Content-Length [19:10:54]Host: 172.17.50.3:8080 [19:10:54]Content-Length: 675 [19:10:54]Content-Type: application/json [19:10:54] [19:10:54]POST finish read [19:10:54]Found Content-Length = 675 [19:10:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:54]execute_script... [19:10: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)2885251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:54]POST & json_proto [19:10:54]process_json_proto [19:10:54]json parsed OK: [19:10:54]protocol is kg_v1.0 [19:10:54]action value=close_receipt [19:10:54]process_action close_receipt [19:10:54]cmd_close_receipt [19:10:54]MH_GetDate [19:10:54]Write to MH i2c: F0 00 00 F9 09 F1 [19:10:54]Write i2c OK [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: F0 [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: F0 09 00 [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: F0 09 00 F9 09 00 BF 55 15 67 6B 98 1E 66 11 [19:10:54]GetLastDocTimeStamp 1729451238 [19:10:54]current date 1729451455 [19:10:54]FM_GetShiftState [19:10:54]SAM_PROTO_GetShiftState [19:10:54]wFMCommunicate request_size=4 [19:10:54]MH_SAM_APDU [19:10:54]CAPDU: 80 13 01 00 [19:10:54]Write to MH i2c: E2 08 00 FA 09 80 13 01 00 00 00 00 00 80 [19:10:54]Write i2c OK [19:10:54]MH_I2C_Read... [19:10:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:54]Read from MH i2c: E2 [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: E2 0E 00 [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: E2 0E 00 FA 09 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 86 [19:10:54]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:10:54]wFMCommunicate OK [19:10:54]SAM_PROTO_GetShiftState done [19:10:54]FM_GetShiftState done [19:10:54]opened in 1729383220 [19:10:54]opened+sec_in_day 1729469620 [19:10:54]quantity*price = 70027 [19:10:54]sum+1 = 70029 [19:10:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 358 20.10.2024 19:10 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69513 ФПД: 247478158461210 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T191055&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69513&fm=247478158461210&tin=02508201610067®Number=0000000000156251&sum=70000 [19:10:55]StoreToDocumentArchive [19:10:55]shift 193 fd 69513 [19:10:55]save to /storage/0193/doc_00069513 [19:10:55]save last doc name /storage/0193/doc_00069513 to /storage/kkm_last_doc_name [19:10:55]save OK [19:10:55]Clear old archive folders... [19:10:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:10:55]tlvbuf is 00F3EE20 [19:10:55]SAM_PROTO_ClearQueue [19:10:55]wFMCommunicate request_size=4 [19:10:55]MH_SAM_APDU [19:10:55]CAPDU: 80 09 00 00 [19:10:55]Write to MH i2c: E2 08 00 07 0A 80 09 00 00 00 00 00 00 83 [19:10:55]Write i2c OK [19:10:55]MH_I2C_Read... [19:10:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:10:55]Read from MH i2c: E2 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: E2 03 00 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: E2 03 00 07 0A 00 90 00 85 [19:10:55]RAPDU: 90 00 [19:10:55]wFMCommunicate OK [19:10:55]SAM_PROTO_ClearQueue done [19:10:55]KKMCreateOFDPacket [19:10:55]OFDProtocolAddRootSTLVToBuf [19:10:55]FM_MakeSignedData [19:10:55]FM_MakeSignedData [19:10:55]SAM_PROTO_SignData [19:10:55]wFMCommunicate request_size=4 [19:10:55]MH_SAM_APDU [19:10:55]CAPDU: 80 0D 01 02 [19:10:55]Write to MH i2c: E2 08 00 08 0A 80 0D 01 02 00 00 00 00 8B [19:10:55]Write i2c OK [19:10:55]MH_I2C_Read... [19:10:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:10:55]Read from MH i2c: E2 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: E2 03 00 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: E2 03 00 08 0A 00 90 00 86 [19:10:55]RAPDU: 90 00 [19:10:55]wFMCommunicate OK [19:10:55]wFMCommunicate request_size=255 [19:10:55]MH_SAM_APDU [19:10: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 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 BF 55 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 89 0F 01 00 35 04 06 00 E1 14 7F B9 [19:10:55]Write to MH i2c: E2 02 01 09 0A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 BF 55 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 89 0F 01 00 35 04 06 00 E1 14 7F B9 00 00 84 [19:10:55]Write i2c OK [19:10:55]MH_I2C_Read... [19:10:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:56]Read from MH i2c: E2 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: E2 03 00 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: E2 03 00 09 0A 00 90 00 87 [19:10:56]RAPDU: 90 00 [19:10:56]wFMCommunicate OK [19:10:56]wFMCommunicate request_size=7 [19:10:56]MH_SAM_APDU [19:10:56]CAPDU: 80 0D 02 02 02 89 1A [19:10:56]Write to MH i2c: E2 0A 00 0A 0A 80 0D 02 02 02 00 89 1A 00 00 35 [19:10:56]Write i2c OK [19:10:56]MH_I2C_Read... [19:10:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:56]Read from MH i2c: E2 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: E2 03 00 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: E2 03 00 0A 0A 00 90 00 88 [19:10:56]RAPDU: 90 00 [19:10:56]wFMCommunicate OK [19:10:56]wFMCommunicate request_size=4 [19:10:56]MH_SAM_APDU [19:10:56]CAPDU: 80 0D 03 02 [19:10:56]Write to MH i2c: E2 08 00 0B 0A 80 0D 03 02 00 00 00 00 90 [19:10:56]Write i2c OK [19:10:56]MH_I2C_Read... [19:10:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:10:56]Read from MH i2c: E2 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: E2 0B 00 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: E2 0B 00 0B 0A 00 3A 96 2D 5A 66 2F 5B 06 90 00 DE [19:10:56]RAPDU: 3A 96 2D 5A 66 2F 5B 06 90 00 [19:10:56]wFMCommunicate OK [19:10:56]SAM_PROTO_SignData done [19:10:56]FM_MakeSignedData done [19:10:56]CreateOFDProtocolMessage [19:10:56]wFMCommunicate request_size=4 [19:10:56]MH_SAM_APDU [19:10:56]CAPDU: 80 11 00 00 [19:10:56]Write to MH i2c: E2 08 00 0C 0A 80 11 00 00 00 00 00 00 90 [19:10:56]Write i2c OK [19:10:56]MH_I2C_Read... [19:10:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:56]Read from MH i2c: E2 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: E2 17 00 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: E2 17 00 0C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E2 [19:10:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:10:56]wFMCommunicate OK [19:10:56]CreateOFDProtocolMessage done [19:10:56]OFDSenderStorePacket 69513 [19:10:56]StoreOFDPacket docnum=69513 [19:10:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 BB D5 04 01 EF 4A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 BF 55 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 89 0F 01 00 35 04 06 00 E1 14 7F B9 89 1A 3A 96 2D 5A 66 2F 5B 06 [19:10:56]CheckFolder [19:10:56]dirname=/storage/ofd_packets [19:10:56]CheckFolder done [19:10:56]ProducePacketName [19:10:56]name=ofd_packets/00069513 [19:10:56]NVStorageSaveData ofd_packets/00069513 [19:10:56]File name is /storage/ofd_packets/00069513 [19:10:56]Write 298 bytes [19:10:56]NVStorageSaveData done [19:10:56]OFDSenderStorePacket done [19:10:56]KKMCreateOFDPacket done [19:10:56]NVStorageSaveData kkm_last_timestamp [19:10:56]File name is /storage/kkm_last_timestamp [19:10:56]Write 4 bytes [19:10:56]NVStorageSaveData done [19:10:56]ExternCall_PrintAddStr [19:10:56]wPrintStart [19:10:56]Write to MH i2c: 01 00 00 0D 0A 17 [19:10:56]Write i2c OK [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: 01 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: 01 07 00 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: 01 07 00 0D 0A 00 00 00 00 00 FF 0F 2C [19:10:56]RasterBufferAndPrint [19:10:56]line Счет N : (1)2885251 [19:10:56]line ИНН: 02508201610067 [19:10:56]line Контрольно-Кассовый Чек [19:10:56]line ПРОДАЖА [19:10:56]line ТРК (МРК, ГНК) : 51 [19:10:56]line Товар: 2710194210 [19:10:56]line ДТ-К-5 [19:10:56]line 9.190 * 76.20 [19:10:56]line = 700.28 [19:10:56]line НДС 12% НСП 1% [19:10:56]line > о реализуемом товаре [19:10:56]line ОКРУГЛЕНИЕ: -0.28 [19:10:56]line ИТОГО: 700.00 [19:10:56]line Внесено: 700.00 [19:10:56]line СДАЧА: 0.00 [19:10:56]line НСП 1% : 6.20 [19:10:56]line НДС 12% : 74.37 [19:10:56]line Наличными: 700.00 [19:10:56]line Безнал.: 0.00 [19:10:56]line Место: АЗС № 85 "Партнер Нефть" [19:10:56]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:10:56]line СНО: Общий режим [19:10:56]line Чек 358 20.10.2024 19:10 [19:10:56]line Смена: 193 ФФД: 1.0 [19:10:56]line ЗНМ: 0300000167 [19:10:56]line РНМ: 0000000000156251 [19:10:56]line Версия ККМ: v1.0 [19:10:56]line ФМ: 0000000000963346 [19:10:56]line ФД: 69513 [19:10:56]line ФПД: 247478158461210 [19:10:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T191055&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69513&fm=247478158461210&tin=02508201610067®Number=0000000000156251&sum=70000 [19:10:56]written 0, free lines is 4095 [19:10:56]OFD Sender: Processing packet 69513 [packets to send 18, broken 17] [19:10:56]ProducePacketName [19:10:56]name=ofd_packets/00069513 [19:10:56]OFD Sender: To server: pG, [19:10:56]CommunicateWithHost lk.salyk.kg:30040 [19:10:56]ConnectInit lk.salyk.kg [19:10:56]Connected sock=11 [19:10:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 BB D5 04 01 EF 4A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 BF 55 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 89 0F 01 00 35 04 06 00 E1 14 7F B9 89 1A 3A 96 2D 5A 66 2F 5B 06 [19:10:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 21 54 47 00 34 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 89 0F 01 00 F4 03 04 00 64 FF 14 67 B6 04 01 00 00 47 76 85 18 78 D6 F5 B9 [19:10:56]CommunicateWithHost err = 0 [19:10:56]CheckOFDResponse [19:10:56]1017 (14) - 77093643461234 [19:10:56]1041 (16) - 0000000000963346 [19:10:56]1040 (4) - 69513 [19:10:56]1012 (4) - 20.10.2024 13:02 [19:10:56]1206 (1) - 0 [19:10:56]OFD Sender: Remove packet 69513 [19:10:56]ProducePacketName [19:10:56]name=ofd_packets/00069513 [19:10:56]NVStorageDeleteData [19:10:56]Write to MH i2c: 01 00 00 38 0A 42 [19:10:56]Write i2c OK [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: 01 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: 01 07 00 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: 01 07 00 38 0A 00 00 00 00 00 F5 0C 4A [19:10:56]RasterBufferAndPrint [19:10:56]line [19:10:56]line [19:10:56]line [19:10:56]line [19:10:56]line [19:10:56]written 0, free lines is 3323 [19:10:56]MH_Cut [19:10:56]Write to MH i2c: D1 01 00 3F 0A 01 1B [19:10:56]Write i2c OK [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: D1 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: D1 01 00 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: D1 01 00 3F 0A 00 1A [19:10:56]Write to MH i2c: 01 00 00 40 0A 4A [19:10:56]Write i2c OK [19:10:56]MH_I2C_Read... [19:10:57]OFD Sender: No OFD packet to send [19:10:57]*** Cut start [19:10:57]*** Partial cut [19:10:57]*** CUTSNS_PIN = 1 [19:10:57]*** CUTSNS_PIN = 0 [19:10:57]*** Brake cut motor [19:10:57]Read from MH i2c: 01 [19:10:57]MH_I2C_Read... [19:10:57]*** Stop cut motor [19:10:57]*** Cut end [19:10:57]Read from MH i2c: 01 07 00 [19:10:57]MH_I2C_Read... [19:10:57]Read from MH i2c: 01 07 00 40 0A 00 00 00 00 00 FF 0F 5F [19:10:57]process_action close_receipt done [19:10:57]requested_data is exist [19:10:57]produce_requested_data [19:10:57]requested_item fm.sn is exist - process it [19:10:57]wFMCommunicate request_size=4 [19:10:57]MH_SAM_APDU [19:10:57]CAPDU: 80 11 00 00 [19:10:57]Write to MH i2c: E2 08 00 41 0A 80 11 00 00 00 00 00 00 C5 [19:10:57]Write i2c OK [19:10:57]MH_I2C_Read... [19:10:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:57]Read from MH i2c: E2 [19:10:57]MH_I2C_Read... [19:10:57]Read from MH i2c: E2 17 00 [19:10:57]MH_I2C_Read... [19:10:57]Read from MH i2c: E2 17 00 41 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 17 [19:10:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:10:57]wFMCommunicate OK [19:10:57]requested_item fd.num is exist - process it [19:10:57]SAM_PROTO_GetFieldsCounters [19:10:57]wFMCommunicate request_size=4 [19:10:57]MH_SAM_APDU [19:10:57]CAPDU: 80 13 00 00 [19:10:57]Write to MH i2c: E2 08 00 42 0A 80 13 00 00 00 00 00 00 C8 [19:10:57]Write i2c OK [19:10:57]MH_I2C_Read... [19:10:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:10:58]Read from MH i2c: E2 [19:10:58]MH_I2C_Read... [19:10:58]Read from MH i2c: E2 62 00 [19:10:58]MH_I2C_Read... [19:10:58]Read from MH i2c: E2 62 00 42 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 89 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 66 01 00 00 5E 04 04 00 66 01 00 00 57 04 04 00 67 01 00 00 19 04 04 00 00 00 00 00 90 00 72 [19:10:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 89 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 66 01 00 00 5E 04 04 00 66 01 00 00 57 04 04 00 67 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:10:58]wFMCommunicate OK [19:10:58]SAM_PROTO_GetFieldsCounters done [19:10:58]requested_item shift.num is exist - process it [19:10:58]requested_item shift.opened is exist - process it [19:10:58]req_shift_opened [19:10:58]FM_GetShiftState [19:10:58]SAM_PROTO_GetShiftState [19:10:58]wFMCommunicate request_size=4 [19:10:58]MH_SAM_APDU [19:10:58]CAPDU: 80 13 01 00 [19:10:58]Write to MH i2c: E2 08 00 43 0A 80 13 01 00 00 00 00 00 CA [19:10:58]Write i2c OK [19:10:58]MH_I2C_Read... [19:10:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:58]Read from MH i2c: E2 [19:10:58]MH_I2C_Read... [19:10:58]Read from MH i2c: E2 0E 00 [19:10:58]MH_I2C_Read... [19:10:58]Read from MH i2c: E2 0E 00 43 0A 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 D0 [19:10:58]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:10:58]wFMCommunicate OK [19:10:58]SAM_PROTO_GetShiftState done [19:10:58]FM_GetShiftState done [19:10:58]req_shift_opened done [19:10:58]requested_item shift.open_date is exist - process it [19:10:58]req_shift_open_date [19:10:58]req_shift_open_date done [19:10:58]produce_requested_data done [19:10:58]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69513,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [19:10:58]process_action_free close_receipt [19:10:58]json_value_free [19:10:58]json_value_free done [19:10:58]process_json_proto returns [19:10:58]Send response to host [19:10:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69513,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [19:10:58]free response buf [19:10:58]execute_script done [19:10:58]execute_script returns [19:10:58]free content buf [19:10:58]Sock 9.Close socket [19:10:58]Sock 9.Thread stoped [19:11:02]OFD Sender: No OFD packet to send [19:11:07]OFD Sender: No OFD packet to send [19:11:12]OFD Sender: No OFD packet to send [19:11:17]OFD Sender: No OFD packet to send [19:11:22]OFD Sender: No OFD packet to send [19:11:27]OFD Sender: No OFD packet to send [19:11:32]OFD Sender: No OFD packet to send [19:11:37]OFD Sender: No OFD packet to send [19:11:42]OFD Sender: No OFD packet to send [19:11:47]OFD Sender: No OFD packet to send [19:11:52]OFD Sender: No OFD packet to send [19:11:57]OFD Sender: No OFD packet to send [19:12:02]OFD Sender: No OFD packet to send [19:12:07]OFD Sender: No OFD packet to send [19:12:12]OFD Sender: No OFD packet to send [19:12:17]OFD Sender: No OFD packet to send [19:12:22]OFD Sender: No OFD packet to send [19:12:27]OFD Sender: No OFD packet to send [19:12:32]OFD Sender: No OFD packet to send [19:12:37]OFD Sender: No OFD packet to send [19:12:42]OFD Sender: No OFD packet to send [19:12:47]OFD Sender: No OFD packet to send [19:12:48]accept exits with 7 [19:12:48]New connection [19:12:48]New thread 3066654052 created [19:12:48]Thread 3066797412 joined [19:12:48]Waiting for new connection... [19:12:48] Sock 7.Parse request [19:12:48]Sock 7.Check first char [19:12:48]Sock 7.First char is OK [19:12:48]request: POST /json_proto HTTP/1.0 [19:12:48]Method: POST [19:12:48]URL: /json_proto [19:12:48]Method is POST - this is cgi request [19:12:48]url: /json_proto [19:12:48]query_string will be loaded in cgi processing [19:12:48]execute_cgi json_proto POST (null) [19:12:48]execute_cgi path=json_proto method=POST [19:12:48]POST find Content-Length [19:12:48]Host: 172.17.50.3:8080 [19:12:48]Content-Length: 767 [19:12:48]Content-Type: application/json [19:12:48] [19:12:48]POST finish read [19:12:48]Found Content-Length = 767 [19:12:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:48]execute_script... [19:12:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:48]POST & json_proto [19:12:48]process_json_proto [19:12:48]json parsed OK: [19:12:48]protocol is kg_v1.0 [19:12:48]action value=close_receipt [19:12:48]process_action close_receipt [19:12:48]cmd_close_receipt [19:12:48]MH_GetDate [19:12:48]Write to MH i2c: F0 00 00 44 0A 3D [19:12:48]Write i2c OK [19:12:48]MH_I2C_Read... [19:12:48]Read from MH i2c: F0 [19:12:48]MH_I2C_Read... [19:12:48]Read from MH i2c: F0 09 00 [19:12:48]MH_I2C_Read... [19:12:48]Read from MH i2c: F0 09 00 44 0A 00 30 56 15 67 6B 98 1E 66 CF [19:12:48]GetLastDocTimeStamp 1729451455 [19:12:48]current date 1729451568 [19:12:48]FM_GetShiftState [19:12:48]SAM_PROTO_GetShiftState [19:12:48]wFMCommunicate request_size=4 [19:12:48]MH_SAM_APDU [19:12:48]CAPDU: 80 13 01 00 [19:12:48]Write to MH i2c: E2 08 00 45 0A 80 13 01 00 00 00 00 00 CC [19:12:48]Write i2c OK [19:12:48]MH_I2C_Read... [19:12:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:48]Read from MH i2c: E2 [19:12:48]MH_I2C_Read... [19:12:48]Read from MH i2c: E2 0E 00 [19:12:48]MH_I2C_Read... [19:12:48]Read from MH i2c: E2 0E 00 45 0A 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 D2 [19:12:48]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:12:48]wFMCommunicate OK [19:12:48]SAM_PROTO_GetShiftState done [19:12:48]FM_GetShiftState done [19:12:48]opened in 1729383220 [19:12:48]opened+sec_in_day 1729469620 [19:12:48]quantity*price = 30038 [19:12:48]sum+1 = 30039 [19:12:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 359 20.10.2024 19:12 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69514 ФПД: 110798301530608 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T191248&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69514&fm=110798301530608&tin=02508201610067®Number=0000000000156251&sum=30038 [19:12:49]StoreToDocumentArchive [19:12:49]shift 193 fd 69514 [19:12:49]save to /storage/0193/doc_00069514 [19:12:49]save last doc name /storage/0193/doc_00069514 to /storage/kkm_last_doc_name [19:12:49]save OK [19:12:49]Clear old archive folders... [19:12:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:12:49]tlvbuf is 00F32D00 [19:12:49]SAM_PROTO_ClearQueue [19:12:49]wFMCommunicate request_size=4 [19:12:49]MH_SAM_APDU [19:12:49]CAPDU: 80 09 00 00 [19:12:49]Write to MH i2c: E2 08 00 52 0A 80 09 00 00 00 00 00 00 CE [19:12:49]Write i2c OK [19:12:49]MH_I2C_Read... [19:12:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:12:49]Read from MH i2c: E2 [19:12:49]MH_I2C_Read... [19:12:49]Read from MH i2c: E2 03 00 [19:12:49]MH_I2C_Read... [19:12:49]Read from MH i2c: E2 03 00 52 0A 00 90 00 D0 [19:12:49]RAPDU: 90 00 [19:12:49]wFMCommunicate OK [19:12:49]SAM_PROTO_ClearQueue done [19:12:49]KKMCreateOFDPacket [19:12:49]OFDProtocolAddRootSTLVToBuf [19:12:49]FM_MakeSignedData [19:12:49]FM_MakeSignedData [19:12:49]SAM_PROTO_SignData [19:12:49]wFMCommunicate request_size=4 [19:12:49]MH_SAM_APDU [19:12:49]CAPDU: 80 0D 01 02 [19:12:49]Write to MH i2c: E2 08 00 53 0A 80 0D 01 02 00 00 00 00 D6 [19:12:49]Write i2c OK [19:12:49]MH_I2C_Read... [19:12:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:12:49]Read from MH i2c: E2 [19:12:49]MH_I2C_Read... [19:12:49]Read from MH i2c: E2 03 00 [19:12:49]MH_I2C_Read... [19:12:49]Read from MH i2c: E2 03 00 53 0A 00 90 00 D1 [19:12:49]RAPDU: 90 00 [19:12:49]wFMCommunicate OK [19:12:49]wFMCommunicate request_size=255 [19:12:49]MH_SAM_APDU [19:12:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 30 56 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8A 0F 01 00 35 04 06 00 64 [19:12:49]Write to MH i2c: E2 02 01 54 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 30 56 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8A 0F 01 00 35 04 06 00 64 00 00 C8 [19:12:49]Write i2c OK [19:12:49]MH_I2C_Read... [19:12:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:49]Read from MH i2c: E2 [19:12:49]MH_I2C_Read... [19:12:49]Read from MH i2c: E2 03 00 [19:12:49]MH_I2C_Read... [19:12:49]Read from MH i2c: E2 03 00 54 0A 00 90 00 D2 [19:12:49]RAPDU: 90 00 [19:12:49]wFMCommunicate OK [19:12:49]wFMCommunicate request_size=10 [19:12:49]MH_SAM_APDU [19:12:49]CAPDU: 80 0D 02 02 05 C5 3D 67 89 F0 [19:12:49]Write to MH i2c: E2 0D 00 55 0A 80 0D 02 02 05 00 C5 3D 67 89 F0 00 00 C5 [19:12:49]Write i2c OK [19:12:49]MH_I2C_Read... [19:12:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:49]Read from MH i2c: E2 [19:12:49]MH_I2C_Read... [19:12:49]Read from MH i2c: E2 03 00 [19:12:49]MH_I2C_Read... [19:12:49]Read from MH i2c: E2 03 00 55 0A 00 90 00 D3 [19:12:49]RAPDU: 90 00 [19:12:49]wFMCommunicate OK [19:12:49]wFMCommunicate request_size=4 [19:12:49]MH_SAM_APDU [19:12:49]CAPDU: 80 0D 03 02 [19:12:49]Write to MH i2c: E2 08 00 56 0A 80 0D 03 02 00 00 00 00 DB [19:12:49]Write i2c OK [19:12:49]MH_I2C_Read... [19:12:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:12:49]Read from MH i2c: E2 [19:12:49]MH_I2C_Read... [19:12:49]Read from MH i2c: E2 0B 00 [19:12:49]MH_I2C_Read... [19:12:49]Read from MH i2c: E2 0B 00 56 0A 00 74 98 41 F6 F0 DF 80 C6 90 00 34 [19:12:49]RAPDU: 74 98 41 F6 F0 DF 80 C6 90 00 [19:12:49]wFMCommunicate OK [19:12:49]SAM_PROTO_SignData done [19:12:49]FM_MakeSignedData done [19:12:49]CreateOFDProtocolMessage [19:12:49]wFMCommunicate request_size=4 [19:12:49]MH_SAM_APDU [19:12:49]CAPDU: 80 11 00 00 [19:12:49]Write to MH i2c: E2 08 00 57 0A 80 11 00 00 00 00 00 00 DB [19:12:49]Write i2c OK [19:12:49]MH_I2C_Read... [19:12:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:49]Read from MH i2c: E2 [19:12:49]MH_I2C_Read... [19:12:49]Read from MH i2c: E2 17 00 [19:12:49]MH_I2C_Read... [19:12:49]Read from MH i2c: E2 17 00 57 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2D [19:12:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:12:49]wFMCommunicate OK [19:12:49]CreateOFDProtocolMessage done [19:12:49]OFDSenderStorePacket 69514 [19:12:49]StoreOFDPacket docnum=69514 [19:12:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 D3 D7 07 01 00 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 30 56 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8A 0F 01 00 35 04 06 00 64 C5 3D 67 89 F0 74 98 41 F6 F0 DF 80 C6 [19:12:49]CheckFolder [19:12:49]dirname=/storage/ofd_packets [19:12:49]CheckFolder done [19:12:49]ProducePacketName [19:12:49]name=ofd_packets/00069514 [19:12:49]NVStorageSaveData ofd_packets/00069514 [19:12:49]File name is /storage/ofd_packets/00069514 [19:12:49]Write 301 bytes [19:12:49]NVStorageSaveData done [19:12:49]OFDSenderStorePacket done [19:12:49]KKMCreateOFDPacket done [19:12:49]NVStorageSaveData kkm_last_timestamp [19:12:49]File name is /storage/kkm_last_timestamp [19:12:49]Write 4 bytes [19:12:49]NVStorageSaveData done [19:12:49]OFD Sender: Processing packet 69514 [packets to send 18, broken 17] [19:12:49]ProducePacketName [19:12:49]name=ofd_packets/00069514 [19:12:49]OFD Sender: To server: pG, [19:12:49]CommunicateWithHost lk.salyk.kg:30040 [19:12:49]ConnectInit lk.salyk.kg [19:12:49]ExternCall_PrintAddStr [19:12:49]wPrintStart [19:12:49]Write to MH i2c: 01 00 00 58 0A 62 [19:12:49]Write i2c OK [19:12:49]MH_I2C_Read... [19:12:49]Read from MH i2c: 01 [19:12:49]MH_I2C_Read... [19:12:49]Read from MH i2c: 01 07 00 [19:12:49]MH_I2C_Read... [19:12:49]Read from MH i2c: 01 07 00 58 0A 00 00 00 00 00 FF 0F 77 [19:12:49]RasterBufferAndPrint [19:12:49]line Счет N : (1)2885252 [19:12:49]line ИНН: 02508201610067 [19:12:49]line Контрольно-Кассовый Чек [19:12:49]line ПРОДАЖА [19:12:49]line ТРК (МРК, ГНК) : 42 [19:12:49]line Товар: 2710124130 [19:12:49]line Аи-92-К-5 [19:12:49]line 4.490 * 66.90 [19:12:49]line = 300.38 [19:12:49]line НДС 12% НСП 1% [19:12:49]line > о реализуемом товаре [19:12:49]line ИТОГО: 300.38 [19:12:49]line НСП 1% : 2.66 [19:12:49]line НДС 12% : 31.90 [19:12:49]line Наличными: 0.00 [19:12:49]line Безнал.: 300.38 [19:12:49]line Место: АЗС № 85 "Партнер Нефть" [19:12:49]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:12:49]line СНО: Общий режим [19:12:49]line Чек 359 20.10.2024 19:12 [19:12:49]line Смена: 193 ФФД: 1.0 [19:12:49]line ЗНМ: 0300000167 [19:12:49]line РНМ: 0000000000156251 [19:12:49]line Версия ККМ: v1.0 [19:12:49]line Платежная система: Mbank [19:12:49]line ФМ: 0000000000963346 [19:12:50]line ФД: 69514 [19:12:50]line ФПД: 110798301530608 [19:12:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T191248&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69514&fm=110798301530608&tin=02508201610067®Number=0000000000156251&sum=30038 [19:12:50]Connected sock=10 [19:12:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 D3 D7 07 01 00 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 30 56 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8A 0F 01 00 35 04 06 00 64 C5 3D 67 89 F0 74 98 41 F6 F0 DF 80 C6 [19:12:50]written 0, free lines is 4095 [19:12:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 E5 5F 47 00 05 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8A 0F 01 00 F4 03 04 00 D6 FF 14 67 B6 04 01 00 00 7F 4D EA 86 3D B1 EA 64 [19:12:50]CommunicateWithHost err = 0 [19:12:50]CheckOFDResponse [19:12:50]1017 (14) - 77093643461234 [19:12:50]1041 (16) - 0000000000963346 [19:12:50]1040 (4) - 69514 [19:12:50]1012 (4) - 20.10.2024 13:04 [19:12:50]1206 (1) - 0 [19:12:50]OFD Sender: Remove packet 69514 [19:12:50]ProducePacketName [19:12:50]name=ofd_packets/00069514 [19:12:50]NVStorageDeleteData [19:12:50]Write to MH i2c: 01 00 00 81 0A 8B [19:12:50]Write i2c OK [19:12:50]MH_I2C_Read... [19:12:50]Read from MH i2c: 01 [19:12:50]MH_I2C_Read... [19:12:50]Read from MH i2c: 01 07 00 [19:12:50]MH_I2C_Read... [19:12:50]Read from MH i2c: 01 07 00 81 0A 00 00 00 00 00 1D 0D BC [19:12:50]RasterBufferAndPrint [19:12:50]line [19:12:50]line [19:12:50]line [19:12:50]line [19:12:50]line [19:12:50]written 0, free lines is 3362 [19:12:50]MH_Cut [19:12:50]Write to MH i2c: D1 01 00 88 0A 01 64 [19:12:50]Write i2c OK [19:12:50]MH_I2C_Read... [19:12:50]Read from MH i2c: D1 [19:12:50]MH_I2C_Read... [19:12:50]Read from MH i2c: D1 01 00 [19:12:50]MH_I2C_Read... [19:12:50]Read from MH i2c: D1 01 00 88 0A 00 63 [19:12:50]Write to MH i2c: 01 00 00 89 0A 93 [19:12:50]Write i2c OK [19:12:50]MH_I2C_Read... [19:12:50]OFD Sender: No OFD packet to send [19:12:51]*** Cut start [19:12:51]*** Partial cut [19:12:51]*** CUTSNS_PIN = 1 [19:12:51]*** CUTSNS_PIN = 0 [19:12:51]*** Brake cut motor [19:12:51]Read from MH i2c: 01 [19:12:51]MH_I2C_Read... [19:12:51]*** Stop cut motor [19:12:51]*** Cut end [19:12:51]Read from MH i2c: 01 07 00 [19:12:51]MH_I2C_Read... [19:12:51]Read from MH i2c: 01 07 00 89 0A 00 00 00 00 00 FF 0F A8 [19:12:51]process_action close_receipt done [19:12:51]requested_data is exist [19:12:51]produce_requested_data [19:12:51]requested_item fm.sn is exist - process it [19:12:51]wFMCommunicate request_size=4 [19:12:51]MH_SAM_APDU [19:12:51]CAPDU: 80 11 00 00 [19:12:51]Write to MH i2c: E2 08 00 8A 0A 80 11 00 00 00 00 00 00 0E [19:12:51]Write i2c OK [19:12:51]MH_I2C_Read... [19:12:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:51]Read from MH i2c: E2 [19:12:51]MH_I2C_Read... [19:12:51]Read from MH i2c: E2 17 00 [19:12:51]MH_I2C_Read... [19:12:51]Read from MH i2c: E2 17 00 8A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 60 [19:12:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:12:51]wFMCommunicate OK [19:12:51]requested_item fd.num is exist - process it [19:12:51]SAM_PROTO_GetFieldsCounters [19:12:51]wFMCommunicate request_size=4 [19:12:51]MH_SAM_APDU [19:12:51]CAPDU: 80 13 00 00 [19:12:51]Write to MH i2c: E2 08 00 8B 0A 80 13 00 00 00 00 00 00 11 [19:12:51]Write i2c OK [19:12:51]MH_I2C_Read... [19:12:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:12:52]Read from MH i2c: E2 [19:12:52]MH_I2C_Read... [19:12:52]Read from MH i2c: E2 62 00 [19:12:52]MH_I2C_Read... [19:12:52]Read from MH i2c: E2 62 00 8B 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8A 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 67 01 00 00 5E 04 04 00 67 01 00 00 57 04 04 00 68 01 00 00 19 04 04 00 00 00 00 00 90 00 BF [19:12:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8A 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 67 01 00 00 5E 04 04 00 67 01 00 00 57 04 04 00 68 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:12:52]wFMCommunicate OK [19:12:52]SAM_PROTO_GetFieldsCounters done [19:12:52]requested_item shift.num is exist - process it [19:12:52]requested_item shift.opened is exist - process it [19:12:52]req_shift_opened [19:12:52]FM_GetShiftState [19:12:52]SAM_PROTO_GetShiftState [19:12:52]wFMCommunicate request_size=4 [19:12:52]MH_SAM_APDU [19:12:52]CAPDU: 80 13 01 00 [19:12:52]Write to MH i2c: E2 08 00 8C 0A 80 13 01 00 00 00 00 00 13 [19:12:52]Write i2c OK [19:12:52]MH_I2C_Read... [19:12:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:52]Read from MH i2c: E2 [19:12:52]MH_I2C_Read... [19:12:52]Read from MH i2c: E2 0E 00 [19:12:52]MH_I2C_Read... [19:12:52]Read from MH i2c: E2 0E 00 8C 0A 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 19 [19:12:52]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:12:52]wFMCommunicate OK [19:12:52]SAM_PROTO_GetShiftState done [19:12:52]FM_GetShiftState done [19:12:52]req_shift_opened done [19:12:52]requested_item shift.open_date is exist - process it [19:12:52]req_shift_open_date [19:12:52]req_shift_open_date done [19:12:52]produce_requested_data done [19:12:52]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69514,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [19:12:52]process_action_free close_receipt [19:12:52]json_value_free [19:12:52]json_value_free done [19:12:52]process_json_proto returns [19:12:52]Send response to host [19:12:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69514,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [19:12:52]free response buf [19:12:52]execute_script done [19:12:52]execute_script returns [19:12:52]free content buf [19:12:52]Sock 7.Close socket [19:12:52]Sock 7.Thread stoped [19:12:55]OFD Sender: No OFD packet to send [19:13:00]OFD Sender: No OFD packet to send [19:13:05]OFD Sender: No OFD packet to send [19:13:10]OFD Sender: No OFD packet to send [19:13:15]OFD Sender: No OFD packet to send [19:13:20]OFD Sender: No OFD packet to send [19:13:25]OFD Sender: No OFD packet to send [19:13:30]OFD Sender: No OFD packet to send [19:13:35]OFD Sender: No OFD packet to send [19:13:40]OFD Sender: No OFD packet to send [19:13:45]OFD Sender: No OFD packet to send [19:13:50]OFD Sender: No OFD packet to send [19:13:55]OFD Sender: No OFD packet to send [19:14:00]OFD Sender: No OFD packet to send [19:14:05]OFD Sender: No OFD packet to send [19:14:10]OFD Sender: No OFD packet to send [19:14:15]OFD Sender: No OFD packet to send [19:14:20]OFD Sender: No OFD packet to send [19:14:25]OFD Sender: No OFD packet to send [19:14:30]OFD Sender: No OFD packet to send [19:14:35]OFD Sender: No OFD packet to send [19:14:40]OFD Sender: No OFD packet to send [19:14:45]OFD Sender: No OFD packet to send [19:14:50]OFD Sender: No OFD packet to send [19:14:55]OFD Sender: No OFD packet to send [19:15:00]OFD Sender: No OFD packet to send [19:15:05]OFD Sender: No OFD packet to send [19:15:10]OFD Sender: No OFD packet to send [19:15:15]OFD Sender: No OFD packet to send [19:15:20]OFD Sender: No OFD packet to send [19:15:25]OFD Sender: No OFD packet to send [19:15:30]OFD Sender: No OFD packet to send [19:15:35]OFD Sender: No OFD packet to send [19:15:40]OFD Sender: No OFD packet to send [19:15:45]OFD Sender: No OFD packet to send [19:15:50]OFD Sender: No OFD packet to send [19:15:56]OFD Sender: No OFD packet to send [19:16:01]OFD Sender: No OFD packet to send [19:16:06]OFD Sender: No OFD packet to send [19:16:11]OFD Sender: No OFD packet to send [19:16:16]OFD Sender: No OFD packet to send [19:16:19]accept exits with 9 [19:16:19]New connection [19:16:19]New thread 3066797412 created [19:16:19]Thread 3066654052 joined [19:16:19]Waiting for new connection... [19:16:19] Sock 9.Parse request [19:16:19]Sock 9.Check first char [19:16:19]Sock 9.First char is OK [19:16:19]request: POST /json_proto HTTP/1.0 [19:16:19]Method: POST [19:16:19]URL: /json_proto [19:16:19]Method is POST - this is cgi request [19:16:19]url: /json_proto [19:16:19]query_string will be loaded in cgi processing [19:16:19]execute_cgi json_proto POST (null) [19:16:19]execute_cgi path=json_proto method=POST [19:16:19]POST find Content-Length [19:16:19]Host: 172.17.50.3:8080 [19:16:19]Content-Length: 683 [19:16:19]Content-Type: application/json [19:16:19] [19:16:19]POST finish read [19:16:19]Found Content-Length = 683 [19:16:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:19]execute_script... [19:16:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:19]POST & json_proto [19:16:19]process_json_proto [19:16:19]json parsed OK: [19:16:19]protocol is kg_v1.0 [19:16:19]action value=close_receipt [19:16:19]process_action close_receipt [19:16:19]cmd_close_receipt [19:16:19]MH_GetDate [19:16:19]Write to MH i2c: F0 00 00 8D 0A 86 [19:16:19]Write i2c OK [19:16:19]MH_I2C_Read... [19:16:19]Read from MH i2c: F0 [19:16:19]MH_I2C_Read... [19:16:19]Read from MH i2c: F0 09 00 [19:16:19]MH_I2C_Read... [19:16:19]Read from MH i2c: F0 09 00 8D 0A 00 03 57 15 67 6B 98 1E 66 EC [19:16:19]GetLastDocTimeStamp 1729451568 [19:16:19]current date 1729451779 [19:16:19]FM_GetShiftState [19:16:19]SAM_PROTO_GetShiftState [19:16:19]wFMCommunicate request_size=4 [19:16:19]MH_SAM_APDU [19:16:19]CAPDU: 80 13 01 00 [19:16:19]Write to MH i2c: E2 08 00 8E 0A 80 13 01 00 00 00 00 00 15 [19:16:19]Write i2c OK [19:16:19]MH_I2C_Read... [19:16:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:19]Read from MH i2c: E2 [19:16:19]MH_I2C_Read... [19:16:19]Read from MH i2c: E2 0E 00 [19:16:19]MH_I2C_Read... [19:16:19]Read from MH i2c: E2 0E 00 8E 0A 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 1B [19:16:19]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:16:19]wFMCommunicate OK [19:16:19]SAM_PROTO_GetShiftState done [19:16:19]FM_GetShiftState done [19:16:19]opened in 1729383220 [19:16:19]opened+sec_in_day 1729469620 [19:16:19]quantity*price = 100015 [19:16:19]sum+1 = 100017 [19:16:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 360 20.10.2024 19:16 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69515 ФПД: 6001119854410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T191619&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69515&fm=6001119854410&tin=02508201610067®Number=0000000000156251&sum=100000 [19:16:20]StoreToDocumentArchive [19:16:20]shift 193 fd 69515 [19:16:20]save to /storage/0193/doc_00069515 [19:16:20]save last doc name /storage/0193/doc_00069515 to /storage/kkm_last_doc_name [19:16:20]save OK [19:16:20]Clear old archive folders... [19:16:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:16:20]tlvbuf is 00F32BE0 [19:16:20]SAM_PROTO_ClearQueue [19:16:20]wFMCommunicate request_size=4 [19:16:20]MH_SAM_APDU [19:16:20]CAPDU: 80 09 00 00 [19:16:20]Write to MH i2c: E2 08 00 9B 0A 80 09 00 00 00 00 00 00 17 [19:16:20]Write i2c OK [19:16:20]MH_I2C_Read... [19:16:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:16:20]Read from MH i2c: E2 [19:16:20]MH_I2C_Read... [19:16:20]Read from MH i2c: E2 03 00 [19:16:20]MH_I2C_Read... [19:16:20]Read from MH i2c: E2 03 00 9B 0A 00 90 00 19 [19:16:20]RAPDU: 90 00 [19:16:20]wFMCommunicate OK [19:16:20]SAM_PROTO_ClearQueue done [19:16:20]KKMCreateOFDPacket [19:16:20]OFDProtocolAddRootSTLVToBuf [19:16:20]FM_MakeSignedData [19:16:20]FM_MakeSignedData [19:16:20]SAM_PROTO_SignData [19:16:20]wFMCommunicate request_size=4 [19:16:20]MH_SAM_APDU [19:16:20]CAPDU: 80 0D 01 02 [19:16:20]Write to MH i2c: E2 08 00 9C 0A 80 0D 01 02 00 00 00 00 1F [19:16:20]Write i2c OK [19:16:20]MH_I2C_Read... [19:16:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:16:20]Read from MH i2c: E2 [19:16:20]MH_I2C_Read... [19:16:20]Read from MH i2c: E2 03 00 [19:16:20]MH_I2C_Read... [19:16:20]Read from MH i2c: E2 03 00 9C 0A 00 90 00 1A [19:16:20]RAPDU: 90 00 [19:16:20]wFMCommunicate OK [19:16:20]wFMCommunicate request_size=255 [19:16:20]MH_SAM_APDU [19:16:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 03 57 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8B 0F 01 00 35 04 06 00 05 [19:16:20]Write to MH i2c: E2 02 01 9D 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 03 57 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8B 0F 01 00 35 04 06 00 05 00 00 42 [19:16:20]Write i2c OK [19:16:20]MH_I2C_Read... [19:16:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:20]Read from MH i2c: E2 [19:16:20]MH_I2C_Read... [19:16:20]Read from MH i2c: E2 03 00 [19:16:20]MH_I2C_Read... [19:16:20]Read from MH i2c: E2 03 00 9D 0A 00 90 00 1B [19:16:20]RAPDU: 90 00 [19:16:20]wFMCommunicate OK [19:16:20]wFMCommunicate request_size=10 [19:16:20]MH_SAM_APDU [19:16:20]CAPDU: 80 0D 02 02 05 75 3E 9D FF 4A [19:16:20]Write to MH i2c: E2 0D 00 9E 0A 80 0D 02 02 05 00 75 3E 9D FF 4A 00 00 C5 [19:16:20]Write i2c OK [19:16:20]MH_I2C_Read... [19:16:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:20]Read from MH i2c: E2 [19:16:20]MH_I2C_Read... [19:16:20]Read from MH i2c: E2 03 00 [19:16:20]MH_I2C_Read... [19:16:20]Read from MH i2c: E2 03 00 9E 0A 00 90 00 1C [19:16:20]RAPDU: 90 00 [19:16:20]wFMCommunicate OK [19:16:20]wFMCommunicate request_size=4 [19:16:20]MH_SAM_APDU [19:16:20]CAPDU: 80 0D 03 02 [19:16:20]Write to MH i2c: E2 08 00 9F 0A 80 0D 03 02 00 00 00 00 24 [19:16:20]Write i2c OK [19:16:20]MH_I2C_Read... [19:16:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:16:20]Read from MH i2c: E2 [19:16:20]MH_I2C_Read... [19:16:20]Read from MH i2c: E2 0B 00 [19:16:20]MH_I2C_Read... [19:16:20]Read from MH i2c: E2 0B 00 9F 0A 00 4D 89 A6 10 98 94 8D E9 90 00 53 [19:16:20]RAPDU: 4D 89 A6 10 98 94 8D E9 90 00 [19:16:20]wFMCommunicate OK [19:16:20]SAM_PROTO_SignData done [19:16:20]FM_MakeSignedData done [19:16:20]CreateOFDProtocolMessage [19:16:20]wFMCommunicate request_size=4 [19:16:20]MH_SAM_APDU [19:16:20]CAPDU: 80 11 00 00 [19:16:20]Write to MH i2c: E2 08 00 A0 0A 80 11 00 00 00 00 00 00 24 [19:16:20]Write i2c OK [19:16:20]MH_I2C_Read... [19:16:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:21]Read from MH i2c: E2 [19:16:21]MH_I2C_Read... [19:16:21]Read from MH i2c: E2 17 00 [19:16:21]MH_I2C_Read... [19:16:21]Read from MH i2c: E2 17 00 A0 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 76 [19:16:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:16:21]wFMCommunicate OK [19:16:21]CreateOFDProtocolMessage done [19:16:21]OFDSenderStorePacket 69515 [19:16:21]StoreOFDPacket docnum=69515 [19:16:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 09 45 07 01 77 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 03 57 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8B 0F 01 00 35 04 06 00 05 75 3E 9D FF 4A 4D 89 A6 10 98 94 8D E9 [19:16:21]CheckFolder [19:16:21]dirname=/storage/ofd_packets [19:16:21]CheckFolder done [19:16:21]ProducePacketName [19:16:21]name=ofd_packets/00069515 [19:16:21]NVStorageSaveData ofd_packets/00069515 [19:16:21]File name is /storage/ofd_packets/00069515 [19:16:21]Write 301 bytes [19:16:21]NVStorageSaveData done [19:16:21]OFDSenderStorePacket done [19:16:21]KKMCreateOFDPacket done [19:16:21]NVStorageSaveData kkm_last_timestamp [19:16:21]File name is /storage/kkm_last_timestamp [19:16:21]Write 4 bytes [19:16:21]NVStorageSaveData done [19:16:21]ExternCall_PrintAddStr [19:16:21]wPrintStart [19:16:21]Write to MH i2c: 01 00 00 A1 0A AB [19:16:21]Write i2c OK [19:16:21]MH_I2C_Read... [19:16:21]Read from MH i2c: 01 [19:16:21]MH_I2C_Read... [19:16:21]Read from MH i2c: 01 07 00 [19:16:21]MH_I2C_Read... [19:16:21]Read from MH i2c: 01 07 00 A1 0A 00 00 00 00 00 FF 0F C0 [19:16:21]RasterBufferAndPrint [19:16:21]line Счет N : (1)2885256 [19:16:21]line ИНН: 02508201610067 [19:16:21]line Контрольно-Кассовый Чек [19:16:21]line ПРОДАЖА [19:16:21]line ТРК (МРК, ГНК) : 42 [19:16:21]line Товар: 2710124130 [19:16:21]line Аи-92-К-5 [19:16:21]line 14.950 * 66.90 [19:16:21]line = 1000.16 [19:16:21]line НДС 12% НСП 1% [19:16:21]line > о реализуемом товаре [19:16:21]line ОКРУГЛЕНИЕ: -0.16 [19:16:21]line ИТОГО: 1000.00 [19:16:21]line Внесено: 1000.00 [19:16:21]line СДАЧА: 0.00 [19:16:21]line НСП 1% : 8.85 [19:16:21]line НДС 12% : 106.21 [19:16:21]line Наличными: 1000.00 [19:16:21]line Безнал.: 0.00 [19:16:21]line Место: АЗС № 85 "Партнер Нефть" [19:16:21]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:16:21]line СНО: Общий режим [19:16:21]line Чек 360 20.10.2024 19:16 [19:16:21]line Смена: 193 ФФД: 1.0 [19:16:21]line ЗНМ: 0300000167 [19:16:21]line РНМ: 0000000000156251 [19:16:21]line Версия ККМ: v1.0 [19:16:21]line ФМ: 0000000000963346 [19:16:21]line ФД: 69515 [19:16:21]line ФПД: 6001119854410 [19:16:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T191619&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69515&fm=6001119854410&tin=02508201610067®Number=0000000000156251&sum=100000 [19:16:21]OFD Sender: Processing packet 69515 [packets to send 18, broken 17] [19:16:21]ProducePacketName [19:16:21]name=ofd_packets/00069515 [19:16:21]OFD Sender: To server: pG, [19:16:21]CommunicateWithHost lk.salyk.kg:30040 [19:16:21]ConnectInit lk.salyk.kg [19:16:21]written 0, free lines is 4095 [19:16:21]Connected sock=10 [19:16:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 09 45 07 01 77 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 03 57 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8B 0F 01 00 35 04 06 00 05 75 3E 9D FF 4A 4D 89 A6 10 98 94 8D E9 [19:16:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 1F 4E 47 00 C8 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8B 0F 01 00 F4 03 04 00 AA 00 15 67 B6 04 01 00 00 FA 51 5B 14 1E DB 01 D2 [19:16:21]CommunicateWithHost err = 0 [19:16:21]CheckOFDResponse [19:16:21]1017 (14) - 77093643461234 [19:16:21]1041 (16) - 0000000000963346 [19:16:21]1040 (4) - 69515 [19:16:21]1012 (4) - 20.10.2024 13:07 [19:16:21]1206 (1) - 0 [19:16:21]OFD Sender: Remove packet 69515 [19:16:21]ProducePacketName [19:16:21]name=ofd_packets/00069515 [19:16:21]NVStorageDeleteData [19:16:21]Write to MH i2c: 01 00 00 CC 0A D6 [19:16:21]Write i2c OK [19:16:21]MH_I2C_Read... [19:16:21]Read from MH i2c: 01 [19:16:21]MH_I2C_Read... [19:16:21]Read from MH i2c: 01 07 00 [19:16:21]MH_I2C_Read... [19:16:21]Read from MH i2c: 01 07 00 CC 0A 00 00 00 00 00 F4 0C DD [19:16:21]RasterBufferAndPrint [19:16:21]line [19:16:21]line [19:16:21]line [19:16:21]line [19:16:21]line [19:16:21]written 0, free lines is 3322 [19:16:21]MH_Cut [19:16:21]Write to MH i2c: D1 01 00 D3 0A 01 AF [19:16:21]Write i2c OK [19:16:21]MH_I2C_Read... [19:16:21]Read from MH i2c: D1 [19:16:21]MH_I2C_Read... [19:16:21]Read from MH i2c: D1 01 00 [19:16:21]MH_I2C_Read... [19:16:21]Read from MH i2c: D1 01 00 D3 0A 00 AE [19:16:21]Write to MH i2c: 01 00 00 D4 0A DE [19:16:21]Write i2c OK [19:16:21]MH_I2C_Read... [19:16:22]OFD Sender: No OFD packet to send [19:16:22]*** Cut start [19:16:22]*** Partial cut [19:16:22]*** CUTSNS_PIN = 1 [19:16:22]*** CUTSNS_PIN = 0 [19:16:22]*** Brake cut motor [19:16:23]Read from MH i2c: 01 [19:16:23]MH_I2C_Read... [19:16:23]*** Stop cut motor [19:16:23]*** Cut end [19:16:23]Read from MH i2c: 01 07 00 [19:16:23]MH_I2C_Read... [19:16:23]Read from MH i2c: 01 07 00 D4 0A 00 00 00 00 00 FF 0F F3 [19:16:23]process_action close_receipt done [19:16:23]requested_data is exist [19:16:23]produce_requested_data [19:16:23]requested_item fm.sn is exist - process it [19:16:23]wFMCommunicate request_size=4 [19:16:23]MH_SAM_APDU [19:16:23]CAPDU: 80 11 00 00 [19:16:23]Write to MH i2c: E2 08 00 D5 0A 80 11 00 00 00 00 00 00 59 [19:16:23]Write i2c OK [19:16:23]MH_I2C_Read... [19:16:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:23]Read from MH i2c: E2 [19:16:23]MH_I2C_Read... [19:16:23]Read from MH i2c: E2 17 00 [19:16:23]MH_I2C_Read... [19:16:23]Read from MH i2c: E2 17 00 D5 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AB [19:16:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:16:23]wFMCommunicate OK [19:16:23]requested_item fd.num is exist - process it [19:16:23]SAM_PROTO_GetFieldsCounters [19:16:23]wFMCommunicate request_size=4 [19:16:23]MH_SAM_APDU [19:16:23]CAPDU: 80 13 00 00 [19:16:23]Write to MH i2c: E2 08 00 D6 0A 80 13 00 00 00 00 00 00 5C [19:16:23]Write i2c OK [19:16:23]MH_I2C_Read... [19:16:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:16:23]Read from MH i2c: E2 [19:16:23]MH_I2C_Read... [19:16:23]Read from MH i2c: E2 62 00 [19:16:23]MH_I2C_Read... [19:16:23]Read from MH i2c: E2 62 00 D6 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8B 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 68 01 00 00 5E 04 04 00 68 01 00 00 57 04 04 00 69 01 00 00 19 04 04 00 00 00 00 00 90 00 0E [19:16:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8B 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 68 01 00 00 5E 04 04 00 68 01 00 00 57 04 04 00 69 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:16:23]wFMCommunicate OK [19:16:23]SAM_PROTO_GetFieldsCounters done [19:16:23]requested_item shift.num is exist - process it [19:16:23]requested_item shift.opened is exist - process it [19:16:23]req_shift_opened [19:16:23]FM_GetShiftState [19:16:23]SAM_PROTO_GetShiftState [19:16:23]wFMCommunicate request_size=4 [19:16:23]MH_SAM_APDU [19:16:23]CAPDU: 80 13 01 00 [19:16:23]Write to MH i2c: E2 08 00 D7 0A 80 13 01 00 00 00 00 00 5E [19:16:23]Write i2c OK [19:16:23]MH_I2C_Read... [19:16:23]Read from MH i2c: E2 [19:16:23]MH_I2C_Read... [19:16:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:23]Read from MH i2c: E2 0E 00 [19:16:23]MH_I2C_Read... [19:16:23]Read from MH i2c: E2 0E 00 D7 0A 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 64 [19:16:23]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:16:23]wFMCommunicate OK [19:16:23]SAM_PROTO_GetShiftState done [19:16:23]FM_GetShiftState done [19:16:23]req_shift_opened done [19:16:23]requested_item shift.open_date is exist - process it [19:16:23]req_shift_open_date [19:16:23]req_shift_open_date done [19:16:23]produce_requested_data done [19:16:23]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69515,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [19:16:23]process_action_free close_receipt [19:16:23]json_value_free [19:16:23]json_value_free done [19:16:23]process_json_proto returns [19:16:23]Send response to host [19:16:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69515,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [19:16:23]free response buf [19:16:23]execute_script done [19:16:23]execute_script returns [19:16:23]free content buf [19:16:23]Sock 9.Close socket [19:16:23]Sock 9.Thread stoped [19:16:24]accept exits with 7 [19:16:24]New connection [19:16:24]New thread 3066654052 created [19:16:24]Thread 3066797412 joined [19:16:24]Waiting for new connection... [19:16:24] Sock 7.Parse request [19:16:24]Sock 7.Check first char [19:16:24]Sock 7.First char is OK [19:16:24]request: POST /json_proto HTTP/1.0 [19:16:24]Method: POST [19:16:24]URL: /json_proto [19:16:24]Method is POST - this is cgi request [19:16:24]url: /json_proto [19:16:24]query_string will be loaded in cgi processing [19:16:24]execute_cgi json_proto POST (null) [19:16:24]execute_cgi path=json_proto method=POST [19:16:24]POST find Content-Length [19:16:24]Host: 172.17.50.3:8080 [19:16:24]Content-Length: 689 [19:16:24]Content-Type: application/json [19:16:24] [19:16:24]POST finish read [19:16:24]Found Content-Length = 689 [19:16:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:24]execute_script... [19:16: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)2885254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:24]POST & json_proto [19:16:24]process_json_proto [19:16:25]json parsed OK: [19:16:25]protocol is kg_v1.0 [19:16:25]action value=close_receipt [19:16:25]process_action close_receipt [19:16:25]cmd_close_receipt [19:16:25]MH_GetDate [19:16:25]Write to MH i2c: F0 00 00 D8 0A D1 [19:16:25]Write i2c OK [19:16:25]MH_I2C_Read... [19:16:25]Read from MH i2c: F0 [19:16:25]MH_I2C_Read... [19:16:25]Read from MH i2c: F0 09 00 [19:16:25]MH_I2C_Read... [19:16:25]Read from MH i2c: F0 09 00 D8 0A 00 09 57 15 67 6B 98 1E 66 3D [19:16:25]GetLastDocTimeStamp 1729451779 [19:16:25]current date 1729451785 [19:16:25]FM_GetShiftState [19:16:25]SAM_PROTO_GetShiftState [19:16:25]wFMCommunicate request_size=4 [19:16:25]MH_SAM_APDU [19:16:25]CAPDU: 80 13 01 00 [19:16:25]Write to MH i2c: E2 08 00 D9 0A 80 13 01 00 00 00 00 00 60 [19:16:25]Write i2c OK [19:16:25]MH_I2C_Read... [19:16:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:25]Read from MH i2c: E2 [19:16:25]MH_I2C_Read... [19:16:25]Read from MH i2c: E2 0E 00 [19:16:25]MH_I2C_Read... [19:16:25]Read from MH i2c: E2 0E 00 D9 0A 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 66 [19:16:25]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:16:25]wFMCommunicate OK [19:16:25]SAM_PROTO_GetShiftState done [19:16:25]FM_GetShiftState done [19:16:25]opened in 1729383220 [19:16:25]opened+sec_in_day 1729469620 [19:16:25]quantity*price = 100051 [19:16:25]sum+1 = 100052 [19:16:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 361 20.10.2024 19:16 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69516 ФПД: 157976466477978 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T191625&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69516&fm=157976466477978&tin=02508201610067®Number=0000000000156251&sum=100000 [19:16:26]StoreToDocumentArchive [19:16:26]shift 193 fd 69516 [19:16:26]save to /storage/0193/doc_00069516 [19:16:26]save last doc name /storage/0193/doc_00069516 to /storage/kkm_last_doc_name [19:16:26]save OK [19:16:26]Clear old archive folders... [19:16:26]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:16:26]tlvbuf is 00F7FE50 [19:16:26]SAM_PROTO_ClearQueue [19:16:26]wFMCommunicate request_size=4 [19:16:26]MH_SAM_APDU [19:16:26]CAPDU: 80 09 00 00 [19:16:26]Write to MH i2c: E2 08 00 E6 0A 80 09 00 00 00 00 00 00 62 [19:16:26]Write i2c OK [19:16:26]MH_I2C_Read... [19:16:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:16:26]Read from MH i2c: E2 [19:16:26]MH_I2C_Read... [19:16:26]Read from MH i2c: E2 03 00 [19:16:26]MH_I2C_Read... [19:16:26]Read from MH i2c: E2 03 00 E6 0A 00 90 00 64 [19:16:26]RAPDU: 90 00 [19:16:26]wFMCommunicate OK [19:16:26]SAM_PROTO_ClearQueue done [19:16:26]KKMCreateOFDPacket [19:16:26]OFDProtocolAddRootSTLVToBuf [19:16:26]FM_MakeSignedData [19:16:26]FM_MakeSignedData [19:16:26]SAM_PROTO_SignData [19:16:26]wFMCommunicate request_size=4 [19:16:26]MH_SAM_APDU [19:16:26]CAPDU: 80 0D 01 02 [19:16:26]Write to MH i2c: E2 08 00 E7 0A 80 0D 01 02 00 00 00 00 6A [19:16:26]Write i2c OK [19:16:26]MH_I2C_Read... [19:16:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:16:26]Read from MH i2c: E2 [19:16:26]MH_I2C_Read... [19:16:26]Read from MH i2c: E2 03 00 [19:16:26]MH_I2C_Read... [19:16:26]Read from MH i2c: E2 03 00 E7 0A 00 90 00 65 [19:16:26]RAPDU: 90 00 [19:16:26]wFMCommunicate OK [19:16:26]wFMCommunicate request_size=255 [19:16:26]MH_SAM_APDU [19:16:26]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 09 57 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8C 0F 01 [19:16:26]Write to MH i2c: E2 02 01 E8 0A 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 09 57 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8C 0F 01 00 00 5F [19:16:26]Write i2c OK [19:16:26]MH_I2C_Read... [19:16:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:26]Read from MH i2c: E2 [19:16:26]MH_I2C_Read... [19:16:26]Read from MH i2c: E2 03 00 [19:16:26]MH_I2C_Read... [19:16:26]Read from MH i2c: E2 03 00 E8 0A 00 90 00 66 [19:16:26]RAPDU: 90 00 [19:16:26]wFMCommunicate OK [19:16:26]wFMCommunicate request_size=16 [19:16:26]MH_SAM_APDU [19:16:26]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 8F AD C3 2A D3 9A [19:16:26]Write to MH i2c: E2 13 00 E9 0A 80 0D 02 02 0B 00 00 35 04 06 00 8F AD C3 2A D3 9A 00 00 58 [19:16:26]Write i2c OK [19:16:26]MH_I2C_Read... [19:16:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:26]Read from MH i2c: E2 [19:16:26]MH_I2C_Read... [19:16:26]Read from MH i2c: E2 03 00 [19:16:26]MH_I2C_Read... [19:16:26]Read from MH i2c: E2 03 00 E9 0A 00 90 00 67 [19:16:26]RAPDU: 90 00 [19:16:26]wFMCommunicate OK [19:16:26]wFMCommunicate request_size=4 [19:16:26]MH_SAM_APDU [19:16:26]CAPDU: 80 0D 03 02 [19:16:26]Write to MH i2c: E2 08 00 EA 0A 80 0D 03 02 00 00 00 00 6F [19:16:26]Write i2c OK [19:16:26]MH_I2C_Read... [19:16:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:16:26]Read from MH i2c: E2 [19:16:26]MH_I2C_Read... [19:16:26]Read from MH i2c: E2 0B 00 [19:16:26]MH_I2C_Read... [19:16:26]Read from MH i2c: E2 0B 00 EA 0A 00 10 15 AD 9C 9F 80 CA 15 90 00 DC [19:16:26]RAPDU: 10 15 AD 9C 9F 80 CA 15 90 00 [19:16:26]wFMCommunicate OK [19:16:26]SAM_PROTO_SignData done [19:16:26]FM_MakeSignedData done [19:16:26]CreateOFDProtocolMessage [19:16:26]wFMCommunicate request_size=4 [19:16:26]MH_SAM_APDU [19:16:26]CAPDU: 80 11 00 00 [19:16:26]Write to MH i2c: E2 08 00 EB 0A 80 11 00 00 00 00 00 00 6F [19:16:26]Write i2c OK [19:16:26]MH_I2C_Read... [19:16:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:26]Read from MH i2c: E2 [19:16:26]MH_I2C_Read... [19:16:26]Read from MH i2c: E2 17 00 [19:16:26]MH_I2C_Read... [19:16:26]Read from MH i2c: E2 17 00 EB 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C1 [19:16:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:16:26]wFMCommunicate OK [19:16:26]CreateOFDProtocolMessage done [19:16:26]OFDSenderStorePacket 69516 [19:16:26]StoreOFDPacket docnum=69516 [19:16:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 AA 42 0D 01 A2 90 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 09 57 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8C 0F 01 00 35 04 06 00 8F AD C3 2A D3 9A 10 15 AD 9C 9F 80 CA 15 [19:16:26]CheckFolder [19:16:26]dirname=/storage/ofd_packets [19:16:26]CheckFolder done [19:16:26]ProducePacketName [19:16:26]name=ofd_packets/00069516 [19:16:26]NVStorageSaveData ofd_packets/00069516 [19:16:26]File name is /storage/ofd_packets/00069516 [19:16:26]Write 307 bytes [19:16:26]NVStorageSaveData done [19:16:26]OFDSenderStorePacket done [19:16:26]KKMCreateOFDPacket done [19:16:26]NVStorageSaveData kkm_last_timestamp [19:16:26]File name is /storage/kkm_last_timestamp [19:16:26]Write 4 bytes [19:16:26]NVStorageSaveData done [19:16:26]ExternCall_PrintAddStr [19:16:26]wPrintStart [19:16:26]Write to MH i2c: 01 00 00 EC 0A F6 [19:16:26]Write i2c OK [19:16:26]MH_I2C_Read... [19:16:26]Read from MH i2c: 01 [19:16:26]MH_I2C_Read... [19:16:26]Read from MH i2c: 01 07 00 [19:16:26]MH_I2C_Read... [19:16:26]Read from MH i2c: 01 07 00 EC 0A 00 00 00 00 00 FF 0F 0B [19:16:26]RasterBufferAndPrint [19:16:26]line Счет N : (1)2885254 [19:16:26]line ИНН: 02508201610067 [19:16:26]line Контрольно-Кассовый Чек [19:16:26]line ПРОДАЖА [19:16:26]line ТРК (МРК, ГНК) : 11 [19:16:26]line Товар: 2710194240 [19:16:26]line D-ENERGY Дт-К-2 [19:16:26]line 12.960 * 77.20 [19:16:26]line = 1000.51 [19:16:26]line НДС 12% НСП 1% [19:16:26]line > о реализуемом товаре [19:16:26]line ОКРУГЛЕНИЕ: -0.51 [19:16:26]line ИТОГО: 1000.00 [19:16:26]line Внесено: 1000.00 [19:16:26]line СДАЧА: 0.00 [19:16:26]line НСП 1% : 8.85 [19:16:26]line НДС 12% : 106.25 [19:16:26]line Наличными: 1000.00 [19:16:26]line Безнал.: 0.00 [19:16:26]line Место: АЗС № 85 "Партнер Нефть" [19:16:26]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:16:26]line СНО: Общий режим [19:16:26]line Чек 361 20.10.2024 19:16 [19:16:26]line Смена: 193 ФФД: 1.0 [19:16:26]line ЗНМ: 0300000167 [19:16:26]line РНМ: 0000000000156251 [19:16:26]line Версия ККМ: v1.0 [19:16:26]line ФМ: 0000000000963346 [19:16:26]line ФД: 69516 [19:16:26]line ФПД: 157976466477978 [19:16:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T191625&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69516&fm=157976466477978&tin=02508201610067®Number=0000000000156251&sum=100000 [19:16:26]OFD Sender: Processing packet 69516 [packets to send 18, broken 17] [19:16:26]ProducePacketName [19:16:26]name=ofd_packets/00069516 [19:16:26]written 0, free lines is 4095 [19:16:26]OFD Sender: To server: pG, [19:16:26]CommunicateWithHost lk.salyk.kg:30040 [19:16:26]ConnectInit lk.salyk.kg [19:16:26]Connected sock=10 [19:16:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 AA 42 0D 01 A2 90 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 09 57 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8C 0F 01 00 35 04 06 00 8F AD C3 2A D3 9A 10 15 AD 9C 9F 80 CA 15 [19:16:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 2D 0E 47 00 C1 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8C 0F 01 00 F4 03 04 00 AF 00 15 67 B6 04 01 00 00 F5 3A 65 AA 46 79 A8 7A [19:16:27]CommunicateWithHost err = 0 [19:16:27]CheckOFDResponse [19:16:27]1017 (14) - 77093643461234 [19:16:27]1041 (16) - 0000000000963346 [19:16:27]1040 (4) - 69516 [19:16:27]1012 (4) - 20.10.2024 13:07 [19:16:27]1206 (1) - 0 [19:16:27]OFD Sender: Remove packet 69516 [19:16:27]ProducePacketName [19:16:27]name=ofd_packets/00069516 [19:16:27]NVStorageDeleteData [19:16:27]Write to MH i2c: 01 00 00 17 0B 22 [19:16:27]Write i2c OK [19:16:27]MH_I2C_Read... [19:16:27]Read from MH i2c: 01 [19:16:27]MH_I2C_Read... [19:16:27]Read from MH i2c: 01 07 00 [19:16:27]MH_I2C_Read... [19:16:27]Read from MH i2c: 01 07 00 17 0B 00 00 00 00 00 FE 0C 33 [19:16:27]RasterBufferAndPrint [19:16:27]line [19:16:27]line [19:16:27]line [19:16:27]line [19:16:27]line [19:16:27]written 0, free lines is 3338 [19:16:27]MH_Cut [19:16:27]Write to MH i2c: D1 01 00 1E 0B 01 FB [19:16:27]Write i2c OK [19:16:27]MH_I2C_Read... [19:16:27]Read from MH i2c: D1 [19:16:27]MH_I2C_Read... [19:16:27]Read from MH i2c: D1 01 00 [19:16:27]MH_I2C_Read... [19:16:27]Read from MH i2c: D1 01 00 1E 0B 00 FA [19:16:27]Write to MH i2c: 01 00 00 1F 0B 2A [19:16:27]Write i2c OK [19:16:27]MH_I2C_Read... [19:16:27]OFD Sender: No OFD packet to send [19:16:27]*** Cut start [19:16:27]*** Partial cut [19:16:27]*** CUTSNS_PIN = 1 [19:16:28]*** CUTSNS_PIN = 0 [19:16:28]*** Brake cut motor [19:16:28]Read from MH i2c: 01 [19:16:28]MH_I2C_Read... [19:16:28]*** Stop cut motor [19:16:28]*** Cut end [19:16:28]Read from MH i2c: 01 07 00 [19:16:28]MH_I2C_Read... [19:16:28]Read from MH i2c: 01 07 00 1F 0B 00 00 00 00 00 FF 0F 3F [19:16:28]process_action close_receipt done [19:16:28]requested_data is exist [19:16:28]produce_requested_data [19:16:28]requested_item fm.sn is exist - process it [19:16:28]wFMCommunicate request_size=4 [19:16:28]MH_SAM_APDU [19:16:28]CAPDU: 80 11 00 00 [19:16:28]Write to MH i2c: E2 08 00 20 0B 80 11 00 00 00 00 00 00 A5 [19:16:28]Write i2c OK [19:16:28]MH_I2C_Read... [19:16:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:28]Read from MH i2c: E2 [19:16:28]MH_I2C_Read... [19:16:28]Read from MH i2c: E2 17 00 [19:16:28]MH_I2C_Read... [19:16:28]Read from MH i2c: E2 17 00 20 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F7 [19:16:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:16:28]wFMCommunicate OK [19:16:28]requested_item fd.num is exist - process it [19:16:28]SAM_PROTO_GetFieldsCounters [19:16:28]wFMCommunicate request_size=4 [19:16:28]MH_SAM_APDU [19:16:28]CAPDU: 80 13 00 00 [19:16:28]Write to MH i2c: E2 08 00 21 0B 80 13 00 00 00 00 00 00 A8 [19:16:28]Write i2c OK [19:16:28]MH_I2C_Read... [19:16:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:16:28]Read from MH i2c: E2 [19:16:28]MH_I2C_Read... [19:16:28]Read from MH i2c: E2 62 00 [19:16:28]MH_I2C_Read... [19:16:28]Read from MH i2c: E2 62 00 21 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8C 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6A 01 00 00 19 04 04 00 00 00 00 00 90 00 5E [19:16:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8C 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6A 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:16:28]wFMCommunicate OK [19:16:28]SAM_PROTO_GetFieldsCounters done [19:16:28]requested_item shift.num is exist - process it [19:16:28]requested_item shift.opened is exist - process it [19:16:28]req_shift_opened [19:16:28]FM_GetShiftState [19:16:28]SAM_PROTO_GetShiftState [19:16:28]wFMCommunicate request_size=4 [19:16:28]MH_SAM_APDU [19:16:28]CAPDU: 80 13 01 00 [19:16:28]Write to MH i2c: E2 08 00 22 0B 80 13 01 00 00 00 00 00 AA [19:16:28]Write i2c OK [19:16:28]MH_I2C_Read... [19:16:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:28]Read from MH i2c: E2 [19:16:28]MH_I2C_Read... [19:16:28]Read from MH i2c: E2 0E 00 [19:16:28]MH_I2C_Read... [19:16:28]Read from MH i2c: E2 0E 00 22 0B 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 B0 [19:16:28]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:16:28]wFMCommunicate OK [19:16:28]SAM_PROTO_GetShiftState done [19:16:28]FM_GetShiftState done [19:16:28]req_shift_opened done [19:16:28]requested_item shift.open_date is exist - process it [19:16:28]req_shift_open_date [19:16:28]req_shift_open_date done [19:16:28]produce_requested_data done [19:16:28]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69516,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [19:16:28]process_action_free close_receipt [19:16:28]json_value_free [19:16:28]json_value_free done [19:16:28]process_json_proto returns [19:16:28]Send response to host [19:16:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69516,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [19:16:28]free response buf [19:16:28]execute_script done [19:16:28]execute_script returns [19:16:28]free content buf [19:16:28]Sock 7.Close socket [19:16:28]Sock 7.Thread stoped [19:16:31]accept exits with 9 [19:16:31]New connection [19:16:31]New thread 3066797412 created [19:16:31]Thread 3066654052 joined [19:16:31]Waiting for new connection... [19:16:31] Sock 9.Parse request [19:16:31]Sock 9.Check first char [19:16:31]Sock 9.First char is OK [19:16:31]request: POST /json_proto HTTP/1.0 [19:16:31]Method: POST [19:16:31]URL: /json_proto [19:16:31]Method is POST - this is cgi request [19:16:31]url: /json_proto [19:16:31]query_string will be loaded in cgi processing [19:16:31]execute_cgi json_proto POST (null) [19:16:31]execute_cgi path=json_proto method=POST [19:16:31]POST find Content-Length [19:16:31]Host: 172.17.50.3:8080 [19:16:31]Content-Length: 678 [19:16:31]Content-Type: application/json [19:16:31] [19:16:31]POST finish read [19:16:31]Found Content-Length = 678 [19:16:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:31]execute_script... [19:16: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)2885257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:31]POST & json_proto [19:16:31]process_json_proto [19:16:31]json parsed OK: [19:16:31]protocol is kg_v1.0 [19:16:31]action value=close_receipt [19:16:31]process_action close_receipt [19:16:31]cmd_close_receipt [19:16:31]MH_GetDate [19:16:31]Write to MH i2c: F0 00 00 23 0B 1D [19:16:31]Write i2c OK [19:16:31]MH_I2C_Read... [19:16:31]Read from MH i2c: F0 [19:16:31]MH_I2C_Read... [19:16:31]Read from MH i2c: F0 09 00 [19:16:31]MH_I2C_Read... [19:16:31]Read from MH i2c: F0 09 00 23 0B 00 10 57 15 67 6B 98 1E 66 90 [19:16:31]GetLastDocTimeStamp 1729451785 [19:16:31]current date 1729451792 [19:16:31]FM_GetShiftState [19:16:31]SAM_PROTO_GetShiftState [19:16:31]wFMCommunicate request_size=4 [19:16:31]MH_SAM_APDU [19:16:31]CAPDU: 80 13 01 00 [19:16:31]Write to MH i2c: E2 08 00 24 0B 80 13 01 00 00 00 00 00 AC [19:16:31]Write i2c OK [19:16:31]MH_I2C_Read... [19:16:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:31]Read from MH i2c: E2 [19:16:31]MH_I2C_Read... [19:16:31]Read from MH i2c: E2 0E 00 [19:16:31]MH_I2C_Read... [19:16:31]Read from MH i2c: E2 0E 00 24 0B 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 B2 [19:16:31]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:16:31]wFMCommunicate OK [19:16:31]SAM_PROTO_GetShiftState done [19:16:31]FM_GetShiftState done [19:16:31]opened in 1729383220 [19:16:31]opened+sec_in_day 1729469620 [19:16:31]quantity*price = 30038 [19:16:31]sum+1 = 30039 [19:16:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 362 20.10.2024 19:16 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69517 ФПД: 99762259395823 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T191632&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69517&fm=99762259395823&tin=02508201610067®Number=0000000000156251&sum=30000 [19:16:32]StoreToDocumentArchive [19:16:32]shift 193 fd 69517 [19:16:32]save to /storage/0193/doc_00069517 [19:16:32]save last doc name /storage/0193/doc_00069517 to /storage/kkm_last_doc_name [19:16:32]save OK [19:16:32]Clear old archive folders... [19:16:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:16:32]tlvbuf is 00F8FE60 [19:16:32]SAM_PROTO_ClearQueue [19:16:32]wFMCommunicate request_size=4 [19:16:32]MH_SAM_APDU [19:16:32]CAPDU: 80 09 00 00 [19:16:32]Write to MH i2c: E2 08 00 31 0B 80 09 00 00 00 00 00 00 AE [19:16:32]Write i2c OK [19:16:32]MH_I2C_Read... [19:16:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:16:32]Read from MH i2c: E2 [19:16:32]MH_I2C_Read... [19:16:32]Read from MH i2c: E2 03 00 [19:16:32]MH_I2C_Read... [19:16:32]Read from MH i2c: E2 03 00 31 0B 00 90 00 B0 [19:16:32]RAPDU: 90 00 [19:16:32]wFMCommunicate OK [19:16:32]SAM_PROTO_ClearQueue done [19:16:32]KKMCreateOFDPacket [19:16:32]OFDProtocolAddRootSTLVToBuf [19:16:32]FM_MakeSignedData [19:16:32]FM_MakeSignedData [19:16:32]SAM_PROTO_SignData [19:16:32]wFMCommunicate request_size=4 [19:16:32]MH_SAM_APDU [19:16:32]CAPDU: 80 0D 01 02 [19:16:32]Write to MH i2c: E2 08 00 32 0B 80 0D 01 02 00 00 00 00 B6 [19:16:32]Write i2c OK [19:16:32]MH_I2C_Read... [19:16:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:16:32]Read from MH i2c: E2 [19:16:32]MH_I2C_Read... [19:16:32]Read from MH i2c: E2 03 00 [19:16:32]MH_I2C_Read... [19:16:32]Read from MH i2c: E2 03 00 32 0B 00 90 00 B1 [19:16:32]RAPDU: 90 00 [19:16:32]wFMCommunicate OK [19:16:32]wFMCommunicate request_size=255 [19:16:32]MH_SAM_APDU [19:16:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 10 57 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8D 0F 01 00 35 04 06 00 5A [19:16:32]Write to MH i2c: E2 02 01 33 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 10 57 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8D 0F 01 00 35 04 06 00 5A 00 00 39 [19:16:33]Write i2c OK [19:16:33]MH_I2C_Read... [19:16:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:33]Read from MH i2c: E2 [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: E2 03 00 [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: E2 03 00 33 0B 00 90 00 B2 [19:16:33]RAPDU: 90 00 [19:16:33]wFMCommunicate OK [19:16:33]wFMCommunicate request_size=10 [19:16:33]MH_SAM_APDU [19:16:33]CAPDU: 80 0D 02 02 05 BB B6 08 84 EF [19:16:33]Write to MH i2c: E2 0D 00 34 0B 80 0D 02 02 05 00 BB B6 08 84 EF 00 00 AF [19:16:33]Write i2c OK [19:16:33]MH_I2C_Read... [19:16:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:33]Read from MH i2c: E2 [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: E2 03 00 [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: E2 03 00 34 0B 00 90 00 B3 [19:16:33]RAPDU: 90 00 [19:16:33]wFMCommunicate OK [19:16:33]wFMCommunicate request_size=4 [19:16:33]MH_SAM_APDU [19:16:33]CAPDU: 80 0D 03 02 [19:16:33]Write to MH i2c: E2 08 00 35 0B 80 0D 03 02 00 00 00 00 BB [19:16:33]Write i2c OK [19:16:33]MH_I2C_Read... [19:16:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:16:33]Read from MH i2c: E2 [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: E2 0B 00 [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: E2 0B 00 35 0B 00 65 A1 1E E2 06 4C 50 C5 90 00 29 [19:16:33]RAPDU: 65 A1 1E E2 06 4C 50 C5 90 00 [19:16:33]wFMCommunicate OK [19:16:33]SAM_PROTO_SignData done [19:16:33]FM_MakeSignedData done [19:16:33]CreateOFDProtocolMessage [19:16:33]wFMCommunicate request_size=4 [19:16:33]MH_SAM_APDU [19:16:33]CAPDU: 80 11 00 00 [19:16:33]Write to MH i2c: E2 08 00 36 0B 80 11 00 00 00 00 00 00 BB [19:16:33]Write i2c OK [19:16:33]MH_I2C_Read... [19:16:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:33]Read from MH i2c: E2 [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: E2 17 00 [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: E2 17 00 36 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0D [19:16:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:16:33]wFMCommunicate OK [19:16:33]CreateOFDProtocolMessage done [19:16:33]OFDSenderStorePacket 69517 [19:16:33]StoreOFDPacket docnum=69517 [19:16:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 12 92 07 01 2E D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 10 57 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8D 0F 01 00 35 04 06 00 5A BB B6 08 84 EF 65 A1 1E E2 06 4C 50 C5 [19:16:33]CheckFolder [19:16:33]dirname=/storage/ofd_packets [19:16:33]CheckFolder done [19:16:33]ProducePacketName [19:16:33]name=ofd_packets/00069517 [19:16:33]NVStorageSaveData ofd_packets/00069517 [19:16:33]File name is /storage/ofd_packets/00069517 [19:16:33]Write 301 bytes [19:16:33]NVStorageSaveData done [19:16:33]OFDSenderStorePacket done [19:16:33]KKMCreateOFDPacket done [19:16:33]NVStorageSaveData kkm_last_timestamp [19:16:33]File name is /storage/kkm_last_timestamp [19:16:33]Write 4 bytes [19:16:33]NVStorageSaveData done [19:16:33]ExternCall_PrintAddStr [19:16:33]wPrintStart [19:16:33]Write to MH i2c: 01 00 00 37 0B 42 [19:16:33]Write i2c OK [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: 01 [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: 01 07 00 [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: 01 07 00 37 0B 00 00 00 00 00 FF 0F 57 [19:16:33]RasterBufferAndPrint [19:16:33]line Счет N : (1)2885257 [19:16:33]line ИНН: 02508201610067 [19:16:33]line Контрольно-Кассовый Чек [19:16:33]line ПРОДАЖА [19:16:33]line ТРК (МРК, ГНК) : 32 [19:16:33]line Товар: 2710124130 [19:16:33]line Аи-92-К-5 [19:16:33]line 4.490 * 66.90 [19:16:33]line = 300.38 [19:16:33]line НДС 12% НСП 1% [19:16:33]line > о реализуемом товаре [19:16:33]line ОКРУГЛЕНИЕ: -0.38 [19:16:33]line ИТОГО: 300.00 [19:16:33]line Внесено: 300.00 [19:16:33]line СДАЧА: 0.00 [19:16:33]line НСП 1% : 2.66 [19:16:33]line НДС 12% : 31.90 [19:16:33]line Наличными: 300.00 [19:16:33]line Безнал.: 0.00 [19:16:33]line Место: АЗС № 85 "Партнер Нефть" [19:16:33]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:16:33]line СНО: Общий режим [19:16:33]line Чек 362 20.10.2024 19:16 [19:16:33]line Смена: 193 ФФД: 1.0 [19:16:33]line ЗНМ: 0300000167 [19:16:33]line РНМ: 0000000000156251 [19:16:33]line Версия ККМ: v1.0 [19:16:33]line ФМ: 0000000000963346 [19:16:33]line ФД: 69517 [19:16:33]line ФПД: 99762259395823 [19:16:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T191632&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69517&fm=99762259395823&tin=02508201610067®Number=0000000000156251&sum=30000 [19:16:33]OFD Sender: Processing packet 69517 [packets to send 18, broken 17] [19:16:33]ProducePacketName [19:16:33]name=ofd_packets/00069517 [19:16:33]OFD Sender: To server: pG, [19:16:33]CommunicateWithHost lk.salyk.kg:30040 [19:16:33]ConnectInit lk.salyk.kg [19:16:33]written 0, free lines is 4095 [19:16:33]Connected sock=10 [19:16:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 12 92 07 01 2E D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 10 57 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8D 0F 01 00 35 04 06 00 5A BB B6 08 84 EF 65 A1 1E E2 06 4C 50 C5 [19:16:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 EB 58 47 00 AE 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8D 0F 01 00 F4 03 04 00 B6 00 15 67 B6 04 01 00 00 BA F0 56 13 17 1C 65 4A [19:16:33]CommunicateWithHost err = 0 [19:16:33]CheckOFDResponse [19:16:33]1017 (14) - 77093643461234 [19:16:33]1041 (16) - 0000000000963346 [19:16:33]1040 (4) - 69517 [19:16:33]1012 (4) - 20.10.2024 13:08 [19:16:33]1206 (1) - 0 [19:16:33]OFD Sender: Remove packet 69517 [19:16:33]ProducePacketName [19:16:33]name=ofd_packets/00069517 [19:16:33]NVStorageDeleteData [19:16:33]Write to MH i2c: 01 00 00 62 0B 6D [19:16:33]Write i2c OK [19:16:34]MH_I2C_Read... [19:16:34]Read from MH i2c: 01 [19:16:34]MH_I2C_Read... [19:16:34]Read from MH i2c: 01 07 00 [19:16:34]MH_I2C_Read... [19:16:34]Read from MH i2c: 01 07 00 62 0B 00 00 00 00 00 0C 0D 8D [19:16:34]RasterBufferAndPrint [19:16:34]line [19:16:34]line [19:16:34]line [19:16:34]line [19:16:34]line [19:16:34]written 0, free lines is 3359 [19:16:34]MH_Cut [19:16:34]Write to MH i2c: D1 01 00 69 0B 01 46 [19:16:34]Write i2c OK [19:16:34]MH_I2C_Read... [19:16:34]Read from MH i2c: D1 [19:16:34]MH_I2C_Read... [19:16:34]Read from MH i2c: D1 01 00 [19:16:34]MH_I2C_Read... [19:16:34]Read from MH i2c: D1 01 00 69 0B 00 45 [19:16:34]Write to MH i2c: 01 00 00 6A 0B 75 [19:16:34]Write i2c OK [19:16:34]MH_I2C_Read... [19:16:34]OFD Sender: No OFD packet to send [19:16:34]*** Cut start [19:16:34]*** Partial cut [19:16:34]*** CUTSNS_PIN = 1 [19:16:34]*** CUTSNS_PIN = 0 [19:16:34]*** Brake cut motor [19:16:35]Read from MH i2c: 01 [19:16:35]MH_I2C_Read... [19:16:35]*** Stop cut motor [19:16:35]*** Cut end [19:16:35]Read from MH i2c: 01 07 00 [19:16:35]MH_I2C_Read... [19:16:35]Read from MH i2c: 01 07 00 6A 0B 00 00 00 00 00 FF 0F 8A [19:16:35]process_action close_receipt done [19:16:35]requested_data is exist [19:16:35]produce_requested_data [19:16:35]requested_item fm.sn is exist - process it [19:16:35]wFMCommunicate request_size=4 [19:16:35]MH_SAM_APDU [19:16:35]CAPDU: 80 11 00 00 [19:16:35]Write to MH i2c: E2 08 00 6B 0B 80 11 00 00 00 00 00 00 F0 [19:16:35]Write i2c OK [19:16:35]MH_I2C_Read... [19:16:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:35]Read from MH i2c: E2 [19:16:35]MH_I2C_Read... [19:16:35]Read from MH i2c: E2 17 00 [19:16:35]MH_I2C_Read... [19:16:35]Read from MH i2c: E2 17 00 6B 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 42 [19:16:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:16:35]wFMCommunicate OK [19:16:35]requested_item fd.num is exist - process it [19:16:35]SAM_PROTO_GetFieldsCounters [19:16:35]wFMCommunicate request_size=4 [19:16:35]MH_SAM_APDU [19:16:35]CAPDU: 80 13 00 00 [19:16:35]Write to MH i2c: E2 08 00 6C 0B 80 13 00 00 00 00 00 00 F3 [19:16:35]Write i2c OK [19:16:35]MH_I2C_Read... [19:16:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:16:35]Read from MH i2c: E2 [19:16:35]MH_I2C_Read... [19:16:35]Read from MH i2c: E2 62 00 [19:16:35]MH_I2C_Read... [19:16:35]Read from MH i2c: E2 62 00 6C 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8D 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 6A 01 00 00 5E 04 04 00 6A 01 00 00 57 04 04 00 6B 01 00 00 19 04 04 00 00 00 00 00 90 00 AD [19:16:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8D 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 6A 01 00 00 5E 04 04 00 6A 01 00 00 57 04 04 00 6B 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:16:35]wFMCommunicate OK [19:16:35]SAM_PROTO_GetFieldsCounters done [19:16:35]requested_item shift.num is exist - process it [19:16:35]requested_item shift.opened is exist - process it [19:16:35]req_shift_opened [19:16:35]FM_GetShiftState [19:16:35]SAM_PROTO_GetShiftState [19:16:35]wFMCommunicate request_size=4 [19:16:35]MH_SAM_APDU [19:16:35]CAPDU: 80 13 01 00 [19:16:35]Write to MH i2c: E2 08 00 6D 0B 80 13 01 00 00 00 00 00 F5 [19:16:35]Write i2c OK [19:16:35]MH_I2C_Read... [19:16:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:35]Read from MH i2c: E2 [19:16:35]MH_I2C_Read... [19:16:35]Read from MH i2c: E2 0E 00 [19:16:35]MH_I2C_Read... [19:16:35]Read from MH i2c: E2 0E 00 6D 0B 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 FB [19:16:35]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:16:35]wFMCommunicate OK [19:16:35]SAM_PROTO_GetShiftState done [19:16:35]FM_GetShiftState done [19:16:35]req_shift_opened done [19:16:35]requested_item shift.open_date is exist - process it [19:16:35]req_shift_open_date [19:16:35]req_shift_open_date done [19:16:35]produce_requested_data done [19:16:35]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69517,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [19:16:35]process_action_free close_receipt [19:16:35]json_value_free [19:16:35]json_value_free done [19:16:35]process_json_proto returns [19:16:35]Send response to host [19:16:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69517,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [19:16:35]free response buf [19:16:35]execute_script done [19:16:35]execute_script returns [19:16:35]free content buf [19:16:35]Sock 9.Close socket [19:16:35]Sock 9.Thread stoped [19:16:35]accept exits with 7 [19:16:35]New connection [19:16:35]New thread 3066654052 created [19:16:35]Thread 3066797412 joined [19:16:35]Waiting for new connection... [19:16:35] Sock 7.Parse request [19:16:35]Sock 7.Check first char [19:16:35]Sock 7.First char is OK [19:16:35]request: POST /json_proto HTTP/1.0 [19:16:35]Method: POST [19:16:35]URL: /json_proto [19:16:35]Method is POST - this is cgi request [19:16:35]url: /json_proto [19:16:35]query_string will be loaded in cgi processing [19:16:35]execute_cgi json_proto POST (null) [19:16:35]execute_cgi path=json_proto method=POST [19:16:35]POST find Content-Length [19:16:35]Host: 172.17.50.3:8080 [19:16:35]Content-Length: 689 [19:16:35]Content-Type: application/json [19:16:35] [19:16:35]POST finish read [19:16:35]Found Content-Length = 689 [19:16:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 23.960, "sum" : 1849.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1849.00, "payments": [ { "type": 0, "sum" : 1849.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:35]execute_script... [19:16: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)2885253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 23.960, "sum" : 1849.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1849.00, "payments": [ { "type": 0, "sum" : 1849.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:35]POST & json_proto [19:16:35]process_json_proto [19:16:35]json parsed OK: [19:16:35]protocol is kg_v1.0 [19:16:35]action value=close_receipt [19:16:35]process_action close_receipt [19:16:35]cmd_close_receipt [19:16:35]MH_GetDate [19:16:35]Write to MH i2c: F0 00 00 6E 0B 68 [19:16:35]Write i2c OK [19:16:35]MH_I2C_Read... [19:16:35]Read from MH i2c: F0 [19:16:35]MH_I2C_Read... [19:16:35]Read from MH i2c: F0 09 00 [19:16:35]MH_I2C_Read... [19:16:35]Read from MH i2c: F0 09 00 6E 0B 00 14 57 15 67 6B 98 1E 66 DF [19:16:35]GetLastDocTimeStamp 1729451792 [19:16:35]current date 1729451796 [19:16:35]FM_GetShiftState [19:16:35]SAM_PROTO_GetShiftState [19:16:35]wFMCommunicate request_size=4 [19:16:35]MH_SAM_APDU [19:16:35]CAPDU: 80 13 01 00 [19:16:35]Write to MH i2c: E2 08 00 6F 0B 80 13 01 00 00 00 00 00 F7 [19:16:35]Write i2c OK [19:16:35]MH_I2C_Read... [19:16:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:35]Read from MH i2c: E2 [19:16:35]MH_I2C_Read... [19:16:35]Read from MH i2c: E2 0E 00 [19:16:35]MH_I2C_Read... [19:16:35]Read from MH i2c: E2 0E 00 6F 0B 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 FD [19:16:36]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:16:36]wFMCommunicate OK [19:16:36]SAM_PROTO_GetShiftState done [19:16:36]FM_GetShiftState done [19:16:36]opened in 1729383220 [19:16:36]opened+sec_in_day 1729469620 [19:16:36]quantity*price = 184971 [19:16:36]sum+1 = 184972 [19:16:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 1849.00 Внесено: 3000.00 СДАЧА: 1151.00 НСП 1% : 16.37 НДС 12% : 196.43 Наличными: 1849.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 363 20.10.2024 19:16 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69518 ФПД: 277061073391202 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T191636&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69518&fm=277061073391202&tin=02508201610067®Number=0000000000156251&sum=184900 [19:16:37]StoreToDocumentArchive [19:16:37]shift 193 fd 69518 [19:16:37]save to /storage/0193/doc_00069518 [19:16:37]save last doc name /storage/0193/doc_00069518 to /storage/kkm_last_doc_name [19:16:37]save OK [19:16:37]Clear old archive folders... [19:16:37]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:16:37]tlvbuf is 00FA23C0 [19:16:37]SAM_PROTO_ClearQueue [19:16:37]wFMCommunicate request_size=4 [19:16:37]MH_SAM_APDU [19:16:37]CAPDU: 80 09 00 00 [19:16:37]Write to MH i2c: E2 08 00 7C 0B 80 09 00 00 00 00 00 00 F9 [19:16:37]Write i2c OK [19:16:37]MH_I2C_Read... [19:16:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:16:37]Read from MH i2c: E2 [19:16:37]MH_I2C_Read... [19:16:37]Read from MH i2c: E2 03 00 [19:16:37]MH_I2C_Read... [19:16:37]Read from MH i2c: E2 03 00 7C 0B 00 90 00 FB [19:16:37]RAPDU: 90 00 [19:16:37]wFMCommunicate OK [19:16:37]SAM_PROTO_ClearQueue done [19:16:37]KKMCreateOFDPacket [19:16:37]OFDProtocolAddRootSTLVToBuf [19:16:37]FM_MakeSignedData [19:16:37]FM_MakeSignedData [19:16:37]SAM_PROTO_SignData [19:16:37]wFMCommunicate request_size=4 [19:16:37]MH_SAM_APDU [19:16:37]CAPDU: 80 0D 01 02 [19:16:37]Write to MH i2c: E2 08 00 7D 0B 80 0D 01 02 00 00 00 00 01 [19:16:37]Write i2c OK [19:16:37]MH_I2C_Read... [19:16:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:16:37]Read from MH i2c: E2 [19:16:37]MH_I2C_Read... [19:16:37]Read from MH i2c: E2 03 00 [19:16:37]MH_I2C_Read... [19:16:37]Read from MH i2c: E2 03 00 7D 0B 00 90 00 FC [19:16:37]RAPDU: 90 00 [19:16:37]wFMCommunicate OK [19:16:37]wFMCommunicate request_size=255 [19:16:37]MH_SAM_APDU [19:16:37]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 98 5D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 8B D2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 D2 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 4C 00 00 00 00 07 04 06 00 44 D2 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 14 57 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8E 0F 01 [19:16:37]Write to MH i2c: E2 02 01 7E 0B 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 98 5D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 8B D2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 D2 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 4C 00 00 00 00 07 04 06 00 44 D2 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 14 57 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8E 0F 01 00 00 5F [19:16:37]Write i2c OK [19:16:37]MH_I2C_Read... [19:16:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:37]Read from MH i2c: E2 [19:16:37]MH_I2C_Read... [19:16:37]Read from MH i2c: E2 03 00 [19:16:37]MH_I2C_Read... [19:16:37]Read from MH i2c: E2 03 00 7E 0B 00 90 00 FD [19:16:37]RAPDU: 90 00 [19:16:37]wFMCommunicate OK [19:16:37]wFMCommunicate request_size=16 [19:16:37]MH_SAM_APDU [19:16:37]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 FB FC 4E DC 4E 62 [19:16:37]Write to MH i2c: E2 13 00 7F 0B 80 0D 02 02 0B 00 00 35 04 06 00 FB FC 4E DC 4E 62 00 00 2A [19:16:38]Write i2c OK [19:16:38]MH_I2C_Read... [19:16:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:38]Read from MH i2c: E2 [19:16:38]MH_I2C_Read... [19:16:38]Read from MH i2c: E2 03 00 [19:16:38]MH_I2C_Read... [19:16:38]Read from MH i2c: E2 03 00 7F 0B 00 90 00 FE [19:16:38]RAPDU: 90 00 [19:16:38]wFMCommunicate OK [19:16:38]wFMCommunicate request_size=4 [19:16:38]MH_SAM_APDU [19:16:38]CAPDU: 80 0D 03 02 [19:16:38]Write to MH i2c: E2 08 00 80 0B 80 0D 03 02 00 00 00 00 06 [19:16:38]Write i2c OK [19:16:38]MH_I2C_Read... [19:16:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:16:38]Read from MH i2c: E2 [19:16:38]MH_I2C_Read... [19:16:38]Read from MH i2c: E2 0B 00 [19:16:38]MH_I2C_Read... [19:16:38]Read from MH i2c: E2 0B 00 80 0B 00 12 EB 5A 45 C8 98 99 24 90 00 C0 [19:16:38]RAPDU: 12 EB 5A 45 C8 98 99 24 90 00 [19:16:38]wFMCommunicate OK [19:16:38]SAM_PROTO_SignData done [19:16:38]FM_MakeSignedData done [19:16:38]CreateOFDProtocolMessage [19:16:38]wFMCommunicate request_size=4 [19:16:38]MH_SAM_APDU [19:16:38]CAPDU: 80 11 00 00 [19:16:38]Write to MH i2c: E2 08 00 81 0B 80 11 00 00 00 00 00 00 06 [19:16:38]Write i2c OK [19:16:38]MH_I2C_Read... [19:16:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:38]Read from MH i2c: E2 [19:16:38]MH_I2C_Read... [19:16:38]Read from MH i2c: E2 17 00 [19:16:38]MH_I2C_Read... [19:16:38]Read from MH i2c: E2 17 00 81 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 58 [19:16:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:16:38]wFMCommunicate OK [19:16:38]CreateOFDProtocolMessage done [19:16:38]OFDSenderStorePacket 69518 [19:16:38]StoreOFDPacket docnum=69518 [19:16:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 43 91 0D 01 1B D2 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 98 5D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 8B D2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 D2 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 4C 00 00 00 00 07 04 06 00 44 D2 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 14 57 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8E 0F 01 00 35 04 06 00 FB FC 4E DC 4E 62 12 EB 5A 45 C8 98 99 24 [19:16:38]CheckFolder [19:16:38]dirname=/storage/ofd_packets [19:16:38]CheckFolder done [19:16:38]ProducePacketName [19:16:38]name=ofd_packets/00069518 [19:16:38]NVStorageSaveData ofd_packets/00069518 [19:16:38]File name is /storage/ofd_packets/00069518 [19:16:38]Write 307 bytes [19:16:38]NVStorageSaveData done [19:16:38]OFDSenderStorePacket done [19:16:38]KKMCreateOFDPacket done [19:16:38]NVStorageSaveData kkm_last_timestamp [19:16:38]File name is /storage/kkm_last_timestamp [19:16:38]Write 4 bytes [19:16:38]NVStorageSaveData done [19:16:38]ExternCall_PrintAddStr [19:16:38]wPrintStart [19:16:38]Write to MH i2c: 01 00 00 82 0B 8D [19:16:38]Write i2c OK [19:16:38]MH_I2C_Read... [19:16:38]Read from MH i2c: 01 [19:16:38]MH_I2C_Read... [19:16:38]Read from MH i2c: 01 07 00 [19:16:38]MH_I2C_Read... [19:16:38]Read from MH i2c: 01 07 00 82 0B 00 00 00 00 00 FF 0F A2 [19:16:38]RasterBufferAndPrint [19:16:38]line Счет N : (1)2885253 [19:16:38]line ИНН: 02508201610067 [19:16:38]line Контрольно-Кассовый Чек [19:16:38]line ПРОДАЖА [19:16:38]line ТРК (МРК, ГНК) : 21 [19:16:38]line Товар: 2710194240 [19:16:38]line D-ENERGY Дт-К-2 [19:16:38]line 23.960 * 77.20 [19:16:38]line = 1849.71 [19:16:38]line НДС 12% НСП 1% [19:16:38]line > о реализуемом товаре [19:16:38]line ОКРУГЛЕНИЕ: -0.71 [19:16:38]line ИТОГО: 1849.00 [19:16:38]line Внесено: 3000.00 [19:16:38]line СДАЧА: 1151.00 [19:16:38]line НСП 1% : 16.37 [19:16:38]line НДС 12% : 196.43 [19:16:38]line Наличными: 1849.00 [19:16:38]line Безнал.: 0.00 [19:16:38]line Место: АЗС № 85 "Партнер Нефть" [19:16:38]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:16:38]line СНО: Общий режим [19:16:38]line Чек 363 20.10.2024 19:16 [19:16:38]line Смена: 193 ФФД: 1.0 [19:16:38]line ЗНМ: 0300000167 [19:16:38]line РНМ: 0000000000156251 [19:16:38]line Версия ККМ: v1.0 [19:16:38]line ФМ: 0000000000963346 [19:16:38]line ФД: 69518 [19:16:38]line ФПД: 277061073391202 [19:16:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T191636&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69518&fm=277061073391202&tin=02508201610067®Number=0000000000156251&sum=184900 [19:16:38]written 0, free lines is 4095 [19:16:38]OFD Sender: Processing packet 69518 [packets to send 18, broken 17] [19:16:38]ProducePacketName [19:16:38]name=ofd_packets/00069518 [19:16:38]OFD Sender: To server: pG, [19:16:38]CommunicateWithHost lk.salyk.kg:30040 [19:16:38]ConnectInit lk.salyk.kg [19:16:38]Connected sock=10 [19:16:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 43 91 0D 01 1B D2 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 98 5D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 8B D2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 D2 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 4C 00 00 00 00 07 04 06 00 44 D2 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 14 57 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8E 0F 01 00 35 04 06 00 FB FC 4E DC 4E 62 12 EB 5A 45 C8 98 99 24 [19:16:38]Write to MH i2c: 01 00 00 AD 0B B8 [19:16:38]Write i2c OK [19:16:38]MH_I2C_Read... [19:16:38]Read from MH i2c: 01 [19:16:38]MH_I2C_Read... [19:16:38]Read from MH i2c: 01 07 00 [19:16:38]MH_I2C_Read... [19:16:38]Read from MH i2c: 01 07 00 AD 0B 00 00 00 00 00 0C 0D D8 [19:16:38]RasterBufferAndPrint [19:16:38]line [19:16:38]line [19:16:38]line [19:16:38]line [19:16:38]line [19:16:38]written 0, free lines is 3368 [19:16:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 B1 34 47 00 57 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8E 0F 01 00 F4 03 04 00 BB 00 15 67 B6 04 01 00 00 7C 1F 13 3B 19 F6 32 29 [19:16:38]CommunicateWithHost err = 0 [19:16:38]CheckOFDResponse [19:16:38]1017 (14) - 77093643461234 [19:16:38]1041 (16) - 0000000000963346 [19:16:38]1040 (4) - 69518 [19:16:38]1012 (4) - 20.10.2024 13:08 [19:16:38]1206 (1) - 0 [19:16:38]OFD Sender: Remove packet 69518 [19:16:38]ProducePacketName [19:16:38]name=ofd_packets/00069518 [19:16:38]NVStorageDeleteData [19:16:38]MH_Cut [19:16:38]Write to MH i2c: D1 01 00 B4 0B 01 91 [19:16:38]Write i2c OK [19:16:38]MH_I2C_Read... [19:16:38]Read from MH i2c: D1 [19:16:38]MH_I2C_Read... [19:16:38]Read from MH i2c: D1 01 00 [19:16:38]MH_I2C_Read... [19:16:38]Read from MH i2c: D1 01 00 B4 0B 00 90 [19:16:38]Write to MH i2c: 01 00 00 B5 0B C0 [19:16:38]Write i2c OK [19:16:38]MH_I2C_Read... [19:16:39]OFD Sender: No OFD packet to send [19:16:39]*** Cut start [19:16:39]*** Partial cut [19:16:39]*** CUTSNS_PIN = 1 [19:16:39]*** CUTSNS_PIN = 0 [19:16:39]*** Brake cut motor [19:16:40]Read from MH i2c: 01 [19:16:40]MH_I2C_Read... [19:16:40]*** Stop cut motor [19:16:40]*** Cut end [19:16:40]Read from MH i2c: 01 07 00 [19:16:40]MH_I2C_Read... [19:16:40]Read from MH i2c: 01 07 00 B5 0B 00 00 00 00 00 FF 0F D5 [19:16:40]process_action close_receipt done [19:16:40]requested_data is exist [19:16:40]produce_requested_data [19:16:40]requested_item fm.sn is exist - process it [19:16:40]wFMCommunicate request_size=4 [19:16:40]MH_SAM_APDU [19:16:40]CAPDU: 80 11 00 00 [19:16:40]Write to MH i2c: E2 08 00 B6 0B 80 11 00 00 00 00 00 00 3B [19:16:40]Write i2c OK [19:16:40]MH_I2C_Read... [19:16:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:40]Read from MH i2c: E2 [19:16:40]MH_I2C_Read... [19:16:40]Read from MH i2c: E2 17 00 [19:16:40]MH_I2C_Read... [19:16:40]Read from MH i2c: E2 17 00 B6 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8D [19:16:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:16:40]wFMCommunicate OK [19:16:40]requested_item fd.num is exist - process it [19:16:40]SAM_PROTO_GetFieldsCounters [19:16:40]wFMCommunicate request_size=4 [19:16:40]MH_SAM_APDU [19:16:40]CAPDU: 80 13 00 00 [19:16:40]Write to MH i2c: E2 08 00 B7 0B 80 13 00 00 00 00 00 00 3E [19:16:40]Write i2c OK [19:16:40]MH_I2C_Read... [19:16:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:16:40]Read from MH i2c: E2 [19:16:40]MH_I2C_Read... [19:16:40]Read from MH i2c: E2 62 00 [19:16:40]MH_I2C_Read... [19:16:40]Read from MH i2c: E2 62 00 B7 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8E 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 6B 01 00 00 5E 04 04 00 6B 01 00 00 57 04 04 00 6C 01 00 00 19 04 04 00 00 00 00 00 90 00 FC [19:16:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8E 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 6B 01 00 00 5E 04 04 00 6B 01 00 00 57 04 04 00 6C 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:16:40]wFMCommunicate OK [19:16:40]SAM_PROTO_GetFieldsCounters done [19:16:40]requested_item shift.num is exist - process it [19:16:40]requested_item shift.opened is exist - process it [19:16:40]req_shift_opened [19:16:40]FM_GetShiftState [19:16:40]SAM_PROTO_GetShiftState [19:16:40]wFMCommunicate request_size=4 [19:16:40]MH_SAM_APDU [19:16:40]CAPDU: 80 13 01 00 [19:16:40]Write to MH i2c: E2 08 00 B8 0B 80 13 01 00 00 00 00 00 40 [19:16:40]Write i2c OK [19:16:40]MH_I2C_Read... [19:16:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:40]Read from MH i2c: E2 [19:16:40]MH_I2C_Read... [19:16:40]Read from MH i2c: E2 0E 00 [19:16:40]MH_I2C_Read... [19:16:40]Read from MH i2c: E2 0E 00 B8 0B 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 46 [19:16:40]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:16:40]wFMCommunicate OK [19:16:40]SAM_PROTO_GetShiftState done [19:16:40]FM_GetShiftState done [19:16:40]req_shift_opened done [19:16:40]requested_item shift.open_date is exist - process it [19:16:40]req_shift_open_date [19:16:40]req_shift_open_date done [19:16:40]produce_requested_data done [19:16:40]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69518,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [19:16:40]process_action_free close_receipt [19:16:40]json_value_free [19:16:40]json_value_free done [19:16:40]process_json_proto returns [19:16:40]Send response to host [19:16:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69518,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [19:16:40]free response buf [19:16:40]execute_script done [19:16:40]execute_script returns [19:16:40]free content buf [19:16:40]Sock 7.Close socket [19:16:40]Sock 7.Thread stoped [19:16:44]OFD Sender: No OFD packet to send [19:16:49]OFD Sender: No OFD packet to send [19:16:54]OFD Sender: No OFD packet to send [19:16:59]OFD Sender: No OFD packet to send [19:17:02]accept exits with 9 [19:17:02]New connection [19:17:02]New thread 3066797412 created [19:17:02]Thread 3066654052 joined [19:17:02]Waiting for new connection... [19:17:02] Sock 9.Parse request [19:17:02]Sock 9.Check first char [19:17:02]Sock 9.First char is OK [19:17:02]request: POST /json_proto HTTP/1.0 [19:17:02]Method: POST [19:17:02]URL: /json_proto [19:17:02]Method is POST - this is cgi request [19:17:02]url: /json_proto [19:17:02]query_string will be loaded in cgi processing [19:17:02]execute_cgi json_proto POST (null) [19:17:02]execute_cgi path=json_proto method=POST [19:17:02]POST find Content-Length [19:17:02]Host: 172.17.50.3:8080 [19:17:02]Content-Length: 773 [19:17:02]Content-Type: application/json [19:17:02] [19:17:02]POST finish read [19:17:02]Found Content-Length = 773 [19:17:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:02]execute_script... [19:17: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)2885255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:02]POST & json_proto [19:17:02]process_json_proto [19:17:02]json parsed OK: [19:17:02]protocol is kg_v1.0 [19:17:02]action value=close_receipt [19:17:02]process_action close_receipt [19:17:02]cmd_close_receipt [19:17:02]MH_GetDate [19:17:02]Write to MH i2c: F0 00 00 B9 0B B3 [19:17:02]Write i2c OK [19:17:02]MH_I2C_Read... [19:17:02]Read from MH i2c: F0 [19:17:02]MH_I2C_Read... [19:17:02]Read from MH i2c: F0 09 00 [19:17:02]MH_I2C_Read... [19:17:02]Read from MH i2c: F0 09 00 B9 0B 00 2E 57 15 67 6B 98 1E 66 44 [19:17:02]GetLastDocTimeStamp 1729451796 [19:17:02]current date 1729451822 [19:17:02]FM_GetShiftState [19:17:02]SAM_PROTO_GetShiftState [19:17:02]wFMCommunicate request_size=4 [19:17:02]MH_SAM_APDU [19:17:02]CAPDU: 80 13 01 00 [19:17:02]Write to MH i2c: E2 08 00 BA 0B 80 13 01 00 00 00 00 00 42 [19:17:02]Write i2c OK [19:17:02]MH_I2C_Read... [19:17:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:02]Read from MH i2c: E2 [19:17:02]MH_I2C_Read... [19:17:02]Read from MH i2c: E2 0E 00 [19:17:02]MH_I2C_Read... [19:17:02]Read from MH i2c: E2 0E 00 BA 0B 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 48 [19:17:02]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:17:02]wFMCommunicate OK [19:17:02]SAM_PROTO_GetShiftState done [19:17:02]FM_GetShiftState done [19:17:02]opened in 1729383220 [19:17:02]opened+sec_in_day 1729469620 [19:17:02]quantity*price = 100011 [19:17:02]sum+1 = 100013 [19:17:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.12 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.12 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 364 20.10.2024 19:17 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69519 ФПД: 105093537586652 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T191703&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69519&fm=105093537586652&tin=02508201610067®Number=0000000000156251&sum=100012 [19:17:03]StoreToDocumentArchive [19:17:03]shift 193 fd 69519 [19:17:03]save to /storage/0193/doc_00069519 [19:17:03]save last doc name /storage/0193/doc_00069519 to /storage/kkm_last_doc_name [19:17:03]save OK [19:17:03]Clear old archive folders... [19:17:03]ProcessDocumentItem done err = 0, tmpTLVsize=250 [19:17:03]tlvbuf is 00F903E0 [19:17:03]SAM_PROTO_ClearQueue [19:17:03]wFMCommunicate request_size=4 [19:17:03]MH_SAM_APDU [19:17:03]CAPDU: 80 09 00 00 [19:17:03]Write to MH i2c: E2 08 00 C7 0B 80 09 00 00 00 00 00 00 44 [19:17:03]Write i2c OK [19:17:03]MH_I2C_Read... [19:17:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:17:03]Read from MH i2c: E2 [19:17:03]MH_I2C_Read... [19:17:03]Read from MH i2c: E2 03 00 [19:17:03]MH_I2C_Read... [19:17:03]Read from MH i2c: E2 03 00 C7 0B 00 90 00 46 [19:17:03]RAPDU: 90 00 [19:17:03]wFMCommunicate OK [19:17:03]SAM_PROTO_ClearQueue done [19:17:03]KKMCreateOFDPacket [19:17:03]OFDProtocolAddRootSTLVToBuf [19:17:03]FM_MakeSignedData [19:17:03]FM_MakeSignedData [19:17:03]SAM_PROTO_SignData [19:17:03]wFMCommunicate request_size=4 [19:17:03]MH_SAM_APDU [19:17:03]CAPDU: 80 0D 01 02 [19:17:03]Write to MH i2c: E2 08 00 C8 0B 80 0D 01 02 00 00 00 00 4C [19:17:03]Write i2c OK [19:17:03]MH_I2C_Read... [19:17:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:17:03]Read from MH i2c: E2 [19:17:03]MH_I2C_Read... [19:17:03]Read from MH i2c: E2 03 00 [19:17:03]MH_I2C_Read... [19:17:03]Read from MH i2c: E2 03 00 C8 0B 00 90 00 47 [19:17:03]RAPDU: 90 00 [19:17:03]wFMCommunicate OK [19:17:03]wFMCommunicate request_size=255 [19:17:03]MH_SAM_APDU [19:17: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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 2F 57 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8F 0F 01 00 35 04 06 00 5F 94 [19:17:03]Write to MH i2c: E2 02 01 C9 0B 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 2F 57 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8F 0F 01 00 35 04 06 00 5F 94 00 00 8A [19:17:03]Write i2c OK [19:17:03]MH_I2C_Read... [19:17:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:03]Read from MH i2c: E2 [19:17:03]MH_I2C_Read... [19:17:03]Read from MH i2c: E2 03 00 [19:17:03]MH_I2C_Read... [19:17:03]Read from MH i2c: E2 03 00 C9 0B 00 90 00 48 [19:17:03]RAPDU: 90 00 [19:17:03]wFMCommunicate OK [19:17:03]wFMCommunicate request_size=9 [19:17:03]MH_SAM_APDU [19:17:03]CAPDU: 80 0D 02 02 04 FE F9 DD DC [19:17:03]Write to MH i2c: E2 0C 00 CA 0B 80 0D 02 02 04 00 FE F9 DD DC 00 00 07 [19:17:03]Write i2c OK [19:17:03]MH_I2C_Read... [19:17:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:03]Read from MH i2c: E2 [19:17:03]MH_I2C_Read... [19:17:03]Read from MH i2c: E2 03 00 [19:17:03]MH_I2C_Read... [19:17:03]Read from MH i2c: E2 03 00 CA 0B 00 90 00 49 [19:17:03]RAPDU: 90 00 [19:17:03]wFMCommunicate OK [19:17:03]wFMCommunicate request_size=4 [19:17:03]MH_SAM_APDU [19:17:03]CAPDU: 80 0D 03 02 [19:17:04]Write to MH i2c: E2 08 00 CB 0B 80 0D 03 02 00 00 00 00 51 [19:17:04]Write i2c OK [19:17:04]MH_I2C_Read... [19:17:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:17:04]Read from MH i2c: E2 [19:17:04]MH_I2C_Read... [19:17:04]Read from MH i2c: E2 0B 00 [19:17:04]MH_I2C_Read... [19:17:04]Read from MH i2c: E2 0B 00 CB 0B 00 36 87 DB B3 4B 44 2A 4D 90 00 A3 [19:17:04]RAPDU: 36 87 DB B3 4B 44 2A 4D 90 00 [19:17:04]wFMCommunicate OK [19:17:04]SAM_PROTO_SignData done [19:17:04]FM_MakeSignedData done [19:17:04]CreateOFDProtocolMessage [19:17:04]wFMCommunicate request_size=4 [19:17:04]MH_SAM_APDU [19:17:04]CAPDU: 80 11 00 00 [19:17:04]Write to MH i2c: E2 08 00 CC 0B 80 11 00 00 00 00 00 00 51 [19:17:04]Write i2c OK [19:17:04]MH_I2C_Read... [19:17:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:04]Read from MH i2c: E2 [19:17:04]MH_I2C_Read... [19:17:04]Read from MH i2c: E2 17 00 [19:17:04]MH_I2C_Read... [19:17:04]Read from MH i2c: E2 17 00 CC 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A3 [19:17:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:17:04]wFMCommunicate OK [19:17:04]CreateOFDProtocolMessage done [19:17:04]OFDSenderStorePacket 69519 [19:17:04]StoreOFDPacket docnum=69519 [19:17:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 8A 51 06 01 53 AE 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 2F 57 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8F 0F 01 00 35 04 06 00 5F 94 FE F9 DD DC 36 87 DB B3 4B 44 2A 4D [19:17:04]CheckFolder [19:17:04]dirname=/storage/ofd_packets [19:17:04]CheckFolder done [19:17:04]ProducePacketName [19:17:04]name=ofd_packets/00069519 [19:17:04]NVStorageSaveData ofd_packets/00069519 [19:17:04]File name is /storage/ofd_packets/00069519 [19:17:04]Write 300 bytes [19:17:04]NVStorageSaveData done [19:17:04]OFDSenderStorePacket done [19:17:04]KKMCreateOFDPacket done [19:17:04]NVStorageSaveData kkm_last_timestamp [19:17:04]File name is /storage/kkm_last_timestamp [19:17:04]Write 4 bytes [19:17:04]NVStorageSaveData done [19:17:04]ExternCall_PrintAddStr [19:17:04]wPrintStart [19:17:04]Write to MH i2c: 01 00 00 CD 0B D8 [19:17:04]Write i2c OK [19:17:04]MH_I2C_Read... [19:17:04]Read from MH i2c: 01 [19:17:04]MH_I2C_Read... [19:17:04]Read from MH i2c: 01 07 00 [19:17:04]MH_I2C_Read... [19:17:04]Read from MH i2c: 01 07 00 CD 0B 00 00 00 00 00 FF 0F ED [19:17:04]RasterBufferAndPrint [19:17:04]line Счет N : (1)2885255 [19:17:04]line ИНН: 02508201610067 [19:17:04]line Контрольно-Кассовый Чек [19:17:04]line ПРОДАЖА [19:17:04]line ТРК (МРК, ГНК) : 71 [19:17:04]line Товар: 2711129700 [19:17:04]line ГАЗ-К-3 [19:17:04]line 25.710 * 38.90 [19:17:04]line = 1000.12 [19:17:04]line НДС 12% НСП 1% [19:17:04]line > о реализуемом товаре [19:17:04]line ИТОГО: 1000.12 [19:17:04]line НСП 1% : 8.85 [19:17:04]line НДС 12% : 106.21 [19:17:04]line Наличными: 0.00 [19:17:04]line Безнал.: 1000.12 [19:17:04]line Место: АЗС № 85 "Партнер Нефть" [19:17:04]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:17:04]line СНО: Общий режим [19:17:04]line Чек 364 20.10.2024 19:17 [19:17:04]line Смена: 193 ФФД: 1.0 [19:17:04]line ЗНМ: 0300000167 [19:17:04]line РНМ: 0000000000156251 [19:17:04]line Версия ККМ: v1.0 [19:17:04]line Платежная система: Mbank [19:17:04]line ФМ: 0000000000963346 [19:17:04]line ФД: 69519 [19:17:04]line ФПД: 105093537586652 [19:17:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T191703&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69519&fm=105093537586652&tin=02508201610067®Number=0000000000156251&sum=100012 [19:17:04]written 0, free lines is 4095 [19:17:04]OFD Sender: Processing packet 69519 [packets to send 18, broken 17] [19:17:04]ProducePacketName [19:17:04]name=ofd_packets/00069519 [19:17:04]OFD Sender: To server: pG, [19:17:04]CommunicateWithHost lk.salyk.kg:30040 [19:17:04]ConnectInit lk.salyk.kg [19:17:04]Connected sock=10 [19:17:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 8A 51 06 01 53 AE 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 2F 57 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8F 0F 01 00 35 04 06 00 5F 94 FE F9 DD DC 36 87 DB B3 4B 44 2A 4D [19:17:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 74 B0 47 00 E9 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 8F 0F 01 00 F4 03 04 00 D4 00 15 67 B6 04 01 00 00 47 A2 00 B6 EF 1E 60 CF [19:17:04]CommunicateWithHost err = 0 [19:17:04]CheckOFDResponse [19:17:04]1017 (14) - 77093643461234 [19:17:04]1041 (16) - 0000000000963346 [19:17:04]1040 (4) - 69519 [19:17:04]1012 (4) - 20.10.2024 13:08 [19:17:04]1206 (1) - 0 [19:17:04]OFD Sender: Remove packet 69519 [19:17:04]ProducePacketName [19:17:04]name=ofd_packets/00069519 [19:17:04]NVStorageDeleteData [19:17:04]Write to MH i2c: 01 00 00 F6 0B 01 [19:17:04]Write i2c OK [19:17:04]MH_I2C_Read... [19:17:04]Read from MH i2c: 01 [19:17:04]MH_I2C_Read... [19:17:04]Read from MH i2c: 01 07 00 [19:17:04]MH_I2C_Read... [19:17:04]Read from MH i2c: 01 07 00 F6 0B 00 00 00 00 00 16 0D 2B [19:17:04]RasterBufferAndPrint [19:17:04]line [19:17:04]line [19:17:04]line [19:17:04]line [19:17:04]line [19:17:04]written 0, free lines is 3372 [19:17:04]MH_Cut [19:17:04]Write to MH i2c: D1 01 00 FD 0B 01 DA [19:17:04]Write i2c OK [19:17:04]MH_I2C_Read... [19:17:04]Read from MH i2c: D1 [19:17:04]MH_I2C_Read... [19:17:04]Read from MH i2c: D1 01 00 [19:17:04]MH_I2C_Read... [19:17:04]Read from MH i2c: D1 01 00 FD 0B 00 D9 [19:17:04]Write to MH i2c: 01 00 00 FE 0B 09 [19:17:04]Write i2c OK [19:17:04]MH_I2C_Read... [19:17:05]OFD Sender: No OFD packet to send [19:17:05]*** Cut start [19:17:05]*** Partial cut [19:17:05]*** CUTSNS_PIN = 1 [19:17:05]*** CUTSNS_PIN = 0 [19:17:05]*** Brake cut motor [19:17:05]Read from MH i2c: 01 [19:17:05]MH_I2C_Read... [19:17:05]*** Stop cut motor [19:17:05]*** Cut end [19:17:05]Read from MH i2c: 01 07 00 [19:17:05]MH_I2C_Read... [19:17:05]Read from MH i2c: 01 07 00 FE 0B 00 00 00 00 00 FF 0F 1E [19:17:05]process_action close_receipt done [19:17:05]requested_data is exist [19:17:05]produce_requested_data [19:17:05]requested_item fm.sn is exist - process it [19:17:05]wFMCommunicate request_size=4 [19:17:05]MH_SAM_APDU [19:17:05]CAPDU: 80 11 00 00 [19:17:05]Write to MH i2c: E2 08 00 FF 0B 80 11 00 00 00 00 00 00 84 [19:17:05]Write i2c OK [19:17:05]MH_I2C_Read... [19:17:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:05]Read from MH i2c: E2 [19:17:05]MH_I2C_Read... [19:17:05]Read from MH i2c: E2 17 00 [19:17:05]MH_I2C_Read... [19:17:05]Read from MH i2c: E2 17 00 FF 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D6 [19:17:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:17:05]wFMCommunicate OK [19:17:05]requested_item fd.num is exist - process it [19:17:05]SAM_PROTO_GetFieldsCounters [19:17:05]wFMCommunicate request_size=4 [19:17:05]MH_SAM_APDU [19:17:05]CAPDU: 80 13 00 00 [19:17:05]Write to MH i2c: E2 08 00 00 0C 80 13 00 00 00 00 00 00 88 [19:17:05]Write i2c OK [19:17:05]MH_I2C_Read... [19:17:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:17:06]Read from MH i2c: E2 [19:17:06]MH_I2C_Read... [19:17:06]Read from MH i2c: E2 62 00 [19:17:06]MH_I2C_Read... [19:17:06]Read from MH i2c: E2 62 00 00 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8F 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6D 01 00 00 19 04 04 00 00 00 00 00 90 00 4A [19:17:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 8F 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6D 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:17:06]wFMCommunicate OK [19:17:06]SAM_PROTO_GetFieldsCounters done [19:17:06]requested_item shift.num is exist - process it [19:17:06]requested_item shift.opened is exist - process it [19:17:06]req_shift_opened [19:17:06]FM_GetShiftState [19:17:06]SAM_PROTO_GetShiftState [19:17:06]wFMCommunicate request_size=4 [19:17:06]MH_SAM_APDU [19:17:06]CAPDU: 80 13 01 00 [19:17:06]Write to MH i2c: E2 08 00 01 0C 80 13 01 00 00 00 00 00 8A [19:17:06]Write i2c OK [19:17:06]MH_I2C_Read... [19:17:06]Read from MH i2c: E2 [19:17:06]MH_I2C_Read... [19:17:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:06]Read from MH i2c: E2 0E 00 [19:17:06]MH_I2C_Read... [19:17:06]Read from MH i2c: E2 0E 00 01 0C 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 90 [19:17:06]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:17:06]wFMCommunicate OK [19:17:06]SAM_PROTO_GetShiftState done [19:17:06]FM_GetShiftState done [19:17:06]req_shift_opened done [19:17:06]requested_item shift.open_date is exist - process it [19:17:06]req_shift_open_date [19:17:06]req_shift_open_date done [19:17:06]produce_requested_data done [19:17:06]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69519,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [19:17:06]process_action_free close_receipt [19:17:06]json_value_free [19:17:06]json_value_free done [19:17:06]process_json_proto returns [19:17:06]Send response to host [19:17:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69519,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [19:17:06]free response buf [19:17:06]execute_script done [19:17:06]execute_script returns [19:17:06]free content buf [19:17:06]Sock 9.Close socket [19:17:06]Sock 9.Thread stoped [19:17:10]OFD Sender: No OFD packet to send [19:17:15]OFD Sender: No OFD packet to send [19:17:20]OFD Sender: No OFD packet to send [19:17:25]OFD Sender: No OFD packet to send [19:17:30]OFD Sender: No OFD packet to send [19:17:35]OFD Sender: No OFD packet to send [19:17:40]OFD Sender: No OFD packet to send [19:17:45]OFD Sender: No OFD packet to send [19:17:50]OFD Sender: No OFD packet to send [19:17:55]OFD Sender: No OFD packet to send [19:18:00]OFD Sender: No OFD packet to send [19:18:05]OFD Sender: No OFD packet to send [19:18:10]OFD Sender: No OFD packet to send [19:18:15]OFD Sender: No OFD packet to send [19:18:20]OFD Sender: No OFD packet to send [19:18:25]OFD Sender: No OFD packet to send [19:18:30]OFD Sender: No OFD packet to send [19:18:35]OFD Sender: No OFD packet to send [19:18:40]OFD Sender: No OFD packet to send [19:18:45]OFD Sender: No OFD packet to send [19:18:50]OFD Sender: No OFD packet to send [19:18:55]OFD Sender: No OFD packet to send [19:19:00]OFD Sender: No OFD packet to send [19:19:05]OFD Sender: No OFD packet to send [19:19:10]OFD Sender: No OFD packet to send [19:19:15]OFD Sender: No OFD packet to send [19:19:20]OFD Sender: No OFD packet to send [19:19:25]OFD Sender: No OFD packet to send [19:19:30]OFD Sender: No OFD packet to send [19:19:35]OFD Sender: No OFD packet to send [19:19:40]OFD Sender: No OFD packet to send [19:19:45]OFD Sender: No OFD packet to send [19:19:50]OFD Sender: No OFD packet to send [19:19:55]OFD Sender: No OFD packet to send [19:20:00]OFD Sender: No OFD packet to send [19:20:05]OFD Sender: No OFD packet to send [19:20:10]OFD Sender: No OFD packet to send [19:20:15]OFD Sender: No OFD packet to send [19:20:16]accept exits with 7 [19:20:16]New connection [19:20:16]New thread 3066654052 created [19:20:16]Thread 3066797412 joined [19:20:16]Waiting for new connection... [19:20:16] Sock 7.Parse request [19:20:16]Sock 7.Check first char [19:20:16]Sock 7.First char is OK [19:20:16]request: POST /json_proto HTTP/1.0 [19:20:16]Method: POST [19:20:16]URL: /json_proto [19:20:16]Method is POST - this is cgi request [19:20:16]url: /json_proto [19:20:16]query_string will be loaded in cgi processing [19:20:16]execute_cgi json_proto POST (null) [19:20:16]execute_cgi path=json_proto method=POST [19:20:16]POST find Content-Length [19:20:16]Host: 172.17.50.3:8080 [19:20:16]Content-Length: 683 [19:20:16]Content-Type: application/json [19:20:16] [19:20:16]POST finish read [19:20:16]Found Content-Length = 683 [19:20:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:16]execute_script... [19:20: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)2885259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:16]POST & json_proto [19:20:16]process_json_proto [19:20:16]json parsed OK: [19:20:16]protocol is kg_v1.0 [19:20:16]action value=close_receipt [19:20:16]process_action close_receipt [19:20:16]cmd_close_receipt [19:20:16]MH_GetDate [19:20:16]Write to MH i2c: F0 00 00 02 0C FD [19:20:16]Write i2c OK [19:20:16]MH_I2C_Read... [19:20:16]Read from MH i2c: F0 [19:20:16]MH_I2C_Read... [19:20:16]Read from MH i2c: F0 09 00 [19:20:16]MH_I2C_Read... [19:20:16]Read from MH i2c: F0 09 00 02 0C 00 F0 57 15 67 6B 98 1E 66 50 [19:20:16]GetLastDocTimeStamp 1729451823 [19:20:16]current date 1729452016 [19:20:16]FM_GetShiftState [19:20:16]SAM_PROTO_GetShiftState [19:20:16]wFMCommunicate request_size=4 [19:20:16]MH_SAM_APDU [19:20:16]CAPDU: 80 13 01 00 [19:20:16]Write to MH i2c: E2 08 00 03 0C 80 13 01 00 00 00 00 00 8C [19:20:16]Write i2c OK [19:20:16]MH_I2C_Read... [19:20:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:16]Read from MH i2c: E2 [19:20:16]MH_I2C_Read... [19:20:16]Read from MH i2c: E2 0E 00 [19:20:16]MH_I2C_Read... [19:20:16]Read from MH i2c: E2 0E 00 03 0C 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 92 [19:20:16]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:20:16]wFMCommunicate OK [19:20:16]SAM_PROTO_GetShiftState done [19:20:16]FM_GetShiftState done [19:20:16]opened in 1729383220 [19:20:16]opened+sec_in_day 1729469620 [19:20:16]quantity*price = 100015 [19:20:16]sum+1 = 100017 [19:20:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 365 20.10.2024 19:20 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69520 ФПД: 154331095140679 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192016&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69520&fm=154331095140679&tin=02508201610067®Number=0000000000156251&sum=100000 [19:20:17]StoreToDocumentArchive [19:20:17]shift 193 fd 69520 [19:20:17]save to /storage/0193/doc_00069520 [19:20:17]save last doc name /storage/0193/doc_00069520 to /storage/kkm_last_doc_name [19:20:17]save OK [19:20:17]Clear old archive folders... [19:20:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:20:17]tlvbuf is 00F0E0F0 [19:20:17]SAM_PROTO_ClearQueue [19:20:17]wFMCommunicate request_size=4 [19:20:17]MH_SAM_APDU [19:20:17]CAPDU: 80 09 00 00 [19:20:17]Write to MH i2c: E2 08 00 10 0C 80 09 00 00 00 00 00 00 8E [19:20:17]Write i2c OK [19:20:17]MH_I2C_Read... [19:20:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:20:17]Read from MH i2c: E2 [19:20:17]MH_I2C_Read... [19:20:17]Read from MH i2c: E2 03 00 [19:20:17]MH_I2C_Read... [19:20:17]Read from MH i2c: E2 03 00 10 0C 00 90 00 90 [19:20:17]RAPDU: 90 00 [19:20:17]wFMCommunicate OK [19:20:17]SAM_PROTO_ClearQueue done [19:20:17]KKMCreateOFDPacket [19:20:17]OFDProtocolAddRootSTLVToBuf [19:20:17]FM_MakeSignedData [19:20:17]FM_MakeSignedData [19:20:17]SAM_PROTO_SignData [19:20:17]wFMCommunicate request_size=4 [19:20:17]MH_SAM_APDU [19:20:17]CAPDU: 80 0D 01 02 [19:20:17]Write to MH i2c: E2 08 00 11 0C 80 0D 01 02 00 00 00 00 96 [19:20:17]Write i2c OK [19:20:17]MH_I2C_Read... [19:20:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:20:17]Read from MH i2c: E2 [19:20:17]MH_I2C_Read... [19:20:17]Read from MH i2c: E2 03 00 [19:20:17]MH_I2C_Read... [19:20:17]Read from MH i2c: E2 03 00 11 0C 00 90 00 91 [19:20:17]RAPDU: 90 00 [19:20:17]wFMCommunicate OK [19:20:17]wFMCommunicate request_size=255 [19:20:17]MH_SAM_APDU [19:20: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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 01 00 00 F4 03 04 00 F0 57 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 90 0F 01 00 35 04 06 00 8C [19:20:17]Write to MH i2c: E2 02 01 12 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 01 00 00 F4 03 04 00 F0 57 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 90 0F 01 00 35 04 06 00 8C 00 00 37 [19:20:17]Write i2c OK [19:20:17]MH_I2C_Read... [19:20:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:17]Read from MH i2c: E2 [19:20:17]MH_I2C_Read... [19:20:17]Read from MH i2c: E2 03 00 [19:20:17]MH_I2C_Read... [19:20:17]Read from MH i2c: E2 03 00 12 0C 00 90 00 92 [19:20:17]RAPDU: 90 00 [19:20:17]wFMCommunicate OK [19:20:17]wFMCommunicate request_size=10 [19:20:17]MH_SAM_APDU [19:20:17]CAPDU: 80 0D 02 02 05 5D 02 1A 89 47 [19:20:17]Write to MH i2c: E2 0D 00 13 0C 80 0D 02 02 05 00 5D 02 1A 89 47 00 00 EC [19:20:17]Write i2c OK [19:20:17]MH_I2C_Read... [19:20:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:17]Read from MH i2c: E2 [19:20:17]MH_I2C_Read... [19:20:17]Read from MH i2c: E2 03 00 [19:20:17]MH_I2C_Read... [19:20:17]Read from MH i2c: E2 03 00 13 0C 00 90 00 93 [19:20:17]RAPDU: 90 00 [19:20:17]wFMCommunicate OK [19:20:17]wFMCommunicate request_size=4 [19:20:17]MH_SAM_APDU [19:20:17]CAPDU: 80 0D 03 02 [19:20:17]Write to MH i2c: E2 08 00 14 0C 80 0D 03 02 00 00 00 00 9B [19:20:17]Write i2c OK [19:20:17]MH_I2C_Read... [19:20:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:20:17]Read from MH i2c: E2 [19:20:17]MH_I2C_Read... [19:20:17]Read from MH i2c: E2 0B 00 [19:20:17]MH_I2C_Read... [19:20:17]Read from MH i2c: E2 0B 00 14 0C 00 5E 0F 8B 66 A2 07 F8 74 90 00 0F [19:20:17]RAPDU: 5E 0F 8B 66 A2 07 F8 74 90 00 [19:20:17]wFMCommunicate OK [19:20:17]SAM_PROTO_SignData done [19:20:17]FM_MakeSignedData done [19:20:17]CreateOFDProtocolMessage [19:20:17]wFMCommunicate request_size=4 [19:20:17]MH_SAM_APDU [19:20:17]CAPDU: 80 11 00 00 [19:20:17]Write to MH i2c: E2 08 00 15 0C 80 11 00 00 00 00 00 00 9B [19:20:17]Write i2c OK [19:20:17]MH_I2C_Read... [19:20:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:17]Read from MH i2c: E2 [19:20:17]MH_I2C_Read... [19:20:17]Read from MH i2c: E2 17 00 [19:20:17]MH_I2C_Read... [19:20:17]Read from MH i2c: E2 17 00 15 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 ED [19:20:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:20:17]wFMCommunicate OK [19:20:17]CreateOFDProtocolMessage done [19:20:17]OFDSenderStorePacket 69520 [19:20:17]StoreOFDPacket docnum=69520 [19:20:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 BA F9 07 01 32 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 01 00 00 F4 03 04 00 F0 57 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 90 0F 01 00 35 04 06 00 8C 5D 02 1A 89 47 5E 0F 8B 66 A2 07 F8 74 [19:20:17]CheckFolder [19:20:17]dirname=/storage/ofd_packets [19:20:17]CheckFolder done [19:20:17]ProducePacketName [19:20:17]name=ofd_packets/00069520 [19:20:17]NVStorageSaveData ofd_packets/00069520 [19:20:17]File name is /storage/ofd_packets/00069520 [19:20:17]Write 301 bytes [19:20:17]NVStorageSaveData done [19:20:17]OFDSenderStorePacket done [19:20:17]KKMCreateOFDPacket done [19:20:17]NVStorageSaveData kkm_last_timestamp [19:20:17]File name is /storage/kkm_last_timestamp [19:20:17]Write 4 bytes [19:20:17]NVStorageSaveData done [19:20:17]ExternCall_PrintAddStr [19:20:17]wPrintStart [19:20:17]Write to MH i2c: 01 00 00 16 0C 22 [19:20:17]OFD Sender: Processing packet 69520 [packets to send 18, broken 17] [19:20:17]ProducePacketName [19:20:17]name=ofd_packets/00069520 [19:20:17]OFD Sender: To server: pG, [19:20:17]CommunicateWithHost lk.salyk.kg:30040 [19:20:17]ConnectInit lk.salyk.kg [19:20:17]Write i2c OK [19:20:17]MH_I2C_Read... [19:20:17]Read from MH i2c: 01 [19:20:17]MH_I2C_Read... [19:20:17]Read from MH i2c: 01 07 00 [19:20:17]MH_I2C_Read... [19:20:17]Read from MH i2c: 01 07 00 16 0C 00 00 00 00 00 FF 0F 37 [19:20:17]RasterBufferAndPrint [19:20:17]line Счет N : (1)2885259 [19:20:17]line ИНН: 02508201610067 [19:20:17]line Контрольно-Кассовый Чек [19:20:17]line ПРОДАЖА [19:20:17]line ТРК (МРК, ГНК) : 22 [19:20:17]line Товар: 2710124130 [19:20:17]line Аи-92-К-5 [19:20:17]line 14.950 * 66.90 [19:20:17]line = 1000.16 [19:20:17]line НДС 12% НСП 1% [19:20:17]line > о реализуемом товаре [19:20:17]line ОКРУГЛЕНИЕ: -0.16 [19:20:17]line ИТОГО: 1000.00 [19:20:17]line Внесено: 1000.00 [19:20:17]line СДАЧА: 0.00 [19:20:17]line НСП 1% : 8.85 [19:20:17]line НДС 12% : 106.21 [19:20:17]line Наличными: 1000.00 [19:20:17]line Безнал.: 0.00 [19:20:17]line Место: АЗС № 85 "Партнер Нефть" [19:20:17]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:20:17]line СНО: Общий режим [19:20:17]line Чек 365 20.10.2024 19:20 [19:20:17]line Смена: 193 ФФД: 1.0 [19:20:17]line ЗНМ: 0300000167 [19:20:17]line РНМ: 0000000000156251 [19:20:17]line Версия ККМ: v1.0 [19:20:17]line ФМ: 0000000000963346 [19:20:17]line ФД: 69520 [19:20:17]line ФПД: 154331095140679 [19:20:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192016&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69520&fm=154331095140679&tin=02508201610067®Number=0000000000156251&sum=100000 [19:20:18]Connected sock=10 [19:20:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 BA F9 07 01 32 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 01 00 00 F4 03 04 00 F0 57 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 90 0F 01 00 35 04 06 00 8C 5D 02 1A 89 47 5E 0F 8B 66 A2 07 F8 74 [19:20:18]written 0, free lines is 4095 [19:20:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 CB 00 47 00 E7 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 90 0F 01 00 F4 03 04 00 96 01 15 67 B6 04 01 00 00 36 BA C2 1A 87 0F 78 6A [19:20:18]CommunicateWithHost err = 0 [19:20:18]CheckOFDResponse [19:20:18]1017 (14) - 77093643461234 [19:20:18]1041 (16) - 0000000000963346 [19:20:18]1040 (4) - 69520 [19:20:18]1012 (4) - 20.10.2024 13:11 [19:20:18]1206 (1) - 0 [19:20:18]OFD Sender: Remove packet 69520 [19:20:18]ProducePacketName [19:20:18]name=ofd_packets/00069520 [19:20:18]NVStorageDeleteData [19:20:18]Write to MH i2c: 01 00 00 41 0C 4D [19:20:18]Write i2c OK [19:20:18]MH_I2C_Read... [19:20:18]Read from MH i2c: 01 [19:20:18]MH_I2C_Read... [19:20:18]Read from MH i2c: 01 07 00 [19:20:18]MH_I2C_Read... [19:20:18]Read from MH i2c: 01 07 00 41 0C 00 00 00 00 00 F0 0C 50 [19:20:18]RasterBufferAndPrint [19:20:18]line [19:20:18]line [19:20:18]line [19:20:18]line [19:20:18]line [19:20:18]written 0, free lines is 3318 [19:20:18]MH_Cut [19:20:18]Write to MH i2c: D1 01 00 48 0C 01 26 [19:20:18]Write i2c OK [19:20:18]MH_I2C_Read... [19:20:18]Read from MH i2c: D1 [19:20:18]MH_I2C_Read... [19:20:18]Read from MH i2c: D1 01 00 [19:20:18]MH_I2C_Read... [19:20:18]Read from MH i2c: D1 01 00 48 0C 00 25 [19:20:18]Write to MH i2c: 01 00 00 49 0C 55 [19:20:18]Write i2c OK [19:20:18]MH_I2C_Read... [19:20:18]OFD Sender: No OFD packet to send [19:20:19]*** Cut start [19:20:19]*** Partial cut [19:20:19]*** CUTSNS_PIN = 1 [19:20:19]*** CUTSNS_PIN = 0 [19:20:19]*** Brake cut motor [19:20:20]Read from MH i2c: 01 [19:20:20]MH_I2C_Read... [19:20:20]*** Stop cut motor [19:20:20]*** Cut end [19:20:20]Read from MH i2c: 01 07 00 [19:20:20]MH_I2C_Read... [19:20:20]Read from MH i2c: 01 07 00 49 0C 00 00 00 00 00 FF 0F 6A [19:20:20]process_action close_receipt done [19:20:20]requested_data is exist [19:20:20]produce_requested_data [19:20:20]requested_item fm.sn is exist - process it [19:20:20]wFMCommunicate request_size=4 [19:20:20]MH_SAM_APDU [19:20:20]CAPDU: 80 11 00 00 [19:20:20]Write to MH i2c: E2 08 00 4A 0C 80 11 00 00 00 00 00 00 D0 [19:20:20]Write i2c OK [19:20:20]MH_I2C_Read... [19:20:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:20]Read from MH i2c: E2 [19:20:20]MH_I2C_Read... [19:20:20]Read from MH i2c: E2 17 00 [19:20:20]MH_I2C_Read... [19:20:20]Read from MH i2c: E2 17 00 4A 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 22 [19:20:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:20:20]wFMCommunicate OK [19:20:20]requested_item fd.num is exist - process it [19:20:20]SAM_PROTO_GetFieldsCounters [19:20:20]wFMCommunicate request_size=4 [19:20:20]MH_SAM_APDU [19:20:20]CAPDU: 80 13 00 00 [19:20:20]Write to MH i2c: E2 08 00 4B 0C 80 13 00 00 00 00 00 00 D3 [19:20:20]Write i2c OK [19:20:20]MH_I2C_Read... [19:20:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:20:20]Read from MH i2c: E2 [19:20:20]MH_I2C_Read... [19:20:20]Read from MH i2c: E2 62 00 [19:20:20]MH_I2C_Read... [19:20:20]Read from MH i2c: E2 62 00 4B 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 90 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 6D 01 00 00 5E 04 04 00 6D 01 00 00 57 04 04 00 6E 01 00 00 19 04 04 00 00 00 00 00 90 00 99 [19:20:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 90 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 6D 01 00 00 5E 04 04 00 6D 01 00 00 57 04 04 00 6E 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:20:20]wFMCommunicate OK [19:20:20]SAM_PROTO_GetFieldsCounters done [19:20:20]requested_item shift.num is exist - process it [19:20:20]requested_item shift.opened is exist - process it [19:20:20]req_shift_opened [19:20:20]FM_GetShiftState [19:20:20]SAM_PROTO_GetShiftState [19:20:20]wFMCommunicate request_size=4 [19:20:20]MH_SAM_APDU [19:20:20]CAPDU: 80 13 01 00 [19:20:20]Write to MH i2c: E2 08 00 4C 0C 80 13 01 00 00 00 00 00 D5 [19:20:20]Write i2c OK [19:20:20]MH_I2C_Read... [19:20:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:20]Read from MH i2c: E2 [19:20:20]MH_I2C_Read... [19:20:20]Read from MH i2c: E2 0E 00 [19:20:20]MH_I2C_Read... [19:20:20]Read from MH i2c: E2 0E 00 4C 0C 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 DB [19:20:20]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:20:20]wFMCommunicate OK [19:20:20]SAM_PROTO_GetShiftState done [19:20:20]FM_GetShiftState done [19:20:20]req_shift_opened done [19:20:20]requested_item shift.open_date is exist - process it [19:20:20]req_shift_open_date [19:20:20]req_shift_open_date done [19:20:20]produce_requested_data done [19:20:20]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69520,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [19:20:20]process_action_free close_receipt [19:20:20]json_value_free [19:20:20]json_value_free done [19:20:20]process_json_proto returns [19:20:20]Send response to host [19:20:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69520,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [19:20:20]free response buf [19:20:20]execute_script done [19:20:20]execute_script returns [19:20:20]free content buf [19:20:20]Sock 7.Close socket [19:20:20]Sock 7.Thread stoped [19:20:23]OFD Sender: No OFD packet to send [19:20:28]OFD Sender: No OFD packet to send [19:20:33]OFD Sender: No OFD packet to send [19:20:34]accept exits with 9 [19:20:34]New connection [19:20:34]New thread 3066797412 created [19:20:34]Thread 3066654052 joined [19:20:34]Waiting for new connection... [19:20:34] Sock 9.Parse request [19:20:34]Sock 9.Check first char [19:20:34]Sock 9.First char is OK [19:20:34]request: POST /json_proto HTTP/1.0 [19:20:34]Method: POST [19:20:34]URL: /json_proto [19:20:34]Method is POST - this is cgi request [19:20:34]url: /json_proto [19:20:34]query_string will be loaded in cgi processing [19:20:34]execute_cgi json_proto POST (null) [19:20:34]execute_cgi path=json_proto method=POST [19:20:34]POST find Content-Length [19:20:34]Host: 172.17.50.3:8080 [19:20:34]Content-Length: 689 [19:20:34]Content-Type: application/json [19:20:34] [19:20:34]POST finish read [19:20:34]Found Content-Length = 689 [19:20:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:34]execute_script... [19:20:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:34]POST & json_proto [19:20:34]process_json_proto [19:20:34]json parsed OK: [19:20:34]protocol is kg_v1.0 [19:20:34]action value=close_receipt [19:20:34]process_action close_receipt [19:20:34]cmd_close_receipt [19:20:34]MH_GetDate [19:20:34]Write to MH i2c: F0 00 00 4D 0C 48 [19:20:34]Write i2c OK [19:20:34]MH_I2C_Read... [19:20:34]Read from MH i2c: F0 [19:20:34]MH_I2C_Read... [19:20:34]Read from MH i2c: F0 09 00 [19:20:34]MH_I2C_Read... [19:20:34]Read from MH i2c: F0 09 00 4D 0C 00 02 58 15 67 6B 98 1E 66 AE [19:20:34]GetLastDocTimeStamp 1729452016 [19:20:34]current date 1729452034 [19:20:34]FM_GetShiftState [19:20:34]SAM_PROTO_GetShiftState [19:20:34]wFMCommunicate request_size=4 [19:20:34]MH_SAM_APDU [19:20:34]CAPDU: 80 13 01 00 [19:20:34]Write to MH i2c: E2 08 00 4E 0C 80 13 01 00 00 00 00 00 D7 [19:20:34]Write i2c OK [19:20:34]MH_I2C_Read... [19:20:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:34]Read from MH i2c: E2 [19:20:34]MH_I2C_Read... [19:20:34]Read from MH i2c: E2 0E 00 [19:20:34]MH_I2C_Read... [19:20:34]Read from MH i2c: E2 0E 00 4E 0C 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 DD [19:20:34]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:20:34]wFMCommunicate OK [19:20:34]SAM_PROTO_GetShiftState done [19:20:34]FM_GetShiftState done [19:20:34]opened in 1729383220 [19:20:34]opened+sec_in_day 1729469620 [19:20:34]quantity*price = 200025 [19:20:34]sum+1 = 200026 [19:20:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 366 20.10.2024 19:20 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69521 ФПД: 225438812160722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192034&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69521&fm=225438812160722&tin=02508201610067®Number=0000000000156251&sum=200000 [19:20:35]StoreToDocumentArchive [19:20:35]shift 193 fd 69521 [19:20:35]save to /storage/0193/doc_00069521 [19:20:35]save last doc name /storage/0193/doc_00069521 to /storage/kkm_last_doc_name [19:20:35]save OK [19:20:35]Clear old archive folders... [19:20:35]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:20:35]tlvbuf is 00F47BD0 [19:20:35]SAM_PROTO_ClearQueue [19:20:35]wFMCommunicate request_size=4 [19:20:35]MH_SAM_APDU [19:20:35]CAPDU: 80 09 00 00 [19:20:35]Write to MH i2c: E2 08 00 5B 0C 80 09 00 00 00 00 00 00 D9 [19:20:35]Write i2c OK [19:20:35]MH_I2C_Read... [19:20:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:20:35]Read from MH i2c: E2 [19:20:35]MH_I2C_Read... [19:20:35]Read from MH i2c: E2 03 00 [19:20:35]MH_I2C_Read... [19:20:35]Read from MH i2c: E2 03 00 5B 0C 00 90 00 DB [19:20:35]RAPDU: 90 00 [19:20:35]wFMCommunicate OK [19:20:35]SAM_PROTO_ClearQueue done [19:20:35]KKMCreateOFDPacket [19:20:35]OFDProtocolAddRootSTLVToBuf [19:20:35]FM_MakeSignedData [19:20:35]FM_MakeSignedData [19:20:35]SAM_PROTO_SignData [19:20:35]wFMCommunicate request_size=4 [19:20:35]MH_SAM_APDU [19:20:35]CAPDU: 80 0D 01 02 [19:20:35]Write to MH i2c: E2 08 00 5C 0C 80 0D 01 02 00 00 00 00 E1 [19:20:35]Write i2c OK [19:20:35]MH_I2C_Read... [19:20:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:20:35]Read from MH i2c: E2 [19:20:35]MH_I2C_Read... [19:20:35]Read from MH i2c: E2 03 00 [19:20:35]MH_I2C_Read... [19:20:35]Read from MH i2c: E2 03 00 5C 0C 00 90 00 DC [19:20:35]RAPDU: 90 00 [19:20:35]wFMCommunicate OK [19:20:35]wFMCommunicate request_size=255 [19:20:35]MH_SAM_APDU [19:20:35]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 02 58 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 91 0F 01 [19:20:35]Write to MH i2c: E2 02 01 5D 0C 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 02 58 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 91 0F 01 00 00 1E [19:20:35]Write i2c OK [19:20:35]MH_I2C_Read... [19:20:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:35]Read from MH i2c: E2 [19:20:35]MH_I2C_Read... [19:20:35]Read from MH i2c: E2 03 00 [19:20:35]MH_I2C_Read... [19:20:35]Read from MH i2c: E2 03 00 5D 0C 00 90 00 DD [19:20:35]RAPDU: 90 00 [19:20:35]wFMCommunicate OK [19:20:35]wFMCommunicate request_size=16 [19:20:35]MH_SAM_APDU [19:20:35]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 CD 09 10 51 42 D2 [19:20:35]Write to MH i2c: E2 13 00 5E 0C 80 0D 02 02 0B 00 00 35 04 06 00 CD 09 10 51 42 D2 00 00 84 [19:20:35]Write i2c OK [19:20:35]MH_I2C_Read... [19:20:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:35]Read from MH i2c: E2 [19:20:35]MH_I2C_Read... [19:20:35]Read from MH i2c: E2 03 00 [19:20:35]MH_I2C_Read... [19:20:35]Read from MH i2c: E2 03 00 5E 0C 00 90 00 DE [19:20:35]RAPDU: 90 00 [19:20:35]wFMCommunicate OK [19:20:35]wFMCommunicate request_size=4 [19:20:35]MH_SAM_APDU [19:20:35]CAPDU: 80 0D 03 02 [19:20:35]Write to MH i2c: E2 08 00 5F 0C 80 0D 03 02 00 00 00 00 E6 [19:20:35]Write i2c OK [19:20:35]MH_I2C_Read... [19:20:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:20:35]Read from MH i2c: E2 [19:20:35]MH_I2C_Read... [19:20:35]Read from MH i2c: E2 0B 00 [19:20:35]MH_I2C_Read... [19:20:35]Read from MH i2c: E2 0B 00 5F 0C 00 D6 AF 61 3A AF EF 52 A6 90 00 9D [19:20:35]RAPDU: D6 AF 61 3A AF EF 52 A6 90 00 [19:20:35]wFMCommunicate OK [19:20:35]SAM_PROTO_SignData done [19:20:35]FM_MakeSignedData done [19:20:35]CreateOFDProtocolMessage [19:20:35]wFMCommunicate request_size=4 [19:20:35]MH_SAM_APDU [19:20:35]CAPDU: 80 11 00 00 [19:20:35]Write to MH i2c: E2 08 00 60 0C 80 11 00 00 00 00 00 00 E6 [19:20:35]Write i2c OK [19:20:35]MH_I2C_Read... [19:20:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:35]Read from MH i2c: E2 [19:20:35]MH_I2C_Read... [19:20:35]Read from MH i2c: E2 17 00 [19:20:35]MH_I2C_Read... [19:20:35]Read from MH i2c: E2 17 00 60 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 38 [19:20:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:20:35]wFMCommunicate OK [19:20:35]CreateOFDProtocolMessage done [19:20:35]OFDSenderStorePacket 69521 [19:20:35]StoreOFDPacket docnum=69521 [19:20:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 A5 D1 0D 01 35 F5 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 02 58 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 91 0F 01 00 35 04 06 00 CD 09 10 51 42 D2 D6 AF 61 3A AF EF 52 A6 [19:20:35]CheckFolder [19:20:35]dirname=/storage/ofd_packets [19:20:35]CheckFolder done [19:20:35]ProducePacketName [19:20:35]name=ofd_packets/00069521 [19:20:35]NVStorageSaveData ofd_packets/00069521 [19:20:35]File name is /storage/ofd_packets/00069521 [19:20:35]Write 307 bytes [19:20:35]NVStorageSaveData done [19:20:35]OFDSenderStorePacket done [19:20:35]KKMCreateOFDPacket done [19:20:35]NVStorageSaveData kkm_last_timestamp [19:20:35]File name is /storage/kkm_last_timestamp [19:20:35]Write 4 bytes [19:20:35]NVStorageSaveData done [19:20:35]ExternCall_PrintAddStr [19:20:35]wPrintStart [19:20:35]Write to MH i2c: 01 00 00 61 0C 6D [19:20:35]Write i2c OK [19:20:35]MH_I2C_Read... [19:20:35]Read from MH i2c: 01 [19:20:35]MH_I2C_Read... [19:20:35]Read from MH i2c: 01 07 00 [19:20:35]MH_I2C_Read... [19:20:35]Read from MH i2c: 01 07 00 61 0C 00 00 00 00 00 FF 0F 82 [19:20:35]RasterBufferAndPrint [19:20:35]line Счет N : (1)2885258 [19:20:35]line ИНН: 02508201610067 [19:20:35]line Контрольно-Кассовый Чек [19:20:35]line ПРОДАЖА [19:20:35]line ТРК (МРК, ГНК) : 41 [19:20:35]line Товар: 2710194240 [19:20:35]line D-ENERGY Дт-К-2 [19:20:35]line 25.910 * 77.20 [19:20:35]line = 2000.25 [19:20:35]line НДС 12% НСП 1% [19:20:35]line > о реализуемом товаре [19:20:35]line ОКРУГЛЕНИЕ: -0.25 [19:20:35]line ИТОГО: 2000.00 [19:20:35]line Внесено: 2000.00 [19:20:35]line СДАЧА: 0.00 [19:20:35]line НСП 1% : 17.70 [19:20:35]line НДС 12% : 212.42 [19:20:35]line Наличными: 2000.00 [19:20:35]line Безнал.: 0.00 [19:20:35]line Место: АЗС № 85 "Партнер Нефть" [19:20:35]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:20:35]line СНО: Общий режим [19:20:35]line Чек 366 20.10.2024 19:20 [19:20:35]line Смена: 193 ФФД: 1.0 [19:20:35]line ЗНМ: 0300000167 [19:20:35]line РНМ: 0000000000156251 [19:20:35]line Версия ККМ: v1.0 [19:20:35]line ФМ: 0000000000963346 [19:20:35]line ФД: 69521 [19:20:35]line ФПД: 225438812160722 [19:20:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192034&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69521&fm=225438812160722&tin=02508201610067®Number=0000000000156251&sum=200000 [19:20:36]OFD Sender: Processing packet 69521 [packets to send 18, broken 17] [19:20:36]ProducePacketName [19:20:36]name=ofd_packets/00069521 [19:20:36]OFD Sender: To server: pG, [19:20:36]CommunicateWithHost lk.salyk.kg:30040 [19:20:36]ConnectInit lk.salyk.kg [19:20:36]written 0, free lines is 4095 [19:20:36]Connected sock=10 [19:20:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 A5 D1 0D 01 35 F5 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 02 58 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 91 0F 01 00 35 04 06 00 CD 09 10 51 42 D2 D6 AF 61 3A AF EF 52 A6 [19:20:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 C8 47 47 00 68 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 91 0F 01 00 F4 03 04 00 A8 01 15 67 B6 04 01 00 00 D7 D5 90 CB A0 72 1D 74 [19:20:36]CommunicateWithHost err = 0 [19:20:36]CheckOFDResponse [19:20:36]1017 (14) - 77093643461234 [19:20:36]1041 (16) - 0000000000963346 [19:20:36]1040 (4) - 69521 [19:20:36]1012 (4) - 20.10.2024 13:12 [19:20:36]1206 (1) - 0 [19:20:36]OFD Sender: Remove packet 69521 [19:20:36]ProducePacketName [19:20:36]name=ofd_packets/00069521 [19:20:36]NVStorageDeleteData [19:20:36]Write to MH i2c: 01 00 00 8C 0C 98 [19:20:36]Write i2c OK [19:20:36]MH_I2C_Read... [19:20:36]Read from MH i2c: 01 [19:20:36]MH_I2C_Read... [19:20:36]Read from MH i2c: 01 07 00 [19:20:36]MH_I2C_Read... [19:20:36]Read from MH i2c: 01 07 00 8C 0C 00 00 00 00 00 02 0D AE [19:20:36]RasterBufferAndPrint [19:20:36]line [19:20:36]line [19:20:36]line [19:20:36]line [19:20:36]line [19:20:36]written 0, free lines is 3335 [19:20:36]MH_Cut [19:20:36]Write to MH i2c: D1 01 00 93 0C 01 71 [19:20:36]Write i2c OK [19:20:36]MH_I2C_Read... [19:20:36]Read from MH i2c: D1 [19:20:36]MH_I2C_Read... [19:20:36]Read from MH i2c: D1 01 00 [19:20:36]MH_I2C_Read... [19:20:36]Read from MH i2c: D1 01 00 93 0C 00 70 [19:20:36]Write to MH i2c: 01 00 00 94 0C A0 [19:20:36]Write i2c OK [19:20:36]MH_I2C_Read... [19:20:37]OFD Sender: No OFD packet to send [19:20:37]*** Cut start [19:20:37]*** Partial cut [19:20:37]*** CUTSNS_PIN = 1 [19:20:37]*** CUTSNS_PIN = 0 [19:20:37]*** Brake cut motor [19:20:38]Read from MH i2c: 01 [19:20:38]MH_I2C_Read... [19:20:38]*** Stop cut motor [19:20:38]*** Cut end [19:20:38]Read from MH i2c: 01 07 00 [19:20:38]MH_I2C_Read... [19:20:38]Read from MH i2c: 01 07 00 94 0C 00 00 00 00 00 FF 0F B5 [19:20:38]process_action close_receipt done [19:20:38]requested_data is exist [19:20:38]produce_requested_data [19:20:38]requested_item fm.sn is exist - process it [19:20:38]wFMCommunicate request_size=4 [19:20:38]MH_SAM_APDU [19:20:38]CAPDU: 80 11 00 00 [19:20:38]Write to MH i2c: E2 08 00 95 0C 80 11 00 00 00 00 00 00 1B [19:20:38]Write i2c OK [19:20:38]MH_I2C_Read... [19:20:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:38]Read from MH i2c: E2 [19:20:38]MH_I2C_Read... [19:20:38]Read from MH i2c: E2 17 00 [19:20:38]MH_I2C_Read... [19:20:38]Read from MH i2c: E2 17 00 95 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6D [19:20:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:20:38]wFMCommunicate OK [19:20:38]requested_item fd.num is exist - process it [19:20:38]SAM_PROTO_GetFieldsCounters [19:20:38]wFMCommunicate request_size=4 [19:20:38]MH_SAM_APDU [19:20:38]CAPDU: 80 13 00 00 [19:20:38]Write to MH i2c: E2 08 00 96 0C 80 13 00 00 00 00 00 00 1E [19:20:38]Write i2c OK [19:20:38]MH_I2C_Read... [19:20:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:20:38]Read from MH i2c: E2 [19:20:38]MH_I2C_Read... [19:20:38]Read from MH i2c: E2 62 00 [19:20:38]MH_I2C_Read... [19:20:38]Read from MH i2c: E2 62 00 96 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 91 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 6E 01 00 00 5E 04 04 00 6E 01 00 00 57 04 04 00 6F 01 00 00 19 04 04 00 00 00 00 00 90 00 E8 [19:20:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 91 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 6E 01 00 00 5E 04 04 00 6E 01 00 00 57 04 04 00 6F 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:20:38]wFMCommunicate OK [19:20:38]SAM_PROTO_GetFieldsCounters done [19:20:38]requested_item shift.num is exist - process it [19:20:38]requested_item shift.opened is exist - process it [19:20:38]req_shift_opened [19:20:38]FM_GetShiftState [19:20:38]SAM_PROTO_GetShiftState [19:20:38]wFMCommunicate request_size=4 [19:20:38]MH_SAM_APDU [19:20:38]CAPDU: 80 13 01 00 [19:20:38]Write to MH i2c: E2 08 00 97 0C 80 13 01 00 00 00 00 00 20 [19:20:38]Write i2c OK [19:20:38]MH_I2C_Read... [19:20:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:38]Read from MH i2c: E2 [19:20:38]MH_I2C_Read... [19:20:38]Read from MH i2c: E2 0E 00 [19:20:38]MH_I2C_Read... [19:20:38]Read from MH i2c: E2 0E 00 97 0C 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 26 [19:20:38]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:20:38]wFMCommunicate OK [19:20:38]SAM_PROTO_GetShiftState done [19:20:38]FM_GetShiftState done [19:20:38]req_shift_opened done [19:20:38]requested_item shift.open_date is exist - process it [19:20:38]req_shift_open_date [19:20:38]req_shift_open_date done [19:20:38]produce_requested_data done [19:20:38]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69521,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [19:20:38]process_action_free close_receipt [19:20:38]json_value_free [19:20:38]json_value_free done [19:20:38]process_json_proto returns [19:20:38]Send response to host [19:20:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69521,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [19:20:38]free response buf [19:20:38]execute_script done [19:20:38]execute_script returns [19:20:38]free content buf [19:20:38]Sock 9.Close socket [19:20:38]Sock 9.Thread stoped [19:20:42]OFD Sender: No OFD packet to send [19:20:47]OFD Sender: No OFD packet to send [19:20:52]OFD Sender: No OFD packet to send [19:20:57]OFD Sender: No OFD packet to send [19:21:02]OFD Sender: No OFD packet to send [19:21:07]OFD Sender: No OFD packet to send [19:21:12]OFD Sender: No OFD packet to send [19:21:17]OFD Sender: No OFD packet to send [19:21:22]OFD Sender: No OFD packet to send [19:21:27]OFD Sender: No OFD packet to send [19:21:32]OFD Sender: No OFD packet to send [19:21:37]OFD Sender: No OFD packet to send [19:21:42]OFD Sender: No OFD packet to send [19:21:47]OFD Sender: No OFD packet to send [19:21:52]OFD Sender: No OFD packet to send [19:21:57]OFD Sender: No OFD packet to send [19:22:02]OFD Sender: No OFD packet to send [19:22:07]OFD Sender: No OFD packet to send [19:22:12]OFD Sender: No OFD packet to send [19:22:17]OFD Sender: No OFD packet to send [19:22:22]OFD Sender: No OFD packet to send [19:22:27]OFD Sender: No OFD packet to send [19:22:32]OFD Sender: No OFD packet to send [19:22:37]OFD Sender: No OFD packet to send [19:22:42]OFD Sender: No OFD packet to send [19:22:47]OFD Sender: No OFD packet to send [19:22:52]OFD Sender: No OFD packet to send [19:22:57]OFD Sender: No OFD packet to send [19:23:02]OFD Sender: No OFD packet to send [19:23:07]OFD Sender: No OFD packet to send [19:23:12]OFD Sender: No OFD packet to send [19:23:17]OFD Sender: No OFD packet to send [19:23:22]OFD Sender: No OFD packet to send [19:23:27]OFD Sender: No OFD packet to send [19:23:32]OFD Sender: No OFD packet to send [19:23:37]OFD Sender: No OFD packet to send [19:23:42]OFD Sender: No OFD packet to send [19:23:47]OFD Sender: No OFD packet to send [19:23:52]OFD Sender: No OFD packet to send [19:23:57]OFD Sender: No OFD packet to send [19:24:02]OFD Sender: No OFD packet to send [19:24:07]OFD Sender: No OFD packet to send [19:24:12]OFD Sender: No OFD packet to send [19:24:17]OFD Sender: No OFD packet to send [19:24:22]OFD Sender: No OFD packet to send [19:24:27]OFD Sender: No OFD packet to send [19:24:32]OFD Sender: No OFD packet to send [19:24:37]OFD Sender: No OFD packet to send [19:24:42]OFD Sender: No OFD packet to send [19:24:47]OFD Sender: No OFD packet to send [19:24:52]OFD Sender: No OFD packet to send [19:24:57]OFD Sender: No OFD packet to send [19:25:02]OFD Sender: No OFD packet to send [19:25:07]OFD Sender: No OFD packet to send [19:25:12]OFD Sender: No OFD packet to send [19:25:17]OFD Sender: No OFD packet to send [19:25:22]OFD Sender: No OFD packet to send [19:25:27]OFD Sender: No OFD packet to send [19:25:32]OFD Sender: No OFD packet to send [19:25:37]OFD Sender: No OFD packet to send [19:25:42]OFD Sender: No OFD packet to send [19:25:47]OFD Sender: No OFD packet to send [19:25:52]OFD Sender: No OFD packet to send [19:25:57]OFD Sender: No OFD packet to send [19:26:02]OFD Sender: No OFD packet to send [19:26:07]OFD Sender: No OFD packet to send [19:26:12]OFD Sender: No OFD packet to send [19:26:17]OFD Sender: No OFD packet to send [19:26:22]OFD Sender: No OFD packet to send [19:26:27]OFD Sender: No OFD packet to send [19:26:32]OFD Sender: No OFD packet to send [19:26:34]accept exits with 7 [19:26:34]New connection [19:26:34]New thread 3066654052 created [19:26:34]Thread 3066797412 joined [19:26:34]Waiting for new connection... [19:26:34] Sock 7.Parse request [19:26:34]Sock 7.Check first char [19:26:34]Sock 7.First char is OK [19:26:34]request: POST /json_proto HTTP/1.0 [19:26:34]Method: POST [19:26:34]URL: /json_proto [19:26:34]Method is POST - this is cgi request [19:26:34]url: /json_proto [19:26:34]query_string will be loaded in cgi processing [19:26:34]execute_cgi json_proto POST (null) [19:26:34]execute_cgi path=json_proto method=POST [19:26:34]POST find Content-Length [19:26:34]Host: 172.17.50.3:8080 [19:26:34]Content-Length: 683 [19:26:34]Content-Type: application/json [19:26:34] [19:26:34]POST finish read [19:26:34]Found Content-Length = 683 [19:26:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:34]execute_script... [19:26:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:34]POST & json_proto [19:26:34]process_json_proto [19:26:34]json parsed OK: [19:26:34]protocol is kg_v1.0 [19:26:34]action value=close_receipt [19:26:34]process_action close_receipt [19:26:34]cmd_close_receipt [19:26:34]MH_GetDate [19:26:34]Write to MH i2c: F0 00 00 98 0C 93 [19:26:34]Write i2c OK [19:26:34]MH_I2C_Read... [19:26:34]Read from MH i2c: F0 [19:26:34]MH_I2C_Read... [19:26:34]Read from MH i2c: F0 09 00 [19:26:34]MH_I2C_Read... [19:26:34]Read from MH i2c: F0 09 00 98 0C 00 6B 59 15 67 6B 98 1E 66 63 [19:26:34]GetLastDocTimeStamp 1729452034 [19:26:34]current date 1729452395 [19:26:34]FM_GetShiftState [19:26:34]SAM_PROTO_GetShiftState [19:26:34]wFMCommunicate request_size=4 [19:26:34]MH_SAM_APDU [19:26:34]CAPDU: 80 13 01 00 [19:26:34]Write to MH i2c: E2 08 00 99 0C 80 13 01 00 00 00 00 00 22 [19:26:34]Write i2c OK [19:26:34]MH_I2C_Read... [19:26:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:34]Read from MH i2c: E2 [19:26:34]MH_I2C_Read... [19:26:34]Read from MH i2c: E2 0E 00 [19:26:34]MH_I2C_Read... [19:26:34]Read from MH i2c: E2 0E 00 99 0C 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 28 [19:26:34]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:26:34]wFMCommunicate OK [19:26:34]SAM_PROTO_GetShiftState done [19:26:34]FM_GetShiftState done [19:26:34]opened in 1729383220 [19:26:34]opened+sec_in_day 1729469620 [19:26:34]quantity*price = 100021 [19:26:34]sum+1 = 100023 [19:26:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 367 20.10.2024 19:26 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69522 ФПД: 169768503179744 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192635&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69522&fm=169768503179744&tin=02508201610067®Number=0000000000156251&sum=100000 [19:26:35]StoreToDocumentArchive [19:26:35]shift 193 fd 69522 [19:26:35]save to /storage/0193/doc_00069522 [19:26:35]save last doc name /storage/0193/doc_00069522 to /storage/kkm_last_doc_name [19:26:35]save OK [19:26:35]Clear old archive folders... [19:26:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:26:35]tlvbuf is 00F16E40 [19:26:35]SAM_PROTO_ClearQueue [19:26:35]wFMCommunicate request_size=4 [19:26:35]MH_SAM_APDU [19:26:35]CAPDU: 80 09 00 00 [19:26:35]Write to MH i2c: E2 08 00 A6 0C 80 09 00 00 00 00 00 00 24 [19:26:35]Write i2c OK [19:26:35]MH_I2C_Read... [19:26:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:26:35]Read from MH i2c: E2 [19:26:35]MH_I2C_Read... [19:26:35]Read from MH i2c: E2 03 00 [19:26:35]MH_I2C_Read... [19:26:35]Read from MH i2c: E2 03 00 A6 0C 00 90 00 26 [19:26:35]RAPDU: 90 00 [19:26:35]wFMCommunicate OK [19:26:35]SAM_PROTO_ClearQueue done [19:26:35]KKMCreateOFDPacket [19:26:35]OFDProtocolAddRootSTLVToBuf [19:26:35]FM_MakeSignedData [19:26:35]FM_MakeSignedData [19:26:35]SAM_PROTO_SignData [19:26:35]wFMCommunicate request_size=4 [19:26:35]MH_SAM_APDU [19:26:35]CAPDU: 80 0D 01 02 [19:26:35]Write to MH i2c: E2 08 00 A7 0C 80 0D 01 02 00 00 00 00 2C [19:26:35]Write i2c OK [19:26:35]MH_I2C_Read... [19:26:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:26:36]Read from MH i2c: E2 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: E2 03 00 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: E2 03 00 A7 0C 00 90 00 27 [19:26:36]RAPDU: 90 00 [19:26:36]wFMCommunicate OK [19:26:36]wFMCommunicate request_size=255 [19:26:36]MH_SAM_APDU [19:26:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 6B 59 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 92 0F 01 00 35 04 06 00 9A [19:26:36]Write to MH i2c: E2 02 01 A8 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 6B 59 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 92 0F 01 00 35 04 06 00 9A 00 00 7F [19:26:36]Write i2c OK [19:26:36]MH_I2C_Read... [19:26:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:36]Read from MH i2c: E2 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: E2 03 00 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: E2 03 00 A8 0C 00 90 00 28 [19:26:36]RAPDU: 90 00 [19:26:36]wFMCommunicate OK [19:26:36]wFMCommunicate request_size=10 [19:26:36]MH_SAM_APDU [19:26:36]CAPDU: 80 0D 02 02 05 67 4F 53 79 E0 [19:26:36]Write to MH i2c: E2 0D 00 A9 0C 80 0D 02 02 05 00 67 4F 53 79 E0 00 00 9B [19:26:36]Write i2c OK [19:26:36]MH_I2C_Read... [19:26:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:36]Read from MH i2c: E2 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: E2 03 00 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: E2 03 00 A9 0C 00 90 00 29 [19:26:36]RAPDU: 90 00 [19:26:36]wFMCommunicate OK [19:26:36]wFMCommunicate request_size=4 [19:26:36]MH_SAM_APDU [19:26:36]CAPDU: 80 0D 03 02 [19:26:36]Write to MH i2c: E2 08 00 AA 0C 80 0D 03 02 00 00 00 00 31 [19:26:36]Write i2c OK [19:26:36]MH_I2C_Read... [19:26:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:26:36]Read from MH i2c: E2 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: E2 0B 00 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: E2 0B 00 AA 0C 00 83 24 D7 BE 9B CB FD 77 90 00 48 [19:26:36]RAPDU: 83 24 D7 BE 9B CB FD 77 90 00 [19:26:36]wFMCommunicate OK [19:26:36]SAM_PROTO_SignData done [19:26:36]FM_MakeSignedData done [19:26:36]CreateOFDProtocolMessage [19:26:36]wFMCommunicate request_size=4 [19:26:36]MH_SAM_APDU [19:26:36]CAPDU: 80 11 00 00 [19:26:36]Write to MH i2c: E2 08 00 AB 0C 80 11 00 00 00 00 00 00 31 [19:26:36]Write i2c OK [19:26:36]MH_I2C_Read... [19:26:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:36]Read from MH i2c: E2 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: E2 17 00 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: E2 17 00 AB 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 83 [19:26:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:26:36]wFMCommunicate OK [19:26:36]CreateOFDProtocolMessage done [19:26:36]OFDSenderStorePacket 69522 [19:26:36]StoreOFDPacket docnum=69522 [19:26:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 5E D2 07 01 6E 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 6B 59 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 92 0F 01 00 35 04 06 00 9A 67 4F 53 79 E0 83 24 D7 BE 9B CB FD 77 [19:26:36]CheckFolder [19:26:36]dirname=/storage/ofd_packets [19:26:36]CheckFolder done [19:26:36]ProducePacketName [19:26:36]name=ofd_packets/00069522 [19:26:36]NVStorageSaveData ofd_packets/00069522 [19:26:36]File name is /storage/ofd_packets/00069522 [19:26:36]Write 301 bytes [19:26:36]NVStorageSaveData done [19:26:36]OFDSenderStorePacket done [19:26:36]KKMCreateOFDPacket done [19:26:36]NVStorageSaveData kkm_last_timestamp [19:26:36]File name is /storage/kkm_last_timestamp [19:26:36]Write 4 bytes [19:26:36]NVStorageSaveData done [19:26:36]ExternCall_PrintAddStr [19:26:36]wPrintStart [19:26:36]Write to MH i2c: 01 00 00 AC 0C B8 [19:26:36]Write i2c OK [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: 01 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: 01 07 00 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: 01 07 00 AC 0C 00 00 00 00 00 FF 0F CD [19:26:36]RasterBufferAndPrint [19:26:36]line Счет N : (1)2885262 [19:26:36]line ИНН: 02508201610067 [19:26:36]line Контрольно-Кассовый Чек [19:26:36]line ПРОДАЖА [19:26:36]line ТРК (МРК, ГНК) : 33 [19:26:36]line Товар: 2710124500 [19:26:36]line Аи-95-К-5 [19:26:36]line 13.480 * 74.20 [19:26:36]line = 1000.22 [19:26:36]line НДС 12% НСП 1% [19:26:36]line > о реализуемом товаре [19:26:36]line ОКРУГЛЕНИЕ: -0.22 [19:26:36]line ИТОГО: 1000.00 [19:26:36]line Внесено: 1000.00 [19:26:36]line СДАЧА: 0.00 [19:26:36]line НСП 1% : 8.85 [19:26:36]line НДС 12% : 106.22 [19:26:36]line Наличными: 1000.00 [19:26:36]line Безнал.: 0.00 [19:26:36]line Место: АЗС № 85 "Партнер Нефть" [19:26:36]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:26:36]line СНО: Общий режим [19:26:36]line Чек 367 20.10.2024 19:26 [19:26:36]line Смена: 193 ФФД: 1.0 [19:26:36]line ЗНМ: 0300000167 [19:26:36]line РНМ: 0000000000156251 [19:26:36]line Версия ККМ: v1.0 [19:26:36]line ФМ: 0000000000963346 [19:26:36]line ФД: 69522 [19:26:36]line ФПД: 169768503179744 [19:26:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192635&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69522&fm=169768503179744&tin=02508201610067®Number=0000000000156251&sum=100000 [19:26:36]OFD Sender: Processing packet 69522 [packets to send 18, broken 17] [19:26:36]ProducePacketName [19:26:36]name=ofd_packets/00069522 [19:26:36]OFD Sender: To server: pG, [19:26:36]CommunicateWithHost lk.salyk.kg:30040 [19:26:36]ConnectInit lk.salyk.kg [19:26:36]written 0, free lines is 4095 [19:26:36]Connected sock=10 [19:26:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 5E D2 07 01 6E 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 6B 59 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 92 0F 01 00 35 04 06 00 9A 67 4F 53 79 E0 83 24 D7 BE 9B CB FD 77 [19:26:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 78 92 47 00 D1 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 92 0F 01 00 F4 03 04 00 11 03 15 67 B6 04 01 00 00 38 D2 35 03 54 7E BA FE [19:26:37]CommunicateWithHost err = 0 [19:26:37]CheckOFDResponse [19:26:37]1017 (14) - 77093643461234 [19:26:37]1041 (16) - 0000000000963346 [19:26:37]1040 (4) - 69522 [19:26:37]1012 (4) - 20.10.2024 13:18 [19:26:37]1206 (1) - 0 [19:26:37]OFD Sender: Remove packet 69522 [19:26:37]ProducePacketName [19:26:37]name=ofd_packets/00069522 [19:26:37]NVStorageDeleteData [19:26:37]Write to MH i2c: 01 00 00 D7 0C E3 [19:26:37]Write i2c OK [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: 01 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: 01 07 00 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: 01 07 00 D7 0C 00 00 00 00 00 F2 0C E8 [19:26:37]RasterBufferAndPrint [19:26:37]line [19:26:37]line [19:26:37]line [19:26:37]line [19:26:37]line [19:26:37]written 0, free lines is 3320 [19:26:37]MH_Cut [19:26:37]Write to MH i2c: D1 01 00 DE 0C 01 BC [19:26:37]Write i2c OK [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: D1 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: D1 01 00 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: D1 01 00 DE 0C 00 BB [19:26:37]Write to MH i2c: 01 00 00 DF 0C EB [19:26:37]Write i2c OK [19:26:37]MH_I2C_Read... [19:26:37]OFD Sender: No OFD packet to send [19:26:37]*** Cut start [19:26:37]*** Partial cut [19:26:37]*** CUTSNS_PIN = 1 [19:26:37]*** CUTSNS_PIN = 0 [19:26:38]*** Brake cut motor [19:26:38]Read from MH i2c: 01 [19:26:38]MH_I2C_Read... [19:26:38]*** Stop cut motor [19:26:38]*** Cut end [19:26:38]Read from MH i2c: 01 07 00 [19:26:38]MH_I2C_Read... [19:26:38]Read from MH i2c: 01 07 00 DF 0C 00 00 00 00 00 FF 0F 00 [19:26:38]process_action close_receipt done [19:26:38]requested_data is exist [19:26:38]produce_requested_data [19:26:38]requested_item fm.sn is exist - process it [19:26:38]wFMCommunicate request_size=4 [19:26:38]MH_SAM_APDU [19:26:38]CAPDU: 80 11 00 00 [19:26:38]Write to MH i2c: E2 08 00 E0 0C 80 11 00 00 00 00 00 00 66 [19:26:38]Write i2c OK [19:26:38]MH_I2C_Read... [19:26:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:38]Read from MH i2c: E2 [19:26:38]MH_I2C_Read... [19:26:38]Read from MH i2c: E2 17 00 [19:26:38]MH_I2C_Read... [19:26:38]Read from MH i2c: E2 17 00 E0 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B8 [19:26:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:26:38]wFMCommunicate OK [19:26:38]requested_item fd.num is exist - process it [19:26:38]SAM_PROTO_GetFieldsCounters [19:26:38]wFMCommunicate request_size=4 [19:26:38]MH_SAM_APDU [19:26:38]CAPDU: 80 13 00 00 [19:26:38]Write to MH i2c: E2 08 00 E1 0C 80 13 00 00 00 00 00 00 69 [19:26:38]Write i2c OK [19:26:38]MH_I2C_Read... [19:26:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:26:38]Read from MH i2c: E2 [19:26:38]MH_I2C_Read... [19:26:38]Read from MH i2c: E2 62 00 [19:26:38]MH_I2C_Read... [19:26:38]Read from MH i2c: E2 62 00 E1 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 92 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 6F 01 00 00 5E 04 04 00 6F 01 00 00 57 04 04 00 70 01 00 00 19 04 04 00 00 00 00 00 90 00 37 [19:26:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 92 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 6F 01 00 00 5E 04 04 00 6F 01 00 00 57 04 04 00 70 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:26:38]wFMCommunicate OK [19:26:38]SAM_PROTO_GetFieldsCounters done [19:26:38]requested_item shift.num is exist - process it [19:26:38]requested_item shift.opened is exist - process it [19:26:38]req_shift_opened [19:26:38]FM_GetShiftState [19:26:38]SAM_PROTO_GetShiftState [19:26:38]wFMCommunicate request_size=4 [19:26:38]MH_SAM_APDU [19:26:38]CAPDU: 80 13 01 00 [19:26:38]Write to MH i2c: E2 08 00 E2 0C 80 13 01 00 00 00 00 00 6B [19:26:38]Write i2c OK [19:26:38]MH_I2C_Read... [19:26:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:38]Read from MH i2c: E2 [19:26:38]MH_I2C_Read... [19:26:38]Read from MH i2c: E2 0E 00 [19:26:38]MH_I2C_Read... [19:26:38]Read from MH i2c: E2 0E 00 E2 0C 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 71 [19:26:38]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:26:38]wFMCommunicate OK [19:26:38]SAM_PROTO_GetShiftState done [19:26:38]FM_GetShiftState done [19:26:38]req_shift_opened done [19:26:38]requested_item shift.open_date is exist - process it [19:26:38]req_shift_open_date [19:26:38]req_shift_open_date done [19:26:38]produce_requested_data done [19:26:38]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69522,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [19:26:38]process_action_free close_receipt [19:26:38]json_value_free [19:26:38]json_value_free done [19:26:38]process_json_proto returns [19:26:38]Send response to host [19:26:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69522,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [19:26:38]free response buf [19:26:38]execute_script done [19:26:38]execute_script returns [19:26:38]free content buf [19:26:38]Sock 7.Close socket [19:26:38]Sock 7.Thread stoped [19:26:42]OFD Sender: No OFD packet to send [19:26:47]OFD Sender: No OFD packet to send [19:26:52]OFD Sender: No OFD packet to send [19:26:57]OFD Sender: No OFD packet to send [19:27:02]OFD Sender: No OFD packet to send [19:27:07]OFD Sender: No OFD packet to send [19:27:12]OFD Sender: No OFD packet to send [19:27:17]OFD Sender: No OFD packet to send [19:27:22]OFD Sender: No OFD packet to send [19:27:27]OFD Sender: No OFD packet to send [19:27:32]OFD Sender: No OFD packet to send [19:27:37]OFD Sender: No OFD packet to send [19:27:42]OFD Sender: No OFD packet to send [19:27:47]OFD Sender: No OFD packet to send [19:27:52]OFD Sender: No OFD packet to send [19:27:57]OFD Sender: No OFD packet to send [19:28:02]OFD Sender: No OFD packet to send [19:28:07]OFD Sender: No OFD packet to send [19:28:12]OFD Sender: No OFD packet to send [19:28:17]OFD Sender: No OFD packet to send [19:28:22]OFD Sender: No OFD packet to send [19:28:27]OFD Sender: No OFD packet to send [19:28:32]OFD Sender: No OFD packet to send [19:28:37]OFD Sender: No OFD packet to send [19:28:42]OFD Sender: No OFD packet to send [19:28:47]OFD Sender: No OFD packet to send [19:28:52]OFD Sender: No OFD packet to send [19:28:57]OFD Sender: No OFD packet to send [19:29:02]OFD Sender: No OFD packet to send [19:29:07]OFD Sender: No OFD packet to send [19:29:12]OFD Sender: No OFD packet to send [19:29:17]OFD Sender: No OFD packet to send [19:29:22]OFD Sender: No OFD packet to send [19:29:26]accept exits with 9 [19:29:26]New connection [19:29:26]New thread 3066797412 created [19:29:26]Thread 3066654052 joined [19:29:26]Waiting for new connection... [19:29:26] Sock 9.Parse request [19:29:26]Sock 9.Check first char [19:29:26]Sock 9.First char is OK [19:29:26]request: POST /json_proto HTTP/1.0 [19:29:26]Method: POST [19:29:26]URL: /json_proto [19:29:26]Method is POST - this is cgi request [19:29:26]url: /json_proto [19:29:26]query_string will be loaded in cgi processing [19:29:26]execute_cgi json_proto POST (null) [19:29:26]execute_cgi path=json_proto method=POST [19:29:26]POST find Content-Length [19:29:26]Host: 172.17.50.3:8080 [19:29:26]Content-Length: 683 [19:29:26]Content-Type: application/json [19:29:26] [19:29:26]POST finish read [19:29:26]Found Content-Length = 683 [19:29:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:29:26]execute_script... [19:29:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:29:26]POST & json_proto [19:29:26]process_json_proto [19:29:26]json parsed OK: [19:29:26]protocol is kg_v1.0 [19:29:26]action value=close_receipt [19:29:26]process_action close_receipt [19:29:26]cmd_close_receipt [19:29:26]MH_GetDate [19:29:26]Write to MH i2c: F0 00 00 E3 0C DE [19:29:26]Write i2c OK [19:29:26]MH_I2C_Read... [19:29:26]Read from MH i2c: F0 [19:29:26]MH_I2C_Read... [19:29:26]Read from MH i2c: F0 09 00 [19:29:26]MH_I2C_Read... [19:29:26]Read from MH i2c: F0 09 00 E3 0C 00 17 5A 15 67 6B 98 1E 66 5B [19:29:26]GetLastDocTimeStamp 1729452395 [19:29:26]current date 1729452567 [19:29:26]FM_GetShiftState [19:29:26]SAM_PROTO_GetShiftState [19:29:26]wFMCommunicate request_size=4 [19:29:26]MH_SAM_APDU [19:29:26]CAPDU: 80 13 01 00 [19:29:26]Write to MH i2c: E2 08 00 E4 0C 80 13 01 00 00 00 00 00 6D [19:29:26]Write i2c OK [19:29:26]MH_I2C_Read... [19:29:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:27]Read from MH i2c: E2 [19:29:27]MH_I2C_Read... [19:29:27]Read from MH i2c: E2 0E 00 [19:29:27]MH_I2C_Read... [19:29:27]Read from MH i2c: E2 0E 00 E4 0C 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 73 [19:29:27]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:29:27]wFMCommunicate OK [19:29:27]SAM_PROTO_GetShiftState done [19:29:27]FM_GetShiftState done [19:29:27]opened in 1729383220 [19:29:27]opened+sec_in_day 1729469620 [19:29:27]quantity*price = 200043 [19:29:27]sum+1 = 200044 [19:29:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 368 20.10.2024 19:29 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69523 ФПД: 84921881642911 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192927&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69523&fm=84921881642911&tin=02508201610067®Number=0000000000156251&sum=200000 [19:29:28]StoreToDocumentArchive [19:29:28]shift 193 fd 69523 [19:29:28]save to /storage/0193/doc_00069523 [19:29:28]save last doc name /storage/0193/doc_00069523 to /storage/kkm_last_doc_name [19:29:28]save OK [19:29:28]Clear old archive folders... [19:29:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:29:28]tlvbuf is 00F0DE00 [19:29:28]SAM_PROTO_ClearQueue [19:29:28]wFMCommunicate request_size=4 [19:29:28]MH_SAM_APDU [19:29:28]CAPDU: 80 09 00 00 [19:29:28]Write to MH i2c: E2 08 00 F1 0C 80 09 00 00 00 00 00 00 6F [19:29:28]Write i2c OK [19:29:28]MH_I2C_Read... [19:29:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:29:28]Read from MH i2c: E2 [19:29:28]MH_I2C_Read... [19:29:28]Read from MH i2c: E2 03 00 [19:29:28]MH_I2C_Read... [19:29:28]Read from MH i2c: E2 03 00 F1 0C 00 90 00 71 [19:29:28]RAPDU: 90 00 [19:29:28]wFMCommunicate OK [19:29:28]SAM_PROTO_ClearQueue done [19:29:28]KKMCreateOFDPacket [19:29:28]OFDProtocolAddRootSTLVToBuf [19:29:28]FM_MakeSignedData [19:29:28]FM_MakeSignedData [19:29:28]SAM_PROTO_SignData [19:29:28]wFMCommunicate request_size=4 [19:29:28]MH_SAM_APDU [19:29:28]CAPDU: 80 0D 01 02 [19:29:28]Write to MH i2c: E2 08 00 F2 0C 80 0D 01 02 00 00 00 00 77 [19:29:28]Write i2c OK [19:29:28]MH_I2C_Read... [19:29:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:29:28]Read from MH i2c: E2 [19:29:28]MH_I2C_Read... [19:29:28]Read from MH i2c: E2 03 00 [19:29:28]MH_I2C_Read... [19:29:28]Read from MH i2c: E2 03 00 F2 0C 00 90 00 72 [19:29:28]RAPDU: 90 00 [19:29:28]wFMCommunicate OK [19:29:28]wFMCommunicate request_size=255 [19:29:28]MH_SAM_APDU [19:29: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 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 17 5A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 93 0F 01 00 35 04 06 00 4D [19:29:28]Write to MH i2c: E2 02 01 F3 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 17 5A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 93 0F 01 00 35 04 06 00 4D 00 00 B7 [19:29:28]Write i2c OK [19:29:28]MH_I2C_Read... [19:29:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:28]Read from MH i2c: E2 [19:29:28]MH_I2C_Read... [19:29:28]Read from MH i2c: E2 03 00 [19:29:28]MH_I2C_Read... [19:29:28]Read from MH i2c: E2 03 00 F3 0C 00 90 00 73 [19:29:28]RAPDU: 90 00 [19:29:28]wFMCommunicate OK [19:29:28]wFMCommunicate request_size=10 [19:29:28]MH_SAM_APDU [19:29:28]CAPDU: 80 0D 02 02 05 3C 6A 96 C7 9F [19:29:28]Write to MH i2c: E2 0D 00 F4 0C 80 0D 02 02 05 00 3C 6A 96 C7 9F 00 00 26 [19:29:28]Write i2c OK [19:29:28]MH_I2C_Read... [19:29:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:28]Read from MH i2c: E2 [19:29:28]MH_I2C_Read... [19:29:28]Read from MH i2c: E2 03 00 [19:29:28]MH_I2C_Read... [19:29:28]Read from MH i2c: E2 03 00 F4 0C 00 90 00 74 [19:29:28]RAPDU: 90 00 [19:29:28]wFMCommunicate OK [19:29:28]wFMCommunicate request_size=4 [19:29:28]MH_SAM_APDU [19:29:28]CAPDU: 80 0D 03 02 [19:29:28]Write to MH i2c: E2 08 00 F5 0C 80 0D 03 02 00 00 00 00 7C [19:29:28]Write i2c OK [19:29:28]MH_I2C_Read... [19:29:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:29:28]Read from MH i2c: E2 [19:29:28]MH_I2C_Read... [19:29:28]Read from MH i2c: E2 0B 00 [19:29:28]MH_I2C_Read... [19:29:28]Read from MH i2c: E2 0B 00 F5 0C 00 25 E4 0E C1 54 12 B7 3E 90 00 B0 [19:29:28]RAPDU: 25 E4 0E C1 54 12 B7 3E 90 00 [19:29:28]wFMCommunicate OK [19:29:28]SAM_PROTO_SignData done [19:29:28]FM_MakeSignedData done [19:29:28]CreateOFDProtocolMessage [19:29:28]wFMCommunicate request_size=4 [19:29:28]MH_SAM_APDU [19:29:28]CAPDU: 80 11 00 00 [19:29:28]Write to MH i2c: E2 08 00 F6 0C 80 11 00 00 00 00 00 00 7C [19:29:28]Write i2c OK [19:29:28]MH_I2C_Read... [19:29:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:28]Read from MH i2c: E2 [19:29:28]MH_I2C_Read... [19:29:28]Read from MH i2c: E2 17 00 [19:29:28]MH_I2C_Read... [19:29:28]Read from MH i2c: E2 17 00 F6 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CE [19:29:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:29:28]wFMCommunicate OK [19:29:28]CreateOFDProtocolMessage done [19:29:28]OFDSenderStorePacket 69523 [19:29:28]StoreOFDPacket docnum=69523 [19:29:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 B1 BA 07 01 74 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 17 5A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 93 0F 01 00 35 04 06 00 4D 3C 6A 96 C7 9F 25 E4 0E C1 54 12 B7 3E [19:29:28]CheckFolder [19:29:28]dirname=/storage/ofd_packets [19:29:28]CheckFolder done [19:29:28]ProducePacketName [19:29:28]name=ofd_packets/00069523 [19:29:28]NVStorageSaveData ofd_packets/00069523 [19:29:28]File name is /storage/ofd_packets/00069523 [19:29:28]Write 301 bytes [19:29:28]NVStorageSaveData done [19:29:28]OFDSenderStorePacket done [19:29:28]KKMCreateOFDPacket done [19:29:28]NVStorageSaveData kkm_last_timestamp [19:29:28]File name is /storage/kkm_last_timestamp [19:29:28]Write 4 bytes [19:29:28]NVStorageSaveData done [19:29:28]ExternCall_PrintAddStr [19:29:28]wPrintStart [19:29:28]Write to MH i2c: 01 00 00 F7 0C 03 [19:29:28]Write i2c OK [19:29:28]MH_I2C_Read... [19:29:28]Read from MH i2c: 01 [19:29:28]MH_I2C_Read... [19:29:28]Read from MH i2c: 01 07 00 [19:29:28]MH_I2C_Read... [19:29:28]Read from MH i2c: 01 07 00 F7 0C 00 00 00 00 00 FF 0F 18 [19:29:28]RasterBufferAndPrint [19:29:28]line Счет N : (1)2885263 [19:29:28]line ИНН: 02508201610067 [19:29:28]line Контрольно-Кассовый Чек [19:29:28]line ПРОДАЖА [19:29:28]line ТРК (МРК, ГНК) : 13 [19:29:28]line Товар: 2710124500 [19:29:28]line Аи-95-К-5 [19:29:28]line 26.960 * 74.20 [19:29:28]line = 2000.43 [19:29:28]line НДС 12% НСП 1% [19:29:28]line > о реализуемом товаре [19:29:28]line ОКРУГЛЕНИЕ: -0.43 [19:29:28]line ИТОГО: 2000.00 [19:29:28]line Внесено: 2000.00 [19:29:28]line СДАЧА: 0.00 [19:29:28]line НСП 1% : 17.70 [19:29:28]line НДС 12% : 212.43 [19:29:28]line Наличными: 2000.00 [19:29:28]line Безнал.: 0.00 [19:29:28]line Место: АЗС № 85 "Партнер Нефть" [19:29:28]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:29:28]line СНО: Общий режим [19:29:28]line Чек 368 20.10.2024 19:29 [19:29:28]line Смена: 193 ФФД: 1.0 [19:29:28]line ЗНМ: 0300000167 [19:29:28]line РНМ: 0000000000156251 [19:29:28]line Версия ККМ: v1.0 [19:29:28]line ФМ: 0000000000963346 [19:29:28]line ФД: 69523 [19:29:28]line ФПД: 84921881642911 [19:29:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192927&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69523&fm=84921881642911&tin=02508201610067®Number=0000000000156251&sum=200000 [19:29:29]OFD Sender: Processing packet 69523 [packets to send 18, broken 17] [19:29:29]ProducePacketName [19:29:29]name=ofd_packets/00069523 [19:29:29]OFD Sender: To server: pG, [19:29:29]CommunicateWithHost lk.salyk.kg:30040 [19:29:29]ConnectInit lk.salyk.kg [19:29:29]written 0, free lines is 4095 [19:29:29]Connected sock=10 [19:29:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 B1 BA 07 01 74 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 17 5A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 93 0F 01 00 35 04 06 00 4D 3C 6A 96 C7 9F 25 E4 0E C1 54 12 B7 3E [19:29:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 A4 2B 47 00 A4 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 93 0F 01 00 F4 03 04 00 BD 03 15 67 B6 04 01 00 00 F9 E5 96 2A FA EE 0F AE [19:29:29]CommunicateWithHost err = 0 [19:29:29]CheckOFDResponse [19:29:29]1017 (14) - 77093643461234 [19:29:29]1041 (16) - 0000000000963346 [19:29:29]1040 (4) - 69523 [19:29:29]1012 (4) - 20.10.2024 13:21 [19:29:29]1206 (1) - 0 [19:29:29]OFD Sender: Remove packet 69523 [19:29:29]ProducePacketName [19:29:29]name=ofd_packets/00069523 [19:29:29]NVStorageDeleteData [19:29:29]Write to MH i2c: 01 00 00 22 0D 2F [19:29:29]Write i2c OK [19:29:29]MH_I2C_Read... [19:29:29]Read from MH i2c: 01 [19:29:29]MH_I2C_Read... [19:29:29]Read from MH i2c: 01 07 00 [19:29:29]MH_I2C_Read... [19:29:29]Read from MH i2c: 01 07 00 22 0D 00 00 00 00 00 F0 0C 32 [19:29:29]RasterBufferAndPrint [19:29:29]line [19:29:29]line [19:29:29]line [19:29:29]line [19:29:29]line [19:29:29]written 0, free lines is 3319 [19:29:29]MH_Cut [19:29:29]Write to MH i2c: D1 01 00 29 0D 01 08 [19:29:29]Write i2c OK [19:29:29]MH_I2C_Read... [19:29:29]Read from MH i2c: D1 [19:29:29]MH_I2C_Read... [19:29:29]Read from MH i2c: D1 01 00 [19:29:29]MH_I2C_Read... [19:29:29]Read from MH i2c: D1 01 00 29 0D 00 07 [19:29:29]Write to MH i2c: 01 00 00 2A 0D 37 [19:29:29]Write i2c OK [19:29:29]MH_I2C_Read... [19:29:29]OFD Sender: No OFD packet to send [19:29:30]*** Cut start [19:29:30]*** Partial cut [19:29:30]*** CUTSNS_PIN = 1 [19:29:30]*** CUTSNS_PIN = 0 [19:29:30]*** Brake cut motor [19:29:30]Read from MH i2c: 01 [19:29:30]MH_I2C_Read... [19:29:30]*** Stop cut motor [19:29:30]*** Cut end [19:29:30]Read from MH i2c: 01 07 00 [19:29:30]MH_I2C_Read... [19:29:30]Read from MH i2c: 01 07 00 2A 0D 00 00 00 00 00 FF 0F 4C [19:29:30]process_action close_receipt done [19:29:30]requested_data is exist [19:29:30]produce_requested_data [19:29:30]requested_item fm.sn is exist - process it [19:29:30]wFMCommunicate request_size=4 [19:29:30]MH_SAM_APDU [19:29:30]CAPDU: 80 11 00 00 [19:29:30]Write to MH i2c: E2 08 00 2B 0D 80 11 00 00 00 00 00 00 B2 [19:29:30]Write i2c OK [19:29:30]MH_I2C_Read... [19:29:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:30]Read from MH i2c: E2 [19:29:30]MH_I2C_Read... [19:29:30]Read from MH i2c: E2 17 00 [19:29:30]MH_I2C_Read... [19:29:30]Read from MH i2c: E2 17 00 2B 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 04 [19:29:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:29:30]wFMCommunicate OK [19:29:30]requested_item fd.num is exist - process it [19:29:30]SAM_PROTO_GetFieldsCounters [19:29:30]wFMCommunicate request_size=4 [19:29:30]MH_SAM_APDU [19:29:30]CAPDU: 80 13 00 00 [19:29:30]Write to MH i2c: E2 08 00 2C 0D 80 13 00 00 00 00 00 00 B5 [19:29:30]Write i2c OK [19:29:30]MH_I2C_Read... [19:29:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:29:30]Read from MH i2c: E2 [19:29:30]MH_I2C_Read... [19:29:30]Read from MH i2c: E2 62 00 [19:29:30]MH_I2C_Read... [19:29:30]Read from MH i2c: E2 62 00 2C 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 93 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 70 01 00 00 5E 04 04 00 70 01 00 00 57 04 04 00 71 01 00 00 19 04 04 00 00 00 00 00 90 00 87 [19:29:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 93 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 70 01 00 00 5E 04 04 00 70 01 00 00 57 04 04 00 71 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:29:31]wFMCommunicate OK [19:29:31]SAM_PROTO_GetFieldsCounters done [19:29:31]requested_item shift.num is exist - process it [19:29:31]requested_item shift.opened is exist - process it [19:29:31]req_shift_opened [19:29:31]FM_GetShiftState [19:29:31]SAM_PROTO_GetShiftState [19:29:31]wFMCommunicate request_size=4 [19:29:31]MH_SAM_APDU [19:29:31]CAPDU: 80 13 01 00 [19:29:31]Write to MH i2c: E2 08 00 2D 0D 80 13 01 00 00 00 00 00 B7 [19:29:31]Write i2c OK [19:29:31]MH_I2C_Read... [19:29:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:31]Read from MH i2c: E2 [19:29:31]MH_I2C_Read... [19:29:31]Read from MH i2c: E2 0E 00 [19:29:31]MH_I2C_Read... [19:29:31]Read from MH i2c: E2 0E 00 2D 0D 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 BD [19:29:31]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:29:31]wFMCommunicate OK [19:29:31]SAM_PROTO_GetShiftState done [19:29:31]FM_GetShiftState done [19:29:31]req_shift_opened done [19:29:31]requested_item shift.open_date is exist - process it [19:29:31]req_shift_open_date [19:29:31]req_shift_open_date done [19:29:31]produce_requested_data done [19:29:31]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69523,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [19:29:31]process_action_free close_receipt [19:29:31]json_value_free [19:29:31]json_value_free done [19:29:31]process_json_proto returns [19:29:31]Send response to host [19:29:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69523,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [19:29:31]free response buf [19:29:31]execute_script done [19:29:31]execute_script returns [19:29:31]free content buf [19:29:31]Sock 9.Close socket [19:29:31]Sock 9.Thread stoped [19:29:34]OFD Sender: No OFD packet to send [19:29:39]OFD Sender: No OFD packet to send [19:29:44]OFD Sender: No OFD packet to send [19:29:49]OFD Sender: No OFD packet to send [19:29:54]OFD Sender: No OFD packet to send [19:29:59]OFD Sender: No OFD packet to send [19:30:04]OFD Sender: No OFD packet to send [19:30:09]OFD Sender: No OFD packet to send [19:30:14]OFD Sender: No OFD packet to send [19:30:19]OFD Sender: No OFD packet to send [19:30:24]OFD Sender: No OFD packet to send [19:30:28]accept exits with 7 [19:30:28]New connection [19:30:28]New thread 3066654052 created [19:30:28]Thread 3066797412 joined [19:30:28]Waiting for new connection... [19:30:28] Sock 7.Parse request [19:30:28]Sock 7.Check first char [19:30:28]Sock 7.First char is OK [19:30:28]request: POST /json_proto HTTP/1.0 [19:30:28]Method: POST [19:30:28]URL: /json_proto [19:30:28]Method is POST - this is cgi request [19:30:28]url: /json_proto [19:30:28]query_string will be loaded in cgi processing [19:30:28]execute_cgi json_proto POST (null) [19:30:28]execute_cgi path=json_proto method=POST [19:30:28]POST find Content-Length [19:30:28]Host: 172.17.50.3:8080 [19:30:28]Content-Length: 678 [19:30:28]Content-Type: application/json [19:30:28] [19:30:28]POST finish read [19:30:28]Found Content-Length = 678 [19:30:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:28]execute_script... [19:30:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:28]POST & json_proto [19:30:28]process_json_proto [19:30:28]json parsed OK: [19:30:28]protocol is kg_v1.0 [19:30:28]action value=close_receipt [19:30:28]process_action close_receipt [19:30:28]cmd_close_receipt [19:30:28]MH_GetDate [19:30:28]Write to MH i2c: F0 00 00 2E 0D 2A [19:30:28]Write i2c OK [19:30:28]MH_I2C_Read... [19:30:28]Read from MH i2c: F0 [19:30:28]MH_I2C_Read... [19:30:28]Read from MH i2c: F0 09 00 [19:30:28]MH_I2C_Read... [19:30:28]Read from MH i2c: F0 09 00 2E 0D 00 55 5A 15 67 6B 98 1E 66 E5 [19:30:28]GetLastDocTimeStamp 1729452567 [19:30:28]current date 1729452629 [19:30:28]FM_GetShiftState [19:30:28]SAM_PROTO_GetShiftState [19:30:28]wFMCommunicate request_size=4 [19:30:28]MH_SAM_APDU [19:30:28]CAPDU: 80 13 01 00 [19:30:28]Write to MH i2c: E2 08 00 2F 0D 80 13 01 00 00 00 00 00 B9 [19:30:28]Write i2c OK [19:30:28]MH_I2C_Read... [19:30:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:28]Read from MH i2c: E2 [19:30:28]MH_I2C_Read... [19:30:28]Read from MH i2c: E2 0E 00 [19:30:28]MH_I2C_Read... [19:30:28]Read from MH i2c: E2 0E 00 2F 0D 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 BF [19:30:28]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:30:28]wFMCommunicate OK [19:30:28]SAM_PROTO_GetShiftState done [19:30:28]FM_GetShiftState done [19:30:28]opened in 1729383220 [19:30:28]opened+sec_in_day 1729469620 [19:30:28]quantity*price = 60009 [19:30:28]sum+1 = 60010 [19:30:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 369 20.10.2024 19:30 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69524 ФПД: 194657319499101 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193029&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69524&fm=194657319499101&tin=02508201610067®Number=0000000000156251&sum=60000 [19:30:29]StoreToDocumentArchive [19:30:29]shift 193 fd 69524 [19:30:29]save to /storage/0193/doc_00069524 [19:30:29]save last doc name /storage/0193/doc_00069524 to /storage/kkm_last_doc_name [19:30:29]save OK [19:30:29]Clear old archive folders... [19:30:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:30:29]tlvbuf is 00F60400 [19:30:29]SAM_PROTO_ClearQueue [19:30:29]wFMCommunicate request_size=4 [19:30:29]MH_SAM_APDU [19:30:29]CAPDU: 80 09 00 00 [19:30:29]Write to MH i2c: E2 08 00 3C 0D 80 09 00 00 00 00 00 00 BB [19:30:29]Write i2c OK [19:30:29]MH_I2C_Read... [19:30:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:30:29]Read from MH i2c: E2 [19:30:29]MH_I2C_Read... [19:30:29]Read from MH i2c: E2 03 00 [19:30:29]MH_I2C_Read... [19:30:29]Read from MH i2c: E2 03 00 3C 0D 00 90 00 BD [19:30:29]RAPDU: 90 00 [19:30:29]wFMCommunicate OK [19:30:29]SAM_PROTO_ClearQueue done [19:30:29]KKMCreateOFDPacket [19:30:29]OFDProtocolAddRootSTLVToBuf [19:30:29]FM_MakeSignedData [19:30:29]FM_MakeSignedData [19:30:29]SAM_PROTO_SignData [19:30:29]wFMCommunicate request_size=4 [19:30:29]MH_SAM_APDU [19:30:29]CAPDU: 80 0D 01 02 [19:30:29]Write to MH i2c: E2 08 00 3D 0D 80 0D 01 02 00 00 00 00 C3 [19:30:29]Write i2c OK [19:30:29]MH_I2C_Read... [19:30:29]OFD Sender: No OFD packet to send [19:30:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:30:29]Read from MH i2c: E2 [19:30:29]MH_I2C_Read... [19:30:29]Read from MH i2c: E2 03 00 [19:30:29]MH_I2C_Read... [19:30:29]Read from MH i2c: E2 03 00 3D 0D 00 90 00 BE [19:30:29]RAPDU: 90 00 [19:30:29]wFMCommunicate OK [19:30:29]wFMCommunicate request_size=255 [19:30:29]MH_SAM_APDU [19:30:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 55 5A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 94 0F 01 00 35 04 06 00 B1 [19:30:29]Write to MH i2c: E2 02 01 3E 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 55 5A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 94 0F 01 00 35 04 06 00 B1 00 00 DC [19:30:29]Write i2c OK [19:30:29]MH_I2C_Read... [19:30:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:30]Read from MH i2c: E2 [19:30:30]MH_I2C_Read... [19:30:30]Read from MH i2c: E2 03 00 [19:30:30]MH_I2C_Read... [19:30:30]Read from MH i2c: E2 03 00 3E 0D 00 90 00 BF [19:30:30]RAPDU: 90 00 [19:30:30]wFMCommunicate OK [19:30:30]wFMCommunicate request_size=10 [19:30:30]MH_SAM_APDU [19:30:30]CAPDU: 80 0D 02 02 05 0A 30 61 B5 5D [19:30:30]Write to MH i2c: E2 0D 00 3F 0D 80 0D 02 02 05 00 0A 30 61 B5 5D 00 00 7D [19:30:30]Write i2c OK [19:30:30]MH_I2C_Read... [19:30:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:30]Read from MH i2c: E2 [19:30:30]MH_I2C_Read... [19:30:30]Read from MH i2c: E2 03 00 [19:30:30]MH_I2C_Read... [19:30:30]Read from MH i2c: E2 03 00 3F 0D 00 90 00 C0 [19:30:30]RAPDU: 90 00 [19:30:30]wFMCommunicate OK [19:30:30]wFMCommunicate request_size=4 [19:30:30]MH_SAM_APDU [19:30:30]CAPDU: 80 0D 03 02 [19:30:30]Write to MH i2c: E2 08 00 40 0D 80 0D 03 02 00 00 00 00 C8 [19:30:30]Write i2c OK [19:30:30]MH_I2C_Read... [19:30:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:30:30]Read from MH i2c: E2 [19:30:30]MH_I2C_Read... [19:30:30]Read from MH i2c: E2 0B 00 [19:30:30]MH_I2C_Read... [19:30:30]Read from MH i2c: E2 0B 00 40 0D 00 C0 9F 14 53 91 44 5D 8B 90 00 4C [19:30:30]RAPDU: C0 9F 14 53 91 44 5D 8B 90 00 [19:30:30]wFMCommunicate OK [19:30:30]SAM_PROTO_SignData done [19:30:30]FM_MakeSignedData done [19:30:30]CreateOFDProtocolMessage [19:30:30]wFMCommunicate request_size=4 [19:30:30]MH_SAM_APDU [19:30:30]CAPDU: 80 11 00 00 [19:30:30]Write to MH i2c: E2 08 00 41 0D 80 11 00 00 00 00 00 00 C8 [19:30:30]Write i2c OK [19:30:30]MH_I2C_Read... [19:30:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:30]Read from MH i2c: E2 [19:30:30]MH_I2C_Read... [19:30:30]Read from MH i2c: E2 17 00 [19:30:30]MH_I2C_Read... [19:30:30]Read from MH i2c: E2 17 00 41 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1A [19:30:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:30:30]wFMCommunicate OK [19:30:30]CreateOFDProtocolMessage done [19:30:30]OFDSenderStorePacket 69524 [19:30:30]StoreOFDPacket docnum=69524 [19:30:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 5B B1 07 01 BB A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 55 5A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 94 0F 01 00 35 04 06 00 B1 0A 30 61 B5 5D C0 9F 14 53 91 44 5D 8B [19:30:30]CheckFolder [19:30:30]dirname=/storage/ofd_packets [19:30:30]CheckFolder done [19:30:30]ProducePacketName [19:30:30]name=ofd_packets/00069524 [19:30:30]NVStorageSaveData ofd_packets/00069524 [19:30:30]File name is /storage/ofd_packets/00069524 [19:30:30]Write 301 bytes [19:30:30]NVStorageSaveData done [19:30:30]OFDSenderStorePacket done [19:30:30]KKMCreateOFDPacket done [19:30:30]NVStorageSaveData kkm_last_timestamp [19:30:30]File name is /storage/kkm_last_timestamp [19:30:30]Write 4 bytes [19:30:30]NVStorageSaveData done [19:30:30]ExternCall_PrintAddStr [19:30:30]wPrintStart [19:30:30]Write to MH i2c: 01 00 00 42 0D 4F [19:30:30]Write i2c OK [19:30:30]MH_I2C_Read... [19:30:30]Read from MH i2c: 01 [19:30:30]MH_I2C_Read... [19:30:30]Read from MH i2c: 01 07 00 [19:30:30]MH_I2C_Read... [19:30:30]Read from MH i2c: 01 07 00 42 0D 00 00 00 00 00 FF 0F 64 [19:30:30]RasterBufferAndPrint [19:30:30]line Счет N : (1)2885264 [19:30:30]line ИНН: 02508201610067 [19:30:30]line Контрольно-Кассовый Чек [19:30:30]line ПРОДАЖА [19:30:30]line ТРК (МРК, ГНК) : 42 [19:30:30]line Товар: 2710124130 [19:30:30]line Аи-92-К-5 [19:30:30]line 8.970 * 66.90 [19:30:30]line = 600.09 [19:30:30]line НДС 12% НСП 1% [19:30:30]line > о реализуемом товаре [19:30:30]line ОКРУГЛЕНИЕ: -0.09 [19:30:30]line ИТОГО: 600.00 [19:30:30]line Внесено: 600.00 [19:30:30]line СДАЧА: 0.00 [19:30:30]line НСП 1% : 5.31 [19:30:30]line НДС 12% : 63.73 [19:30:30]line Наличными: 600.00 [19:30:30]line Безнал.: 0.00 [19:30:30]line Место: АЗС № 85 "Партнер Нефть" [19:30:30]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:30:30]line СНО: Общий режим [19:30:30]line Чек 369 20.10.2024 19:30 [19:30:30]line Смена: 193 ФФД: 1.0 [19:30:30]line ЗНМ: 0300000167 [19:30:30]line РНМ: 0000000000156251 [19:30:30]line Версия ККМ: v1.0 [19:30:30]line ФМ: 0000000000963346 [19:30:30]line ФД: 69524 [19:30:30]line ФПД: 194657319499101 [19:30:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193029&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69524&fm=194657319499101&tin=02508201610067®Number=0000000000156251&sum=60000 [19:30:30]OFD Sender: Processing packet 69524 [packets to send 18, broken 17] [19:30:30]ProducePacketName [19:30:30]name=ofd_packets/00069524 [19:30:30]OFD Sender: To server: pG, [19:30:30]CommunicateWithHost lk.salyk.kg:30040 [19:30:30]ConnectInit lk.salyk.kg [19:30:30]written 0, free lines is 4095 [19:30:30]Connected sock=10 [19:30:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 5B B1 07 01 BB A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 55 5A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 94 0F 01 00 35 04 06 00 B1 0A 30 61 B5 5D C0 9F 14 53 91 44 5D 8B [19:30:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 84 85 47 00 BC 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 30 39 36 33 33 34 36 10 04 04 00 94 0F 01 00 F4 03 04 00 FB 03 15 67 B6 04 01 00 00 FF 0F E1 11 7E 52 1F 34 [19:30:31]CommunicateWithHost err = 0 [19:30:31]CheckOFDResponse [19:30:31]1017 (14) - 77093643461234 [19:30:31]1041 (16) - 0000000000963346 [19:30:31]1040 (4) - 69524 [19:30:31]1012 (4) - 20.10.2024 13:22 [19:30:31]1206 (1) - 0 [19:30:31]OFD Sender: Remove packet 69524 [19:30:31]ProducePacketName [19:30:31]name=ofd_packets/00069524 [19:30:31]NVStorageDeleteData [19:30:31]Write to MH i2c: 01 00 00 6D 0D 7A [19:30:31]Write i2c OK [19:30:31]MH_I2C_Read... [19:30:31]Read from MH i2c: 01 [19:30:31]MH_I2C_Read... [19:30:31]Read from MH i2c: 01 07 00 [19:30:31]MH_I2C_Read... [19:30:31]Read from MH i2c: 01 07 00 6D 0D 00 00 00 00 00 ED 0C 7A [19:30:31]RasterBufferAndPrint [19:30:31]line [19:30:31]line [19:30:31]line [19:30:31]line [19:30:31]line [19:30:31]written 0, free lines is 3315 [19:30:31]MH_Cut [19:30:31]Write to MH i2c: D1 01 00 74 0D 01 53 [19:30:31]Write i2c OK [19:30:31]MH_I2C_Read... [19:30:31]Read from MH i2c: D1 [19:30:31]MH_I2C_Read... [19:30:31]Read from MH i2c: D1 01 00 [19:30:31]MH_I2C_Read... [19:30:31]Read from MH i2c: D1 01 00 74 0D 00 52 [19:30:31]Write to MH i2c: 01 00 00 75 0D 82 [19:30:31]Write i2c OK [19:30:31]MH_I2C_Read... [19:30:31]OFD Sender: No OFD packet to send [19:30:31]*** Cut start [19:30:31]*** Partial cut [19:30:31]*** CUTSNS_PIN = 1 [19:30:31]*** CUTSNS_PIN = 0 [19:30:32]*** Brake cut motor [19:30:32]Read from MH i2c: 01 [19:30:32]MH_I2C_Read... [19:30:32]*** Stop cut motor [19:30:32]*** Cut end [19:30:32]Read from MH i2c: 01 07 00 [19:30:32]MH_I2C_Read... [19:30:32]Read from MH i2c: 01 07 00 75 0D 00 00 00 00 00 FF 0F 97 [19:30:32]process_action close_receipt done [19:30:32]requested_data is exist [19:30:32]produce_requested_data [19:30:32]requested_item fm.sn is exist - process it [19:30:32]wFMCommunicate request_size=4 [19:30:32]MH_SAM_APDU [19:30:32]CAPDU: 80 11 00 00 [19:30:32]Write to MH i2c: E2 08 00 76 0D 80 11 00 00 00 00 00 00 FD [19:30:32]Write i2c OK [19:30:32]MH_I2C_Read... [19:30:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:32]Read from MH i2c: E2 [19:30:32]MH_I2C_Read... [19:30:32]Read from MH i2c: E2 17 00 [19:30:32]MH_I2C_Read... [19:30:32]Read from MH i2c: E2 17 00 76 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4F [19:30:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:30:32]wFMCommunicate OK [19:30:32]requested_item fd.num is exist - process it [19:30:32]SAM_PROTO_GetFieldsCounters [19:30:32]wFMCommunicate request_size=4 [19:30:32]MH_SAM_APDU [19:30:32]CAPDU: 80 13 00 00 [19:30:32]Write to MH i2c: E2 08 00 77 0D 80 13 00 00 00 00 00 00 00 [19:30:32]Write i2c OK [19:30:32]MH_I2C_Read... [19:30:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:30:32]Read from MH i2c: E2 [19:30:32]MH_I2C_Read... [19:30:32]Read from MH i2c: E2 62 00 [19:30:32]MH_I2C_Read... [19:30:32]Read from MH i2c: E2 62 00 77 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 94 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 72 01 00 00 19 04 04 00 00 00 00 00 90 00 D6 [19:30:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 94 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 72 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:30:32]wFMCommunicate OK [19:30:32]SAM_PROTO_GetFieldsCounters done [19:30:32]requested_item shift.num is exist - process it [19:30:32]requested_item shift.opened is exist - process it [19:30:32]req_shift_opened [19:30:32]FM_GetShiftState [19:30:32]SAM_PROTO_GetShiftState [19:30:32]wFMCommunicate request_size=4 [19:30:32]MH_SAM_APDU [19:30:32]CAPDU: 80 13 01 00 [19:30:32]Write to MH i2c: E2 08 00 78 0D 80 13 01 00 00 00 00 00 02 [19:30:32]Write i2c OK [19:30:32]MH_I2C_Read... [19:30:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:32]Read from MH i2c: E2 [19:30:32]MH_I2C_Read... [19:30:32]Read from MH i2c: E2 0E 00 [19:30:32]MH_I2C_Read... [19:30:32]Read from MH i2c: E2 0E 00 78 0D 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 08 [19:30:32]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:30:32]wFMCommunicate OK [19:30:32]SAM_PROTO_GetShiftState done [19:30:32]FM_GetShiftState done [19:30:32]req_shift_opened done [19:30:32]requested_item shift.open_date is exist - process it [19:30:32]req_shift_open_date [19:30:32]req_shift_open_date done [19:30:32]produce_requested_data done [19:30:32]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69524,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [19:30:32]process_action_free close_receipt [19:30:32]json_value_free [19:30:32]json_value_free done [19:30:32]process_json_proto returns [19:30:32]Send response to host [19:30:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69524,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [19:30:32]free response buf [19:30:32]execute_script done [19:30:32]execute_script returns [19:30:32]free content buf [19:30:32]Sock 7.Close socket [19:30:32]Sock 7.Thread stoped [19:30:36]OFD Sender: No OFD packet to send [19:30:41]OFD Sender: No OFD packet to send [19:30:46]OFD Sender: No OFD packet to send [19:30:51]OFD Sender: No OFD packet to send [19:30:56]OFD Sender: No OFD packet to send [19:31:01]OFD Sender: No OFD packet to send [19:31:06]OFD Sender: No OFD packet to send [19:31:11]OFD Sender: No OFD packet to send [19:31:16]OFD Sender: No OFD packet to send [19:31:21]OFD Sender: No OFD packet to send [19:31:26]OFD Sender: No OFD packet to send [19:31:31]OFD Sender: No OFD packet to send [19:31:36]OFD Sender: No OFD packet to send [19:31:41]OFD Sender: No OFD packet to send [19:31:46]OFD Sender: No OFD packet to send [19:31:51]OFD Sender: No OFD packet to send [19:31:56]OFD Sender: No OFD packet to send [19:32:01]OFD Sender: No OFD packet to send [19:32:06]OFD Sender: No OFD packet to send [19:32:11]OFD Sender: No OFD packet to send [19:32:16]OFD Sender: No OFD packet to send [19:32:21]OFD Sender: No OFD packet to send [19:32:26]OFD Sender: No OFD packet to send [19:32:31]OFD Sender: No OFD packet to send [19:32:36]OFD Sender: No OFD packet to send [19:32:41]OFD Sender: No OFD packet to send [19:32:46]OFD Sender: No OFD packet to send [19:32:51]OFD Sender: No OFD packet to send [19:32:56]OFD Sender: No OFD packet to send [19:33:01]OFD Sender: No OFD packet to send [19:33:03]accept exits with 9 [19:33:03]New connection [19:33:03]New thread 3066797412 created [19:33:03]Thread 3066654052 joined [19:33:03]Waiting for new connection... [19:33:03] Sock 9.Parse request [19:33:03]Sock 9.Check first char [19:33:03]Sock 9.First char is OK [19:33:03]request: POST /json_proto HTTP/1.0 [19:33:03]Method: POST [19:33:03]URL: /json_proto [19:33:03]Method is POST - this is cgi request [19:33:03]url: /json_proto [19:33:03]query_string will be loaded in cgi processing [19:33:03]execute_cgi json_proto POST (null) [19:33:03]execute_cgi path=json_proto method=POST [19:33:03]POST find Content-Length [19:33:03]Host: 172.17.50.3:8080 [19:33:03]Content-Length: 755 [19:33:03]Content-Type: application/json [19:33:03] [19:33:03]POST finish read [19:33:03]Found Content-Length = 755 [19:33:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\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\u041A \u0413\u041F\u041D\u0410 Online\u000A30021879", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:33:03]execute_script... [19:33: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)2885265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\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\u041A \u0413\u041F\u041D\u0410 Online\u000A30021879", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:33:03]POST & json_proto [19:33:03]process_json_proto [19:33:03]json parsed OK: [19:33:03]protocol is kg_v1.0 [19:33:03]action value=close_receipt [19:33:03]process_action close_receipt [19:33:03]cmd_close_receipt [19:33:03]MH_GetDate [19:33:03]Write to MH i2c: F0 00 00 79 0D 75 [19:33:03]Write i2c OK [19:33:03]MH_I2C_Read... [19:33:03]Read from MH i2c: F0 [19:33:03]MH_I2C_Read... [19:33:03]Read from MH i2c: F0 09 00 [19:33:03]MH_I2C_Read... [19:33:03]Read from MH i2c: F0 09 00 79 0D 00 EF 5A 15 67 6B 98 1E 66 CA [19:33:03]GetLastDocTimeStamp 1729452629 [19:33:03]current date 1729452783 [19:33:03]FM_GetShiftState [19:33:03]SAM_PROTO_GetShiftState [19:33:03]wFMCommunicate request_size=4 [19:33:03]MH_SAM_APDU [19:33:03]CAPDU: 80 13 01 00 [19:33:03]Write to MH i2c: E2 08 00 7A 0D 80 13 01 00 00 00 00 00 04 [19:33:03]Write i2c OK [19:33:03]MH_I2C_Read... [19:33:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:03]Read from MH i2c: E2 [19:33:03]MH_I2C_Read... [19:33:03]Read from MH i2c: E2 0E 00 [19:33:03]MH_I2C_Read... [19:33:03]Read from MH i2c: E2 0E 00 7A 0D 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 0A [19:33:03]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:33:03]wFMCommunicate OK [19:33:03]SAM_PROTO_GetShiftState done [19:33:03]FM_GetShiftState done [19:33:03]opened in 1729383220 [19:33:03]opened+sec_in_day 1729469620 [19:33:03]quantity*price = 0 [19:33:03]sum+1 = 1 [19:33:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 370 20.10.2024 19:33 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30021879 ФМ: 0000000000963346 ФД: 69525 ФПД: 233886610139299 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193303&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69525&fm=233886610139299&tin=02508201610067®Number=0000000000156251&sum=0 [19:33:04]StoreToDocumentArchive [19:33:04]shift 193 fd 69525 [19:33:04]save to /storage/0193/doc_00069525 [19:33:04]save last doc name /storage/0193/doc_00069525 to /storage/kkm_last_doc_name [19:33:04]save OK [19:33:04]Clear old archive folders... [19:33:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:33:04]tlvbuf is 00F79990 [19:33:04]SAM_PROTO_ClearQueue [19:33:04]wFMCommunicate request_size=4 [19:33:04]MH_SAM_APDU [19:33:04]CAPDU: 80 09 00 00 [19:33:04]Write to MH i2c: E2 08 00 87 0D 80 09 00 00 00 00 00 00 06 [19:33:04]Write i2c OK [19:33:04]MH_I2C_Read... [19:33:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:33:04]Read from MH i2c: E2 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 03 00 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 03 00 87 0D 00 90 00 08 [19:33:04]RAPDU: 90 00 [19:33:04]wFMCommunicate OK [19:33:04]SAM_PROTO_ClearQueue done [19:33:04]KKMCreateOFDPacket [19:33:04]OFDProtocolAddRootSTLVToBuf [19:33:04]FM_MakeSignedData [19:33:04]FM_MakeSignedData [19:33:04]SAM_PROTO_SignData [19:33:04]wFMCommunicate request_size=4 [19:33:04]MH_SAM_APDU [19:33:04]CAPDU: 80 0D 01 02 [19:33:04]Write to MH i2c: E2 08 00 88 0D 80 0D 01 02 00 00 00 00 0E [19:33:04]Write i2c OK [19:33:04]MH_I2C_Read... [19:33:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:33:04]Read from MH i2c: E2 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 03 00 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 03 00 88 0D 00 90 00 09 [19:33:04]RAPDU: 90 00 [19:33:04]wFMCommunicate OK [19:33:04]wFMCommunicate request_size=255 [19:33:04]MH_SAM_APDU [19:33:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 72 01 00 00 F4 03 04 00 EF 5A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 95 0F 01 00 35 04 06 00 D4 [19:33:04]Write to MH i2c: E2 02 01 89 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 EF 5A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 95 0F 01 00 35 04 06 00 D4 00 00 BB [19:33:04]Write i2c OK [19:33:04]MH_I2C_Read... [19:33:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:04]Read from MH i2c: E2 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 03 00 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 03 00 89 0D 00 90 00 0A [19:33:04]RAPDU: 90 00 [19:33:04]wFMCommunicate OK [19:33:04]wFMCommunicate request_size=10 [19:33:04]MH_SAM_APDU [19:33:04]CAPDU: 80 0D 02 02 05 B7 F8 50 A8 A3 [19:33:04]Write to MH i2c: E2 0D 00 8A 0D 80 0D 02 02 05 00 B7 F8 50 A8 A3 00 00 65 [19:33:04]Write i2c OK [19:33:04]MH_I2C_Read... [19:33:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:04]Read from MH i2c: E2 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 03 00 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 03 00 8A 0D 00 90 00 0B [19:33:04]RAPDU: 90 00 [19:33:04]wFMCommunicate OK [19:33:04]wFMCommunicate request_size=4 [19:33:04]MH_SAM_APDU [19:33:04]CAPDU: 80 0D 03 02 [19:33:04]Write to MH i2c: E2 08 00 8B 0D 80 0D 03 02 00 00 00 00 13 [19:33:04]Write i2c OK [19:33:04]MH_I2C_Read... [19:33:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:33:04]Read from MH i2c: E2 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 0B 00 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 0B 00 8B 0D 00 0F 50 B9 BF 90 04 87 B5 90 00 BB [19:33:04]RAPDU: 0F 50 B9 BF 90 04 87 B5 90 00 [19:33:04]wFMCommunicate OK [19:33:04]SAM_PROTO_SignData done [19:33:04]FM_MakeSignedData done [19:33:04]CreateOFDProtocolMessage [19:33:04]wFMCommunicate request_size=4 [19:33:04]MH_SAM_APDU [19:33:04]CAPDU: 80 11 00 00 [19:33:04]Write to MH i2c: E2 08 00 8C 0D 80 11 00 00 00 00 00 00 13 [19:33:04]Write i2c OK [19:33:04]MH_I2C_Read... [19:33:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:04]Read from MH i2c: E2 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 17 00 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 17 00 8C 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 65 [19:33:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:33:04]wFMCommunicate OK [19:33:04]CreateOFDProtocolMessage done [19:33:04]OFDSenderStorePacket 69525 [19:33:04]StoreOFDPacket docnum=69525 [19:33:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 0F 8F 07 01 D2 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 72 01 00 00 F4 03 04 00 EF 5A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 95 0F 01 00 35 04 06 00 D4 B7 F8 50 A8 A3 0F 50 B9 BF 90 04 87 B5 [19:33:04]CheckFolder [19:33:04]dirname=/storage/ofd_packets [19:33:04]CheckFolder done [19:33:04]ProducePacketName [19:33:04]name=ofd_packets/00069525 [19:33:04]NVStorageSaveData ofd_packets/00069525 [19:33:04]File name is /storage/ofd_packets/00069525 [19:33:04]Write 301 bytes [19:33:04]NVStorageSaveData done [19:33:04]OFDSenderStorePacket done [19:33:04]KKMCreateOFDPacket done [19:33:04]NVStorageSaveData kkm_last_timestamp [19:33:04]File name is /storage/kkm_last_timestamp [19:33:04]Write 4 bytes [19:33:04]NVStorageSaveData done [19:33:04]ExternCall_PrintAddStr [19:33:04]wPrintStart [19:33:04]Write to MH i2c: 01 00 00 8D 0D 9A [19:33:04]Write i2c OK [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: 01 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: 01 07 00 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: 01 07 00 8D 0D 00 00 00 00 00 FF 0F AF [19:33:04]RasterBufferAndPrint [19:33:04]line Счет N : (1)2885265 [19:33:04]line ИНН: 02508201610067 [19:33:04]line Контрольно-Кассовый Чек [19:33:04]line ПРОДАЖА [19:33:04]line ТРК (МРК, ГНК) : 12 [19:33:04]line Товар: 2710124130 [19:33:04]line Аи-92-К-5 [19:33:04]line 10.000 * 0.00 [19:33:04]line = 0.00 [19:33:04]line НДС 12% НСП 1% [19:33:04]line > о реализуемом товаре [19:33:04]line ИТОГО: 0.00 [19:33:04]line НСП 1% : 0.00 [19:33:04]line НДС 12% : 0.00 [19:33:04]line Наличными: 0.00 [19:33:04]line Безнал.: 0.00 [19:33:04]line Место: АЗС № 85 "Партнер Нефть" [19:33:04]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:33:04]line СНО: Общий режим [19:33:04]line Чек 370 20.10.2024 19:33 [19:33:04]line Смена: 193 ФФД: 1.0 [19:33:04]line ЗНМ: 0300000167 [19:33:04]line РНМ: 0000000000156251 [19:33:04]line Версия ККМ: v1.0 [19:33:04]line Талоны: ТК ГПНА Online [19:33:04]line 30021879 [19:33:04]line ФМ: 0000000000963346 [19:33:04]line ФД: 69525 [19:33:04]line ФПД: 233886610139299 [19:33:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193303&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69525&fm=233886610139299&tin=02508201610067®Number=0000000000156251&sum=0 [19:33:05]OFD Sender: Processing packet 69525 [packets to send 18, broken 17] [19:33:05]ProducePacketName [19:33:05]name=ofd_packets/00069525 [19:33:05]OFD Sender: To server: pG, [19:33:05]CommunicateWithHost lk.salyk.kg:30040 [19:33:05]ConnectInit lk.salyk.kg [19:33:05]written 0, free lines is 4095 [19:33:05]Connected sock=10 [19:33:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 0F 8F 07 01 D2 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 72 01 00 00 F4 03 04 00 EF 5A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 95 0F 01 00 35 04 06 00 D4 B7 F8 50 A8 A3 0F 50 B9 BF 90 04 87 B5 [19:33:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 66 8F 47 00 79 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 95 0F 01 00 F4 03 04 00 95 04 15 67 B6 04 01 00 00 A8 8F 30 9D CF 7B F3 62 [19:33:05]CommunicateWithHost err = 0 [19:33:05]CheckOFDResponse [19:33:05]1017 (14) - 77093643461234 [19:33:05]1041 (16) - 0000000000963346 [19:33:05]1040 (4) - 69525 [19:33:05]1012 (4) - 20.10.2024 13:24 [19:33:05]1206 (1) - 0 [19:33:05]OFD Sender: Remove packet 69525 [19:33:05]ProducePacketName [19:33:05]name=ofd_packets/00069525 [19:33:05]NVStorageDeleteData [19:33:05]Write to MH i2c: 01 00 00 B7 0D C4 [19:33:05]Write i2c OK [19:33:05]MH_I2C_Read... [19:33:05]Read from MH i2c: 01 [19:33:05]MH_I2C_Read... [19:33:05]Read from MH i2c: 01 07 00 [19:33:05]MH_I2C_Read... [19:33:05]Read from MH i2c: 01 07 00 B7 0D 00 00 00 00 00 03 0D DB [19:33:05]RasterBufferAndPrint [19:33:05]line [19:33:05]line [19:33:05]line [19:33:05]line [19:33:05]line [19:33:05]written 0, free lines is 3337 [19:33:05]MH_Cut [19:33:05]Write to MH i2c: D1 01 00 BE 0D 01 9D [19:33:05]Write i2c OK [19:33:05]MH_I2C_Read... [19:33:05]Read from MH i2c: D1 [19:33:05]MH_I2C_Read... [19:33:05]Read from MH i2c: D1 01 00 [19:33:05]MH_I2C_Read... [19:33:05]Read from MH i2c: D1 01 00 BE 0D 00 9C [19:33:05]Write to MH i2c: 01 00 00 BF 0D CC [19:33:05]Write i2c OK [19:33:05]MH_I2C_Read... [19:33:05]OFD Sender: No OFD packet to send [19:33:06]*** Cut start [19:33:06]*** Partial cut [19:33:06]*** CUTSNS_PIN = 1 [19:33:06]*** CUTSNS_PIN = 0 [19:33:06]*** Brake cut motor [19:33:06]Read from MH i2c: 01 [19:33:06]MH_I2C_Read... [19:33:06]*** Stop cut motor [19:33:06]*** Cut end [19:33:06]Read from MH i2c: 01 07 00 [19:33:06]MH_I2C_Read... [19:33:06]Read from MH i2c: 01 07 00 BF 0D 00 00 00 00 00 FF 0F E1 [19:33:06]process_action close_receipt done [19:33:06]requested_data is exist [19:33:06]produce_requested_data [19:33:06]requested_item fm.sn is exist - process it [19:33:06]wFMCommunicate request_size=4 [19:33:06]MH_SAM_APDU [19:33:06]CAPDU: 80 11 00 00 [19:33:06]Write to MH i2c: E2 08 00 C0 0D 80 11 00 00 00 00 00 00 47 [19:33:06]Write i2c OK [19:33:06]MH_I2C_Read... [19:33:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:06]Read from MH i2c: E2 [19:33:06]MH_I2C_Read... [19:33:06]Read from MH i2c: E2 17 00 [19:33:06]MH_I2C_Read... [19:33:06]Read from MH i2c: E2 17 00 C0 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 99 [19:33:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:33:06]wFMCommunicate OK [19:33:06]requested_item fd.num is exist - process it [19:33:06]SAM_PROTO_GetFieldsCounters [19:33:06]wFMCommunicate request_size=4 [19:33:06]MH_SAM_APDU [19:33:06]CAPDU: 80 13 00 00 [19:33:06]Write to MH i2c: E2 08 00 C1 0D 80 13 00 00 00 00 00 00 4A [19:33:06]Write i2c OK [19:33:06]MH_I2C_Read... [19:33:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:33:06]Read from MH i2c: E2 [19:33:06]MH_I2C_Read... [19:33:06]Read from MH i2c: E2 62 00 [19:33:06]MH_I2C_Read... [19:33:06]Read from MH i2c: E2 62 00 C1 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 95 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 72 01 00 00 5E 04 04 00 72 01 00 00 57 04 04 00 73 01 00 00 19 04 04 00 00 00 00 00 90 00 24 [19:33:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 95 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 72 01 00 00 5E 04 04 00 72 01 00 00 57 04 04 00 73 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:33:06]wFMCommunicate OK [19:33:06]SAM_PROTO_GetFieldsCounters done [19:33:06]requested_item shift.num is exist - process it [19:33:06]requested_item shift.opened is exist - process it [19:33:06]req_shift_opened [19:33:06]FM_GetShiftState [19:33:06]SAM_PROTO_GetShiftState [19:33:06]wFMCommunicate request_size=4 [19:33:06]MH_SAM_APDU [19:33:06]CAPDU: 80 13 01 00 [19:33:06]Write to MH i2c: E2 08 00 C2 0D 80 13 01 00 00 00 00 00 4C [19:33:06]Write i2c OK [19:33:06]MH_I2C_Read... [19:33:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:07]Read from MH i2c: E2 [19:33:07]MH_I2C_Read... [19:33:07]Read from MH i2c: E2 0E 00 [19:33:07]MH_I2C_Read... [19:33:07]Read from MH i2c: E2 0E 00 C2 0D 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 52 [19:33:07]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:33:07]wFMCommunicate OK [19:33:07]SAM_PROTO_GetShiftState done [19:33:07]FM_GetShiftState done [19:33:07]req_shift_opened done [19:33:07]requested_item shift.open_date is exist - process it [19:33:07]req_shift_open_date [19:33:07]req_shift_open_date done [19:33:07]produce_requested_data done [19:33:07]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69525,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [19:33:07]process_action_free close_receipt [19:33:07]json_value_free [19:33:07]json_value_free done [19:33:07]process_json_proto returns [19:33:07]Send response to host [19:33:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69525,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [19:33:07]free response buf [19:33:07]execute_script done [19:33:07]execute_script returns [19:33:07]free content buf [19:33:07]Sock 9.Close socket [19:33:07]Sock 9.Thread stoped [19:33:10]OFD Sender: No OFD packet to send [19:33:15]OFD Sender: No OFD packet to send [19:33:20]OFD Sender: No OFD packet to send [19:33:25]OFD Sender: No OFD packet to send [19:33:30]OFD Sender: No OFD packet to send [19:33:35]OFD Sender: No OFD packet to send [19:33:40]OFD Sender: No OFD packet to send [19:33:45]OFD Sender: No OFD packet to send [19:33:50]OFD Sender: No OFD packet to send [19:33:55]OFD Sender: No OFD packet to send [19:34:00]OFD Sender: No OFD packet to send [19:34:05]OFD Sender: No OFD packet to send [19:34:10]OFD Sender: No OFD packet to send [19:34:15]OFD Sender: No OFD packet to send [19:34:20]OFD Sender: No OFD packet to send [19:34:25]OFD Sender: No OFD packet to send [19:34:30]OFD Sender: No OFD packet to send [19:34:35]OFD Sender: No OFD packet to send [19:34:40]OFD Sender: No OFD packet to send [19:34:46]OFD Sender: No OFD packet to send [19:34:51]OFD Sender: No OFD packet to send [19:34:56]OFD Sender: No OFD packet to send [19:35:01]OFD Sender: No OFD packet to send [19:35:06]OFD Sender: No OFD packet to send [19:35:11]OFD Sender: No OFD packet to send [19:35:16]OFD Sender: No OFD packet to send [19:35:21]OFD Sender: No OFD packet to send [19:35:26]OFD Sender: No OFD packet to send [19:35:31]OFD Sender: No OFD packet to send [19:35:36]OFD Sender: No OFD packet to send [19:35:41]OFD Sender: No OFD packet to send [19:35:46]OFD Sender: No OFD packet to send [19:35:51]OFD Sender: No OFD packet to send [19:35:56]OFD Sender: No OFD packet to send [19:36:01]OFD Sender: No OFD packet to send [19:36:06]OFD Sender: No OFD packet to send [19:36:11]OFD Sender: No OFD packet to send [19:36:16]OFD Sender: No OFD packet to send [19:36:21]OFD Sender: No OFD packet to send [19:36:26]OFD Sender: No OFD packet to send [19:36:31]OFD Sender: No OFD packet to send [19:36:36]OFD Sender: No OFD packet to send [19:36:41]OFD Sender: No OFD packet to send [19:36:46]OFD Sender: No OFD packet to send [19:36:51]OFD Sender: No OFD packet to send [19:36:56]OFD Sender: No OFD packet to send [19:37:01]OFD Sender: No OFD packet to send [19:37:06]OFD Sender: No OFD packet to send [19:37:11]OFD Sender: No OFD packet to send [19:37:16]OFD Sender: No OFD packet to send [19:37:21]OFD Sender: No OFD packet to send [19:37:26]OFD Sender: No OFD packet to send [19:37:31]OFD Sender: No OFD packet to send [19:37:36]OFD Sender: No OFD packet to send [19:37:41]OFD Sender: No OFD packet to send [19:37:46]OFD Sender: No OFD packet to send [19:37:51]OFD Sender: No OFD packet to send [19:37:56]OFD Sender: No OFD packet to send [19:38:01]OFD Sender: No OFD packet to send [19:38:06]OFD Sender: No OFD packet to send [19:38:11]OFD Sender: No OFD packet to send [19:38:16]OFD Sender: No OFD packet to send [19:38:20]accept exits with 7 [19:38:20]New connection [19:38:20]New thread 3066654052 created [19:38:20]Thread 3066797412 joined [19:38:20]Waiting for new connection... [19:38:20] Sock 7.Parse request [19:38:20]Sock 7.Check first char [19:38:20]Sock 7.First char is OK [19:38:20]request: POST /json_proto HTTP/1.0 [19:38:20]Method: POST [19:38:20]URL: /json_proto [19:38:20]Method is POST - this is cgi request [19:38:20]url: /json_proto [19:38:20]query_string will be loaded in cgi processing [19:38:20]execute_cgi json_proto POST (null) [19:38:20]execute_cgi path=json_proto method=POST [19:38:20]POST find Content-Length [19:38:20]Host: 172.17.50.3:8080 [19:38:20]Content-Length: 680 [19:38:20]Content-Type: application/json [19:38:20] [19:38:20]POST finish read [19:38:20]Found Content-Length = 680 [19:38:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:20]execute_script... [19:38: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)2885266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:20]POST & json_proto [19:38:20]process_json_proto [19:38:20]json parsed OK: [19:38:20]protocol is kg_v1.0 [19:38:20]action value=close_receipt [19:38:20]process_action close_receipt [19:38:20]cmd_close_receipt [19:38:20]MH_GetDate [19:38:20]Write to MH i2c: F0 00 00 C3 0D BF [19:38:20]Write i2c OK [19:38:20]MH_I2C_Read... [19:38:20]Read from MH i2c: F0 [19:38:20]MH_I2C_Read... [19:38:20]Read from MH i2c: F0 09 00 [19:38:20]MH_I2C_Read... [19:38:20]Read from MH i2c: F0 09 00 C3 0D 00 2D 5C 15 67 6B 98 1E 66 54 [19:38:20]GetLastDocTimeStamp 1729452783 [19:38:20]current date 1729453101 [19:38:20]FM_GetShiftState [19:38:20]SAM_PROTO_GetShiftState [19:38:20]wFMCommunicate request_size=4 [19:38:20]MH_SAM_APDU [19:38:20]CAPDU: 80 13 01 00 [19:38:20]Write to MH i2c: E2 08 00 C4 0D 80 13 01 00 00 00 00 00 4E [19:38:20]Write i2c OK [19:38:20]MH_I2C_Read... [19:38:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:20]Read from MH i2c: E2 [19:38:20]MH_I2C_Read... [19:38:20]Read from MH i2c: E2 0E 00 [19:38:20]MH_I2C_Read... [19:38:20]Read from MH i2c: E2 0E 00 C4 0D 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 54 [19:38:20]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:38:20]wFMCommunicate OK [19:38:20]SAM_PROTO_GetShiftState done [19:38:20]FM_GetShiftState done [19:38:20]opened in 1729383220 [19:38:20]opened+sec_in_day 1729469620 [19:38:20]quantity*price = 200025 [19:38:20]sum+1 = 200026 [19:38:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 371 20.10.2024 19:38 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69526 ФПД: 180806457333900 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193821&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69526&fm=180806457333900&tin=02508201610067®Number=0000000000156251&sum=200000 [19:38:21]StoreToDocumentArchive [19:38:21]shift 193 fd 69526 [19:38:21]save to /storage/0193/doc_00069526 [19:38:21]save last doc name /storage/0193/doc_00069526 to /storage/kkm_last_doc_name [19:38:21]save OK [19:38:21]Clear old archive folders... [19:38:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:38:21]tlvbuf is 00F46FB0 [19:38:21]SAM_PROTO_ClearQueue [19:38:21]wFMCommunicate request_size=4 [19:38:21]MH_SAM_APDU [19:38:21]CAPDU: 80 09 00 00 [19:38:21]Write to MH i2c: E2 08 00 D1 0D 80 09 00 00 00 00 00 00 50 [19:38:21]Write i2c OK [19:38:21]MH_I2C_Read... [19:38:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:38:21]Read from MH i2c: E2 [19:38:21]MH_I2C_Read... [19:38:21]Read from MH i2c: E2 03 00 [19:38:21]MH_I2C_Read... [19:38:21]Read from MH i2c: E2 03 00 D1 0D 00 90 00 52 [19:38:21]RAPDU: 90 00 [19:38:21]wFMCommunicate OK [19:38:21]SAM_PROTO_ClearQueue done [19:38:21]KKMCreateOFDPacket [19:38:21]OFDProtocolAddRootSTLVToBuf [19:38:21]FM_MakeSignedData [19:38:21]FM_MakeSignedData [19:38:21]SAM_PROTO_SignData [19:38:21]wFMCommunicate request_size=4 [19:38:21]MH_SAM_APDU [19:38:21]CAPDU: 80 0D 01 02 [19:38:21]Write to MH i2c: E2 08 00 D2 0D 80 0D 01 02 00 00 00 00 58 [19:38:21]Write i2c OK [19:38:21]MH_I2C_Read... [19:38:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:38:21]Read from MH i2c: E2 [19:38:21]MH_I2C_Read... [19:38:21]Read from MH i2c: E2 03 00 [19:38:21]MH_I2C_Read... [19:38:21]Read from MH i2c: E2 03 00 D2 0D 00 90 00 53 [19:38:21]RAPDU: 90 00 [19:38:21]wFMCommunicate OK [19:38:21]wFMCommunicate request_size=255 [19:38:21]MH_SAM_APDU [19:38: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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 2D 5C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 96 0F 01 00 35 04 06 00 A4 71 48 A9 [19:38:21]Write to MH i2c: E2 02 01 D3 0D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 2D 5C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 96 0F 01 00 35 04 06 00 A4 71 48 A9 00 00 AB [19:38:22]Write i2c OK [19:38:22]MH_I2C_Read... [19:38:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:22]Read from MH i2c: E2 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: E2 03 00 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: E2 03 00 D3 0D 00 90 00 54 [19:38:22]RAPDU: 90 00 [19:38:22]wFMCommunicate OK [19:38:22]wFMCommunicate request_size=7 [19:38:22]MH_SAM_APDU [19:38:22]CAPDU: 80 0D 02 02 02 98 8C [19:38:22]Write to MH i2c: E2 0A 00 D4 0D 80 0D 02 02 02 00 98 8C 00 00 83 [19:38:22]Write i2c OK [19:38:22]MH_I2C_Read... [19:38:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:22]Read from MH i2c: E2 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: E2 03 00 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: E2 03 00 D4 0D 00 90 00 55 [19:38:22]RAPDU: 90 00 [19:38:22]wFMCommunicate OK [19:38:22]wFMCommunicate request_size=4 [19:38:22]MH_SAM_APDU [19:38:22]CAPDU: 80 0D 03 02 [19:38:22]Write to MH i2c: E2 08 00 D5 0D 80 0D 03 02 00 00 00 00 5D [19:38:22]Write i2c OK [19:38:22]MH_I2C_Read... [19:38:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:38:22]Read from MH i2c: E2 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: E2 0B 00 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: E2 0B 00 D5 0D 00 67 36 EB 81 5E 09 1C E9 90 00 D3 [19:38:22]RAPDU: 67 36 EB 81 5E 09 1C E9 90 00 [19:38:22]wFMCommunicate OK [19:38:22]SAM_PROTO_SignData done [19:38:22]FM_MakeSignedData done [19:38:22]CreateOFDProtocolMessage [19:38:22]wFMCommunicate request_size=4 [19:38:22]MH_SAM_APDU [19:38:22]CAPDU: 80 11 00 00 [19:38:22]Write to MH i2c: E2 08 00 D6 0D 80 11 00 00 00 00 00 00 5D [19:38:22]Write i2c OK [19:38:22]MH_I2C_Read... [19:38:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:22]Read from MH i2c: E2 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: E2 17 00 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: E2 17 00 D6 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AF [19:38:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:38:22]wFMCommunicate OK [19:38:22]CreateOFDProtocolMessage done [19:38:22]OFDSenderStorePacket 69526 [19:38:22]StoreOFDPacket docnum=69526 [19:38:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 AF 61 04 01 DA 8A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 2D 5C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 96 0F 01 00 35 04 06 00 A4 71 48 A9 98 8C 67 36 EB 81 5E 09 1C E9 [19:38:22]CheckFolder [19:38:22]dirname=/storage/ofd_packets [19:38:22]CheckFolder done [19:38:22]ProducePacketName [19:38:22]name=ofd_packets/00069526 [19:38:22]NVStorageSaveData ofd_packets/00069526 [19:38:22]File name is /storage/ofd_packets/00069526 [19:38:22]Write 298 bytes [19:38:22]NVStorageSaveData done [19:38:22]OFDSenderStorePacket done [19:38:22]KKMCreateOFDPacket done [19:38:22]NVStorageSaveData kkm_last_timestamp [19:38:22]File name is /storage/kkm_last_timestamp [19:38:22]Write 4 bytes [19:38:22]NVStorageSaveData done [19:38:22]ExternCall_PrintAddStr [19:38:22]wPrintStart [19:38:22]Write to MH i2c: 01 00 00 D7 0D E4 [19:38:22]Write i2c OK [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: 01 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: 01 07 00 [19:38:22]MH_I2C_Read... [19:38:22]Read from MH i2c: 01 07 00 D7 0D 00 00 00 00 00 FF 0F F9 [19:38:22]RasterBufferAndPrint [19:38:22]line Счет N : (1)2885266 [19:38:22]line ИНН: 02508201610067 [19:38:22]line Контрольно-Кассовый Чек [19:38:22]line ПРОДАЖА [19:38:22]line ТРК (МРК, ГНК) : 51 [19:38:22]line Товар: 2710194210 [19:38:22]line ДТ-К-5 [19:38:22]line 26.250 * 76.20 [19:38:22]line = 2000.25 [19:38:22]line НДС 12% НСП 1% [19:38:22]line > о реализуемом товаре [19:38:22]line ОКРУГЛЕНИЕ: -0.25 [19:38:22]line ИТОГО: 2000.00 [19:38:22]line Внесено: 2000.00 [19:38:22]line СДАЧА: 0.00 [19:38:22]line НСП 1% : 17.70 [19:38:22]line НДС 12% : 212.42 [19:38:22]line Наличными: 2000.00 [19:38:22]line Безнал.: 0.00 [19:38:22]line Место: АЗС № 85 "Партнер Нефть" [19:38:22]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:38:22]line СНО: Общий режим [19:38:22]line Чек 371 20.10.2024 19:38 [19:38:22]line Смена: 193 ФФД: 1.0 [19:38:22]line ЗНМ: 0300000167 [19:38:22]line РНМ: 0000000000156251 [19:38:22]line Версия ККМ: v1.0 [19:38:22]line ФМ: 0000000000963346 [19:38:22]line ФД: 69526 [19:38:22]line ФПД: 180806457333900 [19:38:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193821&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69526&fm=180806457333900&tin=02508201610067®Number=0000000000156251&sum=200000 [19:38:22]OFD Sender: Processing packet 69526 [packets to send 18, broken 17] [19:38:22]ProducePacketName [19:38:22]name=ofd_packets/00069526 [19:38:22]OFD Sender: To server: pG, [19:38:22]CommunicateWithHost lk.salyk.kg:30040 [19:38:22]ConnectInit lk.salyk.kg [19:38:22]written 0, free lines is 4095 [19:38:22]Connected sock=10 [19:38:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 AF 61 04 01 DA 8A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 2D 5C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 96 0F 01 00 35 04 06 00 A4 71 48 A9 98 8C 67 36 EB 81 5E 09 1C E9 [19:38:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 3E FA 47 00 01 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 96 0F 01 00 F4 03 04 00 D3 05 15 67 B6 04 01 00 00 0F 4D F1 D6 D3 12 90 7D [19:38:23]CommunicateWithHost err = 0 [19:38:23]CheckOFDResponse [19:38:23]1017 (14) - 77093643461234 [19:38:23]1041 (16) - 0000000000963346 [19:38:23]1040 (4) - 69526 [19:38:23]1012 (4) - 20.10.2024 13:29 [19:38:23]1206 (1) - 0 [19:38:23]OFD Sender: Remove packet 69526 [19:38:23]ProducePacketName [19:38:23]name=ofd_packets/00069526 [19:38:23]NVStorageDeleteData [19:38:23]Write to MH i2c: 01 00 00 02 0E 10 [19:38:23]Write i2c OK [19:38:23]MH_I2C_Read... [19:38:23]Read from MH i2c: 01 [19:38:23]MH_I2C_Read... [19:38:23]Read from MH i2c: 01 07 00 [19:38:23]MH_I2C_Read... [19:38:23]Read from MH i2c: 01 07 00 02 0E 00 00 00 00 00 F4 0C 17 [19:38:23]RasterBufferAndPrint [19:38:23]line [19:38:23]line [19:38:23]line [19:38:23]line [19:38:23]line [19:38:23]written 0, free lines is 3322 [19:38:23]MH_Cut [19:38:23]Write to MH i2c: D1 01 00 09 0E 01 E9 [19:38:23]Write i2c OK [19:38:23]MH_I2C_Read... [19:38:23]Read from MH i2c: D1 [19:38:23]MH_I2C_Read... [19:38:23]Read from MH i2c: D1 01 00 [19:38:23]MH_I2C_Read... [19:38:23]Read from MH i2c: D1 01 00 09 0E 00 E8 [19:38:23]Write to MH i2c: 01 00 00 0A 0E 18 [19:38:23]Write i2c OK [19:38:23]MH_I2C_Read... [19:38:23]OFD Sender: No OFD packet to send [19:38:23]*** Cut start [19:38:23]*** Partial cut [19:38:23]*** CUTSNS_PIN = 1 [19:38:23]*** CUTSNS_PIN = 0 [19:38:24]*** Brake cut motor [19:38:24]Read from MH i2c: 01 [19:38:24]MH_I2C_Read... [19:38:24]*** Stop cut motor [19:38:24]*** Cut end [19:38:24]Read from MH i2c: 01 07 00 [19:38:24]MH_I2C_Read... [19:38:24]Read from MH i2c: 01 07 00 0A 0E 00 00 00 00 00 FF 0F 2D [19:38:24]process_action close_receipt done [19:38:24]requested_data is exist [19:38:24]produce_requested_data [19:38:24]requested_item fm.sn is exist - process it [19:38:24]wFMCommunicate request_size=4 [19:38:24]MH_SAM_APDU [19:38:24]CAPDU: 80 11 00 00 [19:38:24]Write to MH i2c: E2 08 00 0B 0E 80 11 00 00 00 00 00 00 93 [19:38:24]Write i2c OK [19:38:24]MH_I2C_Read... [19:38:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:24]Read from MH i2c: E2 [19:38:24]MH_I2C_Read... [19:38:24]Read from MH i2c: E2 17 00 [19:38:24]MH_I2C_Read... [19:38:24]Read from MH i2c: E2 17 00 0B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E5 [19:38:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:38:24]wFMCommunicate OK [19:38:24]requested_item fd.num is exist - process it [19:38:24]SAM_PROTO_GetFieldsCounters [19:38:24]wFMCommunicate request_size=4 [19:38:24]MH_SAM_APDU [19:38:24]CAPDU: 80 13 00 00 [19:38:24]Write to MH i2c: E2 08 00 0C 0E 80 13 00 00 00 00 00 00 96 [19:38:24]Write i2c OK [19:38:24]MH_I2C_Read... [19:38:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:38:24]Read from MH i2c: E2 [19:38:24]MH_I2C_Read... [19:38:24]Read from MH i2c: E2 62 00 [19:38:24]MH_I2C_Read... [19:38:24]Read from MH i2c: E2 62 00 0C 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 96 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 73 01 00 00 5E 04 04 00 73 01 00 00 57 04 04 00 74 01 00 00 19 04 04 00 00 00 00 00 90 00 74 [19:38:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 96 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 73 01 00 00 5E 04 04 00 73 01 00 00 57 04 04 00 74 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:38:24]wFMCommunicate OK [19:38:24]SAM_PROTO_GetFieldsCounters done [19:38:24]requested_item shift.num is exist - process it [19:38:24]requested_item shift.opened is exist - process it [19:38:24]req_shift_opened [19:38:24]FM_GetShiftState [19:38:24]SAM_PROTO_GetShiftState [19:38:24]wFMCommunicate request_size=4 [19:38:24]MH_SAM_APDU [19:38:24]CAPDU: 80 13 01 00 [19:38:24]Write to MH i2c: E2 08 00 0D 0E 80 13 01 00 00 00 00 00 98 [19:38:24]Write i2c OK [19:38:24]MH_I2C_Read... [19:38:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:24]Read from MH i2c: E2 [19:38:24]MH_I2C_Read... [19:38:24]Read from MH i2c: E2 0E 00 [19:38:24]MH_I2C_Read... [19:38:24]Read from MH i2c: E2 0E 00 0D 0E 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 9E [19:38:24]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:38:24]wFMCommunicate OK [19:38:24]SAM_PROTO_GetShiftState done [19:38:24]FM_GetShiftState done [19:38:24]req_shift_opened done [19:38:24]requested_item shift.open_date is exist - process it [19:38:24]req_shift_open_date [19:38:24]req_shift_open_date done [19:38:24]produce_requested_data done [19:38:24]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69526,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [19:38:24]process_action_free close_receipt [19:38:24]json_value_free [19:38:24]json_value_free done [19:38:24]process_json_proto returns [19:38:24]Send response to host [19:38:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69526,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [19:38:24]free response buf [19:38:24]execute_script done [19:38:24]execute_script returns [19:38:24]free content buf [19:38:24]Sock 7.Close socket [19:38:24]Sock 7.Thread stoped [19:38:28]OFD Sender: No OFD packet to send [19:38:33]OFD Sender: No OFD packet to send [19:38:38]OFD Sender: No OFD packet to send [19:38:43]OFD Sender: No OFD packet to send [19:38:48]OFD Sender: No OFD packet to send [19:38:53]OFD Sender: No OFD packet to send [19:38:58]OFD Sender: No OFD packet to send [19:39:03]OFD Sender: No OFD packet to send [19:39:08]OFD Sender: No OFD packet to send [19:39:13]OFD Sender: No OFD packet to send [19:39:18]OFD Sender: No OFD packet to send [19:39:23]OFD Sender: No OFD packet to send [19:39:28]OFD Sender: No OFD packet to send [19:39:33]OFD Sender: No OFD packet to send [19:39:38]OFD Sender: No OFD packet to send [19:39:40]accept exits with 9 [19:39:40]New connection [19:39:40]New thread 3066797412 created [19:39:40]Thread 3066654052 joined [19:39:40]Waiting for new connection... [19:39:40] Sock 9.Parse request [19:39:40]Sock 9.Check first char [19:39:40]Sock 9.First char is OK [19:39:40]request: POST /json_proto HTTP/1.0 [19:39:40]Method: POST [19:39:40]URL: /json_proto [19:39:40]Method is POST - this is cgi request [19:39:40]url: /json_proto [19:39:40]query_string will be loaded in cgi processing [19:39:40]execute_cgi json_proto POST (null) [19:39:40]execute_cgi path=json_proto method=POST [19:39:40]POST find Content-Length [19:39:40]Host: 172.17.50.3:8080 [19:39:40]Content-Length: 678 [19:39:40]Content-Type: application/json [19:39:40] [19:39:40]POST finish read [19:39:40]Found Content-Length = 678 [19:39:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:40]execute_script... [19:39:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:40]POST & json_proto [19:39:40]process_json_proto [19:39:40]json parsed OK: [19:39:40]protocol is kg_v1.0 [19:39:40]action value=close_receipt [19:39:40]process_action close_receipt [19:39:40]cmd_close_receipt [19:39:40]MH_GetDate [19:39:40]Write to MH i2c: F0 00 00 0E 0E 0B [19:39:40]Write i2c OK [19:39:40]MH_I2C_Read... [19:39:40]Read from MH i2c: F0 [19:39:40]MH_I2C_Read... [19:39:40]Read from MH i2c: F0 09 00 [19:39:40]MH_I2C_Read... [19:39:40]Read from MH i2c: F0 09 00 0E 0E 00 7D 5C 15 67 6B 98 1E 66 F0 [19:39:40]GetLastDocTimeStamp 1729453101 [19:39:40]current date 1729453181 [19:39:40]FM_GetShiftState [19:39:40]SAM_PROTO_GetShiftState [19:39:40]wFMCommunicate request_size=4 [19:39:40]MH_SAM_APDU [19:39:40]CAPDU: 80 13 01 00 [19:39:40]Write to MH i2c: E2 08 00 0F 0E 80 13 01 00 00 00 00 00 9A [19:39:40]Write i2c OK [19:39:40]MH_I2C_Read... [19:39:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:40]Read from MH i2c: E2 [19:39:40]MH_I2C_Read... [19:39:40]Read from MH i2c: E2 0E 00 [19:39:40]MH_I2C_Read... [19:39:40]Read from MH i2c: E2 0E 00 0F 0E 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 A0 [19:39:40]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:39:40]wFMCommunicate OK [19:39:40]SAM_PROTO_GetShiftState done [19:39:40]FM_GetShiftState done [19:39:40]opened in 1729383220 [19:39:40]opened+sec_in_day 1729469620 [19:39:40]quantity*price = 50041 [19:39:40]sum+1 = 50042 [19:39:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 372 20.10.2024 19:39 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69527 ФПД: 13912345134751 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193941&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69527&fm=13912345134751&tin=02508201610067®Number=0000000000156251&sum=50000 [19:39:41]StoreToDocumentArchive [19:39:41]shift 193 fd 69527 [19:39:41]save to /storage/0193/doc_00069527 [19:39:41]save last doc name /storage/0193/doc_00069527 to /storage/kkm_last_doc_name [19:39:41]save OK [19:39:41]Clear old archive folders... [19:39:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:39:41]tlvbuf is 00F79030 [19:39:41]SAM_PROTO_ClearQueue [19:39:41]wFMCommunicate request_size=4 [19:39:41]MH_SAM_APDU [19:39:41]CAPDU: 80 09 00 00 [19:39:41]Write to MH i2c: E2 08 00 1C 0E 80 09 00 00 00 00 00 00 9C [19:39:41]Write i2c OK [19:39:41]MH_I2C_Read... [19:39:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:39:41]Read from MH i2c: E2 [19:39:41]MH_I2C_Read... [19:39:41]Read from MH i2c: E2 03 00 [19:39:41]MH_I2C_Read... [19:39:41]Read from MH i2c: E2 03 00 1C 0E 00 90 00 9E [19:39:41]RAPDU: 90 00 [19:39:41]wFMCommunicate OK [19:39:41]SAM_PROTO_ClearQueue done [19:39:41]KKMCreateOFDPacket [19:39:41]OFDProtocolAddRootSTLVToBuf [19:39:41]FM_MakeSignedData [19:39:41]FM_MakeSignedData [19:39:41]SAM_PROTO_SignData [19:39:41]wFMCommunicate request_size=4 [19:39:41]MH_SAM_APDU [19:39:41]CAPDU: 80 0D 01 02 [19:39:41]Write to MH i2c: E2 08 00 1D 0E 80 0D 01 02 00 00 00 00 A4 [19:39:41]Write i2c OK [19:39:41]MH_I2C_Read... [19:39:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:39:41]Read from MH i2c: E2 [19:39:41]MH_I2C_Read... [19:39:41]Read from MH i2c: E2 03 00 [19:39:41]MH_I2C_Read... [19:39:41]Read from MH i2c: E2 03 00 1D 0E 00 90 00 9F [19:39:41]RAPDU: 90 00 [19:39:41]wFMCommunicate OK [19:39:41]wFMCommunicate request_size=255 [19:39:41]MH_SAM_APDU [19:39:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 7D 5C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 97 0F 01 00 35 04 06 00 0C [19:39:41]Write to MH i2c: E2 02 01 1E 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 7D 5C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 97 0F 01 00 35 04 06 00 0C 00 00 6B [19:39:41]Write i2c OK [19:39:41]MH_I2C_Read... [19:39:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:42]Read from MH i2c: E2 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: E2 03 00 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: E2 03 00 1E 0E 00 90 00 A0 [19:39:42]RAPDU: 90 00 [19:39:42]wFMCommunicate OK [19:39:42]wFMCommunicate request_size=10 [19:39:42]MH_SAM_APDU [19:39:42]CAPDU: 80 0D 02 02 05 A7 38 63 C6 9F [19:39:42]Write to MH i2c: E2 0D 00 1F 0E 80 0D 02 02 05 00 A7 38 63 C6 9F 00 00 58 [19:39:42]Write i2c OK [19:39:42]MH_I2C_Read... [19:39:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:42]Read from MH i2c: E2 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: E2 03 00 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: E2 03 00 1F 0E 00 90 00 A1 [19:39:42]RAPDU: 90 00 [19:39:42]wFMCommunicate OK [19:39:42]wFMCommunicate request_size=4 [19:39:42]MH_SAM_APDU [19:39:42]CAPDU: 80 0D 03 02 [19:39:42]Write to MH i2c: E2 08 00 20 0E 80 0D 03 02 00 00 00 00 A9 [19:39:42]Write i2c OK [19:39:42]MH_I2C_Read... [19:39:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:39:42]Read from MH i2c: E2 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: E2 0B 00 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: E2 0B 00 20 0E 00 D3 C3 A8 D7 CA 60 14 5B 90 00 58 [19:39:42]RAPDU: D3 C3 A8 D7 CA 60 14 5B 90 00 [19:39:42]wFMCommunicate OK [19:39:42]SAM_PROTO_SignData done [19:39:42]FM_MakeSignedData done [19:39:42]CreateOFDProtocolMessage [19:39:42]wFMCommunicate request_size=4 [19:39:42]MH_SAM_APDU [19:39:42]CAPDU: 80 11 00 00 [19:39:42]Write to MH i2c: E2 08 00 21 0E 80 11 00 00 00 00 00 00 A9 [19:39:42]Write i2c OK [19:39:42]MH_I2C_Read... [19:39:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:42]Read from MH i2c: E2 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: E2 17 00 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: E2 17 00 21 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FB [19:39:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:39:42]wFMCommunicate OK [19:39:42]CreateOFDProtocolMessage done [19:39:42]OFDSenderStorePacket 69527 [19:39:42]StoreOFDPacket docnum=69527 [19:39:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 B7 DF 07 01 E1 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 7D 5C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 97 0F 01 00 35 04 06 00 0C A7 38 63 C6 9F D3 C3 A8 D7 CA 60 14 5B [19:39:42]CheckFolder [19:39:42]dirname=/storage/ofd_packets [19:39:42]CheckFolder done [19:39:42]ProducePacketName [19:39:42]name=ofd_packets/00069527 [19:39:42]NVStorageSaveData ofd_packets/00069527 [19:39:42]File name is /storage/ofd_packets/00069527 [19:39:42]Write 301 bytes [19:39:42]NVStorageSaveData done [19:39:42]OFDSenderStorePacket done [19:39:42]KKMCreateOFDPacket done [19:39:42]NVStorageSaveData kkm_last_timestamp [19:39:42]File name is /storage/kkm_last_timestamp [19:39:42]Write 4 bytes [19:39:42]NVStorageSaveData done [19:39:42]ExternCall_PrintAddStr [19:39:42]wPrintStart [19:39:42]Write to MH i2c: 01 00 00 22 0E 30 [19:39:42]Write i2c OK [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: 01 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: 01 07 00 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: 01 07 00 22 0E 00 00 00 00 00 FF 0F 45 [19:39:42]RasterBufferAndPrint [19:39:42]line Счет N : (1)2885267 [19:39:42]line ИНН: 02508201610067 [19:39:42]line Контрольно-Кассовый Чек [19:39:42]line ПРОДАЖА [19:39:42]line ТРК (МРК, ГНК) : 12 [19:39:42]line Товар: 2710124130 [19:39:42]line Аи-92-К-5 [19:39:42]line 7.480 * 66.90 [19:39:42]line = 500.41 [19:39:42]line НДС 12% НСП 1% [19:39:42]line > о реализуемом товаре [19:39:42]line ОКРУГЛЕНИЕ: -0.41 [19:39:42]line ИТОГО: 500.00 [19:39:42]line Внесено: 500.00 [19:39:42]line СДАЧА: 0.00 [19:39:42]line НСП 1% : 4.43 [19:39:42]line НДС 12% : 53.14 [19:39:42]line Наличными: 500.00 [19:39:42]line Безнал.: 0.00 [19:39:42]line Место: АЗС № 85 "Партнер Нефть" [19:39:42]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:39:42]line СНО: Общий режим [19:39:42]line Чек 372 20.10.2024 19:39 [19:39:42]line Смена: 193 ФФД: 1.0 [19:39:42]line ЗНМ: 0300000167 [19:39:42]line РНМ: 0000000000156251 [19:39:42]line Версия ККМ: v1.0 [19:39:42]line ФМ: 0000000000963346 [19:39:42]line ФД: 69527 [19:39:42]line ФПД: 13912345134751 [19:39:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T193941&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69527&fm=13912345134751&tin=02508201610067®Number=0000000000156251&sum=50000 [19:39:42]OFD Sender: Processing packet 69527 [packets to send 18, broken 17] [19:39:42]ProducePacketName [19:39:42]name=ofd_packets/00069527 [19:39:42]OFD Sender: To server: pG, [19:39:42]CommunicateWithHost lk.salyk.kg:30040 [19:39:42]ConnectInit lk.salyk.kg [19:39:42]written 0, free lines is 4095 [19:39:42]Connected sock=11 [19:39:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 B7 DF 07 01 E1 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 7D 5C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 97 0F 01 00 35 04 06 00 0C A7 38 63 C6 9F D3 C3 A8 D7 CA 60 14 5B [19:39:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 23 AC 47 00 1E A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 97 0F 01 00 F4 03 04 00 23 06 15 67 B6 04 01 00 00 5B 93 99 40 B0 CD 8F 69 [19:39:43]CommunicateWithHost err = 0 [19:39:43]CheckOFDResponse [19:39:43]1017 (14) - 77093643461234 [19:39:43]1041 (16) - 0000000000963346 [19:39:43]1040 (4) - 69527 [19:39:43]1012 (4) - 20.10.2024 13:31 [19:39:43]1206 (1) - 0 [19:39:43]OFD Sender: Remove packet 69527 [19:39:43]ProducePacketName [19:39:43]name=ofd_packets/00069527 [19:39:43]NVStorageDeleteData [19:39:43]Write to MH i2c: 01 00 00 4D 0E 5B [19:39:43]Write i2c OK [19:39:43]MH_I2C_Read... [19:39:43]Read from MH i2c: 01 [19:39:43]MH_I2C_Read... [19:39:43]Read from MH i2c: 01 07 00 [19:39:43]MH_I2C_Read... [19:39:43]Read from MH i2c: 01 07 00 4D 0E 00 00 00 00 00 E8 0C 56 [19:39:43]RasterBufferAndPrint [19:39:43]line [19:39:43]line [19:39:43]line [19:39:43]line [19:39:43]line [19:39:43]written 0, free lines is 3310 [19:39:43]MH_Cut [19:39:43]Write to MH i2c: D1 01 00 54 0E 01 34 [19:39:43]Write i2c OK [19:39:43]MH_I2C_Read... [19:39:43]Read from MH i2c: D1 [19:39:43]MH_I2C_Read... [19:39:43]Read from MH i2c: D1 01 00 [19:39:43]MH_I2C_Read... [19:39:43]Read from MH i2c: D1 01 00 54 0E 00 33 [19:39:43]Write to MH i2c: 01 00 00 55 0E 63 [19:39:43]Write i2c OK [19:39:43]MH_I2C_Read... [19:39:43]OFD Sender: No OFD packet to send [19:39:43]*** Cut start [19:39:43]*** Partial cut [19:39:43]*** CUTSNS_PIN = 1 [19:39:43]*** CUTSNS_PIN = 0 [19:39:44]*** Brake cut motor [19:39:44]Read from MH i2c: 01 [19:39:44]MH_I2C_Read... [19:39:44]*** Stop cut motor [19:39:44]*** Cut end [19:39:44]Read from MH i2c: 01 07 00 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: 01 07 00 55 0E 00 00 00 00 00 FF 0F 78 [19:39:44]process_action close_receipt done [19:39:44]requested_data is exist [19:39:44]produce_requested_data [19:39:44]requested_item fm.sn is exist - process it [19:39:44]wFMCommunicate request_size=4 [19:39:44]MH_SAM_APDU [19:39:44]CAPDU: 80 11 00 00 [19:39:44]Write to MH i2c: E2 08 00 56 0E 80 11 00 00 00 00 00 00 DE [19:39:44]Write i2c OK [19:39:44]MH_I2C_Read... [19:39:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:44]Read from MH i2c: E2 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: E2 17 00 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: E2 17 00 56 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 30 [19:39:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:39:44]wFMCommunicate OK [19:39:44]requested_item fd.num is exist - process it [19:39:44]SAM_PROTO_GetFieldsCounters [19:39:44]wFMCommunicate request_size=4 [19:39:44]MH_SAM_APDU [19:39:44]CAPDU: 80 13 00 00 [19:39:44]Write to MH i2c: E2 08 00 57 0E 80 13 00 00 00 00 00 00 E1 [19:39:44]Write i2c OK [19:39:44]MH_I2C_Read... [19:39:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:39:44]Read from MH i2c: E2 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: E2 62 00 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: E2 62 00 57 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 97 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 74 01 00 00 5E 04 04 00 74 01 00 00 57 04 04 00 75 01 00 00 19 04 04 00 00 00 00 00 90 00 C3 [19:39:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 97 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 74 01 00 00 5E 04 04 00 74 01 00 00 57 04 04 00 75 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:39:44]wFMCommunicate OK [19:39:44]SAM_PROTO_GetFieldsCounters done [19:39:44]requested_item shift.num is exist - process it [19:39:44]requested_item shift.opened is exist - process it [19:39:44]req_shift_opened [19:39:44]FM_GetShiftState [19:39:44]SAM_PROTO_GetShiftState [19:39:44]wFMCommunicate request_size=4 [19:39:44]MH_SAM_APDU [19:39:44]CAPDU: 80 13 01 00 [19:39:44]Write to MH i2c: E2 08 00 58 0E 80 13 01 00 00 00 00 00 E3 [19:39:44]Write i2c OK [19:39:44]MH_I2C_Read... [19:39:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:44]Read from MH i2c: E2 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: E2 0E 00 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: E2 0E 00 58 0E 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 E9 [19:39:44]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:39:44]wFMCommunicate OK [19:39:44]SAM_PROTO_GetShiftState done [19:39:44]FM_GetShiftState done [19:39:44]req_shift_opened done [19:39:44]requested_item shift.open_date is exist - process it [19:39:44]req_shift_open_date [19:39:44]req_shift_open_date done [19:39:44]produce_requested_data done [19:39:44]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69527,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [19:39:44]process_action_free close_receipt [19:39:44]json_value_free [19:39:44]json_value_free done [19:39:44]process_json_proto returns [19:39:44]Send response to host [19:39:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69527,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [19:39:44]free response buf [19:39:44]execute_script done [19:39:44]execute_script returns [19:39:44]free content buf [19:39:44]Sock 9.Close socket [19:39:44]Sock 9.Thread stoped [19:39:48]OFD Sender: No OFD packet to send [19:39:53]OFD Sender: No OFD packet to send [19:39:58]OFD Sender: No OFD packet to send [19:40:03]OFD Sender: No OFD packet to send [19:40:08]OFD Sender: No OFD packet to send [19:40:13]OFD Sender: No OFD packet to send [19:40:18]OFD Sender: No OFD packet to send [19:40:23]OFD Sender: No OFD packet to send [19:40:28]OFD Sender: No OFD packet to send [19:40:33]OFD Sender: No OFD packet to send [19:40:38]OFD Sender: No OFD packet to send [19:40:43]OFD Sender: No OFD packet to send [19:40:48]OFD Sender: No OFD packet to send [19:40:53]OFD Sender: No OFD packet to send [19:40:58]OFD Sender: No OFD packet to send [19:41:03]OFD Sender: No OFD packet to send [19:41:08]OFD Sender: No OFD packet to send [19:41:13]OFD Sender: No OFD packet to send [19:41:18]OFD Sender: No OFD packet to send [19:41:23]OFD Sender: No OFD packet to send [19:41:28]OFD Sender: No OFD packet to send [19:41:33]OFD Sender: No OFD packet to send [19:41:38]OFD Sender: No OFD packet to send [19:41:43]OFD Sender: No OFD packet to send [19:41:48]OFD Sender: No OFD packet to send [19:41:53]OFD Sender: No OFD packet to send [19:41:58]OFD Sender: No OFD packet to send [19:42:03]OFD Sender: No OFD packet to send [19:42:08]OFD Sender: No OFD packet to send [19:42:13]OFD Sender: No OFD packet to send [19:42:18]OFD Sender: No OFD packet to send [19:42:23]OFD Sender: No OFD packet to send [19:42:28]OFD Sender: No OFD packet to send [19:42:33]OFD Sender: No OFD packet to send [19:42:38]OFD Sender: No OFD packet to send [19:42:43]OFD Sender: No OFD packet to send [19:42:43]accept exits with 7 [19:42:43]New connection [19:42:43]New thread 3066654052 created [19:42:43]Thread 3066797412 joined [19:42:43]Waiting for new connection... [19:42:43] Sock 7.Parse request [19:42:43]Sock 7.Check first char [19:42:43]Sock 7.First char is OK [19:42:43]request: POST /json_proto HTTP/1.0 [19:42:43]Method: POST [19:42:43]URL: /json_proto [19:42:43]Method is POST - this is cgi request [19:42:43]url: /json_proto [19:42:43]query_string will be loaded in cgi processing [19:42:43]execute_cgi json_proto POST (null) [19:42:43]execute_cgi path=json_proto method=POST [19:42:43]POST find Content-Length [19:42:43]Host: 172.17.50.3:8080 [19:42:43]Content-Length: 680 [19:42:43]Content-Type: application/json [19:42:43] [19:42:43]POST finish read [19:42:43]Found Content-Length = 680 [19:42:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:43]execute_script... [19:42: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)2885268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:43]POST & json_proto [19:42:43]process_json_proto [19:42:43]json parsed OK: [19:42:43]protocol is kg_v1.0 [19:42:43]action value=close_receipt [19:42:43]process_action close_receipt [19:42:43]cmd_close_receipt [19:42:43]MH_GetDate [19:42:43]Write to MH i2c: F0 00 00 59 0E 56 [19:42:43]Write i2c OK [19:42:43]MH_I2C_Read... [19:42:43]Read from MH i2c: F0 [19:42:43]MH_I2C_Read... [19:42:43]Read from MH i2c: F0 09 00 [19:42:43]MH_I2C_Read... [19:42:43]Read from MH i2c: F0 09 00 59 0E 00 34 5D 15 67 6B 98 1E 66 F3 [19:42:43]GetLastDocTimeStamp 1729453181 [19:42:43]current date 1729453364 [19:42:43]FM_GetShiftState [19:42:43]SAM_PROTO_GetShiftState [19:42:43]wFMCommunicate request_size=4 [19:42:43]MH_SAM_APDU [19:42:43]CAPDU: 80 13 01 00 [19:42:43]Write to MH i2c: E2 08 00 5A 0E 80 13 01 00 00 00 00 00 E5 [19:42:43]Write i2c OK [19:42:43]MH_I2C_Read... [19:42:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:43]Read from MH i2c: E2 [19:42:43]MH_I2C_Read... [19:42:43]Read from MH i2c: E2 0E 00 [19:42:43]MH_I2C_Read... [19:42:43]Read from MH i2c: E2 0E 00 5A 0E 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 EB [19:42:43]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:42:43]wFMCommunicate OK [19:42:43]SAM_PROTO_GetShiftState done [19:42:43]FM_GetShiftState done [19:42:43]opened in 1729383220 [19:42:43]opened+sec_in_day 1729469620 [19:42:43]quantity*price = 150037 [19:42:43]sum+1 = 150039 [19:42:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 373 20.10.2024 19:42 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69528 ФПД: 35761852863424 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194244&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69528&fm=35761852863424&tin=02508201610067®Number=0000000000156251&sum=150000 [19:42:44]StoreToDocumentArchive [19:42:44]shift 193 fd 69528 [19:42:44]save to /storage/0193/doc_00069528 [19:42:44]save last doc name /storage/0193/doc_00069528 to /storage/kkm_last_doc_name [19:42:44]save OK [19:42:44]Clear old archive folders... [19:42:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:42:44]tlvbuf is 00F47310 [19:42:44]SAM_PROTO_ClearQueue [19:42:44]wFMCommunicate request_size=4 [19:42:44]MH_SAM_APDU [19:42:44]CAPDU: 80 09 00 00 [19:42:44]Write to MH i2c: E2 08 00 67 0E 80 09 00 00 00 00 00 00 E7 [19:42:44]Write i2c OK [19:42:44]MH_I2C_Read... [19:42:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:42:45]Read from MH i2c: E2 [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: E2 03 00 [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: E2 03 00 67 0E 00 90 00 E9 [19:42:45]RAPDU: 90 00 [19:42:45]wFMCommunicate OK [19:42:45]SAM_PROTO_ClearQueue done [19:42:45]KKMCreateOFDPacket [19:42:45]OFDProtocolAddRootSTLVToBuf [19:42:45]FM_MakeSignedData [19:42:45]FM_MakeSignedData [19:42:45]SAM_PROTO_SignData [19:42:45]wFMCommunicate request_size=4 [19:42:45]MH_SAM_APDU [19:42:45]CAPDU: 80 0D 01 02 [19:42:45]Write to MH i2c: E2 08 00 68 0E 80 0D 01 02 00 00 00 00 EF [19:42:45]Write i2c OK [19:42:45]MH_I2C_Read... [19:42:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:42:45]Read from MH i2c: E2 [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: E2 03 00 [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: E2 03 00 68 0E 00 90 00 EA [19:42:45]RAPDU: 90 00 [19:42:45]wFMCommunicate OK [19:42:45]wFMCommunicate request_size=255 [19:42:45]MH_SAM_APDU [19:42: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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 01 00 00 F4 03 04 00 34 5D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 98 0F 01 00 35 04 06 00 20 86 74 89 [19:42:45]Write to MH i2c: E2 02 01 69 0E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 01 00 00 F4 03 04 00 34 5D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 98 0F 01 00 35 04 06 00 20 86 74 89 00 00 74 [19:42:45]Write i2c OK [19:42:45]MH_I2C_Read... [19:42:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:45]Read from MH i2c: E2 [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: E2 03 00 [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: E2 03 00 69 0E 00 90 00 EB [19:42:45]RAPDU: 90 00 [19:42:45]wFMCommunicate OK [19:42:45]wFMCommunicate request_size=7 [19:42:45]MH_SAM_APDU [19:42:45]CAPDU: 80 0D 02 02 02 53 C0 [19:42:45]Write to MH i2c: E2 0A 00 6A 0E 80 0D 02 02 02 00 53 C0 00 00 09 [19:42:45]Write i2c OK [19:42:45]MH_I2C_Read... [19:42:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:45]Read from MH i2c: E2 [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: E2 03 00 [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: E2 03 00 6A 0E 00 90 00 EC [19:42:45]RAPDU: 90 00 [19:42:45]wFMCommunicate OK [19:42:45]wFMCommunicate request_size=4 [19:42:45]MH_SAM_APDU [19:42:45]CAPDU: 80 0D 03 02 [19:42:45]Write to MH i2c: E2 08 00 6B 0E 80 0D 03 02 00 00 00 00 F4 [19:42:45]Write i2c OK [19:42:45]MH_I2C_Read... [19:42:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:42:45]Read from MH i2c: E2 [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: E2 0B 00 [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: E2 0B 00 6B 0E 00 B5 A9 24 79 BD BC 98 9F 90 00 A0 [19:42:45]RAPDU: B5 A9 24 79 BD BC 98 9F 90 00 [19:42:45]wFMCommunicate OK [19:42:45]SAM_PROTO_SignData done [19:42:45]FM_MakeSignedData done [19:42:45]CreateOFDProtocolMessage [19:42:45]wFMCommunicate request_size=4 [19:42:45]MH_SAM_APDU [19:42:45]CAPDU: 80 11 00 00 [19:42:45]Write to MH i2c: E2 08 00 6C 0E 80 11 00 00 00 00 00 00 F4 [19:42:45]Write i2c OK [19:42:45]MH_I2C_Read... [19:42:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:45]Read from MH i2c: E2 [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: E2 17 00 [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: E2 17 00 6C 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 46 [19:42:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:42:45]wFMCommunicate OK [19:42:45]CreateOFDProtocolMessage done [19:42:45]OFDSenderStorePacket 69528 [19:42:45]StoreOFDPacket docnum=69528 [19:42:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 A2 F5 04 01 53 FF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 01 00 00 F4 03 04 00 34 5D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 98 0F 01 00 35 04 06 00 20 86 74 89 53 C0 B5 A9 24 79 BD BC 98 9F [19:42:45]CheckFolder [19:42:45]dirname=/storage/ofd_packets [19:42:45]CheckFolder done [19:42:45]ProducePacketName [19:42:45]name=ofd_packets/00069528 [19:42:45]NVStorageSaveData ofd_packets/00069528 [19:42:45]File name is /storage/ofd_packets/00069528 [19:42:45]Write 298 bytes [19:42:45]NVStorageSaveData done [19:42:45]OFDSenderStorePacket done [19:42:45]KKMCreateOFDPacket done [19:42:45]NVStorageSaveData kkm_last_timestamp [19:42:45]File name is /storage/kkm_last_timestamp [19:42:45]Write 4 bytes [19:42:45]NVStorageSaveData done [19:42:45]ExternCall_PrintAddStr [19:42:45]wPrintStart [19:42:45]Write to MH i2c: 01 00 00 6D 0E 7B [19:42:45]Write i2c OK [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: 01 [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: 01 07 00 [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: 01 07 00 6D 0E 00 00 00 00 00 FF 0F 90 [19:42:45]RasterBufferAndPrint [19:42:45]line Счет N : (1)2885268 [19:42:45]line ИНН: 02508201610067 [19:42:45]line Контрольно-Кассовый Чек [19:42:45]line ПРОДАЖА [19:42:45]line ТРК (МРК, ГНК) : 61 [19:42:45]line Товар: 2710194210 [19:42:45]line ДТ-К-5 [19:42:45]line 19.690 * 76.20 [19:42:45]line = 1500.38 [19:42:45]line НДС 12% НСП 1% [19:42:45]line > о реализуемом товаре [19:42:45]line ОКРУГЛЕНИЕ: -0.38 [19:42:45]line ИТОГО: 1500.00 [19:42:45]line Внесено: 1500.00 [19:42:45]line СДАЧА: 0.00 [19:42:45]line НСП 1% : 13.28 [19:42:45]line НДС 12% : 159.33 [19:42:45]line Наличными: 1500.00 [19:42:45]line Безнал.: 0.00 [19:42:45]line Место: АЗС № 85 "Партнер Нефть" [19:42:45]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:42:45]line СНО: Общий режим [19:42:45]line Чек 373 20.10.2024 19:42 [19:42:45]line Смена: 193 ФФД: 1.0 [19:42:45]line ЗНМ: 0300000167 [19:42:45]line РНМ: 0000000000156251 [19:42:45]line Версия ККМ: v1.0 [19:42:45]line ФМ: 0000000000963346 [19:42:45]line ФД: 69528 [19:42:45]line ФПД: 35761852863424 [19:42:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194244&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69528&fm=35761852863424&tin=02508201610067®Number=0000000000156251&sum=150000 [19:42:45]OFD Sender: Processing packet 69528 [packets to send 18, broken 17] [19:42:45]ProducePacketName [19:42:45]name=ofd_packets/00069528 [19:42:45]OFD Sender: To server: pG, [19:42:45]CommunicateWithHost lk.salyk.kg:30040 [19:42:45]ConnectInit lk.salyk.kg [19:42:45]written 0, free lines is 4095 [19:42:45]Connected sock=10 [19:42:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 A2 F5 04 01 53 FF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 01 00 00 F4 03 04 00 34 5D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 98 0F 01 00 35 04 06 00 20 86 74 89 53 C0 B5 A9 24 79 BD BC 98 9F [19:42:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 2B 0B 47 00 B6 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 98 0F 01 00 F4 03 04 00 DA 06 15 67 B6 04 01 00 00 D7 83 5E EF 2E 9F 9B 6E [19:42:46]CommunicateWithHost err = 0 [19:42:46]CheckOFDResponse [19:42:46]1017 (14) - 77093643461234 [19:42:46]1041 (16) - 0000000000963346 [19:42:46]1040 (4) - 69528 [19:42:46]1012 (4) - 20.10.2024 13:34 [19:42:46]1206 (1) - 0 [19:42:46]OFD Sender: Remove packet 69528 [19:42:46]ProducePacketName [19:42:46]name=ofd_packets/00069528 [19:42:46]NVStorageDeleteData [19:42:46]Write to MH i2c: 01 00 00 98 0E A6 [19:42:46]Write i2c OK [19:42:46]MH_I2C_Read... [19:42:46]Read from MH i2c: 01 [19:42:46]MH_I2C_Read... [19:42:46]Read from MH i2c: 01 07 00 [19:42:46]MH_I2C_Read... [19:42:46]Read from MH i2c: 01 07 00 98 0E 00 00 00 00 00 F1 0C AA [19:42:46]RasterBufferAndPrint [19:42:46]line [19:42:46]line [19:42:46]line [19:42:46]line [19:42:46]line [19:42:46]written 0, free lines is 3319 [19:42:46]MH_Cut [19:42:46]Write to MH i2c: D1 01 00 9F 0E 01 7F [19:42:46]Write i2c OK [19:42:46]MH_I2C_Read... [19:42:46]Read from MH i2c: D1 [19:42:46]MH_I2C_Read... [19:42:46]Read from MH i2c: D1 01 00 [19:42:46]MH_I2C_Read... [19:42:46]Read from MH i2c: D1 01 00 9F 0E 00 7E [19:42:46]Write to MH i2c: 01 00 00 A0 0E AE [19:42:46]Write i2c OK [19:42:46]MH_I2C_Read... [19:42:46]OFD Sender: No OFD packet to send [19:42:46]*** Cut start [19:42:46]*** Partial cut [19:42:46]*** CUTSNS_PIN = 1 [19:42:47]*** CUTSNS_PIN = 0 [19:42:47]*** Brake cut motor [19:42:47]Read from MH i2c: 01 [19:42:47]MH_I2C_Read... [19:42:47]*** Stop cut motor [19:42:47]*** Cut end [19:42:47]Read from MH i2c: 01 07 00 [19:42:47]MH_I2C_Read... [19:42:47]Read from MH i2c: 01 07 00 A0 0E 00 00 00 00 00 FF 0F C3 [19:42:47]process_action close_receipt done [19:42:47]requested_data is exist [19:42:47]produce_requested_data [19:42:47]requested_item fm.sn is exist - process it [19:42:47]wFMCommunicate request_size=4 [19:42:47]MH_SAM_APDU [19:42:47]CAPDU: 80 11 00 00 [19:42:47]Write to MH i2c: E2 08 00 A1 0E 80 11 00 00 00 00 00 00 29 [19:42:47]Write i2c OK [19:42:47]MH_I2C_Read... [19:42:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:47]Read from MH i2c: E2 [19:42:47]MH_I2C_Read... [19:42:47]Read from MH i2c: E2 17 00 [19:42:47]MH_I2C_Read... [19:42:47]Read from MH i2c: E2 17 00 A1 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7B [19:42:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:42:47]wFMCommunicate OK [19:42:47]requested_item fd.num is exist - process it [19:42:47]SAM_PROTO_GetFieldsCounters [19:42:47]wFMCommunicate request_size=4 [19:42:47]MH_SAM_APDU [19:42:47]CAPDU: 80 13 00 00 [19:42:47]Write to MH i2c: E2 08 00 A2 0E 80 13 00 00 00 00 00 00 2C [19:42:47]Write i2c OK [19:42:47]MH_I2C_Read... [19:42:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:42:47]Read from MH i2c: E2 [19:42:47]MH_I2C_Read... [19:42:47]Read from MH i2c: E2 62 00 [19:42:47]MH_I2C_Read... [19:42:47]Read from MH i2c: E2 62 00 A2 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 98 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 75 01 00 00 5E 04 04 00 75 01 00 00 57 04 04 00 76 01 00 00 19 04 04 00 00 00 00 00 90 00 12 [19:42:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 98 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 75 01 00 00 5E 04 04 00 75 01 00 00 57 04 04 00 76 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:42:47]wFMCommunicate OK [19:42:47]SAM_PROTO_GetFieldsCounters done [19:42:47]requested_item shift.num is exist - process it [19:42:47]requested_item shift.opened is exist - process it [19:42:47]req_shift_opened [19:42:47]FM_GetShiftState [19:42:47]SAM_PROTO_GetShiftState [19:42:47]wFMCommunicate request_size=4 [19:42:47]MH_SAM_APDU [19:42:47]CAPDU: 80 13 01 00 [19:42:47]Write to MH i2c: E2 08 00 A3 0E 80 13 01 00 00 00 00 00 2E [19:42:47]Write i2c OK [19:42:47]MH_I2C_Read... [19:42:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:47]Read from MH i2c: E2 [19:42:47]MH_I2C_Read... [19:42:47]Read from MH i2c: E2 0E 00 [19:42:47]MH_I2C_Read... [19:42:47]Read from MH i2c: E2 0E 00 A3 0E 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 34 [19:42:47]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:42:47]wFMCommunicate OK [19:42:47]SAM_PROTO_GetShiftState done [19:42:47]FM_GetShiftState done [19:42:47]req_shift_opened done [19:42:47]requested_item shift.open_date is exist - process it [19:42:47]req_shift_open_date [19:42:47]req_shift_open_date done [19:42:47]produce_requested_data done [19:42:47]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69528,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [19:42:47]process_action_free close_receipt [19:42:47]json_value_free [19:42:47]json_value_free done [19:42:47]process_json_proto returns [19:42:47]Send response to host [19:42:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69528,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [19:42:47]free response buf [19:42:47]execute_script done [19:42:47]execute_script returns [19:42:47]free content buf [19:42:47]Sock 7.Close socket [19:42:47]Sock 7.Thread stoped [19:42:51]OFD Sender: No OFD packet to send [19:42:56]OFD Sender: No OFD packet to send [19:43:01]OFD Sender: No OFD packet to send [19:43:06]OFD Sender: No OFD packet to send [19:43:11]OFD Sender: No OFD packet to send [19:43:16]OFD Sender: No OFD packet to send [19:43:21]OFD Sender: No OFD packet to send [19:43:26]OFD Sender: No OFD packet to send [19:43:31]OFD Sender: No OFD packet to send [19:43:36]OFD Sender: No OFD packet to send [19:43:41]OFD Sender: No OFD packet to send [19:43:46]OFD Sender: No OFD packet to send [19:43:51]OFD Sender: No OFD packet to send [19:43:56]OFD Sender: No OFD packet to send [19:44:01]OFD Sender: No OFD packet to send [19:44:06]OFD Sender: No OFD packet to send [19:44:11]OFD Sender: No OFD packet to send [19:44:16]OFD Sender: No OFD packet to send [19:44:21]OFD Sender: No OFD packet to send [19:44:26]OFD Sender: No OFD packet to send [19:44:31]accept exits with 9 [19:44:31]New connection [19:44:31]New thread 3066797412 created [19:44:31]Thread 3066654052 joined [19:44:31]Waiting for new connection... [19:44:31] Sock 9.Parse request [19:44:31]Sock 9.Check first char [19:44:31]Sock 9.First char is OK [19:44:31]request: POST /json_proto HTTP/1.0 [19:44:31]Method: POST [19:44:31]URL: /json_proto [19:44:31]Method is POST - this is cgi request [19:44:31]url: /json_proto [19:44:31]query_string will be loaded in cgi processing [19:44:31]execute_cgi json_proto POST (null) [19:44:31]execute_cgi path=json_proto method=POST [19:44:31]POST find Content-Length [19:44:31]Host: 172.17.50.3:8080 [19:44:31]Content-Length: 683 [19:44:31]Content-Type: application/json [19:44:31] [19:44:31]POST finish read [19:44:31]Found Content-Length = 683 [19:44:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:31]execute_script... [19:44: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)2885270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:31]POST & json_proto [19:44:31]process_json_proto [19:44:31]json parsed OK: [19:44:31]protocol is kg_v1.0 [19:44:31]action value=close_receipt [19:44:31]process_action close_receipt [19:44:31]cmd_close_receipt [19:44:31]MH_GetDate [19:44:31]Write to MH i2c: F0 00 00 A4 0E A1 [19:44:31]Write i2c OK [19:44:31]MH_I2C_Read... [19:44:31]Read from MH i2c: F0 [19:44:31]MH_I2C_Read... [19:44:31]Read from MH i2c: F0 09 00 [19:44:31]MH_I2C_Read... [19:44:31]Read from MH i2c: F0 09 00 A4 0E 00 9F 5D 15 67 6B 98 1E 66 A9 [19:44:31]GetLastDocTimeStamp 1729453364 [19:44:31]current date 1729453471 [19:44:31]FM_GetShiftState [19:44:31]SAM_PROTO_GetShiftState [19:44:31]wFMCommunicate request_size=4 [19:44:31]MH_SAM_APDU [19:44:31]CAPDU: 80 13 01 00 [19:44:31]Write to MH i2c: E2 08 00 A5 0E 80 13 01 00 00 00 00 00 30 [19:44:31]Write i2c OK [19:44:31]MH_I2C_Read... [19:44:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:31]Read from MH i2c: E2 [19:44:31]MH_I2C_Read... [19:44:31]Read from MH i2c: E2 0E 00 [19:44:31]MH_I2C_Read... [19:44:31]Read from MH i2c: E2 0E 00 A5 0E 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 36 [19:44:31]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:44:31]wFMCommunicate OK [19:44:31]SAM_PROTO_GetShiftState done [19:44:31]FM_GetShiftState done [19:44:31]opened in 1729383220 [19:44:31]opened+sec_in_day 1729469620 [19:44:31]quantity*price = 100015 [19:44:31]sum+1 = 100017 [19:44:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 374 20.10.2024 19:44 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69529 ФПД: 233960598952473 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194431&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69529&fm=233960598952473&tin=02508201610067®Number=0000000000156251&sum=100000 [19:44:32]StoreToDocumentArchive [19:44:32]shift 193 fd 69529 [19:44:32]save to /storage/0193/doc_00069529 [19:44:32]save last doc name /storage/0193/doc_00069529 to /storage/kkm_last_doc_name [19:44:32]save OK [19:44:32]Clear old archive folders... [19:44:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:44:32]tlvbuf is 00F7BCD0 [19:44:32]SAM_PROTO_ClearQueue [19:44:32]wFMCommunicate request_size=4 [19:44:32]MH_SAM_APDU [19:44:32]CAPDU: 80 09 00 00 [19:44:32]Write to MH i2c: E2 08 00 B2 0E 80 09 00 00 00 00 00 00 32 [19:44:32]Write i2c OK [19:44:32]MH_I2C_Read... [19:44:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:44:32]Read from MH i2c: E2 [19:44:32]MH_I2C_Read... [19:44:32]Read from MH i2c: E2 03 00 [19:44:32]MH_I2C_Read... [19:44:32]Read from MH i2c: E2 03 00 B2 0E 00 90 00 34 [19:44:32]RAPDU: 90 00 [19:44:32]wFMCommunicate OK [19:44:32]SAM_PROTO_ClearQueue done [19:44:32]KKMCreateOFDPacket [19:44:32]OFDProtocolAddRootSTLVToBuf [19:44:32]FM_MakeSignedData [19:44:32]FM_MakeSignedData [19:44:32]SAM_PROTO_SignData [19:44:32]wFMCommunicate request_size=4 [19:44:32]MH_SAM_APDU [19:44:32]CAPDU: 80 0D 01 02 [19:44:32]Write to MH i2c: E2 08 00 B3 0E 80 0D 01 02 00 00 00 00 3A [19:44:32]Write i2c OK [19:44:32]MH_I2C_Read... [19:44:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:44:32]Read from MH i2c: E2 [19:44:32]MH_I2C_Read... [19:44:32]Read from MH i2c: E2 03 00 [19:44:32]MH_I2C_Read... [19:44:32]Read from MH i2c: E2 03 00 B3 0E 00 90 00 35 [19:44:32]RAPDU: 90 00 [19:44:32]wFMCommunicate OK [19:44:32]wFMCommunicate request_size=255 [19:44:32]MH_SAM_APDU [19:44:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 01 00 00 F4 03 04 00 9F 5D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 99 0F 01 00 35 04 06 00 D4 [19:44:32]Write to MH i2c: E2 02 01 B4 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 01 00 00 F4 03 04 00 9F 5D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 99 0F 01 00 35 04 06 00 D4 00 00 EA [19:44:32]Write i2c OK [19:44:32]MH_I2C_Read... [19:44:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:32]Read from MH i2c: E2 [19:44:32]MH_I2C_Read... [19:44:32]Read from MH i2c: E2 03 00 [19:44:32]MH_I2C_Read... [19:44:32]Read from MH i2c: E2 03 00 B4 0E 00 90 00 36 [19:44:32]RAPDU: 90 00 [19:44:32]wFMCommunicate OK [19:44:32]wFMCommunicate request_size=10 [19:44:32]MH_SAM_APDU [19:44:32]CAPDU: 80 0D 02 02 05 C9 32 64 5A 19 [19:44:32]Write to MH i2c: E2 0D 00 B5 0E 80 0D 02 02 05 00 C9 32 64 5A 19 00 00 19 [19:44:32]Write i2c OK [19:44:32]MH_I2C_Read... [19:44:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:32]Read from MH i2c: E2 [19:44:32]MH_I2C_Read... [19:44:32]Read from MH i2c: E2 03 00 [19:44:32]MH_I2C_Read... [19:44:32]Read from MH i2c: E2 03 00 B5 0E 00 90 00 37 [19:44:32]RAPDU: 90 00 [19:44:32]wFMCommunicate OK [19:44:32]wFMCommunicate request_size=4 [19:44:32]MH_SAM_APDU [19:44:32]CAPDU: 80 0D 03 02 [19:44:32]Write to MH i2c: E2 08 00 B6 0E 80 0D 03 02 00 00 00 00 3F [19:44:32]Write i2c OK [19:44:32]MH_I2C_Read... [19:44:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:44:32]Read from MH i2c: E2 [19:44:32]MH_I2C_Read... [19:44:32]Read from MH i2c: E2 0B 00 [19:44:32]MH_I2C_Read... [19:44:32]Read from MH i2c: E2 0B 00 B6 0E 00 69 99 48 B1 6E EB 59 93 90 00 80 [19:44:32]RAPDU: 69 99 48 B1 6E EB 59 93 90 00 [19:44:32]wFMCommunicate OK [19:44:32]SAM_PROTO_SignData done [19:44:32]FM_MakeSignedData done [19:44:32]CreateOFDProtocolMessage [19:44:32]wFMCommunicate request_size=4 [19:44:32]MH_SAM_APDU [19:44:32]CAPDU: 80 11 00 00 [19:44:32]Write to MH i2c: E2 08 00 B7 0E 80 11 00 00 00 00 00 00 3F [19:44:32]Write i2c OK [19:44:32]MH_I2C_Read... [19:44:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:32]Read from MH i2c: E2 [19:44:32]MH_I2C_Read... [19:44:32]Read from MH i2c: E2 17 00 [19:44:32]MH_I2C_Read... [19:44:32]Read from MH i2c: E2 17 00 B7 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 91 [19:44:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:44:32]wFMCommunicate OK [19:44:32]CreateOFDProtocolMessage done [19:44:32]OFDSenderStorePacket 69529 [19:44:32]StoreOFDPacket docnum=69529 [19:44:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 67 4E 07 01 8E 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 01 00 00 F4 03 04 00 9F 5D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 99 0F 01 00 35 04 06 00 D4 C9 32 64 5A 19 69 99 48 B1 6E EB 59 93 [19:44:32]CheckFolder [19:44:32]dirname=/storage/ofd_packets [19:44:32]CheckFolder done [19:44:32]ProducePacketName [19:44:32]name=ofd_packets/00069529 [19:44:32]NVStorageSaveData ofd_packets/00069529 [19:44:32]File name is /storage/ofd_packets/00069529 [19:44:32]Write 301 bytes [19:44:32]NVStorageSaveData done [19:44:32]OFDSenderStorePacket done [19:44:32]KKMCreateOFDPacket done [19:44:32]NVStorageSaveData kkm_last_timestamp [19:44:32]File name is /storage/kkm_last_timestamp [19:44:32]Write 4 bytes [19:44:32]NVStorageSaveData done [19:44:32]ExternCall_PrintAddStr [19:44:32]wPrintStart [19:44:32]Write to MH i2c: 01 00 00 B8 0E C6 [19:44:32]Write i2c OK [19:44:32]MH_I2C_Read... [19:44:32]Read from MH i2c: 01 [19:44:32]MH_I2C_Read... [19:44:32]Read from MH i2c: 01 07 00 [19:44:32]MH_I2C_Read... [19:44:32]Read from MH i2c: 01 07 00 B8 0E 00 00 00 00 00 FF 0F DB [19:44:32]RasterBufferAndPrint [19:44:32]line Счет N : (1)2885270 [19:44:32]line ИНН: 02508201610067 [19:44:32]line Контрольно-Кассовый Чек [19:44:32]line ПРОДАЖА [19:44:32]line ТРК (МРК, ГНК) : 32 [19:44:32]line Товар: 2710124130 [19:44:32]line Аи-92-К-5 [19:44:32]line 14.950 * 66.90 [19:44:32]line = 1000.16 [19:44:32]line НДС 12% НСП 1% [19:44:32]line > о реализуемом товаре [19:44:32]line ОКРУГЛЕНИЕ: -0.16 [19:44:32]line ИТОГО: 1000.00 [19:44:32]line Внесено: 1000.00 [19:44:32]line СДАЧА: 0.00 [19:44:32]line НСП 1% : 8.85 [19:44:32]line НДС 12% : 106.21 [19:44:32]line Наличными: 1000.00 [19:44:32]line Безнал.: 0.00 [19:44:32]line Место: АЗС № 85 "Партнер Нефть" [19:44:33]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:44:33]line СНО: Общий режим [19:44:33]line Чек 374 20.10.2024 19:44 [19:44:33]line Смена: 193 ФФД: 1.0 [19:44:33]line ЗНМ: 0300000167 [19:44:33]line РНМ: 0000000000156251 [19:44:33]line Версия ККМ: v1.0 [19:44:33]line ФМ: 0000000000963346 [19:44:33]line ФД: 69529 [19:44:33]line ФПД: 233960598952473 [19:44:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194431&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69529&fm=233960598952473&tin=02508201610067®Number=0000000000156251&sum=100000 [19:44:33]OFD Sender: Processing packet 69529 [packets to send 18, broken 17] [19:44:33]ProducePacketName [19:44:33]name=ofd_packets/00069529 [19:44:33]OFD Sender: To server: pG, [19:44:33]CommunicateWithHost lk.salyk.kg:30040 [19:44:33]ConnectInit lk.salyk.kg [19:44:33]written 0, free lines is 4095 [19:44:33]Connected sock=11 [19:44:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 67 4E 07 01 8E 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 01 00 00 F4 03 04 00 9F 5D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 99 0F 01 00 35 04 06 00 D4 C9 32 64 5A 19 69 99 48 B1 6E EB 59 93 [19:44:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 4A D1 47 00 0F 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 99 0F 01 00 F4 03 04 00 45 07 15 67 B6 04 01 00 00 6F ED 53 89 0F 90 AB 43 [19:44:33]CommunicateWithHost err = 0 [19:44:33]CheckOFDResponse [19:44:33]1017 (14) - 77093643461234 [19:44:33]1041 (16) - 0000000000963346 [19:44:33]1040 (4) - 69529 [19:44:33]1012 (4) - 20.10.2024 13:36 [19:44:33]1206 (1) - 0 [19:44:33]OFD Sender: Remove packet 69529 [19:44:33]ProducePacketName [19:44:33]name=ofd_packets/00069529 [19:44:33]NVStorageDeleteData [19:44:33]Write to MH i2c: 01 00 00 E3 0E F1 [19:44:33]Write i2c OK [19:44:33]MH_I2C_Read... [19:44:33]Read from MH i2c: 01 [19:44:33]MH_I2C_Read... [19:44:33]Read from MH i2c: 01 07 00 [19:44:33]MH_I2C_Read... [19:44:33]Read from MH i2c: 01 07 00 E3 0E 00 00 00 00 00 E6 0C EA [19:44:33]RasterBufferAndPrint [19:44:33]line [19:44:33]line [19:44:33]line [19:44:33]line [19:44:33]line [19:44:33]written 0, free lines is 3308 [19:44:33]MH_Cut [19:44:33]Write to MH i2c: D1 01 00 EA 0E 01 CA [19:44:33]Write i2c OK [19:44:33]MH_I2C_Read... [19:44:33]Read from MH i2c: D1 [19:44:33]MH_I2C_Read... [19:44:33]Read from MH i2c: D1 01 00 [19:44:33]MH_I2C_Read... [19:44:33]Read from MH i2c: D1 01 00 EA 0E 00 C9 [19:44:33]Write to MH i2c: 01 00 00 EB 0E F9 [19:44:33]Write i2c OK [19:44:33]MH_I2C_Read... [19:44:33]OFD Sender: No OFD packet to send [19:44:34]*** Cut start [19:44:34]*** Partial cut [19:44:34]*** CUTSNS_PIN = 1 [19:44:34]*** CUTSNS_PIN = 0 [19:44:34]*** Brake cut motor [19:44:34]Read from MH i2c: 01 [19:44:34]MH_I2C_Read... [19:44:34]*** Stop cut motor [19:44:34]*** Cut end [19:44:34]Read from MH i2c: 01 07 00 [19:44:34]MH_I2C_Read... [19:44:34]Read from MH i2c: 01 07 00 EB 0E 00 00 00 00 00 FF 0F 0E [19:44:34]process_action close_receipt done [19:44:34]requested_data is exist [19:44:34]produce_requested_data [19:44:34]requested_item fm.sn is exist - process it [19:44:34]wFMCommunicate request_size=4 [19:44:34]MH_SAM_APDU [19:44:34]CAPDU: 80 11 00 00 [19:44:34]Write to MH i2c: E2 08 00 EC 0E 80 11 00 00 00 00 00 00 74 [19:44:34]Write i2c OK [19:44:34]MH_I2C_Read... [19:44:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:34]Read from MH i2c: E2 [19:44:34]MH_I2C_Read... [19:44:34]Read from MH i2c: E2 17 00 [19:44:34]MH_I2C_Read... [19:44:34]Read from MH i2c: E2 17 00 EC 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C6 [19:44:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:44:34]wFMCommunicate OK [19:44:34]requested_item fd.num is exist - process it [19:44:34]SAM_PROTO_GetFieldsCounters [19:44:34]wFMCommunicate request_size=4 [19:44:34]MH_SAM_APDU [19:44:34]CAPDU: 80 13 00 00 [19:44:34]Write to MH i2c: E2 08 00 ED 0E 80 13 00 00 00 00 00 00 77 [19:44:34]Write i2c OK [19:44:34]MH_I2C_Read... [19:44:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:44:35]Read from MH i2c: E2 [19:44:35]MH_I2C_Read... [19:44:35]Read from MH i2c: E2 62 00 [19:44:35]MH_I2C_Read... [19:44:35]Read from MH i2c: E2 62 00 ED 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 99 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 76 01 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 77 01 00 00 19 04 04 00 00 00 00 00 90 00 61 [19:44:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 99 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 76 01 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 77 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:44:35]wFMCommunicate OK [19:44:35]SAM_PROTO_GetFieldsCounters done [19:44:35]requested_item shift.num is exist - process it [19:44:35]requested_item shift.opened is exist - process it [19:44:35]req_shift_opened [19:44:35]FM_GetShiftState [19:44:35]SAM_PROTO_GetShiftState [19:44:35]wFMCommunicate request_size=4 [19:44:35]MH_SAM_APDU [19:44:35]CAPDU: 80 13 01 00 [19:44:35]Write to MH i2c: E2 08 00 EE 0E 80 13 01 00 00 00 00 00 79 [19:44:35]Write i2c OK [19:44:35]MH_I2C_Read... [19:44:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:35]Read from MH i2c: E2 [19:44:35]MH_I2C_Read... [19:44:35]Read from MH i2c: E2 0E 00 [19:44:35]MH_I2C_Read... [19:44:35]Read from MH i2c: E2 0E 00 EE 0E 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 7F [19:44:35]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:44:35]wFMCommunicate OK [19:44:35]SAM_PROTO_GetShiftState done [19:44:35]FM_GetShiftState done [19:44:35]req_shift_opened done [19:44:35]requested_item shift.open_date is exist - process it [19:44:35]req_shift_open_date [19:44:35]req_shift_open_date done [19:44:35]produce_requested_data done [19:44:35]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69529,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [19:44:35]process_action_free close_receipt [19:44:35]json_value_free [19:44:35]json_value_free done [19:44:35]process_json_proto returns [19:44:35]Send response to host [19:44:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69529,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [19:44:35]free response buf [19:44:35]execute_script done [19:44:35]execute_script returns [19:44:35]free content buf [19:44:35]Sock 9.Close socket [19:44:35]Sock 9.Thread stoped [19:44:38]OFD Sender: No OFD packet to send [19:44:43]OFD Sender: No OFD packet to send [19:44:48]OFD Sender: No OFD packet to send [19:44:53]OFD Sender: No OFD packet to send [19:44:58]OFD Sender: No OFD packet to send [19:45:03]OFD Sender: No OFD packet to send [19:45:08]OFD Sender: No OFD packet to send [19:45:13]OFD Sender: No OFD packet to send [19:45:18]accept exits with 7 [19:45:18]New connection [19:45:18]New thread 3066654052 created [19:45:18]Thread 3066797412 joined [19:45:18]Waiting for new connection... [19:45:18] Sock 7.Parse request [19:45:18]Sock 7.Check first char [19:45:18]Sock 7.First char is OK [19:45:18]request: POST /json_proto HTTP/1.0 [19:45:18]Method: POST [19:45:18]URL: /json_proto [19:45:18]Method is POST - this is cgi request [19:45:18]url: /json_proto [19:45:18]query_string will be loaded in cgi processing [19:45:18]execute_cgi json_proto POST (null) [19:45:18]execute_cgi path=json_proto method=POST [19:45:18]POST find Content-Length [19:45:18]Host: 172.17.50.3:8080 [19:45:18]Content-Length: 680 [19:45:18]Content-Type: application/json [19:45:18] [19:45:18]POST finish read [19:45:18]Found Content-Length = 680 [19:45:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:45:18]execute_script... [19:45:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:45:18]POST & json_proto [19:45:18]process_json_proto [19:45:18]json parsed OK: [19:45:18]protocol is kg_v1.0 [19:45:18]action value=close_receipt [19:45:18]process_action close_receipt [19:45:18]cmd_close_receipt [19:45:18]MH_GetDate [19:45:18]Write to MH i2c: F0 00 00 EF 0E EC [19:45:18]Write i2c OK [19:45:18]MH_I2C_Read... [19:45:18]Read from MH i2c: F0 [19:45:18]MH_I2C_Read... [19:45:18]Read from MH i2c: F0 09 00 [19:45:18]MH_I2C_Read... [19:45:18]Read from MH i2c: F0 09 00 EF 0E 00 CF 5D 15 67 6B 98 1E 66 24 [19:45:18]GetLastDocTimeStamp 1729453471 [19:45:18]current date 1729453519 [19:45:18]FM_GetShiftState [19:45:18]SAM_PROTO_GetShiftState [19:45:18]wFMCommunicate request_size=4 [19:45:18]MH_SAM_APDU [19:45:18]CAPDU: 80 13 01 00 [19:45:18]Write to MH i2c: E2 08 00 F0 0E 80 13 01 00 00 00 00 00 7B [19:45:18]Write i2c OK [19:45:18]MH_I2C_Read... [19:45:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:45:18]Read from MH i2c: E2 [19:45:18]MH_I2C_Read... [19:45:18]Read from MH i2c: E2 0E 00 [19:45:18]MH_I2C_Read... [19:45:18]Read from MH i2c: E2 0E 00 F0 0E 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 81 [19:45:18]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:45:18]wFMCommunicate OK [19:45:18]SAM_PROTO_GetShiftState done [19:45:18]FM_GetShiftState done [19:45:18]opened in 1729383220 [19:45:18]opened+sec_in_day 1729469620 [19:45:18]quantity*price = 100050 [19:45:18]sum+1 = 100052 [19:45:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 375 20.10.2024 19:45 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69530 ФПД: 133211347640935 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194519&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69530&fm=133211347640935&tin=02508201610067®Number=0000000000156251&sum=100000 [19:45:19]StoreToDocumentArchive [19:45:19]shift 193 fd 69530 [19:45:19]save to /storage/0193/doc_00069530 [19:45:19]save last doc name /storage/0193/doc_00069530 to /storage/kkm_last_doc_name [19:45:19]save OK [19:45:19]Clear old archive folders... [19:45:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:45:19]tlvbuf is 00F5BF30 [19:45:19]SAM_PROTO_ClearQueue [19:45:19]wFMCommunicate request_size=4 [19:45:19]MH_SAM_APDU [19:45:19]CAPDU: 80 09 00 00 [19:45:19]Write to MH i2c: E2 08 00 FD 0E 80 09 00 00 00 00 00 00 7D [19:45:19]Write i2c OK [19:45:19]MH_I2C_Read... [19:45:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:45:19]Read from MH i2c: E2 [19:45:19]MH_I2C_Read... [19:45:19]Read from MH i2c: E2 03 00 [19:45:19]MH_I2C_Read... [19:45:19]Read from MH i2c: E2 03 00 FD 0E 00 90 00 7F [19:45:19]RAPDU: 90 00 [19:45:19]wFMCommunicate OK [19:45:19]SAM_PROTO_ClearQueue done [19:45:19]KKMCreateOFDPacket [19:45:19]OFDProtocolAddRootSTLVToBuf [19:45:19]FM_MakeSignedData [19:45:19]FM_MakeSignedData [19:45:19]SAM_PROTO_SignData [19:45:19]wFMCommunicate request_size=4 [19:45:19]MH_SAM_APDU [19:45:19]CAPDU: 80 0D 01 02 [19:45:19]Write to MH i2c: E2 08 00 FE 0E 80 0D 01 02 00 00 00 00 85 [19:45:19]Write i2c OK [19:45:19]MH_I2C_Read... [19:45:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:45:19]Read from MH i2c: E2 [19:45:19]MH_I2C_Read... [19:45:19]Read from MH i2c: E2 03 00 [19:45:19]MH_I2C_Read... [19:45:19]Read from MH i2c: E2 03 00 FE 0E 00 90 00 80 [19:45:19]RAPDU: 90 00 [19:45:19]wFMCommunicate OK [19:45:19]wFMCommunicate request_size=255 [19:45:19]MH_SAM_APDU [19:45:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 CF 5D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9A 0F 01 00 35 04 06 00 79 27 AF 0E [19:45:19]Write to MH i2c: E2 02 01 FF 0E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 CF 5D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9A 0F 01 00 35 04 06 00 79 27 AF 0E 00 00 EC [19:45:19]Write i2c OK [19:45:19]MH_I2C_Read... [19:45:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:45:20]Read from MH i2c: E2 [19:45:20]MH_I2C_Read... [19:45:20]Read from MH i2c: E2 03 00 [19:45:20]MH_I2C_Read... [19:45:20]Read from MH i2c: E2 03 00 FF 0E 00 90 00 81 [19:45:20]RAPDU: 90 00 [19:45:20]wFMCommunicate OK [19:45:20]wFMCommunicate request_size=7 [19:45:20]MH_SAM_APDU [19:45:20]CAPDU: 80 0D 02 02 02 62 67 [19:45:20]Write to MH i2c: E2 0A 00 00 0F 80 0D 02 02 02 00 62 67 00 00 56 [19:45:20]Write i2c OK [19:45:20]MH_I2C_Read... [19:45:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:45:20]Read from MH i2c: E2 [19:45:20]MH_I2C_Read... [19:45:20]Read from MH i2c: E2 03 00 [19:45:20]MH_I2C_Read... [19:45:20]Read from MH i2c: E2 03 00 00 0F 00 90 00 83 [19:45:20]RAPDU: 90 00 [19:45:20]wFMCommunicate OK [19:45:20]wFMCommunicate request_size=4 [19:45:20]MH_SAM_APDU [19:45:20]CAPDU: 80 0D 03 02 [19:45:20]Write to MH i2c: E2 08 00 01 0F 80 0D 03 02 00 00 00 00 8B [19:45:20]Write i2c OK [19:45:20]MH_I2C_Read... [19:45:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:45:20]Read from MH i2c: E2 [19:45:20]MH_I2C_Read... [19:45:20]Read from MH i2c: E2 0B 00 [19:45:20]MH_I2C_Read... [19:45:20]Read from MH i2c: E2 0B 00 01 0F 00 4A 13 D6 35 CF 12 B2 98 90 00 1F [19:45:20]RAPDU: 4A 13 D6 35 CF 12 B2 98 90 00 [19:45:20]wFMCommunicate OK [19:45:20]SAM_PROTO_SignData done [19:45:20]FM_MakeSignedData done [19:45:20]CreateOFDProtocolMessage [19:45:20]wFMCommunicate request_size=4 [19:45:20]MH_SAM_APDU [19:45:20]CAPDU: 80 11 00 00 [19:45:20]Write to MH i2c: E2 08 00 02 0F 80 11 00 00 00 00 00 00 8B [19:45:20]Write i2c OK [19:45:20]MH_I2C_Read... [19:45:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:45:20]Read from MH i2c: E2 [19:45:20]MH_I2C_Read... [19:45:20]Read from MH i2c: E2 17 00 [19:45:20]MH_I2C_Read... [19:45:20]Read from MH i2c: E2 17 00 02 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DD [19:45:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:45:20]wFMCommunicate OK [19:45:20]CreateOFDProtocolMessage done [19:45:20]OFDSenderStorePacket 69530 [19:45:20]StoreOFDPacket docnum=69530 [19:45:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 06 1F 04 01 D3 33 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 CF 5D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9A 0F 01 00 35 04 06 00 79 27 AF 0E 62 67 4A 13 D6 35 CF 12 B2 98 [19:45:20]CheckFolder [19:45:20]dirname=/storage/ofd_packets [19:45:20]CheckFolder done [19:45:20]ProducePacketName [19:45:20]name=ofd_packets/00069530 [19:45:20]NVStorageSaveData ofd_packets/00069530 [19:45:20]File name is /storage/ofd_packets/00069530 [19:45:20]Write 298 bytes [19:45:20]NVStorageSaveData done [19:45:20]OFDSenderStorePacket done [19:45:20]KKMCreateOFDPacket done [19:45:20]NVStorageSaveData kkm_last_timestamp [19:45:20]File name is /storage/kkm_last_timestamp [19:45:20]Write 4 bytes [19:45:20]NVStorageSaveData done [19:45:20]ExternCall_PrintAddStr [19:45:20]wPrintStart [19:45:20]Write to MH i2c: 01 00 00 03 0F 12 [19:45:20]Write i2c OK [19:45:20]MH_I2C_Read... [19:45:20]Read from MH i2c: 01 [19:45:20]MH_I2C_Read... [19:45:20]Read from MH i2c: 01 07 00 [19:45:20]MH_I2C_Read... [19:45:20]Read from MH i2c: 01 07 00 03 0F 00 00 00 00 00 FF 0F 27 [19:45:20]RasterBufferAndPrint [19:45:20]line Счет N : (1)2885269 [19:45:20]line ИНН: 02508201610067 [19:45:20]line Контрольно-Кассовый Чек [19:45:20]line ПРОДАЖА [19:45:20]line ТРК (МРК, ГНК) : 51 [19:45:20]line Товар: 2710194210 [19:45:20]line ДТ-К-5 [19:45:20]line 13.130 * 76.20 [19:45:20]line = 1000.51 [19:45:20]line НДС 12% НСП 1% [19:45:20]line > о реализуемом товаре [19:45:20]line ОКРУГЛЕНИЕ: -0.51 [19:45:20]line ИТОГО: 1000.00 [19:45:20]line Внесено: 1000.00 [19:45:20]line СДАЧА: 0.00 [19:45:20]line НСП 1% : 8.85 [19:45:20]line НДС 12% : 106.25 [19:45:20]line Наличными: 1000.00 [19:45:20]line Безнал.: 0.00 [19:45:20]line Место: АЗС № 85 "Партнер Нефть" [19:45:20]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:45:20]line СНО: Общий режим [19:45:20]line Чек 375 20.10.2024 19:45 [19:45:20]line Смена: 193 ФФД: 1.0 [19:45:20]line ЗНМ: 0300000167 [19:45:20]line РНМ: 0000000000156251 [19:45:20]line Версия ККМ: v1.0 [19:45:20]line ФМ: 0000000000963346 [19:45:20]line ФД: 69530 [19:45:20]line ФПД: 133211347640935 [19:45:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194519&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69530&fm=133211347640935&tin=02508201610067®Number=0000000000156251&sum=100000 [19:45:20]OFD Sender: Processing packet 69530 [packets to send 18, broken 17] [19:45:20]ProducePacketName [19:45:20]name=ofd_packets/00069530 [19:45:20]OFD Sender: To server: pG, [19:45:20]CommunicateWithHost lk.salyk.kg:30040 [19:45:20]ConnectInit lk.salyk.kg [19:45:20]written 0, free lines is 4095 [19:45:20]Connected sock=11 [19:45:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 06 1F 04 01 D3 33 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 CF 5D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9A 0F 01 00 35 04 06 00 79 27 AF 0E 62 67 4A 13 D6 35 CF 12 B2 98 [19:45:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 DF 87 47 00 27 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9A 0F 01 00 F4 03 04 00 75 07 15 67 B6 04 01 00 00 43 9E FA 6C 6D 89 0C D1 [19:45:20]CommunicateWithHost err = 0 [19:45:20]CheckOFDResponse [19:45:20]1017 (14) - 77093643461234 [19:45:20]1041 (16) - 0000000000963346 [19:45:20]1040 (4) - 69530 [19:45:20]1012 (4) - 20.10.2024 13:36 [19:45:20]1206 (1) - 0 [19:45:20]OFD Sender: Remove packet 69530 [19:45:20]ProducePacketName [19:45:20]name=ofd_packets/00069530 [19:45:20]NVStorageDeleteData [19:45:21]Write to MH i2c: 01 00 00 2E 0F 3D [19:45:21]Write i2c OK [19:45:21]MH_I2C_Read... [19:45:21]Read from MH i2c: 01 [19:45:21]MH_I2C_Read... [19:45:21]Read from MH i2c: 01 07 00 [19:45:21]MH_I2C_Read... [19:45:21]Read from MH i2c: 01 07 00 2E 0F 00 00 00 00 00 E9 0C 39 [19:45:21]RasterBufferAndPrint [19:45:21]line [19:45:21]line [19:45:21]line [19:45:21]line [19:45:21]line [19:45:21]written 0, free lines is 3311 [19:45:21]MH_Cut [19:45:21]Write to MH i2c: D1 01 00 35 0F 01 16 [19:45:21]Write i2c OK [19:45:21]MH_I2C_Read... [19:45:21]Read from MH i2c: D1 [19:45:21]MH_I2C_Read... [19:45:21]Read from MH i2c: D1 01 00 [19:45:21]MH_I2C_Read... [19:45:21]Read from MH i2c: D1 01 00 35 0F 00 15 [19:45:21]Write to MH i2c: 01 00 00 36 0F 45 [19:45:21]Write i2c OK [19:45:21]MH_I2C_Read... [19:45:21]OFD Sender: No OFD packet to send [19:45:21]*** Cut start [19:45:21]*** Partial cut [19:45:21]*** CUTSNS_PIN = 1 [19:45:21]*** CUTSNS_PIN = 0 [19:45:22]*** Brake cut motor [19:45:22]Read from MH i2c: 01 [19:45:22]MH_I2C_Read... [19:45:22]*** Stop cut motor [19:45:22]*** Cut end [19:45:22]Read from MH i2c: 01 07 00 [19:45:22]MH_I2C_Read... [19:45:22]Read from MH i2c: 01 07 00 36 0F 00 00 00 00 00 FF 0F 5A [19:45:22]process_action close_receipt done [19:45:22]requested_data is exist [19:45:22]produce_requested_data [19:45:22]requested_item fm.sn is exist - process it [19:45:22]wFMCommunicate request_size=4 [19:45:22]MH_SAM_APDU [19:45:22]CAPDU: 80 11 00 00 [19:45:22]Write to MH i2c: E2 08 00 37 0F 80 11 00 00 00 00 00 00 C0 [19:45:22]Write i2c OK [19:45:22]MH_I2C_Read... [19:45:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:45:22]Read from MH i2c: E2 [19:45:22]MH_I2C_Read... [19:45:22]Read from MH i2c: E2 17 00 [19:45:22]MH_I2C_Read... [19:45:22]Read from MH i2c: E2 17 00 37 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 12 [19:45:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:45:22]wFMCommunicate OK [19:45:22]requested_item fd.num is exist - process it [19:45:22]SAM_PROTO_GetFieldsCounters [19:45:22]wFMCommunicate request_size=4 [19:45:22]MH_SAM_APDU [19:45:22]CAPDU: 80 13 00 00 [19:45:22]Write to MH i2c: E2 08 00 38 0F 80 13 00 00 00 00 00 00 C3 [19:45:22]Write i2c OK [19:45:22]MH_I2C_Read... [19:45:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:45:22]Read from MH i2c: E2 [19:45:22]MH_I2C_Read... [19:45:22]Read from MH i2c: E2 62 00 [19:45:22]MH_I2C_Read... [19:45:22]Read from MH i2c: E2 62 00 38 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9A 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 77 01 00 00 5E 04 04 00 77 01 00 00 57 04 04 00 78 01 00 00 19 04 04 00 00 00 00 00 90 00 B1 [19:45:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9A 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 77 01 00 00 5E 04 04 00 77 01 00 00 57 04 04 00 78 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:45:22]wFMCommunicate OK [19:45:22]SAM_PROTO_GetFieldsCounters done [19:45:22]requested_item shift.num is exist - process it [19:45:22]requested_item shift.opened is exist - process it [19:45:22]req_shift_opened [19:45:22]FM_GetShiftState [19:45:22]SAM_PROTO_GetShiftState [19:45:22]wFMCommunicate request_size=4 [19:45:22]MH_SAM_APDU [19:45:22]CAPDU: 80 13 01 00 [19:45:22]Write to MH i2c: E2 08 00 39 0F 80 13 01 00 00 00 00 00 C5 [19:45:22]Write i2c OK [19:45:22]MH_I2C_Read... [19:45:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:45:22]Read from MH i2c: E2 [19:45:22]MH_I2C_Read... [19:45:22]Read from MH i2c: E2 0E 00 [19:45:22]MH_I2C_Read... [19:45:22]Read from MH i2c: E2 0E 00 39 0F 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 CB [19:45:22]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:45:22]wFMCommunicate OK [19:45:22]SAM_PROTO_GetShiftState done [19:45:22]FM_GetShiftState done [19:45:22]req_shift_opened done [19:45:22]requested_item shift.open_date is exist - process it [19:45:22]req_shift_open_date [19:45:22]req_shift_open_date done [19:45:22]produce_requested_data done [19:45:22]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69530,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [19:45:22]process_action_free close_receipt [19:45:22]json_value_free [19:45:22]json_value_free done [19:45:22]process_json_proto returns [19:45:22]Send response to host [19:45:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69530,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [19:45:22]free response buf [19:45:22]execute_script done [19:45:22]execute_script returns [19:45:22]free content buf [19:45:22]Sock 7.Close socket [19:45:22]Sock 7.Thread stoped [19:45:26]OFD Sender: No OFD packet to send [19:45:31]OFD Sender: No OFD packet to send [19:45:36]OFD Sender: No OFD packet to send [19:45:41]OFD Sender: No OFD packet to send [19:45:46]OFD Sender: No OFD packet to send [19:45:51]OFD Sender: No OFD packet to send [19:45:56]OFD Sender: No OFD packet to send [19:46:01]OFD Sender: No OFD packet to send [19:46:06]OFD Sender: No OFD packet to send [19:46:11]OFD Sender: No OFD packet to send [19:46:16]OFD Sender: No OFD packet to send [19:46:21]OFD Sender: No OFD packet to send [19:46:26]OFD Sender: No OFD packet to send [19:46:31]OFD Sender: No OFD packet to send [19:46:36]OFD Sender: No OFD packet to send [19:46:41]OFD Sender: No OFD packet to send [19:46:46]OFD Sender: No OFD packet to send [19:46:51]OFD Sender: No OFD packet to send [19:46:56]OFD Sender: No OFD packet to send [19:47:01]OFD Sender: No OFD packet to send [19:47:06]OFD Sender: No OFD packet to send [19:47:11]OFD Sender: No OFD packet to send [19:47:16]OFD Sender: No OFD packet to send [19:47:16]accept exits with 9 [19:47:16]New connection [19:47:16]New thread 3066797412 created [19:47:16]Thread 3066654052 joined [19:47:16]Waiting for new connection... [19:47:16] Sock 9.Parse request [19:47:16]Sock 9.Check first char [19:47:16]Sock 9.First char is OK [19:47:16]request: POST /json_proto HTTP/1.0 [19:47:16]Method: POST [19:47:16]URL: /json_proto [19:47:16]Method is POST - this is cgi request [19:47:16]url: /json_proto [19:47:16]query_string will be loaded in cgi processing [19:47:16]execute_cgi json_proto POST (null) [19:47:16]execute_cgi path=json_proto method=POST [19:47:16]POST find Content-Length [19:47:16]Host: 172.17.50.3:8080 [19:47:16]Content-Length: 678 [19:47:16]Content-Type: application/json [19:47:16] [19:47:16]POST finish read [19:47:16]Found Content-Length = 678 [19:47:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.100, "sum" : 140.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:47:16]execute_script... [19:47:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.100, "sum" : 140.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:47:16]POST & json_proto [19:47:16]process_json_proto [19:47:16]json parsed OK: [19:47:16]protocol is kg_v1.0 [19:47:16]action value=close_receipt [19:47:16]process_action close_receipt [19:47:16]cmd_close_receipt [19:47:16]MH_GetDate [19:47:16]Write to MH i2c: F0 00 00 3A 0F 38 [19:47:16]Write i2c OK [19:47:16]MH_I2C_Read... [19:47:16]Read from MH i2c: F0 [19:47:16]MH_I2C_Read... [19:47:16]Read from MH i2c: F0 09 00 [19:47:16]MH_I2C_Read... [19:47:16]Read from MH i2c: F0 09 00 3A 0F 00 45 5E 15 67 6B 98 1E 66 E7 [19:47:16]GetLastDocTimeStamp 1729453519 [19:47:16]current date 1729453637 [19:47:16]FM_GetShiftState [19:47:16]SAM_PROTO_GetShiftState [19:47:16]wFMCommunicate request_size=4 [19:47:16]MH_SAM_APDU [19:47:16]CAPDU: 80 13 01 00 [19:47:16]Write to MH i2c: E2 08 00 3B 0F 80 13 01 00 00 00 00 00 C7 [19:47:16]Write i2c OK [19:47:16]MH_I2C_Read... [19:47:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:16]Read from MH i2c: E2 [19:47:16]MH_I2C_Read... [19:47:16]Read from MH i2c: E2 0E 00 [19:47:16]MH_I2C_Read... [19:47:16]Read from MH i2c: E2 0E 00 3B 0F 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 CD [19:47:16]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:47:16]wFMCommunicate OK [19:47:16]SAM_PROTO_GetShiftState done [19:47:16]FM_GetShiftState done [19:47:16]opened in 1729383220 [19:47:16]opened+sec_in_day 1729469620 [19:47:16]quantity*price = 14049 [19:47:16]sum+1 = 14050 [19:47:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 140.00 Внесено: 140.00 СДАЧА: 0.00 НСП 1% : 1.24 НДС 12% : 14.92 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 376 20.10.2024 19:47 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69531 ФПД: 12517415235354 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194717&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69531&fm=12517415235354&tin=02508201610067®Number=0000000000156251&sum=14000 [19:47:17]StoreToDocumentArchive [19:47:17]shift 193 fd 69531 [19:47:17]save to /storage/0193/doc_00069531 [19:47:17]save last doc name /storage/0193/doc_00069531 to /storage/kkm_last_doc_name [19:47:17]save OK [19:47:17]Clear old archive folders... [19:47:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:47:17]tlvbuf is B6E9B2C0 [19:47:17]SAM_PROTO_ClearQueue [19:47:17]wFMCommunicate request_size=4 [19:47:17]MH_SAM_APDU [19:47:17]CAPDU: 80 09 00 00 [19:47:17]Write to MH i2c: E2 08 00 48 0F 80 09 00 00 00 00 00 00 C9 [19:47:17]Write i2c OK [19:47:17]MH_I2C_Read... [19:47:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:47:17]Read from MH i2c: E2 [19:47:17]MH_I2C_Read... [19:47:17]Read from MH i2c: E2 03 00 [19:47:17]MH_I2C_Read... [19:47:17]Read from MH i2c: E2 03 00 48 0F 00 90 00 CB [19:47:17]RAPDU: 90 00 [19:47:17]wFMCommunicate OK [19:47:17]SAM_PROTO_ClearQueue done [19:47:17]KKMCreateOFDPacket [19:47:17]OFDProtocolAddRootSTLVToBuf [19:47:17]FM_MakeSignedData [19:47:17]FM_MakeSignedData [19:47:17]SAM_PROTO_SignData [19:47:17]wFMCommunicate request_size=4 [19:47:17]MH_SAM_APDU [19:47:17]CAPDU: 80 0D 01 02 [19:47:17]Write to MH i2c: E2 08 00 49 0F 80 0D 01 02 00 00 00 00 D1 [19:47:17]Write i2c OK [19:47:17]MH_I2C_Read... [19:47:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:47:17]Read from MH i2c: E2 [19:47:17]MH_I2C_Read... [19:47:17]Read from MH i2c: E2 03 00 [19:47:17]MH_I2C_Read... [19:47:17]Read from MH i2c: E2 03 00 49 0F 00 90 00 CC [19:47:17]RAPDU: 90 00 [19:47:17]wFMCommunicate OK [19:47:17]wFMCommunicate request_size=255 [19:47:17]MH_SAM_APDU [19:47:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 45 5E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9B 0F 01 00 35 04 06 00 0B [19:47:17]Write to MH i2c: E2 02 01 4A 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 45 5E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9B 0F 01 00 35 04 06 00 0B 00 00 94 [19:47:17]Write i2c OK [19:47:17]MH_I2C_Read... [19:47:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:18]Read from MH i2c: E2 [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: E2 03 00 [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: E2 03 00 4A 0F 00 90 00 CD [19:47:18]RAPDU: 90 00 [19:47:18]wFMCommunicate OK [19:47:18]wFMCommunicate request_size=10 [19:47:18]MH_SAM_APDU [19:47:18]CAPDU: 80 0D 02 02 05 62 70 16 AF 1A [19:47:18]Write to MH i2c: E2 0D 00 4B 0F 80 0D 02 02 05 00 62 70 16 AF 1A 00 00 8F [19:47:18]Write i2c OK [19:47:18]MH_I2C_Read... [19:47:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:18]Read from MH i2c: E2 [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: E2 03 00 [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: E2 03 00 4B 0F 00 90 00 CE [19:47:18]RAPDU: 90 00 [19:47:18]wFMCommunicate OK [19:47:18]wFMCommunicate request_size=4 [19:47:18]MH_SAM_APDU [19:47:18]CAPDU: 80 0D 03 02 [19:47:18]Write to MH i2c: E2 08 00 4C 0F 80 0D 03 02 00 00 00 00 D6 [19:47:18]Write i2c OK [19:47:18]MH_I2C_Read... [19:47:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:47:18]Read from MH i2c: E2 [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: E2 0B 00 [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: E2 0B 00 4C 0F 00 DC A2 31 F4 48 9F 17 B0 90 00 28 [19:47:18]RAPDU: DC A2 31 F4 48 9F 17 B0 90 00 [19:47:18]wFMCommunicate OK [19:47:18]SAM_PROTO_SignData done [19:47:18]FM_MakeSignedData done [19:47:18]CreateOFDProtocolMessage [19:47:18]wFMCommunicate request_size=4 [19:47:18]MH_SAM_APDU [19:47:18]CAPDU: 80 11 00 00 [19:47:18]Write to MH i2c: E2 08 00 4D 0F 80 11 00 00 00 00 00 00 D6 [19:47:18]Write i2c OK [19:47:18]MH_I2C_Read... [19:47:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:18]Read from MH i2c: E2 [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: E2 17 00 [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: E2 17 00 4D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 28 [19:47:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:47:18]wFMCommunicate OK [19:47:18]CreateOFDProtocolMessage done [19:47:18]OFDSenderStorePacket 69531 [19:47:18]StoreOFDPacket docnum=69531 [19:47:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 71 62 07 01 3C 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 35 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 45 5E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9B 0F 01 00 35 04 06 00 0B 62 70 16 AF 1A DC A2 31 F4 48 9F 17 B0 [19:47:18]CheckFolder [19:47:18]dirname=/storage/ofd_packets [19:47:18]CheckFolder done [19:47:18]ProducePacketName [19:47:18]name=ofd_packets/00069531 [19:47:18]NVStorageSaveData ofd_packets/00069531 [19:47:18]File name is /storage/ofd_packets/00069531 [19:47:18]Write 301 bytes [19:47:18]NVStorageSaveData done [19:47:18]OFDSenderStorePacket done [19:47:18]KKMCreateOFDPacket done [19:47:18]NVStorageSaveData kkm_last_timestamp [19:47:18]File name is /storage/kkm_last_timestamp [19:47:18]Write 4 bytes [19:47:18]NVStorageSaveData done [19:47:18]ExternCall_PrintAddStr [19:47:18]wPrintStart [19:47:18]Write to MH i2c: 01 00 00 4E 0F 5D [19:47:18]Write i2c OK [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: 01 [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: 01 07 00 [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: 01 07 00 4E 0F 00 00 00 00 00 FF 0F 72 [19:47:18]RasterBufferAndPrint [19:47:18]line Счет N : (1)2885271 [19:47:18]line ИНН: 02508201610067 [19:47:18]line Контрольно-Кассовый Чек [19:47:18]line ПРОДАЖА [19:47:18]line ТРК (МРК, ГНК) : 32 [19:47:18]line Товар: 2710124130 [19:47:18]line Аи-92-К-5 [19:47:18]line 2.100 * 66.90 [19:47:18]line = 140.49 [19:47:18]line НДС 12% НСП 1% [19:47:18]line > о реализуемом товаре [19:47:18]line ОКРУГЛЕНИЕ: -0.49 [19:47:18]line ИТОГО: 140.00 [19:47:18]line Внесено: 140.00 [19:47:18]line СДАЧА: 0.00 [19:47:18]line НСП 1% : 1.24 [19:47:18]line НДС 12% : 14.92 [19:47:18]line Наличными: 140.00 [19:47:18]line Безнал.: 0.00 [19:47:18]line Место: АЗС № 85 "Партнер Нефть" [19:47:18]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:47:18]line СНО: Общий режим [19:47:18]line Чек 376 20.10.2024 19:47 [19:47:18]line Смена: 193 ФФД: 1.0 [19:47:18]line ЗНМ: 0300000167 [19:47:18]line РНМ: 0000000000156251 [19:47:18]line Версия ККМ: v1.0 [19:47:18]line ФМ: 0000000000963346 [19:47:18]line ФД: 69531 [19:47:18]line ФПД: 12517415235354 [19:47:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194717&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69531&fm=12517415235354&tin=02508201610067®Number=0000000000156251&sum=14000 [19:47:18]OFD Sender: Processing packet 69531 [packets to send 18, broken 17] [19:47:18]ProducePacketName [19:47:18]name=ofd_packets/00069531 [19:47:18]OFD Sender: To server: pG, [19:47:18]CommunicateWithHost lk.salyk.kg:30040 [19:47:18]ConnectInit lk.salyk.kg [19:47:18]written 0, free lines is 4095 [19:47:18]Connected sock=10 [19:47:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 71 62 07 01 3C 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 35 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 45 5E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9B 0F 01 00 35 04 06 00 0B 62 70 16 AF 1A DC A2 31 F4 48 9F 17 B0 [19:47:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 7E E3 47 00 15 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9B 0F 01 00 F4 03 04 00 EB 07 15 67 B6 04 01 00 00 C9 5E E8 48 02 D2 E9 FA [19:47:18]CommunicateWithHost err = 0 [19:47:18]CheckOFDResponse [19:47:18]1017 (14) - 77093643461234 [19:47:18]1041 (16) - 0000000000963346 [19:47:18]1040 (4) - 69531 [19:47:18]1012 (4) - 20.10.2024 13:38 [19:47:18]1206 (1) - 0 [19:47:18]OFD Sender: Remove packet 69531 [19:47:18]ProducePacketName [19:47:18]name=ofd_packets/00069531 [19:47:18]NVStorageDeleteData [19:47:19]Write to MH i2c: 01 00 00 79 0F 88 [19:47:19]Write i2c OK [19:47:19]MH_I2C_Read... [19:47:19]Read from MH i2c: 01 [19:47:19]MH_I2C_Read... [19:47:19]Read from MH i2c: 01 07 00 [19:47:19]MH_I2C_Read... [19:47:19]Read from MH i2c: 01 07 00 79 0F 00 00 00 00 00 F9 0C 94 [19:47:19]RasterBufferAndPrint [19:47:19]line [19:47:19]line [19:47:19]line [19:47:19]line [19:47:19]line [19:47:19]written 0, free lines is 3327 [19:47:19]MH_Cut [19:47:19]Write to MH i2c: D1 01 00 80 0F 01 61 [19:47:19]Write i2c OK [19:47:19]MH_I2C_Read... [19:47:19]Read from MH i2c: D1 [19:47:19]MH_I2C_Read... [19:47:19]Read from MH i2c: D1 01 00 [19:47:19]MH_I2C_Read... [19:47:19]Read from MH i2c: D1 01 00 80 0F 00 60 [19:47:19]Write to MH i2c: 01 00 00 81 0F 90 [19:47:19]Write i2c OK [19:47:19]MH_I2C_Read... [19:47:19]OFD Sender: No OFD packet to send [19:47:19]*** Cut start [19:47:19]*** Partial cut [19:47:19]*** CUTSNS_PIN = 1 [19:47:19]*** CUTSNS_PIN = 0 [19:47:20]*** Brake cut motor [19:47:20]Read from MH i2c: 01 [19:47:20]MH_I2C_Read... [19:47:20]*** Stop cut motor [19:47:20]*** Cut end [19:47:20]Read from MH i2c: 01 07 00 [19:47:20]MH_I2C_Read... [19:47:20]Read from MH i2c: 01 07 00 81 0F 00 00 00 00 00 FF 0F A5 [19:47:20]process_action close_receipt done [19:47:20]requested_data is exist [19:47:20]produce_requested_data [19:47:20]requested_item fm.sn is exist - process it [19:47:20]wFMCommunicate request_size=4 [19:47:20]MH_SAM_APDU [19:47:20]CAPDU: 80 11 00 00 [19:47:20]Write to MH i2c: E2 08 00 82 0F 80 11 00 00 00 00 00 00 0B [19:47:20]Write i2c OK [19:47:20]MH_I2C_Read... [19:47:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:20]Read from MH i2c: E2 [19:47:20]MH_I2C_Read... [19:47:20]Read from MH i2c: E2 17 00 [19:47:20]MH_I2C_Read... [19:47:20]Read from MH i2c: E2 17 00 82 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5D [19:47:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:47:20]wFMCommunicate OK [19:47:20]requested_item fd.num is exist - process it [19:47:20]SAM_PROTO_GetFieldsCounters [19:47:20]wFMCommunicate request_size=4 [19:47:20]MH_SAM_APDU [19:47:20]CAPDU: 80 13 00 00 [19:47:20]Write to MH i2c: E2 08 00 83 0F 80 13 00 00 00 00 00 00 0E [19:47:20]Write i2c OK [19:47:20]MH_I2C_Read... [19:47:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:47:20]Read from MH i2c: E2 [19:47:20]MH_I2C_Read... [19:47:20]Read from MH i2c: E2 62 00 [19:47:20]MH_I2C_Read... [19:47:20]Read from MH i2c: E2 62 00 83 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9B 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 78 01 00 00 5E 04 04 00 78 01 00 00 57 04 04 00 79 01 00 00 19 04 04 00 00 00 00 00 90 00 00 [19:47:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9B 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 78 01 00 00 5E 04 04 00 78 01 00 00 57 04 04 00 79 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:47:20]wFMCommunicate OK [19:47:20]SAM_PROTO_GetFieldsCounters done [19:47:20]requested_item shift.num is exist - process it [19:47:20]requested_item shift.opened is exist - process it [19:47:20]req_shift_opened [19:47:20]FM_GetShiftState [19:47:20]SAM_PROTO_GetShiftState [19:47:20]wFMCommunicate request_size=4 [19:47:20]MH_SAM_APDU [19:47:20]CAPDU: 80 13 01 00 [19:47:20]Write to MH i2c: E2 08 00 84 0F 80 13 01 00 00 00 00 00 10 [19:47:20]Write i2c OK [19:47:20]MH_I2C_Read... [19:47:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:20]Read from MH i2c: E2 [19:47:20]MH_I2C_Read... [19:47:20]Read from MH i2c: E2 0E 00 [19:47:20]MH_I2C_Read... [19:47:20]Read from MH i2c: E2 0E 00 84 0F 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 16 [19:47:20]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:47:20]wFMCommunicate OK [19:47:20]SAM_PROTO_GetShiftState done [19:47:20]FM_GetShiftState done [19:47:20]req_shift_opened done [19:47:20]requested_item shift.open_date is exist - process it [19:47:20]req_shift_open_date [19:47:20]req_shift_open_date done [19:47:20]produce_requested_data done [19:47:20]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69531,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [19:47:20]process_action_free close_receipt [19:47:20]json_value_free [19:47:20]json_value_free done [19:47:20]process_json_proto returns [19:47:20]Send response to host [19:47:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69531,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [19:47:20]free response buf [19:47:20]execute_script done [19:47:20]execute_script returns [19:47:20]free content buf [19:47:20]Sock 9.Close socket [19:47:20]Sock 9.Thread stoped [19:47:24]OFD Sender: No OFD packet to send [19:47:29]OFD Sender: No OFD packet to send [19:47:34]OFD Sender: No OFD packet to send [19:47:39]OFD Sender: No OFD packet to send [19:47:44]OFD Sender: No OFD packet to send [19:47:49]OFD Sender: No OFD packet to send [19:47:54]OFD Sender: No OFD packet to send [19:47:59]OFD Sender: No OFD packet to send [19:48:04]OFD Sender: No OFD packet to send [19:48:09]OFD Sender: No OFD packet to send [19:48:14]OFD Sender: No OFD packet to send [19:48:19]OFD Sender: No OFD packet to send [19:48:24]OFD Sender: No OFD packet to send [19:48:29]OFD Sender: No OFD packet to send [19:48:34]OFD Sender: No OFD packet to send [19:48:39]OFD Sender: No OFD packet to send [19:48:44]OFD Sender: No OFD packet to send [19:48:49]OFD Sender: No OFD packet to send [19:48:54]OFD Sender: No OFD packet to send [19:48:59]OFD Sender: No OFD packet to send [19:49:04]OFD Sender: No OFD packet to send [19:49:09]OFD Sender: No OFD packet to send [19:49:14]OFD Sender: No OFD packet to send [19:49:19]OFD Sender: No OFD packet to send [19:49:24]OFD Sender: No OFD packet to send [19:49:29]OFD Sender: No OFD packet to send [19:49:34]OFD Sender: No OFD packet to send [19:49:39]OFD Sender: No OFD packet to send [19:49:44]OFD Sender: No OFD packet to send [19:49:49]OFD Sender: No OFD packet to send [19:49:54]OFD Sender: No OFD packet to send [19:49:59]OFD Sender: No OFD packet to send [19:50:04]OFD Sender: No OFD packet to send [19:50:09]OFD Sender: No OFD packet to send [19:50:14]OFD Sender: No OFD packet to send [19:50:19]OFD Sender: No OFD packet to send [19:50:24]OFD Sender: No OFD packet to send [19:50:29]OFD Sender: No OFD packet to send [19:50:34]OFD Sender: No OFD packet to send [19:50:39]OFD Sender: No OFD packet to send [19:50:44]OFD Sender: No OFD packet to send [19:50:49]OFD Sender: No OFD packet to send [19:50:54]OFD Sender: No OFD packet to send [19:50:59]OFD Sender: No OFD packet to send [19:51:04]OFD Sender: No OFD packet to send [19:51:09]OFD Sender: No OFD packet to send [19:51:14]OFD Sender: No OFD packet to send [19:51:19]OFD Sender: No OFD packet to send [19:51:24]OFD Sender: No OFD packet to send [19:51:29]OFD Sender: No OFD packet to send [19:51:34]OFD Sender: No OFD packet to send [19:51:39]OFD Sender: No OFD packet to send [19:51:44]OFD Sender: No OFD packet to send [19:51:49]OFD Sender: No OFD packet to send [19:51:54]OFD Sender: No OFD packet to send [19:51:59]OFD Sender: No OFD packet to send [19:52:04]OFD Sender: No OFD packet to send [19:52:09]OFD Sender: No OFD packet to send [19:52:14]OFD Sender: No OFD packet to send [19:52:19]OFD Sender: No OFD packet to send [19:52:24]OFD Sender: No OFD packet to send [19:52:29]OFD Sender: No OFD packet to send [19:52:34]OFD Sender: No OFD packet to send [19:52:39]OFD Sender: No OFD packet to send [19:52:44]OFD Sender: No OFD packet to send [19:52:49]OFD Sender: No OFD packet to send [19:52:54]OFD Sender: No OFD packet to send [19:52:59]OFD Sender: No OFD packet to send [19:53:04]OFD Sender: No OFD packet to send [19:53:07]accept exits with 7 [19:53:07]New connection [19:53:07]New thread 3066654052 created [19:53:07]Thread 3066797412 joined [19:53:07]Waiting for new connection... [19:53:07] Sock 7.Parse request [19:53:07]Sock 7.Check first char [19:53:07]Sock 7.First char is OK [19:53:07]request: POST /json_proto HTTP/1.0 [19:53:07]Method: POST [19:53:07]URL: /json_proto [19:53:07]Method is POST - this is cgi request [19:53:07]url: /json_proto [19:53:07]query_string will be loaded in cgi processing [19:53:07]execute_cgi json_proto POST (null) [19:53:07]execute_cgi path=json_proto method=POST [19:53:07]POST find Content-Length [19:53:07]Host: 172.17.50.3:8080 [19:53:07]Content-Length: 773 [19:53:07]Content-Type: application/json [19:53:07] [19:53:07]POST finish read [19:53:07]Found Content-Length = 773 [19:53:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 54.780, "sum" : 2130.94, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2130.94 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:07]execute_script... [19:53:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 54.780, "sum" : 2130.94, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2130.94 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:07]POST & json_proto [19:53:07]process_json_proto [19:53:07]json parsed OK: [19:53:07]protocol is kg_v1.0 [19:53:07]action value=close_receipt [19:53:07]process_action close_receipt [19:53:07]cmd_close_receipt [19:53:07]MH_GetDate [19:53:07]Write to MH i2c: F0 00 00 85 0F 83 [19:53:07]Write i2c OK [19:53:07]MH_I2C_Read... [19:53:07]Read from MH i2c: F0 [19:53:07]MH_I2C_Read... [19:53:07]Read from MH i2c: F0 09 00 [19:53:07]MH_I2C_Read... [19:53:07]Read from MH i2c: F0 09 00 85 0F 00 A4 5F 15 67 6B 98 1E 66 92 [19:53:07]GetLastDocTimeStamp 1729453637 [19:53:07]current date 1729453988 [19:53:07]FM_GetShiftState [19:53:07]SAM_PROTO_GetShiftState [19:53:07]wFMCommunicate request_size=4 [19:53:07]MH_SAM_APDU [19:53:07]CAPDU: 80 13 01 00 [19:53:07]Write to MH i2c: E2 08 00 86 0F 80 13 01 00 00 00 00 00 12 [19:53:07]Write i2c OK [19:53:07]MH_I2C_Read... [19:53:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:07]Read from MH i2c: E2 [19:53:07]MH_I2C_Read... [19:53:07]Read from MH i2c: E2 0E 00 [19:53:07]MH_I2C_Read... [19:53:07]Read from MH i2c: E2 0E 00 86 0F 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 18 [19:53:07]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:53:07]wFMCommunicate OK [19:53:07]SAM_PROTO_GetShiftState done [19:53:07]FM_GetShiftState done [19:53:07]opened in 1729383220 [19:53:07]opened+sec_in_day 1729469620 [19:53:07]quantity*price = 213094 [19:53:07]sum+1 = 213095 [19:53:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2130.94 НСП 1% : 18.86 НДС 12% : 226.29 Наличными: 0.00 Безнал.: 2130.94 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 377 20.10.2024 19:53 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69532 ФПД: 5331714480800 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T195308&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69532&fm=5331714480800&tin=02508201610067®Number=0000000000156251&sum=213094 [19:53:08]StoreToDocumentArchive [19:53:08]shift 193 fd 69532 [19:53:08]save to /storage/0193/doc_00069532 [19:53:08]save last doc name /storage/0193/doc_00069532 to /storage/kkm_last_doc_name [19:53:08]save OK [19:53:08]Clear old archive folders... [19:53:08]ProcessDocumentItem done err = 0, tmpTLVsize=250 [19:53:08]tlvbuf is 00F575F0 [19:53:08]SAM_PROTO_ClearQueue [19:53:08]wFMCommunicate request_size=4 [19:53:08]MH_SAM_APDU [19:53:08]CAPDU: 80 09 00 00 [19:53:08]Write to MH i2c: E2 08 00 93 0F 80 09 00 00 00 00 00 00 14 [19:53:08]Write i2c OK [19:53:08]MH_I2C_Read... [19:53:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:53:08]Read from MH i2c: E2 [19:53:08]MH_I2C_Read... [19:53:08]Read from MH i2c: E2 03 00 [19:53:08]MH_I2C_Read... [19:53:08]Read from MH i2c: E2 03 00 93 0F 00 90 00 16 [19:53:08]RAPDU: 90 00 [19:53:08]wFMCommunicate OK [19:53:08]SAM_PROTO_ClearQueue done [19:53:08]KKMCreateOFDPacket [19:53:08]OFDProtocolAddRootSTLVToBuf [19:53:08]FM_MakeSignedData [19:53:08]FM_MakeSignedData [19:53:08]SAM_PROTO_SignData [19:53:08]wFMCommunicate request_size=4 [19:53:08]MH_SAM_APDU [19:53:08]CAPDU: 80 0D 01 02 [19:53:08]Write to MH i2c: E2 08 00 94 0F 80 0D 01 02 00 00 00 00 1C [19:53:08]Write i2c OK [19:53:08]MH_I2C_Read... [19:53:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:53:08]Read from MH i2c: E2 [19:53:08]MH_I2C_Read... [19:53:08]Read from MH i2c: E2 03 00 [19:53:08]MH_I2C_Read... [19:53:08]Read from MH i2c: E2 03 00 94 0F 00 90 00 17 [19:53:08]RAPDU: 90 00 [19:53:08]wFMCommunicate OK [19:53:08]wFMCommunicate request_size=255 [19:53:08]MH_SAM_APDU [19:53:08]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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 FC D5 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 66 40 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 40 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 58 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 40 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 01 00 00 F4 03 04 00 A4 5F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9C 0F 01 00 35 04 06 00 04 D9 [19:53:08]Write to MH i2c: E2 02 01 95 0F 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 FC D5 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 66 40 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 40 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 58 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 40 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 01 00 00 F4 03 04 00 A4 5F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9C 0F 01 00 35 04 06 00 04 D9 00 00 40 [19:53:08]Write i2c OK [19:53:08]MH_I2C_Read... [19:53:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:09]Read from MH i2c: E2 [19:53:09]MH_I2C_Read... [19:53:09]Read from MH i2c: E2 03 00 [19:53:09]MH_I2C_Read... [19:53:09]Read from MH i2c: E2 03 00 95 0F 00 90 00 18 [19:53:09]RAPDU: 90 00 [19:53:09]wFMCommunicate OK [19:53:09]wFMCommunicate request_size=9 [19:53:09]MH_SAM_APDU [19:53:09]CAPDU: 80 0D 02 02 04 62 F2 9A A0 [19:53:09]Write to MH i2c: E2 0C 00 96 0F 80 0D 02 02 04 00 62 F2 9A A0 00 00 B5 [19:53:09]Write i2c OK [19:53:09]MH_I2C_Read... [19:53:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:09]Read from MH i2c: E2 [19:53:09]MH_I2C_Read... [19:53:09]Read from MH i2c: E2 03 00 [19:53:09]MH_I2C_Read... [19:53:09]Read from MH i2c: E2 03 00 96 0F 00 90 00 19 [19:53:09]RAPDU: 90 00 [19:53:09]wFMCommunicate OK [19:53:09]wFMCommunicate request_size=4 [19:53:09]MH_SAM_APDU [19:53:09]CAPDU: 80 0D 03 02 [19:53:09]Write to MH i2c: E2 08 00 97 0F 80 0D 03 02 00 00 00 00 21 [19:53:09]Write i2c OK [19:53:09]MH_I2C_Read... [19:53:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:53:09]Read from MH i2c: E2 [19:53:09]MH_I2C_Read... [19:53:09]Read from MH i2c: E2 0B 00 [19:53:09]MH_I2C_Read... [19:53:09]Read from MH i2c: E2 0B 00 97 0F 00 70 AE 35 87 AE 76 60 6A 90 00 EA [19:53:09]RAPDU: 70 AE 35 87 AE 76 60 6A 90 00 [19:53:09]wFMCommunicate OK [19:53:09]SAM_PROTO_SignData done [19:53:09]FM_MakeSignedData done [19:53:09]CreateOFDProtocolMessage [19:53:09]wFMCommunicate request_size=4 [19:53:09]MH_SAM_APDU [19:53:09]CAPDU: 80 11 00 00 [19:53:09]Write to MH i2c: E2 08 00 98 0F 80 11 00 00 00 00 00 00 21 [19:53:09]Write i2c OK [19:53:09]MH_I2C_Read... [19:53:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:09]Read from MH i2c: E2 [19:53:09]MH_I2C_Read... [19:53:09]Read from MH i2c: E2 17 00 [19:53:09]MH_I2C_Read... [19:53:09]Read from MH i2c: E2 17 00 98 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 73 [19:53:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:53:09]wFMCommunicate OK [19:53:09]CreateOFDProtocolMessage done [19:53:09]OFDSenderStorePacket 69532 [19:53:09]StoreOFDPacket docnum=69532 [19:53:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 7D E7 06 01 5A 22 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 FC D5 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 66 40 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 40 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 58 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 40 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 01 00 00 F4 03 04 00 A4 5F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9C 0F 01 00 35 04 06 00 04 D9 62 F2 9A A0 70 AE 35 87 AE 76 60 6A [19:53:09]CheckFolder [19:53:09]dirname=/storage/ofd_packets [19:53:09]CheckFolder done [19:53:09]ProducePacketName [19:53:09]name=ofd_packets/00069532 [19:53:09]NVStorageSaveData ofd_packets/00069532 [19:53:09]File name is /storage/ofd_packets/00069532 [19:53:09]Write 300 bytes [19:53:09]NVStorageSaveData done [19:53:09]OFDSenderStorePacket done [19:53:09]KKMCreateOFDPacket done [19:53:09]NVStorageSaveData kkm_last_timestamp [19:53:09]File name is /storage/kkm_last_timestamp [19:53:09]Write 4 bytes [19:53:09]NVStorageSaveData done [19:53:09]ExternCall_PrintAddStr [19:53:09]wPrintStart [19:53:09]Write to MH i2c: 01 00 00 99 0F A8 [19:53:09]Write i2c OK [19:53:09]MH_I2C_Read... [19:53:09]Read from MH i2c: 01 [19:53:09]MH_I2C_Read... [19:53:09]Read from MH i2c: 01 07 00 [19:53:09]MH_I2C_Read... [19:53:09]Read from MH i2c: 01 07 00 99 0F 00 00 00 00 00 FF 0F BD [19:53:09]RasterBufferAndPrint [19:53:09]line Счет N : (1)2885272 [19:53:09]line ИНН: 02508201610067 [19:53:09]line Контрольно-Кассовый Чек [19:53:09]line ПРОДАЖА [19:53:09]line ТРК (МРК, ГНК) : 71 [19:53:09]line Товар: 2711129700 [19:53:09]line ГАЗ-К-3 [19:53:09]line 54.780 * 38.90 [19:53:09]line = 2130.94 [19:53:09]line НДС 12% НСП 1% [19:53:09]line > о реализуемом товаре [19:53:09]line ИТОГО: 2130.94 [19:53:09]line НСП 1% : 18.86 [19:53:09]line НДС 12% : 226.29 [19:53:09]line Наличными: 0.00 [19:53:09]line Безнал.: 2130.94 [19:53:09]line Место: АЗС № 85 "Партнер Нефть" [19:53:09]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:53:09]line СНО: Общий режим [19:53:09]line Чек 377 20.10.2024 19:53 [19:53:09]line Смена: 193 ФФД: 1.0 [19:53:09]line ЗНМ: 0300000167 [19:53:09]line РНМ: 0000000000156251 [19:53:09]line Версия ККМ: v1.0 [19:53:09]line Платежная система: Mbank [19:53:09]line ФМ: 0000000000963346 [19:53:09]line ФД: 69532 [19:53:09]line ФПД: 5331714480800 [19:53:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T195308&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69532&fm=5331714480800&tin=02508201610067®Number=0000000000156251&sum=213094 [19:53:09]OFD Sender: Processing packet 69532 [packets to send 18, broken 17] [19:53:09]ProducePacketName [19:53:09]name=ofd_packets/00069532 [19:53:09]OFD Sender: To server: pG, [19:53:09]CommunicateWithHost lk.salyk.kg:30040 [19:53:09]ConnectInit lk.salyk.kg [19:53:09]written 0, free lines is 4095 [19:53:09]Connected sock=10 [19:53:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 7D E7 06 01 5A 22 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 FC D5 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 66 40 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 40 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 58 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 40 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 01 00 00 F4 03 04 00 A4 5F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9C 0F 01 00 35 04 06 00 04 D9 62 F2 9A A0 70 AE 35 87 AE 76 60 6A [19:53:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 03 52 47 00 F4 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9C 0F 01 00 F4 03 04 00 4A 09 15 67 B6 04 01 00 00 24 2F 05 AF B2 5E 4C DD [19:53:09]CommunicateWithHost err = 0 [19:53:09]CheckOFDResponse [19:53:09]1017 (14) - 77093643461234 [19:53:09]1041 (16) - 0000000000963346 [19:53:09]1040 (4) - 69532 [19:53:09]1012 (4) - 20.10.2024 13:44 [19:53:09]1206 (1) - 0 [19:53:09]OFD Sender: Remove packet 69532 [19:53:09]ProducePacketName [19:53:09]name=ofd_packets/00069532 [19:53:09]NVStorageDeleteData [19:53:09]Write to MH i2c: 01 00 00 C2 0F D1 [19:53:09]Write i2c OK [19:53:09]MH_I2C_Read... [19:53:09]Read from MH i2c: 01 [19:53:09]MH_I2C_Read... [19:53:09]Read from MH i2c: 01 07 00 [19:53:09]MH_I2C_Read... [19:53:09]Read from MH i2c: 01 07 00 C2 0F 00 00 00 00 00 20 0D 05 [19:53:09]RasterBufferAndPrint [19:53:09]line [19:53:09]line [19:53:09]line [19:53:09]line [19:53:09]line [19:53:09]written 0, free lines is 3366 [19:53:09]MH_Cut [19:53:09]Write to MH i2c: D1 01 00 C9 0F 01 AA [19:53:09]Write i2c OK [19:53:09]MH_I2C_Read... [19:53:09]Read from MH i2c: D1 [19:53:09]MH_I2C_Read... [19:53:09]Read from MH i2c: D1 01 00 [19:53:09]MH_I2C_Read... [19:53:09]Read from MH i2c: D1 01 00 C9 0F 00 A9 [19:53:09]Write to MH i2c: 01 00 00 CA 0F D9 [19:53:09]Write i2c OK [19:53:09]MH_I2C_Read... [19:53:10]OFD Sender: No OFD packet to send [19:53:10]*** Cut start [19:53:10]*** Partial cut [19:53:10]*** CUTSNS_PIN = 1 [19:53:10]*** CUTSNS_PIN = 0 [19:53:10]*** Brake cut motor [19:53:11]Read from MH i2c: 01 [19:53:11]MH_I2C_Read... [19:53:11]*** Stop cut motor [19:53:11]*** Cut end [19:53:11]Read from MH i2c: 01 07 00 [19:53:11]MH_I2C_Read... [19:53:11]Read from MH i2c: 01 07 00 CA 0F 00 00 00 00 00 FF 0F EE [19:53:11]process_action close_receipt done [19:53:11]requested_data is exist [19:53:11]produce_requested_data [19:53:11]requested_item fm.sn is exist - process it [19:53:11]wFMCommunicate request_size=4 [19:53:11]MH_SAM_APDU [19:53:11]CAPDU: 80 11 00 00 [19:53:11]Write to MH i2c: E2 08 00 CB 0F 80 11 00 00 00 00 00 00 54 [19:53:11]Write i2c OK [19:53:11]MH_I2C_Read... [19:53:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:11]Read from MH i2c: E2 [19:53:11]MH_I2C_Read... [19:53:11]Read from MH i2c: E2 17 00 [19:53:11]MH_I2C_Read... [19:53:11]Read from MH i2c: E2 17 00 CB 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A6 [19:53:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:53:11]wFMCommunicate OK [19:53:11]requested_item fd.num is exist - process it [19:53:11]SAM_PROTO_GetFieldsCounters [19:53:11]wFMCommunicate request_size=4 [19:53:11]MH_SAM_APDU [19:53:11]CAPDU: 80 13 00 00 [19:53:11]Write to MH i2c: E2 08 00 CC 0F 80 13 00 00 00 00 00 00 57 [19:53:11]Write i2c OK [19:53:11]MH_I2C_Read... [19:53:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:53:11]Read from MH i2c: E2 [19:53:11]MH_I2C_Read... [19:53:11]Read from MH i2c: E2 62 00 [19:53:11]MH_I2C_Read... [19:53:11]Read from MH i2c: E2 62 00 CC 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9C 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 79 01 00 00 5E 04 04 00 79 01 00 00 57 04 04 00 7A 01 00 00 19 04 04 00 00 00 00 00 90 00 4D [19:53:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9C 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 79 01 00 00 5E 04 04 00 79 01 00 00 57 04 04 00 7A 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:53:11]wFMCommunicate OK [19:53:11]SAM_PROTO_GetFieldsCounters done [19:53:11]requested_item shift.num is exist - process it [19:53:11]requested_item shift.opened is exist - process it [19:53:11]req_shift_opened [19:53:11]FM_GetShiftState [19:53:11]SAM_PROTO_GetShiftState [19:53:11]wFMCommunicate request_size=4 [19:53:11]MH_SAM_APDU [19:53:11]CAPDU: 80 13 01 00 [19:53:11]Write to MH i2c: E2 08 00 CD 0F 80 13 01 00 00 00 00 00 59 [19:53:11]Write i2c OK [19:53:11]MH_I2C_Read... [19:53:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:11]Read from MH i2c: E2 [19:53:11]MH_I2C_Read... [19:53:11]Read from MH i2c: E2 0E 00 [19:53:11]MH_I2C_Read... [19:53:11]Read from MH i2c: E2 0E 00 CD 0F 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 5F [19:53:11]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:53:11]wFMCommunicate OK [19:53:11]SAM_PROTO_GetShiftState done [19:53:11]FM_GetShiftState done [19:53:11]req_shift_opened done [19:53:11]requested_item shift.open_date is exist - process it [19:53:11]req_shift_open_date [19:53:11]req_shift_open_date done [19:53:11]produce_requested_data done [19:53:11]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69532,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [19:53:11]process_action_free close_receipt [19:53:11]json_value_free [19:53:11]json_value_free done [19:53:11]process_json_proto returns [19:53:11]Send response to host [19:53:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69532,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [19:53:11]free response buf [19:53:11]execute_script done [19:53:11]execute_script returns [19:53:11]free content buf [19:53:11]Sock 7.Close socket [19:53:11]Sock 7.Thread stoped [19:53:15]OFD Sender: No OFD packet to send [19:53:20]OFD Sender: No OFD packet to send [19:53:25]OFD Sender: No OFD packet to send [19:53:30]OFD Sender: No OFD packet to send [19:53:35]OFD Sender: No OFD packet to send [19:53:40]OFD Sender: No OFD packet to send [19:53:45]OFD Sender: No OFD packet to send [19:53:50]OFD Sender: No OFD packet to send [19:53:55]OFD Sender: No OFD packet to send [19:54:00]OFD Sender: No OFD packet to send [19:54:04]accept exits with 9 [19:54:04]New connection [19:54:04]New thread 3066797412 created [19:54:04]Thread 3066654052 joined [19:54:04]Waiting for new connection... [19:54:04] Sock 9.Parse request [19:54:04]Sock 9.Check first char [19:54:04]Sock 9.First char is OK [19:54:04]request: POST /json_proto HTTP/1.0 [19:54:04]Method: POST [19:54:04]URL: /json_proto [19:54:04]Method is POST - this is cgi request [19:54:04]url: /json_proto [19:54:04]query_string will be loaded in cgi processing [19:54:04]execute_cgi json_proto POST (null) [19:54:04]execute_cgi path=json_proto method=POST [19:54:04]POST find Content-Length [19:54:04]Host: 172.17.50.3:8080 [19:54:04]Content-Length: 767 [19:54:04]Content-Type: application/json [19:54:04] [19:54:04]POST finish read [19:54:04]Found Content-Length = 767 [19:54:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:54:04]execute_script... [19:54: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)2885273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:54:04]POST & json_proto [19:54:04]process_json_proto [19:54:04]json parsed OK: [19:54:04]protocol is kg_v1.0 [19:54:04]action value=close_receipt [19:54:04]process_action close_receipt [19:54:04]cmd_close_receipt [19:54:04]MH_GetDate [19:54:04]Write to MH i2c: F0 00 00 CE 0F CC [19:54:04]Write i2c OK [19:54:04]MH_I2C_Read... [19:54:04]Read from MH i2c: F0 [19:54:04]MH_I2C_Read... [19:54:04]Read from MH i2c: F0 09 00 [19:54:04]MH_I2C_Read... [19:54:04]Read from MH i2c: F0 09 00 CE 0F 00 DD 5F 15 67 6B 98 1E 66 14 [19:54:04]GetLastDocTimeStamp 1729453988 [19:54:04]current date 1729454045 [19:54:04]FM_GetShiftState [19:54:04]SAM_PROTO_GetShiftState [19:54:04]wFMCommunicate request_size=4 [19:54:04]MH_SAM_APDU [19:54:04]CAPDU: 80 13 01 00 [19:54:04]Write to MH i2c: E2 08 00 CF 0F 80 13 01 00 00 00 00 00 5B [19:54:04]Write i2c OK [19:54:04]MH_I2C_Read... [19:54:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:04]Read from MH i2c: E2 [19:54:04]MH_I2C_Read... [19:54:04]Read from MH i2c: E2 0E 00 [19:54:04]MH_I2C_Read... [19:54:04]Read from MH i2c: E2 0E 00 CF 0F 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 61 [19:54:04]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:54:04]wFMCommunicate OK [19:54:04]SAM_PROTO_GetShiftState done [19:54:04]FM_GetShiftState done [19:54:04]opened in 1729383220 [19:54:04]opened+sec_in_day 1729469620 [19:54:04]quantity*price = 100050 [19:54:04]sum+1 = 100052 [19:54:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 378 20.10.2024 19:54 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69533 ФПД: 270099922057067 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T195405&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69533&fm=270099922057067&tin=02508201610067®Number=0000000000156251&sum=100051 [19:54:05]StoreToDocumentArchive [19:54:05]shift 193 fd 69533 [19:54:05]save to /storage/0193/doc_00069533 [19:54:05]save last doc name /storage/0193/doc_00069533 to /storage/kkm_last_doc_name [19:54:05]save OK [19:54:05]Clear old archive folders... [19:54:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:54:05]tlvbuf is 00F5B5C0 [19:54:05]SAM_PROTO_ClearQueue [19:54:05]wFMCommunicate request_size=4 [19:54:05]MH_SAM_APDU [19:54:05]CAPDU: 80 09 00 00 [19:54:05]Write to MH i2c: E2 08 00 DC 0F 80 09 00 00 00 00 00 00 5D [19:54:05]Write i2c OK [19:54:05]MH_I2C_Read... [19:54:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:54:05]Read from MH i2c: E2 [19:54:05]MH_I2C_Read... [19:54:05]Read from MH i2c: E2 03 00 [19:54:05]MH_I2C_Read... [19:54:05]Read from MH i2c: E2 03 00 DC 0F 00 90 00 5F [19:54:05]RAPDU: 90 00 [19:54:05]wFMCommunicate OK [19:54:05]SAM_PROTO_ClearQueue done [19:54:05]KKMCreateOFDPacket [19:54:05]OFDProtocolAddRootSTLVToBuf [19:54:05]FM_MakeSignedData [19:54:05]FM_MakeSignedData [19:54:05]SAM_PROTO_SignData [19:54:05]wFMCommunicate request_size=4 [19:54:05]MH_SAM_APDU [19:54:05]CAPDU: 80 0D 01 02 [19:54:05]Write to MH i2c: E2 08 00 DD 0F 80 0D 01 02 00 00 00 00 65 [19:54:05]Write i2c OK [19:54:05]MH_I2C_Read... [19:54:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:54:05]Read from MH i2c: E2 [19:54:05]MH_I2C_Read... [19:54:05]Read from MH i2c: E2 03 00 [19:54:05]MH_I2C_Read... [19:54:05]Read from MH i2c: E2 03 00 DD 0F 00 90 00 60 [19:54:05]RAPDU: 90 00 [19:54:05]wFMCommunicate OK [19:54:05]wFMCommunicate request_size=255 [19:54:05]MH_SAM_APDU [19:54:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 7A 01 00 00 F4 03 04 00 DD 5F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9D 0F 01 00 35 04 06 00 F5 A7 89 E8 [19:54:05]Write to MH i2c: E2 02 01 DE 0F 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 7A 01 00 00 F4 03 04 00 DD 5F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9D 0F 01 00 35 04 06 00 F5 A7 89 E8 00 00 F8 [19:54:05]Write i2c OK [19:54:05]MH_I2C_Read... [19:54:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:05]Read from MH i2c: E2 [19:54:05]MH_I2C_Read... [19:54:05]Read from MH i2c: E2 03 00 [19:54:05]MH_I2C_Read... [19:54:05]Read from MH i2c: E2 03 00 DE 0F 00 90 00 61 [19:54:05]RAPDU: 90 00 [19:54:05]wFMCommunicate OK [19:54:05]wFMCommunicate request_size=7 [19:54:05]MH_SAM_APDU [19:54:05]CAPDU: 80 0D 02 02 02 77 6B [19:54:05]Write to MH i2c: E2 0A 00 DF 0F 80 0D 02 02 02 00 77 6B 00 00 4E [19:54:05]Write i2c OK [19:54:05]MH_I2C_Read... [19:54:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:05]Read from MH i2c: E2 [19:54:05]MH_I2C_Read... [19:54:05]Read from MH i2c: E2 03 00 [19:54:05]MH_I2C_Read... [19:54:05]Read from MH i2c: E2 03 00 DF 0F 00 90 00 62 [19:54:05]RAPDU: 90 00 [19:54:05]wFMCommunicate OK [19:54:05]wFMCommunicate request_size=4 [19:54:05]MH_SAM_APDU [19:54:05]CAPDU: 80 0D 03 02 [19:54:05]Write to MH i2c: E2 08 00 E0 0F 80 0D 03 02 00 00 00 00 6A [19:54:05]Write i2c OK [19:54:05]MH_I2C_Read... [19:54:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:54:05]Read from MH i2c: E2 [19:54:05]MH_I2C_Read... [19:54:05]Read from MH i2c: E2 0B 00 [19:54:05]MH_I2C_Read... [19:54:05]Read from MH i2c: E2 0B 00 E0 0F 00 64 93 F9 D9 B1 DA 77 80 90 00 B6 [19:54:05]RAPDU: 64 93 F9 D9 B1 DA 77 80 90 00 [19:54:05]wFMCommunicate OK [19:54:05]SAM_PROTO_SignData done [19:54:05]FM_MakeSignedData done [19:54:05]CreateOFDProtocolMessage [19:54:05]wFMCommunicate request_size=4 [19:54:05]MH_SAM_APDU [19:54:05]CAPDU: 80 11 00 00 [19:54:05]Write to MH i2c: E2 08 00 E1 0F 80 11 00 00 00 00 00 00 6A [19:54:05]Write i2c OK [19:54:05]MH_I2C_Read... [19:54:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:06]Read from MH i2c: E2 [19:54:06]MH_I2C_Read... [19:54:06]Read from MH i2c: E2 17 00 [19:54:06]MH_I2C_Read... [19:54:06]Read from MH i2c: E2 17 00 E1 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BC [19:54:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:54:06]wFMCommunicate OK [19:54:06]CreateOFDProtocolMessage done [19:54:06]OFDSenderStorePacket 69533 [19:54:06]StoreOFDPacket docnum=69533 [19:54:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 7C 96 04 01 4E 2F 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 7A 01 00 00 F4 03 04 00 DD 5F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9D 0F 01 00 35 04 06 00 F5 A7 89 E8 77 6B 64 93 F9 D9 B1 DA 77 80 [19:54:06]CheckFolder [19:54:06]dirname=/storage/ofd_packets [19:54:06]CheckFolder done [19:54:06]ProducePacketName [19:54:06]name=ofd_packets/00069533 [19:54:06]NVStorageSaveData ofd_packets/00069533 [19:54:06]File name is /storage/ofd_packets/00069533 [19:54:06]Write 298 bytes [19:54:06]NVStorageSaveData done [19:54:06]OFDSenderStorePacket done [19:54:06]KKMCreateOFDPacket done [19:54:06]NVStorageSaveData kkm_last_timestamp [19:54:06]File name is /storage/kkm_last_timestamp [19:54:06]Write 4 bytes [19:54:06]NVStorageSaveData done [19:54:06]ExternCall_PrintAddStr [19:54:06]wPrintStart [19:54:06]Write to MH i2c: 01 00 00 E2 0F F1 [19:54:06]Write i2c OK [19:54:06]MH_I2C_Read... [19:54:06]Read from MH i2c: 01 [19:54:06]MH_I2C_Read... [19:54:06]Read from MH i2c: 01 07 00 [19:54:06]MH_I2C_Read... [19:54:06]Read from MH i2c: 01 07 00 E2 0F 00 00 00 00 00 FF 0F 06 [19:54:06]RasterBufferAndPrint [19:54:06]line Счет N : (1)2885273 [19:54:06]line ИНН: 02508201610067 [19:54:06]line Контрольно-Кассовый Чек [19:54:06]line ПРОДАЖА [19:54:06]line ТРК (МРК, ГНК) : 61 [19:54:06]line Товар: 2710194210 [19:54:06]line ДТ-К-5 [19:54:06]line 13.130 * 76.20 [19:54:06]line = 1000.51 [19:54:06]line НДС 12% НСП 1% [19:54:06]line > о реализуемом товаре [19:54:06]line ИТОГО: 1000.51 [19:54:06]line НСП 1% : 8.85 [19:54:06]line НДС 12% : 106.25 [19:54:06]line Наличными: 0.00 [19:54:06]line Безнал.: 1000.51 [19:54:06]line Место: АЗС № 85 "Партнер Нефть" [19:54:06]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:54:06]line СНО: Общий режим [19:54:06]line Чек 378 20.10.2024 19:54 [19:54:06]line Смена: 193 ФФД: 1.0 [19:54:06]line ЗНМ: 0300000167 [19:54:06]line РНМ: 0000000000156251 [19:54:06]line Версия ККМ: v1.0 [19:54:06]line Платежная система: Mbank [19:54:06]line ФМ: 0000000000963346 [19:54:06]line ФД: 69533 [19:54:06]line ФПД: 270099922057067 [19:54:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T195405&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69533&fm=270099922057067&tin=02508201610067®Number=0000000000156251&sum=100051 [19:54:06]OFD Sender: Processing packet 69533 [packets to send 18, broken 17] [19:54:06]ProducePacketName [19:54:06]name=ofd_packets/00069533 [19:54:06]OFD Sender: To server: pG, [19:54:06]CommunicateWithHost lk.salyk.kg:30040 [19:54:06]ConnectInit lk.salyk.kg [19:54:06]written 0, free lines is 4095 [19:54:06]Connected sock=10 [19:54:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 7C 96 04 01 4E 2F 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 7A 01 00 00 F4 03 04 00 DD 5F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9D 0F 01 00 35 04 06 00 F5 A7 89 E8 77 6B 64 93 F9 D9 B1 DA 77 80 [19:54:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 ED DF 47 00 5E 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 30 39 36 33 33 34 36 10 04 04 00 9D 0F 01 00 F4 03 04 00 83 09 15 67 B6 04 01 00 00 02 AD D9 4D 4F 4D 3A 9F [19:54:06]CommunicateWithHost err = 0 [19:54:06]CheckOFDResponse [19:54:06]1017 (14) - 77093643461234 [19:54:06]1041 (16) - 0000000000963346 [19:54:06]1040 (4) - 69533 [19:54:06]1012 (4) - 20.10.2024 13:45 [19:54:06]1206 (1) - 0 [19:54:06]OFD Sender: Remove packet 69533 [19:54:06]ProducePacketName [19:54:06]name=ofd_packets/00069533 [19:54:06]NVStorageDeleteData [19:54:06]Write to MH i2c: 01 00 00 0B 10 1B [19:54:06]Write i2c OK [19:54:06]MH_I2C_Read... [19:54:06]Read from MH i2c: 01 [19:54:06]MH_I2C_Read... [19:54:06]Read from MH i2c: 01 07 00 [19:54:06]MH_I2C_Read... [19:54:06]Read from MH i2c: 01 07 00 0B 10 00 00 00 00 00 2A 0D 59 [19:54:06]RasterBufferAndPrint [19:54:06]line [19:54:06]line [19:54:06]line [19:54:06]line [19:54:06]line [19:54:06]written 0, free lines is 3377 [19:54:06]MH_Cut [19:54:06]Write to MH i2c: D1 01 00 12 10 01 F4 [19:54:06]Write i2c OK [19:54:06]MH_I2C_Read... [19:54:06]Read from MH i2c: D1 [19:54:06]MH_I2C_Read... [19:54:06]Read from MH i2c: D1 01 00 [19:54:06]MH_I2C_Read... [19:54:06]Read from MH i2c: D1 01 00 12 10 00 F3 [19:54:06]Write to MH i2c: 01 00 00 13 10 23 [19:54:06]Write i2c OK [19:54:06]MH_I2C_Read... [19:54:07]OFD Sender: No OFD packet to send [19:54:07]*** Cut start [19:54:07]*** Partial cut [19:54:07]*** CUTSNS_PIN = 1 [19:54:07]*** CUTSNS_PIN = 0 [19:54:07]*** Brake cut motor [19:54:08]Read from MH i2c: 01 [19:54:08]MH_I2C_Read... [19:54:08]*** Stop cut motor [19:54:08]*** Cut end [19:54:08]Read from MH i2c: 01 07 00 [19:54:08]MH_I2C_Read... [19:54:08]Read from MH i2c: 01 07 00 13 10 00 00 00 00 00 FF 0F 38 [19:54:08]process_action close_receipt done [19:54:08]requested_data is exist [19:54:08]produce_requested_data [19:54:08]requested_item fm.sn is exist - process it [19:54:08]wFMCommunicate request_size=4 [19:54:08]MH_SAM_APDU [19:54:08]CAPDU: 80 11 00 00 [19:54:08]Write to MH i2c: E2 08 00 14 10 80 11 00 00 00 00 00 00 9E [19:54:08]Write i2c OK [19:54:08]MH_I2C_Read... [19:54:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:08]Read from MH i2c: E2 [19:54:08]MH_I2C_Read... [19:54:08]Read from MH i2c: E2 17 00 [19:54:08]MH_I2C_Read... [19:54:08]Read from MH i2c: E2 17 00 14 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F0 [19:54:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:54:08]wFMCommunicate OK [19:54:08]requested_item fd.num is exist - process it [19:54:08]SAM_PROTO_GetFieldsCounters [19:54:08]wFMCommunicate request_size=4 [19:54:08]MH_SAM_APDU [19:54:08]CAPDU: 80 13 00 00 [19:54:08]Write to MH i2c: E2 08 00 15 10 80 13 00 00 00 00 00 00 A1 [19:54:08]Write i2c OK [19:54:08]MH_I2C_Read... [19:54:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:54:08]Read from MH i2c: E2 [19:54:08]MH_I2C_Read... [19:54:08]Read from MH i2c: E2 62 00 [19:54:08]MH_I2C_Read... [19:54:08]Read from MH i2c: E2 62 00 15 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9D 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 7A 01 00 00 5E 04 04 00 7A 01 00 00 57 04 04 00 7B 01 00 00 19 04 04 00 00 00 00 00 90 00 9B [19:54:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9D 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 7A 01 00 00 5E 04 04 00 7A 01 00 00 57 04 04 00 7B 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:54:08]wFMCommunicate OK [19:54:08]SAM_PROTO_GetFieldsCounters done [19:54:08]requested_item shift.num is exist - process it [19:54:08]requested_item shift.opened is exist - process it [19:54:08]req_shift_opened [19:54:08]FM_GetShiftState [19:54:08]SAM_PROTO_GetShiftState [19:54:08]wFMCommunicate request_size=4 [19:54:08]MH_SAM_APDU [19:54:08]CAPDU: 80 13 01 00 [19:54:08]Write to MH i2c: E2 08 00 16 10 80 13 01 00 00 00 00 00 A3 [19:54:08]Write i2c OK [19:54:08]MH_I2C_Read... [19:54:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:08]Read from MH i2c: E2 [19:54:08]MH_I2C_Read... [19:54:08]Read from MH i2c: E2 0E 00 [19:54:08]MH_I2C_Read... [19:54:08]Read from MH i2c: E2 0E 00 16 10 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 A9 [19:54:08]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:54:08]wFMCommunicate OK [19:54:08]SAM_PROTO_GetShiftState done [19:54:08]FM_GetShiftState done [19:54:08]req_shift_opened done [19:54:08]requested_item shift.open_date is exist - process it [19:54:08]req_shift_open_date [19:54:08]req_shift_open_date done [19:54:08]produce_requested_data done [19:54:08]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69533,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [19:54:08]process_action_free close_receipt [19:54:08]json_value_free [19:54:08]json_value_free done [19:54:08]process_json_proto returns [19:54:08]Send response to host [19:54:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69533,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [19:54:08]free response buf [19:54:08]execute_script done [19:54:08]execute_script returns [19:54:08]free content buf [19:54:08]Sock 9.Close socket [19:54:08]Sock 9.Thread stoped [19:54:12]OFD Sender: No OFD packet to send [19:54:17]OFD Sender: No OFD packet to send [19:54:22]OFD Sender: No OFD packet to send [19:54:27]OFD Sender: No OFD packet to send [19:54:32]OFD Sender: No OFD packet to send [19:54:37]OFD Sender: No OFD packet to send [19:54:42]OFD Sender: No OFD packet to send [19:54:47]OFD Sender: No OFD packet to send [19:54:52]OFD Sender: No OFD packet to send [19:54:57]OFD Sender: No OFD packet to send [19:55:02]OFD Sender: No OFD packet to send [19:55:07]OFD Sender: No OFD packet to send [19:55:12]OFD Sender: No OFD packet to send [19:55:17]OFD Sender: No OFD packet to send [19:55:22]OFD Sender: No OFD packet to send [19:55:27]OFD Sender: No OFD packet to send [19:55:32]OFD Sender: No OFD packet to send [19:55:37]OFD Sender: No OFD packet to send [19:55:42]OFD Sender: No OFD packet to send [19:55:47]OFD Sender: No OFD packet to send [19:55:52]OFD Sender: No OFD packet to send [19:55:54]accept exits with 7 [19:55:54]New connection [19:55:54]New thread 3066654052 created [19:55:54]Thread 3066797412 joined [19:55:54]Waiting for new connection... [19:55:54] Sock 7.Parse request [19:55:54]Sock 7.Check first char [19:55:54]Sock 7.First char is OK [19:55:54]request: POST /json_proto HTTP/1.0 [19:55:54]Method: POST [19:55:54]URL: /json_proto [19:55:54]Method is POST - this is cgi request [19:55:54]url: /json_proto [19:55:54]query_string will be loaded in cgi processing [19:55:54]execute_cgi json_proto POST (null) [19:55:54]execute_cgi path=json_proto method=POST [19:55:54]POST find Content-Length [19:55:54]Host: 172.17.50.3:8080 [19:55:54]Content-Length: 980 [19:55:54]Content-Type: application/json [19:55:54] [19:55:54]POST finish read [19:55:54]Found Content-Length = 980 [19:55:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 106.390, "sum" : 8000.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 106.39 \u0441\u043E\u043C", "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:54]execute_script... [19:55: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)2885274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 106.390, "sum" : 8000.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 106.39 \u0441\u043E\u043C", "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:54]POST & json_proto [19:55:54]process_json_proto [19:55:54]json parsed OK: [19:55:54]protocol is kg_v1.0 [19:55:54]action value=close_receipt [19:55:54]process_action close_receipt [19:55:54]cmd_close_receipt [19:55:54]MH_GetDate [19:55:54]Write to MH i2c: F0 00 00 17 10 16 [19:55:54]Write i2c OK [19:55:54]MH_I2C_Read... [19:55:54]Read from MH i2c: F0 [19:55:54]MH_I2C_Read... [19:55:54]Read from MH i2c: F0 09 00 [19:55:54]MH_I2C_Read... [19:55:54]Read from MH i2c: F0 09 00 17 10 00 4B 60 15 67 6B 98 1E 66 CD [19:55:54]GetLastDocTimeStamp 1729454045 [19:55:54]current date 1729454155 [19:55:54]FM_GetShiftState [19:55:54]SAM_PROTO_GetShiftState [19:55:54]wFMCommunicate request_size=4 [19:55:54]MH_SAM_APDU [19:55:54]CAPDU: 80 13 01 00 [19:55:54]Write to MH i2c: E2 08 00 18 10 80 13 01 00 00 00 00 00 A5 [19:55:54]Write i2c OK [19:55:54]MH_I2C_Read... [19:55:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:54]Read from MH i2c: E2 [19:55:54]MH_I2C_Read... [19:55:54]Read from MH i2c: E2 0E 00 [19:55:54]MH_I2C_Read... [19:55:54]Read from MH i2c: E2 0E 00 18 10 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 AB [19:55:54]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:55:54]wFMCommunicate OK [19:55:54]SAM_PROTO_GetShiftState done [19:55:54]FM_GetShiftState done [19:55:54]opened in 1729383220 [19:55:54]opened+sec_in_day 1729469620 [19:55:54]quantity*price = 800052 [19:55:54]sum+1 = 800054 [19:55:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 8000.00 Внесено: 8000.00 СДАЧА: 0.00 НСП 1% : 70.80 НДС 12% : 849.61 Наличными: 8000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 379 20.10.2024 19:55 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Дисконтная программа ДТ номер 85 сэкономлено 106.39 сом ФМ: 0000000000963346 ФД: 69534 ФПД: 143068452217856 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T195555&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69534&fm=143068452217856&tin=02508201610067®Number=0000000000156251&sum=800000 [19:55:55]StoreToDocumentArchive [19:55:55]shift 193 fd 69534 [19:55:55]save to /storage/0193/doc_00069534 [19:55:55]save last doc name /storage/0193/doc_00069534 to /storage/kkm_last_doc_name [19:55:55]save OK [19:55:55]Clear old archive folders... [19:55:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:55:55]tlvbuf is 00F47140 [19:55:55]SAM_PROTO_ClearQueue [19:55:55]wFMCommunicate request_size=4 [19:55:55]MH_SAM_APDU [19:55:55]CAPDU: 80 09 00 00 [19:55:55]Write to MH i2c: E2 08 00 25 10 80 09 00 00 00 00 00 00 A7 [19:55:55]Write i2c OK [19:55:55]MH_I2C_Read... [19:55:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:55:55]Read from MH i2c: E2 [19:55:55]MH_I2C_Read... [19:55:55]Read from MH i2c: E2 03 00 [19:55:55]MH_I2C_Read... [19:55:55]Read from MH i2c: E2 03 00 25 10 00 90 00 A9 [19:55:55]RAPDU: 90 00 [19:55:55]wFMCommunicate OK [19:55:55]SAM_PROTO_ClearQueue done [19:55:55]KKMCreateOFDPacket [19:55:55]OFDProtocolAddRootSTLVToBuf [19:55:55]FM_MakeSignedData [19:55:55]FM_MakeSignedData [19:55:55]SAM_PROTO_SignData [19:55:55]wFMCommunicate request_size=4 [19:55:55]MH_SAM_APDU [19:55:55]CAPDU: 80 0D 01 02 [19:55:55]Write to MH i2c: E2 08 00 26 10 80 0D 01 02 00 00 00 00 AF [19:55:55]Write i2c OK [19:55:55]MH_I2C_Read... [19:55:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:55:55]Read from MH i2c: E2 [19:55:55]MH_I2C_Read... [19:55:55]Read from MH i2c: E2 03 00 [19:55:55]MH_I2C_Read... [19:55:55]Read from MH i2c: E2 03 00 26 10 00 90 00 AA [19:55:55]RAPDU: 90 00 [19:55:55]wFMCommunicate OK [19:55:55]wFMCommunicate request_size=255 [19:55:55]MH_SAM_APDU [19:55: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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 01 00 00 F4 03 04 00 4B 60 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9E 0F 01 00 35 04 06 00 82 1E B8 45 [19:55:55]Write to MH i2c: E2 02 01 27 10 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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 01 00 00 F4 03 04 00 4B 60 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9E 0F 01 00 35 04 06 00 82 1E B8 45 00 00 50 [19:55:55]Write i2c OK [19:55:55]MH_I2C_Read... [19:55:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:56]Read from MH i2c: E2 [19:55:56]MH_I2C_Read... [19:55:56]Read from MH i2c: E2 03 00 [19:55:56]MH_I2C_Read... [19:55:56]Read from MH i2c: E2 03 00 27 10 00 90 00 AB [19:55:56]RAPDU: 90 00 [19:55:56]wFMCommunicate OK [19:55:56]wFMCommunicate request_size=7 [19:55:56]MH_SAM_APDU [19:55:56]CAPDU: 80 0D 02 02 02 E4 00 [19:55:56]Write to MH i2c: E2 0A 00 28 10 80 0D 02 02 02 00 E4 00 00 00 9A [19:55:56]Write i2c OK [19:55:56]MH_I2C_Read... [19:55:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:56]Read from MH i2c: E2 [19:55:56]MH_I2C_Read... [19:55:56]Read from MH i2c: E2 03 00 [19:55:56]MH_I2C_Read... [19:55:56]Read from MH i2c: E2 03 00 28 10 00 90 00 AC [19:55:56]RAPDU: 90 00 [19:55:56]wFMCommunicate OK [19:55:56]wFMCommunicate request_size=4 [19:55:56]MH_SAM_APDU [19:55:56]CAPDU: 80 0D 03 02 [19:55:56]Write to MH i2c: E2 08 00 29 10 80 0D 03 02 00 00 00 00 B4 [19:55:56]Write i2c OK [19:55:56]MH_I2C_Read... [19:55:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:55:56]Read from MH i2c: E2 [19:55:56]MH_I2C_Read... [19:55:56]Read from MH i2c: E2 0B 00 [19:55:56]MH_I2C_Read... [19:55:56]Read from MH i2c: E2 0B 00 29 10 00 64 50 56 E9 88 DA B2 91 90 00 4D [19:55:56]RAPDU: 64 50 56 E9 88 DA B2 91 90 00 [19:55:56]wFMCommunicate OK [19:55:56]SAM_PROTO_SignData done [19:55:56]FM_MakeSignedData done [19:55:56]CreateOFDProtocolMessage [19:55:56]wFMCommunicate request_size=4 [19:55:56]MH_SAM_APDU [19:55:56]CAPDU: 80 11 00 00 [19:55:56]Write to MH i2c: E2 08 00 2A 10 80 11 00 00 00 00 00 00 B4 [19:55:56]Write i2c OK [19:55:56]MH_I2C_Read... [19:55:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:56]Read from MH i2c: E2 [19:55:56]MH_I2C_Read... [19:55:56]Read from MH i2c: E2 17 00 [19:55:56]MH_I2C_Read... [19:55:56]Read from MH i2c: E2 17 00 2A 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 06 [19:55:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:55:56]wFMCommunicate OK [19:55:56]CreateOFDProtocolMessage done [19:55:56]OFDSenderStorePacket 69534 [19:55:56]StoreOFDPacket docnum=69534 [19:55:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 8C 8B 04 01 EA 04 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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 01 00 00 F4 03 04 00 4B 60 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9E 0F 01 00 35 04 06 00 82 1E B8 45 E4 00 64 50 56 E9 88 DA B2 91 [19:55:56]CheckFolder [19:55:56]dirname=/storage/ofd_packets [19:55:56]CheckFolder done [19:55:56]ProducePacketName [19:55:56]name=ofd_packets/00069534 [19:55:56]NVStorageSaveData ofd_packets/00069534 [19:55:56]File name is /storage/ofd_packets/00069534 [19:55:56]Write 298 bytes [19:55:56]NVStorageSaveData done [19:55:56]OFDSenderStorePacket done [19:55:56]KKMCreateOFDPacket done [19:55:56]NVStorageSaveData kkm_last_timestamp [19:55:56]File name is /storage/kkm_last_timestamp [19:55:56]Write 4 bytes [19:55:56]NVStorageSaveData done [19:55:56]ExternCall_PrintAddStr [19:55:56]wPrintStart [19:55:56]Write to MH i2c: 01 00 00 2B 10 3B [19:55:56]Write i2c OK [19:55:56]MH_I2C_Read... [19:55:56]Read from MH i2c: 01 [19:55:56]MH_I2C_Read... [19:55:56]Read from MH i2c: 01 07 00 [19:55:56]MH_I2C_Read... [19:55:56]Read from MH i2c: 01 07 00 2B 10 00 00 00 00 00 FF 0F 50 [19:55:56]RasterBufferAndPrint [19:55:56]line Счет N : (1)2885274 [19:55:56]line ИНН: 02508201610067 [19:55:56]line Контрольно-Кассовый Чек [19:55:56]line ПРОДАЖА [19:55:56]line ТРК (МРК, ГНК) : 51 [19:55:56]line Товар: 2710194210 [19:55:56]line ДТ-К-5 [19:55:56]line 106.390 * 75.20 [19:55:56]line = 8000.53 [19:55:56]line НДС 12% НСП 1% [19:55:56]line > о реализуемом товаре [19:55:56]line ОКРУГЛЕНИЕ: -0.53 [19:55:56]line ИТОГО: 8000.00 [19:55:56]line Внесено: 8000.00 [19:55:56]line СДАЧА: 0.00 [19:55:56]line НСП 1% : 70.80 [19:55:56]line НДС 12% : 849.61 [19:55:56]line Наличными: 8000.00 [19:55:56]line Безнал.: 0.00 [19:55:56]line Место: АЗС № 85 "Партнер Нефть" [19:55:56]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:55:56]line СНО: Общий режим [19:55:56]line Чек 379 20.10.2024 19:55 [19:55:56]line Смена: 193 ФФД: 1.0 [19:55:56]line ЗНМ: 0300000167 [19:55:56]line РНМ: 0000000000156251 [19:55:56]line Версия ККМ: v1.0 [19:55:56]line [19:55:56]line Дисконтная программа [19:55:56]line ДТ [19:55:56]line номер 85 [19:55:56]line сэкономлено 106.39 сом [19:55:56]line ФМ: 0000000000963346 [19:55:56]line ФД: 69534 [19:55:56]line ФПД: 143068452217856 [19:55:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T195555&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69534&fm=143068452217856&tin=02508201610067®Number=0000000000156251&sum=800000 [19:55:56]written 0, free lines is 4095 [19:55:56]OFD Sender: Processing packet 69534 [packets to send 18, broken 17] [19:55:56]ProducePacketName [19:55:56]name=ofd_packets/00069534 [19:55:56]OFD Sender: To server: pG, [19:55:56]CommunicateWithHost lk.salyk.kg:30040 [19:55:56]ConnectInit lk.salyk.kg [19:55:56]Connected sock=10 [19:55:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 8C 8B 04 01 EA 04 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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 01 00 00 F4 03 04 00 4B 60 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9E 0F 01 00 35 04 06 00 82 1E B8 45 E4 00 64 50 56 E9 88 DA B2 91 [19:55:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 3C C4 47 00 73 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9E 0F 01 00 F4 03 04 00 F0 09 15 67 B6 04 01 00 00 F9 BE F7 6F B9 02 17 56 [19:55:56]CommunicateWithHost err = 0 [19:55:56]CheckOFDResponse [19:55:56]1017 (14) - 77093643461234 [19:55:56]1041 (16) - 0000000000963346 [19:55:56]1040 (4) - 69534 [19:55:56]1012 (4) - 20.10.2024 13:47 [19:55:56]1206 (1) - 0 [19:55:56]OFD Sender: Remove packet 69534 [19:55:56]ProducePacketName [19:55:56]name=ofd_packets/00069534 [19:55:56]NVStorageDeleteData [19:55:56]Write to MH i2c: 01 00 00 5B 10 6B [19:55:56]Write i2c OK [19:55:56]MH_I2C_Read... [19:55:56]Read from MH i2c: 01 [19:55:56]MH_I2C_Read... [19:55:56]Read from MH i2c: 01 07 00 [19:55:56]MH_I2C_Read... [19:55:56]Read from MH i2c: 01 07 00 5B 10 00 00 00 00 00 B0 0C 2E [19:55:56]RasterBufferAndPrint [19:55:56]line [19:55:56]line [19:55:56]line [19:55:56]line [19:55:56]line [19:55:56]written 0, free lines is 3255 [19:55:56]MH_Cut [19:55:56]Write to MH i2c: D1 01 00 62 10 01 44 [19:55:56]Write i2c OK [19:55:56]MH_I2C_Read... [19:55:56]Read from MH i2c: D1 [19:55:56]MH_I2C_Read... [19:55:56]Read from MH i2c: D1 01 00 [19:55:56]MH_I2C_Read... [19:55:56]Read from MH i2c: D1 01 00 62 10 00 43 [19:55:56]Write to MH i2c: 01 00 00 63 10 73 [19:55:56]Write i2c OK [19:55:56]MH_I2C_Read... [19:55:57]OFD Sender: No OFD packet to send [19:55:57]*** Cut start [19:55:57]*** Partial cut [19:55:57]*** CUTSNS_PIN = 1 [19:55:57]*** CUTSNS_PIN = 0 [19:55:57]*** Brake cut motor [19:55:58]Read from MH i2c: 01 [19:55:58]MH_I2C_Read... [19:55:58]*** Stop cut motor [19:55:58]*** Cut end [19:55:58]Read from MH i2c: 01 07 00 [19:55:58]MH_I2C_Read... [19:55:58]Read from MH i2c: 01 07 00 63 10 00 00 00 00 00 FF 0F 88 [19:55:58]process_action close_receipt done [19:55:58]requested_data is exist [19:55:58]produce_requested_data [19:55:58]requested_item fm.sn is exist - process it [19:55:58]wFMCommunicate request_size=4 [19:55:58]MH_SAM_APDU [19:55:58]CAPDU: 80 11 00 00 [19:55:58]Write to MH i2c: E2 08 00 64 10 80 11 00 00 00 00 00 00 EE [19:55:58]Write i2c OK [19:55:58]MH_I2C_Read... [19:55:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:58]Read from MH i2c: E2 [19:55:58]MH_I2C_Read... [19:55:58]Read from MH i2c: E2 17 00 [19:55:58]MH_I2C_Read... [19:55:58]Read from MH i2c: E2 17 00 64 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 40 [19:55:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:55:58]wFMCommunicate OK [19:55:58]requested_item fd.num is exist - process it [19:55:58]SAM_PROTO_GetFieldsCounters [19:55:58]wFMCommunicate request_size=4 [19:55:58]MH_SAM_APDU [19:55:58]CAPDU: 80 13 00 00 [19:55:58]Write to MH i2c: E2 08 00 65 10 80 13 00 00 00 00 00 00 F1 [19:55:58]Write i2c OK [19:55:58]MH_I2C_Read... [19:55:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:55:58]Read from MH i2c: E2 [19:55:58]MH_I2C_Read... [19:55:58]Read from MH i2c: E2 62 00 [19:55:58]MH_I2C_Read... [19:55:58]Read from MH i2c: E2 62 00 65 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9E 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 7B 01 00 00 5E 04 04 00 7B 01 00 00 57 04 04 00 7C 01 00 00 19 04 04 00 00 00 00 00 90 00 EF [19:55:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9E 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 7B 01 00 00 5E 04 04 00 7B 01 00 00 57 04 04 00 7C 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:55:58]wFMCommunicate OK [19:55:58]SAM_PROTO_GetFieldsCounters done [19:55:58]requested_item shift.num is exist - process it [19:55:58]requested_item shift.opened is exist - process it [19:55:58]req_shift_opened [19:55:58]FM_GetShiftState [19:55:58]SAM_PROTO_GetShiftState [19:55:58]wFMCommunicate request_size=4 [19:55:58]MH_SAM_APDU [19:55:58]CAPDU: 80 13 01 00 [19:55:58]Write to MH i2c: E2 08 00 66 10 80 13 01 00 00 00 00 00 F3 [19:55:58]Write i2c OK [19:55:58]MH_I2C_Read... [19:55:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:58]Read from MH i2c: E2 [19:55:58]MH_I2C_Read... [19:55:58]Read from MH i2c: E2 0E 00 [19:55:58]MH_I2C_Read... [19:55:58]Read from MH i2c: E2 0E 00 66 10 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 F9 [19:55:58]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:55:58]wFMCommunicate OK [19:55:58]SAM_PROTO_GetShiftState done [19:55:58]FM_GetShiftState done [19:55:58]req_shift_opened done [19:55:58]requested_item shift.open_date is exist - process it [19:55:58]req_shift_open_date [19:55:58]req_shift_open_date done [19:55:58]produce_requested_data done [19:55:58]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69534,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [19:55:58]process_action_free close_receipt [19:55:58]json_value_free [19:55:58]json_value_free done [19:55:58]process_json_proto returns [19:55:58]Send response to host [19:55:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69534,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [19:55:58]free response buf [19:55:58]execute_script done [19:55:58]execute_script returns [19:55:58]free content buf [19:55:58]Sock 7.Close socket [19:55:58]Sock 7.Thread stoped [19:56:02]OFD Sender: No OFD packet to send [19:56:06]accept exits with 9 [19:56:06]New connection [19:56:06]New thread 3066797412 created [19:56:06]Thread 3066654052 joined [19:56:06]Waiting for new connection... [19:56:06] Sock 9.Parse request [19:56:06]Sock 9.Check first char [19:56:06]Sock 9.First char is OK [19:56:06]request: POST /json_proto HTTP/1.0 [19:56:06]Method: POST [19:56:06]URL: /json_proto [19:56:06]Method is POST - this is cgi request [19:56:06]url: /json_proto [19:56:06]query_string will be loaded in cgi processing [19:56:06]execute_cgi json_proto POST (null) [19:56:06]execute_cgi path=json_proto method=POST [19:56:06]POST find Content-Length [19:56:06]Host: 172.17.50.3:8080 [19:56:06]Content-Length: 980 [19:56:06]Content-Type: application/json [19:56:06] [19:56:06]POST finish read [19:56:06]Found Content-Length = 980 [19:56:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 106.390, "sum" : 8000.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 106.39 \u0441\u043E\u043C", "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:56:06]execute_script... [19:56: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)2885275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 106.390, "sum" : 8000.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 106.39 \u0441\u043E\u043C", "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:56:06]POST & json_proto [19:56:06]process_json_proto [19:56:06]json parsed OK: [19:56:06]protocol is kg_v1.0 [19:56:06]action value=close_receipt [19:56:06]process_action close_receipt [19:56:06]cmd_close_receipt [19:56:06]MH_GetDate [19:56:06]Write to MH i2c: F0 00 00 67 10 66 [19:56:06]Write i2c OK [19:56:06]MH_I2C_Read... [19:56:06]Read from MH i2c: F0 [19:56:06]MH_I2C_Read... [19:56:06]Read from MH i2c: F0 09 00 [19:56:06]MH_I2C_Read... [19:56:06]Read from MH i2c: F0 09 00 67 10 00 56 60 15 67 6B 98 1E 66 28 [19:56:06]GetLastDocTimeStamp 1729454155 [19:56:06]current date 1729454166 [19:56:06]FM_GetShiftState [19:56:06]SAM_PROTO_GetShiftState [19:56:06]wFMCommunicate request_size=4 [19:56:06]MH_SAM_APDU [19:56:06]CAPDU: 80 13 01 00 [19:56:06]Write to MH i2c: E2 08 00 68 10 80 13 01 00 00 00 00 00 F5 [19:56:06]Write i2c OK [19:56:06]MH_I2C_Read... [19:56:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:06]Read from MH i2c: E2 [19:56:06]MH_I2C_Read... [19:56:06]Read from MH i2c: E2 0E 00 [19:56:06]MH_I2C_Read... [19:56:06]Read from MH i2c: E2 0E 00 68 10 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 FB [19:56:06]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:56:06]wFMCommunicate OK [19:56:06]SAM_PROTO_GetShiftState done [19:56:06]FM_GetShiftState done [19:56:06]opened in 1729383220 [19:56:06]opened+sec_in_day 1729469620 [19:56:06]quantity*price = 800052 [19:56:06]sum+1 = 800054 [19:56:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 8000.00 Внесено: 8000.00 СДАЧА: 0.00 НСП 1% : 70.80 НДС 12% : 849.61 Наличными: 8000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 380 20.10.2024 19:56 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Дисконтная программа ДТ номер 85 сэкономлено 106.39 сом ФМ: 0000000000963346 ФД: 69535 ФПД: 137953727157535 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T195606&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69535&fm=137953727157535&tin=02508201610067®Number=0000000000156251&sum=800000 [19:56:07]StoreToDocumentArchive [19:56:07]shift 193 fd 69535 [19:56:07]save to /storage/0193/doc_00069535 [19:56:07]save last doc name /storage/0193/doc_00069535 to /storage/kkm_last_doc_name [19:56:07]save OK [19:56:07]Clear old archive folders... [19:56:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:56:07]tlvbuf is 00F47C10 [19:56:07]SAM_PROTO_ClearQueue [19:56:07]wFMCommunicate request_size=4 [19:56:07]MH_SAM_APDU [19:56:07]CAPDU: 80 09 00 00 [19:56:07]Write to MH i2c: E2 08 00 75 10 80 09 00 00 00 00 00 00 F7 [19:56:07]Write i2c OK [19:56:07]MH_I2C_Read... [19:56:07]Read from MH i2c: E2 [19:56:07]MH_I2C_Read... [19:56:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:56:07]Read from MH i2c: E2 03 00 [19:56:07]MH_I2C_Read... [19:56:07]Read from MH i2c: E2 03 00 75 10 00 90 00 F9 [19:56:07]RAPDU: 90 00 [19:56:07]wFMCommunicate OK [19:56:07]SAM_PROTO_ClearQueue done [19:56:07]KKMCreateOFDPacket [19:56:07]OFDProtocolAddRootSTLVToBuf [19:56:07]FM_MakeSignedData [19:56:07]FM_MakeSignedData [19:56:07]SAM_PROTO_SignData [19:56:07]wFMCommunicate request_size=4 [19:56:07]MH_SAM_APDU [19:56:07]CAPDU: 80 0D 01 02 [19:56:07]Write to MH i2c: E2 08 00 76 10 80 0D 01 02 00 00 00 00 FF [19:56:07]Write i2c OK [19:56:07]MH_I2C_Read... [19:56:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:56:07]Read from MH i2c: E2 [19:56:07]MH_I2C_Read... [19:56:07]Read from MH i2c: E2 03 00 [19:56:07]MH_I2C_Read... [19:56:07]Read from MH i2c: E2 03 00 76 10 00 90 00 FA [19:56:07]RAPDU: 90 00 [19:56:07]wFMCommunicate OK [19:56:07]wFMCommunicate request_size=255 [19:56:07]MH_SAM_APDU [19:56:07]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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 56 60 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9F 0F 01 00 35 04 06 00 7D 77 DA E7 [19:56:07]Write to MH i2c: E2 02 01 77 10 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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 56 60 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9F 0F 01 00 35 04 06 00 7D 77 DA E7 00 00 C5 [19:56:07]Write i2c OK [19:56:07]MH_I2C_Read... [19:56:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:07]Read from MH i2c: E2 [19:56:07]MH_I2C_Read... [19:56:07]Read from MH i2c: E2 03 00 [19:56:07]MH_I2C_Read... [19:56:07]Read from MH i2c: E2 03 00 77 10 00 90 00 FB [19:56:07]RAPDU: 90 00 [19:56:07]wFMCommunicate OK [19:56:07]wFMCommunicate request_size=7 [19:56:07]MH_SAM_APDU [19:56:07]CAPDU: 80 0D 02 02 02 15 1F [19:56:07]Write to MH i2c: E2 0A 00 78 10 80 0D 02 02 02 00 15 1F 00 00 3A [19:56:07]Write i2c OK [19:56:07]MH_I2C_Read... [19:56:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:07]Read from MH i2c: E2 [19:56:07]MH_I2C_Read... [19:56:07]Read from MH i2c: E2 03 00 [19:56:07]MH_I2C_Read... [19:56:07]Read from MH i2c: E2 03 00 78 10 00 90 00 FC [19:56:07]RAPDU: 90 00 [19:56:07]wFMCommunicate OK [19:56:07]wFMCommunicate request_size=4 [19:56:07]MH_SAM_APDU [19:56:07]CAPDU: 80 0D 03 02 [19:56:07]Write to MH i2c: E2 08 00 79 10 80 0D 03 02 00 00 00 00 04 [19:56:07]Write i2c OK [19:56:07]MH_I2C_Read... [19:56:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:56:07]Read from MH i2c: E2 [19:56:07]MH_I2C_Read... [19:56:07]Read from MH i2c: E2 0B 00 [19:56:07]MH_I2C_Read... [19:56:07]Read from MH i2c: E2 0B 00 79 10 00 6C 50 83 AC B3 9F E9 5C 90 00 87 [19:56:07]RAPDU: 6C 50 83 AC B3 9F E9 5C 90 00 [19:56:07]wFMCommunicate OK [19:56:07]SAM_PROTO_SignData done [19:56:07]FM_MakeSignedData done [19:56:07]CreateOFDProtocolMessage [19:56:07]wFMCommunicate request_size=4 [19:56:07]MH_SAM_APDU [19:56:07]CAPDU: 80 11 00 00 [19:56:07]Write to MH i2c: E2 08 00 7A 10 80 11 00 00 00 00 00 00 04 [19:56:07]Write i2c OK [19:56:07]MH_I2C_Read... [19:56:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:07]Read from MH i2c: E2 [19:56:07]MH_I2C_Read... [19:56:07]Read from MH i2c: E2 17 00 [19:56:07]MH_I2C_Read... [19:56:07]Read from MH i2c: E2 17 00 7A 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 56 [19:56:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:56:07]wFMCommunicate OK [19:56:07]CreateOFDProtocolMessage done [19:56:07]OFDSenderStorePacket 69535 [19:56:07]StoreOFDPacket docnum=69535 [19:56:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 D9 A9 04 01 16 2E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 56 60 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9F 0F 01 00 35 04 06 00 7D 77 DA E7 15 1F 6C 50 83 AC B3 9F E9 5C [19:56:07]CheckFolder [19:56:07]dirname=/storage/ofd_packets [19:56:07]CheckFolder done [19:56:07]ProducePacketName [19:56:07]name=ofd_packets/00069535 [19:56:07]NVStorageSaveData ofd_packets/00069535 [19:56:07]File name is /storage/ofd_packets/00069535 [19:56:07]Write 298 bytes [19:56:07]NVStorageSaveData done [19:56:07]OFDSenderStorePacket done [19:56:07]KKMCreateOFDPacket done [19:56:07]NVStorageSaveData kkm_last_timestamp [19:56:07]File name is /storage/kkm_last_timestamp [19:56:07]Write 4 bytes [19:56:07]NVStorageSaveData done [19:56:07]ExternCall_PrintAddStr [19:56:07]wPrintStart [19:56:07]Write to MH i2c: 01 00 00 7B 10 8B [19:56:07]Write i2c OK [19:56:07]MH_I2C_Read... [19:56:07]Read from MH i2c: 01 [19:56:07]MH_I2C_Read... [19:56:07]Read from MH i2c: 01 07 00 [19:56:07]MH_I2C_Read... [19:56:07]Read from MH i2c: 01 07 00 7B 10 00 00 00 00 00 FF 0F A0 [19:56:07]RasterBufferAndPrint [19:56:07]line Счет N : (1)2885275 [19:56:07]line ИНН: 02508201610067 [19:56:07]line Контрольно-Кассовый Чек [19:56:07]line ПРОДАЖА [19:56:07]line ТРК (МРК, ГНК) : 61 [19:56:07]line Товар: 2710194210 [19:56:07]line ДТ-К-5 [19:56:07]line 106.390 * 75.20 [19:56:07]line = 8000.53 [19:56:07]line НДС 12% НСП 1% [19:56:07]line > о реализуемом товаре [19:56:07]line ОКРУГЛЕНИЕ: -0.53 [19:56:07]line ИТОГО: 8000.00 [19:56:07]line Внесено: 8000.00 [19:56:07]line СДАЧА: 0.00 [19:56:07]line НСП 1% : 70.80 [19:56:07]line НДС 12% : 849.61 [19:56:07]line Наличными: 8000.00 [19:56:07]line Безнал.: 0.00 [19:56:07]line Место: АЗС № 85 "Партнер Нефть" [19:56:07]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:56:07]line СНО: Общий режим [19:56:07]line Чек 380 20.10.2024 19:56 [19:56:07]line Смена: 193 ФФД: 1.0 [19:56:07]line ЗНМ: 0300000167 [19:56:07]line РНМ: 0000000000156251 [19:56:07]line Версия ККМ: v1.0 [19:56:07]line [19:56:07]line Дисконтная программа [19:56:07]line ДТ [19:56:07]line номер 85 [19:56:07]line сэкономлено 106.39 сом [19:56:07]line ФМ: 0000000000963346 [19:56:07]line ФД: 69535 [19:56:07]line ФПД: 137953727157535 [19:56:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T195606&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69535&fm=137953727157535&tin=02508201610067®Number=0000000000156251&sum=800000 [19:56:08]OFD Sender: Processing packet 69535 [packets to send 18, broken 17] [19:56:08]ProducePacketName [19:56:08]name=ofd_packets/00069535 [19:56:08]OFD Sender: To server: pG, [19:56:08]CommunicateWithHost lk.salyk.kg:30040 [19:56:08]ConnectInit lk.salyk.kg [19:56:08]written 0, free lines is 4095 [19:56:08]Connected sock=10 [19:56:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 D9 A9 04 01 16 2E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 56 60 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9F 0F 01 00 35 04 06 00 7D 77 DA E7 15 1F 6C 50 83 AC B3 9F E9 5C [19:56:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 7E B3 47 00 E7 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 9F 0F 01 00 F4 03 04 00 FC 09 15 67 B6 04 01 00 00 8F C4 F9 09 1B 49 74 EC [19:56:08]CommunicateWithHost err = 0 [19:56:08]CheckOFDResponse [19:56:08]1017 (14) - 77093643461234 [19:56:08]1041 (16) - 0000000000963346 [19:56:08]1040 (4) - 69535 [19:56:08]1012 (4) - 20.10.2024 13:47 [19:56:08]1206 (1) - 0 [19:56:08]OFD Sender: Remove packet 69535 [19:56:08]ProducePacketName [19:56:08]name=ofd_packets/00069535 [19:56:08]NVStorageDeleteData [19:56:08]Write to MH i2c: 01 00 00 AB 10 BB [19:56:08]Write i2c OK [19:56:08]MH_I2C_Read... [19:56:08]Read from MH i2c: 01 [19:56:08]MH_I2C_Read... [19:56:08]Read from MH i2c: 01 07 00 [19:56:08]MH_I2C_Read... [19:56:08]Read from MH i2c: 01 07 00 AB 10 00 00 00 00 00 B6 0C 84 [19:56:08]RasterBufferAndPrint [19:56:08]line [19:56:08]line [19:56:08]line [19:56:08]line [19:56:08]line [19:56:08]written 0, free lines is 3266 [19:56:08]MH_Cut [19:56:08]Write to MH i2c: D1 01 00 B2 10 01 94 [19:56:08]Write i2c OK [19:56:08]MH_I2C_Read... [19:56:08]Read from MH i2c: D1 [19:56:08]MH_I2C_Read... [19:56:08]Read from MH i2c: D1 01 00 [19:56:08]MH_I2C_Read... [19:56:08]Read from MH i2c: D1 01 00 B2 10 00 93 [19:56:08]Write to MH i2c: 01 00 00 B3 10 C3 [19:56:08]Write i2c OK [19:56:08]MH_I2C_Read... [19:56:09]OFD Sender: No OFD packet to send [19:56:09]*** Cut start [19:56:09]*** Partial cut [19:56:09]*** CUTSNS_PIN = 1 [19:56:09]*** CUTSNS_PIN = 0 [19:56:09]*** Brake cut motor [19:56:10]Read from MH i2c: 01 [19:56:10]MH_I2C_Read... [19:56:10]*** Stop cut motor [19:56:10]*** Cut end [19:56:10]Read from MH i2c: 01 07 00 [19:56:10]MH_I2C_Read... [19:56:10]Read from MH i2c: 01 07 00 B3 10 00 00 00 00 00 FF 0F D8 [19:56:10]process_action close_receipt done [19:56:10]requested_data is exist [19:56:10]produce_requested_data [19:56:10]requested_item fm.sn is exist - process it [19:56:10]wFMCommunicate request_size=4 [19:56:10]MH_SAM_APDU [19:56:10]CAPDU: 80 11 00 00 [19:56:10]Write to MH i2c: E2 08 00 B4 10 80 11 00 00 00 00 00 00 3E [19:56:10]Write i2c OK [19:56:10]MH_I2C_Read... [19:56:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:10]Read from MH i2c: E2 [19:56:10]MH_I2C_Read... [19:56:10]Read from MH i2c: E2 17 00 [19:56:10]MH_I2C_Read... [19:56:10]Read from MH i2c: E2 17 00 B4 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 90 [19:56:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:56:10]wFMCommunicate OK [19:56:10]requested_item fd.num is exist - process it [19:56:10]SAM_PROTO_GetFieldsCounters [19:56:10]wFMCommunicate request_size=4 [19:56:10]MH_SAM_APDU [19:56:10]CAPDU: 80 13 00 00 [19:56:10]Write to MH i2c: E2 08 00 B5 10 80 13 00 00 00 00 00 00 41 [19:56:10]Write i2c OK [19:56:10]MH_I2C_Read... [19:56:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:56:10]Read from MH i2c: E2 [19:56:10]MH_I2C_Read... [19:56:10]Read from MH i2c: E2 62 00 [19:56:10]MH_I2C_Read... [19:56:10]Read from MH i2c: E2 62 00 B5 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9F 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 7C 01 00 00 5E 04 04 00 7C 01 00 00 57 04 04 00 7D 01 00 00 19 04 04 00 00 00 00 00 90 00 43 [19:56:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 9F 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 7C 01 00 00 5E 04 04 00 7C 01 00 00 57 04 04 00 7D 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:56:10]wFMCommunicate OK [19:56:10]SAM_PROTO_GetFieldsCounters done [19:56:10]requested_item shift.num is exist - process it [19:56:10]requested_item shift.opened is exist - process it [19:56:10]req_shift_opened [19:56:10]FM_GetShiftState [19:56:10]SAM_PROTO_GetShiftState [19:56:10]wFMCommunicate request_size=4 [19:56:10]MH_SAM_APDU [19:56:10]CAPDU: 80 13 01 00 [19:56:10]Write to MH i2c: E2 08 00 B6 10 80 13 01 00 00 00 00 00 43 [19:56:10]Write i2c OK [19:56:10]MH_I2C_Read... [19:56:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:10]Read from MH i2c: E2 [19:56:10]MH_I2C_Read... [19:56:10]Read from MH i2c: E2 0E 00 [19:56:10]MH_I2C_Read... [19:56:10]Read from MH i2c: E2 0E 00 B6 10 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 49 [19:56:10]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:56:10]wFMCommunicate OK [19:56:10]SAM_PROTO_GetShiftState done [19:56:10]FM_GetShiftState done [19:56:10]req_shift_opened done [19:56:10]requested_item shift.open_date is exist - process it [19:56:10]req_shift_open_date [19:56:10]req_shift_open_date done [19:56:10]produce_requested_data done [19:56:10]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69535,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [19:56:10]process_action_free close_receipt [19:56:10]json_value_free [19:56:10]json_value_free done [19:56:10]process_json_proto returns [19:56:10]Send response to host [19:56:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69535,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [19:56:10]free response buf [19:56:10]execute_script done [19:56:10]execute_script returns [19:56:10]free content buf [19:56:10]Sock 9.Close socket [19:56:10]Sock 9.Thread stoped [19:56:14]OFD Sender: No OFD packet to send [19:56:19]OFD Sender: No OFD packet to send [19:56:24]OFD Sender: No OFD packet to send [19:56:29]OFD Sender: No OFD packet to send [19:56:34]OFD Sender: No OFD packet to send [19:56:39]OFD Sender: No OFD packet to send [19:56:44]OFD Sender: No OFD packet to send [19:56:49]OFD Sender: No OFD packet to send [19:56:54]OFD Sender: No OFD packet to send [19:56:59]OFD Sender: No OFD packet to send [19:57:04]OFD Sender: No OFD packet to send [19:57:08]int [19:57:08]Write to MH i2c: 01 00 00 B7 10 C7 [19:57:08]*** FLAG_PRN_PAP1 set [19:57:08]Write i2c OK [19:57:08]MH_I2C_Read... [19:57:08]Read from MH i2c: 01 [19:57:08]MH_I2C_Read... [19:57:08]Read from MH i2c: 01 07 00 [19:57:08]MH_I2C_Read... [19:57:08]Read from MH i2c: 01 07 00 B7 10 00 01 00 00 00 FF 0F DD [19:57:08]state=0 [19:57:08]No paper [19:57:08]int [19:57:08]Write to MH i2c: 01 00 00 B8 10 C8 [19:57:08]*** FLAG_PRN_PAP2 set [19:57:08]Write i2c OK [19:57:08]MH_I2C_Read... [19:57:08]Read from MH i2c: 01 [19:57:08]MH_I2C_Read... [19:57:08]Read from MH i2c: 01 07 00 [19:57:08]MH_I2C_Read... [19:57:08]Read from MH i2c: 01 07 00 B8 10 00 03 00 00 00 FF 0F E0 [19:57:08]state=0 [19:57:08]No paper [19:57:08]Cover opened [19:57:08]int [19:57:08]Write to MH i2c: 01 00 00 B9 10 C9 [19:57:08]*** FLAG_PRN_PAP2 reset [19:57:08]Write i2c OK [19:57:08]MH_I2C_Read... [19:57:08]Read from MH i2c: 01 [19:57:08]MH_I2C_Read... [19:57:08]Read from MH i2c: 01 07 00 [19:57:08]MH_I2C_Read... [19:57:08]Read from MH i2c: 01 07 00 B9 10 00 01 00 00 00 FF 0F DF [19:57:08]state=3 [19:57:08]No paper [19:57:08]Cover closed [19:57:08]int [19:57:08]Write to MH i2c: 01 00 00 BA 10 CA [19:57:08]*** FLAG_PRN_PAP2 set [19:57:08]Write i2c OK [19:57:08]MH_I2C_Read... [19:57:08]Read from MH i2c: 01 [19:57:08]MH_I2C_Read... [19:57:08]Read from MH i2c: 01 07 00 [19:57:08]MH_I2C_Read... [19:57:08]Read from MH i2c: 01 07 00 BA 10 00 03 00 00 00 FF 0F E2 [19:57:08]state=0 [19:57:08]No paper [19:57:08]Cover opened [19:57:08]int [19:57:08]Write to MH i2c: 01 00 00 BB 10 CB [19:57:08]*** FLAG_PRN_PAP2 reset [19:57:08]Write i2c OK [19:57:08]MH_I2C_Read... [19:57:08]Read from MH i2c: 01 [19:57:08]MH_I2C_Read... [19:57:08]Read from MH i2c: 01 07 00 [19:57:08]MH_I2C_Read... [19:57:08]Read from MH i2c: 01 07 00 BB 10 00 01 00 00 00 FF 0F E1 [19:57:08]state=3 [19:57:08]No paper [19:57:08]Cover closed [19:57:08]int [19:57:08]Write to MH i2c: 01 00 00 BC 10 CC [19:57:08]*** FLAG_PRN_PAP2 set [19:57:08]Write i2c OK [19:57:08]MH_I2C_Read... [19:57:08]Read from MH i2c: 01 [19:57:08]MH_I2C_Read... [19:57:08]Read from MH i2c: 01 07 00 [19:57:08]MH_I2C_Read... [19:57:08]Read from MH i2c: 01 07 00 BC 10 00 03 00 00 00 FF 0F E4 [19:57:08]state=0 [19:57:08]No paper [19:57:08]Cover opened [19:57:08]int [19:57:08]Write to MH i2c: 01 00 00 BD 10 CD [19:57:08]*** FLAG_PRN_PAP2 reset [19:57:08]Write i2c OK [19:57:08]MH_I2C_Read... [19:57:08]Read from MH i2c: 01 [19:57:08]MH_I2C_Read... [19:57:08]Read from MH i2c: 01 07 00 [19:57:08]MH_I2C_Read... [19:57:08]Read from MH i2c: 01 07 00 BD 10 00 01 00 00 00 FF 0F E3 [19:57:08]state=3 [19:57:08]No paper [19:57:08]Cover closed [19:57:08]int [19:57:08]Write to MH i2c: 01 00 00 BE 10 CE [19:57:08]*** FLAG_PRN_PAP2 set [19:57:08]Write i2c OK [19:57:08]MH_I2C_Read... [19:57:08]Read from MH i2c: 01 [19:57:08]MH_I2C_Read... [19:57:08]Read from MH i2c: 01 07 00 [19:57:08]MH_I2C_Read... [19:57:08]Read from MH i2c: 01 07 00 BE 10 00 03 00 00 00 FF 0F E6 [19:57:08]state=0 [19:57:08]No paper [19:57:08]Cover opened [19:57:09]OFD Sender: No OFD packet to send [19:57:09]int [19:57:09]Write to MH i2c: 01 00 00 BF 10 CF [19:57:09]*** FLAG_PRN_PAP2 reset [19:57:09]Write i2c OK [19:57:09]MH_I2C_Read... [19:57:09]Read from MH i2c: 01 [19:57:09]MH_I2C_Read... [19:57:09]Read from MH i2c: 01 07 00 [19:57:09]MH_I2C_Read... [19:57:09]Read from MH i2c: 01 07 00 BF 10 00 01 00 00 00 FF 0F E5 [19:57:09]state=3 [19:57:09]No paper [19:57:09]Cover closed [19:57:09]int [19:57:09]Write to MH i2c: 01 00 00 C0 10 D0 [19:57:09]*** FLAG_PRN_PAP2 set [19:57:09]Write i2c OK [19:57:09]MH_I2C_Read... [19:57:09]Read from MH i2c: 01 [19:57:09]MH_I2C_Read... [19:57:09]Read from MH i2c: 01 07 00 [19:57:09]MH_I2C_Read... [19:57:09]Read from MH i2c: 01 07 00 C0 10 00 03 00 00 00 FF 0F E8 [19:57:09]state=0 [19:57:09]No paper [19:57:09]Cover opened [19:57:11]int [19:57:11]Write to MH i2c: 01 00 00 C1 10 D1 [19:57:11]*** FLAG_PRN_PAP2 reset [19:57:11]Write i2c OK [19:57:11]MH_I2C_Read... [19:57:11]Read from MH i2c: 01 [19:57:11]MH_I2C_Read... [19:57:11]Read from MH i2c: 01 07 00 [19:57:11]MH_I2C_Read... [19:57:11]Read from MH i2c: 01 07 00 C1 10 00 01 00 00 00 FF 0F E7 [19:57:11]state=3 [19:57:11]No paper [19:57:11]Cover closed [19:57:12]int [19:57:12]Write to MH i2c: 01 00 00 C2 10 D2 [19:57:12]*** FLAG_PRN_PAP2 set [19:57:12]Write i2c OK [19:57:12]MH_I2C_Read... [19:57:12]Read from MH i2c: 01 [19:57:12]MH_I2C_Read... [19:57:12]Read from MH i2c: 01 07 00 [19:57:12]MH_I2C_Read... [19:57:12]Read from MH i2c: 01 07 00 C2 10 00 03 00 00 00 FF 0F EA [19:57:12]state=0 [19:57:12]No paper [19:57:12]Cover opened [19:57:12]int [19:57:12]Write to MH i2c: 01 00 00 C3 10 D3 [19:57:12]*** FLAG_PRN_PAP2 reset [19:57:12]Write i2c OK [19:57:12]MH_I2C_Read... [19:57:12]Read from MH i2c: 01 [19:57:12]MH_I2C_Read... [19:57:12]Read from MH i2c: 01 07 00 [19:57:12]MH_I2C_Read... [19:57:12]Read from MH i2c: 01 07 00 C3 10 00 01 00 00 00 FF 0F E9 [19:57:12]state=3 [19:57:12]No paper [19:57:12]Cover closed [19:57:12]int [19:57:12]Write to MH i2c: 01 00 00 C4 10 D4 [19:57:12]*** FLAG_PRN_PAP2 set [19:57:12]Write i2c OK [19:57:12]MH_I2C_Read... [19:57:12]Read from MH i2c: 01 [19:57:12]MH_I2C_Read... [19:57:12]Read from MH i2c: 01 07 00 [19:57:12]MH_I2C_Read... [19:57:12]Read from MH i2c: 01 07 00 C4 10 00 03 00 00 00 FF 0F EC [19:57:12]state=0 [19:57:12]No paper [19:57:12]Cover opened [19:57:12]int [19:57:12]Write to MH i2c: 01 00 00 C5 10 D5 [19:57:12]*** FLAG_PRN_PAP2 reset [19:57:12]Write i2c OK [19:57:12]MH_I2C_Read... [19:57:12]Read from MH i2c: 01 [19:57:12]MH_I2C_Read... [19:57:12]Read from MH i2c: 01 07 00 [19:57:12]MH_I2C_Read... [19:57:12]Read from MH i2c: 01 07 00 C5 10 00 01 00 00 00 FF 0F EB [19:57:12]state=3 [19:57:12]No paper [19:57:12]Cover closed [19:57:12]int [19:57:12]Write to MH i2c: 01 00 00 C6 10 D6 [19:57:12]*** FLAG_PRN_PAP1 reset [19:57:12]Write i2c OK [19:57:12]MH_I2C_Read... [19:57:12]Read from MH i2c: 01 [19:57:12]MH_I2C_Read... [19:57:12]Read from MH i2c: 01 07 00 [19:57:12]MH_I2C_Read... [19:57:12]Read from MH i2c: 01 07 00 C6 10 00 00 00 00 00 FF 0F EB [19:57:12]state=0 [19:57:14]OFD Sender: No OFD packet to send [19:57:19]OFD Sender: No OFD packet to send [19:57:24]OFD Sender: No OFD packet to send [19:57:29]OFD Sender: No OFD packet to send [19:57:34]OFD Sender: No OFD packet to send [19:57:39]OFD Sender: No OFD packet to send [19:57:44]OFD Sender: No OFD packet to send [19:57:49]OFD Sender: No OFD packet to send [19:57:54]OFD Sender: No OFD packet to send [19:57:59]OFD Sender: No OFD packet to send [19:58:02]accept exits with 7 [19:58:02]New connection [19:58:02]New thread 3066654052 created [19:58:02]Thread 3066797412 joined [19:58:02]Waiting for new connection... [19:58:02] Sock 7.Parse request [19:58:02]Sock 7.Check first char [19:58:02]Sock 7.First char is OK [19:58:02]request: POST /json_proto HTTP/1.0 [19:58:02]Method: POST [19:58:02]URL: /json_proto [19:58:02]Method is POST - this is cgi request [19:58:02]url: /json_proto [19:58:02]query_string will be loaded in cgi processing [19:58:02]execute_cgi json_proto POST (null) [19:58:02]execute_cgi path=json_proto method=POST [19:58:02]POST find Content-Length [19:58:02]Host: 172.17.50.3:8080 [19:58:02]Content-Length: 689 [19:58:02]Content-Type: application/json [19:58:02] [19:58:02]POST finish read [19:58:02]Found Content-Length = 689 [19:58:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 18.140, "sum" : 1400.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:02]execute_script... [19:58: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)2885276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 18.140, "sum" : 1400.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:02]POST & json_proto [19:58:02]process_json_proto [19:58:02]json parsed OK: [19:58:02]protocol is kg_v1.0 [19:58:02]action value=close_receipt [19:58:02]process_action close_receipt [19:58:02]cmd_close_receipt [19:58:02]MH_GetDate [19:58:02]Write to MH i2c: F0 00 00 C7 10 C6 [19:58:02]Write i2c OK [19:58:02]MH_I2C_Read... [19:58:02]Read from MH i2c: F0 [19:58:02]MH_I2C_Read... [19:58:02]Read from MH i2c: F0 09 00 [19:58:02]MH_I2C_Read... [19:58:02]Read from MH i2c: F0 09 00 C7 10 00 CB 60 15 67 6B 98 1E 66 FD [19:58:02]GetLastDocTimeStamp 1729454166 [19:58:02]current date 1729454283 [19:58:02]FM_GetShiftState [19:58:02]SAM_PROTO_GetShiftState [19:58:02]wFMCommunicate request_size=4 [19:58:02]MH_SAM_APDU [19:58:02]CAPDU: 80 13 01 00 [19:58:02]Write to MH i2c: E2 08 00 C8 10 80 13 01 00 00 00 00 00 55 [19:58:02]Write i2c OK [19:58:02]MH_I2C_Read... [19:58:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:02]Read from MH i2c: E2 [19:58:02]MH_I2C_Read... [19:58:02]Read from MH i2c: E2 0E 00 [19:58:02]MH_I2C_Read... [19:58:02]Read from MH i2c: E2 0E 00 C8 10 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 5B [19:58:02]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:58:02]wFMCommunicate OK [19:58:02]SAM_PROTO_GetShiftState done [19:58:02]FM_GetShiftState done [19:58:02]opened in 1729383220 [19:58:02]opened+sec_in_day 1729469620 [19:58:02]quantity*price = 140040 [19:58:02]sum+1 = 140042 [19:58:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.72 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 381 20.10.2024 19:58 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69536 ФПД: 96795095899357 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T195803&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69536&fm=96795095899357&tin=02508201610067®Number=0000000000156251&sum=140000 [19:58:03]StoreToDocumentArchive [19:58:03]shift 193 fd 69536 [19:58:03]save to /storage/0193/doc_00069536 [19:58:03]save last doc name /storage/0193/doc_00069536 to /storage/kkm_last_doc_name [19:58:03]save OK [19:58:03]Clear old archive folders... [19:58:03]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:58:03]tlvbuf is 00F5BF80 [19:58:03]SAM_PROTO_ClearQueue [19:58:03]wFMCommunicate request_size=4 [19:58:03]MH_SAM_APDU [19:58:03]CAPDU: 80 09 00 00 [19:58:03]Write to MH i2c: E2 08 00 D5 10 80 09 00 00 00 00 00 00 57 [19:58:03]Write i2c OK [19:58:03]MH_I2C_Read... [19:58:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:58:03]Read from MH i2c: E2 [19:58:03]MH_I2C_Read... [19:58:03]Read from MH i2c: E2 03 00 [19:58:03]MH_I2C_Read... [19:58:03]Read from MH i2c: E2 03 00 D5 10 00 90 00 59 [19:58:03]RAPDU: 90 00 [19:58:03]wFMCommunicate OK [19:58:03]SAM_PROTO_ClearQueue done [19:58:03]KKMCreateOFDPacket [19:58:03]OFDProtocolAddRootSTLVToBuf [19:58:03]FM_MakeSignedData [19:58:03]FM_MakeSignedData [19:58:03]SAM_PROTO_SignData [19:58:03]wFMCommunicate request_size=4 [19:58:03]MH_SAM_APDU [19:58:03]CAPDU: 80 0D 01 02 [19:58:03]Write to MH i2c: E2 08 00 D6 10 80 0D 01 02 00 00 00 00 5F [19:58:03]Write i2c OK [19:58:03]MH_I2C_Read... [19:58:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:58:03]Read from MH i2c: E2 [19:58:03]MH_I2C_Read... [19:58:03]Read from MH i2c: E2 03 00 [19:58:03]MH_I2C_Read... [19:58:03]Read from MH i2c: E2 03 00 D6 10 00 90 00 5A [19:58:03]RAPDU: 90 00 [19:58:03]wFMCommunicate OK [19:58:03]wFMCommunicate request_size=255 [19:58:03]MH_SAM_APDU [19:58:03]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 DC 46 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 09 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 01 00 00 F4 03 04 00 CB 60 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A0 0F 01 [19:58:03]Write to MH i2c: E2 02 01 D7 10 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 DC 46 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 09 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 01 00 00 F4 03 04 00 CB 60 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A0 0F 01 00 00 30 [19:58:03]Write i2c OK [19:58:03]MH_I2C_Read... [19:58:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:04]Read from MH i2c: E2 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: E2 03 00 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: E2 03 00 D7 10 00 90 00 5B [19:58:04]RAPDU: 90 00 [19:58:04]wFMCommunicate OK [19:58:04]wFMCommunicate request_size=16 [19:58:04]MH_SAM_APDU [19:58:04]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 58 08 DD 4E 9C DD [19:58:04]Write to MH i2c: E2 13 00 D8 10 80 0D 02 02 0B 00 00 35 04 06 00 58 08 DD 4E 9C DD 00 00 BB [19:58:04]Write i2c OK [19:58:04]MH_I2C_Read... [19:58:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:04]Read from MH i2c: E2 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: E2 03 00 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: E2 03 00 D8 10 00 90 00 5C [19:58:04]RAPDU: 90 00 [19:58:04]wFMCommunicate OK [19:58:04]wFMCommunicate request_size=4 [19:58:04]MH_SAM_APDU [19:58:04]CAPDU: 80 0D 03 02 [19:58:04]Write to MH i2c: E2 08 00 D9 10 80 0D 03 02 00 00 00 00 64 [19:58:04]Write i2c OK [19:58:04]MH_I2C_Read... [19:58:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:58:04]Read from MH i2c: E2 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: E2 0B 00 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: E2 0B 00 D9 10 00 7A 87 B7 CB 1F 2D F7 95 90 00 C0 [19:58:04]RAPDU: 7A 87 B7 CB 1F 2D F7 95 90 00 [19:58:04]wFMCommunicate OK [19:58:04]SAM_PROTO_SignData done [19:58:04]FM_MakeSignedData done [19:58:04]CreateOFDProtocolMessage [19:58:04]wFMCommunicate request_size=4 [19:58:04]MH_SAM_APDU [19:58:04]CAPDU: 80 11 00 00 [19:58:04]Write to MH i2c: E2 08 00 DA 10 80 11 00 00 00 00 00 00 64 [19:58:04]Write i2c OK [19:58:04]MH_I2C_Read... [19:58:04]OFD Sender: No OFD packet to send [19:58:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:04]Read from MH i2c: E2 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: E2 17 00 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: E2 17 00 DA 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B6 [19:58:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:58:04]wFMCommunicate OK [19:58:04]CreateOFDProtocolMessage done [19:58:04]OFDSenderStorePacket 69536 [19:58:04]StoreOFDPacket docnum=69536 [19:58:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 76 5B 0D 01 C8 F8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 DC 46 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 09 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 01 00 00 F4 03 04 00 CB 60 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A0 0F 01 00 35 04 06 00 58 08 DD 4E 9C DD 7A 87 B7 CB 1F 2D F7 95 [19:58:04]CheckFolder [19:58:04]dirname=/storage/ofd_packets [19:58:04]CheckFolder done [19:58:04]ProducePacketName [19:58:04]name=ofd_packets/00069536 [19:58:04]NVStorageSaveData ofd_packets/00069536 [19:58:04]File name is /storage/ofd_packets/00069536 [19:58:04]Write 307 bytes [19:58:04]NVStorageSaveData done [19:58:04]OFDSenderStorePacket done [19:58:04]KKMCreateOFDPacket done [19:58:04]NVStorageSaveData kkm_last_timestamp [19:58:04]File name is /storage/kkm_last_timestamp [19:58:04]Write 4 bytes [19:58:04]NVStorageSaveData done [19:58:04]ExternCall_PrintAddStr [19:58:04]wPrintStart [19:58:04]Write to MH i2c: 01 00 00 DB 10 EB [19:58:04]Write i2c OK [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: 01 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: 01 07 00 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: 01 07 00 DB 10 00 00 00 00 00 FF 0F 00 [19:58:04]RasterBufferAndPrint [19:58:04]line Счет N : (1)2885276 [19:58:04]line ИНН: 02508201610067 [19:58:04]line Контрольно-Кассовый Чек [19:58:04]line ПРОДАЖА [19:58:04]line ТРК (МРК, ГНК) : 31 [19:58:04]line Товар: 2710194240 [19:58:04]line D-ENERGY Дт-К-2 [19:58:04]line 18.140 * 77.20 [19:58:04]line = 1400.41 [19:58:04]line НДС 12% НСП 1% [19:58:04]line > о реализуемом товаре [19:58:04]line ОКРУГЛЕНИЕ: -0.41 [19:58:04]line ИТОГО: 1400.00 [19:58:04]line Внесено: 1400.00 [19:58:04]line СДАЧА: 0.00 [19:58:04]line НСП 1% : 12.39 [19:58:04]line НДС 12% : 148.72 [19:58:04]line Наличными: 1400.00 [19:58:04]line Безнал.: 0.00 [19:58:04]line Место: АЗС № 85 "Партнер Нефть" [19:58:04]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:58:04]line СНО: Общий режим [19:58:04]line Чек 381 20.10.2024 19:58 [19:58:04]line Смена: 193 ФФД: 1.0 [19:58:04]line ЗНМ: 0300000167 [19:58:04]line РНМ: 0000000000156251 [19:58:04]line Версия ККМ: v1.0 [19:58:04]line ФМ: 0000000000963346 [19:58:04]line ФД: 69536 [19:58:04]line ФПД: 96795095899357 [19:58:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T195803&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69536&fm=96795095899357&tin=02508201610067®Number=0000000000156251&sum=140000 [19:58:04]OFD Sender: Processing packet 69536 [packets to send 18, broken 17] [19:58:04]ProducePacketName [19:58:04]name=ofd_packets/00069536 [19:58:04]OFD Sender: To server: pG, [19:58:04]CommunicateWithHost lk.salyk.kg:30040 [19:58:04]ConnectInit lk.salyk.kg [19:58:04]written 0, free lines is 4095 [19:58:04]Connected sock=10 [19:58:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 76 5B 0D 01 C8 F8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 DC 46 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 09 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 01 00 00 F4 03 04 00 CB 60 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A0 0F 01 00 35 04 06 00 58 08 DD 4E 9C DD 7A 87 B7 CB 1F 2D F7 95 [19:58:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 B4 46 47 00 E0 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A0 0F 01 00 F4 03 04 00 71 0A 15 67 B6 04 01 00 00 B0 C6 14 7F 2C D8 94 8B [19:58:04]CommunicateWithHost err = 0 [19:58:04]CheckOFDResponse [19:58:04]1017 (14) - 77093643461234 [19:58:04]1041 (16) - 0000000000963346 [19:58:04]1040 (4) - 69536 [19:58:04]1012 (4) - 20.10.2024 13:49 [19:58:04]1206 (1) - 0 [19:58:04]OFD Sender: Remove packet 69536 [19:58:04]ProducePacketName [19:58:04]name=ofd_packets/00069536 [19:58:04]NVStorageDeleteData [19:58:04]Write to MH i2c: 01 00 00 06 11 17 [19:58:04]Write i2c OK [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: 01 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: 01 07 00 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: 01 07 00 06 11 00 00 00 00 00 EF 0C 19 [19:58:04]RasterBufferAndPrint [19:58:04]line [19:58:04]line [19:58:04]line [19:58:04]line [19:58:04]line [19:58:04]written 0, free lines is 3317 [19:58:04]MH_Cut [19:58:04]Write to MH i2c: D1 01 00 0D 11 01 F0 [19:58:04]Write i2c OK [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: D1 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: D1 01 00 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: D1 01 00 0D 11 00 EF [19:58:04]Write to MH i2c: 01 00 00 0E 11 1F [19:58:04]Write i2c OK [19:58:04]MH_I2C_Read... [19:58:05]OFD Sender: No OFD packet to send [19:58:05]*** Cut start [19:58:05]*** Partial cut [19:58:05]*** CUTSNS_PIN = 1 [19:58:05]*** CUTSNS_PIN = 0 [19:58:05]*** Brake cut motor [19:58:06]Read from MH i2c: 01 [19:58:06]MH_I2C_Read... [19:58:06]*** Stop cut motor [19:58:06]*** Cut end [19:58:06]Read from MH i2c: 01 07 00 [19:58:06]MH_I2C_Read... [19:58:06]Read from MH i2c: 01 07 00 0E 11 00 00 00 00 00 FF 0F 34 [19:58:06]process_action close_receipt done [19:58:06]requested_data is exist [19:58:06]produce_requested_data [19:58:06]requested_item fm.sn is exist - process it [19:58:06]wFMCommunicate request_size=4 [19:58:06]MH_SAM_APDU [19:58:06]CAPDU: 80 11 00 00 [19:58:06]Write to MH i2c: E2 08 00 0F 11 80 11 00 00 00 00 00 00 9A [19:58:06]Write i2c OK [19:58:06]MH_I2C_Read... [19:58:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:06]Read from MH i2c: E2 [19:58:06]MH_I2C_Read... [19:58:06]Read from MH i2c: E2 17 00 [19:58:06]MH_I2C_Read... [19:58:06]Read from MH i2c: E2 17 00 0F 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EC [19:58:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:58:06]wFMCommunicate OK [19:58:06]requested_item fd.num is exist - process it [19:58:06]SAM_PROTO_GetFieldsCounters [19:58:06]wFMCommunicate request_size=4 [19:58:06]MH_SAM_APDU [19:58:06]CAPDU: 80 13 00 00 [19:58:06]Write to MH i2c: E2 08 00 10 11 80 13 00 00 00 00 00 00 9D [19:58:06]Write i2c OK [19:58:06]MH_I2C_Read... [19:58:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:58:06]Read from MH i2c: E2 [19:58:06]MH_I2C_Read... [19:58:06]Read from MH i2c: E2 62 00 [19:58:06]MH_I2C_Read... [19:58:06]Read from MH i2c: E2 62 00 10 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A0 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 7D 01 00 00 5E 04 04 00 7D 01 00 00 57 04 04 00 7E 01 00 00 19 04 04 00 00 00 00 00 90 00 A3 [19:58:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A0 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 7D 01 00 00 5E 04 04 00 7D 01 00 00 57 04 04 00 7E 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:58:06]wFMCommunicate OK [19:58:06]SAM_PROTO_GetFieldsCounters done [19:58:06]requested_item shift.num is exist - process it [19:58:06]requested_item shift.opened is exist - process it [19:58:06]req_shift_opened [19:58:06]FM_GetShiftState [19:58:06]SAM_PROTO_GetShiftState [19:58:06]wFMCommunicate request_size=4 [19:58:06]MH_SAM_APDU [19:58:06]CAPDU: 80 13 01 00 [19:58:06]Write to MH i2c: E2 08 00 11 11 80 13 01 00 00 00 00 00 9F [19:58:06]Write i2c OK [19:58:06]MH_I2C_Read... [19:58:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:06]Read from MH i2c: E2 [19:58:06]MH_I2C_Read... [19:58:06]Read from MH i2c: E2 0E 00 [19:58:06]MH_I2C_Read... [19:58:06]Read from MH i2c: E2 0E 00 11 11 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 A5 [19:58:06]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:58:06]wFMCommunicate OK [19:58:06]SAM_PROTO_GetShiftState done [19:58:06]FM_GetShiftState done [19:58:06]req_shift_opened done [19:58:06]requested_item shift.open_date is exist - process it [19:58:06]req_shift_open_date [19:58:06]req_shift_open_date done [19:58:06]produce_requested_data done [19:58:06]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69536,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [19:58:06]process_action_free close_receipt [19:58:06]json_value_free [19:58:06]json_value_free done [19:58:06]process_json_proto returns [19:58:06]Send response to host [19:58:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69536,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [19:58:06]free response buf [19:58:06]execute_script done [19:58:06]execute_script returns [19:58:06]free content buf [19:58:06]Sock 7.Close socket [19:58:06]Sock 7.Thread stoped [19:58:10]OFD Sender: No OFD packet to send [19:58:15]OFD Sender: No OFD packet to send [19:58:20]OFD Sender: No OFD packet to send [19:58:25]OFD Sender: No OFD packet to send [19:58:30]OFD Sender: No OFD packet to send [19:58:31]accept exits with 9 [19:58:31]New connection [19:58:31]New thread 3066797412 created [19:58:31]Thread 3066654052 joined [19:58:31]Waiting for new connection... [19:58:31] Sock 9.Parse request [19:58:31]Sock 9.Check first char [19:58:31]Sock 9.First char is OK [19:58:31]request: POST /json_proto HTTP/1.0 [19:58:31]Method: POST [19:58:31]URL: /json_proto [19:58:31]Method is POST - this is cgi request [19:58:31]url: /json_proto [19:58:31]query_string will be loaded in cgi processing [19:58:31]execute_cgi json_proto POST (null) [19:58:31]execute_cgi path=json_proto method=POST [19:58:31]POST find Content-Length [19:58:31]Host: 172.17.50.3:8080 [19:58:31]Content-Length: 678 [19:58:31]Content-Type: application/json [19:58:31] [19:58:31]POST finish read [19:58:31]Found Content-Length = 678 [19:58:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:31]execute_script... [19:58: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)2885277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:31]POST & json_proto [19:58:31]process_json_proto [19:58:31]json parsed OK: [19:58:31]protocol is kg_v1.0 [19:58:31]action value=close_receipt [19:58:31]process_action close_receipt [19:58:31]cmd_close_receipt [19:58:31]MH_GetDate [19:58:31]Write to MH i2c: F0 00 00 12 11 12 [19:58:31]Write i2c OK [19:58:31]MH_I2C_Read... [19:58:31]Read from MH i2c: F0 [19:58:31]MH_I2C_Read... [19:58:31]Read from MH i2c: F0 09 00 [19:58:31]MH_I2C_Read... [19:58:31]Read from MH i2c: F0 09 00 12 11 00 E7 60 15 67 6B 98 1E 66 65 [19:58:31]GetLastDocTimeStamp 1729454283 [19:58:31]current date 1729454311 [19:58:31]FM_GetShiftState [19:58:31]SAM_PROTO_GetShiftState [19:58:31]wFMCommunicate request_size=4 [19:58:31]MH_SAM_APDU [19:58:31]CAPDU: 80 13 01 00 [19:58:31]Write to MH i2c: E2 08 00 13 11 80 13 01 00 00 00 00 00 A1 [19:58:31]Write i2c OK [19:58:31]MH_I2C_Read... [19:58:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:31]Read from MH i2c: E2 [19:58:31]MH_I2C_Read... [19:58:31]Read from MH i2c: E2 0E 00 [19:58:31]MH_I2C_Read... [19:58:31]Read from MH i2c: E2 0E 00 13 11 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 A7 [19:58:31]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:58:31]wFMCommunicate OK [19:58:31]SAM_PROTO_GetShiftState done [19:58:31]FM_GetShiftState done [19:58:31]opened in 1729383220 [19:58:31]opened+sec_in_day 1729469620 [19:58:31]quantity*price = 30038 [19:58:31]sum+1 = 30039 [19:58:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 382 20.10.2024 19:58 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69537 ФПД: 64982130462849 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T195831&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69537&fm=64982130462849&tin=02508201610067®Number=0000000000156251&sum=30000 [19:58:32]StoreToDocumentArchive [19:58:32]shift 193 fd 69537 [19:58:32]save to /storage/0193/doc_00069537 [19:58:32]save last doc name /storage/0193/doc_00069537 to /storage/kkm_last_doc_name [19:58:32]save OK [19:58:32]Clear old archive folders... [19:58:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:58:32]tlvbuf is 00F243D0 [19:58:32]SAM_PROTO_ClearQueue [19:58:32]wFMCommunicate request_size=4 [19:58:32]MH_SAM_APDU [19:58:32]CAPDU: 80 09 00 00 [19:58:32]Write to MH i2c: E2 08 00 20 11 80 09 00 00 00 00 00 00 A3 [19:58:32]Write i2c OK [19:58:32]MH_I2C_Read... [19:58:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:58:32]Read from MH i2c: E2 [19:58:32]MH_I2C_Read... [19:58:32]Read from MH i2c: E2 03 00 [19:58:32]MH_I2C_Read... [19:58:32]Read from MH i2c: E2 03 00 20 11 00 90 00 A5 [19:58:32]RAPDU: 90 00 [19:58:32]wFMCommunicate OK [19:58:32]SAM_PROTO_ClearQueue done [19:58:32]KKMCreateOFDPacket [19:58:32]OFDProtocolAddRootSTLVToBuf [19:58:32]FM_MakeSignedData [19:58:32]FM_MakeSignedData [19:58:32]SAM_PROTO_SignData [19:58:32]wFMCommunicate request_size=4 [19:58:32]MH_SAM_APDU [19:58:32]CAPDU: 80 0D 01 02 [19:58:32]Write to MH i2c: E2 08 00 21 11 80 0D 01 02 00 00 00 00 AB [19:58:32]Write i2c OK [19:58:32]MH_I2C_Read... [19:58:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:58:32]Read from MH i2c: E2 [19:58:32]MH_I2C_Read... [19:58:32]Read from MH i2c: E2 03 00 [19:58:32]MH_I2C_Read... [19:58:32]Read from MH i2c: E2 03 00 21 11 00 90 00 A6 [19:58:32]RAPDU: 90 00 [19:58:32]wFMCommunicate OK [19:58:32]wFMCommunicate request_size=255 [19:58:32]MH_SAM_APDU [19:58:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 01 00 00 F4 03 04 00 E7 60 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A1 0F 01 00 35 04 06 00 3B [19:58:32]Write to MH i2c: E2 02 01 22 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 01 00 00 F4 03 04 00 E7 60 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A1 0F 01 00 35 04 06 00 3B 00 00 17 [19:58:32]Write i2c OK [19:58:32]MH_I2C_Read... [19:58:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:32]Read from MH i2c: E2 [19:58:32]MH_I2C_Read... [19:58:32]Read from MH i2c: E2 03 00 [19:58:32]MH_I2C_Read... [19:58:32]Read from MH i2c: E2 03 00 22 11 00 90 00 A7 [19:58:32]RAPDU: 90 00 [19:58:32]wFMCommunicate OK [19:58:32]wFMCommunicate request_size=10 [19:58:32]MH_SAM_APDU [19:58:32]CAPDU: 80 0D 02 02 05 19 D4 CD 90 81 [19:58:32]Write to MH i2c: E2 0D 00 23 11 80 0D 02 02 05 00 19 D4 CD 90 81 00 00 83 [19:58:32]Write i2c OK [19:58:32]MH_I2C_Read... [19:58:32]Read from MH i2c: E2 [19:58:32]MH_I2C_Read... [19:58:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:32]Read from MH i2c: E2 03 00 [19:58:32]MH_I2C_Read... [19:58:32]Read from MH i2c: E2 03 00 23 11 00 90 00 A8 [19:58:32]RAPDU: 90 00 [19:58:32]wFMCommunicate OK [19:58:32]wFMCommunicate request_size=4 [19:58:32]MH_SAM_APDU [19:58:32]CAPDU: 80 0D 03 02 [19:58:32]Write to MH i2c: E2 08 00 24 11 80 0D 03 02 00 00 00 00 B0 [19:58:32]Write i2c OK [19:58:32]MH_I2C_Read... [19:58:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:58:32]Read from MH i2c: E2 [19:58:32]MH_I2C_Read... [19:58:32]Read from MH i2c: E2 0B 00 [19:58:32]MH_I2C_Read... [19:58:32]Read from MH i2c: E2 0B 00 24 11 00 2F D9 27 8E 4D 06 A5 2D 90 00 93 [19:58:32]RAPDU: 2F D9 27 8E 4D 06 A5 2D 90 00 [19:58:32]wFMCommunicate OK [19:58:32]SAM_PROTO_SignData done [19:58:32]FM_MakeSignedData done [19:58:32]CreateOFDProtocolMessage [19:58:32]wFMCommunicate request_size=4 [19:58:32]MH_SAM_APDU [19:58:32]CAPDU: 80 11 00 00 [19:58:32]Write to MH i2c: E2 08 00 25 11 80 11 00 00 00 00 00 00 B0 [19:58:32]Write i2c OK [19:58:32]MH_I2C_Read... [19:58:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:32]Read from MH i2c: E2 [19:58:32]MH_I2C_Read... [19:58:32]Read from MH i2c: E2 17 00 [19:58:32]MH_I2C_Read... [19:58:32]Read from MH i2c: E2 17 00 25 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 02 [19:58:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:58:32]wFMCommunicate OK [19:58:32]CreateOFDProtocolMessage done [19:58:32]OFDSenderStorePacket 69537 [19:58:32]StoreOFDPacket docnum=69537 [19:58:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 4C D8 07 01 75 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 01 00 00 F4 03 04 00 E7 60 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A1 0F 01 00 35 04 06 00 3B 19 D4 CD 90 81 2F D9 27 8E 4D 06 A5 2D [19:58:32]CheckFolder [19:58:32]dirname=/storage/ofd_packets [19:58:32]CheckFolder done [19:58:32]ProducePacketName [19:58:32]name=ofd_packets/00069537 [19:58:32]NVStorageSaveData ofd_packets/00069537 [19:58:32]File name is /storage/ofd_packets/00069537 [19:58:32]Write 301 bytes [19:58:32]NVStorageSaveData done [19:58:32]OFDSenderStorePacket done [19:58:32]KKMCreateOFDPacket done [19:58:32]NVStorageSaveData kkm_last_timestamp [19:58:32]File name is /storage/kkm_last_timestamp [19:58:32]Write 4 bytes [19:58:32]NVStorageSaveData done [19:58:32]ExternCall_PrintAddStr [19:58:32]wPrintStart [19:58:32]Write to MH i2c: 01 00 00 26 11 37 [19:58:32]Write i2c OK [19:58:32]MH_I2C_Read... [19:58:32]Read from MH i2c: 01 [19:58:32]MH_I2C_Read... [19:58:32]Read from MH i2c: 01 07 00 [19:58:32]MH_I2C_Read... [19:58:32]Read from MH i2c: 01 07 00 26 11 00 00 00 00 00 FF 0F 4C [19:58:32]RasterBufferAndPrint [19:58:32]line Счет N : (1)2885277 [19:58:32]line ИНН: 02508201610067 [19:58:32]line Контрольно-Кассовый Чек [19:58:32]line ПРОДАЖА [19:58:32]line ТРК (МРК, ГНК) : 42 [19:58:32]line Товар: 2710124130 [19:58:32]line Аи-92-К-5 [19:58:32]line 4.490 * 66.90 [19:58:32]line = 300.38 [19:58:32]line НДС 12% НСП 1% [19:58:32]line > о реализуемом товаре [19:58:32]line ОКРУГЛЕНИЕ: -0.38 [19:58:32]line ИТОГО: 300.00 [19:58:32]line Внесено: 300.00 [19:58:32]line СДАЧА: 0.00 [19:58:32]line НСП 1% : 2.66 [19:58:32]line НДС 12% : 31.90 [19:58:32]line Наличными: 300.00 [19:58:32]line Безнал.: 0.00 [19:58:32]line Место: АЗС № 85 "Партнер Нефть" [19:58:32]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:58:32]line СНО: Общий режим [19:58:32]line Чек 382 20.10.2024 19:58 [19:58:32]line Смена: 193 ФФД: 1.0 [19:58:32]line ЗНМ: 0300000167 [19:58:32]line РНМ: 0000000000156251 [19:58:32]line Версия ККМ: v1.0 [19:58:32]line ФМ: 0000000000963346 [19:58:32]line ФД: 69537 [19:58:32]line ФПД: 64982130462849 [19:58:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T195831&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69537&fm=64982130462849&tin=02508201610067®Number=0000000000156251&sum=30000 [19:58:33]OFD Sender: Processing packet 69537 [packets to send 18, broken 17] [19:58:33]ProducePacketName [19:58:33]name=ofd_packets/00069537 [19:58:33]OFD Sender: To server: pG, [19:58:33]CommunicateWithHost lk.salyk.kg:30040 [19:58:33]ConnectInit lk.salyk.kg [19:58:33]written 0, free lines is 4095 [19:58:33]Connected sock=10 [19:58:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 4C D8 07 01 75 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 01 00 00 F4 03 04 00 E7 60 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A1 0F 01 00 35 04 06 00 3B 19 D4 CD 90 81 2F D9 27 8E 4D 06 A5 2D [19:58:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 70 A3 47 00 F0 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A1 0F 01 00 F4 03 04 00 8D 0A 15 67 B6 04 01 00 00 35 22 62 E0 BE 02 BB 79 [19:58:33]CommunicateWithHost err = 0 [19:58:33]CheckOFDResponse [19:58:33]1017 (14) - 77093643461234 [19:58:33]1041 (16) - 0000000000963346 [19:58:33]1040 (4) - 69537 [19:58:33]1012 (4) - 20.10.2024 13:50 [19:58:33]1206 (1) - 0 [19:58:33]OFD Sender: Remove packet 69537 [19:58:33]ProducePacketName [19:58:33]name=ofd_packets/00069537 [19:58:33]NVStorageDeleteData [19:58:33]Write to MH i2c: 01 00 00 51 11 62 [19:58:33]Write i2c OK [19:58:33]MH_I2C_Read... [19:58:33]Read from MH i2c: 01 [19:58:33]MH_I2C_Read... [19:58:33]Read from MH i2c: 01 07 00 [19:58:33]MH_I2C_Read... [19:58:33]Read from MH i2c: 01 07 00 51 11 00 00 00 00 00 F6 0C 6B [19:58:33]RasterBufferAndPrint [19:58:33]line [19:58:33]line [19:58:33]line [19:58:33]line [19:58:33]line [19:58:33]written 0, free lines is 3324 [19:58:33]MH_Cut [19:58:33]Write to MH i2c: D1 01 00 58 11 01 3B [19:58:33]Write i2c OK [19:58:33]MH_I2C_Read... [19:58:33]Read from MH i2c: D1 [19:58:33]MH_I2C_Read... [19:58:33]Read from MH i2c: D1 01 00 [19:58:33]MH_I2C_Read... [19:58:33]Read from MH i2c: D1 01 00 58 11 00 3A [19:58:33]Write to MH i2c: 01 00 00 59 11 6A [19:58:33]Write i2c OK [19:58:33]MH_I2C_Read... [19:58:33]OFD Sender: No OFD packet to send [19:58:34]*** Cut start [19:58:34]*** Partial cut [19:58:34]*** CUTSNS_PIN = 1 [19:58:34]*** CUTSNS_PIN = 0 [19:58:34]*** Brake cut motor [19:58:34]Read from MH i2c: 01 [19:58:34]MH_I2C_Read... [19:58:34]*** Stop cut motor [19:58:34]*** Cut end [19:58:34]Read from MH i2c: 01 07 00 [19:58:34]MH_I2C_Read... [19:58:34]Read from MH i2c: 01 07 00 59 11 00 00 00 00 00 FF 0F 7F [19:58:34]process_action close_receipt done [19:58:34]requested_data is exist [19:58:34]produce_requested_data [19:58:34]requested_item fm.sn is exist - process it [19:58:34]wFMCommunicate request_size=4 [19:58:34]MH_SAM_APDU [19:58:34]CAPDU: 80 11 00 00 [19:58:34]Write to MH i2c: E2 08 00 5A 11 80 11 00 00 00 00 00 00 E5 [19:58:34]Write i2c OK [19:58:34]MH_I2C_Read... [19:58:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:34]Read from MH i2c: E2 [19:58:34]MH_I2C_Read... [19:58:34]Read from MH i2c: E2 17 00 [19:58:34]MH_I2C_Read... [19:58:34]Read from MH i2c: E2 17 00 5A 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 37 [19:58:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:58:34]wFMCommunicate OK [19:58:34]requested_item fd.num is exist - process it [19:58:34]SAM_PROTO_GetFieldsCounters [19:58:34]wFMCommunicate request_size=4 [19:58:34]MH_SAM_APDU [19:58:34]CAPDU: 80 13 00 00 [19:58:34]Write to MH i2c: E2 08 00 5B 11 80 13 00 00 00 00 00 00 E8 [19:58:34]Write i2c OK [19:58:34]MH_I2C_Read... [19:58:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:58:35]Read from MH i2c: E2 [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: E2 62 00 [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: E2 62 00 5B 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A1 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 7E 01 00 00 5E 04 04 00 7E 01 00 00 57 04 04 00 7F 01 00 00 19 04 04 00 00 00 00 00 90 00 F2 [19:58:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A1 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 7E 01 00 00 5E 04 04 00 7E 01 00 00 57 04 04 00 7F 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:58:35]wFMCommunicate OK [19:58:35]SAM_PROTO_GetFieldsCounters done [19:58:35]requested_item shift.num is exist - process it [19:58:35]requested_item shift.opened is exist - process it [19:58:35]req_shift_opened [19:58:35]FM_GetShiftState [19:58:35]SAM_PROTO_GetShiftState [19:58:35]wFMCommunicate request_size=4 [19:58:35]MH_SAM_APDU [19:58:35]CAPDU: 80 13 01 00 [19:58:35]Write to MH i2c: E2 08 00 5C 11 80 13 01 00 00 00 00 00 EA [19:58:35]Write i2c OK [19:58:35]MH_I2C_Read... [19:58:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:35]Read from MH i2c: E2 [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: E2 0E 00 [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: E2 0E 00 5C 11 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 F0 [19:58:35]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:58:35]wFMCommunicate OK [19:58:35]SAM_PROTO_GetShiftState done [19:58:35]FM_GetShiftState done [19:58:35]req_shift_opened done [19:58:35]requested_item shift.open_date is exist - process it [19:58:35]req_shift_open_date [19:58:35]req_shift_open_date done [19:58:35]produce_requested_data done [19:58:35]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69537,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [19:58:35]process_action_free close_receipt [19:58:35]json_value_free [19:58:35]json_value_free done [19:58:35]process_json_proto returns [19:58:35]Send response to host [19:58:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69537,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [19:58:35]free response buf [19:58:35]execute_script done [19:58:35]execute_script returns [19:58:35]free content buf [19:58:35]Sock 9.Close socket [19:58:35]Sock 9.Thread stoped [19:58:38]OFD Sender: No OFD packet to send [19:58:43]OFD Sender: No OFD packet to send [19:58:48]OFD Sender: No OFD packet to send [19:58:53]OFD Sender: No OFD packet to send [19:58:58]OFD Sender: No OFD packet to send [19:59:03]OFD Sender: No OFD packet to send [19:59:07]accept exits with 7 [19:59:07]New connection [19:59:07]New thread 3066654052 created [19:59:07]Thread 3066797412 joined [19:59:07]Waiting for new connection... [19:59:07] Sock 7.Parse request [19:59:07]Sock 7.Check first char [19:59:07]Sock 7.First char is OK [19:59:07]request: POST /json_proto HTTP/1.0 [19:59:07]Method: POST [19:59:07]URL: /json_proto [19:59:07]Method is POST - this is cgi request [19:59:07]url: /json_proto [19:59:07]query_string will be loaded in cgi processing [19:59:07]execute_cgi json_proto POST (null) [19:59:07]execute_cgi path=json_proto method=POST [19:59:07]POST find Content-Length [19:59:07]Host: 172.17.50.3:8080 [19:59:07]Content-Length: 980 [19:59:07]Content-Type: application/json [19:59:07] [19:59:07]POST finish read [19:59:07]Found Content-Length = 980 [19:59:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 106.390, "sum" : 8000.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 106.39 \u0441\u043E\u043C", "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:59:07]execute_script... [19:59:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 106.390, "sum" : 8000.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 106.39 \u0441\u043E\u043C", "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:59:07]POST & json_proto [19:59:07]process_json_proto [19:59:07]json parsed OK: [19:59:07]protocol is kg_v1.0 [19:59:07]action value=close_receipt [19:59:07]process_action close_receipt [19:59:07]cmd_close_receipt [19:59:07]MH_GetDate [19:59:07]Write to MH i2c: F0 00 00 5D 11 5D [19:59:07]Write i2c OK [19:59:07]MH_I2C_Read... [19:59:07]Read from MH i2c: F0 [19:59:07]MH_I2C_Read... [19:59:07]Read from MH i2c: F0 09 00 [19:59:07]MH_I2C_Read... [19:59:07]Read from MH i2c: F0 09 00 5D 11 00 0C 61 15 67 6B 98 1E 66 D6 [19:59:07]GetLastDocTimeStamp 1729454311 [19:59:07]current date 1729454348 [19:59:07]FM_GetShiftState [19:59:07]SAM_PROTO_GetShiftState [19:59:07]wFMCommunicate request_size=4 [19:59:07]MH_SAM_APDU [19:59:07]CAPDU: 80 13 01 00 [19:59:07]Write to MH i2c: E2 08 00 5E 11 80 13 01 00 00 00 00 00 EC [19:59:07]Write i2c OK [19:59:07]MH_I2C_Read... [19:59:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:59:08]Read from MH i2c: E2 [19:59:08]MH_I2C_Read... [19:59:08]Read from MH i2c: E2 0E 00 [19:59:08]MH_I2C_Read... [19:59:08]Read from MH i2c: E2 0E 00 5E 11 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 F2 [19:59:08]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:59:08]wFMCommunicate OK [19:59:08]SAM_PROTO_GetShiftState done [19:59:08]FM_GetShiftState done [19:59:08]opened in 1729383220 [19:59:08]opened+sec_in_day 1729469620 [19:59:08]quantity*price = 800052 [19:59:08]sum+1 = 800054 [19:59:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 8000.00 Внесено: 8000.00 СДАЧА: 0.00 НСП 1% : 70.80 НДС 12% : 849.61 Наличными: 8000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 383 20.10.2024 19:59 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Дисконтная программа ДТ номер 85 сэкономлено 106.39 сом ФМ: 0000000000963346 ФД: 69538 ФПД: 262812224357264 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T195908&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69538&fm=262812224357264&tin=02508201610067®Number=0000000000156251&sum=800000 [19:59:09]StoreToDocumentArchive [19:59:09]shift 193 fd 69538 [19:59:09]save to /storage/0193/doc_00069538 [19:59:09]save last doc name /storage/0193/doc_00069538 to /storage/kkm_last_doc_name [19:59:09]save OK [19:59:09]Clear old archive folders... [19:59:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:59:09]tlvbuf is 00F47A50 [19:59:09]SAM_PROTO_ClearQueue [19:59:09]wFMCommunicate request_size=4 [19:59:09]MH_SAM_APDU [19:59:09]CAPDU: 80 09 00 00 [19:59:09]Write to MH i2c: E2 08 00 6B 11 80 09 00 00 00 00 00 00 EE [19:59:09]Write i2c OK [19:59:09]MH_I2C_Read... [19:59:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:59:09]Read from MH i2c: E2 [19:59:09]MH_I2C_Read... [19:59:09]Read from MH i2c: E2 03 00 [19:59:09]MH_I2C_Read... [19:59:09]Read from MH i2c: E2 03 00 6B 11 00 90 00 F0 [19:59:09]RAPDU: 90 00 [19:59:09]wFMCommunicate OK [19:59:09]SAM_PROTO_ClearQueue done [19:59:09]KKMCreateOFDPacket [19:59:09]OFDProtocolAddRootSTLVToBuf [19:59:09]FM_MakeSignedData [19:59:09]FM_MakeSignedData [19:59:09]SAM_PROTO_SignData [19:59:09]wFMCommunicate request_size=4 [19:59:09]MH_SAM_APDU [19:59:09]CAPDU: 80 0D 01 02 [19:59:09]Write to MH i2c: E2 08 00 6C 11 80 0D 01 02 00 00 00 00 F6 [19:59:09]Write i2c OK [19:59:09]MH_I2C_Read... [19:59:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:59:09]Read from MH i2c: E2 [19:59:09]MH_I2C_Read... [19:59:09]Read from MH i2c: E2 03 00 [19:59:09]MH_I2C_Read... [19:59:09]Read from MH i2c: E2 03 00 6C 11 00 90 00 F1 [19:59:09]RAPDU: 90 00 [19:59:09]wFMCommunicate OK [19:59:09]wFMCommunicate request_size=255 [19:59:09]MH_SAM_APDU [19:59:09]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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 01 00 00 F4 03 04 00 0C 61 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A2 0F 01 00 35 04 06 00 EF 06 BD 46 [19:59:09]Write to MH i2c: E2 02 01 6D 11 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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 01 00 00 F4 03 04 00 0C 61 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A2 0F 01 00 35 04 06 00 EF 06 BD 46 00 00 BC [19:59:09]Write i2c OK [19:59:09]MH_I2C_Read... [19:59:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:59:09]Read from MH i2c: E2 [19:59:09]MH_I2C_Read... [19:59:09]Read from MH i2c: E2 03 00 [19:59:09]MH_I2C_Read... [19:59:09]Read from MH i2c: E2 03 00 6D 11 00 90 00 F2 [19:59:09]RAPDU: 90 00 [19:59:09]wFMCommunicate OK [19:59:09]wFMCommunicate request_size=7 [19:59:09]MH_SAM_APDU [19:59:09]CAPDU: 80 0D 02 02 02 83 90 [19:59:09]Write to MH i2c: E2 0A 00 6E 11 80 0D 02 02 02 00 83 90 00 00 10 [19:59:09]Write i2c OK [19:59:09]MH_I2C_Read... [19:59:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:59:09]Read from MH i2c: E2 [19:59:09]MH_I2C_Read... [19:59:09]Read from MH i2c: E2 03 00 [19:59:09]MH_I2C_Read... [19:59:09]Read from MH i2c: E2 03 00 6E 11 00 90 00 F3 [19:59:09]RAPDU: 90 00 [19:59:09]wFMCommunicate OK [19:59:09]wFMCommunicate request_size=4 [19:59:09]MH_SAM_APDU [19:59:09]CAPDU: 80 0D 03 02 [19:59:09]Write to MH i2c: E2 08 00 6F 11 80 0D 03 02 00 00 00 00 FB [19:59:09]Write i2c OK [19:59:09]MH_I2C_Read... [19:59:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:59:09]Read from MH i2c: E2 [19:59:09]MH_I2C_Read... [19:59:09]Read from MH i2c: E2 0B 00 [19:59:09]MH_I2C_Read... [19:59:09]Read from MH i2c: E2 0B 00 6F 11 00 ED D2 FC F3 32 5A 1D 14 90 00 67 [19:59:09]RAPDU: ED D2 FC F3 32 5A 1D 14 90 00 [19:59:09]wFMCommunicate OK [19:59:09]SAM_PROTO_SignData done [19:59:09]FM_MakeSignedData done [19:59:09]CreateOFDProtocolMessage [19:59:09]wFMCommunicate request_size=4 [19:59:09]MH_SAM_APDU [19:59:09]CAPDU: 80 11 00 00 [19:59:09]Write to MH i2c: E2 08 00 70 11 80 11 00 00 00 00 00 00 FB [19:59:09]Write i2c OK [19:59:09]MH_I2C_Read... [19:59:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:59:09]Read from MH i2c: E2 [19:59:09]MH_I2C_Read... [19:59:09]Read from MH i2c: E2 17 00 [19:59:09]MH_I2C_Read... [19:59:09]Read from MH i2c: E2 17 00 70 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4D [19:59:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:59:09]wFMCommunicate OK [19:59:09]CreateOFDProtocolMessage done [19:59:09]OFDSenderStorePacket 69538 [19:59:09]StoreOFDPacket docnum=69538 [19:59:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 F9 8A 04 01 3D 63 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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 01 00 00 F4 03 04 00 0C 61 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A2 0F 01 00 35 04 06 00 EF 06 BD 46 83 90 ED D2 FC F3 32 5A 1D 14 [19:59:09]CheckFolder [19:59:09]dirname=/storage/ofd_packets [19:59:09]CheckFolder done [19:59:09]ProducePacketName [19:59:09]name=ofd_packets/00069538 [19:59:09]NVStorageSaveData ofd_packets/00069538 [19:59:09]File name is /storage/ofd_packets/00069538 [19:59:09]Write 298 bytes [19:59:09]NVStorageSaveData done [19:59:09]OFDSenderStorePacket done [19:59:09]KKMCreateOFDPacket done [19:59:09]NVStorageSaveData kkm_last_timestamp [19:59:09]File name is /storage/kkm_last_timestamp [19:59:09]Write 4 bytes [19:59:09]NVStorageSaveData done [19:59:09]ExternCall_PrintAddStr [19:59:09]wPrintStart [19:59:09]Write to MH i2c: 01 00 00 71 11 82 [19:59:09]Write i2c OK [19:59:09]MH_I2C_Read... [19:59:09]Read from MH i2c: 01 [19:59:09]MH_I2C_Read... [19:59:09]Read from MH i2c: 01 07 00 [19:59:09]MH_I2C_Read... [19:59:09]Read from MH i2c: 01 07 00 71 11 00 00 00 00 00 FF 0F 97 [19:59:09]RasterBufferAndPrint [19:59:09]line Счет N : (1)2885278 [19:59:09]line ИНН: 02508201610067 [19:59:09]line Контрольно-Кассовый Чек [19:59:09]line ПРОДАЖА [19:59:09]line ТРК (МРК, ГНК) : 51 [19:59:09]line Товар: 2710194210 [19:59:09]line ДТ-К-5 [19:59:09]line 106.390 * 75.20 [19:59:09]line = 8000.53 [19:59:09]line НДС 12% НСП 1% [19:59:09]line > о реализуемом товаре [19:59:09]line ОКРУГЛЕНИЕ: -0.53 [19:59:09]line ИТОГО: 8000.00 [19:59:09]line Внесено: 8000.00 [19:59:09]line СДАЧА: 0.00 [19:59:09]line НСП 1% : 70.80 [19:59:09]line НДС 12% : 849.61 [19:59:09]line Наличными: 8000.00 [19:59:09]line Безнал.: 0.00 [19:59:09]line Место: АЗС № 85 "Партнер Нефть" [19:59:09]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:59:09]line СНО: Общий режим [19:59:09]line Чек 383 20.10.2024 19:59 [19:59:09]line Смена: 193 ФФД: 1.0 [19:59:09]line ЗНМ: 0300000167 [19:59:09]line РНМ: 0000000000156251 [19:59:09]line Версия ККМ: v1.0 [19:59:09]line [19:59:09]line Дисконтная программа [19:59:09]line ДТ [19:59:09]line номер 85 [19:59:09]line сэкономлено 106.39 сом [19:59:09]line ФМ: 0000000000963346 [19:59:09]line ФД: 69538 [19:59:09]line ФПД: 262812224357264 [19:59:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T195908&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69538&fm=262812224357264&tin=02508201610067®Number=0000000000156251&sum=800000 [19:59:10]OFD Sender: Processing packet 69538 [packets to send 18, broken 17] [19:59:10]ProducePacketName [19:59:10]name=ofd_packets/00069538 [19:59:10]OFD Sender: To server: pG, [19:59:10]CommunicateWithHost lk.salyk.kg:30040 [19:59:10]ConnectInit lk.salyk.kg [19:59:10]written 0, free lines is 4095 [19:59:10]Connected sock=10 [19:59:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 F9 8A 04 01 3D 63 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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 01 00 00 F4 03 04 00 0C 61 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A2 0F 01 00 35 04 06 00 EF 06 BD 46 83 90 ED D2 FC F3 32 5A 1D 14 [19:59:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 96 E5 47 00 31 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A2 0F 01 00 F4 03 04 00 B2 0A 15 67 B6 04 01 00 00 FD 5D D7 5F B1 E3 B8 A1 [19:59:10]CommunicateWithHost err = 0 [19:59:10]CheckOFDResponse [19:59:10]1017 (14) - 77093643461234 [19:59:10]1041 (16) - 0000000000963346 [19:59:10]1040 (4) - 69538 [19:59:10]1012 (4) - 20.10.2024 13:50 [19:59:10]1206 (1) - 0 [19:59:10]OFD Sender: Remove packet 69538 [19:59:10]ProducePacketName [19:59:10]name=ofd_packets/00069538 [19:59:10]NVStorageDeleteData [19:59:10]Write to MH i2c: 01 00 00 A1 11 B2 [19:59:10]Write i2c OK [19:59:10]MH_I2C_Read... [19:59:10]Read from MH i2c: 01 [19:59:10]MH_I2C_Read... [19:59:10]Read from MH i2c: 01 07 00 [19:59:10]MH_I2C_Read... [19:59:10]Read from MH i2c: 01 07 00 A1 11 00 00 00 00 00 A3 0C 68 [19:59:10]RasterBufferAndPrint [19:59:10]line [19:59:10]line [19:59:10]line [19:59:10]line [19:59:10]line [19:59:10]written 0, free lines is 3241 [19:59:10]MH_Cut [19:59:10]Write to MH i2c: D1 01 00 A8 11 01 8B [19:59:10]Write i2c OK [19:59:10]MH_I2C_Read... [19:59:10]Read from MH i2c: D1 [19:59:10]MH_I2C_Read... [19:59:10]Read from MH i2c: D1 01 00 [19:59:10]MH_I2C_Read... [19:59:10]Read from MH i2c: D1 01 00 A8 11 00 8A [19:59:10]Write to MH i2c: 01 00 00 A9 11 BA [19:59:10]Write i2c OK [19:59:10]MH_I2C_Read... [19:59:10]OFD Sender: No OFD packet to send [19:59:11]*** Cut start [19:59:11]*** Partial cut [19:59:11]*** CUTSNS_PIN = 1 [19:59:11]*** CUTSNS_PIN = 0 [19:59:11]*** Brake cut motor [19:59:11]Read from MH i2c: 01 [19:59:11]MH_I2C_Read... [19:59:11]*** Stop cut motor [19:59:11]*** Cut end [19:59:11]Read from MH i2c: 01 07 00 [19:59:11]MH_I2C_Read... [19:59:11]Read from MH i2c: 01 07 00 A9 11 00 00 00 00 00 FF 0F CF [19:59:11]process_action close_receipt done [19:59:11]requested_data is exist [19:59:11]produce_requested_data [19:59:11]requested_item fm.sn is exist - process it [19:59:11]wFMCommunicate request_size=4 [19:59:11]MH_SAM_APDU [19:59:11]CAPDU: 80 11 00 00 [19:59:11]Write to MH i2c: E2 08 00 AA 11 80 11 00 00 00 00 00 00 35 [19:59:11]Write i2c OK [19:59:11]MH_I2C_Read... [19:59:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:59:11]Read from MH i2c: E2 [19:59:11]MH_I2C_Read... [19:59:11]Read from MH i2c: E2 17 00 [19:59:11]MH_I2C_Read... [19:59:11]Read from MH i2c: E2 17 00 AA 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 87 [19:59:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:59:11]wFMCommunicate OK [19:59:11]requested_item fd.num is exist - process it [19:59:11]SAM_PROTO_GetFieldsCounters [19:59:11]wFMCommunicate request_size=4 [19:59:11]MH_SAM_APDU [19:59:11]CAPDU: 80 13 00 00 [19:59:11]Write to MH i2c: E2 08 00 AB 11 80 13 00 00 00 00 00 00 38 [19:59:11]Write i2c OK [19:59:11]MH_I2C_Read... [19:59:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:59:12]Read from MH i2c: E2 [19:59:12]MH_I2C_Read... [19:59:12]Read from MH i2c: E2 62 00 [19:59:12]MH_I2C_Read... [19:59:12]Read from MH i2c: E2 62 00 AB 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A2 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 7F 01 00 00 5E 04 04 00 7F 01 00 00 57 04 04 00 80 01 00 00 19 04 04 00 00 00 00 00 90 00 46 [19:59:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A2 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 7F 01 00 00 5E 04 04 00 7F 01 00 00 57 04 04 00 80 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:59:12]wFMCommunicate OK [19:59:12]SAM_PROTO_GetFieldsCounters done [19:59:12]requested_item shift.num is exist - process it [19:59:12]requested_item shift.opened is exist - process it [19:59:12]req_shift_opened [19:59:12]FM_GetShiftState [19:59:12]SAM_PROTO_GetShiftState [19:59:12]wFMCommunicate request_size=4 [19:59:12]MH_SAM_APDU [19:59:12]CAPDU: 80 13 01 00 [19:59:12]Write to MH i2c: E2 08 00 AC 11 80 13 01 00 00 00 00 00 3A [19:59:12]Write i2c OK [19:59:12]MH_I2C_Read... [19:59:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:59:12]Read from MH i2c: E2 [19:59:12]MH_I2C_Read... [19:59:12]Read from MH i2c: E2 0E 00 [19:59:12]MH_I2C_Read... [19:59:12]Read from MH i2c: E2 0E 00 AC 11 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 40 [19:59:12]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:59:12]wFMCommunicate OK [19:59:12]SAM_PROTO_GetShiftState done [19:59:12]FM_GetShiftState done [19:59:12]req_shift_opened done [19:59:12]requested_item shift.open_date is exist - process it [19:59:12]req_shift_open_date [19:59:12]req_shift_open_date done [19:59:12]produce_requested_data done [19:59:12]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69538,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [19:59:12]process_action_free close_receipt [19:59:12]json_value_free [19:59:12]json_value_free done [19:59:12]process_json_proto returns [19:59:12]Send response to host [19:59:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69538,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [19:59:12]free response buf [19:59:12]execute_script done [19:59:12]execute_script returns [19:59:12]free content buf [19:59:12]Sock 7.Close socket [19:59:12]Sock 7.Thread stoped [19:59:15]OFD Sender: No OFD packet to send [19:59:20]OFD Sender: No OFD packet to send [19:59:25]OFD Sender: No OFD packet to send [19:59:30]OFD Sender: No OFD packet to send [19:59:32]accept exits with 9 [19:59:32]New connection [19:59:32]New thread 3066797412 created [19:59:32]Thread 3066654052 joined [19:59:32]Waiting for new connection... [19:59:32] Sock 9.Parse request [19:59:32]Sock 9.Check first char [19:59:32]Sock 9.First char is OK [19:59:32]request: POST /json_proto HTTP/1.0 [19:59:32]Method: POST [19:59:32]URL: /json_proto [19:59:32]Method is POST - this is cgi request [19:59:32]url: /json_proto [19:59:32]query_string will be loaded in cgi processing [19:59:32]execute_cgi json_proto POST (null) [19:59:32]execute_cgi path=json_proto method=POST [19:59:32]POST find Content-Length [19:59:32]Host: 172.17.50.3:8080 [19:59:32]Content-Length: 980 [19:59:32]Content-Type: application/json [19:59:32] [19:59:32]POST finish read [19:59:32]Found Content-Length = 980 [19:59:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 106.390, "sum" : 8000.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 106.39 \u0441\u043E\u043C", "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:59:32]execute_script... [19:59:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 106.390, "sum" : 8000.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 106.39 \u0441\u043E\u043C", "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:59:32]POST & json_proto [19:59:32]process_json_proto [19:59:32]json parsed OK: [19:59:32]protocol is kg_v1.0 [19:59:32]action value=close_receipt [19:59:32]process_action close_receipt [19:59:32]cmd_close_receipt [19:59:32]MH_GetDate [19:59:32]Write to MH i2c: F0 00 00 AD 11 AD [19:59:32]Write i2c OK [19:59:32]MH_I2C_Read... [19:59:32]Read from MH i2c: F0 [19:59:32]MH_I2C_Read... [19:59:32]Read from MH i2c: F0 09 00 [19:59:32]MH_I2C_Read... [19:59:32]Read from MH i2c: F0 09 00 AD 11 00 25 61 15 67 6B 98 1E 66 3F [19:59:32]GetLastDocTimeStamp 1729454348 [19:59:32]current date 1729454373 [19:59:32]FM_GetShiftState [19:59:32]SAM_PROTO_GetShiftState [19:59:32]wFMCommunicate request_size=4 [19:59:32]MH_SAM_APDU [19:59:32]CAPDU: 80 13 01 00 [19:59:32]Write to MH i2c: E2 08 00 AE 11 80 13 01 00 00 00 00 00 3C [19:59:32]Write i2c OK [19:59:32]MH_I2C_Read... [19:59:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:59:32]Read from MH i2c: E2 [19:59:32]MH_I2C_Read... [19:59:32]Read from MH i2c: E2 0E 00 [19:59:32]MH_I2C_Read... [19:59:32]Read from MH i2c: E2 0E 00 AE 11 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 42 [19:59:32]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:59:32]wFMCommunicate OK [19:59:32]SAM_PROTO_GetShiftState done [19:59:32]FM_GetShiftState done [19:59:32]opened in 1729383220 [19:59:32]opened+sec_in_day 1729469620 [19:59:32]quantity*price = 800052 [19:59:32]sum+1 = 800054 [19:59:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 8000.00 Внесено: 8000.00 СДАЧА: 0.00 НСП 1% : 70.80 НДС 12% : 849.61 Наличными: 8000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 384 20.10.2024 19:59 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Дисконтная программа ДТ номер 85 сэкономлено 106.39 сом ФМ: 0000000000963346 ФД: 69539 ФПД: 232906650099592 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T195933&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69539&fm=232906650099592&tin=02508201610067®Number=0000000000156251&sum=800000 [19:59:33]StoreToDocumentArchive [19:59:33]shift 193 fd 69539 [19:59:33]save to /storage/0193/doc_00069539 [19:59:33]save last doc name /storage/0193/doc_00069539 to /storage/kkm_last_doc_name [19:59:33]save OK [19:59:33]Clear old archive folders... [19:59:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:59:33]tlvbuf is 00F24870 [19:59:33]SAM_PROTO_ClearQueue [19:59:33]wFMCommunicate request_size=4 [19:59:33]MH_SAM_APDU [19:59:33]CAPDU: 80 09 00 00 [19:59:33]Write to MH i2c: E2 08 00 BB 11 80 09 00 00 00 00 00 00 3E [19:59:33]Write i2c OK [19:59:33]MH_I2C_Read... [19:59:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:59:33]Read from MH i2c: E2 [19:59:33]MH_I2C_Read... [19:59:33]Read from MH i2c: E2 03 00 [19:59:33]MH_I2C_Read... [19:59:33]Read from MH i2c: E2 03 00 BB 11 00 90 00 40 [19:59:33]RAPDU: 90 00 [19:59:33]wFMCommunicate OK [19:59:33]SAM_PROTO_ClearQueue done [19:59:33]KKMCreateOFDPacket [19:59:33]OFDProtocolAddRootSTLVToBuf [19:59:33]FM_MakeSignedData [19:59:33]FM_MakeSignedData [19:59:33]SAM_PROTO_SignData [19:59:33]wFMCommunicate request_size=4 [19:59:33]MH_SAM_APDU [19:59:33]CAPDU: 80 0D 01 02 [19:59:33]Write to MH i2c: E2 08 00 BC 11 80 0D 01 02 00 00 00 00 46 [19:59:33]Write i2c OK [19:59:33]MH_I2C_Read... [19:59:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:59:33]Read from MH i2c: E2 [19:59:33]MH_I2C_Read... [19:59:33]Read from MH i2c: E2 03 00 [19:59:33]MH_I2C_Read... [19:59:33]Read from MH i2c: E2 03 00 BC 11 00 90 00 41 [19:59:33]RAPDU: 90 00 [19:59:33]wFMCommunicate OK [19:59:33]wFMCommunicate request_size=255 [19:59:33]MH_SAM_APDU [19:59: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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 01 00 00 F4 03 04 00 25 61 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A3 0F 01 00 35 04 06 00 D3 D3 CE 25 [19:59:33]Write to MH i2c: E2 02 01 BD 11 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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 01 00 00 F4 03 04 00 25 61 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A3 0F 01 00 35 04 06 00 D3 D3 CE 25 00 00 C8 [19:59:33]Write i2c OK [19:59:33]MH_I2C_Read... [19:59:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:59:34]Read from MH i2c: E2 [19:59:34]MH_I2C_Read... [19:59:34]Read from MH i2c: E2 03 00 [19:59:34]MH_I2C_Read... [19:59:34]Read from MH i2c: E2 03 00 BD 11 00 90 00 42 [19:59:34]RAPDU: 90 00 [19:59:34]wFMCommunicate OK [19:59:34]wFMCommunicate request_size=7 [19:59:34]MH_SAM_APDU [19:59:34]CAPDU: 80 0D 02 02 02 1F 88 [19:59:34]Write to MH i2c: E2 0A 00 BE 11 80 0D 02 02 02 00 1F 88 00 00 F4 [19:59:34]Write i2c OK [19:59:34]MH_I2C_Read... [19:59:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:59:34]Read from MH i2c: E2 [19:59:34]MH_I2C_Read... [19:59:34]Read from MH i2c: E2 03 00 [19:59:34]MH_I2C_Read... [19:59:34]Read from MH i2c: E2 03 00 BE 11 00 90 00 43 [19:59:34]RAPDU: 90 00 [19:59:34]wFMCommunicate OK [19:59:34]wFMCommunicate request_size=4 [19:59:34]MH_SAM_APDU [19:59:34]CAPDU: 80 0D 03 02 [19:59:34]Write to MH i2c: E2 08 00 BF 11 80 0D 03 02 00 00 00 00 4B [19:59:34]Write i2c OK [19:59:34]MH_I2C_Read... [19:59:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:59:34]Read from MH i2c: E2 [19:59:34]MH_I2C_Read... [19:59:34]Read from MH i2c: E2 0B 00 [19:59:34]MH_I2C_Read... [19:59:34]Read from MH i2c: E2 0B 00 BF 11 00 43 DD 8C C3 C6 FA 44 63 90 00 22 [19:59:34]RAPDU: 43 DD 8C C3 C6 FA 44 63 90 00 [19:59:34]wFMCommunicate OK [19:59:34]SAM_PROTO_SignData done [19:59:34]FM_MakeSignedData done [19:59:34]CreateOFDProtocolMessage [19:59:34]wFMCommunicate request_size=4 [19:59:34]MH_SAM_APDU [19:59:34]CAPDU: 80 11 00 00 [19:59:34]Write to MH i2c: E2 08 00 C0 11 80 11 00 00 00 00 00 00 4B [19:59:34]Write i2c OK [19:59:34]MH_I2C_Read... [19:59:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:59:34]Read from MH i2c: E2 [19:59:34]MH_I2C_Read... [19:59:34]Read from MH i2c: E2 17 00 [19:59:34]MH_I2C_Read... [19:59:34]Read from MH i2c: E2 17 00 C0 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9D [19:59:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:59:34]wFMCommunicate OK [19:59:34]CreateOFDProtocolMessage done [19:59:34]OFDSenderStorePacket 69539 [19:59:34]StoreOFDPacket docnum=69539 [19:59:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 21 02 04 01 EA 8F 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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 01 00 00 F4 03 04 00 25 61 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A3 0F 01 00 35 04 06 00 D3 D3 CE 25 1F 88 43 DD 8C C3 C6 FA 44 63 [19:59:34]CheckFolder [19:59:34]dirname=/storage/ofd_packets [19:59:34]CheckFolder done [19:59:34]ProducePacketName [19:59:34]name=ofd_packets/00069539 [19:59:34]NVStorageSaveData ofd_packets/00069539 [19:59:34]File name is /storage/ofd_packets/00069539 [19:59:34]Write 298 bytes [19:59:34]NVStorageSaveData done [19:59:34]OFDSenderStorePacket done [19:59:34]KKMCreateOFDPacket done [19:59:34]NVStorageSaveData kkm_last_timestamp [19:59:34]File name is /storage/kkm_last_timestamp [19:59:34]Write 4 bytes [19:59:34]NVStorageSaveData done [19:59:34]ExternCall_PrintAddStr [19:59:34]wPrintStart [19:59:34]Write to MH i2c: 01 00 00 C1 11 D2 [19:59:34]Write i2c OK [19:59:34]MH_I2C_Read... [19:59:34]Read from MH i2c: 01 [19:59:34]MH_I2C_Read... [19:59:34]Read from MH i2c: 01 07 00 [19:59:34]MH_I2C_Read... [19:59:34]Read from MH i2c: 01 07 00 C1 11 00 00 00 00 00 FF 0F E7 [19:59:34]RasterBufferAndPrint [19:59:34]line Счет N : (1)2885279 [19:59:34]line ИНН: 02508201610067 [19:59:34]line Контрольно-Кассовый Чек [19:59:34]line ПРОДАЖА [19:59:34]line ТРК (МРК, ГНК) : 61 [19:59:34]line Товар: 2710194210 [19:59:34]line ДТ-К-5 [19:59:34]line 106.390 * 75.20 [19:59:34]line = 8000.53 [19:59:34]line НДС 12% НСП 1% [19:59:34]line > о реализуемом товаре [19:59:34]line ОКРУГЛЕНИЕ: -0.53 [19:59:34]line ИТОГО: 8000.00 [19:59:34]line Внесено: 8000.00 [19:59:34]line СДАЧА: 0.00 [19:59:34]line НСП 1% : 70.80 [19:59:34]line НДС 12% : 849.61 [19:59:34]line Наличными: 8000.00 [19:59:34]line Безнал.: 0.00 [19:59:34]line Место: АЗС № 85 "Партнер Нефть" [19:59:34]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [19:59:34]line СНО: Общий режим [19:59:34]line Чек 384 20.10.2024 19:59 [19:59:34]line Смена: 193 ФФД: 1.0 [19:59:34]line ЗНМ: 0300000167 [19:59:34]line РНМ: 0000000000156251 [19:59:34]line Версия ККМ: v1.0 [19:59:34]line [19:59:34]line Дисконтная программа [19:59:34]line ДТ [19:59:34]line номер 85 [19:59:34]line сэкономлено 106.39 сом [19:59:34]line ФМ: 0000000000963346 [19:59:34]line ФД: 69539 [19:59:34]line ФПД: 232906650099592 [19:59:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T195933&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69539&fm=232906650099592&tin=02508201610067®Number=0000000000156251&sum=800000 [19:59:34]OFD Sender: Processing packet 69539 [packets to send 18, broken 17] [19:59:34]ProducePacketName [19:59:34]name=ofd_packets/00069539 [19:59:34]OFD Sender: To server: pG, [19:59:34]CommunicateWithHost lk.salyk.kg:30040 [19:59:34]ConnectInit lk.salyk.kg [19:59:34]written 0, free lines is 4095 [19:59:34]Connected sock=10 [19:59:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 21 02 04 01 EA 8F 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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 01 00 00 F4 03 04 00 25 61 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A3 0F 01 00 35 04 06 00 D3 D3 CE 25 1F 88 43 DD 8C C3 C6 FA 44 63 [19:59:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 F4 17 47 00 55 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A3 0F 01 00 F4 03 04 00 CB 0A 15 67 B6 04 01 00 00 CE CB 4B E1 F9 C8 19 DB [19:59:34]CommunicateWithHost err = 0 [19:59:34]CheckOFDResponse [19:59:34]1017 (14) - 77093643461234 [19:59:34]1041 (16) - 0000000000963346 [19:59:34]1040 (4) - 69539 [19:59:34]1012 (4) - 20.10.2024 13:51 [19:59:34]1206 (1) - 0 [19:59:34]OFD Sender: Remove packet 69539 [19:59:34]ProducePacketName [19:59:34]name=ofd_packets/00069539 [19:59:34]NVStorageDeleteData [19:59:35]Write to MH i2c: 01 00 00 F1 11 02 [19:59:35]Write i2c OK [19:59:35]MH_I2C_Read... [19:59:35]Read from MH i2c: 01 [19:59:35]MH_I2C_Read... [19:59:35]Read from MH i2c: 01 07 00 [19:59:35]MH_I2C_Read... [19:59:35]Read from MH i2c: 01 07 00 F1 11 00 00 00 00 00 A8 0C BD [19:59:35]RasterBufferAndPrint [19:59:35]line [19:59:35]line [19:59:35]line [19:59:35]line [19:59:35]line [19:59:35]written 0, free lines is 3246 [19:59:35]MH_Cut [19:59:35]Write to MH i2c: D1 01 00 F8 11 01 DB [19:59:35]Write i2c OK [19:59:35]MH_I2C_Read... [19:59:35]Read from MH i2c: D1 [19:59:35]MH_I2C_Read... [19:59:35]Read from MH i2c: D1 01 00 [19:59:35]MH_I2C_Read... [19:59:35]Read from MH i2c: D1 01 00 F8 11 00 DA [19:59:35]Write to MH i2c: 01 00 00 F9 11 0A [19:59:35]Write i2c OK [19:59:35]MH_I2C_Read... [19:59:35]OFD Sender: No OFD packet to send [19:59:35]*** Cut start [19:59:35]*** Partial cut [19:59:35]*** CUTSNS_PIN = 1 [19:59:35]*** CUTSNS_PIN = 0 [19:59:36]*** Brake cut motor [19:59:36]Read from MH i2c: 01 [19:59:36]MH_I2C_Read... [19:59:36]*** Stop cut motor [19:59:36]*** Cut end [19:59:36]Read from MH i2c: 01 07 00 [19:59:36]MH_I2C_Read... [19:59:36]Read from MH i2c: 01 07 00 F9 11 00 00 00 00 00 FF 0F 1F [19:59:36]process_action close_receipt done [19:59:36]requested_data is exist [19:59:36]produce_requested_data [19:59:36]requested_item fm.sn is exist - process it [19:59:36]wFMCommunicate request_size=4 [19:59:36]MH_SAM_APDU [19:59:36]CAPDU: 80 11 00 00 [19:59:36]Write to MH i2c: E2 08 00 FA 11 80 11 00 00 00 00 00 00 85 [19:59:36]Write i2c OK [19:59:36]MH_I2C_Read... [19:59:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:59:36]Read from MH i2c: E2 [19:59:36]MH_I2C_Read... [19:59:36]Read from MH i2c: E2 17 00 [19:59:36]MH_I2C_Read... [19:59:36]Read from MH i2c: E2 17 00 FA 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D7 [19:59:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [19:59:36]wFMCommunicate OK [19:59:36]requested_item fd.num is exist - process it [19:59:36]SAM_PROTO_GetFieldsCounters [19:59:36]wFMCommunicate request_size=4 [19:59:36]MH_SAM_APDU [19:59:36]CAPDU: 80 13 00 00 [19:59:36]Write to MH i2c: E2 08 00 FB 11 80 13 00 00 00 00 00 00 88 [19:59:36]Write i2c OK [19:59:36]MH_I2C_Read... [19:59:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:59:36]Read from MH i2c: E2 [19:59:36]MH_I2C_Read... [19:59:36]Read from MH i2c: E2 62 00 [19:59:36]MH_I2C_Read... [19:59:36]Read from MH i2c: E2 62 00 FB 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A3 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 80 01 00 00 5E 04 04 00 80 01 00 00 57 04 04 00 81 01 00 00 19 04 04 00 00 00 00 00 90 00 9A [19:59:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A3 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 80 01 00 00 5E 04 04 00 80 01 00 00 57 04 04 00 81 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:59:36]wFMCommunicate OK [19:59:36]SAM_PROTO_GetFieldsCounters done [19:59:36]requested_item shift.num is exist - process it [19:59:36]requested_item shift.opened is exist - process it [19:59:36]req_shift_opened [19:59:36]FM_GetShiftState [19:59:36]SAM_PROTO_GetShiftState [19:59:36]wFMCommunicate request_size=4 [19:59:36]MH_SAM_APDU [19:59:36]CAPDU: 80 13 01 00 [19:59:36]Write to MH i2c: E2 08 00 FC 11 80 13 01 00 00 00 00 00 8A [19:59:36]Write i2c OK [19:59:36]MH_I2C_Read... [19:59:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:59:36]Read from MH i2c: E2 [19:59:36]MH_I2C_Read... [19:59:36]Read from MH i2c: E2 0E 00 [19:59:36]MH_I2C_Read... [19:59:36]Read from MH i2c: E2 0E 00 FC 11 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 90 [19:59:36]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [19:59:36]wFMCommunicate OK [19:59:36]SAM_PROTO_GetShiftState done [19:59:36]FM_GetShiftState done [19:59:36]req_shift_opened done [19:59:36]requested_item shift.open_date is exist - process it [19:59:36]req_shift_open_date [19:59:36]req_shift_open_date done [19:59:36]produce_requested_data done [19:59:36]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69539,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [19:59:36]process_action_free close_receipt [19:59:36]json_value_free [19:59:36]json_value_free done [19:59:36]process_json_proto returns [19:59:36]Send response to host [19:59:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69539,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [19:59:36]free response buf [19:59:36]execute_script done [19:59:36]execute_script returns [19:59:36]free content buf [19:59:36]Sock 9.Close socket [19:59:36]Sock 9.Thread stoped [19:59:40]OFD Sender: No OFD packet to send [19:59:45]OFD Sender: No OFD packet to send [19:59:50]OFD Sender: No OFD packet to send [19:59:55]OFD Sender: No OFD packet to send [20:00:00]OFD Sender: No OFD packet to send [20:00:05]OFD Sender: No OFD packet to send [20:00:10]OFD Sender: No OFD packet to send [20:00:15]OFD Sender: No OFD packet to send [20:00:20]OFD Sender: No OFD packet to send [20:00:25]OFD Sender: No OFD packet to send [20:00:30]OFD Sender: No OFD packet to send [20:00:35]OFD Sender: No OFD packet to send [20:00:40]OFD Sender: No OFD packet to send [20:00:45]OFD Sender: No OFD packet to send [20:00:50]OFD Sender: No OFD packet to send [20:00:55]OFD Sender: No OFD packet to send [20:01:00]OFD Sender: No OFD packet to send [20:01:05]OFD Sender: No OFD packet to send [20:01:10]OFD Sender: No OFD packet to send [20:01:15]OFD Sender: No OFD packet to send [20:01:20]OFD Sender: No OFD packet to send [20:01:25]OFD Sender: No OFD packet to send [20:01:30]OFD Sender: No OFD packet to send [20:01:35]OFD Sender: No OFD packet to send [20:01:40]OFD Sender: No OFD packet to send [20:01:45]OFD Sender: No OFD packet to send [20:01:50]OFD Sender: No OFD packet to send [20:01:55]OFD Sender: No OFD packet to send [20:02:00]OFD Sender: No OFD packet to send [20:02:05]OFD Sender: No OFD packet to send [20:02:10]OFD Sender: No OFD packet to send [20:02:15]OFD Sender: No OFD packet to send [20:02:20]OFD Sender: No OFD packet to send [20:02:23]accept exits with 7 [20:02:23]New connection [20:02:23]New thread 3066654052 created [20:02:23]Thread 3066797412 joined [20:02:23]Waiting for new connection... [20:02:23] Sock 7.Parse request [20:02:23]Sock 7.Check first char [20:02:23]Sock 7.First char is OK [20:02:23]request: POST /json_proto HTTP/1.0 [20:02:23]Method: POST [20:02:23]URL: /json_proto [20:02:23]Method is POST - this is cgi request [20:02:23]url: /json_proto [20:02:23]query_string will be loaded in cgi processing [20:02:23]execute_cgi json_proto POST (null) [20:02:23]execute_cgi path=json_proto method=POST [20:02:23]POST find Content-Length [20:02:23]Host: 172.17.50.3:8080 [20:02:23]Content-Length: 980 [20:02:23]Content-Type: application/json [20:02:23] [20:02:23]POST finish read [20:02:23]Found Content-Length = 980 [20:02:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 106.390, "sum" : 8000.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 106.39 \u0441\u043E\u043C", "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:02:23]execute_script... [20:02:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 106.390, "sum" : 8000.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 106.39 \u0441\u043E\u043C", "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:02:23]POST & json_proto [20:02:23]process_json_proto [20:02:23]json parsed OK: [20:02:23]protocol is kg_v1.0 [20:02:23]action value=close_receipt [20:02:23]process_action close_receipt [20:02:23]cmd_close_receipt [20:02:23]MH_GetDate [20:02:23]Write to MH i2c: F0 00 00 FD 11 FD [20:02:23]Write i2c OK [20:02:23]MH_I2C_Read... [20:02:23]Read from MH i2c: F0 [20:02:23]MH_I2C_Read... [20:02:23]Read from MH i2c: F0 09 00 [20:02:23]MH_I2C_Read... [20:02:23]Read from MH i2c: F0 09 00 FD 11 00 D0 61 15 67 6B 98 1E 66 3A [20:02:23]GetLastDocTimeStamp 1729454373 [20:02:23]current date 1729454544 [20:02:23]FM_GetShiftState [20:02:23]SAM_PROTO_GetShiftState [20:02:23]wFMCommunicate request_size=4 [20:02:23]MH_SAM_APDU [20:02:23]CAPDU: 80 13 01 00 [20:02:23]Write to MH i2c: E2 08 00 FE 11 80 13 01 00 00 00 00 00 8C [20:02:23]Write i2c OK [20:02:23]MH_I2C_Read... [20:02:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:02:23]Read from MH i2c: E2 [20:02:23]MH_I2C_Read... [20:02:23]Read from MH i2c: E2 0E 00 [20:02:23]MH_I2C_Read... [20:02:23]Read from MH i2c: E2 0E 00 FE 11 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 92 [20:02:23]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:02:23]wFMCommunicate OK [20:02:23]SAM_PROTO_GetShiftState done [20:02:23]FM_GetShiftState done [20:02:23]opened in 1729383220 [20:02:23]opened+sec_in_day 1729469620 [20:02:23]quantity*price = 800052 [20:02:23]sum+1 = 800054 [20:02:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 8000.00 Внесено: 8000.00 СДАЧА: 0.00 НСП 1% : 70.80 НДС 12% : 849.61 Наличными: 8000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 385 20.10.2024 20:02 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Дисконтная программа ДТ номер 85 сэкономлено 106.39 сом ФМ: 0000000000963346 ФД: 69540 ФПД: 6987508187317 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T200224&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69540&fm=6987508187317&tin=02508201610067®Number=0000000000156251&sum=800000 [20:02:24]StoreToDocumentArchive [20:02:24]shift 193 fd 69540 [20:02:24]save to /storage/0193/doc_00069540 [20:02:24]save last doc name /storage/0193/doc_00069540 to /storage/kkm_last_doc_name [20:02:24]save OK [20:02:24]Clear old archive folders... [20:02:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:02:24]tlvbuf is 00F7F3D0 [20:02:24]SAM_PROTO_ClearQueue [20:02:24]wFMCommunicate request_size=4 [20:02:24]MH_SAM_APDU [20:02:24]CAPDU: 80 09 00 00 [20:02:24]Write to MH i2c: E2 08 00 0B 12 80 09 00 00 00 00 00 00 8F [20:02:24]Write i2c OK [20:02:24]MH_I2C_Read... [20:02:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:02:24]Read from MH i2c: E2 [20:02:24]MH_I2C_Read... [20:02:24]Read from MH i2c: E2 03 00 [20:02:24]MH_I2C_Read... [20:02:24]Read from MH i2c: E2 03 00 0B 12 00 90 00 91 [20:02:24]RAPDU: 90 00 [20:02:24]wFMCommunicate OK [20:02:24]SAM_PROTO_ClearQueue done [20:02:24]KKMCreateOFDPacket [20:02:24]OFDProtocolAddRootSTLVToBuf [20:02:24]FM_MakeSignedData [20:02:24]FM_MakeSignedData [20:02:24]SAM_PROTO_SignData [20:02:24]wFMCommunicate request_size=4 [20:02:24]MH_SAM_APDU [20:02:24]CAPDU: 80 0D 01 02 [20:02:24]Write to MH i2c: E2 08 00 0C 12 80 0D 01 02 00 00 00 00 97 [20:02:24]Write i2c OK [20:02:24]MH_I2C_Read... [20:02:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:02:24]Read from MH i2c: E2 [20:02:24]MH_I2C_Read... [20:02:24]Read from MH i2c: E2 03 00 [20:02:24]MH_I2C_Read... [20:02:24]Read from MH i2c: E2 03 00 0C 12 00 90 00 92 [20:02:24]RAPDU: 90 00 [20:02:24]wFMCommunicate OK [20:02:24]wFMCommunicate request_size=255 [20:02:24]MH_SAM_APDU [20:02:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 01 00 00 F4 03 04 00 D0 61 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A4 0F 01 00 35 04 06 00 06 5A E7 F1 [20:02:24]Write to MH i2c: E2 02 01 0D 12 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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 01 00 00 F4 03 04 00 D0 61 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A4 0F 01 00 35 04 06 00 06 5A E7 F1 00 00 65 [20:02:24]Write i2c OK [20:02:24]MH_I2C_Read... [20:02:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:02:25]Read from MH i2c: E2 [20:02:25]MH_I2C_Read... [20:02:25]Read from MH i2c: E2 03 00 [20:02:25]MH_I2C_Read... [20:02:25]Read from MH i2c: E2 03 00 0D 12 00 90 00 93 [20:02:25]RAPDU: 90 00 [20:02:25]wFMCommunicate OK [20:02:25]wFMCommunicate request_size=7 [20:02:25]MH_SAM_APDU [20:02:25]CAPDU: 80 0D 02 02 02 80 B5 [20:02:25]Write to MH i2c: E2 0A 00 0E 12 80 0D 02 02 02 00 80 B5 00 00 D3 [20:02:25]Write i2c OK [20:02:25]MH_I2C_Read... [20:02:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:02:25]Read from MH i2c: E2 [20:02:25]MH_I2C_Read... [20:02:25]Read from MH i2c: E2 03 00 [20:02:25]MH_I2C_Read... [20:02:25]Read from MH i2c: E2 03 00 0E 12 00 90 00 94 [20:02:25]RAPDU: 90 00 [20:02:25]wFMCommunicate OK [20:02:25]wFMCommunicate request_size=4 [20:02:25]MH_SAM_APDU [20:02:25]CAPDU: 80 0D 03 02 [20:02:25]Write to MH i2c: E2 08 00 0F 12 80 0D 03 02 00 00 00 00 9C [20:02:25]Write i2c OK [20:02:25]MH_I2C_Read... [20:02:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:02:25]Read from MH i2c: E2 [20:02:25]MH_I2C_Read... [20:02:25]Read from MH i2c: E2 0B 00 [20:02:25]MH_I2C_Read... [20:02:25]Read from MH i2c: E2 0B 00 0F 12 00 EA 23 72 1E 3D 9B CB F4 90 00 D1 [20:02:25]RAPDU: EA 23 72 1E 3D 9B CB F4 90 00 [20:02:25]wFMCommunicate OK [20:02:25]SAM_PROTO_SignData done [20:02:25]FM_MakeSignedData done [20:02:25]CreateOFDProtocolMessage [20:02:25]wFMCommunicate request_size=4 [20:02:25]MH_SAM_APDU [20:02:25]CAPDU: 80 11 00 00 [20:02:25]Write to MH i2c: E2 08 00 10 12 80 11 00 00 00 00 00 00 9C [20:02:25]Write i2c OK [20:02:25]MH_I2C_Read... [20:02:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:02:25]Read from MH i2c: E2 [20:02:25]MH_I2C_Read... [20:02:25]Read from MH i2c: E2 17 00 [20:02:25]MH_I2C_Read... [20:02:25]Read from MH i2c: E2 17 00 10 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EE [20:02:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:02:25]wFMCommunicate OK [20:02:25]CreateOFDProtocolMessage done [20:02:25]OFDSenderStorePacket 69540 [20:02:25]StoreOFDPacket docnum=69540 [20:02:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 E4 5D 04 01 0E 6E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 01 00 00 F4 03 04 00 D0 61 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A4 0F 01 00 35 04 06 00 06 5A E7 F1 80 B5 EA 23 72 1E 3D 9B CB F4 [20:02:25]CheckFolder [20:02:25]dirname=/storage/ofd_packets [20:02:25]CheckFolder done [20:02:25]ProducePacketName [20:02:25]name=ofd_packets/00069540 [20:02:25]NVStorageSaveData ofd_packets/00069540 [20:02:25]File name is /storage/ofd_packets/00069540 [20:02:25]Write 298 bytes [20:02:25]NVStorageSaveData done [20:02:25]OFDSenderStorePacket done [20:02:25]KKMCreateOFDPacket done [20:02:25]NVStorageSaveData kkm_last_timestamp [20:02:25]File name is /storage/kkm_last_timestamp [20:02:25]Write 4 bytes [20:02:25]NVStorageSaveData done [20:02:25]ExternCall_PrintAddStr [20:02:25]wPrintStart [20:02:25]Write to MH i2c: 01 00 00 11 12 23 [20:02:25]Write i2c OK [20:02:25]MH_I2C_Read... [20:02:25]Read from MH i2c: 01 [20:02:25]MH_I2C_Read... [20:02:25]Read from MH i2c: 01 07 00 [20:02:25]MH_I2C_Read... [20:02:25]Read from MH i2c: 01 07 00 11 12 00 00 00 00 00 FF 0F 38 [20:02:25]RasterBufferAndPrint [20:02:25]line Счет N : (1)2885280 [20:02:25]line ИНН: 02508201610067 [20:02:25]line Контрольно-Кассовый Чек [20:02:25]line ПРОДАЖА [20:02:25]line ТРК (МРК, ГНК) : 51 [20:02:25]line Товар: 2710194210 [20:02:25]line ДТ-К-5 [20:02:25]line 106.390 * 75.20 [20:02:25]line = 8000.53 [20:02:25]line НДС 12% НСП 1% [20:02:25]line > о реализуемом товаре [20:02:25]line ОКРУГЛЕНИЕ: -0.53 [20:02:25]line ИТОГО: 8000.00 [20:02:25]line Внесено: 8000.00 [20:02:25]line СДАЧА: 0.00 [20:02:25]line НСП 1% : 70.80 [20:02:25]line НДС 12% : 849.61 [20:02:25]line Наличными: 8000.00 [20:02:25]line Безнал.: 0.00 [20:02:25]line Место: АЗС № 85 "Партнер Нефть" [20:02:25]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:02:25]line СНО: Общий режим [20:02:25]line Чек 385 20.10.2024 20:02 [20:02:25]line Смена: 193 ФФД: 1.0 [20:02:25]line ЗНМ: 0300000167 [20:02:25]line РНМ: 0000000000156251 [20:02:25]line Версия ККМ: v1.0 [20:02:25]line [20:02:25]line Дисконтная программа [20:02:25]line ДТ [20:02:25]line номер 85 [20:02:25]line сэкономлено 106.39 сом [20:02:25]line ФМ: 0000000000963346 [20:02:25]line ФД: 69540 [20:02:25]line ФПД: 6987508187317 [20:02:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T200224&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69540&fm=6987508187317&tin=02508201610067®Number=0000000000156251&sum=800000 [20:02:25]OFD Sender: Processing packet 69540 [packets to send 18, broken 17] [20:02:25]ProducePacketName [20:02:25]name=ofd_packets/00069540 [20:02:25]OFD Sender: To server: pG, [20:02:25]CommunicateWithHost lk.salyk.kg:30040 [20:02:25]ConnectInit lk.salyk.kg [20:02:25]written 0, free lines is 4095 [20:02:25]Connected sock=10 [20:02:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 E4 5D 04 01 0E 6E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 01 00 00 F4 03 04 00 D0 61 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A4 0F 01 00 35 04 06 00 06 5A E7 F1 80 B5 EA 23 72 1E 3D 9B CB F4 [20:02:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 7D 7A 47 00 D7 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A4 0F 01 00 F4 03 04 00 76 0B 15 67 B6 04 01 00 00 01 D7 0E 7F D6 ED E7 8C [20:02:25]CommunicateWithHost err = 0 [20:02:25]CheckOFDResponse [20:02:25]1017 (14) - 77093643461234 [20:02:25]1041 (16) - 0000000000963346 [20:02:25]1040 (4) - 69540 [20:02:25]1012 (4) - 20.10.2024 13:53 [20:02:25]1206 (1) - 0 [20:02:25]OFD Sender: Remove packet 69540 [20:02:25]ProducePacketName [20:02:25]name=ofd_packets/00069540 [20:02:25]NVStorageDeleteData [20:02:26]Write to MH i2c: 01 00 00 41 12 53 [20:02:26]Write i2c OK [20:02:26]MH_I2C_Read... [20:02:26]Read from MH i2c: 01 [20:02:26]MH_I2C_Read... [20:02:26]Read from MH i2c: 01 07 00 [20:02:26]MH_I2C_Read... [20:02:26]Read from MH i2c: 01 07 00 41 12 00 00 00 00 00 AC 0C 12 [20:02:26]RasterBufferAndPrint [20:02:26]line [20:02:26]line [20:02:26]line [20:02:26]line [20:02:26]line [20:02:26]written 0, free lines is 3251 [20:02:26]MH_Cut [20:02:26]Write to MH i2c: D1 01 00 48 12 01 2C [20:02:26]Write i2c OK [20:02:26]MH_I2C_Read... [20:02:26]Read from MH i2c: D1 [20:02:26]MH_I2C_Read... [20:02:26]Read from MH i2c: D1 01 00 [20:02:26]MH_I2C_Read... [20:02:26]Read from MH i2c: D1 01 00 48 12 00 2B [20:02:26]Write to MH i2c: 01 00 00 49 12 5B [20:02:26]Write i2c OK [20:02:26]MH_I2C_Read... [20:02:26]OFD Sender: No OFD packet to send [20:02:26]*** Cut start [20:02:26]*** Partial cut [20:02:26]*** CUTSNS_PIN = 1 [20:02:26]*** CUTSNS_PIN = 0 [20:02:27]*** Brake cut motor [20:02:27]Read from MH i2c: 01 [20:02:27]MH_I2C_Read... [20:02:27]*** Stop cut motor [20:02:27]*** Cut end [20:02:27]Read from MH i2c: 01 07 00 [20:02:27]MH_I2C_Read... [20:02:27]Read from MH i2c: 01 07 00 49 12 00 00 00 00 00 FF 0F 70 [20:02:27]process_action close_receipt done [20:02:27]requested_data is exist [20:02:27]produce_requested_data [20:02:27]requested_item fm.sn is exist - process it [20:02:27]wFMCommunicate request_size=4 [20:02:27]MH_SAM_APDU [20:02:27]CAPDU: 80 11 00 00 [20:02:27]Write to MH i2c: E2 08 00 4A 12 80 11 00 00 00 00 00 00 D6 [20:02:27]Write i2c OK [20:02:27]MH_I2C_Read... [20:02:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:02:27]Read from MH i2c: E2 [20:02:27]MH_I2C_Read... [20:02:27]Read from MH i2c: E2 17 00 [20:02:27]MH_I2C_Read... [20:02:27]Read from MH i2c: E2 17 00 4A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 28 [20:02:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:02:27]wFMCommunicate OK [20:02:27]requested_item fd.num is exist - process it [20:02:27]SAM_PROTO_GetFieldsCounters [20:02:27]wFMCommunicate request_size=4 [20:02:27]MH_SAM_APDU [20:02:27]CAPDU: 80 13 00 00 [20:02:27]Write to MH i2c: E2 08 00 4B 12 80 13 00 00 00 00 00 00 D9 [20:02:27]Write i2c OK [20:02:27]MH_I2C_Read... [20:02:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:02:27]Read from MH i2c: E2 [20:02:27]MH_I2C_Read... [20:02:27]Read from MH i2c: E2 62 00 [20:02:27]MH_I2C_Read... [20:02:27]Read from MH i2c: E2 62 00 4B 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A4 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 81 01 00 00 5E 04 04 00 81 01 00 00 57 04 04 00 82 01 00 00 19 04 04 00 00 00 00 00 90 00 EF [20:02:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A4 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 81 01 00 00 5E 04 04 00 81 01 00 00 57 04 04 00 82 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:02:27]wFMCommunicate OK [20:02:27]SAM_PROTO_GetFieldsCounters done [20:02:27]requested_item shift.num is exist - process it [20:02:27]requested_item shift.opened is exist - process it [20:02:27]req_shift_opened [20:02:27]FM_GetShiftState [20:02:27]SAM_PROTO_GetShiftState [20:02:27]wFMCommunicate request_size=4 [20:02:27]MH_SAM_APDU [20:02:27]CAPDU: 80 13 01 00 [20:02:27]Write to MH i2c: E2 08 00 4C 12 80 13 01 00 00 00 00 00 DB [20:02:27]Write i2c OK [20:02:27]MH_I2C_Read... [20:02:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:02:27]Read from MH i2c: E2 [20:02:27]MH_I2C_Read... [20:02:27]Read from MH i2c: E2 0E 00 [20:02:27]MH_I2C_Read... [20:02:27]Read from MH i2c: E2 0E 00 4C 12 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 E1 [20:02:27]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:02:27]wFMCommunicate OK [20:02:27]SAM_PROTO_GetShiftState done [20:02:27]FM_GetShiftState done [20:02:27]req_shift_opened done [20:02:27]requested_item shift.open_date is exist - process it [20:02:27]req_shift_open_date [20:02:27]req_shift_open_date done [20:02:27]produce_requested_data done [20:02:27]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69540,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [20:02:27]process_action_free close_receipt [20:02:27]json_value_free [20:02:27]json_value_free done [20:02:27]process_json_proto returns [20:02:27]Send response to host [20:02:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69540,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [20:02:27]free response buf [20:02:27]execute_script done [20:02:27]execute_script returns [20:02:27]free content buf [20:02:27]Sock 7.Close socket [20:02:27]Sock 7.Thread stoped [20:02:31]OFD Sender: No OFD packet to send [20:02:36]OFD Sender: No OFD packet to send [20:02:41]OFD Sender: No OFD packet to send [20:02:46]accept exits with 9 [20:02:46]New connection [20:02:46]New thread 3066797412 created [20:02:46]Thread 3066654052 joined [20:02:46]Waiting for new connection... [20:02:46] Sock 9.Parse request [20:02:46]Sock 9.Check first char [20:02:46]Sock 9.First char is OK [20:02:46]request: POST /json_proto HTTP/1.0 [20:02:46]Method: POST [20:02:46]URL: /json_proto [20:02:46]Method is POST - this is cgi request [20:02:46]url: /json_proto [20:02:46]query_string will be loaded in cgi processing [20:02:46]execute_cgi json_proto POST (null) [20:02:46]execute_cgi path=json_proto method=POST [20:02:46]POST find Content-Length [20:02:46]Host: 172.17.50.3:8080 [20:02:46]Content-Length: 980 [20:02:46]Content-Type: application/json [20:02:46] [20:02:46]POST finish read [20:02:46]Found Content-Length = 980 [20:02:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 106.390, "sum" : 8000.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 106.39 \u0441\u043E\u043C", "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:02:46]execute_script... [20:02: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)2885281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 106.390, "sum" : 8000.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 106.39 \u0441\u043E\u043C", "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:02:46]POST & json_proto [20:02:46]process_json_proto [20:02:46]json parsed OK: [20:02:46]protocol is kg_v1.0 [20:02:46]action value=close_receipt [20:02:46]process_action close_receipt [20:02:46]cmd_close_receipt [20:02:46]MH_GetDate [20:02:46]Write to MH i2c: F0 00 00 4D 12 4E [20:02:46]Write i2c OK [20:02:46]MH_I2C_Read... [20:02:46]Read from MH i2c: F0 [20:02:46]MH_I2C_Read... [20:02:46]Read from MH i2c: F0 09 00 [20:02:46]MH_I2C_Read... [20:02:46]Read from MH i2c: F0 09 00 4D 12 00 E6 61 15 67 6B 98 1E 66 A1 [20:02:46]GetLastDocTimeStamp 1729454544 [20:02:46]current date 1729454566 [20:02:46]FM_GetShiftState [20:02:46]SAM_PROTO_GetShiftState [20:02:46]wFMCommunicate request_size=4 [20:02:46]MH_SAM_APDU [20:02:46]CAPDU: 80 13 01 00 [20:02:46]Write to MH i2c: E2 08 00 4E 12 80 13 01 00 00 00 00 00 DD [20:02:46]Write i2c OK [20:02:46]MH_I2C_Read... [20:02:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:02:46]Read from MH i2c: E2 [20:02:46]MH_I2C_Read... [20:02:46]Read from MH i2c: E2 0E 00 [20:02:46]MH_I2C_Read... [20:02:46]Read from MH i2c: E2 0E 00 4E 12 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 E3 [20:02:46]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:02:46]wFMCommunicate OK [20:02:46]SAM_PROTO_GetShiftState done [20:02:46]FM_GetShiftState done [20:02:46]opened in 1729383220 [20:02:46]opened+sec_in_day 1729469620 [20:02:46]quantity*price = 800052 [20:02:46]sum+1 = 800054 [20:02:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 8000.00 Внесено: 8000.00 СДАЧА: 0.00 НСП 1% : 70.80 НДС 12% : 849.61 Наличными: 8000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 386 20.10.2024 20:02 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Дисконтная программа ДТ номер 85 сэкономлено 106.39 сом ФМ: 0000000000963346 ФД: 69541 ФПД: 164386181411784 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T200246&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69541&fm=164386181411784&tin=02508201610067®Number=0000000000156251&sum=800000 [20:02:47]StoreToDocumentArchive [20:02:47]shift 193 fd 69541 [20:02:47]save to /storage/0193/doc_00069541 [20:02:47]save last doc name /storage/0193/doc_00069541 to /storage/kkm_last_doc_name [20:02:47]save OK [20:02:47]Clear old archive folders... [20:02:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:02:47]tlvbuf is 00F24720 [20:02:47]SAM_PROTO_ClearQueue [20:02:47]wFMCommunicate request_size=4 [20:02:47]MH_SAM_APDU [20:02:47]CAPDU: 80 09 00 00 [20:02:47]Write to MH i2c: E2 08 00 5B 12 80 09 00 00 00 00 00 00 DF [20:02:47]Write i2c OK [20:02:47]MH_I2C_Read... [20:02:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:02:47]Read from MH i2c: E2 [20:02:47]MH_I2C_Read... [20:02:47]Read from MH i2c: E2 03 00 [20:02:47]MH_I2C_Read... [20:02:47]Read from MH i2c: E2 03 00 5B 12 00 90 00 E1 [20:02:47]RAPDU: 90 00 [20:02:47]wFMCommunicate OK [20:02:47]SAM_PROTO_ClearQueue done [20:02:47]KKMCreateOFDPacket [20:02:47]OFDProtocolAddRootSTLVToBuf [20:02:47]FM_MakeSignedData [20:02:47]FM_MakeSignedData [20:02:47]SAM_PROTO_SignData [20:02:47]wFMCommunicate request_size=4 [20:02:47]MH_SAM_APDU [20:02:47]CAPDU: 80 0D 01 02 [20:02:47]Write to MH i2c: E2 08 00 5C 12 80 0D 01 02 00 00 00 00 E7 [20:02:47]Write i2c OK [20:02:47]MH_I2C_Read... [20:02:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:02:47]Read from MH i2c: E2 [20:02:47]MH_I2C_Read... [20:02:47]Read from MH i2c: E2 03 00 [20:02:47]MH_I2C_Read... [20:02:47]Read from MH i2c: E2 03 00 5C 12 00 90 00 E2 [20:02:47]RAPDU: 90 00 [20:02:47]wFMCommunicate OK [20:02:47]wFMCommunicate request_size=255 [20:02:47]MH_SAM_APDU [20:02: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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 01 00 00 F4 03 04 00 E6 61 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A5 0F 01 00 35 04 06 00 95 82 23 F2 [20:02:47]Write to MH i2c: E2 02 01 5D 12 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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 01 00 00 F4 03 04 00 E6 61 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A5 0F 01 00 35 04 06 00 95 82 23 F2 00 00 C1 [20:02:47]Write i2c OK [20:02:47]MH_I2C_Read... [20:02:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:02:47]Read from MH i2c: E2 [20:02:47]MH_I2C_Read... [20:02:47]Read from MH i2c: E2 03 00 [20:02:47]MH_I2C_Read... [20:02:47]Read from MH i2c: E2 03 00 5D 12 00 90 00 E3 [20:02:47]RAPDU: 90 00 [20:02:47]wFMCommunicate OK [20:02:47]wFMCommunicate request_size=7 [20:02:47]MH_SAM_APDU [20:02:47]CAPDU: 80 0D 02 02 02 F3 C8 [20:02:47]Write to MH i2c: E2 0A 00 5E 12 80 0D 02 02 02 00 F3 C8 00 00 A9 [20:02:47]Write i2c OK [20:02:47]MH_I2C_Read... [20:02:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:02:47]Read from MH i2c: E2 [20:02:47]MH_I2C_Read... [20:02:47]Read from MH i2c: E2 03 00 [20:02:47]MH_I2C_Read... [20:02:47]Read from MH i2c: E2 03 00 5E 12 00 90 00 E4 [20:02:47]RAPDU: 90 00 [20:02:47]wFMCommunicate OK [20:02:47]wFMCommunicate request_size=4 [20:02:47]MH_SAM_APDU [20:02:47]CAPDU: 80 0D 03 02 [20:02:47]Write to MH i2c: E2 08 00 5F 12 80 0D 03 02 00 00 00 00 EC [20:02:47]Write i2c OK [20:02:47]MH_I2C_Read... [20:02:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:02:47]Read from MH i2c: E2 [20:02:47]MH_I2C_Read... [20:02:47]Read from MH i2c: E2 0B 00 [20:02:47]MH_I2C_Read... [20:02:47]Read from MH i2c: E2 0B 00 5F 12 00 22 F5 1E 67 94 F7 A8 F0 90 00 AC [20:02:47]RAPDU: 22 F5 1E 67 94 F7 A8 F0 90 00 [20:02:47]wFMCommunicate OK [20:02:47]SAM_PROTO_SignData done [20:02:47]FM_MakeSignedData done [20:02:47]CreateOFDProtocolMessage [20:02:47]wFMCommunicate request_size=4 [20:02:47]MH_SAM_APDU [20:02:47]CAPDU: 80 11 00 00 [20:02:47]Write to MH i2c: E2 08 00 60 12 80 11 00 00 00 00 00 00 EC [20:02:47]Write i2c OK [20:02:47]MH_I2C_Read... [20:02:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:02:47]Read from MH i2c: E2 [20:02:47]MH_I2C_Read... [20:02:47]Read from MH i2c: E2 17 00 [20:02:47]MH_I2C_Read... [20:02:47]Read from MH i2c: E2 17 00 60 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3E [20:02:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:02:47]wFMCommunicate OK [20:02:47]CreateOFDProtocolMessage done [20:02:47]OFDSenderStorePacket 69541 [20:02:47]StoreOFDPacket docnum=69541 [20:02:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 6E 88 04 01 9C A1 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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 01 00 00 F4 03 04 00 E6 61 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A5 0F 01 00 35 04 06 00 95 82 23 F2 F3 C8 22 F5 1E 67 94 F7 A8 F0 [20:02:47]CheckFolder [20:02:47]dirname=/storage/ofd_packets [20:02:47]CheckFolder done [20:02:47]ProducePacketName [20:02:47]name=ofd_packets/00069541 [20:02:47]NVStorageSaveData ofd_packets/00069541 [20:02:47]File name is /storage/ofd_packets/00069541 [20:02:47]Write 298 bytes [20:02:47]NVStorageSaveData done [20:02:47]OFDSenderStorePacket done [20:02:47]KKMCreateOFDPacket done [20:02:47]NVStorageSaveData kkm_last_timestamp [20:02:47]File name is /storage/kkm_last_timestamp [20:02:47]Write 4 bytes [20:02:47]NVStorageSaveData done [20:02:47]ExternCall_PrintAddStr [20:02:47]wPrintStart [20:02:47]Write to MH i2c: 01 00 00 61 12 73 [20:02:47]Write i2c OK [20:02:47]MH_I2C_Read... [20:02:47]Read from MH i2c: 01 [20:02:47]MH_I2C_Read... [20:02:47]Read from MH i2c: 01 07 00 [20:02:47]MH_I2C_Read... [20:02:47]Read from MH i2c: 01 07 00 61 12 00 00 00 00 00 FF 0F 88 [20:02:47]RasterBufferAndPrint [20:02:47]line Счет N : (1)2885281 [20:02:47]line ИНН: 02508201610067 [20:02:47]line Контрольно-Кассовый Чек [20:02:47]line ПРОДАЖА [20:02:47]line ТРК (МРК, ГНК) : 61 [20:02:47]line Товар: 2710194210 [20:02:47]line ДТ-К-5 [20:02:47]line 106.390 * 75.20 [20:02:47]line = 8000.53 [20:02:47]line НДС 12% НСП 1% [20:02:47]line > о реализуемом товаре [20:02:47]line ОКРУГЛЕНИЕ: -0.53 [20:02:47]line ИТОГО: 8000.00 [20:02:47]line Внесено: 8000.00 [20:02:47]line СДАЧА: 0.00 [20:02:47]line НСП 1% : 70.80 [20:02:47]line НДС 12% : 849.61 [20:02:47]line Наличными: 8000.00 [20:02:47]line Безнал.: 0.00 [20:02:47]line Место: АЗС № 85 "Партнер Нефть" [20:02:47]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:02:47]line СНО: Общий режим [20:02:47]line Чек 386 20.10.2024 20:02 [20:02:47]line Смена: 193 ФФД: 1.0 [20:02:47]line ЗНМ: 0300000167 [20:02:47]line РНМ: 0000000000156251 [20:02:47]line Версия ККМ: v1.0 [20:02:47]line [20:02:47]line Дисконтная программа [20:02:47]line ДТ [20:02:47]line номер 85 [20:02:47]line сэкономлено 106.39 сом [20:02:47]line ФМ: 0000000000963346 [20:02:47]line ФД: 69541 [20:02:48]line ФПД: 164386181411784 [20:02:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T200246&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69541&fm=164386181411784&tin=02508201610067®Number=0000000000156251&sum=800000 [20:02:48]OFD Sender: Processing packet 69541 [packets to send 18, broken 17] [20:02:48]ProducePacketName [20:02:48]name=ofd_packets/00069541 [20:02:48]OFD Sender: To server: pG, [20:02:48]CommunicateWithHost lk.salyk.kg:30040 [20:02:48]ConnectInit lk.salyk.kg [20:02:48]written 0, free lines is 4095 [20:02:48]Connected sock=7 [20:02:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 6E 88 04 01 9C A1 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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 01 00 00 F4 03 04 00 E6 61 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A5 0F 01 00 35 04 06 00 95 82 23 F2 F3 C8 22 F5 1E 67 94 F7 A8 F0 [20:02:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 AB 84 47 00 50 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A5 0F 01 00 F4 03 04 00 8C 0B 15 67 B6 04 01 00 00 73 32 B3 9F 21 76 33 E4 [20:02:48]CommunicateWithHost err = 0 [20:02:48]CheckOFDResponse [20:02:48]1017 (14) - 77093643461234 [20:02:48]1041 (16) - 0000000000963346 [20:02:48]1040 (4) - 69541 [20:02:48]1012 (4) - 20.10.2024 13:54 [20:02:48]1206 (1) - 0 [20:02:48]OFD Sender: Remove packet 69541 [20:02:48]ProducePacketName [20:02:48]name=ofd_packets/00069541 [20:02:48]NVStorageDeleteData [20:02:48]Write to MH i2c: 01 00 00 91 12 A3 [20:02:48]Write i2c OK [20:02:48]MH_I2C_Read... [20:02:48]Read from MH i2c: 01 [20:02:48]MH_I2C_Read... [20:02:48]Read from MH i2c: 01 07 00 [20:02:48]MH_I2C_Read... [20:02:48]Read from MH i2c: 01 07 00 91 12 00 00 00 00 00 B1 0C 67 [20:02:48]RasterBufferAndPrint [20:02:48]line [20:02:48]line [20:02:48]line [20:02:48]line [20:02:48]line [20:02:48]written 0, free lines is 3256 [20:02:48]MH_Cut [20:02:48]Write to MH i2c: D1 01 00 98 12 01 7C [20:02:48]Write i2c OK [20:02:48]MH_I2C_Read... [20:02:48]Read from MH i2c: D1 [20:02:48]MH_I2C_Read... [20:02:48]Read from MH i2c: D1 01 00 [20:02:48]MH_I2C_Read... [20:02:48]Read from MH i2c: D1 01 00 98 12 00 7B [20:02:48]Write to MH i2c: 01 00 00 99 12 AB [20:02:48]Write i2c OK [20:02:48]MH_I2C_Read... [20:02:48]OFD Sender: No OFD packet to send [20:02:49]*** Cut start [20:02:49]*** Partial cut [20:02:49]*** CUTSNS_PIN = 1 [20:02:49]*** CUTSNS_PIN = 0 [20:02:49]*** Brake cut motor [20:02:50]Read from MH i2c: 01 [20:02:50]MH_I2C_Read... [20:02:50]*** Stop cut motor [20:02:50]*** Cut end [20:02:50]Read from MH i2c: 01 07 00 [20:02:50]MH_I2C_Read... [20:02:50]Read from MH i2c: 01 07 00 99 12 00 00 00 00 00 FF 0F C0 [20:02:50]process_action close_receipt done [20:02:50]requested_data is exist [20:02:50]produce_requested_data [20:02:50]requested_item fm.sn is exist - process it [20:02:50]wFMCommunicate request_size=4 [20:02:50]MH_SAM_APDU [20:02:50]CAPDU: 80 11 00 00 [20:02:50]Write to MH i2c: E2 08 00 9A 12 80 11 00 00 00 00 00 00 26 [20:02:50]Write i2c OK [20:02:50]MH_I2C_Read... [20:02:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:02:50]Read from MH i2c: E2 [20:02:50]MH_I2C_Read... [20:02:50]Read from MH i2c: E2 17 00 [20:02:50]MH_I2C_Read... [20:02:50]Read from MH i2c: E2 17 00 9A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 78 [20:02:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:02:50]wFMCommunicate OK [20:02:50]requested_item fd.num is exist - process it [20:02:50]SAM_PROTO_GetFieldsCounters [20:02:50]wFMCommunicate request_size=4 [20:02:50]MH_SAM_APDU [20:02:50]CAPDU: 80 13 00 00 [20:02:50]Write to MH i2c: E2 08 00 9B 12 80 13 00 00 00 00 00 00 29 [20:02:50]Write i2c OK [20:02:50]MH_I2C_Read... [20:02:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:02:50]Read from MH i2c: E2 [20:02:50]MH_I2C_Read... [20:02:50]Read from MH i2c: E2 62 00 [20:02:50]MH_I2C_Read... [20:02:50]Read from MH i2c: E2 62 00 9B 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A5 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 82 01 00 00 5E 04 04 00 82 01 00 00 57 04 04 00 83 01 00 00 19 04 04 00 00 00 00 00 90 00 43 [20:02:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A5 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 82 01 00 00 5E 04 04 00 82 01 00 00 57 04 04 00 83 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:02:50]wFMCommunicate OK [20:02:50]SAM_PROTO_GetFieldsCounters done [20:02:50]requested_item shift.num is exist - process it [20:02:50]requested_item shift.opened is exist - process it [20:02:50]req_shift_opened [20:02:50]FM_GetShiftState [20:02:50]SAM_PROTO_GetShiftState [20:02:50]wFMCommunicate request_size=4 [20:02:50]MH_SAM_APDU [20:02:50]CAPDU: 80 13 01 00 [20:02:50]Write to MH i2c: E2 08 00 9C 12 80 13 01 00 00 00 00 00 2B [20:02:50]Write i2c OK [20:02:50]MH_I2C_Read... [20:02:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:02:50]Read from MH i2c: E2 [20:02:50]MH_I2C_Read... [20:02:50]Read from MH i2c: E2 0E 00 [20:02:50]MH_I2C_Read... [20:02:50]Read from MH i2c: E2 0E 00 9C 12 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 31 [20:02:50]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:02:50]wFMCommunicate OK [20:02:50]SAM_PROTO_GetShiftState done [20:02:50]FM_GetShiftState done [20:02:50]req_shift_opened done [20:02:50]requested_item shift.open_date is exist - process it [20:02:50]req_shift_open_date [20:02:50]req_shift_open_date done [20:02:50]produce_requested_data done [20:02:50]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69541,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [20:02:50]process_action_free close_receipt [20:02:50]json_value_free [20:02:50]json_value_free done [20:02:50]process_json_proto returns [20:02:50]Send response to host [20:02:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69541,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [20:02:50]free response buf [20:02:50]execute_script done [20:02:50]execute_script returns [20:02:50]free content buf [20:02:50]Sock 9.Close socket [20:02:50]Sock 9.Thread stoped [20:02:53]OFD Sender: No OFD packet to send [20:02:59]OFD Sender: No OFD packet to send [20:03:04]OFD Sender: No OFD packet to send [20:03:09]OFD Sender: No OFD packet to send [20:03:14]OFD Sender: No OFD packet to send [20:03:19]OFD Sender: No OFD packet to send [20:03:24]OFD Sender: No OFD packet to send [20:03:29]OFD Sender: No OFD packet to send [20:03:34]OFD Sender: No OFD packet to send [20:03:39]OFD Sender: No OFD packet to send [20:03:44]OFD Sender: No OFD packet to send [20:03:49]OFD Sender: No OFD packet to send [20:03:54]OFD Sender: No OFD packet to send [20:03:59]OFD Sender: No OFD packet to send [20:04:04]OFD Sender: No OFD packet to send [20:04:09]OFD Sender: No OFD packet to send [20:04:14]OFD Sender: No OFD packet to send [20:04:19]OFD Sender: No OFD packet to send [20:04:24]OFD Sender: No OFD packet to send [20:04:29]OFD Sender: No OFD packet to send [20:04:34]OFD Sender: No OFD packet to send [20:04:39]OFD Sender: No OFD packet to send [20:04:44]OFD Sender: No OFD packet to send [20:04:49]OFD Sender: No OFD packet to send [20:04:54]OFD Sender: No OFD packet to send [20:04:59]OFD Sender: No OFD packet to send [20:05:04]OFD Sender: No OFD packet to send [20:05:09]OFD Sender: No OFD packet to send [20:05:14]OFD Sender: No OFD packet to send [20:05:19]OFD Sender: No OFD packet to send [20:05:24]OFD Sender: No OFD packet to send [20:05:29]accept exits with 10 [20:05:29]New connection [20:05:29]New thread 3066654052 created [20:05:29]Thread 3066797412 joined [20:05:29]Waiting for new connection... [20:05:29] Sock 10.Parse request [20:05:29]Sock 10.Check first char [20:05:29]Sock 10.First char is OK [20:05:29]request: POST /json_proto HTTP/1.0 [20:05:29]Method: POST [20:05:29]URL: /json_proto [20:05:29]Method is POST - this is cgi request [20:05:29]url: /json_proto [20:05:29]query_string will be loaded in cgi processing [20:05:29]execute_cgi json_proto POST (null) [20:05:29]execute_cgi path=json_proto method=POST [20:05:29]POST find Content-Length [20:05:29]Host: 172.17.50.3:8080 [20:05:29]Content-Length: 980 [20:05:29]Content-Type: application/json [20:05:29] [20:05:29]POST finish read [20:05:29]Found Content-Length = 980 [20:05:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 106.390, "sum" : 8000.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 106.39 \u0441\u043E\u043C", "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:29]execute_script... [20:05:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 106.390, "sum" : 8000.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 106.39 \u0441\u043E\u043C", "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:29]POST & json_proto [20:05:29]process_json_proto [20:05:29]json parsed OK: [20:05:29]protocol is kg_v1.0 [20:05:29]action value=close_receipt [20:05:29]process_action close_receipt [20:05:29]cmd_close_receipt [20:05:29]MH_GetDate [20:05:29]Write to MH i2c: F0 00 00 9D 12 9E [20:05:29]Write i2c OK [20:05:29]MH_I2C_Read... [20:05:29]Read from MH i2c: F0 [20:05:29]MH_I2C_Read... [20:05:29]Read from MH i2c: F0 09 00 [20:05:29]MH_I2C_Read... [20:05:29]Read from MH i2c: F0 09 00 9D 12 00 89 62 15 67 6B 98 1E 66 95 [20:05:29]GetLastDocTimeStamp 1729454566 [20:05:29]current date 1729454729 [20:05:29]FM_GetShiftState [20:05:29]SAM_PROTO_GetShiftState [20:05:29]wFMCommunicate request_size=4 [20:05:29]MH_SAM_APDU [20:05:29]CAPDU: 80 13 01 00 [20:05:29]Write to MH i2c: E2 08 00 9E 12 80 13 01 00 00 00 00 00 2D [20:05:29]Write i2c OK [20:05:29]MH_I2C_Read... [20:05:29]OFD Sender: No OFD packet to send [20:05:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:29]Read from MH i2c: E2 [20:05:29]MH_I2C_Read... [20:05:29]Read from MH i2c: E2 0E 00 [20:05:29]MH_I2C_Read... [20:05:29]Read from MH i2c: E2 0E 00 9E 12 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 33 [20:05:29]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:05:29]wFMCommunicate OK [20:05:29]SAM_PROTO_GetShiftState done [20:05:29]FM_GetShiftState done [20:05:29]opened in 1729383220 [20:05:29]opened+sec_in_day 1729469620 [20:05:29]quantity*price = 800052 [20:05:29]sum+1 = 800054 [20:05:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 8000.00 Внесено: 8000.00 СДАЧА: 0.00 НСП 1% : 70.80 НДС 12% : 849.61 Наличными: 8000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 387 20.10.2024 20:05 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Дисконтная программа ДТ номер 85 сэкономлено 106.39 сом ФМ: 0000000000963346 ФД: 69542 ФПД: 244085885290001 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T200529&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69542&fm=244085885290001&tin=02508201610067®Number=0000000000156251&sum=800000 [20:05:30]StoreToDocumentArchive [20:05:30]shift 193 fd 69542 [20:05:30]save to /storage/0193/doc_00069542 [20:05:30]save last doc name /storage/0193/doc_00069542 to /storage/kkm_last_doc_name [20:05:30]save OK [20:05:30]Clear old archive folders... [20:05:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:05:30]tlvbuf is 00F72220 [20:05:30]SAM_PROTO_ClearQueue [20:05:30]wFMCommunicate request_size=4 [20:05:30]MH_SAM_APDU [20:05:30]CAPDU: 80 09 00 00 [20:05:30]Write to MH i2c: E2 08 00 AB 12 80 09 00 00 00 00 00 00 2F [20:05:30]Write i2c OK [20:05:30]MH_I2C_Read... [20:05:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:05:30]Read from MH i2c: E2 [20:05:30]MH_I2C_Read... [20:05:30]Read from MH i2c: E2 03 00 [20:05:30]MH_I2C_Read... [20:05:30]Read from MH i2c: E2 03 00 AB 12 00 90 00 31 [20:05:30]RAPDU: 90 00 [20:05:30]wFMCommunicate OK [20:05:30]SAM_PROTO_ClearQueue done [20:05:30]KKMCreateOFDPacket [20:05:30]OFDProtocolAddRootSTLVToBuf [20:05:30]FM_MakeSignedData [20:05:30]FM_MakeSignedData [20:05:30]SAM_PROTO_SignData [20:05:30]wFMCommunicate request_size=4 [20:05:30]MH_SAM_APDU [20:05:30]CAPDU: 80 0D 01 02 [20:05:30]Write to MH i2c: E2 08 00 AC 12 80 0D 01 02 00 00 00 00 37 [20:05:30]Write i2c OK [20:05:30]MH_I2C_Read... [20:05:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:05:30]Read from MH i2c: E2 [20:05:30]MH_I2C_Read... [20:05:30]Read from MH i2c: E2 03 00 [20:05:30]MH_I2C_Read... [20:05:30]Read from MH i2c: E2 03 00 AC 12 00 90 00 32 [20:05:30]RAPDU: 90 00 [20:05:30]wFMCommunicate OK [20:05:30]wFMCommunicate request_size=255 [20:05:30]MH_SAM_APDU [20:05:30]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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 01 00 00 F4 03 04 00 89 62 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A6 0F 01 00 35 04 06 00 DD FE AC 7C [20:05:30]Write to MH i2c: E2 02 01 AD 12 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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 01 00 00 F4 03 04 00 89 62 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A6 0F 01 00 35 04 06 00 DD FE AC 7C 00 00 8E [20:05:30]Write i2c OK [20:05:30]MH_I2C_Read... [20:05:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:30]Read from MH i2c: E2 [20:05:30]MH_I2C_Read... [20:05:30]Read from MH i2c: E2 03 00 [20:05:30]MH_I2C_Read... [20:05:30]Read from MH i2c: E2 03 00 AD 12 00 90 00 33 [20:05:30]RAPDU: 90 00 [20:05:30]wFMCommunicate OK [20:05:30]wFMCommunicate request_size=7 [20:05:30]MH_SAM_APDU [20:05:30]CAPDU: 80 0D 02 02 02 C6 11 [20:05:30]Write to MH i2c: E2 0A 00 AE 12 80 0D 02 02 02 00 C6 11 00 00 15 [20:05:30]Write i2c OK [20:05:30]MH_I2C_Read... [20:05:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:30]Read from MH i2c: E2 [20:05:30]MH_I2C_Read... [20:05:30]Read from MH i2c: E2 03 00 [20:05:30]MH_I2C_Read... [20:05:30]Read from MH i2c: E2 03 00 AE 12 00 90 00 34 [20:05:30]RAPDU: 90 00 [20:05:30]wFMCommunicate OK [20:05:30]wFMCommunicate request_size=4 [20:05:30]MH_SAM_APDU [20:05:30]CAPDU: 80 0D 03 02 [20:05:30]Write to MH i2c: E2 08 00 AF 12 80 0D 03 02 00 00 00 00 3C [20:05:30]Write i2c OK [20:05:30]MH_I2C_Read... [20:05:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:05:30]Read from MH i2c: E2 [20:05:30]MH_I2C_Read... [20:05:30]Read from MH i2c: E2 0B 00 [20:05:30]MH_I2C_Read... [20:05:30]Read from MH i2c: E2 0B 00 AF 12 00 4B 06 6B 17 24 07 30 15 90 00 80 [20:05:30]RAPDU: 4B 06 6B 17 24 07 30 15 90 00 [20:05:30]wFMCommunicate OK [20:05:30]SAM_PROTO_SignData done [20:05:30]FM_MakeSignedData done [20:05:30]CreateOFDProtocolMessage [20:05:30]wFMCommunicate request_size=4 [20:05:30]MH_SAM_APDU [20:05:30]CAPDU: 80 11 00 00 [20:05:30]Write to MH i2c: E2 08 00 B0 12 80 11 00 00 00 00 00 00 3C [20:05:30]Write i2c OK [20:05:30]MH_I2C_Read... [20:05:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:30]Read from MH i2c: E2 [20:05:30]MH_I2C_Read... [20:05:30]Read from MH i2c: E2 17 00 [20:05:30]MH_I2C_Read... [20:05:30]Read from MH i2c: E2 17 00 B0 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8E [20:05:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:05:30]wFMCommunicate OK [20:05:30]CreateOFDProtocolMessage done [20:05:30]OFDSenderStorePacket 69542 [20:05:30]StoreOFDPacket docnum=69542 [20:05:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 F1 55 04 01 0E 9B 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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 01 00 00 F4 03 04 00 89 62 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A6 0F 01 00 35 04 06 00 DD FE AC 7C C6 11 4B 06 6B 17 24 07 30 15 [20:05:30]CheckFolder [20:05:30]dirname=/storage/ofd_packets [20:05:30]CheckFolder done [20:05:30]ProducePacketName [20:05:30]name=ofd_packets/00069542 [20:05:30]NVStorageSaveData ofd_packets/00069542 [20:05:30]File name is /storage/ofd_packets/00069542 [20:05:30]Write 298 bytes [20:05:30]NVStorageSaveData done [20:05:30]OFDSenderStorePacket done [20:05:30]KKMCreateOFDPacket done [20:05:30]NVStorageSaveData kkm_last_timestamp [20:05:30]File name is /storage/kkm_last_timestamp [20:05:30]Write 4 bytes [20:05:30]NVStorageSaveData done [20:05:30]ExternCall_PrintAddStr [20:05:30]wPrintStart [20:05:30]Write to MH i2c: 01 00 00 B1 12 C3 [20:05:30]Write i2c OK [20:05:30]MH_I2C_Read... [20:05:30]Read from MH i2c: 01 [20:05:30]MH_I2C_Read... [20:05:30]Read from MH i2c: 01 07 00 [20:05:30]MH_I2C_Read... [20:05:30]Read from MH i2c: 01 07 00 B1 12 00 00 00 00 00 FF 0F D8 [20:05:30]RasterBufferAndPrint [20:05:30]line Счет N : (1)2885282 [20:05:30]line ИНН: 02508201610067 [20:05:30]line Контрольно-Кассовый Чек [20:05:30]line ПРОДАЖА [20:05:30]line ТРК (МРК, ГНК) : 51 [20:05:30]line Товар: 2710194210 [20:05:30]line ДТ-К-5 [20:05:30]line 106.390 * 75.20 [20:05:30]line = 8000.53 [20:05:30]line НДС 12% НСП 1% [20:05:30]line > о реализуемом товаре [20:05:30]line ОКРУГЛЕНИЕ: -0.53 [20:05:30]line ИТОГО: 8000.00 [20:05:30]line Внесено: 8000.00 [20:05:30]line СДАЧА: 0.00 [20:05:30]line НСП 1% : 70.80 [20:05:30]line НДС 12% : 849.61 [20:05:30]line Наличными: 8000.00 [20:05:30]line Безнал.: 0.00 [20:05:30]line Место: АЗС № 85 "Партнер Нефть" [20:05:30]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:05:30]line СНО: Общий режим [20:05:30]line Чек 387 20.10.2024 20:05 [20:05:30]line Смена: 193 ФФД: 1.0 [20:05:30]line ЗНМ: 0300000167 [20:05:30]line РНМ: 0000000000156251 [20:05:30]line Версия ККМ: v1.0 [20:05:30]line [20:05:30]line Дисконтная программа [20:05:30]line ДТ [20:05:31]line номер 85 [20:05:31]line сэкономлено 106.39 сом [20:05:31]line ФМ: 0000000000963346 [20:05:31]line ФД: 69542 [20:05:31]line ФПД: 244085885290001 [20:05:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T200529&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69542&fm=244085885290001&tin=02508201610067®Number=0000000000156251&sum=800000 [20:05:31]OFD Sender: Processing packet 69542 [packets to send 18, broken 17] [20:05:31]ProducePacketName [20:05:31]name=ofd_packets/00069542 [20:05:31]OFD Sender: To server: pG, [20:05:31]CommunicateWithHost lk.salyk.kg:30040 [20:05:31]ConnectInit lk.salyk.kg [20:05:31]written 0, free lines is 4095 [20:05:31]Connected sock=9 [20:05:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 F1 55 04 01 0E 9B 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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 01 00 00 F4 03 04 00 89 62 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A6 0F 01 00 35 04 06 00 DD FE AC 7C C6 11 4B 06 6B 17 24 07 30 15 [20:05:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 3A 67 47 00 E1 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A6 0F 01 00 F4 03 04 00 2F 0C 15 67 B6 04 01 00 00 7A 8C 52 58 AA 1B 74 56 [20:05:31]CommunicateWithHost err = 0 [20:05:31]CheckOFDResponse [20:05:31]1017 (14) - 77093643461234 [20:05:31]1041 (16) - 0000000000963346 [20:05:31]1040 (4) - 69542 [20:05:31]1012 (4) - 20.10.2024 13:57 [20:05:31]1206 (1) - 0 [20:05:31]OFD Sender: Remove packet 69542 [20:05:31]ProducePacketName [20:05:31]name=ofd_packets/00069542 [20:05:31]NVStorageDeleteData [20:05:31]Write to MH i2c: 01 00 00 E1 12 F3 [20:05:31]Write i2c OK [20:05:31]MH_I2C_Read... [20:05:31]Read from MH i2c: 01 [20:05:31]MH_I2C_Read... [20:05:31]Read from MH i2c: 01 07 00 [20:05:31]MH_I2C_Read... [20:05:31]Read from MH i2c: 01 07 00 E1 12 00 00 00 00 00 A6 0C AC [20:05:31]RasterBufferAndPrint [20:05:31]line [20:05:31]line [20:05:31]line [20:05:31]line [20:05:31]line [20:05:31]written 0, free lines is 3243 [20:05:31]MH_Cut [20:05:31]Write to MH i2c: D1 01 00 E8 12 01 CC [20:05:31]Write i2c OK [20:05:31]MH_I2C_Read... [20:05:31]Read from MH i2c: D1 [20:05:31]MH_I2C_Read... [20:05:31]Read from MH i2c: D1 01 00 [20:05:31]MH_I2C_Read... [20:05:31]Read from MH i2c: D1 01 00 E8 12 00 CB [20:05:31]Write to MH i2c: 01 00 00 E9 12 FB [20:05:31]Write i2c OK [20:05:31]MH_I2C_Read... [20:05:31]OFD Sender: No OFD packet to send [20:05:32]*** Cut start [20:05:32]*** Partial cut [20:05:32]*** CUTSNS_PIN = 1 [20:05:32]*** CUTSNS_PIN = 0 [20:05:32]*** Brake cut motor [20:05:32]Read from MH i2c: 01 [20:05:32]MH_I2C_Read... [20:05:32]*** Stop cut motor [20:05:32]*** Cut end [20:05:32]Read from MH i2c: 01 07 00 [20:05:32]MH_I2C_Read... [20:05:32]Read from MH i2c: 01 07 00 E9 12 00 00 00 00 00 FF 0F 10 [20:05:32]process_action close_receipt done [20:05:32]requested_data is exist [20:05:32]produce_requested_data [20:05:32]requested_item fm.sn is exist - process it [20:05:32]wFMCommunicate request_size=4 [20:05:32]MH_SAM_APDU [20:05:32]CAPDU: 80 11 00 00 [20:05:32]Write to MH i2c: E2 08 00 EA 12 80 11 00 00 00 00 00 00 76 [20:05:32]Write i2c OK [20:05:32]MH_I2C_Read... [20:05:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:33]Read from MH i2c: E2 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 17 00 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 17 00 EA 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C8 [20:05:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:05:33]wFMCommunicate OK [20:05:33]requested_item fd.num is exist - process it [20:05:33]SAM_PROTO_GetFieldsCounters [20:05:33]wFMCommunicate request_size=4 [20:05:33]MH_SAM_APDU [20:05:33]CAPDU: 80 13 00 00 [20:05:33]Write to MH i2c: E2 08 00 EB 12 80 13 00 00 00 00 00 00 79 [20:05:33]Write i2c OK [20:05:33]MH_I2C_Read... [20:05:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:05:33]Read from MH i2c: E2 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 62 00 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 62 00 EB 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A6 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 83 01 00 00 5E 04 04 00 83 01 00 00 57 04 04 00 84 01 00 00 19 04 04 00 00 00 00 00 90 00 97 [20:05:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A6 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 83 01 00 00 5E 04 04 00 83 01 00 00 57 04 04 00 84 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:05:33]wFMCommunicate OK [20:05:33]SAM_PROTO_GetFieldsCounters done [20:05:33]requested_item shift.num is exist - process it [20:05:33]requested_item shift.opened is exist - process it [20:05:33]req_shift_opened [20:05:33]FM_GetShiftState [20:05:33]SAM_PROTO_GetShiftState [20:05:33]wFMCommunicate request_size=4 [20:05:33]MH_SAM_APDU [20:05:33]CAPDU: 80 13 01 00 [20:05:33]Write to MH i2c: E2 08 00 EC 12 80 13 01 00 00 00 00 00 7B [20:05:33]Write i2c OK [20:05:33]MH_I2C_Read... [20:05:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:33]Read from MH i2c: E2 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 0E 00 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 0E 00 EC 12 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 81 [20:05:33]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:05:33]wFMCommunicate OK [20:05:33]SAM_PROTO_GetShiftState done [20:05:33]FM_GetShiftState done [20:05:33]req_shift_opened done [20:05:33]requested_item shift.open_date is exist - process it [20:05:33]req_shift_open_date [20:05:33]req_shift_open_date done [20:05:33]produce_requested_data done [20:05:33]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69542,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [20:05:33]process_action_free close_receipt [20:05:33]json_value_free [20:05:33]json_value_free done [20:05:33]process_json_proto returns [20:05:33]Send response to host [20:05:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69542,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [20:05:33]free response buf [20:05:33]execute_script done [20:05:33]execute_script returns [20:05:33]free content buf [20:05:33]Sock 10.Close socket [20:05:33]Sock 10.Thread stoped [20:05:36]OFD Sender: No OFD packet to send [20:05:41]OFD Sender: No OFD packet to send [20:05:46]OFD Sender: No OFD packet to send [20:05:51]OFD Sender: No OFD packet to send [20:05:56]OFD Sender: No OFD packet to send [20:05:59]accept exits with 7 [20:05:59]New connection [20:05:59]New thread 3066797412 created [20:05:59]Thread 3066654052 joined [20:05:59]Waiting for new connection... [20:05:59] Sock 7.Parse request [20:05:59]Sock 7.Check first char [20:05:59]Sock 7.First char is OK [20:05:59]request: POST /json_proto HTTP/1.0 [20:05:59]Method: POST [20:05:59]URL: /json_proto [20:05:59]Method is POST - this is cgi request [20:05:59]url: /json_proto [20:05:59]query_string will be loaded in cgi processing [20:05:59]execute_cgi json_proto POST (null) [20:05:59]execute_cgi path=json_proto method=POST [20:05:59]POST find Content-Length [20:05:59]Host: 172.17.50.3:8080 [20:05:59]Content-Length: 980 [20:05:59]Content-Type: application/json [20:05:59] [20:05:59]POST finish read [20:05:59]Found Content-Length = 980 [20:05:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 106.390, "sum" : 8000.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 106.39 \u0441\u043E\u043C", "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:59]execute_script... [20:05: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)2885283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 106.390, "sum" : 8000.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 106.39 \u0441\u043E\u043C", "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:59]POST & json_proto [20:05:59]process_json_proto [20:05:59]json parsed OK: [20:05:59]protocol is kg_v1.0 [20:05:59]action value=close_receipt [20:05:59]process_action close_receipt [20:05:59]cmd_close_receipt [20:05:59]MH_GetDate [20:05:59]Write to MH i2c: F0 00 00 ED 12 EE [20:05:59]Write i2c OK [20:05:59]MH_I2C_Read... [20:05:59]Read from MH i2c: F0 [20:05:59]MH_I2C_Read... [20:05:59]Read from MH i2c: F0 09 00 [20:05:59]MH_I2C_Read... [20:05:59]Read from MH i2c: F0 09 00 ED 12 00 A8 62 15 67 6B 98 1E 66 04 [20:05:59]GetLastDocTimeStamp 1729454729 [20:05:59]current date 1729454760 [20:05:59]FM_GetShiftState [20:05:59]SAM_PROTO_GetShiftState [20:05:59]wFMCommunicate request_size=4 [20:05:59]MH_SAM_APDU [20:05:59]CAPDU: 80 13 01 00 [20:05:59]Write to MH i2c: E2 08 00 EE 12 80 13 01 00 00 00 00 00 7D [20:05:59]Write i2c OK [20:05:59]MH_I2C_Read... [20:05:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:59]Read from MH i2c: E2 [20:05:59]MH_I2C_Read... [20:05:59]Read from MH i2c: E2 0E 00 [20:05:59]MH_I2C_Read... [20:05:59]Read from MH i2c: E2 0E 00 EE 12 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 83 [20:05:59]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:05:59]wFMCommunicate OK [20:05:59]SAM_PROTO_GetShiftState done [20:05:59]FM_GetShiftState done [20:05:59]opened in 1729383220 [20:05:59]opened+sec_in_day 1729469620 [20:05:59]quantity*price = 800052 [20:05:59]sum+1 = 800054 [20:05:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 8000.00 Внесено: 8000.00 СДАЧА: 0.00 НСП 1% : 70.80 НДС 12% : 849.61 Наличными: 8000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 388 20.10.2024 20:06 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Дисконтная программа ДТ номер 85 сэкономлено 106.39 сом ФМ: 0000000000963346 ФД: 69543 ФПД: 26908847520768 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T200600&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69543&fm=26908847520768&tin=02508201610067®Number=0000000000156251&sum=800000 [20:06:00]StoreToDocumentArchive [20:06:00]shift 193 fd 69543 [20:06:00]save to /storage/0193/doc_00069543 [20:06:00]save last doc name /storage/0193/doc_00069543 to /storage/kkm_last_doc_name [20:06:00]save OK [20:06:00]Clear old archive folders... [20:06:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:06:00]tlvbuf is 00F245B0 [20:06:00]SAM_PROTO_ClearQueue [20:06:00]wFMCommunicate request_size=4 [20:06:00]MH_SAM_APDU [20:06:00]CAPDU: 80 09 00 00 [20:06:00]Write to MH i2c: E2 08 00 FB 12 80 09 00 00 00 00 00 00 7F [20:06:00]Write i2c OK [20:06:00]MH_I2C_Read... [20:06:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:06:00]Read from MH i2c: E2 [20:06:00]MH_I2C_Read... [20:06:00]Read from MH i2c: E2 03 00 [20:06:00]MH_I2C_Read... [20:06:00]Read from MH i2c: E2 03 00 FB 12 00 90 00 81 [20:06:00]RAPDU: 90 00 [20:06:00]wFMCommunicate OK [20:06:00]SAM_PROTO_ClearQueue done [20:06:00]KKMCreateOFDPacket [20:06:00]OFDProtocolAddRootSTLVToBuf [20:06:00]FM_MakeSignedData [20:06:00]FM_MakeSignedData [20:06:00]SAM_PROTO_SignData [20:06:00]wFMCommunicate request_size=4 [20:06:00]MH_SAM_APDU [20:06:00]CAPDU: 80 0D 01 02 [20:06:00]Write to MH i2c: E2 08 00 FC 12 80 0D 01 02 00 00 00 00 87 [20:06:00]Write i2c OK [20:06:00]MH_I2C_Read... [20:06:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:06:00]Read from MH i2c: E2 [20:06:00]MH_I2C_Read... [20:06:00]Read from MH i2c: E2 03 00 [20:06:00]MH_I2C_Read... [20:06:00]Read from MH i2c: E2 03 00 FC 12 00 90 00 82 [20:06:00]RAPDU: 90 00 [20:06:00]wFMCommunicate OK [20:06:00]wFMCommunicate request_size=255 [20:06:00]MH_SAM_APDU [20:06: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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 01 00 00 F4 03 04 00 A8 62 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A7 0F 01 00 35 04 06 00 18 79 34 4C [20:06:00]Write to MH i2c: E2 02 01 FD 12 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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 01 00 00 F4 03 04 00 A8 62 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A7 0F 01 00 35 04 06 00 18 79 34 4C 00 00 0D [20:06:00]Write i2c OK [20:06:00]MH_I2C_Read... [20:06:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:01]Read from MH i2c: E2 [20:06:01]MH_I2C_Read... [20:06:01]Read from MH i2c: E2 03 00 [20:06:01]MH_I2C_Read... [20:06:01]Read from MH i2c: E2 03 00 FD 12 00 90 00 83 [20:06:01]RAPDU: 90 00 [20:06:01]wFMCommunicate OK [20:06:01]wFMCommunicate request_size=7 [20:06:01]MH_SAM_APDU [20:06:01]CAPDU: 80 0D 02 02 02 3C 00 [20:06:01]Write to MH i2c: E2 0A 00 FE 12 80 0D 02 02 02 00 3C 00 00 00 CA [20:06:01]Write i2c OK [20:06:01]MH_I2C_Read... [20:06:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:01]Read from MH i2c: E2 [20:06:01]MH_I2C_Read... [20:06:01]Read from MH i2c: E2 03 00 [20:06:01]MH_I2C_Read... [20:06:01]Read from MH i2c: E2 03 00 FE 12 00 90 00 84 [20:06:01]RAPDU: 90 00 [20:06:01]wFMCommunicate OK [20:06:01]wFMCommunicate request_size=4 [20:06:01]MH_SAM_APDU [20:06:01]CAPDU: 80 0D 03 02 [20:06:01]Write to MH i2c: E2 08 00 FF 12 80 0D 03 02 00 00 00 00 8C [20:06:01]Write i2c OK [20:06:01]MH_I2C_Read... [20:06:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:06:01]Read from MH i2c: E2 [20:06:01]MH_I2C_Read... [20:06:01]Read from MH i2c: E2 0B 00 [20:06:01]MH_I2C_Read... [20:06:01]Read from MH i2c: E2 0B 00 FF 12 00 D0 1D 18 02 8B 75 1F 48 90 00 FB [20:06:01]RAPDU: D0 1D 18 02 8B 75 1F 48 90 00 [20:06:01]wFMCommunicate OK [20:06:01]SAM_PROTO_SignData done [20:06:01]FM_MakeSignedData done [20:06:01]CreateOFDProtocolMessage [20:06:01]wFMCommunicate request_size=4 [20:06:01]MH_SAM_APDU [20:06:01]CAPDU: 80 11 00 00 [20:06:01]Write to MH i2c: E2 08 00 00 13 80 11 00 00 00 00 00 00 8D [20:06:01]Write i2c OK [20:06:01]MH_I2C_Read... [20:06:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:01]Read from MH i2c: E2 [20:06:01]MH_I2C_Read... [20:06:01]Read from MH i2c: E2 17 00 [20:06:01]MH_I2C_Read... [20:06:01]Read from MH i2c: E2 17 00 00 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DF [20:06:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:06:01]wFMCommunicate OK [20:06:01]CreateOFDProtocolMessage done [20:06:01]OFDSenderStorePacket 69543 [20:06:01]StoreOFDPacket docnum=69543 [20:06:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 00 DF 04 01 E4 EE 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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 01 00 00 F4 03 04 00 A8 62 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A7 0F 01 00 35 04 06 00 18 79 34 4C 3C 00 D0 1D 18 02 8B 75 1F 48 [20:06:01]CheckFolder [20:06:01]dirname=/storage/ofd_packets [20:06:01]CheckFolder done [20:06:01]ProducePacketName [20:06:01]name=ofd_packets/00069543 [20:06:01]NVStorageSaveData ofd_packets/00069543 [20:06:01]File name is /storage/ofd_packets/00069543 [20:06:01]Write 298 bytes [20:06:01]NVStorageSaveData done [20:06:01]OFDSenderStorePacket done [20:06:01]KKMCreateOFDPacket done [20:06:01]NVStorageSaveData kkm_last_timestamp [20:06:01]File name is /storage/kkm_last_timestamp [20:06:01]Write 4 bytes [20:06:01]NVStorageSaveData done [20:06:01]ExternCall_PrintAddStr [20:06:01]wPrintStart [20:06:01]Write to MH i2c: 01 00 00 01 13 14 [20:06:01]Write i2c OK [20:06:01]MH_I2C_Read... [20:06:01]Read from MH i2c: 01 [20:06:01]MH_I2C_Read... [20:06:01]Read from MH i2c: 01 07 00 [20:06:01]MH_I2C_Read... [20:06:01]Read from MH i2c: 01 07 00 01 13 00 00 00 00 00 FF 0F 29 [20:06:01]RasterBufferAndPrint [20:06:01]line Счет N : (1)2885283 [20:06:01]line ИНН: 02508201610067 [20:06:01]line Контрольно-Кассовый Чек [20:06:01]line ПРОДАЖА [20:06:01]line ТРК (МРК, ГНК) : 61 [20:06:01]line Товар: 2710194210 [20:06:01]line ДТ-К-5 [20:06:01]line 106.390 * 75.20 [20:06:01]line = 8000.53 [20:06:01]line НДС 12% НСП 1% [20:06:01]line > о реализуемом товаре [20:06:01]line ОКРУГЛЕНИЕ: -0.53 [20:06:01]line ИТОГО: 8000.00 [20:06:01]line Внесено: 8000.00 [20:06:01]line СДАЧА: 0.00 [20:06:01]line НСП 1% : 70.80 [20:06:01]line НДС 12% : 849.61 [20:06:01]line Наличными: 8000.00 [20:06:01]line Безнал.: 0.00 [20:06:01]line Место: АЗС № 85 "Партнер Нефть" [20:06:01]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:06:01]line СНО: Общий режим [20:06:01]line Чек 388 20.10.2024 20:06 [20:06:01]line Смена: 193 ФФД: 1.0 [20:06:01]line ЗНМ: 0300000167 [20:06:01]line РНМ: 0000000000156251 [20:06:01]line Версия ККМ: v1.0 [20:06:01]line [20:06:01]line Дисконтная программа [20:06:01]line ДТ [20:06:01]line номер 85 [20:06:01]line сэкономлено 106.39 сом [20:06:01]line ФМ: 0000000000963346 [20:06:01]line ФД: 69543 [20:06:01]line ФПД: 26908847520768 [20:06:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T200600&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69543&fm=26908847520768&tin=02508201610067®Number=0000000000156251&sum=800000 [20:06:01]OFD Sender: Processing packet 69543 [packets to send 18, broken 17] [20:06:01]ProducePacketName [20:06:01]name=ofd_packets/00069543 [20:06:01]OFD Sender: To server: pG, [20:06:01]CommunicateWithHost lk.salyk.kg:30040 [20:06:01]ConnectInit lk.salyk.kg [20:06:01]written 0, free lines is 4095 [20:06:01]Connected sock=11 [20:06:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 00 DF 04 01 E4 EE 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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 01 00 00 F4 03 04 00 A8 62 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A7 0F 01 00 35 04 06 00 18 79 34 4C 3C 00 D0 1D 18 02 8B 75 1F 48 [20:06:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 43 44 47 00 0F 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A7 0F 01 00 F4 03 04 00 4E 0C 15 67 B6 04 01 00 00 AE 81 C7 46 25 F4 BC 12 [20:06:01]CommunicateWithHost err = 0 [20:06:01]CheckOFDResponse [20:06:01]1017 (14) - 77093643461234 [20:06:01]1041 (16) - 0000000000963346 [20:06:01]1040 (4) - 69543 [20:06:01]1012 (4) - 20.10.2024 13:57 [20:06:01]1206 (1) - 0 [20:06:01]OFD Sender: Remove packet 69543 [20:06:01]ProducePacketName [20:06:01]name=ofd_packets/00069543 [20:06:01]NVStorageDeleteData [20:06:02]Write to MH i2c: 01 00 00 31 13 44 [20:06:02]Write i2c OK [20:06:02]MH_I2C_Read... [20:06:02]Read from MH i2c: 01 [20:06:02]MH_I2C_Read... [20:06:02]Read from MH i2c: 01 07 00 [20:06:02]MH_I2C_Read... [20:06:02]Read from MH i2c: 01 07 00 31 13 00 00 00 00 00 A2 0C F9 [20:06:02]RasterBufferAndPrint [20:06:02]line [20:06:02]line [20:06:02]line [20:06:02]line [20:06:02]line [20:06:02]written 0, free lines is 3240 [20:06:02]MH_Cut [20:06:02]Write to MH i2c: D1 01 00 38 13 01 1D [20:06:02]Write i2c OK [20:06:02]MH_I2C_Read... [20:06:02]Read from MH i2c: D1 [20:06:02]MH_I2C_Read... [20:06:02]Read from MH i2c: D1 01 00 [20:06:02]MH_I2C_Read... [20:06:02]Read from MH i2c: D1 01 00 38 13 00 1C [20:06:02]Write to MH i2c: 01 00 00 39 13 4C [20:06:02]Write i2c OK [20:06:02]MH_I2C_Read... [20:06:02]OFD Sender: No OFD packet to send [20:06:02]*** Cut start [20:06:02]*** Partial cut [20:06:02]*** CUTSNS_PIN = 1 [20:06:02]*** CUTSNS_PIN = 0 [20:06:03]*** Brake cut motor [20:06:03]Read from MH i2c: 01 [20:06:03]MH_I2C_Read... [20:06:03]*** Stop cut motor [20:06:03]*** Cut end [20:06:03]Read from MH i2c: 01 07 00 [20:06:03]MH_I2C_Read... [20:06:03]Read from MH i2c: 01 07 00 39 13 00 00 00 00 00 FF 0F 61 [20:06:03]process_action close_receipt done [20:06:03]requested_data is exist [20:06:03]produce_requested_data [20:06:03]requested_item fm.sn is exist - process it [20:06:03]wFMCommunicate request_size=4 [20:06:03]MH_SAM_APDU [20:06:03]CAPDU: 80 11 00 00 [20:06:03]Write to MH i2c: E2 08 00 3A 13 80 11 00 00 00 00 00 00 C7 [20:06:03]Write i2c OK [20:06:03]MH_I2C_Read... [20:06:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:03]Read from MH i2c: E2 [20:06:03]MH_I2C_Read... [20:06:03]Read from MH i2c: E2 17 00 [20:06:03]MH_I2C_Read... [20:06:03]Read from MH i2c: E2 17 00 3A 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 19 [20:06:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:06:03]wFMCommunicate OK [20:06:03]requested_item fd.num is exist - process it [20:06:03]SAM_PROTO_GetFieldsCounters [20:06:03]wFMCommunicate request_size=4 [20:06:03]MH_SAM_APDU [20:06:03]CAPDU: 80 13 00 00 [20:06:03]Write to MH i2c: E2 08 00 3B 13 80 13 00 00 00 00 00 00 CA [20:06:03]Write i2c OK [20:06:03]MH_I2C_Read... [20:06:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:06:03]Read from MH i2c: E2 [20:06:03]MH_I2C_Read... [20:06:03]Read from MH i2c: E2 62 00 [20:06:03]MH_I2C_Read... [20:06:03]Read from MH i2c: E2 62 00 3B 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A7 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 84 01 00 00 5E 04 04 00 84 01 00 00 57 04 04 00 85 01 00 00 19 04 04 00 00 00 00 00 90 00 EC [20:06:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A7 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 84 01 00 00 5E 04 04 00 84 01 00 00 57 04 04 00 85 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:06:03]wFMCommunicate OK [20:06:03]SAM_PROTO_GetFieldsCounters done [20:06:03]requested_item shift.num is exist - process it [20:06:03]requested_item shift.opened is exist - process it [20:06:03]req_shift_opened [20:06:03]FM_GetShiftState [20:06:03]SAM_PROTO_GetShiftState [20:06:03]wFMCommunicate request_size=4 [20:06:03]MH_SAM_APDU [20:06:03]CAPDU: 80 13 01 00 [20:06:03]Write to MH i2c: E2 08 00 3C 13 80 13 01 00 00 00 00 00 CC [20:06:03]Write i2c OK [20:06:03]MH_I2C_Read... [20:06:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:03]Read from MH i2c: E2 [20:06:03]MH_I2C_Read... [20:06:03]Read from MH i2c: E2 0E 00 [20:06:03]MH_I2C_Read... [20:06:03]Read from MH i2c: E2 0E 00 3C 13 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 D2 [20:06:03]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:06:03]wFMCommunicate OK [20:06:03]SAM_PROTO_GetShiftState done [20:06:03]FM_GetShiftState done [20:06:03]req_shift_opened done [20:06:03]requested_item shift.open_date is exist - process it [20:06:03]req_shift_open_date [20:06:03]req_shift_open_date done [20:06:03]produce_requested_data done [20:06:03]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69543,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [20:06:03]process_action_free close_receipt [20:06:03]json_value_free [20:06:03]json_value_free done [20:06:03]process_json_proto returns [20:06:03]Send response to host [20:06:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69543,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [20:06:03]free response buf [20:06:03]execute_script done [20:06:03]execute_script returns [20:06:03]free content buf [20:06:03]Sock 7.Close socket [20:06:03]Sock 7.Thread stoped [20:06:07]OFD Sender: No OFD packet to send [20:06:12]OFD Sender: No OFD packet to send [20:06:17]OFD Sender: No OFD packet to send [20:06:22]OFD Sender: No OFD packet to send [20:06:27]OFD Sender: No OFD packet to send [20:06:32]OFD Sender: No OFD packet to send [20:06:37]OFD Sender: No OFD packet to send [20:06:42]OFD Sender: No OFD packet to send [20:06:47]OFD Sender: No OFD packet to send [20:06:52]OFD Sender: No OFD packet to send [20:06:57]OFD Sender: No OFD packet to send [20:07:02]OFD Sender: No OFD packet to send [20:07:07]OFD Sender: No OFD packet to send [20:07:12]OFD Sender: No OFD packet to send [20:07:17]OFD Sender: No OFD packet to send [20:07:22]OFD Sender: No OFD packet to send [20:07:27]OFD Sender: No OFD packet to send [20:07:32]OFD Sender: No OFD packet to send [20:07:37]OFD Sender: No OFD packet to send [20:07:42]OFD Sender: No OFD packet to send [20:07:47]OFD Sender: No OFD packet to send [20:07:52]OFD Sender: No OFD packet to send [20:07:57]OFD Sender: No OFD packet to send [20:08:02]OFD Sender: No OFD packet to send [20:08:07]OFD Sender: No OFD packet to send [20:08:12]OFD Sender: No OFD packet to send [20:08:17]OFD Sender: No OFD packet to send [20:08:22]OFD Sender: No OFD packet to send [20:08:27]OFD Sender: No OFD packet to send [20:08:32]OFD Sender: No OFD packet to send [20:08:37]OFD Sender: No OFD packet to send [20:08:42]OFD Sender: No OFD packet to send [20:08:47]OFD Sender: No OFD packet to send [20:08:52]accept exits with 9 [20:08:52]New connection [20:08:52]New thread 3066654052 created [20:08:52]Thread 3066797412 joined [20:08:52]Waiting for new connection... [20:08:52] Sock 9.Parse request [20:08:52]Sock 9.Check first char [20:08:52]Sock 9.First char is OK [20:08:52]request: POST /json_proto HTTP/1.0 [20:08:52]Method: POST [20:08:52]URL: /json_proto [20:08:52]Method is POST - this is cgi request [20:08:52]url: /json_proto [20:08:52]query_string will be loaded in cgi processing [20:08:52]execute_cgi json_proto POST (null) [20:08:52]execute_cgi path=json_proto method=POST [20:08:52]POST find Content-Length [20:08:52]Host: 172.17.50.3:8080 [20:08:52]Content-Length: 980 [20:08:52]Content-Type: application/json [20:08:52] [20:08:52]POST finish read [20:08:52]Found Content-Length = 980 [20:08:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 106.390, "sum" : 8000.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 106.39 \u0441\u043E\u043C", "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:52]execute_script... [20:08: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)2885285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 106.390, "sum" : 8000.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 106.39 \u0441\u043E\u043C", "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:52]POST & json_proto [20:08:52]process_json_proto [20:08:52]json parsed OK: [20:08:52]protocol is kg_v1.0 [20:08:52]action value=close_receipt [20:08:52]process_action close_receipt [20:08:52]cmd_close_receipt [20:08:52]MH_GetDate [20:08:52]Write to MH i2c: F0 00 00 3D 13 3F [20:08:52]Write i2c OK [20:08:52]MH_I2C_Read... [20:08:52]Read from MH i2c: F0 [20:08:52]MH_I2C_Read... [20:08:52]Read from MH i2c: F0 09 00 [20:08:52]MH_I2C_Read... [20:08:52]Read from MH i2c: F0 09 00 3D 13 00 54 63 15 67 6B 98 1E 66 02 [20:08:52]GetLastDocTimeStamp 1729454760 [20:08:52]current date 1729454932 [20:08:52]FM_GetShiftState [20:08:52]SAM_PROTO_GetShiftState [20:08:52]wFMCommunicate request_size=4 [20:08:52]MH_SAM_APDU [20:08:52]CAPDU: 80 13 01 00 [20:08:52]Write to MH i2c: E2 08 00 3E 13 80 13 01 00 00 00 00 00 CE [20:08:52]Write i2c OK [20:08:52]MH_I2C_Read... [20:08:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:52]Read from MH i2c: E2 [20:08:52]MH_I2C_Read... [20:08:52]Read from MH i2c: E2 0E 00 [20:08:52]MH_I2C_Read... [20:08:52]Read from MH i2c: E2 0E 00 3E 13 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 D4 [20:08:52]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:08:52]wFMCommunicate OK [20:08:52]SAM_PROTO_GetShiftState done [20:08:52]FM_GetShiftState done [20:08:52]opened in 1729383220 [20:08:52]opened+sec_in_day 1729469620 [20:08:52]quantity*price = 800052 [20:08:52]sum+1 = 800054 [20:08:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 8000.00 Внесено: 8000.00 СДАЧА: 0.00 НСП 1% : 70.80 НДС 12% : 849.61 Наличными: 8000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 389 20.10.2024 20:08 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Дисконтная программа ДТ номер 85 сэкономлено 106.39 сом ФМ: 0000000000963346 ФД: 69544 ФПД: 117440594141649 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T200853&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69544&fm=117440594141649&tin=02508201610067®Number=0000000000156251&sum=800000 [20:08:53]StoreToDocumentArchive [20:08:53]shift 193 fd 69544 [20:08:53]save to /storage/0193/doc_00069544 [20:08:53]save last doc name /storage/0193/doc_00069544 to /storage/kkm_last_doc_name [20:08:53]save OK [20:08:53]Clear old archive folders... [20:08:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:08:53]tlvbuf is B6E9B310 [20:08:53]SAM_PROTO_ClearQueue [20:08:53]wFMCommunicate request_size=4 [20:08:53]MH_SAM_APDU [20:08:53]CAPDU: 80 09 00 00 [20:08:53]Write to MH i2c: E2 08 00 4B 13 80 09 00 00 00 00 00 00 D0 [20:08:53]Write i2c OK [20:08:53]MH_I2C_Read... [20:08:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:08:53]Read from MH i2c: E2 [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: E2 03 00 [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: E2 03 00 4B 13 00 90 00 D2 [20:08:53]RAPDU: 90 00 [20:08:53]wFMCommunicate OK [20:08:53]SAM_PROTO_ClearQueue done [20:08:53]KKMCreateOFDPacket [20:08:53]OFDProtocolAddRootSTLVToBuf [20:08:53]FM_MakeSignedData [20:08:53]FM_MakeSignedData [20:08:53]SAM_PROTO_SignData [20:08:53]wFMCommunicate request_size=4 [20:08:53]MH_SAM_APDU [20:08:53]CAPDU: 80 0D 01 02 [20:08:53]Write to MH i2c: E2 08 00 4C 13 80 0D 01 02 00 00 00 00 D8 [20:08:53]Write i2c OK [20:08:53]MH_I2C_Read... [20:08:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:08:53]Read from MH i2c: E2 [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: E2 03 00 [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: E2 03 00 4C 13 00 90 00 D3 [20:08:53]RAPDU: 90 00 [20:08:53]wFMCommunicate OK [20:08:53]wFMCommunicate request_size=255 [20:08:53]MH_SAM_APDU [20:08:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 01 00 00 F4 03 04 00 55 63 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A8 0F 01 00 35 04 06 00 6A CF C4 E5 [20:08:53]Write to MH i2c: E2 02 01 4D 13 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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 01 00 00 F4 03 04 00 55 63 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A8 0F 01 00 35 04 06 00 6A CF C4 E5 00 00 DF [20:08:53]Write i2c OK [20:08:53]MH_I2C_Read... [20:08:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:53]Read from MH i2c: E2 [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: E2 03 00 [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: E2 03 00 4D 13 00 90 00 D4 [20:08:53]RAPDU: 90 00 [20:08:53]wFMCommunicate OK [20:08:53]wFMCommunicate request_size=7 [20:08:53]MH_SAM_APDU [20:08:53]CAPDU: 80 0D 02 02 02 61 D1 [20:08:53]Write to MH i2c: E2 0A 00 4E 13 80 0D 02 02 02 00 61 D1 00 00 11 [20:08:53]Write i2c OK [20:08:53]MH_I2C_Read... [20:08:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:53]Read from MH i2c: E2 [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: E2 03 00 [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: E2 03 00 4E 13 00 90 00 D5 [20:08:53]RAPDU: 90 00 [20:08:53]wFMCommunicate OK [20:08:53]wFMCommunicate request_size=4 [20:08:53]MH_SAM_APDU [20:08:53]CAPDU: 80 0D 03 02 [20:08:53]Write to MH i2c: E2 08 00 4F 13 80 0D 03 02 00 00 00 00 DD [20:08:53]Write i2c OK [20:08:53]MH_I2C_Read... [20:08:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:08:53]Read from MH i2c: E2 [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: E2 0B 00 [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: E2 0B 00 4F 13 00 A6 66 D8 2D 26 59 3C 93 90 00 3D [20:08:53]RAPDU: A6 66 D8 2D 26 59 3C 93 90 00 [20:08:53]wFMCommunicate OK [20:08:53]SAM_PROTO_SignData done [20:08:53]FM_MakeSignedData done [20:08:53]CreateOFDProtocolMessage [20:08:53]wFMCommunicate request_size=4 [20:08:53]MH_SAM_APDU [20:08:53]CAPDU: 80 11 00 00 [20:08:53]Write to MH i2c: E2 08 00 50 13 80 11 00 00 00 00 00 00 DD [20:08:53]Write i2c OK [20:08:53]MH_I2C_Read... [20:08:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:53]Read from MH i2c: E2 [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: E2 17 00 [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: E2 17 00 50 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2F [20:08:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:08:53]wFMCommunicate OK [20:08:53]CreateOFDProtocolMessage done [20:08:53]OFDSenderStorePacket 69544 [20:08:53]StoreOFDPacket docnum=69544 [20:08:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 5C A2 04 01 7B 09 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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 01 00 00 F4 03 04 00 55 63 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A8 0F 01 00 35 04 06 00 6A CF C4 E5 61 D1 A6 66 D8 2D 26 59 3C 93 [20:08:53]CheckFolder [20:08:53]dirname=/storage/ofd_packets [20:08:53]CheckFolder done [20:08:53]ProducePacketName [20:08:53]name=ofd_packets/00069544 [20:08:53]NVStorageSaveData ofd_packets/00069544 [20:08:53]File name is /storage/ofd_packets/00069544 [20:08:53]Write 298 bytes [20:08:53]NVStorageSaveData done [20:08:53]OFDSenderStorePacket done [20:08:53]KKMCreateOFDPacket done [20:08:53]NVStorageSaveData kkm_last_timestamp [20:08:53]File name is /storage/kkm_last_timestamp [20:08:53]Write 4 bytes [20:08:53]NVStorageSaveData done [20:08:53]ExternCall_PrintAddStr [20:08:53]wPrintStart [20:08:53]Write to MH i2c: 01 00 00 51 13 64 [20:08:53]Write i2c OK [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: 01 [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: 01 07 00 [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: 01 07 00 51 13 00 00 00 00 00 FF 0F 79 [20:08:53]RasterBufferAndPrint [20:08:53]line Счет N : (1)2885285 [20:08:53]line ИНН: 02508201610067 [20:08:53]line Контрольно-Кассовый Чек [20:08:53]line ПРОДАЖА [20:08:53]line ТРК (МРК, ГНК) : 51 [20:08:53]line Товар: 2710194210 [20:08:53]line ДТ-К-5 [20:08:53]line 106.390 * 75.20 [20:08:53]line = 8000.53 [20:08:53]line НДС 12% НСП 1% [20:08:53]line > о реализуемом товаре [20:08:53]line ОКРУГЛЕНИЕ: -0.53 [20:08:53]line ИТОГО: 8000.00 [20:08:53]line Внесено: 8000.00 [20:08:53]line СДАЧА: 0.00 [20:08:53]line НСП 1% : 70.80 [20:08:53]line НДС 12% : 849.61 [20:08:53]line Наличными: 8000.00 [20:08:53]line Безнал.: 0.00 [20:08:53]line Место: АЗС № 85 "Партнер Нефть" [20:08:53]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:08:53]line СНО: Общий режим [20:08:53]line Чек 389 20.10.2024 20:08 [20:08:53]line Смена: 193 ФФД: 1.0 [20:08:53]line ЗНМ: 0300000167 [20:08:53]line РНМ: 0000000000156251 [20:08:53]line Версия ККМ: v1.0 [20:08:53]line [20:08:53]line Дисконтная программа [20:08:53]line ДТ [20:08:53]line номер 85 [20:08:53]line сэкономлено 106.39 сом [20:08:53]line ФМ: 0000000000963346 [20:08:53]line ФД: 69544 [20:08:54]line ФПД: 117440594141649 [20:08:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T200853&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69544&fm=117440594141649&tin=02508201610067®Number=0000000000156251&sum=800000 [20:08:54]OFD Sender: Processing packet 69544 [packets to send 18, broken 17] [20:08:54]ProducePacketName [20:08:54]name=ofd_packets/00069544 [20:08:54]OFD Sender: To server: pG, [20:08:54]CommunicateWithHost lk.salyk.kg:30040 [20:08:54]ConnectInit lk.salyk.kg [20:08:54]written 0, free lines is 4095 [20:08:54]Connected sock=10 [20:08:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 5C A2 04 01 7B 09 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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 01 00 00 F4 03 04 00 55 63 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A8 0F 01 00 35 04 06 00 6A CF C4 E5 61 D1 A6 66 D8 2D 26 59 3C 93 [20:08:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 C3 49 47 00 6E DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A8 0F 01 00 F4 03 04 00 FA 0C 15 67 B6 04 01 00 00 C9 DD 32 F7 E3 06 5E E1 [20:08:54]CommunicateWithHost err = 0 [20:08:54]CheckOFDResponse [20:08:54]1017 (14) - 77093643461234 [20:08:54]1041 (16) - 0000000000963346 [20:08:54]1040 (4) - 69544 [20:08:54]1012 (4) - 20.10.2024 14:00 [20:08:54]1206 (1) - 0 [20:08:54]OFD Sender: Remove packet 69544 [20:08:54]ProducePacketName [20:08:54]name=ofd_packets/00069544 [20:08:54]NVStorageDeleteData [20:08:54]Write to MH i2c: 01 00 00 81 13 94 [20:08:54]Write i2c OK [20:08:54]MH_I2C_Read... [20:08:54]Read from MH i2c: 01 [20:08:54]MH_I2C_Read... [20:08:54]Read from MH i2c: 01 07 00 [20:08:54]MH_I2C_Read... [20:08:54]Read from MH i2c: 01 07 00 81 13 00 00 00 00 00 AA 0C 51 [20:08:54]RasterBufferAndPrint [20:08:54]line [20:08:54]line [20:08:54]line [20:08:54]line [20:08:54]line [20:08:54]written 0, free lines is 3248 [20:08:54]MH_Cut [20:08:54]Write to MH i2c: D1 01 00 88 13 01 6D [20:08:54]Write i2c OK [20:08:54]MH_I2C_Read... [20:08:54]Read from MH i2c: D1 [20:08:54]MH_I2C_Read... [20:08:54]Read from MH i2c: D1 01 00 [20:08:54]MH_I2C_Read... [20:08:54]Read from MH i2c: D1 01 00 88 13 00 6C [20:08:54]Write to MH i2c: 01 00 00 89 13 9C [20:08:54]Write i2c OK [20:08:54]MH_I2C_Read... [20:08:55]OFD Sender: No OFD packet to send [20:08:55]*** Cut start [20:08:55]*** Partial cut [20:08:55]*** CUTSNS_PIN = 1 [20:08:55]*** CUTSNS_PIN = 0 [20:08:55]*** Brake cut motor [20:08:56]Read from MH i2c: 01 [20:08:56]MH_I2C_Read... [20:08:56]*** Stop cut motor [20:08:56]*** Cut end [20:08:56]Read from MH i2c: 01 07 00 [20:08:56]MH_I2C_Read... [20:08:56]Read from MH i2c: 01 07 00 89 13 00 00 00 00 00 FF 0F B1 [20:08:56]process_action close_receipt done [20:08:56]requested_data is exist [20:08:56]produce_requested_data [20:08:56]requested_item fm.sn is exist - process it [20:08:56]wFMCommunicate request_size=4 [20:08:56]MH_SAM_APDU [20:08:56]CAPDU: 80 11 00 00 [20:08:56]Write to MH i2c: E2 08 00 8A 13 80 11 00 00 00 00 00 00 17 [20:08:56]Write i2c OK [20:08:56]MH_I2C_Read... [20:08:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:56]Read from MH i2c: E2 [20:08:56]MH_I2C_Read... [20:08:56]Read from MH i2c: E2 17 00 [20:08:56]MH_I2C_Read... [20:08:56]Read from MH i2c: E2 17 00 8A 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 69 [20:08:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:08:56]wFMCommunicate OK [20:08:56]requested_item fd.num is exist - process it [20:08:56]SAM_PROTO_GetFieldsCounters [20:08:56]wFMCommunicate request_size=4 [20:08:56]MH_SAM_APDU [20:08:56]CAPDU: 80 13 00 00 [20:08:56]Write to MH i2c: E2 08 00 8B 13 80 13 00 00 00 00 00 00 1A [20:08:56]Write i2c OK [20:08:56]MH_I2C_Read... [20:08:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:08:56]Read from MH i2c: E2 [20:08:56]MH_I2C_Read... [20:08:56]Read from MH i2c: E2 62 00 [20:08:56]MH_I2C_Read... [20:08:56]Read from MH i2c: E2 62 00 8B 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A8 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 85 01 00 00 5E 04 04 00 85 01 00 00 57 04 04 00 86 01 00 00 19 04 04 00 00 00 00 00 90 00 40 [20:08:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A8 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 85 01 00 00 5E 04 04 00 85 01 00 00 57 04 04 00 86 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:08:56]wFMCommunicate OK [20:08:56]SAM_PROTO_GetFieldsCounters done [20:08:56]requested_item shift.num is exist - process it [20:08:56]requested_item shift.opened is exist - process it [20:08:56]req_shift_opened [20:08:56]FM_GetShiftState [20:08:56]SAM_PROTO_GetShiftState [20:08:56]wFMCommunicate request_size=4 [20:08:56]MH_SAM_APDU [20:08:56]CAPDU: 80 13 01 00 [20:08:56]Write to MH i2c: E2 08 00 8C 13 80 13 01 00 00 00 00 00 1C [20:08:56]Write i2c OK [20:08:56]MH_I2C_Read... [20:08:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:56]Read from MH i2c: E2 [20:08:56]MH_I2C_Read... [20:08:56]Read from MH i2c: E2 0E 00 [20:08:56]MH_I2C_Read... [20:08:56]Read from MH i2c: E2 0E 00 8C 13 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 22 [20:08:56]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:08:56]wFMCommunicate OK [20:08:56]SAM_PROTO_GetShiftState done [20:08:56]FM_GetShiftState done [20:08:56]req_shift_opened done [20:08:56]requested_item shift.open_date is exist - process it [20:08:56]req_shift_open_date [20:08:56]req_shift_open_date done [20:08:56]produce_requested_data done [20:08:56]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69544,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [20:08:56]process_action_free close_receipt [20:08:56]json_value_free [20:08:56]json_value_free done [20:08:56]process_json_proto returns [20:08:56]Send response to host [20:08:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69544,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [20:08:56]free response buf [20:08:56]execute_script done [20:08:56]execute_script returns [20:08:56]free content buf [20:08:56]Sock 9.Close socket [20:08:56]Sock 9.Thread stoped [20:09:00]OFD Sender: No OFD packet to send [20:09:05]OFD Sender: No OFD packet to send [20:09:10]OFD Sender: No OFD packet to send [20:09:15]OFD Sender: No OFD packet to send [20:09:20]OFD Sender: No OFD packet to send [20:09:25]OFD Sender: No OFD packet to send [20:09:30]OFD Sender: No OFD packet to send [20:09:35]OFD Sender: No OFD packet to send [20:09:40]OFD Sender: No OFD packet to send [20:09:45]OFD Sender: No OFD packet to send [20:09:50]OFD Sender: No OFD packet to send [20:09:55]OFD Sender: No OFD packet to send [20:10:00]OFD Sender: No OFD packet to send [20:10:05]OFD Sender: No OFD packet to send [20:10:06]accept exits with 7 [20:10:06]New connection [20:10:06]New thread 3066797412 created [20:10:06]Thread 3066654052 joined [20:10:06]Waiting for new connection... [20:10:06] Sock 7.Parse request [20:10:06]Sock 7.Check first char [20:10:06]Sock 7.First char is OK [20:10:06]request: POST /json_proto HTTP/1.0 [20:10:06]Method: POST [20:10:06]URL: /json_proto [20:10:06]Method is POST - this is cgi request [20:10:06]url: /json_proto [20:10:06]query_string will be loaded in cgi processing [20:10:06]execute_cgi json_proto POST (null) [20:10:06]execute_cgi path=json_proto method=POST [20:10:06]POST find Content-Length [20:10:06]Host: 172.17.50.3:8080 [20:10:06]Content-Length: 776 [20:10:06]Content-Type: application/json [20:10:06] [20:10:06]POST finish read [20:10:06]Found Content-Length = 776 [20:10:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.77 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:10:06]execute_script... [20:10: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)2885284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.77 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:10:06]POST & json_proto [20:10:06]process_json_proto [20:10:06]json parsed OK: [20:10:06]protocol is kg_v1.0 [20:10:06]action value=close_receipt [20:10:06]process_action close_receipt [20:10:06]cmd_close_receipt [20:10:06]MH_GetDate [20:10:06]Write to MH i2c: F0 00 00 8D 13 8F [20:10:06]Write i2c OK [20:10:06]MH_I2C_Read... [20:10:06]Read from MH i2c: F0 [20:10:06]MH_I2C_Read... [20:10:06]Read from MH i2c: F0 09 00 [20:10:06]MH_I2C_Read... [20:10:06]Read from MH i2c: F0 09 00 8D 13 00 9E 63 15 67 6B 98 1E 66 9C [20:10:06]GetLastDocTimeStamp 1729454933 [20:10:06]current date 1729455006 [20:10:06]FM_GetShiftState [20:10:06]SAM_PROTO_GetShiftState [20:10:06]wFMCommunicate request_size=4 [20:10:06]MH_SAM_APDU [20:10:06]CAPDU: 80 13 01 00 [20:10:06]Write to MH i2c: E2 08 00 8E 13 80 13 01 00 00 00 00 00 1E [20:10:06]Write i2c OK [20:10:06]MH_I2C_Read... [20:10:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:10:06]Read from MH i2c: E2 [20:10:06]MH_I2C_Read... [20:10:06]Read from MH i2c: E2 0E 00 [20:10:06]MH_I2C_Read... [20:10:06]Read from MH i2c: E2 0E 00 8E 13 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 24 [20:10:06]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:10:06]wFMCommunicate OK [20:10:06]SAM_PROTO_GetShiftState done [20:10:06]FM_GetShiftState done [20:10:06]opened in 1729383220 [20:10:06]opened+sec_in_day 1729469620 [20:10:06]quantity*price = 150076 [20:10:06]sum+1 = 150078 [20:10:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.77 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 0.00 Безнал.: 1500.77 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 390 20.10.2024 20:10 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69545 ФПД: 124363679157055 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201006&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69545&fm=124363679157055&tin=02508201610067®Number=0000000000156251&sum=150077 [20:10:07]StoreToDocumentArchive [20:10:07]shift 193 fd 69545 [20:10:07]save to /storage/0193/doc_00069545 [20:10:07]save last doc name /storage/0193/doc_00069545 to /storage/kkm_last_doc_name [20:10:07]save OK [20:10:07]Clear old archive folders... [20:10:07]ProcessDocumentItem done err = 0, tmpTLVsize=257 [20:10:07]tlvbuf is 00F1B1D0 [20:10:07]SAM_PROTO_ClearQueue [20:10:07]wFMCommunicate request_size=4 [20:10:07]MH_SAM_APDU [20:10:07]CAPDU: 80 09 00 00 [20:10:07]Write to MH i2c: E2 08 00 9B 13 80 09 00 00 00 00 00 00 20 [20:10:07]Write i2c OK [20:10:07]MH_I2C_Read... [20:10:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:10:07]Read from MH i2c: E2 [20:10:07]MH_I2C_Read... [20:10:07]Read from MH i2c: E2 03 00 [20:10:07]MH_I2C_Read... [20:10:07]Read from MH i2c: E2 03 00 9B 13 00 90 00 22 [20:10:07]RAPDU: 90 00 [20:10:07]wFMCommunicate OK [20:10:07]SAM_PROTO_ClearQueue done [20:10:07]KKMCreateOFDPacket [20:10:07]OFDProtocolAddRootSTLVToBuf [20:10:07]FM_MakeSignedData [20:10:07]FM_MakeSignedData [20:10:07]SAM_PROTO_SignData [20:10:07]wFMCommunicate request_size=4 [20:10:07]MH_SAM_APDU [20:10:07]CAPDU: 80 0D 01 02 [20:10:07]Write to MH i2c: E2 08 00 9C 13 80 0D 01 02 00 00 00 00 28 [20:10:07]Write i2c OK [20:10:07]MH_I2C_Read... [20:10:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:10:07]Read from MH i2c: E2 [20:10:07]MH_I2C_Read... [20:10:07]Read from MH i2c: E2 03 00 [20:10:07]MH_I2C_Read... [20:10:07]Read from MH i2c: E2 03 00 9C 13 00 90 00 23 [20:10:07]RAPDU: 90 00 [20:10:07]wFMCommunicate OK [20:10:07]wFMCommunicate request_size=255 [20:10:07]MH_SAM_APDU [20:10:07]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 01 00 00 F4 03 04 00 9E 63 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A9 0F 01 [20:10:07]Write to MH i2c: E2 02 01 9D 13 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 01 00 00 F4 03 04 00 9E 63 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A9 0F 01 00 00 E6 [20:10:07]Write i2c OK [20:10:07]MH_I2C_Read... [20:10:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:10:07]Read from MH i2c: E2 [20:10:07]MH_I2C_Read... [20:10:07]Read from MH i2c: E2 03 00 [20:10:07]MH_I2C_Read... [20:10:07]Read from MH i2c: E2 03 00 9D 13 00 90 00 24 [20:10:07]RAPDU: 90 00 [20:10:07]wFMCommunicate OK [20:10:07]wFMCommunicate request_size=16 [20:10:07]MH_SAM_APDU [20:10:07]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 71 1B AC EB 4B 3F [20:10:07]Write to MH i2c: E2 13 00 9E 13 80 0D 02 02 0B 00 00 35 04 06 00 71 1B AC EB 4B 3F 00 00 2D [20:10:07]Write i2c OK [20:10:07]MH_I2C_Read... [20:10:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:10:07]Read from MH i2c: E2 [20:10:07]MH_I2C_Read... [20:10:07]Read from MH i2c: E2 03 00 [20:10:07]MH_I2C_Read... [20:10:07]Read from MH i2c: E2 03 00 9E 13 00 90 00 25 [20:10:07]RAPDU: 90 00 [20:10:07]wFMCommunicate OK [20:10:07]wFMCommunicate request_size=4 [20:10:07]MH_SAM_APDU [20:10:07]CAPDU: 80 0D 03 02 [20:10:07]Write to MH i2c: E2 08 00 9F 13 80 0D 03 02 00 00 00 00 2D [20:10:07]Write i2c OK [20:10:07]MH_I2C_Read... [20:10:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:10:07]Read from MH i2c: E2 [20:10:07]MH_I2C_Read... [20:10:07]Read from MH i2c: E2 0B 00 [20:10:07]MH_I2C_Read... [20:10:07]Read from MH i2c: E2 0B 00 9F 13 00 06 31 59 05 A1 32 7D 4B 90 00 5E [20:10:07]RAPDU: 06 31 59 05 A1 32 7D 4B 90 00 [20:10:07]wFMCommunicate OK [20:10:07]SAM_PROTO_SignData done [20:10:07]FM_MakeSignedData done [20:10:07]CreateOFDProtocolMessage [20:10:07]wFMCommunicate request_size=4 [20:10:07]MH_SAM_APDU [20:10:07]CAPDU: 80 11 00 00 [20:10:07]Write to MH i2c: E2 08 00 A0 13 80 11 00 00 00 00 00 00 2D [20:10:07]Write i2c OK [20:10:07]MH_I2C_Read... [20:10:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:10:07]Read from MH i2c: E2 [20:10:07]MH_I2C_Read... [20:10:07]Read from MH i2c: E2 17 00 [20:10:07]MH_I2C_Read... [20:10:07]Read from MH i2c: E2 17 00 A0 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7F [20:10:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:10:07]wFMCommunicate OK [20:10:07]CreateOFDProtocolMessage done [20:10:07]OFDSenderStorePacket 69545 [20:10:07]StoreOFDPacket docnum=69545 [20:10:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 49 BC 0D 01 56 C1 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 01 00 00 F4 03 04 00 9E 63 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A9 0F 01 00 35 04 06 00 71 1B AC EB 4B 3F 06 31 59 05 A1 32 7D 4B [20:10:07]CheckFolder [20:10:07]dirname=/storage/ofd_packets [20:10:07]CheckFolder done [20:10:07]ProducePacketName [20:10:07]name=ofd_packets/00069545 [20:10:07]NVStorageSaveData ofd_packets/00069545 [20:10:07]File name is /storage/ofd_packets/00069545 [20:10:07]Write 307 bytes [20:10:07]NVStorageSaveData done [20:10:07]OFDSenderStorePacket done [20:10:07]KKMCreateOFDPacket done [20:10:07]NVStorageSaveData kkm_last_timestamp [20:10:07]File name is /storage/kkm_last_timestamp [20:10:07]Write 4 bytes [20:10:07]NVStorageSaveData done [20:10:07]ExternCall_PrintAddStr [20:10:07]wPrintStart [20:10:07]Write to MH i2c: 01 00 00 A1 13 B4 [20:10:07]Write i2c OK [20:10:07]MH_I2C_Read... [20:10:07]Read from MH i2c: 01 [20:10:07]MH_I2C_Read... [20:10:07]Read from MH i2c: 01 07 00 [20:10:07]MH_I2C_Read... [20:10:07]Read from MH i2c: 01 07 00 A1 13 00 00 00 00 00 FF 0F C9 [20:10:07]RasterBufferAndPrint [20:10:07]line Счет N : (1)2885284 [20:10:07]line ИНН: 02508201610067 [20:10:07]line Контрольно-Кассовый Чек [20:10:07]line ПРОДАЖА [20:10:07]line ТРК (МРК, ГНК) : 31 [20:10:07]line Товар: 2710194240 [20:10:07]line D-ENERGY Дт-К-2 [20:10:07]line 19.440 * 77.20 [20:10:07]line = 1500.77 [20:10:07]line НДС 12% НСП 1% [20:10:07]line > о реализуемом товаре [20:10:07]line ИТОГО: 1500.77 [20:10:07]line НСП 1% : 13.28 [20:10:07]line НДС 12% : 159.37 [20:10:07]line Наличными: 0.00 [20:10:07]line Безнал.: 1500.77 [20:10:07]line Место: АЗС № 85 "Партнер Нефть" [20:10:07]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:10:07]line СНО: Общий режим [20:10:07]line Чек 390 20.10.2024 20:10 [20:10:07]line Смена: 193 ФФД: 1.0 [20:10:07]line ЗНМ: 0300000167 [20:10:07]line РНМ: 0000000000156251 [20:10:07]line Версия ККМ: v1.0 [20:10:07]line Платежная система: Mbank [20:10:07]line ФМ: 0000000000963346 [20:10:07]line ФД: 69545 [20:10:07]line ФПД: 124363679157055 [20:10:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201006&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69545&fm=124363679157055&tin=02508201610067®Number=0000000000156251&sum=150077 [20:10:08]OFD Sender: Processing packet 69545 [packets to send 18, broken 17] [20:10:08]ProducePacketName [20:10:08]name=ofd_packets/00069545 [20:10:08]OFD Sender: To server: pG, [20:10:08]CommunicateWithHost lk.salyk.kg:30040 [20:10:08]ConnectInit lk.salyk.kg [20:10:08]written 0, free lines is 4095 [20:10:08]Connected sock=10 [20:10:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 49 BC 0D 01 56 C1 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 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 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 01 00 00 F4 03 04 00 9E 63 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A9 0F 01 00 35 04 06 00 71 1B AC EB 4B 3F 06 31 59 05 A1 32 7D 4B [20:10:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 C6 0B 47 00 F3 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 A9 0F 01 00 F4 03 04 00 44 0D 15 67 B6 04 01 00 00 E9 63 CB 29 C4 5B 00 B2 [20:10:08]CommunicateWithHost err = 0 [20:10:08]CheckOFDResponse [20:10:08]1017 (14) - 77093643461234 [20:10:08]1041 (16) - 0000000000963346 [20:10:08]1040 (4) - 69545 [20:10:08]1012 (4) - 20.10.2024 14:01 [20:10:08]1206 (1) - 0 [20:10:08]OFD Sender: Remove packet 69545 [20:10:08]ProducePacketName [20:10:08]name=ofd_packets/00069545 [20:10:08]NVStorageDeleteData [20:10:08]Write to MH i2c: 01 00 00 CA 13 DD [20:10:08]Write i2c OK [20:10:08]MH_I2C_Read... [20:10:08]Read from MH i2c: 01 [20:10:08]MH_I2C_Read... [20:10:08]Read from MH i2c: 01 07 00 [20:10:08]MH_I2C_Read... [20:10:08]Read from MH i2c: 01 07 00 CA 13 00 00 00 00 00 24 0D 15 [20:10:08]RasterBufferAndPrint [20:10:08]line [20:10:08]line [20:10:08]line [20:10:08]line [20:10:08]line [20:10:08]written 0, free lines is 3370 [20:10:08]MH_Cut [20:10:08]Write to MH i2c: D1 01 00 D1 13 01 B6 [20:10:08]Write i2c OK [20:10:08]MH_I2C_Read... [20:10:08]Read from MH i2c: D1 [20:10:08]MH_I2C_Read... [20:10:08]Read from MH i2c: D1 01 00 [20:10:08]MH_I2C_Read... [20:10:08]Read from MH i2c: D1 01 00 D1 13 00 B5 [20:10:08]Write to MH i2c: 01 00 00 D2 13 E5 [20:10:08]Write i2c OK [20:10:08]MH_I2C_Read... [20:10:08]OFD Sender: No OFD packet to send [20:10:09]*** Cut start [20:10:09]*** Partial cut [20:10:09]*** CUTSNS_PIN = 1 [20:10:09]*** CUTSNS_PIN = 0 [20:10:09]*** Brake cut motor [20:10:09]Read from MH i2c: 01 [20:10:09]MH_I2C_Read... [20:10:09]*** Stop cut motor [20:10:09]*** Cut end [20:10:09]Read from MH i2c: 01 07 00 [20:10:09]MH_I2C_Read... [20:10:09]Read from MH i2c: 01 07 00 D2 13 00 00 00 00 00 FF 0F FA [20:10:09]process_action close_receipt done [20:10:09]requested_data is exist [20:10:09]produce_requested_data [20:10:09]requested_item fm.sn is exist - process it [20:10:09]wFMCommunicate request_size=4 [20:10:09]MH_SAM_APDU [20:10:09]CAPDU: 80 11 00 00 [20:10:09]Write to MH i2c: E2 08 00 D3 13 80 11 00 00 00 00 00 00 60 [20:10:09]Write i2c OK [20:10:09]MH_I2C_Read... [20:10:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:10:09]Read from MH i2c: E2 [20:10:09]MH_I2C_Read... [20:10:09]Read from MH i2c: E2 17 00 [20:10:09]MH_I2C_Read... [20:10:09]Read from MH i2c: E2 17 00 D3 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B2 [20:10:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:10:09]wFMCommunicate OK [20:10:09]requested_item fd.num is exist - process it [20:10:09]SAM_PROTO_GetFieldsCounters [20:10:09]wFMCommunicate request_size=4 [20:10:09]MH_SAM_APDU [20:10:09]CAPDU: 80 13 00 00 [20:10:09]Write to MH i2c: E2 08 00 D4 13 80 13 00 00 00 00 00 00 63 [20:10:09]Write i2c OK [20:10:09]MH_I2C_Read... [20:10:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:10:10]Read from MH i2c: E2 [20:10:10]MH_I2C_Read... [20:10:10]Read from MH i2c: E2 62 00 [20:10:10]MH_I2C_Read... [20:10:10]Read from MH i2c: E2 62 00 D4 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A9 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 86 01 00 00 5E 04 04 00 86 01 00 00 57 04 04 00 87 01 00 00 19 04 04 00 00 00 00 00 90 00 8D [20:10:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 A9 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 86 01 00 00 5E 04 04 00 86 01 00 00 57 04 04 00 87 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:10:10]wFMCommunicate OK [20:10:10]SAM_PROTO_GetFieldsCounters done [20:10:10]requested_item shift.num is exist - process it [20:10:10]requested_item shift.opened is exist - process it [20:10:10]req_shift_opened [20:10:10]FM_GetShiftState [20:10:10]SAM_PROTO_GetShiftState [20:10:10]wFMCommunicate request_size=4 [20:10:10]MH_SAM_APDU [20:10:10]CAPDU: 80 13 01 00 [20:10:10]Write to MH i2c: E2 08 00 D5 13 80 13 01 00 00 00 00 00 65 [20:10:10]Write i2c OK [20:10:10]MH_I2C_Read... [20:10:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:10:10]Read from MH i2c: E2 [20:10:10]MH_I2C_Read... [20:10:10]Read from MH i2c: E2 0E 00 [20:10:10]MH_I2C_Read... [20:10:10]Read from MH i2c: E2 0E 00 D5 13 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 6B [20:10:10]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:10:10]wFMCommunicate OK [20:10:10]SAM_PROTO_GetShiftState done [20:10:10]FM_GetShiftState done [20:10:10]req_shift_opened done [20:10:10]requested_item shift.open_date is exist - process it [20:10:10]req_shift_open_date [20:10:10]req_shift_open_date done [20:10:10]produce_requested_data done [20:10:10]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69545,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [20:10:10]process_action_free close_receipt [20:10:10]json_value_free [20:10:10]json_value_free done [20:10:10]process_json_proto returns [20:10:10]Send response to host [20:10:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69545,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [20:10:10]free response buf [20:10:10]execute_script done [20:10:10]execute_script returns [20:10:10]free content buf [20:10:10]Sock 7.Close socket [20:10:10]Sock 7.Thread stoped [20:10:13]OFD Sender: No OFD packet to send [20:10:15]accept exits with 9 [20:10:15]New connection [20:10:15]New thread 3066654052 created [20:10:15]Thread 3066797412 joined [20:10:15]Waiting for new connection... [20:10:15] Sock 9.Parse request [20:10:15]Sock 9.Check first char [20:10:15]Sock 9.First char is OK [20:10:15]request: POST /json_proto HTTP/1.0 [20:10:15]Method: POST [20:10:15]URL: /json_proto [20:10:15]Method is POST - this is cgi request [20:10:15]url: /json_proto [20:10:15]query_string will be loaded in cgi processing [20:10:15]execute_cgi json_proto POST (null) [20:10:15]execute_cgi path=json_proto method=POST [20:10:15]POST find Content-Length [20:10:15]Host: 172.17.50.3:8080 [20:10:15]Content-Length: 680 [20:10:15]Content-Type: application/json [20:10:15] [20:10:15]POST finish read [20:10:15]Found Content-Length = 680 [20:10:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:10:15]execute_script... [20:10: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)2885286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:10:15]POST & json_proto [20:10:15]process_json_proto [20:10:15]json parsed OK: [20:10:15]protocol is kg_v1.0 [20:10:15]action value=close_receipt [20:10:15]process_action close_receipt [20:10:15]cmd_close_receipt [20:10:15]MH_GetDate [20:10:15]Write to MH i2c: F0 00 00 D6 13 D8 [20:10:15]Write i2c OK [20:10:15]MH_I2C_Read... [20:10:15]Read from MH i2c: F0 [20:10:15]MH_I2C_Read... [20:10:15]Read from MH i2c: F0 09 00 [20:10:15]MH_I2C_Read... [20:10:15]Read from MH i2c: F0 09 00 D6 13 00 A8 63 15 67 6B 98 1E 66 EF [20:10:15]GetLastDocTimeStamp 1729455006 [20:10:15]current date 1729455016 [20:10:15]FM_GetShiftState [20:10:15]SAM_PROTO_GetShiftState [20:10:15]wFMCommunicate request_size=4 [20:10:15]MH_SAM_APDU [20:10:15]CAPDU: 80 13 01 00 [20:10:15]Write to MH i2c: E2 08 00 D7 13 80 13 01 00 00 00 00 00 67 [20:10:15]Write i2c OK [20:10:15]MH_I2C_Read... [20:10:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:10:15]Read from MH i2c: E2 [20:10:15]MH_I2C_Read... [20:10:15]Read from MH i2c: E2 0E 00 [20:10:15]MH_I2C_Read... [20:10:15]Read from MH i2c: E2 0E 00 D7 13 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 6D [20:10:15]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:10:15]wFMCommunicate OK [20:10:15]SAM_PROTO_GetShiftState done [20:10:15]FM_GetShiftState done [20:10:15]opened in 1729383220 [20:10:15]opened+sec_in_day 1729469620 [20:10:15]quantity*price = 200025 [20:10:15]sum+1 = 200026 [20:10:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 391 20.10.2024 20:10 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69546 ФПД: 209638851238694 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201016&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69546&fm=209638851238694&tin=02508201610067®Number=0000000000156251&sum=200000 [20:10:17]StoreToDocumentArchive [20:10:17]shift 193 fd 69546 [20:10:17]save to /storage/0193/doc_00069546 [20:10:17]save last doc name /storage/0193/doc_00069546 to /storage/kkm_last_doc_name [20:10:17]save OK [20:10:17]Clear old archive folders... [20:10:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:10:17]tlvbuf is 00F56E20 [20:10:17]SAM_PROTO_ClearQueue [20:10:17]wFMCommunicate request_size=4 [20:10:17]MH_SAM_APDU [20:10:17]CAPDU: 80 09 00 00 [20:10:17]Write to MH i2c: E2 08 00 E4 13 80 09 00 00 00 00 00 00 69 [20:10:17]Write i2c OK [20:10:17]MH_I2C_Read... [20:10:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:10:17]Read from MH i2c: E2 [20:10:17]MH_I2C_Read... [20:10:17]Read from MH i2c: E2 03 00 [20:10:17]MH_I2C_Read... [20:10:17]Read from MH i2c: E2 03 00 E4 13 00 90 00 6B [20:10:17]RAPDU: 90 00 [20:10:17]wFMCommunicate OK [20:10:17]SAM_PROTO_ClearQueue done [20:10:17]KKMCreateOFDPacket [20:10:17]OFDProtocolAddRootSTLVToBuf [20:10:17]FM_MakeSignedData [20:10:17]FM_MakeSignedData [20:10:17]SAM_PROTO_SignData [20:10:17]wFMCommunicate request_size=4 [20:10:17]MH_SAM_APDU [20:10:17]CAPDU: 80 0D 01 02 [20:10:17]Write to MH i2c: E2 08 00 E5 13 80 0D 01 02 00 00 00 00 71 [20:10:17]Write i2c OK [20:10:17]MH_I2C_Read... [20:10:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:10:17]Read from MH i2c: E2 [20:10:17]MH_I2C_Read... [20:10:17]Read from MH i2c: E2 03 00 [20:10:17]MH_I2C_Read... [20:10:17]Read from MH i2c: E2 03 00 E5 13 00 90 00 6C [20:10:17]RAPDU: 90 00 [20:10:17]wFMCommunicate OK [20:10:17]wFMCommunicate request_size=255 [20:10:17]MH_SAM_APDU [20:10: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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 01 00 00 F4 03 04 00 A8 63 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AA 0F 01 00 35 04 06 00 BE AA 59 42 [20:10:17]Write to MH i2c: E2 02 01 E6 13 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 01 00 00 F4 03 04 00 A8 63 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AA 0F 01 00 35 04 06 00 BE AA 59 42 00 00 6B [20:10:17]Write i2c OK [20:10:17]MH_I2C_Read... [20:10:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:10:17]Read from MH i2c: E2 [20:10:17]MH_I2C_Read... [20:10:17]Read from MH i2c: E2 03 00 [20:10:17]MH_I2C_Read... [20:10:17]Read from MH i2c: E2 03 00 E6 13 00 90 00 6D [20:10:17]RAPDU: 90 00 [20:10:17]wFMCommunicate OK [20:10:17]wFMCommunicate request_size=7 [20:10:17]MH_SAM_APDU [20:10:17]CAPDU: 80 0D 02 02 02 5B 26 [20:10:17]Write to MH i2c: E2 0A 00 E7 13 80 0D 02 02 02 00 5B 26 00 00 F9 [20:10:17]Write i2c OK [20:10:17]MH_I2C_Read... [20:10:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:10:17]Read from MH i2c: E2 [20:10:17]MH_I2C_Read... [20:10:17]Read from MH i2c: E2 03 00 [20:10:17]MH_I2C_Read... [20:10:17]Read from MH i2c: E2 03 00 E7 13 00 90 00 6E [20:10:17]RAPDU: 90 00 [20:10:17]wFMCommunicate OK [20:10:17]wFMCommunicate request_size=4 [20:10:17]MH_SAM_APDU [20:10:17]CAPDU: 80 0D 03 02 [20:10:17]Write to MH i2c: E2 08 00 E8 13 80 0D 03 02 00 00 00 00 76 [20:10:17]Write i2c OK [20:10:17]MH_I2C_Read... [20:10:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:10:17]Read from MH i2c: E2 [20:10:17]MH_I2C_Read... [20:10:17]Read from MH i2c: E2 0B 00 [20:10:17]MH_I2C_Read... [20:10:17]Read from MH i2c: E2 0B 00 E8 13 00 2D 20 BF 18 2C 0A 25 78 90 00 6E [20:10:17]RAPDU: 2D 20 BF 18 2C 0A 25 78 90 00 [20:10:17]wFMCommunicate OK [20:10:17]SAM_PROTO_SignData done [20:10:17]FM_MakeSignedData done [20:10:17]CreateOFDProtocolMessage [20:10:17]wFMCommunicate request_size=4 [20:10:17]MH_SAM_APDU [20:10:17]CAPDU: 80 11 00 00 [20:10:17]Write to MH i2c: E2 08 00 E9 13 80 11 00 00 00 00 00 00 76 [20:10:17]Write i2c OK [20:10:17]MH_I2C_Read... [20:10:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:10:17]Read from MH i2c: E2 [20:10:17]MH_I2C_Read... [20:10:17]Read from MH i2c: E2 17 00 [20:10:17]MH_I2C_Read... [20:10:17]Read from MH i2c: E2 17 00 E9 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C8 [20:10:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:10:17]wFMCommunicate OK [20:10:17]CreateOFDProtocolMessage done [20:10:17]OFDSenderStorePacket 69546 [20:10:17]StoreOFDPacket docnum=69546 [20:10:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 9F 38 04 01 69 02 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 01 00 00 F4 03 04 00 A8 63 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AA 0F 01 00 35 04 06 00 BE AA 59 42 5B 26 2D 20 BF 18 2C 0A 25 78 [20:10:17]CheckFolder [20:10:17]dirname=/storage/ofd_packets [20:10:17]CheckFolder done [20:10:17]ProducePacketName [20:10:17]name=ofd_packets/00069546 [20:10:17]NVStorageSaveData ofd_packets/00069546 [20:10:17]File name is /storage/ofd_packets/00069546 [20:10:17]Write 298 bytes [20:10:17]NVStorageSaveData done [20:10:17]OFDSenderStorePacket done [20:10:17]KKMCreateOFDPacket done [20:10:17]NVStorageSaveData kkm_last_timestamp [20:10:17]File name is /storage/kkm_last_timestamp [20:10:17]Write 4 bytes [20:10:17]NVStorageSaveData done [20:10:17]ExternCall_PrintAddStr [20:10:17]wPrintStart [20:10:17]Write to MH i2c: 01 00 00 EA 13 FD [20:10:17]Write i2c OK [20:10:17]MH_I2C_Read... [20:10:17]Read from MH i2c: 01 [20:10:17]MH_I2C_Read... [20:10:17]Read from MH i2c: 01 07 00 [20:10:17]MH_I2C_Read... [20:10:17]Read from MH i2c: 01 07 00 EA 13 00 00 00 00 00 FF 0F 12 [20:10:17]RasterBufferAndPrint [20:10:17]line Счет N : (1)2885286 [20:10:17]line ИНН: 02508201610067 [20:10:17]line Контрольно-Кассовый Чек [20:10:17]line ПРОДАЖА [20:10:17]line ТРК (МРК, ГНК) : 61 [20:10:17]line Товар: 2710194210 [20:10:17]line ДТ-К-5 [20:10:17]line 26.250 * 76.20 [20:10:17]line = 2000.25 [20:10:17]line НДС 12% НСП 1% [20:10:17]line > о реализуемом товаре [20:10:17]line ОКРУГЛЕНИЕ: -0.25 [20:10:17]line ИТОГО: 2000.00 [20:10:17]line Внесено: 2000.00 [20:10:17]line СДАЧА: 0.00 [20:10:17]line НСП 1% : 17.70 [20:10:17]line НДС 12% : 212.42 [20:10:17]line Наличными: 2000.00 [20:10:17]line Безнал.: 0.00 [20:10:17]line Место: АЗС № 85 "Партнер Нефть" [20:10:17]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:10:17]line СНО: Общий режим [20:10:17]line Чек 391 20.10.2024 20:10 [20:10:17]line Смена: 193 ФФД: 1.0 [20:10:17]line ЗНМ: 0300000167 [20:10:17]line РНМ: 0000000000156251 [20:10:17]line Версия ККМ: v1.0 [20:10:17]line ФМ: 0000000000963346 [20:10:17]line ФД: 69546 [20:10:17]line ФПД: 209638851238694 [20:10:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201016&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69546&fm=209638851238694&tin=02508201610067®Number=0000000000156251&sum=200000 [20:10:17]written 0, free lines is 4095 [20:10:17]OFD Sender: Processing packet 69546 [packets to send 18, broken 17] [20:10:17]ProducePacketName [20:10:17]name=ofd_packets/00069546 [20:10:17]OFD Sender: To server: pG, [20:10:17]CommunicateWithHost lk.salyk.kg:30040 [20:10:17]ConnectInit lk.salyk.kg [20:10:17]Connected sock=10 [20:10:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 9F 38 04 01 69 02 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 01 00 00 F4 03 04 00 A8 63 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AA 0F 01 00 35 04 06 00 BE AA 59 42 5B 26 2D 20 BF 18 2C 0A 25 78 [20:10:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 29 DB 47 00 C6 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AA 0F 01 00 F4 03 04 00 4E 0D 15 67 B6 04 01 00 00 B2 2A 42 37 42 80 CE EE [20:10:18]CommunicateWithHost err = 0 [20:10:18]CheckOFDResponse [20:10:18]1017 (14) - 77093643461234 [20:10:18]1041 (16) - 0000000000963346 [20:10:18]1040 (4) - 69546 [20:10:18]1012 (4) - 20.10.2024 14:01 [20:10:18]1206 (1) - 0 [20:10:18]OFD Sender: Remove packet 69546 [20:10:18]ProducePacketName [20:10:18]name=ofd_packets/00069546 [20:10:18]NVStorageDeleteData [20:10:18]Write to MH i2c: 01 00 00 15 14 29 [20:10:18]Write i2c OK [20:10:18]MH_I2C_Read... [20:10:18]Read from MH i2c: 01 [20:10:18]MH_I2C_Read... [20:10:18]Read from MH i2c: 01 07 00 [20:10:18]MH_I2C_Read... [20:10:18]Read from MH i2c: 01 07 00 15 14 00 00 00 00 00 05 0D 42 [20:10:18]RasterBufferAndPrint [20:10:18]line [20:10:18]line [20:10:18]line [20:10:18]line [20:10:18]line [20:10:18]written 0, free lines is 3343 [20:10:18]MH_Cut [20:10:18]Write to MH i2c: D1 01 00 1C 14 01 02 [20:10:18]Write i2c OK [20:10:18]MH_I2C_Read... [20:10:18]Read from MH i2c: D1 [20:10:18]MH_I2C_Read... [20:10:18]Read from MH i2c: D1 01 00 [20:10:18]MH_I2C_Read... [20:10:18]Read from MH i2c: D1 01 00 1C 14 00 01 [20:10:18]Write to MH i2c: 01 00 00 1D 14 31 [20:10:18]Write i2c OK [20:10:18]MH_I2C_Read... [20:10:18]OFD Sender: No OFD packet to send [20:10:18]*** Cut start [20:10:18]*** Partial cut [20:10:18]*** CUTSNS_PIN = 1 [20:10:18]*** CUTSNS_PIN = 0 [20:10:19]*** Brake cut motor [20:10:19]Read from MH i2c: 01 [20:10:19]MH_I2C_Read... [20:10:19]*** Stop cut motor [20:10:19]*** Cut end [20:10:19]Read from MH i2c: 01 07 00 [20:10:19]MH_I2C_Read... [20:10:19]Read from MH i2c: 01 07 00 1D 14 00 00 00 00 00 FF 0F 46 [20:10:19]process_action close_receipt done [20:10:19]requested_data is exist [20:10:19]produce_requested_data [20:10:19]requested_item fm.sn is exist - process it [20:10:19]wFMCommunicate request_size=4 [20:10:19]MH_SAM_APDU [20:10:19]CAPDU: 80 11 00 00 [20:10:19]Write to MH i2c: E2 08 00 1E 14 80 11 00 00 00 00 00 00 AC [20:10:19]Write i2c OK [20:10:19]MH_I2C_Read... [20:10:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:10:19]Read from MH i2c: E2 [20:10:19]MH_I2C_Read... [20:10:19]Read from MH i2c: E2 17 00 [20:10:19]MH_I2C_Read... [20:10:19]Read from MH i2c: E2 17 00 1E 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FE [20:10:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:10:19]wFMCommunicate OK [20:10:19]requested_item fd.num is exist - process it [20:10:19]SAM_PROTO_GetFieldsCounters [20:10:19]wFMCommunicate request_size=4 [20:10:19]MH_SAM_APDU [20:10:19]CAPDU: 80 13 00 00 [20:10:19]Write to MH i2c: E2 08 00 1F 14 80 13 00 00 00 00 00 00 AF [20:10:19]Write i2c OK [20:10:19]MH_I2C_Read... [20:10:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:10:19]Read from MH i2c: E2 [20:10:19]MH_I2C_Read... [20:10:19]Read from MH i2c: E2 62 00 [20:10:19]MH_I2C_Read... [20:10:19]Read from MH i2c: E2 62 00 1F 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AA 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 87 01 00 00 5E 04 04 00 87 01 00 00 57 04 04 00 88 01 00 00 19 04 04 00 00 00 00 00 90 00 DD [20:10:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AA 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 87 01 00 00 5E 04 04 00 87 01 00 00 57 04 04 00 88 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:10:19]wFMCommunicate OK [20:10:19]SAM_PROTO_GetFieldsCounters done [20:10:19]requested_item shift.num is exist - process it [20:10:19]requested_item shift.opened is exist - process it [20:10:19]req_shift_opened [20:10:19]FM_GetShiftState [20:10:19]SAM_PROTO_GetShiftState [20:10:19]wFMCommunicate request_size=4 [20:10:19]MH_SAM_APDU [20:10:19]CAPDU: 80 13 01 00 [20:10:19]Write to MH i2c: E2 08 00 20 14 80 13 01 00 00 00 00 00 B1 [20:10:19]Write i2c OK [20:10:19]MH_I2C_Read... [20:10:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:10:19]Read from MH i2c: E2 [20:10:19]MH_I2C_Read... [20:10:19]Read from MH i2c: E2 0E 00 [20:10:19]MH_I2C_Read... [20:10:19]Read from MH i2c: E2 0E 00 20 14 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 B7 [20:10:19]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:10:19]wFMCommunicate OK [20:10:19]SAM_PROTO_GetShiftState done [20:10:19]FM_GetShiftState done [20:10:19]req_shift_opened done [20:10:19]requested_item shift.open_date is exist - process it [20:10:19]req_shift_open_date [20:10:19]req_shift_open_date done [20:10:19]produce_requested_data done [20:10:19]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69546,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [20:10:19]process_action_free close_receipt [20:10:19]json_value_free [20:10:19]json_value_free done [20:10:19]process_json_proto returns [20:10:19]Send response to host [20:10:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69546,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [20:10:19]free response buf [20:10:19]execute_script done [20:10:19]execute_script returns [20:10:19]free content buf [20:10:19]Sock 9.Close socket [20:10:19]Sock 9.Thread stoped [20:10:23]OFD Sender: No OFD packet to send [20:10:28]OFD Sender: No OFD packet to send [20:10:33]OFD Sender: No OFD packet to send [20:10:38]OFD Sender: No OFD packet to send [20:10:43]OFD Sender: No OFD packet to send [20:10:48]OFD Sender: No OFD packet to send [20:10:53]OFD Sender: No OFD packet to send [20:10:58]OFD Sender: No OFD packet to send [20:11:03]OFD Sender: No OFD packet to send [20:11:08]OFD Sender: No OFD packet to send [20:11:13]OFD Sender: No OFD packet to send [20:11:18]OFD Sender: No OFD packet to send [20:11:23]OFD Sender: No OFD packet to send [20:11:28]OFD Sender: No OFD packet to send [20:11:33]OFD Sender: No OFD packet to send [20:11:38]OFD Sender: No OFD packet to send [20:11:43]OFD Sender: No OFD packet to send [20:11:48]OFD Sender: No OFD packet to send [20:11:53]OFD Sender: No OFD packet to send [20:11:58]OFD Sender: No OFD packet to send [20:12:03]OFD Sender: No OFD packet to send [20:12:08]accept exits with 7 [20:12:08]New connection [20:12:08]New thread 3066797412 created [20:12:08]Thread 3066654052 joined [20:12:08]Waiting for new connection... [20:12:08] Sock 7.Parse request [20:12:08]Sock 7.Check first char [20:12:08]Sock 7.First char is OK [20:12:08]request: POST /json_proto HTTP/1.0 [20:12:08]Method: POST [20:12:08]URL: /json_proto [20:12:08]Method is POST - this is cgi request [20:12:08]url: /json_proto [20:12:08]query_string will be loaded in cgi processing [20:12:08]execute_cgi json_proto POST (null) [20:12:08]execute_cgi path=json_proto method=POST [20:12:08]POST find Content-Length [20:12:08]Host: 172.17.50.3:8080 [20:12:08]Content-Length: 776 [20:12:08]Content-Type: application/json [20:12:08] [20:12:08]POST finish read [20:12:08]Found Content-Length = 776 [20:12:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:08]execute_script... [20:12:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:08]POST & json_proto [20:12:08]process_json_proto [20:12:08]json parsed OK: [20:12:08]protocol is kg_v1.0 [20:12:08]action value=close_receipt [20:12:08]process_action close_receipt [20:12:08]cmd_close_receipt [20:12:08]MH_GetDate [20:12:08]Write to MH i2c: F0 00 00 21 14 24 [20:12:08]Write i2c OK [20:12:08]MH_I2C_Read... [20:12:08]Read from MH i2c: F0 [20:12:08]MH_I2C_Read... [20:12:08]Read from MH i2c: F0 09 00 [20:12:08]MH_I2C_Read... [20:12:08]Read from MH i2c: F0 09 00 21 14 00 19 64 15 67 6B 98 1E 66 AD [20:12:08]GetLastDocTimeStamp 1729455016 [20:12:08]current date 1729455129 [20:12:08]FM_GetShiftState [20:12:08]SAM_PROTO_GetShiftState [20:12:08]wFMCommunicate request_size=4 [20:12:08]MH_SAM_APDU [20:12:08]CAPDU: 80 13 01 00 [20:12:08]Write to MH i2c: E2 08 00 22 14 80 13 01 00 00 00 00 00 B3 [20:12:08]Write i2c OK [20:12:08]MH_I2C_Read... [20:12:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:08]Read from MH i2c: E2 [20:12:08]MH_I2C_Read... [20:12:08]Read from MH i2c: E2 0E 00 [20:12:08]MH_I2C_Read... [20:12:08]Read from MH i2c: E2 0E 00 22 14 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 B9 [20:12:08]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:12:08]wFMCommunicate OK [20:12:08]SAM_PROTO_GetShiftState done [20:12:08]FM_GetShiftState done [20:12:08]opened in 1729383220 [20:12:08]opened+sec_in_day 1729469620 [20:12:08]quantity*price = 100051 [20:12:08]sum+1 = 100052 [20:12:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 392 20.10.2024 20:12 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69547 ФПД: 45674680827171 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201209&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69547&fm=45674680827171&tin=02508201610067®Number=0000000000156251&sum=100051 [20:12:09]StoreToDocumentArchive [20:12:09]shift 193 fd 69547 [20:12:09]save to /storage/0193/doc_00069547 [20:12:09]save last doc name /storage/0193/doc_00069547 to /storage/kkm_last_doc_name [20:12:09]save OK [20:12:09]Clear old archive folders... [20:12:09]ProcessDocumentItem done err = 0, tmpTLVsize=257 [20:12:09]tlvbuf is 00F46F20 [20:12:09]SAM_PROTO_ClearQueue [20:12:09]wFMCommunicate request_size=4 [20:12:09]MH_SAM_APDU [20:12:09]CAPDU: 80 09 00 00 [20:12:09]Write to MH i2c: E2 08 00 2F 14 80 09 00 00 00 00 00 00 B5 [20:12:09]Write i2c OK [20:12:09]MH_I2C_Read... [20:12:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:12:09]Read from MH i2c: E2 [20:12:09]MH_I2C_Read... [20:12:09]Read from MH i2c: E2 03 00 [20:12:09]MH_I2C_Read... [20:12:09]Read from MH i2c: E2 03 00 2F 14 00 90 00 B7 [20:12:09]RAPDU: 90 00 [20:12:09]wFMCommunicate OK [20:12:09]SAM_PROTO_ClearQueue done [20:12:09]KKMCreateOFDPacket [20:12:09]OFDProtocolAddRootSTLVToBuf [20:12:09]FM_MakeSignedData [20:12:09]FM_MakeSignedData [20:12:09]SAM_PROTO_SignData [20:12:09]wFMCommunicate request_size=4 [20:12:09]MH_SAM_APDU [20:12:09]CAPDU: 80 0D 01 02 [20:12:09]Write to MH i2c: E2 08 00 30 14 80 0D 01 02 00 00 00 00 BD [20:12:09]Write i2c OK [20:12:09]MH_I2C_Read... [20:12:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:12:09]Read from MH i2c: E2 [20:12:09]MH_I2C_Read... [20:12:09]Read from MH i2c: E2 03 00 [20:12:09]MH_I2C_Read... [20:12:09]Read from MH i2c: E2 03 00 30 14 00 90 00 B8 [20:12:09]RAPDU: 90 00 [20:12:09]wFMCommunicate OK [20:12:09]wFMCommunicate request_size=255 [20:12:09]MH_SAM_APDU [20:12:09]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 88 01 00 00 F4 03 04 00 19 64 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AB 0F 01 [20:12:09]Write to MH i2c: E2 02 01 31 14 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 88 01 00 00 F4 03 04 00 19 64 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AB 0F 01 00 00 73 [20:12:09]Write i2c OK [20:12:09]MH_I2C_Read... [20:12:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:10]Read from MH i2c: E2 [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: E2 03 00 [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: E2 03 00 31 14 00 90 00 B9 [20:12:10]RAPDU: 90 00 [20:12:10]wFMCommunicate OK [20:12:10]wFMCommunicate request_size=16 [20:12:10]MH_SAM_APDU [20:12:10]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 29 8A 77 20 3D 23 [20:12:10]Write to MH i2c: E2 13 00 32 14 80 0D 02 02 0B 00 00 35 04 06 00 29 8A 77 20 3D 23 00 00 BF [20:12:10]Write i2c OK [20:12:10]MH_I2C_Read... [20:12:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:10]Read from MH i2c: E2 [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: E2 03 00 [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: E2 03 00 32 14 00 90 00 BA [20:12:10]RAPDU: 90 00 [20:12:10]wFMCommunicate OK [20:12:10]wFMCommunicate request_size=4 [20:12:10]MH_SAM_APDU [20:12:10]CAPDU: 80 0D 03 02 [20:12:10]Write to MH i2c: E2 08 00 33 14 80 0D 03 02 00 00 00 00 C2 [20:12:10]Write i2c OK [20:12:10]MH_I2C_Read... [20:12:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:12:10]Read from MH i2c: E2 [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: E2 0B 00 [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: E2 0B 00 33 14 00 03 96 06 63 09 73 5F FA 90 00 9A [20:12:10]RAPDU: 03 96 06 63 09 73 5F FA 90 00 [20:12:10]wFMCommunicate OK [20:12:10]SAM_PROTO_SignData done [20:12:10]FM_MakeSignedData done [20:12:10]CreateOFDProtocolMessage [20:12:10]wFMCommunicate request_size=4 [20:12:10]MH_SAM_APDU [20:12:10]CAPDU: 80 11 00 00 [20:12:10]Write to MH i2c: E2 08 00 34 14 80 11 00 00 00 00 00 00 C2 [20:12:10]Write i2c OK [20:12:10]MH_I2C_Read... [20:12:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:10]Read from MH i2c: E2 [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: E2 17 00 [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: E2 17 00 34 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 14 [20:12:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:12:10]wFMCommunicate OK [20:12:10]CreateOFDProtocolMessage done [20:12:10]OFDSenderStorePacket 69547 [20:12:10]StoreOFDPacket docnum=69547 [20:12:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 A4 C4 0D 01 D5 77 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 88 01 00 00 F4 03 04 00 19 64 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AB 0F 01 00 35 04 06 00 29 8A 77 20 3D 23 03 96 06 63 09 73 5F FA [20:12:10]CheckFolder [20:12:10]dirname=/storage/ofd_packets [20:12:10]CheckFolder done [20:12:10]ProducePacketName [20:12:10]name=ofd_packets/00069547 [20:12:10]NVStorageSaveData ofd_packets/00069547 [20:12:10]File name is /storage/ofd_packets/00069547 [20:12:10]Write 307 bytes [20:12:10]NVStorageSaveData done [20:12:10]OFDSenderStorePacket done [20:12:10]KKMCreateOFDPacket done [20:12:10]NVStorageSaveData kkm_last_timestamp [20:12:10]File name is /storage/kkm_last_timestamp [20:12:10]Write 4 bytes [20:12:10]NVStorageSaveData done [20:12:10]ExternCall_PrintAddStr [20:12:10]wPrintStart [20:12:10]Write to MH i2c: 01 00 00 35 14 49 [20:12:10]Write i2c OK [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: 01 [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: 01 07 00 [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: 01 07 00 35 14 00 00 00 00 00 FF 0F 5E [20:12:10]RasterBufferAndPrint [20:12:10]line Счет N : (1)2885288 [20:12:10]line ИНН: 02508201610067 [20:12:10]line Контрольно-Кассовый Чек [20:12:10]line ПРОДАЖА [20:12:10]line ТРК (МРК, ГНК) : 11 [20:12:10]line Товар: 2710194240 [20:12:10]line D-ENERGY Дт-К-2 [20:12:10]line 12.960 * 77.20 [20:12:10]line = 1000.51 [20:12:10]line НДС 12% НСП 1% [20:12:10]line > о реализуемом товаре [20:12:10]line ИТОГО: 1000.51 [20:12:10]line НСП 1% : 8.85 [20:12:10]line НДС 12% : 106.25 [20:12:10]line Наличными: 0.00 [20:12:10]line Безнал.: 1000.51 [20:12:10]line Место: АЗС № 85 "Партнер Нефть" [20:12:10]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:12:10]line СНО: Общий режим [20:12:10]line Чек 392 20.10.2024 20:12 [20:12:10]line Смена: 193 ФФД: 1.0 [20:12:10]line ЗНМ: 0300000167 [20:12:10]line РНМ: 0000000000156251 [20:12:10]line Версия ККМ: v1.0 [20:12:10]line Платежная система: Mbank [20:12:10]line ФМ: 0000000000963346 [20:12:10]line ФД: 69547 [20:12:10]line ФПД: 45674680827171 [20:12:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201209&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69547&fm=45674680827171&tin=02508201610067®Number=0000000000156251&sum=100051 [20:12:10]OFD Sender: Processing packet 69547 [packets to send 18, broken 17] [20:12:10]ProducePacketName [20:12:10]name=ofd_packets/00069547 [20:12:10]OFD Sender: To server: pG, [20:12:10]CommunicateWithHost lk.salyk.kg:30040 [20:12:10]ConnectInit lk.salyk.kg [20:12:10]written 0, free lines is 4095 [20:12:10]Connected sock=10 [20:12:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 A4 C4 0D 01 D5 77 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 88 01 00 00 F4 03 04 00 19 64 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AB 0F 01 00 35 04 06 00 29 8A 77 20 3D 23 03 96 06 63 09 73 5F FA [20:12:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 21 43 47 00 88 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AB 0F 01 00 F4 03 04 00 BF 0D 15 67 B6 04 01 00 00 1A AC FE B3 20 A9 B4 3D [20:12:10]CommunicateWithHost err = 0 [20:12:10]CheckOFDResponse [20:12:10]1017 (14) - 77093643461234 [20:12:10]1041 (16) - 0000000000963346 [20:12:10]1040 (4) - 69547 [20:12:10]1012 (4) - 20.10.2024 14:03 [20:12:10]1206 (1) - 0 [20:12:10]OFD Sender: Remove packet 69547 [20:12:10]ProducePacketName [20:12:10]name=ofd_packets/00069547 [20:12:10]NVStorageDeleteData [20:12:10]Write to MH i2c: 01 00 00 5E 14 72 [20:12:10]Write i2c OK [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: 01 [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: 01 07 00 [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: 01 07 00 5E 14 00 00 00 00 00 19 0D 9F [20:12:10]RasterBufferAndPrint [20:12:10]line [20:12:10]line [20:12:10]line [20:12:10]line [20:12:10]line [20:12:10]written 0, free lines is 3359 [20:12:11]MH_Cut [20:12:11]Write to MH i2c: D1 01 00 65 14 01 4B [20:12:11]Write i2c OK [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: D1 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: D1 01 00 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: D1 01 00 65 14 00 4A [20:12:11]Write to MH i2c: 01 00 00 66 14 7A [20:12:11]Write i2c OK [20:12:11]MH_I2C_Read... [20:12:11]OFD Sender: No OFD packet to send [20:12:11]*** Cut start [20:12:11]*** Partial cut [20:12:11]*** CUTSNS_PIN = 1 [20:12:11]*** CUTSNS_PIN = 0 [20:12:11]*** Brake cut motor [20:12:12]Read from MH i2c: 01 [20:12:12]MH_I2C_Read... [20:12:12]*** Stop cut motor [20:12:12]*** Cut end [20:12:12]Read from MH i2c: 01 07 00 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: 01 07 00 66 14 00 00 00 00 00 FF 0F 8F [20:12:12]process_action close_receipt done [20:12:12]requested_data is exist [20:12:12]produce_requested_data [20:12:12]requested_item fm.sn is exist - process it [20:12:12]wFMCommunicate request_size=4 [20:12:12]MH_SAM_APDU [20:12:12]CAPDU: 80 11 00 00 [20:12:12]Write to MH i2c: E2 08 00 67 14 80 11 00 00 00 00 00 00 F5 [20:12:12]Write i2c OK [20:12:12]MH_I2C_Read... [20:12:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:12]Read from MH i2c: E2 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: E2 17 00 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: E2 17 00 67 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 47 [20:12:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:12:12]wFMCommunicate OK [20:12:12]requested_item fd.num is exist - process it [20:12:12]SAM_PROTO_GetFieldsCounters [20:12:12]wFMCommunicate request_size=4 [20:12:12]MH_SAM_APDU [20:12:12]CAPDU: 80 13 00 00 [20:12:12]Write to MH i2c: E2 08 00 68 14 80 13 00 00 00 00 00 00 F8 [20:12:12]Write i2c OK [20:12:12]MH_I2C_Read... [20:12:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:12:12]Read from MH i2c: E2 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: E2 62 00 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: E2 62 00 68 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AB 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 88 01 00 00 5E 04 04 00 88 01 00 00 57 04 04 00 89 01 00 00 19 04 04 00 00 00 00 00 90 00 2A [20:12:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AB 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 88 01 00 00 5E 04 04 00 88 01 00 00 57 04 04 00 89 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:12:12]wFMCommunicate OK [20:12:12]SAM_PROTO_GetFieldsCounters done [20:12:12]requested_item shift.num is exist - process it [20:12:12]requested_item shift.opened is exist - process it [20:12:12]req_shift_opened [20:12:12]FM_GetShiftState [20:12:12]SAM_PROTO_GetShiftState [20:12:12]wFMCommunicate request_size=4 [20:12:12]MH_SAM_APDU [20:12:12]CAPDU: 80 13 01 00 [20:12:12]Write to MH i2c: E2 08 00 69 14 80 13 01 00 00 00 00 00 FA [20:12:12]Write i2c OK [20:12:12]MH_I2C_Read... [20:12:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:12]Read from MH i2c: E2 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: E2 0E 00 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: E2 0E 00 69 14 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 00 [20:12:12]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:12:12]wFMCommunicate OK [20:12:12]SAM_PROTO_GetShiftState done [20:12:12]FM_GetShiftState done [20:12:12]req_shift_opened done [20:12:12]requested_item shift.open_date is exist - process it [20:12:12]req_shift_open_date [20:12:12]req_shift_open_date done [20:12:12]produce_requested_data done [20:12:12]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69547,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [20:12:12]process_action_free close_receipt [20:12:12]json_value_free [20:12:12]json_value_free done [20:12:12]process_json_proto returns [20:12:12]Send response to host [20:12:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69547,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [20:12:12]free response buf [20:12:12]execute_script done [20:12:12]execute_script returns [20:12:12]free content buf [20:12:12]Sock 7.Close socket [20:12:12]Sock 7.Thread stoped [20:12:15]accept exits with 9 [20:12:15]New connection [20:12:15]New thread 3066654052 created [20:12:15]Thread 3066797412 joined [20:12:15]Waiting for new connection... [20:12:15] Sock 9.Parse request [20:12:15]Sock 9.Check first char [20:12:15]Sock 9.First char is OK [20:12:15]request: POST /json_proto HTTP/1.0 [20:12:15]Method: POST [20:12:15]URL: /json_proto [20:12:15]Method is POST - this is cgi request [20:12:15]url: /json_proto [20:12:15]query_string will be loaded in cgi processing [20:12:15]execute_cgi json_proto POST (null) [20:12:15]execute_cgi path=json_proto method=POST [20:12:15]POST find Content-Length [20:12:15]Host: 172.17.50.3:8080 [20:12:15]Content-Length: 680 [20:12:15]Content-Type: application/json [20:12:15] [20:12:15]POST finish read [20:12:15]Found Content-Length = 680 [20:12:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:15]execute_script... [20: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)2885287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:15]POST & json_proto [20:12:15]process_json_proto [20:12:15]json parsed OK: [20:12:15]protocol is kg_v1.0 [20:12:15]action value=close_receipt [20:12:15]process_action close_receipt [20:12:15]cmd_close_receipt [20:12:15]MH_GetDate [20:12:15]Write to MH i2c: F0 00 00 6A 14 6D [20:12:15]Write i2c OK [20:12:15]MH_I2C_Read... [20:12:15]Read from MH i2c: F0 [20:12:15]MH_I2C_Read... [20:12:15]Read from MH i2c: F0 09 00 [20:12:15]MH_I2C_Read... [20:12:15]Read from MH i2c: F0 09 00 6A 14 00 20 64 15 67 6B 98 1E 66 FD [20:12:15]GetLastDocTimeStamp 1729455129 [20:12:15]current date 1729455136 [20:12:15]FM_GetShiftState [20:12:15]SAM_PROTO_GetShiftState [20:12:15]wFMCommunicate request_size=4 [20:12:15]MH_SAM_APDU [20:12:15]CAPDU: 80 13 01 00 [20:12:15]Write to MH i2c: E2 08 00 6B 14 80 13 01 00 00 00 00 00 FC [20:12:15]Write i2c OK [20:12:15]MH_I2C_Read... [20:12:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:15]Read from MH i2c: E2 [20:12:15]MH_I2C_Read... [20:12:15]Read from MH i2c: E2 0E 00 [20:12:15]MH_I2C_Read... [20:12:15]Read from MH i2c: E2 0E 00 6B 14 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 02 [20:12:15]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:12:15]wFMCommunicate OK [20:12:15]SAM_PROTO_GetShiftState done [20:12:15]FM_GetShiftState done [20:12:15]opened in 1729383220 [20:12:15]opened+sec_in_day 1729469620 [20:12:15]quantity*price = 300075 [20:12:15]sum+1 = 300077 [20:12:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 393 20.10.2024 20:12 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69548 ФПД: 92885462674068 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201216&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69548&fm=92885462674068&tin=02508201610067®Number=0000000000156251&sum=300000 [20:12:17]StoreToDocumentArchive [20:12:17]shift 193 fd 69548 [20:12:17]save to /storage/0193/doc_00069548 [20:12:17]save last doc name /storage/0193/doc_00069548 to /storage/kkm_last_doc_name [20:12:17]save OK [20:12:17]Clear old archive folders... [20:12:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:12:17]tlvbuf is B6E82AD0 [20:12:17]SAM_PROTO_ClearQueue [20:12:17]wFMCommunicate request_size=4 [20:12:17]MH_SAM_APDU [20:12:17]CAPDU: 80 09 00 00 [20:12:17]Write to MH i2c: E2 08 00 78 14 80 09 00 00 00 00 00 00 FE [20:12:17]Write i2c OK [20:12:17]MH_I2C_Read... [20:12:17]Read from MH i2c: E2 [20:12:17]MH_I2C_Read... [20:12:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:12:17]Read from MH i2c: E2 03 00 [20:12:17]MH_I2C_Read... [20:12:17]Read from MH i2c: E2 03 00 78 14 00 90 00 00 [20:12:17]RAPDU: 90 00 [20:12:17]wFMCommunicate OK [20:12:17]SAM_PROTO_ClearQueue done [20:12:17]KKMCreateOFDPacket [20:12:17]OFDProtocolAddRootSTLVToBuf [20:12:17]FM_MakeSignedData [20:12:17]FM_MakeSignedData [20:12:17]SAM_PROTO_SignData [20:12:17]wFMCommunicate request_size=4 [20:12:17]MH_SAM_APDU [20:12:17]CAPDU: 80 0D 01 02 [20:12:17]Write to MH i2c: E2 08 00 79 14 80 0D 01 02 00 00 00 00 06 [20:12:17]Write i2c OK [20:12:17]MH_I2C_Read... [20:12:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:12:17]Read from MH i2c: E2 [20:12:17]MH_I2C_Read... [20:12:17]Read from MH i2c: E2 03 00 [20:12:17]MH_I2C_Read... [20:12:17]Read from MH i2c: E2 03 00 79 14 00 90 00 01 [20:12:17]RAPDU: 90 00 [20:12:17]wFMCommunicate OK [20:12:17]wFMCommunicate request_size=255 [20:12:17]MH_SAM_APDU [20:12:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 01 00 00 F4 03 04 00 20 64 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AC 0F 01 00 35 04 06 00 54 7A 95 01 [20:12:17]Write to MH i2c: E2 02 01 7A 14 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 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 01 00 00 F4 03 04 00 20 64 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AC 0F 01 00 35 04 06 00 54 7A 95 01 00 00 27 [20:12:17]Write i2c OK [20:12:17]MH_I2C_Read... [20:12:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:17]Read from MH i2c: E2 [20:12:17]MH_I2C_Read... [20:12:17]Read from MH i2c: E2 03 00 [20:12:17]MH_I2C_Read... [20:12:17]Read from MH i2c: E2 03 00 7A 14 00 90 00 02 [20:12:17]RAPDU: 90 00 [20:12:17]wFMCommunicate OK [20:12:17]wFMCommunicate request_size=7 [20:12:17]MH_SAM_APDU [20:12:17]CAPDU: 80 0D 02 02 02 EA 94 [20:12:17]Write to MH i2c: E2 0A 00 7B 14 80 0D 02 02 02 00 EA 94 00 00 8B [20:12:17]Write i2c OK [20:12:17]MH_I2C_Read... [20:12:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:17]Read from MH i2c: E2 [20:12:17]MH_I2C_Read... [20:12:17]Read from MH i2c: E2 03 00 [20:12:17]MH_I2C_Read... [20:12:17]Read from MH i2c: E2 03 00 7B 14 00 90 00 03 [20:12:17]RAPDU: 90 00 [20:12:17]wFMCommunicate OK [20:12:17]wFMCommunicate request_size=4 [20:12:17]MH_SAM_APDU [20:12:17]CAPDU: 80 0D 03 02 [20:12:17]Write to MH i2c: E2 08 00 7C 14 80 0D 03 02 00 00 00 00 0B [20:12:17]Write i2c OK [20:12:17]MH_I2C_Read... [20:12:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:12:17]Read from MH i2c: E2 [20:12:17]MH_I2C_Read... [20:12:17]Read from MH i2c: E2 0B 00 [20:12:17]MH_I2C_Read... [20:12:17]Read from MH i2c: E2 0B 00 7C 14 00 C9 85 FC 02 A0 12 23 6B 90 00 98 [20:12:17]RAPDU: C9 85 FC 02 A0 12 23 6B 90 00 [20:12:17]wFMCommunicate OK [20:12:17]SAM_PROTO_SignData done [20:12:17]FM_MakeSignedData done [20:12:17]CreateOFDProtocolMessage [20:12:17]wFMCommunicate request_size=4 [20:12:17]MH_SAM_APDU [20:12:17]CAPDU: 80 11 00 00 [20:12:17]Write to MH i2c: E2 08 00 7D 14 80 11 00 00 00 00 00 00 0B [20:12:17]Write i2c OK [20:12:17]MH_I2C_Read... [20:12:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:17]Read from MH i2c: E2 [20:12:17]MH_I2C_Read... [20:12:17]Read from MH i2c: E2 17 00 [20:12:17]MH_I2C_Read... [20:12:17]Read from MH i2c: E2 17 00 7D 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5D [20:12:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:12:17]wFMCommunicate OK [20:12:17]CreateOFDProtocolMessage done [20:12:17]OFDSenderStorePacket 69548 [20:12:17]StoreOFDPacket docnum=69548 [20:12:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 66 FB 04 01 0C A4 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 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 01 00 00 F4 03 04 00 20 64 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AC 0F 01 00 35 04 06 00 54 7A 95 01 EA 94 C9 85 FC 02 A0 12 23 6B [20:12:17]CheckFolder [20:12:17]dirname=/storage/ofd_packets [20:12:17]CheckFolder done [20:12:17]ProducePacketName [20:12:17]name=ofd_packets/00069548 [20:12:17]NVStorageSaveData ofd_packets/00069548 [20:12:17]File name is /storage/ofd_packets/00069548 [20:12:17]Write 298 bytes [20:12:17]NVStorageSaveData done [20:12:17]OFDSenderStorePacket done [20:12:17]KKMCreateOFDPacket done [20:12:17]NVStorageSaveData kkm_last_timestamp [20:12:17]File name is /storage/kkm_last_timestamp [20:12:17]Write 4 bytes [20:12:17]NVStorageSaveData done [20:12:17]ExternCall_PrintAddStr [20:12:17]wPrintStart [20:12:17]Write to MH i2c: 01 00 00 7E 14 92 [20:12:17]Write i2c OK [20:12:17]MH_I2C_Read... [20:12:17]Read from MH i2c: 01 [20:12:17]MH_I2C_Read... [20:12:17]Read from MH i2c: 01 07 00 [20:12:17]MH_I2C_Read... [20:12:17]Read from MH i2c: 01 07 00 7E 14 00 00 00 00 00 FF 0F A7 [20:12:17]RasterBufferAndPrint [20:12:17]line Счет N : (1)2885287 [20:12:17]line ИНН: 02508201610067 [20:12:17]line Контрольно-Кассовый Чек [20:12:17]line ПРОДАЖА [20:12:17]line ТРК (МРК, ГНК) : 61 [20:12:17]line Товар: 2710194210 [20:12:17]line ДТ-К-5 [20:12:17]line 39.380 * 76.20 [20:12:17]line = 3000.76 [20:12:17]line НДС 12% НСП 1% [20:12:17]line > о реализуемом товаре [20:12:17]line ОКРУГЛЕНИЕ: -0.76 [20:12:17]line ИТОГО: 3000.00 [20:12:17]line Внесено: 3000.00 [20:12:17]line СДАЧА: 0.00 [20:12:17]line НСП 1% : 26.55 [20:12:17]line НДС 12% : 318.66 [20:12:17]line Наличными: 3000.00 [20:12:17]line Безнал.: 0.00 [20:12:17]line Место: АЗС № 85 "Партнер Нефть" [20:12:17]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:12:17]line СНО: Общий режим [20:12:17]line Чек 393 20.10.2024 20:12 [20:12:17]line Смена: 193 ФФД: 1.0 [20:12:17]line ЗНМ: 0300000167 [20:12:17]line РНМ: 0000000000156251 [20:12:17]line Версия ККМ: v1.0 [20:12:17]line ФМ: 0000000000963346 [20:12:17]line ФД: 69548 [20:12:17]line ФПД: 92885462674068 [20:12:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201216&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69548&fm=92885462674068&tin=02508201610067®Number=0000000000156251&sum=300000 [20:12:17]written 0, free lines is 4095 [20:12:17]OFD Sender: Processing packet 69548 [packets to send 18, broken 17] [20:12:17]ProducePacketName [20:12:17]name=ofd_packets/00069548 [20:12:17]OFD Sender: To server: pG, [20:12:17]CommunicateWithHost lk.salyk.kg:30040 [20:12:17]ConnectInit lk.salyk.kg [20:12:17]Connected sock=10 [20:12:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 66 FB 04 01 0C A4 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 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 01 00 00 F4 03 04 00 20 64 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AC 0F 01 00 35 04 06 00 54 7A 95 01 EA 94 C9 85 FC 02 A0 12 23 6B [20:12:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 B6 A5 47 00 2B 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AC 0F 01 00 F4 03 04 00 C6 0D 15 67 B6 04 01 00 00 C5 CF CC AA AA C2 F2 DE [20:12:17]CommunicateWithHost err = 0 [20:12:17]CheckOFDResponse [20:12:17]1017 (14) - 77093643461234 [20:12:17]1041 (16) - 0000000000963346 [20:12:17]1040 (4) - 69548 [20:12:18]1012 (4) - 20.10.2024 14:03 [20:12:18]1206 (1) - 0 [20:12:18]OFD Sender: Remove packet 69548 [20:12:18]ProducePacketName [20:12:18]name=ofd_packets/00069548 [20:12:18]NVStorageDeleteData [20:12:18]Write to MH i2c: 01 00 00 A9 14 BD [20:12:18]Write i2c OK [20:12:18]MH_I2C_Read... [20:12:18]Read from MH i2c: 01 [20:12:18]MH_I2C_Read... [20:12:18]Read from MH i2c: 01 07 00 [20:12:18]MH_I2C_Read... [20:12:18]Read from MH i2c: 01 07 00 A9 14 00 00 00 00 00 FA 0C CA [20:12:18]RasterBufferAndPrint [20:12:18]line [20:12:18]line [20:12:18]line [20:12:18]line [20:12:18]line [20:12:18]written 0, free lines is 3334 [20:12:18]MH_Cut [20:12:18]Write to MH i2c: D1 01 00 B0 14 01 96 [20:12:18]Write i2c OK [20:12:18]MH_I2C_Read... [20:12:18]Read from MH i2c: D1 [20:12:18]MH_I2C_Read... [20:12:18]Read from MH i2c: D1 01 00 [20:12:18]MH_I2C_Read... [20:12:18]Read from MH i2c: D1 01 00 B0 14 00 95 [20:12:18]Write to MH i2c: 01 00 00 B1 14 C5 [20:12:18]Write i2c OK [20:12:18]MH_I2C_Read... [20:12:18]OFD Sender: No OFD packet to send [20:12:18]*** Cut start [20:12:18]*** Partial cut [20:12:18]*** CUTSNS_PIN = 1 [20:12:18]*** CUTSNS_PIN = 0 [20:12:19]*** Brake cut motor [20:12:19]Read from MH i2c: 01 [20:12:19]MH_I2C_Read... [20:12:19]*** Stop cut motor [20:12:19]*** Cut end [20:12:19]Read from MH i2c: 01 07 00 [20:12:19]MH_I2C_Read... [20:12:19]Read from MH i2c: 01 07 00 B1 14 00 00 00 00 00 FF 0F DA [20:12:19]process_action close_receipt done [20:12:19]requested_data is exist [20:12:19]produce_requested_data [20:12:19]requested_item fm.sn is exist - process it [20:12:19]wFMCommunicate request_size=4 [20:12:19]MH_SAM_APDU [20:12:19]CAPDU: 80 11 00 00 [20:12:19]Write to MH i2c: E2 08 00 B2 14 80 11 00 00 00 00 00 00 40 [20:12:19]Write i2c OK [20:12:19]MH_I2C_Read... [20:12:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:19]Read from MH i2c: E2 [20:12:19]MH_I2C_Read... [20:12:19]Read from MH i2c: E2 17 00 [20:12:19]MH_I2C_Read... [20:12:19]Read from MH i2c: E2 17 00 B2 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 92 [20:12:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:12:19]wFMCommunicate OK [20:12:19]requested_item fd.num is exist - process it [20:12:19]SAM_PROTO_GetFieldsCounters [20:12:19]wFMCommunicate request_size=4 [20:12:19]MH_SAM_APDU [20:12:19]CAPDU: 80 13 00 00 [20:12:19]Write to MH i2c: E2 08 00 B3 14 80 13 00 00 00 00 00 00 43 [20:12:19]Write i2c OK [20:12:19]MH_I2C_Read... [20:12:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:12:19]Read from MH i2c: E2 [20:12:19]MH_I2C_Read... [20:12:19]Read from MH i2c: E2 62 00 [20:12:19]MH_I2C_Read... [20:12:19]Read from MH i2c: E2 62 00 B3 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AC 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 89 01 00 00 5E 04 04 00 89 01 00 00 57 04 04 00 8A 01 00 00 19 04 04 00 00 00 00 00 90 00 79 [20:12:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AC 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 89 01 00 00 5E 04 04 00 89 01 00 00 57 04 04 00 8A 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:12:19]wFMCommunicate OK [20:12:19]SAM_PROTO_GetFieldsCounters done [20:12:19]requested_item shift.num is exist - process it [20:12:19]requested_item shift.opened is exist - process it [20:12:19]req_shift_opened [20:12:19]FM_GetShiftState [20:12:19]SAM_PROTO_GetShiftState [20:12:19]wFMCommunicate request_size=4 [20:12:19]MH_SAM_APDU [20:12:19]CAPDU: 80 13 01 00 [20:12:19]Write to MH i2c: E2 08 00 B4 14 80 13 01 00 00 00 00 00 45 [20:12:19]Write i2c OK [20:12:19]MH_I2C_Read... [20:12:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:19]Read from MH i2c: E2 [20:12:19]MH_I2C_Read... [20:12:19]Read from MH i2c: E2 0E 00 [20:12:19]MH_I2C_Read... [20:12:19]Read from MH i2c: E2 0E 00 B4 14 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 4B [20:12:19]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:12:19]wFMCommunicate OK [20:12:19]SAM_PROTO_GetShiftState done [20:12:19]FM_GetShiftState done [20:12:19]req_shift_opened done [20:12:19]requested_item shift.open_date is exist - process it [20:12:19]req_shift_open_date [20:12:19]req_shift_open_date done [20:12:19]produce_requested_data done [20:12:19]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69548,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [20:12:19]process_action_free close_receipt [20:12:19]json_value_free [20:12:19]json_value_free done [20:12:19]process_json_proto returns [20:12:19]Send response to host [20:12:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69548,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [20:12:19]free response buf [20:12:19]execute_script done [20:12:19]execute_script returns [20:12:19]free content buf [20:12:19]Sock 9.Close socket [20:12:19]Sock 9.Thread stoped [20:12:20]accept exits with 7 [20:12:20]New connection [20:12:20]New thread 3066797412 created [20:12:20]Thread 3066654052 joined [20:12:20]Waiting for new connection... [20:12:20] Sock 7.Parse request [20:12:20]Sock 7.Check first char [20:12:20]Sock 7.First char is OK [20:12:20]request: POST /json_proto HTTP/1.0 [20:12:20]Method: POST [20:12:20]URL: /json_proto [20:12:20]Method is POST - this is cgi request [20:12:20]url: /json_proto [20:12:20]query_string will be loaded in cgi processing [20:12:20]execute_cgi json_proto POST (null) [20:12:20]execute_cgi path=json_proto method=POST [20:12:20]POST find Content-Length [20:12:20]Host: 172.17.50.3:8080 [20:12:20]Content-Length: 980 [20:12:20]Content-Type: application/json [20:12:20] [20:12:20]POST finish read [20:12:20]Found Content-Length = 980 [20:12:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 106.390, "sum" : 8000.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 106.39 \u0441\u043E\u043C", "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:20]execute_script... [20:12: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)2885289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 106.390, "sum" : 8000.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 106.39 \u0441\u043E\u043C", "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:20]POST & json_proto [20:12:20]process_json_proto [20:12:20]json parsed OK: [20:12:20]protocol is kg_v1.0 [20:12:20]action value=close_receipt [20:12:20]process_action close_receipt [20:12:20]cmd_close_receipt [20:12:20]MH_GetDate [20:12:20]Write to MH i2c: F0 00 00 B5 14 B8 [20:12:20]Write i2c OK [20:12:20]MH_I2C_Read... [20:12:20]Read from MH i2c: F0 [20:12:20]MH_I2C_Read... [20:12:20]Read from MH i2c: F0 09 00 [20:12:20]MH_I2C_Read... [20:12:20]Read from MH i2c: F0 09 00 B5 14 00 24 64 15 67 6B 98 1E 66 4C [20:12:20]GetLastDocTimeStamp 1729455136 [20:12:20]current date 1729455140 [20:12:20]FM_GetShiftState [20:12:20]SAM_PROTO_GetShiftState [20:12:20]wFMCommunicate request_size=4 [20:12:20]MH_SAM_APDU [20:12:20]CAPDU: 80 13 01 00 [20:12:20]Write to MH i2c: E2 08 00 B6 14 80 13 01 00 00 00 00 00 47 [20:12:20]Write i2c OK [20:12:20]MH_I2C_Read... [20:12:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:20]Read from MH i2c: E2 [20:12:20]MH_I2C_Read... [20:12:20]Read from MH i2c: E2 0E 00 [20:12:20]MH_I2C_Read... [20:12:20]Read from MH i2c: E2 0E 00 B6 14 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 4D [20:12:20]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:12:20]wFMCommunicate OK [20:12:20]SAM_PROTO_GetShiftState done [20:12:20]FM_GetShiftState done [20:12:20]opened in 1729383220 [20:12:20]opened+sec_in_day 1729469620 [20:12:20]quantity*price = 800052 [20:12:20]sum+1 = 800054 [20:12:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 8000.00 Внесено: 8000.00 СДАЧА: 0.00 НСП 1% : 70.80 НДС 12% : 849.61 Наличными: 8000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 394 20.10.2024 20:12 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Дисконтная программа ДТ номер 85 сэкономлено 106.39 сом ФМ: 0000000000963346 ФД: 69549 ФПД: 3823442332060 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201220&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69549&fm=3823442332060&tin=02508201610067®Number=0000000000156251&sum=800000 [20:12:21]StoreToDocumentArchive [20:12:21]shift 193 fd 69549 [20:12:21]save to /storage/0193/doc_00069549 [20:12:21]save last doc name /storage/0193/doc_00069549 to /storage/kkm_last_doc_name [20:12:21]save OK [20:12:21]Clear old archive folders... [20:12:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:12:21]tlvbuf is 00F29D60 [20:12:21]SAM_PROTO_ClearQueue [20:12:21]wFMCommunicate request_size=4 [20:12:21]MH_SAM_APDU [20:12:21]CAPDU: 80 09 00 00 [20:12:21]Write to MH i2c: E2 08 00 C3 14 80 09 00 00 00 00 00 00 49 [20:12:21]Write i2c OK [20:12:21]MH_I2C_Read... [20:12:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:12:21]Read from MH i2c: E2 [20:12:21]MH_I2C_Read... [20:12:21]Read from MH i2c: E2 03 00 [20:12:21]MH_I2C_Read... [20:12:21]Read from MH i2c: E2 03 00 C3 14 00 90 00 4B [20:12:21]RAPDU: 90 00 [20:12:21]wFMCommunicate OK [20:12:21]SAM_PROTO_ClearQueue done [20:12:21]KKMCreateOFDPacket [20:12:21]OFDProtocolAddRootSTLVToBuf [20:12:21]FM_MakeSignedData [20:12:21]FM_MakeSignedData [20:12:21]SAM_PROTO_SignData [20:12:21]wFMCommunicate request_size=4 [20:12:21]MH_SAM_APDU [20:12:21]CAPDU: 80 0D 01 02 [20:12:21]Write to MH i2c: E2 08 00 C4 14 80 0D 01 02 00 00 00 00 51 [20:12:21]Write i2c OK [20:12:21]MH_I2C_Read... [20:12:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:12:21]Read from MH i2c: E2 [20:12:21]MH_I2C_Read... [20:12:21]Read from MH i2c: E2 03 00 [20:12:21]MH_I2C_Read... [20:12:21]Read from MH i2c: E2 03 00 C4 14 00 90 00 4C [20:12:21]RAPDU: 90 00 [20:12:21]wFMCommunicate OK [20:12:21]wFMCommunicate request_size=255 [20:12:21]MH_SAM_APDU [20:12: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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 01 00 00 F4 03 04 00 24 64 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AD 0F 01 00 35 04 06 00 03 7A 36 EC [20:12:21]Write to MH i2c: E2 02 01 C5 14 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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 01 00 00 F4 03 04 00 24 64 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AD 0F 01 00 35 04 06 00 03 7A 36 EC 00 00 EF [20:12:21]Write i2c OK [20:12:21]MH_I2C_Read... [20:12:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:22]Read from MH i2c: E2 [20:12:22]MH_I2C_Read... [20:12:22]Read from MH i2c: E2 03 00 [20:12:22]MH_I2C_Read... [20:12:22]Read from MH i2c: E2 03 00 C5 14 00 90 00 4D [20:12:22]RAPDU: 90 00 [20:12:22]wFMCommunicate OK [20:12:22]wFMCommunicate request_size=7 [20:12:22]MH_SAM_APDU [20:12:22]CAPDU: 80 0D 02 02 02 09 9C [20:12:22]Write to MH i2c: E2 0A 00 C6 14 80 0D 02 02 02 00 09 9C 00 00 FD [20:12:22]Write i2c OK [20:12:22]MH_I2C_Read... [20:12:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:22]Read from MH i2c: E2 [20:12:22]MH_I2C_Read... [20:12:22]Read from MH i2c: E2 03 00 [20:12:22]MH_I2C_Read... [20:12:22]Read from MH i2c: E2 03 00 C6 14 00 90 00 4E [20:12:22]RAPDU: 90 00 [20:12:22]wFMCommunicate OK [20:12:22]wFMCommunicate request_size=4 [20:12:22]MH_SAM_APDU [20:12:22]CAPDU: 80 0D 03 02 [20:12:22]Write to MH i2c: E2 08 00 C7 14 80 0D 03 02 00 00 00 00 56 [20:12:22]Write i2c OK [20:12:22]MH_I2C_Read... [20:12:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:12:22]Read from MH i2c: E2 [20:12:22]MH_I2C_Read... [20:12:22]Read from MH i2c: E2 0B 00 [20:12:22]MH_I2C_Read... [20:12:22]Read from MH i2c: E2 0B 00 C7 14 00 F0 5C 63 90 50 65 67 B6 90 00 68 [20:12:22]RAPDU: F0 5C 63 90 50 65 67 B6 90 00 [20:12:22]wFMCommunicate OK [20:12:22]SAM_PROTO_SignData done [20:12:22]FM_MakeSignedData done [20:12:22]CreateOFDProtocolMessage [20:12:22]wFMCommunicate request_size=4 [20:12:22]MH_SAM_APDU [20:12:22]CAPDU: 80 11 00 00 [20:12:22]Write to MH i2c: E2 08 00 C8 14 80 11 00 00 00 00 00 00 56 [20:12:22]Write i2c OK [20:12:22]MH_I2C_Read... [20:12:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:22]Read from MH i2c: E2 [20:12:22]MH_I2C_Read... [20:12:22]Read from MH i2c: E2 17 00 [20:12:22]MH_I2C_Read... [20:12:22]Read from MH i2c: E2 17 00 C8 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A8 [20:12:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:12:22]wFMCommunicate OK [20:12:22]CreateOFDProtocolMessage done [20:12:22]OFDSenderStorePacket 69549 [20:12:22]StoreOFDPacket docnum=69549 [20:12:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 07 E1 04 01 F6 1F 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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 01 00 00 F4 03 04 00 24 64 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AD 0F 01 00 35 04 06 00 03 7A 36 EC 09 9C F0 5C 63 90 50 65 67 B6 [20:12:22]CheckFolder [20:12:22]dirname=/storage/ofd_packets [20:12:22]CheckFolder done [20:12:22]ProducePacketName [20:12:22]name=ofd_packets/00069549 [20:12:22]NVStorageSaveData ofd_packets/00069549 [20:12:22]File name is /storage/ofd_packets/00069549 [20:12:22]Write 298 bytes [20:12:22]NVStorageSaveData done [20:12:22]OFDSenderStorePacket done [20:12:22]KKMCreateOFDPacket done [20:12:22]NVStorageSaveData kkm_last_timestamp [20:12:22]File name is /storage/kkm_last_timestamp [20:12:22]Write 4 bytes [20:12:22]NVStorageSaveData done [20:12:22]ExternCall_PrintAddStr [20:12:22]wPrintStart [20:12:22]Write to MH i2c: 01 00 00 C9 14 DD [20:12:22]Write i2c OK [20:12:22]MH_I2C_Read... [20:12:22]Read from MH i2c: 01 [20:12:22]MH_I2C_Read... [20:12:22]Read from MH i2c: 01 07 00 [20:12:22]MH_I2C_Read... [20:12:22]Read from MH i2c: 01 07 00 C9 14 00 00 00 00 00 FF 0F F2 [20:12:22]RasterBufferAndPrint [20:12:22]line Счет N : (1)2885289 [20:12:22]line ИНН: 02508201610067 [20:12:22]line Контрольно-Кассовый Чек [20:12:22]line ПРОДАЖА [20:12:22]line ТРК (МРК, ГНК) : 51 [20:12:22]line Товар: 2710194210 [20:12:22]line ДТ-К-5 [20:12:22]line 106.390 * 75.20 [20:12:22]line = 8000.53 [20:12:22]line НДС 12% НСП 1% [20:12:22]line > о реализуемом товаре [20:12:22]line ОКРУГЛЕНИЕ: -0.53 [20:12:22]line ИТОГО: 8000.00 [20:12:22]line Внесено: 8000.00 [20:12:22]line СДАЧА: 0.00 [20:12:22]line НСП 1% : 70.80 [20:12:22]line НДС 12% : 849.61 [20:12:22]line Наличными: 8000.00 [20:12:22]line Безнал.: 0.00 [20:12:22]line Место: АЗС № 85 "Партнер Нефть" [20:12:22]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:12:22]line СНО: Общий режим [20:12:22]line Чек 394 20.10.2024 20:12 [20:12:22]line Смена: 193 ФФД: 1.0 [20:12:22]line ЗНМ: 0300000167 [20:12:22]line РНМ: 0000000000156251 [20:12:22]line Версия ККМ: v1.0 [20:12:22]line [20:12:22]line Дисконтная программа [20:12:22]line ДТ [20:12:22]line номер 85 [20:12:22]line сэкономлено 106.39 сом [20:12:22]line ФМ: 0000000000963346 [20:12:22]line ФД: 69549 [20:12:22]line ФПД: 3823442332060 [20:12:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201220&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69549&fm=3823442332060&tin=02508201610067®Number=0000000000156251&sum=800000 [20:12:22]written 0, free lines is 4095 [20:12:22]OFD Sender: Processing packet 69549 [packets to send 18, broken 17] [20:12:22]ProducePacketName [20:12:22]name=ofd_packets/00069549 [20:12:22]OFD Sender: To server: pG, [20:12:22]CommunicateWithHost lk.salyk.kg:30040 [20:12:22]ConnectInit lk.salyk.kg [20:12:22]Connected sock=10 [20:12:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 07 E1 04 01 F6 1F 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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 01 00 00 F4 03 04 00 24 64 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AD 0F 01 00 35 04 06 00 03 7A 36 EC 09 9C F0 5C 63 90 50 65 67 B6 [20:12:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 94 36 47 00 F3 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AD 0F 01 00 F4 03 04 00 CB 0D 15 67 B6 04 01 00 00 19 B0 F9 D5 9F 35 92 E7 [20:12:22]CommunicateWithHost err = 0 [20:12:22]CheckOFDResponse [20:12:22]1017 (14) - 77093643461234 [20:12:22]1041 (16) - 0000000000963346 [20:12:22]1040 (4) - 69549 [20:12:22]1012 (4) - 20.10.2024 14:03 [20:12:22]1206 (1) - 0 [20:12:22]OFD Sender: Remove packet 69549 [20:12:22]ProducePacketName [20:12:22]name=ofd_packets/00069549 [20:12:22]NVStorageDeleteData [20:12:22]Write to MH i2c: 01 00 00 F9 14 0D [20:12:22]Write i2c OK [20:12:22]MH_I2C_Read... [20:12:22]Read from MH i2c: 01 [20:12:22]MH_I2C_Read... [20:12:22]Read from MH i2c: 01 07 00 [20:12:22]MH_I2C_Read... [20:12:22]Read from MH i2c: 01 07 00 F9 14 00 00 00 00 00 AE 0C CE [20:12:22]RasterBufferAndPrint [20:12:22]line [20:12:22]line [20:12:22]line [20:12:22]line [20:12:22]line [20:12:22]written 0, free lines is 3265 [20:12:22]MH_Cut [20:12:22]Write to MH i2c: D1 01 00 00 15 01 E7 [20:12:22]Write i2c OK [20:12:22]MH_I2C_Read... [20:12:22]Read from MH i2c: D1 [20:12:22]MH_I2C_Read... [20:12:22]Read from MH i2c: D1 01 00 [20:12:22]MH_I2C_Read... [20:12:22]Read from MH i2c: D1 01 00 00 15 00 E6 [20:12:22]Write to MH i2c: 01 00 00 01 15 16 [20:12:22]Write i2c OK [20:12:22]MH_I2C_Read... [20:12:23]OFD Sender: No OFD packet to send [20:12:23]*** Cut start [20:12:23]*** Partial cut [20:12:23]*** CUTSNS_PIN = 1 [20:12:23]*** CUTSNS_PIN = 0 [20:12:23]*** Brake cut motor [20:12:24]Read from MH i2c: 01 [20:12:24]MH_I2C_Read... [20:12:24]*** Stop cut motor [20:12:24]*** Cut end [20:12:24]Read from MH i2c: 01 07 00 [20:12:24]MH_I2C_Read... [20:12:24]Read from MH i2c: 01 07 00 01 15 00 00 00 00 00 FF 0F 2B [20:12:24]process_action close_receipt done [20:12:24]requested_data is exist [20:12:24]produce_requested_data [20:12:24]requested_item fm.sn is exist - process it [20:12:24]wFMCommunicate request_size=4 [20:12:24]MH_SAM_APDU [20:12:24]CAPDU: 80 11 00 00 [20:12:24]Write to MH i2c: E2 08 00 02 15 80 11 00 00 00 00 00 00 91 [20:12:24]Write i2c OK [20:12:24]MH_I2C_Read... [20:12:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:24]Read from MH i2c: E2 [20:12:24]MH_I2C_Read... [20:12:24]Read from MH i2c: E2 17 00 [20:12:24]MH_I2C_Read... [20:12:24]Read from MH i2c: E2 17 00 02 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E3 [20:12:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:12:24]wFMCommunicate OK [20:12:24]requested_item fd.num is exist - process it [20:12:24]SAM_PROTO_GetFieldsCounters [20:12:24]wFMCommunicate request_size=4 [20:12:24]MH_SAM_APDU [20:12:24]CAPDU: 80 13 00 00 [20:12:24]Write to MH i2c: E2 08 00 03 15 80 13 00 00 00 00 00 00 94 [20:12:24]Write i2c OK [20:12:24]MH_I2C_Read... [20:12:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:12:24]Read from MH i2c: E2 [20:12:24]MH_I2C_Read... [20:12:24]Read from MH i2c: E2 62 00 [20:12:24]MH_I2C_Read... [20:12:24]Read from MH i2c: E2 62 00 03 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AD 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 8A 01 00 00 5E 04 04 00 8A 01 00 00 57 04 04 00 8B 01 00 00 19 04 04 00 00 00 00 00 90 00 CE [20:12:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AD 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 8A 01 00 00 5E 04 04 00 8A 01 00 00 57 04 04 00 8B 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:12:24]wFMCommunicate OK [20:12:24]SAM_PROTO_GetFieldsCounters done [20:12:24]requested_item shift.num is exist - process it [20:12:24]requested_item shift.opened is exist - process it [20:12:24]req_shift_opened [20:12:24]FM_GetShiftState [20:12:24]SAM_PROTO_GetShiftState [20:12:24]wFMCommunicate request_size=4 [20:12:24]MH_SAM_APDU [20:12:24]CAPDU: 80 13 01 00 [20:12:24]Write to MH i2c: E2 08 00 04 15 80 13 01 00 00 00 00 00 96 [20:12:24]Write i2c OK [20:12:24]MH_I2C_Read... [20:12:24]Read from MH i2c: E2 [20:12:24]MH_I2C_Read... [20:12:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:24]Read from MH i2c: E2 0E 00 [20:12:24]MH_I2C_Read... [20:12:24]Read from MH i2c: E2 0E 00 04 15 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 9C [20:12:24]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:12:24]wFMCommunicate OK [20:12:24]SAM_PROTO_GetShiftState done [20:12:24]FM_GetShiftState done [20:12:24]req_shift_opened done [20:12:24]requested_item shift.open_date is exist - process it [20:12:24]req_shift_open_date [20:12:24]req_shift_open_date done [20:12:24]produce_requested_data done [20:12:24]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69549,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [20:12:24]process_action_free close_receipt [20:12:24]json_value_free [20:12:24]json_value_free done [20:12:24]process_json_proto returns [20:12:24]Send response to host [20:12:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69549,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [20:12:24]free response buf [20:12:24]execute_script done [20:12:24]execute_script returns [20:12:24]free content buf [20:12:24]Sock 7.Close socket [20:12:24]Sock 7.Thread stoped [20:12:25]accept exits with 9 [20:12:25]New connection [20:12:25]New thread 3066654052 created [20:12:25]Thread 3066797412 joined [20:12:25]Waiting for new connection... [20:12:25] Sock 9.Parse request [20:12:25]Sock 9.Check first char [20:12:25]Sock 9.First char is OK [20:12:25]request: POST /json_proto HTTP/1.0 [20:12:25]Method: POST [20:12:25]URL: /json_proto [20:12:25]Method is POST - this is cgi request [20:12:25]url: /json_proto [20:12:25]query_string will be loaded in cgi processing [20:12:25]execute_cgi json_proto POST (null) [20:12:25]execute_cgi path=json_proto method=POST [20:12:25]POST find Content-Length [20:12:25]Host: 172.17.50.3:8080 [20:12:25]Content-Length: 1036 [20:12:25]Content-Type: application/json [20:12:25] [20:12:25]POST finish read [20:12:25]Found Content-Length = 1036 [20:12:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 69549, "base_FM": "0000000000963346", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 106.390, "sum" : 8000.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 106.39 \u0441\u043E\u043C", "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:25]execute_script... [20:12:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 69549, "base_FM": "0000000000963346", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 106.390, "sum" : 8000.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 106.39 \u0441\u043E\u043C", "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:25]POST & json_proto [20:12:25]process_json_proto [20:12:25]json parsed OK: [20:12:25]protocol is kg_v1.0 [20:12:25]action value=close_receipt [20:12:25]process_action close_receipt [20:12:25]cmd_close_receipt [20:12:25]MH_GetDate [20:12:25]Write to MH i2c: F0 00 00 05 15 09 [20:12:25]Write i2c OK [20:12:25]MH_I2C_Read... [20:12:25]Read from MH i2c: F0 [20:12:25]MH_I2C_Read... [20:12:25]Read from MH i2c: F0 09 00 [20:12:25]MH_I2C_Read... [20:12:25]Read from MH i2c: F0 09 00 05 15 00 29 64 15 67 6B 98 1E 66 A2 [20:12:25]GetLastDocTimeStamp 1729455140 [20:12:25]current date 1729455145 [20:12:25]FM_GetShiftState [20:12:25]SAM_PROTO_GetShiftState [20:12:25]wFMCommunicate request_size=4 [20:12:25]MH_SAM_APDU [20:12:25]CAPDU: 80 13 01 00 [20:12:25]Write to MH i2c: E2 08 00 06 15 80 13 01 00 00 00 00 00 98 [20:12:25]Write i2c OK [20:12:25]MH_I2C_Read... [20:12:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:25]Read from MH i2c: E2 [20:12:25]MH_I2C_Read... [20:12:25]Read from MH i2c: E2 0E 00 [20:12:25]MH_I2C_Read... [20:12:25]Read from MH i2c: E2 0E 00 06 15 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 9E [20:12:25]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:12:25]wFMCommunicate OK [20:12:25]SAM_PROTO_GetShiftState done [20:12:25]FM_GetShiftState done [20:12:25]opened in 1729383220 [20:12:25]opened+sec_in_day 1729469620 [20:12:25]quantity*price = 800052 [20:12:25]sum+1 = 800054 [20:12:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 8000.00 НСП 1% : 70.80 НДС 12% : 849.61 Наличными: 8000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 395 20.10.2024 20:12 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФД осн.: 69549 ФМ осн.: 0000000000963346 Дисконтная программа ДТ номер 85 сэкономлено 106.39 сом ФМ: 0000000000963346 ФД: 69550 ФПД: 100818241104962 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201225&type=2&operation_type=1&fn_number=0000000000963346&fd_number=69550&fm=100818241104962&tin=02508201610067®Number=0000000000156251&sum=800000 [20:12:26]StoreToDocumentArchive [20:12:26]shift 193 fd 69550 [20:12:26]save to /storage/0193/doc_00069550 [20:12:26]save last doc name /storage/0193/doc_00069550 to /storage/kkm_last_doc_name [20:12:26]save OK [20:12:26]Clear old archive folders... [20:12:26]ProcessDocumentItem done err = 0, tmpTLVsize=276 [20:12:26]tlvbuf is 00F76E90 [20:12:26]SAM_PROTO_ClearQueue [20:12:26]wFMCommunicate request_size=4 [20:12:26]MH_SAM_APDU [20:12:26]CAPDU: 80 09 00 00 [20:12:26]Write to MH i2c: E2 08 00 15 15 80 09 00 00 00 00 00 00 9C [20:12:26]Write i2c OK [20:12:26]MH_I2C_Read... [20:12:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:12:26]Read from MH i2c: E2 [20:12:26]MH_I2C_Read... [20:12:26]Read from MH i2c: E2 03 00 [20:12:26]MH_I2C_Read... [20:12:26]Read from MH i2c: E2 03 00 15 15 00 90 00 9E [20:12:26]RAPDU: 90 00 [20:12:26]wFMCommunicate OK [20:12:26]SAM_PROTO_ClearQueue done [20:12:26]KKMCreateOFDPacket [20:12:26]OFDProtocolAddRootSTLVToBuf [20:12:26]FM_MakeSignedData [20:12:26]FM_MakeSignedData [20:12:26]SAM_PROTO_SignData [20:12:26]wFMCommunicate request_size=4 [20:12:26]MH_SAM_APDU [20:12:26]CAPDU: 80 0D 01 02 [20:12:26]Write to MH i2c: E2 08 00 16 15 80 0D 01 02 00 00 00 00 A4 [20:12:26]Write i2c OK [20:12:26]MH_I2C_Read... [20:12:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:12:26]Read from MH i2c: E2 [20:12:26]MH_I2C_Read... [20:12:26]Read from MH i2c: E2 03 00 [20:12:26]MH_I2C_Read... [20:12:26]Read from MH i2c: E2 03 00 16 15 00 90 00 9F [20:12:26]RAPDU: 90 00 [20:12:26]wFMCommunicate OK [20:12:26]wFMCommunicate request_size=255 [20:12:26]MH_SAM_APDU [20:12:26]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 01 00 00 F4 03 04 00 29 64 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 AD 0F 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 30 30 [20:12:26]Write to MH i2c: E2 02 01 17 15 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 01 00 00 F4 03 04 00 29 64 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 AD 0F 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 30 30 00 00 9B [20:12:27]Write i2c OK [20:12:27]MH_I2C_Read... [20:12:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:27]Read from MH i2c: E2 [20:12:27]MH_I2C_Read... [20:12:27]Read from MH i2c: E2 03 00 [20:12:27]MH_I2C_Read... [20:12:27]Read from MH i2c: E2 03 00 17 15 00 90 00 A0 [20:12:27]RAPDU: 90 00 [20:12:27]wFMCommunicate OK [20:12:27]wFMCommunicate request_size=35 [20:12:27]MH_SAM_APDU [20:12:27]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AE 0F 01 00 35 04 06 00 5B B1 93 72 AC 42 [20:12:27]Write to MH i2c: E2 26 00 18 15 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AE 0F 01 00 35 04 06 00 5B B1 93 72 AC 42 00 00 56 [20:12:27]Write i2c OK [20:12:27]MH_I2C_Read... [20:12:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:27]Read from MH i2c: E2 [20:12:27]MH_I2C_Read... [20:12:27]Read from MH i2c: E2 03 00 [20:12:27]MH_I2C_Read... [20:12:27]Read from MH i2c: E2 03 00 18 15 00 90 00 A1 [20:12:27]RAPDU: 90 00 [20:12:27]wFMCommunicate OK [20:12:27]wFMCommunicate request_size=4 [20:12:27]MH_SAM_APDU [20:12:27]CAPDU: 80 0D 03 02 [20:12:27]Write to MH i2c: E2 08 00 19 15 80 0D 03 02 00 00 00 00 A9 [20:12:27]Write i2c OK [20:12:27]MH_I2C_Read... [20:12:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:12:27]Read from MH i2c: E2 [20:12:27]MH_I2C_Read... [20:12:27]Read from MH i2c: E2 0B 00 [20:12:27]MH_I2C_Read... [20:12:27]Read from MH i2c: E2 0B 00 19 15 00 A3 95 62 CD 34 50 DE BC 90 00 2F [20:12:27]RAPDU: A3 95 62 CD 34 50 DE BC 90 00 [20:12:27]wFMCommunicate OK [20:12:27]SAM_PROTO_SignData done [20:12:27]FM_MakeSignedData done [20:12:27]CreateOFDProtocolMessage [20:12:27]wFMCommunicate request_size=4 [20:12:27]MH_SAM_APDU [20:12:27]CAPDU: 80 11 00 00 [20:12:27]Write to MH i2c: E2 08 00 1A 15 80 11 00 00 00 00 00 00 A9 [20:12:27]Write i2c OK [20:12:27]MH_I2C_Read... [20:12:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:27]Read from MH i2c: E2 [20:12:27]MH_I2C_Read... [20:12:27]Read from MH i2c: E2 17 00 [20:12:27]MH_I2C_Read... [20:12:27]Read from MH i2c: E2 17 00 1A 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FB [20:12:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:12:27]wFMCommunicate OK [20:12:27]CreateOFDProtocolMessage done [20:12:27]OFDSenderStorePacket 69550 [20:12:27]StoreOFDPacket docnum=69550 [20:12:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 28 01 00 00 D6 6F 20 01 AA B6 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 01 00 00 F4 03 04 00 29 64 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 AD 0F 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AE 0F 01 00 35 04 06 00 5B B1 93 72 AC 42 A3 95 62 CD 34 50 DE BC [20:12:27]CheckFolder [20:12:27]dirname=/storage/ofd_packets [20:12:27]CheckFolder done [20:12:27]ProducePacketName [20:12:27]name=ofd_packets/00069550 [20:12:27]NVStorageSaveData ofd_packets/00069550 [20:12:27]File name is /storage/ofd_packets/00069550 [20:12:27]Write 326 bytes [20:12:27]NVStorageSaveData done [20:12:27]OFDSenderStorePacket done [20:12:27]KKMCreateOFDPacket done [20:12:27]NVStorageSaveData kkm_last_timestamp [20:12:27]File name is /storage/kkm_last_timestamp [20:12:27]Write 4 bytes [20:12:27]NVStorageSaveData done [20:12:27]ExternCall_PrintAddStr [20:12:27]wPrintStart [20:12:27]Write to MH i2c: 01 00 00 1B 15 30 [20:12:27]Write i2c OK [20:12:27]MH_I2C_Read... [20:12:27]Read from MH i2c: 01 [20:12:27]MH_I2C_Read... [20:12:27]Read from MH i2c: 01 07 00 [20:12:27]MH_I2C_Read... [20:12:27]Read from MH i2c: 01 07 00 1B 15 00 00 00 00 00 FF 0F 45 [20:12:27]RasterBufferAndPrint [20:12:27]line Счет N : (1)2885289 [20:12:27]line ИНН: 02508201610067 [20:12:27]line Контрольно-Кассовый Чек [20:12:27]line ВОЗВРАТ ПРОДАЖИ [20:12:27]line ТРК (МРК, ГНК) : 51 [20:12:27]line Товар: 2710194210 [20:12:27]line ДТ-К-5 [20:12:27]line 106.390 * 75.20 [20:12:27]line = 8000.53 [20:12:27]line НДС 12% НСП 1% [20:12:27]line > о реализуемом товаре [20:12:27]line ОКРУГЛЕНИЕ: -0.53 [20:12:27]line ИТОГО: 8000.00 [20:12:27]line НСП 1% : 70.80 [20:12:27]line НДС 12% : 849.61 [20:12:27]line Наличными: 8000.00 [20:12:27]line Безнал.: 0.00 [20:12:27]line Место: АЗС № 85 "Партнер Нефть" [20:12:27]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:12:27]line СНО: Общий режим [20:12:27]line Чек 395 20.10.2024 20:12 [20:12:27]line Смена: 193 ФФД: 1.0 [20:12:27]line ЗНМ: 0300000167 [20:12:27]line РНМ: 0000000000156251 [20:12:27]line Версия ККМ: v1.0 [20:12:27]line ФД осн.: 69549 [20:12:27]line ФМ осн.: 0000000000963346 [20:12:27]line [20:12:27]line Дисконтная программа [20:12:27]line ДТ [20:12:27]line номер 85 [20:12:27]line сэкономлено 106.39 сом [20:12:27]line ФМ: 0000000000963346 [20:12:27]line ФД: 69550 [20:12:27]line ФПД: 100818241104962 [20:12:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201225&type=2&operation_type=1&fn_number=0000000000963346&fd_number=69550&fm=100818241104962&tin=02508201610067®Number=0000000000156251&sum=800000 [20:12:27]OFD Sender: Processing packet 69550 [packets to send 18, broken 17] [20:12:27]ProducePacketName [20:12:27]name=ofd_packets/00069550 [20:12:27]OFD Sender: To server: pG, [20:12:27]CommunicateWithHost lk.salyk.kg:30040 [20:12:27]ConnectInit lk.salyk.kg [20:12:27]written 0, free lines is 4095 [20:12:27]Connected sock=10 [20:12:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 28 01 00 00 D6 6F 20 01 AA B6 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 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 96 9F 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 35 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 01 00 00 F4 03 04 00 29 64 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 27 04 04 00 AD 0F 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AE 0F 01 00 35 04 06 00 5B B1 93 72 AC 42 A3 95 62 CD 34 50 DE BC [20:12:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 84 20 47 00 8E A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AE 0F 01 00 F4 03 04 00 D0 0D 15 67 B6 04 01 00 00 D5 64 5E 09 2C F5 37 CC [20:12:28]CommunicateWithHost err = 0 [20:12:28]CheckOFDResponse [20:12:28]1017 (14) - 77093643461234 [20:12:28]1041 (16) - 0000000000963346 [20:12:28]1040 (4) - 69550 [20:12:28]1012 (4) - 20.10.2024 14:04 [20:12:28]1206 (1) - 0 [20:12:28]OFD Sender: Remove packet 69550 [20:12:28]ProducePacketName [20:12:28]name=ofd_packets/00069550 [20:12:28]NVStorageDeleteData [20:12:28]Write to MH i2c: 01 00 00 4B 15 60 [20:12:28]Write i2c OK [20:12:28]MH_I2C_Read... [20:12:28]Read from MH i2c: 01 [20:12:28]MH_I2C_Read... [20:12:28]Read from MH i2c: 01 07 00 [20:12:28]MH_I2C_Read... [20:12:28]Read from MH i2c: 01 07 00 4B 15 00 00 00 00 00 B6 0C 29 [20:12:28]RasterBufferAndPrint [20:12:28]line [20:12:28]line [20:12:28]line [20:12:28]line [20:12:28]line [20:12:28]written 0, free lines is 3279 [20:12:28]MH_Cut [20:12:28]Write to MH i2c: D1 01 00 52 15 01 39 [20:12:28]Write i2c OK [20:12:28]MH_I2C_Read... [20:12:28]Read from MH i2c: D1 [20:12:28]MH_I2C_Read... [20:12:28]Read from MH i2c: D1 01 00 [20:12:28]MH_I2C_Read... [20:12:28]Read from MH i2c: D1 01 00 52 15 00 38 [20:12:28]Write to MH i2c: 01 00 00 53 15 68 [20:12:28]Write i2c OK [20:12:28]MH_I2C_Read... [20:12:28]OFD Sender: No OFD packet to send [20:12:28]*** Cut start [20:12:28]*** Partial cut [20:12:28]*** CUTSNS_PIN = 1 [20:12:28]*** CUTSNS_PIN = 0 [20:12:29]*** Brake cut motor [20:12:29]Read from MH i2c: 01 [20:12:29]MH_I2C_Read... [20:12:29]*** Stop cut motor [20:12:29]*** Cut end [20:12:29]Read from MH i2c: 01 07 00 [20:12:29]MH_I2C_Read... [20:12:29]Read from MH i2c: 01 07 00 53 15 00 00 00 00 00 FF 0F 7D [20:12:29]process_action close_receipt done [20:12:29]requested_data is exist [20:12:29]produce_requested_data [20:12:29]requested_item fm.sn is exist - process it [20:12:29]wFMCommunicate request_size=4 [20:12:29]MH_SAM_APDU [20:12:29]CAPDU: 80 11 00 00 [20:12:29]Write to MH i2c: E2 08 00 54 15 80 11 00 00 00 00 00 00 E3 [20:12:29]Write i2c OK [20:12:29]MH_I2C_Read... [20:12:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:29]Read from MH i2c: E2 [20:12:29]MH_I2C_Read... [20:12:29]Read from MH i2c: E2 17 00 [20:12:29]MH_I2C_Read... [20:12:29]Read from MH i2c: E2 17 00 54 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 35 [20:12:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:12:29]wFMCommunicate OK [20:12:29]requested_item fd.num is exist - process it [20:12:29]SAM_PROTO_GetFieldsCounters [20:12:29]wFMCommunicate request_size=4 [20:12:29]MH_SAM_APDU [20:12:29]CAPDU: 80 13 00 00 [20:12:29]Write to MH i2c: E2 08 00 55 15 80 13 00 00 00 00 00 00 E6 [20:12:29]Write i2c OK [20:12:29]MH_I2C_Read... [20:12:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:12:29]Read from MH i2c: E2 [20:12:29]MH_I2C_Read... [20:12:29]Read from MH i2c: E2 62 00 [20:12:29]MH_I2C_Read... [20:12:29]Read from MH i2c: E2 62 00 55 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AE 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 8B 01 00 00 5E 04 04 00 8B 01 00 00 57 04 04 00 8C 01 00 00 19 04 04 00 00 00 00 00 90 00 24 [20:12:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AE 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 8B 01 00 00 5E 04 04 00 8B 01 00 00 57 04 04 00 8C 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:12:29]wFMCommunicate OK [20:12:29]SAM_PROTO_GetFieldsCounters done [20:12:29]requested_item shift.num is exist - process it [20:12:29]requested_item shift.opened is exist - process it [20:12:29]req_shift_opened [20:12:29]FM_GetShiftState [20:12:29]SAM_PROTO_GetShiftState [20:12:29]wFMCommunicate request_size=4 [20:12:29]MH_SAM_APDU [20:12:29]CAPDU: 80 13 01 00 [20:12:29]Write to MH i2c: E2 08 00 56 15 80 13 01 00 00 00 00 00 E8 [20:12:29]Write i2c OK [20:12:29]MH_I2C_Read... [20:12:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:29]Read from MH i2c: E2 [20:12:29]MH_I2C_Read... [20:12:29]Read from MH i2c: E2 0E 00 [20:12:29]MH_I2C_Read... [20:12:29]Read from MH i2c: E2 0E 00 56 15 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 EE [20:12:29]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:12:29]wFMCommunicate OK [20:12:29]SAM_PROTO_GetShiftState done [20:12:29]FM_GetShiftState done [20:12:29]req_shift_opened done [20:12:29]requested_item shift.open_date is exist - process it [20:12:29]req_shift_open_date [20:12:29]req_shift_open_date done [20:12:29]produce_requested_data done [20:12:29]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69550,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [20:12:29]process_action_free close_receipt [20:12:29]json_value_free [20:12:29]json_value_free done [20:12:29]process_json_proto returns [20:12:29]Send response to host [20:12:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69550,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [20:12:29]free response buf [20:12:29]execute_script done [20:12:29]execute_script returns [20:12:29]free content buf [20:12:29]Sock 9.Close socket [20:12:29]Sock 9.Thread stoped [20:12:33]OFD Sender: No OFD packet to send [20:12:38]OFD Sender: No OFD packet to send [20:12:43]OFD Sender: No OFD packet to send [20:12:48]OFD Sender: No OFD packet to send [20:12:53]OFD Sender: No OFD packet to send [20:12:58]OFD Sender: No OFD packet to send [20:13:03]OFD Sender: No OFD packet to send [20:13:08]OFD Sender: No OFD packet to send [20:13:13]OFD Sender: No OFD packet to send [20:13:18]OFD Sender: No OFD packet to send [20:13:23]OFD Sender: No OFD packet to send [20:13:28]OFD Sender: No OFD packet to send [20:13:33]OFD Sender: No OFD packet to send [20:13:38]OFD Sender: No OFD packet to send [20:13:43]OFD Sender: No OFD packet to send [20:13:48]OFD Sender: No OFD packet to send [20:13:53]OFD Sender: No OFD packet to send [20:13:58]OFD Sender: No OFD packet to send [20:14:03]OFD Sender: No OFD packet to send [20:14:08]OFD Sender: No OFD packet to send [20:14:13]OFD Sender: No OFD packet to send [20:14:18]OFD Sender: No OFD packet to send [20:14:23]OFD Sender: No OFD packet to send [20:14:28]OFD Sender: No OFD packet to send [20:14:33]OFD Sender: No OFD packet to send [20:14:38]OFD Sender: No OFD packet to send [20:14:43]OFD Sender: No OFD packet to send [20:14:48]OFD Sender: No OFD packet to send [20:14:53]OFD Sender: No OFD packet to send [20:14:58]OFD Sender: No OFD packet to send [20:15:03]OFD Sender: No OFD packet to send [20:15:08]OFD Sender: No OFD packet to send [20:15:13]OFD Sender: No OFD packet to send [20:15:18]OFD Sender: No OFD packet to send [20:15:23]OFD Sender: No OFD packet to send [20:15:28]OFD Sender: No OFD packet to send [20:15:33]OFD Sender: No OFD packet to send [20:15:38]OFD Sender: No OFD packet to send [20:15:43]OFD Sender: No OFD packet to send [20:15:48]OFD Sender: No OFD packet to send [20:15:53]OFD Sender: No OFD packet to send [20:15:58]OFD Sender: No OFD packet to send [20:16:03]OFD Sender: No OFD packet to send [20:16:08]OFD Sender: No OFD packet to send [20:16:13]OFD Sender: No OFD packet to send [20:16:18]OFD Sender: No OFD packet to send [20:16:23]OFD Sender: No OFD packet to send [20:16:28]OFD Sender: No OFD packet to send [20:16:33]OFD Sender: No OFD packet to send [20:16:38]OFD Sender: No OFD packet to send [20:16:43]OFD Sender: No OFD packet to send [20:16:48]OFD Sender: No OFD packet to send [20:16:53]OFD Sender: No OFD packet to send [20:16:58]OFD Sender: No OFD packet to send [20:17:03]OFD Sender: No OFD packet to send [20:17:08]OFD Sender: No OFD packet to send [20:17:13]OFD Sender: No OFD packet to send [20:17:18]OFD Sender: No OFD packet to send [20:17:23]OFD Sender: No OFD packet to send [20:17:28]OFD Sender: No OFD packet to send [20:17:33]OFD Sender: No OFD packet to send [20:17:38]OFD Sender: No OFD packet to send [20:17:43]OFD Sender: No OFD packet to send [20:17:48]OFD Sender: No OFD packet to send [20:17:53]OFD Sender: No OFD packet to send [20:17:58]OFD Sender: No OFD packet to send [20:18:03]OFD Sender: No OFD packet to send [20:18:08]OFD Sender: No OFD packet to send [20:18:13]OFD Sender: No OFD packet to send [20:18:18]OFD Sender: No OFD packet to send [20:18:23]OFD Sender: No OFD packet to send [20:18:28]OFD Sender: No OFD packet to send [20:18:33]OFD Sender: No OFD packet to send [20:18:38]OFD Sender: No OFD packet to send [20:18:43]OFD Sender: No OFD packet to send [20:18:48]OFD Sender: No OFD packet to send [20:18:53]OFD Sender: No OFD packet to send [20:18:58]OFD Sender: No OFD packet to send [20:19:03]OFD Sender: No OFD packet to send [20:19:08]OFD Sender: No OFD packet to send [20:19:13]OFD Sender: No OFD packet to send [20:19:18]OFD Sender: No OFD packet to send [20:19:23]OFD Sender: No OFD packet to send [20:19:28]OFD Sender: No OFD packet to send [20:19:33]OFD Sender: No OFD packet to send [20:19:38]OFD Sender: No OFD packet to send [20:19:43]OFD Sender: No OFD packet to send [20:19:48]OFD Sender: No OFD packet to send [20:19:53]OFD Sender: No OFD packet to send [20:19:58]OFD Sender: No OFD packet to send [20:20:03]OFD Sender: No OFD packet to send [20:20:09]OFD Sender: No OFD packet to send [20:20:14]OFD Sender: No OFD packet to send [20:20:19]OFD Sender: No OFD packet to send [20:20:24]OFD Sender: No OFD packet to send [20:20:29]OFD Sender: No OFD packet to send [20:20:34]OFD Sender: No OFD packet to send [20:20:39]OFD Sender: No OFD packet to send [20:20:44]OFD Sender: No OFD packet to send [20:20:49]OFD Sender: No OFD packet to send [20:20:54]OFD Sender: No OFD packet to send [20:20:59]OFD Sender: No OFD packet to send [20:21:04]OFD Sender: No OFD packet to send [20:21:09]OFD Sender: No OFD packet to send [20:21:14]OFD Sender: No OFD packet to send [20:21:19]OFD Sender: No OFD packet to send [20:21:24]OFD Sender: No OFD packet to send [20:21:29]OFD Sender: No OFD packet to send [20:21:34]OFD Sender: No OFD packet to send [20:21:39]OFD Sender: No OFD packet to send [20:21:44]OFD Sender: No OFD packet to send [20:21:49]OFD Sender: No OFD packet to send [20:21:54]OFD Sender: No OFD packet to send [20:21:59]OFD Sender: No OFD packet to send [20:22:04]OFD Sender: No OFD packet to send [20:22:09]OFD Sender: No OFD packet to send [20:22:14]OFD Sender: No OFD packet to send [20:22:19]OFD Sender: No OFD packet to send [20:22:24]OFD Sender: No OFD packet to send [20:22:29]OFD Sender: No OFD packet to send [20:22:34]accept exits with 7 [20:22:34]New connection [20:22:34]New thread 3066797412 created [20:22:34]Thread 3066654052 joined [20:22:34]Waiting for new connection... [20:22:34] Sock 7.Parse request [20:22:34]Sock 7.Check first char [20:22:34]Sock 7.First char is OK [20:22:34]request: POST /json_proto HTTP/1.0 [20:22:34]Method: POST [20:22:34]URL: /json_proto [20:22:34]Method is POST - this is cgi request [20:22:34]url: /json_proto [20:22:34]query_string will be loaded in cgi processing [20:22:34]execute_cgi json_proto POST (null) [20:22:34]execute_cgi path=json_proto method=POST [20:22:34]POST find Content-Length [20:22:34]Host: 172.17.50.3:8080 [20:22:34]Content-Length: 678 [20:22:34]Content-Type: application/json [20:22:34] [20:22:34]POST finish read [20:22:34]Found Content-Length = 678 [20:22:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.230, "sum" : 550.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:22:34]execute_script... [20:22:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.230, "sum" : 550.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:22:34]POST & json_proto [20:22:34]process_json_proto [20:22:34]json parsed OK: [20:22:34]protocol is kg_v1.0 [20:22:34]action value=close_receipt [20:22:34]process_action close_receipt [20:22:34]cmd_close_receipt [20:22:34]MH_GetDate [20:22:34]Write to MH i2c: F0 00 00 57 15 5B [20:22:34]Write i2c OK [20:22:34]MH_I2C_Read... [20:22:34]Read from MH i2c: F0 [20:22:34]MH_I2C_Read... [20:22:34]Read from MH i2c: F0 09 00 [20:22:34]MH_I2C_Read... [20:22:34]Read from MH i2c: F0 09 00 57 15 00 8A 66 15 67 6B 98 1E 66 57 [20:22:34]GetLastDocTimeStamp 1729455145 [20:22:34]current date 1729455754 [20:22:34]FM_GetShiftState [20:22:34]SAM_PROTO_GetShiftState [20:22:34]wFMCommunicate request_size=4 [20:22:34]MH_SAM_APDU [20:22:34]CAPDU: 80 13 01 00 [20:22:34]Write to MH i2c: E2 08 00 58 15 80 13 01 00 00 00 00 00 EA [20:22:34]Write i2c OK [20:22:34]MH_I2C_Read... [20:22:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:22:34]Read from MH i2c: E2 [20:22:34]MH_I2C_Read... [20:22:34]Read from MH i2c: E2 0E 00 [20:22:34]MH_I2C_Read... [20:22:34]Read from MH i2c: E2 0E 00 58 15 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 F0 [20:22:34]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:22:34]wFMCommunicate OK [20:22:34]SAM_PROTO_GetShiftState done [20:22:34]FM_GetShiftState done [20:22:34]opened in 1729383220 [20:22:34]opened+sec_in_day 1729469620 [20:22:34]quantity*price = 55058 [20:22:34]sum+1 = 55060 [20:22:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.47 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 396 20.10.2024 20:22 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69551 ФПД: 252779779056365 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T202234&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69551&fm=252779779056365&tin=02508201610067®Number=0000000000156251&sum=55000 [20:22:35]StoreToDocumentArchive [20:22:35]shift 193 fd 69551 [20:22:35]save to /storage/0193/doc_00069551 [20:22:35]save last doc name /storage/0193/doc_00069551 to /storage/kkm_last_doc_name [20:22:35]save OK [20:22:35]Clear old archive folders... [20:22:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:22:35]tlvbuf is 00F7EC80 [20:22:35]SAM_PROTO_ClearQueue [20:22:35]wFMCommunicate request_size=4 [20:22:35]MH_SAM_APDU [20:22:35]CAPDU: 80 09 00 00 [20:22:35]Write to MH i2c: E2 08 00 65 15 80 09 00 00 00 00 00 00 EC [20:22:35]Write i2c OK [20:22:35]MH_I2C_Read... [20:22:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:22:35]Read from MH i2c: E2 [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: E2 03 00 [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: E2 03 00 65 15 00 90 00 EE [20:22:35]RAPDU: 90 00 [20:22:35]wFMCommunicate OK [20:22:35]SAM_PROTO_ClearQueue done [20:22:35]KKMCreateOFDPacket [20:22:35]OFDProtocolAddRootSTLVToBuf [20:22:35]FM_MakeSignedData [20:22:35]FM_MakeSignedData [20:22:35]SAM_PROTO_SignData [20:22:35]wFMCommunicate request_size=4 [20:22:35]MH_SAM_APDU [20:22:35]CAPDU: 80 0D 01 02 [20:22:35]Write to MH i2c: E2 08 00 66 15 80 0D 01 02 00 00 00 00 F4 [20:22:35]Write i2c OK [20:22:35]MH_I2C_Read... [20:22:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:22:35]Read from MH i2c: E2 [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: E2 03 00 [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: E2 03 00 66 15 00 90 00 EF [20:22:35]RAPDU: 90 00 [20:22:35]wFMCommunicate OK [20:22:35]wFMCommunicate request_size=255 [20:22:35]MH_SAM_APDU [20:22: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 35 FF 03 08 00 03 26 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 01 00 00 F4 03 04 00 8A 66 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AF 0F 01 00 35 04 06 00 E5 [20:22:35]Write to MH i2c: E2 02 01 67 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 35 FF 03 08 00 03 26 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 01 00 00 F4 03 04 00 8A 66 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AF 0F 01 00 35 04 06 00 E5 00 00 F3 [20:22:35]Write i2c OK [20:22:35]MH_I2C_Read... [20:22:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:22:35]Read from MH i2c: E2 [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: E2 03 00 [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: E2 03 00 67 15 00 90 00 F0 [20:22:35]RAPDU: 90 00 [20:22:35]wFMCommunicate OK [20:22:35]wFMCommunicate request_size=10 [20:22:35]MH_SAM_APDU [20:22:35]CAPDU: 80 0D 02 02 05 E6 E0 EF E2 ED [20:22:35]Write to MH i2c: E2 0D 00 68 15 80 0D 02 02 05 00 E6 E0 EF E2 ED 00 00 85 [20:22:35]Write i2c OK [20:22:35]MH_I2C_Read... [20:22:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:22:35]Read from MH i2c: E2 [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: E2 03 00 [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: E2 03 00 68 15 00 90 00 F1 [20:22:35]RAPDU: 90 00 [20:22:35]wFMCommunicate OK [20:22:35]wFMCommunicate request_size=4 [20:22:35]MH_SAM_APDU [20:22:35]CAPDU: 80 0D 03 02 [20:22:35]Write to MH i2c: E2 08 00 69 15 80 0D 03 02 00 00 00 00 F9 [20:22:35]Write i2c OK [20:22:35]MH_I2C_Read... [20:22:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:22:35]Read from MH i2c: E2 [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: E2 0B 00 [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: E2 0B 00 69 15 00 68 88 B1 D3 86 23 70 E7 90 00 6E [20:22:35]RAPDU: 68 88 B1 D3 86 23 70 E7 90 00 [20:22:35]wFMCommunicate OK [20:22:35]SAM_PROTO_SignData done [20:22:35]FM_MakeSignedData done [20:22:35]CreateOFDProtocolMessage [20:22:35]wFMCommunicate request_size=4 [20:22:35]MH_SAM_APDU [20:22:35]CAPDU: 80 11 00 00 [20:22:35]Write to MH i2c: E2 08 00 6A 15 80 11 00 00 00 00 00 00 F9 [20:22:35]Write i2c OK [20:22:35]MH_I2C_Read... [20:22:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:22:35]Read from MH i2c: E2 [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: E2 17 00 [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: E2 17 00 6A 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4B [20:22:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:22:35]wFMCommunicate OK [20:22:35]CreateOFDProtocolMessage done [20:22:35]OFDSenderStorePacket 69551 [20:22:35]StoreOFDPacket docnum=69551 [20:22:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 64 28 07 01 81 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 01 00 00 F4 03 04 00 8A 66 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AF 0F 01 00 35 04 06 00 E5 E6 E0 EF E2 ED 68 88 B1 D3 86 23 70 E7 [20:22:35]CheckFolder [20:22:35]dirname=/storage/ofd_packets [20:22:35]CheckFolder done [20:22:35]ProducePacketName [20:22:35]name=ofd_packets/00069551 [20:22:35]NVStorageSaveData ofd_packets/00069551 [20:22:35]File name is /storage/ofd_packets/00069551 [20:22:35]Write 301 bytes [20:22:35]NVStorageSaveData done [20:22:35]OFDSenderStorePacket done [20:22:35]KKMCreateOFDPacket done [20:22:35]NVStorageSaveData kkm_last_timestamp [20:22:35]File name is /storage/kkm_last_timestamp [20:22:35]Write 4 bytes [20:22:35]NVStorageSaveData done [20:22:35]ExternCall_PrintAddStr [20:22:35]wPrintStart [20:22:35]Write to MH i2c: 01 00 00 6B 15 80 [20:22:35]Write i2c OK [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: 01 [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: 01 07 00 [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: 01 07 00 6B 15 00 00 00 00 00 FF 0F 95 [20:22:35]RasterBufferAndPrint [20:22:35]line Счет N : (1)2885290 [20:22:35]line ИНН: 02508201610067 [20:22:35]line Контрольно-Кассовый Чек [20:22:35]line ПРОДАЖА [20:22:35]line ТРК (МРК, ГНК) : 32 [20:22:35]line Товар: 2710124130 [20:22:35]line Аи-92-К-5 [20:22:35]line 8.230 * 66.90 [20:22:35]line = 550.59 [20:22:35]line НДС 12% НСП 1% [20:22:35]line > о реализуемом товаре [20:22:35]line ОКРУГЛЕНИЕ: -0.59 [20:22:35]line ИТОГО: 550.00 [20:22:35]line Внесено: 550.00 [20:22:35]line СДАЧА: 0.00 [20:22:35]line НСП 1% : 4.87 [20:22:35]line НДС 12% : 58.47 [20:22:35]line Наличными: 550.00 [20:22:35]line Безнал.: 0.00 [20:22:35]line Место: АЗС № 85 "Партнер Нефть" [20:22:35]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:22:35]line СНО: Общий режим [20:22:35]line Чек 396 20.10.2024 20:22 [20:22:35]line Смена: 193 ФФД: 1.0 [20:22:35]line ЗНМ: 0300000167 [20:22:35]line РНМ: 0000000000156251 [20:22:35]line Версия ККМ: v1.0 [20:22:35]line ФМ: 0000000000963346 [20:22:35]line ФД: 69551 [20:22:35]line ФПД: 252779779056365 [20:22:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T202234&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69551&fm=252779779056365&tin=02508201610067®Number=0000000000156251&sum=55000 [20:22:36]OFD Sender: Processing packet 69551 [packets to send 18, broken 17] [20:22:36]ProducePacketName [20:22:36]name=ofd_packets/00069551 [20:22:36]OFD Sender: To server: pG, [20:22:36]CommunicateWithHost lk.salyk.kg:30040 [20:22:36]ConnectInit lk.salyk.kg [20:22:36]written 0, free lines is 4095 [20:22:36]Connected sock=9 [20:22:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 64 28 07 01 81 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 01 00 00 F4 03 04 00 8A 66 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AF 0F 01 00 35 04 06 00 E5 E6 E0 EF E2 ED 68 88 B1 D3 86 23 70 E7 [20:22:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 30 BA 47 00 E4 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 AF 0F 01 00 F4 03 04 00 30 10 15 67 B6 04 01 00 00 FD 40 5C B7 31 35 7A 1A [20:22:36]CommunicateWithHost err = 0 [20:22:36]CheckOFDResponse [20:22:36]1017 (14) - 77093643461234 [20:22:36]1041 (16) - 0000000000963346 [20:22:36]1040 (4) - 69551 [20:22:36]1012 (4) - 20.10.2024 14:14 [20:22:36]1206 (1) - 0 [20:22:36]OFD Sender: Remove packet 69551 [20:22:36]ProducePacketName [20:22:36]name=ofd_packets/00069551 [20:22:36]NVStorageDeleteData [20:22:36]Write to MH i2c: 01 00 00 96 15 AB [20:22:36]Write i2c OK [20:22:36]MH_I2C_Read... [20:22:36]Read from MH i2c: 01 [20:22:36]MH_I2C_Read... [20:22:36]Read from MH i2c: 01 07 00 [20:22:36]MH_I2C_Read... [20:22:36]Read from MH i2c: 01 07 00 96 15 00 00 00 00 00 F9 0C B7 [20:22:36]RasterBufferAndPrint [20:22:36]line [20:22:36]line [20:22:36]line [20:22:36]line [20:22:36]line [20:22:36]written 0, free lines is 3331 [20:22:36]MH_Cut [20:22:36]Write to MH i2c: D1 01 00 9D 15 01 84 [20:22:36]Write i2c OK [20:22:36]MH_I2C_Read... [20:22:36]Read from MH i2c: D1 [20:22:36]MH_I2C_Read... [20:22:36]Read from MH i2c: D1 01 00 [20:22:36]MH_I2C_Read... [20:22:36]Read from MH i2c: D1 01 00 9D 15 00 83 [20:22:36]Write to MH i2c: 01 00 00 9E 15 B3 [20:22:36]Write i2c OK [20:22:36]MH_I2C_Read... [20:22:36]OFD Sender: No OFD packet to send [20:22:37]*** Cut start [20:22:37]*** Partial cut [20:22:37]*** CUTSNS_PIN = 1 [20:22:37]*** CUTSNS_PIN = 0 [20:22:37]*** Brake cut motor [20:22:37]Read from MH i2c: 01 [20:22:37]MH_I2C_Read... [20:22:37]*** Stop cut motor [20:22:37]*** Cut end [20:22:37]Read from MH i2c: 01 07 00 [20:22:37]MH_I2C_Read... [20:22:37]Read from MH i2c: 01 07 00 9E 15 00 00 00 00 00 FF 0F C8 [20:22:37]process_action close_receipt done [20:22:37]requested_data is exist [20:22:37]produce_requested_data [20:22:37]requested_item fm.sn is exist - process it [20:22:37]wFMCommunicate request_size=4 [20:22:37]MH_SAM_APDU [20:22:37]CAPDU: 80 11 00 00 [20:22:37]Write to MH i2c: E2 08 00 9F 15 80 11 00 00 00 00 00 00 2E [20:22:37]Write i2c OK [20:22:37]MH_I2C_Read... [20:22:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:22:37]Read from MH i2c: E2 [20:22:37]MH_I2C_Read... [20:22:37]Read from MH i2c: E2 17 00 [20:22:37]MH_I2C_Read... [20:22:37]Read from MH i2c: E2 17 00 9F 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 80 [20:22:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:22:37]wFMCommunicate OK [20:22:37]requested_item fd.num is exist - process it [20:22:37]SAM_PROTO_GetFieldsCounters [20:22:37]wFMCommunicate request_size=4 [20:22:37]MH_SAM_APDU [20:22:37]CAPDU: 80 13 00 00 [20:22:37]Write to MH i2c: E2 08 00 A0 15 80 13 00 00 00 00 00 00 31 [20:22:37]Write i2c OK [20:22:37]MH_I2C_Read... [20:22:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:22:37]Read from MH i2c: E2 [20:22:37]MH_I2C_Read... [20:22:37]Read from MH i2c: E2 62 00 [20:22:37]MH_I2C_Read... [20:22:37]Read from MH i2c: E2 62 00 A0 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AF 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 8C 01 00 00 5E 04 04 00 8C 01 00 00 57 04 04 00 8D 01 00 00 19 04 04 00 00 00 00 00 90 00 73 [20:22:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 AF 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 8C 01 00 00 5E 04 04 00 8C 01 00 00 57 04 04 00 8D 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:22:38]wFMCommunicate OK [20:22:38]SAM_PROTO_GetFieldsCounters done [20:22:38]requested_item shift.num is exist - process it [20:22:38]requested_item shift.opened is exist - process it [20:22:38]req_shift_opened [20:22:38]FM_GetShiftState [20:22:38]SAM_PROTO_GetShiftState [20:22:38]wFMCommunicate request_size=4 [20:22:38]MH_SAM_APDU [20:22:38]CAPDU: 80 13 01 00 [20:22:38]Write to MH i2c: E2 08 00 A1 15 80 13 01 00 00 00 00 00 33 [20:22:38]Write i2c OK [20:22:38]MH_I2C_Read... [20:22:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:22:38]Read from MH i2c: E2 [20:22:38]MH_I2C_Read... [20:22:38]Read from MH i2c: E2 0E 00 [20:22:38]MH_I2C_Read... [20:22:38]Read from MH i2c: E2 0E 00 A1 15 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 39 [20:22:38]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:22:38]wFMCommunicate OK [20:22:38]SAM_PROTO_GetShiftState done [20:22:38]FM_GetShiftState done [20:22:38]req_shift_opened done [20:22:38]requested_item shift.open_date is exist - process it [20:22:38]req_shift_open_date [20:22:38]req_shift_open_date done [20:22:38]produce_requested_data done [20:22:38]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69551,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [20:22:38]process_action_free close_receipt [20:22:38]json_value_free [20:22:38]json_value_free done [20:22:38]process_json_proto returns [20:22:38]Send response to host [20:22:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69551,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [20:22:38]free response buf [20:22:38]execute_script done [20:22:38]execute_script returns [20:22:38]free content buf [20:22:38]Sock 7.Close socket [20:22:38]Sock 7.Thread stoped [20:22:41]OFD Sender: No OFD packet to send [20:22:46]OFD Sender: No OFD packet to send [20:22:51]OFD Sender: No OFD packet to send [20:22:56]OFD Sender: No OFD packet to send [20:23:01]OFD Sender: No OFD packet to send [20:23:06]OFD Sender: No OFD packet to send [20:23:11]OFD Sender: No OFD packet to send [20:23:16]OFD Sender: No OFD packet to send [20:23:21]OFD Sender: No OFD packet to send [20:23:26]OFD Sender: No OFD packet to send [20:23:31]OFD Sender: No OFD packet to send [20:23:36]OFD Sender: No OFD packet to send [20:23:41]OFD Sender: No OFD packet to send [20:23:46]OFD Sender: No OFD packet to send [20:23:51]OFD Sender: No OFD packet to send [20:23:56]OFD Sender: No OFD packet to send [20:24:01]OFD Sender: No OFD packet to send [20:24:06]OFD Sender: No OFD packet to send [20:24:11]OFD Sender: No OFD packet to send [20:24:16]OFD Sender: No OFD packet to send [20:24:21]OFD Sender: No OFD packet to send [20:24:26]OFD Sender: No OFD packet to send [20:24:31]OFD Sender: No OFD packet to send [20:24:36]OFD Sender: No OFD packet to send [20:24:41]OFD Sender: No OFD packet to send [20:24:46]OFD Sender: No OFD packet to send [20:24:51]OFD Sender: No OFD packet to send [20:24:56]OFD Sender: No OFD packet to send [20:25:01]OFD Sender: No OFD packet to send [20:25:06]OFD Sender: No OFD packet to send [20:25:11]OFD Sender: No OFD packet to send [20:25:16]OFD Sender: No OFD packet to send [20:25:21]OFD Sender: No OFD packet to send [20:25:26]OFD Sender: No OFD packet to send [20:25:31]OFD Sender: No OFD packet to send [20:25:33]accept exits with 10 [20:25:33]New connection [20:25:33]New thread 3066654052 created [20:25:33]Thread 3066797412 joined [20:25:33]Waiting for new connection... [20:25:33] Sock 10.Parse request [20:25:33]Sock 10.Check first char [20:25:33]Sock 10.First char is OK [20:25:33]request: POST /json_proto HTTP/1.0 [20:25:33]Method: POST [20:25:33]URL: /json_proto [20:25:33]Method is POST - this is cgi request [20:25:33]url: /json_proto [20:25:33]query_string will be loaded in cgi processing [20:25:33]execute_cgi json_proto POST (null) [20:25:33]execute_cgi path=json_proto method=POST [20:25:33]POST find Content-Length [20:25:33]Host: 172.17.50.3:8080 [20:25:33]Content-Length: 679 [20:25:33]Content-Type: application/json [20:25:33] [20:25:33]POST finish read [20:25:33]Found Content-Length = 679 [20:25:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:25:33]execute_script... [20:25: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)2885292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:25:33]POST & json_proto [20:25:33]process_json_proto [20:25:33]json parsed OK: [20:25:33]protocol is kg_v1.0 [20:25:33]action value=close_receipt [20:25:33]process_action close_receipt [20:25:33]cmd_close_receipt [20:25:33]MH_GetDate [20:25:33]Write to MH i2c: F0 00 00 A2 15 A6 [20:25:33]Write i2c OK [20:25:33]MH_I2C_Read... [20:25:33]Read from MH i2c: F0 [20:25:33]MH_I2C_Read... [20:25:33]Read from MH i2c: F0 09 00 [20:25:33]MH_I2C_Read... [20:25:33]Read from MH i2c: F0 09 00 A2 15 00 3E 67 15 67 6B 98 1E 66 57 [20:25:33]GetLastDocTimeStamp 1729455754 [20:25:33]current date 1729455934 [20:25:33]FM_GetShiftState [20:25:33]SAM_PROTO_GetShiftState [20:25:33]wFMCommunicate request_size=4 [20:25:33]MH_SAM_APDU [20:25:33]CAPDU: 80 13 01 00 [20:25:33]Write to MH i2c: E2 08 00 A3 15 80 13 01 00 00 00 00 00 35 [20:25:33]Write i2c OK [20:25:33]MH_I2C_Read... [20:25:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:33]Read from MH i2c: E2 [20:25:33]MH_I2C_Read... [20:25:33]Read from MH i2c: E2 0E 00 [20:25:33]MH_I2C_Read... [20:25:33]Read from MH i2c: E2 0E 00 A3 15 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 3B [20:25:33]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:25:33]wFMCommunicate OK [20:25:33]SAM_PROTO_GetShiftState done [20:25:33]FM_GetShiftState done [20:25:33]opened in 1729383220 [20:25:33]opened+sec_in_day 1729469620 [20:25:33]quantity*price = 80012 [20:25:33]sum+1 = 80013 [20:25:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 397 20.10.2024 20:25 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69552 ФПД: 86071663671023 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T202534&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69552&fm=86071663671023&tin=02508201610067®Number=0000000000156251&sum=80000 [20:25:34]StoreToDocumentArchive [20:25:34]shift 193 fd 69552 [20:25:34]save to /storage/0193/doc_00069552 [20:25:34]save last doc name /storage/0193/doc_00069552 to /storage/kkm_last_doc_name [20:25:34]save OK [20:25:34]Clear old archive folders... [20:25:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:25:34]tlvbuf is 00F7EA10 [20:25:34]SAM_PROTO_ClearQueue [20:25:34]wFMCommunicate request_size=4 [20:25:34]MH_SAM_APDU [20:25:34]CAPDU: 80 09 00 00 [20:25:34]Write to MH i2c: E2 08 00 B0 15 80 09 00 00 00 00 00 00 37 [20:25:34]Write i2c OK [20:25:34]MH_I2C_Read... [20:25:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:25:34]Read from MH i2c: E2 [20:25:34]MH_I2C_Read... [20:25:34]Read from MH i2c: E2 03 00 [20:25:34]MH_I2C_Read... [20:25:34]Read from MH i2c: E2 03 00 B0 15 00 90 00 39 [20:25:34]RAPDU: 90 00 [20:25:34]wFMCommunicate OK [20:25:34]SAM_PROTO_ClearQueue done [20:25:34]KKMCreateOFDPacket [20:25:34]OFDProtocolAddRootSTLVToBuf [20:25:34]FM_MakeSignedData [20:25:34]FM_MakeSignedData [20:25:34]SAM_PROTO_SignData [20:25:34]wFMCommunicate request_size=4 [20:25:34]MH_SAM_APDU [20:25:34]CAPDU: 80 0D 01 02 [20:25:34]Write to MH i2c: E2 08 00 B1 15 80 0D 01 02 00 00 00 00 3F [20:25:34]Write i2c OK [20:25:34]MH_I2C_Read... [20:25:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:25:35]Read from MH i2c: E2 [20:25:35]MH_I2C_Read... [20:25:35]Read from MH i2c: E2 03 00 [20:25:35]MH_I2C_Read... [20:25:35]Read from MH i2c: E2 03 00 B1 15 00 90 00 3A [20:25:35]RAPDU: 90 00 [20:25:35]wFMCommunicate OK [20:25:35]wFMCommunicate request_size=255 [20:25:35]MH_SAM_APDU [20:25: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 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 01 00 00 F4 03 04 00 3E 67 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B0 0F 01 00 35 04 06 00 4E [20:25:35]Write to MH i2c: E2 02 01 B2 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 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 01 00 00 F4 03 04 00 3E 67 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B0 0F 01 00 35 04 06 00 4E 00 00 32 [20:25:35]Write i2c OK [20:25:35]MH_I2C_Read... [20:25:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:35]Read from MH i2c: E2 [20:25:35]MH_I2C_Read... [20:25:35]Read from MH i2c: E2 03 00 [20:25:35]MH_I2C_Read... [20:25:35]Read from MH i2c: E2 03 00 B2 15 00 90 00 3B [20:25:35]RAPDU: 90 00 [20:25:35]wFMCommunicate OK [20:25:35]wFMCommunicate request_size=10 [20:25:35]MH_SAM_APDU [20:25:35]CAPDU: 80 0D 02 02 05 48 1E F0 36 EF [20:25:35]Write to MH i2c: E2 0D 00 B3 15 80 0D 02 02 05 00 48 1E F0 36 EF 00 00 C7 [20:25:35]Write i2c OK [20:25:35]MH_I2C_Read... [20:25:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:35]Read from MH i2c: E2 [20:25:35]MH_I2C_Read... [20:25:35]Read from MH i2c: E2 03 00 [20:25:35]MH_I2C_Read... [20:25:35]Read from MH i2c: E2 03 00 B3 15 00 90 00 3C [20:25:35]RAPDU: 90 00 [20:25:35]wFMCommunicate OK [20:25:35]wFMCommunicate request_size=4 [20:25:35]MH_SAM_APDU [20:25:35]CAPDU: 80 0D 03 02 [20:25:35]Write to MH i2c: E2 08 00 B4 15 80 0D 03 02 00 00 00 00 44 [20:25:35]Write i2c OK [20:25:35]MH_I2C_Read... [20:25:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:25:35]Read from MH i2c: E2 [20:25:35]MH_I2C_Read... [20:25:35]Read from MH i2c: E2 0B 00 [20:25:35]MH_I2C_Read... [20:25:35]Read from MH i2c: E2 0B 00 B4 15 00 58 85 DF 7A 92 06 BA 4B 90 00 18 [20:25:35]RAPDU: 58 85 DF 7A 92 06 BA 4B 90 00 [20:25:35]wFMCommunicate OK [20:25:35]SAM_PROTO_SignData done [20:25:35]FM_MakeSignedData done [20:25:35]CreateOFDProtocolMessage [20:25:35]wFMCommunicate request_size=4 [20:25:35]MH_SAM_APDU [20:25:35]CAPDU: 80 11 00 00 [20:25:35]Write to MH i2c: E2 08 00 B5 15 80 11 00 00 00 00 00 00 44 [20:25:35]Write i2c OK [20:25:35]MH_I2C_Read... [20:25:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:35]Read from MH i2c: E2 [20:25:35]MH_I2C_Read... [20:25:35]Read from MH i2c: E2 17 00 [20:25:35]MH_I2C_Read... [20:25:35]Read from MH i2c: E2 17 00 B5 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 96 [20:25:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:25:35]wFMCommunicate OK [20:25:35]CreateOFDProtocolMessage done [20:25:35]OFDSenderStorePacket 69552 [20:25:35]StoreOFDPacket docnum=69552 [20:25:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 12 51 07 01 05 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 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 01 00 00 F4 03 04 00 3E 67 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B0 0F 01 00 35 04 06 00 4E 48 1E F0 36 EF 58 85 DF 7A 92 06 BA 4B [20:25:35]CheckFolder [20:25:35]dirname=/storage/ofd_packets [20:25:35]CheckFolder done [20:25:35]ProducePacketName [20:25:35]name=ofd_packets/00069552 [20:25:35]NVStorageSaveData ofd_packets/00069552 [20:25:35]File name is /storage/ofd_packets/00069552 [20:25:35]Write 301 bytes [20:25:35]NVStorageSaveData done [20:25:35]OFDSenderStorePacket done [20:25:35]KKMCreateOFDPacket done [20:25:35]NVStorageSaveData kkm_last_timestamp [20:25:35]File name is /storage/kkm_last_timestamp [20:25:35]Write 4 bytes [20:25:35]NVStorageSaveData done [20:25:35]ExternCall_PrintAddStr [20:25:35]wPrintStart [20:25:35]Write to MH i2c: 01 00 00 B6 15 CB [20:25:35]Write i2c OK [20:25:35]MH_I2C_Read... [20:25:35]Read from MH i2c: 01 [20:25:35]MH_I2C_Read... [20:25:35]Read from MH i2c: 01 07 00 [20:25:35]MH_I2C_Read... [20:25:35]Read from MH i2c: 01 07 00 B6 15 00 00 00 00 00 FF 0F E0 [20:25:35]RasterBufferAndPrint [20:25:35]line Счет N : (1)2885292 [20:25:35]line ИНН: 02508201610067 [20:25:35]line Контрольно-Кассовый Чек [20:25:35]line ПРОДАЖА [20:25:35]line ТРК (МРК, ГНК) : 42 [20:25:35]line Товар: 2710124130 [20:25:35]line Аи-92-К-5 [20:25:35]line 11.960 * 66.90 [20:25:35]line = 800.12 [20:25:35]line НДС 12% НСП 1% [20:25:35]line > о реализуемом товаре [20:25:35]line ОКРУГЛЕНИЕ: -0.12 [20:25:35]line ИТОГО: 800.00 [20:25:35]line Внесено: 800.00 [20:25:35]line СДАЧА: 0.00 [20:25:35]line НСП 1% : 7.08 [20:25:35]line НДС 12% : 84.97 [20:25:35]line Наличными: 800.00 [20:25:35]line Безнал.: 0.00 [20:25:35]line Место: АЗС № 85 "Партнер Нефть" [20:25:35]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:25:35]line СНО: Общий режим [20:25:35]line Чек 397 20.10.2024 20:25 [20:25:35]line Смена: 193 ФФД: 1.0 [20:25:35]line ЗНМ: 0300000167 [20:25:35]line РНМ: 0000000000156251 [20:25:35]line Версия ККМ: v1.0 [20:25:35]line ФМ: 0000000000963346 [20:25:35]line ФД: 69552 [20:25:35]line ФПД: 86071663671023 [20:25:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T202534&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69552&fm=86071663671023&tin=02508201610067®Number=0000000000156251&sum=80000 [20:25:35]OFD Sender: Processing packet 69552 [packets to send 18, broken 17] [20:25:35]ProducePacketName [20:25:35]name=ofd_packets/00069552 [20:25:35]OFD Sender: To server: pG, [20:25:35]CommunicateWithHost lk.salyk.kg:30040 [20:25:35]ConnectInit lk.salyk.kg [20:25:35]written 0, free lines is 4095 [20:25:35]Connected sock=9 [20:25:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 12 51 07 01 05 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 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 01 00 00 F4 03 04 00 3E 67 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B0 0F 01 00 35 04 06 00 4E 48 1E F0 36 EF 58 85 DF 7A 92 06 BA 4B [20:25:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 D7 C2 47 00 F3 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B0 0F 01 00 F4 03 04 00 E4 10 15 67 B6 04 01 00 00 AE C2 78 B0 D2 A6 98 7C [20:25:36]CommunicateWithHost err = 0 [20:25:36]CheckOFDResponse [20:25:36]1017 (14) - 77093643461234 [20:25:36]1041 (16) - 0000000000963346 [20:25:36]1040 (4) - 69552 [20:25:36]1012 (4) - 20.10.2024 14:17 [20:25:36]1206 (1) - 0 [20:25:36]OFD Sender: Remove packet 69552 [20:25:36]ProducePacketName [20:25:36]name=ofd_packets/00069552 [20:25:36]NVStorageDeleteData [20:25:36]Write to MH i2c: 01 00 00 E1 15 F6 [20:25:36]Write i2c OK [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: 01 [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: 01 07 00 [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: 01 07 00 E1 15 00 00 00 00 00 F0 0C F9 [20:25:36]RasterBufferAndPrint [20:25:36]line [20:25:36]line [20:25:36]line [20:25:36]line [20:25:36]line [20:25:36]written 0, free lines is 3319 [20:25:36]MH_Cut [20:25:36]Write to MH i2c: D1 01 00 E8 15 01 CF [20:25:36]Write i2c OK [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: D1 [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: D1 01 00 [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: D1 01 00 E8 15 00 CE [20:25:36]Write to MH i2c: 01 00 00 E9 15 FE [20:25:36]Write i2c OK [20:25:36]MH_I2C_Read... [20:25:36]OFD Sender: No OFD packet to send [20:25:36]*** Cut start [20:25:36]*** Partial cut [20:25:36]*** CUTSNS_PIN = 1 [20:25:36]*** CUTSNS_PIN = 0 [20:25:37]*** Brake cut motor [20:25:37]Read from MH i2c: 01 [20:25:37]MH_I2C_Read... [20:25:37]*** Stop cut motor [20:25:37]*** Cut end [20:25:37]Read from MH i2c: 01 07 00 [20:25:37]MH_I2C_Read... [20:25:37]Read from MH i2c: 01 07 00 E9 15 00 00 00 00 00 FF 0F 13 [20:25:37]process_action close_receipt done [20:25:37]requested_data is exist [20:25:37]produce_requested_data [20:25:37]requested_item fm.sn is exist - process it [20:25:37]wFMCommunicate request_size=4 [20:25:37]MH_SAM_APDU [20:25:37]CAPDU: 80 11 00 00 [20:25:37]Write to MH i2c: E2 08 00 EA 15 80 11 00 00 00 00 00 00 79 [20:25:37]Write i2c OK [20:25:37]MH_I2C_Read... [20:25:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:37]Read from MH i2c: E2 [20:25:37]MH_I2C_Read... [20:25:37]Read from MH i2c: E2 17 00 [20:25:37]MH_I2C_Read... [20:25:37]Read from MH i2c: E2 17 00 EA 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CB [20:25:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:25:37]wFMCommunicate OK [20:25:37]requested_item fd.num is exist - process it [20:25:37]SAM_PROTO_GetFieldsCounters [20:25:37]wFMCommunicate request_size=4 [20:25:37]MH_SAM_APDU [20:25:37]CAPDU: 80 13 00 00 [20:25:37]Write to MH i2c: E2 08 00 EB 15 80 13 00 00 00 00 00 00 7C [20:25:37]Write i2c OK [20:25:37]MH_I2C_Read... [20:25:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:25:37]Read from MH i2c: E2 [20:25:37]MH_I2C_Read... [20:25:37]Read from MH i2c: E2 62 00 [20:25:37]MH_I2C_Read... [20:25:37]Read from MH i2c: E2 62 00 EB 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B0 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 8D 01 00 00 5E 04 04 00 8D 01 00 00 57 04 04 00 8E 01 00 00 19 04 04 00 00 00 00 00 90 00 C2 [20:25:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B0 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 8D 01 00 00 5E 04 04 00 8D 01 00 00 57 04 04 00 8E 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:25:37]wFMCommunicate OK [20:25:37]SAM_PROTO_GetFieldsCounters done [20:25:37]requested_item shift.num is exist - process it [20:25:37]requested_item shift.opened is exist - process it [20:25:37]req_shift_opened [20:25:37]FM_GetShiftState [20:25:37]SAM_PROTO_GetShiftState [20:25:37]wFMCommunicate request_size=4 [20:25:37]MH_SAM_APDU [20:25:37]CAPDU: 80 13 01 00 [20:25:37]Write to MH i2c: E2 08 00 EC 15 80 13 01 00 00 00 00 00 7E [20:25:37]Write i2c OK [20:25:37]MH_I2C_Read... [20:25:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:37]Read from MH i2c: E2 [20:25:37]MH_I2C_Read... [20:25:37]Read from MH i2c: E2 0E 00 [20:25:37]MH_I2C_Read... [20:25:37]Read from MH i2c: E2 0E 00 EC 15 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 84 [20:25:37]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:25:37]wFMCommunicate OK [20:25:37]SAM_PROTO_GetShiftState done [20:25:37]FM_GetShiftState done [20:25:37]req_shift_opened done [20:25:37]requested_item shift.open_date is exist - process it [20:25:37]req_shift_open_date [20:25:37]req_shift_open_date done [20:25:37]produce_requested_data done [20:25:37]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69552,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [20:25:37]process_action_free close_receipt [20:25:37]json_value_free [20:25:37]json_value_free done [20:25:37]process_json_proto returns [20:25:37]Send response to host [20:25:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69552,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [20:25:37]free response buf [20:25:37]execute_script done [20:25:37]execute_script returns [20:25:37]free content buf [20:25:37]Sock 10.Close socket [20:25:37]Sock 10.Thread stoped [20:25:41]OFD Sender: No OFD packet to send [20:25:46]OFD Sender: No OFD packet to send [20:25:51]OFD Sender: No OFD packet to send [20:25:56]OFD Sender: No OFD packet to send [20:25:57]accept exits with 7 [20:25:57]New connection [20:25:57]New thread 3066797412 created [20:25:57]Thread 3066654052 joined [20:25:57]Waiting for new connection... [20:25:57] Sock 7.Parse request [20:25:57]Sock 7.Check first char [20:25:57]Sock 7.First char is OK [20:25:57]request: POST /json_proto HTTP/1.0 [20:25:57]Method: POST [20:25:57]URL: /json_proto [20:25:57]Method is POST - this is cgi request [20:25:57]url: /json_proto [20:25:57]query_string will be loaded in cgi processing [20:25:57]execute_cgi json_proto POST (null) [20:25:57]execute_cgi path=json_proto method=POST [20:25:57]POST find Content-Length [20:25:57]Host: 172.17.50.3:8080 [20:25:57]Content-Length: 801 [20:25:57]Content-Type: application/json [20:25:57] [20:25:57]POST finish read [20:25:57]Found Content-Length = 801 [20:25:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:25:57]execute_script... [20:25: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)2885293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:25:57]POST & json_proto [20:25:57]process_json_proto [20:25:57]json parsed OK: [20:25:57]protocol is kg_v1.0 [20:25:57]action value=close_receipt [20:25:57]process_action close_receipt [20:25:57]cmd_close_receipt [20:25:57]MH_GetDate [20:25:57]Write to MH i2c: F0 00 00 ED 15 F1 [20:25:57]Write i2c OK [20:25:57]MH_I2C_Read... [20:25:57]Read from MH i2c: F0 [20:25:57]MH_I2C_Read... [20:25:57]Read from MH i2c: F0 09 00 [20:25:57]MH_I2C_Read... [20:25:57]Read from MH i2c: F0 09 00 ED 15 00 55 67 15 67 6B 98 1E 66 B9 [20:25:57]GetLastDocTimeStamp 1729455934 [20:25:57]current date 1729455957 [20:25:57]FM_GetShiftState [20:25:57]SAM_PROTO_GetShiftState [20:25:57]wFMCommunicate request_size=4 [20:25:57]MH_SAM_APDU [20:25:57]CAPDU: 80 13 01 00 [20:25:57]Write to MH i2c: E2 08 00 EE 15 80 13 01 00 00 00 00 00 80 [20:25:57]Write i2c OK [20:25:57]MH_I2C_Read... [20:25:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:57]Read from MH i2c: E2 [20:25:57]MH_I2C_Read... [20:25:57]Read from MH i2c: E2 0E 00 [20:25:57]MH_I2C_Read... [20:25:57]Read from MH i2c: E2 0E 00 EE 15 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 86 [20:25:57]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:25:57]wFMCommunicate OK [20:25:57]SAM_PROTO_GetShiftState done [20:25:57]FM_GetShiftState done [20:25:57]opened in 1729383220 [20:25:57]opened+sec_in_day 1729469620 [20:25:57]quantity*price = 50041 [20:25:57]sum+1 = 50042 [20:25:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 398 20.10.2024 20:25 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000963346 ФД: 69553 ФПД: 243227398564742 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T202557&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69553&fm=243227398564742&tin=02508201610067®Number=0000000000156251&sum=50041 [20:25:58]StoreToDocumentArchive [20:25:58]shift 193 fd 69553 [20:25:58]save to /storage/0193/doc_00069553 [20:25:58]save last doc name /storage/0193/doc_00069553 to /storage/kkm_last_doc_name [20:25:58]save OK [20:25:58]Clear old archive folders... [20:25:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:25:58]tlvbuf is 00F71880 [20:25:58]SAM_PROTO_ClearQueue [20:25:58]wFMCommunicate request_size=4 [20:25:58]MH_SAM_APDU [20:25:58]CAPDU: 80 09 00 00 [20:25:58]Write to MH i2c: E2 08 00 FB 15 80 09 00 00 00 00 00 00 82 [20:25:58]Write i2c OK [20:25:58]MH_I2C_Read... [20:25:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:25:58]Read from MH i2c: E2 [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: E2 03 00 [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: E2 03 00 FB 15 00 90 00 84 [20:25:58]RAPDU: 90 00 [20:25:58]wFMCommunicate OK [20:25:58]SAM_PROTO_ClearQueue done [20:25:58]KKMCreateOFDPacket [20:25:58]OFDProtocolAddRootSTLVToBuf [20:25:58]FM_MakeSignedData [20:25:58]FM_MakeSignedData [20:25:58]SAM_PROTO_SignData [20:25:58]wFMCommunicate request_size=4 [20:25:58]MH_SAM_APDU [20:25:58]CAPDU: 80 0D 01 02 [20:25:58]Write to MH i2c: E2 08 00 FC 15 80 0D 01 02 00 00 00 00 8A [20:25:58]Write i2c OK [20:25:58]MH_I2C_Read... [20:25:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:25:58]Read from MH i2c: E2 [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: E2 03 00 [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: E2 03 00 FC 15 00 90 00 85 [20:25:58]RAPDU: 90 00 [20:25:58]wFMCommunicate OK [20:25:58]wFMCommunicate request_size=255 [20:25:58]MH_SAM_APDU [20:25:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 55 67 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B1 0F 01 00 35 04 06 00 DD [20:25:58]Write to MH i2c: E2 02 01 FD 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 55 67 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B1 0F 01 00 35 04 06 00 DD 00 00 8B [20:25:58]Write i2c OK [20:25:58]MH_I2C_Read... [20:25:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:58]Read from MH i2c: E2 [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: E2 03 00 [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: E2 03 00 FD 15 00 90 00 86 [20:25:58]RAPDU: 90 00 [20:25:58]wFMCommunicate OK [20:25:58]wFMCommunicate request_size=10 [20:25:58]MH_SAM_APDU [20:25:58]CAPDU: 80 0D 02 02 05 36 CA B0 EB 86 [20:25:58]Write to MH i2c: E2 0D 00 FE 15 80 0D 02 02 05 00 36 CA B0 EB 86 00 00 B8 [20:25:58]Write i2c OK [20:25:58]MH_I2C_Read... [20:25:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:58]Read from MH i2c: E2 [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: E2 03 00 [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: E2 03 00 FE 15 00 90 00 87 [20:25:58]RAPDU: 90 00 [20:25:58]wFMCommunicate OK [20:25:58]wFMCommunicate request_size=4 [20:25:58]MH_SAM_APDU [20:25:58]CAPDU: 80 0D 03 02 [20:25:58]Write to MH i2c: E2 08 00 FF 15 80 0D 03 02 00 00 00 00 8F [20:25:58]Write i2c OK [20:25:58]MH_I2C_Read... [20:25:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:25:58]Read from MH i2c: E2 [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: E2 0B 00 [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: E2 0B 00 FF 15 00 E5 A9 AA C3 4D 82 95 CA 90 00 B9 [20:25:58]RAPDU: E5 A9 AA C3 4D 82 95 CA 90 00 [20:25:58]wFMCommunicate OK [20:25:58]SAM_PROTO_SignData done [20:25:58]FM_MakeSignedData done [20:25:58]CreateOFDProtocolMessage [20:25:58]wFMCommunicate request_size=4 [20:25:58]MH_SAM_APDU [20:25:58]CAPDU: 80 11 00 00 [20:25:58]Write to MH i2c: E2 08 00 00 16 80 11 00 00 00 00 00 00 90 [20:25:58]Write i2c OK [20:25:58]MH_I2C_Read... [20:25:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:58]Read from MH i2c: E2 [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: E2 17 00 [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: E2 17 00 00 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E2 [20:25:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:25:58]wFMCommunicate OK [20:25:58]CreateOFDProtocolMessage done [20:25:58]OFDSenderStorePacket 69553 [20:25:58]StoreOFDPacket docnum=69553 [20:25:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 1A F9 07 01 49 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 55 67 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B1 0F 01 00 35 04 06 00 DD 36 CA B0 EB 86 E5 A9 AA C3 4D 82 95 CA [20:25:58]CheckFolder [20:25:58]dirname=/storage/ofd_packets [20:25:58]CheckFolder done [20:25:58]ProducePacketName [20:25:58]name=ofd_packets/00069553 [20:25:58]NVStorageSaveData ofd_packets/00069553 [20:25:58]File name is /storage/ofd_packets/00069553 [20:25:58]Write 301 bytes [20:25:58]NVStorageSaveData done [20:25:58]OFDSenderStorePacket done [20:25:58]KKMCreateOFDPacket done [20:25:58]NVStorageSaveData kkm_last_timestamp [20:25:58]File name is /storage/kkm_last_timestamp [20:25:58]Write 4 bytes [20:25:58]NVStorageSaveData done [20:25:58]ExternCall_PrintAddStr [20:25:58]wPrintStart [20:25:58]Write to MH i2c: 01 00 00 01 16 17 [20:25:58]Write i2c OK [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: 01 [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: 01 07 00 [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: 01 07 00 01 16 00 00 00 00 00 FF 0F 2C [20:25:58]RasterBufferAndPrint [20:25:58]line Счет N : (1)2885293 [20:25:58]line ИНН: 02508201610067 [20:25:58]line Контрольно-Кассовый Чек [20:25:58]line ПРОДАЖА [20:25:58]line ТРК (МРК, ГНК) : 32 [20:25:58]line Товар: 2710124130 [20:25:58]line Аи-92-К-5 [20:25:58]line 7.480 * 66.90 [20:25:58]line = 500.41 [20:25:58]line НДС 12% НСП 1% [20:25:58]line > о реализуемом товаре [20:25:58]line ИТОГО: 500.41 [20:25:58]line НСП 1% : 4.43 [20:25:58]line НДС 12% : 53.14 [20:25:58]line Наличными: 0.00 [20:25:58]line Безнал.: 500.41 [20:25:58]line Место: АЗС № 85 "Партнер Нефть" [20:25:58]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:25:58]line СНО: Общий режим [20:25:58]line Чек 398 20.10.2024 20:25 [20:25:58]line Смена: 193 ФФД: 1.0 [20:25:58]line ЗНМ: 0300000167 [20:25:58]line РНМ: 0000000000156251 [20:25:58]line Версия ККМ: v1.0 [20:25:58]line Платежная система: O! деньги [20:25:58]line ФМ: 0000000000963346 [20:25:58]line ФД: 69553 [20:25:58]line ФПД: 243227398564742 [20:25:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T202557&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69553&fm=243227398564742&tin=02508201610067®Number=0000000000156251&sum=50041 [20:25:59]OFD Sender: Processing packet 69553 [packets to send 18, broken 17] [20:25:59]ProducePacketName [20:25:59]name=ofd_packets/00069553 [20:25:59]OFD Sender: To server: pG, [20:25:59]CommunicateWithHost lk.salyk.kg:30040 [20:25:59]ConnectInit lk.salyk.kg [20:25:59]written 0, free lines is 4095 [20:25:59]Connected sock=10 [20:25:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 1A F9 07 01 49 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 55 67 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B1 0F 01 00 35 04 06 00 DD 36 CA B0 EB 86 E5 A9 AA C3 4D 82 95 CA [20:25:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 A5 94 47 00 64 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B1 0F 01 00 F4 03 04 00 FB 10 15 67 B6 04 01 00 00 49 19 FB 1F CE 1F 48 AC [20:25:59]CommunicateWithHost err = 0 [20:25:59]CheckOFDResponse [20:25:59]1017 (14) - 77093643461234 [20:25:59]1041 (16) - 0000000000963346 [20:25:59]1040 (4) - 69553 [20:25:59]1012 (4) - 20.10.2024 14:17 [20:25:59]1206 (1) - 0 [20:25:59]OFD Sender: Remove packet 69553 [20:25:59]ProducePacketName [20:25:59]name=ofd_packets/00069553 [20:25:59]NVStorageDeleteData [20:25:59]Write to MH i2c: 01 00 00 2B 16 41 [20:25:59]Write i2c OK [20:25:59]MH_I2C_Read... [20:25:59]Read from MH i2c: 01 [20:25:59]MH_I2C_Read... [20:25:59]Read from MH i2c: 01 07 00 [20:25:59]MH_I2C_Read... [20:25:59]Read from MH i2c: 01 07 00 2B 16 00 00 00 00 00 10 0D 65 [20:25:59]RasterBufferAndPrint [20:25:59]line [20:25:59]line [20:25:59]line [20:25:59]line [20:25:59]line [20:25:59]written 0, free lines is 3350 [20:25:59]MH_Cut [20:25:59]Write to MH i2c: D1 01 00 32 16 01 1A [20:25:59]Write i2c OK [20:25:59]MH_I2C_Read... [20:25:59]Read from MH i2c: D1 [20:25:59]MH_I2C_Read... [20:25:59]Read from MH i2c: D1 01 00 [20:25:59]MH_I2C_Read... [20:25:59]Read from MH i2c: D1 01 00 32 16 00 19 [20:25:59]Write to MH i2c: 01 00 00 33 16 49 [20:25:59]Write i2c OK [20:25:59]MH_I2C_Read... [20:25:59]OFD Sender: No OFD packet to send [20:26:00]*** Cut start [20:26:00]*** Partial cut [20:26:00]*** CUTSNS_PIN = 1 [20:26:00]*** CUTSNS_PIN = 0 [20:26:00]*** Brake cut motor [20:26:00]Read from MH i2c: 01 [20:26:00]MH_I2C_Read... [20:26:00]*** Stop cut motor [20:26:00]*** Cut end [20:26:00]Read from MH i2c: 01 07 00 [20:26:00]MH_I2C_Read... [20:26:00]Read from MH i2c: 01 07 00 33 16 00 00 00 00 00 FF 0F 5E [20:26:00]process_action close_receipt done [20:26:00]requested_data is exist [20:26:00]produce_requested_data [20:26:00]requested_item fm.sn is exist - process it [20:26:00]wFMCommunicate request_size=4 [20:26:00]MH_SAM_APDU [20:26:00]CAPDU: 80 11 00 00 [20:26:00]Write to MH i2c: E2 08 00 34 16 80 11 00 00 00 00 00 00 C4 [20:26:00]Write i2c OK [20:26:00]MH_I2C_Read... [20:26:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:00]Read from MH i2c: E2 [20:26:00]MH_I2C_Read... [20:26:00]Read from MH i2c: E2 17 00 [20:26:00]MH_I2C_Read... [20:26:00]Read from MH i2c: E2 17 00 34 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 16 [20:26:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:26:00]wFMCommunicate OK [20:26:00]requested_item fd.num is exist - process it [20:26:00]SAM_PROTO_GetFieldsCounters [20:26:00]wFMCommunicate request_size=4 [20:26:00]MH_SAM_APDU [20:26:00]CAPDU: 80 13 00 00 [20:26:00]Write to MH i2c: E2 08 00 35 16 80 13 00 00 00 00 00 00 C7 [20:26:00]Write i2c OK [20:26:00]MH_I2C_Read... [20:26:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:26:01]Read from MH i2c: E2 [20:26:01]MH_I2C_Read... [20:26:01]Read from MH i2c: E2 62 00 [20:26:01]MH_I2C_Read... [20:26:01]Read from MH i2c: E2 62 00 35 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B1 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 8E 01 00 00 5E 04 04 00 8E 01 00 00 57 04 04 00 8F 01 00 00 19 04 04 00 00 00 00 00 90 00 11 [20:26:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B1 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 8E 01 00 00 5E 04 04 00 8E 01 00 00 57 04 04 00 8F 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:26:01]wFMCommunicate OK [20:26:01]SAM_PROTO_GetFieldsCounters done [20:26:01]requested_item shift.num is exist - process it [20:26:01]requested_item shift.opened is exist - process it [20:26:01]req_shift_opened [20:26:01]FM_GetShiftState [20:26:01]SAM_PROTO_GetShiftState [20:26:01]wFMCommunicate request_size=4 [20:26:01]MH_SAM_APDU [20:26:01]CAPDU: 80 13 01 00 [20:26:01]Write to MH i2c: E2 08 00 36 16 80 13 01 00 00 00 00 00 C9 [20:26:01]Write i2c OK [20:26:01]MH_I2C_Read... [20:26:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:01]Read from MH i2c: E2 [20:26:01]MH_I2C_Read... [20:26:01]Read from MH i2c: E2 0E 00 [20:26:01]MH_I2C_Read... [20:26:01]Read from MH i2c: E2 0E 00 36 16 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 CF [20:26:01]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:26:01]wFMCommunicate OK [20:26:01]SAM_PROTO_GetShiftState done [20:26:01]FM_GetShiftState done [20:26:01]req_shift_opened done [20:26:01]requested_item shift.open_date is exist - process it [20:26:01]req_shift_open_date [20:26:01]req_shift_open_date done [20:26:01]produce_requested_data done [20:26:01]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69553,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [20:26:01]process_action_free close_receipt [20:26:01]json_value_free [20:26:01]json_value_free done [20:26:01]process_json_proto returns [20:26:01]Send response to host [20:26:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69553,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [20:26:01]free response buf [20:26:01]execute_script done [20:26:01]execute_script returns [20:26:01]free content buf [20:26:01]Sock 7.Close socket [20:26:01]Sock 7.Thread stoped [20:26:04]OFD Sender: No OFD packet to send [20:26:07]accept exits with 9 [20:26:07]New connection [20:26:07]New thread 3066654052 created [20:26:07]Thread 3066797412 joined [20:26:07]Waiting for new connection... [20:26:07] Sock 9.Parse request [20:26:07]Sock 9.Check first char [20:26:07]Sock 9.First char is OK [20:26:07]request: POST /json_proto HTTP/1.0 [20:26:07]Method: POST [20:26:07]URL: /json_proto [20:26:07]Method is POST - this is cgi request [20:26:07]url: /json_proto [20:26:07]query_string will be loaded in cgi processing [20:26:07]execute_cgi json_proto POST (null) [20:26:07]execute_cgi path=json_proto method=POST [20:26:07]POST find Content-Length [20:26:07]Host: 172.17.50.3:8080 [20:26:07]Content-Length: 678 [20:26:07]Content-Type: application/json [20:26:07] [20:26:07]POST finish read [20:26:07]Found Content-Length = 678 [20:26:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [20:26:07]execute_script... [20:26:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [20:26:07]POST & json_proto [20:26:07]process_json_proto [20:26:07]json parsed OK: [20:26:07]protocol is kg_v1.0 [20:26:07]action value=close_receipt [20:26:07]process_action close_receipt [20:26:07]cmd_close_receipt [20:26:07]MH_GetDate [20:26:07]Write to MH i2c: F0 00 00 37 16 3C [20:26:07]Write i2c OK [20:26:07]MH_I2C_Read... [20:26:07]Read from MH i2c: F0 [20:26:07]MH_I2C_Read... [20:26:07]Read from MH i2c: F0 09 00 [20:26:07]MH_I2C_Read... [20:26:07]Read from MH i2c: F0 09 00 37 16 00 60 67 15 67 6B 98 1E 66 0F [20:26:07]GetLastDocTimeStamp 1729455957 [20:26:07]current date 1729455968 [20:26:07]FM_GetShiftState [20:26:07]SAM_PROTO_GetShiftState [20:26:07]wFMCommunicate request_size=4 [20:26:07]MH_SAM_APDU [20:26:07]CAPDU: 80 13 01 00 [20:26:07]Write to MH i2c: E2 08 00 38 16 80 13 01 00 00 00 00 00 CB [20:26:07]Write i2c OK [20:26:07]MH_I2C_Read... [20:26:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:07]Read from MH i2c: E2 [20:26:07]MH_I2C_Read... [20:26:07]Read from MH i2c: E2 0E 00 [20:26:07]MH_I2C_Read... [20:26:07]Read from MH i2c: E2 0E 00 38 16 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 D1 [20:26:07]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:26:07]wFMCommunicate OK [20:26:07]SAM_PROTO_GetShiftState done [20:26:07]FM_GetShiftState done [20:26:07]opened in 1729383220 [20:26:07]opened+sec_in_day 1729469620 [20:26:07]quantity*price = 50010 [20:26:07]sum+1 = 50012 [20:26:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 399 20.10.2024 20:26 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69554 ФПД: 183230512097662 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T202608&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69554&fm=183230512097662&tin=02508201610067®Number=0000000000156251&sum=50000 [20:26:08]StoreToDocumentArchive [20:26:08]shift 193 fd 69554 [20:26:08]save to /storage/0193/doc_00069554 [20:26:08]save last doc name /storage/0193/doc_00069554 to /storage/kkm_last_doc_name [20:26:08]save OK [20:26:08]Clear old archive folders... [20:26:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:26:08]tlvbuf is 00F7CB10 [20:26:08]SAM_PROTO_ClearQueue [20:26:08]wFMCommunicate request_size=4 [20:26:08]MH_SAM_APDU [20:26:08]CAPDU: 80 09 00 00 [20:26:08]Write to MH i2c: E2 08 00 45 16 80 09 00 00 00 00 00 00 CD [20:26:08]Write i2c OK [20:26:08]MH_I2C_Read... [20:26:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:26:08]Read from MH i2c: E2 [20:26:08]MH_I2C_Read... [20:26:08]Read from MH i2c: E2 03 00 [20:26:08]MH_I2C_Read... [20:26:08]Read from MH i2c: E2 03 00 45 16 00 90 00 CF [20:26:08]RAPDU: 90 00 [20:26:08]wFMCommunicate OK [20:26:08]SAM_PROTO_ClearQueue done [20:26:08]KKMCreateOFDPacket [20:26:08]OFDProtocolAddRootSTLVToBuf [20:26:08]FM_MakeSignedData [20:26:08]FM_MakeSignedData [20:26:08]SAM_PROTO_SignData [20:26:08]wFMCommunicate request_size=4 [20:26:08]MH_SAM_APDU [20:26:08]CAPDU: 80 0D 01 02 [20:26:08]Write to MH i2c: E2 08 00 46 16 80 0D 01 02 00 00 00 00 D5 [20:26:08]Write i2c OK [20:26:08]MH_I2C_Read... [20:26:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:26:08]Read from MH i2c: E2 [20:26:08]MH_I2C_Read... [20:26:08]Read from MH i2c: E2 03 00 [20:26:08]MH_I2C_Read... [20:26:08]Read from MH i2c: E2 03 00 46 16 00 90 00 D0 [20:26:08]RAPDU: 90 00 [20:26:08]wFMCommunicate OK [20:26:08]wFMCommunicate request_size=255 [20:26:08]MH_SAM_APDU [20:26:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 8F 01 00 00 F4 03 04 00 60 67 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B2 0F 01 00 35 04 06 00 A6 [20:26:08]Write to MH i2c: E2 02 01 47 16 80 0D 02 02 FA 00 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 8F 01 00 00 F4 03 04 00 60 67 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B2 0F 01 00 35 04 06 00 A6 00 00 32 [20:26:08]Write i2c OK [20:26:08]MH_I2C_Read... [20:26:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:08]Read from MH i2c: E2 [20:26:08]MH_I2C_Read... [20:26:08]Read from MH i2c: E2 03 00 [20:26:08]MH_I2C_Read... [20:26:08]Read from MH i2c: E2 03 00 47 16 00 90 00 D1 [20:26:08]RAPDU: 90 00 [20:26:08]wFMCommunicate OK [20:26:08]wFMCommunicate request_size=10 [20:26:08]MH_SAM_APDU [20:26:08]CAPDU: 80 0D 02 02 05 A5 AD 95 E9 7E [20:26:08]Write to MH i2c: E2 0D 00 48 16 80 0D 02 02 05 00 A5 AD 95 E9 7E 00 00 30 [20:26:08]Write i2c OK [20:26:08]MH_I2C_Read... [20:26:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:08]Read from MH i2c: E2 [20:26:08]MH_I2C_Read... [20:26:08]Read from MH i2c: E2 03 00 [20:26:08]MH_I2C_Read... [20:26:08]Read from MH i2c: E2 03 00 48 16 00 90 00 D2 [20:26:08]RAPDU: 90 00 [20:26:08]wFMCommunicate OK [20:26:08]wFMCommunicate request_size=4 [20:26:08]MH_SAM_APDU [20:26:08]CAPDU: 80 0D 03 02 [20:26:08]Write to MH i2c: E2 08 00 49 16 80 0D 03 02 00 00 00 00 DA [20:26:08]Write i2c OK [20:26:08]MH_I2C_Read... [20:26:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:26:08]Read from MH i2c: E2 [20:26:08]MH_I2C_Read... [20:26:08]Read from MH i2c: E2 0B 00 [20:26:08]MH_I2C_Read... [20:26:08]Read from MH i2c: E2 0B 00 49 16 00 EB C4 4D 5E 80 B9 37 5D 90 00 02 [20:26:08]RAPDU: EB C4 4D 5E 80 B9 37 5D 90 00 [20:26:08]wFMCommunicate OK [20:26:08]SAM_PROTO_SignData done [20:26:08]FM_MakeSignedData done [20:26:08]CreateOFDProtocolMessage [20:26:08]wFMCommunicate request_size=4 [20:26:08]MH_SAM_APDU [20:26:08]CAPDU: 80 11 00 00 [20:26:08]Write to MH i2c: E2 08 00 4A 16 80 11 00 00 00 00 00 00 DA [20:26:08]Write i2c OK [20:26:08]MH_I2C_Read... [20:26:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:08]Read from MH i2c: E2 [20:26:08]MH_I2C_Read... [20:26:08]Read from MH i2c: E2 17 00 [20:26:08]MH_I2C_Read... [20:26:08]Read from MH i2c: E2 17 00 4A 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2C [20:26:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:26:08]wFMCommunicate OK [20:26:08]CreateOFDProtocolMessage done [20:26:08]OFDSenderStorePacket 69554 [20:26:08]StoreOFDPacket docnum=69554 [20:26:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 E7 5B 07 01 FA E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 8F 01 00 00 F4 03 04 00 60 67 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B2 0F 01 00 35 04 06 00 A6 A5 AD 95 E9 7E EB C4 4D 5E 80 B9 37 5D [20:26:08]CheckFolder [20:26:08]dirname=/storage/ofd_packets [20:26:08]CheckFolder done [20:26:08]ProducePacketName [20:26:08]name=ofd_packets/00069554 [20:26:08]NVStorageSaveData ofd_packets/00069554 [20:26:08]File name is /storage/ofd_packets/00069554 [20:26:08]Write 301 bytes [20:26:08]NVStorageSaveData done [20:26:08]OFDSenderStorePacket done [20:26:08]KKMCreateOFDPacket done [20:26:08]NVStorageSaveData kkm_last_timestamp [20:26:08]File name is /storage/kkm_last_timestamp [20:26:08]Write 4 bytes [20:26:08]NVStorageSaveData done [20:26:08]ExternCall_PrintAddStr [20:26:08]wPrintStart [20:26:08]Write to MH i2c: 01 00 00 4B 16 61 [20:26:08]Write i2c OK [20:26:08]MH_I2C_Read... [20:26:08]Read from MH i2c: 01 [20:26:08]MH_I2C_Read... [20:26:08]Read from MH i2c: 01 07 00 [20:26:08]MH_I2C_Read... [20:26:08]Read from MH i2c: 01 07 00 4B 16 00 00 00 00 00 FF 0F 76 [20:26:08]RasterBufferAndPrint [20:26:08]line Счет N : (1)2885294 [20:26:08]line ИНН: 02508201610067 [20:26:08]line Контрольно-Кассовый Чек [20:26:08]line ПРОДАЖА [20:26:08]line ТРК (МРК, ГНК) : 13 [20:26:08]line Товар: 2710124500 [20:26:08]line Аи-95-К-5 [20:26:08]line 6.740 * 74.20 [20:26:08]line = 500.11 [20:26:08]line НДС 12% НСП 1% [20:26:08]line > о реализуемом товаре [20:26:08]line ОКРУГЛЕНИЕ: -0.11 [20:26:08]line ИТОГО: 500.00 [20:26:08]line Внесено: 500.00 [20:26:08]line СДАЧА: 0.00 [20:26:08]line НСП 1% : 4.43 [20:26:08]line НДС 12% : 53.11 [20:26:08]line Наличными: 500.00 [20:26:08]line Безнал.: 0.00 [20:26:08]line Место: АЗС № 85 "Партнер Нефть" [20:26:08]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:26:08]line СНО: Общий режим [20:26:08]line Чек 399 20.10.2024 20:26 [20:26:08]line Смена: 193 ФФД: 1.0 [20:26:08]line ЗНМ: 0300000167 [20:26:08]line РНМ: 0000000000156251 [20:26:08]line Версия ККМ: v1.0 [20:26:08]line ФМ: 0000000000963346 [20:26:08]line ФД: 69554 [20:26:08]line ФПД: 183230512097662 [20:26:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T202608&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69554&fm=183230512097662&tin=02508201610067®Number=0000000000156251&sum=50000 [20:26:08]written 0, free lines is 4095 [20:26:08]OFD Sender: Processing packet 69554 [packets to send 18, broken 17] [20:26:08]ProducePacketName [20:26:08]name=ofd_packets/00069554 [20:26:08]OFD Sender: To server: pG, [20:26:08]CommunicateWithHost lk.salyk.kg:30040 [20:26:08]ConnectInit lk.salyk.kg [20:26:09]Connected sock=10 [20:26:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 E7 5B 07 01 FA E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 8F 01 00 00 F4 03 04 00 60 67 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B2 0F 01 00 35 04 06 00 A6 A5 AD 95 E9 7E EB C4 4D 5E 80 B9 37 5D [20:26:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 C7 CC 47 00 B8 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B2 0F 01 00 F4 03 04 00 05 11 15 67 B6 04 01 00 00 B5 DF 7F 22 5E 31 57 7C [20:26:09]CommunicateWithHost err = 0 [20:26:09]CheckOFDResponse [20:26:09]1017 (14) - 77093643461234 [20:26:09]1041 (16) - 0000000000963346 [20:26:09]1040 (4) - 69554 [20:26:09]1012 (4) - 20.10.2024 14:17 [20:26:09]1206 (1) - 0 [20:26:09]OFD Sender: Remove packet 69554 [20:26:09]ProducePacketName [20:26:09]name=ofd_packets/00069554 [20:26:09]NVStorageDeleteData [20:26:09]Write to MH i2c: 01 00 00 76 16 8C [20:26:09]Write i2c OK [20:26:09]MH_I2C_Read... [20:26:09]Read from MH i2c: 01 [20:26:09]MH_I2C_Read... [20:26:09]Read from MH i2c: 01 07 00 [20:26:09]MH_I2C_Read... [20:26:09]Read from MH i2c: 01 07 00 76 16 00 00 00 00 00 01 0D A1 [20:26:09]RasterBufferAndPrint [20:26:09]line [20:26:09]line [20:26:09]line [20:26:09]line [20:26:09]line [20:26:09]written 0, free lines is 3340 [20:26:09]MH_Cut [20:26:09]Write to MH i2c: D1 01 00 7D 16 01 65 [20:26:09]Write i2c OK [20:26:09]MH_I2C_Read... [20:26:09]Read from MH i2c: D1 [20:26:09]MH_I2C_Read... [20:26:09]Read from MH i2c: D1 01 00 [20:26:09]MH_I2C_Read... [20:26:09]Read from MH i2c: D1 01 00 7D 16 00 64 [20:26:09]Write to MH i2c: 01 00 00 7E 16 94 [20:26:09]Write i2c OK [20:26:09]MH_I2C_Read... [20:26:09]OFD Sender: No OFD packet to send [20:26:10]*** Cut start [20:26:10]*** Partial cut [20:26:10]*** CUTSNS_PIN = 1 [20:26:10]*** CUTSNS_PIN = 0 [20:26:10]*** Brake cut motor [20:26:10]Read from MH i2c: 01 [20:26:10]MH_I2C_Read... [20:26:10]*** Stop cut motor [20:26:10]*** Cut end [20:26:10]Read from MH i2c: 01 07 00 [20:26:10]MH_I2C_Read... [20:26:10]Read from MH i2c: 01 07 00 7E 16 00 00 00 00 00 FF 0F A9 [20:26:10]process_action close_receipt done [20:26:10]requested_data is exist [20:26:10]produce_requested_data [20:26:10]requested_item fm.sn is exist - process it [20:26:10]wFMCommunicate request_size=4 [20:26:10]MH_SAM_APDU [20:26:10]CAPDU: 80 11 00 00 [20:26:10]Write to MH i2c: E2 08 00 7F 16 80 11 00 00 00 00 00 00 0F [20:26:10]Write i2c OK [20:26:10]MH_I2C_Read... [20:26:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:10]Read from MH i2c: E2 [20:26:10]MH_I2C_Read... [20:26:10]Read from MH i2c: E2 17 00 [20:26:10]MH_I2C_Read... [20:26:10]Read from MH i2c: E2 17 00 7F 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 61 [20:26:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:26:10]wFMCommunicate OK [20:26:10]requested_item fd.num is exist - process it [20:26:10]SAM_PROTO_GetFieldsCounters [20:26:10]wFMCommunicate request_size=4 [20:26:10]MH_SAM_APDU [20:26:10]CAPDU: 80 13 00 00 [20:26:10]Write to MH i2c: E2 08 00 80 16 80 13 00 00 00 00 00 00 12 [20:26:10]Write i2c OK [20:26:10]MH_I2C_Read... [20:26:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:26:10]Read from MH i2c: E2 [20:26:10]MH_I2C_Read... [20:26:10]Read from MH i2c: E2 62 00 [20:26:10]MH_I2C_Read... [20:26:10]Read from MH i2c: E2 62 00 80 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B2 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 8F 01 00 00 5E 04 04 00 8F 01 00 00 57 04 04 00 90 01 00 00 19 04 04 00 00 00 00 00 90 00 60 [20:26:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B2 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 8F 01 00 00 5E 04 04 00 8F 01 00 00 57 04 04 00 90 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:26:10]wFMCommunicate OK [20:26:10]SAM_PROTO_GetFieldsCounters done [20:26:10]requested_item shift.num is exist - process it [20:26:10]requested_item shift.opened is exist - process it [20:26:10]req_shift_opened [20:26:10]FM_GetShiftState [20:26:10]SAM_PROTO_GetShiftState [20:26:10]wFMCommunicate request_size=4 [20:26:10]MH_SAM_APDU [20:26:10]CAPDU: 80 13 01 00 [20:26:10]Write to MH i2c: E2 08 00 81 16 80 13 01 00 00 00 00 00 14 [20:26:10]Write i2c OK [20:26:10]MH_I2C_Read... [20:26:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:10]Read from MH i2c: E2 [20:26:10]MH_I2C_Read... [20:26:10]Read from MH i2c: E2 0E 00 [20:26:10]MH_I2C_Read... [20:26:10]Read from MH i2c: E2 0E 00 81 16 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 1A [20:26:10]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:26:10]wFMCommunicate OK [20:26:10]SAM_PROTO_GetShiftState done [20:26:10]FM_GetShiftState done [20:26:10]req_shift_opened done [20:26:10]requested_item shift.open_date is exist - process it [20:26:10]req_shift_open_date [20:26:10]req_shift_open_date done [20:26:10]produce_requested_data done [20:26:10]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69554,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [20:26:10]process_action_free close_receipt [20:26:10]json_value_free [20:26:10]json_value_free done [20:26:10]process_json_proto returns [20:26:10]Send response to host [20:26:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69554,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [20:26:10]free response buf [20:26:10]execute_script done [20:26:10]execute_script returns [20:26:10]free content buf [20:26:10]Sock 9.Close socket [20:26:10]Sock 9.Thread stoped [20:26:14]OFD Sender: No OFD packet to send [20:26:19]OFD Sender: No OFD packet to send [20:26:24]OFD Sender: No OFD packet to send [20:26:29]OFD Sender: No OFD packet to send [20:26:34]OFD Sender: No OFD packet to send [20:26:39]OFD Sender: No OFD packet to send [20:26:44]OFD Sender: No OFD packet to send [20:26:49]OFD Sender: No OFD packet to send [20:26:54]OFD Sender: No OFD packet to send [20:26:59]OFD Sender: No OFD packet to send [20:27:04]OFD Sender: No OFD packet to send [20:27:09]OFD Sender: No OFD packet to send [20:27:14]OFD Sender: No OFD packet to send [20:27:19]OFD Sender: No OFD packet to send [20:27:24]OFD Sender: No OFD packet to send [20:27:29]OFD Sender: No OFD packet to send [20:27:34]OFD Sender: No OFD packet to send [20:27:36]accept exits with 7 [20:27:36]New connection [20:27:36]New thread 3066797412 created [20:27:36]Thread 3066654052 joined [20:27:36]Waiting for new connection... [20:27:36] Sock 7.Parse request [20:27:36]Sock 7.Check first char [20:27:36]Sock 7.First char is OK [20:27:36]request: POST /json_proto HTTP/1.0 [20:27:36]Method: POST [20:27:36]URL: /json_proto [20:27:36]Method is POST - this is cgi request [20:27:36]url: /json_proto [20:27:36]query_string will be loaded in cgi processing [20:27:36]execute_cgi json_proto POST (null) [20:27:36]execute_cgi path=json_proto method=POST [20:27:36]POST find Content-Length [20:27:36]Host: 172.17.50.3:8080 [20:27:36]Content-Length: 689 [20:27:36]Content-Type: application/json [20:27:36] [20:27:36]POST finish read [20:27:36]Found Content-Length = 689 [20:27:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 27.250, "sum" : 2103.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2103.00, "total" : 2103.00, "payments": [ { "type": 0, "sum" : 2103.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:36]execute_script... [20:27: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)2885291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 27.250, "sum" : 2103.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2103.00, "total" : 2103.00, "payments": [ { "type": 0, "sum" : 2103.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:36]POST & json_proto [20:27:36]process_json_proto [20:27:36]json parsed OK: [20:27:36]protocol is kg_v1.0 [20:27:36]action value=close_receipt [20:27:36]process_action close_receipt [20:27:36]cmd_close_receipt [20:27:36]MH_GetDate [20:27:36]Write to MH i2c: F0 00 00 82 16 87 [20:27:36]Write i2c OK [20:27:36]MH_I2C_Read... [20:27:36]Read from MH i2c: F0 [20:27:36]MH_I2C_Read... [20:27:36]Read from MH i2c: F0 09 00 [20:27:36]MH_I2C_Read... [20:27:36]Read from MH i2c: F0 09 00 82 16 00 B9 67 15 67 6B 98 1E 66 B3 [20:27:36]GetLastDocTimeStamp 1729455968 [20:27:36]current date 1729456057 [20:27:36]FM_GetShiftState [20:27:36]SAM_PROTO_GetShiftState [20:27:36]wFMCommunicate request_size=4 [20:27:36]MH_SAM_APDU [20:27:36]CAPDU: 80 13 01 00 [20:27:36]Write to MH i2c: E2 08 00 83 16 80 13 01 00 00 00 00 00 16 [20:27:36]Write i2c OK [20:27:36]MH_I2C_Read... [20:27:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:36]Read from MH i2c: E2 [20:27:36]MH_I2C_Read... [20:27:36]Read from MH i2c: E2 0E 00 [20:27:36]MH_I2C_Read... [20:27:36]Read from MH i2c: E2 0E 00 83 16 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 1C [20:27:36]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:27:36]wFMCommunicate OK [20:27:36]SAM_PROTO_GetShiftState done [20:27:36]FM_GetShiftState done [20:27:36]opened in 1729383220 [20:27:36]opened+sec_in_day 1729469620 [20:27:36]quantity*price = 210370 [20:27:36]sum+1 = 210371 [20:27:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 2103.00 Внесено: 2103.00 СДАЧА: 0.00 НСП 1% : 18.62 НДС 12% : 223.40 Наличными: 2103.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 400 20.10.2024 20:27 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69555 ФПД: 8461035791506 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T202737&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69555&fm=8461035791506&tin=02508201610067®Number=0000000000156251&sum=210300 [20:27:37]StoreToDocumentArchive [20:27:37]shift 193 fd 69555 [20:27:37]save to /storage/0193/doc_00069555 [20:27:37]save last doc name /storage/0193/doc_00069555 to /storage/kkm_last_doc_name [20:27:37]save OK [20:27:37]Clear old archive folders... [20:27:37]ProcessDocumentItem done err = 0, tmpTLVsize=257 [20:27:37]tlvbuf is B6E82B30 [20:27:37]SAM_PROTO_ClearQueue [20:27:37]wFMCommunicate request_size=4 [20:27:37]MH_SAM_APDU [20:27:37]CAPDU: 80 09 00 00 [20:27:37]Write to MH i2c: E2 08 00 90 16 80 09 00 00 00 00 00 00 18 [20:27:37]Write i2c OK [20:27:37]MH_I2C_Read... [20:27:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:27:37]Read from MH i2c: E2 [20:27:37]MH_I2C_Read... [20:27:37]Read from MH i2c: E2 03 00 [20:27:37]MH_I2C_Read... [20:27:37]Read from MH i2c: E2 03 00 90 16 00 90 00 1A [20:27:37]RAPDU: 90 00 [20:27:37]wFMCommunicate OK [20:27:37]SAM_PROTO_ClearQueue done [20:27:37]KKMCreateOFDPacket [20:27:37]OFDProtocolAddRootSTLVToBuf [20:27:37]FM_MakeSignedData [20:27:37]FM_MakeSignedData [20:27:37]SAM_PROTO_SignData [20:27:37]wFMCommunicate request_size=4 [20:27:37]MH_SAM_APDU [20:27:37]CAPDU: 80 0D 01 02 [20:27:37]Write to MH i2c: E2 08 00 91 16 80 0D 01 02 00 00 00 00 20 [20:27:37]Write i2c OK [20:27:37]MH_I2C_Read... [20:27:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:27:38]Read from MH i2c: E2 [20:27:38]MH_I2C_Read... [20:27:38]Read from MH i2c: E2 03 00 [20:27:38]MH_I2C_Read... [20:27:38]Read from MH i2c: E2 03 00 91 16 00 90 00 1B [20:27:38]RAPDU: 90 00 [20:27:38]wFMCommunicate OK [20:27:38]wFMCommunicate request_size=255 [20:27:38]MH_SAM_APDU [20:27:38]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 72 6A 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C2 35 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 35 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 57 00 00 00 00 07 04 06 00 7C 35 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 01 00 00 F4 03 04 00 B9 67 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B3 0F 01 [20:27:38]Write to MH i2c: E2 02 01 92 16 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 72 6A 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C2 35 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 35 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 57 00 00 00 00 07 04 06 00 7C 35 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 01 00 00 F4 03 04 00 B9 67 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B3 0F 01 00 00 AD [20:27:38]Write i2c OK [20:27:38]MH_I2C_Read... [20:27:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:38]Read from MH i2c: E2 [20:27:38]MH_I2C_Read... [20:27:38]Read from MH i2c: E2 03 00 [20:27:38]MH_I2C_Read... [20:27:38]Read from MH i2c: E2 03 00 92 16 00 90 00 1C [20:27:38]RAPDU: 90 00 [20:27:38]wFMCommunicate OK [20:27:38]wFMCommunicate request_size=16 [20:27:38]MH_SAM_APDU [20:27:38]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 07 B1 FD 08 64 92 [20:27:38]Write to MH i2c: E2 13 00 93 16 80 0D 02 02 0B 00 00 35 04 06 00 07 B1 FD 08 64 92 00 00 2B [20:27:38]Write i2c OK [20:27:38]MH_I2C_Read... [20:27:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:38]Read from MH i2c: E2 [20:27:38]MH_I2C_Read... [20:27:38]Read from MH i2c: E2 03 00 [20:27:38]MH_I2C_Read... [20:27:38]Read from MH i2c: E2 03 00 93 16 00 90 00 1D [20:27:38]RAPDU: 90 00 [20:27:38]wFMCommunicate OK [20:27:38]wFMCommunicate request_size=4 [20:27:38]MH_SAM_APDU [20:27:38]CAPDU: 80 0D 03 02 [20:27:38]Write to MH i2c: E2 08 00 94 16 80 0D 03 02 00 00 00 00 25 [20:27:38]Write i2c OK [20:27:38]MH_I2C_Read... [20:27:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:27:38]Read from MH i2c: E2 [20:27:38]MH_I2C_Read... [20:27:38]Read from MH i2c: E2 0B 00 [20:27:38]MH_I2C_Read... [20:27:38]Read from MH i2c: E2 0B 00 94 16 00 CF 53 B6 57 B6 DC 21 32 90 00 3A [20:27:38]RAPDU: CF 53 B6 57 B6 DC 21 32 90 00 [20:27:38]wFMCommunicate OK [20:27:38]SAM_PROTO_SignData done [20:27:38]FM_MakeSignedData done [20:27:38]CreateOFDProtocolMessage [20:27:38]wFMCommunicate request_size=4 [20:27:38]MH_SAM_APDU [20:27:38]CAPDU: 80 11 00 00 [20:27:38]Write to MH i2c: E2 08 00 95 16 80 11 00 00 00 00 00 00 25 [20:27:38]Write i2c OK [20:27:38]MH_I2C_Read... [20:27:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:38]Read from MH i2c: E2 [20:27:38]MH_I2C_Read... [20:27:38]Read from MH i2c: E2 17 00 [20:27:38]MH_I2C_Read... [20:27:38]Read from MH i2c: E2 17 00 95 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 77 [20:27:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:27:38]wFMCommunicate OK [20:27:38]CreateOFDProtocolMessage done [20:27:38]OFDSenderStorePacket 69555 [20:27:38]StoreOFDPacket docnum=69555 [20:27:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 AB 9B 0D 01 68 F0 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 72 6A 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C2 35 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 35 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 57 00 00 00 00 07 04 06 00 7C 35 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 01 00 00 F4 03 04 00 B9 67 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B3 0F 01 00 35 04 06 00 07 B1 FD 08 64 92 CF 53 B6 57 B6 DC 21 32 [20:27:38]CheckFolder [20:27:38]dirname=/storage/ofd_packets [20:27:38]CheckFolder done [20:27:38]ProducePacketName [20:27:38]name=ofd_packets/00069555 [20:27:38]NVStorageSaveData ofd_packets/00069555 [20:27:38]File name is /storage/ofd_packets/00069555 [20:27:38]Write 307 bytes [20:27:38]NVStorageSaveData done [20:27:38]OFDSenderStorePacket done [20:27:38]KKMCreateOFDPacket done [20:27:38]NVStorageSaveData kkm_last_timestamp [20:27:38]File name is /storage/kkm_last_timestamp [20:27:38]Write 4 bytes [20:27:38]NVStorageSaveData done [20:27:38]OFD Sender: Processing packet 69555 [packets to send 18, broken 17] [20:27:38]ProducePacketName [20:27:38]name=ofd_packets/00069555 [20:27:38]OFD Sender: To server: pG, [20:27:38]CommunicateWithHost lk.salyk.kg:30040 [20:27:38]ConnectInit lk.salyk.kg [20:27:38]ExternCall_PrintAddStr [20:27:38]wPrintStart [20:27:38]Write to MH i2c: 01 00 00 96 16 AC [20:27:38]Write i2c OK [20:27:38]MH_I2C_Read... [20:27:38]Read from MH i2c: 01 [20:27:38]MH_I2C_Read... [20:27:38]Read from MH i2c: 01 07 00 [20:27:38]MH_I2C_Read... [20:27:38]Read from MH i2c: 01 07 00 96 16 00 00 00 00 00 FF 0F C1 [20:27:38]RasterBufferAndPrint [20:27:38]line Счет N : (1)2885291 [20:27:38]line ИНН: 02508201610067 [20:27:38]line Контрольно-Кассовый Чек [20:27:38]line ПРОДАЖА [20:27:38]line ТРК (МРК, ГНК) : 21 [20:27:38]line Товар: 2710194240 [20:27:38]line D-ENERGY Дт-К-2 [20:27:38]line 27.250 * 77.20 [20:27:38]line = 2103.70 [20:27:38]line НДС 12% НСП 1% [20:27:38]line > о реализуемом товаре [20:27:38]line ОКРУГЛЕНИЕ: -0.70 [20:27:38]line ИТОГО: 2103.00 [20:27:38]line Внесено: 2103.00 [20:27:38]line СДАЧА: 0.00 [20:27:38]line НСП 1% : 18.62 [20:27:38]line НДС 12% : 223.40 [20:27:38]line Наличными: 2103.00 [20:27:38]line Безнал.: 0.00 [20:27:38]line Место: АЗС № 85 "Партнер Нефть" [20:27:38]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:27:38]line СНО: Общий режим [20:27:38]line Чек 400 20.10.2024 20:27 [20:27:38]line Смена: 193 ФФД: 1.0 [20:27:38]line ЗНМ: 0300000167 [20:27:38]line РНМ: 0000000000156251 [20:27:38]line Версия ККМ: v1.0 [20:27:38]line ФМ: 0000000000963346 [20:27:38]line ФД: 69555 [20:27:38]line ФПД: 8461035791506 [20:27:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T202737&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69555&fm=8461035791506&tin=02508201610067®Number=0000000000156251&sum=210300 [20:27:38]Connected sock=11 [20:27:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 AB 9B 0D 01 68 F0 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 72 6A 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C2 35 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 35 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 57 00 00 00 00 07 04 06 00 7C 35 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 01 00 00 F4 03 04 00 B9 67 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B3 0F 01 00 35 04 06 00 07 B1 FD 08 64 92 CF 53 B6 57 B6 DC 21 32 [20:27:38]written 0, free lines is 4095 [20:27:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 6B 88 47 00 55 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 30 39 36 33 33 34 36 10 04 04 00 B3 0F 01 00 F4 03 04 00 5F 11 15 67 B6 04 01 00 00 8B 75 56 D0 DA 3E 83 5E [20:27:39]CommunicateWithHost err = 0 [20:27:39]CheckOFDResponse [20:27:39]1017 (14) - 77093643461234 [20:27:39]1041 (16) - 0000000000963346 [20:27:39]1040 (4) - 69555 [20:27:39]1012 (4) - 20.10.2024 14:19 [20:27:39]1206 (1) - 0 [20:27:39]OFD Sender: Remove packet 69555 [20:27:39]ProducePacketName [20:27:39]name=ofd_packets/00069555 [20:27:39]NVStorageDeleteData [20:27:39]Write to MH i2c: 01 00 00 C1 16 D7 [20:27:39]Write i2c OK [20:27:39]MH_I2C_Read... [20:27:39]Read from MH i2c: 01 [20:27:39]MH_I2C_Read... [20:27:39]Read from MH i2c: 01 07 00 [20:27:39]MH_I2C_Read... [20:27:39]Read from MH i2c: 01 07 00 C1 16 00 00 00 00 00 F7 0C E1 [20:27:39]RasterBufferAndPrint [20:27:39]line [20:27:39]line [20:27:39]line [20:27:39]line [20:27:39]line [20:27:39]written 0, free lines is 3328 [20:27:39]MH_Cut [20:27:39]Write to MH i2c: D1 01 00 C8 16 01 B0 [20:27:39]Write i2c OK [20:27:39]MH_I2C_Read... [20:27:39]Read from MH i2c: D1 [20:27:39]MH_I2C_Read... [20:27:39]Read from MH i2c: D1 01 00 [20:27:39]MH_I2C_Read... [20:27:39]Read from MH i2c: D1 01 00 C8 16 00 AF [20:27:39]Write to MH i2c: 01 00 00 C9 16 DF [20:27:39]Write i2c OK [20:27:39]MH_I2C_Read... [20:27:39]OFD Sender: No OFD packet to send [20:27:39]*** Cut start [20:27:39]*** Partial cut [20:27:39]*** CUTSNS_PIN = 1 [20:27:40]*** CUTSNS_PIN = 0 [20:27:40]*** Brake cut motor [20:27:40]Read from MH i2c: 01 [20:27:40]MH_I2C_Read... [20:27:40]*** Stop cut motor [20:27:40]*** Cut end [20:27:40]Read from MH i2c: 01 07 00 [20:27:40]MH_I2C_Read... [20:27:40]Read from MH i2c: 01 07 00 C9 16 00 00 00 00 00 FF 0F F4 [20:27:40]process_action close_receipt done [20:27:40]requested_data is exist [20:27:40]produce_requested_data [20:27:40]requested_item fm.sn is exist - process it [20:27:40]wFMCommunicate request_size=4 [20:27:40]MH_SAM_APDU [20:27:40]CAPDU: 80 11 00 00 [20:27:40]Write to MH i2c: E2 08 00 CA 16 80 11 00 00 00 00 00 00 5A [20:27:40]Write i2c OK [20:27:40]MH_I2C_Read... [20:27:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:40]Read from MH i2c: E2 [20:27:40]MH_I2C_Read... [20:27:40]Read from MH i2c: E2 17 00 [20:27:40]MH_I2C_Read... [20:27:40]Read from MH i2c: E2 17 00 CA 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AC [20:27:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:27:40]wFMCommunicate OK [20:27:40]requested_item fd.num is exist - process it [20:27:40]SAM_PROTO_GetFieldsCounters [20:27:40]wFMCommunicate request_size=4 [20:27:40]MH_SAM_APDU [20:27:40]CAPDU: 80 13 00 00 [20:27:40]Write to MH i2c: E2 08 00 CB 16 80 13 00 00 00 00 00 00 5D [20:27:40]Write i2c OK [20:27:40]MH_I2C_Read... [20:27:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:27:40]Read from MH i2c: E2 [20:27:40]MH_I2C_Read... [20:27:40]Read from MH i2c: E2 62 00 [20:27:40]MH_I2C_Read... [20:27:40]Read from MH i2c: E2 62 00 CB 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B3 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 90 01 00 00 5E 04 04 00 90 01 00 00 57 04 04 00 91 01 00 00 19 04 04 00 00 00 00 00 90 00 AF [20:27:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B3 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 90 01 00 00 5E 04 04 00 90 01 00 00 57 04 04 00 91 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:27:40]wFMCommunicate OK [20:27:40]SAM_PROTO_GetFieldsCounters done [20:27:40]requested_item shift.num is exist - process it [20:27:40]requested_item shift.opened is exist - process it [20:27:40]req_shift_opened [20:27:40]FM_GetShiftState [20:27:40]SAM_PROTO_GetShiftState [20:27:40]wFMCommunicate request_size=4 [20:27:40]MH_SAM_APDU [20:27:40]CAPDU: 80 13 01 00 [20:27:40]Write to MH i2c: E2 08 00 CC 16 80 13 01 00 00 00 00 00 5F [20:27:40]Write i2c OK [20:27:40]MH_I2C_Read... [20:27:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:40]Read from MH i2c: E2 [20:27:40]MH_I2C_Read... [20:27:40]Read from MH i2c: E2 0E 00 [20:27:40]MH_I2C_Read... [20:27:40]Read from MH i2c: E2 0E 00 CC 16 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 65 [20:27:40]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:27:40]wFMCommunicate OK [20:27:40]SAM_PROTO_GetShiftState done [20:27:40]FM_GetShiftState done [20:27:40]req_shift_opened done [20:27:40]requested_item shift.open_date is exist - process it [20:27:40]req_shift_open_date [20:27:40]req_shift_open_date done [20:27:40]produce_requested_data done [20:27:40]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69555,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [20:27:40]process_action_free close_receipt [20:27:40]json_value_free [20:27:40]json_value_free done [20:27:40]process_json_proto returns [20:27:40]Send response to host [20:27:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69555,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [20:27:40]free response buf [20:27:40]execute_script done [20:27:40]execute_script returns [20:27:40]free content buf [20:27:40]Sock 7.Close socket [20:27:40]Sock 7.Thread stoped [20:27:44]OFD Sender: No OFD packet to send [20:27:49]OFD Sender: No OFD packet to send [20:27:54]OFD Sender: No OFD packet to send [20:27:59]OFD Sender: No OFD packet to send [20:28:04]OFD Sender: No OFD packet to send [20:28:09]OFD Sender: No OFD packet to send [20:28:14]OFD Sender: No OFD packet to send [20:28:19]OFD Sender: No OFD packet to send [20:28:24]OFD Sender: No OFD packet to send [20:28:29]OFD Sender: No OFD packet to send [20:28:34]OFD Sender: No OFD packet to send [20:28:39]OFD Sender: No OFD packet to send [20:28:44]OFD Sender: No OFD packet to send [20:28:49]OFD Sender: No OFD packet to send [20:28:51]accept exits with 9 [20:28:51]New connection [20:28:51]New thread 3066654052 created [20:28:51]Thread 3066797412 joined [20:28:51]Waiting for new connection... [20:28:51] Sock 9.Parse request [20:28:51]Sock 9.Check first char [20:28:51]Sock 9.First char is OK [20:28:51]request: POST /json_proto HTTP/1.0 [20:28:51]Method: POST [20:28:51]URL: /json_proto [20:28:51]Method is POST - this is cgi request [20:28:51]url: /json_proto [20:28:51]query_string will be loaded in cgi processing [20:28:51]execute_cgi json_proto POST (null) [20:28:51]execute_cgi path=json_proto method=POST [20:28:51]POST find Content-Length [20:28:51]Host: 172.17.50.3:8080 [20:28:51]Content-Length: 682 [20:28:51]Content-Type: application/json [20:28:51] [20:28:51]POST finish read [20:28:51]Found Content-Length = 682 [20:28:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:51]execute_script... [20:28: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)2885295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:51]POST & json_proto [20:28:51]process_json_proto [20:28:51]json parsed OK: [20:28:51]protocol is kg_v1.0 [20:28:51]action value=close_receipt [20:28:51]process_action close_receipt [20:28:51]cmd_close_receipt [20:28:51]MH_GetDate [20:28:51]Write to MH i2c: F0 00 00 CD 16 D2 [20:28:51]Write i2c OK [20:28:51]MH_I2C_Read... [20:28:51]Read from MH i2c: F0 [20:28:51]MH_I2C_Read... [20:28:51]Read from MH i2c: F0 09 00 [20:28:51]MH_I2C_Read... [20:28:51]Read from MH i2c: F0 09 00 CD 16 00 04 68 15 67 6B 98 1E 66 4A [20:28:51]GetLastDocTimeStamp 1729456057 [20:28:51]current date 1729456132 [20:28:51]FM_GetShiftState [20:28:51]SAM_PROTO_GetShiftState [20:28:51]wFMCommunicate request_size=4 [20:28:51]MH_SAM_APDU [20:28:51]CAPDU: 80 13 01 00 [20:28:51]Write to MH i2c: E2 08 00 CE 16 80 13 01 00 00 00 00 00 61 [20:28:51]Write i2c OK [20:28:51]MH_I2C_Read... [20:28:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:52]Read from MH i2c: E2 [20:28:52]MH_I2C_Read... [20:28:52]Read from MH i2c: E2 0E 00 [20:28:52]MH_I2C_Read... [20:28:52]Read from MH i2c: E2 0E 00 CE 16 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 67 [20:28:52]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:28:52]wFMCommunicate OK [20:28:52]SAM_PROTO_GetShiftState done [20:28:52]FM_GetShiftState done [20:28:52]opened in 1729383220 [20:28:52]opened+sec_in_day 1729469620 [20:28:52]quantity*price = 50025 [20:28:52]sum+1 = 50026 [20:28:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 401 20.10.2024 20:28 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69556 ФПД: 123797503120197 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T202852&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69556&fm=123797503120197&tin=02508201610067®Number=0000000000156251&sum=50000 [20:28:53]StoreToDocumentArchive [20:28:53]shift 193 fd 69556 [20:28:53]save to /storage/0193/doc_00069556 [20:28:53]save last doc name /storage/0193/doc_00069556 to /storage/kkm_last_doc_name [20:28:53]save OK [20:28:53]Clear old archive folders... [20:28:53]ProcessDocumentItem done err = 0, tmpTLVsize=250 [20:28:53]tlvbuf is B6E9B3F0 [20:28:53]SAM_PROTO_ClearQueue [20:28:53]wFMCommunicate request_size=4 [20:28:53]MH_SAM_APDU [20:28:53]CAPDU: 80 09 00 00 [20:28:53]Write to MH i2c: E2 08 00 DB 16 80 09 00 00 00 00 00 00 63 [20:28:53]Write i2c OK [20:28:53]MH_I2C_Read... [20:28:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:28:53]Read from MH i2c: E2 [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: E2 03 00 [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: E2 03 00 DB 16 00 90 00 65 [20:28:53]RAPDU: 90 00 [20:28:53]wFMCommunicate OK [20:28:53]SAM_PROTO_ClearQueue done [20:28:53]KKMCreateOFDPacket [20:28:53]OFDProtocolAddRootSTLVToBuf [20:28:53]FM_MakeSignedData [20:28:53]FM_MakeSignedData [20:28:53]SAM_PROTO_SignData [20:28:53]wFMCommunicate request_size=4 [20:28:53]MH_SAM_APDU [20:28:53]CAPDU: 80 0D 01 02 [20:28:53]Write to MH i2c: E2 08 00 DC 16 80 0D 01 02 00 00 00 00 6B [20:28:53]Write i2c OK [20:28:53]MH_I2C_Read... [20:28:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:28:53]Read from MH i2c: E2 [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: E2 03 00 [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: E2 03 00 DC 16 00 90 00 66 [20:28:53]RAPDU: 90 00 [20:28:53]wFMCommunicate OK [20:28:53]wFMCommunicate request_size=255 [20:28:53]MH_SAM_APDU [20:28:53]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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 01 00 00 F4 03 04 00 04 68 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B4 0F 01 00 35 04 06 00 70 97 [20:28:53]Write to MH i2c: E2 02 01 DD 16 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 01 00 00 F4 03 04 00 04 68 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B4 0F 01 00 35 04 06 00 70 97 00 00 B4 [20:28:53]Write i2c OK [20:28:53]MH_I2C_Read... [20:28:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:53]Read from MH i2c: E2 [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: E2 03 00 [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: E2 03 00 DD 16 00 90 00 67 [20:28:53]RAPDU: 90 00 [20:28:53]wFMCommunicate OK [20:28:53]wFMCommunicate request_size=9 [20:28:53]MH_SAM_APDU [20:28:53]CAPDU: 80 0D 02 02 04 DA 32 93 45 [20:28:53]Write to MH i2c: E2 0C 00 DE 16 80 0D 02 02 04 00 DA 32 93 45 00 00 5A [20:28:53]Write i2c OK [20:28:53]MH_I2C_Read... [20:28:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:53]Read from MH i2c: E2 [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: E2 03 00 [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: E2 03 00 DE 16 00 90 00 68 [20:28:53]RAPDU: 90 00 [20:28:53]wFMCommunicate OK [20:28:53]wFMCommunicate request_size=4 [20:28:53]MH_SAM_APDU [20:28:53]CAPDU: 80 0D 03 02 [20:28:53]Write to MH i2c: E2 08 00 DF 16 80 0D 03 02 00 00 00 00 70 [20:28:53]Write i2c OK [20:28:53]MH_I2C_Read... [20:28:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:28:53]Read from MH i2c: E2 [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: E2 0B 00 [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: E2 0B 00 DF 16 00 FE 81 F4 AB FA D9 21 29 90 00 AC [20:28:53]RAPDU: FE 81 F4 AB FA D9 21 29 90 00 [20:28:53]wFMCommunicate OK [20:28:53]SAM_PROTO_SignData done [20:28:53]FM_MakeSignedData done [20:28:53]CreateOFDProtocolMessage [20:28:53]wFMCommunicate request_size=4 [20:28:53]MH_SAM_APDU [20:28:53]CAPDU: 80 11 00 00 [20:28:53]Write to MH i2c: E2 08 00 E0 16 80 11 00 00 00 00 00 00 70 [20:28:53]Write i2c OK [20:28:53]MH_I2C_Read... [20:28:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:53]Read from MH i2c: E2 [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: E2 17 00 [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: E2 17 00 E0 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C2 [20:28:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:28:53]wFMCommunicate OK [20:28:53]CreateOFDProtocolMessage done [20:28:53]OFDSenderStorePacket 69556 [20:28:53]StoreOFDPacket docnum=69556 [20:28:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 14 A9 06 01 42 AA 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 01 00 00 F4 03 04 00 04 68 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B4 0F 01 00 35 04 06 00 70 97 DA 32 93 45 FE 81 F4 AB FA D9 21 29 [20:28:53]CheckFolder [20:28:53]dirname=/storage/ofd_packets [20:28:53]CheckFolder done [20:28:53]ProducePacketName [20:28:53]name=ofd_packets/00069556 [20:28:53]NVStorageSaveData ofd_packets/00069556 [20:28:53]File name is /storage/ofd_packets/00069556 [20:28:53]Write 300 bytes [20:28:53]NVStorageSaveData done [20:28:53]OFDSenderStorePacket done [20:28:53]KKMCreateOFDPacket done [20:28:53]NVStorageSaveData kkm_last_timestamp [20:28:53]File name is /storage/kkm_last_timestamp [20:28:53]Write 4 bytes [20:28:53]NVStorageSaveData done [20:28:53]ExternCall_PrintAddStr [20:28:53]wPrintStart [20:28:53]Write to MH i2c: 01 00 00 E1 16 F7 [20:28:53]Write i2c OK [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: 01 [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: 01 07 00 [20:28:53]MH_I2C_Read... [20:28:53]Read from MH i2c: 01 07 00 E1 16 00 00 00 00 00 FF 0F 0C [20:28:53]RasterBufferAndPrint [20:28:53]line Счет N : (1)2885295 [20:28:53]line ИНН: 02508201610067 [20:28:53]line Контрольно-Кассовый Чек [20:28:53]line ПРОДАЖА [20:28:53]line ТРК (МРК, ГНК) : 71 [20:28:53]line Товар: 2711129700 [20:28:53]line ГАЗ-К-3 [20:28:53]line 12.860 * 38.90 [20:28:53]line = 500.25 [20:28:53]line НДС 12% НСП 1% [20:28:53]line > о реализуемом товаре [20:28:53]line ОКРУГЛЕНИЕ: -0.25 [20:28:53]line ИТОГО: 500.00 [20:28:53]line Внесено: 500.00 [20:28:53]line СДАЧА: 0.00 [20:28:53]line НСП 1% : 4.43 [20:28:53]line НДС 12% : 53.12 [20:28:53]line Наличными: 500.00 [20:28:53]line Безнал.: 0.00 [20:28:53]line Место: АЗС № 85 "Партнер Нефть" [20:28:53]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:28:53]line СНО: Общий режим [20:28:53]line Чек 401 20.10.2024 20:28 [20:28:53]line Смена: 193 ФФД: 1.0 [20:28:53]line ЗНМ: 0300000167 [20:28:53]line РНМ: 0000000000156251 [20:28:53]line Версия ККМ: v1.0 [20:28:53]line ФМ: 0000000000963346 [20:28:53]line ФД: 69556 [20:28:53]line ФПД: 123797503120197 [20:28:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T202852&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69556&fm=123797503120197&tin=02508201610067®Number=0000000000156251&sum=50000 [20:28:54]written 0, free lines is 4095 [20:28:54]OFD Sender: Processing packet 69556 [packets to send 18, broken 17] [20:28:54]ProducePacketName [20:28:54]name=ofd_packets/00069556 [20:28:54]OFD Sender: To server: pG, [20:28:54]CommunicateWithHost lk.salyk.kg:30040 [20:28:54]ConnectInit lk.salyk.kg [20:28:54]Write to MH i2c: 01 00 00 0C 17 23 [20:28:54]Write i2c OK [20:28:54]MH_I2C_Read... [20:28:54]Read from MH i2c: 01 [20:28:54]MH_I2C_Read... [20:28:54]Read from MH i2c: 01 07 00 [20:28:54]MH_I2C_Read... [20:28:54]Read from MH i2c: 01 07 00 0C 17 00 00 00 00 00 E7 0C 1D [20:28:54]RasterBufferAndPrint [20:28:54]line [20:28:54]line [20:28:54]line [20:28:54]line [20:28:54]line [20:28:54]written 0, free lines is 3310 [20:28:54]MH_Cut [20:28:54]Write to MH i2c: D1 01 00 13 17 01 FC [20:28:54]Write i2c OK [20:28:54]MH_I2C_Read... [20:28:54]Read from MH i2c: D1 [20:28:54]MH_I2C_Read... [20:28:54]Read from MH i2c: D1 01 00 [20:28:54]MH_I2C_Read... [20:28:54]Read from MH i2c: D1 01 00 13 17 00 FB [20:28:54]Write to MH i2c: 01 00 00 14 17 2B [20:28:54]Write i2c OK [20:28:54]MH_I2C_Read... [20:28:55]*** Cut start [20:28:55]*** Partial cut [20:28:55]*** CUTSNS_PIN = 1 [20:28:55]*** CUTSNS_PIN = 0 [20:28:55]*** Brake cut motor [20:28:55]Read from MH i2c: 01 [20:28:55]MH_I2C_Read... [20:28:55]*** Stop cut motor [20:28:55]*** Cut end [20:28:55]Read from MH i2c: 01 07 00 [20:28:55]MH_I2C_Read... [20:28:55]Read from MH i2c: 01 07 00 14 17 00 00 00 00 00 FF 0F 40 [20:28:55]process_action close_receipt done [20:28:55]requested_data is exist [20:28:55]produce_requested_data [20:28:55]requested_item fm.sn is exist - process it [20:28:55]wFMCommunicate request_size=4 [20:28:55]MH_SAM_APDU [20:28:55]CAPDU: 80 11 00 00 [20:28:55]Write to MH i2c: E2 08 00 15 17 80 11 00 00 00 00 00 00 A6 [20:28:55]Write i2c OK [20:28:55]MH_I2C_Read... [20:28:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:55]Read from MH i2c: E2 [20:28:55]MH_I2C_Read... [20:28:55]Read from MH i2c: E2 17 00 [20:28:55]MH_I2C_Read... [20:28:55]Read from MH i2c: E2 17 00 15 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F8 [20:28:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:28:55]wFMCommunicate OK [20:28:55]requested_item fd.num is exist - process it [20:28:55]SAM_PROTO_GetFieldsCounters [20:28:55]wFMCommunicate request_size=4 [20:28:55]MH_SAM_APDU [20:28:55]CAPDU: 80 13 00 00 [20:28:55]Write to MH i2c: E2 08 00 16 17 80 13 00 00 00 00 00 00 A9 [20:28:55]Write i2c OK [20:28:55]MH_I2C_Read... [20:28:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:28:55]Read from MH i2c: E2 [20:28:55]MH_I2C_Read... [20:28:55]Read from MH i2c: E2 62 00 [20:28:55]MH_I2C_Read... [20:28:55]Read from MH i2c: E2 62 00 16 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B4 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 91 01 00 00 5E 04 04 00 91 01 00 00 57 04 04 00 92 01 00 00 19 04 04 00 00 00 00 00 90 00 FF [20:28:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B4 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 91 01 00 00 5E 04 04 00 91 01 00 00 57 04 04 00 92 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:28:55]wFMCommunicate OK [20:28:55]SAM_PROTO_GetFieldsCounters done [20:28:55]requested_item shift.num is exist - process it [20:28:55]requested_item shift.opened is exist - process it [20:28:55]req_shift_opened [20:28:55]FM_GetShiftState [20:28:55]SAM_PROTO_GetShiftState [20:28:55]wFMCommunicate request_size=4 [20:28:55]MH_SAM_APDU [20:28:55]CAPDU: 80 13 01 00 [20:28:55]Write to MH i2c: E2 08 00 17 17 80 13 01 00 00 00 00 00 AB [20:28:55]Write i2c OK [20:28:55]MH_I2C_Read... [20:28:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:56]Read from MH i2c: E2 [20:28:56]MH_I2C_Read... [20:28:56]Read from MH i2c: E2 0E 00 [20:28:56]MH_I2C_Read... [20:28:56]Read from MH i2c: E2 0E 00 17 17 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 B1 [20:28:56]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:28:56]wFMCommunicate OK [20:28:56]SAM_PROTO_GetShiftState done [20:28:56]FM_GetShiftState done [20:28:56]req_shift_opened done [20:28:56]requested_item shift.open_date is exist - process it [20:28:56]req_shift_open_date [20:28:56]req_shift_open_date done [20:28:56]produce_requested_data done [20:28:56]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69556,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [20:28:56]process_action_free close_receipt [20:28:56]json_value_free [20:28:56]json_value_free done [20:28:56]process_json_proto returns [20:28:56]Send response to host [20:28:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69556,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [20:28:56]free response buf [20:28:56]execute_script done [20:28:56]execute_script returns [20:28:56]free content buf [20:28:56]Sock 9.Close socket [20:28:56]Sock 9.Thread stoped [20:30:25]accept exits with 7 [20:30:25]New connection [20:30:25]New thread 3066797412 created [20:30:25]Thread 3066654052 joined [20:30:25]Waiting for new connection... [20:30:25] Sock 7.Parse request [20:30:25]Sock 7.Check first char [20:30:25]Sock 7.First char is OK [20:30:25]request: POST /json_proto HTTP/1.0 [20:30:25]Method: POST [20:30:25]URL: /json_proto [20:30:25]Method is POST - this is cgi request [20:30:25]url: /json_proto [20:30:25]query_string will be loaded in cgi processing [20:30:25]execute_cgi json_proto POST (null) [20:30:25]execute_cgi path=json_proto method=POST [20:30:25]POST find Content-Length [20:30:25]Host: 172.17.50.3:8080 [20:30:25]Content-Length: 771 [20:30:25]Content-Type: application/json [20:30:25] [20:30:25]POST finish read [20:30:25]Found Content-Length = 771 [20:30:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:30:25]execute_script... [20:30: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)2885296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:30:25]POST & json_proto [20:30:25]process_json_proto [20:30:25]json parsed OK: [20:30:25]protocol is kg_v1.0 [20:30:25]action value=close_receipt [20:30:25]process_action close_receipt [20:30:25]cmd_close_receipt [20:30:25]MH_GetDate [20:30:25]Write to MH i2c: F0 00 00 18 17 1E [20:30:25]Write i2c OK [20:30:25]MH_I2C_Read... [20:30:25]Read from MH i2c: F0 [20:30:25]MH_I2C_Read... [20:30:25]Read from MH i2c: F0 09 00 [20:30:25]MH_I2C_Read... [20:30:25]Read from MH i2c: F0 09 00 18 17 00 62 68 15 67 6B 98 1E 66 F4 [20:30:25]GetLastDocTimeStamp 1729456132 [20:30:25]current date 1729456226 [20:30:25]FM_GetShiftState [20:30:25]SAM_PROTO_GetShiftState [20:30:25]wFMCommunicate request_size=4 [20:30:25]MH_SAM_APDU [20:30:25]CAPDU: 80 13 01 00 [20:30:25]Write to MH i2c: E2 08 00 19 17 80 13 01 00 00 00 00 00 AD [20:30:25]Write i2c OK [20:30:25]MH_I2C_Read... [20:30:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:25]Read from MH i2c: E2 [20:30:25]MH_I2C_Read... [20:30:25]Read from MH i2c: E2 0E 00 [20:30:25]MH_I2C_Read... [20:30:25]Read from MH i2c: E2 0E 00 19 17 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 B3 [20:30:25]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:30:25]wFMCommunicate OK [20:30:25]SAM_PROTO_GetShiftState done [20:30:25]FM_GetShiftState done [20:30:25]opened in 1729383220 [20:30:25]opened+sec_in_day 1729469620 [20:30:25]quantity*price = 50025 [20:30:25]sum+1 = 50026 [20:30:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.25 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.25 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 402 20.10.2024 20:30 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69557 ФПД: 109378412367096 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T203026&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69557&fm=109378412367096&tin=02508201610067®Number=0000000000156251&sum=50025 [20:30:26]StoreToDocumentArchive [20:30:26]shift 193 fd 69557 [20:30:26]save to /storage/0193/doc_00069557 [20:30:26]save last doc name /storage/0193/doc_00069557 to /storage/kkm_last_doc_name [20:30:26]save OK [20:30:26]Clear old archive folders... [20:30:26]ProcessDocumentItem done err = 0, tmpTLVsize=250 [20:30:26]tlvbuf is B6E9B2C0 [20:30:26]SAM_PROTO_ClearQueue [20:30:26]wFMCommunicate request_size=4 [20:30:26]MH_SAM_APDU [20:30:26]CAPDU: 80 09 00 00 [20:30:26]Write to MH i2c: E2 08 00 26 17 80 09 00 00 00 00 00 00 AF [20:30:26]Write i2c OK [20:30:26]MH_I2C_Read... [20:30:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:30:26]Read from MH i2c: E2 [20:30:26]MH_I2C_Read... [20:30:26]Read from MH i2c: E2 03 00 [20:30:26]MH_I2C_Read... [20:30:26]Read from MH i2c: E2 03 00 26 17 00 90 00 B1 [20:30:26]RAPDU: 90 00 [20:30:26]wFMCommunicate OK [20:30:26]SAM_PROTO_ClearQueue done [20:30:26]KKMCreateOFDPacket [20:30:26]OFDProtocolAddRootSTLVToBuf [20:30:26]FM_MakeSignedData [20:30:26]FM_MakeSignedData [20:30:26]SAM_PROTO_SignData [20:30:26]wFMCommunicate request_size=4 [20:30:26]MH_SAM_APDU [20:30:26]CAPDU: 80 0D 01 02 [20:30:26]Write to MH i2c: E2 08 00 27 17 80 0D 01 02 00 00 00 00 B7 [20:30:26]Write i2c OK [20:30:26]MH_I2C_Read... [20:30:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:30:26]Read from MH i2c: E2 [20:30:26]MH_I2C_Read... [20:30:26]Read from MH i2c: E2 03 00 [20:30:26]MH_I2C_Read... [20:30:26]Read from MH i2c: E2 03 00 27 17 00 90 00 B2 [20:30:26]RAPDU: 90 00 [20:30:26]wFMCommunicate OK [20:30:26]wFMCommunicate request_size=255 [20:30:26]MH_SAM_APDU [20:30:26]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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 01 00 00 F4 03 04 00 62 68 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B5 0F 01 00 35 04 06 00 63 7A [20:30:26]Write to MH i2c: E2 02 01 28 17 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 01 00 00 F4 03 04 00 62 68 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B5 0F 01 00 35 04 06 00 63 7A 00 00 68 [20:30:26]Write i2c OK [20:30:26]MH_I2C_Read... [20:30:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:30:26]Read from MH i2c: E2 [20:30:26]MH_I2C_Read... [20:30:26]Read from MH i2c: E2 03 00 [20:30:26]MH_I2C_Read... [20:30:26]Read from MH i2c: E2 03 00 28 17 00 90 00 B3 [20:30:26]RAPDU: 90 00 [20:30:26]wFMCommunicate OK [20:30:26]wFMCommunicate request_size=9 [20:30:26]MH_SAM_APDU [20:30:26]CAPDU: 80 0D 02 02 04 A5 6A 4C F8 [20:30:26]Write to MH i2c: E2 0C 00 29 17 80 0D 02 02 04 00 A5 6A 4C F8 00 00 15 [20:30:26]Write i2c OK [20:30:26]MH_I2C_Read... [20:30:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:30:26]Read from MH i2c: E2 [20:30:26]MH_I2C_Read... [20:30:26]Read from MH i2c: E2 03 00 [20:30:26]MH_I2C_Read... [20:30:26]Read from MH i2c: E2 03 00 29 17 00 90 00 B4 [20:30:26]RAPDU: 90 00 [20:30:26]wFMCommunicate OK [20:30:26]wFMCommunicate request_size=4 [20:30:26]MH_SAM_APDU [20:30:26]CAPDU: 80 0D 03 02 [20:30:26]Write to MH i2c: E2 08 00 2A 17 80 0D 03 02 00 00 00 00 BC [20:30:26]Write i2c OK [20:30:26]MH_I2C_Read... [20:30:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:30:26]Read from MH i2c: E2 [20:30:26]MH_I2C_Read... [20:30:26]Read from MH i2c: E2 0B 00 [20:30:26]MH_I2C_Read... [20:30:26]Read from MH i2c: E2 0B 00 2A 17 00 45 DA 16 E7 13 0B 5F 95 90 00 EB [20:30:26]RAPDU: 45 DA 16 E7 13 0B 5F 95 90 00 [20:30:26]wFMCommunicate OK [20:30:26]SAM_PROTO_SignData done [20:30:26]FM_MakeSignedData done [20:30:26]CreateOFDProtocolMessage [20:30:26]wFMCommunicate request_size=4 [20:30:26]MH_SAM_APDU [20:30:26]CAPDU: 80 11 00 00 [20:30:26]Write to MH i2c: E2 08 00 2B 17 80 11 00 00 00 00 00 00 BC [20:30:26]Write i2c OK [20:30:26]MH_I2C_Read... [20:30:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:30:26]Read from MH i2c: E2 [20:30:26]MH_I2C_Read... [20:30:26]Read from MH i2c: E2 17 00 [20:30:26]MH_I2C_Read... [20:30:26]Read from MH i2c: E2 17 00 2B 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0E [20:30:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:30:26]wFMCommunicate OK [20:30:26]CreateOFDProtocolMessage done [20:30:26]OFDSenderStorePacket 69557 [20:30:26]StoreOFDPacket docnum=69557 [20:30:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 B6 BF 06 01 22 02 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 01 00 00 F4 03 04 00 62 68 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B5 0F 01 00 35 04 06 00 63 7A A5 6A 4C F8 45 DA 16 E7 13 0B 5F 95 [20:30:26]CheckFolder [20:30:26]dirname=/storage/ofd_packets [20:30:26]CheckFolder done [20:30:26]ProducePacketName [20:30:26]name=ofd_packets/00069557 [20:30:26]NVStorageSaveData ofd_packets/00069557 [20:30:26]File name is /storage/ofd_packets/00069557 [20:30:26]Write 300 bytes [20:30:26]NVStorageSaveData done [20:30:26]OFDSenderStorePacket done [20:30:26]KKMCreateOFDPacket done [20:30:26]NVStorageSaveData kkm_last_timestamp [20:30:26]File name is /storage/kkm_last_timestamp [20:30:26]Write 4 bytes [20:30:26]NVStorageSaveData done [20:30:26]ExternCall_PrintAddStr [20:30:26]wPrintStart [20:30:26]Write to MH i2c: 01 00 00 2C 17 43 [20:30:26]Write i2c OK [20:30:26]MH_I2C_Read... [20:30:26]Read from MH i2c: 01 [20:30:26]MH_I2C_Read... [20:30:26]Read from MH i2c: 01 07 00 [20:30:26]MH_I2C_Read... [20:30:26]Read from MH i2c: 01 07 00 2C 17 00 00 00 00 00 FF 0F 58 [20:30:26]RasterBufferAndPrint [20:30:26]line Счет N : (1)2885296 [20:30:26]line ИНН: 02508201610067 [20:30:26]line Контрольно-Кассовый Чек [20:30:26]line ПРОДАЖА [20:30:26]line ТРК (МРК, ГНК) : 71 [20:30:26]line Товар: 2711129700 [20:30:26]line ГАЗ-К-3 [20:30:26]line 12.860 * 38.90 [20:30:26]line = 500.25 [20:30:26]line НДС 12% НСП 1% [20:30:26]line > о реализуемом товаре [20:30:26]line ИТОГО: 500.25 [20:30:26]line НСП 1% : 4.43 [20:30:26]line НДС 12% : 53.12 [20:30:26]line Наличными: 0.00 [20:30:26]line Безнал.: 500.25 [20:30:26]line Место: АЗС № 85 "Партнер Нефть" [20:30:26]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:30:26]line СНО: Общий режим [20:30:26]line Чек 402 20.10.2024 20:30 [20:30:26]line Смена: 193 ФФД: 1.0 [20:30:26]line ЗНМ: 0300000167 [20:30:26]line РНМ: 0000000000156251 [20:30:26]line Версия ККМ: v1.0 [20:30:26]line Платежная система: Mbank [20:30:26]line ФМ: 0000000000963346 [20:30:26]line ФД: 69557 [20:30:26]line ФПД: 109378412367096 [20:30:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T203026&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69557&fm=109378412367096&tin=02508201610067®Number=0000000000156251&sum=50025 [20:30:27]written 0, free lines is 4095 [20:30:27]Write to MH i2c: 01 00 00 55 17 6C [20:30:27]Write i2c OK [20:30:27]MH_I2C_Read... [20:30:27]Read from MH i2c: 01 [20:30:27]MH_I2C_Read... [20:30:27]Read from MH i2c: 01 07 00 [20:30:27]MH_I2C_Read... [20:30:27]Read from MH i2c: 01 07 00 55 17 00 00 00 00 00 0B 0D 8B [20:30:27]RasterBufferAndPrint [20:30:27]line [20:30:27]line [20:30:27]line [20:30:27]line [20:30:27]line [20:30:27]written 0, free lines is 3345 [20:30:27]MH_Cut [20:30:27]Write to MH i2c: D1 01 00 5C 17 01 45 [20:30:27]Write i2c OK [20:30:27]MH_I2C_Read... [20:30:27]Read from MH i2c: D1 [20:30:27]MH_I2C_Read... [20:30:27]Read from MH i2c: D1 01 00 [20:30:27]MH_I2C_Read... [20:30:27]Read from MH i2c: D1 01 00 5C 17 00 44 [20:30:27]Write to MH i2c: 01 00 00 5D 17 74 [20:30:27]Write i2c OK [20:30:27]MH_I2C_Read... [20:30:28]*** Cut start [20:30:28]*** Partial cut [20:30:28]*** CUTSNS_PIN = 1 [20:30:28]*** CUTSNS_PIN = 0 [20:30:28]*** Brake cut motor [20:30:28]Read from MH i2c: 01 [20:30:28]MH_I2C_Read... [20:30:28]*** Stop cut motor [20:30:28]*** Cut end [20:30:28]Read from MH i2c: 01 07 00 [20:30:28]MH_I2C_Read... [20:30:28]Read from MH i2c: 01 07 00 5D 17 00 00 00 00 00 FF 0F 89 [20:30:28]process_action close_receipt done [20:30:28]requested_data is exist [20:30:28]produce_requested_data [20:30:28]requested_item fm.sn is exist - process it [20:30:28]wFMCommunicate request_size=4 [20:30:28]MH_SAM_APDU [20:30:28]CAPDU: 80 11 00 00 [20:30:28]Write to MH i2c: E2 08 00 5E 17 80 11 00 00 00 00 00 00 EF [20:30:28]Write i2c OK [20:30:28]MH_I2C_Read... [20:30:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:30:29]Read from MH i2c: E2 [20:30:29]MH_I2C_Read... [20:30:29]Read from MH i2c: E2 17 00 [20:30:29]MH_I2C_Read... [20:30:29]Read from MH i2c: E2 17 00 5E 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 41 [20:30:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:30:29]wFMCommunicate OK [20:30:29]requested_item fd.num is exist - process it [20:30:29]SAM_PROTO_GetFieldsCounters [20:30:29]wFMCommunicate request_size=4 [20:30:29]MH_SAM_APDU [20:30:29]CAPDU: 80 13 00 00 [20:30:29]Write to MH i2c: E2 08 00 5F 17 80 13 00 00 00 00 00 00 F2 [20:30:29]Write i2c OK [20:30:29]MH_I2C_Read... [20:30:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:30:29]Read from MH i2c: E2 [20:30:29]MH_I2C_Read... [20:30:29]Read from MH i2c: E2 62 00 [20:30:29]MH_I2C_Read... [20:30:29]Read from MH i2c: E2 62 00 5F 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B5 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 92 01 00 00 5E 04 04 00 92 01 00 00 57 04 04 00 93 01 00 00 19 04 04 00 00 00 00 00 90 00 4C [20:30:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B5 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 92 01 00 00 5E 04 04 00 92 01 00 00 57 04 04 00 93 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:30:29]wFMCommunicate OK [20:30:29]SAM_PROTO_GetFieldsCounters done [20:30:29]requested_item shift.num is exist - process it [20:30:29]requested_item shift.opened is exist - process it [20:30:29]req_shift_opened [20:30:29]FM_GetShiftState [20:30:29]SAM_PROTO_GetShiftState [20:30:29]wFMCommunicate request_size=4 [20:30:29]MH_SAM_APDU [20:30:29]CAPDU: 80 13 01 00 [20:30:29]Write to MH i2c: E2 08 00 60 17 80 13 01 00 00 00 00 00 F4 [20:30:29]Write i2c OK [20:30:29]MH_I2C_Read... [20:30:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:29]Read from MH i2c: E2 [20:30:29]MH_I2C_Read... [20:30:29]Read from MH i2c: E2 0E 00 [20:30:29]MH_I2C_Read... [20:30:29]Read from MH i2c: E2 0E 00 60 17 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 FA [20:30:29]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:30:29]wFMCommunicate OK [20:30:29]SAM_PROTO_GetShiftState done [20:30:29]FM_GetShiftState done [20:30:29]req_shift_opened done [20:30:29]requested_item shift.open_date is exist - process it [20:30:29]req_shift_open_date [20:30:29]req_shift_open_date done [20:30:29]produce_requested_data done [20:30:29]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69557,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [20:30:29]process_action_free close_receipt [20:30:29]json_value_free [20:30:29]json_value_free done [20:30:29]process_json_proto returns [20:30:29]Send response to host [20:30:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69557,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [20:30:29]free response buf [20:30:29]execute_script done [20:30:29]execute_script returns [20:30:29]free content buf [20:30:29]Sock 7.Close socket [20:30:29]Sock 7.Thread stoped [20:31:05]ConnectInit Can't connect to host [20:31:05]CommunicateWithHost connect error [20:31:05]CommunicateWithHost err = -1 [20:31:05]OFD Sender: Server communicate error [20:31:05]OFD Sender: Processing packet 69556 [packets to send 19, broken 17] [20:31:05]ProducePacketName [20:31:05]name=ofd_packets/00069556 [20:31:05]OFD Sender: To server: pG, [20:31:05]CommunicateWithHost lk.salyk.kg:30040 [20:31:05]ConnectInit lk.salyk.kg [20:33:18]ConnectInit Can't connect to host [20:33:18]CommunicateWithHost connect error [20:33:18]CommunicateWithHost err = -1 [20:33:18]OFD Sender: Server communicate error [20:33:23]OFD Sender: Processing packet 69556 [packets to send 19, broken 17] [20:33:23]ProducePacketName [20:33:23]name=ofd_packets/00069556 [20:33:23]OFD Sender: To server: pG, [20:33:23]CommunicateWithHost lk.salyk.kg:30040 [20:33:23]ConnectInit lk.salyk.kg [20:33:23]Connected sock=7 [20:33:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 14 A9 06 01 42 AA 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 01 00 00 F4 03 04 00 04 68 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B4 0F 01 00 35 04 06 00 70 97 DA 32 93 45 FE 81 F4 AB FA D9 21 29 [20:33:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 A0 AD 47 00 86 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B4 0F 01 00 F4 03 04 00 B8 12 15 67 B6 04 01 00 00 2C 3B 54 1B A5 37 58 C1 [20:33:23]CommunicateWithHost err = 0 [20:33:23]CheckOFDResponse [20:33:23]1017 (14) - 77093643461234 [20:33:23]1041 (16) - 0000000000963346 [20:33:23]1040 (4) - 69556 [20:33:23]1012 (4) - 20.10.2024 14:24 [20:33:23]1206 (1) - 0 [20:33:23]OFD Sender: Remove packet 69556 [20:33:23]ProducePacketName [20:33:23]name=ofd_packets/00069556 [20:33:23]NVStorageDeleteData [20:33:24]OFD Sender: Processing packet 69557 [packets to send 18, broken 17] [20:33:24]ProducePacketName [20:33:24]name=ofd_packets/00069557 [20:33:24]OFD Sender: To server: pG, [20:33:24]CommunicateWithHost lk.salyk.kg:30040 [20:33:24]ConnectInit lk.salyk.kg [20:33:24]Connected sock=7 [20:33:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 B6 BF 06 01 22 02 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 01 00 00 F4 03 04 00 62 68 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B5 0F 01 00 35 04 06 00 63 7A A5 6A 4C F8 45 DA 16 E7 13 0B 5F 95 [20:33:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 A5 49 47 00 FE 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B5 0F 01 00 F4 03 04 00 B9 12 15 67 B6 04 01 00 00 A6 59 10 D0 9D 1F D3 5B [20:33:24]CommunicateWithHost err = 0 [20:33:24]CheckOFDResponse [20:33:24]1017 (14) - 77093643461234 [20:33:24]1041 (16) - 0000000000963346 [20:33:24]1040 (4) - 69557 [20:33:24]1012 (4) - 20.10.2024 14:24 [20:33:24]1206 (1) - 0 [20:33:24]OFD Sender: Remove packet 69557 [20:33:24]ProducePacketName [20:33:24]name=ofd_packets/00069557 [20:33:24]NVStorageDeleteData [20:33:25]OFD Sender: No OFD packet to send [20:33:30]OFD Sender: No OFD packet to send [20:33:35]OFD Sender: No OFD packet to send [20:33:40]OFD Sender: No OFD packet to send [20:33:45]OFD Sender: No OFD packet to send [20:33:50]OFD Sender: No OFD packet to send [20:33:55]OFD Sender: No OFD packet to send [20:34:00]OFD Sender: No OFD packet to send [20:34:05]OFD Sender: No OFD packet to send [20:34:10]OFD Sender: No OFD packet to send [20:34:15]OFD Sender: No OFD packet to send [20:34:20]OFD Sender: No OFD packet to send [20:34:25]OFD Sender: No OFD packet to send [20:34:30]OFD Sender: No OFD packet to send [20:34:32]accept exits with 9 [20:34:32]New connection [20:34:32]New thread 3066654052 created [20:34:32]Thread 3066797412 joined [20:34:32]Waiting for new connection... [20:34:32] Sock 9.Parse request [20:34:32]Sock 9.Check first char [20:34:32]Sock 9.First char is OK [20:34:32]request: POST /json_proto HTTP/1.0 [20:34:32]Method: POST [20:34:32]URL: /json_proto [20:34:32]Method is POST - this is cgi request [20:34:32]url: /json_proto [20:34:32]query_string will be loaded in cgi processing [20:34:32]execute_cgi json_proto POST (null) [20:34:32]execute_cgi path=json_proto method=POST [20:34:32]POST find Content-Length [20:34:32]Host: 172.17.50.3:8080 [20:34:32]Content-Length: 801 [20:34:32]Content-Type: application/json [20:34:32] [20:34:32]POST finish read [20:34:32]Found Content-Length = 801 [20:34:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3905549", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:34:32]execute_script... [20:34: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)2885297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3905549", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:34:32]POST & json_proto [20:34:32]process_json_proto [20:34:32]json parsed OK: [20:34:32]protocol is kg_v1.0 [20:34:32]action value=close_receipt [20:34:32]process_action close_receipt [20:34:32]cmd_close_receipt [20:34:32]MH_GetDate [20:34:32]Write to MH i2c: F0 00 00 61 17 67 [20:34:32]Write i2c OK [20:34:32]MH_I2C_Read... [20:34:32]Read from MH i2c: F0 [20:34:32]MH_I2C_Read... [20:34:32]Read from MH i2c: F0 09 00 [20:34:32]MH_I2C_Read... [20:34:32]Read from MH i2c: F0 09 00 61 17 00 59 69 15 67 6B 98 1E 66 35 [20:34:32]GetLastDocTimeStamp 1729456226 [20:34:32]current date 1729456473 [20:34:32]FM_GetShiftState [20:34:32]SAM_PROTO_GetShiftState [20:34:32]wFMCommunicate request_size=4 [20:34:32]MH_SAM_APDU [20:34:32]CAPDU: 80 13 01 00 [20:34:32]Write to MH i2c: E2 08 00 62 17 80 13 01 00 00 00 00 00 F6 [20:34:32]Write i2c OK [20:34:32]MH_I2C_Read... [20:34:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:34:32]Read from MH i2c: E2 [20:34:32]MH_I2C_Read... [20:34:32]Read from MH i2c: E2 0E 00 [20:34:32]MH_I2C_Read... [20:34:32]Read from MH i2c: E2 0E 00 62 17 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 FC [20:34:32]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:34:32]wFMCommunicate OK [20:34:32]SAM_PROTO_GetShiftState done [20:34:32]FM_GetShiftState done [20:34:32]opened in 1729383220 [20:34:32]opened+sec_in_day 1729469620 [20:34:32]quantity*price = 0 [20:34:32]sum+1 = 1 [20:34:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 403 20.10.2024 20:34 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливные Талоны 3905549 ФМ: 0000000000963346 ФД: 69558 ФПД: 66862225886359 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T203433&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69558&fm=66862225886359&tin=02508201610067®Number=0000000000156251&sum=0 [20:34:33]StoreToDocumentArchive [20:34:33]shift 193 fd 69558 [20:34:33]save to /storage/0193/doc_00069558 [20:34:33]save last doc name /storage/0193/doc_00069558 to /storage/kkm_last_doc_name [20:34:33]save OK [20:34:33]Clear old archive folders... [20:34:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:34:33]tlvbuf is B6F32D30 [20:34:33]SAM_PROTO_ClearQueue [20:34:33]wFMCommunicate request_size=4 [20:34:33]MH_SAM_APDU [20:34:33]CAPDU: 80 09 00 00 [20:34:33]Write to MH i2c: E2 08 00 6F 17 80 09 00 00 00 00 00 00 F8 [20:34:33]Write i2c OK [20:34:33]MH_I2C_Read... [20:34:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:34:33]Read from MH i2c: E2 [20:34:33]MH_I2C_Read... [20:34:33]Read from MH i2c: E2 03 00 [20:34:33]MH_I2C_Read... [20:34:33]Read from MH i2c: E2 03 00 6F 17 00 90 00 FA [20:34:33]RAPDU: 90 00 [20:34:33]wFMCommunicate OK [20:34:33]SAM_PROTO_ClearQueue done [20:34:33]KKMCreateOFDPacket [20:34:33]OFDProtocolAddRootSTLVToBuf [20:34:33]FM_MakeSignedData [20:34:33]FM_MakeSignedData [20:34:33]SAM_PROTO_SignData [20:34:33]wFMCommunicate request_size=4 [20:34:33]MH_SAM_APDU [20:34:33]CAPDU: 80 0D 01 02 [20:34:33]Write to MH i2c: E2 08 00 70 17 80 0D 01 02 00 00 00 00 00 [20:34:33]Write i2c OK [20:34:33]MH_I2C_Read... [20:34:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:34:33]Read from MH i2c: E2 [20:34:33]MH_I2C_Read... [20:34:33]Read from MH i2c: E2 03 00 [20:34:33]MH_I2C_Read... [20:34:33]Read from MH i2c: E2 03 00 70 17 00 90 00 FB [20:34:33]RAPDU: 90 00 [20:34:33]wFMCommunicate OK [20:34:33]wFMCommunicate request_size=255 [20:34:33]MH_SAM_APDU [20:34:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 93 01 00 00 F4 03 04 00 59 69 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B6 0F 01 00 35 04 06 00 3C [20:34:33]Write to MH i2c: E2 02 01 71 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 01 00 00 F4 03 04 00 59 69 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B6 0F 01 00 35 04 06 00 3C 00 00 07 [20:34:33]Write i2c OK [20:34:33]MH_I2C_Read... [20:34:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:33]Read from MH i2c: E2 [20:34:33]MH_I2C_Read... [20:34:33]Read from MH i2c: E2 03 00 [20:34:33]MH_I2C_Read... [20:34:33]Read from MH i2c: E2 03 00 71 17 00 90 00 FC [20:34:33]RAPDU: 90 00 [20:34:33]wFMCommunicate OK [20:34:33]wFMCommunicate request_size=10 [20:34:33]MH_SAM_APDU [20:34:33]CAPDU: 80 0D 02 02 05 CF 93 39 0C 97 [20:34:33]Write to MH i2c: E2 0D 00 72 17 80 0D 02 02 05 00 CF 93 39 0C 97 00 00 4B [20:34:33]Write i2c OK [20:34:33]MH_I2C_Read... [20:34:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:33]Read from MH i2c: E2 [20:34:33]MH_I2C_Read... [20:34:33]Read from MH i2c: E2 03 00 [20:34:33]MH_I2C_Read... [20:34:33]Read from MH i2c: E2 03 00 72 17 00 90 00 FD [20:34:33]RAPDU: 90 00 [20:34:33]wFMCommunicate OK [20:34:33]wFMCommunicate request_size=4 [20:34:33]MH_SAM_APDU [20:34:33]CAPDU: 80 0D 03 02 [20:34:33]Write to MH i2c: E2 08 00 73 17 80 0D 03 02 00 00 00 00 05 [20:34:33]Write i2c OK [20:34:33]MH_I2C_Read... [20:34:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:34:33]Read from MH i2c: E2 [20:34:33]MH_I2C_Read... [20:34:33]Read from MH i2c: E2 0B 00 [20:34:33]MH_I2C_Read... [20:34:33]Read from MH i2c: E2 0B 00 73 17 00 73 30 28 62 B1 09 94 9A 90 00 1B [20:34:33]RAPDU: 73 30 28 62 B1 09 94 9A 90 00 [20:34:33]wFMCommunicate OK [20:34:33]SAM_PROTO_SignData done [20:34:33]FM_MakeSignedData done [20:34:33]CreateOFDProtocolMessage [20:34:33]wFMCommunicate request_size=4 [20:34:33]MH_SAM_APDU [20:34:33]CAPDU: 80 11 00 00 [20:34:33]Write to MH i2c: E2 08 00 74 17 80 11 00 00 00 00 00 00 05 [20:34:33]Write i2c OK [20:34:33]MH_I2C_Read... [20:34:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:33]Read from MH i2c: E2 [20:34:33]MH_I2C_Read... [20:34:33]Read from MH i2c: E2 17 00 [20:34:33]MH_I2C_Read... [20:34:33]Read from MH i2c: E2 17 00 74 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 57 [20:34:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:34:33]wFMCommunicate OK [20:34:33]CreateOFDProtocolMessage done [20:34:33]OFDSenderStorePacket 69558 [20:34:33]StoreOFDPacket docnum=69558 [20:34:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 D1 FB 07 01 BE 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 01 00 00 F4 03 04 00 59 69 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B6 0F 01 00 35 04 06 00 3C CF 93 39 0C 97 73 30 28 62 B1 09 94 9A [20:34:33]CheckFolder [20:34:33]dirname=/storage/ofd_packets [20:34:33]CheckFolder done [20:34:33]ProducePacketName [20:34:33]name=ofd_packets/00069558 [20:34:33]NVStorageSaveData ofd_packets/00069558 [20:34:33]File name is /storage/ofd_packets/00069558 [20:34:33]Write 301 bytes [20:34:33]NVStorageSaveData done [20:34:33]OFDSenderStorePacket done [20:34:33]KKMCreateOFDPacket done [20:34:33]NVStorageSaveData kkm_last_timestamp [20:34:33]File name is /storage/kkm_last_timestamp [20:34:33]Write 4 bytes [20:34:33]NVStorageSaveData done [20:34:33]ExternCall_PrintAddStr [20:34:33]wPrintStart [20:34:33]Write to MH i2c: 01 00 00 75 17 8C [20:34:33]Write i2c OK [20:34:33]MH_I2C_Read... [20:34:33]Read from MH i2c: 01 [20:34:33]MH_I2C_Read... [20:34:33]Read from MH i2c: 01 07 00 [20:34:33]MH_I2C_Read... [20:34:33]Read from MH i2c: 01 07 00 75 17 00 00 00 00 00 FF 0F A1 [20:34:33]RasterBufferAndPrint [20:34:33]line Счет N : (1)2885297 [20:34:33]line ИНН: 02508201610067 [20:34:33]line Контрольно-Кассовый Чек [20:34:33]line ПРОДАЖА [20:34:33]line ТРК (МРК, ГНК) : 12 [20:34:33]line Товар: 2710124130 [20:34:33]line Аи-92-К-5 [20:34:33]line 20.000 * 0.00 [20:34:33]line = 0.00 [20:34:33]line НДС 12% НСП 1% [20:34:33]line > о реализуемом товаре [20:34:33]line ИТОГО: 0.00 [20:34:33]line НСП 1% : 0.00 [20:34:33]line НДС 12% : 0.00 [20:34:33]line Наличными: 0.00 [20:34:33]line Безнал.: 0.00 [20:34:33]line Место: АЗС № 85 "Партнер Нефть" [20:34:33]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:34:33]line СНО: Общий режим [20:34:33]line Чек 403 20.10.2024 20:34 [20:34:33]line Смена: 193 ФФД: 1.0 [20:34:33]line ЗНМ: 0300000167 [20:34:33]line РНМ: 0000000000156251 [20:34:33]line Версия ККМ: v1.0 [20:34:33]line Талоны: Топливные Талоны [20:34:33]line 3905549 [20:34:33]line ФМ: 0000000000963346 [20:34:33]line ФД: 69558 [20:34:33]line ФПД: 66862225886359 [20:34:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T203433&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69558&fm=66862225886359&tin=02508201610067®Number=0000000000156251&sum=0 [20:34:34]OFD Sender: Processing packet 69558 [packets to send 18, broken 17] [20:34:34]ProducePacketName [20:34:34]name=ofd_packets/00069558 [20:34:34]OFD Sender: To server: pG, [20:34:34]CommunicateWithHost lk.salyk.kg:30040 [20:34:34]ConnectInit lk.salyk.kg [20:34:34]written 0, free lines is 4095 [20:34:34]Connected sock=10 [20:34:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 D1 FB 07 01 BE 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 01 00 00 F4 03 04 00 59 69 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B6 0F 01 00 35 04 06 00 3C CF 93 39 0C 97 73 30 28 62 B1 09 94 9A [20:34:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 CB 78 47 00 6C 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B6 0F 01 00 F4 03 04 00 FE 12 15 67 B6 04 01 00 00 22 0E CE 18 26 CD 06 C3 [20:34:34]CommunicateWithHost err = 0 [20:34:34]CheckOFDResponse [20:34:34]1017 (14) - 77093643461234 [20:34:34]1041 (16) - 0000000000963346 [20:34:34]1040 (4) - 69558 [20:34:34]1012 (4) - 20.10.2024 14:26 [20:34:34]1206 (1) - 0 [20:34:34]OFD Sender: Remove packet 69558 [20:34:34]ProducePacketName [20:34:34]name=ofd_packets/00069558 [20:34:34]NVStorageDeleteData [20:34:34]Write to MH i2c: 01 00 00 9F 17 B6 [20:34:34]Write i2c OK [20:34:34]MH_I2C_Read... [20:34:34]Read from MH i2c: 01 [20:34:34]MH_I2C_Read... [20:34:34]Read from MH i2c: 01 07 00 [20:34:34]MH_I2C_Read... [20:34:34]Read from MH i2c: 01 07 00 9F 17 00 00 00 00 00 15 0D DF [20:34:34]RasterBufferAndPrint [20:34:34]line [20:34:34]line [20:34:34]line [20:34:34]line [20:34:34]line [20:34:34]written 0, free lines is 3358 [20:34:34]MH_Cut [20:34:34]Write to MH i2c: D1 01 00 A6 17 01 8F [20:34:34]Write i2c OK [20:34:34]MH_I2C_Read... [20:34:34]Read from MH i2c: D1 [20:34:34]MH_I2C_Read... [20:34:34]Read from MH i2c: D1 01 00 [20:34:34]MH_I2C_Read... [20:34:34]Read from MH i2c: D1 01 00 A6 17 00 8E [20:34:34]Write to MH i2c: 01 00 00 A7 17 BE [20:34:34]Write i2c OK [20:34:34]MH_I2C_Read... [20:34:34]OFD Sender: No OFD packet to send [20:34:35]*** Cut start [20:34:35]*** Partial cut [20:34:35]*** CUTSNS_PIN = 1 [20:34:35]*** CUTSNS_PIN = 0 [20:34:35]*** Brake cut motor [20:34:35]Read from MH i2c: 01 [20:34:35]MH_I2C_Read... [20:34:35]*** Stop cut motor [20:34:35]*** Cut end [20:34:35]Read from MH i2c: 01 07 00 [20:34:35]MH_I2C_Read... [20:34:35]Read from MH i2c: 01 07 00 A7 17 00 00 00 00 00 FF 0F D3 [20:34:35]process_action close_receipt done [20:34:35]requested_data is exist [20:34:35]produce_requested_data [20:34:35]requested_item fm.sn is exist - process it [20:34:35]wFMCommunicate request_size=4 [20:34:35]MH_SAM_APDU [20:34:35]CAPDU: 80 11 00 00 [20:34:35]Write to MH i2c: E2 08 00 A8 17 80 11 00 00 00 00 00 00 39 [20:34:35]Write i2c OK [20:34:35]MH_I2C_Read... [20:34:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:35]Read from MH i2c: E2 [20:34:35]MH_I2C_Read... [20:34:35]Read from MH i2c: E2 17 00 [20:34:35]MH_I2C_Read... [20:34:35]Read from MH i2c: E2 17 00 A8 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8B [20:34:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:34:35]wFMCommunicate OK [20:34:35]requested_item fd.num is exist - process it [20:34:35]SAM_PROTO_GetFieldsCounters [20:34:35]wFMCommunicate request_size=4 [20:34:35]MH_SAM_APDU [20:34:35]CAPDU: 80 13 00 00 [20:34:35]Write to MH i2c: E2 08 00 A9 17 80 13 00 00 00 00 00 00 3C [20:34:35]Write i2c OK [20:34:35]MH_I2C_Read... [20:34:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:34:36]Read from MH i2c: E2 [20:34:36]MH_I2C_Read... [20:34:36]Read from MH i2c: E2 62 00 [20:34:36]MH_I2C_Read... [20:34:36]Read from MH i2c: E2 62 00 A9 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B6 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 93 01 00 00 5E 04 04 00 93 01 00 00 57 04 04 00 94 01 00 00 19 04 04 00 00 00 00 00 90 00 9A [20:34:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B6 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 93 01 00 00 5E 04 04 00 93 01 00 00 57 04 04 00 94 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:34:36]wFMCommunicate OK [20:34:36]SAM_PROTO_GetFieldsCounters done [20:34:36]requested_item shift.num is exist - process it [20:34:36]requested_item shift.opened is exist - process it [20:34:36]req_shift_opened [20:34:36]FM_GetShiftState [20:34:36]SAM_PROTO_GetShiftState [20:34:36]wFMCommunicate request_size=4 [20:34:36]MH_SAM_APDU [20:34:36]CAPDU: 80 13 01 00 [20:34:36]Write to MH i2c: E2 08 00 AA 17 80 13 01 00 00 00 00 00 3E [20:34:36]Write i2c OK [20:34:36]MH_I2C_Read... [20:34:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:34:36]Read from MH i2c: E2 [20:34:36]MH_I2C_Read... [20:34:36]Read from MH i2c: E2 0E 00 [20:34:36]MH_I2C_Read... [20:34:36]Read from MH i2c: E2 0E 00 AA 17 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 44 [20:34:36]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:34:36]wFMCommunicate OK [20:34:36]SAM_PROTO_GetShiftState done [20:34:36]FM_GetShiftState done [20:34:36]req_shift_opened done [20:34:36]requested_item shift.open_date is exist - process it [20:34:36]req_shift_open_date [20:34:36]req_shift_open_date done [20:34:36]produce_requested_data done [20:34:36]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69558,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [20:34:36]process_action_free close_receipt [20:34:36]json_value_free [20:34:36]json_value_free done [20:34:36]process_json_proto returns [20:34:36]Send response to host [20:34:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69558,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [20:34:36]free response buf [20:34:36]execute_script done [20:34:36]execute_script returns [20:34:36]free content buf [20:34:36]Sock 9.Close socket [20:34:36]Sock 9.Thread stoped [20:34:39]OFD Sender: No OFD packet to send [20:34:44]OFD Sender: No OFD packet to send [20:34:49]OFD Sender: No OFD packet to send [20:34:55]OFD Sender: No OFD packet to send [20:35:00]OFD Sender: No OFD packet to send [20:35:05]OFD Sender: No OFD packet to send [20:35:10]OFD Sender: No OFD packet to send [20:35:15]OFD Sender: No OFD packet to send [20:35:20]OFD Sender: No OFD packet to send [20:35:21]accept exits with 7 [20:35:21]New connection [20:35:21]New thread 3066797412 created [20:35:21]Thread 3066654052 joined [20:35:21]Waiting for new connection... [20:35:21] Sock 7.Parse request [20:35:21]Sock 7.Check first char [20:35:21]Sock 7.First char is OK [20:35:21]request: POST /json_proto HTTP/1.0 [20:35:21]Method: POST [20:35:21]URL: /json_proto [20:35:21]Method is POST - this is cgi request [20:35:21]url: /json_proto [20:35:21]query_string will be loaded in cgi processing [20:35:21]execute_cgi json_proto POST (null) [20:35:21]execute_cgi path=json_proto method=POST [20:35:21]POST find Content-Length [20:35:21]Host: 172.17.50.3:8080 [20:35:21]Content-Length: 683 [20:35:21]Content-Type: application/json [20:35:21] [20:35:21]POST finish read [20:35:21]Found Content-Length = 683 [20:35:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:35:21]execute_script... [20:35:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:35:21]POST & json_proto [20:35:21]process_json_proto [20:35:21]json parsed OK: [20:35:21]protocol is kg_v1.0 [20:35:21]action value=close_receipt [20:35:21]process_action close_receipt [20:35:21]cmd_close_receipt [20:35:21]MH_GetDate [20:35:21]Write to MH i2c: F0 00 00 AB 17 B1 [20:35:21]Write i2c OK [20:35:21]MH_I2C_Read... [20:35:21]Read from MH i2c: F0 [20:35:21]MH_I2C_Read... [20:35:21]Read from MH i2c: F0 09 00 [20:35:21]MH_I2C_Read... [20:35:21]Read from MH i2c: F0 09 00 AB 17 00 8A 69 15 67 6B 98 1E 66 B0 [20:35:21]GetLastDocTimeStamp 1729456473 [20:35:21]current date 1729456522 [20:35:21]FM_GetShiftState [20:35:21]SAM_PROTO_GetShiftState [20:35:21]wFMCommunicate request_size=4 [20:35:21]MH_SAM_APDU [20:35:21]CAPDU: 80 13 01 00 [20:35:21]Write to MH i2c: E2 08 00 AC 17 80 13 01 00 00 00 00 00 40 [20:35:21]Write i2c OK [20:35:21]MH_I2C_Read... [20:35:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:35:21]Read from MH i2c: E2 [20:35:21]MH_I2C_Read... [20:35:21]Read from MH i2c: E2 0E 00 [20:35:21]MH_I2C_Read... [20:35:21]Read from MH i2c: E2 0E 00 AC 17 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 46 [20:35:21]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:35:21]wFMCommunicate OK [20:35:21]SAM_PROTO_GetShiftState done [20:35:21]FM_GetShiftState done [20:35:21]opened in 1729383220 [20:35:21]opened+sec_in_day 1729469620 [20:35:21]quantity*price = 100015 [20:35:21]sum+1 = 100017 [20:35:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 404 20.10.2024 20:35 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69559 ФПД: 157561700073988 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T203522&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69559&fm=157561700073988&tin=02508201610067®Number=0000000000156251&sum=100000 [20:35:22]StoreToDocumentArchive [20:35:22]shift 193 fd 69559 [20:35:22]save to /storage/0193/doc_00069559 [20:35:22]save last doc name /storage/0193/doc_00069559 to /storage/kkm_last_doc_name [20:35:22]save OK [20:35:22]Clear old archive folders... [20:35:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:35:22]tlvbuf is 00F691A0 [20:35:22]SAM_PROTO_ClearQueue [20:35:22]wFMCommunicate request_size=4 [20:35:22]MH_SAM_APDU [20:35:22]CAPDU: 80 09 00 00 [20:35:22]Write to MH i2c: E2 08 00 B9 17 80 09 00 00 00 00 00 00 42 [20:35:22]Write i2c OK [20:35:22]MH_I2C_Read... [20:35:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:35:22]Read from MH i2c: E2 [20:35:22]MH_I2C_Read... [20:35:22]Read from MH i2c: E2 03 00 [20:35:22]MH_I2C_Read... [20:35:22]Read from MH i2c: E2 03 00 B9 17 00 90 00 44 [20:35:22]RAPDU: 90 00 [20:35:22]wFMCommunicate OK [20:35:22]SAM_PROTO_ClearQueue done [20:35:22]KKMCreateOFDPacket [20:35:22]OFDProtocolAddRootSTLVToBuf [20:35:22]FM_MakeSignedData [20:35:22]FM_MakeSignedData [20:35:22]SAM_PROTO_SignData [20:35:22]wFMCommunicate request_size=4 [20:35:22]MH_SAM_APDU [20:35:22]CAPDU: 80 0D 01 02 [20:35:22]Write to MH i2c: E2 08 00 BA 17 80 0D 01 02 00 00 00 00 4A [20:35:22]Write i2c OK [20:35:22]MH_I2C_Read... [20:35:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:35:22]Read from MH i2c: E2 [20:35:22]MH_I2C_Read... [20:35:22]Read from MH i2c: E2 03 00 [20:35:22]MH_I2C_Read... [20:35:22]Read from MH i2c: E2 03 00 BA 17 00 90 00 45 [20:35:22]RAPDU: 90 00 [20:35:22]wFMCommunicate OK [20:35:22]wFMCommunicate request_size=255 [20:35:22]MH_SAM_APDU [20:35:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 01 00 00 F4 03 04 00 8A 69 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B7 0F 01 00 35 04 06 00 8F [20:35:22]Write to MH i2c: E2 02 01 BB 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 01 00 00 F4 03 04 00 8A 69 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B7 0F 01 00 35 04 06 00 8F 00 00 E8 [20:35:22]Write i2c OK [20:35:22]MH_I2C_Read... [20:35:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:35:23]Read from MH i2c: E2 [20:35:23]MH_I2C_Read... [20:35:23]Read from MH i2c: E2 03 00 [20:35:23]MH_I2C_Read... [20:35:23]Read from MH i2c: E2 03 00 BB 17 00 90 00 46 [20:35:23]RAPDU: 90 00 [20:35:23]wFMCommunicate OK [20:35:23]wFMCommunicate request_size=10 [20:35:23]MH_SAM_APDU [20:35:23]CAPDU: 80 0D 02 02 05 4D 31 29 C2 04 [20:35:23]Write to MH i2c: E2 0D 00 BC 17 80 0D 02 02 05 00 4D 31 29 C2 04 00 00 C4 [20:35:23]Write i2c OK [20:35:23]MH_I2C_Read... [20:35:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:35:23]Read from MH i2c: E2 [20:35:23]MH_I2C_Read... [20:35:23]Read from MH i2c: E2 03 00 [20:35:23]MH_I2C_Read... [20:35:23]Read from MH i2c: E2 03 00 BC 17 00 90 00 47 [20:35:23]RAPDU: 90 00 [20:35:23]wFMCommunicate OK [20:35:23]wFMCommunicate request_size=4 [20:35:23]MH_SAM_APDU [20:35:23]CAPDU: 80 0D 03 02 [20:35:23]Write to MH i2c: E2 08 00 BD 17 80 0D 03 02 00 00 00 00 4F [20:35:23]Write i2c OK [20:35:23]MH_I2C_Read... [20:35:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:35:23]Read from MH i2c: E2 [20:35:23]MH_I2C_Read... [20:35:23]Read from MH i2c: E2 0B 00 [20:35:23]MH_I2C_Read... [20:35:23]Read from MH i2c: E2 0B 00 BD 17 00 DB 8A 43 5B E8 67 DE 1D 90 00 9D [20:35:23]RAPDU: DB 8A 43 5B E8 67 DE 1D 90 00 [20:35:23]wFMCommunicate OK [20:35:23]SAM_PROTO_SignData done [20:35:23]FM_MakeSignedData done [20:35:23]CreateOFDProtocolMessage [20:35:23]wFMCommunicate request_size=4 [20:35:23]MH_SAM_APDU [20:35:23]CAPDU: 80 11 00 00 [20:35:23]Write to MH i2c: E2 08 00 BE 17 80 11 00 00 00 00 00 00 4F [20:35:23]Write i2c OK [20:35:23]MH_I2C_Read... [20:35:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:35:23]Read from MH i2c: E2 [20:35:23]MH_I2C_Read... [20:35:23]Read from MH i2c: E2 17 00 [20:35:23]MH_I2C_Read... [20:35:23]Read from MH i2c: E2 17 00 BE 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A1 [20:35:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:35:23]wFMCommunicate OK [20:35:23]CreateOFDProtocolMessage done [20:35:23]OFDSenderStorePacket 69559 [20:35:23]StoreOFDPacket docnum=69559 [20:35:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 E2 54 07 01 B3 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 01 00 00 F4 03 04 00 8A 69 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B7 0F 01 00 35 04 06 00 8F 4D 31 29 C2 04 DB 8A 43 5B E8 67 DE 1D [20:35:23]CheckFolder [20:35:23]dirname=/storage/ofd_packets [20:35:23]CheckFolder done [20:35:23]ProducePacketName [20:35:23]name=ofd_packets/00069559 [20:35:23]NVStorageSaveData ofd_packets/00069559 [20:35:23]File name is /storage/ofd_packets/00069559 [20:35:23]Write 301 bytes [20:35:23]NVStorageSaveData done [20:35:23]OFDSenderStorePacket done [20:35:23]KKMCreateOFDPacket done [20:35:23]NVStorageSaveData kkm_last_timestamp [20:35:23]File name is /storage/kkm_last_timestamp [20:35:23]Write 4 bytes [20:35:23]NVStorageSaveData done [20:35:23]ExternCall_PrintAddStr [20:35:23]wPrintStart [20:35:23]Write to MH i2c: 01 00 00 BF 17 D6 [20:35:23]Write i2c OK [20:35:23]MH_I2C_Read... [20:35:23]Read from MH i2c: 01 [20:35:23]MH_I2C_Read... [20:35:23]Read from MH i2c: 01 07 00 [20:35:23]MH_I2C_Read... [20:35:23]Read from MH i2c: 01 07 00 BF 17 00 00 00 00 00 FF 0F EB [20:35:23]RasterBufferAndPrint [20:35:23]line Счет N : (1)2885298 [20:35:23]line ИНН: 02508201610067 [20:35:23]line Контрольно-Кассовый Чек [20:35:23]line ПРОДАЖА [20:35:23]line ТРК (МРК, ГНК) : 22 [20:35:23]line Товар: 2710124130 [20:35:23]line Аи-92-К-5 [20:35:23]line 14.950 * 66.90 [20:35:23]line = 1000.16 [20:35:23]line НДС 12% НСП 1% [20:35:23]line > о реализуемом товаре [20:35:23]line ОКРУГЛЕНИЕ: -0.16 [20:35:23]line ИТОГО: 1000.00 [20:35:23]line Внесено: 1000.00 [20:35:23]line СДАЧА: 0.00 [20:35:23]line НСП 1% : 8.85 [20:35:23]line НДС 12% : 106.21 [20:35:23]line Наличными: 1000.00 [20:35:23]line Безнал.: 0.00 [20:35:23]line Место: АЗС № 85 "Партнер Нефть" [20:35:23]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:35:23]line СНО: Общий режим [20:35:23]line Чек 404 20.10.2024 20:35 [20:35:23]line Смена: 193 ФФД: 1.0 [20:35:23]line ЗНМ: 0300000167 [20:35:23]line РНМ: 0000000000156251 [20:35:23]line Версия ККМ: v1.0 [20:35:23]line ФМ: 0000000000963346 [20:35:23]line ФД: 69559 [20:35:23]line ФПД: 157561700073988 [20:35:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T203522&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69559&fm=157561700073988&tin=02508201610067®Number=0000000000156251&sum=100000 [20:35:23]OFD Sender: Processing packet 69559 [packets to send 18, broken 17] [20:35:23]ProducePacketName [20:35:23]name=ofd_packets/00069559 [20:35:23]OFD Sender: To server: pG, [20:35:23]CommunicateWithHost lk.salyk.kg:30040 [20:35:23]ConnectInit lk.salyk.kg [20:35:23]written 0, free lines is 4095 [20:35:23]Connected sock=10 [20:35:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 E2 54 07 01 B3 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 01 00 00 F4 03 04 00 8A 69 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B7 0F 01 00 35 04 06 00 8F 4D 31 29 C2 04 DB 8A 43 5B E8 67 DE 1D [20:35:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 F2 6A 47 00 EF 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B7 0F 01 00 F4 03 04 00 30 13 15 67 B6 04 01 00 00 C5 84 AE EA 0A 14 02 C6 [20:35:24]CommunicateWithHost err = 0 [20:35:24]CheckOFDResponse [20:35:24]1017 (14) - 77093643461234 [20:35:24]1041 (16) - 0000000000963346 [20:35:24]1040 (4) - 69559 [20:35:24]1012 (4) - 20.10.2024 14:26 [20:35:24]1206 (1) - 0 [20:35:24]OFD Sender: Remove packet 69559 [20:35:24]ProducePacketName [20:35:24]name=ofd_packets/00069559 [20:35:24]NVStorageDeleteData [20:35:24]Write to MH i2c: 01 00 00 EA 17 01 [20:35:24]Write i2c OK [20:35:24]MH_I2C_Read... [20:35:24]Read from MH i2c: 01 [20:35:24]MH_I2C_Read... [20:35:24]Read from MH i2c: 01 07 00 [20:35:24]MH_I2C_Read... [20:35:24]Read from MH i2c: 01 07 00 EA 17 00 00 00 00 00 F6 0C 0A [20:35:24]RasterBufferAndPrint [20:35:24]line [20:35:24]line [20:35:24]line [20:35:24]line [20:35:24]line [20:35:24]written 0, free lines is 3324 [20:35:24]MH_Cut [20:35:24]Write to MH i2c: D1 01 00 F1 17 01 DA [20:35:24]Write i2c OK [20:35:24]MH_I2C_Read... [20:35:24]Read from MH i2c: D1 [20:35:24]MH_I2C_Read... [20:35:24]Read from MH i2c: D1 01 00 [20:35:24]MH_I2C_Read... [20:35:24]Read from MH i2c: D1 01 00 F1 17 00 D9 [20:35:24]Write to MH i2c: 01 00 00 F2 17 09 [20:35:24]Write i2c OK [20:35:24]MH_I2C_Read... [20:35:24]OFD Sender: No OFD packet to send [20:35:24]*** Cut start [20:35:24]*** Partial cut [20:35:24]*** CUTSNS_PIN = 1 [20:35:24]*** CUTSNS_PIN = 0 [20:35:25]*** Brake cut motor [20:35:25]Read from MH i2c: 01 [20:35:25]MH_I2C_Read... [20:35:25]*** Stop cut motor [20:35:25]*** Cut end [20:35:25]Read from MH i2c: 01 07 00 [20:35:25]MH_I2C_Read... [20:35:25]Read from MH i2c: 01 07 00 F2 17 00 00 00 00 00 FF 0F 1E [20:35:25]process_action close_receipt done [20:35:25]requested_data is exist [20:35:25]produce_requested_data [20:35:25]requested_item fm.sn is exist - process it [20:35:25]wFMCommunicate request_size=4 [20:35:25]MH_SAM_APDU [20:35:25]CAPDU: 80 11 00 00 [20:35:25]Write to MH i2c: E2 08 00 F3 17 80 11 00 00 00 00 00 00 84 [20:35:25]Write i2c OK [20:35:25]MH_I2C_Read... [20:35:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:35:25]Read from MH i2c: E2 [20:35:25]MH_I2C_Read... [20:35:25]Read from MH i2c: E2 17 00 [20:35:25]MH_I2C_Read... [20:35:25]Read from MH i2c: E2 17 00 F3 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D6 [20:35:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:35:25]wFMCommunicate OK [20:35:25]requested_item fd.num is exist - process it [20:35:25]SAM_PROTO_GetFieldsCounters [20:35:25]wFMCommunicate request_size=4 [20:35:25]MH_SAM_APDU [20:35:25]CAPDU: 80 13 00 00 [20:35:25]Write to MH i2c: E2 08 00 F4 17 80 13 00 00 00 00 00 00 87 [20:35:25]Write i2c OK [20:35:25]MH_I2C_Read... [20:35:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:35:25]Read from MH i2c: E2 [20:35:25]MH_I2C_Read... [20:35:25]Read from MH i2c: E2 62 00 [20:35:25]MH_I2C_Read... [20:35:25]Read from MH i2c: E2 62 00 F4 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B7 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 94 01 00 00 5E 04 04 00 94 01 00 00 57 04 04 00 95 01 00 00 19 04 04 00 00 00 00 00 90 00 E9 [20:35:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B7 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 94 01 00 00 5E 04 04 00 94 01 00 00 57 04 04 00 95 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:35:25]wFMCommunicate OK [20:35:25]SAM_PROTO_GetFieldsCounters done [20:35:25]requested_item shift.num is exist - process it [20:35:25]requested_item shift.opened is exist - process it [20:35:25]req_shift_opened [20:35:25]FM_GetShiftState [20:35:25]SAM_PROTO_GetShiftState [20:35:25]wFMCommunicate request_size=4 [20:35:25]MH_SAM_APDU [20:35:25]CAPDU: 80 13 01 00 [20:35:25]Write to MH i2c: E2 08 00 F5 17 80 13 01 00 00 00 00 00 89 [20:35:25]Write i2c OK [20:35:25]MH_I2C_Read... [20:35:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:35:25]Read from MH i2c: E2 [20:35:25]MH_I2C_Read... [20:35:25]Read from MH i2c: E2 0E 00 [20:35:25]MH_I2C_Read... [20:35:25]Read from MH i2c: E2 0E 00 F5 17 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 8F [20:35:25]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:35:25]wFMCommunicate OK [20:35:25]SAM_PROTO_GetShiftState done [20:35:25]FM_GetShiftState done [20:35:25]req_shift_opened done [20:35:25]requested_item shift.open_date is exist - process it [20:35:25]req_shift_open_date [20:35:25]req_shift_open_date done [20:35:25]produce_requested_data done [20:35:25]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69559,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [20:35:25]process_action_free close_receipt [20:35:25]json_value_free [20:35:25]json_value_free done [20:35:25]process_json_proto returns [20:35:25]Send response to host [20:35:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69559,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [20:35:25]free response buf [20:35:25]execute_script done [20:35:25]execute_script returns [20:35:25]free content buf [20:35:25]Sock 7.Close socket [20:35:25]Sock 7.Thread stoped [20:35:29]OFD Sender: No OFD packet to send [20:35:34]OFD Sender: No OFD packet to send [20:35:39]OFD Sender: No OFD packet to send [20:35:44]OFD Sender: No OFD packet to send [20:35:49]OFD Sender: No OFD packet to send [20:35:54]OFD Sender: No OFD packet to send [20:35:59]OFD Sender: No OFD packet to send [20:36:04]OFD Sender: No OFD packet to send [20:36:09]OFD Sender: No OFD packet to send [20:36:14]OFD Sender: No OFD packet to send [20:36:19]OFD Sender: No OFD packet to send [20:36:24]OFD Sender: No OFD packet to send [20:36:29]OFD Sender: No OFD packet to send [20:36:34]OFD Sender: No OFD packet to send [20:36:39]OFD Sender: No OFD packet to send [20:36:44]OFD Sender: No OFD packet to send [20:36:49]OFD Sender: No OFD packet to send [20:36:54]OFD Sender: No OFD packet to send [20:36:59]OFD Sender: No OFD packet to send [20:37:04]OFD Sender: No OFD packet to send [20:37:09]OFD Sender: No OFD packet to send [20:37:14]OFD Sender: No OFD packet to send [20:37:19]OFD Sender: No OFD packet to send [20:37:24]OFD Sender: No OFD packet to send [20:37:29]OFD Sender: No OFD packet to send [20:37:34]OFD Sender: No OFD packet to send [20:37:39]OFD Sender: No OFD packet to send [20:37:44]OFD Sender: No OFD packet to send [20:37:49]OFD Sender: No OFD packet to send [20:37:54]OFD Sender: No OFD packet to send [20:37:59]OFD Sender: No OFD packet to send [20:38:04]OFD Sender: No OFD packet to send [20:38:09]OFD Sender: No OFD packet to send [20:38:14]OFD Sender: No OFD packet to send [20:38:19]OFD Sender: No OFD packet to send [20:38:24]OFD Sender: No OFD packet to send [20:38:29]OFD Sender: No OFD packet to send [20:38:34]OFD Sender: No OFD packet to send [20:38:39]OFD Sender: No OFD packet to send [20:38:44]OFD Sender: No OFD packet to send [20:38:49]OFD Sender: No OFD packet to send [20:38:54]OFD Sender: No OFD packet to send [20:38:59]OFD Sender: No OFD packet to send [20:39:04]OFD Sender: No OFD packet to send [20:39:09]OFD Sender: No OFD packet to send [20:39:14]OFD Sender: No OFD packet to send [20:39:19]OFD Sender: No OFD packet to send [20:39:24]OFD Sender: No OFD packet to send [20:39:29]OFD Sender: No OFD packet to send [20:39:34]OFD Sender: No OFD packet to send [20:39:39]OFD Sender: No OFD packet to send [20:39:44]OFD Sender: No OFD packet to send [20:39:49]OFD Sender: No OFD packet to send [20:39:54]OFD Sender: No OFD packet to send [20:39:59]OFD Sender: No OFD packet to send [20:40:04]OFD Sender: No OFD packet to send [20:40:09]OFD Sender: No OFD packet to send [20:40:14]OFD Sender: No OFD packet to send [20:40:19]OFD Sender: No OFD packet to send [20:40:24]OFD Sender: No OFD packet to send [20:40:29]OFD Sender: No OFD packet to send [20:40:34]OFD Sender: No OFD packet to send [20:40:39]OFD Sender: No OFD packet to send [20:40:44]OFD Sender: No OFD packet to send [20:40:49]OFD Sender: No OFD packet to send [20:40:54]OFD Sender: No OFD packet to send [20:40:59]OFD Sender: No OFD packet to send [20:41:04]OFD Sender: No OFD packet to send [20:41:09]OFD Sender: No OFD packet to send [20:41:14]OFD Sender: No OFD packet to send [20:41:19]OFD Sender: No OFD packet to send [20:41:24]OFD Sender: No OFD packet to send [20:41:29]OFD Sender: No OFD packet to send [20:41:34]OFD Sender: No OFD packet to send [20:41:39]OFD Sender: No OFD packet to send [20:41:44]OFD Sender: No OFD packet to send [20:41:49]OFD Sender: No OFD packet to send [20:41:54]OFD Sender: No OFD packet to send [20:41:59]OFD Sender: No OFD packet to send [20:42:04]OFD Sender: No OFD packet to send [20:42:09]OFD Sender: No OFD packet to send [20:42:14]OFD Sender: No OFD packet to send [20:42:19]OFD Sender: No OFD packet to send [20:42:24]OFD Sender: No OFD packet to send [20:42:29]OFD Sender: No OFD packet to send [20:42:34]OFD Sender: No OFD packet to send [20:42:39]OFD Sender: No OFD packet to send [20:42:44]OFD Sender: No OFD packet to send [20:42:49]OFD Sender: No OFD packet to send [20:42:54]OFD Sender: No OFD packet to send [20:42:59]OFD Sender: No OFD packet to send [20:43:04]OFD Sender: No OFD packet to send [20:43:09]OFD Sender: No OFD packet to send [20:43:14]OFD Sender: No OFD packet to send [20:43:19]OFD Sender: No OFD packet to send [20:43:24]OFD Sender: No OFD packet to send [20:43:29]OFD Sender: No OFD packet to send [20:43:34]OFD Sender: No OFD packet to send [20:43:39]OFD Sender: No OFD packet to send [20:43:44]OFD Sender: No OFD packet to send [20:43:49]OFD Sender: No OFD packet to send [20:43:54]OFD Sender: No OFD packet to send [20:43:59]OFD Sender: No OFD packet to send [20:44:04]OFD Sender: No OFD packet to send [20:44:09]OFD Sender: No OFD packet to send [20:44:14]OFD Sender: No OFD packet to send [20:44:19]OFD Sender: No OFD packet to send [20:44:24]OFD Sender: No OFD packet to send [20:44:29]OFD Sender: No OFD packet to send [20:44:34]OFD Sender: No OFD packet to send [20:44:40]OFD Sender: No OFD packet to send [20:44:45]OFD Sender: No OFD packet to send [20:44:50]OFD Sender: No OFD packet to send [20:44:55]OFD Sender: No OFD packet to send [20:45:00]OFD Sender: No OFD packet to send [20:45:05]OFD Sender: No OFD packet to send [20:45:10]OFD Sender: No OFD packet to send [20:45:15]OFD Sender: No OFD packet to send [20:45:20]OFD Sender: No OFD packet to send [20:45:25]OFD Sender: No OFD packet to send [20:45:30]OFD Sender: No OFD packet to send [20:45:35]OFD Sender: No OFD packet to send [20:45:40]OFD Sender: No OFD packet to send [20:45:45]OFD Sender: No OFD packet to send [20:45:50]OFD Sender: No OFD packet to send [20:45:55]OFD Sender: No OFD packet to send [20:46:00]OFD Sender: No OFD packet to send [20:46:05]OFD Sender: No OFD packet to send [20:46:10]OFD Sender: No OFD packet to send [20:46:15]OFD Sender: No OFD packet to send [20:46:20]OFD Sender: No OFD packet to send [20:46:25]OFD Sender: No OFD packet to send [20:46:30]OFD Sender: No OFD packet to send [20:46:35]OFD Sender: No OFD packet to send [20:46:40]OFD Sender: No OFD packet to send [20:46:45]OFD Sender: No OFD packet to send [20:46:45]accept exits with 9 [20:46:45]New connection [20:46:45]New thread 3066654052 created [20:46:45]Thread 3066797412 joined [20:46:45]Waiting for new connection... [20:46:45] Sock 9.Parse request [20:46:45]Sock 9.Check first char [20:46:45]Sock 9.First char is OK [20:46:45]request: POST /json_proto HTTP/1.0 [20:46:45]Method: POST [20:46:45]URL: /json_proto [20:46:45]Method is POST - this is cgi request [20:46:45]url: /json_proto [20:46:45]query_string will be loaded in cgi processing [20:46:45]execute_cgi json_proto POST (null) [20:46:45]execute_cgi path=json_proto method=POST [20:46:45]POST find Content-Length [20:46:45]Host: 172.17.50.3:8080 [20:46:45]Content-Length: 776 [20:46:45]Content-Type: application/json [20:46:45] [20:46:45]POST finish read [20:46:45]Found Content-Length = 776 [20:46:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 23.320, "sum" : 1800.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1800.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:46:45]execute_script... [20:46: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)2885299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 23.320, "sum" : 1800.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1800.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:46:45]POST & json_proto [20:46:45]process_json_proto [20:46:45]json parsed OK: [20:46:45]protocol is kg_v1.0 [20:46:45]action value=close_receipt [20:46:45]process_action close_receipt [20:46:45]cmd_close_receipt [20:46:45]MH_GetDate [20:46:45]Write to MH i2c: F0 00 00 F6 17 FC [20:46:45]Write i2c OK [20:46:45]MH_I2C_Read... [20:46:45]Read from MH i2c: F0 [20:46:45]MH_I2C_Read... [20:46:45]Read from MH i2c: F0 09 00 [20:46:45]MH_I2C_Read... [20:46:45]Read from MH i2c: F0 09 00 F6 17 00 36 6C 15 67 6B 98 1E 66 AA [20:46:45]GetLastDocTimeStamp 1729456522 [20:46:45]current date 1729457206 [20:46:45]FM_GetShiftState [20:46:45]SAM_PROTO_GetShiftState [20:46:45]wFMCommunicate request_size=4 [20:46:45]MH_SAM_APDU [20:46:45]CAPDU: 80 13 01 00 [20:46:45]Write to MH i2c: E2 08 00 F7 17 80 13 01 00 00 00 00 00 8B [20:46:45]Write i2c OK [20:46:45]MH_I2C_Read... [20:46:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:45]Read from MH i2c: E2 [20:46:45]MH_I2C_Read... [20:46:45]Read from MH i2c: E2 0E 00 [20:46:45]MH_I2C_Read... [20:46:45]Read from MH i2c: E2 0E 00 F7 17 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 91 [20:46:45]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:46:45]wFMCommunicate OK [20:46:45]SAM_PROTO_GetShiftState done [20:46:45]FM_GetShiftState done [20:46:45]opened in 1729383220 [20:46:45]opened+sec_in_day 1729469620 [20:46:45]quantity*price = 180030 [20:46:45]sum+1 = 180031 [20:46:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1800.30 НСП 1% : 15.93 НДС 12% : 191.18 Наличными: 0.00 Безнал.: 1800.30 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 405 20.10.2024 20:46 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69560 ФПД: 203812710959 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T204646&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69560&fm=203812710959&tin=02508201610067®Number=0000000000156251&sum=180030 [20:46:46]StoreToDocumentArchive [20:46:46]shift 193 fd 69560 [20:46:46]save to /storage/0193/doc_00069560 [20:46:46]save last doc name /storage/0193/doc_00069560 to /storage/kkm_last_doc_name [20:46:46]save OK [20:46:46]Clear old archive folders... [20:46:46]ProcessDocumentItem done err = 0, tmpTLVsize=257 [20:46:46]tlvbuf is 00F166F0 [20:46:46]SAM_PROTO_ClearQueue [20:46:46]wFMCommunicate request_size=4 [20:46:46]MH_SAM_APDU [20:46:46]CAPDU: 80 09 00 00 [20:46:46]Write to MH i2c: E2 08 00 04 18 80 09 00 00 00 00 00 00 8E [20:46:46]Write i2c OK [20:46:46]MH_I2C_Read... [20:46:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:46:46]Read from MH i2c: E2 [20:46:46]MH_I2C_Read... [20:46:46]Read from MH i2c: E2 03 00 [20:46:46]MH_I2C_Read... [20:46:46]Read from MH i2c: E2 03 00 04 18 00 90 00 90 [20:46:46]RAPDU: 90 00 [20:46:46]wFMCommunicate OK [20:46:46]SAM_PROTO_ClearQueue done [20:46:46]KKMCreateOFDPacket [20:46:46]OFDProtocolAddRootSTLVToBuf [20:46:46]FM_MakeSignedData [20:46:46]FM_MakeSignedData [20:46:46]SAM_PROTO_SignData [20:46:46]wFMCommunicate request_size=4 [20:46:46]MH_SAM_APDU [20:46:46]CAPDU: 80 0D 01 02 [20:46:46]Write to MH i2c: E2 08 00 05 18 80 0D 01 02 00 00 00 00 96 [20:46:46]Write i2c OK [20:46:46]MH_I2C_Read... [20:46:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:46:46]Read from MH i2c: E2 [20:46:46]MH_I2C_Read... [20:46:46]Read from MH i2c: E2 03 00 [20:46:46]MH_I2C_Read... [20:46:46]Read from MH i2c: E2 03 00 05 18 00 90 00 91 [20:46:46]RAPDU: 90 00 [20:46:46]wFMCommunicate OK [20:46:46]wFMCommunicate request_size=255 [20:46:46]MH_SAM_APDU [20:46:46]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 18 5B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3E BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3E BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3E BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 01 00 00 F4 03 04 00 36 6C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B8 0F 01 [20:46:46]Write to MH i2c: E2 02 01 06 18 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 18 5B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3E BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3E BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3E BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 01 00 00 F4 03 04 00 36 6C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B8 0F 01 00 00 30 [20:46:46]Write i2c OK [20:46:46]MH_I2C_Read... [20:46:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:46]Read from MH i2c: E2 [20:46:46]MH_I2C_Read... [20:46:46]Read from MH i2c: E2 03 00 [20:46:46]MH_I2C_Read... [20:46:46]Read from MH i2c: E2 03 00 06 18 00 90 00 92 [20:46:46]RAPDU: 90 00 [20:46:46]wFMCommunicate OK [20:46:46]wFMCommunicate request_size=16 [20:46:46]MH_SAM_APDU [20:46:46]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 00 2F 74 2F 2A 2F [20:46:46]Write to MH i2c: E2 13 00 07 18 80 0D 02 02 0B 00 00 35 04 06 00 00 2F 74 2F 2A 2F 00 00 19 [20:46:46]Write i2c OK [20:46:46]MH_I2C_Read... [20:46:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:46]Read from MH i2c: E2 [20:46:46]MH_I2C_Read... [20:46:46]Read from MH i2c: E2 03 00 [20:46:46]MH_I2C_Read... [20:46:46]Read from MH i2c: E2 03 00 07 18 00 90 00 93 [20:46:46]RAPDU: 90 00 [20:46:46]wFMCommunicate OK [20:46:46]wFMCommunicate request_size=4 [20:46:46]MH_SAM_APDU [20:46:46]CAPDU: 80 0D 03 02 [20:46:46]Write to MH i2c: E2 08 00 08 18 80 0D 03 02 00 00 00 00 9B [20:46:46]Write i2c OK [20:46:46]MH_I2C_Read... [20:46:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:46:46]Read from MH i2c: E2 [20:46:46]MH_I2C_Read... [20:46:46]Read from MH i2c: E2 0B 00 [20:46:46]MH_I2C_Read... [20:46:46]Read from MH i2c: E2 0B 00 08 18 00 0F DB 53 0D B9 5E 19 6D 90 00 83 [20:46:46]RAPDU: 0F DB 53 0D B9 5E 19 6D 90 00 [20:46:46]wFMCommunicate OK [20:46:46]SAM_PROTO_SignData done [20:46:46]FM_MakeSignedData done [20:46:46]CreateOFDProtocolMessage [20:46:46]wFMCommunicate request_size=4 [20:46:46]MH_SAM_APDU [20:46:46]CAPDU: 80 11 00 00 [20:46:46]Write to MH i2c: E2 08 00 09 18 80 11 00 00 00 00 00 00 9B [20:46:46]Write i2c OK [20:46:46]MH_I2C_Read... [20:46:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:46]Read from MH i2c: E2 [20:46:46]MH_I2C_Read... [20:46:46]Read from MH i2c: E2 17 00 [20:46:46]MH_I2C_Read... [20:46:46]Read from MH i2c: E2 17 00 09 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 ED [20:46:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:46:46]wFMCommunicate OK [20:46:46]CreateOFDProtocolMessage done [20:46:46]OFDSenderStorePacket 69560 [20:46:46]StoreOFDPacket docnum=69560 [20:46:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 F9 09 0D 01 B7 AD 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 18 5B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3E BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3E BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3E BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 01 00 00 F4 03 04 00 36 6C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B8 0F 01 00 35 04 06 00 00 2F 74 2F 2A 2F 0F DB 53 0D B9 5E 19 6D [20:46:46]CheckFolder [20:46:46]dirname=/storage/ofd_packets [20:46:46]CheckFolder done [20:46:46]ProducePacketName [20:46:46]name=ofd_packets/00069560 [20:46:46]NVStorageSaveData ofd_packets/00069560 [20:46:46]File name is /storage/ofd_packets/00069560 [20:46:46]Write 307 bytes [20:46:46]NVStorageSaveData done [20:46:46]OFDSenderStorePacket done [20:46:46]KKMCreateOFDPacket done [20:46:46]NVStorageSaveData kkm_last_timestamp [20:46:46]File name is /storage/kkm_last_timestamp [20:46:46]Write 4 bytes [20:46:46]NVStorageSaveData done [20:46:46]ExternCall_PrintAddStr [20:46:46]wPrintStart [20:46:46]Write to MH i2c: 01 00 00 0A 18 22 [20:46:46]Write i2c OK [20:46:46]MH_I2C_Read... [20:46:46]Read from MH i2c: 01 [20:46:46]MH_I2C_Read... [20:46:46]Read from MH i2c: 01 07 00 [20:46:46]MH_I2C_Read... [20:46:46]Read from MH i2c: 01 07 00 0A 18 00 00 00 00 00 FF 0F 37 [20:46:46]RasterBufferAndPrint [20:46:46]line Счет N : (1)2885299 [20:46:46]line ИНН: 02508201610067 [20:46:46]line Контрольно-Кассовый Чек [20:46:46]line ПРОДАЖА [20:46:46]line ТРК (МРК, ГНК) : 31 [20:46:46]line Товар: 2710194240 [20:46:46]line D-ENERGY Дт-К-2 [20:46:46]line 23.320 * 77.20 [20:46:46]line = 1800.30 [20:46:46]line НДС 12% НСП 1% [20:46:46]line > о реализуемом товаре [20:46:46]line ИТОГО: 1800.30 [20:46:46]line НСП 1% : 15.93 [20:46:46]line НДС 12% : 191.18 [20:46:46]line Наличными: 0.00 [20:46:46]line Безнал.: 1800.30 [20:46:46]line Место: АЗС № 85 "Партнер Нефть" [20:46:46]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:46:46]line СНО: Общий режим [20:46:46]line Чек 405 20.10.2024 20:46 [20:46:46]line Смена: 193 ФФД: 1.0 [20:46:46]line ЗНМ: 0300000167 [20:46:46]line РНМ: 0000000000156251 [20:46:46]line Версия ККМ: v1.0 [20:46:46]line Платежная система: Mbank [20:46:46]line ФМ: 0000000000963346 [20:46:46]line ФД: 69560 [20:46:46]line ФПД: 203812710959 [20:46:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T204646&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69560&fm=203812710959&tin=02508201610067®Number=0000000000156251&sum=180030 [20:46:47]OFD Sender: Processing packet 69560 [packets to send 18, broken 17] [20:46:47]ProducePacketName [20:46:47]name=ofd_packets/00069560 [20:46:47]OFD Sender: To server: pG, [20:46:47]CommunicateWithHost lk.salyk.kg:30040 [20:46:47]ConnectInit lk.salyk.kg [20:46:47]written 0, free lines is 4095 [20:46:47]Connected sock=10 [20:46:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 F9 09 0D 01 B7 AD 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 18 5B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3E BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3E BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3E BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 01 00 00 F4 03 04 00 36 6C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B8 0F 01 00 35 04 06 00 00 2F 74 2F 2A 2F 0F DB 53 0D B9 5E 19 6D [20:46:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 30 7F 47 00 6B AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B8 0F 01 00 F4 03 04 00 DC 15 15 67 B6 04 01 00 00 C4 E0 F9 76 EE 26 F3 90 [20:46:47]CommunicateWithHost err = 0 [20:46:47]CheckOFDResponse [20:46:47]1017 (14) - 77093643461234 [20:46:47]1041 (16) - 0000000000963346 [20:46:47]1040 (4) - 69560 [20:46:47]1012 (4) - 20.10.2024 14:38 [20:46:47]1206 (1) - 0 [20:46:47]OFD Sender: Remove packet 69560 [20:46:47]ProducePacketName [20:46:47]name=ofd_packets/00069560 [20:46:47]NVStorageDeleteData [20:46:47]Write to MH i2c: 01 00 00 33 18 4B [20:46:47]Write i2c OK [20:46:47]MH_I2C_Read... [20:46:47]Read from MH i2c: 01 [20:46:47]MH_I2C_Read... [20:46:47]Read from MH i2c: 01 07 00 [20:46:47]MH_I2C_Read... [20:46:47]Read from MH i2c: 01 07 00 33 18 00 00 00 00 00 27 0D 86 [20:46:47]RasterBufferAndPrint [20:46:47]line [20:46:47]line [20:46:47]line [20:46:47]line [20:46:47]line [20:46:47]written 0, free lines is 3376 [20:46:47]MH_Cut [20:46:47]Write to MH i2c: D1 01 00 3A 18 01 24 [20:46:47]Write i2c OK [20:46:47]MH_I2C_Read... [20:46:47]Read from MH i2c: D1 [20:46:47]MH_I2C_Read... [20:46:47]Read from MH i2c: D1 01 00 [20:46:47]MH_I2C_Read... [20:46:47]Read from MH i2c: D1 01 00 3A 18 00 23 [20:46:47]Write to MH i2c: 01 00 00 3B 18 53 [20:46:47]Write i2c OK [20:46:47]MH_I2C_Read... [20:46:48]OFD Sender: No OFD packet to send [20:46:48]*** Cut start [20:46:48]*** Partial cut [20:46:48]*** CUTSNS_PIN = 1 [20:46:48]*** CUTSNS_PIN = 0 [20:46:48]*** Brake cut motor [20:46:48]Read from MH i2c: 01 [20:46:48]MH_I2C_Read... [20:46:48]*** Stop cut motor [20:46:48]*** Cut end [20:46:48]Read from MH i2c: 01 07 00 [20:46:48]MH_I2C_Read... [20:46:48]Read from MH i2c: 01 07 00 3B 18 00 00 00 00 00 FF 0F 68 [20:46:48]process_action close_receipt done [20:46:48]requested_data is exist [20:46:48]produce_requested_data [20:46:48]requested_item fm.sn is exist - process it [20:46:48]wFMCommunicate request_size=4 [20:46:48]MH_SAM_APDU [20:46:48]CAPDU: 80 11 00 00 [20:46:48]Write to MH i2c: E2 08 00 3C 18 80 11 00 00 00 00 00 00 CE [20:46:48]Write i2c OK [20:46:48]MH_I2C_Read... [20:46:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:49]Read from MH i2c: E2 [20:46:49]MH_I2C_Read... [20:46:49]Read from MH i2c: E2 17 00 [20:46:49]MH_I2C_Read... [20:46:49]Read from MH i2c: E2 17 00 3C 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 20 [20:46:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:46:49]wFMCommunicate OK [20:46:49]requested_item fd.num is exist - process it [20:46:49]SAM_PROTO_GetFieldsCounters [20:46:49]wFMCommunicate request_size=4 [20:46:49]MH_SAM_APDU [20:46:49]CAPDU: 80 13 00 00 [20:46:49]Write to MH i2c: E2 08 00 3D 18 80 13 00 00 00 00 00 00 D1 [20:46:49]Write i2c OK [20:46:49]MH_I2C_Read... [20:46:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:46:49]Read from MH i2c: E2 [20:46:49]MH_I2C_Read... [20:46:49]Read from MH i2c: E2 62 00 [20:46:49]MH_I2C_Read... [20:46:49]Read from MH i2c: E2 62 00 3D 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B8 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 95 01 00 00 5E 04 04 00 95 01 00 00 57 04 04 00 96 01 00 00 19 04 04 00 00 00 00 00 90 00 37 [20:46:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B8 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 95 01 00 00 5E 04 04 00 95 01 00 00 57 04 04 00 96 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:46:49]wFMCommunicate OK [20:46:49]SAM_PROTO_GetFieldsCounters done [20:46:49]requested_item shift.num is exist - process it [20:46:49]requested_item shift.opened is exist - process it [20:46:49]req_shift_opened [20:46:49]FM_GetShiftState [20:46:49]SAM_PROTO_GetShiftState [20:46:49]wFMCommunicate request_size=4 [20:46:49]MH_SAM_APDU [20:46:49]CAPDU: 80 13 01 00 [20:46:49]Write to MH i2c: E2 08 00 3E 18 80 13 01 00 00 00 00 00 D3 [20:46:49]Write i2c OK [20:46:49]MH_I2C_Read... [20:46:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:49]Read from MH i2c: E2 [20:46:49]MH_I2C_Read... [20:46:49]Read from MH i2c: E2 0E 00 [20:46:49]MH_I2C_Read... [20:46:49]Read from MH i2c: E2 0E 00 3E 18 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 D9 [20:46:49]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:46:49]wFMCommunicate OK [20:46:49]SAM_PROTO_GetShiftState done [20:46:49]FM_GetShiftState done [20:46:49]req_shift_opened done [20:46:49]requested_item shift.open_date is exist - process it [20:46:49]req_shift_open_date [20:46:49]req_shift_open_date done [20:46:49]produce_requested_data done [20:46:49]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69560,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [20:46:49]process_action_free close_receipt [20:46:49]json_value_free [20:46:49]json_value_free done [20:46:49]process_json_proto returns [20:46:49]Send response to host [20:46:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69560,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [20:46:49]free response buf [20:46:49]execute_script done [20:46:49]execute_script returns [20:46:49]free content buf [20:46:49]Sock 9.Close socket [20:46:49]Sock 9.Thread stoped [20:46:53]OFD Sender: No OFD packet to send [20:46:58]OFD Sender: No OFD packet to send [20:47:03]OFD Sender: No OFD packet to send [20:47:08]OFD Sender: No OFD packet to send [20:47:13]OFD Sender: No OFD packet to send [20:47:18]OFD Sender: No OFD packet to send [20:47:23]OFD Sender: No OFD packet to send [20:47:28]OFD Sender: No OFD packet to send [20:47:33]OFD Sender: No OFD packet to send [20:47:38]OFD Sender: No OFD packet to send [20:47:43]OFD Sender: No OFD packet to send [20:47:48]OFD Sender: No OFD packet to send [20:47:53]OFD Sender: No OFD packet to send [20:47:58]OFD Sender: No OFD packet to send [20:48:03]OFD Sender: No OFD packet to send [20:48:08]OFD Sender: No OFD packet to send [20:48:13]OFD Sender: No OFD packet to send [20:48:18]OFD Sender: No OFD packet to send [20:48:23]OFD Sender: No OFD packet to send [20:48:28]OFD Sender: No OFD packet to send [20:48:33]OFD Sender: No OFD packet to send [20:48:38]OFD Sender: No OFD packet to send [20:48:43]OFD Sender: No OFD packet to send [20:48:48]OFD Sender: No OFD packet to send [20:48:53]OFD Sender: No OFD packet to send [20:48:58]OFD Sender: No OFD packet to send [20:49:03]OFD Sender: No OFD packet to send [20:49:08]OFD Sender: No OFD packet to send [20:49:13]OFD Sender: No OFD packet to send [20:49:18]OFD Sender: No OFD packet to send [20:49:23]OFD Sender: No OFD packet to send [20:49:28]OFD Sender: No OFD packet to send [20:49:33]OFD Sender: No OFD packet to send [20:49:38]OFD Sender: No OFD packet to send [20:49:43]OFD Sender: No OFD packet to send [20:49:48]OFD Sender: No OFD packet to send [20:49:53]OFD Sender: No OFD packet to send [20:49:58]OFD Sender: No OFD packet to send [20:50:03]OFD Sender: No OFD packet to send [20:50:08]OFD Sender: No OFD packet to send [20:50:13]OFD Sender: No OFD packet to send [20:50:18]OFD Sender: No OFD packet to send [20:50:23]OFD Sender: No OFD packet to send [20:50:28]OFD Sender: No OFD packet to send [20:50:33]OFD Sender: No OFD packet to send [20:50:38]OFD Sender: No OFD packet to send [20:50:43]OFD Sender: No OFD packet to send [20:50:44]accept exits with 7 [20:50:44]New connection [20:50:44]New thread 3066797412 created [20:50:44]Thread 3066654052 joined [20:50:44]Waiting for new connection... [20:50:44] Sock 7.Parse request [20:50:44]Sock 7.Check first char [20:50:44]Sock 7.First char is OK [20:50:44]request: POST /json_proto HTTP/1.0 [20:50:44]Method: POST [20:50:44]URL: /json_proto [20:50:44]Method is POST - this is cgi request [20:50:44]url: /json_proto [20:50:44]query_string will be loaded in cgi processing [20:50:44]execute_cgi json_proto POST (null) [20:50:44]execute_cgi path=json_proto method=POST [20:50:44]POST find Content-Length [20:50:44]Host: 172.17.50.3:8080 [20:50:44]Content-Length: 681 [20:50:44]Content-Type: application/json [20:50:44] [20:50:44]POST finish read [20:50:44]Found Content-Length = 681 [20:50:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 6.170, "sum" : 240.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:50:44]execute_script... [20:50:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 6.170, "sum" : 240.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:50:44]POST & json_proto [20:50:44]process_json_proto [20:50:44]json parsed OK: [20:50:44]protocol is kg_v1.0 [20:50:44]action value=close_receipt [20:50:44]process_action close_receipt [20:50:44]cmd_close_receipt [20:50:44]MH_GetDate [20:50:44]Write to MH i2c: F0 00 00 3F 18 46 [20:50:44]Write i2c OK [20:50:44]MH_I2C_Read... [20:50:44]Read from MH i2c: F0 [20:50:44]MH_I2C_Read... [20:50:44]Read from MH i2c: F0 09 00 [20:50:44]MH_I2C_Read... [20:50:44]Read from MH i2c: F0 09 00 3F 18 00 25 6D 15 67 6B 98 1E 66 E4 [20:50:44]GetLastDocTimeStamp 1729457206 [20:50:44]current date 1729457445 [20:50:44]FM_GetShiftState [20:50:44]SAM_PROTO_GetShiftState [20:50:44]wFMCommunicate request_size=4 [20:50:44]MH_SAM_APDU [20:50:44]CAPDU: 80 13 01 00 [20:50:44]Write to MH i2c: E2 08 00 40 18 80 13 01 00 00 00 00 00 D5 [20:50:44]Write i2c OK [20:50:44]MH_I2C_Read... [20:50:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:45]Read from MH i2c: E2 [20:50:45]MH_I2C_Read... [20:50:45]Read from MH i2c: E2 0E 00 [20:50:45]MH_I2C_Read... [20:50:45]Read from MH i2c: E2 0E 00 40 18 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 DB [20:50:45]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:50:45]wFMCommunicate OK [20:50:45]SAM_PROTO_GetShiftState done [20:50:45]FM_GetShiftState done [20:50:45]opened in 1729383220 [20:50:45]opened+sec_in_day 1729469620 [20:50:45]quantity*price = 24001 [20:50:45]sum+1 = 24002 [20:50:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.12 НДС 12% : 25.49 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 406 20.10.2024 20:50 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69561 ФПД: 80769243171669 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T205045&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69561&fm=80769243171669&tin=02508201610067®Number=0000000000156251&sum=24000 [20:50:46]StoreToDocumentArchive [20:50:46]shift 193 fd 69561 [20:50:46]save to /storage/0193/doc_00069561 [20:50:46]save last doc name /storage/0193/doc_00069561 to /storage/kkm_last_doc_name [20:50:46]save OK [20:50:46]Clear old archive folders... [20:50:46]ProcessDocumentItem done err = 0, tmpTLVsize=250 [20:50:46]tlvbuf is B6E822B0 [20:50:46]SAM_PROTO_ClearQueue [20:50:46]wFMCommunicate request_size=4 [20:50:46]MH_SAM_APDU [20:50:46]CAPDU: 80 09 00 00 [20:50:46]Write to MH i2c: E2 08 00 4D 18 80 09 00 00 00 00 00 00 D7 [20:50:46]Write i2c OK [20:50:46]MH_I2C_Read... [20:50:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:50:46]Read from MH i2c: E2 [20:50:46]MH_I2C_Read... [20:50:46]Read from MH i2c: E2 03 00 [20:50:46]MH_I2C_Read... [20:50:46]Read from MH i2c: E2 03 00 4D 18 00 90 00 D9 [20:50:46]RAPDU: 90 00 [20:50:46]wFMCommunicate OK [20:50:46]SAM_PROTO_ClearQueue done [20:50:46]KKMCreateOFDPacket [20:50:46]OFDProtocolAddRootSTLVToBuf [20:50:46]FM_MakeSignedData [20:50:46]FM_MakeSignedData [20:50:46]SAM_PROTO_SignData [20:50:46]wFMCommunicate request_size=4 [20:50:46]MH_SAM_APDU [20:50:46]CAPDU: 80 0D 01 02 [20:50:46]Write to MH i2c: E2 08 00 4E 18 80 0D 01 02 00 00 00 00 DF [20:50:46]Write i2c OK [20:50:46]MH_I2C_Read... [20:50:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:50:46]Read from MH i2c: E2 [20:50:46]MH_I2C_Read... [20:50:46]Read from MH i2c: E2 03 00 [20:50:46]MH_I2C_Read... [20:50:46]Read from MH i2c: E2 03 00 4E 18 00 90 00 DA [20:50:46]RAPDU: 90 00 [20:50:46]wFMCommunicate OK [20:50:46]wFMCommunicate request_size=255 [20:50:46]MH_SAM_APDU [20:50:46]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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 1A 18 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 01 00 00 F4 03 04 00 25 6D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B9 0F 01 00 35 04 06 00 49 75 [20:50:46]Write to MH i2c: E2 02 01 4F 18 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 1A 18 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 01 00 00 F4 03 04 00 25 6D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B9 0F 01 00 35 04 06 00 49 75 00 00 1B [20:50:46]Write i2c OK [20:50:46]MH_I2C_Read... [20:50:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:46]Read from MH i2c: E2 [20:50:46]MH_I2C_Read... [20:50:46]Read from MH i2c: E2 03 00 [20:50:46]MH_I2C_Read... [20:50:46]Read from MH i2c: E2 03 00 4F 18 00 90 00 DB [20:50:46]RAPDU: 90 00 [20:50:46]wFMCommunicate OK [20:50:46]wFMCommunicate request_size=9 [20:50:46]MH_SAM_APDU [20:50:46]CAPDU: 80 0D 02 02 04 8E 0C 4B 55 [20:50:46]Write to MH i2c: E2 0C 00 50 18 80 0D 02 02 04 00 8E 0C 4B 55 00 00 24 [20:50:46]Write i2c OK [20:50:46]MH_I2C_Read... [20:50:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:46]Read from MH i2c: E2 [20:50:46]MH_I2C_Read... [20:50:46]Read from MH i2c: E2 03 00 [20:50:46]MH_I2C_Read... [20:50:46]Read from MH i2c: E2 03 00 50 18 00 90 00 DC [20:50:46]RAPDU: 90 00 [20:50:46]wFMCommunicate OK [20:50:46]wFMCommunicate request_size=4 [20:50:46]MH_SAM_APDU [20:50:46]CAPDU: 80 0D 03 02 [20:50:46]Write to MH i2c: E2 08 00 51 18 80 0D 03 02 00 00 00 00 E4 [20:50:46]Write i2c OK [20:50:46]MH_I2C_Read... [20:50:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:50:46]Read from MH i2c: E2 [20:50:46]MH_I2C_Read... [20:50:46]Read from MH i2c: E2 0B 00 [20:50:46]MH_I2C_Read... [20:50:46]Read from MH i2c: E2 0B 00 51 18 00 19 77 15 71 EF 08 78 A8 90 00 12 [20:50:46]RAPDU: 19 77 15 71 EF 08 78 A8 90 00 [20:50:46]wFMCommunicate OK [20:50:46]SAM_PROTO_SignData done [20:50:46]FM_MakeSignedData done [20:50:46]CreateOFDProtocolMessage [20:50:46]wFMCommunicate request_size=4 [20:50:46]MH_SAM_APDU [20:50:46]CAPDU: 80 11 00 00 [20:50:46]Write to MH i2c: E2 08 00 52 18 80 11 00 00 00 00 00 00 E4 [20:50:46]Write i2c OK [20:50:46]MH_I2C_Read... [20:50:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:50:46]Read from MH i2c: E2 [20:50:46]MH_I2C_Read... [20:50:46]Read from MH i2c: E2 17 00 [20:50:46]MH_I2C_Read... [20:50:46]Read from MH i2c: E2 17 00 52 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 36 [20:50:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:50:46]wFMCommunicate OK [20:50:46]CreateOFDProtocolMessage done [20:50:46]OFDSenderStorePacket 69561 [20:50:46]StoreOFDPacket docnum=69561 [20:50:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 E1 72 06 01 89 A8 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 1A 18 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 01 00 00 F4 03 04 00 25 6D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B9 0F 01 00 35 04 06 00 49 75 8E 0C 4B 55 19 77 15 71 EF 08 78 A8 [20:50:46]CheckFolder [20:50:46]dirname=/storage/ofd_packets [20:50:46]CheckFolder done [20:50:46]ProducePacketName [20:50:46]name=ofd_packets/00069561 [20:50:46]NVStorageSaveData ofd_packets/00069561 [20:50:46]File name is /storage/ofd_packets/00069561 [20:50:46]Write 300 bytes [20:50:46]NVStorageSaveData done [20:50:46]OFDSenderStorePacket done [20:50:46]KKMCreateOFDPacket done [20:50:46]NVStorageSaveData kkm_last_timestamp [20:50:46]File name is /storage/kkm_last_timestamp [20:50:46]Write 4 bytes [20:50:46]NVStorageSaveData done [20:50:46]ExternCall_PrintAddStr [20:50:46]wPrintStart [20:50:46]Write to MH i2c: 01 00 00 53 18 6B [20:50:46]Write i2c OK [20:50:46]MH_I2C_Read... [20:50:46]Read from MH i2c: 01 [20:50:46]MH_I2C_Read... [20:50:46]Read from MH i2c: 01 07 00 [20:50:46]MH_I2C_Read... [20:50:46]Read from MH i2c: 01 07 00 53 18 00 00 00 00 00 FF 0F 80 [20:50:46]RasterBufferAndPrint [20:50:46]line Счет N : (1)2885300 [20:50:46]line ИНН: 02508201610067 [20:50:46]line Контрольно-Кассовый Чек [20:50:46]line ПРОДАЖА [20:50:46]line ТРК (МРК, ГНК) : 71 [20:50:46]line Товар: 2711129700 [20:50:46]line ГАЗ-К-3 [20:50:46]line 6.170 * 38.90 [20:50:46]line = 240.01 [20:50:46]line НДС 12% НСП 1% [20:50:46]line > о реализуемом товаре [20:50:46]line ОКРУГЛЕНИЕ: -0.01 [20:50:46]line ИТОГО: 240.00 [20:50:46]line Внесено: 240.00 [20:50:46]line СДАЧА: 0.00 [20:50:46]line НСП 1% : 2.12 [20:50:46]line НДС 12% : 25.49 [20:50:46]line Наличными: 240.00 [20:50:46]line Безнал.: 0.00 [20:50:46]line Место: АЗС № 85 "Партнер Нефть" [20:50:46]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:50:46]line СНО: Общий режим [20:50:46]line Чек 406 20.10.2024 20:50 [20:50:46]line Смена: 193 ФФД: 1.0 [20:50:46]line ЗНМ: 0300000167 [20:50:46]line РНМ: 0000000000156251 [20:50:46]line Версия ККМ: v1.0 [20:50:46]line ФМ: 0000000000963346 [20:50:46]line ФД: 69561 [20:50:46]line ФПД: 80769243171669 [20:50:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T205045&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69561&fm=80769243171669&tin=02508201610067®Number=0000000000156251&sum=24000 [20:50:46]OFD Sender: Processing packet 69561 [packets to send 18, broken 17] [20:50:46]ProducePacketName [20:50:46]name=ofd_packets/00069561 [20:50:46]OFD Sender: To server: pG, [20:50:46]CommunicateWithHost lk.salyk.kg:30040 [20:50:46]ConnectInit lk.salyk.kg [20:50:47]written 0, free lines is 4095 [20:50:47]Connected sock=11 [20:50:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 E1 72 06 01 89 A8 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 1A 18 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 01 00 00 F4 03 04 00 25 6D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B9 0F 01 00 35 04 06 00 49 75 8E 0C 4B 55 19 77 15 71 EF 08 78 A8 [20:50:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 84 D9 47 00 76 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 B9 0F 01 00 F4 03 04 00 CB 16 15 67 B6 04 01 00 00 2E A9 CB 83 1F 0D ED E6 [20:50:47]CommunicateWithHost err = 0 [20:50:47]CheckOFDResponse [20:50:47]1017 (14) - 77093643461234 [20:50:47]1041 (16) - 0000000000963346 [20:50:47]1040 (4) - 69561 [20:50:47]1012 (4) - 20.10.2024 14:42 [20:50:47]1206 (1) - 0 [20:50:47]OFD Sender: Remove packet 69561 [20:50:47]ProducePacketName [20:50:47]name=ofd_packets/00069561 [20:50:47]NVStorageDeleteData [20:50:47]Write to MH i2c: 01 00 00 7E 18 96 [20:50:47]Write i2c OK [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: 01 [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: 01 07 00 [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: 01 07 00 7E 18 00 00 00 00 00 F1 0C 9A [20:50:47]RasterBufferAndPrint [20:50:47]line [20:50:47]line [20:50:47]line [20:50:47]line [20:50:47]line [20:50:47]written 0, free lines is 3320 [20:50:47]MH_Cut [20:50:47]Write to MH i2c: D1 01 00 85 18 01 6F [20:50:47]Write i2c OK [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: D1 [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: D1 01 00 [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: D1 01 00 85 18 00 6E [20:50:47]Write to MH i2c: 01 00 00 86 18 9E [20:50:47]Write i2c OK [20:50:47]MH_I2C_Read... [20:50:47]OFD Sender: No OFD packet to send [20:50:48]*** Cut start [20:50:48]*** Partial cut [20:50:48]*** CUTSNS_PIN = 1 [20:50:48]*** CUTSNS_PIN = 0 [20:50:48]*** Brake cut motor [20:50:48]Read from MH i2c: 01 [20:50:48]MH_I2C_Read... [20:50:48]*** Stop cut motor [20:50:48]*** Cut end [20:50:48]Read from MH i2c: 01 07 00 [20:50:48]MH_I2C_Read... [20:50:48]Read from MH i2c: 01 07 00 86 18 00 00 00 00 00 FF 0F B3 [20:50:48]process_action close_receipt done [20:50:48]requested_data is exist [20:50:48]produce_requested_data [20:50:48]requested_item fm.sn is exist - process it [20:50:48]wFMCommunicate request_size=4 [20:50:48]MH_SAM_APDU [20:50:48]CAPDU: 80 11 00 00 [20:50:48]Write to MH i2c: E2 08 00 87 18 80 11 00 00 00 00 00 00 19 [20:50:48]Write i2c OK [20:50:48]MH_I2C_Read... [20:50:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:50:48]Read from MH i2c: E2 [20:50:48]MH_I2C_Read... [20:50:48]Read from MH i2c: E2 17 00 [20:50:48]MH_I2C_Read... [20:50:48]Read from MH i2c: E2 17 00 87 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6B [20:50:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:50:48]wFMCommunicate OK [20:50:48]requested_item fd.num is exist - process it [20:50:48]SAM_PROTO_GetFieldsCounters [20:50:48]wFMCommunicate request_size=4 [20:50:48]MH_SAM_APDU [20:50:48]CAPDU: 80 13 00 00 [20:50:48]Write to MH i2c: E2 08 00 88 18 80 13 00 00 00 00 00 00 1C [20:50:48]Write i2c OK [20:50:48]MH_I2C_Read... [20:50:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:50:48]Read from MH i2c: E2 [20:50:48]MH_I2C_Read... [20:50:48]Read from MH i2c: E2 62 00 [20:50:48]MH_I2C_Read... [20:50:48]Read from MH i2c: E2 62 00 88 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B9 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 96 01 00 00 5E 04 04 00 96 01 00 00 57 04 04 00 97 01 00 00 19 04 04 00 00 00 00 00 90 00 86 [20:50:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 B9 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 96 01 00 00 5E 04 04 00 96 01 00 00 57 04 04 00 97 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:50:48]wFMCommunicate OK [20:50:48]SAM_PROTO_GetFieldsCounters done [20:50:48]requested_item shift.num is exist - process it [20:50:48]requested_item shift.opened is exist - process it [20:50:48]req_shift_opened [20:50:48]FM_GetShiftState [20:50:48]SAM_PROTO_GetShiftState [20:50:48]wFMCommunicate request_size=4 [20:50:48]MH_SAM_APDU [20:50:48]CAPDU: 80 13 01 00 [20:50:48]Write to MH i2c: E2 08 00 89 18 80 13 01 00 00 00 00 00 1E [20:50:48]Write i2c OK [20:50:48]MH_I2C_Read... [20:50:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:49]Read from MH i2c: E2 [20:50:49]MH_I2C_Read... [20:50:49]Read from MH i2c: E2 0E 00 [20:50:49]MH_I2C_Read... [20:50:49]Read from MH i2c: E2 0E 00 89 18 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 24 [20:50:49]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:50:49]wFMCommunicate OK [20:50:49]SAM_PROTO_GetShiftState done [20:50:49]FM_GetShiftState done [20:50:49]req_shift_opened done [20:50:49]requested_item shift.open_date is exist - process it [20:50:49]req_shift_open_date [20:50:49]req_shift_open_date done [20:50:49]produce_requested_data done [20:50:49]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69561,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [20:50:49]process_action_free close_receipt [20:50:49]json_value_free [20:50:49]json_value_free done [20:50:49]process_json_proto returns [20:50:49]Send response to host [20:50:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69561,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [20:50:49]free response buf [20:50:49]execute_script done [20:50:49]execute_script returns [20:50:49]free content buf [20:50:49]Sock 7.Close socket [20:50:49]Sock 7.Thread stoped [20:50:52]OFD Sender: No OFD packet to send [20:50:57]OFD Sender: No OFD packet to send [20:51:02]OFD Sender: No OFD packet to send [20:51:07]OFD Sender: No OFD packet to send [20:51:12]OFD Sender: No OFD packet to send [20:51:17]OFD Sender: No OFD packet to send [20:51:22]OFD Sender: No OFD packet to send [20:51:27]OFD Sender: No OFD packet to send [20:51:32]OFD Sender: No OFD packet to send [20:51:37]OFD Sender: No OFD packet to send [20:51:42]OFD Sender: No OFD packet to send [20:51:47]OFD Sender: No OFD packet to send [20:51:52]OFD Sender: No OFD packet to send [20:51:57]OFD Sender: No OFD packet to send [20:52:02]OFD Sender: No OFD packet to send [20:52:07]OFD Sender: No OFD packet to send [20:52:12]OFD Sender: No OFD packet to send [20:52:17]OFD Sender: No OFD packet to send [20:52:22]OFD Sender: No OFD packet to send [20:52:27]OFD Sender: No OFD packet to send [20:52:32]OFD Sender: No OFD packet to send [20:52:37]OFD Sender: No OFD packet to send [20:52:42]OFD Sender: No OFD packet to send [20:52:47]OFD Sender: No OFD packet to send [20:52:52]OFD Sender: No OFD packet to send [20:52:57]OFD Sender: No OFD packet to send [20:53:02]OFD Sender: No OFD packet to send [20:53:07]OFD Sender: No OFD packet to send [20:53:12]OFD Sender: No OFD packet to send [20:53:17]OFD Sender: No OFD packet to send [20:53:22]OFD Sender: No OFD packet to send [20:53:27]OFD Sender: No OFD packet to send [20:53:32]OFD Sender: No OFD packet to send [20:53:37]OFD Sender: No OFD packet to send [20:53:42]OFD Sender: No OFD packet to send [20:53:47]OFD Sender: No OFD packet to send [20:53:52]OFD Sender: No OFD packet to send [20:53:57]OFD Sender: No OFD packet to send [20:54:02]OFD Sender: No OFD packet to send [20:54:07]OFD Sender: No OFD packet to send [20:54:12]OFD Sender: No OFD packet to send [20:54:17]OFD Sender: No OFD packet to send [20:54:22]OFD Sender: No OFD packet to send [20:54:27]OFD Sender: No OFD packet to send [20:54:32]OFD Sender: No OFD packet to send [20:54:37]OFD Sender: No OFD packet to send [20:54:42]OFD Sender: No OFD packet to send [20:54:46]accept exits with 9 [20:54:46]New connection [20:54:46]New thread 3066654052 created [20:54:46]Thread 3066797412 joined [20:54:46]Waiting for new connection... [20:54:46] Sock 9.Parse request [20:54:46]Sock 9.Check first char [20:54:46]Sock 9.First char is OK [20:54:46]request: POST /json_proto HTTP/1.0 [20:54:46]Method: POST [20:54:46]URL: /json_proto [20:54:46]Method is POST - this is cgi request [20:54:46]url: /json_proto [20:54:46]query_string will be loaded in cgi processing [20:54:46]execute_cgi json_proto POST (null) [20:54:46]execute_cgi path=json_proto method=POST [20:54:46]POST find Content-Length [20:54:46]Host: 172.17.50.3:8080 [20:54:46]Content-Length: 686 [20:54:46]Content-Type: application/json [20:54:46] [20:54:46]POST finish read [20:54:46]Found Content-Length = 686 [20:54:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 33.730, "sum" : 1312.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1312.00, "payments": [ { "type": 0, "sum" : 1312.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:46]execute_script... [20:54: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)2885301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 33.730, "sum" : 1312.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1312.00, "payments": [ { "type": 0, "sum" : 1312.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:46]POST & json_proto [20:54:46]process_json_proto [20:54:46]json parsed OK: [20:54:46]protocol is kg_v1.0 [20:54:46]action value=close_receipt [20:54:46]process_action close_receipt [20:54:46]cmd_close_receipt [20:54:46]MH_GetDate [20:54:46]Write to MH i2c: F0 00 00 8A 18 91 [20:54:46]Write i2c OK [20:54:46]MH_I2C_Read... [20:54:46]Read from MH i2c: F0 [20:54:46]MH_I2C_Read... [20:54:46]Read from MH i2c: F0 09 00 [20:54:46]MH_I2C_Read... [20:54:46]Read from MH i2c: F0 09 00 8A 18 00 17 6E 15 67 6B 98 1E 66 22 [20:54:46]GetLastDocTimeStamp 1729457445 [20:54:46]current date 1729457687 [20:54:46]FM_GetShiftState [20:54:46]SAM_PROTO_GetShiftState [20:54:46]wFMCommunicate request_size=4 [20:54:46]MH_SAM_APDU [20:54:46]CAPDU: 80 13 01 00 [20:54:46]Write to MH i2c: E2 08 00 8B 18 80 13 01 00 00 00 00 00 20 [20:54:46]Write i2c OK [20:54:46]MH_I2C_Read... [20:54:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:46]Read from MH i2c: E2 [20:54:46]MH_I2C_Read... [20:54:46]Read from MH i2c: E2 0E 00 [20:54:46]MH_I2C_Read... [20:54:46]Read from MH i2c: E2 0E 00 8B 18 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 26 [20:54:46]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:54:46]wFMCommunicate OK [20:54:46]SAM_PROTO_GetShiftState done [20:54:46]FM_GetShiftState done [20:54:46]opened in 1729383220 [20:54:46]opened+sec_in_day 1729469620 [20:54:46]quantity*price = 131209 [20:54:46]sum+1 = 131211 [20:54:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 1312.00 Внесено: 3000.00 СДАЧА: 1688.00 НСП 1% : 11.61 НДС 12% : 139.34 Наличными: 1312.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 407 20.10.2024 20:54 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69562 ФПД: 186815390845542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T205447&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69562&fm=186815390845542&tin=02508201610067®Number=0000000000156251&sum=131200 [20:54:47]StoreToDocumentArchive [20:54:47]shift 193 fd 69562 [20:54:47]save to /storage/0193/doc_00069562 [20:54:47]save last doc name /storage/0193/doc_00069562 to /storage/kkm_last_doc_name [20:54:47]save OK [20:54:47]Clear old archive folders... [20:54:47]ProcessDocumentItem done err = 0, tmpTLVsize=250 [20:54:47]tlvbuf is 00F69140 [20:54:47]SAM_PROTO_ClearQueue [20:54:47]wFMCommunicate request_size=4 [20:54:47]MH_SAM_APDU [20:54:47]CAPDU: 80 09 00 00 [20:54:47]Write to MH i2c: E2 08 00 98 18 80 09 00 00 00 00 00 00 22 [20:54:47]Write i2c OK [20:54:47]MH_I2C_Read... [20:54:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:54:47]Read from MH i2c: E2 [20:54:47]MH_I2C_Read... [20:54:47]Read from MH i2c: E2 03 00 [20:54:47]MH_I2C_Read... [20:54:47]Read from MH i2c: E2 03 00 98 18 00 90 00 24 [20:54:47]RAPDU: 90 00 [20:54:47]wFMCommunicate OK [20:54:47]SAM_PROTO_ClearQueue done [20:54:47]KKMCreateOFDPacket [20:54:47]OFDProtocolAddRootSTLVToBuf [20:54:47]FM_MakeSignedData [20:54:47]FM_MakeSignedData [20:54:47]SAM_PROTO_SignData [20:54:47]wFMCommunicate request_size=4 [20:54:47]MH_SAM_APDU [20:54:47]CAPDU: 80 0D 01 02 [20:54:47]Write to MH i2c: E2 08 00 99 18 80 0D 01 02 00 00 00 00 2A [20:54:47]Write i2c OK [20:54:47]MH_I2C_Read... [20:54:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:54:47]Read from MH i2c: E2 [20:54:47]MH_I2C_Read... [20:54:47]Read from MH i2c: E2 03 00 [20:54:47]MH_I2C_Read... [20:54:47]Read from MH i2c: E2 03 00 99 18 00 90 00 25 [20:54:47]RAPDU: 90 00 [20:54:47]wFMCommunicate OK [20:54:47]wFMCommunicate request_size=255 [20:54:47]MH_SAM_APDU [20:54:47]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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 C2 83 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 8A 00 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 00 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 36 00 00 00 00 07 04 06 00 80 00 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 01 00 00 F4 03 04 00 17 6E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BA 0F 01 00 35 04 06 00 A9 E8 [20:54:47]Write to MH i2c: E2 02 01 9A 18 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 C2 83 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 8A 00 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 00 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 36 00 00 00 00 07 04 06 00 80 00 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 01 00 00 F4 03 04 00 17 6E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BA 0F 01 00 35 04 06 00 A9 E8 00 00 D8 [20:54:47]Write i2c OK [20:54:47]MH_I2C_Read... [20:54:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:47]Read from MH i2c: E2 [20:54:47]MH_I2C_Read... [20:54:47]Read from MH i2c: E2 03 00 [20:54:47]MH_I2C_Read... [20:54:47]Read from MH i2c: E2 03 00 9A 18 00 90 00 26 [20:54:47]RAPDU: 90 00 [20:54:47]wFMCommunicate OK [20:54:47]wFMCommunicate request_size=9 [20:54:47]MH_SAM_APDU [20:54:47]CAPDU: 80 0D 02 02 04 59 02 8A 66 [20:54:47]Write to MH i2c: E2 0C 00 9B 18 80 0D 02 02 04 00 59 02 8A 66 00 00 80 [20:54:47]Write i2c OK [20:54:47]MH_I2C_Read... [20:54:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:47]Read from MH i2c: E2 [20:54:47]MH_I2C_Read... [20:54:47]Read from MH i2c: E2 03 00 [20:54:47]MH_I2C_Read... [20:54:47]Read from MH i2c: E2 03 00 9B 18 00 90 00 27 [20:54:47]RAPDU: 90 00 [20:54:47]wFMCommunicate OK [20:54:47]wFMCommunicate request_size=4 [20:54:47]MH_SAM_APDU [20:54:47]CAPDU: 80 0D 03 02 [20:54:47]Write to MH i2c: E2 08 00 9C 18 80 0D 03 02 00 00 00 00 2F [20:54:47]Write i2c OK [20:54:47]MH_I2C_Read... [20:54:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:54:47]OFD Sender: No OFD packet to send [20:54:47]Read from MH i2c: E2 [20:54:47]MH_I2C_Read... [20:54:47]Read from MH i2c: E2 0B 00 [20:54:47]MH_I2C_Read... [20:54:47]Read from MH i2c: E2 0B 00 9C 18 00 5A DE 74 4D 68 DD 3F 41 90 00 EE [20:54:47]RAPDU: 5A DE 74 4D 68 DD 3F 41 90 00 [20:54:47]wFMCommunicate OK [20:54:47]SAM_PROTO_SignData done [20:54:47]FM_MakeSignedData done [20:54:47]CreateOFDProtocolMessage [20:54:47]wFMCommunicate request_size=4 [20:54:47]MH_SAM_APDU [20:54:47]CAPDU: 80 11 00 00 [20:54:47]Write to MH i2c: E2 08 00 9D 18 80 11 00 00 00 00 00 00 2F [20:54:47]Write i2c OK [20:54:47]MH_I2C_Read... [20:54:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:47]Read from MH i2c: E2 [20:54:47]MH_I2C_Read... [20:54:47]Read from MH i2c: E2 17 00 [20:54:47]MH_I2C_Read... [20:54:47]Read from MH i2c: E2 17 00 9D 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 81 [20:54:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:54:48]wFMCommunicate OK [20:54:48]CreateOFDProtocolMessage done [20:54:48]OFDSenderStorePacket 69562 [20:54:48]StoreOFDPacket docnum=69562 [20:54:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 4F 92 06 01 68 D6 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 C2 83 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 8A 00 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 00 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 36 00 00 00 00 07 04 06 00 80 00 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 01 00 00 F4 03 04 00 17 6E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BA 0F 01 00 35 04 06 00 A9 E8 59 02 8A 66 5A DE 74 4D 68 DD 3F 41 [20:54:48]CheckFolder [20:54:48]dirname=/storage/ofd_packets [20:54:48]CheckFolder done [20:54:48]ProducePacketName [20:54:48]name=ofd_packets/00069562 [20:54:48]NVStorageSaveData ofd_packets/00069562 [20:54:48]File name is /storage/ofd_packets/00069562 [20:54:48]Write 300 bytes [20:54:48]NVStorageSaveData done [20:54:48]OFDSenderStorePacket done [20:54:48]KKMCreateOFDPacket done [20:54:48]NVStorageSaveData kkm_last_timestamp [20:54:48]File name is /storage/kkm_last_timestamp [20:54:48]Write 4 bytes [20:54:48]NVStorageSaveData done [20:54:48]ExternCall_PrintAddStr [20:54:48]wPrintStart [20:54:48]Write to MH i2c: 01 00 00 9E 18 B6 [20:54:48]Write i2c OK [20:54:48]MH_I2C_Read... [20:54:48]Read from MH i2c: 01 [20:54:48]MH_I2C_Read... [20:54:48]Read from MH i2c: 01 07 00 [20:54:48]MH_I2C_Read... [20:54:48]Read from MH i2c: 01 07 00 9E 18 00 00 00 00 00 FF 0F CB [20:54:48]RasterBufferAndPrint [20:54:48]line Счет N : (1)2885301 [20:54:48]line ИНН: 02508201610067 [20:54:48]line Контрольно-Кассовый Чек [20:54:48]line ПРОДАЖА [20:54:48]line ТРК (МРК, ГНК) : 71 [20:54:48]line Товар: 2711129700 [20:54:48]line ГАЗ-К-3 [20:54:48]line 33.730 * 38.90 [20:54:48]line = 1312.10 [20:54:48]line НДС 12% НСП 1% [20:54:48]line > о реализуемом товаре [20:54:48]line ОКРУГЛЕНИЕ: -0.10 [20:54:48]line ИТОГО: 1312.00 [20:54:48]line Внесено: 3000.00 [20:54:48]line СДАЧА: 1688.00 [20:54:48]line НСП 1% : 11.61 [20:54:48]line НДС 12% : 139.34 [20:54:48]line Наличными: 1312.00 [20:54:48]line Безнал.: 0.00 [20:54:48]line Место: АЗС № 85 "Партнер Нефть" [20:54:48]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:54:48]line СНО: Общий режим [20:54:48]line Чек 407 20.10.2024 20:54 [20:54:48]line Смена: 193 ФФД: 1.0 [20:54:48]line ЗНМ: 0300000167 [20:54:48]line РНМ: 0000000000156251 [20:54:48]line Версия ККМ: v1.0 [20:54:48]line ФМ: 0000000000963346 [20:54:48]line ФД: 69562 [20:54:48]line ФПД: 186815390845542 [20:54:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T205447&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69562&fm=186815390845542&tin=02508201610067®Number=0000000000156251&sum=131200 [20:54:48]OFD Sender: Processing packet 69562 [packets to send 18, broken 17] [20:54:48]ProducePacketName [20:54:48]name=ofd_packets/00069562 [20:54:48]OFD Sender: To server: pG, [20:54:48]CommunicateWithHost lk.salyk.kg:30040 [20:54:48]ConnectInit lk.salyk.kg [20:54:48]written 0, free lines is 4095 [20:54:48]Connected sock=10 [20:54:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 4F 92 06 01 68 D6 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 C2 83 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 8A 00 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 00 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 36 00 00 00 00 07 04 06 00 80 00 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 01 00 00 F4 03 04 00 17 6E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BA 0F 01 00 35 04 06 00 A9 E8 59 02 8A 66 5A DE 74 4D 68 DD 3F 41 [20:54:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 A9 1F 47 00 56 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BA 0F 01 00 F4 03 04 00 BD 17 15 67 B6 04 01 00 00 97 F3 74 8A FD 56 CD B5 [20:54:48]CommunicateWithHost err = 0 [20:54:48]CheckOFDResponse [20:54:48]1017 (14) - 77093643461234 [20:54:48]1041 (16) - 0000000000963346 [20:54:48]1040 (4) - 69562 [20:54:48]1012 (4) - 20.10.2024 14:46 [20:54:48]1206 (1) - 0 [20:54:48]OFD Sender: Remove packet 69562 [20:54:48]ProducePacketName [20:54:48]name=ofd_packets/00069562 [20:54:48]NVStorageDeleteData [20:54:48]Write to MH i2c: 01 00 00 C9 18 E1 [20:54:48]Write i2c OK [20:54:48]MH_I2C_Read... [20:54:48]Read from MH i2c: 01 [20:54:48]MH_I2C_Read... [20:54:48]Read from MH i2c: 01 07 00 [20:54:48]MH_I2C_Read... [20:54:48]Read from MH i2c: 01 07 00 C9 18 00 00 00 00 00 F5 0C E9 [20:54:48]RasterBufferAndPrint [20:54:48]line [20:54:48]line [20:54:48]line [20:54:48]line [20:54:48]line [20:54:48]written 0, free lines is 3323 [20:54:48]MH_Cut [20:54:48]Write to MH i2c: D1 01 00 D0 18 01 BA [20:54:48]Write i2c OK [20:54:48]MH_I2C_Read... [20:54:48]Read from MH i2c: D1 [20:54:48]MH_I2C_Read... [20:54:48]Read from MH i2c: D1 01 00 [20:54:48]MH_I2C_Read... [20:54:48]Read from MH i2c: D1 01 00 D0 18 00 B9 [20:54:48]Write to MH i2c: 01 00 00 D1 18 E9 [20:54:48]Write i2c OK [20:54:48]MH_I2C_Read... [20:54:49]OFD Sender: No OFD packet to send [20:54:49]*** Cut start [20:54:49]*** Partial cut [20:54:49]*** CUTSNS_PIN = 1 [20:54:49]*** CUTSNS_PIN = 0 [20:54:49]*** Brake cut motor [20:54:50]Read from MH i2c: 01 [20:54:50]MH_I2C_Read... [20:54:50]*** Stop cut motor [20:54:50]*** Cut end [20:54:50]Read from MH i2c: 01 07 00 [20:54:50]MH_I2C_Read... [20:54:50]Read from MH i2c: 01 07 00 D1 18 00 00 00 00 00 FF 0F FE [20:54:50]process_action close_receipt done [20:54:50]requested_data is exist [20:54:50]produce_requested_data [20:54:50]requested_item fm.sn is exist - process it [20:54:50]wFMCommunicate request_size=4 [20:54:50]MH_SAM_APDU [20:54:50]CAPDU: 80 11 00 00 [20:54:50]Write to MH i2c: E2 08 00 D2 18 80 11 00 00 00 00 00 00 64 [20:54:50]Write i2c OK [20:54:50]MH_I2C_Read... [20:54:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:50]Read from MH i2c: E2 [20:54:50]MH_I2C_Read... [20:54:50]Read from MH i2c: E2 17 00 [20:54:50]MH_I2C_Read... [20:54:50]Read from MH i2c: E2 17 00 D2 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B6 [20:54:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:54:50]wFMCommunicate OK [20:54:50]requested_item fd.num is exist - process it [20:54:50]SAM_PROTO_GetFieldsCounters [20:54:50]wFMCommunicate request_size=4 [20:54:50]MH_SAM_APDU [20:54:50]CAPDU: 80 13 00 00 [20:54:50]Write to MH i2c: E2 08 00 D3 18 80 13 00 00 00 00 00 00 67 [20:54:50]Write i2c OK [20:54:50]MH_I2C_Read... [20:54:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:54:50]Read from MH i2c: E2 [20:54:50]MH_I2C_Read... [20:54:50]Read from MH i2c: E2 62 00 [20:54:50]MH_I2C_Read... [20:54:50]Read from MH i2c: E2 62 00 D3 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BA 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 97 01 00 00 5E 04 04 00 97 01 00 00 57 04 04 00 98 01 00 00 19 04 04 00 00 00 00 00 90 00 D5 [20:54:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BA 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 97 01 00 00 5E 04 04 00 97 01 00 00 57 04 04 00 98 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:54:50]wFMCommunicate OK [20:54:50]SAM_PROTO_GetFieldsCounters done [20:54:50]requested_item shift.num is exist - process it [20:54:50]requested_item shift.opened is exist - process it [20:54:50]req_shift_opened [20:54:50]FM_GetShiftState [20:54:50]SAM_PROTO_GetShiftState [20:54:50]wFMCommunicate request_size=4 [20:54:50]MH_SAM_APDU [20:54:50]CAPDU: 80 13 01 00 [20:54:50]Write to MH i2c: E2 08 00 D4 18 80 13 01 00 00 00 00 00 69 [20:54:50]Write i2c OK [20:54:50]MH_I2C_Read... [20:54:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:50]Read from MH i2c: E2 [20:54:50]MH_I2C_Read... [20:54:50]Read from MH i2c: E2 0E 00 [20:54:50]MH_I2C_Read... [20:54:50]Read from MH i2c: E2 0E 00 D4 18 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 6F [20:54:50]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:54:50]wFMCommunicate OK [20:54:50]SAM_PROTO_GetShiftState done [20:54:50]FM_GetShiftState done [20:54:50]req_shift_opened done [20:54:50]requested_item shift.open_date is exist - process it [20:54:50]req_shift_open_date [20:54:50]req_shift_open_date done [20:54:50]produce_requested_data done [20:54:50]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69562,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [20:54:50]process_action_free close_receipt [20:54:50]json_value_free [20:54:50]json_value_free done [20:54:50]process_json_proto returns [20:54:50]Send response to host [20:54:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69562,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [20:54:50]free response buf [20:54:50]execute_script done [20:54:50]execute_script returns [20:54:50]free content buf [20:54:50]Sock 9.Close socket [20:54:50]Sock 9.Thread stoped [20:54:54]OFD Sender: No OFD packet to send [20:54:59]OFD Sender: No OFD packet to send [20:55:04]OFD Sender: No OFD packet to send [20:55:09]OFD Sender: No OFD packet to send [20:55:14]OFD Sender: No OFD packet to send [20:55:19]OFD Sender: No OFD packet to send [20:55:24]OFD Sender: No OFD packet to send [20:55:29]OFD Sender: No OFD packet to send [20:55:34]OFD Sender: No OFD packet to send [20:55:39]OFD Sender: No OFD packet to send [20:55:44]OFD Sender: No OFD packet to send [20:55:49]OFD Sender: No OFD packet to send [20:55:54]OFD Sender: No OFD packet to send [20:55:59]OFD Sender: No OFD packet to send [20:56:04]OFD Sender: No OFD packet to send [20:56:09]OFD Sender: No OFD packet to send [20:56:14]OFD Sender: No OFD packet to send [20:56:19]OFD Sender: No OFD packet to send [20:56:24]OFD Sender: No OFD packet to send [20:56:29]OFD Sender: No OFD packet to send [20:56:34]OFD Sender: No OFD packet to send [20:56:39]OFD Sender: No OFD packet to send [20:56:44]OFD Sender: No OFD packet to send [20:56:49]OFD Sender: No OFD packet to send [20:56:54]OFD Sender: No OFD packet to send [20:56:59]OFD Sender: No OFD packet to send [20:57:04]OFD Sender: No OFD packet to send [20:57:09]OFD Sender: No OFD packet to send [20:57:14]OFD Sender: No OFD packet to send [20:57:19]OFD Sender: No OFD packet to send [20:57:22]accept exits with 7 [20:57:22]New connection [20:57:22]New thread 3066797412 created [20:57:22]Thread 3066654052 joined [20:57:22]Waiting for new connection... [20:57:22] Sock 7.Parse request [20:57:22]Sock 7.Check first char [20:57:22]Sock 7.First char is OK [20:57:22]request: POST /json_proto HTTP/1.0 [20:57:22]Method: POST [20:57:22]URL: /json_proto [20:57:22]Method is POST - this is cgi request [20:57:22]url: /json_proto [20:57:22]query_string will be loaded in cgi processing [20:57:22]execute_cgi json_proto POST (null) [20:57:22]execute_cgi path=json_proto method=POST [20:57:22]POST find Content-Length [20:57:22]Host: 172.17.50.3:8080 [20:57:22]Content-Length: 689 [20:57:22]Content-Type: application/json [20:57:22] [20:57:22]POST finish read [20:57:22]Found Content-Length = 689 [20:57:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:57:22]execute_script... [20:57: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)2885303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:57:22]POST & json_proto [20:57:22]process_json_proto [20:57:22]json parsed OK: [20:57:22]protocol is kg_v1.0 [20:57:22]action value=close_receipt [20:57:22]process_action close_receipt [20:57:22]cmd_close_receipt [20:57:22]MH_GetDate [20:57:22]Write to MH i2c: F0 00 00 D5 18 DC [20:57:22]Write i2c OK [20:57:22]MH_I2C_Read... [20:57:22]Read from MH i2c: F0 [20:57:22]MH_I2C_Read... [20:57:22]Read from MH i2c: F0 09 00 [20:57:22]MH_I2C_Read... [20:57:22]Read from MH i2c: F0 09 00 D5 18 00 B3 6E 15 67 6B 98 1E 66 09 [20:57:22]GetLastDocTimeStamp 1729457687 [20:57:22]current date 1729457843 [20:57:22]FM_GetShiftState [20:57:22]SAM_PROTO_GetShiftState [20:57:22]wFMCommunicate request_size=4 [20:57:22]MH_SAM_APDU [20:57:22]CAPDU: 80 13 01 00 [20:57:22]Write to MH i2c: E2 08 00 D6 18 80 13 01 00 00 00 00 00 6B [20:57:22]Write i2c OK [20:57:22]MH_I2C_Read... [20:57:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:22]Read from MH i2c: E2 [20:57:22]MH_I2C_Read... [20:57:22]Read from MH i2c: E2 0E 00 [20:57:22]MH_I2C_Read... [20:57:22]Read from MH i2c: E2 0E 00 D6 18 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 71 [20:57:22]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:57:22]wFMCommunicate OK [20:57:22]SAM_PROTO_GetShiftState done [20:57:22]FM_GetShiftState done [20:57:22]opened in 1729383220 [20:57:22]opened+sec_in_day 1729469620 [20:57:22]quantity*price = 150076 [20:57:22]sum+1 = 150078 [20:57:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 408 20.10.2024 20:57 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69563 ФПД: 185276544287911 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T205723&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69563&fm=185276544287911&tin=02508201610067®Number=0000000000156251&sum=150000 [20:57:24]StoreToDocumentArchive [20:57:24]shift 193 fd 69563 [20:57:24]save to /storage/0193/doc_00069563 [20:57:24]save last doc name /storage/0193/doc_00069563 to /storage/kkm_last_doc_name [20:57:24]save OK [20:57:24]Clear old archive folders... [20:57:24]ProcessDocumentItem done err = 0, tmpTLVsize=257 [20:57:24]tlvbuf is 00FAB160 [20:57:24]SAM_PROTO_ClearQueue [20:57:24]wFMCommunicate request_size=4 [20:57:24]MH_SAM_APDU [20:57:24]CAPDU: 80 09 00 00 [20:57:24]Write to MH i2c: E2 08 00 E3 18 80 09 00 00 00 00 00 00 6D [20:57:24]Write i2c OK [20:57:24]MH_I2C_Read... [20:57:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:57:24]Read from MH i2c: E2 [20:57:24]MH_I2C_Read... [20:57:24]Read from MH i2c: E2 03 00 [20:57:24]MH_I2C_Read... [20:57:24]Read from MH i2c: E2 03 00 E3 18 00 90 00 6F [20:57:24]RAPDU: 90 00 [20:57:24]wFMCommunicate OK [20:57:24]SAM_PROTO_ClearQueue done [20:57:24]KKMCreateOFDPacket [20:57:24]OFDProtocolAddRootSTLVToBuf [20:57:24]FM_MakeSignedData [20:57:24]FM_MakeSignedData [20:57:24]SAM_PROTO_SignData [20:57:24]wFMCommunicate request_size=4 [20:57:24]MH_SAM_APDU [20:57:24]CAPDU: 80 0D 01 02 [20:57:24]Write to MH i2c: E2 08 00 E4 18 80 0D 01 02 00 00 00 00 75 [20:57:24]Write i2c OK [20:57:24]MH_I2C_Read... [20:57:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:57:24]Read from MH i2c: E2 [20:57:24]MH_I2C_Read... [20:57:24]Read from MH i2c: E2 03 00 [20:57:24]MH_I2C_Read... [20:57:24]Read from MH i2c: E2 03 00 E4 18 00 90 00 70 [20:57:24]RAPDU: 90 00 [20:57:24]wFMCommunicate OK [20:57:24]wFMCommunicate request_size=255 [20:57:24]MH_SAM_APDU [20:57:24]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 01 00 00 F4 03 04 00 B3 6E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BB 0F 01 [20:57:24]Write to MH i2c: E2 02 01 E5 18 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 01 00 00 F4 03 04 00 B3 6E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BB 0F 01 00 00 DB [20:57:24]Write i2c OK [20:57:24]MH_I2C_Read... [20:57:24]OFD Sender: No OFD packet to send [20:57:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:57:24]Read from MH i2c: E2 [20:57:24]MH_I2C_Read... [20:57:24]Read from MH i2c: E2 03 00 [20:57:24]MH_I2C_Read... [20:57:24]Read from MH i2c: E2 03 00 E5 18 00 90 00 71 [20:57:24]RAPDU: 90 00 [20:57:24]wFMCommunicate OK [20:57:24]wFMCommunicate request_size=16 [20:57:24]MH_SAM_APDU [20:57:24]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 A8 82 0E 9B 84 A7 [20:57:24]Write to MH i2c: E2 13 00 E6 18 80 0D 02 02 0B 00 00 35 04 06 00 A8 82 0E 9B 84 A7 00 00 CB [20:57:24]Write i2c OK [20:57:24]MH_I2C_Read... [20:57:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:57:24]Read from MH i2c: E2 [20:57:24]MH_I2C_Read... [20:57:24]Read from MH i2c: E2 03 00 [20:57:24]MH_I2C_Read... [20:57:24]Read from MH i2c: E2 03 00 E6 18 00 90 00 72 [20:57:24]RAPDU: 90 00 [20:57:24]wFMCommunicate OK [20:57:24]wFMCommunicate request_size=4 [20:57:24]MH_SAM_APDU [20:57:24]CAPDU: 80 0D 03 02 [20:57:24]Write to MH i2c: E2 08 00 E7 18 80 0D 03 02 00 00 00 00 7A [20:57:24]Write i2c OK [20:57:24]MH_I2C_Read... [20:57:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:57:24]Read from MH i2c: E2 [20:57:24]MH_I2C_Read... [20:57:24]Read from MH i2c: E2 0B 00 [20:57:24]MH_I2C_Read... [20:57:24]Read from MH i2c: E2 0B 00 E7 18 00 9E DF 7A 15 97 5E 4D DE 90 00 A7 [20:57:24]RAPDU: 9E DF 7A 15 97 5E 4D DE 90 00 [20:57:24]wFMCommunicate OK [20:57:24]SAM_PROTO_SignData done [20:57:24]FM_MakeSignedData done [20:57:24]CreateOFDProtocolMessage [20:57:24]wFMCommunicate request_size=4 [20:57:24]MH_SAM_APDU [20:57:24]CAPDU: 80 11 00 00 [20:57:24]Write to MH i2c: E2 08 00 E8 18 80 11 00 00 00 00 00 00 7A [20:57:24]Write i2c OK [20:57:24]MH_I2C_Read... [20:57:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:24]Read from MH i2c: E2 [20:57:24]MH_I2C_Read... [20:57:24]Read from MH i2c: E2 17 00 [20:57:24]MH_I2C_Read... [20:57:24]Read from MH i2c: E2 17 00 E8 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CC [20:57:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:57:24]wFMCommunicate OK [20:57:24]CreateOFDProtocolMessage done [20:57:24]OFDSenderStorePacket 69563 [20:57:24]StoreOFDPacket docnum=69563 [20:57:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 70 C4 0D 01 39 FE 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 01 00 00 F4 03 04 00 B3 6E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BB 0F 01 00 35 04 06 00 A8 82 0E 9B 84 A7 9E DF 7A 15 97 5E 4D DE [20:57:24]CheckFolder [20:57:24]dirname=/storage/ofd_packets [20:57:24]CheckFolder done [20:57:24]ProducePacketName [20:57:24]name=ofd_packets/00069563 [20:57:24]NVStorageSaveData ofd_packets/00069563 [20:57:24]File name is /storage/ofd_packets/00069563 [20:57:24]Write 307 bytes [20:57:24]NVStorageSaveData done [20:57:24]OFDSenderStorePacket done [20:57:24]KKMCreateOFDPacket done [20:57:24]NVStorageSaveData kkm_last_timestamp [20:57:24]File name is /storage/kkm_last_timestamp [20:57:24]Write 4 bytes [20:57:24]NVStorageSaveData done [20:57:24]ExternCall_PrintAddStr [20:57:24]wPrintStart [20:57:24]Write to MH i2c: 01 00 00 E9 18 01 [20:57:24]Write i2c OK [20:57:24]MH_I2C_Read... [20:57:24]Read from MH i2c: 01 [20:57:24]MH_I2C_Read... [20:57:24]Read from MH i2c: 01 07 00 [20:57:24]MH_I2C_Read... [20:57:24]Read from MH i2c: 01 07 00 E9 18 00 00 00 00 00 FF 0F 16 [20:57:24]RasterBufferAndPrint [20:57:24]line Счет N : (1)2885303 [20:57:24]line ИНН: 02508201610067 [20:57:24]line Контрольно-Кассовый Чек [20:57:24]line ПРОДАЖА [20:57:24]line ТРК (МРК, ГНК) : 11 [20:57:24]line Товар: 2710194240 [20:57:24]line D-ENERGY Дт-К-2 [20:57:24]line 19.440 * 77.20 [20:57:24]line = 1500.77 [20:57:24]line НДС 12% НСП 1% [20:57:24]line > о реализуемом товаре [20:57:24]line ОКРУГЛЕНИЕ: -0.77 [20:57:24]line ИТОГО: 1500.00 [20:57:24]line Внесено: 1500.00 [20:57:24]line СДАЧА: 0.00 [20:57:24]line НСП 1% : 13.28 [20:57:24]line НДС 12% : 159.37 [20:57:24]line Наличными: 1500.00 [20:57:24]line Безнал.: 0.00 [20:57:24]line Место: АЗС № 85 "Партнер Нефть" [20:57:24]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:57:24]line СНО: Общий режим [20:57:24]line Чек 408 20.10.2024 20:57 [20:57:24]line Смена: 193 ФФД: 1.0 [20:57:24]line ЗНМ: 0300000167 [20:57:24]line РНМ: 0000000000156251 [20:57:24]line Версия ККМ: v1.0 [20:57:24]line ФМ: 0000000000963346 [20:57:24]line ФД: 69563 [20:57:24]line ФПД: 185276544287911 [20:57:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T205723&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69563&fm=185276544287911&tin=02508201610067®Number=0000000000156251&sum=150000 [20:57:24]OFD Sender: Processing packet 69563 [packets to send 18, broken 17] [20:57:24]ProducePacketName [20:57:24]name=ofd_packets/00069563 [20:57:24]OFD Sender: To server: pG, [20:57:24]CommunicateWithHost lk.salyk.kg:30040 [20:57:24]ConnectInit lk.salyk.kg [20:57:24]written 0, free lines is 4095 [20:57:24]Connected sock=9 [20:57:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 70 C4 0D 01 39 FE 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 01 00 00 F4 03 04 00 B3 6E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BB 0F 01 00 35 04 06 00 A8 82 0E 9B 84 A7 9E DF 7A 15 97 5E 4D DE [20:57:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 B2 DA 47 00 94 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BB 0F 01 00 F4 03 04 00 59 18 15 67 B6 04 01 00 00 79 F1 F7 DD FE 03 E6 61 [20:57:25]CommunicateWithHost err = 0 [20:57:25]CheckOFDResponse [20:57:25]1017 (14) - 77093643461234 [20:57:25]1041 (16) - 0000000000963346 [20:57:25]1040 (4) - 69563 [20:57:25]1012 (4) - 20.10.2024 14:48 [20:57:25]1206 (1) - 0 [20:57:25]OFD Sender: Remove packet 69563 [20:57:25]ProducePacketName [20:57:25]name=ofd_packets/00069563 [20:57:25]NVStorageDeleteData [20:57:25]Write to MH i2c: 01 00 00 14 19 2D [20:57:25]Write i2c OK [20:57:25]MH_I2C_Read... [20:57:25]Read from MH i2c: 01 [20:57:25]MH_I2C_Read... [20:57:25]Read from MH i2c: 01 07 00 [20:57:25]MH_I2C_Read... [20:57:25]Read from MH i2c: 01 07 00 14 19 00 00 00 00 00 F3 0C 33 [20:57:25]RasterBufferAndPrint [20:57:25]line [20:57:25]line [20:57:25]line [20:57:25]line [20:57:25]line [20:57:25]written 0, free lines is 3324 [20:57:25]MH_Cut [20:57:25]Write to MH i2c: D1 01 00 1B 19 01 06 [20:57:25]Write i2c OK [20:57:25]MH_I2C_Read... [20:57:25]Read from MH i2c: D1 [20:57:25]MH_I2C_Read... [20:57:25]Read from MH i2c: D1 01 00 [20:57:25]MH_I2C_Read... [20:57:25]Read from MH i2c: D1 01 00 1B 19 00 05 [20:57:25]Write to MH i2c: 01 00 00 1C 19 35 [20:57:25]Write i2c OK [20:57:25]MH_I2C_Read... [20:57:25]OFD Sender: No OFD packet to send [20:57:26]*** Cut start [20:57:26]*** Partial cut [20:57:26]*** CUTSNS_PIN = 1 [20:57:26]*** CUTSNS_PIN = 0 [20:57:26]*** Brake cut motor [20:57:26]Read from MH i2c: 01 [20:57:26]MH_I2C_Read... [20:57:26]*** Stop cut motor [20:57:26]*** Cut end [20:57:26]Read from MH i2c: 01 07 00 [20:57:26]MH_I2C_Read... [20:57:26]Read from MH i2c: 01 07 00 1C 19 00 00 00 00 00 FF 0F 4A [20:57:26]process_action close_receipt done [20:57:26]requested_data is exist [20:57:26]produce_requested_data [20:57:26]requested_item fm.sn is exist - process it [20:57:26]wFMCommunicate request_size=4 [20:57:26]MH_SAM_APDU [20:57:26]CAPDU: 80 11 00 00 [20:57:26]Write to MH i2c: E2 08 00 1D 19 80 11 00 00 00 00 00 00 B0 [20:57:26]Write i2c OK [20:57:26]MH_I2C_Read... [20:57:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:26]Read from MH i2c: E2 [20:57:26]MH_I2C_Read... [20:57:26]Read from MH i2c: E2 17 00 [20:57:26]MH_I2C_Read... [20:57:26]Read from MH i2c: E2 17 00 1D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 02 [20:57:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:57:26]wFMCommunicate OK [20:57:26]requested_item fd.num is exist - process it [20:57:26]SAM_PROTO_GetFieldsCounters [20:57:26]wFMCommunicate request_size=4 [20:57:26]MH_SAM_APDU [20:57:26]CAPDU: 80 13 00 00 [20:57:26]Write to MH i2c: E2 08 00 1E 19 80 13 00 00 00 00 00 00 B3 [20:57:26]Write i2c OK [20:57:26]MH_I2C_Read... [20:57:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:57:26]Read from MH i2c: E2 [20:57:26]MH_I2C_Read... [20:57:26]Read from MH i2c: E2 62 00 [20:57:26]MH_I2C_Read... [20:57:26]Read from MH i2c: E2 62 00 1E 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BB 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 98 01 00 00 5E 04 04 00 98 01 00 00 57 04 04 00 99 01 00 00 19 04 04 00 00 00 00 00 90 00 25 [20:57:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BB 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 98 01 00 00 5E 04 04 00 98 01 00 00 57 04 04 00 99 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:57:26]wFMCommunicate OK [20:57:26]SAM_PROTO_GetFieldsCounters done [20:57:26]requested_item shift.num is exist - process it [20:57:26]requested_item shift.opened is exist - process it [20:57:26]req_shift_opened [20:57:26]FM_GetShiftState [20:57:26]SAM_PROTO_GetShiftState [20:57:26]wFMCommunicate request_size=4 [20:57:26]MH_SAM_APDU [20:57:26]CAPDU: 80 13 01 00 [20:57:26]Write to MH i2c: E2 08 00 1F 19 80 13 01 00 00 00 00 00 B5 [20:57:26]Write i2c OK [20:57:26]MH_I2C_Read... [20:57:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:26]Read from MH i2c: E2 [20:57:26]MH_I2C_Read... [20:57:26]Read from MH i2c: E2 0E 00 [20:57:26]MH_I2C_Read... [20:57:26]Read from MH i2c: E2 0E 00 1F 19 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 BB [20:57:26]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:57:26]wFMCommunicate OK [20:57:26]SAM_PROTO_GetShiftState done [20:57:26]FM_GetShiftState done [20:57:26]req_shift_opened done [20:57:26]requested_item shift.open_date is exist - process it [20:57:26]req_shift_open_date [20:57:26]req_shift_open_date done [20:57:26]produce_requested_data done [20:57:26]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69563,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [20:57:26]process_action_free close_receipt [20:57:26]json_value_free [20:57:26]json_value_free done [20:57:26]process_json_proto returns [20:57:26]Send response to host [20:57:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69563,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [20:57:26]free response buf [20:57:26]execute_script done [20:57:26]execute_script returns [20:57:26]free content buf [20:57:26]Sock 7.Close socket [20:57:26]Sock 7.Thread stoped [20:57:30]OFD Sender: No OFD packet to send [20:57:35]OFD Sender: No OFD packet to send [20:57:40]OFD Sender: No OFD packet to send [20:57:43]accept exits with 10 [20:57:43]New connection [20:57:43]New thread 3066654052 created [20:57:43]Thread 3066797412 joined [20:57:43]Waiting for new connection... [20:57:43] Sock 10.Parse request [20:57:43]Sock 10.Check first char [20:57:43]Sock 10.First char is OK [20:57:43]request: POST /json_proto HTTP/1.0 [20:57:43]Method: POST [20:57:43]URL: /json_proto [20:57:43]Method is POST - this is cgi request [20:57:43]url: /json_proto [20:57:43]query_string will be loaded in cgi processing [20:57:43]execute_cgi json_proto POST (null) [20:57:43]execute_cgi path=json_proto method=POST [20:57:43]POST find Content-Length [20:57:43]Host: 172.17.50.3:8080 [20:57:43]Content-Length: 768 [20:57:43]Content-Type: application/json [20:57:43] [20:57:43]POST finish read [20:57:43]Found Content-Length = 768 [20:57:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:57:43]execute_script... [20:57:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:57:43]POST & json_proto [20:57:43]process_json_proto [20:57:43]json parsed OK: [20:57:43]protocol is kg_v1.0 [20:57:43]action value=close_receipt [20:57:43]process_action close_receipt [20:57:43]cmd_close_receipt [20:57:43]MH_GetDate [20:57:43]Write to MH i2c: F0 00 00 20 19 28 [20:57:43]Write i2c OK [20:57:43]MH_I2C_Read... [20:57:43]Read from MH i2c: F0 [20:57:43]MH_I2C_Read... [20:57:43]Read from MH i2c: F0 09 00 [20:57:43]MH_I2C_Read... [20:57:43]Read from MH i2c: F0 09 00 20 19 00 C8 6E 15 67 6B 98 1E 66 6A [20:57:43]GetLastDocTimeStamp 1729457843 [20:57:43]current date 1729457864 [20:57:43]FM_GetShiftState [20:57:43]SAM_PROTO_GetShiftState [20:57:43]wFMCommunicate request_size=4 [20:57:43]MH_SAM_APDU [20:57:43]CAPDU: 80 13 01 00 [20:57:43]Write to MH i2c: E2 08 00 21 19 80 13 01 00 00 00 00 00 B7 [20:57:43]Write i2c OK [20:57:43]MH_I2C_Read... [20:57:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:43]Read from MH i2c: E2 [20:57:43]MH_I2C_Read... [20:57:43]Read from MH i2c: E2 0E 00 [20:57:43]MH_I2C_Read... [20:57:43]Read from MH i2c: E2 0E 00 21 19 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 BD [20:57:43]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:57:43]wFMCommunicate OK [20:57:43]SAM_PROTO_GetShiftState done [20:57:43]FM_GetShiftState done [20:57:43]opened in 1729383220 [20:57:43]opened+sec_in_day 1729469620 [20:57:43]quantity*price = 70044 [20:57:43]sum+1 = 70045 [20:57:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.44 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.44 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 409 20.10.2024 20:57 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69564 ФПД: 188324202696623 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T205744&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69564&fm=188324202696623&tin=02508201610067®Number=0000000000156251&sum=70044 [20:57:44]StoreToDocumentArchive [20:57:44]shift 193 fd 69564 [20:57:44]save to /storage/0193/doc_00069564 [20:57:44]save last doc name /storage/0193/doc_00069564 to /storage/kkm_last_doc_name [20:57:44]save OK [20:57:44]Clear old archive folders... [20:57:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:57:44]tlvbuf is B6E9B820 [20:57:44]SAM_PROTO_ClearQueue [20:57:44]wFMCommunicate request_size=4 [20:57:44]MH_SAM_APDU [20:57:44]CAPDU: 80 09 00 00 [20:57:44]Write to MH i2c: E2 08 00 2E 19 80 09 00 00 00 00 00 00 B9 [20:57:44]Write i2c OK [20:57:44]MH_I2C_Read... [20:57:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:57:44]Read from MH i2c: E2 [20:57:44]MH_I2C_Read... [20:57:44]Read from MH i2c: E2 03 00 [20:57:44]MH_I2C_Read... [20:57:44]Read from MH i2c: E2 03 00 2E 19 00 90 00 BB [20:57:44]RAPDU: 90 00 [20:57:44]wFMCommunicate OK [20:57:44]SAM_PROTO_ClearQueue done [20:57:44]KKMCreateOFDPacket [20:57:44]OFDProtocolAddRootSTLVToBuf [20:57:44]FM_MakeSignedData [20:57:44]FM_MakeSignedData [20:57:44]SAM_PROTO_SignData [20:57:44]wFMCommunicate request_size=4 [20:57:44]MH_SAM_APDU [20:57:44]CAPDU: 80 0D 01 02 [20:57:44]Write to MH i2c: E2 08 00 2F 19 80 0D 01 02 00 00 00 00 C1 [20:57:44]Write i2c OK [20:57:44]MH_I2C_Read... [20:57:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:57:44]Read from MH i2c: E2 [20:57:44]MH_I2C_Read... [20:57:44]Read from MH i2c: E2 03 00 [20:57:44]MH_I2C_Read... [20:57:44]Read from MH i2c: E2 03 00 2F 19 00 90 00 BC [20:57:44]RAPDU: 90 00 [20:57:44]wFMCommunicate OK [20:57:44]wFMCommunicate request_size=255 [20:57:44]MH_SAM_APDU [20:57:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 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 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 01 00 00 F4 03 04 00 C8 6E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BC 0F 01 00 35 04 06 00 AB [20:57:44]Write to MH i2c: E2 02 01 30 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 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 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 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 01 00 00 F4 03 04 00 C8 6E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BC 0F 01 00 35 04 06 00 AB 00 00 36 [20:57:44]Write i2c OK [20:57:44]MH_I2C_Read... [20:57:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:57:44]Read from MH i2c: E2 [20:57:44]MH_I2C_Read... [20:57:44]Read from MH i2c: E2 03 00 [20:57:44]MH_I2C_Read... [20:57:44]Read from MH i2c: E2 03 00 30 19 00 90 00 BD [20:57:44]RAPDU: 90 00 [20:57:44]wFMCommunicate OK [20:57:44]wFMCommunicate request_size=10 [20:57:44]MH_SAM_APDU [20:57:44]CAPDU: 80 0D 02 02 05 47 A5 34 4F AF [20:57:44]Write to MH i2c: E2 0D 00 31 19 80 0D 02 02 05 00 47 A5 34 4F AF 00 00 EC [20:57:44]Write i2c OK [20:57:44]MH_I2C_Read... [20:57:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:57:44]Read from MH i2c: E2 [20:57:44]MH_I2C_Read... [20:57:44]Read from MH i2c: E2 03 00 [20:57:44]MH_I2C_Read... [20:57:44]Read from MH i2c: E2 03 00 31 19 00 90 00 BE [20:57:44]RAPDU: 90 00 [20:57:44]wFMCommunicate OK [20:57:44]wFMCommunicate request_size=4 [20:57:44]MH_SAM_APDU [20:57:44]CAPDU: 80 0D 03 02 [20:57:44]Write to MH i2c: E2 08 00 32 19 80 0D 03 02 00 00 00 00 C6 [20:57:44]Write i2c OK [20:57:44]MH_I2C_Read... [20:57:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:57:44]Read from MH i2c: E2 [20:57:44]MH_I2C_Read... [20:57:44]Read from MH i2c: E2 0B 00 [20:57:44]MH_I2C_Read... [20:57:44]Read from MH i2c: E2 0B 00 32 19 00 FF D6 5F 49 0D 16 94 26 90 00 21 [20:57:44]RAPDU: FF D6 5F 49 0D 16 94 26 90 00 [20:57:44]wFMCommunicate OK [20:57:44]SAM_PROTO_SignData done [20:57:44]FM_MakeSignedData done [20:57:44]CreateOFDProtocolMessage [20:57:44]wFMCommunicate request_size=4 [20:57:44]MH_SAM_APDU [20:57:44]CAPDU: 80 11 00 00 [20:57:44]Write to MH i2c: E2 08 00 33 19 80 11 00 00 00 00 00 00 C6 [20:57:44]Write i2c OK [20:57:44]MH_I2C_Read... [20:57:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:44]Read from MH i2c: E2 [20:57:44]MH_I2C_Read... [20:57:44]Read from MH i2c: E2 17 00 [20:57:44]MH_I2C_Read... [20:57:44]Read from MH i2c: E2 17 00 33 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 18 [20:57:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:57:44]wFMCommunicate OK [20:57:44]CreateOFDProtocolMessage done [20:57:44]OFDSenderStorePacket 69564 [20:57:44]StoreOFDPacket docnum=69564 [20:57:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A5 DA 07 01 37 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 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 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 01 00 00 F4 03 04 00 C8 6E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BC 0F 01 00 35 04 06 00 AB 47 A5 34 4F AF FF D6 5F 49 0D 16 94 26 [20:57:44]CheckFolder [20:57:44]dirname=/storage/ofd_packets [20:57:44]CheckFolder done [20:57:44]ProducePacketName [20:57:44]name=ofd_packets/00069564 [20:57:44]NVStorageSaveData ofd_packets/00069564 [20:57:44]File name is /storage/ofd_packets/00069564 [20:57:44]Write 301 bytes [20:57:44]NVStorageSaveData done [20:57:44]OFDSenderStorePacket done [20:57:44]KKMCreateOFDPacket done [20:57:44]NVStorageSaveData kkm_last_timestamp [20:57:44]File name is /storage/kkm_last_timestamp [20:57:44]Write 4 bytes [20:57:44]NVStorageSaveData done [20:57:44]ExternCall_PrintAddStr [20:57:44]wPrintStart [20:57:44]Write to MH i2c: 01 00 00 34 19 4D [20:57:44]Write i2c OK [20:57:44]MH_I2C_Read... [20:57:44]Read from MH i2c: 01 [20:57:44]MH_I2C_Read... [20:57:44]Read from MH i2c: 01 07 00 [20:57:44]MH_I2C_Read... [20:57:44]Read from MH i2c: 01 07 00 34 19 00 00 00 00 00 FF 0F 62 [20:57:44]RasterBufferAndPrint [20:57:44]line Счет N : (1)2885302 [20:57:44]line ИНН: 02508201610067 [20:57:44]line Контрольно-Кассовый Чек [20:57:44]line ПРОДАЖА [20:57:44]line ТРК (МРК, ГНК) : 42 [20:57:44]line Товар: 2710124130 [20:57:44]line Аи-92-К-5 [20:57:44]line 10.470 * 66.90 [20:57:44]line = 700.44 [20:57:44]line НДС 12% НСП 1% [20:57:44]line > о реализуемом товаре [20:57:44]line ИТОГО: 700.44 [20:57:44]line НСП 1% : 6.20 [20:57:44]line НДС 12% : 74.38 [20:57:44]line Наличными: 0.00 [20:57:44]line Безнал.: 700.44 [20:57:44]line Место: АЗС № 85 "Партнер Нефть" [20:57:44]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:57:44]line СНО: Общий режим [20:57:44]line Чек 409 20.10.2024 20:57 [20:57:44]line Смена: 193 ФФД: 1.0 [20:57:44]line ЗНМ: 0300000167 [20:57:44]line РНМ: 0000000000156251 [20:57:44]line Версия ККМ: v1.0 [20:57:44]line Платежная система: Mbank [20:57:44]line ФМ: 0000000000963346 [20:57:44]line ФД: 69564 [20:57:44]line ФПД: 188324202696623 [20:57:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T205744&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69564&fm=188324202696623&tin=02508201610067®Number=0000000000156251&sum=70044 [20:57:45]OFD Sender: Processing packet 69564 [packets to send 18, broken 17] [20:57:45]ProducePacketName [20:57:45]name=ofd_packets/00069564 [20:57:45]OFD Sender: To server: pG, [20:57:45]CommunicateWithHost lk.salyk.kg:30040 [20:57:45]ConnectInit lk.salyk.kg [20:57:45]written 0, free lines is 4095 [20:57:45]Connected sock=9 [20:57:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A5 DA 07 01 37 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 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 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 01 00 00 F4 03 04 00 C8 6E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BC 0F 01 00 35 04 06 00 AB 47 A5 34 4F AF FF D6 5F 49 0D 16 94 26 [20:57:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 04 0A 47 00 5A 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 30 39 36 33 33 34 36 10 04 04 00 BC 0F 01 00 F4 03 04 00 6E 18 15 67 B6 04 01 00 00 13 DF B5 C6 77 87 85 6C [20:57:45]CommunicateWithHost err = 0 [20:57:45]CheckOFDResponse [20:57:45]1017 (14) - 77093643461234 [20:57:45]1041 (16) - 0000000000963346 [20:57:45]1040 (4) - 69564 [20:57:45]1012 (4) - 20.10.2024 14:49 [20:57:45]1206 (1) - 0 [20:57:45]OFD Sender: Remove packet 69564 [20:57:45]ProducePacketName [20:57:45]name=ofd_packets/00069564 [20:57:45]NVStorageDeleteData [20:57:45]Write to MH i2c: 01 00 00 5D 19 76 [20:57:45]Write i2c OK [20:57:45]MH_I2C_Read... [20:57:45]Read from MH i2c: 01 [20:57:45]MH_I2C_Read... [20:57:45]Read from MH i2c: 01 07 00 [20:57:45]MH_I2C_Read... [20:57:45]Read from MH i2c: 01 07 00 5D 19 00 00 00 00 00 23 0D AD [20:57:45]RasterBufferAndPrint [20:57:45]line [20:57:45]line [20:57:45]line [20:57:45]line [20:57:45]line [20:57:45]written 0, free lines is 3369 [20:57:45]MH_Cut [20:57:45]Write to MH i2c: D1 01 00 64 19 01 4F [20:57:45]Write i2c OK [20:57:45]MH_I2C_Read... [20:57:45]Read from MH i2c: D1 [20:57:45]MH_I2C_Read... [20:57:45]Read from MH i2c: D1 01 00 [20:57:45]MH_I2C_Read... [20:57:45]Read from MH i2c: D1 01 00 64 19 00 4E [20:57:45]Write to MH i2c: 01 00 00 65 19 7E [20:57:45]Write i2c OK [20:57:45]MH_I2C_Read... [20:57:46]OFD Sender: No OFD packet to send [20:57:46]*** Cut start [20:57:46]*** Partial cut [20:57:46]*** CUTSNS_PIN = 1 [20:57:46]*** CUTSNS_PIN = 0 [20:57:46]*** Brake cut motor [20:57:46]Read from MH i2c: 01 [20:57:46]MH_I2C_Read... [20:57:46]*** Stop cut motor [20:57:46]*** Cut end [20:57:46]Read from MH i2c: 01 07 00 [20:57:46]MH_I2C_Read... [20:57:46]Read from MH i2c: 01 07 00 65 19 00 00 00 00 00 FF 0F 93 [20:57:46]process_action close_receipt done [20:57:46]requested_data is exist [20:57:46]produce_requested_data [20:57:46]requested_item fm.sn is exist - process it [20:57:46]wFMCommunicate request_size=4 [20:57:46]MH_SAM_APDU [20:57:46]CAPDU: 80 11 00 00 [20:57:46]Write to MH i2c: E2 08 00 66 19 80 11 00 00 00 00 00 00 F9 [20:57:47]Write i2c OK [20:57:47]MH_I2C_Read... [20:57:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:47]Read from MH i2c: E2 [20:57:47]MH_I2C_Read... [20:57:47]Read from MH i2c: E2 17 00 [20:57:47]MH_I2C_Read... [20:57:47]Read from MH i2c: E2 17 00 66 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4B [20:57:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:57:47]wFMCommunicate OK [20:57:47]requested_item fd.num is exist - process it [20:57:47]SAM_PROTO_GetFieldsCounters [20:57:47]wFMCommunicate request_size=4 [20:57:47]MH_SAM_APDU [20:57:47]CAPDU: 80 13 00 00 [20:57:47]Write to MH i2c: E2 08 00 67 19 80 13 00 00 00 00 00 00 FC [20:57:47]Write i2c OK [20:57:47]MH_I2C_Read... [20:57:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:57:47]Read from MH i2c: E2 [20:57:47]MH_I2C_Read... [20:57:47]Read from MH i2c: E2 62 00 [20:57:47]MH_I2C_Read... [20:57:47]Read from MH i2c: E2 62 00 67 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BC 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 99 01 00 00 5E 04 04 00 99 01 00 00 57 04 04 00 9A 01 00 00 19 04 04 00 00 00 00 00 90 00 72 [20:57:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BC 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 99 01 00 00 5E 04 04 00 99 01 00 00 57 04 04 00 9A 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:57:47]wFMCommunicate OK [20:57:47]SAM_PROTO_GetFieldsCounters done [20:57:47]requested_item shift.num is exist - process it [20:57:47]requested_item shift.opened is exist - process it [20:57:47]req_shift_opened [20:57:47]FM_GetShiftState [20:57:47]SAM_PROTO_GetShiftState [20:57:47]wFMCommunicate request_size=4 [20:57:47]MH_SAM_APDU [20:57:47]CAPDU: 80 13 01 00 [20:57:47]Write to MH i2c: E2 08 00 68 19 80 13 01 00 00 00 00 00 FE [20:57:47]Write i2c OK [20:57:47]MH_I2C_Read... [20:57:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:47]Read from MH i2c: E2 [20:57:47]MH_I2C_Read... [20:57:47]Read from MH i2c: E2 0E 00 [20:57:47]MH_I2C_Read... [20:57:47]Read from MH i2c: E2 0E 00 68 19 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 04 [20:57:47]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:57:47]wFMCommunicate OK [20:57:47]SAM_PROTO_GetShiftState done [20:57:47]FM_GetShiftState done [20:57:47]req_shift_opened done [20:57:47]requested_item shift.open_date is exist - process it [20:57:47]req_shift_open_date [20:57:47]req_shift_open_date done [20:57:47]produce_requested_data done [20:57:47]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69564,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [20:57:47]process_action_free close_receipt [20:57:47]json_value_free [20:57:47]json_value_free done [20:57:47]process_json_proto returns [20:57:47]Send response to host [20:57:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69564,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [20:57:47]free response buf [20:57:47]execute_script done [20:57:47]execute_script returns [20:57:47]free content buf [20:57:47]Sock 10.Close socket [20:57:47]Sock 10.Thread stoped [20:57:51]OFD Sender: No OFD packet to send [20:57:56]OFD Sender: No OFD packet to send [20:58:01]OFD Sender: No OFD packet to send [20:58:06]OFD Sender: No OFD packet to send [20:58:11]OFD Sender: No OFD packet to send [20:58:16]OFD Sender: No OFD packet to send [20:58:21]OFD Sender: No OFD packet to send [20:58:26]OFD Sender: No OFD packet to send [20:58:31]OFD Sender: No OFD packet to send [20:58:36]OFD Sender: No OFD packet to send [20:58:41]OFD Sender: No OFD packet to send [20:58:46]OFD Sender: No OFD packet to send [20:58:51]OFD Sender: No OFD packet to send [20:58:56]OFD Sender: No OFD packet to send [20:59:01]OFD Sender: No OFD packet to send [20:59:06]OFD Sender: No OFD packet to send [20:59:11]OFD Sender: No OFD packet to send [20:59:16]OFD Sender: No OFD packet to send [20:59:20]accept exits with 7 [20:59:20]New connection [20:59:20]New thread 3066797412 created [20:59:20]Thread 3066654052 joined [20:59:20]Waiting for new connection... [20:59:20] Sock 7.Parse request [20:59:20]Sock 7.Check first char [20:59:20]Sock 7.First char is OK [20:59:20]request: POST /json_proto HTTP/1.0 [20:59:20]Method: POST [20:59:20]URL: /json_proto [20:59:20]Method is POST - this is cgi request [20:59:20]url: /json_proto [20:59:20]query_string will be loaded in cgi processing [20:59:20]execute_cgi json_proto POST (null) [20:59:20]execute_cgi path=json_proto method=POST [20:59:20]POST find Content-Length [20:59:20]Host: 172.17.50.3:8080 [20:59:20]Content-Length: 678 [20:59:20]Content-Type: application/json [20:59:20] [20:59:20]POST finish read [20:59:20]Found Content-Length = 678 [20:59:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:59:20]execute_script... [20:59: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)2885304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:59:20]POST & json_proto [20:59:20]process_json_proto [20:59:20]json parsed OK: [20:59:20]protocol is kg_v1.0 [20:59:20]action value=close_receipt [20:59:20]process_action close_receipt [20:59:20]cmd_close_receipt [20:59:20]MH_GetDate [20:59:20]Write to MH i2c: F0 00 00 69 19 71 [20:59:20]Write i2c OK [20:59:20]MH_I2C_Read... [20:59:20]Read from MH i2c: F0 [20:59:20]MH_I2C_Read... [20:59:20]Read from MH i2c: F0 09 00 [20:59:20]MH_I2C_Read... [20:59:20]Read from MH i2c: F0 09 00 69 19 00 29 6F 15 67 6B 98 1E 66 15 [20:59:20]GetLastDocTimeStamp 1729457864 [20:59:20]current date 1729457961 [20:59:20]FM_GetShiftState [20:59:20]SAM_PROTO_GetShiftState [20:59:20]wFMCommunicate request_size=4 [20:59:20]MH_SAM_APDU [20:59:20]CAPDU: 80 13 01 00 [20:59:20]Write to MH i2c: E2 08 00 6A 19 80 13 01 00 00 00 00 00 00 [20:59:20]Write i2c OK [20:59:20]MH_I2C_Read... [20:59:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:59:20]Read from MH i2c: E2 [20:59:20]MH_I2C_Read... [20:59:20]Read from MH i2c: E2 0E 00 [20:59:20]MH_I2C_Read... [20:59:20]Read from MH i2c: E2 0E 00 6A 19 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 06 [20:59:20]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:59:20]wFMCommunicate OK [20:59:20]SAM_PROTO_GetShiftState done [20:59:20]FM_GetShiftState done [20:59:20]opened in 1729383220 [20:59:20]opened+sec_in_day 1729469620 [20:59:20]quantity*price = 20003 [20:59:20]sum+1 = 20004 [20:59:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 410 20.10.2024 20:59 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69565 ФПД: 51854522004194 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T205921&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69565&fm=51854522004194&tin=02508201610067®Number=0000000000156251&sum=20000 [20:59:21]StoreToDocumentArchive [20:59:21]shift 193 fd 69565 [20:59:21]save to /storage/0193/doc_00069565 [20:59:21]save last doc name /storage/0193/doc_00069565 to /storage/kkm_last_doc_name [20:59:21]save OK [20:59:21]Clear old archive folders... [20:59:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:59:21]tlvbuf is 00F68B70 [20:59:21]SAM_PROTO_ClearQueue [20:59:21]wFMCommunicate request_size=4 [20:59:21]MH_SAM_APDU [20:59:21]CAPDU: 80 09 00 00 [20:59:21]Write to MH i2c: E2 08 00 77 19 80 09 00 00 00 00 00 00 02 [20:59:21]Write i2c OK [20:59:21]MH_I2C_Read... [20:59:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:59:21]Read from MH i2c: E2 [20:59:21]MH_I2C_Read... [20:59:21]Read from MH i2c: E2 03 00 [20:59:21]MH_I2C_Read... [20:59:21]Read from MH i2c: E2 03 00 77 19 00 90 00 04 [20:59:21]RAPDU: 90 00 [20:59:21]wFMCommunicate OK [20:59:21]SAM_PROTO_ClearQueue done [20:59:21]KKMCreateOFDPacket [20:59:21]OFDProtocolAddRootSTLVToBuf [20:59:21]FM_MakeSignedData [20:59:21]FM_MakeSignedData [20:59:21]SAM_PROTO_SignData [20:59:21]wFMCommunicate request_size=4 [20:59:21]MH_SAM_APDU [20:59:21]CAPDU: 80 0D 01 02 [20:59:21]Write to MH i2c: E2 08 00 78 19 80 0D 01 02 00 00 00 00 0A [20:59:21]Write i2c OK [20:59:21]MH_I2C_Read... [20:59:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:59:21]Read from MH i2c: E2 [20:59:21]MH_I2C_Read... [20:59:21]Read from MH i2c: E2 03 00 [20:59:21]MH_I2C_Read... [20:59:21]Read from MH i2c: E2 03 00 78 19 00 90 00 05 [20:59:21]RAPDU: 90 00 [20:59:21]wFMCommunicate OK [20:59:21]wFMCommunicate request_size=255 [20:59:21]MH_SAM_APDU [20:59:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 01 00 00 F4 03 04 00 29 6F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BD 0F 01 00 35 04 06 00 2F [20:59:21]Write to MH i2c: E2 02 01 79 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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 01 00 00 F4 03 04 00 29 6F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BD 0F 01 00 35 04 06 00 2F 00 00 C1 [20:59:21]Write i2c OK [20:59:21]MH_I2C_Read... [20:59:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:59:22]Read from MH i2c: E2 [20:59:22]MH_I2C_Read... [20:59:22]Read from MH i2c: E2 03 00 [20:59:22]MH_I2C_Read... [20:59:22]Read from MH i2c: E2 03 00 79 19 00 90 00 06 [20:59:22]RAPDU: 90 00 [20:59:22]wFMCommunicate OK [20:59:22]wFMCommunicate request_size=10 [20:59:22]MH_SAM_APDU [20:59:22]CAPDU: 80 0D 02 02 05 29 52 5D 32 E2 [20:59:22]Write to MH i2c: E2 0D 00 7A 19 80 0D 02 02 05 00 29 52 5D 32 E2 00 00 03 [20:59:22]Write i2c OK [20:59:22]MH_I2C_Read... [20:59:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:59:22]Read from MH i2c: E2 [20:59:22]MH_I2C_Read... [20:59:22]Read from MH i2c: E2 03 00 [20:59:22]MH_I2C_Read... [20:59:22]Read from MH i2c: E2 03 00 7A 19 00 90 00 07 [20:59:22]RAPDU: 90 00 [20:59:22]wFMCommunicate OK [20:59:22]wFMCommunicate request_size=4 [20:59:22]MH_SAM_APDU [20:59:22]CAPDU: 80 0D 03 02 [20:59:22]Write to MH i2c: E2 08 00 7B 19 80 0D 03 02 00 00 00 00 0F [20:59:22]Write i2c OK [20:59:22]MH_I2C_Read... [20:59:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:59:22]Read from MH i2c: E2 [20:59:22]MH_I2C_Read... [20:59:22]Read from MH i2c: E2 0B 00 [20:59:22]MH_I2C_Read... [20:59:22]Read from MH i2c: E2 0B 00 7B 19 00 15 C6 BF 66 02 5B CF 2E 90 00 6A [20:59:22]RAPDU: 15 C6 BF 66 02 5B CF 2E 90 00 [20:59:22]wFMCommunicate OK [20:59:22]SAM_PROTO_SignData done [20:59:22]FM_MakeSignedData done [20:59:22]CreateOFDProtocolMessage [20:59:22]wFMCommunicate request_size=4 [20:59:22]MH_SAM_APDU [20:59:22]CAPDU: 80 11 00 00 [20:59:22]Write to MH i2c: E2 08 00 7C 19 80 11 00 00 00 00 00 00 0F [20:59:22]Write i2c OK [20:59:22]MH_I2C_Read... [20:59:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:59:22]Read from MH i2c: E2 [20:59:22]MH_I2C_Read... [20:59:22]Read from MH i2c: E2 17 00 [20:59:22]MH_I2C_Read... [20:59:22]Read from MH i2c: E2 17 00 7C 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 61 [20:59:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:59:22]wFMCommunicate OK [20:59:22]CreateOFDProtocolMessage done [20:59:22]OFDSenderStorePacket 69565 [20:59:22]StoreOFDPacket docnum=69565 [20:59:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C0 61 07 01 56 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 01 00 00 F4 03 04 00 29 6F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BD 0F 01 00 35 04 06 00 2F 29 52 5D 32 E2 15 C6 BF 66 02 5B CF 2E [20:59:22]CheckFolder [20:59:22]dirname=/storage/ofd_packets [20:59:22]CheckFolder done [20:59:22]ProducePacketName [20:59:22]name=ofd_packets/00069565 [20:59:22]NVStorageSaveData ofd_packets/00069565 [20:59:22]File name is /storage/ofd_packets/00069565 [20:59:22]Write 301 bytes [20:59:22]NVStorageSaveData done [20:59:22]OFDSenderStorePacket done [20:59:22]KKMCreateOFDPacket done [20:59:22]NVStorageSaveData kkm_last_timestamp [20:59:22]File name is /storage/kkm_last_timestamp [20:59:22]Write 4 bytes [20:59:22]NVStorageSaveData done [20:59:22]ExternCall_PrintAddStr [20:59:22]wPrintStart [20:59:22]Write to MH i2c: 01 00 00 7D 19 96 [20:59:22]Write i2c OK [20:59:22]MH_I2C_Read... [20:59:22]Read from MH i2c: 01 [20:59:22]MH_I2C_Read... [20:59:22]Read from MH i2c: 01 07 00 [20:59:22]MH_I2C_Read... [20:59:22]Read from MH i2c: 01 07 00 7D 19 00 00 00 00 00 FF 0F AB [20:59:22]RasterBufferAndPrint [20:59:22]line Счет N : (1)2885304 [20:59:22]line ИНН: 02508201610067 [20:59:22]line Контрольно-Кассовый Чек [20:59:22]line ПРОДАЖА [20:59:22]line ТРК (МРК, ГНК) : 32 [20:59:22]line Товар: 2710124130 [20:59:22]line Аи-92-К-5 [20:59:22]line 2.990 * 66.90 [20:59:22]line = 200.03 [20:59:22]line НДС 12% НСП 1% [20:59:22]line > о реализуемом товаре [20:59:22]line ОКРУГЛЕНИЕ: -0.03 [20:59:22]line ИТОГО: 200.00 [20:59:22]line Внесено: 200.00 [20:59:22]line СДАЧА: 0.00 [20:59:22]line НСП 1% : 1.77 [20:59:22]line НДС 12% : 21.24 [20:59:22]line Наличными: 200.00 [20:59:22]line Безнал.: 0.00 [20:59:22]line Место: АЗС № 85 "Партнер Нефть" [20:59:22]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [20:59:22]line СНО: Общий режим [20:59:22]line Чек 410 20.10.2024 20:59 [20:59:22]line Смена: 193 ФФД: 1.0 [20:59:22]line ЗНМ: 0300000167 [20:59:22]line РНМ: 0000000000156251 [20:59:22]line Версия ККМ: v1.0 [20:59:22]line ФМ: 0000000000963346 [20:59:22]line ФД: 69565 [20:59:22]line ФПД: 51854522004194 [20:59:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T205921&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69565&fm=51854522004194&tin=02508201610067®Number=0000000000156251&sum=20000 [20:59:22]OFD Sender: Processing packet 69565 [packets to send 18, broken 17] [20:59:22]ProducePacketName [20:59:22]name=ofd_packets/00069565 [20:59:22]OFD Sender: To server: pG, [20:59:22]CommunicateWithHost lk.salyk.kg:30040 [20:59:22]ConnectInit lk.salyk.kg [20:59:22]written 0, free lines is 4095 [20:59:22]Connected sock=10 [20:59:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C0 61 07 01 56 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 01 00 00 F4 03 04 00 29 6F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BD 0F 01 00 35 04 06 00 2F 29 52 5D 32 E2 15 C6 BF 66 02 5B CF 2E [20:59:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 D0 ED 47 00 39 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 30 39 36 33 33 34 36 10 04 04 00 BD 0F 01 00 F4 03 04 00 CF 18 15 67 B6 04 01 00 00 0C 02 6E 4D 57 BC 6C C2 [20:59:22]CommunicateWithHost err = 0 [20:59:22]CheckOFDResponse [20:59:22]1017 (14) - 77093643461234 [20:59:22]1041 (16) - 0000000000963346 [20:59:22]1040 (4) - 69565 [20:59:22]1012 (4) - 20.10.2024 14:50 [20:59:22]1206 (1) - 0 [20:59:22]OFD Sender: Remove packet 69565 [20:59:22]ProducePacketName [20:59:22]name=ofd_packets/00069565 [20:59:22]NVStorageDeleteData [20:59:22]Write to MH i2c: 01 00 00 A8 19 C1 [20:59:22]Write i2c OK [20:59:22]MH_I2C_Read... [20:59:22]Read from MH i2c: 01 [20:59:22]MH_I2C_Read... [20:59:22]Read from MH i2c: 01 07 00 [20:59:22]MH_I2C_Read... [20:59:22]Read from MH i2c: 01 07 00 A8 19 00 00 00 00 00 0A 0D DF [20:59:22]RasterBufferAndPrint [20:59:22]line [20:59:22]line [20:59:22]line [20:59:22]line [20:59:22]line [20:59:22]written 0, free lines is 3347 [20:59:23]MH_Cut [20:59:23]Write to MH i2c: D1 01 00 AF 19 01 9A [20:59:23]Write i2c OK [20:59:23]MH_I2C_Read... [20:59:23]Read from MH i2c: D1 [20:59:23]MH_I2C_Read... [20:59:23]Read from MH i2c: D1 01 00 [20:59:23]MH_I2C_Read... [20:59:23]Read from MH i2c: D1 01 00 AF 19 00 99 [20:59:23]Write to MH i2c: 01 00 00 B0 19 C9 [20:59:23]Write i2c OK [20:59:23]MH_I2C_Read... [20:59:23]OFD Sender: No OFD packet to send [20:59:23]*** Cut start [20:59:23]*** Partial cut [20:59:23]*** CUTSNS_PIN = 1 [20:59:23]*** CUTSNS_PIN = 0 [20:59:23]*** Brake cut motor [20:59:24]Read from MH i2c: 01 [20:59:24]MH_I2C_Read... [20:59:24]*** Stop cut motor [20:59:24]*** Cut end [20:59:24]Read from MH i2c: 01 07 00 [20:59:24]MH_I2C_Read... [20:59:24]Read from MH i2c: 01 07 00 B0 19 00 00 00 00 00 FF 0F DE [20:59:24]process_action close_receipt done [20:59:24]requested_data is exist [20:59:24]produce_requested_data [20:59:24]requested_item fm.sn is exist - process it [20:59:24]wFMCommunicate request_size=4 [20:59:24]MH_SAM_APDU [20:59:24]CAPDU: 80 11 00 00 [20:59:24]Write to MH i2c: E2 08 00 B1 19 80 11 00 00 00 00 00 00 44 [20:59:24]Write i2c OK [20:59:24]MH_I2C_Read... [20:59:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:59:24]Read from MH i2c: E2 [20:59:24]MH_I2C_Read... [20:59:24]Read from MH i2c: E2 17 00 [20:59:24]MH_I2C_Read... [20:59:24]Read from MH i2c: E2 17 00 B1 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 96 [20:59:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [20:59:24]wFMCommunicate OK [20:59:24]requested_item fd.num is exist - process it [20:59:24]SAM_PROTO_GetFieldsCounters [20:59:24]wFMCommunicate request_size=4 [20:59:24]MH_SAM_APDU [20:59:24]CAPDU: 80 13 00 00 [20:59:24]Write to MH i2c: E2 08 00 B2 19 80 13 00 00 00 00 00 00 47 [20:59:24]Write i2c OK [20:59:24]MH_I2C_Read... [20:59:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:59:24]Read from MH i2c: E2 [20:59:24]MH_I2C_Read... [20:59:24]Read from MH i2c: E2 62 00 [20:59:24]MH_I2C_Read... [20:59:24]Read from MH i2c: E2 62 00 B2 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BD 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 9A 01 00 00 5E 04 04 00 9A 01 00 00 57 04 04 00 9B 01 00 00 19 04 04 00 00 00 00 00 90 00 C1 [20:59:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BD 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 9A 01 00 00 5E 04 04 00 9A 01 00 00 57 04 04 00 9B 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:59:24]wFMCommunicate OK [20:59:24]SAM_PROTO_GetFieldsCounters done [20:59:24]requested_item shift.num is exist - process it [20:59:24]requested_item shift.opened is exist - process it [20:59:24]req_shift_opened [20:59:24]FM_GetShiftState [20:59:24]SAM_PROTO_GetShiftState [20:59:24]wFMCommunicate request_size=4 [20:59:24]MH_SAM_APDU [20:59:24]CAPDU: 80 13 01 00 [20:59:24]Write to MH i2c: E2 08 00 B3 19 80 13 01 00 00 00 00 00 49 [20:59:24]Write i2c OK [20:59:24]MH_I2C_Read... [20:59:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:59:24]Read from MH i2c: E2 [20:59:24]MH_I2C_Read... [20:59:24]Read from MH i2c: E2 0E 00 [20:59:24]MH_I2C_Read... [20:59:24]Read from MH i2c: E2 0E 00 B3 19 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 4F [20:59:24]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [20:59:24]wFMCommunicate OK [20:59:24]SAM_PROTO_GetShiftState done [20:59:24]FM_GetShiftState done [20:59:24]req_shift_opened done [20:59:24]requested_item shift.open_date is exist - process it [20:59:24]req_shift_open_date [20:59:24]req_shift_open_date done [20:59:24]produce_requested_data done [20:59:24]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69565,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [20:59:24]process_action_free close_receipt [20:59:24]json_value_free [20:59:24]json_value_free done [20:59:24]process_json_proto returns [20:59:24]Send response to host [20:59:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69565,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [20:59:24]free response buf [20:59:24]execute_script done [20:59:24]execute_script returns [20:59:24]free content buf [20:59:24]Sock 7.Close socket [20:59:24]Sock 7.Thread stoped [20:59:28]OFD Sender: No OFD packet to send [20:59:33]OFD Sender: No OFD packet to send [20:59:38]OFD Sender: No OFD packet to send [20:59:43]OFD Sender: No OFD packet to send [20:59:48]OFD Sender: No OFD packet to send [20:59:53]OFD Sender: No OFD packet to send [20:59:58]OFD Sender: No OFD packet to send [21:00:03]OFD Sender: No OFD packet to send [21:00:08]OFD Sender: No OFD packet to send [21:00:13]OFD Sender: No OFD packet to send [21:00:18]OFD Sender: No OFD packet to send [21:00:23]OFD Sender: No OFD packet to send [21:00:28]OFD Sender: No OFD packet to send [21:00:33]OFD Sender: No OFD packet to send [21:00:38]OFD Sender: No OFD packet to send [21:00:43]OFD Sender: No OFD packet to send [21:00:48]OFD Sender: No OFD packet to send [21:00:53]OFD Sender: No OFD packet to send [21:00:58]OFD Sender: No OFD packet to send [21:01:03]OFD Sender: No OFD packet to send [21:01:08]OFD Sender: No OFD packet to send [21:01:13]OFD Sender: No OFD packet to send [21:01:18]OFD Sender: No OFD packet to send [21:01:23]OFD Sender: No OFD packet to send [21:01:28]OFD Sender: No OFD packet to send [21:01:33]OFD Sender: No OFD packet to send [21:01:38]OFD Sender: No OFD packet to send [21:01:43]OFD Sender: No OFD packet to send [21:01:48]OFD Sender: No OFD packet to send [21:01:53]OFD Sender: No OFD packet to send [21:01:58]OFD Sender: No OFD packet to send [21:02:03]OFD Sender: No OFD packet to send [21:02:08]OFD Sender: No OFD packet to send [21:02:13]OFD Sender: No OFD packet to send [21:02:18]OFD Sender: No OFD packet to send [21:02:23]OFD Sender: No OFD packet to send [21:02:28]OFD Sender: No OFD packet to send [21:02:33]OFD Sender: No OFD packet to send [21:02:38]OFD Sender: No OFD packet to send [21:02:43]OFD Sender: No OFD packet to send [21:02:48]OFD Sender: No OFD packet to send [21:02:49]accept exits with 9 [21:02:49]New connection [21:02:49]New thread 3066654052 created [21:02:49]Thread 3066797412 joined [21:02:49]Waiting for new connection... [21:02:49] Sock 9.Parse request [21:02:49]Sock 9.Check first char [21:02:49]Sock 9.First char is OK [21:02:49]request: POST /json_proto HTTP/1.0 [21:02:49]Method: POST [21:02:49]URL: /json_proto [21:02:49]Method is POST - this is cgi request [21:02:49]url: /json_proto [21:02:49]query_string will be loaded in cgi processing [21:02:49]execute_cgi json_proto POST (null) [21:02:49]execute_cgi path=json_proto method=POST [21:02:49]POST find Content-Length [21:02:49]Host: 172.17.50.3:8080 [21:02:49]Content-Length: 678 [21:02:49]Content-Type: application/json [21:02:49] [21:02:49]POST finish read [21:02:49]Found Content-Length = 678 [21:02:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:02:49]execute_script... [21:02:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:02:49]POST & json_proto [21:02:49]process_json_proto [21:02:49]json parsed OK: [21:02:49]protocol is kg_v1.0 [21:02:49]action value=close_receipt [21:02:49]process_action close_receipt [21:02:49]cmd_close_receipt [21:02:49]MH_GetDate [21:02:49]Write to MH i2c: F0 00 00 B4 19 BC [21:02:49]Write i2c OK [21:02:49]MH_I2C_Read... [21:02:49]Read from MH i2c: F0 [21:02:49]MH_I2C_Read... [21:02:49]Read from MH i2c: F0 09 00 [21:02:49]MH_I2C_Read... [21:02:49]Read from MH i2c: F0 09 00 B4 19 00 FA 6F 15 67 6B 98 1E 66 31 [21:02:49]GetLastDocTimeStamp 1729457961 [21:02:49]current date 1729458170 [21:02:49]FM_GetShiftState [21:02:49]SAM_PROTO_GetShiftState [21:02:49]wFMCommunicate request_size=4 [21:02:49]MH_SAM_APDU [21:02:49]CAPDU: 80 13 01 00 [21:02:49]Write to MH i2c: E2 08 00 B5 19 80 13 01 00 00 00 00 00 4B [21:02:49]Write i2c OK [21:02:49]MH_I2C_Read... [21:02:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:02:49]Read from MH i2c: E2 [21:02:49]MH_I2C_Read... [21:02:49]Read from MH i2c: E2 0E 00 [21:02:49]MH_I2C_Read... [21:02:49]Read from MH i2c: E2 0E 00 B5 19 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 51 [21:02:49]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [21:02:49]wFMCommunicate OK [21:02:49]SAM_PROTO_GetShiftState done [21:02:49]FM_GetShiftState done [21:02:49]opened in 1729383220 [21:02:49]opened+sec_in_day 1729469620 [21:02:49]quantity*price = 50041 [21:02:49]sum+1 = 50042 [21:02:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 411 20.10.2024 21:02 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69566 ФПД: 154191561395729 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T210250&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69566&fm=154191561395729&tin=02508201610067®Number=0000000000156251&sum=50000 [21:02:50]StoreToDocumentArchive [21:02:50]shift 193 fd 69566 [21:02:50]save to /storage/0193/doc_00069566 [21:02:50]save last doc name /storage/0193/doc_00069566 to /storage/kkm_last_doc_name [21:02:50]save OK [21:02:50]Clear old archive folders... [21:02:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:02:50]tlvbuf is 00F76F70 [21:02:50]SAM_PROTO_ClearQueue [21:02:50]wFMCommunicate request_size=4 [21:02:50]MH_SAM_APDU [21:02:50]CAPDU: 80 09 00 00 [21:02:50]Write to MH i2c: E2 08 00 C2 19 80 09 00 00 00 00 00 00 4D [21:02:50]Write i2c OK [21:02:50]MH_I2C_Read... [21:02:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:02:50]Read from MH i2c: E2 [21:02:50]MH_I2C_Read... [21:02:50]Read from MH i2c: E2 03 00 [21:02:50]MH_I2C_Read... [21:02:50]Read from MH i2c: E2 03 00 C2 19 00 90 00 4F [21:02:50]RAPDU: 90 00 [21:02:50]wFMCommunicate OK [21:02:50]SAM_PROTO_ClearQueue done [21:02:50]KKMCreateOFDPacket [21:02:50]OFDProtocolAddRootSTLVToBuf [21:02:50]FM_MakeSignedData [21:02:50]FM_MakeSignedData [21:02:50]SAM_PROTO_SignData [21:02:50]wFMCommunicate request_size=4 [21:02:50]MH_SAM_APDU [21:02:50]CAPDU: 80 0D 01 02 [21:02:50]Write to MH i2c: E2 08 00 C3 19 80 0D 01 02 00 00 00 00 55 [21:02:50]Write i2c OK [21:02:50]MH_I2C_Read... [21:02:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:02:50]Read from MH i2c: E2 [21:02:50]MH_I2C_Read... [21:02:50]Read from MH i2c: E2 03 00 [21:02:50]MH_I2C_Read... [21:02:50]Read from MH i2c: E2 03 00 C3 19 00 90 00 50 [21:02:50]RAPDU: 90 00 [21:02:50]wFMCommunicate OK [21:02:50]wFMCommunicate request_size=255 [21:02:50]MH_SAM_APDU [21:02: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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 01 00 00 F4 03 04 00 FA 6F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BE 0F 01 00 35 04 06 00 8C [21:02:50]Write to MH i2c: E2 02 01 C4 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 01 00 00 F4 03 04 00 FA 6F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BE 0F 01 00 35 04 06 00 8C 00 00 7A [21:02:50]Write i2c OK [21:02:50]MH_I2C_Read... [21:02:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:02:51]Read from MH i2c: E2 [21:02:51]MH_I2C_Read... [21:02:51]Read from MH i2c: E2 03 00 [21:02:51]MH_I2C_Read... [21:02:51]Read from MH i2c: E2 03 00 C4 19 00 90 00 51 [21:02:51]RAPDU: 90 00 [21:02:51]wFMCommunicate OK [21:02:51]wFMCommunicate request_size=10 [21:02:51]MH_SAM_APDU [21:02:51]CAPDU: 80 0D 02 02 05 3C 85 3E 8E 11 [21:02:51]Write to MH i2c: E2 0D 00 C5 19 80 0D 02 02 05 00 3C 85 3E 8E 11 00 00 00 [21:02:51]Write i2c OK [21:02:51]MH_I2C_Read... [21:02:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:02:51]Read from MH i2c: E2 [21:02:51]MH_I2C_Read... [21:02:51]Read from MH i2c: E2 03 00 [21:02:51]MH_I2C_Read... [21:02:51]Read from MH i2c: E2 03 00 C5 19 00 90 00 52 [21:02:51]RAPDU: 90 00 [21:02:51]wFMCommunicate OK [21:02:51]wFMCommunicate request_size=4 [21:02:51]MH_SAM_APDU [21:02:51]CAPDU: 80 0D 03 02 [21:02:51]Write to MH i2c: E2 08 00 C6 19 80 0D 03 02 00 00 00 00 5A [21:02:51]Write i2c OK [21:02:51]MH_I2C_Read... [21:02:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:02:51]Read from MH i2c: E2 [21:02:51]MH_I2C_Read... [21:02:51]Read from MH i2c: E2 0B 00 [21:02:51]MH_I2C_Read... [21:02:51]Read from MH i2c: E2 0B 00 C6 19 00 FE BC 70 92 8B 43 2F 4B 90 00 5F [21:02:51]RAPDU: FE BC 70 92 8B 43 2F 4B 90 00 [21:02:51]wFMCommunicate OK [21:02:51]SAM_PROTO_SignData done [21:02:51]FM_MakeSignedData done [21:02:51]CreateOFDProtocolMessage [21:02:51]wFMCommunicate request_size=4 [21:02:51]MH_SAM_APDU [21:02:51]CAPDU: 80 11 00 00 [21:02:51]Write to MH i2c: E2 08 00 C7 19 80 11 00 00 00 00 00 00 5A [21:02:51]Write i2c OK [21:02:51]MH_I2C_Read... [21:02:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:02:51]Read from MH i2c: E2 [21:02:51]MH_I2C_Read... [21:02:51]Read from MH i2c: E2 17 00 [21:02:51]MH_I2C_Read... [21:02:51]Read from MH i2c: E2 17 00 C7 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AC [21:02:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:02:51]wFMCommunicate OK [21:02:51]CreateOFDProtocolMessage done [21:02:51]OFDSenderStorePacket 69566 [21:02:51]StoreOFDPacket docnum=69566 [21:02:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 93 64 07 01 E7 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 01 00 00 F4 03 04 00 FA 6F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BE 0F 01 00 35 04 06 00 8C 3C 85 3E 8E 11 FE BC 70 92 8B 43 2F 4B [21:02:51]CheckFolder [21:02:51]dirname=/storage/ofd_packets [21:02:51]CheckFolder done [21:02:51]ProducePacketName [21:02:51]name=ofd_packets/00069566 [21:02:51]NVStorageSaveData ofd_packets/00069566 [21:02:51]File name is /storage/ofd_packets/00069566 [21:02:51]Write 301 bytes [21:02:51]NVStorageSaveData done [21:02:51]OFDSenderStorePacket done [21:02:51]KKMCreateOFDPacket done [21:02:51]NVStorageSaveData kkm_last_timestamp [21:02:51]File name is /storage/kkm_last_timestamp [21:02:51]Write 4 bytes [21:02:51]NVStorageSaveData done [21:02:51]ExternCall_PrintAddStr [21:02:51]wPrintStart [21:02:51]Write to MH i2c: 01 00 00 C8 19 E1 [21:02:51]Write i2c OK [21:02:51]MH_I2C_Read... [21:02:51]Read from MH i2c: 01 [21:02:51]MH_I2C_Read... [21:02:51]Read from MH i2c: 01 07 00 [21:02:51]MH_I2C_Read... [21:02:51]Read from MH i2c: 01 07 00 C8 19 00 00 00 00 00 FF 0F F6 [21:02:51]RasterBufferAndPrint [21:02:51]line Счет N : (1)2885305 [21:02:51]line ИНН: 02508201610067 [21:02:51]line Контрольно-Кассовый Чек [21:02:51]line ПРОДАЖА [21:02:51]line ТРК (МРК, ГНК) : 32 [21:02:51]line Товар: 2710124130 [21:02:51]line Аи-92-К-5 [21:02:51]line 7.480 * 66.90 [21:02:51]line = 500.41 [21:02:51]line НДС 12% НСП 1% [21:02:51]line > о реализуемом товаре [21:02:51]line ОКРУГЛЕНИЕ: -0.41 [21:02:51]line ИТОГО: 500.00 [21:02:51]line Внесено: 500.00 [21:02:51]line СДАЧА: 0.00 [21:02:51]line НСП 1% : 4.43 [21:02:51]line НДС 12% : 53.14 [21:02:51]line Наличными: 500.00 [21:02:51]line Безнал.: 0.00 [21:02:51]line Место: АЗС № 85 "Партнер Нефть" [21:02:51]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:02:51]line СНО: Общий режим [21:02:51]line Чек 411 20.10.2024 21:02 [21:02:51]line Смена: 193 ФФД: 1.0 [21:02:51]line ЗНМ: 0300000167 [21:02:51]line РНМ: 0000000000156251 [21:02:51]line Версия ККМ: v1.0 [21:02:51]line ФМ: 0000000000963346 [21:02:51]line ФД: 69566 [21:02:51]line ФПД: 154191561395729 [21:02:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T210250&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69566&fm=154191561395729&tin=02508201610067®Number=0000000000156251&sum=50000 [21:02:51]OFD Sender: Processing packet 69566 [packets to send 18, broken 17] [21:02:51]ProducePacketName [21:02:51]name=ofd_packets/00069566 [21:02:51]OFD Sender: To server: pG, [21:02:51]CommunicateWithHost lk.salyk.kg:30040 [21:02:51]ConnectInit lk.salyk.kg [21:02:51]written 0, free lines is 4095 [21:02:51]Connected sock=10 [21:02:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 93 64 07 01 E7 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 01 00 00 F4 03 04 00 FA 6F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BE 0F 01 00 35 04 06 00 8C 3C 85 3E 8E 11 FE BC 70 92 8B 43 2F 4B [21:02:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 06 D5 47 00 83 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BE 0F 01 00 F4 03 04 00 A0 19 15 67 B6 04 01 00 00 A5 69 6A E4 56 AE 18 FD [21:02:51]CommunicateWithHost err = 0 [21:02:51]CheckOFDResponse [21:02:51]1017 (14) - 77093643461234 [21:02:51]1041 (16) - 0000000000963346 [21:02:51]1040 (4) - 69566 [21:02:51]1012 (4) - 20.10.2024 14:54 [21:02:51]1206 (1) - 0 [21:02:51]OFD Sender: Remove packet 69566 [21:02:51]ProducePacketName [21:02:51]name=ofd_packets/00069566 [21:02:51]NVStorageDeleteData [21:02:52]Write to MH i2c: 01 00 00 F3 19 0C [21:02:52]Write i2c OK [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: 01 [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: 01 07 00 [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: 01 07 00 F3 19 00 00 00 00 00 FA 0C 19 [21:02:52]RasterBufferAndPrint [21:02:52]line [21:02:52]line [21:02:52]line [21:02:52]line [21:02:52]line [21:02:52]written 0, free lines is 3328 [21:02:52]MH_Cut [21:02:52]Write to MH i2c: D1 01 00 FA 19 01 E5 [21:02:52]Write i2c OK [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: D1 [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: D1 01 00 [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: D1 01 00 FA 19 00 E4 [21:02:52]Write to MH i2c: 01 00 00 FB 19 14 [21:02:52]Write i2c OK [21:02:52]MH_I2C_Read... [21:02:52]OFD Sender: No OFD packet to send [21:02:52]*** Cut start [21:02:52]*** Partial cut [21:02:52]*** CUTSNS_PIN = 1 [21:02:52]*** CUTSNS_PIN = 0 [21:02:53]*** Brake cut motor [21:02:53]Read from MH i2c: 01 [21:02:53]MH_I2C_Read... [21:02:53]*** Stop cut motor [21:02:53]*** Cut end [21:02:53]Read from MH i2c: 01 07 00 [21:02:53]MH_I2C_Read... [21:02:53]Read from MH i2c: 01 07 00 FB 19 00 00 00 00 00 FF 0F 29 [21:02:53]process_action close_receipt done [21:02:53]requested_data is exist [21:02:53]produce_requested_data [21:02:53]requested_item fm.sn is exist - process it [21:02:53]wFMCommunicate request_size=4 [21:02:53]MH_SAM_APDU [21:02:53]CAPDU: 80 11 00 00 [21:02:53]Write to MH i2c: E2 08 00 FC 19 80 11 00 00 00 00 00 00 8F [21:02:53]Write i2c OK [21:02:53]MH_I2C_Read... [21:02:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:02:53]Read from MH i2c: E2 [21:02:53]MH_I2C_Read... [21:02:53]Read from MH i2c: E2 17 00 [21:02:53]MH_I2C_Read... [21:02:53]Read from MH i2c: E2 17 00 FC 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E1 [21:02:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:02:53]wFMCommunicate OK [21:02:53]requested_item fd.num is exist - process it [21:02:53]SAM_PROTO_GetFieldsCounters [21:02:53]wFMCommunicate request_size=4 [21:02:53]MH_SAM_APDU [21:02:53]CAPDU: 80 13 00 00 [21:02:53]Write to MH i2c: E2 08 00 FD 19 80 13 00 00 00 00 00 00 92 [21:02:53]Write i2c OK [21:02:53]MH_I2C_Read... [21:02:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:02:53]Read from MH i2c: E2 [21:02:53]MH_I2C_Read... [21:02:53]Read from MH i2c: E2 62 00 [21:02:53]MH_I2C_Read... [21:02:53]Read from MH i2c: E2 62 00 FD 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BE 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 9B 01 00 00 5E 04 04 00 9B 01 00 00 57 04 04 00 9C 01 00 00 19 04 04 00 00 00 00 00 90 00 10 [21:02:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BE 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 9B 01 00 00 5E 04 04 00 9B 01 00 00 57 04 04 00 9C 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:02:53]wFMCommunicate OK [21:02:53]SAM_PROTO_GetFieldsCounters done [21:02:53]requested_item shift.num is exist - process it [21:02:53]requested_item shift.opened is exist - process it [21:02:53]req_shift_opened [21:02:53]FM_GetShiftState [21:02:53]SAM_PROTO_GetShiftState [21:02:53]wFMCommunicate request_size=4 [21:02:53]MH_SAM_APDU [21:02:53]CAPDU: 80 13 01 00 [21:02:53]Write to MH i2c: E2 08 00 FE 19 80 13 01 00 00 00 00 00 94 [21:02:53]Write i2c OK [21:02:53]MH_I2C_Read... [21:02:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:02:53]Read from MH i2c: E2 [21:02:53]MH_I2C_Read... [21:02:53]Read from MH i2c: E2 0E 00 [21:02:53]MH_I2C_Read... [21:02:53]Read from MH i2c: E2 0E 00 FE 19 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 9A [21:02:53]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [21:02:53]wFMCommunicate OK [21:02:53]SAM_PROTO_GetShiftState done [21:02:53]FM_GetShiftState done [21:02:53]req_shift_opened done [21:02:53]requested_item shift.open_date is exist - process it [21:02:53]req_shift_open_date [21:02:53]req_shift_open_date done [21:02:53]produce_requested_data done [21:02:53]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69566,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [21:02:53]process_action_free close_receipt [21:02:53]json_value_free [21:02:53]json_value_free done [21:02:53]process_json_proto returns [21:02:53]Send response to host [21:02:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69566,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [21:02:53]free response buf [21:02:53]execute_script done [21:02:53]execute_script returns [21:02:53]free content buf [21:02:53]Sock 9.Close socket [21:02:53]Sock 9.Thread stoped [21:02:57]OFD Sender: No OFD packet to send [21:03:02]OFD Sender: No OFD packet to send [21:03:07]OFD Sender: No OFD packet to send [21:03:12]OFD Sender: No OFD packet to send [21:03:17]OFD Sender: No OFD packet to send [21:03:22]OFD Sender: No OFD packet to send [21:03:27]OFD Sender: No OFD packet to send [21:03:32]OFD Sender: No OFD packet to send [21:03:37]OFD Sender: No OFD packet to send [21:03:42]OFD Sender: No OFD packet to send [21:03:47]OFD Sender: No OFD packet to send [21:03:52]OFD Sender: No OFD packet to send [21:03:57]OFD Sender: No OFD packet to send [21:04:02]OFD Sender: No OFD packet to send [21:04:07]OFD Sender: No OFD packet to send [21:04:12]OFD Sender: No OFD packet to send [21:04:17]OFD Sender: No OFD packet to send [21:04:22]OFD Sender: No OFD packet to send [21:04:27]OFD Sender: No OFD packet to send [21:04:32]OFD Sender: No OFD packet to send [21:04:37]OFD Sender: No OFD packet to send [21:04:42]OFD Sender: No OFD packet to send [21:04:47]OFD Sender: No OFD packet to send [21:04:52]OFD Sender: No OFD packet to send [21:04:57]OFD Sender: No OFD packet to send [21:05:02]OFD Sender: No OFD packet to send [21:05:07]OFD Sender: No OFD packet to send [21:05:12]OFD Sender: No OFD packet to send [21:05:17]OFD Sender: No OFD packet to send [21:05:22]OFD Sender: No OFD packet to send [21:05:27]OFD Sender: No OFD packet to send [21:05:32]OFD Sender: No OFD packet to send [21:05:37]OFD Sender: No OFD packet to send [21:05:42]OFD Sender: No OFD packet to send [21:05:45]accept exits with 7 [21:05:45]New connection [21:05:45]New thread 3066797412 created [21:05:45]Thread 3066654052 joined [21:05:45]Waiting for new connection... [21:05:45] Sock 7.Parse request [21:05:45]Sock 7.Check first char [21:05:45]Sock 7.First char is OK [21:05:45]request: POST /json_proto HTTP/1.0 [21:05:45]Method: POST [21:05:45]URL: /json_proto [21:05:45]Method is POST - this is cgi request [21:05:45]url: /json_proto [21:05:45]query_string will be loaded in cgi processing [21:05:45]execute_cgi json_proto POST (null) [21:05:45]execute_cgi path=json_proto method=POST [21:05:45]POST find Content-Length [21:05:45]Host: 172.17.50.3:8080 [21:05:45]Content-Length: 686 [21:05:45]Content-Type: application/json [21:05:45] [21:05:45]POST finish read [21:05:45]Found Content-Length = 686 [21:05:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 53.920, "sum" : 2097.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2097.00, "payments": [ { "type": 0, "sum" : 2097.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:45]execute_script... [21:05:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 53.920, "sum" : 2097.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2097.00, "payments": [ { "type": 0, "sum" : 2097.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:45]POST & json_proto [21:05:45]process_json_proto [21:05:45]json parsed OK: [21:05:45]protocol is kg_v1.0 [21:05:45]action value=close_receipt [21:05:45]process_action close_receipt [21:05:45]cmd_close_receipt [21:05:45]MH_GetDate [21:05:45]Write to MH i2c: F0 00 00 FF 19 07 [21:05:45]Write i2c OK [21:05:45]MH_I2C_Read... [21:05:45]Read from MH i2c: F0 [21:05:45]MH_I2C_Read... [21:05:45]Read from MH i2c: F0 09 00 [21:05:45]MH_I2C_Read... [21:05:45]Read from MH i2c: F0 09 00 FF 19 00 AA 70 15 67 6B 98 1E 66 2D [21:05:45]GetLastDocTimeStamp 1729458170 [21:05:45]current date 1729458346 [21:05:45]FM_GetShiftState [21:05:45]SAM_PROTO_GetShiftState [21:05:45]wFMCommunicate request_size=4 [21:05:45]MH_SAM_APDU [21:05:45]CAPDU: 80 13 01 00 [21:05:45]Write to MH i2c: E2 08 00 00 1A 80 13 01 00 00 00 00 00 97 [21:05:45]Write i2c OK [21:05:45]MH_I2C_Read... [21:05:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:45]Read from MH i2c: E2 [21:05:45]MH_I2C_Read... [21:05:45]Read from MH i2c: E2 0E 00 [21:05:45]MH_I2C_Read... [21:05:45]Read from MH i2c: E2 0E 00 00 1A 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 9D [21:05:45]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [21:05:45]wFMCommunicate OK [21:05:45]SAM_PROTO_GetShiftState done [21:05:45]FM_GetShiftState done [21:05:45]opened in 1729383220 [21:05:45]opened+sec_in_day 1729469620 [21:05:45]quantity*price = 209748 [21:05:45]sum+1 = 209750 [21:05:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 2097.00 Внесено: 3000.00 СДАЧА: 903.00 НСП 1% : 18.56 НДС 12% : 222.74 Наличными: 2097.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 412 20.10.2024 21:05 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69567 ФПД: 226840983231671 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T210546&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69567&fm=226840983231671&tin=02508201610067®Number=0000000000156251&sum=209700 [21:05:46]StoreToDocumentArchive [21:05:46]shift 193 fd 69567 [21:05:46]save to /storage/0193/doc_00069567 [21:05:46]save last doc name /storage/0193/doc_00069567 to /storage/kkm_last_doc_name [21:05:46]save OK [21:05:46]Clear old archive folders... [21:05:46]ProcessDocumentItem done err = 0, tmpTLVsize=250 [21:05:46]tlvbuf is B6F323D0 [21:05:46]SAM_PROTO_ClearQueue [21:05:46]wFMCommunicate request_size=4 [21:05:46]MH_SAM_APDU [21:05:46]CAPDU: 80 09 00 00 [21:05:46]Write to MH i2c: E2 08 00 0D 1A 80 09 00 00 00 00 00 00 99 [21:05:46]Write i2c OK [21:05:46]MH_I2C_Read... [21:05:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:05:46]Read from MH i2c: E2 [21:05:46]MH_I2C_Read... [21:05:46]Read from MH i2c: E2 03 00 [21:05:46]MH_I2C_Read... [21:05:46]Read from MH i2c: E2 03 00 0D 1A 00 90 00 9B [21:05:46]RAPDU: 90 00 [21:05:46]wFMCommunicate OK [21:05:46]SAM_PROTO_ClearQueue done [21:05:46]KKMCreateOFDPacket [21:05:46]OFDProtocolAddRootSTLVToBuf [21:05:46]FM_MakeSignedData [21:05:46]FM_MakeSignedData [21:05:46]SAM_PROTO_SignData [21:05:46]wFMCommunicate request_size=4 [21:05:46]MH_SAM_APDU [21:05:46]CAPDU: 80 0D 01 02 [21:05:46]Write to MH i2c: E2 08 00 0E 1A 80 0D 01 02 00 00 00 00 A1 [21:05:46]Write i2c OK [21:05:46]MH_I2C_Read... [21:05:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:05:46]Read from MH i2c: E2 [21:05:46]MH_I2C_Read... [21:05:46]Read from MH i2c: E2 03 00 [21:05:46]MH_I2C_Read... [21:05:46]Read from MH i2c: E2 03 00 0E 1A 00 90 00 9C [21:05:46]RAPDU: 90 00 [21:05:46]wFMCommunicate OK [21:05:46]wFMCommunicate request_size=255 [21:05:46]MH_SAM_APDU [21:05:46]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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 A0 D2 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 55 33 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 33 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 57 00 00 00 00 07 04 06 00 24 33 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 01 00 00 F4 03 04 00 AA 70 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BF 0F 01 00 35 04 06 00 CE 4F [21:05:46]Write to MH i2c: E2 02 01 0F 1A 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 A0 D2 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 55 33 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 33 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 57 00 00 00 00 07 04 06 00 24 33 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 01 00 00 F4 03 04 00 AA 70 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BF 0F 01 00 35 04 06 00 CE 4F 00 00 C5 [21:05:46]Write i2c OK [21:05:46]MH_I2C_Read... [21:05:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:46]Read from MH i2c: E2 [21:05:46]MH_I2C_Read... [21:05:46]Read from MH i2c: E2 03 00 [21:05:46]MH_I2C_Read... [21:05:46]Read from MH i2c: E2 03 00 0F 1A 00 90 00 9D [21:05:46]RAPDU: 90 00 [21:05:46]wFMCommunicate OK [21:05:46]wFMCommunicate request_size=9 [21:05:46]MH_SAM_APDU [21:05:46]CAPDU: 80 0D 02 02 04 88 39 DC B7 [21:05:46]Write to MH i2c: E2 0C 00 10 1A 80 0D 02 02 04 00 88 39 DC B7 00 00 00 [21:05:46]Write i2c OK [21:05:46]MH_I2C_Read... [21:05:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:46]Read from MH i2c: E2 [21:05:46]MH_I2C_Read... [21:05:46]Read from MH i2c: E2 03 00 [21:05:46]MH_I2C_Read... [21:05:46]Read from MH i2c: E2 03 00 10 1A 00 90 00 9E [21:05:46]RAPDU: 90 00 [21:05:46]wFMCommunicate OK [21:05:46]wFMCommunicate request_size=4 [21:05:46]MH_SAM_APDU [21:05:46]CAPDU: 80 0D 03 02 [21:05:46]Write to MH i2c: E2 08 00 11 1A 80 0D 03 02 00 00 00 00 A6 [21:05:46]Write i2c OK [21:05:46]MH_I2C_Read... [21:05:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:05:46]Read from MH i2c: E2 [21:05:46]MH_I2C_Read... [21:05:46]Read from MH i2c: E2 0B 00 [21:05:46]MH_I2C_Read... [21:05:46]Read from MH i2c: E2 0B 00 11 1A 00 81 A8 57 E9 D7 F2 C2 E5 90 00 80 [21:05:46]RAPDU: 81 A8 57 E9 D7 F2 C2 E5 90 00 [21:05:46]wFMCommunicate OK [21:05:46]SAM_PROTO_SignData done [21:05:46]FM_MakeSignedData done [21:05:46]CreateOFDProtocolMessage [21:05:46]wFMCommunicate request_size=4 [21:05:46]MH_SAM_APDU [21:05:46]CAPDU: 80 11 00 00 [21:05:46]Write to MH i2c: E2 08 00 12 1A 80 11 00 00 00 00 00 00 A6 [21:05:46]Write i2c OK [21:05:46]MH_I2C_Read... [21:05:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:46]Read from MH i2c: E2 [21:05:46]MH_I2C_Read... [21:05:46]Read from MH i2c: E2 17 00 [21:05:46]MH_I2C_Read... [21:05:46]Read from MH i2c: E2 17 00 12 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F8 [21:05:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:05:46]wFMCommunicate OK [21:05:46]CreateOFDProtocolMessage done [21:05:46]OFDSenderStorePacket 69567 [21:05:46]StoreOFDPacket docnum=69567 [21:05:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 5C 63 06 01 42 55 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 A0 D2 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 55 33 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 33 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 57 00 00 00 00 07 04 06 00 24 33 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 01 00 00 F4 03 04 00 AA 70 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BF 0F 01 00 35 04 06 00 CE 4F 88 39 DC B7 81 A8 57 E9 D7 F2 C2 E5 [21:05:46]CheckFolder [21:05:46]dirname=/storage/ofd_packets [21:05:46]CheckFolder done [21:05:46]ProducePacketName [21:05:46]name=ofd_packets/00069567 [21:05:46]NVStorageSaveData ofd_packets/00069567 [21:05:46]File name is /storage/ofd_packets/00069567 [21:05:46]Write 300 bytes [21:05:46]NVStorageSaveData done [21:05:46]OFDSenderStorePacket done [21:05:46]KKMCreateOFDPacket done [21:05:46]NVStorageSaveData kkm_last_timestamp [21:05:46]File name is /storage/kkm_last_timestamp [21:05:46]Write 4 bytes [21:05:46]NVStorageSaveData done [21:05:46]ExternCall_PrintAddStr [21:05:46]wPrintStart [21:05:46]Write to MH i2c: 01 00 00 13 1A 2D [21:05:46]Write i2c OK [21:05:46]MH_I2C_Read... [21:05:46]Read from MH i2c: 01 [21:05:46]MH_I2C_Read... [21:05:46]Read from MH i2c: 01 07 00 [21:05:46]MH_I2C_Read... [21:05:46]Read from MH i2c: 01 07 00 13 1A 00 00 00 00 00 FF 0F 42 [21:05:46]RasterBufferAndPrint [21:05:46]line Счет N : (1)2885306 [21:05:46]line ИНН: 02508201610067 [21:05:46]line Контрольно-Кассовый Чек [21:05:46]line ПРОДАЖА [21:05:46]line ТРК (МРК, ГНК) : 71 [21:05:46]line Товар: 2711129700 [21:05:46]line ГАЗ-К-3 [21:05:46]line 53.920 * 38.90 [21:05:46]line = 2097.49 [21:05:46]line НДС 12% НСП 1% [21:05:46]line > о реализуемом товаре [21:05:46]line ОКРУГЛЕНИЕ: -0.49 [21:05:46]line ИТОГО: 2097.00 [21:05:46]line Внесено: 3000.00 [21:05:46]line СДАЧА: 903.00 [21:05:46]line НСП 1% : 18.56 [21:05:46]line НДС 12% : 222.74 [21:05:46]line Наличными: 2097.00 [21:05:46]line Безнал.: 0.00 [21:05:46]line Место: АЗС № 85 "Партнер Нефть" [21:05:46]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:05:46]line СНО: Общий режим [21:05:46]line Чек 412 20.10.2024 21:05 [21:05:46]line Смена: 193 ФФД: 1.0 [21:05:46]line ЗНМ: 0300000167 [21:05:46]line РНМ: 0000000000156251 [21:05:46]line Версия ККМ: v1.0 [21:05:46]line ФМ: 0000000000963346 [21:05:46]line ФД: 69567 [21:05:46]line ФПД: 226840983231671 [21:05:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T210546&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69567&fm=226840983231671&tin=02508201610067®Number=0000000000156251&sum=209700 [21:05:47]OFD Sender: Processing packet 69567 [packets to send 18, broken 17] [21:05:47]ProducePacketName [21:05:47]name=ofd_packets/00069567 [21:05:47]OFD Sender: To server: pG, [21:05:47]CommunicateWithHost lk.salyk.kg:30040 [21:05:47]ConnectInit lk.salyk.kg [21:05:47]written 0, free lines is 4095 [21:05:47]Connected sock=10 [21:05:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 5C 63 06 01 42 55 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 A0 D2 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 55 33 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 33 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 57 00 00 00 00 07 04 06 00 24 33 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 01 00 00 F4 03 04 00 AA 70 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BF 0F 01 00 35 04 06 00 CE 4F 88 39 DC B7 81 A8 57 E9 D7 F2 C2 E5 [21:05:47]Write to MH i2c: 01 00 00 3E 1A 58 [21:05:47]Write i2c OK [21:05:47]MH_I2C_Read... [21:05:47]Read from MH i2c: 01 [21:05:47]MH_I2C_Read... [21:05:47]Read from MH i2c: 01 07 00 [21:05:47]MH_I2C_Read... [21:05:47]Read from MH i2c: 01 07 00 3E 1A 00 00 00 00 00 00 0D 6C [21:05:47]RasterBufferAndPrint [21:05:47]line [21:05:47]line [21:05:47]line [21:05:47]line [21:05:47]line [21:05:47]written 0, free lines is 3334 [21:05:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 0A 8F 47 00 13 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 BF 0F 01 00 F4 03 04 00 50 1A 15 67 B6 04 01 00 00 57 9F F1 11 81 BA F5 E8 [21:05:47]CommunicateWithHost err = 0 [21:05:47]CheckOFDResponse [21:05:47]1017 (14) - 77093643461234 [21:05:47]1041 (16) - 0000000000963346 [21:05:47]1040 (4) - 69567 [21:05:47]1012 (4) - 20.10.2024 14:57 [21:05:47]1206 (1) - 0 [21:05:47]OFD Sender: Remove packet 69567 [21:05:47]ProducePacketName [21:05:47]name=ofd_packets/00069567 [21:05:47]NVStorageDeleteData [21:05:47]MH_Cut [21:05:47]Write to MH i2c: D1 01 00 45 1A 01 31 [21:05:47]Write i2c OK [21:05:47]MH_I2C_Read... [21:05:47]Read from MH i2c: D1 [21:05:47]MH_I2C_Read... [21:05:47]Read from MH i2c: D1 01 00 [21:05:47]MH_I2C_Read... [21:05:47]Read from MH i2c: D1 01 00 45 1A 00 30 [21:05:47]Write to MH i2c: 01 00 00 46 1A 60 [21:05:47]Write i2c OK [21:05:47]MH_I2C_Read... [21:05:48]OFD Sender: No OFD packet to send [21:05:48]*** Cut start [21:05:48]*** Partial cut [21:05:48]*** CUTSNS_PIN = 1 [21:05:48]*** CUTSNS_PIN = 0 [21:05:48]*** Brake cut motor [21:05:48]Read from MH i2c: 01 [21:05:48]MH_I2C_Read... [21:05:48]*** Stop cut motor [21:05:48]*** Cut end [21:05:48]Read from MH i2c: 01 07 00 [21:05:48]MH_I2C_Read... [21:05:48]Read from MH i2c: 01 07 00 46 1A 00 00 00 00 00 FF 0F 75 [21:05:48]process_action close_receipt done [21:05:48]requested_data is exist [21:05:48]produce_requested_data [21:05:48]requested_item fm.sn is exist - process it [21:05:48]wFMCommunicate request_size=4 [21:05:48]MH_SAM_APDU [21:05:48]CAPDU: 80 11 00 00 [21:05:48]Write to MH i2c: E2 08 00 47 1A 80 11 00 00 00 00 00 00 DB [21:05:49]Write i2c OK [21:05:49]MH_I2C_Read... [21:05:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:49]Read from MH i2c: E2 [21:05:49]MH_I2C_Read... [21:05:49]Read from MH i2c: E2 17 00 [21:05:49]MH_I2C_Read... [21:05:49]Read from MH i2c: E2 17 00 47 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2D [21:05:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:05:49]wFMCommunicate OK [21:05:49]requested_item fd.num is exist - process it [21:05:49]SAM_PROTO_GetFieldsCounters [21:05:49]wFMCommunicate request_size=4 [21:05:49]MH_SAM_APDU [21:05:49]CAPDU: 80 13 00 00 [21:05:49]Write to MH i2c: E2 08 00 48 1A 80 13 00 00 00 00 00 00 DE [21:05:49]Write i2c OK [21:05:49]MH_I2C_Read... [21:05:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:05:49]Read from MH i2c: E2 [21:05:49]MH_I2C_Read... [21:05:49]Read from MH i2c: E2 62 00 [21:05:49]MH_I2C_Read... [21:05:49]Read from MH i2c: E2 62 00 48 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BF 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 9C 01 00 00 5E 04 04 00 9C 01 00 00 57 04 04 00 9D 01 00 00 19 04 04 00 00 00 00 00 90 00 60 [21:05:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 BF 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 9C 01 00 00 5E 04 04 00 9C 01 00 00 57 04 04 00 9D 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:05:49]wFMCommunicate OK [21:05:49]SAM_PROTO_GetFieldsCounters done [21:05:49]requested_item shift.num is exist - process it [21:05:49]requested_item shift.opened is exist - process it [21:05:49]req_shift_opened [21:05:49]FM_GetShiftState [21:05:49]SAM_PROTO_GetShiftState [21:05:49]wFMCommunicate request_size=4 [21:05:49]MH_SAM_APDU [21:05:49]CAPDU: 80 13 01 00 [21:05:49]Write to MH i2c: E2 08 00 49 1A 80 13 01 00 00 00 00 00 E0 [21:05:49]Write i2c OK [21:05:49]MH_I2C_Read... [21:05:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:49]Read from MH i2c: E2 [21:05:49]MH_I2C_Read... [21:05:49]Read from MH i2c: E2 0E 00 [21:05:49]MH_I2C_Read... [21:05:49]Read from MH i2c: E2 0E 00 49 1A 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 E6 [21:05:49]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [21:05:49]wFMCommunicate OK [21:05:49]SAM_PROTO_GetShiftState done [21:05:49]FM_GetShiftState done [21:05:49]req_shift_opened done [21:05:49]requested_item shift.open_date is exist - process it [21:05:49]req_shift_open_date [21:05:49]req_shift_open_date done [21:05:49]produce_requested_data done [21:05:49]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69567,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [21:05:49]process_action_free close_receipt [21:05:49]json_value_free [21:05:49]json_value_free done [21:05:49]process_json_proto returns [21:05:49]Send response to host [21:05:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69567,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [21:05:49]free response buf [21:05:49]execute_script done [21:05:49]execute_script returns [21:05:49]free content buf [21:05:49]Sock 7.Close socket [21:05:49]Sock 7.Thread stoped [21:05:51]accept exits with 9 [21:05:51]New connection [21:05:51]New thread 3066654052 created [21:05:51]Thread 3066797412 joined [21:05:51]Waiting for new connection... [21:05:51] Sock 9.Parse request [21:05:51]Sock 9.Check first char [21:05:51]Sock 9.First char is OK [21:05:51]request: POST /json_proto HTTP/1.0 [21:05:51]Method: POST [21:05:51]URL: /json_proto [21:05:51]Method is POST - this is cgi request [21:05:51]url: /json_proto [21:05:51]query_string will be loaded in cgi processing [21:05:51]execute_cgi json_proto POST (null) [21:05:51]execute_cgi path=json_proto method=POST [21:05:51]POST find Content-Length [21:05:51]Host: 172.17.50.3:8080 [21:05:51]Content-Length: 678 [21:05:51]Content-Type: application/json [21:05:51] [21:05:51]POST finish read [21:05:51]Found Content-Length = 678 [21:05:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:51]execute_script... [21:05: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)2885307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:51]POST & json_proto [21:05:51]process_json_proto [21:05:51]json parsed OK: [21:05:51]protocol is kg_v1.0 [21:05:51]action value=close_receipt [21:05:51]process_action close_receipt [21:05:51]cmd_close_receipt [21:05:51]MH_GetDate [21:05:51]Write to MH i2c: F0 00 00 4A 1A 53 [21:05:51]Write i2c OK [21:05:51]MH_I2C_Read... [21:05:51]Read from MH i2c: F0 [21:05:51]MH_I2C_Read... [21:05:51]Read from MH i2c: F0 09 00 [21:05:51]MH_I2C_Read... [21:05:51]Read from MH i2c: F0 09 00 4A 1A 00 B0 70 15 67 6B 98 1E 66 7F [21:05:51]GetLastDocTimeStamp 1729458346 [21:05:51]current date 1729458352 [21:05:51]FM_GetShiftState [21:05:51]SAM_PROTO_GetShiftState [21:05:51]wFMCommunicate request_size=4 [21:05:51]MH_SAM_APDU [21:05:51]CAPDU: 80 13 01 00 [21:05:51]Write to MH i2c: E2 08 00 4B 1A 80 13 01 00 00 00 00 00 E2 [21:05:51]Write i2c OK [21:05:51]MH_I2C_Read... [21:05:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:51]Read from MH i2c: E2 [21:05:51]MH_I2C_Read... [21:05:51]Read from MH i2c: E2 0E 00 [21:05:51]MH_I2C_Read... [21:05:51]Read from MH i2c: E2 0E 00 4B 1A 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 E8 [21:05:51]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [21:05:51]wFMCommunicate OK [21:05:51]SAM_PROTO_GetShiftState done [21:05:51]FM_GetShiftState done [21:05:51]opened in 1729383220 [21:05:51]opened+sec_in_day 1729469620 [21:05:51]quantity*price = 50041 [21:05:51]sum+1 = 50042 [21:05:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 413 20.10.2024 21:05 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69568 ФПД: 270726783564525 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T210552&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69568&fm=270726783564525&tin=02508201610067®Number=0000000000156251&sum=50000 [21:05:52]StoreToDocumentArchive [21:05:52]shift 193 fd 69568 [21:05:52]save to /storage/0193/doc_00069568 [21:05:52]save last doc name /storage/0193/doc_00069568 to /storage/kkm_last_doc_name [21:05:52]save OK [21:05:52]Clear old archive folders... [21:05:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:05:52]tlvbuf is B6E827D0 [21:05:52]SAM_PROTO_ClearQueue [21:05:52]wFMCommunicate request_size=4 [21:05:52]MH_SAM_APDU [21:05:52]CAPDU: 80 09 00 00 [21:05:52]Write to MH i2c: E2 08 00 58 1A 80 09 00 00 00 00 00 00 E4 [21:05:52]Write i2c OK [21:05:52]MH_I2C_Read... [21:05:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:05:52]Read from MH i2c: E2 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: E2 03 00 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: E2 03 00 58 1A 00 90 00 E6 [21:05:52]RAPDU: 90 00 [21:05:52]wFMCommunicate OK [21:05:52]SAM_PROTO_ClearQueue done [21:05:52]KKMCreateOFDPacket [21:05:52]OFDProtocolAddRootSTLVToBuf [21:05:52]FM_MakeSignedData [21:05:52]FM_MakeSignedData [21:05:52]SAM_PROTO_SignData [21:05:52]wFMCommunicate request_size=4 [21:05:52]MH_SAM_APDU [21:05:52]CAPDU: 80 0D 01 02 [21:05:52]Write to MH i2c: E2 08 00 59 1A 80 0D 01 02 00 00 00 00 EC [21:05:52]Write i2c OK [21:05:52]MH_I2C_Read... [21:05:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:05:52]Read from MH i2c: E2 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: E2 03 00 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: E2 03 00 59 1A 00 90 00 E7 [21:05:52]RAPDU: 90 00 [21:05:52]wFMCommunicate OK [21:05:52]wFMCommunicate request_size=255 [21:05:52]MH_SAM_APDU [21:05:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 01 00 00 F4 03 04 00 B0 70 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C0 0F 01 00 35 04 06 00 F6 [21:05:52]Write to MH i2c: E2 02 01 5A 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 01 00 00 F4 03 04 00 B0 70 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C0 0F 01 00 35 04 06 00 F6 00 00 36 [21:05:52]Write i2c OK [21:05:52]MH_I2C_Read... [21:05:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:53]Read from MH i2c: E2 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: E2 03 00 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: E2 03 00 5A 1A 00 90 00 E8 [21:05:53]RAPDU: 90 00 [21:05:53]wFMCommunicate OK [21:05:53]wFMCommunicate request_size=10 [21:05:53]MH_SAM_APDU [21:05:53]CAPDU: 80 0D 02 02 05 39 7D C3 FA ED [21:05:53]Write to MH i2c: E2 0D 00 5B 1A 80 0D 02 02 05 00 39 7D C3 FA ED 00 00 59 [21:05:53]Write i2c OK [21:05:53]MH_I2C_Read... [21:05:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:53]Read from MH i2c: E2 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: E2 03 00 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: E2 03 00 5B 1A 00 90 00 E9 [21:05:53]RAPDU: 90 00 [21:05:53]wFMCommunicate OK [21:05:53]wFMCommunicate request_size=4 [21:05:53]MH_SAM_APDU [21:05:53]CAPDU: 80 0D 03 02 [21:05:53]Write to MH i2c: E2 08 00 5C 1A 80 0D 03 02 00 00 00 00 F1 [21:05:53]Write i2c OK [21:05:53]MH_I2C_Read... [21:05:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:05:53]Read from MH i2c: E2 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: E2 0B 00 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: E2 0B 00 5C 1A 00 C0 FF 4C 7B B7 5A 6D 63 90 00 59 [21:05:53]RAPDU: C0 FF 4C 7B B7 5A 6D 63 90 00 [21:05:53]wFMCommunicate OK [21:05:53]SAM_PROTO_SignData done [21:05:53]FM_MakeSignedData done [21:05:53]CreateOFDProtocolMessage [21:05:53]wFMCommunicate request_size=4 [21:05:53]MH_SAM_APDU [21:05:53]CAPDU: 80 11 00 00 [21:05:53]Write to MH i2c: E2 08 00 5D 1A 80 11 00 00 00 00 00 00 F1 [21:05:53]Write i2c OK [21:05:53]MH_I2C_Read... [21:05:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:53]OFD Sender: No OFD packet to send [21:05:53]Read from MH i2c: E2 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: E2 17 00 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: E2 17 00 5D 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 43 [21:05:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:05:53]wFMCommunicate OK [21:05:53]CreateOFDProtocolMessage done [21:05:53]OFDSenderStorePacket 69568 [21:05:53]StoreOFDPacket docnum=69568 [21:05:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F9 10 07 01 FC 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 01 00 00 F4 03 04 00 B0 70 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C0 0F 01 00 35 04 06 00 F6 39 7D C3 FA ED C0 FF 4C 7B B7 5A 6D 63 [21:05:53]CheckFolder [21:05:53]dirname=/storage/ofd_packets [21:05:53]CheckFolder done [21:05:53]ProducePacketName [21:05:53]name=ofd_packets/00069568 [21:05:53]NVStorageSaveData ofd_packets/00069568 [21:05:53]File name is /storage/ofd_packets/00069568 [21:05:53]Write 301 bytes [21:05:53]NVStorageSaveData done [21:05:53]OFDSenderStorePacket done [21:05:53]KKMCreateOFDPacket done [21:05:53]NVStorageSaveData kkm_last_timestamp [21:05:53]File name is /storage/kkm_last_timestamp [21:05:53]Write 4 bytes [21:05:53]NVStorageSaveData done [21:05:53]ExternCall_PrintAddStr [21:05:53]wPrintStart [21:05:53]Write to MH i2c: 01 00 00 5E 1A 78 [21:05:53]Write i2c OK [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: 01 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: 01 07 00 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: 01 07 00 5E 1A 00 00 00 00 00 FF 0F 8D [21:05:53]RasterBufferAndPrint [21:05:53]line Счет N : (1)2885307 [21:05:53]line ИНН: 02508201610067 [21:05:53]line Контрольно-Кассовый Чек [21:05:53]line ПРОДАЖА [21:05:53]line ТРК (МРК, ГНК) : 42 [21:05:53]line Товар: 2710124130 [21:05:53]line Аи-92-К-5 [21:05:53]line 7.480 * 66.90 [21:05:53]line = 500.41 [21:05:53]line НДС 12% НСП 1% [21:05:53]line > о реализуемом товаре [21:05:53]line ОКРУГЛЕНИЕ: -0.41 [21:05:53]line ИТОГО: 500.00 [21:05:53]line Внесено: 500.00 [21:05:53]line СДАЧА: 0.00 [21:05:53]line НСП 1% : 4.43 [21:05:53]line НДС 12% : 53.14 [21:05:53]line Наличными: 500.00 [21:05:53]line Безнал.: 0.00 [21:05:53]line Место: АЗС № 85 "Партнер Нефть" [21:05:53]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:05:53]line СНО: Общий режим [21:05:53]line Чек 413 20.10.2024 21:05 [21:05:53]line Смена: 193 ФФД: 1.0 [21:05:53]line ЗНМ: 0300000167 [21:05:53]line РНМ: 0000000000156251 [21:05:53]line Версия ККМ: v1.0 [21:05:53]line ФМ: 0000000000963346 [21:05:53]line ФД: 69568 [21:05:53]line ФПД: 270726783564525 [21:05:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T210552&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69568&fm=270726783564525&tin=02508201610067®Number=0000000000156251&sum=50000 [21:05:53]written 0, free lines is 4095 [21:05:53]OFD Sender: Processing packet 69568 [packets to send 18, broken 17] [21:05:53]ProducePacketName [21:05:53]name=ofd_packets/00069568 [21:05:53]OFD Sender: To server: pG, [21:05:53]CommunicateWithHost lk.salyk.kg:30040 [21:05:53]ConnectInit lk.salyk.kg [21:05:53]Connected sock=10 [21:05:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F9 10 07 01 FC 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 01 00 00 F4 03 04 00 B0 70 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C0 0F 01 00 35 04 06 00 F6 39 7D C3 FA ED C0 FF 4C 7B B7 5A 6D 63 [21:05:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 7E 01 47 00 0C 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C0 0F 01 00 F4 03 04 00 56 1A 15 67 B6 04 01 00 00 4F EB 99 2F 6F 8A 0A F6 [21:05:53]CommunicateWithHost err = 0 [21:05:53]CheckOFDResponse [21:05:53]1017 (14) - 77093643461234 [21:05:53]1041 (16) - 0000000000963346 [21:05:53]1040 (4) - 69568 [21:05:53]1012 (4) - 20.10.2024 14:57 [21:05:53]1206 (1) - 0 [21:05:53]OFD Sender: Remove packet 69568 [21:05:53]ProducePacketName [21:05:53]name=ofd_packets/00069568 [21:05:53]NVStorageDeleteData [21:05:53]Write to MH i2c: 01 00 00 89 1A A3 [21:05:53]Write i2c OK [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: 01 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: 01 07 00 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: 01 07 00 89 1A 00 00 00 00 00 FE 0C B4 [21:05:53]RasterBufferAndPrint [21:05:53]line [21:05:53]line [21:05:53]line [21:05:53]line [21:05:53]line [21:05:53]written 0, free lines is 3341 [21:05:53]MH_Cut [21:05:53]Write to MH i2c: D1 01 00 90 1A 01 7C [21:05:53]Write i2c OK [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: D1 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: D1 01 00 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: D1 01 00 90 1A 00 7B [21:05:53]Write to MH i2c: 01 00 00 91 1A AB [21:05:53]Write i2c OK [21:05:53]MH_I2C_Read... [21:05:54]OFD Sender: No OFD packet to send [21:05:54]*** Cut start [21:05:54]*** Partial cut [21:05:54]*** CUTSNS_PIN = 1 [21:05:54]*** CUTSNS_PIN = 0 [21:05:54]*** Brake cut motor [21:05:55]Read from MH i2c: 01 [21:05:55]MH_I2C_Read... [21:05:55]*** Stop cut motor [21:05:55]*** Cut end [21:05:55]Read from MH i2c: 01 07 00 [21:05:55]MH_I2C_Read... [21:05:55]Read from MH i2c: 01 07 00 91 1A 00 00 00 00 00 FF 0F C0 [21:05:55]process_action close_receipt done [21:05:55]requested_data is exist [21:05:55]produce_requested_data [21:05:55]requested_item fm.sn is exist - process it [21:05:55]wFMCommunicate request_size=4 [21:05:55]MH_SAM_APDU [21:05:55]CAPDU: 80 11 00 00 [21:05:55]Write to MH i2c: E2 08 00 92 1A 80 11 00 00 00 00 00 00 26 [21:05:55]Write i2c OK [21:05:55]MH_I2C_Read... [21:05:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:55]Read from MH i2c: E2 [21:05:55]MH_I2C_Read... [21:05:55]Read from MH i2c: E2 17 00 [21:05:55]MH_I2C_Read... [21:05:55]Read from MH i2c: E2 17 00 92 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 78 [21:05:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:05:55]wFMCommunicate OK [21:05:55]requested_item fd.num is exist - process it [21:05:55]SAM_PROTO_GetFieldsCounters [21:05:55]wFMCommunicate request_size=4 [21:05:55]MH_SAM_APDU [21:05:55]CAPDU: 80 13 00 00 [21:05:55]Write to MH i2c: E2 08 00 93 1A 80 13 00 00 00 00 00 00 29 [21:05:55]Write i2c OK [21:05:55]MH_I2C_Read... [21:05:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:05:55]Read from MH i2c: E2 [21:05:55]MH_I2C_Read... [21:05:55]Read from MH i2c: E2 62 00 [21:05:55]MH_I2C_Read... [21:05:55]Read from MH i2c: E2 62 00 93 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C0 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 9D 01 00 00 5E 04 04 00 9D 01 00 00 57 04 04 00 9E 01 00 00 19 04 04 00 00 00 00 00 90 00 AF [21:05:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C0 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 9D 01 00 00 5E 04 04 00 9D 01 00 00 57 04 04 00 9E 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:05:55]wFMCommunicate OK [21:05:55]SAM_PROTO_GetFieldsCounters done [21:05:55]requested_item shift.num is exist - process it [21:05:55]requested_item shift.opened is exist - process it [21:05:55]req_shift_opened [21:05:55]FM_GetShiftState [21:05:55]SAM_PROTO_GetShiftState [21:05:55]wFMCommunicate request_size=4 [21:05:55]MH_SAM_APDU [21:05:55]CAPDU: 80 13 01 00 [21:05:55]Write to MH i2c: E2 08 00 94 1A 80 13 01 00 00 00 00 00 2B [21:05:55]Write i2c OK [21:05:55]MH_I2C_Read... [21:05:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:55]Read from MH i2c: E2 [21:05:55]MH_I2C_Read... [21:05:55]Read from MH i2c: E2 0E 00 [21:05:55]MH_I2C_Read... [21:05:55]Read from MH i2c: E2 0E 00 94 1A 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 31 [21:05:55]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [21:05:55]wFMCommunicate OK [21:05:55]SAM_PROTO_GetShiftState done [21:05:55]FM_GetShiftState done [21:05:55]req_shift_opened done [21:05:55]requested_item shift.open_date is exist - process it [21:05:55]req_shift_open_date [21:05:55]req_shift_open_date done [21:05:55]produce_requested_data done [21:05:55]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69568,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [21:05:55]process_action_free close_receipt [21:05:55]json_value_free [21:05:55]json_value_free done [21:05:55]process_json_proto returns [21:05:55]Send response to host [21:05:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69568,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [21:05:55]free response buf [21:05:55]execute_script done [21:05:55]execute_script returns [21:05:55]free content buf [21:05:55]Sock 9.Close socket [21:05:55]Sock 9.Thread stoped [21:05:59]OFD Sender: No OFD packet to send [21:06:04]OFD Sender: No OFD packet to send [21:06:09]OFD Sender: No OFD packet to send [21:06:14]OFD Sender: No OFD packet to send [21:06:19]OFD Sender: No OFD packet to send [21:06:24]OFD Sender: No OFD packet to send [21:06:29]OFD Sender: No OFD packet to send [21:06:34]OFD Sender: No OFD packet to send [21:06:39]OFD Sender: No OFD packet to send [21:06:44]OFD Sender: No OFD packet to send [21:06:49]OFD Sender: No OFD packet to send [21:06:54]OFD Sender: No OFD packet to send [21:06:59]OFD Sender: No OFD packet to send [21:07:04]OFD Sender: No OFD packet to send [21:07:09]OFD Sender: No OFD packet to send [21:07:14]OFD Sender: No OFD packet to send [21:07:19]OFD Sender: No OFD packet to send [21:07:24]OFD Sender: No OFD packet to send [21:07:29]OFD Sender: No OFD packet to send [21:07:34]OFD Sender: No OFD packet to send [21:07:39]OFD Sender: No OFD packet to send [21:07:44]OFD Sender: No OFD packet to send [21:07:49]OFD Sender: No OFD packet to send [21:07:54]OFD Sender: No OFD packet to send [21:07:59]OFD Sender: No OFD packet to send [21:08:04]OFD Sender: No OFD packet to send [21:08:09]OFD Sender: No OFD packet to send [21:08:14]OFD Sender: No OFD packet to send [21:08:19]OFD Sender: No OFD packet to send [21:08:24]OFD Sender: No OFD packet to send [21:08:29]OFD Sender: No OFD packet to send [21:08:34]OFD Sender: No OFD packet to send [21:08:39]OFD Sender: No OFD packet to send [21:08:44]OFD Sender: No OFD packet to send [21:08:49]OFD Sender: No OFD packet to send [21:08:54]OFD Sender: No OFD packet to send [21:08:59]OFD Sender: No OFD packet to send [21:09:04]OFD Sender: No OFD packet to send [21:09:09]OFD Sender: No OFD packet to send [21:09:12]accept exits with 7 [21:09:12]New connection [21:09:12]New thread 3066797412 created [21:09:12]Thread 3066654052 joined [21:09:12]Waiting for new connection... [21:09:12] Sock 7.Parse request [21:09:12]Sock 7.Check first char [21:09:12]Sock 7.First char is OK [21:09:12]request: POST /json_proto HTTP/1.0 [21:09:12]Method: POST [21:09:12]URL: /json_proto [21:09:12]Method is POST - this is cgi request [21:09:12]url: /json_proto [21:09:12]query_string will be loaded in cgi processing [21:09:12]execute_cgi json_proto POST (null) [21:09:12]execute_cgi path=json_proto method=POST [21:09:12]POST find Content-Length [21:09:12]Host: 172.17.50.3:8080 [21:09:12]Content-Length: 682 [21:09:12]Content-Type: application/json [21:09:12] [21:09:12]POST finish read [21:09:12]Found Content-Length = 682 [21:09:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:09:12]execute_script... [21:09: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)2885308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:09:12]POST & json_proto [21:09:12]process_json_proto [21:09:12]json parsed OK: [21:09:12]protocol is kg_v1.0 [21:09:12]action value=close_receipt [21:09:12]process_action close_receipt [21:09:12]cmd_close_receipt [21:09:12]MH_GetDate [21:09:12]Write to MH i2c: F0 00 00 95 1A 9E [21:09:12]Write i2c OK [21:09:12]MH_I2C_Read... [21:09:12]Read from MH i2c: F0 [21:09:12]MH_I2C_Read... [21:09:12]Read from MH i2c: F0 09 00 [21:09:12]MH_I2C_Read... [21:09:12]Read from MH i2c: F0 09 00 95 1A 00 79 71 15 67 6B 98 1E 66 94 [21:09:12]GetLastDocTimeStamp 1729458352 [21:09:12]current date 1729458553 [21:09:12]FM_GetShiftState [21:09:12]SAM_PROTO_GetShiftState [21:09:12]wFMCommunicate request_size=4 [21:09:12]MH_SAM_APDU [21:09:12]CAPDU: 80 13 01 00 [21:09:12]Write to MH i2c: E2 08 00 96 1A 80 13 01 00 00 00 00 00 2D [21:09:12]Write i2c OK [21:09:12]MH_I2C_Read... [21:09:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:12]Read from MH i2c: E2 [21:09:12]MH_I2C_Read... [21:09:12]Read from MH i2c: E2 0E 00 [21:09:12]MH_I2C_Read... [21:09:12]Read from MH i2c: E2 0E 00 96 1A 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 33 [21:09:12]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [21:09:12]wFMCommunicate OK [21:09:12]SAM_PROTO_GetShiftState done [21:09:12]FM_GetShiftState done [21:09:12]opened in 1729383220 [21:09:12]opened+sec_in_day 1729469620 [21:09:12]quantity*price = 50025 [21:09:12]sum+1 = 50026 [21:09:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 414 20.10.2024 21:09 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69569 ФПД: 106957780601052 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T210913&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69569&fm=106957780601052&tin=02508201610067®Number=0000000000156251&sum=50000 [21:09:13]StoreToDocumentArchive [21:09:13]shift 193 fd 69569 [21:09:13]save to /storage/0193/doc_00069569 [21:09:13]save last doc name /storage/0193/doc_00069569 to /storage/kkm_last_doc_name [21:09:13]save OK [21:09:13]Clear old archive folders... [21:09:13]ProcessDocumentItem done err = 0, tmpTLVsize=250 [21:09:13]tlvbuf is 00F41A40 [21:09:13]SAM_PROTO_ClearQueue [21:09:13]wFMCommunicate request_size=4 [21:09:13]MH_SAM_APDU [21:09:13]CAPDU: 80 09 00 00 [21:09:13]Write to MH i2c: E2 08 00 A3 1A 80 09 00 00 00 00 00 00 2F [21:09:13]Write i2c OK [21:09:13]MH_I2C_Read... [21:09:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:09:13]Read from MH i2c: E2 [21:09:13]MH_I2C_Read... [21:09:13]Read from MH i2c: E2 03 00 [21:09:13]MH_I2C_Read... [21:09:13]Read from MH i2c: E2 03 00 A3 1A 00 90 00 31 [21:09:13]RAPDU: 90 00 [21:09:13]wFMCommunicate OK [21:09:13]SAM_PROTO_ClearQueue done [21:09:13]KKMCreateOFDPacket [21:09:13]OFDProtocolAddRootSTLVToBuf [21:09:13]FM_MakeSignedData [21:09:13]FM_MakeSignedData [21:09:13]SAM_PROTO_SignData [21:09:13]wFMCommunicate request_size=4 [21:09:13]MH_SAM_APDU [21:09:13]CAPDU: 80 0D 01 02 [21:09:13]Write to MH i2c: E2 08 00 A4 1A 80 0D 01 02 00 00 00 00 37 [21:09:13]Write i2c OK [21:09:13]MH_I2C_Read... [21:09:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:09:13]Read from MH i2c: E2 [21:09:13]MH_I2C_Read... [21:09:13]Read from MH i2c: E2 03 00 [21:09:13]MH_I2C_Read... [21:09:13]Read from MH i2c: E2 03 00 A4 1A 00 90 00 32 [21:09:13]RAPDU: 90 00 [21:09:13]wFMCommunicate OK [21:09:13]wFMCommunicate request_size=255 [21:09:13]MH_SAM_APDU [21:09:13]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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 01 00 00 F4 03 04 00 79 71 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C1 0F 01 00 35 04 06 00 61 47 [21:09:13]Write to MH i2c: E2 02 01 A5 1A 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 01 00 00 F4 03 04 00 79 71 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C1 0F 01 00 35 04 06 00 61 47 00 00 B9 [21:09:13]Write i2c OK [21:09:13]MH_I2C_Read... [21:09:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:13]Read from MH i2c: E2 [21:09:13]MH_I2C_Read... [21:09:13]Read from MH i2c: E2 03 00 [21:09:13]MH_I2C_Read... [21:09:13]Read from MH i2c: E2 03 00 A5 1A 00 90 00 33 [21:09:13]RAPDU: 90 00 [21:09:13]wFMCommunicate OK [21:09:13]wFMCommunicate request_size=9 [21:09:13]MH_SAM_APDU [21:09:13]CAPDU: 80 0D 02 02 04 0C 84 C8 DC [21:09:13]Write to MH i2c: E2 0C 00 A6 1A 80 0D 02 02 04 00 0C 84 C8 DC 00 00 76 [21:09:13]Write i2c OK [21:09:13]MH_I2C_Read... [21:09:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:13]Read from MH i2c: E2 [21:09:13]MH_I2C_Read... [21:09:13]Read from MH i2c: E2 03 00 [21:09:13]MH_I2C_Read... [21:09:13]Read from MH i2c: E2 03 00 A6 1A 00 90 00 34 [21:09:13]RAPDU: 90 00 [21:09:13]wFMCommunicate OK [21:09:13]wFMCommunicate request_size=4 [21:09:13]MH_SAM_APDU [21:09:13]CAPDU: 80 0D 03 02 [21:09:13]Write to MH i2c: E2 08 00 A7 1A 80 0D 03 02 00 00 00 00 3C [21:09:13]Write i2c OK [21:09:13]MH_I2C_Read... [21:09:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:09:14]Read from MH i2c: E2 [21:09:14]MH_I2C_Read... [21:09:14]Read from MH i2c: E2 0B 00 [21:09:14]MH_I2C_Read... [21:09:14]Read from MH i2c: E2 0B 00 A7 1A 00 3A 62 BC BB D3 B3 75 16 90 00 61 [21:09:14]RAPDU: 3A 62 BC BB D3 B3 75 16 90 00 [21:09:14]wFMCommunicate OK [21:09:14]SAM_PROTO_SignData done [21:09:14]FM_MakeSignedData done [21:09:14]CreateOFDProtocolMessage [21:09:14]wFMCommunicate request_size=4 [21:09:14]MH_SAM_APDU [21:09:14]CAPDU: 80 11 00 00 [21:09:14]Write to MH i2c: E2 08 00 A8 1A 80 11 00 00 00 00 00 00 3C [21:09:14]Write i2c OK [21:09:14]MH_I2C_Read... [21:09:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:14]Read from MH i2c: E2 [21:09:14]MH_I2C_Read... [21:09:14]Read from MH i2c: E2 17 00 [21:09:14]MH_I2C_Read... [21:09:14]Read from MH i2c: E2 17 00 A8 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8E [21:09:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:09:14]wFMCommunicate OK [21:09:14]CreateOFDProtocolMessage done [21:09:14]OFDSenderStorePacket 69569 [21:09:14]StoreOFDPacket docnum=69569 [21:09:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 13 6E 06 01 F5 5E 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 01 00 00 F4 03 04 00 79 71 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C1 0F 01 00 35 04 06 00 61 47 0C 84 C8 DC 3A 62 BC BB D3 B3 75 16 [21:09:14]CheckFolder [21:09:14]dirname=/storage/ofd_packets [21:09:14]CheckFolder done [21:09:14]ProducePacketName [21:09:14]name=ofd_packets/00069569 [21:09:14]NVStorageSaveData ofd_packets/00069569 [21:09:14]File name is /storage/ofd_packets/00069569 [21:09:14]Write 300 bytes [21:09:14]NVStorageSaveData done [21:09:14]OFDSenderStorePacket done [21:09:14]KKMCreateOFDPacket done [21:09:14]NVStorageSaveData kkm_last_timestamp [21:09:14]File name is /storage/kkm_last_timestamp [21:09:14]Write 4 bytes [21:09:14]NVStorageSaveData done [21:09:14]ExternCall_PrintAddStr [21:09:14]wPrintStart [21:09:14]Write to MH i2c: 01 00 00 A9 1A C3 [21:09:14]Write i2c OK [21:09:14]MH_I2C_Read... [21:09:14]Read from MH i2c: 01 [21:09:14]MH_I2C_Read... [21:09:14]Read from MH i2c: 01 07 00 [21:09:14]MH_I2C_Read... [21:09:14]Read from MH i2c: 01 07 00 A9 1A 00 00 00 00 00 FF 0F D8 [21:09:14]RasterBufferAndPrint [21:09:14]line Счет N : (1)2885308 [21:09:14]line ИНН: 02508201610067 [21:09:14]line Контрольно-Кассовый Чек [21:09:14]line ПРОДАЖА [21:09:14]line ТРК (МРК, ГНК) : 71 [21:09:14]line Товар: 2711129700 [21:09:14]line ГАЗ-К-3 [21:09:14]line 12.860 * 38.90 [21:09:14]line = 500.25 [21:09:14]line НДС 12% НСП 1% [21:09:14]line > о реализуемом товаре [21:09:14]line ОКРУГЛЕНИЕ: -0.25 [21:09:14]line ИТОГО: 500.00 [21:09:14]line Внесено: 500.00 [21:09:14]line СДАЧА: 0.00 [21:09:14]line НСП 1% : 4.43 [21:09:14]line НДС 12% : 53.12 [21:09:14]line Наличными: 500.00 [21:09:14]line Безнал.: 0.00 [21:09:14]line Место: АЗС № 85 "Партнер Нефть" [21:09:14]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:09:14]line СНО: Общий режим [21:09:14]line Чек 414 20.10.2024 21:09 [21:09:14]line Смена: 193 ФФД: 1.0 [21:09:14]line ЗНМ: 0300000167 [21:09:14]line РНМ: 0000000000156251 [21:09:14]line Версия ККМ: v1.0 [21:09:14]line ФМ: 0000000000963346 [21:09:14]line ФД: 69569 [21:09:14]line ФПД: 106957780601052 [21:09:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T210913&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69569&fm=106957780601052&tin=02508201610067®Number=0000000000156251&sum=50000 [21:09:14]OFD Sender: Processing packet 69569 [packets to send 18, broken 17] [21:09:14]ProducePacketName [21:09:14]name=ofd_packets/00069569 [21:09:14]OFD Sender: To server: pG, [21:09:14]CommunicateWithHost lk.salyk.kg:30040 [21:09:14]ConnectInit lk.salyk.kg [21:09:14]written 0, free lines is 4095 [21:09:14]Connected sock=10 [21:09:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 13 6E 06 01 F5 5E 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 01 00 00 F4 03 04 00 79 71 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C1 0F 01 00 35 04 06 00 61 47 0C 84 C8 DC 3A 62 BC BB D3 B3 75 16 [21:09:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 B1 2C 47 00 04 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C1 0F 01 00 F4 03 04 00 1F 1B 15 67 B6 04 01 00 00 9F 50 10 3D 26 E8 76 06 [21:09:14]CommunicateWithHost err = 0 [21:09:14]CheckOFDResponse [21:09:14]1017 (14) - 77093643461234 [21:09:14]1041 (16) - 0000000000963346 [21:09:14]1040 (4) - 69569 [21:09:14]1012 (4) - 20.10.2024 15:00 [21:09:14]1206 (1) - 0 [21:09:14]OFD Sender: Remove packet 69569 [21:09:14]ProducePacketName [21:09:14]name=ofd_packets/00069569 [21:09:14]NVStorageDeleteData [21:09:14]Write to MH i2c: 01 00 00 D4 1A EE [21:09:14]Write i2c OK [21:09:14]MH_I2C_Read... [21:09:14]Read from MH i2c: 01 [21:09:14]MH_I2C_Read... [21:09:14]Read from MH i2c: 01 07 00 [21:09:14]MH_I2C_Read... [21:09:14]Read from MH i2c: 01 07 00 D4 1A 00 00 00 00 00 F3 0C F4 [21:09:14]RasterBufferAndPrint [21:09:14]line [21:09:14]line [21:09:14]line [21:09:14]line [21:09:14]line [21:09:14]written 0, free lines is 3324 [21:09:14]MH_Cut [21:09:14]Write to MH i2c: D1 01 00 DB 1A 01 C7 [21:09:14]Write i2c OK [21:09:14]MH_I2C_Read... [21:09:14]Read from MH i2c: D1 [21:09:14]MH_I2C_Read... [21:09:14]Read from MH i2c: D1 01 00 [21:09:14]MH_I2C_Read... [21:09:14]Read from MH i2c: D1 01 00 DB 1A 00 C6 [21:09:14]Write to MH i2c: 01 00 00 DC 1A F6 [21:09:14]Write i2c OK [21:09:14]MH_I2C_Read... [21:09:15]OFD Sender: No OFD packet to send [21:09:15]*** Cut start [21:09:15]*** Partial cut [21:09:15]*** CUTSNS_PIN = 1 [21:09:15]*** CUTSNS_PIN = 0 [21:09:15]*** Brake cut motor [21:09:16]Read from MH i2c: 01 [21:09:16]MH_I2C_Read... [21:09:16]*** Stop cut motor [21:09:16]*** Cut end [21:09:16]Read from MH i2c: 01 07 00 [21:09:16]MH_I2C_Read... [21:09:16]Read from MH i2c: 01 07 00 DC 1A 00 00 00 00 00 FF 0F 0B [21:09:16]process_action close_receipt done [21:09:16]requested_data is exist [21:09:16]produce_requested_data [21:09:16]requested_item fm.sn is exist - process it [21:09:16]wFMCommunicate request_size=4 [21:09:16]MH_SAM_APDU [21:09:16]CAPDU: 80 11 00 00 [21:09:16]Write to MH i2c: E2 08 00 DD 1A 80 11 00 00 00 00 00 00 71 [21:09:16]Write i2c OK [21:09:16]MH_I2C_Read... [21:09:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:16]Read from MH i2c: E2 [21:09:16]MH_I2C_Read... [21:09:16]Read from MH i2c: E2 17 00 [21:09:16]MH_I2C_Read... [21:09:16]Read from MH i2c: E2 17 00 DD 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C3 [21:09:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:09:16]wFMCommunicate OK [21:09:16]requested_item fd.num is exist - process it [21:09:16]SAM_PROTO_GetFieldsCounters [21:09:16]wFMCommunicate request_size=4 [21:09:16]MH_SAM_APDU [21:09:16]CAPDU: 80 13 00 00 [21:09:16]Write to MH i2c: E2 08 00 DE 1A 80 13 00 00 00 00 00 00 74 [21:09:16]Write i2c OK [21:09:16]MH_I2C_Read... [21:09:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:09:16]Read from MH i2c: E2 [21:09:16]MH_I2C_Read... [21:09:16]Read from MH i2c: E2 62 00 [21:09:16]MH_I2C_Read... [21:09:16]Read from MH i2c: E2 62 00 DE 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C1 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 9E 01 00 00 5E 04 04 00 9E 01 00 00 57 04 04 00 9F 01 00 00 19 04 04 00 00 00 00 00 90 00 FE [21:09:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C1 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 9E 01 00 00 5E 04 04 00 9E 01 00 00 57 04 04 00 9F 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:09:16]wFMCommunicate OK [21:09:16]SAM_PROTO_GetFieldsCounters done [21:09:16]requested_item shift.num is exist - process it [21:09:16]requested_item shift.opened is exist - process it [21:09:16]req_shift_opened [21:09:16]FM_GetShiftState [21:09:16]SAM_PROTO_GetShiftState [21:09:16]wFMCommunicate request_size=4 [21:09:16]MH_SAM_APDU [21:09:16]CAPDU: 80 13 01 00 [21:09:16]Write to MH i2c: E2 08 00 DF 1A 80 13 01 00 00 00 00 00 76 [21:09:16]Write i2c OK [21:09:16]MH_I2C_Read... [21:09:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:16]Read from MH i2c: E2 [21:09:16]MH_I2C_Read... [21:09:16]Read from MH i2c: E2 0E 00 [21:09:16]MH_I2C_Read... [21:09:16]Read from MH i2c: E2 0E 00 DF 1A 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 7C [21:09:16]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [21:09:16]wFMCommunicate OK [21:09:16]SAM_PROTO_GetShiftState done [21:09:16]FM_GetShiftState done [21:09:16]req_shift_opened done [21:09:16]requested_item shift.open_date is exist - process it [21:09:16]req_shift_open_date [21:09:16]req_shift_open_date done [21:09:16]produce_requested_data done [21:09:16]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69569,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [21:09:16]process_action_free close_receipt [21:09:16]json_value_free [21:09:16]json_value_free done [21:09:16]process_json_proto returns [21:09:16]Send response to host [21:09:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69569,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [21:09:16]free response buf [21:09:16]execute_script done [21:09:16]execute_script returns [21:09:16]free content buf [21:09:16]Sock 7.Close socket [21:09:16]Sock 7.Thread stoped [21:09:20]OFD Sender: No OFD packet to send [21:09:25]OFD Sender: No OFD packet to send [21:09:30]OFD Sender: No OFD packet to send [21:09:35]OFD Sender: No OFD packet to send [21:09:40]OFD Sender: No OFD packet to send [21:09:45]OFD Sender: No OFD packet to send [21:09:50]OFD Sender: No OFD packet to send [21:09:55]OFD Sender: No OFD packet to send [21:10:00]OFD Sender: No OFD packet to send [21:10:05]OFD Sender: No OFD packet to send [21:10:10]OFD Sender: No OFD packet to send [21:10:15]OFD Sender: No OFD packet to send [21:10:20]OFD Sender: No OFD packet to send [21:10:25]OFD Sender: No OFD packet to send [21:10:30]OFD Sender: No OFD packet to send [21:10:35]OFD Sender: No OFD packet to send [21:10:40]OFD Sender: No OFD packet to send [21:10:45]OFD Sender: No OFD packet to send [21:10:50]OFD Sender: No OFD packet to send [21:10:55]OFD Sender: No OFD packet to send [21:11:00]OFD Sender: No OFD packet to send [21:11:05]OFD Sender: No OFD packet to send [21:11:10]OFD Sender: No OFD packet to send [21:11:15]OFD Sender: No OFD packet to send [21:11:20]OFD Sender: No OFD packet to send [21:11:25]OFD Sender: No OFD packet to send [21:11:30]OFD Sender: No OFD packet to send [21:11:35]OFD Sender: No OFD packet to send [21:11:40]OFD Sender: No OFD packet to send [21:11:45]OFD Sender: No OFD packet to send [21:11:50]OFD Sender: No OFD packet to send [21:11:55]OFD Sender: No OFD packet to send [21:12:00]OFD Sender: No OFD packet to send [21:12:05]OFD Sender: No OFD packet to send [21:12:10]OFD Sender: No OFD packet to send [21:12:15]OFD Sender: No OFD packet to send [21:12:20]accept exits with 9 [21:12:20]New connection [21:12:20]New thread 3066654052 created [21:12:20]Thread 3066797412 joined [21:12:20]Waiting for new connection... [21:12:20] Sock 9.Parse request [21:12:20]Sock 9.Check first char [21:12:20]Sock 9.First char is OK [21:12:20]request: POST /json_proto HTTP/1.0 [21:12:20]Method: POST [21:12:20]URL: /json_proto [21:12:20]Method is POST - this is cgi request [21:12:20]url: /json_proto [21:12:20]query_string will be loaded in cgi processing [21:12:20]execute_cgi json_proto POST (null) [21:12:20]execute_cgi path=json_proto method=POST [21:12:20]POST find Content-Length [21:12:20]Host: 172.17.50.3:8080 [21:12:20]Content-Length: 773 [21:12:20]Content-Type: application/json [21:12:20] [21:12:20]POST finish read [21:12:20]Found Content-Length = 773 [21:12:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885309", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:12:20]execute_script... [21:12: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)2885309", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:12:20]POST & json_proto [21:12:20]process_json_proto [21:12:20]json parsed OK: [21:12:20]protocol is kg_v1.0 [21:12:20]action value=close_receipt [21:12:20]process_action close_receipt [21:12:20]cmd_close_receipt [21:12:20]MH_GetDate [21:12:20]Write to MH i2c: F0 00 00 E0 1A E9 [21:12:20]Write i2c OK [21:12:20]MH_I2C_Read... [21:12:20]Read from MH i2c: F0 [21:12:20]MH_I2C_Read... [21:12:20]Read from MH i2c: F0 09 00 [21:12:20]MH_I2C_Read... [21:12:20]Read from MH i2c: F0 09 00 E0 1A 00 35 72 15 67 6B 98 1E 66 9C [21:12:20]GetLastDocTimeStamp 1729458553 [21:12:20]current date 1729458741 [21:12:20]FM_GetShiftState [21:12:20]SAM_PROTO_GetShiftState [21:12:20]wFMCommunicate request_size=4 [21:12:20]MH_SAM_APDU [21:12:20]CAPDU: 80 13 01 00 [21:12:20]Write to MH i2c: E2 08 00 E1 1A 80 13 01 00 00 00 00 00 78 [21:12:20]Write i2c OK [21:12:20]MH_I2C_Read... [21:12:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:12:20]Read from MH i2c: E2 [21:12:20]MH_I2C_Read... [21:12:20]Read from MH i2c: E2 0E 00 [21:12:20]MH_I2C_Read... [21:12:20]Read from MH i2c: E2 0E 00 E1 1A 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 7E [21:12:20]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [21:12:20]wFMCommunicate OK [21:12:20]SAM_PROTO_GetShiftState done [21:12:20]FM_GetShiftState done [21:12:20]opened in 1729383220 [21:12:20]opened+sec_in_day 1729469620 [21:12:20]quantity*price = 100011 [21:12:20]sum+1 = 100013 [21:12:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.12 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.12 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 415 20.10.2024 21:12 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69570 ФПД: 94483454611083 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T211221&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69570&fm=94483454611083&tin=02508201610067®Number=0000000000156251&sum=100012 [21:12:21]StoreToDocumentArchive [21:12:21]shift 193 fd 69570 [21:12:21]save to /storage/0193/doc_00069570 [21:12:21]save last doc name /storage/0193/doc_00069570 to /storage/kkm_last_doc_name [21:12:21]save OK [21:12:21]Clear old archive folders... [21:12:21]ProcessDocumentItem done err = 0, tmpTLVsize=250 [21:12:21]tlvbuf is B6F32A30 [21:12:21]SAM_PROTO_ClearQueue [21:12:21]wFMCommunicate request_size=4 [21:12:21]MH_SAM_APDU [21:12:21]CAPDU: 80 09 00 00 [21:12:21]Write to MH i2c: E2 08 00 EE 1A 80 09 00 00 00 00 00 00 7A [21:12:21]Write i2c OK [21:12:21]MH_I2C_Read... [21:12:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:12:21]Read from MH i2c: E2 [21:12:21]MH_I2C_Read... [21:12:21]Read from MH i2c: E2 03 00 [21:12:21]MH_I2C_Read... [21:12:21]Read from MH i2c: E2 03 00 EE 1A 00 90 00 7C [21:12:21]RAPDU: 90 00 [21:12:21]wFMCommunicate OK [21:12:21]SAM_PROTO_ClearQueue done [21:12:21]KKMCreateOFDPacket [21:12:21]OFDProtocolAddRootSTLVToBuf [21:12:21]FM_MakeSignedData [21:12:21]FM_MakeSignedData [21:12:21]SAM_PROTO_SignData [21:12:21]wFMCommunicate request_size=4 [21:12:21]MH_SAM_APDU [21:12:21]CAPDU: 80 0D 01 02 [21:12:21]Write to MH i2c: E2 08 00 EF 1A 80 0D 01 02 00 00 00 00 82 [21:12:21]Write i2c OK [21:12:21]MH_I2C_Read... [21:12:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:12:21]Read from MH i2c: E2 [21:12:21]MH_I2C_Read... [21:12:21]Read from MH i2c: E2 03 00 [21:12:21]MH_I2C_Read... [21:12:21]Read from MH i2c: E2 03 00 EF 1A 00 90 00 7D [21:12:21]RAPDU: 90 00 [21:12:21]wFMCommunicate OK [21:12:21]wFMCommunicate request_size=255 [21:12:21]MH_SAM_APDU [21:12:21]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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 01 00 00 F4 03 04 00 35 72 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C2 0F 01 00 35 04 06 00 55 EE [21:12:21]Write to MH i2c: E2 02 01 F0 1A 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 01 00 00 F4 03 04 00 35 72 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C2 0F 01 00 35 04 06 00 55 EE 00 00 97 [21:12:21]Write i2c OK [21:12:21]MH_I2C_Read... [21:12:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:12:21]Read from MH i2c: E2 [21:12:21]MH_I2C_Read... [21:12:21]Read from MH i2c: E2 03 00 [21:12:21]MH_I2C_Read... [21:12:21]Read from MH i2c: E2 03 00 F0 1A 00 90 00 7E [21:12:21]RAPDU: 90 00 [21:12:21]wFMCommunicate OK [21:12:21]wFMCommunicate request_size=9 [21:12:21]MH_SAM_APDU [21:12:21]CAPDU: 80 0D 02 02 04 A4 BF CE 8B [21:12:21]Write to MH i2c: E2 0C 00 F1 1A 80 0D 02 02 04 00 A4 BF CE 8B 00 00 49 [21:12:21]Write i2c OK [21:12:21]MH_I2C_Read... [21:12:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:12:21]Read from MH i2c: E2 [21:12:21]MH_I2C_Read... [21:12:21]Read from MH i2c: E2 03 00 [21:12:21]MH_I2C_Read... [21:12:21]Read from MH i2c: E2 03 00 F1 1A 00 90 00 7F [21:12:21]RAPDU: 90 00 [21:12:21]wFMCommunicate OK [21:12:21]wFMCommunicate request_size=4 [21:12:21]MH_SAM_APDU [21:12:21]CAPDU: 80 0D 03 02 [21:12:21]Write to MH i2c: E2 08 00 F2 1A 80 0D 03 02 00 00 00 00 87 [21:12:21]Write i2c OK [21:12:21]MH_I2C_Read... [21:12:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:12:21]Read from MH i2c: E2 [21:12:21]MH_I2C_Read... [21:12:21]Read from MH i2c: E2 0B 00 [21:12:21]MH_I2C_Read... [21:12:21]Read from MH i2c: E2 0B 00 F2 1A 00 DD 5F 54 13 F3 0C 9D 06 90 00 CD [21:12:21]RAPDU: DD 5F 54 13 F3 0C 9D 06 90 00 [21:12:21]wFMCommunicate OK [21:12:21]SAM_PROTO_SignData done [21:12:21]FM_MakeSignedData done [21:12:21]CreateOFDProtocolMessage [21:12:21]wFMCommunicate request_size=4 [21:12:21]MH_SAM_APDU [21:12:21]CAPDU: 80 11 00 00 [21:12:21]Write to MH i2c: E2 08 00 F3 1A 80 11 00 00 00 00 00 00 87 [21:12:21]Write i2c OK [21:12:21]MH_I2C_Read... [21:12:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:12:21]Read from MH i2c: E2 [21:12:21]MH_I2C_Read... [21:12:21]Read from MH i2c: E2 17 00 [21:12:21]MH_I2C_Read... [21:12:21]Read from MH i2c: E2 17 00 F3 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D9 [21:12:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:12:21]wFMCommunicate OK [21:12:21]CreateOFDProtocolMessage done [21:12:21]OFDSenderStorePacket 69570 [21:12:21]StoreOFDPacket docnum=69570 [21:12:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 99 E8 06 01 C3 72 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 01 00 00 F4 03 04 00 35 72 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C2 0F 01 00 35 04 06 00 55 EE A4 BF CE 8B DD 5F 54 13 F3 0C 9D 06 [21:12:21]CheckFolder [21:12:21]dirname=/storage/ofd_packets [21:12:21]CheckFolder done [21:12:21]ProducePacketName [21:12:21]name=ofd_packets/00069570 [21:12:21]NVStorageSaveData ofd_packets/00069570 [21:12:21]File name is /storage/ofd_packets/00069570 [21:12:21]Write 300 bytes [21:12:21]NVStorageSaveData done [21:12:21]OFDSenderStorePacket done [21:12:21]KKMCreateOFDPacket done [21:12:21]NVStorageSaveData kkm_last_timestamp [21:12:21]File name is /storage/kkm_last_timestamp [21:12:21]Write 4 bytes [21:12:21]NVStorageSaveData done [21:12:21]ExternCall_PrintAddStr [21:12:21]wPrintStart [21:12:21]Write to MH i2c: 01 00 00 F4 1A 0E [21:12:21]Write i2c OK [21:12:21]MH_I2C_Read... [21:12:21]Read from MH i2c: 01 [21:12:21]MH_I2C_Read... [21:12:21]Read from MH i2c: 01 07 00 [21:12:21]MH_I2C_Read... [21:12:21]Read from MH i2c: 01 07 00 F4 1A 00 00 00 00 00 FF 0F 23 [21:12:21]RasterBufferAndPrint [21:12:21]line Счет N : (1)2885309 [21:12:21]line ИНН: 02508201610067 [21:12:21]line Контрольно-Кассовый Чек [21:12:21]line ПРОДАЖА [21:12:21]line ТРК (МРК, ГНК) : 71 [21:12:21]line Товар: 2711129700 [21:12:21]line ГАЗ-К-3 [21:12:21]line 25.710 * 38.90 [21:12:21]line = 1000.12 [21:12:21]line НДС 12% НСП 1% [21:12:21]line > о реализуемом товаре [21:12:21]line ИТОГО: 1000.12 [21:12:21]line НСП 1% : 8.85 [21:12:21]line НДС 12% : 106.21 [21:12:21]line Наличными: 0.00 [21:12:21]line Безнал.: 1000.12 [21:12:21]line Место: АЗС № 85 "Партнер Нефть" [21:12:21]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:12:21]line СНО: Общий режим [21:12:21]line Чек 415 20.10.2024 21:12 [21:12:21]line Смена: 193 ФФД: 1.0 [21:12:21]line ЗНМ: 0300000167 [21:12:21]line РНМ: 0000000000156251 [21:12:21]line Версия ККМ: v1.0 [21:12:21]line Платежная система: Mbank [21:12:21]line ФМ: 0000000000963346 [21:12:21]line ФД: 69570 [21:12:21]line ФПД: 94483454611083 [21:12:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T211221&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69570&fm=94483454611083&tin=02508201610067®Number=0000000000156251&sum=100012 [21:12:22]OFD Sender: Processing packet 69570 [packets to send 18, broken 17] [21:12:22]ProducePacketName [21:12:22]name=ofd_packets/00069570 [21:12:22]OFD Sender: To server: pG, [21:12:22]CommunicateWithHost lk.salyk.kg:30040 [21:12:22]ConnectInit lk.salyk.kg [21:12:22]written 0, free lines is 4095 [21:12:22]Connected sock=10 [21:12:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 99 E8 06 01 C3 72 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 01 00 00 F4 03 04 00 35 72 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C2 0F 01 00 35 04 06 00 55 EE A4 BF CE 8B DD 5F 54 13 F3 0C 9D 06 [21:12:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 F1 41 47 00 C6 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C2 0F 01 00 F4 03 04 00 DA 1B 15 67 B6 04 01 00 00 1C FF 3C E9 1F 17 C3 60 [21:12:22]CommunicateWithHost err = 0 [21:12:22]CheckOFDResponse [21:12:22]1017 (14) - 77093643461234 [21:12:22]1041 (16) - 0000000000963346 [21:12:22]1040 (4) - 69570 [21:12:22]1012 (4) - 20.10.2024 15:03 [21:12:22]1206 (1) - 0 [21:12:22]OFD Sender: Remove packet 69570 [21:12:22]ProducePacketName [21:12:22]name=ofd_packets/00069570 [21:12:22]NVStorageDeleteData [21:12:22]Write to MH i2c: 01 00 00 1D 1B 38 [21:12:22]Write i2c OK [21:12:22]MH_I2C_Read... [21:12:22]Read from MH i2c: 01 [21:12:22]MH_I2C_Read... [21:12:22]Read from MH i2c: 01 07 00 [21:12:22]MH_I2C_Read... [21:12:22]Read from MH i2c: 01 07 00 1D 1B 00 00 00 00 00 1F 0D 6B [21:12:22]RasterBufferAndPrint [21:12:22]line [21:12:22]line [21:12:22]line [21:12:22]line [21:12:22]line [21:12:22]written 0, free lines is 3365 [21:12:22]MH_Cut [21:12:22]Write to MH i2c: D1 01 00 24 1B 01 11 [21:12:22]Write i2c OK [21:12:22]MH_I2C_Read... [21:12:22]Read from MH i2c: D1 [21:12:22]MH_I2C_Read... [21:12:22]Read from MH i2c: D1 01 00 [21:12:22]MH_I2C_Read... [21:12:22]Read from MH i2c: D1 01 00 24 1B 00 10 [21:12:22]Write to MH i2c: 01 00 00 25 1B 40 [21:12:22]Write i2c OK [21:12:22]MH_I2C_Read... [21:12:22]OFD Sender: No OFD packet to send [21:12:23]*** Cut start [21:12:23]*** Partial cut [21:12:23]*** CUTSNS_PIN = 1 [21:12:23]*** CUTSNS_PIN = 0 [21:12:23]*** Brake cut motor [21:12:23]Read from MH i2c: 01 [21:12:23]MH_I2C_Read... [21:12:23]*** Stop cut motor [21:12:23]*** Cut end [21:12:23]Read from MH i2c: 01 07 00 [21:12:23]MH_I2C_Read... [21:12:23]Read from MH i2c: 01 07 00 25 1B 00 00 00 00 00 FF 0F 55 [21:12:23]process_action close_receipt done [21:12:23]requested_data is exist [21:12:23]produce_requested_data [21:12:23]requested_item fm.sn is exist - process it [21:12:23]wFMCommunicate request_size=4 [21:12:23]MH_SAM_APDU [21:12:23]CAPDU: 80 11 00 00 [21:12:23]Write to MH i2c: E2 08 00 26 1B 80 11 00 00 00 00 00 00 BB [21:12:23]Write i2c OK [21:12:23]MH_I2C_Read... [21:12:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:12:23]Read from MH i2c: E2 [21:12:23]MH_I2C_Read... [21:12:23]Read from MH i2c: E2 17 00 [21:12:23]MH_I2C_Read... [21:12:23]Read from MH i2c: E2 17 00 26 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0D [21:12:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:12:23]wFMCommunicate OK [21:12:23]requested_item fd.num is exist - process it [21:12:23]SAM_PROTO_GetFieldsCounters [21:12:23]wFMCommunicate request_size=4 [21:12:23]MH_SAM_APDU [21:12:23]CAPDU: 80 13 00 00 [21:12:23]Write to MH i2c: E2 08 00 27 1B 80 13 00 00 00 00 00 00 BE [21:12:23]Write i2c OK [21:12:23]MH_I2C_Read... [21:12:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:12:24]Read from MH i2c: E2 [21:12:24]MH_I2C_Read... [21:12:24]Read from MH i2c: E2 62 00 [21:12:24]MH_I2C_Read... [21:12:24]Read from MH i2c: E2 62 00 27 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C2 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 9F 01 00 00 5E 04 04 00 9F 01 00 00 57 04 04 00 A0 01 00 00 19 04 04 00 00 00 00 00 90 00 4C [21:12:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C2 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 9F 01 00 00 5E 04 04 00 9F 01 00 00 57 04 04 00 A0 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:12:24]wFMCommunicate OK [21:12:24]SAM_PROTO_GetFieldsCounters done [21:12:24]requested_item shift.num is exist - process it [21:12:24]requested_item shift.opened is exist - process it [21:12:24]req_shift_opened [21:12:24]FM_GetShiftState [21:12:24]SAM_PROTO_GetShiftState [21:12:24]wFMCommunicate request_size=4 [21:12:24]MH_SAM_APDU [21:12:24]CAPDU: 80 13 01 00 [21:12:24]Write to MH i2c: E2 08 00 28 1B 80 13 01 00 00 00 00 00 C0 [21:12:24]Write i2c OK [21:12:24]MH_I2C_Read... [21:12:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:12:24]Read from MH i2c: E2 [21:12:24]MH_I2C_Read... [21:12:24]Read from MH i2c: E2 0E 00 [21:12:24]MH_I2C_Read... [21:12:24]Read from MH i2c: E2 0E 00 28 1B 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 C6 [21:12:24]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [21:12:24]wFMCommunicate OK [21:12:24]SAM_PROTO_GetShiftState done [21:12:24]FM_GetShiftState done [21:12:24]req_shift_opened done [21:12:24]requested_item shift.open_date is exist - process it [21:12:24]req_shift_open_date [21:12:24]req_shift_open_date done [21:12:24]produce_requested_data done [21:12:24]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69570,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [21:12:24]process_action_free close_receipt [21:12:24]json_value_free [21:12:24]json_value_free done [21:12:24]process_json_proto returns [21:12:24]Send response to host [21:12:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69570,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [21:12:24]free response buf [21:12:24]execute_script done [21:12:24]execute_script returns [21:12:24]free content buf [21:12:24]Sock 9.Close socket [21:12:24]Sock 9.Thread stoped [21:12:27]OFD Sender: No OFD packet to send [21:12:32]OFD Sender: No OFD packet to send [21:12:37]OFD Sender: No OFD packet to send [21:12:42]OFD Sender: No OFD packet to send [21:12:47]OFD Sender: No OFD packet to send [21:12:52]OFD Sender: No OFD packet to send [21:12:57]OFD Sender: No OFD packet to send [21:13:02]OFD Sender: No OFD packet to send [21:13:07]OFD Sender: No OFD packet to send [21:13:13]OFD Sender: No OFD packet to send [21:13:18]OFD Sender: No OFD packet to send [21:13:23]OFD Sender: No OFD packet to send [21:13:28]OFD Sender: No OFD packet to send [21:13:33]OFD Sender: No OFD packet to send [21:13:38]OFD Sender: No OFD packet to send [21:13:43]OFD Sender: No OFD packet to send [21:13:48]OFD Sender: No OFD packet to send [21:13:53]OFD Sender: No OFD packet to send [21:13:58]OFD Sender: No OFD packet to send [21:14:03]OFD Sender: No OFD packet to send [21:14:08]OFD Sender: No OFD packet to send [21:14:13]OFD Sender: No OFD packet to send [21:14:18]OFD Sender: No OFD packet to send [21:14:23]OFD Sender: No OFD packet to send [21:14:28]OFD Sender: No OFD packet to send [21:14:33]OFD Sender: No OFD packet to send [21:14:38]OFD Sender: No OFD packet to send [21:14:43]OFD Sender: No OFD packet to send [21:14:48]OFD Sender: No OFD packet to send [21:14:53]OFD Sender: No OFD packet to send [21:14:58]OFD Sender: No OFD packet to send [21:15:03]OFD Sender: No OFD packet to send [21:15:08]OFD Sender: No OFD packet to send [21:15:13]OFD Sender: No OFD packet to send [21:15:18]OFD Sender: No OFD packet to send [21:15:23]OFD Sender: No OFD packet to send [21:15:28]OFD Sender: No OFD packet to send [21:15:33]OFD Sender: No OFD packet to send [21:15:38]OFD Sender: No OFD packet to send [21:15:43]OFD Sender: No OFD packet to send [21:15:48]OFD Sender: No OFD packet to send [21:15:53]OFD Sender: No OFD packet to send [21:15:58]OFD Sender: No OFD packet to send [21:16:03]OFD Sender: No OFD packet to send [21:16:04]accept exits with 7 [21:16:04]New connection [21:16:04]New thread 3066797412 created [21:16:04]Thread 3066654052 joined [21:16:04]Waiting for new connection... [21:16:04] Sock 7.Parse request [21:16:04]Sock 7.Check first char [21:16:04]Sock 7.First char is OK [21:16:04]request: POST /json_proto HTTP/1.0 [21:16:04]Method: POST [21:16:04]URL: /json_proto [21:16:04]Method is POST - this is cgi request [21:16:04]url: /json_proto [21:16:04]query_string will be loaded in cgi processing [21:16:04]execute_cgi json_proto POST (null) [21:16:04]execute_cgi path=json_proto method=POST [21:16:04]POST find Content-Length [21:16:04]Host: 172.17.50.3:8080 [21:16:04]Content-Length: 678 [21:16:04]Content-Type: application/json [21:16:04] [21:16:04]POST finish read [21:16:04]Found Content-Length = 678 [21:16:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.850, "sum" : 190.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 190.00, "total" : 190.00, "payments": [ { "type": 0, "sum" : 190.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:04]execute_script... [21:16: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)2885310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.850, "sum" : 190.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 190.00, "total" : 190.00, "payments": [ { "type": 0, "sum" : 190.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:04]POST & json_proto [21:16:04]process_json_proto [21:16:04]json parsed OK: [21:16:04]protocol is kg_v1.0 [21:16:04]action value=close_receipt [21:16:04]process_action close_receipt [21:16:04]cmd_close_receipt [21:16:04]MH_GetDate [21:16:04]Write to MH i2c: F0 00 00 29 1B 33 [21:16:04]Write i2c OK [21:16:04]MH_I2C_Read... [21:16:04]Read from MH i2c: F0 [21:16:04]MH_I2C_Read... [21:16:04]Read from MH i2c: F0 09 00 [21:16:04]MH_I2C_Read... [21:16:04]Read from MH i2c: F0 09 00 29 1B 00 15 73 15 67 6B 98 1E 66 C7 [21:16:04]GetLastDocTimeStamp 1729458741 [21:16:04]current date 1729458965 [21:16:04]FM_GetShiftState [21:16:04]SAM_PROTO_GetShiftState [21:16:04]wFMCommunicate request_size=4 [21:16:04]MH_SAM_APDU [21:16:04]CAPDU: 80 13 01 00 [21:16:04]Write to MH i2c: E2 08 00 2A 1B 80 13 01 00 00 00 00 00 C2 [21:16:04]Write i2c OK [21:16:04]MH_I2C_Read... [21:16:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:04]Read from MH i2c: E2 [21:16:04]MH_I2C_Read... [21:16:04]Read from MH i2c: E2 0E 00 [21:16:04]MH_I2C_Read... [21:16:04]Read from MH i2c: E2 0E 00 2A 1B 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 C8 [21:16:04]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [21:16:04]wFMCommunicate OK [21:16:04]SAM_PROTO_GetShiftState done [21:16:04]FM_GetShiftState done [21:16:04]opened in 1729383220 [21:16:04]opened+sec_in_day 1729469620 [21:16:04]quantity*price = 19066 [21:16:04]sum+1 = 19068 [21:16:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 190.00 Внесено: 190.00 СДАЧА: 0.00 НСП 1% : 1.69 НДС 12% : 20.25 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 416 20.10.2024 21:16 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69571 ФПД: 36685682168980 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T211605&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69571&fm=36685682168980&tin=02508201610067®Number=0000000000156251&sum=19000 [21:16:05]StoreToDocumentArchive [21:16:05]shift 193 fd 69571 [21:16:05]save to /storage/0193/doc_00069571 [21:16:05]save last doc name /storage/0193/doc_00069571 to /storage/kkm_last_doc_name [21:16:05]save OK [21:16:05]Clear old archive folders... [21:16:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:16:05]tlvbuf is B6F32400 [21:16:05]SAM_PROTO_ClearQueue [21:16:05]wFMCommunicate request_size=4 [21:16:05]MH_SAM_APDU [21:16:05]CAPDU: 80 09 00 00 [21:16:05]Write to MH i2c: E2 08 00 37 1B 80 09 00 00 00 00 00 00 C4 [21:16:05]Write i2c OK [21:16:05]MH_I2C_Read... [21:16:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:16:05]Read from MH i2c: E2 [21:16:05]MH_I2C_Read... [21:16:05]Read from MH i2c: E2 03 00 [21:16:05]MH_I2C_Read... [21:16:05]Read from MH i2c: E2 03 00 37 1B 00 90 00 C6 [21:16:05]RAPDU: 90 00 [21:16:05]wFMCommunicate OK [21:16:05]SAM_PROTO_ClearQueue done [21:16:05]KKMCreateOFDPacket [21:16:05]OFDProtocolAddRootSTLVToBuf [21:16:05]FM_MakeSignedData [21:16:05]FM_MakeSignedData [21:16:05]SAM_PROTO_SignData [21:16:05]wFMCommunicate request_size=4 [21:16:05]MH_SAM_APDU [21:16:05]CAPDU: 80 0D 01 02 [21:16:05]Write to MH i2c: E2 08 00 38 1B 80 0D 01 02 00 00 00 00 CC [21:16:05]Write i2c OK [21:16:05]MH_I2C_Read... [21:16:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:16:05]Read from MH i2c: E2 [21:16:05]MH_I2C_Read... [21:16:05]Read from MH i2c: E2 03 00 [21:16:05]MH_I2C_Read... [21:16:05]Read from MH i2c: E2 03 00 38 1B 00 90 00 C7 [21:16:05]RAPDU: 90 00 [21:16:05]wFMCommunicate OK [21:16:05]wFMCommunicate request_size=255 [21:16:05]MH_SAM_APDU [21:16:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 01 00 00 F4 03 04 00 15 73 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C3 0F 01 00 35 04 06 00 21 [21:16:05]Write to MH i2c: E2 02 01 39 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 01 00 00 F4 03 04 00 15 73 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C3 0F 01 00 35 04 06 00 21 00 00 F5 [21:16:05]Write i2c OK [21:16:05]MH_I2C_Read... [21:16:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:06]Read from MH i2c: E2 [21:16:06]MH_I2C_Read... [21:16:06]Read from MH i2c: E2 03 00 [21:16:06]MH_I2C_Read... [21:16:06]Read from MH i2c: E2 03 00 39 1B 00 90 00 C8 [21:16:06]RAPDU: 90 00 [21:16:06]wFMCommunicate OK [21:16:06]wFMCommunicate request_size=10 [21:16:06]MH_SAM_APDU [21:16:06]CAPDU: 80 0D 02 02 05 5D 8D 0D D4 94 [21:16:06]Write to MH i2c: E2 0D 00 3A 1B 80 0D 02 02 05 00 5D 8D 0D D4 94 00 00 38 [21:16:06]Write i2c OK [21:16:06]MH_I2C_Read... [21:16:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:06]Read from MH i2c: E2 [21:16:06]MH_I2C_Read... [21:16:06]Read from MH i2c: E2 03 00 [21:16:06]MH_I2C_Read... [21:16:06]Read from MH i2c: E2 03 00 3A 1B 00 90 00 C9 [21:16:06]RAPDU: 90 00 [21:16:06]wFMCommunicate OK [21:16:06]wFMCommunicate request_size=4 [21:16:06]MH_SAM_APDU [21:16:06]CAPDU: 80 0D 03 02 [21:16:06]Write to MH i2c: E2 08 00 3B 1B 80 0D 03 02 00 00 00 00 D1 [21:16:06]Write i2c OK [21:16:06]MH_I2C_Read... [21:16:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:16:06]Read from MH i2c: E2 [21:16:06]MH_I2C_Read... [21:16:06]Read from MH i2c: E2 0B 00 [21:16:06]MH_I2C_Read... [21:16:06]Read from MH i2c: E2 0B 00 3B 1B 00 7A 05 37 41 43 2E 72 08 90 00 B4 [21:16:06]RAPDU: 7A 05 37 41 43 2E 72 08 90 00 [21:16:06]wFMCommunicate OK [21:16:06]SAM_PROTO_SignData done [21:16:06]FM_MakeSignedData done [21:16:06]CreateOFDProtocolMessage [21:16:06]wFMCommunicate request_size=4 [21:16:06]MH_SAM_APDU [21:16:06]CAPDU: 80 11 00 00 [21:16:06]Write to MH i2c: E2 08 00 3C 1B 80 11 00 00 00 00 00 00 D1 [21:16:06]Write i2c OK [21:16:06]MH_I2C_Read... [21:16:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:06]Read from MH i2c: E2 [21:16:06]MH_I2C_Read... [21:16:06]Read from MH i2c: E2 17 00 [21:16:06]MH_I2C_Read... [21:16:06]Read from MH i2c: E2 17 00 3C 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 23 [21:16:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:16:06]wFMCommunicate OK [21:16:06]CreateOFDProtocolMessage done [21:16:06]OFDSenderStorePacket 69571 [21:16:06]StoreOFDPacket docnum=69571 [21:16:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 89 1D 07 01 33 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 01 00 00 F4 03 04 00 15 73 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C3 0F 01 00 35 04 06 00 21 5D 8D 0D D4 94 7A 05 37 41 43 2E 72 08 [21:16:06]CheckFolder [21:16:06]dirname=/storage/ofd_packets [21:16:06]CheckFolder done [21:16:06]ProducePacketName [21:16:06]name=ofd_packets/00069571 [21:16:06]NVStorageSaveData ofd_packets/00069571 [21:16:06]File name is /storage/ofd_packets/00069571 [21:16:06]Write 301 bytes [21:16:06]NVStorageSaveData done [21:16:06]OFDSenderStorePacket done [21:16:06]KKMCreateOFDPacket done [21:16:06]NVStorageSaveData kkm_last_timestamp [21:16:06]File name is /storage/kkm_last_timestamp [21:16:06]Write 4 bytes [21:16:06]NVStorageSaveData done [21:16:06]ExternCall_PrintAddStr [21:16:06]wPrintStart [21:16:06]Write to MH i2c: 01 00 00 3D 1B 58 [21:16:06]Write i2c OK [21:16:06]MH_I2C_Read... [21:16:06]Read from MH i2c: 01 [21:16:06]MH_I2C_Read... [21:16:06]Read from MH i2c: 01 07 00 [21:16:06]MH_I2C_Read... [21:16:06]Read from MH i2c: 01 07 00 3D 1B 00 00 00 00 00 FF 0F 6D [21:16:06]RasterBufferAndPrint [21:16:06]line Счет N : (1)2885310 [21:16:06]line ИНН: 02508201610067 [21:16:06]line Контрольно-Кассовый Чек [21:16:06]line ПРОДАЖА [21:16:06]line ТРК (МРК, ГНК) : 32 [21:16:06]line Товар: 2710124130 [21:16:06]line Аи-92-К-5 [21:16:06]line 2.850 * 66.90 [21:16:06]line = 190.67 [21:16:06]line НДС 12% НСП 1% [21:16:06]line > о реализуемом товаре [21:16:06]line ОКРУГЛЕНИЕ: -0.67 [21:16:06]line ИТОГО: 190.00 [21:16:06]line Внесено: 190.00 [21:16:06]line СДАЧА: 0.00 [21:16:06]line НСП 1% : 1.69 [21:16:06]line НДС 12% : 20.25 [21:16:06]line Наличными: 190.00 [21:16:06]line Безнал.: 0.00 [21:16:06]line Место: АЗС № 85 "Партнер Нефть" [21:16:06]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:16:06]line СНО: Общий режим [21:16:06]line Чек 416 20.10.2024 21:16 [21:16:06]line Смена: 193 ФФД: 1.0 [21:16:06]line ЗНМ: 0300000167 [21:16:06]line РНМ: 0000000000156251 [21:16:06]line Версия ККМ: v1.0 [21:16:06]line ФМ: 0000000000963346 [21:16:06]line ФД: 69571 [21:16:06]line ФПД: 36685682168980 [21:16:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T211605&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69571&fm=36685682168980&tin=02508201610067®Number=0000000000156251&sum=19000 [21:16:06]OFD Sender: Processing packet 69571 [packets to send 18, broken 17] [21:16:06]ProducePacketName [21:16:06]name=ofd_packets/00069571 [21:16:06]OFD Sender: To server: pG, [21:16:06]CommunicateWithHost lk.salyk.kg:30040 [21:16:06]ConnectInit lk.salyk.kg [21:16:06]written 0, free lines is 4095 [21:16:06]Connected sock=10 [21:16:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 89 1D 07 01 33 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 01 00 00 F4 03 04 00 15 73 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C3 0F 01 00 35 04 06 00 21 5D 8D 0D D4 94 7A 05 37 41 43 2E 72 08 [21:16:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 5B 6F 47 00 6B 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C3 0F 01 00 F4 03 04 00 BB 1C 15 67 B6 04 01 00 00 02 25 B0 4F F1 58 98 4E [21:16:06]CommunicateWithHost err = 0 [21:16:06]CheckOFDResponse [21:16:06]1017 (14) - 77093643461234 [21:16:06]1041 (16) - 0000000000963346 [21:16:06]1040 (4) - 69571 [21:16:06]1012 (4) - 20.10.2024 15:07 [21:16:06]1206 (1) - 0 [21:16:06]OFD Sender: Remove packet 69571 [21:16:06]ProducePacketName [21:16:06]name=ofd_packets/00069571 [21:16:06]NVStorageDeleteData [21:16:07]Write to MH i2c: 01 00 00 68 1B 83 [21:16:07]Write i2c OK [21:16:07]MH_I2C_Read... [21:16:07]Read from MH i2c: 01 [21:16:07]MH_I2C_Read... [21:16:07]Read from MH i2c: 01 07 00 [21:16:07]MH_I2C_Read... [21:16:07]Read from MH i2c: 01 07 00 68 1B 00 00 00 00 00 F6 0C 8C [21:16:07]RasterBufferAndPrint [21:16:07]line [21:16:07]line [21:16:07]line [21:16:07]line [21:16:07]line [21:16:07]written 0, free lines is 3328 [21:16:07]MH_Cut [21:16:07]Write to MH i2c: D1 01 00 6F 1B 01 5C [21:16:07]Write i2c OK [21:16:07]MH_I2C_Read... [21:16:07]Read from MH i2c: D1 [21:16:07]MH_I2C_Read... [21:16:07]Read from MH i2c: D1 01 00 [21:16:07]MH_I2C_Read... [21:16:07]Read from MH i2c: D1 01 00 6F 1B 00 5B [21:16:07]Write to MH i2c: 01 00 00 70 1B 8B [21:16:07]Write i2c OK [21:16:07]MH_I2C_Read... [21:16:07]OFD Sender: No OFD packet to send [21:16:07]*** Cut start [21:16:07]*** Partial cut [21:16:07]*** CUTSNS_PIN = 1 [21:16:07]*** CUTSNS_PIN = 0 [21:16:08]*** Brake cut motor [21:16:08]Read from MH i2c: 01 [21:16:08]MH_I2C_Read... [21:16:08]*** Stop cut motor [21:16:08]*** Cut end [21:16:08]Read from MH i2c: 01 07 00 [21:16:08]MH_I2C_Read... [21:16:08]Read from MH i2c: 01 07 00 70 1B 00 00 00 00 00 FF 0F A0 [21:16:08]process_action close_receipt done [21:16:08]requested_data is exist [21:16:08]produce_requested_data [21:16:08]requested_item fm.sn is exist - process it [21:16:08]wFMCommunicate request_size=4 [21:16:08]MH_SAM_APDU [21:16:08]CAPDU: 80 11 00 00 [21:16:08]Write to MH i2c: E2 08 00 71 1B 80 11 00 00 00 00 00 00 06 [21:16:08]Write i2c OK [21:16:08]MH_I2C_Read... [21:16:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:08]Read from MH i2c: E2 [21:16:08]MH_I2C_Read... [21:16:08]Read from MH i2c: E2 17 00 [21:16:08]MH_I2C_Read... [21:16:08]Read from MH i2c: E2 17 00 71 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 58 [21:16:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:16:08]wFMCommunicate OK [21:16:08]requested_item fd.num is exist - process it [21:16:08]SAM_PROTO_GetFieldsCounters [21:16:08]wFMCommunicate request_size=4 [21:16:08]MH_SAM_APDU [21:16:08]CAPDU: 80 13 00 00 [21:16:08]Write to MH i2c: E2 08 00 72 1B 80 13 00 00 00 00 00 00 09 [21:16:08]Write i2c OK [21:16:08]MH_I2C_Read... [21:16:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:16:08]Read from MH i2c: E2 [21:16:08]MH_I2C_Read... [21:16:08]Read from MH i2c: E2 62 00 [21:16:08]MH_I2C_Read... [21:16:08]Read from MH i2c: E2 62 00 72 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C3 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 A0 01 00 00 5E 04 04 00 A0 01 00 00 57 04 04 00 A1 01 00 00 19 04 04 00 00 00 00 00 90 00 9B [21:16:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C3 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 A0 01 00 00 5E 04 04 00 A0 01 00 00 57 04 04 00 A1 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:16:08]wFMCommunicate OK [21:16:08]SAM_PROTO_GetFieldsCounters done [21:16:08]requested_item shift.num is exist - process it [21:16:08]requested_item shift.opened is exist - process it [21:16:08]req_shift_opened [21:16:08]FM_GetShiftState [21:16:08]SAM_PROTO_GetShiftState [21:16:08]wFMCommunicate request_size=4 [21:16:08]MH_SAM_APDU [21:16:08]CAPDU: 80 13 01 00 [21:16:08]Write to MH i2c: E2 08 00 73 1B 80 13 01 00 00 00 00 00 0B [21:16:08]Write i2c OK [21:16:08]MH_I2C_Read... [21:16:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:08]Read from MH i2c: E2 [21:16:08]MH_I2C_Read... [21:16:08]Read from MH i2c: E2 0E 00 [21:16:08]MH_I2C_Read... [21:16:08]Read from MH i2c: E2 0E 00 73 1B 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 11 [21:16:08]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [21:16:08]wFMCommunicate OK [21:16:08]SAM_PROTO_GetShiftState done [21:16:08]FM_GetShiftState done [21:16:08]req_shift_opened done [21:16:08]requested_item shift.open_date is exist - process it [21:16:08]req_shift_open_date [21:16:08]req_shift_open_date done [21:16:08]produce_requested_data done [21:16:08]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69571,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [21:16:08]process_action_free close_receipt [21:16:08]json_value_free [21:16:08]json_value_free done [21:16:08]process_json_proto returns [21:16:08]Send response to host [21:16:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69571,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [21:16:08]free response buf [21:16:08]execute_script done [21:16:08]execute_script returns [21:16:08]free content buf [21:16:08]Sock 7.Close socket [21:16:08]Sock 7.Thread stoped [21:16:12]OFD Sender: No OFD packet to send [21:16:17]OFD Sender: No OFD packet to send [21:16:22]OFD Sender: No OFD packet to send [21:16:27]OFD Sender: No OFD packet to send [21:16:32]OFD Sender: No OFD packet to send [21:16:37]OFD Sender: No OFD packet to send [21:16:42]OFD Sender: No OFD packet to send [21:16:47]OFD Sender: No OFD packet to send [21:16:49]accept exits with 9 [21:16:49]New connection [21:16:49]New thread 3066654052 created [21:16:49]Thread 3066797412 joined [21:16:49]Waiting for new connection... [21:16:49] Sock 9.Parse request [21:16:49]Sock 9.Check first char [21:16:49]Sock 9.First char is OK [21:16:49]request: POST /json_proto HTTP/1.0 [21:16:49]Method: POST [21:16:49]URL: /json_proto [21:16:49]Method is POST - this is cgi request [21:16:49]url: /json_proto [21:16:49]query_string will be loaded in cgi processing [21:16:49]execute_cgi json_proto POST (null) [21:16:49]execute_cgi path=json_proto method=POST [21:16:49]POST find Content-Length [21:16:49]Host: 172.17.50.3:8080 [21:16:49]Content-Length: 681 [21:16:49]Content-Type: application/json [21:16:49] [21:16:49]POST finish read [21:16:49]Found Content-Length = 681 [21:16:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885311", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 5.150, "sum" : 200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:49]execute_script... [21:16: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)2885311", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 5.150, "sum" : 200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:49]POST & json_proto [21:16:49]process_json_proto [21:16:49]json parsed OK: [21:16:49]protocol is kg_v1.0 [21:16:49]action value=close_receipt [21:16:49]process_action close_receipt [21:16:49]cmd_close_receipt [21:16:49]MH_GetDate [21:16:49]Write to MH i2c: F0 00 00 74 1B 7E [21:16:49]Write i2c OK [21:16:49]MH_I2C_Read... [21:16:49]Read from MH i2c: F0 [21:16:49]MH_I2C_Read... [21:16:49]Read from MH i2c: F0 09 00 [21:16:49]MH_I2C_Read... [21:16:49]Read from MH i2c: F0 09 00 74 1B 00 42 73 15 67 6B 98 1E 66 3F [21:16:49]GetLastDocTimeStamp 1729458965 [21:16:49]current date 1729459010 [21:16:49]FM_GetShiftState [21:16:49]SAM_PROTO_GetShiftState [21:16:49]wFMCommunicate request_size=4 [21:16:49]MH_SAM_APDU [21:16:49]CAPDU: 80 13 01 00 [21:16:49]Write to MH i2c: E2 08 00 75 1B 80 13 01 00 00 00 00 00 0D [21:16:49]Write i2c OK [21:16:49]MH_I2C_Read... [21:16:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:49]Read from MH i2c: E2 [21:16:49]MH_I2C_Read... [21:16:49]Read from MH i2c: E2 0E 00 [21:16:49]MH_I2C_Read... [21:16:49]Read from MH i2c: E2 0E 00 75 1B 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 13 [21:16:49]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [21:16:49]wFMCommunicate OK [21:16:49]SAM_PROTO_GetShiftState done [21:16:49]FM_GetShiftState done [21:16:49]opened in 1729383220 [21:16:49]opened+sec_in_day 1729469620 [21:16:49]quantity*price = 20033 [21:16:49]sum+1 = 20035 [21:16:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 417 20.10.2024 21:16 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69572 ФПД: 260135071346755 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T211650&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69572&fm=260135071346755&tin=02508201610067®Number=0000000000156251&sum=20000 [21:16:50]StoreToDocumentArchive [21:16:50]shift 193 fd 69572 [21:16:50]save to /storage/0193/doc_00069572 [21:16:50]save last doc name /storage/0193/doc_00069572 to /storage/kkm_last_doc_name [21:16:50]save OK [21:16:50]Clear old archive folders... [21:16:50]ProcessDocumentItem done err = 0, tmpTLVsize=250 [21:16:50]tlvbuf is B6EB4EC0 [21:16:50]SAM_PROTO_ClearQueue [21:16:50]wFMCommunicate request_size=4 [21:16:50]MH_SAM_APDU [21:16:50]CAPDU: 80 09 00 00 [21:16:50]Write to MH i2c: E2 08 00 82 1B 80 09 00 00 00 00 00 00 0F [21:16:50]Write i2c OK [21:16:50]MH_I2C_Read... [21:16:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:16:50]Read from MH i2c: E2 [21:16:50]MH_I2C_Read... [21:16:50]Read from MH i2c: E2 03 00 [21:16:50]MH_I2C_Read... [21:16:50]Read from MH i2c: E2 03 00 82 1B 00 90 00 11 [21:16:50]RAPDU: 90 00 [21:16:50]wFMCommunicate OK [21:16:50]SAM_PROTO_ClearQueue done [21:16:50]KKMCreateOFDPacket [21:16:50]OFDProtocolAddRootSTLVToBuf [21:16:50]FM_MakeSignedData [21:16:50]FM_MakeSignedData [21:16:50]SAM_PROTO_SignData [21:16:50]wFMCommunicate request_size=4 [21:16:50]MH_SAM_APDU [21:16:50]CAPDU: 80 0D 01 02 [21:16:50]Write to MH i2c: E2 08 00 83 1B 80 0D 01 02 00 00 00 00 17 [21:16:50]Write i2c OK [21:16:50]MH_I2C_Read... [21:16:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:16:51]Read from MH i2c: E2 [21:16:51]MH_I2C_Read... [21:16:51]Read from MH i2c: E2 03 00 [21:16:51]MH_I2C_Read... [21:16:51]Read from MH i2c: E2 03 00 83 1B 00 90 00 12 [21:16:51]RAPDU: 90 00 [21:16:51]wFMCommunicate OK [21:16:51]wFMCommunicate request_size=255 [21:16:51]MH_SAM_APDU [21:16:51]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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 1E 14 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 42 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 4F 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 A1 01 00 00 F4 03 04 00 42 73 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C4 0F 01 00 35 04 06 00 EC 97 [21:16:51]Write to MH i2c: E2 02 01 84 1B 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 1E 14 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 42 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 4F 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 A1 01 00 00 F4 03 04 00 42 73 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C4 0F 01 00 35 04 06 00 EC 97 00 00 9B [21:16:51]Write i2c OK [21:16:51]MH_I2C_Read... [21:16:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:51]Read from MH i2c: E2 [21:16:51]MH_I2C_Read... [21:16:51]Read from MH i2c: E2 03 00 [21:16:51]MH_I2C_Read... [21:16:51]Read from MH i2c: E2 03 00 84 1B 00 90 00 13 [21:16:51]RAPDU: 90 00 [21:16:51]wFMCommunicate OK [21:16:51]wFMCommunicate request_size=9 [21:16:51]MH_SAM_APDU [21:16:51]CAPDU: 80 0D 02 02 04 6A 85 70 43 [21:16:51]Write to MH i2c: E2 0C 00 85 1B 80 0D 02 02 04 00 6A 85 70 43 00 00 C4 [21:16:51]Write i2c OK [21:16:51]MH_I2C_Read... [21:16:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:51]Read from MH i2c: E2 [21:16:51]MH_I2C_Read... [21:16:51]Read from MH i2c: E2 03 00 [21:16:51]MH_I2C_Read... [21:16:51]Read from MH i2c: E2 03 00 85 1B 00 90 00 14 [21:16:51]RAPDU: 90 00 [21:16:51]wFMCommunicate OK [21:16:51]wFMCommunicate request_size=4 [21:16:51]MH_SAM_APDU [21:16:51]CAPDU: 80 0D 03 02 [21:16:51]Write to MH i2c: E2 08 00 86 1B 80 0D 03 02 00 00 00 00 1C [21:16:51]Write i2c OK [21:16:51]MH_I2C_Read... [21:16:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:16:51]Read from MH i2c: E2 [21:16:51]MH_I2C_Read... [21:16:51]Read from MH i2c: E2 0B 00 [21:16:51]MH_I2C_Read... [21:16:51]Read from MH i2c: E2 0B 00 86 1B 00 25 1F 6B AB E2 9B 3E 5D 90 00 8F [21:16:51]RAPDU: 25 1F 6B AB E2 9B 3E 5D 90 00 [21:16:51]wFMCommunicate OK [21:16:51]SAM_PROTO_SignData done [21:16:51]FM_MakeSignedData done [21:16:51]CreateOFDProtocolMessage [21:16:51]wFMCommunicate request_size=4 [21:16:51]MH_SAM_APDU [21:16:51]CAPDU: 80 11 00 00 [21:16:51]Write to MH i2c: E2 08 00 87 1B 80 11 00 00 00 00 00 00 1C [21:16:51]Write i2c OK [21:16:51]MH_I2C_Read... [21:16:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:51]Read from MH i2c: E2 [21:16:51]MH_I2C_Read... [21:16:51]Read from MH i2c: E2 17 00 [21:16:51]MH_I2C_Read... [21:16:51]Read from MH i2c: E2 17 00 87 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6E [21:16:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:16:51]wFMCommunicate OK [21:16:51]CreateOFDProtocolMessage done [21:16:51]OFDSenderStorePacket 69572 [21:16:51]StoreOFDPacket docnum=69572 [21:16:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 F8 E3 06 01 87 27 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 1E 14 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 42 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 4F 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 A1 01 00 00 F4 03 04 00 42 73 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C4 0F 01 00 35 04 06 00 EC 97 6A 85 70 43 25 1F 6B AB E2 9B 3E 5D [21:16:51]CheckFolder [21:16:51]dirname=/storage/ofd_packets [21:16:51]CheckFolder done [21:16:51]ProducePacketName [21:16:51]name=ofd_packets/00069572 [21:16:51]NVStorageSaveData ofd_packets/00069572 [21:16:51]File name is /storage/ofd_packets/00069572 [21:16:51]Write 300 bytes [21:16:51]NVStorageSaveData done [21:16:51]OFDSenderStorePacket done [21:16:51]KKMCreateOFDPacket done [21:16:51]NVStorageSaveData kkm_last_timestamp [21:16:51]File name is /storage/kkm_last_timestamp [21:16:51]Write 4 bytes [21:16:51]NVStorageSaveData done [21:16:51]ExternCall_PrintAddStr [21:16:51]wPrintStart [21:16:51]Write to MH i2c: 01 00 00 88 1B A3 [21:16:51]Write i2c OK [21:16:51]MH_I2C_Read... [21:16:51]Read from MH i2c: 01 [21:16:51]MH_I2C_Read... [21:16:51]Read from MH i2c: 01 07 00 [21:16:51]MH_I2C_Read... [21:16:51]Read from MH i2c: 01 07 00 88 1B 00 00 00 00 00 FF 0F B8 [21:16:51]RasterBufferAndPrint [21:16:51]line Счет N : (1)2885311 [21:16:51]line ИНН: 02508201610067 [21:16:51]line Контрольно-Кассовый Чек [21:16:51]line ПРОДАЖА [21:16:51]line ТРК (МРК, ГНК) : 71 [21:16:51]line Товар: 2711129700 [21:16:51]line ГАЗ-К-3 [21:16:51]line 5.150 * 38.90 [21:16:51]line = 200.34 [21:16:51]line НДС 12% НСП 1% [21:16:51]line > о реализуемом товаре [21:16:51]line ОКРУГЛЕНИЕ: -0.34 [21:16:51]line ИТОГО: 200.00 [21:16:51]line Внесено: 200.00 [21:16:51]line СДАЧА: 0.00 [21:16:51]line НСП 1% : 1.77 [21:16:51]line НДС 12% : 21.27 [21:16:51]line Наличными: 200.00 [21:16:51]line Безнал.: 0.00 [21:16:51]line Место: АЗС № 85 "Партнер Нефть" [21:16:51]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:16:51]line СНО: Общий режим [21:16:51]line Чек 417 20.10.2024 21:16 [21:16:51]line Смена: 193 ФФД: 1.0 [21:16:51]line ЗНМ: 0300000167 [21:16:51]line РНМ: 0000000000156251 [21:16:51]line Версия ККМ: v1.0 [21:16:51]line ФМ: 0000000000963346 [21:16:51]line ФД: 69572 [21:16:51]line ФПД: 260135071346755 [21:16:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T211650&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69572&fm=260135071346755&tin=02508201610067®Number=0000000000156251&sum=20000 [21:16:51]written 0, free lines is 4095 [21:16:51]OFD Sender: Processing packet 69572 [packets to send 18, broken 17] [21:16:51]ProducePacketName [21:16:51]name=ofd_packets/00069572 [21:16:51]OFD Sender: To server: pG, [21:16:51]CommunicateWithHost lk.salyk.kg:30040 [21:16:51]ConnectInit lk.salyk.kg [21:16:51]Connected sock=7 [21:16:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 F8 E3 06 01 87 27 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 1E 14 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 42 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 4F 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 A1 01 00 00 F4 03 04 00 42 73 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C4 0F 01 00 35 04 06 00 EC 97 6A 85 70 43 25 1F 6B AB E2 9B 3E 5D [21:16:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 A2 AF 47 00 E6 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C4 0F 01 00 F4 03 04 00 E8 1C 15 67 B6 04 01 00 00 9C DB C9 8A F5 23 B2 2B [21:16:52]CommunicateWithHost err = 0 [21:16:52]CheckOFDResponse [21:16:52]1017 (14) - 77093643461234 [21:16:52]1041 (16) - 0000000000963346 [21:16:52]1040 (4) - 69572 [21:16:52]1012 (4) - 20.10.2024 15:08 [21:16:52]1206 (1) - 0 [21:16:52]OFD Sender: Remove packet 69572 [21:16:52]ProducePacketName [21:16:52]name=ofd_packets/00069572 [21:16:52]NVStorageDeleteData [21:16:52]Write to MH i2c: 01 00 00 B3 1B CE [21:16:52]Write i2c OK [21:16:52]MH_I2C_Read... [21:16:52]Read from MH i2c: 01 [21:16:52]MH_I2C_Read... [21:16:52]Read from MH i2c: 01 07 00 [21:16:52]MH_I2C_Read... [21:16:52]Read from MH i2c: 01 07 00 B3 1B 00 00 00 00 00 E7 0C C8 [21:16:52]RasterBufferAndPrint [21:16:52]line [21:16:52]line [21:16:52]line [21:16:52]line [21:16:52]line [21:16:52]written 0, free lines is 3309 [21:16:52]MH_Cut [21:16:52]Write to MH i2c: D1 01 00 BA 1B 01 A7 [21:16:52]Write i2c OK [21:16:52]MH_I2C_Read... [21:16:52]Read from MH i2c: D1 [21:16:52]MH_I2C_Read... [21:16:52]Read from MH i2c: D1 01 00 [21:16:52]MH_I2C_Read... [21:16:52]Read from MH i2c: D1 01 00 BA 1B 00 A6 [21:16:52]Write to MH i2c: 01 00 00 BB 1B D6 [21:16:52]Write i2c OK [21:16:52]MH_I2C_Read... [21:16:52]OFD Sender: No OFD packet to send [21:16:52]*** Cut start [21:16:52]*** Partial cut [21:16:52]*** CUTSNS_PIN = 1 [21:16:52]*** CUTSNS_PIN = 0 [21:16:53]*** Brake cut motor [21:16:53]Read from MH i2c: 01 [21:16:53]MH_I2C_Read... [21:16:53]*** Stop cut motor [21:16:53]*** Cut end [21:16:53]Read from MH i2c: 01 07 00 [21:16:53]MH_I2C_Read... [21:16:53]Read from MH i2c: 01 07 00 BB 1B 00 00 00 00 00 FF 0F EB [21:16:53]process_action close_receipt done [21:16:53]requested_data is exist [21:16:53]produce_requested_data [21:16:53]requested_item fm.sn is exist - process it [21:16:53]wFMCommunicate request_size=4 [21:16:53]MH_SAM_APDU [21:16:53]CAPDU: 80 11 00 00 [21:16:53]Write to MH i2c: E2 08 00 BC 1B 80 11 00 00 00 00 00 00 51 [21:16:53]Write i2c OK [21:16:53]MH_I2C_Read... [21:16:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:53]Read from MH i2c: E2 [21:16:53]MH_I2C_Read... [21:16:53]Read from MH i2c: E2 17 00 [21:16:53]MH_I2C_Read... [21:16:53]Read from MH i2c: E2 17 00 BC 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A3 [21:16:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:16:53]wFMCommunicate OK [21:16:53]requested_item fd.num is exist - process it [21:16:53]SAM_PROTO_GetFieldsCounters [21:16:53]wFMCommunicate request_size=4 [21:16:53]MH_SAM_APDU [21:16:53]CAPDU: 80 13 00 00 [21:16:53]Write to MH i2c: E2 08 00 BD 1B 80 13 00 00 00 00 00 00 54 [21:16:53]Write i2c OK [21:16:53]MH_I2C_Read... [21:16:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:16:53]Read from MH i2c: E2 [21:16:53]MH_I2C_Read... [21:16:53]Read from MH i2c: E2 62 00 [21:16:53]MH_I2C_Read... [21:16:53]Read from MH i2c: E2 62 00 BD 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C4 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 A1 01 00 00 5E 04 04 00 A1 01 00 00 57 04 04 00 A2 01 00 00 19 04 04 00 00 00 00 00 90 00 EA [21:16:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C4 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 A1 01 00 00 5E 04 04 00 A1 01 00 00 57 04 04 00 A2 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:16:53]wFMCommunicate OK [21:16:53]SAM_PROTO_GetFieldsCounters done [21:16:53]requested_item shift.num is exist - process it [21:16:53]requested_item shift.opened is exist - process it [21:16:53]req_shift_opened [21:16:53]FM_GetShiftState [21:16:53]SAM_PROTO_GetShiftState [21:16:53]wFMCommunicate request_size=4 [21:16:53]MH_SAM_APDU [21:16:53]CAPDU: 80 13 01 00 [21:16:53]Write to MH i2c: E2 08 00 BE 1B 80 13 01 00 00 00 00 00 56 [21:16:53]Write i2c OK [21:16:53]MH_I2C_Read... [21:16:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:53]Read from MH i2c: E2 [21:16:53]MH_I2C_Read... [21:16:53]Read from MH i2c: E2 0E 00 [21:16:53]MH_I2C_Read... [21:16:53]Read from MH i2c: E2 0E 00 BE 1B 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 5C [21:16:53]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [21:16:53]wFMCommunicate OK [21:16:53]SAM_PROTO_GetShiftState done [21:16:53]FM_GetShiftState done [21:16:53]req_shift_opened done [21:16:53]requested_item shift.open_date is exist - process it [21:16:53]req_shift_open_date [21:16:53]req_shift_open_date done [21:16:53]produce_requested_data done [21:16:53]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69572,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [21:16:53]process_action_free close_receipt [21:16:53]json_value_free [21:16:53]json_value_free done [21:16:53]process_json_proto returns [21:16:53]Send response to host [21:16:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69572,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [21:16:53]free response buf [21:16:53]execute_script done [21:16:53]execute_script returns [21:16:53]free content buf [21:16:53]Sock 9.Close socket [21:16:53]Sock 9.Thread stoped [21:16:57]OFD Sender: No OFD packet to send [21:17:02]OFD Sender: No OFD packet to send [21:17:07]OFD Sender: No OFD packet to send [21:17:12]OFD Sender: No OFD packet to send [21:17:17]OFD Sender: No OFD packet to send [21:17:22]OFD Sender: No OFD packet to send [21:17:27]OFD Sender: No OFD packet to send [21:17:32]OFD Sender: No OFD packet to send [21:17:37]OFD Sender: No OFD packet to send [21:17:42]OFD Sender: No OFD packet to send [21:17:47]OFD Sender: No OFD packet to send [21:17:52]OFD Sender: No OFD packet to send [21:17:57]OFD Sender: No OFD packet to send [21:18:02]OFD Sender: No OFD packet to send [21:18:07]OFD Sender: No OFD packet to send [21:18:12]OFD Sender: No OFD packet to send [21:18:17]OFD Sender: No OFD packet to send [21:18:22]OFD Sender: No OFD packet to send [21:18:27]OFD Sender: No OFD packet to send [21:18:32]OFD Sender: No OFD packet to send [21:18:37]OFD Sender: No OFD packet to send [21:18:42]OFD Sender: No OFD packet to send [21:18:47]OFD Sender: No OFD packet to send [21:18:52]OFD Sender: No OFD packet to send [21:18:57]OFD Sender: No OFD packet to send [21:19:02]OFD Sender: No OFD packet to send [21:19:07]OFD Sender: No OFD packet to send [21:19:12]OFD Sender: No OFD packet to send [21:19:17]OFD Sender: No OFD packet to send [21:19:22]OFD Sender: No OFD packet to send [21:19:27]OFD Sender: No OFD packet to send [21:19:32]OFD Sender: No OFD packet to send [21:19:37]OFD Sender: No OFD packet to send [21:19:42]OFD Sender: No OFD packet to send [21:19:47]OFD Sender: No OFD packet to send [21:19:52]OFD Sender: No OFD packet to send [21:19:57]OFD Sender: No OFD packet to send [21:20:02]OFD Sender: No OFD packet to send [21:20:07]OFD Sender: No OFD packet to send [21:20:12]OFD Sender: No OFD packet to send [21:20:17]OFD Sender: No OFD packet to send [21:20:22]OFD Sender: No OFD packet to send [21:20:27]OFD Sender: No OFD packet to send [21:20:32]OFD Sender: No OFD packet to send [21:20:37]OFD Sender: No OFD packet to send [21:20:42]OFD Sender: No OFD packet to send [21:20:47]OFD Sender: No OFD packet to send [21:20:52]OFD Sender: No OFD packet to send [21:20:57]OFD Sender: No OFD packet to send [21:21:02]OFD Sender: No OFD packet to send [21:21:07]OFD Sender: No OFD packet to send [21:21:12]OFD Sender: No OFD packet to send [21:21:17]OFD Sender: No OFD packet to send [21:21:22]OFD Sender: No OFD packet to send [21:21:27]OFD Sender: No OFD packet to send [21:21:32]OFD Sender: No OFD packet to send [21:21:37]OFD Sender: No OFD packet to send [21:21:42]OFD Sender: No OFD packet to send [21:21:47]OFD Sender: No OFD packet to send [21:21:52]OFD Sender: No OFD packet to send [21:21:57]OFD Sender: No OFD packet to send [21:22:02]OFD Sender: No OFD packet to send [21:22:07]OFD Sender: No OFD packet to send [21:22:12]OFD Sender: No OFD packet to send [21:22:17]OFD Sender: No OFD packet to send [21:22:22]OFD Sender: No OFD packet to send [21:22:27]OFD Sender: No OFD packet to send [21:22:32]OFD Sender: No OFD packet to send [21:22:37]OFD Sender: No OFD packet to send [21:22:42]OFD Sender: No OFD packet to send [21:22:47]OFD Sender: No OFD packet to send [21:22:52]OFD Sender: No OFD packet to send [21:22:57]OFD Sender: No OFD packet to send [21:23:02]OFD Sender: No OFD packet to send [21:23:07]OFD Sender: No OFD packet to send [21:23:12]OFD Sender: No OFD packet to send [21:23:17]OFD Sender: No OFD packet to send [21:23:22]OFD Sender: No OFD packet to send [21:23:27]OFD Sender: No OFD packet to send [21:23:32]OFD Sender: No OFD packet to send [21:23:37]OFD Sender: No OFD packet to send [21:23:42]OFD Sender: No OFD packet to send [21:23:47]OFD Sender: No OFD packet to send [21:23:52]OFD Sender: No OFD packet to send [21:23:57]OFD Sender: No OFD packet to send [21:24:02]OFD Sender: No OFD packet to send [21:24:07]OFD Sender: No OFD packet to send [21:24:12]OFD Sender: No OFD packet to send [21:24:17]OFD Sender: No OFD packet to send [21:24:22]OFD Sender: No OFD packet to send [21:24:27]OFD Sender: No OFD packet to send [21:24:32]OFD Sender: No OFD packet to send [21:24:37]OFD Sender: No OFD packet to send [21:24:42]OFD Sender: No OFD packet to send [21:24:47]OFD Sender: No OFD packet to send [21:24:52]OFD Sender: No OFD packet to send [21:24:57]OFD Sender: No OFD packet to send [21:25:03]OFD Sender: No OFD packet to send [21:25:08]OFD Sender: No OFD packet to send [21:25:13]OFD Sender: No OFD packet to send [21:25:18]OFD Sender: No OFD packet to send [21:25:23]OFD Sender: No OFD packet to send [21:25:28]OFD Sender: No OFD packet to send [21:25:33]OFD Sender: No OFD packet to send [21:25:38]OFD Sender: No OFD packet to send [21:25:43]OFD Sender: No OFD packet to send [21:25:48]OFD Sender: No OFD packet to send [21:25:53]OFD Sender: No OFD packet to send [21:25:58]OFD Sender: No OFD packet to send [21:26:03]OFD Sender: No OFD packet to send [21:26:08]OFD Sender: No OFD packet to send [21:26:13]OFD Sender: No OFD packet to send [21:26:18]OFD Sender: No OFD packet to send [21:26:23]OFD Sender: No OFD packet to send [21:26:28]OFD Sender: No OFD packet to send [21:26:33]OFD Sender: No OFD packet to send [21:26:38]OFD Sender: No OFD packet to send [21:26:43]OFD Sender: No OFD packet to send [21:26:48]OFD Sender: No OFD packet to send [21:26:53]OFD Sender: No OFD packet to send [21:26:58]OFD Sender: No OFD packet to send [21:27:03]OFD Sender: No OFD packet to send [21:27:08]OFD Sender: No OFD packet to send [21:27:13]OFD Sender: No OFD packet to send [21:27:18]OFD Sender: No OFD packet to send [21:27:23]OFD Sender: No OFD packet to send [21:27:28]OFD Sender: No OFD packet to send [21:27:33]OFD Sender: No OFD packet to send [21:27:38]OFD Sender: No OFD packet to send [21:27:43]OFD Sender: No OFD packet to send [21:27:45]accept exits with 10 [21:27:45]New connection [21:27:45]New thread 3066797412 created [21:27:45]Thread 3066654052 joined [21:27:45]Waiting for new connection... [21:27:45] Sock 10.Parse request [21:27:45]Sock 10.Check first char [21:27:45]Sock 10.First char is OK [21:27:45]request: POST /json_proto HTTP/1.0 [21:27:45]Method: POST [21:27:45]URL: /json_proto [21:27:45]Method is POST - this is cgi request [21:27:45]url: /json_proto [21:27:45]query_string will be loaded in cgi processing [21:27:45]execute_cgi json_proto POST (null) [21:27:45]execute_cgi path=json_proto method=POST [21:27:45]POST find Content-Length [21:27:45]Host: 172.17.50.3:8080 [21:27:45]Content-Length: 682 [21:27:45]Content-Type: application/json [21:27:45] [21:27:45]POST finish read [21:27:45]Found Content-Length = 682 [21:27:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 10.290, "sum" : 400.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:27:45]execute_script... [21:27:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 10.290, "sum" : 400.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:27:45]POST & json_proto [21:27:45]process_json_proto [21:27:45]json parsed OK: [21:27:45]protocol is kg_v1.0 [21:27:45]action value=close_receipt [21:27:45]process_action close_receipt [21:27:45]cmd_close_receipt [21:27:45]MH_GetDate [21:27:45]Write to MH i2c: F0 00 00 BF 1B C9 [21:27:45]Write i2c OK [21:27:45]MH_I2C_Read... [21:27:45]Read from MH i2c: F0 [21:27:45]MH_I2C_Read... [21:27:45]Read from MH i2c: F0 09 00 [21:27:45]MH_I2C_Read... [21:27:45]Read from MH i2c: F0 09 00 BF 1B 00 D2 75 15 67 6B 98 1E 66 1C [21:27:45]GetLastDocTimeStamp 1729459010 [21:27:45]current date 1729459666 [21:27:45]FM_GetShiftState [21:27:45]SAM_PROTO_GetShiftState [21:27:45]wFMCommunicate request_size=4 [21:27:45]MH_SAM_APDU [21:27:45]CAPDU: 80 13 01 00 [21:27:45]Write to MH i2c: E2 08 00 C0 1B 80 13 01 00 00 00 00 00 58 [21:27:45]Write i2c OK [21:27:45]MH_I2C_Read... [21:27:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:45]Read from MH i2c: E2 [21:27:45]MH_I2C_Read... [21:27:45]Read from MH i2c: E2 0E 00 [21:27:45]MH_I2C_Read... [21:27:45]Read from MH i2c: E2 0E 00 C0 1B 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 5E [21:27:45]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [21:27:45]wFMCommunicate OK [21:27:45]SAM_PROTO_GetShiftState done [21:27:45]FM_GetShiftState done [21:27:45]opened in 1729383220 [21:27:45]opened+sec_in_day 1729469620 [21:27:45]quantity*price = 40028 [21:27:45]sum+1 = 40029 [21:27:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.51 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 418 20.10.2024 21:27 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69573 ФПД: 218817504196898 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T212746&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69573&fm=218817504196898&tin=02508201610067®Number=0000000000156251&sum=40000 [21:27:46]StoreToDocumentArchive [21:27:46]shift 193 fd 69573 [21:27:46]save to /storage/0193/doc_00069573 [21:27:46]save last doc name /storage/0193/doc_00069573 to /storage/kkm_last_doc_name [21:27:46]save OK [21:27:46]Clear old archive folders... [21:27:46]ProcessDocumentItem done err = 0, tmpTLVsize=250 [21:27:46]tlvbuf is B6F32600 [21:27:46]SAM_PROTO_ClearQueue [21:27:46]wFMCommunicate request_size=4 [21:27:46]MH_SAM_APDU [21:27:46]CAPDU: 80 09 00 00 [21:27:46]Write to MH i2c: E2 08 00 CD 1B 80 09 00 00 00 00 00 00 5A [21:27:46]Write i2c OK [21:27:46]MH_I2C_Read... [21:27:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:27:46]Read from MH i2c: E2 [21:27:46]MH_I2C_Read... [21:27:46]Read from MH i2c: E2 03 00 [21:27:46]MH_I2C_Read... [21:27:46]Read from MH i2c: E2 03 00 CD 1B 00 90 00 5C [21:27:46]RAPDU: 90 00 [21:27:46]wFMCommunicate OK [21:27:46]SAM_PROTO_ClearQueue done [21:27:46]KKMCreateOFDPacket [21:27:46]OFDProtocolAddRootSTLVToBuf [21:27:46]FM_MakeSignedData [21:27:46]FM_MakeSignedData [21:27:46]SAM_PROTO_SignData [21:27:46]wFMCommunicate request_size=4 [21:27:46]MH_SAM_APDU [21:27:46]CAPDU: 80 0D 01 02 [21:27:46]Write to MH i2c: E2 08 00 CE 1B 80 0D 01 02 00 00 00 00 62 [21:27:46]Write i2c OK [21:27:46]MH_I2C_Read... [21:27:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:27:46]Read from MH i2c: E2 [21:27:46]MH_I2C_Read... [21:27:46]Read from MH i2c: E2 03 00 [21:27:46]MH_I2C_Read... [21:27:46]Read from MH i2c: E2 03 00 CE 1B 00 90 00 5D [21:27:46]RAPDU: 90 00 [21:27:46]wFMCommunicate OK [21:27:46]wFMCommunicate request_size=255 [21:27:46]MH_SAM_APDU [21:27:46]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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5C 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 01 00 00 F4 03 04 00 D2 75 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C5 0F 01 00 35 04 06 00 C7 03 [21:27:46]Write to MH i2c: E2 02 01 CF 1B 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5C 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 01 00 00 F4 03 04 00 D2 75 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C5 0F 01 00 35 04 06 00 C7 03 00 00 33 [21:27:46]Write i2c OK [21:27:46]MH_I2C_Read... [21:27:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:47]Read from MH i2c: E2 [21:27:47]MH_I2C_Read... [21:27:47]Read from MH i2c: E2 03 00 [21:27:47]MH_I2C_Read... [21:27:47]Read from MH i2c: E2 03 00 CF 1B 00 90 00 5E [21:27:47]RAPDU: 90 00 [21:27:47]wFMCommunicate OK [21:27:47]wFMCommunicate request_size=9 [21:27:47]MH_SAM_APDU [21:27:47]CAPDU: 80 0D 02 02 04 6B 9B B9 22 [21:27:47]Write to MH i2c: E2 0C 00 D0 1B 80 0D 02 02 04 00 6B 9B B9 22 00 00 4E [21:27:47]Write i2c OK [21:27:47]MH_I2C_Read... [21:27:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:47]Read from MH i2c: E2 [21:27:47]MH_I2C_Read... [21:27:47]Read from MH i2c: E2 03 00 [21:27:47]MH_I2C_Read... [21:27:47]Read from MH i2c: E2 03 00 D0 1B 00 90 00 5F [21:27:47]RAPDU: 90 00 [21:27:47]wFMCommunicate OK [21:27:47]wFMCommunicate request_size=4 [21:27:47]MH_SAM_APDU [21:27:47]CAPDU: 80 0D 03 02 [21:27:47]Write to MH i2c: E2 08 00 D1 1B 80 0D 03 02 00 00 00 00 67 [21:27:47]Write i2c OK [21:27:47]MH_I2C_Read... [21:27:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:27:47]Read from MH i2c: E2 [21:27:47]MH_I2C_Read... [21:27:47]Read from MH i2c: E2 0B 00 [21:27:47]MH_I2C_Read... [21:27:47]Read from MH i2c: E2 0B 00 D1 1B 00 1F 7E C2 09 C8 C5 3C 7E 90 00 17 [21:27:47]RAPDU: 1F 7E C2 09 C8 C5 3C 7E 90 00 [21:27:47]wFMCommunicate OK [21:27:47]SAM_PROTO_SignData done [21:27:47]FM_MakeSignedData done [21:27:47]CreateOFDProtocolMessage [21:27:47]wFMCommunicate request_size=4 [21:27:47]MH_SAM_APDU [21:27:47]CAPDU: 80 11 00 00 [21:27:47]Write to MH i2c: E2 08 00 D2 1B 80 11 00 00 00 00 00 00 67 [21:27:47]Write i2c OK [21:27:47]MH_I2C_Read... [21:27:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:47]Read from MH i2c: E2 [21:27:47]MH_I2C_Read... [21:27:47]Read from MH i2c: E2 17 00 [21:27:47]MH_I2C_Read... [21:27:47]Read from MH i2c: E2 17 00 D2 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B9 [21:27:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:27:47]wFMCommunicate OK [21:27:47]CreateOFDProtocolMessage done [21:27:47]OFDSenderStorePacket 69573 [21:27:47]StoreOFDPacket docnum=69573 [21:27:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 07 3D 06 01 D8 29 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5C 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 01 00 00 F4 03 04 00 D2 75 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C5 0F 01 00 35 04 06 00 C7 03 6B 9B B9 22 1F 7E C2 09 C8 C5 3C 7E [21:27:47]CheckFolder [21:27:47]dirname=/storage/ofd_packets [21:27:47]CheckFolder done [21:27:47]ProducePacketName [21:27:47]name=ofd_packets/00069573 [21:27:47]NVStorageSaveData ofd_packets/00069573 [21:27:47]File name is /storage/ofd_packets/00069573 [21:27:47]Write 300 bytes [21:27:47]NVStorageSaveData done [21:27:47]OFDSenderStorePacket done [21:27:47]KKMCreateOFDPacket done [21:27:47]NVStorageSaveData kkm_last_timestamp [21:27:47]File name is /storage/kkm_last_timestamp [21:27:47]Write 4 bytes [21:27:47]NVStorageSaveData done [21:27:47]ExternCall_PrintAddStr [21:27:47]wPrintStart [21:27:47]Write to MH i2c: 01 00 00 D3 1B EE [21:27:47]Write i2c OK [21:27:47]MH_I2C_Read... [21:27:47]Read from MH i2c: 01 [21:27:47]MH_I2C_Read... [21:27:47]Read from MH i2c: 01 07 00 [21:27:47]MH_I2C_Read... [21:27:47]Read from MH i2c: 01 07 00 D3 1B 00 00 00 00 00 FF 0F 03 [21:27:47]RasterBufferAndPrint [21:27:47]line Счет N : (1)2885312 [21:27:47]line ИНН: 02508201610067 [21:27:47]line Контрольно-Кассовый Чек [21:27:47]line ПРОДАЖА [21:27:47]line ТРК (МРК, ГНК) : 71 [21:27:47]line Товар: 2711129700 [21:27:47]line ГАЗ-К-3 [21:27:47]line 10.290 * 38.90 [21:27:47]line = 400.28 [21:27:47]line НДС 12% НСП 1% [21:27:47]line > о реализуемом товаре [21:27:47]line ОКРУГЛЕНИЕ: -0.28 [21:27:47]line ИТОГО: 400.00 [21:27:47]line Внесено: 400.00 [21:27:47]line СДАЧА: 0.00 [21:27:47]line НСП 1% : 3.54 [21:27:47]line НДС 12% : 42.51 [21:27:47]line Наличными: 400.00 [21:27:47]line Безнал.: 0.00 [21:27:47]line Место: АЗС № 85 "Партнер Нефть" [21:27:47]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:27:47]line СНО: Общий режим [21:27:47]line Чек 418 20.10.2024 21:27 [21:27:47]line Смена: 193 ФФД: 1.0 [21:27:47]line ЗНМ: 0300000167 [21:27:47]line РНМ: 0000000000156251 [21:27:47]line Версия ККМ: v1.0 [21:27:47]line ФМ: 0000000000963346 [21:27:47]line ФД: 69573 [21:27:47]line ФПД: 218817504196898 [21:27:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T212746&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69573&fm=218817504196898&tin=02508201610067®Number=0000000000156251&sum=40000 [21:27:47]OFD Sender: Processing packet 69573 [packets to send 18, broken 17] [21:27:47]ProducePacketName [21:27:47]name=ofd_packets/00069573 [21:27:47]OFD Sender: To server: pG, [21:27:47]CommunicateWithHost lk.salyk.kg:30040 [21:27:47]ConnectInit lk.salyk.kg [21:27:47]written 0, free lines is 4095 [21:27:47]Connected sock=9 [21:27:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 07 3D 06 01 D8 29 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 5C 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 01 00 00 F4 03 04 00 D2 75 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C5 0F 01 00 35 04 06 00 C7 03 6B 9B B9 22 1F 7E C2 09 C8 C5 3C 7E [21:27:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 56 3B 47 00 62 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C5 0F 01 00 F4 03 04 00 78 1F 15 67 B6 04 01 00 00 11 33 79 1E 6C 49 90 33 [21:27:48]CommunicateWithHost err = 0 [21:27:48]CheckOFDResponse [21:27:48]1017 (14) - 77093643461234 [21:27:48]1041 (16) - 0000000000963346 [21:27:48]1040 (4) - 69573 [21:27:48]1012 (4) - 20.10.2024 15:19 [21:27:48]1206 (1) - 0 [21:27:48]OFD Sender: Remove packet 69573 [21:27:48]ProducePacketName [21:27:48]name=ofd_packets/00069573 [21:27:48]NVStorageDeleteData [21:27:48]Write to MH i2c: 01 00 00 FE 1B 19 [21:27:48]Write i2c OK [21:27:48]MH_I2C_Read... [21:27:48]Read from MH i2c: 01 [21:27:48]MH_I2C_Read... [21:27:48]Read from MH i2c: 01 07 00 [21:27:48]MH_I2C_Read... [21:27:48]Read from MH i2c: 01 07 00 FE 1B 00 00 00 00 00 FB 0C 27 [21:27:48]RasterBufferAndPrint [21:27:48]line [21:27:48]line [21:27:48]line [21:27:48]line [21:27:48]line [21:27:48]written 0, free lines is 3332 [21:27:48]MH_Cut [21:27:48]Write to MH i2c: D1 01 00 05 1C 01 F3 [21:27:48]Write i2c OK [21:27:48]MH_I2C_Read... [21:27:48]Read from MH i2c: D1 [21:27:48]MH_I2C_Read... [21:27:48]Read from MH i2c: D1 01 00 [21:27:48]MH_I2C_Read... [21:27:48]Read from MH i2c: D1 01 00 05 1C 00 F2 [21:27:48]Write to MH i2c: 01 00 00 06 1C 22 [21:27:48]Write i2c OK [21:27:48]MH_I2C_Read... [21:27:48]OFD Sender: No OFD packet to send [21:27:48]*** Cut start [21:27:48]*** Partial cut [21:27:48]*** CUTSNS_PIN = 1 [21:27:48]*** CUTSNS_PIN = 0 [21:27:49]*** Brake cut motor [21:27:49]Read from MH i2c: 01 [21:27:49]MH_I2C_Read... [21:27:49]*** Stop cut motor [21:27:49]*** Cut end [21:27:49]Read from MH i2c: 01 07 00 [21:27:49]MH_I2C_Read... [21:27:49]Read from MH i2c: 01 07 00 06 1C 00 00 00 00 00 FF 0F 37 [21:27:49]process_action close_receipt done [21:27:49]requested_data is exist [21:27:49]produce_requested_data [21:27:49]requested_item fm.sn is exist - process it [21:27:49]wFMCommunicate request_size=4 [21:27:49]MH_SAM_APDU [21:27:49]CAPDU: 80 11 00 00 [21:27:49]Write to MH i2c: E2 08 00 07 1C 80 11 00 00 00 00 00 00 9D [21:27:49]Write i2c OK [21:27:49]MH_I2C_Read... [21:27:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:49]Read from MH i2c: E2 [21:27:49]MH_I2C_Read... [21:27:49]Read from MH i2c: E2 17 00 [21:27:49]MH_I2C_Read... [21:27:49]Read from MH i2c: E2 17 00 07 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EF [21:27:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:27:49]wFMCommunicate OK [21:27:49]requested_item fd.num is exist - process it [21:27:49]SAM_PROTO_GetFieldsCounters [21:27:49]wFMCommunicate request_size=4 [21:27:49]MH_SAM_APDU [21:27:49]CAPDU: 80 13 00 00 [21:27:49]Write to MH i2c: E2 08 00 08 1C 80 13 00 00 00 00 00 00 A0 [21:27:49]Write i2c OK [21:27:49]MH_I2C_Read... [21:27:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:27:49]Read from MH i2c: E2 [21:27:49]MH_I2C_Read... [21:27:49]Read from MH i2c: E2 62 00 [21:27:49]MH_I2C_Read... [21:27:49]Read from MH i2c: E2 62 00 08 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C5 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 A2 01 00 00 5E 04 04 00 A2 01 00 00 57 04 04 00 A3 01 00 00 19 04 04 00 00 00 00 00 90 00 3A [21:27:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C5 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 A2 01 00 00 5E 04 04 00 A2 01 00 00 57 04 04 00 A3 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:27:49]wFMCommunicate OK [21:27:49]SAM_PROTO_GetFieldsCounters done [21:27:49]requested_item shift.num is exist - process it [21:27:49]requested_item shift.opened is exist - process it [21:27:49]req_shift_opened [21:27:49]FM_GetShiftState [21:27:49]SAM_PROTO_GetShiftState [21:27:49]wFMCommunicate request_size=4 [21:27:49]MH_SAM_APDU [21:27:49]CAPDU: 80 13 01 00 [21:27:49]Write to MH i2c: E2 08 00 09 1C 80 13 01 00 00 00 00 00 A2 [21:27:49]Write i2c OK [21:27:49]MH_I2C_Read... [21:27:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:49]Read from MH i2c: E2 [21:27:49]MH_I2C_Read... [21:27:49]Read from MH i2c: E2 0E 00 [21:27:49]MH_I2C_Read... [21:27:49]Read from MH i2c: E2 0E 00 09 1C 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 A8 [21:27:49]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [21:27:49]wFMCommunicate OK [21:27:49]SAM_PROTO_GetShiftState done [21:27:49]FM_GetShiftState done [21:27:49]req_shift_opened done [21:27:49]requested_item shift.open_date is exist - process it [21:27:49]req_shift_open_date [21:27:49]req_shift_open_date done [21:27:49]produce_requested_data done [21:27:49]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69573,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [21:27:49]process_action_free close_receipt [21:27:49]json_value_free [21:27:49]json_value_free done [21:27:49]process_json_proto returns [21:27:49]Send response to host [21:27:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69573,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [21:27:49]free response buf [21:27:49]execute_script done [21:27:49]execute_script returns [21:27:49]free content buf [21:27:49]Sock 10.Close socket [21:27:49]Sock 10.Thread stoped [21:27:53]OFD Sender: No OFD packet to send [21:27:58]OFD Sender: No OFD packet to send [21:28:03]OFD Sender: No OFD packet to send [21:28:08]OFD Sender: No OFD packet to send [21:28:13]OFD Sender: No OFD packet to send [21:28:18]OFD Sender: No OFD packet to send [21:28:23]OFD Sender: No OFD packet to send [21:28:28]OFD Sender: No OFD packet to send [21:28:33]OFD Sender: No OFD packet to send [21:28:38]OFD Sender: No OFD packet to send [21:28:43]OFD Sender: No OFD packet to send [21:28:48]OFD Sender: No OFD packet to send [21:28:53]OFD Sender: No OFD packet to send [21:28:58]OFD Sender: No OFD packet to send [21:29:03]OFD Sender: No OFD packet to send [21:29:08]OFD Sender: No OFD packet to send [21:29:13]OFD Sender: No OFD packet to send [21:29:18]OFD Sender: No OFD packet to send [21:29:23]OFD Sender: No OFD packet to send [21:29:28]OFD Sender: No OFD packet to send [21:29:33]OFD Sender: No OFD packet to send [21:29:38]OFD Sender: No OFD packet to send [21:29:43]OFD Sender: No OFD packet to send [21:29:48]OFD Sender: No OFD packet to send [21:29:53]OFD Sender: No OFD packet to send [21:29:58]OFD Sender: No OFD packet to send [21:30:03]OFD Sender: No OFD packet to send [21:30:08]OFD Sender: No OFD packet to send [21:30:13]OFD Sender: No OFD packet to send [21:30:18]OFD Sender: No OFD packet to send [21:30:23]OFD Sender: No OFD packet to send [21:30:28]accept exits with 7 [21:30:28]New connection [21:30:28]New thread 3066654052 created [21:30:28]Thread 3066797412 joined [21:30:28]Waiting for new connection... [21:30:28] Sock 7.Parse request [21:30:28]Sock 7.Check first char [21:30:28]Sock 7.First char is OK [21:30:28]request: POST /json_proto HTTP/1.0 [21:30:28]Method: POST [21:30:28]URL: /json_proto [21:30:28]Method is POST - this is cgi request [21:30:28]url: /json_proto [21:30:28]query_string will be loaded in cgi processing [21:30:28]execute_cgi json_proto POST (null) [21:30:28]execute_cgi path=json_proto method=POST [21:30:28]POST find Content-Length [21:30:28]Host: 172.17.50.3:8080 [21:30:28]Content-Length: 755 [21:30:28]Content-Type: application/json [21:30:28] [21:30:28]POST finish read [21:30:28]Found Content-Length = 755 [21:30:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\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\u041A \u0413\u041F\u041D\u0410 Online\u000A30100970", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:30:28]execute_script... [21:30:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\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\u041A \u0413\u041F\u041D\u0410 Online\u000A30100970", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:30:28]POST & json_proto [21:30:28]process_json_proto [21:30:28]json parsed OK: [21:30:28]protocol is kg_v1.0 [21:30:28]action value=close_receipt [21:30:28]process_action close_receipt [21:30:28]cmd_close_receipt [21:30:28]MH_GetDate [21:30:28]Write to MH i2c: F0 00 00 0A 1C 15 [21:30:28]Write i2c OK [21:30:28]MH_I2C_Read... [21:30:28]Read from MH i2c: F0 [21:30:28]MH_I2C_Read... [21:30:28]Read from MH i2c: F0 09 00 [21:30:28]MH_I2C_Read... [21:30:28]Read from MH i2c: F0 09 00 0A 1C 00 75 76 15 67 6B 98 1E 66 0C [21:30:28]GetLastDocTimeStamp 1729459666 [21:30:28]current date 1729459829 [21:30:28]FM_GetShiftState [21:30:28]SAM_PROTO_GetShiftState [21:30:28]wFMCommunicate request_size=4 [21:30:28]MH_SAM_APDU [21:30:28]CAPDU: 80 13 01 00 [21:30:28]Write to MH i2c: E2 08 00 0B 1C 80 13 01 00 00 00 00 00 A4 [21:30:28]Write i2c OK [21:30:28]MH_I2C_Read... [21:30:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:30:28]Read from MH i2c: E2 [21:30:28]MH_I2C_Read... [21:30:28]Read from MH i2c: E2 0E 00 [21:30:28]MH_I2C_Read... [21:30:28]Read from MH i2c: E2 0E 00 0B 1C 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 AA [21:30:28]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [21:30:28]wFMCommunicate OK [21:30:28]SAM_PROTO_GetShiftState done [21:30:28]FM_GetShiftState done [21:30:28]opened in 1729383220 [21:30:28]opened+sec_in_day 1729469620 [21:30:28]quantity*price = 0 [21:30:28]sum+1 = 1 [21:30:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 419 20.10.2024 21:30 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30100970 ФМ: 0000000000963346 ФД: 69574 ФПД: 12201012398912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T213029&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69574&fm=12201012398912&tin=02508201610067®Number=0000000000156251&sum=0 [21:30:29]StoreToDocumentArchive [21:30:29]shift 193 fd 69574 [21:30:29]save to /storage/0193/doc_00069574 [21:30:29]save last doc name /storage/0193/doc_00069574 to /storage/kkm_last_doc_name [21:30:29]save OK [21:30:29]Clear old archive folders... [21:30:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:30:29]tlvbuf is 00F41CC0 [21:30:29]SAM_PROTO_ClearQueue [21:30:29]wFMCommunicate request_size=4 [21:30:29]MH_SAM_APDU [21:30:29]CAPDU: 80 09 00 00 [21:30:29]Write to MH i2c: E2 08 00 18 1C 80 09 00 00 00 00 00 00 A6 [21:30:29]Write i2c OK [21:30:29]MH_I2C_Read... [21:30:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:30:29]Read from MH i2c: E2 [21:30:29]MH_I2C_Read... [21:30:29]Read from MH i2c: E2 03 00 [21:30:29]MH_I2C_Read... [21:30:29]Read from MH i2c: E2 03 00 18 1C 00 90 00 A8 [21:30:29]RAPDU: 90 00 [21:30:29]wFMCommunicate OK [21:30:29]SAM_PROTO_ClearQueue done [21:30:29]KKMCreateOFDPacket [21:30:29]OFDProtocolAddRootSTLVToBuf [21:30:29]FM_MakeSignedData [21:30:29]FM_MakeSignedData [21:30:29]SAM_PROTO_SignData [21:30:29]wFMCommunicate request_size=4 [21:30:29]MH_SAM_APDU [21:30:29]CAPDU: 80 0D 01 02 [21:30:29]Write to MH i2c: E2 08 00 19 1C 80 0D 01 02 00 00 00 00 AE [21:30:29]Write i2c OK [21:30:29]MH_I2C_Read... [21:30:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:30:29]Read from MH i2c: E2 [21:30:29]MH_I2C_Read... [21:30:29]Read from MH i2c: E2 03 00 [21:30:29]MH_I2C_Read... [21:30:29]Read from MH i2c: E2 03 00 19 1C 00 90 00 A9 [21:30:29]RAPDU: 90 00 [21:30:29]wFMCommunicate OK [21:30:29]wFMCommunicate request_size=255 [21:30:29]MH_SAM_APDU [21:30:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 A3 01 00 00 F4 03 04 00 75 76 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C6 0F 01 00 35 04 06 00 0B [21:30:29]Write to MH i2c: E2 02 01 1A 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 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 A3 01 00 00 F4 03 04 00 75 76 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C6 0F 01 00 35 04 06 00 0B 00 00 96 [21:30:29]Write i2c OK [21:30:29]MH_I2C_Read... [21:30:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:30:29]Read from MH i2c: E2 [21:30:29]MH_I2C_Read... [21:30:29]Read from MH i2c: E2 03 00 [21:30:29]MH_I2C_Read... [21:30:29]Read from MH i2c: E2 03 00 1A 1C 00 90 00 AA [21:30:29]RAPDU: 90 00 [21:30:29]wFMCommunicate OK [21:30:29]wFMCommunicate request_size=10 [21:30:29]MH_SAM_APDU [21:30:29]CAPDU: 80 0D 02 02 05 18 C5 02 8B 40 [21:30:29]Write to MH i2c: E2 0D 00 1B 1C 80 0D 02 02 05 00 18 C5 02 8B 40 00 00 65 [21:30:29]Write i2c OK [21:30:29]MH_I2C_Read... [21:30:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:30:29]Read from MH i2c: E2 [21:30:29]MH_I2C_Read... [21:30:29]Read from MH i2c: E2 03 00 [21:30:29]MH_I2C_Read... [21:30:29]Read from MH i2c: E2 03 00 1B 1C 00 90 00 AB [21:30:29]RAPDU: 90 00 [21:30:29]wFMCommunicate OK [21:30:29]wFMCommunicate request_size=4 [21:30:29]MH_SAM_APDU [21:30:29]CAPDU: 80 0D 03 02 [21:30:29]Write to MH i2c: E2 08 00 1C 1C 80 0D 03 02 00 00 00 00 B3 [21:30:29]Write i2c OK [21:30:29]MH_I2C_Read... [21:30:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:30:29]Read from MH i2c: E2 [21:30:29]MH_I2C_Read... [21:30:29]Read from MH i2c: E2 0B 00 [21:30:29]MH_I2C_Read... [21:30:29]Read from MH i2c: E2 0B 00 1C 1C 00 01 8C D9 40 71 CE 55 5C 90 00 4A [21:30:29]RAPDU: 01 8C D9 40 71 CE 55 5C 90 00 [21:30:29]wFMCommunicate OK [21:30:29]SAM_PROTO_SignData done [21:30:29]FM_MakeSignedData done [21:30:29]CreateOFDProtocolMessage [21:30:29]wFMCommunicate request_size=4 [21:30:29]MH_SAM_APDU [21:30:29]CAPDU: 80 11 00 00 [21:30:29]Write to MH i2c: E2 08 00 1D 1C 80 11 00 00 00 00 00 00 B3 [21:30:29]Write i2c OK [21:30:29]MH_I2C_Read... [21:30:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:30:29]Read from MH i2c: E2 [21:30:29]MH_I2C_Read... [21:30:29]Read from MH i2c: E2 17 00 [21:30:29]MH_I2C_Read... [21:30:29]Read from MH i2c: E2 17 00 1D 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 05 [21:30:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:30:29]wFMCommunicate OK [21:30:29]CreateOFDProtocolMessage done [21:30:29]OFDSenderStorePacket 69574 [21:30:29]StoreOFDPacket docnum=69574 [21:30:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 48 40 07 01 B5 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 A3 01 00 00 F4 03 04 00 75 76 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C6 0F 01 00 35 04 06 00 0B 18 C5 02 8B 40 01 8C D9 40 71 CE 55 5C [21:30:29]CheckFolder [21:30:29]dirname=/storage/ofd_packets [21:30:29]CheckFolder done [21:30:29]ProducePacketName [21:30:29]name=ofd_packets/00069574 [21:30:29]NVStorageSaveData ofd_packets/00069574 [21:30:29]File name is /storage/ofd_packets/00069574 [21:30:29]Write 301 bytes [21:30:29]NVStorageSaveData done [21:30:29]OFDSenderStorePacket done [21:30:29]KKMCreateOFDPacket done [21:30:29]NVStorageSaveData kkm_last_timestamp [21:30:29]File name is /storage/kkm_last_timestamp [21:30:29]Write 4 bytes [21:30:29]NVStorageSaveData done [21:30:29]ExternCall_PrintAddStr [21:30:29]wPrintStart [21:30:29]Write to MH i2c: 01 00 00 1E 1C 3A [21:30:29]Write i2c OK [21:30:29]MH_I2C_Read... [21:30:29]Read from MH i2c: 01 [21:30:29]MH_I2C_Read... [21:30:29]Read from MH i2c: 01 07 00 [21:30:29]MH_I2C_Read... [21:30:29]Read from MH i2c: 01 07 00 1E 1C 00 00 00 00 00 FF 0F 4F [21:30:29]RasterBufferAndPrint [21:30:29]line Счет N : (1)2885313 [21:30:29]line ИНН: 02508201610067 [21:30:29]line Контрольно-Кассовый Чек [21:30:29]line ПРОДАЖА [21:30:29]line ТРК (МРК, ГНК) : 32 [21:30:29]line Товар: 2710124130 [21:30:29]line Аи-92-К-5 [21:30:29]line 10.000 * 0.00 [21:30:29]line = 0.00 [21:30:29]line НДС 12% НСП 1% [21:30:29]line > о реализуемом товаре [21:30:29]line ИТОГО: 0.00 [21:30:29]line НСП 1% : 0.00 [21:30:29]line НДС 12% : 0.00 [21:30:29]line Наличными: 0.00 [21:30:29]line Безнал.: 0.00 [21:30:29]line Место: АЗС № 85 "Партнер Нефть" [21:30:29]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:30:29]line СНО: Общий режим [21:30:29]line Чек 419 20.10.2024 21:30 [21:30:29]line Смена: 193 ФФД: 1.0 [21:30:29]line ЗНМ: 0300000167 [21:30:29]line РНМ: 0000000000156251 [21:30:29]line Версия ККМ: v1.0 [21:30:29]line Талоны: ТК ГПНА Online [21:30:29]line 30100970 [21:30:29]line ФМ: 0000000000963346 [21:30:29]line ФД: 69574 [21:30:29]line ФПД: 12201012398912 [21:30:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T213029&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69574&fm=12201012398912&tin=02508201610067®Number=0000000000156251&sum=0 [21:30:30]OFD Sender: Processing packet 69574 [packets to send 18, broken 17] [21:30:30]ProducePacketName [21:30:30]name=ofd_packets/00069574 [21:30:30]OFD Sender: To server: pG, [21:30:30]CommunicateWithHost lk.salyk.kg:30040 [21:30:30]ConnectInit lk.salyk.kg [21:30:30]written 0, free lines is 4095 [21:30:30]Connected sock=10 [21:30:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 48 40 07 01 B5 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 A3 01 00 00 F4 03 04 00 75 76 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C6 0F 01 00 35 04 06 00 0B 18 C5 02 8B 40 01 8C D9 40 71 CE 55 5C [21:30:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 FA 40 47 00 4A 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C6 0F 01 00 F4 03 04 00 1A 20 15 67 B6 04 01 00 00 86 4F 88 E5 01 7F C8 34 [21:30:30]CommunicateWithHost err = 0 [21:30:30]CheckOFDResponse [21:30:30]1017 (14) - 77093643461234 [21:30:30]1041 (16) - 0000000000963346 [21:30:30]1040 (4) - 69574 [21:30:30]1012 (4) - 20.10.2024 15:22 [21:30:30]1206 (1) - 0 [21:30:30]OFD Sender: Remove packet 69574 [21:30:30]ProducePacketName [21:30:30]name=ofd_packets/00069574 [21:30:30]NVStorageDeleteData [21:30:30]Write to MH i2c: 01 00 00 48 1C 64 [21:30:30]Write i2c OK [21:30:30]MH_I2C_Read... [21:30:30]Read from MH i2c: 01 [21:30:30]MH_I2C_Read... [21:30:30]Read from MH i2c: 01 07 00 [21:30:30]MH_I2C_Read... [21:30:30]Read from MH i2c: 01 07 00 48 1C 00 00 00 00 00 04 0D 7C [21:30:30]RasterBufferAndPrint [21:30:30]line [21:30:30]line [21:30:30]line [21:30:30]line [21:30:30]line [21:30:30]written 0, free lines is 3339 [21:30:30]MH_Cut [21:30:30]Write to MH i2c: D1 01 00 4F 1C 01 3D [21:30:30]Write i2c OK [21:30:30]MH_I2C_Read... [21:30:30]Read from MH i2c: D1 [21:30:30]MH_I2C_Read... [21:30:30]Read from MH i2c: D1 01 00 [21:30:30]MH_I2C_Read... [21:30:30]Read from MH i2c: D1 01 00 4F 1C 00 3C [21:30:30]Write to MH i2c: 01 00 00 50 1C 6C [21:30:30]Write i2c OK [21:30:30]MH_I2C_Read... [21:30:30]OFD Sender: No OFD packet to send [21:30:31]*** Cut start [21:30:31]*** Partial cut [21:30:31]*** CUTSNS_PIN = 1 [21:30:31]*** CUTSNS_PIN = 0 [21:30:31]*** Brake cut motor [21:30:31]Read from MH i2c: 01 [21:30:31]MH_I2C_Read... [21:30:31]*** Stop cut motor [21:30:31]*** Cut end [21:30:31]Read from MH i2c: 01 07 00 [21:30:31]MH_I2C_Read... [21:30:31]Read from MH i2c: 01 07 00 50 1C 00 00 00 00 00 FF 0F 81 [21:30:31]process_action close_receipt done [21:30:31]requested_data is exist [21:30:31]produce_requested_data [21:30:31]requested_item fm.sn is exist - process it [21:30:31]wFMCommunicate request_size=4 [21:30:31]MH_SAM_APDU [21:30:31]CAPDU: 80 11 00 00 [21:30:31]Write to MH i2c: E2 08 00 51 1C 80 11 00 00 00 00 00 00 E7 [21:30:31]Write i2c OK [21:30:31]MH_I2C_Read... [21:30:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:30:31]Read from MH i2c: E2 [21:30:31]MH_I2C_Read... [21:30:31]Read from MH i2c: E2 17 00 [21:30:31]MH_I2C_Read... [21:30:31]Read from MH i2c: E2 17 00 51 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 39 [21:30:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:30:31]wFMCommunicate OK [21:30:31]requested_item fd.num is exist - process it [21:30:31]SAM_PROTO_GetFieldsCounters [21:30:31]wFMCommunicate request_size=4 [21:30:31]MH_SAM_APDU [21:30:31]CAPDU: 80 13 00 00 [21:30:31]Write to MH i2c: E2 08 00 52 1C 80 13 00 00 00 00 00 00 EA [21:30:31]Write i2c OK [21:30:31]MH_I2C_Read... [21:30:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:30:32]Read from MH i2c: E2 [21:30:32]MH_I2C_Read... [21:30:32]Read from MH i2c: E2 62 00 [21:30:32]MH_I2C_Read... [21:30:32]Read from MH i2c: E2 62 00 52 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C6 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 A3 01 00 00 5E 04 04 00 A3 01 00 00 57 04 04 00 A4 01 00 00 19 04 04 00 00 00 00 00 90 00 88 [21:30:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C6 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 A3 01 00 00 5E 04 04 00 A3 01 00 00 57 04 04 00 A4 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:30:32]wFMCommunicate OK [21:30:32]SAM_PROTO_GetFieldsCounters done [21:30:32]requested_item shift.num is exist - process it [21:30:32]requested_item shift.opened is exist - process it [21:30:32]req_shift_opened [21:30:32]FM_GetShiftState [21:30:32]SAM_PROTO_GetShiftState [21:30:32]wFMCommunicate request_size=4 [21:30:32]MH_SAM_APDU [21:30:32]CAPDU: 80 13 01 00 [21:30:32]Write to MH i2c: E2 08 00 53 1C 80 13 01 00 00 00 00 00 EC [21:30:32]Write i2c OK [21:30:32]MH_I2C_Read... [21:30:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:30:32]Read from MH i2c: E2 [21:30:32]MH_I2C_Read... [21:30:32]Read from MH i2c: E2 0E 00 [21:30:32]MH_I2C_Read... [21:30:32]Read from MH i2c: E2 0E 00 53 1C 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 F2 [21:30:32]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [21:30:32]wFMCommunicate OK [21:30:32]SAM_PROTO_GetShiftState done [21:30:32]FM_GetShiftState done [21:30:32]req_shift_opened done [21:30:32]requested_item shift.open_date is exist - process it [21:30:32]req_shift_open_date [21:30:32]req_shift_open_date done [21:30:32]produce_requested_data done [21:30:32]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69574,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [21:30:32]process_action_free close_receipt [21:30:32]json_value_free [21:30:32]json_value_free done [21:30:32]process_json_proto returns [21:30:32]Send response to host [21:30:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69574,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [21:30:32]free response buf [21:30:32]execute_script done [21:30:32]execute_script returns [21:30:32]free content buf [21:30:32]Sock 7.Close socket [21:30:32]Sock 7.Thread stoped [21:30:35]OFD Sender: No OFD packet to send [21:30:40]OFD Sender: No OFD packet to send [21:30:45]OFD Sender: No OFD packet to send [21:30:50]OFD Sender: No OFD packet to send [21:30:55]OFD Sender: No OFD packet to send [21:31:00]OFD Sender: No OFD packet to send [21:31:05]OFD Sender: No OFD packet to send [21:31:10]OFD Sender: No OFD packet to send [21:31:15]OFD Sender: No OFD packet to send [21:31:16]accept exits with 9 [21:31:16]New connection [21:31:16]New thread 3066797412 created [21:31:16]Thread 3066654052 joined [21:31:16]Waiting for new connection... [21:31:16] Sock 9.Parse request [21:31:16]Sock 9.Check first char [21:31:16]Sock 9.First char is OK [21:31:16]request: POST /json_proto HTTP/1.0 [21:31:16]Method: POST [21:31:16]URL: /json_proto [21:31:16]Method is POST - this is cgi request [21:31:16]url: /json_proto [21:31:16]query_string will be loaded in cgi processing [21:31:16]execute_cgi json_proto POST (null) [21:31:16]execute_cgi path=json_proto method=POST [21:31:16]POST find Content-Length [21:31:16]Host: 172.17.50.3:8080 [21:31:16]Content-Length: 680 [21:31:16]Content-Type: application/json [21:31:16] [21:31:16]POST finish read [21:31:16]Found Content-Length = 680 [21:31:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:16]execute_script... [21:31: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)2885314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:16]POST & json_proto [21:31:16]process_json_proto [21:31:16]json parsed OK: [21:31:16]protocol is kg_v1.0 [21:31:16]action value=close_receipt [21:31:16]process_action close_receipt [21:31:16]cmd_close_receipt [21:31:16]MH_GetDate [21:31:16]Write to MH i2c: F0 00 00 54 1C 5F [21:31:16]Write i2c OK [21:31:16]MH_I2C_Read... [21:31:16]Read from MH i2c: F0 [21:31:16]MH_I2C_Read... [21:31:16]Read from MH i2c: F0 09 00 [21:31:16]MH_I2C_Read... [21:31:16]Read from MH i2c: F0 09 00 54 1C 00 A5 76 15 67 6B 98 1E 66 86 [21:31:16]GetLastDocTimeStamp 1729459829 [21:31:16]current date 1729459877 [21:31:16]FM_GetShiftState [21:31:16]SAM_PROTO_GetShiftState [21:31:16]wFMCommunicate request_size=4 [21:31:16]MH_SAM_APDU [21:31:16]CAPDU: 80 13 01 00 [21:31:16]Write to MH i2c: E2 08 00 55 1C 80 13 01 00 00 00 00 00 EE [21:31:16]Write i2c OK [21:31:16]MH_I2C_Read... [21:31:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:16]Read from MH i2c: E2 [21:31:16]MH_I2C_Read... [21:31:16]Read from MH i2c: E2 0E 00 [21:31:16]MH_I2C_Read... [21:31:16]Read from MH i2c: E2 0E 00 55 1C 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 F4 [21:31:16]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [21:31:16]wFMCommunicate OK [21:31:16]SAM_PROTO_GetShiftState done [21:31:16]FM_GetShiftState done [21:31:16]opened in 1729383220 [21:31:16]opened+sec_in_day 1729469620 [21:31:16]quantity*price = 100050 [21:31:16]sum+1 = 100052 [21:31:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 420 20.10.2024 21:31 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69575 ФПД: 243668789827262 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T213117&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69575&fm=243668789827262&tin=02508201610067®Number=0000000000156251&sum=100000 [21:31:17]StoreToDocumentArchive [21:31:17]shift 193 fd 69575 [21:31:17]save to /storage/0193/doc_00069575 [21:31:17]save last doc name /storage/0193/doc_00069575 to /storage/kkm_last_doc_name [21:31:17]save OK [21:31:17]Clear old archive folders... [21:31:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:31:17]tlvbuf is B6F32230 [21:31:17]SAM_PROTO_ClearQueue [21:31:17]wFMCommunicate request_size=4 [21:31:17]MH_SAM_APDU [21:31:17]CAPDU: 80 09 00 00 [21:31:17]Write to MH i2c: E2 08 00 62 1C 80 09 00 00 00 00 00 00 F0 [21:31:17]Write i2c OK [21:31:17]MH_I2C_Read... [21:31:17]Read from MH i2c: E2 [21:31:17]MH_I2C_Read... [21:31:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:31:17]Read from MH i2c: E2 03 00 [21:31:17]MH_I2C_Read... [21:31:17]Read from MH i2c: E2 03 00 62 1C 00 90 00 F2 [21:31:17]RAPDU: 90 00 [21:31:17]wFMCommunicate OK [21:31:17]SAM_PROTO_ClearQueue done [21:31:17]KKMCreateOFDPacket [21:31:17]OFDProtocolAddRootSTLVToBuf [21:31:17]FM_MakeSignedData [21:31:17]FM_MakeSignedData [21:31:17]SAM_PROTO_SignData [21:31:17]wFMCommunicate request_size=4 [21:31:17]MH_SAM_APDU [21:31:17]CAPDU: 80 0D 01 02 [21:31:17]Write to MH i2c: E2 08 00 63 1C 80 0D 01 02 00 00 00 00 F8 [21:31:17]Write i2c OK [21:31:17]MH_I2C_Read... [21:31:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:31:17]Read from MH i2c: E2 [21:31:17]MH_I2C_Read... [21:31:17]Read from MH i2c: E2 03 00 [21:31:17]MH_I2C_Read... [21:31:17]Read from MH i2c: E2 03 00 63 1C 00 90 00 F3 [21:31:17]RAPDU: 90 00 [21:31:17]wFMCommunicate OK [21:31:17]wFMCommunicate request_size=255 [21:31:17]MH_SAM_APDU [21:31:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 01 00 00 F4 03 04 00 A5 76 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C7 0F 01 00 35 04 06 00 DD 9D 8F A9 [21:31:17]Write to MH i2c: E2 02 01 64 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 01 00 00 F4 03 04 00 A5 76 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C7 0F 01 00 35 04 06 00 DD 9D 8F A9 00 00 FD [21:31:17]Write i2c OK [21:31:17]MH_I2C_Read... [21:31:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:17]Read from MH i2c: E2 [21:31:17]MH_I2C_Read... [21:31:17]Read from MH i2c: E2 03 00 [21:31:17]MH_I2C_Read... [21:31:17]Read from MH i2c: E2 03 00 64 1C 00 90 00 F4 [21:31:17]RAPDU: 90 00 [21:31:17]wFMCommunicate OK [21:31:17]wFMCommunicate request_size=7 [21:31:17]MH_SAM_APDU [21:31:17]CAPDU: 80 0D 02 02 02 16 BE [21:31:17]Write to MH i2c: E2 0A 00 65 1C 80 0D 02 02 02 00 16 BE 00 00 D3 [21:31:17]Write i2c OK [21:31:17]MH_I2C_Read... [21:31:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:17]Read from MH i2c: E2 [21:31:17]MH_I2C_Read... [21:31:17]Read from MH i2c: E2 03 00 [21:31:17]MH_I2C_Read... [21:31:17]Read from MH i2c: E2 03 00 65 1C 00 90 00 F5 [21:31:17]RAPDU: 90 00 [21:31:17]wFMCommunicate OK [21:31:17]wFMCommunicate request_size=4 [21:31:17]MH_SAM_APDU [21:31:17]CAPDU: 80 0D 03 02 [21:31:17]Write to MH i2c: E2 08 00 66 1C 80 0D 03 02 00 00 00 00 FD [21:31:17]Write i2c OK [21:31:17]MH_I2C_Read... [21:31:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:31:17]Read from MH i2c: E2 [21:31:17]MH_I2C_Read... [21:31:17]Read from MH i2c: E2 0B 00 [21:31:17]MH_I2C_Read... [21:31:17]Read from MH i2c: E2 0B 00 66 1C 00 A5 9D 53 68 49 D5 8B 74 90 00 18 [21:31:17]RAPDU: A5 9D 53 68 49 D5 8B 74 90 00 [21:31:17]wFMCommunicate OK [21:31:17]SAM_PROTO_SignData done [21:31:17]FM_MakeSignedData done [21:31:17]CreateOFDProtocolMessage [21:31:17]wFMCommunicate request_size=4 [21:31:17]MH_SAM_APDU [21:31:17]CAPDU: 80 11 00 00 [21:31:17]Write to MH i2c: E2 08 00 67 1C 80 11 00 00 00 00 00 00 FD [21:31:17]Write i2c OK [21:31:17]MH_I2C_Read... [21:31:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:17]Read from MH i2c: E2 [21:31:17]MH_I2C_Read... [21:31:17]Read from MH i2c: E2 17 00 [21:31:17]MH_I2C_Read... [21:31:17]Read from MH i2c: E2 17 00 67 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4F [21:31:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:31:17]wFMCommunicate OK [21:31:17]CreateOFDProtocolMessage done [21:31:17]OFDSenderStorePacket 69575 [21:31:17]StoreOFDPacket docnum=69575 [21:31:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 4C F5 04 01 27 BE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 01 00 00 F4 03 04 00 A5 76 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C7 0F 01 00 35 04 06 00 DD 9D 8F A9 16 BE A5 9D 53 68 49 D5 8B 74 [21:31:17]CheckFolder [21:31:17]dirname=/storage/ofd_packets [21:31:17]CheckFolder done [21:31:17]ProducePacketName [21:31:17]name=ofd_packets/00069575 [21:31:17]NVStorageSaveData ofd_packets/00069575 [21:31:17]File name is /storage/ofd_packets/00069575 [21:31:17]Write 298 bytes [21:31:17]NVStorageSaveData done [21:31:17]OFDSenderStorePacket done [21:31:17]KKMCreateOFDPacket done [21:31:17]NVStorageSaveData kkm_last_timestamp [21:31:17]File name is /storage/kkm_last_timestamp [21:31:17]Write 4 bytes [21:31:17]NVStorageSaveData done [21:31:18]OFD Sender: Processing packet 69575 [packets to send 18, broken 17] [21:31:18]ProducePacketName [21:31:18]name=ofd_packets/00069575 [21:31:18]OFD Sender: To server: pG, [21:31:18]CommunicateWithHost lk.salyk.kg:30040 [21:31:18]ConnectInit lk.salyk.kg [21:31:18]ExternCall_PrintAddStr [21:31:18]wPrintStart [21:31:18]Write to MH i2c: 01 00 00 68 1C 84 [21:31:18]Write i2c OK [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: 01 [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: 01 07 00 [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: 01 07 00 68 1C 00 00 00 00 00 FF 0F 99 [21:31:18]RasterBufferAndPrint [21:31:18]line Счет N : (1)2885314 [21:31:18]line ИНН: 02508201610067 [21:31:18]line Контрольно-Кассовый Чек [21:31:18]line ПРОДАЖА [21:31:18]line ТРК (МРК, ГНК) : 51 [21:31:18]line Товар: 2710194210 [21:31:18]line ДТ-К-5 [21:31:18]line 13.130 * 76.20 [21:31:18]line = 1000.51 [21:31:18]line НДС 12% НСП 1% [21:31:18]line > о реализуемом товаре [21:31:18]line ОКРУГЛЕНИЕ: -0.51 [21:31:18]line ИТОГО: 1000.00 [21:31:18]line Внесено: 1000.00 [21:31:18]line СДАЧА: 0.00 [21:31:18]line НСП 1% : 8.85 [21:31:18]line НДС 12% : 106.25 [21:31:18]line Наличными: 1000.00 [21:31:18]line Безнал.: 0.00 [21:31:18]line Место: АЗС № 85 "Партнер Нефть" [21:31:18]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:31:18]line СНО: Общий режим [21:31:18]line Чек 420 20.10.2024 21:31 [21:31:18]line Смена: 193 ФФД: 1.0 [21:31:18]line ЗНМ: 0300000167 [21:31:18]line РНМ: 0000000000156251 [21:31:18]line Версия ККМ: v1.0 [21:31:18]line ФМ: 0000000000963346 [21:31:18]line ФД: 69575 [21:31:18]line ФПД: 243668789827262 [21:31:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T213117&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69575&fm=243668789827262&tin=02508201610067®Number=0000000000156251&sum=100000 [21:31:18]Connected sock=11 [21:31:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 4C F5 04 01 27 BE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 01 00 00 F4 03 04 00 A5 76 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C7 0F 01 00 35 04 06 00 DD 9D 8F A9 16 BE A5 9D 53 68 49 D5 8B 74 [21:31:18]written 0, free lines is 4095 [21:31:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 C9 97 47 00 FA C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C7 0F 01 00 F4 03 04 00 4B 20 15 67 B6 04 01 00 00 41 57 4A A6 66 7B 0E 2E [21:31:18]CommunicateWithHost err = 0 [21:31:18]CheckOFDResponse [21:31:18]1017 (14) - 77093643461234 [21:31:18]1041 (16) - 0000000000963346 [21:31:18]1040 (4) - 69575 [21:31:18]1012 (4) - 20.10.2024 15:22 [21:31:18]1206 (1) - 0 [21:31:18]OFD Sender: Remove packet 69575 [21:31:18]ProducePacketName [21:31:18]name=ofd_packets/00069575 [21:31:18]NVStorageDeleteData [21:31:18]Write to MH i2c: 01 00 00 93 1C AF [21:31:18]Write i2c OK [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: 01 [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: 01 07 00 [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: 01 07 00 93 1C 00 00 00 00 00 F4 0C B6 [21:31:18]RasterBufferAndPrint [21:31:18]line [21:31:18]line [21:31:18]line [21:31:18]line [21:31:18]line [21:31:18]written 0, free lines is 3322 [21:31:18]MH_Cut [21:31:18]Write to MH i2c: D1 01 00 9A 1C 01 88 [21:31:18]Write i2c OK [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: D1 [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: D1 01 00 [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: D1 01 00 9A 1C 00 87 [21:31:18]Write to MH i2c: 01 00 00 9B 1C B7 [21:31:18]Write i2c OK [21:31:18]MH_I2C_Read... [21:31:19]OFD Sender: No OFD packet to send [21:31:19]*** Cut start [21:31:19]*** Partial cut [21:31:19]*** CUTSNS_PIN = 1 [21:31:19]*** CUTSNS_PIN = 0 [21:31:19]*** Brake cut motor [21:31:20]Read from MH i2c: 01 [21:31:20]MH_I2C_Read... [21:31:20]*** Stop cut motor [21:31:20]*** Cut end [21:31:20]Read from MH i2c: 01 07 00 [21:31:20]MH_I2C_Read... [21:31:20]Read from MH i2c: 01 07 00 9B 1C 00 00 00 00 00 FF 0F CC [21:31:20]process_action close_receipt done [21:31:20]requested_data is exist [21:31:20]produce_requested_data [21:31:20]requested_item fm.sn is exist - process it [21:31:20]wFMCommunicate request_size=4 [21:31:20]MH_SAM_APDU [21:31:20]CAPDU: 80 11 00 00 [21:31:20]Write to MH i2c: E2 08 00 9C 1C 80 11 00 00 00 00 00 00 32 [21:31:20]Write i2c OK [21:31:20]MH_I2C_Read... [21:31:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:20]Read from MH i2c: E2 [21:31:20]MH_I2C_Read... [21:31:20]Read from MH i2c: E2 17 00 [21:31:20]MH_I2C_Read... [21:31:20]Read from MH i2c: E2 17 00 9C 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 84 [21:31:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:31:20]wFMCommunicate OK [21:31:20]requested_item fd.num is exist - process it [21:31:20]SAM_PROTO_GetFieldsCounters [21:31:20]wFMCommunicate request_size=4 [21:31:20]MH_SAM_APDU [21:31:20]CAPDU: 80 13 00 00 [21:31:20]Write to MH i2c: E2 08 00 9D 1C 80 13 00 00 00 00 00 00 35 [21:31:20]Write i2c OK [21:31:20]MH_I2C_Read... [21:31:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:31:20]Read from MH i2c: E2 [21:31:20]MH_I2C_Read... [21:31:20]Read from MH i2c: E2 62 00 [21:31:20]MH_I2C_Read... [21:31:20]Read from MH i2c: E2 62 00 9D 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C7 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 A4 01 00 00 5E 04 04 00 A4 01 00 00 57 04 04 00 A5 01 00 00 19 04 04 00 00 00 00 00 90 00 D7 [21:31:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C7 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 A4 01 00 00 5E 04 04 00 A4 01 00 00 57 04 04 00 A5 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:31:20]wFMCommunicate OK [21:31:20]SAM_PROTO_GetFieldsCounters done [21:31:20]requested_item shift.num is exist - process it [21:31:20]requested_item shift.opened is exist - process it [21:31:20]req_shift_opened [21:31:20]FM_GetShiftState [21:31:20]SAM_PROTO_GetShiftState [21:31:20]wFMCommunicate request_size=4 [21:31:20]MH_SAM_APDU [21:31:20]CAPDU: 80 13 01 00 [21:31:20]Write to MH i2c: E2 08 00 9E 1C 80 13 01 00 00 00 00 00 37 [21:31:20]Write i2c OK [21:31:20]MH_I2C_Read... [21:31:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:20]Read from MH i2c: E2 [21:31:20]MH_I2C_Read... [21:31:20]Read from MH i2c: E2 0E 00 [21:31:20]MH_I2C_Read... [21:31:20]Read from MH i2c: E2 0E 00 9E 1C 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 3D [21:31:20]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [21:31:20]wFMCommunicate OK [21:31:20]SAM_PROTO_GetShiftState done [21:31:20]FM_GetShiftState done [21:31:20]req_shift_opened done [21:31:20]requested_item shift.open_date is exist - process it [21:31:20]req_shift_open_date [21:31:20]req_shift_open_date done [21:31:20]produce_requested_data done [21:31:20]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69575,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [21:31:20]process_action_free close_receipt [21:31:20]json_value_free [21:31:20]json_value_free done [21:31:20]process_json_proto returns [21:31:20]Send response to host [21:31:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69575,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [21:31:20]free response buf [21:31:20]execute_script done [21:31:20]execute_script returns [21:31:20]free content buf [21:31:20]Sock 9.Close socket [21:31:20]Sock 9.Thread stoped [21:31:24]OFD Sender: No OFD packet to send [21:31:29]OFD Sender: No OFD packet to send [21:31:34]OFD Sender: No OFD packet to send [21:31:39]OFD Sender: No OFD packet to send [21:31:44]OFD Sender: No OFD packet to send [21:31:49]OFD Sender: No OFD packet to send [21:31:54]OFD Sender: No OFD packet to send [21:31:59]OFD Sender: No OFD packet to send [21:32:04]OFD Sender: No OFD packet to send [21:32:09]OFD Sender: No OFD packet to send [21:32:14]OFD Sender: No OFD packet to send [21:32:19]OFD Sender: No OFD packet to send [21:32:24]OFD Sender: No OFD packet to send [21:32:29]OFD Sender: No OFD packet to send [21:32:34]OFD Sender: No OFD packet to send [21:32:39]OFD Sender: No OFD packet to send [21:32:44]OFD Sender: No OFD packet to send [21:32:49]OFD Sender: No OFD packet to send [21:32:54]OFD Sender: No OFD packet to send [21:32:59]OFD Sender: No OFD packet to send [21:33:04]OFD Sender: No OFD packet to send [21:33:09]OFD Sender: No OFD packet to send [21:33:14]OFD Sender: No OFD packet to send [21:33:19]OFD Sender: No OFD packet to send [21:33:24]OFD Sender: No OFD packet to send [21:33:29]OFD Sender: No OFD packet to send [21:33:34]OFD Sender: No OFD packet to send [21:33:39]OFD Sender: No OFD packet to send [21:33:44]OFD Sender: No OFD packet to send [21:33:49]OFD Sender: No OFD packet to send [21:33:54]OFD Sender: No OFD packet to send [21:33:59]OFD Sender: No OFD packet to send [21:34:04]OFD Sender: No OFD packet to send [21:34:09]OFD Sender: No OFD packet to send [21:34:14]OFD Sender: No OFD packet to send [21:34:19]OFD Sender: No OFD packet to send [21:34:24]OFD Sender: No OFD packet to send [21:34:29]OFD Sender: No OFD packet to send [21:34:34]OFD Sender: No OFD packet to send [21:34:39]OFD Sender: No OFD packet to send [21:34:44]OFD Sender: No OFD packet to send [21:34:49]OFD Sender: No OFD packet to send [21:34:54]OFD Sender: No OFD packet to send [21:34:59]OFD Sender: No OFD packet to send [21:35:04]OFD Sender: No OFD packet to send [21:35:09]OFD Sender: No OFD packet to send [21:35:14]OFD Sender: No OFD packet to send [21:35:19]OFD Sender: No OFD packet to send [21:35:24]OFD Sender: No OFD packet to send [21:35:29]OFD Sender: No OFD packet to send [21:35:34]OFD Sender: No OFD packet to send [21:35:39]OFD Sender: No OFD packet to send [21:35:44]OFD Sender: No OFD packet to send [21:35:49]OFD Sender: No OFD packet to send [21:35:54]OFD Sender: No OFD packet to send [21:35:59]OFD Sender: No OFD packet to send [21:36:04]OFD Sender: No OFD packet to send [21:36:09]OFD Sender: No OFD packet to send [21:36:14]OFD Sender: No OFD packet to send [21:36:19]OFD Sender: No OFD packet to send [21:36:24]OFD Sender: No OFD packet to send [21:36:29]OFD Sender: No OFD packet to send [21:36:34]OFD Sender: No OFD packet to send [21:36:39]OFD Sender: No OFD packet to send [21:36:44]OFD Sender: No OFD packet to send [21:36:49]OFD Sender: No OFD packet to send [21:36:54]OFD Sender: No OFD packet to send [21:36:59]OFD Sender: No OFD packet to send [21:37:04]OFD Sender: No OFD packet to send [21:37:09]OFD Sender: No OFD packet to send [21:37:14]OFD Sender: No OFD packet to send [21:37:19]OFD Sender: No OFD packet to send [21:37:24]OFD Sender: No OFD packet to send [21:37:29]OFD Sender: No OFD packet to send [21:37:34]OFD Sender: No OFD packet to send [21:37:39]OFD Sender: No OFD packet to send [21:37:44]OFD Sender: No OFD packet to send [21:37:49]OFD Sender: No OFD packet to send [21:37:54]OFD Sender: No OFD packet to send [21:37:59]OFD Sender: No OFD packet to send [21:38:04]OFD Sender: No OFD packet to send [21:38:09]OFD Sender: No OFD packet to send [21:38:14]OFD Sender: No OFD packet to send [21:38:19]OFD Sender: No OFD packet to send [21:38:24]OFD Sender: No OFD packet to send [21:38:29]OFD Sender: No OFD packet to send [21:38:34]OFD Sender: No OFD packet to send [21:38:39]OFD Sender: No OFD packet to send [21:38:44]OFD Sender: No OFD packet to send [21:38:49]OFD Sender: No OFD packet to send [21:38:54]OFD Sender: No OFD packet to send [21:38:59]OFD Sender: No OFD packet to send [21:39:04]OFD Sender: No OFD packet to send [21:39:09]OFD Sender: No OFD packet to send [21:39:14]OFD Sender: No OFD packet to send [21:39:19]OFD Sender: No OFD packet to send [21:39:24]OFD Sender: No OFD packet to send [21:39:29]OFD Sender: No OFD packet to send [21:39:34]OFD Sender: No OFD packet to send [21:39:39]OFD Sender: No OFD packet to send [21:39:44]OFD Sender: No OFD packet to send [21:39:49]OFD Sender: No OFD packet to send [21:39:54]OFD Sender: No OFD packet to send [21:39:59]OFD Sender: No OFD packet to send [21:40:04]OFD Sender: No OFD packet to send [21:40:09]OFD Sender: No OFD packet to send [21:40:14]OFD Sender: No OFD packet to send [21:40:19]OFD Sender: No OFD packet to send [21:40:24]OFD Sender: No OFD packet to send [21:40:29]OFD Sender: No OFD packet to send [21:40:34]OFD Sender: No OFD packet to send [21:40:39]OFD Sender: No OFD packet to send [21:40:44]OFD Sender: No OFD packet to send [21:40:49]OFD Sender: No OFD packet to send [21:40:54]OFD Sender: No OFD packet to send [21:40:59]OFD Sender: No OFD packet to send [21:41:04]OFD Sender: No OFD packet to send [21:41:09]OFD Sender: No OFD packet to send [21:41:14]OFD Sender: No OFD packet to send [21:41:19]OFD Sender: No OFD packet to send [21:41:24]OFD Sender: No OFD packet to send [21:41:29]OFD Sender: No OFD packet to send [21:41:34]OFD Sender: No OFD packet to send [21:41:39]OFD Sender: No OFD packet to send [21:41:44]OFD Sender: No OFD packet to send [21:41:49]OFD Sender: No OFD packet to send [21:41:54]OFD Sender: No OFD packet to send [21:41:59]OFD Sender: No OFD packet to send [21:42:04]OFD Sender: No OFD packet to send [21:42:09]OFD Sender: No OFD packet to send [21:42:14]OFD Sender: No OFD packet to send [21:42:19]OFD Sender: No OFD packet to send [21:42:24]OFD Sender: No OFD packet to send [21:42:29]OFD Sender: No OFD packet to send [21:42:34]OFD Sender: No OFD packet to send [21:42:39]OFD Sender: No OFD packet to send [21:42:44]OFD Sender: No OFD packet to send [21:42:49]OFD Sender: No OFD packet to send [21:42:54]OFD Sender: No OFD packet to send [21:42:59]OFD Sender: No OFD packet to send [21:43:04]OFD Sender: No OFD packet to send [21:43:09]OFD Sender: No OFD packet to send [21:43:14]OFD Sender: No OFD packet to send [21:43:19]OFD Sender: No OFD packet to send [21:43:21]accept exits with 7 [21:43:21]New connection [21:43:21]New thread 3066654052 created [21:43:21]Thread 3066797412 joined [21:43:21]Waiting for new connection... [21:43:21] Sock 7.Parse request [21:43:21]Sock 7.Check first char [21:43:21]Sock 7.First char is OK [21:43:21]request: POST /json_proto HTTP/1.0 [21:43:21]Method: POST [21:43:21]URL: /json_proto [21:43:21]Method is POST - this is cgi request [21:43:21]url: /json_proto [21:43:21]query_string will be loaded in cgi processing [21:43:21]execute_cgi json_proto POST (null) [21:43:21]execute_cgi path=json_proto method=POST [21:43:21]POST find Content-Length [21:43:21]Host: 172.17.50.3:8080 [21:43:21]Content-Length: 800 [21:43:21]Content-Type: application/json [21:43:21] [21:43:21]POST finish read [21:43:21]Found Content-Length = 800 [21:43:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\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\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4865656", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:21]execute_script... [21:43:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\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\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4865656", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:21]POST & json_proto [21:43:21]process_json_proto [21:43:21]json parsed OK: [21:43:21]protocol is kg_v1.0 [21:43:21]action value=close_receipt [21:43:21]process_action close_receipt [21:43:21]cmd_close_receipt [21:43:21]MH_GetDate [21:43:21]Write to MH i2c: F0 00 00 9F 1C AA [21:43:21]Write i2c OK [21:43:21]MH_I2C_Read... [21:43:21]Read from MH i2c: F0 [21:43:21]MH_I2C_Read... [21:43:21]Read from MH i2c: F0 09 00 [21:43:21]MH_I2C_Read... [21:43:21]Read from MH i2c: F0 09 00 9F 1C 00 7A 79 15 67 6B 98 1E 66 A9 [21:43:21]GetLastDocTimeStamp 1729459877 [21:43:21]current date 1729460602 [21:43:21]FM_GetShiftState [21:43:21]SAM_PROTO_GetShiftState [21:43:21]wFMCommunicate request_size=4 [21:43:21]MH_SAM_APDU [21:43:21]CAPDU: 80 13 01 00 [21:43:21]Write to MH i2c: E2 08 00 A0 1C 80 13 01 00 00 00 00 00 39 [21:43:21]Write i2c OK [21:43:21]MH_I2C_Read... [21:43:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:21]Read from MH i2c: E2 [21:43:21]MH_I2C_Read... [21:43:21]Read from MH i2c: E2 0E 00 [21:43:21]MH_I2C_Read... [21:43:21]Read from MH i2c: E2 0E 00 A0 1C 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 3F [21:43:21]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [21:43:21]wFMCommunicate OK [21:43:21]SAM_PROTO_GetShiftState done [21:43:21]FM_GetShiftState done [21:43:21]opened in 1729383220 [21:43:21]opened+sec_in_day 1729469620 [21:43:21]quantity*price = 0 [21:43:21]sum+1 = 1 [21:43:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 421 20.10.2024 21:43 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливные Талоны 4865656 ФМ: 0000000000963346 ФД: 69576 ФПД: 24475837011067 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T214323&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69576&fm=24475837011067&tin=02508201610067®Number=0000000000156251&sum=0 [21:43:22]StoreToDocumentArchive [21:43:22]shift 193 fd 69576 [21:43:22]save to /storage/0193/doc_00069576 [21:43:22]save last doc name /storage/0193/doc_00069576 to /storage/kkm_last_doc_name [21:43:22]save OK [21:43:22]Clear old archive folders... [21:43:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:43:22]tlvbuf is B6F32870 [21:43:22]SAM_PROTO_ClearQueue [21:43:22]wFMCommunicate request_size=4 [21:43:22]MH_SAM_APDU [21:43:22]CAPDU: 80 09 00 00 [21:43:22]Write to MH i2c: E2 08 00 AD 1C 80 09 00 00 00 00 00 00 3B [21:43:22]Write i2c OK [21:43:22]MH_I2C_Read... [21:43:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:43:23]Read from MH i2c: E2 [21:43:23]MH_I2C_Read... [21:43:23]Read from MH i2c: E2 03 00 [21:43:23]MH_I2C_Read... [21:43:23]Read from MH i2c: E2 03 00 AD 1C 00 90 00 3D [21:43:23]RAPDU: 90 00 [21:43:23]wFMCommunicate OK [21:43:23]SAM_PROTO_ClearQueue done [21:43:23]KKMCreateOFDPacket [21:43:23]OFDProtocolAddRootSTLVToBuf [21:43:23]FM_MakeSignedData [21:43:23]FM_MakeSignedData [21:43:23]SAM_PROTO_SignData [21:43:23]wFMCommunicate request_size=4 [21:43:23]MH_SAM_APDU [21:43:23]CAPDU: 80 0D 01 02 [21:43:23]Write to MH i2c: E2 08 00 AE 1C 80 0D 01 02 00 00 00 00 43 [21:43:23]Write i2c OK [21:43:23]MH_I2C_Read... [21:43:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:43:23]Read from MH i2c: E2 [21:43:23]MH_I2C_Read... [21:43:23]Read from MH i2c: E2 03 00 [21:43:23]MH_I2C_Read... [21:43:23]Read from MH i2c: E2 03 00 AE 1C 00 90 00 3E [21:43:23]RAPDU: 90 00 [21:43:23]wFMCommunicate OK [21:43:23]wFMCommunicate request_size=255 [21:43:23]MH_SAM_APDU [21:43:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 A5 01 00 00 F4 03 04 00 7B 79 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C8 0F 01 00 35 04 06 00 16 [21:43:23]Write to MH i2c: E2 02 01 AF 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 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 A5 01 00 00 F4 03 04 00 7B 79 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C8 0F 01 00 35 04 06 00 16 00 00 A7 [21:43:23]Write i2c OK [21:43:23]MH_I2C_Read... [21:43:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:23]Read from MH i2c: E2 [21:43:23]MH_I2C_Read... [21:43:23]Read from MH i2c: E2 03 00 [21:43:23]MH_I2C_Read... [21:43:23]Read from MH i2c: E2 03 00 AF 1C 00 90 00 3F [21:43:23]RAPDU: 90 00 [21:43:23]wFMCommunicate OK [21:43:23]wFMCommunicate request_size=10 [21:43:23]MH_SAM_APDU [21:43:23]CAPDU: 80 0D 02 02 05 42 B9 92 14 7B [21:43:23]Write to MH i2c: E2 0D 00 B0 1C 80 0D 02 02 05 00 42 B9 92 14 7B 00 00 6C [21:43:23]Write i2c OK [21:43:23]MH_I2C_Read... [21:43:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:23]Read from MH i2c: E2 [21:43:23]MH_I2C_Read... [21:43:23]Read from MH i2c: E2 03 00 [21:43:23]MH_I2C_Read... [21:43:23]Read from MH i2c: E2 03 00 B0 1C 00 90 00 40 [21:43:23]RAPDU: 90 00 [21:43:23]wFMCommunicate OK [21:43:23]wFMCommunicate request_size=4 [21:43:23]MH_SAM_APDU [21:43:23]CAPDU: 80 0D 03 02 [21:43:23]Write to MH i2c: E2 08 00 B1 1C 80 0D 03 02 00 00 00 00 48 [21:43:23]Write i2c OK [21:43:23]MH_I2C_Read... [21:43:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:43:23]Read from MH i2c: E2 [21:43:23]MH_I2C_Read... [21:43:23]Read from MH i2c: E2 0B 00 [21:43:23]MH_I2C_Read... [21:43:23]Read from MH i2c: E2 0B 00 B1 1C 00 90 6E AD F4 F0 01 EC 2F 90 00 F4 [21:43:23]RAPDU: 90 6E AD F4 F0 01 EC 2F 90 00 [21:43:23]wFMCommunicate OK [21:43:23]SAM_PROTO_SignData done [21:43:23]FM_MakeSignedData done [21:43:23]CreateOFDProtocolMessage [21:43:23]wFMCommunicate request_size=4 [21:43:23]MH_SAM_APDU [21:43:23]CAPDU: 80 11 00 00 [21:43:23]Write to MH i2c: E2 08 00 B2 1C 80 11 00 00 00 00 00 00 48 [21:43:23]Write i2c OK [21:43:23]MH_I2C_Read... [21:43:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:23]Read from MH i2c: E2 [21:43:23]MH_I2C_Read... [21:43:23]Read from MH i2c: E2 17 00 [21:43:23]MH_I2C_Read... [21:43:23]Read from MH i2c: E2 17 00 B2 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9A [21:43:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:43:23]wFMCommunicate OK [21:43:23]CreateOFDProtocolMessage done [21:43:23]OFDSenderStorePacket 69576 [21:43:23]StoreOFDPacket docnum=69576 [21:43:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 BB 7F 07 01 65 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 A5 01 00 00 F4 03 04 00 7B 79 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C8 0F 01 00 35 04 06 00 16 42 B9 92 14 7B 90 6E AD F4 F0 01 EC 2F [21:43:23]CheckFolder [21:43:23]dirname=/storage/ofd_packets [21:43:23]CheckFolder done [21:43:23]ProducePacketName [21:43:23]name=ofd_packets/00069576 [21:43:23]NVStorageSaveData ofd_packets/00069576 [21:43:23]File name is /storage/ofd_packets/00069576 [21:43:23]Write 301 bytes [21:43:23]NVStorageSaveData done [21:43:23]OFDSenderStorePacket done [21:43:23]KKMCreateOFDPacket done [21:43:23]NVStorageSaveData kkm_last_timestamp [21:43:23]File name is /storage/kkm_last_timestamp [21:43:23]Write 4 bytes [21:43:23]NVStorageSaveData done [21:43:23]OFD Sender: Processing packet 69576 [packets to send 18, broken 17] [21:43:23]ProducePacketName [21:43:23]name=ofd_packets/00069576 [21:43:23]OFD Sender: To server: pG, [21:43:23]CommunicateWithHost lk.salyk.kg:30040 [21:43:23]ConnectInit lk.salyk.kg [21:43:23]ExternCall_PrintAddStr [21:43:23]wPrintStart [21:43:23]Write to MH i2c: 01 00 00 B3 1C CF [21:43:23]Write i2c OK [21:43:23]MH_I2C_Read... [21:43:23]Read from MH i2c: 01 [21:43:23]MH_I2C_Read... [21:43:23]Read from MH i2c: 01 07 00 [21:43:23]MH_I2C_Read... [21:43:23]Read from MH i2c: 01 07 00 B3 1C 00 00 00 00 00 FF 0F E4 [21:43:23]RasterBufferAndPrint [21:43:23]line Счет N : (1)2885315 [21:43:23]line ИНН: 02508201610067 [21:43:23]line Контрольно-Кассовый Чек [21:43:23]line ПРОДАЖА [21:43:23]line ТРК (МРК, ГНК) : 12 [21:43:23]line Товар: 2710124130 [21:43:23]line Аи-92-К-5 [21:43:23]line 5.000 * 0.00 [21:43:23]line = 0.00 [21:43:23]line НДС 12% НСП 1% [21:43:23]line > о реализуемом товаре [21:43:23]line ИТОГО: 0.00 [21:43:23]line НСП 1% : 0.00 [21:43:23]line НДС 12% : 0.00 [21:43:23]line Наличными: 0.00 [21:43:23]line Безнал.: 0.00 [21:43:23]line Место: АЗС № 85 "Партнер Нефть" [21:43:23]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:43:23]line СНО: Общий режим [21:43:23]line Чек 421 20.10.2024 21:43 [21:43:23]line Смена: 193 ФФД: 1.0 [21:43:23]line ЗНМ: 0300000167 [21:43:23]line РНМ: 0000000000156251 [21:43:23]line Версия ККМ: v1.0 [21:43:23]line Талоны: Топливные Талоны [21:43:23]line 4865656 [21:43:23]line ФМ: 0000000000963346 [21:43:23]line ФД: 69576 [21:43:23]line ФПД: 24475837011067 [21:43:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T214323&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69576&fm=24475837011067&tin=02508201610067®Number=0000000000156251&sum=0 [21:43:23]Connected sock=11 [21:43:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 BB 7F 07 01 65 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 A5 01 00 00 F4 03 04 00 7B 79 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C8 0F 01 00 35 04 06 00 16 42 B9 92 14 7B 90 6E AD F4 F0 01 EC 2F [21:43:23]written 0, free lines is 4095 [21:43:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 29 D7 47 00 9B 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C8 0F 01 00 F4 03 04 00 20 23 15 67 B6 04 01 00 00 D6 DF 60 CC 9F DC 67 B1 [21:43:24]CommunicateWithHost err = 0 [21:43:24]CheckOFDResponse [21:43:24]1017 (14) - 77093643461234 [21:43:24]1041 (16) - 0000000000963346 [21:43:24]1040 (4) - 69576 [21:43:24]1012 (4) - 20.10.2024 15:34 [21:43:24]1206 (1) - 0 [21:43:24]OFD Sender: Remove packet 69576 [21:43:24]ProducePacketName [21:43:24]name=ofd_packets/00069576 [21:43:24]NVStorageDeleteData [21:43:24]Write to MH i2c: 01 00 00 DD 1C F9 [21:43:24]Write i2c OK [21:43:24]MH_I2C_Read... [21:43:24]Read from MH i2c: 01 [21:43:24]MH_I2C_Read... [21:43:24]Read from MH i2c: 01 07 00 [21:43:24]MH_I2C_Read... [21:43:24]Read from MH i2c: 01 07 00 DD 1C 00 00 00 00 00 F9 0C 05 [21:43:24]RasterBufferAndPrint [21:43:24]line [21:43:24]line [21:43:24]line [21:43:24]line [21:43:24]line [21:43:24]written 0, free lines is 3330 [21:43:24]MH_Cut [21:43:24]Write to MH i2c: D1 01 00 E4 1C 01 D2 [21:43:24]Write i2c OK [21:43:24]MH_I2C_Read... [21:43:24]Read from MH i2c: D1 [21:43:24]MH_I2C_Read... [21:43:24]Read from MH i2c: D1 01 00 [21:43:24]MH_I2C_Read... [21:43:24]Read from MH i2c: D1 01 00 E4 1C 00 D1 [21:43:24]Write to MH i2c: 01 00 00 E5 1C 01 [21:43:24]Write i2c OK [21:43:24]MH_I2C_Read... [21:43:24]OFD Sender: No OFD packet to send [21:43:24]*** Cut start [21:43:24]*** Partial cut [21:43:24]*** CUTSNS_PIN = 1 [21:43:25]*** CUTSNS_PIN = 0 [21:43:25]*** Brake cut motor [21:43:25]Read from MH i2c: 01 [21:43:25]MH_I2C_Read... [21:43:25]*** Stop cut motor [21:43:25]*** Cut end [21:43:25]Read from MH i2c: 01 07 00 [21:43:25]MH_I2C_Read... [21:43:25]Read from MH i2c: 01 07 00 E5 1C 00 00 00 00 00 FF 0F 16 [21:43:25]process_action close_receipt done [21:43:25]requested_data is exist [21:43:25]produce_requested_data [21:43:25]requested_item fm.sn is exist - process it [21:43:25]wFMCommunicate request_size=4 [21:43:25]MH_SAM_APDU [21:43:25]CAPDU: 80 11 00 00 [21:43:25]Write to MH i2c: E2 08 00 E6 1C 80 11 00 00 00 00 00 00 7C [21:43:25]Write i2c OK [21:43:25]MH_I2C_Read... [21:43:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:25]Read from MH i2c: E2 [21:43:25]MH_I2C_Read... [21:43:25]Read from MH i2c: E2 17 00 [21:43:25]MH_I2C_Read... [21:43:25]Read from MH i2c: E2 17 00 E6 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CE [21:43:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:43:25]wFMCommunicate OK [21:43:25]requested_item fd.num is exist - process it [21:43:25]SAM_PROTO_GetFieldsCounters [21:43:25]wFMCommunicate request_size=4 [21:43:25]MH_SAM_APDU [21:43:25]CAPDU: 80 13 00 00 [21:43:25]Write to MH i2c: E2 08 00 E7 1C 80 13 00 00 00 00 00 00 7F [21:43:25]Write i2c OK [21:43:25]MH_I2C_Read... [21:43:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:43:25]Read from MH i2c: E2 [21:43:25]MH_I2C_Read... [21:43:25]Read from MH i2c: E2 62 00 [21:43:25]MH_I2C_Read... [21:43:25]Read from MH i2c: E2 62 00 E7 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C8 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 A5 01 00 00 5E 04 04 00 A5 01 00 00 57 04 04 00 A6 01 00 00 19 04 04 00 00 00 00 00 90 00 25 [21:43:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C8 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 A5 01 00 00 5E 04 04 00 A5 01 00 00 57 04 04 00 A6 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:43:25]wFMCommunicate OK [21:43:25]SAM_PROTO_GetFieldsCounters done [21:43:25]requested_item shift.num is exist - process it [21:43:25]requested_item shift.opened is exist - process it [21:43:25]req_shift_opened [21:43:25]FM_GetShiftState [21:43:25]SAM_PROTO_GetShiftState [21:43:25]wFMCommunicate request_size=4 [21:43:25]MH_SAM_APDU [21:43:25]CAPDU: 80 13 01 00 [21:43:25]Write to MH i2c: E2 08 00 E8 1C 80 13 01 00 00 00 00 00 81 [21:43:25]Write i2c OK [21:43:25]MH_I2C_Read... [21:43:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:25]Read from MH i2c: E2 [21:43:25]MH_I2C_Read... [21:43:25]Read from MH i2c: E2 0E 00 [21:43:25]MH_I2C_Read... [21:43:25]Read from MH i2c: E2 0E 00 E8 1C 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 87 [21:43:25]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [21:43:25]wFMCommunicate OK [21:43:25]SAM_PROTO_GetShiftState done [21:43:25]FM_GetShiftState done [21:43:25]req_shift_opened done [21:43:25]requested_item shift.open_date is exist - process it [21:43:25]req_shift_open_date [21:43:25]req_shift_open_date done [21:43:25]produce_requested_data done [21:43:25]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69576,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [21:43:25]process_action_free close_receipt [21:43:25]json_value_free [21:43:25]json_value_free done [21:43:25]process_json_proto returns [21:43:25]Send response to host [21:43:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69576,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [21:43:25]free response buf [21:43:25]execute_script done [21:43:25]execute_script returns [21:43:25]free content buf [21:43:25]Sock 7.Close socket [21:43:25]Sock 7.Thread stoped [21:43:29]OFD Sender: No OFD packet to send [21:43:34]OFD Sender: No OFD packet to send [21:43:39]OFD Sender: No OFD packet to send [21:43:44]OFD Sender: No OFD packet to send [21:43:49]OFD Sender: No OFD packet to send [21:43:54]OFD Sender: No OFD packet to send [21:43:59]OFD Sender: No OFD packet to send [21:44:04]OFD Sender: No OFD packet to send [21:44:09]OFD Sender: No OFD packet to send [21:44:14]OFD Sender: No OFD packet to send [21:44:15]accept exits with 9 [21:44:15]New connection [21:44:15]New thread 3066797412 created [21:44:15]Thread 3066654052 joined [21:44:15]Waiting for new connection... [21:44:15] Sock 9.Parse request [21:44:15]Sock 9.Check first char [21:44:15]Sock 9.First char is OK [21:44:15]request: POST /json_proto HTTP/1.0 [21:44:15]Method: POST [21:44:15]URL: /json_proto [21:44:15]Method is POST - this is cgi request [21:44:15]url: /json_proto [21:44:15]query_string will be loaded in cgi processing [21:44:15]execute_cgi json_proto POST (null) [21:44:15]execute_cgi path=json_proto method=POST [21:44:15]POST find Content-Length [21:44:15]Host: 172.17.50.3:8080 [21:44:15]Content-Length: 689 [21:44:15]Content-Type: application/json [21:44:15] [21:44:15]POST finish read [21:44:15]Found Content-Length = 689 [21:44:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:44:15]execute_script... [21:44: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)2885316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:44:15]POST & json_proto [21:44:15]process_json_proto [21:44:15]json parsed OK: [21:44:15]protocol is kg_v1.0 [21:44:15]action value=close_receipt [21:44:15]process_action close_receipt [21:44:15]cmd_close_receipt [21:44:15]MH_GetDate [21:44:15]Write to MH i2c: F0 00 00 E9 1C F4 [21:44:15]Write i2c OK [21:44:15]MH_I2C_Read... [21:44:15]Read from MH i2c: F0 [21:44:15]MH_I2C_Read... [21:44:15]Read from MH i2c: F0 09 00 [21:44:15]MH_I2C_Read... [21:44:15]Read from MH i2c: F0 09 00 E9 1C 00 B0 79 15 67 6B 98 1E 66 29 [21:44:15]GetLastDocTimeStamp 1729460603 [21:44:15]current date 1729460656 [21:44:15]FM_GetShiftState [21:44:15]SAM_PROTO_GetShiftState [21:44:15]wFMCommunicate request_size=4 [21:44:15]MH_SAM_APDU [21:44:15]CAPDU: 80 13 01 00 [21:44:15]Write to MH i2c: E2 08 00 EA 1C 80 13 01 00 00 00 00 00 83 [21:44:15]Write i2c OK [21:44:15]MH_I2C_Read... [21:44:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:44:15]Read from MH i2c: E2 [21:44:15]MH_I2C_Read... [21:44:15]Read from MH i2c: E2 0E 00 [21:44:15]MH_I2C_Read... [21:44:15]Read from MH i2c: E2 0E 00 EA 1C 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 89 [21:44:15]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [21:44:15]wFMCommunicate OK [21:44:15]SAM_PROTO_GetShiftState done [21:44:15]FM_GetShiftState done [21:44:15]opened in 1729383220 [21:44:15]opened+sec_in_day 1729469620 [21:44:15]quantity*price = 100051 [21:44:15]sum+1 = 100052 [21:44:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 422 20.10.2024 21:44 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69577 ФПД: 93821429976138 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T214416&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69577&fm=93821429976138&tin=02508201610067®Number=0000000000156251&sum=100000 [21:44:16]StoreToDocumentArchive [21:44:16]shift 193 fd 69577 [21:44:16]save to /storage/0193/doc_00069577 [21:44:16]save last doc name /storage/0193/doc_00069577 to /storage/kkm_last_doc_name [21:44:16]save OK [21:44:16]Clear old archive folders... [21:44:16]ProcessDocumentItem done err = 0, tmpTLVsize=257 [21:44:16]tlvbuf is 00F68980 [21:44:16]SAM_PROTO_ClearQueue [21:44:16]wFMCommunicate request_size=4 [21:44:16]MH_SAM_APDU [21:44:16]CAPDU: 80 09 00 00 [21:44:16]Write to MH i2c: E2 08 00 F7 1C 80 09 00 00 00 00 00 00 85 [21:44:16]Write i2c OK [21:44:16]MH_I2C_Read... [21:44:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:44:16]Read from MH i2c: E2 [21:44:16]MH_I2C_Read... [21:44:16]Read from MH i2c: E2 03 00 [21:44:16]MH_I2C_Read... [21:44:16]Read from MH i2c: E2 03 00 F7 1C 00 90 00 87 [21:44:16]RAPDU: 90 00 [21:44:16]wFMCommunicate OK [21:44:16]SAM_PROTO_ClearQueue done [21:44:16]KKMCreateOFDPacket [21:44:16]OFDProtocolAddRootSTLVToBuf [21:44:16]FM_MakeSignedData [21:44:16]FM_MakeSignedData [21:44:16]SAM_PROTO_SignData [21:44:16]wFMCommunicate request_size=4 [21:44:16]MH_SAM_APDU [21:44:16]CAPDU: 80 0D 01 02 [21:44:16]Write to MH i2c: E2 08 00 F8 1C 80 0D 01 02 00 00 00 00 8D [21:44:16]Write i2c OK [21:44:16]MH_I2C_Read... [21:44:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:44:16]Read from MH i2c: E2 [21:44:16]MH_I2C_Read... [21:44:16]Read from MH i2c: E2 03 00 [21:44:16]MH_I2C_Read... [21:44:16]Read from MH i2c: E2 03 00 F8 1C 00 90 00 88 [21:44:16]RAPDU: 90 00 [21:44:16]wFMCommunicate OK [21:44:16]wFMCommunicate request_size=255 [21:44:16]MH_SAM_APDU [21:44:16]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 01 00 00 F4 03 04 00 B0 79 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C9 0F 01 [21:44:16]Write to MH i2c: E2 02 01 F9 1C 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 01 00 00 F4 03 04 00 B0 79 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C9 0F 01 00 00 C5 [21:44:16]Write i2c OK [21:44:16]MH_I2C_Read... [21:44:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:44:17]Read from MH i2c: E2 [21:44:17]MH_I2C_Read... [21:44:17]Read from MH i2c: E2 03 00 [21:44:17]MH_I2C_Read... [21:44:17]Read from MH i2c: E2 03 00 F9 1C 00 90 00 89 [21:44:17]RAPDU: 90 00 [21:44:17]wFMCommunicate OK [21:44:17]wFMCommunicate request_size=16 [21:44:17]MH_SAM_APDU [21:44:17]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 55 54 81 01 8C 4A [21:44:17]Write to MH i2c: E2 13 00 FA 1C 80 0D 02 02 0B 00 00 35 04 06 00 55 54 81 01 8C 4A 00 00 E6 [21:44:17]Write i2c OK [21:44:17]MH_I2C_Read... [21:44:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:44:17]Read from MH i2c: E2 [21:44:17]MH_I2C_Read... [21:44:17]Read from MH i2c: E2 03 00 [21:44:17]MH_I2C_Read... [21:44:17]Read from MH i2c: E2 03 00 FA 1C 00 90 00 8A [21:44:17]RAPDU: 90 00 [21:44:17]wFMCommunicate OK [21:44:17]wFMCommunicate request_size=4 [21:44:17]MH_SAM_APDU [21:44:17]CAPDU: 80 0D 03 02 [21:44:17]Write to MH i2c: E2 08 00 FB 1C 80 0D 03 02 00 00 00 00 92 [21:44:17]Write i2c OK [21:44:17]MH_I2C_Read... [21:44:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:44:17]Read from MH i2c: E2 [21:44:17]MH_I2C_Read... [21:44:17]Read from MH i2c: E2 0B 00 [21:44:17]MH_I2C_Read... [21:44:17]Read from MH i2c: E2 0B 00 FB 1C 00 D1 E7 85 38 83 79 39 8F 90 00 CC [21:44:17]RAPDU: D1 E7 85 38 83 79 39 8F 90 00 [21:44:17]wFMCommunicate OK [21:44:17]SAM_PROTO_SignData done [21:44:17]FM_MakeSignedData done [21:44:17]CreateOFDProtocolMessage [21:44:17]wFMCommunicate request_size=4 [21:44:17]MH_SAM_APDU [21:44:17]CAPDU: 80 11 00 00 [21:44:17]Write to MH i2c: E2 08 00 FC 1C 80 11 00 00 00 00 00 00 92 [21:44:17]Write i2c OK [21:44:17]MH_I2C_Read... [21:44:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:44:17]Read from MH i2c: E2 [21:44:17]MH_I2C_Read... [21:44:17]Read from MH i2c: E2 17 00 [21:44:17]MH_I2C_Read... [21:44:17]Read from MH i2c: E2 17 00 FC 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E4 [21:44:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:44:17]wFMCommunicate OK [21:44:17]CreateOFDProtocolMessage done [21:44:17]OFDSenderStorePacket 69577 [21:44:17]StoreOFDPacket docnum=69577 [21:44:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 0C 8E 0D 01 96 9D 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 01 00 00 F4 03 04 00 B0 79 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C9 0F 01 00 35 04 06 00 55 54 81 01 8C 4A D1 E7 85 38 83 79 39 8F [21:44:17]CheckFolder [21:44:17]dirname=/storage/ofd_packets [21:44:17]CheckFolder done [21:44:17]ProducePacketName [21:44:17]name=ofd_packets/00069577 [21:44:17]NVStorageSaveData ofd_packets/00069577 [21:44:17]File name is /storage/ofd_packets/00069577 [21:44:17]Write 307 bytes [21:44:17]NVStorageSaveData done [21:44:17]OFDSenderStorePacket done [21:44:17]KKMCreateOFDPacket done [21:44:17]NVStorageSaveData kkm_last_timestamp [21:44:17]File name is /storage/kkm_last_timestamp [21:44:17]Write 4 bytes [21:44:17]NVStorageSaveData done [21:44:17]ExternCall_PrintAddStr [21:44:17]wPrintStart [21:44:17]Write to MH i2c: 01 00 00 FD 1C 19 [21:44:17]Write i2c OK [21:44:17]MH_I2C_Read... [21:44:17]Read from MH i2c: 01 [21:44:17]MH_I2C_Read... [21:44:17]Read from MH i2c: 01 07 00 [21:44:17]MH_I2C_Read... [21:44:17]Read from MH i2c: 01 07 00 FD 1C 00 00 00 00 00 FF 0F 2E [21:44:17]RasterBufferAndPrint [21:44:17]line Счет N : (1)2885316 [21:44:17]line ИНН: 02508201610067 [21:44:17]line Контрольно-Кассовый Чек [21:44:17]line ПРОДАЖА [21:44:17]line ТРК (МРК, ГНК) : 31 [21:44:17]line Товар: 2710194240 [21:44:17]line D-ENERGY Дт-К-2 [21:44:17]line 12.960 * 77.20 [21:44:17]line = 1000.51 [21:44:17]line НДС 12% НСП 1% [21:44:17]line > о реализуемом товаре [21:44:17]line ОКРУГЛЕНИЕ: -0.51 [21:44:17]line ИТОГО: 1000.00 [21:44:17]line Внесено: 1000.00 [21:44:17]line СДАЧА: 0.00 [21:44:17]line НСП 1% : 8.85 [21:44:17]line НДС 12% : 106.25 [21:44:17]line Наличными: 1000.00 [21:44:17]line Безнал.: 0.00 [21:44:17]line Место: АЗС № 85 "Партнер Нефть" [21:44:17]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:44:17]line СНО: Общий режим [21:44:17]line Чек 422 20.10.2024 21:44 [21:44:17]line Смена: 193 ФФД: 1.0 [21:44:17]line ЗНМ: 0300000167 [21:44:17]line РНМ: 0000000000156251 [21:44:17]line Версия ККМ: v1.0 [21:44:17]line ФМ: 0000000000963346 [21:44:17]line ФД: 69577 [21:44:17]line ФПД: 93821429976138 [21:44:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T214416&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69577&fm=93821429976138&tin=02508201610067®Number=0000000000156251&sum=100000 [21:44:17]OFD Sender: Processing packet 69577 [packets to send 18, broken 17] [21:44:17]ProducePacketName [21:44:17]name=ofd_packets/00069577 [21:44:17]OFD Sender: To server: pG, [21:44:17]CommunicateWithHost lk.salyk.kg:30040 [21:44:17]ConnectInit lk.salyk.kg [21:44:17]written 0, free lines is 4095 [21:44:17]Connected sock=11 [21:44:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 0C 8E 0D 01 96 9D 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 01 00 00 F4 03 04 00 B0 79 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C9 0F 01 00 35 04 06 00 55 54 81 01 8C 4A D1 E7 85 38 83 79 39 8F [21:44:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 82 3E 47 00 7D 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 C9 0F 01 00 F4 03 04 00 56 23 15 67 B6 04 01 00 00 BF 31 8F 41 C2 7F 1A 59 [21:44:17]CommunicateWithHost err = 0 [21:44:17]CheckOFDResponse [21:44:17]1017 (14) - 77093643461234 [21:44:17]1041 (16) - 0000000000963346 [21:44:17]1040 (4) - 69577 [21:44:17]1012 (4) - 20.10.2024 15:35 [21:44:17]1206 (1) - 0 [21:44:17]OFD Sender: Remove packet 69577 [21:44:17]ProducePacketName [21:44:17]name=ofd_packets/00069577 [21:44:17]NVStorageDeleteData [21:44:18]Write to MH i2c: 01 00 00 28 1D 45 [21:44:18]Write i2c OK [21:44:18]MH_I2C_Read... [21:44:18]Read from MH i2c: 01 [21:44:18]MH_I2C_Read... [21:44:18]Read from MH i2c: 01 07 00 [21:44:18]MH_I2C_Read... [21:44:18]Read from MH i2c: 01 07 00 28 1D 00 00 00 00 00 F8 0C 50 [21:44:18]RasterBufferAndPrint [21:44:18]line [21:44:18]line [21:44:18]line [21:44:18]line [21:44:18]line [21:44:18]written 0, free lines is 3326 [21:44:18]MH_Cut [21:44:18]Write to MH i2c: D1 01 00 2F 1D 01 1E [21:44:18]Write i2c OK [21:44:18]MH_I2C_Read... [21:44:18]Read from MH i2c: D1 [21:44:18]MH_I2C_Read... [21:44:18]Read from MH i2c: D1 01 00 [21:44:18]MH_I2C_Read... [21:44:18]Read from MH i2c: D1 01 00 2F 1D 00 1D [21:44:18]Write to MH i2c: 01 00 00 30 1D 4D [21:44:18]Write i2c OK [21:44:18]MH_I2C_Read... [21:44:18]OFD Sender: No OFD packet to send [21:44:18]*** Cut start [21:44:18]*** Partial cut [21:44:18]*** CUTSNS_PIN = 1 [21:44:18]*** CUTSNS_PIN = 0 [21:44:19]*** Brake cut motor [21:44:19]Read from MH i2c: 01 [21:44:19]MH_I2C_Read... [21:44:19]*** Stop cut motor [21:44:19]*** Cut end [21:44:19]Read from MH i2c: 01 07 00 [21:44:19]MH_I2C_Read... [21:44:19]Read from MH i2c: 01 07 00 30 1D 00 00 00 00 00 FF 0F 62 [21:44:19]process_action close_receipt done [21:44:19]requested_data is exist [21:44:19]produce_requested_data [21:44:19]requested_item fm.sn is exist - process it [21:44:19]wFMCommunicate request_size=4 [21:44:19]MH_SAM_APDU [21:44:19]CAPDU: 80 11 00 00 [21:44:19]Write to MH i2c: E2 08 00 31 1D 80 11 00 00 00 00 00 00 C8 [21:44:19]Write i2c OK [21:44:19]MH_I2C_Read... [21:44:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:44:19]Read from MH i2c: E2 [21:44:19]MH_I2C_Read... [21:44:19]Read from MH i2c: E2 17 00 [21:44:19]MH_I2C_Read... [21:44:19]Read from MH i2c: E2 17 00 31 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1A [21:44:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:44:19]wFMCommunicate OK [21:44:19]requested_item fd.num is exist - process it [21:44:19]SAM_PROTO_GetFieldsCounters [21:44:19]wFMCommunicate request_size=4 [21:44:19]MH_SAM_APDU [21:44:19]CAPDU: 80 13 00 00 [21:44:19]Write to MH i2c: E2 08 00 32 1D 80 13 00 00 00 00 00 00 CB [21:44:19]Write i2c OK [21:44:19]MH_I2C_Read... [21:44:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:44:19]Read from MH i2c: E2 [21:44:19]MH_I2C_Read... [21:44:19]Read from MH i2c: E2 62 00 [21:44:19]MH_I2C_Read... [21:44:19]Read from MH i2c: E2 62 00 32 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C9 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 A6 01 00 00 5E 04 04 00 A6 01 00 00 57 04 04 00 A7 01 00 00 19 04 04 00 00 00 00 00 90 00 75 [21:44:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 C9 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 A6 01 00 00 5E 04 04 00 A6 01 00 00 57 04 04 00 A7 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:44:19]wFMCommunicate OK [21:44:19]SAM_PROTO_GetFieldsCounters done [21:44:19]requested_item shift.num is exist - process it [21:44:19]requested_item shift.opened is exist - process it [21:44:19]req_shift_opened [21:44:19]FM_GetShiftState [21:44:19]SAM_PROTO_GetShiftState [21:44:19]wFMCommunicate request_size=4 [21:44:19]MH_SAM_APDU [21:44:19]CAPDU: 80 13 01 00 [21:44:19]Write to MH i2c: E2 08 00 33 1D 80 13 01 00 00 00 00 00 CD [21:44:19]Write i2c OK [21:44:19]MH_I2C_Read... [21:44:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:44:19]Read from MH i2c: E2 [21:44:19]MH_I2C_Read... [21:44:19]Read from MH i2c: E2 0E 00 [21:44:19]MH_I2C_Read... [21:44:19]Read from MH i2c: E2 0E 00 33 1D 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 D3 [21:44:19]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [21:44:19]wFMCommunicate OK [21:44:19]SAM_PROTO_GetShiftState done [21:44:19]FM_GetShiftState done [21:44:19]req_shift_opened done [21:44:19]requested_item shift.open_date is exist - process it [21:44:19]req_shift_open_date [21:44:19]req_shift_open_date done [21:44:19]produce_requested_data done [21:44:19]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69577,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [21:44:19]process_action_free close_receipt [21:44:19]json_value_free [21:44:19]json_value_free done [21:44:19]process_json_proto returns [21:44:19]Send response to host [21:44:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69577,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [21:44:19]free response buf [21:44:19]execute_script done [21:44:19]execute_script returns [21:44:19]free content buf [21:44:19]Sock 9.Close socket [21:44:19]Sock 9.Thread stoped [21:44:23]OFD Sender: No OFD packet to send [21:44:26]accept exits with 7 [21:44:26]New connection [21:44:26]New thread 3066654052 created [21:44:26]Thread 3066797412 joined [21:44:26]Waiting for new connection... [21:44:26] Sock 7.Parse request [21:44:26]Sock 7.Check first char [21:44:26]Sock 7.First char is OK [21:44:26]request: POST /json_proto HTTP/1.0 [21:44:26]Method: POST [21:44:26]URL: /json_proto [21:44:26]Method is POST - this is cgi request [21:44:26]url: /json_proto [21:44:26]query_string will be loaded in cgi processing [21:44:26]execute_cgi json_proto POST (null) [21:44:26]execute_cgi path=json_proto method=POST [21:44:26]POST find Content-Length [21:44:26]Host: 172.17.50.3:8080 [21:44:26]Content-Length: 678 [21:44:26]Content-Type: application/json [21:44:26] [21:44:26]POST finish read [21:44:26]Found Content-Length = 678 [21:44:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:44:26]execute_script... [21:44:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:44:26]POST & json_proto [21:44:26]process_json_proto [21:44:26]json parsed OK: [21:44:26]protocol is kg_v1.0 [21:44:26]action value=close_receipt [21:44:26]process_action close_receipt [21:44:26]cmd_close_receipt [21:44:26]MH_GetDate [21:44:26]Write to MH i2c: F0 00 00 34 1D 40 [21:44:26]Write i2c OK [21:44:26]MH_I2C_Read... [21:44:26]Read from MH i2c: F0 [21:44:26]MH_I2C_Read... [21:44:26]Read from MH i2c: F0 09 00 [21:44:26]MH_I2C_Read... [21:44:26]Read from MH i2c: F0 09 00 34 1D 00 BB 79 15 67 6B 98 1E 66 80 [21:44:26]GetLastDocTimeStamp 1729460656 [21:44:26]current date 1729460667 [21:44:26]FM_GetShiftState [21:44:26]SAM_PROTO_GetShiftState [21:44:26]wFMCommunicate request_size=4 [21:44:26]MH_SAM_APDU [21:44:26]CAPDU: 80 13 01 00 [21:44:26]Write to MH i2c: E2 08 00 35 1D 80 13 01 00 00 00 00 00 CF [21:44:26]Write i2c OK [21:44:26]MH_I2C_Read... [21:44:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:44:26]Read from MH i2c: E2 [21:44:26]MH_I2C_Read... [21:44:26]Read from MH i2c: E2 0E 00 [21:44:26]MH_I2C_Read... [21:44:26]Read from MH i2c: E2 0E 00 35 1D 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 D5 [21:44:26]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [21:44:26]wFMCommunicate OK [21:44:26]SAM_PROTO_GetShiftState done [21:44:26]FM_GetShiftState done [21:44:26]opened in 1729383220 [21:44:26]opened+sec_in_day 1729469620 [21:44:26]quantity*price = 50041 [21:44:26]sum+1 = 50042 [21:44:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 423 20.10.2024 21:44 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69578 ФПД: 70491527391296 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T214427&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69578&fm=70491527391296&tin=02508201610067®Number=0000000000156251&sum=50000 [21:44:27]StoreToDocumentArchive [21:44:27]shift 193 fd 69578 [21:44:27]save to /storage/0193/doc_00069578 [21:44:27]save last doc name /storage/0193/doc_00069578 to /storage/kkm_last_doc_name [21:44:27]save OK [21:44:27]Clear old archive folders... [21:44:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:44:27]tlvbuf is 00FC36A0 [21:44:27]SAM_PROTO_ClearQueue [21:44:27]wFMCommunicate request_size=4 [21:44:27]MH_SAM_APDU [21:44:27]CAPDU: 80 09 00 00 [21:44:27]Write to MH i2c: E2 08 00 42 1D 80 09 00 00 00 00 00 00 D1 [21:44:27]Write i2c OK [21:44:27]MH_I2C_Read... [21:44:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:44:27]Read from MH i2c: E2 [21:44:27]MH_I2C_Read... [21:44:27]Read from MH i2c: E2 03 00 [21:44:27]MH_I2C_Read... [21:44:27]Read from MH i2c: E2 03 00 42 1D 00 90 00 D3 [21:44:27]RAPDU: 90 00 [21:44:27]wFMCommunicate OK [21:44:27]SAM_PROTO_ClearQueue done [21:44:27]KKMCreateOFDPacket [21:44:27]OFDProtocolAddRootSTLVToBuf [21:44:27]FM_MakeSignedData [21:44:27]FM_MakeSignedData [21:44:27]SAM_PROTO_SignData [21:44:27]wFMCommunicate request_size=4 [21:44:27]MH_SAM_APDU [21:44:27]CAPDU: 80 0D 01 02 [21:44:27]Write to MH i2c: E2 08 00 43 1D 80 0D 01 02 00 00 00 00 D9 [21:44:27]Write i2c OK [21:44:27]MH_I2C_Read... [21:44:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:44:27]Read from MH i2c: E2 [21:44:27]MH_I2C_Read... [21:44:27]Read from MH i2c: E2 03 00 [21:44:27]MH_I2C_Read... [21:44:27]Read from MH i2c: E2 03 00 43 1D 00 90 00 D4 [21:44:27]RAPDU: 90 00 [21:44:27]wFMCommunicate OK [21:44:27]wFMCommunicate request_size=255 [21:44:27]MH_SAM_APDU [21:44:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 BB 79 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CA 0F 01 00 35 04 06 00 40 [21:44:27]Write to MH i2c: E2 02 01 44 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 BB 79 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CA 0F 01 00 35 04 06 00 40 00 00 95 [21:44:27]Write i2c OK [21:44:27]MH_I2C_Read... [21:44:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:44:27]Read from MH i2c: E2 [21:44:27]MH_I2C_Read... [21:44:27]Read from MH i2c: E2 03 00 [21:44:27]MH_I2C_Read... [21:44:27]Read from MH i2c: E2 03 00 44 1D 00 90 00 D5 [21:44:27]RAPDU: 90 00 [21:44:27]wFMCommunicate OK [21:44:27]wFMCommunicate request_size=10 [21:44:27]MH_SAM_APDU [21:44:27]CAPDU: 80 0D 02 02 05 1C 96 73 28 40 [21:44:27]Write to MH i2c: E2 0D 00 45 1D 80 0D 02 02 05 00 1C 96 73 28 40 00 00 73 [21:44:27]Write i2c OK [21:44:27]MH_I2C_Read... [21:44:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:44:27]Read from MH i2c: E2 [21:44:27]MH_I2C_Read... [21:44:27]Read from MH i2c: E2 03 00 [21:44:27]MH_I2C_Read... [21:44:27]Read from MH i2c: E2 03 00 45 1D 00 90 00 D6 [21:44:27]RAPDU: 90 00 [21:44:27]wFMCommunicate OK [21:44:27]wFMCommunicate request_size=4 [21:44:27]MH_SAM_APDU [21:44:27]CAPDU: 80 0D 03 02 [21:44:27]Write to MH i2c: E2 08 00 46 1D 80 0D 03 02 00 00 00 00 DE [21:44:27]Write i2c OK [21:44:27]MH_I2C_Read... [21:44:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:44:27]Read from MH i2c: E2 [21:44:27]MH_I2C_Read... [21:44:27]Read from MH i2c: E2 0B 00 [21:44:27]MH_I2C_Read... [21:44:27]Read from MH i2c: E2 0B 00 46 1D 00 17 62 EA B8 FC D3 21 B0 90 00 9A [21:44:27]RAPDU: 17 62 EA B8 FC D3 21 B0 90 00 [21:44:27]wFMCommunicate OK [21:44:27]SAM_PROTO_SignData done [21:44:27]FM_MakeSignedData done [21:44:27]CreateOFDProtocolMessage [21:44:27]wFMCommunicate request_size=4 [21:44:27]MH_SAM_APDU [21:44:27]CAPDU: 80 11 00 00 [21:44:27]Write to MH i2c: E2 08 00 47 1D 80 11 00 00 00 00 00 00 DE [21:44:27]Write i2c OK [21:44:27]MH_I2C_Read... [21:44:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:44:27]Read from MH i2c: E2 [21:44:27]MH_I2C_Read... [21:44:27]Read from MH i2c: E2 17 00 [21:44:27]MH_I2C_Read... [21:44:27]Read from MH i2c: E2 17 00 47 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 30 [21:44:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:44:27]wFMCommunicate OK [21:44:27]CreateOFDProtocolMessage done [21:44:27]OFDSenderStorePacket 69578 [21:44:27]StoreOFDPacket docnum=69578 [21:44:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 BE 0D 07 01 E9 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 BB 79 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CA 0F 01 00 35 04 06 00 40 1C 96 73 28 40 17 62 EA B8 FC D3 21 B0 [21:44:27]CheckFolder [21:44:27]dirname=/storage/ofd_packets [21:44:27]CheckFolder done [21:44:27]ProducePacketName [21:44:27]name=ofd_packets/00069578 [21:44:27]NVStorageSaveData ofd_packets/00069578 [21:44:27]File name is /storage/ofd_packets/00069578 [21:44:27]Write 301 bytes [21:44:27]NVStorageSaveData done [21:44:27]OFDSenderStorePacket done [21:44:27]KKMCreateOFDPacket done [21:44:27]NVStorageSaveData kkm_last_timestamp [21:44:27]File name is /storage/kkm_last_timestamp [21:44:27]Write 4 bytes [21:44:27]NVStorageSaveData done [21:44:27]ExternCall_PrintAddStr [21:44:27]wPrintStart [21:44:27]Write to MH i2c: 01 00 00 48 1D 65 [21:44:27]Write i2c OK [21:44:27]MH_I2C_Read... [21:44:27]Read from MH i2c: 01 [21:44:27]MH_I2C_Read... [21:44:27]Read from MH i2c: 01 07 00 [21:44:27]MH_I2C_Read... [21:44:27]Read from MH i2c: 01 07 00 48 1D 00 00 00 00 00 FF 0F 7A [21:44:27]RasterBufferAndPrint [21:44:27]line Счет N : (1)2885317 [21:44:27]line ИНН: 02508201610067 [21:44:27]line Контрольно-Кассовый Чек [21:44:27]line ПРОДАЖА [21:44:27]line ТРК (МРК, ГНК) : 42 [21:44:27]line Товар: 2710124130 [21:44:27]line Аи-92-К-5 [21:44:27]line 7.480 * 66.90 [21:44:27]line = 500.41 [21:44:27]line НДС 12% НСП 1% [21:44:27]line > о реализуемом товаре [21:44:27]line ОКРУГЛЕНИЕ: -0.41 [21:44:27]line ИТОГО: 500.00 [21:44:27]line Внесено: 500.00 [21:44:27]line СДАЧА: 0.00 [21:44:27]line НСП 1% : 4.43 [21:44:27]line НДС 12% : 53.14 [21:44:27]line Наличными: 500.00 [21:44:27]line Безнал.: 0.00 [21:44:27]line Место: АЗС № 85 "Партнер Нефть" [21:44:27]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:44:27]line СНО: Общий режим [21:44:27]line Чек 423 20.10.2024 21:44 [21:44:27]line Смена: 193 ФФД: 1.0 [21:44:27]line ЗНМ: 0300000167 [21:44:27]line РНМ: 0000000000156251 [21:44:27]line Версия ККМ: v1.0 [21:44:27]line ФМ: 0000000000963346 [21:44:27]line ФД: 69578 [21:44:27]line ФПД: 70491527391296 [21:44:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T214427&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69578&fm=70491527391296&tin=02508201610067®Number=0000000000156251&sum=50000 [21:44:27]written 0, free lines is 4095 [21:44:28]OFD Sender: Processing packet 69578 [packets to send 18, broken 17] [21:44:28]ProducePacketName [21:44:28]name=ofd_packets/00069578 [21:44:28]OFD Sender: To server: pG, [21:44:28]CommunicateWithHost lk.salyk.kg:30040 [21:44:28]ConnectInit lk.salyk.kg [21:44:28]Connected sock=11 [21:44:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 BE 0D 07 01 E9 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 BB 79 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CA 0F 01 00 35 04 06 00 40 1C 96 73 28 40 17 62 EA B8 FC D3 21 B0 [21:44:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 AF 2A 47 00 0B AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CA 0F 01 00 F4 03 04 00 60 23 15 67 B6 04 01 00 00 60 A6 39 C0 07 50 FD CB [21:44:28]CommunicateWithHost err = 0 [21:44:28]CheckOFDResponse [21:44:28]1017 (14) - 77093643461234 [21:44:28]1041 (16) - 0000000000963346 [21:44:28]1040 (4) - 69578 [21:44:28]1012 (4) - 20.10.2024 15:36 [21:44:28]1206 (1) - 0 [21:44:28]OFD Sender: Remove packet 69578 [21:44:28]ProducePacketName [21:44:28]name=ofd_packets/00069578 [21:44:28]NVStorageDeleteData [21:44:28]Write to MH i2c: 01 00 00 73 1D 90 [21:44:28]Write i2c OK [21:44:28]MH_I2C_Read... [21:44:28]Read from MH i2c: 01 [21:44:28]MH_I2C_Read... [21:44:28]Read from MH i2c: 01 07 00 [21:44:28]MH_I2C_Read... [21:44:28]Read from MH i2c: 01 07 00 73 1D 00 00 00 00 00 FB 0C 9E [21:44:28]RasterBufferAndPrint [21:44:28]line [21:44:28]line [21:44:28]line [21:44:28]line [21:44:28]line [21:44:28]written 0, free lines is 3332 [21:44:28]MH_Cut [21:44:28]Write to MH i2c: D1 01 00 7A 1D 01 69 [21:44:28]Write i2c OK [21:44:28]MH_I2C_Read... [21:44:28]Read from MH i2c: D1 [21:44:28]MH_I2C_Read... [21:44:28]Read from MH i2c: D1 01 00 [21:44:28]MH_I2C_Read... [21:44:28]Read from MH i2c: D1 01 00 7A 1D 00 68 [21:44:28]Write to MH i2c: 01 00 00 7B 1D 98 [21:44:28]Write i2c OK [21:44:28]MH_I2C_Read... [21:44:28]OFD Sender: No OFD packet to send [21:44:29]*** Cut start [21:44:29]*** Partial cut [21:44:29]*** CUTSNS_PIN = 1 [21:44:29]*** CUTSNS_PIN = 0 [21:44:29]*** Brake cut motor [21:44:29]Read from MH i2c: 01 [21:44:29]MH_I2C_Read... [21:44:29]*** Stop cut motor [21:44:29]*** Cut end [21:44:29]Read from MH i2c: 01 07 00 [21:44:29]MH_I2C_Read... [21:44:29]Read from MH i2c: 01 07 00 7B 1D 00 00 00 00 00 FF 0F AD [21:44:29]process_action close_receipt done [21:44:29]requested_data is exist [21:44:29]produce_requested_data [21:44:29]requested_item fm.sn is exist - process it [21:44:29]wFMCommunicate request_size=4 [21:44:29]MH_SAM_APDU [21:44:29]CAPDU: 80 11 00 00 [21:44:29]Write to MH i2c: E2 08 00 7C 1D 80 11 00 00 00 00 00 00 13 [21:44:29]Write i2c OK [21:44:29]MH_I2C_Read... [21:44:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:44:29]Read from MH i2c: E2 [21:44:29]MH_I2C_Read... [21:44:29]Read from MH i2c: E2 17 00 [21:44:29]MH_I2C_Read... [21:44:29]Read from MH i2c: E2 17 00 7C 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 65 [21:44:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:44:29]wFMCommunicate OK [21:44:29]requested_item fd.num is exist - process it [21:44:29]SAM_PROTO_GetFieldsCounters [21:44:29]wFMCommunicate request_size=4 [21:44:29]MH_SAM_APDU [21:44:29]CAPDU: 80 13 00 00 [21:44:29]Write to MH i2c: E2 08 00 7D 1D 80 13 00 00 00 00 00 00 16 [21:44:29]Write i2c OK [21:44:29]MH_I2C_Read... [21:44:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:44:29]Read from MH i2c: E2 [21:44:29]MH_I2C_Read... [21:44:29]Read from MH i2c: E2 62 00 [21:44:29]MH_I2C_Read... [21:44:29]Read from MH i2c: E2 62 00 7D 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CA 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 A7 01 00 00 5E 04 04 00 A7 01 00 00 57 04 04 00 A8 01 00 00 19 04 04 00 00 00 00 00 90 00 C4 [21:44:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CA 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 A7 01 00 00 5E 04 04 00 A7 01 00 00 57 04 04 00 A8 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:44:29]wFMCommunicate OK [21:44:29]SAM_PROTO_GetFieldsCounters done [21:44:29]requested_item shift.num is exist - process it [21:44:29]requested_item shift.opened is exist - process it [21:44:29]req_shift_opened [21:44:29]FM_GetShiftState [21:44:29]SAM_PROTO_GetShiftState [21:44:29]wFMCommunicate request_size=4 [21:44:29]MH_SAM_APDU [21:44:29]CAPDU: 80 13 01 00 [21:44:29]Write to MH i2c: E2 08 00 7E 1D 80 13 01 00 00 00 00 00 18 [21:44:29]Write i2c OK [21:44:29]MH_I2C_Read... [21:44:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:44:30]Read from MH i2c: E2 [21:44:30]MH_I2C_Read... [21:44:30]Read from MH i2c: E2 0E 00 [21:44:30]MH_I2C_Read... [21:44:30]Read from MH i2c: E2 0E 00 7E 1D 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 1E [21:44:30]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [21:44:30]wFMCommunicate OK [21:44:30]SAM_PROTO_GetShiftState done [21:44:30]FM_GetShiftState done [21:44:30]req_shift_opened done [21:44:30]requested_item shift.open_date is exist - process it [21:44:30]req_shift_open_date [21:44:30]req_shift_open_date done [21:44:30]produce_requested_data done [21:44:30]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69578,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [21:44:30]process_action_free close_receipt [21:44:30]json_value_free [21:44:30]json_value_free done [21:44:30]process_json_proto returns [21:44:30]Send response to host [21:44:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69578,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [21:44:30]free response buf [21:44:30]execute_script done [21:44:30]execute_script returns [21:44:30]free content buf [21:44:30]Sock 7.Close socket [21:44:30]Sock 7.Thread stoped [21:44:33]OFD Sender: No OFD packet to send [21:44:38]OFD Sender: No OFD packet to send [21:44:43]OFD Sender: No OFD packet to send [21:44:48]OFD Sender: No OFD packet to send [21:44:53]OFD Sender: No OFD packet to send [21:44:58]OFD Sender: No OFD packet to send [21:45:03]OFD Sender: No OFD packet to send [21:45:08]OFD Sender: No OFD packet to send [21:45:13]OFD Sender: No OFD packet to send [21:45:18]OFD Sender: No OFD packet to send [21:45:23]OFD Sender: No OFD packet to send [21:45:28]OFD Sender: No OFD packet to send [21:45:33]OFD Sender: No OFD packet to send [21:45:38]OFD Sender: No OFD packet to send [21:45:43]OFD Sender: No OFD packet to send [21:45:48]OFD Sender: No OFD packet to send [21:45:53]OFD Sender: No OFD packet to send [21:45:58]OFD Sender: No OFD packet to send [21:46:03]OFD Sender: No OFD packet to send [21:46:08]OFD Sender: No OFD packet to send [21:46:13]OFD Sender: No OFD packet to send [21:46:18]OFD Sender: No OFD packet to send [21:46:23]OFD Sender: No OFD packet to send [21:46:28]OFD Sender: No OFD packet to send [21:46:33]OFD Sender: No OFD packet to send [21:46:38]OFD Sender: No OFD packet to send [21:46:43]OFD Sender: No OFD packet to send [21:46:48]OFD Sender: No OFD packet to send [21:46:53]OFD Sender: No OFD packet to send [21:46:58]OFD Sender: No OFD packet to send [21:47:03]OFD Sender: No OFD packet to send [21:47:08]OFD Sender: No OFD packet to send [21:47:13]OFD Sender: No OFD packet to send [21:47:18]OFD Sender: No OFD packet to send [21:47:23]OFD Sender: No OFD packet to send [21:47:28]OFD Sender: No OFD packet to send [21:47:33]OFD Sender: No OFD packet to send [21:47:38]OFD Sender: No OFD packet to send [21:47:43]OFD Sender: No OFD packet to send [21:47:48]OFD Sender: No OFD packet to send [21:47:54]OFD Sender: No OFD packet to send [21:47:59]OFD Sender: No OFD packet to send [21:48:04]OFD Sender: No OFD packet to send [21:48:09]OFD Sender: No OFD packet to send [21:48:14]OFD Sender: No OFD packet to send [21:48:19]OFD Sender: No OFD packet to send [21:48:24]OFD Sender: No OFD packet to send [21:48:29]OFD Sender: No OFD packet to send [21:48:34]OFD Sender: No OFD packet to send [21:48:39]OFD Sender: No OFD packet to send [21:48:44]OFD Sender: No OFD packet to send [21:48:49]OFD Sender: No OFD packet to send [21:48:54]OFD Sender: No OFD packet to send [21:48:59]OFD Sender: No OFD packet to send [21:49:04]OFD Sender: No OFD packet to send [21:49:09]OFD Sender: No OFD packet to send [21:49:14]OFD Sender: No OFD packet to send [21:49:19]OFD Sender: No OFD packet to send [21:49:24]OFD Sender: No OFD packet to send [21:49:27]accept exits with 9 [21:49:27]New connection [21:49:27]New thread 3066797412 created [21:49:27]Thread 3066654052 joined [21:49:27]Waiting for new connection... [21:49:27] Sock 9.Parse request [21:49:27]Sock 9.Check first char [21:49:27]Sock 9.First char is OK [21:49:27]request: POST /json_proto HTTP/1.0 [21:49:27]Method: POST [21:49:27]URL: /json_proto [21:49:27]Method is POST - this is cgi request [21:49:27]url: /json_proto [21:49:27]query_string will be loaded in cgi processing [21:49:27]execute_cgi json_proto POST (null) [21:49:27]execute_cgi path=json_proto method=POST [21:49:27]POST find Content-Length [21:49:27]Host: 172.17.50.3:8080 [21:49:27]Content-Length: 767 [21:49:27]Content-Type: application/json [21:49:27] [21:49:27]POST finish read [21:49:27]Found Content-Length = 767 [21:49:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:49:27]execute_script... [21:49: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)2885318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:49:27]POST & json_proto [21:49:27]process_json_proto [21:49:27]json parsed OK: [21:49:27]protocol is kg_v1.0 [21:49:27]action value=close_receipt [21:49:27]process_action close_receipt [21:49:27]cmd_close_receipt [21:49:27]MH_GetDate [21:49:27]Write to MH i2c: F0 00 00 7F 1D 8B [21:49:27]Write i2c OK [21:49:27]MH_I2C_Read... [21:49:27]Read from MH i2c: F0 [21:49:27]MH_I2C_Read... [21:49:27]Read from MH i2c: F0 09 00 [21:49:27]MH_I2C_Read... [21:49:27]Read from MH i2c: F0 09 00 7F 1D 00 E8 7A 15 67 6B 98 1E 66 F9 [21:49:27]GetLastDocTimeStamp 1729460667 [21:49:27]current date 1729460968 [21:49:27]FM_GetShiftState [21:49:27]SAM_PROTO_GetShiftState [21:49:27]wFMCommunicate request_size=4 [21:49:27]MH_SAM_APDU [21:49:27]CAPDU: 80 13 01 00 [21:49:27]Write to MH i2c: E2 08 00 80 1D 80 13 01 00 00 00 00 00 1A [21:49:27]Write i2c OK [21:49:27]MH_I2C_Read... [21:49:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:27]Read from MH i2c: E2 [21:49:27]MH_I2C_Read... [21:49:27]Read from MH i2c: E2 0E 00 [21:49:27]MH_I2C_Read... [21:49:27]Read from MH i2c: E2 0E 00 80 1D 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 20 [21:49:27]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [21:49:27]wFMCommunicate OK [21:49:27]SAM_PROTO_GetShiftState done [21:49:27]FM_GetShiftState done [21:49:27]opened in 1729383220 [21:49:27]opened+sec_in_day 1729469620 [21:49:27]quantity*price = 20003 [21:49:27]sum+1 = 20004 [21:49:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 424 20.10.2024 21:49 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69579 ФПД: 33761208443886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T214929&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69579&fm=33761208443886&tin=02508201610067®Number=0000000000156251&sum=20003 [21:49:28]StoreToDocumentArchive [21:49:28]shift 193 fd 69579 [21:49:28]save to /storage/0193/doc_00069579 [21:49:28]save last doc name /storage/0193/doc_00069579 to /storage/kkm_last_doc_name [21:49:28]save OK [21:49:28]Clear old archive folders... [21:49:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:49:28]tlvbuf is 00F14B70 [21:49:28]SAM_PROTO_ClearQueue [21:49:28]wFMCommunicate request_size=4 [21:49:28]MH_SAM_APDU [21:49:28]CAPDU: 80 09 00 00 [21:49:28]Write to MH i2c: E2 08 00 8D 1D 80 09 00 00 00 00 00 00 1C [21:49:28]Write i2c OK [21:49:28]MH_I2C_Read... [21:49:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:49:28]Read from MH i2c: E2 [21:49:28]MH_I2C_Read... [21:49:28]Read from MH i2c: E2 03 00 [21:49:28]MH_I2C_Read... [21:49:29]Read from MH i2c: E2 03 00 8D 1D 00 90 00 1E [21:49:29]RAPDU: 90 00 [21:49:29]wFMCommunicate OK [21:49:29]SAM_PROTO_ClearQueue done [21:49:29]KKMCreateOFDPacket [21:49:29]OFDProtocolAddRootSTLVToBuf [21:49:29]FM_MakeSignedData [21:49:29]FM_MakeSignedData [21:49:29]SAM_PROTO_SignData [21:49:29]wFMCommunicate request_size=4 [21:49:29]MH_SAM_APDU [21:49:29]CAPDU: 80 0D 01 02 [21:49:29]Write to MH i2c: E2 08 00 8E 1D 80 0D 01 02 00 00 00 00 24 [21:49:29]Write i2c OK [21:49:29]MH_I2C_Read... [21:49:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:49:29]Read from MH i2c: E2 [21:49:29]MH_I2C_Read... [21:49:29]Read from MH i2c: E2 03 00 [21:49:29]MH_I2C_Read... [21:49:29]Read from MH i2c: E2 03 00 8E 1D 00 90 00 1F [21:49:29]RAPDU: 90 00 [21:49:29]wFMCommunicate OK [21:49:29]wFMCommunicate request_size=255 [21:49:29]MH_SAM_APDU [21:49:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 01 00 00 F4 03 04 00 E9 7A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CB 0F 01 00 35 04 06 00 1E [21:49:29]Write to MH i2c: E2 02 01 8F 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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 01 00 00 F4 03 04 00 E9 7A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CB 0F 01 00 35 04 06 00 1E 00 00 B7 [21:49:29]Write i2c OK [21:49:29]MH_I2C_Read... [21:49:29]OFD Sender: No OFD packet to send [21:49:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:29]Read from MH i2c: E2 [21:49:29]MH_I2C_Read... [21:49:29]Read from MH i2c: E2 03 00 [21:49:29]MH_I2C_Read... [21:49:29]Read from MH i2c: E2 03 00 8F 1D 00 90 00 20 [21:49:29]RAPDU: 90 00 [21:49:29]wFMCommunicate OK [21:49:29]wFMCommunicate request_size=10 [21:49:29]MH_SAM_APDU [21:49:29]CAPDU: 80 0D 02 02 05 B4 A4 D6 23 EE [21:49:29]Write to MH i2c: E2 0D 00 90 1D 80 0D 02 02 05 00 B4 A4 D6 23 EE 00 00 70 [21:49:29]Write i2c OK [21:49:29]MH_I2C_Read... [21:49:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:29]Read from MH i2c: E2 [21:49:29]MH_I2C_Read... [21:49:29]Read from MH i2c: E2 03 00 [21:49:29]MH_I2C_Read... [21:49:29]Read from MH i2c: E2 03 00 90 1D 00 90 00 21 [21:49:29]RAPDU: 90 00 [21:49:29]wFMCommunicate OK [21:49:29]wFMCommunicate request_size=4 [21:49:29]MH_SAM_APDU [21:49:29]CAPDU: 80 0D 03 02 [21:49:29]Write to MH i2c: E2 08 00 91 1D 80 0D 03 02 00 00 00 00 29 [21:49:29]Write i2c OK [21:49:29]MH_I2C_Read... [21:49:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:49:29]Read from MH i2c: E2 [21:49:29]MH_I2C_Read... [21:49:29]Read from MH i2c: E2 0B 00 [21:49:29]MH_I2C_Read... [21:49:29]Read from MH i2c: E2 0B 00 91 1D 00 C5 2B 96 BB 82 D1 DA 0A 90 00 A2 [21:49:29]RAPDU: C5 2B 96 BB 82 D1 DA 0A 90 00 [21:49:29]wFMCommunicate OK [21:49:29]SAM_PROTO_SignData done [21:49:29]FM_MakeSignedData done [21:49:29]CreateOFDProtocolMessage [21:49:29]wFMCommunicate request_size=4 [21:49:29]MH_SAM_APDU [21:49:29]CAPDU: 80 11 00 00 [21:49:29]Write to MH i2c: E2 08 00 92 1D 80 11 00 00 00 00 00 00 29 [21:49:29]Write i2c OK [21:49:29]MH_I2C_Read... [21:49:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:29]Read from MH i2c: E2 [21:49:29]MH_I2C_Read... [21:49:29]Read from MH i2c: E2 17 00 [21:49:29]MH_I2C_Read... [21:49:29]Read from MH i2c: E2 17 00 92 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7B [21:49:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:49:29]wFMCommunicate OK [21:49:29]CreateOFDProtocolMessage done [21:49:29]OFDSenderStorePacket 69579 [21:49:29]StoreOFDPacket docnum=69579 [21:49:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A0 E3 07 01 B7 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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 01 00 00 F4 03 04 00 E9 7A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CB 0F 01 00 35 04 06 00 1E B4 A4 D6 23 EE C5 2B 96 BB 82 D1 DA 0A [21:49:29]CheckFolder [21:49:29]dirname=/storage/ofd_packets [21:49:29]CheckFolder done [21:49:29]ProducePacketName [21:49:29]name=ofd_packets/00069579 [21:49:29]NVStorageSaveData ofd_packets/00069579 [21:49:29]File name is /storage/ofd_packets/00069579 [21:49:29]Write 301 bytes [21:49:29]NVStorageSaveData done [21:49:29]OFDSenderStorePacket done [21:49:29]KKMCreateOFDPacket done [21:49:29]NVStorageSaveData kkm_last_timestamp [21:49:29]File name is /storage/kkm_last_timestamp [21:49:29]Write 4 bytes [21:49:29]NVStorageSaveData done [21:49:29]ExternCall_PrintAddStr [21:49:29]wPrintStart [21:49:29]Write to MH i2c: 01 00 00 93 1D B0 [21:49:29]Write i2c OK [21:49:29]MH_I2C_Read... [21:49:29]Read from MH i2c: 01 [21:49:29]MH_I2C_Read... [21:49:29]Read from MH i2c: 01 07 00 [21:49:29]MH_I2C_Read... [21:49:29]Read from MH i2c: 01 07 00 93 1D 00 00 00 00 00 FF 0F C5 [21:49:29]RasterBufferAndPrint [21:49:29]line Счет N : (1)2885318 [21:49:29]line ИНН: 02508201610067 [21:49:29]line Контрольно-Кассовый Чек [21:49:29]line ПРОДАЖА [21:49:29]line ТРК (МРК, ГНК) : 42 [21:49:29]line Товар: 2710124130 [21:49:29]line Аи-92-К-5 [21:49:29]line 2.990 * 66.90 [21:49:29]line = 200.03 [21:49:29]line НДС 12% НСП 1% [21:49:29]line > о реализуемом товаре [21:49:29]line ИТОГО: 200.03 [21:49:29]line НСП 1% : 1.77 [21:49:29]line НДС 12% : 21.24 [21:49:29]line Наличными: 0.00 [21:49:29]line Безнал.: 200.03 [21:49:29]line Место: АЗС № 85 "Партнер Нефть" [21:49:29]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:49:29]line СНО: Общий режим [21:49:29]line Чек 424 20.10.2024 21:49 [21:49:29]line Смена: 193 ФФД: 1.0 [21:49:29]line ЗНМ: 0300000167 [21:49:29]line РНМ: 0000000000156251 [21:49:29]line Версия ККМ: v1.0 [21:49:29]line Платежная система: Mbank [21:49:29]line ФМ: 0000000000963346 [21:49:29]line ФД: 69579 [21:49:29]line ФПД: 33761208443886 [21:49:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T214929&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69579&fm=33761208443886&tin=02508201610067®Number=0000000000156251&sum=20003 [21:49:29]OFD Sender: Processing packet 69579 [packets to send 18, broken 17] [21:49:29]ProducePacketName [21:49:29]name=ofd_packets/00069579 [21:49:29]OFD Sender: To server: pG, [21:49:29]CommunicateWithHost lk.salyk.kg:30040 [21:49:29]ConnectInit lk.salyk.kg [21:49:29]written 0, free lines is 4095 [21:49:29]Connected sock=10 [21:49:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A0 E3 07 01 B7 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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 01 00 00 F4 03 04 00 E9 7A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CB 0F 01 00 35 04 06 00 1E B4 A4 D6 23 EE C5 2B 96 BB 82 D1 DA 0A [21:49:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 E6 3C 47 00 E8 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CB 0F 01 00 F4 03 04 00 8E 24 15 67 B6 04 01 00 00 74 54 F3 9A 1C 04 84 06 [21:49:30]CommunicateWithHost err = 0 [21:49:30]CheckOFDResponse [21:49:30]1017 (14) - 77093643461234 [21:49:30]1041 (16) - 0000000000963346 [21:49:30]1040 (4) - 69579 [21:49:30]1012 (4) - 20.10.2024 15:41 [21:49:30]1206 (1) - 0 [21:49:30]OFD Sender: Remove packet 69579 [21:49:30]ProducePacketName [21:49:30]name=ofd_packets/00069579 [21:49:30]NVStorageDeleteData [21:49:30]Write to MH i2c: 01 00 00 BC 1D D9 [21:49:30]Write i2c OK [21:49:30]MH_I2C_Read... [21:49:30]Read from MH i2c: 01 [21:49:30]MH_I2C_Read... [21:49:30]Read from MH i2c: 01 07 00 [21:49:30]MH_I2C_Read... [21:49:30]Read from MH i2c: 01 07 00 BC 1D 00 00 00 00 00 26 0D 13 [21:49:30]RasterBufferAndPrint [21:49:30]line [21:49:30]line [21:49:30]line [21:49:30]line [21:49:30]line [21:49:30]written 0, free lines is 3373 [21:49:30]MH_Cut [21:49:30]Write to MH i2c: D1 01 00 C3 1D 01 B2 [21:49:30]Write i2c OK [21:49:30]MH_I2C_Read... [21:49:30]Read from MH i2c: D1 [21:49:30]MH_I2C_Read... [21:49:30]Read from MH i2c: D1 01 00 [21:49:30]MH_I2C_Read... [21:49:30]Read from MH i2c: D1 01 00 C3 1D 00 B1 [21:49:30]Write to MH i2c: 01 00 00 C4 1D E1 [21:49:30]Write i2c OK [21:49:30]MH_I2C_Read... [21:49:30]OFD Sender: No OFD packet to send [21:49:30]*** Cut start [21:49:30]*** Partial cut [21:49:30]*** CUTSNS_PIN = 1 [21:49:30]*** CUTSNS_PIN = 0 [21:49:31]*** Brake cut motor [21:49:31]Read from MH i2c: 01 [21:49:31]MH_I2C_Read... [21:49:31]*** Stop cut motor [21:49:31]*** Cut end [21:49:31]Read from MH i2c: 01 07 00 [21:49:31]MH_I2C_Read... [21:49:31]Read from MH i2c: 01 07 00 C4 1D 00 00 00 00 00 FF 0F F6 [21:49:31]process_action close_receipt done [21:49:31]requested_data is exist [21:49:31]produce_requested_data [21:49:31]requested_item fm.sn is exist - process it [21:49:31]wFMCommunicate request_size=4 [21:49:31]MH_SAM_APDU [21:49:31]CAPDU: 80 11 00 00 [21:49:31]Write to MH i2c: E2 08 00 C5 1D 80 11 00 00 00 00 00 00 5C [21:49:31]Write i2c OK [21:49:31]MH_I2C_Read... [21:49:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:31]Read from MH i2c: E2 [21:49:31]MH_I2C_Read... [21:49:31]Read from MH i2c: E2 17 00 [21:49:31]MH_I2C_Read... [21:49:31]Read from MH i2c: E2 17 00 C5 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AE [21:49:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:49:31]wFMCommunicate OK [21:49:31]requested_item fd.num is exist - process it [21:49:31]SAM_PROTO_GetFieldsCounters [21:49:31]wFMCommunicate request_size=4 [21:49:31]MH_SAM_APDU [21:49:31]CAPDU: 80 13 00 00 [21:49:31]Write to MH i2c: E2 08 00 C6 1D 80 13 00 00 00 00 00 00 5F [21:49:31]Write i2c OK [21:49:31]MH_I2C_Read... [21:49:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:49:31]Read from MH i2c: E2 [21:49:31]MH_I2C_Read... [21:49:31]Read from MH i2c: E2 62 00 [21:49:31]MH_I2C_Read... [21:49:31]Read from MH i2c: E2 62 00 C6 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CB 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 A8 01 00 00 5E 04 04 00 A8 01 00 00 57 04 04 00 A9 01 00 00 19 04 04 00 00 00 00 00 90 00 11 [21:49:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CB 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 A8 01 00 00 5E 04 04 00 A8 01 00 00 57 04 04 00 A9 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:49:31]wFMCommunicate OK [21:49:31]SAM_PROTO_GetFieldsCounters done [21:49:31]requested_item shift.num is exist - process it [21:49:31]requested_item shift.opened is exist - process it [21:49:31]req_shift_opened [21:49:31]FM_GetShiftState [21:49:31]SAM_PROTO_GetShiftState [21:49:31]wFMCommunicate request_size=4 [21:49:31]MH_SAM_APDU [21:49:31]CAPDU: 80 13 01 00 [21:49:31]Write to MH i2c: E2 08 00 C7 1D 80 13 01 00 00 00 00 00 61 [21:49:31]Write i2c OK [21:49:31]MH_I2C_Read... [21:49:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:31]Read from MH i2c: E2 [21:49:31]MH_I2C_Read... [21:49:31]Read from MH i2c: E2 0E 00 [21:49:31]MH_I2C_Read... [21:49:31]Read from MH i2c: E2 0E 00 C7 1D 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 67 [21:49:31]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [21:49:31]wFMCommunicate OK [21:49:31]SAM_PROTO_GetShiftState done [21:49:31]FM_GetShiftState done [21:49:31]req_shift_opened done [21:49:31]requested_item shift.open_date is exist - process it [21:49:31]req_shift_open_date [21:49:31]req_shift_open_date done [21:49:31]produce_requested_data done [21:49:31]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69579,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [21:49:31]process_action_free close_receipt [21:49:31]json_value_free [21:49:31]json_value_free done [21:49:31]process_json_proto returns [21:49:31]Send response to host [21:49:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69579,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [21:49:31]free response buf [21:49:31]execute_script done [21:49:31]execute_script returns [21:49:31]free content buf [21:49:31]Sock 9.Close socket [21:49:31]Sock 9.Thread stoped [21:49:35]OFD Sender: No OFD packet to send [21:49:40]OFD Sender: No OFD packet to send [21:49:45]OFD Sender: No OFD packet to send [21:49:46]accept exits with 7 [21:49:46]New connection [21:49:46]New thread 3066654052 created [21:49:46]Thread 3066797412 joined [21:49:46]Waiting for new connection... [21:49:46] Sock 7.Parse request [21:49:46]Sock 7.Check first char [21:49:46]Sock 7.First char is OK [21:49:46]request: POST /json_proto HTTP/1.0 [21:49:46]Method: POST [21:49:46]URL: /json_proto [21:49:46]Method is POST - this is cgi request [21:49:46]url: /json_proto [21:49:46]query_string will be loaded in cgi processing [21:49:46]execute_cgi json_proto POST (null) [21:49:46]execute_cgi path=json_proto method=POST [21:49:46]POST find Content-Length [21:49:46]Host: 172.17.50.3:8080 [21:49:46]Content-Length: 679 [21:49:46]Content-Type: application/json [21:49:46] [21:49:46]POST finish read [21:49:46]Found Content-Length = 679 [21:49:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885319", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.070, "sum" : 740.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 740.00, "total" : 740.00, "payments": [ { "type": 0, "sum" : 740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:49:46]execute_script... [21:49: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)2885319", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.070, "sum" : 740.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 740.00, "total" : 740.00, "payments": [ { "type": 0, "sum" : 740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:49:46]POST & json_proto [21:49:46]process_json_proto [21:49:46]json parsed OK: [21:49:46]protocol is kg_v1.0 [21:49:46]action value=close_receipt [21:49:46]process_action close_receipt [21:49:46]cmd_close_receipt [21:49:46]MH_GetDate [21:49:46]Write to MH i2c: F0 00 00 C8 1D D4 [21:49:46]Write i2c OK [21:49:46]MH_I2C_Read... [21:49:46]Read from MH i2c: F0 [21:49:46]MH_I2C_Read... [21:49:46]Read from MH i2c: F0 09 00 [21:49:46]MH_I2C_Read... [21:49:46]Read from MH i2c: F0 09 00 C8 1D 00 FB 7A 15 67 6B 98 1E 66 55 [21:49:46]GetLastDocTimeStamp 1729460969 [21:49:46]current date 1729460987 [21:49:46]FM_GetShiftState [21:49:46]SAM_PROTO_GetShiftState [21:49:46]wFMCommunicate request_size=4 [21:49:46]MH_SAM_APDU [21:49:46]CAPDU: 80 13 01 00 [21:49:46]Write to MH i2c: E2 08 00 C9 1D 80 13 01 00 00 00 00 00 63 [21:49:46]Write i2c OK [21:49:46]MH_I2C_Read... [21:49:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:46]Read from MH i2c: E2 [21:49:46]MH_I2C_Read... [21:49:46]Read from MH i2c: E2 0E 00 [21:49:46]MH_I2C_Read... [21:49:46]Read from MH i2c: E2 0E 00 C9 1D 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 69 [21:49:46]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [21:49:46]wFMCommunicate OK [21:49:46]SAM_PROTO_GetShiftState done [21:49:46]FM_GetShiftState done [21:49:46]opened in 1729383220 [21:49:46]opened+sec_in_day 1729469620 [21:49:46]quantity*price = 74058 [21:49:46]sum+1 = 74059 [21:49:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 740.00 Внесено: 740.00 СДАЧА: 0.00 НСП 1% : 6.55 НДС 12% : 78.65 Наличными: 740.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 425 20.10.2024 21:49 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69580 ФПД: 268985718683458 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T214947&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69580&fm=268985718683458&tin=02508201610067®Number=0000000000156251&sum=74000 [21:49:47]StoreToDocumentArchive [21:49:47]shift 193 fd 69580 [21:49:47]save to /storage/0193/doc_00069580 [21:49:47]save last doc name /storage/0193/doc_00069580 to /storage/kkm_last_doc_name [21:49:47]save OK [21:49:47]Clear old archive folders... [21:49:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:49:47]tlvbuf is 00F66E40 [21:49:47]SAM_PROTO_ClearQueue [21:49:47]wFMCommunicate request_size=4 [21:49:47]MH_SAM_APDU [21:49:47]CAPDU: 80 09 00 00 [21:49:47]Write to MH i2c: E2 08 00 D6 1D 80 09 00 00 00 00 00 00 65 [21:49:47]Write i2c OK [21:49:47]MH_I2C_Read... [21:49:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:49:47]Read from MH i2c: E2 [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: E2 03 00 [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: E2 03 00 D6 1D 00 90 00 67 [21:49:47]RAPDU: 90 00 [21:49:47]wFMCommunicate OK [21:49:47]SAM_PROTO_ClearQueue done [21:49:47]KKMCreateOFDPacket [21:49:47]OFDProtocolAddRootSTLVToBuf [21:49:47]FM_MakeSignedData [21:49:47]FM_MakeSignedData [21:49:47]SAM_PROTO_SignData [21:49:47]wFMCommunicate request_size=4 [21:49:47]MH_SAM_APDU [21:49:47]CAPDU: 80 0D 01 02 [21:49:47]Write to MH i2c: E2 08 00 D7 1D 80 0D 01 02 00 00 00 00 6D [21:49:47]Write i2c OK [21:49:47]MH_I2C_Read... [21:49:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:49:47]Read from MH i2c: E2 [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: E2 03 00 [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: E2 03 00 D7 1D 00 90 00 68 [21:49:47]RAPDU: 90 00 [21:49:47]wFMCommunicate OK [21:49:47]wFMCommunicate request_size=255 [21:49:47]MH_SAM_APDU [21:49:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4A 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 1E 00 00 00 00 07 04 06 00 10 21 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 01 00 00 F4 03 04 00 FB 7A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CC 0F 01 00 35 04 06 00 F4 [21:49:47]Write to MH i2c: E2 02 01 D8 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 35 FF 03 08 00 03 3E 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4A 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 1E 00 00 00 00 07 04 06 00 10 21 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 01 00 00 F4 03 04 00 FB 7A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CC 0F 01 00 35 04 06 00 F4 00 00 7A [21:49:47]Write i2c OK [21:49:47]MH_I2C_Read... [21:49:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:47]Read from MH i2c: E2 [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: E2 03 00 [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: E2 03 00 D8 1D 00 90 00 69 [21:49:47]RAPDU: 90 00 [21:49:47]wFMCommunicate OK [21:49:47]wFMCommunicate request_size=10 [21:49:47]MH_SAM_APDU [21:49:47]CAPDU: 80 0D 02 02 05 A4 1E 36 37 42 [21:49:47]Write to MH i2c: E2 0D 00 D9 1D 80 0D 02 02 05 00 A4 1E 36 37 42 00 00 EB [21:49:47]Write i2c OK [21:49:47]MH_I2C_Read... [21:49:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:47]Read from MH i2c: E2 [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: E2 03 00 [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: E2 03 00 D9 1D 00 90 00 6A [21:49:47]RAPDU: 90 00 [21:49:47]wFMCommunicate OK [21:49:47]wFMCommunicate request_size=4 [21:49:47]MH_SAM_APDU [21:49:47]CAPDU: 80 0D 03 02 [21:49:47]Write to MH i2c: E2 08 00 DA 1D 80 0D 03 02 00 00 00 00 72 [21:49:47]Write i2c OK [21:49:47]MH_I2C_Read... [21:49:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:49:47]Read from MH i2c: E2 [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: E2 0B 00 [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: E2 0B 00 DA 1D 00 C3 C7 83 54 96 25 54 8B 90 00 6E [21:49:47]RAPDU: C3 C7 83 54 96 25 54 8B 90 00 [21:49:47]wFMCommunicate OK [21:49:47]SAM_PROTO_SignData done [21:49:47]FM_MakeSignedData done [21:49:47]CreateOFDProtocolMessage [21:49:47]wFMCommunicate request_size=4 [21:49:47]MH_SAM_APDU [21:49:47]CAPDU: 80 11 00 00 [21:49:47]Write to MH i2c: E2 08 00 DB 1D 80 11 00 00 00 00 00 00 72 [21:49:47]Write i2c OK [21:49:47]MH_I2C_Read... [21:49:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:47]Read from MH i2c: E2 [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: E2 17 00 [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: E2 17 00 DB 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C4 [21:49:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:49:47]wFMCommunicate OK [21:49:47]CreateOFDProtocolMessage done [21:49:47]OFDSenderStorePacket 69580 [21:49:47]StoreOFDPacket docnum=69580 [21:49:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 AB 12 07 01 CC CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4A 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 1E 00 00 00 00 07 04 06 00 10 21 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 01 00 00 F4 03 04 00 FB 7A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CC 0F 01 00 35 04 06 00 F4 A4 1E 36 37 42 C3 C7 83 54 96 25 54 8B [21:49:47]CheckFolder [21:49:47]dirname=/storage/ofd_packets [21:49:47]CheckFolder done [21:49:47]ProducePacketName [21:49:47]name=ofd_packets/00069580 [21:49:47]NVStorageSaveData ofd_packets/00069580 [21:49:47]File name is /storage/ofd_packets/00069580 [21:49:47]Write 301 bytes [21:49:47]NVStorageSaveData done [21:49:47]OFDSenderStorePacket done [21:49:47]KKMCreateOFDPacket done [21:49:47]NVStorageSaveData kkm_last_timestamp [21:49:47]File name is /storage/kkm_last_timestamp [21:49:47]Write 4 bytes [21:49:47]NVStorageSaveData done [21:49:47]ExternCall_PrintAddStr [21:49:47]wPrintStart [21:49:47]Write to MH i2c: 01 00 00 DC 1D F9 [21:49:47]OFD Sender: Processing packet 69580 [packets to send 18, broken 17] [21:49:47]ProducePacketName [21:49:47]name=ofd_packets/00069580 [21:49:47]OFD Sender: To server: pG, [21:49:47]CommunicateWithHost lk.salyk.kg:30040 [21:49:48]ConnectInit lk.salyk.kg [21:49:48]Write i2c OK [21:49:48]MH_I2C_Read... [21:49:48]Read from MH i2c: 01 [21:49:48]MH_I2C_Read... [21:49:48]Read from MH i2c: 01 07 00 [21:49:48]MH_I2C_Read... [21:49:48]Read from MH i2c: 01 07 00 DC 1D 00 00 00 00 00 FF 0F 0E [21:49:48]RasterBufferAndPrint [21:49:48]line Счет N : (1)2885319 [21:49:48]line ИНН: 02508201610067 [21:49:48]line Контрольно-Кассовый Чек [21:49:48]line ПРОДАЖА [21:49:48]line ТРК (МРК, ГНК) : 12 [21:49:48]line Товар: 2710124130 [21:49:48]line Аи-92-К-5 [21:49:48]line 11.070 * 66.90 [21:49:48]line = 740.58 [21:49:48]line НДС 12% НСП 1% [21:49:48]line > о реализуемом товаре [21:49:48]line ОКРУГЛЕНИЕ: -0.58 [21:49:48]line ИТОГО: 740.00 [21:49:48]line Внесено: 740.00 [21:49:48]line СДАЧА: 0.00 [21:49:48]line НСП 1% : 6.55 [21:49:48]line НДС 12% : 78.65 [21:49:48]line Наличными: 740.00 [21:49:48]line Безнал.: 0.00 [21:49:48]line Место: АЗС № 85 "Партнер Нефть" [21:49:48]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [21:49:48]line СНО: Общий режим [21:49:48]line Чек 425 20.10.2024 21:49 [21:49:48]line Смена: 193 ФФД: 1.0 [21:49:48]line ЗНМ: 0300000167 [21:49:48]line РНМ: 0000000000156251 [21:49:48]line Версия ККМ: v1.0 [21:49:48]line ФМ: 0000000000963346 [21:49:48]line ФД: 69580 [21:49:48]line ФПД: 268985718683458 [21:49:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T214947&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69580&fm=268985718683458&tin=02508201610067®Number=0000000000156251&sum=74000 [21:49:48]written 0, free lines is 4095 [21:49:48]Connected sock=10 [21:49:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 AB 12 07 01 CC CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4A 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 1E 00 00 00 00 07 04 06 00 10 21 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 01 00 00 F4 03 04 00 FB 7A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CC 0F 01 00 35 04 06 00 F4 A4 1E 36 37 42 C3 C7 83 54 96 25 54 8B [21:49:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 55 AE 47 00 BB 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 30 39 36 33 33 34 36 10 04 04 00 CC 0F 01 00 F4 03 04 00 A0 24 15 67 B6 04 01 00 00 A2 33 FF 76 DF A4 A1 05 [21:49:48]CommunicateWithHost err = 0 [21:49:48]CheckOFDResponse [21:49:48]1017 (14) - 77093643461234 [21:49:48]1041 (16) - 0000000000963346 [21:49:48]1040 (4) - 69580 [21:49:48]1012 (4) - 20.10.2024 15:41 [21:49:48]1206 (1) - 0 [21:49:48]OFD Sender: Remove packet 69580 [21:49:48]ProducePacketName [21:49:48]name=ofd_packets/00069580 [21:49:48]NVStorageDeleteData [21:49:48]Write to MH i2c: 01 00 00 07 1E 25 [21:49:48]Write i2c OK [21:49:48]MH_I2C_Read... [21:49:48]Read from MH i2c: 01 [21:49:48]MH_I2C_Read... [21:49:48]Read from MH i2c: 01 07 00 [21:49:48]MH_I2C_Read... [21:49:48]Read from MH i2c: 01 07 00 07 1E 00 00 00 00 00 FD 0C 35 [21:49:48]RasterBufferAndPrint [21:49:48]line [21:49:48]line [21:49:48]line [21:49:48]line [21:49:48]line [21:49:48]written 0, free lines is 3334 [21:49:48]MH_Cut [21:49:48]Write to MH i2c: D1 01 00 0E 1E 01 FE [21:49:48]Write i2c OK [21:49:48]MH_I2C_Read... [21:49:48]Read from MH i2c: D1 [21:49:48]MH_I2C_Read... [21:49:48]Read from MH i2c: D1 01 00 [21:49:48]MH_I2C_Read... [21:49:48]Read from MH i2c: D1 01 00 0E 1E 00 FD [21:49:48]Write to MH i2c: 01 00 00 0F 1E 2D [21:49:48]Write i2c OK [21:49:48]MH_I2C_Read... [21:49:48]OFD Sender: No OFD packet to send [21:49:49]*** Cut start [21:49:49]*** Partial cut [21:49:49]*** CUTSNS_PIN = 1 [21:49:49]*** CUTSNS_PIN = 0 [21:49:49]*** Brake cut motor [21:49:49]Read from MH i2c: 01 [21:49:49]MH_I2C_Read... [21:49:49]*** Stop cut motor [21:49:49]*** Cut end [21:49:49]Read from MH i2c: 01 07 00 [21:49:49]MH_I2C_Read... [21:49:49]Read from MH i2c: 01 07 00 0F 1E 00 00 00 00 00 FF 0F 42 [21:49:49]process_action close_receipt done [21:49:49]requested_data is exist [21:49:49]produce_requested_data [21:49:49]requested_item fm.sn is exist - process it [21:49:49]wFMCommunicate request_size=4 [21:49:49]MH_SAM_APDU [21:49:49]CAPDU: 80 11 00 00 [21:49:49]Write to MH i2c: E2 08 00 10 1E 80 11 00 00 00 00 00 00 A8 [21:49:49]Write i2c OK [21:49:49]MH_I2C_Read... [21:49:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:49]Read from MH i2c: E2 [21:49:49]MH_I2C_Read... [21:49:49]Read from MH i2c: E2 17 00 [21:49:49]MH_I2C_Read... [21:49:49]Read from MH i2c: E2 17 00 10 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FA [21:49:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [21:49:49]wFMCommunicate OK [21:49:49]requested_item fd.num is exist - process it [21:49:49]SAM_PROTO_GetFieldsCounters [21:49:49]wFMCommunicate request_size=4 [21:49:49]MH_SAM_APDU [21:49:49]CAPDU: 80 13 00 00 [21:49:49]Write to MH i2c: E2 08 00 11 1E 80 13 00 00 00 00 00 00 AB [21:49:49]Write i2c OK [21:49:49]MH_I2C_Read... [21:49:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:49:49]Read from MH i2c: E2 [21:49:49]MH_I2C_Read... [21:49:49]Read from MH i2c: E2 62 00 [21:49:49]MH_I2C_Read... [21:49:49]Read from MH i2c: E2 62 00 11 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CC 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 A9 01 00 00 5E 04 04 00 A9 01 00 00 57 04 04 00 AA 01 00 00 19 04 04 00 00 00 00 00 90 00 61 [21:49:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CC 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 A9 01 00 00 5E 04 04 00 A9 01 00 00 57 04 04 00 AA 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:49:49]wFMCommunicate OK [21:49:49]SAM_PROTO_GetFieldsCounters done [21:49:49]requested_item shift.num is exist - process it [21:49:49]requested_item shift.opened is exist - process it [21:49:49]req_shift_opened [21:49:49]FM_GetShiftState [21:49:49]SAM_PROTO_GetShiftState [21:49:49]wFMCommunicate request_size=4 [21:49:49]MH_SAM_APDU [21:49:49]CAPDU: 80 13 01 00 [21:49:49]Write to MH i2c: E2 08 00 12 1E 80 13 01 00 00 00 00 00 AD [21:49:49]Write i2c OK [21:49:49]MH_I2C_Read... [21:49:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:50]Read from MH i2c: E2 [21:49:50]MH_I2C_Read... [21:49:50]Read from MH i2c: E2 0E 00 [21:49:50]MH_I2C_Read... [21:49:50]Read from MH i2c: E2 0E 00 12 1E 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 B3 [21:49:50]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [21:49:50]wFMCommunicate OK [21:49:50]SAM_PROTO_GetShiftState done [21:49:50]FM_GetShiftState done [21:49:50]req_shift_opened done [21:49:50]requested_item shift.open_date is exist - process it [21:49:50]req_shift_open_date [21:49:50]req_shift_open_date done [21:49:50]produce_requested_data done [21:49:50]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69580,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [21:49:50]process_action_free close_receipt [21:49:50]json_value_free [21:49:50]json_value_free done [21:49:50]process_json_proto returns [21:49:50]Send response to host [21:49:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69580,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [21:49:50]free response buf [21:49:50]execute_script done [21:49:50]execute_script returns [21:49:50]free content buf [21:49:50]Sock 7.Close socket [21:49:50]Sock 7.Thread stoped [21:49:53]OFD Sender: No OFD packet to send [21:49:58]OFD Sender: No OFD packet to send [21:50:03]OFD Sender: No OFD packet to send [21:50:08]OFD Sender: No OFD packet to send [21:50:13]OFD Sender: No OFD packet to send [21:50:18]OFD Sender: No OFD packet to send [21:50:23]OFD Sender: No OFD packet to send [21:50:28]OFD Sender: No OFD packet to send [21:50:33]OFD Sender: No OFD packet to send [21:50:38]OFD Sender: No OFD packet to send [21:50:43]OFD Sender: No OFD packet to send [21:50:48]OFD Sender: No OFD packet to send [21:50:53]OFD Sender: No OFD packet to send [21:50:58]OFD Sender: No OFD packet to send [21:51:03]OFD Sender: No OFD packet to send [21:51:08]OFD Sender: No OFD packet to send [21:51:13]OFD Sender: No OFD packet to send [21:51:18]OFD Sender: No OFD packet to send [21:51:23]OFD Sender: No OFD packet to send [21:51:28]OFD Sender: No OFD packet to send [21:51:33]OFD Sender: No OFD packet to send [21:51:38]OFD Sender: No OFD packet to send [21:51:43]OFD Sender: No OFD packet to send [21:51:48]OFD Sender: No OFD packet to send [21:51:53]OFD Sender: No OFD packet to send [21:51:58]OFD Sender: No OFD packet to send [21:52:03]OFD Sender: No OFD packet to send [21:52:08]OFD Sender: No OFD packet to send [21:52:13]OFD Sender: No OFD packet to send [21:52:18]OFD Sender: No OFD packet to send [21:52:23]OFD Sender: No OFD packet to send [21:52:28]OFD Sender: No OFD packet to send [21:52:33]OFD Sender: No OFD packet to send [21:52:38]OFD Sender: No OFD packet to send [21:52:43]OFD Sender: No OFD packet to send [21:52:48]OFD Sender: No OFD packet to send [21:52:53]OFD Sender: No OFD packet to send [21:52:58]OFD Sender: No OFD packet to send [21:53:03]OFD Sender: No OFD packet to send [21:53:08]OFD Sender: No OFD packet to send [21:53:13]OFD Sender: No OFD packet to send [21:53:18]OFD Sender: No OFD packet to send [21:53:23]OFD Sender: No OFD packet to send [21:53:28]OFD Sender: No OFD packet to send [21:53:33]OFD Sender: No OFD packet to send [21:53:38]OFD Sender: No OFD packet to send [21:53:43]OFD Sender: No OFD packet to send [21:53:48]OFD Sender: No OFD packet to send [21:53:53]OFD Sender: No OFD packet to send [21:53:58]OFD Sender: No OFD packet to send [21:54:03]OFD Sender: No OFD packet to send [21:54:08]OFD Sender: No OFD packet to send [21:54:13]OFD Sender: No OFD packet to send [21:54:18]OFD Sender: No OFD packet to send [21:54:23]OFD Sender: No OFD packet to send [21:54:29]OFD Sender: No OFD packet to send [21:54:34]OFD Sender: No OFD packet to send [21:54:39]OFD Sender: No OFD packet to send [21:54:44]OFD Sender: No OFD packet to send [21:54:49]OFD Sender: No OFD packet to send [21:54:54]OFD Sender: No OFD packet to send [21:54:59]OFD Sender: No OFD packet to send [21:55:04]OFD Sender: No OFD packet to send [21:55:09]OFD Sender: No OFD packet to send [21:55:14]OFD Sender: No OFD packet to send [21:55:19]OFD Sender: No OFD packet to send [21:55:24]OFD Sender: No OFD packet to send [21:55:29]OFD Sender: No OFD packet to send [21:55:34]OFD Sender: No OFD packet to send [21:55:39]OFD Sender: No OFD packet to send [21:55:44]OFD Sender: No OFD packet to send [21:55:49]OFD Sender: No OFD packet to send [21:55:54]OFD Sender: No OFD packet to send [21:55:59]OFD Sender: No OFD packet to send [21:56:04]OFD Sender: No OFD packet to send [21:56:09]OFD Sender: No OFD packet to send [21:56:14]OFD Sender: No OFD packet to send [21:56:19]OFD Sender: No OFD packet to send [21:56:24]OFD Sender: No OFD packet to send [21:56:29]OFD Sender: No OFD packet to send [21:56:34]OFD Sender: No OFD packet to send [21:56:39]OFD Sender: No OFD packet to send [21:56:44]OFD Sender: No OFD packet to send [21:56:49]OFD Sender: No OFD packet to send [21:56:54]OFD Sender: No OFD packet to send [21:56:59]OFD Sender: No OFD packet to send [21:57:04]OFD Sender: No OFD packet to send [21:57:09]OFD Sender: No OFD packet to send [21:57:14]OFD Sender: No OFD packet to send [21:57:19]OFD Sender: No OFD packet to send [21:57:24]OFD Sender: No OFD packet to send [21:57:29]OFD Sender: No OFD packet to send [21:57:34]OFD Sender: No OFD packet to send [21:57:39]OFD Sender: No OFD packet to send [21:57:44]OFD Sender: No OFD packet to send [21:57:49]OFD Sender: No OFD packet to send [21:57:54]OFD Sender: No OFD packet to send [21:57:59]OFD Sender: No OFD packet to send [21:58:04]OFD Sender: No OFD packet to send [21:58:09]OFD Sender: No OFD packet to send [21:58:14]OFD Sender: No OFD packet to send [21:58:19]OFD Sender: No OFD packet to send [21:58:24]OFD Sender: No OFD packet to send [21:58:29]OFD Sender: No OFD packet to send [21:58:34]OFD Sender: No OFD packet to send [21:58:39]OFD Sender: No OFD packet to send [21:58:44]OFD Sender: No OFD packet to send [21:58:49]OFD Sender: No OFD packet to send [21:58:54]OFD Sender: No OFD packet to send [21:58:59]OFD Sender: No OFD packet to send [21:59:04]OFD Sender: No OFD packet to send [21:59:09]OFD Sender: No OFD packet to send [21:59:14]OFD Sender: No OFD packet to send [21:59:19]OFD Sender: No OFD packet to send [21:59:24]OFD Sender: No OFD packet to send [21:59:29]OFD Sender: No OFD packet to send [21:59:34]OFD Sender: No OFD packet to send [21:59:39]OFD Sender: No OFD packet to send [21:59:44]OFD Sender: No OFD packet to send [21:59:49]OFD Sender: No OFD packet to send [21:59:54]OFD Sender: No OFD packet to send [21:59:59]OFD Sender: No OFD packet to send [22:00:04]OFD Sender: No OFD packet to send [22:00:09]OFD Sender: No OFD packet to send [22:00:14]OFD Sender: No OFD packet to send [22:00:19]OFD Sender: No OFD packet to send [22:00:24]OFD Sender: No OFD packet to send [22:00:29]OFD Sender: No OFD packet to send [22:00:34]OFD Sender: No OFD packet to send [22:00:39]OFD Sender: No OFD packet to send [22:00:44]OFD Sender: No OFD packet to send [22:00:49]OFD Sender: No OFD packet to send [22:00:54]OFD Sender: No OFD packet to send [22:00:59]OFD Sender: No OFD packet to send [22:01:04]OFD Sender: No OFD packet to send [22:01:09]OFD Sender: No OFD packet to send [22:01:14]OFD Sender: No OFD packet to send [22:01:19]OFD Sender: No OFD packet to send [22:01:24]OFD Sender: No OFD packet to send [22:01:29]OFD Sender: No OFD packet to send [22:01:34]OFD Sender: No OFD packet to send [22:01:39]OFD Sender: No OFD packet to send [22:01:44]OFD Sender: No OFD packet to send [22:01:49]OFD Sender: No OFD packet to send [22:01:54]OFD Sender: No OFD packet to send [22:01:59]OFD Sender: No OFD packet to send [22:02:04]OFD Sender: No OFD packet to send [22:02:09]OFD Sender: No OFD packet to send [22:02:14]OFD Sender: No OFD packet to send [22:02:19]OFD Sender: No OFD packet to send [22:02:24]OFD Sender: No OFD packet to send [22:02:29]OFD Sender: No OFD packet to send [22:02:34]OFD Sender: No OFD packet to send [22:02:39]OFD Sender: No OFD packet to send [22:02:44]OFD Sender: No OFD packet to send [22:02:49]OFD Sender: No OFD packet to send [22:02:54]OFD Sender: No OFD packet to send [22:02:59]OFD Sender: No OFD packet to send [22:03:04]OFD Sender: No OFD packet to send [22:03:09]OFD Sender: No OFD packet to send [22:03:14]OFD Sender: No OFD packet to send [22:03:19]OFD Sender: No OFD packet to send [22:03:24]OFD Sender: No OFD packet to send [22:03:29]OFD Sender: No OFD packet to send [22:03:34]OFD Sender: No OFD packet to send [22:03:39]OFD Sender: No OFD packet to send [22:03:44]OFD Sender: No OFD packet to send [22:03:49]OFD Sender: No OFD packet to send [22:03:54]OFD Sender: No OFD packet to send [22:03:59]OFD Sender: No OFD packet to send [22:04:04]OFD Sender: No OFD packet to send [22:04:09]OFD Sender: No OFD packet to send [22:04:14]OFD Sender: No OFD packet to send [22:04:19]OFD Sender: No OFD packet to send [22:04:24]OFD Sender: No OFD packet to send [22:04:29]OFD Sender: No OFD packet to send [22:04:34]OFD Sender: No OFD packet to send [22:04:39]OFD Sender: No OFD packet to send [22:04:44]OFD Sender: No OFD packet to send [22:04:49]OFD Sender: No OFD packet to send [22:04:51]accept exits with 9 [22:04:51]New connection [22:04:51]New thread 3066797412 created [22:04:51]Thread 3066654052 joined [22:04:51]Waiting for new connection... [22:04:51] Sock 9.Parse request [22:04:51]Sock 9.Check first char [22:04:51]Sock 9.First char is OK [22:04:51]request: POST /json_proto HTTP/1.0 [22:04:51]Method: POST [22:04:51]URL: /json_proto [22:04:51]Method is POST - this is cgi request [22:04:51]url: /json_proto [22:04:51]query_string will be loaded in cgi processing [22:04:51]execute_cgi json_proto POST (null) [22:04:51]execute_cgi path=json_proto method=POST [22:04:51]POST find Content-Length [22:04:51]Host: 172.17.50.3:8080 [22:04:51]Content-Length: 777 [22:04:51]Content-Type: application/json [22:04:51] [22:04:51]POST finish read [22:04:51]Found Content-Length = 777 [22:04:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 107.130, "sum" : 8270.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 8270.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:04:51]execute_script... [22:04: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)2885320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 107.130, "sum" : 8270.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 8270.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:04:51]POST & json_proto [22:04:51]process_json_proto [22:04:51]json parsed OK: [22:04:51]protocol is kg_v1.0 [22:04:51]action value=close_receipt [22:04:51]process_action close_receipt [22:04:51]cmd_close_receipt [22:04:51]MH_GetDate [22:04:51]Write to MH i2c: F0 00 00 13 1E 20 [22:04:51]Write i2c OK [22:04:51]MH_I2C_Read... [22:04:51]Read from MH i2c: F0 [22:04:51]MH_I2C_Read... [22:04:51]Read from MH i2c: F0 09 00 [22:04:51]MH_I2C_Read... [22:04:51]Read from MH i2c: F0 09 00 13 1E 00 84 7E 15 67 6B 98 1E 66 2E [22:04:51]GetLastDocTimeStamp 1729460987 [22:04:51]current date 1729461892 [22:04:51]FM_GetShiftState [22:04:51]SAM_PROTO_GetShiftState [22:04:51]wFMCommunicate request_size=4 [22:04:51]MH_SAM_APDU [22:04:51]CAPDU: 80 13 01 00 [22:04:51]Write to MH i2c: E2 08 00 14 1E 80 13 01 00 00 00 00 00 AF [22:04:51]Write i2c OK [22:04:51]MH_I2C_Read... [22:04:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:04:51]Read from MH i2c: E2 [22:04:51]MH_I2C_Read... [22:04:51]Read from MH i2c: E2 0E 00 [22:04:51]MH_I2C_Read... [22:04:51]Read from MH i2c: E2 0E 00 14 1E 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 B5 [22:04:51]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [22:04:51]wFMCommunicate OK [22:04:51]SAM_PROTO_GetShiftState done [22:04:51]FM_GetShiftState done [22:04:51]opened in 1729383220 [22:04:51]opened+sec_in_day 1729469620 [22:04:51]quantity*price = 827043 [22:04:51]sum+1 = 827045 [22:04:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 8270.44 НСП 1% : 73.19 НДС 12% : 878.28 Наличными: 0.00 Безнал.: 8270.44 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 426 20.10.2024 22:04 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69581 ФПД: 212446066231397 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T220452&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69581&fm=212446066231397&tin=02508201610067®Number=0000000000156251&sum=827044 [22:04:52]StoreToDocumentArchive [22:04:52]shift 193 fd 69581 [22:04:52]save to /storage/0193/doc_00069581 [22:04:52]save last doc name /storage/0193/doc_00069581 to /storage/kkm_last_doc_name [22:04:52]save OK [22:04:52]Clear old archive folders... [22:04:52]ProcessDocumentItem done err = 0, tmpTLVsize=257 [22:04:52]tlvbuf is B6F2F480 [22:04:52]SAM_PROTO_ClearQueue [22:04:52]wFMCommunicate request_size=4 [22:04:52]MH_SAM_APDU [22:04:52]CAPDU: 80 09 00 00 [22:04:52]Write to MH i2c: E2 08 00 21 1E 80 09 00 00 00 00 00 00 B1 [22:04:52]Write i2c OK [22:04:52]MH_I2C_Read... [22:04:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:04:52]Read from MH i2c: E2 [22:04:52]MH_I2C_Read... [22:04:52]Read from MH i2c: E2 03 00 [22:04:52]MH_I2C_Read... [22:04:52]Read from MH i2c: E2 03 00 21 1E 00 90 00 B3 [22:04:52]RAPDU: 90 00 [22:04:52]wFMCommunicate OK [22:04:52]SAM_PROTO_ClearQueue done [22:04:52]KKMCreateOFDPacket [22:04:52]OFDProtocolAddRootSTLVToBuf [22:04:52]FM_MakeSignedData [22:04:52]FM_MakeSignedData [22:04:52]SAM_PROTO_SignData [22:04:52]wFMCommunicate request_size=4 [22:04:52]MH_SAM_APDU [22:04:52]CAPDU: 80 0D 01 02 [22:04:52]Write to MH i2c: E2 08 00 22 1E 80 0D 01 02 00 00 00 00 B9 [22:04:52]Write i2c OK [22:04:52]MH_I2C_Read... [22:04:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:04:52]Read from MH i2c: E2 [22:04:52]MH_I2C_Read... [22:04:52]Read from MH i2c: E2 03 00 [22:04:52]MH_I2C_Read... [22:04:52]Read from MH i2c: E2 03 00 22 1E 00 90 00 B4 [22:04:52]RAPDU: 90 00 [22:04:52]wFMCommunicate OK [22:04:52]wFMCommunicate request_size=255 [22:04:52]MH_SAM_APDU [22:04:52]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 7A A2 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A4 9E 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 9E 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 1C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 57 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 9E 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 01 00 00 F4 03 04 00 84 7E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CD 0F 01 [22:04:52]Write to MH i2c: E2 02 01 23 1E 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 7A A2 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A4 9E 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 9E 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 1C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 57 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 9E 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 01 00 00 F4 03 04 00 84 7E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CD 0F 01 00 00 5C [22:04:52]Write i2c OK [22:04:52]MH_I2C_Read... [22:04:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:04:52]Read from MH i2c: E2 [22:04:52]MH_I2C_Read... [22:04:52]Read from MH i2c: E2 03 00 [22:04:52]MH_I2C_Read... [22:04:52]Read from MH i2c: E2 03 00 23 1E 00 90 00 B5 [22:04:52]RAPDU: 90 00 [22:04:52]wFMCommunicate OK [22:04:52]wFMCommunicate request_size=16 [22:04:52]MH_SAM_APDU [22:04:52]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 C1 37 F4 4F C8 65 [22:04:52]Write to MH i2c: E2 13 00 24 1E 80 0D 02 02 0B 00 00 35 04 06 00 C1 37 F4 4F C8 65 00 00 79 [22:04:52]Write i2c OK [22:04:52]MH_I2C_Read... [22:04:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:04:52]Read from MH i2c: E2 [22:04:52]MH_I2C_Read... [22:04:52]Read from MH i2c: E2 03 00 [22:04:52]MH_I2C_Read... [22:04:52]Read from MH i2c: E2 03 00 24 1E 00 90 00 B6 [22:04:52]RAPDU: 90 00 [22:04:52]wFMCommunicate OK [22:04:52]wFMCommunicate request_size=4 [22:04:52]MH_SAM_APDU [22:04:52]CAPDU: 80 0D 03 02 [22:04:52]Write to MH i2c: E2 08 00 25 1E 80 0D 03 02 00 00 00 00 BE [22:04:52]Write i2c OK [22:04:52]MH_I2C_Read... [22:04:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:04:52]Read from MH i2c: E2 [22:04:52]MH_I2C_Read... [22:04:52]Read from MH i2c: E2 0B 00 [22:04:52]MH_I2C_Read... [22:04:52]Read from MH i2c: E2 0B 00 25 1E 00 9F D1 A9 7A 3D D1 37 5B 90 00 F2 [22:04:52]RAPDU: 9F D1 A9 7A 3D D1 37 5B 90 00 [22:04:52]wFMCommunicate OK [22:04:52]SAM_PROTO_SignData done [22:04:52]FM_MakeSignedData done [22:04:52]CreateOFDProtocolMessage [22:04:52]wFMCommunicate request_size=4 [22:04:52]MH_SAM_APDU [22:04:52]CAPDU: 80 11 00 00 [22:04:52]Write to MH i2c: E2 08 00 26 1E 80 11 00 00 00 00 00 00 BE [22:04:52]Write i2c OK [22:04:52]MH_I2C_Read... [22:04:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:04:52]Read from MH i2c: E2 [22:04:52]MH_I2C_Read... [22:04:52]Read from MH i2c: E2 17 00 [22:04:52]MH_I2C_Read... [22:04:52]Read from MH i2c: E2 17 00 26 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 10 [22:04:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:04:52]wFMCommunicate OK [22:04:52]CreateOFDProtocolMessage done [22:04:52]OFDSenderStorePacket 69581 [22:04:52]StoreOFDPacket docnum=69581 [22:04:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 3A E8 0D 01 D6 7D 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 7A A2 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A4 9E 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 9E 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 1C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 57 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 9E 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 01 00 00 F4 03 04 00 84 7E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CD 0F 01 00 35 04 06 00 C1 37 F4 4F C8 65 9F D1 A9 7A 3D D1 37 5B [22:04:52]CheckFolder [22:04:52]dirname=/storage/ofd_packets [22:04:52]CheckFolder done [22:04:52]ProducePacketName [22:04:52]name=ofd_packets/00069581 [22:04:52]NVStorageSaveData ofd_packets/00069581 [22:04:52]File name is /storage/ofd_packets/00069581 [22:04:52]Write 307 bytes [22:04:52]NVStorageSaveData done [22:04:52]OFDSenderStorePacket done [22:04:52]KKMCreateOFDPacket done [22:04:52]NVStorageSaveData kkm_last_timestamp [22:04:52]File name is /storage/kkm_last_timestamp [22:04:52]Write 4 bytes [22:04:52]NVStorageSaveData done [22:04:52]ExternCall_PrintAddStr [22:04:52]wPrintStart [22:04:52]Write to MH i2c: 01 00 00 27 1E 45 [22:04:52]Write i2c OK [22:04:52]MH_I2C_Read... [22:04:52]Read from MH i2c: 01 [22:04:52]MH_I2C_Read... [22:04:52]Read from MH i2c: 01 07 00 [22:04:52]MH_I2C_Read... [22:04:52]Read from MH i2c: 01 07 00 27 1E 00 00 00 00 00 FF 0F 5A [22:04:52]RasterBufferAndPrint [22:04:52]line Счет N : (1)2885320 [22:04:52]line ИНН: 02508201610067 [22:04:52]line Контрольно-Кассовый Чек [22:04:52]line ПРОДАЖА [22:04:52]line ТРК (МРК, ГНК) : 31 [22:04:52]line Товар: 2710194240 [22:04:52]line D-ENERGY Дт-К-2 [22:04:52]line 107.130 * 77.20 [22:04:52]line = 8270.44 [22:04:52]line НДС 12% НСП 1% [22:04:52]line > о реализуемом товаре [22:04:52]line ИТОГО: 8270.44 [22:04:52]line НСП 1% : 73.19 [22:04:52]line НДС 12% : 878.28 [22:04:52]line Наличными: 0.00 [22:04:52]line Безнал.: 8270.44 [22:04:52]line Место: АЗС № 85 "Партнер Нефть" [22:04:52]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [22:04:52]line СНО: Общий режим [22:04:52]line Чек 426 20.10.2024 22:04 [22:04:52]line Смена: 193 ФФД: 1.0 [22:04:52]line ЗНМ: 0300000167 [22:04:52]line РНМ: 0000000000156251 [22:04:52]line Версия ККМ: v1.0 [22:04:52]line Платежная система: Mbank [22:04:52]line ФМ: 0000000000963346 [22:04:52]line ФД: 69581 [22:04:52]line ФПД: 212446066231397 [22:04:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T220452&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69581&fm=212446066231397&tin=02508201610067®Number=0000000000156251&sum=827044 [22:04:53]OFD Sender: Processing packet 69581 [packets to send 18, broken 17] [22:04:53]ProducePacketName [22:04:53]name=ofd_packets/00069581 [22:04:53]OFD Sender: To server: pG, [22:04:53]CommunicateWithHost lk.salyk.kg:30040 [22:04:53]ConnectInit lk.salyk.kg [22:04:53]written 0, free lines is 4095 [22:04:53]Connected sock=11 [22:04:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 3A E8 0D 01 D6 7D 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 7A A2 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A4 9E 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 9E 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 1C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 57 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 9E 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 01 00 00 F4 03 04 00 84 7E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CD 0F 01 00 35 04 06 00 C1 37 F4 4F C8 65 9F D1 A9 7A 3D D1 37 5B [22:04:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 60 CD 47 00 25 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CD 0F 01 00 F4 03 04 00 29 28 15 67 B6 04 01 00 00 49 D0 7C D1 1D B1 81 95 [22:04:53]CommunicateWithHost err = 0 [22:04:53]CheckOFDResponse [22:04:53]1017 (14) - 77093643461234 [22:04:53]1041 (16) - 0000000000963346 [22:04:53]1040 (4) - 69581 [22:04:53]1012 (4) - 20.10.2024 15:56 [22:04:53]1206 (1) - 0 [22:04:53]OFD Sender: Remove packet 69581 [22:04:53]ProducePacketName [22:04:53]name=ofd_packets/00069581 [22:04:53]NVStorageDeleteData [22:04:53]Write to MH i2c: 01 00 00 50 1E 6E [22:04:53]Write i2c OK [22:04:53]MH_I2C_Read... [22:04:53]Read from MH i2c: 01 [22:04:53]MH_I2C_Read... [22:04:53]Read from MH i2c: 01 07 00 [22:04:53]MH_I2C_Read... [22:04:53]Read from MH i2c: 01 07 00 50 1E 00 00 00 00 00 27 0D A9 [22:04:53]RasterBufferAndPrint [22:04:53]line [22:04:53]line [22:04:53]line [22:04:53]line [22:04:53]line [22:04:53]written 0, free lines is 3374 [22:04:53]MH_Cut [22:04:53]Write to MH i2c: D1 01 00 57 1E 01 47 [22:04:53]Write i2c OK [22:04:53]MH_I2C_Read... [22:04:53]Read from MH i2c: D1 [22:04:53]MH_I2C_Read... [22:04:53]Read from MH i2c: D1 01 00 [22:04:53]MH_I2C_Read... [22:04:53]Read from MH i2c: D1 01 00 57 1E 00 46 [22:04:53]Write to MH i2c: 01 00 00 58 1E 76 [22:04:53]Write i2c OK [22:04:53]MH_I2C_Read... [22:04:53]OFD Sender: No OFD packet to send [22:04:54]*** Cut start [22:04:54]*** Partial cut [22:04:54]*** CUTSNS_PIN = 1 [22:04:54]*** CUTSNS_PIN = 0 [22:04:54]*** Brake cut motor [22:04:54]Read from MH i2c: 01 [22:04:54]MH_I2C_Read... [22:04:54]*** Stop cut motor [22:04:54]*** Cut end [22:04:54]Read from MH i2c: 01 07 00 [22:04:54]MH_I2C_Read... [22:04:54]Read from MH i2c: 01 07 00 58 1E 00 00 00 00 00 FF 0F 8B [22:04:54]process_action close_receipt done [22:04:54]requested_data is exist [22:04:54]produce_requested_data [22:04:54]requested_item fm.sn is exist - process it [22:04:54]wFMCommunicate request_size=4 [22:04:54]MH_SAM_APDU [22:04:54]CAPDU: 80 11 00 00 [22:04:54]Write to MH i2c: E2 08 00 59 1E 80 11 00 00 00 00 00 00 F1 [22:04:54]Write i2c OK [22:04:54]MH_I2C_Read... [22:04:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:04:54]Read from MH i2c: E2 [22:04:54]MH_I2C_Read... [22:04:54]Read from MH i2c: E2 17 00 [22:04:54]MH_I2C_Read... [22:04:54]Read from MH i2c: E2 17 00 59 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 43 [22:04:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:04:54]wFMCommunicate OK [22:04:54]requested_item fd.num is exist - process it [22:04:54]SAM_PROTO_GetFieldsCounters [22:04:54]wFMCommunicate request_size=4 [22:04:54]MH_SAM_APDU [22:04:54]CAPDU: 80 13 00 00 [22:04:54]Write to MH i2c: E2 08 00 5A 1E 80 13 00 00 00 00 00 00 F4 [22:04:54]Write i2c OK [22:04:54]MH_I2C_Read... [22:04:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:04:55]Read from MH i2c: E2 [22:04:55]MH_I2C_Read... [22:04:55]Read from MH i2c: E2 62 00 [22:04:55]MH_I2C_Read... [22:04:55]Read from MH i2c: E2 62 00 5A 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CD 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 AA 01 00 00 5E 04 04 00 AA 01 00 00 57 04 04 00 AB 01 00 00 19 04 04 00 00 00 00 00 90 00 AE [22:04:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CD 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 AA 01 00 00 5E 04 04 00 AA 01 00 00 57 04 04 00 AB 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:04:55]wFMCommunicate OK [22:04:55]SAM_PROTO_GetFieldsCounters done [22:04:55]requested_item shift.num is exist - process it [22:04:55]requested_item shift.opened is exist - process it [22:04:55]req_shift_opened [22:04:55]FM_GetShiftState [22:04:55]SAM_PROTO_GetShiftState [22:04:55]wFMCommunicate request_size=4 [22:04:55]MH_SAM_APDU [22:04:55]CAPDU: 80 13 01 00 [22:04:55]Write to MH i2c: E2 08 00 5B 1E 80 13 01 00 00 00 00 00 F6 [22:04:55]Write i2c OK [22:04:55]MH_I2C_Read... [22:04:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:04:55]Read from MH i2c: E2 [22:04:55]MH_I2C_Read... [22:04:55]Read from MH i2c: E2 0E 00 [22:04:55]MH_I2C_Read... [22:04:55]Read from MH i2c: E2 0E 00 5B 1E 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 FC [22:04:55]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [22:04:55]wFMCommunicate OK [22:04:55]SAM_PROTO_GetShiftState done [22:04:55]FM_GetShiftState done [22:04:55]req_shift_opened done [22:04:55]requested_item shift.open_date is exist - process it [22:04:55]req_shift_open_date [22:04:55]req_shift_open_date done [22:04:55]produce_requested_data done [22:04:55]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69581,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [22:04:55]process_action_free close_receipt [22:04:55]json_value_free [22:04:55]json_value_free done [22:04:55]process_json_proto returns [22:04:55]Send response to host [22:04:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69581,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [22:04:55]free response buf [22:04:55]execute_script done [22:04:55]execute_script returns [22:04:55]free content buf [22:04:55]Sock 9.Close socket [22:04:55]Sock 9.Thread stoped [22:04:58]OFD Sender: No OFD packet to send [22:05:03]OFD Sender: No OFD packet to send [22:05:08]OFD Sender: No OFD packet to send [22:05:13]OFD Sender: No OFD packet to send [22:05:18]OFD Sender: No OFD packet to send [22:05:23]OFD Sender: No OFD packet to send [22:05:28]OFD Sender: No OFD packet to send [22:05:33]OFD Sender: No OFD packet to send [22:05:38]OFD Sender: No OFD packet to send [22:05:43]OFD Sender: No OFD packet to send [22:05:48]OFD Sender: No OFD packet to send [22:05:53]OFD Sender: No OFD packet to send [22:05:58]OFD Sender: No OFD packet to send [22:06:03]OFD Sender: No OFD packet to send [22:06:08]OFD Sender: No OFD packet to send [22:06:08]accept exits with 7 [22:06:08]New connection [22:06:08]New thread 3066654052 created [22:06:08]Thread 3066797412 joined [22:06:08]Waiting for new connection... [22:06:08] Sock 7.Parse request [22:06:08]Sock 7.Check first char [22:06:08]Sock 7.First char is OK [22:06:08]request: POST /json_proto HTTP/1.0 [22:06:08]Method: POST [22:06:08]URL: /json_proto [22:06:08]Method is POST - this is cgi request [22:06:08]url: /json_proto [22:06:08]query_string will be loaded in cgi processing [22:06:08]execute_cgi json_proto POST (null) [22:06:08]execute_cgi path=json_proto method=POST [22:06:08]POST find Content-Length [22:06:08]Host: 172.17.50.3:8080 [22:06:08]Content-Length: 770 [22:06:08]Content-Type: application/json [22:06:08] [22:06:08]POST finish read [22:06:08]Found Content-Length = 770 [22:06:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:06:08]execute_script... [22:06:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:06:08]POST & json_proto [22:06:08]process_json_proto [22:06:08]json parsed OK: [22:06:08]protocol is kg_v1.0 [22:06:08]action value=close_receipt [22:06:08]process_action close_receipt [22:06:08]cmd_close_receipt [22:06:08]MH_GetDate [22:06:08]Write to MH i2c: F0 00 00 5C 1E 69 [22:06:08]Write i2c OK [22:06:08]MH_I2C_Read... [22:06:08]Read from MH i2c: F0 [22:06:08]MH_I2C_Read... [22:06:08]Read from MH i2c: F0 09 00 [22:06:08]MH_I2C_Read... [22:06:08]Read from MH i2c: F0 09 00 5C 1E 00 D2 7E 15 67 6B 98 1E 66 C5 [22:06:08]GetLastDocTimeStamp 1729461892 [22:06:08]current date 1729461970 [22:06:08]FM_GetShiftState [22:06:08]SAM_PROTO_GetShiftState [22:06:08]wFMCommunicate request_size=4 [22:06:08]MH_SAM_APDU [22:06:08]CAPDU: 80 13 01 00 [22:06:08]Write to MH i2c: E2 08 00 5D 1E 80 13 01 00 00 00 00 00 F8 [22:06:08]Write i2c OK [22:06:08]MH_I2C_Read... [22:06:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:09]Read from MH i2c: E2 [22:06:09]MH_I2C_Read... [22:06:09]Read from MH i2c: E2 0E 00 [22:06:09]MH_I2C_Read... [22:06:09]Read from MH i2c: E2 0E 00 5D 1E 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 FE [22:06:09]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [22:06:09]wFMCommunicate OK [22:06:09]SAM_PROTO_GetShiftState done [22:06:09]FM_GetShiftState done [22:06:09]opened in 1729383220 [22:06:09]opened+sec_in_day 1729469620 [22:06:09]quantity*price = 200043 [22:06:09]sum+1 = 200044 [22:06:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.43 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.43 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 427 20.10.2024 22:06 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69582 ФПД: 250251713175694 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T220610&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69582&fm=250251713175694&tin=02508201610067®Number=0000000000156251&sum=200043 [22:06:10]StoreToDocumentArchive [22:06:10]shift 193 fd 69582 [22:06:10]save to /storage/0193/doc_00069582 [22:06:10]save last doc name /storage/0193/doc_00069582 to /storage/kkm_last_doc_name [22:06:10]save OK [22:06:10]Clear old archive folders... [22:06:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:06:10]tlvbuf is B6D82740 [22:06:10]SAM_PROTO_ClearQueue [22:06:10]wFMCommunicate request_size=4 [22:06:10]MH_SAM_APDU [22:06:10]CAPDU: 80 09 00 00 [22:06:10]Write to MH i2c: E2 08 00 6A 1E 80 09 00 00 00 00 00 00 FA [22:06:10]Write i2c OK [22:06:10]MH_I2C_Read... [22:06:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:06:10]Read from MH i2c: E2 [22:06:10]MH_I2C_Read... [22:06:10]Read from MH i2c: E2 03 00 [22:06:10]MH_I2C_Read... [22:06:10]Read from MH i2c: E2 03 00 6A 1E 00 90 00 FC [22:06:10]RAPDU: 90 00 [22:06:10]wFMCommunicate OK [22:06:10]SAM_PROTO_ClearQueue done [22:06:10]KKMCreateOFDPacket [22:06:10]OFDProtocolAddRootSTLVToBuf [22:06:10]FM_MakeSignedData [22:06:10]FM_MakeSignedData [22:06:10]SAM_PROTO_SignData [22:06:10]wFMCommunicate request_size=4 [22:06:10]MH_SAM_APDU [22:06:10]CAPDU: 80 0D 01 02 [22:06:10]Write to MH i2c: E2 08 00 6B 1E 80 0D 01 02 00 00 00 00 02 [22:06:10]Write i2c OK [22:06:10]MH_I2C_Read... [22:06:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:06:10]Read from MH i2c: E2 [22:06:10]MH_I2C_Read... [22:06:10]Read from MH i2c: E2 03 00 [22:06:10]MH_I2C_Read... [22:06:10]Read from MH i2c: E2 03 00 6B 1E 00 90 00 FD [22:06:10]RAPDU: 90 00 [22:06:10]wFMCommunicate OK [22:06:10]wFMCommunicate request_size=255 [22:06:10]MH_SAM_APDU [22:06:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 01 00 00 F4 03 04 00 D2 7E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CE 0F 01 00 35 04 06 00 E3 [22:06:10]Write to MH i2c: E2 02 01 6C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 01 00 00 F4 03 04 00 D2 7E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CE 0F 01 00 35 04 06 00 E3 00 00 83 [22:06:10]Write i2c OK [22:06:10]MH_I2C_Read... [22:06:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:10]Read from MH i2c: E2 [22:06:10]MH_I2C_Read... [22:06:10]Read from MH i2c: E2 03 00 [22:06:10]MH_I2C_Read... [22:06:10]Read from MH i2c: E2 03 00 6C 1E 00 90 00 FE [22:06:10]RAPDU: 90 00 [22:06:10]wFMCommunicate OK [22:06:10]wFMCommunicate request_size=10 [22:06:10]MH_SAM_APDU [22:06:10]CAPDU: 80 0D 02 02 05 9A 44 77 E0 8E [22:06:10]Write to MH i2c: E2 0D 00 6D 1E 80 0D 02 02 05 00 9A 44 77 E0 8E 00 00 D2 [22:06:10]Write i2c OK [22:06:10]MH_I2C_Read... [22:06:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:10]Read from MH i2c: E2 [22:06:10]MH_I2C_Read... [22:06:10]Read from MH i2c: E2 03 00 [22:06:10]MH_I2C_Read... [22:06:10]Read from MH i2c: E2 03 00 6D 1E 00 90 00 FF [22:06:10]RAPDU: 90 00 [22:06:10]wFMCommunicate OK [22:06:10]wFMCommunicate request_size=4 [22:06:10]MH_SAM_APDU [22:06:10]CAPDU: 80 0D 03 02 [22:06:10]Write to MH i2c: E2 08 00 6E 1E 80 0D 03 02 00 00 00 00 07 [22:06:10]Write i2c OK [22:06:10]MH_I2C_Read... [22:06:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:06:10]Read from MH i2c: E2 [22:06:10]MH_I2C_Read... [22:06:10]Read from MH i2c: E2 0B 00 [22:06:10]MH_I2C_Read... [22:06:10]Read from MH i2c: E2 0B 00 6E 1E 00 C4 F1 F3 4D 3E 55 94 30 90 00 54 [22:06:10]RAPDU: C4 F1 F3 4D 3E 55 94 30 90 00 [22:06:10]wFMCommunicate OK [22:06:10]SAM_PROTO_SignData done [22:06:10]FM_MakeSignedData done [22:06:10]CreateOFDProtocolMessage [22:06:10]wFMCommunicate request_size=4 [22:06:10]MH_SAM_APDU [22:06:10]CAPDU: 80 11 00 00 [22:06:10]Write to MH i2c: E2 08 00 6F 1E 80 11 00 00 00 00 00 00 07 [22:06:10]Write i2c OK [22:06:10]MH_I2C_Read... [22:06:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:10]Read from MH i2c: E2 [22:06:10]MH_I2C_Read... [22:06:10]Read from MH i2c: E2 17 00 [22:06:10]MH_I2C_Read... [22:06:10]Read from MH i2c: E2 17 00 6F 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 59 [22:06:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:06:10]wFMCommunicate OK [22:06:10]CreateOFDProtocolMessage done [22:06:10]OFDSenderStorePacket 69582 [22:06:10]StoreOFDPacket docnum=69582 [22:06:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 75 82 07 01 9C 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 01 00 00 F4 03 04 00 D2 7E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CE 0F 01 00 35 04 06 00 E3 9A 44 77 E0 8E C4 F1 F3 4D 3E 55 94 30 [22:06:10]CheckFolder [22:06:10]dirname=/storage/ofd_packets [22:06:10]CheckFolder done [22:06:10]ProducePacketName [22:06:10]name=ofd_packets/00069582 [22:06:10]NVStorageSaveData ofd_packets/00069582 [22:06:10]File name is /storage/ofd_packets/00069582 [22:06:10]Write 301 bytes [22:06:10]NVStorageSaveData done [22:06:10]OFDSenderStorePacket done [22:06:10]KKMCreateOFDPacket done [22:06:10]NVStorageSaveData kkm_last_timestamp [22:06:10]File name is /storage/kkm_last_timestamp [22:06:10]Write 4 bytes [22:06:10]NVStorageSaveData done [22:06:10]ExternCall_PrintAddStr [22:06:10]wPrintStart [22:06:10]Write to MH i2c: 01 00 00 70 1E 8E [22:06:10]Write i2c OK [22:06:10]MH_I2C_Read... [22:06:10]Read from MH i2c: 01 [22:06:10]MH_I2C_Read... [22:06:10]Read from MH i2c: 01 07 00 [22:06:10]MH_I2C_Read... [22:06:10]Read from MH i2c: 01 07 00 70 1E 00 00 00 00 00 FF 0F A3 [22:06:10]RasterBufferAndPrint [22:06:10]line Счет N : (1)2885321 [22:06:10]line ИНН: 02508201610067 [22:06:10]line Контрольно-Кассовый Чек [22:06:10]line ПРОДАЖА [22:06:10]line ТРК (МРК, ГНК) : 43 [22:06:10]line Товар: 2710124500 [22:06:10]line Аи-95-К-5 [22:06:10]line 26.960 * 74.20 [22:06:10]line = 2000.43 [22:06:10]line НДС 12% НСП 1% [22:06:10]line > о реализуемом товаре [22:06:10]line ИТОГО: 2000.43 [22:06:10]line НСП 1% : 17.70 [22:06:10]line НДС 12% : 212.43 [22:06:10]line Наличными: 0.00 [22:06:10]line Безнал.: 2000.43 [22:06:10]line Место: АЗС № 85 "Партнер Нефть" [22:06:10]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [22:06:10]line СНО: Общий режим [22:06:10]line Чек 427 20.10.2024 22:06 [22:06:10]line Смена: 193 ФФД: 1.0 [22:06:10]line ЗНМ: 0300000167 [22:06:10]line РНМ: 0000000000156251 [22:06:10]line Версия ККМ: v1.0 [22:06:10]line Платежная система: Mbank [22:06:10]line ФМ: 0000000000963346 [22:06:10]line ФД: 69582 [22:06:10]line ФПД: 250251713175694 [22:06:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T220610&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69582&fm=250251713175694&tin=02508201610067®Number=0000000000156251&sum=200043 [22:06:11]written 0, free lines is 4095 [22:06:11]OFD Sender: Processing packet 69582 [packets to send 18, broken 17] [22:06:11]ProducePacketName [22:06:11]name=ofd_packets/00069582 [22:06:11]OFD Sender: To server: pG, [22:06:11]CommunicateWithHost lk.salyk.kg:30040 [22:06:11]ConnectInit lk.salyk.kg [22:06:11]Connected sock=10 [22:06:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 75 82 07 01 9C 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 01 00 00 F4 03 04 00 D2 7E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CE 0F 01 00 35 04 06 00 E3 9A 44 77 E0 8E C4 F1 F3 4D 3E 55 94 30 [22:06:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 E9 D8 47 00 2C 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CE 0F 01 00 F4 03 04 00 77 28 15 67 B6 04 01 00 00 3C 57 B5 61 FE D3 95 D4 [22:06:11]CommunicateWithHost err = 0 [22:06:11]CheckOFDResponse [22:06:11]1017 (14) - 77093643461234 [22:06:11]1041 (16) - 0000000000963346 [22:06:11]1040 (4) - 69582 [22:06:11]1012 (4) - 20.10.2024 15:57 [22:06:11]1206 (1) - 0 [22:06:11]OFD Sender: Remove packet 69582 [22:06:11]ProducePacketName [22:06:11]name=ofd_packets/00069582 [22:06:11]NVStorageDeleteData [22:06:11]Write to MH i2c: 01 00 00 99 1E B7 [22:06:11]Write i2c OK [22:06:11]MH_I2C_Read... [22:06:11]Read from MH i2c: 01 [22:06:11]MH_I2C_Read... [22:06:11]Read from MH i2c: 01 07 00 [22:06:11]MH_I2C_Read... [22:06:11]Read from MH i2c: 01 07 00 99 1E 00 00 00 00 00 18 0D E3 [22:06:11]RasterBufferAndPrint [22:06:11]line [22:06:11]line [22:06:11]line [22:06:11]line [22:06:11]line [22:06:11]written 0, free lines is 3359 [22:06:11]MH_Cut [22:06:11]Write to MH i2c: D1 01 00 A0 1E 01 90 [22:06:11]Write i2c OK [22:06:11]MH_I2C_Read... [22:06:11]Read from MH i2c: D1 [22:06:11]MH_I2C_Read... [22:06:11]Read from MH i2c: D1 01 00 [22:06:11]MH_I2C_Read... [22:06:11]Read from MH i2c: D1 01 00 A0 1E 00 8F [22:06:11]Write to MH i2c: 01 00 00 A1 1E BF [22:06:11]Write i2c OK [22:06:11]MH_I2C_Read... [22:06:11]OFD Sender: No OFD packet to send [22:06:12]*** Cut start [22:06:12]*** Partial cut [22:06:12]*** CUTSNS_PIN = 1 [22:06:12]*** CUTSNS_PIN = 0 [22:06:12]*** Brake cut motor [22:06:12]Read from MH i2c: 01 [22:06:12]MH_I2C_Read... [22:06:12]*** Stop cut motor [22:06:12]*** Cut end [22:06:12]Read from MH i2c: 01 07 00 [22:06:12]MH_I2C_Read... [22:06:12]Read from MH i2c: 01 07 00 A1 1E 00 00 00 00 00 FF 0F D4 [22:06:12]process_action close_receipt done [22:06:12]requested_data is exist [22:06:12]produce_requested_data [22:06:12]requested_item fm.sn is exist - process it [22:06:12]wFMCommunicate request_size=4 [22:06:12]MH_SAM_APDU [22:06:12]CAPDU: 80 11 00 00 [22:06:12]Write to MH i2c: E2 08 00 A2 1E 80 11 00 00 00 00 00 00 3A [22:06:12]Write i2c OK [22:06:12]MH_I2C_Read... [22:06:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:12]Read from MH i2c: E2 [22:06:12]MH_I2C_Read... [22:06:12]Read from MH i2c: E2 17 00 [22:06:12]MH_I2C_Read... [22:06:12]Read from MH i2c: E2 17 00 A2 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8C [22:06:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:06:12]wFMCommunicate OK [22:06:12]requested_item fd.num is exist - process it [22:06:12]SAM_PROTO_GetFieldsCounters [22:06:12]wFMCommunicate request_size=4 [22:06:12]MH_SAM_APDU [22:06:12]CAPDU: 80 13 00 00 [22:06:12]Write to MH i2c: E2 08 00 A3 1E 80 13 00 00 00 00 00 00 3D [22:06:12]Write i2c OK [22:06:12]MH_I2C_Read... [22:06:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:06:12]Read from MH i2c: E2 [22:06:12]MH_I2C_Read... [22:06:12]Read from MH i2c: E2 62 00 [22:06:12]MH_I2C_Read... [22:06:12]Read from MH i2c: E2 62 00 A3 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CE 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 AB 01 00 00 5E 04 04 00 AB 01 00 00 57 04 04 00 AC 01 00 00 19 04 04 00 00 00 00 00 90 00 FB [22:06:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CE 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 AB 01 00 00 5E 04 04 00 AB 01 00 00 57 04 04 00 AC 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:06:12]wFMCommunicate OK [22:06:12]SAM_PROTO_GetFieldsCounters done [22:06:12]requested_item shift.num is exist - process it [22:06:12]requested_item shift.opened is exist - process it [22:06:12]req_shift_opened [22:06:12]FM_GetShiftState [22:06:12]SAM_PROTO_GetShiftState [22:06:12]wFMCommunicate request_size=4 [22:06:12]MH_SAM_APDU [22:06:12]CAPDU: 80 13 01 00 [22:06:12]Write to MH i2c: E2 08 00 A4 1E 80 13 01 00 00 00 00 00 3F [22:06:12]Write i2c OK [22:06:12]MH_I2C_Read... [22:06:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:13]Read from MH i2c: E2 [22:06:13]MH_I2C_Read... [22:06:13]Read from MH i2c: E2 0E 00 [22:06:13]MH_I2C_Read... [22:06:13]Read from MH i2c: E2 0E 00 A4 1E 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 45 [22:06:13]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [22:06:13]wFMCommunicate OK [22:06:13]SAM_PROTO_GetShiftState done [22:06:13]FM_GetShiftState done [22:06:13]req_shift_opened done [22:06:13]requested_item shift.open_date is exist - process it [22:06:13]req_shift_open_date [22:06:13]req_shift_open_date done [22:06:13]produce_requested_data done [22:06:13]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69582,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [22:06:13]process_action_free close_receipt [22:06:13]json_value_free [22:06:13]json_value_free done [22:06:13]process_json_proto returns [22:06:13]Send response to host [22:06:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69582,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [22:06:13]free response buf [22:06:13]execute_script done [22:06:13]execute_script returns [22:06:13]free content buf [22:06:13]Sock 7.Close socket [22:06:13]Sock 7.Thread stoped [22:06:16]OFD Sender: No OFD packet to send [22:06:21]OFD Sender: No OFD packet to send [22:06:26]OFD Sender: No OFD packet to send [22:06:31]OFD Sender: No OFD packet to send [22:06:36]OFD Sender: No OFD packet to send [22:06:41]OFD Sender: No OFD packet to send [22:06:46]OFD Sender: No OFD packet to send [22:06:51]OFD Sender: No OFD packet to send [22:06:56]OFD Sender: No OFD packet to send [22:07:01]OFD Sender: No OFD packet to send [22:07:06]OFD Sender: No OFD packet to send [22:07:11]OFD Sender: No OFD packet to send [22:07:16]OFD Sender: No OFD packet to send [22:07:21]OFD Sender: No OFD packet to send [22:07:26]OFD Sender: No OFD packet to send [22:07:31]OFD Sender: No OFD packet to send [22:07:36]OFD Sender: No OFD packet to send [22:07:41]OFD Sender: No OFD packet to send [22:07:46]OFD Sender: No OFD packet to send [22:07:51]OFD Sender: No OFD packet to send [22:07:56]OFD Sender: No OFD packet to send [22:08:01]OFD Sender: No OFD packet to send [22:08:06]OFD Sender: No OFD packet to send [22:08:11]OFD Sender: No OFD packet to send [22:08:16]OFD Sender: No OFD packet to send [22:08:21]OFD Sender: No OFD packet to send [22:08:26]OFD Sender: No OFD packet to send [22:08:31]OFD Sender: No OFD packet to send [22:08:36]OFD Sender: No OFD packet to send [22:08:41]OFD Sender: No OFD packet to send [22:08:46]OFD Sender: No OFD packet to send [22:08:51]OFD Sender: No OFD packet to send [22:08:56]OFD Sender: No OFD packet to send [22:09:01]OFD Sender: No OFD packet to send [22:09:06]OFD Sender: No OFD packet to send [22:09:11]OFD Sender: No OFD packet to send [22:09:16]OFD Sender: No OFD packet to send [22:09:21]OFD Sender: No OFD packet to send [22:09:26]OFD Sender: No OFD packet to send [22:09:31]OFD Sender: No OFD packet to send [22:09:36]OFD Sender: No OFD packet to send [22:09:41]OFD Sender: No OFD packet to send [22:09:46]OFD Sender: No OFD packet to send [22:09:51]OFD Sender: No OFD packet to send [22:09:56]OFD Sender: No OFD packet to send [22:10:02]OFD Sender: No OFD packet to send [22:10:07]OFD Sender: No OFD packet to send [22:10:12]OFD Sender: No OFD packet to send [22:10:17]OFD Sender: No OFD packet to send [22:10:22]OFD Sender: No OFD packet to send [22:10:27]OFD Sender: No OFD packet to send [22:10:31]accept exits with 9 [22:10:31]New connection [22:10:31]New thread 3066797412 created [22:10:31]Thread 3066654052 joined [22:10:31]Waiting for new connection... [22:10:31] Sock 9.Parse request [22:10:31]Sock 9.Check first char [22:10:31]Sock 9.First char is OK [22:10:31]request: POST /json_proto HTTP/1.0 [22:10:31]Method: POST [22:10:31]URL: /json_proto [22:10:31]Method is POST - this is cgi request [22:10:31]url: /json_proto [22:10:31]query_string will be loaded in cgi processing [22:10:31]execute_cgi json_proto POST (null) [22:10:31]execute_cgi path=json_proto method=POST [22:10:31]POST find Content-Length [22:10:31]Host: 172.17.50.3:8080 [22:10:31]Content-Length: 686 [22:10:31]Content-Type: application/json [22:10:31] [22:10:31]POST finish read [22:10:31]Found Content-Length = 686 [22:10:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:10:31]execute_script... [22:10: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)2885322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:10:31]POST & json_proto [22:10:31]process_json_proto [22:10:31]json parsed OK: [22:10:31]protocol is kg_v1.0 [22:10:31]action value=close_receipt [22:10:31]process_action close_receipt [22:10:31]cmd_close_receipt [22:10:31]MH_GetDate [22:10:31]Write to MH i2c: F0 00 00 A5 1E B2 [22:10:31]Write i2c OK [22:10:31]MH_I2C_Read... [22:10:31]Read from MH i2c: F0 [22:10:31]MH_I2C_Read... [22:10:31]Read from MH i2c: F0 09 00 [22:10:31]MH_I2C_Read... [22:10:31]Read from MH i2c: F0 09 00 A5 1E 00 D8 7F 15 67 6B 98 1E 66 15 [22:10:31]GetLastDocTimeStamp 1729461970 [22:10:31]current date 1729462232 [22:10:31]FM_GetShiftState [22:10:31]SAM_PROTO_GetShiftState [22:10:31]wFMCommunicate request_size=4 [22:10:31]MH_SAM_APDU [22:10:31]CAPDU: 80 13 01 00 [22:10:31]Write to MH i2c: E2 08 00 A6 1E 80 13 01 00 00 00 00 00 41 [22:10:31]Write i2c OK [22:10:31]MH_I2C_Read... [22:10:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:10:31]Read from MH i2c: E2 [22:10:31]MH_I2C_Read... [22:10:31]Read from MH i2c: E2 0E 00 [22:10:31]MH_I2C_Read... [22:10:31]Read from MH i2c: E2 0E 00 A6 1E 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 47 [22:10:31]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [22:10:31]wFMCommunicate OK [22:10:31]SAM_PROTO_GetShiftState done [22:10:31]FM_GetShiftState done [22:10:31]opened in 1729383220 [22:10:31]opened+sec_in_day 1729469620 [22:10:31]quantity*price = 100011 [22:10:31]sum+1 = 100013 [22:10:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 428 20.10.2024 22:10 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69583 ФПД: 29170380885864 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T221032&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69583&fm=29170380885864&tin=02508201610067®Number=0000000000156251&sum=100000 [22:10:32]StoreToDocumentArchive [22:10:32]shift 193 fd 69583 [22:10:32]save to /storage/0193/doc_00069583 [22:10:32]save last doc name /storage/0193/doc_00069583 to /storage/kkm_last_doc_name [22:10:32]save OK [22:10:32]Clear old archive folders... [22:10:32]ProcessDocumentItem done err = 0, tmpTLVsize=250 [22:10:32]tlvbuf is 00F8CDB0 [22:10:32]SAM_PROTO_ClearQueue [22:10:32]wFMCommunicate request_size=4 [22:10:32]MH_SAM_APDU [22:10:32]CAPDU: 80 09 00 00 [22:10:32]Write to MH i2c: E2 08 00 B3 1E 80 09 00 00 00 00 00 00 43 [22:10:32]Write i2c OK [22:10:32]MH_I2C_Read... [22:10:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:10:32]Read from MH i2c: E2 [22:10:32]MH_I2C_Read... [22:10:32]Read from MH i2c: E2 03 00 [22:10:32]MH_I2C_Read... [22:10:32]Read from MH i2c: E2 03 00 B3 1E 00 90 00 45 [22:10:32]RAPDU: 90 00 [22:10:32]wFMCommunicate OK [22:10:32]SAM_PROTO_ClearQueue done [22:10:32]KKMCreateOFDPacket [22:10:32]OFDProtocolAddRootSTLVToBuf [22:10:32]FM_MakeSignedData [22:10:32]FM_MakeSignedData [22:10:32]SAM_PROTO_SignData [22:10:32]wFMCommunicate request_size=4 [22:10:32]MH_SAM_APDU [22:10:32]CAPDU: 80 0D 01 02 [22:10:32]Write to MH i2c: E2 08 00 B4 1E 80 0D 01 02 00 00 00 00 4B [22:10:32]Write i2c OK [22:10:32]MH_I2C_Read... [22:10:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:10:32]Read from MH i2c: E2 [22:10:32]MH_I2C_Read... [22:10:32]Read from MH i2c: E2 03 00 [22:10:32]MH_I2C_Read... [22:10:32]Read from MH i2c: E2 03 00 B4 1E 00 90 00 46 [22:10:32]RAPDU: 90 00 [22:10:32]wFMCommunicate OK [22:10:32]wFMCommunicate request_size=255 [22:10:32]MH_SAM_APDU [22:10:32]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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 01 00 00 F4 03 04 00 D8 7F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CF 0F 01 00 35 04 06 00 1A 87 [22:10:32]Write to MH i2c: E2 02 01 B5 1E 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 01 00 00 F4 03 04 00 D8 7F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CF 0F 01 00 35 04 06 00 1A 87 00 00 70 [22:10:32]Write i2c OK [22:10:32]MH_I2C_Read... [22:10:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:10:32]Read from MH i2c: E2 [22:10:32]MH_I2C_Read... [22:10:32]Read from MH i2c: E2 03 00 [22:10:32]MH_I2C_Read... [22:10:32]Read from MH i2c: E2 03 00 B5 1E 00 90 00 47 [22:10:32]RAPDU: 90 00 [22:10:32]wFMCommunicate OK [22:10:32]wFMCommunicate request_size=9 [22:10:32]MH_SAM_APDU [22:10:32]CAPDU: 80 0D 02 02 04 C2 30 CF 68 [22:10:32]Write to MH i2c: E2 0C 00 B6 1E 80 0D 02 02 04 00 C2 30 CF 68 00 00 7F [22:10:32]Write i2c OK [22:10:32]MH_I2C_Read... [22:10:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:10:32]Read from MH i2c: E2 [22:10:32]MH_I2C_Read... [22:10:32]Read from MH i2c: E2 03 00 [22:10:32]MH_I2C_Read... [22:10:32]Read from MH i2c: E2 03 00 B6 1E 00 90 00 48 [22:10:32]RAPDU: 90 00 [22:10:32]wFMCommunicate OK [22:10:32]wFMCommunicate request_size=4 [22:10:32]MH_SAM_APDU [22:10:32]CAPDU: 80 0D 03 02 [22:10:32]Write to MH i2c: E2 08 00 B7 1E 80 0D 03 02 00 00 00 00 50 [22:10:32]Write i2c OK [22:10:32]MH_I2C_Read... [22:10:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:10:32]Read from MH i2c: E2 [22:10:32]MH_I2C_Read... [22:10:32]Read from MH i2c: E2 0B 00 [22:10:32]MH_I2C_Read... [22:10:32]Read from MH i2c: E2 0B 00 B7 1E 00 60 A2 52 A5 F1 22 1A DD 90 00 54 [22:10:32]RAPDU: 60 A2 52 A5 F1 22 1A DD 90 00 [22:10:32]wFMCommunicate OK [22:10:32]SAM_PROTO_SignData done [22:10:32]FM_MakeSignedData done [22:10:32]CreateOFDProtocolMessage [22:10:32]wFMCommunicate request_size=4 [22:10:32]MH_SAM_APDU [22:10:32]CAPDU: 80 11 00 00 [22:10:32]Write to MH i2c: E2 08 00 B8 1E 80 11 00 00 00 00 00 00 50 [22:10:32]Write i2c OK [22:10:32]MH_I2C_Read... [22:10:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:10:32]Read from MH i2c: E2 [22:10:32]MH_I2C_Read... [22:10:32]Read from MH i2c: E2 17 00 [22:10:32]MH_I2C_Read... [22:10:32]Read from MH i2c: E2 17 00 B8 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A2 [22:10:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:10:32]wFMCommunicate OK [22:10:32]CreateOFDProtocolMessage done [22:10:32]OFDSenderStorePacket 69583 [22:10:32]StoreOFDPacket docnum=69583 [22:10:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 41 63 06 01 A4 59 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 01 00 00 F4 03 04 00 D8 7F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CF 0F 01 00 35 04 06 00 1A 87 C2 30 CF 68 60 A2 52 A5 F1 22 1A DD [22:10:32]CheckFolder [22:10:32]dirname=/storage/ofd_packets [22:10:32]CheckFolder done [22:10:32]ProducePacketName [22:10:32]name=ofd_packets/00069583 [22:10:32]NVStorageSaveData ofd_packets/00069583 [22:10:32]File name is /storage/ofd_packets/00069583 [22:10:32]Write 300 bytes [22:10:32]NVStorageSaveData done [22:10:32]OFDSenderStorePacket done [22:10:32]KKMCreateOFDPacket done [22:10:32]NVStorageSaveData kkm_last_timestamp [22:10:32]File name is /storage/kkm_last_timestamp [22:10:32]Write 4 bytes [22:10:32]NVStorageSaveData done [22:10:32]ExternCall_PrintAddStr [22:10:32]wPrintStart [22:10:32]Write to MH i2c: 01 00 00 B9 1E D7 [22:10:32]Write i2c OK [22:10:32]MH_I2C_Read... [22:10:32]Read from MH i2c: 01 [22:10:32]MH_I2C_Read... [22:10:32]Read from MH i2c: 01 07 00 [22:10:32]MH_I2C_Read... [22:10:32]Read from MH i2c: 01 07 00 B9 1E 00 00 00 00 00 FF 0F EC [22:10:32]RasterBufferAndPrint [22:10:32]line Счет N : (1)2885322 [22:10:32]line ИНН: 02508201610067 [22:10:32]line Контрольно-Кассовый Чек [22:10:32]line ПРОДАЖА [22:10:32]line ТРК (МРК, ГНК) : 71 [22:10:32]line Товар: 2711129700 [22:10:32]line ГАЗ-К-3 [22:10:32]line 25.710 * 38.90 [22:10:32]line = 1000.12 [22:10:32]line НДС 12% НСП 1% [22:10:32]line > о реализуемом товаре [22:10:32]line ОКРУГЛЕНИЕ: -0.12 [22:10:32]line ИТОГО: 1000.00 [22:10:32]line Внесено: 1000.00 [22:10:32]line СДАЧА: 0.00 [22:10:32]line НСП 1% : 8.85 [22:10:32]line НДС 12% : 106.21 [22:10:32]line Наличными: 1000.00 [22:10:32]line Безнал.: 0.00 [22:10:32]line Место: АЗС № 85 "Партнер Нефть" [22:10:32]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [22:10:32]line СНО: Общий режим [22:10:32]line Чек 428 20.10.2024 22:10 [22:10:32]line Смена: 193 ФФД: 1.0 [22:10:32]line ЗНМ: 0300000167 [22:10:32]line РНМ: 0000000000156251 [22:10:32]line Версия ККМ: v1.0 [22:10:32]line ФМ: 0000000000963346 [22:10:32]line ФД: 69583 [22:10:32]line ФПД: 29170380885864 [22:10:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T221032&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69583&fm=29170380885864&tin=02508201610067®Number=0000000000156251&sum=100000 [22:10:33]OFD Sender: Processing packet 69583 [packets to send 18, broken 17] [22:10:33]ProducePacketName [22:10:33]name=ofd_packets/00069583 [22:10:33]OFD Sender: To server: pG, [22:10:33]CommunicateWithHost lk.salyk.kg:30040 [22:10:33]ConnectInit lk.salyk.kg [22:10:33]written 0, free lines is 4095 [22:10:33]Connected sock=10 [22:10:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 41 63 06 01 A4 59 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 01 00 00 F4 03 04 00 D8 7F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CF 0F 01 00 35 04 06 00 1A 87 C2 30 CF 68 60 A2 52 A5 F1 22 1A DD [22:10:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 BD A4 47 00 A7 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 CF 0F 01 00 F4 03 04 00 7D 29 15 67 B6 04 01 00 00 04 92 F2 A9 36 74 74 68 [22:10:33]CommunicateWithHost err = 0 [22:10:33]CheckOFDResponse [22:10:33]1017 (14) - 77093643461234 [22:10:33]1041 (16) - 0000000000963346 [22:10:33]1040 (4) - 69583 [22:10:33]1012 (4) - 20.10.2024 16:02 [22:10:33]1206 (1) - 0 [22:10:33]OFD Sender: Remove packet 69583 [22:10:33]ProducePacketName [22:10:33]name=ofd_packets/00069583 [22:10:33]NVStorageDeleteData [22:10:33]Write to MH i2c: 01 00 00 E4 1E 02 [22:10:33]Write i2c OK [22:10:33]MH_I2C_Read... [22:10:33]Read from MH i2c: 01 [22:10:33]MH_I2C_Read... [22:10:33]Read from MH i2c: 01 07 00 [22:10:33]MH_I2C_Read... [22:10:33]Read from MH i2c: 01 07 00 E4 1E 00 00 00 00 00 E9 0C FE [22:10:33]RasterBufferAndPrint [22:10:33]line [22:10:33]line [22:10:33]line [22:10:33]line [22:10:33]line [22:10:33]written 0, free lines is 3311 [22:10:33]MH_Cut [22:10:33]Write to MH i2c: D1 01 00 EB 1E 01 DB [22:10:33]Write i2c OK [22:10:33]MH_I2C_Read... [22:10:33]Read from MH i2c: D1 [22:10:33]MH_I2C_Read... [22:10:33]Read from MH i2c: D1 01 00 [22:10:33]MH_I2C_Read... [22:10:33]Read from MH i2c: D1 01 00 EB 1E 00 DA [22:10:33]Write to MH i2c: 01 00 00 EC 1E 0A [22:10:33]Write i2c OK [22:10:33]MH_I2C_Read... [22:10:33]OFD Sender: No OFD packet to send [22:10:34]*** Cut start [22:10:34]*** Partial cut [22:10:34]*** CUTSNS_PIN = 1 [22:10:34]*** CUTSNS_PIN = 0 [22:10:34]*** Brake cut motor [22:10:34]Read from MH i2c: 01 [22:10:34]MH_I2C_Read... [22:10:34]*** Stop cut motor [22:10:34]*** Cut end [22:10:34]Read from MH i2c: 01 07 00 [22:10:34]MH_I2C_Read... [22:10:34]Read from MH i2c: 01 07 00 EC 1E 00 00 00 00 00 FF 0F 1F [22:10:34]process_action close_receipt done [22:10:34]requested_data is exist [22:10:34]produce_requested_data [22:10:34]requested_item fm.sn is exist - process it [22:10:34]wFMCommunicate request_size=4 [22:10:34]MH_SAM_APDU [22:10:34]CAPDU: 80 11 00 00 [22:10:34]Write to MH i2c: E2 08 00 ED 1E 80 11 00 00 00 00 00 00 85 [22:10:34]Write i2c OK [22:10:34]MH_I2C_Read... [22:10:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:10:34]Read from MH i2c: E2 [22:10:34]MH_I2C_Read... [22:10:34]Read from MH i2c: E2 17 00 [22:10:34]MH_I2C_Read... [22:10:34]Read from MH i2c: E2 17 00 ED 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D7 [22:10:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:10:34]wFMCommunicate OK [22:10:34]requested_item fd.num is exist - process it [22:10:34]SAM_PROTO_GetFieldsCounters [22:10:34]wFMCommunicate request_size=4 [22:10:34]MH_SAM_APDU [22:10:34]CAPDU: 80 13 00 00 [22:10:34]Write to MH i2c: E2 08 00 EE 1E 80 13 00 00 00 00 00 00 88 [22:10:34]Write i2c OK [22:10:34]MH_I2C_Read... [22:10:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:10:35]Read from MH i2c: E2 [22:10:35]MH_I2C_Read... [22:10:35]Read from MH i2c: E2 62 00 [22:10:35]MH_I2C_Read... [22:10:35]Read from MH i2c: E2 62 00 EE 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CF 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 AC 01 00 00 5E 04 04 00 AC 01 00 00 57 04 04 00 AD 01 00 00 19 04 04 00 00 00 00 00 90 00 4A [22:10:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 CF 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 AC 01 00 00 5E 04 04 00 AC 01 00 00 57 04 04 00 AD 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:10:35]wFMCommunicate OK [22:10:35]SAM_PROTO_GetFieldsCounters done [22:10:35]requested_item shift.num is exist - process it [22:10:35]requested_item shift.opened is exist - process it [22:10:35]req_shift_opened [22:10:35]FM_GetShiftState [22:10:35]SAM_PROTO_GetShiftState [22:10:35]wFMCommunicate request_size=4 [22:10:35]MH_SAM_APDU [22:10:35]CAPDU: 80 13 01 00 [22:10:35]Write to MH i2c: E2 08 00 EF 1E 80 13 01 00 00 00 00 00 8A [22:10:35]Write i2c OK [22:10:35]MH_I2C_Read... [22:10:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:10:35]Read from MH i2c: E2 [22:10:35]MH_I2C_Read... [22:10:35]Read from MH i2c: E2 0E 00 [22:10:35]MH_I2C_Read... [22:10:35]Read from MH i2c: E2 0E 00 EF 1E 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 90 [22:10:35]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [22:10:35]wFMCommunicate OK [22:10:35]SAM_PROTO_GetShiftState done [22:10:35]FM_GetShiftState done [22:10:35]req_shift_opened done [22:10:35]requested_item shift.open_date is exist - process it [22:10:35]req_shift_open_date [22:10:35]req_shift_open_date done [22:10:35]produce_requested_data done [22:10:35]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69583,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [22:10:35]process_action_free close_receipt [22:10:35]json_value_free [22:10:35]json_value_free done [22:10:35]process_json_proto returns [22:10:35]Send response to host [22:10:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69583,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [22:10:35]free response buf [22:10:35]execute_script done [22:10:35]execute_script returns [22:10:35]free content buf [22:10:35]Sock 9.Close socket [22:10:35]Sock 9.Thread stoped [22:10:38]OFD Sender: No OFD packet to send [22:10:43]OFD Sender: No OFD packet to send [22:10:48]OFD Sender: No OFD packet to send [22:10:53]OFD Sender: No OFD packet to send [22:10:58]OFD Sender: No OFD packet to send [22:11:03]OFD Sender: No OFD packet to send [22:11:08]OFD Sender: No OFD packet to send [22:11:13]OFD Sender: No OFD packet to send [22:11:18]OFD Sender: No OFD packet to send [22:11:23]OFD Sender: No OFD packet to send [22:11:28]OFD Sender: No OFD packet to send [22:11:33]OFD Sender: No OFD packet to send [22:11:38]OFD Sender: No OFD packet to send [22:11:43]OFD Sender: No OFD packet to send [22:11:48]OFD Sender: No OFD packet to send [22:11:53]OFD Sender: No OFD packet to send [22:11:58]OFD Sender: No OFD packet to send [22:12:03]OFD Sender: No OFD packet to send [22:12:08]OFD Sender: No OFD packet to send [22:12:13]OFD Sender: No OFD packet to send [22:12:18]OFD Sender: No OFD packet to send [22:12:23]OFD Sender: No OFD packet to send [22:12:28]OFD Sender: No OFD packet to send [22:12:33]OFD Sender: No OFD packet to send [22:12:38]OFD Sender: No OFD packet to send [22:12:43]OFD Sender: No OFD packet to send [22:12:48]OFD Sender: No OFD packet to send [22:12:53]OFD Sender: No OFD packet to send [22:12:58]OFD Sender: No OFD packet to send [22:13:03]OFD Sender: No OFD packet to send [22:13:09]OFD Sender: No OFD packet to send [22:13:14]OFD Sender: No OFD packet to send [22:13:19]OFD Sender: No OFD packet to send [22:13:24]OFD Sender: No OFD packet to send [22:13:29]OFD Sender: No OFD packet to send [22:13:34]OFD Sender: No OFD packet to send [22:13:39]OFD Sender: No OFD packet to send [22:13:44]OFD Sender: No OFD packet to send [22:13:49]OFD Sender: No OFD packet to send [22:13:54]OFD Sender: No OFD packet to send [22:13:59]OFD Sender: No OFD packet to send [22:14:04]OFD Sender: No OFD packet to send [22:14:09]OFD Sender: No OFD packet to send [22:14:14]OFD Sender: No OFD packet to send [22:14:19]OFD Sender: No OFD packet to send [22:14:24]OFD Sender: No OFD packet to send [22:14:29]OFD Sender: No OFD packet to send [22:14:34]OFD Sender: No OFD packet to send [22:14:39]OFD Sender: No OFD packet to send [22:14:44]OFD Sender: No OFD packet to send [22:14:49]OFD Sender: No OFD packet to send [22:14:54]OFD Sender: No OFD packet to send [22:14:59]OFD Sender: No OFD packet to send [22:15:04]OFD Sender: No OFD packet to send [22:15:09]OFD Sender: No OFD packet to send [22:15:14]OFD Sender: No OFD packet to send [22:15:19]OFD Sender: No OFD packet to send [22:15:24]OFD Sender: No OFD packet to send [22:15:29]OFD Sender: No OFD packet to send [22:15:34]OFD Sender: No OFD packet to send [22:15:39]OFD Sender: No OFD packet to send [22:15:44]OFD Sender: No OFD packet to send [22:15:49]OFD Sender: No OFD packet to send [22:15:54]OFD Sender: No OFD packet to send [22:15:59]OFD Sender: No OFD packet to send [22:16:04]OFD Sender: No OFD packet to send [22:16:09]OFD Sender: No OFD packet to send [22:16:14]OFD Sender: No OFD packet to send [22:16:19]OFD Sender: No OFD packet to send [22:16:24]OFD Sender: No OFD packet to send [22:16:29]OFD Sender: No OFD packet to send [22:16:34]OFD Sender: No OFD packet to send [22:16:39]OFD Sender: No OFD packet to send [22:16:44]OFD Sender: No OFD packet to send [22:16:49]OFD Sender: No OFD packet to send [22:16:54]OFD Sender: No OFD packet to send [22:16:59]OFD Sender: No OFD packet to send [22:17:04]OFD Sender: No OFD packet to send [22:17:09]OFD Sender: No OFD packet to send [22:17:14]OFD Sender: No OFD packet to send [22:17:19]OFD Sender: No OFD packet to send [22:17:24]OFD Sender: No OFD packet to send [22:17:29]OFD Sender: No OFD packet to send [22:17:34]OFD Sender: No OFD packet to send [22:17:39]OFD Sender: No OFD packet to send [22:17:44]OFD Sender: No OFD packet to send [22:17:49]OFD Sender: No OFD packet to send [22:17:54]OFD Sender: No OFD packet to send [22:17:59]OFD Sender: No OFD packet to send [22:18:04]OFD Sender: No OFD packet to send [22:18:09]OFD Sender: No OFD packet to send [22:18:14]OFD Sender: No OFD packet to send [22:18:19]OFD Sender: No OFD packet to send [22:18:24]OFD Sender: No OFD packet to send [22:18:29]OFD Sender: No OFD packet to send [22:18:34]OFD Sender: No OFD packet to send [22:18:39]OFD Sender: No OFD packet to send [22:18:44]OFD Sender: No OFD packet to send [22:18:49]OFD Sender: No OFD packet to send [22:18:54]OFD Sender: No OFD packet to send [22:18:59]OFD Sender: No OFD packet to send [22:19:04]OFD Sender: No OFD packet to send [22:19:09]OFD Sender: No OFD packet to send [22:19:14]OFD Sender: No OFD packet to send [22:19:19]OFD Sender: No OFD packet to send [22:19:24]OFD Sender: No OFD packet to send [22:19:29]OFD Sender: No OFD packet to send [22:19:34]OFD Sender: No OFD packet to send [22:19:39]OFD Sender: No OFD packet to send [22:19:44]OFD Sender: No OFD packet to send [22:19:49]OFD Sender: No OFD packet to send [22:19:54]OFD Sender: No OFD packet to send [22:19:59]OFD Sender: No OFD packet to send [22:20:04]OFD Sender: No OFD packet to send [22:20:09]OFD Sender: No OFD packet to send [22:20:14]OFD Sender: No OFD packet to send [22:20:19]OFD Sender: No OFD packet to send [22:20:24]OFD Sender: No OFD packet to send [22:20:29]OFD Sender: No OFD packet to send [22:20:34]OFD Sender: No OFD packet to send [22:20:39]OFD Sender: No OFD packet to send [22:20:44]OFD Sender: No OFD packet to send [22:20:49]OFD Sender: No OFD packet to send [22:20:54]OFD Sender: No OFD packet to send [22:20:59]OFD Sender: No OFD packet to send [22:21:04]OFD Sender: No OFD packet to send [22:21:09]OFD Sender: No OFD packet to send [22:21:14]OFD Sender: No OFD packet to send [22:21:19]OFD Sender: No OFD packet to send [22:21:24]OFD Sender: No OFD packet to send [22:21:29]OFD Sender: No OFD packet to send [22:21:34]OFD Sender: No OFD packet to send [22:21:39]OFD Sender: No OFD packet to send [22:21:44]OFD Sender: No OFD packet to send [22:21:49]OFD Sender: No OFD packet to send [22:21:54]OFD Sender: No OFD packet to send [22:21:59]OFD Sender: No OFD packet to send [22:22:04]OFD Sender: No OFD packet to send [22:22:09]OFD Sender: No OFD packet to send [22:22:14]OFD Sender: No OFD packet to send [22:22:19]OFD Sender: No OFD packet to send [22:22:24]OFD Sender: No OFD packet to send [22:22:29]OFD Sender: No OFD packet to send [22:22:34]OFD Sender: No OFD packet to send [22:22:39]OFD Sender: No OFD packet to send [22:22:44]OFD Sender: No OFD packet to send [22:22:49]OFD Sender: No OFD packet to send [22:22:54]OFD Sender: No OFD packet to send [22:22:59]OFD Sender: No OFD packet to send [22:23:04]OFD Sender: No OFD packet to send [22:23:09]OFD Sender: No OFD packet to send [22:23:14]OFD Sender: No OFD packet to send [22:23:19]OFD Sender: No OFD packet to send [22:23:24]OFD Sender: No OFD packet to send [22:23:29]OFD Sender: No OFD packet to send [22:23:34]OFD Sender: No OFD packet to send [22:23:39]OFD Sender: No OFD packet to send [22:23:44]OFD Sender: No OFD packet to send [22:23:49]OFD Sender: No OFD packet to send [22:23:54]OFD Sender: No OFD packet to send [22:23:59]OFD Sender: No OFD packet to send [22:24:04]OFD Sender: No OFD packet to send [22:24:09]OFD Sender: No OFD packet to send [22:24:14]OFD Sender: No OFD packet to send [22:24:19]OFD Sender: No OFD packet to send [22:24:24]OFD Sender: No OFD packet to send [22:24:29]OFD Sender: No OFD packet to send [22:24:34]OFD Sender: No OFD packet to send [22:24:39]OFD Sender: No OFD packet to send [22:24:44]OFD Sender: No OFD packet to send [22:24:49]OFD Sender: No OFD packet to send [22:24:54]OFD Sender: No OFD packet to send [22:24:59]OFD Sender: No OFD packet to send [22:25:04]OFD Sender: No OFD packet to send [22:25:09]OFD Sender: No OFD packet to send [22:25:14]OFD Sender: No OFD packet to send [22:25:19]OFD Sender: No OFD packet to send [22:25:24]OFD Sender: No OFD packet to send [22:25:29]OFD Sender: No OFD packet to send [22:25:34]OFD Sender: No OFD packet to send [22:25:39]OFD Sender: No OFD packet to send [22:25:44]OFD Sender: No OFD packet to send [22:25:49]OFD Sender: No OFD packet to send [22:25:54]OFD Sender: No OFD packet to send [22:25:59]OFD Sender: No OFD packet to send [22:26:04]OFD Sender: No OFD packet to send [22:26:09]OFD Sender: No OFD packet to send [22:26:14]OFD Sender: No OFD packet to send [22:26:19]OFD Sender: No OFD packet to send [22:26:24]OFD Sender: No OFD packet to send [22:26:29]OFD Sender: No OFD packet to send [22:26:34]OFD Sender: No OFD packet to send [22:26:39]OFD Sender: No OFD packet to send [22:26:44]OFD Sender: No OFD packet to send [22:26:49]OFD Sender: No OFD packet to send [22:26:54]OFD Sender: No OFD packet to send [22:26:59]OFD Sender: No OFD packet to send [22:27:04]OFD Sender: No OFD packet to send [22:27:09]OFD Sender: No OFD packet to send [22:27:14]OFD Sender: No OFD packet to send [22:27:19]OFD Sender: No OFD packet to send [22:27:24]OFD Sender: No OFD packet to send [22:27:29]OFD Sender: No OFD packet to send [22:27:34]OFD Sender: No OFD packet to send [22:27:39]OFD Sender: No OFD packet to send [22:27:44]OFD Sender: No OFD packet to send [22:27:49]OFD Sender: No OFD packet to send [22:27:54]OFD Sender: No OFD packet to send [22:27:59]OFD Sender: No OFD packet to send [22:28:04]OFD Sender: No OFD packet to send [22:28:09]OFD Sender: No OFD packet to send [22:28:14]OFD Sender: No OFD packet to send [22:28:19]OFD Sender: No OFD packet to send [22:28:24]OFD Sender: No OFD packet to send [22:28:29]OFD Sender: No OFD packet to send [22:28:34]OFD Sender: No OFD packet to send [22:28:39]OFD Sender: No OFD packet to send [22:28:44]OFD Sender: No OFD packet to send [22:28:49]OFD Sender: No OFD packet to send [22:28:54]OFD Sender: No OFD packet to send [22:28:59]OFD Sender: No OFD packet to send [22:29:04]OFD Sender: No OFD packet to send [22:29:09]OFD Sender: No OFD packet to send [22:29:14]OFD Sender: No OFD packet to send [22:29:19]OFD Sender: No OFD packet to send [22:29:24]OFD Sender: No OFD packet to send [22:29:29]OFD Sender: No OFD packet to send [22:29:34]OFD Sender: No OFD packet to send [22:29:39]OFD Sender: No OFD packet to send [22:29:44]OFD Sender: No OFD packet to send [22:29:49]OFD Sender: No OFD packet to send [22:29:54]OFD Sender: No OFD packet to send [22:29:59]OFD Sender: No OFD packet to send [22:30:04]OFD Sender: No OFD packet to send [22:30:09]OFD Sender: No OFD packet to send [22:30:14]OFD Sender: No OFD packet to send [22:30:19]OFD Sender: No OFD packet to send [22:30:24]OFD Sender: No OFD packet to send [22:30:29]OFD Sender: No OFD packet to send [22:30:34]OFD Sender: No OFD packet to send [22:30:39]OFD Sender: No OFD packet to send [22:30:44]OFD Sender: No OFD packet to send [22:30:49]OFD Sender: No OFD packet to send [22:30:54]OFD Sender: No OFD packet to send [22:30:59]OFD Sender: No OFD packet to send [22:31:04]OFD Sender: No OFD packet to send [22:31:09]OFD Sender: No OFD packet to send [22:31:14]OFD Sender: No OFD packet to send [22:31:19]OFD Sender: No OFD packet to send [22:31:24]OFD Sender: No OFD packet to send [22:31:29]OFD Sender: No OFD packet to send [22:31:34]OFD Sender: No OFD packet to send [22:31:39]OFD Sender: No OFD packet to send [22:31:44]OFD Sender: No OFD packet to send [22:31:49]OFD Sender: No OFD packet to send [22:31:54]OFD Sender: No OFD packet to send [22:31:59]OFD Sender: No OFD packet to send [22:32:04]OFD Sender: No OFD packet to send [22:32:09]OFD Sender: No OFD packet to send [22:32:14]OFD Sender: No OFD packet to send [22:32:19]OFD Sender: No OFD packet to send [22:32:24]OFD Sender: No OFD packet to send [22:32:29]OFD Sender: No OFD packet to send [22:32:34]OFD Sender: No OFD packet to send [22:32:39]OFD Sender: No OFD packet to send [22:32:44]OFD Sender: No OFD packet to send [22:32:49]OFD Sender: No OFD packet to send [22:32:54]OFD Sender: No OFD packet to send [22:32:59]OFD Sender: No OFD packet to send [22:33:04]OFD Sender: No OFD packet to send [22:33:09]OFD Sender: No OFD packet to send [22:33:14]OFD Sender: No OFD packet to send [22:33:19]OFD Sender: No OFD packet to send [22:33:24]OFD Sender: No OFD packet to send [22:33:30]OFD Sender: No OFD packet to send [22:33:35]OFD Sender: No OFD packet to send [22:33:40]OFD Sender: No OFD packet to send [22:33:45]OFD Sender: No OFD packet to send [22:33:50]OFD Sender: No OFD packet to send [22:33:55]OFD Sender: No OFD packet to send [22:34:00]OFD Sender: No OFD packet to send [22:34:05]OFD Sender: No OFD packet to send [22:34:10]OFD Sender: No OFD packet to send [22:34:15]OFD Sender: No OFD packet to send [22:34:20]OFD Sender: No OFD packet to send [22:34:25]OFD Sender: No OFD packet to send [22:34:30]OFD Sender: No OFD packet to send [22:34:35]OFD Sender: No OFD packet to send [22:34:40]OFD Sender: No OFD packet to send [22:34:45]OFD Sender: No OFD packet to send [22:34:50]OFD Sender: No OFD packet to send [22:34:55]OFD Sender: No OFD packet to send [22:35:00]OFD Sender: No OFD packet to send [22:35:05]OFD Sender: No OFD packet to send [22:35:10]OFD Sender: No OFD packet to send [22:35:15]OFD Sender: No OFD packet to send [22:35:20]OFD Sender: No OFD packet to send [22:35:25]OFD Sender: No OFD packet to send [22:35:30]OFD Sender: No OFD packet to send [22:35:35]OFD Sender: No OFD packet to send [22:35:40]OFD Sender: No OFD packet to send [22:35:45]OFD Sender: No OFD packet to send [22:35:50]OFD Sender: No OFD packet to send [22:35:55]OFD Sender: No OFD packet to send [22:36:00]OFD Sender: No OFD packet to send [22:36:05]OFD Sender: No OFD packet to send [22:36:10]OFD Sender: No OFD packet to send [22:36:15]OFD Sender: No OFD packet to send [22:36:20]OFD Sender: No OFD packet to send [22:36:25]OFD Sender: No OFD packet to send [22:36:30]OFD Sender: No OFD packet to send [22:36:35]OFD Sender: No OFD packet to send [22:36:40]OFD Sender: No OFD packet to send [22:36:45]OFD Sender: No OFD packet to send [22:36:50]OFD Sender: No OFD packet to send [22:36:55]OFD Sender: No OFD packet to send [22:37:00]OFD Sender: No OFD packet to send [22:37:05]OFD Sender: No OFD packet to send [22:37:10]OFD Sender: No OFD packet to send [22:37:15]OFD Sender: No OFD packet to send [22:37:20]OFD Sender: No OFD packet to send [22:37:25]OFD Sender: No OFD packet to send [22:37:30]OFD Sender: No OFD packet to send [22:37:35]OFD Sender: No OFD packet to send [22:37:40]OFD Sender: No OFD packet to send [22:37:45]OFD Sender: No OFD packet to send [22:37:50]OFD Sender: No OFD packet to send [22:37:55]OFD Sender: No OFD packet to send [22:38:00]OFD Sender: No OFD packet to send [22:38:05]OFD Sender: No OFD packet to send [22:38:10]OFD Sender: No OFD packet to send [22:38:15]OFD Sender: No OFD packet to send [22:38:20]OFD Sender: No OFD packet to send [22:38:25]OFD Sender: No OFD packet to send [22:38:30]OFD Sender: No OFD packet to send [22:38:35]OFD Sender: No OFD packet to send [22:38:40]OFD Sender: No OFD packet to send [22:38:45]OFD Sender: No OFD packet to send [22:38:50]OFD Sender: No OFD packet to send [22:38:55]OFD Sender: No OFD packet to send [22:39:00]OFD Sender: No OFD packet to send [22:39:05]OFD Sender: No OFD packet to send [22:39:10]OFD Sender: No OFD packet to send [22:39:15]OFD Sender: No OFD packet to send [22:39:20]OFD Sender: No OFD packet to send [22:39:25]OFD Sender: No OFD packet to send [22:39:30]OFD Sender: No OFD packet to send [22:39:35]OFD Sender: No OFD packet to send [22:39:40]OFD Sender: No OFD packet to send [22:39:45]OFD Sender: No OFD packet to send [22:39:50]OFD Sender: No OFD packet to send [22:39:55]OFD Sender: No OFD packet to send [22:40:00]OFD Sender: No OFD packet to send [22:40:05]OFD Sender: No OFD packet to send [22:40:10]OFD Sender: No OFD packet to send [22:40:15]OFD Sender: No OFD packet to send [22:40:20]OFD Sender: No OFD packet to send [22:40:25]OFD Sender: No OFD packet to send [22:40:30]OFD Sender: No OFD packet to send [22:40:35]OFD Sender: No OFD packet to send [22:40:40]OFD Sender: No OFD packet to send [22:40:45]OFD Sender: No OFD packet to send [22:40:50]OFD Sender: No OFD packet to send [22:40:55]OFD Sender: No OFD packet to send [22:41:00]OFD Sender: No OFD packet to send [22:41:05]OFD Sender: No OFD packet to send [22:41:10]OFD Sender: No OFD packet to send [22:41:15]OFD Sender: No OFD packet to send [22:41:20]OFD Sender: No OFD packet to send [22:41:25]OFD Sender: No OFD packet to send [22:41:30]OFD Sender: No OFD packet to send [22:41:35]OFD Sender: No OFD packet to send [22:41:40]OFD Sender: No OFD packet to send [22:41:45]OFD Sender: No OFD packet to send [22:41:50]OFD Sender: No OFD packet to send [22:41:55]OFD Sender: No OFD packet to send [22:41:57]accept exits with 7 [22:41:57]New connection [22:41:57]New thread 3066654052 created [22:41:57]Thread 3066797412 joined [22:41:57]Waiting for new connection... [22:41:57] Sock 7.Parse request [22:41:57]Sock 7.Check first char [22:41:57]Sock 7.First char is OK [22:41:57]request: POST /json_proto HTTP/1.0 [22:41:57]Method: POST [22:41:57]URL: /json_proto [22:41:57]Method is POST - this is cgi request [22:41:57]url: /json_proto [22:41:57]query_string will be loaded in cgi processing [22:41:57]execute_cgi json_proto POST (null) [22:41:57]execute_cgi path=json_proto method=POST [22:41:57]POST find Content-Length [22:41:57]Host: 172.17.50.3:8080 [22:41:57]Content-Length: 684 [22:41:57]Content-Type: application/json [22:41:57] [22:41:57]POST finish read [22:41:57]Found Content-Length = 684 [22:41:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 7.780, "sum" : 600.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:41:57]execute_script... [22:41: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)2885324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 7.780, "sum" : 600.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:41:57]POST & json_proto [22:41:57]process_json_proto [22:41:57]json parsed OK: [22:41:57]protocol is kg_v1.0 [22:41:57]action value=close_receipt [22:41:57]process_action close_receipt [22:41:57]cmd_close_receipt [22:41:57]MH_GetDate [22:41:57]Write to MH i2c: F0 00 00 F0 1E FD [22:41:57]Write i2c OK [22:41:57]MH_I2C_Read... [22:41:57]Read from MH i2c: F0 [22:41:57]MH_I2C_Read... [22:41:57]Read from MH i2c: F0 09 00 [22:41:57]MH_I2C_Read... [22:41:57]Read from MH i2c: F0 09 00 F0 1E 00 36 87 15 67 6B 98 1E 66 C6 [22:41:57]GetLastDocTimeStamp 1729462232 [22:41:57]current date 1729464118 [22:41:57]FM_GetShiftState [22:41:57]SAM_PROTO_GetShiftState [22:41:57]wFMCommunicate request_size=4 [22:41:57]MH_SAM_APDU [22:41:57]CAPDU: 80 13 01 00 [22:41:57]Write to MH i2c: E2 08 00 F1 1E 80 13 01 00 00 00 00 00 8C [22:41:57]Write i2c OK [22:41:57]MH_I2C_Read... [22:41:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:57]Read from MH i2c: E2 [22:41:57]MH_I2C_Read... [22:41:57]Read from MH i2c: E2 0E 00 [22:41:57]MH_I2C_Read... [22:41:57]Read from MH i2c: E2 0E 00 F1 1E 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 92 [22:41:57]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [22:41:57]wFMCommunicate OK [22:41:57]SAM_PROTO_GetShiftState done [22:41:57]FM_GetShiftState done [22:41:57]opened in 1729383220 [22:41:57]opened+sec_in_day 1729469620 [22:41:57]quantity*price = 60061 [22:41:57]sum+1 = 60063 [22:41:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 429 20.10.2024 22:41 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69584 ФПД: 135581678303322 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T224158&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69584&fm=135581678303322&tin=02508201610067®Number=0000000000156251&sum=60000 [22:41:58]StoreToDocumentArchive [22:41:58]shift 193 fd 69584 [22:41:58]save to /storage/0193/doc_00069584 [22:41:58]save last doc name /storage/0193/doc_00069584 to /storage/kkm_last_doc_name [22:41:58]save OK [22:41:58]Clear old archive folders... [22:41:58]ProcessDocumentItem done err = 0, tmpTLVsize=257 [22:41:58]tlvbuf is 00F66BB0 [22:41:58]SAM_PROTO_ClearQueue [22:41:58]wFMCommunicate request_size=4 [22:41:58]MH_SAM_APDU [22:41:58]CAPDU: 80 09 00 00 [22:41:58]Write to MH i2c: E2 08 00 FE 1E 80 09 00 00 00 00 00 00 8E [22:41:58]Write i2c OK [22:41:58]MH_I2C_Read... [22:41:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:41:58]Read from MH i2c: E2 [22:41:58]MH_I2C_Read... [22:41:58]Read from MH i2c: E2 03 00 [22:41:58]MH_I2C_Read... [22:41:58]Read from MH i2c: E2 03 00 FE 1E 00 90 00 90 [22:41:58]RAPDU: 90 00 [22:41:58]wFMCommunicate OK [22:41:58]SAM_PROTO_ClearQueue done [22:41:58]KKMCreateOFDPacket [22:41:58]OFDProtocolAddRootSTLVToBuf [22:41:58]FM_MakeSignedData [22:41:58]FM_MakeSignedData [22:41:58]SAM_PROTO_SignData [22:41:58]wFMCommunicate request_size=4 [22:41:58]MH_SAM_APDU [22:41:58]CAPDU: 80 0D 01 02 [22:41:58]Write to MH i2c: E2 08 00 FF 1E 80 0D 01 02 00 00 00 00 96 [22:41:58]Write i2c OK [22:41:58]MH_I2C_Read... [22:41:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:41:58]Read from MH i2c: E2 [22:41:58]MH_I2C_Read... [22:41:58]Read from MH i2c: E2 03 00 [22:41:58]MH_I2C_Read... [22:41:58]Read from MH i2c: E2 03 00 FF 1E 00 90 00 91 [22:41:58]RAPDU: 90 00 [22:41:58]wFMCommunicate OK [22:41:58]wFMCommunicate request_size=255 [22:41:58]MH_SAM_APDU [22:41:58]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 01 00 00 F4 03 04 00 36 87 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D0 0F 01 [22:41:58]Write to MH i2c: E2 02 01 00 1F 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 01 00 00 F4 03 04 00 36 87 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D0 0F 01 00 00 8A [22:41:58]Write i2c OK [22:41:58]MH_I2C_Read... [22:41:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:58]Read from MH i2c: E2 [22:41:58]MH_I2C_Read... [22:41:58]Read from MH i2c: E2 03 00 [22:41:58]MH_I2C_Read... [22:41:58]Read from MH i2c: E2 03 00 00 1F 00 90 00 93 [22:41:58]RAPDU: 90 00 [22:41:58]wFMCommunicate OK [22:41:58]wFMCommunicate request_size=16 [22:41:58]MH_SAM_APDU [22:41:58]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 7B 4F 91 C5 F8 5A [22:41:58]Write to MH i2c: E2 13 00 01 1F 80 0D 02 02 0B 00 00 35 04 06 00 7B 4F 91 C5 F8 5A 00 00 61 [22:41:58]Write i2c OK [22:41:58]MH_I2C_Read... [22:41:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:58]Read from MH i2c: E2 [22:41:58]MH_I2C_Read... [22:41:58]Read from MH i2c: E2 03 00 [22:41:58]MH_I2C_Read... [22:41:58]Read from MH i2c: E2 03 00 01 1F 00 90 00 94 [22:41:58]RAPDU: 90 00 [22:41:58]wFMCommunicate OK [22:41:58]wFMCommunicate request_size=4 [22:41:58]MH_SAM_APDU [22:41:58]CAPDU: 80 0D 03 02 [22:41:58]Write to MH i2c: E2 08 00 02 1F 80 0D 03 02 00 00 00 00 9C [22:41:58]Write i2c OK [22:41:58]MH_I2C_Read... [22:41:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:41:58]Read from MH i2c: E2 [22:41:58]MH_I2C_Read... [22:41:58]Read from MH i2c: E2 0B 00 [22:41:58]MH_I2C_Read... [22:41:58]Read from MH i2c: E2 0B 00 02 1F 00 32 B5 7D BD E2 0E 4A 22 90 00 1A [22:41:58]RAPDU: 32 B5 7D BD E2 0E 4A 22 90 00 [22:41:58]wFMCommunicate OK [22:41:58]SAM_PROTO_SignData done [22:41:58]FM_MakeSignedData done [22:41:58]CreateOFDProtocolMessage [22:41:58]wFMCommunicate request_size=4 [22:41:58]MH_SAM_APDU [22:41:58]CAPDU: 80 11 00 00 [22:41:58]Write to MH i2c: E2 08 00 03 1F 80 11 00 00 00 00 00 00 9C [22:41:58]Write i2c OK [22:41:58]MH_I2C_Read... [22:41:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:58]Read from MH i2c: E2 [22:41:58]MH_I2C_Read... [22:41:58]Read from MH i2c: E2 17 00 [22:41:58]MH_I2C_Read... [22:41:58]Read from MH i2c: E2 17 00 03 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EE [22:41:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:41:58]wFMCommunicate OK [22:41:58]CreateOFDProtocolMessage done [22:41:58]OFDSenderStorePacket 69584 [22:41:58]StoreOFDPacket docnum=69584 [22:41:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 C0 03 0D 01 CF B5 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 01 00 00 F4 03 04 00 36 87 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D0 0F 01 00 35 04 06 00 7B 4F 91 C5 F8 5A 32 B5 7D BD E2 0E 4A 22 [22:41:58]CheckFolder [22:41:58]dirname=/storage/ofd_packets [22:41:58]CheckFolder done [22:41:58]ProducePacketName [22:41:58]name=ofd_packets/00069584 [22:41:58]NVStorageSaveData ofd_packets/00069584 [22:41:58]File name is /storage/ofd_packets/00069584 [22:41:58]Write 307 bytes [22:41:58]NVStorageSaveData done [22:41:58]OFDSenderStorePacket done [22:41:58]KKMCreateOFDPacket done [22:41:58]NVStorageSaveData kkm_last_timestamp [22:41:58]File name is /storage/kkm_last_timestamp [22:41:58]Write 4 bytes [22:41:58]NVStorageSaveData done [22:41:58]ExternCall_PrintAddStr [22:41:58]wPrintStart [22:41:58]Write to MH i2c: 01 00 00 04 1F 23 [22:41:58]Write i2c OK [22:41:58]MH_I2C_Read... [22:41:58]Read from MH i2c: 01 [22:41:58]MH_I2C_Read... [22:41:58]Read from MH i2c: 01 07 00 [22:41:58]MH_I2C_Read... [22:41:58]Read from MH i2c: 01 07 00 04 1F 00 00 00 00 00 FF 0F 38 [22:41:58]RasterBufferAndPrint [22:41:58]line Счет N : (1)2885324 [22:41:58]line ИНН: 02508201610067 [22:41:58]line Контрольно-Кассовый Чек [22:41:58]line ПРОДАЖА [22:41:58]line ТРК (МРК, ГНК) : 11 [22:41:58]line Товар: 2710194240 [22:41:58]line D-ENERGY Дт-К-2 [22:41:58]line 7.780 * 77.20 [22:41:58]line = 600.62 [22:41:58]line НДС 12% НСП 1% [22:41:58]line > о реализуемом товаре [22:41:58]line ОКРУГЛЕНИЕ: -0.62 [22:41:58]line ИТОГО: 600.00 [22:41:58]line Внесено: 600.00 [22:41:58]line СДАЧА: 0.00 [22:41:58]line НСП 1% : 5.31 [22:41:58]line НДС 12% : 63.78 [22:41:58]line Наличными: 600.00 [22:41:58]line Безнал.: 0.00 [22:41:58]line Место: АЗС № 85 "Партнер Нефть" [22:41:58]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [22:41:58]line СНО: Общий режим [22:41:58]line Чек 429 20.10.2024 22:41 [22:41:58]line Смена: 193 ФФД: 1.0 [22:41:58]line ЗНМ: 0300000167 [22:41:58]line РНМ: 0000000000156251 [22:41:58]line Версия ККМ: v1.0 [22:41:58]line ФМ: 0000000000963346 [22:41:58]line ФД: 69584 [22:41:58]line ФПД: 135581678303322 [22:41:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T224158&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69584&fm=135581678303322&tin=02508201610067®Number=0000000000156251&sum=60000 [22:41:59]OFD Sender: Processing packet 69584 [packets to send 18, broken 17] [22:41:59]ProducePacketName [22:41:59]name=ofd_packets/00069584 [22:41:59]OFD Sender: To server: pG, [22:41:59]CommunicateWithHost lk.salyk.kg:30040 [22:41:59]ConnectInit lk.salyk.kg [22:41:59]written 0, free lines is 4095 [22:41:59]Connected sock=10 [22:41:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 C0 03 0D 01 CF B5 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 01 00 00 F4 03 04 00 36 87 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D0 0F 01 00 35 04 06 00 7B 4F 91 C5 F8 5A 32 B5 7D BD E2 0E 4A 22 [22:41:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 22 92 47 00 8E 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D0 0F 01 00 F4 03 04 00 DC 30 15 67 B6 04 01 00 00 BD 9B BB 0D 46 61 D8 75 [22:41:59]CommunicateWithHost err = 0 [22:41:59]CheckOFDResponse [22:41:59]1017 (14) - 77093643461234 [22:41:59]1041 (16) - 0000000000963346 [22:41:59]1040 (4) - 69584 [22:41:59]1012 (4) - 20.10.2024 16:33 [22:41:59]1206 (1) - 0 [22:41:59]OFD Sender: Remove packet 69584 [22:41:59]ProducePacketName [22:41:59]name=ofd_packets/00069584 [22:41:59]NVStorageDeleteData [22:41:59]Write to MH i2c: 01 00 00 2F 1F 4E [22:41:59]Write i2c OK [22:41:59]MH_I2C_Read... [22:41:59]Read from MH i2c: 01 [22:41:59]MH_I2C_Read... [22:41:59]Read from MH i2c: 01 07 00 [22:41:59]MH_I2C_Read... [22:41:59]Read from MH i2c: 01 07 00 2F 1F 00 00 00 00 00 FF 0C 60 [22:41:59]RasterBufferAndPrint [22:41:59]line [22:41:59]line [22:41:59]line [22:41:59]line [22:41:59]line [22:41:59]written 0, free lines is 3333 [22:41:59]MH_Cut [22:41:59]Write to MH i2c: D1 01 00 36 1F 01 27 [22:41:59]Write i2c OK [22:41:59]MH_I2C_Read... [22:41:59]Read from MH i2c: D1 [22:41:59]MH_I2C_Read... [22:41:59]Read from MH i2c: D1 01 00 [22:41:59]MH_I2C_Read... [22:41:59]Read from MH i2c: D1 01 00 36 1F 00 26 [22:41:59]Write to MH i2c: 01 00 00 37 1F 56 [22:41:59]Write i2c OK [22:41:59]MH_I2C_Read... [22:41:59]OFD Sender: No OFD packet to send [22:42:00]*** Cut start [22:42:00]*** Partial cut [22:42:00]*** CUTSNS_PIN = 1 [22:42:00]*** CUTSNS_PIN = 0 [22:42:00]*** Brake cut motor [22:42:00]Read from MH i2c: 01 [22:42:00]MH_I2C_Read... [22:42:00]*** Stop cut motor [22:42:00]*** Cut end [22:42:00]Read from MH i2c: 01 07 00 [22:42:00]MH_I2C_Read... [22:42:00]Read from MH i2c: 01 07 00 37 1F 00 00 00 00 00 FF 0F 6B [22:42:00]process_action close_receipt done [22:42:00]requested_data is exist [22:42:00]produce_requested_data [22:42:00]requested_item fm.sn is exist - process it [22:42:00]wFMCommunicate request_size=4 [22:42:00]MH_SAM_APDU [22:42:00]CAPDU: 80 11 00 00 [22:42:00]Write to MH i2c: E2 08 00 38 1F 80 11 00 00 00 00 00 00 D1 [22:42:00]Write i2c OK [22:42:00]MH_I2C_Read... [22:42:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:42:00]Read from MH i2c: E2 [22:42:00]MH_I2C_Read... [22:42:00]Read from MH i2c: E2 17 00 [22:42:00]MH_I2C_Read... [22:42:00]Read from MH i2c: E2 17 00 38 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 23 [22:42:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:42:00]wFMCommunicate OK [22:42:00]requested_item fd.num is exist - process it [22:42:00]SAM_PROTO_GetFieldsCounters [22:42:00]wFMCommunicate request_size=4 [22:42:00]MH_SAM_APDU [22:42:00]CAPDU: 80 13 00 00 [22:42:00]Write to MH i2c: E2 08 00 39 1F 80 13 00 00 00 00 00 00 D4 [22:42:00]Write i2c OK [22:42:00]MH_I2C_Read... [22:42:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:42:01]Read from MH i2c: E2 [22:42:01]MH_I2C_Read... [22:42:01]Read from MH i2c: E2 62 00 [22:42:01]MH_I2C_Read... [22:42:01]Read from MH i2c: E2 62 00 39 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D0 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 AD 01 00 00 5E 04 04 00 AD 01 00 00 57 04 04 00 AE 01 00 00 19 04 04 00 00 00 00 00 90 00 9A [22:42:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D0 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 AD 01 00 00 5E 04 04 00 AD 01 00 00 57 04 04 00 AE 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:42:01]wFMCommunicate OK [22:42:01]SAM_PROTO_GetFieldsCounters done [22:42:01]requested_item shift.num is exist - process it [22:42:01]requested_item shift.opened is exist - process it [22:42:01]req_shift_opened [22:42:01]FM_GetShiftState [22:42:01]SAM_PROTO_GetShiftState [22:42:01]wFMCommunicate request_size=4 [22:42:01]MH_SAM_APDU [22:42:01]CAPDU: 80 13 01 00 [22:42:01]Write to MH i2c: E2 08 00 3A 1F 80 13 01 00 00 00 00 00 D6 [22:42:01]Write i2c OK [22:42:01]MH_I2C_Read... [22:42:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:42:01]Read from MH i2c: E2 [22:42:01]MH_I2C_Read... [22:42:01]Read from MH i2c: E2 0E 00 [22:42:01]MH_I2C_Read... [22:42:01]Read from MH i2c: E2 0E 00 3A 1F 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 DC [22:42:01]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [22:42:01]wFMCommunicate OK [22:42:01]SAM_PROTO_GetShiftState done [22:42:01]FM_GetShiftState done [22:42:01]req_shift_opened done [22:42:01]requested_item shift.open_date is exist - process it [22:42:01]req_shift_open_date [22:42:01]req_shift_open_date done [22:42:01]produce_requested_data done [22:42:01]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69584,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [22:42:01]process_action_free close_receipt [22:42:01]json_value_free [22:42:01]json_value_free done [22:42:01]process_json_proto returns [22:42:01]Send response to host [22:42:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69584,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [22:42:01]free response buf [22:42:01]execute_script done [22:42:01]execute_script returns [22:42:01]free content buf [22:42:01]Sock 7.Close socket [22:42:01]Sock 7.Thread stoped [22:42:04]OFD Sender: No OFD packet to send [22:42:09]OFD Sender: No OFD packet to send [22:42:14]OFD Sender: No OFD packet to send [22:42:19]OFD Sender: No OFD packet to send [22:42:24]OFD Sender: No OFD packet to send [22:42:29]OFD Sender: No OFD packet to send [22:42:34]OFD Sender: No OFD packet to send [22:42:39]OFD Sender: No OFD packet to send [22:42:44]OFD Sender: No OFD packet to send [22:42:49]OFD Sender: No OFD packet to send [22:42:54]OFD Sender: No OFD packet to send [22:42:59]OFD Sender: No OFD packet to send [22:43:04]OFD Sender: No OFD packet to send [22:43:09]OFD Sender: No OFD packet to send [22:43:14]OFD Sender: No OFD packet to send [22:43:19]OFD Sender: No OFD packet to send [22:43:24]OFD Sender: No OFD packet to send [22:43:29]OFD Sender: No OFD packet to send [22:43:34]OFD Sender: No OFD packet to send [22:43:38]accept exits with 9 [22:43:38]New connection [22:43:38]New thread 3066797412 created [22:43:38]Thread 3066654052 joined [22:43:38]Waiting for new connection... [22:43:38] Sock 9.Parse request [22:43:38]Sock 9.Check first char [22:43:38]Sock 9.First char is OK [22:43:38]request: POST /json_proto HTTP/1.0 [22:43:38]Method: POST [22:43:38]URL: /json_proto [22:43:38]Method is POST - this is cgi request [22:43:38]url: /json_proto [22:43:38]query_string will be loaded in cgi processing [22:43:38]execute_cgi json_proto POST (null) [22:43:38]execute_cgi path=json_proto method=POST [22:43:38]POST find Content-Length [22:43:38]Host: 172.17.50.3:8080 [22:43:38]Content-Length: 773 [22:43:38]Content-Type: application/json [22:43:38] [22:43:38]POST finish read [22:43:38]Found Content-Length = 773 [22:43:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 51.420, "sum" : 2000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:43:38]execute_script... [22:43: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)2885323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 51.420, "sum" : 2000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:43:38]POST & json_proto [22:43:38]process_json_proto [22:43:38]json parsed OK: [22:43:38]protocol is kg_v1.0 [22:43:38]action value=close_receipt [22:43:38]process_action close_receipt [22:43:38]cmd_close_receipt [22:43:38]MH_GetDate [22:43:38]Write to MH i2c: F0 00 00 3B 1F 49 [22:43:38]Write i2c OK [22:43:38]MH_I2C_Read... [22:43:38]Read from MH i2c: F0 [22:43:38]MH_I2C_Read... [22:43:38]Read from MH i2c: F0 09 00 [22:43:38]MH_I2C_Read... [22:43:38]Read from MH i2c: F0 09 00 3B 1F 00 9C 87 15 67 6B 98 1E 66 78 [22:43:38]GetLastDocTimeStamp 1729464118 [22:43:38]current date 1729464220 [22:43:38]FM_GetShiftState [22:43:38]SAM_PROTO_GetShiftState [22:43:38]wFMCommunicate request_size=4 [22:43:38]MH_SAM_APDU [22:43:38]CAPDU: 80 13 01 00 [22:43:38]Write to MH i2c: E2 08 00 3C 1F 80 13 01 00 00 00 00 00 D8 [22:43:38]Write i2c OK [22:43:38]MH_I2C_Read... [22:43:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:43:38]Read from MH i2c: E2 [22:43:38]MH_I2C_Read... [22:43:38]Read from MH i2c: E2 0E 00 [22:43:38]MH_I2C_Read... [22:43:38]Read from MH i2c: E2 0E 00 3C 1F 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 DE [22:43:38]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [22:43:38]wFMCommunicate OK [22:43:38]SAM_PROTO_GetShiftState done [22:43:38]FM_GetShiftState done [22:43:38]opened in 1729383220 [22:43:38]opened+sec_in_day 1729469620 [22:43:38]quantity*price = 200023 [22:43:38]sum+1 = 200025 [22:43:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.24 НСП 1% : 17.70 НДС 12% : 212.41 Наличными: 0.00 Безнал.: 2000.24 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 430 20.10.2024 22:43 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69585 ФПД: 93402043352888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T224340&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69585&fm=93402043352888&tin=02508201610067®Number=0000000000156251&sum=200024 [22:43:39]StoreToDocumentArchive [22:43:39]shift 193 fd 69585 [22:43:39]save to /storage/0193/doc_00069585 [22:43:39]save last doc name /storage/0193/doc_00069585 to /storage/kkm_last_doc_name [22:43:39]save OK [22:43:39]Clear old archive folders... [22:43:39]ProcessDocumentItem done err = 0, tmpTLVsize=250 [22:43:39]tlvbuf is 00F7F120 [22:43:39]SAM_PROTO_ClearQueue [22:43:39]wFMCommunicate request_size=4 [22:43:39]MH_SAM_APDU [22:43:39]CAPDU: 80 09 00 00 [22:43:39]Write to MH i2c: E2 08 00 49 1F 80 09 00 00 00 00 00 00 DA [22:43:39]Write i2c OK [22:43:39]MH_I2C_Read... [22:43:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:43:39]Read from MH i2c: E2 [22:43:39]MH_I2C_Read... [22:43:39]Read from MH i2c: E2 03 00 [22:43:39]MH_I2C_Read... [22:43:39]Read from MH i2c: E2 03 00 49 1F 00 90 00 DC [22:43:39]RAPDU: 90 00 [22:43:39]wFMCommunicate OK [22:43:39]SAM_PROTO_ClearQueue done [22:43:39]KKMCreateOFDPacket [22:43:39]OFDProtocolAddRootSTLVToBuf [22:43:39]FM_MakeSignedData [22:43:39]FM_MakeSignedData [22:43:39]SAM_PROTO_SignData [22:43:39]wFMCommunicate request_size=4 [22:43:39]MH_SAM_APDU [22:43:39]CAPDU: 80 0D 01 02 [22:43:39]Write to MH i2c: E2 08 00 4A 1F 80 0D 01 02 00 00 00 00 E2 [22:43:39]Write i2c OK [22:43:39]MH_I2C_Read... [22:43:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:43:39]Read from MH i2c: E2 [22:43:39]MH_I2C_Read... [22:43:39]Read from MH i2c: E2 03 00 [22:43:39]MH_I2C_Read... [22:43:39]Read from MH i2c: E2 03 00 4A 1F 00 90 00 DD [22:43:39]RAPDU: 90 00 [22:43:39]wFMCommunicate OK [22:43:39]wFMCommunicate request_size=255 [22:43:39]MH_SAM_APDU [22:43:39]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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 01 00 00 F4 03 04 00 9C 87 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D1 0F 01 00 35 04 06 00 54 F2 [22:43:39]Write to MH i2c: E2 02 01 4B 1F 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 01 00 00 F4 03 04 00 9C 87 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D1 0F 01 00 35 04 06 00 54 F2 00 00 22 [22:43:39]Write i2c OK [22:43:39]MH_I2C_Read... [22:43:40]OFD Sender: No OFD packet to send [22:43:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:43:40]Read from MH i2c: E2 [22:43:40]MH_I2C_Read... [22:43:40]Read from MH i2c: E2 03 00 [22:43:40]MH_I2C_Read... [22:43:40]Read from MH i2c: E2 03 00 4B 1F 00 90 00 DE [22:43:40]RAPDU: 90 00 [22:43:40]wFMCommunicate OK [22:43:40]wFMCommunicate request_size=9 [22:43:40]MH_SAM_APDU [22:43:40]CAPDU: 80 0D 02 02 04 DB 9D 87 38 [22:43:40]Write to MH i2c: E2 0C 00 4C 1F 80 0D 02 02 04 00 DB 9D 87 38 00 00 24 [22:43:40]Write i2c OK [22:43:40]MH_I2C_Read... [22:43:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:43:40]Read from MH i2c: E2 [22:43:40]MH_I2C_Read... [22:43:40]Read from MH i2c: E2 03 00 [22:43:40]MH_I2C_Read... [22:43:40]Read from MH i2c: E2 03 00 4C 1F 00 90 00 DF [22:43:40]RAPDU: 90 00 [22:43:40]wFMCommunicate OK [22:43:40]wFMCommunicate request_size=4 [22:43:40]MH_SAM_APDU [22:43:40]CAPDU: 80 0D 03 02 [22:43:40]Write to MH i2c: E2 08 00 4D 1F 80 0D 03 02 00 00 00 00 E7 [22:43:40]Write i2c OK [22:43:40]MH_I2C_Read... [22:43:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:43:40]Read from MH i2c: E2 [22:43:40]MH_I2C_Read... [22:43:40]Read from MH i2c: E2 0B 00 [22:43:40]MH_I2C_Read... [22:43:40]Read from MH i2c: E2 0B 00 4D 1F 00 46 31 F0 23 B9 76 D1 D5 90 00 47 [22:43:40]RAPDU: 46 31 F0 23 B9 76 D1 D5 90 00 [22:43:40]wFMCommunicate OK [22:43:40]SAM_PROTO_SignData done [22:43:40]FM_MakeSignedData done [22:43:40]CreateOFDProtocolMessage [22:43:40]wFMCommunicate request_size=4 [22:43:40]MH_SAM_APDU [22:43:40]CAPDU: 80 11 00 00 [22:43:40]Write to MH i2c: E2 08 00 4E 1F 80 11 00 00 00 00 00 00 E7 [22:43:40]Write i2c OK [22:43:40]MH_I2C_Read... [22:43:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:43:40]Read from MH i2c: E2 [22:43:40]MH_I2C_Read... [22:43:40]Read from MH i2c: E2 17 00 [22:43:40]MH_I2C_Read... [22:43:40]Read from MH i2c: E2 17 00 4E 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 39 [22:43:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:43:40]wFMCommunicate OK [22:43:40]CreateOFDProtocolMessage done [22:43:40]OFDSenderStorePacket 69585 [22:43:40]StoreOFDPacket docnum=69585 [22:43:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 CB BA 06 01 39 41 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 01 00 00 F4 03 04 00 9C 87 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D1 0F 01 00 35 04 06 00 54 F2 DB 9D 87 38 46 31 F0 23 B9 76 D1 D5 [22:43:40]CheckFolder [22:43:40]dirname=/storage/ofd_packets [22:43:40]CheckFolder done [22:43:40]ProducePacketName [22:43:40]name=ofd_packets/00069585 [22:43:40]NVStorageSaveData ofd_packets/00069585 [22:43:40]File name is /storage/ofd_packets/00069585 [22:43:40]Write 300 bytes [22:43:40]NVStorageSaveData done [22:43:40]OFDSenderStorePacket done [22:43:40]KKMCreateOFDPacket done [22:43:40]NVStorageSaveData kkm_last_timestamp [22:43:40]File name is /storage/kkm_last_timestamp [22:43:40]Write 4 bytes [22:43:40]NVStorageSaveData done [22:43:40]ExternCall_PrintAddStr [22:43:40]wPrintStart [22:43:40]Write to MH i2c: 01 00 00 4F 1F 6E [22:43:40]Write i2c OK [22:43:40]MH_I2C_Read... [22:43:40]Read from MH i2c: 01 [22:43:40]MH_I2C_Read... [22:43:40]Read from MH i2c: 01 07 00 [22:43:40]MH_I2C_Read... [22:43:40]Read from MH i2c: 01 07 00 4F 1F 00 00 00 00 00 FF 0F 83 [22:43:40]RasterBufferAndPrint [22:43:40]line Счет N : (1)2885323 [22:43:40]line ИНН: 02508201610067 [22:43:40]line Контрольно-Кассовый Чек [22:43:40]line ПРОДАЖА [22:43:40]line ТРК (МРК, ГНК) : 71 [22:43:40]line Товар: 2711129700 [22:43:40]line ГАЗ-К-3 [22:43:40]line 51.420 * 38.90 [22:43:40]line = 2000.24 [22:43:40]line НДС 12% НСП 1% [22:43:40]line > о реализуемом товаре [22:43:40]line ИТОГО: 2000.24 [22:43:40]line НСП 1% : 17.70 [22:43:40]line НДС 12% : 212.41 [22:43:40]line Наличными: 0.00 [22:43:40]line Безнал.: 2000.24 [22:43:40]line Место: АЗС № 85 "Партнер Нефть" [22:43:40]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [22:43:40]line СНО: Общий режим [22:43:40]line Чек 430 20.10.2024 22:43 [22:43:40]line Смена: 193 ФФД: 1.0 [22:43:40]line ЗНМ: 0300000167 [22:43:40]line РНМ: 0000000000156251 [22:43:40]line Версия ККМ: v1.0 [22:43:40]line Платежная система: Mbank [22:43:40]line ФМ: 0000000000963346 [22:43:40]line ФД: 69585 [22:43:40]line ФПД: 93402043352888 [22:43:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T224340&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69585&fm=93402043352888&tin=02508201610067®Number=0000000000156251&sum=200024 [22:43:40]OFD Sender: Processing packet 69585 [packets to send 18, broken 17] [22:43:40]ProducePacketName [22:43:40]name=ofd_packets/00069585 [22:43:40]OFD Sender: To server: pG, [22:43:40]CommunicateWithHost lk.salyk.kg:30040 [22:43:40]ConnectInit lk.salyk.kg [22:43:40]written 0, free lines is 4095 [22:43:40]Connected sock=10 [22:43:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 CB BA 06 01 39 41 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 01 00 00 F4 03 04 00 9C 87 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D1 0F 01 00 35 04 06 00 54 F2 DB 9D 87 38 46 31 F0 23 B9 76 D1 D5 [22:43:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 9F FE 47 00 C8 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D1 0F 01 00 F4 03 04 00 41 31 15 67 B6 04 01 00 00 AF 68 B2 FA 0E 0A 76 29 [22:43:41]CommunicateWithHost err = 0 [22:43:41]CheckOFDResponse [22:43:41]1017 (14) - 77093643461234 [22:43:41]1041 (16) - 0000000000963346 [22:43:41]1040 (4) - 69585 [22:43:41]1012 (4) - 20.10.2024 16:35 [22:43:41]1206 (1) - 0 [22:43:41]OFD Sender: Remove packet 69585 [22:43:41]ProducePacketName [22:43:41]name=ofd_packets/00069585 [22:43:41]NVStorageDeleteData [22:43:41]Write to MH i2c: 01 00 00 78 1F 97 [22:43:41]Write i2c OK [22:43:41]MH_I2C_Read... [22:43:41]Read from MH i2c: 01 [22:43:41]MH_I2C_Read... [22:43:41]Read from MH i2c: 01 07 00 [22:43:41]MH_I2C_Read... [22:43:41]Read from MH i2c: 01 07 00 78 1F 00 00 00 00 00 1F 0D CA [22:43:41]RasterBufferAndPrint [22:43:41]line [22:43:41]line [22:43:41]line [22:43:41]line [22:43:41]line [22:43:41]written 0, free lines is 3365 [22:43:41]MH_Cut [22:43:41]Write to MH i2c: D1 01 00 7F 1F 01 70 [22:43:41]Write i2c OK [22:43:41]MH_I2C_Read... [22:43:41]Read from MH i2c: D1 [22:43:41]MH_I2C_Read... [22:43:41]Read from MH i2c: D1 01 00 [22:43:41]MH_I2C_Read... [22:43:41]Read from MH i2c: D1 01 00 7F 1F 00 6F [22:43:41]Write to MH i2c: 01 00 00 80 1F 9F [22:43:41]Write i2c OK [22:43:41]MH_I2C_Read... [22:43:41]OFD Sender: No OFD packet to send [22:43:41]*** Cut start [22:43:41]*** Partial cut [22:43:41]*** CUTSNS_PIN = 1 [22:43:41]*** CUTSNS_PIN = 0 [22:43:42]*** Brake cut motor [22:43:42]Read from MH i2c: 01 [22:43:42]MH_I2C_Read... [22:43:42]*** Stop cut motor [22:43:42]*** Cut end [22:43:42]Read from MH i2c: 01 07 00 [22:43:42]MH_I2C_Read... [22:43:42]Read from MH i2c: 01 07 00 80 1F 00 00 00 00 00 FF 0F B4 [22:43:42]process_action close_receipt done [22:43:42]requested_data is exist [22:43:42]produce_requested_data [22:43:42]requested_item fm.sn is exist - process it [22:43:42]wFMCommunicate request_size=4 [22:43:42]MH_SAM_APDU [22:43:42]CAPDU: 80 11 00 00 [22:43:42]Write to MH i2c: E2 08 00 81 1F 80 11 00 00 00 00 00 00 1A [22:43:42]Write i2c OK [22:43:42]MH_I2C_Read... [22:43:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:43:42]Read from MH i2c: E2 [22:43:42]MH_I2C_Read... [22:43:42]Read from MH i2c: E2 17 00 [22:43:42]MH_I2C_Read... [22:43:42]Read from MH i2c: E2 17 00 81 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6C [22:43:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:43:42]wFMCommunicate OK [22:43:42]requested_item fd.num is exist - process it [22:43:42]SAM_PROTO_GetFieldsCounters [22:43:42]wFMCommunicate request_size=4 [22:43:42]MH_SAM_APDU [22:43:42]CAPDU: 80 13 00 00 [22:43:42]Write to MH i2c: E2 08 00 82 1F 80 13 00 00 00 00 00 00 1D [22:43:42]Write i2c OK [22:43:42]MH_I2C_Read... [22:43:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:43:42]Read from MH i2c: E2 [22:43:42]MH_I2C_Read... [22:43:42]Read from MH i2c: E2 62 00 [22:43:42]MH_I2C_Read... [22:43:42]Read from MH i2c: E2 62 00 82 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D1 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 AE 01 00 00 5E 04 04 00 AE 01 00 00 57 04 04 00 AF 01 00 00 19 04 04 00 00 00 00 00 90 00 E7 [22:43:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D1 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 AE 01 00 00 5E 04 04 00 AE 01 00 00 57 04 04 00 AF 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:43:42]wFMCommunicate OK [22:43:42]SAM_PROTO_GetFieldsCounters done [22:43:42]requested_item shift.num is exist - process it [22:43:42]requested_item shift.opened is exist - process it [22:43:42]req_shift_opened [22:43:42]FM_GetShiftState [22:43:42]SAM_PROTO_GetShiftState [22:43:42]wFMCommunicate request_size=4 [22:43:42]MH_SAM_APDU [22:43:42]CAPDU: 80 13 01 00 [22:43:42]Write to MH i2c: E2 08 00 83 1F 80 13 01 00 00 00 00 00 1F [22:43:42]Write i2c OK [22:43:42]MH_I2C_Read... [22:43:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:43:42]Read from MH i2c: E2 [22:43:42]MH_I2C_Read... [22:43:42]Read from MH i2c: E2 0E 00 [22:43:42]MH_I2C_Read... [22:43:42]Read from MH i2c: E2 0E 00 83 1F 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 25 [22:43:42]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [22:43:42]wFMCommunicate OK [22:43:42]SAM_PROTO_GetShiftState done [22:43:42]FM_GetShiftState done [22:43:42]req_shift_opened done [22:43:42]requested_item shift.open_date is exist - process it [22:43:42]req_shift_open_date [22:43:42]req_shift_open_date done [22:43:42]produce_requested_data done [22:43:42]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69585,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [22:43:42]process_action_free close_receipt [22:43:42]json_value_free [22:43:42]json_value_free done [22:43:42]process_json_proto returns [22:43:42]Send response to host [22:43:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69585,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [22:43:42]free response buf [22:43:42]execute_script done [22:43:42]execute_script returns [22:43:42]free content buf [22:43:42]Sock 9.Close socket [22:43:42]Sock 9.Thread stoped [22:43:46]OFD Sender: No OFD packet to send [22:43:51]OFD Sender: No OFD packet to send [22:43:56]OFD Sender: No OFD packet to send [22:44:01]OFD Sender: No OFD packet to send [22:44:06]OFD Sender: No OFD packet to send [22:44:11]OFD Sender: No OFD packet to send [22:44:16]OFD Sender: No OFD packet to send [22:44:21]OFD Sender: No OFD packet to send [22:44:26]OFD Sender: No OFD packet to send [22:44:31]OFD Sender: No OFD packet to send [22:44:36]OFD Sender: No OFD packet to send [22:44:41]OFD Sender: No OFD packet to send [22:44:46]OFD Sender: No OFD packet to send [22:44:51]OFD Sender: No OFD packet to send [22:44:56]OFD Sender: No OFD packet to send [22:45:01]OFD Sender: No OFD packet to send [22:45:06]OFD Sender: No OFD packet to send [22:45:11]OFD Sender: No OFD packet to send [22:45:16]OFD Sender: No OFD packet to send [22:45:21]OFD Sender: No OFD packet to send [22:45:26]OFD Sender: No OFD packet to send [22:45:31]OFD Sender: No OFD packet to send [22:45:36]OFD Sender: No OFD packet to send [22:45:41]OFD Sender: No OFD packet to send [22:45:46]OFD Sender: No OFD packet to send [22:45:51]OFD Sender: No OFD packet to send [22:45:56]OFD Sender: No OFD packet to send [22:46:01]OFD Sender: No OFD packet to send [22:46:06]OFD Sender: No OFD packet to send [22:46:11]OFD Sender: No OFD packet to send [22:46:16]OFD Sender: No OFD packet to send [22:46:21]OFD Sender: No OFD packet to send [22:46:26]OFD Sender: No OFD packet to send [22:46:31]OFD Sender: No OFD packet to send [22:46:36]OFD Sender: No OFD packet to send [22:46:41]OFD Sender: No OFD packet to send [22:46:46]OFD Sender: No OFD packet to send [22:46:51]OFD Sender: No OFD packet to send [22:46:56]OFD Sender: No OFD packet to send [22:47:01]OFD Sender: No OFD packet to send [22:47:06]OFD Sender: No OFD packet to send [22:47:11]OFD Sender: No OFD packet to send [22:47:16]OFD Sender: No OFD packet to send [22:47:21]OFD Sender: No OFD packet to send [22:47:26]OFD Sender: No OFD packet to send [22:47:31]OFD Sender: No OFD packet to send [22:47:36]OFD Sender: No OFD packet to send [22:47:41]OFD Sender: No OFD packet to send [22:47:46]OFD Sender: No OFD packet to send [22:47:51]OFD Sender: No OFD packet to send [22:47:56]OFD Sender: No OFD packet to send [22:48:01]OFD Sender: No OFD packet to send [22:48:06]OFD Sender: No OFD packet to send [22:48:11]OFD Sender: No OFD packet to send [22:48:16]OFD Sender: No OFD packet to send [22:48:21]OFD Sender: No OFD packet to send [22:48:26]OFD Sender: No OFD packet to send [22:48:31]OFD Sender: No OFD packet to send [22:48:36]OFD Sender: No OFD packet to send [22:48:41]OFD Sender: No OFD packet to send [22:48:46]OFD Sender: No OFD packet to send [22:48:51]OFD Sender: No OFD packet to send [22:48:56]OFD Sender: No OFD packet to send [22:49:01]OFD Sender: No OFD packet to send [22:49:06]OFD Sender: No OFD packet to send [22:49:11]OFD Sender: No OFD packet to send [22:49:16]OFD Sender: No OFD packet to send [22:49:21]OFD Sender: No OFD packet to send [22:49:26]OFD Sender: No OFD packet to send [22:49:31]OFD Sender: No OFD packet to send [22:49:36]OFD Sender: No OFD packet to send [22:49:41]OFD Sender: No OFD packet to send [22:49:46]OFD Sender: No OFD packet to send [22:49:51]OFD Sender: No OFD packet to send [22:49:56]OFD Sender: No OFD packet to send [22:50:01]OFD Sender: No OFD packet to send [22:50:06]OFD Sender: No OFD packet to send [22:50:11]OFD Sender: No OFD packet to send [22:50:16]OFD Sender: No OFD packet to send [22:50:21]OFD Sender: No OFD packet to send [22:50:26]OFD Sender: No OFD packet to send [22:50:31]OFD Sender: No OFD packet to send [22:50:36]OFD Sender: No OFD packet to send [22:50:41]OFD Sender: No OFD packet to send [22:50:46]OFD Sender: No OFD packet to send [22:50:51]OFD Sender: No OFD packet to send [22:50:56]OFD Sender: No OFD packet to send [22:51:01]OFD Sender: No OFD packet to send [22:51:06]OFD Sender: No OFD packet to send [22:51:11]OFD Sender: No OFD packet to send [22:51:16]OFD Sender: No OFD packet to send [22:51:21]OFD Sender: No OFD packet to send [22:51:26]OFD Sender: No OFD packet to send [22:51:31]OFD Sender: No OFD packet to send [22:51:36]OFD Sender: No OFD packet to send [22:51:41]OFD Sender: No OFD packet to send [22:51:46]OFD Sender: No OFD packet to send [22:51:51]OFD Sender: No OFD packet to send [22:51:56]OFD Sender: No OFD packet to send [22:52:01]OFD Sender: No OFD packet to send [22:52:06]OFD Sender: No OFD packet to send [22:52:11]OFD Sender: No OFD packet to send [22:52:16]OFD Sender: No OFD packet to send [22:52:21]OFD Sender: No OFD packet to send [22:52:26]OFD Sender: No OFD packet to send [22:52:31]OFD Sender: No OFD packet to send [22:52:36]OFD Sender: No OFD packet to send [22:52:41]OFD Sender: No OFD packet to send [22:52:46]OFD Sender: No OFD packet to send [22:52:51]OFD Sender: No OFD packet to send [22:52:56]OFD Sender: No OFD packet to send [22:53:01]OFD Sender: No OFD packet to send [22:53:06]OFD Sender: No OFD packet to send [22:53:11]OFD Sender: No OFD packet to send [22:53:16]OFD Sender: No OFD packet to send [22:53:22]OFD Sender: No OFD packet to send [22:53:27]OFD Sender: No OFD packet to send [22:53:32]OFD Sender: No OFD packet to send [22:53:37]OFD Sender: No OFD packet to send [22:53:42]OFD Sender: No OFD packet to send [22:53:47]OFD Sender: No OFD packet to send [22:53:52]OFD Sender: No OFD packet to send [22:53:57]OFD Sender: No OFD packet to send [22:54:02]OFD Sender: No OFD packet to send [22:54:07]OFD Sender: No OFD packet to send [22:54:12]OFD Sender: No OFD packet to send [22:54:17]OFD Sender: No OFD packet to send [22:54:22]OFD Sender: No OFD packet to send [22:54:27]OFD Sender: No OFD packet to send [22:54:32]OFD Sender: No OFD packet to send [22:54:34]accept exits with 7 [22:54:34]New connection [22:54:34]New thread 3066654052 created [22:54:34]Thread 3066797412 joined [22:54:34]Waiting for new connection... [22:54:34] Sock 7.Parse request [22:54:34]Sock 7.Check first char [22:54:34]Sock 7.First char is OK [22:54:34]request: POST /json_proto HTTP/1.0 [22:54:34]Method: POST [22:54:34]URL: /json_proto [22:54:34]Method is POST - this is cgi request [22:54:34]url: /json_proto [22:54:34]query_string will be loaded in cgi processing [22:54:34]execute_cgi json_proto POST (null) [22:54:34]execute_cgi path=json_proto method=POST [22:54:34]POST find Content-Length [22:54:34]Host: 172.17.50.3:8080 [22:54:34]Content-Length: 767 [22:54:34]Content-Type: application/json [22:54:34] [22:54:34]POST finish read [22:54:34]Found Content-Length = 767 [22:54:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.730, "sum" : 450.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 450.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:54:34]execute_script... [22:54:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.730, "sum" : 450.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 450.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:54:34]POST & json_proto [22:54:34]process_json_proto [22:54:34]json parsed OK: [22:54:34]protocol is kg_v1.0 [22:54:34]action value=close_receipt [22:54:34]process_action close_receipt [22:54:34]cmd_close_receipt [22:54:34]MH_GetDate [22:54:34]Write to MH i2c: F0 00 00 84 1F 92 [22:54:34]Write i2c OK [22:54:34]MH_I2C_Read... [22:54:34]Read from MH i2c: F0 [22:54:34]MH_I2C_Read... [22:54:34]Read from MH i2c: F0 09 00 [22:54:34]MH_I2C_Read... [22:54:34]Read from MH i2c: F0 09 00 84 1F 00 2B 8A 15 67 6B 98 1E 66 53 [22:54:34]GetLastDocTimeStamp 1729464220 [22:54:34]current date 1729464875 [22:54:34]FM_GetShiftState [22:54:34]SAM_PROTO_GetShiftState [22:54:34]wFMCommunicate request_size=4 [22:54:34]MH_SAM_APDU [22:54:34]CAPDU: 80 13 01 00 [22:54:34]Write to MH i2c: E2 08 00 85 1F 80 13 01 00 00 00 00 00 21 [22:54:34]Write i2c OK [22:54:34]MH_I2C_Read... [22:54:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:54:34]Read from MH i2c: E2 [22:54:34]MH_I2C_Read... [22:54:34]Read from MH i2c: E2 0E 00 [22:54:34]MH_I2C_Read... [22:54:34]Read from MH i2c: E2 0E 00 85 1F 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 27 [22:54:34]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [22:54:34]wFMCommunicate OK [22:54:34]SAM_PROTO_GetShiftState done [22:54:34]FM_GetShiftState done [22:54:34]opened in 1729383220 [22:54:34]opened+sec_in_day 1729469620 [22:54:34]quantity*price = 45023 [22:54:34]sum+1 = 45025 [22:54:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 450.24 НСП 1% : 3.98 НДС 12% : 47.81 Наличными: 0.00 Безнал.: 450.24 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 431 20.10.2024 22:54 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69586 ФПД: 53591096755379 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T225435&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69586&fm=53591096755379&tin=02508201610067®Number=0000000000156251&sum=45024 [22:54:35]StoreToDocumentArchive [22:54:35]shift 193 fd 69586 [22:54:35]save to /storage/0193/doc_00069586 [22:54:35]save last doc name /storage/0193/doc_00069586 to /storage/kkm_last_doc_name [22:54:35]save OK [22:54:35]Clear old archive folders... [22:54:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:54:35]tlvbuf is 00F76CB0 [22:54:35]SAM_PROTO_ClearQueue [22:54:35]wFMCommunicate request_size=4 [22:54:35]MH_SAM_APDU [22:54:35]CAPDU: 80 09 00 00 [22:54:35]Write to MH i2c: E2 08 00 92 1F 80 09 00 00 00 00 00 00 23 [22:54:35]Write i2c OK [22:54:35]MH_I2C_Read... [22:54:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:54:35]Read from MH i2c: E2 [22:54:35]MH_I2C_Read... [22:54:35]Read from MH i2c: E2 03 00 [22:54:35]MH_I2C_Read... [22:54:35]Read from MH i2c: E2 03 00 92 1F 00 90 00 25 [22:54:35]RAPDU: 90 00 [22:54:35]wFMCommunicate OK [22:54:35]SAM_PROTO_ClearQueue done [22:54:35]KKMCreateOFDPacket [22:54:35]OFDProtocolAddRootSTLVToBuf [22:54:35]FM_MakeSignedData [22:54:35]FM_MakeSignedData [22:54:35]SAM_PROTO_SignData [22:54:35]wFMCommunicate request_size=4 [22:54:35]MH_SAM_APDU [22:54:35]CAPDU: 80 0D 01 02 [22:54:35]Write to MH i2c: E2 08 00 93 1F 80 0D 01 02 00 00 00 00 2B [22:54:35]Write i2c OK [22:54:35]MH_I2C_Read... [22:54:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:54:35]Read from MH i2c: E2 [22:54:35]MH_I2C_Read... [22:54:35]Read from MH i2c: E2 03 00 [22:54:35]MH_I2C_Read... [22:54:35]Read from MH i2c: E2 03 00 93 1F 00 90 00 26 [22:54:35]RAPDU: 90 00 [22:54:35]wFMCommunicate OK [22:54:35]wFMCommunicate request_size=255 [22:54:35]MH_SAM_APDU [22:54: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 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 01 00 00 F4 03 04 00 2B 8A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D2 0F 01 00 35 04 06 00 30 [22:54:35]Write to MH i2c: E2 02 01 94 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 01 00 00 F4 03 04 00 2B 8A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D2 0F 01 00 35 04 06 00 30 00 00 7E [22:54:35]Write i2c OK [22:54:35]MH_I2C_Read... [22:54:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:54:35]Read from MH i2c: E2 [22:54:35]MH_I2C_Read... [22:54:35]Read from MH i2c: E2 03 00 [22:54:35]MH_I2C_Read... [22:54:35]Read from MH i2c: E2 03 00 94 1F 00 90 00 27 [22:54:35]RAPDU: 90 00 [22:54:35]wFMCommunicate OK [22:54:35]wFMCommunicate request_size=10 [22:54:35]MH_SAM_APDU [22:54:35]CAPDU: 80 0D 02 02 05 BD A6 49 04 B3 [22:54:35]Write to MH i2c: E2 0D 00 95 1F 80 0D 02 02 05 00 BD A6 49 04 B3 00 00 9B [22:54:35]Write i2c OK [22:54:35]MH_I2C_Read... [22:54:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:54:35]Read from MH i2c: E2 [22:54:35]MH_I2C_Read... [22:54:35]Read from MH i2c: E2 03 00 [22:54:35]MH_I2C_Read... [22:54:35]Read from MH i2c: E2 03 00 95 1F 00 90 00 28 [22:54:35]RAPDU: 90 00 [22:54:35]wFMCommunicate OK [22:54:35]wFMCommunicate request_size=4 [22:54:35]MH_SAM_APDU [22:54:35]CAPDU: 80 0D 03 02 [22:54:35]Write to MH i2c: E2 08 00 96 1F 80 0D 03 02 00 00 00 00 30 [22:54:35]Write i2c OK [22:54:35]MH_I2C_Read... [22:54:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:54:35]Read from MH i2c: E2 [22:54:35]MH_I2C_Read... [22:54:35]Read from MH i2c: E2 0B 00 [22:54:35]MH_I2C_Read... [22:54:35]Read from MH i2c: E2 0B 00 96 1F 00 FC 21 10 71 02 38 8A 06 90 00 99 [22:54:35]RAPDU: FC 21 10 71 02 38 8A 06 90 00 [22:54:35]wFMCommunicate OK [22:54:35]SAM_PROTO_SignData done [22:54:35]FM_MakeSignedData done [22:54:35]CreateOFDProtocolMessage [22:54:35]wFMCommunicate request_size=4 [22:54:35]MH_SAM_APDU [22:54:35]CAPDU: 80 11 00 00 [22:54:35]Write to MH i2c: E2 08 00 97 1F 80 11 00 00 00 00 00 00 30 [22:54:35]Write i2c OK [22:54:35]MH_I2C_Read... [22:54:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:54:35]Read from MH i2c: E2 [22:54:35]MH_I2C_Read... [22:54:35]Read from MH i2c: E2 17 00 [22:54:35]MH_I2C_Read... [22:54:35]Read from MH i2c: E2 17 00 97 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 82 [22:54:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:54:35]wFMCommunicate OK [22:54:35]CreateOFDProtocolMessage done [22:54:35]OFDSenderStorePacket 69586 [22:54:35]StoreOFDPacket docnum=69586 [22:54:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 3B 39 07 01 32 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 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 01 00 00 F4 03 04 00 2B 8A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D2 0F 01 00 35 04 06 00 30 BD A6 49 04 B3 FC 21 10 71 02 38 8A 06 [22:54:35]CheckFolder [22:54:35]dirname=/storage/ofd_packets [22:54:35]CheckFolder done [22:54:35]ProducePacketName [22:54:35]name=ofd_packets/00069586 [22:54:35]NVStorageSaveData ofd_packets/00069586 [22:54:35]File name is /storage/ofd_packets/00069586 [22:54:35]Write 301 bytes [22:54:35]NVStorageSaveData done [22:54:35]OFDSenderStorePacket done [22:54:35]KKMCreateOFDPacket done [22:54:35]NVStorageSaveData kkm_last_timestamp [22:54:35]File name is /storage/kkm_last_timestamp [22:54:35]Write 4 bytes [22:54:35]NVStorageSaveData done [22:54:35]ExternCall_PrintAddStr [22:54:35]wPrintStart [22:54:35]Write to MH i2c: 01 00 00 98 1F B7 [22:54:35]Write i2c OK [22:54:35]MH_I2C_Read... [22:54:35]Read from MH i2c: 01 [22:54:35]MH_I2C_Read... [22:54:35]Read from MH i2c: 01 07 00 [22:54:35]MH_I2C_Read... [22:54:35]Read from MH i2c: 01 07 00 98 1F 00 00 00 00 00 FF 0F CC [22:54:35]RasterBufferAndPrint [22:54:35]line Счет N : (1)2885325 [22:54:35]line ИНН: 02508201610067 [22:54:35]line Контрольно-Кассовый Чек [22:54:35]line ПРОДАЖА [22:54:35]line ТРК (МРК, ГНК) : 32 [22:54:35]line Товар: 2710124130 [22:54:35]line Аи-92-К-5 [22:54:35]line 6.730 * 66.90 [22:54:35]line = 450.24 [22:54:35]line НДС 12% НСП 1% [22:54:35]line > о реализуемом товаре [22:54:35]line ИТОГО: 450.24 [22:54:35]line НСП 1% : 3.98 [22:54:35]line НДС 12% : 47.81 [22:54:35]line Наличными: 0.00 [22:54:35]line Безнал.: 450.24 [22:54:35]line Место: АЗС № 85 "Партнер Нефть" [22:54:35]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [22:54:35]line СНО: Общий режим [22:54:35]line Чек 431 20.10.2024 22:54 [22:54:35]line Смена: 193 ФФД: 1.0 [22:54:35]line ЗНМ: 0300000167 [22:54:35]line РНМ: 0000000000156251 [22:54:35]line Версия ККМ: v1.0 [22:54:35]line Платежная система: Mbank [22:54:35]line ФМ: 0000000000963346 [22:54:35]line ФД: 69586 [22:54:35]line ФПД: 53591096755379 [22:54:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T225435&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69586&fm=53591096755379&tin=02508201610067®Number=0000000000156251&sum=45024 [22:54:35]written 0, free lines is 4095 [22:54:35]OFD Sender: Processing packet 69586 [packets to send 18, broken 17] [22:54:35]ProducePacketName [22:54:35]name=ofd_packets/00069586 [22:54:35]OFD Sender: To server: pG, [22:54:35]CommunicateWithHost lk.salyk.kg:30040 [22:54:35]ConnectInit lk.salyk.kg [22:54:36]Connected sock=11 [22:54:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 3B 39 07 01 32 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 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 01 00 00 F4 03 04 00 2B 8A 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D2 0F 01 00 35 04 06 00 30 BD A6 49 04 B3 FC 21 10 71 02 38 8A 06 [22:54:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 76 24 47 00 46 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D2 0F 01 00 F4 03 04 00 D0 33 15 67 B6 04 01 00 00 88 B5 C2 98 DB 8B 3F BF [22:54:36]CommunicateWithHost err = 0 [22:54:36]CheckOFDResponse [22:54:36]1017 (14) - 77093643461234 [22:54:36]1041 (16) - 0000000000963346 [22:54:36]1040 (4) - 69586 [22:54:36]1012 (4) - 20.10.2024 16:46 [22:54:36]1206 (1) - 0 [22:54:36]OFD Sender: Remove packet 69586 [22:54:36]ProducePacketName [22:54:36]name=ofd_packets/00069586 [22:54:36]NVStorageDeleteData [22:54:36]Write to MH i2c: 01 00 00 C1 1F E0 [22:54:36]Write i2c OK [22:54:36]MH_I2C_Read... [22:54:36]Read from MH i2c: 01 [22:54:36]MH_I2C_Read... [22:54:36]Read from MH i2c: 01 07 00 [22:54:36]MH_I2C_Read... [22:54:36]Read from MH i2c: 01 07 00 C1 1F 00 00 00 00 00 20 0D 14 [22:54:36]RasterBufferAndPrint [22:54:36]line [22:54:36]line [22:54:36]line [22:54:36]line [22:54:36]line [22:54:36]written 0, free lines is 3366 [22:54:36]MH_Cut [22:54:36]Write to MH i2c: D1 01 00 C8 1F 01 B9 [22:54:36]Write i2c OK [22:54:36]MH_I2C_Read... [22:54:36]Read from MH i2c: D1 [22:54:36]MH_I2C_Read... [22:54:36]Read from MH i2c: D1 01 00 [22:54:36]MH_I2C_Read... [22:54:36]Read from MH i2c: D1 01 00 C8 1F 00 B8 [22:54:36]Write to MH i2c: 01 00 00 C9 1F E8 [22:54:36]Write i2c OK [22:54:36]MH_I2C_Read... [22:54:36]OFD Sender: No OFD packet to send [22:54:37]*** Cut start [22:54:37]*** Partial cut [22:54:37]*** CUTSNS_PIN = 1 [22:54:37]*** CUTSNS_PIN = 0 [22:54:37]*** Brake cut motor [22:54:37]Read from MH i2c: 01 [22:54:37]MH_I2C_Read... [22:54:37]*** Stop cut motor [22:54:37]*** Cut end [22:54:37]Read from MH i2c: 01 07 00 [22:54:37]MH_I2C_Read... [22:54:37]Read from MH i2c: 01 07 00 C9 1F 00 00 00 00 00 FF 0F FD [22:54:37]process_action close_receipt done [22:54:37]requested_data is exist [22:54:37]produce_requested_data [22:54:37]requested_item fm.sn is exist - process it [22:54:37]wFMCommunicate request_size=4 [22:54:37]MH_SAM_APDU [22:54:37]CAPDU: 80 11 00 00 [22:54:37]Write to MH i2c: E2 08 00 CA 1F 80 11 00 00 00 00 00 00 63 [22:54:37]Write i2c OK [22:54:37]MH_I2C_Read... [22:54:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:54:37]Read from MH i2c: E2 [22:54:37]MH_I2C_Read... [22:54:37]Read from MH i2c: E2 17 00 [22:54:37]MH_I2C_Read... [22:54:37]Read from MH i2c: E2 17 00 CA 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B5 [22:54:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [22:54:37]wFMCommunicate OK [22:54:37]requested_item fd.num is exist - process it [22:54:37]SAM_PROTO_GetFieldsCounters [22:54:37]wFMCommunicate request_size=4 [22:54:37]MH_SAM_APDU [22:54:37]CAPDU: 80 13 00 00 [22:54:37]Write to MH i2c: E2 08 00 CB 1F 80 13 00 00 00 00 00 00 66 [22:54:37]Write i2c OK [22:54:37]MH_I2C_Read... [22:54:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:54:37]Read from MH i2c: E2 [22:54:37]MH_I2C_Read... [22:54:37]Read from MH i2c: E2 62 00 [22:54:37]MH_I2C_Read... [22:54:37]Read from MH i2c: E2 62 00 CB 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D2 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 AF 01 00 00 5E 04 04 00 AF 01 00 00 57 04 04 00 B0 01 00 00 19 04 04 00 00 00 00 00 90 00 34 [22:54:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D2 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 AF 01 00 00 5E 04 04 00 AF 01 00 00 57 04 04 00 B0 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:54:37]wFMCommunicate OK [22:54:37]SAM_PROTO_GetFieldsCounters done [22:54:37]requested_item shift.num is exist - process it [22:54:37]requested_item shift.opened is exist - process it [22:54:37]req_shift_opened [22:54:37]FM_GetShiftState [22:54:37]SAM_PROTO_GetShiftState [22:54:37]wFMCommunicate request_size=4 [22:54:37]MH_SAM_APDU [22:54:37]CAPDU: 80 13 01 00 [22:54:37]Write to MH i2c: E2 08 00 CC 1F 80 13 01 00 00 00 00 00 68 [22:54:37]Write i2c OK [22:54:37]MH_I2C_Read... [22:54:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:54:37]Read from MH i2c: E2 [22:54:37]MH_I2C_Read... [22:54:37]Read from MH i2c: E2 0E 00 [22:54:37]MH_I2C_Read... [22:54:37]Read from MH i2c: E2 0E 00 CC 1F 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 6E [22:54:37]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [22:54:37]wFMCommunicate OK [22:54:37]SAM_PROTO_GetShiftState done [22:54:37]FM_GetShiftState done [22:54:37]req_shift_opened done [22:54:37]requested_item shift.open_date is exist - process it [22:54:37]req_shift_open_date [22:54:37]req_shift_open_date done [22:54:37]produce_requested_data done [22:54:37]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69586,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [22:54:37]process_action_free close_receipt [22:54:37]json_value_free [22:54:37]json_value_free done [22:54:37]process_json_proto returns [22:54:37]Send response to host [22:54:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69586,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [22:54:37]free response buf [22:54:37]execute_script done [22:54:37]execute_script returns [22:54:37]free content buf [22:54:37]Sock 7.Close socket [22:54:37]Sock 7.Thread stoped [22:54:41]OFD Sender: No OFD packet to send [22:54:46]OFD Sender: No OFD packet to send [22:54:51]OFD Sender: No OFD packet to send [22:54:56]OFD Sender: No OFD packet to send [22:55:01]OFD Sender: No OFD packet to send [22:55:06]OFD Sender: No OFD packet to send [22:55:11]OFD Sender: No OFD packet to send [22:55:16]OFD Sender: No OFD packet to send [22:55:21]OFD Sender: No OFD packet to send [22:55:26]OFD Sender: No OFD packet to send [22:55:31]OFD Sender: No OFD packet to send [22:55:36]OFD Sender: No OFD packet to send [22:55:41]OFD Sender: No OFD packet to send [22:55:46]OFD Sender: No OFD packet to send [22:55:51]OFD Sender: No OFD packet to send [22:55:56]OFD Sender: No OFD packet to send [22:56:01]OFD Sender: No OFD packet to send [22:56:06]OFD Sender: No OFD packet to send [22:56:11]OFD Sender: No OFD packet to send [22:56:16]OFD Sender: No OFD packet to send [22:56:21]OFD Sender: No OFD packet to send [22:56:26]OFD Sender: No OFD packet to send [22:56:31]OFD Sender: No OFD packet to send [22:56:36]OFD Sender: No OFD packet to send [22:56:41]OFD Sender: No OFD packet to send [22:56:46]OFD Sender: No OFD packet to send [22:56:51]OFD Sender: No OFD packet to send [22:56:56]OFD Sender: No OFD packet to send [22:57:01]OFD Sender: No OFD packet to send [22:57:06]OFD Sender: No OFD packet to send [22:57:11]OFD Sender: No OFD packet to send [22:57:16]OFD Sender: No OFD packet to send [22:57:21]OFD Sender: No OFD packet to send [22:57:26]OFD Sender: No OFD packet to send [22:57:31]OFD Sender: No OFD packet to send [22:57:36]OFD Sender: No OFD packet to send [22:57:41]OFD Sender: No OFD packet to send [22:57:46]OFD Sender: No OFD packet to send [22:57:51]OFD Sender: No OFD packet to send [22:57:56]OFD Sender: No OFD packet to send [22:58:01]OFD Sender: No OFD packet to send [22:58:06]OFD Sender: No OFD packet to send [22:58:12]OFD Sender: No OFD packet to send [22:58:17]OFD Sender: No OFD packet to send [22:58:22]OFD Sender: No OFD packet to send [22:58:27]OFD Sender: No OFD packet to send [22:58:32]OFD Sender: No OFD packet to send [22:58:37]OFD Sender: No OFD packet to send [22:58:42]OFD Sender: No OFD packet to send [22:58:47]OFD Sender: No OFD packet to send [22:58:52]OFD Sender: No OFD packet to send [22:58:57]OFD Sender: No OFD packet to send [22:59:02]OFD Sender: No OFD packet to send [22:59:07]OFD Sender: No OFD packet to send [22:59:12]OFD Sender: No OFD packet to send [22:59:17]OFD Sender: No OFD packet to send [22:59:22]OFD Sender: No OFD packet to send [22:59:27]OFD Sender: No OFD packet to send [22:59:32]OFD Sender: No OFD packet to send [22:59:37]OFD Sender: No OFD packet to send [22:59:42]OFD Sender: No OFD packet to send [22:59:47]OFD Sender: No OFD packet to send [22:59:52]OFD Sender: No OFD packet to send [22:59:57]OFD Sender: No OFD packet to send [23:00:02]OFD Sender: No OFD packet to send [23:00:07]OFD Sender: No OFD packet to send [23:00:12]OFD Sender: No OFD packet to send [23:00:17]OFD Sender: No OFD packet to send [23:00:22]OFD Sender: No OFD packet to send [23:00:27]OFD Sender: No OFD packet to send [23:00:32]OFD Sender: No OFD packet to send [23:00:35]accept exits with 9 [23:00:35]New connection [23:00:35]New thread 3066797412 created [23:00:35]Thread 3066654052 joined [23:00:35]Waiting for new connection... [23:00:35] Sock 9.Parse request [23:00:35]Sock 9.Check first char [23:00:35]Sock 9.First char is OK [23:00:35]request: POST /json_proto HTTP/1.0 [23:00:35]Method: POST [23:00:35]URL: /json_proto [23:00:35]Method is POST - this is cgi request [23:00:35]url: /json_proto [23:00:35]query_string will be loaded in cgi processing [23:00:35]execute_cgi json_proto POST (null) [23:00:35]execute_cgi path=json_proto method=POST [23:00:35]POST find Content-Length [23:00:35]Host: 172.17.50.3:8080 [23:00:35]Content-Length: 978 [23:00:35]Content-Type: application/json [23:00:35] [23:00:35]POST finish read [23:00:35]Found Content-Length = 978 [23:00:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 53.850, "sum" : 4049.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 53.85 \u0441\u043E\u043C", "deposit" : 6500.00, "total" : 4049.00, "payments": [ { "type": 0, "sum" : 4049.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:00:35]execute_script... [23:00: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)2885326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 53.850, "sum" : 4049.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 85\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 53.85 \u0441\u043E\u043C", "deposit" : 6500.00, "total" : 4049.00, "payments": [ { "type": 0, "sum" : 4049.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:00:35]POST & json_proto [23:00:35]process_json_proto [23:00:35]json parsed OK: [23:00:35]protocol is kg_v1.0 [23:00:35]action value=close_receipt [23:00:35]process_action close_receipt [23:00:35]cmd_close_receipt [23:00:35]MH_GetDate [23:00:35]Write to MH i2c: F0 00 00 CD 1F DB [23:00:35]Write i2c OK [23:00:35]MH_I2C_Read... [23:00:35]Read from MH i2c: F0 [23:00:35]MH_I2C_Read... [23:00:35]Read from MH i2c: F0 09 00 [23:00:35]MH_I2C_Read... [23:00:35]Read from MH i2c: F0 09 00 CD 1F 00 95 8B 15 67 6B 98 1E 66 07 [23:00:35]GetLastDocTimeStamp 1729464875 [23:00:35]current date 1729465237 [23:00:35]FM_GetShiftState [23:00:35]SAM_PROTO_GetShiftState [23:00:35]wFMCommunicate request_size=4 [23:00:35]MH_SAM_APDU [23:00:35]CAPDU: 80 13 01 00 [23:00:35]Write to MH i2c: E2 08 00 CE 1F 80 13 01 00 00 00 00 00 6A [23:00:35]Write i2c OK [23:00:35]MH_I2C_Read... [23:00:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:35]Read from MH i2c: E2 [23:00:35]MH_I2C_Read... [23:00:35]Read from MH i2c: E2 0E 00 [23:00:35]MH_I2C_Read... [23:00:35]Read from MH i2c: E2 0E 00 CE 1F 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 70 [23:00:35]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [23:00:35]wFMCommunicate OK [23:00:35]SAM_PROTO_GetShiftState done [23:00:35]FM_GetShiftState done [23:00:35]opened in 1729383220 [23:00:35]opened+sec_in_day 1729469620 [23:00:35]quantity*price = 404952 [23:00:35]sum+1 = 404953 [23:00:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 4049.00 Внесено: 6500.00 СДАЧА: 2451.00 НСП 1% : 35.84 НДС 12% : 430.04 Наличными: 4049.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 432 20.10.2024 23:00 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Дисконтная программа ДТ номер 85 сэкономлено 53.85 сом ФМ: 0000000000963346 ФД: 69587 ФПД: 11879899410633 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T230037&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69587&fm=11879899410633&tin=02508201610067®Number=0000000000156251&sum=404900 [23:00:36]StoreToDocumentArchive [23:00:36]shift 193 fd 69587 [23:00:36]save to /storage/0193/doc_00069587 [23:00:36]save last doc name /storage/0193/doc_00069587 to /storage/kkm_last_doc_name [23:00:36]save OK [23:00:36]Clear old archive folders... [23:00:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:00:36]tlvbuf is 00F931B0 [23:00:36]SAM_PROTO_ClearQueue [23:00:36]wFMCommunicate request_size=4 [23:00:36]MH_SAM_APDU [23:00:36]CAPDU: 80 09 00 00 [23:00:36]Write to MH i2c: E2 08 00 DB 1F 80 09 00 00 00 00 00 00 6C [23:00:36]Write i2c OK [23:00:36]MH_I2C_Read... [23:00:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:00:37]Read from MH i2c: E2 [23:00:37]MH_I2C_Read... [23:00:37]Read from MH i2c: E2 03 00 [23:00:37]MH_I2C_Read... [23:00:37]Read from MH i2c: E2 03 00 DB 1F 00 90 00 6E [23:00:37]RAPDU: 90 00 [23:00:37]wFMCommunicate OK [23:00:37]SAM_PROTO_ClearQueue done [23:00:37]KKMCreateOFDPacket [23:00:37]OFDProtocolAddRootSTLVToBuf [23:00:37]FM_MakeSignedData [23:00:37]FM_MakeSignedData [23:00:37]SAM_PROTO_SignData [23:00:37]wFMCommunicate request_size=4 [23:00:37]MH_SAM_APDU [23:00:37]CAPDU: 80 0D 01 02 [23:00:37]Write to MH i2c: E2 08 00 DC 1F 80 0D 01 02 00 00 00 00 74 [23:00:37]Write i2c OK [23:00:37]MH_I2C_Read... [23:00:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:00:37]Read from MH i2c: E2 [23:00:37]MH_I2C_Read... [23:00:37]Read from MH i2c: E2 03 00 [23:00:37]MH_I2C_Read... [23:00:37]Read from MH i2c: E2 03 00 DC 1F 00 90 00 6F [23:00:37]RAPDU: 90 00 [23:00:37]wFMCommunicate OK [23:00:37]wFMCommunicate request_size=255 [23:00:37]MH_SAM_APDU [23:00: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 5A D2 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 D8 2D 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 2D 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC A7 00 00 00 00 07 04 06 00 A4 2D 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 01 00 00 F4 03 04 00 95 8B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D3 0F 01 00 35 04 06 00 0A CE 01 2F [23:00:37]Write to MH i2c: E2 02 01 DD 1F 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 5A D2 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 D8 2D 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 2D 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC A7 00 00 00 00 07 04 06 00 A4 2D 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 01 00 00 F4 03 04 00 95 8B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D3 0F 01 00 35 04 06 00 0A CE 01 2F 00 00 D7 [23:00:37]Write i2c OK [23:00:37]MH_I2C_Read... [23:00:37]OFD Sender: No OFD packet to send [23:00:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:37]Read from MH i2c: E2 [23:00:37]MH_I2C_Read... [23:00:37]Read from MH i2c: E2 03 00 [23:00:37]MH_I2C_Read... [23:00:37]Read from MH i2c: E2 03 00 DD 1F 00 90 00 70 [23:00:37]RAPDU: 90 00 [23:00:37]wFMCommunicate OK [23:00:37]wFMCommunicate request_size=7 [23:00:37]MH_SAM_APDU [23:00:37]CAPDU: 80 0D 02 02 02 30 C9 [23:00:37]Write to MH i2c: E2 0A 00 DE 1F 80 0D 02 02 02 00 30 C9 00 00 74 [23:00:37]Write i2c OK [23:00:37]MH_I2C_Read... [23:00:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:37]Read from MH i2c: E2 [23:00:37]MH_I2C_Read... [23:00:37]Read from MH i2c: E2 03 00 [23:00:37]MH_I2C_Read... [23:00:37]Read from MH i2c: E2 03 00 DE 1F 00 90 00 71 [23:00:37]RAPDU: 90 00 [23:00:37]wFMCommunicate OK [23:00:37]wFMCommunicate request_size=4 [23:00:37]MH_SAM_APDU [23:00:37]CAPDU: 80 0D 03 02 [23:00:37]Write to MH i2c: E2 08 00 DF 1F 80 0D 03 02 00 00 00 00 79 [23:00:37]Write i2c OK [23:00:37]MH_I2C_Read... [23:00:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:00:37]Read from MH i2c: E2 [23:00:37]MH_I2C_Read... [23:00:37]Read from MH i2c: E2 0B 00 [23:00:37]MH_I2C_Read... [23:00:37]Read from MH i2c: E2 0B 00 DF 1F 00 53 23 D5 04 63 45 78 84 90 00 6D [23:00:37]RAPDU: 53 23 D5 04 63 45 78 84 90 00 [23:00:37]wFMCommunicate OK [23:00:37]SAM_PROTO_SignData done [23:00:37]FM_MakeSignedData done [23:00:37]CreateOFDProtocolMessage [23:00:37]wFMCommunicate request_size=4 [23:00:37]MH_SAM_APDU [23:00:37]CAPDU: 80 11 00 00 [23:00:37]Write to MH i2c: E2 08 00 E0 1F 80 11 00 00 00 00 00 00 79 [23:00:37]Write i2c OK [23:00:37]MH_I2C_Read... [23:00:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:37]Read from MH i2c: E2 [23:00:37]MH_I2C_Read... [23:00:37]Read from MH i2c: E2 17 00 [23:00:37]MH_I2C_Read... [23:00:37]Read from MH i2c: E2 17 00 E0 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CB [23:00:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:00:37]wFMCommunicate OK [23:00:37]CreateOFDProtocolMessage done [23:00:37]OFDSenderStorePacket 69587 [23:00:37]StoreOFDPacket docnum=69587 [23:00:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 68 8D 04 01 20 B6 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 5A D2 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 D8 2D 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 2D 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC A7 00 00 00 00 07 04 06 00 A4 2D 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 01 00 00 F4 03 04 00 95 8B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D3 0F 01 00 35 04 06 00 0A CE 01 2F 30 C9 53 23 D5 04 63 45 78 84 [23:00:37]CheckFolder [23:00:37]dirname=/storage/ofd_packets [23:00:37]CheckFolder done [23:00:37]ProducePacketName [23:00:37]name=ofd_packets/00069587 [23:00:37]NVStorageSaveData ofd_packets/00069587 [23:00:37]File name is /storage/ofd_packets/00069587 [23:00:37]Write 298 bytes [23:00:37]NVStorageSaveData done [23:00:37]OFDSenderStorePacket done [23:00:37]KKMCreateOFDPacket done [23:00:37]NVStorageSaveData kkm_last_timestamp [23:00:37]File name is /storage/kkm_last_timestamp [23:00:37]Write 4 bytes [23:00:37]NVStorageSaveData done [23:00:37]ExternCall_PrintAddStr [23:00:37]wPrintStart [23:00:37]Write to MH i2c: 01 00 00 E1 1F 00 [23:00:37]Write i2c OK [23:00:37]MH_I2C_Read... [23:00:37]Read from MH i2c: 01 [23:00:37]MH_I2C_Read... [23:00:37]Read from MH i2c: 01 07 00 [23:00:37]MH_I2C_Read... [23:00:37]Read from MH i2c: 01 07 00 E1 1F 00 00 00 00 00 FF 0F 15 [23:00:37]RasterBufferAndPrint [23:00:37]line Счет N : (1)2885326 [23:00:37]line ИНН: 02508201610067 [23:00:37]line Контрольно-Кассовый Чек [23:00:37]line ПРОДАЖА [23:00:37]line ТРК (МРК, ГНК) : 61 [23:00:37]line Товар: 2710194210 [23:00:37]line ДТ-К-5 [23:00:37]line 53.850 * 75.20 [23:00:37]line = 4049.52 [23:00:37]line НДС 12% НСП 1% [23:00:37]line > о реализуемом товаре [23:00:37]line ОКРУГЛЕНИЕ: -0.52 [23:00:37]line ИТОГО: 4049.00 [23:00:37]line Внесено: 6500.00 [23:00:37]line СДАЧА: 2451.00 [23:00:37]line НСП 1% : 35.84 [23:00:37]line НДС 12% : 430.04 [23:00:37]line Наличными: 4049.00 [23:00:37]line Безнал.: 0.00 [23:00:37]line Место: АЗС № 85 "Партнер Нефть" [23:00:37]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:00:37]line СНО: Общий режим [23:00:37]line Чек 432 20.10.2024 23:00 [23:00:37]line Смена: 193 ФФД: 1.0 [23:00:37]line ЗНМ: 0300000167 [23:00:37]line РНМ: 0000000000156251 [23:00:37]line Версия ККМ: v1.0 [23:00:37]line [23:00:37]line Дисконтная программа [23:00:37]line ДТ [23:00:37]line номер 85 [23:00:37]line сэкономлено 53.85 сом [23:00:37]line ФМ: 0000000000963346 [23:00:37]line ФД: 69587 [23:00:37]line ФПД: 11879899410633 [23:00:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T230037&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69587&fm=11879899410633&tin=02508201610067®Number=0000000000156251&sum=404900 [23:00:37]OFD Sender: Processing packet 69587 [packets to send 18, broken 17] [23:00:37]ProducePacketName [23:00:37]name=ofd_packets/00069587 [23:00:37]OFD Sender: To server: pG, [23:00:37]CommunicateWithHost lk.salyk.kg:30040 [23:00:37]ConnectInit lk.salyk.kg [23:00:37]written 0, free lines is 4095 [23:00:37]Connected sock=10 [23:00:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 68 8D 04 01 20 B6 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 5A D2 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 D8 2D 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 2D 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC A7 00 00 00 00 07 04 06 00 A4 2D 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 01 00 00 F4 03 04 00 95 8B 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D3 0F 01 00 35 04 06 00 0A CE 01 2F 30 C9 53 23 D5 04 63 45 78 84 [23:00:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 CB 3C 47 00 B3 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D3 0F 01 00 F4 03 04 00 3A 35 15 67 B6 04 01 00 00 6F 92 62 AE B9 36 20 3E [23:00:38]CommunicateWithHost err = 0 [23:00:38]CheckOFDResponse [23:00:38]1017 (14) - 77093643461234 [23:00:38]1041 (16) - 0000000000963346 [23:00:38]1040 (4) - 69587 [23:00:38]1012 (4) - 20.10.2024 16:52 [23:00:38]1206 (1) - 0 [23:00:38]OFD Sender: Remove packet 69587 [23:00:38]ProducePacketName [23:00:38]name=ofd_packets/00069587 [23:00:38]NVStorageDeleteData [23:00:38]Write to MH i2c: 01 00 00 11 20 31 [23:00:38]Write i2c OK [23:00:38]MH_I2C_Read... [23:00:38]Read from MH i2c: 01 [23:00:38]MH_I2C_Read... [23:00:38]Read from MH i2c: 01 07 00 [23:00:38]MH_I2C_Read... [23:00:38]Read from MH i2c: 01 07 00 11 20 00 00 00 00 00 9B 0C DF [23:00:38]RasterBufferAndPrint [23:00:38]line [23:00:38]line [23:00:38]line [23:00:38]line [23:00:38]line [23:00:38]written 0, free lines is 3233 [23:00:38]MH_Cut [23:00:38]Write to MH i2c: D1 01 00 18 20 01 0A [23:00:38]Write i2c OK [23:00:38]MH_I2C_Read... [23:00:38]Read from MH i2c: D1 [23:00:38]MH_I2C_Read... [23:00:38]Read from MH i2c: D1 01 00 [23:00:38]MH_I2C_Read... [23:00:38]Read from MH i2c: D1 01 00 18 20 00 09 [23:00:38]Write to MH i2c: 01 00 00 19 20 39 [23:00:38]Write i2c OK [23:00:38]MH_I2C_Read... [23:00:38]OFD Sender: No OFD packet to send [23:00:39]*** Cut start [23:00:39]*** Partial cut [23:00:39]*** CUTSNS_PIN = 1 [23:00:39]*** CUTSNS_PIN = 0 [23:00:39]*** Brake cut motor [23:00:39]Read from MH i2c: 01 [23:00:39]MH_I2C_Read... [23:00:39]*** Stop cut motor [23:00:39]*** Cut end [23:00:39]Read from MH i2c: 01 07 00 [23:00:39]MH_I2C_Read... [23:00:39]Read from MH i2c: 01 07 00 19 20 00 00 00 00 00 FF 0F 4E [23:00:39]process_action close_receipt done [23:00:39]requested_data is exist [23:00:39]produce_requested_data [23:00:39]requested_item fm.sn is exist - process it [23:00:39]wFMCommunicate request_size=4 [23:00:39]MH_SAM_APDU [23:00:39]CAPDU: 80 11 00 00 [23:00:39]Write to MH i2c: E2 08 00 1A 20 80 11 00 00 00 00 00 00 B4 [23:00:39]Write i2c OK [23:00:39]MH_I2C_Read... [23:00:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:39]Read from MH i2c: E2 [23:00:39]MH_I2C_Read... [23:00:39]Read from MH i2c: E2 17 00 [23:00:39]MH_I2C_Read... [23:00:39]Read from MH i2c: E2 17 00 1A 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 06 [23:00:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:00:39]wFMCommunicate OK [23:00:39]requested_item fd.num is exist - process it [23:00:39]SAM_PROTO_GetFieldsCounters [23:00:39]wFMCommunicate request_size=4 [23:00:39]MH_SAM_APDU [23:00:39]CAPDU: 80 13 00 00 [23:00:39]Write to MH i2c: E2 08 00 1B 20 80 13 00 00 00 00 00 00 B7 [23:00:39]Write i2c OK [23:00:39]MH_I2C_Read... [23:00:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:00:39]Read from MH i2c: E2 [23:00:39]MH_I2C_Read... [23:00:39]Read from MH i2c: E2 62 00 [23:00:39]MH_I2C_Read... [23:00:39]Read from MH i2c: E2 62 00 1B 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D3 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 B0 01 00 00 5E 04 04 00 B0 01 00 00 57 04 04 00 B1 01 00 00 19 04 04 00 00 00 00 00 90 00 89 [23:00:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D3 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 B0 01 00 00 5E 04 04 00 B0 01 00 00 57 04 04 00 B1 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:00:39]wFMCommunicate OK [23:00:39]SAM_PROTO_GetFieldsCounters done [23:00:39]requested_item shift.num is exist - process it [23:00:39]requested_item shift.opened is exist - process it [23:00:39]req_shift_opened [23:00:39]FM_GetShiftState [23:00:39]SAM_PROTO_GetShiftState [23:00:39]wFMCommunicate request_size=4 [23:00:39]MH_SAM_APDU [23:00:39]CAPDU: 80 13 01 00 [23:00:39]Write to MH i2c: E2 08 00 1C 20 80 13 01 00 00 00 00 00 B9 [23:00:39]Write i2c OK [23:00:39]MH_I2C_Read... [23:00:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:39]Read from MH i2c: E2 [23:00:39]MH_I2C_Read... [23:00:39]Read from MH i2c: E2 0E 00 [23:00:39]MH_I2C_Read... [23:00:39]Read from MH i2c: E2 0E 00 1C 20 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 BF [23:00:39]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [23:00:39]wFMCommunicate OK [23:00:39]SAM_PROTO_GetShiftState done [23:00:39]FM_GetShiftState done [23:00:39]req_shift_opened done [23:00:39]requested_item shift.open_date is exist - process it [23:00:39]req_shift_open_date [23:00:39]req_shift_open_date done [23:00:39]produce_requested_data done [23:00:39]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69587,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [23:00:39]process_action_free close_receipt [23:00:39]json_value_free [23:00:39]json_value_free done [23:00:39]process_json_proto returns [23:00:39]Send response to host [23:00:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69587,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [23:00:39]free response buf [23:00:39]execute_script done [23:00:39]execute_script returns [23:00:39]free content buf [23:00:39]Sock 9.Close socket [23:00:39]Sock 9.Thread stoped [23:00:43]OFD Sender: No OFD packet to send [23:00:48]OFD Sender: No OFD packet to send [23:00:53]OFD Sender: No OFD packet to send [23:00:58]OFD Sender: No OFD packet to send [23:01:03]OFD Sender: No OFD packet to send [23:01:08]OFD Sender: No OFD packet to send [23:01:13]OFD Sender: No OFD packet to send [23:01:18]OFD Sender: No OFD packet to send [23:01:23]OFD Sender: No OFD packet to send [23:01:28]OFD Sender: No OFD packet to send [23:01:33]OFD Sender: No OFD packet to send [23:01:38]OFD Sender: No OFD packet to send [23:01:43]OFD Sender: No OFD packet to send [23:01:48]OFD Sender: No OFD packet to send [23:01:53]OFD Sender: No OFD packet to send [23:01:58]OFD Sender: No OFD packet to send [23:02:03]OFD Sender: No OFD packet to send [23:02:08]OFD Sender: No OFD packet to send [23:02:13]OFD Sender: No OFD packet to send [23:02:18]OFD Sender: No OFD packet to send [23:02:23]OFD Sender: No OFD packet to send [23:02:28]OFD Sender: No OFD packet to send [23:02:33]OFD Sender: No OFD packet to send [23:02:38]OFD Sender: No OFD packet to send [23:02:43]OFD Sender: No OFD packet to send [23:02:48]OFD Sender: No OFD packet to send [23:02:53]OFD Sender: No OFD packet to send [23:02:58]OFD Sender: No OFD packet to send [23:03:03]OFD Sender: No OFD packet to send [23:03:08]OFD Sender: No OFD packet to send [23:03:13]OFD Sender: No OFD packet to send [23:03:18]OFD Sender: No OFD packet to send [23:03:23]OFD Sender: No OFD packet to send [23:03:28]OFD Sender: No OFD packet to send [23:03:33]OFD Sender: No OFD packet to send [23:03:35]accept exits with 7 [23:03:35]New connection [23:03:35]New thread 3066654052 created [23:03:35]Thread 3066797412 joined [23:03:35]Waiting for new connection... [23:03:35] Sock 7.Parse request [23:03:35]Sock 7.Check first char [23:03:35]Sock 7.First char is OK [23:03:35]request: POST /json_proto HTTP/1.0 [23:03:35]Method: POST [23:03:35]URL: /json_proto [23:03:35]Method is POST - this is cgi request [23:03:35]url: /json_proto [23:03:35]query_string will be loaded in cgi processing [23:03:35]execute_cgi json_proto POST (null) [23:03:35]execute_cgi path=json_proto method=POST [23:03:35]POST find Content-Length [23:03:35]Host: 172.17.50.3:8080 [23:03:35]Content-Length: 689 [23:03:35]Content-Type: application/json [23:03:35] [23:03:35]POST finish read [23:03:35]Found Content-Length = 689 [23:03:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 31.750, "sum" : 2451.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2451.00, "total" : 2451.00, "payments": [ { "type": 0, "sum" : 2451.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:03:35]execute_script... [23:03: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)2885328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 31.750, "sum" : 2451.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2451.00, "total" : 2451.00, "payments": [ { "type": 0, "sum" : 2451.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:03:35]POST & json_proto [23:03:35]process_json_proto [23:03:35]json parsed OK: [23:03:35]protocol is kg_v1.0 [23:03:35]action value=close_receipt [23:03:35]process_action close_receipt [23:03:35]cmd_close_receipt [23:03:35]MH_GetDate [23:03:35]Write to MH i2c: F0 00 00 1D 20 2C [23:03:35]Write i2c OK [23:03:35]MH_I2C_Read... [23:03:35]Read from MH i2c: F0 [23:03:35]MH_I2C_Read... [23:03:35]Read from MH i2c: F0 09 00 [23:03:35]MH_I2C_Read... [23:03:35]Read from MH i2c: F0 09 00 1D 20 00 48 8C 15 67 6B 98 1E 66 0C [23:03:35]GetLastDocTimeStamp 1729465237 [23:03:35]current date 1729465416 [23:03:35]FM_GetShiftState [23:03:35]SAM_PROTO_GetShiftState [23:03:35]wFMCommunicate request_size=4 [23:03:35]MH_SAM_APDU [23:03:35]CAPDU: 80 13 01 00 [23:03:35]Write to MH i2c: E2 08 00 1E 20 80 13 01 00 00 00 00 00 BB [23:03:35]Write i2c OK [23:03:35]MH_I2C_Read... [23:03:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:03:35]Read from MH i2c: E2 [23:03:35]MH_I2C_Read... [23:03:35]Read from MH i2c: E2 0E 00 [23:03:35]MH_I2C_Read... [23:03:35]Read from MH i2c: E2 0E 00 1E 20 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 C1 [23:03:35]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [23:03:35]wFMCommunicate OK [23:03:35]SAM_PROTO_GetShiftState done [23:03:35]FM_GetShiftState done [23:03:35]opened in 1729383220 [23:03:35]opened+sec_in_day 1729469620 [23:03:35]quantity*price = 245110 [23:03:35]sum+1 = 245111 [23:03:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 2451.00 Внесено: 2451.00 СДАЧА: 0.00 НСП 1% : 21.69 НДС 12% : 260.29 Наличными: 2451.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 433 20.10.2024 23:03 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69588 ФПД: 111869296546724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T230336&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69588&fm=111869296546724&tin=02508201610067®Number=0000000000156251&sum=245100 [23:03:36]StoreToDocumentArchive [23:03:36]shift 193 fd 69588 [23:03:36]save to /storage/0193/doc_00069588 [23:03:36]save last doc name /storage/0193/doc_00069588 to /storage/kkm_last_doc_name [23:03:36]save OK [23:03:36]Clear old archive folders... [23:03:36]ProcessDocumentItem done err = 0, tmpTLVsize=257 [23:03:36]tlvbuf is 00F66C40 [23:03:36]SAM_PROTO_ClearQueue [23:03:36]wFMCommunicate request_size=4 [23:03:36]MH_SAM_APDU [23:03:36]CAPDU: 80 09 00 00 [23:03:36]Write to MH i2c: E2 08 00 2B 20 80 09 00 00 00 00 00 00 BD [23:03:36]Write i2c OK [23:03:36]MH_I2C_Read... [23:03:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:03:36]Read from MH i2c: E2 [23:03:36]MH_I2C_Read... [23:03:36]Read from MH i2c: E2 03 00 [23:03:36]MH_I2C_Read... [23:03:36]Read from MH i2c: E2 03 00 2B 20 00 90 00 BF [23:03:36]RAPDU: 90 00 [23:03:36]wFMCommunicate OK [23:03:36]SAM_PROTO_ClearQueue done [23:03:36]KKMCreateOFDPacket [23:03:36]OFDProtocolAddRootSTLVToBuf [23:03:36]FM_MakeSignedData [23:03:36]FM_MakeSignedData [23:03:36]SAM_PROTO_SignData [23:03:36]wFMCommunicate request_size=4 [23:03:36]MH_SAM_APDU [23:03:36]CAPDU: 80 0D 01 02 [23:03:36]Write to MH i2c: E2 08 00 2C 20 80 0D 01 02 00 00 00 00 C5 [23:03:36]Write i2c OK [23:03:36]MH_I2C_Read... [23:03:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:03:36]Read from MH i2c: E2 [23:03:36]MH_I2C_Read... [23:03:36]Read from MH i2c: E2 03 00 [23:03:36]MH_I2C_Read... [23:03:36]Read from MH i2c: E2 03 00 2C 20 00 90 00 C0 [23:03:36]RAPDU: 90 00 [23:03:36]wFMCommunicate OK [23:03:36]wFMCommunicate request_size=255 [23:03:36]MH_SAM_APDU [23:03:36]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 06 7C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 76 BD 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C BD 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 65 00 00 00 00 07 04 06 00 6C BD 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 01 00 00 F4 03 04 00 48 8C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D4 0F 01 [23:03:36]Write to MH i2c: E2 02 01 2D 20 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 06 7C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 76 BD 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C BD 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 65 00 00 00 00 07 04 06 00 6C BD 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 01 00 00 F4 03 04 00 48 8C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D4 0F 01 00 00 C5 [23:03:36]Write i2c OK [23:03:36]MH_I2C_Read... [23:03:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:03:36]Read from MH i2c: E2 [23:03:36]MH_I2C_Read... [23:03:36]Read from MH i2c: E2 03 00 [23:03:36]MH_I2C_Read... [23:03:36]Read from MH i2c: E2 03 00 2D 20 00 90 00 C1 [23:03:36]RAPDU: 90 00 [23:03:36]wFMCommunicate OK [23:03:36]wFMCommunicate request_size=16 [23:03:36]MH_SAM_APDU [23:03:36]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 65 BE 99 AE 93 A4 [23:03:36]Write to MH i2c: E2 13 00 2E 20 80 0D 02 02 0B 00 00 35 04 06 00 65 BE 99 AE 93 A4 00 00 BE [23:03:36]Write i2c OK [23:03:36]MH_I2C_Read... [23:03:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:03:36]Read from MH i2c: E2 [23:03:36]MH_I2C_Read... [23:03:36]Read from MH i2c: E2 03 00 [23:03:36]MH_I2C_Read... [23:03:36]Read from MH i2c: E2 03 00 2E 20 00 90 00 C2 [23:03:36]RAPDU: 90 00 [23:03:36]wFMCommunicate OK [23:03:36]wFMCommunicate request_size=4 [23:03:36]MH_SAM_APDU [23:03:36]CAPDU: 80 0D 03 02 [23:03:36]Write to MH i2c: E2 08 00 2F 20 80 0D 03 02 00 00 00 00 CA [23:03:36]Write i2c OK [23:03:36]MH_I2C_Read... [23:03:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:03:36]Read from MH i2c: E2 [23:03:36]MH_I2C_Read... [23:03:36]Read from MH i2c: E2 0B 00 [23:03:36]MH_I2C_Read... [23:03:36]Read from MH i2c: E2 0B 00 2F 20 00 F2 13 3C EB 46 04 47 FA 90 00 82 [23:03:36]RAPDU: F2 13 3C EB 46 04 47 FA 90 00 [23:03:36]wFMCommunicate OK [23:03:36]SAM_PROTO_SignData done [23:03:36]FM_MakeSignedData done [23:03:36]CreateOFDProtocolMessage [23:03:36]wFMCommunicate request_size=4 [23:03:36]MH_SAM_APDU [23:03:36]CAPDU: 80 11 00 00 [23:03:36]Write to MH i2c: E2 08 00 30 20 80 11 00 00 00 00 00 00 CA [23:03:36]Write i2c OK [23:03:36]MH_I2C_Read... [23:03:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:03:36]Read from MH i2c: E2 [23:03:36]MH_I2C_Read... [23:03:36]Read from MH i2c: E2 17 00 [23:03:36]MH_I2C_Read... [23:03:36]Read from MH i2c: E2 17 00 30 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1C [23:03:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:03:36]wFMCommunicate OK [23:03:36]CreateOFDProtocolMessage done [23:03:36]OFDSenderStorePacket 69588 [23:03:36]StoreOFDPacket docnum=69588 [23:03:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 6B AE 0D 01 8C E6 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 06 7C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 76 BD 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C BD 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 65 00 00 00 00 07 04 06 00 6C BD 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 01 00 00 F4 03 04 00 48 8C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D4 0F 01 00 35 04 06 00 65 BE 99 AE 93 A4 F2 13 3C EB 46 04 47 FA [23:03:36]CheckFolder [23:03:36]dirname=/storage/ofd_packets [23:03:36]CheckFolder done [23:03:36]ProducePacketName [23:03:36]name=ofd_packets/00069588 [23:03:36]NVStorageSaveData ofd_packets/00069588 [23:03:36]File name is /storage/ofd_packets/00069588 [23:03:36]Write 307 bytes [23:03:36]NVStorageSaveData done [23:03:36]OFDSenderStorePacket done [23:03:36]KKMCreateOFDPacket done [23:03:36]NVStorageSaveData kkm_last_timestamp [23:03:36]File name is /storage/kkm_last_timestamp [23:03:36]Write 4 bytes [23:03:36]NVStorageSaveData done [23:03:36]OFD Sender: Processing packet 69588 [packets to send 18, broken 17] [23:03:36]ProducePacketName [23:03:36]name=ofd_packets/00069588 [23:03:36]OFD Sender: To server: pG, [23:03:36]CommunicateWithHost lk.salyk.kg:30040 [23:03:36]ConnectInit lk.salyk.kg [23:03:36]ExternCall_PrintAddStr [23:03:36]wPrintStart [23:03:36]Write to MH i2c: 01 00 00 31 20 51 [23:03:36]Write i2c OK [23:03:36]MH_I2C_Read... [23:03:36]Read from MH i2c: 01 [23:03:36]MH_I2C_Read... [23:03:36]Read from MH i2c: 01 07 00 [23:03:36]MH_I2C_Read... [23:03:36]Read from MH i2c: 01 07 00 31 20 00 00 00 00 00 FF 0F 66 [23:03:36]RasterBufferAndPrint [23:03:36]line Счет N : (1)2885328 [23:03:36]line ИНН: 02508201610067 [23:03:36]line Контрольно-Кассовый Чек [23:03:36]line ПРОДАЖА [23:03:36]line ТРК (МРК, ГНК) : 21 [23:03:36]line Товар: 2710194240 [23:03:36]line D-ENERGY Дт-К-2 [23:03:36]line 31.750 * 77.20 [23:03:36]line = 2451.10 [23:03:36]line НДС 12% НСП 1% [23:03:36]line > о реализуемом товаре [23:03:36]line ОКРУГЛЕНИЕ: -0.10 [23:03:36]line ИТОГО: 2451.00 [23:03:36]line Внесено: 2451.00 [23:03:36]line СДАЧА: 0.00 [23:03:36]line НСП 1% : 21.69 [23:03:36]line НДС 12% : 260.29 [23:03:36]line Наличными: 2451.00 [23:03:36]line Безнал.: 0.00 [23:03:36]line Место: АЗС № 85 "Партнер Нефть" [23:03:36]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:03:36]line СНО: Общий режим [23:03:36]line Чек 433 20.10.2024 23:03 [23:03:37]line Смена: 193 ФФД: 1.0 [23:03:37]line ЗНМ: 0300000167 [23:03:37]line РНМ: 0000000000156251 [23:03:37]line Версия ККМ: v1.0 [23:03:37]line ФМ: 0000000000963346 [23:03:37]line ФД: 69588 [23:03:37]line ФПД: 111869296546724 [23:03:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T230336&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69588&fm=111869296546724&tin=02508201610067®Number=0000000000156251&sum=245100 [23:03:37]Connected sock=11 [23:03:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 6B AE 0D 01 8C E6 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 06 7C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 76 BD 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C BD 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 65 00 00 00 00 07 04 06 00 6C BD 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 01 00 00 F4 03 04 00 48 8C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D4 0F 01 00 35 04 06 00 65 BE 99 AE 93 A4 F2 13 3C EB 46 04 47 FA [23:03:37]written 0, free lines is 4095 [23:03:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 BB 43 47 00 AC DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D4 0F 01 00 F4 03 04 00 EE 35 15 67 B6 04 01 00 00 E4 FE C6 44 A2 36 B6 C7 [23:03:37]CommunicateWithHost err = 0 [23:03:37]CheckOFDResponse [23:03:37]1017 (14) - 77093643461234 [23:03:37]1041 (16) - 0000000000963346 [23:03:37]1040 (4) - 69588 [23:03:37]1012 (4) - 20.10.2024 16:55 [23:03:37]1206 (1) - 0 [23:03:37]OFD Sender: Remove packet 69588 [23:03:37]ProducePacketName [23:03:37]name=ofd_packets/00069588 [23:03:37]NVStorageDeleteData [23:03:37]Write to MH i2c: 01 00 00 5C 20 7C [23:03:37]Write i2c OK [23:03:37]MH_I2C_Read... [23:03:37]Read from MH i2c: 01 [23:03:37]MH_I2C_Read... [23:03:37]Read from MH i2c: 01 07 00 [23:03:37]MH_I2C_Read... [23:03:37]Read from MH i2c: 01 07 00 5C 20 00 00 00 00 00 F5 0C 84 [23:03:37]RasterBufferAndPrint [23:03:37]line [23:03:37]line [23:03:37]line [23:03:37]line [23:03:37]line [23:03:37]written 0, free lines is 3327 [23:03:37]MH_Cut [23:03:37]Write to MH i2c: D1 01 00 63 20 01 55 [23:03:37]Write i2c OK [23:03:37]MH_I2C_Read... [23:03:37]Read from MH i2c: D1 [23:03:37]MH_I2C_Read... [23:03:37]Read from MH i2c: D1 01 00 [23:03:37]MH_I2C_Read... [23:03:37]Read from MH i2c: D1 01 00 63 20 00 54 [23:03:37]Write to MH i2c: 01 00 00 64 20 84 [23:03:37]Write i2c OK [23:03:37]MH_I2C_Read... [23:03:37]OFD Sender: No OFD packet to send [23:03:38]*** Cut start [23:03:38]*** Partial cut [23:03:38]*** CUTSNS_PIN = 1 [23:03:38]*** CUTSNS_PIN = 0 [23:03:38]*** Brake cut motor [23:03:38]Read from MH i2c: 01 [23:03:38]MH_I2C_Read... [23:03:38]*** Stop cut motor [23:03:38]*** Cut end [23:03:38]Read from MH i2c: 01 07 00 [23:03:38]MH_I2C_Read... [23:03:38]Read from MH i2c: 01 07 00 64 20 00 00 00 00 00 FF 0F 99 [23:03:38]process_action close_receipt done [23:03:38]requested_data is exist [23:03:38]produce_requested_data [23:03:38]requested_item fm.sn is exist - process it [23:03:38]wFMCommunicate request_size=4 [23:03:38]MH_SAM_APDU [23:03:38]CAPDU: 80 11 00 00 [23:03:38]Write to MH i2c: E2 08 00 65 20 80 11 00 00 00 00 00 00 FF [23:03:38]Write i2c OK [23:03:38]MH_I2C_Read... [23:03:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:03:39]Read from MH i2c: E2 [23:03:39]MH_I2C_Read... [23:03:39]Read from MH i2c: E2 17 00 [23:03:39]MH_I2C_Read... [23:03:39]Read from MH i2c: E2 17 00 65 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 51 [23:03:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:03:39]wFMCommunicate OK [23:03:39]requested_item fd.num is exist - process it [23:03:39]SAM_PROTO_GetFieldsCounters [23:03:39]wFMCommunicate request_size=4 [23:03:39]MH_SAM_APDU [23:03:39]CAPDU: 80 13 00 00 [23:03:39]Write to MH i2c: E2 08 00 66 20 80 13 00 00 00 00 00 00 02 [23:03:39]Write i2c OK [23:03:39]MH_I2C_Read... [23:03:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:03:39]Read from MH i2c: E2 [23:03:39]MH_I2C_Read... [23:03:39]Read from MH i2c: E2 62 00 [23:03:39]MH_I2C_Read... [23:03:39]Read from MH i2c: E2 62 00 66 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D4 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 B1 01 00 00 5E 04 04 00 B1 01 00 00 57 04 04 00 B2 01 00 00 19 04 04 00 00 00 00 00 90 00 D8 [23:03:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D4 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 B1 01 00 00 5E 04 04 00 B1 01 00 00 57 04 04 00 B2 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:03:39]wFMCommunicate OK [23:03:39]SAM_PROTO_GetFieldsCounters done [23:03:39]requested_item shift.num is exist - process it [23:03:39]requested_item shift.opened is exist - process it [23:03:39]req_shift_opened [23:03:39]FM_GetShiftState [23:03:39]SAM_PROTO_GetShiftState [23:03:39]wFMCommunicate request_size=4 [23:03:39]MH_SAM_APDU [23:03:39]CAPDU: 80 13 01 00 [23:03:39]Write to MH i2c: E2 08 00 67 20 80 13 01 00 00 00 00 00 04 [23:03:39]Write i2c OK [23:03:39]MH_I2C_Read... [23:03:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:03:39]Read from MH i2c: E2 [23:03:39]MH_I2C_Read... [23:03:39]Read from MH i2c: E2 0E 00 [23:03:39]MH_I2C_Read... [23:03:39]Read from MH i2c: E2 0E 00 67 20 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 0A [23:03:39]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [23:03:39]wFMCommunicate OK [23:03:39]SAM_PROTO_GetShiftState done [23:03:39]FM_GetShiftState done [23:03:39]req_shift_opened done [23:03:39]requested_item shift.open_date is exist - process it [23:03:39]req_shift_open_date [23:03:39]req_shift_open_date done [23:03:39]produce_requested_data done [23:03:39]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69588,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [23:03:39]process_action_free close_receipt [23:03:39]json_value_free [23:03:39]json_value_free done [23:03:39]process_json_proto returns [23:03:39]Send response to host [23:03:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69588,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [23:03:39]free response buf [23:03:39]execute_script done [23:03:39]execute_script returns [23:03:39]free content buf [23:03:39]Sock 7.Close socket [23:03:39]Sock 7.Thread stoped [23:03:39]accept exits with 9 [23:03:39]New connection [23:03:39]New thread 3066797412 created [23:03:39]Thread 3066654052 joined [23:03:39]Waiting for new connection... [23:03:39] Sock 9.Parse request [23:03:39]Sock 9.Check first char [23:03:39]Sock 9.First char is OK [23:03:39]request: POST /json_proto HTTP/1.0 [23:03:39]Method: POST [23:03:39]URL: /json_proto [23:03:39]Method is POST - this is cgi request [23:03:39]url: /json_proto [23:03:39]query_string will be loaded in cgi processing [23:03:39]execute_cgi json_proto POST (null) [23:03:39]execute_cgi path=json_proto method=POST [23:03:39]POST find Content-Length [23:03:39]Host: 172.17.50.3:8080 [23:03:39]Content-Length: 686 [23:03:39]Content-Type: application/json [23:03:39] [23:03:39]POST finish read [23:03:39]Found Content-Length = 686 [23:03:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 45.570, "sum" : 1772.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1772.00, "payments": [ { "type": 0, "sum" : 1772.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:03:39]execute_script... [23:03:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 45.570, "sum" : 1772.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1772.00, "payments": [ { "type": 0, "sum" : 1772.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:03:39]POST & json_proto [23:03:39]process_json_proto [23:03:39]json parsed OK: [23:03:39]protocol is kg_v1.0 [23:03:39]action value=close_receipt [23:03:39]process_action close_receipt [23:03:39]cmd_close_receipt [23:03:39]MH_GetDate [23:03:39]Write to MH i2c: F0 00 00 68 20 77 [23:03:39]Write i2c OK [23:03:39]MH_I2C_Read... [23:03:39]Read from MH i2c: F0 [23:03:39]MH_I2C_Read... [23:03:39]Read from MH i2c: F0 09 00 [23:03:39]MH_I2C_Read... [23:03:39]Read from MH i2c: F0 09 00 68 20 00 4D 8C 15 67 6B 98 1E 66 5C [23:03:39]GetLastDocTimeStamp 1729465416 [23:03:39]current date 1729465421 [23:03:39]FM_GetShiftState [23:03:39]SAM_PROTO_GetShiftState [23:03:39]wFMCommunicate request_size=4 [23:03:39]MH_SAM_APDU [23:03:39]CAPDU: 80 13 01 00 [23:03:39]Write to MH i2c: E2 08 00 69 20 80 13 01 00 00 00 00 00 06 [23:03:39]Write i2c OK [23:03:39]MH_I2C_Read... [23:03:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:03:39]Read from MH i2c: E2 [23:03:39]MH_I2C_Read... [23:03:39]Read from MH i2c: E2 0E 00 [23:03:39]MH_I2C_Read... [23:03:39]Read from MH i2c: E2 0E 00 69 20 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 0C [23:03:39]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [23:03:39]wFMCommunicate OK [23:03:39]SAM_PROTO_GetShiftState done [23:03:39]FM_GetShiftState done [23:03:39]opened in 1729383220 [23:03:39]opened+sec_in_day 1729469620 [23:03:39]quantity*price = 177267 [23:03:39]sum+1 = 177268 [23:03:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 1772.00 Внесено: 3000.00 СДАЧА: 1228.00 НСП 1% : 15.69 НДС 12% : 188.25 Наличными: 1772.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 434 20.10.2024 23:03 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69589 ФПД: 47553011840787 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T230341&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69589&fm=47553011840787&tin=02508201610067®Number=0000000000156251&sum=177200 [23:03:40]StoreToDocumentArchive [23:03:40]shift 193 fd 69589 [23:03:40]save to /storage/0193/doc_00069589 [23:03:40]save last doc name /storage/0193/doc_00069589 to /storage/kkm_last_doc_name [23:03:40]save OK [23:03:40]Clear old archive folders... [23:03:40]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:03:40]tlvbuf is 00F71B70 [23:03:40]SAM_PROTO_ClearQueue [23:03:40]wFMCommunicate request_size=4 [23:03:40]MH_SAM_APDU [23:03:40]CAPDU: 80 09 00 00 [23:03:40]Write to MH i2c: E2 08 00 76 20 80 09 00 00 00 00 00 00 08 [23:03:40]Write i2c OK [23:03:40]MH_I2C_Read... [23:03:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:03:41]Read from MH i2c: E2 [23:03:41]MH_I2C_Read... [23:03:41]Read from MH i2c: E2 03 00 [23:03:41]MH_I2C_Read... [23:03:41]Read from MH i2c: E2 03 00 76 20 00 90 00 0A [23:03:41]RAPDU: 90 00 [23:03:41]wFMCommunicate OK [23:03:41]SAM_PROTO_ClearQueue done [23:03:41]KKMCreateOFDPacket [23:03:41]OFDProtocolAddRootSTLVToBuf [23:03:41]FM_MakeSignedData [23:03:41]FM_MakeSignedData [23:03:41]SAM_PROTO_SignData [23:03:41]wFMCommunicate request_size=4 [23:03:41]MH_SAM_APDU [23:03:41]CAPDU: 80 0D 01 02 [23:03:41]Write to MH i2c: E2 08 00 77 20 80 0D 01 02 00 00 00 00 10 [23:03:41]Write i2c OK [23:03:41]MH_I2C_Read... [23:03:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:03:41]Read from MH i2c: E2 [23:03:41]MH_I2C_Read... [23:03:41]Read from MH i2c: E2 03 00 [23:03:41]MH_I2C_Read... [23:03:41]Read from MH i2c: E2 03 00 77 20 00 90 00 0B [23:03:41]RAPDU: 90 00 [23:03:41]wFMCommunicate OK [23:03:41]wFMCommunicate request_size=255 [23:03:41]MH_SAM_APDU [23:03:41]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 02 B2 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 73 B4 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 B4 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 49 00 00 00 00 07 04 06 00 30 B4 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 01 00 00 F4 03 04 00 4D 8C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D5 0F 01 00 35 04 06 00 2B 3F [23:03:41]Write to MH i2c: E2 02 01 78 20 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 02 B2 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 73 B4 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 B4 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 49 00 00 00 00 07 04 06 00 30 B4 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 01 00 00 F4 03 04 00 4D 8C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D5 0F 01 00 35 04 06 00 2B 3F 00 00 BD [23:03:41]Write i2c OK [23:03:41]MH_I2C_Read... [23:03:41]Read from MH i2c: E2 [23:03:41]MH_I2C_Read... [23:03:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:03:41]Read from MH i2c: E2 03 00 [23:03:41]MH_I2C_Read... [23:03:41]Read from MH i2c: E2 03 00 78 20 00 90 00 0C [23:03:41]RAPDU: 90 00 [23:03:41]wFMCommunicate OK [23:03:41]wFMCommunicate request_size=9 [23:03:41]MH_SAM_APDU [23:03:41]CAPDU: 80 0D 02 02 04 CC 60 F7 13 [23:03:41]Write to MH i2c: E2 0C 00 79 20 80 0D 02 02 04 00 CC 60 F7 13 00 00 51 [23:03:41]Write i2c OK [23:03:41]MH_I2C_Read... [23:03:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:03:41]Read from MH i2c: E2 [23:03:41]MH_I2C_Read... [23:03:41]Read from MH i2c: E2 03 00 [23:03:41]MH_I2C_Read... [23:03:41]Read from MH i2c: E2 03 00 79 20 00 90 00 0D [23:03:41]RAPDU: 90 00 [23:03:41]wFMCommunicate OK [23:03:41]wFMCommunicate request_size=4 [23:03:41]MH_SAM_APDU [23:03:41]CAPDU: 80 0D 03 02 [23:03:41]Write to MH i2c: E2 08 00 7A 20 80 0D 03 02 00 00 00 00 15 [23:03:41]Write i2c OK [23:03:41]MH_I2C_Read... [23:03:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:03:41]Read from MH i2c: E2 [23:03:41]MH_I2C_Read... [23:03:41]Read from MH i2c: E2 0B 00 [23:03:41]MH_I2C_Read... [23:03:41]Read from MH i2c: E2 0B 00 7A 20 00 05 65 81 46 06 75 D6 30 90 00 C8 [23:03:41]RAPDU: 05 65 81 46 06 75 D6 30 90 00 [23:03:41]wFMCommunicate OK [23:03:41]SAM_PROTO_SignData done [23:03:41]FM_MakeSignedData done [23:03:41]CreateOFDProtocolMessage [23:03:41]wFMCommunicate request_size=4 [23:03:41]MH_SAM_APDU [23:03:41]CAPDU: 80 11 00 00 [23:03:41]Write to MH i2c: E2 08 00 7B 20 80 11 00 00 00 00 00 00 15 [23:03:41]Write i2c OK [23:03:41]MH_I2C_Read... [23:03:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:03:41]Read from MH i2c: E2 [23:03:41]MH_I2C_Read... [23:03:41]Read from MH i2c: E2 17 00 [23:03:41]MH_I2C_Read... [23:03:41]Read from MH i2c: E2 17 00 7B 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 67 [23:03:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:03:41]wFMCommunicate OK [23:03:41]CreateOFDProtocolMessage done [23:03:41]OFDSenderStorePacket 69589 [23:03:41]StoreOFDPacket docnum=69589 [23:03:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 46 91 06 01 37 4E 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 02 B2 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 73 B4 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 B4 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 49 00 00 00 00 07 04 06 00 30 B4 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 01 00 00 F4 03 04 00 4D 8C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D5 0F 01 00 35 04 06 00 2B 3F CC 60 F7 13 05 65 81 46 06 75 D6 30 [23:03:41]CheckFolder [23:03:41]dirname=/storage/ofd_packets [23:03:41]CheckFolder done [23:03:41]ProducePacketName [23:03:41]name=ofd_packets/00069589 [23:03:41]NVStorageSaveData ofd_packets/00069589 [23:03:41]File name is /storage/ofd_packets/00069589 [23:03:41]Write 300 bytes [23:03:41]NVStorageSaveData done [23:03:41]OFDSenderStorePacket done [23:03:41]KKMCreateOFDPacket done [23:03:41]NVStorageSaveData kkm_last_timestamp [23:03:41]File name is /storage/kkm_last_timestamp [23:03:41]Write 4 bytes [23:03:41]NVStorageSaveData done [23:03:41]ExternCall_PrintAddStr [23:03:41]wPrintStart [23:03:41]Write to MH i2c: 01 00 00 7C 20 9C [23:03:41]Write i2c OK [23:03:41]MH_I2C_Read... [23:03:41]Read from MH i2c: 01 [23:03:41]MH_I2C_Read... [23:03:41]Read from MH i2c: 01 07 00 [23:03:41]MH_I2C_Read... [23:03:41]Read from MH i2c: 01 07 00 7C 20 00 00 00 00 00 FF 0F B1 [23:03:41]RasterBufferAndPrint [23:03:41]line Счет N : (1)2885327 [23:03:41]line ИНН: 02508201610067 [23:03:41]line Контрольно-Кассовый Чек [23:03:41]line ПРОДАЖА [23:03:41]line ТРК (МРК, ГНК) : 71 [23:03:41]line Товар: 2711129700 [23:03:41]line ГАЗ-К-3 [23:03:41]line 45.570 * 38.90 [23:03:41]line = 1772.67 [23:03:41]line НДС 12% НСП 1% [23:03:41]line > о реализуемом товаре [23:03:41]line ОКРУГЛЕНИЕ: -0.67 [23:03:41]line ИТОГО: 1772.00 [23:03:41]line Внесено: 3000.00 [23:03:41]line СДАЧА: 1228.00 [23:03:41]line НСП 1% : 15.69 [23:03:41]line НДС 12% : 188.25 [23:03:41]line Наличными: 1772.00 [23:03:41]line Безнал.: 0.00 [23:03:41]line Место: АЗС № 85 "Партнер Нефть" [23:03:41]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:03:41]line СНО: Общий режим [23:03:41]line Чек 434 20.10.2024 23:03 [23:03:41]line Смена: 193 ФФД: 1.0 [23:03:41]line ЗНМ: 0300000167 [23:03:41]line РНМ: 0000000000156251 [23:03:41]line Версия ККМ: v1.0 [23:03:41]line ФМ: 0000000000963346 [23:03:41]line ФД: 69589 [23:03:41]line ФПД: 47553011840787 [23:03:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T230341&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69589&fm=47553011840787&tin=02508201610067®Number=0000000000156251&sum=177200 [23:03:41]OFD Sender: Processing packet 69589 [packets to send 18, broken 17] [23:03:41]ProducePacketName [23:03:41]name=ofd_packets/00069589 [23:03:41]written 0, free lines is 4095 [23:03:41]OFD Sender: To server: pG, [23:03:41]CommunicateWithHost lk.salyk.kg:30040 [23:03:41]ConnectInit lk.salyk.kg [23:03:42]Connected sock=10 [23:03:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 46 91 06 01 37 4E 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 02 B2 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 73 B4 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 B4 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 49 00 00 00 00 07 04 06 00 30 B4 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 01 00 00 F4 03 04 00 4D 8C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D5 0F 01 00 35 04 06 00 2B 3F CC 60 F7 13 05 65 81 46 06 75 D6 30 [23:03:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 A8 71 47 00 51 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D5 0F 01 00 F4 03 04 00 F2 35 15 67 B6 04 01 00 00 F9 DB 75 12 2E CC AB 52 [23:03:42]CommunicateWithHost err = 0 [23:03:42]CheckOFDResponse [23:03:42]1017 (14) - 77093643461234 [23:03:42]1041 (16) - 0000000000963346 [23:03:42]1040 (4) - 69589 [23:03:42]1012 (4) - 20.10.2024 16:55 [23:03:42]1206 (1) - 0 [23:03:42]OFD Sender: Remove packet 69589 [23:03:42]ProducePacketName [23:03:42]name=ofd_packets/00069589 [23:03:42]NVStorageDeleteData [23:03:42]Write to MH i2c: 01 00 00 A7 20 C7 [23:03:42]Write i2c OK [23:03:42]MH_I2C_Read... [23:03:42]Read from MH i2c: 01 [23:03:42]MH_I2C_Read... [23:03:42]Read from MH i2c: 01 07 00 [23:03:42]MH_I2C_Read... [23:03:42]Read from MH i2c: 01 07 00 A7 20 00 00 00 00 00 0C 0D E7 [23:03:42]RasterBufferAndPrint [23:03:42]line [23:03:42]line [23:03:42]line [23:03:42]line [23:03:42]line [23:03:42]written 0, free lines is 3353 [23:03:42]MH_Cut [23:03:42]Write to MH i2c: D1 01 00 AE 20 01 A0 [23:03:42]Write i2c OK [23:03:42]MH_I2C_Read... [23:03:42]Read from MH i2c: D1 [23:03:42]MH_I2C_Read... [23:03:42]Read from MH i2c: D1 01 00 [23:03:42]MH_I2C_Read... [23:03:42]Read from MH i2c: D1 01 00 AE 20 00 9F [23:03:42]Write to MH i2c: 01 00 00 AF 20 CF [23:03:42]Write i2c OK [23:03:42]MH_I2C_Read... [23:03:42]OFD Sender: No OFD packet to send [23:03:43]*** Cut start [23:03:43]*** Partial cut [23:03:43]*** CUTSNS_PIN = 1 [23:03:43]*** CUTSNS_PIN = 0 [23:03:43]*** Brake cut motor [23:03:43]Read from MH i2c: 01 [23:03:43]MH_I2C_Read... [23:03:43]*** Stop cut motor [23:03:43]*** Cut end [23:03:43]Read from MH i2c: 01 07 00 [23:03:43]MH_I2C_Read... [23:03:43]Read from MH i2c: 01 07 00 AF 20 00 00 00 00 00 FF 0F E4 [23:03:43]process_action close_receipt done [23:03:43]requested_data is exist [23:03:43]produce_requested_data [23:03:43]requested_item fm.sn is exist - process it [23:03:43]wFMCommunicate request_size=4 [23:03:43]MH_SAM_APDU [23:03:43]CAPDU: 80 11 00 00 [23:03:43]Write to MH i2c: E2 08 00 B0 20 80 11 00 00 00 00 00 00 4A [23:03:43]Write i2c OK [23:03:43]MH_I2C_Read... [23:03:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:03:43]Read from MH i2c: E2 [23:03:43]MH_I2C_Read... [23:03:43]Read from MH i2c: E2 17 00 [23:03:43]MH_I2C_Read... [23:03:43]Read from MH i2c: E2 17 00 B0 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9C [23:03:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:03:43]wFMCommunicate OK [23:03:43]requested_item fd.num is exist - process it [23:03:43]SAM_PROTO_GetFieldsCounters [23:03:43]wFMCommunicate request_size=4 [23:03:43]MH_SAM_APDU [23:03:43]CAPDU: 80 13 00 00 [23:03:43]Write to MH i2c: E2 08 00 B1 20 80 13 00 00 00 00 00 00 4D [23:03:43]Write i2c OK [23:03:43]MH_I2C_Read... [23:03:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:03:43]Read from MH i2c: E2 [23:03:43]MH_I2C_Read... [23:03:43]Read from MH i2c: E2 62 00 [23:03:43]MH_I2C_Read... [23:03:43]Read from MH i2c: E2 62 00 B1 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D5 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 B2 01 00 00 5E 04 04 00 B2 01 00 00 57 04 04 00 B3 01 00 00 19 04 04 00 00 00 00 00 90 00 27 [23:03:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D5 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 B2 01 00 00 5E 04 04 00 B2 01 00 00 57 04 04 00 B3 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:03:43]wFMCommunicate OK [23:03:43]SAM_PROTO_GetFieldsCounters done [23:03:43]requested_item shift.num is exist - process it [23:03:43]requested_item shift.opened is exist - process it [23:03:43]req_shift_opened [23:03:43]FM_GetShiftState [23:03:43]SAM_PROTO_GetShiftState [23:03:43]wFMCommunicate request_size=4 [23:03:43]MH_SAM_APDU [23:03:43]CAPDU: 80 13 01 00 [23:03:43]Write to MH i2c: E2 08 00 B2 20 80 13 01 00 00 00 00 00 4F [23:03:43]Write i2c OK [23:03:43]MH_I2C_Read... [23:03:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:03:44]Read from MH i2c: E2 [23:03:44]MH_I2C_Read... [23:03:44]Read from MH i2c: E2 0E 00 [23:03:44]MH_I2C_Read... [23:03:44]Read from MH i2c: E2 0E 00 B2 20 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 55 [23:03:44]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [23:03:44]wFMCommunicate OK [23:03:44]SAM_PROTO_GetShiftState done [23:03:44]FM_GetShiftState done [23:03:44]req_shift_opened done [23:03:44]requested_item shift.open_date is exist - process it [23:03:44]req_shift_open_date [23:03:44]req_shift_open_date done [23:03:44]produce_requested_data done [23:03:44]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69589,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [23:03:44]process_action_free close_receipt [23:03:44]json_value_free [23:03:44]json_value_free done [23:03:44]process_json_proto returns [23:03:44]Send response to host [23:03:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69589,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [23:03:44]free response buf [23:03:44]execute_script done [23:03:44]execute_script returns [23:03:44]free content buf [23:03:44]Sock 9.Close socket [23:03:44]Sock 9.Thread stoped [23:03:47]OFD Sender: No OFD packet to send [23:03:52]OFD Sender: No OFD packet to send [23:03:57]OFD Sender: No OFD packet to send [23:04:02]OFD Sender: No OFD packet to send [23:04:07]OFD Sender: No OFD packet to send [23:04:12]OFD Sender: No OFD packet to send [23:04:17]OFD Sender: No OFD packet to send [23:04:22]OFD Sender: No OFD packet to send [23:04:27]OFD Sender: No OFD packet to send [23:04:32]OFD Sender: No OFD packet to send [23:04:37]OFD Sender: No OFD packet to send [23:04:42]OFD Sender: No OFD packet to send [23:04:47]OFD Sender: No OFD packet to send [23:04:52]OFD Sender: No OFD packet to send [23:04:57]OFD Sender: No OFD packet to send [23:05:02]OFD Sender: No OFD packet to send [23:05:07]OFD Sender: No OFD packet to send [23:05:12]OFD Sender: No OFD packet to send [23:05:17]OFD Sender: No OFD packet to send [23:05:22]OFD Sender: No OFD packet to send [23:05:27]OFD Sender: No OFD packet to send [23:05:32]OFD Sender: No OFD packet to send [23:05:37]OFD Sender: No OFD packet to send [23:05:42]OFD Sender: No OFD packet to send [23:05:47]OFD Sender: No OFD packet to send [23:05:52]OFD Sender: No OFD packet to send [23:05:57]OFD Sender: No OFD packet to send [23:06:02]OFD Sender: No OFD packet to send [23:06:07]OFD Sender: No OFD packet to send [23:06:12]OFD Sender: No OFD packet to send [23:06:15]accept exits with 7 [23:06:15]New connection [23:06:15]New thread 3066654052 created [23:06:15]Thread 3066797412 joined [23:06:15]Waiting for new connection... [23:06:15] Sock 7.Parse request [23:06:15]Sock 7.Check first char [23:06:15]Sock 7.First char is OK [23:06:15]request: POST /json_proto HTTP/1.0 [23:06:15]Method: POST [23:06:15]URL: /json_proto [23:06:15]Method is POST - this is cgi request [23:06:15]url: /json_proto [23:06:15]query_string will be loaded in cgi processing [23:06:15]execute_cgi json_proto POST (null) [23:06:15]execute_cgi path=json_proto method=POST [23:06:15]POST find Content-Length [23:06:15]Host: 172.17.50.3:8080 [23:06:15]Content-Length: 801 [23:06:15]Content-Type: application/json [23:06:15] [23:06:15]POST finish read [23:06:15]Found Content-Length = 801 [23:06:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4194538", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:06:15]execute_script... [23:06: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)2885329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4194538", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:06:15]POST & json_proto [23:06:15]process_json_proto [23:06:15]json parsed OK: [23:06:15]protocol is kg_v1.0 [23:06:15]action value=close_receipt [23:06:15]process_action close_receipt [23:06:15]cmd_close_receipt [23:06:15]MH_GetDate [23:06:15]Write to MH i2c: F0 00 00 B3 20 C2 [23:06:15]Write i2c OK [23:06:15]MH_I2C_Read... [23:06:15]Read from MH i2c: F0 [23:06:15]MH_I2C_Read... [23:06:15]Read from MH i2c: F0 09 00 [23:06:15]MH_I2C_Read... [23:06:15]Read from MH i2c: F0 09 00 B3 20 00 E8 8C 15 67 6B 98 1E 66 42 [23:06:15]GetLastDocTimeStamp 1729465421 [23:06:15]current date 1729465576 [23:06:15]FM_GetShiftState [23:06:15]SAM_PROTO_GetShiftState [23:06:15]wFMCommunicate request_size=4 [23:06:15]MH_SAM_APDU [23:06:15]CAPDU: 80 13 01 00 [23:06:15]Write to MH i2c: E2 08 00 B4 20 80 13 01 00 00 00 00 00 51 [23:06:15]Write i2c OK [23:06:15]MH_I2C_Read... [23:06:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:06:15]Read from MH i2c: E2 [23:06:15]MH_I2C_Read... [23:06:15]Read from MH i2c: E2 0E 00 [23:06:15]MH_I2C_Read... [23:06:15]Read from MH i2c: E2 0E 00 B4 20 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 57 [23:06:15]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [23:06:15]wFMCommunicate OK [23:06:15]SAM_PROTO_GetShiftState done [23:06:15]FM_GetShiftState done [23:06:15]opened in 1729383220 [23:06:15]opened+sec_in_day 1729469620 [23:06:15]quantity*price = 0 [23:06:15]sum+1 = 1 [23:06:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 435 20.10.2024 23:06 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: Топливные Талоны 4194538 ФМ: 0000000000963346 ФД: 69590 ФПД: 131030123016064 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T230616&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69590&fm=131030123016064&tin=02508201610067®Number=0000000000156251&sum=0 [23:06:16]StoreToDocumentArchive [23:06:16]shift 193 fd 69590 [23:06:16]save to /storage/0193/doc_00069590 [23:06:16]save last doc name /storage/0193/doc_00069590 to /storage/kkm_last_doc_name [23:06:16]save OK [23:06:16]Clear old archive folders... [23:06:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:06:16]tlvbuf is 00FA3AE0 [23:06:16]SAM_PROTO_ClearQueue [23:06:16]wFMCommunicate request_size=4 [23:06:16]MH_SAM_APDU [23:06:16]CAPDU: 80 09 00 00 [23:06:16]Write to MH i2c: E2 08 00 C1 20 80 09 00 00 00 00 00 00 53 [23:06:16]Write i2c OK [23:06:16]MH_I2C_Read... [23:06:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:06:16]Read from MH i2c: E2 [23:06:16]MH_I2C_Read... [23:06:16]Read from MH i2c: E2 03 00 [23:06:16]MH_I2C_Read... [23:06:16]Read from MH i2c: E2 03 00 C1 20 00 90 00 55 [23:06:16]RAPDU: 90 00 [23:06:16]wFMCommunicate OK [23:06:16]SAM_PROTO_ClearQueue done [23:06:16]KKMCreateOFDPacket [23:06:16]OFDProtocolAddRootSTLVToBuf [23:06:16]FM_MakeSignedData [23:06:16]FM_MakeSignedData [23:06:16]SAM_PROTO_SignData [23:06:16]wFMCommunicate request_size=4 [23:06:16]MH_SAM_APDU [23:06:16]CAPDU: 80 0D 01 02 [23:06:16]Write to MH i2c: E2 08 00 C2 20 80 0D 01 02 00 00 00 00 5B [23:06:16]Write i2c OK [23:06:16]MH_I2C_Read... [23:06:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:06:16]Read from MH i2c: E2 [23:06:16]MH_I2C_Read... [23:06:16]Read from MH i2c: E2 03 00 [23:06:16]MH_I2C_Read... [23:06:16]Read from MH i2c: E2 03 00 C2 20 00 90 00 56 [23:06:16]RAPDU: 90 00 [23:06:16]wFMCommunicate OK [23:06:16]wFMCommunicate request_size=255 [23:06:16]MH_SAM_APDU [23:06:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 B3 01 00 00 F4 03 04 00 E8 8C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D6 0F 01 00 35 04 06 00 77 [23:06:16]Write to MH i2c: E2 02 01 C3 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 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 B3 01 00 00 F4 03 04 00 E8 8C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D6 0F 01 00 35 04 06 00 77 00 00 8F [23:06:16]Write i2c OK [23:06:16]MH_I2C_Read... [23:06:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:06:16]Read from MH i2c: E2 [23:06:16]MH_I2C_Read... [23:06:16]Read from MH i2c: E2 03 00 [23:06:16]MH_I2C_Read... [23:06:16]Read from MH i2c: E2 03 00 C3 20 00 90 00 57 [23:06:16]RAPDU: 90 00 [23:06:16]wFMCommunicate OK [23:06:16]wFMCommunicate request_size=10 [23:06:16]MH_SAM_APDU [23:06:16]CAPDU: 80 0D 02 02 05 2B D3 EF EF 80 [23:06:16]Write to MH i2c: E2 0D 00 C4 20 80 0D 02 02 05 00 2B D3 EF EF 80 00 00 C4 [23:06:16]Write i2c OK [23:06:16]MH_I2C_Read... [23:06:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:06:16]Read from MH i2c: E2 [23:06:16]MH_I2C_Read... [23:06:16]Read from MH i2c: E2 03 00 [23:06:16]MH_I2C_Read... [23:06:16]Read from MH i2c: E2 03 00 C4 20 00 90 00 58 [23:06:16]RAPDU: 90 00 [23:06:16]wFMCommunicate OK [23:06:16]wFMCommunicate request_size=4 [23:06:16]MH_SAM_APDU [23:06:16]CAPDU: 80 0D 03 02 [23:06:16]Write to MH i2c: E2 08 00 C5 20 80 0D 03 02 00 00 00 00 60 [23:06:16]Write i2c OK [23:06:16]MH_I2C_Read... [23:06:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:06:16]Read from MH i2c: E2 [23:06:16]MH_I2C_Read... [23:06:16]Read from MH i2c: E2 0B 00 [23:06:16]MH_I2C_Read... [23:06:16]Read from MH i2c: E2 0B 00 C5 20 00 DB 38 E8 40 1B 42 A4 48 90 00 E5 [23:06:16]RAPDU: DB 38 E8 40 1B 42 A4 48 90 00 [23:06:16]wFMCommunicate OK [23:06:16]SAM_PROTO_SignData done [23:06:16]FM_MakeSignedData done [23:06:16]CreateOFDProtocolMessage [23:06:16]wFMCommunicate request_size=4 [23:06:16]MH_SAM_APDU [23:06:16]CAPDU: 80 11 00 00 [23:06:16]Write to MH i2c: E2 08 00 C6 20 80 11 00 00 00 00 00 00 60 [23:06:16]Write i2c OK [23:06:16]MH_I2C_Read... [23:06:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:06:17]Read from MH i2c: E2 [23:06:17]MH_I2C_Read... [23:06:17]Read from MH i2c: E2 17 00 [23:06:17]MH_I2C_Read... [23:06:17]Read from MH i2c: E2 17 00 C6 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B2 [23:06:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:06:17]wFMCommunicate OK [23:06:17]CreateOFDProtocolMessage done [23:06:17]OFDSenderStorePacket 69590 [23:06:17]StoreOFDPacket docnum=69590 [23:06:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 7B 8C 07 01 6E 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 01 00 00 F4 03 04 00 E8 8C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D6 0F 01 00 35 04 06 00 77 2B D3 EF EF 80 DB 38 E8 40 1B 42 A4 48 [23:06:17]CheckFolder [23:06:17]dirname=/storage/ofd_packets [23:06:17]CheckFolder done [23:06:17]ProducePacketName [23:06:17]name=ofd_packets/00069590 [23:06:17]NVStorageSaveData ofd_packets/00069590 [23:06:17]File name is /storage/ofd_packets/00069590 [23:06:17]Write 301 bytes [23:06:17]NVStorageSaveData done [23:06:17]OFDSenderStorePacket done [23:06:17]KKMCreateOFDPacket done [23:06:17]NVStorageSaveData kkm_last_timestamp [23:06:17]File name is /storage/kkm_last_timestamp [23:06:17]Write 4 bytes [23:06:17]NVStorageSaveData done [23:06:17]OFD Sender: Processing packet 69590 [packets to send 18, broken 17] [23:06:17]ProducePacketName [23:06:17]name=ofd_packets/00069590 [23:06:17]OFD Sender: To server: pG, [23:06:17]CommunicateWithHost lk.salyk.kg:30040 [23:06:17]ConnectInit lk.salyk.kg [23:06:17]ExternCall_PrintAddStr [23:06:17]wPrintStart [23:06:17]Write to MH i2c: 01 00 00 C7 20 E7 [23:06:17]Write i2c OK [23:06:17]MH_I2C_Read... [23:06:17]Read from MH i2c: 01 [23:06:17]MH_I2C_Read... [23:06:17]Read from MH i2c: 01 07 00 [23:06:17]MH_I2C_Read... [23:06:17]Read from MH i2c: 01 07 00 C7 20 00 00 00 00 00 FF 0F FC [23:06:17]RasterBufferAndPrint [23:06:17]line Счет N : (1)2885329 [23:06:17]line ИНН: 02508201610067 [23:06:17]line Контрольно-Кассовый Чек [23:06:17]line ПРОДАЖА [23:06:17]line ТРК (МРК, ГНК) : 32 [23:06:17]line Товар: 2710124130 [23:06:17]line Аи-92-К-5 [23:06:17]line 20.000 * 0.00 [23:06:17]line = 0.00 [23:06:17]line НДС 12% НСП 1% [23:06:17]line > о реализуемом товаре [23:06:17]line ИТОГО: 0.00 [23:06:17]line НСП 1% : 0.00 [23:06:17]line НДС 12% : 0.00 [23:06:17]line Наличными: 0.00 [23:06:17]line Безнал.: 0.00 [23:06:17]line Место: АЗС № 85 "Партнер Нефть" [23:06:17]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:06:17]line СНО: Общий режим [23:06:17]line Чек 435 20.10.2024 23:06 [23:06:17]line Смена: 193 ФФД: 1.0 [23:06:17]line ЗНМ: 0300000167 [23:06:17]line РНМ: 0000000000156251 [23:06:17]line Версия ККМ: v1.0 [23:06:17]line Талоны: Топливные Талоны [23:06:17]line 4194538 [23:06:17]line ФМ: 0000000000963346 [23:06:17]line ФД: 69590 [23:06:17]line ФПД: 131030123016064 [23:06:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T230616&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69590&fm=131030123016064&tin=02508201610067®Number=0000000000156251&sum=0 [23:06:17]Connected sock=11 [23:06:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 7B 8C 07 01 6E 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 01 00 00 F4 03 04 00 E8 8C 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D6 0F 01 00 35 04 06 00 77 2B D3 EF EF 80 DB 38 E8 40 1B 42 A4 48 [23:06:17]written 0, free lines is 4095 [23:06:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 15 AC 47 00 2B B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D6 0F 01 00 F4 03 04 00 8E 36 15 67 B6 04 01 00 00 E3 2A 81 D6 80 AB 7C F9 [23:06:17]CommunicateWithHost err = 0 [23:06:17]CheckOFDResponse [23:06:17]1017 (14) - 77093643461234 [23:06:17]1041 (16) - 0000000000963346 [23:06:17]1040 (4) - 69590 [23:06:17]1012 (4) - 20.10.2024 16:57 [23:06:17]1206 (1) - 0 [23:06:17]OFD Sender: Remove packet 69590 [23:06:17]ProducePacketName [23:06:17]name=ofd_packets/00069590 [23:06:17]NVStorageDeleteData [23:06:17]Write to MH i2c: 01 00 00 F1 20 11 [23:06:17]Write i2c OK [23:06:17]MH_I2C_Read... [23:06:17]Read from MH i2c: 01 [23:06:17]MH_I2C_Read... [23:06:17]Read from MH i2c: 01 07 00 [23:06:17]MH_I2C_Read... [23:06:17]Read from MH i2c: 01 07 00 F1 20 00 00 00 00 00 FD 0C 21 [23:06:17]RasterBufferAndPrint [23:06:17]line [23:06:17]line [23:06:17]line [23:06:17]line [23:06:17]line [23:06:17]written 0, free lines is 3334 [23:06:17]MH_Cut [23:06:17]Write to MH i2c: D1 01 00 F8 20 01 EA [23:06:17]Write i2c OK [23:06:17]MH_I2C_Read... [23:06:17]Read from MH i2c: D1 [23:06:17]MH_I2C_Read... [23:06:17]Read from MH i2c: D1 01 00 [23:06:17]MH_I2C_Read... [23:06:17]Read from MH i2c: D1 01 00 F8 20 00 E9 [23:06:17]Write to MH i2c: 01 00 00 F9 20 19 [23:06:17]Write i2c OK [23:06:17]MH_I2C_Read... [23:06:18]OFD Sender: No OFD packet to send [23:06:18]*** Cut start [23:06:18]*** Partial cut [23:06:18]*** CUTSNS_PIN = 1 [23:06:18]*** CUTSNS_PIN = 0 [23:06:18]*** Brake cut motor [23:06:19]Read from MH i2c: 01 [23:06:19]MH_I2C_Read... [23:06:19]*** Stop cut motor [23:06:19]*** Cut end [23:06:19]Read from MH i2c: 01 07 00 [23:06:19]MH_I2C_Read... [23:06:19]Read from MH i2c: 01 07 00 F9 20 00 00 00 00 00 FF 0F 2E [23:06:19]process_action close_receipt done [23:06:19]requested_data is exist [23:06:19]produce_requested_data [23:06:19]requested_item fm.sn is exist - process it [23:06:19]wFMCommunicate request_size=4 [23:06:19]MH_SAM_APDU [23:06:19]CAPDU: 80 11 00 00 [23:06:19]Write to MH i2c: E2 08 00 FA 20 80 11 00 00 00 00 00 00 94 [23:06:19]Write i2c OK [23:06:19]MH_I2C_Read... [23:06:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:06:19]Read from MH i2c: E2 [23:06:19]MH_I2C_Read... [23:06:19]Read from MH i2c: E2 17 00 [23:06:19]MH_I2C_Read... [23:06:19]Read from MH i2c: E2 17 00 FA 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E6 [23:06:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:06:19]wFMCommunicate OK [23:06:19]requested_item fd.num is exist - process it [23:06:19]SAM_PROTO_GetFieldsCounters [23:06:19]wFMCommunicate request_size=4 [23:06:19]MH_SAM_APDU [23:06:19]CAPDU: 80 13 00 00 [23:06:19]Write to MH i2c: E2 08 00 FB 20 80 13 00 00 00 00 00 00 97 [23:06:19]Write i2c OK [23:06:19]MH_I2C_Read... [23:06:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:06:19]Read from MH i2c: E2 [23:06:19]MH_I2C_Read... [23:06:19]Read from MH i2c: E2 62 00 [23:06:19]MH_I2C_Read... [23:06:19]Read from MH i2c: E2 62 00 FB 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D6 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 B3 01 00 00 5E 04 04 00 B3 01 00 00 57 04 04 00 B4 01 00 00 19 04 04 00 00 00 00 00 90 00 75 [23:06:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D6 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 B3 01 00 00 5E 04 04 00 B3 01 00 00 57 04 04 00 B4 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:06:19]wFMCommunicate OK [23:06:19]SAM_PROTO_GetFieldsCounters done [23:06:19]requested_item shift.num is exist - process it [23:06:19]requested_item shift.opened is exist - process it [23:06:19]req_shift_opened [23:06:19]FM_GetShiftState [23:06:19]SAM_PROTO_GetShiftState [23:06:19]wFMCommunicate request_size=4 [23:06:19]MH_SAM_APDU [23:06:19]CAPDU: 80 13 01 00 [23:06:19]Write to MH i2c: E2 08 00 FC 20 80 13 01 00 00 00 00 00 99 [23:06:19]Write i2c OK [23:06:19]MH_I2C_Read... [23:06:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:06:19]Read from MH i2c: E2 [23:06:19]MH_I2C_Read... [23:06:19]Read from MH i2c: E2 0E 00 [23:06:19]MH_I2C_Read... [23:06:19]Read from MH i2c: E2 0E 00 FC 20 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 9F [23:06:19]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [23:06:19]wFMCommunicate OK [23:06:19]SAM_PROTO_GetShiftState done [23:06:19]FM_GetShiftState done [23:06:19]req_shift_opened done [23:06:19]requested_item shift.open_date is exist - process it [23:06:19]req_shift_open_date [23:06:19]req_shift_open_date done [23:06:19]produce_requested_data done [23:06:19]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69590,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [23:06:19]process_action_free close_receipt [23:06:19]json_value_free [23:06:19]json_value_free done [23:06:19]process_json_proto returns [23:06:19]Send response to host [23:06:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69590,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [23:06:19]free response buf [23:06:19]execute_script done [23:06:19]execute_script returns [23:06:19]free content buf [23:06:19]Sock 7.Close socket [23:06:19]Sock 7.Thread stoped [23:06:23]OFD Sender: No OFD packet to send [23:06:28]OFD Sender: No OFD packet to send [23:06:33]OFD Sender: No OFD packet to send [23:06:38]OFD Sender: No OFD packet to send [23:06:43]OFD Sender: No OFD packet to send [23:06:48]OFD Sender: No OFD packet to send [23:06:53]OFD Sender: No OFD packet to send [23:06:58]OFD Sender: No OFD packet to send [23:07:03]OFD Sender: No OFD packet to send [23:07:08]OFD Sender: No OFD packet to send [23:07:13]OFD Sender: No OFD packet to send [23:07:18]OFD Sender: No OFD packet to send [23:07:23]OFD Sender: No OFD packet to send [23:07:28]OFD Sender: No OFD packet to send [23:07:33]OFD Sender: No OFD packet to send [23:07:38]OFD Sender: No OFD packet to send [23:07:43]OFD Sender: No OFD packet to send [23:07:48]OFD Sender: No OFD packet to send [23:07:53]OFD Sender: No OFD packet to send [23:07:58]OFD Sender: No OFD packet to send [23:08:03]OFD Sender: No OFD packet to send [23:08:08]OFD Sender: No OFD packet to send [23:08:13]OFD Sender: No OFD packet to send [23:08:18]OFD Sender: No OFD packet to send [23:08:23]OFD Sender: No OFD packet to send [23:08:25]accept exits with 9 [23:08:25]New connection [23:08:25]New thread 3066797412 created [23:08:25]Thread 3066654052 joined [23:08:25]Waiting for new connection... [23:08:25] Sock 9.Parse request [23:08:25]Sock 9.Check first char [23:08:25]Sock 9.First char is OK [23:08:25]request: POST /json_proto HTTP/1.0 [23:08:25]Method: POST [23:08:25]URL: /json_proto [23:08:25]Method is POST - this is cgi request [23:08:25]url: /json_proto [23:08:25]query_string will be loaded in cgi processing [23:08:25]execute_cgi json_proto POST (null) [23:08:25]execute_cgi path=json_proto method=POST [23:08:25]POST find Content-Length [23:08:25]Host: 172.17.50.3:8080 [23:08:25]Content-Length: 682 [23:08:25]Content-Type: application/json [23:08:25] [23:08:25]POST finish read [23:08:25]Found Content-Length = 682 [23:08:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 15.430, "sum" : 600.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:08:25]execute_script... [23:08:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 15.430, "sum" : 600.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:08:25]POST & json_proto [23:08:25]process_json_proto [23:08:25]json parsed OK: [23:08:25]protocol is kg_v1.0 [23:08:25]action value=close_receipt [23:08:25]process_action close_receipt [23:08:25]cmd_close_receipt [23:08:25]MH_GetDate [23:08:25]Write to MH i2c: F0 00 00 FD 20 0C [23:08:25]Write i2c OK [23:08:25]MH_I2C_Read... [23:08:25]Read from MH i2c: F0 [23:08:25]MH_I2C_Read... [23:08:25]Read from MH i2c: F0 09 00 [23:08:25]MH_I2C_Read... [23:08:25]Read from MH i2c: F0 09 00 FD 20 00 6B 8D 15 67 6B 98 1E 66 10 [23:08:25]GetLastDocTimeStamp 1729465576 [23:08:25]current date 1729465707 [23:08:25]FM_GetShiftState [23:08:25]SAM_PROTO_GetShiftState [23:08:25]wFMCommunicate request_size=4 [23:08:25]MH_SAM_APDU [23:08:25]CAPDU: 80 13 01 00 [23:08:25]Write to MH i2c: E2 08 00 FE 20 80 13 01 00 00 00 00 00 9B [23:08:25]Write i2c OK [23:08:25]MH_I2C_Read... [23:08:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:08:25]Read from MH i2c: E2 [23:08:25]MH_I2C_Read... [23:08:25]Read from MH i2c: E2 0E 00 [23:08:25]MH_I2C_Read... [23:08:25]Read from MH i2c: E2 0E 00 FE 20 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 A1 [23:08:25]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [23:08:25]wFMCommunicate OK [23:08:25]SAM_PROTO_GetShiftState done [23:08:25]FM_GetShiftState done [23:08:25]opened in 1729383220 [23:08:25]opened+sec_in_day 1729469620 [23:08:25]quantity*price = 60022 [23:08:25]sum+1 = 60024 [23:08:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 436 20.10.2024 23:08 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69591 ФПД: 6055799643931 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T230827&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69591&fm=6055799643931&tin=02508201610067®Number=0000000000156251&sum=60000 [23:08:26]StoreToDocumentArchive [23:08:26]shift 193 fd 69591 [23:08:26]save to /storage/0193/doc_00069591 [23:08:26]save last doc name /storage/0193/doc_00069591 to /storage/kkm_last_doc_name [23:08:26]save OK [23:08:26]Clear old archive folders... [23:08:26]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:08:26]tlvbuf is 00FE4150 [23:08:26]SAM_PROTO_ClearQueue [23:08:26]wFMCommunicate request_size=4 [23:08:26]MH_SAM_APDU [23:08:26]CAPDU: 80 09 00 00 [23:08:26]Write to MH i2c: E2 08 00 0B 21 80 09 00 00 00 00 00 00 9E [23:08:26]Write i2c OK [23:08:26]MH_I2C_Read... [23:08:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:08:26]Read from MH i2c: E2 [23:08:26]MH_I2C_Read... [23:08:26]Read from MH i2c: E2 03 00 [23:08:26]MH_I2C_Read... [23:08:26]Read from MH i2c: E2 03 00 0B 21 00 90 00 A0 [23:08:26]RAPDU: 90 00 [23:08:26]wFMCommunicate OK [23:08:26]SAM_PROTO_ClearQueue done [23:08:26]KKMCreateOFDPacket [23:08:26]OFDProtocolAddRootSTLVToBuf [23:08:26]FM_MakeSignedData [23:08:26]FM_MakeSignedData [23:08:26]SAM_PROTO_SignData [23:08:26]wFMCommunicate request_size=4 [23:08:26]MH_SAM_APDU [23:08:26]CAPDU: 80 0D 01 02 [23:08:26]Write to MH i2c: E2 08 00 0C 21 80 0D 01 02 00 00 00 00 A6 [23:08:26]Write i2c OK [23:08:26]MH_I2C_Read... [23:08:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:08:26]Read from MH i2c: E2 [23:08:26]MH_I2C_Read... [23:08:26]Read from MH i2c: E2 03 00 [23:08:26]MH_I2C_Read... [23:08:26]Read from MH i2c: E2 03 00 0C 21 00 90 00 A1 [23:08:26]RAPDU: 90 00 [23:08:26]wFMCommunicate OK [23:08:26]wFMCommunicate request_size=255 [23:08:26]MH_SAM_APDU [23:08:26]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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 77 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 01 00 00 F4 03 04 00 6B 8D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D7 0F 01 00 35 04 06 00 05 81 [23:08:26]Write to MH i2c: E2 02 01 0D 21 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 77 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 01 00 00 F4 03 04 00 6B 8D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D7 0F 01 00 35 04 06 00 05 81 00 00 7A [23:08:26]Write i2c OK [23:08:26]MH_I2C_Read... [23:08:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:08:27]Read from MH i2c: E2 [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: E2 03 00 [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: E2 03 00 0D 21 00 90 00 A2 [23:08:27]RAPDU: 90 00 [23:08:27]wFMCommunicate OK [23:08:27]wFMCommunicate request_size=9 [23:08:27]MH_SAM_APDU [23:08:27]CAPDU: 80 0D 02 02 04 F9 C9 5F 1B [23:08:27]Write to MH i2c: E2 0C 00 0E 21 80 0D 02 02 04 00 F9 C9 5F 1B 00 00 ED [23:08:27]Write i2c OK [23:08:27]MH_I2C_Read... [23:08:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:08:27]Read from MH i2c: E2 [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: E2 03 00 [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: E2 03 00 0E 21 00 90 00 A3 [23:08:27]RAPDU: 90 00 [23:08:27]wFMCommunicate OK [23:08:27]wFMCommunicate request_size=4 [23:08:27]MH_SAM_APDU [23:08:27]CAPDU: 80 0D 03 02 [23:08:27]Write to MH i2c: E2 08 00 0F 21 80 0D 03 02 00 00 00 00 AB [23:08:27]Write i2c OK [23:08:27]MH_I2C_Read... [23:08:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:08:27]Read from MH i2c: E2 [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: E2 0B 00 [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: E2 0B 00 0F 21 00 7C 04 D9 BB F5 21 D3 AA 90 00 53 [23:08:27]RAPDU: 7C 04 D9 BB F5 21 D3 AA 90 00 [23:08:27]wFMCommunicate OK [23:08:27]SAM_PROTO_SignData done [23:08:27]FM_MakeSignedData done [23:08:27]CreateOFDProtocolMessage [23:08:27]wFMCommunicate request_size=4 [23:08:27]MH_SAM_APDU [23:08:27]CAPDU: 80 11 00 00 [23:08:27]Write to MH i2c: E2 08 00 10 21 80 11 00 00 00 00 00 00 AB [23:08:27]Write i2c OK [23:08:27]MH_I2C_Read... [23:08:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:08:27]Read from MH i2c: E2 [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: E2 17 00 [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: E2 17 00 10 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FD [23:08:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:08:27]wFMCommunicate OK [23:08:27]CreateOFDProtocolMessage done [23:08:27]OFDSenderStorePacket 69591 [23:08:27]StoreOFDPacket docnum=69591 [23:08:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 B3 D3 06 01 19 7E 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 77 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 01 00 00 F4 03 04 00 6B 8D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D7 0F 01 00 35 04 06 00 05 81 F9 C9 5F 1B 7C 04 D9 BB F5 21 D3 AA [23:08:27]CheckFolder [23:08:27]dirname=/storage/ofd_packets [23:08:27]CheckFolder done [23:08:27]ProducePacketName [23:08:27]name=ofd_packets/00069591 [23:08:27]NVStorageSaveData ofd_packets/00069591 [23:08:27]File name is /storage/ofd_packets/00069591 [23:08:27]Write 300 bytes [23:08:27]NVStorageSaveData done [23:08:27]OFDSenderStorePacket done [23:08:27]KKMCreateOFDPacket done [23:08:27]NVStorageSaveData kkm_last_timestamp [23:08:27]File name is /storage/kkm_last_timestamp [23:08:27]Write 4 bytes [23:08:27]NVStorageSaveData done [23:08:27]ExternCall_PrintAddStr [23:08:27]wPrintStart [23:08:27]Write to MH i2c: 01 00 00 11 21 32 [23:08:27]Write i2c OK [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: 01 [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: 01 07 00 [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: 01 07 00 11 21 00 00 00 00 00 FF 0F 47 [23:08:27]RasterBufferAndPrint [23:08:27]line Счет N : (1)2885330 [23:08:27]line ИНН: 02508201610067 [23:08:27]line Контрольно-Кассовый Чек [23:08:27]line ПРОДАЖА [23:08:27]line ТРК (МРК, ГНК) : 71 [23:08:27]line Товар: 2711129700 [23:08:27]line ГАЗ-К-3 [23:08:27]line 15.430 * 38.90 [23:08:27]line = 600.23 [23:08:27]line НДС 12% НСП 1% [23:08:27]line > о реализуемом товаре [23:08:27]line ОКРУГЛЕНИЕ: -0.23 [23:08:27]line ИТОГО: 600.00 [23:08:27]line Внесено: 600.00 [23:08:27]line СДАЧА: 0.00 [23:08:27]line НСП 1% : 5.31 [23:08:27]line НДС 12% : 63.74 [23:08:27]line Наличными: 600.00 [23:08:27]line Безнал.: 0.00 [23:08:27]line Место: АЗС № 85 "Партнер Нефть" [23:08:27]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:08:27]line СНО: Общий режим [23:08:27]line Чек 436 20.10.2024 23:08 [23:08:27]line Смена: 193 ФФД: 1.0 [23:08:27]line ЗНМ: 0300000167 [23:08:27]line РНМ: 0000000000156251 [23:08:27]line Версия ККМ: v1.0 [23:08:27]line ФМ: 0000000000963346 [23:08:27]line ФД: 69591 [23:08:27]line ФПД: 6055799643931 [23:08:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T230827&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69591&fm=6055799643931&tin=02508201610067®Number=0000000000156251&sum=60000 [23:08:27]OFD Sender: Processing packet 69591 [packets to send 18, broken 17] [23:08:27]ProducePacketName [23:08:27]name=ofd_packets/00069591 [23:08:27]OFD Sender: To server: pG, [23:08:27]CommunicateWithHost lk.salyk.kg:30040 [23:08:27]ConnectInit lk.salyk.kg [23:08:27]written 0, free lines is 4095 [23:08:27]Connected sock=10 [23:08:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 B3 D3 06 01 19 7E 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 77 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 01 00 00 F4 03 04 00 6B 8D 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D7 0F 01 00 35 04 06 00 05 81 F9 C9 5F 1B 7C 04 D9 BB F5 21 D3 AA [23:08:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 EC EE 47 00 21 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D7 0F 01 00 F4 03 04 00 10 37 15 67 B6 04 01 00 00 0A F4 46 B3 21 4A 5D EF [23:08:27]CommunicateWithHost err = 0 [23:08:27]CheckOFDResponse [23:08:27]1017 (14) - 77093643461234 [23:08:27]1041 (16) - 0000000000963346 [23:08:27]1040 (4) - 69591 [23:08:27]1012 (4) - 20.10.2024 17:00 [23:08:27]1206 (1) - 0 [23:08:27]OFD Sender: Remove packet 69591 [23:08:27]ProducePacketName [23:08:27]name=ofd_packets/00069591 [23:08:27]NVStorageDeleteData [23:08:28]Write to MH i2c: 01 00 00 3C 21 5D [23:08:28]Write i2c OK [23:08:28]MH_I2C_Read... [23:08:28]Read from MH i2c: 01 [23:08:28]MH_I2C_Read... [23:08:28]Read from MH i2c: 01 07 00 [23:08:28]MH_I2C_Read... [23:08:28]Read from MH i2c: 01 07 00 3C 21 00 00 00 00 00 EB 0C 5B [23:08:28]RasterBufferAndPrint [23:08:28]line [23:08:28]line [23:08:28]line [23:08:28]line [23:08:28]line [23:08:28]written 0, free lines is 3316 [23:08:28]MH_Cut [23:08:28]Write to MH i2c: D1 01 00 43 21 01 36 [23:08:28]Write i2c OK [23:08:28]MH_I2C_Read... [23:08:28]Read from MH i2c: D1 [23:08:28]MH_I2C_Read... [23:08:28]Read from MH i2c: D1 01 00 [23:08:28]MH_I2C_Read... [23:08:28]Read from MH i2c: D1 01 00 43 21 00 35 [23:08:28]Write to MH i2c: 01 00 00 44 21 65 [23:08:28]Write i2c OK [23:08:28]MH_I2C_Read... [23:08:28]OFD Sender: No OFD packet to send [23:08:28]*** Cut start [23:08:28]*** Partial cut [23:08:28]*** CUTSNS_PIN = 1 [23:08:28]*** CUTSNS_PIN = 0 [23:08:28]*** Brake cut motor [23:08:29]Read from MH i2c: 01 [23:08:29]MH_I2C_Read... [23:08:29]*** Stop cut motor [23:08:29]*** Cut end [23:08:29]Read from MH i2c: 01 07 00 [23:08:29]MH_I2C_Read... [23:08:29]Read from MH i2c: 01 07 00 44 21 00 00 00 00 00 FF 0F 7A [23:08:29]process_action close_receipt done [23:08:29]requested_data is exist [23:08:29]produce_requested_data [23:08:29]requested_item fm.sn is exist - process it [23:08:29]wFMCommunicate request_size=4 [23:08:29]MH_SAM_APDU [23:08:29]CAPDU: 80 11 00 00 [23:08:29]Write to MH i2c: E2 08 00 45 21 80 11 00 00 00 00 00 00 E0 [23:08:29]Write i2c OK [23:08:29]MH_I2C_Read... [23:08:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:08:29]Read from MH i2c: E2 [23:08:29]MH_I2C_Read... [23:08:29]Read from MH i2c: E2 17 00 [23:08:29]MH_I2C_Read... [23:08:29]Read from MH i2c: E2 17 00 45 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 32 [23:08:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:08:29]wFMCommunicate OK [23:08:29]requested_item fd.num is exist - process it [23:08:29]SAM_PROTO_GetFieldsCounters [23:08:29]wFMCommunicate request_size=4 [23:08:29]MH_SAM_APDU [23:08:29]CAPDU: 80 13 00 00 [23:08:29]Write to MH i2c: E2 08 00 46 21 80 13 00 00 00 00 00 00 E3 [23:08:29]Write i2c OK [23:08:29]MH_I2C_Read... [23:08:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:08:29]Read from MH i2c: E2 [23:08:29]MH_I2C_Read... [23:08:29]Read from MH i2c: E2 62 00 [23:08:29]MH_I2C_Read... [23:08:29]Read from MH i2c: E2 62 00 46 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D7 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 B4 01 00 00 5E 04 04 00 B4 01 00 00 57 04 04 00 B5 01 00 00 19 04 04 00 00 00 00 00 90 00 C5 [23:08:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D7 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 B4 01 00 00 5E 04 04 00 B4 01 00 00 57 04 04 00 B5 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:08:29]wFMCommunicate OK [23:08:29]SAM_PROTO_GetFieldsCounters done [23:08:29]requested_item shift.num is exist - process it [23:08:29]requested_item shift.opened is exist - process it [23:08:29]req_shift_opened [23:08:29]FM_GetShiftState [23:08:29]SAM_PROTO_GetShiftState [23:08:29]wFMCommunicate request_size=4 [23:08:29]MH_SAM_APDU [23:08:29]CAPDU: 80 13 01 00 [23:08:29]Write to MH i2c: E2 08 00 47 21 80 13 01 00 00 00 00 00 E5 [23:08:29]Write i2c OK [23:08:29]MH_I2C_Read... [23:08:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:08:29]Read from MH i2c: E2 [23:08:29]MH_I2C_Read... [23:08:29]Read from MH i2c: E2 0E 00 [23:08:29]MH_I2C_Read... [23:08:29]Read from MH i2c: E2 0E 00 47 21 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 EB [23:08:29]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [23:08:29]wFMCommunicate OK [23:08:29]SAM_PROTO_GetShiftState done [23:08:29]FM_GetShiftState done [23:08:29]req_shift_opened done [23:08:29]requested_item shift.open_date is exist - process it [23:08:29]req_shift_open_date [23:08:29]req_shift_open_date done [23:08:29]produce_requested_data done [23:08:29]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69591,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [23:08:29]process_action_free close_receipt [23:08:29]json_value_free [23:08:29]json_value_free done [23:08:29]process_json_proto returns [23:08:29]Send response to host [23:08:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69591,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [23:08:29]free response buf [23:08:29]execute_script done [23:08:29]execute_script returns [23:08:29]free content buf [23:08:29]Sock 9.Close socket [23:08:29]Sock 9.Thread stoped [23:08:33]OFD Sender: No OFD packet to send [23:08:38]OFD Sender: No OFD packet to send [23:08:43]OFD Sender: No OFD packet to send [23:08:48]OFD Sender: No OFD packet to send [23:08:53]OFD Sender: No OFD packet to send [23:08:58]OFD Sender: No OFD packet to send [23:09:03]OFD Sender: No OFD packet to send [23:09:08]OFD Sender: No OFD packet to send [23:09:13]OFD Sender: No OFD packet to send [23:09:18]OFD Sender: No OFD packet to send [23:09:23]OFD Sender: No OFD packet to send [23:09:28]OFD Sender: No OFD packet to send [23:09:33]OFD Sender: No OFD packet to send [23:09:38]OFD Sender: No OFD packet to send [23:09:43]OFD Sender: No OFD packet to send [23:09:48]OFD Sender: No OFD packet to send [23:09:53]OFD Sender: No OFD packet to send [23:09:58]OFD Sender: No OFD packet to send [23:10:03]OFD Sender: No OFD packet to send [23:10:08]OFD Sender: No OFD packet to send [23:10:13]OFD Sender: No OFD packet to send [23:10:18]OFD Sender: No OFD packet to send [23:10:23]OFD Sender: No OFD packet to send [23:10:28]OFD Sender: No OFD packet to send [23:10:33]OFD Sender: No OFD packet to send [23:10:38]OFD Sender: No OFD packet to send [23:10:43]OFD Sender: No OFD packet to send [23:10:48]OFD Sender: No OFD packet to send [23:10:53]OFD Sender: No OFD packet to send [23:10:58]OFD Sender: No OFD packet to send [23:11:03]OFD Sender: No OFD packet to send [23:11:08]OFD Sender: No OFD packet to send [23:11:13]OFD Sender: No OFD packet to send [23:11:18]OFD Sender: No OFD packet to send [23:11:23]OFD Sender: No OFD packet to send [23:11:28]OFD Sender: No OFD packet to send [23:11:33]OFD Sender: No OFD packet to send [23:11:38]OFD Sender: No OFD packet to send [23:11:43]OFD Sender: No OFD packet to send [23:11:48]OFD Sender: No OFD packet to send [23:11:53]OFD Sender: No OFD packet to send [23:11:58]OFD Sender: No OFD packet to send [23:12:03]OFD Sender: No OFD packet to send [23:12:08]OFD Sender: No OFD packet to send [23:12:13]OFD Sender: No OFD packet to send [23:12:18]OFD Sender: No OFD packet to send [23:12:23]OFD Sender: No OFD packet to send [23:12:28]OFD Sender: No OFD packet to send [23:12:33]OFD Sender: No OFD packet to send [23:12:38]OFD Sender: No OFD packet to send [23:12:43]OFD Sender: No OFD packet to send [23:12:48]OFD Sender: No OFD packet to send [23:12:53]OFD Sender: No OFD packet to send [23:12:58]OFD Sender: No OFD packet to send [23:13:03]OFD Sender: No OFD packet to send [23:13:08]OFD Sender: No OFD packet to send [23:13:13]OFD Sender: No OFD packet to send [23:13:18]OFD Sender: No OFD packet to send [23:13:23]OFD Sender: No OFD packet to send [23:13:28]OFD Sender: No OFD packet to send [23:13:33]OFD Sender: No OFD packet to send [23:13:38]OFD Sender: No OFD packet to send [23:13:43]OFD Sender: No OFD packet to send [23:13:48]OFD Sender: No OFD packet to send [23:13:53]OFD Sender: No OFD packet to send [23:13:58]OFD Sender: No OFD packet to send [23:14:03]OFD Sender: No OFD packet to send [23:14:08]OFD Sender: No OFD packet to send [23:14:13]OFD Sender: No OFD packet to send [23:14:18]OFD Sender: No OFD packet to send [23:14:23]OFD Sender: No OFD packet to send [23:14:28]OFD Sender: No OFD packet to send [23:14:30]accept exits with 7 [23:14:30]New connection [23:14:30]New thread 3066654052 created [23:14:30]Thread 3066797412 joined [23:14:30]Waiting for new connection... [23:14:30] Sock 7.Parse request [23:14:30]Sock 7.Check first char [23:14:30]Sock 7.First char is OK [23:14:30]request: POST /json_proto HTTP/1.0 [23:14:30]Method: POST [23:14:30]URL: /json_proto [23:14:30]Method is POST - this is cgi request [23:14:30]url: /json_proto [23:14:30]query_string will be loaded in cgi processing [23:14:30]execute_cgi json_proto POST (null) [23:14:30]execute_cgi path=json_proto method=POST [23:14:30]POST find Content-Length [23:14:30]Host: 172.17.50.3:8080 [23:14:30]Content-Length: 680 [23:14:30]Content-Type: application/json [23:14:30] [23:14:30]POST finish read [23:14:30]Found Content-Length = 680 [23:14:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:14:30]execute_script... [23:14:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:14:30]POST & json_proto [23:14:30]process_json_proto [23:14:30]json parsed OK: [23:14:30]protocol is kg_v1.0 [23:14:30]action value=close_receipt [23:14:30]process_action close_receipt [23:14:30]cmd_close_receipt [23:14:30]MH_GetDate [23:14:30]Write to MH i2c: F0 00 00 48 21 58 [23:14:30]Write i2c OK [23:14:30]MH_I2C_Read... [23:14:30]Read from MH i2c: F0 [23:14:30]MH_I2C_Read... [23:14:30]Read from MH i2c: F0 09 00 [23:14:30]MH_I2C_Read... [23:14:30]Read from MH i2c: F0 09 00 48 21 00 D7 8E 15 67 6B 98 1E 66 C9 [23:14:30]GetLastDocTimeStamp 1729465707 [23:14:30]current date 1729466071 [23:14:30]FM_GetShiftState [23:14:30]SAM_PROTO_GetShiftState [23:14:30]wFMCommunicate request_size=4 [23:14:30]MH_SAM_APDU [23:14:30]CAPDU: 80 13 01 00 [23:14:30]Write to MH i2c: E2 08 00 49 21 80 13 01 00 00 00 00 00 E7 [23:14:30]Write i2c OK [23:14:30]MH_I2C_Read... [23:14:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:14:30]Read from MH i2c: E2 [23:14:30]MH_I2C_Read... [23:14:30]Read from MH i2c: E2 0E 00 [23:14:30]MH_I2C_Read... [23:14:30]Read from MH i2c: E2 0E 00 49 21 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 ED [23:14:30]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [23:14:30]wFMCommunicate OK [23:14:30]SAM_PROTO_GetShiftState done [23:14:30]FM_GetShiftState done [23:14:30]opened in 1729383220 [23:14:30]opened+sec_in_day 1729469620 [23:14:30]quantity*price = 400050 [23:14:30]sum+1 = 400051 [23:14:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 437 20.10.2024 23:14 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69592 ФПД: 165529647287462 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T231431&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69592&fm=165529647287462&tin=02508201610067®Number=0000000000156251&sum=400000 [23:14:31]StoreToDocumentArchive [23:14:31]shift 193 fd 69592 [23:14:31]save to /storage/0193/doc_00069592 [23:14:31]save last doc name /storage/0193/doc_00069592 to /storage/kkm_last_doc_name [23:14:31]save OK [23:14:31]Clear old archive folders... [23:14:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:14:31]tlvbuf is 00F92DA0 [23:14:31]SAM_PROTO_ClearQueue [23:14:31]wFMCommunicate request_size=4 [23:14:31]MH_SAM_APDU [23:14:31]CAPDU: 80 09 00 00 [23:14:31]Write to MH i2c: E2 08 00 56 21 80 09 00 00 00 00 00 00 E9 [23:14:31]Write i2c OK [23:14:31]MH_I2C_Read... [23:14:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:14:31]Read from MH i2c: E2 [23:14:31]MH_I2C_Read... [23:14:31]Read from MH i2c: E2 03 00 [23:14:31]MH_I2C_Read... [23:14:31]Read from MH i2c: E2 03 00 56 21 00 90 00 EB [23:14:31]RAPDU: 90 00 [23:14:31]wFMCommunicate OK [23:14:31]SAM_PROTO_ClearQueue done [23:14:31]KKMCreateOFDPacket [23:14:31]OFDProtocolAddRootSTLVToBuf [23:14:31]FM_MakeSignedData [23:14:31]FM_MakeSignedData [23:14:31]SAM_PROTO_SignData [23:14:31]wFMCommunicate request_size=4 [23:14:31]MH_SAM_APDU [23:14:31]CAPDU: 80 0D 01 02 [23:14:31]Write to MH i2c: E2 08 00 57 21 80 0D 01 02 00 00 00 00 F1 [23:14:31]Write i2c OK [23:14:31]MH_I2C_Read... [23:14:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:14:31]Read from MH i2c: E2 [23:14:31]MH_I2C_Read... [23:14:31]Read from MH i2c: E2 03 00 [23:14:31]MH_I2C_Read... [23:14:31]Read from MH i2c: E2 03 00 57 21 00 90 00 EC [23:14:31]RAPDU: 90 00 [23:14:31]wFMCommunicate OK [23:14:31]wFMCommunicate request_size=255 [23:14:31]MH_SAM_APDU [23:14:31]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 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 01 00 00 F4 03 04 00 D7 8E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D8 0F 01 00 35 04 06 00 96 8C 5F D3 [23:14:31]Write to MH i2c: E2 02 01 58 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 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 01 00 00 F4 03 04 00 D7 8E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D8 0F 01 00 35 04 06 00 96 8C 5F D3 00 00 29 [23:14:31]Write i2c OK [23:14:31]MH_I2C_Read... [23:14:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:31]Read from MH i2c: E2 [23:14:31]MH_I2C_Read... [23:14:31]Read from MH i2c: E2 03 00 [23:14:31]MH_I2C_Read... [23:14:31]Read from MH i2c: E2 03 00 58 21 00 90 00 ED [23:14:31]RAPDU: 90 00 [23:14:31]wFMCommunicate OK [23:14:31]wFMCommunicate request_size=7 [23:14:31]MH_SAM_APDU [23:14:31]CAPDU: 80 0D 02 02 02 8C A6 [23:14:31]Write to MH i2c: E2 0A 00 59 21 80 0D 02 02 02 00 8C A6 00 00 2A [23:14:31]Write i2c OK [23:14:31]MH_I2C_Read... [23:14:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:31]Read from MH i2c: E2 [23:14:31]MH_I2C_Read... [23:14:31]Read from MH i2c: E2 03 00 [23:14:31]MH_I2C_Read... [23:14:31]Read from MH i2c: E2 03 00 59 21 00 90 00 EE [23:14:31]RAPDU: 90 00 [23:14:31]wFMCommunicate OK [23:14:31]wFMCommunicate request_size=4 [23:14:31]MH_SAM_APDU [23:14:31]CAPDU: 80 0D 03 02 [23:14:31]Write to MH i2c: E2 08 00 5A 21 80 0D 03 02 00 00 00 00 F6 [23:14:31]Write i2c OK [23:14:31]MH_I2C_Read... [23:14:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:14:31]Read from MH i2c: E2 [23:14:31]MH_I2C_Read... [23:14:31]Read from MH i2c: E2 0B 00 [23:14:31]MH_I2C_Read... [23:14:31]Read from MH i2c: E2 0B 00 5A 21 00 4F 8E 65 65 D9 96 67 90 90 00 04 [23:14:31]RAPDU: 4F 8E 65 65 D9 96 67 90 90 00 [23:14:31]wFMCommunicate OK [23:14:31]SAM_PROTO_SignData done [23:14:31]FM_MakeSignedData done [23:14:31]CreateOFDProtocolMessage [23:14:31]wFMCommunicate request_size=4 [23:14:31]MH_SAM_APDU [23:14:31]CAPDU: 80 11 00 00 [23:14:31]Write to MH i2c: E2 08 00 5B 21 80 11 00 00 00 00 00 00 F6 [23:14:31]Write i2c OK [23:14:31]MH_I2C_Read... [23:14:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:14:32]Read from MH i2c: E2 [23:14:32]MH_I2C_Read... [23:14:32]Read from MH i2c: E2 17 00 [23:14:32]MH_I2C_Read... [23:14:32]Read from MH i2c: E2 17 00 5B 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 48 [23:14:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:14:32]wFMCommunicate OK [23:14:32]CreateOFDProtocolMessage done [23:14:32]OFDSenderStorePacket 69592 [23:14:32]StoreOFDPacket docnum=69592 [23:14:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 B4 4F 04 01 BF A2 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 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 01 00 00 F4 03 04 00 D7 8E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D8 0F 01 00 35 04 06 00 96 8C 5F D3 8C A6 4F 8E 65 65 D9 96 67 90 [23:14:32]CheckFolder [23:14:32]dirname=/storage/ofd_packets [23:14:32]CheckFolder done [23:14:32]ProducePacketName [23:14:32]name=ofd_packets/00069592 [23:14:32]NVStorageSaveData ofd_packets/00069592 [23:14:32]File name is /storage/ofd_packets/00069592 [23:14:32]Write 298 bytes [23:14:32]NVStorageSaveData done [23:14:32]OFDSenderStorePacket done [23:14:32]KKMCreateOFDPacket done [23:14:32]NVStorageSaveData kkm_last_timestamp [23:14:32]File name is /storage/kkm_last_timestamp [23:14:32]Write 4 bytes [23:14:32]NVStorageSaveData done [23:14:32]ExternCall_PrintAddStr [23:14:32]wPrintStart [23:14:32]Write to MH i2c: 01 00 00 5C 21 7D [23:14:32]OFD Sender: Processing packet 69592 [packets to send 18, broken 17] [23:14:32]ProducePacketName [23:14:32]name=ofd_packets/00069592 [23:14:32]OFD Sender: To server: pG, [23:14:32]CommunicateWithHost lk.salyk.kg:30040 [23:14:32]ConnectInit lk.salyk.kg [23:14:32]Write i2c OK [23:14:32]MH_I2C_Read... [23:14:32]Read from MH i2c: 01 [23:14:32]MH_I2C_Read... [23:14:32]Read from MH i2c: 01 07 00 [23:14:32]MH_I2C_Read... [23:14:32]Read from MH i2c: 01 07 00 5C 21 00 00 00 00 00 FF 0F 92 [23:14:32]RasterBufferAndPrint [23:14:32]line Счет N : (1)2885331 [23:14:32]line ИНН: 02508201610067 [23:14:32]line Контрольно-Кассовый Чек [23:14:32]line ПРОДАЖА [23:14:32]line ТРК (МРК, ГНК) : 51 [23:14:32]line Товар: 2710194210 [23:14:32]line ДТ-К-5 [23:14:32]line 52.500 * 76.20 [23:14:32]line = 4000.50 [23:14:32]line НДС 12% НСП 1% [23:14:32]line > о реализуемом товаре [23:14:32]line ОКРУГЛЕНИЕ: -0.50 [23:14:32]line ИТОГО: 4000.00 [23:14:32]line Внесено: 4000.00 [23:14:32]line СДАЧА: 0.00 [23:14:32]line НСП 1% : 35.40 [23:14:32]line НДС 12% : 424.83 [23:14:32]line Наличными: 4000.00 [23:14:32]line Безнал.: 0.00 [23:14:32]line Место: АЗС № 85 "Партнер Нефть" [23:14:32]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:14:32]line СНО: Общий режим [23:14:32]line Чек 437 20.10.2024 23:14 [23:14:32]line Смена: 193 ФФД: 1.0 [23:14:32]line ЗНМ: 0300000167 [23:14:32]line РНМ: 0000000000156251 [23:14:32]line Версия ККМ: v1.0 [23:14:32]line ФМ: 0000000000963346 [23:14:32]line ФД: 69592 [23:14:32]line ФПД: 165529647287462 [23:14:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T231431&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69592&fm=165529647287462&tin=02508201610067®Number=0000000000156251&sum=400000 [23:14:32]Connected sock=10 [23:14:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 B4 4F 04 01 BF A2 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 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 01 00 00 F4 03 04 00 D7 8E 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D8 0F 01 00 35 04 06 00 96 8C 5F D3 8C A6 4F 8E 65 65 D9 96 67 90 [23:14:32]written 0, free lines is 4095 [23:14:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 D2 4A 47 00 6B 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D8 0F 01 00 F4 03 04 00 7D 38 15 67 B6 04 01 00 00 EF CD 53 2E 8A A3 DB AC [23:14:32]CommunicateWithHost err = 0 [23:14:32]CheckOFDResponse [23:14:32]1017 (14) - 77093643461234 [23:14:32]1041 (16) - 0000000000963346 [23:14:32]1040 (4) - 69592 [23:14:32]1012 (4) - 20.10.2024 17:06 [23:14:32]1206 (1) - 0 [23:14:32]OFD Sender: Remove packet 69592 [23:14:32]ProducePacketName [23:14:32]name=ofd_packets/00069592 [23:14:32]NVStorageDeleteData [23:14:32]Write to MH i2c: 01 00 00 87 21 A8 [23:14:32]Write i2c OK [23:14:32]MH_I2C_Read... [23:14:32]Read from MH i2c: 01 [23:14:32]MH_I2C_Read... [23:14:32]Read from MH i2c: 01 07 00 [23:14:32]MH_I2C_Read... [23:14:32]Read from MH i2c: 01 07 00 87 21 00 00 00 00 00 F3 0C AE [23:14:32]RasterBufferAndPrint [23:14:32]line [23:14:32]line [23:14:32]line [23:14:32]line [23:14:32]line [23:14:32]written 0, free lines is 3321 [23:14:32]MH_Cut [23:14:32]Write to MH i2c: D1 01 00 8E 21 01 81 [23:14:32]Write i2c OK [23:14:32]MH_I2C_Read... [23:14:32]Read from MH i2c: D1 [23:14:32]MH_I2C_Read... [23:14:32]Read from MH i2c: D1 01 00 [23:14:32]MH_I2C_Read... [23:14:32]Read from MH i2c: D1 01 00 8E 21 00 80 [23:14:32]Write to MH i2c: 01 00 00 8F 21 B0 [23:14:32]Write i2c OK [23:14:32]MH_I2C_Read... [23:14:33]OFD Sender: No OFD packet to send [23:14:33]*** Cut start [23:14:33]*** Partial cut [23:14:33]*** CUTSNS_PIN = 1 [23:14:33]*** CUTSNS_PIN = 0 [23:14:33]*** Brake cut motor [23:14:34]Read from MH i2c: 01 [23:14:34]MH_I2C_Read... [23:14:34]*** Stop cut motor [23:14:34]*** Cut end [23:14:34]Read from MH i2c: 01 07 00 [23:14:34]MH_I2C_Read... [23:14:34]Read from MH i2c: 01 07 00 8F 21 00 00 00 00 00 FF 0F C5 [23:14:34]process_action close_receipt done [23:14:34]requested_data is exist [23:14:34]produce_requested_data [23:14:34]requested_item fm.sn is exist - process it [23:14:34]wFMCommunicate request_size=4 [23:14:34]MH_SAM_APDU [23:14:34]CAPDU: 80 11 00 00 [23:14:34]Write to MH i2c: E2 08 00 90 21 80 11 00 00 00 00 00 00 2B [23:14:34]Write i2c OK [23:14:34]MH_I2C_Read... [23:14:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:14:34]Read from MH i2c: E2 [23:14:34]MH_I2C_Read... [23:14:34]Read from MH i2c: E2 17 00 [23:14:34]MH_I2C_Read... [23:14:34]Read from MH i2c: E2 17 00 90 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7D [23:14:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:14:34]wFMCommunicate OK [23:14:34]requested_item fd.num is exist - process it [23:14:34]SAM_PROTO_GetFieldsCounters [23:14:34]wFMCommunicate request_size=4 [23:14:34]MH_SAM_APDU [23:14:34]CAPDU: 80 13 00 00 [23:14:34]Write to MH i2c: E2 08 00 91 21 80 13 00 00 00 00 00 00 2E [23:14:34]Write i2c OK [23:14:34]MH_I2C_Read... [23:14:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:14:34]Read from MH i2c: E2 [23:14:34]MH_I2C_Read... [23:14:34]Read from MH i2c: E2 62 00 [23:14:34]MH_I2C_Read... [23:14:34]Read from MH i2c: E2 62 00 91 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D8 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 B5 01 00 00 5E 04 04 00 B5 01 00 00 57 04 04 00 B6 01 00 00 19 04 04 00 00 00 00 00 90 00 14 [23:14:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D8 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 B5 01 00 00 5E 04 04 00 B5 01 00 00 57 04 04 00 B6 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:14:34]wFMCommunicate OK [23:14:34]SAM_PROTO_GetFieldsCounters done [23:14:34]requested_item shift.num is exist - process it [23:14:34]requested_item shift.opened is exist - process it [23:14:34]req_shift_opened [23:14:34]FM_GetShiftState [23:14:34]SAM_PROTO_GetShiftState [23:14:34]wFMCommunicate request_size=4 [23:14:34]MH_SAM_APDU [23:14:34]CAPDU: 80 13 01 00 [23:14:34]Write to MH i2c: E2 08 00 92 21 80 13 01 00 00 00 00 00 30 [23:14:34]Write i2c OK [23:14:34]MH_I2C_Read... [23:14:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:14:34]Read from MH i2c: E2 [23:14:34]MH_I2C_Read... [23:14:34]Read from MH i2c: E2 0E 00 [23:14:34]MH_I2C_Read... [23:14:34]Read from MH i2c: E2 0E 00 92 21 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 36 [23:14:34]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [23:14:34]wFMCommunicate OK [23:14:34]SAM_PROTO_GetShiftState done [23:14:34]FM_GetShiftState done [23:14:34]req_shift_opened done [23:14:34]requested_item shift.open_date is exist - process it [23:14:34]req_shift_open_date [23:14:34]req_shift_open_date done [23:14:34]produce_requested_data done [23:14:34]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69592,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [23:14:34]process_action_free close_receipt [23:14:34]json_value_free [23:14:34]json_value_free done [23:14:34]process_json_proto returns [23:14:34]Send response to host [23:14:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69592,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [23:14:34]free response buf [23:14:34]execute_script done [23:14:34]execute_script returns [23:14:34]free content buf [23:14:34]Sock 7.Close socket [23:14:34]Sock 7.Thread stoped [23:14:38]OFD Sender: No OFD packet to send [23:14:43]OFD Sender: No OFD packet to send [23:14:48]OFD Sender: No OFD packet to send [23:14:53]OFD Sender: No OFD packet to send [23:14:58]OFD Sender: No OFD packet to send [23:15:03]OFD Sender: No OFD packet to send [23:15:08]OFD Sender: No OFD packet to send [23:15:13]OFD Sender: No OFD packet to send [23:15:18]OFD Sender: No OFD packet to send [23:15:23]OFD Sender: No OFD packet to send [23:15:28]OFD Sender: No OFD packet to send [23:15:33]OFD Sender: No OFD packet to send [23:15:38]OFD Sender: No OFD packet to send [23:15:43]OFD Sender: No OFD packet to send [23:15:48]OFD Sender: No OFD packet to send [23:15:53]OFD Sender: No OFD packet to send [23:15:58]OFD Sender: No OFD packet to send [23:16:03]OFD Sender: No OFD packet to send [23:16:08]OFD Sender: No OFD packet to send [23:16:13]OFD Sender: No OFD packet to send [23:16:18]OFD Sender: No OFD packet to send [23:16:23]OFD Sender: No OFD packet to send [23:16:28]OFD Sender: No OFD packet to send [23:16:33]OFD Sender: No OFD packet to send [23:16:38]OFD Sender: No OFD packet to send [23:16:40]accept exits with 9 [23:16:40]New connection [23:16:40]New thread 3066797412 created [23:16:40]Thread 3066654052 joined [23:16:40]Waiting for new connection... [23:16:40] Sock 9.Parse request [23:16:40]Sock 9.Check first char [23:16:40]Sock 9.First char is OK [23:16:40]request: POST /json_proto HTTP/1.0 [23:16:40]Method: POST [23:16:40]URL: /json_proto [23:16:40]Method is POST - this is cgi request [23:16:40]url: /json_proto [23:16:40]query_string will be loaded in cgi processing [23:16:40]execute_cgi json_proto POST (null) [23:16:40]execute_cgi path=json_proto method=POST [23:16:40]POST find Content-Length [23:16:40]Host: 172.17.50.3:8080 [23:16:40]Content-Length: 767 [23:16:40]Content-Type: application/json [23:16:40] [23:16:40]POST finish read [23:16:40]Found Content-Length = 767 [23:16:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:16:40]execute_script... [23:16:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:16:40]POST & json_proto [23:16:40]process_json_proto [23:16:40]json parsed OK: [23:16:40]protocol is kg_v1.0 [23:16:40]action value=close_receipt [23:16:40]process_action close_receipt [23:16:40]cmd_close_receipt [23:16:40]MH_GetDate [23:16:40]Write to MH i2c: F0 00 00 93 21 A3 [23:16:40]Write i2c OK [23:16:40]MH_I2C_Read... [23:16:40]Read from MH i2c: F0 [23:16:40]MH_I2C_Read... [23:16:40]Read from MH i2c: F0 09 00 [23:16:40]MH_I2C_Read... [23:16:40]Read from MH i2c: F0 09 00 93 21 00 59 8F 15 67 6B 98 1E 66 97 [23:16:40]GetLastDocTimeStamp 1729466071 [23:16:40]current date 1729466201 [23:16:40]FM_GetShiftState [23:16:40]SAM_PROTO_GetShiftState [23:16:40]wFMCommunicate request_size=4 [23:16:40]MH_SAM_APDU [23:16:40]CAPDU: 80 13 01 00 [23:16:40]Write to MH i2c: E2 08 00 94 21 80 13 01 00 00 00 00 00 32 [23:16:40]Write i2c OK [23:16:40]MH_I2C_Read... [23:16:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:16:40]Read from MH i2c: E2 [23:16:40]MH_I2C_Read... [23:16:40]Read from MH i2c: E2 0E 00 [23:16:40]MH_I2C_Read... [23:16:40]Read from MH i2c: E2 0E 00 94 21 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 38 [23:16:40]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [23:16:40]wFMCommunicate OK [23:16:40]SAM_PROTO_GetShiftState done [23:16:40]FM_GetShiftState done [23:16:40]opened in 1729383220 [23:16:40]opened+sec_in_day 1729469620 [23:16:40]quantity*price = 40006 [23:16:40]sum+1 = 40007 [23:16:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 438 20.10.2024 23:16 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69593 ФПД: 181319532836328 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T231641&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69593&fm=181319532836328&tin=02508201610067®Number=0000000000156251&sum=40006 [23:16:41]StoreToDocumentArchive [23:16:41]shift 193 fd 69593 [23:16:41]save to /storage/0193/doc_00069593 [23:16:41]save last doc name /storage/0193/doc_00069593 to /storage/kkm_last_doc_name [23:16:41]save OK [23:16:41]Clear old archive folders... [23:16:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:16:41]tlvbuf is 00F419A0 [23:16:41]SAM_PROTO_ClearQueue [23:16:41]wFMCommunicate request_size=4 [23:16:41]MH_SAM_APDU [23:16:41]CAPDU: 80 09 00 00 [23:16:41]Write to MH i2c: E2 08 00 A1 21 80 09 00 00 00 00 00 00 34 [23:16:41]Write i2c OK [23:16:41]MH_I2C_Read... [23:16:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:16:41]Read from MH i2c: E2 [23:16:41]MH_I2C_Read... [23:16:41]Read from MH i2c: E2 03 00 [23:16:41]MH_I2C_Read... [23:16:41]Read from MH i2c: E2 03 00 A1 21 00 90 00 36 [23:16:41]RAPDU: 90 00 [23:16:41]wFMCommunicate OK [23:16:41]SAM_PROTO_ClearQueue done [23:16:41]KKMCreateOFDPacket [23:16:41]OFDProtocolAddRootSTLVToBuf [23:16:41]FM_MakeSignedData [23:16:41]FM_MakeSignedData [23:16:41]SAM_PROTO_SignData [23:16:41]wFMCommunicate request_size=4 [23:16:41]MH_SAM_APDU [23:16:41]CAPDU: 80 0D 01 02 [23:16:41]Write to MH i2c: E2 08 00 A2 21 80 0D 01 02 00 00 00 00 3C [23:16:41]Write i2c OK [23:16:41]MH_I2C_Read... [23:16:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:16:41]Read from MH i2c: E2 [23:16:41]MH_I2C_Read... [23:16:41]Read from MH i2c: E2 03 00 [23:16:41]MH_I2C_Read... [23:16:41]Read from MH i2c: E2 03 00 A2 21 00 90 00 37 [23:16:41]RAPDU: 90 00 [23:16:41]wFMCommunicate OK [23:16:41]wFMCommunicate request_size=255 [23:16:41]MH_SAM_APDU [23:16:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 01 00 00 F4 03 04 00 59 8F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D9 0F 01 00 35 04 06 00 A4 [23:16:41]Write to MH i2c: E2 02 01 A3 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 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 01 00 00 F4 03 04 00 59 8F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D9 0F 01 00 35 04 06 00 A4 00 00 09 [23:16:41]Write i2c OK [23:16:41]MH_I2C_Read... [23:16:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:16:41]Read from MH i2c: E2 [23:16:41]MH_I2C_Read... [23:16:41]Read from MH i2c: E2 03 00 [23:16:41]MH_I2C_Read... [23:16:41]Read from MH i2c: E2 03 00 A3 21 00 90 00 38 [23:16:41]RAPDU: 90 00 [23:16:41]wFMCommunicate OK [23:16:41]wFMCommunicate request_size=10 [23:16:41]MH_SAM_APDU [23:16:41]CAPDU: 80 0D 02 02 05 E8 BE 58 75 E8 [23:16:41]Write to MH i2c: E2 0D 00 A4 21 80 0D 02 02 05 00 E8 BE 58 75 E8 00 00 A4 [23:16:41]Write i2c OK [23:16:41]MH_I2C_Read... [23:16:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:16:41]Read from MH i2c: E2 [23:16:41]MH_I2C_Read... [23:16:41]Read from MH i2c: E2 03 00 [23:16:41]MH_I2C_Read... [23:16:41]Read from MH i2c: E2 03 00 A4 21 00 90 00 39 [23:16:41]RAPDU: 90 00 [23:16:41]wFMCommunicate OK [23:16:41]wFMCommunicate request_size=4 [23:16:41]MH_SAM_APDU [23:16:41]CAPDU: 80 0D 03 02 [23:16:41]Write to MH i2c: E2 08 00 A5 21 80 0D 03 02 00 00 00 00 41 [23:16:41]Write i2c OK [23:16:41]MH_I2C_Read... [23:16:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:16:41]Read from MH i2c: E2 [23:16:41]MH_I2C_Read... [23:16:41]Read from MH i2c: E2 0B 00 [23:16:41]MH_I2C_Read... [23:16:41]Read from MH i2c: E2 0B 00 A5 21 00 96 AE BA 2E CF E0 58 DE 90 00 53 [23:16:41]RAPDU: 96 AE BA 2E CF E0 58 DE 90 00 [23:16:41]wFMCommunicate OK [23:16:41]SAM_PROTO_SignData done [23:16:41]FM_MakeSignedData done [23:16:41]CreateOFDProtocolMessage [23:16:41]wFMCommunicate request_size=4 [23:16:41]MH_SAM_APDU [23:16:41]CAPDU: 80 11 00 00 [23:16:41]Write to MH i2c: E2 08 00 A6 21 80 11 00 00 00 00 00 00 41 [23:16:41]Write i2c OK [23:16:41]MH_I2C_Read... [23:16:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:16:41]Read from MH i2c: E2 [23:16:41]MH_I2C_Read... [23:16:41]Read from MH i2c: E2 17 00 [23:16:41]MH_I2C_Read... [23:16:41]Read from MH i2c: E2 17 00 A6 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 93 [23:16:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:16:41]wFMCommunicate OK [23:16:41]CreateOFDProtocolMessage done [23:16:41]OFDSenderStorePacket 69593 [23:16:41]StoreOFDPacket docnum=69593 [23:16:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 E3 78 07 01 71 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 01 00 00 F4 03 04 00 59 8F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D9 0F 01 00 35 04 06 00 A4 E8 BE 58 75 E8 96 AE BA 2E CF E0 58 DE [23:16:41]CheckFolder [23:16:41]dirname=/storage/ofd_packets [23:16:41]CheckFolder done [23:16:41]ProducePacketName [23:16:41]name=ofd_packets/00069593 [23:16:41]NVStorageSaveData ofd_packets/00069593 [23:16:41]File name is /storage/ofd_packets/00069593 [23:16:41]Write 301 bytes [23:16:41]NVStorageSaveData done [23:16:41]OFDSenderStorePacket done [23:16:41]KKMCreateOFDPacket done [23:16:41]NVStorageSaveData kkm_last_timestamp [23:16:41]File name is /storage/kkm_last_timestamp [23:16:41]Write 4 bytes [23:16:41]NVStorageSaveData done [23:16:41]ExternCall_PrintAddStr [23:16:41]wPrintStart [23:16:41]Write to MH i2c: 01 00 00 A7 21 C8 [23:16:41]OFD Sender: Processing packet 69593 [packets to send 18, broken 17] [23:16:41]ProducePacketName [23:16:41]name=ofd_packets/00069593 [23:16:41]OFD Sender: To server: pG, [23:16:41]CommunicateWithHost lk.salyk.kg:30040 [23:16:41]ConnectInit lk.salyk.kg [23:16:41]Write i2c OK [23:16:41]MH_I2C_Read... [23:16:41]Read from MH i2c: 01 [23:16:41]MH_I2C_Read... [23:16:41]Read from MH i2c: 01 07 00 [23:16:41]MH_I2C_Read... [23:16:41]Read from MH i2c: 01 07 00 A7 21 00 00 00 00 00 FF 0F DD [23:16:41]RasterBufferAndPrint [23:16:41]line Счет N : (1)2885332 [23:16:41]line ИНН: 02508201610067 [23:16:41]line Контрольно-Кассовый Чек [23:16:41]line ПРОДАЖА [23:16:41]line ТРК (МРК, ГНК) : 32 [23:16:41]line Товар: 2710124130 [23:16:41]line Аи-92-К-5 [23:16:41]line 5.980 * 66.90 [23:16:41]line = 400.06 [23:16:41]line НДС 12% НСП 1% [23:16:41]line > о реализуемом товаре [23:16:41]line ИТОГО: 400.06 [23:16:41]line НСП 1% : 3.54 [23:16:41]line НДС 12% : 42.48 [23:16:41]line Наличными: 0.00 [23:16:41]line Безнал.: 400.06 [23:16:41]line Место: АЗС № 85 "Партнер Нефть" [23:16:41]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:16:41]line СНО: Общий режим [23:16:41]line Чек 438 20.10.2024 23:16 [23:16:41]line Смена: 193 ФФД: 1.0 [23:16:41]line ЗНМ: 0300000167 [23:16:41]line РНМ: 0000000000156251 [23:16:41]line Версия ККМ: v1.0 [23:16:42]line Платежная система: Mbank [23:16:42]line ФМ: 0000000000963346 [23:16:42]line ФД: 69593 [23:16:42]line ФПД: 181319532836328 [23:16:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T231641&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69593&fm=181319532836328&tin=02508201610067®Number=0000000000156251&sum=40006 [23:16:42]Connected sock=10 [23:16:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 E3 78 07 01 71 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 01 00 00 F4 03 04 00 59 8F 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D9 0F 01 00 35 04 06 00 A4 E8 BE 58 75 E8 96 AE BA 2E CF E0 58 DE [23:16:42]written 0, free lines is 4095 [23:16:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 1E AD 47 00 E1 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 D9 0F 01 00 F4 03 04 00 FE 38 15 67 B6 04 01 00 00 33 A1 92 84 70 74 4A DA [23:16:42]CommunicateWithHost err = 0 [23:16:42]CheckOFDResponse [23:16:42]1017 (14) - 77093643461234 [23:16:42]1041 (16) - 0000000000963346 [23:16:42]1040 (4) - 69593 [23:16:42]1012 (4) - 20.10.2024 17:08 [23:16:42]1206 (1) - 0 [23:16:42]OFD Sender: Remove packet 69593 [23:16:42]ProducePacketName [23:16:42]name=ofd_packets/00069593 [23:16:42]NVStorageDeleteData [23:16:42]Write to MH i2c: 01 00 00 D0 21 F1 [23:16:42]Write i2c OK [23:16:42]MH_I2C_Read... [23:16:42]Read from MH i2c: 01 [23:16:42]MH_I2C_Read... [23:16:42]Read from MH i2c: 01 07 00 [23:16:42]MH_I2C_Read... [23:16:42]Read from MH i2c: 01 07 00 D0 21 00 00 00 00 00 19 0D 1E [23:16:42]RasterBufferAndPrint [23:16:42]line [23:16:42]line [23:16:42]line [23:16:42]line [23:16:42]line [23:16:42]written 0, free lines is 3360 [23:16:42]MH_Cut [23:16:42]Write to MH i2c: D1 01 00 D7 21 01 CA [23:16:42]Write i2c OK [23:16:42]MH_I2C_Read... [23:16:42]Read from MH i2c: D1 [23:16:42]MH_I2C_Read... [23:16:42]Read from MH i2c: D1 01 00 [23:16:42]MH_I2C_Read... [23:16:42]Read from MH i2c: D1 01 00 D7 21 00 C9 [23:16:42]Write to MH i2c: 01 00 00 D8 21 F9 [23:16:42]Write i2c OK [23:16:42]MH_I2C_Read... [23:16:42]OFD Sender: No OFD packet to send [23:16:43]*** Cut start [23:16:43]*** Partial cut [23:16:43]*** CUTSNS_PIN = 1 [23:16:43]*** CUTSNS_PIN = 0 [23:16:43]*** Brake cut motor [23:16:43]Read from MH i2c: 01 [23:16:43]MH_I2C_Read... [23:16:43]*** Stop cut motor [23:16:43]*** Cut end [23:16:43]Read from MH i2c: 01 07 00 [23:16:43]MH_I2C_Read... [23:16:43]Read from MH i2c: 01 07 00 D8 21 00 00 00 00 00 FF 0F 0E [23:16:43]process_action close_receipt done [23:16:43]requested_data is exist [23:16:43]produce_requested_data [23:16:43]requested_item fm.sn is exist - process it [23:16:43]wFMCommunicate request_size=4 [23:16:43]MH_SAM_APDU [23:16:43]CAPDU: 80 11 00 00 [23:16:43]Write to MH i2c: E2 08 00 D9 21 80 11 00 00 00 00 00 00 74 [23:16:43]Write i2c OK [23:16:43]MH_I2C_Read... [23:16:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:16:43]Read from MH i2c: E2 [23:16:43]MH_I2C_Read... [23:16:43]Read from MH i2c: E2 17 00 [23:16:43]MH_I2C_Read... [23:16:43]Read from MH i2c: E2 17 00 D9 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C6 [23:16:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:16:43]wFMCommunicate OK [23:16:43]requested_item fd.num is exist - process it [23:16:43]SAM_PROTO_GetFieldsCounters [23:16:43]wFMCommunicate request_size=4 [23:16:43]MH_SAM_APDU [23:16:43]CAPDU: 80 13 00 00 [23:16:43]Write to MH i2c: E2 08 00 DA 21 80 13 00 00 00 00 00 00 77 [23:16:43]Write i2c OK [23:16:43]MH_I2C_Read... [23:16:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:16:44]Read from MH i2c: E2 [23:16:44]MH_I2C_Read... [23:16:44]Read from MH i2c: E2 62 00 [23:16:44]MH_I2C_Read... [23:16:44]Read from MH i2c: E2 62 00 DA 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D9 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 B6 01 00 00 5E 04 04 00 B6 01 00 00 57 04 04 00 B7 01 00 00 19 04 04 00 00 00 00 00 90 00 61 [23:16:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 D9 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 B6 01 00 00 5E 04 04 00 B6 01 00 00 57 04 04 00 B7 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:16:44]wFMCommunicate OK [23:16:44]SAM_PROTO_GetFieldsCounters done [23:16:44]requested_item shift.num is exist - process it [23:16:44]requested_item shift.opened is exist - process it [23:16:44]req_shift_opened [23:16:44]FM_GetShiftState [23:16:44]SAM_PROTO_GetShiftState [23:16:44]wFMCommunicate request_size=4 [23:16:44]MH_SAM_APDU [23:16:44]CAPDU: 80 13 01 00 [23:16:44]Write to MH i2c: E2 08 00 DB 21 80 13 01 00 00 00 00 00 79 [23:16:44]Write i2c OK [23:16:44]MH_I2C_Read... [23:16:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:16:44]Read from MH i2c: E2 [23:16:44]MH_I2C_Read... [23:16:44]Read from MH i2c: E2 0E 00 [23:16:44]MH_I2C_Read... [23:16:44]Read from MH i2c: E2 0E 00 DB 21 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 7F [23:16:44]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [23:16:44]wFMCommunicate OK [23:16:44]SAM_PROTO_GetShiftState done [23:16:44]FM_GetShiftState done [23:16:44]req_shift_opened done [23:16:44]requested_item shift.open_date is exist - process it [23:16:44]req_shift_open_date [23:16:44]req_shift_open_date done [23:16:44]produce_requested_data done [23:16:44]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69593,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [23:16:44]process_action_free close_receipt [23:16:44]json_value_free [23:16:44]json_value_free done [23:16:44]process_json_proto returns [23:16:44]Send response to host [23:16:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69593,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [23:16:44]free response buf [23:16:44]execute_script done [23:16:44]execute_script returns [23:16:44]free content buf [23:16:44]Sock 9.Close socket [23:16:44]Sock 9.Thread stoped [23:16:47]OFD Sender: No OFD packet to send [23:16:52]OFD Sender: No OFD packet to send [23:16:57]OFD Sender: No OFD packet to send [23:17:02]OFD Sender: No OFD packet to send [23:17:07]OFD Sender: No OFD packet to send [23:17:12]OFD Sender: No OFD packet to send [23:17:17]OFD Sender: No OFD packet to send [23:17:22]OFD Sender: No OFD packet to send [23:17:27]OFD Sender: No OFD packet to send [23:17:32]OFD Sender: No OFD packet to send [23:17:37]OFD Sender: No OFD packet to send [23:17:42]OFD Sender: No OFD packet to send [23:17:47]OFD Sender: No OFD packet to send [23:17:52]OFD Sender: No OFD packet to send [23:17:57]OFD Sender: No OFD packet to send [23:18:02]OFD Sender: No OFD packet to send [23:18:07]OFD Sender: No OFD packet to send [23:18:12]OFD Sender: No OFD packet to send [23:18:17]OFD Sender: No OFD packet to send [23:18:22]OFD Sender: No OFD packet to send [23:18:27]OFD Sender: No OFD packet to send [23:18:32]OFD Sender: No OFD packet to send [23:18:37]OFD Sender: No OFD packet to send [23:18:42]OFD Sender: No OFD packet to send [23:18:47]OFD Sender: No OFD packet to send [23:18:52]OFD Sender: No OFD packet to send [23:18:57]OFD Sender: No OFD packet to send [23:19:02]OFD Sender: No OFD packet to send [23:19:07]OFD Sender: No OFD packet to send [23:19:12]OFD Sender: No OFD packet to send [23:19:17]OFD Sender: No OFD packet to send [23:19:22]OFD Sender: No OFD packet to send [23:19:27]OFD Sender: No OFD packet to send [23:19:32]OFD Sender: No OFD packet to send [23:19:37]OFD Sender: No OFD packet to send [23:19:42]OFD Sender: No OFD packet to send [23:19:47]OFD Sender: No OFD packet to send [23:19:52]OFD Sender: No OFD packet to send [23:19:57]OFD Sender: No OFD packet to send [23:20:02]OFD Sender: No OFD packet to send [23:20:07]OFD Sender: No OFD packet to send [23:20:12]OFD Sender: No OFD packet to send [23:20:18]OFD Sender: No OFD packet to send [23:20:23]OFD Sender: No OFD packet to send [23:20:28]OFD Sender: No OFD packet to send [23:20:33]OFD Sender: No OFD packet to send [23:20:38]OFD Sender: No OFD packet to send [23:20:43]OFD Sender: No OFD packet to send [23:20:48]OFD Sender: No OFD packet to send [23:20:53]OFD Sender: No OFD packet to send [23:20:58]OFD Sender: No OFD packet to send [23:21:03]OFD Sender: No OFD packet to send [23:21:08]OFD Sender: No OFD packet to send [23:21:13]OFD Sender: No OFD packet to send [23:21:18]OFD Sender: No OFD packet to send [23:21:23]OFD Sender: No OFD packet to send [23:21:28]OFD Sender: No OFD packet to send [23:21:33]OFD Sender: No OFD packet to send [23:21:38]OFD Sender: No OFD packet to send [23:21:39]accept exits with 7 [23:21:39]New connection [23:21:39]New thread 3066654052 created [23:21:39]Thread 3066797412 joined [23:21:39]Waiting for new connection... [23:21:39] Sock 7.Parse request [23:21:39]Sock 7.Check first char [23:21:39]Sock 7.First char is OK [23:21:39]request: POST /json_proto HTTP/1.0 [23:21:39]Method: POST [23:21:39]URL: /json_proto [23:21:39]Method is POST - this is cgi request [23:21:39]url: /json_proto [23:21:39]query_string will be loaded in cgi processing [23:21:39]execute_cgi json_proto POST (null) [23:21:39]execute_cgi path=json_proto method=POST [23:21:39]POST find Content-Length [23:21:39]Host: 172.17.50.3:8080 [23:21:39]Content-Length: 680 [23:21:39]Content-Type: application/json [23:21:39] [23:21:39]POST finish read [23:21:39]Found Content-Length = 680 [23:21:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:21:39]execute_script... [23:21:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:21:39]POST & json_proto [23:21:39]process_json_proto [23:21:39]json parsed OK: [23:21:39]protocol is kg_v1.0 [23:21:39]action value=close_receipt [23:21:39]process_action close_receipt [23:21:39]cmd_close_receipt [23:21:39]MH_GetDate [23:21:39]Write to MH i2c: F0 00 00 DC 21 EC [23:21:39]Write i2c OK [23:21:39]MH_I2C_Read... [23:21:39]Read from MH i2c: F0 [23:21:39]MH_I2C_Read... [23:21:39]Read from MH i2c: F0 09 00 [23:21:39]MH_I2C_Read... [23:21:39]Read from MH i2c: F0 09 00 DC 21 00 85 90 15 67 6B 98 1E 66 0D [23:21:39]GetLastDocTimeStamp 1729466201 [23:21:39]current date 1729466501 [23:21:39]FM_GetShiftState [23:21:39]SAM_PROTO_GetShiftState [23:21:39]wFMCommunicate request_size=4 [23:21:39]MH_SAM_APDU [23:21:39]CAPDU: 80 13 01 00 [23:21:39]Write to MH i2c: E2 08 00 DD 21 80 13 01 00 00 00 00 00 7B [23:21:39]Write i2c OK [23:21:39]MH_I2C_Read... [23:21:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:21:39]Read from MH i2c: E2 [23:21:39]MH_I2C_Read... [23:21:39]Read from MH i2c: E2 0E 00 [23:21:39]MH_I2C_Read... [23:21:39]Read from MH i2c: E2 0E 00 DD 21 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 81 [23:21:39]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [23:21:39]wFMCommunicate OK [23:21:39]SAM_PROTO_GetShiftState done [23:21:39]FM_GetShiftState done [23:21:39]opened in 1729383220 [23:21:39]opened+sec_in_day 1729469620 [23:21:39]quantity*price = 120015 [23:21:39]sum+1 = 120016 [23:21:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 439 20.10.2024 23:21 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69594 ФПД: 79935205348187 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T232141&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69594&fm=79935205348187&tin=02508201610067®Number=0000000000156251&sum=120000 [23:21:40]StoreToDocumentArchive [23:21:40]shift 193 fd 69594 [23:21:40]save to /storage/0193/doc_00069594 [23:21:40]save last doc name /storage/0193/doc_00069594 to /storage/kkm_last_doc_name [23:21:40]save OK [23:21:40]Clear old archive folders... [23:21:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:21:40]tlvbuf is 00F71B40 [23:21:40]SAM_PROTO_ClearQueue [23:21:40]wFMCommunicate request_size=4 [23:21:40]MH_SAM_APDU [23:21:40]CAPDU: 80 09 00 00 [23:21:40]Write to MH i2c: E2 08 00 EA 21 80 09 00 00 00 00 00 00 7D [23:21:40]Write i2c OK [23:21:40]MH_I2C_Read... [23:21:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:21:40]Read from MH i2c: E2 [23:21:40]MH_I2C_Read... [23:21:40]Read from MH i2c: E2 03 00 [23:21:40]MH_I2C_Read... [23:21:40]Read from MH i2c: E2 03 00 EA 21 00 90 00 7F [23:21:40]RAPDU: 90 00 [23:21:40]wFMCommunicate OK [23:21:40]SAM_PROTO_ClearQueue done [23:21:40]KKMCreateOFDPacket [23:21:40]OFDProtocolAddRootSTLVToBuf [23:21:40]FM_MakeSignedData [23:21:40]FM_MakeSignedData [23:21:40]SAM_PROTO_SignData [23:21:40]wFMCommunicate request_size=4 [23:21:40]MH_SAM_APDU [23:21:40]CAPDU: 80 0D 01 02 [23:21:40]Write to MH i2c: E2 08 00 EB 21 80 0D 01 02 00 00 00 00 85 [23:21:40]Write i2c OK [23:21:40]MH_I2C_Read... [23:21:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:21:41]Read from MH i2c: E2 [23:21:41]MH_I2C_Read... [23:21:41]Read from MH i2c: E2 03 00 [23:21:41]MH_I2C_Read... [23:21:41]Read from MH i2c: E2 03 00 EB 21 00 90 00 80 [23:21:41]RAPDU: 90 00 [23:21:41]wFMCommunicate OK [23:21:41]wFMCommunicate request_size=255 [23:21:41]MH_SAM_APDU [23:21:41]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 01 00 00 F4 03 04 00 85 90 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DA 0F 01 00 35 04 06 00 48 B3 5D 85 [23:21:41]Write to MH i2c: E2 02 01 EC 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 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 01 00 00 F4 03 04 00 85 90 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DA 0F 01 00 35 04 06 00 48 B3 5D 85 00 00 43 [23:21:41]Write i2c OK [23:21:41]MH_I2C_Read... [23:21:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:21:41]Read from MH i2c: E2 [23:21:41]MH_I2C_Read... [23:21:41]Read from MH i2c: E2 03 00 [23:21:41]MH_I2C_Read... [23:21:41]Read from MH i2c: E2 03 00 EC 21 00 90 00 81 [23:21:41]RAPDU: 90 00 [23:21:41]wFMCommunicate OK [23:21:41]wFMCommunicate request_size=7 [23:21:41]MH_SAM_APDU [23:21:41]CAPDU: 80 0D 02 02 02 13 5B [23:21:41]Write to MH i2c: E2 0A 00 ED 21 80 0D 02 02 02 00 13 5B 00 00 FA [23:21:41]Write i2c OK [23:21:41]MH_I2C_Read... [23:21:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:21:41]Read from MH i2c: E2 [23:21:41]MH_I2C_Read... [23:21:41]Read from MH i2c: E2 03 00 [23:21:41]MH_I2C_Read... [23:21:41]Read from MH i2c: E2 03 00 ED 21 00 90 00 82 [23:21:41]RAPDU: 90 00 [23:21:41]wFMCommunicate OK [23:21:41]wFMCommunicate request_size=4 [23:21:41]MH_SAM_APDU [23:21:41]CAPDU: 80 0D 03 02 [23:21:41]Write to MH i2c: E2 08 00 EE 21 80 0D 03 02 00 00 00 00 8A [23:21:41]Write i2c OK [23:21:41]MH_I2C_Read... [23:21:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:21:41]Read from MH i2c: E2 [23:21:41]MH_I2C_Read... [23:21:41]Read from MH i2c: E2 0B 00 [23:21:41]MH_I2C_Read... [23:21:41]Read from MH i2c: E2 0B 00 EE 21 00 BA 36 1F CA 02 DD 82 EB 90 00 B0 [23:21:41]RAPDU: BA 36 1F CA 02 DD 82 EB 90 00 [23:21:41]wFMCommunicate OK [23:21:41]SAM_PROTO_SignData done [23:21:41]FM_MakeSignedData done [23:21:41]CreateOFDProtocolMessage [23:21:41]wFMCommunicate request_size=4 [23:21:41]MH_SAM_APDU [23:21:41]CAPDU: 80 11 00 00 [23:21:41]Write to MH i2c: E2 08 00 EF 21 80 11 00 00 00 00 00 00 8A [23:21:41]Write i2c OK [23:21:41]MH_I2C_Read... [23:21:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:21:41]Read from MH i2c: E2 [23:21:41]MH_I2C_Read... [23:21:41]Read from MH i2c: E2 17 00 [23:21:41]MH_I2C_Read... [23:21:41]Read from MH i2c: E2 17 00 EF 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DC [23:21:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:21:41]wFMCommunicate OK [23:21:41]CreateOFDProtocolMessage done [23:21:41]OFDSenderStorePacket 69594 [23:21:41]StoreOFDPacket docnum=69594 [23:21:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 8E 40 04 01 3E D9 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 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 01 00 00 F4 03 04 00 85 90 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DA 0F 01 00 35 04 06 00 48 B3 5D 85 13 5B BA 36 1F CA 02 DD 82 EB [23:21:41]CheckFolder [23:21:41]dirname=/storage/ofd_packets [23:21:41]CheckFolder done [23:21:41]ProducePacketName [23:21:41]name=ofd_packets/00069594 [23:21:41]NVStorageSaveData ofd_packets/00069594 [23:21:41]File name is /storage/ofd_packets/00069594 [23:21:41]Write 298 bytes [23:21:41]NVStorageSaveData done [23:21:41]OFDSenderStorePacket done [23:21:41]KKMCreateOFDPacket done [23:21:41]NVStorageSaveData kkm_last_timestamp [23:21:41]File name is /storage/kkm_last_timestamp [23:21:41]Write 4 bytes [23:21:41]NVStorageSaveData done [23:21:41]ExternCall_PrintAddStr [23:21:41]wPrintStart [23:21:41]Write to MH i2c: 01 00 00 F0 21 11 [23:21:41]Write i2c OK [23:21:41]MH_I2C_Read... [23:21:41]Read from MH i2c: 01 [23:21:41]MH_I2C_Read... [23:21:41]Read from MH i2c: 01 07 00 [23:21:41]MH_I2C_Read... [23:21:41]Read from MH i2c: 01 07 00 F0 21 00 00 00 00 00 FF 0F 26 [23:21:41]RasterBufferAndPrint [23:21:41]line Счет N : (1)2885333 [23:21:41]line ИНН: 02508201610067 [23:21:41]line Контрольно-Кассовый Чек [23:21:41]line ПРОДАЖА [23:21:41]line ТРК (МРК, ГНК) : 51 [23:21:41]line Товар: 2710194210 [23:21:41]line ДТ-К-5 [23:21:41]line 15.750 * 76.20 [23:21:41]line = 1200.15 [23:21:41]line НДС 12% НСП 1% [23:21:41]line > о реализуемом товаре [23:21:41]line ОКРУГЛЕНИЕ: -0.15 [23:21:41]line ИТОГО: 1200.00 [23:21:41]line Внесено: 1200.00 [23:21:41]line СДАЧА: 0.00 [23:21:41]line НСП 1% : 10.62 [23:21:41]line НДС 12% : 127.45 [23:21:41]line Наличными: 1200.00 [23:21:41]line Безнал.: 0.00 [23:21:41]line Место: АЗС № 85 "Партнер Нефть" [23:21:41]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:21:41]line СНО: Общий режим [23:21:41]line Чек 439 20.10.2024 23:21 [23:21:41]line Смена: 193 ФФД: 1.0 [23:21:41]line ЗНМ: 0300000167 [23:21:41]line РНМ: 0000000000156251 [23:21:41]line Версия ККМ: v1.0 [23:21:41]line ФМ: 0000000000963346 [23:21:41]line ФД: 69594 [23:21:41]line ФПД: 79935205348187 [23:21:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T232141&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69594&fm=79935205348187&tin=02508201610067®Number=0000000000156251&sum=120000 [23:21:41]OFD Sender: Processing packet 69594 [packets to send 18, broken 17] [23:21:41]ProducePacketName [23:21:41]name=ofd_packets/00069594 [23:21:41]OFD Sender: To server: pG, [23:21:41]CommunicateWithHost lk.salyk.kg:30040 [23:21:41]ConnectInit lk.salyk.kg [23:21:41]written 0, free lines is 4095 [23:21:41]Connected sock=10 [23:21:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 8E 40 04 01 3E D9 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 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 01 00 00 F4 03 04 00 85 90 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DA 0F 01 00 35 04 06 00 48 B3 5D 85 13 5B BA 36 1F CA 02 DD 82 EB [23:21:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 54 0A 47 00 B9 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DA 0F 01 00 F4 03 04 00 2A 3A 15 67 B6 04 01 00 00 B9 BB 79 51 80 31 DC 41 [23:21:42]CommunicateWithHost err = 0 [23:21:42]CheckOFDResponse [23:21:42]1017 (14) - 77093643461234 [23:21:42]1041 (16) - 0000000000963346 [23:21:42]1040 (4) - 69594 [23:21:42]1012 (4) - 20.10.2024 17:13 [23:21:42]1206 (1) - 0 [23:21:42]OFD Sender: Remove packet 69594 [23:21:42]ProducePacketName [23:21:42]name=ofd_packets/00069594 [23:21:42]NVStorageDeleteData [23:21:42]Write to MH i2c: 01 00 00 1B 22 3D [23:21:42]Write i2c OK [23:21:42]MH_I2C_Read... [23:21:42]Read from MH i2c: 01 [23:21:42]MH_I2C_Read... [23:21:42]Read from MH i2c: 01 07 00 [23:21:42]MH_I2C_Read... [23:21:42]Read from MH i2c: 01 07 00 1B 22 00 00 00 00 00 F4 0C 44 [23:21:42]RasterBufferAndPrint [23:21:42]line [23:21:42]line [23:21:42]line [23:21:42]line [23:21:42]line [23:21:42]written 0, free lines is 3326 [23:21:42]MH_Cut [23:21:42]Write to MH i2c: D1 01 00 22 22 01 16 [23:21:42]Write i2c OK [23:21:42]MH_I2C_Read... [23:21:42]Read from MH i2c: D1 [23:21:42]MH_I2C_Read... [23:21:42]Read from MH i2c: D1 01 00 [23:21:42]MH_I2C_Read... [23:21:42]Read from MH i2c: D1 01 00 22 22 00 15 [23:21:42]Write to MH i2c: 01 00 00 23 22 45 [23:21:42]Write i2c OK [23:21:42]MH_I2C_Read... [23:21:42]OFD Sender: No OFD packet to send [23:21:42]*** Cut start [23:21:42]*** Partial cut [23:21:42]*** CUTSNS_PIN = 1 [23:21:43]*** CUTSNS_PIN = 0 [23:21:43]*** Brake cut motor [23:21:43]Read from MH i2c: 01 [23:21:43]MH_I2C_Read... [23:21:43]*** Stop cut motor [23:21:43]*** Cut end [23:21:43]Read from MH i2c: 01 07 00 [23:21:43]MH_I2C_Read... [23:21:43]Read from MH i2c: 01 07 00 23 22 00 00 00 00 00 FF 0F 5A [23:21:43]process_action close_receipt done [23:21:43]requested_data is exist [23:21:43]produce_requested_data [23:21:43]requested_item fm.sn is exist - process it [23:21:43]wFMCommunicate request_size=4 [23:21:43]MH_SAM_APDU [23:21:43]CAPDU: 80 11 00 00 [23:21:43]Write to MH i2c: E2 08 00 24 22 80 11 00 00 00 00 00 00 C0 [23:21:43]Write i2c OK [23:21:43]MH_I2C_Read... [23:21:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:21:43]Read from MH i2c: E2 [23:21:43]MH_I2C_Read... [23:21:43]Read from MH i2c: E2 17 00 [23:21:43]MH_I2C_Read... [23:21:43]Read from MH i2c: E2 17 00 24 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 12 [23:21:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:21:43]wFMCommunicate OK [23:21:43]requested_item fd.num is exist - process it [23:21:43]SAM_PROTO_GetFieldsCounters [23:21:43]wFMCommunicate request_size=4 [23:21:43]MH_SAM_APDU [23:21:43]CAPDU: 80 13 00 00 [23:21:43]Write to MH i2c: E2 08 00 25 22 80 13 00 00 00 00 00 00 C3 [23:21:43]Write i2c OK [23:21:43]MH_I2C_Read... [23:21:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:21:43]Read from MH i2c: E2 [23:21:43]MH_I2C_Read... [23:21:43]Read from MH i2c: E2 62 00 [23:21:43]MH_I2C_Read... [23:21:43]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 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DA 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 B7 01 00 00 5E 04 04 00 B7 01 00 00 57 04 04 00 B8 01 00 00 19 04 04 00 00 00 00 00 90 00 B1 [23:21:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DA 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 B7 01 00 00 5E 04 04 00 B7 01 00 00 57 04 04 00 B8 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:21:43]wFMCommunicate OK [23:21:43]SAM_PROTO_GetFieldsCounters done [23:21:43]requested_item shift.num is exist - process it [23:21:43]requested_item shift.opened is exist - process it [23:21:43]req_shift_opened [23:21:43]FM_GetShiftState [23:21:43]SAM_PROTO_GetShiftState [23:21:43]wFMCommunicate request_size=4 [23:21:43]MH_SAM_APDU [23:21:43]CAPDU: 80 13 01 00 [23:21:43]Write to MH i2c: E2 08 00 26 22 80 13 01 00 00 00 00 00 C5 [23:21:43]Write i2c OK [23:21:43]MH_I2C_Read... [23:21:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:21:43]Read from MH i2c: E2 [23:21:43]MH_I2C_Read... [23:21:43]Read from MH i2c: E2 0E 00 [23:21:43]MH_I2C_Read... [23:21:43]Read from MH i2c: E2 0E 00 26 22 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 CB [23:21:43]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [23:21:43]wFMCommunicate OK [23:21:43]SAM_PROTO_GetShiftState done [23:21:43]FM_GetShiftState done [23:21:43]req_shift_opened done [23:21:43]requested_item shift.open_date is exist - process it [23:21:43]req_shift_open_date [23:21:43]req_shift_open_date done [23:21:43]produce_requested_data done [23:21:43]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69594,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [23:21:43]process_action_free close_receipt [23:21:43]json_value_free [23:21:43]json_value_free done [23:21:43]process_json_proto returns [23:21:43]Send response to host [23:21:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69594,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [23:21:43]free response buf [23:21:43]execute_script done [23:21:43]execute_script returns [23:21:43]free content buf [23:21:43]Sock 7.Close socket [23:21:43]Sock 7.Thread stoped [23:21:47]OFD Sender: No OFD packet to send [23:21:52]OFD Sender: No OFD packet to send [23:21:57]OFD Sender: No OFD packet to send [23:22:02]OFD Sender: No OFD packet to send [23:22:07]OFD Sender: No OFD packet to send [23:22:12]OFD Sender: No OFD packet to send [23:22:17]OFD Sender: No OFD packet to send [23:22:22]OFD Sender: No OFD packet to send [23:22:27]OFD Sender: No OFD packet to send [23:22:32]OFD Sender: No OFD packet to send [23:22:37]OFD Sender: No OFD packet to send [23:22:42]OFD Sender: No OFD packet to send [23:22:47]OFD Sender: No OFD packet to send [23:22:52]OFD Sender: No OFD packet to send [23:22:57]OFD Sender: No OFD packet to send [23:23:02]OFD Sender: No OFD packet to send [23:23:07]OFD Sender: No OFD packet to send [23:23:12]OFD Sender: No OFD packet to send [23:23:17]OFD Sender: No OFD packet to send [23:23:22]OFD Sender: No OFD packet to send [23:23:27]OFD Sender: No OFD packet to send [23:23:32]OFD Sender: No OFD packet to send [23:23:37]OFD Sender: No OFD packet to send [23:23:42]OFD Sender: No OFD packet to send [23:23:47]OFD Sender: No OFD packet to send [23:23:52]OFD Sender: No OFD packet to send [23:23:57]OFD Sender: No OFD packet to send [23:24:02]OFD Sender: No OFD packet to send [23:24:07]OFD Sender: No OFD packet to send [23:24:12]OFD Sender: No OFD packet to send [23:24:17]OFD Sender: No OFD packet to send [23:24:22]OFD Sender: No OFD packet to send [23:24:27]OFD Sender: No OFD packet to send [23:24:32]OFD Sender: No OFD packet to send [23:24:37]OFD Sender: No OFD packet to send [23:24:42]OFD Sender: No OFD packet to send [23:24:47]OFD Sender: No OFD packet to send [23:24:52]OFD Sender: No OFD packet to send [23:24:57]OFD Sender: No OFD packet to send [23:25:02]OFD Sender: No OFD packet to send [23:25:04]accept exits with 9 [23:25:04]New connection [23:25:04]New thread 3066797412 created [23:25:04]Thread 3066654052 joined [23:25:04]Waiting for new connection... [23:25:04] Sock 9.Parse request [23:25:04]Sock 9.Check first char [23:25:04]Sock 9.First char is OK [23:25:04]request: POST /json_proto HTTP/1.0 [23:25:04]Method: POST [23:25:04]URL: /json_proto [23:25:04]Method is POST - this is cgi request [23:25:04]url: /json_proto [23:25:04]query_string will be loaded in cgi processing [23:25:04]execute_cgi json_proto POST (null) [23:25:04]execute_cgi path=json_proto method=POST [23:25:04]POST find Content-Length [23:25:04]Host: 172.17.50.3:8080 [23:25:04]Content-Length: 771 [23:25:04]Content-Type: application/json [23:25:04] [23:25:04]POST finish read [23:25:04]Found Content-Length = 771 [23:25:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 18.000, "sum" : 700.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:25:04]execute_script... [23: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)2885334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 18.000, "sum" : 700.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:25:04]POST & json_proto [23:25:04]process_json_proto [23:25:04]json parsed OK: [23:25:04]protocol is kg_v1.0 [23:25:04]action value=close_receipt [23:25:04]process_action close_receipt [23:25:04]cmd_close_receipt [23:25:04]MH_GetDate [23:25:04]Write to MH i2c: F0 00 00 27 22 38 [23:25:04]Write i2c OK [23:25:04]MH_I2C_Read... [23:25:04]Read from MH i2c: F0 [23:25:04]MH_I2C_Read... [23:25:04]Read from MH i2c: F0 09 00 [23:25:04]MH_I2C_Read... [23:25:04]Read from MH i2c: F0 09 00 27 22 00 51 91 15 67 6B 98 1E 66 26 [23:25:04]GetLastDocTimeStamp 1729466501 [23:25:04]current date 1729466705 [23:25:04]FM_GetShiftState [23:25:04]SAM_PROTO_GetShiftState [23:25:04]wFMCommunicate request_size=4 [23:25:04]MH_SAM_APDU [23:25:04]CAPDU: 80 13 01 00 [23:25:04]Write to MH i2c: E2 08 00 28 22 80 13 01 00 00 00 00 00 C7 [23:25:04]Write i2c OK [23:25:04]MH_I2C_Read... [23:25:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:25:04]Read from MH i2c: E2 [23:25:04]MH_I2C_Read... [23:25:04]Read from MH i2c: E2 0E 00 [23:25:04]MH_I2C_Read... [23:25:04]Read from MH i2c: E2 0E 00 28 22 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 CD [23:25:04]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [23:25:04]wFMCommunicate OK [23:25:04]SAM_PROTO_GetShiftState done [23:25:04]FM_GetShiftState done [23:25:04]opened in 1729383220 [23:25:04]opened+sec_in_day 1729469620 [23:25:04]quantity*price = 70020 [23:25:04]sum+1 = 70021 [23:25:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.20 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 0.00 Безнал.: 700.20 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 440 20.10.2024 23:25 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69595 ФПД: 252073288536630 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T232505&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69595&fm=252073288536630&tin=02508201610067®Number=0000000000156251&sum=70020 [23:25:05]StoreToDocumentArchive [23:25:05]shift 193 fd 69595 [23:25:05]save to /storage/0193/doc_00069595 [23:25:05]save last doc name /storage/0193/doc_00069595 to /storage/kkm_last_doc_name [23:25:05]save OK [23:25:05]Clear old archive folders... [23:25:05]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:25:05]tlvbuf is 00F7EBF0 [23:25:05]SAM_PROTO_ClearQueue [23:25:05]wFMCommunicate request_size=4 [23:25:05]MH_SAM_APDU [23:25:05]CAPDU: 80 09 00 00 [23:25:05]Write to MH i2c: E2 08 00 35 22 80 09 00 00 00 00 00 00 C9 [23:25:05]Write i2c OK [23:25:05]MH_I2C_Read... [23:25:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:25:05]Read from MH i2c: E2 [23:25:05]MH_I2C_Read... [23:25:05]Read from MH i2c: E2 03 00 [23:25:05]MH_I2C_Read... [23:25:05]Read from MH i2c: E2 03 00 35 22 00 90 00 CB [23:25:05]RAPDU: 90 00 [23:25:05]wFMCommunicate OK [23:25:05]SAM_PROTO_ClearQueue done [23:25:05]KKMCreateOFDPacket [23:25:05]OFDProtocolAddRootSTLVToBuf [23:25:05]FM_MakeSignedData [23:25:05]FM_MakeSignedData [23:25:05]SAM_PROTO_SignData [23:25:05]wFMCommunicate request_size=4 [23:25:05]MH_SAM_APDU [23:25:05]CAPDU: 80 0D 01 02 [23:25:05]Write to MH i2c: E2 08 00 36 22 80 0D 01 02 00 00 00 00 D1 [23:25:05]Write i2c OK [23:25:05]MH_I2C_Read... [23:25:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:25:05]Read from MH i2c: E2 [23:25:05]MH_I2C_Read... [23:25:05]Read from MH i2c: E2 03 00 [23:25:05]MH_I2C_Read... [23:25:05]Read from MH i2c: E2 03 00 36 22 00 90 00 CC [23:25:05]RAPDU: 90 00 [23:25:05]wFMCommunicate OK [23:25:05]wFMCommunicate request_size=255 [23:25:05]MH_SAM_APDU [23:25:05]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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 01 00 00 F4 03 04 00 51 91 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DB 0F 01 00 35 04 06 00 E5 42 [23:25:05]Write to MH i2c: E2 02 01 37 22 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 01 00 00 F4 03 04 00 51 91 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DB 0F 01 00 35 04 06 00 E5 42 00 00 9D [23:25:05]Write i2c OK [23:25:05]MH_I2C_Read... [23:25:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:25:05]Read from MH i2c: E2 [23:25:05]MH_I2C_Read... [23:25:05]Read from MH i2c: E2 03 00 [23:25:05]MH_I2C_Read... [23:25:05]Read from MH i2c: E2 03 00 37 22 00 90 00 CD [23:25:05]RAPDU: 90 00 [23:25:05]wFMCommunicate OK [23:25:05]wFMCommunicate request_size=9 [23:25:05]MH_SAM_APDU [23:25:05]CAPDU: 80 0D 02 02 04 62 D2 12 36 [23:25:05]Write to MH i2c: E2 0C 00 38 22 80 0D 02 02 04 00 62 D2 12 36 00 00 58 [23:25:05]Write i2c OK [23:25:05]MH_I2C_Read... [23:25:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:25:05]Read from MH i2c: E2 [23:25:05]MH_I2C_Read... [23:25:05]Read from MH i2c: E2 03 00 [23:25:05]MH_I2C_Read... [23:25:05]Read from MH i2c: E2 03 00 38 22 00 90 00 CE [23:25:05]RAPDU: 90 00 [23:25:05]wFMCommunicate OK [23:25:05]wFMCommunicate request_size=4 [23:25:05]MH_SAM_APDU [23:25:05]CAPDU: 80 0D 03 02 [23:25:05]Write to MH i2c: E2 08 00 39 22 80 0D 03 02 00 00 00 00 D6 [23:25:05]Write i2c OK [23:25:05]MH_I2C_Read... [23:25:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:25:05]Read from MH i2c: E2 [23:25:05]MH_I2C_Read... [23:25:05]Read from MH i2c: E2 0B 00 [23:25:05]MH_I2C_Read... [23:25:05]Read from MH i2c: E2 0B 00 39 22 00 06 C2 0F D1 98 1A AE 8B 90 00 6A [23:25:05]RAPDU: 06 C2 0F D1 98 1A AE 8B 90 00 [23:25:05]wFMCommunicate OK [23:25:05]SAM_PROTO_SignData done [23:25:05]FM_MakeSignedData done [23:25:05]CreateOFDProtocolMessage [23:25:05]wFMCommunicate request_size=4 [23:25:05]MH_SAM_APDU [23:25:05]CAPDU: 80 11 00 00 [23:25:05]Write to MH i2c: E2 08 00 3A 22 80 11 00 00 00 00 00 00 D6 [23:25:05]Write i2c OK [23:25:05]MH_I2C_Read... [23:25:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:25:06]Read from MH i2c: E2 [23:25:06]MH_I2C_Read... [23:25:06]Read from MH i2c: E2 17 00 [23:25:06]MH_I2C_Read... [23:25:06]Read from MH i2c: E2 17 00 3A 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 28 [23:25:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:25:06]wFMCommunicate OK [23:25:06]CreateOFDProtocolMessage done [23:25:06]OFDSenderStorePacket 69595 [23:25:06]StoreOFDPacket docnum=69595 [23:25:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 AD 2C 06 01 74 99 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 01 00 00 F4 03 04 00 51 91 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DB 0F 01 00 35 04 06 00 E5 42 62 D2 12 36 06 C2 0F D1 98 1A AE 8B [23:25:06]CheckFolder [23:25:06]dirname=/storage/ofd_packets [23:25:06]CheckFolder done [23:25:06]ProducePacketName [23:25:06]name=ofd_packets/00069595 [23:25:06]NVStorageSaveData ofd_packets/00069595 [23:25:06]File name is /storage/ofd_packets/00069595 [23:25:06]Write 300 bytes [23:25:06]NVStorageSaveData done [23:25:06]OFDSenderStorePacket done [23:25:06]KKMCreateOFDPacket done [23:25:06]NVStorageSaveData kkm_last_timestamp [23:25:06]File name is /storage/kkm_last_timestamp [23:25:06]Write 4 bytes [23:25:06]NVStorageSaveData done [23:25:06]ExternCall_PrintAddStr [23:25:06]wPrintStart [23:25:06]Write to MH i2c: 01 00 00 3B 22 5D [23:25:06]Write i2c OK [23:25:06]MH_I2C_Read... [23:25:06]Read from MH i2c: 01 [23:25:06]MH_I2C_Read... [23:25:06]Read from MH i2c: 01 07 00 [23:25:06]MH_I2C_Read... [23:25:06]Read from MH i2c: 01 07 00 3B 22 00 00 00 00 00 FF 0F 72 [23:25:06]RasterBufferAndPrint [23:25:06]line Счет N : (1)2885334 [23:25:06]line ИНН: 02508201610067 [23:25:06]line Контрольно-Кассовый Чек [23:25:06]line ПРОДАЖА [23:25:06]line ТРК (МРК, ГНК) : 71 [23:25:06]line Товар: 2711129700 [23:25:06]line ГАЗ-К-3 [23:25:06]line 18.000 * 38.90 [23:25:06]line = 700.20 [23:25:06]line НДС 12% НСП 1% [23:25:06]line > о реализуемом товаре [23:25:06]line ИТОГО: 700.20 [23:25:06]line НСП 1% : 6.20 [23:25:06]line НДС 12% : 74.36 [23:25:06]line Наличными: 0.00 [23:25:06]line Безнал.: 700.20 [23:25:06]line Место: АЗС № 85 "Партнер Нефть" [23:25:06]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:25:06]line СНО: Общий режим [23:25:06]line Чек 440 20.10.2024 23:25 [23:25:06]line Смена: 193 ФФД: 1.0 [23:25:06]line ЗНМ: 0300000167 [23:25:06]line РНМ: 0000000000156251 [23:25:06]line Версия ККМ: v1.0 [23:25:06]line Платежная система: Mbank [23:25:06]line ФМ: 0000000000963346 [23:25:06]line ФД: 69595 [23:25:06]line ФПД: 252073288536630 [23:25:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T232505&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69595&fm=252073288536630&tin=02508201610067®Number=0000000000156251&sum=70020 [23:25:06]OFD Sender: Processing packet 69595 [packets to send 18, broken 17] [23:25:06]ProducePacketName [23:25:06]name=ofd_packets/00069595 [23:25:06]OFD Sender: To server: pG, [23:25:06]CommunicateWithHost lk.salyk.kg:30040 [23:25:06]ConnectInit lk.salyk.kg [23:25:06]written 0, free lines is 4095 [23:25:06]Connected sock=10 [23:25:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 AD 2C 06 01 74 99 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 01 00 00 F4 03 04 00 51 91 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DB 0F 01 00 35 04 06 00 E5 42 62 D2 12 36 06 C2 0F D1 98 1A AE 8B [23:25:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 64 5F 47 00 6C C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DB 0F 01 00 F4 03 04 00 F7 3A 15 67 B6 04 01 00 00 EE 59 62 54 C4 AE F1 01 [23:25:06]CommunicateWithHost err = 0 [23:25:06]CheckOFDResponse [23:25:06]1017 (14) - 77093643461234 [23:25:06]1041 (16) - 0000000000963346 [23:25:06]1040 (4) - 69595 [23:25:06]1012 (4) - 20.10.2024 17:16 [23:25:06]1206 (1) - 0 [23:25:06]OFD Sender: Remove packet 69595 [23:25:06]ProducePacketName [23:25:06]name=ofd_packets/00069595 [23:25:06]NVStorageDeleteData [23:25:06]Write to MH i2c: 01 00 00 64 22 86 [23:25:06]Write i2c OK [23:25:06]MH_I2C_Read... [23:25:06]Read from MH i2c: 01 [23:25:06]MH_I2C_Read... [23:25:06]Read from MH i2c: 01 07 00 [23:25:06]MH_I2C_Read... [23:25:06]Read from MH i2c: 01 07 00 64 22 00 00 00 00 00 1D 0D B7 [23:25:06]RasterBufferAndPrint [23:25:06]line [23:25:06]line [23:25:06]line [23:25:06]line [23:25:06]line [23:25:06]written 0, free lines is 3366 [23:25:06]MH_Cut [23:25:06]Write to MH i2c: D1 01 00 6B 22 01 5F [23:25:06]Write i2c OK [23:25:06]MH_I2C_Read... [23:25:06]Read from MH i2c: D1 [23:25:06]MH_I2C_Read... [23:25:06]Read from MH i2c: D1 01 00 [23:25:06]MH_I2C_Read... [23:25:06]Read from MH i2c: D1 01 00 6B 22 00 5E [23:25:06]Write to MH i2c: 01 00 00 6C 22 8E [23:25:06]Write i2c OK [23:25:06]MH_I2C_Read... [23:25:07]OFD Sender: No OFD packet to send [23:25:07]*** Cut start [23:25:07]*** Partial cut [23:25:07]*** CUTSNS_PIN = 1 [23:25:07]*** CUTSNS_PIN = 0 [23:25:07]*** Brake cut motor [23:25:08]Read from MH i2c: 01 [23:25:08]MH_I2C_Read... [23:25:08]*** Stop cut motor [23:25:08]*** Cut end [23:25:08]Read from MH i2c: 01 07 00 [23:25:08]MH_I2C_Read... [23:25:08]Read from MH i2c: 01 07 00 6C 22 00 00 00 00 00 FF 0F A3 [23:25:08]process_action close_receipt done [23:25:08]requested_data is exist [23:25:08]produce_requested_data [23:25:08]requested_item fm.sn is exist - process it [23:25:08]wFMCommunicate request_size=4 [23:25:08]MH_SAM_APDU [23:25:08]CAPDU: 80 11 00 00 [23:25:08]Write to MH i2c: E2 08 00 6D 22 80 11 00 00 00 00 00 00 09 [23:25:08]Write i2c OK [23:25:08]MH_I2C_Read... [23:25:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:25:08]Read from MH i2c: E2 [23:25:08]MH_I2C_Read... [23:25:08]Read from MH i2c: E2 17 00 [23:25:08]MH_I2C_Read... [23:25:08]Read from MH i2c: E2 17 00 6D 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5B [23:25:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:25:08]wFMCommunicate OK [23:25:08]requested_item fd.num is exist - process it [23:25:08]SAM_PROTO_GetFieldsCounters [23:25:08]wFMCommunicate request_size=4 [23:25:08]MH_SAM_APDU [23:25:08]CAPDU: 80 13 00 00 [23:25:08]Write to MH i2c: E2 08 00 6E 22 80 13 00 00 00 00 00 00 0C [23:25:08]Write i2c OK [23:25:08]MH_I2C_Read... [23:25:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:25:08]Read from MH i2c: E2 [23:25:08]MH_I2C_Read... [23:25:08]Read from MH i2c: E2 62 00 [23:25:08]MH_I2C_Read... [23:25:08]Read from MH i2c: E2 62 00 6E 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DB 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 B8 01 00 00 5E 04 04 00 B8 01 00 00 57 04 04 00 B9 01 00 00 19 04 04 00 00 00 00 00 90 00 FE [23:25:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DB 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 B8 01 00 00 5E 04 04 00 B8 01 00 00 57 04 04 00 B9 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:25:08]wFMCommunicate OK [23:25:08]SAM_PROTO_GetFieldsCounters done [23:25:08]requested_item shift.num is exist - process it [23:25:08]requested_item shift.opened is exist - process it [23:25:08]req_shift_opened [23:25:08]FM_GetShiftState [23:25:08]SAM_PROTO_GetShiftState [23:25:08]wFMCommunicate request_size=4 [23:25:08]MH_SAM_APDU [23:25:08]CAPDU: 80 13 01 00 [23:25:08]Write to MH i2c: E2 08 00 6F 22 80 13 01 00 00 00 00 00 0E [23:25:08]Write i2c OK [23:25:08]MH_I2C_Read... [23:25:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:25:08]Read from MH i2c: E2 [23:25:08]MH_I2C_Read... [23:25:08]Read from MH i2c: E2 0E 00 [23:25:08]MH_I2C_Read... [23:25:08]Read from MH i2c: E2 0E 00 6F 22 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 14 [23:25:08]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [23:25:08]wFMCommunicate OK [23:25:08]SAM_PROTO_GetShiftState done [23:25:08]FM_GetShiftState done [23:25:08]req_shift_opened done [23:25:08]requested_item shift.open_date is exist - process it [23:25:08]req_shift_open_date [23:25:08]req_shift_open_date done [23:25:08]produce_requested_data done [23:25:08]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69595,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [23:25:08]process_action_free close_receipt [23:25:08]json_value_free [23:25:08]json_value_free done [23:25:08]process_json_proto returns [23:25:08]Send response to host [23:25:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69595,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [23:25:08]free response buf [23:25:08]execute_script done [23:25:08]execute_script returns [23:25:08]free content buf [23:25:08]Sock 9.Close socket [23:25:08]Sock 9.Thread stoped [23:25:12]OFD Sender: No OFD packet to send [23:25:17]OFD Sender: No OFD packet to send [23:25:22]OFD Sender: No OFD packet to send [23:25:27]OFD Sender: No OFD packet to send [23:25:32]OFD Sender: No OFD packet to send [23:25:37]OFD Sender: No OFD packet to send [23:25:42]OFD Sender: No OFD packet to send [23:25:47]OFD Sender: No OFD packet to send [23:25:52]OFD Sender: No OFD packet to send [23:25:57]OFD Sender: No OFD packet to send [23:26:02]OFD Sender: No OFD packet to send [23:26:07]OFD Sender: No OFD packet to send [23:26:12]OFD Sender: No OFD packet to send [23:26:17]OFD Sender: No OFD packet to send [23:26:22]OFD Sender: No OFD packet to send [23:26:27]OFD Sender: No OFD packet to send [23:26:32]OFD Sender: No OFD packet to send [23:26:37]OFD Sender: No OFD packet to send [23:26:42]OFD Sender: No OFD packet to send [23:26:47]OFD Sender: No OFD packet to send [23:26:52]OFD Sender: No OFD packet to send [23:26:57]OFD Sender: No OFD packet to send [23:27:02]OFD Sender: No OFD packet to send [23:27:07]OFD Sender: No OFD packet to send [23:27:12]OFD Sender: No OFD packet to send [23:27:17]OFD Sender: No OFD packet to send [23:27:22]OFD Sender: No OFD packet to send [23:27:27]OFD Sender: No OFD packet to send [23:27:32]OFD Sender: No OFD packet to send [23:27:37]OFD Sender: No OFD packet to send [23:27:42]OFD Sender: No OFD packet to send [23:27:47]OFD Sender: No OFD packet to send [23:27:52]OFD Sender: No OFD packet to send [23:27:57]OFD Sender: No OFD packet to send [23:28:02]OFD Sender: No OFD packet to send [23:28:07]OFD Sender: No OFD packet to send [23:28:12]OFD Sender: No OFD packet to send [23:28:17]OFD Sender: No OFD packet to send [23:28:22]OFD Sender: No OFD packet to send [23:28:27]OFD Sender: No OFD packet to send [23:28:32]OFD Sender: No OFD packet to send [23:28:37]OFD Sender: No OFD packet to send [23:28:42]OFD Sender: No OFD packet to send [23:28:47]OFD Sender: No OFD packet to send [23:28:52]OFD Sender: No OFD packet to send [23:28:57]OFD Sender: No OFD packet to send [23:29:02]OFD Sender: No OFD packet to send [23:29:07]OFD Sender: No OFD packet to send [23:29:12]OFD Sender: No OFD packet to send [23:29:17]OFD Sender: No OFD packet to send [23:29:22]OFD Sender: No OFD packet to send [23:29:27]OFD Sender: No OFD packet to send [23:29:32]OFD Sender: No OFD packet to send [23:29:37]OFD Sender: No OFD packet to send [23:29:42]OFD Sender: No OFD packet to send [23:29:47]OFD Sender: No OFD packet to send [23:29:52]OFD Sender: No OFD packet to send [23:29:57]OFD Sender: No OFD packet to send [23:30:02]OFD Sender: No OFD packet to send [23:30:07]OFD Sender: No OFD packet to send [23:30:12]OFD Sender: No OFD packet to send [23:30:17]OFD Sender: No OFD packet to send [23:30:22]OFD Sender: No OFD packet to send [23:30:27]OFD Sender: No OFD packet to send [23:30:32]OFD Sender: No OFD packet to send [23:30:37]OFD Sender: No OFD packet to send [23:30:42]OFD Sender: No OFD packet to send [23:30:47]OFD Sender: No OFD packet to send [23:30:52]OFD Sender: No OFD packet to send [23:30:57]OFD Sender: No OFD packet to send [23:31:02]OFD Sender: No OFD packet to send [23:31:07]OFD Sender: No OFD packet to send [23:31:12]OFD Sender: No OFD packet to send [23:31:17]OFD Sender: No OFD packet to send [23:31:22]OFD Sender: No OFD packet to send [23:31:27]OFD Sender: No OFD packet to send [23:31:32]OFD Sender: No OFD packet to send [23:31:37]OFD Sender: No OFD packet to send [23:31:42]OFD Sender: No OFD packet to send [23:31:47]OFD Sender: No OFD packet to send [23:31:51]accept exits with 7 [23:31:51]New connection [23:31:51]New thread 3066654052 created [23:31:51]Thread 3066797412 joined [23:31:51]Waiting for new connection... [23:31:51] Sock 7.Parse request [23:31:51]Sock 7.Check first char [23:31:51]Sock 7.First char is OK [23:31:51]request: POST /json_proto HTTP/1.0 [23:31:51]Method: POST [23:31:51]URL: /json_proto [23:31:51]Method is POST - this is cgi request [23:31:51]url: /json_proto [23:31:51]query_string will be loaded in cgi processing [23:31:51]execute_cgi json_proto POST (null) [23:31:51]execute_cgi path=json_proto method=POST [23:31:51]POST find Content-Length [23:31:51]Host: 172.17.50.3:8080 [23:31:51]Content-Length: 689 [23:31:51]Content-Type: application/json [23:31:51] [23:31:51]POST finish read [23:31:51]Found Content-Length = 689 [23:31:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:31:51]execute_script... [23:31: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)2885335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:31:51]POST & json_proto [23:31:51]process_json_proto [23:31:51]json parsed OK: [23:31:51]protocol is kg_v1.0 [23:31:51]action value=close_receipt [23:31:51]process_action close_receipt [23:31:51]cmd_close_receipt [23:31:51]MH_GetDate [23:31:51]Write to MH i2c: F0 00 00 70 22 81 [23:31:51]Write i2c OK [23:31:51]MH_I2C_Read... [23:31:51]Read from MH i2c: F0 [23:31:51]MH_I2C_Read... [23:31:51]Read from MH i2c: F0 09 00 [23:31:51]MH_I2C_Read... [23:31:51]Read from MH i2c: F0 09 00 70 22 00 E8 92 15 67 6B 98 1E 66 07 [23:31:51]GetLastDocTimeStamp 1729466705 [23:31:51]current date 1729467112 [23:31:51]FM_GetShiftState [23:31:51]SAM_PROTO_GetShiftState [23:31:51]wFMCommunicate request_size=4 [23:31:51]MH_SAM_APDU [23:31:51]CAPDU: 80 13 01 00 [23:31:51]Write to MH i2c: E2 08 00 71 22 80 13 01 00 00 00 00 00 10 [23:31:51]Write i2c OK [23:31:51]MH_I2C_Read... [23:31:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:31:51]Read from MH i2c: E2 [23:31:51]MH_I2C_Read... [23:31:51]Read from MH i2c: E2 0E 00 [23:31:51]MH_I2C_Read... [23:31:51]Read from MH i2c: E2 0E 00 71 22 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 16 [23:31:51]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [23:31:51]wFMCommunicate OK [23:31:51]SAM_PROTO_GetShiftState done [23:31:51]FM_GetShiftState done [23:31:51]opened in 1729383220 [23:31:51]opened+sec_in_day 1729469620 [23:31:51]quantity*price = 300076 [23:31:51]sum+1 = 300077 [23:31:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 441 20.10.2024 23:31 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69596 ФПД: 181061496680046 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T233152&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69596&fm=181061496680046&tin=02508201610067®Number=0000000000156251&sum=300000 [23:31:52]StoreToDocumentArchive [23:31:52]shift 193 fd 69596 [23:31:52]save to /storage/0193/doc_00069596 [23:31:52]save last doc name /storage/0193/doc_00069596 to /storage/kkm_last_doc_name [23:31:52]save OK [23:31:52]Clear old archive folders... [23:31:52]ProcessDocumentItem done err = 0, tmpTLVsize=257 [23:31:52]tlvbuf is 00F412C0 [23:31:52]SAM_PROTO_ClearQueue [23:31:52]wFMCommunicate request_size=4 [23:31:52]MH_SAM_APDU [23:31:52]CAPDU: 80 09 00 00 [23:31:52]Write to MH i2c: E2 08 00 7E 22 80 09 00 00 00 00 00 00 12 [23:31:52]Write i2c OK [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: E2 [23:31:52]MH_I2C_Read... [23:31:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:31:52]Read from MH i2c: E2 03 00 [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: E2 03 00 7E 22 00 90 00 14 [23:31:52]RAPDU: 90 00 [23:31:52]wFMCommunicate OK [23:31:52]SAM_PROTO_ClearQueue done [23:31:52]KKMCreateOFDPacket [23:31:52]OFDProtocolAddRootSTLVToBuf [23:31:52]FM_MakeSignedData [23:31:52]FM_MakeSignedData [23:31:52]SAM_PROTO_SignData [23:31:52]wFMCommunicate request_size=4 [23:31:52]MH_SAM_APDU [23:31:52]CAPDU: 80 0D 01 02 [23:31:52]Write to MH i2c: E2 08 00 7F 22 80 0D 01 02 00 00 00 00 1A [23:31:52]Write i2c OK [23:31:52]MH_I2C_Read... [23:31:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:31:52]Read from MH i2c: E2 [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: E2 03 00 [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: E2 03 00 7F 22 00 90 00 15 [23:31:52]RAPDU: 90 00 [23:31:52]wFMCommunicate OK [23:31:52]wFMCommunicate request_size=255 [23:31:52]MH_SAM_APDU [23:31:52]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 01 00 00 F4 03 04 00 E8 92 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DC 0F 01 [23:31:52]Write to MH i2c: E2 02 01 80 22 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 01 00 00 F4 03 04 00 E8 92 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DC 0F 01 00 00 AB [23:31:52]Write i2c OK [23:31:52]MH_I2C_Read... [23:31:52]OFD Sender: No OFD packet to send [23:31:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:31:52]Read from MH i2c: E2 [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: E2 03 00 [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: E2 03 00 80 22 00 90 00 16 [23:31:52]RAPDU: 90 00 [23:31:52]wFMCommunicate OK [23:31:52]wFMCommunicate request_size=16 [23:31:52]MH_SAM_APDU [23:31:52]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 A4 AC AA 31 2E 6E [23:31:52]Write to MH i2c: E2 13 00 81 22 80 0D 02 02 0B 00 00 35 04 06 00 A4 AC AA 31 2E 6E 00 00 39 [23:31:52]Write i2c OK [23:31:52]MH_I2C_Read... [23:31:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:31:52]Read from MH i2c: E2 [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: E2 03 00 [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: E2 03 00 81 22 00 90 00 17 [23:31:52]RAPDU: 90 00 [23:31:52]wFMCommunicate OK [23:31:52]wFMCommunicate request_size=4 [23:31:52]MH_SAM_APDU [23:31:52]CAPDU: 80 0D 03 02 [23:31:52]Write to MH i2c: E2 08 00 82 22 80 0D 03 02 00 00 00 00 1F [23:31:52]Write i2c OK [23:31:52]MH_I2C_Read... [23:31:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:31:52]Read from MH i2c: E2 [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: E2 0B 00 [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: E2 0B 00 82 22 00 79 AF 63 86 C9 52 8C 9B 90 00 73 [23:31:52]RAPDU: 79 AF 63 86 C9 52 8C 9B 90 00 [23:31:52]wFMCommunicate OK [23:31:52]SAM_PROTO_SignData done [23:31:52]FM_MakeSignedData done [23:31:52]CreateOFDProtocolMessage [23:31:52]wFMCommunicate request_size=4 [23:31:52]MH_SAM_APDU [23:31:52]CAPDU: 80 11 00 00 [23:31:52]Write to MH i2c: E2 08 00 83 22 80 11 00 00 00 00 00 00 1F [23:31:52]Write i2c OK [23:31:52]MH_I2C_Read... [23:31:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:31:52]Read from MH i2c: E2 [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: E2 17 00 [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: E2 17 00 83 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 71 [23:31:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:31:52]wFMCommunicate OK [23:31:52]CreateOFDProtocolMessage done [23:31:52]OFDSenderStorePacket 69596 [23:31:52]StoreOFDPacket docnum=69596 [23:31:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 71 F5 0D 01 D5 4A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 01 00 00 F4 03 04 00 E8 92 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DC 0F 01 00 35 04 06 00 A4 AC AA 31 2E 6E 79 AF 63 86 C9 52 8C 9B [23:31:52]CheckFolder [23:31:52]dirname=/storage/ofd_packets [23:31:52]CheckFolder done [23:31:52]ProducePacketName [23:31:52]name=ofd_packets/00069596 [23:31:52]NVStorageSaveData ofd_packets/00069596 [23:31:52]File name is /storage/ofd_packets/00069596 [23:31:52]Write 307 bytes [23:31:52]NVStorageSaveData done [23:31:52]OFDSenderStorePacket done [23:31:52]KKMCreateOFDPacket done [23:31:52]NVStorageSaveData kkm_last_timestamp [23:31:52]File name is /storage/kkm_last_timestamp [23:31:52]Write 4 bytes [23:31:52]NVStorageSaveData done [23:31:52]ExternCall_PrintAddStr [23:31:52]wPrintStart [23:31:52]Write to MH i2c: 01 00 00 84 22 A6 [23:31:52]Write i2c OK [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: 01 [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: 01 07 00 [23:31:52]MH_I2C_Read... [23:31:52]Read from MH i2c: 01 07 00 84 22 00 00 00 00 00 FF 0F BB [23:31:52]RasterBufferAndPrint [23:31:52]line Счет N : (1)2885335 [23:31:52]line ИНН: 02508201610067 [23:31:52]line Контрольно-Кассовый Чек [23:31:52]line ПРОДАЖА [23:31:52]line ТРК (МРК, ГНК) : 11 [23:31:52]line Товар: 2710194240 [23:31:52]line D-ENERGY Дт-К-2 [23:31:52]line 38.870 * 77.20 [23:31:52]line = 3000.76 [23:31:52]line НДС 12% НСП 1% [23:31:52]line > о реализуемом товаре [23:31:52]line ОКРУГЛЕНИЕ: -0.76 [23:31:52]line ИТОГО: 3000.00 [23:31:52]line Внесено: 3000.00 [23:31:52]line СДАЧА: 0.00 [23:31:52]line НСП 1% : 26.55 [23:31:52]line НДС 12% : 318.66 [23:31:52]line Наличными: 3000.00 [23:31:52]line Безнал.: 0.00 [23:31:52]line Место: АЗС № 85 "Партнер Нефть" [23:31:52]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:31:52]line СНО: Общий режим [23:31:52]line Чек 441 20.10.2024 23:31 [23:31:52]line Смена: 193 ФФД: 1.0 [23:31:52]line ЗНМ: 0300000167 [23:31:52]line РНМ: 0000000000156251 [23:31:52]line Версия ККМ: v1.0 [23:31:52]line ФМ: 0000000000963346 [23:31:52]line ФД: 69596 [23:31:52]line ФПД: 181061496680046 [23:31:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T233152&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69596&fm=181061496680046&tin=02508201610067®Number=0000000000156251&sum=300000 [23:31:53]OFD Sender: Processing packet 69596 [packets to send 18, broken 17] [23:31:53]ProducePacketName [23:31:53]name=ofd_packets/00069596 [23:31:53]OFD Sender: To server: pG, [23:31:53]CommunicateWithHost lk.salyk.kg:30040 [23:31:53]ConnectInit lk.salyk.kg [23:31:53]written 0, free lines is 4095 [23:31:53]Connected sock=10 [23:31:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 71 F5 0D 01 D5 4A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 01 00 00 F4 03 04 00 E8 92 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DC 0F 01 00 35 04 06 00 A4 AC AA 31 2E 6E 79 AF 63 86 C9 52 8C 9B [23:31:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 7E 83 47 00 EE 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DC 0F 01 00 F4 03 04 00 8E 3C 15 67 B6 04 01 00 00 1A A0 67 D7 78 BE A6 3C [23:31:53]CommunicateWithHost err = 0 [23:31:53]CheckOFDResponse [23:31:53]1017 (14) - 77093643461234 [23:31:53]1041 (16) - 0000000000963346 [23:31:53]1040 (4) - 69596 [23:31:53]1012 (4) - 20.10.2024 17:23 [23:31:53]1206 (1) - 0 [23:31:53]OFD Sender: Remove packet 69596 [23:31:53]ProducePacketName [23:31:53]name=ofd_packets/00069596 [23:31:53]NVStorageDeleteData [23:31:53]Write to MH i2c: 01 00 00 AF 22 D1 [23:31:53]Write i2c OK [23:31:53]MH_I2C_Read... [23:31:53]Read from MH i2c: 01 [23:31:53]MH_I2C_Read... [23:31:53]Read from MH i2c: 01 07 00 [23:31:53]MH_I2C_Read... [23:31:53]Read from MH i2c: 01 07 00 AF 22 00 00 00 00 00 F0 0C D4 [23:31:53]RasterBufferAndPrint [23:31:53]line [23:31:53]line [23:31:53]line [23:31:53]line [23:31:53]line [23:31:53]written 0, free lines is 3321 [23:31:53]MH_Cut [23:31:53]Write to MH i2c: D1 01 00 B6 22 01 AA [23:31:53]Write i2c OK [23:31:53]MH_I2C_Read... [23:31:53]Read from MH i2c: D1 [23:31:53]MH_I2C_Read... [23:31:53]Read from MH i2c: D1 01 00 [23:31:53]MH_I2C_Read... [23:31:53]Read from MH i2c: D1 01 00 B6 22 00 A9 [23:31:53]Write to MH i2c: 01 00 00 B7 22 D9 [23:31:53]Write i2c OK [23:31:53]MH_I2C_Read... [23:31:54]OFD Sender: No OFD packet to send [23:31:54]*** Cut start [23:31:54]*** Partial cut [23:31:54]*** CUTSNS_PIN = 1 [23:31:54]*** CUTSNS_PIN = 0 [23:31:54]*** Brake cut motor [23:31:55]Read from MH i2c: 01 [23:31:55]MH_I2C_Read... [23:31:55]*** Stop cut motor [23:31:55]*** Cut end [23:31:55]Read from MH i2c: 01 07 00 [23:31:55]MH_I2C_Read... [23:31:55]Read from MH i2c: 01 07 00 B7 22 00 00 00 00 00 FF 0F EE [23:31:55]process_action close_receipt done [23:31:55]requested_data is exist [23:31:55]produce_requested_data [23:31:55]requested_item fm.sn is exist - process it [23:31:55]wFMCommunicate request_size=4 [23:31:55]MH_SAM_APDU [23:31:55]CAPDU: 80 11 00 00 [23:31:55]Write to MH i2c: E2 08 00 B8 22 80 11 00 00 00 00 00 00 54 [23:31:55]Write i2c OK [23:31:55]MH_I2C_Read... [23:31:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:31:55]Read from MH i2c: E2 [23:31:55]MH_I2C_Read... [23:31:55]Read from MH i2c: E2 17 00 [23:31:55]MH_I2C_Read... [23:31:55]Read from MH i2c: E2 17 00 B8 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A6 [23:31:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:31:55]wFMCommunicate OK [23:31:55]requested_item fd.num is exist - process it [23:31:55]SAM_PROTO_GetFieldsCounters [23:31:55]wFMCommunicate request_size=4 [23:31:55]MH_SAM_APDU [23:31:55]CAPDU: 80 13 00 00 [23:31:55]Write to MH i2c: E2 08 00 B9 22 80 13 00 00 00 00 00 00 57 [23:31:55]Write i2c OK [23:31:55]MH_I2C_Read... [23:31:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:31:55]Read from MH i2c: E2 [23:31:55]MH_I2C_Read... [23:31:55]Read from MH i2c: E2 62 00 [23:31:55]MH_I2C_Read... [23:31:55]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 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DC 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 B9 01 00 00 5E 04 04 00 B9 01 00 00 57 04 04 00 BA 01 00 00 19 04 04 00 00 00 00 00 90 00 4D [23:31:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DC 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 B9 01 00 00 5E 04 04 00 B9 01 00 00 57 04 04 00 BA 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:31:55]wFMCommunicate OK [23:31:55]SAM_PROTO_GetFieldsCounters done [23:31:55]requested_item shift.num is exist - process it [23:31:55]requested_item shift.opened is exist - process it [23:31:55]req_shift_opened [23:31:55]FM_GetShiftState [23:31:55]SAM_PROTO_GetShiftState [23:31:55]wFMCommunicate request_size=4 [23:31:55]MH_SAM_APDU [23:31:55]CAPDU: 80 13 01 00 [23:31:55]Write to MH i2c: E2 08 00 BA 22 80 13 01 00 00 00 00 00 59 [23:31:55]Write i2c OK [23:31:55]MH_I2C_Read... [23:31:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:31:55]Read from MH i2c: E2 [23:31:55]MH_I2C_Read... [23:31:55]Read from MH i2c: E2 0E 00 [23:31:55]MH_I2C_Read... [23:31:55]Read from MH i2c: E2 0E 00 BA 22 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 5F [23:31:55]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [23:31:55]wFMCommunicate OK [23:31:55]SAM_PROTO_GetShiftState done [23:31:55]FM_GetShiftState done [23:31:55]req_shift_opened done [23:31:55]requested_item shift.open_date is exist - process it [23:31:55]req_shift_open_date [23:31:55]req_shift_open_date done [23:31:55]produce_requested_data done [23:31:55]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69596,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [23:31:55]process_action_free close_receipt [23:31:55]json_value_free [23:31:55]json_value_free done [23:31:55]process_json_proto returns [23:31:55]Send response to host [23:31:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69596,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [23:31:55]free response buf [23:31:55]execute_script done [23:31:55]execute_script returns [23:31:55]free content buf [23:31:55]Sock 7.Close socket [23:31:55]Sock 7.Thread stoped [23:31:59]OFD Sender: No OFD packet to send [23:32:04]OFD Sender: No OFD packet to send [23:32:09]OFD Sender: No OFD packet to send [23:32:14]OFD Sender: No OFD packet to send [23:32:19]OFD Sender: No OFD packet to send [23:32:24]OFD Sender: No OFD packet to send [23:32:29]OFD Sender: No OFD packet to send [23:32:34]OFD Sender: No OFD packet to send [23:32:39]OFD Sender: No OFD packet to send [23:32:44]OFD Sender: No OFD packet to send [23:32:49]OFD Sender: No OFD packet to send [23:32:54]OFD Sender: No OFD packet to send [23:32:59]OFD Sender: No OFD packet to send [23:33:04]OFD Sender: No OFD packet to send [23:33:09]OFD Sender: No OFD packet to send [23:33:14]OFD Sender: No OFD packet to send [23:33:15]accept exits with 9 [23:33:15]New connection [23:33:15]New thread 3066797412 created [23:33:15]Thread 3066654052 joined [23:33:15]Waiting for new connection... [23:33:15] Sock 9.Parse request [23:33:15]Sock 9.Check first char [23:33:15]Sock 9.First char is OK [23:33:15]request: POST /json_proto HTTP/1.0 [23:33:15]Method: POST [23:33:15]URL: /json_proto [23:33:15]Method is POST - this is cgi request [23:33:15]url: /json_proto [23:33:15]query_string will be loaded in cgi processing [23:33:15]execute_cgi json_proto POST (null) [23:33:15]execute_cgi path=json_proto method=POST [23:33:15]POST find Content-Length [23:33:15]Host: 172.17.50.3:8080 [23:33:15]Content-Length: 678 [23:33:15]Content-Type: application/json [23:33:15] [23:33:15]POST finish read [23:33:15]Found Content-Length = 678 [23:33:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:33:15]execute_script... [23:33:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:33:15]POST & json_proto [23:33:15]process_json_proto [23:33:15]json parsed OK: [23:33:15]protocol is kg_v1.0 [23:33:15]action value=close_receipt [23:33:15]process_action close_receipt [23:33:15]cmd_close_receipt [23:33:15]MH_GetDate [23:33:15]Write to MH i2c: F0 00 00 BB 22 CC [23:33:15]Write i2c OK [23:33:15]MH_I2C_Read... [23:33:15]Read from MH i2c: F0 [23:33:15]MH_I2C_Read... [23:33:15]Read from MH i2c: F0 09 00 [23:33:15]MH_I2C_Read... [23:33:15]Read from MH i2c: F0 09 00 BB 22 00 3D 93 15 67 6B 98 1E 66 A8 [23:33:15]GetLastDocTimeStamp 1729467112 [23:33:15]current date 1729467197 [23:33:15]FM_GetShiftState [23:33:15]SAM_PROTO_GetShiftState [23:33:15]wFMCommunicate request_size=4 [23:33:15]MH_SAM_APDU [23:33:15]CAPDU: 80 13 01 00 [23:33:15]Write to MH i2c: E2 08 00 BC 22 80 13 01 00 00 00 00 00 5B [23:33:15]Write i2c OK [23:33:15]MH_I2C_Read... [23:33:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:33:15]Read from MH i2c: E2 [23:33:15]MH_I2C_Read... [23:33:15]Read from MH i2c: E2 0E 00 [23:33:15]MH_I2C_Read... [23:33:15]Read from MH i2c: E2 0E 00 BC 22 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 61 [23:33:15]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [23:33:15]wFMCommunicate OK [23:33:15]SAM_PROTO_GetShiftState done [23:33:15]FM_GetShiftState done [23:33:15]opened in 1729383220 [23:33:15]opened+sec_in_day 1729469620 [23:33:15]quantity*price = 50041 [23:33:15]sum+1 = 50042 [23:33:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 442 20.10.2024 23:33 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69597 ФПД: 63134133529867 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T233317&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69597&fm=63134133529867&tin=02508201610067®Number=0000000000156251&sum=50000 [23:33:16]StoreToDocumentArchive [23:33:16]shift 193 fd 69597 [23:33:16]save to /storage/0193/doc_00069597 [23:33:16]save last doc name /storage/0193/doc_00069597 to /storage/kkm_last_doc_name [23:33:16]save OK [23:33:16]Clear old archive folders... [23:33:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:33:16]tlvbuf is 00F9EB70 [23:33:16]SAM_PROTO_ClearQueue [23:33:16]wFMCommunicate request_size=4 [23:33:16]MH_SAM_APDU [23:33:16]CAPDU: 80 09 00 00 [23:33:16]Write to MH i2c: E2 08 00 C9 22 80 09 00 00 00 00 00 00 5D [23:33:16]Write i2c OK [23:33:16]MH_I2C_Read... [23:33:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:33:16]Read from MH i2c: E2 [23:33:16]MH_I2C_Read... [23:33:16]Read from MH i2c: E2 03 00 [23:33:16]MH_I2C_Read... [23:33:16]Read from MH i2c: E2 03 00 C9 22 00 90 00 5F [23:33:16]RAPDU: 90 00 [23:33:16]wFMCommunicate OK [23:33:16]SAM_PROTO_ClearQueue done [23:33:16]KKMCreateOFDPacket [23:33:16]OFDProtocolAddRootSTLVToBuf [23:33:16]FM_MakeSignedData [23:33:16]FM_MakeSignedData [23:33:16]SAM_PROTO_SignData [23:33:16]wFMCommunicate request_size=4 [23:33:16]MH_SAM_APDU [23:33:16]CAPDU: 80 0D 01 02 [23:33:16]Write to MH i2c: E2 08 00 CA 22 80 0D 01 02 00 00 00 00 65 [23:33:16]Write i2c OK [23:33:16]MH_I2C_Read... [23:33:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:33:16]Read from MH i2c: E2 [23:33:16]MH_I2C_Read... [23:33:16]Read from MH i2c: E2 03 00 [23:33:16]MH_I2C_Read... [23:33:16]Read from MH i2c: E2 03 00 CA 22 00 90 00 60 [23:33:16]RAPDU: 90 00 [23:33:16]wFMCommunicate OK [23:33:16]wFMCommunicate request_size=255 [23:33:16]MH_SAM_APDU [23:33:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 01 00 00 F4 03 04 00 3D 93 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DD 0F 01 00 35 04 06 00 39 [23:33:16]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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 01 00 00 F4 03 04 00 3D 93 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DD 0F 01 00 35 04 06 00 39 00 00 DC [23:33:16]Write i2c OK [23:33:16]MH_I2C_Read... [23:33:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:33:17]Read from MH i2c: E2 [23:33:17]MH_I2C_Read... [23:33:17]Read from MH i2c: E2 03 00 [23:33:17]MH_I2C_Read... [23:33:17]Read from MH i2c: E2 03 00 CB 22 00 90 00 61 [23:33:17]RAPDU: 90 00 [23:33:17]wFMCommunicate OK [23:33:17]wFMCommunicate request_size=10 [23:33:17]MH_SAM_APDU [23:33:17]CAPDU: 80 0D 02 02 05 6B 8F 9A 2D 0B [23:33:17]Write to MH i2c: E2 0D 00 CC 22 80 0D 02 02 05 00 6B 8F 9A 2D 0B 00 00 3E [23:33:17]Write i2c OK [23:33:17]MH_I2C_Read... [23:33:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:33:17]Read from MH i2c: E2 [23:33:17]MH_I2C_Read... [23:33:17]Read from MH i2c: E2 03 00 [23:33:17]MH_I2C_Read... [23:33:17]Read from MH i2c: E2 03 00 CC 22 00 90 00 62 [23:33:17]RAPDU: 90 00 [23:33:17]wFMCommunicate OK [23:33:17]wFMCommunicate request_size=4 [23:33:17]MH_SAM_APDU [23:33:17]CAPDU: 80 0D 03 02 [23:33:17]Write to MH i2c: E2 08 00 CD 22 80 0D 03 02 00 00 00 00 6A [23:33:17]Write i2c OK [23:33:17]MH_I2C_Read... [23:33:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:33:17]Read from MH i2c: E2 [23:33:17]MH_I2C_Read... [23:33:17]Read from MH i2c: E2 0B 00 [23:33:17]MH_I2C_Read... [23:33:17]Read from MH i2c: E2 0B 00 CD 22 00 B0 66 8B 8E B4 91 FE 86 90 00 63 [23:33:17]RAPDU: B0 66 8B 8E B4 91 FE 86 90 00 [23:33:17]wFMCommunicate OK [23:33:17]SAM_PROTO_SignData done [23:33:17]FM_MakeSignedData done [23:33:17]CreateOFDProtocolMessage [23:33:17]wFMCommunicate request_size=4 [23:33:17]MH_SAM_APDU [23:33:17]CAPDU: 80 11 00 00 [23:33:17]Write to MH i2c: E2 08 00 CE 22 80 11 00 00 00 00 00 00 6A [23:33:17]Write i2c OK [23:33:17]MH_I2C_Read... [23:33:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:33:17]Read from MH i2c: E2 [23:33:17]MH_I2C_Read... [23:33:17]Read from MH i2c: E2 17 00 [23:33:17]MH_I2C_Read... [23:33:17]Read from MH i2c: E2 17 00 CE 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BC [23:33:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:33:17]wFMCommunicate OK [23:33:17]CreateOFDProtocolMessage done [23:33:17]OFDSenderStorePacket 69597 [23:33:17]StoreOFDPacket docnum=69597 [23:33:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 D4 5B 07 01 C7 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 01 00 00 F4 03 04 00 3D 93 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DD 0F 01 00 35 04 06 00 39 6B 8F 9A 2D 0B B0 66 8B 8E B4 91 FE 86 [23:33:17]CheckFolder [23:33:17]dirname=/storage/ofd_packets [23:33:17]CheckFolder done [23:33:17]ProducePacketName [23:33:17]name=ofd_packets/00069597 [23:33:17]NVStorageSaveData ofd_packets/00069597 [23:33:17]File name is /storage/ofd_packets/00069597 [23:33:17]Write 301 bytes [23:33:17]NVStorageSaveData done [23:33:17]OFDSenderStorePacket done [23:33:17]KKMCreateOFDPacket done [23:33:17]NVStorageSaveData kkm_last_timestamp [23:33:17]File name is /storage/kkm_last_timestamp [23:33:17]Write 4 bytes [23:33:17]NVStorageSaveData done [23:33:17]ExternCall_PrintAddStr [23:33:17]wPrintStart [23:33:17]Write to MH i2c: 01 00 00 CF 22 F1 [23:33:17]Write i2c OK [23:33:17]MH_I2C_Read... [23:33:17]Read from MH i2c: 01 [23:33:17]MH_I2C_Read... [23:33:17]Read from MH i2c: 01 07 00 [23:33:17]MH_I2C_Read... [23:33:17]Read from MH i2c: 01 07 00 CF 22 00 00 00 00 00 FF 0F 06 [23:33:17]RasterBufferAndPrint [23:33:17]line Счет N : (1)2885336 [23:33:17]line ИНН: 02508201610067 [23:33:17]line Контрольно-Кассовый Чек [23:33:17]line ПРОДАЖА [23:33:17]line ТРК (МРК, ГНК) : 42 [23:33:17]line Товар: 2710124130 [23:33:17]line Аи-92-К-5 [23:33:17]line 7.480 * 66.90 [23:33:17]line = 500.41 [23:33:17]line НДС 12% НСП 1% [23:33:17]line > о реализуемом товаре [23:33:17]line ОКРУГЛЕНИЕ: -0.41 [23:33:17]line ИТОГО: 500.00 [23:33:17]line Внесено: 500.00 [23:33:17]line СДАЧА: 0.00 [23:33:17]line НСП 1% : 4.43 [23:33:17]line НДС 12% : 53.14 [23:33:17]line Наличными: 500.00 [23:33:17]line Безнал.: 0.00 [23:33:17]line Место: АЗС № 85 "Партнер Нефть" [23:33:17]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:33:17]line СНО: Общий режим [23:33:17]line Чек 442 20.10.2024 23:33 [23:33:17]line Смена: 193 ФФД: 1.0 [23:33:17]line ЗНМ: 0300000167 [23:33:17]line РНМ: 0000000000156251 [23:33:17]line Версия ККМ: v1.0 [23:33:17]line ФМ: 0000000000963346 [23:33:17]line ФД: 69597 [23:33:17]line ФПД: 63134133529867 [23:33:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T233317&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69597&fm=63134133529867&tin=02508201610067®Number=0000000000156251&sum=50000 [23:33:17]OFD Sender: Processing packet 69597 [packets to send 18, broken 17] [23:33:17]ProducePacketName [23:33:17]name=ofd_packets/00069597 [23:33:17]OFD Sender: To server: pG, [23:33:17]CommunicateWithHost lk.salyk.kg:30040 [23:33:17]ConnectInit lk.salyk.kg [23:33:17]written 0, free lines is 4095 [23:33:17]Connected sock=10 [23:33:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 D4 5B 07 01 C7 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 01 00 00 F4 03 04 00 3D 93 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DD 0F 01 00 35 04 06 00 39 6B 8F 9A 2D 0B B0 66 8B 8E B4 91 FE 86 [23:33:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 A0 68 47 00 6C A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DD 0F 01 00 F4 03 04 00 E2 3C 15 67 B6 04 01 00 00 17 2F D1 D7 21 49 A7 DC [23:33:18]CommunicateWithHost err = 0 [23:33:18]CheckOFDResponse [23:33:18]1017 (14) - 77093643461234 [23:33:18]1041 (16) - 0000000000963346 [23:33:18]1040 (4) - 69597 [23:33:18]1012 (4) - 20.10.2024 17:24 [23:33:18]1206 (1) - 0 [23:33:18]OFD Sender: Remove packet 69597 [23:33:18]ProducePacketName [23:33:18]name=ofd_packets/00069597 [23:33:18]NVStorageDeleteData [23:33:18]Write to MH i2c: 01 00 00 FA 22 1C [23:33:18]Write i2c OK [23:33:18]MH_I2C_Read... [23:33:18]Read from MH i2c: 01 [23:33:18]MH_I2C_Read... [23:33:18]Read from MH i2c: 01 07 00 [23:33:18]MH_I2C_Read... [23:33:18]Read from MH i2c: 01 07 00 FA 22 00 00 00 00 00 E8 0C 17 [23:33:18]RasterBufferAndPrint [23:33:18]line [23:33:18]line [23:33:18]line [23:33:18]line [23:33:18]line [23:33:18]written 0, free lines is 3310 [23:33:18]MH_Cut [23:33:18]Write to MH i2c: D1 01 00 01 23 01 F6 [23:33:18]Write i2c OK [23:33:18]MH_I2C_Read... [23:33:18]Read from MH i2c: D1 [23:33:18]MH_I2C_Read... [23:33:18]Read from MH i2c: D1 01 00 [23:33:18]MH_I2C_Read... [23:33:18]Read from MH i2c: D1 01 00 01 23 00 F5 [23:33:18]Write to MH i2c: 01 00 00 02 23 25 [23:33:18]Write i2c OK [23:33:18]MH_I2C_Read... [23:33:18]OFD Sender: No OFD packet to send [23:33:18]*** Cut start [23:33:18]*** Partial cut [23:33:18]*** CUTSNS_PIN = 1 [23:33:18]*** CUTSNS_PIN = 0 [23:33:19]*** Brake cut motor [23:33:19]Read from MH i2c: 01 [23:33:19]MH_I2C_Read... [23:33:19]*** Stop cut motor [23:33:19]*** Cut end [23:33:19]Read from MH i2c: 01 07 00 [23:33:19]MH_I2C_Read... [23:33:19]Read from MH i2c: 01 07 00 02 23 00 00 00 00 00 FF 0F 3A [23:33:19]process_action close_receipt done [23:33:19]requested_data is exist [23:33:19]produce_requested_data [23:33:19]requested_item fm.sn is exist - process it [23:33:19]wFMCommunicate request_size=4 [23:33:19]MH_SAM_APDU [23:33:19]CAPDU: 80 11 00 00 [23:33:19]Write to MH i2c: E2 08 00 03 23 80 11 00 00 00 00 00 00 A0 [23:33:19]Write i2c OK [23:33:19]MH_I2C_Read... [23:33:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:33:19]Read from MH i2c: E2 [23:33:19]MH_I2C_Read... [23:33:19]Read from MH i2c: E2 17 00 [23:33:19]MH_I2C_Read... [23:33:19]Read from MH i2c: E2 17 00 03 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F2 [23:33:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:33:19]wFMCommunicate OK [23:33:19]requested_item fd.num is exist - process it [23:33:19]SAM_PROTO_GetFieldsCounters [23:33:19]wFMCommunicate request_size=4 [23:33:19]MH_SAM_APDU [23:33:19]CAPDU: 80 13 00 00 [23:33:19]Write to MH i2c: E2 08 00 04 23 80 13 00 00 00 00 00 00 A3 [23:33:19]Write i2c OK [23:33:19]MH_I2C_Read... [23:33:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:33:19]Read from MH i2c: E2 [23:33:19]MH_I2C_Read... [23:33:19]Read from MH i2c: E2 62 00 [23:33:19]MH_I2C_Read... [23:33:19]Read from MH i2c: E2 62 00 04 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DD 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 BA 01 00 00 5E 04 04 00 BA 01 00 00 57 04 04 00 BB 01 00 00 19 04 04 00 00 00 00 00 90 00 9D [23:33:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DD 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 BA 01 00 00 5E 04 04 00 BA 01 00 00 57 04 04 00 BB 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:33:19]wFMCommunicate OK [23:33:19]SAM_PROTO_GetFieldsCounters done [23:33:19]requested_item shift.num is exist - process it [23:33:19]requested_item shift.opened is exist - process it [23:33:19]req_shift_opened [23:33:19]FM_GetShiftState [23:33:19]SAM_PROTO_GetShiftState [23:33:19]wFMCommunicate request_size=4 [23:33:19]MH_SAM_APDU [23:33:19]CAPDU: 80 13 01 00 [23:33:19]Write to MH i2c: E2 08 00 05 23 80 13 01 00 00 00 00 00 A5 [23:33:19]Write i2c OK [23:33:19]MH_I2C_Read... [23:33:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:33:19]Read from MH i2c: E2 [23:33:19]MH_I2C_Read... [23:33:19]Read from MH i2c: E2 0E 00 [23:33:19]MH_I2C_Read... [23:33:19]Read from MH i2c: E2 0E 00 05 23 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 AB [23:33:19]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [23:33:19]wFMCommunicate OK [23:33:19]SAM_PROTO_GetShiftState done [23:33:19]FM_GetShiftState done [23:33:19]req_shift_opened done [23:33:19]requested_item shift.open_date is exist - process it [23:33:19]req_shift_open_date [23:33:19]req_shift_open_date done [23:33:19]produce_requested_data done [23:33:19]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69597,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [23:33:19]process_action_free close_receipt [23:33:19]json_value_free [23:33:19]json_value_free done [23:33:19]process_json_proto returns [23:33:19]Send response to host [23:33:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69597,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [23:33:19]free response buf [23:33:19]execute_script done [23:33:19]execute_script returns [23:33:19]free content buf [23:33:19]Sock 9.Close socket [23:33:19]Sock 9.Thread stoped [23:33:23]OFD Sender: No OFD packet to send [23:33:28]OFD Sender: No OFD packet to send [23:33:33]OFD Sender: No OFD packet to send [23:33:38]OFD Sender: No OFD packet to send [23:33:43]OFD Sender: No OFD packet to send [23:33:48]OFD Sender: No OFD packet to send [23:33:53]OFD Sender: No OFD packet to send [23:33:58]OFD Sender: No OFD packet to send [23:34:03]OFD Sender: No OFD packet to send [23:34:08]OFD Sender: No OFD packet to send [23:34:13]OFD Sender: No OFD packet to send [23:34:18]OFD Sender: No OFD packet to send [23:34:23]OFD Sender: No OFD packet to send [23:34:28]OFD Sender: No OFD packet to send [23:34:33]OFD Sender: No OFD packet to send [23:34:38]OFD Sender: No OFD packet to send [23:34:43]OFD Sender: No OFD packet to send [23:34:48]OFD Sender: No OFD packet to send [23:34:53]OFD Sender: No OFD packet to send [23:34:58]OFD Sender: No OFD packet to send [23:35:03]OFD Sender: No OFD packet to send [23:35:08]OFD Sender: No OFD packet to send [23:35:13]OFD Sender: No OFD packet to send [23:35:18]OFD Sender: No OFD packet to send [23:35:23]OFD Sender: No OFD packet to send [23:35:28]OFD Sender: No OFD packet to send [23:35:33]OFD Sender: No OFD packet to send [23:35:38]OFD Sender: No OFD packet to send [23:35:43]OFD Sender: No OFD packet to send [23:35:48]OFD Sender: No OFD packet to send [23:35:53]OFD Sender: No OFD packet to send [23:35:58]OFD Sender: No OFD packet to send [23:36:03]OFD Sender: No OFD packet to send [23:36:08]OFD Sender: No OFD packet to send [23:36:13]OFD Sender: No OFD packet to send [23:36:18]OFD Sender: No OFD packet to send [23:36:23]OFD Sender: No OFD packet to send [23:36:28]OFD Sender: No OFD packet to send [23:36:33]OFD Sender: No OFD packet to send [23:36:38]OFD Sender: No OFD packet to send [23:36:43]OFD Sender: No OFD packet to send [23:36:48]OFD Sender: No OFD packet to send [23:36:53]OFD Sender: No OFD packet to send [23:36:58]OFD Sender: No OFD packet to send [23:37:03]OFD Sender: No OFD packet to send [23:37:08]OFD Sender: No OFD packet to send [23:37:13]OFD Sender: No OFD packet to send [23:37:18]OFD Sender: No OFD packet to send [23:37:23]OFD Sender: No OFD packet to send [23:37:28]OFD Sender: No OFD packet to send [23:37:33]OFD Sender: No OFD packet to send [23:37:38]OFD Sender: No OFD packet to send [23:37:43]OFD Sender: No OFD packet to send [23:37:48]OFD Sender: No OFD packet to send [23:37:53]OFD Sender: No OFD packet to send [23:37:58]OFD Sender: No OFD packet to send [23:38:03]OFD Sender: No OFD packet to send [23:38:08]OFD Sender: No OFD packet to send [23:38:13]OFD Sender: No OFD packet to send [23:38:18]OFD Sender: No OFD packet to send [23:38:23]OFD Sender: No OFD packet to send [23:38:28]OFD Sender: No OFD packet to send [23:38:33]OFD Sender: No OFD packet to send [23:38:38]OFD Sender: No OFD packet to send [23:38:43]OFD Sender: No OFD packet to send [23:38:48]OFD Sender: No OFD packet to send [23:38:53]OFD Sender: No OFD packet to send [23:38:58]OFD Sender: No OFD packet to send [23:39:03]OFD Sender: No OFD packet to send [23:39:08]OFD Sender: No OFD packet to send [23:39:13]OFD Sender: No OFD packet to send [23:39:18]OFD Sender: No OFD packet to send [23:39:23]OFD Sender: No OFD packet to send [23:39:28]OFD Sender: No OFD packet to send [23:39:33]OFD Sender: No OFD packet to send [23:39:38]OFD Sender: No OFD packet to send [23:39:40]accept exits with 7 [23:39:40]New connection [23:39:40]New thread 3066654052 created [23:39:40]Thread 3066797412 joined [23:39:40]Waiting for new connection... [23:39:40] Sock 7.Parse request [23:39:40]Sock 7.Check first char [23:39:40]Sock 7.First char is OK [23:39:40]request: POST /json_proto HTTP/1.0 [23:39:40]Method: POST [23:39:40]URL: /json_proto [23:39:40]Method is POST - this is cgi request [23:39:40]url: /json_proto [23:39:40]query_string will be loaded in cgi processing [23:39:40]execute_cgi json_proto POST (null) [23:39:40]execute_cgi path=json_proto method=POST [23:39:40]POST find Content-Length [23:39:40]Host: 172.17.50.3:8080 [23:39:40]Content-Length: 686 [23:39:40]Content-Type: application/json [23:39:40] [23:39:40]POST finish read [23:39:40]Found Content-Length = 686 [23:39:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:39:40]execute_script... [23:39:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:39:40]POST & json_proto [23:39:40]process_json_proto [23:39:40]json parsed OK: [23:39:40]protocol is kg_v1.0 [23:39:40]action value=close_receipt [23:39:40]process_action close_receipt [23:39:40]cmd_close_receipt [23:39:40]MH_GetDate [23:39:40]Write to MH i2c: F0 00 00 06 23 18 [23:39:40]Write i2c OK [23:39:40]MH_I2C_Read... [23:39:40]Read from MH i2c: F0 [23:39:40]MH_I2C_Read... [23:39:40]Read from MH i2c: F0 09 00 [23:39:40]MH_I2C_Read... [23:39:40]Read from MH i2c: F0 09 00 06 23 00 BE 94 15 67 6B 98 1E 66 76 [23:39:40]GetLastDocTimeStamp 1729467197 [23:39:40]current date 1729467582 [23:39:40]FM_GetShiftState [23:39:40]SAM_PROTO_GetShiftState [23:39:40]wFMCommunicate request_size=4 [23:39:40]MH_SAM_APDU [23:39:40]CAPDU: 80 13 01 00 [23:39:40]Write to MH i2c: E2 08 00 07 23 80 13 01 00 00 00 00 00 A7 [23:39:40]Write i2c OK [23:39:40]MH_I2C_Read... [23:39:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:39:41]Read from MH i2c: E2 [23:39:41]MH_I2C_Read... [23:39:41]Read from MH i2c: E2 0E 00 [23:39:41]MH_I2C_Read... [23:39:41]Read from MH i2c: E2 0E 00 07 23 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 AD [23:39:41]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [23:39:41]wFMCommunicate OK [23:39:41]SAM_PROTO_GetShiftState done [23:39:41]FM_GetShiftState done [23:39:41]opened in 1729383220 [23:39:41]opened+sec_in_day 1729469620 [23:39:41]quantity*price = 100011 [23:39:41]sum+1 = 100013 [23:39:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 443 20.10.2024 23:39 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69598 ФПД: 265803784995469 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T233942&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69598&fm=265803784995469&tin=02508201610067®Number=0000000000156251&sum=100000 [23:39:42]StoreToDocumentArchive [23:39:42]shift 193 fd 69598 [23:39:42]save to /storage/0193/doc_00069598 [23:39:42]save last doc name /storage/0193/doc_00069598 to /storage/kkm_last_doc_name [23:39:42]save OK [23:39:42]Clear old archive folders... [23:39:42]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:39:42]tlvbuf is 00F53F10 [23:39:42]SAM_PROTO_ClearQueue [23:39:42]wFMCommunicate request_size=4 [23:39:42]MH_SAM_APDU [23:39:42]CAPDU: 80 09 00 00 [23:39:42]Write to MH i2c: E2 08 00 14 23 80 09 00 00 00 00 00 00 A9 [23:39:42]Write i2c OK [23:39:42]MH_I2C_Read... [23:39:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:39:42]Read from MH i2c: E2 [23:39:42]MH_I2C_Read... [23:39:42]Read from MH i2c: E2 03 00 [23:39:42]MH_I2C_Read... [23:39:42]Read from MH i2c: E2 03 00 14 23 00 90 00 AB [23:39:42]RAPDU: 90 00 [23:39:42]wFMCommunicate OK [23:39:42]SAM_PROTO_ClearQueue done [23:39:42]KKMCreateOFDPacket [23:39:42]OFDProtocolAddRootSTLVToBuf [23:39:42]FM_MakeSignedData [23:39:42]FM_MakeSignedData [23:39:42]SAM_PROTO_SignData [23:39:42]wFMCommunicate request_size=4 [23:39:42]MH_SAM_APDU [23:39:42]CAPDU: 80 0D 01 02 [23:39:42]Write to MH i2c: E2 08 00 15 23 80 0D 01 02 00 00 00 00 B1 [23:39:42]Write i2c OK [23:39:42]MH_I2C_Read... [23:39:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:39:42]Read from MH i2c: E2 [23:39:42]MH_I2C_Read... [23:39:42]Read from MH i2c: E2 03 00 [23:39:42]MH_I2C_Read... [23:39:42]Read from MH i2c: E2 03 00 15 23 00 90 00 AC [23:39:42]RAPDU: 90 00 [23:39:42]wFMCommunicate OK [23:39:42]wFMCommunicate request_size=255 [23:39:42]MH_SAM_APDU [23:39:42]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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 01 00 00 F4 03 04 00 BE 94 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DE 0F 01 00 35 04 06 00 F1 BF [23:39:42]Write to MH i2c: E2 02 01 16 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 01 00 00 F4 03 04 00 BE 94 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DE 0F 01 00 35 04 06 00 F1 BF 00 00 FE [23:39:42]Write i2c OK [23:39:42]MH_I2C_Read... [23:39:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:39:42]Read from MH i2c: E2 [23:39:42]MH_I2C_Read... [23:39:42]Read from MH i2c: E2 03 00 [23:39:42]MH_I2C_Read... [23:39:42]Read from MH i2c: E2 03 00 16 23 00 90 00 AD [23:39:42]RAPDU: 90 00 [23:39:42]wFMCommunicate OK [23:39:42]wFMCommunicate request_size=9 [23:39:42]MH_SAM_APDU [23:39:42]CAPDU: 80 0D 02 02 04 44 2F 42 8D [23:39:42]Write to MH i2c: E2 0C 00 17 23 80 0D 02 02 04 00 44 2F 42 8D 00 00 FE [23:39:42]Write i2c OK [23:39:42]MH_I2C_Read... [23:39:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:39:42]Read from MH i2c: E2 [23:39:42]MH_I2C_Read... [23:39:42]Read from MH i2c: E2 03 00 [23:39:42]MH_I2C_Read... [23:39:42]Read from MH i2c: E2 03 00 17 23 00 90 00 AE [23:39:42]RAPDU: 90 00 [23:39:42]wFMCommunicate OK [23:39:42]wFMCommunicate request_size=4 [23:39:42]MH_SAM_APDU [23:39:42]CAPDU: 80 0D 03 02 [23:39:42]Write to MH i2c: E2 08 00 18 23 80 0D 03 02 00 00 00 00 B6 [23:39:42]Write i2c OK [23:39:42]MH_I2C_Read... [23:39:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:39:42]Read from MH i2c: E2 [23:39:42]MH_I2C_Read... [23:39:42]Read from MH i2c: E2 0B 00 [23:39:42]MH_I2C_Read... [23:39:42]Read from MH i2c: E2 0B 00 18 23 00 D4 86 B1 C3 7B 24 1D 44 90 00 85 [23:39:42]RAPDU: D4 86 B1 C3 7B 24 1D 44 90 00 [23:39:42]wFMCommunicate OK [23:39:42]SAM_PROTO_SignData done [23:39:42]FM_MakeSignedData done [23:39:42]CreateOFDProtocolMessage [23:39:42]wFMCommunicate request_size=4 [23:39:42]MH_SAM_APDU [23:39:42]CAPDU: 80 11 00 00 [23:39:42]Write to MH i2c: E2 08 00 19 23 80 11 00 00 00 00 00 00 B6 [23:39:42]Write i2c OK [23:39:42]MH_I2C_Read... [23:39:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:39:42]Read from MH i2c: E2 [23:39:42]MH_I2C_Read... [23:39:42]Read from MH i2c: E2 17 00 [23:39:42]MH_I2C_Read... [23:39:42]Read from MH i2c: E2 17 00 19 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 08 [23:39:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:39:42]wFMCommunicate OK [23:39:42]CreateOFDProtocolMessage done [23:39:42]OFDSenderStorePacket 69598 [23:39:42]StoreOFDPacket docnum=69598 [23:39:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 70 49 06 01 61 0E 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 01 00 00 F4 03 04 00 BE 94 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DE 0F 01 00 35 04 06 00 F1 BF 44 2F 42 8D D4 86 B1 C3 7B 24 1D 44 [23:39:42]CheckFolder [23:39:42]dirname=/storage/ofd_packets [23:39:42]CheckFolder done [23:39:42]ProducePacketName [23:39:42]name=ofd_packets/00069598 [23:39:42]NVStorageSaveData ofd_packets/00069598 [23:39:42]File name is /storage/ofd_packets/00069598 [23:39:42]Write 300 bytes [23:39:42]NVStorageSaveData done [23:39:42]OFDSenderStorePacket done [23:39:42]KKMCreateOFDPacket done [23:39:42]NVStorageSaveData kkm_last_timestamp [23:39:42]File name is /storage/kkm_last_timestamp [23:39:42]Write 4 bytes [23:39:42]NVStorageSaveData done [23:39:42]OFD Sender: Processing packet 69598 [packets to send 18, broken 17] [23:39:42]ProducePacketName [23:39:42]name=ofd_packets/00069598 [23:39:42]OFD Sender: To server: pG, [23:39:42]CommunicateWithHost lk.salyk.kg:30040 [23:39:42]ConnectInit lk.salyk.kg [23:39:42]ExternCall_PrintAddStr [23:39:42]wPrintStart [23:39:42]Write to MH i2c: 01 00 00 1A 23 3D [23:39:42]Write i2c OK [23:39:42]MH_I2C_Read... [23:39:42]Read from MH i2c: 01 [23:39:42]MH_I2C_Read... [23:39:42]Read from MH i2c: 01 07 00 [23:39:42]MH_I2C_Read... [23:39:42]Read from MH i2c: 01 07 00 1A 23 00 00 00 00 00 FF 0F 52 [23:39:42]RasterBufferAndPrint [23:39:42]line Счет N : (1)2885337 [23:39:42]line ИНН: 02508201610067 [23:39:42]line Контрольно-Кассовый Чек [23:39:42]line ПРОДАЖА [23:39:42]line ТРК (МРК, ГНК) : 71 [23:39:42]line Товар: 2711129700 [23:39:42]line ГАЗ-К-3 [23:39:42]line 25.710 * 38.90 [23:39:42]line = 1000.12 [23:39:42]line НДС 12% НСП 1% [23:39:42]line > о реализуемом товаре [23:39:42]line ОКРУГЛЕНИЕ: -0.12 [23:39:42]line ИТОГО: 1000.00 [23:39:42]line Внесено: 1000.00 [23:39:42]line СДАЧА: 0.00 [23:39:42]line НСП 1% : 8.85 [23:39:42]line НДС 12% : 106.21 [23:39:42]line Наличными: 1000.00 [23:39:42]line Безнал.: 0.00 [23:39:42]line Место: АЗС № 85 "Партнер Нефть" [23:39:42]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:39:42]line СНО: Общий режим [23:39:42]line Чек 443 20.10.2024 23:39 [23:39:42]line Смена: 193 ФФД: 1.0 [23:39:42]line ЗНМ: 0300000167 [23:39:42]line РНМ: 0000000000156251 [23:39:42]line Версия ККМ: v1.0 [23:39:42]line ФМ: 0000000000963346 [23:39:42]line ФД: 69598 [23:39:42]line ФПД: 265803784995469 [23:39:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T233942&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69598&fm=265803784995469&tin=02508201610067®Number=0000000000156251&sum=100000 [23:39:42]Connected sock=11 [23:39:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 70 49 06 01 61 0E 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 01 00 00 F4 03 04 00 BE 94 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DE 0F 01 00 35 04 06 00 F1 BF 44 2F 42 8D D4 86 B1 C3 7B 24 1D 44 [23:39:43]written 0, free lines is 4095 [23:39:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 50 6D 47 00 13 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DE 0F 01 00 F4 03 04 00 63 3E 15 67 B6 04 01 00 00 21 A3 0E 92 00 42 DB 8B [23:39:43]CommunicateWithHost err = 0 [23:39:43]CheckOFDResponse [23:39:43]1017 (14) - 77093643461234 [23:39:43]1041 (16) - 0000000000963346 [23:39:43]1040 (4) - 69598 [23:39:43]1012 (4) - 20.10.2024 17:31 [23:39:43]1206 (1) - 0 [23:39:43]OFD Sender: Remove packet 69598 [23:39:43]ProducePacketName [23:39:43]name=ofd_packets/00069598 [23:39:43]NVStorageDeleteData [23:39:43]Write to MH i2c: 01 00 00 45 23 68 [23:39:43]Write i2c OK [23:39:43]MH_I2C_Read... [23:39:43]Read from MH i2c: 01 [23:39:43]MH_I2C_Read... [23:39:43]Read from MH i2c: 01 07 00 [23:39:43]MH_I2C_Read... [23:39:43]Read from MH i2c: 01 07 00 45 23 00 00 00 00 00 EA 0C 65 [23:39:43]RasterBufferAndPrint [23:39:43]line [23:39:43]line [23:39:43]line [23:39:43]line [23:39:43]line [23:39:43]written 0, free lines is 3312 [23:39:43]MH_Cut [23:39:43]Write to MH i2c: D1 01 00 4C 23 01 41 [23:39:43]Write i2c OK [23:39:43]MH_I2C_Read... [23:39:43]Read from MH i2c: D1 [23:39:43]MH_I2C_Read... [23:39:43]Read from MH i2c: D1 01 00 [23:39:43]MH_I2C_Read... [23:39:43]Read from MH i2c: D1 01 00 4C 23 00 40 [23:39:43]Write to MH i2c: 01 00 00 4D 23 70 [23:39:43]Write i2c OK [23:39:43]MH_I2C_Read... [23:39:43]OFD Sender: No OFD packet to send [23:39:44]*** Cut start [23:39:44]*** Partial cut [23:39:44]*** CUTSNS_PIN = 1 [23:39:44]*** CUTSNS_PIN = 0 [23:39:44]*** Brake cut motor [23:39:44]Read from MH i2c: 01 [23:39:44]MH_I2C_Read... [23:39:44]*** Stop cut motor [23:39:44]*** Cut end [23:39:44]Read from MH i2c: 01 07 00 [23:39:44]MH_I2C_Read... [23:39:44]Read from MH i2c: 01 07 00 4D 23 00 00 00 00 00 FF 0F 85 [23:39:44]process_action close_receipt done [23:39:44]requested_data is exist [23:39:44]produce_requested_data [23:39:44]requested_item fm.sn is exist - process it [23:39:44]wFMCommunicate request_size=4 [23:39:44]MH_SAM_APDU [23:39:44]CAPDU: 80 11 00 00 [23:39:44]Write to MH i2c: E2 08 00 4E 23 80 11 00 00 00 00 00 00 EB [23:39:44]Write i2c OK [23:39:44]MH_I2C_Read... [23:39:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:39:44]Read from MH i2c: E2 [23:39:44]MH_I2C_Read... [23:39:44]Read from MH i2c: E2 17 00 [23:39:44]MH_I2C_Read... [23:39:44]Read from MH i2c: E2 17 00 4E 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3D [23:39:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:39:44]wFMCommunicate OK [23:39:44]requested_item fd.num is exist - process it [23:39:44]SAM_PROTO_GetFieldsCounters [23:39:44]wFMCommunicate request_size=4 [23:39:44]MH_SAM_APDU [23:39:44]CAPDU: 80 13 00 00 [23:39:44]Write to MH i2c: E2 08 00 4F 23 80 13 00 00 00 00 00 00 EE [23:39:44]Write i2c OK [23:39:44]MH_I2C_Read... [23:39:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:39:44]Read from MH i2c: E2 [23:39:44]MH_I2C_Read... [23:39:44]Read from MH i2c: E2 62 00 [23:39:44]MH_I2C_Read... [23:39:44]Read from MH i2c: E2 62 00 4F 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DE 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 BB 01 00 00 5E 04 04 00 BB 01 00 00 57 04 04 00 BC 01 00 00 19 04 04 00 00 00 00 00 90 00 EC [23:39:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DE 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 BB 01 00 00 5E 04 04 00 BB 01 00 00 57 04 04 00 BC 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:39:44]wFMCommunicate OK [23:39:44]SAM_PROTO_GetFieldsCounters done [23:39:44]requested_item shift.num is exist - process it [23:39:44]requested_item shift.opened is exist - process it [23:39:44]req_shift_opened [23:39:44]FM_GetShiftState [23:39:44]SAM_PROTO_GetShiftState [23:39:44]wFMCommunicate request_size=4 [23:39:44]MH_SAM_APDU [23:39:44]CAPDU: 80 13 01 00 [23:39:44]Write to MH i2c: E2 08 00 50 23 80 13 01 00 00 00 00 00 F0 [23:39:44]Write i2c OK [23:39:44]MH_I2C_Read... [23:39:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:39:45]Read from MH i2c: E2 [23:39:45]MH_I2C_Read... [23:39:45]Read from MH i2c: E2 0E 00 [23:39:45]MH_I2C_Read... [23:39:45]Read from MH i2c: E2 0E 00 50 23 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 F6 [23:39:45]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [23:39:45]wFMCommunicate OK [23:39:45]SAM_PROTO_GetShiftState done [23:39:45]FM_GetShiftState done [23:39:45]req_shift_opened done [23:39:45]requested_item shift.open_date is exist - process it [23:39:45]req_shift_open_date [23:39:45]req_shift_open_date done [23:39:45]produce_requested_data done [23:39:45]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69598,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [23:39:45]process_action_free close_receipt [23:39:45]json_value_free [23:39:45]json_value_free done [23:39:45]process_json_proto returns [23:39:45]Send response to host [23:39:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69598,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [23:39:45]free response buf [23:39:45]execute_script done [23:39:45]execute_script returns [23:39:45]free content buf [23:39:45]Sock 7.Close socket [23:39:45]Sock 7.Thread stoped [23:39:48]OFD Sender: No OFD packet to send [23:39:53]OFD Sender: No OFD packet to send [23:39:58]OFD Sender: No OFD packet to send [23:40:03]OFD Sender: No OFD packet to send [23:40:08]OFD Sender: No OFD packet to send [23:40:13]OFD Sender: No OFD packet to send [23:40:18]OFD Sender: No OFD packet to send [23:40:23]OFD Sender: No OFD packet to send [23:40:28]OFD Sender: No OFD packet to send [23:40:33]OFD Sender: No OFD packet to send [23:40:38]OFD Sender: No OFD packet to send [23:40:43]OFD Sender: No OFD packet to send [23:40:48]OFD Sender: No OFD packet to send [23:40:53]OFD Sender: No OFD packet to send [23:40:58]OFD Sender: No OFD packet to send [23:41:03]OFD Sender: No OFD packet to send [23:41:08]OFD Sender: No OFD packet to send [23:41:13]accept exits with 9 [23:41:13]New connection [23:41:13]New thread 3066797412 created [23:41:13]Thread 3066654052 joined [23:41:13]Waiting for new connection... [23:41:13] Sock 9.Parse request [23:41:13]Sock 9.Check first char [23:41:13]Sock 9.First char is OK [23:41:13]request: POST /json_proto HTTP/1.0 [23:41:13]Method: POST [23:41:13]URL: /json_proto [23:41:13]Method is POST - this is cgi request [23:41:13]url: /json_proto [23:41:13]query_string will be loaded in cgi processing [23:41:13]execute_cgi json_proto POST (null) [23:41:13]execute_cgi path=json_proto method=POST [23:41:13]POST find Content-Length [23:41:13]Host: 172.17.50.3:8080 [23:41:13]Content-Length: 678 [23:41:13]Content-Type: application/json [23:41:13] [23:41:13]POST finish read [23:41:13]Found Content-Length = 678 [23:41:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:41:13]execute_script... [23:41: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)2885339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:41:13]POST & json_proto [23:41:13]process_json_proto [23:41:13]json parsed OK: [23:41:13]protocol is kg_v1.0 [23:41:13]action value=close_receipt [23:41:13]process_action close_receipt [23:41:13]cmd_close_receipt [23:41:13]MH_GetDate [23:41:13]Write to MH i2c: F0 00 00 51 23 63 [23:41:13]Write i2c OK [23:41:13]MH_I2C_Read... [23:41:13]Read from MH i2c: F0 [23:41:13]MH_I2C_Read... [23:41:13]Read from MH i2c: F0 09 00 [23:41:13]MH_I2C_Read... [23:41:13]Read from MH i2c: F0 09 00 51 23 00 1B 95 15 67 6B 98 1E 66 1F [23:41:13]GetLastDocTimeStamp 1729467582 [23:41:13]current date 1729467675 [23:41:13]FM_GetShiftState [23:41:13]SAM_PROTO_GetShiftState [23:41:13]wFMCommunicate request_size=4 [23:41:13]MH_SAM_APDU [23:41:13]CAPDU: 80 13 01 00 [23:41:13]Write to MH i2c: E2 08 00 52 23 80 13 01 00 00 00 00 00 F2 [23:41:13]Write i2c OK [23:41:13]MH_I2C_Read... [23:41:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:41:13]Read from MH i2c: E2 [23:41:13]MH_I2C_Read... [23:41:13]Read from MH i2c: E2 0E 00 [23:41:13]MH_I2C_Read... [23:41:13]Read from MH i2c: E2 0E 00 52 23 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 F8 [23:41:13]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [23:41:13]wFMCommunicate OK [23:41:13]SAM_PROTO_GetShiftState done [23:41:13]FM_GetShiftState done [23:41:13]opened in 1729383220 [23:41:13]opened+sec_in_day 1729469620 [23:41:13]quantity*price = 50041 [23:41:13]sum+1 = 50042 [23:41:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 444 20.10.2024 23:41 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69599 ФПД: 141187894396299 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T234115&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69599&fm=141187894396299&tin=02508201610067®Number=0000000000156251&sum=50000 [23:41:14]StoreToDocumentArchive [23:41:14]shift 193 fd 69599 [23:41:14]save to /storage/0193/doc_00069599 [23:41:14]save last doc name /storage/0193/doc_00069599 to /storage/kkm_last_doc_name [23:41:14]save OK [23:41:14]Clear old archive folders... [23:41:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:41:14]tlvbuf is 00F49EA0 [23:41:14]SAM_PROTO_ClearQueue [23:41:14]wFMCommunicate request_size=4 [23:41:14]MH_SAM_APDU [23:41:14]CAPDU: 80 09 00 00 [23:41:14]Write to MH i2c: E2 08 00 5F 23 80 09 00 00 00 00 00 00 F4 [23:41:14]Write i2c OK [23:41:14]MH_I2C_Read... [23:41:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:41:14]Read from MH i2c: E2 [23:41:14]MH_I2C_Read... [23:41:14]Read from MH i2c: E2 03 00 [23:41:14]MH_I2C_Read... [23:41:14]Read from MH i2c: E2 03 00 5F 23 00 90 00 F6 [23:41:14]RAPDU: 90 00 [23:41:14]wFMCommunicate OK [23:41:14]SAM_PROTO_ClearQueue done [23:41:14]KKMCreateOFDPacket [23:41:14]OFDProtocolAddRootSTLVToBuf [23:41:14]FM_MakeSignedData [23:41:14]FM_MakeSignedData [23:41:14]SAM_PROTO_SignData [23:41:14]wFMCommunicate request_size=4 [23:41:14]MH_SAM_APDU [23:41:14]CAPDU: 80 0D 01 02 [23:41:14]Write to MH i2c: E2 08 00 60 23 80 0D 01 02 00 00 00 00 FC [23:41:14]Write i2c OK [23:41:14]MH_I2C_Read... [23:41:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:41:14]Read from MH i2c: E2 [23:41:14]MH_I2C_Read... [23:41:14]Read from MH i2c: E2 03 00 [23:41:14]MH_I2C_Read... [23:41:14]Read from MH i2c: E2 03 00 60 23 00 90 00 F7 [23:41:14]RAPDU: 90 00 [23:41:14]wFMCommunicate OK [23:41:14]wFMCommunicate request_size=255 [23:41:14]MH_SAM_APDU [23:41: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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 01 00 00 F4 03 04 00 1B 95 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DF 0F 01 00 35 04 06 00 80 [23:41:14]Write to MH i2c: E2 02 01 61 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 01 00 00 F4 03 04 00 1B 95 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DF 0F 01 00 35 04 06 00 80 00 00 9E [23:41:14]Write i2c OK [23:41:14]MH_I2C_Read... [23:41:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:41:15]Read from MH i2c: E2 [23:41:15]MH_I2C_Read... [23:41:15]Read from MH i2c: E2 03 00 [23:41:15]MH_I2C_Read... [23:41:15]Read from MH i2c: E2 03 00 61 23 00 90 00 F8 [23:41:15]RAPDU: 90 00 [23:41:15]wFMCommunicate OK [23:41:15]wFMCommunicate request_size=10 [23:41:15]MH_SAM_APDU [23:41:15]CAPDU: 80 0D 02 02 05 68 DE 4A C5 8B [23:41:15]Write to MH i2c: E2 0D 00 62 23 80 0D 02 02 05 00 68 DE 4A C5 8B 00 00 E9 [23:41:15]Write i2c OK [23:41:15]MH_I2C_Read... [23:41:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:41:15]Read from MH i2c: E2 [23:41:15]MH_I2C_Read... [23:41:15]Read from MH i2c: E2 03 00 [23:41:15]MH_I2C_Read... [23:41:15]Read from MH i2c: E2 03 00 62 23 00 90 00 F9 [23:41:15]RAPDU: 90 00 [23:41:15]wFMCommunicate OK [23:41:15]wFMCommunicate request_size=4 [23:41:15]MH_SAM_APDU [23:41:15]CAPDU: 80 0D 03 02 [23:41:15]Write to MH i2c: E2 08 00 63 23 80 0D 03 02 00 00 00 00 01 [23:41:15]Write i2c OK [23:41:15]MH_I2C_Read... [23:41:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:41:15]Read from MH i2c: E2 [23:41:15]MH_I2C_Read... [23:41:15]Read from MH i2c: E2 0B 00 [23:41:15]MH_I2C_Read... [23:41:15]Read from MH i2c: E2 0B 00 63 23 00 40 65 46 34 05 D5 68 EB 90 00 4E [23:41:15]RAPDU: 40 65 46 34 05 D5 68 EB 90 00 [23:41:15]wFMCommunicate OK [23:41:15]SAM_PROTO_SignData done [23:41:15]FM_MakeSignedData done [23:41:15]CreateOFDProtocolMessage [23:41:15]wFMCommunicate request_size=4 [23:41:15]MH_SAM_APDU [23:41:15]CAPDU: 80 11 00 00 [23:41:15]Write to MH i2c: E2 08 00 64 23 80 11 00 00 00 00 00 00 01 [23:41:15]Write i2c OK [23:41:15]MH_I2C_Read... [23:41:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:41:15]Read from MH i2c: E2 [23:41:15]MH_I2C_Read... [23:41:15]Read from MH i2c: E2 17 00 [23:41:15]MH_I2C_Read... [23:41:15]Read from MH i2c: E2 17 00 64 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 53 [23:41:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:41:15]wFMCommunicate OK [23:41:15]CreateOFDProtocolMessage done [23:41:15]OFDSenderStorePacket 69599 [23:41:15]StoreOFDPacket docnum=69599 [23:41:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 02 3F 07 01 B2 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 01 00 00 F4 03 04 00 1B 95 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DF 0F 01 00 35 04 06 00 80 68 DE 4A C5 8B 40 65 46 34 05 D5 68 EB [23:41:15]CheckFolder [23:41:15]dirname=/storage/ofd_packets [23:41:15]CheckFolder done [23:41:15]ProducePacketName [23:41:15]name=ofd_packets/00069599 [23:41:15]NVStorageSaveData ofd_packets/00069599 [23:41:15]File name is /storage/ofd_packets/00069599 [23:41:15]Write 301 bytes [23:41:15]NVStorageSaveData done [23:41:15]OFDSenderStorePacket done [23:41:15]KKMCreateOFDPacket done [23:41:15]NVStorageSaveData kkm_last_timestamp [23:41:15]File name is /storage/kkm_last_timestamp [23:41:15]Write 4 bytes [23:41:15]NVStorageSaveData done [23:41:15]ExternCall_PrintAddStr [23:41:15]wPrintStart [23:41:15]Write to MH i2c: 01 00 00 65 23 88 [23:41:15]Write i2c OK [23:41:15]MH_I2C_Read... [23:41:15]Read from MH i2c: 01 [23:41:15]MH_I2C_Read... [23:41:15]Read from MH i2c: 01 07 00 [23:41:15]MH_I2C_Read... [23:41:15]Read from MH i2c: 01 07 00 65 23 00 00 00 00 00 FF 0F 9D [23:41:15]RasterBufferAndPrint [23:41:15]line Счет N : (1)2885339 [23:41:15]line ИНН: 02508201610067 [23:41:15]line Контрольно-Кассовый Чек [23:41:15]line ПРОДАЖА [23:41:15]line ТРК (МРК, ГНК) : 22 [23:41:15]line Товар: 2710124130 [23:41:15]line Аи-92-К-5 [23:41:15]line 7.480 * 66.90 [23:41:15]line = 500.41 [23:41:15]line НДС 12% НСП 1% [23:41:15]line > о реализуемом товаре [23:41:15]line ОКРУГЛЕНИЕ: -0.41 [23:41:15]line ИТОГО: 500.00 [23:41:15]line Внесено: 500.00 [23:41:15]line СДАЧА: 0.00 [23:41:15]line НСП 1% : 4.43 [23:41:15]line НДС 12% : 53.14 [23:41:15]line Наличными: 500.00 [23:41:15]line Безнал.: 0.00 [23:41:15]line Место: АЗС № 85 "Партнер Нефть" [23:41:15]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:41:15]line СНО: Общий режим [23:41:15]line Чек 444 20.10.2024 23:41 [23:41:15]line Смена: 193 ФФД: 1.0 [23:41:15]line ЗНМ: 0300000167 [23:41:15]line РНМ: 0000000000156251 [23:41:15]line Версия ККМ: v1.0 [23:41:15]line ФМ: 0000000000963346 [23:41:15]line ФД: 69599 [23:41:15]line ФПД: 141187894396299 [23:41:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T234115&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69599&fm=141187894396299&tin=02508201610067®Number=0000000000156251&sum=50000 [23:41:15]OFD Sender: Processing packet 69599 [packets to send 18, broken 17] [23:41:15]ProducePacketName [23:41:15]name=ofd_packets/00069599 [23:41:15]OFD Sender: To server: pG, [23:41:15]CommunicateWithHost lk.salyk.kg:30040 [23:41:15]ConnectInit lk.salyk.kg [23:41:15]written 0, free lines is 4095 [23:41:15]Connected sock=10 [23:41:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 02 3F 07 01 B2 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 01 00 00 F4 03 04 00 1B 95 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DF 0F 01 00 35 04 06 00 80 68 DE 4A C5 8B 40 65 46 34 05 D5 68 EB [23:41:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 47 9E 47 00 E7 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 DF 0F 01 00 F4 03 04 00 C0 3E 15 67 B6 04 01 00 00 2D 85 4F A0 F2 EA DC 90 [23:41:15]CommunicateWithHost err = 0 [23:41:15]CheckOFDResponse [23:41:15]1017 (14) - 77093643461234 [23:41:15]1041 (16) - 0000000000963346 [23:41:15]1040 (4) - 69599 [23:41:15]1012 (4) - 20.10.2024 17:32 [23:41:15]1206 (1) - 0 [23:41:15]OFD Sender: Remove packet 69599 [23:41:15]ProducePacketName [23:41:15]name=ofd_packets/00069599 [23:41:15]NVStorageDeleteData [23:41:16]Write to MH i2c: 01 00 00 90 23 B3 [23:41:16]Write i2c OK [23:41:16]MH_I2C_Read... [23:41:16]Read from MH i2c: 01 [23:41:16]MH_I2C_Read... [23:41:16]Read from MH i2c: 01 07 00 [23:41:16]MH_I2C_Read... [23:41:16]Read from MH i2c: 01 07 00 90 23 00 00 00 00 00 F3 0C B9 [23:41:16]RasterBufferAndPrint [23:41:16]line [23:41:16]line [23:41:16]line [23:41:16]line [23:41:16]line [23:41:16]written 0, free lines is 3321 [23:41:16]MH_Cut [23:41:16]Write to MH i2c: D1 01 00 97 23 01 8C [23:41:16]Write i2c OK [23:41:16]MH_I2C_Read... [23:41:16]Read from MH i2c: D1 [23:41:16]MH_I2C_Read... [23:41:16]Read from MH i2c: D1 01 00 [23:41:16]MH_I2C_Read... [23:41:16]Read from MH i2c: D1 01 00 97 23 00 8B [23:41:16]Write to MH i2c: 01 00 00 98 23 BB [23:41:16]Write i2c OK [23:41:16]MH_I2C_Read... [23:41:16]OFD Sender: No OFD packet to send [23:41:16]*** Cut start [23:41:16]*** Partial cut [23:41:16]*** CUTSNS_PIN = 1 [23:41:16]*** CUTSNS_PIN = 0 [23:41:16]*** Brake cut motor [23:41:17]Read from MH i2c: 01 [23:41:17]MH_I2C_Read... [23:41:17]*** Stop cut motor [23:41:17]*** Cut end [23:41:17]Read from MH i2c: 01 07 00 [23:41:17]MH_I2C_Read... [23:41:17]Read from MH i2c: 01 07 00 98 23 00 00 00 00 00 FF 0F D0 [23:41:17]process_action close_receipt done [23:41:17]requested_data is exist [23:41:17]produce_requested_data [23:41:17]requested_item fm.sn is exist - process it [23:41:17]wFMCommunicate request_size=4 [23:41:17]MH_SAM_APDU [23:41:17]CAPDU: 80 11 00 00 [23:41:17]Write to MH i2c: E2 08 00 99 23 80 11 00 00 00 00 00 00 36 [23:41:17]Write i2c OK [23:41:17]MH_I2C_Read... [23:41:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:41:17]Read from MH i2c: E2 [23:41:17]MH_I2C_Read... [23:41:17]Read from MH i2c: E2 17 00 [23:41:17]MH_I2C_Read... [23:41:17]Read from MH i2c: E2 17 00 99 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 88 [23:41:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:41:17]wFMCommunicate OK [23:41:17]requested_item fd.num is exist - process it [23:41:17]SAM_PROTO_GetFieldsCounters [23:41:17]wFMCommunicate request_size=4 [23:41:17]MH_SAM_APDU [23:41:17]CAPDU: 80 13 00 00 [23:41:17]Write to MH i2c: E2 08 00 9A 23 80 13 00 00 00 00 00 00 39 [23:41:17]Write i2c OK [23:41:17]MH_I2C_Read... [23:41:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:41:17]Read from MH i2c: E2 [23:41:17]MH_I2C_Read... [23:41:17]Read from MH i2c: E2 62 00 [23:41:17]MH_I2C_Read... [23:41:17]Read from MH i2c: E2 62 00 9A 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DF 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 BC 01 00 00 5E 04 04 00 BC 01 00 00 57 04 04 00 BD 01 00 00 19 04 04 00 00 00 00 00 90 00 3B [23:41:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 DF 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 BC 01 00 00 5E 04 04 00 BC 01 00 00 57 04 04 00 BD 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:41:17]wFMCommunicate OK [23:41:17]SAM_PROTO_GetFieldsCounters done [23:41:17]requested_item shift.num is exist - process it [23:41:17]requested_item shift.opened is exist - process it [23:41:17]req_shift_opened [23:41:17]FM_GetShiftState [23:41:17]SAM_PROTO_GetShiftState [23:41:17]wFMCommunicate request_size=4 [23:41:17]MH_SAM_APDU [23:41:17]CAPDU: 80 13 01 00 [23:41:17]Write to MH i2c: E2 08 00 9B 23 80 13 01 00 00 00 00 00 3B [23:41:17]Write i2c OK [23:41:17]MH_I2C_Read... [23:41:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:41:17]Read from MH i2c: E2 [23:41:17]MH_I2C_Read... [23:41:17]Read from MH i2c: E2 0E 00 [23:41:17]MH_I2C_Read... [23:41:17]Read from MH i2c: E2 0E 00 9B 23 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 41 [23:41:17]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [23:41:17]wFMCommunicate OK [23:41:17]SAM_PROTO_GetShiftState done [23:41:17]FM_GetShiftState done [23:41:17]req_shift_opened done [23:41:17]requested_item shift.open_date is exist - process it [23:41:17]req_shift_open_date [23:41:17]req_shift_open_date done [23:41:17]produce_requested_data done [23:41:17]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69599,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [23:41:17]process_action_free close_receipt [23:41:17]json_value_free [23:41:17]json_value_free done [23:41:17]process_json_proto returns [23:41:17]Send response to host [23:41:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69599,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [23:41:17]free response buf [23:41:17]execute_script done [23:41:17]execute_script returns [23:41:17]free content buf [23:41:17]Sock 9.Close socket [23:41:17]Sock 9.Thread stoped [23:41:21]OFD Sender: No OFD packet to send [23:41:24]accept exits with 7 [23:41:24]New connection [23:41:24]New thread 3066654052 created [23:41:24]Thread 3066797412 joined [23:41:24]Waiting for new connection... [23:41:24] Sock 7.Parse request [23:41:24]Sock 7.Check first char [23:41:24]Sock 7.First char is OK [23:41:24]request: POST /json_proto HTTP/1.0 [23:41:24]Method: POST [23:41:24]URL: /json_proto [23:41:24]Method is POST - this is cgi request [23:41:24]url: /json_proto [23:41:24]query_string will be loaded in cgi processing [23:41:24]execute_cgi json_proto POST (null) [23:41:24]execute_cgi path=json_proto method=POST [23:41:24]POST find Content-Length [23:41:24]Host: 172.17.50.3:8080 [23:41:24]Content-Length: 683 [23:41:24]Content-Type: application/json [23:41:24] [23:41:24]POST finish read [23:41:24]Found Content-Length = 683 [23:41:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:41:24]execute_script... [23:41: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)2885338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:41:24]POST & json_proto [23:41:24]process_json_proto [23:41:24]json parsed OK: [23:41:24]protocol is kg_v1.0 [23:41:24]action value=close_receipt [23:41:24]process_action close_receipt [23:41:24]cmd_close_receipt [23:41:24]MH_GetDate [23:41:24]Write to MH i2c: F0 00 00 9C 23 AE [23:41:24]Write i2c OK [23:41:24]MH_I2C_Read... [23:41:24]Read from MH i2c: F0 [23:41:24]MH_I2C_Read... [23:41:24]Read from MH i2c: F0 09 00 [23:41:24]MH_I2C_Read... [23:41:24]Read from MH i2c: F0 09 00 9C 23 00 26 95 15 67 6B 98 1E 66 75 [23:41:24]GetLastDocTimeStamp 1729467675 [23:41:24]current date 1729467686 [23:41:24]FM_GetShiftState [23:41:24]SAM_PROTO_GetShiftState [23:41:24]wFMCommunicate request_size=4 [23:41:24]MH_SAM_APDU [23:41:24]CAPDU: 80 13 01 00 [23:41:24]Write to MH i2c: E2 08 00 9D 23 80 13 01 00 00 00 00 00 3D [23:41:24]Write i2c OK [23:41:24]MH_I2C_Read... [23:41:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:41:24]Read from MH i2c: E2 [23:41:24]MH_I2C_Read... [23:41:24]Read from MH i2c: E2 0E 00 [23:41:24]MH_I2C_Read... [23:41:24]Read from MH i2c: E2 0E 00 9D 23 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 43 [23:41:24]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [23:41:24]wFMCommunicate OK [23:41:24]SAM_PROTO_GetShiftState done [23:41:24]FM_GetShiftState done [23:41:24]opened in 1729383220 [23:41:24]opened+sec_in_day 1729469620 [23:41:24]quantity*price = 200043 [23:41:24]sum+1 = 200044 [23:41:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 445 20.10.2024 23:41 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69600 ФПД: 59691777725495 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T234126&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69600&fm=59691777725495&tin=02508201610067®Number=0000000000156251&sum=200000 [23:41:26]StoreToDocumentArchive [23:41:26]shift 193 fd 69600 [23:41:26]save to /storage/0193/doc_00069600 [23:41:26]save last doc name /storage/0193/doc_00069600 to /storage/kkm_last_doc_name [23:41:26]save OK [23:41:26]Clear old archive folders... [23:41:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:41:26]tlvbuf is B6EB44D0 [23:41:26]SAM_PROTO_ClearQueue [23:41:26]wFMCommunicate request_size=4 [23:41:26]MH_SAM_APDU [23:41:26]CAPDU: 80 09 00 00 [23:41:26]Write to MH i2c: E2 08 00 AA 23 80 09 00 00 00 00 00 00 3F [23:41:26]Write i2c OK [23:41:26]MH_I2C_Read... [23:41:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:41:26]Read from MH i2c: E2 [23:41:26]MH_I2C_Read... [23:41:26]Read from MH i2c: E2 03 00 [23:41:26]MH_I2C_Read... [23:41:26]Read from MH i2c: E2 03 00 AA 23 00 90 00 41 [23:41:26]RAPDU: 90 00 [23:41:26]wFMCommunicate OK [23:41:26]SAM_PROTO_ClearQueue done [23:41:26]KKMCreateOFDPacket [23:41:26]OFDProtocolAddRootSTLVToBuf [23:41:26]FM_MakeSignedData [23:41:26]FM_MakeSignedData [23:41:26]SAM_PROTO_SignData [23:41:26]wFMCommunicate request_size=4 [23:41:26]MH_SAM_APDU [23:41:26]CAPDU: 80 0D 01 02 [23:41:26]Write to MH i2c: E2 08 00 AB 23 80 0D 01 02 00 00 00 00 47 [23:41:26]Write i2c OK [23:41:26]MH_I2C_Read... [23:41:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:41:26]Read from MH i2c: E2 [23:41:26]MH_I2C_Read... [23:41:26]Read from MH i2c: E2 03 00 [23:41:26]MH_I2C_Read... [23:41:26]Read from MH i2c: E2 03 00 AB 23 00 90 00 42 [23:41:26]RAPDU: 90 00 [23:41:26]wFMCommunicate OK [23:41:26]wFMCommunicate request_size=255 [23:41:26]MH_SAM_APDU [23:41:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 01 00 00 F4 03 04 00 26 95 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E0 0F 01 00 35 04 06 00 36 [23:41:26]Write to MH i2c: E2 02 01 AC 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 01 00 00 F4 03 04 00 26 95 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E0 0F 01 00 35 04 06 00 36 00 00 54 [23:41:26]Write i2c OK [23:41:26]MH_I2C_Read... [23:41:26]OFD Sender: No OFD packet to send [23:41:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:41:26]Read from MH i2c: E2 [23:41:26]MH_I2C_Read... [23:41:26]Read from MH i2c: E2 03 00 [23:41:26]MH_I2C_Read... [23:41:26]Read from MH i2c: E2 03 00 AC 23 00 90 00 43 [23:41:26]RAPDU: 90 00 [23:41:26]wFMCommunicate OK [23:41:26]wFMCommunicate request_size=10 [23:41:26]MH_SAM_APDU [23:41:26]CAPDU: 80 0D 02 02 05 4A 13 35 14 37 [23:41:26]Write to MH i2c: E2 0D 00 AD 23 80 0D 02 02 05 00 4A 13 35 14 37 00 00 31 [23:41:26]Write i2c OK [23:41:26]MH_I2C_Read... [23:41:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:41:26]Read from MH i2c: E2 [23:41:26]MH_I2C_Read... [23:41:26]Read from MH i2c: E2 03 00 [23:41:26]MH_I2C_Read... [23:41:26]Read from MH i2c: E2 03 00 AD 23 00 90 00 44 [23:41:26]RAPDU: 90 00 [23:41:26]wFMCommunicate OK [23:41:26]wFMCommunicate request_size=4 [23:41:26]MH_SAM_APDU [23:41:26]CAPDU: 80 0D 03 02 [23:41:26]Write to MH i2c: E2 08 00 AE 23 80 0D 03 02 00 00 00 00 4C [23:41:26]Write i2c OK [23:41:26]MH_I2C_Read... [23:41:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:41:26]Read from MH i2c: E2 [23:41:26]MH_I2C_Read... [23:41:26]Read from MH i2c: E2 0B 00 [23:41:26]MH_I2C_Read... [23:41:26]Read from MH i2c: E2 0B 00 AE 23 00 30 9F 88 30 19 5D 8A C5 90 00 99 [23:41:26]RAPDU: 30 9F 88 30 19 5D 8A C5 90 00 [23:41:26]wFMCommunicate OK [23:41:26]SAM_PROTO_SignData done [23:41:26]FM_MakeSignedData done [23:41:26]CreateOFDProtocolMessage [23:41:26]wFMCommunicate request_size=4 [23:41:26]MH_SAM_APDU [23:41:26]CAPDU: 80 11 00 00 [23:41:26]Write to MH i2c: E2 08 00 AF 23 80 11 00 00 00 00 00 00 4C [23:41:26]Write i2c OK [23:41:26]MH_I2C_Read... [23:41:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:41:26]Read from MH i2c: E2 [23:41:26]MH_I2C_Read... [23:41:26]Read from MH i2c: E2 17 00 [23:41:26]MH_I2C_Read... [23:41:26]Read from MH i2c: E2 17 00 AF 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9E [23:41:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:41:26]wFMCommunicate OK [23:41:26]CreateOFDProtocolMessage done [23:41:26]OFDSenderStorePacket 69600 [23:41:26]StoreOFDPacket docnum=69600 [23:41:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A3 0E 07 01 06 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 01 00 00 F4 03 04 00 26 95 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E0 0F 01 00 35 04 06 00 36 4A 13 35 14 37 30 9F 88 30 19 5D 8A C5 [23:41:26]CheckFolder [23:41:26]dirname=/storage/ofd_packets [23:41:26]CheckFolder done [23:41:26]ProducePacketName [23:41:26]name=ofd_packets/00069600 [23:41:26]NVStorageSaveData ofd_packets/00069600 [23:41:26]File name is /storage/ofd_packets/00069600 [23:41:26]Write 301 bytes [23:41:26]NVStorageSaveData done [23:41:26]OFDSenderStorePacket done [23:41:26]KKMCreateOFDPacket done [23:41:26]NVStorageSaveData kkm_last_timestamp [23:41:26]File name is /storage/kkm_last_timestamp [23:41:26]Write 4 bytes [23:41:26]NVStorageSaveData done [23:41:26]ExternCall_PrintAddStr [23:41:26]wPrintStart [23:41:26]Write to MH i2c: 01 00 00 B0 23 D3 [23:41:26]Write i2c OK [23:41:26]MH_I2C_Read... [23:41:26]Read from MH i2c: 01 [23:41:26]MH_I2C_Read... [23:41:26]Read from MH i2c: 01 07 00 [23:41:26]MH_I2C_Read... [23:41:26]Read from MH i2c: 01 07 00 B0 23 00 00 00 00 00 FF 0F E8 [23:41:26]RasterBufferAndPrint [23:41:26]line Счет N : (1)2885338 [23:41:26]line ИНН: 02508201610067 [23:41:26]line Контрольно-Кассовый Чек [23:41:26]line ПРОДАЖА [23:41:26]line ТРК (МРК, ГНК) : 43 [23:41:26]line Товар: 2710124500 [23:41:26]line Аи-95-К-5 [23:41:26]line 26.960 * 74.20 [23:41:26]line = 2000.43 [23:41:26]line НДС 12% НСП 1% [23:41:26]line > о реализуемом товаре [23:41:26]line ОКРУГЛЕНИЕ: -0.43 [23:41:26]line ИТОГО: 2000.00 [23:41:26]line Внесено: 2000.00 [23:41:26]line СДАЧА: 0.00 [23:41:26]line НСП 1% : 17.70 [23:41:26]line НДС 12% : 212.43 [23:41:26]line Наличными: 2000.00 [23:41:26]line Безнал.: 0.00 [23:41:26]line Место: АЗС № 85 "Партнер Нефть" [23:41:26]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:41:26]line СНО: Общий режим [23:41:26]line Чек 445 20.10.2024 23:41 [23:41:26]line Смена: 193 ФФД: 1.0 [23:41:26]line ЗНМ: 0300000167 [23:41:26]line РНМ: 0000000000156251 [23:41:26]line Версия ККМ: v1.0 [23:41:26]line ФМ: 0000000000963346 [23:41:26]line ФД: 69600 [23:41:26]line ФПД: 59691777725495 [23:41:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T234126&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69600&fm=59691777725495&tin=02508201610067®Number=0000000000156251&sum=200000 [23:41:26]OFD Sender: Processing packet 69600 [packets to send 18, broken 17] [23:41:26]ProducePacketName [23:41:26]name=ofd_packets/00069600 [23:41:26]OFD Sender: To server: pG, [23:41:26]CommunicateWithHost lk.salyk.kg:30040 [23:41:26]ConnectInit lk.salyk.kg [23:41:26]written 0, free lines is 4095 [23:41:27]Connected sock=10 [23:41:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 A3 0E 07 01 06 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 01 00 00 F4 03 04 00 26 95 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E0 0F 01 00 35 04 06 00 36 4A 13 35 14 37 30 9F 88 30 19 5D 8A C5 [23:41:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 DD AE 47 00 AF 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E0 0F 01 00 F4 03 04 00 CB 3E 15 67 B6 04 01 00 00 51 3D 42 20 97 EE CB CA [23:41:27]CommunicateWithHost err = 0 [23:41:27]CheckOFDResponse [23:41:27]1017 (14) - 77093643461234 [23:41:27]1041 (16) - 0000000000963346 [23:41:27]1040 (4) - 69600 [23:41:27]1012 (4) - 20.10.2024 17:32 [23:41:27]1206 (1) - 0 [23:41:27]OFD Sender: Remove packet 69600 [23:41:27]ProducePacketName [23:41:27]name=ofd_packets/00069600 [23:41:27]NVStorageDeleteData [23:41:27]Write to MH i2c: 01 00 00 DB 23 FE [23:41:27]Write i2c OK [23:41:27]MH_I2C_Read... [23:41:27]Read from MH i2c: 01 [23:41:27]MH_I2C_Read... [23:41:27]Read from MH i2c: 01 07 00 [23:41:27]MH_I2C_Read... [23:41:27]Read from MH i2c: 01 07 00 DB 23 00 00 00 00 00 FC 0C 0D [23:41:27]RasterBufferAndPrint [23:41:27]line [23:41:27]line [23:41:27]line [23:41:27]line [23:41:27]line [23:41:27]written 0, free lines is 3333 [23:41:27]MH_Cut [23:41:27]Write to MH i2c: D1 01 00 E2 23 01 D7 [23:41:27]Write i2c OK [23:41:27]MH_I2C_Read... [23:41:27]Read from MH i2c: D1 [23:41:27]MH_I2C_Read... [23:41:27]Read from MH i2c: D1 01 00 [23:41:27]MH_I2C_Read... [23:41:27]Read from MH i2c: D1 01 00 E2 23 00 D6 [23:41:27]Write to MH i2c: 01 00 00 E3 23 06 [23:41:27]Write i2c OK [23:41:27]MH_I2C_Read... [23:41:27]OFD Sender: No OFD packet to send [23:41:28]*** Cut start [23:41:28]*** Partial cut [23:41:28]*** CUTSNS_PIN = 1 [23:41:28]*** CUTSNS_PIN = 0 [23:41:28]*** Brake cut motor [23:41:28]Read from MH i2c: 01 [23:41:28]MH_I2C_Read... [23:41:28]*** Stop cut motor [23:41:28]*** Cut end [23:41:28]Read from MH i2c: 01 07 00 [23:41:28]MH_I2C_Read... [23:41:28]Read from MH i2c: 01 07 00 E3 23 00 00 00 00 00 FF 0F 1B [23:41:28]process_action close_receipt done [23:41:28]requested_data is exist [23:41:28]produce_requested_data [23:41:28]requested_item fm.sn is exist - process it [23:41:28]wFMCommunicate request_size=4 [23:41:28]MH_SAM_APDU [23:41:28]CAPDU: 80 11 00 00 [23:41:28]Write to MH i2c: E2 08 00 E4 23 80 11 00 00 00 00 00 00 81 [23:41:28]Write i2c OK [23:41:28]MH_I2C_Read... [23:41:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:41:28]Read from MH i2c: E2 [23:41:28]MH_I2C_Read... [23:41:28]Read from MH i2c: E2 17 00 [23:41:28]MH_I2C_Read... [23:41:28]Read from MH i2c: E2 17 00 E4 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D3 [23:41:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:41:28]wFMCommunicate OK [23:41:28]requested_item fd.num is exist - process it [23:41:28]SAM_PROTO_GetFieldsCounters [23:41:28]wFMCommunicate request_size=4 [23:41:28]MH_SAM_APDU [23:41:28]CAPDU: 80 13 00 00 [23:41:28]Write to MH i2c: E2 08 00 E5 23 80 13 00 00 00 00 00 00 84 [23:41:28]Write i2c OK [23:41:28]MH_I2C_Read... [23:41:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:41:28]Read from MH i2c: E2 [23:41:28]MH_I2C_Read... [23:41:28]Read from MH i2c: E2 62 00 [23:41:28]MH_I2C_Read... [23:41:28]Read from MH i2c: E2 62 00 E5 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E0 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 BD 01 00 00 5E 04 04 00 BD 01 00 00 57 04 04 00 BE 01 00 00 19 04 04 00 00 00 00 00 90 00 8A [23:41:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E0 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 BD 01 00 00 5E 04 04 00 BD 01 00 00 57 04 04 00 BE 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:41:28]wFMCommunicate OK [23:41:28]SAM_PROTO_GetFieldsCounters done [23:41:28]requested_item shift.num is exist - process it [23:41:28]requested_item shift.opened is exist - process it [23:41:28]req_shift_opened [23:41:28]FM_GetShiftState [23:41:28]SAM_PROTO_GetShiftState [23:41:28]wFMCommunicate request_size=4 [23:41:28]MH_SAM_APDU [23:41:28]CAPDU: 80 13 01 00 [23:41:28]Write to MH i2c: E2 08 00 E6 23 80 13 01 00 00 00 00 00 86 [23:41:28]Write i2c OK [23:41:28]MH_I2C_Read... [23:41:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:41:29]Read from MH i2c: E2 [23:41:29]MH_I2C_Read... [23:41:29]Read from MH i2c: E2 0E 00 [23:41:29]MH_I2C_Read... [23:41:29]Read from MH i2c: E2 0E 00 E6 23 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 8C [23:41:29]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [23:41:29]wFMCommunicate OK [23:41:29]SAM_PROTO_GetShiftState done [23:41:29]FM_GetShiftState done [23:41:29]req_shift_opened done [23:41:29]requested_item shift.open_date is exist - process it [23:41:29]req_shift_open_date [23:41:29]req_shift_open_date done [23:41:29]produce_requested_data done [23:41:29]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69600,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [23:41:29]process_action_free close_receipt [23:41:29]json_value_free [23:41:29]json_value_free done [23:41:29]process_json_proto returns [23:41:29]Send response to host [23:41:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69600,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [23:41:29]free response buf [23:41:29]execute_script done [23:41:29]execute_script returns [23:41:29]free content buf [23:41:29]Sock 7.Close socket [23:41:29]Sock 7.Thread stoped [23:41:32]OFD Sender: No OFD packet to send [23:41:37]OFD Sender: No OFD packet to send [23:41:42]OFD Sender: No OFD packet to send [23:41:47]OFD Sender: No OFD packet to send [23:41:52]OFD Sender: No OFD packet to send [23:41:57]OFD Sender: No OFD packet to send [23:42:02]OFD Sender: No OFD packet to send [23:42:07]OFD Sender: No OFD packet to send [23:42:12]OFD Sender: No OFD packet to send [23:42:17]OFD Sender: No OFD packet to send [23:42:22]OFD Sender: No OFD packet to send [23:42:27]OFD Sender: No OFD packet to send [23:42:32]OFD Sender: No OFD packet to send [23:42:37]OFD Sender: No OFD packet to send [23:42:42]OFD Sender: No OFD packet to send [23:42:47]OFD Sender: No OFD packet to send [23:42:52]OFD Sender: No OFD packet to send [23:42:57]OFD Sender: No OFD packet to send [23:43:02]OFD Sender: No OFD packet to send [23:43:07]OFD Sender: No OFD packet to send [23:43:12]OFD Sender: No OFD packet to send [23:43:17]OFD Sender: No OFD packet to send [23:43:22]OFD Sender: No OFD packet to send [23:43:27]OFD Sender: No OFD packet to send [23:43:32]OFD Sender: No OFD packet to send [23:43:37]OFD Sender: No OFD packet to send [23:43:42]OFD Sender: No OFD packet to send [23:43:47]OFD Sender: No OFD packet to send [23:43:52]OFD Sender: No OFD packet to send [23:43:57]OFD Sender: No OFD packet to send [23:43:58]accept exits with 9 [23:43:58]New connection [23:43:58]New thread 3066797412 created [23:43:58]Thread 3066654052 joined [23:43:58]Waiting for new connection... [23:43:58] Sock 9.Parse request [23:43:58]Sock 9.Check first char [23:43:58]Sock 9.First char is OK [23:43:58]request: POST /json_proto HTTP/1.0 [23:43:58]Method: POST [23:43:58]URL: /json_proto [23:43:58]Method is POST - this is cgi request [23:43:58]url: /json_proto [23:43:58]query_string will be loaded in cgi processing [23:43:58]execute_cgi json_proto POST (null) [23:43:58]execute_cgi path=json_proto method=POST [23:43:58]POST find Content-Length [23:43:58]Host: 172.17.50.3:8080 [23:43:58]Content-Length: 678 [23:43:58]Content-Type: application/json [23:43:58] [23:43:58]POST finish read [23:43:58]Found Content-Length = 678 [23:43:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [23:43:58]execute_script... [23:43: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)2885340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "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" ] } } [23:43:58]POST & json_proto [23:43:58]process_json_proto [23:43:58]json parsed OK: [23:43:58]protocol is kg_v1.0 [23:43:58]action value=close_receipt [23:43:58]process_action close_receipt [23:43:58]cmd_close_receipt [23:43:58]MH_GetDate [23:43:58]Write to MH i2c: F0 00 00 E7 23 F9 [23:43:58]Write i2c OK [23:43:58]MH_I2C_Read... [23:43:58]Read from MH i2c: F0 [23:43:58]MH_I2C_Read... [23:43:58]Read from MH i2c: F0 09 00 [23:43:58]MH_I2C_Read... [23:43:58]Read from MH i2c: F0 09 00 E7 23 00 BF 95 15 67 6B 98 1E 66 59 [23:43:58]GetLastDocTimeStamp 1729467686 [23:43:58]current date 1729467839 [23:43:58]FM_GetShiftState [23:43:58]SAM_PROTO_GetShiftState [23:43:58]wFMCommunicate request_size=4 [23:43:58]MH_SAM_APDU [23:43:58]CAPDU: 80 13 01 00 [23:43:58]Write to MH i2c: E2 08 00 E8 23 80 13 01 00 00 00 00 00 88 [23:43:58]Write i2c OK [23:43:58]MH_I2C_Read... [23:43:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:43:58]Read from MH i2c: E2 [23:43:58]MH_I2C_Read... [23:43:58]Read from MH i2c: E2 0E 00 [23:43:58]MH_I2C_Read... [23:43:58]Read from MH i2c: E2 0E 00 E8 23 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 8E [23:43:58]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [23:43:58]wFMCommunicate OK [23:43:58]SAM_PROTO_GetShiftState done [23:43:58]FM_GetShiftState done [23:43:58]opened in 1729383220 [23:43:58]opened+sec_in_day 1729469620 [23:43:58]quantity*price = 50010 [23:43:58]sum+1 = 50012 [23:43:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 446 20.10.2024 23:43 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69601 ФПД: 241967569938620 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T234359&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69601&fm=241967569938620&tin=02508201610067®Number=0000000000156251&sum=50000 [23:43:59]StoreToDocumentArchive [23:43:59]shift 193 fd 69601 [23:43:59]save to /storage/0193/doc_00069601 [23:43:59]save last doc name /storage/0193/doc_00069601 to /storage/kkm_last_doc_name [23:43:59]save OK [23:43:59]Clear old archive folders... [23:43:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:43:59]tlvbuf is B6EB4690 [23:43:59]SAM_PROTO_ClearQueue [23:43:59]wFMCommunicate request_size=4 [23:43:59]MH_SAM_APDU [23:43:59]CAPDU: 80 09 00 00 [23:43:59]Write to MH i2c: E2 08 00 F5 23 80 09 00 00 00 00 00 00 8A [23:43:59]Write i2c OK [23:43:59]MH_I2C_Read... [23:43:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:43:59]Read from MH i2c: E2 [23:43:59]MH_I2C_Read... [23:43:59]Read from MH i2c: E2 03 00 [23:43:59]MH_I2C_Read... [23:43:59]Read from MH i2c: E2 03 00 F5 23 00 90 00 8C [23:43:59]RAPDU: 90 00 [23:43:59]wFMCommunicate OK [23:43:59]SAM_PROTO_ClearQueue done [23:43:59]KKMCreateOFDPacket [23:43:59]OFDProtocolAddRootSTLVToBuf [23:43:59]FM_MakeSignedData [23:43:59]FM_MakeSignedData [23:43:59]SAM_PROTO_SignData [23:43:59]wFMCommunicate request_size=4 [23:43:59]MH_SAM_APDU [23:43:59]CAPDU: 80 0D 01 02 [23:43:59]Write to MH i2c: E2 08 00 F6 23 80 0D 01 02 00 00 00 00 92 [23:43:59]Write i2c OK [23:43:59]MH_I2C_Read... [23:43:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:43:59]Read from MH i2c: E2 [23:43:59]MH_I2C_Read... [23:43:59]Read from MH i2c: E2 03 00 [23:43:59]MH_I2C_Read... [23:43:59]Read from MH i2c: E2 03 00 F6 23 00 90 00 8D [23:43:59]RAPDU: 90 00 [23:43:59]wFMCommunicate OK [23:43:59]wFMCommunicate request_size=255 [23:43:59]MH_SAM_APDU [23:43: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 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 BE 01 00 00 F4 03 04 00 BF 95 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E1 0F 01 00 35 04 06 00 DC [23:43:59]Write to MH i2c: E2 02 01 F7 23 80 0D 02 02 FA 00 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 BE 01 00 00 F4 03 04 00 BF 95 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E1 0F 01 00 35 04 06 00 DC 00 00 10 [23:43:59]Write i2c OK [23:43:59]MH_I2C_Read... [23:43:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:43:59]Read from MH i2c: E2 [23:43:59]MH_I2C_Read... [23:43:59]Read from MH i2c: E2 03 00 [23:43:59]MH_I2C_Read... [23:43:59]Read from MH i2c: E2 03 00 F7 23 00 90 00 8E [23:43:59]RAPDU: 90 00 [23:43:59]wFMCommunicate OK [23:43:59]wFMCommunicate request_size=10 [23:43:59]MH_SAM_APDU [23:43:59]CAPDU: 80 0D 02 02 05 11 77 0D A8 BC [23:43:59]Write to MH i2c: E2 0D 00 F8 23 80 0D 02 02 05 00 11 77 0D A8 BC 00 00 98 [23:43:59]Write i2c OK [23:43:59]MH_I2C_Read... [23:43:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:43:59]Read from MH i2c: E2 [23:43:59]MH_I2C_Read... [23:43:59]Read from MH i2c: E2 03 00 [23:43:59]MH_I2C_Read... [23:43:59]Read from MH i2c: E2 03 00 F8 23 00 90 00 8F [23:43:59]RAPDU: 90 00 [23:43:59]wFMCommunicate OK [23:43:59]wFMCommunicate request_size=4 [23:43:59]MH_SAM_APDU [23:43:59]CAPDU: 80 0D 03 02 [23:43:59]Write to MH i2c: E2 08 00 F9 23 80 0D 03 02 00 00 00 00 97 [23:43:59]Write i2c OK [23:43:59]MH_I2C_Read... [23:43:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:43:59]Read from MH i2c: E2 [23:43:59]MH_I2C_Read... [23:43:59]Read from MH i2c: E2 0B 00 [23:43:59]MH_I2C_Read... [23:43:59]Read from MH i2c: E2 0B 00 F9 23 00 5D 33 9F DC 2A 1C FF E4 90 00 CC [23:43:59]RAPDU: 5D 33 9F DC 2A 1C FF E4 90 00 [23:43:59]wFMCommunicate OK [23:43:59]SAM_PROTO_SignData done [23:43:59]FM_MakeSignedData done [23:43:59]CreateOFDProtocolMessage [23:43:59]wFMCommunicate request_size=4 [23:43:59]MH_SAM_APDU [23:43:59]CAPDU: 80 11 00 00 [23:43:59]Write to MH i2c: E2 08 00 FA 23 80 11 00 00 00 00 00 00 97 [23:43:59]Write i2c OK [23:43:59]MH_I2C_Read... [23:43:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:43:59]Read from MH i2c: E2 [23:43:59]MH_I2C_Read... [23:43:59]Read from MH i2c: E2 17 00 [23:43:59]MH_I2C_Read... [23:43:59]Read from MH i2c: E2 17 00 FA 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E9 [23:43:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:43:59]wFMCommunicate OK [23:43:59]CreateOFDProtocolMessage done [23:43:59]OFDSenderStorePacket 69601 [23:43:59]StoreOFDPacket docnum=69601 [23:43:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 2C 9F 07 01 83 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 BE 01 00 00 F4 03 04 00 BF 95 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E1 0F 01 00 35 04 06 00 DC 11 77 0D A8 BC 5D 33 9F DC 2A 1C FF E4 [23:43:59]CheckFolder [23:43:59]dirname=/storage/ofd_packets [23:43:59]CheckFolder done [23:43:59]ProducePacketName [23:43:59]name=ofd_packets/00069601 [23:43:59]NVStorageSaveData ofd_packets/00069601 [23:43:59]File name is /storage/ofd_packets/00069601 [23:43:59]Write 301 bytes [23:43:59]NVStorageSaveData done [23:43:59]OFDSenderStorePacket done [23:43:59]KKMCreateOFDPacket done [23:43:59]NVStorageSaveData kkm_last_timestamp [23:43:59]File name is /storage/kkm_last_timestamp [23:43:59]Write 4 bytes [23:43:59]NVStorageSaveData done [23:43:59]ExternCall_PrintAddStr [23:43:59]wPrintStart [23:43:59]Write to MH i2c: 01 00 00 FB 23 1E [23:43:59]Write i2c OK [23:43:59]MH_I2C_Read... [23:43:59]Read from MH i2c: 01 [23:43:59]MH_I2C_Read... [23:43:59]Read from MH i2c: 01 07 00 [23:43:59]MH_I2C_Read... [23:43:59]Read from MH i2c: 01 07 00 FB 23 00 00 00 00 00 FF 0F 33 [23:43:59]RasterBufferAndPrint [23:43:59]line Счет N : (1)2885340 [23:43:59]line ИНН: 02508201610067 [23:43:59]line Контрольно-Кассовый Чек [23:43:59]line ПРОДАЖА [23:43:59]line ТРК (МРК, ГНК) : 33 [23:43:59]line Товар: 2710124500 [23:43:59]line Аи-95-К-5 [23:43:59]line 6.740 * 74.20 [23:43:59]line = 500.11 [23:43:59]line НДС 12% НСП 1% [23:43:59]line > о реализуемом товаре [23:43:59]line ОКРУГЛЕНИЕ: -0.11 [23:43:59]line ИТОГО: 500.00 [23:43:59]line Внесено: 500.00 [23:43:59]line СДАЧА: 0.00 [23:43:59]line НСП 1% : 4.43 [23:43:59]line НДС 12% : 53.11 [23:43:59]line Наличными: 500.00 [23:43:59]line Безнал.: 0.00 [23:43:59]line Место: АЗС № 85 "Партнер Нефть" [23:43:59]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:43:59]line СНО: Общий режим [23:43:59]line Чек 446 20.10.2024 23:43 [23:43:59]line Смена: 193 ФФД: 1.0 [23:43:59]line ЗНМ: 0300000167 [23:43:59]line РНМ: 0000000000156251 [23:43:59]line Версия ККМ: v1.0 [23:43:59]line ФМ: 0000000000963346 [23:43:59]line ФД: 69601 [23:43:59]line ФПД: 241967569938620 [23:43:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T234359&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69601&fm=241967569938620&tin=02508201610067®Number=0000000000156251&sum=50000 [23:44:00]OFD Sender: Processing packet 69601 [packets to send 18, broken 17] [23:44:00]ProducePacketName [23:44:00]name=ofd_packets/00069601 [23:44:00]OFD Sender: To server: pG, [23:44:00]CommunicateWithHost lk.salyk.kg:30040 [23:44:00]ConnectInit lk.salyk.kg [23:44:00]written 0, free lines is 4095 [23:44:00]Connected sock=7 [23:44:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 2C 9F 07 01 83 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 BE 01 00 00 F4 03 04 00 BF 95 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E1 0F 01 00 35 04 06 00 DC 11 77 0D A8 BC 5D 33 9F DC 2A 1C FF E4 [23:44:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 4B 25 47 00 9A A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E1 0F 01 00 F4 03 04 00 65 3F 15 67 B6 04 01 00 00 55 8A FE 50 03 6E C4 0B [23:44:00]CommunicateWithHost err = 0 [23:44:00]CheckOFDResponse [23:44:00]1017 (14) - 77093643461234 [23:44:00]1041 (16) - 0000000000963346 [23:44:00]1040 (4) - 69601 [23:44:00]1012 (4) - 20.10.2024 17:35 [23:44:00]1206 (1) - 0 [23:44:00]OFD Sender: Remove packet 69601 [23:44:00]ProducePacketName [23:44:00]name=ofd_packets/00069601 [23:44:00]NVStorageDeleteData [23:44:00]Write to MH i2c: 01 00 00 26 24 4A [23:44:00]Write i2c OK [23:44:00]MH_I2C_Read... [23:44:00]Read from MH i2c: 01 [23:44:00]MH_I2C_Read... [23:44:00]Read from MH i2c: 01 07 00 [23:44:00]MH_I2C_Read... [23:44:00]Read from MH i2c: 01 07 00 26 24 00 00 00 00 00 F4 0C 51 [23:44:00]RasterBufferAndPrint [23:44:00]line [23:44:00]line [23:44:00]line [23:44:00]line [23:44:00]line [23:44:00]written 0, free lines is 3326 [23:44:00]MH_Cut [23:44:00]Write to MH i2c: D1 01 00 2D 24 01 23 [23:44:00]Write i2c OK [23:44:00]MH_I2C_Read... [23:44:00]Read from MH i2c: D1 [23:44:00]MH_I2C_Read... [23:44:00]Read from MH i2c: D1 01 00 [23:44:00]MH_I2C_Read... [23:44:00]Read from MH i2c: D1 01 00 2D 24 00 22 [23:44:00]Write to MH i2c: 01 00 00 2E 24 52 [23:44:00]Write i2c OK [23:44:00]MH_I2C_Read... [23:44:01]OFD Sender: No OFD packet to send [23:44:01]*** Cut start [23:44:01]*** Partial cut [23:44:01]*** CUTSNS_PIN = 1 [23:44:01]*** CUTSNS_PIN = 0 [23:44:01]*** Brake cut motor [23:44:02]Read from MH i2c: 01 [23:44:02]MH_I2C_Read... [23:44:02]*** Stop cut motor [23:44:02]*** Cut end [23:44:02]Read from MH i2c: 01 07 00 [23:44:02]MH_I2C_Read... [23:44:02]Read from MH i2c: 01 07 00 2E 24 00 00 00 00 00 FF 0F 67 [23:44:02]process_action close_receipt done [23:44:02]requested_data is exist [23:44:02]produce_requested_data [23:44:02]requested_item fm.sn is exist - process it [23:44:02]wFMCommunicate request_size=4 [23:44:02]MH_SAM_APDU [23:44:02]CAPDU: 80 11 00 00 [23:44:02]Write to MH i2c: E2 08 00 2F 24 80 11 00 00 00 00 00 00 CD [23:44:02]Write i2c OK [23:44:02]MH_I2C_Read... [23:44:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:44:02]Read from MH i2c: E2 [23:44:02]MH_I2C_Read... [23:44:02]Read from MH i2c: E2 17 00 [23:44:02]MH_I2C_Read... [23:44:02]Read from MH i2c: E2 17 00 2F 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1F [23:44:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:44:02]wFMCommunicate OK [23:44:02]requested_item fd.num is exist - process it [23:44:02]SAM_PROTO_GetFieldsCounters [23:44:02]wFMCommunicate request_size=4 [23:44:02]MH_SAM_APDU [23:44:02]CAPDU: 80 13 00 00 [23:44:02]Write to MH i2c: E2 08 00 30 24 80 13 00 00 00 00 00 00 D0 [23:44:02]Write i2c OK [23:44:02]MH_I2C_Read... [23:44:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:44:02]Read from MH i2c: E2 [23:44:02]MH_I2C_Read... [23:44:02]Read from MH i2c: E2 62 00 [23:44:02]MH_I2C_Read... [23:44:02]Read from MH i2c: E2 62 00 30 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E1 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 BE 01 00 00 5E 04 04 00 BE 01 00 00 57 04 04 00 BF 01 00 00 19 04 04 00 00 00 00 00 90 00 DA [23:44:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E1 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 BE 01 00 00 5E 04 04 00 BE 01 00 00 57 04 04 00 BF 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:44:02]wFMCommunicate OK [23:44:02]SAM_PROTO_GetFieldsCounters done [23:44:02]requested_item shift.num is exist - process it [23:44:02]requested_item shift.opened is exist - process it [23:44:02]req_shift_opened [23:44:02]FM_GetShiftState [23:44:02]SAM_PROTO_GetShiftState [23:44:02]wFMCommunicate request_size=4 [23:44:02]MH_SAM_APDU [23:44:02]CAPDU: 80 13 01 00 [23:44:02]Write to MH i2c: E2 08 00 31 24 80 13 01 00 00 00 00 00 D2 [23:44:02]Write i2c OK [23:44:02]MH_I2C_Read... [23:44:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:44:02]Read from MH i2c: E2 [23:44:02]MH_I2C_Read... [23:44:02]Read from MH i2c: E2 0E 00 [23:44:02]MH_I2C_Read... [23:44:02]Read from MH i2c: E2 0E 00 31 24 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 D8 [23:44:02]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [23:44:02]wFMCommunicate OK [23:44:02]SAM_PROTO_GetShiftState done [23:44:02]FM_GetShiftState done [23:44:02]req_shift_opened done [23:44:02]requested_item shift.open_date is exist - process it [23:44:02]req_shift_open_date [23:44:02]req_shift_open_date done [23:44:02]produce_requested_data done [23:44:02]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69601,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [23:44:02]process_action_free close_receipt [23:44:02]json_value_free [23:44:02]json_value_free done [23:44:02]process_json_proto returns [23:44:02]Send response to host [23:44:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69601,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [23:44:02]free response buf [23:44:02]execute_script done [23:44:02]execute_script returns [23:44:02]free content buf [23:44:02]Sock 9.Close socket [23:44:02]Sock 9.Thread stoped [23:44:06]OFD Sender: No OFD packet to send [23:44:11]OFD Sender: No OFD packet to send [23:44:16]OFD Sender: No OFD packet to send [23:44:21]OFD Sender: No OFD packet to send [23:44:26]OFD Sender: No OFD packet to send [23:44:31]OFD Sender: No OFD packet to send [23:44:36]OFD Sender: No OFD packet to send [23:44:41]OFD Sender: No OFD packet to send [23:44:46]OFD Sender: No OFD packet to send [23:44:51]OFD Sender: No OFD packet to send [23:44:56]OFD Sender: No OFD packet to send [23:45:01]OFD Sender: No OFD packet to send [23:45:06]OFD Sender: No OFD packet to send [23:45:11]OFD Sender: No OFD packet to send [23:45:16]OFD Sender: No OFD packet to send [23:45:21]OFD Sender: No OFD packet to send [23:45:26]OFD Sender: No OFD packet to send [23:45:31]OFD Sender: No OFD packet to send [23:45:36]OFD Sender: No OFD packet to send [23:45:41]OFD Sender: No OFD packet to send [23:45:46]OFD Sender: No OFD packet to send [23:45:51]OFD Sender: No OFD packet to send [23:45:56]OFD Sender: No OFD packet to send [23:46:01]OFD Sender: No OFD packet to send [23:46:06]OFD Sender: No OFD packet to send [23:46:11]OFD Sender: No OFD packet to send [23:46:16]OFD Sender: No OFD packet to send [23:46:21]OFD Sender: No OFD packet to send [23:46:26]OFD Sender: No OFD packet to send [23:46:31]OFD Sender: No OFD packet to send [23:46:36]OFD Sender: No OFD packet to send [23:46:36]accept exits with 10 [23:46:36]New connection [23:46:36]New thread 3066654052 created [23:46:36]Thread 3066797412 joined [23:46:36]Waiting for new connection... [23:46:36] Sock 10.Parse request [23:46:36]Sock 10.Check first char [23:46:36]Sock 10.First char is OK [23:46:36]request: POST /json_proto HTTP/1.0 [23:46:36]Method: POST [23:46:36]URL: /json_proto [23:46:36]Method is POST - this is cgi request [23:46:36]url: /json_proto [23:46:36]query_string will be loaded in cgi processing [23:46:36]execute_cgi json_proto POST (null) [23:46:36]execute_cgi path=json_proto method=POST [23:46:36]POST find Content-Length [23:46:36]Host: 172.17.50.3:8080 [23:46:36]Content-Length: 770 [23:46:36]Content-Type: application/json [23:46:36] [23:46:36]POST finish read [23:46:36]Found Content-Length = 770 [23:46:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:46:36]execute_script... [23:46: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)2885341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:46:36]POST & json_proto [23:46:36]process_json_proto [23:46:36]json parsed OK: [23:46:36]protocol is kg_v1.0 [23:46:36]action value=close_receipt [23:46:36]process_action close_receipt [23:46:36]cmd_close_receipt [23:46:36]MH_GetDate [23:46:36]Write to MH i2c: F0 00 00 32 24 45 [23:46:36]Write i2c OK [23:46:36]MH_I2C_Read... [23:46:36]Read from MH i2c: F0 [23:46:36]MH_I2C_Read... [23:46:36]Read from MH i2c: F0 09 00 [23:46:36]MH_I2C_Read... [23:46:36]Read from MH i2c: F0 09 00 32 24 00 5E 96 15 67 6B 98 1E 66 45 [23:46:36]GetLastDocTimeStamp 1729467839 [23:46:36]current date 1729467998 [23:46:36]FM_GetShiftState [23:46:36]SAM_PROTO_GetShiftState [23:46:36]wFMCommunicate request_size=4 [23:46:36]MH_SAM_APDU [23:46:36]CAPDU: 80 13 01 00 [23:46:36]Write to MH i2c: E2 08 00 33 24 80 13 01 00 00 00 00 00 D4 [23:46:36]Write i2c OK [23:46:36]MH_I2C_Read... [23:46:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:46:36]Read from MH i2c: E2 [23:46:36]MH_I2C_Read... [23:46:36]Read from MH i2c: E2 0E 00 [23:46:36]MH_I2C_Read... [23:46:36]Read from MH i2c: E2 0E 00 33 24 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 DA [23:46:36]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [23:46:36]wFMCommunicate OK [23:46:36]SAM_PROTO_GetShiftState done [23:46:36]FM_GetShiftState done [23:46:36]opened in 1729383220 [23:46:36]opened+sec_in_day 1729469620 [23:46:36]quantity*price = 300064 [23:46:36]sum+1 = 300066 [23:46:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.65 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 0.00 Безнал.: 3000.65 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 447 20.10.2024 23:46 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69602 ФПД: 259086752542849 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T234638&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69602&fm=259086752542849&tin=02508201610067®Number=0000000000156251&sum=300065 [23:46:37]StoreToDocumentArchive [23:46:37]shift 193 fd 69602 [23:46:37]save to /storage/0193/doc_00069602 [23:46:37]save last doc name /storage/0193/doc_00069602 to /storage/kkm_last_doc_name [23:46:37]save OK [23:46:37]Clear old archive folders... [23:46:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:46:37]tlvbuf is 00F66560 [23:46:37]SAM_PROTO_ClearQueue [23:46:37]wFMCommunicate request_size=4 [23:46:37]MH_SAM_APDU [23:46:37]CAPDU: 80 09 00 00 [23:46:37]Write to MH i2c: E2 08 00 40 24 80 09 00 00 00 00 00 00 D6 [23:46:37]Write i2c OK [23:46:37]MH_I2C_Read... [23:46:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:46:37]Read from MH i2c: E2 [23:46:37]MH_I2C_Read... [23:46:37]Read from MH i2c: E2 03 00 [23:46:37]MH_I2C_Read... [23:46:37]Read from MH i2c: E2 03 00 40 24 00 90 00 D8 [23:46:37]RAPDU: 90 00 [23:46:37]wFMCommunicate OK [23:46:37]SAM_PROTO_ClearQueue done [23:46:37]KKMCreateOFDPacket [23:46:37]OFDProtocolAddRootSTLVToBuf [23:46:37]FM_MakeSignedData [23:46:37]FM_MakeSignedData [23:46:37]SAM_PROTO_SignData [23:46:37]wFMCommunicate request_size=4 [23:46:37]MH_SAM_APDU [23:46:37]CAPDU: 80 0D 01 02 [23:46:37]Write to MH i2c: E2 08 00 41 24 80 0D 01 02 00 00 00 00 DE [23:46:37]Write i2c OK [23:46:37]MH_I2C_Read... [23:46:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:46:37]Read from MH i2c: E2 [23:46:37]MH_I2C_Read... [23:46:37]Read from MH i2c: E2 03 00 [23:46:37]MH_I2C_Read... [23:46:37]Read from MH i2c: E2 03 00 41 24 00 90 00 D9 [23:46:37]RAPDU: 90 00 [23:46:37]wFMCommunicate OK [23:46:37]wFMCommunicate request_size=255 [23:46:37]MH_SAM_APDU [23:46:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 01 00 00 F4 03 04 00 5E 96 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E2 0F 01 00 35 04 06 00 EB [23:46:37]Write to MH i2c: E2 02 01 42 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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 01 00 00 F4 03 04 00 5E 96 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E2 0F 01 00 35 04 06 00 EB 00 00 EA [23:46:37]Write i2c OK [23:46:37]MH_I2C_Read... [23:46:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:46:38]Read from MH i2c: E2 [23:46:38]MH_I2C_Read... [23:46:38]Read from MH i2c: E2 03 00 [23:46:38]MH_I2C_Read... [23:46:38]Read from MH i2c: E2 03 00 42 24 00 90 00 DA [23:46:38]RAPDU: 90 00 [23:46:38]wFMCommunicate OK [23:46:38]wFMCommunicate request_size=10 [23:46:38]MH_SAM_APDU [23:46:38]CAPDU: 80 0D 02 02 05 A3 55 D9 F0 81 [23:46:38]Write to MH i2c: E2 0D 00 43 24 80 0D 02 02 05 00 A3 55 D9 F0 81 00 00 2D [23:46:38]Write i2c OK [23:46:38]MH_I2C_Read... [23:46:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:46:38]Read from MH i2c: E2 [23:46:38]MH_I2C_Read... [23:46:38]Read from MH i2c: E2 03 00 [23:46:38]MH_I2C_Read... [23:46:38]Read from MH i2c: E2 03 00 43 24 00 90 00 DB [23:46:38]RAPDU: 90 00 [23:46:38]wFMCommunicate OK [23:46:38]wFMCommunicate request_size=4 [23:46:38]MH_SAM_APDU [23:46:38]CAPDU: 80 0D 03 02 [23:46:38]Write to MH i2c: E2 08 00 44 24 80 0D 03 02 00 00 00 00 E3 [23:46:38]Write i2c OK [23:46:38]MH_I2C_Read... [23:46:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:46:38]Read from MH i2c: E2 [23:46:38]MH_I2C_Read... [23:46:38]Read from MH i2c: E2 0B 00 [23:46:38]MH_I2C_Read... [23:46:38]Read from MH i2c: E2 0B 00 44 24 00 35 A5 66 06 02 92 1B 10 90 00 E9 [23:46:38]RAPDU: 35 A5 66 06 02 92 1B 10 90 00 [23:46:38]wFMCommunicate OK [23:46:38]SAM_PROTO_SignData done [23:46:38]FM_MakeSignedData done [23:46:38]CreateOFDProtocolMessage [23:46:38]wFMCommunicate request_size=4 [23:46:38]MH_SAM_APDU [23:46:38]CAPDU: 80 11 00 00 [23:46:38]Write to MH i2c: E2 08 00 45 24 80 11 00 00 00 00 00 00 E3 [23:46:38]Write i2c OK [23:46:38]MH_I2C_Read... [23:46:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:46:38]Read from MH i2c: E2 [23:46:38]MH_I2C_Read... [23:46:38]Read from MH i2c: E2 17 00 [23:46:38]MH_I2C_Read... [23:46:38]Read from MH i2c: E2 17 00 45 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 35 [23:46:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:46:38]wFMCommunicate OK [23:46:38]CreateOFDProtocolMessage done [23:46:38]OFDSenderStorePacket 69602 [23:46:38]StoreOFDPacket docnum=69602 [23:46:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F4 71 07 01 77 A0 5A 03 01 00 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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 01 00 00 F4 03 04 00 5E 96 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E2 0F 01 00 35 04 06 00 EB A3 55 D9 F0 81 35 A5 66 06 02 92 1B 10 [23:46:38]CheckFolder [23:46:38]dirname=/storage/ofd_packets [23:46:38]CheckFolder done [23:46:38]ProducePacketName [23:46:38]name=ofd_packets/00069602 [23:46:38]NVStorageSaveData ofd_packets/00069602 [23:46:38]File name is /storage/ofd_packets/00069602 [23:46:38]Write 301 bytes [23:46:38]NVStorageSaveData done [23:46:38]OFDSenderStorePacket done [23:46:38]KKMCreateOFDPacket done [23:46:38]NVStorageSaveData kkm_last_timestamp [23:46:38]File name is /storage/kkm_last_timestamp [23:46:38]Write 4 bytes [23:46:38]NVStorageSaveData done [23:46:38]ExternCall_PrintAddStr [23:46:38]wPrintStart [23:46:38]Write to MH i2c: 01 00 00 46 24 6A [23:46:38]Write i2c OK [23:46:38]MH_I2C_Read... [23:46:38]Read from MH i2c: 01 [23:46:38]MH_I2C_Read... [23:46:38]Read from MH i2c: 01 07 00 [23:46:38]MH_I2C_Read... [23:46:38]Read from MH i2c: 01 07 00 46 24 00 00 00 00 00 FF 0F 7F [23:46:38]RasterBufferAndPrint [23:46:38]line Счет N : (1)2885341 [23:46:38]line ИНН: 02508201610067 [23:46:38]line Контрольно-Кассовый Чек [23:46:38]line ПРОДАЖА [23:46:38]line ТРК (МРК, ГНК) : 43 [23:46:38]line Товар: 2710124500 [23:46:38]line Аи-95-К-5 [23:46:38]line 40.440 * 74.20 [23:46:38]line = 3000.65 [23:46:38]line НДС 12% НСП 1% [23:46:38]line > о реализуемом товаре [23:46:38]line ИТОГО: 3000.65 [23:46:38]line НСП 1% : 26.55 [23:46:38]line НДС 12% : 318.65 [23:46:38]line Наличными: 0.00 [23:46:38]line Безнал.: 3000.65 [23:46:38]line Место: АЗС № 85 "Партнер Нефть" [23:46:38]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:46:38]line СНО: Общий режим [23:46:38]line Чек 447 20.10.2024 23:46 [23:46:38]line Смена: 193 ФФД: 1.0 [23:46:38]line ЗНМ: 0300000167 [23:46:38]line РНМ: 0000000000156251 [23:46:38]line Версия ККМ: v1.0 [23:46:38]line Платежная система: Mbank [23:46:38]line ФМ: 0000000000963346 [23:46:38]line ФД: 69602 [23:46:38]line ФПД: 259086752542849 [23:46:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T234638&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69602&fm=259086752542849&tin=02508201610067®Number=0000000000156251&sum=300065 [23:46:38]OFD Sender: Processing packet 69602 [packets to send 18, broken 17] [23:46:38]ProducePacketName [23:46:38]name=ofd_packets/00069602 [23:46:38]OFD Sender: To server: pG, [23:46:38]CommunicateWithHost lk.salyk.kg:30040 [23:46:38]ConnectInit lk.salyk.kg [23:46:38]written 0, free lines is 4095 [23:46:38]Connected sock=7 [23:46:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 F4 71 07 01 77 A0 5A 03 01 00 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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 01 00 00 F4 03 04 00 5E 96 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E2 0F 01 00 35 04 06 00 EB A3 55 D9 F0 81 35 A5 66 06 02 92 1B 10 [23:46:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 65 02 47 00 96 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E2 0F 01 00 F4 03 04 00 03 40 15 67 B6 04 01 00 00 8E 8D D6 5C 57 66 24 0B [23:46:38]CommunicateWithHost err = 0 [23:46:38]CheckOFDResponse [23:46:38]1017 (14) - 77093643461234 [23:46:38]1041 (16) - 0000000000963346 [23:46:38]1040 (4) - 69602 [23:46:38]1012 (4) - 20.10.2024 17:38 [23:46:38]1206 (1) - 0 [23:46:38]OFD Sender: Remove packet 69602 [23:46:38]ProducePacketName [23:46:38]name=ofd_packets/00069602 [23:46:38]NVStorageDeleteData [23:46:39]Write to MH i2c: 01 00 00 6F 24 93 [23:46:39]Write i2c OK [23:46:39]MH_I2C_Read... [23:46:39]Read from MH i2c: 01 [23:46:39]MH_I2C_Read... [23:46:39]Read from MH i2c: 01 07 00 [23:46:39]MH_I2C_Read... [23:46:39]Read from MH i2c: 01 07 00 6F 24 00 00 00 00 00 27 0D CE [23:46:39]RasterBufferAndPrint [23:46:39]line [23:46:39]line [23:46:39]line [23:46:39]line [23:46:39]line [23:46:39]written 0, free lines is 3373 [23:46:39]MH_Cut [23:46:39]Write to MH i2c: D1 01 00 76 24 01 6C [23:46:39]Write i2c OK [23:46:39]MH_I2C_Read... [23:46:39]Read from MH i2c: D1 [23:46:39]MH_I2C_Read... [23:46:39]Read from MH i2c: D1 01 00 [23:46:39]MH_I2C_Read... [23:46:39]Read from MH i2c: D1 01 00 76 24 00 6B [23:46:39]Write to MH i2c: 01 00 00 77 24 9B [23:46:39]Write i2c OK [23:46:39]MH_I2C_Read... [23:46:39]OFD Sender: No OFD packet to send [23:46:39]*** Cut start [23:46:39]*** Partial cut [23:46:39]*** CUTSNS_PIN = 1 [23:46:39]*** CUTSNS_PIN = 0 [23:46:39]*** Brake cut motor [23:46:40]Read from MH i2c: 01 [23:46:40]MH_I2C_Read... [23:46:40]*** Stop cut motor [23:46:40]*** Cut end [23:46:40]Read from MH i2c: 01 07 00 [23:46:40]MH_I2C_Read... [23:46:40]Read from MH i2c: 01 07 00 77 24 00 00 00 00 00 FF 0F B0 [23:46:40]process_action close_receipt done [23:46:40]requested_data is exist [23:46:40]produce_requested_data [23:46:40]requested_item fm.sn is exist - process it [23:46:40]wFMCommunicate request_size=4 [23:46:40]MH_SAM_APDU [23:46:40]CAPDU: 80 11 00 00 [23:46:40]Write to MH i2c: E2 08 00 78 24 80 11 00 00 00 00 00 00 16 [23:46:40]Write i2c OK [23:46:40]MH_I2C_Read... [23:46:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:46:40]Read from MH i2c: E2 [23:46:40]MH_I2C_Read... [23:46:40]Read from MH i2c: E2 17 00 [23:46:40]MH_I2C_Read... [23:46:40]Read from MH i2c: E2 17 00 78 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 68 [23:46:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:46:40]wFMCommunicate OK [23:46:40]requested_item fd.num is exist - process it [23:46:40]SAM_PROTO_GetFieldsCounters [23:46:40]wFMCommunicate request_size=4 [23:46:40]MH_SAM_APDU [23:46:40]CAPDU: 80 13 00 00 [23:46:40]Write to MH i2c: E2 08 00 79 24 80 13 00 00 00 00 00 00 19 [23:46:40]Write i2c OK [23:46:40]MH_I2C_Read... [23:46:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:46:40]Read from MH i2c: E2 [23:46:40]MH_I2C_Read... [23:46:40]Read from MH i2c: E2 62 00 [23:46:40]MH_I2C_Read... [23:46:40]Read from MH i2c: E2 62 00 79 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E2 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 BF 01 00 00 5E 04 04 00 BF 01 00 00 57 04 04 00 C0 01 00 00 19 04 04 00 00 00 00 00 90 00 27 [23:46:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E2 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 BF 01 00 00 5E 04 04 00 BF 01 00 00 57 04 04 00 C0 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:46:40]wFMCommunicate OK [23:46:40]SAM_PROTO_GetFieldsCounters done [23:46:40]requested_item shift.num is exist - process it [23:46:40]requested_item shift.opened is exist - process it [23:46:40]req_shift_opened [23:46:40]FM_GetShiftState [23:46:40]SAM_PROTO_GetShiftState [23:46:40]wFMCommunicate request_size=4 [23:46:40]MH_SAM_APDU [23:46:40]CAPDU: 80 13 01 00 [23:46:40]Write to MH i2c: E2 08 00 7A 24 80 13 01 00 00 00 00 00 1B [23:46:40]Write i2c OK [23:46:40]MH_I2C_Read... [23:46:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:46:40]Read from MH i2c: E2 [23:46:40]MH_I2C_Read... [23:46:40]Read from MH i2c: E2 0E 00 [23:46:40]MH_I2C_Read... [23:46:40]Read from MH i2c: E2 0E 00 7A 24 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 21 [23:46:40]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [23:46:40]wFMCommunicate OK [23:46:40]SAM_PROTO_GetShiftState done [23:46:40]FM_GetShiftState done [23:46:40]req_shift_opened done [23:46:40]requested_item shift.open_date is exist - process it [23:46:40]req_shift_open_date [23:46:40]req_shift_open_date done [23:46:40]produce_requested_data done [23:46:40]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69602,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [23:46:40]process_action_free close_receipt [23:46:40]json_value_free [23:46:40]json_value_free done [23:46:40]process_json_proto returns [23:46:40]Send response to host [23:46:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69602,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [23:46:40]free response buf [23:46:40]execute_script done [23:46:40]execute_script returns [23:46:40]free content buf [23:46:40]Sock 10.Close socket [23:46:40]Sock 10.Thread stoped [23:46:44]OFD Sender: No OFD packet to send [23:46:49]OFD Sender: No OFD packet to send [23:46:54]OFD Sender: No OFD packet to send [23:46:59]OFD Sender: No OFD packet to send [23:47:04]OFD Sender: No OFD packet to send [23:47:04]accept exits with 9 [23:47:04]New connection [23:47:04]New thread 3066797412 created [23:47:04]Thread 3066654052 joined [23:47:04]Waiting for new connection... [23:47:04] Sock 9.Parse request [23:47:04]Sock 9.Check first char [23:47:04]Sock 9.First char is OK [23:47:04]request: POST /json_proto HTTP/1.0 [23:47:04]Method: POST [23:47:04]URL: /json_proto [23:47:04]Method is POST - this is cgi request [23:47:04]url: /json_proto [23:47:04]query_string will be loaded in cgi processing [23:47:04]execute_cgi json_proto POST (null) [23:47:04]execute_cgi path=json_proto method=POST [23:47:04]POST find Content-Length [23:47:04]Host: 172.17.50.3:8080 [23:47:04]Content-Length: 680 [23:47:04]Content-Type: application/json [23:47:04] [23:47:04]POST finish read [23:47:04]Found Content-Length = 680 [23:47:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:47:04]execute_script... [23:47: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)2885342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:47:04]POST & json_proto [23:47:04]process_json_proto [23:47:04]json parsed OK: [23:47:04]protocol is kg_v1.0 [23:47:04]action value=close_receipt [23:47:04]process_action close_receipt [23:47:04]cmd_close_receipt [23:47:04]MH_GetDate [23:47:04]Write to MH i2c: F0 00 00 7B 24 8E [23:47:04]Write i2c OK [23:47:04]MH_I2C_Read... [23:47:04]Read from MH i2c: F0 [23:47:04]MH_I2C_Read... [23:47:04]Read from MH i2c: F0 09 00 [23:47:04]MH_I2C_Read... [23:47:04]Read from MH i2c: F0 09 00 7B 24 00 7A 96 15 67 6B 98 1E 66 AA [23:47:04]GetLastDocTimeStamp 1729467998 [23:47:04]current date 1729468026 [23:47:04]FM_GetShiftState [23:47:04]SAM_PROTO_GetShiftState [23:47:04]wFMCommunicate request_size=4 [23:47:04]MH_SAM_APDU [23:47:04]CAPDU: 80 13 01 00 [23:47:04]Write to MH i2c: E2 08 00 7C 24 80 13 01 00 00 00 00 00 1D [23:47:04]Write i2c OK [23:47:04]MH_I2C_Read... [23:47:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:04]Read from MH i2c: E2 [23:47:04]MH_I2C_Read... [23:47:04]Read from MH i2c: E2 0E 00 [23:47:04]MH_I2C_Read... [23:47:04]Read from MH i2c: E2 0E 00 7C 24 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 23 [23:47:04]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [23:47:04]wFMCommunicate OK [23:47:04]SAM_PROTO_GetShiftState done [23:47:04]FM_GetShiftState done [23:47:04]opened in 1729383220 [23:47:04]opened+sec_in_day 1729469620 [23:47:04]quantity*price = 100050 [23:47:04]sum+1 = 100052 [23:47:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 448 20.10.2024 23:47 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69603 ФПД: 78218944962541 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T234706&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69603&fm=78218944962541&tin=02508201610067®Number=0000000000156251&sum=100000 [23:47:05]StoreToDocumentArchive [23:47:05]shift 193 fd 69603 [23:47:05]save to /storage/0193/doc_00069603 [23:47:05]save last doc name /storage/0193/doc_00069603 to /storage/kkm_last_doc_name [23:47:05]save OK [23:47:05]Clear old archive folders... [23:47:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:47:05]tlvbuf is 00F66650 [23:47:05]SAM_PROTO_ClearQueue [23:47:05]wFMCommunicate request_size=4 [23:47:05]MH_SAM_APDU [23:47:05]CAPDU: 80 09 00 00 [23:47:05]Write to MH i2c: E2 08 00 89 24 80 09 00 00 00 00 00 00 1F [23:47:05]Write i2c OK [23:47:05]MH_I2C_Read... [23:47:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:47:05]Read from MH i2c: E2 [23:47:05]MH_I2C_Read... [23:47:05]Read from MH i2c: E2 03 00 [23:47:05]MH_I2C_Read... [23:47:05]Read from MH i2c: E2 03 00 89 24 00 90 00 21 [23:47:05]RAPDU: 90 00 [23:47:05]wFMCommunicate OK [23:47:05]SAM_PROTO_ClearQueue done [23:47:05]KKMCreateOFDPacket [23:47:05]OFDProtocolAddRootSTLVToBuf [23:47:05]FM_MakeSignedData [23:47:05]FM_MakeSignedData [23:47:05]SAM_PROTO_SignData [23:47:05]wFMCommunicate request_size=4 [23:47:05]MH_SAM_APDU [23:47:05]CAPDU: 80 0D 01 02 [23:47:05]Write to MH i2c: E2 08 00 8A 24 80 0D 01 02 00 00 00 00 27 [23:47:05]Write i2c OK [23:47:05]MH_I2C_Read... [23:47:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:47:05]Read from MH i2c: E2 [23:47:05]MH_I2C_Read... [23:47:05]Read from MH i2c: E2 03 00 [23:47:05]MH_I2C_Read... [23:47:05]Read from MH i2c: E2 03 00 8A 24 00 90 00 22 [23:47:05]RAPDU: 90 00 [23:47:05]wFMCommunicate OK [23:47:05]wFMCommunicate request_size=255 [23:47:05]MH_SAM_APDU [23:47:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 01 00 00 F4 03 04 00 7A 96 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E3 0F 01 00 35 04 06 00 47 23 C4 6D [23:47:05]Write to MH i2c: E2 02 01 8B 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 01 00 00 F4 03 04 00 7A 96 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E3 0F 01 00 35 04 06 00 47 23 C4 6D 00 00 42 [23:47:05]Write i2c OK [23:47:05]MH_I2C_Read... [23:47:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:06]Read from MH i2c: E2 [23:47:06]MH_I2C_Read... [23:47:06]Read from MH i2c: E2 03 00 [23:47:06]MH_I2C_Read... [23:47:06]Read from MH i2c: E2 03 00 8B 24 00 90 00 23 [23:47:06]RAPDU: 90 00 [23:47:06]wFMCommunicate OK [23:47:06]wFMCommunicate request_size=7 [23:47:06]MH_SAM_APDU [23:47:06]CAPDU: 80 0D 02 02 02 DF ED [23:47:06]Write to MH i2c: E2 0A 00 8C 24 80 0D 02 02 02 00 DF ED 00 00 FA [23:47:06]Write i2c OK [23:47:06]MH_I2C_Read... [23:47:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:06]Read from MH i2c: E2 [23:47:06]MH_I2C_Read... [23:47:06]Read from MH i2c: E2 03 00 [23:47:06]MH_I2C_Read... [23:47:06]Read from MH i2c: E2 03 00 8C 24 00 90 00 24 [23:47:06]RAPDU: 90 00 [23:47:06]wFMCommunicate OK [23:47:06]wFMCommunicate request_size=4 [23:47:06]MH_SAM_APDU [23:47:06]CAPDU: 80 0D 03 02 [23:47:06]Write to MH i2c: E2 08 00 8D 24 80 0D 03 02 00 00 00 00 2C [23:47:06]Write i2c OK [23:47:06]MH_I2C_Read... [23:47:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:47:06]Read from MH i2c: E2 [23:47:06]MH_I2C_Read... [23:47:06]Read from MH i2c: E2 0B 00 [23:47:06]MH_I2C_Read... [23:47:06]Read from MH i2c: E2 0B 00 8D 24 00 64 E7 C9 F2 C6 E9 C7 18 90 00 C1 [23:47:06]RAPDU: 64 E7 C9 F2 C6 E9 C7 18 90 00 [23:47:06]wFMCommunicate OK [23:47:06]SAM_PROTO_SignData done [23:47:06]FM_MakeSignedData done [23:47:06]CreateOFDProtocolMessage [23:47:06]wFMCommunicate request_size=4 [23:47:06]MH_SAM_APDU [23:47:06]CAPDU: 80 11 00 00 [23:47:06]Write to MH i2c: E2 08 00 8E 24 80 11 00 00 00 00 00 00 2C [23:47:06]Write i2c OK [23:47:06]MH_I2C_Read... [23:47:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:06]Read from MH i2c: E2 [23:47:06]MH_I2C_Read... [23:47:06]Read from MH i2c: E2 17 00 [23:47:06]MH_I2C_Read... [23:47:06]Read from MH i2c: E2 17 00 8E 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7E [23:47:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:47:06]wFMCommunicate OK [23:47:06]CreateOFDProtocolMessage done [23:47:06]OFDSenderStorePacket 69603 [23:47:06]StoreOFDPacket docnum=69603 [23:47:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 B1 AD 04 01 E1 6F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 01 00 00 F4 03 04 00 7A 96 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E3 0F 01 00 35 04 06 00 47 23 C4 6D DF ED 64 E7 C9 F2 C6 E9 C7 18 [23:47:06]CheckFolder [23:47:06]dirname=/storage/ofd_packets [23:47:06]CheckFolder done [23:47:06]ProducePacketName [23:47:06]name=ofd_packets/00069603 [23:47:06]NVStorageSaveData ofd_packets/00069603 [23:47:06]File name is /storage/ofd_packets/00069603 [23:47:06]Write 298 bytes [23:47:06]NVStorageSaveData done [23:47:06]OFDSenderStorePacket done [23:47:06]KKMCreateOFDPacket done [23:47:06]NVStorageSaveData kkm_last_timestamp [23:47:06]File name is /storage/kkm_last_timestamp [23:47:06]Write 4 bytes [23:47:06]NVStorageSaveData done [23:47:06]ExternCall_PrintAddStr [23:47:06]wPrintStart [23:47:06]Write to MH i2c: 01 00 00 8F 24 B3 [23:47:06]Write i2c OK [23:47:06]MH_I2C_Read... [23:47:06]Read from MH i2c: 01 [23:47:06]MH_I2C_Read... [23:47:06]Read from MH i2c: 01 07 00 [23:47:06]MH_I2C_Read... [23:47:06]Read from MH i2c: 01 07 00 8F 24 00 00 00 00 00 FF 0F C8 [23:47:06]RasterBufferAndPrint [23:47:06]line Счет N : (1)2885342 [23:47:06]line ИНН: 02508201610067 [23:47:06]line Контрольно-Кассовый Чек [23:47:06]line ПРОДАЖА [23:47:06]line ТРК (МРК, ГНК) : 61 [23:47:06]line Товар: 2710194210 [23:47:06]line ДТ-К-5 [23:47:06]line 13.130 * 76.20 [23:47:06]line = 1000.51 [23:47:06]line НДС 12% НСП 1% [23:47:06]line > о реализуемом товаре [23:47:06]line ОКРУГЛЕНИЕ: -0.51 [23:47:06]line ИТОГО: 1000.00 [23:47:06]line Внесено: 1000.00 [23:47:06]line СДАЧА: 0.00 [23:47:06]line НСП 1% : 8.85 [23:47:06]line НДС 12% : 106.25 [23:47:06]line Наличными: 1000.00 [23:47:06]line Безнал.: 0.00 [23:47:06]line Место: АЗС № 85 "Партнер Нефть" [23:47:06]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:47:06]line СНО: Общий режим [23:47:06]line Чек 448 20.10.2024 23:47 [23:47:06]line Смена: 193 ФФД: 1.0 [23:47:06]line ЗНМ: 0300000167 [23:47:06]line РНМ: 0000000000156251 [23:47:06]line Версия ККМ: v1.0 [23:47:06]line ФМ: 0000000000963346 [23:47:06]line ФД: 69603 [23:47:06]line ФПД: 78218944962541 [23:47:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T234706&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69603&fm=78218944962541&tin=02508201610067®Number=0000000000156251&sum=100000 [23:47:06]OFD Sender: Processing packet 69603 [packets to send 18, broken 17] [23:47:06]ProducePacketName [23:47:06]name=ofd_packets/00069603 [23:47:06]OFD Sender: To server: pG, [23:47:06]CommunicateWithHost lk.salyk.kg:30040 [23:47:06]ConnectInit lk.salyk.kg [23:47:06]written 0, free lines is 4095 [23:47:06]Connected sock=10 [23:47:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 B1 AD 04 01 E1 6F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 01 00 00 F4 03 04 00 7A 96 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E3 0F 01 00 35 04 06 00 47 23 C4 6D DF ED 64 E7 C9 F2 C6 E9 C7 18 [23:47:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 DD F2 47 00 46 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E3 0F 01 00 F4 03 04 00 1F 40 15 67 B6 04 01 00 00 80 13 71 17 90 3E 13 70 [23:47:06]CommunicateWithHost err = 0 [23:47:06]CheckOFDResponse [23:47:06]1017 (14) - 77093643461234 [23:47:06]1041 (16) - 0000000000963346 [23:47:06]1040 (4) - 69603 [23:47:06]1012 (4) - 20.10.2024 17:38 [23:47:06]1206 (1) - 0 [23:47:06]OFD Sender: Remove packet 69603 [23:47:06]ProducePacketName [23:47:06]name=ofd_packets/00069603 [23:47:06]NVStorageDeleteData [23:47:07]Write to MH i2c: 01 00 00 BA 24 DE [23:47:07]Write i2c OK [23:47:07]MH_I2C_Read... [23:47:07]Read from MH i2c: 01 [23:47:07]MH_I2C_Read... [23:47:07]Read from MH i2c: 01 07 00 [23:47:07]MH_I2C_Read... [23:47:07]Read from MH i2c: 01 07 00 BA 24 00 00 00 00 00 EC 0C DD [23:47:07]RasterBufferAndPrint [23:47:07]line [23:47:07]line [23:47:07]line [23:47:07]line [23:47:07]line [23:47:07]written 0, free lines is 3317 [23:47:07]MH_Cut [23:47:07]Write to MH i2c: D1 01 00 C1 24 01 B7 [23:47:07]Write i2c OK [23:47:07]MH_I2C_Read... [23:47:07]Read from MH i2c: D1 [23:47:07]MH_I2C_Read... [23:47:07]Read from MH i2c: D1 01 00 [23:47:07]MH_I2C_Read... [23:47:07]Read from MH i2c: D1 01 00 C1 24 00 B6 [23:47:07]Write to MH i2c: 01 00 00 C2 24 E6 [23:47:07]Write i2c OK [23:47:07]MH_I2C_Read... [23:47:07]OFD Sender: No OFD packet to send [23:47:07]*** Cut start [23:47:07]*** Partial cut [23:47:07]*** CUTSNS_PIN = 1 [23:47:07]*** CUTSNS_PIN = 0 [23:47:08]*** Brake cut motor [23:47:08]Read from MH i2c: 01 [23:47:08]MH_I2C_Read... [23:47:08]*** Stop cut motor [23:47:08]*** Cut end [23:47:08]Read from MH i2c: 01 07 00 [23:47:08]MH_I2C_Read... [23:47:08]Read from MH i2c: 01 07 00 C2 24 00 00 00 00 00 FF 0F FB [23:47:08]process_action close_receipt done [23:47:08]requested_data is exist [23:47:08]produce_requested_data [23:47:08]requested_item fm.sn is exist - process it [23:47:08]wFMCommunicate request_size=4 [23:47:08]MH_SAM_APDU [23:47:08]CAPDU: 80 11 00 00 [23:47:08]Write to MH i2c: E2 08 00 C3 24 80 11 00 00 00 00 00 00 61 [23:47:08]Write i2c OK [23:47:08]MH_I2C_Read... [23:47:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:08]Read from MH i2c: E2 [23:47:08]MH_I2C_Read... [23:47:08]Read from MH i2c: E2 17 00 [23:47:08]MH_I2C_Read... [23:47:08]Read from MH i2c: E2 17 00 C3 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B3 [23:47:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:47:08]wFMCommunicate OK [23:47:08]requested_item fd.num is exist - process it [23:47:08]SAM_PROTO_GetFieldsCounters [23:47:08]wFMCommunicate request_size=4 [23:47:08]MH_SAM_APDU [23:47:08]CAPDU: 80 13 00 00 [23:47:08]Write to MH i2c: E2 08 00 C4 24 80 13 00 00 00 00 00 00 64 [23:47:08]Write i2c OK [23:47:08]MH_I2C_Read... [23:47:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:47:08]Read from MH i2c: E2 [23:47:08]MH_I2C_Read... [23:47:08]Read from MH i2c: E2 62 00 [23:47:08]MH_I2C_Read... [23:47:08]Read from MH i2c: E2 62 00 C4 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E3 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C0 01 00 00 5E 04 04 00 C0 01 00 00 57 04 04 00 C1 01 00 00 19 04 04 00 00 00 00 00 90 00 76 [23:47:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E3 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C0 01 00 00 5E 04 04 00 C0 01 00 00 57 04 04 00 C1 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:47:08]wFMCommunicate OK [23:47:08]SAM_PROTO_GetFieldsCounters done [23:47:08]requested_item shift.num is exist - process it [23:47:08]requested_item shift.opened is exist - process it [23:47:08]req_shift_opened [23:47:08]FM_GetShiftState [23:47:08]SAM_PROTO_GetShiftState [23:47:08]wFMCommunicate request_size=4 [23:47:08]MH_SAM_APDU [23:47:08]CAPDU: 80 13 01 00 [23:47:08]Write to MH i2c: E2 08 00 C5 24 80 13 01 00 00 00 00 00 66 [23:47:08]Write i2c OK [23:47:08]MH_I2C_Read... [23:47:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:08]Read from MH i2c: E2 [23:47:08]MH_I2C_Read... [23:47:08]Read from MH i2c: E2 0E 00 [23:47:08]MH_I2C_Read... [23:47:08]Read from MH i2c: E2 0E 00 C5 24 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 6C [23:47:08]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [23:47:08]wFMCommunicate OK [23:47:08]SAM_PROTO_GetShiftState done [23:47:08]FM_GetShiftState done [23:47:08]req_shift_opened done [23:47:08]requested_item shift.open_date is exist - process it [23:47:08]req_shift_open_date [23:47:08]req_shift_open_date done [23:47:08]produce_requested_data done [23:47:08]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69603,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [23:47:08]process_action_free close_receipt [23:47:08]json_value_free [23:47:08]json_value_free done [23:47:08]process_json_proto returns [23:47:08]Send response to host [23:47:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69603,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [23:47:08]free response buf [23:47:08]execute_script done [23:47:08]execute_script returns [23:47:08]free content buf [23:47:08]Sock 9.Close socket [23:47:08]Sock 9.Thread stoped [23:47:12]OFD Sender: No OFD packet to send [23:47:17]OFD Sender: No OFD packet to send [23:47:22]OFD Sender: No OFD packet to send [23:47:27]OFD Sender: No OFD packet to send [23:47:32]OFD Sender: No OFD packet to send [23:47:37]OFD Sender: No OFD packet to send [23:47:42]OFD Sender: No OFD packet to send [23:47:47]OFD Sender: No OFD packet to send [23:47:52]OFD Sender: No OFD packet to send [23:47:57]OFD Sender: No OFD packet to send [23:48:02]OFD Sender: No OFD packet to send [23:48:07]OFD Sender: No OFD packet to send [23:48:12]OFD Sender: No OFD packet to send [23:48:17]OFD Sender: No OFD packet to send [23:48:22]OFD Sender: No OFD packet to send [23:48:27]OFD Sender: No OFD packet to send [23:48:32]OFD Sender: No OFD packet to send [23:48:37]OFD Sender: No OFD packet to send [23:48:42]OFD Sender: No OFD packet to send [23:48:47]OFD Sender: No OFD packet to send [23:48:52]OFD Sender: No OFD packet to send [23:48:57]OFD Sender: No OFD packet to send [23:49:02]OFD Sender: No OFD packet to send [23:49:07]OFD Sender: No OFD packet to send [23:49:12]OFD Sender: No OFD packet to send [23:49:17]OFD Sender: No OFD packet to send [23:49:22]OFD Sender: No OFD packet to send [23:49:27]OFD Sender: No OFD packet to send [23:49:32]OFD Sender: No OFD packet to send [23:49:37]OFD Sender: No OFD packet to send [23:49:42]OFD Sender: No OFD packet to send [23:49:47]OFD Sender: No OFD packet to send [23:49:52]OFD Sender: No OFD packet to send [23:49:57]OFD Sender: No OFD packet to send [23:50:02]OFD Sender: No OFD packet to send [23:50:07]OFD Sender: No OFD packet to send [23:50:12]OFD Sender: No OFD packet to send [23:50:17]OFD Sender: No OFD packet to send [23:50:22]OFD Sender: No OFD packet to send [23:50:27]OFD Sender: No OFD packet to send [23:50:32]OFD Sender: No OFD packet to send [23:50:37]OFD Sender: No OFD packet to send [23:50:42]OFD Sender: No OFD packet to send [23:50:47]OFD Sender: No OFD packet to send [23:50:52]OFD Sender: No OFD packet to send [23:50:57]OFD Sender: No OFD packet to send [23:51:02]OFD Sender: No OFD packet to send [23:51:07]OFD Sender: No OFD packet to send [23:51:12]OFD Sender: No OFD packet to send [23:51:17]OFD Sender: No OFD packet to send [23:51:22]OFD Sender: No OFD packet to send [23:51:27]OFD Sender: No OFD packet to send [23:51:32]OFD Sender: No OFD packet to send [23:51:37]OFD Sender: No OFD packet to send [23:51:42]OFD Sender: No OFD packet to send [23:51:47]OFD Sender: No OFD packet to send [23:51:52]OFD Sender: No OFD packet to send [23:51:57]OFD Sender: No OFD packet to send [23:52:02]OFD Sender: No OFD packet to send [23:52:07]OFD Sender: No OFD packet to send [23:52:12]OFD Sender: No OFD packet to send [23:52:17]OFD Sender: No OFD packet to send [23:52:22]OFD Sender: No OFD packet to send [23:52:27]OFD Sender: No OFD packet to send [23:52:32]OFD Sender: No OFD packet to send [23:52:37]OFD Sender: No OFD packet to send [23:52:42]OFD Sender: No OFD packet to send [23:52:47]OFD Sender: No OFD packet to send [23:52:52]OFD Sender: No OFD packet to send [23:52:57]OFD Sender: No OFD packet to send [23:53:02]OFD Sender: No OFD packet to send [23:53:07]OFD Sender: No OFD packet to send [23:53:12]OFD Sender: No OFD packet to send [23:53:17]OFD Sender: No OFD packet to send [23:53:22]OFD Sender: No OFD packet to send [23:53:27]OFD Sender: No OFD packet to send [23:53:32]OFD Sender: No OFD packet to send [23:53:37]OFD Sender: No OFD packet to send [23:53:42]OFD Sender: No OFD packet to send [23:53:47]OFD Sender: No OFD packet to send [23:53:52]OFD Sender: No OFD packet to send [23:53:57]OFD Sender: No OFD packet to send [23:54:02]OFD Sender: No OFD packet to send [23:54:07]OFD Sender: No OFD packet to send [23:54:12]OFD Sender: No OFD packet to send [23:54:17]OFD Sender: No OFD packet to send [23:54:22]OFD Sender: No OFD packet to send [23:54:27]OFD Sender: No OFD packet to send [23:54:32]OFD Sender: No OFD packet to send [23:54:37]OFD Sender: No OFD packet to send [23:54:42]OFD Sender: No OFD packet to send [23:54:47]OFD Sender: No OFD packet to send [23:54:50]accept exits with 7 [23:54:50]New connection [23:54:50]New thread 3066654052 created [23:54:50]Thread 3066797412 joined [23:54:50]Waiting for new connection... [23:54:50] Sock 7.Parse request [23:54:50]Sock 7.Check first char [23:54:50]Sock 7.First char is OK [23:54:50]request: POST /json_proto HTTP/1.0 [23:54:50]Method: POST [23:54:50]URL: /json_proto [23:54:50]Method is POST - this is cgi request [23:54:50]url: /json_proto [23:54:50]query_string will be loaded in cgi processing [23:54:50]execute_cgi json_proto POST (null) [23:54:50]execute_cgi path=json_proto method=POST [23:54:50]POST find Content-Length [23:54:50]Host: 172.17.50.3:8080 [23:54:50]Content-Length: 686 [23:54:50]Content-Type: application/json [23:54:50] [23:54:50]POST finish read [23:54:50]Found Content-Length = 686 [23:54:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.920, "sum" : 997.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 997.00, "payments": [ { "type": 0, "sum" : 997.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:54:50]execute_script... [23:54: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)2885343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.920, "sum" : 997.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 997.00, "payments": [ { "type": 0, "sum" : 997.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:54:50]POST & json_proto [23:54:50]process_json_proto [23:54:50]json parsed OK: [23:54:50]protocol is kg_v1.0 [23:54:50]action value=close_receipt [23:54:50]process_action close_receipt [23:54:50]cmd_close_receipt [23:54:50]MH_GetDate [23:54:50]Write to MH i2c: F0 00 00 C6 24 D9 [23:54:50]Write i2c OK [23:54:50]MH_I2C_Read... [23:54:50]Read from MH i2c: F0 [23:54:50]MH_I2C_Read... [23:54:50]Read from MH i2c: F0 09 00 [23:54:50]MH_I2C_Read... [23:54:50]Read from MH i2c: F0 09 00 C6 24 00 4C 98 15 67 6B 98 1E 66 C9 [23:54:50]GetLastDocTimeStamp 1729468026 [23:54:50]current date 1729468492 [23:54:50]FM_GetShiftState [23:54:50]SAM_PROTO_GetShiftState [23:54:50]wFMCommunicate request_size=4 [23:54:50]MH_SAM_APDU [23:54:50]CAPDU: 80 13 01 00 [23:54:50]Write to MH i2c: E2 08 00 C7 24 80 13 01 00 00 00 00 00 68 [23:54:50]Write i2c OK [23:54:50]MH_I2C_Read... [23:54:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:50]Read from MH i2c: E2 [23:54:50]MH_I2C_Read... [23:54:50]Read from MH i2c: E2 0E 00 [23:54:50]MH_I2C_Read... [23:54:50]Read from MH i2c: E2 0E 00 C7 24 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 6E [23:54:50]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [23:54:50]wFMCommunicate OK [23:54:50]SAM_PROTO_GetShiftState done [23:54:50]FM_GetShiftState done [23:54:50]opened in 1729383220 [23:54:50]opened+sec_in_day 1729469620 [23:54:50]quantity*price = 99742 [23:54:50]sum+1 = 99743 [23:54:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 997.00 Внесено: 1000.00 СДАЧА: 3.00 НСП 1% : 8.83 НДС 12% : 105.92 Наличными: 997.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 449 20.10.2024 23:54 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69604 ФПД: 94926165920171 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T235452&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69604&fm=94926165920171&tin=02508201610067®Number=0000000000156251&sum=99700 [23:54:51]StoreToDocumentArchive [23:54:51]shift 193 fd 69604 [23:54:51]save to /storage/0193/doc_00069604 [23:54:51]save last doc name /storage/0193/doc_00069604 to /storage/kkm_last_doc_name [23:54:51]save OK [23:54:51]Clear old archive folders... [23:54:51]ProcessDocumentItem done err = 0, tmpTLVsize=257 [23:54:51]tlvbuf is B6EB4790 [23:54:51]SAM_PROTO_ClearQueue [23:54:51]wFMCommunicate request_size=4 [23:54:51]MH_SAM_APDU [23:54:51]CAPDU: 80 09 00 00 [23:54:51]Write to MH i2c: E2 08 00 D4 24 80 09 00 00 00 00 00 00 6A [23:54:51]Write i2c OK [23:54:51]MH_I2C_Read... [23:54:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:54:51]Read from MH i2c: E2 [23:54:51]MH_I2C_Read... [23:54:51]Read from MH i2c: E2 03 00 [23:54:51]MH_I2C_Read... [23:54:51]Read from MH i2c: E2 03 00 D4 24 00 90 00 6C [23:54:51]RAPDU: 90 00 [23:54:51]wFMCommunicate OK [23:54:51]SAM_PROTO_ClearQueue done [23:54:51]KKMCreateOFDPacket [23:54:51]OFDProtocolAddRootSTLVToBuf [23:54:51]FM_MakeSignedData [23:54:51]FM_MakeSignedData [23:54:51]SAM_PROTO_SignData [23:54:51]wFMCommunicate request_size=4 [23:54:51]MH_SAM_APDU [23:54:51]CAPDU: 80 0D 01 02 [23:54:51]Write to MH i2c: E2 08 00 D5 24 80 0D 01 02 00 00 00 00 72 [23:54:51]Write i2c OK [23:54:51]MH_I2C_Read... [23:54:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:54:51]Read from MH i2c: E2 [23:54:51]MH_I2C_Read... [23:54:51]Read from MH i2c: E2 03 00 [23:54:51]MH_I2C_Read... [23:54:51]Read from MH i2c: E2 03 00 D5 24 00 90 00 6D [23:54:51]RAPDU: 90 00 [23:54:51]wFMCommunicate OK [23:54:51]wFMCommunicate request_size=255 [23:54:51]MH_SAM_APDU [23:54:51]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 78 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E 85 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 85 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 29 00 00 00 00 07 04 06 00 74 85 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 01 00 00 F4 03 04 00 4C 98 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E4 0F 01 [23:54:51]Write to MH i2c: E2 02 01 D6 24 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 78 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E 85 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 85 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 29 00 00 00 00 07 04 06 00 74 85 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 01 00 00 F4 03 04 00 4C 98 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E4 0F 01 00 00 C0 [23:54:51]Write i2c OK [23:54:51]MH_I2C_Read... [23:54:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:54:51]Read from MH i2c: E2 [23:54:51]MH_I2C_Read... [23:54:51]Read from MH i2c: E2 03 00 [23:54:51]MH_I2C_Read... [23:54:51]Read from MH i2c: E2 03 00 D6 24 00 90 00 6E [23:54:51]RAPDU: 90 00 [23:54:51]wFMCommunicate OK [23:54:51]wFMCommunicate request_size=16 [23:54:51]MH_SAM_APDU [23:54:51]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 56 55 B8 66 49 AB [23:54:51]Write to MH i2c: E2 13 00 D7 24 80 0D 02 02 0B 00 00 35 04 06 00 56 55 B8 66 49 AB 00 00 87 [23:54:51]Write i2c OK [23:54:51]MH_I2C_Read... [23:54:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:54:51]Read from MH i2c: E2 [23:54:51]MH_I2C_Read... [23:54:51]Read from MH i2c: E2 03 00 [23:54:51]MH_I2C_Read... [23:54:51]Read from MH i2c: E2 03 00 D7 24 00 90 00 6F [23:54:51]RAPDU: 90 00 [23:54:51]wFMCommunicate OK [23:54:51]wFMCommunicate request_size=4 [23:54:51]MH_SAM_APDU [23:54:51]CAPDU: 80 0D 03 02 [23:54:51]Write to MH i2c: E2 08 00 D8 24 80 0D 03 02 00 00 00 00 77 [23:54:51]Write i2c OK [23:54:51]MH_I2C_Read... [23:54:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:54:52]Read from MH i2c: E2 [23:54:52]MH_I2C_Read... [23:54:52]Read from MH i2c: E2 0B 00 [23:54:52]MH_I2C_Read... [23:54:52]Read from MH i2c: E2 0B 00 D8 24 00 B8 D1 E3 79 9C 6E DA CE 90 00 0F [23:54:52]RAPDU: B8 D1 E3 79 9C 6E DA CE 90 00 [23:54:52]wFMCommunicate OK [23:54:52]SAM_PROTO_SignData done [23:54:52]FM_MakeSignedData done [23:54:52]CreateOFDProtocolMessage [23:54:52]wFMCommunicate request_size=4 [23:54:52]MH_SAM_APDU [23:54:52]CAPDU: 80 11 00 00 [23:54:52]Write to MH i2c: E2 08 00 D9 24 80 11 00 00 00 00 00 00 77 [23:54:52]Write i2c OK [23:54:52]MH_I2C_Read... [23:54:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:52]Read from MH i2c: E2 [23:54:52]MH_I2C_Read... [23:54:52]Read from MH i2c: E2 17 00 [23:54:52]MH_I2C_Read... [23:54:52]Read from MH i2c: E2 17 00 D9 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C9 [23:54:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:54:52]wFMCommunicate OK [23:54:52]CreateOFDProtocolMessage done [23:54:52]OFDSenderStorePacket 69604 [23:54:52]StoreOFDPacket docnum=69604 [23:54:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 37 AB 0D 01 A4 A4 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 78 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E 85 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 85 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 29 00 00 00 00 07 04 06 00 74 85 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 01 00 00 F4 03 04 00 4C 98 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E4 0F 01 00 35 04 06 00 56 55 B8 66 49 AB B8 D1 E3 79 9C 6E DA CE [23:54:52]CheckFolder [23:54:52]dirname=/storage/ofd_packets [23:54:52]CheckFolder done [23:54:52]ProducePacketName [23:54:52]name=ofd_packets/00069604 [23:54:52]NVStorageSaveData ofd_packets/00069604 [23:54:52]File name is /storage/ofd_packets/00069604 [23:54:52]Write 307 bytes [23:54:52]NVStorageSaveData done [23:54:52]OFDSenderStorePacket done [23:54:52]KKMCreateOFDPacket done [23:54:52]NVStorageSaveData kkm_last_timestamp [23:54:52]File name is /storage/kkm_last_timestamp [23:54:52]Write 4 bytes [23:54:52]NVStorageSaveData done [23:54:52]ExternCall_PrintAddStr [23:54:52]wPrintStart [23:54:52]Write to MH i2c: 01 00 00 DA 24 FE [23:54:52]Write i2c OK [23:54:52]MH_I2C_Read... [23:54:52]Read from MH i2c: 01 [23:54:52]MH_I2C_Read... [23:54:52]Read from MH i2c: 01 07 00 [23:54:52]MH_I2C_Read... [23:54:52]Read from MH i2c: 01 07 00 DA 24 00 00 00 00 00 FF 0F 13 [23:54:52]RasterBufferAndPrint [23:54:52]line Счет N : (1)2885343 [23:54:52]line ИНН: 02508201610067 [23:54:52]line Контрольно-Кассовый Чек [23:54:52]line ПРОДАЖА [23:54:52]line ТРК (МРК, ГНК) : 41 [23:54:52]line Товар: 2710194240 [23:54:52]line D-ENERGY Дт-К-2 [23:54:52]line 12.920 * 77.20 [23:54:52]line = 997.42 [23:54:52]line НДС 12% НСП 1% [23:54:52]line > о реализуемом товаре [23:54:52]line ОКРУГЛЕНИЕ: -0.42 [23:54:52]line ИТОГО: 997.00 [23:54:52]line Внесено: 1000.00 [23:54:52]line СДАЧА: 3.00 [23:54:52]line НСП 1% : 8.83 [23:54:52]line НДС 12% : 105.92 [23:54:52]line Наличными: 997.00 [23:54:52]line Безнал.: 0.00 [23:54:52]line Место: АЗС № 85 "Партнер Нефть" [23:54:52]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:54:52]line СНО: Общий режим [23:54:52]line Чек 449 20.10.2024 23:54 [23:54:52]line Смена: 193 ФФД: 1.0 [23:54:52]line ЗНМ: 0300000167 [23:54:52]line РНМ: 0000000000156251 [23:54:52]line Версия ККМ: v1.0 [23:54:52]line ФМ: 0000000000963346 [23:54:52]line ФД: 69604 [23:54:52]line ФПД: 94926165920171 [23:54:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T235452&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69604&fm=94926165920171&tin=02508201610067®Number=0000000000156251&sum=99700 [23:54:52]OFD Sender: Processing packet 69604 [packets to send 18, broken 17] [23:54:52]ProducePacketName [23:54:52]name=ofd_packets/00069604 [23:54:52]OFD Sender: To server: pG, [23:54:52]CommunicateWithHost lk.salyk.kg:30040 [23:54:52]ConnectInit lk.salyk.kg [23:54:52]written 0, free lines is 4095 [23:54:52]Connected sock=10 [23:54:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 37 AB 0D 01 A4 A4 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 78 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E 85 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 85 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 29 00 00 00 00 07 04 06 00 74 85 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 01 00 00 F4 03 04 00 4C 98 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E4 0F 01 00 35 04 06 00 56 55 B8 66 49 AB B8 D1 E3 79 9C 6E DA CE [23:54:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 D1 97 47 00 30 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E4 0F 01 00 F4 03 04 00 F1 41 15 67 B6 04 01 00 00 F5 C0 1B A4 9E 1B 75 B9 [23:54:52]CommunicateWithHost err = 0 [23:54:52]CheckOFDResponse [23:54:52]1017 (14) - 77093643461234 [23:54:52]1041 (16) - 0000000000963346 [23:54:52]1040 (4) - 69604 [23:54:52]1012 (4) - 20.10.2024 17:46 [23:54:52]1206 (1) - 0 [23:54:52]OFD Sender: Remove packet 69604 [23:54:52]ProducePacketName [23:54:52]name=ofd_packets/00069604 [23:54:52]NVStorageDeleteData [23:54:52]Write to MH i2c: 01 00 00 05 25 2A [23:54:52]Write i2c OK [23:54:52]MH_I2C_Read... [23:54:52]Read from MH i2c: 01 [23:54:52]MH_I2C_Read... [23:54:52]Read from MH i2c: 01 07 00 [23:54:52]MH_I2C_Read... [23:54:52]Read from MH i2c: 01 07 00 05 25 00 00 00 00 00 F4 0C 31 [23:54:52]RasterBufferAndPrint [23:54:52]line [23:54:52]line [23:54:52]line [23:54:52]line [23:54:52]line [23:54:52]written 0, free lines is 3322 [23:54:52]MH_Cut [23:54:52]Write to MH i2c: D1 01 00 0C 25 01 03 [23:54:52]Write i2c OK [23:54:52]MH_I2C_Read... [23:54:52]Read from MH i2c: D1 [23:54:52]MH_I2C_Read... [23:54:52]Read from MH i2c: D1 01 00 [23:54:52]MH_I2C_Read... [23:54:52]Read from MH i2c: D1 01 00 0C 25 00 02 [23:54:52]Write to MH i2c: 01 00 00 0D 25 32 [23:54:52]Write i2c OK [23:54:52]MH_I2C_Read... [23:54:53]OFD Sender: No OFD packet to send [23:54:53]*** Cut start [23:54:53]*** Partial cut [23:54:53]*** CUTSNS_PIN = 1 [23:54:53]*** CUTSNS_PIN = 0 [23:54:53]*** Brake cut motor [23:54:54]Read from MH i2c: 01 [23:54:54]MH_I2C_Read... [23:54:54]*** Stop cut motor [23:54:54]*** Cut end [23:54:54]Read from MH i2c: 01 07 00 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: 01 07 00 0D 25 00 00 00 00 00 FF 0F 47 [23:54:54]process_action close_receipt done [23:54:54]requested_data is exist [23:54:54]produce_requested_data [23:54:54]requested_item fm.sn is exist - process it [23:54:54]wFMCommunicate request_size=4 [23:54:54]MH_SAM_APDU [23:54:54]CAPDU: 80 11 00 00 [23:54:54]Write to MH i2c: E2 08 00 0E 25 80 11 00 00 00 00 00 00 AD [23:54:54]Write i2c OK [23:54:54]MH_I2C_Read... [23:54:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:54]Read from MH i2c: E2 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: E2 17 00 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: E2 17 00 0E 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FF [23:54:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:54:54]wFMCommunicate OK [23:54:54]requested_item fd.num is exist - process it [23:54:54]SAM_PROTO_GetFieldsCounters [23:54:54]wFMCommunicate request_size=4 [23:54:54]MH_SAM_APDU [23:54:54]CAPDU: 80 13 00 00 [23:54:54]Write to MH i2c: E2 08 00 0F 25 80 13 00 00 00 00 00 00 B0 [23:54:54]Write i2c OK [23:54:54]MH_I2C_Read... [23:54:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:54:54]Read from MH i2c: E2 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: E2 62 00 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: E2 62 00 0F 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E4 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C1 01 00 00 5E 04 04 00 C1 01 00 00 57 04 04 00 C2 01 00 00 19 04 04 00 00 00 00 00 90 00 C6 [23:54:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E4 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C1 01 00 00 5E 04 04 00 C1 01 00 00 57 04 04 00 C2 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:54:54]wFMCommunicate OK [23:54:54]SAM_PROTO_GetFieldsCounters done [23:54:54]requested_item shift.num is exist - process it [23:54:54]requested_item shift.opened is exist - process it [23:54:54]req_shift_opened [23:54:54]FM_GetShiftState [23:54:54]SAM_PROTO_GetShiftState [23:54:54]wFMCommunicate request_size=4 [23:54:54]MH_SAM_APDU [23:54:54]CAPDU: 80 13 01 00 [23:54:54]Write to MH i2c: E2 08 00 10 25 80 13 01 00 00 00 00 00 B2 [23:54:54]Write i2c OK [23:54:54]MH_I2C_Read... [23:54:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:54]Read from MH i2c: E2 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: E2 0E 00 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: E2 0E 00 10 25 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 B8 [23:54:54]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [23:54:54]wFMCommunicate OK [23:54:54]SAM_PROTO_GetShiftState done [23:54:54]FM_GetShiftState done [23:54:54]req_shift_opened done [23:54:54]requested_item shift.open_date is exist - process it [23:54:54]req_shift_open_date [23:54:54]req_shift_open_date done [23:54:54]produce_requested_data done [23:54:54]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69604,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [23:54:54]process_action_free close_receipt [23:54:54]json_value_free [23:54:54]json_value_free done [23:54:54]process_json_proto returns [23:54:54]Send response to host [23:54:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69604,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [23:54:54]free response buf [23:54:54]execute_script done [23:54:54]execute_script returns [23:54:54]free content buf [23:54:54]Sock 7.Close socket [23:54:54]Sock 7.Thread stoped [23:54:58]OFD Sender: No OFD packet to send [23:55:03]OFD Sender: No OFD packet to send [23:55:08]OFD Sender: No OFD packet to send [23:55:13]OFD Sender: No OFD packet to send [23:55:18]OFD Sender: No OFD packet to send [23:55:23]OFD Sender: No OFD packet to send [23:55:28]OFD Sender: No OFD packet to send [23:55:33]OFD Sender: No OFD packet to send [23:55:38]OFD Sender: No OFD packet to send [23:55:43]OFD Sender: No OFD packet to send [23:55:48]OFD Sender: No OFD packet to send [23:55:53]OFD Sender: No OFD packet to send [23:55:58]OFD Sender: No OFD packet to send [23:56:03]OFD Sender: No OFD packet to send [23:56:08]OFD Sender: No OFD packet to send [23:56:13]OFD Sender: No OFD packet to send [23:56:18]OFD Sender: No OFD packet to send [23:56:23]OFD Sender: No OFD packet to send [23:56:28]OFD Sender: No OFD packet to send [23:56:33]OFD Sender: No OFD packet to send [23:56:38]OFD Sender: No OFD packet to send [23:56:43]OFD Sender: No OFD packet to send [23:56:48]OFD Sender: No OFD packet to send [23:56:53]OFD Sender: No OFD packet to send [23:56:58]OFD Sender: No OFD packet to send [23:57:03]OFD Sender: No OFD packet to send [23:57:08]OFD Sender: No OFD packet to send [23:57:13]OFD Sender: No OFD packet to send [23:57:18]OFD Sender: No OFD packet to send [23:57:23]OFD Sender: No OFD packet to send [23:57:28]OFD Sender: No OFD packet to send [23:57:33]OFD Sender: No OFD packet to send [23:57:38]OFD Sender: No OFD packet to send [23:57:43]OFD Sender: No OFD packet to send [23:57:48]OFD Sender: No OFD packet to send [23:57:53]OFD Sender: No OFD packet to send [23:57:58]OFD Sender: No OFD packet to send [23:58:03]OFD Sender: No OFD packet to send [23:58:08]OFD Sender: No OFD packet to send [23:58:13]OFD Sender: No OFD packet to send [23:58:18]OFD Sender: No OFD packet to send [23:58:23]OFD Sender: No OFD packet to send [23:58:28]OFD Sender: No OFD packet to send [23:58:33]OFD Sender: No OFD packet to send [23:58:38]OFD Sender: No OFD packet to send [23:58:43]OFD Sender: No OFD packet to send [23:58:48]OFD Sender: No OFD packet to send [23:58:53]OFD Sender: No OFD packet to send [23:58:58]OFD Sender: No OFD packet to send [23:59:03]OFD Sender: No OFD packet to send [23:59:08]OFD Sender: No OFD packet to send [23:59:13]OFD Sender: No OFD packet to send [23:59:18]OFD Sender: No OFD packet to send [23:59:23]OFD Sender: No OFD packet to send [23:59:26]int [23:59:26]Write to MH i2c: 01 00 00 11 25 36 [23:59:26]*** FLAG_PRN_PAP1 set [23:59:26]Write i2c OK [23:59:26]MH_I2C_Read... [23:59:26]Read from MH i2c: 01 [23:59:26]MH_I2C_Read... [23:59:26]Read from MH i2c: 01 07 00 [23:59:26]MH_I2C_Read... [23:59:26]Read from MH i2c: 01 07 00 11 25 00 01 00 00 00 FF 0F 4C [23:59:26]state=0 [23:59:26]No paper [23:59:26]int [23:59:26]Write to MH i2c: 01 00 00 12 25 37 [23:59:26]*** FLAG_PRN_PAP2 set [23:59:26]Write i2c OK [23:59:26]MH_I2C_Read... [23:59:26]Read from MH i2c: 01 [23:59:26]MH_I2C_Read... [23:59:26]Read from MH i2c: 01 07 00 [23:59:26]MH_I2C_Read... [23:59:26]Read from MH i2c: 01 07 00 12 25 00 03 00 00 00 FF 0F 4F [23:59:26]state=0 [23:59:26]No paper [23:59:26]Cover opened [23:59:26]int [23:59:26]Write to MH i2c: 01 00 00 13 25 38 [23:59:26]*** FLAG_PRN_PAP2 reset [23:59:26]Write i2c OK [23:59:26]MH_I2C_Read... [23:59:26]Read from MH i2c: 01 [23:59:26]MH_I2C_Read... [23:59:26]Read from MH i2c: 01 07 00 [23:59:26]MH_I2C_Read... [23:59:26]Read from MH i2c: 01 07 00 13 25 00 01 00 00 00 FF 0F 4E [23:59:26]state=3 [23:59:26]No paper [23:59:26]Cover closed [23:59:28]OFD Sender: No OFD packet to send [23:59:33]OFD Sender: No OFD packet to send [23:59:33]int [23:59:33]Write to MH i2c: 01 00 00 14 25 39 [23:59:33]*** FLAG_PRN_PAP2 set [23:59:33]Write i2c OK [23:59:33]MH_I2C_Read... [23:59:33]Read from MH i2c: 01 [23:59:33]MH_I2C_Read... [23:59:33]Read from MH i2c: 01 07 00 [23:59:33]MH_I2C_Read... [23:59:33]Read from MH i2c: 01 07 00 14 25 00 03 00 00 00 FF 0F 51 [23:59:33]state=0 [23:59:33]No paper [23:59:33]Cover opened [23:59:35]int [23:59:35]Write to MH i2c: 01 00 00 15 25 3A [23:59:35]*** FLAG_PRN_PAP2 reset [23:59:35]Write i2c OK [23:59:35]MH_I2C_Read... [23:59:35]Read from MH i2c: 01 [23:59:35]MH_I2C_Read... [23:59:35]Read from MH i2c: 01 07 00 [23:59:35]MH_I2C_Read... [23:59:35]Read from MH i2c: 01 07 00 15 25 00 01 00 00 00 FF 0F 50 [23:59:35]state=3 [23:59:35]No paper [23:59:35]Cover closed [23:59:35]int [23:59:35]Write to MH i2c: 01 00 00 16 25 3B [23:59:35]*** FLAG_PRN_PAP2 set [23:59:35]Write i2c OK [23:59:35]MH_I2C_Read... [23:59:35]Read from MH i2c: 01 [23:59:35]MH_I2C_Read... [23:59:35]Read from MH i2c: 01 07 00 [23:59:35]MH_I2C_Read... [23:59:35]Read from MH i2c: 01 07 00 16 25 00 03 00 00 00 FF 0F 53 [23:59:35]state=0 [23:59:35]No paper [23:59:35]Cover opened [23:59:35]int [23:59:35]Write to MH i2c: 01 00 00 17 25 3C [23:59:35]*** FLAG_PRN_PAP2 reset [23:59:35]Write i2c OK [23:59:35]MH_I2C_Read... [23:59:35]Read from MH i2c: 01 [23:59:35]MH_I2C_Read... [23:59:35]Read from MH i2c: 01 07 00 [23:59:35]MH_I2C_Read... [23:59:35]Read from MH i2c: 01 07 00 17 25 00 01 00 00 00 FF 0F 52 [23:59:35]state=3 [23:59:35]No paper [23:59:35]Cover closed [23:59:35]int [23:59:35]Write to MH i2c: 01 00 00 18 25 3D [23:59:35]*** FLAG_PRN_PAP1 reset [23:59:35]Write i2c OK [23:59:35]MH_I2C_Read... [23:59:35]Read from MH i2c: 01 [23:59:35]MH_I2C_Read... [23:59:35]Read from MH i2c: 01 07 00 [23:59:35]MH_I2C_Read... [23:59:35]Read from MH i2c: 01 07 00 18 25 00 00 00 00 00 FF 0F 52 [23:59:35]state=0 [23:59:37]accept exits with 9 [23:59:37]New connection [23:59:37]New thread 3066797412 created [23:59:37]Thread 3066654052 joined [23:59:37]Waiting for new connection... [23:59:37] Sock 9.Parse request [23:59:37]Sock 9.Check first char [23:59:37]Sock 9.First char is OK [23:59:37]request: POST /json_proto HTTP/1.0 [23:59:37]Method: POST [23:59:37]URL: /json_proto [23:59:37]Method is POST - this is cgi request [23:59:37]url: /json_proto [23:59:37]query_string will be loaded in cgi processing [23:59:37]execute_cgi json_proto POST (null) [23:59:37]execute_cgi path=json_proto method=POST [23:59:37]POST find Content-Length [23:59:37]Host: 172.17.50.3:8080 [23:59:37]Content-Length: 686 [23:59:37]Content-Type: application/json [23:59:37] [23:59:37]POST finish read [23:59:37]Found Content-Length = 686 [23:59:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 77.130, "sum" : 3000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:37]execute_script... [23:59:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 77.130, "sum" : 3000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:37]POST & json_proto [23:59:37]process_json_proto [23:59:37]json parsed OK: [23:59:37]protocol is kg_v1.0 [23:59:37]action value=close_receipt [23:59:37]process_action close_receipt [23:59:37]cmd_close_receipt [23:59:37]MH_GetDate [23:59:37]Write to MH i2c: F0 00 00 19 25 2D [23:59:37]Write i2c OK [23:59:37]MH_I2C_Read... [23:59:37]Read from MH i2c: F0 [23:59:37]MH_I2C_Read... [23:59:37]Read from MH i2c: F0 09 00 [23:59:37]MH_I2C_Read... [23:59:37]Read from MH i2c: F0 09 00 19 25 00 6A 99 15 67 6B 98 1E 66 3C [23:59:37]GetLastDocTimeStamp 1729468492 [23:59:37]current date 1729468778 [23:59:37]FM_GetShiftState [23:59:37]SAM_PROTO_GetShiftState [23:59:37]wFMCommunicate request_size=4 [23:59:37]MH_SAM_APDU [23:59:37]CAPDU: 80 13 01 00 [23:59:37]Write to MH i2c: E2 08 00 1A 25 80 13 01 00 00 00 00 00 BC [23:59:37]Write i2c OK [23:59:37]MH_I2C_Read... [23:59:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:37]Read from MH i2c: E2 [23:59:37]MH_I2C_Read... [23:59:37]Read from MH i2c: E2 0E 00 [23:59:37]MH_I2C_Read... [23:59:37]Read from MH i2c: E2 0E 00 1A 25 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 C2 [23:59:37]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [23:59:37]wFMCommunicate OK [23:59:37]SAM_PROTO_GetShiftState done [23:59:37]FM_GetShiftState done [23:59:37]opened in 1729383220 [23:59:37]opened+sec_in_day 1729469620 [23:59:37]quantity*price = 300035 [23:59:37]sum+1 = 300037 [23:59:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.62 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 450 20.10.2024 23:59 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69605 ФПД: 196293367400845 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T235938&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69605&fm=196293367400845&tin=02508201610067®Number=0000000000156251&sum=300000 [23:59:38]StoreToDocumentArchive [23:59:38]shift 193 fd 69605 [23:59:38]save to /storage/0193/doc_00069605 [23:59:38]save last doc name /storage/0193/doc_00069605 to /storage/kkm_last_doc_name [23:59:38]save OK [23:59:38]Clear old archive folders... [23:59:38]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:59:38]tlvbuf is 00FD8950 [23:59:38]SAM_PROTO_ClearQueue [23:59:38]wFMCommunicate request_size=4 [23:59:38]MH_SAM_APDU [23:59:38]CAPDU: 80 09 00 00 [23:59:38]Write to MH i2c: E2 08 00 27 25 80 09 00 00 00 00 00 00 BE [23:59:38]Write i2c OK [23:59:38]MH_I2C_Read... [23:59:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:59:38]Read from MH i2c: E2 [23:59:38]MH_I2C_Read... [23:59:38]Read from MH i2c: E2 03 00 [23:59:38]MH_I2C_Read... [23:59:38]Read from MH i2c: E2 03 00 27 25 00 90 00 C0 [23:59:38]RAPDU: 90 00 [23:59:38]wFMCommunicate OK [23:59:38]SAM_PROTO_ClearQueue done [23:59:38]KKMCreateOFDPacket [23:59:38]OFDProtocolAddRootSTLVToBuf [23:59:38]FM_MakeSignedData [23:59:38]FM_MakeSignedData [23:59:38]SAM_PROTO_SignData [23:59:38]wFMCommunicate request_size=4 [23:59:38]MH_SAM_APDU [23:59:38]CAPDU: 80 0D 01 02 [23:59:38]Write to MH i2c: E2 08 00 28 25 80 0D 01 02 00 00 00 00 C6 [23:59:38]Write i2c OK [23:59:38]MH_I2C_Read... [23:59:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:59:38]Read from MH i2c: E2 [23:59:38]MH_I2C_Read... [23:59:38]Read from MH i2c: E2 03 00 [23:59:38]MH_I2C_Read... [23:59:38]Read from MH i2c: E2 03 00 28 25 00 90 00 C1 [23:59:38]RAPDU: 90 00 [23:59:38]wFMCommunicate OK [23:59:38]wFMCommunicate request_size=255 [23:59:38]MH_SAM_APDU [23:59: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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 4A 2D 01 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 04 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 01 00 00 F4 03 04 00 6A 99 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E5 0F 01 00 35 04 06 00 B2 87 [23:59:38]Write to MH i2c: E2 02 01 29 25 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 4A 2D 01 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 04 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 01 00 00 F4 03 04 00 6A 99 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E5 0F 01 00 35 04 06 00 B2 87 00 00 47 [23:59:38]Write i2c OK [23:59:38]MH_I2C_Read... [23:59:38]OFD Sender: No OFD packet to send [23:59:38]Read from MH i2c: E2 [23:59:38]MH_I2C_Read... [23:59:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:59:38]Read from MH i2c: E2 03 00 [23:59:38]MH_I2C_Read... [23:59:38]Read from MH i2c: E2 03 00 29 25 00 90 00 C2 [23:59:38]RAPDU: 90 00 [23:59:38]wFMCommunicate OK [23:59:38]wFMCommunicate request_size=9 [23:59:38]MH_SAM_APDU [23:59:38]CAPDU: 80 0D 02 02 04 1C 6F 89 8D [23:59:38]Write to MH i2c: E2 0C 00 2A 25 80 0D 02 02 04 00 1C 6F 89 8D 00 00 72 [23:59:38]Write i2c OK [23:59:38]MH_I2C_Read... [23:59:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:59:38]Read from MH i2c: E2 [23:59:38]MH_I2C_Read... [23:59:38]Read from MH i2c: E2 03 00 [23:59:38]MH_I2C_Read... [23:59:38]Read from MH i2c: E2 03 00 2A 25 00 90 00 C3 [23:59:38]RAPDU: 90 00 [23:59:38]wFMCommunicate OK [23:59:38]wFMCommunicate request_size=4 [23:59:38]MH_SAM_APDU [23:59:38]CAPDU: 80 0D 03 02 [23:59:38]Write to MH i2c: E2 08 00 2B 25 80 0D 03 02 00 00 00 00 CB [23:59:38]Write i2c OK [23:59:38]MH_I2C_Read... [23:59:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:59:38]Read from MH i2c: E2 [23:59:38]MH_I2C_Read... [23:59:38]Read from MH i2c: E2 0B 00 [23:59:38]MH_I2C_Read... [23:59:38]Read from MH i2c: E2 0B 00 2B 25 00 FF 9E 83 20 20 37 9B A1 90 00 9F [23:59:38]RAPDU: FF 9E 83 20 20 37 9B A1 90 00 [23:59:38]wFMCommunicate OK [23:59:38]SAM_PROTO_SignData done [23:59:38]FM_MakeSignedData done [23:59:38]CreateOFDProtocolMessage [23:59:38]wFMCommunicate request_size=4 [23:59:38]MH_SAM_APDU [23:59:38]CAPDU: 80 11 00 00 [23:59:38]Write to MH i2c: E2 08 00 2C 25 80 11 00 00 00 00 00 00 CB [23:59:38]Write i2c OK [23:59:38]MH_I2C_Read... [23:59:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:38]Read from MH i2c: E2 [23:59:38]MH_I2C_Read... [23:59:38]Read from MH i2c: E2 17 00 [23:59:38]MH_I2C_Read... [23:59:38]Read from MH i2c: E2 17 00 2C 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1D [23:59:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:59:38]wFMCommunicate OK [23:59:38]CreateOFDProtocolMessage done [23:59:38]OFDSenderStorePacket 69605 [23:59:38]StoreOFDPacket docnum=69605 [23:59:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 2E 90 06 01 84 57 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 4A 2D 01 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 04 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 01 00 00 F4 03 04 00 6A 99 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E5 0F 01 00 35 04 06 00 B2 87 1C 6F 89 8D FF 9E 83 20 20 37 9B A1 [23:59:38]CheckFolder [23:59:38]dirname=/storage/ofd_packets [23:59:38]CheckFolder done [23:59:38]ProducePacketName [23:59:38]name=ofd_packets/00069605 [23:59:38]NVStorageSaveData ofd_packets/00069605 [23:59:38]File name is /storage/ofd_packets/00069605 [23:59:38]Write 300 bytes [23:59:38]NVStorageSaveData done [23:59:38]OFDSenderStorePacket done [23:59:38]KKMCreateOFDPacket done [23:59:38]NVStorageSaveData kkm_last_timestamp [23:59:38]File name is /storage/kkm_last_timestamp [23:59:38]Write 4 bytes [23:59:38]NVStorageSaveData done [23:59:38]ExternCall_PrintAddStr [23:59:38]wPrintStart [23:59:38]Write to MH i2c: 01 00 00 2D 25 52 [23:59:38]Write i2c OK [23:59:38]MH_I2C_Read... [23:59:38]Read from MH i2c: 01 [23:59:38]MH_I2C_Read... [23:59:38]Read from MH i2c: 01 07 00 [23:59:38]MH_I2C_Read... [23:59:38]Read from MH i2c: 01 07 00 2D 25 00 00 00 00 00 FF 0F 67 [23:59:38]RasterBufferAndPrint [23:59:38]line Счет N : (1)2885344 [23:59:38]line ИНН: 02508201610067 [23:59:38]line Контрольно-Кассовый Чек [23:59:38]line ПРОДАЖА [23:59:38]line ТРК (МРК, ГНК) : 71 [23:59:38]line Товар: 2711129700 [23:59:38]line ГАЗ-К-3 [23:59:38]line 77.130 * 38.90 [23:59:38]line = 3000.36 [23:59:38]line НДС 12% НСП 1% [23:59:38]line > о реализуемом товаре [23:59:38]line ОКРУГЛЕНИЕ: -0.36 [23:59:38]line ИТОГО: 3000.00 [23:59:38]line Внесено: 3000.00 [23:59:38]line СДАЧА: 0.00 [23:59:38]line НСП 1% : 26.55 [23:59:38]line НДС 12% : 318.62 [23:59:38]line Наличными: 3000.00 [23:59:38]line Безнал.: 0.00 [23:59:38]line Место: АЗС № 85 "Партнер Нефть" [23:59:38]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [23:59:38]line СНО: Общий режим [23:59:38]line Чек 450 20.10.2024 23:59 [23:59:38]line Смена: 193 ФФД: 1.0 [23:59:38]line ЗНМ: 0300000167 [23:59:38]line РНМ: 0000000000156251 [23:59:38]line Версия ККМ: v1.0 [23:59:38]line ФМ: 0000000000963346 [23:59:38]line ФД: 69605 [23:59:39]line ФПД: 196293367400845 [23:59:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T235938&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69605&fm=196293367400845&tin=02508201610067®Number=0000000000156251&sum=300000 [23:59:39]OFD Sender: Processing packet 69605 [packets to send 18, broken 17] [23:59:39]ProducePacketName [23:59:39]name=ofd_packets/00069605 [23:59:39]OFD Sender: To server: pG, [23:59:39]CommunicateWithHost lk.salyk.kg:30040 [23:59:39]ConnectInit lk.salyk.kg [23:59:39]written 0, free lines is 4095 [23:59:39]Connected sock=10 [23:59:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 2E 90 06 01 84 57 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 4A 2D 01 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 04 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 01 00 00 F4 03 04 00 6A 99 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E5 0F 01 00 35 04 06 00 B2 87 1C 6F 89 8D FF 9E 83 20 20 37 9B A1 [23:59:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 2B 67 47 00 33 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 30 39 36 33 33 34 36 10 04 04 00 E5 0F 01 00 F4 03 04 00 10 43 15 67 B6 04 01 00 00 C3 53 96 7C CB AA 0E 4D [23:59:39]CommunicateWithHost err = 0 [23:59:39]CheckOFDResponse [23:59:39]1017 (14) - 77093643461234 [23:59:39]1041 (16) - 0000000000963346 [23:59:39]1040 (4) - 69605 [23:59:39]1012 (4) - 20.10.2024 17:51 [23:59:39]1206 (1) - 0 [23:59:39]OFD Sender: Remove packet 69605 [23:59:39]ProducePacketName [23:59:39]name=ofd_packets/00069605 [23:59:39]NVStorageDeleteData [23:59:39]Write to MH i2c: 01 00 00 58 25 7D [23:59:39]Write i2c OK [23:59:39]MH_I2C_Read... [23:59:39]Read from MH i2c: 01 [23:59:39]MH_I2C_Read... [23:59:39]Read from MH i2c: 01 07 00 [23:59:39]MH_I2C_Read... [23:59:39]Read from MH i2c: 01 07 00 58 25 00 00 00 00 00 02 0D 93 [23:59:39]RasterBufferAndPrint [23:59:39]line [23:59:39]line [23:59:39]line [23:59:39]line [23:59:39]line [23:59:39]written 0, free lines is 3337 [23:59:39]MH_Cut [23:59:39]Write to MH i2c: D1 01 00 5F 25 01 56 [23:59:39]Write i2c OK [23:59:39]MH_I2C_Read... [23:59:39]Read from MH i2c: D1 [23:59:39]MH_I2C_Read... [23:59:39]Read from MH i2c: D1 01 00 [23:59:39]MH_I2C_Read... [23:59:39]Read from MH i2c: D1 01 00 5F 25 00 55 [23:59:39]Write to MH i2c: 01 00 00 60 25 85 [23:59:39]Write i2c OK [23:59:39]MH_I2C_Read... [23:59:39]OFD Sender: No OFD packet to send [23:59:40]*** Cut start [23:59:40]*** Partial cut [23:59:40]*** CUTSNS_PIN = 1 [23:59:40]*** CUTSNS_PIN = 0 [23:59:40]*** Brake cut motor [23:59:40]Read from MH i2c: 01 [23:59:40]MH_I2C_Read... [23:59:40]*** Stop cut motor [23:59:40]*** Cut end [23:59:40]Read from MH i2c: 01 07 00 [23:59:40]MH_I2C_Read... [23:59:40]Read from MH i2c: 01 07 00 60 25 00 00 00 00 00 FF 0F 9A [23:59:40]process_action close_receipt done [23:59:40]requested_data is exist [23:59:40]produce_requested_data [23:59:40]requested_item fm.sn is exist - process it [23:59:40]wFMCommunicate request_size=4 [23:59:40]MH_SAM_APDU [23:59:40]CAPDU: 80 11 00 00 [23:59:40]Write to MH i2c: E2 08 00 61 25 80 11 00 00 00 00 00 00 00 [23:59:40]Write i2c OK [23:59:40]MH_I2C_Read... [23:59:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:40]Read from MH i2c: E2 [23:59:40]MH_I2C_Read... [23:59:40]Read from MH i2c: E2 17 00 [23:59:40]MH_I2C_Read... [23:59:40]Read from MH i2c: E2 17 00 61 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 52 [23:59:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [23:59:40]wFMCommunicate OK [23:59:40]requested_item fd.num is exist - process it [23:59:40]SAM_PROTO_GetFieldsCounters [23:59:40]wFMCommunicate request_size=4 [23:59:40]MH_SAM_APDU [23:59:40]CAPDU: 80 13 00 00 [23:59:40]Write to MH i2c: E2 08 00 62 25 80 13 00 00 00 00 00 00 03 [23:59:40]Write i2c OK [23:59:40]MH_I2C_Read... [23:59:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:59:40]Read from MH i2c: E2 [23:59:40]MH_I2C_Read... [23:59:40]Read from MH i2c: E2 62 00 [23:59:40]MH_I2C_Read... [23:59:40]Read from MH i2c: E2 62 00 62 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E5 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C2 01 00 00 5E 04 04 00 C2 01 00 00 57 04 04 00 C3 01 00 00 19 04 04 00 00 00 00 00 90 00 1D [23:59:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E5 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C2 01 00 00 5E 04 04 00 C2 01 00 00 57 04 04 00 C3 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:59:40]wFMCommunicate OK [23:59:40]SAM_PROTO_GetFieldsCounters done [23:59:40]requested_item shift.num is exist - process it [23:59:40]requested_item shift.opened is exist - process it [23:59:40]req_shift_opened [23:59:40]FM_GetShiftState [23:59:40]SAM_PROTO_GetShiftState [23:59:40]wFMCommunicate request_size=4 [23:59:40]MH_SAM_APDU [23:59:40]CAPDU: 80 13 01 00 [23:59:40]Write to MH i2c: E2 08 00 63 25 80 13 01 00 00 00 00 00 05 [23:59:40]Write i2c OK [23:59:40]MH_I2C_Read... [23:59:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:41]Read from MH i2c: E2 [23:59:41]MH_I2C_Read... [23:59:41]Read from MH i2c: E2 0E 00 [23:59:41]MH_I2C_Read... [23:59:41]Read from MH i2c: E2 0E 00 63 25 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 0B [23:59:41]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [23:59:41]wFMCommunicate OK [23:59:41]SAM_PROTO_GetShiftState done [23:59:41]FM_GetShiftState done [23:59:41]req_shift_opened done [23:59:41]requested_item shift.open_date is exist - process it [23:59:41]req_shift_open_date [23:59:41]req_shift_open_date done [23:59:41]produce_requested_data done [23:59:41]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69605,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [23:59:41]process_action_free close_receipt [23:59:41]json_value_free [23:59:41]json_value_free done [23:59:41]process_json_proto returns [23:59:41]Send response to host [23:59:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69605,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [23:59:41]free response buf [23:59:41]execute_script done [23:59:41]execute_script returns [23:59:41]free content buf [23:59:41]Sock 9.Close socket [23:59:41]Sock 9.Thread stoped [23:59:44]OFD Sender: No OFD packet to send [23:59:49]OFD Sender: No OFD packet to send [23:59:54]OFD Sender: No OFD packet to send [23:59:59]OFD Sender: No OFD packet to send [00:00:04]OFD Sender: No OFD packet to send [00:00:09]OFD Sender: No OFD packet to send [00:00:14]OFD Sender: No OFD packet to send [00:00:19]OFD Sender: No OFD packet to send [00:00:24]OFD Sender: No OFD packet to send [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]/dev/ttyS4 opened [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 08 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 AD [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:09]*** [00:00:09]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 5400000000572508 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 16187712+1713281131=1729468843 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33560623 [00:00:10]*** Is cutter blocked? [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 08 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 AE [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:10]Model is 3 [00:00:10]MH firmware is 30620 [00:00:10]MH boot firmware is 3 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 05 00 41 00 50 00 FF FF 6F [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:10]Write to MH i2c: D5 00 00 06 00 DA [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 AB 99 15 67 6B 98 1E 66 46 [00:00:43]Current date/time: 21.10.2024 00:00 [00:00:43]FM_Init [00:00:43]wFMConnect [00:00:43]MH_SAM_On [00:00:43]Write to MH i2c: E0 00 00 08 00 E7 [00:00:43]Write i2c OK [00:00:43]MH_I2C_Read... [00:00:43]*** iso7816_init finished! [00:00:43]*** atr: [00:00:43]*** 0F 3B D5 18 FF 81 91 FE [00:00:43]*** 1F C3 80 73 C8 21 10 0A [00:00:43]*** 00 00 00 00 00 00 00 00 [00:00:43]*** 00 00 00 00 00 00 00 00 [00:00:43]*** 00 00 00 00 00 00 00 00 [00:00:43]*** 00 00 00 00 00 00 00 00 [00:00:43]*** 00 00 00 00 00 00 00 00 [00:00:43]*** 00 00 00 00 00 00 00 00 [00:00:43]Read from MH i2c: E0 [00:00:43]MH_I2C_Read... [00:00:43]Read from MH i2c: E0 10 00 [00:00:43]MH_I2C_Read... [00:00:43]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [00:00:43]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [00:00:43]wFMCommunicate request_size=10 [00:00:43]MH_SAM_APDU [00:00:43]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [00:00:43]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [00:00:43]Write i2c OK [00:00:43]MH_I2C_Read... [00:00:43]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [00:00:43]Read from MH i2c: E2 [00:00:43]MH_I2C_Read... [00:00:43]Read from MH i2c: E2 03 00 [00:00:43]MH_I2C_Read... [00:00:43]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [00:00:43]RAPDU: 90 00 [00:00:43]wFMCommunicate OK [00:00:43]wFMCommunicate request_size=4 [00:00:43]MH_SAM_APDU [00:00:43]CAPDU: 80 11 00 00 [00:00:43]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [00:00:43]Write i2c OK [00:00:43]MH_I2C_Read... [00:00:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:43]Read from MH i2c: E2 [00:00:43]MH_I2C_Read... [00:00:43]Read from MH i2c: E2 17 00 [00:00:43]MH_I2C_Read... [00:00:43]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D6 [00:00:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:00:43]wFMCommunicate OK [00:00:43]Detected FM SN is 0000000000963346 [00:00:43]Stored FM SN is 0000000000963346 [00:00:43]wFMCommunicate request_size=9 [00:00:43]MH_SAM_APDU [00:00:43]CAPDU: 80 16 00 00 04 0B 88 00 00 [00:00:43]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 0B 88 00 00 00 00 25 [00:00:43]Write i2c OK [00:00:43]MH_I2C_Read... [00:00:43]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [00:00:43]Read from MH i2c: E2 [00:00:43]MH_I2C_Read... [00:00:43]Read from MH i2c: E2 03 00 [00:00:43]MH_I2C_Read... [00:00:43]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [00:00:43]RAPDU: 90 00 [00:00:43]wFMCommunicate OK [00:00:43]FM PIN OK [00:00:43]wFMCommunicate request_size=8 [00:00:43]MH_SAM_APDU [00:00:43]CAPDU: 80 14 04 00 03 02 00 01 [00:00:43]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [00:00:43]Write i2c OK [00:00:43]MH_I2C_Read... [00:00:43]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [00:00:43]Read from MH i2c: E2 [00:00:43]MH_I2C_Read... [00:00:43]Read from MH i2c: E2 03 00 [00:00:43]MH_I2C_Read... [00:00:43]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [00:00:43]RAPDU: 90 00 [00:00:43]wFMCommunicate OK [00:00:43]wFMCommunicate request_size=13 [00:00:43]MH_SAM_APDU [00:00:43]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [00:00:43]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [00:00:43]Write i2c OK [00:00:43]MH_I2C_Read... [00:00:43]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [00:00:43]Read from MH i2c: E2 [00:00:43]MH_I2C_Read... [00:00:43]Read from MH i2c: E2 03 00 [00:00:43]MH_I2C_Read... [00:00:43]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [00:00:43]RAPDU: 90 00 [00:00:43]wFMCommunicate OK [00:00:43]wFMCommunicate request_size=4 [00:00:43]MH_SAM_APDU [00:00:43]CAPDU: 80 11 00 00 [00:00:43]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [00:00:43]Write i2c OK [00:00:43]MH_I2C_Read... [00:00:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:43]Read from MH i2c: E2 [00:00:43]MH_I2C_Read... [00:00:43]Read from MH i2c: E2 17 00 [00:00:43]MH_I2C_Read... [00:00:43]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DA [00:00:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:00:43]wFMCommunicate OK [00:00:43]DocumentArchiveInit [00:00:43]Start Httpd... [00:00:43]Httpd thread 3067743588 created [00:00:43]Write to MH i2c: 01 00 00 0F 00 0F [00:00:43]Write i2c OK [00:00:43]MH_I2C_Read... [00:00:43]Read from MH i2c: 01 [00:00:43]MH_I2C_Read... [00:00:43]Read from MH i2c: 01 07 00 [00:00:43]MH_I2C_Read... [00:00:43]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [00:00:43]MH Int Process started [00:00:43]Allocated Socket 7 [00:00:43]Bind OK [00:00:43]Listen OK [00:00:43]httpd running on port 8080 [00:00:43]Waiting for new connection... [00:00:43]OFD Sender: No OFD packet to send [00:00:48]OFD Sender: No OFD packet to send [00:00:53]OFD Sender: No OFD packet to send [00:00:58]OFD Sender: No OFD packet to send [00:01:03]OFD Sender: No OFD packet to send [00:01:08]OFD Sender: No OFD packet to send [00:01:13]OFD Sender: No OFD packet to send [00:01:18]OFD Sender: No OFD packet to send [00:01:23]OFD Sender: No OFD packet to send [00:01:28]OFD Sender: No OFD packet to send [00:01:33]OFD Sender: No OFD packet to send [00:01:38]OFD Sender: No OFD packet to send [00:01:40]accept exits with 8 [00:01:40]New connection [00:01:40]New thread 3067456868 created [00:01:40]Waiting for new connection... [00:01:40] Sock 8.Parse request [00:01:40]Sock 8.Check first char [00:01:40]Sock 8.First char is OK [00:01:40]request: POST /json_proto HTTP/1.0 [00:01:40]Method: POST [00:01:40]URL: /json_proto [00:01:40]Method is POST - this is cgi request [00:01:40]url: /json_proto [00:01:40]query_string will be loaded in cgi processing [00:01:40]execute_cgi json_proto POST (null) [00:01:40]execute_cgi path=json_proto method=POST [00:01:40]POST find Content-Length [00:01:40]Host: 172.17.50.3:8080 [00:01:40]Content-Length: 680 [00:01:40]Content-Type: application/json [00:01:40] [00:01:40]POST finish read [00:01:40]Found Content-Length = 680 [00:01:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 14.440, "sum" : 1100.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:01:40]execute_script... [00:01:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 14.440, "sum" : 1100.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:01:40]POST & json_proto [00:01:40]process_json_proto [00:01:40]json parsed OK: [00:01:40]protocol is kg_v1.0 [00:01:40]action value=close_receipt [00:01:40]process_action close_receipt [00:01:40]cmd_close_receipt [00:01:40]MH_GetDate [00:01:40]Write to MH i2c: F0 00 00 10 00 FF [00:01:40]Write i2c OK [00:01:40]MH_I2C_Read... [00:01:40]Read from MH i2c: F0 [00:01:40]MH_I2C_Read... [00:01:40]Read from MH i2c: F0 09 00 [00:01:40]MH_I2C_Read... [00:01:40]Read from MH i2c: F0 09 00 10 00 00 E4 99 15 67 6B 98 1E 66 88 [00:01:40]GetLastDocTimeStamp 1729468778 [00:01:40]current date 1729468900 [00:01:40]FM_GetShiftState [00:01:40]SAM_PROTO_GetShiftState [00:01:40]wFMCommunicate request_size=4 [00:01:40]MH_SAM_APDU [00:01:40]CAPDU: 80 13 01 00 [00:01:40]Write to MH i2c: E2 08 00 11 00 80 13 01 00 00 00 00 00 8E [00:01:40]Write i2c OK [00:01:40]MH_I2C_Read... [00:01:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:40]Read from MH i2c: E2 [00:01:40]MH_I2C_Read... [00:01:40]Read from MH i2c: E2 0E 00 [00:01:40]MH_I2C_Read... [00:01:40]Read from MH i2c: E2 0E 00 11 00 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 94 [00:01:40]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [00:01:40]wFMCommunicate OK [00:01:40]SAM_PROTO_GetShiftState done [00:01:40]FM_GetShiftState done [00:01:40]opened in 1729383220 [00:01:40]opened+sec_in_day 1729469620 [00:01:40]quantity*price = 110032 [00:01:40]sum+1 = 110034 [00:01:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.85 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 451 21.10.2024 00:01 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69606 ФПД: 257447091552350 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T000140&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69606&fm=257447091552350&tin=02508201610067®Number=0000000000156251&sum=110000 [00:01:41]StoreToDocumentArchive [00:01:41]shift 193 fd 69606 [00:01:41]save to /storage/0193/doc_00069606 [00:01:41]save last doc name /storage/0193/doc_00069606 to /storage/kkm_last_doc_name [00:01:41]save OK [00:01:41]Clear old archive folders... [00:01:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:01:41]tlvbuf is 00C3FBF0 [00:01:41]SAM_PROTO_ClearQueue [00:01:41]wFMCommunicate request_size=4 [00:01:41]MH_SAM_APDU [00:01:41]CAPDU: 80 09 00 00 [00:01:41]Write to MH i2c: E2 08 00 1E 00 80 09 00 00 00 00 00 00 90 [00:01:41]Write i2c OK [00:01:41]MH_I2C_Read... [00:01:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:01:41]Read from MH i2c: E2 [00:01:41]MH_I2C_Read... [00:01:41]Read from MH i2c: E2 03 00 [00:01:41]MH_I2C_Read... [00:01:41]Read from MH i2c: E2 03 00 1E 00 00 90 00 92 [00:01:41]RAPDU: 90 00 [00:01:41]wFMCommunicate OK [00:01:41]SAM_PROTO_ClearQueue done [00:01:41]KKMCreateOFDPacket [00:01:41]OFDProtocolAddRootSTLVToBuf [00:01:41]FM_MakeSignedData [00:01:41]FM_MakeSignedData [00:01:41]SAM_PROTO_SignData [00:01:41]wFMCommunicate request_size=4 [00:01:41]MH_SAM_APDU [00:01:41]CAPDU: 80 0D 01 02 [00:01:41]Write to MH i2c: E2 08 00 1F 00 80 0D 01 02 00 00 00 00 98 [00:01:41]Write i2c OK [00:01:41]MH_I2C_Read... [00:01:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:01:41]Read from MH i2c: E2 [00:01:41]MH_I2C_Read... [00:01:41]Read from MH i2c: E2 03 00 [00:01:41]MH_I2C_Read... [00:01:41]Read from MH i2c: E2 03 00 1F 00 00 90 00 93 [00:01:41]RAPDU: 90 00 [00:01:41]wFMCommunicate OK [00:01:41]wFMCommunicate request_size=255 [00:01:41]MH_SAM_APDU [00:01:41]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 01 00 00 F4 03 04 00 E4 99 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E6 0F 01 00 35 04 06 00 EA 25 92 70 [00:01:41]Write to MH i2c: E2 02 01 20 00 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 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 01 00 00 F4 03 04 00 E4 99 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E6 0F 01 00 35 04 06 00 EA 25 92 70 00 00 D3 [00:01:41]Write i2c OK [00:01:41]MH_I2C_Read... [00:01:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:41]Read from MH i2c: E2 [00:01:41]MH_I2C_Read... [00:01:41]Read from MH i2c: E2 03 00 [00:01:41]MH_I2C_Read... [00:01:41]Read from MH i2c: E2 03 00 20 00 00 90 00 94 [00:01:41]RAPDU: 90 00 [00:01:41]wFMCommunicate OK [00:01:41]wFMCommunicate request_size=7 [00:01:41]MH_SAM_APDU [00:01:41]CAPDU: 80 0D 02 02 02 C0 5E [00:01:41]Write to MH i2c: E2 0A 00 21 00 80 0D 02 02 02 00 C0 5E 00 00 BD [00:01:41]Write i2c OK [00:01:41]MH_I2C_Read... [00:01:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:41]Read from MH i2c: E2 [00:01:41]MH_I2C_Read... [00:01:41]Read from MH i2c: E2 03 00 [00:01:41]MH_I2C_Read... [00:01:41]Read from MH i2c: E2 03 00 21 00 00 90 00 95 [00:01:41]RAPDU: 90 00 [00:01:41]wFMCommunicate OK [00:01:41]wFMCommunicate request_size=4 [00:01:41]MH_SAM_APDU [00:01:41]CAPDU: 80 0D 03 02 [00:01:41]Write to MH i2c: E2 08 00 22 00 80 0D 03 02 00 00 00 00 9D [00:01:41]Write i2c OK [00:01:41]MH_I2C_Read... [00:01:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:01:41]Read from MH i2c: E2 [00:01:41]MH_I2C_Read... [00:01:41]Read from MH i2c: E2 0B 00 [00:01:41]MH_I2C_Read... [00:01:41]Read from MH i2c: E2 0B 00 22 00 00 D2 29 53 F9 71 0D FD FC 90 00 5C [00:01:41]RAPDU: D2 29 53 F9 71 0D FD FC 90 00 [00:01:41]wFMCommunicate OK [00:01:41]SAM_PROTO_SignData done [00:01:41]FM_MakeSignedData done [00:01:41]CreateOFDProtocolMessage [00:01:41]wFMCommunicate request_size=4 [00:01:41]MH_SAM_APDU [00:01:41]CAPDU: 80 11 00 00 [00:01:41]Write to MH i2c: E2 08 00 23 00 80 11 00 00 00 00 00 00 9D [00:01:41]Write i2c OK [00:01:41]MH_I2C_Read... [00:01:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:41]Read from MH i2c: E2 [00:01:41]MH_I2C_Read... [00:01:41]Read from MH i2c: E2 17 00 [00:01:41]MH_I2C_Read... [00:01:41]Read from MH i2c: E2 17 00 23 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EF [00:01:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:01:41]wFMCommunicate OK [00:01:41]CreateOFDProtocolMessage done [00:01:41]OFDSenderStorePacket 69606 [00:01:41]StoreOFDPacket docnum=69606 [00:01:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 3D 87 04 01 5F 53 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 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 01 00 00 F4 03 04 00 E4 99 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E6 0F 01 00 35 04 06 00 EA 25 92 70 C0 5E D2 29 53 F9 71 0D FD FC [00:01:41]CheckFolder [00:01:41]dirname=/storage/ofd_packets [00:01:41]CheckFolder done [00:01:41]ProducePacketName [00:01:41]name=ofd_packets/00069606 [00:01:41]NVStorageSaveData ofd_packets/00069606 [00:01:41]File name is /storage/ofd_packets/00069606 [00:01:41]Write 298 bytes [00:01:41]NVStorageSaveData done [00:01:41]OFDSenderStorePacket done [00:01:41]KKMCreateOFDPacket done [00:01:41]NVStorageSaveData kkm_last_timestamp [00:01:41]File name is /storage/kkm_last_timestamp [00:01:41]Write 4 bytes [00:01:41]NVStorageSaveData done [00:01:41]ExternCall_PrintAddStr [00:01:41]wPrintStart [00:01:41]Write to MH i2c: 01 00 00 24 00 24 [00:01:41]Write i2c OK [00:01:41]MH_I2C_Read... [00:01:41]Read from MH i2c: 01 [00:01:41]MH_I2C_Read... [00:01:41]Read from MH i2c: 01 07 00 [00:01:41]MH_I2C_Read... [00:01:41]Read from MH i2c: 01 07 00 24 00 00 00 00 00 00 FF 0F 39 [00:01:41]RasterBufferAndPrint [00:01:41]line Счет N : (1)2885346 [00:01:41]line ИНН: 02508201610067 [00:01:41]line Контрольно-Кассовый Чек [00:01:41]line ПРОДАЖА [00:01:41]line ТРК (МРК, ГНК) : 51 [00:01:41]line Товар: 2710194210 [00:01:41]line ДТ-К-5 [00:01:41]line 14.440 * 76.20 [00:01:41]line = 1100.33 [00:01:41]line НДС 12% НСП 1% [00:01:41]line > о реализуемом товаре [00:01:41]line ОКРУГЛЕНИЕ: -0.33 [00:01:41]line ИТОГО: 1100.00 [00:01:41]line Внесено: 1100.00 [00:01:41]line СДАЧА: 0.00 [00:01:41]line НСП 1% : 9.74 [00:01:41]line НДС 12% : 116.85 [00:01:41]line Наличными: 1100.00 [00:01:41]line Безнал.: 0.00 [00:01:41]line Место: АЗС № 85 "Партнер Нефть" [00:01:41]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [00:01:41]line СНО: Общий режим [00:01:41]line Чек 451 21.10.2024 00:01 [00:01:41]line Смена: 193 ФФД: 1.0 [00:01:41]line ЗНМ: 0300000167 [00:01:41]line РНМ: 0000000000156251 [00:01:41]line Версия ККМ: v1.0 [00:01:41]line ФМ: 0000000000963346 [00:01:41]line ФД: 69606 [00:01:41]line ФПД: 257447091552350 [00:01:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T000140&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69606&fm=257447091552350&tin=02508201610067®Number=0000000000156251&sum=110000 [00:01:41]OFD Sender: Processing packet 69606 [packets to send 18, broken 17] [00:01:41]ProducePacketName [00:01:41]name=ofd_packets/00069606 [00:01:41]OFD Sender: To server: pG, [00:01:41]CommunicateWithHost lk.salyk.kg:30040 [00:01:41]ConnectInit lk.salyk.kg [00:01:41]written 0, free lines is 4095 [00:01:41]Connected sock=10 [00:01:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 3D 87 04 01 5F 53 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 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 01 00 00 F4 03 04 00 E4 99 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E6 0F 01 00 35 04 06 00 EA 25 92 70 C0 5E D2 29 53 F9 71 0D FD FC [00:01:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 CE AC 47 00 1D A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E6 0F 01 00 F4 03 04 00 8A 43 15 67 B6 04 01 00 00 A6 47 59 3C 8F D8 47 16 [00:01:42]CommunicateWithHost err = 0 [00:01:42]CheckOFDResponse [00:01:42]1017 (14) - 77093643461234 [00:01:42]1041 (16) - 0000000000963346 [00:01:42]1040 (4) - 69606 [00:01:42]1012 (4) - 20.10.2024 17:53 [00:01:42]1206 (1) - 0 [00:01:42]OFD Sender: Remove packet 69606 [00:01:42]ProducePacketName [00:01:42]name=ofd_packets/00069606 [00:01:42]NVStorageDeleteData [00:01:42]Write to MH i2c: 01 00 00 4F 00 4F [00:01:42]Write i2c OK [00:01:42]MH_I2C_Read... [00:01:42]Read from MH i2c: 01 [00:01:42]MH_I2C_Read... [00:01:42]Read from MH i2c: 01 07 00 [00:01:42]MH_I2C_Read... [00:01:42]Read from MH i2c: 01 07 00 4F 00 00 00 00 00 00 F4 0C 56 [00:01:42]RasterBufferAndPrint [00:01:42]line [00:01:42]line [00:01:42]line [00:01:42]line [00:01:42]line [00:01:42]written 0, free lines is 3322 [00:01:42]MH_Cut [00:01:42]Write to MH i2c: D1 01 00 56 00 01 28 [00:01:42]Write i2c OK [00:01:42]MH_I2C_Read... [00:01:42]Read from MH i2c: D1 [00:01:42]MH_I2C_Read... [00:01:42]Read from MH i2c: D1 01 00 [00:01:42]MH_I2C_Read... [00:01:42]Read from MH i2c: D1 01 00 56 00 00 27 [00:01:42]Write to MH i2c: 01 00 00 57 00 57 [00:01:42]Write i2c OK [00:01:42]MH_I2C_Read... [00:01:42]OFD Sender: No OFD packet to send [00:01:42]*** Cut start [00:01:42]*** Partial cut [00:01:42]*** CUTSNS_PIN = 1 [00:01:43]*** CUTSNS_PIN = 0 [00:01:43]*** Brake cut motor [00:01:43]Read from MH i2c: 01 [00:01:43]MH_I2C_Read... [00:01:43]*** Stop cut motor [00:01:43]*** Cut end [00:01:43]Read from MH i2c: 01 07 00 [00:01:43]MH_I2C_Read... [00:01:43]Read from MH i2c: 01 07 00 57 00 00 00 00 00 00 FF 0F 6C [00:01:43]process_action close_receipt done [00:01:43]requested_data is exist [00:01:43]produce_requested_data [00:01:43]requested_item fm.sn is exist - process it [00:01:43]wFMCommunicate request_size=4 [00:01:43]MH_SAM_APDU [00:01:43]CAPDU: 80 11 00 00 [00:01:43]Write to MH i2c: E2 08 00 58 00 80 11 00 00 00 00 00 00 D2 [00:01:43]Write i2c OK [00:01:43]MH_I2C_Read... [00:01:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:43]Read from MH i2c: E2 [00:01:43]MH_I2C_Read... [00:01:43]Read from MH i2c: E2 17 00 [00:01:43]MH_I2C_Read... [00:01:43]Read from MH i2c: E2 17 00 58 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 24 [00:01:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:01:43]wFMCommunicate OK [00:01:43]requested_item fd.num is exist - process it [00:01:43]SAM_PROTO_GetFieldsCounters [00:01:43]wFMCommunicate request_size=4 [00:01:43]MH_SAM_APDU [00:01:43]CAPDU: 80 13 00 00 [00:01:43]Write to MH i2c: E2 08 00 59 00 80 13 00 00 00 00 00 00 D5 [00:01:43]Write i2c OK [00:01:43]MH_I2C_Read... [00:01:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:01:43]Read from MH i2c: E2 [00:01:43]MH_I2C_Read... [00:01:43]Read from MH i2c: E2 62 00 [00:01:43]MH_I2C_Read... [00:01:43]Read from MH i2c: E2 62 00 59 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E6 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C3 01 00 00 5E 04 04 00 C3 01 00 00 57 04 04 00 C4 01 00 00 19 04 04 00 00 00 00 00 90 00 F3 [00:01:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E6 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C3 01 00 00 5E 04 04 00 C3 01 00 00 57 04 04 00 C4 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:01:43]wFMCommunicate OK [00:01:43]SAM_PROTO_GetFieldsCounters done [00:01:43]requested_item shift.num is exist - process it [00:01:43]requested_item shift.opened is exist - process it [00:01:43]req_shift_opened [00:01:43]FM_GetShiftState [00:01:43]SAM_PROTO_GetShiftState [00:01:43]wFMCommunicate request_size=4 [00:01:43]MH_SAM_APDU [00:01:43]CAPDU: 80 13 01 00 [00:01:43]Write to MH i2c: E2 08 00 5A 00 80 13 01 00 00 00 00 00 D7 [00:01:43]Write i2c OK [00:01:43]MH_I2C_Read... [00:01:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:43]Read from MH i2c: E2 [00:01:43]MH_I2C_Read... [00:01:43]Read from MH i2c: E2 0E 00 [00:01:43]MH_I2C_Read... [00:01:43]Read from MH i2c: E2 0E 00 5A 00 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 DD [00:01:43]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [00:01:43]wFMCommunicate OK [00:01:43]SAM_PROTO_GetShiftState done [00:01:43]FM_GetShiftState done [00:01:43]req_shift_opened done [00:01:43]requested_item shift.open_date is exist - process it [00:01:43]req_shift_open_date [00:01:43]req_shift_open_date done [00:01:43]produce_requested_data done [00:01:43]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69606,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [00:01:43]process_action_free close_receipt [00:01:43]json_value_free [00:01:43]json_value_free done [00:01:43]process_json_proto returns [00:01:43]Send response to host [00:01:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69606,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [00:01:43]free response buf [00:01:43]execute_script done [00:01:43]execute_script returns [00:01:43]free content buf [00:01:43]Sock 8.Close socket [00:01:43]Sock 8.Thread stoped [00:01:47]OFD Sender: No OFD packet to send [00:01:52]OFD Sender: No OFD packet to send [00:01:53]accept exits with 9 [00:01:53]New connection [00:01:53]New thread 3067313508 created [00:01:53]Thread 3067456868 joined [00:01:53]Waiting for new connection... [00:01:53] Sock 9.Parse request [00:01:53]Sock 9.Check first char [00:01:53]Sock 9.First char is OK [00:01:53]request: POST /json_proto HTTP/1.0 [00:01:53]Method: POST [00:01:53]URL: /json_proto [00:01:53]Method is POST - this is cgi request [00:01:53]url: /json_proto [00:01:53]query_string will be loaded in cgi processing [00:01:53]execute_cgi json_proto POST (null) [00:01:53]execute_cgi path=json_proto method=POST [00:01:53]POST find Content-Length [00:01:53]Host: 172.17.50.3:8080 [00:01:53]Content-Length: 686 [00:01:53]Content-Type: application/json [00:01:53] [00:01:53]POST finish read [00:01:53]Found Content-Length = 686 [00:01:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:01:53]execute_script... [00:01: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)2885345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:01:53]POST & json_proto [00:01:53]process_json_proto [00:01:53]json parsed OK: [00:01:53]protocol is kg_v1.0 [00:01:53]action value=close_receipt [00:01:53]process_action close_receipt [00:01:53]cmd_close_receipt [00:01:53]MH_GetDate [00:01:53]Write to MH i2c: F0 00 00 5B 00 4A [00:01:53]Write i2c OK [00:01:53]MH_I2C_Read... [00:01:53]Read from MH i2c: F0 [00:01:53]MH_I2C_Read... [00:01:53]Read from MH i2c: F0 09 00 [00:01:53]MH_I2C_Read... [00:01:53]Read from MH i2c: F0 09 00 5B 00 00 F1 99 15 67 6B 98 1E 66 E0 [00:01:53]GetLastDocTimeStamp 1729468900 [00:01:53]current date 1729468913 [00:01:53]FM_GetShiftState [00:01:53]SAM_PROTO_GetShiftState [00:01:53]wFMCommunicate request_size=4 [00:01:53]MH_SAM_APDU [00:01:53]CAPDU: 80 13 01 00 [00:01:53]Write to MH i2c: E2 08 00 5C 00 80 13 01 00 00 00 00 00 D9 [00:01:53]Write i2c OK [00:01:53]MH_I2C_Read... [00:01:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:53]Read from MH i2c: E2 [00:01:53]MH_I2C_Read... [00:01:53]Read from MH i2c: E2 0E 00 [00:01:53]MH_I2C_Read... [00:01:53]Read from MH i2c: E2 0E 00 5C 00 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 DF [00:01:53]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [00:01:53]wFMCommunicate OK [00:01:53]SAM_PROTO_GetShiftState done [00:01:53]FM_GetShiftState done [00:01:53]opened in 1729383220 [00:01:53]opened+sec_in_day 1729469620 [00:01:53]quantity*price = 100011 [00:01:53]sum+1 = 100013 [00:01:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 452 21.10.2024 00:01 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69607 ФПД: 26431236574262 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T000153&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69607&fm=26431236574262&tin=02508201610067®Number=0000000000156251&sum=100000 [00:01:54]StoreToDocumentArchive [00:01:54]shift 193 fd 69607 [00:01:54]save to /storage/0193/doc_00069607 [00:01:54]save last doc name /storage/0193/doc_00069607 to /storage/kkm_last_doc_name [00:01:54]save OK [00:01:54]Clear old archive folders... [00:01:54]ProcessDocumentItem done err = 0, tmpTLVsize=250 [00:01:54]tlvbuf is 00C2B1F0 [00:01:54]SAM_PROTO_ClearQueue [00:01:54]wFMCommunicate request_size=4 [00:01:54]MH_SAM_APDU [00:01:54]CAPDU: 80 09 00 00 [00:01:54]Write to MH i2c: E2 08 00 69 00 80 09 00 00 00 00 00 00 DB [00:01:54]Write i2c OK [00:01:54]MH_I2C_Read... [00:01:54]Read from MH i2c: E2 [00:01:54]MH_I2C_Read... [00:01:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:01:54]Read from MH i2c: E2 03 00 [00:01:54]MH_I2C_Read... [00:01:54]Read from MH i2c: E2 03 00 69 00 00 90 00 DD [00:01:54]RAPDU: 90 00 [00:01:54]wFMCommunicate OK [00:01:54]SAM_PROTO_ClearQueue done [00:01:54]KKMCreateOFDPacket [00:01:54]OFDProtocolAddRootSTLVToBuf [00:01:54]FM_MakeSignedData [00:01:54]FM_MakeSignedData [00:01:54]SAM_PROTO_SignData [00:01:54]wFMCommunicate request_size=4 [00:01:54]MH_SAM_APDU [00:01:54]CAPDU: 80 0D 01 02 [00:01:54]Write to MH i2c: E2 08 00 6A 00 80 0D 01 02 00 00 00 00 E3 [00:01:54]Write i2c OK [00:01:54]MH_I2C_Read... [00:01:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:01:54]Read from MH i2c: E2 [00:01:54]MH_I2C_Read... [00:01:54]Read from MH i2c: E2 03 00 [00:01:54]MH_I2C_Read... [00:01:54]Read from MH i2c: E2 03 00 6A 00 00 90 00 DE [00:01:54]RAPDU: 90 00 [00:01:54]wFMCommunicate OK [00:01:54]wFMCommunicate request_size=255 [00:01:54]MH_SAM_APDU [00:01:54]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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 01 00 00 F4 03 04 00 F1 99 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E7 0F 01 00 35 04 06 00 18 0A [00:01:54]Write to MH i2c: E2 02 01 6B 00 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 01 00 00 F4 03 04 00 F1 99 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E7 0F 01 00 35 04 06 00 18 0A 00 00 EC [00:01:54]Write i2c OK [00:01:54]MH_I2C_Read... [00:01:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:54]Read from MH i2c: E2 [00:01:54]MH_I2C_Read... [00:01:54]Read from MH i2c: E2 03 00 [00:01:54]MH_I2C_Read... [00:01:54]Read from MH i2c: E2 03 00 6B 00 00 90 00 DF [00:01:54]RAPDU: 90 00 [00:01:54]wFMCommunicate OK [00:01:54]wFMCommunicate request_size=9 [00:01:54]MH_SAM_APDU [00:01:54]CAPDU: 80 0D 02 02 04 00 77 8C 36 [00:01:54]Write to MH i2c: E2 0C 00 6C 00 80 0D 02 02 04 00 00 77 8C 36 00 00 27 [00:01:54]Write i2c OK [00:01:54]MH_I2C_Read... [00:01:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:54]Read from MH i2c: E2 [00:01:54]MH_I2C_Read... [00:01:54]Read from MH i2c: E2 03 00 [00:01:54]MH_I2C_Read... [00:01:54]Read from MH i2c: E2 03 00 6C 00 00 90 00 E0 [00:01:54]RAPDU: 90 00 [00:01:54]wFMCommunicate OK [00:01:54]wFMCommunicate request_size=4 [00:01:54]MH_SAM_APDU [00:01:54]CAPDU: 80 0D 03 02 [00:01:54]Write to MH i2c: E2 08 00 6D 00 80 0D 03 02 00 00 00 00 E8 [00:01:54]Write i2c OK [00:01:54]MH_I2C_Read... [00:01:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:01:54]Read from MH i2c: E2 [00:01:54]MH_I2C_Read... [00:01:54]Read from MH i2c: E2 0B 00 [00:01:54]MH_I2C_Read... [00:01:54]Read from MH i2c: E2 0B 00 6D 00 00 97 38 D8 21 36 14 B0 35 90 00 E0 [00:01:54]RAPDU: 97 38 D8 21 36 14 B0 35 90 00 [00:01:54]wFMCommunicate OK [00:01:54]SAM_PROTO_SignData done [00:01:54]FM_MakeSignedData done [00:01:54]CreateOFDProtocolMessage [00:01:54]wFMCommunicate request_size=4 [00:01:54]MH_SAM_APDU [00:01:54]CAPDU: 80 11 00 00 [00:01:54]Write to MH i2c: E2 08 00 6E 00 80 11 00 00 00 00 00 00 E8 [00:01:54]Write i2c OK [00:01:54]MH_I2C_Read... [00:01:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:54]Read from MH i2c: E2 [00:01:54]MH_I2C_Read... [00:01:54]Read from MH i2c: E2 17 00 [00:01:54]MH_I2C_Read... [00:01:54]Read from MH i2c: E2 17 00 6E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3A [00:01:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:01:54]wFMCommunicate OK [00:01:54]CreateOFDProtocolMessage done [00:01:54]OFDSenderStorePacket 69607 [00:01:54]StoreOFDPacket docnum=69607 [00:01:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 E3 9B 06 01 95 E5 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 01 00 00 F4 03 04 00 F1 99 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E7 0F 01 00 35 04 06 00 18 0A 00 77 8C 36 97 38 D8 21 36 14 B0 35 [00:01:54]CheckFolder [00:01:54]dirname=/storage/ofd_packets [00:01:54]CheckFolder done [00:01:54]ProducePacketName [00:01:54]name=ofd_packets/00069607 [00:01:54]NVStorageSaveData ofd_packets/00069607 [00:01:54]File name is /storage/ofd_packets/00069607 [00:01:54]Write 300 bytes [00:01:54]NVStorageSaveData done [00:01:54]OFDSenderStorePacket done [00:01:54]KKMCreateOFDPacket done [00:01:54]NVStorageSaveData kkm_last_timestamp [00:01:54]File name is /storage/kkm_last_timestamp [00:01:54]Write 4 bytes [00:01:54]NVStorageSaveData done [00:01:54]ExternCall_PrintAddStr [00:01:54]wPrintStart [00:01:54]Write to MH i2c: 01 00 00 6F 00 6F [00:01:54]Write i2c OK [00:01:54]MH_I2C_Read... [00:01:54]Read from MH i2c: 01 [00:01:54]MH_I2C_Read... [00:01:54]Read from MH i2c: 01 07 00 [00:01:54]MH_I2C_Read... [00:01:54]Read from MH i2c: 01 07 00 6F 00 00 00 00 00 00 FF 0F 84 [00:01:54]RasterBufferAndPrint [00:01:54]line Счет N : (1)2885345 [00:01:54]line ИНН: 02508201610067 [00:01:54]line Контрольно-Кассовый Чек [00:01:54]line ПРОДАЖА [00:01:54]line ТРК (МРК, ГНК) : 71 [00:01:54]line Товар: 2711129700 [00:01:54]line ГАЗ-К-3 [00:01:54]line 25.710 * 38.90 [00:01:54]line = 1000.12 [00:01:54]line НДС 12% НСП 1% [00:01:54]line > о реализуемом товаре [00:01:54]line ОКРУГЛЕНИЕ: -0.12 [00:01:54]line ИТОГО: 1000.00 [00:01:54]line Внесено: 1000.00 [00:01:54]line СДАЧА: 0.00 [00:01:54]line НСП 1% : 8.85 [00:01:54]line НДС 12% : 106.21 [00:01:54]line Наличными: 1000.00 [00:01:54]line Безнал.: 0.00 [00:01:54]line Место: АЗС № 85 "Партнер Нефть" [00:01:54]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [00:01:54]line СНО: Общий режим [00:01:54]line Чек 452 21.10.2024 00:01 [00:01:54]line Смена: 193 ФФД: 1.0 [00:01:54]line ЗНМ: 0300000167 [00:01:54]line РНМ: 0000000000156251 [00:01:54]line Версия ККМ: v1.0 [00:01:54]line ФМ: 0000000000963346 [00:01:54]line ФД: 69607 [00:01:54]line ФПД: 26431236574262 [00:01:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T000153&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69607&fm=26431236574262&tin=02508201610067®Number=0000000000156251&sum=100000 [00:01:54]written 0, free lines is 4095 [00:01:54]OFD Sender: Processing packet 69607 [packets to send 18, broken 17] [00:01:54]ProducePacketName [00:01:54]name=ofd_packets/00069607 [00:01:54]OFD Sender: To server: pG, [00:01:54]CommunicateWithHost lk.salyk.kg:30040 [00:01:54]ConnectInit lk.salyk.kg [00:01:54]Connected sock=10 [00:01:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 E3 9B 06 01 95 E5 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 01 00 00 F4 03 04 00 F1 99 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E7 0F 01 00 35 04 06 00 18 0A 00 77 8C 36 97 38 D8 21 36 14 B0 35 [00:01:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 80 FA 47 00 45 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E7 0F 01 00 F4 03 04 00 97 43 15 67 B6 04 01 00 00 E8 77 B9 19 D3 C6 A6 F0 [00:01:55]CommunicateWithHost err = 0 [00:01:55]CheckOFDResponse [00:01:55]1017 (14) - 77093643461234 [00:01:55]1041 (16) - 0000000000963346 [00:01:55]1040 (4) - 69607 [00:01:55]1012 (4) - 20.10.2024 17:53 [00:01:55]1206 (1) - 0 [00:01:55]OFD Sender: Remove packet 69607 [00:01:55]ProducePacketName [00:01:55]name=ofd_packets/00069607 [00:01:55]NVStorageDeleteData [00:01:55]Write to MH i2c: 01 00 00 9A 00 9A [00:01:55]Write i2c OK [00:01:55]MH_I2C_Read... [00:01:55]Read from MH i2c: 01 [00:01:55]MH_I2C_Read... [00:01:55]Read from MH i2c: 01 07 00 [00:01:55]MH_I2C_Read... [00:01:55]Read from MH i2c: 01 07 00 9A 00 00 00 00 00 00 F9 0C A6 [00:01:55]RasterBufferAndPrint [00:01:55]line [00:01:55]line [00:01:55]line [00:01:55]line [00:01:55]line [00:01:55]written 0, free lines is 3331 [00:01:55]MH_Cut [00:01:55]Write to MH i2c: D1 01 00 A1 00 01 73 [00:01:55]Write i2c OK [00:01:55]MH_I2C_Read... [00:01:55]Read from MH i2c: D1 [00:01:55]MH_I2C_Read... [00:01:55]Read from MH i2c: D1 01 00 [00:01:55]MH_I2C_Read... [00:01:55]Read from MH i2c: D1 01 00 A1 00 00 72 [00:01:55]Write to MH i2c: 01 00 00 A2 00 A2 [00:01:55]Write i2c OK [00:01:55]MH_I2C_Read... [00:01:55]OFD Sender: No OFD packet to send [00:01:55]*** Cut start [00:01:55]*** Partial cut [00:01:55]*** CUTSNS_PIN = 1 [00:01:55]*** CUTSNS_PIN = 0 [00:01:56]*** Brake cut motor [00:01:56]Read from MH i2c: 01 [00:01:56]MH_I2C_Read... [00:01:56]*** Stop cut motor [00:01:56]*** Cut end [00:01:56]Read from MH i2c: 01 07 00 [00:01:56]MH_I2C_Read... [00:01:56]Read from MH i2c: 01 07 00 A2 00 00 00 00 00 00 FF 0F B7 [00:01:56]process_action close_receipt done [00:01:56]requested_data is exist [00:01:56]produce_requested_data [00:01:56]requested_item fm.sn is exist - process it [00:01:56]wFMCommunicate request_size=4 [00:01:56]MH_SAM_APDU [00:01:56]CAPDU: 80 11 00 00 [00:01:56]Write to MH i2c: E2 08 00 A3 00 80 11 00 00 00 00 00 00 1D [00:01:56]Write i2c OK [00:01:56]MH_I2C_Read... [00:01:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:56]Read from MH i2c: E2 [00:01:56]MH_I2C_Read... [00:01:56]Read from MH i2c: E2 17 00 [00:01:56]MH_I2C_Read... [00:01:56]Read from MH i2c: E2 17 00 A3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6F [00:01:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:01:56]wFMCommunicate OK [00:01:56]requested_item fd.num is exist - process it [00:01:56]SAM_PROTO_GetFieldsCounters [00:01:56]wFMCommunicate request_size=4 [00:01:56]MH_SAM_APDU [00:01:56]CAPDU: 80 13 00 00 [00:01:56]Write to MH i2c: E2 08 00 A4 00 80 13 00 00 00 00 00 00 20 [00:01:56]Write i2c OK [00:01:56]MH_I2C_Read... [00:01:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:01:56]Read from MH i2c: E2 [00:01:56]MH_I2C_Read... [00:01:56]Read from MH i2c: E2 62 00 [00:01:56]MH_I2C_Read... [00:01:56]Read from MH i2c: E2 62 00 A4 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E7 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C4 01 00 00 5E 04 04 00 C4 01 00 00 57 04 04 00 C5 01 00 00 19 04 04 00 00 00 00 00 90 00 42 [00:01:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E7 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C4 01 00 00 5E 04 04 00 C4 01 00 00 57 04 04 00 C5 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:01:56]wFMCommunicate OK [00:01:56]SAM_PROTO_GetFieldsCounters done [00:01:56]requested_item shift.num is exist - process it [00:01:56]requested_item shift.opened is exist - process it [00:01:56]req_shift_opened [00:01:56]FM_GetShiftState [00:01:56]SAM_PROTO_GetShiftState [00:01:56]wFMCommunicate request_size=4 [00:01:56]MH_SAM_APDU [00:01:56]CAPDU: 80 13 01 00 [00:01:56]Write to MH i2c: E2 08 00 A5 00 80 13 01 00 00 00 00 00 22 [00:01:56]Write i2c OK [00:01:56]MH_I2C_Read... [00:01:56]Read from MH i2c: E2 [00:01:56]MH_I2C_Read... [00:01:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:56]Read from MH i2c: E2 0E 00 [00:01:56]MH_I2C_Read... [00:01:56]Read from MH i2c: E2 0E 00 A5 00 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 28 [00:01:56]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [00:01:56]wFMCommunicate OK [00:01:56]SAM_PROTO_GetShiftState done [00:01:56]FM_GetShiftState done [00:01:56]req_shift_opened done [00:01:56]requested_item shift.open_date is exist - process it [00:01:56]req_shift_open_date [00:01:56]req_shift_open_date done [00:01:56]produce_requested_data done [00:01:56]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69607,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [00:01:56]process_action_free close_receipt [00:01:56]json_value_free [00:01:56]json_value_free done [00:01:56]process_json_proto returns [00:01:56]Send response to host [00:01:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69607,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [00:01:56]free response buf [00:01:56]execute_script done [00:01:56]execute_script returns [00:01:56]free content buf [00:01:56]Sock 9.Close socket [00:01:56]Sock 9.Thread stoped [00:01:57]accept exits with 8 [00:01:57]New connection [00:01:57]New thread 3067456868 created [00:01:57]Thread 3067313508 joined [00:01:57]Waiting for new connection... [00:01:57] Sock 8.Parse request [00:01:57]Sock 8.Check first char [00:01:57]Sock 8.First char is OK [00:01:57]request: POST /json_proto HTTP/1.0 [00:01:57]Method: POST [00:01:57]URL: /json_proto [00:01:57]Method is POST - this is cgi request [00:01:57]url: /json_proto [00:01:57]query_string will be loaded in cgi processing [00:01:57]execute_cgi json_proto POST (null) [00:01:57]execute_cgi path=json_proto method=POST [00:01:57]POST find Content-Length [00:01:57]Host: 172.17.50.3:8080 [00:01:57]Content-Length: 678 [00:01:57]Content-Type: application/json [00:01:57] [00:01:57]POST finish read [00:01:57]Found Content-Length = 678 [00:01:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:01:57]execute_script... [00:01: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)2885347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:01:57]POST & json_proto [00:01:57]process_json_proto [00:01:57]json parsed OK: [00:01:57]protocol is kg_v1.0 [00:01:57]action value=close_receipt [00:01:57]process_action close_receipt [00:01:57]cmd_close_receipt [00:01:57]MH_GetDate [00:01:57]Write to MH i2c: F0 00 00 A6 00 95 [00:01:57]Write i2c OK [00:01:57]MH_I2C_Read... [00:01:57]Read from MH i2c: F0 [00:01:57]MH_I2C_Read... [00:01:57]Read from MH i2c: F0 09 00 [00:01:57]MH_I2C_Read... [00:01:57]Read from MH i2c: F0 09 00 A6 00 00 F5 99 15 67 6B 98 1E 66 2F [00:01:57]GetLastDocTimeStamp 1729468913 [00:01:57]current date 1729468917 [00:01:57]FM_GetShiftState [00:01:57]SAM_PROTO_GetShiftState [00:01:57]wFMCommunicate request_size=4 [00:01:57]MH_SAM_APDU [00:01:57]CAPDU: 80 13 01 00 [00:01:57]Write to MH i2c: E2 08 00 A7 00 80 13 01 00 00 00 00 00 24 [00:01:57]Write i2c OK [00:01:57]MH_I2C_Read... [00:01:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:57]Read from MH i2c: E2 [00:01:57]MH_I2C_Read... [00:01:57]Read from MH i2c: E2 0E 00 [00:01:57]MH_I2C_Read... [00:01:57]Read from MH i2c: E2 0E 00 A7 00 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 2A [00:01:57]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [00:01:57]wFMCommunicate OK [00:01:57]SAM_PROTO_GetShiftState done [00:01:57]FM_GetShiftState done [00:01:57]opened in 1729383220 [00:01:57]opened+sec_in_day 1729469620 [00:01:57]quantity*price = 50041 [00:01:57]sum+1 = 50042 [00:01:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 453 21.10.2024 00:01 Смена: 193 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69608 ФПД: 264284181867648 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T000157&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69608&fm=264284181867648&tin=02508201610067®Number=0000000000156251&sum=50000 [00:01:58]StoreToDocumentArchive [00:01:58]shift 193 fd 69608 [00:01:58]save to /storage/0193/doc_00069608 [00:01:58]save last doc name /storage/0193/doc_00069608 to /storage/kkm_last_doc_name [00:01:58]save OK [00:01:58]Clear old archive folders... [00:01:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:01:58]tlvbuf is 00C4AEC0 [00:01:58]SAM_PROTO_ClearQueue [00:01:58]wFMCommunicate request_size=4 [00:01:58]MH_SAM_APDU [00:01:58]CAPDU: 80 09 00 00 [00:01:58]Write to MH i2c: E2 08 00 B4 00 80 09 00 00 00 00 00 00 26 [00:01:58]Write i2c OK [00:01:58]MH_I2C_Read... [00:01:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:01:58]Read from MH i2c: E2 [00:01:58]MH_I2C_Read... [00:01:58]Read from MH i2c: E2 03 00 [00:01:58]MH_I2C_Read... [00:01:58]Read from MH i2c: E2 03 00 B4 00 00 90 00 28 [00:01:58]RAPDU: 90 00 [00:01:58]wFMCommunicate OK [00:01:58]SAM_PROTO_ClearQueue done [00:01:58]KKMCreateOFDPacket [00:01:58]OFDProtocolAddRootSTLVToBuf [00:01:58]FM_MakeSignedData [00:01:58]FM_MakeSignedData [00:01:58]SAM_PROTO_SignData [00:01:58]wFMCommunicate request_size=4 [00:01:58]MH_SAM_APDU [00:01:58]CAPDU: 80 0D 01 02 [00:01:58]Write to MH i2c: E2 08 00 B5 00 80 0D 01 02 00 00 00 00 2E [00:01:58]Write i2c OK [00:01:58]MH_I2C_Read... [00:01:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:01:58]Read from MH i2c: E2 [00:01:58]MH_I2C_Read... [00:01:58]Read from MH i2c: E2 03 00 [00:01:58]MH_I2C_Read... [00:01:58]Read from MH i2c: E2 03 00 B5 00 00 90 00 29 [00:01:58]RAPDU: 90 00 [00:01:58]wFMCommunicate OK [00:01:58]wFMCommunicate request_size=255 [00:01:58]MH_SAM_APDU [00:01:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 01 00 00 F4 03 04 00 F5 99 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E8 0F 01 00 35 04 06 00 F0 [00:01:58]Write to MH i2c: E2 02 01 B6 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 01 00 00 F4 03 04 00 F5 99 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E8 0F 01 00 35 04 06 00 F0 00 00 30 [00:01:58]Write i2c OK [00:01:58]MH_I2C_Read... [00:01:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:59]Read from MH i2c: E2 [00:01:59]MH_I2C_Read... [00:01:59]Read from MH i2c: E2 03 00 [00:01:59]MH_I2C_Read... [00:01:59]Read from MH i2c: E2 03 00 B6 00 00 90 00 2A [00:01:59]RAPDU: 90 00 [00:01:59]wFMCommunicate OK [00:01:59]wFMCommunicate request_size=10 [00:01:59]MH_SAM_APDU [00:01:59]CAPDU: 80 0D 02 02 05 5D 74 C7 AC 80 [00:01:59]Write to MH i2c: E2 0D 00 B7 00 80 0D 02 02 05 00 5D 74 C7 AC 80 00 00 FF [00:01:59]Write i2c OK [00:01:59]MH_I2C_Read... [00:01:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:59]Read from MH i2c: E2 [00:01:59]MH_I2C_Read... [00:01:59]Read from MH i2c: E2 03 00 [00:01:59]MH_I2C_Read... [00:01:59]Read from MH i2c: E2 03 00 B7 00 00 90 00 2B [00:01:59]RAPDU: 90 00 [00:01:59]wFMCommunicate OK [00:01:59]wFMCommunicate request_size=4 [00:01:59]MH_SAM_APDU [00:01:59]CAPDU: 80 0D 03 02 [00:01:59]Write to MH i2c: E2 08 00 B8 00 80 0D 03 02 00 00 00 00 33 [00:01:59]Write i2c OK [00:01:59]MH_I2C_Read... [00:01:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:01:59]Read from MH i2c: E2 [00:01:59]MH_I2C_Read... [00:01:59]Read from MH i2c: E2 0B 00 [00:01:59]MH_I2C_Read... [00:01:59]Read from MH i2c: E2 0B 00 B8 00 00 A6 1E F8 E8 A5 EA 5B BB 90 00 7D [00:01:59]RAPDU: A6 1E F8 E8 A5 EA 5B BB 90 00 [00:01:59]wFMCommunicate OK [00:01:59]SAM_PROTO_SignData done [00:01:59]FM_MakeSignedData done [00:01:59]CreateOFDProtocolMessage [00:01:59]wFMCommunicate request_size=4 [00:01:59]MH_SAM_APDU [00:01:59]CAPDU: 80 11 00 00 [00:01:59]Write to MH i2c: E2 08 00 B9 00 80 11 00 00 00 00 00 00 33 [00:01:59]Write i2c OK [00:01:59]MH_I2C_Read... [00:01:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:59]Read from MH i2c: E2 [00:01:59]MH_I2C_Read... [00:01:59]Read from MH i2c: E2 17 00 [00:01:59]MH_I2C_Read... [00:01:59]Read from MH i2c: E2 17 00 B9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 85 [00:01:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:01:59]wFMCommunicate OK [00:01:59]CreateOFDProtocolMessage done [00:01:59]OFDSenderStorePacket 69608 [00:01:59]StoreOFDPacket docnum=69608 [00:01:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 73 F0 07 01 EB 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 01 00 00 F4 03 04 00 F5 99 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E8 0F 01 00 35 04 06 00 F0 5D 74 C7 AC 80 A6 1E F8 E8 A5 EA 5B BB [00:01:59]CheckFolder [00:01:59]dirname=/storage/ofd_packets [00:01:59]CheckFolder done [00:01:59]ProducePacketName [00:01:59]name=ofd_packets/00069608 [00:01:59]NVStorageSaveData ofd_packets/00069608 [00:01:59]File name is /storage/ofd_packets/00069608 [00:01:59]Write 301 bytes [00:01:59]NVStorageSaveData done [00:01:59]OFDSenderStorePacket done [00:01:59]KKMCreateOFDPacket done [00:01:59]NVStorageSaveData kkm_last_timestamp [00:01:59]File name is /storage/kkm_last_timestamp [00:01:59]Write 4 bytes [00:01:59]NVStorageSaveData done [00:01:59]ExternCall_PrintAddStr [00:01:59]wPrintStart [00:01:59]Write to MH i2c: 01 00 00 BA 00 BA [00:01:59]Write i2c OK [00:01:59]MH_I2C_Read... [00:01:59]Read from MH i2c: 01 [00:01:59]MH_I2C_Read... [00:01:59]Read from MH i2c: 01 07 00 [00:01:59]MH_I2C_Read... [00:01:59]Read from MH i2c: 01 07 00 BA 00 00 00 00 00 00 FF 0F CF [00:01:59]RasterBufferAndPrint [00:01:59]line Счет N : (1)2885347 [00:01:59]line ИНН: 02508201610067 [00:01:59]line Контрольно-Кассовый Чек [00:01:59]line ПРОДАЖА [00:01:59]line ТРК (МРК, ГНК) : 32 [00:01:59]line Товар: 2710124130 [00:01:59]line Аи-92-К-5 [00:01:59]line 7.480 * 66.90 [00:01:59]line = 500.41 [00:01:59]line НДС 12% НСП 1% [00:01:59]line > о реализуемом товаре [00:01:59]line ОКРУГЛЕНИЕ: -0.41 [00:01:59]line ИТОГО: 500.00 [00:01:59]line Внесено: 500.00 [00:01:59]line СДАЧА: 0.00 [00:01:59]line НСП 1% : 4.43 [00:01:59]line НДС 12% : 53.14 [00:01:59]line Наличными: 500.00 [00:01:59]line Безнал.: 0.00 [00:01:59]line Место: АЗС № 85 "Партнер Нефть" [00:01:59]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [00:01:59]line СНО: Общий режим [00:01:59]line Чек 453 21.10.2024 00:01 [00:01:59]line Смена: 193 ФФД: 1.0 [00:01:59]line ЗНМ: 0300000167 [00:01:59]line РНМ: 0000000000156251 [00:01:59]line Версия ККМ: v1.0 [00:01:59]line ФМ: 0000000000963346 [00:01:59]line ФД: 69608 [00:01:59]line ФПД: 264284181867648 [00:01:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T000157&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69608&fm=264284181867648&tin=02508201610067®Number=0000000000156251&sum=50000 [00:01:59]OFD Sender: Processing packet 69608 [packets to send 18, broken 17] [00:01:59]ProducePacketName [00:01:59]name=ofd_packets/00069608 [00:01:59]OFD Sender: To server: pG, [00:01:59]CommunicateWithHost lk.salyk.kg:30040 [00:01:59]ConnectInit lk.salyk.kg [00:01:59]written 0, free lines is 4095 [00:01:59]Connected sock=10 [00:01:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 73 F0 07 01 EB 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 01 00 00 F4 03 04 00 F5 99 15 67 0E 04 04 00 C1 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E8 0F 01 00 35 04 06 00 F0 5D 74 C7 AC 80 A6 1E F8 E8 A5 EA 5B BB [00:01:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 57 22 47 00 22 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E8 0F 01 00 F4 03 04 00 9B 43 15 67 B6 04 01 00 00 83 E3 C2 84 44 B9 00 CD [00:01:59]CommunicateWithHost err = 0 [00:01:59]CheckOFDResponse [00:01:59]1017 (14) - 77093643461234 [00:01:59]1041 (16) - 0000000000963346 [00:01:59]1040 (4) - 69608 [00:01:59]1012 (4) - 20.10.2024 17:53 [00:01:59]1206 (1) - 0 [00:01:59]OFD Sender: Remove packet 69608 [00:01:59]ProducePacketName [00:01:59]name=ofd_packets/00069608 [00:01:59]NVStorageDeleteData [00:02:00]Write to MH i2c: 01 00 00 E5 00 E5 [00:02:00]Write i2c OK [00:02:00]MH_I2C_Read... [00:02:00]Read from MH i2c: 01 [00:02:00]MH_I2C_Read... [00:02:00]Read from MH i2c: 01 07 00 [00:02:00]MH_I2C_Read... [00:02:00]Read from MH i2c: 01 07 00 E5 00 00 00 00 00 00 01 0D FA [00:02:00]RasterBufferAndPrint [00:02:00]line [00:02:00]line [00:02:00]line [00:02:00]line [00:02:00]line [00:02:00]written 0, free lines is 3347 [00:02:00]MH_Cut [00:02:00]Write to MH i2c: D1 01 00 EC 00 01 BE [00:02:00]Write i2c OK [00:02:00]MH_I2C_Read... [00:02:00]Read from MH i2c: D1 [00:02:00]MH_I2C_Read... [00:02:00]Read from MH i2c: D1 01 00 [00:02:00]MH_I2C_Read... [00:02:00]Read from MH i2c: D1 01 00 EC 00 00 BD [00:02:00]Write to MH i2c: 01 00 00 ED 00 ED [00:02:00]Write i2c OK [00:02:00]MH_I2C_Read... [00:02:00]OFD Sender: No OFD packet to send [00:02:00]*** Cut start [00:02:00]*** Partial cut [00:02:00]*** CUTSNS_PIN = 1 [00:02:00]*** CUTSNS_PIN = 0 [00:02:01]*** Brake cut motor [00:02:01]Read from MH i2c: 01 [00:02:01]MH_I2C_Read... [00:02:01]*** Stop cut motor [00:02:01]*** Cut end [00:02:01]Read from MH i2c: 01 07 00 [00:02:01]MH_I2C_Read... [00:02:01]Read from MH i2c: 01 07 00 ED 00 00 00 00 00 00 FF 0F 02 [00:02:01]process_action close_receipt done [00:02:01]requested_data is exist [00:02:01]produce_requested_data [00:02:01]requested_item fm.sn is exist - process it [00:02:01]wFMCommunicate request_size=4 [00:02:01]MH_SAM_APDU [00:02:01]CAPDU: 80 11 00 00 [00:02:01]Write to MH i2c: E2 08 00 EE 00 80 11 00 00 00 00 00 00 68 [00:02:01]Write i2c OK [00:02:01]MH_I2C_Read... [00:02:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:02:01]Read from MH i2c: E2 [00:02:01]MH_I2C_Read... [00:02:01]Read from MH i2c: E2 17 00 [00:02:01]MH_I2C_Read... [00:02:01]Read from MH i2c: E2 17 00 EE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BA [00:02:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:02:01]wFMCommunicate OK [00:02:01]requested_item fd.num is exist - process it [00:02:01]SAM_PROTO_GetFieldsCounters [00:02:01]wFMCommunicate request_size=4 [00:02:01]MH_SAM_APDU [00:02:01]CAPDU: 80 13 00 00 [00:02:01]Write to MH i2c: E2 08 00 EF 00 80 13 00 00 00 00 00 00 6B [00:02:01]Write i2c OK [00:02:01]MH_I2C_Read... [00:02:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:02:01]Read from MH i2c: E2 [00:02:01]MH_I2C_Read... [00:02:01]Read from MH i2c: E2 62 00 [00:02:01]MH_I2C_Read... [00:02:01]Read from MH i2c: E2 62 00 EF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E8 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C5 01 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C6 01 00 00 19 04 04 00 00 00 00 00 90 00 91 [00:02:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E8 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C5 01 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C6 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:02:01]wFMCommunicate OK [00:02:01]SAM_PROTO_GetFieldsCounters done [00:02:01]requested_item shift.num is exist - process it [00:02:01]requested_item shift.opened is exist - process it [00:02:01]req_shift_opened [00:02:01]FM_GetShiftState [00:02:01]SAM_PROTO_GetShiftState [00:02:01]wFMCommunicate request_size=4 [00:02:01]MH_SAM_APDU [00:02:01]CAPDU: 80 13 01 00 [00:02:01]Write to MH i2c: E2 08 00 F0 00 80 13 01 00 00 00 00 00 6D [00:02:01]Write i2c OK [00:02:01]MH_I2C_Read... [00:02:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:02:01]Read from MH i2c: E2 [00:02:01]MH_I2C_Read... [00:02:01]Read from MH i2c: E2 0E 00 [00:02:01]MH_I2C_Read... [00:02:01]Read from MH i2c: E2 0E 00 F0 00 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 73 [00:02:01]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [00:02:01]wFMCommunicate OK [00:02:01]SAM_PROTO_GetShiftState done [00:02:01]FM_GetShiftState done [00:02:01]req_shift_opened done [00:02:01]requested_item shift.open_date is exist - process it [00:02:01]req_shift_open_date [00:02:01]req_shift_open_date done [00:02:01]produce_requested_data done [00:02:01]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69608,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [00:02:01]process_action_free close_receipt [00:02:01]json_value_free [00:02:01]json_value_free done [00:02:01]process_json_proto returns [00:02:01]Send response to host [00:02:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69608,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [00:02:01]free response buf [00:02:01]execute_script done [00:02:01]execute_script returns [00:02:01]free content buf [00:02:01]Sock 8.Close socket [00:02:01]Sock 8.Thread stoped [00:02:05]OFD Sender: No OFD packet to send [00:02:10]OFD Sender: No OFD packet to send [00:02:15]OFD Sender: No OFD packet to send [00:02:20]OFD Sender: No OFD packet to send [00:02:25]OFD Sender: No OFD packet to send [00:02:30]OFD Sender: No OFD packet to send [00:02:35]OFD Sender: No OFD packet to send [00:02:40]OFD Sender: No OFD packet to send [00:02:45]OFD Sender: No OFD packet to send [00:02:50]OFD Sender: No OFD packet to send [00:02:55]OFD Sender: No OFD packet to send [00:03:00]OFD Sender: No OFD packet to send [00:03:05]OFD Sender: No OFD packet to send [00:03:10]OFD Sender: No OFD packet to send [00:03:15]OFD Sender: No OFD packet to send [00:03:16]int [00:03:16]Write to MH i2c: 01 00 00 F1 00 F1 [00:03:16]*** FLAG_PRN_PAP1 set [00:03:16]Write i2c OK [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: 01 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: 01 07 00 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: 01 07 00 F1 00 00 01 00 00 00 FF 0F 07 [00:03:16]state=0 [00:03:16]No paper [00:03:16]int [00:03:16]Write to MH i2c: 01 00 00 F2 00 F2 [00:03:16]*** FLAG_PRN_PAP2 set [00:03:16]Write i2c OK [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: 01 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: 01 07 00 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: 01 07 00 F2 00 00 03 00 00 00 FF 0F 0A [00:03:16]state=0 [00:03:16]No paper [00:03:16]Cover opened [00:03:16]int [00:03:16]Write to MH i2c: 01 00 00 F3 00 F3 [00:03:16]*** FLAG_PRN_PAP2 reset [00:03:16]Write i2c OK [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: 01 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: 01 07 00 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: 01 07 00 F3 00 00 01 00 00 00 FF 0F 09 [00:03:16]state=3 [00:03:16]No paper [00:03:16]Cover closed [00:03:16]int [00:03:16]Write to MH i2c: 01 00 00 F4 00 F4 [00:03:16]*** FLAG_PRN_PAP2 set [00:03:16]Write i2c OK [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: 01 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: 01 07 00 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: 01 07 00 F4 00 00 03 00 00 00 FF 0F 0C [00:03:16]state=0 [00:03:16]No paper [00:03:16]Cover opened [00:03:16]int [00:03:16]Write to MH i2c: 01 00 00 F5 00 F5 [00:03:16]*** FLAG_PRN_PAP2 reset [00:03:16]Write i2c OK [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: 01 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: 01 07 00 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: 01 07 00 F5 00 00 01 00 00 00 FF 0F 0B [00:03:16]state=3 [00:03:16]No paper [00:03:16]Cover closed [00:03:16]int [00:03:16]Write to MH i2c: 01 00 00 F6 00 F6 [00:03:16]*** FLAG_PRN_PAP2 set [00:03:16]Write i2c OK [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: 01 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: 01 07 00 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: 01 07 00 F6 00 00 03 00 00 00 FF 0F 0E [00:03:16]state=0 [00:03:16]No paper [00:03:16]Cover opened [00:03:16]int [00:03:16]Write to MH i2c: 01 00 00 F7 00 F7 [00:03:16]*** FLAG_PRN_PAP2 reset [00:03:16]Write i2c OK [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: 01 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: 01 07 00 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: 01 07 00 F7 00 00 01 00 00 00 FF 0F 0D [00:03:16]state=3 [00:03:16]No paper [00:03:16]Cover closed [00:03:16]int [00:03:16]Write to MH i2c: 01 00 00 F8 00 F8 [00:03:16]*** FLAG_PRN_PAP2 set [00:03:16]Write i2c OK [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: 01 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: 01 07 00 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: 01 07 00 F8 00 00 03 00 00 00 FF 0F 10 [00:03:16]state=0 [00:03:16]No paper [00:03:16]Cover opened [00:03:17]int [00:03:17]Write to MH i2c: 01 00 00 F9 00 F9 [00:03:17]*** FLAG_PRN_PAP2 reset [00:03:17]Write i2c OK [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: 01 [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: 01 07 00 [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: 01 07 00 F9 00 00 01 00 00 00 FF 0F 0F [00:03:17]state=3 [00:03:17]No paper [00:03:17]Cover closed [00:03:17]int [00:03:17]Write to MH i2c: 01 00 00 FA 00 FA [00:03:17]*** FLAG_PRN_PAP2 set [00:03:17]Write i2c OK [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: 01 [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: 01 07 00 [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: 01 07 00 FA 00 00 03 00 00 00 FF 0F 12 [00:03:17]state=0 [00:03:17]No paper [00:03:17]Cover opened [00:03:18]int [00:03:18]Write to MH i2c: 01 00 00 FB 00 FB [00:03:18]*** FLAG_PRN_PAP2 reset [00:03:18]Write i2c OK [00:03:18]MH_I2C_Read... [00:03:18]Read from MH i2c: 01 [00:03:18]MH_I2C_Read... [00:03:18]Read from MH i2c: 01 07 00 [00:03:18]MH_I2C_Read... [00:03:18]Read from MH i2c: 01 07 00 FB 00 00 01 00 00 00 FF 0F 11 [00:03:18]state=3 [00:03:18]No paper [00:03:18]Cover closed [00:03:18]int [00:03:18]Write to MH i2c: 01 00 00 FC 00 FC [00:03:18]*** FLAG_PRN_PAP1 reset [00:03:18]Write i2c OK [00:03:18]MH_I2C_Read... [00:03:18]Read from MH i2c: 01 [00:03:18]MH_I2C_Read... [00:03:18]Read from MH i2c: 01 07 00 [00:03:18]MH_I2C_Read... [00:03:18]Read from MH i2c: 01 07 00 FC 00 00 00 00 00 00 FF 0F 11 [00:03:18]state=0 [00:03:20]OFD Sender: No OFD packet to send [00:03:25]OFD Sender: No OFD packet to send [00:03:30]OFD Sender: No OFD packet to send [00:03:35]OFD Sender: No OFD packet to send [00:03:40]OFD Sender: No OFD packet to send [00:03:45]OFD Sender: No OFD packet to send [00:03:50]OFD Sender: No OFD packet to send [00:03:55]OFD Sender: No OFD packet to send [00:04:00]OFD Sender: No OFD packet to send [00:04:05]OFD Sender: No OFD packet to send [00:04:10]OFD Sender: No OFD packet to send [00:04:15]OFD Sender: No OFD packet to send [00:04:20]OFD Sender: No OFD packet to send [00:04:25]OFD Sender: No OFD packet to send [00:04:30]OFD Sender: No OFD packet to send [00:04:35]OFD Sender: No OFD packet to send [00:04:40]OFD Sender: No OFD packet to send [00:04:45]OFD Sender: No OFD packet to send [00:04:50]OFD Sender: No OFD packet to send [00:04:55]OFD Sender: No OFD packet to send [00:05:00]OFD Sender: No OFD packet to send [00:05:05]OFD Sender: No OFD packet to send [00:05:10]OFD Sender: No OFD packet to send [00:05:15]OFD Sender: No OFD packet to send [00:05:20]OFD Sender: No OFD packet to send [00:05:25]OFD Sender: No OFD packet to send [00:05:30]OFD Sender: No OFD packet to send [00:05:35]OFD Sender: No OFD packet to send [00:05:40]OFD Sender: No OFD packet to send [00:05:45]OFD Sender: No OFD packet to send [00:05:50]OFD Sender: No OFD packet to send [00:05:55]OFD Sender: No OFD packet to send [00:06:00]OFD Sender: No OFD packet to send [00:06:05]OFD Sender: No OFD packet to send [00:06:10]OFD Sender: No OFD packet to send [00:06:15]OFD Sender: No OFD packet to send [00:06:20]OFD Sender: No OFD packet to send [00:06:25]OFD Sender: No OFD packet to send [00:06:30]OFD Sender: No OFD packet to send [00:06:35]OFD Sender: No OFD packet to send [00:06:40]OFD Sender: No OFD packet to send [00:06:45]OFD Sender: No OFD packet to send [00:06:50]OFD Sender: No OFD packet to send [00:06:55]OFD Sender: No OFD packet to send [00:07:00]OFD Sender: No OFD packet to send [00:07:05]OFD Sender: No OFD packet to send [00:07:10]OFD Sender: No OFD packet to send [00:07:15]OFD Sender: No OFD packet to send [00:07:20]OFD Sender: No OFD packet to send [00:07:25]OFD Sender: No OFD packet to send [00:07:30]OFD Sender: No OFD packet to send [00:07:35]OFD Sender: No OFD packet to send [00:07:40]OFD Sender: No OFD packet to send [00:07:45]OFD Sender: No OFD packet to send [00:07:50]OFD Sender: No OFD packet to send [00:07:53]accept exits with 9 [00:07:53]New connection [00:07:53]New thread 3067313508 created [00:07:53]Thread 3067456868 joined [00:07:53]Waiting for new connection... [00:07:53] Sock 9.Parse request [00:07:53]Sock 9.Check first char [00:07:53]Sock 9.First char is OK [00:07:53]request: POST /json_proto HTTP/1.0 [00:07:53]Method: POST [00:07:53]URL: /json_proto [00:07:53]Method is POST - this is cgi request [00:07:53]url: /json_proto [00:07:53]query_string will be loaded in cgi processing [00:07:53]execute_cgi json_proto POST (null) [00:07:53]execute_cgi path=json_proto method=POST [00:07:53]POST find Content-Length [00:07:53]Host: 172.17.50.3:8080 [00:07:53]Content-Length: 215 [00:07:53]Content-Type: application/json [00:07:53] [00:07:53]POST finish read [00:07:53]Found Content-Length = 215 [00:07:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:53]execute_script... [00:07:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:53]POST & json_proto [00:07:53]process_json_proto [00:07:53]json parsed OK: [00:07:53]protocol is kg_v1.0 [00:07:53]action value=get_value [00:07:53]process_action get_value [00:07:53]cmd_get_value [00:07:53]process_action get_value done [00:07:53]requested_data is exist [00:07:53]produce_requested_data [00:07:53]requested_item kkm.sn is exist - process it [00:07:53]requested_item kkm.ver is exist - process it [00:07:53]requested_item fm.sn is exist - process it [00:07:53]wFMCommunicate request_size=4 [00:07:53]MH_SAM_APDU [00:07:53]CAPDU: 80 11 00 00 [00:07:53]Write to MH i2c: E2 08 00 FD 00 80 11 00 00 00 00 00 00 77 [00:07:53]Write i2c OK [00:07:53]MH_I2C_Read... [00:07:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:53]Read from MH i2c: E2 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 17 00 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 17 00 FD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C9 [00:07:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:07:53]wFMCommunicate OK [00:07:53]requested_item fd.num is exist - process it [00:07:53]SAM_PROTO_GetFieldsCounters [00:07:53]wFMCommunicate request_size=4 [00:07:53]MH_SAM_APDU [00:07:53]CAPDU: 80 13 00 00 [00:07:53]Write to MH i2c: E2 08 00 FE 00 80 13 00 00 00 00 00 00 7A [00:07:53]Write i2c OK [00:07:53]MH_I2C_Read... [00:07:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:53]Read from MH i2c: E2 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 62 00 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 62 00 FE 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E8 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C5 01 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C6 01 00 00 19 04 04 00 00 00 00 00 90 00 A0 [00:07:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E8 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C5 01 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C6 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:07:53]wFMCommunicate OK [00:07:53]SAM_PROTO_GetFieldsCounters done [00:07:53]requested_item shift.num is exist - process it [00:07:53]requested_item shift.opened is exist - process it [00:07:53]req_shift_opened [00:07:53]FM_GetShiftState [00:07:53]SAM_PROTO_GetShiftState [00:07:53]wFMCommunicate request_size=4 [00:07:53]MH_SAM_APDU [00:07:53]CAPDU: 80 13 01 00 [00:07:53]Write to MH i2c: E2 08 00 FF 00 80 13 01 00 00 00 00 00 7C [00:07:53]Write i2c OK [00:07:53]MH_I2C_Read... [00:07:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:53]Read from MH i2c: E2 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 0E 00 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 0E 00 FF 00 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 82 [00:07:53]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [00:07:53]wFMCommunicate OK [00:07:53]SAM_PROTO_GetShiftState done [00:07:53]FM_GetShiftState done [00:07:53]req_shift_opened done [00:07:53]requested_item shift.open_date is exist - process it [00:07:53]req_shift_open_date [00:07:53]req_shift_open_date done [00:07:53]produce_requested_data done [00:07:53]produce_requested_data return {"kkm.sn":"0300000167","kkm.ver":"v1.0","fm.sn":"0000000000963346","fd.num":69608,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [00:07:53]process_action_free get_value [00:07:53]json_value_free [00:07:53]json_value_free done [00:07:53]process_json_proto returns [00:07:53]Send response to host [00:07:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000167","kkm.ver":"v1.0","fm.sn":"0000000000963346","fd.num":69608,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [00:07:53]free response buf [00:07:53]execute_script done [00:07:53]execute_script returns [00:07:53]free content buf [00:07:53]Sock 9.Close socket [00:07:53]Sock 9.Thread stoped [00:07:53]accept exits with 8 [00:07:53]New connection [00:07:53]New thread 3067456868 created [00:07:53]Thread 3067313508 joined [00:07:53]Waiting for new connection... [00:07:53] Sock 8.Parse request [00:07:53]Sock 8.Check first char [00:07:53]Sock 8.First char is OK [00:07:53]request: POST /json_proto HTTP/1.0 [00:07:53]Method: POST [00:07:53]URL: /json_proto [00:07:53]Method is POST - this is cgi request [00:07:53]url: /json_proto [00:07:53]query_string will be loaded in cgi processing [00:07:53]execute_cgi json_proto POST (null) [00:07:53]execute_cgi path=json_proto method=POST [00:07:53]POST find Content-Length [00:07:53]Host: 172.17.50.3:8080 [00:07:53]Content-Length: 331 [00:07:53]Content-Type: application/json [00:07:53] [00:07:53]POST finish read [00:07:53]Found Content-Length = 331 [00:07:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:53]execute_script... [00:07: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" ] } } [00:07:53]POST & json_proto [00:07:53]process_json_proto [00:07:53]json parsed OK: [00:07:53]protocol is kg_v1.0 [00:07:53]action value=get_value [00:07:53]process_action get_value [00:07:53]cmd_get_value [00:07:53]process_action get_value done [00:07:53]requested_data is exist [00:07:53]produce_requested_data [00:07:53]requested_item fm.sale.total is exist - process it [00:07:53]SAM_PROTO_GetFMData [00:07:53]wFMCommunicate request_size=4 [00:07:53]MH_SAM_APDU [00:07:53]CAPDU: 80 13 03 00 [00:07:53]Write to MH i2c: E2 08 00 00 01 80 13 03 00 00 00 00 00 80 [00:07:53]Write i2c OK [00:07:53]MH_I2C_Read... [00:07:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:54]Read from MH i2c: E2 [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: E2 FD 00 [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: E2 FD 00 00 01 00 C5 04 85 04 C1 04 6E 04 04 00 66 0E 01 00 69 04 A3 00 6F 04 04 00 2B 0B 01 00 B1 04 05 00 B0 AA 30 E2 01 70 04 05 00 14 8D EC 57 01 72 04 04 00 9C 1D 44 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 16 72 37 33 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 7D 8F 44 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 3B 03 00 00 B1 04 04 00 9C 2A 91 11 70 04 04 00 9C 2A 91 11 72 04 00 00 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 5D 9E DD 01 EF 03 09 90 00 56 [00:07:54]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 66 0E 01 00 69 04 A3 00 6F 04 04 00 2B 0B 01 00 B1 04 05 00 B0 AA 30 E2 01 70 04 05 00 14 8D EC 57 01 72 04 04 00 9C 1D 44 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 16 72 37 33 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 7D 8F 44 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 3B 03 00 00 B1 04 04 00 9C 2A 91 11 70 04 04 00 9C 2A 91 11 72 04 00 00 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 5D 9E DD 01 EF 03 09 90 00 [00:07:54]wFMCommunicate OK [00:07:54]wFMCommunicate request_size=4 [00:07:54]MH_SAM_APDU [00:07:54]CAPDU: 80 17 00 00 [00:07:54]Write to MH i2c: E2 08 00 01 01 80 17 00 00 00 00 00 00 82 [00:07:54]Write i2c OK [00:07:54]MH_I2C_Read... [00:07:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:54]Read from MH i2c: E2 [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: E2 FD 00 [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: E2 FD 00 01 01 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F7 CC 27 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 22 [00:07:54]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F7 CC 27 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:54]wFMCommunicate OK [00:07:54]wFMCommunicate request_size=4 [00:07:54]MH_SAM_APDU [00:07:54]CAPDU: 80 17 00 00 [00:07:54]Write to MH i2c: E2 08 00 02 01 80 17 00 00 00 00 00 00 83 [00:07:54]Write i2c OK [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: E2 [00:07:54]MH_I2C_Read... [00:07:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:54]Read from MH i2c: E2 FD 00 [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: E2 FD 00 02 01 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 95 [00:07:54]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:54]wFMCommunicate OK [00:07:54]wFMCommunicate request_size=4 [00:07:54]MH_SAM_APDU [00:07:54]CAPDU: 80 17 00 00 [00:07:54]Write to MH i2c: E2 08 00 03 01 80 17 00 00 00 00 00 00 84 [00:07:54]Write i2c OK [00:07:54]MH_I2C_Read... [00:07:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:55]Read from MH i2c: E2 [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: E2 FD 00 [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: E2 FD 00 03 01 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 10 [00:07:55]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:55]wFMCommunicate OK [00:07:55]wFMCommunicate request_size=4 [00:07:55]MH_SAM_APDU [00:07:55]CAPDU: 80 17 00 00 [00:07:55]Write to MH i2c: E2 08 00 04 01 80 17 00 00 00 00 00 00 85 [00:07:55]Write i2c OK [00:07:55]MH_I2C_Read... [00:07:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:07:55]Read from MH i2c: E2 [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: E2 E2 00 [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: E2 E2 00 04 01 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 63 [00:07:55]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:55]wFMCommunicate OK [00:07:55]SAM_PROTO_GetFMData done [00:07:55]requested_item fm.sale_refund.total is exist - process it [00:07:55]requested_item fm.buy.total is exist - process it [00:07:55]requested_item shift.sale.total is exist - process it [00:07:55]SAM_PROTO_GetShiftData [00:07:55]wFMCommunicate request_size=4 [00:07:55]MH_SAM_APDU [00:07:55]CAPDU: 80 13 02 00 [00:07:55]Write to MH i2c: E2 08 00 05 01 80 13 02 00 00 00 00 00 84 [00:07:55]Write i2c OK [00:07:55]MH_I2C_Read... [00:07:55]OFD Sender: No OFD packet to send [00:07:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:55]Read from MH i2c: E2 [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: E2 FD 00 [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: E2 FD 00 05 01 00 BC 04 AA 04 B8 04 6E 04 04 00 C5 01 00 00 69 04 9E 00 6F 04 04 00 C2 01 00 00 B1 04 04 00 A3 79 2C 03 70 04 04 00 24 EE BD 02 72 04 03 00 7F 8B 6E 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 1F 4D 56 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 06 31 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 54 79 0F 70 04 03 00 54 79 0F 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B5 A4 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 CA [00:07:55]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 C5 01 00 00 69 04 9E 00 6F 04 04 00 C2 01 00 00 B1 04 04 00 A3 79 2C 03 70 04 04 00 24 EE BD 02 72 04 03 00 7F 8B 6E 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 1F 4D 56 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 06 31 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 54 79 0F 70 04 03 00 54 79 0F 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B5 A4 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:07:55]wFMCommunicate OK [00:07:55]wFMCommunicate request_size=4 [00:07:55]MH_SAM_APDU [00:07:55]CAPDU: 80 17 00 00 [00:07:55]Write to MH i2c: E2 08 00 06 01 80 17 00 00 00 00 00 00 87 [00:07:55]Write i2c OK [00:07:55]MH_I2C_Read... [00:07:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:56]Read from MH i2c: E2 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: E2 FD 00 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: E2 FD 00 06 01 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0F 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 63 [00:07:56]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0F 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:56]wFMCommunicate OK [00:07:56]wFMCommunicate request_size=4 [00:07:56]MH_SAM_APDU [00:07:56]CAPDU: 80 17 00 00 [00:07:56]Write to MH i2c: E2 08 00 07 01 80 17 00 00 00 00 00 00 88 [00:07:56]Write i2c OK [00:07:56]MH_I2C_Read... [00:07:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:56]Read from MH i2c: E2 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: E2 FD 00 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: E2 FD 00 07 01 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B1 [00:07:56]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:56]wFMCommunicate OK [00:07:56]wFMCommunicate request_size=4 [00:07:56]MH_SAM_APDU [00:07:56]CAPDU: 80 17 00 00 [00:07:56]Write to MH i2c: E2 08 00 08 01 80 17 00 00 00 00 00 00 89 [00:07:56]Write i2c OK [00:07:56]MH_I2C_Read... [00:07:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:56]Read from MH i2c: E2 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: E2 FD 00 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: E2 FD 00 08 01 00 03 00 00 EF 03 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 90 00 0A [00:07:56]RAPDU: 03 00 00 EF 03 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 90 00 [00:07:56]wFMCommunicate OK [00:07:56]wFMCommunicate request_size=4 [00:07:56]MH_SAM_APDU [00:07:56]CAPDU: 80 17 00 00 [00:07:56]Write to MH i2c: E2 08 00 09 01 80 17 00 00 00 00 00 00 8A [00:07:56]Write i2c OK [00:07:56]MH_I2C_Read... [00:07:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:07:56]Read from MH i2c: E2 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: E2 D9 00 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: E2 D9 00 09 01 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 69 [00:07:56]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:56]wFMCommunicate OK [00:07:56]SAM_PROTO_GetShiftData done [00:07:56]requested_item shift.sale.total_cash is exist - process it [00:07:56]requested_item shift.sale_refund.total is exist - process it [00:07:56]requested_item shift.sale_refund.total_cash is exist - process it [00:07:56]requested_item shift.buy.total is exist - process it [00:07:56]requested_item shift.buy.total_cash is exist - process it [00:07:56]produce_requested_data done [00:07:56]produce_requested_data return {"fm.sale.total":80898075.36,"fm.sale_refund.total":2947263.00,"fm.buy.total":0.00,"shift.sale.total":532463.71,"shift.sale.total_cash":460017.00,"shift.sale_refund.total":10141.00,"shift.sale_refund.total_cash":10141.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:07:56]process_action_free get_value [00:07:56]json_value_free [00:07:56]json_value_free done [00:07:56]process_json_proto returns [00:07:56]Send response to host [00:07:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":80898075.36,"fm.sale_refund.total":2947263.00,"fm.buy.total":0.00,"shift.sale.total":532463.71,"shift.sale.total_cash":460017.00,"shift.sale_refund.total":10141.00,"shift.sale_refund.total_cash":10141.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:07:56]free response buf [00:07:56]execute_script done [00:07:56]execute_script returns [00:07:56]free content buf [00:07:56]Sock 8.Close socket [00:07:56]Sock 8.Thread stoped [00:07:57]accept exits with 9 [00:07:57]New connection [00:07:57]New thread 3067313508 created [00:07:57]Thread 3067456868 joined [00:07:57]Waiting for new connection... [00:07:57] Sock 9.Parse request [00:07:57]Sock 9.Check first char [00:07:57]Sock 9.First char is OK [00:07:57]request: POST /json_proto HTTP/1.0 [00:07:57]Method: POST [00:07:57]URL: /json_proto [00:07:57]Method is POST - this is cgi request [00:07:57]url: /json_proto [00:07:57]query_string will be loaded in cgi processing [00:07:57]execute_cgi json_proto POST (null) [00:07:57]execute_cgi path=json_proto method=POST [00:07:57]POST find Content-Length [00:07:57]Host: 172.17.50.3:8080 [00:07:57]Content-Length: 331 [00:07:57]Content-Type: application/json [00:07:57] [00:07:57]POST finish read [00:07:57]Found Content-Length = 331 [00:07:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:57]execute_script... [00:07: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" ] } } [00:07:57]POST & json_proto [00:07:57]process_json_proto [00:07:57]json parsed OK: [00:07:57]protocol is kg_v1.0 [00:07:57]action value=get_value [00:07:57]process_action get_value [00:07:57]cmd_get_value [00:07:57]process_action get_value done [00:07:57]requested_data is exist [00:07:57]produce_requested_data [00:07:57]requested_item fm.sale.total is exist - process it [00:07:57]SAM_PROTO_GetFMData [00:07:57]wFMCommunicate request_size=4 [00:07:57]MH_SAM_APDU [00:07:57]CAPDU: 80 13 03 00 [00:07:57]Write to MH i2c: E2 08 00 0A 01 80 13 03 00 00 00 00 00 8A [00:07:57]Write i2c OK [00:07:57]MH_I2C_Read... [00:07:57]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:57]Read from MH i2c: E2 [00:07:57]MH_I2C_Read... [00:07:57]Read from MH i2c: E2 FD 00 [00:07:57]MH_I2C_Read... [00:07:57]Read from MH i2c: E2 FD 00 0A 01 00 C5 04 85 04 C1 04 6E 04 04 00 66 0E 01 00 69 04 A3 00 6F 04 04 00 2B 0B 01 00 B1 04 05 00 B0 AA 30 E2 01 70 04 05 00 14 8D EC 57 01 72 04 04 00 9C 1D 44 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 16 72 37 33 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 7D 8F 44 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 3B 03 00 00 B1 04 04 00 9C 2A 91 11 70 04 04 00 9C 2A 91 11 72 04 00 00 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 5D 9E DD 01 EF 03 09 90 00 60 [00:07:57]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 66 0E 01 00 69 04 A3 00 6F 04 04 00 2B 0B 01 00 B1 04 05 00 B0 AA 30 E2 01 70 04 05 00 14 8D EC 57 01 72 04 04 00 9C 1D 44 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 16 72 37 33 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 7D 8F 44 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 3B 03 00 00 B1 04 04 00 9C 2A 91 11 70 04 04 00 9C 2A 91 11 72 04 00 00 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 5D 9E DD 01 EF 03 09 90 00 [00:07:57]wFMCommunicate OK [00:07:57]wFMCommunicate request_size=4 [00:07:57]MH_SAM_APDU [00:07:57]CAPDU: 80 17 00 00 [00:07:57]Write to MH i2c: E2 08 00 0B 01 80 17 00 00 00 00 00 00 8C [00:07:57]Write i2c OK [00:07:57]MH_I2C_Read... [00:07:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:57]Read from MH i2c: E2 [00:07:57]MH_I2C_Read... [00:07:57]Read from MH i2c: E2 FD 00 [00:07:57]MH_I2C_Read... [00:07:57]Read from MH i2c: E2 FD 00 0B 01 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F7 CC 27 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2C [00:07:57]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F7 CC 27 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:58]wFMCommunicate OK [00:07:58]wFMCommunicate request_size=4 [00:07:58]MH_SAM_APDU [00:07:58]CAPDU: 80 17 00 00 [00:07:58]Write to MH i2c: E2 08 00 0C 01 80 17 00 00 00 00 00 00 8D [00:07:58]Write i2c OK [00:07:58]MH_I2C_Read... [00:07:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:58]Read from MH i2c: E2 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: E2 FD 00 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: E2 FD 00 0C 01 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9F [00:07:58]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:58]wFMCommunicate OK [00:07:58]wFMCommunicate request_size=4 [00:07:58]MH_SAM_APDU [00:07:58]CAPDU: 80 17 00 00 [00:07:58]Write to MH i2c: E2 08 00 0D 01 80 17 00 00 00 00 00 00 8E [00:07:58]Write i2c OK [00:07:58]MH_I2C_Read... [00:07:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:58]Read from MH i2c: E2 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: E2 FD 00 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: E2 FD 00 0D 01 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1A [00:07:58]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:58]wFMCommunicate OK [00:07:58]wFMCommunicate request_size=4 [00:07:58]MH_SAM_APDU [00:07:58]CAPDU: 80 17 00 00 [00:07:58]Write to MH i2c: E2 08 00 0E 01 80 17 00 00 00 00 00 00 8F [00:07:58]Write i2c OK [00:07:58]MH_I2C_Read... [00:07:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:07:58]Read from MH i2c: E2 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: E2 E2 00 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: E2 E2 00 0E 01 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:07:59]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:59]wFMCommunicate OK [00:07:59]SAM_PROTO_GetFMData done [00:07:59]requested_item fm.sale_refund.total is exist - process it [00:07:59]requested_item fm.buy.total is exist - process it [00:07:59]requested_item shift.sale.total is exist - process it [00:07:59]SAM_PROTO_GetShiftData [00:07:59]wFMCommunicate request_size=4 [00:07:59]MH_SAM_APDU [00:07:59]CAPDU: 80 13 02 00 [00:07:59]Write to MH i2c: E2 08 00 0F 01 80 13 02 00 00 00 00 00 8E [00:07:59]Write i2c OK [00:07:59]MH_I2C_Read... [00:07:59]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:59]Read from MH i2c: E2 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: E2 FD 00 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: E2 FD 00 0F 01 00 BC 04 AA 04 B8 04 6E 04 04 00 C5 01 00 00 69 04 9E 00 6F 04 04 00 C2 01 00 00 B1 04 04 00 A3 79 2C 03 70 04 04 00 24 EE BD 02 72 04 03 00 7F 8B 6E 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 1F 4D 56 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 06 31 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 54 79 0F 70 04 03 00 54 79 0F 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B5 A4 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 D4 [00:07:59]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 C5 01 00 00 69 04 9E 00 6F 04 04 00 C2 01 00 00 B1 04 04 00 A3 79 2C 03 70 04 04 00 24 EE BD 02 72 04 03 00 7F 8B 6E 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 1F 4D 56 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 06 31 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 54 79 0F 70 04 03 00 54 79 0F 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B5 A4 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:07:59]wFMCommunicate OK [00:07:59]wFMCommunicate request_size=4 [00:07:59]MH_SAM_APDU [00:07:59]CAPDU: 80 17 00 00 [00:07:59]Write to MH i2c: E2 08 00 10 01 80 17 00 00 00 00 00 00 91 [00:07:59]Write i2c OK [00:07:59]MH_I2C_Read... [00:07:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:59]Read from MH i2c: E2 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: E2 FD 00 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: E2 FD 00 10 01 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0F 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6D [00:07:59]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0F 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:59]wFMCommunicate OK [00:07:59]wFMCommunicate request_size=4 [00:07:59]MH_SAM_APDU [00:07:59]CAPDU: 80 17 00 00 [00:07:59]Write to MH i2c: E2 08 00 11 01 80 17 00 00 00 00 00 00 92 [00:07:59]Write i2c OK [00:07:59]MH_I2C_Read... [00:08:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:00]Read from MH i2c: E2 [00:08:00]MH_I2C_Read... [00:08:00]Read from MH i2c: E2 FD 00 [00:08:00]MH_I2C_Read... [00:08:00]Read from MH i2c: E2 FD 00 11 01 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BB [00:08:00]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:00]wFMCommunicate OK [00:08:00]wFMCommunicate request_size=4 [00:08:00]MH_SAM_APDU [00:08:00]CAPDU: 80 17 00 00 [00:08:00]Write to MH i2c: E2 08 00 12 01 80 17 00 00 00 00 00 00 93 [00:08:00]Write i2c OK [00:08:00]MH_I2C_Read... [00:08:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:00]Read from MH i2c: E2 [00:08:00]MH_I2C_Read... [00:08:00]Read from MH i2c: E2 FD 00 [00:08:00]MH_I2C_Read... [00:08:00]Read from MH i2c: E2 FD 00 12 01 00 03 00 00 EF 03 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 90 00 14 [00:08:00]RAPDU: 03 00 00 EF 03 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 90 00 [00:08:00]wFMCommunicate OK [00:08:00]wFMCommunicate request_size=4 [00:08:00]MH_SAM_APDU [00:08:00]CAPDU: 80 17 00 00 [00:08:00]Write to MH i2c: E2 08 00 13 01 80 17 00 00 00 00 00 00 94 [00:08:00]Write i2c OK [00:08:00]MH_I2C_Read... [00:08:00]OFD Sender: No OFD packet to send [00:08:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:08:00]Read from MH i2c: E2 [00:08:00]MH_I2C_Read... [00:08:00]Read from MH i2c: E2 D9 00 [00:08:00]MH_I2C_Read... [00:08:00]Read from MH i2c: E2 D9 00 13 01 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 73 [00:08:00]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:08:01]wFMCommunicate OK [00:08:01]SAM_PROTO_GetShiftData done [00:08:01]requested_item shift.sale.total_cash is exist - process it [00:08:01]requested_item shift.sale_refund.total is exist - process it [00:08:01]requested_item shift.sale_refund.total_cash is exist - process it [00:08:01]requested_item shift.buy.total is exist - process it [00:08:01]requested_item shift.buy.total_cash is exist - process it [00:08:01]produce_requested_data done [00:08:01]produce_requested_data return {"fm.sale.total":80898075.36,"fm.sale_refund.total":2947263.00,"fm.buy.total":0.00,"shift.sale.total":532463.71,"shift.sale.total_cash":460017.00,"shift.sale_refund.total":10141.00,"shift.sale_refund.total_cash":10141.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:08:01]process_action_free get_value [00:08:01]json_value_free [00:08:01]json_value_free done [00:08:01]process_json_proto returns [00:08:01]Send response to host [00:08:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":80898075.36,"fm.sale_refund.total":2947263.00,"fm.buy.total":0.00,"shift.sale.total":532463.71,"shift.sale.total_cash":460017.00,"shift.sale_refund.total":10141.00,"shift.sale_refund.total_cash":10141.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:08:01]free response buf [00:08:01]execute_script done [00:08:01]execute_script returns [00:08:01]free content buf [00:08:01]Sock 9.Close socket [00:08:01]Sock 9.Thread stoped [00:08:01]accept exits with 8 [00:08:01]New connection [00:08:01]New thread 3067456868 created [00:08:01]Thread 3067313508 joined [00:08:01]Waiting for new connection... [00:08:01] Sock 8.Parse request [00:08:01]Sock 8.Check first char [00:08:01]Sock 8.First char is OK [00:08:01]request: POST /json_proto HTTP/1.0 [00:08:01]Method: POST [00:08:01]URL: /json_proto [00:08:01]Method is POST - this is cgi request [00:08:01]url: /json_proto [00:08:01]query_string will be loaded in cgi processing [00:08:01]execute_cgi json_proto POST (null) [00:08:01]execute_cgi path=json_proto method=POST [00:08:01]POST find Content-Length [00:08:01]Host: 172.17.50.3:8080 [00:08:01]Content-Length: 257 [00:08:01]Content-Type: application/json [00:08:01] [00:08:01]POST finish read [00:08:01]Found Content-Length = 257 [00:08:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041A\u0430\u043B\u043C\u0430\u0435\u0432\u0430 \u0413. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:01]execute_script... [00:08:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041A\u0430\u043B\u043C\u0430\u0435\u0432\u0430 \u0413. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:01]POST & json_proto [00:08:01]process_json_proto [00:08:01]json parsed OK: [00:08:01]protocol is kg_v1.0 [00:08:01]action value=x_report [00:08:01]process_action x_report [00:08:01]cmd_x_report [00:08:01]MH_GetDate [00:08:01]Write to MH i2c: F0 00 00 14 01 04 [00:08:01]Write i2c OK [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: F0 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: F0 09 00 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: F0 09 00 14 01 00 61 9B 15 67 6B 98 1E 66 0C [00:08:01]GetLastDocTimeStamp 1729468917 [00:08:01]current date 1729469281 [00:08:01]FM_GetShiftState [00:08:01]SAM_PROTO_GetShiftState [00:08:01]wFMCommunicate request_size=4 [00:08:01]MH_SAM_APDU [00:08:01]CAPDU: 80 13 01 00 [00:08:01]Write to MH i2c: E2 08 00 15 01 80 13 01 00 00 00 00 00 93 [00:08:01]Write i2c OK [00:08:01]MH_I2C_Read... [00:08:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:01]Read from MH i2c: E2 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: E2 0E 00 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: E2 0E 00 15 01 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 99 [00:08:01]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [00:08:01]wFMCommunicate OK [00:08:01]SAM_PROTO_GetShiftState done [00:08:01]FM_GetShiftState done [00:08:01]KKMCreateXReportDocument [00:08:01]Load OK [00:08:01]Malloc new data [00:08:01]MH_GetDate [00:08:01]Write to MH i2c: F0 00 00 16 01 06 [00:08:01]Write i2c OK [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: F0 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: F0 09 00 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: F0 09 00 16 01 00 61 9B 15 67 6B 98 1E 66 0E [00:08:01]Malloc new data [00:08:01]Malloc new data [00:08:01]wFMCommunicate request_size=4 [00:08:01]MH_SAM_APDU [00:08:01]CAPDU: 80 11 00 00 [00:08:01]Write to MH i2c: E2 08 00 17 01 80 11 00 00 00 00 00 00 92 [00:08:01]Write i2c OK [00:08:01]MH_I2C_Read... [00:08:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:08:01]Read from MH i2c: E2 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: E2 17 00 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: E2 17 00 17 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E4 [00:08:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:08:01]wFMCommunicate OK [00:08:01]SAM_PROTO_GetFieldsCounters [00:08:01]wFMCommunicate request_size=4 [00:08:01]MH_SAM_APDU [00:08:01]CAPDU: 80 13 00 00 [00:08:01]Write to MH i2c: E2 08 00 18 01 80 13 00 00 00 00 00 00 95 [00:08:01]Write i2c OK [00:08:01]MH_I2C_Read... [00:08:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:08:01]Read from MH i2c: E2 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: E2 62 00 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: E2 62 00 18 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E8 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C5 01 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C6 01 00 00 19 04 04 00 00 00 00 00 90 00 BB [00:08:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E8 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C5 01 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C6 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:08:01]wFMCommunicate OK [00:08:01]SAM_PROTO_GetFieldsCounters done [00:08:01]Malloc new data [00:08:01]Malloc new data [00:08:01]Malloc new data [00:08:01]KKMCreateXReportDocument OK [00:08:01]KKMSetXReportData OK [00:08:01]KKMPrepareXReportFMData [00:08:01]SAM_PROTO_GetShiftData [00:08:01]wFMCommunicate request_size=4 [00:08:01]MH_SAM_APDU [00:08:01]CAPDU: 80 13 02 00 [00:08:01]Write to MH i2c: E2 08 00 19 01 80 13 02 00 00 00 00 00 98 [00:08:01]Write i2c OK [00:08:01]MH_I2C_Read... [00:08:01]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:08:01]Read from MH i2c: E2 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: E2 FD 00 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: E2 FD 00 19 01 00 BC 04 AA 04 B8 04 6E 04 04 00 C5 01 00 00 69 04 9E 00 6F 04 04 00 C2 01 00 00 B1 04 04 00 A3 79 2C 03 70 04 04 00 24 EE BD 02 72 04 03 00 7F 8B 6E 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 1F 4D 56 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 06 31 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 54 79 0F 70 04 03 00 54 79 0F 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B5 A4 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 DE [00:08:01]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 C5 01 00 00 69 04 9E 00 6F 04 04 00 C2 01 00 00 B1 04 04 00 A3 79 2C 03 70 04 04 00 24 EE BD 02 72 04 03 00 7F 8B 6E 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 1F 4D 56 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 06 31 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 54 79 0F 70 04 03 00 54 79 0F 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B5 A4 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:08:01]wFMCommunicate OK [00:08:01]wFMCommunicate request_size=4 [00:08:01]MH_SAM_APDU [00:08:01]CAPDU: 80 17 00 00 [00:08:01]Write to MH i2c: E2 08 00 1A 01 80 17 00 00 00 00 00 00 9B [00:08:01]Write i2c OK [00:08:01]MH_I2C_Read... [00:08:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:02]Read from MH i2c: E2 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 FD 00 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 FD 00 1A 01 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0F 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 77 [00:08:02]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0F 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:02]wFMCommunicate OK [00:08:02]wFMCommunicate request_size=4 [00:08:02]MH_SAM_APDU [00:08:02]CAPDU: 80 17 00 00 [00:08:02]Write to MH i2c: E2 08 00 1B 01 80 17 00 00 00 00 00 00 9C [00:08:02]Write i2c OK [00:08:02]MH_I2C_Read... [00:08:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:02]Read from MH i2c: E2 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 FD 00 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 FD 00 1B 01 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C5 [00:08:02]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:02]wFMCommunicate OK [00:08:02]wFMCommunicate request_size=4 [00:08:02]MH_SAM_APDU [00:08:02]CAPDU: 80 17 00 00 [00:08:02]Write to MH i2c: E2 08 00 1C 01 80 17 00 00 00 00 00 00 9D [00:08:02]Write i2c OK [00:08:02]MH_I2C_Read... [00:08:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:03]Read from MH i2c: E2 [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: E2 FD 00 [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: E2 FD 00 1C 01 00 03 00 00 EF 03 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 90 00 1E [00:08:03]RAPDU: 03 00 00 EF 03 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 90 00 [00:08:03]wFMCommunicate OK [00:08:03]wFMCommunicate request_size=4 [00:08:03]MH_SAM_APDU [00:08:03]CAPDU: 80 17 00 00 [00:08:03]Write to MH i2c: E2 08 00 1D 01 80 17 00 00 00 00 00 00 9E [00:08:03]Write i2c OK [00:08:03]MH_I2C_Read... [00:08:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:08:03]Read from MH i2c: E2 [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: E2 D9 00 [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: E2 D9 00 1D 01 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 7D [00:08:03]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:08:03]wFMCommunicate OK [00:08:03]SAM_PROTO_GetShiftData done [00:08:03]1194 (1208) - счетчики итогов смены [00:08:03] 1134 (4) - 453 - количество чеков со всеми признаками расчетов [00:08:03] 1129 (158) - счетчики операций «приход» [00:08:03] 1135 (4) - 450 - количество чеков по признаку расчетов [00:08:03] 1201 (4) - 532463.71 - общая итоговая сумма в чеках [00:08:03] 1136 (4) - 460017.00 - итоговая сумма в чеках наличными [00:08:03] 1138 (3) - 72446.71 - итоговая сумма в чеках безналичными [00:08:03] 1024 (123) - суммы налогов [00:08:03] 1006 (9) - суммы НДС [00:08:03] 1010 (1) - 0% - код ставки НДС [00:08:03] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:03] 1006 (12) - суммы НДС [00:08:03] 1010 (1) - 12% - код ставки НДС [00:08:03] 1011 (3) - 56558.39 - сумма НДС по ставке [00:08:03] 1007 (9) - суммы НСП [00:08:03] 1014 (1) - 0% - код ставки НСП [00:08:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:03] 1007 (12) - суммы НСП [00:08:03] 1014 (1) - 1% - код ставки НСП [00:08:03] 1015 (3) - 4713.02 - сумма НСП по ставке [00:08:03] 1007 (9) - суммы НСП [00:08:03] 1014 (1) - 2% - код ставки НСП [00:08:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:03] 1007 (9) - суммы НСП [00:08:03] 1014 (1) - 3% - код ставки НСП [00:08:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:03] 1007 (9) - суммы НСП [00:08:03] 1014 (1) - 5% - код ставки НСП [00:08:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:03] 1007 (9) - суммы НСП [00:08:03] 1014 (1) - 0,50% - код ставки НСП [00:08:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:03] 1007 (9) - суммы НСП [00:08:03] 1014 (1) - 1,50% - код ставки НСП [00:08:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:03] 1130 (152) - счетчики операций «возврат прихода» [00:08:03] 1135 (4) - 3 - количество чеков по признаку расчетов [00:08:03] 1201 (3) - 10141.00 - общая итоговая сумма в чеках [00:08:03] 1136 (3) - 10141.00 - итоговая сумма в чеках наличными [00:08:03] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:08:03] 1024 (122) - суммы налогов [00:08:03] 1006 (9) - суммы НДС [00:08:03] 1010 (1) - 0% - код ставки НДС [00:08:03] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:03] 1006 (12) - суммы НДС [00:08:03] 1010 (1) - 12% - код ставки НДС [00:08:03] 1011 (3) - 1077.01 - сумма НДС по ставке [00:08:03] 1007 (9) - суммы НСП [00:08:03] 1014 (1) - 0% - код ставки НСП [00:08:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:03] 1007 (11) - суммы НСП [00:08:03] 1014 (1) - 1% - код ставки НСП [00:08:03] 1015 (2) - 89.75 - сумма НСП по ставке [00:08:03] 1007 (9) - суммы НСП [00:08:03] 1014 (1) - 2% - код ставки НСП [00:08:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:03] 1007 (9) - суммы НСП [00:08:03] 1014 (1) - 3% - код ставки НСП [00:08:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:03] 1007 (9) - суммы НСП [00:08:03] 1014 (1) - 5% - код ставки НСП [00:08:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:03] 1007 (9) - суммы НСП [00:08:03] 1014 (1) - 0,50% - код ставки НСП [00:08:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:03] 1007 (9) - суммы НСП [00:08:03] 1014 (1) - 1,50% - код ставки НСП [00:08:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:03] 1131 (141) - счетчики операций «расход» [00:08:03] 1135 (4) - 0 - количество чеков по признаку расчетов [00:08:03] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:08:03] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:08:03] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:08:03] 1024 (117) - суммы налогов [00:08:03] 1006 (9) - суммы НДС [00:08:03] 1010 (1) - 0% - код ставки НДС [00:08:03] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:03] 1006 (9) - суммы НДС [00:08:03] 1010 (1) - 12% - код ставки НДС [00:08:03] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:03] 1007 (9) - суммы НСП [00:08:03] 1014 (1) - 0% - код ставки НСП [00:08:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:03] 1007 (9) - суммы НСП [00:08:03] 1014 (1) - 1% - код ставки НСП [00:08:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:03] 1007 (9) - суммы НСП [00:08:03] 1014 (1) - 2% - код ставки НСП [00:08:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:03] 1007 (9) - суммы НСП [00:08:03] 1014 (1) - 3% - код ставки НСП [00:08:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:03] 1007 (9) - суммы НСП [00:08:03] 1014 (1) - 5% - код ставки НСП [00:08:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:03] 1007 (9) - суммы НСП [00:08:03] 1014 (1) - 0,50% - код ставки НСП [00:08:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:03] 1007 (9) - суммы НСП [00:08:03] 1014 (1) - 1,50% - код ставки НСП [00:08:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:03] 1132 (141) - счетчики операций «возврат расхода» [00:08:03] 1135 (4) - 0 - количество чеков по признаку расчетов [00:08:03] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:08:03] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:08:03] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:08:03] 1024 (117) - суммы налогов [00:08:03] 1006 (9) - суммы НДС [00:08:03] 1010 (1) - 0% - код ставки НДС [00:08:03] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:03] 1006 (9) - суммы НДС [00:08:03] 1010 (1) - 12% - код ставки НДС [00:08:03] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:03] 1007 (9) - суммы НСП [00:08:03] 1014 (1) - 0% - код ставки НСП [00:08:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:03] 1007 (9) - суммы НСП [00:08:03] 1014 (1) - 1% - код ставки НСП [00:08:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:03] 1007 (9) - суммы НСП [00:08:03] 1014 (1) - 2% - код ставки НСП [00:08:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:03] 1007 (9) - суммы НСП [00:08:03] 1014 (1) - 3% - код ставки НСП [00:08:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:03] 1007 (9) - суммы НСП [00:08:03] 1014 (1) - 5% - код ставки НСП [00:08:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:03] 1007 (9) - суммы НСП [00:08:03] 1014 (1) - 0,50% - код ставки НСП [00:08:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:03] 1007 (9) - суммы НСП [00:08:03] 1014 (1) - 1,50% - код ставки НСП [00:08:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:03] 1133 (588) - - счетчики коррекции - не используются [00:08:03]SetTLVBufToDocument [00:08:03]Processing tag 1194 (04AA) [00:08:03]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1134 (046E) [00:08:04]Malloc new data [00:08:04]Processing tag 1129 (0469) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1135 (046F) [00:08:04]Malloc new data [00:08:04]Processing tag 1201 (04B1) [00:08:04]Malloc new data [00:08:04]Processing tag 1136 (0470) [00:08:04]Malloc new data [00:08:04]Processing tag 1138 (0472) [00:08:04]Malloc new data [00:08:04]Processing tag 1024 (0400) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1006 (03EE) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1010 (03F2) [00:08:04]Malloc new data [00:08:04]Processing tag 1011 (03F3) [00:08:04]Malloc new data [00:08:04]SetTLVBufToDocument err=0 [00:08:04]Processing tag 1006 (03EE) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1010 (03F2) [00:08:04]Malloc new data [00:08:04]Processing tag 1011 (03F3) [00:08:04]Malloc new data [00:08:04]SetTLVBufToDocument err=0 [00:08:04]Processing tag 1007 (03EF) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1014 (03F6) [00:08:04]Malloc new data [00:08:04]Processing tag 1015 (03F7) [00:08:04]Malloc new data [00:08:04]SetTLVBufToDocument err=0 [00:08:04]Processing tag 1007 (03EF) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1014 (03F6) [00:08:04]Malloc new data [00:08:04]Processing tag 1015 (03F7) [00:08:04]Malloc new data [00:08:04]SetTLVBufToDocument err=0 [00:08:04]Processing tag 1007 (03EF) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1014 (03F6) [00:08:04]Malloc new data [00:08:04]Processing tag 1015 (03F7) [00:08:04]Malloc new data [00:08:04]SetTLVBufToDocument err=0 [00:08:04]Processing tag 1007 (03EF) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1014 (03F6) [00:08:04]Malloc new data [00:08:04]Processing tag 1015 (03F7) [00:08:04]Malloc new data [00:08:04]SetTLVBufToDocument err=0 [00:08:04]Processing tag 1007 (03EF) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1014 (03F6) [00:08:04]Malloc new data [00:08:04]Processing tag 1015 (03F7) [00:08:04]Malloc new data [00:08:04]SetTLVBufToDocument err=0 [00:08:04]Processing tag 1007 (03EF) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1014 (03F6) [00:08:04]Malloc new data [00:08:04]Processing tag 1015 (03F7) [00:08:04]Malloc new data [00:08:04]SetTLVBufToDocument err=0 [00:08:04]Processing tag 1007 (03EF) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1014 (03F6) [00:08:04]Malloc new data [00:08:04]Processing tag 1015 (03F7) [00:08:04]Malloc new data [00:08:04]SetTLVBufToDocument err=0 [00:08:04]SetTLVBufToDocument err=0 [00:08:04]SetTLVBufToDocument err=0 [00:08:04]Processing tag 1130 (046A) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1135 (046F) [00:08:04]Malloc new data [00:08:04]Processing tag 1201 (04B1) [00:08:04]Malloc new data [00:08:04]Processing tag 1136 (0470) [00:08:04]Malloc new data [00:08:04]Processing tag 1138 (0472) [00:08:04]Malloc new data [00:08:04]Processing tag 1024 (0400) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1006 (03EE) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1010 (03F2) [00:08:04]Malloc new data [00:08:04]Processing tag 1011 (03F3) [00:08:04]Malloc new data [00:08:04]SetTLVBufToDocument err=0 [00:08:04]Processing tag 1006 (03EE) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1010 (03F2) [00:08:04]Malloc new data [00:08:04]Processing tag 1011 (03F3) [00:08:04]Malloc new data [00:08:04]SetTLVBufToDocument err=0 [00:08:04]Processing tag 1007 (03EF) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1014 (03F6) [00:08:04]Malloc new data [00:08:04]Processing tag 1015 (03F7) [00:08:04]Malloc new data [00:08:04]SetTLVBufToDocument err=0 [00:08:04]Processing tag 1007 (03EF) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1014 (03F6) [00:08:04]Malloc new data [00:08:04]Processing tag 1015 (03F7) [00:08:04]Malloc new data [00:08:04]SetTLVBufToDocument err=0 [00:08:04]Processing tag 1007 (03EF) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1014 (03F6) [00:08:04]Malloc new data [00:08:04]Processing tag 1015 (03F7) [00:08:04]Malloc new data [00:08:04]SetTLVBufToDocument err=0 [00:08:04]Processing tag 1007 (03EF) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1014 (03F6) [00:08:04]Malloc new data [00:08:04]Processing tag 1015 (03F7) [00:08:04]Malloc new data [00:08:04]SetTLVBufToDocument err=0 [00:08:04]Processing tag 1007 (03EF) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1014 (03F6) [00:08:04]Malloc new data [00:08:04]Processing tag 1015 (03F7) [00:08:04]Malloc new data [00:08:04]SetTLVBufToDocument err=0 [00:08:04]Processing tag 1007 (03EF) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1014 (03F6) [00:08:04]Malloc new data [00:08:04]Processing tag 1015 (03F7) [00:08:04]Malloc new data [00:08:04]SetTLVBufToDocument err=0 [00:08:04]Processing tag 1007 (03EF) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1014 (03F6) [00:08:04]Malloc new data [00:08:04]Processing tag 1015 (03F7) [00:08:04]Malloc new data [00:08:04]SetTLVBufToDocument err=0 [00:08:04]SetTLVBufToDocument err=0 [00:08:04]SetTLVBufToDocument err=0 [00:08:04]Processing tag 1131 (046B) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1135 (046F) [00:08:04]Malloc new data [00:08:04]Processing tag 1201 (04B1) [00:08:04]Malloc new data [00:08:04]Processing tag 1136 (0470) [00:08:04]Malloc new data [00:08:04]Processing tag 1138 (0472) [00:08:04]Malloc new data [00:08:04]Processing tag 1024 (0400) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1006 (03EE) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1010 (03F2) [00:08:04]Malloc new data [00:08:04]Processing tag 1011 (03F3) [00:08:04]Malloc new data [00:08:04]SetTLVBufToDocument err=0 [00:08:04]Processing tag 1006 (03EE) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1010 (03F2) [00:08:04]Malloc new data [00:08:04]Processing tag 1011 (03F3) [00:08:04]Malloc new data [00:08:04]SetTLVBufToDocument err=0 [00:08:04]Processing tag 1007 (03EF) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1014 (03F6) [00:08:04]Malloc new data [00:08:04]Processing tag 1015 (03F7) [00:08:04]Malloc new data [00:08:04]SetTLVBufToDocument err=0 [00:08:04]Processing tag 1007 (03EF) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1014 (03F6) [00:08:04]Malloc new data [00:08:04]Processing tag 1015 (03F7) [00:08:04]Malloc new data [00:08:04]SetTLVBufToDocument err=0 [00:08:04]Processing tag 1007 (03EF) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1014 (03F6) [00:08:04]Malloc new data [00:08:04]Processing tag 1015 (03F7) [00:08:04]Malloc new data [00:08:04]SetTLVBufToDocument err=0 [00:08:04]Processing tag 1007 (03EF) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1014 (03F6) [00:08:04]Malloc new data [00:08:04]Processing tag 1015 (03F7) [00:08:04]Malloc new data [00:08:04]SetTLVBufToDocument err=0 [00:08:04]Processing tag 1007 (03EF) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1014 (03F6) [00:08:04]Malloc new data [00:08:04]Processing tag 1015 (03F7) [00:08:04]Malloc new data [00:08:04]SetTLVBufToDocument err=0 [00:08:04]Processing tag 1007 (03EF) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1014 (03F6) [00:08:04]Malloc new data [00:08:04]Processing tag 1015 (03F7) [00:08:04]Malloc new data [00:08:04]SetTLVBufToDocument err=0 [00:08:04]Processing tag 1007 (03EF) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1014 (03F6) [00:08:04]Malloc new data [00:08:04]Processing tag 1015 (03F7) [00:08:04]Malloc new data [00:08:04]SetTLVBufToDocument err=0 [00:08:04]SetTLVBufToDocument err=0 [00:08:04]SetTLVBufToDocument err=0 [00:08:04]Processing tag 1132 (046C) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1135 (046F) [00:08:04]Malloc new data [00:08:04]Processing tag 1201 (04B1) [00:08:04]Malloc new data [00:08:04]Processing tag 1136 (0470) [00:08:04]Malloc new data [00:08:04]Processing tag 1138 (0472) [00:08:04]Malloc new data [00:08:04]Processing tag 1024 (0400) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1006 (03EE) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1010 (03F2) [00:08:04]Malloc new data [00:08:04]Processing tag 1011 (03F3) [00:08:04]Malloc new data [00:08:04]SetTLVBufToDocument err=0 [00:08:04]Processing tag 1006 (03EE) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1010 (03F2) [00:08:04]Malloc new data [00:08:04]Processing tag 1011 (03F3) [00:08:04]Malloc new data [00:08:04]SetTLVBufToDocument err=0 [00:08:04]Processing tag 1007 (03EF) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1014 (03F6) [00:08:04]Malloc new data [00:08:04]Processing tag 1015 (03F7) [00:08:04]Malloc new data [00:08:04]SetTLVBufToDocument err=0 [00:08:04]Processing tag 1007 (03EF) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1014 (03F6) [00:08:04]Malloc new data [00:08:04]Processing tag 1015 (03F7) [00:08:04]Malloc new data [00:08:04]SetTLVBufToDocument err=0 [00:08:04]Processing tag 1007 (03EF) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1014 (03F6) [00:08:04]Malloc new data [00:08:04]Processing tag 1015 (03F7) [00:08:04]Malloc new data [00:08:04]SetTLVBufToDocument err=0 [00:08:04]Processing tag 1007 (03EF) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1014 (03F6) [00:08:04]Malloc new data [00:08:04]Processing tag 1015 (03F7) [00:08:04]Malloc new data [00:08:04]SetTLVBufToDocument err=0 [00:08:04]Processing tag 1007 (03EF) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1014 (03F6) [00:08:04]Malloc new data [00:08:04]Processing tag 1015 (03F7) [00:08:04]Malloc new data [00:08:04]SetTLVBufToDocument err=0 [00:08:04]Processing tag 1007 (03EF) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1014 (03F6) [00:08:04]Malloc new data [00:08:04]Processing tag 1015 (03F7) [00:08:04]Malloc new data [00:08:04]SetTLVBufToDocument err=0 [00:08:04]Processing tag 1007 (03EF) [00:08:04]Load OK [00:08:04]SetTLVBufToDocument [00:08:04]Processing tag 1014 (03F6) [00:08:04]Malloc new data [00:08:04]Processing tag 1015 (03F7) [00:08:04]Malloc new data [00:08:04]SetTLVBufToDocument err=0 [00:08:04]SetTLVBufToDocument err=0 [00:08:04]SetTLVBufToDocument err=0 [00:08:04]Processing tag 1133 (046D) [00:08:04]Malloc new data [00:08:04]SetTLVBufToDocument err=0 [00:08:04]SetTLVBufToDocument err=0 [00:08:04]Malloc new data [00:08:04]SAM_PROTO_GetFMData [00:08:04]wFMCommunicate request_size=4 [00:08:04]MH_SAM_APDU [00:08:04]CAPDU: 80 13 03 00 [00:08:04]Write to MH i2c: E2 08 00 1E 01 80 13 03 00 00 00 00 00 9E [00:08:04]Write i2c OK [00:08:04]MH_I2C_Read... [00:08:05]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:08:05]Read from MH i2c: E2 [00:08:05]MH_I2C_Read... [00:08:05]Read from MH i2c: E2 FD 00 [00:08:05]MH_I2C_Read... [00:08:05]Read from MH i2c: E2 FD 00 1E 01 00 C5 04 85 04 C1 04 6E 04 04 00 66 0E 01 00 69 04 A3 00 6F 04 04 00 2B 0B 01 00 B1 04 05 00 B0 AA 30 E2 01 70 04 05 00 14 8D EC 57 01 72 04 04 00 9C 1D 44 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 16 72 37 33 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 7D 8F 44 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 3B 03 00 00 B1 04 04 00 9C 2A 91 11 70 04 04 00 9C 2A 91 11 72 04 00 00 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 5D 9E DD 01 EF 03 09 90 00 74 [00:08:05]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 66 0E 01 00 69 04 A3 00 6F 04 04 00 2B 0B 01 00 B1 04 05 00 B0 AA 30 E2 01 70 04 05 00 14 8D EC 57 01 72 04 04 00 9C 1D 44 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 16 72 37 33 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 7D 8F 44 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 3B 03 00 00 B1 04 04 00 9C 2A 91 11 70 04 04 00 9C 2A 91 11 72 04 00 00 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 5D 9E DD 01 EF 03 09 90 00 [00:08:05]wFMCommunicate OK [00:08:05]wFMCommunicate request_size=4 [00:08:05]MH_SAM_APDU [00:08:05]CAPDU: 80 17 00 00 [00:08:05]Write to MH i2c: E2 08 00 1F 01 80 17 00 00 00 00 00 00 A0 [00:08:05]Write i2c OK [00:08:05]MH_I2C_Read... [00:08:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:05]Read from MH i2c: E2 [00:08:05]MH_I2C_Read... [00:08:05]Read from MH i2c: E2 FD 00 [00:08:05]MH_I2C_Read... [00:08:05]Read from MH i2c: E2 FD 00 1F 01 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F7 CC 27 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 40 [00:08:05]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F7 CC 27 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:05]wFMCommunicate OK [00:08:05]wFMCommunicate request_size=4 [00:08:05]MH_SAM_APDU [00:08:05]CAPDU: 80 17 00 00 [00:08:05]Write to MH i2c: E2 08 00 20 01 80 17 00 00 00 00 00 00 A1 [00:08:05]Write i2c OK [00:08:05]MH_I2C_Read... [00:08:05]OFD Sender: No OFD packet to send [00:08:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:06]Read from MH i2c: E2 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 FD 00 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 FD 00 20 01 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B3 [00:08:06]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:06]wFMCommunicate OK [00:08:06]wFMCommunicate request_size=4 [00:08:06]MH_SAM_APDU [00:08:06]CAPDU: 80 17 00 00 [00:08:06]Write to MH i2c: E2 08 00 21 01 80 17 00 00 00 00 00 00 A2 [00:08:06]Write i2c OK [00:08:06]MH_I2C_Read... [00:08:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:06]Read from MH i2c: E2 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 FD 00 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 FD 00 21 01 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2E [00:08:06]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:06]wFMCommunicate OK [00:08:06]wFMCommunicate request_size=4 [00:08:06]MH_SAM_APDU [00:08:06]CAPDU: 80 17 00 00 [00:08:06]Write to MH i2c: E2 08 00 22 01 80 17 00 00 00 00 00 00 A3 [00:08:06]Write i2c OK [00:08:06]MH_I2C_Read... [00:08:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:08:07]Read from MH i2c: E2 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 E2 00 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 E2 00 22 01 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 81 [00:08:07]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:08:07]wFMCommunicate OK [00:08:07]SAM_PROTO_GetFMData done [00:08:07]FM_GetFMData:85 04 C1 04 6E 04 04 00 66 0E 01 00 69 04 A3 00 6F 04 04 00 2B 0B 01 00 B1 04 05 00 B0 AA 30 E2 01 70 04 05 00 14 8D EC 57 01 72 04 04 00 9C 1D 44 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 16 72 37 33 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 7D 8F 44 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 3B 03 00 00 B1 04 04 00 9C 2A 91 11 70 04 04 00 9C 2A 91 11 72 04 00 00 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 5D 9E DD 01 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 F7 CC 27 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:08:07]oper:6F 04 04 00 2B 0B 01 00 B1 04 05 00 B0 AA 30 E2 01 70 04 05 00 14 8D EC 57 01 72 04 04 00 9C 1D 44 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 16 72 37 33 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 7D 8F 44 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:08:08]total:B0 AA 30 E2 01 [00:08:08]Malloc new data [00:08:08]oper:6F 04 04 00 3B 03 00 00 B1 04 04 00 9C 2A 91 11 70 04 04 00 9C 2A 91 11 72 04 00 00 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 5D 9E DD 01 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 F7 CC 27 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:08:08]total:9C 2A 91 11 [00:08:08]Malloc new data [00:08:08]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:08:08]total: [00:08:08]Malloc new data [00:08:08]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:08:08]total: [00:08:08]Malloc new data [00:08:08]KKMPrepareXReportFMData err=0 [00:08:08]Х отчет ИНН: 02508201610067 Кассир: Калмаева Г. 21.10.2024 00:08 Смена: 10 РНМ: 0000000000156251 ЗНМ: 0300000167 СНО: Общий режим Всего чеков: 453 ИТОГИ ПРИХОД Чеков: 450 Общий итог: 532463.71 Итого наличными: 460017.00 Итого безнал.: 72446.71 НДС 0% : 0.00 НДС 12% : 56558.39 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 4713.02 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 3 Общий итог: 10141.00 Итого наличными: 10141.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 1077.01 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 89.75 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 449876.00 НС Приход: 80898075.36 НС Возвр.Прихода: 2947263.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000963346 [00:08:08]StoreToDocumentArchive [00:08:08]MH_GetDate [00:08:08]Write to MH i2c: F0 00 00 23 01 13 [00:08:08]Write i2c OK [00:08:08]MH_I2C_Read... [00:08:08]Read from MH i2c: F0 [00:08:08]MH_I2C_Read... [00:08:08]Read from MH i2c: F0 09 00 [00:08:08]MH_I2C_Read... [00:08:08]Read from MH i2c: F0 09 00 23 01 00 69 9B 15 67 6B 98 1E 66 23 [00:08:08]shift 10 fd 1729469289 [00:08:08]Create dir for shift 0010 [00:08:08]save to /storage/0010/doc_1729469289 [00:08:08]save last doc name /storage/0010/doc_1729469289 to /storage/kkm_last_doc_name [00:08:08]save OK [00:08:08]Clear old archive folders... [00:08:08]NVStorageSaveData kkm_last_timestamp [00:08:08]File name is /storage/kkm_last_timestamp [00:08:08]Write 4 bytes [00:08:08]NVStorageSaveData done [00:08:08]ExternCall_PrintAddStr [00:08:08]wPrintStart [00:08:08]Write to MH i2c: 01 00 00 24 01 25 [00:08:08]Write i2c OK [00:08:08]MH_I2C_Read... [00:08:08]Read from MH i2c: 01 [00:08:08]MH_I2C_Read... [00:08:08]Read from MH i2c: 01 07 00 [00:08:08]MH_I2C_Read... [00:08:08]Read from MH i2c: 01 07 00 24 01 00 00 00 00 00 FF 0F 3A [00:08:08]RasterBufferAndPrint [00:08:08]line Х отчет [00:08:08]line ИНН: 02508201610067 [00:08:08]line Кассир: Калмаева Г. [00:08:08]line 21.10.2024 00:08 [00:08:08]line Смена: 10 [00:08:08]line РНМ: 0000000000156251 [00:08:08]line ЗНМ: 0300000167 [00:08:08]line СНО: Общий режим [00:08:08]line Всего чеков: 453 [00:08:08]line ИТОГИ ПРИХОД [00:08:08]line Чеков: 450 [00:08:08]line Общий итог: 532463.71 [00:08:08]line Итого наличными: 460017.00 [00:08:08]line Итого безнал.: 72446.71 [00:08:08]line НДС 0% : 0.00 [00:08:08]line НДС 12% : 56558.39 [00:08:08]line НСП 0% : 0.00 [00:08:08]line НСП 1,50% : 0.00 [00:08:08]line НСП 0,50% : 0.00 [00:08:08]line НСП 5% : 0.00 [00:08:08]line НСП 3% : 0.00 [00:08:08]line НСП 2% : 0.00 [00:08:08]line НСП 1% : 4713.02 [00:08:08]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:08:08]line Чеков: 3 [00:08:08]line Общий итог: 10141.00 [00:08:08]line Итого наличными: 10141.00 [00:08:08]line Итого безнал.: 0.00 [00:08:08]line НДС 0% : 0.00 [00:08:08]line НДС 12% : 1077.01 [00:08:08]line НСП 0% : 0.00 [00:08:08]line НСП 1,50% : 0.00 [00:08:08]line НСП 0,50% : 0.00 [00:08:08]line НСП 5% : 0.00 [00:08:08]line НСП 3% : 0.00 [00:08:08]line НСП 2% : 0.00 [00:08:08]line НСП 1% : 89.75 [00:08:08]line ИТОГИ РАСХОД [00:08:08]line Чеков: 0 [00:08:08]line Общий итог: 0.00 [00:08:08]line Итого наличными: 0.00 [00:08:08]line Итого безнал.: 0.00 [00:08:08]line НДС 0% : 0.00 [00:08:08]line НДС 12% : 0.00 [00:08:08]line НСП 0% : 0.00 [00:08:08]line НСП 1,50% : 0.00 [00:08:08]line НСП 0,50% : 0.00 [00:08:08]line НСП 5% : 0.00 [00:08:08]line НСП 3% : 0.00 [00:08:08]line НСП 2% : 0.00 [00:08:08]line НСП 1% : 0.00 [00:08:08]line ИТОГИ ВОЗВРАТ РАСХОДА [00:08:08]line Чеков: 0 [00:08:08]line Общий итог: 0.00 [00:08:08]line Итого наличными: 0.00 [00:08:08]line Итого безнал.: 0.00 [00:08:08]line НДС 0% : 0.00 [00:08:08]line НДС 12% : 0.00 [00:08:08]line НСП 0% : 0.00 [00:08:08]line НСП 1,50% : 0.00 [00:08:08]line НСП 0,50% : 0.00 [00:08:08]line НСП 5% : 0.00 [00:08:08]line НСП 3% : 0.00 [00:08:08]line НСП 2% : 0.00 [00:08:08]line НСП 1% : 0.00 [00:08:08]line Сумма внесений: 0.00 [00:08:08]line Сумма выплат: 0.00 [00:08:08]line Нал. в кассе: 449876.00 [00:08:08]line НС Приход: 80898075.36 [00:08:08]line НС Возвр.Прихода: 2947263.00 [00:08:08]line НС Расход: 0.00 [00:08:08]line НС Возвр.Расхода: 0.00 [00:08:08]line ФМ: 0000000000963346 [00:08:08]written 0, free lines is 4095 [00:08:09]Write to MH i2c: 01 00 00 6F 01 70 [00:08:09]Write i2c OK [00:08:09]MH_I2C_Read... [00:08:09]Read from MH i2c: 01 [00:08:09]MH_I2C_Read... [00:08:09]Read from MH i2c: 01 07 00 [00:08:09]MH_I2C_Read... [00:08:09]Read from MH i2c: 01 07 00 6F 01 00 00 00 00 00 0C 0B 8E [00:08:09]RasterBufferAndPrint [00:08:09]line [00:08:09]line [00:08:09]line [00:08:09]line [00:08:09]line [00:08:09]written 0, free lines is 2864 [00:08:09]MH_Cut [00:08:09]Write to MH i2c: D1 01 00 76 01 01 49 [00:08:09]Write i2c OK [00:08:09]MH_I2C_Read... [00:08:09]Read from MH i2c: D1 [00:08:09]MH_I2C_Read... [00:08:09]Read from MH i2c: D1 01 00 [00:08:09]MH_I2C_Read... [00:08:09]Read from MH i2c: D1 01 00 76 01 00 48 [00:08:09]Write to MH i2c: 01 00 00 77 01 78 [00:08:09]Write i2c OK [00:08:09]MH_I2C_Read... [00:08:10]*** Cut start [00:08:10]*** Partial cut [00:08:10]*** CUTSNS_PIN = 1 [00:08:10]*** CUTSNS_PIN = 0 [00:08:10]*** Brake cut motor [00:08:10]Read from MH i2c: 01 [00:08:10]MH_I2C_Read... [00:08:10]*** Stop cut motor [00:08:10]*** Cut end [00:08:10]Read from MH i2c: 01 07 00 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: 01 07 00 77 01 00 00 00 00 00 FF 0F 8D [00:08:10]process_action x_report done [00:08:10]requested_data is exist [00:08:10]produce_requested_data [00:08:10]requested_item fd.num is exist - process it [00:08:10]SAM_PROTO_GetFieldsCounters [00:08:10]wFMCommunicate request_size=4 [00:08:10]MH_SAM_APDU [00:08:10]CAPDU: 80 13 00 00 [00:08:10]Write to MH i2c: E2 08 00 78 01 80 13 00 00 00 00 00 00 F5 [00:08:10]Write i2c OK [00:08:10]MH_I2C_Read... [00:08:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:08:10]Read from MH i2c: E2 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 62 00 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 62 00 78 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E8 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C5 01 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C6 01 00 00 19 04 04 00 00 00 00 00 90 00 1B [00:08:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E8 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C5 01 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C6 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:08:11]wFMCommunicate OK [00:08:11]SAM_PROTO_GetFieldsCounters done [00:08:11]requested_item shift.num is exist - process it [00:08:11]requested_item shift.opened is exist - process it [00:08:11]req_shift_opened [00:08:11]FM_GetShiftState [00:08:11]SAM_PROTO_GetShiftState [00:08:11]wFMCommunicate request_size=4 [00:08:11]MH_SAM_APDU [00:08:11]CAPDU: 80 13 01 00 [00:08:11]Write to MH i2c: E2 08 00 79 01 80 13 01 00 00 00 00 00 F7 [00:08:11]OFD Sender: No OFD packet to send [00:08:11]Write i2c OK [00:08:11]MH_I2C_Read... [00:08:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:11]Read from MH i2c: E2 [00:08:11]MH_I2C_Read... [00:08:11]Read from MH i2c: E2 0E 00 [00:08:11]MH_I2C_Read... [00:08:11]Read from MH i2c: E2 0E 00 79 01 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 FD [00:08:11]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [00:08:11]wFMCommunicate OK [00:08:11]SAM_PROTO_GetShiftState done [00:08:11]FM_GetShiftState done [00:08:11]req_shift_opened done [00:08:11]requested_item shift.open_date is exist - process it [00:08:11]req_shift_open_date [00:08:11]req_shift_open_date done [00:08:11]produce_requested_data done [00:08:11]produce_requested_data return {"fd.num":69608,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [00:08:11]process_action_free x_report [00:08:11]json_value_free [00:08:11]json_value_free done [00:08:11]process_json_proto returns [00:08:11]Send response to host [00:08:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":69608,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [00:08:11]free response buf [00:08:11]execute_script done [00:08:11]execute_script returns [00:08:11]free content buf [00:08:11]Sock 8.Close socket [00:08:11]Sock 8.Thread stoped [00:08:16]OFD Sender: No OFD packet to send [00:08:21]OFD Sender: No OFD packet to send [00:08:26]OFD Sender: No OFD packet to send [00:08:31]OFD Sender: No OFD packet to send [00:08:36]OFD Sender: No OFD packet to send [00:08:41]OFD Sender: No OFD packet to send [00:08:46]OFD Sender: No OFD packet to send [00:08:51]OFD Sender: No OFD packet to send [00:08:53]accept exits with 9 [00:08:53]New connection [00:08:53]New thread 3067313508 created [00:08:53]Thread 3067456868 joined [00:08:53]Waiting for new connection... [00:08:53] Sock 9.Parse request [00:08:53]Sock 9.Check first char [00:08:53]Sock 9.First char is OK [00:08:53]request: POST /json_proto HTTP/1.0 [00:08:53]Method: POST [00:08:53]URL: /json_proto [00:08:53]Method is POST - this is cgi request [00:08:53]url: /json_proto [00:08:53]query_string will be loaded in cgi processing [00:08:53]execute_cgi json_proto POST (null) [00:08:53]execute_cgi path=json_proto method=POST [00:08:53]POST find Content-Length [00:08:53]Host: 172.17.50.3:8080 [00:08:53]Content-Length: 215 [00:08:53]Content-Type: application/json [00:08:53] [00:08:53]POST finish read [00:08:53]Found Content-Length = 215 [00:08:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:53]execute_script... [00:08:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:53]POST & json_proto [00:08:53]process_json_proto [00:08:53]json parsed OK: [00:08:53]protocol is kg_v1.0 [00:08:53]action value=get_value [00:08:53]process_action get_value [00:08:53]cmd_get_value [00:08:53]process_action get_value done [00:08:53]requested_data is exist [00:08:53]produce_requested_data [00:08:53]requested_item kkm.sn is exist - process it [00:08:53]requested_item kkm.ver is exist - process it [00:08:53]requested_item fm.sn is exist - process it [00:08:53]wFMCommunicate request_size=4 [00:08:53]MH_SAM_APDU [00:08:53]CAPDU: 80 11 00 00 [00:08:53]Write to MH i2c: E2 08 00 7A 01 80 11 00 00 00 00 00 00 F5 [00:08:53]Write i2c OK [00:08:53]MH_I2C_Read... [00:08:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:08:53]Read from MH i2c: E2 [00:08:53]MH_I2C_Read... [00:08:53]Read from MH i2c: E2 17 00 [00:08:53]MH_I2C_Read... [00:08:53]Read from MH i2c: E2 17 00 7A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 47 [00:08:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:08:53]wFMCommunicate OK [00:08:53]requested_item fd.num is exist - process it [00:08:53]SAM_PROTO_GetFieldsCounters [00:08:53]wFMCommunicate request_size=4 [00:08:53]MH_SAM_APDU [00:08:53]CAPDU: 80 13 00 00 [00:08:53]Write to MH i2c: E2 08 00 7B 01 80 13 00 00 00 00 00 00 F8 [00:08:53]Write i2c OK [00:08:53]MH_I2C_Read... [00:08:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:08:53]Read from MH i2c: E2 [00:08:53]MH_I2C_Read... [00:08:53]Read from MH i2c: E2 62 00 [00:08:53]MH_I2C_Read... [00:08:53]Read from MH i2c: E2 62 00 7B 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E8 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C5 01 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C6 01 00 00 19 04 04 00 00 00 00 00 90 00 1E [00:08:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E8 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C5 01 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C6 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:08:53]wFMCommunicate OK [00:08:53]SAM_PROTO_GetFieldsCounters done [00:08:53]requested_item shift.num is exist - process it [00:08:53]requested_item shift.opened is exist - process it [00:08:53]req_shift_opened [00:08:53]FM_GetShiftState [00:08:53]SAM_PROTO_GetShiftState [00:08:53]wFMCommunicate request_size=4 [00:08:53]MH_SAM_APDU [00:08:53]CAPDU: 80 13 01 00 [00:08:53]Write to MH i2c: E2 08 00 7C 01 80 13 01 00 00 00 00 00 FA [00:08:53]Write i2c OK [00:08:53]MH_I2C_Read... [00:08:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:53]Read from MH i2c: E2 [00:08:53]MH_I2C_Read... [00:08:53]Read from MH i2c: E2 0E 00 [00:08:53]MH_I2C_Read... [00:08:53]Read from MH i2c: E2 0E 00 7C 01 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 00 [00:08:53]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [00:08:53]wFMCommunicate OK [00:08:53]SAM_PROTO_GetShiftState done [00:08:53]FM_GetShiftState done [00:08:53]req_shift_opened done [00:08:53]requested_item shift.open_date is exist - process it [00:08:53]req_shift_open_date [00:08:53]req_shift_open_date done [00:08:53]produce_requested_data done [00:08:53]produce_requested_data return {"kkm.sn":"0300000167","kkm.ver":"v1.0","fm.sn":"0000000000963346","fd.num":69608,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220} [00:08:53]process_action_free get_value [00:08:53]json_value_free [00:08:53]json_value_free done [00:08:53]process_json_proto returns [00:08:53]Send response to host [00:08:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000167","kkm.ver":"v1.0","fm.sn":"0000000000963346","fd.num":69608,"shift.num":193,"shift.opened":1,"shift.open_date":1729383220}}} [00:08:53]free response buf [00:08:53]execute_script done [00:08:53]execute_script returns [00:08:53]free content buf [00:08:53]Sock 9.Close socket [00:08:53]Sock 9.Thread stoped [00:08:53]accept exits with 8 [00:08:53]New connection [00:08:53]New thread 3067456868 created [00:08:53]Thread 3067313508 joined [00:08:53]Waiting for new connection... [00:08:53] Sock 8.Parse request [00:08:53]Sock 8.Check first char [00:08:53]Sock 8.First char is OK [00:08:53]request: POST /json_proto HTTP/1.0 [00:08:53]Method: POST [00:08:53]URL: /json_proto [00:08:53]Method is POST - this is cgi request [00:08:53]url: /json_proto [00:08:53]query_string will be loaded in cgi processing [00:08:53]execute_cgi json_proto POST (null) [00:08:53]execute_cgi path=json_proto method=POST [00:08:53]POST find Content-Length [00:08:53]Host: 172.17.50.3:8080 [00:08:53]Content-Length: 331 [00:08:53]Content-Type: application/json [00:08:53] [00:08:53]POST finish read [00:08:53]Found Content-Length = 331 [00:08:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:08:53]execute_script... [00:08: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" ] } } [00:08:53]POST & json_proto [00:08:53]process_json_proto [00:08:53]json parsed OK: [00:08:53]protocol is kg_v1.0 [00:08:53]action value=get_value [00:08:53]process_action get_value [00:08:53]cmd_get_value [00:08:53]process_action get_value done [00:08:53]requested_data is exist [00:08:53]produce_requested_data [00:08:53]requested_item fm.sale.total is exist - process it [00:08:53]SAM_PROTO_GetFMData [00:08:53]wFMCommunicate request_size=4 [00:08:53]MH_SAM_APDU [00:08:53]CAPDU: 80 13 03 00 [00:08:53]Write to MH i2c: E2 08 00 7D 01 80 13 03 00 00 00 00 00 FD [00:08:53]Write i2c OK [00:08:53]MH_I2C_Read... [00:08:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:08:54]Read from MH i2c: E2 [00:08:54]MH_I2C_Read... [00:08:54]Read from MH i2c: E2 FD 00 [00:08:54]MH_I2C_Read... [00:08:54]Read from MH i2c: E2 FD 00 7D 01 00 C5 04 85 04 C1 04 6E 04 04 00 66 0E 01 00 69 04 A3 00 6F 04 04 00 2B 0B 01 00 B1 04 05 00 B0 AA 30 E2 01 70 04 05 00 14 8D EC 57 01 72 04 04 00 9C 1D 44 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 16 72 37 33 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 7D 8F 44 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 3B 03 00 00 B1 04 04 00 9C 2A 91 11 70 04 04 00 9C 2A 91 11 72 04 00 00 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 5D 9E DD 01 EF 03 09 90 00 D3 [00:08:54]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 66 0E 01 00 69 04 A3 00 6F 04 04 00 2B 0B 01 00 B1 04 05 00 B0 AA 30 E2 01 70 04 05 00 14 8D EC 57 01 72 04 04 00 9C 1D 44 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 16 72 37 33 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 7D 8F 44 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 3B 03 00 00 B1 04 04 00 9C 2A 91 11 70 04 04 00 9C 2A 91 11 72 04 00 00 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 5D 9E DD 01 EF 03 09 90 00 [00:08:54]wFMCommunicate OK [00:08:54]wFMCommunicate request_size=4 [00:08:54]MH_SAM_APDU [00:08:54]CAPDU: 80 17 00 00 [00:08:54]Write to MH i2c: E2 08 00 7E 01 80 17 00 00 00 00 00 00 FF [00:08:54]Write i2c OK [00:08:54]MH_I2C_Read... [00:08:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:54]Read from MH i2c: E2 [00:08:54]MH_I2C_Read... [00:08:54]Read from MH i2c: E2 FD 00 [00:08:54]MH_I2C_Read... [00:08:54]Read from MH i2c: E2 FD 00 7E 01 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F7 CC 27 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9F [00:08:54]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F7 CC 27 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:54]wFMCommunicate OK [00:08:54]wFMCommunicate request_size=4 [00:08:54]MH_SAM_APDU [00:08:54]CAPDU: 80 17 00 00 [00:08:54]Write to MH i2c: E2 08 00 7F 01 80 17 00 00 00 00 00 00 00 [00:08:54]Write i2c OK [00:08:54]MH_I2C_Read... [00:08:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:54]Read from MH i2c: E2 [00:08:54]MH_I2C_Read... [00:08:54]Read from MH i2c: E2 FD 00 [00:08:54]MH_I2C_Read... [00:08:54]Read from MH i2c: E2 FD 00 7F 01 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 12 [00:08:54]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:54]wFMCommunicate OK [00:08:54]wFMCommunicate request_size=4 [00:08:54]MH_SAM_APDU [00:08:54]CAPDU: 80 17 00 00 [00:08:54]Write to MH i2c: E2 08 00 80 01 80 17 00 00 00 00 00 00 01 [00:08:54]Write i2c OK [00:08:54]MH_I2C_Read... [00:08:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:54]Read from MH i2c: E2 [00:08:54]MH_I2C_Read... [00:08:54]Read from MH i2c: E2 FD 00 [00:08:54]MH_I2C_Read... [00:08:54]Read from MH i2c: E2 FD 00 80 01 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8D [00:08:54]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:54]wFMCommunicate OK [00:08:54]wFMCommunicate request_size=4 [00:08:54]MH_SAM_APDU [00:08:54]CAPDU: 80 17 00 00 [00:08:54]Write to MH i2c: E2 08 00 81 01 80 17 00 00 00 00 00 00 02 [00:08:54]Write i2c OK [00:08:54]MH_I2C_Read... [00:08:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:08:55]Read from MH i2c: E2 [00:08:55]MH_I2C_Read... [00:08:55]Read from MH i2c: E2 E2 00 [00:08:55]MH_I2C_Read... [00:08:55]Read from MH i2c: E2 E2 00 81 01 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E0 [00:08:55]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:08:55]wFMCommunicate OK [00:08:55]SAM_PROTO_GetFMData done [00:08:55]requested_item fm.sale_refund.total is exist - process it [00:08:55]requested_item fm.buy.total is exist - process it [00:08:55]requested_item shift.sale.total is exist - process it [00:08:55]SAM_PROTO_GetShiftData [00:08:55]wFMCommunicate request_size=4 [00:08:55]MH_SAM_APDU [00:08:55]CAPDU: 80 13 02 00 [00:08:55]Write to MH i2c: E2 08 00 82 01 80 13 02 00 00 00 00 00 01 [00:08:55]Write i2c OK [00:08:55]MH_I2C_Read... [00:08:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:08:55]Read from MH i2c: E2 [00:08:55]MH_I2C_Read... [00:08:55]Read from MH i2c: E2 FD 00 [00:08:55]MH_I2C_Read... [00:08:55]Read from MH i2c: E2 FD 00 82 01 00 BC 04 AA 04 B8 04 6E 04 04 00 C5 01 00 00 69 04 9E 00 6F 04 04 00 C2 01 00 00 B1 04 04 00 A3 79 2C 03 70 04 04 00 24 EE BD 02 72 04 03 00 7F 8B 6E 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 1F 4D 56 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 06 31 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 54 79 0F 70 04 03 00 54 79 0F 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B5 A4 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 47 [00:08:55]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 C5 01 00 00 69 04 9E 00 6F 04 04 00 C2 01 00 00 B1 04 04 00 A3 79 2C 03 70 04 04 00 24 EE BD 02 72 04 03 00 7F 8B 6E 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 1F 4D 56 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 06 31 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 54 79 0F 70 04 03 00 54 79 0F 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B5 A4 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:08:55]wFMCommunicate OK [00:08:55]wFMCommunicate request_size=4 [00:08:55]MH_SAM_APDU [00:08:55]CAPDU: 80 17 00 00 [00:08:55]Write to MH i2c: E2 08 00 83 01 80 17 00 00 00 00 00 00 04 [00:08:55]Write i2c OK [00:08:55]MH_I2C_Read... [00:08:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:55]Read from MH i2c: E2 [00:08:55]MH_I2C_Read... [00:08:55]Read from MH i2c: E2 FD 00 [00:08:55]MH_I2C_Read... [00:08:55]Read from MH i2c: E2 FD 00 83 01 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0F 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E0 [00:08:55]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0F 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:55]wFMCommunicate OK [00:08:55]wFMCommunicate request_size=4 [00:08:55]MH_SAM_APDU [00:08:55]CAPDU: 80 17 00 00 [00:08:55]Write to MH i2c: E2 08 00 84 01 80 17 00 00 00 00 00 00 05 [00:08:55]Write i2c OK [00:08:55]MH_I2C_Read... [00:08:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:56]Read from MH i2c: E2 [00:08:56]MH_I2C_Read... [00:08:56]Read from MH i2c: E2 FD 00 [00:08:56]MH_I2C_Read... [00:08:56]Read from MH i2c: E2 FD 00 84 01 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2E [00:08:56]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:56]wFMCommunicate OK [00:08:56]wFMCommunicate request_size=4 [00:08:56]MH_SAM_APDU [00:08:56]CAPDU: 80 17 00 00 [00:08:56]Write to MH i2c: E2 08 00 85 01 80 17 00 00 00 00 00 00 06 [00:08:56]OFD Sender: No OFD packet to send [00:08:56]Write i2c OK [00:08:56]MH_I2C_Read... [00:08:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:56]Read from MH i2c: E2 [00:08:56]MH_I2C_Read... [00:08:56]Read from MH i2c: E2 FD 00 [00:08:56]MH_I2C_Read... [00:08:56]Read from MH i2c: E2 FD 00 85 01 00 03 00 00 EF 03 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 90 00 87 [00:08:56]RAPDU: 03 00 00 EF 03 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 90 00 [00:08:56]wFMCommunicate OK [00:08:56]wFMCommunicate request_size=4 [00:08:56]MH_SAM_APDU [00:08:56]CAPDU: 80 17 00 00 [00:08:56]Write to MH i2c: E2 08 00 86 01 80 17 00 00 00 00 00 00 07 [00:08:56]Write i2c OK [00:08:56]MH_I2C_Read... [00:08:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:08:56]Read from MH i2c: E2 [00:08:56]MH_I2C_Read... [00:08:56]Read from MH i2c: E2 D9 00 [00:08:56]MH_I2C_Read... [00:08:56]Read from MH i2c: E2 D9 00 86 01 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 [00:08:56]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:08:56]wFMCommunicate OK [00:08:56]SAM_PROTO_GetShiftData done [00:08:56]requested_item shift.sale.total_cash is exist - process it [00:08:56]requested_item shift.sale_refund.total is exist - process it [00:08:56]requested_item shift.sale_refund.total_cash is exist - process it [00:08:56]requested_item shift.buy.total is exist - process it [00:08:56]requested_item shift.buy.total_cash is exist - process it [00:08:56]produce_requested_data done [00:08:56]produce_requested_data return {"fm.sale.total":80898075.36,"fm.sale_refund.total":2947263.00,"fm.buy.total":0.00,"shift.sale.total":532463.71,"shift.sale.total_cash":460017.00,"shift.sale_refund.total":10141.00,"shift.sale_refund.total_cash":10141.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:08:56]process_action_free get_value [00:08:56]json_value_free [00:08:56]json_value_free done [00:08:56]process_json_proto returns [00:08:56]Send response to host [00:08:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":80898075.36,"fm.sale_refund.total":2947263.00,"fm.buy.total":0.00,"shift.sale.total":532463.71,"shift.sale.total_cash":460017.00,"shift.sale_refund.total":10141.00,"shift.sale_refund.total_cash":10141.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:08:56]free response buf [00:08:56]execute_script done [00:08:56]execute_script returns [00:08:56]free content buf [00:08:56]Sock 8.Close socket [00:08:56]Sock 8.Thread stoped [00:08:57]accept exits with 9 [00:08:57]New connection [00:08:57]New thread 3067313508 created [00:08:57]Thread 3067456868 joined [00:08:57]Waiting for new connection... [00:08:57] Sock 9.Parse request [00:08:57]Sock 9.Check first char [00:08:57]Sock 9.First char is OK [00:08:57]request: POST /json_proto HTTP/1.0 [00:08:57]Method: POST [00:08:57]URL: /json_proto [00:08:57]Method is POST - this is cgi request [00:08:57]url: /json_proto [00:08:57]query_string will be loaded in cgi processing [00:08:57]execute_cgi json_proto POST (null) [00:08:57]execute_cgi path=json_proto method=POST [00:08:57]POST find Content-Length [00:08:57]Host: 172.17.50.3:8080 [00:08:57]Content-Length: 331 [00:08:57]Content-Type: application/json [00:08:57] [00:08:57]POST finish read [00:08:57]Found Content-Length = 331 [00:08:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:08:57]execute_script... [00:08: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" ] } } [00:08:57]POST & json_proto [00:08:57]process_json_proto [00:08:57]json parsed OK: [00:08:57]protocol is kg_v1.0 [00:08:57]action value=get_value [00:08:57]process_action get_value [00:08:57]cmd_get_value [00:08:57]process_action get_value done [00:08:57]requested_data is exist [00:08:57]produce_requested_data [00:08:57]requested_item fm.sale.total is exist - process it [00:08:57]SAM_PROTO_GetFMData [00:08:57]wFMCommunicate request_size=4 [00:08:57]MH_SAM_APDU [00:08:57]CAPDU: 80 13 03 00 [00:08:57]Write to MH i2c: E2 08 00 87 01 80 13 03 00 00 00 00 00 07 [00:08:57]Write i2c OK [00:08:57]MH_I2C_Read... [00:08:57]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:08:57]Read from MH i2c: E2 [00:08:57]MH_I2C_Read... [00:08:57]Read from MH i2c: E2 FD 00 [00:08:57]MH_I2C_Read... [00:08:57]Read from MH i2c: E2 FD 00 87 01 00 C5 04 85 04 C1 04 6E 04 04 00 66 0E 01 00 69 04 A3 00 6F 04 04 00 2B 0B 01 00 B1 04 05 00 B0 AA 30 E2 01 70 04 05 00 14 8D EC 57 01 72 04 04 00 9C 1D 44 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 16 72 37 33 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 7D 8F 44 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 3B 03 00 00 B1 04 04 00 9C 2A 91 11 70 04 04 00 9C 2A 91 11 72 04 00 00 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 5D 9E DD 01 EF 03 09 90 00 DD [00:08:57]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 66 0E 01 00 69 04 A3 00 6F 04 04 00 2B 0B 01 00 B1 04 05 00 B0 AA 30 E2 01 70 04 05 00 14 8D EC 57 01 72 04 04 00 9C 1D 44 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 16 72 37 33 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 7D 8F 44 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 3B 03 00 00 B1 04 04 00 9C 2A 91 11 70 04 04 00 9C 2A 91 11 72 04 00 00 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 5D 9E DD 01 EF 03 09 90 00 [00:08:57]wFMCommunicate OK [00:08:57]wFMCommunicate request_size=4 [00:08:57]MH_SAM_APDU [00:08:57]CAPDU: 80 17 00 00 [00:08:57]Write to MH i2c: E2 08 00 88 01 80 17 00 00 00 00 00 00 09 [00:08:57]Write i2c OK [00:08:57]MH_I2C_Read... [00:08:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:57]Read from MH i2c: E2 [00:08:57]MH_I2C_Read... [00:08:57]Read from MH i2c: E2 FD 00 [00:08:57]MH_I2C_Read... [00:08:57]Read from MH i2c: E2 FD 00 88 01 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F7 CC 27 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A9 [00:08:57]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F7 CC 27 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:57]wFMCommunicate OK [00:08:57]wFMCommunicate request_size=4 [00:08:57]MH_SAM_APDU [00:08:57]CAPDU: 80 17 00 00 [00:08:57]Write to MH i2c: E2 08 00 89 01 80 17 00 00 00 00 00 00 0A [00:08:57]Write i2c OK [00:08:57]MH_I2C_Read... [00:08:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:58]Read from MH i2c: E2 [00:08:58]MH_I2C_Read... [00:08:58]Read from MH i2c: E2 FD 00 [00:08:58]MH_I2C_Read... [00:08:58]Read from MH i2c: E2 FD 00 89 01 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1C [00:08:58]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:58]wFMCommunicate OK [00:08:58]wFMCommunicate request_size=4 [00:08:58]MH_SAM_APDU [00:08:58]CAPDU: 80 17 00 00 [00:08:58]Write to MH i2c: E2 08 00 8A 01 80 17 00 00 00 00 00 00 0B [00:08:58]Write i2c OK [00:08:58]MH_I2C_Read... [00:08:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:58]Read from MH i2c: E2 [00:08:58]MH_I2C_Read... [00:08:58]Read from MH i2c: E2 FD 00 [00:08:58]MH_I2C_Read... [00:08:58]Read from MH i2c: E2 FD 00 8A 01 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 97 [00:08:58]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:58]wFMCommunicate OK [00:08:58]wFMCommunicate request_size=4 [00:08:58]MH_SAM_APDU [00:08:58]CAPDU: 80 17 00 00 [00:08:58]Write to MH i2c: E2 08 00 8B 01 80 17 00 00 00 00 00 00 0C [00:08:58]Write i2c OK [00:08:58]MH_I2C_Read... [00:08:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:08:58]Read from MH i2c: E2 [00:08:58]MH_I2C_Read... [00:08:58]Read from MH i2c: E2 E2 00 [00:08:58]MH_I2C_Read... [00:08:58]Read from MH i2c: E2 E2 00 8B 01 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 EA [00:08:58]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:08:58]wFMCommunicate OK [00:08:58]SAM_PROTO_GetFMData done [00:08:58]requested_item fm.sale_refund.total is exist - process it [00:08:58]requested_item fm.buy.total is exist - process it [00:08:58]requested_item shift.sale.total is exist - process it [00:08:58]SAM_PROTO_GetShiftData [00:08:58]wFMCommunicate request_size=4 [00:08:58]MH_SAM_APDU [00:08:58]CAPDU: 80 13 02 00 [00:08:58]Write to MH i2c: E2 08 00 8C 01 80 13 02 00 00 00 00 00 0B [00:08:58]Write i2c OK [00:08:58]MH_I2C_Read... [00:08:59]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:08:59]Read from MH i2c: E2 [00:08:59]MH_I2C_Read... [00:08:59]Read from MH i2c: E2 FD 00 [00:08:59]MH_I2C_Read... [00:08:59]Read from MH i2c: E2 FD 00 8C 01 00 BC 04 AA 04 B8 04 6E 04 04 00 C5 01 00 00 69 04 9E 00 6F 04 04 00 C2 01 00 00 B1 04 04 00 A3 79 2C 03 70 04 04 00 24 EE BD 02 72 04 03 00 7F 8B 6E 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 1F 4D 56 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 06 31 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 54 79 0F 70 04 03 00 54 79 0F 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B5 A4 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 51 [00:08:59]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 C5 01 00 00 69 04 9E 00 6F 04 04 00 C2 01 00 00 B1 04 04 00 A3 79 2C 03 70 04 04 00 24 EE BD 02 72 04 03 00 7F 8B 6E 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 1F 4D 56 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 06 31 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 54 79 0F 70 04 03 00 54 79 0F 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B5 A4 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:08:59]wFMCommunicate OK [00:08:59]wFMCommunicate request_size=4 [00:08:59]MH_SAM_APDU [00:08:59]CAPDU: 80 17 00 00 [00:08:59]Write to MH i2c: E2 08 00 8D 01 80 17 00 00 00 00 00 00 0E [00:08:59]Write i2c OK [00:08:59]MH_I2C_Read... [00:08:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:59]Read from MH i2c: E2 [00:08:59]MH_I2C_Read... [00:08:59]Read from MH i2c: E2 FD 00 [00:08:59]MH_I2C_Read... [00:08:59]Read from MH i2c: E2 FD 00 8D 01 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0F 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EA [00:08:59]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0F 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:59]wFMCommunicate OK [00:08:59]wFMCommunicate request_size=4 [00:08:59]MH_SAM_APDU [00:08:59]CAPDU: 80 17 00 00 [00:08:59]Write to MH i2c: E2 08 00 8E 01 80 17 00 00 00 00 00 00 0F [00:08:59]Write i2c OK [00:08:59]MH_I2C_Read... [00:09:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:00]Read from MH i2c: E2 [00:09:00]MH_I2C_Read... [00:09:00]Read from MH i2c: E2 FD 00 [00:09:00]MH_I2C_Read... [00:09:00]Read from MH i2c: E2 FD 00 8E 01 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 38 [00:09:00]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:09:00]wFMCommunicate OK [00:09:00]wFMCommunicate request_size=4 [00:09:00]MH_SAM_APDU [00:09:00]CAPDU: 80 17 00 00 [00:09:00]Write to MH i2c: E2 08 00 8F 01 80 17 00 00 00 00 00 00 10 [00:09:00]Write i2c OK [00:09:00]MH_I2C_Read... [00:09:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:00]Read from MH i2c: E2 [00:09:00]MH_I2C_Read... [00:09:00]Read from MH i2c: E2 FD 00 [00:09:00]MH_I2C_Read... [00:09:00]Read from MH i2c: E2 FD 00 8F 01 00 03 00 00 EF 03 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 90 00 91 [00:09:00]RAPDU: 03 00 00 EF 03 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 90 00 [00:09:00]wFMCommunicate OK [00:09:00]wFMCommunicate request_size=4 [00:09:00]MH_SAM_APDU [00:09:00]CAPDU: 80 17 00 00 [00:09:00]Write to MH i2c: E2 08 00 90 01 80 17 00 00 00 00 00 00 11 [00:09:00]Write i2c OK [00:09:00]MH_I2C_Read... [00:09:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:09:00]Read from MH i2c: E2 [00:09:00]MH_I2C_Read... [00:09:00]Read from MH i2c: E2 D9 00 [00:09:00]MH_I2C_Read... [00:09:00]Read from MH i2c: E2 D9 00 90 01 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 F0 [00:09:01]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:09:01]wFMCommunicate OK [00:09:01]SAM_PROTO_GetShiftData done [00:09:01]requested_item shift.sale.total_cash is exist - process it [00:09:01]requested_item shift.sale_refund.total is exist - process it [00:09:01]requested_item shift.sale_refund.total_cash is exist - process it [00:09:01]requested_item shift.buy.total is exist - process it [00:09:01]requested_item shift.buy.total_cash is exist - process it [00:09:01]produce_requested_data done [00:09:01]produce_requested_data return {"fm.sale.total":80898075.36,"fm.sale_refund.total":2947263.00,"fm.buy.total":0.00,"shift.sale.total":532463.71,"shift.sale.total_cash":460017.00,"shift.sale_refund.total":10141.00,"shift.sale_refund.total_cash":10141.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:09:01]process_action_free get_value [00:09:01]json_value_free [00:09:01]json_value_free done [00:09:01]process_json_proto returns [00:09:01]Send response to host [00:09:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":80898075.36,"fm.sale_refund.total":2947263.00,"fm.buy.total":0.00,"shift.sale.total":532463.71,"shift.sale.total_cash":460017.00,"shift.sale_refund.total":10141.00,"shift.sale_refund.total_cash":10141.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:09:01]free response buf [00:09:01]execute_script done [00:09:01]execute_script returns [00:09:01]free content buf [00:09:01]Sock 9.Close socket [00:09:01]Sock 9.Thread stoped [00:09:01]accept exits with 8 [00:09:01]New connection [00:09:01]New thread 3067456868 created [00:09:01]Thread 3067313508 joined [00:09:01]Waiting for new connection... [00:09:01] Sock 8.Parse request [00:09:01]Sock 8.Check first char [00:09:01]Sock 8.First char is OK [00:09:01]request: POST /json_proto HTTP/1.0 [00:09:01]Method: POST [00:09:01]URL: /json_proto [00:09:01]Method is POST - this is cgi request [00:09:01]url: /json_proto [00:09:01]query_string will be loaded in cgi processing [00:09:01]execute_cgi json_proto POST (null) [00:09:01]execute_cgi path=json_proto method=POST [00:09:01]POST find Content-Length [00:09:01]Host: 172.17.50.3:8080 [00:09:01]Content-Length: 260 [00:09:01]Content-Type: application/json [00:09:01] [00:09:01]POST finish read [00:09:01]Found Content-Length = 260 [00:09:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041A\u0430\u043B\u043C\u0430\u0435\u0432\u0430 \u0413. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:01]execute_script... [00:09:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041A\u0430\u043B\u043C\u0430\u0435\u0432\u0430 \u0413. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:01]POST & json_proto [00:09:01]process_json_proto [00:09:01]json parsed OK: [00:09:01]protocol is kg_v1.0 [00:09:01]action value=close_shift [00:09:01]process_action close_shift [00:09:01]cmd_close_shift [00:09:01]MH_GetDate [00:09:01]Write to MH i2c: F0 00 00 91 01 81 [00:09:01]Write i2c OK [00:09:01]MH_I2C_Read... [00:09:01]Read from MH i2c: F0 [00:09:01]MH_I2C_Read... [00:09:01]Read from MH i2c: F0 09 00 [00:09:01]MH_I2C_Read... [00:09:01]Read from MH i2c: F0 09 00 91 01 00 9E 9B 15 67 6B 98 1E 66 C6 [00:09:01]GetLastDocTimeStamp 1729469281 [00:09:01]current date 1729469342 [00:09:01]FM_GetShiftState [00:09:01]SAM_PROTO_GetShiftState [00:09:01]wFMCommunicate request_size=4 [00:09:01]MH_SAM_APDU [00:09:01]CAPDU: 80 13 01 00 [00:09:01]Write to MH i2c: E2 08 00 92 01 80 13 01 00 00 00 00 00 10 [00:09:01]Write i2c OK [00:09:01]MH_I2C_Read... [00:09:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:01]Read from MH i2c: E2 [00:09:01]MH_I2C_Read... [00:09:01]Read from MH i2c: E2 0E 00 [00:09:01]MH_I2C_Read... [00:09:01]Read from MH i2c: E2 0E 00 92 01 00 09 00 01 34 4B 14 67 00 00 00 00 90 00 16 [00:09:01]RAPDU: 09 00 01 34 4B 14 67 00 00 00 00 90 00 [00:09:01]wFMCommunicate OK [00:09:01]SAM_PROTO_GetShiftState done [00:09:01]FM_GetShiftState done [00:09:01]KKMCreateCloseShiftDocument [00:09:01]Load OK [00:09:01]Malloc new data [00:09:01]MH_GetDate [00:09:01]Write to MH i2c: F0 00 00 93 01 83 [00:09:01]Write i2c OK [00:09:01]MH_I2C_Read... [00:09:01]Read from MH i2c: F0 [00:09:01]MH_I2C_Read... [00:09:01]Read from MH i2c: F0 09 00 [00:09:01]MH_I2C_Read... [00:09:01]Read from MH i2c: F0 09 00 93 01 00 9E 9B 15 67 6B 98 1E 66 C8 [00:09:01]Malloc new data [00:09:01]Malloc new data [00:09:01]Malloc new data [00:09:01]Malloc new data [00:09:01]KKMCreateCloseShiftDocument OK [00:09:01]KKMSetCloseShiftData OK [00:09:01]ProcessDocumentItem done err = 0, tmpTLVsize=71 [00:09:01]tlvbuf is 00D004D0 [00:09:01]KKMLoadAndSignCloseShiftData [00:09:01]SAM_PROTO_ProcessDocument [00:09:01]wFMCommunicate request_size=9 [00:09:01]MH_SAM_APDU [00:09:01]CAPDU: 80 15 01 00 04 05 00 47 00 [00:09:01]Write to MH i2c: E2 0C 00 94 01 80 15 01 00 04 00 05 00 47 00 00 00 68 [00:09:01]Write i2c OK [00:09:01]MH_I2C_Read... [00:09:01]OFD Sender: No OFD packet to send [00:09:01]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:09:01]Read from MH i2c: E2 [00:09:01]MH_I2C_Read... [00:09:01]Read from MH i2c: E2 03 00 [00:09:01]MH_I2C_Read... [00:09:01]Read from MH i2c: E2 03 00 94 01 00 90 00 09 [00:09:01]RAPDU: 90 00 [00:09:01]wFMCommunicate OK [00:09:01]wFMCommunicate request_size=23 [00:09:01]MH_SAM_APDU [00:09:01]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:09:01]Write to MH i2c: E2 1A 00 95 01 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 0B [00:09:01]Write i2c OK [00:09:01]MH_I2C_Read... [00:09:01]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:09:01]Read from MH i2c: E2 [00:09:01]MH_I2C_Read... [00:09:01]Read from MH i2c: E2 03 00 [00:09:01]MH_I2C_Read... [00:09:01]Read from MH i2c: E2 03 00 95 01 00 90 00 0A [00:09:01]RAPDU: 90 00 [00:09:01]wFMCommunicate OK [00:09:01]wFMCommunicate request_size=30 [00:09:01]MH_SAM_APDU [00:09:01]CAPDU: 80 15 02 00 19 FD 03 15 00 D0 9A D0 B0 D0 BB D0 BC D0 B0 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 [00:09:01]Write to MH i2c: E2 21 00 96 01 80 15 02 00 19 00 FD 03 15 00 D0 9A D0 B0 D0 BB D0 BC D0 B0 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 00 00 37 [00:09:01]Write i2c OK [00:09:01]MH_I2C_Read... [00:09:01]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:09:01]Read from MH i2c: E2 [00:09:01]MH_I2C_Read... [00:09:01]Read from MH i2c: E2 03 00 [00:09:01]MH_I2C_Read... [00:09:01]Read from MH i2c: E2 03 00 96 01 00 90 00 0B [00:09:01]RAPDU: 90 00 [00:09:01]wFMCommunicate OK [00:09:01]wFMCommunicate request_size=13 [00:09:01]MH_SAM_APDU [00:09:01]CAPDU: 80 15 02 00 08 F4 03 04 00 9E 9B 15 67 [00:09:01]Write to MH i2c: E2 10 00 97 01 80 15 02 00 08 00 F4 03 04 00 9E 9B 15 67 00 00 D8 [00:09:01]Write i2c OK [00:09:01]MH_I2C_Read... [00:09:01]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:09:01]Read from MH i2c: E2 [00:09:01]MH_I2C_Read... [00:09:01]Read from MH i2c: E2 03 00 [00:09:01]MH_I2C_Read... [00:09:01]Read from MH i2c: E2 03 00 97 01 00 90 00 0C [00:09:01]RAPDU: 90 00 [00:09:01]wFMCommunicate OK [00:09:01]wFMCommunicate request_size=25 [00:09:01]MH_SAM_APDU [00:09:01]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 [00:09:01]Write to MH i2c: E2 1C 00 98 01 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 00 00 76 [00:09:01]Write i2c OK [00:09:01]MH_I2C_Read... [00:09:01]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:09:01]Read from MH i2c: E2 [00:09:01]MH_I2C_Read... [00:09:01]Read from MH i2c: E2 03 00 [00:09:01]MH_I2C_Read... [00:09:01]Read from MH i2c: E2 03 00 98 01 00 90 00 0D [00:09:01]RAPDU: 90 00 [00:09:01]wFMCommunicate OK [00:09:01]wFMCommunicate request_size=4 [00:09:01]MH_SAM_APDU [00:09:01]CAPDU: 80 15 03 00 [00:09:01]Write to MH i2c: E2 08 00 99 01 80 15 03 00 00 00 00 00 1B [00:09:01]Write i2c OK [00:09:01]MH_I2C_Read... [00:09:02]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:09:02]Read from MH i2c: E2 [00:09:02]MH_I2C_Read... [00:09:02]Read from MH i2c: E2 FD 00 [00:09:02]MH_I2C_Read... [00:09:02]Read from MH i2c: E2 FD 00 99 01 00 FF 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E9 0F 01 00 0E 04 04 00 C1 00 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C7 01 00 00 AA 04 B8 04 6E 04 04 00 C5 01 00 00 69 04 9E 00 6F 04 04 00 C2 01 00 00 B1 04 04 00 A3 79 2C 03 70 04 04 00 24 EE BD 02 72 04 03 00 7F 8B 6E 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 1F 4D 56 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 06 31 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 54 90 00 F4 [00:09:02]RAPDU: FF 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E9 0F 01 00 0E 04 04 00 C1 00 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C7 01 00 00 AA 04 B8 04 6E 04 04 00 C5 01 00 00 69 04 9E 00 6F 04 04 00 C2 01 00 00 B1 04 04 00 A3 79 2C 03 70 04 04 00 24 EE BD 02 72 04 03 00 7F 8B 6E 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 1F 4D 56 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 06 31 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 54 90 00 [00:09:02]wFMCommunicate OK [00:09:02]SAM_PROTO_ProcessDocument answer len = 1279 [00:09:02]SAM_PROTO_ProcessDocument remain to read = 1031 [00:09:02]wFMCommunicate request_size=4 [00:09:02]MH_SAM_APDU [00:09:02]CAPDU: 80 17 00 00 [00:09:02]Write to MH i2c: E2 08 00 9A 01 80 17 00 00 00 00 00 00 1B [00:09:02]Write i2c OK [00:09:02]MH_I2C_Read... [00:09:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:02]Read from MH i2c: E2 [00:09:02]MH_I2C_Read... [00:09:02]Read from MH i2c: E2 FD 00 [00:09:02]MH_I2C_Read... [00:09:02]Read from MH i2c: E2 FD 00 9A 01 00 79 0F 70 04 03 00 54 79 0F 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B5 A4 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0F 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E4 [00:09:02]RAPDU: 79 0F 70 04 03 00 54 79 0F 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B5 A4 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0F 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:09:02]wFMCommunicate OK [00:09:02]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:09:02]SAM_PROTO_ProcessDocument remain to read = 781 [00:09:02]wFMCommunicate request_size=4 [00:09:02]MH_SAM_APDU [00:09:02]CAPDU: 80 17 00 00 [00:09:02]Write to MH i2c: E2 08 00 9B 01 80 17 00 00 00 00 00 00 1C [00:09:02]Write i2c OK [00:09:02]MH_I2C_Read... [00:09:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:03]Read from MH i2c: E2 [00:09:03]MH_I2C_Read... [00:09:03]Read from MH i2c: E2 FD 00 [00:09:03]MH_I2C_Read... [00:09:03]Read from MH i2c: E2 FD 00 9B 01 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 82 [00:09:03]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:09:03]wFMCommunicate OK [00:09:03]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:09:03]SAM_PROTO_ProcessDocument remain to read = 531 [00:09:03]wFMCommunicate request_size=4 [00:09:03]MH_SAM_APDU [00:09:03]CAPDU: 80 17 00 00 [00:09:03]Write to MH i2c: E2 08 00 9C 01 80 17 00 00 00 00 00 00 1D [00:09:03]Write i2c OK [00:09:03]MH_I2C_Read... [00:09:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:03]Read from MH i2c: E2 [00:09:03]MH_I2C_Read... [00:09:03]Read from MH i2c: E2 FD 00 [00:09:03]MH_I2C_Read... [00:09:03]Read from MH i2c: E2 FD 00 9C 01 00 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BE [00:09:03]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:09:03]wFMCommunicate OK [00:09:03]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:09:03]SAM_PROTO_ProcessDocument remain to read = 281 [00:09:03]wFMCommunicate request_size=4 [00:09:03]MH_SAM_APDU [00:09:03]CAPDU: 80 17 00 00 [00:09:03]Write to MH i2c: E2 08 00 9D 01 80 17 00 00 00 00 00 00 1E [00:09:03]Write i2c OK [00:09:03]MH_I2C_Read... [00:09:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:04]Read from MH i2c: E2 [00:09:04]MH_I2C_Read... [00:09:04]Read from MH i2c: E2 FD 00 [00:09:04]MH_I2C_Read... [00:09:04]Read from MH i2c: E2 FD 00 9D 01 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CA [00:09:04]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:09:04]wFMCommunicate OK [00:09:04]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:09:04]SAM_PROTO_ProcessDocument remain to read = 31 [00:09:04]wFMCommunicate request_size=4 [00:09:04]MH_SAM_APDU [00:09:04]CAPDU: 80 17 00 00 [00:09:04]Write to MH i2c: E2 08 00 9E 01 80 17 00 00 00 00 00 00 1F [00:09:04]Write i2c OK [00:09:04]MH_I2C_Read... [00:09:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 31! [00:09:04]Read from MH i2c: E2 [00:09:04]MH_I2C_Read... [00:09:04]Read from MH i2c: E2 22 00 [00:09:04]MH_I2C_Read... [00:09:04]Read from MH i2c: E2 22 00 9E 01 00 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 1C 41 3C BD 08 F3 90 00 BA [00:09:04]RAPDU: 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 1C 41 3C BD 08 F3 90 00 [00:09:04]wFMCommunicate OK [00:09:04]SAM_PROTO_ProcessDocument received (without SW) 31 bytes [00:09:04]SAM_PROTO_ProcessDocument done [00:09:04]1209 (1) - 1.0 - номер версии ФФД [00:09:04]1041 (16) - 0000000000963346 - номер ФМ [00:09:04]1040 (4) - 69609 - номер ФД [00:09:04]1038 (4) - 193 - номер смены [00:09:04]1118 (4) - 453 - количество кассовых чеков за смену [00:09:04]1111 (4) - 455 - общее количество ФД за смену [00:09:04]1194 (1208) - счетчики итогов смены [00:09:04] 1134 (4) - 453 - количество чеков со всеми признаками расчетов [00:09:04] 1129 (158) - счетчики операций «приход» [00:09:04] 1135 (4) - 450 - количество чеков по признаку расчетов [00:09:04] 1201 (4) - 532463.71 - общая итоговая сумма в чеках [00:09:04] 1136 (4) - 460017.00 - итоговая сумма в чеках наличными [00:09:04] 1138 (3) - 72446.71 - итоговая сумма в чеках безналичными [00:09:04] 1024 (123) - суммы налогов [00:09:04] 1006 (9) - суммы НДС [00:09:04] 1010 (1) - 0% - код ставки НДС [00:09:04] 1011 (0) - 0.00 - сумма НДС по ставке [00:09:04] 1006 (12) - суммы НДС [00:09:04] 1010 (1) - 12% - код ставки НДС [00:09:04] 1011 (3) - 56558.39 - сумма НДС по ставке [00:09:04] 1007 (9) - суммы НСП [00:09:04] 1014 (1) - 0% - код ставки НСП [00:09:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:04] 1007 (12) - суммы НСП [00:09:04] 1014 (1) - 1% - код ставки НСП [00:09:04] 1015 (3) - 4713.02 - сумма НСП по ставке [00:09:04] 1007 (9) - суммы НСП [00:09:04] 1014 (1) - 2% - код ставки НСП [00:09:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:04] 1007 (9) - суммы НСП [00:09:04] 1014 (1) - 3% - код ставки НСП [00:09:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:04] 1007 (9) - суммы НСП [00:09:04] 1014 (1) - 5% - код ставки НСП [00:09:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:04] 1007 (9) - суммы НСП [00:09:04] 1014 (1) - 0,50% - код ставки НСП [00:09:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:04] 1007 (9) - суммы НСП [00:09:04] 1014 (1) - 1,50% - код ставки НСП [00:09:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:04] 1130 (152) - счетчики операций «возврат прихода» [00:09:04] 1135 (4) - 3 - количество чеков по признаку расчетов [00:09:04] 1201 (3) - 10141.00 - общая итоговая сумма в чеках [00:09:04] 1136 (3) - 10141.00 - итоговая сумма в чеках наличными [00:09:04] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:09:04] 1024 (122) - суммы налогов [00:09:04] 1006 (9) - суммы НДС [00:09:04] 1010 (1) - 0% - код ставки НДС [00:09:04] 1011 (0) - 0.00 - сумма НДС по ставке [00:09:04] 1006 (12) - суммы НДС [00:09:04] 1010 (1) - 12% - код ставки НДС [00:09:04] 1011 (3) - 1077.01 - сумма НДС по ставке [00:09:04] 1007 (9) - суммы НСП [00:09:04] 1014 (1) - 0% - код ставки НСП [00:09:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:04] 1007 (11) - суммы НСП [00:09:04] 1014 (1) - 1% - код ставки НСП [00:09:04] 1015 (2) - 89.75 - сумма НСП по ставке [00:09:04] 1007 (9) - суммы НСП [00:09:04] 1014 (1) - 2% - код ставки НСП [00:09:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:04] 1007 (9) - суммы НСП [00:09:04] 1014 (1) - 3% - код ставки НСП [00:09:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:04] 1007 (9) - суммы НСП [00:09:04] 1014 (1) - 5% - код ставки НСП [00:09:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:04] 1007 (9) - суммы НСП [00:09:04] 1014 (1) - 0,50% - код ставки НСП [00:09:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:04] 1007 (9) - суммы НСП [00:09:04] 1014 (1) - 1,50% - код ставки НСП [00:09:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:04] 1131 (141) - счетчики операций «расход» [00:09:04] 1135 (4) - 0 - количество чеков по признаку расчетов [00:09:04] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:09:04] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:09:04] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:09:04] 1024 (117) - суммы налогов [00:09:04] 1006 (9) - суммы НДС [00:09:04] 1010 (1) - 0% - код ставки НДС [00:09:04] 1011 (0) - 0.00 - сумма НДС по ставке [00:09:04] 1006 (9) - суммы НДС [00:09:04] 1010 (1) - 12% - код ставки НДС [00:09:04] 1011 (0) - 0.00 - сумма НДС по ставке [00:09:04] 1007 (9) - суммы НСП [00:09:04] 1014 (1) - 0% - код ставки НСП [00:09:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:04] 1007 (9) - суммы НСП [00:09:04] 1014 (1) - 1% - код ставки НСП [00:09:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:04] 1007 (9) - суммы НСП [00:09:04] 1014 (1) - 2% - код ставки НСП [00:09:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:04] 1007 (9) - суммы НСП [00:09:04] 1014 (1) - 3% - код ставки НСП [00:09:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:04] 1007 (9) - суммы НСП [00:09:04] 1014 (1) - 5% - код ставки НСП [00:09:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:04] 1007 (9) - суммы НСП [00:09:04] 1014 (1) - 0,50% - код ставки НСП [00:09:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:04] 1007 (9) - суммы НСП [00:09:04] 1014 (1) - 1,50% - код ставки НСП [00:09:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:04] 1132 (141) - счетчики операций «возврат расхода» [00:09:04] 1135 (4) - 0 - количество чеков по признаку расчетов [00:09:04] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:09:04] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:09:04] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:09:04] 1024 (117) - суммы налогов [00:09:04] 1006 (9) - суммы НДС [00:09:04] 1010 (1) - 0% - код ставки НДС [00:09:04] 1011 (0) - 0.00 - сумма НДС по ставке [00:09:04] 1006 (9) - суммы НДС [00:09:04] 1010 (1) - 12% - код ставки НДС [00:09:04] 1011 (0) - 0.00 - сумма НДС по ставке [00:09:04] 1007 (9) - суммы НСП [00:09:04] 1014 (1) - 0% - код ставки НСП [00:09:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:04] 1007 (9) - суммы НСП [00:09:04] 1014 (1) - 1% - код ставки НСП [00:09:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:04] 1007 (9) - суммы НСП [00:09:04] 1014 (1) - 2% - код ставки НСП [00:09:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:04] 1007 (9) - суммы НСП [00:09:04] 1014 (1) - 3% - код ставки НСП [00:09:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:04] 1007 (9) - суммы НСП [00:09:04] 1014 (1) - 5% - код ставки НСП [00:09:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:04] 1007 (9) - суммы НСП [00:09:04] 1014 (1) - 0,50% - код ставки НСП [00:09:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:04] 1007 (9) - суммы НСП [00:09:04] 1014 (1) - 1,50% - код ставки НСП [00:09:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:09:04] 1133 (588) - - счетчики коррекции - не используются [00:09:04]1077 (6) - 31066517473523 - ФПД [00:09:04]SetTLVBufToDocument [00:09:04]Processing tag 1209 (04B9) [00:09:04]Malloc new data [00:09:04]Processing tag 1041 (0411) [00:09:04]Processing tag 1040 (0410) [00:09:05]Malloc new data [00:09:05]Processing tag 1038 (040E) [00:09:05]Malloc new data [00:09:05]Processing tag 1118 (045E) [00:09:05]Malloc new data [00:09:05]Processing tag 1111 (0457) [00:09:05]Malloc new data [00:09:05]Processing tag 1194 (04AA) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1134 (046E) [00:09:05]Malloc new data [00:09:05]Processing tag 1129 (0469) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1135 (046F) [00:09:05]Malloc new data [00:09:05]Processing tag 1201 (04B1) [00:09:05]Malloc new data [00:09:05]Processing tag 1136 (0470) [00:09:05]Malloc new data [00:09:05]Processing tag 1138 (0472) [00:09:05]Malloc new data [00:09:05]Processing tag 1024 (0400) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1006 (03EE) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1010 (03F2) [00:09:05]Malloc new data [00:09:05]Processing tag 1011 (03F3) [00:09:05]Malloc new data [00:09:05]SetTLVBufToDocument err=0 [00:09:05]Processing tag 1006 (03EE) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1010 (03F2) [00:09:05]Malloc new data [00:09:05]Processing tag 1011 (03F3) [00:09:05]Malloc new data [00:09:05]SetTLVBufToDocument err=0 [00:09:05]Processing tag 1007 (03EF) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1014 (03F6) [00:09:05]Malloc new data [00:09:05]Processing tag 1015 (03F7) [00:09:05]Malloc new data [00:09:05]SetTLVBufToDocument err=0 [00:09:05]Processing tag 1007 (03EF) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1014 (03F6) [00:09:05]Malloc new data [00:09:05]Processing tag 1015 (03F7) [00:09:05]Malloc new data [00:09:05]SetTLVBufToDocument err=0 [00:09:05]Processing tag 1007 (03EF) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1014 (03F6) [00:09:05]Malloc new data [00:09:05]Processing tag 1015 (03F7) [00:09:05]Malloc new data [00:09:05]SetTLVBufToDocument err=0 [00:09:05]Processing tag 1007 (03EF) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1014 (03F6) [00:09:05]Malloc new data [00:09:05]Processing tag 1015 (03F7) [00:09:05]Malloc new data [00:09:05]SetTLVBufToDocument err=0 [00:09:05]Processing tag 1007 (03EF) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1014 (03F6) [00:09:05]Malloc new data [00:09:05]Processing tag 1015 (03F7) [00:09:05]Malloc new data [00:09:05]SetTLVBufToDocument err=0 [00:09:05]Processing tag 1007 (03EF) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1014 (03F6) [00:09:05]Malloc new data [00:09:05]Processing tag 1015 (03F7) [00:09:05]Malloc new data [00:09:05]SetTLVBufToDocument err=0 [00:09:05]Processing tag 1007 (03EF) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1014 (03F6) [00:09:05]Malloc new data [00:09:05]Processing tag 1015 (03F7) [00:09:05]Malloc new data [00:09:05]SetTLVBufToDocument err=0 [00:09:05]SetTLVBufToDocument err=0 [00:09:05]SetTLVBufToDocument err=0 [00:09:05]Processing tag 1130 (046A) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1135 (046F) [00:09:05]Malloc new data [00:09:05]Processing tag 1201 (04B1) [00:09:05]Malloc new data [00:09:05]Processing tag 1136 (0470) [00:09:05]Malloc new data [00:09:05]Processing tag 1138 (0472) [00:09:05]Malloc new data [00:09:05]Processing tag 1024 (0400) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1006 (03EE) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1010 (03F2) [00:09:05]Malloc new data [00:09:05]Processing tag 1011 (03F3) [00:09:05]Malloc new data [00:09:05]SetTLVBufToDocument err=0 [00:09:05]Processing tag 1006 (03EE) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1010 (03F2) [00:09:05]Malloc new data [00:09:05]Processing tag 1011 (03F3) [00:09:05]Malloc new data [00:09:05]SetTLVBufToDocument err=0 [00:09:05]Processing tag 1007 (03EF) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1014 (03F6) [00:09:05]Malloc new data [00:09:05]Processing tag 1015 (03F7) [00:09:05]Malloc new data [00:09:05]SetTLVBufToDocument err=0 [00:09:05]Processing tag 1007 (03EF) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1014 (03F6) [00:09:05]Malloc new data [00:09:05]Processing tag 1015 (03F7) [00:09:05]Malloc new data [00:09:05]SetTLVBufToDocument err=0 [00:09:05]Processing tag 1007 (03EF) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1014 (03F6) [00:09:05]Malloc new data [00:09:05]Processing tag 1015 (03F7) [00:09:05]Malloc new data [00:09:05]SetTLVBufToDocument err=0 [00:09:05]Processing tag 1007 (03EF) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1014 (03F6) [00:09:05]Malloc new data [00:09:05]Processing tag 1015 (03F7) [00:09:05]Malloc new data [00:09:05]SetTLVBufToDocument err=0 [00:09:05]Processing tag 1007 (03EF) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1014 (03F6) [00:09:05]Malloc new data [00:09:05]Processing tag 1015 (03F7) [00:09:05]Malloc new data [00:09:05]SetTLVBufToDocument err=0 [00:09:05]Processing tag 1007 (03EF) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1014 (03F6) [00:09:05]Malloc new data [00:09:05]Processing tag 1015 (03F7) [00:09:05]Malloc new data [00:09:05]SetTLVBufToDocument err=0 [00:09:05]Processing tag 1007 (03EF) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1014 (03F6) [00:09:05]Malloc new data [00:09:05]Processing tag 1015 (03F7) [00:09:05]Malloc new data [00:09:05]SetTLVBufToDocument err=0 [00:09:05]SetTLVBufToDocument err=0 [00:09:05]SetTLVBufToDocument err=0 [00:09:05]Processing tag 1131 (046B) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1135 (046F) [00:09:05]Malloc new data [00:09:05]Processing tag 1201 (04B1) [00:09:05]Malloc new data [00:09:05]Processing tag 1136 (0470) [00:09:05]Malloc new data [00:09:05]Processing tag 1138 (0472) [00:09:05]Malloc new data [00:09:05]Processing tag 1024 (0400) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1006 (03EE) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1010 (03F2) [00:09:05]Malloc new data [00:09:05]Processing tag 1011 (03F3) [00:09:05]Malloc new data [00:09:05]SetTLVBufToDocument err=0 [00:09:05]Processing tag 1006 (03EE) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1010 (03F2) [00:09:05]Malloc new data [00:09:05]Processing tag 1011 (03F3) [00:09:05]Malloc new data [00:09:05]SetTLVBufToDocument err=0 [00:09:05]Processing tag 1007 (03EF) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1014 (03F6) [00:09:05]Malloc new data [00:09:05]Processing tag 1015 (03F7) [00:09:05]Malloc new data [00:09:05]SetTLVBufToDocument err=0 [00:09:05]Processing tag 1007 (03EF) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1014 (03F6) [00:09:05]Malloc new data [00:09:05]Processing tag 1015 (03F7) [00:09:05]Malloc new data [00:09:05]SetTLVBufToDocument err=0 [00:09:05]Processing tag 1007 (03EF) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1014 (03F6) [00:09:05]Malloc new data [00:09:05]Processing tag 1015 (03F7) [00:09:05]Malloc new data [00:09:05]SetTLVBufToDocument err=0 [00:09:05]Processing tag 1007 (03EF) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1014 (03F6) [00:09:05]Malloc new data [00:09:05]Processing tag 1015 (03F7) [00:09:05]Malloc new data [00:09:05]SetTLVBufToDocument err=0 [00:09:05]Processing tag 1007 (03EF) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1014 (03F6) [00:09:05]Malloc new data [00:09:05]Processing tag 1015 (03F7) [00:09:05]Malloc new data [00:09:05]SetTLVBufToDocument err=0 [00:09:05]Processing tag 1007 (03EF) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1014 (03F6) [00:09:05]Malloc new data [00:09:05]Processing tag 1015 (03F7) [00:09:05]Malloc new data [00:09:05]SetTLVBufToDocument err=0 [00:09:05]Processing tag 1007 (03EF) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1014 (03F6) [00:09:05]Malloc new data [00:09:05]Processing tag 1015 (03F7) [00:09:05]Malloc new data [00:09:05]SetTLVBufToDocument err=0 [00:09:05]SetTLVBufToDocument err=0 [00:09:05]SetTLVBufToDocument err=0 [00:09:05]Processing tag 1132 (046C) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1135 (046F) [00:09:05]Malloc new data [00:09:05]Processing tag 1201 (04B1) [00:09:05]Malloc new data [00:09:05]Processing tag 1136 (0470) [00:09:05]Malloc new data [00:09:05]Processing tag 1138 (0472) [00:09:05]Malloc new data [00:09:05]Processing tag 1024 (0400) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1006 (03EE) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1010 (03F2) [00:09:05]Malloc new data [00:09:05]Processing tag 1011 (03F3) [00:09:05]Malloc new data [00:09:05]SetTLVBufToDocument err=0 [00:09:05]Processing tag 1006 (03EE) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1010 (03F2) [00:09:05]Malloc new data [00:09:05]Processing tag 1011 (03F3) [00:09:05]Malloc new data [00:09:05]SetTLVBufToDocument err=0 [00:09:05]Processing tag 1007 (03EF) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1014 (03F6) [00:09:05]Malloc new data [00:09:05]Processing tag 1015 (03F7) [00:09:05]Malloc new data [00:09:05]SetTLVBufToDocument err=0 [00:09:05]Processing tag 1007 (03EF) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1014 (03F6) [00:09:05]Malloc new data [00:09:05]Processing tag 1015 (03F7) [00:09:05]Malloc new data [00:09:05]SetTLVBufToDocument err=0 [00:09:05]Processing tag 1007 (03EF) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1014 (03F6) [00:09:05]Malloc new data [00:09:05]Processing tag 1015 (03F7) [00:09:05]Malloc new data [00:09:05]SetTLVBufToDocument err=0 [00:09:05]Processing tag 1007 (03EF) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1014 (03F6) [00:09:05]Malloc new data [00:09:05]Processing tag 1015 (03F7) [00:09:05]Malloc new data [00:09:05]SetTLVBufToDocument err=0 [00:09:05]Processing tag 1007 (03EF) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1014 (03F6) [00:09:05]Malloc new data [00:09:05]Processing tag 1015 (03F7) [00:09:05]Malloc new data [00:09:05]SetTLVBufToDocument err=0 [00:09:05]Processing tag 1007 (03EF) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1014 (03F6) [00:09:05]Malloc new data [00:09:05]Processing tag 1015 (03F7) [00:09:05]Malloc new data [00:09:05]SetTLVBufToDocument err=0 [00:09:05]Processing tag 1007 (03EF) [00:09:05]Load OK [00:09:05]SetTLVBufToDocument [00:09:05]Processing tag 1014 (03F6) [00:09:05]Malloc new data [00:09:05]Processing tag 1015 (03F7) [00:09:05]Malloc new data [00:09:05]SetTLVBufToDocument err=0 [00:09:05]SetTLVBufToDocument err=0 [00:09:05]SetTLVBufToDocument err=0 [00:09:05]Processing tag 1133 (046D) [00:09:05]Malloc new data [00:09:05]SetTLVBufToDocument err=0 [00:09:05]Processing tag 1077 (0435) [00:09:05]Malloc new data [00:09:05]SetTLVBufToDocument err=0 [00:09:05]Malloc new data [00:09:05]SAM_PROTO_GetFMData [00:09:05]wFMCommunicate request_size=4 [00:09:05]MH_SAM_APDU [00:09:05]CAPDU: 80 13 03 00 [00:09:05]Write to MH i2c: E2 08 00 9F 01 80 13 03 00 00 00 00 00 1F [00:09:05]Write i2c OK [00:09:05]MH_I2C_Read... [00:09:06]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:09:06]Read from MH i2c: E2 [00:09:06]MH_I2C_Read... [00:09:06]Read from MH i2c: E2 FD 00 [00:09:06]MH_I2C_Read... [00:09:06]Read from MH i2c: E2 FD 00 9F 01 00 C5 04 85 04 C1 04 6E 04 04 00 66 0E 01 00 69 04 A3 00 6F 04 04 00 2B 0B 01 00 B1 04 05 00 B0 AA 30 E2 01 70 04 05 00 14 8D EC 57 01 72 04 04 00 9C 1D 44 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 16 72 37 33 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 7D 8F 44 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 3B 03 00 00 B1 04 04 00 9C 2A 91 11 70 04 04 00 9C 2A 91 11 72 04 00 00 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 5D 9E DD 01 EF 03 09 90 00 F5 [00:09:06]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 66 0E 01 00 69 04 A3 00 6F 04 04 00 2B 0B 01 00 B1 04 05 00 B0 AA 30 E2 01 70 04 05 00 14 8D EC 57 01 72 04 04 00 9C 1D 44 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 16 72 37 33 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 7D 8F 44 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 3B 03 00 00 B1 04 04 00 9C 2A 91 11 70 04 04 00 9C 2A 91 11 72 04 00 00 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 5D 9E DD 01 EF 03 09 90 00 [00:09:06]wFMCommunicate OK [00:09:06]wFMCommunicate request_size=4 [00:09:06]MH_SAM_APDU [00:09:06]CAPDU: 80 17 00 00 [00:09:06]Write to MH i2c: E2 08 00 A0 01 80 17 00 00 00 00 00 00 21 [00:09:06]OFD Sender: No OFD packet to send [00:09:06]Write i2c OK [00:09:06]MH_I2C_Read... [00:09:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:06]Read from MH i2c: E2 [00:09:06]MH_I2C_Read... [00:09:06]Read from MH i2c: E2 FD 00 [00:09:06]MH_I2C_Read... [00:09:06]Read from MH i2c: E2 FD 00 A0 01 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F7 CC 27 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C1 [00:09:06]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F7 CC 27 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:09:06]wFMCommunicate OK [00:09:06]wFMCommunicate request_size=4 [00:09:06]MH_SAM_APDU [00:09:06]CAPDU: 80 17 00 00 [00:09:06]Write to MH i2c: E2 08 00 A1 01 80 17 00 00 00 00 00 00 22 [00:09:06]Write i2c OK [00:09:06]MH_I2C_Read... [00:09:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:07]Read from MH i2c: E2 [00:09:07]MH_I2C_Read... [00:09:07]Read from MH i2c: E2 FD 00 [00:09:07]MH_I2C_Read... [00:09:07]Read from MH i2c: E2 FD 00 A1 01 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 34 [00:09:07]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:09:07]wFMCommunicate OK [00:09:07]wFMCommunicate request_size=4 [00:09:07]MH_SAM_APDU [00:09:07]CAPDU: 80 17 00 00 [00:09:07]Write to MH i2c: E2 08 00 A2 01 80 17 00 00 00 00 00 00 23 [00:09:07]Write i2c OK [00:09:07]MH_I2C_Read... [00:09:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:07]Read from MH i2c: E2 [00:09:07]MH_I2C_Read... [00:09:07]Read from MH i2c: E2 FD 00 [00:09:07]MH_I2C_Read... [00:09:07]Read from MH i2c: E2 FD 00 A2 01 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AF [00:09:07]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:09:07]wFMCommunicate OK [00:09:07]wFMCommunicate request_size=4 [00:09:07]MH_SAM_APDU [00:09:07]CAPDU: 80 17 00 00 [00:09:07]Write to MH i2c: E2 08 00 A3 01 80 17 00 00 00 00 00 00 24 [00:09:07]Write i2c OK [00:09:07]MH_I2C_Read... [00:09:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:09:08]Read from MH i2c: E2 [00:09:08]MH_I2C_Read... [00:09:08]Read from MH i2c: E2 E2 00 [00:09:08]MH_I2C_Read... [00:09:08]Read from MH i2c: E2 E2 00 A3 01 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 02 [00:09:08]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:09:08]wFMCommunicate OK [00:09:08]SAM_PROTO_GetFMData done [00:09:08]Malloc new data [00:09:08]Malloc new data [00:09:08]Malloc new data [00:09:08]Malloc new data [00:09:08]KKMLoadAndSignCloseShiftData err=0 [00:09:08]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Калмаева Г. 21.10.2024 00:09 Смена: 193 РНМ: 0000000000156251 ЗНМ: 0300000167 СНО: Общий режим Чеков за смену: 453 ФД за смену: 455 Всего чеков: 453 ИТОГИ ПРИХОД Чеков: 450 Общий итог: 532463.71 Итого наличными: 460017.00 Итого безнал.: 72446.71 НДС 0% : 0.00 НДС 12% : 56558.39 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 4713.02 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 3 Общий итог: 10141.00 Итого наличными: 10141.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 1077.01 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 89.75 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 449876.00 НС Приход: 80898075.36 НС Возвр.Прихода: 2947263.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 69609 ФМ: 0000000000963346 ФПД: 31066517473523 [00:09:08]StoreToDocumentArchive [00:09:08]shift 193 fd 69609 [00:09:08]save to /storage/0193/doc_00069609 [00:09:08]save last doc name /storage/0193/doc_00069609 to /storage/kkm_last_doc_name [00:09:08]save OK [00:09:08]Clear old archive folders... [00:09:08]Remove dir /storage/0010 [00:09:08]opendir ok [00:09:08]file . [00:09:08]file .. [00:09:08]file doc_1729469289 [00:09:08]remove file /storage/0010/doc_1729469289 [00:09:08]remove dir /storage/0010 [00:09:08]NVStorageSaveData kkm_registers [00:09:08]File name is /storage/kkm_registers [00:09:08]Write 24 bytes [00:09:08]NVStorageSaveData done [00:09:08]NVStorageSaveData kkm_registers [00:09:08]File name is /storage/kkm_registers [00:09:08]Write 24 bytes [00:09:08]NVStorageSaveData done [00:09:08]ProcessDocumentItem done err = 0, tmpTLVsize=1389 [00:09:08]tlvbuf is 00C6ED50 [00:09:08]SAM_PROTO_ClearQueue [00:09:08]wFMCommunicate request_size=4 [00:09:08]MH_SAM_APDU [00:09:08]CAPDU: 80 09 00 00 [00:09:08]Write to MH i2c: E2 08 00 A4 01 80 09 00 00 00 00 00 00 17 [00:09:08]Write i2c OK [00:09:08]MH_I2C_Read... [00:09:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:09:08]Read from MH i2c: E2 [00:09:08]MH_I2C_Read... [00:09:08]Read from MH i2c: E2 03 00 [00:09:08]MH_I2C_Read... [00:09:08]Read from MH i2c: E2 03 00 A4 01 00 90 00 19 [00:09:08]RAPDU: 90 00 [00:09:08]wFMCommunicate OK [00:09:08]SAM_PROTO_ClearQueue done [00:09:08]KKMCreateOFDPacket [00:09:08]OFDProtocolAddRootSTLVToBuf [00:09:08]FM_MakeSignedData [00:09:08]FM_MakeSignedData [00:09:08]SAM_PROTO_SignData [00:09:08]wFMCommunicate request_size=4 [00:09:08]MH_SAM_APDU [00:09:08]CAPDU: 80 0D 01 02 [00:09:08]Write to MH i2c: E2 08 00 A5 01 80 0D 01 02 00 00 00 00 1F [00:09:08]Write i2c OK [00:09:08]MH_I2C_Read... [00:09:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:09:08]Read from MH i2c: E2 [00:09:08]MH_I2C_Read... [00:09:08]Read from MH i2c: E2 03 00 [00:09:08]MH_I2C_Read... [00:09:08]Read from MH i2c: E2 03 00 A5 01 00 90 00 1A [00:09:08]RAPDU: 90 00 [00:09:08]wFMCommunicate OK [00:09:08]wFMCommunicate request_size=255 [00:09:08]MH_SAM_APDU [00:09:08]CAPDU: 80 0D 02 02 FA 05 00 6D 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 9A D0 B0 D0 BB D0 BC D0 B0 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 F4 03 04 00 9E 9B 15 67 0E 04 04 00 C1 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 5E 04 04 00 C5 01 00 00 57 04 04 00 C7 01 00 00 AA 04 DF 04 6E 04 04 00 C5 01 00 00 69 04 A5 00 6F 04 04 00 C2 01 00 00 B1 04 04 00 A3 79 2C 03 70 04 04 00 24 EE BD 02 72 04 03 00 7F 8B 6E 00 04 82 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 1F 4D 56 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 [00:09:08]Write to MH i2c: E2 02 01 A6 01 80 0D 02 02 FA 00 05 00 6D 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 9A D0 B0 D0 BB D0 BC D0 B0 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 F4 03 04 00 9E 9B 15 67 0E 04 04 00 C1 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 5E 04 04 00 C5 01 00 00 57 04 04 00 C7 01 00 00 AA 04 DF 04 6E 04 04 00 C5 01 00 00 69 04 A5 00 6F 04 04 00 C2 01 00 00 B1 04 04 00 A3 79 2C 03 70 04 04 00 24 EE BD 02 72 04 03 00 7F 8B 6E 00 04 82 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 1F 4D 56 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 00 00 5A [00:09:09]Write i2c OK [00:09:09]MH_I2C_Read... [00:09:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:09]Read from MH i2c: E2 [00:09:09]MH_I2C_Read... [00:09:09]Read from MH i2c: E2 03 00 [00:09:09]MH_I2C_Read... [00:09:09]Read from MH i2c: E2 03 00 A6 01 00 90 00 1B [00:09:09]RAPDU: 90 00 [00:09:09]wFMCommunicate OK [00:09:09]wFMCommunicate request_size=255 [00:09:09]MH_SAM_APDU [00:09:09]CAPDU: 80 0D 02 02 FA F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 06 31 07 6A 04 A0 00 6F 04 04 00 03 00 00 00 B1 04 03 00 54 79 0F 70 04 03 00 54 79 0F 72 04 01 00 00 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 B5 A4 01 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 0F 23 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 [00:09:09]Write to MH i2c: E2 02 01 A7 01 80 0D 02 02 FA 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 06 31 07 6A 04 A0 00 6F 04 04 00 03 00 00 00 B1 04 03 00 54 79 0F 70 04 03 00 54 79 0F 72 04 01 00 00 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 B5 A4 01 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 0F 23 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 00 00 2E [00:09:09]Write i2c OK [00:09:09]MH_I2C_Read... [00:09:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:09]Read from MH i2c: E2 [00:09:09]MH_I2C_Read... [00:09:09]Read from MH i2c: E2 03 00 [00:09:09]MH_I2C_Read... [00:09:09]Read from MH i2c: E2 03 00 A7 01 00 90 00 1C [00:09:09]RAPDU: 90 00 [00:09:09]wFMCommunicate OK [00:09:09]wFMCommunicate request_size=255 [00:09:09]MH_SAM_APDU [00:09:09]CAPDU: 80 0D 02 02 FA 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 [00:09:10]Write to MH i2c: E2 02 01 A8 01 80 0D 02 02 FA 00 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 00 00 DB [00:09:10]Write i2c OK [00:09:10]MH_I2C_Read... [00:09:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:10]Read from MH i2c: E2 [00:09:10]MH_I2C_Read... [00:09:10]Read from MH i2c: E2 03 00 [00:09:10]MH_I2C_Read... [00:09:10]Read from MH i2c: E2 03 00 A8 01 00 90 00 1D [00:09:10]RAPDU: 90 00 [00:09:10]wFMCommunicate OK [00:09:10]wFMCommunicate request_size=255 [00:09:10]MH_SAM_APDU [00:09:10]CAPDU: 80 0D 02 02 FA 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 [00:09:10]Write to MH i2c: E2 02 01 A9 01 80 0D 02 02 FA 00 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 00 00 FB [00:09:10]Write i2c OK [00:09:10]MH_I2C_Read... [00:09:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:11]Read from MH i2c: E2 [00:09:11]MH_I2C_Read... [00:09:11]Read from MH i2c: E2 03 00 [00:09:11]MH_I2C_Read... [00:09:11]Read from MH i2c: E2 03 00 A9 01 00 90 00 1E [00:09:11]RAPDU: 90 00 [00:09:11]wFMCommunicate OK [00:09:11]wFMCommunicate request_size=255 [00:09:11]MH_SAM_APDU [00:09:11]CAPDU: 80 0D 02 02 FA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:09:11]Write to MH i2c: E2 02 01 AA 01 80 0D 02 02 FA 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 00 B5 [00:09:11]Write i2c OK [00:09:11]MH_I2C_Read... [00:09:11]OFD Sender: No OFD packet to send [00:09:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:11]Read from MH i2c: E2 [00:09:11]MH_I2C_Read... [00:09:11]Read from MH i2c: E2 03 00 [00:09:11]MH_I2C_Read... [00:09:11]Read from MH i2c: E2 03 00 AA 01 00 90 00 1F [00:09:11]RAPDU: 90 00 [00:09:11]wFMCommunicate OK [00:09:11]wFMCommunicate request_size=148 [00:09:11]MH_SAM_APDU [00:09:11]CAPDU: 80 0D 02 02 8F 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E9 0F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 35 04 06 00 1C 41 3C BD 08 F3 [00:09:11]Write to MH i2c: E2 97 00 AB 01 80 0D 02 02 8F 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E9 0F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 35 04 06 00 1C 41 3C BD 08 F3 00 00 AE [00:09:11]Write i2c OK [00:09:11]MH_I2C_Read... [00:09:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:11]Read from MH i2c: E2 [00:09:11]MH_I2C_Read... [00:09:11]Read from MH i2c: E2 03 00 [00:09:11]MH_I2C_Read... [00:09:12]Read from MH i2c: E2 03 00 AB 01 00 90 00 20 [00:09:12]RAPDU: 90 00 [00:09:12]wFMCommunicate OK [00:09:12]wFMCommunicate request_size=4 [00:09:12]MH_SAM_APDU [00:09:12]CAPDU: 80 0D 03 02 [00:09:12]Write to MH i2c: E2 08 00 AC 01 80 0D 03 02 00 00 00 00 28 [00:09:12]Write i2c OK [00:09:12]MH_I2C_Read... [00:09:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:09:12]Read from MH i2c: E2 [00:09:12]MH_I2C_Read... [00:09:12]Read from MH i2c: E2 0B 00 [00:09:12]MH_I2C_Read... [00:09:12]Read from MH i2c: E2 0B 00 AC 01 00 AC A3 61 EE CD 6F 5F 3A 90 00 9C [00:09:12]RAPDU: AC A3 61 EE CD 6F 5F 3A 90 00 [00:09:12]wFMCommunicate OK [00:09:12]SAM_PROTO_SignData done [00:09:12]FM_MakeSignedData done [00:09:12]CreateOFDProtocolMessage [00:09:12]wFMCommunicate request_size=4 [00:09:12]MH_SAM_APDU [00:09:12]CAPDU: 80 11 00 00 [00:09:12]Write to MH i2c: E2 08 00 AD 01 80 11 00 00 00 00 00 00 28 [00:09:12]Write i2c OK [00:09:12]MH_I2C_Read... [00:09:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:12]Read from MH i2c: E2 [00:09:12]MH_I2C_Read... [00:09:12]Read from MH i2c: E2 17 00 [00:09:12]MH_I2C_Read... [00:09:12]Read from MH i2c: E2 17 00 AD 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7A [00:09:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:09:12]wFMCommunicate OK [00:09:12]CreateOFDProtocolMessage done [00:09:12]OFDSenderStorePacket 69609 [00:09:12]StoreOFDPacket docnum=69609 [00:09:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 81 05 00 00 66 42 79 05 30 EE 5A 05 01 00 05 00 6D 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 9A D0 B0 D0 BB D0 BC D0 B0 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 F4 03 04 00 9E 9B 15 67 0E 04 04 00 C1 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 5E 04 04 00 C5 01 00 00 57 04 04 00 C7 01 00 00 AA 04 DF 04 6E 04 04 00 C5 01 00 00 69 04 A5 00 6F 04 04 00 C2 01 00 00 B1 04 04 00 A3 79 2C 03 70 04 04 00 24 EE BD 02 72 04 03 00 7F 8B 6E 00 04 82 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 1F 4D 56 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 0C 00 F6 03 01 00 01 F7 03 03 00 06 31 07 6A 04 A0 00 6F 04 04 00 03 00 00 00 B1 04 03 00 54 79 0F 70 04 03 00 54 79 0F 72 04 01 00 00 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 B5 A4 01 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 0F 23 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 E9 0F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 35 04 06 00 1C 41 3C BD 08 F3 AC A3 61 EE CD 6F 5F 3A [00:09:12]CheckFolder [00:09:12]dirname=/storage/ofd_packets [00:09:12]CheckFolder done [00:09:12]ProducePacketName [00:09:12]name=ofd_packets/00069609 [00:09:12]NVStorageSaveData ofd_packets/00069609 [00:09:12]File name is /storage/ofd_packets/00069609 [00:09:12]Write 1439 bytes [00:09:12]NVStorageSaveData done [00:09:12]OFDSenderStorePacket done [00:09:12]KKMCreateOFDPacket done [00:09:12]NVStorageSaveData kkm_last_timestamp [00:09:12]File name is /storage/kkm_last_timestamp [00:09:12]Write 4 bytes [00:09:12]NVStorageSaveData done [00:09:12]ExternCall_PrintAddStr [00:09:12]wPrintStart [00:09:12]Write to MH i2c: 01 00 00 AE 01 AF [00:09:12]OFD Sender: Processing packet 69609 [packets to send 18, broken 17] [00:09:12]ProducePacketName [00:09:12]name=ofd_packets/00069609 [00:09:12]OFD Sender: To server: pG, [00:09:12]CommunicateWithHost lk.salyk.kg:30040 [00:09:12]ConnectInit lk.salyk.kg [00:09:12]Write i2c OK [00:09:12]MH_I2C_Read... [00:09:12]Read from MH i2c: 01 [00:09:12]MH_I2C_Read... [00:09:12]Read from MH i2c: 01 07 00 [00:09:12]MH_I2C_Read... [00:09:12]Read from MH i2c: 01 07 00 AE 01 00 00 00 00 00 FF 0F C4 [00:09:12]RasterBufferAndPrint [00:09:12]line Отчет о закрытии смены [00:09:12]line ФФД: 1.0 [00:09:12]line ИНН: 02508201610067 [00:09:12]line Кассир: Калмаева Г. [00:09:12]line 21.10.2024 00:09 [00:09:12]line Смена: 193 [00:09:12]line РНМ: 0000000000156251 [00:09:12]line ЗНМ: 0300000167 [00:09:12]line СНО: Общий режим [00:09:12]line Чеков за смену: 453 [00:09:12]line ФД за смену: 455 [00:09:12]line Всего чеков: 453 [00:09:12]line ИТОГИ ПРИХОД [00:09:12]line Чеков: 450 [00:09:12]line Общий итог: 532463.71 [00:09:12]line Итого наличными: 460017.00 [00:09:12]line Итого безнал.: 72446.71 [00:09:12]line НДС 0% : 0.00 [00:09:12]line НДС 12% : 56558.39 [00:09:12]line НСП 0% : 0.00 [00:09:12]line НСП 1,50% : 0.00 [00:09:12]line НСП 0,50% : 0.00 [00:09:12]line НСП 5% : 0.00 [00:09:12]line НСП 3% : 0.00 [00:09:12]line НСП 2% : 0.00 [00:09:12]line НСП 1% : 4713.02 [00:09:12]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:09:12]line Чеков: 3 [00:09:12]line Общий итог: 10141.00 [00:09:12]line Итого наличными: 10141.00 [00:09:12]line Итого безнал.: 0.00 [00:09:12]line НДС 0% : 0.00 [00:09:12]line НДС 12% : 1077.01 [00:09:12]line НСП 0% : 0.00 [00:09:12]line НСП 1,50% : 0.00 [00:09:12]line НСП 0,50% : 0.00 [00:09:12]line НСП 5% : 0.00 [00:09:12]line НСП 3% : 0.00 [00:09:12]line НСП 2% : 0.00 [00:09:12]line НСП 1% : 89.75 [00:09:12]line ИТОГИ РАСХОД [00:09:12]line Чеков: 0 [00:09:12]line Общий итог: 0.00 [00:09:12]line Итого наличными: 0.00 [00:09:12]line Итого безнал.: 0.00 [00:09:12]line НДС 0% : 0.00 [00:09:12]line НДС 12% : 0.00 [00:09:12]line НСП 0% : 0.00 [00:09:12]line НСП 1,50% : 0.00 [00:09:12]line НСП 0,50% : 0.00 [00:09:12]line НСП 5% : 0.00 [00:09:12]line НСП 3% : 0.00 [00:09:12]line НСП 2% : 0.00 [00:09:12]line НСП 1% : 0.00 [00:09:12]line ИТОГИ ВОЗВРАТ РАСХОДА [00:09:12]line Чеков: 0 [00:09:12]line Общий итог: 0.00 [00:09:12]line Итого наличными: 0.00 [00:09:12]line Итого безнал.: 0.00 [00:09:12]line НДС 0% : 0.00 [00:09:12]line НДС 12% : 0.00 [00:09:12]line НСП 0% : 0.00 [00:09:12]line НСП 1,50% : 0.00 [00:09:12]line НСП 0,50% : 0.00 [00:09:12]line НСП 5% : 0.00 [00:09:12]line НСП 3% : 0.00 [00:09:12]line НСП 2% : 0.00 [00:09:12]line НСП 1% : 0.00 [00:09:12]line Сумма внесений: 0.00 [00:09:12]line Сумма выплат: 0.00 [00:09:12]line Нал. в кассе: 449876.00 [00:09:12]line НС Приход: 80898075.36 [00:09:12]line НС Возвр.Прихода: 2947263.00 [00:09:12]line НС Расход: 0.00 [00:09:12]line НС Возвр.Расхода: 0.00 [00:09:12]line ФД: 69609 [00:09:12]line ФМ: 0000000000963346 [00:09:12]line ФПД: 31066517473523 [00:09:12]written 0, free lines is 4095 [00:09:12]Connected sock=10 [00:09:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 81 05 00 00 66 42 79 05 30 EE 5A 05 01 00 05 00 6D 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 9A D0 B0 D0 BB D0 BC D0 B0 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 F4 03 04 00 9E 9B 15 67 0E 04 04 00 C1 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 5E 04 04 00 C5 01 00 00 57 04 04 00 C7 01 00 00 AA 04 DF 04 6E 04 04 00 C5 01 00 00 69 04 A5 00 6F 04 04 00 C2 01 00 00 B1 04 04 00 A3 79 2C 03 70 04 04 00 24 EE BD 02 72 04 03 00 7F 8B 6E 00 04 82 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 1F 4D 56 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 0C 00 F6 03 01 00 01 F7 03 03 00 06 31 07 6A 04 A0 00 6F 04 04 00 03 00 00 00 B1 04 03 00 54 79 0F 70 04 03 00 54 79 0F 72 04 01 00 00 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 B5 A4 01 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 0F 23 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 Write to MH i2c: 09 01 00 00 F6 00 03 FE 01 01 00 FF 01 [00:09:13]F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 Write i2c OK [00:09:13]00 MH_I2C_Read... [00:09:13]EF Read from MH i2c: 03 01 09 [00:09:13]00 MH_I2C_Read... [00:09:13]F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 Read from MH i2c: 04 01 F7 07 03 00 00 [00:09:13]00 MH_I2C_Read... [00:09:13]EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 Read from MH i2c: F6 01 03 07 01 00 00 FE 06 01 F7 00 03 00 00 00 00 00 D1 00 04 F2 8D 0A 00 02 6F [00:09:13]04 RasterBufferAndPrint [00:09:13]04 line [00:09:13]00 line [00:09:13]00 line [00:09:13]00 line [00:09:13]00 line [00:09:13]00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE written 0, free lines is 2948 [00:09:13]03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 MH_Cut [00:09:13]01 Write to MH i2c: 00 D1 01 01 F3 00 03 05 00 02 00 01 EF D9 03 [00:09:13]09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 Write i2c OK [00:09:13]01 MH_I2C_Read... [00:09:13]00 Read from MH i2c: 01 D1 F7 [00:09:13]03 MH_I2C_Read... [00:09:13]00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 Read from MH i2c: 09 D1 00 01 F6 00 03 [00:09:13]01 MH_I2C_Read... [00:09:13]00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 Read from MH i2c: 00 D1 00 01 EF 00 03 05 09 02 00 00 F6 D8 03 [00:09:13]01 Write to MH i2c: 00 01 05 00 F7 00 03 06 00 02 00 08 EF [00:09:13]03 09 00 F6 03 01 00 06 F7 03 Write i2c OK [00:09:13]00 MH_I2C_Read... [00:09:13]00 10 04 04 00 E9 0F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 35 04 06 00 1C 41 3C BD 08 F3 AC A3 61 EE CD 6F 5F 3A [00:09:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 29 35 47 00 C4 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 E9 0F 01 00 F4 03 04 00 4D 45 15 67 B6 04 01 00 00 9F D4 20 02 B7 04 A7 7F [00:09:14]CommunicateWithHost err = 0 [00:09:14]CheckOFDResponse [00:09:14]1017 (14) - 77093643461234 [00:09:14]1041 (16) - 0000000000963346 [00:09:14]1040 (4) - 69609 [00:09:14]1012 (4) - 20.10.2024 18:00 [00:09:14]1206 (1) - 0 [00:09:14]OFD Sender: Remove packet 69609 [00:09:14]ProducePacketName [00:09:14]name=ofd_packets/00069609 [00:09:14]NVStorageDeleteData [00:09:14]*** Cut start [00:09:14]*** Partial cut [00:09:14]*** CUTSNS_PIN = 1 [00:09:14]*** CUTSNS_PIN = 0 [00:09:14]OFD Sender: No OFD packet to send [00:09:14]*** Brake cut motor [00:09:15]Read from MH i2c: 01 [00:09:15]MH_I2C_Read... [00:09:15]*** Stop cut motor [00:09:15]*** Cut end [00:09:15]Read from MH i2c: 01 07 00 [00:09:15]MH_I2C_Read... [00:09:15]Read from MH i2c: 01 07 00 06 02 00 00 00 00 00 FF 0F 1D [00:09:15]process_action close_shift done [00:09:15]requested_data is exist [00:09:15]produce_requested_data [00:09:15]requested_item fd.num is exist - process it [00:09:15]SAM_PROTO_GetFieldsCounters [00:09:15]wFMCommunicate request_size=4 [00:09:15]MH_SAM_APDU [00:09:15]CAPDU: 80 13 00 00 [00:09:15]Write to MH i2c: E2 08 00 07 02 80 13 00 00 00 00 00 00 85 [00:09:15]Write i2c OK [00:09:15]MH_I2C_Read... [00:09:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:09:15]Read from MH i2c: E2 [00:09:15]MH_I2C_Read... [00:09:15]Read from MH i2c: E2 62 00 [00:09:15]MH_I2C_Read... [00:09:15]Read from MH i2c: E2 62 00 07 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E9 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C5 01 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C7 01 00 00 19 04 04 00 00 00 00 00 90 00 AD [00:09:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E9 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C5 01 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C7 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:09:15]wFMCommunicate OK [00:09:15]SAM_PROTO_GetFieldsCounters done [00:09:15]requested_item shift.num is exist - process it [00:09:15]requested_item shift.opened is exist - process it [00:09:15]req_shift_opened [00:09:15]FM_GetShiftState [00:09:15]SAM_PROTO_GetShiftState [00:09:15]wFMCommunicate request_size=4 [00:09:15]MH_SAM_APDU [00:09:15]CAPDU: 80 13 01 00 [00:09:15]Write to MH i2c: E2 08 00 08 02 80 13 01 00 00 00 00 00 87 [00:09:15]Write i2c OK [00:09:15]MH_I2C_Read... [00:09:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:15]Read from MH i2c: E2 [00:09:15]MH_I2C_Read... [00:09:15]Read from MH i2c: E2 0E 00 [00:09:15]MH_I2C_Read... [00:09:15]Read from MH i2c: E2 0E 00 08 02 00 09 00 00 00 00 00 00 00 00 00 00 90 00 92 [00:09:15]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:09:15]wFMCommunicate OK [00:09:15]SAM_PROTO_GetShiftState done [00:09:15]FM_GetShiftState done [00:09:15]req_shift_opened done [00:09:15]requested_item shift.open_date is exist - process it [00:09:15]req_shift_open_date [00:09:15]FM_GetShiftState [00:09:15]SAM_PROTO_GetShiftState [00:09:15]wFMCommunicate request_size=4 [00:09:15]MH_SAM_APDU [00:09:15]CAPDU: 80 13 01 00 [00:09:15]Write to MH i2c: E2 08 00 09 02 80 13 01 00 00 00 00 00 88 [00:09:15]Write i2c OK [00:09:15]MH_I2C_Read... [00:09:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:15]Read from MH i2c: E2 [00:09:15]MH_I2C_Read... [00:09:15]Read from MH i2c: E2 0E 00 [00:09:15]MH_I2C_Read... [00:09:15]Read from MH i2c: E2 0E 00 09 02 00 09 00 00 00 00 00 00 00 00 00 00 90 00 93 [00:09:15]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:09:15]wFMCommunicate OK [00:09:15]SAM_PROTO_GetShiftState done [00:09:15]FM_GetShiftState done [00:09:15]req_shift_open_date done [00:09:15]produce_requested_data done [00:09:15]produce_requested_data return {"fd.num":69609,"shift.num":193,"shift.opened":0,"shift.open_date":0} [00:09:15]process_action_free close_shift [00:09:15]json_value_free [00:09:15]json_value_free done [00:09:15]process_json_proto returns [00:09:15]Send response to host [00:09:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":69609,"shift.num":193,"shift.opened":0,"shift.open_date":0}}} [00:09:15]free response buf [00:09:15]execute_script done [00:09:15]execute_script returns [00:09:15]free content buf [00:09:15]Sock 8.Close socket [00:09:15]Sock 8.Thread stoped [00:09:19]OFD Sender: No OFD packet to send [00:09:24]OFD Sender: No OFD packet to send [00:09:29]OFD Sender: No OFD packet to send [00:09:34]OFD Sender: No OFD packet to send [00:09:39]OFD Sender: No OFD packet to send [00:09:44]OFD Sender: No OFD packet to send [00:09:49]OFD Sender: No OFD packet to send [00:09:54]OFD Sender: No OFD packet to send [00:09:59]OFD Sender: No OFD packet to send [00:10:04]OFD Sender: No OFD packet to send [00:10:09]OFD Sender: No OFD packet to send [00:10:14]OFD Sender: No OFD packet to send [00:10:19]OFD Sender: No OFD packet to send [00:10:24]OFD Sender: No OFD packet to send [00:10:29]OFD Sender: No OFD packet to send [00:10:34]OFD Sender: No OFD packet to send [00:10:39]OFD Sender: No OFD packet to send [00:10:44]OFD Sender: No OFD packet to send [00:10:49]OFD Sender: No OFD packet to send [00:10:54]OFD Sender: No OFD packet to send [00:10:59]OFD Sender: No OFD packet to send [00:11:04]OFD Sender: No OFD packet to send [00:11:09]OFD Sender: No OFD packet to send [00:11:14]OFD Sender: No OFD packet to send [00:11:19]OFD Sender: No OFD packet to send [00:11:24]OFD Sender: No OFD packet to send [00:11:29]OFD Sender: No OFD packet to send [00:11:34]OFD Sender: No OFD packet to send [00:11:39]OFD Sender: No OFD packet to send [00:11:44]OFD Sender: No OFD packet to send [00:11:49]OFD Sender: No OFD packet to send [00:11:54]OFD Sender: No OFD packet to send [00:11:59]OFD Sender: No OFD packet to send [00:12:04]OFD Sender: No OFD packet to send [00:12:09]OFD Sender: No OFD packet to send [00:12:14]OFD Sender: No OFD packet to send [00:12:19]OFD Sender: No OFD packet to send [00:12:24]OFD Sender: No OFD packet to send [00:12:29]OFD Sender: No OFD packet to send [00:12:34]OFD Sender: No OFD packet to send [00:12:39]OFD Sender: No OFD packet to send [00:12:44]OFD Sender: No OFD packet to send [00:12:49]OFD Sender: No OFD packet to send [00:12:54]OFD Sender: No OFD packet to send [00:12:59]OFD Sender: No OFD packet to send [00:13:04]OFD Sender: No OFD packet to send [00:13:09]OFD Sender: No OFD packet to send [00:13:14]OFD Sender: No OFD packet to send [00:13:19]OFD Sender: No OFD packet to send [00:13:24]OFD Sender: No OFD packet to send [00:13:29]OFD Sender: No OFD packet to send [00:13:34]OFD Sender: No OFD packet to send [00:13:39]OFD Sender: No OFD packet to send [00:13:44]OFD Sender: No OFD packet to send [00:13:49]OFD Sender: No OFD packet to send [00:13:54]OFD Sender: No OFD packet to send [00:13:59]OFD Sender: No OFD packet to send [00:14:04]OFD Sender: No OFD packet to send [00:14:09]OFD Sender: No OFD packet to send [00:14:14]OFD Sender: No OFD packet to send [00:14:19]OFD Sender: No OFD packet to send [00:14:24]OFD Sender: No OFD packet to send [00:14:29]OFD Sender: No OFD packet to send [00:14:34]OFD Sender: No OFD packet to send [00:14:39]OFD Sender: No OFD packet to send [00:14:44]OFD Sender: No OFD packet to send [00:14:49]OFD Sender: No OFD packet to send [00:14:54]OFD Sender: No OFD packet to send [00:14:59]accept exits with 9 [00:14:59]New connection [00:14:59]New thread 3067313508 created [00:14:59]Thread 3067456868 joined [00:14:59]Waiting for new connection... [00:14:59] Sock 9.Parse request [00:14:59]Sock 9.Check first char [00:14:59]Sock 9.First char is OK [00:14:59]request: POST /json_proto HTTP/1.0 [00:14:59]Method: POST [00:14:59]URL: /json_proto [00:14:59]Method is POST - this is cgi request [00:14:59]url: /json_proto [00:14:59]query_string will be loaded in cgi processing [00:14:59]execute_cgi json_proto POST (null) [00:14:59]execute_cgi path=json_proto method=POST [00:14:59]POST find Content-Length [00:14:59]Host: 172.17.50.3:8080 [00:14:59]Content-Length: 215 [00:14:59]Content-Type: application/json [00:14:59] [00:14:59]POST finish read [00:14:59]Found Content-Length = 215 [00:14:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:14:59]execute_script... [00:14:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:14:59]POST & json_proto [00:14:59]process_json_proto [00:14:59]json parsed OK: [00:14:59]protocol is kg_v1.0 [00:14:59]action value=get_value [00:14:59]process_action get_value [00:14:59]cmd_get_value [00:14:59]process_action get_value done [00:14:59]requested_data is exist [00:14:59]produce_requested_data [00:14:59]requested_item kkm.sn is exist - process it [00:14:59]requested_item kkm.ver is exist - process it [00:14:59]requested_item fm.sn is exist - process it [00:14:59]wFMCommunicate request_size=4 [00:14:59]MH_SAM_APDU [00:14:59]CAPDU: 80 11 00 00 [00:14:59]Write to MH i2c: E2 08 00 0A 02 80 11 00 00 00 00 00 00 86 [00:14:59]Write i2c OK [00:14:59]MH_I2C_Read... [00:14:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:14:59]Read from MH i2c: E2 [00:14:59]MH_I2C_Read... [00:14:59]Read from MH i2c: E2 17 00 [00:14:59]MH_I2C_Read... [00:14:59]Read from MH i2c: E2 17 00 0A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D8 [00:14:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:14:59]wFMCommunicate OK [00:14:59]requested_item fd.num is exist - process it [00:14:59]SAM_PROTO_GetFieldsCounters [00:14:59]wFMCommunicate request_size=4 [00:14:59]MH_SAM_APDU [00:14:59]CAPDU: 80 13 00 00 [00:14:59]Write to MH i2c: E2 08 00 0B 02 80 13 00 00 00 00 00 00 89 [00:14:59]Write i2c OK [00:14:59]MH_I2C_Read... [00:14:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:14:59]Read from MH i2c: E2 [00:14:59]MH_I2C_Read... [00:14:59]Read from MH i2c: E2 62 00 [00:14:59]MH_I2C_Read... [00:14:59]Read from MH i2c: E2 62 00 0B 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E9 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C5 01 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C7 01 00 00 19 04 04 00 00 00 00 00 90 00 B1 [00:14:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 E9 0F 01 00 0E 04 04 00 C1 00 00 00 12 04 04 00 C5 01 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C7 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:14:59]wFMCommunicate OK [00:14:59]SAM_PROTO_GetFieldsCounters done [00:14:59]requested_item shift.num is exist - process it [00:14:59]requested_item shift.opened is exist - process it [00:14:59]req_shift_opened [00:14:59]FM_GetShiftState [00:14:59]SAM_PROTO_GetShiftState [00:14:59]wFMCommunicate request_size=4 [00:14:59]MH_SAM_APDU [00:14:59]CAPDU: 80 13 01 00 [00:14:59]Write to MH i2c: E2 08 00 0C 02 80 13 01 00 00 00 00 00 8B [00:14:59]Write i2c OK [00:14:59]MH_I2C_Read... [00:14:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:14:59]Read from MH i2c: E2 [00:14:59]MH_I2C_Read... [00:14:59]Read from MH i2c: E2 0E 00 [00:14:59]MH_I2C_Read... [00:14:59]Read from MH i2c: E2 0E 00 0C 02 00 09 00 00 00 00 00 00 00 00 00 00 90 00 96 [00:14:59]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:14:59]wFMCommunicate OK [00:14:59]SAM_PROTO_GetShiftState done [00:14:59]FM_GetShiftState done [00:14:59]req_shift_opened done [00:14:59]requested_item shift.open_date is exist - process it [00:14:59]req_shift_open_date [00:14:59]FM_GetShiftState [00:14:59]SAM_PROTO_GetShiftState [00:14:59]wFMCommunicate request_size=4 [00:14:59]MH_SAM_APDU [00:14:59]CAPDU: 80 13 01 00 [00:14:59]Write to MH i2c: E2 08 00 0D 02 80 13 01 00 00 00 00 00 8C [00:14:59]Write i2c OK [00:14:59]MH_I2C_Read... [00:14:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:14:59]Read from MH i2c: E2 [00:14:59]MH_I2C_Read... [00:14:59]Read from MH i2c: E2 0E 00 [00:14:59]MH_I2C_Read... [00:14:59]Read from MH i2c: E2 0E 00 0D 02 00 09 00 00 00 00 00 00 00 00 00 00 90 00 97 [00:14:59]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:14:59]wFMCommunicate OK [00:14:59]SAM_PROTO_GetShiftState done [00:14:59]FM_GetShiftState done [00:14:59]req_shift_open_date done [00:14:59]produce_requested_data done [00:14:59]produce_requested_data return {"kkm.sn":"0300000167","kkm.ver":"v1.0","fm.sn":"0000000000963346","fd.num":69609,"shift.num":193,"shift.opened":0,"shift.open_date":0} [00:14:59]process_action_free get_value [00:14:59]json_value_free [00:14:59]json_value_free done [00:14:59]process_json_proto returns [00:14:59]Send response to host [00:14:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000167","kkm.ver":"v1.0","fm.sn":"0000000000963346","fd.num":69609,"shift.num":193,"shift.opened":0,"shift.open_date":0}}} [00:14:59]free response buf [00:14:59]execute_script done [00:14:59]execute_script returns [00:14:59]free content buf [00:14:59]Sock 9.Close socket [00:14:59]Sock 9.Thread stoped [00:14:59]accept exits with 8 [00:14:59]New connection [00:14:59]New thread 3067456868 created [00:14:59]Thread 3067313508 joined [00:14:59]Waiting for new connection... [00:14:59] Sock 8.Parse request [00:14:59]Sock 8.Check first char [00:14:59]Sock 8.First char is OK [00:14:59]request: POST /json_proto HTTP/1.0 [00:14:59]Method: POST [00:14:59]URL: /json_proto [00:14:59]Method is POST - this is cgi request [00:14:59]url: /json_proto [00:14:59]query_string will be loaded in cgi processing [00:14:59]execute_cgi json_proto POST (null) [00:14:59]execute_cgi path=json_proto method=POST [00:14:59]POST find Content-Length [00:14:59]Host: 172.17.50.3:8080 [00:14:59]Content-Length: 331 [00:14:59]Content-Type: application/json [00:14:59] [00:14:59]POST finish read [00:14:59]Found Content-Length = 331 [00:14:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:14:59]execute_script... [00:14:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:14:59]POST & json_proto [00:14:59]process_json_proto [00:14:59]json parsed OK: [00:14:59]protocol is kg_v1.0 [00:14:59]action value=get_value [00:14:59]process_action get_value [00:14:59]cmd_get_value [00:14:59]process_action get_value done [00:14:59]requested_data is exist [00:14:59]produce_requested_data [00:14:59]requested_item fm.sale.total is exist - process it [00:14:59]SAM_PROTO_GetFMData [00:14:59]wFMCommunicate request_size=4 [00:14:59]MH_SAM_APDU [00:14:59]CAPDU: 80 13 03 00 [00:14:59]Write to MH i2c: E2 08 00 0E 02 80 13 03 00 00 00 00 00 8F [00:14:59]Write i2c OK [00:14:59]MH_I2C_Read... [00:14:59]OFD Sender: No OFD packet to send [00:15:00]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:15:00]Read from MH i2c: E2 [00:15:00]MH_I2C_Read... [00:15:00]Read from MH i2c: E2 FD 00 [00:15:00]MH_I2C_Read... [00:15:00]Read from MH i2c: E2 FD 00 0E 02 00 C5 04 85 04 C1 04 6E 04 04 00 66 0E 01 00 69 04 A3 00 6F 04 04 00 2B 0B 01 00 B1 04 05 00 B0 AA 30 E2 01 70 04 05 00 14 8D EC 57 01 72 04 04 00 9C 1D 44 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 16 72 37 33 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 7D 8F 44 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 3B 03 00 00 B1 04 04 00 9C 2A 91 11 70 04 04 00 9C 2A 91 11 72 04 00 00 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 5D 9E DD 01 EF 03 09 90 00 65 [00:15:00]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 66 0E 01 00 69 04 A3 00 6F 04 04 00 2B 0B 01 00 B1 04 05 00 B0 AA 30 E2 01 70 04 05 00 14 8D EC 57 01 72 04 04 00 9C 1D 44 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 16 72 37 33 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 7D 8F 44 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 3B 03 00 00 B1 04 04 00 9C 2A 91 11 70 04 04 00 9C 2A 91 11 72 04 00 00 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 5D 9E DD 01 EF 03 09 90 00 [00:15:00]wFMCommunicate OK [00:15:00]wFMCommunicate request_size=4 [00:15:00]MH_SAM_APDU [00:15:00]CAPDU: 80 17 00 00 [00:15:00]Write to MH i2c: E2 08 00 0F 02 80 17 00 00 00 00 00 00 91 [00:15:00]Write i2c OK [00:15:00]MH_I2C_Read... [00:15:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:00]Read from MH i2c: E2 [00:15:00]MH_I2C_Read... [00:15:00]Read from MH i2c: E2 FD 00 [00:15:00]MH_I2C_Read... [00:15:00]Read from MH i2c: E2 FD 00 0F 02 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F7 CC 27 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 31 [00:15:00]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F7 CC 27 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:00]wFMCommunicate OK [00:15:00]wFMCommunicate request_size=4 [00:15:00]MH_SAM_APDU [00:15:00]CAPDU: 80 17 00 00 [00:15:00]Write to MH i2c: E2 08 00 10 02 80 17 00 00 00 00 00 00 92 [00:15:00]Write i2c OK [00:15:00]MH_I2C_Read... [00:15:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:00]Read from MH i2c: E2 [00:15:00]MH_I2C_Read... [00:15:00]Read from MH i2c: E2 FD 00 [00:15:00]MH_I2C_Read... [00:15:00]Read from MH i2c: E2 FD 00 10 02 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A4 [00:15:00]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:00]wFMCommunicate OK [00:15:00]wFMCommunicate request_size=4 [00:15:00]MH_SAM_APDU [00:15:00]CAPDU: 80 17 00 00 [00:15:00]Write to MH i2c: E2 08 00 11 02 80 17 00 00 00 00 00 00 93 [00:15:00]Write i2c OK [00:15:00]MH_I2C_Read... [00:15:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:00]Read from MH i2c: E2 [00:15:00]MH_I2C_Read... [00:15:00]Read from MH i2c: E2 FD 00 [00:15:00]MH_I2C_Read... [00:15:00]Read from MH i2c: E2 FD 00 11 02 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1F [00:15:00]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:00]wFMCommunicate OK [00:15:00]wFMCommunicate request_size=4 [00:15:00]MH_SAM_APDU [00:15:00]CAPDU: 80 17 00 00 [00:15:00]Write to MH i2c: E2 08 00 12 02 80 17 00 00 00 00 00 00 94 [00:15:00]Write i2c OK [00:15:00]MH_I2C_Read... [00:15:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:15:01]Read from MH i2c: E2 [00:15:01]MH_I2C_Read... [00:15:01]Read from MH i2c: E2 E2 00 [00:15:01]MH_I2C_Read... [00:15:01]Read from MH i2c: E2 E2 00 12 02 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 72 [00:15:01]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:15:01]wFMCommunicate OK [00:15:01]SAM_PROTO_GetFMData done [00:15:01]requested_item fm.sale_refund.total is exist - process it [00:15:01]requested_item fm.buy.total is exist - process it [00:15:01]requested_item shift.sale.total is exist - process it [00:15:01]SAM_PROTO_GetShiftData [00:15:01]wFMCommunicate request_size=4 [00:15:01]MH_SAM_APDU [00:15:01]CAPDU: 80 13 02 00 [00:15:01]Write to MH i2c: E2 08 00 13 02 80 13 02 00 00 00 00 00 93 [00:15:01]Write i2c OK [00:15:01]MH_I2C_Read... [00:15:01]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:15:01]Read from MH i2c: E2 [00:15:01]MH_I2C_Read... [00:15:01]Read from MH i2c: E2 FD 00 [00:15:01]MH_I2C_Read... [00:15:01]Read from MH i2c: E2 FD 00 13 02 00 BC 04 AA 04 B8 04 6E 04 04 00 C5 01 00 00 69 04 9E 00 6F 04 04 00 C2 01 00 00 B1 04 04 00 A3 79 2C 03 70 04 04 00 24 EE BD 02 72 04 03 00 7F 8B 6E 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 1F 4D 56 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 06 31 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 54 79 0F 70 04 03 00 54 79 0F 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B5 A4 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 D9 [00:15:01]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 C5 01 00 00 69 04 9E 00 6F 04 04 00 C2 01 00 00 B1 04 04 00 A3 79 2C 03 70 04 04 00 24 EE BD 02 72 04 03 00 7F 8B 6E 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 1F 4D 56 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 06 31 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 54 79 0F 70 04 03 00 54 79 0F 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B5 A4 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:15:01]wFMCommunicate OK [00:15:01]wFMCommunicate request_size=4 [00:15:01]MH_SAM_APDU [00:15:01]CAPDU: 80 17 00 00 [00:15:01]Write to MH i2c: E2 08 00 14 02 80 17 00 00 00 00 00 00 96 [00:15:01]Write i2c OK [00:15:01]MH_I2C_Read... [00:15:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:01]Read from MH i2c: E2 [00:15:01]MH_I2C_Read... [00:15:01]Read from MH i2c: E2 FD 00 [00:15:01]MH_I2C_Read... [00:15:01]Read from MH i2c: E2 FD 00 14 02 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0F 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 72 [00:15:01]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 0F 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:01]wFMCommunicate OK [00:15:01]wFMCommunicate request_size=4 [00:15:01]MH_SAM_APDU [00:15:01]CAPDU: 80 17 00 00 [00:15:01]Write to MH i2c: E2 08 00 15 02 80 17 00 00 00 00 00 00 97 [00:15:01]Write i2c OK [00:15:01]MH_I2C_Read... [00:15:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:02]Read from MH i2c: E2 [00:15:02]MH_I2C_Read... [00:15:02]Read from MH i2c: E2 FD 00 [00:15:02]MH_I2C_Read... [00:15:02]Read from MH i2c: E2 FD 00 15 02 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C0 [00:15:02]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:02]wFMCommunicate OK [00:15:02]wFMCommunicate request_size=4 [00:15:02]MH_SAM_APDU [00:15:02]CAPDU: 80 17 00 00 [00:15:02]Write to MH i2c: E2 08 00 16 02 80 17 00 00 00 00 00 00 98 [00:15:02]Write i2c OK [00:15:02]MH_I2C_Read... [00:15:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:02]Read from MH i2c: E2 [00:15:02]MH_I2C_Read... [00:15:02]Read from MH i2c: E2 FD 00 [00:15:02]MH_I2C_Read... [00:15:02]Read from MH i2c: E2 FD 00 16 02 00 03 00 00 EF 03 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 90 00 19 [00:15:02]RAPDU: 03 00 00 EF 03 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 90 00 [00:15:02]wFMCommunicate OK [00:15:02]wFMCommunicate request_size=4 [00:15:02]MH_SAM_APDU [00:15:02]CAPDU: 80 17 00 00 [00:15:02]Write to MH i2c: E2 08 00 17 02 80 17 00 00 00 00 00 00 99 [00:15:02]Write i2c OK [00:15:02]MH_I2C_Read... [00:15:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:15:02]Read from MH i2c: E2 [00:15:02]MH_I2C_Read... [00:15:02]Read from MH i2c: E2 D9 00 [00:15:02]MH_I2C_Read... [00:15:02]Read from MH i2c: E2 D9 00 17 02 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 78 [00:15:02]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:15:02]wFMCommunicate OK [00:15:02]SAM_PROTO_GetShiftData done [00:15:02]requested_item shift.sale.total_cash is exist - process it [00:15:02]requested_item shift.sale_refund.total is exist - process it [00:15:02]requested_item shift.sale_refund.total_cash is exist - process it [00:15:02]requested_item shift.buy.total is exist - process it [00:15:02]requested_item shift.buy.total_cash is exist - process it [00:15:02]produce_requested_data done [00:15:02]produce_requested_data return {"fm.sale.total":80898075.36,"fm.sale_refund.total":2947263.00,"fm.buy.total":0.00,"shift.sale.total":532463.71,"shift.sale.total_cash":460017.00,"shift.sale_refund.total":10141.00,"shift.sale_refund.total_cash":10141.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:15:02]process_action_free get_value [00:15:02]json_value_free [00:15:02]json_value_free done [00:15:02]process_json_proto returns [00:15:02]Send response to host [00:15:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":80898075.36,"fm.sale_refund.total":2947263.00,"fm.buy.total":0.00,"shift.sale.total":532463.71,"shift.sale.total_cash":460017.00,"shift.sale_refund.total":10141.00,"shift.sale_refund.total_cash":10141.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:15:02]free response buf [00:15:02]execute_script done [00:15:02]execute_script returns [00:15:02]free content buf [00:15:02]Sock 8.Close socket [00:15:02]Sock 8.Thread stoped [00:15:02]accept exits with 9 [00:15:02]New connection [00:15:02]New thread 3067313508 created [00:15:02]Thread 3067456868 joined [00:15:02]Waiting for new connection... [00:15:02] Sock 9.Parse request [00:15:02]Sock 9.Check first char [00:15:02]Sock 9.First char is OK [00:15:02]request: POST /json_proto HTTP/1.0 [00:15:02]Method: POST [00:15:02]URL: /json_proto [00:15:02]Method is POST - this is cgi request [00:15:02]url: /json_proto [00:15:02]query_string will be loaded in cgi processing [00:15:02]execute_cgi json_proto POST (null) [00:15:02]execute_cgi path=json_proto method=POST [00:15:02]POST find Content-Length [00:15:02]Host: 172.17.50.3:8080 [00:15:02]Content-Length: 259 [00:15:02]Content-Type: application/json [00:15:02] [00:15:02]POST finish read [00:15:02]Found Content-Length = 259 [00:15:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0410\u0445\u043C\u0435\u0434\u043E\u0432\u0430 \u0423. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:15:02]execute_script... [00:15:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0410\u0445\u043C\u0435\u0434\u043E\u0432\u0430 \u0423. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:15:02]POST & json_proto [00:15:02]process_json_proto [00:15:02]json parsed OK: [00:15:02]protocol is kg_v1.0 [00:15:02]action value=open_shift [00:15:02]process_action open_shift [00:15:02]cmd_open_shift [00:15:02]MH_GetDate [00:15:02]Write to MH i2c: F0 00 00 18 02 09 [00:15:02]Write i2c OK [00:15:02]MH_I2C_Read... [00:15:02]Read from MH i2c: F0 [00:15:02]MH_I2C_Read... [00:15:02]Read from MH i2c: F0 09 00 [00:15:02]MH_I2C_Read... [00:15:02]Read from MH i2c: F0 09 00 18 02 00 07 9D 15 67 6B 98 1E 66 B9 [00:15:02]GetLastDocTimeStamp 1729469342 [00:15:02]current date 1729469703 [00:15:02]FM_GetShiftState [00:15:02]SAM_PROTO_GetShiftState [00:15:02]wFMCommunicate request_size=4 [00:15:02]MH_SAM_APDU [00:15:02]CAPDU: 80 13 01 00 [00:15:02]Write to MH i2c: E2 08 00 19 02 80 13 01 00 00 00 00 00 98 [00:15:02]Write i2c OK [00:15:02]MH_I2C_Read... [00:15:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:15:03]Read from MH i2c: E2 [00:15:03]MH_I2C_Read... [00:15:03]Read from MH i2c: E2 0E 00 [00:15:03]MH_I2C_Read... [00:15:03]Read from MH i2c: E2 0E 00 19 02 00 09 00 00 00 00 00 00 00 00 00 00 90 00 A3 [00:15:03]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:15:03]wFMCommunicate OK [00:15:03]SAM_PROTO_GetShiftState done [00:15:03]FM_GetShiftState done [00:15:03]KKMCreateOpenShiftDocument [00:15:03]Load OK [00:15:03]Malloc new data [00:15:03]MH_GetDate [00:15:03]Write to MH i2c: F0 00 00 1A 02 0B [00:15:03]Write i2c OK [00:15:03]MH_I2C_Read... [00:15:03]Read from MH i2c: F0 [00:15:03]MH_I2C_Read... [00:15:03]Read from MH i2c: F0 09 00 [00:15:03]MH_I2C_Read... [00:15:03]Read from MH i2c: F0 09 00 1A 02 00 07 9D 15 67 6B 98 1E 66 BB [00:15:03]Malloc new data [00:15:03]KKMCreateOpenShiftDocument OK [00:15:03]KKMSetOpenShiftData OK [00:15:03]ProcessDocumentItem done err = 0, tmpTLVsize=209 [00:15:03]tlvbuf is 00C1E7E0 [00:15:03]KKMLoadAndSignOpenShiftData [00:15:03]SAM_PROTO_ProcessDocument [00:15:03]wFMCommunicate request_size=9 [00:15:03]MH_SAM_APDU [00:15:03]CAPDU: 80 15 01 00 04 02 00 D1 00 [00:15:03]Write to MH i2c: E2 0C 00 1B 02 80 15 01 00 04 00 02 00 D1 00 00 00 77 [00:15:03]Write i2c OK [00:15:03]MH_I2C_Read... [00:15:03]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:15:03]Read from MH i2c: E2 [00:15:03]MH_I2C_Read... [00:15:03]Read from MH i2c: E2 03 00 [00:15:03]MH_I2C_Read... [00:15:03]Read from MH i2c: E2 03 00 1B 02 00 90 00 91 [00:15:03]RAPDU: 90 00 [00:15:03]wFMCommunicate OK [00:15:03]wFMCommunicate request_size=23 [00:15:03]MH_SAM_APDU [00:15:03]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:15:03]Write to MH i2c: E2 1A 00 1C 02 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 93 [00:15:03]Write i2c OK [00:15:03]MH_I2C_Read... [00:15:03]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:15:03]Read from MH i2c: E2 [00:15:03]MH_I2C_Read... [00:15:03]Read from MH i2c: E2 03 00 [00:15:03]MH_I2C_Read... [00:15:03]Read from MH i2c: E2 03 00 1C 02 00 90 00 92 [00:15:03]RAPDU: 90 00 [00:15:03]wFMCommunicate OK [00:15:03]wFMCommunicate request_size=30 [00:15:03]MH_SAM_APDU [00:15:03]CAPDU: 80 15 02 00 19 FD 03 15 00 D0 90 D1 85 D0 BC D0 B5 D0 B4 D0 BE D0 B2 D0 B0 20 D0 A3 2E 20 [00:15:03]Write to MH i2c: E2 21 00 1D 02 80 15 02 00 19 00 FD 03 15 00 D0 90 D1 85 D0 BC D0 B5 D0 B4 D0 BE D0 B2 D0 B0 20 D0 A3 2E 20 00 00 A2 [00:15:03]Write i2c OK [00:15:03]MH_I2C_Read... [00:15:03]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:15:03]Read from MH i2c: E2 [00:15:03]MH_I2C_Read... [00:15:03]Read from MH i2c: E2 03 00 [00:15:03]MH_I2C_Read... [00:15:03]Read from MH i2c: E2 03 00 1D 02 00 90 00 93 [00:15:03]RAPDU: 90 00 [00:15:03]wFMCommunicate OK [00:15:03]wFMCommunicate request_size=98 [00:15:03]MH_SAM_APDU [00:15:03]CAPDU: 80 15 02 00 5D F1 03 59 00 37 32 30 30 30 30 2C 20 D1 81 2E 20 D0 91 D0 B0 D0 B7 D0 B0 D1 80 20 D0 9A D0 BE D1 80 D0 B3 D0 BE D0 BD 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 31 2E 30 35 35 35 32 32 2C 20 37 32 2E 37 35 37 38 36 32 [00:15:03]Write to MH i2c: E2 65 00 1E 02 80 15 02 00 5D 00 F1 03 59 00 37 32 30 30 30 30 2C 20 D1 81 2E 20 D0 91 D0 B0 D0 B7 D0 B0 D1 80 20 D0 9A D0 BE D1 80 D0 B3 D0 BE D0 BD 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 31 2E 30 35 35 35 32 32 2C 20 37 32 2E 37 35 37 38 36 32 00 00 B7 [00:15:03]Write i2c OK [00:15:03]MH_I2C_Read... [00:15:03]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:15:03]Read from MH i2c: E2 [00:15:03]MH_I2C_Read... [00:15:03]Read from MH i2c: E2 03 00 [00:15:03]MH_I2C_Read... [00:15:03]Read from MH i2c: E2 03 00 1E 02 00 90 00 94 [00:15:03]RAPDU: 90 00 [00:15:03]wFMCommunicate OK [00:15:03]wFMCommunicate request_size=50 [00:15:03]MH_SAM_APDU [00:15:03]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:15:03]Write to MH i2c: E2 35 00 1F 02 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 1D [00:15:03]Write i2c OK [00:15:03]MH_I2C_Read... [00:15:03]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:15:03]Read from MH i2c: E2 [00:15:03]MH_I2C_Read... [00:15:03]Read from MH i2c: E2 03 00 [00:15:03]MH_I2C_Read... [00:15:03]Read from MH i2c: E2 03 00 1F 02 00 90 00 95 [00:15:03]RAPDU: 90 00 [00:15:03]wFMCommunicate OK [00:15:03]wFMCommunicate request_size=13 [00:15:03]MH_SAM_APDU [00:15:03]CAPDU: 80 15 02 00 08 F4 03 04 00 07 9D 15 67 [00:15:03]Write to MH i2c: E2 10 00 20 02 80 15 02 00 08 00 F4 03 04 00 07 9D 15 67 00 00 CD [00:15:03]Write i2c OK [00:15:03]MH_I2C_Read... [00:15:03]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:15:03]Read from MH i2c: E2 [00:15:03]MH_I2C_Read... [00:15:03]Read from MH i2c: E2 03 00 [00:15:03]MH_I2C_Read... [00:15:03]Read from MH i2c: E2 03 00 20 02 00 90 00 96 [00:15:03]RAPDU: 90 00 [00:15:03]wFMCommunicate OK [00:15:03]wFMCommunicate request_size=25 [00:15:03]MH_SAM_APDU [00:15:03]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 [00:15:03]Write to MH i2c: E2 1C 00 21 02 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 00 00 00 [00:15:03]Write i2c OK [00:15:03]MH_I2C_Read... [00:15:03]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:15:03]Read from MH i2c: E2 [00:15:03]MH_I2C_Read... [00:15:03]Read from MH i2c: E2 03 00 [00:15:03]MH_I2C_Read... [00:15:03]Read from MH i2c: E2 03 00 21 02 00 90 00 97 [00:15:03]RAPDU: 90 00 [00:15:03]wFMCommunicate OK [00:15:03]wFMCommunicate request_size=4 [00:15:03]MH_SAM_APDU [00:15:03]CAPDU: 80 15 03 00 [00:15:03]Write to MH i2c: E2 08 00 22 02 80 15 03 00 00 00 00 00 A5 [00:15:03]Write i2c OK [00:15:03]MH_I2C_Read... [00:15:03]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:15:03]Read from MH i2c: E2 [00:15:03]MH_I2C_Read... [00:15:03]Read from MH i2c: E2 38 00 [00:15:03]MH_I2C_Read... [00:15:03]Read from MH i2c: E2 38 00 22 02 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EA 0F 01 00 0E 04 04 00 C2 00 00 00 35 04 06 00 A7 30 EF 03 C2 61 90 00 18 [00:15:03]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EA 0F 01 00 0E 04 04 00 C2 00 00 00 35 04 06 00 A7 30 EF 03 C2 61 90 00 [00:15:03]wFMCommunicate OK [00:15:03]SAM_PROTO_ProcessDocument answer len = 51 [00:15:03]SAM_PROTO_ProcessDocument done [00:15:03]SetTLVBufToDocument [00:15:03]Processing tag 1209 (04B9) [00:15:03]Malloc new data [00:15:03]Processing tag 1041 (0411) [00:15:03]Processing tag 1040 (0410) [00:15:03]Malloc new data [00:15:03]Processing tag 1038 (040E) [00:15:03]Malloc new data [00:15:03]Processing tag 1077 (0435) [00:15:03]Malloc new data [00:15:03]SetTLVBufToDocument err=0 [00:15:03]KKMLoadAndSignOpenShiftData store KKM data [00:15:03]KKMLoadAndSignOpenShiftData err=0 [00:15:03]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Ахмедова У. Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 Место: АЗС № 85 "Партнер Нефть" 21.10.2024 00:15 Смена: 194 РНМ: 0000000000156251 ЗНМ: 0300000167 ФД: 69610 ФМ: 0000000000963346 ФПД: 183828610269793 [00:15:03]StoreToDocumentArchive [00:15:03]shift 194 fd 69610 [00:15:03]Create dir for shift 0194 [00:15:03]save to /storage/0194/doc_00069610 [00:15:03]save last doc name /storage/0194/doc_00069610 to /storage/kkm_last_doc_name [00:15:03]save OK [00:15:03]Clear old archive folders... [00:15:03]Remove dir /storage/0193 [00:15:03]opendir ok [00:15:03]file . [00:15:03]file .. [00:15:03]file doc_00069155 [00:15:03]remove file /storage/0193/doc_00069155 [00:15:03]file doc_00069156 [00:15:03]remove file /storage/0193/doc_00069156 [00:15:03]file doc_00069157 [00:15:03]remove file /storage/0193/doc_00069157 [00:15:03]file doc_00069158 [00:15:03]remove file /storage/0193/doc_00069158 [00:15:03]file doc_00069159 [00:15:03]remove file /storage/0193/doc_00069159 [00:15:03]file doc_00069160 [00:15:03]remove file /storage/0193/doc_00069160 [00:15:03]file doc_00069161 [00:15:03]remove file /storage/0193/doc_00069161 [00:15:03]file doc_00069162 [00:15:03]remove file /storage/0193/doc_00069162 [00:15:03]file doc_00069163 [00:15:03]remove file /storage/0193/doc_00069163 [00:15:03]file doc_00069164 [00:15:03]remove file /storage/0193/doc_00069164 [00:15:03]file doc_00069165 [00:15:03]remove file /storage/0193/doc_00069165 [00:15:03]file doc_00069166 [00:15:03]remove file /storage/0193/doc_00069166 [00:15:03]file doc_00069167 [00:15:03]remove file /storage/0193/doc_00069167 [00:15:03]file doc_00069168 [00:15:03]remove file /storage/0193/doc_00069168 [00:15:03]file doc_00069169 [00:15:03]remove file /storage/0193/doc_00069169 [00:15:03]file doc_00069170 [00:15:03]remove file /storage/0193/doc_00069170 [00:15:03]file doc_00069171 [00:15:03]remove file /storage/0193/doc_00069171 [00:15:03]file doc_00069172 [00:15:03]remove file /storage/0193/doc_00069172 [00:15:03]file doc_00069173 [00:15:03]remove file /storage/0193/doc_00069173 [00:15:03]file doc_00069174 [00:15:03]remove file /storage/0193/doc_00069174 [00:15:03]file doc_00069175 [00:15:03]remove file /storage/0193/doc_00069175 [00:15:03]file doc_00069176 [00:15:03]remove file /storage/0193/doc_00069176 [00:15:03]file doc_00069177 [00:15:03]remove file /storage/0193/doc_00069177 [00:15:03]file doc_00069178 [00:15:03]remove file /storage/0193/doc_00069178 [00:15:03]file doc_00069179 [00:15:03]remove file /storage/0193/doc_00069179 [00:15:03]file doc_00069180 [00:15:03]remove file /storage/0193/doc_00069180 [00:15:03]file doc_00069181 [00:15:03]remove file /storage/0193/doc_00069181 [00:15:03]file doc_00069182 [00:15:03]remove file /storage/0193/doc_00069182 [00:15:03]file doc_00069183 [00:15:03]remove file /storage/0193/doc_00069183 [00:15:03]file doc_00069184 [00:15:03]remove file /storage/0193/doc_00069184 [00:15:03]file doc_00069185 [00:15:03]remove file /storage/0193/doc_00069185 [00:15:03]file doc_00069186 [00:15:03]remove file /storage/0193/doc_00069186 [00:15:03]file doc_00069187 [00:15:03]remove file /storage/0193/doc_00069187 [00:15:03]file doc_00069188 [00:15:03]remove file /storage/0193/doc_00069188 [00:15:03]file doc_00069189 [00:15:03]remove file /storage/0193/doc_00069189 [00:15:03]file doc_00069190 [00:15:03]remove file /storage/0193/doc_00069190 [00:15:03]file doc_00069191 [00:15:03]remove file /storage/0193/doc_00069191 [00:15:03]file doc_00069192 [00:15:03]remove file /storage/0193/doc_00069192 [00:15:04]file doc_00069193 [00:15:04]remove file /storage/0193/doc_00069193 [00:15:04]file doc_00069194 [00:15:04]remove file /storage/0193/doc_00069194 [00:15:04]file doc_00069195 [00:15:04]remove file /storage/0193/doc_00069195 [00:15:04]file doc_00069196 [00:15:04]remove file /storage/0193/doc_00069196 [00:15:04]file doc_00069197 [00:15:04]remove file /storage/0193/doc_00069197 [00:15:04]file doc_00069198 [00:15:04]remove file /storage/0193/doc_00069198 [00:15:04]file doc_00069199 [00:15:04]remove file /storage/0193/doc_00069199 [00:15:04]file doc_00069200 [00:15:04]remove file /storage/0193/doc_00069200 [00:15:04]file doc_00069201 [00:15:04]remove file /storage/0193/doc_00069201 [00:15:04]file doc_00069202 [00:15:04]remove file /storage/0193/doc_00069202 [00:15:04]file doc_00069203 [00:15:04]remove file /storage/0193/doc_00069203 [00:15:04]file doc_00069204 [00:15:04]remove file /storage/0193/doc_00069204 [00:15:04]file doc_00069205 [00:15:04]remove file /storage/0193/doc_00069205 [00:15:04]file doc_00069206 [00:15:04]remove file /storage/0193/doc_00069206 [00:15:04]file doc_00069207 [00:15:04]remove file /storage/0193/doc_00069207 [00:15:04]file doc_00069208 [00:15:04]remove file /storage/0193/doc_00069208 [00:15:04]file doc_00069209 [00:15:04]remove file /storage/0193/doc_00069209 [00:15:04]file doc_00069210 [00:15:04]remove file /storage/0193/doc_00069210 [00:15:04]file doc_00069211 [00:15:04]remove file /storage/0193/doc_00069211 [00:15:04]file doc_00069212 [00:15:04]remove file /storage/0193/doc_00069212 [00:15:04]file doc_00069213 [00:15:04]remove file /storage/0193/doc_00069213 [00:15:04]file doc_00069214 [00:15:04]remove file /storage/0193/doc_00069214 [00:15:04]file doc_00069215 [00:15:04]remove file /storage/0193/doc_00069215 [00:15:04]file doc_00069216 [00:15:04]remove file /storage/0193/doc_00069216 [00:15:04]file doc_00069217 [00:15:04]remove file /storage/0193/doc_00069217 [00:15:04]file doc_00069218 [00:15:04]remove file /storage/0193/doc_00069218 [00:15:04]file doc_00069219 [00:15:04]remove file /storage/0193/doc_00069219 [00:15:04]file doc_00069220 [00:15:04]remove file /storage/0193/doc_00069220 [00:15:04]file doc_00069221 [00:15:04]remove file /storage/0193/doc_00069221 [00:15:04]file doc_00069222 [00:15:04]remove file /storage/0193/doc_00069222 [00:15:04]file doc_00069223 [00:15:04]remove file /storage/0193/doc_00069223 [00:15:04]file doc_00069224 [00:15:04]remove file /storage/0193/doc_00069224 [00:15:04]file doc_00069225 [00:15:04]remove file /storage/0193/doc_00069225 [00:15:04]file doc_00069226 [00:15:04]remove file /storage/0193/doc_00069226 [00:15:04]file doc_00069227 [00:15:04]remove file /storage/0193/doc_00069227 [00:15:04]file doc_00069228 [00:15:04]remove file /storage/0193/doc_00069228 [00:15:04]file doc_00069229 [00:15:04]remove file /storage/0193/doc_00069229 [00:15:04]file doc_00069230 [00:15:04]remove file /storage/0193/doc_00069230 [00:15:04]file doc_00069231 [00:15:04]remove file /storage/0193/doc_00069231 [00:15:04]file doc_00069232 [00:15:04]remove file /storage/0193/doc_00069232 [00:15:04]file doc_00069233 [00:15:04]remove file /storage/0193/doc_00069233 [00:15:04]file doc_00069234 [00:15:04]remove file /storage/0193/doc_00069234 [00:15:04]file doc_00069235 [00:15:04]remove file /storage/0193/doc_00069235 [00:15:04]file doc_00069236 [00:15:04]remove file /storage/0193/doc_00069236 [00:15:04]file doc_00069237 [00:15:04]remove file /storage/0193/doc_00069237 [00:15:04]file doc_00069238 [00:15:04]remove file /storage/0193/doc_00069238 [00:15:04]file doc_00069239 [00:15:04]remove file /storage/0193/doc_00069239 [00:15:04]file doc_00069240 [00:15:04]remove file /storage/0193/doc_00069240 [00:15:04]file doc_00069241 [00:15:04]remove file /storage/0193/doc_00069241 [00:15:04]file doc_00069242 [00:15:04]remove file /storage/0193/doc_00069242 [00:15:04]file doc_00069243 [00:15:04]remove file /storage/0193/doc_00069243 [00:15:04]file doc_00069244 [00:15:04]remove file /storage/0193/doc_00069244 [00:15:04]file doc_00069245 [00:15:04]remove file /storage/0193/doc_00069245 [00:15:04]file doc_00069246 [00:15:04]remove file /storage/0193/doc_00069246 [00:15:04]file doc_00069247 [00:15:04]remove file /storage/0193/doc_00069247 [00:15:04]file doc_00069248 [00:15:04]remove file /storage/0193/doc_00069248 [00:15:04]file doc_00069249 [00:15:04]remove file /storage/0193/doc_00069249 [00:15:04]file doc_00069250 [00:15:04]remove file /storage/0193/doc_00069250 [00:15:04]file doc_00069251 [00:15:04]remove file /storage/0193/doc_00069251 [00:15:04]file doc_00069252 [00:15:04]remove file /storage/0193/doc_00069252 [00:15:04]file doc_00069253 [00:15:04]remove file /storage/0193/doc_00069253 [00:15:04]file doc_00069254 [00:15:04]remove file /storage/0193/doc_00069254 [00:15:04]file doc_00069255 [00:15:04]remove file /storage/0193/doc_00069255 [00:15:04]file doc_00069256 [00:15:04]remove file /storage/0193/doc_00069256 [00:15:04]file doc_00069257 [00:15:04]remove file /storage/0193/doc_00069257 [00:15:04]file doc_00069258 [00:15:04]remove file /storage/0193/doc_00069258 [00:15:04]file doc_00069259 [00:15:04]remove file /storage/0193/doc_00069259 [00:15:04]file doc_00069260 [00:15:04]remove file /storage/0193/doc_00069260 [00:15:04]file doc_00069261 [00:15:04]remove file /storage/0193/doc_00069261 [00:15:04]file doc_00069262 [00:15:04]remove file /storage/0193/doc_00069262 [00:15:04]file doc_00069263 [00:15:04]remove file /storage/0193/doc_00069263 [00:15:04]file doc_00069264 [00:15:04]remove file /storage/0193/doc_00069264 [00:15:04]file doc_00069265 [00:15:04]remove file /storage/0193/doc_00069265 [00:15:04]file doc_00069266 [00:15:04]remove file /storage/0193/doc_00069266 [00:15:04]file doc_00069267 [00:15:04]remove file /storage/0193/doc_00069267 [00:15:04]file doc_00069268 [00:15:04]remove file /storage/0193/doc_00069268 [00:15:04]file doc_00069269 [00:15:04]remove file /storage/0193/doc_00069269 [00:15:04]file doc_00069270 [00:15:04]remove file /storage/0193/doc_00069270 [00:15:04]file doc_00069271 [00:15:04]remove file /storage/0193/doc_00069271 [00:15:04]file doc_00069272 [00:15:04]remove file /storage/0193/doc_00069272 [00:15:04]file doc_00069273 [00:15:04]remove file /storage/0193/doc_00069273 [00:15:04]file doc_00069274 [00:15:04]remove file /storage/0193/doc_00069274 [00:15:04]file doc_00069275 [00:15:04]remove file /storage/0193/doc_00069275 [00:15:04]file doc_00069276 [00:15:04]remove file /storage/0193/doc_00069276 [00:15:04]file doc_00069277 [00:15:04]remove file /storage/0193/doc_00069277 [00:15:04]file doc_00069278 [00:15:04]remove file /storage/0193/doc_00069278 [00:15:04]file doc_00069279 [00:15:04]remove file /storage/0193/doc_00069279 [00:15:04]file doc_00069280 [00:15:04]remove file /storage/0193/doc_00069280 [00:15:04]file doc_00069281 [00:15:04]remove file /storage/0193/doc_00069281 [00:15:04]file doc_00069282 [00:15:04]remove file /storage/0193/doc_00069282 [00:15:04]file doc_00069283 [00:15:04]remove file /storage/0193/doc_00069283 [00:15:04]file doc_00069284 [00:15:04]remove file /storage/0193/doc_00069284 [00:15:04]file doc_00069285 [00:15:04]remove file /storage/0193/doc_00069285 [00:15:04]file doc_00069286 [00:15:04]remove file /storage/0193/doc_00069286 [00:15:04]file doc_00069287 [00:15:04]remove file /storage/0193/doc_00069287 [00:15:04]file doc_00069288 [00:15:04]remove file /storage/0193/doc_00069288 [00:15:04]file doc_00069289 [00:15:04]remove file /storage/0193/doc_00069289 [00:15:04]file doc_00069290 [00:15:04]remove file /storage/0193/doc_00069290 [00:15:04]file doc_00069291 [00:15:04]remove file /storage/0193/doc_00069291 [00:15:04]file doc_00069292 [00:15:04]remove file /storage/0193/doc_00069292 [00:15:04]file doc_00069293 [00:15:04]remove file /storage/0193/doc_00069293 [00:15:04]file doc_00069294 [00:15:04]remove file /storage/0193/doc_00069294 [00:15:04]file doc_00069295 [00:15:04]remove file /storage/0193/doc_00069295 [00:15:04]file doc_00069296 [00:15:04]remove file /storage/0193/doc_00069296 [00:15:04]file doc_00069297 [00:15:04]remove file /storage/0193/doc_00069297 [00:15:04]file doc_00069298 [00:15:04]remove file /storage/0193/doc_00069298 [00:15:04]file doc_00069299 [00:15:04]remove file /storage/0193/doc_00069299 [00:15:04]file doc_00069300 [00:15:04]remove file /storage/0193/doc_00069300 [00:15:04]file doc_00069301 [00:15:04]remove file /storage/0193/doc_00069301 [00:15:04]file doc_00069302 [00:15:04]remove file /storage/0193/doc_00069302 [00:15:04]file doc_00069303 [00:15:04]remove file /storage/0193/doc_00069303 [00:15:04]file doc_00069304 [00:15:04]remove file /storage/0193/doc_00069304 [00:15:04]file doc_00069305 [00:15:04]remove file /storage/0193/doc_00069305 [00:15:04]file doc_00069306 [00:15:04]remove file /storage/0193/doc_00069306 [00:15:04]file doc_00069307 [00:15:04]remove file /storage/0193/doc_00069307 [00:15:04]file doc_00069308 [00:15:04]remove file /storage/0193/doc_00069308 [00:15:04]file doc_00069309 [00:15:04]remove file /storage/0193/doc_00069309 [00:15:04]file doc_00069310 [00:15:04]remove file /storage/0193/doc_00069310 [00:15:04]file doc_00069311 [00:15:04]remove file /storage/0193/doc_00069311 [00:15:04]file doc_00069312 [00:15:04]remove file /storage/0193/doc_00069312 [00:15:04]file doc_00069313 [00:15:04]remove file /storage/0193/doc_00069313 [00:15:04]file doc_00069314 [00:15:04]remove file /storage/0193/doc_00069314 [00:15:04]file doc_00069315 [00:15:04]remove file /storage/0193/doc_00069315 [00:15:04]file doc_00069316 [00:15:04]remove file /storage/0193/doc_00069316 [00:15:04]file doc_00069317 [00:15:04]remove file /storage/0193/doc_00069317 [00:15:04]file doc_00069318 [00:15:04]remove file /storage/0193/doc_00069318 [00:15:04]file doc_00069319 [00:15:04]remove file /storage/0193/doc_00069319 [00:15:04]file doc_00069320 [00:15:04]remove file /storage/0193/doc_00069320 [00:15:04]file doc_00069321 [00:15:04]remove file /storage/0193/doc_00069321 [00:15:04]file doc_00069322 [00:15:04]remove file /storage/0193/doc_00069322 [00:15:04]file doc_00069323 [00:15:04]remove file /storage/0193/doc_00069323 [00:15:04]file doc_00069324 [00:15:04]remove file /storage/0193/doc_00069324 [00:15:04]file doc_00069325 [00:15:04]remove file /storage/0193/doc_00069325 [00:15:04]file doc_00069326 [00:15:04]remove file /storage/0193/doc_00069326 [00:15:04]file doc_00069327 [00:15:04]remove file /storage/0193/doc_00069327 [00:15:04]file doc_00069328 [00:15:04]remove file /storage/0193/doc_00069328 [00:15:04]file doc_00069329 [00:15:04]remove file /storage/0193/doc_00069329 [00:15:04]file doc_00069330 [00:15:04]remove file /storage/0193/doc_00069330 [00:15:04]file doc_00069331 [00:15:04]remove file /storage/0193/doc_00069331 [00:15:04]file doc_00069332 [00:15:04]remove file /storage/0193/doc_00069332 [00:15:04]file doc_00069333 [00:15:04]remove file /storage/0193/doc_00069333 [00:15:04]file doc_00069334 [00:15:04]remove file /storage/0193/doc_00069334 [00:15:04]file doc_00069335 [00:15:04]remove file /storage/0193/doc_00069335 [00:15:04]file doc_00069336 [00:15:04]remove file /storage/0193/doc_00069336 [00:15:04]file doc_00069337 [00:15:04]remove file /storage/0193/doc_00069337 [00:15:04]file doc_00069338 [00:15:04]remove file /storage/0193/doc_00069338 [00:15:04]file doc_00069339 [00:15:04]remove file /storage/0193/doc_00069339 [00:15:04]file doc_00069340 [00:15:04]remove file /storage/0193/doc_00069340 [00:15:05]file doc_00069341 [00:15:05]remove file /storage/0193/doc_00069341 [00:15:05]OFD Sender: No OFD packet to send [00:15:05]file doc_00069342 [00:15:05]remove file /storage/0193/doc_00069342 [00:15:05]file doc_00069343 [00:15:05]remove file /storage/0193/doc_00069343 [00:15:05]file doc_00069344 [00:15:05]remove file /storage/0193/doc_00069344 [00:15:05]file doc_00069345 [00:15:05]remove file /storage/0193/doc_00069345 [00:15:05]file doc_00069346 [00:15:05]remove file /storage/0193/doc_00069346 [00:15:05]file doc_00069347 [00:15:05]remove file /storage/0193/doc_00069347 [00:15:05]file doc_00069348 [00:15:05]remove file /storage/0193/doc_00069348 [00:15:05]file doc_00069349 [00:15:05]remove file /storage/0193/doc_00069349 [00:15:05]file doc_00069350 [00:15:05]remove file /storage/0193/doc_00069350 [00:15:05]file doc_00069351 [00:15:05]remove file /storage/0193/doc_00069351 [00:15:05]file doc_00069352 [00:15:05]remove file /storage/0193/doc_00069352 [00:15:05]file doc_00069353 [00:15:05]remove file /storage/0193/doc_00069353 [00:15:05]file doc_00069354 [00:15:05]remove file /storage/0193/doc_00069354 [00:15:05]file doc_00069355 [00:15:05]remove file /storage/0193/doc_00069355 [00:15:05]file doc_00069356 [00:15:05]remove file /storage/0193/doc_00069356 [00:15:05]file doc_00069357 [00:15:05]remove file /storage/0193/doc_00069357 [00:15:05]file doc_00069358 [00:15:05]remove file /storage/0193/doc_00069358 [00:15:05]file doc_00069359 [00:15:05]remove file /storage/0193/doc_00069359 [00:15:05]file doc_00069360 [00:15:05]remove file /storage/0193/doc_00069360 [00:15:05]file doc_00069361 [00:15:05]remove file /storage/0193/doc_00069361 [00:15:05]file doc_00069362 [00:15:05]remove file /storage/0193/doc_00069362 [00:15:05]file doc_00069363 [00:15:05]remove file /storage/0193/doc_00069363 [00:15:05]file doc_00069364 [00:15:05]remove file /storage/0193/doc_00069364 [00:15:05]file doc_00069365 [00:15:05]remove file /storage/0193/doc_00069365 [00:15:05]file doc_00069366 [00:15:05]remove file /storage/0193/doc_00069366 [00:15:05]file doc_00069367 [00:15:05]remove file /storage/0193/doc_00069367 [00:15:05]file doc_00069368 [00:15:05]remove file /storage/0193/doc_00069368 [00:15:05]file doc_00069369 [00:15:05]remove file /storage/0193/doc_00069369 [00:15:05]file doc_00069370 [00:15:05]remove file /storage/0193/doc_00069370 [00:15:05]file doc_00069371 [00:15:05]remove file /storage/0193/doc_00069371 [00:15:05]file doc_00069372 [00:15:05]remove file /storage/0193/doc_00069372 [00:15:05]file doc_00069373 [00:15:05]remove file /storage/0193/doc_00069373 [00:15:05]file doc_00069374 [00:15:05]remove file /storage/0193/doc_00069374 [00:15:05]file doc_00069375 [00:15:05]remove file /storage/0193/doc_00069375 [00:15:05]file doc_00069376 [00:15:05]remove file /storage/0193/doc_00069376 [00:15:05]file doc_00069377 [00:15:05]remove file /storage/0193/doc_00069377 [00:15:05]file doc_00069378 [00:15:05]remove file /storage/0193/doc_00069378 [00:15:05]file doc_00069379 [00:15:05]remove file /storage/0193/doc_00069379 [00:15:05]file doc_00069380 [00:15:05]remove file /storage/0193/doc_00069380 [00:15:05]file doc_00069381 [00:15:05]remove file /storage/0193/doc_00069381 [00:15:05]file doc_00069382 [00:15:05]remove file /storage/0193/doc_00069382 [00:15:05]file doc_00069383 [00:15:05]remove file /storage/0193/doc_00069383 [00:15:05]file doc_00069384 [00:15:05]remove file /storage/0193/doc_00069384 [00:15:05]file doc_00069385 [00:15:05]remove file /storage/0193/doc_00069385 [00:15:05]file doc_00069386 [00:15:05]remove file /storage/0193/doc_00069386 [00:15:05]file doc_00069387 [00:15:05]remove file /storage/0193/doc_00069387 [00:15:05]file doc_00069388 [00:15:05]remove file /storage/0193/doc_00069388 [00:15:05]file doc_00069389 [00:15:05]remove file /storage/0193/doc_00069389 [00:15:05]file doc_00069390 [00:15:05]remove file /storage/0193/doc_00069390 [00:15:05]file doc_00069391 [00:15:05]remove file /storage/0193/doc_00069391 [00:15:05]file doc_00069392 [00:15:05]remove file /storage/0193/doc_00069392 [00:15:05]file doc_00069393 [00:15:05]remove file /storage/0193/doc_00069393 [00:15:05]file doc_00069394 [00:15:05]remove file /storage/0193/doc_00069394 [00:15:05]file doc_00069395 [00:15:05]remove file /storage/0193/doc_00069395 [00:15:05]file doc_00069396 [00:15:05]remove file /storage/0193/doc_00069396 [00:15:05]file doc_00069397 [00:15:05]remove file /storage/0193/doc_00069397 [00:15:05]file doc_00069398 [00:15:05]remove file /storage/0193/doc_00069398 [00:15:05]file doc_00069399 [00:15:05]remove file /storage/0193/doc_00069399 [00:15:05]file doc_00069400 [00:15:05]remove file /storage/0193/doc_00069400 [00:15:05]file doc_00069401 [00:15:05]remove file /storage/0193/doc_00069401 [00:15:05]file doc_00069402 [00:15:05]remove file /storage/0193/doc_00069402 [00:15:05]file doc_00069403 [00:15:05]remove file /storage/0193/doc_00069403 [00:15:05]file doc_00069404 [00:15:05]remove file /storage/0193/doc_00069404 [00:15:05]file doc_00069405 [00:15:05]remove file /storage/0193/doc_00069405 [00:15:05]file doc_00069406 [00:15:05]remove file /storage/0193/doc_00069406 [00:15:05]file doc_00069407 [00:15:05]remove file /storage/0193/doc_00069407 [00:15:05]file doc_00069408 [00:15:05]remove file /storage/0193/doc_00069408 [00:15:05]file doc_00069409 [00:15:05]remove file /storage/0193/doc_00069409 [00:15:05]file doc_00069410 [00:15:05]remove file /storage/0193/doc_00069410 [00:15:05]file doc_00069411 [00:15:05]remove file /storage/0193/doc_00069411 [00:15:05]file doc_00069412 [00:15:05]remove file /storage/0193/doc_00069412 [00:15:05]file doc_00069413 [00:15:05]remove file /storage/0193/doc_00069413 [00:15:05]file doc_00069414 [00:15:05]remove file /storage/0193/doc_00069414 [00:15:05]file doc_00069415 [00:15:05]remove file /storage/0193/doc_00069415 [00:15:05]file doc_00069416 [00:15:05]remove file /storage/0193/doc_00069416 [00:15:05]file doc_00069417 [00:15:05]remove file /storage/0193/doc_00069417 [00:15:05]file doc_00069418 [00:15:05]remove file /storage/0193/doc_00069418 [00:15:05]file doc_00069419 [00:15:05]remove file /storage/0193/doc_00069419 [00:15:05]file doc_00069420 [00:15:05]remove file /storage/0193/doc_00069420 [00:15:05]file doc_00069421 [00:15:05]remove file /storage/0193/doc_00069421 [00:15:05]file doc_00069422 [00:15:05]remove file /storage/0193/doc_00069422 [00:15:05]file doc_00069423 [00:15:05]remove file /storage/0193/doc_00069423 [00:15:05]file doc_00069424 [00:15:05]remove file /storage/0193/doc_00069424 [00:15:05]file doc_00069425 [00:15:05]remove file /storage/0193/doc_00069425 [00:15:05]file doc_00069426 [00:15:05]remove file /storage/0193/doc_00069426 [00:15:05]file doc_00069427 [00:15:05]remove file /storage/0193/doc_00069427 [00:15:05]file doc_00069428 [00:15:05]remove file /storage/0193/doc_00069428 [00:15:05]file doc_00069429 [00:15:05]remove file /storage/0193/doc_00069429 [00:15:05]file doc_00069430 [00:15:05]remove file /storage/0193/doc_00069430 [00:15:05]file doc_00069431 [00:15:05]remove file /storage/0193/doc_00069431 [00:15:05]file doc_00069432 [00:15:05]remove file /storage/0193/doc_00069432 [00:15:05]file doc_00069433 [00:15:05]remove file /storage/0193/doc_00069433 [00:15:05]file doc_00069434 [00:15:05]remove file /storage/0193/doc_00069434 [00:15:05]file doc_00069435 [00:15:05]remove file /storage/0193/doc_00069435 [00:15:05]file doc_00069436 [00:15:05]remove file /storage/0193/doc_00069436 [00:15:05]file doc_00069437 [00:15:05]remove file /storage/0193/doc_00069437 [00:15:05]file doc_00069438 [00:15:05]remove file /storage/0193/doc_00069438 [00:15:05]file doc_00069439 [00:15:05]remove file /storage/0193/doc_00069439 [00:15:05]file doc_00069440 [00:15:05]remove file /storage/0193/doc_00069440 [00:15:05]file doc_00069441 [00:15:05]remove file /storage/0193/doc_00069441 [00:15:05]file doc_00069442 [00:15:05]remove file /storage/0193/doc_00069442 [00:15:05]file doc_00069443 [00:15:05]remove file /storage/0193/doc_00069443 [00:15:05]file doc_00069444 [00:15:05]remove file /storage/0193/doc_00069444 [00:15:05]file doc_00069445 [00:15:05]remove file /storage/0193/doc_00069445 [00:15:05]file doc_00069446 [00:15:05]remove file /storage/0193/doc_00069446 [00:15:05]file doc_00069447 [00:15:05]remove file /storage/0193/doc_00069447 [00:15:05]file doc_00069448 [00:15:05]remove file /storage/0193/doc_00069448 [00:15:05]file doc_00069449 [00:15:05]remove file /storage/0193/doc_00069449 [00:15:05]file doc_00069450 [00:15:05]remove file /storage/0193/doc_00069450 [00:15:05]file doc_00069451 [00:15:05]remove file /storage/0193/doc_00069451 [00:15:05]file doc_00069452 [00:15:05]remove file /storage/0193/doc_00069452 [00:15:05]file doc_00069453 [00:15:05]remove file /storage/0193/doc_00069453 [00:15:05]file doc_00069454 [00:15:05]remove file /storage/0193/doc_00069454 [00:15:05]file doc_00069455 [00:15:05]remove file /storage/0193/doc_00069455 [00:15:05]file doc_00069456 [00:15:05]remove file /storage/0193/doc_00069456 [00:15:05]file doc_00069457 [00:15:05]remove file /storage/0193/doc_00069457 [00:15:05]file doc_00069458 [00:15:05]remove file /storage/0193/doc_00069458 [00:15:05]file doc_00069459 [00:15:05]remove file /storage/0193/doc_00069459 [00:15:05]file doc_00069460 [00:15:05]remove file /storage/0193/doc_00069460 [00:15:05]file doc_00069461 [00:15:05]remove file /storage/0193/doc_00069461 [00:15:05]file doc_00069462 [00:15:05]remove file /storage/0193/doc_00069462 [00:15:05]file doc_00069463 [00:15:05]remove file /storage/0193/doc_00069463 [00:15:05]file doc_00069464 [00:15:05]remove file /storage/0193/doc_00069464 [00:15:05]file doc_00069465 [00:15:05]remove file /storage/0193/doc_00069465 [00:15:05]file doc_00069466 [00:15:05]remove file /storage/0193/doc_00069466 [00:15:05]file doc_00069467 [00:15:05]remove file /storage/0193/doc_00069467 [00:15:05]file doc_00069468 [00:15:05]remove file /storage/0193/doc_00069468 [00:15:05]file doc_00069469 [00:15:05]remove file /storage/0193/doc_00069469 [00:15:05]file doc_00069470 [00:15:05]remove file /storage/0193/doc_00069470 [00:15:05]file doc_00069471 [00:15:05]remove file /storage/0193/doc_00069471 [00:15:05]file doc_00069472 [00:15:05]remove file /storage/0193/doc_00069472 [00:15:05]file doc_00069473 [00:15:05]remove file /storage/0193/doc_00069473 [00:15:05]file doc_00069474 [00:15:05]remove file /storage/0193/doc_00069474 [00:15:05]file doc_00069475 [00:15:05]remove file /storage/0193/doc_00069475 [00:15:05]file doc_00069476 [00:15:05]remove file /storage/0193/doc_00069476 [00:15:05]file doc_00069477 [00:15:05]remove file /storage/0193/doc_00069477 [00:15:05]file doc_00069478 [00:15:05]remove file /storage/0193/doc_00069478 [00:15:05]file doc_00069479 [00:15:05]remove file /storage/0193/doc_00069479 [00:15:05]file doc_00069480 [00:15:05]remove file /storage/0193/doc_00069480 [00:15:05]file doc_00069481 [00:15:05]remove file /storage/0193/doc_00069481 [00:15:05]file doc_00069482 [00:15:05]remove file /storage/0193/doc_00069482 [00:15:05]file doc_00069483 [00:15:05]remove file /storage/0193/doc_00069483 [00:15:05]file doc_00069484 [00:15:05]remove file /storage/0193/doc_00069484 [00:15:05]file doc_00069485 [00:15:05]remove file /storage/0193/doc_00069485 [00:15:05]file doc_00069486 [00:15:05]remove file /storage/0193/doc_00069486 [00:15:05]file doc_00069487 [00:15:05]remove file /storage/0193/doc_00069487 [00:15:05]file doc_00069488 [00:15:05]remove file /storage/0193/doc_00069488 [00:15:05]file doc_00069489 [00:15:05]remove file /storage/0193/doc_00069489 [00:15:05]file doc_00069490 [00:15:05]remove file /storage/0193/doc_00069490 [00:15:05]file doc_00069491 [00:15:05]remove file /storage/0193/doc_00069491 [00:15:05]file doc_00069492 [00:15:05]remove file /storage/0193/doc_00069492 [00:15:05]file doc_00069493 [00:15:05]remove file /storage/0193/doc_00069493 [00:15:05]file doc_00069494 [00:15:05]remove file /storage/0193/doc_00069494 [00:15:05]file doc_00069495 [00:15:05]remove file /storage/0193/doc_00069495 [00:15:05]file doc_00069496 [00:15:05]remove file /storage/0193/doc_00069496 [00:15:05]file doc_00069497 [00:15:05]remove file /storage/0193/doc_00069497 [00:15:05]file doc_00069498 [00:15:05]remove file /storage/0193/doc_00069498 [00:15:05]file doc_00069499 [00:15:05]remove file /storage/0193/doc_00069499 [00:15:05]file doc_00069500 [00:15:05]remove file /storage/0193/doc_00069500 [00:15:05]file doc_00069501 [00:15:05]remove file /storage/0193/doc_00069501 [00:15:05]file doc_00069502 [00:15:05]remove file /storage/0193/doc_00069502 [00:15:05]file doc_00069503 [00:15:05]remove file /storage/0193/doc_00069503 [00:15:05]file doc_00069504 [00:15:05]remove file /storage/0193/doc_00069504 [00:15:05]file doc_00069505 [00:15:05]remove file /storage/0193/doc_00069505 [00:15:05]file doc_00069506 [00:15:05]remove file /storage/0193/doc_00069506 [00:15:05]file doc_00069507 [00:15:05]remove file /storage/0193/doc_00069507 [00:15:05]file doc_00069508 [00:15:05]remove file /storage/0193/doc_00069508 [00:15:05]file doc_00069509 [00:15:05]remove file /storage/0193/doc_00069509 [00:15:05]file doc_00069510 [00:15:05]remove file /storage/0193/doc_00069510 [00:15:05]file doc_00069511 [00:15:05]remove file /storage/0193/doc_00069511 [00:15:05]file doc_00069512 [00:15:05]remove file /storage/0193/doc_00069512 [00:15:05]file doc_00069513 [00:15:05]remove file /storage/0193/doc_00069513 [00:15:05]file doc_00069514 [00:15:05]remove file /storage/0193/doc_00069514 [00:15:05]file doc_00069515 [00:15:05]remove file /storage/0193/doc_00069515 [00:15:05]file doc_00069516 [00:15:05]remove file /storage/0193/doc_00069516 [00:15:05]file doc_00069517 [00:15:05]remove file /storage/0193/doc_00069517 [00:15:05]file doc_00069518 [00:15:05]remove file /storage/0193/doc_00069518 [00:15:05]file doc_00069519 [00:15:05]remove file /storage/0193/doc_00069519 [00:15:05]file doc_00069520 [00:15:05]remove file /storage/0193/doc_00069520 [00:15:05]file doc_00069521 [00:15:06]remove file /storage/0193/doc_00069521 [00:15:06]file doc_00069522 [00:15:06]remove file /storage/0193/doc_00069522 [00:15:06]file doc_00069523 [00:15:06]remove file /storage/0193/doc_00069523 [00:15:06]file doc_00069524 [00:15:06]remove file /storage/0193/doc_00069524 [00:15:06]file doc_00069525 [00:15:06]remove file /storage/0193/doc_00069525 [00:15:06]file doc_00069526 [00:15:06]remove file /storage/0193/doc_00069526 [00:15:06]file doc_00069527 [00:15:06]remove file /storage/0193/doc_00069527 [00:15:06]file doc_00069528 [00:15:06]remove file /storage/0193/doc_00069528 [00:15:06]file doc_00069529 [00:15:06]remove file /storage/0193/doc_00069529 [00:15:06]file doc_00069530 [00:15:06]remove file /storage/0193/doc_00069530 [00:15:06]file doc_00069531 [00:15:06]remove file /storage/0193/doc_00069531 [00:15:06]file doc_00069532 [00:15:06]remove file /storage/0193/doc_00069532 [00:15:06]file doc_00069533 [00:15:06]remove file /storage/0193/doc_00069533 [00:15:06]file doc_00069534 [00:15:06]remove file /storage/0193/doc_00069534 [00:15:06]file doc_00069535 [00:15:06]remove file /storage/0193/doc_00069535 [00:15:06]file doc_00069536 [00:15:06]remove file /storage/0193/doc_00069536 [00:15:06]file doc_00069537 [00:15:06]remove file /storage/0193/doc_00069537 [00:15:06]file doc_00069538 [00:15:06]remove file /storage/0193/doc_00069538 [00:15:06]file doc_00069539 [00:15:06]remove file /storage/0193/doc_00069539 [00:15:06]file doc_00069540 [00:15:06]remove file /storage/0193/doc_00069540 [00:15:06]file doc_00069541 [00:15:06]remove file /storage/0193/doc_00069541 [00:15:06]file doc_00069542 [00:15:06]remove file /storage/0193/doc_00069542 [00:15:06]file doc_00069543 [00:15:06]remove file /storage/0193/doc_00069543 [00:15:06]file doc_00069544 [00:15:06]remove file /storage/0193/doc_00069544 [00:15:06]file doc_00069545 [00:15:06]remove file /storage/0193/doc_00069545 [00:15:06]file doc_00069546 [00:15:06]remove file /storage/0193/doc_00069546 [00:15:06]file doc_00069547 [00:15:06]remove file /storage/0193/doc_00069547 [00:15:06]file doc_00069548 [00:15:06]remove file /storage/0193/doc_00069548 [00:15:06]file doc_00069549 [00:15:06]remove file /storage/0193/doc_00069549 [00:15:06]file doc_00069550 [00:15:06]remove file /storage/0193/doc_00069550 [00:15:06]file doc_00069551 [00:15:06]remove file /storage/0193/doc_00069551 [00:15:06]file doc_00069552 [00:15:06]remove file /storage/0193/doc_00069552 [00:15:06]file doc_00069553 [00:15:06]remove file /storage/0193/doc_00069553 [00:15:06]file doc_00069554 [00:15:06]remove file /storage/0193/doc_00069554 [00:15:06]file doc_00069555 [00:15:06]remove file /storage/0193/doc_00069555 [00:15:06]file doc_00069556 [00:15:06]remove file /storage/0193/doc_00069556 [00:15:06]file doc_00069557 [00:15:06]remove file /storage/0193/doc_00069557 [00:15:06]file doc_00069558 [00:15:06]remove file /storage/0193/doc_00069558 [00:15:06]file doc_00069559 [00:15:06]remove file /storage/0193/doc_00069559 [00:15:06]file doc_00069560 [00:15:06]remove file /storage/0193/doc_00069560 [00:15:06]file doc_00069561 [00:15:06]remove file /storage/0193/doc_00069561 [00:15:06]file doc_00069562 [00:15:06]remove file /storage/0193/doc_00069562 [00:15:06]file doc_00069563 [00:15:06]remove file /storage/0193/doc_00069563 [00:15:06]file doc_00069564 [00:15:06]remove file /storage/0193/doc_00069564 [00:15:06]file doc_00069565 [00:15:06]remove file /storage/0193/doc_00069565 [00:15:06]file doc_00069566 [00:15:06]remove file /storage/0193/doc_00069566 [00:15:06]file doc_00069567 [00:15:06]remove file /storage/0193/doc_00069567 [00:15:06]file doc_00069568 [00:15:06]remove file /storage/0193/doc_00069568 [00:15:06]file doc_00069569 [00:15:06]remove file /storage/0193/doc_00069569 [00:15:06]file doc_00069570 [00:15:06]remove file /storage/0193/doc_00069570 [00:15:06]file doc_00069571 [00:15:06]remove file /storage/0193/doc_00069571 [00:15:06]file doc_00069572 [00:15:06]remove file /storage/0193/doc_00069572 [00:15:06]file doc_00069573 [00:15:06]remove file /storage/0193/doc_00069573 [00:15:06]file doc_00069574 [00:15:06]remove file /storage/0193/doc_00069574 [00:15:06]file doc_00069575 [00:15:06]remove file /storage/0193/doc_00069575 [00:15:06]file doc_00069576 [00:15:06]remove file /storage/0193/doc_00069576 [00:15:06]file doc_00069577 [00:15:06]remove file /storage/0193/doc_00069577 [00:15:06]file doc_00069578 [00:15:06]remove file /storage/0193/doc_00069578 [00:15:06]file doc_00069579 [00:15:06]remove file /storage/0193/doc_00069579 [00:15:06]file doc_00069580 [00:15:06]remove file /storage/0193/doc_00069580 [00:15:06]file doc_00069581 [00:15:06]remove file /storage/0193/doc_00069581 [00:15:06]file doc_00069582 [00:15:06]remove file /storage/0193/doc_00069582 [00:15:06]file doc_00069583 [00:15:06]remove file /storage/0193/doc_00069583 [00:15:06]file doc_00069584 [00:15:06]remove file /storage/0193/doc_00069584 [00:15:06]file doc_00069585 [00:15:06]remove file /storage/0193/doc_00069585 [00:15:06]file doc_00069586 [00:15:06]remove file /storage/0193/doc_00069586 [00:15:06]file doc_00069587 [00:15:06]remove file /storage/0193/doc_00069587 [00:15:06]file doc_00069588 [00:15:06]remove file /storage/0193/doc_00069588 [00:15:06]file doc_00069589 [00:15:06]remove file /storage/0193/doc_00069589 [00:15:06]file doc_00069590 [00:15:06]remove file /storage/0193/doc_00069590 [00:15:06]file doc_00069591 [00:15:06]remove file /storage/0193/doc_00069591 [00:15:06]file doc_00069592 [00:15:06]remove file /storage/0193/doc_00069592 [00:15:06]file doc_00069593 [00:15:06]remove file /storage/0193/doc_00069593 [00:15:06]file doc_00069594 [00:15:06]remove file /storage/0193/doc_00069594 [00:15:06]file doc_00069595 [00:15:06]remove file /storage/0193/doc_00069595 [00:15:06]file doc_00069596 [00:15:06]remove file /storage/0193/doc_00069596 [00:15:06]file doc_00069597 [00:15:06]remove file /storage/0193/doc_00069597 [00:15:06]file doc_00069598 [00:15:06]remove file /storage/0193/doc_00069598 [00:15:06]file doc_00069599 [00:15:06]remove file /storage/0193/doc_00069599 [00:15:06]file doc_00069600 [00:15:06]remove file /storage/0193/doc_00069600 [00:15:06]file doc_00069601 [00:15:06]remove file /storage/0193/doc_00069601 [00:15:06]file doc_00069602 [00:15:06]remove file /storage/0193/doc_00069602 [00:15:06]file doc_00069603 [00:15:06]remove file /storage/0193/doc_00069603 [00:15:06]file doc_00069604 [00:15:06]remove file /storage/0193/doc_00069604 [00:15:06]file doc_00069605 [00:15:06]remove file /storage/0193/doc_00069605 [00:15:06]file doc_00069606 [00:15:06]remove file /storage/0193/doc_00069606 [00:15:06]file doc_00069607 [00:15:06]remove file /storage/0193/doc_00069607 [00:15:06]file doc_00069608 [00:15:06]remove file /storage/0193/doc_00069608 [00:15:06]file doc_00069609 [00:15:06]remove file /storage/0193/doc_00069609 [00:15:06]remove dir /storage/0193 [00:15:06]ProcessDocumentItem done err = 0, tmpTLVsize=260 [00:15:06]tlvbuf is 00D13B30 [00:15:06]SAM_PROTO_ClearQueue [00:15:06]wFMCommunicate request_size=4 [00:15:06]MH_SAM_APDU [00:15:06]CAPDU: 80 09 00 00 [00:15:06]Write to MH i2c: E2 08 00 23 02 80 09 00 00 00 00 00 00 97 [00:15:06]Write i2c OK [00:15:06]MH_I2C_Read... [00:15:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:15:06]Read from MH i2c: E2 [00:15:06]MH_I2C_Read... [00:15:06]Read from MH i2c: E2 03 00 [00:15:06]MH_I2C_Read... [00:15:06]Read from MH i2c: E2 03 00 23 02 00 90 00 99 [00:15:06]RAPDU: 90 00 [00:15:06]wFMCommunicate OK [00:15:06]SAM_PROTO_ClearQueue done [00:15:06]KKMCreateOFDPacket [00:15:06]OFDProtocolAddRootSTLVToBuf [00:15:06]FM_MakeSignedData [00:15:06]FM_MakeSignedData [00:15:06]SAM_PROTO_SignData [00:15:06]wFMCommunicate request_size=4 [00:15:06]MH_SAM_APDU [00:15:06]CAPDU: 80 0D 01 02 [00:15:06]Write to MH i2c: E2 08 00 24 02 80 0D 01 02 00 00 00 00 9F [00:15:06]Write i2c OK [00:15:06]MH_I2C_Read... [00:15:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:15:06]Read from MH i2c: E2 [00:15:06]MH_I2C_Read... [00:15:06]Read from MH i2c: E2 03 00 [00:15:06]MH_I2C_Read... [00:15:06]Read from MH i2c: E2 03 00 24 02 00 90 00 9A [00:15:06]RAPDU: 90 00 [00:15:06]wFMCommunicate OK [00:15:06]wFMCommunicate request_size=255 [00:15:06]MH_SAM_APDU [00:15:06]CAPDU: 80 0D 02 02 FA 02 00 04 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 90 D1 85 D0 BC D0 B5 D0 B4 D0 BE D0 B2 D0 B0 20 D0 A3 2E 20 F1 03 59 00 37 32 30 30 30 30 2C 20 D1 81 2E 20 D0 91 D0 B0 D0 B7 D0 B0 D1 80 20 D0 9A D0 BE D1 80 D0 B3 D0 BE D0 BD 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 31 2E 30 35 35 35 32 32 2C 20 37 32 2E 37 35 37 38 36 32 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 07 9D 15 67 0E 04 04 00 C2 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EA 0F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 [00:15:06]Write to MH i2c: E2 02 01 25 02 80 0D 02 02 FA 00 02 00 04 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 90 D1 85 D0 BC D0 B5 D0 B4 D0 BE D0 B2 D0 B0 20 D0 A3 2E 20 F1 03 59 00 37 32 30 30 30 30 2C 20 D1 81 2E 20 D0 91 D0 B0 D0 B7 D0 B0 D1 80 20 D0 9A D0 BE D1 80 D0 B3 D0 BE D0 BD 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 31 2E 30 35 35 35 32 32 2C 20 37 32 2E 37 35 37 38 36 32 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 07 9D 15 67 0E 04 04 00 C2 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EA 0F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 00 00 2B [00:15:06]Write i2c OK [00:15:06]MH_I2C_Read... [00:15:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:15:06]Read from MH i2c: E2 [00:15:06]MH_I2C_Read... [00:15:06]Read from MH i2c: E2 03 00 [00:15:06]MH_I2C_Read... [00:15:06]Read from MH i2c: E2 03 00 25 02 00 90 00 9B [00:15:06]RAPDU: 90 00 [00:15:06]wFMCommunicate OK [00:15:06]wFMCommunicate request_size=19 [00:15:06]MH_SAM_APDU [00:15:06]CAPDU: 80 0D 02 02 0E 33 33 34 36 35 04 06 00 A7 30 EF 03 C2 61 [00:15:06]Write to MH i2c: E2 16 00 26 02 80 0D 02 02 0E 00 33 33 34 36 35 04 06 00 A7 30 EF 03 C2 61 00 00 B9 [00:15:06]Write i2c OK [00:15:06]MH_I2C_Read... [00:15:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:15:06]Read from MH i2c: E2 [00:15:06]MH_I2C_Read... [00:15:06]Read from MH i2c: E2 03 00 [00:15:06]MH_I2C_Read... [00:15:06]Read from MH i2c: E2 03 00 26 02 00 90 00 9C [00:15:06]RAPDU: 90 00 [00:15:06]wFMCommunicate OK [00:15:06]wFMCommunicate request_size=4 [00:15:06]MH_SAM_APDU [00:15:06]CAPDU: 80 0D 03 02 [00:15:06]Write to MH i2c: E2 08 00 27 02 80 0D 03 02 00 00 00 00 A4 [00:15:06]Write i2c OK [00:15:06]MH_I2C_Read... [00:15:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:15:06]Read from MH i2c: E2 [00:15:06]MH_I2C_Read... [00:15:06]Read from MH i2c: E2 0B 00 [00:15:06]MH_I2C_Read... [00:15:06]Read from MH i2c: E2 0B 00 27 02 00 E4 47 DF 5F A5 B7 DD 11 90 00 58 [00:15:06]RAPDU: E4 47 DF 5F A5 B7 DD 11 90 00 [00:15:06]wFMCommunicate OK [00:15:06]SAM_PROTO_SignData done [00:15:06]FM_MakeSignedData done [00:15:06]CreateOFDProtocolMessage [00:15:06]wFMCommunicate request_size=4 [00:15:06]MH_SAM_APDU [00:15:06]CAPDU: 80 11 00 00 [00:15:06]Write to MH i2c: E2 08 00 28 02 80 11 00 00 00 00 00 00 A4 [00:15:06]Write i2c OK [00:15:06]MH_I2C_Read... [00:15:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:15:06]Read from MH i2c: E2 [00:15:06]MH_I2C_Read... [00:15:06]Read from MH i2c: E2 17 00 [00:15:06]MH_I2C_Read... [00:15:07]Read from MH i2c: E2 17 00 28 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F6 [00:15:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:15:07]wFMCommunicate OK [00:15:07]CreateOFDProtocolMessage done [00:15:07]OFDSenderStorePacket 69610 [00:15:07]StoreOFDPacket docnum=69610 [00:15:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 18 01 00 00 BE FD 10 01 AB 89 5A 02 01 00 02 00 04 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 90 D1 85 D0 BC D0 B5 D0 B4 D0 BE D0 B2 D0 B0 20 D0 A3 2E 20 F1 03 59 00 37 32 30 30 30 30 2C 20 D1 81 2E 20 D0 91 D0 B0 D0 B7 D0 B0 D1 80 20 D0 9A D0 BE D1 80 D0 B3 D0 BE D0 BD 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 31 2E 30 35 35 35 32 32 2C 20 37 32 2E 37 35 37 38 36 32 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 07 9D 15 67 0E 04 04 00 C2 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EA 0F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 35 04 06 00 A7 30 EF 03 C2 61 E4 47 DF 5F A5 B7 DD 11 [00:15:07]CheckFolder [00:15:07]dirname=/storage/ofd_packets [00:15:07]CheckFolder done [00:15:07]ProducePacketName [00:15:07]name=ofd_packets/00069610 [00:15:07]NVStorageSaveData ofd_packets/00069610 [00:15:07]File name is /storage/ofd_packets/00069610 [00:15:07]Write 310 bytes [00:15:07]NVStorageSaveData done [00:15:07]OFDSenderStorePacket done [00:15:07]KKMCreateOFDPacket done [00:15:07]NVStorageSaveData kkm_last_timestamp [00:15:07]File name is /storage/kkm_last_timestamp [00:15:07]Write 4 bytes [00:15:07]NVStorageSaveData done [00:15:07]ExternCall_PrintAddStr [00:15:07]wPrintStart [00:15:07]Write to MH i2c: 01 00 00 29 02 2B [00:15:07]Write i2c OK [00:15:07]MH_I2C_Read... [00:15:07]Read from MH i2c: 01 [00:15:07]MH_I2C_Read... [00:15:07]Read from MH i2c: 01 07 00 [00:15:07]MH_I2C_Read... [00:15:07]Read from MH i2c: 01 07 00 29 02 00 00 00 00 00 FF 0F 40 [00:15:07]RasterBufferAndPrint [00:15:07]line Отчет об открытии смены [00:15:07]line ФФД: 1.0 [00:15:07]line ИНН: 02508201610067 [00:15:07]line Кассир: Ахмедова У. [00:15:07]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [00:15:07]line Место: АЗС № 85 "Партнер Нефть" [00:15:07]line 21.10.2024 00:15 [00:15:07]line Смена: 194 [00:15:07]line РНМ: 0000000000156251 [00:15:07]line ЗНМ: 0300000167 [00:15:07]line ФД: 69610 [00:15:07]line ФМ: 0000000000963346 [00:15:07]line ФПД: 183828610269793 [00:15:07]written 0, free lines is 4095 [00:15:07]OFD Sender: Processing packet 69610 [packets to send 18, broken 17] [00:15:07]ProducePacketName [00:15:07]name=ofd_packets/00069610 [00:15:07]OFD Sender: To server: pG, [00:15:07]CommunicateWithHost lk.salyk.kg:30040 [00:15:07]ConnectInit lk.salyk.kg [00:15:07]Connected sock=10 [00:15:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 18 01 00 00 BE FD 10 01 AB 89 5A 02 01 00 02 00 04 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 90 D1 85 D0 BC D0 B5 D0 B4 D0 BE D0 B2 D0 B0 20 D0 A3 2E 20 F1 03 59 00 37 32 30 30 30 30 2C 20 D1 81 2E 20 D0 91 D0 B0 D0 B7 D0 B0 D1 80 20 D0 9A D0 BE D1 80 D0 B3 D0 BE D0 BD 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 31 2E 30 35 35 35 32 32 2C 20 37 32 2E 37 35 37 38 36 32 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 07 9D 15 67 0E 04 04 00 C2 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EA 0F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 35 04 06 00 A7 30 EF 03 C2 61 E4 47 DF 5F A5 B7 DD 11 [00:15:07]Write to MH i2c: 01 00 00 3B 02 3D [00:15:07]Write i2c OK [00:15:07]MH_I2C_Read... [00:15:07]Read from MH i2c: 01 [00:15:07]MH_I2C_Read... [00:15:07]Read from MH i2c: 01 07 00 [00:15:07]MH_I2C_Read... [00:15:07]Read from MH i2c: 01 07 00 3B 02 00 00 00 00 00 FB 0E 4D [00:15:07]RasterBufferAndPrint [00:15:07]line [00:15:07]line [00:15:07]line [00:15:07]line [00:15:07]line [00:15:07]written 0, free lines is 3855 [00:15:07]MH_Cut [00:15:07]Write to MH i2c: D1 01 00 42 02 01 16 [00:15:07]Write i2c OK [00:15:07]MH_I2C_Read... [00:15:07]Read from MH i2c: D1 [00:15:07]MH_I2C_Read... [00:15:07]Read from MH i2c: D1 01 00 [00:15:07]MH_I2C_Read... [00:15:07]Read from MH i2c: D1 01 00 42 02 00 15 [00:15:07]Write to MH i2c: 01 00 00 43 02 45 [00:15:07]Write i2c OK [00:15:07]MH_I2C_Read... [00:15:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 40 33 47 00 89 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EA 0F 01 00 F4 03 04 00 AF 46 15 67 B6 04 01 00 00 EA DE C9 B8 72 5D 73 27 [00:15:07]CommunicateWithHost err = 0 [00:15:07]CheckOFDResponse [00:15:07]1017 (14) - 77093643461234 [00:15:07]1041 (16) - 0000000000963346 [00:15:07]1040 (4) - 69610 [00:15:07]1012 (4) - 20.10.2024 18:06 [00:15:07]1206 (1) - 0 [00:15:07]OFD Sender: Remove packet 69610 [00:15:07]ProducePacketName [00:15:07]name=ofd_packets/00069610 [00:15:07]NVStorageDeleteData [00:15:07]*** Cut start [00:15:07]*** Partial cut [00:15:07]*** CUTSNS_PIN = 1 [00:15:07]*** CUTSNS_PIN = 0 [00:15:08]*** Brake cut motor [00:15:08]OFD Sender: No OFD packet to send [00:15:08]Read from MH i2c: 01 [00:15:08]MH_I2C_Read... [00:15:08]*** Stop cut motor [00:15:08]*** Cut end [00:15:08]Read from MH i2c: 01 07 00 [00:15:08]MH_I2C_Read... [00:15:08]Read from MH i2c: 01 07 00 43 02 00 00 00 00 00 FF 0F 5A [00:15:08]process_action open_shift done [00:15:08]requested_data is exist [00:15:08]produce_requested_data [00:15:08]requested_item fd.num is exist - process it [00:15:08]SAM_PROTO_GetFieldsCounters [00:15:08]wFMCommunicate request_size=4 [00:15:08]MH_SAM_APDU [00:15:08]CAPDU: 80 13 00 00 [00:15:08]Write to MH i2c: E2 08 00 44 02 80 13 00 00 00 00 00 00 C2 [00:15:08]Write i2c OK [00:15:08]MH_I2C_Read... [00:15:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:15:08]Read from MH i2c: E2 [00:15:08]MH_I2C_Read... [00:15:08]Read from MH i2c: E2 62 00 [00:15:08]MH_I2C_Read... [00:15:08]Read from MH i2c: E2 62 00 44 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EA 0F 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [00:15:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EA 0F 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:15:08]wFMCommunicate OK [00:15:08]SAM_PROTO_GetFieldsCounters done [00:15:08]requested_item shift.num is exist - process it [00:15:08]requested_item shift.opened is exist - process it [00:15:08]req_shift_opened [00:15:08]FM_GetShiftState [00:15:08]SAM_PROTO_GetShiftState [00:15:08]wFMCommunicate request_size=4 [00:15:08]MH_SAM_APDU [00:15:08]CAPDU: 80 13 01 00 [00:15:08]Write to MH i2c: E2 08 00 45 02 80 13 01 00 00 00 00 00 C4 [00:15:08]Write i2c OK [00:15:08]MH_I2C_Read... [00:15:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:15:08]Read from MH i2c: E2 [00:15:08]MH_I2C_Read... [00:15:08]Read from MH i2c: E2 0E 00 [00:15:08]MH_I2C_Read... [00:15:08]Read from MH i2c: E2 0E 00 45 02 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 F0 [00:15:08]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [00:15:08]wFMCommunicate OK [00:15:08]SAM_PROTO_GetShiftState done [00:15:08]FM_GetShiftState done [00:15:08]req_shift_opened done [00:15:08]requested_item shift.open_date is exist - process it [00:15:08]req_shift_open_date [00:15:08]req_shift_open_date done [00:15:08]produce_requested_data done [00:15:08]produce_requested_data return {"fd.num":69610,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [00:15:08]process_action_free open_shift [00:15:08]json_value_free [00:15:08]json_value_free done [00:15:08]process_json_proto returns [00:15:08]Send response to host [00:15:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":69610,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [00:15:08]free response buf [00:15:08]execute_script done [00:15:08]execute_script returns [00:15:08]free content buf [00:15:08]Sock 9.Close socket [00:15:08]Sock 9.Thread stoped [00:15:08]accept exits with 8 [00:15:08]New connection [00:15:08]New thread 3067456868 created [00:15:08]Thread 3067313508 joined [00:15:08]Waiting for new connection... [00:15:08] Sock 8.Parse request [00:15:08]Sock 8.Check first char [00:15:08]Sock 8.First char is OK [00:15:08]request: POST /json_proto HTTP/1.0 [00:15:08]Method: POST [00:15:08]URL: /json_proto [00:15:08]Method is POST - this is cgi request [00:15:08]url: /json_proto [00:15:08]query_string will be loaded in cgi processing [00:15:08]execute_cgi json_proto POST (null) [00:15:08]execute_cgi path=json_proto method=POST [00:15:08]POST find Content-Length [00:15:08]Host: 172.17.50.3:8080 [00:15:08]Content-Length: 331 [00:15:08]Content-Type: application/json [00:15:08] [00:15:08]POST finish read [00:15:08]Found Content-Length = 331 [00:15:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:15:08]execute_script... [00:15:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:15:08]POST & json_proto [00:15:08]process_json_proto [00:15:08]json parsed OK: [00:15:08]protocol is kg_v1.0 [00:15:08]action value=get_value [00:15:08]process_action get_value [00:15:08]cmd_get_value [00:15:08]process_action get_value done [00:15:08]requested_data is exist [00:15:08]produce_requested_data [00:15:08]requested_item fm.sale.total is exist - process it [00:15:08]SAM_PROTO_GetFMData [00:15:08]wFMCommunicate request_size=4 [00:15:08]MH_SAM_APDU [00:15:08]CAPDU: 80 13 03 00 [00:15:08]Write to MH i2c: E2 08 00 46 02 80 13 03 00 00 00 00 00 C7 [00:15:08]Write i2c OK [00:15:08]MH_I2C_Read... [00:15:09]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:15:09]Read from MH i2c: E2 [00:15:09]MH_I2C_Read... [00:15:09]Read from MH i2c: E2 FD 00 [00:15:09]MH_I2C_Read... [00:15:09]Read from MH i2c: E2 FD 00 46 02 00 C5 04 85 04 C1 04 6E 04 04 00 66 0E 01 00 69 04 A3 00 6F 04 04 00 2B 0B 01 00 B1 04 05 00 B0 AA 30 E2 01 70 04 05 00 14 8D EC 57 01 72 04 04 00 9C 1D 44 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 16 72 37 33 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 7D 8F 44 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 3B 03 00 00 B1 04 04 00 9C 2A 91 11 70 04 04 00 9C 2A 91 11 72 04 00 00 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 5D 9E DD 01 EF 03 09 90 00 9D [00:15:09]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 66 0E 01 00 69 04 A3 00 6F 04 04 00 2B 0B 01 00 B1 04 05 00 B0 AA 30 E2 01 70 04 05 00 14 8D EC 57 01 72 04 04 00 9C 1D 44 8A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 16 72 37 33 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 7D 8F 44 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 3B 03 00 00 B1 04 04 00 9C 2A 91 11 70 04 04 00 9C 2A 91 11 72 04 00 00 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 5D 9E DD 01 EF 03 09 90 00 [00:15:09]wFMCommunicate OK [00:15:09]wFMCommunicate request_size=4 [00:15:09]MH_SAM_APDU [00:15:09]CAPDU: 80 17 00 00 [00:15:09]Write to MH i2c: E2 08 00 47 02 80 17 00 00 00 00 00 00 C9 [00:15:09]Write i2c OK [00:15:09]MH_I2C_Read... [00:15:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:09]Read from MH i2c: E2 [00:15:09]MH_I2C_Read... [00:15:09]Read from MH i2c: E2 FD 00 [00:15:09]MH_I2C_Read... [00:15:09]Read from MH i2c: E2 FD 00 47 02 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F7 CC 27 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 69 [00:15:09]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F7 CC 27 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:09]wFMCommunicate OK [00:15:09]wFMCommunicate request_size=4 [00:15:09]MH_SAM_APDU [00:15:09]CAPDU: 80 17 00 00 [00:15:09]Write to MH i2c: E2 08 00 48 02 80 17 00 00 00 00 00 00 CA [00:15:09]Write i2c OK [00:15:09]MH_I2C_Read... [00:15:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:09]Read from MH i2c: E2 [00:15:09]MH_I2C_Read... [00:15:09]Read from MH i2c: E2 FD 00 [00:15:09]MH_I2C_Read... [00:15:09]Read from MH i2c: E2 FD 00 48 02 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DC [00:15:09]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:10]wFMCommunicate OK [00:15:10]wFMCommunicate request_size=4 [00:15:10]MH_SAM_APDU [00:15:10]CAPDU: 80 17 00 00 [00:15:10]Write to MH i2c: E2 08 00 49 02 80 17 00 00 00 00 00 00 CB [00:15:10]Write i2c OK [00:15:10]MH_I2C_Read... [00:15:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:10]Read from MH i2c: E2 [00:15:10]MH_I2C_Read... [00:15:10]Read from MH i2c: E2 FD 00 [00:15:10]MH_I2C_Read... [00:15:10]Read from MH i2c: E2 FD 00 49 02 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 57 [00:15:10]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:10]wFMCommunicate OK [00:15:10]wFMCommunicate request_size=4 [00:15:10]MH_SAM_APDU [00:15:10]CAPDU: 80 17 00 00 [00:15:10]Write to MH i2c: E2 08 00 4A 02 80 17 00 00 00 00 00 00 CC [00:15:10]Write i2c OK [00:15:10]MH_I2C_Read... [00:15:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:15:10]Read from MH i2c: E2 [00:15:10]MH_I2C_Read... [00:15:10]Read from MH i2c: E2 E2 00 [00:15:10]MH_I2C_Read... [00:15:10]Read from MH i2c: E2 E2 00 4A 02 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 AA [00:15:10]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:15:10]wFMCommunicate OK [00:15:10]SAM_PROTO_GetFMData done [00:15:10]requested_item fm.sale_refund.total is exist - process it [00:15:10]requested_item fm.buy.total is exist - process it [00:15:10]requested_item shift.sale.total is exist - process it [00:15:10]SAM_PROTO_GetShiftData [00:15:10]wFMCommunicate request_size=4 [00:15:10]MH_SAM_APDU [00:15:10]CAPDU: 80 13 02 00 [00:15:10]Write to MH i2c: E2 08 00 4B 02 80 13 02 00 00 00 00 00 CB [00:15:10]Write i2c OK [00:15:10]MH_I2C_Read... [00:15:11]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:15:11]Read from MH i2c: E2 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 FD 00 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 FD 00 4B 02 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 3E [00:15:11]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:15:11]wFMCommunicate OK [00:15:11]wFMCommunicate request_size=4 [00:15:11]MH_SAM_APDU [00:15:11]CAPDU: 80 17 00 00 [00:15:11]Write to MH i2c: E2 08 00 4C 02 80 17 00 00 00 00 00 00 CE [00:15:11]Write i2c OK [00:15:11]MH_I2C_Read... [00:15:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:11]Read from MH i2c: E2 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 FD 00 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 FD 00 4C 02 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 D6 [00:15:11]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:15:12]wFMCommunicate OK [00:15:12]wFMCommunicate request_size=4 [00:15:12]MH_SAM_APDU [00:15:12]CAPDU: 80 17 00 00 [00:15:12]Write to MH i2c: E2 08 00 4D 02 80 17 00 00 00 00 00 00 CF [00:15:12]Write i2c OK [00:15:12]MH_I2C_Read... [00:15:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:12]Read from MH i2c: E2 [00:15:12]MH_I2C_Read... [00:15:12]Read from MH i2c: E2 FD 00 [00:15:12]MH_I2C_Read... [00:15:12]Read from MH i2c: E2 FD 00 4D 02 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 A1 [00:15:12]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:15:12]wFMCommunicate OK [00:15:12]wFMCommunicate request_size=4 [00:15:12]MH_SAM_APDU [00:15:12]CAPDU: 80 17 00 00 [00:15:12]Write to MH i2c: E2 08 00 4E 02 80 17 00 00 00 00 00 00 D0 [00:15:12]Write i2c OK [00:15:12]MH_I2C_Read... [00:15:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:12]Read from MH i2c: E2 [00:15:12]MH_I2C_Read... [00:15:12]Read from MH i2c: E2 FD 00 [00:15:12]MH_I2C_Read... [00:15:12]Read from MH i2c: E2 FD 00 4E 02 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 42 [00:15:12]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:15:13]wFMCommunicate OK [00:15:13]wFMCommunicate request_size=4 [00:15:13]MH_SAM_APDU [00:15:13]CAPDU: 80 17 00 00 [00:15:13]Write to MH i2c: E2 08 00 4F 02 80 17 00 00 00 00 00 00 D1 [00:15:13]Write i2c OK [00:15:13]MH_I2C_Read... [00:15:13]OFD Sender: No OFD packet to send [00:15:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:15:13]Read from MH i2c: E2 [00:15:13]MH_I2C_Read... [00:15:13]Read from MH i2c: E2 BD 00 [00:15:13]MH_I2C_Read... [00:15:13]Read from MH i2c: E2 BD 00 4F 02 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B7 [00:15:13]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:15:13]wFMCommunicate OK [00:15:13]SAM_PROTO_GetShiftData done [00:15:13]requested_item shift.sale.total_cash is exist - process it [00:15:13]requested_item shift.sale_refund.total is exist - process it [00:15:13]requested_item shift.sale_refund.total_cash is exist - process it [00:15:13]requested_item shift.buy.total is exist - process it [00:15:13]requested_item shift.buy.total_cash is exist - process it [00:15:13]produce_requested_data done [00:15:13]produce_requested_data return {"fm.sale.total":80898075.36,"fm.sale_refund.total":2947263.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:15:13]process_action_free get_value [00:15:13]json_value_free [00:15:13]json_value_free done [00:15:13]process_json_proto returns [00:15:13]Send response to host [00:15:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":80898075.36,"fm.sale_refund.total":2947263.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:15:13]free response buf [00:15:13]execute_script done [00:15:13]execute_script returns [00:15:13]free content buf [00:15:13]Sock 8.Close socket [00:15:13]Sock 8.Thread stoped [00:15:18]OFD Sender: No OFD packet to send [00:15:23]OFD Sender: No OFD packet to send [00:15:28]OFD Sender: No OFD packet to send [00:15:33]OFD Sender: No OFD packet to send [00:15:38]OFD Sender: No OFD packet to send [00:15:43]OFD Sender: No OFD packet to send [00:15:48]OFD Sender: No OFD packet to send [00:15:53]OFD Sender: No OFD packet to send [00:15:58]OFD Sender: No OFD packet to send [00:16:03]OFD Sender: No OFD packet to send [00:16:08]OFD Sender: No OFD packet to send [00:16:13]OFD Sender: No OFD packet to send [00:16:18]OFD Sender: No OFD packet to send [00:16:23]OFD Sender: No OFD packet to send [00:16:28]OFD Sender: No OFD packet to send [00:16:33]OFD Sender: No OFD packet to send [00:16:38]OFD Sender: No OFD packet to send [00:16:43]OFD Sender: No OFD packet to send [00:16:48]OFD Sender: No OFD packet to send [00:16:53]OFD Sender: No OFD packet to send [00:16:58]OFD Sender: No OFD packet to send [00:17:03]OFD Sender: No OFD packet to send [00:17:08]OFD Sender: No OFD packet to send [00:17:13]OFD Sender: No OFD packet to send [00:17:18]OFD Sender: No OFD packet to send [00:17:23]OFD Sender: No OFD packet to send [00:17:28]OFD Sender: No OFD packet to send [00:17:33]OFD Sender: No OFD packet to send [00:17:38]OFD Sender: No OFD packet to send [00:17:43]OFD Sender: No OFD packet to send [00:17:48]OFD Sender: No OFD packet to send [00:17:53]OFD Sender: No OFD packet to send [00:17:58]OFD Sender: No OFD packet to send [00:18:03]OFD Sender: No OFD packet to send [00:18:08]OFD Sender: No OFD packet to send [00:18:13]OFD Sender: No OFD packet to send [00:18:18]OFD Sender: No OFD packet to send [00:18:23]OFD Sender: No OFD packet to send [00:18:28]OFD Sender: No OFD packet to send [00:18:33]OFD Sender: No OFD packet to send [00:18:38]OFD Sender: No OFD packet to send [00:18:43]OFD Sender: No OFD packet to send [00:18:48]OFD Sender: No OFD packet to send [00:18:53]OFD Sender: No OFD packet to send [00:18:58]OFD Sender: No OFD packet to send [00:19:01]accept exits with 9 [00:19:01]New connection [00:19:01]New thread 3067313508 created [00:19:01]Thread 3067456868 joined [00:19:01]Waiting for new connection... [00:19:01] Sock 9.Parse request [00:19:01]Sock 9.Check first char [00:19:01]Sock 9.First char is OK [00:19:01]request: POST /json_proto HTTP/1.0 [00:19:01]Method: POST [00:19:01]URL: /json_proto [00:19:01]Method is POST - this is cgi request [00:19:01]url: /json_proto [00:19:01]query_string will be loaded in cgi processing [00:19:01]execute_cgi json_proto POST (null) [00:19:01]execute_cgi path=json_proto method=POST [00:19:01]POST find Content-Length [00:19:01]Host: 172.17.50.3:8080 [00:19:01]Content-Length: 689 [00:19:01]Content-Type: application/json [00:19:01] [00:19:01]POST finish read [00:19:01]Found Content-Length = 689 [00:19:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:01]execute_script... [00:19: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)2885348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:01]POST & json_proto [00:19:01]process_json_proto [00:19:01]json parsed OK: [00:19:01]protocol is kg_v1.0 [00:19:01]action value=close_receipt [00:19:01]process_action close_receipt [00:19:01]cmd_close_receipt [00:19:01]MH_GetDate [00:19:01]Write to MH i2c: F0 00 00 50 02 41 [00:19:01]Write i2c OK [00:19:01]MH_I2C_Read... [00:19:01]Read from MH i2c: F0 [00:19:01]MH_I2C_Read... [00:19:01]Read from MH i2c: F0 09 00 [00:19:01]MH_I2C_Read... [00:19:01]Read from MH i2c: F0 09 00 50 02 00 F6 9D 15 67 6B 98 1E 66 E0 [00:19:01]GetLastDocTimeStamp 1729469703 [00:19:01]current date 1729469942 [00:19:01]FM_GetShiftState [00:19:01]SAM_PROTO_GetShiftState [00:19:01]wFMCommunicate request_size=4 [00:19:01]MH_SAM_APDU [00:19:01]CAPDU: 80 13 01 00 [00:19:01]Write to MH i2c: E2 08 00 51 02 80 13 01 00 00 00 00 00 D0 [00:19:01]Write i2c OK [00:19:01]MH_I2C_Read... [00:19:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:01]Read from MH i2c: E2 [00:19:01]MH_I2C_Read... [00:19:01]Read from MH i2c: E2 0E 00 [00:19:01]MH_I2C_Read... [00:19:01]Read from MH i2c: E2 0E 00 51 02 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 FC [00:19:01]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [00:19:01]wFMCommunicate OK [00:19:01]SAM_PROTO_GetShiftState done [00:19:01]FM_GetShiftState done [00:19:01]opened in 1729469703 [00:19:01]opened+sec_in_day 1729556103 [00:19:01]quantity*price = 100051 [00:19:01]sum+1 = 100052 [00:19:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 1 21.10.2024 00:19 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69611 ФПД: 70974787915706 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T001902&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69611&fm=70974787915706&tin=02508201610067®Number=0000000000156251&sum=100000 [00:19:02]StoreToDocumentArchive [00:19:02]shift 194 fd 69611 [00:19:02]save to /storage/0194/doc_00069611 [00:19:02]save last doc name /storage/0194/doc_00069611 to /storage/kkm_last_doc_name [00:19:02]save OK [00:19:02]Clear old archive folders... [00:19:02]ProcessDocumentItem done err = 0, tmpTLVsize=257 [00:19:02]tlvbuf is 00C3A150 [00:19:02]SAM_PROTO_ClearQueue [00:19:02]wFMCommunicate request_size=4 [00:19:02]MH_SAM_APDU [00:19:02]CAPDU: 80 09 00 00 [00:19:02]Write to MH i2c: E2 08 00 5E 02 80 09 00 00 00 00 00 00 D2 [00:19:02]Write i2c OK [00:19:02]MH_I2C_Read... [00:19:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:19:02]Read from MH i2c: E2 [00:19:02]MH_I2C_Read... [00:19:02]Read from MH i2c: E2 03 00 [00:19:02]MH_I2C_Read... [00:19:02]Read from MH i2c: E2 03 00 5E 02 00 90 00 D4 [00:19:02]RAPDU: 90 00 [00:19:02]wFMCommunicate OK [00:19:02]SAM_PROTO_ClearQueue done [00:19:02]KKMCreateOFDPacket [00:19:02]OFDProtocolAddRootSTLVToBuf [00:19:02]FM_MakeSignedData [00:19:02]FM_MakeSignedData [00:19:02]SAM_PROTO_SignData [00:19:02]wFMCommunicate request_size=4 [00:19:02]MH_SAM_APDU [00:19:02]CAPDU: 80 0D 01 02 [00:19:02]Write to MH i2c: E2 08 00 5F 02 80 0D 01 02 00 00 00 00 DA [00:19:02]Write i2c OK [00:19:02]MH_I2C_Read... [00:19:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:19:03]Read from MH i2c: E2 [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: E2 03 00 [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: E2 03 00 5F 02 00 90 00 D5 [00:19:03]RAPDU: 90 00 [00:19:03]wFMCommunicate OK [00:19:03]wFMCommunicate request_size=255 [00:19:03]MH_SAM_APDU [00:19:03]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 F6 9D 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EB 0F 01 [00:19:03]Write to MH i2c: E2 02 01 60 02 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 F6 9D 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EB 0F 01 00 00 F9 [00:19:03]Write i2c OK [00:19:03]MH_I2C_Read... [00:19:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:03]Read from MH i2c: E2 [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: E2 03 00 [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: E2 03 00 60 02 00 90 00 D6 [00:19:03]RAPDU: 90 00 [00:19:03]wFMCommunicate OK [00:19:03]wFMCommunicate request_size=16 [00:19:03]MH_SAM_APDU [00:19:03]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 40 8D 1B 05 8F BA [00:19:03]Write to MH i2c: E2 13 00 61 02 80 0D 02 02 0B 00 00 35 04 06 00 40 8D 1B 05 8F BA 00 00 68 [00:19:03]Write i2c OK [00:19:03]MH_I2C_Read... [00:19:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:03]Read from MH i2c: E2 [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: E2 03 00 [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: E2 03 00 61 02 00 90 00 D7 [00:19:03]RAPDU: 90 00 [00:19:03]wFMCommunicate OK [00:19:03]wFMCommunicate request_size=4 [00:19:03]MH_SAM_APDU [00:19:03]CAPDU: 80 0D 03 02 [00:19:03]Write to MH i2c: E2 08 00 62 02 80 0D 03 02 00 00 00 00 DF [00:19:03]Write i2c OK [00:19:03]MH_I2C_Read... [00:19:03]OFD Sender: No OFD packet to send [00:19:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:19:03]Read from MH i2c: E2 [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: E2 0B 00 [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: E2 0B 00 62 02 00 73 2A 42 36 4F 51 1F B9 90 00 6D [00:19:03]RAPDU: 73 2A 42 36 4F 51 1F B9 90 00 [00:19:03]wFMCommunicate OK [00:19:03]SAM_PROTO_SignData done [00:19:03]FM_MakeSignedData done [00:19:03]CreateOFDProtocolMessage [00:19:03]wFMCommunicate request_size=4 [00:19:03]MH_SAM_APDU [00:19:03]CAPDU: 80 11 00 00 [00:19:03]Write to MH i2c: E2 08 00 63 02 80 11 00 00 00 00 00 00 DF [00:19:03]Write i2c OK [00:19:03]MH_I2C_Read... [00:19:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:03]Read from MH i2c: E2 [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: E2 17 00 [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: E2 17 00 63 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 31 [00:19:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:19:03]wFMCommunicate OK [00:19:03]CreateOFDProtocolMessage done [00:19:03]OFDSenderStorePacket 69611 [00:19:03]StoreOFDPacket docnum=69611 [00:19:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 BB 60 0D 01 C9 09 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 F6 9D 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EB 0F 01 00 35 04 06 00 40 8D 1B 05 8F BA 73 2A 42 36 4F 51 1F B9 [00:19:03]CheckFolder [00:19:03]dirname=/storage/ofd_packets [00:19:03]CheckFolder done [00:19:03]ProducePacketName [00:19:03]name=ofd_packets/00069611 [00:19:03]NVStorageSaveData ofd_packets/00069611 [00:19:03]File name is /storage/ofd_packets/00069611 [00:19:03]Write 307 bytes [00:19:03]NVStorageSaveData done [00:19:03]OFDSenderStorePacket done [00:19:03]KKMCreateOFDPacket done [00:19:03]NVStorageSaveData kkm_last_timestamp [00:19:03]File name is /storage/kkm_last_timestamp [00:19:03]Write 4 bytes [00:19:03]NVStorageSaveData done [00:19:03]ExternCall_PrintAddStr [00:19:03]wPrintStart [00:19:03]Write to MH i2c: 01 00 00 64 02 66 [00:19:03]Write i2c OK [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: 01 [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: 01 07 00 [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: 01 07 00 64 02 00 00 00 00 00 FF 0F 7B [00:19:03]RasterBufferAndPrint [00:19:03]line Счет N : (1)2885348 [00:19:03]line ИНН: 02508201610067 [00:19:03]line Контрольно-Кассовый Чек [00:19:03]line ПРОДАЖА [00:19:03]line ТРК (МРК, ГНК) : 31 [00:19:03]line Товар: 2710194240 [00:19:03]line D-ENERGY Дт-К-2 [00:19:03]line 12.960 * 77.20 [00:19:03]line = 1000.51 [00:19:03]line НДС 12% НСП 1% [00:19:03]line > о реализуемом товаре [00:19:03]line ОКРУГЛЕНИЕ: -0.51 [00:19:03]line ИТОГО: 1000.00 [00:19:03]line Внесено: 1000.00 [00:19:03]line СДАЧА: 0.00 [00:19:03]line НСП 1% : 8.85 [00:19:03]line НДС 12% : 106.25 [00:19:03]line Наличными: 1000.00 [00:19:03]line Безнал.: 0.00 [00:19:03]line Место: АЗС № 85 "Партнер Нефть" [00:19:03]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [00:19:03]line СНО: Общий режим [00:19:03]line Чек 1 21.10.2024 00:19 [00:19:03]line Смена: 194 ФФД: 1.0 [00:19:03]line ЗНМ: 0300000167 [00:19:03]line РНМ: 0000000000156251 [00:19:03]line Версия ККМ: v1.0 [00:19:03]line ФМ: 0000000000963346 [00:19:03]line ФД: 69611 [00:19:03]line ФПД: 70974787915706 [00:19:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T001902&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69611&fm=70974787915706&tin=02508201610067®Number=0000000000156251&sum=100000 [00:19:03]OFD Sender: Processing packet 69611 [packets to send 18, broken 17] [00:19:03]ProducePacketName [00:19:03]name=ofd_packets/00069611 [00:19:03]OFD Sender: To server: pG, [00:19:03]CommunicateWithHost lk.salyk.kg:30040 [00:19:03]ConnectInit lk.salyk.kg [00:19:03]written 0, free lines is 4095 [00:19:03]Connected sock=10 [00:19:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 BB 60 0D 01 C9 09 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 F6 9D 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EB 0F 01 00 35 04 06 00 40 8D 1B 05 8F BA 73 2A 42 36 4F 51 1F B9 [00:19:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 70 39 47 00 24 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EB 0F 01 00 F4 03 04 00 9C 47 15 67 B6 04 01 00 00 86 6F 3B E1 A1 F1 35 D0 [00:19:04]CommunicateWithHost err = 0 [00:19:04]CheckOFDResponse [00:19:04]1017 (14) - 77093643461234 [00:19:04]1041 (16) - 0000000000963346 [00:19:04]1040 (4) - 69611 [00:19:04]1012 (4) - 20.10.2024 18:10 [00:19:04]1206 (1) - 0 [00:19:04]OFD Sender: Remove packet 69611 [00:19:04]ProducePacketName [00:19:04]name=ofd_packets/00069611 [00:19:04]NVStorageDeleteData [00:19:04]Write to MH i2c: 01 00 00 8F 02 91 [00:19:04]Write i2c OK [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: 01 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: 01 07 00 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: 01 07 00 8F 02 00 00 00 00 00 F1 0C 95 [00:19:04]RasterBufferAndPrint [00:19:04]line [00:19:04]line [00:19:04]line [00:19:04]line [00:19:04]line [00:19:04]written 0, free lines is 3319 [00:19:04]MH_Cut [00:19:04]Write to MH i2c: D1 01 00 96 02 01 6A [00:19:04]Write i2c OK [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: D1 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: D1 01 00 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: D1 01 00 96 02 00 69 [00:19:04]Write to MH i2c: 01 00 00 97 02 99 [00:19:04]Write i2c OK [00:19:04]MH_I2C_Read... [00:19:04]OFD Sender: No OFD packet to send [00:19:04]*** Cut start [00:19:04]*** Partial cut [00:19:04]*** CUTSNS_PIN = 1 [00:19:05]*** CUTSNS_PIN = 0 [00:19:05]*** Brake cut motor [00:19:05]Read from MH i2c: 01 [00:19:05]MH_I2C_Read... [00:19:05]*** Stop cut motor [00:19:05]*** Cut end [00:19:05]Read from MH i2c: 01 07 00 [00:19:05]MH_I2C_Read... [00:19:05]Read from MH i2c: 01 07 00 97 02 00 00 00 00 00 FF 0F AE [00:19:05]process_action close_receipt done [00:19:05]requested_data is exist [00:19:05]produce_requested_data [00:19:05]requested_item fm.sn is exist - process it [00:19:05]wFMCommunicate request_size=4 [00:19:05]MH_SAM_APDU [00:19:05]CAPDU: 80 11 00 00 [00:19:05]Write to MH i2c: E2 08 00 98 02 80 11 00 00 00 00 00 00 14 [00:19:05]Write i2c OK [00:19:05]MH_I2C_Read... [00:19:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:05]Read from MH i2c: E2 [00:19:05]MH_I2C_Read... [00:19:05]Read from MH i2c: E2 17 00 [00:19:05]MH_I2C_Read... [00:19:05]Read from MH i2c: E2 17 00 98 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 66 [00:19:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:19:05]wFMCommunicate OK [00:19:05]requested_item fd.num is exist - process it [00:19:05]SAM_PROTO_GetFieldsCounters [00:19:05]wFMCommunicate request_size=4 [00:19:05]MH_SAM_APDU [00:19:05]CAPDU: 80 13 00 00 [00:19:05]Write to MH i2c: E2 08 00 99 02 80 13 00 00 00 00 00 00 17 [00:19:05]Write i2c OK [00:19:05]MH_I2C_Read... [00:19:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:19:05]Read from MH i2c: E2 [00:19:05]MH_I2C_Read... [00:19:05]Read from MH i2c: E2 62 00 [00:19:05]MH_I2C_Read... [00:19:05]Read from MH i2c: E2 62 00 99 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EB 0F 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [00:19:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EB 0F 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:19:05]wFMCommunicate OK [00:19:05]SAM_PROTO_GetFieldsCounters done [00:19:05]requested_item shift.num is exist - process it [00:19:05]requested_item shift.opened is exist - process it [00:19:05]req_shift_opened [00:19:05]FM_GetShiftState [00:19:05]SAM_PROTO_GetShiftState [00:19:05]wFMCommunicate request_size=4 [00:19:05]MH_SAM_APDU [00:19:05]CAPDU: 80 13 01 00 [00:19:05]Write to MH i2c: E2 08 00 9A 02 80 13 01 00 00 00 00 00 19 [00:19:05]Write i2c OK [00:19:05]MH_I2C_Read... [00:19:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:05]Read from MH i2c: E2 [00:19:05]MH_I2C_Read... [00:19:05]Read from MH i2c: E2 0E 00 [00:19:05]MH_I2C_Read... [00:19:05]Read from MH i2c: E2 0E 00 9A 02 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 45 [00:19:05]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [00:19:05]wFMCommunicate OK [00:19:05]SAM_PROTO_GetShiftState done [00:19:05]FM_GetShiftState done [00:19:05]req_shift_opened done [00:19:05]requested_item shift.open_date is exist - process it [00:19:05]req_shift_open_date [00:19:05]req_shift_open_date done [00:19:05]produce_requested_data done [00:19:05]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69611,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [00:19:05]process_action_free close_receipt [00:19:05]json_value_free [00:19:05]json_value_free done [00:19:05]process_json_proto returns [00:19:05]Send response to host [00:19:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69611,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [00:19:05]free response buf [00:19:05]execute_script done [00:19:05]execute_script returns [00:19:05]free content buf [00:19:05]Sock 9.Close socket [00:19:05]Sock 9.Thread stoped [00:19:09]OFD Sender: No OFD packet to send [00:19:14]OFD Sender: No OFD packet to send [00:19:19]OFD Sender: No OFD packet to send [00:19:24]OFD Sender: No OFD packet to send [00:19:29]OFD Sender: No OFD packet to send [00:19:34]OFD Sender: No OFD packet to send [00:19:39]OFD Sender: No OFD packet to send [00:19:44]OFD Sender: No OFD packet to send [00:19:45]accept exits with 8 [00:19:45]New connection [00:19:45]New thread 3067456868 created [00:19:45]Thread 3067313508 joined [00:19:45]Waiting for new connection... [00:19:45] Sock 8.Parse request [00:19:45]Sock 8.Check first char [00:19:45]Sock 8.First char is OK [00:19:45]request: POST /json_proto HTTP/1.0 [00:19:45]Method: POST [00:19:45]URL: /json_proto [00:19:45]Method is POST - this is cgi request [00:19:45]url: /json_proto [00:19:45]query_string will be loaded in cgi processing [00:19:45]execute_cgi json_proto POST (null) [00:19:45]execute_cgi path=json_proto method=POST [00:19:45]POST find Content-Length [00:19:45]Host: 172.17.50.3:8080 [00:19:45]Content-Length: 675 [00:19:45]Content-Type: application/json [00:19:45] [00:19:45]POST finish read [00:19:45]Found Content-Length = 675 [00:19:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.020, "sum" : 687.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 687.00, "total" : 687.00, "payments": [ { "type": 0, "sum" : 687.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:45]execute_script... [00:19: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)2885349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.020, "sum" : 687.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 687.00, "total" : 687.00, "payments": [ { "type": 0, "sum" : 687.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:45]POST & json_proto [00:19:45]process_json_proto [00:19:45]json parsed OK: [00:19:45]protocol is kg_v1.0 [00:19:45]action value=close_receipt [00:19:45]process_action close_receipt [00:19:45]cmd_close_receipt [00:19:45]MH_GetDate [00:19:45]Write to MH i2c: F0 00 00 9B 02 8C [00:19:45]Write i2c OK [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: F0 [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: F0 09 00 [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: F0 09 00 9B 02 00 22 9E 15 67 6B 98 1E 66 58 [00:19:45]GetLastDocTimeStamp 1729469942 [00:19:45]current date 1729469986 [00:19:45]FM_GetShiftState [00:19:45]SAM_PROTO_GetShiftState [00:19:45]wFMCommunicate request_size=4 [00:19:45]MH_SAM_APDU [00:19:45]CAPDU: 80 13 01 00 [00:19:45]Write to MH i2c: E2 08 00 9C 02 80 13 01 00 00 00 00 00 1B [00:19:45]Write i2c OK [00:19:45]MH_I2C_Read... [00:19:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:45]Read from MH i2c: E2 [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: E2 0E 00 [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: E2 0E 00 9C 02 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 47 [00:19:45]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [00:19:45]wFMCommunicate OK [00:19:45]SAM_PROTO_GetShiftState done [00:19:45]FM_GetShiftState done [00:19:45]opened in 1729469703 [00:19:45]opened+sec_in_day 1729556103 [00:19:45]quantity*price = 68732 [00:19:45]sum+1 = 68733 [00:19:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 687.00 Внесено: 687.00 СДАЧА: 0.00 НСП 1% : 6.08 НДС 12% : 72.99 Наличными: 687.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 2 21.10.2024 00:19 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69612 ФПД: 26795445510393 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T001946&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69612&fm=26795445510393&tin=02508201610067®Number=0000000000156251&sum=68700 [00:19:46]StoreToDocumentArchive [00:19:46]shift 194 fd 69612 [00:19:46]save to /storage/0194/doc_00069612 [00:19:46]save last doc name /storage/0194/doc_00069612 to /storage/kkm_last_doc_name [00:19:46]save OK [00:19:46]Clear old archive folders... [00:19:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:19:46]tlvbuf is 00C3B5D0 [00:19:46]SAM_PROTO_ClearQueue [00:19:46]wFMCommunicate request_size=4 [00:19:46]MH_SAM_APDU [00:19:46]CAPDU: 80 09 00 00 [00:19:46]Write to MH i2c: E2 08 00 A9 02 80 09 00 00 00 00 00 00 1D [00:19:46]Write i2c OK [00:19:46]MH_I2C_Read... [00:19:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:19:46]Read from MH i2c: E2 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 03 00 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 03 00 A9 02 00 90 00 1F [00:19:46]RAPDU: 90 00 [00:19:46]wFMCommunicate OK [00:19:46]SAM_PROTO_ClearQueue done [00:19:46]KKMCreateOFDPacket [00:19:46]OFDProtocolAddRootSTLVToBuf [00:19:46]FM_MakeSignedData [00:19:46]FM_MakeSignedData [00:19:46]SAM_PROTO_SignData [00:19:46]wFMCommunicate request_size=4 [00:19:46]MH_SAM_APDU [00:19:46]CAPDU: 80 0D 01 02 [00:19:46]Write to MH i2c: E2 08 00 AA 02 80 0D 01 02 00 00 00 00 25 [00:19:46]Write i2c OK [00:19:46]MH_I2C_Read... [00:19:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:19:46]Read from MH i2c: E2 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 03 00 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 03 00 AA 02 00 90 00 20 [00:19:46]RAPDU: 90 00 [00:19:46]wFMCommunicate OK [00:19:46]wFMCommunicate request_size=255 [00:19:46]MH_SAM_APDU [00:19:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3C 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 7C 0C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 0C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 1C 00 00 00 00 07 04 06 00 5C 0C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 22 9E 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EC 0F 01 00 35 04 06 00 18 5E CD 02 [00:19:46]Write to MH i2c: E2 02 01 AB 02 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 3C 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 7C 0C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 0C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 1C 00 00 00 00 07 04 06 00 5C 0C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 22 9E 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EC 0F 01 00 35 04 06 00 18 5E CD 02 00 00 59 [00:19:46]Write i2c OK [00:19:46]MH_I2C_Read... [00:19:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:46]Read from MH i2c: E2 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 03 00 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 03 00 AB 02 00 90 00 21 [00:19:46]RAPDU: 90 00 [00:19:46]wFMCommunicate OK [00:19:46]wFMCommunicate request_size=7 [00:19:46]MH_SAM_APDU [00:19:46]CAPDU: 80 0D 02 02 02 E0 F9 [00:19:46]Write to MH i2c: E2 0A 00 AC 02 80 0D 02 02 02 00 E0 F9 00 00 05 [00:19:46]Write i2c OK [00:19:46]MH_I2C_Read... [00:19:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:46]Read from MH i2c: E2 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 03 00 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 03 00 AC 02 00 90 00 22 [00:19:46]RAPDU: 90 00 [00:19:46]wFMCommunicate OK [00:19:46]wFMCommunicate request_size=4 [00:19:46]MH_SAM_APDU [00:19:46]CAPDU: 80 0D 03 02 [00:19:46]Write to MH i2c: E2 08 00 AD 02 80 0D 03 02 00 00 00 00 2A [00:19:46]Write i2c OK [00:19:46]MH_I2C_Read... [00:19:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:19:46]Read from MH i2c: E2 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 0B 00 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 0B 00 AD 02 00 AE 0A B2 64 CD 61 D4 72 90 00 6D [00:19:46]RAPDU: AE 0A B2 64 CD 61 D4 72 90 00 [00:19:46]wFMCommunicate OK [00:19:46]SAM_PROTO_SignData done [00:19:46]FM_MakeSignedData done [00:19:46]CreateOFDProtocolMessage [00:19:46]wFMCommunicate request_size=4 [00:19:46]MH_SAM_APDU [00:19:46]CAPDU: 80 11 00 00 [00:19:46]Write to MH i2c: E2 08 00 AE 02 80 11 00 00 00 00 00 00 2A [00:19:46]Write i2c OK [00:19:46]MH_I2C_Read... [00:19:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:46]Read from MH i2c: E2 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 17 00 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 17 00 AE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7C [00:19:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:19:46]wFMCommunicate OK [00:19:46]CreateOFDProtocolMessage done [00:19:46]OFDSenderStorePacket 69612 [00:19:46]StoreOFDPacket docnum=69612 [00:19:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 A8 F0 04 01 93 22 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 3C 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 7C 0C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 0C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 1C 00 00 00 00 07 04 06 00 5C 0C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 22 9E 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EC 0F 01 00 35 04 06 00 18 5E CD 02 E0 F9 AE 0A B2 64 CD 61 D4 72 [00:19:46]CheckFolder [00:19:46]dirname=/storage/ofd_packets [00:19:46]CheckFolder done [00:19:46]ProducePacketName [00:19:46]name=ofd_packets/00069612 [00:19:46]NVStorageSaveData ofd_packets/00069612 [00:19:46]File name is /storage/ofd_packets/00069612 [00:19:46]Write 298 bytes [00:19:46]NVStorageSaveData done [00:19:46]OFDSenderStorePacket done [00:19:46]KKMCreateOFDPacket done [00:19:46]NVStorageSaveData kkm_last_timestamp [00:19:46]File name is /storage/kkm_last_timestamp [00:19:46]Write 4 bytes [00:19:46]NVStorageSaveData done [00:19:46]ExternCall_PrintAddStr [00:19:46]wPrintStart [00:19:46]Write to MH i2c: 01 00 00 AF 02 B1 [00:19:46]Write i2c OK [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: 01 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: 01 07 00 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: 01 07 00 AF 02 00 00 00 00 00 FF 0F C6 [00:19:46]RasterBufferAndPrint [00:19:46]line Счет N : (1)2885349 [00:19:46]line ИНН: 02508201610067 [00:19:46]line Контрольно-Кассовый Чек [00:19:46]line ПРОДАЖА [00:19:46]line ТРК (МРК, ГНК) : 51 [00:19:46]line Товар: 2710194210 [00:19:46]line ДТ-К-5 [00:19:46]line 9.020 * 76.20 [00:19:46]line = 687.32 [00:19:46]line НДС 12% НСП 1% [00:19:46]line > о реализуемом товаре [00:19:46]line ОКРУГЛЕНИЕ: -0.32 [00:19:46]line ИТОГО: 687.00 [00:19:46]line Внесено: 687.00 [00:19:46]line СДАЧА: 0.00 [00:19:46]line НСП 1% : 6.08 [00:19:46]line НДС 12% : 72.99 [00:19:46]line Наличными: 687.00 [00:19:46]line Безнал.: 0.00 [00:19:46]line Место: АЗС № 85 "Партнер Нефть" [00:19:46]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [00:19:46]line СНО: Общий режим [00:19:46]line Чек 2 21.10.2024 00:19 [00:19:46]line Смена: 194 ФФД: 1.0 [00:19:46]line ЗНМ: 0300000167 [00:19:46]line РНМ: 0000000000156251 [00:19:46]line Версия ККМ: v1.0 [00:19:46]line ФМ: 0000000000963346 [00:19:46]line ФД: 69612 [00:19:47]line ФПД: 26795445510393 [00:19:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T001946&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69612&fm=26795445510393&tin=02508201610067®Number=0000000000156251&sum=68700 [00:19:47]OFD Sender: Processing packet 69612 [packets to send 18, broken 17] [00:19:47]ProducePacketName [00:19:47]name=ofd_packets/00069612 [00:19:47]OFD Sender: To server: pG, [00:19:47]CommunicateWithHost lk.salyk.kg:30040 [00:19:47]ConnectInit lk.salyk.kg [00:19:47]written 0, free lines is 4095 [00:19:47]Connected sock=10 [00:19:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0C 01 00 00 A8 F0 04 01 93 22 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 3C 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 7C 0C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 0C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 1C 00 00 00 00 07 04 06 00 5C 0C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 22 9E 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EC 0F 01 00 35 04 06 00 18 5E CD 02 E0 F9 AE 0A B2 64 CD 61 D4 72 [00:19:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 21 C1 47 00 2C 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EC 0F 01 00 F4 03 04 00 C7 47 15 67 B6 04 01 00 00 F0 92 51 ED A2 C8 10 73 [00:19:47]CommunicateWithHost err = 0 [00:19:47]CheckOFDResponse [00:19:47]1017 (14) - 77093643461234 [00:19:47]1041 (16) - 0000000000963346 [00:19:47]1040 (4) - 69612 [00:19:47]1012 (4) - 20.10.2024 18:11 [00:19:47]1206 (1) - 0 [00:19:47]OFD Sender: Remove packet 69612 [00:19:47]ProducePacketName [00:19:47]name=ofd_packets/00069612 [00:19:47]NVStorageDeleteData [00:19:47]Write to MH i2c: 01 00 00 DA 02 DC [00:19:47]Write i2c OK [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: 01 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: 01 07 00 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: 01 07 00 DA 02 00 00 00 00 00 E2 0C D1 [00:19:47]RasterBufferAndPrint [00:19:47]line [00:19:47]line [00:19:47]line [00:19:47]line [00:19:47]line [00:19:47]written 0, free lines is 3304 [00:19:47]MH_Cut [00:19:47]Write to MH i2c: D1 01 00 E1 02 01 B5 [00:19:47]Write i2c OK [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: D1 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: D1 01 00 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: D1 01 00 E1 02 00 B4 [00:19:47]Write to MH i2c: 01 00 00 E2 02 E4 [00:19:47]Write i2c OK [00:19:47]MH_I2C_Read... [00:19:47]OFD Sender: No OFD packet to send [00:19:48]*** Cut start [00:19:48]*** Partial cut [00:19:48]*** CUTSNS_PIN = 1 [00:19:48]*** CUTSNS_PIN = 0 [00:19:48]*** Brake cut motor [00:19:48]Read from MH i2c: 01 [00:19:48]MH_I2C_Read... [00:19:48]*** Stop cut motor [00:19:48]*** Cut end [00:19:48]Read from MH i2c: 01 07 00 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: 01 07 00 E2 02 00 00 00 00 00 FF 0F F9 [00:19:48]process_action close_receipt done [00:19:48]requested_data is exist [00:19:48]produce_requested_data [00:19:48]requested_item fm.sn is exist - process it [00:19:48]wFMCommunicate request_size=4 [00:19:48]MH_SAM_APDU [00:19:48]CAPDU: 80 11 00 00 [00:19:48]Write to MH i2c: E2 08 00 E3 02 80 11 00 00 00 00 00 00 5F [00:19:48]Write i2c OK [00:19:48]MH_I2C_Read... [00:19:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:48]Read from MH i2c: E2 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 17 00 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 17 00 E3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B1 [00:19:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:19:48]wFMCommunicate OK [00:19:48]requested_item fd.num is exist - process it [00:19:48]SAM_PROTO_GetFieldsCounters [00:19:48]wFMCommunicate request_size=4 [00:19:48]MH_SAM_APDU [00:19:48]CAPDU: 80 13 00 00 [00:19:48]Write to MH i2c: E2 08 00 E4 02 80 13 00 00 00 00 00 00 62 [00:19:48]Write i2c OK [00:19:48]MH_I2C_Read... [00:19:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:19:49]Read from MH i2c: E2 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: E2 62 00 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: E2 62 00 E4 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EC 0F 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [00:19:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EC 0F 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:19:49]wFMCommunicate OK [00:19:49]SAM_PROTO_GetFieldsCounters done [00:19:49]requested_item shift.num is exist - process it [00:19:49]requested_item shift.opened is exist - process it [00:19:49]req_shift_opened [00:19:49]FM_GetShiftState [00:19:49]SAM_PROTO_GetShiftState [00:19:49]wFMCommunicate request_size=4 [00:19:49]MH_SAM_APDU [00:19:49]CAPDU: 80 13 01 00 [00:19:49]Write to MH i2c: E2 08 00 E5 02 80 13 01 00 00 00 00 00 64 [00:19:49]Write i2c OK [00:19:49]MH_I2C_Read... [00:19:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:49]Read from MH i2c: E2 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: E2 0E 00 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: E2 0E 00 E5 02 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 90 [00:19:49]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [00:19:49]wFMCommunicate OK [00:19:49]SAM_PROTO_GetShiftState done [00:19:49]FM_GetShiftState done [00:19:49]req_shift_opened done [00:19:49]requested_item shift.open_date is exist - process it [00:19:49]req_shift_open_date [00:19:49]req_shift_open_date done [00:19:49]produce_requested_data done [00:19:49]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69612,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [00:19:49]process_action_free close_receipt [00:19:49]json_value_free [00:19:49]json_value_free done [00:19:49]process_json_proto returns [00:19:49]Send response to host [00:19:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69612,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [00:19:49]free response buf [00:19:49]execute_script done [00:19:49]execute_script returns [00:19:49]free content buf [00:19:49]Sock 8.Close socket [00:19:49]Sock 8.Thread stoped [00:19:52]OFD Sender: No OFD packet to send [00:19:57]OFD Sender: No OFD packet to send [00:20:02]OFD Sender: No OFD packet to send [00:20:07]OFD Sender: No OFD packet to send [00:20:12]OFD Sender: No OFD packet to send [00:20:17]OFD Sender: No OFD packet to send [00:20:22]OFD Sender: No OFD packet to send [00:20:27]OFD Sender: No OFD packet to send [00:20:32]OFD Sender: No OFD packet to send [00:20:37]OFD Sender: No OFD packet to send [00:20:42]OFD Sender: No OFD packet to send [00:20:47]OFD Sender: No OFD packet to send [00:20:52]OFD Sender: No OFD packet to send [00:20:57]OFD Sender: No OFD packet to send [00:21:02]OFD Sender: No OFD packet to send [00:21:07]OFD Sender: No OFD packet to send [00:21:12]OFD Sender: No OFD packet to send [00:21:18]OFD Sender: No OFD packet to send [00:21:23]OFD Sender: No OFD packet to send [00:21:28]OFD Sender: No OFD packet to send [00:21:33]OFD Sender: No OFD packet to send [00:21:38]OFD Sender: No OFD packet to send [00:21:43]OFD Sender: No OFD packet to send [00:21:48]OFD Sender: No OFD packet to send [00:21:53]OFD Sender: No OFD packet to send [00:21:58]OFD Sender: No OFD packet to send [00:22:03]OFD Sender: No OFD packet to send [00:22:08]OFD Sender: No OFD packet to send [00:22:13]OFD Sender: No OFD packet to send [00:22:18]OFD Sender: No OFD packet to send [00:22:23]OFD Sender: No OFD packet to send [00:22:28]OFD Sender: No OFD packet to send [00:22:33]OFD Sender: No OFD packet to send [00:22:38]OFD Sender: No OFD packet to send [00:22:43]OFD Sender: No OFD packet to send [00:22:48]OFD Sender: No OFD packet to send [00:22:53]OFD Sender: No OFD packet to send [00:22:58]OFD Sender: No OFD packet to send [00:23:03]OFD Sender: No OFD packet to send [00:23:04]accept exits with 9 [00:23:04]New connection [00:23:04]New thread 3067313508 created [00:23:04]Thread 3067456868 joined [00:23:04]Waiting for new connection... [00:23:04] Sock 9.Parse request [00:23:04]Sock 9.Check first char [00:23:04]Sock 9.First char is OK [00:23:04]request: POST /json_proto HTTP/1.0 [00:23:04]Method: POST [00:23:04]URL: /json_proto [00:23:04]Method is POST - this is cgi request [00:23:04]url: /json_proto [00:23:04]query_string will be loaded in cgi processing [00:23:04]execute_cgi json_proto POST (null) [00:23:04]execute_cgi path=json_proto method=POST [00:23:04]POST find Content-Length [00:23:04]Host: 172.17.50.3:8080 [00:23:04]Content-Length: 683 [00:23:04]Content-Type: application/json [00:23:04] [00:23:04]POST finish read [00:23:04]Found Content-Length = 683 [00:23:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 36.390, "sum" : 2700.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2700.00, "total" : 2700.00, "payments": [ { "type": 0, "sum" : 2700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:23:04]execute_script... [00:23: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)2885351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 36.390, "sum" : 2700.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2700.00, "total" : 2700.00, "payments": [ { "type": 0, "sum" : 2700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:23:04]POST & json_proto [00:23:04]process_json_proto [00:23:04]json parsed OK: [00:23:04]protocol is kg_v1.0 [00:23:04]action value=close_receipt [00:23:04]process_action close_receipt [00:23:04]cmd_close_receipt [00:23:04]MH_GetDate [00:23:04]Write to MH i2c: F0 00 00 E6 02 D7 [00:23:04]Write i2c OK [00:23:04]MH_I2C_Read... [00:23:04]Read from MH i2c: F0 [00:23:04]MH_I2C_Read... [00:23:04]Read from MH i2c: F0 09 00 [00:23:04]MH_I2C_Read... [00:23:04]Read from MH i2c: F0 09 00 E6 02 00 E9 9E 15 67 6B 98 1E 66 6A [00:23:04]GetLastDocTimeStamp 1729469986 [00:23:04]current date 1729470185 [00:23:04]FM_GetShiftState [00:23:04]SAM_PROTO_GetShiftState [00:23:04]wFMCommunicate request_size=4 [00:23:04]MH_SAM_APDU [00:23:04]CAPDU: 80 13 01 00 [00:23:04]Write to MH i2c: E2 08 00 E7 02 80 13 01 00 00 00 00 00 66 [00:23:04]Write i2c OK [00:23:04]MH_I2C_Read... [00:23:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:04]Read from MH i2c: E2 [00:23:04]MH_I2C_Read... [00:23:04]Read from MH i2c: E2 0E 00 [00:23:04]MH_I2C_Read... [00:23:04]Read from MH i2c: E2 0E 00 E7 02 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 92 [00:23:04]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [00:23:04]wFMCommunicate OK [00:23:04]SAM_PROTO_GetShiftState done [00:23:04]FM_GetShiftState done [00:23:04]opened in 1729469703 [00:23:04]opened+sec_in_day 1729556103 [00:23:04]quantity*price = 270013 [00:23:04]sum+1 = 270015 [00:23:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 2700.00 Внесено: 2700.00 СДАЧА: 0.00 НСП 1% : 23.89 НДС 12% : 286.74 Наличными: 2700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 3 21.10.2024 00:23 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69613 ФПД: 11241491822987 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T002305&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69613&fm=11241491822987&tin=02508201610067®Number=0000000000156251&sum=270000 [00:23:05]StoreToDocumentArchive [00:23:05]shift 194 fd 69613 [00:23:05]save to /storage/0194/doc_00069613 [00:23:05]save last doc name /storage/0194/doc_00069613 to /storage/kkm_last_doc_name [00:23:05]save OK [00:23:05]Clear old archive folders... [00:23:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:23:05]tlvbuf is 00C22920 [00:23:05]SAM_PROTO_ClearQueue [00:23:05]wFMCommunicate request_size=4 [00:23:05]MH_SAM_APDU [00:23:05]CAPDU: 80 09 00 00 [00:23:05]Write to MH i2c: E2 08 00 F4 02 80 09 00 00 00 00 00 00 68 [00:23:05]Write i2c OK [00:23:05]MH_I2C_Read... [00:23:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:23:05]Read from MH i2c: E2 [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: E2 03 00 [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: E2 03 00 F4 02 00 90 00 6A [00:23:05]RAPDU: 90 00 [00:23:05]wFMCommunicate OK [00:23:05]SAM_PROTO_ClearQueue done [00:23:05]KKMCreateOFDPacket [00:23:05]OFDProtocolAddRootSTLVToBuf [00:23:05]FM_MakeSignedData [00:23:05]FM_MakeSignedData [00:23:05]SAM_PROTO_SignData [00:23:05]wFMCommunicate request_size=4 [00:23:05]MH_SAM_APDU [00:23:05]CAPDU: 80 0D 01 02 [00:23:05]Write to MH i2c: E2 08 00 F5 02 80 0D 01 02 00 00 00 00 70 [00:23:05]Write i2c OK [00:23:05]MH_I2C_Read... [00:23:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:23:05]Read from MH i2c: E2 [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: E2 03 00 [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: E2 03 00 F5 02 00 90 00 6B [00:23:05]RAPDU: 90 00 [00:23:05]wFMCommunicate OK [00:23:05]wFMCommunicate request_size=255 [00:23:05]MH_SAM_APDU [00:23:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 8E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 70 00 00 00 00 07 04 06 00 B0 1E 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 E9 9E 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 ED 0F 01 00 35 04 06 00 0A [00:23:05]Write to MH i2c: E2 02 01 F6 02 80 0D 02 02 FA 00 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 26 8E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 70 00 00 00 00 07 04 06 00 B0 1E 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 E9 9E 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 ED 0F 01 00 35 04 06 00 0A 00 00 67 [00:23:05]Write i2c OK [00:23:05]MH_I2C_Read... [00:23:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:23:05]Read from MH i2c: E2 [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: E2 03 00 [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: E2 03 00 F6 02 00 90 00 6C [00:23:05]RAPDU: 90 00 [00:23:05]wFMCommunicate OK [00:23:05]wFMCommunicate request_size=10 [00:23:05]MH_SAM_APDU [00:23:05]CAPDU: 80 0D 02 02 05 39 5D 20 79 8B [00:23:05]Write to MH i2c: E2 0D 00 F7 02 80 0D 02 02 05 00 39 5D 20 79 8B 00 00 37 [00:23:05]Write i2c OK [00:23:05]MH_I2C_Read... [00:23:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:23:05]Read from MH i2c: E2 [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: E2 03 00 [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: E2 03 00 F7 02 00 90 00 6D [00:23:05]RAPDU: 90 00 [00:23:05]wFMCommunicate OK [00:23:05]wFMCommunicate request_size=4 [00:23:05]MH_SAM_APDU [00:23:05]CAPDU: 80 0D 03 02 [00:23:05]Write to MH i2c: E2 08 00 F8 02 80 0D 03 02 00 00 00 00 75 [00:23:05]Write i2c OK [00:23:05]MH_I2C_Read... [00:23:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:23:05]Read from MH i2c: E2 [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: E2 0B 00 [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: E2 0B 00 F8 02 00 7F 6D 9B 12 10 D6 B5 09 90 00 B3 [00:23:05]RAPDU: 7F 6D 9B 12 10 D6 B5 09 90 00 [00:23:05]wFMCommunicate OK [00:23:05]SAM_PROTO_SignData done [00:23:05]FM_MakeSignedData done [00:23:05]CreateOFDProtocolMessage [00:23:05]wFMCommunicate request_size=4 [00:23:05]MH_SAM_APDU [00:23:05]CAPDU: 80 11 00 00 [00:23:05]Write to MH i2c: E2 08 00 F9 02 80 11 00 00 00 00 00 00 75 [00:23:05]Write i2c OK [00:23:05]MH_I2C_Read... [00:23:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:23:05]Read from MH i2c: E2 [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: E2 17 00 [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: E2 17 00 F9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C7 [00:23:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:23:05]wFMCommunicate OK [00:23:05]CreateOFDProtocolMessage done [00:23:05]OFDSenderStorePacket 69613 [00:23:05]StoreOFDPacket docnum=69613 [00:23:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 6A 01 07 01 E3 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 8E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 70 00 00 00 00 07 04 06 00 B0 1E 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 E9 9E 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 ED 0F 01 00 35 04 06 00 0A 39 5D 20 79 8B 7F 6D 9B 12 10 D6 B5 09 [00:23:05]CheckFolder [00:23:05]dirname=/storage/ofd_packets [00:23:05]CheckFolder done [00:23:05]ProducePacketName [00:23:05]name=ofd_packets/00069613 [00:23:05]NVStorageSaveData ofd_packets/00069613 [00:23:05]File name is /storage/ofd_packets/00069613 [00:23:05]Write 301 bytes [00:23:05]NVStorageSaveData done [00:23:05]OFDSenderStorePacket done [00:23:05]KKMCreateOFDPacket done [00:23:05]NVStorageSaveData kkm_last_timestamp [00:23:05]File name is /storage/kkm_last_timestamp [00:23:05]Write 4 bytes [00:23:05]NVStorageSaveData done [00:23:05]ExternCall_PrintAddStr [00:23:05]wPrintStart [00:23:05]Write to MH i2c: 01 00 00 FA 02 FC [00:23:05]Write i2c OK [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: 01 [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: 01 07 00 [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: 01 07 00 FA 02 00 00 00 00 00 FF 0F 11 [00:23:05]RasterBufferAndPrint [00:23:05]line Счет N : (1)2885351 [00:23:05]line ИНН: 02508201610067 [00:23:05]line Контрольно-Кассовый Чек [00:23:05]line ПРОДАЖА [00:23:05]line ТРК (МРК, ГНК) : 23 [00:23:05]line Товар: 2710124500 [00:23:05]line Аи-95-К-5 [00:23:05]line 36.390 * 74.20 [00:23:05]line = 2700.14 [00:23:05]line НДС 12% НСП 1% [00:23:05]line > о реализуемом товаре [00:23:05]line ОКРУГЛЕНИЕ: -0.14 [00:23:05]line ИТОГО: 2700.00 [00:23:05]line Внесено: 2700.00 [00:23:05]line СДАЧА: 0.00 [00:23:05]line НСП 1% : 23.89 [00:23:05]line НДС 12% : 286.74 [00:23:05]line Наличными: 2700.00 [00:23:05]line Безнал.: 0.00 [00:23:05]line Место: АЗС № 85 "Партнер Нефть" [00:23:05]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [00:23:05]line СНО: Общий режим [00:23:05]line Чек 3 21.10.2024 00:23 [00:23:05]line Смена: 194 ФФД: 1.0 [00:23:05]line ЗНМ: 0300000167 [00:23:05]line РНМ: 0000000000156251 [00:23:05]line Версия ККМ: v1.0 [00:23:05]line ФМ: 0000000000963346 [00:23:05]line ФД: 69613 [00:23:05]line ФПД: 11241491822987 [00:23:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T002305&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69613&fm=11241491822987&tin=02508201610067®Number=0000000000156251&sum=270000 [00:23:06]OFD Sender: Processing packet 69613 [packets to send 18, broken 17] [00:23:06]ProducePacketName [00:23:06]name=ofd_packets/00069613 [00:23:06]OFD Sender: To server: pG, [00:23:06]CommunicateWithHost lk.salyk.kg:30040 [00:23:06]ConnectInit lk.salyk.kg [00:23:06]written 0, free lines is 4095 [00:23:06]Connected sock=10 [00:23:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 6A 01 07 01 E3 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 8E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 70 00 00 00 00 07 04 06 00 B0 1E 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 E9 9E 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 ED 0F 01 00 35 04 06 00 0A 39 5D 20 79 8B 7F 6D 9B 12 10 D6 B5 09 [00:23:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 92 A9 47 00 73 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 ED 0F 01 00 F4 03 04 00 8E 48 15 67 B6 04 01 00 00 24 33 EC 1E 02 DE 14 E1 [00:23:06]CommunicateWithHost err = 0 [00:23:06]CheckOFDResponse [00:23:06]1017 (14) - 77093643461234 [00:23:06]1041 (16) - 0000000000963346 [00:23:06]1040 (4) - 69613 [00:23:06]1012 (4) - 20.10.2024 18:14 [00:23:06]1206 (1) - 0 [00:23:06]OFD Sender: Remove packet 69613 [00:23:06]ProducePacketName [00:23:06]name=ofd_packets/00069613 [00:23:06]NVStorageDeleteData [00:23:06]Write to MH i2c: 01 00 00 25 03 28 [00:23:06]Write i2c OK [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: 01 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: 01 07 00 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: 01 07 00 25 03 00 00 00 00 00 F1 0C 2C [00:23:06]RasterBufferAndPrint [00:23:06]line [00:23:06]line [00:23:06]line [00:23:06]line [00:23:06]line [00:23:06]written 0, free lines is 3319 [00:23:06]MH_Cut [00:23:06]Write to MH i2c: D1 01 00 2C 03 01 01 [00:23:06]Write i2c OK [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: D1 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: D1 01 00 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: D1 01 00 2C 03 00 00 [00:23:06]Write to MH i2c: 01 00 00 2D 03 30 [00:23:06]Write i2c OK [00:23:06]MH_I2C_Read... [00:23:07]OFD Sender: No OFD packet to send [00:23:07]*** Cut start [00:23:07]*** Partial cut [00:23:07]*** CUTSNS_PIN = 1 [00:23:07]*** CUTSNS_PIN = 0 [00:23:07]*** Brake cut motor [00:23:07]Read from MH i2c: 01 [00:23:07]MH_I2C_Read... [00:23:07]*** Stop cut motor [00:23:07]*** Cut end [00:23:07]Read from MH i2c: 01 07 00 [00:23:07]MH_I2C_Read... [00:23:07]Read from MH i2c: 01 07 00 2D 03 00 00 00 00 00 FF 0F 45 [00:23:07]process_action close_receipt done [00:23:07]requested_data is exist [00:23:07]produce_requested_data [00:23:07]requested_item fm.sn is exist - process it [00:23:07]wFMCommunicate request_size=4 [00:23:07]MH_SAM_APDU [00:23:07]CAPDU: 80 11 00 00 [00:23:07]Write to MH i2c: E2 08 00 2E 03 80 11 00 00 00 00 00 00 AB [00:23:07]Write i2c OK [00:23:07]MH_I2C_Read... [00:23:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:23:08]Read from MH i2c: E2 [00:23:08]MH_I2C_Read... [00:23:08]Read from MH i2c: E2 17 00 [00:23:08]MH_I2C_Read... [00:23:08]Read from MH i2c: E2 17 00 2E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 FD [00:23:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:23:08]wFMCommunicate OK [00:23:08]requested_item fd.num is exist - process it [00:23:08]SAM_PROTO_GetFieldsCounters [00:23:08]wFMCommunicate request_size=4 [00:23:08]MH_SAM_APDU [00:23:08]CAPDU: 80 13 00 00 [00:23:08]Write to MH i2c: E2 08 00 2F 03 80 13 00 00 00 00 00 00 AE [00:23:08]Write i2c OK [00:23:08]MH_I2C_Read... [00:23:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:23:08]Read from MH i2c: E2 [00:23:08]MH_I2C_Read... [00:23:08]Read from MH i2c: E2 62 00 [00:23:08]MH_I2C_Read... [00:23:08]Read from MH i2c: E2 62 00 2F 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 ED 0F 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [00:23:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 ED 0F 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:23:08]wFMCommunicate OK [00:23:08]SAM_PROTO_GetFieldsCounters done [00:23:08]requested_item shift.num is exist - process it [00:23:08]requested_item shift.opened is exist - process it [00:23:08]req_shift_opened [00:23:08]FM_GetShiftState [00:23:08]SAM_PROTO_GetShiftState [00:23:08]wFMCommunicate request_size=4 [00:23:08]MH_SAM_APDU [00:23:08]CAPDU: 80 13 01 00 [00:23:08]Write to MH i2c: E2 08 00 30 03 80 13 01 00 00 00 00 00 B0 [00:23:08]Write i2c OK [00:23:08]MH_I2C_Read... [00:23:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:08]Read from MH i2c: E2 [00:23:08]MH_I2C_Read... [00:23:08]Read from MH i2c: E2 0E 00 [00:23:08]MH_I2C_Read... [00:23:08]Read from MH i2c: E2 0E 00 30 03 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 DC [00:23:08]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [00:23:08]wFMCommunicate OK [00:23:08]SAM_PROTO_GetShiftState done [00:23:08]FM_GetShiftState done [00:23:08]req_shift_opened done [00:23:08]requested_item shift.open_date is exist - process it [00:23:08]req_shift_open_date [00:23:08]req_shift_open_date done [00:23:08]produce_requested_data done [00:23:08]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69613,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [00:23:08]process_action_free close_receipt [00:23:08]json_value_free [00:23:08]json_value_free done [00:23:08]process_json_proto returns [00:23:08]Send response to host [00:23:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69613,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [00:23:08]free response buf [00:23:08]execute_script done [00:23:08]execute_script returns [00:23:08]free content buf [00:23:08]Sock 9.Close socket [00:23:08]Sock 9.Thread stoped [00:23:12]OFD Sender: No OFD packet to send [00:23:17]OFD Sender: No OFD packet to send [00:23:22]OFD Sender: No OFD packet to send [00:23:27]OFD Sender: No OFD packet to send [00:23:32]OFD Sender: No OFD packet to send [00:23:37]OFD Sender: No OFD packet to send [00:23:42]OFD Sender: No OFD packet to send [00:23:47]OFD Sender: No OFD packet to send [00:23:52]OFD Sender: No OFD packet to send [00:23:57]OFD Sender: No OFD packet to send [00:24:02]OFD Sender: No OFD packet to send [00:24:07]OFD Sender: No OFD packet to send [00:24:10]accept exits with 8 [00:24:10]New connection [00:24:10]New thread 3067456868 created [00:24:10]Thread 3067313508 joined [00:24:10]Waiting for new connection... [00:24:10] Sock 8.Parse request [00:24:10]Sock 8.Check first char [00:24:10]Sock 8.First char is OK [00:24:10]request: POST /json_proto HTTP/1.0 [00:24:10]Method: POST [00:24:10]URL: /json_proto [00:24:10]Method is POST - this is cgi request [00:24:10]url: /json_proto [00:24:10]query_string will be loaded in cgi processing [00:24:10]execute_cgi json_proto POST (null) [00:24:10]execute_cgi path=json_proto method=POST [00:24:10]POST find Content-Length [00:24:10]Host: 172.17.50.3:8080 [00:24:10]Content-Length: 755 [00:24:10]Content-Type: application/json [00:24:10] [00:24:10]POST finish read [00:24:10]Found Content-Length = 755 [00:24:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 45.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\u000A30115697", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:24:10]execute_script... [00:24:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 45.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\u000A30115697", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:24:10]POST & json_proto [00:24:10]process_json_proto [00:24:10]json parsed OK: [00:24:10]protocol is kg_v1.0 [00:24:10]action value=close_receipt [00:24:10]process_action close_receipt [00:24:10]cmd_close_receipt [00:24:10]MH_GetDate [00:24:10]Write to MH i2c: F0 00 00 31 03 23 [00:24:10]Write i2c OK [00:24:10]MH_I2C_Read... [00:24:10]Read from MH i2c: F0 [00:24:10]MH_I2C_Read... [00:24:10]Read from MH i2c: F0 09 00 [00:24:10]MH_I2C_Read... [00:24:10]Read from MH i2c: F0 09 00 31 03 00 2B 9F 15 67 6B 98 1E 66 F9 [00:24:10]GetLastDocTimeStamp 1729470185 [00:24:10]current date 1729470251 [00:24:10]FM_GetShiftState [00:24:10]SAM_PROTO_GetShiftState [00:24:10]wFMCommunicate request_size=4 [00:24:10]MH_SAM_APDU [00:24:10]CAPDU: 80 13 01 00 [00:24:10]Write to MH i2c: E2 08 00 32 03 80 13 01 00 00 00 00 00 B2 [00:24:10]Write i2c OK [00:24:10]MH_I2C_Read... [00:24:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:24:10]Read from MH i2c: E2 [00:24:10]MH_I2C_Read... [00:24:10]Read from MH i2c: E2 0E 00 [00:24:10]MH_I2C_Read... [00:24:10]Read from MH i2c: E2 0E 00 32 03 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 DE [00:24:10]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [00:24:10]wFMCommunicate OK [00:24:10]SAM_PROTO_GetShiftState done [00:24:10]FM_GetShiftState done [00:24:10]opened in 1729469703 [00:24:10]opened+sec_in_day 1729556103 [00:24:10]quantity*price = 0 [00:24:10]sum+1 = 1 [00:24:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 4 21.10.2024 00:24 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30115697 ФМ: 0000000000963346 ФД: 69614 ФПД: 20732418819294 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T002411&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69614&fm=20732418819294&tin=02508201610067®Number=0000000000156251&sum=0 [00:24:11]StoreToDocumentArchive [00:24:11]shift 194 fd 69614 [00:24:11]save to /storage/0194/doc_00069614 [00:24:11]save last doc name /storage/0194/doc_00069614 to /storage/kkm_last_doc_name [00:24:11]save OK [00:24:11]Clear old archive folders... [00:24:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:24:11]tlvbuf is 00C383C0 [00:24:11]SAM_PROTO_ClearQueue [00:24:11]wFMCommunicate request_size=4 [00:24:11]MH_SAM_APDU [00:24:11]CAPDU: 80 09 00 00 [00:24:11]Write to MH i2c: E2 08 00 3F 03 80 09 00 00 00 00 00 00 B4 [00:24:11]Write i2c OK [00:24:11]MH_I2C_Read... [00:24:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:24:11]Read from MH i2c: E2 [00:24:11]MH_I2C_Read... [00:24:11]Read from MH i2c: E2 03 00 [00:24:11]MH_I2C_Read... [00:24:11]Read from MH i2c: E2 03 00 3F 03 00 90 00 B6 [00:24:11]RAPDU: 90 00 [00:24:11]wFMCommunicate OK [00:24:11]SAM_PROTO_ClearQueue done [00:24:11]KKMCreateOFDPacket [00:24:11]OFDProtocolAddRootSTLVToBuf [00:24:11]FM_MakeSignedData [00:24:11]FM_MakeSignedData [00:24:11]SAM_PROTO_SignData [00:24:11]wFMCommunicate request_size=4 [00:24:11]MH_SAM_APDU [00:24:11]CAPDU: 80 0D 01 02 [00:24:11]Write to MH i2c: E2 08 00 40 03 80 0D 01 02 00 00 00 00 BC [00:24:11]Write i2c OK [00:24:11]MH_I2C_Read... [00:24:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:24:11]Read from MH i2c: E2 [00:24:11]MH_I2C_Read... [00:24:11]Read from MH i2c: E2 03 00 [00:24:11]MH_I2C_Read... [00:24:11]Read from MH i2c: E2 03 00 40 03 00 90 00 B7 [00:24:11]RAPDU: 90 00 [00:24:11]wFMCommunicate OK [00:24:11]wFMCommunicate request_size=255 [00:24:11]MH_SAM_APDU [00:24:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 AF 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 04 00 00 00 F4 03 04 00 2B 9F 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EE 0F 01 00 35 04 06 00 12 [00:24:11]Write to MH i2c: E2 02 01 41 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 AF 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 04 00 00 00 F4 03 04 00 2B 9F 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EE 0F 01 00 35 04 06 00 12 00 00 53 [00:24:11]Write i2c OK [00:24:11]MH_I2C_Read... [00:24:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:24:12]Read from MH i2c: E2 [00:24:12]MH_I2C_Read... [00:24:12]Read from MH i2c: E2 03 00 [00:24:12]MH_I2C_Read... [00:24:12]Read from MH i2c: E2 03 00 41 03 00 90 00 B8 [00:24:12]RAPDU: 90 00 [00:24:12]wFMCommunicate OK [00:24:12]wFMCommunicate request_size=10 [00:24:12]MH_SAM_APDU [00:24:12]CAPDU: 80 0D 02 02 05 DB 24 75 84 DE [00:24:12]Write to MH i2c: E2 0D 00 42 03 80 0D 02 02 05 00 DB 24 75 84 DE 00 00 9F [00:24:12]Write i2c OK [00:24:12]MH_I2C_Read... [00:24:12]OFD Sender: No OFD packet to send [00:24:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:24:12]Read from MH i2c: E2 [00:24:12]MH_I2C_Read... [00:24:12]Read from MH i2c: E2 03 00 [00:24:12]MH_I2C_Read... [00:24:12]Read from MH i2c: E2 03 00 42 03 00 90 00 B9 [00:24:12]RAPDU: 90 00 [00:24:12]wFMCommunicate OK [00:24:12]wFMCommunicate request_size=4 [00:24:12]MH_SAM_APDU [00:24:12]CAPDU: 80 0D 03 02 [00:24:12]Write to MH i2c: E2 08 00 43 03 80 0D 03 02 00 00 00 00 C1 [00:24:12]Write i2c OK [00:24:12]MH_I2C_Read... [00:24:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:24:12]Read from MH i2c: E2 [00:24:12]MH_I2C_Read... [00:24:12]Read from MH i2c: E2 0B 00 [00:24:12]MH_I2C_Read... [00:24:12]Read from MH i2c: E2 0B 00 43 03 00 05 3C 5E FD 2A 3F 4E 1C 90 00 31 [00:24:12]RAPDU: 05 3C 5E FD 2A 3F 4E 1C 90 00 [00:24:12]wFMCommunicate OK [00:24:12]SAM_PROTO_SignData done [00:24:12]FM_MakeSignedData done [00:24:12]CreateOFDProtocolMessage [00:24:12]wFMCommunicate request_size=4 [00:24:12]MH_SAM_APDU [00:24:12]CAPDU: 80 11 00 00 [00:24:12]Write to MH i2c: E2 08 00 44 03 80 11 00 00 00 00 00 00 C1 [00:24:12]Write i2c OK [00:24:12]MH_I2C_Read... [00:24:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:24:12]Read from MH i2c: E2 [00:24:12]MH_I2C_Read... [00:24:12]Read from MH i2c: E2 17 00 [00:24:12]MH_I2C_Read... [00:24:12]Read from MH i2c: E2 17 00 44 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 13 [00:24:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:24:12]wFMCommunicate OK [00:24:12]CreateOFDProtocolMessage done [00:24:12]OFDSenderStorePacket 69614 [00:24:12]StoreOFDPacket docnum=69614 [00:24:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 71 2A 07 01 2E 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 AF 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 04 00 00 00 F4 03 04 00 2B 9F 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EE 0F 01 00 35 04 06 00 12 DB 24 75 84 DE 05 3C 5E FD 2A 3F 4E 1C [00:24:12]CheckFolder [00:24:12]dirname=/storage/ofd_packets [00:24:12]CheckFolder done [00:24:12]ProducePacketName [00:24:12]name=ofd_packets/00069614 [00:24:12]NVStorageSaveData ofd_packets/00069614 [00:24:12]File name is /storage/ofd_packets/00069614 [00:24:12]Write 301 bytes [00:24:12]NVStorageSaveData done [00:24:12]OFDSenderStorePacket done [00:24:12]KKMCreateOFDPacket done [00:24:12]NVStorageSaveData kkm_last_timestamp [00:24:12]File name is /storage/kkm_last_timestamp [00:24:12]Write 4 bytes [00:24:12]NVStorageSaveData done [00:24:12]ExternCall_PrintAddStr [00:24:12]wPrintStart [00:24:12]Write to MH i2c: 01 00 00 45 03 48 [00:24:12]Write i2c OK [00:24:12]MH_I2C_Read... [00:24:12]Read from MH i2c: 01 [00:24:12]MH_I2C_Read... [00:24:12]Read from MH i2c: 01 07 00 [00:24:12]MH_I2C_Read... [00:24:12]Read from MH i2c: 01 07 00 45 03 00 00 00 00 00 FF 0F 5D [00:24:12]RasterBufferAndPrint [00:24:12]line Счет N : (1)2885350 [00:24:12]line ИНН: 02508201610067 [00:24:12]line Контрольно-Кассовый Чек [00:24:12]line ПРОДАЖА [00:24:12]line ТРК (МРК, ГНК) : 32 [00:24:12]line Товар: 2710124130 [00:24:12]line Аи-92-К-5 [00:24:12]line 45.000 * 0.00 [00:24:12]line = 0.00 [00:24:12]line НДС 12% НСП 1% [00:24:12]line > о реализуемом товаре [00:24:12]line ИТОГО: 0.00 [00:24:12]line НСП 1% : 0.00 [00:24:12]line НДС 12% : 0.00 [00:24:12]line Наличными: 0.00 [00:24:12]line Безнал.: 0.00 [00:24:12]line Место: АЗС № 85 "Партнер Нефть" [00:24:12]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [00:24:12]line СНО: Общий режим [00:24:12]line Чек 4 21.10.2024 00:24 [00:24:12]line Смена: 194 ФФД: 1.0 [00:24:12]line ЗНМ: 0300000167 [00:24:12]line РНМ: 0000000000156251 [00:24:12]line Версия ККМ: v1.0 [00:24:12]line Талоны: ТК ГПНА Online [00:24:12]line 30115697 [00:24:12]line ФМ: 0000000000963346 [00:24:12]line ФД: 69614 [00:24:12]line ФПД: 20732418819294 [00:24:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T002411&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69614&fm=20732418819294&tin=02508201610067®Number=0000000000156251&sum=0 [00:24:12]OFD Sender: Processing packet 69614 [packets to send 18, broken 17] [00:24:12]ProducePacketName [00:24:12]name=ofd_packets/00069614 [00:24:12]OFD Sender: To server: pG, [00:24:12]CommunicateWithHost lk.salyk.kg:30040 [00:24:12]ConnectInit lk.salyk.kg [00:24:12]written 0, free lines is 4095 [00:24:12]Connected sock=10 [00:24:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 71 2A 07 01 2E 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 AF 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 04 00 00 00 F4 03 04 00 2B 9F 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EE 0F 01 00 35 04 06 00 12 DB 24 75 84 DE 05 3C 5E FD 2A 3F 4E 1C [00:24:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 60 86 47 00 53 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EE 0F 01 00 F4 03 04 00 D0 48 15 67 B6 04 01 00 00 AA 29 D2 3F EF 4B 3F F3 [00:24:12]CommunicateWithHost err = 0 [00:24:12]CheckOFDResponse [00:24:12]1017 (14) - 77093643461234 [00:24:12]1041 (16) - 0000000000963346 [00:24:12]1040 (4) - 69614 [00:24:12]1012 (4) - 20.10.2024 18:15 [00:24:12]1206 (1) - 0 [00:24:12]OFD Sender: Remove packet 69614 [00:24:12]ProducePacketName [00:24:12]name=ofd_packets/00069614 [00:24:12]NVStorageDeleteData [00:24:12]Write to MH i2c: 01 00 00 6F 03 72 [00:24:12]Write i2c OK [00:24:12]MH_I2C_Read... [00:24:12]Read from MH i2c: 01 [00:24:12]MH_I2C_Read... [00:24:12]Read from MH i2c: 01 07 00 [00:24:12]MH_I2C_Read... [00:24:12]Read from MH i2c: 01 07 00 6F 03 00 00 00 00 00 FC 0C 81 [00:24:12]RasterBufferAndPrint [00:24:12]line [00:24:12]line [00:24:12]line [00:24:12]line [00:24:12]line [00:24:12]written 0, free lines is 3330 [00:24:13]MH_Cut [00:24:13]Write to MH i2c: D1 01 00 76 03 01 4B [00:24:13]Write i2c OK [00:24:13]MH_I2C_Read... [00:24:13]Read from MH i2c: D1 [00:24:13]MH_I2C_Read... [00:24:13]Read from MH i2c: D1 01 00 [00:24:13]MH_I2C_Read... [00:24:13]Read from MH i2c: D1 01 00 76 03 00 4A [00:24:13]Write to MH i2c: 01 00 00 77 03 7A [00:24:13]Write i2c OK [00:24:13]MH_I2C_Read... [00:24:13]OFD Sender: No OFD packet to send [00:24:13]*** Cut start [00:24:13]*** Partial cut [00:24:13]*** CUTSNS_PIN = 1 [00:24:13]*** CUTSNS_PIN = 0 [00:24:13]*** Brake cut motor [00:24:14]Read from MH i2c: 01 [00:24:14]MH_I2C_Read... [00:24:14]*** Stop cut motor [00:24:14]*** Cut end [00:24:14]Read from MH i2c: 01 07 00 [00:24:14]MH_I2C_Read... [00:24:14]Read from MH i2c: 01 07 00 77 03 00 00 00 00 00 FF 0F 8F [00:24:14]process_action close_receipt done [00:24:14]requested_data is exist [00:24:14]produce_requested_data [00:24:14]requested_item fm.sn is exist - process it [00:24:14]wFMCommunicate request_size=4 [00:24:14]MH_SAM_APDU [00:24:14]CAPDU: 80 11 00 00 [00:24:14]Write to MH i2c: E2 08 00 78 03 80 11 00 00 00 00 00 00 F5 [00:24:14]Write i2c OK [00:24:14]MH_I2C_Read... [00:24:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:24:14]Read from MH i2c: E2 [00:24:14]MH_I2C_Read... [00:24:14]Read from MH i2c: E2 17 00 [00:24:14]MH_I2C_Read... [00:24:14]Read from MH i2c: E2 17 00 78 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 47 [00:24:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:24:14]wFMCommunicate OK [00:24:14]requested_item fd.num is exist - process it [00:24:14]SAM_PROTO_GetFieldsCounters [00:24:14]wFMCommunicate request_size=4 [00:24:14]MH_SAM_APDU [00:24:14]CAPDU: 80 13 00 00 [00:24:14]Write to MH i2c: E2 08 00 79 03 80 13 00 00 00 00 00 00 F8 [00:24:14]Write i2c OK [00:24:14]MH_I2C_Read... [00:24:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:24:14]Read from MH i2c: E2 [00:24:14]MH_I2C_Read... [00:24:14]Read from MH i2c: E2 62 00 [00:24:14]MH_I2C_Read... [00:24:14]Read from MH i2c: E2 62 00 79 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EE 0F 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [00:24:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EE 0F 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:24:14]wFMCommunicate OK [00:24:14]SAM_PROTO_GetFieldsCounters done [00:24:14]requested_item shift.num is exist - process it [00:24:14]requested_item shift.opened is exist - process it [00:24:14]req_shift_opened [00:24:14]FM_GetShiftState [00:24:14]SAM_PROTO_GetShiftState [00:24:14]wFMCommunicate request_size=4 [00:24:14]MH_SAM_APDU [00:24:14]CAPDU: 80 13 01 00 [00:24:14]Write to MH i2c: E2 08 00 7A 03 80 13 01 00 00 00 00 00 FA [00:24:14]Write i2c OK [00:24:14]MH_I2C_Read... [00:24:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:24:14]Read from MH i2c: E2 [00:24:14]MH_I2C_Read... [00:24:14]Read from MH i2c: E2 0E 00 [00:24:14]MH_I2C_Read... [00:24:14]Read from MH i2c: E2 0E 00 7A 03 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 26 [00:24:14]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [00:24:14]wFMCommunicate OK [00:24:14]SAM_PROTO_GetShiftState done [00:24:14]FM_GetShiftState done [00:24:14]req_shift_opened done [00:24:14]requested_item shift.open_date is exist - process it [00:24:14]req_shift_open_date [00:24:14]req_shift_open_date done [00:24:14]produce_requested_data done [00:24:14]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69614,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [00:24:14]process_action_free close_receipt [00:24:14]json_value_free [00:24:14]json_value_free done [00:24:14]process_json_proto returns [00:24:14]Send response to host [00:24:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69614,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [00:24:14]free response buf [00:24:14]execute_script done [00:24:14]execute_script returns [00:24:14]free content buf [00:24:14]Sock 8.Close socket [00:24:14]Sock 8.Thread stoped [00:24:18]OFD Sender: No OFD packet to send [00:24:23]OFD Sender: No OFD packet to send [00:24:28]OFD Sender: No OFD packet to send [00:24:33]OFD Sender: No OFD packet to send [00:24:38]OFD Sender: No OFD packet to send [00:24:43]OFD Sender: No OFD packet to send [00:24:48]OFD Sender: No OFD packet to send [00:24:53]OFD Sender: No OFD packet to send [00:24:58]OFD Sender: No OFD packet to send [00:25:03]OFD Sender: No OFD packet to send [00:25:08]OFD Sender: No OFD packet to send [00:25:13]OFD Sender: No OFD packet to send [00:25:17]accept exits with 9 [00:25:17]New connection [00:25:17]New thread 3067313508 created [00:25:17]Thread 3067456868 joined [00:25:17]Waiting for new connection... [00:25:17] Sock 9.Parse request [00:25:17]Sock 9.Check first char [00:25:17]Sock 9.First char is OK [00:25:17]request: POST /json_proto HTTP/1.0 [00:25:17]Method: POST [00:25:17]URL: /json_proto [00:25:17]Method is POST - this is cgi request [00:25:17]url: /json_proto [00:25:17]query_string will be loaded in cgi processing [00:25:17]execute_cgi json_proto POST (null) [00:25:17]execute_cgi path=json_proto method=POST [00:25:17]POST find Content-Length [00:25:17]Host: 172.17.50.3:8080 [00:25:17]Content-Length: 679 [00:25:17]Content-Type: application/json [00:25:17] [00:25:17]POST finish read [00:25:17]Found Content-Length = 679 [00:25:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:17]execute_script... [00:25:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:17]POST & json_proto [00:25:17]process_json_proto [00:25:17]json parsed OK: [00:25:17]protocol is kg_v1.0 [00:25:17]action value=close_receipt [00:25:17]process_action close_receipt [00:25:17]cmd_close_receipt [00:25:17]MH_GetDate [00:25:17]Write to MH i2c: F0 00 00 7B 03 6D [00:25:17]Write i2c OK [00:25:17]MH_I2C_Read... [00:25:17]Read from MH i2c: F0 [00:25:17]MH_I2C_Read... [00:25:17]Read from MH i2c: F0 09 00 [00:25:17]MH_I2C_Read... [00:25:17]Read from MH i2c: F0 09 00 7B 03 00 6E 9F 15 67 6B 98 1E 66 86 [00:25:17]GetLastDocTimeStamp 1729470251 [00:25:17]current date 1729470318 [00:25:17]FM_GetShiftState [00:25:17]SAM_PROTO_GetShiftState [00:25:17]wFMCommunicate request_size=4 [00:25:17]MH_SAM_APDU [00:25:17]CAPDU: 80 13 01 00 [00:25:17]Write to MH i2c: E2 08 00 7C 03 80 13 01 00 00 00 00 00 FC [00:25:17]Write i2c OK [00:25:17]MH_I2C_Read... [00:25:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:17]Read from MH i2c: E2 [00:25:17]MH_I2C_Read... [00:25:17]Read from MH i2c: E2 0E 00 [00:25:17]MH_I2C_Read... [00:25:17]Read from MH i2c: E2 0E 00 7C 03 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 28 [00:25:17]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [00:25:17]wFMCommunicate OK [00:25:17]SAM_PROTO_GetShiftState done [00:25:17]FM_GetShiftState done [00:25:17]opened in 1729469703 [00:25:17]opened+sec_in_day 1729556103 [00:25:17]quantity*price = 70044 [00:25:17]sum+1 = 70045 [00:25:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 5 21.10.2024 00:25 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69615 ФПД: 266219982033335 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T002518&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69615&fm=266219982033335&tin=02508201610067®Number=0000000000156251&sum=70000 [00:25:18]StoreToDocumentArchive [00:25:18]shift 194 fd 69615 [00:25:18]save to /storage/0194/doc_00069615 [00:25:18]save last doc name /storage/0194/doc_00069615 to /storage/kkm_last_doc_name [00:25:18]save OK [00:25:18]Clear old archive folders... [00:25:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:25:18]tlvbuf is 00C1FFA0 [00:25:18]SAM_PROTO_ClearQueue [00:25:18]wFMCommunicate request_size=4 [00:25:18]MH_SAM_APDU [00:25:18]CAPDU: 80 09 00 00 [00:25:18]Write to MH i2c: E2 08 00 89 03 80 09 00 00 00 00 00 00 FE [00:25:18]Write i2c OK [00:25:18]MH_I2C_Read... [00:25:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:25:18]Read from MH i2c: E2 [00:25:18]MH_I2C_Read... [00:25:18]Read from MH i2c: E2 03 00 [00:25:18]MH_I2C_Read... [00:25:18]Read from MH i2c: E2 03 00 89 03 00 90 00 00 [00:25:18]RAPDU: 90 00 [00:25:18]wFMCommunicate OK [00:25:18]SAM_PROTO_ClearQueue done [00:25:18]KKMCreateOFDPacket [00:25:18]OFDProtocolAddRootSTLVToBuf [00:25:18]FM_MakeSignedData [00:25:18]FM_MakeSignedData [00:25:18]SAM_PROTO_SignData [00:25:18]wFMCommunicate request_size=4 [00:25:18]MH_SAM_APDU [00:25:18]CAPDU: 80 0D 01 02 [00:25:18]Write to MH i2c: E2 08 00 8A 03 80 0D 01 02 00 00 00 00 06 [00:25:18]Write i2c OK [00:25:18]MH_I2C_Read... [00:25:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:25:18]Read from MH i2c: E2 [00:25:18]MH_I2C_Read... [00:25:18]Read from MH i2c: E2 03 00 [00:25:18]MH_I2C_Read... [00:25:18]Read from MH i2c: E2 03 00 8A 03 00 90 00 01 [00:25:18]RAPDU: 90 00 [00:25:18]wFMCommunicate OK [00:25:18]wFMCommunicate request_size=255 [00:25:18]MH_SAM_APDU [00:25:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 6E 9F 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EF 0F 01 00 35 04 06 00 F2 [00:25:18]Write to MH i2c: E2 02 01 8B 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 6E 9F 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EF 0F 01 00 35 04 06 00 F2 00 00 E0 [00:25:18]Write i2c OK [00:25:18]MH_I2C_Read... [00:25:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:18]Read from MH i2c: E2 [00:25:18]MH_I2C_Read... [00:25:18]Read from MH i2c: E2 03 00 [00:25:18]MH_I2C_Read... [00:25:18]Read from MH i2c: E2 03 00 8B 03 00 90 00 02 [00:25:18]RAPDU: 90 00 [00:25:18]wFMCommunicate OK [00:25:18]wFMCommunicate request_size=10 [00:25:18]MH_SAM_APDU [00:25:18]CAPDU: 80 0D 02 02 05 20 2B 76 11 B7 [00:25:18]Write to MH i2c: E2 0D 00 8C 03 80 0D 02 02 05 00 20 2B 76 11 B7 00 00 9C [00:25:18]Write i2c OK [00:25:18]MH_I2C_Read... [00:25:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:18]Read from MH i2c: E2 [00:25:18]MH_I2C_Read... [00:25:18]Read from MH i2c: E2 03 00 [00:25:18]MH_I2C_Read... [00:25:18]Read from MH i2c: E2 03 00 8C 03 00 90 00 03 [00:25:18]RAPDU: 90 00 [00:25:18]wFMCommunicate OK [00:25:18]wFMCommunicate request_size=4 [00:25:18]MH_SAM_APDU [00:25:18]CAPDU: 80 0D 03 02 [00:25:18]Write to MH i2c: E2 08 00 8D 03 80 0D 03 02 00 00 00 00 0B [00:25:18]Write i2c OK [00:25:18]MH_I2C_Read... [00:25:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:25:18]Read from MH i2c: E2 [00:25:18]MH_I2C_Read... [00:25:18]Read from MH i2c: E2 0B 00 [00:25:18]MH_I2C_Read... [00:25:18]Read from MH i2c: E2 0B 00 8D 03 00 B6 8E 85 68 57 74 2B 61 90 00 94 [00:25:18]RAPDU: B6 8E 85 68 57 74 2B 61 90 00 [00:25:18]wFMCommunicate OK [00:25:18]SAM_PROTO_SignData done [00:25:18]FM_MakeSignedData done [00:25:18]CreateOFDProtocolMessage [00:25:18]wFMCommunicate request_size=4 [00:25:18]MH_SAM_APDU [00:25:18]CAPDU: 80 11 00 00 [00:25:18]Write to MH i2c: E2 08 00 8E 03 80 11 00 00 00 00 00 00 0B [00:25:18]Write i2c OK [00:25:18]MH_I2C_Read... [00:25:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:18]Read from MH i2c: E2 [00:25:18]MH_I2C_Read... [00:25:18]Read from MH i2c: E2 17 00 [00:25:18]MH_I2C_Read... [00:25:18]Read from MH i2c: E2 17 00 8E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 5D [00:25:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:25:18]wFMCommunicate OK [00:25:18]CreateOFDProtocolMessage done [00:25:18]OFDSenderStorePacket 69615 [00:25:18]StoreOFDPacket docnum=69615 [00:25:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C4 6A 07 01 80 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 6E 9F 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EF 0F 01 00 35 04 06 00 F2 20 2B 76 11 B7 B6 8E 85 68 57 74 2B 61 [00:25:18]CheckFolder [00:25:18]dirname=/storage/ofd_packets [00:25:18]CheckFolder done [00:25:18]ProducePacketName [00:25:18]name=ofd_packets/00069615 [00:25:18]NVStorageSaveData ofd_packets/00069615 [00:25:18]File name is /storage/ofd_packets/00069615 [00:25:18]Write 301 bytes [00:25:18]NVStorageSaveData done [00:25:18]OFDSenderStorePacket done [00:25:18]KKMCreateOFDPacket done [00:25:18]NVStorageSaveData kkm_last_timestamp [00:25:18]File name is /storage/kkm_last_timestamp [00:25:18]Write 4 bytes [00:25:18]NVStorageSaveData done [00:25:18]ExternCall_PrintAddStr [00:25:18]wPrintStart [00:25:18]Write to MH i2c: 01 00 00 8F 03 92 [00:25:18]Write i2c OK [00:25:18]MH_I2C_Read... [00:25:18]Read from MH i2c: 01 [00:25:18]MH_I2C_Read... [00:25:18]Read from MH i2c: 01 07 00 [00:25:18]MH_I2C_Read... [00:25:18]Read from MH i2c: 01 07 00 8F 03 00 00 00 00 00 FF 0F A7 [00:25:18]RasterBufferAndPrint [00:25:18]line Счет N : (1)2885352 [00:25:18]line ИНН: 02508201610067 [00:25:18]line Контрольно-Кассовый Чек [00:25:18]line ПРОДАЖА [00:25:18]line ТРК (МРК, ГНК) : 42 [00:25:18]line Товар: 2710124130 [00:25:18]line Аи-92-К-5 [00:25:18]line 10.470 * 66.90 [00:25:18]line = 700.44 [00:25:18]line НДС 12% НСП 1% [00:25:18]line > о реализуемом товаре [00:25:18]line ОКРУГЛЕНИЕ: -0.44 [00:25:18]line ИТОГО: 700.00 [00:25:18]line Внесено: 700.00 [00:25:18]line СДАЧА: 0.00 [00:25:18]line НСП 1% : 6.20 [00:25:18]line НДС 12% : 74.38 [00:25:18]line Наличными: 700.00 [00:25:18]line Безнал.: 0.00 [00:25:18]line Место: АЗС № 85 "Партнер Нефть" [00:25:18]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [00:25:18]line СНО: Общий режим [00:25:18]line Чек 5 21.10.2024 00:25 [00:25:18]line Смена: 194 ФФД: 1.0 [00:25:18]line ЗНМ: 0300000167 [00:25:18]line РНМ: 0000000000156251 [00:25:18]line Версия ККМ: v1.0 [00:25:18]line ФМ: 0000000000963346 [00:25:18]line ФД: 69615 [00:25:18]line ФПД: 266219982033335 [00:25:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T002518&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69615&fm=266219982033335&tin=02508201610067®Number=0000000000156251&sum=70000 [00:25:19]OFD Sender: Processing packet 69615 [packets to send 18, broken 17] [00:25:19]ProducePacketName [00:25:19]name=ofd_packets/00069615 [00:25:19]OFD Sender: To server: pG, [00:25:19]CommunicateWithHost lk.salyk.kg:30040 [00:25:19]ConnectInit lk.salyk.kg [00:25:19]written 0, free lines is 4095 [00:25:19]Connected sock=10 [00:25:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C4 6A 07 01 80 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 6E 9F 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EF 0F 01 00 35 04 06 00 F2 20 2B 76 11 B7 B6 8E 85 68 57 74 2B 61 [00:25:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 57 BB 47 00 02 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 EF 0F 01 00 F4 03 04 00 13 49 15 67 B6 04 01 00 00 BB 0E A9 26 AF E6 E1 47 [00:25:19]CommunicateWithHost err = 0 [00:25:19]CheckOFDResponse [00:25:19]1017 (14) - 77093643461234 [00:25:19]1041 (16) - 0000000000963346 [00:25:19]1040 (4) - 69615 [00:25:19]1012 (4) - 20.10.2024 18:16 [00:25:19]1206 (1) - 0 [00:25:19]OFD Sender: Remove packet 69615 [00:25:19]ProducePacketName [00:25:19]name=ofd_packets/00069615 [00:25:19]NVStorageDeleteData [00:25:19]Write to MH i2c: 01 00 00 BA 03 BD [00:25:19]Write i2c OK [00:25:19]MH_I2C_Read... [00:25:19]Read from MH i2c: 01 [00:25:19]MH_I2C_Read... [00:25:19]Read from MH i2c: 01 07 00 [00:25:19]MH_I2C_Read... [00:25:19]Read from MH i2c: 01 07 00 BA 03 00 00 00 00 00 E2 0C B2 [00:25:19]RasterBufferAndPrint [00:25:19]line [00:25:19]line [00:25:19]line [00:25:19]line [00:25:19]line [00:25:19]written 0, free lines is 3304 [00:25:19]MH_Cut [00:25:19]Write to MH i2c: D1 01 00 C1 03 01 96 [00:25:19]Write i2c OK [00:25:19]MH_I2C_Read... [00:25:19]Read from MH i2c: D1 [00:25:19]MH_I2C_Read... [00:25:19]Read from MH i2c: D1 01 00 [00:25:19]MH_I2C_Read... [00:25:19]Read from MH i2c: D1 01 00 C1 03 00 95 [00:25:19]Write to MH i2c: 01 00 00 C2 03 C5 [00:25:19]Write i2c OK [00:25:19]MH_I2C_Read... [00:25:20]OFD Sender: No OFD packet to send [00:25:20]*** Cut start [00:25:20]*** Partial cut [00:25:20]*** CUTSNS_PIN = 1 [00:25:20]*** CUTSNS_PIN = 0 [00:25:20]*** Brake cut motor [00:25:21]Read from MH i2c: 01 [00:25:21]MH_I2C_Read... [00:25:21]*** Stop cut motor [00:25:21]*** Cut end [00:25:21]Read from MH i2c: 01 07 00 [00:25:21]MH_I2C_Read... [00:25:21]Read from MH i2c: 01 07 00 C2 03 00 00 00 00 00 FF 0F DA [00:25:21]process_action close_receipt done [00:25:21]requested_data is exist [00:25:21]produce_requested_data [00:25:21]requested_item fm.sn is exist - process it [00:25:21]wFMCommunicate request_size=4 [00:25:21]MH_SAM_APDU [00:25:21]CAPDU: 80 11 00 00 [00:25:21]Write to MH i2c: E2 08 00 C3 03 80 11 00 00 00 00 00 00 40 [00:25:21]Write i2c OK [00:25:21]MH_I2C_Read... [00:25:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:21]Read from MH i2c: E2 [00:25:21]MH_I2C_Read... [00:25:21]Read from MH i2c: E2 17 00 [00:25:21]MH_I2C_Read... [00:25:21]Read from MH i2c: E2 17 00 C3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 92 [00:25:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:25:21]wFMCommunicate OK [00:25:21]requested_item fd.num is exist - process it [00:25:21]SAM_PROTO_GetFieldsCounters [00:25:21]wFMCommunicate request_size=4 [00:25:21]MH_SAM_APDU [00:25:21]CAPDU: 80 13 00 00 [00:25:21]Write to MH i2c: E2 08 00 C4 03 80 13 00 00 00 00 00 00 43 [00:25:21]Write i2c OK [00:25:21]MH_I2C_Read... [00:25:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:25:21]Read from MH i2c: E2 [00:25:21]MH_I2C_Read... [00:25:21]Read from MH i2c: E2 62 00 [00:25:21]MH_I2C_Read... [00:25:21]Read from MH i2c: E2 62 00 C4 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EF 0F 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [00:25:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 EF 0F 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:25:21]wFMCommunicate OK [00:25:21]SAM_PROTO_GetFieldsCounters done [00:25:21]requested_item shift.num is exist - process it [00:25:21]requested_item shift.opened is exist - process it [00:25:21]req_shift_opened [00:25:21]FM_GetShiftState [00:25:21]SAM_PROTO_GetShiftState [00:25:21]wFMCommunicate request_size=4 [00:25:21]MH_SAM_APDU [00:25:21]CAPDU: 80 13 01 00 [00:25:21]Write to MH i2c: E2 08 00 C5 03 80 13 01 00 00 00 00 00 45 [00:25:21]Write i2c OK [00:25:21]MH_I2C_Read... [00:25:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:21]Read from MH i2c: E2 [00:25:21]MH_I2C_Read... [00:25:21]Read from MH i2c: E2 0E 00 [00:25:21]MH_I2C_Read... [00:25:21]Read from MH i2c: E2 0E 00 C5 03 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 71 [00:25:21]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [00:25:21]wFMCommunicate OK [00:25:21]SAM_PROTO_GetShiftState done [00:25:21]FM_GetShiftState done [00:25:21]req_shift_opened done [00:25:21]requested_item shift.open_date is exist - process it [00:25:21]req_shift_open_date [00:25:21]req_shift_open_date done [00:25:21]produce_requested_data done [00:25:21]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69615,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [00:25:21]process_action_free close_receipt [00:25:21]json_value_free [00:25:21]json_value_free done [00:25:21]process_json_proto returns [00:25:21]Send response to host [00:25:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69615,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [00:25:21]free response buf [00:25:21]execute_script done [00:25:21]execute_script returns [00:25:21]free content buf [00:25:21]Sock 9.Close socket [00:25:21]Sock 9.Thread stoped [00:25:25]OFD Sender: No OFD packet to send [00:25:30]OFD Sender: No OFD packet to send [00:25:35]OFD Sender: No OFD packet to send [00:25:38]accept exits with 8 [00:25:38]New connection [00:25:38]New thread 3067456868 created [00:25:38]Thread 3067313508 joined [00:25:38]Waiting for new connection... [00:25:38] Sock 8.Parse request [00:25:38]Sock 8.Check first char [00:25:38]Sock 8.First char is OK [00:25:38]request: POST /json_proto HTTP/1.0 [00:25:38]Method: POST [00:25:38]URL: /json_proto [00:25:38]Method is POST - this is cgi request [00:25:38]url: /json_proto [00:25:38]query_string will be loaded in cgi processing [00:25:38]execute_cgi json_proto POST (null) [00:25:38]execute_cgi path=json_proto method=POST [00:25:38]POST find Content-Length [00:25:38]Host: 172.17.50.3:8080 [00:25:38]Content-Length: 678 [00:25:38]Content-Type: application/json [00:25:38] [00:25:38]POST finish read [00:25:38]Found Content-Length = 678 [00:25:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:38]execute_script... [00:25: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)2885353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:38]POST & json_proto [00:25:38]process_json_proto [00:25:38]json parsed OK: [00:25:38]protocol is kg_v1.0 [00:25:38]action value=close_receipt [00:25:38]process_action close_receipt [00:25:38]cmd_close_receipt [00:25:38]MH_GetDate [00:25:38]Write to MH i2c: F0 00 00 C6 03 B8 [00:25:38]Write i2c OK [00:25:38]MH_I2C_Read... [00:25:38]Read from MH i2c: F0 [00:25:38]MH_I2C_Read... [00:25:38]Read from MH i2c: F0 09 00 [00:25:38]MH_I2C_Read... [00:25:38]Read from MH i2c: F0 09 00 C6 03 00 83 9F 15 67 6B 98 1E 66 E6 [00:25:38]GetLastDocTimeStamp 1729470318 [00:25:38]current date 1729470339 [00:25:38]FM_GetShiftState [00:25:38]SAM_PROTO_GetShiftState [00:25:38]wFMCommunicate request_size=4 [00:25:38]MH_SAM_APDU [00:25:38]CAPDU: 80 13 01 00 [00:25:38]Write to MH i2c: E2 08 00 C7 03 80 13 01 00 00 00 00 00 47 [00:25:38]Write i2c OK [00:25:38]MH_I2C_Read... [00:25:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:38]Read from MH i2c: E2 [00:25:38]MH_I2C_Read... [00:25:38]Read from MH i2c: E2 0E 00 [00:25:38]MH_I2C_Read... [00:25:38]Read from MH i2c: E2 0E 00 C7 03 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 73 [00:25:38]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [00:25:38]wFMCommunicate OK [00:25:38]SAM_PROTO_GetShiftState done [00:25:38]FM_GetShiftState done [00:25:38]opened in 1729469703 [00:25:38]opened+sec_in_day 1729556103 [00:25:38]quantity*price = 50041 [00:25:38]sum+1 = 50042 [00:25:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 6 21.10.2024 00:25 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69616 ФПД: 278519958616551 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T002539&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69616&fm=278519958616551&tin=02508201610067®Number=0000000000156251&sum=50000 [00:25:39]StoreToDocumentArchive [00:25:39]shift 194 fd 69616 [00:25:39]save to /storage/0194/doc_00069616 [00:25:39]save last doc name /storage/0194/doc_00069616 to /storage/kkm_last_doc_name [00:25:39]save OK [00:25:39]Clear old archive folders... [00:25:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:25:39]tlvbuf is 00C38DE0 [00:25:39]SAM_PROTO_ClearQueue [00:25:39]wFMCommunicate request_size=4 [00:25:39]MH_SAM_APDU [00:25:39]CAPDU: 80 09 00 00 [00:25:39]Write to MH i2c: E2 08 00 D4 03 80 09 00 00 00 00 00 00 49 [00:25:39]Write i2c OK [00:25:39]MH_I2C_Read... [00:25:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:25:39]Read from MH i2c: E2 [00:25:39]MH_I2C_Read... [00:25:39]Read from MH i2c: E2 03 00 [00:25:39]MH_I2C_Read... [00:25:39]Read from MH i2c: E2 03 00 D4 03 00 90 00 4B [00:25:39]RAPDU: 90 00 [00:25:39]wFMCommunicate OK [00:25:39]SAM_PROTO_ClearQueue done [00:25:39]KKMCreateOFDPacket [00:25:39]OFDProtocolAddRootSTLVToBuf [00:25:39]FM_MakeSignedData [00:25:39]FM_MakeSignedData [00:25:39]SAM_PROTO_SignData [00:25:39]wFMCommunicate request_size=4 [00:25:39]MH_SAM_APDU [00:25:39]CAPDU: 80 0D 01 02 [00:25:39]Write to MH i2c: E2 08 00 D5 03 80 0D 01 02 00 00 00 00 51 [00:25:39]Write i2c OK [00:25:39]MH_I2C_Read... [00:25:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:25:39]Read from MH i2c: E2 [00:25:39]MH_I2C_Read... [00:25:39]Read from MH i2c: E2 03 00 [00:25:39]MH_I2C_Read... [00:25:39]Read from MH i2c: E2 03 00 D5 03 00 90 00 4C [00:25:39]RAPDU: 90 00 [00:25:39]wFMCommunicate OK [00:25:39]wFMCommunicate request_size=255 [00:25:39]MH_SAM_APDU [00:25:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 83 9F 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F0 0F 01 00 35 04 06 00 FD [00:25:39]Write to MH i2c: E2 02 01 D6 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 83 9F 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F0 0F 01 00 35 04 06 00 FD 00 00 3D [00:25:39]Write i2c OK [00:25:39]MH_I2C_Read... [00:25:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:39]Read from MH i2c: E2 [00:25:39]MH_I2C_Read... [00:25:39]Read from MH i2c: E2 03 00 [00:25:39]MH_I2C_Read... [00:25:39]Read from MH i2c: E2 03 00 D6 03 00 90 00 4D [00:25:39]RAPDU: 90 00 [00:25:39]wFMCommunicate OK [00:25:39]wFMCommunicate request_size=10 [00:25:39]MH_SAM_APDU [00:25:39]CAPDU: 80 0D 02 02 05 4F FB 32 39 E7 [00:25:39]Write to MH i2c: E2 0D 00 D7 03 80 0D 02 02 05 00 4F FB 32 39 E7 00 00 FA [00:25:39]Write i2c OK [00:25:39]MH_I2C_Read... [00:25:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:39]Read from MH i2c: E2 [00:25:39]MH_I2C_Read... [00:25:39]Read from MH i2c: E2 03 00 [00:25:39]MH_I2C_Read... [00:25:39]Read from MH i2c: E2 03 00 D7 03 00 90 00 4E [00:25:39]RAPDU: 90 00 [00:25:39]wFMCommunicate OK [00:25:39]wFMCommunicate request_size=4 [00:25:39]MH_SAM_APDU [00:25:39]CAPDU: 80 0D 03 02 [00:25:39]Write to MH i2c: E2 08 00 D8 03 80 0D 03 02 00 00 00 00 56 [00:25:39]Write i2c OK [00:25:39]MH_I2C_Read... [00:25:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:25:39]Read from MH i2c: E2 [00:25:39]MH_I2C_Read... [00:25:39]Read from MH i2c: E2 0B 00 [00:25:39]MH_I2C_Read... [00:25:39]Read from MH i2c: E2 0B 00 D8 03 00 DF 9B 9D 9F 28 4F AD F7 90 00 28 [00:25:39]RAPDU: DF 9B 9D 9F 28 4F AD F7 90 00 [00:25:39]wFMCommunicate OK [00:25:39]SAM_PROTO_SignData done [00:25:39]FM_MakeSignedData done [00:25:39]CreateOFDProtocolMessage [00:25:39]wFMCommunicate request_size=4 [00:25:39]MH_SAM_APDU [00:25:39]CAPDU: 80 11 00 00 [00:25:39]Write to MH i2c: E2 08 00 D9 03 80 11 00 00 00 00 00 00 56 [00:25:39]Write i2c OK [00:25:39]MH_I2C_Read... [00:25:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:39]Read from MH i2c: E2 [00:25:39]MH_I2C_Read... [00:25:39]Read from MH i2c: E2 17 00 [00:25:39]MH_I2C_Read... [00:25:39]Read from MH i2c: E2 17 00 D9 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A8 [00:25:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:25:39]wFMCommunicate OK [00:25:39]CreateOFDProtocolMessage done [00:25:39]OFDSenderStorePacket 69616 [00:25:39]StoreOFDPacket docnum=69616 [00:25:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 12 13 07 01 F8 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 83 9F 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F0 0F 01 00 35 04 06 00 FD 4F FB 32 39 E7 DF 9B 9D 9F 28 4F AD F7 [00:25:39]CheckFolder [00:25:39]dirname=/storage/ofd_packets [00:25:39]CheckFolder done [00:25:39]ProducePacketName [00:25:39]name=ofd_packets/00069616 [00:25:39]NVStorageSaveData ofd_packets/00069616 [00:25:39]File name is /storage/ofd_packets/00069616 [00:25:39]Write 301 bytes [00:25:39]NVStorageSaveData done [00:25:39]OFDSenderStorePacket done [00:25:39]KKMCreateOFDPacket done [00:25:39]NVStorageSaveData kkm_last_timestamp [00:25:39]File name is /storage/kkm_last_timestamp [00:25:39]Write 4 bytes [00:25:39]NVStorageSaveData done [00:25:39]ExternCall_PrintAddStr [00:25:39]wPrintStart [00:25:39]Write to MH i2c: 01 00 00 DA 03 DD [00:25:39]OFD Sender: Processing packet 69616 [packets to send 18, broken 17] [00:25:39]ProducePacketName [00:25:39]name=ofd_packets/00069616 [00:25:39]OFD Sender: To server: pG, [00:25:39]CommunicateWithHost lk.salyk.kg:30040 [00:25:40]ConnectInit lk.salyk.kg [00:25:40]Write i2c OK [00:25:40]MH_I2C_Read... [00:25:40]Read from MH i2c: 01 [00:25:40]MH_I2C_Read... [00:25:40]Read from MH i2c: 01 07 00 [00:25:40]MH_I2C_Read... [00:25:40]Read from MH i2c: 01 07 00 DA 03 00 00 00 00 00 FF 0F F2 [00:25:40]RasterBufferAndPrint [00:25:40]line Счет N : (1)2885353 [00:25:40]line ИНН: 02508201610067 [00:25:40]line Контрольно-Кассовый Чек [00:25:40]line ПРОДАЖА [00:25:40]line ТРК (МРК, ГНК) : 12 [00:25:40]line Товар: 2710124130 [00:25:40]line Аи-92-К-5 [00:25:40]line 7.480 * 66.90 [00:25:40]line = 500.41 [00:25:40]line НДС 12% НСП 1% [00:25:40]line > о реализуемом товаре [00:25:40]line ОКРУГЛЕНИЕ: -0.41 [00:25:40]line ИТОГО: 500.00 [00:25:40]line Внесено: 500.00 [00:25:40]line СДАЧА: 0.00 [00:25:40]line НСП 1% : 4.43 [00:25:40]line НДС 12% : 53.14 [00:25:40]line Наличными: 500.00 [00:25:40]line Безнал.: 0.00 [00:25:40]line Место: АЗС № 85 "Партнер Нефть" [00:25:40]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [00:25:40]line СНО: Общий режим [00:25:40]line Чек 6 21.10.2024 00:25 [00:25:40]line Смена: 194 ФФД: 1.0 [00:25:40]line ЗНМ: 0300000167 [00:25:40]line РНМ: 0000000000156251 [00:25:40]line Версия ККМ: v1.0 [00:25:40]line ФМ: 0000000000963346 [00:25:40]line ФД: 69616 [00:25:40]line ФПД: 278519958616551 [00:25:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T002539&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69616&fm=278519958616551&tin=02508201610067®Number=0000000000156251&sum=50000 [00:25:40]Connected sock=10 [00:25:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 12 13 07 01 F8 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 83 9F 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F0 0F 01 00 35 04 06 00 FD 4F FB 32 39 E7 DF 9B 9D 9F 28 4F AD F7 [00:25:40]written 0, free lines is 4095 [00:25:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 44 4F 47 00 84 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F0 0F 01 00 F4 03 04 00 28 49 15 67 B6 04 01 00 00 F6 C8 DB 8D C0 1C B1 4C [00:25:40]CommunicateWithHost err = 0 [00:25:40]CheckOFDResponse [00:25:40]1017 (14) - 77093643461234 [00:25:40]1041 (16) - 0000000000963346 [00:25:40]1040 (4) - 69616 [00:25:40]1012 (4) - 20.10.2024 18:17 [00:25:40]1206 (1) - 0 [00:25:40]OFD Sender: Remove packet 69616 [00:25:40]ProducePacketName [00:25:40]name=ofd_packets/00069616 [00:25:40]NVStorageDeleteData [00:25:40]Write to MH i2c: 01 00 00 05 04 09 [00:25:40]Write i2c OK [00:25:40]MH_I2C_Read... [00:25:40]Read from MH i2c: 01 [00:25:40]MH_I2C_Read... [00:25:40]Read from MH i2c: 01 07 00 [00:25:40]MH_I2C_Read... [00:25:40]Read from MH i2c: 01 07 00 05 04 00 00 00 00 00 E2 0C FE [00:25:40]RasterBufferAndPrint [00:25:40]line [00:25:40]line [00:25:40]line [00:25:40]line [00:25:40]line [00:25:40]written 0, free lines is 3304 [00:25:40]MH_Cut [00:25:40]Write to MH i2c: D1 01 00 0C 04 01 E2 [00:25:40]Write i2c OK [00:25:40]MH_I2C_Read... [00:25:40]Read from MH i2c: D1 [00:25:40]MH_I2C_Read... [00:25:40]Read from MH i2c: D1 01 00 [00:25:40]MH_I2C_Read... [00:25:40]Read from MH i2c: D1 01 00 0C 04 00 E1 [00:25:40]Write to MH i2c: 01 00 00 0D 04 11 [00:25:40]Write i2c OK [00:25:40]MH_I2C_Read... [00:25:41]OFD Sender: No OFD packet to send [00:25:41]*** Cut start [00:25:41]*** Partial cut [00:25:41]*** CUTSNS_PIN = 1 [00:25:41]*** CUTSNS_PIN = 0 [00:25:41]*** Brake cut motor [00:25:42]Read from MH i2c: 01 [00:25:42]MH_I2C_Read... [00:25:42]*** Stop cut motor [00:25:42]*** Cut end [00:25:42]Read from MH i2c: 01 07 00 [00:25:42]MH_I2C_Read... [00:25:42]Read from MH i2c: 01 07 00 0D 04 00 00 00 00 00 FF 0F 26 [00:25:42]process_action close_receipt done [00:25:42]requested_data is exist [00:25:42]produce_requested_data [00:25:42]requested_item fm.sn is exist - process it [00:25:42]wFMCommunicate request_size=4 [00:25:42]MH_SAM_APDU [00:25:42]CAPDU: 80 11 00 00 [00:25:42]Write to MH i2c: E2 08 00 0E 04 80 11 00 00 00 00 00 00 8C [00:25:42]Write i2c OK [00:25:42]MH_I2C_Read... [00:25:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:42]Read from MH i2c: E2 [00:25:42]MH_I2C_Read... [00:25:42]Read from MH i2c: E2 17 00 [00:25:42]MH_I2C_Read... [00:25:42]Read from MH i2c: E2 17 00 0E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DE [00:25:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:25:42]wFMCommunicate OK [00:25:42]requested_item fd.num is exist - process it [00:25:42]SAM_PROTO_GetFieldsCounters [00:25:42]wFMCommunicate request_size=4 [00:25:42]MH_SAM_APDU [00:25:42]CAPDU: 80 13 00 00 [00:25:42]Write to MH i2c: E2 08 00 0F 04 80 13 00 00 00 00 00 00 8F [00:25:42]Write i2c OK [00:25:42]MH_I2C_Read... [00:25:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:25:42]Read from MH i2c: E2 [00:25:42]MH_I2C_Read... [00:25:42]Read from MH i2c: E2 62 00 [00:25:42]MH_I2C_Read... [00:25:42]Read from MH i2c: E2 62 00 0F 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F0 0F 01 00 0E 04 04 00 C2 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 7E [00:25:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F0 0F 01 00 0E 04 04 00 C2 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 [00:25:42]wFMCommunicate OK [00:25:42]SAM_PROTO_GetFieldsCounters done [00:25:42]requested_item shift.num is exist - process it [00:25:42]requested_item shift.opened is exist - process it [00:25:42]req_shift_opened [00:25:42]FM_GetShiftState [00:25:42]SAM_PROTO_GetShiftState [00:25:42]wFMCommunicate request_size=4 [00:25:42]MH_SAM_APDU [00:25:42]CAPDU: 80 13 01 00 [00:25:42]Write to MH i2c: E2 08 00 10 04 80 13 01 00 00 00 00 00 91 [00:25:42]Write i2c OK [00:25:42]MH_I2C_Read... [00:25:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:42]Read from MH i2c: E2 [00:25:42]MH_I2C_Read... [00:25:42]Read from MH i2c: E2 0E 00 [00:25:42]MH_I2C_Read... [00:25:42]Read from MH i2c: E2 0E 00 10 04 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 BD [00:25:42]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [00:25:42]wFMCommunicate OK [00:25:42]SAM_PROTO_GetShiftState done [00:25:42]FM_GetShiftState done [00:25:42]req_shift_opened done [00:25:42]requested_item shift.open_date is exist - process it [00:25:42]req_shift_open_date [00:25:42]req_shift_open_date done [00:25:42]produce_requested_data done [00:25:42]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69616,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [00:25:42]process_action_free close_receipt [00:25:42]json_value_free [00:25:42]json_value_free done [00:25:42]process_json_proto returns [00:25:42]Send response to host [00:25:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69616,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [00:25:42]free response buf [00:25:42]execute_script done [00:25:42]execute_script returns [00:25:42]free content buf [00:25:42]Sock 8.Close socket [00:25:42]Sock 8.Thread stoped [00:25:46]OFD Sender: No OFD packet to send [00:25:51]OFD Sender: No OFD packet to send [00:25:56]OFD Sender: No OFD packet to send [00:26:01]OFD Sender: No OFD packet to send [00:26:06]OFD Sender: No OFD packet to send [00:26:11]OFD Sender: No OFD packet to send [00:26:16]OFD Sender: No OFD packet to send [00:26:21]OFD Sender: No OFD packet to send [00:26:26]OFD Sender: No OFD packet to send [00:26:31]OFD Sender: No OFD packet to send [00:26:36]OFD Sender: No OFD packet to send [00:26:41]OFD Sender: No OFD packet to send [00:26:46]OFD Sender: No OFD packet to send [00:26:51]OFD Sender: No OFD packet to send [00:26:56]OFD Sender: No OFD packet to send [00:27:01]OFD Sender: No OFD packet to send [00:27:06]OFD Sender: No OFD packet to send [00:27:11]OFD Sender: No OFD packet to send [00:27:16]OFD Sender: No OFD packet to send [00:27:21]OFD Sender: No OFD packet to send [00:27:26]OFD Sender: No OFD packet to send [00:27:31]OFD Sender: No OFD packet to send [00:27:36]OFD Sender: No OFD packet to send [00:27:41]OFD Sender: No OFD packet to send [00:27:41]accept exits with 9 [00:27:41]New connection [00:27:41]New thread 3067313508 created [00:27:41]Thread 3067456868 joined [00:27:41]Waiting for new connection... [00:27:41] Sock 9.Parse request [00:27:41]Sock 9.Check first char [00:27:41]Sock 9.First char is OK [00:27:41]request: POST /json_proto HTTP/1.0 [00:27:41]Method: POST [00:27:41]URL: /json_proto [00:27:41]Method is POST - this is cgi request [00:27:41]url: /json_proto [00:27:41]query_string will be loaded in cgi processing [00:27:41]execute_cgi json_proto POST (null) [00:27:41]execute_cgi path=json_proto method=POST [00:27:41]POST find Content-Length [00:27:41]Host: 172.17.50.3:8080 [00:27:41]Content-Length: 678 [00:27:41]Content-Type: application/json [00:27:41] [00:27:41]POST finish read [00:27:41]Found Content-Length = 678 [00:27:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:41]execute_script... [00:27: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)2885354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:41]POST & json_proto [00:27:41]process_json_proto [00:27:41]json parsed OK: [00:27:41]protocol is kg_v1.0 [00:27:41]action value=close_receipt [00:27:41]process_action close_receipt [00:27:41]cmd_close_receipt [00:27:41]MH_GetDate [00:27:41]Write to MH i2c: F0 00 00 11 04 04 [00:27:41]Write i2c OK [00:27:41]MH_I2C_Read... [00:27:41]Read from MH i2c: F0 [00:27:41]MH_I2C_Read... [00:27:41]Read from MH i2c: F0 09 00 [00:27:41]MH_I2C_Read... [00:27:41]Read from MH i2c: F0 09 00 11 04 00 FE 9F 15 67 6B 98 1E 66 AD [00:27:41]GetLastDocTimeStamp 1729470339 [00:27:41]current date 1729470462 [00:27:41]FM_GetShiftState [00:27:41]SAM_PROTO_GetShiftState [00:27:41]wFMCommunicate request_size=4 [00:27:41]MH_SAM_APDU [00:27:41]CAPDU: 80 13 01 00 [00:27:41]Write to MH i2c: E2 08 00 12 04 80 13 01 00 00 00 00 00 93 [00:27:41]Write i2c OK [00:27:41]MH_I2C_Read... [00:27:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:41]Read from MH i2c: E2 [00:27:41]MH_I2C_Read... [00:27:41]Read from MH i2c: E2 0E 00 [00:27:41]MH_I2C_Read... [00:27:41]Read from MH i2c: E2 0E 00 12 04 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 BF [00:27:41]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [00:27:41]wFMCommunicate OK [00:27:41]SAM_PROTO_GetShiftState done [00:27:41]FM_GetShiftState done [00:27:41]opened in 1729469703 [00:27:41]opened+sec_in_day 1729556103 [00:27:41]quantity*price = 50041 [00:27:41]sum+1 = 50042 [00:27:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 7 21.10.2024 00:27 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69617 ФПД: 93225625105761 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T002742&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69617&fm=93225625105761&tin=02508201610067®Number=0000000000156251&sum=50000 [00:27:42]StoreToDocumentArchive [00:27:42]shift 194 fd 69617 [00:27:42]save to /storage/0194/doc_00069617 [00:27:42]save last doc name /storage/0194/doc_00069617 to /storage/kkm_last_doc_name [00:27:42]save OK [00:27:42]Clear old archive folders... [00:27:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:27:42]tlvbuf is 00C37390 [00:27:42]SAM_PROTO_ClearQueue [00:27:42]wFMCommunicate request_size=4 [00:27:42]MH_SAM_APDU [00:27:42]CAPDU: 80 09 00 00 [00:27:42]Write to MH i2c: E2 08 00 1F 04 80 09 00 00 00 00 00 00 95 [00:27:42]Write i2c OK [00:27:42]MH_I2C_Read... [00:27:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:27:42]Read from MH i2c: E2 [00:27:42]MH_I2C_Read... [00:27:42]Read from MH i2c: E2 03 00 [00:27:42]MH_I2C_Read... [00:27:42]Read from MH i2c: E2 03 00 1F 04 00 90 00 97 [00:27:42]RAPDU: 90 00 [00:27:42]wFMCommunicate OK [00:27:42]SAM_PROTO_ClearQueue done [00:27:42]KKMCreateOFDPacket [00:27:42]OFDProtocolAddRootSTLVToBuf [00:27:42]FM_MakeSignedData [00:27:42]FM_MakeSignedData [00:27:42]SAM_PROTO_SignData [00:27:42]wFMCommunicate request_size=4 [00:27:42]MH_SAM_APDU [00:27:42]CAPDU: 80 0D 01 02 [00:27:42]Write to MH i2c: E2 08 00 20 04 80 0D 01 02 00 00 00 00 9D [00:27:42]Write i2c OK [00:27:42]MH_I2C_Read... [00:27:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:27:42]Read from MH i2c: E2 [00:27:42]MH_I2C_Read... [00:27:42]Read from MH i2c: E2 03 00 [00:27:42]MH_I2C_Read... [00:27:42]Read from MH i2c: E2 03 00 20 04 00 90 00 98 [00:27:42]RAPDU: 90 00 [00:27:42]wFMCommunicate OK [00:27:42]wFMCommunicate request_size=255 [00:27:42]MH_SAM_APDU [00:27: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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 FE 9F 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F1 0F 01 00 35 04 06 00 54 [00:27:42]Write to MH i2c: E2 02 01 21 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 FE 9F 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F1 0F 01 00 35 04 06 00 54 00 00 5D [00:27:42]Write i2c OK [00:27:42]MH_I2C_Read... [00:27:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:42]Read from MH i2c: E2 [00:27:42]MH_I2C_Read... [00:27:42]Read from MH i2c: E2 03 00 [00:27:42]MH_I2C_Read... [00:27:42]Read from MH i2c: E2 03 00 21 04 00 90 00 99 [00:27:42]RAPDU: 90 00 [00:27:42]wFMCommunicate OK [00:27:42]wFMCommunicate request_size=10 [00:27:42]MH_SAM_APDU [00:27:42]CAPDU: 80 0D 02 02 05 C9 C8 44 B5 61 [00:27:42]Write to MH i2c: E2 0D 00 22 04 80 0D 02 02 05 00 C9 C8 44 B5 61 00 00 95 [00:27:42]Write i2c OK [00:27:42]MH_I2C_Read... [00:27:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:42]Read from MH i2c: E2 [00:27:42]MH_I2C_Read... [00:27:42]Read from MH i2c: E2 03 00 [00:27:42]MH_I2C_Read... [00:27:42]Read from MH i2c: E2 03 00 22 04 00 90 00 9A [00:27:42]RAPDU: 90 00 [00:27:42]wFMCommunicate OK [00:27:42]wFMCommunicate request_size=4 [00:27:42]MH_SAM_APDU [00:27:42]CAPDU: 80 0D 03 02 [00:27:42]Write to MH i2c: E2 08 00 23 04 80 0D 03 02 00 00 00 00 A2 [00:27:42]Write i2c OK [00:27:42]MH_I2C_Read... [00:27:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:27:42]Read from MH i2c: E2 [00:27:42]MH_I2C_Read... [00:27:42]Read from MH i2c: E2 0B 00 [00:27:42]MH_I2C_Read... [00:27:42]Read from MH i2c: E2 0B 00 23 04 00 C2 30 FC 71 AB 49 11 D5 90 00 DC [00:27:42]RAPDU: C2 30 FC 71 AB 49 11 D5 90 00 [00:27:42]wFMCommunicate OK [00:27:42]SAM_PROTO_SignData done [00:27:42]FM_MakeSignedData done [00:27:42]CreateOFDProtocolMessage [00:27:42]wFMCommunicate request_size=4 [00:27:42]MH_SAM_APDU [00:27:42]CAPDU: 80 11 00 00 [00:27:42]Write to MH i2c: E2 08 00 24 04 80 11 00 00 00 00 00 00 A2 [00:27:42]Write i2c OK [00:27:42]MH_I2C_Read... [00:27:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:42]Read from MH i2c: E2 [00:27:42]MH_I2C_Read... [00:27:42]Read from MH i2c: E2 17 00 [00:27:42]MH_I2C_Read... [00:27:42]Read from MH i2c: E2 17 00 24 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F4 [00:27:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:27:42]wFMCommunicate OK [00:27:42]CreateOFDProtocolMessage done [00:27:42]OFDSenderStorePacket 69617 [00:27:42]StoreOFDPacket docnum=69617 [00:27:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 AE 59 07 01 44 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 FE 9F 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F1 0F 01 00 35 04 06 00 54 C9 C8 44 B5 61 C2 30 FC 71 AB 49 11 D5 [00:27:42]CheckFolder [00:27:42]dirname=/storage/ofd_packets [00:27:42]CheckFolder done [00:27:42]ProducePacketName [00:27:42]name=ofd_packets/00069617 [00:27:42]NVStorageSaveData ofd_packets/00069617 [00:27:42]File name is /storage/ofd_packets/00069617 [00:27:42]Write 301 bytes [00:27:42]NVStorageSaveData done [00:27:42]OFDSenderStorePacket done [00:27:42]KKMCreateOFDPacket done [00:27:42]NVStorageSaveData kkm_last_timestamp [00:27:42]File name is /storage/kkm_last_timestamp [00:27:42]Write 4 bytes [00:27:42]NVStorageSaveData done [00:27:42]ExternCall_PrintAddStr [00:27:42]wPrintStart [00:27:42]Write to MH i2c: 01 00 00 25 04 29 [00:27:42]Write i2c OK [00:27:42]MH_I2C_Read... [00:27:42]Read from MH i2c: 01 [00:27:42]MH_I2C_Read... [00:27:42]Read from MH i2c: 01 07 00 [00:27:42]MH_I2C_Read... [00:27:42]Read from MH i2c: 01 07 00 25 04 00 00 00 00 00 FF 0F 3E [00:27:42]RasterBufferAndPrint [00:27:42]line Счет N : (1)2885354 [00:27:42]line ИНН: 02508201610067 [00:27:42]line Контрольно-Кассовый Чек [00:27:42]line ПРОДАЖА [00:27:42]line ТРК (МРК, ГНК) : 42 [00:27:42]line Товар: 2710124130 [00:27:42]line Аи-92-К-5 [00:27:42]line 7.480 * 66.90 [00:27:42]line = 500.41 [00:27:42]line НДС 12% НСП 1% [00:27:42]line > о реализуемом товаре [00:27:42]line ОКРУГЛЕНИЕ: -0.41 [00:27:42]line ИТОГО: 500.00 [00:27:42]line Внесено: 500.00 [00:27:42]line СДАЧА: 0.00 [00:27:42]line НСП 1% : 4.43 [00:27:42]line НДС 12% : 53.14 [00:27:42]line Наличными: 500.00 [00:27:42]line Безнал.: 0.00 [00:27:42]line Место: АЗС № 85 "Партнер Нефть" [00:27:42]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [00:27:42]line СНО: Общий режим [00:27:42]line Чек 7 21.10.2024 00:27 [00:27:42]line Смена: 194 ФФД: 1.0 [00:27:42]line ЗНМ: 0300000167 [00:27:42]line РНМ: 0000000000156251 [00:27:42]line Версия ККМ: v1.0 [00:27:42]line ФМ: 0000000000963346 [00:27:42]line ФД: 69617 [00:27:42]line ФПД: 93225625105761 [00:27:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T002742&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69617&fm=93225625105761&tin=02508201610067®Number=0000000000156251&sum=50000 [00:27:43]OFD Sender: Processing packet 69617 [packets to send 18, broken 17] [00:27:43]ProducePacketName [00:27:43]name=ofd_packets/00069617 [00:27:43]OFD Sender: To server: pG, [00:27:43]CommunicateWithHost lk.salyk.kg:30040 [00:27:43]ConnectInit lk.salyk.kg [00:27:43]written 0, free lines is 4095 [00:27:43]Write to MH i2c: 01 00 00 50 04 54 [00:27:43]Write i2c OK [00:27:43]MH_I2C_Read... [00:27:43]Read from MH i2c: 01 [00:27:43]MH_I2C_Read... [00:27:43]Read from MH i2c: 01 07 00 [00:27:43]MH_I2C_Read... [00:27:43]Read from MH i2c: 01 07 00 50 04 00 00 00 00 00 D8 0C 3F [00:27:43]RasterBufferAndPrint [00:27:43]line [00:27:43]line [00:27:43]line [00:27:43]line [00:27:43]line [00:27:43]written 0, free lines is 3295 [00:27:43]MH_Cut [00:27:43]Write to MH i2c: D1 01 00 57 04 01 2D [00:27:43]Write i2c OK [00:27:43]MH_I2C_Read... [00:27:43]Read from MH i2c: D1 [00:27:43]MH_I2C_Read... [00:27:43]Read from MH i2c: D1 01 00 [00:27:43]MH_I2C_Read... [00:27:43]Read from MH i2c: D1 01 00 57 04 00 2C [00:27:43]Write to MH i2c: 01 00 00 58 04 5C [00:27:43]Write i2c OK [00:27:43]MH_I2C_Read... [00:27:44]*** Cut start [00:27:44]*** Partial cut [00:27:44]*** CUTSNS_PIN = 1 [00:27:44]*** CUTSNS_PIN = 0 [00:27:44]*** Brake cut motor [00:27:44]Read from MH i2c: 01 [00:27:44]MH_I2C_Read... [00:27:44]*** Stop cut motor [00:27:44]*** Cut end [00:27:44]Read from MH i2c: 01 07 00 [00:27:44]MH_I2C_Read... [00:27:44]Read from MH i2c: 01 07 00 58 04 00 00 00 00 00 FF 0F 71 [00:27:44]process_action close_receipt done [00:27:44]requested_data is exist [00:27:44]produce_requested_data [00:27:44]requested_item fm.sn is exist - process it [00:27:44]wFMCommunicate request_size=4 [00:27:44]MH_SAM_APDU [00:27:44]CAPDU: 80 11 00 00 [00:27:44]Write to MH i2c: E2 08 00 59 04 80 11 00 00 00 00 00 00 D7 [00:27:44]Write i2c OK [00:27:44]MH_I2C_Read... [00:27:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:44]Read from MH i2c: E2 [00:27:44]MH_I2C_Read... [00:27:44]Read from MH i2c: E2 17 00 [00:27:44]MH_I2C_Read... [00:27:44]Read from MH i2c: E2 17 00 59 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 29 [00:27:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:27:44]wFMCommunicate OK [00:27:44]requested_item fd.num is exist - process it [00:27:44]SAM_PROTO_GetFieldsCounters [00:27:44]wFMCommunicate request_size=4 [00:27:44]MH_SAM_APDU [00:27:44]CAPDU: 80 13 00 00 [00:27:44]Write to MH i2c: E2 08 00 5A 04 80 13 00 00 00 00 00 00 DA [00:27:44]Write i2c OK [00:27:44]MH_I2C_Read... [00:27:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:27:45]Read from MH i2c: E2 [00:27:45]MH_I2C_Read... [00:27:45]Read from MH i2c: E2 62 00 [00:27:45]MH_I2C_Read... [00:27:45]Read from MH i2c: E2 62 00 5A 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F1 0F 01 00 0E 04 04 00 C2 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 CD [00:27:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F1 0F 01 00 0E 04 04 00 C2 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 [00:27:45]wFMCommunicate OK [00:27:45]SAM_PROTO_GetFieldsCounters done [00:27:45]requested_item shift.num is exist - process it [00:27:45]requested_item shift.opened is exist - process it [00:27:45]req_shift_opened [00:27:45]FM_GetShiftState [00:27:45]SAM_PROTO_GetShiftState [00:27:45]wFMCommunicate request_size=4 [00:27:45]MH_SAM_APDU [00:27:45]CAPDU: 80 13 01 00 [00:27:45]Write to MH i2c: E2 08 00 5B 04 80 13 01 00 00 00 00 00 DC [00:27:45]Write i2c OK [00:27:45]MH_I2C_Read... [00:27:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:45]Read from MH i2c: E2 [00:27:45]MH_I2C_Read... [00:27:45]Read from MH i2c: E2 0E 00 [00:27:45]MH_I2C_Read... [00:27:45]Read from MH i2c: E2 0E 00 5B 04 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 08 [00:27:45]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [00:27:45]wFMCommunicate OK [00:27:45]SAM_PROTO_GetShiftState done [00:27:45]FM_GetShiftState done [00:27:45]req_shift_opened done [00:27:45]requested_item shift.open_date is exist - process it [00:27:45]req_shift_open_date [00:27:45]req_shift_open_date done [00:27:45]produce_requested_data done [00:27:45]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69617,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [00:27:45]process_action_free close_receipt [00:27:45]json_value_free [00:27:45]json_value_free done [00:27:45]process_json_proto returns [00:27:45]Send response to host [00:27:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69617,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [00:27:45]free response buf [00:27:45]execute_script done [00:27:45]execute_script returns [00:27:45]free content buf [00:27:45]Sock 9.Close socket [00:27:45]Sock 9.Thread stoped [00:29:53]ConnectInit Can't connect to host [00:29:53]CommunicateWithHost connect error [00:29:53]CommunicateWithHost err = -1 [00:29:53]OFD Sender: Server communicate error [00:29:58]OFD Sender: Processing packet 69617 [packets to send 18, broken 17] [00:29:58]ProducePacketName [00:29:58]name=ofd_packets/00069617 [00:29:58]OFD Sender: To server: pG, [00:29:58]CommunicateWithHost lk.salyk.kg:30040 [00:29:58]ConnectInit lk.salyk.kg [00:29:58]Connected sock=9 [00:29:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 AE 59 07 01 44 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 FE 9F 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F1 0F 01 00 35 04 06 00 54 C9 C8 44 B5 61 C2 30 FC 71 AB 49 11 D5 [00:29:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 30 3B 47 00 F2 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F1 0F 01 00 F4 03 04 00 2A 4A 15 67 B6 04 01 00 00 6D 64 FD 55 EA EE 5F 98 [00:29:58]CommunicateWithHost err = 0 [00:29:58]CheckOFDResponse [00:29:58]1017 (14) - 77093643461234 [00:29:58]1041 (16) - 0000000000963346 [00:29:58]1040 (4) - 69617 [00:29:58]1012 (4) - 20.10.2024 18:21 [00:29:58]1206 (1) - 0 [00:29:58]OFD Sender: Remove packet 69617 [00:29:58]ProducePacketName [00:29:58]name=ofd_packets/00069617 [00:29:58]NVStorageDeleteData [00:29:59]OFD Sender: No OFD packet to send [00:30:04]OFD Sender: No OFD packet to send [00:30:09]OFD Sender: No OFD packet to send [00:30:14]OFD Sender: No OFD packet to send [00:30:19]OFD Sender: No OFD packet to send [00:30:24]OFD Sender: No OFD packet to send [00:30:29]OFD Sender: No OFD packet to send [00:30:34]OFD Sender: No OFD packet to send [00:30:39]OFD Sender: No OFD packet to send [00:30:44]OFD Sender: No OFD packet to send [00:30:49]OFD Sender: No OFD packet to send [00:30:54]OFD Sender: No OFD packet to send [00:30:59]OFD Sender: No OFD packet to send [00:31:04]OFD Sender: No OFD packet to send [00:31:09]OFD Sender: No OFD packet to send [00:31:14]OFD Sender: No OFD packet to send [00:31:19]OFD Sender: No OFD packet to send [00:31:24]OFD Sender: No OFD packet to send [00:31:29]OFD Sender: No OFD packet to send [00:31:34]OFD Sender: No OFD packet to send [00:31:39]OFD Sender: No OFD packet to send [00:31:44]OFD Sender: No OFD packet to send [00:31:49]OFD Sender: No OFD packet to send [00:31:54]OFD Sender: No OFD packet to send [00:31:59]OFD Sender: No OFD packet to send [00:32:04]OFD Sender: No OFD packet to send [00:32:09]OFD Sender: No OFD packet to send [00:32:14]OFD Sender: No OFD packet to send [00:32:19]OFD Sender: No OFD packet to send [00:32:24]OFD Sender: No OFD packet to send [00:32:29]OFD Sender: No OFD packet to send [00:32:34]OFD Sender: No OFD packet to send [00:32:39]OFD Sender: No OFD packet to send [00:32:44]OFD Sender: No OFD packet to send [00:32:49]OFD Sender: No OFD packet to send [00:32:54]OFD Sender: No OFD packet to send [00:32:59]OFD Sender: No OFD packet to send [00:33:04]OFD Sender: No OFD packet to send [00:33:09]OFD Sender: No OFD packet to send [00:33:14]OFD Sender: No OFD packet to send [00:33:19]OFD Sender: No OFD packet to send [00:33:24]OFD Sender: No OFD packet to send [00:33:29]OFD Sender: No OFD packet to send [00:33:34]OFD Sender: No OFD packet to send [00:33:39]OFD Sender: No OFD packet to send [00:33:44]OFD Sender: No OFD packet to send [00:33:49]OFD Sender: No OFD packet to send [00:33:54]OFD Sender: No OFD packet to send [00:33:59]OFD Sender: No OFD packet to send [00:34:04]OFD Sender: No OFD packet to send [00:34:09]OFD Sender: No OFD packet to send [00:34:14]OFD Sender: No OFD packet to send [00:34:19]OFD Sender: No OFD packet to send [00:34:24]OFD Sender: No OFD packet to send [00:34:29]OFD Sender: No OFD packet to send [00:34:34]OFD Sender: No OFD packet to send [00:34:39]OFD Sender: No OFD packet to send [00:34:44]OFD Sender: No OFD packet to send [00:34:49]OFD Sender: No OFD packet to send [00:34:54]OFD Sender: No OFD packet to send [00:34:59]OFD Sender: No OFD packet to send [00:35:04]OFD Sender: No OFD packet to send [00:35:09]OFD Sender: No OFD packet to send [00:35:14]OFD Sender: No OFD packet to send [00:35:18]accept exits with 8 [00:35:18]New connection [00:35:18]New thread 3067456868 created [00:35:18]Thread 3067313508 joined [00:35:18]Waiting for new connection... [00:35:18] Sock 8.Parse request [00:35:18]Sock 8.Check first char [00:35:18]Sock 8.First char is OK [00:35:18]request: POST /json_proto HTTP/1.0 [00:35:18]Method: POST [00:35:18]URL: /json_proto [00:35:18]Method is POST - this is cgi request [00:35:18]url: /json_proto [00:35:18]query_string will be loaded in cgi processing [00:35:18]execute_cgi json_proto POST (null) [00:35:18]execute_cgi path=json_proto method=POST [00:35:18]POST find Content-Length [00:35:18]Host: 172.17.50.3:8080 [00:35:18]Content-Length: 767 [00:35:18]Content-Type: application/json [00:35:18] [00:35:18]POST finish read [00:35:18]Found Content-Length = 767 [00:35:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:35:18]execute_script... [00:35:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:35:18]POST & json_proto [00:35:18]process_json_proto [00:35:18]json parsed OK: [00:35:18]protocol is kg_v1.0 [00:35:18]action value=close_receipt [00:35:18]process_action close_receipt [00:35:18]cmd_close_receipt [00:35:18]MH_GetDate [00:35:18]Write to MH i2c: F0 00 00 5C 04 4F [00:35:18]Write i2c OK [00:35:18]MH_I2C_Read... [00:35:18]Read from MH i2c: F0 [00:35:18]MH_I2C_Read... [00:35:18]Read from MH i2c: F0 09 00 [00:35:18]MH_I2C_Read... [00:35:18]Read from MH i2c: F0 09 00 5C 04 00 C7 A1 15 67 6B 98 1E 66 C3 [00:35:18]GetLastDocTimeStamp 1729470462 [00:35:18]current date 1729470919 [00:35:18]FM_GetShiftState [00:35:18]SAM_PROTO_GetShiftState [00:35:18]wFMCommunicate request_size=4 [00:35:18]MH_SAM_APDU [00:35:18]CAPDU: 80 13 01 00 [00:35:18]Write to MH i2c: E2 08 00 5D 04 80 13 01 00 00 00 00 00 DE [00:35:18]Write i2c OK [00:35:18]MH_I2C_Read... [00:35:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:18]Read from MH i2c: E2 [00:35:18]MH_I2C_Read... [00:35:18]Read from MH i2c: E2 0E 00 [00:35:18]MH_I2C_Read... [00:35:18]Read from MH i2c: E2 0E 00 5D 04 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 0A [00:35:18]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [00:35:18]wFMCommunicate OK [00:35:18]SAM_PROTO_GetShiftState done [00:35:18]FM_GetShiftState done [00:35:18]opened in 1729469703 [00:35:18]opened+sec_in_day 1729556103 [00:35:18]quantity*price = 50041 [00:35:18]sum+1 = 50042 [00:35:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 8 21.10.2024 00:35 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69618 ФПД: 131385007919376 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T003519&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69618&fm=131385007919376&tin=02508201610067®Number=0000000000156251&sum=50041 [00:35:20]StoreToDocumentArchive [00:35:20]shift 194 fd 69618 [00:35:20]save to /storage/0194/doc_00069618 [00:35:20]save last doc name /storage/0194/doc_00069618 to /storage/kkm_last_doc_name [00:35:20]save OK [00:35:20]Clear old archive folders... [00:35:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:35:20]tlvbuf is 00C21530 [00:35:20]SAM_PROTO_ClearQueue [00:35:20]wFMCommunicate request_size=4 [00:35:20]MH_SAM_APDU [00:35:20]CAPDU: 80 09 00 00 [00:35:20]Write to MH i2c: E2 08 00 6A 04 80 09 00 00 00 00 00 00 E0 [00:35:20]Write i2c OK [00:35:20]MH_I2C_Read... [00:35:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:35:20]Read from MH i2c: E2 [00:35:20]MH_I2C_Read... [00:35:20]Read from MH i2c: E2 03 00 [00:35:20]MH_I2C_Read... [00:35:20]Read from MH i2c: E2 03 00 6A 04 00 90 00 E2 [00:35:20]RAPDU: 90 00 [00:35:20]wFMCommunicate OK [00:35:20]SAM_PROTO_ClearQueue done [00:35:20]KKMCreateOFDPacket [00:35:20]OFDProtocolAddRootSTLVToBuf [00:35:20]FM_MakeSignedData [00:35:20]FM_MakeSignedData [00:35:20]SAM_PROTO_SignData [00:35:20]wFMCommunicate request_size=4 [00:35:20]MH_SAM_APDU [00:35:20]CAPDU: 80 0D 01 02 [00:35:20]Write to MH i2c: E2 08 00 6B 04 80 0D 01 02 00 00 00 00 E8 [00:35:20]Write i2c OK [00:35:20]MH_I2C_Read... [00:35:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:35:20]Read from MH i2c: E2 [00:35:20]MH_I2C_Read... [00:35:20]Read from MH i2c: E2 03 00 [00:35:20]MH_I2C_Read... [00:35:20]Read from MH i2c: E2 03 00 6B 04 00 90 00 E3 [00:35:20]RAPDU: 90 00 [00:35:20]wFMCommunicate OK [00:35:20]wFMCommunicate request_size=255 [00:35:20]MH_SAM_APDU [00:35:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 C7 A1 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F2 0F 01 00 35 04 06 00 77 [00:35:20]Write to MH i2c: E2 02 01 6C 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 C7 A1 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F2 0F 01 00 35 04 06 00 77 00 00 EA [00:35:20]Write i2c OK [00:35:20]MH_I2C_Read... [00:35:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:35:20]Read from MH i2c: E2 [00:35:20]MH_I2C_Read... [00:35:20]Read from MH i2c: E2 03 00 [00:35:20]MH_I2C_Read... [00:35:20]Read from MH i2c: E2 03 00 6C 04 00 90 00 E4 [00:35:20]RAPDU: 90 00 [00:35:20]wFMCommunicate OK [00:35:20]wFMCommunicate request_size=10 [00:35:20]MH_SAM_APDU [00:35:20]CAPDU: 80 0D 02 02 05 7E 74 B9 D1 10 [00:35:20]Write to MH i2c: E2 0D 00 6D 04 80 0D 02 02 05 00 7E 74 B9 D1 10 00 00 81 [00:35:20]Write i2c OK [00:35:20]MH_I2C_Read... [00:35:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:35:20]Read from MH i2c: E2 [00:35:20]MH_I2C_Read... [00:35:20]Read from MH i2c: E2 03 00 [00:35:20]MH_I2C_Read... [00:35:20]Read from MH i2c: E2 03 00 6D 04 00 90 00 E5 [00:35:20]RAPDU: 90 00 [00:35:20]wFMCommunicate OK [00:35:20]wFMCommunicate request_size=4 [00:35:20]MH_SAM_APDU [00:35:20]CAPDU: 80 0D 03 02 [00:35:20]Write to MH i2c: E2 08 00 6E 04 80 0D 03 02 00 00 00 00 ED [00:35:20]Write i2c OK [00:35:20]MH_I2C_Read... [00:35:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:35:20]Read from MH i2c: E2 [00:35:20]MH_I2C_Read... [00:35:20]Read from MH i2c: E2 0B 00 [00:35:20]MH_I2C_Read... [00:35:20]Read from MH i2c: E2 0B 00 6E 04 00 7A 4F 53 CD 67 E9 35 46 90 00 A2 [00:35:20]RAPDU: 7A 4F 53 CD 67 E9 35 46 90 00 [00:35:20]wFMCommunicate OK [00:35:20]SAM_PROTO_SignData done [00:35:20]FM_MakeSignedData done [00:35:20]CreateOFDProtocolMessage [00:35:20]wFMCommunicate request_size=4 [00:35:20]MH_SAM_APDU [00:35:20]CAPDU: 80 11 00 00 [00:35:20]Write to MH i2c: E2 08 00 6F 04 80 11 00 00 00 00 00 00 ED [00:35:20]Write i2c OK [00:35:20]MH_I2C_Read... [00:35:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:35:20]Read from MH i2c: E2 [00:35:20]MH_I2C_Read... [00:35:20]Read from MH i2c: E2 17 00 [00:35:20]MH_I2C_Read... [00:35:20]Read from MH i2c: E2 17 00 6F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 3F [00:35:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:35:20]wFMCommunicate OK [00:35:20]CreateOFDProtocolMessage done [00:35:20]OFDSenderStorePacket 69618 [00:35:20]StoreOFDPacket docnum=69618 [00:35:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 5B DE 07 01 39 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 C7 A1 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F2 0F 01 00 35 04 06 00 77 7E 74 B9 D1 10 7A 4F 53 CD 67 E9 35 46 [00:35:20]CheckFolder [00:35:20]dirname=/storage/ofd_packets [00:35:20]CheckFolder done [00:35:20]ProducePacketName [00:35:20]name=ofd_packets/00069618 [00:35:20]NVStorageSaveData ofd_packets/00069618 [00:35:20]File name is /storage/ofd_packets/00069618 [00:35:20]Write 301 bytes [00:35:20]NVStorageSaveData done [00:35:20]OFDSenderStorePacket done [00:35:20]KKMCreateOFDPacket done [00:35:20]NVStorageSaveData kkm_last_timestamp [00:35:20]File name is /storage/kkm_last_timestamp [00:35:20]Write 4 bytes [00:35:20]NVStorageSaveData done [00:35:20]ExternCall_PrintAddStr [00:35:20]wPrintStart [00:35:20]Write to MH i2c: 01 00 00 70 04 74 [00:35:20]Write i2c OK [00:35:20]MH_I2C_Read... [00:35:20]Read from MH i2c: 01 [00:35:20]MH_I2C_Read... [00:35:20]Read from MH i2c: 01 07 00 [00:35:20]MH_I2C_Read... [00:35:20]Read from MH i2c: 01 07 00 70 04 00 00 00 00 00 FF 0F 89 [00:35:20]RasterBufferAndPrint [00:35:20]line Счет N : (1)2885355 [00:35:20]line ИНН: 02508201610067 [00:35:20]line Контрольно-Кассовый Чек [00:35:20]line ПРОДАЖА [00:35:20]line ТРК (МРК, ГНК) : 32 [00:35:20]line Товар: 2710124130 [00:35:20]line Аи-92-К-5 [00:35:20]line 7.480 * 66.90 [00:35:20]line = 500.41 [00:35:20]line НДС 12% НСП 1% [00:35:20]line > о реализуемом товаре [00:35:20]line ИТОГО: 500.41 [00:35:20]line НСП 1% : 4.43 [00:35:20]line НДС 12% : 53.14 [00:35:20]line Наличными: 0.00 [00:35:20]line Безнал.: 500.41 [00:35:20]line Место: АЗС № 85 "Партнер Нефть" [00:35:20]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [00:35:20]line СНО: Общий режим [00:35:20]line Чек 8 21.10.2024 00:35 [00:35:20]line Смена: 194 ФФД: 1.0 [00:35:20]line ЗНМ: 0300000167 [00:35:20]line РНМ: 0000000000156251 [00:35:20]line Версия ККМ: v1.0 [00:35:20]line Платежная система: Mbank [00:35:20]line ФМ: 0000000000963346 [00:35:20]line ФД: 69618 [00:35:20]line ФПД: 131385007919376 [00:35:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T003519&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69618&fm=131385007919376&tin=02508201610067®Number=0000000000156251&sum=50041 [00:35:20]OFD Sender: Processing packet 69618 [packets to send 18, broken 17] [00:35:20]ProducePacketName [00:35:20]name=ofd_packets/00069618 [00:35:20]OFD Sender: To server: pG, [00:35:20]CommunicateWithHost lk.salyk.kg:30040 [00:35:20]ConnectInit lk.salyk.kg [00:35:20]written 0, free lines is 4095 [00:35:21]Connected sock=10 [00:35:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 5B DE 07 01 39 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 C7 A1 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F2 0F 01 00 35 04 06 00 77 7E 74 B9 D1 10 7A 4F 53 CD 67 E9 35 46 [00:35:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 06 86 47 00 C3 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F2 0F 01 00 F4 03 04 00 6D 4B 15 67 B6 04 01 00 00 E8 64 43 CB A7 3B C4 4B [00:35:21]CommunicateWithHost err = 0 [00:35:21]CheckOFDResponse [00:35:21]1017 (14) - 77093643461234 [00:35:21]1041 (16) - 0000000000963346 [00:35:21]1040 (4) - 69618 [00:35:21]1012 (4) - 20.10.2024 18:26 [00:35:21]1206 (1) - 0 [00:35:21]OFD Sender: Remove packet 69618 [00:35:21]ProducePacketName [00:35:21]name=ofd_packets/00069618 [00:35:21]NVStorageDeleteData [00:35:21]Write to MH i2c: 01 00 00 99 04 9D [00:35:21]Write i2c OK [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: 01 [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: 01 07 00 [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: 01 07 00 99 04 00 00 00 00 00 0E 0D BF [00:35:21]RasterBufferAndPrint [00:35:21]line [00:35:21]line [00:35:21]line [00:35:21]line [00:35:21]line [00:35:21]written 0, free lines is 3348 [00:35:21]MH_Cut [00:35:21]Write to MH i2c: D1 01 00 A0 04 01 76 [00:35:21]Write i2c OK [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: D1 [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: D1 01 00 [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: D1 01 00 A0 04 00 75 [00:35:21]Write to MH i2c: 01 00 00 A1 04 A5 [00:35:21]Write i2c OK [00:35:21]MH_I2C_Read... [00:35:21]OFD Sender: No OFD packet to send [00:35:22]*** Cut start [00:35:22]*** Partial cut [00:35:22]*** CUTSNS_PIN = 1 [00:35:22]*** CUTSNS_PIN = 0 [00:35:22]*** Brake cut motor [00:35:22]Read from MH i2c: 01 [00:35:22]MH_I2C_Read... [00:35:22]*** Stop cut motor [00:35:22]*** Cut end [00:35:22]Read from MH i2c: 01 07 00 [00:35:22]MH_I2C_Read... [00:35:22]Read from MH i2c: 01 07 00 A1 04 00 00 00 00 00 FF 0F BA [00:35:22]process_action close_receipt done [00:35:22]requested_data is exist [00:35:22]produce_requested_data [00:35:22]requested_item fm.sn is exist - process it [00:35:22]wFMCommunicate request_size=4 [00:35:22]MH_SAM_APDU [00:35:22]CAPDU: 80 11 00 00 [00:35:22]Write to MH i2c: E2 08 00 A2 04 80 11 00 00 00 00 00 00 20 [00:35:22]Write i2c OK [00:35:22]MH_I2C_Read... [00:35:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:35:22]Read from MH i2c: E2 [00:35:22]MH_I2C_Read... [00:35:22]Read from MH i2c: E2 17 00 [00:35:22]MH_I2C_Read... [00:35:22]Read from MH i2c: E2 17 00 A2 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 72 [00:35:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:35:22]wFMCommunicate OK [00:35:22]requested_item fd.num is exist - process it [00:35:22]SAM_PROTO_GetFieldsCounters [00:35:22]wFMCommunicate request_size=4 [00:35:22]MH_SAM_APDU [00:35:22]CAPDU: 80 13 00 00 [00:35:22]Write to MH i2c: E2 08 00 A3 04 80 13 00 00 00 00 00 00 23 [00:35:22]Write i2c OK [00:35:22]MH_I2C_Read... [00:35:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:35:22]Read from MH i2c: E2 [00:35:22]MH_I2C_Read... [00:35:22]Read from MH i2c: E2 62 00 [00:35:22]MH_I2C_Read... [00:35:22]Read from MH i2c: E2 62 00 A3 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F2 0F 01 00 0E 04 04 00 C2 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 1A [00:35:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F2 0F 01 00 0E 04 04 00 C2 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 [00:35:22]wFMCommunicate OK [00:35:22]SAM_PROTO_GetFieldsCounters done [00:35:22]requested_item shift.num is exist - process it [00:35:22]requested_item shift.opened is exist - process it [00:35:22]req_shift_opened [00:35:22]FM_GetShiftState [00:35:22]SAM_PROTO_GetShiftState [00:35:22]wFMCommunicate request_size=4 [00:35:22]MH_SAM_APDU [00:35:22]CAPDU: 80 13 01 00 [00:35:22]Write to MH i2c: E2 08 00 A4 04 80 13 01 00 00 00 00 00 25 [00:35:22]Write i2c OK [00:35:22]MH_I2C_Read... [00:35:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:22]Read from MH i2c: E2 [00:35:22]MH_I2C_Read... [00:35:22]Read from MH i2c: E2 0E 00 [00:35:22]MH_I2C_Read... [00:35:22]Read from MH i2c: E2 0E 00 A4 04 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 51 [00:35:22]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [00:35:22]wFMCommunicate OK [00:35:22]SAM_PROTO_GetShiftState done [00:35:22]FM_GetShiftState done [00:35:22]req_shift_opened done [00:35:22]requested_item shift.open_date is exist - process it [00:35:22]req_shift_open_date [00:35:22]req_shift_open_date done [00:35:22]produce_requested_data done [00:35:22]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69618,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [00:35:22]process_action_free close_receipt [00:35:22]json_value_free [00:35:22]json_value_free done [00:35:22]process_json_proto returns [00:35:22]Send response to host [00:35:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69618,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [00:35:22]free response buf [00:35:22]execute_script done [00:35:22]execute_script returns [00:35:22]free content buf [00:35:22]Sock 8.Close socket [00:35:22]Sock 8.Thread stoped [00:35:26]OFD Sender: No OFD packet to send [00:35:31]OFD Sender: No OFD packet to send [00:35:36]OFD Sender: No OFD packet to send [00:35:41]OFD Sender: No OFD packet to send [00:35:46]OFD Sender: No OFD packet to send [00:35:51]OFD Sender: No OFD packet to send [00:35:56]OFD Sender: No OFD packet to send [00:36:01]OFD Sender: No OFD packet to send [00:36:06]OFD Sender: No OFD packet to send [00:36:11]OFD Sender: No OFD packet to send [00:36:16]OFD Sender: No OFD packet to send [00:36:21]OFD Sender: No OFD packet to send [00:36:26]OFD Sender: No OFD packet to send [00:36:31]OFD Sender: No OFD packet to send [00:36:36]OFD Sender: No OFD packet to send [00:36:41]OFD Sender: No OFD packet to send [00:36:46]OFD Sender: No OFD packet to send [00:36:51]OFD Sender: No OFD packet to send [00:36:56]OFD Sender: No OFD packet to send [00:37:01]OFD Sender: No OFD packet to send [00:37:06]OFD Sender: No OFD packet to send [00:37:11]OFD Sender: No OFD packet to send [00:37:16]OFD Sender: No OFD packet to send [00:37:21]OFD Sender: No OFD packet to send [00:37:26]OFD Sender: No OFD packet to send [00:37:31]OFD Sender: No OFD packet to send [00:37:36]OFD Sender: No OFD packet to send [00:37:41]OFD Sender: No OFD packet to send [00:37:46]OFD Sender: No OFD packet to send [00:37:51]OFD Sender: No OFD packet to send [00:37:56]OFD Sender: No OFD packet to send [00:38:01]OFD Sender: No OFD packet to send [00:38:06]OFD Sender: No OFD packet to send [00:38:11]OFD Sender: No OFD packet to send [00:38:16]OFD Sender: No OFD packet to send [00:38:21]OFD Sender: No OFD packet to send [00:38:26]OFD Sender: No OFD packet to send [00:38:31]OFD Sender: No OFD packet to send [00:38:36]OFD Sender: No OFD packet to send [00:38:41]OFD Sender: No OFD packet to send [00:38:46]OFD Sender: No OFD packet to send [00:38:52]OFD Sender: No OFD packet to send [00:38:57]OFD Sender: No OFD packet to send [00:39:02]OFD Sender: No OFD packet to send [00:39:07]OFD Sender: No OFD packet to send [00:39:12]OFD Sender: No OFD packet to send [00:39:17]OFD Sender: No OFD packet to send [00:39:22]OFD Sender: No OFD packet to send [00:39:27]OFD Sender: No OFD packet to send [00:39:29]accept exits with 9 [00:39:29]New connection [00:39:29]New thread 3067313508 created [00:39:29]Thread 3067456868 joined [00:39:29]Waiting for new connection... [00:39:29] Sock 9.Parse request [00:39:29]Sock 9.Check first char [00:39:29]Sock 9.First char is OK [00:39:29]request: POST /json_proto HTTP/1.0 [00:39:29]Method: POST [00:39:29]URL: /json_proto [00:39:29]Method is POST - this is cgi request [00:39:29]url: /json_proto [00:39:29]query_string will be loaded in cgi processing [00:39:29]execute_cgi json_proto POST (null) [00:39:29]execute_cgi path=json_proto method=POST [00:39:29]POST find Content-Length [00:39:29]Host: 172.17.50.3:8080 [00:39:29]Content-Length: 689 [00:39:29]Content-Type: application/json [00:39:29] [00:39:29]POST finish read [00:39:29]Found Content-Length = 689 [00:39:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 32.220, "sum" : 2487.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2487.00, "payments": [ { "type": 0, "sum" : 2487.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:39:29]execute_script... [00:39:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 32.220, "sum" : 2487.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2487.00, "payments": [ { "type": 0, "sum" : 2487.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:39:29]POST & json_proto [00:39:29]process_json_proto [00:39:29]json parsed OK: [00:39:29]protocol is kg_v1.0 [00:39:29]action value=close_receipt [00:39:29]process_action close_receipt [00:39:29]cmd_close_receipt [00:39:29]MH_GetDate [00:39:29]Write to MH i2c: F0 00 00 A5 04 98 [00:39:29]Write i2c OK [00:39:29]MH_I2C_Read... [00:39:29]Read from MH i2c: F0 [00:39:29]MH_I2C_Read... [00:39:29]Read from MH i2c: F0 09 00 [00:39:29]MH_I2C_Read... [00:39:29]Read from MH i2c: F0 09 00 A5 04 00 C2 A2 15 67 6B 98 1E 66 08 [00:39:29]GetLastDocTimeStamp 1729470919 [00:39:29]current date 1729471170 [00:39:29]FM_GetShiftState [00:39:29]SAM_PROTO_GetShiftState [00:39:29]wFMCommunicate request_size=4 [00:39:29]MH_SAM_APDU [00:39:29]CAPDU: 80 13 01 00 [00:39:29]Write to MH i2c: E2 08 00 A6 04 80 13 01 00 00 00 00 00 27 [00:39:29]Write i2c OK [00:39:29]MH_I2C_Read... [00:39:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:39:29]Read from MH i2c: E2 [00:39:29]MH_I2C_Read... [00:39:29]Read from MH i2c: E2 0E 00 [00:39:29]MH_I2C_Read... [00:39:29]Read from MH i2c: E2 0E 00 A6 04 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 53 [00:39:29]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [00:39:29]wFMCommunicate OK [00:39:29]SAM_PROTO_GetShiftState done [00:39:29]FM_GetShiftState done [00:39:29]opened in 1729469703 [00:39:29]opened+sec_in_day 1729556103 [00:39:29]quantity*price = 248738 [00:39:29]sum+1 = 248739 [00:39:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 2487.00 Внесено: 5000.00 СДАЧА: 2513.00 НСП 1% : 22.01 НДС 12% : 264.15 Наличными: 2487.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 9 21.10.2024 00:39 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69619 ФПД: 198177955439417 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T003930&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69619&fm=198177955439417&tin=02508201610067®Number=0000000000156251&sum=248700 [00:39:31]StoreToDocumentArchive [00:39:31]shift 194 fd 69619 [00:39:31]save to /storage/0194/doc_00069619 [00:39:31]save last doc name /storage/0194/doc_00069619 to /storage/kkm_last_doc_name [00:39:31]save OK [00:39:31]Clear old archive folders... [00:39:31]ProcessDocumentItem done err = 0, tmpTLVsize=257 [00:39:31]tlvbuf is 00C300D0 [00:39:31]SAM_PROTO_ClearQueue [00:39:31]wFMCommunicate request_size=4 [00:39:31]MH_SAM_APDU [00:39:31]CAPDU: 80 09 00 00 [00:39:31]Write to MH i2c: E2 08 00 B3 04 80 09 00 00 00 00 00 00 29 [00:39:31]Write i2c OK [00:39:31]MH_I2C_Read... [00:39:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:39:31]Read from MH i2c: E2 [00:39:31]MH_I2C_Read... [00:39:31]Read from MH i2c: E2 03 00 [00:39:31]MH_I2C_Read... [00:39:31]Read from MH i2c: E2 03 00 B3 04 00 90 00 2B [00:39:31]RAPDU: 90 00 [00:39:31]wFMCommunicate OK [00:39:31]SAM_PROTO_ClearQueue done [00:39:31]KKMCreateOFDPacket [00:39:31]OFDProtocolAddRootSTLVToBuf [00:39:31]FM_MakeSignedData [00:39:31]FM_MakeSignedData [00:39:31]SAM_PROTO_SignData [00:39:31]wFMCommunicate request_size=4 [00:39:31]MH_SAM_APDU [00:39:31]CAPDU: 80 0D 01 02 [00:39:31]Write to MH i2c: E2 08 00 B4 04 80 0D 01 02 00 00 00 00 31 [00:39:31]Write i2c OK [00:39:31]MH_I2C_Read... [00:39:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:39:31]Read from MH i2c: E2 [00:39:31]MH_I2C_Read... [00:39:31]Read from MH i2c: E2 03 00 [00:39:31]MH_I2C_Read... [00:39:31]Read from MH i2c: E2 03 00 B4 04 00 90 00 2C [00:39:31]RAPDU: 90 00 [00:39:31]wFMCommunicate OK [00:39:31]wFMCommunicate request_size=255 [00:39:31]MH_SAM_APDU [00:39:31]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 DC 7D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A2 CB 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C CB 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 67 00 00 00 00 07 04 06 00 7C CB 03 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 C2 A2 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F3 0F 01 [00:39:31]Write to MH i2c: E2 02 01 B5 04 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 DC 7D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A2 CB 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C CB 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 67 00 00 00 00 07 04 06 00 7C CB 03 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 C2 A2 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F3 0F 01 00 00 29 [00:39:31]Write i2c OK [00:39:31]MH_I2C_Read... [00:39:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:39:31]Read from MH i2c: E2 [00:39:31]MH_I2C_Read... [00:39:31]Read from MH i2c: E2 03 00 [00:39:31]MH_I2C_Read... [00:39:31]Read from MH i2c: E2 03 00 B5 04 00 90 00 2D [00:39:31]RAPDU: 90 00 [00:39:31]wFMCommunicate OK [00:39:31]wFMCommunicate request_size=16 [00:39:31]MH_SAM_APDU [00:39:31]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 B4 3D E6 A2 E3 39 [00:39:31]Write to MH i2c: E2 13 00 B6 04 80 0D 02 02 0B 00 00 35 04 06 00 B4 3D E6 A2 E3 39 00 00 1E [00:39:31]Write i2c OK [00:39:31]MH_I2C_Read... [00:39:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:39:31]Read from MH i2c: E2 [00:39:31]MH_I2C_Read... [00:39:31]Read from MH i2c: E2 03 00 [00:39:31]MH_I2C_Read... [00:39:31]Read from MH i2c: E2 03 00 B6 04 00 90 00 2E [00:39:31]RAPDU: 90 00 [00:39:31]wFMCommunicate OK [00:39:31]wFMCommunicate request_size=4 [00:39:31]MH_SAM_APDU [00:39:31]CAPDU: 80 0D 03 02 [00:39:31]Write to MH i2c: E2 08 00 B7 04 80 0D 03 02 00 00 00 00 36 [00:39:31]Write i2c OK [00:39:31]MH_I2C_Read... [00:39:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:39:31]Read from MH i2c: E2 [00:39:31]MH_I2C_Read... [00:39:31]Read from MH i2c: E2 0B 00 [00:39:31]MH_I2C_Read... [00:39:31]Read from MH i2c: E2 0B 00 B7 04 00 B3 F1 98 95 50 0F 56 34 90 00 F1 [00:39:31]RAPDU: B3 F1 98 95 50 0F 56 34 90 00 [00:39:31]wFMCommunicate OK [00:39:31]SAM_PROTO_SignData done [00:39:31]FM_MakeSignedData done [00:39:31]CreateOFDProtocolMessage [00:39:31]wFMCommunicate request_size=4 [00:39:31]MH_SAM_APDU [00:39:31]CAPDU: 80 11 00 00 [00:39:31]Write to MH i2c: E2 08 00 B8 04 80 11 00 00 00 00 00 00 36 [00:39:31]Write i2c OK [00:39:31]MH_I2C_Read... [00:39:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:39:31]Read from MH i2c: E2 [00:39:31]MH_I2C_Read... [00:39:31]Read from MH i2c: E2 17 00 [00:39:31]MH_I2C_Read... [00:39:31]Read from MH i2c: E2 17 00 B8 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 88 [00:39:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:39:31]wFMCommunicate OK [00:39:31]CreateOFDProtocolMessage done [00:39:31]OFDSenderStorePacket 69619 [00:39:31]StoreOFDPacket docnum=69619 [00:39:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 23 D3 0D 01 3B 05 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 DC 7D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A2 CB 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C CB 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 67 00 00 00 00 07 04 06 00 7C CB 03 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 C2 A2 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F3 0F 01 00 35 04 06 00 B4 3D E6 A2 E3 39 B3 F1 98 95 50 0F 56 34 [00:39:31]CheckFolder [00:39:31]dirname=/storage/ofd_packets [00:39:31]CheckFolder done [00:39:31]ProducePacketName [00:39:31]name=ofd_packets/00069619 [00:39:31]NVStorageSaveData ofd_packets/00069619 [00:39:31]File name is /storage/ofd_packets/00069619 [00:39:31]Write 307 bytes [00:39:31]NVStorageSaveData done [00:39:31]OFDSenderStorePacket done [00:39:31]KKMCreateOFDPacket done [00:39:31]NVStorageSaveData kkm_last_timestamp [00:39:31]File name is /storage/kkm_last_timestamp [00:39:31]Write 4 bytes [00:39:31]NVStorageSaveData done [00:39:31]ExternCall_PrintAddStr [00:39:31]wPrintStart [00:39:31]Write to MH i2c: 01 00 00 B9 04 BD [00:39:31]Write i2c OK [00:39:31]MH_I2C_Read... [00:39:31]Read from MH i2c: 01 [00:39:31]MH_I2C_Read... [00:39:31]Read from MH i2c: 01 07 00 [00:39:31]MH_I2C_Read... [00:39:31]Read from MH i2c: 01 07 00 B9 04 00 00 00 00 00 FF 0F D2 [00:39:31]RasterBufferAndPrint [00:39:31]line Счет N : (1)2885356 [00:39:31]line ИНН: 02508201610067 [00:39:31]line Контрольно-Кассовый Чек [00:39:31]line ПРОДАЖА [00:39:31]line ТРК (МРК, ГНК) : 31 [00:39:31]line Товар: 2710194240 [00:39:31]line D-ENERGY Дт-К-2 [00:39:31]line 32.220 * 77.20 [00:39:31]line = 2487.38 [00:39:31]line НДС 12% НСП 1% [00:39:31]line > о реализуемом товаре [00:39:31]line ОКРУГЛЕНИЕ: -0.38 [00:39:31]line ИТОГО: 2487.00 [00:39:31]line Внесено: 5000.00 [00:39:31]line СДАЧА: 2513.00 [00:39:31]line НСП 1% : 22.01 [00:39:31]line НДС 12% : 264.15 [00:39:31]line Наличными: 2487.00 [00:39:31]line Безнал.: 0.00 [00:39:31]line Место: АЗС № 85 "Партнер Нефть" [00:39:31]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [00:39:31]line СНО: Общий режим [00:39:31]line Чек 9 21.10.2024 00:39 [00:39:31]line Смена: 194 ФФД: 1.0 [00:39:31]line ЗНМ: 0300000167 [00:39:31]line РНМ: 0000000000156251 [00:39:31]line Версия ККМ: v1.0 [00:39:31]line ФМ: 0000000000963346 [00:39:31]line ФД: 69619 [00:39:31]line ФПД: 198177955439417 [00:39:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T003930&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69619&fm=198177955439417&tin=02508201610067®Number=0000000000156251&sum=248700 [00:39:31]OFD Sender: Processing packet 69619 [packets to send 18, broken 17] [00:39:31]ProducePacketName [00:39:31]name=ofd_packets/00069619 [00:39:31]OFD Sender: To server: pG, [00:39:31]CommunicateWithHost lk.salyk.kg:30040 [00:39:31]ConnectInit lk.salyk.kg [00:39:31]written 0, free lines is 4095 [00:39:31]Connected sock=10 [00:39:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 23 D3 0D 01 3B 05 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 DC 7D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A2 CB 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C CB 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 67 00 00 00 00 07 04 06 00 7C CB 03 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 C2 A2 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F3 0F 01 00 35 04 06 00 B4 3D E6 A2 E3 39 B3 F1 98 95 50 0F 56 34 [00:39:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 4B 79 47 00 73 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F3 0F 01 00 F4 03 04 00 68 4C 15 67 B6 04 01 00 00 AB 83 A9 BD 81 FA DF 7B [00:39:32]CommunicateWithHost err = 0 [00:39:32]CheckOFDResponse [00:39:32]1017 (14) - 77093643461234 [00:39:32]1041 (16) - 0000000000963346 [00:39:32]1040 (4) - 69619 [00:39:32]1012 (4) - 20.10.2024 18:31 [00:39:32]1206 (1) - 0 [00:39:32]OFD Sender: Remove packet 69619 [00:39:32]ProducePacketName [00:39:32]name=ofd_packets/00069619 [00:39:32]NVStorageDeleteData [00:39:32]Write to MH i2c: 01 00 00 E4 04 E8 [00:39:32]Write i2c OK [00:39:32]MH_I2C_Read... [00:39:32]Read from MH i2c: 01 [00:39:32]MH_I2C_Read... [00:39:32]Read from MH i2c: 01 07 00 [00:39:32]MH_I2C_Read... [00:39:32]Read from MH i2c: 01 07 00 E4 04 00 00 00 00 00 F3 0C EE [00:39:32]RasterBufferAndPrint [00:39:32]line [00:39:32]line [00:39:32]line [00:39:32]line [00:39:32]line [00:39:32]written 0, free lines is 3321 [00:39:32]MH_Cut [00:39:32]Write to MH i2c: D1 01 00 EB 04 01 C1 [00:39:32]Write i2c OK [00:39:32]MH_I2C_Read... [00:39:32]Read from MH i2c: D1 [00:39:32]MH_I2C_Read... [00:39:32]Read from MH i2c: D1 01 00 [00:39:32]MH_I2C_Read... [00:39:32]Read from MH i2c: D1 01 00 EB 04 00 C0 [00:39:32]Write to MH i2c: 01 00 00 EC 04 F0 [00:39:32]Write i2c OK [00:39:32]MH_I2C_Read... [00:39:32]OFD Sender: No OFD packet to send [00:39:33]*** Cut start [00:39:33]*** Partial cut [00:39:33]*** CUTSNS_PIN = 1 [00:39:33]*** CUTSNS_PIN = 0 [00:39:33]*** Brake cut motor [00:39:33]Read from MH i2c: 01 [00:39:33]MH_I2C_Read... [00:39:33]*** Stop cut motor [00:39:33]*** Cut end [00:39:33]Read from MH i2c: 01 07 00 [00:39:33]MH_I2C_Read... [00:39:33]Read from MH i2c: 01 07 00 EC 04 00 00 00 00 00 FF 0F 05 [00:39:33]process_action close_receipt done [00:39:33]requested_data is exist [00:39:33]produce_requested_data [00:39:33]requested_item fm.sn is exist - process it [00:39:33]wFMCommunicate request_size=4 [00:39:33]MH_SAM_APDU [00:39:33]CAPDU: 80 11 00 00 [00:39:33]Write to MH i2c: E2 08 00 ED 04 80 11 00 00 00 00 00 00 6B [00:39:33]Write i2c OK [00:39:33]MH_I2C_Read... [00:39:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:39:33]Read from MH i2c: E2 [00:39:33]MH_I2C_Read... [00:39:33]Read from MH i2c: E2 17 00 [00:39:33]MH_I2C_Read... [00:39:33]Read from MH i2c: E2 17 00 ED 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 BD [00:39:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:39:33]wFMCommunicate OK [00:39:33]requested_item fd.num is exist - process it [00:39:33]SAM_PROTO_GetFieldsCounters [00:39:33]wFMCommunicate request_size=4 [00:39:33]MH_SAM_APDU [00:39:33]CAPDU: 80 13 00 00 [00:39:33]Write to MH i2c: E2 08 00 EE 04 80 13 00 00 00 00 00 00 6E [00:39:33]Write i2c OK [00:39:33]MH_I2C_Read... [00:39:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:39:33]Read from MH i2c: E2 [00:39:33]MH_I2C_Read... [00:39:33]Read from MH i2c: E2 62 00 [00:39:33]MH_I2C_Read... [00:39:33]Read from MH i2c: E2 62 00 EE 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F3 0F 01 00 0E 04 04 00 C2 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 69 [00:39:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F3 0F 01 00 0E 04 04 00 C2 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 [00:39:33]wFMCommunicate OK [00:39:33]SAM_PROTO_GetFieldsCounters done [00:39:33]requested_item shift.num is exist - process it [00:39:33]requested_item shift.opened is exist - process it [00:39:33]req_shift_opened [00:39:33]FM_GetShiftState [00:39:33]SAM_PROTO_GetShiftState [00:39:33]wFMCommunicate request_size=4 [00:39:33]MH_SAM_APDU [00:39:33]CAPDU: 80 13 01 00 [00:39:33]Write to MH i2c: E2 08 00 EF 04 80 13 01 00 00 00 00 00 70 [00:39:33]Write i2c OK [00:39:33]MH_I2C_Read... [00:39:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:39:33]Read from MH i2c: E2 [00:39:33]MH_I2C_Read... [00:39:33]Read from MH i2c: E2 0E 00 [00:39:33]MH_I2C_Read... [00:39:33]Read from MH i2c: E2 0E 00 EF 04 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 9C [00:39:33]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [00:39:33]wFMCommunicate OK [00:39:33]SAM_PROTO_GetShiftState done [00:39:33]FM_GetShiftState done [00:39:33]req_shift_opened done [00:39:33]requested_item shift.open_date is exist - process it [00:39:33]req_shift_open_date [00:39:33]req_shift_open_date done [00:39:33]produce_requested_data done [00:39:33]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69619,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [00:39:33]process_action_free close_receipt [00:39:33]json_value_free [00:39:33]json_value_free done [00:39:33]process_json_proto returns [00:39:33]Send response to host [00:39:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69619,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [00:39:33]free response buf [00:39:33]execute_script done [00:39:33]execute_script returns [00:39:33]free content buf [00:39:33]Sock 9.Close socket [00:39:33]Sock 9.Thread stoped [00:39:37]OFD Sender: No OFD packet to send [00:39:42]OFD Sender: No OFD packet to send [00:39:47]OFD Sender: No OFD packet to send [00:39:52]OFD Sender: No OFD packet to send [00:39:57]OFD Sender: No OFD packet to send [00:40:02]OFD Sender: No OFD packet to send [00:40:07]OFD Sender: No OFD packet to send [00:40:12]OFD Sender: No OFD packet to send [00:40:17]OFD Sender: No OFD packet to send [00:40:22]OFD Sender: No OFD packet to send [00:40:27]OFD Sender: No OFD packet to send [00:40:32]OFD Sender: No OFD packet to send [00:40:37]OFD Sender: No OFD packet to send [00:40:42]OFD Sender: No OFD packet to send [00:40:47]OFD Sender: No OFD packet to send [00:40:52]OFD Sender: No OFD packet to send [00:40:57]OFD Sender: No OFD packet to send [00:41:02]OFD Sender: No OFD packet to send [00:41:07]OFD Sender: No OFD packet to send [00:41:12]OFD Sender: No OFD packet to send [00:41:17]OFD Sender: No OFD packet to send [00:41:22]OFD Sender: No OFD packet to send [00:41:27]OFD Sender: No OFD packet to send [00:41:32]OFD Sender: No OFD packet to send [00:41:37]OFD Sender: No OFD packet to send [00:41:42]OFD Sender: No OFD packet to send [00:41:47]OFD Sender: No OFD packet to send [00:41:52]OFD Sender: No OFD packet to send [00:41:57]OFD Sender: No OFD packet to send [00:42:02]OFD Sender: No OFD packet to send [00:42:07]OFD Sender: No OFD packet to send [00:42:12]OFD Sender: No OFD packet to send [00:42:17]OFD Sender: No OFD packet to send [00:42:22]OFD Sender: No OFD packet to send [00:42:27]OFD Sender: No OFD packet to send [00:42:32]OFD Sender: No OFD packet to send [00:42:37]OFD Sender: No OFD packet to send [00:42:42]OFD Sender: No OFD packet to send [00:42:47]OFD Sender: No OFD packet to send [00:42:52]OFD Sender: No OFD packet to send [00:42:57]OFD Sender: No OFD packet to send [00:43:02]OFD Sender: No OFD packet to send [00:43:07]OFD Sender: No OFD packet to send [00:43:12]OFD Sender: No OFD packet to send [00:43:17]OFD Sender: No OFD packet to send [00:43:17]accept exits with 8 [00:43:17]New connection [00:43:17]New thread 3067456868 created [00:43:17]Thread 3067313508 joined [00:43:17]Waiting for new connection... [00:43:17] Sock 8.Parse request [00:43:17]Sock 8.Check first char [00:43:17]Sock 8.First char is OK [00:43:17]request: POST /json_proto HTTP/1.0 [00:43:17]Method: POST [00:43:17]URL: /json_proto [00:43:17]Method is POST - this is cgi request [00:43:17]url: /json_proto [00:43:17]query_string will be loaded in cgi processing [00:43:17]execute_cgi json_proto POST (null) [00:43:17]execute_cgi path=json_proto method=POST [00:43:17]POST find Content-Length [00:43:17]Host: 172.17.50.3:8080 [00:43:17]Content-Length: 686 [00:43:17]Content-Type: application/json [00:43:17] [00:43:17]POST finish read [00:43:17]Found Content-Length = 686 [00:43:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 64.740, "sum" : 2518.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 2518.00, "payments": [ { "type": 0, "sum" : 2518.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:43:17]execute_script... [00:43:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 64.740, "sum" : 2518.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 2518.00, "payments": [ { "type": 0, "sum" : 2518.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:43:17]POST & json_proto [00:43:17]process_json_proto [00:43:17]json parsed OK: [00:43:17]protocol is kg_v1.0 [00:43:17]action value=close_receipt [00:43:17]process_action close_receipt [00:43:17]cmd_close_receipt [00:43:17]MH_GetDate [00:43:17]Write to MH i2c: F0 00 00 F0 04 E3 [00:43:17]Write i2c OK [00:43:17]MH_I2C_Read... [00:43:17]Read from MH i2c: F0 [00:43:17]MH_I2C_Read... [00:43:17]Read from MH i2c: F0 09 00 [00:43:17]MH_I2C_Read... [00:43:17]Read from MH i2c: F0 09 00 F0 04 00 A6 A3 15 67 6B 98 1E 66 38 [00:43:17]GetLastDocTimeStamp 1729471170 [00:43:17]current date 1729471398 [00:43:17]FM_GetShiftState [00:43:17]SAM_PROTO_GetShiftState [00:43:17]wFMCommunicate request_size=4 [00:43:17]MH_SAM_APDU [00:43:17]CAPDU: 80 13 01 00 [00:43:17]Write to MH i2c: E2 08 00 F1 04 80 13 01 00 00 00 00 00 72 [00:43:17]Write i2c OK [00:43:17]MH_I2C_Read... [00:43:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:43:17]Read from MH i2c: E2 [00:43:17]MH_I2C_Read... [00:43:17]Read from MH i2c: E2 0E 00 [00:43:17]MH_I2C_Read... [00:43:17]Read from MH i2c: E2 0E 00 F1 04 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 9E [00:43:17]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [00:43:17]wFMCommunicate OK [00:43:17]SAM_PROTO_GetShiftState done [00:43:17]FM_GetShiftState done [00:43:17]opened in 1729469703 [00:43:17]opened+sec_in_day 1729556103 [00:43:17]quantity*price = 251838 [00:43:17]sum+1 = 251840 [00:43:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 2518.00 Внесено: 3500.00 СДАЧА: 982.00 НСП 1% : 22.29 НДС 12% : 267.44 Наличными: 2518.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 10 21.10.2024 00:43 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69620 ФПД: 229982659262155 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T004318&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69620&fm=229982659262155&tin=02508201610067®Number=0000000000156251&sum=251800 [00:43:19]StoreToDocumentArchive [00:43:19]shift 194 fd 69620 [00:43:19]save to /storage/0194/doc_00069620 [00:43:19]save last doc name /storage/0194/doc_00069620 to /storage/kkm_last_doc_name [00:43:19]save OK [00:43:19]Clear old archive folders... [00:43:19]ProcessDocumentItem done err = 0, tmpTLVsize=250 [00:43:19]tlvbuf is 00C1F180 [00:43:19]SAM_PROTO_ClearQueue [00:43:19]wFMCommunicate request_size=4 [00:43:19]MH_SAM_APDU [00:43:19]CAPDU: 80 09 00 00 [00:43:19]Write to MH i2c: E2 08 00 FE 04 80 09 00 00 00 00 00 00 74 [00:43:19]Write i2c OK [00:43:19]MH_I2C_Read... [00:43:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:43:19]Read from MH i2c: E2 [00:43:19]MH_I2C_Read... [00:43:19]Read from MH i2c: E2 03 00 [00:43:19]MH_I2C_Read... [00:43:19]Read from MH i2c: E2 03 00 FE 04 00 90 00 76 [00:43:19]RAPDU: 90 00 [00:43:19]wFMCommunicate OK [00:43:19]SAM_PROTO_ClearQueue done [00:43:19]KKMCreateOFDPacket [00:43:19]OFDProtocolAddRootSTLVToBuf [00:43:19]FM_MakeSignedData [00:43:19]FM_MakeSignedData [00:43:19]SAM_PROTO_SignData [00:43:19]wFMCommunicate request_size=4 [00:43:19]MH_SAM_APDU [00:43:19]CAPDU: 80 0D 01 02 [00:43:19]Write to MH i2c: E2 08 00 FF 04 80 0D 01 02 00 00 00 00 7C [00:43:19]Write i2c OK [00:43:19]MH_I2C_Read... [00:43:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:43:19]Read from MH i2c: E2 [00:43:19]MH_I2C_Read... [00:43:19]Read from MH i2c: E2 03 00 [00:43:19]MH_I2C_Read... [00:43:19]Read from MH i2c: E2 03 00 FF 04 00 90 00 77 [00:43:19]RAPDU: 90 00 [00:43:19]wFMCommunicate OK [00:43:19]wFMCommunicate request_size=255 [00:43:19]MH_SAM_APDU [00:43:19]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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 E4 FC 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 BF D7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 D7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 68 00 00 00 00 07 04 06 00 98 D7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 A6 A3 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F4 0F 01 00 35 04 06 00 D1 2B [00:43:19]Write to MH i2c: E2 02 01 00 05 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 E4 FC 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 BF D7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 D7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 68 00 00 00 00 07 04 06 00 98 D7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 A6 A3 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F4 0F 01 00 35 04 06 00 D1 2B 00 00 FB [00:43:19]Write i2c OK [00:43:19]MH_I2C_Read... [00:43:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:43:19]Read from MH i2c: E2 [00:43:19]MH_I2C_Read... [00:43:19]Read from MH i2c: E2 03 00 [00:43:19]MH_I2C_Read... [00:43:19]Read from MH i2c: E2 03 00 00 05 00 90 00 79 [00:43:19]RAPDU: 90 00 [00:43:19]wFMCommunicate OK [00:43:19]wFMCommunicate request_size=9 [00:43:19]MH_SAM_APDU [00:43:19]CAPDU: 80 0D 02 02 04 02 B5 B6 CB [00:43:19]Write to MH i2c: E2 0C 00 01 05 80 0D 02 02 04 00 02 B5 B6 CB 00 00 C0 [00:43:19]Write i2c OK [00:43:19]MH_I2C_Read... [00:43:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:43:19]Read from MH i2c: E2 [00:43:19]MH_I2C_Read... [00:43:19]Read from MH i2c: E2 03 00 [00:43:19]MH_I2C_Read... [00:43:19]Read from MH i2c: E2 03 00 01 05 00 90 00 7A [00:43:19]RAPDU: 90 00 [00:43:19]wFMCommunicate OK [00:43:19]wFMCommunicate request_size=4 [00:43:19]MH_SAM_APDU [00:43:19]CAPDU: 80 0D 03 02 [00:43:19]Write to MH i2c: E2 08 00 02 05 80 0D 03 02 00 00 00 00 82 [00:43:19]Write i2c OK [00:43:19]MH_I2C_Read... [00:43:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:43:19]Read from MH i2c: E2 [00:43:19]MH_I2C_Read... [00:43:19]Read from MH i2c: E2 0B 00 [00:43:19]MH_I2C_Read... [00:43:19]Read from MH i2c: E2 0B 00 02 05 00 41 50 74 41 F8 27 67 0A 90 00 59 [00:43:19]RAPDU: 41 50 74 41 F8 27 67 0A 90 00 [00:43:19]wFMCommunicate OK [00:43:19]SAM_PROTO_SignData done [00:43:19]FM_MakeSignedData done [00:43:19]CreateOFDProtocolMessage [00:43:19]wFMCommunicate request_size=4 [00:43:19]MH_SAM_APDU [00:43:19]CAPDU: 80 11 00 00 [00:43:19]Write to MH i2c: E2 08 00 03 05 80 11 00 00 00 00 00 00 82 [00:43:19]Write i2c OK [00:43:19]MH_I2C_Read... [00:43:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:43:19]Read from MH i2c: E2 [00:43:19]MH_I2C_Read... [00:43:19]Read from MH i2c: E2 17 00 [00:43:19]MH_I2C_Read... [00:43:19]Read from MH i2c: E2 17 00 03 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 D4 [00:43:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:43:19]wFMCommunicate OK [00:43:19]CreateOFDProtocolMessage done [00:43:19]OFDSenderStorePacket 69620 [00:43:19]StoreOFDPacket docnum=69620 [00:43:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 49 54 06 01 59 EF 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 E4 FC 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 BF D7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 D7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 68 00 00 00 00 07 04 06 00 98 D7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 A6 A3 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F4 0F 01 00 35 04 06 00 D1 2B 02 B5 B6 CB 41 50 74 41 F8 27 67 0A [00:43:19]CheckFolder [00:43:19]dirname=/storage/ofd_packets [00:43:19]CheckFolder done [00:43:19]ProducePacketName [00:43:19]name=ofd_packets/00069620 [00:43:19]NVStorageSaveData ofd_packets/00069620 [00:43:19]File name is /storage/ofd_packets/00069620 [00:43:19]Write 300 bytes [00:43:19]NVStorageSaveData done [00:43:19]OFDSenderStorePacket done [00:43:19]KKMCreateOFDPacket done [00:43:19]NVStorageSaveData kkm_last_timestamp [00:43:19]File name is /storage/kkm_last_timestamp [00:43:19]Write 4 bytes [00:43:19]NVStorageSaveData done [00:43:19]ExternCall_PrintAddStr [00:43:19]wPrintStart [00:43:19]Write to MH i2c: 01 00 00 04 05 09 [00:43:19]Write i2c OK [00:43:19]MH_I2C_Read... [00:43:19]Read from MH i2c: 01 [00:43:19]MH_I2C_Read... [00:43:19]Read from MH i2c: 01 07 00 [00:43:19]MH_I2C_Read... [00:43:19]Read from MH i2c: 01 07 00 04 05 00 00 00 00 00 FF 0F 1E [00:43:19]RasterBufferAndPrint [00:43:19]line Счет N : (1)2885357 [00:43:19]line ИНН: 02508201610067 [00:43:19]line Контрольно-Кассовый Чек [00:43:19]line ПРОДАЖА [00:43:19]line ТРК (МРК, ГНК) : 71 [00:43:19]line Товар: 2711129700 [00:43:19]line ГАЗ-К-3 [00:43:19]line 64.740 * 38.90 [00:43:19]line = 2518.39 [00:43:19]line НДС 12% НСП 1% [00:43:19]line > о реализуемом товаре [00:43:19]line ОКРУГЛЕНИЕ: -0.39 [00:43:19]line ИТОГО: 2518.00 [00:43:19]line Внесено: 3500.00 [00:43:19]line СДАЧА: 982.00 [00:43:19]line НСП 1% : 22.29 [00:43:19]line НДС 12% : 267.44 [00:43:19]line Наличными: 2518.00 [00:43:19]line Безнал.: 0.00 [00:43:19]line Место: АЗС № 85 "Партнер Нефть" [00:43:19]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [00:43:19]line СНО: Общий режим [00:43:19]line Чек 10 21.10.2024 00:43 [00:43:19]line Смена: 194 ФФД: 1.0 [00:43:19]line ЗНМ: 0300000167 [00:43:19]line РНМ: 0000000000156251 [00:43:19]line Версия ККМ: v1.0 [00:43:19]line ФМ: 0000000000963346 [00:43:19]line ФД: 69620 [00:43:19]line ФПД: 229982659262155 [00:43:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T004318&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69620&fm=229982659262155&tin=02508201610067®Number=0000000000156251&sum=251800 [00:43:19]OFD Sender: Processing packet 69620 [packets to send 18, broken 17] [00:43:19]ProducePacketName [00:43:19]name=ofd_packets/00069620 [00:43:19]OFD Sender: To server: pG, [00:43:19]CommunicateWithHost lk.salyk.kg:30040 [00:43:19]ConnectInit lk.salyk.kg [00:43:19]written 0, free lines is 4095 [00:43:19]Connected sock=10 [00:43:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 49 54 06 01 59 EF 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 E4 FC 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 BF D7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 D7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 68 00 00 00 00 07 04 06 00 98 D7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 A6 A3 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F4 0F 01 00 35 04 06 00 D1 2B 02 B5 B6 CB 41 50 74 41 F8 27 67 0A [00:43:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 D4 34 47 00 25 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F4 0F 01 00 F4 03 04 00 4C 4D 15 67 B6 04 01 00 00 55 E2 A7 70 B8 54 DF 2E [00:43:20]CommunicateWithHost err = 0 [00:43:20]CheckOFDResponse [00:43:20]1017 (14) - 77093643461234 [00:43:20]1041 (16) - 0000000000963346 [00:43:20]1040 (4) - 69620 [00:43:20]1012 (4) - 20.10.2024 18:34 [00:43:20]1206 (1) - 0 [00:43:20]OFD Sender: Remove packet 69620 [00:43:20]ProducePacketName [00:43:20]name=ofd_packets/00069620 [00:43:20]NVStorageDeleteData [00:43:20]Write to MH i2c: 01 00 00 2F 05 34 [00:43:20]Write i2c OK [00:43:20]MH_I2C_Read... [00:43:20]Read from MH i2c: 01 [00:43:20]MH_I2C_Read... [00:43:20]Read from MH i2c: 01 07 00 [00:43:20]MH_I2C_Read... [00:43:20]Read from MH i2c: 01 07 00 2F 05 00 00 00 00 00 EC 0C 33 [00:43:20]RasterBufferAndPrint [00:43:20]line [00:43:20]line [00:43:20]line [00:43:20]line [00:43:20]line [00:43:20]written 0, free lines is 3314 [00:43:20]MH_Cut [00:43:20]Write to MH i2c: D1 01 00 36 05 01 0D [00:43:20]Write i2c OK [00:43:20]MH_I2C_Read... [00:43:20]Read from MH i2c: D1 [00:43:20]MH_I2C_Read... [00:43:20]Read from MH i2c: D1 01 00 [00:43:20]MH_I2C_Read... [00:43:20]Read from MH i2c: D1 01 00 36 05 00 0C [00:43:20]Write to MH i2c: 01 00 00 37 05 3C [00:43:20]Write i2c OK [00:43:20]MH_I2C_Read... [00:43:20]OFD Sender: No OFD packet to send [00:43:21]*** Cut start [00:43:21]*** Partial cut [00:43:21]*** CUTSNS_PIN = 1 [00:43:21]*** CUTSNS_PIN = 0 [00:43:21]*** Brake cut motor [00:43:21]Read from MH i2c: 01 [00:43:21]MH_I2C_Read... [00:43:21]*** Stop cut motor [00:43:21]*** Cut end [00:43:21]Read from MH i2c: 01 07 00 [00:43:21]MH_I2C_Read... [00:43:21]Read from MH i2c: 01 07 00 37 05 00 00 00 00 00 FF 0F 51 [00:43:21]process_action close_receipt done [00:43:21]requested_data is exist [00:43:21]produce_requested_data [00:43:21]requested_item fm.sn is exist - process it [00:43:21]wFMCommunicate request_size=4 [00:43:21]MH_SAM_APDU [00:43:21]CAPDU: 80 11 00 00 [00:43:21]Write to MH i2c: E2 08 00 38 05 80 11 00 00 00 00 00 00 B7 [00:43:21]Write i2c OK [00:43:21]MH_I2C_Read... [00:43:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:43:21]Read from MH i2c: E2 [00:43:21]MH_I2C_Read... [00:43:21]Read from MH i2c: E2 17 00 [00:43:21]MH_I2C_Read... [00:43:21]Read from MH i2c: E2 17 00 38 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 09 [00:43:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:43:21]wFMCommunicate OK [00:43:21]requested_item fd.num is exist - process it [00:43:21]SAM_PROTO_GetFieldsCounters [00:43:21]wFMCommunicate request_size=4 [00:43:21]MH_SAM_APDU [00:43:21]CAPDU: 80 13 00 00 [00:43:21]Write to MH i2c: E2 08 00 39 05 80 13 00 00 00 00 00 00 BA [00:43:21]Write i2c OK [00:43:21]MH_I2C_Read... [00:43:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:43:21]Read from MH i2c: E2 [00:43:21]MH_I2C_Read... [00:43:21]Read from MH i2c: E2 62 00 [00:43:21]MH_I2C_Read... [00:43:21]Read from MH i2c: E2 62 00 39 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F4 0F 01 00 0E 04 04 00 C2 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 B9 [00:43:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F4 0F 01 00 0E 04 04 00 C2 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 [00:43:21]wFMCommunicate OK [00:43:21]SAM_PROTO_GetFieldsCounters done [00:43:21]requested_item shift.num is exist - process it [00:43:21]requested_item shift.opened is exist - process it [00:43:21]req_shift_opened [00:43:21]FM_GetShiftState [00:43:21]SAM_PROTO_GetShiftState [00:43:21]wFMCommunicate request_size=4 [00:43:21]MH_SAM_APDU [00:43:21]CAPDU: 80 13 01 00 [00:43:21]Write to MH i2c: E2 08 00 3A 05 80 13 01 00 00 00 00 00 BC [00:43:21]Write i2c OK [00:43:21]MH_I2C_Read... [00:43:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:43:21]Read from MH i2c: E2 [00:43:21]MH_I2C_Read... [00:43:21]Read from MH i2c: E2 0E 00 [00:43:21]MH_I2C_Read... [00:43:21]Read from MH i2c: E2 0E 00 3A 05 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 E8 [00:43:21]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [00:43:21]wFMCommunicate OK [00:43:21]SAM_PROTO_GetShiftState done [00:43:21]FM_GetShiftState done [00:43:21]req_shift_opened done [00:43:21]requested_item shift.open_date is exist - process it [00:43:21]req_shift_open_date [00:43:21]req_shift_open_date done [00:43:21]produce_requested_data done [00:43:21]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69620,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [00:43:21]process_action_free close_receipt [00:43:21]json_value_free [00:43:21]json_value_free done [00:43:21]process_json_proto returns [00:43:21]Send response to host [00:43:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69620,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [00:43:21]free response buf [00:43:21]execute_script done [00:43:21]execute_script returns [00:43:21]free content buf [00:43:21]Sock 8.Close socket [00:43:21]Sock 8.Thread stoped [00:43:25]OFD Sender: No OFD packet to send [00:43:30]OFD Sender: No OFD packet to send [00:43:35]OFD Sender: No OFD packet to send [00:43:40]OFD Sender: No OFD packet to send [00:43:45]OFD Sender: No OFD packet to send [00:43:50]OFD Sender: No OFD packet to send [00:43:55]OFD Sender: No OFD packet to send [00:44:00]OFD Sender: No OFD packet to send [00:44:05]OFD Sender: No OFD packet to send [00:44:10]OFD Sender: No OFD packet to send [00:44:15]OFD Sender: No OFD packet to send [00:44:20]OFD Sender: No OFD packet to send [00:44:25]OFD Sender: No OFD packet to send [00:44:30]OFD Sender: No OFD packet to send [00:44:35]OFD Sender: No OFD packet to send [00:44:40]OFD Sender: No OFD packet to send [00:44:45]OFD Sender: No OFD packet to send [00:44:50]OFD Sender: No OFD packet to send [00:44:55]OFD Sender: No OFD packet to send [00:45:00]OFD Sender: No OFD packet to send [00:45:05]OFD Sender: No OFD packet to send [00:45:10]OFD Sender: No OFD packet to send [00:45:15]OFD Sender: No OFD packet to send [00:45:20]OFD Sender: No OFD packet to send [00:45:25]OFD Sender: No OFD packet to send [00:45:30]OFD Sender: No OFD packet to send [00:45:35]OFD Sender: No OFD packet to send [00:45:40]OFD Sender: No OFD packet to send [00:45:45]OFD Sender: No OFD packet to send [00:45:50]OFD Sender: No OFD packet to send [00:45:55]OFD Sender: No OFD packet to send [00:46:00]OFD Sender: No OFD packet to send [00:46:05]OFD Sender: No OFD packet to send [00:46:10]OFD Sender: No OFD packet to send [00:46:15]OFD Sender: No OFD packet to send [00:46:20]OFD Sender: No OFD packet to send [00:46:25]OFD Sender: No OFD packet to send [00:46:30]OFD Sender: No OFD packet to send [00:46:35]OFD Sender: No OFD packet to send [00:46:40]OFD Sender: No OFD packet to send [00:46:45]OFD Sender: No OFD packet to send [00:46:50]OFD Sender: No OFD packet to send [00:46:55]OFD Sender: No OFD packet to send [00:47:00]OFD Sender: No OFD packet to send [00:47:05]OFD Sender: No OFD packet to send [00:47:10]OFD Sender: No OFD packet to send [00:47:15]OFD Sender: No OFD packet to send [00:47:20]OFD Sender: No OFD packet to send [00:47:25]OFD Sender: No OFD packet to send [00:47:30]OFD Sender: No OFD packet to send [00:47:31]accept exits with 9 [00:47:31]New connection [00:47:31]New thread 3067313508 created [00:47:31]Thread 3067456868 joined [00:47:31]Waiting for new connection... [00:47:31] Sock 9.Parse request [00:47:31]Sock 9.Check first char [00:47:31]Sock 9.First char is OK [00:47:31]request: POST /json_proto HTTP/1.0 [00:47:31]Method: POST [00:47:31]URL: /json_proto [00:47:31]Method is POST - this is cgi request [00:47:31]url: /json_proto [00:47:31]query_string will be loaded in cgi processing [00:47:31]execute_cgi json_proto POST (null) [00:47:31]execute_cgi path=json_proto method=POST [00:47:31]POST find Content-Length [00:47:31]Host: 172.17.50.3:8080 [00:47:31]Content-Length: 683 [00:47:31]Content-Type: application/json [00:47:31] [00:47:31]POST finish read [00:47:31]Found Content-Length = 683 [00:47:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 16.510, "sum" : 642.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 642.00, "payments": [ { "type": 0, "sum" : 642.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:47:31]execute_script... [00:47: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)2885358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 16.510, "sum" : 642.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 642.00, "payments": [ { "type": 0, "sum" : 642.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:47:31]POST & json_proto [00:47:31]process_json_proto [00:47:31]json parsed OK: [00:47:31]protocol is kg_v1.0 [00:47:31]action value=close_receipt [00:47:31]process_action close_receipt [00:47:31]cmd_close_receipt [00:47:31]MH_GetDate [00:47:31]Write to MH i2c: F0 00 00 3B 05 2F [00:47:31]Write i2c OK [00:47:31]MH_I2C_Read... [00:47:31]Read from MH i2c: F0 [00:47:31]MH_I2C_Read... [00:47:31]Read from MH i2c: F0 09 00 [00:47:31]MH_I2C_Read... [00:47:31]Read from MH i2c: F0 09 00 3B 05 00 A4 A4 15 67 6B 98 1E 66 83 [00:47:31]GetLastDocTimeStamp 1729471398 [00:47:31]current date 1729471652 [00:47:31]FM_GetShiftState [00:47:31]SAM_PROTO_GetShiftState [00:47:31]wFMCommunicate request_size=4 [00:47:31]MH_SAM_APDU [00:47:31]CAPDU: 80 13 01 00 [00:47:31]Write to MH i2c: E2 08 00 3C 05 80 13 01 00 00 00 00 00 BE [00:47:31]Write i2c OK [00:47:31]MH_I2C_Read... [00:47:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:47:31]Read from MH i2c: E2 [00:47:31]MH_I2C_Read... [00:47:31]Read from MH i2c: E2 0E 00 [00:47:31]MH_I2C_Read... [00:47:31]Read from MH i2c: E2 0E 00 3C 05 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 EA [00:47:31]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [00:47:31]wFMCommunicate OK [00:47:31]SAM_PROTO_GetShiftState done [00:47:31]FM_GetShiftState done [00:47:31]opened in 1729469703 [00:47:31]opened+sec_in_day 1729556103 [00:47:31]quantity*price = 64223 [00:47:31]sum+1 = 64225 [00:47:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 642.00 Внесено: 3000.00 СДАЧА: 2358.00 НСП 1% : 5.68 НДС 12% : 68.20 Наличными: 642.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 11 21.10.2024 00:47 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69621 ФПД: 84899033778920 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T004732&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69621&fm=84899033778920&tin=02508201610067®Number=0000000000156251&sum=64200 [00:47:32]StoreToDocumentArchive [00:47:32]shift 194 fd 69621 [00:47:32]save to /storage/0194/doc_00069621 [00:47:32]save last doc name /storage/0194/doc_00069621 to /storage/kkm_last_doc_name [00:47:32]save OK [00:47:32]Clear old archive folders... [00:47:32]ProcessDocumentItem done err = 0, tmpTLVsize=250 [00:47:32]tlvbuf is 00C1FE90 [00:47:32]SAM_PROTO_ClearQueue [00:47:32]wFMCommunicate request_size=4 [00:47:32]MH_SAM_APDU [00:47:32]CAPDU: 80 09 00 00 [00:47:32]Write to MH i2c: E2 08 00 49 05 80 09 00 00 00 00 00 00 C0 [00:47:32]Write i2c OK [00:47:32]MH_I2C_Read... [00:47:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:47:32]Read from MH i2c: E2 [00:47:32]MH_I2C_Read... [00:47:32]Read from MH i2c: E2 03 00 [00:47:32]MH_I2C_Read... [00:47:32]Read from MH i2c: E2 03 00 49 05 00 90 00 C2 [00:47:32]RAPDU: 90 00 [00:47:32]wFMCommunicate OK [00:47:32]SAM_PROTO_ClearQueue done [00:47:32]KKMCreateOFDPacket [00:47:32]OFDProtocolAddRootSTLVToBuf [00:47:32]FM_MakeSignedData [00:47:32]FM_MakeSignedData [00:47:32]SAM_PROTO_SignData [00:47:32]wFMCommunicate request_size=4 [00:47:32]MH_SAM_APDU [00:47:32]CAPDU: 80 0D 01 02 [00:47:32]Write to MH i2c: E2 08 00 4A 05 80 0D 01 02 00 00 00 00 C8 [00:47:32]Write i2c OK [00:47:32]MH_I2C_Read... [00:47:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:47:32]Read from MH i2c: E2 [00:47:32]MH_I2C_Read... [00:47:32]Read from MH i2c: E2 03 00 [00:47:32]MH_I2C_Read... [00:47:32]Read from MH i2c: E2 03 00 4A 05 00 90 00 C3 [00:47:32]RAPDU: 90 00 [00:47:32]wFMCommunicate OK [00:47:32]wFMCommunicate request_size=255 [00:47:32]MH_SAM_APDU [00:47:32]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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 7E 40 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 E0 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A4 1A 00 00 00 00 07 04 06 00 C8 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 A4 A4 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F5 0F 01 00 35 04 06 00 4D 37 [00:47:32]Write to MH i2c: E2 02 01 4B 05 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 7E 40 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 E0 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A4 1A 00 00 00 00 07 04 06 00 C8 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 A4 A4 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F5 0F 01 00 35 04 06 00 4D 37 00 00 E9 [00:47:32]Write i2c OK [00:47:32]MH_I2C_Read... [00:47:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:47:33]Read from MH i2c: E2 [00:47:33]MH_I2C_Read... [00:47:33]Read from MH i2c: E2 03 00 [00:47:33]MH_I2C_Read... [00:47:33]Read from MH i2c: E2 03 00 4B 05 00 90 00 C4 [00:47:33]RAPDU: 90 00 [00:47:33]wFMCommunicate OK [00:47:33]wFMCommunicate request_size=9 [00:47:33]MH_SAM_APDU [00:47:33]CAPDU: 80 0D 02 02 04 18 C0 0A E8 [00:47:33]Write to MH i2c: E2 0C 00 4C 05 80 0D 02 02 04 00 18 C0 0A E8 00 00 9D [00:47:33]Write i2c OK [00:47:33]MH_I2C_Read... [00:47:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:47:33]Read from MH i2c: E2 [00:47:33]MH_I2C_Read... [00:47:33]Read from MH i2c: E2 03 00 [00:47:33]MH_I2C_Read... [00:47:33]Read from MH i2c: E2 03 00 4C 05 00 90 00 C5 [00:47:33]RAPDU: 90 00 [00:47:33]wFMCommunicate OK [00:47:33]wFMCommunicate request_size=4 [00:47:33]MH_SAM_APDU [00:47:33]CAPDU: 80 0D 03 02 [00:47:33]Write to MH i2c: E2 08 00 4D 05 80 0D 03 02 00 00 00 00 CD [00:47:33]Write i2c OK [00:47:33]MH_I2C_Read... [00:47:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:47:33]Read from MH i2c: E2 [00:47:33]MH_I2C_Read... [00:47:33]Read from MH i2c: E2 0B 00 [00:47:33]MH_I2C_Read... [00:47:33]Read from MH i2c: E2 0B 00 4D 05 00 A1 01 54 11 CD 44 B5 83 90 00 1E [00:47:33]RAPDU: A1 01 54 11 CD 44 B5 83 90 00 [00:47:33]wFMCommunicate OK [00:47:33]SAM_PROTO_SignData done [00:47:33]FM_MakeSignedData done [00:47:33]CreateOFDProtocolMessage [00:47:33]wFMCommunicate request_size=4 [00:47:33]MH_SAM_APDU [00:47:33]CAPDU: 80 11 00 00 [00:47:33]Write to MH i2c: E2 08 00 4E 05 80 11 00 00 00 00 00 00 CD [00:47:33]Write i2c OK [00:47:33]MH_I2C_Read... [00:47:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:47:33]Read from MH i2c: E2 [00:47:33]MH_I2C_Read... [00:47:33]Read from MH i2c: E2 17 00 [00:47:33]MH_I2C_Read... [00:47:33]Read from MH i2c: E2 17 00 4E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 1F [00:47:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:47:33]wFMCommunicate OK [00:47:33]CreateOFDProtocolMessage done [00:47:33]OFDSenderStorePacket 69621 [00:47:33]StoreOFDPacket docnum=69621 [00:47:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 D9 67 06 01 9F 50 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 7E 40 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 E0 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A4 1A 00 00 00 00 07 04 06 00 C8 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 A4 A4 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F5 0F 01 00 35 04 06 00 4D 37 18 C0 0A E8 A1 01 54 11 CD 44 B5 83 [00:47:33]CheckFolder [00:47:33]dirname=/storage/ofd_packets [00:47:33]CheckFolder done [00:47:33]ProducePacketName [00:47:33]name=ofd_packets/00069621 [00:47:33]NVStorageSaveData ofd_packets/00069621 [00:47:33]File name is /storage/ofd_packets/00069621 [00:47:33]Write 300 bytes [00:47:33]NVStorageSaveData done [00:47:33]OFDSenderStorePacket done [00:47:33]KKMCreateOFDPacket done [00:47:33]NVStorageSaveData kkm_last_timestamp [00:47:33]File name is /storage/kkm_last_timestamp [00:47:33]Write 4 bytes [00:47:33]NVStorageSaveData done [00:47:33]ExternCall_PrintAddStr [00:47:33]wPrintStart [00:47:33]Write to MH i2c: 01 00 00 4F 05 54 [00:47:33]Write i2c OK [00:47:33]MH_I2C_Read... [00:47:33]Read from MH i2c: 01 [00:47:33]MH_I2C_Read... [00:47:33]Read from MH i2c: 01 07 00 [00:47:33]MH_I2C_Read... [00:47:33]Read from MH i2c: 01 07 00 4F 05 00 00 00 00 00 FF 0F 69 [00:47:33]RasterBufferAndPrint [00:47:33]line Счет N : (1)2885358 [00:47:33]line ИНН: 02508201610067 [00:47:33]line Контрольно-Кассовый Чек [00:47:33]line ПРОДАЖА [00:47:33]line ТРК (МРК, ГНК) : 71 [00:47:33]line Товар: 2711129700 [00:47:33]line ГАЗ-К-3 [00:47:33]line 16.510 * 38.90 [00:47:33]line = 642.24 [00:47:33]line НДС 12% НСП 1% [00:47:33]line > о реализуемом товаре [00:47:33]line ОКРУГЛЕНИЕ: -0.24 [00:47:33]line ИТОГО: 642.00 [00:47:33]line Внесено: 3000.00 [00:47:33]line СДАЧА: 2358.00 [00:47:33]line НСП 1% : 5.68 [00:47:33]line НДС 12% : 68.20 [00:47:33]line Наличными: 642.00 [00:47:33]line Безнал.: 0.00 [00:47:33]line Место: АЗС № 85 "Партнер Нефть" [00:47:33]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [00:47:33]line СНО: Общий режим [00:47:33]line Чек 11 21.10.2024 00:47 [00:47:33]line Смена: 194 ФФД: 1.0 [00:47:33]line ЗНМ: 0300000167 [00:47:33]line РНМ: 0000000000156251 [00:47:33]line Версия ККМ: v1.0 [00:47:33]line ФМ: 0000000000963346 [00:47:33]line ФД: 69621 [00:47:33]line ФПД: 84899033778920 [00:47:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T004732&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69621&fm=84899033778920&tin=02508201610067®Number=0000000000156251&sum=64200 [00:47:33]OFD Sender: Processing packet 69621 [packets to send 18, broken 17] [00:47:33]ProducePacketName [00:47:33]name=ofd_packets/00069621 [00:47:33]OFD Sender: To server: pG, [00:47:33]CommunicateWithHost lk.salyk.kg:30040 [00:47:33]ConnectInit lk.salyk.kg [00:47:33]written 0, free lines is 4095 [00:47:33]Connected sock=10 [00:47:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 D9 67 06 01 9F 50 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 7E 40 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 E0 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A4 1A 00 00 00 00 07 04 06 00 C8 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 A4 A4 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F5 0F 01 00 35 04 06 00 4D 37 18 C0 0A E8 A1 01 54 11 CD 44 B5 83 [00:47:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 D8 6D 47 00 62 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F5 0F 01 00 F4 03 04 00 49 4E 15 67 B6 04 01 00 00 FB 47 F9 9B E6 E8 2F 9B [00:47:33]CommunicateWithHost err = 0 [00:47:33]CheckOFDResponse [00:47:33]1017 (14) - 77093643461234 [00:47:33]1041 (16) - 0000000000963346 [00:47:33]1040 (4) - 69621 [00:47:33]1012 (4) - 20.10.2024 18:39 [00:47:33]1206 (1) - 0 [00:47:33]OFD Sender: Remove packet 69621 [00:47:33]ProducePacketName [00:47:33]name=ofd_packets/00069621 [00:47:33]NVStorageDeleteData [00:47:34]Write to MH i2c: 01 00 00 7A 05 7F [00:47:34]Write i2c OK [00:47:34]MH_I2C_Read... [00:47:34]Read from MH i2c: 01 [00:47:34]MH_I2C_Read... [00:47:34]Read from MH i2c: 01 07 00 [00:47:34]MH_I2C_Read... [00:47:34]Read from MH i2c: 01 07 00 7A 05 00 00 00 00 00 EA 0C 7C [00:47:34]RasterBufferAndPrint [00:47:34]line [00:47:34]line [00:47:34]line [00:47:34]line [00:47:34]line [00:47:34]written 0, free lines is 3312 [00:47:34]MH_Cut [00:47:34]Write to MH i2c: D1 01 00 81 05 01 58 [00:47:34]Write i2c OK [00:47:34]MH_I2C_Read... [00:47:34]Read from MH i2c: D1 [00:47:34]MH_I2C_Read... [00:47:34]Read from MH i2c: D1 01 00 [00:47:34]MH_I2C_Read... [00:47:34]Read from MH i2c: D1 01 00 81 05 00 57 [00:47:34]Write to MH i2c: 01 00 00 82 05 87 [00:47:34]Write i2c OK [00:47:34]MH_I2C_Read... [00:47:34]OFD Sender: No OFD packet to send [00:47:34]*** Cut start [00:47:34]*** Partial cut [00:47:34]*** CUTSNS_PIN = 1 [00:47:34]*** CUTSNS_PIN = 0 [00:47:34]*** Brake cut motor [00:47:35]Read from MH i2c: 01 [00:47:35]MH_I2C_Read... [00:47:35]*** Stop cut motor [00:47:35]*** Cut end [00:47:35]Read from MH i2c: 01 07 00 [00:47:35]MH_I2C_Read... [00:47:35]Read from MH i2c: 01 07 00 82 05 00 00 00 00 00 FF 0F 9C [00:47:35]process_action close_receipt done [00:47:35]requested_data is exist [00:47:35]produce_requested_data [00:47:35]requested_item fm.sn is exist - process it [00:47:35]wFMCommunicate request_size=4 [00:47:35]MH_SAM_APDU [00:47:35]CAPDU: 80 11 00 00 [00:47:35]Write to MH i2c: E2 08 00 83 05 80 11 00 00 00 00 00 00 02 [00:47:35]Write i2c OK [00:47:35]MH_I2C_Read... [00:47:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:47:35]Read from MH i2c: E2 [00:47:35]MH_I2C_Read... [00:47:35]Read from MH i2c: E2 17 00 [00:47:35]MH_I2C_Read... [00:47:35]Read from MH i2c: E2 17 00 83 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 54 [00:47:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:47:35]wFMCommunicate OK [00:47:35]requested_item fd.num is exist - process it [00:47:35]SAM_PROTO_GetFieldsCounters [00:47:35]wFMCommunicate request_size=4 [00:47:35]MH_SAM_APDU [00:47:35]CAPDU: 80 13 00 00 [00:47:35]Write to MH i2c: E2 08 00 84 05 80 13 00 00 00 00 00 00 05 [00:47:35]Write i2c OK [00:47:35]MH_I2C_Read... [00:47:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:47:35]Read from MH i2c: E2 [00:47:35]MH_I2C_Read... [00:47:35]Read from MH i2c: E2 62 00 [00:47:35]MH_I2C_Read... [00:47:35]Read from MH i2c: E2 62 00 84 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F5 0F 01 00 0E 04 04 00 C2 00 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [00:47:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F5 0F 01 00 0E 04 04 00 C2 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 [00:47:35]wFMCommunicate OK [00:47:35]SAM_PROTO_GetFieldsCounters done [00:47:35]requested_item shift.num is exist - process it [00:47:35]requested_item shift.opened is exist - process it [00:47:35]req_shift_opened [00:47:35]FM_GetShiftState [00:47:35]SAM_PROTO_GetShiftState [00:47:35]wFMCommunicate request_size=4 [00:47:35]MH_SAM_APDU [00:47:35]CAPDU: 80 13 01 00 [00:47:35]Write to MH i2c: E2 08 00 85 05 80 13 01 00 00 00 00 00 07 [00:47:35]Write i2c OK [00:47:35]MH_I2C_Read... [00:47:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:47:35]Read from MH i2c: E2 [00:47:35]MH_I2C_Read... [00:47:35]Read from MH i2c: E2 0E 00 [00:47:35]MH_I2C_Read... [00:47:35]Read from MH i2c: E2 0E 00 85 05 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 33 [00:47:35]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [00:47:35]wFMCommunicate OK [00:47:35]SAM_PROTO_GetShiftState done [00:47:35]FM_GetShiftState done [00:47:35]req_shift_opened done [00:47:35]requested_item shift.open_date is exist - process it [00:47:35]req_shift_open_date [00:47:35]req_shift_open_date done [00:47:35]produce_requested_data done [00:47:35]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69621,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [00:47:35]process_action_free close_receipt [00:47:35]json_value_free [00:47:35]json_value_free done [00:47:35]process_json_proto returns [00:47:35]Send response to host [00:47:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69621,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [00:47:35]free response buf [00:47:35]execute_script done [00:47:35]execute_script returns [00:47:35]free content buf [00:47:35]Sock 9.Close socket [00:47:35]Sock 9.Thread stoped [00:47:39]OFD Sender: No OFD packet to send [00:47:44]OFD Sender: No OFD packet to send [00:47:49]OFD Sender: No OFD packet to send [00:47:54]OFD Sender: No OFD packet to send [00:47:59]OFD Sender: No OFD packet to send [00:48:04]OFD Sender: No OFD packet to send [00:48:09]OFD Sender: No OFD packet to send [00:48:14]OFD Sender: No OFD packet to send [00:48:19]OFD Sender: No OFD packet to send [00:48:24]OFD Sender: No OFD packet to send [00:48:29]OFD Sender: No OFD packet to send [00:48:34]OFD Sender: No OFD packet to send [00:48:39]OFD Sender: No OFD packet to send [00:48:44]OFD Sender: No OFD packet to send [00:48:49]OFD Sender: No OFD packet to send [00:48:54]OFD Sender: No OFD packet to send [00:48:59]OFD Sender: No OFD packet to send [00:49:04]OFD Sender: No OFD packet to send [00:49:09]OFD Sender: No OFD packet to send [00:49:14]OFD Sender: No OFD packet to send [00:49:19]OFD Sender: No OFD packet to send [00:49:24]OFD Sender: No OFD packet to send [00:49:29]OFD Sender: No OFD packet to send [00:49:34]OFD Sender: No OFD packet to send [00:49:39]OFD Sender: No OFD packet to send [00:49:44]OFD Sender: No OFD packet to send [00:49:49]OFD Sender: No OFD packet to send [00:49:54]OFD Sender: No OFD packet to send [00:49:59]OFD Sender: No OFD packet to send [00:50:04]OFD Sender: No OFD packet to send [00:50:09]OFD Sender: No OFD packet to send [00:50:14]OFD Sender: No OFD packet to send [00:50:19]OFD Sender: No OFD packet to send [00:50:24]OFD Sender: No OFD packet to send [00:50:28]accept exits with 8 [00:50:28]New connection [00:50:28]New thread 3067456868 created [00:50:28]Thread 3067313508 joined [00:50:28]Waiting for new connection... [00:50:28] Sock 8.Parse request [00:50:28]Sock 8.Check first char [00:50:28]Sock 8.First char is OK [00:50:28]request: POST /json_proto HTTP/1.0 [00:50:28]Method: POST [00:50:28]URL: /json_proto [00:50:28]Method is POST - this is cgi request [00:50:28]url: /json_proto [00:50:28]query_string will be loaded in cgi processing [00:50:28]execute_cgi json_proto POST (null) [00:50:28]execute_cgi path=json_proto method=POST [00:50:28]POST find Content-Length [00:50:28]Host: 172.17.50.3:8080 [00:50:28]Content-Length: 678 [00:50:28]Content-Type: application/json [00:50:28] [00:50:28]POST finish read [00:50:28]Found Content-Length = 678 [00:50:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:50:28]execute_script... [00:50:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:50:28]POST & json_proto [00:50:28]process_json_proto [00:50:28]json parsed OK: [00:50:28]protocol is kg_v1.0 [00:50:28]action value=close_receipt [00:50:28]process_action close_receipt [00:50:28]cmd_close_receipt [00:50:28]MH_GetDate [00:50:28]Write to MH i2c: F0 00 00 86 05 7A [00:50:28]Write i2c OK [00:50:28]MH_I2C_Read... [00:50:28]Read from MH i2c: F0 [00:50:28]MH_I2C_Read... [00:50:28]Read from MH i2c: F0 09 00 [00:50:28]MH_I2C_Read... [00:50:28]Read from MH i2c: F0 09 00 86 05 00 55 A5 15 67 6B 98 1E 66 80 [00:50:28]GetLastDocTimeStamp 1729471652 [00:50:28]current date 1729471829 [00:50:28]FM_GetShiftState [00:50:28]SAM_PROTO_GetShiftState [00:50:28]wFMCommunicate request_size=4 [00:50:28]MH_SAM_APDU [00:50:28]CAPDU: 80 13 01 00 [00:50:28]Write to MH i2c: E2 08 00 87 05 80 13 01 00 00 00 00 00 09 [00:50:28]Write i2c OK [00:50:28]MH_I2C_Read... [00:50:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:50:28]Read from MH i2c: E2 [00:50:28]MH_I2C_Read... [00:50:28]Read from MH i2c: E2 0E 00 [00:50:28]MH_I2C_Read... [00:50:28]Read from MH i2c: E2 0E 00 87 05 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 35 [00:50:28]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [00:50:28]wFMCommunicate OK [00:50:28]SAM_PROTO_GetShiftState done [00:50:28]FM_GetShiftState done [00:50:28]opened in 1729469703 [00:50:28]opened+sec_in_day 1729556103 [00:50:28]quantity*price = 40006 [00:50:28]sum+1 = 40007 [00:50:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 12 21.10.2024 00:50 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69622 ФПД: 133643340916002 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T005029&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69622&fm=133643340916002&tin=02508201610067®Number=0000000000156251&sum=40000 [00:50:29]StoreToDocumentArchive [00:50:29]shift 194 fd 69622 [00:50:29]save to /storage/0194/doc_00069622 [00:50:29]save last doc name /storage/0194/doc_00069622 to /storage/kkm_last_doc_name [00:50:29]save OK [00:50:29]Clear old archive folders... [00:50:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:50:29]tlvbuf is 00C22520 [00:50:29]SAM_PROTO_ClearQueue [00:50:29]wFMCommunicate request_size=4 [00:50:29]MH_SAM_APDU [00:50:29]CAPDU: 80 09 00 00 [00:50:29]Write to MH i2c: E2 08 00 94 05 80 09 00 00 00 00 00 00 0B [00:50:29]Write i2c OK [00:50:29]MH_I2C_Read... [00:50:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:50:29]Read from MH i2c: E2 [00:50:29]MH_I2C_Read... [00:50:29]Read from MH i2c: E2 03 00 [00:50:29]MH_I2C_Read... [00:50:29]Read from MH i2c: E2 03 00 94 05 00 90 00 0D [00:50:29]RAPDU: 90 00 [00:50:29]wFMCommunicate OK [00:50:29]SAM_PROTO_ClearQueue done [00:50:29]KKMCreateOFDPacket [00:50:29]OFDProtocolAddRootSTLVToBuf [00:50:29]FM_MakeSignedData [00:50:29]FM_MakeSignedData [00:50:29]SAM_PROTO_SignData [00:50:29]wFMCommunicate request_size=4 [00:50:29]MH_SAM_APDU [00:50:29]CAPDU: 80 0D 01 02 [00:50:29]Write to MH i2c: E2 08 00 95 05 80 0D 01 02 00 00 00 00 13 [00:50:29]Write i2c OK [00:50:29]MH_I2C_Read... [00:50:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:50:29]Read from MH i2c: E2 [00:50:29]MH_I2C_Read... [00:50:29]Read from MH i2c: E2 03 00 [00:50:29]MH_I2C_Read... [00:50:29]Read from MH i2c: E2 03 00 95 05 00 90 00 0E [00:50:29]RAPDU: 90 00 [00:50:29]wFMCommunicate OK [00:50:29]wFMCommunicate request_size=255 [00:50:29]MH_SAM_APDU [00:50:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 55 A5 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F6 0F 01 00 35 04 06 00 79 [00:50:29]Write to MH i2c: E2 02 01 96 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 55 A5 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F6 0F 01 00 35 04 06 00 79 00 00 2E [00:50:29]Write i2c OK [00:50:29]MH_I2C_Read... [00:50:29]OFD Sender: No OFD packet to send [00:50:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:50:29]Read from MH i2c: E2 [00:50:29]MH_I2C_Read... [00:50:29]Read from MH i2c: E2 03 00 [00:50:29]MH_I2C_Read... [00:50:29]Read from MH i2c: E2 03 00 96 05 00 90 00 0F [00:50:29]RAPDU: 90 00 [00:50:29]wFMCommunicate OK [00:50:29]wFMCommunicate request_size=10 [00:50:29]MH_SAM_APDU [00:50:29]CAPDU: 80 0D 02 02 05 8C 43 DC A5 22 [00:50:29]Write to MH i2c: E2 0D 00 97 05 80 0D 02 02 05 00 8C 43 DC A5 22 00 00 92 [00:50:29]Write i2c OK [00:50:29]MH_I2C_Read... [00:50:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:50:29]Read from MH i2c: E2 [00:50:29]MH_I2C_Read... [00:50:29]Read from MH i2c: E2 03 00 [00:50:29]MH_I2C_Read... [00:50:29]Read from MH i2c: E2 03 00 97 05 00 90 00 10 [00:50:29]RAPDU: 90 00 [00:50:29]wFMCommunicate OK [00:50:29]wFMCommunicate request_size=4 [00:50:29]MH_SAM_APDU [00:50:29]CAPDU: 80 0D 03 02 [00:50:29]Write to MH i2c: E2 08 00 98 05 80 0D 03 02 00 00 00 00 18 [00:50:29]Write i2c OK [00:50:29]MH_I2C_Read... [00:50:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:50:29]Read from MH i2c: E2 [00:50:29]MH_I2C_Read... [00:50:29]Read from MH i2c: E2 0B 00 [00:50:29]MH_I2C_Read... [00:50:29]Read from MH i2c: E2 0B 00 98 05 00 CC 5C A2 22 7B F2 E8 71 90 00 CB [00:50:29]RAPDU: CC 5C A2 22 7B F2 E8 71 90 00 [00:50:29]wFMCommunicate OK [00:50:29]SAM_PROTO_SignData done [00:50:29]FM_MakeSignedData done [00:50:29]CreateOFDProtocolMessage [00:50:29]wFMCommunicate request_size=4 [00:50:29]MH_SAM_APDU [00:50:29]CAPDU: 80 11 00 00 [00:50:29]Write to MH i2c: E2 08 00 99 05 80 11 00 00 00 00 00 00 18 [00:50:29]Write i2c OK [00:50:29]MH_I2C_Read... [00:50:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:50:29]Read from MH i2c: E2 [00:50:29]MH_I2C_Read... [00:50:29]Read from MH i2c: E2 17 00 [00:50:29]MH_I2C_Read... [00:50:29]Read from MH i2c: E2 17 00 99 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 6A [00:50:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:50:29]wFMCommunicate OK [00:50:29]CreateOFDProtocolMessage done [00:50:29]OFDSenderStorePacket 69622 [00:50:29]StoreOFDPacket docnum=69622 [00:50:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 DB 92 07 01 81 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 55 A5 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F6 0F 01 00 35 04 06 00 79 8C 43 DC A5 22 CC 5C A2 22 7B F2 E8 71 [00:50:29]CheckFolder [00:50:29]dirname=/storage/ofd_packets [00:50:29]CheckFolder done [00:50:29]ProducePacketName [00:50:29]name=ofd_packets/00069622 [00:50:29]NVStorageSaveData ofd_packets/00069622 [00:50:29]File name is /storage/ofd_packets/00069622 [00:50:29]Write 301 bytes [00:50:29]NVStorageSaveData done [00:50:29]OFDSenderStorePacket done [00:50:29]KKMCreateOFDPacket done [00:50:29]NVStorageSaveData kkm_last_timestamp [00:50:29]File name is /storage/kkm_last_timestamp [00:50:29]Write 4 bytes [00:50:29]NVStorageSaveData done [00:50:29]ExternCall_PrintAddStr [00:50:29]wPrintStart [00:50:29]Write to MH i2c: 01 00 00 9A 05 9F [00:50:29]Write i2c OK [00:50:29]MH_I2C_Read... [00:50:29]Read from MH i2c: 01 [00:50:29]MH_I2C_Read... [00:50:29]Read from MH i2c: 01 07 00 [00:50:29]MH_I2C_Read... [00:50:29]Read from MH i2c: 01 07 00 9A 05 00 00 00 00 00 FF 0F B4 [00:50:29]RasterBufferAndPrint [00:50:29]line Счет N : (1)2885359 [00:50:29]line ИНН: 02508201610067 [00:50:29]line Контрольно-Кассовый Чек [00:50:29]line ПРОДАЖА [00:50:29]line ТРК (МРК, ГНК) : 12 [00:50:29]line Товар: 2710124130 [00:50:29]line Аи-92-К-5 [00:50:29]line 5.980 * 66.90 [00:50:29]line = 400.06 [00:50:29]line НДС 12% НСП 1% [00:50:29]line > о реализуемом товаре [00:50:29]line ОКРУГЛЕНИЕ: -0.06 [00:50:29]line ИТОГО: 400.00 [00:50:29]line Внесено: 400.00 [00:50:29]line СДАЧА: 0.00 [00:50:29]line НСП 1% : 3.54 [00:50:29]line НДС 12% : 42.48 [00:50:29]line Наличными: 400.00 [00:50:29]line Безнал.: 0.00 [00:50:29]line Место: АЗС № 85 "Партнер Нефть" [00:50:29]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [00:50:29]line СНО: Общий режим [00:50:30]line Чек 12 21.10.2024 00:50 [00:50:30]line Смена: 194 ФФД: 1.0 [00:50:30]line ЗНМ: 0300000167 [00:50:30]line РНМ: 0000000000156251 [00:50:30]line Версия ККМ: v1.0 [00:50:30]line ФМ: 0000000000963346 [00:50:30]line ФД: 69622 [00:50:30]line ФПД: 133643340916002 [00:50:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T005029&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69622&fm=133643340916002&tin=02508201610067®Number=0000000000156251&sum=40000 [00:50:30]OFD Sender: Processing packet 69622 [packets to send 18, broken 17] [00:50:30]ProducePacketName [00:50:30]name=ofd_packets/00069622 [00:50:30]OFD Sender: To server: pG, [00:50:30]CommunicateWithHost lk.salyk.kg:30040 [00:50:30]ConnectInit lk.salyk.kg [00:50:30]written 0, free lines is 4095 [00:50:30]Connected sock=10 [00:50:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 DB 92 07 01 81 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 55 A5 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F6 0F 01 00 35 04 06 00 79 8C 43 DC A5 22 CC 5C A2 22 7B F2 E8 71 [00:50:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 27 0E 47 00 5E 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F6 0F 01 00 F4 03 04 00 FA 4E 15 67 B6 04 01 00 00 42 87 C4 44 E1 95 F1 17 [00:50:30]CommunicateWithHost err = 0 [00:50:30]CheckOFDResponse [00:50:30]1017 (14) - 77093643461234 [00:50:30]1041 (16) - 0000000000963346 [00:50:30]1040 (4) - 69622 [00:50:30]1012 (4) - 20.10.2024 18:42 [00:50:30]1206 (1) - 0 [00:50:30]OFD Sender: Remove packet 69622 [00:50:30]ProducePacketName [00:50:30]name=ofd_packets/00069622 [00:50:30]NVStorageDeleteData [00:50:30]Write to MH i2c: 01 00 00 C5 05 CA [00:50:30]Write i2c OK [00:50:30]MH_I2C_Read... [00:50:30]Read from MH i2c: 01 [00:50:30]MH_I2C_Read... [00:50:30]Read from MH i2c: 01 07 00 [00:50:30]MH_I2C_Read... [00:50:30]Read from MH i2c: 01 07 00 C5 05 00 00 00 00 00 ED 0C CA [00:50:30]RasterBufferAndPrint [00:50:30]line [00:50:30]line [00:50:30]line [00:50:30]line [00:50:30]line [00:50:30]written 0, free lines is 3315 [00:50:30]MH_Cut [00:50:30]Write to MH i2c: D1 01 00 CC 05 01 A3 [00:50:30]Write i2c OK [00:50:30]MH_I2C_Read... [00:50:30]Read from MH i2c: D1 [00:50:30]MH_I2C_Read... [00:50:30]Read from MH i2c: D1 01 00 [00:50:30]MH_I2C_Read... [00:50:30]Read from MH i2c: D1 01 00 CC 05 00 A2 [00:50:30]Write to MH i2c: 01 00 00 CD 05 D2 [00:50:30]Write i2c OK [00:50:30]MH_I2C_Read... [00:50:30]OFD Sender: No OFD packet to send [00:50:31]*** Cut start [00:50:31]*** Partial cut [00:50:31]*** CUTSNS_PIN = 1 [00:50:31]*** CUTSNS_PIN = 0 [00:50:31]*** Brake cut motor [00:50:31]Read from MH i2c: 01 [00:50:31]*** Stop cut motor [00:50:31]*** Cut end [00:50:31]MH_I2C_Read... [00:50:31]Read from MH i2c: 01 07 00 [00:50:31]MH_I2C_Read... [00:50:31]Read from MH i2c: 01 07 00 CD 05 00 00 00 00 00 FF 0F E7 [00:50:31]process_action close_receipt done [00:50:31]requested_data is exist [00:50:31]produce_requested_data [00:50:31]requested_item fm.sn is exist - process it [00:50:31]wFMCommunicate request_size=4 [00:50:31]MH_SAM_APDU [00:50:31]CAPDU: 80 11 00 00 [00:50:31]Write to MH i2c: E2 08 00 CE 05 80 11 00 00 00 00 00 00 4D [00:50:31]Write i2c OK [00:50:31]MH_I2C_Read... [00:50:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:50:31]Read from MH i2c: E2 [00:50:31]MH_I2C_Read... [00:50:31]Read from MH i2c: E2 17 00 [00:50:31]MH_I2C_Read... [00:50:31]Read from MH i2c: E2 17 00 CE 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 9F [00:50:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:50:31]wFMCommunicate OK [00:50:31]requested_item fd.num is exist - process it [00:50:31]SAM_PROTO_GetFieldsCounters [00:50:31]wFMCommunicate request_size=4 [00:50:31]MH_SAM_APDU [00:50:31]CAPDU: 80 13 00 00 [00:50:31]Write to MH i2c: E2 08 00 CF 05 80 13 00 00 00 00 00 00 50 [00:50:31]Write i2c OK [00:50:31]MH_I2C_Read... [00:50:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:50:32]Read from MH i2c: E2 [00:50:32]MH_I2C_Read... [00:50:32]Read from MH i2c: E2 62 00 [00:50:32]MH_I2C_Read... [00:50:32]Read from MH i2c: E2 62 00 CF 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F6 0F 01 00 0E 04 04 00 C2 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 57 [00:50:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F6 0F 01 00 0E 04 04 00 C2 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 [00:50:32]wFMCommunicate OK [00:50:32]SAM_PROTO_GetFieldsCounters done [00:50:32]requested_item shift.num is exist - process it [00:50:32]requested_item shift.opened is exist - process it [00:50:32]req_shift_opened [00:50:32]FM_GetShiftState [00:50:32]SAM_PROTO_GetShiftState [00:50:32]wFMCommunicate request_size=4 [00:50:32]MH_SAM_APDU [00:50:32]CAPDU: 80 13 01 00 [00:50:32]Write to MH i2c: E2 08 00 D0 05 80 13 01 00 00 00 00 00 52 [00:50:32]Write i2c OK [00:50:32]MH_I2C_Read... [00:50:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:50:32]Read from MH i2c: E2 [00:50:32]MH_I2C_Read... [00:50:32]Read from MH i2c: E2 0E 00 [00:50:32]MH_I2C_Read... [00:50:32]Read from MH i2c: E2 0E 00 D0 05 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 7E [00:50:32]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [00:50:32]wFMCommunicate OK [00:50:32]SAM_PROTO_GetShiftState done [00:50:32]FM_GetShiftState done [00:50:32]req_shift_opened done [00:50:32]requested_item shift.open_date is exist - process it [00:50:32]req_shift_open_date [00:50:32]req_shift_open_date done [00:50:32]produce_requested_data done [00:50:32]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69622,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [00:50:32]process_action_free close_receipt [00:50:32]json_value_free [00:50:32]json_value_free done [00:50:32]process_json_proto returns [00:50:32]Send response to host [00:50:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69622,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [00:50:32]free response buf [00:50:32]execute_script done [00:50:32]execute_script returns [00:50:32]free content buf [00:50:32]Sock 8.Close socket [00:50:32]Sock 8.Thread stoped [00:50:35]OFD Sender: No OFD packet to send [00:50:40]OFD Sender: No OFD packet to send [00:50:45]OFD Sender: No OFD packet to send [00:50:50]OFD Sender: No OFD packet to send [00:50:55]OFD Sender: No OFD packet to send [00:51:00]OFD Sender: No OFD packet to send [00:51:05]OFD Sender: No OFD packet to send [00:51:06]accept exits with 9 [00:51:06]New connection [00:51:06]New thread 3067313508 created [00:51:06]Thread 3067456868 joined [00:51:06]Waiting for new connection... [00:51:06] Sock 9.Parse request [00:51:06]Sock 9.Check first char [00:51:06]Sock 9.First char is OK [00:51:06]request: POST /json_proto HTTP/1.0 [00:51:06]Method: POST [00:51:06]URL: /json_proto [00:51:06]Method is POST - this is cgi request [00:51:06]url: /json_proto [00:51:06]query_string will be loaded in cgi processing [00:51:06]execute_cgi json_proto POST (null) [00:51:06]execute_cgi path=json_proto method=POST [00:51:06]POST find Content-Length [00:51:06]Host: 172.17.50.3:8080 [00:51:06]Content-Length: 683 [00:51:06]Content-Type: application/json [00:51:06] [00:51:06]POST finish read [00:51:06]Found Content-Length = 683 [00:51:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:51:06]execute_script... [00:51: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)2885360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:51:06]POST & json_proto [00:51:06]process_json_proto [00:51:06]json parsed OK: [00:51:06]protocol is kg_v1.0 [00:51:06]action value=close_receipt [00:51:06]process_action close_receipt [00:51:06]cmd_close_receipt [00:51:06]MH_GetDate [00:51:06]Write to MH i2c: F0 00 00 D1 05 C5 [00:51:06]Write i2c OK [00:51:06]MH_I2C_Read... [00:51:06]Read from MH i2c: F0 [00:51:06]MH_I2C_Read... [00:51:06]Read from MH i2c: F0 09 00 [00:51:06]MH_I2C_Read... [00:51:06]Read from MH i2c: F0 09 00 D1 05 00 7B A5 15 67 6B 98 1E 66 F1 [00:51:06]GetLastDocTimeStamp 1729471829 [00:51:06]current date 1729471867 [00:51:06]FM_GetShiftState [00:51:06]SAM_PROTO_GetShiftState [00:51:06]wFMCommunicate request_size=4 [00:51:06]MH_SAM_APDU [00:51:06]CAPDU: 80 13 01 00 [00:51:06]Write to MH i2c: E2 08 00 D2 05 80 13 01 00 00 00 00 00 54 [00:51:06]Write i2c OK [00:51:06]MH_I2C_Read... [00:51:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:51:06]Read from MH i2c: E2 [00:51:06]MH_I2C_Read... [00:51:06]Read from MH i2c: E2 0E 00 [00:51:06]MH_I2C_Read... [00:51:06]Read from MH i2c: E2 0E 00 D2 05 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 80 [00:51:06]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [00:51:06]wFMCommunicate OK [00:51:06]SAM_PROTO_GetShiftState done [00:51:06]FM_GetShiftState done [00:51:06]opened in 1729469703 [00:51:06]opened+sec_in_day 1729556103 [00:51:06]quantity*price = 100015 [00:51:06]sum+1 = 100017 [00:51:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 13 21.10.2024 00:51 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69623 ФПД: 251651172161325 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T005107&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69623&fm=251651172161325&tin=02508201610067®Number=0000000000156251&sum=100000 [00:51:07]StoreToDocumentArchive [00:51:07]shift 194 fd 69623 [00:51:07]save to /storage/0194/doc_00069623 [00:51:07]save last doc name /storage/0194/doc_00069623 to /storage/kkm_last_doc_name [00:51:07]save OK [00:51:07]Clear old archive folders... [00:51:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:51:07]tlvbuf is 00C4AD40 [00:51:07]SAM_PROTO_ClearQueue [00:51:07]wFMCommunicate request_size=4 [00:51:07]MH_SAM_APDU [00:51:07]CAPDU: 80 09 00 00 [00:51:07]Write to MH i2c: E2 08 00 DF 05 80 09 00 00 00 00 00 00 56 [00:51:07]Write i2c OK [00:51:07]MH_I2C_Read... [00:51:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:51:07]Read from MH i2c: E2 [00:51:07]MH_I2C_Read... [00:51:07]Read from MH i2c: E2 03 00 [00:51:07]MH_I2C_Read... [00:51:07]Read from MH i2c: E2 03 00 DF 05 00 90 00 58 [00:51:07]RAPDU: 90 00 [00:51:07]wFMCommunicate OK [00:51:07]SAM_PROTO_ClearQueue done [00:51:07]KKMCreateOFDPacket [00:51:07]OFDProtocolAddRootSTLVToBuf [00:51:07]FM_MakeSignedData [00:51:07]FM_MakeSignedData [00:51:07]SAM_PROTO_SignData [00:51:07]wFMCommunicate request_size=4 [00:51:07]MH_SAM_APDU [00:51:07]CAPDU: 80 0D 01 02 [00:51:07]Write to MH i2c: E2 08 00 E0 05 80 0D 01 02 00 00 00 00 5E [00:51:07]Write i2c OK [00:51:07]MH_I2C_Read... [00:51:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:51:07]Read from MH i2c: E2 [00:51:07]MH_I2C_Read... [00:51:07]Read from MH i2c: E2 03 00 [00:51:07]MH_I2C_Read... [00:51:07]Read from MH i2c: E2 03 00 E0 05 00 90 00 59 [00:51:07]RAPDU: 90 00 [00:51:07]wFMCommunicate OK [00:51:07]wFMCommunicate request_size=255 [00:51:07]MH_SAM_APDU [00:51:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 7B A5 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F7 0F 01 00 35 04 06 00 E4 [00:51:07]Write to MH i2c: E2 02 01 E1 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 7B A5 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F7 0F 01 00 35 04 06 00 E4 00 00 37 [00:51:07]Write i2c OK [00:51:07]MH_I2C_Read... [00:51:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:51:07]Read from MH i2c: E2 [00:51:07]MH_I2C_Read... [00:51:07]Read from MH i2c: E2 03 00 [00:51:07]MH_I2C_Read... [00:51:07]Read from MH i2c: E2 03 00 E1 05 00 90 00 5A [00:51:07]RAPDU: 90 00 [00:51:07]wFMCommunicate OK [00:51:07]wFMCommunicate request_size=10 [00:51:07]MH_SAM_APDU [00:51:07]CAPDU: 80 0D 02 02 05 E0 1A B9 57 2D [00:51:07]Write to MH i2c: E2 0D 00 E2 05 80 0D 02 02 05 00 E0 1A B9 57 2D 00 00 A2 [00:51:07]Write i2c OK [00:51:07]MH_I2C_Read... [00:51:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:51:07]Read from MH i2c: E2 [00:51:07]MH_I2C_Read... [00:51:07]Read from MH i2c: E2 03 00 [00:51:07]MH_I2C_Read... [00:51:07]Read from MH i2c: E2 03 00 E2 05 00 90 00 5B [00:51:07]RAPDU: 90 00 [00:51:07]wFMCommunicate OK [00:51:07]wFMCommunicate request_size=4 [00:51:07]MH_SAM_APDU [00:51:07]CAPDU: 80 0D 03 02 [00:51:07]Write to MH i2c: E2 08 00 E3 05 80 0D 03 02 00 00 00 00 63 [00:51:07]Write i2c OK [00:51:07]MH_I2C_Read... [00:51:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:51:07]Read from MH i2c: E2 [00:51:07]MH_I2C_Read... [00:51:07]Read from MH i2c: E2 0B 00 [00:51:07]MH_I2C_Read... [00:51:07]Read from MH i2c: E2 0B 00 E3 05 00 F8 5E F7 B9 98 E8 CC 6E 90 00 24 [00:51:07]RAPDU: F8 5E F7 B9 98 E8 CC 6E 90 00 [00:51:07]wFMCommunicate OK [00:51:07]SAM_PROTO_SignData done [00:51:07]FM_MakeSignedData done [00:51:07]CreateOFDProtocolMessage [00:51:07]wFMCommunicate request_size=4 [00:51:07]MH_SAM_APDU [00:51:07]CAPDU: 80 11 00 00 [00:51:07]Write to MH i2c: E2 08 00 E4 05 80 11 00 00 00 00 00 00 63 [00:51:07]Write i2c OK [00:51:07]MH_I2C_Read... [00:51:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:51:07]Read from MH i2c: E2 [00:51:07]MH_I2C_Read... [00:51:07]Read from MH i2c: E2 17 00 [00:51:07]MH_I2C_Read... [00:51:07]Read from MH i2c: E2 17 00 E4 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 B5 [00:51:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:51:07]wFMCommunicate OK [00:51:07]CreateOFDProtocolMessage done [00:51:07]OFDSenderStorePacket 69623 [00:51:07]StoreOFDPacket docnum=69623 [00:51:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 4F F6 07 01 68 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 7B A5 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F7 0F 01 00 35 04 06 00 E4 E0 1A B9 57 2D F8 5E F7 B9 98 E8 CC 6E [00:51:07]CheckFolder [00:51:07]dirname=/storage/ofd_packets [00:51:07]CheckFolder done [00:51:07]ProducePacketName [00:51:07]name=ofd_packets/00069623 [00:51:07]NVStorageSaveData ofd_packets/00069623 [00:51:07]File name is /storage/ofd_packets/00069623 [00:51:07]Write 301 bytes [00:51:07]NVStorageSaveData done [00:51:07]OFDSenderStorePacket done [00:51:07]KKMCreateOFDPacket done [00:51:07]NVStorageSaveData kkm_last_timestamp [00:51:07]File name is /storage/kkm_last_timestamp [00:51:07]Write 4 bytes [00:51:07]NVStorageSaveData done [00:51:07]ExternCall_PrintAddStr [00:51:07]wPrintStart [00:51:07]Write to MH i2c: 01 00 00 E5 05 EA [00:51:07]Write i2c OK [00:51:07]MH_I2C_Read... [00:51:07]Read from MH i2c: 01 [00:51:07]MH_I2C_Read... [00:51:07]Read from MH i2c: 01 07 00 [00:51:07]MH_I2C_Read... [00:51:07]Read from MH i2c: 01 07 00 E5 05 00 00 00 00 00 FF 0F FF [00:51:07]RasterBufferAndPrint [00:51:07]line Счет N : (1)2885360 [00:51:07]line ИНН: 02508201610067 [00:51:07]line Контрольно-Кассовый Чек [00:51:07]line ПРОДАЖА [00:51:07]line ТРК (МРК, ГНК) : 42 [00:51:07]line Товар: 2710124130 [00:51:07]line Аи-92-К-5 [00:51:07]line 14.950 * 66.90 [00:51:07]line = 1000.16 [00:51:07]line НДС 12% НСП 1% [00:51:07]line > о реализуемом товаре [00:51:07]line ОКРУГЛЕНИЕ: -0.16 [00:51:07]line ИТОГО: 1000.00 [00:51:07]line Внесено: 1000.00 [00:51:07]line СДАЧА: 0.00 [00:51:07]line НСП 1% : 8.85 [00:51:07]line НДС 12% : 106.21 [00:51:07]line Наличными: 1000.00 [00:51:07]line Безнал.: 0.00 [00:51:07]line Место: АЗС № 85 "Партнер Нефть" [00:51:07]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [00:51:07]line СНО: Общий режим [00:51:07]line Чек 13 21.10.2024 00:51 [00:51:07]line Смена: 194 ФФД: 1.0 [00:51:07]line ЗНМ: 0300000167 [00:51:07]line РНМ: 0000000000156251 [00:51:07]line Версия ККМ: v1.0 [00:51:07]line ФМ: 0000000000963346 [00:51:07]line ФД: 69623 [00:51:07]line ФПД: 251651172161325 [00:51:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T005107&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69623&fm=251651172161325&tin=02508201610067®Number=0000000000156251&sum=100000 [00:51:08]OFD Sender: Processing packet 69623 [packets to send 18, broken 17] [00:51:08]ProducePacketName [00:51:08]name=ofd_packets/00069623 [00:51:08]OFD Sender: To server: pG, [00:51:08]CommunicateWithHost lk.salyk.kg:30040 [00:51:08]ConnectInit lk.salyk.kg [00:51:08]written 0, free lines is 4095 [00:51:08]Connected sock=10 [00:51:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 4F F6 07 01 68 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 7B A5 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F7 0F 01 00 35 04 06 00 E4 E0 1A B9 57 2D F8 5E F7 B9 98 E8 CC 6E [00:51:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 B3 11 47 00 E7 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F7 0F 01 00 F4 03 04 00 20 4F 15 67 B6 04 01 00 00 55 47 7A E8 85 77 A0 47 [00:51:08]CommunicateWithHost err = 0 [00:51:08]CheckOFDResponse [00:51:08]1017 (14) - 77093643461234 [00:51:08]1041 (16) - 0000000000963346 [00:51:08]1040 (4) - 69623 [00:51:08]1012 (4) - 20.10.2024 18:42 [00:51:08]1206 (1) - 0 [00:51:08]OFD Sender: Remove packet 69623 [00:51:08]ProducePacketName [00:51:08]name=ofd_packets/00069623 [00:51:08]NVStorageDeleteData [00:51:08]Write to MH i2c: 01 00 00 10 06 16 [00:51:08]Write i2c OK [00:51:08]MH_I2C_Read... [00:51:08]Read from MH i2c: 01 [00:51:08]MH_I2C_Read... [00:51:08]Read from MH i2c: 01 07 00 [00:51:08]MH_I2C_Read... [00:51:08]Read from MH i2c: 01 07 00 10 06 00 00 00 00 00 EF 0C 18 [00:51:08]RasterBufferAndPrint [00:51:08]line [00:51:08]line [00:51:08]line [00:51:08]line [00:51:08]line [00:51:08]written 0, free lines is 3317 [00:51:08]MH_Cut [00:51:08]Write to MH i2c: D1 01 00 17 06 01 EF [00:51:08]Write i2c OK [00:51:08]MH_I2C_Read... [00:51:08]Read from MH i2c: D1 [00:51:08]MH_I2C_Read... [00:51:08]Read from MH i2c: D1 01 00 [00:51:08]MH_I2C_Read... [00:51:08]Read from MH i2c: D1 01 00 17 06 00 EE [00:51:08]Write to MH i2c: 01 00 00 18 06 1E [00:51:08]Write i2c OK [00:51:08]MH_I2C_Read... [00:51:08]OFD Sender: No OFD packet to send [00:51:09]*** Cut start [00:51:09]*** Partial cut [00:51:09]*** CUTSNS_PIN = 1 [00:51:09]*** CUTSNS_PIN = 0 [00:51:09]*** Brake cut motor [00:51:09]Read from MH i2c: 01 [00:51:09]MH_I2C_Read... [00:51:09]*** Stop cut motor [00:51:09]*** Cut end [00:51:09]Read from MH i2c: 01 07 00 [00:51:09]MH_I2C_Read... [00:51:09]Read from MH i2c: 01 07 00 18 06 00 00 00 00 00 FF 0F 33 [00:51:09]process_action close_receipt done [00:51:09]requested_data is exist [00:51:09]produce_requested_data [00:51:09]requested_item fm.sn is exist - process it [00:51:09]wFMCommunicate request_size=4 [00:51:09]MH_SAM_APDU [00:51:09]CAPDU: 80 11 00 00 [00:51:09]Write to MH i2c: E2 08 00 19 06 80 11 00 00 00 00 00 00 99 [00:51:09]Write i2c OK [00:51:09]MH_I2C_Read... [00:51:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:51:09]Read from MH i2c: E2 [00:51:09]MH_I2C_Read... [00:51:09]Read from MH i2c: E2 17 00 [00:51:09]MH_I2C_Read... [00:51:09]Read from MH i2c: E2 17 00 19 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 EB [00:51:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [00:51:09]wFMCommunicate OK [00:51:09]requested_item fd.num is exist - process it [00:51:09]SAM_PROTO_GetFieldsCounters [00:51:09]wFMCommunicate request_size=4 [00:51:09]MH_SAM_APDU [00:51:09]CAPDU: 80 13 00 00 [00:51:09]Write to MH i2c: E2 08 00 1A 06 80 13 00 00 00 00 00 00 9C [00:51:09]Write i2c OK [00:51:09]MH_I2C_Read... [00:51:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:51:10]Read from MH i2c: E2 [00:51:10]MH_I2C_Read... [00:51:10]Read from MH i2c: E2 62 00 [00:51:10]MH_I2C_Read... [00:51:10]Read from MH i2c: E2 62 00 1A 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F7 0F 01 00 0E 04 04 00 C2 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 A7 [00:51:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F7 0F 01 00 0E 04 04 00 C2 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 [00:51:10]wFMCommunicate OK [00:51:10]SAM_PROTO_GetFieldsCounters done [00:51:10]requested_item shift.num is exist - process it [00:51:10]requested_item shift.opened is exist - process it [00:51:10]req_shift_opened [00:51:10]FM_GetShiftState [00:51:10]SAM_PROTO_GetShiftState [00:51:10]wFMCommunicate request_size=4 [00:51:10]MH_SAM_APDU [00:51:10]CAPDU: 80 13 01 00 [00:51:10]Write to MH i2c: E2 08 00 1B 06 80 13 01 00 00 00 00 00 9E [00:51:10]Write i2c OK [00:51:10]MH_I2C_Read... [00:51:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:51:10]Read from MH i2c: E2 [00:51:10]MH_I2C_Read... [00:51:10]Read from MH i2c: E2 0E 00 [00:51:10]MH_I2C_Read... [00:51:10]Read from MH i2c: E2 0E 00 1B 06 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 CA [00:51:10]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [00:51:10]wFMCommunicate OK [00:51:10]SAM_PROTO_GetShiftState done [00:51:10]FM_GetShiftState done [00:51:10]req_shift_opened done [00:51:10]requested_item shift.open_date is exist - process it [00:51:10]req_shift_open_date [00:51:10]req_shift_open_date done [00:51:10]produce_requested_data done [00:51:10]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69623,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [00:51:10]process_action_free close_receipt [00:51:10]json_value_free [00:51:10]json_value_free done [00:51:10]process_json_proto returns [00:51:10]Send response to host [00:51:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69623,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [00:51:10]free response buf [00:51:10]execute_script done [00:51:10]execute_script returns [00:51:10]free content buf [00:51:10]Sock 9.Close socket [00:51:10]Sock 9.Thread stoped [00:51:13]OFD Sender: No OFD packet to send [00:51:18]OFD Sender: No OFD packet to send [00:51:23]OFD Sender: No OFD packet to send [00:51:28]OFD Sender: No OFD packet to send [00:51:33]OFD Sender: No OFD packet to send [00:51:38]OFD Sender: No OFD packet to send [00:51:44]OFD Sender: No OFD packet to send [00:51:49]OFD Sender: No OFD packet to send [00:51:54]OFD Sender: No OFD packet to send [00:51:59]OFD Sender: No OFD packet to send [00:52:04]OFD Sender: No OFD packet to send [00:52:09]OFD Sender: No OFD packet to send [00:52:14]OFD Sender: No OFD packet to send [00:52:19]OFD Sender: No OFD packet to send [00:52:24]OFD Sender: No OFD packet to send [00:52:29]OFD Sender: No OFD packet to send [00:52:34]OFD Sender: No OFD packet to send [00:52:39]OFD Sender: No OFD packet to send [00:52:44]OFD Sender: No OFD packet to send [00:52:49]OFD Sender: No OFD packet to send [00:52:54]OFD Sender: No OFD packet to send [00:52:59]OFD Sender: No OFD packet to send [00:53:04]OFD Sender: No OFD packet to send [00:53:09]OFD Sender: No OFD packet to send [00:53:14]OFD Sender: No OFD packet to send [00:53:19]OFD Sender: No OFD packet to send [00:53:24]OFD Sender: No OFD packet to send [00:53:29]OFD Sender: No OFD packet to send [00:53:34]OFD Sender: No OFD packet to send [00:53:39]OFD Sender: No OFD packet to send [00:53:44]OFD Sender: No OFD packet to send [00:53:49]OFD Sender: No OFD packet to send [00:53:54]OFD Sender: No OFD packet to send [00:53:59]OFD Sender: No OFD packet to send [00:54:04]OFD Sender: No OFD packet to send [00:54:09]OFD Sender: No OFD packet to send [00:54:14]OFD Sender: No OFD packet to send [00:54:19]OFD Sender: No OFD packet to send [00:54:24]OFD Sender: No OFD packet to send [00:54:29]OFD Sender: No OFD packet to send [00:54:34]OFD Sender: No OFD packet to send [00:54:39]OFD Sender: No OFD packet to send [00:54:44]OFD Sender: No OFD packet to send [00:54:49]OFD Sender: No OFD packet to send [00:54:54]OFD Sender: No OFD packet to send [00:54:59]OFD Sender: No OFD packet to send [00:55:04]OFD Sender: No OFD packet to send [00:55:09]OFD Sender: No OFD packet to send [00:55:14]OFD Sender: No OFD packet to send [00:55:19]OFD Sender: No OFD packet to send [00:55:24]OFD Sender: No OFD packet to send [00:55:29]OFD Sender: No OFD packet to send [00:55:34]OFD Sender: No OFD packet to send [00:55:39]OFD Sender: No OFD packet to send [00:55:44]OFD Sender: No OFD packet to send [00:55:49]OFD Sender: No OFD packet to send [00:55:54]OFD Sender: No OFD packet to send [00:55:59]OFD Sender: No OFD packet to send [00:56:04]OFD Sender: No OFD packet to send [00:56:09]OFD Sender: No OFD packet to send [00:56:14]OFD Sender: No OFD packet to send [00:56:19]OFD Sender: No OFD packet to send [00:56:24]OFD Sender: No OFD packet to send [00:56:29]OFD Sender: No OFD packet to send [00:56:34]OFD Sender: No OFD packet to send [00:56:39]OFD Sender: No OFD packet to send [00:56:44]OFD Sender: No OFD packet to send [00:56:49]OFD Sender: No OFD packet to send [00:56:54]OFD Sender: No OFD packet to send [00:56:59]OFD Sender: No OFD packet to send [00:57:04]OFD Sender: No OFD packet to send [00:57:09]OFD Sender: No OFD packet to send [00:57:14]OFD Sender: No OFD packet to send [00:57:19]OFD Sender: No OFD packet to send [00:57:24]OFD Sender: No OFD packet to send [00:57:29]OFD Sender: No OFD packet to send [00:57:34]OFD Sender: No OFD packet to send [00:57:39]OFD Sender: No OFD packet to send [00:57:44]OFD Sender: No OFD packet to send [00:57:49]OFD Sender: No OFD packet to send [00:57:54]OFD Sender: No OFD packet to send [00:57:59]OFD Sender: No OFD packet to send [00:58:04]OFD Sender: No OFD packet to send [00:58:09]OFD Sender: No OFD packet to send [00:58:14]OFD Sender: No OFD packet to send [00:58:19]OFD Sender: No OFD packet to send [00:58:24]OFD Sender: No OFD packet to send [00:58:29]OFD Sender: No OFD packet to send [00:58:34]OFD Sender: No OFD packet to send [00:58:39]OFD Sender: No OFD packet to send [00:58:44]OFD Sender: No OFD packet to send [00:58:49]OFD Sender: No OFD packet to send [00:58:54]OFD Sender: No OFD packet to send [00:58:59]OFD Sender: No OFD packet to send [00:59:04]OFD Sender: No OFD packet to send [00:59:09]OFD Sender: No OFD packet to send [00:59:14]OFD Sender: No OFD packet to send [00:59:19]OFD Sender: No OFD packet to send [00:59:24]OFD Sender: No OFD packet to send [00:59:29]OFD Sender: No OFD packet to send [00:59:34]OFD Sender: No OFD packet to send [00:59:39]OFD Sender: No OFD packet to send [00:59:44]OFD Sender: No OFD packet to send [00:59:49]OFD Sender: No OFD packet to send [00:59:54]OFD Sender: No OFD packet to send [00:59:59]OFD Sender: No OFD packet to send [01:00:04]OFD Sender: No OFD packet to send [01:00:09]OFD Sender: No OFD packet to send [01:00:14]OFD Sender: No OFD packet to send [01:00:19]OFD Sender: No OFD packet to send [01:00:24]OFD Sender: No OFD packet to send [01:00:29]OFD Sender: No OFD packet to send [01:00:34]OFD Sender: No OFD packet to send [01:00:39]OFD Sender: No OFD packet to send [01:00:44]OFD Sender: No OFD packet to send [01:00:49]OFD Sender: No OFD packet to send [01:00:54]OFD Sender: No OFD packet to send [01:00:59]OFD Sender: No OFD packet to send [01:01:04]OFD Sender: No OFD packet to send [01:01:09]OFD Sender: No OFD packet to send [01:01:14]OFD Sender: No OFD packet to send [01:01:19]OFD Sender: No OFD packet to send [01:01:24]OFD Sender: No OFD packet to send [01:01:29]OFD Sender: No OFD packet to send [01:01:34]OFD Sender: No OFD packet to send [01:01:39]OFD Sender: No OFD packet to send [01:01:44]OFD Sender: No OFD packet to send [01:01:49]OFD Sender: No OFD packet to send [01:01:54]OFD Sender: No OFD packet to send [01:01:59]OFD Sender: No OFD packet to send [01:02:04]OFD Sender: No OFD packet to send [01:02:09]OFD Sender: No OFD packet to send [01:02:14]OFD Sender: No OFD packet to send [01:02:19]OFD Sender: No OFD packet to send [01:02:24]OFD Sender: No OFD packet to send [01:02:29]OFD Sender: No OFD packet to send [01:02:34]OFD Sender: No OFD packet to send [01:02:39]OFD Sender: No OFD packet to send [01:02:44]OFD Sender: No OFD packet to send [01:02:49]OFD Sender: No OFD packet to send [01:02:54]OFD Sender: No OFD packet to send [01:02:59]OFD Sender: No OFD packet to send [01:03:04]OFD Sender: No OFD packet to send [01:03:09]OFD Sender: No OFD packet to send [01:03:14]OFD Sender: No OFD packet to send [01:03:19]OFD Sender: No OFD packet to send [01:03:24]OFD Sender: No OFD packet to send [01:03:29]OFD Sender: No OFD packet to send [01:03:34]OFD Sender: No OFD packet to send [01:03:39]OFD Sender: No OFD packet to send [01:03:44]OFD Sender: No OFD packet to send [01:03:49]OFD Sender: No OFD packet to send [01:03:54]OFD Sender: No OFD packet to send [01:03:59]OFD Sender: No OFD packet to send [01:04:04]OFD Sender: No OFD packet to send [01:04:09]OFD Sender: No OFD packet to send [01:04:14]OFD Sender: No OFD packet to send [01:04:19]OFD Sender: No OFD packet to send [01:04:24]OFD Sender: No OFD packet to send [01:04:29]OFD Sender: No OFD packet to send [01:04:34]OFD Sender: No OFD packet to send [01:04:39]OFD Sender: No OFD packet to send [01:04:44]OFD Sender: No OFD packet to send [01:04:49]OFD Sender: No OFD packet to send [01:04:54]OFD Sender: No OFD packet to send [01:04:59]OFD Sender: No OFD packet to send [01:05:04]OFD Sender: No OFD packet to send [01:05:09]OFD Sender: No OFD packet to send [01:05:14]OFD Sender: No OFD packet to send [01:05:19]OFD Sender: No OFD packet to send [01:05:24]OFD Sender: No OFD packet to send [01:05:29]OFD Sender: No OFD packet to send [01:05:34]OFD Sender: No OFD packet to send [01:05:39]OFD Sender: No OFD packet to send [01:05:44]OFD Sender: No OFD packet to send [01:05:49]OFD Sender: No OFD packet to send [01:05:54]OFD Sender: No OFD packet to send [01:05:59]OFD Sender: No OFD packet to send [01:06:04]OFD Sender: No OFD packet to send [01:06:09]OFD Sender: No OFD packet to send [01:06:14]OFD Sender: No OFD packet to send [01:06:19]OFD Sender: No OFD packet to send [01:06:24]OFD Sender: No OFD packet to send [01:06:29]OFD Sender: No OFD packet to send [01:06:34]OFD Sender: No OFD packet to send [01:06:39]OFD Sender: No OFD packet to send [01:06:44]OFD Sender: No OFD packet to send [01:06:49]OFD Sender: No OFD packet to send [01:06:54]OFD Sender: No OFD packet to send [01:06:59]OFD Sender: No OFD packet to send [01:07:04]OFD Sender: No OFD packet to send [01:07:09]OFD Sender: No OFD packet to send [01:07:14]OFD Sender: No OFD packet to send [01:07:19]OFD Sender: No OFD packet to send [01:07:24]OFD Sender: No OFD packet to send [01:07:29]OFD Sender: No OFD packet to send [01:07:34]OFD Sender: No OFD packet to send [01:07:39]OFD Sender: No OFD packet to send [01:07:44]OFD Sender: No OFD packet to send [01:07:49]OFD Sender: No OFD packet to send [01:07:54]OFD Sender: No OFD packet to send [01:07:59]OFD Sender: No OFD packet to send [01:08:04]OFD Sender: No OFD packet to send [01:08:09]OFD Sender: No OFD packet to send [01:08:14]OFD Sender: No OFD packet to send [01:08:19]OFD Sender: No OFD packet to send [01:08:24]OFD Sender: No OFD packet to send [01:08:29]OFD Sender: No OFD packet to send [01:08:34]OFD Sender: No OFD packet to send [01:08:39]OFD Sender: No OFD packet to send [01:08:44]OFD Sender: No OFD packet to send [01:08:49]OFD Sender: No OFD packet to send [01:08:54]OFD Sender: No OFD packet to send [01:08:59]OFD Sender: No OFD packet to send [01:09:04]OFD Sender: No OFD packet to send [01:09:09]OFD Sender: No OFD packet to send [01:09:14]OFD Sender: No OFD packet to send [01:09:19]OFD Sender: No OFD packet to send [01:09:24]OFD Sender: No OFD packet to send [01:09:29]OFD Sender: No OFD packet to send [01:09:34]OFD Sender: No OFD packet to send [01:09:39]OFD Sender: No OFD packet to send [01:09:44]OFD Sender: No OFD packet to send [01:09:49]OFD Sender: No OFD packet to send [01:09:54]OFD Sender: No OFD packet to send [01:09:59]OFD Sender: No OFD packet to send [01:10:04]OFD Sender: No OFD packet to send [01:10:09]OFD Sender: No OFD packet to send [01:10:14]OFD Sender: No OFD packet to send [01:10:19]OFD Sender: No OFD packet to send [01:10:24]OFD Sender: No OFD packet to send [01:10:29]OFD Sender: No OFD packet to send [01:10:34]OFD Sender: No OFD packet to send [01:10:39]OFD Sender: No OFD packet to send [01:10:44]OFD Sender: No OFD packet to send [01:10:49]OFD Sender: No OFD packet to send [01:10:54]OFD Sender: No OFD packet to send [01:10:59]OFD Sender: No OFD packet to send [01:11:04]OFD Sender: No OFD packet to send [01:11:09]OFD Sender: No OFD packet to send [01:11:14]OFD Sender: No OFD packet to send [01:11:19]OFD Sender: No OFD packet to send [01:11:24]OFD Sender: No OFD packet to send [01:11:29]OFD Sender: No OFD packet to send [01:11:34]OFD Sender: No OFD packet to send [01:11:39]OFD Sender: No OFD packet to send [01:11:44]OFD Sender: No OFD packet to send [01:11:49]OFD Sender: No OFD packet to send [01:11:54]OFD Sender: No OFD packet to send [01:11:59]OFD Sender: No OFD packet to send [01:12:04]OFD Sender: No OFD packet to send [01:12:09]OFD Sender: No OFD packet to send [01:12:14]OFD Sender: No OFD packet to send [01:12:20]OFD Sender: No OFD packet to send [01:12:25]OFD Sender: No OFD packet to send [01:12:30]OFD Sender: No OFD packet to send [01:12:35]OFD Sender: No OFD packet to send [01:12:40]OFD Sender: No OFD packet to send [01:12:45]OFD Sender: No OFD packet to send [01:12:50]OFD Sender: No OFD packet to send [01:12:55]OFD Sender: No OFD packet to send [01:13:00]OFD Sender: No OFD packet to send [01:13:05]OFD Sender: No OFD packet to send [01:13:10]OFD Sender: No OFD packet to send [01:13:15]OFD Sender: No OFD packet to send [01:13:20]OFD Sender: No OFD packet to send [01:13:25]OFD Sender: No OFD packet to send [01:13:30]OFD Sender: No OFD packet to send [01:13:35]OFD Sender: No OFD packet to send [01:13:40]OFD Sender: No OFD packet to send [01:13:45]OFD Sender: No OFD packet to send [01:13:50]OFD Sender: No OFD packet to send [01:13:55]OFD Sender: No OFD packet to send [01:14:00]OFD Sender: No OFD packet to send [01:14:05]OFD Sender: No OFD packet to send [01:14:10]OFD Sender: No OFD packet to send [01:14:15]OFD Sender: No OFD packet to send [01:14:20]OFD Sender: No OFD packet to send [01:14:25]OFD Sender: No OFD packet to send [01:14:30]OFD Sender: No OFD packet to send [01:14:35]OFD Sender: No OFD packet to send [01:14:40]OFD Sender: No OFD packet to send [01:14:45]OFD Sender: No OFD packet to send [01:14:50]OFD Sender: No OFD packet to send [01:14:55]OFD Sender: No OFD packet to send [01:15:00]OFD Sender: No OFD packet to send [01:15:05]OFD Sender: No OFD packet to send [01:15:10]OFD Sender: No OFD packet to send [01:15:15]OFD Sender: No OFD packet to send [01:15:20]OFD Sender: No OFD packet to send [01:15:25]OFD Sender: No OFD packet to send [01:15:30]OFD Sender: No OFD packet to send [01:15:35]OFD Sender: No OFD packet to send [01:15:40]OFD Sender: No OFD packet to send [01:15:45]OFD Sender: No OFD packet to send [01:15:50]OFD Sender: No OFD packet to send [01:15:55]OFD Sender: No OFD packet to send [01:16:00]OFD Sender: No OFD packet to send [01:16:05]OFD Sender: No OFD packet to send [01:16:10]OFD Sender: No OFD packet to send [01:16:15]OFD Sender: No OFD packet to send [01:16:20]OFD Sender: No OFD packet to send [01:16:25]OFD Sender: No OFD packet to send [01:16:30]OFD Sender: No OFD packet to send [01:16:35]OFD Sender: No OFD packet to send [01:16:40]OFD Sender: No OFD packet to send [01:16:45]OFD Sender: No OFD packet to send [01:16:48]accept exits with 8 [01:16:48]New connection [01:16:48]New thread 3067456868 created [01:16:48]Thread 3067313508 joined [01:16:48]Waiting for new connection... [01:16:48] Sock 8.Parse request [01:16:48]Sock 8.Check first char [01:16:48]Sock 8.First char is OK [01:16:48]request: POST /json_proto HTTP/1.0 [01:16:48]Method: POST [01:16:48]URL: /json_proto [01:16:48]Method is POST - this is cgi request [01:16:48]url: /json_proto [01:16:48]query_string will be loaded in cgi processing [01:16:48]execute_cgi json_proto POST (null) [01:16:48]execute_cgi path=json_proto method=POST [01:16:48]POST find Content-Length [01:16:48]Host: 172.17.50.3:8080 [01:16:48]Content-Length: 771 [01:16:48]Content-Type: application/json [01:16:48] [01:16:48]POST finish read [01:16:48]Found Content-Length = 771 [01:16:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:16:48]execute_script... [01:16:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:16:48]POST & json_proto [01:16:48]process_json_proto [01:16:48]json parsed OK: [01:16:48]protocol is kg_v1.0 [01:16:48]action value=close_receipt [01:16:48]process_action close_receipt [01:16:48]cmd_close_receipt [01:16:48]MH_GetDate [01:16:48]Write to MH i2c: F0 00 00 1C 06 11 [01:16:48]Write i2c OK [01:16:48]MH_I2C_Read... [01:16:48]Read from MH i2c: F0 [01:16:48]MH_I2C_Read... [01:16:48]Read from MH i2c: F0 09 00 [01:16:48]MH_I2C_Read... [01:16:48]Read from MH i2c: F0 09 00 1C 06 00 81 AB 15 67 6B 98 1E 66 49 [01:16:48]GetLastDocTimeStamp 1729471867 [01:16:48]current date 1729473409 [01:16:48]FM_GetShiftState [01:16:48]SAM_PROTO_GetShiftState [01:16:48]wFMCommunicate request_size=4 [01:16:48]MH_SAM_APDU [01:16:48]CAPDU: 80 13 01 00 [01:16:48]Write to MH i2c: E2 08 00 1D 06 80 13 01 00 00 00 00 00 A0 [01:16:48]Write i2c OK [01:16:48]MH_I2C_Read... [01:16:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:16:48]Read from MH i2c: E2 [01:16:48]MH_I2C_Read... [01:16:48]Read from MH i2c: E2 0E 00 [01:16:48]MH_I2C_Read... [01:16:48]Read from MH i2c: E2 0E 00 1D 06 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 CC [01:16:48]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [01:16:48]wFMCommunicate OK [01:16:48]SAM_PROTO_GetShiftState done [01:16:48]FM_GetShiftState done [01:16:48]opened in 1729469703 [01:16:48]opened+sec_in_day 1729556103 [01:16:48]quantity*price = 50025 [01:16:48]sum+1 = 50026 [01:16:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.25 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.25 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 14 21.10.2024 01:16 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963346 ФД: 69624 ФПД: 272482659378728 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T011650&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69624&fm=272482659378728&tin=02508201610067®Number=0000000000156251&sum=50025 [01:16:50]StoreToDocumentArchive [01:16:50]shift 194 fd 69624 [01:16:50]save to /storage/0194/doc_00069624 [01:16:50]save last doc name /storage/0194/doc_00069624 to /storage/kkm_last_doc_name [01:16:50]save OK [01:16:50]Clear old archive folders... [01:16:50]ProcessDocumentItem done err = 0, tmpTLVsize=250 [01:16:50]tlvbuf is 00C25F90 [01:16:50]SAM_PROTO_ClearQueue [01:16:50]wFMCommunicate request_size=4 [01:16:50]MH_SAM_APDU [01:16:50]CAPDU: 80 09 00 00 [01:16:50]Write to MH i2c: E2 08 00 2A 06 80 09 00 00 00 00 00 00 A2 [01:16:50]Write i2c OK [01:16:50]MH_I2C_Read... [01:16:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:16:50]Read from MH i2c: E2 [01:16:50]MH_I2C_Read... [01:16:50]Read from MH i2c: E2 03 00 [01:16:50]MH_I2C_Read... [01:16:50]Read from MH i2c: E2 03 00 2A 06 00 90 00 A4 [01:16:50]RAPDU: 90 00 [01:16:50]wFMCommunicate OK [01:16:50]SAM_PROTO_ClearQueue done [01:16:50]KKMCreateOFDPacket [01:16:50]OFDProtocolAddRootSTLVToBuf [01:16:50]FM_MakeSignedData [01:16:50]FM_MakeSignedData [01:16:50]SAM_PROTO_SignData [01:16:50]wFMCommunicate request_size=4 [01:16:50]MH_SAM_APDU [01:16:50]CAPDU: 80 0D 01 02 [01:16:50]Write to MH i2c: E2 08 00 2B 06 80 0D 01 02 00 00 00 00 AA [01:16:50]Write i2c OK [01:16:50]MH_I2C_Read... [01:16:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:16:50]Read from MH i2c: E2 [01:16:50]MH_I2C_Read... [01:16:50]Read from MH i2c: E2 03 00 [01:16:50]MH_I2C_Read... [01:16:50]Read from MH i2c: E2 03 00 2B 06 00 90 00 A5 [01:16:50]RAPDU: 90 00 [01:16:50]wFMCommunicate OK [01:16:50]wFMCommunicate request_size=255 [01:16:50]MH_SAM_APDU [01:16:50]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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 82 AB 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F8 0F 01 00 35 04 06 00 F7 D2 [01:16:50]Write to MH i2c: E2 02 01 2C 06 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 82 AB 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F8 0F 01 00 35 04 06 00 F7 D2 00 00 69 [01:16:50]Write i2c OK [01:16:50]MH_I2C_Read... [01:16:50]OFD Sender: No OFD packet to send [01:16:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:16:50]Read from MH i2c: E2 [01:16:50]MH_I2C_Read... [01:16:50]Read from MH i2c: E2 03 00 [01:16:50]MH_I2C_Read... [01:16:50]Read from MH i2c: E2 03 00 2C 06 00 90 00 A6 [01:16:50]RAPDU: 90 00 [01:16:50]wFMCommunicate OK [01:16:50]wFMCommunicate request_size=9 [01:16:50]MH_SAM_APDU [01:16:50]CAPDU: 80 0D 02 02 04 50 1E A6 28 [01:16:50]Write to MH i2c: E2 0C 00 2D 06 80 0D 02 02 04 00 50 1E A6 28 00 00 F1 [01:16:50]Write i2c OK [01:16:50]MH_I2C_Read... [01:16:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:16:50]Read from MH i2c: E2 [01:16:50]MH_I2C_Read... [01:16:50]Read from MH i2c: E2 03 00 [01:16:50]MH_I2C_Read... [01:16:50]Read from MH i2c: E2 03 00 2D 06 00 90 00 A7 [01:16:50]RAPDU: 90 00 [01:16:50]wFMCommunicate OK [01:16:50]wFMCommunicate request_size=4 [01:16:50]MH_SAM_APDU [01:16:50]CAPDU: 80 0D 03 02 [01:16:50]Write to MH i2c: E2 08 00 2E 06 80 0D 03 02 00 00 00 00 AF [01:16:50]Write i2c OK [01:16:50]MH_I2C_Read... [01:16:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:16:50]Read from MH i2c: E2 [01:16:50]MH_I2C_Read... [01:16:50]Read from MH i2c: E2 0B 00 [01:16:50]MH_I2C_Read... [01:16:50]Read from MH i2c: E2 0B 00 2E 06 00 2B 29 83 E4 33 62 03 E9 90 00 EC [01:16:50]RAPDU: 2B 29 83 E4 33 62 03 E9 90 00 [01:16:50]wFMCommunicate OK [01:16:50]SAM_PROTO_SignData done [01:16:50]FM_MakeSignedData done [01:16:50]CreateOFDProtocolMessage [01:16:50]wFMCommunicate request_size=4 [01:16:50]MH_SAM_APDU [01:16:50]CAPDU: 80 11 00 00 [01:16:50]Write to MH i2c: E2 08 00 2F 06 80 11 00 00 00 00 00 00 AF [01:16:50]Write i2c OK [01:16:50]MH_I2C_Read... [01:16:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:16:50]Read from MH i2c: E2 [01:16:50]MH_I2C_Read... [01:16:50]Read from MH i2c: E2 17 00 [01:16:50]MH_I2C_Read... [01:16:50]Read from MH i2c: E2 17 00 2F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 01 [01:16:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [01:16:50]wFMCommunicate OK [01:16:50]CreateOFDProtocolMessage done [01:16:50]OFDSenderStorePacket 69624 [01:16:50]StoreOFDPacket docnum=69624 [01:16:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 A7 08 06 01 FD 94 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 82 AB 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F8 0F 01 00 35 04 06 00 F7 D2 50 1E A6 28 2B 29 83 E4 33 62 03 E9 [01:16:50]CheckFolder [01:16:50]dirname=/storage/ofd_packets [01:16:50]CheckFolder done [01:16:50]ProducePacketName [01:16:50]name=ofd_packets/00069624 [01:16:50]NVStorageSaveData ofd_packets/00069624 [01:16:50]File name is /storage/ofd_packets/00069624 [01:16:50]Write 300 bytes [01:16:50]NVStorageSaveData done [01:16:50]OFDSenderStorePacket done [01:16:50]KKMCreateOFDPacket done [01:16:50]NVStorageSaveData kkm_last_timestamp [01:16:50]File name is /storage/kkm_last_timestamp [01:16:50]Write 4 bytes [01:16:50]NVStorageSaveData done [01:16:50]ExternCall_PrintAddStr [01:16:50]wPrintStart [01:16:50]Write to MH i2c: 01 00 00 30 06 36 [01:16:50]Write i2c OK [01:16:50]MH_I2C_Read... [01:16:50]Read from MH i2c: 01 [01:16:50]MH_I2C_Read... [01:16:50]Read from MH i2c: 01 07 00 [01:16:50]MH_I2C_Read... [01:16:50]Read from MH i2c: 01 07 00 30 06 00 00 00 00 00 FF 0F 4B [01:16:50]RasterBufferAndPrint [01:16:50]line Счет N : (1)2885361 [01:16:50]line ИНН: 02508201610067 [01:16:50]line Контрольно-Кассовый Чек [01:16:50]line ПРОДАЖА [01:16:50]line ТРК (МРК, ГНК) : 71 [01:16:50]line Товар: 2711129700 [01:16:50]line ГАЗ-К-3 [01:16:50]line 12.860 * 38.90 [01:16:50]line = 500.25 [01:16:50]line НДС 12% НСП 1% [01:16:50]line > о реализуемом товаре [01:16:50]line ИТОГО: 500.25 [01:16:50]line НСП 1% : 4.43 [01:16:50]line НДС 12% : 53.12 [01:16:50]line Наличными: 0.00 [01:16:50]line Безнал.: 500.25 [01:16:50]line Место: АЗС № 85 "Партнер Нефть" [01:16:50]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [01:16:50]line СНО: Общий режим [01:16:50]line Чек 14 21.10.2024 01:16 [01:16:50]line Смена: 194 ФФД: 1.0 [01:16:50]line ЗНМ: 0300000167 [01:16:50]line РНМ: 0000000000156251 [01:16:50]line Версия ККМ: v1.0 [01:16:50]line Платежная система: Mbank [01:16:50]line ФМ: 0000000000963346 [01:16:50]line ФД: 69624 [01:16:50]line ФПД: 272482659378728 [01:16:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T011650&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69624&fm=272482659378728&tin=02508201610067®Number=0000000000156251&sum=50025 [01:16:50]OFD Sender: Processing packet 69624 [packets to send 18, broken 17] [01:16:50]ProducePacketName [01:16:50]name=ofd_packets/00069624 [01:16:50]OFD Sender: To server: pG, [01:16:50]CommunicateWithHost lk.salyk.kg:30040 [01:16:50]ConnectInit lk.salyk.kg [01:16:50]written 0, free lines is 4095 [01:16:50]Connected sock=10 [01:16:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 A7 08 06 01 FD 94 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 82 AB 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F8 0F 01 00 35 04 06 00 F7 D2 50 1E A6 28 2B 29 83 E4 33 62 03 E9 [01:16:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 2D 75 47 00 9D 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F8 0F 01 00 F4 03 04 00 27 55 15 67 B6 04 01 00 00 25 9E 22 49 22 1E BE 86 [01:16:51]CommunicateWithHost err = 0 [01:16:51]CheckOFDResponse [01:16:51]1017 (14) - 77093643461234 [01:16:51]1041 (16) - 0000000000963346 [01:16:51]1040 (4) - 69624 [01:16:51]1012 (4) - 20.10.2024 19:08 [01:16:51]1206 (1) - 0 [01:16:51]OFD Sender: Remove packet 69624 [01:16:51]ProducePacketName [01:16:51]name=ofd_packets/00069624 [01:16:51]NVStorageDeleteData [01:16:51]Write to MH i2c: 01 00 00 59 06 5F [01:16:51]Write i2c OK [01:16:51]MH_I2C_Read... [01:16:51]Read from MH i2c: 01 [01:16:51]MH_I2C_Read... [01:16:51]Read from MH i2c: 01 07 00 [01:16:51]MH_I2C_Read... [01:16:51]Read from MH i2c: 01 07 00 59 06 00 00 00 00 00 1F 0D 92 [01:16:51]RasterBufferAndPrint [01:16:51]line [01:16:51]line [01:16:51]line [01:16:51]line [01:16:51]line [01:16:51]written 0, free lines is 3365 [01:16:51]MH_Cut [01:16:51]Write to MH i2c: D1 01 00 60 06 01 38 [01:16:51]Write i2c OK [01:16:51]MH_I2C_Read... [01:16:51]Read from MH i2c: D1 [01:16:51]MH_I2C_Read... [01:16:51]Read from MH i2c: D1 01 00 [01:16:51]MH_I2C_Read... [01:16:51]Read from MH i2c: D1 01 00 60 06 00 37 [01:16:51]Write to MH i2c: 01 00 00 61 06 67 [01:16:51]Write i2c OK [01:16:51]MH_I2C_Read... [01:16:51]OFD Sender: No OFD packet to send [01:16:52]*** Cut start [01:16:52]*** Partial cut [01:16:52]*** CUTSNS_PIN = 1 [01:16:52]*** CUTSNS_PIN = 0 [01:16:52]*** Brake cut motor [01:16:52]Read from MH i2c: 01 [01:16:52]MH_I2C_Read... [01:16:52]*** Stop cut motor [01:16:52]*** Cut end [01:16:52]Read from MH i2c: 01 07 00 [01:16:52]MH_I2C_Read... [01:16:52]Read from MH i2c: 01 07 00 61 06 00 00 00 00 00 FF 0F 7C [01:16:52]process_action close_receipt done [01:16:52]requested_data is exist [01:16:52]produce_requested_data [01:16:52]requested_item fm.sn is exist - process it [01:16:52]wFMCommunicate request_size=4 [01:16:52]MH_SAM_APDU [01:16:52]CAPDU: 80 11 00 00 [01:16:52]Write to MH i2c: E2 08 00 62 06 80 11 00 00 00 00 00 00 E2 [01:16:52]Write i2c OK [01:16:52]MH_I2C_Read... [01:16:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:16:52]Read from MH i2c: E2 [01:16:52]MH_I2C_Read... [01:16:52]Read from MH i2c: E2 17 00 [01:16:52]MH_I2C_Read... [01:16:52]Read from MH i2c: E2 17 00 62 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 34 [01:16:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [01:16:52]wFMCommunicate OK [01:16:52]requested_item fd.num is exist - process it [01:16:52]SAM_PROTO_GetFieldsCounters [01:16:52]wFMCommunicate request_size=4 [01:16:52]MH_SAM_APDU [01:16:52]CAPDU: 80 13 00 00 [01:16:52]Write to MH i2c: E2 08 00 63 06 80 13 00 00 00 00 00 00 E5 [01:16:52]Write i2c OK [01:16:52]MH_I2C_Read... [01:16:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:16:52]Read from MH i2c: E2 [01:16:52]MH_I2C_Read... [01:16:52]Read from MH i2c: E2 62 00 [01:16:52]MH_I2C_Read... [01:16:52]Read from MH i2c: E2 62 00 63 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F8 0F 01 00 0E 04 04 00 C2 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 F4 [01:16:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F8 0F 01 00 0E 04 04 00 C2 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 [01:16:52]wFMCommunicate OK [01:16:52]SAM_PROTO_GetFieldsCounters done [01:16:52]requested_item shift.num is exist - process it [01:16:52]requested_item shift.opened is exist - process it [01:16:52]req_shift_opened [01:16:52]FM_GetShiftState [01:16:52]SAM_PROTO_GetShiftState [01:16:52]wFMCommunicate request_size=4 [01:16:52]MH_SAM_APDU [01:16:52]CAPDU: 80 13 01 00 [01:16:52]Write to MH i2c: E2 08 00 64 06 80 13 01 00 00 00 00 00 E7 [01:16:52]Write i2c OK [01:16:52]MH_I2C_Read... [01:16:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:16:52]Read from MH i2c: E2 [01:16:52]MH_I2C_Read... [01:16:52]Read from MH i2c: E2 0E 00 [01:16:52]MH_I2C_Read... [01:16:52]Read from MH i2c: E2 0E 00 64 06 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 13 [01:16:52]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [01:16:52]wFMCommunicate OK [01:16:52]SAM_PROTO_GetShiftState done [01:16:52]FM_GetShiftState done [01:16:52]req_shift_opened done [01:16:52]requested_item shift.open_date is exist - process it [01:16:52]req_shift_open_date [01:16:52]req_shift_open_date done [01:16:52]produce_requested_data done [01:16:52]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69624,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [01:16:52]process_action_free close_receipt [01:16:52]json_value_free [01:16:52]json_value_free done [01:16:52]process_json_proto returns [01:16:52]Send response to host [01:16:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69624,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [01:16:52]free response buf [01:16:52]execute_script done [01:16:52]execute_script returns [01:16:52]free content buf [01:16:52]Sock 8.Close socket [01:16:52]Sock 8.Thread stoped [01:16:56]OFD Sender: No OFD packet to send [01:17:01]OFD Sender: No OFD packet to send [01:17:06]OFD Sender: No OFD packet to send [01:17:11]OFD Sender: No OFD packet to send [01:17:16]OFD Sender: No OFD packet to send [01:17:21]OFD Sender: No OFD packet to send [01:17:26]OFD Sender: No OFD packet to send [01:17:31]OFD Sender: No OFD packet to send [01:17:36]OFD Sender: No OFD packet to send [01:17:41]OFD Sender: No OFD packet to send [01:17:46]OFD Sender: No OFD packet to send [01:17:51]OFD Sender: No OFD packet to send [01:17:56]OFD Sender: No OFD packet to send [01:18:01]OFD Sender: No OFD packet to send [01:18:06]OFD Sender: No OFD packet to send [01:18:11]OFD Sender: No OFD packet to send [01:18:16]OFD Sender: No OFD packet to send [01:18:21]OFD Sender: No OFD packet to send [01:18:26]OFD Sender: No OFD packet to send [01:18:27]accept exits with 9 [01:18:27]New connection [01:18:27]New thread 3067313508 created [01:18:27]Thread 3067456868 joined [01:18:27]Waiting for new connection... [01:18:27] Sock 9.Parse request [01:18:27]Sock 9.Check first char [01:18:27]Sock 9.First char is OK [01:18:27]request: POST /json_proto HTTP/1.0 [01:18:27]Method: POST [01:18:27]URL: /json_proto [01:18:27]Method is POST - this is cgi request [01:18:27]url: /json_proto [01:18:27]query_string will be loaded in cgi processing [01:18:27]execute_cgi json_proto POST (null) [01:18:27]execute_cgi path=json_proto method=POST [01:18:27]POST find Content-Length [01:18:27]Host: 172.17.50.3:8080 [01:18:27]Content-Length: 678 [01:18:27]Content-Type: application/json [01:18:27] [01:18:27]POST finish read [01:18:27]Found Content-Length = 678 [01:18:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:18:27]execute_script... [01:18: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)2885362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:18:27]POST & json_proto [01:18:27]process_json_proto [01:18:27]json parsed OK: [01:18:27]protocol is kg_v1.0 [01:18:27]action value=close_receipt [01:18:27]process_action close_receipt [01:18:27]cmd_close_receipt [01:18:27]MH_GetDate [01:18:27]Write to MH i2c: F0 00 00 65 06 5A [01:18:27]Write i2c OK [01:18:27]MH_I2C_Read... [01:18:27]Read from MH i2c: F0 [01:18:27]MH_I2C_Read... [01:18:27]Read from MH i2c: F0 09 00 [01:18:27]MH_I2C_Read... [01:18:27]Read from MH i2c: F0 09 00 65 06 00 E4 AB 15 67 6B 98 1E 66 F5 [01:18:27]GetLastDocTimeStamp 1729473410 [01:18:27]current date 1729473508 [01:18:27]FM_GetShiftState [01:18:27]SAM_PROTO_GetShiftState [01:18:27]wFMCommunicate request_size=4 [01:18:27]MH_SAM_APDU [01:18:27]CAPDU: 80 13 01 00 [01:18:27]Write to MH i2c: E2 08 00 66 06 80 13 01 00 00 00 00 00 E9 [01:18:27]Write i2c OK [01:18:27]MH_I2C_Read... [01:18:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:18:27]Read from MH i2c: E2 [01:18:27]MH_I2C_Read... [01:18:27]Read from MH i2c: E2 0E 00 [01:18:27]MH_I2C_Read... [01:18:27]Read from MH i2c: E2 0E 00 66 06 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 15 [01:18:27]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [01:18:27]wFMCommunicate OK [01:18:27]SAM_PROTO_GetShiftState done [01:18:27]FM_GetShiftState done [01:18:27]opened in 1729469703 [01:18:27]opened+sec_in_day 1729556103 [01:18:27]quantity*price = 50041 [01:18:27]sum+1 = 50042 [01:18:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 15 21.10.2024 01:18 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69625 ФПД: 159387209004259 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T011828&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69625&fm=159387209004259&tin=02508201610067®Number=0000000000156251&sum=50000 [01:18:28]StoreToDocumentArchive [01:18:28]shift 194 fd 69625 [01:18:28]save to /storage/0194/doc_00069625 [01:18:28]save last doc name /storage/0194/doc_00069625 to /storage/kkm_last_doc_name [01:18:28]save OK [01:18:28]Clear old archive folders... [01:18:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:18:28]tlvbuf is 00C36060 [01:18:28]SAM_PROTO_ClearQueue [01:18:28]wFMCommunicate request_size=4 [01:18:28]MH_SAM_APDU [01:18:28]CAPDU: 80 09 00 00 [01:18:28]Write to MH i2c: E2 08 00 73 06 80 09 00 00 00 00 00 00 EB [01:18:28]Write i2c OK [01:18:28]MH_I2C_Read... [01:18:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:18:28]Read from MH i2c: E2 [01:18:28]MH_I2C_Read... [01:18:28]Read from MH i2c: E2 03 00 [01:18:28]MH_I2C_Read... [01:18:28]Read from MH i2c: E2 03 00 73 06 00 90 00 ED [01:18:28]RAPDU: 90 00 [01:18:28]wFMCommunicate OK [01:18:28]SAM_PROTO_ClearQueue done [01:18:28]KKMCreateOFDPacket [01:18:28]OFDProtocolAddRootSTLVToBuf [01:18:28]FM_MakeSignedData [01:18:28]FM_MakeSignedData [01:18:28]SAM_PROTO_SignData [01:18:28]wFMCommunicate request_size=4 [01:18:28]MH_SAM_APDU [01:18:28]CAPDU: 80 0D 01 02 [01:18:28]Write to MH i2c: E2 08 00 74 06 80 0D 01 02 00 00 00 00 F3 [01:18:28]Write i2c OK [01:18:28]MH_I2C_Read... [01:18:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:18:28]Read from MH i2c: E2 [01:18:28]MH_I2C_Read... [01:18:28]Read from MH i2c: E2 03 00 [01:18:28]MH_I2C_Read... [01:18:28]Read from MH i2c: E2 03 00 74 06 00 90 00 EE [01:18:28]RAPDU: 90 00 [01:18:28]wFMCommunicate OK [01:18:28]wFMCommunicate request_size=255 [01:18:28]MH_SAM_APDU [01:18:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 E4 AB 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F9 0F 01 00 35 04 06 00 90 [01:18:28]Write to MH i2c: E2 02 01 75 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 E4 AB 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F9 0F 01 00 35 04 06 00 90 00 00 F1 [01:18:28]Write i2c OK [01:18:28]MH_I2C_Read... [01:18:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:18:28]Read from MH i2c: E2 [01:18:28]MH_I2C_Read... [01:18:28]Read from MH i2c: E2 03 00 [01:18:28]MH_I2C_Read... [01:18:28]Read from MH i2c: E2 03 00 75 06 00 90 00 EF [01:18:28]RAPDU: 90 00 [01:18:28]wFMCommunicate OK [01:18:28]wFMCommunicate request_size=10 [01:18:28]MH_SAM_APDU [01:18:28]CAPDU: 80 0D 02 02 05 F6 39 F9 74 E3 [01:18:28]Write to MH i2c: E2 0D 00 76 06 80 0D 02 02 05 00 F6 39 F9 74 E3 00 00 7F [01:18:28]Write i2c OK [01:18:28]MH_I2C_Read... [01:18:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:18:28]Read from MH i2c: E2 [01:18:28]MH_I2C_Read... [01:18:28]Read from MH i2c: E2 03 00 [01:18:28]MH_I2C_Read... [01:18:28]Read from MH i2c: E2 03 00 76 06 00 90 00 F0 [01:18:28]RAPDU: 90 00 [01:18:28]wFMCommunicate OK [01:18:28]wFMCommunicate request_size=4 [01:18:28]MH_SAM_APDU [01:18:28]CAPDU: 80 0D 03 02 [01:18:28]Write to MH i2c: E2 08 00 77 06 80 0D 03 02 00 00 00 00 F8 [01:18:28]Write i2c OK [01:18:28]MH_I2C_Read... [01:18:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:18:28]Read from MH i2c: E2 [01:18:28]MH_I2C_Read... [01:18:28]Read from MH i2c: E2 0B 00 [01:18:28]MH_I2C_Read... [01:18:28]Read from MH i2c: E2 0B 00 77 06 00 0D F6 89 DE BB 62 32 91 90 00 43 [01:18:28]RAPDU: 0D F6 89 DE BB 62 32 91 90 00 [01:18:28]wFMCommunicate OK [01:18:28]SAM_PROTO_SignData done [01:18:28]FM_MakeSignedData done [01:18:28]CreateOFDProtocolMessage [01:18:28]wFMCommunicate request_size=4 [01:18:28]MH_SAM_APDU [01:18:28]CAPDU: 80 11 00 00 [01:18:28]Write to MH i2c: E2 08 00 78 06 80 11 00 00 00 00 00 00 F8 [01:18:28]Write i2c OK [01:18:28]MH_I2C_Read... [01:18:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:18:29]Read from MH i2c: E2 [01:18:29]MH_I2C_Read... [01:18:29]Read from MH i2c: E2 17 00 [01:18:29]MH_I2C_Read... [01:18:29]Read from MH i2c: E2 17 00 78 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 4A [01:18:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [01:18:29]wFMCommunicate OK [01:18:29]CreateOFDProtocolMessage done [01:18:29]OFDSenderStorePacket 69625 [01:18:29]StoreOFDPacket docnum=69625 [01:18:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 CD 63 07 01 8C 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 E4 AB 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F9 0F 01 00 35 04 06 00 90 F6 39 F9 74 E3 0D F6 89 DE BB 62 32 91 [01:18:29]CheckFolder [01:18:29]dirname=/storage/ofd_packets [01:18:29]CheckFolder done [01:18:29]ProducePacketName [01:18:29]name=ofd_packets/00069625 [01:18:29]NVStorageSaveData ofd_packets/00069625 [01:18:29]File name is /storage/ofd_packets/00069625 [01:18:29]Write 301 bytes [01:18:29]NVStorageSaveData done [01:18:29]OFDSenderStorePacket done [01:18:29]KKMCreateOFDPacket done [01:18:29]NVStorageSaveData kkm_last_timestamp [01:18:29]File name is /storage/kkm_last_timestamp [01:18:29]Write 4 bytes [01:18:29]NVStorageSaveData done [01:18:29]ExternCall_PrintAddStr [01:18:29]wPrintStart [01:18:29]Write to MH i2c: 01 00 00 79 06 7F [01:18:29]Write i2c OK [01:18:29]MH_I2C_Read... [01:18:29]Read from MH i2c: 01 [01:18:29]MH_I2C_Read... [01:18:29]Read from MH i2c: 01 07 00 [01:18:29]MH_I2C_Read... [01:18:29]Read from MH i2c: 01 07 00 79 06 00 00 00 00 00 FF 0F 94 [01:18:29]RasterBufferAndPrint [01:18:29]line Счет N : (1)2885362 [01:18:29]line ИНН: 02508201610067 [01:18:29]line Контрольно-Кассовый Чек [01:18:29]line ПРОДАЖА [01:18:29]line ТРК (МРК, ГНК) : 42 [01:18:29]line Товар: 2710124130 [01:18:29]line Аи-92-К-5 [01:18:29]line 7.480 * 66.90 [01:18:29]line = 500.41 [01:18:29]line НДС 12% НСП 1% [01:18:29]line > о реализуемом товаре [01:18:29]line ОКРУГЛЕНИЕ: -0.41 [01:18:29]line ИТОГО: 500.00 [01:18:29]line Внесено: 500.00 [01:18:29]line СДАЧА: 0.00 [01:18:29]line НСП 1% : 4.43 [01:18:29]line НДС 12% : 53.14 [01:18:29]line Наличными: 500.00 [01:18:29]line Безнал.: 0.00 [01:18:29]line Место: АЗС № 85 "Партнер Нефть" [01:18:29]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [01:18:29]line СНО: Общий режим [01:18:29]line Чек 15 21.10.2024 01:18 [01:18:29]line Смена: 194 ФФД: 1.0 [01:18:29]line ЗНМ: 0300000167 [01:18:29]line РНМ: 0000000000156251 [01:18:29]line Версия ККМ: v1.0 [01:18:29]line ФМ: 0000000000963346 [01:18:29]line ФД: 69625 [01:18:29]line ФПД: 159387209004259 [01:18:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T011828&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69625&fm=159387209004259&tin=02508201610067®Number=0000000000156251&sum=50000 [01:18:29]OFD Sender: Processing packet 69625 [packets to send 18, broken 17] [01:18:29]ProducePacketName [01:18:29]name=ofd_packets/00069625 [01:18:29]OFD Sender: To server: pG, [01:18:29]CommunicateWithHost lk.salyk.kg:30040 [01:18:29]ConnectInit lk.salyk.kg [01:18:29]written 0, free lines is 4095 [01:18:29]Connected sock=10 [01:18:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 CD 63 07 01 8C 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 E4 AB 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F9 0F 01 00 35 04 06 00 90 F6 39 F9 74 E3 0D F6 89 DE BB 62 32 91 [01:18:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 00 B0 47 00 49 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 F9 0F 01 00 F4 03 04 00 89 55 15 67 B6 04 01 00 00 E1 98 E2 5C 84 E3 35 9B [01:18:29]CommunicateWithHost err = 0 [01:18:29]CheckOFDResponse [01:18:29]1017 (14) - 77093643461234 [01:18:29]1041 (16) - 0000000000963346 [01:18:29]1040 (4) - 69625 [01:18:29]1012 (4) - 20.10.2024 19:10 [01:18:29]1206 (1) - 0 [01:18:29]OFD Sender: Remove packet 69625 [01:18:29]ProducePacketName [01:18:29]name=ofd_packets/00069625 [01:18:29]NVStorageDeleteData [01:18:29]Write to MH i2c: 01 00 00 A4 06 AA [01:18:29]Write i2c OK [01:18:29]MH_I2C_Read... [01:18:29]Read from MH i2c: 01 [01:18:29]MH_I2C_Read... [01:18:29]Read from MH i2c: 01 07 00 [01:18:29]MH_I2C_Read... [01:18:29]Read from MH i2c: 01 07 00 A4 06 00 00 00 00 00 D9 0C 96 [01:18:29]RasterBufferAndPrint [01:18:29]line [01:18:29]line [01:18:29]line [01:18:29]line [01:18:29]line [01:18:29]written 0, free lines is 3296 [01:18:29]MH_Cut [01:18:29]Write to MH i2c: D1 01 00 AB 06 01 83 [01:18:29]Write i2c OK [01:18:29]MH_I2C_Read... [01:18:29]Read from MH i2c: D1 [01:18:29]MH_I2C_Read... [01:18:29]Read from MH i2c: D1 01 00 [01:18:29]MH_I2C_Read... [01:18:29]Read from MH i2c: D1 01 00 AB 06 00 82 [01:18:29]Write to MH i2c: 01 00 00 AC 06 B2 [01:18:29]Write i2c OK [01:18:29]MH_I2C_Read... [01:18:30]OFD Sender: No OFD packet to send [01:18:30]*** Cut start [01:18:30]*** Partial cut [01:18:30]*** CUTSNS_PIN = 1 [01:18:30]*** CUTSNS_PIN = 0 [01:18:30]*** Brake cut motor [01:18:31]Read from MH i2c: 01 [01:18:31]MH_I2C_Read... [01:18:31]*** Stop cut motor [01:18:31]*** Cut end [01:18:31]Read from MH i2c: 01 07 00 [01:18:31]MH_I2C_Read... [01:18:31]Read from MH i2c: 01 07 00 AC 06 00 00 00 00 00 FF 0F C7 [01:18:31]process_action close_receipt done [01:18:31]requested_data is exist [01:18:31]produce_requested_data [01:18:31]requested_item fm.sn is exist - process it [01:18:31]wFMCommunicate request_size=4 [01:18:31]MH_SAM_APDU [01:18:31]CAPDU: 80 11 00 00 [01:18:31]Write to MH i2c: E2 08 00 AD 06 80 11 00 00 00 00 00 00 2D [01:18:31]Write i2c OK [01:18:31]MH_I2C_Read... [01:18:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:18:31]Read from MH i2c: E2 [01:18:31]MH_I2C_Read... [01:18:31]Read from MH i2c: E2 17 00 [01:18:31]MH_I2C_Read... [01:18:31]Read from MH i2c: E2 17 00 AD 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 7F [01:18:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [01:18:31]wFMCommunicate OK [01:18:31]requested_item fd.num is exist - process it [01:18:31]SAM_PROTO_GetFieldsCounters [01:18:31]wFMCommunicate request_size=4 [01:18:31]MH_SAM_APDU [01:18:31]CAPDU: 80 13 00 00 [01:18:31]Write to MH i2c: E2 08 00 AE 06 80 13 00 00 00 00 00 00 30 [01:18:31]Write i2c OK [01:18:31]MH_I2C_Read... [01:18:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:18:31]Read from MH i2c: E2 [01:18:31]MH_I2C_Read... [01:18:31]Read from MH i2c: E2 62 00 [01:18:31]MH_I2C_Read... [01:18:31]Read from MH i2c: E2 62 00 AE 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F9 0F 01 00 0E 04 04 00 C2 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 43 [01:18:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 F9 0F 01 00 0E 04 04 00 C2 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 [01:18:31]wFMCommunicate OK [01:18:31]SAM_PROTO_GetFieldsCounters done [01:18:31]requested_item shift.num is exist - process it [01:18:31]requested_item shift.opened is exist - process it [01:18:31]req_shift_opened [01:18:31]FM_GetShiftState [01:18:31]SAM_PROTO_GetShiftState [01:18:31]wFMCommunicate request_size=4 [01:18:31]MH_SAM_APDU [01:18:31]CAPDU: 80 13 01 00 [01:18:31]Write to MH i2c: E2 08 00 AF 06 80 13 01 00 00 00 00 00 32 [01:18:31]Write i2c OK [01:18:31]MH_I2C_Read... [01:18:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:18:31]Read from MH i2c: E2 [01:18:31]MH_I2C_Read... [01:18:31]Read from MH i2c: E2 0E 00 [01:18:31]MH_I2C_Read... [01:18:31]Read from MH i2c: E2 0E 00 AF 06 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 5E [01:18:31]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [01:18:31]wFMCommunicate OK [01:18:31]SAM_PROTO_GetShiftState done [01:18:31]FM_GetShiftState done [01:18:31]req_shift_opened done [01:18:31]requested_item shift.open_date is exist - process it [01:18:31]req_shift_open_date [01:18:31]req_shift_open_date done [01:18:31]produce_requested_data done [01:18:31]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69625,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [01:18:31]process_action_free close_receipt [01:18:31]json_value_free [01:18:31]json_value_free done [01:18:31]process_json_proto returns [01:18:31]Send response to host [01:18:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69625,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [01:18:31]free response buf [01:18:31]execute_script done [01:18:31]execute_script returns [01:18:31]free content buf [01:18:31]Sock 9.Close socket [01:18:31]Sock 9.Thread stoped [01:18:35]OFD Sender: No OFD packet to send [01:18:40]OFD Sender: No OFD packet to send [01:18:45]OFD Sender: No OFD packet to send [01:18:50]OFD Sender: No OFD packet to send [01:18:55]OFD Sender: No OFD packet to send [01:19:00]OFD Sender: No OFD packet to send [01:19:05]OFD Sender: No OFD packet to send [01:19:10]OFD Sender: No OFD packet to send [01:19:15]OFD Sender: No OFD packet to send [01:19:20]OFD Sender: No OFD packet to send [01:19:25]OFD Sender: No OFD packet to send [01:19:30]OFD Sender: No OFD packet to send [01:19:35]OFD Sender: No OFD packet to send [01:19:40]OFD Sender: No OFD packet to send [01:19:45]OFD Sender: No OFD packet to send [01:19:50]OFD Sender: No OFD packet to send [01:19:55]OFD Sender: No OFD packet to send [01:20:00]OFD Sender: No OFD packet to send [01:20:05]OFD Sender: No OFD packet to send [01:20:10]OFD Sender: No OFD packet to send [01:20:15]OFD Sender: No OFD packet to send [01:20:20]OFD Sender: No OFD packet to send [01:20:25]OFD Sender: No OFD packet to send [01:20:30]OFD Sender: No OFD packet to send [01:20:35]OFD Sender: No OFD packet to send [01:20:40]OFD Sender: No OFD packet to send [01:20:45]OFD Sender: No OFD packet to send [01:20:50]OFD Sender: No OFD packet to send [01:20:55]OFD Sender: No OFD packet to send [01:21:00]OFD Sender: No OFD packet to send [01:21:05]OFD Sender: No OFD packet to send [01:21:10]OFD Sender: No OFD packet to send [01:21:15]OFD Sender: No OFD packet to send [01:21:20]OFD Sender: No OFD packet to send [01:21:25]OFD Sender: No OFD packet to send [01:21:27]accept exits with 8 [01:21:27]New connection [01:21:27]New thread 3067456868 created [01:21:27]Thread 3067313508 joined [01:21:27]Waiting for new connection... [01:21:27] Sock 8.Parse request [01:21:27]Sock 8.Check first char [01:21:27]Sock 8.First char is OK [01:21:27]request: POST /json_proto HTTP/1.0 [01:21:27]Method: POST [01:21:27]URL: /json_proto [01:21:27]Method is POST - this is cgi request [01:21:27]url: /json_proto [01:21:27]query_string will be loaded in cgi processing [01:21:27]execute_cgi json_proto POST (null) [01:21:27]execute_cgi path=json_proto method=POST [01:21:27]POST find Content-Length [01:21:27]Host: 172.17.50.3:8080 [01:21:27]Content-Length: 683 [01:21:27]Content-Type: application/json [01:21:27] [01:21:27]POST finish read [01:21:27]Found Content-Length = 683 [01:21:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 19.930, "sum" : 775.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 775.00, "payments": [ { "type": 0, "sum" : 775.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:21:27]execute_script... [01:21: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)2885363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 19.930, "sum" : 775.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 775.00, "payments": [ { "type": 0, "sum" : 775.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:21:27]POST & json_proto [01:21:27]process_json_proto [01:21:27]json parsed OK: [01:21:27]protocol is kg_v1.0 [01:21:27]action value=close_receipt [01:21:27]process_action close_receipt [01:21:27]cmd_close_receipt [01:21:27]MH_GetDate [01:21:27]Write to MH i2c: F0 00 00 B0 06 A5 [01:21:27]Write i2c OK [01:21:27]MH_I2C_Read... [01:21:27]Read from MH i2c: F0 [01:21:27]MH_I2C_Read... [01:21:27]Read from MH i2c: F0 09 00 [01:21:27]MH_I2C_Read... [01:21:27]Read from MH i2c: F0 09 00 B0 06 00 98 AC 15 67 6B 98 1E 66 F5 [01:21:27]GetLastDocTimeStamp 1729473508 [01:21:27]current date 1729473688 [01:21:27]FM_GetShiftState [01:21:27]SAM_PROTO_GetShiftState [01:21:27]wFMCommunicate request_size=4 [01:21:27]MH_SAM_APDU [01:21:27]CAPDU: 80 13 01 00 [01:21:27]Write to MH i2c: E2 08 00 B1 06 80 13 01 00 00 00 00 00 34 [01:21:27]Write i2c OK [01:21:27]MH_I2C_Read... [01:21:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:21:27]Read from MH i2c: E2 [01:21:27]MH_I2C_Read... [01:21:27]Read from MH i2c: E2 0E 00 [01:21:27]MH_I2C_Read... [01:21:27]Read from MH i2c: E2 0E 00 B1 06 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 60 [01:21:27]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [01:21:27]wFMCommunicate OK [01:21:27]SAM_PROTO_GetShiftState done [01:21:27]FM_GetShiftState done [01:21:27]opened in 1729469703 [01:21:27]opened+sec_in_day 1729556103 [01:21:27]quantity*price = 77527 [01:21:27]sum+1 = 77529 [01:21:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 775.00 Внесено: 1000.00 СДАЧА: 225.00 НСП 1% : 6.86 НДС 12% : 82.33 Наличными: 775.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 16 21.10.2024 01:21 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69626 ФПД: 142501542703042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T012128&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69626&fm=142501542703042&tin=02508201610067®Number=0000000000156251&sum=77500 [01:21:28]StoreToDocumentArchive [01:21:28]shift 194 fd 69626 [01:21:28]save to /storage/0194/doc_00069626 [01:21:28]save last doc name /storage/0194/doc_00069626 to /storage/kkm_last_doc_name [01:21:28]save OK [01:21:28]Clear old archive folders... [01:21:28]ProcessDocumentItem done err = 0, tmpTLVsize=250 [01:21:28]tlvbuf is 00C24ED0 [01:21:28]SAM_PROTO_ClearQueue [01:21:28]wFMCommunicate request_size=4 [01:21:28]MH_SAM_APDU [01:21:28]CAPDU: 80 09 00 00 [01:21:28]Write to MH i2c: E2 08 00 BE 06 80 09 00 00 00 00 00 00 36 [01:21:28]Write i2c OK [01:21:28]MH_I2C_Read... [01:21:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:21:28]Read from MH i2c: E2 [01:21:28]MH_I2C_Read... [01:21:28]Read from MH i2c: E2 03 00 [01:21:28]MH_I2C_Read... [01:21:28]Read from MH i2c: E2 03 00 BE 06 00 90 00 38 [01:21:28]RAPDU: 90 00 [01:21:28]wFMCommunicate OK [01:21:28]SAM_PROTO_ClearQueue done [01:21:28]KKMCreateOFDPacket [01:21:28]OFDProtocolAddRootSTLVToBuf [01:21:28]FM_MakeSignedData [01:21:28]FM_MakeSignedData [01:21:28]SAM_PROTO_SignData [01:21:28]wFMCommunicate request_size=4 [01:21:28]MH_SAM_APDU [01:21:28]CAPDU: 80 0D 01 02 [01:21:28]Write to MH i2c: E2 08 00 BF 06 80 0D 01 02 00 00 00 00 3E [01:21:28]Write i2c OK [01:21:28]MH_I2C_Read... [01:21:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:21:28]Read from MH i2c: E2 [01:21:28]MH_I2C_Read... [01:21:28]Read from MH i2c: E2 03 00 [01:21:28]MH_I2C_Read... [01:21:28]Read from MH i2c: E2 03 00 BF 06 00 90 00 39 [01:21:28]RAPDU: 90 00 [01:21:28]wFMCommunicate OK [01:21:28]wFMCommunicate request_size=255 [01:21:28]MH_SAM_APDU [01:21:28]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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DA 4D 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 D8 2E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 2E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 20 00 00 00 00 07 04 06 00 BC 2E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 98 AC 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FA 0F 01 00 35 04 06 00 81 9A [01:21:28]Write to MH i2c: E2 02 01 C0 06 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DA 4D 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 D8 2E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 2E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 20 00 00 00 00 07 04 06 00 BC 2E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 98 AC 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FA 0F 01 00 35 04 06 00 81 9A 00 00 E5 [01:21:28]Write i2c OK [01:21:28]MH_I2C_Read... [01:21:29]Read from MH i2c: E2 [01:21:29]MH_I2C_Read... [01:21:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:21:29]Read from MH i2c: E2 03 00 [01:21:29]MH_I2C_Read... [01:21:29]Read from MH i2c: E2 03 00 C0 06 00 90 00 3A [01:21:29]RAPDU: 90 00 [01:21:29]wFMCommunicate OK [01:21:29]wFMCommunicate request_size=9 [01:21:29]MH_SAM_APDU [01:21:29]CAPDU: 80 0D 02 02 04 B9 D5 2F C2 [01:21:29]Write to MH i2c: E2 0C 00 C1 06 80 0D 02 02 04 00 B9 D5 2F C2 00 00 C8 [01:21:29]Write i2c OK [01:21:29]MH_I2C_Read... [01:21:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:21:29]Read from MH i2c: E2 [01:21:29]MH_I2C_Read... [01:21:29]Read from MH i2c: E2 03 00 [01:21:29]MH_I2C_Read... [01:21:29]Read from MH i2c: E2 03 00 C1 06 00 90 00 3B [01:21:29]RAPDU: 90 00 [01:21:29]wFMCommunicate OK [01:21:29]wFMCommunicate request_size=4 [01:21:29]MH_SAM_APDU [01:21:29]CAPDU: 80 0D 03 02 [01:21:29]Write to MH i2c: E2 08 00 C2 06 80 0D 03 02 00 00 00 00 43 [01:21:29]Write i2c OK [01:21:29]MH_I2C_Read... [01:21:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:21:29]Read from MH i2c: E2 [01:21:29]MH_I2C_Read... [01:21:29]Read from MH i2c: E2 0B 00 [01:21:29]MH_I2C_Read... [01:21:29]Read from MH i2c: E2 0B 00 C2 06 00 6E B5 00 FB CC 5F 10 57 90 00 F4 [01:21:29]RAPDU: 6E B5 00 FB CC 5F 10 57 90 00 [01:21:29]wFMCommunicate OK [01:21:29]SAM_PROTO_SignData done [01:21:29]FM_MakeSignedData done [01:21:29]CreateOFDProtocolMessage [01:21:29]wFMCommunicate request_size=4 [01:21:29]MH_SAM_APDU [01:21:29]CAPDU: 80 11 00 00 [01:21:29]Write to MH i2c: E2 08 00 C3 06 80 11 00 00 00 00 00 00 43 [01:21:29]Write i2c OK [01:21:29]MH_I2C_Read... [01:21:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:21:29]Read from MH i2c: E2 [01:21:29]MH_I2C_Read... [01:21:29]Read from MH i2c: E2 17 00 [01:21:29]MH_I2C_Read... [01:21:29]Read from MH i2c: E2 17 00 C3 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 95 [01:21:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [01:21:29]wFMCommunicate OK [01:21:29]CreateOFDProtocolMessage done [01:21:29]OFDSenderStorePacket 69626 [01:21:29]StoreOFDPacket docnum=69626 [01:21:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 71 FA 06 01 9F AD 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DA 4D 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 D8 2E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 2E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 20 00 00 00 00 07 04 06 00 BC 2E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 98 AC 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FA 0F 01 00 35 04 06 00 81 9A B9 D5 2F C2 6E B5 00 FB CC 5F 10 57 [01:21:29]CheckFolder [01:21:29]dirname=/storage/ofd_packets [01:21:29]CheckFolder done [01:21:29]ProducePacketName [01:21:29]name=ofd_packets/00069626 [01:21:29]NVStorageSaveData ofd_packets/00069626 [01:21:29]File name is /storage/ofd_packets/00069626 [01:21:29]Write 300 bytes [01:21:29]NVStorageSaveData done [01:21:29]OFDSenderStorePacket done [01:21:29]KKMCreateOFDPacket done [01:21:29]NVStorageSaveData kkm_last_timestamp [01:21:29]File name is /storage/kkm_last_timestamp [01:21:29]Write 4 bytes [01:21:29]NVStorageSaveData done [01:21:29]ExternCall_PrintAddStr [01:21:29]wPrintStart [01:21:29]Write to MH i2c: 01 00 00 C4 06 CA [01:21:29]Write i2c OK [01:21:29]MH_I2C_Read... [01:21:29]Read from MH i2c: 01 [01:21:29]MH_I2C_Read... [01:21:29]Read from MH i2c: 01 07 00 [01:21:29]MH_I2C_Read... [01:21:29]Read from MH i2c: 01 07 00 C4 06 00 00 00 00 00 FF 0F DF [01:21:29]RasterBufferAndPrint [01:21:29]line Счет N : (1)2885363 [01:21:29]line ИНН: 02508201610067 [01:21:29]line Контрольно-Кассовый Чек [01:21:29]line ПРОДАЖА [01:21:29]line ТРК (МРК, ГНК) : 71 [01:21:29]line Товар: 2711129700 [01:21:29]line ГАЗ-К-3 [01:21:29]line 19.930 * 38.90 [01:21:29]line = 775.28 [01:21:29]line НДС 12% НСП 1% [01:21:29]line > о реализуемом товаре [01:21:29]line ОКРУГЛЕНИЕ: -0.28 [01:21:29]line ИТОГО: 775.00 [01:21:29]line Внесено: 1000.00 [01:21:29]line СДАЧА: 225.00 [01:21:29]line НСП 1% : 6.86 [01:21:29]line НДС 12% : 82.33 [01:21:29]line Наличными: 775.00 [01:21:29]line Безнал.: 0.00 [01:21:29]line Место: АЗС № 85 "Партнер Нефть" [01:21:29]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [01:21:29]line СНО: Общий режим [01:21:29]line Чек 16 21.10.2024 01:21 [01:21:29]line Смена: 194 ФФД: 1.0 [01:21:29]line ЗНМ: 0300000167 [01:21:29]line РНМ: 0000000000156251 [01:21:29]line Версия ККМ: v1.0 [01:21:29]line ФМ: 0000000000963346 [01:21:29]line ФД: 69626 [01:21:29]line ФПД: 142501542703042 [01:21:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T012128&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69626&fm=142501542703042&tin=02508201610067®Number=0000000000156251&sum=77500 [01:21:29]OFD Sender: Processing packet 69626 [packets to send 18, broken 17] [01:21:29]ProducePacketName [01:21:29]name=ofd_packets/00069626 [01:21:29]OFD Sender: To server: pG, [01:21:29]CommunicateWithHost lk.salyk.kg:30040 [01:21:29]ConnectInit lk.salyk.kg [01:21:29]written 0, free lines is 4095 [01:21:29]Connected sock=10 [01:21:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 71 FA 06 01 9F AD 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DA 4D 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 D8 2E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 2E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 20 00 00 00 00 07 04 06 00 BC 2E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 98 AC 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FA 0F 01 00 35 04 06 00 81 9A B9 D5 2F C2 6E B5 00 FB CC 5F 10 57 [01:21:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 38 7E 47 00 05 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FA 0F 01 00 F4 03 04 00 3E 56 15 67 B6 04 01 00 00 67 8B 56 6C 77 2C 62 27 [01:21:30]CommunicateWithHost err = 0 [01:21:30]CheckOFDResponse [01:21:30]1017 (14) - 77093643461234 [01:21:30]1041 (16) - 0000000000963346 [01:21:30]1040 (4) - 69626 [01:21:30]1012 (4) - 20.10.2024 19:13 [01:21:30]1206 (1) - 0 [01:21:30]OFD Sender: Remove packet 69626 [01:21:30]ProducePacketName [01:21:30]name=ofd_packets/00069626 [01:21:30]NVStorageDeleteData [01:21:30]Write to MH i2c: 01 00 00 EF 06 F5 [01:21:30]Write i2c OK [01:21:30]MH_I2C_Read... [01:21:30]Read from MH i2c: 01 [01:21:30]MH_I2C_Read... [01:21:30]Read from MH i2c: 01 07 00 [01:21:30]MH_I2C_Read... [01:21:30]Read from MH i2c: 01 07 00 EF 06 00 00 00 00 00 E4 0C EC [01:21:30]RasterBufferAndPrint [01:21:30]line [01:21:30]line [01:21:30]line [01:21:30]line [01:21:30]line [01:21:30]written 0, free lines is 3306 [01:21:30]MH_Cut [01:21:30]Write to MH i2c: D1 01 00 F6 06 01 CE [01:21:30]Write i2c OK [01:21:30]MH_I2C_Read... [01:21:30]Read from MH i2c: D1 [01:21:30]MH_I2C_Read... [01:21:30]Read from MH i2c: D1 01 00 [01:21:30]MH_I2C_Read... [01:21:30]Read from MH i2c: D1 01 00 F6 06 00 CD [01:21:30]Write to MH i2c: 01 00 00 F7 06 FD [01:21:30]Write i2c OK [01:21:30]MH_I2C_Read... [01:21:30]OFD Sender: No OFD packet to send [01:21:30]*** Cut start [01:21:30]*** Partial cut [01:21:30]*** CUTSNS_PIN = 1 [01:21:30]*** CUTSNS_PIN = 0 [01:21:31]*** Brake cut motor [01:21:31]Read from MH i2c: 01 [01:21:31]MH_I2C_Read... [01:21:31]*** Stop cut motor [01:21:31]*** Cut end [01:21:31]Read from MH i2c: 01 07 00 [01:21:31]MH_I2C_Read... [01:21:31]Read from MH i2c: 01 07 00 F7 06 00 00 00 00 00 FF 0F 12 [01:21:31]process_action close_receipt done [01:21:31]requested_data is exist [01:21:31]produce_requested_data [01:21:31]requested_item fm.sn is exist - process it [01:21:31]wFMCommunicate request_size=4 [01:21:31]MH_SAM_APDU [01:21:31]CAPDU: 80 11 00 00 [01:21:31]Write to MH i2c: E2 08 00 F8 06 80 11 00 00 00 00 00 00 78 [01:21:31]Write i2c OK [01:21:31]MH_I2C_Read... [01:21:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:21:31]Read from MH i2c: E2 [01:21:31]MH_I2C_Read... [01:21:31]Read from MH i2c: E2 17 00 [01:21:31]MH_I2C_Read... [01:21:31]Read from MH i2c: E2 17 00 F8 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 CA [01:21:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [01:21:31]wFMCommunicate OK [01:21:31]requested_item fd.num is exist - process it [01:21:31]SAM_PROTO_GetFieldsCounters [01:21:31]wFMCommunicate request_size=4 [01:21:31]MH_SAM_APDU [01:21:31]CAPDU: 80 13 00 00 [01:21:31]Write to MH i2c: E2 08 00 F9 06 80 13 00 00 00 00 00 00 7B [01:21:31]Write i2c OK [01:21:31]MH_I2C_Read... [01:21:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:21:31]Read from MH i2c: E2 [01:21:31]MH_I2C_Read... [01:21:31]Read from MH i2c: E2 62 00 [01:21:31]MH_I2C_Read... [01:21:31]Read from MH i2c: E2 62 00 F9 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FA 0F 01 00 0E 04 04 00 C2 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 92 [01:21:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FA 0F 01 00 0E 04 04 00 C2 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 [01:21:31]wFMCommunicate OK [01:21:31]SAM_PROTO_GetFieldsCounters done [01:21:31]requested_item shift.num is exist - process it [01:21:31]requested_item shift.opened is exist - process it [01:21:31]req_shift_opened [01:21:31]FM_GetShiftState [01:21:31]SAM_PROTO_GetShiftState [01:21:31]wFMCommunicate request_size=4 [01:21:31]MH_SAM_APDU [01:21:31]CAPDU: 80 13 01 00 [01:21:31]Write to MH i2c: E2 08 00 FA 06 80 13 01 00 00 00 00 00 7D [01:21:31]Write i2c OK [01:21:31]MH_I2C_Read... [01:21:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:21:31]Read from MH i2c: E2 [01:21:31]MH_I2C_Read... [01:21:31]Read from MH i2c: E2 0E 00 [01:21:31]MH_I2C_Read... [01:21:31]Read from MH i2c: E2 0E 00 FA 06 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 A9 [01:21:31]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [01:21:31]wFMCommunicate OK [01:21:31]SAM_PROTO_GetShiftState done [01:21:31]FM_GetShiftState done [01:21:31]req_shift_opened done [01:21:31]requested_item shift.open_date is exist - process it [01:21:31]req_shift_open_date [01:21:31]req_shift_open_date done [01:21:31]produce_requested_data done [01:21:31]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69626,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [01:21:31]process_action_free close_receipt [01:21:31]json_value_free [01:21:31]json_value_free done [01:21:31]process_json_proto returns [01:21:31]Send response to host [01:21:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69626,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [01:21:31]free response buf [01:21:31]execute_script done [01:21:31]execute_script returns [01:21:31]free content buf [01:21:31]Sock 8.Close socket [01:21:31]Sock 8.Thread stoped [01:21:35]OFD Sender: No OFD packet to send [01:21:40]OFD Sender: No OFD packet to send [01:21:45]OFD Sender: No OFD packet to send [01:21:50]OFD Sender: No OFD packet to send [01:21:55]OFD Sender: No OFD packet to send [01:22:00]OFD Sender: No OFD packet to send [01:22:05]OFD Sender: No OFD packet to send [01:22:10]OFD Sender: No OFD packet to send [01:22:14]accept exits with 9 [01:22:14]New connection [01:22:14]New thread 3067313508 created [01:22:14]Thread 3067456868 joined [01:22:14]Waiting for new connection... [01:22:14] Sock 9.Parse request [01:22:14]Sock 9.Check first char [01:22:14]Sock 9.First char is OK [01:22:14]request: POST /json_proto HTTP/1.0 [01:22:14]Method: POST [01:22:14]URL: /json_proto [01:22:14]Method is POST - this is cgi request [01:22:14]url: /json_proto [01:22:14]query_string will be loaded in cgi processing [01:22:14]execute_cgi json_proto POST (null) [01:22:14]execute_cgi path=json_proto method=POST [01:22:14]POST find Content-Length [01:22:14]Host: 172.17.50.3:8080 [01:22:14]Content-Length: 684 [01:22:14]Content-Type: application/json [01:22:14] [01:22:14]POST finish read [01:22:14]Found Content-Length = 684 [01:22:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 7.780, "sum" : 600.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:22:14]execute_script... [01:22:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 7.780, "sum" : 600.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:22:14]POST & json_proto [01:22:14]process_json_proto [01:22:14]json parsed OK: [01:22:14]protocol is kg_v1.0 [01:22:14]action value=close_receipt [01:22:14]process_action close_receipt [01:22:14]cmd_close_receipt [01:22:14]MH_GetDate [01:22:14]Write to MH i2c: F0 00 00 FB 06 F0 [01:22:14]Write i2c OK [01:22:14]MH_I2C_Read... [01:22:14]Read from MH i2c: F0 [01:22:14]MH_I2C_Read... [01:22:14]Read from MH i2c: F0 09 00 [01:22:14]MH_I2C_Read... [01:22:14]Read from MH i2c: F0 09 00 FB 06 00 C7 AC 15 67 6B 98 1E 66 6F [01:22:14]GetLastDocTimeStamp 1729473688 [01:22:14]current date 1729473735 [01:22:14]FM_GetShiftState [01:22:14]SAM_PROTO_GetShiftState [01:22:14]wFMCommunicate request_size=4 [01:22:14]MH_SAM_APDU [01:22:14]CAPDU: 80 13 01 00 [01:22:14]Write to MH i2c: E2 08 00 FC 06 80 13 01 00 00 00 00 00 7F [01:22:14]Write i2c OK [01:22:14]MH_I2C_Read... [01:22:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:22:14]Read from MH i2c: E2 [01:22:14]MH_I2C_Read... [01:22:14]Read from MH i2c: E2 0E 00 [01:22:14]MH_I2C_Read... [01:22:14]Read from MH i2c: E2 0E 00 FC 06 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 AB [01:22:14]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [01:22:14]wFMCommunicate OK [01:22:14]SAM_PROTO_GetShiftState done [01:22:14]FM_GetShiftState done [01:22:14]opened in 1729469703 [01:22:14]opened+sec_in_day 1729556103 [01:22:14]quantity*price = 60061 [01:22:14]sum+1 = 60063 [01:22:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 17 21.10.2024 01:22 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69627 ФПД: 140875430069667 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T012215&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69627&fm=140875430069667&tin=02508201610067®Number=0000000000156251&sum=60000 [01:22:15]StoreToDocumentArchive [01:22:15]shift 194 fd 69627 [01:22:15]save to /storage/0194/doc_00069627 [01:22:15]save last doc name /storage/0194/doc_00069627 to /storage/kkm_last_doc_name [01:22:15]save OK [01:22:15]Clear old archive folders... [01:22:15]ProcessDocumentItem done err = 0, tmpTLVsize=257 [01:22:15]tlvbuf is 00C47030 [01:22:15]SAM_PROTO_ClearQueue [01:22:15]wFMCommunicate request_size=4 [01:22:15]MH_SAM_APDU [01:22:15]CAPDU: 80 09 00 00 [01:22:15]Write to MH i2c: E2 08 00 09 07 80 09 00 00 00 00 00 00 82 [01:22:15]Write i2c OK [01:22:15]MH_I2C_Read... [01:22:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:22:15]Read from MH i2c: E2 [01:22:15]MH_I2C_Read... [01:22:15]Read from MH i2c: E2 03 00 [01:22:15]MH_I2C_Read... [01:22:15]Read from MH i2c: E2 03 00 09 07 00 90 00 84 [01:22:15]RAPDU: 90 00 [01:22:15]wFMCommunicate OK [01:22:15]SAM_PROTO_ClearQueue done [01:22:15]KKMCreateOFDPacket [01:22:15]OFDProtocolAddRootSTLVToBuf [01:22:15]FM_MakeSignedData [01:22:15]FM_MakeSignedData [01:22:15]SAM_PROTO_SignData [01:22:15]wFMCommunicate request_size=4 [01:22:15]MH_SAM_APDU [01:22:15]CAPDU: 80 0D 01 02 [01:22:15]Write to MH i2c: E2 08 00 0A 07 80 0D 01 02 00 00 00 00 8A [01:22:15]Write i2c OK [01:22:15]MH_I2C_Read... [01:22:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:22:15]Read from MH i2c: E2 [01:22:15]MH_I2C_Read... [01:22:15]Read from MH i2c: E2 03 00 [01:22:15]MH_I2C_Read... [01:22:15]Read from MH i2c: E2 03 00 0A 07 00 90 00 85 [01:22:15]RAPDU: 90 00 [01:22:15]wFMCommunicate OK [01:22:15]wFMCommunicate request_size=255 [01:22:15]MH_SAM_APDU [01:22:15]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 C7 AC 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FB 0F 01 [01:22:15]Write to MH i2c: E2 02 01 0B 07 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 C7 AC 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FB 0F 01 00 00 C2 [01:22:15]Write i2c OK [01:22:15]MH_I2C_Read... [01:22:15]OFD Sender: No OFD packet to send [01:22:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:22:15]Read from MH i2c: E2 [01:22:15]MH_I2C_Read... [01:22:15]Read from MH i2c: E2 03 00 [01:22:15]MH_I2C_Read... [01:22:15]Read from MH i2c: E2 03 00 0B 07 00 90 00 86 [01:22:15]RAPDU: 90 00 [01:22:15]wFMCommunicate OK [01:22:15]wFMCommunicate request_size=16 [01:22:15]MH_SAM_APDU [01:22:15]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 80 20 1D F7 85 A3 [01:22:15]Write to MH i2c: E2 13 00 0C 07 80 0D 02 02 0B 00 00 35 04 06 00 80 20 1D F7 85 A3 00 00 BE [01:22:15]Write i2c OK [01:22:15]MH_I2C_Read... [01:22:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:22:15]Read from MH i2c: E2 [01:22:15]MH_I2C_Read... [01:22:15]Read from MH i2c: E2 03 00 [01:22:15]MH_I2C_Read... [01:22:15]Read from MH i2c: E2 03 00 0C 07 00 90 00 87 [01:22:15]RAPDU: 90 00 [01:22:15]wFMCommunicate OK [01:22:15]wFMCommunicate request_size=4 [01:22:15]MH_SAM_APDU [01:22:15]CAPDU: 80 0D 03 02 [01:22:15]Write to MH i2c: E2 08 00 0D 07 80 0D 03 02 00 00 00 00 8F [01:22:15]Write i2c OK [01:22:15]MH_I2C_Read... [01:22:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:22:15]Read from MH i2c: E2 [01:22:15]MH_I2C_Read... [01:22:15]Read from MH i2c: E2 0B 00 [01:22:15]MH_I2C_Read... [01:22:15]Read from MH i2c: E2 0B 00 0D 07 00 80 66 F3 63 B9 EE 2B 33 90 00 D1 [01:22:15]RAPDU: 80 66 F3 63 B9 EE 2B 33 90 00 [01:22:15]wFMCommunicate OK [01:22:15]SAM_PROTO_SignData done [01:22:15]FM_MakeSignedData done [01:22:15]CreateOFDProtocolMessage [01:22:15]wFMCommunicate request_size=4 [01:22:15]MH_SAM_APDU [01:22:15]CAPDU: 80 11 00 00 [01:22:15]Write to MH i2c: E2 08 00 0E 07 80 11 00 00 00 00 00 00 8F [01:22:15]Write i2c OK [01:22:15]MH_I2C_Read... [01:22:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:22:15]Read from MH i2c: E2 [01:22:15]MH_I2C_Read... [01:22:15]Read from MH i2c: E2 17 00 [01:22:15]MH_I2C_Read... [01:22:15]Read from MH i2c: E2 17 00 0E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 E1 [01:22:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [01:22:15]wFMCommunicate OK [01:22:15]CreateOFDProtocolMessage done [01:22:15]OFDSenderStorePacket 69627 [01:22:15]StoreOFDPacket docnum=69627 [01:22:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 5E 25 0D 01 C0 68 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 C7 AC 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FB 0F 01 00 35 04 06 00 80 20 1D F7 85 A3 80 66 F3 63 B9 EE 2B 33 [01:22:15]CheckFolder [01:22:15]dirname=/storage/ofd_packets [01:22:15]CheckFolder done [01:22:15]ProducePacketName [01:22:15]name=ofd_packets/00069627 [01:22:15]NVStorageSaveData ofd_packets/00069627 [01:22:15]File name is /storage/ofd_packets/00069627 [01:22:15]Write 307 bytes [01:22:15]NVStorageSaveData done [01:22:15]OFDSenderStorePacket done [01:22:15]KKMCreateOFDPacket done [01:22:15]NVStorageSaveData kkm_last_timestamp [01:22:15]File name is /storage/kkm_last_timestamp [01:22:15]Write 4 bytes [01:22:15]NVStorageSaveData done [01:22:15]ExternCall_PrintAddStr [01:22:15]wPrintStart [01:22:15]Write to MH i2c: 01 00 00 0F 07 16 [01:22:15]Write i2c OK [01:22:15]MH_I2C_Read... [01:22:15]Read from MH i2c: 01 [01:22:15]MH_I2C_Read... [01:22:15]Read from MH i2c: 01 07 00 [01:22:15]MH_I2C_Read... [01:22:15]Read from MH i2c: 01 07 00 0F 07 00 00 00 00 00 FF 0F 2B [01:22:15]RasterBufferAndPrint [01:22:15]line Счет N : (1)2885364 [01:22:15]line ИНН: 02508201610067 [01:22:15]line Контрольно-Кассовый Чек [01:22:15]line ПРОДАЖА [01:22:15]line ТРК (МРК, ГНК) : 31 [01:22:15]line Товар: 2710194240 [01:22:15]line D-ENERGY Дт-К-2 [01:22:15]line 7.780 * 77.20 [01:22:15]line = 600.62 [01:22:15]line НДС 12% НСП 1% [01:22:15]line > о реализуемом товаре [01:22:15]line ОКРУГЛЕНИЕ: -0.62 [01:22:15]line ИТОГО: 600.00 [01:22:15]line Внесено: 600.00 [01:22:15]line СДАЧА: 0.00 [01:22:15]line НСП 1% : 5.31 [01:22:15]line НДС 12% : 63.78 [01:22:15]line Наличными: 600.00 [01:22:15]line Безнал.: 0.00 [01:22:15]line Место: АЗС № 85 "Партнер Нефть" [01:22:15]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [01:22:15]line СНО: Общий режим [01:22:15]line Чек 17 21.10.2024 01:22 [01:22:15]line Смена: 194 ФФД: 1.0 [01:22:15]line ЗНМ: 0300000167 [01:22:16]line РНМ: 0000000000156251 [01:22:16]line Версия ККМ: v1.0 [01:22:16]line ФМ: 0000000000963346 [01:22:16]line ФД: 69627 [01:22:16]line ФПД: 140875430069667 [01:22:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T012215&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69627&fm=140875430069667&tin=02508201610067®Number=0000000000156251&sum=60000 [01:22:16]OFD Sender: Processing packet 69627 [packets to send 18, broken 17] [01:22:16]ProducePacketName [01:22:16]name=ofd_packets/00069627 [01:22:16]OFD Sender: To server: pG, [01:22:16]CommunicateWithHost lk.salyk.kg:30040 [01:22:16]ConnectInit lk.salyk.kg [01:22:16]written 0, free lines is 4095 [01:22:16]Connected sock=10 [01:22:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 5E 25 0D 01 C0 68 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 C7 AC 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FB 0F 01 00 35 04 06 00 80 20 1D F7 85 A3 80 66 F3 63 B9 EE 2B 33 [01:22:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 75 48 47 00 02 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FB 0F 01 00 F4 03 04 00 6C 56 15 67 B6 04 01 00 00 34 F5 7A F1 89 F5 8C D6 [01:22:16]CommunicateWithHost err = 0 [01:22:16]CheckOFDResponse [01:22:16]1017 (14) - 77093643461234 [01:22:16]1041 (16) - 0000000000963346 [01:22:16]1040 (4) - 69627 [01:22:16]1012 (4) - 20.10.2024 19:13 [01:22:16]1206 (1) - 0 [01:22:16]OFD Sender: Remove packet 69627 [01:22:16]ProducePacketName [01:22:16]name=ofd_packets/00069627 [01:22:16]NVStorageDeleteData [01:22:16]Write to MH i2c: 01 00 00 3A 07 41 [01:22:16]Write i2c OK [01:22:16]MH_I2C_Read... [01:22:16]Read from MH i2c: 01 [01:22:16]MH_I2C_Read... [01:22:16]Read from MH i2c: 01 07 00 [01:22:16]MH_I2C_Read... [01:22:16]Read from MH i2c: 01 07 00 3A 07 00 00 00 00 00 F0 0C 44 [01:22:16]RasterBufferAndPrint [01:22:16]line [01:22:16]line [01:22:16]line [01:22:16]line [01:22:16]line [01:22:16]written 0, free lines is 3318 [01:22:16]MH_Cut [01:22:16]Write to MH i2c: D1 01 00 41 07 01 1A [01:22:16]Write i2c OK [01:22:16]MH_I2C_Read... [01:22:16]Read from MH i2c: D1 [01:22:16]MH_I2C_Read... [01:22:16]Read from MH i2c: D1 01 00 [01:22:16]MH_I2C_Read... [01:22:16]Read from MH i2c: D1 01 00 41 07 00 19 [01:22:16]Write to MH i2c: 01 00 00 42 07 49 [01:22:16]Write i2c OK [01:22:16]MH_I2C_Read... [01:22:16]OFD Sender: No OFD packet to send [01:22:17]*** Cut start [01:22:17]*** Partial cut [01:22:17]*** CUTSNS_PIN = 1 [01:22:17]*** CUTSNS_PIN = 0 [01:22:17]*** Brake cut motor [01:22:17]Read from MH i2c: 01 [01:22:17]MH_I2C_Read... [01:22:17]*** Stop cut motor [01:22:17]*** Cut end [01:22:17]Read from MH i2c: 01 07 00 [01:22:17]MH_I2C_Read... [01:22:17]Read from MH i2c: 01 07 00 42 07 00 00 00 00 00 FF 0F 5E [01:22:17]process_action close_receipt done [01:22:17]requested_data is exist [01:22:17]produce_requested_data [01:22:17]requested_item fm.sn is exist - process it [01:22:17]wFMCommunicate request_size=4 [01:22:17]MH_SAM_APDU [01:22:17]CAPDU: 80 11 00 00 [01:22:17]Write to MH i2c: E2 08 00 43 07 80 11 00 00 00 00 00 00 C4 [01:22:17]Write i2c OK [01:22:17]MH_I2C_Read... [01:22:17]Read from MH i2c: E2 [01:22:17]MH_I2C_Read... [01:22:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:22:17]Read from MH i2c: E2 17 00 [01:22:17]MH_I2C_Read... [01:22:17]Read from MH i2c: E2 17 00 43 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 16 [01:22:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [01:22:17]wFMCommunicate OK [01:22:17]requested_item fd.num is exist - process it [01:22:17]SAM_PROTO_GetFieldsCounters [01:22:17]wFMCommunicate request_size=4 [01:22:17]MH_SAM_APDU [01:22:17]CAPDU: 80 13 00 00 [01:22:17]Write to MH i2c: E2 08 00 44 07 80 13 00 00 00 00 00 00 C7 [01:22:17]Write i2c OK [01:22:17]MH_I2C_Read... [01:22:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:22:18]Read from MH i2c: E2 [01:22:18]MH_I2C_Read... [01:22:18]Read from MH i2c: E2 62 00 [01:22:18]MH_I2C_Read... [01:22:18]Read from MH i2c: E2 62 00 44 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FB 0F 01 00 0E 04 04 00 C2 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 E2 [01:22:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FB 0F 01 00 0E 04 04 00 C2 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 [01:22:18]wFMCommunicate OK [01:22:18]SAM_PROTO_GetFieldsCounters done [01:22:18]requested_item shift.num is exist - process it [01:22:18]requested_item shift.opened is exist - process it [01:22:18]req_shift_opened [01:22:18]FM_GetShiftState [01:22:18]SAM_PROTO_GetShiftState [01:22:18]wFMCommunicate request_size=4 [01:22:18]MH_SAM_APDU [01:22:18]CAPDU: 80 13 01 00 [01:22:18]Write to MH i2c: E2 08 00 45 07 80 13 01 00 00 00 00 00 C9 [01:22:18]Write i2c OK [01:22:18]MH_I2C_Read... [01:22:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:22:18]Read from MH i2c: E2 [01:22:18]MH_I2C_Read... [01:22:18]Read from MH i2c: E2 0E 00 [01:22:18]MH_I2C_Read... [01:22:18]Read from MH i2c: E2 0E 00 45 07 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 F5 [01:22:18]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [01:22:18]wFMCommunicate OK [01:22:18]SAM_PROTO_GetShiftState done [01:22:18]FM_GetShiftState done [01:22:18]req_shift_opened done [01:22:18]requested_item shift.open_date is exist - process it [01:22:18]req_shift_open_date [01:22:18]req_shift_open_date done [01:22:18]produce_requested_data done [01:22:18]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69627,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [01:22:18]process_action_free close_receipt [01:22:18]json_value_free [01:22:18]json_value_free done [01:22:18]process_json_proto returns [01:22:18]Send response to host [01:22:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69627,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [01:22:18]free response buf [01:22:18]execute_script done [01:22:18]execute_script returns [01:22:18]free content buf [01:22:18]Sock 9.Close socket [01:22:18]Sock 9.Thread stoped [01:22:21]OFD Sender: No OFD packet to send [01:22:26]OFD Sender: No OFD packet to send [01:22:31]OFD Sender: No OFD packet to send [01:22:36]OFD Sender: No OFD packet to send [01:22:41]OFD Sender: No OFD packet to send [01:22:46]OFD Sender: No OFD packet to send [01:22:51]OFD Sender: No OFD packet to send [01:22:56]OFD Sender: No OFD packet to send [01:23:01]OFD Sender: No OFD packet to send [01:23:06]OFD Sender: No OFD packet to send [01:23:11]OFD Sender: No OFD packet to send [01:23:13]accept exits with 8 [01:23:13]New connection [01:23:13]New thread 3067456868 created [01:23:13]Thread 3067313508 joined [01:23:13]Waiting for new connection... [01:23:13] Sock 8.Parse request [01:23:13]Sock 8.Check first char [01:23:13]Sock 8.First char is OK [01:23:13]request: POST /json_proto HTTP/1.0 [01:23:13]Method: POST [01:23:13]URL: /json_proto [01:23:13]Method is POST - this is cgi request [01:23:13]url: /json_proto [01:23:13]query_string will be loaded in cgi processing [01:23:13]execute_cgi json_proto POST (null) [01:23:13]execute_cgi path=json_proto method=POST [01:23:13]POST find Content-Length [01:23:13]Host: 172.17.50.3:8080 [01:23:13]Content-Length: 684 [01:23:13]Content-Type: application/json [01:23:13] [01:23:13]POST finish read [01:23:13]Found Content-Length = 684 [01:23:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 2.600, "sum" : 200.72, "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" ] } } [01:23:13]execute_script... [01:23:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194240", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 2.600, "sum" : 200.72, "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" ] } } [01:23:13]POST & json_proto [01:23:13]process_json_proto [01:23:13]json parsed OK: [01:23:13]protocol is kg_v1.0 [01:23:13]action value=close_receipt [01:23:13]process_action close_receipt [01:23:13]cmd_close_receipt [01:23:13]MH_GetDate [01:23:13]Write to MH i2c: F0 00 00 46 07 3C [01:23:13]Write i2c OK [01:23:13]MH_I2C_Read... [01:23:13]Read from MH i2c: F0 [01:23:13]MH_I2C_Read... [01:23:13]Read from MH i2c: F0 09 00 [01:23:13]MH_I2C_Read... [01:23:13]Read from MH i2c: F0 09 00 46 07 00 03 AD 15 67 6B 98 1E 66 F8 [01:23:13]GetLastDocTimeStamp 1729473735 [01:23:13]current date 1729473795 [01:23:13]FM_GetShiftState [01:23:13]SAM_PROTO_GetShiftState [01:23:13]wFMCommunicate request_size=4 [01:23:13]MH_SAM_APDU [01:23:13]CAPDU: 80 13 01 00 [01:23:13]Write to MH i2c: E2 08 00 47 07 80 13 01 00 00 00 00 00 CB [01:23:13]Write i2c OK [01:23:13]MH_I2C_Read... [01:23:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:23:13]Read from MH i2c: E2 [01:23:13]MH_I2C_Read... [01:23:13]Read from MH i2c: E2 0E 00 [01:23:13]MH_I2C_Read... [01:23:13]Read from MH i2c: E2 0E 00 47 07 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 F7 [01:23:13]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [01:23:13]wFMCommunicate OK [01:23:13]SAM_PROTO_GetShiftState done [01:23:13]FM_GetShiftState done [01:23:13]opened in 1729469703 [01:23:13]opened+sec_in_day 1729556103 [01:23:13]quantity*price = 20072 [01:23:13]sum+1 = 20073 [01:23:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.78 НДС 12% : 21.31 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 18 21.10.2024 01:23 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69628 ФПД: 25891601435154 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T012315&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69628&fm=25891601435154&tin=02508201610067®Number=0000000000156251&sum=20000 [01:23:15]StoreToDocumentArchive [01:23:15]shift 194 fd 69628 [01:23:15]save to /storage/0194/doc_00069628 [01:23:15]save last doc name /storage/0194/doc_00069628 to /storage/kkm_last_doc_name [01:23:15]save OK [01:23:15]Clear old archive folders... [01:23:15]ProcessDocumentItem done err = 0, tmpTLVsize=257 [01:23:15]tlvbuf is 00C3F7D0 [01:23:15]SAM_PROTO_ClearQueue [01:23:15]wFMCommunicate request_size=4 [01:23:15]MH_SAM_APDU [01:23:15]CAPDU: 80 09 00 00 [01:23:15]Write to MH i2c: E2 08 00 54 07 80 09 00 00 00 00 00 00 CD [01:23:15]Write i2c OK [01:23:15]MH_I2C_Read... [01:23:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:23:15]Read from MH i2c: E2 [01:23:15]MH_I2C_Read... [01:23:15]Read from MH i2c: E2 03 00 [01:23:15]MH_I2C_Read... [01:23:15]Read from MH i2c: E2 03 00 54 07 00 90 00 CF [01:23:15]RAPDU: 90 00 [01:23:15]wFMCommunicate OK [01:23:15]SAM_PROTO_ClearQueue done [01:23:15]KKMCreateOFDPacket [01:23:15]OFDProtocolAddRootSTLVToBuf [01:23:15]FM_MakeSignedData [01:23:15]FM_MakeSignedData [01:23:15]SAM_PROTO_SignData [01:23:15]wFMCommunicate request_size=4 [01:23:15]MH_SAM_APDU [01:23:15]CAPDU: 80 0D 01 02 [01:23:15]Write to MH i2c: E2 08 00 55 07 80 0D 01 02 00 00 00 00 D5 [01:23:15]Write i2c OK [01:23:15]MH_I2C_Read... [01:23:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:23:15]Read from MH i2c: E2 [01:23:15]MH_I2C_Read... [01:23:15]Read from MH i2c: E2 03 00 [01:23:15]MH_I2C_Read... [01:23:15]Read from MH i2c: E2 03 00 55 07 00 90 00 D0 [01:23:15]RAPDU: 90 00 [01:23:15]wFMCommunicate OK [01:23:15]wFMCommunicate request_size=255 [01:23:15]MH_SAM_APDU [01:23:15]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 28 0A 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 68 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 B2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 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 12 00 00 00 F4 03 04 00 03 AD 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FC 0F 01 [01:23:15]Write to MH i2c: E2 02 01 56 07 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 28 0A 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 68 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 B2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 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 12 00 00 00 F4 03 04 00 03 AD 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FC 0F 01 00 00 68 [01:23:15]Write i2c OK [01:23:15]MH_I2C_Read... [01:23:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:23:15]Read from MH i2c: E2 [01:23:15]MH_I2C_Read... [01:23:15]Read from MH i2c: E2 03 00 [01:23:15]MH_I2C_Read... [01:23:15]Read from MH i2c: E2 03 00 56 07 00 90 00 D1 [01:23:15]RAPDU: 90 00 [01:23:15]wFMCommunicate OK [01:23:15]wFMCommunicate request_size=16 [01:23:15]MH_SAM_APDU [01:23:15]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 17 8C 5B B4 CA 12 [01:23:15]Write to MH i2c: E2 13 00 57 07 80 0D 02 02 0B 00 00 35 04 06 00 17 8C 5B B4 CA 12 00 00 BB [01:23:15]Write i2c OK [01:23:15]MH_I2C_Read... [01:23:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:23:15]Read from MH i2c: E2 [01:23:15]MH_I2C_Read... [01:23:15]Read from MH i2c: E2 03 00 [01:23:15]MH_I2C_Read... [01:23:15]Read from MH i2c: E2 03 00 57 07 00 90 00 D2 [01:23:15]RAPDU: 90 00 [01:23:15]wFMCommunicate OK [01:23:15]wFMCommunicate request_size=4 [01:23:15]MH_SAM_APDU [01:23:15]CAPDU: 80 0D 03 02 [01:23:15]Write to MH i2c: E2 08 00 58 07 80 0D 03 02 00 00 00 00 DA [01:23:15]Write i2c OK [01:23:15]MH_I2C_Read... [01:23:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:23:15]Read from MH i2c: E2 [01:23:15]MH_I2C_Read... [01:23:15]Read from MH i2c: E2 0B 00 [01:23:15]MH_I2C_Read... [01:23:15]Read from MH i2c: E2 0B 00 58 07 00 2B 0E 26 AD 44 C2 61 CF 90 00 1D [01:23:15]RAPDU: 2B 0E 26 AD 44 C2 61 CF 90 00 [01:23:15]wFMCommunicate OK [01:23:15]SAM_PROTO_SignData done [01:23:15]FM_MakeSignedData done [01:23:15]CreateOFDProtocolMessage [01:23:15]wFMCommunicate request_size=4 [01:23:15]MH_SAM_APDU [01:23:15]CAPDU: 80 11 00 00 [01:23:15]Write to MH i2c: E2 08 00 59 07 80 11 00 00 00 00 00 00 DA [01:23:15]Write i2c OK [01:23:15]MH_I2C_Read... [01:23:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:23:15]Read from MH i2c: E2 [01:23:15]MH_I2C_Read... [01:23:15]Read from MH i2c: E2 17 00 [01:23:15]MH_I2C_Read... [01:23:15]Read from MH i2c: E2 17 00 59 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 2C [01:23:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [01:23:15]wFMCommunicate OK [01:23:15]CreateOFDProtocolMessage done [01:23:15]OFDSenderStorePacket 69628 [01:23:15]StoreOFDPacket docnum=69628 [01:23:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 F1 19 0D 01 B6 84 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 28 0A 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 68 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 B2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 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 12 00 00 00 F4 03 04 00 03 AD 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FC 0F 01 00 35 04 06 00 17 8C 5B B4 CA 12 2B 0E 26 AD 44 C2 61 CF [01:23:15]CheckFolder [01:23:15]dirname=/storage/ofd_packets [01:23:15]CheckFolder done [01:23:15]ProducePacketName [01:23:15]name=ofd_packets/00069628 [01:23:15]NVStorageSaveData ofd_packets/00069628 [01:23:15]File name is /storage/ofd_packets/00069628 [01:23:15]Write 307 bytes [01:23:15]NVStorageSaveData done [01:23:15]OFDSenderStorePacket done [01:23:15]KKMCreateOFDPacket done [01:23:15]NVStorageSaveData kkm_last_timestamp [01:23:15]File name is /storage/kkm_last_timestamp [01:23:15]Write 4 bytes [01:23:15]NVStorageSaveData done [01:23:15]ExternCall_PrintAddStr [01:23:15]wPrintStart [01:23:15]Write to MH i2c: 01 00 00 5A 07 61 [01:23:15]Write i2c OK [01:23:15]MH_I2C_Read... [01:23:15]Read from MH i2c: 01 [01:23:15]MH_I2C_Read... [01:23:15]Read from MH i2c: 01 07 00 [01:23:15]MH_I2C_Read... [01:23:15]Read from MH i2c: 01 07 00 5A 07 00 00 00 00 00 FF 0F 76 [01:23:15]RasterBufferAndPrint [01:23:15]line Счет N : (1)2885365 [01:23:15]line ИНН: 02508201610067 [01:23:15]line Контрольно-Кассовый Чек [01:23:15]line ПРОДАЖА [01:23:15]line ТРК (МРК, ГНК) : 31 [01:23:15]line Товар: 2710194240 [01:23:15]line D-ENERGY Дт-К-2 [01:23:15]line 2.600 * 77.20 [01:23:15]line = 200.72 [01:23:15]line НДС 12% НСП 1% [01:23:15]line > о реализуемом товаре [01:23:15]line ОКРУГЛЕНИЕ: -0.72 [01:23:15]line ИТОГО: 200.00 [01:23:15]line Внесено: 200.00 [01:23:15]line СДАЧА: 0.00 [01:23:15]line НСП 1% : 1.78 [01:23:15]line НДС 12% : 21.31 [01:23:15]line Наличными: 200.00 [01:23:15]line Безнал.: 0.00 [01:23:15]line Место: АЗС № 85 "Партнер Нефть" [01:23:15]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [01:23:15]line СНО: Общий режим [01:23:15]line Чек 18 21.10.2024 01:23 [01:23:15]line Смена: 194 ФФД: 1.0 [01:23:15]line ЗНМ: 0300000167 [01:23:15]line РНМ: 0000000000156251 [01:23:15]line Версия ККМ: v1.0 [01:23:15]line ФМ: 0000000000963346 [01:23:15]line ФД: 69628 [01:23:15]line ФПД: 25891601435154 [01:23:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T012315&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69628&fm=25891601435154&tin=02508201610067®Number=0000000000156251&sum=20000 [01:23:15]OFD Sender: Processing packet 69628 [packets to send 18, broken 17] [01:23:15]ProducePacketName [01:23:15]name=ofd_packets/00069628 [01:23:15]OFD Sender: To server: pG, [01:23:15]CommunicateWithHost lk.salyk.kg:30040 [01:23:15]ConnectInit lk.salyk.kg [01:23:15]written 0, free lines is 4095 [01:23:16]Connected sock=9 [01:23:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 15 01 00 00 F1 19 0D 01 B6 84 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 28 0A 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 68 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 B2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 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 12 00 00 00 F4 03 04 00 03 AD 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FC 0F 01 00 35 04 06 00 17 8C 5B B4 CA 12 2B 0E 26 AD 44 C2 61 CF [01:23:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 03 FB 47 00 DD 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FC 0F 01 00 F4 03 04 00 A8 56 15 67 B6 04 01 00 00 B4 18 12 A2 AB 23 F2 38 [01:23:16]CommunicateWithHost err = 0 [01:23:16]CheckOFDResponse [01:23:16]1017 (14) - 77093643461234 [01:23:16]1041 (16) - 0000000000963346 [01:23:16]1040 (4) - 69628 [01:23:16]1012 (4) - 20.10.2024 19:14 [01:23:16]1206 (1) - 0 [01:23:16]OFD Sender: Remove packet 69628 [01:23:16]ProducePacketName [01:23:16]name=ofd_packets/00069628 [01:23:16]NVStorageDeleteData [01:23:16]Write to MH i2c: 01 00 00 85 07 8C [01:23:16]Write i2c OK [01:23:16]MH_I2C_Read... [01:23:16]Read from MH i2c: 01 [01:23:16]MH_I2C_Read... [01:23:16]Read from MH i2c: 01 07 00 [01:23:16]MH_I2C_Read... [01:23:16]Read from MH i2c: 01 07 00 85 07 00 00 00 00 00 E8 0C 87 [01:23:16]RasterBufferAndPrint [01:23:16]line [01:23:16]line [01:23:16]line [01:23:16]line [01:23:16]line [01:23:16]written 0, free lines is 3310 [01:23:16]MH_Cut [01:23:16]Write to MH i2c: D1 01 00 8C 07 01 65 [01:23:16]Write i2c OK [01:23:16]MH_I2C_Read... [01:23:16]Read from MH i2c: D1 [01:23:16]MH_I2C_Read... [01:23:16]Read from MH i2c: D1 01 00 [01:23:16]MH_I2C_Read... [01:23:16]Read from MH i2c: D1 01 00 8C 07 00 64 [01:23:16]Write to MH i2c: 01 00 00 8D 07 94 [01:23:16]Write i2c OK [01:23:16]MH_I2C_Read... [01:23:16]OFD Sender: No OFD packet to send [01:23:17]*** Cut start [01:23:17]*** Partial cut [01:23:17]*** CUTSNS_PIN = 1 [01:23:17]*** CUTSNS_PIN = 0 [01:23:17]*** Brake cut motor [01:23:17]Read from MH i2c: 01 [01:23:17]MH_I2C_Read... [01:23:17]*** Stop cut motor [01:23:17]*** Cut end [01:23:17]Read from MH i2c: 01 07 00 [01:23:17]MH_I2C_Read... [01:23:17]Read from MH i2c: 01 07 00 8D 07 00 00 00 00 00 FF 0F A9 [01:23:17]process_action close_receipt done [01:23:17]requested_data is exist [01:23:17]produce_requested_data [01:23:17]requested_item fm.sn is exist - process it [01:23:17]wFMCommunicate request_size=4 [01:23:17]MH_SAM_APDU [01:23:17]CAPDU: 80 11 00 00 [01:23:17]Write to MH i2c: E2 08 00 8E 07 80 11 00 00 00 00 00 00 0F [01:23:17]Write i2c OK [01:23:17]MH_I2C_Read... [01:23:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:23:17]Read from MH i2c: E2 [01:23:17]MH_I2C_Read... [01:23:17]Read from MH i2c: E2 17 00 [01:23:17]MH_I2C_Read... [01:23:17]Read from MH i2c: E2 17 00 8E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 61 [01:23:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [01:23:17]wFMCommunicate OK [01:23:17]requested_item fd.num is exist - process it [01:23:17]SAM_PROTO_GetFieldsCounters [01:23:17]wFMCommunicate request_size=4 [01:23:17]MH_SAM_APDU [01:23:17]CAPDU: 80 13 00 00 [01:23:17]Write to MH i2c: E2 08 00 8F 07 80 13 00 00 00 00 00 00 12 [01:23:17]Write i2c OK [01:23:17]MH_I2C_Read... [01:23:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:23:17]Read from MH i2c: E2 [01:23:17]MH_I2C_Read... [01:23:17]Read from MH i2c: E2 62 00 [01:23:17]MH_I2C_Read... [01:23:17]Read from MH i2c: E2 62 00 8F 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FC 0F 01 00 0E 04 04 00 C2 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 31 [01:23:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FC 0F 01 00 0E 04 04 00 C2 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 [01:23:17]wFMCommunicate OK [01:23:17]SAM_PROTO_GetFieldsCounters done [01:23:17]requested_item shift.num is exist - process it [01:23:17]requested_item shift.opened is exist - process it [01:23:17]req_shift_opened [01:23:17]FM_GetShiftState [01:23:17]SAM_PROTO_GetShiftState [01:23:17]wFMCommunicate request_size=4 [01:23:17]MH_SAM_APDU [01:23:17]CAPDU: 80 13 01 00 [01:23:17]Write to MH i2c: E2 08 00 90 07 80 13 01 00 00 00 00 00 14 [01:23:17]Write i2c OK [01:23:17]MH_I2C_Read... [01:23:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:23:18]Read from MH i2c: E2 [01:23:18]MH_I2C_Read... [01:23:18]Read from MH i2c: E2 0E 00 [01:23:18]MH_I2C_Read... [01:23:18]Read from MH i2c: E2 0E 00 90 07 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 40 [01:23:18]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [01:23:18]wFMCommunicate OK [01:23:18]SAM_PROTO_GetShiftState done [01:23:18]FM_GetShiftState done [01:23:18]req_shift_opened done [01:23:18]requested_item shift.open_date is exist - process it [01:23:18]req_shift_open_date [01:23:18]req_shift_open_date done [01:23:18]produce_requested_data done [01:23:18]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69628,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [01:23:18]process_action_free close_receipt [01:23:18]json_value_free [01:23:18]json_value_free done [01:23:18]process_json_proto returns [01:23:18]Send response to host [01:23:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69628,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [01:23:18]free response buf [01:23:18]execute_script done [01:23:18]execute_script returns [01:23:18]free content buf [01:23:18]Sock 8.Close socket [01:23:18]Sock 8.Thread stoped [01:23:21]OFD Sender: No OFD packet to send [01:23:26]OFD Sender: No OFD packet to send [01:23:31]OFD Sender: No OFD packet to send [01:23:36]OFD Sender: No OFD packet to send [01:23:41]OFD Sender: No OFD packet to send [01:23:46]OFD Sender: No OFD packet to send [01:23:51]OFD Sender: No OFD packet to send [01:23:56]OFD Sender: No OFD packet to send [01:24:01]OFD Sender: No OFD packet to send [01:24:06]OFD Sender: No OFD packet to send [01:24:11]OFD Sender: No OFD packet to send [01:24:16]OFD Sender: No OFD packet to send [01:24:21]OFD Sender: No OFD packet to send [01:24:26]OFD Sender: No OFD packet to send [01:24:31]OFD Sender: No OFD packet to send [01:24:36]OFD Sender: No OFD packet to send [01:24:41]OFD Sender: No OFD packet to send [01:24:46]OFD Sender: No OFD packet to send [01:24:51]OFD Sender: No OFD packet to send [01:24:56]OFD Sender: No OFD packet to send [01:25:01]OFD Sender: No OFD packet to send [01:25:06]OFD Sender: No OFD packet to send [01:25:11]OFD Sender: No OFD packet to send [01:25:16]OFD Sender: No OFD packet to send [01:25:21]OFD Sender: No OFD packet to send [01:25:26]OFD Sender: No OFD packet to send [01:25:31]OFD Sender: No OFD packet to send [01:25:36]OFD Sender: No OFD packet to send [01:25:41]OFD Sender: No OFD packet to send [01:25:46]OFD Sender: No OFD packet to send [01:25:51]OFD Sender: No OFD packet to send [01:25:56]OFD Sender: No OFD packet to send [01:26:01]OFD Sender: No OFD packet to send [01:26:06]OFD Sender: No OFD packet to send [01:26:11]OFD Sender: No OFD packet to send [01:26:16]OFD Sender: No OFD packet to send [01:26:21]OFD Sender: No OFD packet to send [01:26:26]OFD Sender: No OFD packet to send [01:26:31]OFD Sender: No OFD packet to send [01:26:36]OFD Sender: No OFD packet to send [01:26:41]OFD Sender: No OFD packet to send [01:26:46]OFD Sender: No OFD packet to send [01:26:51]OFD Sender: No OFD packet to send [01:26:56]OFD Sender: No OFD packet to send [01:27:01]OFD Sender: No OFD packet to send [01:27:06]OFD Sender: No OFD packet to send [01:27:11]OFD Sender: No OFD packet to send [01:27:17]OFD Sender: No OFD packet to send [01:27:22]OFD Sender: No OFD packet to send [01:27:27]OFD Sender: No OFD packet to send [01:27:32]OFD Sender: No OFD packet to send [01:27:37]OFD Sender: No OFD packet to send [01:27:42]OFD Sender: No OFD packet to send [01:27:47]OFD Sender: No OFD packet to send [01:27:52]OFD Sender: No OFD packet to send [01:27:57]OFD Sender: No OFD packet to send [01:28:02]OFD Sender: No OFD packet to send [01:28:07]OFD Sender: No OFD packet to send [01:28:12]OFD Sender: No OFD packet to send [01:28:17]OFD Sender: No OFD packet to send [01:28:22]OFD Sender: No OFD packet to send [01:28:27]OFD Sender: No OFD packet to send [01:28:32]OFD Sender: No OFD packet to send [01:28:37]OFD Sender: No OFD packet to send [01:28:42]OFD Sender: No OFD packet to send [01:28:47]OFD Sender: No OFD packet to send [01:28:52]OFD Sender: No OFD packet to send [01:28:57]OFD Sender: No OFD packet to send [01:29:02]OFD Sender: No OFD packet to send [01:29:07]OFD Sender: No OFD packet to send [01:29:12]OFD Sender: No OFD packet to send [01:29:17]OFD Sender: No OFD packet to send [01:29:22]OFD Sender: No OFD packet to send [01:29:27]OFD Sender: No OFD packet to send [01:29:32]OFD Sender: No OFD packet to send [01:29:37]OFD Sender: No OFD packet to send [01:29:42]OFD Sender: No OFD packet to send [01:29:47]OFD Sender: No OFD packet to send [01:29:52]OFD Sender: No OFD packet to send [01:29:57]OFD Sender: No OFD packet to send [01:30:02]OFD Sender: No OFD packet to send [01:30:07]OFD Sender: No OFD packet to send [01:30:12]OFD Sender: No OFD packet to send [01:30:17]OFD Sender: No OFD packet to send [01:30:22]OFD Sender: No OFD packet to send [01:30:27]OFD Sender: No OFD packet to send [01:30:32]OFD Sender: No OFD packet to send [01:30:37]OFD Sender: No OFD packet to send [01:30:42]OFD Sender: No OFD packet to send [01:30:47]OFD Sender: No OFD packet to send [01:30:52]OFD Sender: No OFD packet to send [01:30:57]OFD Sender: No OFD packet to send [01:31:02]OFD Sender: No OFD packet to send [01:31:07]OFD Sender: No OFD packet to send [01:31:12]OFD Sender: No OFD packet to send [01:31:17]OFD Sender: No OFD packet to send [01:31:22]OFD Sender: No OFD packet to send [01:31:27]OFD Sender: No OFD packet to send [01:31:32]OFD Sender: No OFD packet to send [01:31:37]OFD Sender: No OFD packet to send [01:31:42]OFD Sender: No OFD packet to send [01:31:47]OFD Sender: No OFD packet to send [01:31:52]OFD Sender: No OFD packet to send [01:31:57]OFD Sender: No OFD packet to send [01:32:02]OFD Sender: No OFD packet to send [01:32:07]OFD Sender: No OFD packet to send [01:32:12]OFD Sender: No OFD packet to send [01:32:17]OFD Sender: No OFD packet to send [01:32:22]OFD Sender: No OFD packet to send [01:32:27]OFD Sender: No OFD packet to send [01:32:32]OFD Sender: No OFD packet to send [01:32:37]OFD Sender: No OFD packet to send [01:32:42]OFD Sender: No OFD packet to send [01:32:47]OFD Sender: No OFD packet to send [01:32:52]OFD Sender: No OFD packet to send [01:32:57]OFD Sender: No OFD packet to send [01:33:02]OFD Sender: No OFD packet to send [01:33:07]OFD Sender: No OFD packet to send [01:33:12]OFD Sender: No OFD packet to send [01:33:17]OFD Sender: No OFD packet to send [01:33:22]OFD Sender: No OFD packet to send [01:33:27]OFD Sender: No OFD packet to send [01:33:32]OFD Sender: No OFD packet to send [01:33:37]OFD Sender: No OFD packet to send [01:33:42]OFD Sender: No OFD packet to send [01:33:47]OFD Sender: No OFD packet to send [01:33:52]OFD Sender: No OFD packet to send [01:33:57]OFD Sender: No OFD packet to send [01:34:02]OFD Sender: No OFD packet to send [01:34:07]OFD Sender: No OFD packet to send [01:34:12]OFD Sender: No OFD packet to send [01:34:17]OFD Sender: No OFD packet to send [01:34:22]OFD Sender: No OFD packet to send [01:34:27]OFD Sender: No OFD packet to send [01:34:32]OFD Sender: No OFD packet to send [01:34:37]OFD Sender: No OFD packet to send [01:34:42]OFD Sender: No OFD packet to send [01:34:47]OFD Sender: No OFD packet to send [01:34:52]OFD Sender: No OFD packet to send [01:34:57]OFD Sender: No OFD packet to send [01:35:02]OFD Sender: No OFD packet to send [01:35:07]OFD Sender: No OFD packet to send [01:35:12]OFD Sender: No OFD packet to send [01:35:17]OFD Sender: No OFD packet to send [01:35:22]OFD Sender: No OFD packet to send [01:35:27]OFD Sender: No OFD packet to send [01:35:32]OFD Sender: No OFD packet to send [01:35:37]OFD Sender: No OFD packet to send [01:35:42]OFD Sender: No OFD packet to send [01:35:47]OFD Sender: No OFD packet to send [01:35:52]OFD Sender: No OFD packet to send [01:35:57]OFD Sender: No OFD packet to send [01:36:02]OFD Sender: No OFD packet to send [01:36:07]OFD Sender: No OFD packet to send [01:36:12]OFD Sender: No OFD packet to send [01:36:17]OFD Sender: No OFD packet to send [01:36:22]OFD Sender: No OFD packet to send [01:36:27]OFD Sender: No OFD packet to send [01:36:32]OFD Sender: No OFD packet to send [01:36:37]OFD Sender: No OFD packet to send [01:36:42]OFD Sender: No OFD packet to send [01:36:47]OFD Sender: No OFD packet to send [01:36:52]OFD Sender: No OFD packet to send [01:36:57]OFD Sender: No OFD packet to send [01:37:02]OFD Sender: No OFD packet to send [01:37:07]OFD Sender: No OFD packet to send [01:37:12]OFD Sender: No OFD packet to send [01:37:17]OFD Sender: No OFD packet to send [01:37:22]OFD Sender: No OFD packet to send [01:37:27]OFD Sender: No OFD packet to send [01:37:32]OFD Sender: No OFD packet to send [01:37:37]OFD Sender: No OFD packet to send [01:37:42]OFD Sender: No OFD packet to send [01:37:47]OFD Sender: No OFD packet to send [01:37:52]OFD Sender: No OFD packet to send [01:37:57]OFD Sender: No OFD packet to send [01:38:02]OFD Sender: No OFD packet to send [01:38:07]OFD Sender: No OFD packet to send [01:38:12]OFD Sender: No OFD packet to send [01:38:17]OFD Sender: No OFD packet to send [01:38:22]OFD Sender: No OFD packet to send [01:38:27]OFD Sender: No OFD packet to send [01:38:32]OFD Sender: No OFD packet to send [01:38:37]OFD Sender: No OFD packet to send [01:38:42]OFD Sender: No OFD packet to send [01:38:47]OFD Sender: No OFD packet to send [01:38:52]OFD Sender: No OFD packet to send [01:38:57]OFD Sender: No OFD packet to send [01:39:02]OFD Sender: No OFD packet to send [01:39:07]OFD Sender: No OFD packet to send [01:39:12]OFD Sender: No OFD packet to send [01:39:17]OFD Sender: No OFD packet to send [01:39:22]OFD Sender: No OFD packet to send [01:39:27]OFD Sender: No OFD packet to send [01:39:32]OFD Sender: No OFD packet to send [01:39:37]OFD Sender: No OFD packet to send [01:39:42]OFD Sender: No OFD packet to send [01:39:47]OFD Sender: No OFD packet to send [01:39:52]OFD Sender: No OFD packet to send [01:39:57]OFD Sender: No OFD packet to send [01:40:02]OFD Sender: No OFD packet to send [01:40:07]OFD Sender: No OFD packet to send [01:40:12]OFD Sender: No OFD packet to send [01:40:17]OFD Sender: No OFD packet to send [01:40:22]OFD Sender: No OFD packet to send [01:40:27]OFD Sender: No OFD packet to send [01:40:32]OFD Sender: No OFD packet to send [01:40:37]OFD Sender: No OFD packet to send [01:40:42]OFD Sender: No OFD packet to send [01:40:47]OFD Sender: No OFD packet to send [01:40:52]OFD Sender: No OFD packet to send [01:40:57]OFD Sender: No OFD packet to send [01:41:02]OFD Sender: No OFD packet to send [01:41:07]OFD Sender: No OFD packet to send [01:41:12]OFD Sender: No OFD packet to send [01:41:17]OFD Sender: No OFD packet to send [01:41:22]OFD Sender: No OFD packet to send [01:41:27]OFD Sender: No OFD packet to send [01:41:29]accept exits with 10 [01:41:29]New connection [01:41:29]New thread 3067313508 created [01:41:29]Thread 3067456868 joined [01:41:29]Waiting for new connection... [01:41:29] Sock 10.Parse request [01:41:29]Sock 10.Check first char [01:41:29]Sock 10.First char is OK [01:41:29]request: POST /json_proto HTTP/1.0 [01:41:29]Method: POST [01:41:29]URL: /json_proto [01:41:29]Method is POST - this is cgi request [01:41:29]url: /json_proto [01:41:29]query_string will be loaded in cgi processing [01:41:29]execute_cgi json_proto POST (null) [01:41:29]execute_cgi path=json_proto method=POST [01:41:29]POST find Content-Length [01:41:29]Host: 172.17.50.3:8080 [01:41:29]Content-Length: 683 [01:41:29]Content-Type: application/json [01:41:29] [01:41:29]POST finish read [01:41:29]Found Content-Length = 683 [01:41:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:41:29]execute_script... [01:41:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:41:29]POST & json_proto [01:41:29]process_json_proto [01:41:29]json parsed OK: [01:41:29]protocol is kg_v1.0 [01:41:29]action value=close_receipt [01:41:29]process_action close_receipt [01:41:29]cmd_close_receipt [01:41:29]MH_GetDate [01:41:29]Write to MH i2c: F0 00 00 91 07 87 [01:41:29]Write i2c OK [01:41:29]MH_I2C_Read... [01:41:29]Read from MH i2c: F0 [01:41:29]MH_I2C_Read... [01:41:29]Read from MH i2c: F0 09 00 [01:41:29]MH_I2C_Read... [01:41:29]Read from MH i2c: F0 09 00 91 07 00 4A B1 15 67 6B 98 1E 66 8E [01:41:29]GetLastDocTimeStamp 1729473795 [01:41:29]current date 1729474890 [01:41:29]FM_GetShiftState [01:41:29]SAM_PROTO_GetShiftState [01:41:29]wFMCommunicate request_size=4 [01:41:29]MH_SAM_APDU [01:41:29]CAPDU: 80 13 01 00 [01:41:29]Write to MH i2c: E2 08 00 92 07 80 13 01 00 00 00 00 00 16 [01:41:29]Write i2c OK [01:41:29]MH_I2C_Read... [01:41:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:41:29]Read from MH i2c: E2 [01:41:29]MH_I2C_Read... [01:41:29]Read from MH i2c: E2 0E 00 [01:41:29]MH_I2C_Read... [01:41:29]Read from MH i2c: E2 0E 00 92 07 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 42 [01:41:29]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [01:41:29]wFMCommunicate OK [01:41:29]SAM_PROTO_GetShiftState done [01:41:29]FM_GetShiftState done [01:41:29]opened in 1729469703 [01:41:29]opened+sec_in_day 1729556103 [01:41:29]quantity*price = 100015 [01:41:29]sum+1 = 100017 [01:41:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 19 21.10.2024 01:41 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69629 ФПД: 87745973383218 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T014130&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69629&fm=87745973383218&tin=02508201610067®Number=0000000000156251&sum=100000 [01:41:30]StoreToDocumentArchive [01:41:30]shift 194 fd 69629 [01:41:30]save to /storage/0194/doc_00069629 [01:41:30]save last doc name /storage/0194/doc_00069629 to /storage/kkm_last_doc_name [01:41:30]save OK [01:41:30]Clear old archive folders... [01:41:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:41:30]tlvbuf is 00C3FD50 [01:41:30]SAM_PROTO_ClearQueue [01:41:30]wFMCommunicate request_size=4 [01:41:30]MH_SAM_APDU [01:41:30]CAPDU: 80 09 00 00 [01:41:30]Write to MH i2c: E2 08 00 9F 07 80 09 00 00 00 00 00 00 18 [01:41:30]Write i2c OK [01:41:30]MH_I2C_Read... [01:41:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:41:30]Read from MH i2c: E2 [01:41:30]MH_I2C_Read... [01:41:30]Read from MH i2c: E2 03 00 [01:41:30]MH_I2C_Read... [01:41:30]Read from MH i2c: E2 03 00 9F 07 00 90 00 1A [01:41:30]RAPDU: 90 00 [01:41:30]wFMCommunicate OK [01:41:30]SAM_PROTO_ClearQueue done [01:41:30]KKMCreateOFDPacket [01:41:30]OFDProtocolAddRootSTLVToBuf [01:41:30]FM_MakeSignedData [01:41:30]FM_MakeSignedData [01:41:30]SAM_PROTO_SignData [01:41:30]wFMCommunicate request_size=4 [01:41:30]MH_SAM_APDU [01:41:30]CAPDU: 80 0D 01 02 [01:41:30]Write to MH i2c: E2 08 00 A0 07 80 0D 01 02 00 00 00 00 20 [01:41:30]Write i2c OK [01:41:30]MH_I2C_Read... [01:41:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:41:30]Read from MH i2c: E2 [01:41:30]MH_I2C_Read... [01:41:30]Read from MH i2c: E2 03 00 [01:41:30]MH_I2C_Read... [01:41:30]Read from MH i2c: E2 03 00 A0 07 00 90 00 1B [01:41:30]RAPDU: 90 00 [01:41:30]wFMCommunicate OK [01:41:30]wFMCommunicate request_size=255 [01:41:30]MH_SAM_APDU [01:41:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 4A B1 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FD 0F 01 00 35 04 06 00 4F [01:41:30]Write to MH i2c: E2 02 01 A1 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 4A B1 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FD 0F 01 00 35 04 06 00 4F 00 00 4B [01:41:30]Write i2c OK [01:41:30]MH_I2C_Read... [01:41:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:41:31]Read from MH i2c: E2 [01:41:31]MH_I2C_Read... [01:41:31]Read from MH i2c: E2 03 00 [01:41:31]MH_I2C_Read... [01:41:31]Read from MH i2c: E2 03 00 A1 07 00 90 00 1C [01:41:31]RAPDU: 90 00 [01:41:31]wFMCommunicate OK [01:41:31]wFMCommunicate request_size=10 [01:41:31]MH_SAM_APDU [01:41:31]CAPDU: 80 0D 02 02 05 CD F3 92 F0 32 [01:41:31]Write to MH i2c: E2 0D 00 A2 07 80 0D 02 02 05 00 CD F3 92 F0 32 00 00 A1 [01:41:31]Write i2c OK [01:41:31]MH_I2C_Read... [01:41:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:41:31]Read from MH i2c: E2 [01:41:31]MH_I2C_Read... [01:41:31]Read from MH i2c: E2 03 00 [01:41:31]MH_I2C_Read... [01:41:31]Read from MH i2c: E2 03 00 A2 07 00 90 00 1D [01:41:31]RAPDU: 90 00 [01:41:31]wFMCommunicate OK [01:41:31]wFMCommunicate request_size=4 [01:41:31]MH_SAM_APDU [01:41:31]CAPDU: 80 0D 03 02 [01:41:31]Write to MH i2c: E2 08 00 A3 07 80 0D 03 02 00 00 00 00 25 [01:41:31]Write i2c OK [01:41:31]MH_I2C_Read... [01:41:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:41:31]Read from MH i2c: E2 [01:41:31]MH_I2C_Read... [01:41:31]Read from MH i2c: E2 0B 00 [01:41:31]MH_I2C_Read... [01:41:31]Read from MH i2c: E2 0B 00 A3 07 00 CC 7A 49 19 67 7A 03 8F 90 00 41 [01:41:31]RAPDU: CC 7A 49 19 67 7A 03 8F 90 00 [01:41:31]wFMCommunicate OK [01:41:31]SAM_PROTO_SignData done [01:41:31]FM_MakeSignedData done [01:41:31]CreateOFDProtocolMessage [01:41:31]wFMCommunicate request_size=4 [01:41:31]MH_SAM_APDU [01:41:31]CAPDU: 80 11 00 00 [01:41:31]Write to MH i2c: E2 08 00 A4 07 80 11 00 00 00 00 00 00 25 [01:41:31]Write i2c OK [01:41:31]MH_I2C_Read... [01:41:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:41:31]Read from MH i2c: E2 [01:41:31]MH_I2C_Read... [01:41:31]Read from MH i2c: E2 17 00 [01:41:31]MH_I2C_Read... [01:41:31]Read from MH i2c: E2 17 00 A4 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 77 [01:41:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [01:41:31]wFMCommunicate OK [01:41:31]CreateOFDProtocolMessage done [01:41:31]OFDSenderStorePacket 69629 [01:41:31]StoreOFDPacket docnum=69629 [01:41:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 03 26 07 01 20 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 4A B1 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FD 0F 01 00 35 04 06 00 4F CD F3 92 F0 32 CC 7A 49 19 67 7A 03 8F [01:41:31]CheckFolder [01:41:31]dirname=/storage/ofd_packets [01:41:31]CheckFolder done [01:41:31]ProducePacketName [01:41:31]name=ofd_packets/00069629 [01:41:31]NVStorageSaveData ofd_packets/00069629 [01:41:31]File name is /storage/ofd_packets/00069629 [01:41:31]Write 301 bytes [01:41:31]NVStorageSaveData done [01:41:31]OFDSenderStorePacket done [01:41:31]KKMCreateOFDPacket done [01:41:31]NVStorageSaveData kkm_last_timestamp [01:41:31]File name is /storage/kkm_last_timestamp [01:41:31]Write 4 bytes [01:41:31]NVStorageSaveData done [01:41:31]ExternCall_PrintAddStr [01:41:31]wPrintStart [01:41:31]Write to MH i2c: 01 00 00 A5 07 AC [01:41:31]Write i2c OK [01:41:31]MH_I2C_Read... [01:41:31]Read from MH i2c: 01 [01:41:31]MH_I2C_Read... [01:41:31]Read from MH i2c: 01 07 00 [01:41:31]MH_I2C_Read... [01:41:31]Read from MH i2c: 01 07 00 A5 07 00 00 00 00 00 FF 0F C1 [01:41:31]RasterBufferAndPrint [01:41:31]line Счет N : (1)2885366 [01:41:31]line ИНН: 02508201610067 [01:41:31]line Контрольно-Кассовый Чек [01:41:31]line ПРОДАЖА [01:41:31]line ТРК (МРК, ГНК) : 32 [01:41:31]line Товар: 2710124130 [01:41:31]line Аи-92-К-5 [01:41:31]line 14.950 * 66.90 [01:41:31]line = 1000.16 [01:41:31]line НДС 12% НСП 1% [01:41:31]line > о реализуемом товаре [01:41:31]line ОКРУГЛЕНИЕ: -0.16 [01:41:31]line ИТОГО: 1000.00 [01:41:31]line Внесено: 1000.00 [01:41:31]line СДАЧА: 0.00 [01:41:31]line НСП 1% : 8.85 [01:41:31]line НДС 12% : 106.21 [01:41:31]line Наличными: 1000.00 [01:41:31]line Безнал.: 0.00 [01:41:31]line Место: АЗС № 85 "Партнер Нефть" [01:41:31]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [01:41:31]line СНО: Общий режим [01:41:31]line Чек 19 21.10.2024 01:41 [01:41:31]line Смена: 194 ФФД: 1.0 [01:41:31]line ЗНМ: 0300000167 [01:41:31]line РНМ: 0000000000156251 [01:41:31]line Версия ККМ: v1.0 [01:41:31]line ФМ: 0000000000963346 [01:41:31]line ФД: 69629 [01:41:31]line ФПД: 87745973383218 [01:41:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T014130&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69629&fm=87745973383218&tin=02508201610067®Number=0000000000156251&sum=100000 [01:41:31]OFD Sender: Processing packet 69629 [packets to send 18, broken 17] [01:41:31]ProducePacketName [01:41:31]name=ofd_packets/00069629 [01:41:31]OFD Sender: To server: pG, [01:41:31]CommunicateWithHost lk.salyk.kg:30040 [01:41:31]ConnectInit lk.salyk.kg [01:41:31]written 0, free lines is 4095 [01:41:31]Connected sock=9 [01:41:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 03 26 07 01 20 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 4A B1 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FD 0F 01 00 35 04 06 00 4F CD F3 92 F0 32 CC 7A 49 19 67 7A 03 8F [01:41:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 99 7A 47 00 CC 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FD 0F 01 00 F4 03 04 00 F0 5A 15 67 B6 04 01 00 00 4E F5 7E 94 9B C5 7F 80 [01:41:31]CommunicateWithHost err = 0 [01:41:31]CheckOFDResponse [01:41:31]1017 (14) - 77093643461234 [01:41:31]1041 (16) - 0000000000963346 [01:41:31]1040 (4) - 69629 [01:41:31]1012 (4) - 20.10.2024 19:33 [01:41:31]1206 (1) - 0 [01:41:31]OFD Sender: Remove packet 69629 [01:41:31]ProducePacketName [01:41:31]name=ofd_packets/00069629 [01:41:31]NVStorageDeleteData [01:41:32]Write to MH i2c: 01 00 00 D0 07 D7 [01:41:32]Write i2c OK [01:41:32]MH_I2C_Read... [01:41:32]Read from MH i2c: 01 [01:41:32]MH_I2C_Read... [01:41:32]Read from MH i2c: 01 07 00 [01:41:32]MH_I2C_Read... [01:41:32]Read from MH i2c: 01 07 00 D0 07 00 00 00 00 00 E1 0C CB [01:41:32]RasterBufferAndPrint [01:41:32]line [01:41:32]line [01:41:32]line [01:41:32]line [01:41:32]line [01:41:32]written 0, free lines is 3306 [01:41:32]MH_Cut [01:41:32]Write to MH i2c: D1 01 00 D7 07 01 B0 [01:41:32]Write i2c OK [01:41:32]MH_I2C_Read... [01:41:32]Read from MH i2c: D1 [01:41:32]MH_I2C_Read... [01:41:32]Read from MH i2c: D1 01 00 [01:41:32]MH_I2C_Read... [01:41:32]Read from MH i2c: D1 01 00 D7 07 00 AF [01:41:32]Write to MH i2c: 01 00 00 D8 07 DF [01:41:32]Write i2c OK [01:41:32]MH_I2C_Read... [01:41:32]OFD Sender: No OFD packet to send [01:41:32]*** Cut start [01:41:32]*** Partial cut [01:41:32]*** CUTSNS_PIN = 1 [01:41:32]*** CUTSNS_PIN = 0 [01:41:33]*** Brake cut motor [01:41:33]Read from MH i2c: 01 [01:41:33]MH_I2C_Read... [01:41:33]*** Stop cut motor [01:41:33]*** Cut end [01:41:33]Read from MH i2c: 01 07 00 [01:41:33]MH_I2C_Read... [01:41:33]Read from MH i2c: 01 07 00 D8 07 00 00 00 00 00 FF 0F F4 [01:41:33]process_action close_receipt done [01:41:33]requested_data is exist [01:41:33]produce_requested_data [01:41:33]requested_item fm.sn is exist - process it [01:41:33]wFMCommunicate request_size=4 [01:41:33]MH_SAM_APDU [01:41:33]CAPDU: 80 11 00 00 [01:41:33]Write to MH i2c: E2 08 00 D9 07 80 11 00 00 00 00 00 00 5A [01:41:33]Write i2c OK [01:41:33]MH_I2C_Read... [01:41:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:41:33]Read from MH i2c: E2 [01:41:33]MH_I2C_Read... [01:41:33]Read from MH i2c: E2 17 00 [01:41:33]MH_I2C_Read... [01:41:33]Read from MH i2c: E2 17 00 D9 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 AC [01:41:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [01:41:33]wFMCommunicate OK [01:41:33]requested_item fd.num is exist - process it [01:41:33]SAM_PROTO_GetFieldsCounters [01:41:33]wFMCommunicate request_size=4 [01:41:33]MH_SAM_APDU [01:41:33]CAPDU: 80 13 00 00 [01:41:33]Write to MH i2c: E2 08 00 DA 07 80 13 00 00 00 00 00 00 5D [01:41:33]Write i2c OK [01:41:33]MH_I2C_Read... [01:41:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:41:33]Read from MH i2c: E2 [01:41:33]MH_I2C_Read... [01:41:33]Read from MH i2c: E2 62 00 [01:41:33]MH_I2C_Read... [01:41:33]Read from MH i2c: E2 62 00 DA 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FD 0F 01 00 0E 04 04 00 C2 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 80 [01:41:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FD 0F 01 00 0E 04 04 00 C2 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 [01:41:33]wFMCommunicate OK [01:41:33]SAM_PROTO_GetFieldsCounters done [01:41:33]requested_item shift.num is exist - process it [01:41:33]requested_item shift.opened is exist - process it [01:41:33]req_shift_opened [01:41:33]FM_GetShiftState [01:41:33]SAM_PROTO_GetShiftState [01:41:33]wFMCommunicate request_size=4 [01:41:33]MH_SAM_APDU [01:41:33]CAPDU: 80 13 01 00 [01:41:33]Write to MH i2c: E2 08 00 DB 07 80 13 01 00 00 00 00 00 5F [01:41:33]Write i2c OK [01:41:33]MH_I2C_Read... [01:41:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:41:33]Read from MH i2c: E2 [01:41:33]MH_I2C_Read... [01:41:33]Read from MH i2c: E2 0E 00 [01:41:33]MH_I2C_Read... [01:41:33]Read from MH i2c: E2 0E 00 DB 07 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 8B [01:41:33]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [01:41:33]wFMCommunicate OK [01:41:33]SAM_PROTO_GetShiftState done [01:41:33]FM_GetShiftState done [01:41:33]req_shift_opened done [01:41:33]requested_item shift.open_date is exist - process it [01:41:33]req_shift_open_date [01:41:33]req_shift_open_date done [01:41:33]produce_requested_data done [01:41:33]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69629,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [01:41:33]process_action_free close_receipt [01:41:33]json_value_free [01:41:33]json_value_free done [01:41:33]process_json_proto returns [01:41:33]Send response to host [01:41:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69629,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [01:41:33]free response buf [01:41:33]execute_script done [01:41:33]execute_script returns [01:41:33]free content buf [01:41:33]Sock 10.Close socket [01:41:33]Sock 10.Thread stoped [01:41:37]OFD Sender: No OFD packet to send [01:41:42]OFD Sender: No OFD packet to send [01:41:47]OFD Sender: No OFD packet to send [01:41:52]OFD Sender: No OFD packet to send [01:41:57]OFD Sender: No OFD packet to send [01:42:02]OFD Sender: No OFD packet to send [01:42:07]OFD Sender: No OFD packet to send [01:42:12]OFD Sender: No OFD packet to send [01:42:17]OFD Sender: No OFD packet to send [01:42:22]OFD Sender: No OFD packet to send [01:42:27]OFD Sender: No OFD packet to send [01:42:32]OFD Sender: No OFD packet to send [01:42:37]OFD Sender: No OFD packet to send [01:42:42]OFD Sender: No OFD packet to send [01:42:47]OFD Sender: No OFD packet to send [01:42:52]OFD Sender: No OFD packet to send [01:42:57]OFD Sender: No OFD packet to send [01:43:02]OFD Sender: No OFD packet to send [01:43:07]OFD Sender: No OFD packet to send [01:43:12]OFD Sender: No OFD packet to send [01:43:17]OFD Sender: No OFD packet to send [01:43:22]OFD Sender: No OFD packet to send [01:43:27]OFD Sender: No OFD packet to send [01:43:32]OFD Sender: No OFD packet to send [01:43:37]OFD Sender: No OFD packet to send [01:43:42]OFD Sender: No OFD packet to send [01:43:47]OFD Sender: No OFD packet to send [01:43:52]OFD Sender: No OFD packet to send [01:43:57]OFD Sender: No OFD packet to send [01:44:02]OFD Sender: No OFD packet to send [01:44:07]OFD Sender: No OFD packet to send [01:44:12]OFD Sender: No OFD packet to send [01:44:17]OFD Sender: No OFD packet to send [01:44:22]OFD Sender: No OFD packet to send [01:44:27]OFD Sender: No OFD packet to send [01:44:32]OFD Sender: No OFD packet to send [01:44:37]OFD Sender: No OFD packet to send [01:44:42]OFD Sender: No OFD packet to send [01:44:47]OFD Sender: No OFD packet to send [01:44:52]OFD Sender: No OFD packet to send [01:44:57]OFD Sender: No OFD packet to send [01:45:02]OFD Sender: No OFD packet to send [01:45:07]OFD Sender: No OFD packet to send [01:45:12]OFD Sender: No OFD packet to send [01:45:17]OFD Sender: No OFD packet to send [01:45:22]OFD Sender: No OFD packet to send [01:45:27]OFD Sender: No OFD packet to send [01:45:32]OFD Sender: No OFD packet to send [01:45:37]OFD Sender: No OFD packet to send [01:45:42]OFD Sender: No OFD packet to send [01:45:47]OFD Sender: No OFD packet to send [01:45:52]OFD Sender: No OFD packet to send [01:45:57]OFD Sender: No OFD packet to send [01:46:02]OFD Sender: No OFD packet to send [01:46:07]OFD Sender: No OFD packet to send [01:46:12]OFD Sender: No OFD packet to send [01:46:17]OFD Sender: No OFD packet to send [01:46:22]OFD Sender: No OFD packet to send [01:46:27]OFD Sender: No OFD packet to send [01:46:32]OFD Sender: No OFD packet to send [01:46:37]OFD Sender: No OFD packet to send [01:46:42]OFD Sender: No OFD packet to send [01:46:47]OFD Sender: No OFD packet to send [01:46:52]OFD Sender: No OFD packet to send [01:46:57]OFD Sender: No OFD packet to send [01:47:02]OFD Sender: No OFD packet to send [01:47:07]OFD Sender: No OFD packet to send [01:47:12]OFD Sender: No OFD packet to send [01:47:17]OFD Sender: No OFD packet to send [01:47:22]OFD Sender: No OFD packet to send [01:47:27]OFD Sender: No OFD packet to send [01:47:32]OFD Sender: No OFD packet to send [01:47:37]OFD Sender: No OFD packet to send [01:47:42]OFD Sender: No OFD packet to send [01:47:47]OFD Sender: No OFD packet to send [01:47:52]OFD Sender: No OFD packet to send [01:47:57]OFD Sender: No OFD packet to send [01:48:02]OFD Sender: No OFD packet to send [01:48:07]OFD Sender: No OFD packet to send [01:48:12]OFD Sender: No OFD packet to send [01:48:17]OFD Sender: No OFD packet to send [01:48:22]OFD Sender: No OFD packet to send [01:48:27]OFD Sender: No OFD packet to send [01:48:32]OFD Sender: No OFD packet to send [01:48:37]OFD Sender: No OFD packet to send [01:48:42]OFD Sender: No OFD packet to send [01:48:47]OFD Sender: No OFD packet to send [01:48:52]OFD Sender: No OFD packet to send [01:48:57]OFD Sender: No OFD packet to send [01:49:02]OFD Sender: No OFD packet to send [01:49:07]OFD Sender: No OFD packet to send [01:49:12]OFD Sender: No OFD packet to send [01:49:17]OFD Sender: No OFD packet to send [01:49:22]OFD Sender: No OFD packet to send [01:49:27]OFD Sender: No OFD packet to send [01:49:32]OFD Sender: No OFD packet to send [01:49:37]OFD Sender: No OFD packet to send [01:49:42]OFD Sender: No OFD packet to send [01:49:47]OFD Sender: No OFD packet to send [01:49:52]OFD Sender: No OFD packet to send [01:49:57]OFD Sender: No OFD packet to send [01:50:02]OFD Sender: No OFD packet to send [01:50:07]OFD Sender: No OFD packet to send [01:50:12]OFD Sender: No OFD packet to send [01:50:17]OFD Sender: No OFD packet to send [01:50:22]OFD Sender: No OFD packet to send [01:50:27]OFD Sender: No OFD packet to send [01:50:32]OFD Sender: No OFD packet to send [01:50:37]OFD Sender: No OFD packet to send [01:50:42]OFD Sender: No OFD packet to send [01:50:47]OFD Sender: No OFD packet to send [01:50:52]OFD Sender: No OFD packet to send [01:50:57]OFD Sender: No OFD packet to send [01:51:02]OFD Sender: No OFD packet to send [01:51:07]OFD Sender: No OFD packet to send [01:51:12]OFD Sender: No OFD packet to send [01:51:17]OFD Sender: No OFD packet to send [01:51:22]OFD Sender: No OFD packet to send [01:51:27]OFD Sender: No OFD packet to send [01:51:32]OFD Sender: No OFD packet to send [01:51:37]OFD Sender: No OFD packet to send [01:51:42]OFD Sender: No OFD packet to send [01:51:47]OFD Sender: No OFD packet to send [01:51:52]OFD Sender: No OFD packet to send [01:51:57]OFD Sender: No OFD packet to send [01:52:02]OFD Sender: No OFD packet to send [01:52:07]OFD Sender: No OFD packet to send [01:52:12]OFD Sender: No OFD packet to send [01:52:17]OFD Sender: No OFD packet to send [01:52:22]OFD Sender: No OFD packet to send [01:52:27]OFD Sender: No OFD packet to send [01:52:32]OFD Sender: No OFD packet to send [01:52:38]OFD Sender: No OFD packet to send [01:52:43]OFD Sender: No OFD packet to send [01:52:48]OFD Sender: No OFD packet to send [01:52:53]OFD Sender: No OFD packet to send [01:52:58]OFD Sender: No OFD packet to send [01:53:03]OFD Sender: No OFD packet to send [01:53:08]OFD Sender: No OFD packet to send [01:53:13]OFD Sender: No OFD packet to send [01:53:18]OFD Sender: No OFD packet to send [01:53:23]OFD Sender: No OFD packet to send [01:53:28]OFD Sender: No OFD packet to send [01:53:33]OFD Sender: No OFD packet to send [01:53:38]OFD Sender: No OFD packet to send [01:53:43]OFD Sender: No OFD packet to send [01:53:48]OFD Sender: No OFD packet to send [01:53:53]OFD Sender: No OFD packet to send [01:53:58]OFD Sender: No OFD packet to send [01:54:03]OFD Sender: No OFD packet to send [01:54:08]OFD Sender: No OFD packet to send [01:54:13]OFD Sender: No OFD packet to send [01:54:18]OFD Sender: No OFD packet to send [01:54:23]OFD Sender: No OFD packet to send [01:54:28]OFD Sender: No OFD packet to send [01:54:33]OFD Sender: No OFD packet to send [01:54:38]OFD Sender: No OFD packet to send [01:54:43]OFD Sender: No OFD packet to send [01:54:48]OFD Sender: No OFD packet to send [01:54:53]OFD Sender: No OFD packet to send [01:54:58]OFD Sender: No OFD packet to send [01:55:03]OFD Sender: No OFD packet to send [01:55:08]OFD Sender: No OFD packet to send [01:55:13]OFD Sender: No OFD packet to send [01:55:18]OFD Sender: No OFD packet to send [01:55:23]OFD Sender: No OFD packet to send [01:55:28]OFD Sender: No OFD packet to send [01:55:33]OFD Sender: No OFD packet to send [01:55:38]OFD Sender: No OFD packet to send [01:55:43]OFD Sender: No OFD packet to send [01:55:48]OFD Sender: No OFD packet to send [01:55:53]OFD Sender: No OFD packet to send [01:55:58]OFD Sender: No OFD packet to send [01:56:03]OFD Sender: No OFD packet to send [01:56:08]OFD Sender: No OFD packet to send [01:56:13]OFD Sender: No OFD packet to send [01:56:18]OFD Sender: No OFD packet to send [01:56:23]OFD Sender: No OFD packet to send [01:56:28]OFD Sender: No OFD packet to send [01:56:33]OFD Sender: No OFD packet to send [01:56:38]OFD Sender: No OFD packet to send [01:56:43]OFD Sender: No OFD packet to send [01:56:48]OFD Sender: No OFD packet to send [01:56:53]OFD Sender: No OFD packet to send [01:56:58]OFD Sender: No OFD packet to send [01:57:03]OFD Sender: No OFD packet to send [01:57:08]OFD Sender: No OFD packet to send [01:57:13]OFD Sender: No OFD packet to send [01:57:18]OFD Sender: No OFD packet to send [01:57:23]OFD Sender: No OFD packet to send [01:57:28]OFD Sender: No OFD packet to send [01:57:33]OFD Sender: No OFD packet to send [01:57:38]OFD Sender: No OFD packet to send [01:57:43]OFD Sender: No OFD packet to send [01:57:48]OFD Sender: No OFD packet to send [01:57:53]OFD Sender: No OFD packet to send [01:57:58]OFD Sender: No OFD packet to send [01:58:03]OFD Sender: No OFD packet to send [01:58:08]OFD Sender: No OFD packet to send [01:58:13]OFD Sender: No OFD packet to send [01:58:18]OFD Sender: No OFD packet to send [01:58:23]OFD Sender: No OFD packet to send [01:58:28]OFD Sender: No OFD packet to send [01:58:33]OFD Sender: No OFD packet to send [01:58:38]OFD Sender: No OFD packet to send [01:58:43]OFD Sender: No OFD packet to send [01:58:48]OFD Sender: No OFD packet to send [01:58:53]OFD Sender: No OFD packet to send [01:58:58]OFD Sender: No OFD packet to send [01:59:03]OFD Sender: No OFD packet to send [01:59:08]OFD Sender: No OFD packet to send [01:59:13]OFD Sender: No OFD packet to send [01:59:18]OFD Sender: No OFD packet to send [01:59:23]OFD Sender: No OFD packet to send [01:59:28]OFD Sender: No OFD packet to send [01:59:33]OFD Sender: No OFD packet to send [01:59:38]OFD Sender: No OFD packet to send [01:59:43]OFD Sender: No OFD packet to send [01:59:48]OFD Sender: No OFD packet to send [01:59:53]OFD Sender: No OFD packet to send [01:59:58]OFD Sender: No OFD packet to send [02:00:03]OFD Sender: No OFD packet to send [02:00:08]OFD Sender: No OFD packet to send [02:00:13]OFD Sender: No OFD packet to send [02:00:18]OFD Sender: No OFD packet to send [02:00:23]OFD Sender: No OFD packet to send [02:00:28]OFD Sender: No OFD packet to send [02:00:33]OFD Sender: No OFD packet to send [02:00:38]OFD Sender: No OFD packet to send [02:00:43]OFD Sender: No OFD packet to send [02:00:48]OFD Sender: No OFD packet to send [02:00:53]OFD Sender: No OFD packet to send [02:00:58]OFD Sender: No OFD packet to send [02:01:03]OFD Sender: No OFD packet to send [02:01:08]OFD Sender: No OFD packet to send [02:01:13]OFD Sender: No OFD packet to send [02:01:18]OFD Sender: No OFD packet to send [02:01:23]OFD Sender: No OFD packet to send [02:01:28]OFD Sender: No OFD packet to send [02:01:33]OFD Sender: No OFD packet to send [02:01:38]OFD Sender: No OFD packet to send [02:01:43]OFD Sender: No OFD packet to send [02:01:47]accept exits with 8 [02:01:47]New connection [02:01:47]New thread 3067456868 created [02:01:47]Thread 3067313508 joined [02:01:47]Waiting for new connection... [02:01:47] Sock 8.Parse request [02:01:47]Sock 8.Check first char [02:01:47]Sock 8.First char is OK [02:01:47]request: POST /json_proto HTTP/1.0 [02:01:47]Method: POST [02:01:47]URL: /json_proto [02:01:47]Method is POST - this is cgi request [02:01:47]url: /json_proto [02:01:47]query_string will be loaded in cgi processing [02:01:47]execute_cgi json_proto POST (null) [02:01:47]execute_cgi path=json_proto method=POST [02:01:47]POST find Content-Length [02:01:47]Host: 172.17.50.3:8080 [02:01:47]Content-Length: 683 [02:01:47]Content-Type: application/json [02:01:47] [02:01:47]POST finish read [02:01:47]Found Content-Length = 683 [02:01:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:01:47]execute_script... [02:01: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)2885367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:01:47]POST & json_proto [02:01:47]process_json_proto [02:01:47]json parsed OK: [02:01:47]protocol is kg_v1.0 [02:01:47]action value=close_receipt [02:01:47]process_action close_receipt [02:01:47]cmd_close_receipt [02:01:47]MH_GetDate [02:01:47]Write to MH i2c: F0 00 00 DC 07 D2 [02:01:47]Write i2c OK [02:01:47]MH_I2C_Read... [02:01:47]Read from MH i2c: F0 [02:01:47]MH_I2C_Read... [02:01:47]Read from MH i2c: F0 09 00 [02:01:47]MH_I2C_Read... [02:01:47]Read from MH i2c: F0 09 00 DC 07 00 0D B6 15 67 6B 98 1E 66 A1 [02:01:47]GetLastDocTimeStamp 1729474890 [02:01:47]current date 1729476109 [02:01:47]FM_GetShiftState [02:01:47]SAM_PROTO_GetShiftState [02:01:47]wFMCommunicate request_size=4 [02:01:47]MH_SAM_APDU [02:01:47]CAPDU: 80 13 01 00 [02:01:47]Write to MH i2c: E2 08 00 DD 07 80 13 01 00 00 00 00 00 61 [02:01:47]Write i2c OK [02:01:47]MH_I2C_Read... [02:01:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:01:47]Read from MH i2c: E2 [02:01:47]MH_I2C_Read... [02:01:47]Read from MH i2c: E2 0E 00 [02:01:47]MH_I2C_Read... [02:01:47]Read from MH i2c: E2 0E 00 DD 07 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 8D [02:01:47]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [02:01:47]wFMCommunicate OK [02:01:47]SAM_PROTO_GetShiftState done [02:01:47]FM_GetShiftState done [02:01:47]opened in 1729469703 [02:01:47]opened+sec_in_day 1729556103 [02:01:47]quantity*price = 100015 [02:01:47]sum+1 = 100017 [02:01:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 20 21.10.2024 02:01 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69630 ФПД: 186611228986601 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T020149&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69630&fm=186611228986601&tin=02508201610067®Number=0000000000156251&sum=100000 [02:01:49]StoreToDocumentArchive [02:01:49]shift 194 fd 69630 [02:01:49]save to /storage/0194/doc_00069630 [02:01:49]save last doc name /storage/0194/doc_00069630 to /storage/kkm_last_doc_name [02:01:49]save OK [02:01:49]Clear old archive folders... [02:01:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:01:49]tlvbuf is 00C725F0 [02:01:49]SAM_PROTO_ClearQueue [02:01:49]wFMCommunicate request_size=4 [02:01:49]MH_SAM_APDU [02:01:49]CAPDU: 80 09 00 00 [02:01:49]Write to MH i2c: E2 08 00 EA 07 80 09 00 00 00 00 00 00 63 [02:01:49]Write i2c OK [02:01:49]MH_I2C_Read... [02:01:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:01:49]Read from MH i2c: E2 [02:01:49]MH_I2C_Read... [02:01:49]Read from MH i2c: E2 03 00 [02:01:49]MH_I2C_Read... [02:01:49]Read from MH i2c: E2 03 00 EA 07 00 90 00 65 [02:01:49]RAPDU: 90 00 [02:01:49]wFMCommunicate OK [02:01:49]SAM_PROTO_ClearQueue done [02:01:49]KKMCreateOFDPacket [02:01:49]OFDProtocolAddRootSTLVToBuf [02:01:49]FM_MakeSignedData [02:01:49]FM_MakeSignedData [02:01:49]SAM_PROTO_SignData [02:01:49]wFMCommunicate request_size=4 [02:01:49]MH_SAM_APDU [02:01:49]CAPDU: 80 0D 01 02 [02:01:49]Write to MH i2c: E2 08 00 EB 07 80 0D 01 02 00 00 00 00 6B [02:01:49]Write i2c OK [02:01:49]MH_I2C_Read... [02:01:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:01:49]Read from MH i2c: E2 [02:01:49]MH_I2C_Read... [02:01:49]Read from MH i2c: E2 03 00 [02:01:49]MH_I2C_Read... [02:01:49]Read from MH i2c: E2 03 00 EB 07 00 90 00 66 [02:01:49]RAPDU: 90 00 [02:01:49]wFMCommunicate OK [02:01:49]wFMCommunicate request_size=255 [02:01:49]MH_SAM_APDU [02:01:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 0D B6 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FE 0F 01 00 35 04 06 00 A9 [02:01:49]Write to MH i2c: E2 02 01 EC 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 0D B6 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FE 0F 01 00 35 04 06 00 A9 00 00 BA [02:01:49]Write i2c OK [02:01:49]MH_I2C_Read... [02:01:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:01:49]Read from MH i2c: E2 [02:01:49]MH_I2C_Read... [02:01:49]Read from MH i2c: E2 03 00 [02:01:49]MH_I2C_Read... [02:01:49]Read from MH i2c: E2 03 00 EC 07 00 90 00 67 [02:01:49]RAPDU: 90 00 [02:01:49]wFMCommunicate OK [02:01:49]wFMCommunicate request_size=10 [02:01:49]MH_SAM_APDU [02:01:49]CAPDU: 80 0D 02 02 05 B8 D0 03 CC E9 [02:01:49]Write to MH i2c: E2 0D 00 ED 07 80 0D 02 02 05 00 B8 D0 03 CC E9 00 00 B8 [02:01:49]Write i2c OK [02:01:49]MH_I2C_Read... [02:01:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:01:49]Read from MH i2c: E2 [02:01:49]MH_I2C_Read... [02:01:49]Read from MH i2c: E2 03 00 [02:01:49]MH_I2C_Read... [02:01:49]Read from MH i2c: E2 03 00 ED 07 00 90 00 68 [02:01:49]RAPDU: 90 00 [02:01:49]wFMCommunicate OK [02:01:49]wFMCommunicate request_size=4 [02:01:49]MH_SAM_APDU [02:01:49]CAPDU: 80 0D 03 02 [02:01:49]Write to MH i2c: E2 08 00 EE 07 80 0D 03 02 00 00 00 00 70 [02:01:49]Write i2c OK [02:01:49]MH_I2C_Read... [02:01:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:01:49]Read from MH i2c: E2 [02:01:49]MH_I2C_Read... [02:01:49]Read from MH i2c: E2 0B 00 [02:01:49]MH_I2C_Read... [02:01:49]Read from MH i2c: E2 0B 00 EE 07 00 FF 6D 11 C9 4E CC D4 7E 90 00 23 [02:01:49]RAPDU: FF 6D 11 C9 4E CC D4 7E 90 00 [02:01:49]wFMCommunicate OK [02:01:49]SAM_PROTO_SignData done [02:01:49]FM_MakeSignedData done [02:01:49]CreateOFDProtocolMessage [02:01:49]wFMCommunicate request_size=4 [02:01:49]MH_SAM_APDU [02:01:49]CAPDU: 80 11 00 00 [02:01:49]Write to MH i2c: E2 08 00 EF 07 80 11 00 00 00 00 00 00 70 [02:01:49]Write i2c OK [02:01:49]MH_I2C_Read... [02:01:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:01:49]Read from MH i2c: E2 [02:01:49]MH_I2C_Read... [02:01:49]Read from MH i2c: E2 17 00 [02:01:49]MH_I2C_Read... [02:01:49]Read from MH i2c: E2 17 00 EF 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 C2 [02:01:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [02:01:49]wFMCommunicate OK [02:01:49]CreateOFDProtocolMessage done [02:01:49]OFDSenderStorePacket 69630 [02:01:49]StoreOFDPacket docnum=69630 [02:01:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 84 E5 07 01 C6 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 0D B6 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FE 0F 01 00 35 04 06 00 A9 B8 D0 03 CC E9 FF 6D 11 C9 4E CC D4 7E [02:01:49]CheckFolder [02:01:49]dirname=/storage/ofd_packets [02:01:49]CheckFolder done [02:01:49]ProducePacketName [02:01:49]name=ofd_packets/00069630 [02:01:49]NVStorageSaveData ofd_packets/00069630 [02:01:49]File name is /storage/ofd_packets/00069630 [02:01:49]Write 301 bytes [02:01:49]NVStorageSaveData done [02:01:49]OFDSenderStorePacket done [02:01:49]KKMCreateOFDPacket done [02:01:49]NVStorageSaveData kkm_last_timestamp [02:01:49]File name is /storage/kkm_last_timestamp [02:01:49]Write 4 bytes [02:01:49]NVStorageSaveData done [02:01:49]ExternCall_PrintAddStr [02:01:49]wPrintStart [02:01:49]Write to MH i2c: 01 00 00 F0 07 F7 [02:01:49]Write i2c OK [02:01:49]MH_I2C_Read... [02:01:49]Read from MH i2c: 01 [02:01:49]MH_I2C_Read... [02:01:49]Read from MH i2c: 01 07 00 [02:01:49]MH_I2C_Read... [02:01:49]Read from MH i2c: 01 07 00 F0 07 00 00 00 00 00 FF 0F 0C [02:01:49]RasterBufferAndPrint [02:01:49]line Счет N : (1)2885367 [02:01:49]line ИНН: 02508201610067 [02:01:49]line Контрольно-Кассовый Чек [02:01:49]line ПРОДАЖА [02:01:49]line ТРК (МРК, ГНК) : 12 [02:01:49]line Товар: 2710124130 [02:01:49]line Аи-92-К-5 [02:01:49]line 14.950 * 66.90 [02:01:49]line = 1000.16 [02:01:49]line НДС 12% НСП 1% [02:01:49]line > о реализуемом товаре [02:01:49]line ОКРУГЛЕНИЕ: -0.16 [02:01:49]line ИТОГО: 1000.00 [02:01:49]line Внесено: 1000.00 [02:01:49]line СДАЧА: 0.00 [02:01:49]line НСП 1% : 8.85 [02:01:49]line НДС 12% : 106.21 [02:01:49]line Наличными: 1000.00 [02:01:49]line Безнал.: 0.00 [02:01:49]line Место: АЗС № 85 "Партнер Нефть" [02:01:49]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [02:01:49]line СНО: Общий режим [02:01:49]line Чек 20 21.10.2024 02:01 [02:01:49]line Смена: 194 ФФД: 1.0 [02:01:49]line ЗНМ: 0300000167 [02:01:49]line РНМ: 0000000000156251 [02:01:49]line Версия ККМ: v1.0 [02:01:49]line ФМ: 0000000000963346 [02:01:49]line ФД: 69630 [02:01:49]line ФПД: 186611228986601 [02:01:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T020149&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69630&fm=186611228986601&tin=02508201610067®Number=0000000000156251&sum=100000 [02:01:49]OFD Sender: Processing packet 69630 [packets to send 18, broken 17] [02:01:49]ProducePacketName [02:01:49]name=ofd_packets/00069630 [02:01:49]OFD Sender: To server: pG, [02:01:49]CommunicateWithHost lk.salyk.kg:30040 [02:01:49]ConnectInit lk.salyk.kg [02:01:49]written 0, free lines is 4095 [02:01:50]Connected sock=10 [02:01:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 84 E5 07 01 C6 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 0D B6 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FE 0F 01 00 35 04 06 00 A9 B8 D0 03 CC E9 FF 6D 11 C9 4E CC D4 7E [02:01:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 CD A0 47 00 81 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 30 39 36 33 33 34 36 10 04 04 00 FE 0F 01 00 F4 03 04 00 B2 5F 15 67 B6 04 01 00 00 90 34 9F 8C 6B 8F 38 7D [02:01:50]CommunicateWithHost err = 0 [02:01:50]CheckOFDResponse [02:01:50]1017 (14) - 77093643461234 [02:01:50]1041 (16) - 0000000000963346 [02:01:50]1040 (4) - 69630 [02:01:50]1012 (4) - 20.10.2024 19:53 [02:01:50]1206 (1) - 0 [02:01:50]OFD Sender: Remove packet 69630 [02:01:50]ProducePacketName [02:01:50]name=ofd_packets/00069630 [02:01:50]NVStorageDeleteData [02:01:50]Write to MH i2c: 01 00 00 1B 08 23 [02:01:50]Write i2c OK [02:01:50]MH_I2C_Read... [02:01:50]Read from MH i2c: 01 [02:01:50]MH_I2C_Read... [02:01:50]Read from MH i2c: 01 07 00 [02:01:50]MH_I2C_Read... [02:01:50]Read from MH i2c: 01 07 00 1B 08 00 00 00 00 00 EE 0C 24 [02:01:50]RasterBufferAndPrint [02:01:50]line [02:01:50]line [02:01:50]line [02:01:50]line [02:01:50]line [02:01:50]written 0, free lines is 3316 [02:01:50]MH_Cut [02:01:50]Write to MH i2c: D1 01 00 22 08 01 FC [02:01:50]Write i2c OK [02:01:50]MH_I2C_Read... [02:01:50]Read from MH i2c: D1 [02:01:50]MH_I2C_Read... [02:01:50]Read from MH i2c: D1 01 00 [02:01:50]MH_I2C_Read... [02:01:50]Read from MH i2c: D1 01 00 22 08 00 FB [02:01:50]Write to MH i2c: 01 00 00 23 08 2B [02:01:50]Write i2c OK [02:01:50]MH_I2C_Read... [02:01:50]OFD Sender: No OFD packet to send [02:01:51]*** Cut start [02:01:51]*** Partial cut [02:01:51]*** CUTSNS_PIN = 1 [02:01:51]*** CUTSNS_PIN = 0 [02:01:51]*** Brake cut motor [02:01:51]Read from MH i2c: 01 [02:01:51]MH_I2C_Read... [02:01:51]*** Stop cut motor [02:01:51]*** Cut end [02:01:51]Read from MH i2c: 01 07 00 [02:01:51]MH_I2C_Read... [02:01:51]Read from MH i2c: 01 07 00 23 08 00 00 00 00 00 FF 0F 40 [02:01:51]process_action close_receipt done [02:01:51]requested_data is exist [02:01:51]produce_requested_data [02:01:51]requested_item fm.sn is exist - process it [02:01:51]wFMCommunicate request_size=4 [02:01:51]MH_SAM_APDU [02:01:51]CAPDU: 80 11 00 00 [02:01:51]Write to MH i2c: E2 08 00 24 08 80 11 00 00 00 00 00 00 A6 [02:01:51]Write i2c OK [02:01:51]MH_I2C_Read... [02:01:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:01:51]Read from MH i2c: E2 [02:01:51]MH_I2C_Read... [02:01:51]Read from MH i2c: E2 17 00 [02:01:51]MH_I2C_Read... [02:01:51]Read from MH i2c: E2 17 00 24 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 F8 [02:01:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [02:01:51]wFMCommunicate OK [02:01:51]requested_item fd.num is exist - process it [02:01:51]SAM_PROTO_GetFieldsCounters [02:01:51]wFMCommunicate request_size=4 [02:01:51]MH_SAM_APDU [02:01:51]CAPDU: 80 13 00 00 [02:01:51]Write to MH i2c: E2 08 00 25 08 80 13 00 00 00 00 00 00 A9 [02:01:51]Write i2c OK [02:01:51]MH_I2C_Read... [02:01:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:01:51]Read from MH i2c: E2 [02:01:51]MH_I2C_Read... [02:01:51]Read from MH i2c: E2 62 00 [02:01:51]MH_I2C_Read... [02:01:51]Read from MH i2c: E2 62 00 25 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FE 0F 01 00 0E 04 04 00 C2 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 D0 [02:01:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FE 0F 01 00 0E 04 04 00 C2 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 [02:01:51]wFMCommunicate OK [02:01:51]SAM_PROTO_GetFieldsCounters done [02:01:51]requested_item shift.num is exist - process it [02:01:51]requested_item shift.opened is exist - process it [02:01:51]req_shift_opened [02:01:51]FM_GetShiftState [02:01:51]SAM_PROTO_GetShiftState [02:01:51]wFMCommunicate request_size=4 [02:01:51]MH_SAM_APDU [02:01:51]CAPDU: 80 13 01 00 [02:01:51]Write to MH i2c: E2 08 00 26 08 80 13 01 00 00 00 00 00 AB [02:01:51]Write i2c OK [02:01:51]MH_I2C_Read... [02:01:51]Read from MH i2c: E2 [02:01:51]MH_I2C_Read... [02:01:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:01:51]Read from MH i2c: E2 0E 00 [02:01:51]MH_I2C_Read... [02:01:51]Read from MH i2c: E2 0E 00 26 08 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 D7 [02:01:51]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [02:01:51]wFMCommunicate OK [02:01:51]SAM_PROTO_GetShiftState done [02:01:51]FM_GetShiftState done [02:01:51]req_shift_opened done [02:01:51]requested_item shift.open_date is exist - process it [02:01:51]req_shift_open_date [02:01:51]req_shift_open_date done [02:01:51]produce_requested_data done [02:01:51]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69630,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [02:01:51]process_action_free close_receipt [02:01:51]json_value_free [02:01:51]json_value_free done [02:01:51]process_json_proto returns [02:01:51]Send response to host [02:01:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69630,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [02:01:51]free response buf [02:01:51]execute_script done [02:01:51]execute_script returns [02:01:51]free content buf [02:01:51]Sock 8.Close socket [02:01:51]Sock 8.Thread stoped [02:01:55]OFD Sender: No OFD packet to send [02:02:00]OFD Sender: No OFD packet to send [02:02:05]OFD Sender: No OFD packet to send [02:02:10]OFD Sender: No OFD packet to send [02:02:15]OFD Sender: No OFD packet to send [02:02:20]OFD Sender: No OFD packet to send [02:02:25]OFD Sender: No OFD packet to send [02:02:30]OFD Sender: No OFD packet to send [02:02:35]OFD Sender: No OFD packet to send [02:02:40]OFD Sender: No OFD packet to send [02:02:45]OFD Sender: No OFD packet to send [02:02:50]OFD Sender: No OFD packet to send [02:02:55]OFD Sender: No OFD packet to send [02:03:00]OFD Sender: No OFD packet to send [02:03:05]OFD Sender: No OFD packet to send [02:03:10]OFD Sender: No OFD packet to send [02:03:15]OFD Sender: No OFD packet to send [02:03:20]OFD Sender: No OFD packet to send [02:03:25]OFD Sender: No OFD packet to send [02:03:30]OFD Sender: No OFD packet to send [02:03:35]OFD Sender: No OFD packet to send [02:03:40]OFD Sender: No OFD packet to send [02:03:45]OFD Sender: No OFD packet to send [02:03:50]OFD Sender: No OFD packet to send [02:03:55]OFD Sender: No OFD packet to send [02:04:00]OFD Sender: No OFD packet to send [02:04:05]OFD Sender: No OFD packet to send [02:04:10]OFD Sender: No OFD packet to send [02:04:15]OFD Sender: No OFD packet to send [02:04:20]OFD Sender: No OFD packet to send [02:04:25]OFD Sender: No OFD packet to send [02:04:30]OFD Sender: No OFD packet to send [02:04:35]OFD Sender: No OFD packet to send [02:04:40]OFD Sender: No OFD packet to send [02:04:45]OFD Sender: No OFD packet to send [02:04:50]OFD Sender: No OFD packet to send [02:04:55]OFD Sender: No OFD packet to send [02:05:00]OFD Sender: No OFD packet to send [02:05:05]OFD Sender: No OFD packet to send [02:05:11]OFD Sender: No OFD packet to send [02:05:16]OFD Sender: No OFD packet to send [02:05:21]OFD Sender: No OFD packet to send [02:05:26]OFD Sender: No OFD packet to send [02:05:31]OFD Sender: No OFD packet to send [02:05:36]OFD Sender: No OFD packet to send [02:05:41]OFD Sender: No OFD packet to send [02:05:46]OFD Sender: No OFD packet to send [02:05:51]OFD Sender: No OFD packet to send [02:05:56]OFD Sender: No OFD packet to send [02:06:01]OFD Sender: No OFD packet to send [02:06:06]OFD Sender: No OFD packet to send [02:06:11]OFD Sender: No OFD packet to send [02:06:16]OFD Sender: No OFD packet to send [02:06:21]OFD Sender: No OFD packet to send [02:06:26]OFD Sender: No OFD packet to send [02:06:31]OFD Sender: No OFD packet to send [02:06:36]OFD Sender: No OFD packet to send [02:06:41]OFD Sender: No OFD packet to send [02:06:46]OFD Sender: No OFD packet to send [02:06:51]OFD Sender: No OFD packet to send [02:06:56]OFD Sender: No OFD packet to send [02:07:01]OFD Sender: No OFD packet to send [02:07:06]OFD Sender: No OFD packet to send [02:07:11]OFD Sender: No OFD packet to send [02:07:16]OFD Sender: No OFD packet to send [02:07:21]OFD Sender: No OFD packet to send [02:07:26]OFD Sender: No OFD packet to send [02:07:31]OFD Sender: No OFD packet to send [02:07:36]OFD Sender: No OFD packet to send [02:07:41]OFD Sender: No OFD packet to send [02:07:46]OFD Sender: No OFD packet to send [02:07:51]OFD Sender: No OFD packet to send [02:07:56]OFD Sender: No OFD packet to send [02:08:01]OFD Sender: No OFD packet to send [02:08:06]OFD Sender: No OFD packet to send [02:08:11]OFD Sender: No OFD packet to send [02:08:16]OFD Sender: No OFD packet to send [02:08:21]OFD Sender: No OFD packet to send [02:08:26]OFD Sender: No OFD packet to send [02:08:31]OFD Sender: No OFD packet to send [02:08:36]OFD Sender: No OFD packet to send [02:08:41]OFD Sender: No OFD packet to send [02:08:46]OFD Sender: No OFD packet to send [02:08:51]OFD Sender: No OFD packet to send [02:08:56]OFD Sender: No OFD packet to send [02:09:01]OFD Sender: No OFD packet to send [02:09:06]OFD Sender: No OFD packet to send [02:09:11]OFD Sender: No OFD packet to send [02:09:16]OFD Sender: No OFD packet to send [02:09:21]OFD Sender: No OFD packet to send [02:09:26]OFD Sender: No OFD packet to send [02:09:31]OFD Sender: No OFD packet to send [02:09:36]OFD Sender: No OFD packet to send [02:09:41]OFD Sender: No OFD packet to send [02:09:46]OFD Sender: No OFD packet to send [02:09:51]OFD Sender: No OFD packet to send [02:09:56]OFD Sender: No OFD packet to send [02:10:01]OFD Sender: No OFD packet to send [02:10:06]OFD Sender: No OFD packet to send [02:10:11]OFD Sender: No OFD packet to send [02:10:16]OFD Sender: No OFD packet to send [02:10:21]OFD Sender: No OFD packet to send [02:10:26]OFD Sender: No OFD packet to send [02:10:31]OFD Sender: No OFD packet to send [02:10:36]OFD Sender: No OFD packet to send [02:10:41]OFD Sender: No OFD packet to send [02:10:46]OFD Sender: No OFD packet to send [02:10:51]OFD Sender: No OFD packet to send [02:10:56]OFD Sender: No OFD packet to send [02:11:01]OFD Sender: No OFD packet to send [02:11:06]OFD Sender: No OFD packet to send [02:11:11]OFD Sender: No OFD packet to send [02:11:16]OFD Sender: No OFD packet to send [02:11:21]OFD Sender: No OFD packet to send [02:11:26]OFD Sender: No OFD packet to send [02:11:31]OFD Sender: No OFD packet to send [02:11:36]OFD Sender: No OFD packet to send [02:11:41]OFD Sender: No OFD packet to send [02:11:46]OFD Sender: No OFD packet to send [02:11:51]OFD Sender: No OFD packet to send [02:11:56]OFD Sender: No OFD packet to send [02:12:01]OFD Sender: No OFD packet to send [02:12:06]OFD Sender: No OFD packet to send [02:12:11]OFD Sender: No OFD packet to send [02:12:16]OFD Sender: No OFD packet to send [02:12:21]OFD Sender: No OFD packet to send [02:12:26]OFD Sender: No OFD packet to send [02:12:31]OFD Sender: No OFD packet to send [02:12:36]OFD Sender: No OFD packet to send [02:12:41]OFD Sender: No OFD packet to send [02:12:46]OFD Sender: No OFD packet to send [02:12:51]OFD Sender: No OFD packet to send [02:12:56]OFD Sender: No OFD packet to send [02:13:01]OFD Sender: No OFD packet to send [02:13:06]OFD Sender: No OFD packet to send [02:13:11]OFD Sender: No OFD packet to send [02:13:16]OFD Sender: No OFD packet to send [02:13:21]OFD Sender: No OFD packet to send [02:13:26]OFD Sender: No OFD packet to send [02:13:31]OFD Sender: No OFD packet to send [02:13:36]OFD Sender: No OFD packet to send [02:13:41]OFD Sender: No OFD packet to send [02:13:46]OFD Sender: No OFD packet to send [02:13:51]OFD Sender: No OFD packet to send [02:13:56]OFD Sender: No OFD packet to send [02:14:01]OFD Sender: No OFD packet to send [02:14:06]OFD Sender: No OFD packet to send [02:14:11]OFD Sender: No OFD packet to send [02:14:16]OFD Sender: No OFD packet to send [02:14:21]OFD Sender: No OFD packet to send [02:14:26]OFD Sender: No OFD packet to send [02:14:31]OFD Sender: No OFD packet to send [02:14:36]OFD Sender: No OFD packet to send [02:14:41]OFD Sender: No OFD packet to send [02:14:46]OFD Sender: No OFD packet to send [02:14:51]OFD Sender: No OFD packet to send [02:14:56]OFD Sender: No OFD packet to send [02:15:01]OFD Sender: No OFD packet to send [02:15:06]OFD Sender: No OFD packet to send [02:15:11]OFD Sender: No OFD packet to send [02:15:16]OFD Sender: No OFD packet to send [02:15:21]OFD Sender: No OFD packet to send [02:15:26]OFD Sender: No OFD packet to send [02:15:31]OFD Sender: No OFD packet to send [02:15:36]OFD Sender: No OFD packet to send [02:15:41]OFD Sender: No OFD packet to send [02:15:46]OFD Sender: No OFD packet to send [02:15:51]OFD Sender: No OFD packet to send [02:15:56]OFD Sender: No OFD packet to send [02:16:01]OFD Sender: No OFD packet to send [02:16:06]OFD Sender: No OFD packet to send [02:16:11]OFD Sender: No OFD packet to send [02:16:16]OFD Sender: No OFD packet to send [02:16:21]OFD Sender: No OFD packet to send [02:16:26]OFD Sender: No OFD packet to send [02:16:31]OFD Sender: No OFD packet to send [02:16:36]OFD Sender: No OFD packet to send [02:16:41]OFD Sender: No OFD packet to send [02:16:46]OFD Sender: No OFD packet to send [02:16:51]OFD Sender: No OFD packet to send [02:16:56]OFD Sender: No OFD packet to send [02:17:01]OFD Sender: No OFD packet to send [02:17:06]OFD Sender: No OFD packet to send [02:17:11]OFD Sender: No OFD packet to send [02:17:16]OFD Sender: No OFD packet to send [02:17:21]OFD Sender: No OFD packet to send [02:17:26]OFD Sender: No OFD packet to send [02:17:31]OFD Sender: No OFD packet to send [02:17:36]OFD Sender: No OFD packet to send [02:17:41]OFD Sender: No OFD packet to send [02:17:46]OFD Sender: No OFD packet to send [02:17:51]OFD Sender: No OFD packet to send [02:17:56]OFD Sender: No OFD packet to send [02:18:01]OFD Sender: No OFD packet to send [02:18:06]OFD Sender: No OFD packet to send [02:18:11]OFD Sender: No OFD packet to send [02:18:16]OFD Sender: No OFD packet to send [02:18:21]OFD Sender: No OFD packet to send [02:18:26]OFD Sender: No OFD packet to send [02:18:31]OFD Sender: No OFD packet to send [02:18:36]OFD Sender: No OFD packet to send [02:18:41]OFD Sender: No OFD packet to send [02:18:46]OFD Sender: No OFD packet to send [02:18:51]OFD Sender: No OFD packet to send [02:18:56]OFD Sender: No OFD packet to send [02:19:01]OFD Sender: No OFD packet to send [02:19:06]OFD Sender: No OFD packet to send [02:19:11]OFD Sender: No OFD packet to send [02:19:16]OFD Sender: No OFD packet to send [02:19:21]OFD Sender: No OFD packet to send [02:19:26]OFD Sender: No OFD packet to send [02:19:31]OFD Sender: No OFD packet to send [02:19:36]OFD Sender: No OFD packet to send [02:19:41]OFD Sender: No OFD packet to send [02:19:46]OFD Sender: No OFD packet to send [02:19:51]OFD Sender: No OFD packet to send [02:19:56]OFD Sender: No OFD packet to send [02:20:01]OFD Sender: No OFD packet to send [02:20:06]OFD Sender: No OFD packet to send [02:20:11]OFD Sender: No OFD packet to send [02:20:16]OFD Sender: No OFD packet to send [02:20:21]OFD Sender: No OFD packet to send [02:20:26]OFD Sender: No OFD packet to send [02:20:31]OFD Sender: No OFD packet to send [02:20:36]OFD Sender: No OFD packet to send [02:20:41]OFD Sender: No OFD packet to send [02:20:46]OFD Sender: No OFD packet to send [02:20:51]OFD Sender: No OFD packet to send [02:20:56]OFD Sender: No OFD packet to send [02:21:01]OFD Sender: No OFD packet to send [02:21:06]OFD Sender: No OFD packet to send [02:21:11]OFD Sender: No OFD packet to send [02:21:16]OFD Sender: No OFD packet to send [02:21:21]OFD Sender: No OFD packet to send [02:21:26]OFD Sender: No OFD packet to send [02:21:31]OFD Sender: No OFD packet to send [02:21:36]OFD Sender: No OFD packet to send [02:21:41]OFD Sender: No OFD packet to send [02:21:46]OFD Sender: No OFD packet to send [02:21:51]OFD Sender: No OFD packet to send [02:21:56]OFD Sender: No OFD packet to send [02:22:01]OFD Sender: No OFD packet to send [02:22:06]OFD Sender: No OFD packet to send [02:22:11]OFD Sender: No OFD packet to send [02:22:16]OFD Sender: No OFD packet to send [02:22:21]OFD Sender: No OFD packet to send [02:22:26]OFD Sender: No OFD packet to send [02:22:31]OFD Sender: No OFD packet to send [02:22:36]OFD Sender: No OFD packet to send [02:22:41]OFD Sender: No OFD packet to send [02:22:46]OFD Sender: No OFD packet to send [02:22:51]OFD Sender: No OFD packet to send [02:22:56]OFD Sender: No OFD packet to send [02:23:01]OFD Sender: No OFD packet to send [02:23:06]OFD Sender: No OFD packet to send [02:23:11]OFD Sender: No OFD packet to send [02:23:16]OFD Sender: No OFD packet to send [02:23:21]OFD Sender: No OFD packet to send [02:23:26]OFD Sender: No OFD packet to send [02:23:31]OFD Sender: No OFD packet to send [02:23:36]OFD Sender: No OFD packet to send [02:23:41]OFD Sender: No OFD packet to send [02:23:46]OFD Sender: No OFD packet to send [02:23:51]OFD Sender: No OFD packet to send [02:23:56]OFD Sender: No OFD packet to send [02:24:01]OFD Sender: No OFD packet to send [02:24:06]OFD Sender: No OFD packet to send [02:24:11]OFD Sender: No OFD packet to send [02:24:16]OFD Sender: No OFD packet to send [02:24:21]OFD Sender: No OFD packet to send [02:24:26]OFD Sender: No OFD packet to send [02:24:31]OFD Sender: No OFD packet to send [02:24:36]OFD Sender: No OFD packet to send [02:24:41]OFD Sender: No OFD packet to send [02:24:46]OFD Sender: No OFD packet to send [02:24:51]OFD Sender: No OFD packet to send [02:24:56]OFD Sender: No OFD packet to send [02:25:01]OFD Sender: No OFD packet to send [02:25:06]OFD Sender: No OFD packet to send [02:25:11]OFD Sender: No OFD packet to send [02:25:16]OFD Sender: No OFD packet to send [02:25:21]OFD Sender: No OFD packet to send [02:25:26]OFD Sender: No OFD packet to send [02:25:31]OFD Sender: No OFD packet to send [02:25:36]OFD Sender: No OFD packet to send [02:25:41]OFD Sender: No OFD packet to send [02:25:47]OFD Sender: No OFD packet to send [02:25:52]OFD Sender: No OFD packet to send [02:25:57]OFD Sender: No OFD packet to send [02:26:02]OFD Sender: No OFD packet to send [02:26:07]OFD Sender: No OFD packet to send [02:26:12]OFD Sender: No OFD packet to send [02:26:17]OFD Sender: No OFD packet to send [02:26:22]OFD Sender: No OFD packet to send [02:26:27]OFD Sender: No OFD packet to send [02:26:32]OFD Sender: No OFD packet to send [02:26:37]OFD Sender: No OFD packet to send [02:26:42]OFD Sender: No OFD packet to send [02:26:47]OFD Sender: No OFD packet to send [02:26:52]OFD Sender: No OFD packet to send [02:26:57]OFD Sender: No OFD packet to send [02:27:02]OFD Sender: No OFD packet to send [02:27:07]OFD Sender: No OFD packet to send [02:27:12]OFD Sender: No OFD packet to send [02:27:17]OFD Sender: No OFD packet to send [02:27:22]OFD Sender: No OFD packet to send [02:27:27]OFD Sender: No OFD packet to send [02:27:32]OFD Sender: No OFD packet to send [02:27:37]OFD Sender: No OFD packet to send [02:27:42]OFD Sender: No OFD packet to send [02:27:47]OFD Sender: No OFD packet to send [02:27:52]OFD Sender: No OFD packet to send [02:27:57]OFD Sender: No OFD packet to send [02:28:02]OFD Sender: No OFD packet to send [02:28:07]OFD Sender: No OFD packet to send [02:28:12]OFD Sender: No OFD packet to send [02:28:17]OFD Sender: No OFD packet to send [02:28:22]OFD Sender: No OFD packet to send [02:28:27]OFD Sender: No OFD packet to send [02:28:32]OFD Sender: No OFD packet to send [02:28:37]OFD Sender: No OFD packet to send [02:28:42]OFD Sender: No OFD packet to send [02:28:47]OFD Sender: No OFD packet to send [02:28:52]OFD Sender: No OFD packet to send [02:28:57]OFD Sender: No OFD packet to send [02:29:02]OFD Sender: No OFD packet to send [02:29:07]OFD Sender: No OFD packet to send [02:29:12]OFD Sender: No OFD packet to send [02:29:17]OFD Sender: No OFD packet to send [02:29:22]OFD Sender: No OFD packet to send [02:29:27]OFD Sender: No OFD packet to send [02:29:32]OFD Sender: No OFD packet to send [02:29:37]OFD Sender: No OFD packet to send [02:29:42]OFD Sender: No OFD packet to send [02:29:47]OFD Sender: No OFD packet to send [02:29:52]OFD Sender: No OFD packet to send [02:29:57]OFD Sender: No OFD packet to send [02:30:02]OFD Sender: No OFD packet to send [02:30:07]OFD Sender: No OFD packet to send [02:30:12]OFD Sender: No OFD packet to send [02:30:17]OFD Sender: No OFD packet to send [02:30:22]OFD Sender: No OFD packet to send [02:30:27]OFD Sender: No OFD packet to send [02:30:32]OFD Sender: No OFD packet to send [02:30:37]OFD Sender: No OFD packet to send [02:30:42]OFD Sender: No OFD packet to send [02:30:47]OFD Sender: No OFD packet to send [02:30:52]OFD Sender: No OFD packet to send [02:30:57]OFD Sender: No OFD packet to send [02:31:02]OFD Sender: No OFD packet to send [02:31:07]OFD Sender: No OFD packet to send [02:31:12]OFD Sender: No OFD packet to send [02:31:17]OFD Sender: No OFD packet to send [02:31:22]OFD Sender: No OFD packet to send [02:31:27]OFD Sender: No OFD packet to send [02:31:32]OFD Sender: No OFD packet to send [02:31:37]OFD Sender: No OFD packet to send [02:31:42]OFD Sender: No OFD packet to send [02:31:47]OFD Sender: No OFD packet to send [02:31:52]OFD Sender: No OFD packet to send [02:31:57]OFD Sender: No OFD packet to send [02:32:02]OFD Sender: No OFD packet to send [02:32:07]OFD Sender: No OFD packet to send [02:32:12]OFD Sender: No OFD packet to send [02:32:17]OFD Sender: No OFD packet to send [02:32:22]OFD Sender: No OFD packet to send [02:32:27]OFD Sender: No OFD packet to send [02:32:32]OFD Sender: No OFD packet to send [02:32:37]OFD Sender: No OFD packet to send [02:32:42]OFD Sender: No OFD packet to send [02:32:47]OFD Sender: No OFD packet to send [02:32:52]OFD Sender: No OFD packet to send [02:32:57]OFD Sender: No OFD packet to send [02:33:02]OFD Sender: No OFD packet to send [02:33:07]OFD Sender: No OFD packet to send [02:33:12]OFD Sender: No OFD packet to send [02:33:17]OFD Sender: No OFD packet to send [02:33:22]OFD Sender: No OFD packet to send [02:33:27]OFD Sender: No OFD packet to send [02:33:32]OFD Sender: No OFD packet to send [02:33:37]OFD Sender: No OFD packet to send [02:33:42]OFD Sender: No OFD packet to send [02:33:47]OFD Sender: No OFD packet to send [02:33:52]OFD Sender: No OFD packet to send [02:33:57]OFD Sender: No OFD packet to send [02:34:02]OFD Sender: No OFD packet to send [02:34:07]OFD Sender: No OFD packet to send [02:34:12]OFD Sender: No OFD packet to send [02:34:17]OFD Sender: No OFD packet to send [02:34:22]OFD Sender: No OFD packet to send [02:34:27]OFD Sender: No OFD packet to send [02:34:32]OFD Sender: No OFD packet to send [02:34:37]OFD Sender: No OFD packet to send [02:34:42]OFD Sender: No OFD packet to send [02:34:47]OFD Sender: No OFD packet to send [02:34:52]OFD Sender: No OFD packet to send [02:34:57]OFD Sender: No OFD packet to send [02:35:02]OFD Sender: No OFD packet to send [02:35:07]OFD Sender: No OFD packet to send [02:35:12]OFD Sender: No OFD packet to send [02:35:17]OFD Sender: No OFD packet to send [02:35:22]OFD Sender: No OFD packet to send [02:35:27]OFD Sender: No OFD packet to send [02:35:32]OFD Sender: No OFD packet to send [02:35:37]OFD Sender: No OFD packet to send [02:35:42]OFD Sender: No OFD packet to send [02:35:47]OFD Sender: No OFD packet to send [02:35:52]OFD Sender: No OFD packet to send [02:35:57]OFD Sender: No OFD packet to send [02:36:02]OFD Sender: No OFD packet to send [02:36:07]OFD Sender: No OFD packet to send [02:36:12]OFD Sender: No OFD packet to send [02:36:17]OFD Sender: No OFD packet to send [02:36:22]OFD Sender: No OFD packet to send [02:36:27]OFD Sender: No OFD packet to send [02:36:32]OFD Sender: No OFD packet to send [02:36:37]OFD Sender: No OFD packet to send [02:36:40]accept exits with 9 [02:36:40]New connection [02:36:40]New thread 3067313508 created [02:36:40]Thread 3067456868 joined [02:36:40]Waiting for new connection... [02:36:40] Sock 9.Parse request [02:36:40]Sock 9.Check first char [02:36:40]Sock 9.First char is OK [02:36:40]request: POST /json_proto HTTP/1.0 [02:36:40]Method: POST [02:36:40]URL: /json_proto [02:36:40]Method is POST - this is cgi request [02:36:40]url: /json_proto [02:36:40]query_string will be loaded in cgi processing [02:36:40]execute_cgi json_proto POST (null) [02:36:40]execute_cgi path=json_proto method=POST [02:36:40]POST find Content-Length [02:36:40]Host: 172.17.50.3:8080 [02:36:40]Content-Length: 683 [02:36:40]Content-Type: application/json [02:36:40] [02:36:40]POST finish read [02:36:40]Found Content-Length = 683 [02:36:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:36:40]execute_script... [02:36:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:36:40]POST & json_proto [02:36:40]process_json_proto [02:36:40]json parsed OK: [02:36:40]protocol is kg_v1.0 [02:36:40]action value=close_receipt [02:36:40]process_action close_receipt [02:36:40]cmd_close_receipt [02:36:40]MH_GetDate [02:36:40]Write to MH i2c: F0 00 00 27 08 1E [02:36:40]Write i2c OK [02:36:40]MH_I2C_Read... [02:36:40]Read from MH i2c: F0 [02:36:40]MH_I2C_Read... [02:36:40]Read from MH i2c: F0 09 00 [02:36:40]MH_I2C_Read... [02:36:40]Read from MH i2c: F0 09 00 27 08 00 3A BE 15 67 6B 98 1E 66 22 [02:36:40]GetLastDocTimeStamp 1729476109 [02:36:40]current date 1729478202 [02:36:40]FM_GetShiftState [02:36:40]SAM_PROTO_GetShiftState [02:36:40]wFMCommunicate request_size=4 [02:36:40]MH_SAM_APDU [02:36:40]CAPDU: 80 13 01 00 [02:36:40]Write to MH i2c: E2 08 00 28 08 80 13 01 00 00 00 00 00 AD [02:36:40]Write i2c OK [02:36:40]MH_I2C_Read... [02:36:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:36:40]Read from MH i2c: E2 [02:36:40]MH_I2C_Read... [02:36:40]Read from MH i2c: E2 0E 00 [02:36:40]MH_I2C_Read... [02:36:40]Read from MH i2c: E2 0E 00 28 08 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 D9 [02:36:40]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [02:36:40]wFMCommunicate OK [02:36:40]SAM_PROTO_GetShiftState done [02:36:40]FM_GetShiftState done [02:36:40]opened in 1729469703 [02:36:40]opened+sec_in_day 1729556103 [02:36:40]quantity*price = 100015 [02:36:40]sum+1 = 100017 [02:36:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 21 21.10.2024 02:36 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69631 ФПД: 214189951854077 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T023642&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69631&fm=214189951854077&tin=02508201610067®Number=0000000000156251&sum=100000 [02:36:41]StoreToDocumentArchive [02:36:41]shift 194 fd 69631 [02:36:41]save to /storage/0194/doc_00069631 [02:36:41]save last doc name /storage/0194/doc_00069631 to /storage/kkm_last_doc_name [02:36:41]save OK [02:36:41]Clear old archive folders... [02:36:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:36:41]tlvbuf is 00C349E0 [02:36:41]SAM_PROTO_ClearQueue [02:36:41]wFMCommunicate request_size=4 [02:36:41]MH_SAM_APDU [02:36:41]CAPDU: 80 09 00 00 [02:36:41]Write to MH i2c: E2 08 00 35 08 80 09 00 00 00 00 00 00 AF [02:36:41]Write i2c OK [02:36:41]MH_I2C_Read... [02:36:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:36:41]Read from MH i2c: E2 [02:36:41]MH_I2C_Read... [02:36:41]Read from MH i2c: E2 03 00 [02:36:41]MH_I2C_Read... [02:36:41]Read from MH i2c: E2 03 00 35 08 00 90 00 B1 [02:36:41]RAPDU: 90 00 [02:36:41]wFMCommunicate OK [02:36:41]SAM_PROTO_ClearQueue done [02:36:41]KKMCreateOFDPacket [02:36:41]OFDProtocolAddRootSTLVToBuf [02:36:41]FM_MakeSignedData [02:36:41]FM_MakeSignedData [02:36:41]SAM_PROTO_SignData [02:36:41]wFMCommunicate request_size=4 [02:36:41]MH_SAM_APDU [02:36:41]CAPDU: 80 0D 01 02 [02:36:41]Write to MH i2c: E2 08 00 36 08 80 0D 01 02 00 00 00 00 B7 [02:36:41]Write i2c OK [02:36:41]MH_I2C_Read... [02:36:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:36:42]Read from MH i2c: E2 [02:36:42]MH_I2C_Read... [02:36:42]Read from MH i2c: E2 03 00 [02:36:42]MH_I2C_Read... [02:36:42]Read from MH i2c: E2 03 00 36 08 00 90 00 B2 [02:36:42]RAPDU: 90 00 [02:36:42]wFMCommunicate OK [02:36:42]wFMCommunicate request_size=255 [02:36:42]MH_SAM_APDU [02:36: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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 3A BE 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FF 0F 01 00 35 04 06 00 C2 [02:36:42]Write to MH i2c: E2 02 01 37 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 3A BE 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FF 0F 01 00 35 04 06 00 C2 00 00 56 [02:36:42]Write i2c OK [02:36:42]MH_I2C_Read... [02:36:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:36:42]Read from MH i2c: E2 [02:36:42]MH_I2C_Read... [02:36:42]Read from MH i2c: E2 03 00 [02:36:42]MH_I2C_Read... [02:36:42]Read from MH i2c: E2 03 00 37 08 00 90 00 B3 [02:36:42]RAPDU: 90 00 [02:36:42]wFMCommunicate OK [02:36:42]wFMCommunicate request_size=10 [02:36:42]MH_SAM_APDU [02:36:42]CAPDU: 80 0D 02 02 05 CD FB FE A5 FD [02:36:42]Write to MH i2c: E2 0D 00 38 08 80 0D 02 02 05 00 CD FB FE A5 FD 00 00 2C [02:36:42]Write i2c OK [02:36:42]MH_I2C_Read... [02:36:42]Read from MH i2c: E2 [02:36:42]MH_I2C_Read... [02:36:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:36:42]Read from MH i2c: E2 03 00 [02:36:42]MH_I2C_Read... [02:36:42]Read from MH i2c: E2 03 00 38 08 00 90 00 B4 [02:36:42]RAPDU: 90 00 [02:36:42]wFMCommunicate OK [02:36:42]wFMCommunicate request_size=4 [02:36:42]MH_SAM_APDU [02:36:42]CAPDU: 80 0D 03 02 [02:36:42]Write to MH i2c: E2 08 00 39 08 80 0D 03 02 00 00 00 00 BC [02:36:42]Write i2c OK [02:36:42]MH_I2C_Read... [02:36:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:36:42]Read from MH i2c: E2 [02:36:42]MH_I2C_Read... [02:36:42]Read from MH i2c: E2 0B 00 [02:36:42]MH_I2C_Read... [02:36:42]Read from MH i2c: E2 0B 00 39 08 00 B6 F0 98 0D BC C5 66 F7 90 00 E6 [02:36:42]RAPDU: B6 F0 98 0D BC C5 66 F7 90 00 [02:36:42]wFMCommunicate OK [02:36:42]SAM_PROTO_SignData done [02:36:42]FM_MakeSignedData done [02:36:42]CreateOFDProtocolMessage [02:36:42]wFMCommunicate request_size=4 [02:36:42]MH_SAM_APDU [02:36:42]CAPDU: 80 11 00 00 [02:36:42]Write to MH i2c: E2 08 00 3A 08 80 11 00 00 00 00 00 00 BC [02:36:42]Write i2c OK [02:36:42]MH_I2C_Read... [02:36:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:36:42]Read from MH i2c: E2 [02:36:42]MH_I2C_Read... [02:36:42]Read from MH i2c: E2 17 00 [02:36:42]MH_I2C_Read... [02:36:42]Read from MH i2c: E2 17 00 3A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 0E [02:36:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [02:36:42]wFMCommunicate OK [02:36:42]CreateOFDProtocolMessage done [02:36:42]OFDSenderStorePacket 69631 [02:36:42]StoreOFDPacket docnum=69631 [02:36:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C1 84 07 01 D7 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 3A BE 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FF 0F 01 00 35 04 06 00 C2 CD FB FE A5 FD B6 F0 98 0D BC C5 66 F7 [02:36:42]CheckFolder [02:36:42]dirname=/storage/ofd_packets [02:36:42]CheckFolder done [02:36:42]ProducePacketName [02:36:42]name=ofd_packets/00069631 [02:36:42]NVStorageSaveData ofd_packets/00069631 [02:36:42]File name is /storage/ofd_packets/00069631 [02:36:42]Write 301 bytes [02:36:42]NVStorageSaveData done [02:36:42]OFDSenderStorePacket done [02:36:42]KKMCreateOFDPacket done [02:36:42]NVStorageSaveData kkm_last_timestamp [02:36:42]File name is /storage/kkm_last_timestamp [02:36:42]Write 4 bytes [02:36:42]NVStorageSaveData done [02:36:42]ExternCall_PrintAddStr [02:36:42]wPrintStart [02:36:42]Write to MH i2c: 01 00 00 3B 08 43 [02:36:42]Write i2c OK [02:36:42]MH_I2C_Read... [02:36:42]Read from MH i2c: 01 [02:36:42]MH_I2C_Read... [02:36:42]Read from MH i2c: 01 07 00 [02:36:42]MH_I2C_Read... [02:36:42]Read from MH i2c: 01 07 00 3B 08 00 00 00 00 00 FF 0F 58 [02:36:42]RasterBufferAndPrint [02:36:42]line Счет N : (1)2885368 [02:36:42]line ИНН: 02508201610067 [02:36:42]line Контрольно-Кассовый Чек [02:36:42]line ПРОДАЖА [02:36:42]line ТРК (МРК, ГНК) : 42 [02:36:42]line Товар: 2710124130 [02:36:42]line Аи-92-К-5 [02:36:42]line 14.950 * 66.90 [02:36:42]line = 1000.16 [02:36:42]line НДС 12% НСП 1% [02:36:42]line > о реализуемом товаре [02:36:42]line ОКРУГЛЕНИЕ: -0.16 [02:36:42]line ИТОГО: 1000.00 [02:36:42]line Внесено: 1000.00 [02:36:42]line СДАЧА: 0.00 [02:36:42]line НСП 1% : 8.85 [02:36:42]line НДС 12% : 106.21 [02:36:42]line Наличными: 1000.00 [02:36:42]line Безнал.: 0.00 [02:36:42]line Место: АЗС № 85 "Партнер Нефть" [02:36:42]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [02:36:42]line СНО: Общий режим [02:36:42]line Чек 21 21.10.2024 02:36 [02:36:42]line Смена: 194 ФФД: 1.0 [02:36:42]line ЗНМ: 0300000167 [02:36:42]line РНМ: 0000000000156251 [02:36:42]line Версия ККМ: v1.0 [02:36:42]line ФМ: 0000000000963346 [02:36:42]line ФД: 69631 [02:36:42]line ФПД: 214189951854077 [02:36:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T023642&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69631&fm=214189951854077&tin=02508201610067®Number=0000000000156251&sum=100000 [02:36:42]written 0, free lines is 4095 [02:36:42]OFD Sender: Processing packet 69631 [packets to send 18, broken 17] [02:36:42]ProducePacketName [02:36:42]name=ofd_packets/00069631 [02:36:42]OFD Sender: To server: pG, [02:36:42]CommunicateWithHost lk.salyk.kg:30040 [02:36:42]ConnectInit lk.salyk.kg [02:36:42]Connected sock=10 [02:36:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 C1 84 07 01 D7 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 3A BE 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FF 0F 01 00 35 04 06 00 C2 CD FB FE A5 FD B6 F0 98 0D BC C5 66 F7 [02:36:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 F3 8A 47 00 74 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 FF 0F 01 00 F4 03 04 00 DF 67 15 67 B6 04 01 00 00 22 99 2F 53 7A 2F 80 3D [02:36:42]CommunicateWithHost err = 0 [02:36:42]CheckOFDResponse [02:36:42]1017 (14) - 77093643461234 [02:36:42]1041 (16) - 0000000000963346 [02:36:42]1040 (4) - 69631 [02:36:42]1012 (4) - 20.10.2024 20:28 [02:36:42]1206 (1) - 0 [02:36:42]OFD Sender: Remove packet 69631 [02:36:42]ProducePacketName [02:36:42]name=ofd_packets/00069631 [02:36:42]NVStorageDeleteData [02:36:42]Write to MH i2c: 01 00 00 66 08 6E [02:36:42]Write i2c OK [02:36:42]MH_I2C_Read... [02:36:42]Read from MH i2c: 01 [02:36:42]MH_I2C_Read... [02:36:42]Read from MH i2c: 01 07 00 [02:36:42]MH_I2C_Read... [02:36:42]Read from MH i2c: 01 07 00 66 08 00 00 00 00 00 E1 0C 62 [02:36:42]RasterBufferAndPrint [02:36:42]line [02:36:42]line [02:36:42]line [02:36:42]line [02:36:42]line [02:36:42]written 0, free lines is 3303 [02:36:42]MH_Cut [02:36:42]Write to MH i2c: D1 01 00 6D 08 01 47 [02:36:42]Write i2c OK [02:36:42]MH_I2C_Read... [02:36:42]Read from MH i2c: D1 [02:36:42]MH_I2C_Read... [02:36:42]Read from MH i2c: D1 01 00 [02:36:42]MH_I2C_Read... [02:36:42]Read from MH i2c: D1 01 00 6D 08 00 46 [02:36:42]Write to MH i2c: 01 00 00 6E 08 76 [02:36:42]Write i2c OK [02:36:42]MH_I2C_Read... [02:36:43]OFD Sender: No OFD packet to send [02:36:43]*** Cut start [02:36:43]*** Partial cut [02:36:43]*** CUTSNS_PIN = 1 [02:36:43]*** CUTSNS_PIN = 0 [02:36:43]*** Brake cut motor [02:36:44]Read from MH i2c: 01 [02:36:44]MH_I2C_Read... [02:36:44]*** Stop cut motor [02:36:44]*** Cut end [02:36:44]Read from MH i2c: 01 07 00 [02:36:44]MH_I2C_Read... [02:36:44]Read from MH i2c: 01 07 00 6E 08 00 00 00 00 00 FF 0F 8B [02:36:44]process_action close_receipt done [02:36:44]requested_data is exist [02:36:44]produce_requested_data [02:36:44]requested_item fm.sn is exist - process it [02:36:44]wFMCommunicate request_size=4 [02:36:44]MH_SAM_APDU [02:36:44]CAPDU: 80 11 00 00 [02:36:44]Write to MH i2c: E2 08 00 6F 08 80 11 00 00 00 00 00 00 F1 [02:36:44]Write i2c OK [02:36:44]MH_I2C_Read... [02:36:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:36:44]Read from MH i2c: E2 [02:36:44]MH_I2C_Read... [02:36:44]Read from MH i2c: E2 17 00 [02:36:44]MH_I2C_Read... [02:36:44]Read from MH i2c: E2 17 00 6F 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 43 [02:36:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [02:36:44]wFMCommunicate OK [02:36:44]requested_item fd.num is exist - process it [02:36:44]SAM_PROTO_GetFieldsCounters [02:36:44]wFMCommunicate request_size=4 [02:36:44]MH_SAM_APDU [02:36:44]CAPDU: 80 13 00 00 [02:36:44]Write to MH i2c: E2 08 00 70 08 80 13 00 00 00 00 00 00 F4 [02:36:44]Write i2c OK [02:36:44]MH_I2C_Read... [02:36:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:36:44]Read from MH i2c: E2 [02:36:44]MH_I2C_Read... [02:36:44]Read from MH i2c: E2 62 00 [02:36:44]MH_I2C_Read... [02:36:44]Read from MH i2c: E2 62 00 70 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FF 0F 01 00 0E 04 04 00 C2 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 1F [02:36:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 FF 0F 01 00 0E 04 04 00 C2 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 [02:36:44]wFMCommunicate OK [02:36:44]SAM_PROTO_GetFieldsCounters done [02:36:44]requested_item shift.num is exist - process it [02:36:44]requested_item shift.opened is exist - process it [02:36:44]req_shift_opened [02:36:44]FM_GetShiftState [02:36:44]SAM_PROTO_GetShiftState [02:36:44]wFMCommunicate request_size=4 [02:36:44]MH_SAM_APDU [02:36:44]CAPDU: 80 13 01 00 [02:36:44]Write to MH i2c: E2 08 00 71 08 80 13 01 00 00 00 00 00 F6 [02:36:44]Write i2c OK [02:36:44]MH_I2C_Read... [02:36:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:36:44]Read from MH i2c: E2 [02:36:44]MH_I2C_Read... [02:36:44]Read from MH i2c: E2 0E 00 [02:36:44]MH_I2C_Read... [02:36:44]Read from MH i2c: E2 0E 00 71 08 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 22 [02:36:44]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [02:36:44]wFMCommunicate OK [02:36:44]SAM_PROTO_GetShiftState done [02:36:44]FM_GetShiftState done [02:36:44]req_shift_opened done [02:36:44]requested_item shift.open_date is exist - process it [02:36:44]req_shift_open_date [02:36:44]req_shift_open_date done [02:36:44]produce_requested_data done [02:36:44]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69631,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [02:36:44]process_action_free close_receipt [02:36:44]json_value_free [02:36:44]json_value_free done [02:36:44]process_json_proto returns [02:36:44]Send response to host [02:36:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69631,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [02:36:44]free response buf [02:36:44]execute_script done [02:36:44]execute_script returns [02:36:44]free content buf [02:36:44]Sock 9.Close socket [02:36:44]Sock 9.Thread stoped [02:36:48]OFD Sender: No OFD packet to send [02:36:53]OFD Sender: No OFD packet to send [02:36:58]OFD Sender: No OFD packet to send [02:37:03]OFD Sender: No OFD packet to send [02:37:08]OFD Sender: No OFD packet to send [02:37:13]OFD Sender: No OFD packet to send [02:37:18]OFD Sender: No OFD packet to send [02:37:23]OFD Sender: No OFD packet to send [02:37:28]OFD Sender: No OFD packet to send [02:37:33]OFD Sender: No OFD packet to send [02:37:38]OFD Sender: No OFD packet to send [02:37:43]OFD Sender: No OFD packet to send [02:37:48]OFD Sender: No OFD packet to send [02:37:53]OFD Sender: No OFD packet to send [02:37:58]OFD Sender: No OFD packet to send [02:38:03]OFD Sender: No OFD packet to send [02:38:08]OFD Sender: No OFD packet to send [02:38:13]OFD Sender: No OFD packet to send [02:38:18]OFD Sender: No OFD packet to send [02:38:23]OFD Sender: No OFD packet to send [02:38:28]OFD Sender: No OFD packet to send [02:38:33]OFD Sender: No OFD packet to send [02:38:38]OFD Sender: No OFD packet to send [02:38:43]OFD Sender: No OFD packet to send [02:38:48]OFD Sender: No OFD packet to send [02:38:53]OFD Sender: No OFD packet to send [02:38:58]OFD Sender: No OFD packet to send [02:39:03]OFD Sender: No OFD packet to send [02:39:08]OFD Sender: No OFD packet to send [02:39:13]OFD Sender: No OFD packet to send [02:39:18]OFD Sender: No OFD packet to send [02:39:23]OFD Sender: No OFD packet to send [02:39:28]OFD Sender: No OFD packet to send [02:39:33]OFD Sender: No OFD packet to send [02:39:38]OFD Sender: No OFD packet to send [02:39:43]OFD Sender: No OFD packet to send [02:39:48]OFD Sender: No OFD packet to send [02:39:53]OFD Sender: No OFD packet to send [02:39:58]OFD Sender: No OFD packet to send [02:40:03]OFD Sender: No OFD packet to send [02:40:08]OFD Sender: No OFD packet to send [02:40:13]OFD Sender: No OFD packet to send [02:40:18]OFD Sender: No OFD packet to send [02:40:23]OFD Sender: No OFD packet to send [02:40:28]OFD Sender: No OFD packet to send [02:40:33]OFD Sender: No OFD packet to send [02:40:38]OFD Sender: No OFD packet to send [02:40:43]OFD Sender: No OFD packet to send [02:40:48]OFD Sender: No OFD packet to send [02:40:53]OFD Sender: No OFD packet to send [02:40:58]OFD Sender: No OFD packet to send [02:41:03]OFD Sender: No OFD packet to send [02:41:08]OFD Sender: No OFD packet to send [02:41:13]OFD Sender: No OFD packet to send [02:41:18]OFD Sender: No OFD packet to send [02:41:23]OFD Sender: No OFD packet to send [02:41:28]OFD Sender: No OFD packet to send [02:41:33]OFD Sender: No OFD packet to send [02:41:38]OFD Sender: No OFD packet to send [02:41:43]OFD Sender: No OFD packet to send [02:41:48]OFD Sender: No OFD packet to send [02:41:53]OFD Sender: No OFD packet to send [02:41:58]OFD Sender: No OFD packet to send [02:42:03]OFD Sender: No OFD packet to send [02:42:08]OFD Sender: No OFD packet to send [02:42:13]OFD Sender: No OFD packet to send [02:42:18]OFD Sender: No OFD packet to send [02:42:23]OFD Sender: No OFD packet to send [02:42:28]OFD Sender: No OFD packet to send [02:42:33]OFD Sender: No OFD packet to send [02:42:38]OFD Sender: No OFD packet to send [02:42:43]OFD Sender: No OFD packet to send [02:42:48]OFD Sender: No OFD packet to send [02:42:53]OFD Sender: No OFD packet to send [02:42:58]OFD Sender: No OFD packet to send [02:43:03]OFD Sender: No OFD packet to send [02:43:08]OFD Sender: No OFD packet to send [02:43:13]OFD Sender: No OFD packet to send [02:43:18]OFD Sender: No OFD packet to send [02:43:23]OFD Sender: No OFD packet to send [02:43:28]OFD Sender: No OFD packet to send [02:43:33]OFD Sender: No OFD packet to send [02:43:38]OFD Sender: No OFD packet to send [02:43:43]OFD Sender: No OFD packet to send [02:43:48]OFD Sender: No OFD packet to send [02:43:53]OFD Sender: No OFD packet to send [02:43:58]OFD Sender: No OFD packet to send [02:44:03]OFD Sender: No OFD packet to send [02:44:08]OFD Sender: No OFD packet to send [02:44:13]OFD Sender: No OFD packet to send [02:44:18]OFD Sender: No OFD packet to send [02:44:23]OFD Sender: No OFD packet to send [02:44:28]OFD Sender: No OFD packet to send [02:44:33]OFD Sender: No OFD packet to send [02:44:38]OFD Sender: No OFD packet to send [02:44:43]OFD Sender: No OFD packet to send [02:44:48]OFD Sender: No OFD packet to send [02:44:53]OFD Sender: No OFD packet to send [02:44:58]OFD Sender: No OFD packet to send [02:45:03]OFD Sender: No OFD packet to send [02:45:08]OFD Sender: No OFD packet to send [02:45:13]OFD Sender: No OFD packet to send [02:45:18]OFD Sender: No OFD packet to send [02:45:23]OFD Sender: No OFD packet to send [02:45:28]OFD Sender: No OFD packet to send [02:45:33]OFD Sender: No OFD packet to send [02:45:38]OFD Sender: No OFD packet to send [02:45:43]OFD Sender: No OFD packet to send [02:45:48]OFD Sender: No OFD packet to send [02:45:53]OFD Sender: No OFD packet to send [02:45:58]OFD Sender: No OFD packet to send [02:46:03]OFD Sender: No OFD packet to send [02:46:08]OFD Sender: No OFD packet to send [02:46:13]OFD Sender: No OFD packet to send [02:46:18]OFD Sender: No OFD packet to send [02:46:23]OFD Sender: No OFD packet to send [02:46:28]OFD Sender: No OFD packet to send [02:46:33]OFD Sender: No OFD packet to send [02:46:38]OFD Sender: No OFD packet to send [02:46:43]OFD Sender: No OFD packet to send [02:46:48]OFD Sender: No OFD packet to send [02:46:53]OFD Sender: No OFD packet to send [02:46:58]OFD Sender: No OFD packet to send [02:47:03]OFD Sender: No OFD packet to send [02:47:08]OFD Sender: No OFD packet to send [02:47:13]OFD Sender: No OFD packet to send [02:47:18]OFD Sender: No OFD packet to send [02:47:23]OFD Sender: No OFD packet to send [02:47:28]OFD Sender: No OFD packet to send [02:47:33]OFD Sender: No OFD packet to send [02:47:38]OFD Sender: No OFD packet to send [02:47:43]OFD Sender: No OFD packet to send [02:47:48]OFD Sender: No OFD packet to send [02:47:53]OFD Sender: No OFD packet to send [02:47:58]OFD Sender: No OFD packet to send [02:48:03]OFD Sender: No OFD packet to send [02:48:08]OFD Sender: No OFD packet to send [02:48:13]OFD Sender: No OFD packet to send [02:48:18]OFD Sender: No OFD packet to send [02:48:23]OFD Sender: No OFD packet to send [02:48:28]OFD Sender: No OFD packet to send [02:48:33]OFD Sender: No OFD packet to send [02:48:38]OFD Sender: No OFD packet to send [02:48:43]OFD Sender: No OFD packet to send [02:48:48]OFD Sender: No OFD packet to send [02:48:53]OFD Sender: No OFD packet to send [02:48:58]OFD Sender: No OFD packet to send [02:49:03]OFD Sender: No OFD packet to send [02:49:08]OFD Sender: No OFD packet to send [02:49:13]OFD Sender: No OFD packet to send [02:49:18]OFD Sender: No OFD packet to send [02:49:23]OFD Sender: No OFD packet to send [02:49:28]OFD Sender: No OFD packet to send [02:49:33]OFD Sender: No OFD packet to send [02:49:38]OFD Sender: No OFD packet to send [02:49:43]OFD Sender: No OFD packet to send [02:49:48]OFD Sender: No OFD packet to send [02:49:53]OFD Sender: No OFD packet to send [02:49:58]OFD Sender: No OFD packet to send [02:50:04]OFD Sender: No OFD packet to send [02:50:09]OFD Sender: No OFD packet to send [02:50:14]OFD Sender: No OFD packet to send [02:50:19]OFD Sender: No OFD packet to send [02:50:24]OFD Sender: No OFD packet to send [02:50:29]OFD Sender: No OFD packet to send [02:50:34]OFD Sender: No OFD packet to send [02:50:39]OFD Sender: No OFD packet to send [02:50:44]OFD Sender: No OFD packet to send [02:50:49]OFD Sender: No OFD packet to send [02:50:54]OFD Sender: No OFD packet to send [02:50:59]OFD Sender: No OFD packet to send [02:51:04]OFD Sender: No OFD packet to send [02:51:09]OFD Sender: No OFD packet to send [02:51:14]OFD Sender: No OFD packet to send [02:51:19]OFD Sender: No OFD packet to send [02:51:24]OFD Sender: No OFD packet to send [02:51:29]OFD Sender: No OFD packet to send [02:51:34]OFD Sender: No OFD packet to send [02:51:39]OFD Sender: No OFD packet to send [02:51:44]OFD Sender: No OFD packet to send [02:51:49]OFD Sender: No OFD packet to send [02:51:54]OFD Sender: No OFD packet to send [02:51:59]OFD Sender: No OFD packet to send [02:52:04]OFD Sender: No OFD packet to send [02:52:09]OFD Sender: No OFD packet to send [02:52:14]OFD Sender: No OFD packet to send [02:52:19]OFD Sender: No OFD packet to send [02:52:24]OFD Sender: No OFD packet to send [02:52:29]OFD Sender: No OFD packet to send [02:52:34]OFD Sender: No OFD packet to send [02:52:39]OFD Sender: No OFD packet to send [02:52:44]OFD Sender: No OFD packet to send [02:52:48]accept exits with 8 [02:52:48]New connection [02:52:48]New thread 3067456868 created [02:52:48]Thread 3067313508 joined [02:52:48]Waiting for new connection... [02:52:48] Sock 8.Parse request [02:52:48]Sock 8.Check first char [02:52:48]Sock 8.First char is OK [02:52:48]request: POST /json_proto HTTP/1.0 [02:52:48]Method: POST [02:52:48]URL: /json_proto [02:52:48]Method is POST - this is cgi request [02:52:48]url: /json_proto [02:52:48]query_string will be loaded in cgi processing [02:52:48]execute_cgi json_proto POST (null) [02:52:48]execute_cgi path=json_proto method=POST [02:52:48]POST find Content-Length [02:52:48]Host: 172.17.50.3:8080 [02:52:48]Content-Length: 682 [02:52:48]Content-Type: application/json [02:52:48] [02:52:48]POST finish read [02:52:48]Found Content-Length = 682 [02:52:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:52:48]execute_script... [02:52:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:52:48]POST & json_proto [02:52:48]process_json_proto [02:52:48]json parsed OK: [02:52:48]protocol is kg_v1.0 [02:52:48]action value=close_receipt [02:52:48]process_action close_receipt [02:52:48]cmd_close_receipt [02:52:48]MH_GetDate [02:52:48]Write to MH i2c: F0 00 00 72 08 69 [02:52:48]Write i2c OK [02:52:48]MH_I2C_Read... [02:52:48]Read from MH i2c: F0 [02:52:48]MH_I2C_Read... [02:52:48]Read from MH i2c: F0 09 00 [02:52:48]MH_I2C_Read... [02:52:48]Read from MH i2c: F0 09 00 72 08 00 02 C2 15 67 6B 98 1E 66 39 [02:52:48]GetLastDocTimeStamp 1729478202 [02:52:48]current date 1729479170 [02:52:48]FM_GetShiftState [02:52:48]SAM_PROTO_GetShiftState [02:52:48]wFMCommunicate request_size=4 [02:52:48]MH_SAM_APDU [02:52:48]CAPDU: 80 13 01 00 [02:52:48]Write to MH i2c: E2 08 00 73 08 80 13 01 00 00 00 00 00 F8 [02:52:48]Write i2c OK [02:52:48]MH_I2C_Read... [02:52:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:52:48]Read from MH i2c: E2 [02:52:48]MH_I2C_Read... [02:52:48]Read from MH i2c: E2 0E 00 [02:52:48]MH_I2C_Read... [02:52:48]Read from MH i2c: E2 0E 00 73 08 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 24 [02:52:48]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [02:52:48]wFMCommunicate OK [02:52:48]SAM_PROTO_GetShiftState done [02:52:48]FM_GetShiftState done [02:52:48]opened in 1729469703 [02:52:48]opened+sec_in_day 1729556103 [02:52:48]quantity*price = 50025 [02:52:48]sum+1 = 50026 [02:52:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 22 21.10.2024 02:52 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69632 ФПД: 159105319883344 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T025250&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69632&fm=159105319883344&tin=02508201610067®Number=0000000000156251&sum=50000 [02:52:49]StoreToDocumentArchive [02:52:49]shift 194 fd 69632 [02:52:49]save to /storage/0194/doc_00069632 [02:52:49]save last doc name /storage/0194/doc_00069632 to /storage/kkm_last_doc_name [02:52:49]save OK [02:52:49]Clear old archive folders... [02:52:49]ProcessDocumentItem done err = 0, tmpTLVsize=250 [02:52:49]tlvbuf is 00C26250 [02:52:49]SAM_PROTO_ClearQueue [02:52:49]wFMCommunicate request_size=4 [02:52:49]MH_SAM_APDU [02:52:49]CAPDU: 80 09 00 00 [02:52:49]Write to MH i2c: E2 08 00 80 08 80 09 00 00 00 00 00 00 FA [02:52:49]Write i2c OK [02:52:49]MH_I2C_Read... [02:52:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:52:49]Read from MH i2c: E2 [02:52:49]MH_I2C_Read... [02:52:49]Read from MH i2c: E2 03 00 [02:52:49]MH_I2C_Read... [02:52:49]Read from MH i2c: E2 03 00 80 08 00 90 00 FC [02:52:49]RAPDU: 90 00 [02:52:49]wFMCommunicate OK [02:52:49]SAM_PROTO_ClearQueue done [02:52:49]KKMCreateOFDPacket [02:52:49]OFDProtocolAddRootSTLVToBuf [02:52:49]FM_MakeSignedData [02:52:49]FM_MakeSignedData [02:52:49]SAM_PROTO_SignData [02:52:49]wFMCommunicate request_size=4 [02:52:49]MH_SAM_APDU [02:52:49]CAPDU: 80 0D 01 02 [02:52:49]Write to MH i2c: E2 08 00 81 08 80 0D 01 02 00 00 00 00 02 [02:52:49]Write i2c OK [02:52:49]MH_I2C_Read... [02:52:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:52:50]Read from MH i2c: E2 [02:52:50]MH_I2C_Read... [02:52:50]Read from MH i2c: E2 03 00 [02:52:50]MH_I2C_Read... [02:52:50]Read from MH i2c: E2 03 00 81 08 00 90 00 FD [02:52:50]RAPDU: 90 00 [02:52:50]wFMCommunicate OK [02:52:50]wFMCommunicate request_size=255 [02:52:50]MH_SAM_APDU [02:52:50]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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 02 C2 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 00 10 01 00 35 04 06 00 90 B4 [02:52:50]Write to MH i2c: E2 02 01 82 08 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 02 C2 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 00 10 01 00 35 04 06 00 90 B4 00 00 B2 [02:52:50]Write i2c OK [02:52:50]MH_I2C_Read... [02:52:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:52:50]Read from MH i2c: E2 [02:52:50]MH_I2C_Read... [02:52:50]Read from MH i2c: E2 03 00 [02:52:50]MH_I2C_Read... [02:52:50]Read from MH i2c: E2 03 00 82 08 00 90 00 FE [02:52:50]RAPDU: 90 00 [02:52:50]wFMCommunicate OK [02:52:50]wFMCommunicate request_size=9 [02:52:50]MH_SAM_APDU [02:52:50]CAPDU: 80 0D 02 02 04 98 12 D2 50 [02:52:50]Write to MH i2c: E2 0C 00 83 08 80 0D 02 02 04 00 98 12 D2 50 00 00 D9 [02:52:50]Write i2c OK [02:52:50]MH_I2C_Read... [02:52:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:52:50]Read from MH i2c: E2 [02:52:50]MH_I2C_Read... [02:52:50]Read from MH i2c: E2 03 00 [02:52:50]MH_I2C_Read... [02:52:50]Read from MH i2c: E2 03 00 83 08 00 90 00 FF [02:52:50]RAPDU: 90 00 [02:52:50]wFMCommunicate OK [02:52:50]wFMCommunicate request_size=4 [02:52:50]MH_SAM_APDU [02:52:50]CAPDU: 80 0D 03 02 [02:52:50]Write to MH i2c: E2 08 00 84 08 80 0D 03 02 00 00 00 00 07 [02:52:50]Write i2c OK [02:52:50]MH_I2C_Read... [02:52:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:52:50]Read from MH i2c: E2 [02:52:50]MH_I2C_Read... [02:52:50]Read from MH i2c: E2 0B 00 [02:52:50]MH_I2C_Read... [02:52:50]Read from MH i2c: E2 0B 00 84 08 00 ED 75 6D 06 6A 5F 20 00 90 00 C6 [02:52:50]RAPDU: ED 75 6D 06 6A 5F 20 00 90 00 [02:52:50]wFMCommunicate OK [02:52:50]SAM_PROTO_SignData done [02:52:50]FM_MakeSignedData done [02:52:50]CreateOFDProtocolMessage [02:52:50]wFMCommunicate request_size=4 [02:52:50]MH_SAM_APDU [02:52:50]CAPDU: 80 11 00 00 [02:52:50]Write to MH i2c: E2 08 00 85 08 80 11 00 00 00 00 00 00 07 [02:52:50]Write i2c OK [02:52:50]MH_I2C_Read... [02:52:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:52:50]Read from MH i2c: E2 [02:52:50]MH_I2C_Read... [02:52:50]Read from MH i2c: E2 17 00 [02:52:50]MH_I2C_Read... [02:52:50]Read from MH i2c: E2 17 00 85 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 59 [02:52:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [02:52:50]wFMCommunicate OK [02:52:50]CreateOFDProtocolMessage done [02:52:50]OFDSenderStorePacket 69632 [02:52:50]StoreOFDPacket docnum=69632 [02:52:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 1C 5E 06 01 CC DE 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 02 C2 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 00 10 01 00 35 04 06 00 90 B4 98 12 D2 50 ED 75 6D 06 6A 5F 20 00 [02:52:50]CheckFolder [02:52:50]dirname=/storage/ofd_packets [02:52:50]CheckFolder done [02:52:50]ProducePacketName [02:52:50]name=ofd_packets/00069632 [02:52:50]NVStorageSaveData ofd_packets/00069632 [02:52:50]File name is /storage/ofd_packets/00069632 [02:52:50]Write 300 bytes [02:52:50]NVStorageSaveData done [02:52:50]OFDSenderStorePacket done [02:52:50]KKMCreateOFDPacket done [02:52:50]NVStorageSaveData kkm_last_timestamp [02:52:50]File name is /storage/kkm_last_timestamp [02:52:50]Write 4 bytes [02:52:50]NVStorageSaveData done [02:52:50]ExternCall_PrintAddStr [02:52:50]wPrintStart [02:52:50]Write to MH i2c: 01 00 00 86 08 8E [02:52:50]Write i2c OK [02:52:50]MH_I2C_Read... [02:52:50]Read from MH i2c: 01 [02:52:50]MH_I2C_Read... [02:52:50]Read from MH i2c: 01 07 00 [02:52:50]MH_I2C_Read... [02:52:50]Read from MH i2c: 01 07 00 86 08 00 00 00 00 00 FF 0F A3 [02:52:50]RasterBufferAndPrint [02:52:50]line Счет N : (1)2885369 [02:52:50]line ИНН: 02508201610067 [02:52:50]line Контрольно-Кассовый Чек [02:52:50]line ПРОДАЖА [02:52:50]line ТРК (МРК, ГНК) : 71 [02:52:50]line Товар: 2711129700 [02:52:50]line ГАЗ-К-3 [02:52:50]line 12.860 * 38.90 [02:52:50]line = 500.25 [02:52:50]line НДС 12% НСП 1% [02:52:50]line > о реализуемом товаре [02:52:50]line ОКРУГЛЕНИЕ: -0.25 [02:52:50]line ИТОГО: 500.00 [02:52:50]line Внесено: 500.00 [02:52:50]line СДАЧА: 0.00 [02:52:50]line НСП 1% : 4.43 [02:52:50]line НДС 12% : 53.12 [02:52:50]line Наличными: 500.00 [02:52:50]line Безнал.: 0.00 [02:52:50]line Место: АЗС № 85 "Партнер Нефть" [02:52:50]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [02:52:50]line СНО: Общий режим [02:52:50]line Чек 22 21.10.2024 02:52 [02:52:50]line Смена: 194 ФФД: 1.0 [02:52:50]line ЗНМ: 0300000167 [02:52:50]line РНМ: 0000000000156251 [02:52:50]line Версия ККМ: v1.0 [02:52:50]line ФМ: 0000000000963346 [02:52:50]line ФД: 69632 [02:52:50]line ФПД: 159105319883344 [02:52:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T025250&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69632&fm=159105319883344&tin=02508201610067®Number=0000000000156251&sum=50000 [02:52:50]OFD Sender: Processing packet 69632 [packets to send 18, broken 17] [02:52:50]ProducePacketName [02:52:50]name=ofd_packets/00069632 [02:52:50]OFD Sender: To server: pG, [02:52:50]CommunicateWithHost lk.salyk.kg:30040 [02:52:50]ConnectInit lk.salyk.kg [02:52:50]written 0, free lines is 4095 [02:52:50]Connected sock=10 [02:52:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0E 01 00 00 1C 5E 06 01 CC DE 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 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 02 C2 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 00 10 01 00 35 04 06 00 90 B4 98 12 D2 50 ED 75 6D 06 6A 5F 20 00 [02:52:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 65 26 47 00 B2 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 00 10 01 00 F4 03 04 00 A7 6B 15 67 B6 04 01 00 00 92 7D 3E 5F 92 8E AB 8E [02:52:51]CommunicateWithHost err = 0 [02:52:51]CheckOFDResponse [02:52:51]1017 (14) - 77093643461234 [02:52:51]1041 (16) - 0000000000963346 [02:52:51]1040 (4) - 69632 [02:52:51]1012 (4) - 20.10.2024 20:44 [02:52:51]1206 (1) - 0 [02:52:51]OFD Sender: Remove packet 69632 [02:52:51]ProducePacketName [02:52:51]name=ofd_packets/00069632 [02:52:51]NVStorageDeleteData [02:52:51]Write to MH i2c: 01 00 00 B1 08 B9 [02:52:51]Write i2c OK [02:52:51]MH_I2C_Read... [02:52:51]Read from MH i2c: 01 [02:52:51]MH_I2C_Read... [02:52:51]Read from MH i2c: 01 07 00 [02:52:51]MH_I2C_Read... [02:52:51]Read from MH i2c: 01 07 00 B1 08 00 00 00 00 00 E6 0C B2 [02:52:51]RasterBufferAndPrint [02:52:51]line [02:52:51]line [02:52:51]line [02:52:51]line [02:52:51]line [02:52:51]written 0, free lines is 3309 [02:52:51]MH_Cut [02:52:51]Write to MH i2c: D1 01 00 B8 08 01 92 [02:52:51]Write i2c OK [02:52:51]MH_I2C_Read... [02:52:51]Read from MH i2c: D1 [02:52:51]MH_I2C_Read... [02:52:51]Read from MH i2c: D1 01 00 [02:52:51]MH_I2C_Read... [02:52:51]Read from MH i2c: D1 01 00 B8 08 00 91 [02:52:51]Write to MH i2c: 01 00 00 B9 08 C1 [02:52:51]Write i2c OK [02:52:51]MH_I2C_Read... [02:52:51]OFD Sender: No OFD packet to send [02:52:51]*** Cut start [02:52:51]*** Partial cut [02:52:51]*** CUTSNS_PIN = 1 [02:52:52]*** CUTSNS_PIN = 0 [02:52:52]*** Brake cut motor [02:52:52]Read from MH i2c: 01 [02:52:52]MH_I2C_Read... [02:52:52]*** Stop cut motor [02:52:52]*** Cut end [02:52:52]Read from MH i2c: 01 07 00 [02:52:52]MH_I2C_Read... [02:52:52]Read from MH i2c: 01 07 00 B9 08 00 00 00 00 00 FF 0F D6 [02:52:52]process_action close_receipt done [02:52:52]requested_data is exist [02:52:52]produce_requested_data [02:52:52]requested_item fm.sn is exist - process it [02:52:52]wFMCommunicate request_size=4 [02:52:52]MH_SAM_APDU [02:52:52]CAPDU: 80 11 00 00 [02:52:52]Write to MH i2c: E2 08 00 BA 08 80 11 00 00 00 00 00 00 3C [02:52:52]Write i2c OK [02:52:52]MH_I2C_Read... [02:52:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:52:52]Read from MH i2c: E2 [02:52:52]MH_I2C_Read... [02:52:52]Read from MH i2c: E2 17 00 [02:52:52]MH_I2C_Read... [02:52:52]Read from MH i2c: E2 17 00 BA 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 8E [02:52:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [02:52:52]wFMCommunicate OK [02:52:52]requested_item fd.num is exist - process it [02:52:52]SAM_PROTO_GetFieldsCounters [02:52:52]wFMCommunicate request_size=4 [02:52:52]MH_SAM_APDU [02:52:52]CAPDU: 80 13 00 00 [02:52:52]Write to MH i2c: E2 08 00 BB 08 80 13 00 00 00 00 00 00 3F [02:52:52]Write i2c OK [02:52:52]MH_I2C_Read... [02:52:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:52:52]Read from MH i2c: E2 [02:52:52]MH_I2C_Read... [02:52:52]Read from MH i2c: E2 62 00 [02:52:52]MH_I2C_Read... [02:52:52]Read from MH i2c: E2 62 00 BB 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 00 10 01 00 0E 04 04 00 C2 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 6F [02:52:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 00 10 01 00 0E 04 04 00 C2 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 [02:52:52]wFMCommunicate OK [02:52:52]SAM_PROTO_GetFieldsCounters done [02:52:52]requested_item shift.num is exist - process it [02:52:52]requested_item shift.opened is exist - process it [02:52:52]req_shift_opened [02:52:52]FM_GetShiftState [02:52:52]SAM_PROTO_GetShiftState [02:52:52]wFMCommunicate request_size=4 [02:52:52]MH_SAM_APDU [02:52:52]CAPDU: 80 13 01 00 [02:52:52]Write to MH i2c: E2 08 00 BC 08 80 13 01 00 00 00 00 00 41 [02:52:52]Write i2c OK [02:52:52]MH_I2C_Read... [02:52:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:52:52]Read from MH i2c: E2 [02:52:52]MH_I2C_Read... [02:52:52]Read from MH i2c: E2 0E 00 [02:52:52]MH_I2C_Read... [02:52:52]Read from MH i2c: E2 0E 00 BC 08 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 6D [02:52:52]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [02:52:52]wFMCommunicate OK [02:52:52]SAM_PROTO_GetShiftState done [02:52:52]FM_GetShiftState done [02:52:52]req_shift_opened done [02:52:52]requested_item shift.open_date is exist - process it [02:52:52]req_shift_open_date [02:52:52]req_shift_open_date done [02:52:52]produce_requested_data done [02:52:52]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69632,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [02:52:52]process_action_free close_receipt [02:52:52]json_value_free [02:52:52]json_value_free done [02:52:52]process_json_proto returns [02:52:52]Send response to host [02:52:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69632,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [02:52:52]free response buf [02:52:52]execute_script done [02:52:52]execute_script returns [02:52:52]free content buf [02:52:52]Sock 8.Close socket [02:52:52]Sock 8.Thread stoped [02:52:56]OFD Sender: No OFD packet to send [02:53:01]OFD Sender: No OFD packet to send [02:53:06]OFD Sender: No OFD packet to send [02:53:11]OFD Sender: No OFD packet to send [02:53:16]OFD Sender: No OFD packet to send [02:53:21]OFD Sender: No OFD packet to send [02:53:26]OFD Sender: No OFD packet to send [02:53:31]OFD Sender: No OFD packet to send [02:53:36]OFD Sender: No OFD packet to send [02:53:41]OFD Sender: No OFD packet to send [02:53:46]OFD Sender: No OFD packet to send [02:53:51]OFD Sender: No OFD packet to send [02:53:56]OFD Sender: No OFD packet to send [02:54:01]OFD Sender: No OFD packet to send [02:54:06]OFD Sender: No OFD packet to send [02:54:11]OFD Sender: No OFD packet to send [02:54:16]OFD Sender: No OFD packet to send [02:54:21]OFD Sender: No OFD packet to send [02:54:26]OFD Sender: No OFD packet to send [02:54:31]OFD Sender: No OFD packet to send [02:54:36]OFD Sender: No OFD packet to send [02:54:41]OFD Sender: No OFD packet to send [02:54:46]OFD Sender: No OFD packet to send [02:54:51]OFD Sender: No OFD packet to send [02:54:56]OFD Sender: No OFD packet to send [02:55:01]OFD Sender: No OFD packet to send [02:55:06]OFD Sender: No OFD packet to send [02:55:11]OFD Sender: No OFD packet to send [02:55:16]OFD Sender: No OFD packet to send [02:55:21]OFD Sender: No OFD packet to send [02:55:26]OFD Sender: No OFD packet to send [02:55:31]OFD Sender: No OFD packet to send [02:55:36]OFD Sender: No OFD packet to send [02:55:41]OFD Sender: No OFD packet to send [02:55:46]OFD Sender: No OFD packet to send [02:55:51]OFD Sender: No OFD packet to send [02:55:56]OFD Sender: No OFD packet to send [02:56:01]OFD Sender: No OFD packet to send [02:56:06]OFD Sender: No OFD packet to send [02:56:11]OFD Sender: No OFD packet to send [02:56:16]OFD Sender: No OFD packet to send [02:56:21]OFD Sender: No OFD packet to send [02:56:26]OFD Sender: No OFD packet to send [02:56:31]OFD Sender: No OFD packet to send [02:56:36]OFD Sender: No OFD packet to send [02:56:41]OFD Sender: No OFD packet to send [02:56:46]OFD Sender: No OFD packet to send [02:56:51]OFD Sender: No OFD packet to send [02:56:56]OFD Sender: No OFD packet to send [02:57:01]OFD Sender: No OFD packet to send [02:57:06]OFD Sender: No OFD packet to send [02:57:11]OFD Sender: No OFD packet to send [02:57:16]OFD Sender: No OFD packet to send [02:57:21]OFD Sender: No OFD packet to send [02:57:26]OFD Sender: No OFD packet to send [02:57:31]OFD Sender: No OFD packet to send [02:57:36]OFD Sender: No OFD packet to send [02:57:41]OFD Sender: No OFD packet to send [02:57:46]OFD Sender: No OFD packet to send [02:57:51]OFD Sender: No OFD packet to send [02:57:56]OFD Sender: No OFD packet to send [02:58:01]OFD Sender: No OFD packet to send [02:58:06]OFD Sender: No OFD packet to send [02:58:11]OFD Sender: No OFD packet to send [02:58:16]OFD Sender: No OFD packet to send [02:58:21]OFD Sender: No OFD packet to send [02:58:26]OFD Sender: No OFD packet to send [02:58:31]OFD Sender: No OFD packet to send [02:58:36]OFD Sender: No OFD packet to send [02:58:41]OFD Sender: No OFD packet to send [02:58:46]OFD Sender: No OFD packet to send [02:58:51]OFD Sender: No OFD packet to send [02:58:56]OFD Sender: No OFD packet to send [02:59:01]OFD Sender: No OFD packet to send [02:59:06]OFD Sender: No OFD packet to send [02:59:11]OFD Sender: No OFD packet to send [02:59:16]OFD Sender: No OFD packet to send [02:59:21]OFD Sender: No OFD packet to send [02:59:26]OFD Sender: No OFD packet to send [02:59:31]OFD Sender: No OFD packet to send [02:59:36]OFD Sender: No OFD packet to send [02:59:41]OFD Sender: No OFD packet to send [02:59:46]OFD Sender: No OFD packet to send [02:59:51]OFD Sender: No OFD packet to send [02:59:56]OFD Sender: No OFD packet to send [03:00:01]OFD Sender: No OFD packet to send [03:00:06]OFD Sender: No OFD packet to send [03:00:11]OFD Sender: No OFD packet to send [03:00:16]OFD Sender: No OFD packet to send [03:00:21]OFD Sender: No OFD packet to send [03:00:26]OFD Sender: No OFD packet to send [03:00:31]OFD Sender: No OFD packet to send [03:00:36]OFD Sender: No OFD packet to send [03:00:41]OFD Sender: No OFD packet to send [03:00:46]OFD Sender: No OFD packet to send [03:00:51]OFD Sender: No OFD packet to send [03:00:56]OFD Sender: No OFD packet to send [03:01:01]OFD Sender: No OFD packet to send [03:01:06]OFD Sender: No OFD packet to send [03:01:11]OFD Sender: No OFD packet to send [03:01:16]OFD Sender: No OFD packet to send [03:01:21]OFD Sender: No OFD packet to send [03:01:27]OFD Sender: No OFD packet to send [03:01:32]OFD Sender: No OFD packet to send [03:01:37]OFD Sender: No OFD packet to send [03:01:42]OFD Sender: No OFD packet to send [03:01:47]OFD Sender: No OFD packet to send [03:01:52]OFD Sender: No OFD packet to send [03:01:57]OFD Sender: No OFD packet to send [03:02:02]OFD Sender: No OFD packet to send [03:02:07]OFD Sender: No OFD packet to send [03:02:12]OFD Sender: No OFD packet to send [03:02:17]OFD Sender: No OFD packet to send [03:02:22]OFD Sender: No OFD packet to send [03:02:27]OFD Sender: No OFD packet to send [03:02:32]OFD Sender: No OFD packet to send [03:02:37]OFD Sender: No OFD packet to send [03:02:42]OFD Sender: No OFD packet to send [03:02:47]OFD Sender: No OFD packet to send [03:02:52]OFD Sender: No OFD packet to send [03:02:57]OFD Sender: No OFD packet to send [03:03:02]OFD Sender: No OFD packet to send [03:03:07]OFD Sender: No OFD packet to send [03:03:12]OFD Sender: No OFD packet to send [03:03:17]OFD Sender: No OFD packet to send [03:03:22]OFD Sender: No OFD packet to send [03:03:27]OFD Sender: No OFD packet to send [03:03:32]OFD Sender: No OFD packet to send [03:03:37]OFD Sender: No OFD packet to send [03:03:42]OFD Sender: No OFD packet to send [03:03:47]OFD Sender: No OFD packet to send [03:03:52]OFD Sender: No OFD packet to send [03:03:57]OFD Sender: No OFD packet to send [03:04:02]OFD Sender: No OFD packet to send [03:04:07]OFD Sender: No OFD packet to send [03:04:12]OFD Sender: No OFD packet to send [03:04:17]OFD Sender: No OFD packet to send [03:04:22]OFD Sender: No OFD packet to send [03:04:27]OFD Sender: No OFD packet to send [03:04:32]OFD Sender: No OFD packet to send [03:04:37]OFD Sender: No OFD packet to send [03:04:42]OFD Sender: No OFD packet to send [03:04:47]OFD Sender: No OFD packet to send [03:04:52]OFD Sender: No OFD packet to send [03:04:57]OFD Sender: No OFD packet to send [03:05:02]OFD Sender: No OFD packet to send [03:05:07]OFD Sender: No OFD packet to send [03:05:12]OFD Sender: No OFD packet to send [03:05:17]OFD Sender: No OFD packet to send [03:05:22]OFD Sender: No OFD packet to send [03:05:24]accept exits with 9 [03:05:24]New connection [03:05:24]New thread 3067313508 created [03:05:24]Thread 3067456868 joined [03:05:24]Waiting for new connection... [03:05:24] Sock 9.Parse request [03:05:24]Sock 9.Check first char [03:05:24]Sock 9.First char is OK [03:05:24]request: POST /json_proto HTTP/1.0 [03:05:24]Method: POST [03:05:24]URL: /json_proto [03:05:24]Method is POST - this is cgi request [03:05:24]url: /json_proto [03:05:24]query_string will be loaded in cgi processing [03:05:24]execute_cgi json_proto POST (null) [03:05:24]execute_cgi path=json_proto method=POST [03:05:24]POST find Content-Length [03:05:24]Host: 172.17.50.3:8080 [03:05:24]Content-Length: 683 [03:05:24]Content-Type: application/json [03:05:24] [03:05:24]POST finish read [03:05:24]Found Content-Length = 683 [03:05:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2885370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:05:24]execute_script... [03:05: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)2885370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:05:24]POST & json_proto [03:05:24]process_json_proto [03:05:24]json parsed OK: [03:05:24]protocol is kg_v1.0 [03:05:24]action value=close_receipt [03:05:24]process_action close_receipt [03:05:24]cmd_close_receipt [03:05:24]MH_GetDate [03:05:24]Write to MH i2c: F0 00 00 BD 08 B4 [03:05:24]Write i2c OK [03:05:24]MH_I2C_Read... [03:05:24]Read from MH i2c: F0 [03:05:24]MH_I2C_Read... [03:05:24]Read from MH i2c: F0 09 00 [03:05:24]MH_I2C_Read... [03:05:24]Read from MH i2c: F0 09 00 BD 08 00 F5 C4 15 67 6B 98 1E 66 79 [03:05:24]GetLastDocTimeStamp 1729479170 [03:05:24]current date 1729479925 [03:05:24]FM_GetShiftState [03:05:24]SAM_PROTO_GetShiftState [03:05:24]wFMCommunicate request_size=4 [03:05:24]MH_SAM_APDU [03:05:24]CAPDU: 80 13 01 00 [03:05:24]Write to MH i2c: E2 08 00 BE 08 80 13 01 00 00 00 00 00 43 [03:05:24]Write i2c OK [03:05:24]MH_I2C_Read... [03:05:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:05:24]Read from MH i2c: E2 [03:05:24]MH_I2C_Read... [03:05:24]Read from MH i2c: E2 0E 00 [03:05:24]MH_I2C_Read... [03:05:24]Read from MH i2c: E2 0E 00 BE 08 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 6F [03:05:24]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [03:05:24]wFMCommunicate OK [03:05:24]SAM_PROTO_GetShiftState done [03:05:24]FM_GetShiftState done [03:05:24]opened in 1729469703 [03:05:24]opened+sec_in_day 1729556103 [03:05:24]quantity*price = 100015 [03:05:24]sum+1 = 100017 [03:05:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 85 "Партнер Нефть" Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 СНО: Общий режим Чек 23 21.10.2024 03:05 Смена: 194 ФФД: 1.0 ЗНМ: 0300000167 РНМ: 0000000000156251 Версия ККМ: v1.0 ФМ: 0000000000963346 ФД: 69633 ФПД: 117066047513680 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T030525&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69633&fm=117066047513680&tin=02508201610067®Number=0000000000156251&sum=100000 [03:05:25]StoreToDocumentArchive [03:05:25]shift 194 fd 69633 [03:05:25]save to /storage/0194/doc_00069633 [03:05:25]save last doc name /storage/0194/doc_00069633 to /storage/kkm_last_doc_name [03:05:25]save OK [03:05:25]Clear old archive folders... [03:05:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:05:25]tlvbuf is 00C34A00 [03:05:25]SAM_PROTO_ClearQueue [03:05:25]wFMCommunicate request_size=4 [03:05:25]MH_SAM_APDU [03:05:25]CAPDU: 80 09 00 00 [03:05:25]Write to MH i2c: E2 08 00 CB 08 80 09 00 00 00 00 00 00 45 [03:05:25]Write i2c OK [03:05:25]MH_I2C_Read... [03:05:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:05:25]Read from MH i2c: E2 [03:05:25]MH_I2C_Read... [03:05:25]Read from MH i2c: E2 03 00 [03:05:25]MH_I2C_Read... [03:05:25]Read from MH i2c: E2 03 00 CB 08 00 90 00 47 [03:05:25]RAPDU: 90 00 [03:05:25]wFMCommunicate OK [03:05:25]SAM_PROTO_ClearQueue done [03:05:25]KKMCreateOFDPacket [03:05:25]OFDProtocolAddRootSTLVToBuf [03:05:25]FM_MakeSignedData [03:05:25]FM_MakeSignedData [03:05:25]SAM_PROTO_SignData [03:05:25]wFMCommunicate request_size=4 [03:05:25]MH_SAM_APDU [03:05:25]CAPDU: 80 0D 01 02 [03:05:25]Write to MH i2c: E2 08 00 CC 08 80 0D 01 02 00 00 00 00 4D [03:05:25]Write i2c OK [03:05:25]MH_I2C_Read... [03:05:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:05:25]Read from MH i2c: E2 [03:05:25]MH_I2C_Read... [03:05:25]Read from MH i2c: E2 03 00 [03:05:25]MH_I2C_Read... [03:05:25]Read from MH i2c: E2 03 00 CC 08 00 90 00 48 [03:05:25]RAPDU: 90 00 [03:05:25]wFMCommunicate OK [03:05:25]wFMCommunicate request_size=255 [03:05:25]MH_SAM_APDU [03:05:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 F5 C4 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 01 10 01 00 35 04 06 00 6A [03:05:25]Write to MH i2c: E2 02 01 CD 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 F5 C4 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 01 10 01 00 35 04 06 00 6A 00 00 5A [03:05:25]Write i2c OK [03:05:25]MH_I2C_Read... [03:05:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:05:25]Read from MH i2c: E2 [03:05:25]MH_I2C_Read... [03:05:25]Read from MH i2c: E2 03 00 [03:05:25]MH_I2C_Read... [03:05:25]Read from MH i2c: E2 03 00 CD 08 00 90 00 49 [03:05:25]RAPDU: 90 00 [03:05:25]wFMCommunicate OK [03:05:25]wFMCommunicate request_size=10 [03:05:25]MH_SAM_APDU [03:05:25]CAPDU: 80 0D 02 02 05 78 90 2D 64 50 [03:05:25]Write to MH i2c: E2 0D 00 CE 08 80 0D 02 02 05 00 78 90 2D 64 50 00 00 43 [03:05:25]Write i2c OK [03:05:25]MH_I2C_Read... [03:05:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:05:25]Read from MH i2c: E2 [03:05:25]MH_I2C_Read... [03:05:25]Read from MH i2c: E2 03 00 [03:05:25]MH_I2C_Read... [03:05:25]Read from MH i2c: E2 03 00 CE 08 00 90 00 4A [03:05:25]RAPDU: 90 00 [03:05:25]wFMCommunicate OK [03:05:25]wFMCommunicate request_size=4 [03:05:25]MH_SAM_APDU [03:05:25]CAPDU: 80 0D 03 02 [03:05:25]Write to MH i2c: E2 08 00 CF 08 80 0D 03 02 00 00 00 00 52 [03:05:25]Write i2c OK [03:05:25]MH_I2C_Read... [03:05:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:05:25]Read from MH i2c: E2 [03:05:25]MH_I2C_Read... [03:05:25]Read from MH i2c: E2 0B 00 [03:05:25]MH_I2C_Read... [03:05:25]Read from MH i2c: E2 0B 00 CF 08 00 73 02 71 86 78 EB 36 3E 90 00 96 [03:05:25]RAPDU: 73 02 71 86 78 EB 36 3E 90 00 [03:05:25]wFMCommunicate OK [03:05:25]SAM_PROTO_SignData done [03:05:25]FM_MakeSignedData done [03:05:25]CreateOFDProtocolMessage [03:05:25]wFMCommunicate request_size=4 [03:05:25]MH_SAM_APDU [03:05:25]CAPDU: 80 11 00 00 [03:05:25]Write to MH i2c: E2 08 00 D0 08 80 11 00 00 00 00 00 00 52 [03:05:25]Write i2c OK [03:05:25]MH_I2C_Read... [03:05:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:05:25]Read from MH i2c: E2 [03:05:25]MH_I2C_Read... [03:05:25]Read from MH i2c: E2 17 00 [03:05:25]MH_I2C_Read... [03:05:25]Read from MH i2c: E2 17 00 D0 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 A4 [03:05:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [03:05:25]wFMCommunicate OK [03:05:25]CreateOFDProtocolMessage done [03:05:25]OFDSenderStorePacket 69633 [03:05:25]StoreOFDPacket docnum=69633 [03:05:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 0C 9D 07 01 E9 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 F5 C4 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 01 10 01 00 35 04 06 00 6A 78 90 2D 64 50 73 02 71 86 78 EB 36 3E [03:05:25]CheckFolder [03:05:25]dirname=/storage/ofd_packets [03:05:25]CheckFolder done [03:05:25]ProducePacketName [03:05:25]name=ofd_packets/00069633 [03:05:25]NVStorageSaveData ofd_packets/00069633 [03:05:25]File name is /storage/ofd_packets/00069633 [03:05:25]Write 301 bytes [03:05:25]NVStorageSaveData done [03:05:25]OFDSenderStorePacket done [03:05:25]KKMCreateOFDPacket done [03:05:25]NVStorageSaveData kkm_last_timestamp [03:05:25]File name is /storage/kkm_last_timestamp [03:05:25]Write 4 bytes [03:05:25]NVStorageSaveData done [03:05:25]ExternCall_PrintAddStr [03:05:25]wPrintStart [03:05:25]Write to MH i2c: 01 00 00 D1 08 D9 [03:05:25]Write i2c OK [03:05:25]MH_I2C_Read... [03:05:25]Read from MH i2c: 01 [03:05:25]MH_I2C_Read... [03:05:25]Read from MH i2c: 01 07 00 [03:05:25]MH_I2C_Read... [03:05:25]Read from MH i2c: 01 07 00 D1 08 00 00 00 00 00 FF 0F EE [03:05:25]RasterBufferAndPrint [03:05:25]line Счет N : (1)2885370 [03:05:25]line ИНН: 02508201610067 [03:05:25]line Контрольно-Кассовый Чек [03:05:25]line ПРОДАЖА [03:05:25]line ТРК (МРК, ГНК) : 32 [03:05:25]line Товар: 2710124130 [03:05:25]line Аи-92-К-5 [03:05:25]line 14.950 * 66.90 [03:05:25]line = 1000.16 [03:05:25]line НДС 12% НСП 1% [03:05:25]line > о реализуемом товаре [03:05:25]line ОКРУГЛЕНИЕ: -0.16 [03:05:25]line ИТОГО: 1000.00 [03:05:25]line Внесено: 1000.00 [03:05:25]line СДАЧА: 0.00 [03:05:25]line НСП 1% : 8.85 [03:05:25]line НДС 12% : 106.21 [03:05:25]line Наличными: 1000.00 [03:05:25]line Безнал.: 0.00 [03:05:25]line Место: АЗС № 85 "Партнер Нефть" [03:05:25]line Адрес: 720000, с. Базар Коргон, трасса Бишкек-Ош, 41.055522, 72.757862 [03:05:25]line СНО: Общий режим [03:05:25]line Чек 23 21.10.2024 03:05 [03:05:25]line Смена: 194 ФФД: 1.0 [03:05:25]line ЗНМ: 0300000167 [03:05:25]line РНМ: 0000000000156251 [03:05:25]line Версия ККМ: v1.0 [03:05:25]line ФМ: 0000000000963346 [03:05:25]line ФД: 69633 [03:05:25]line ФПД: 117066047513680 [03:05:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T030525&type=1&operation_type=1&fn_number=0000000000963346&fd_number=69633&fm=117066047513680&tin=02508201610067®Number=0000000000156251&sum=100000 [03:05:26]OFD Sender: Processing packet 69633 [packets to send 18, broken 17] [03:05:26]ProducePacketName [03:05:26]name=ofd_packets/00069633 [03:05:26]OFD Sender: To server: pG, [03:05:26]CommunicateWithHost lk.salyk.kg:30040 [03:05:26]ConnectInit lk.salyk.kg [03:05:26]written 0, free lines is 4095 [03:05:26]Write to MH i2c: 01 00 00 FC 08 04 [03:05:26]Write i2c OK [03:05:26]MH_I2C_Read... [03:05:26]Read from MH i2c: 01 [03:05:26]MH_I2C_Read... [03:05:26]Read from MH i2c: 01 07 00 [03:05:26]MH_I2C_Read... [03:05:26]Read from MH i2c: 01 07 00 FC 08 00 00 00 00 00 E0 0C F7 [03:05:26]RasterBufferAndPrint [03:05:26]line [03:05:26]line [03:05:26]line [03:05:26]line [03:05:26]line [03:05:26]written 0, free lines is 3302 [03:05:26]MH_Cut [03:05:26]Write to MH i2c: D1 01 00 03 09 01 DE [03:05:26]Write i2c OK [03:05:26]MH_I2C_Read... [03:05:26]Read from MH i2c: D1 [03:05:26]MH_I2C_Read... [03:05:26]Read from MH i2c: D1 01 00 [03:05:26]MH_I2C_Read... [03:05:26]Read from MH i2c: D1 01 00 03 09 00 DD [03:05:26]Write to MH i2c: 01 00 00 04 09 0D [03:05:26]Write i2c OK [03:05:26]MH_I2C_Read... [03:05:27]*** Cut start [03:05:27]*** Partial cut [03:05:27]*** CUTSNS_PIN = 1 [03:05:27]*** CUTSNS_PIN = 0 [03:05:27]*** Brake cut motor [03:05:28]Read from MH i2c: 01 [03:05:28]MH_I2C_Read... [03:05:28]*** Stop cut motor [03:05:28]*** Cut end [03:05:28]Read from MH i2c: 01 07 00 [03:05:28]MH_I2C_Read... [03:05:28]Read from MH i2c: 01 07 00 04 09 00 00 00 00 00 FF 0F 22 [03:05:28]process_action close_receipt done [03:05:28]requested_data is exist [03:05:28]produce_requested_data [03:05:28]requested_item fm.sn is exist - process it [03:05:28]wFMCommunicate request_size=4 [03:05:28]MH_SAM_APDU [03:05:28]CAPDU: 80 11 00 00 [03:05:28]Write to MH i2c: E2 08 00 05 09 80 11 00 00 00 00 00 00 88 [03:05:28]Write i2c OK [03:05:28]MH_I2C_Read... [03:05:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:05:28]Read from MH i2c: E2 [03:05:28]MH_I2C_Read... [03:05:28]Read from MH i2c: E2 17 00 [03:05:28]MH_I2C_Read... [03:05:28]Read from MH i2c: E2 17 00 05 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 DA [03:05:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 90 00 [03:05:28]wFMCommunicate OK [03:05:28]requested_item fd.num is exist - process it [03:05:28]SAM_PROTO_GetFieldsCounters [03:05:28]wFMCommunicate request_size=4 [03:05:28]MH_SAM_APDU [03:05:28]CAPDU: 80 13 00 00 [03:05:28]Write to MH i2c: E2 08 00 06 09 80 13 00 00 00 00 00 00 8B [03:05:28]Write i2c OK [03:05:28]MH_I2C_Read... [03:05:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:05:28]Read from MH i2c: E2 [03:05:28]MH_I2C_Read... [03:05:28]Read from MH i2c: E2 62 00 [03:05:28]MH_I2C_Read... [03:05:28]Read from MH i2c: E2 62 00 06 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 01 10 01 00 0E 04 04 00 C2 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 BF [03:05:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 10 04 04 00 01 10 01 00 0E 04 04 00 C2 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 [03:05:28]wFMCommunicate OK [03:05:28]SAM_PROTO_GetFieldsCounters done [03:05:28]requested_item shift.num is exist - process it [03:05:28]requested_item shift.opened is exist - process it [03:05:28]req_shift_opened [03:05:28]FM_GetShiftState [03:05:28]SAM_PROTO_GetShiftState [03:05:28]wFMCommunicate request_size=4 [03:05:28]MH_SAM_APDU [03:05:28]CAPDU: 80 13 01 00 [03:05:28]Write to MH i2c: E2 08 00 07 09 80 13 01 00 00 00 00 00 8D [03:05:28]Write i2c OK [03:05:28]MH_I2C_Read... [03:05:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:05:28]Read from MH i2c: E2 [03:05:28]MH_I2C_Read... [03:05:28]Read from MH i2c: E2 0E 00 [03:05:28]MH_I2C_Read... [03:05:28]Read from MH i2c: E2 0E 00 07 09 00 09 00 01 07 9D 15 67 00 00 00 00 90 00 B9 [03:05:28]RAPDU: 09 00 01 07 9D 15 67 00 00 00 00 90 00 [03:05:28]wFMCommunicate OK [03:05:28]SAM_PROTO_GetShiftState done [03:05:28]FM_GetShiftState done [03:05:28]req_shift_opened done [03:05:28]requested_item shift.open_date is exist - process it [03:05:28]req_shift_open_date [03:05:28]req_shift_open_date done [03:05:28]produce_requested_data done [03:05:28]produce_requested_data return {"fm.sn":"0000000000963346","fd.num":69633,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703} [03:05:28]process_action_free close_receipt [03:05:28]json_value_free [03:05:28]json_value_free done [03:05:28]process_json_proto returns [03:05:28]Send response to host [03:05:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963346","fd.num":69633,"shift.num":194,"shift.opened":1,"shift.open_date":1729469703}}} [03:05:28]free response buf [03:05:28]execute_script done [03:05:28]execute_script returns [03:05:28]free content buf [03:05:28]Sock 9.Close socket [03:05:28]Sock 9.Thread stoped [03:07:40]ConnectInit Can't connect to host [03:07:40]CommunicateWithHost connect error [03:07:40]CommunicateWithHost err = -1 [03:07:40]OFD Sender: Server communicate error [03:07:45]OFD Sender: Processing packet 69633 [packets to send 18, broken 17] [03:07:45]ProducePacketName [03:07:45]name=ofd_packets/00069633 [03:07:45]OFD Sender: To server: pG, [03:07:45]CommunicateWithHost lk.salyk.kg:30040 [03:07:45]ConnectInit lk.salyk.kg [03:07:45]Connected sock=9 [03:07:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 0F 01 00 00 0C 9D 07 01 E9 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 F5 C4 15 67 0E 04 04 00 C2 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 36 32 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 01 10 01 00 35 04 06 00 6A 78 90 2D 64 50 73 02 71 86 78 EB 36 3E [03:07:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 4F 00 00 00 CD AF 47 00 6E CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 34 36 10 04 04 00 01 10 01 00 F4 03 04 00 26 6F 15 67 B6 04 01 00 00 5E FA C2 7F 17 67 43 66 [03:07:45]CommunicateWithHost err = 0 [03:07:45]CheckOFDResponse [03:07:45]1017 (14) - 77093643461234 [03:07:45]1041 (16) - 0000000000963346 [03:07:45]1040 (4) - 69633 [03:07:45]1012 (4) - 20.10.2024 20:59 [03:07:45]1206 (1) - 0 [03:07:45]OFD Sender: Remove packet 69633 [03:07:45]ProducePacketName [03:07:45]name=ofd_packets/00069633 [03:07:45]NVStorageDeleteData [03:07:46]OFD Sender: No OFD packet to send [03:07:51]OFD Sender: No OFD packet to send [03:07:56]OFD Sender: No OFD packet to send [03:08:01]OFD Sender: No OFD packet to send [03:08:06]OFD Sender: No OFD packet to send [03:08:11]OFD Sender: No OFD packet to send [03:08:16]OFD Sender: No OFD packet to send [03:08:21]OFD Sender: No OFD packet to send